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 ca,ea,aaa,ia,ka,la,ma,ra,sa,ta,baa,caa,Aa,Ba,daa,eaa,Da,Ea,Fa,Ga,Ha,La,Ma,gaa,haa,Wa,Xa,Ya,Za,$a,ab,iaa,bb,cb,kaa,gb,ib,nb,pb,rb,vb,wb,xb,yb,zb,Ab,Bb,Cb,Eb,Db,Fb,saa,taa,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,uaa,Pb,Vb,vaa,ec,waa,jc,gc,xaa,hc,yaa,zaa,Aaa,qc,rc,sc,tc,Hc,Jc,Fc,yc,Mc,Oc,Qc,Rc,Tc,Vc,Uc,Yc,cd,hd,id,md,kd,nd,od,vd,wd,yd,zd,Ad,Bd,Cd,Faa,Ed,Gd,Hd,Gaa,Md,Nd,Od,Pd,Qd,Rd,Sd,Td,Ud,Xd,Zd,$d,Yd,ae,Haa,ee,fe,ge,he,ie,je,le,qe,re,se,te,ue,we,xe,ze,Be,Ce,Iaa,De,Ee,He,Je,Me,Jaa,Kaa,Pe,Fe,Ge,Laa,
Maa,Naa,Oaa,Re,Paa,Qaa,Raa,Saa,Ke,Le,Se,cf,Taa,Uaa,df,ef,Vaa,gf,Waa,hf,Xaa,jf,Yaa,mf,nf,of,pf,Zaa,wf,yf,Af,Bf,Df,aba,Ef,Hf,Jf,Lf,Mf,Qf,Rf,cg,dg,fg,jg,bba,gg,og,pg,mg,dba,kg,ig,tg,ug,vg,zg,eba,Cg,Dg,fba,Fg,Ig,Jg,Mg,Og,Pg,iba,Ug,$g,ah,dh,kba,bh,lba,oba,pba,hh,kh,qba,rba,jh,sba,sh,vh,wh,vba,Ah,Ch,Fh,Hh,Kh,Lh,Mh,Nh,wba,xba,Rh,Sh,ai,zba,Bba,Aba,bi,di,Cba,ci,Dba,Ph,mi,Fba,oi,ni,Oh,qi,Gba,Hba,ri,si,Iba,Kba,wi,Mba,zi,Ai,Bi,Qba,Di,Rba,Ci,Vba,xi,Oba,Xba,Uba,Sba,Tba,Yba,Wba,Ei,Hi,$ba,aca,bca,cca,dca,eca,ica,
kca,lca,nca,mca,oca,Pi,Qi,Ri,qca,rca,Si,Ti,Ui,tca,Xi,uca,xca,Zi,$i,yca,aj,bj,Aca,Bca,fj,Cca,Dca,gj,tj,Eca,vj,xj,Fca,yj,zj,Ica,Jca,Lca,Mca,Oca,Nca,Pca,Bj,Qca,Fj,Sca,Tca,Ej,Kj,Vca,Lj,Mj,Yca,$ca,ada,Oj,cda,dda,eda,gda,fda,hda,bda,Nj,ida,Pj,jda,kda,lda,mda,Qj,Rj,Sj,Tj,Uj,nda,oda,Vj,Xj,pda,qda,Yj,rda,Zj,sda,tda,uda,bk,vda,xda,wda,yda,zda,Ada,dk,ek,fk,Bda,Cda,Eda,Fda,hk,ik,jk,kk,Gda,lk,mk,nk,ok,pk,Lda,Ida,sk,Kda,tk,Jda,rk,qk,vk,Mda,xk,wk,Nda,Oda,Dk,Ek,Gk,Rda,Fk,Jk,Sda,Kk,Pda,Vda,Wda,Xda,Vk,Wk,Zk,Yda,$k,
al,bl,cl,Zda,dl,el,fl,$da,aea,gl,bea,gk,eea,fea,gea,hea,cea,hl,jl,iea,il,kea,lea,ll,ml,mea,ol,pl,ql,nl,rl,kl,oea,pea,nea,qea,rea,sea,sl,tl,ul,vl,wl,xl,yl,tea,zl,Al,Bl,uea,wea,xea,Dl,Fl,El,Hl,Il,Jl,zea,Aea,Kl,Ll,Ml,Cea,Eea,Hea,Fea,Iea,Mea,Nl,Lea,Jea,Ol,Pl,Nea,Ql,Pea,Oea,Rl,Rea,Qea,Sea,Tea,Vl,Wl,Uea,Vea,Wea,Xl,Yl,Zea,$ea,em,afa,bfa,gfa,fm,gm,hfa,ifa,jfa,kfa,im,lfa,mfa,nfa,pm,nm,mm,ofa,pfa,qfa,qm,wm,xm,sfa,Cm,Dm,Em,Fm,Gm,Hm,ufa,vfa,wfa,Im,Km,Lm,Pm,Qm,Tm,yfa,Afa,zfa,Bfa,Cfa,Zm,Dfa,Efa,$m,Ffa,Gfa,Hfa,
Ifa,dn,bn,en,fn,gn,Jfa,Kfa,Lfa,hn,jn,kn,Mfa,Nfa,Ofa,ln,Pfa,mn,nn,Qfa,Rfa,Sfa,Tfa,Ufa,Vfa,Wfa,pn,qn,rn,tn,Zfa,un,vn,$fa,Yfa,sn,aga,wn,xn,yn,zn,dga,An,Cn,Bn,ega,fga,gga,Dn,iga,En,kga,lga,mga,nga,oga,pga,qga,rga,Hn,In,Jn,tga,sga,Yn,uga,Zn,vga,$n,wga,xga,ao,bo,co,yga,eo,fo,go,ho,io,jo,ko,lo,mo,zga,Aga,Bga,Cga,no,Dga,Fga,Ega,po,qo,Hga,Gga,Mga,Lga,ro,Nga,Oga,Pga,Rga,Qga,Sga,so,Tga,Uga,uo,Vga,Wga,Xga,Yga,vo,Zga,wo,$ga,yo,zo,bha,Ao,cha,Bo,Co,dha,eha,Do,Fo,gha,Go,fha,hha,iha,jha,lha,Ho,mha,Ko,Lo,oha,pha,sha,
tha,Mo,uha,No,Oo,Po,Qo,Ro,So,To,Uo,Vo,Wo,Xo,Yo,Zo,yha,xha,zha,Bha,Aha,Dha,wha,Cha,vha,$o,ap,Fha,Gha,Hha,ep,fp,gp,bp,Jha,hp,Eha,Lha,Mha,Nha,Kha,ip,jp,kp,lp,Oha,Iha,Pha,mp,Qha,Rha,Sha,Tha,Uha,Xha,Yha,Zha,op,$ha,cia,eia,sp,gia,fia,rp,up,hia,iia,jia,Ap,kia,lia,Bp,mia,Kp,Hp,Ip,Jp,nia,Np,Mp,oia,Pp,pia,ria,Qp,sia,tia,yia,uia,Vp,Dia,Wp,Xp,Fia,$p,Gia,Hia,aq,Jia,cq,dq,eq,Kia,gq,hq,iq,jq,lq,mq,Mia,nq,oq,Nia,Oia,pq,Pia,Qia,rq,Xia,vq,Wia,Yia,wq,xq,yq,aja,Aq,Bq,Cq,eja,Dq,fja,gja,Eq,Fq,hja,jja,kja,Gq,lja,Hq,mja,
Iq,nja,oja,pja,Jq,rja,Kq,Lq,Mq,sja,Nq,Oq,Pq,Rq,Qq,vja,wja,Sq,Tq,xja,Uq,Vq,zja,Aja,Wq,Xq,Yq,Zq,ar,br,cr,er,Bja,fr,Cja,ir,jr,kr,lr,mr,nr,pr,qr,Yla,rr,sr,tr,Nla,ur,ama,dma,vr,fma,hma,Er,ima,jma,kma,oma,mma,nma,Fr,Ir,Hr,pma,Kr,Lr,Mr,rma,Rr,sma,Ur,Sr,Xr,tma,uma,Zr,vma,as,bs,wma,cs,ds,es,gs,is,js,Yr,ks,ms,ls,Bma,zma,Ama,Cma,Dma,Ema,os,ts,us,Fma,Gma,Ima,Kma,Lma,Qma,Mma,Nma,Oma,Pma,Uma,xs,zs,Vma,Gs,Hs,Ls,Ms,Os,Ps,Rs,$ma,ana,Ts,bna,cna,Vs,dna,ena,Xs,fna,Ys,gna,at,hna,jna,kna,Zs,lna,mna,pna,ona,dt,ina,rna,
sna,gt,tna,una,jt,vna,kt,wna,xna,nt,yna,zna,Ana,Bna,rt,Cna,Dna,Ena,Fna,Gna,Hna,Ina,Jna,ut,Kna,vt,Nna,Mna,Lna,wt,Ona,xt,zt,Bt,Qna,Ft,Et,At,Gt,Rna,Sna,Jt,Kt,Una,Vna,Lt,Mt,Wna,Xna,Tna,Zna,$na,aoa,boa,coa,Pt,Qt,St,eoa,foa,Tt,ioa,hoa,goa,joa,loa,Vt,Wt,ooa,noa,moa,poa,qoa,cu,du,roa,au,soa,Yt,bu,$t,Zt,toa,uoa,lu,mu,woa,xoa,Aoa,ru,tu,uu,Boa,yu,zu,Doa,Bu,Au,Du,Foa,Eoa,Goa,Ioa,Joa,Hoa,Loa,Moa,Lu,Ru,Koa,Su,Tu,Qoa,Roa,Poa,Uoa,Voa,Ooa,Toa,Soa,Zu,$u,Zoa,apa,cpa,dpa,bpa,av,dv,ev,fpa,cv,fv,gv,kv,nv,ov,lv,hpa,pv,
qv,ipa,tv,vv,Dv,Fv,lpa,mpa,npa,opa,ppa,qpa,Gv,spa,Iv,Jv,tpa,upa,vpa,Mv,xpa,ypa,zpa,Ov,Apa,Cpa,Pv,Dpa,Qv,Rv,Cs,Kpa,Npa,Uv,Rpa,Spa,Tpa,Upa,Vv,Vpa,cw,Wpa,Zpa,bqa,$pa,mw,lw,cqa,kw,nw,ow,fqa,hqa,tw,uw,jqa,T,vw,ww,xw,yw,zw,Aw,kqa,Bw,Cw,Dw,Ew,qqa,sqa,uqa,vqa,Gw,xqa,yqa,Mw,Nw,zqa,Aqa,Ow,Rw,Bqa,Cqa,Dqa,Eqa,Vw,Uw,Ww,Xw,Yw,Sw,Zw,$w,Gqa,ax,Fqa,Jqa,Kqa,Lqa,bx,cx,dx,Mqa,ex,Sqa,fx,gx,ix,jx,nx,mx,zx,lx,Vqa,Wqa,Ax,Bx,Cx,kx,$qa,Yqa,ara,Zqa,Xqa,Fx,Gx,Ix,Lx,Nx,bra,Ox,fra,Qx,era,Ux,Rx,hra,lra,Wx,dra,cra,Xx,mra,nra,ora,
$x,by,cy,qra,dy,ey,ay,pra,rra,fy,tra,gy,hy,ura,iy,vra,jy,ky,ly,my,wra,xra,ny,yra,oy,zra,py,qy,sy,wy,yy,zy,Ay,By,Cy,Dy,Ey,Ara,Fy,Hy,Cra,Dra,Gy,Fra,Gra,Iy,Hra,Ly,Ira,My,Oy,Jra,Ny,Py,Kra,Ry,Nra,Ty,Uy,Zy,Pra,Wy,$y,bz,Qra,dz,Yy,az,Rra,ez,Sra,fz,Tra,Vy,Xy,Ora,cz,gz,Ura,Vra,iz,Wra,Xra,Yra,jz,Zra,lz,$ra,kz,asa,mz,nz,oz,pz,qz,bsa,rz,csa,tz,esa,uz,vz,wz,fsa,xz,gsa,zz,yz,hsa,isa,jsa,dsa,Az,Bz,Cz,Dz,ksa,lsa,msa,Fz,nsa,Gz,Hz,osa,psa,Iz,qsa,rsa,vsa,wsa,ssa,tsa,usa,Jz,Lz,Kz,Mz,Nz,xsa,ysa,Oz,Pz,Qz,Rz,zsa,Asa,Bsa,
Csa,Esa,Dsa,Tz,Fsa,Gsa,Hsa,Isa,Uz,Vz,Wz,Jsa,Yz,Xz,bA,cA,dA,eA,fA,Ksa,gA,$z,Lsa,Msa,jA,kA,Nsa,lA,nA,oA,pA,qA,rA,sA,tA,Osa,uA,vA,Psa,wA,xA,yA,zA,AA,BA,Rsa,Ssa,CA,DA,EA,Tsa,Usa,FA,GA,jra,Vx,Ysa,Zsa,$sa,ata,bta,cta,Px,dta,HA,IA,fta,gta,JA,kta,hta,ita,mta,nta,LA,lta,ota,MA,NA,OA,pta,qta,rta,PA,KA,sta,eta,uta,vta,RA,wta,xta,yta,TA,SA,zta,Ata,Bta,Cta,Eta,kra,ira,UA,WA,YA,ZA,$A,aB,XA,dB,Gta,vB,Ita,wB,Kta,Jta,Hta,Lta,Mta,Nta,xB,gra,yB,Ota,Sx,Pta,Qta,Rta,Sta,Uta,AB,Xta,Vta,BB,CB,IB,Zta,$ta,KB,NB,bua,dua,cua,
QB,eua,fua,gua,RB,SB,TB,UB,hua,VB,iua,WB,XB,jua,YB,kua,$B,lua,aC,bC,cC,dC,mua,nua,pua,eC,qua,oua,fC,gC,hC,iC,jC,kC,JC,EC,KC,NC,OC,vC,FC,Cua,lC,yua,GC,IC,RC,VC,Dua,WC,Eua,sC,ZC,rC,$C,cD,DC,dD,fD,gD,hD,iD,Gua,Hua,jD,Iua,Jua,Kua,Lua,kD,Mua,Rua,Qua,Nua,Pua,Oua,lD,Sua,mD,Tua,nD,pD,qD,Wua,Yua,tD,Zua,AD,iva,dva,cva,eva,kva,lva,pva,rva,FD,GD,sva,uva,vva,wva,xva,Dva,ID,Eva,Gva,Fva,Hva,KD,MD,OD,Iva,JD,PD,QD,Jva,Nva,Kva,Mva,$D,aE,dE,awa,Vva,XD,gE,$va,ZD,bwa,cwa,hE,Tva,ewa,dwa,UD,YD,cE,kwa,gwa,hwa,iwa,jwa,lwa,
iE,mwa,nwa,kE,lE,nE,TD,fE,Xva,Lva,Wva,Zva,Yva,pE,fwa,wE,xE,yE,zE,rwa,bE,swa,BE,Uva,twa,owa,eE,uwa,Qva,WD,Pva,tva,FE,GE,wwa,HE,IE,JE,LE,KE,ME,xwa,ywa,NE,PE,zwa,Awa,QE,RE,SE,Bwa,TE,Cwa,UE,VE,WE,XE,YE,ZE,Dwa,$E,Ewa,aF,cF,Hwa,bF,Iwa,Fwa,Gwa,Jwa,Kwa,Lwa,dF,eF,fF,gF,hF,Owa,mF,kF,Rwa,Qwa,Swa,pF,Pwa,qF,lF,rF,oF,nF,jF,iF,tF,uF,wF,yF,zF,AF,Uwa,BF,CF,DF,EF,FF,GF,Vwa,HF,IF,JF,Wwa,KF,Zwa,Xwa,NF,$wa,axa,bxa,exa,cxa,dxa,fxa,OF,gxa,hxa,ixa,jxa,kxa,PF,QF,RF,SF,TF,UF,VF,WF,XF,YF,ZF,$F,aG,bG,cG,dG,eG,fG,gG,hG,iG,jG,
kG,lG,mG,nG,oG,pG,qG,rG,sG,tG,uG,vG,wG,xG,yG,zG,AG,BG,CG,DG,EG,FG,GG,HG,IG,JG,KG,LG,MG,NG,OG,PG,mxa,nxa,lxa,pxa,qxa,oxa,QG,rxa,RG,SG,TG,UG,VG,txa,sxa,WG,XG,YG,uxa,aH,bH,vxa,Axa,cH,Bxa,dH,eH,Cxa,fH,Dxa,Exa,Fxa,Gxa,Hxa,gH,hH,Jxa,Ixa,Kxa,iH,jH,Nxa,Oxa,kH,Pxa,Qxa,lH,nH,oH,pH,qH,tH,vH,wH,Rxa,Sxa,xH,Txa,Uxa,yH,Vxa,AH,Wxa,Xxa,BH,CH,Yxa,Zxa,DH,aya,$xa,EH,cya,FH,dya,HH,IH,KH,eya,fya,gya,hya,iya,LH,NH,mya,pya,jya,OH,yya,PH,Aya,zya,Cya,Dya,Fya,Eya,Gya,Hya,Iya,Jya,QH,RH,Kya,Lya,Mya,Nya,Oya,Pya,YH,Rya,Sya,WH,
XH,Qya,Tya,Uya,ZH,Xya,Vya,Zya,Yya,$ya,$H,Twa,aza,Nwa,bza,cza,dza,aI,jza,fza,gza,hza,kza,bI,nza,lza,oza,pza,mza,iza,qza,zH,sza,tza,rza,cI,dI,uza,vza,wza,eI,gI,yza,hI,kI,lI,zza,Aza,Bza,mI,Dza,Eza,Fza,Gza,Hza,Iza,Jza,rI,Kza,sI,Lza,Mza,Nza,uI,Oza,Pza,Qza,xI,yI,zI,Rza,AI,Sza,CI,Uza,Tza,DI,EI,FI,GI,Vza,HI,II,Wza,JI,KI,$za,Xza,Zza,Yza,aAa,MI,NI,bAa,cAa,dAa,OI,eAa,gAa,fAa,PI,QI,RI,SI,TI,VI,WI,XI,YI,ZI,$I,aJ,iAa,hAa,bJ,jAa,cJ,dJ,eJ,fJ,gJ,jJ,kJ,lJ,mJ,nJ,oJ,pJ,qJ,lAa,nAa,mAa,rJ,qAa,rAa,vJ,wJ,tAa,yJ,uAa,vAa,
wAa,zJ,yAa,BJ,zAa,CJ,DJ,EJ,FJ,BAa,HJ,EAa,DAa,CAa,GAa,IJ,JJ,KJ,LJ,MJ,NJ,OJ,SJ,IAa,KAa,LAa,eK,MAa,Bs,OAa,NAa,PAa,RAa,QAa,TAa,SAa,hK,UAa,VAa,XAa,YAa,bBa,aBa,iBa,kBa,lBa,pK,rK,sK,tK,uK,nBa,vK,wK,oBa,xK,pBa,yK,zK,AK,BK,CK,DK,qBa,rBa,EK,sBa,HK,vBa,wBa,IK,xBa,LK,JK,MK,KK,eza,yBa,zBa,ABa,BBa,RK,QK,EBa,HBa,bL,cL,dL,IBa,JBa,eL,fL,KBa,LBa,hL,iL,OBa,MBa,PBa,QBa,RBa,SBa,UBa,sL,YBa,vL,$Ba,wL,XBa,aCa,bCa,uL,ZBa,xL,yL,zL,VK,OK,BL,DL,eCa,cCa,dCa,EL,HL,gCa,GL,hCa,iCa,ML,NL,OL,SL,kCa,lCa,TL,UL,mCa,nCa,oCa,pCa,VL,rCa,
qCa,sCa,WL,tCa,uCa,YL,ZL,vCa,bM,xCa,dM,$L,yCa,zCa,wCa,eM,fM,iM,ACa,BCa,hM,kM,jM,mM,oM,CCa,rM,DCa,GCa,ECa,HCa,uM,vM,ICa,JCa,yM,zM,AM,BM,CM,EM,LCa,KCa,MCa,GM,OCa,NCa,PCa,QCa,RCa,SCa,MM,NM,TCa,OM,PM,UCa,VCa,WCa,XCa,QM,TM,ZCa,YCa,UM,VM,WM,$Ca,XM,YM,ZM,$M,aDa,aN,bN,bDa,cN,cDa,eDa,dDa,hN,fN,gN,fDa,gDa,hDa,iN,jN,kN,lN,mN,iDa,jDa,kDa,pN,qN,rN,tN,uN,vN,xN,yN,zN,AN,BN,lDa,oDa,CN,mDa,nDa,sDa,tDa,EN,vDa,uDa,wDa,xDa,yDa,GN,IN,ADa,JN,zDa,KN,BDa,DDa,CDa,LN,MN,NN,ON,EDa,PN,FDa,SN,GDa,VN,IDa,TN,HDa,KDa,XN,LDa,NDa,
bO,ODa,PDa,ZN,WN,dO,YN,eO,SDa,fO,aO,JDa,RDa,cO,MDa,QDa,TDa,QN,hO,UDa,VDa,$N,iO,jO,kO,lO,mO,nO,oO,pO,qO,rO,sO,XDa,vO,wO,xO,yO,zO,AO,BO,CO,YDa,DO,EO,FO,GO,IO,HO,JO,KO,ZDa,LO,$Da,bEa,aEa,MO,NO,cEa,OO,PO,dEa,QO,eEa,RO,fEa,SO,UO,XO,WO,$O,ZO,gEa,YO,bP,iEa,jEa,cP,dP,eP,fP,hP,kEa,pM,hEa,oEa,KM,lEa,jP,nEa,LM,mEa,pEa,rEa,qEa,sEa,tEa,mP,uEa,nP,vEa,pP,wEa,qP,xEa,rP,sP,yEa,uP,AEa,zEa,tP,vP,wP,BEa,CEa,DEa,EEa,FEa,GEa,zP,AP,LEa,OEa,MEa,IEa,CP,HEa,NEa,FP,QEa,PEa,GP,SEa,UEa,VEa,TEa,LP,WEa,$Ea,TP,aFa,UP,WP,XP,YP,bFa,
MP,ZP,aQ,dFa,cFa,bQ,cQ,eFa,dQ,RP,QP,gFa,hFa,iFa,jFa,kFa,NP,YEa,SP,OP,eQ,pFa,gQ,qFa,rFa,nFa,iQ,sFa,jQ,lFa,lQ,oFa,tFa,kQ,hQ,uFa,mQ,vFa,fQ,xFa,pQ,yFa,nQ,qQ,oQ,sQ,zFa,tQ,uQ,AFa,vQ,wQ,xQ,yQ,BFa,zQ,CFa,BQ,FFa,GFa,HFa,EQ,DQ,CQ,IFa,JFa,KFa,LFa,HQ,IQ,JQ,MFa,NFa,OFa,KQ,PFa,MQ,QFa,LQ,NQ,OQ,RFa,TFa,XFa,UFa,VFa,WFa,YFa,UQ,VQ,ZFa,aGa,bGa,WQ,cGa,XQ,dGa,iGa,jGa,kGa,bR,cR,lGa,hGa,mGa,YQ,eGa,nGa,ZQ,$Q,fGa,gGa,aR,oGa,pGa,qGa,bva,hva,eR,fR,tGa,rGa,sGa,gR,uGa,hR,iR,vGa,wGa,xGa,jR,yGa,zGa,lR,AGa,mR,nR,BGa,pR,DGa,qR,HGa,
tR,SQ,CGa,JGa,vR,FGa,GGa,EGa,uR,sR,rR,IGa,NGa,LGa,KGa,xR,OGa,yR,PGa,zR,AR,QGa,RGa,SGa,TGa,UGa,PQ,CR,DR,ER,FR,GR,XGa,YGa,RQ,TQ,aHa,JR,KR,$Fa,NR,IR,bHa,HR,ZGa,$Ga,OR,cHa,dHa,MR,QQ,LR,eHa,fHa,gHa,PR,iHa,hHa,QR,mHa,RR,oHa,nHa,TR,SR,qHa,VR,UR,rHa,kHa,YR,pHa,lHa,WR,ZR,sHa,$R,cS,tHa,aS,wHa,bS,xHa,dS,vHa,uHa,yHa,eS,zHa,AHa,DHa,CHa,BHa,fS,EHa,IHa,JHa,kS,lS,mS,LHa,MHa,nS,oS,pS,OHa,sS,PHa,iS,QHa,KHa,RHa,SHa,UHa,MGa,wS,xS,THa,oR,qS,NHa,VHa,WHa,XHa,YHa,ZHa,FHa,hS,jS,$Ha,zS,AS,aIa,bIa,cIa,dIa,BS,eIa,gIa,fIa,iIa,
DS,mIa,jIa,lIa,nIa,ES,rIa,pIa,qIa,tIa,uIa,vIa,GS,CS,wIa,oIa,yIa,HS,zIa,kIa,AIa,IS,CIa,DIa,JS,BIa,KS,LS,EIa,MS,NS,OS,GIa,JIa,IIa,HIa,QS,KIa,PS,LIa,SS,US,MIa,PIa,NIa,OIa,QIa,RIa,TIa,SIa,UIa,VIa,VS,XIa,YIa,ZIa,WIa,$Ia,bJa,dJa,eJa,aJa,fJa,gJa,iJa,hJa,jJa,cJa,XS,YS,kJa,ZS,$S,aT,dT,eT,pJa,qJa,fT,rJa,tJa,sJa,iT,gT,nJa,vJa,uJa,wJa,kT,xJa,zJa,yJa,AJa,lT,mT,BJa,nT,EJa,oT,FJa,pT,HJa,rT,qT,IJa,tT,GJa,uT,JJa,sT,KJa,vT,LJa,oJa,jT,NJa,OJa,PJa,QJa,RJa,SJa,TJa,VJa,WJa,XJa,UJa,YJa,ZJa,xT,$Ja,aKa,yT,zT,bKa,cKa,dKa,
BT,fKa,DT,gKa,hKa,CT,AT,eKa,GT,FT,iKa,HT,ET,jKa,JT,nKa,MT,oKa,lKa,KT,pKa,NT,mKa,qKa,OT,sKa,IT,tKa,uKa,rKa,vKa,LT,wKa,xKa,kKa,PT,QT,yKa,RT,BR,GHa,WGa,TT,zKa,HHa,VGa,AKa,UT,ST,BKa,DKa,EKa,CKa,GKa,FKa,JKa,HKa,IKa,LKa,KKa,MKa,NKa,OKa,VT,XT,QKa,UKa,TKa,eU,gU,fU,XKa,ZKa,bLa,gLa,dLa,fLa,kLa,iU,lLa,mLa,nLa,kU,oLa,pLa,lU,WT,qLa,rLa,PKa,jU,tLa,uLa,ALa,xLa,BLa,yLa,vLa,CLa,DLa,wLa,FLa,mU,GLa,ILa,JLa,KLa,sF,sU,LLa,OLa,XEa,PLa,tU,TS,QLa,BU,vU,JP,rU,CU,EU,uS,vS,FU,sLa,NLa,zU,AU,tS,VLa,ULa,yU,wU,GU,XLa,DP,YLa,RS,
REa,IU,$P,MLa,uU,ZLa,$La,JU,KEa,aMa,cMa,TLa,nU,dMa,KU,xU,oU,eMa,LU,EP,fMa,MU,VP,gMa,hMa,iMa,JEa,HU,WLa,qMa,mMa,lMa,tMa,uMa,RU,KP,wMa,vMa,VU,WU,XU,yMa,WS,OU,pMa,cV,zMa,bV,kMa,AMa,BMa,SLa,QU,CMa,DMa,sMa,gV,EMa,NU,ZU,$U,YU,jV,JMa,UU,eV,kV,lV,KMa,aV,xMa,iV,FMa,mV,LMa,MMa,NMa,NK,OMa,dV,nV,QMa,SU,oV,pV,TU,RMa,SMa,oMa,hV,fV,TMa,nMa,UMa,qV,rV,EFa,VMa,WMa,sV,rw,X,tV,YMa,vV,$Ma,uV,aNa,yV,wV,zV,xV,bNa,AV,BV,CV,cNa,DV,EV,FV,GV,HV,IV,eNa,dNa,fNa,JV,KV,xxa,yxa,zxa,Ywa,MV,iNa,UV,VV,$G,WV,LF,TV,XV,lNa,mNa,nNa,oNa,
gNa,pNa,LV,qNa,rNa,$V,QV,ZV,eW,aW,OV,sNa,NV,YV,bW,fW,RV,SV,dW,cW,uNa,gW,hW,vNa,iW,Y,jW,LI,kW,wNa,zNa,ANa,ENa,lW,FNa,BNa,GNa,mW,nW,oW,INa,LNa,JNa,ONa,WNa,VNa,PNa,XNa,RNa,SNa,QNa,$Na,bOa,dOa,gOa,hOa,jOa,kOa,nOa,pOa,lOa,BW,qOa,tOa,vOa,sOa,xOa,yOa,zOa,DW,gqa,BOa,AOa,FW,pw,HW,IW,dqa,JW,DOa,EOa,CW,zW,qW,tW,KW,LW,vW,uW,FOa,NNa,rW,sW,yW,GOa,HOa,MW,IOa,NW,JOa,EW,xW,wW,pW,eOa,iOa,AW,rOa,YNa,TNa,OW,PW,QW,KOa,RW,SW,TW,UW,VW,WW,XW,xNa,YW,yNa,MOa,LOa,HNa,fOa,NOa,wOa,OOa,POa,cOa,MNa,KNa,DNa,ZNa,CNa,UNa,mOa,oOa,
ROa,uOa,aOa,SOa,ZW,QOa,$W,ZG,PV,jNa,GW,TOa,UOa,aX,bX,cX,dX,VOa,eX,fX,gX,hNa,WOa,hX,XOa,YOa,iX,kX,lX,mX,nX,$Oa,pX,qX,rX,ZOa,oX,aPa,bPa,cPa,sX,qw,gPa,fPa,tX,uX,jX,hPa,iPa,jPa,vX,wX,kPa,xX,yX,lPa,mPa,nPa,oPa,zX,pPa,AX,BX,CX,DX,EX,ZX,qPa,iY,kY,lY,mY,nY,oY,pY,qY,rPa,sPa,tPa,rY,sY,tY,uY,uPa,vY,vPa,wY,wPa,xY,xPa,yY,zY,AY,BY,CY,DY,yPa,FY,GY,zPa,APa,BPa,IY,HY,KY,LY,JY,NY,CPa,DPa,ePa,MY,OY,EPa,PY,GPa,FPa,QY,RY,COa,HPa,SY,IPa,TY,KPa,LPa,JPa,MPa,UY,NPa,OPa,PPa,VY,WY,XY,QPa,YY,ZY,$Y,RPa,aZ,bZ,SPa,cZ,EY,dZ,eZ,
fZ,wxa,gZ,TPa,hZ,UPa,iZ,jZ,VPa,kZ,lZ,mZ,WPa,XPa,YPa,nZ,ZPa,oZ,pZ,aQa,$Pa,bQa,cQa,dQa,qZ,rZ,sZ,eQa,fQa,gQa,hQa,iQa,jQa,kQa,lQa,mQa,nQa,tZ,uZ,oQa,pQa,vZ,wZ,xZ,yZ,qQa,zZ,rQa,AZ,sQa,tQa,BZ,uQa,vQa,CZ,wQa,xQa,DZ,EZ,yQa,FZ,GZ,IZ,zQa,JZ,KZ,LZ,AQa,MZ,BQa,NZ,OZ,CQa,PZ,DQa,EQa,FQa,GQa,HQa,IQa,RZ,JQa,KQa,LQa,MQa,NQa,SZ,TZ,OQa,UZ,VZ,WZ,XZ,PQa,YZ,QQa,RQa,SQa,a_,TQa,UQa,VQa,b_,$Z,WQa,d_,XQa,e_,YQa,f_,g_,h_,i_,j_,ZQa,aRa,$Qa,bRa,k_,cRa,dRa,l_,eRa,m_,n_,o_,fRa,gRa,p_,hRa,q_,iRa,r_,jRa,kRa,s_,eqa,lRa,mRa,ba,ha,fa,
Cj,Qa,faa;ca=function(a){return function(){return ba[a].apply(this,arguments)}};
g.da=function(a,b){return ba[a]=b};
ea=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ia=function(a,b){if(b)a:{var c=fa;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ha(c,a,{configurable:!0,writable:!0,value:b})}};
ka=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ea(a)}};
la=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:la(g.r(a))};
ma=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.v=function(a,b){a.prototype=oa(b.prototype);a.prototype.constructor=a;if(pa)pa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.re=b.prototype};
ra=function(){this.K=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.J=0;this.X=this.B=null};
sa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
ta=function(a,b){a.B={dM:b,mN:!0};a.j=a.J||a.D};
g.A=function(a,b,c){a.j=c;return{value:b}};
g.ua=function(a){a.j=0};
g.va=function(a,b,c){a.J=b;void 0!=c&&(a.D=c)};
g.wa=function(a,b){a.j=b;a.J=0};
g.xa=function(a){a.J=0;var b=a.B.dM;a.B=null;return b};
g.ya=function(a){a.X=[a.B];a.J=0;a.D=0};
g.za=function(a,b){var c=a.X.splice(0)[0];(c=a.B=a.B||c)?c.mN?a.j=a.J||a.D:void 0!=c.Ya&&a.D<c.Ya?(a.j=c.Ya,a.B=null):a.j=a.D:a.j=b};
baa=function(a){this.j=new ra;this.u=a};
caa=function(a,b){sa(a.j);var c=a.j.C;if(c)return Aa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ba(a)};
Aa=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.K=!1,e;var f=e.value}catch(k){return a.j.C=null,ta(a.j,k),Ba(a)}a.j.C=null;d.call(a.j,f);return Ba(a)};
Ba=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.K=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,ta(a.j,c)}a.j.K=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.mN)throw b.dM;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){sa(a.j);a.j.C?b=Aa(a,a.j.C.next,b,a.j.S):(a.j.S(b),b=Ba(a));return b};
this.throw=function(b){sa(a.j);a.j.C?b=Aa(a,a.j.C["throw"],b,a.j.S):(ta(a.j,b),b=Ba(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.Ca=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Da=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{YM:e,PQ:f}}return{YM:-1,PQ:void 0}};
Ea=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Fa=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ga=function(a){return a?a:Array.prototype.fill};
Ha=function(a){return a?a:Array.prototype.copyWithin};
g.Ja=function(a,b,c){a=a.split(".");c=c||g.C;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
g.Ka=function(a,b){a=a.split(".");b=b||g.C;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
La=function(a){a.Ze=void 0;a.getInstance=function(){return a.Ze?a.Ze:a.Ze=new a}};
Ma=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Oa=function(a){var b=Ma(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Pa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ra=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++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.Sa=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.Sa=gaa:g.Sa=haa;return g.Sa.apply(null,arguments)};
g.Ta=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.Ua=function(){return Date.now()};
g.Va=function(a,b){function c(){}
c.prototype=b.prototype;a.re=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Mh=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)}};
Wa=function(a){return a};
Xa=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Ya=function(){return Error("Failed to read varint, encoding is invalid.")};
Za=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
$a=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,$a);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.ST=b)};
ab=function(a,b){var c=$a.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($a,this,d+a[e])};
iaa=function(){};
bb=function(){throw Error("Invalid UTF8");};
cb=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.eb=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=(db||(db=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.fb=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};
gb=function(a,b){return 0==a.lastIndexOf(b,0)};
ib=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.lb=function(a){return/^[\s\xa0]*$/.test(a)};
nb=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.ob=function(a,b){return-1!=a.indexOf(b)};
pb=function(a,b){return g.ob(a.toLowerCase(),b.toLowerCase())};
g.sb=function(a,b){var c=0;a=qb(String(a)).split(".");b=qb(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=rb(0==f[1].length?0:parseInt(f[1],10),0==k[1].length?0:parseInt(k[1],10))||rb(0==f[2].length,0==k[2].length)||rb(f[2],k[2]);f=f[3];k=k[3]}while(0==c)}return c};
rb=function(a,b){return a<b?-1:a>b?1:0};
g.tb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""};
vb=function(a){var b=ub;return b?b.brands.some(function(c){return(c=c.brand)&&g.ob(c,a)}):!1};
wb=function(a){return g.ob(g.tb(),a)};
xb=function(){var a=ub;return!!a&&0<a.brands.length};
yb=function(){return xb()?!1:wb("Opera")};
zb=function(){return xb()?!1:wb("Trident")||wb("MSIE")};
Ab=function(){return xb()?!1:wb("Edge")};
Bb=function(){return xb()?vb("Microsoft Edge"):wb("Edg/")};
Cb=function(){return wb("Firefox")||wb("FxiOS")};
Eb=function(){return wb("Safari")&&!(Db()||(xb()?0:wb("Coast"))||yb()||Ab()||Bb()||(xb()?vb("Opera"):wb("OPR"))||Cb()||wb("Silk")||wb("Android"))};
Db=function(){return xb()?vb("Chromium"):(wb("Chrome")||wb("CriOS"))&&!Ab()||wb("Silk")};
Fb=function(){return wb("Android")&&!(Db()||Cb()||yb()||wb("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.tb();if("Internet Explorer"===a){if(zb())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=saa(c);switch(a){case "Opera":if(yb())return b(["Version","Opera"]);if(xb()?vb("Opera"):wb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Ab())return b(["Edge"]);if(Bb())return b(["Edg"]);break;case "Chromium":if(Db())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Cb()||"Safari"===a&&Eb()||"Android Browser"===a&&Fb()||"Silk"===a&&wb("Silk")?(b=c[2])&&b[1]||"":""};
Gb=function(a){if(xb()&&"Silk"!==a){var b=ub.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])};
Hb=function(){var a=ub;return!!a&&!!a.platform};
Ib=function(){return Hb()?"Android"===ub.platform:wb("Android")};
Jb=function(){return wb("iPhone")&&!wb("iPod")&&!wb("iPad")};
Kb=function(){return Jb()||wb("iPad")||wb("iPod")};
Lb=function(){return Hb()?"macOS"===ub.platform:wb("Macintosh")};
Mb=function(){return Hb()?"Windows"===ub.platform:wb("Windows")};
Nb=function(){var a=g.tb(),b="";if(Mb())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Kb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Lb())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(pb(g.tb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Ib())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Hb()?"Chrome OS"===ub.platform:wb("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Ob=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.Qb=function(a,b,c){b=Pb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Pb=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.Rb=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.Tb=function(a,b){return 0<=Sb(a,b)};
g.Ub=function(a){return 0==a.length};
Vb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Zb=function(a,b){b=Sb(a,b);var c;(c=0<=b)&&g.Yb(a,b);return c};
g.Yb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.$b=function(a,b){b=Pb(a,b);0<=b&&g.Yb(a,b)};
vaa=function(a,b){var c=0;uaa(a,function(d,e){b.call(void 0,d,e,a)&&g.Yb(a,e)&&c++})};
g.ac=function(a){return Array.prototype.concat.apply([],arguments)};
g.cc=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.dc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Oa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.fc=function(a,b,c,d){Array.prototype.splice.apply(a,ec(arguments,1))};
ec=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
waa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Pa(e)?"o"+g.Ra(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.ic=function(a,b,c){return gc(a,c||hc,!1,b)};
jc=function(a,b){return gc(a,b,!0)};
gc=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.kc=function(a,b){a.sort(b||hc)};
xaa=function(a,b){var c=hc;g.kc(a,function(d,e){return c(b(d),b(e))})};
g.lc=function(a,b){if(!g.Oa(a)||!g.Oa(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};
hc=function(a,b){return a>b?1:a<b?-1:0};
yaa=function(a,b){return a===b};
g.nc=function(a,b,c){c=g.ic(a,b,c);0>c&&g.fc(a,-(c+1),0,b)};
g.pc=function(a,b,c){var d={};(0,g.oc)(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])};
qc=function(a){qc[" "](a);return a};
rc=function(a,b){try{return qc(a[b]),!0}catch(c){}return!1};
sc=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
tc=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.wc=function(a){return sc(Baa,a,function(){return 0<=g.sb(vc,a)})};
g.xc=function(a){return Number(Caa)>=a};
g.Ac=function(a,b){void 0===b&&(b=0);yc();b=zc[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.Bc=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.Ac(b,3)};
Hc=function(a){var b=[];Fc(a,function(c){b.push(c)});
return b};
Jc=function(a){!g.Ic||g.wc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ob("=.",a[b-1])&&(c=g.ob("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Fc(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Fc=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Kc[n];if(null!=p)return p;if(!g.lb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
yc();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))}};
yc=function(){if(!Kc){Kc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));zc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Kc[f]&&(Kc[f]=e)}}}};
Mc=function(a){return Lc&&null!=a&&a instanceof Uint8Array};
Oc=function(){return Nc||(Nc=new Uint8Array(0))};
Qc=function(a){if(a!==Pc)throw Error("illegal external caller");};
Rc=function(a,b){Qc(b);this.Zc=a;if(null!==a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Tc=function(){return Sc||(Sc=new Rc(null,Pc))};
Vc=function(a){return(a=Uc(a))?new Uint8Array(a):Oc()};
Uc=function(a){Qc(Pc);var b=a.Zc;b=null==b||Mc(b)?b:"string"===typeof b?Jc(b):null;return a.Zc=b};
Yc=function(a){if("string"===typeof a)return{buffer:Jc(a),Jt:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Jt:!1};if(a.constructor===Uint8Array)return{buffer:a,Jt:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Jt:!1};if(a.constructor===Rc)return{buffer:Uc(a)||Oc(),Jt:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Jt:!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.ad=function(a){var b=+("-"===a[0]);g.Zc=g.$c=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.Zc*=1E6,g.$c=1E6*g.$c+d,4294967296<=g.$c&&(g.Zc+=g.$c/4294967296|0,g.$c%=4294967296);b&&(a=g.$c,b=g.Zc,b=~b,a?a=~a+1:b+=1,b=g.r([a,b]),a=b.next().value,b=b.next().value,g.$c=a,g.Zc=b)};
g.bd=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.dd=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.u[a.j++],cd(a),c|=(b&127)<<7*e;128<=b&&(b=a.u[a.j++],cd(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++],cd(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 Ya();};
cd=function(a){if(a.j>a.B)throw Za(a.B,a.j);};
g.ed=function(a){var b=a.u,c=b[a.j+0],d=c&127;if(128>c)return a.j+=1,cd(a),d;c=b[a.j+1];d|=(c&127)<<7;if(128>c)return a.j+=2,cd(a),d;c=b[a.j+2];d|=(c&127)<<14;if(128>c)return a.j+=3,cd(a),d;c=b[a.j+3];d|=(c&127)<<21;if(128>c)return a.j+=4,cd(a),d;c=b[a.j+4];a.j+=5;d|=(c&15)<<28;if(128>c)return cd(a),d;if(128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++])throw Ya();cd(a);return d};
g.fd=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;cd(a);return(b<<0|c<<8|d<<16|e<<24)>>>0};
g.gd=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,cd(a),!!(b&127)}throw Ya();};
hd=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);if(a.j+b>a.B)throw Za(b,a.B-a.j);};
id=function(a,b){hd(a,b);if(0==b)return Tc();if(a.Hz&&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?Oc():Daa?c.slice(d,e):new Uint8Array(c.subarray(d,e))}a.j+=b;return 0==c.length?Tc():new Rc(c,Pc)};
md=function(a){if(jd.length){var b=jd.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.bd(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;kd(this)};
kd=function(a){var b={};a.NE=void 0===b.NE?!1:b.NE};
nd=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.ed(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Xa(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
od=function(a){switch(a.u){case 0:0!=a.u?od(a):g.gd(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)od(a);else{var b=g.ed(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!nd(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}od(a)}while(1);break;default:throw Xa(a.u,a.B);}};
g.pd=function(a,b,c){var d=a.j.B,e=g.ed(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.qd=function(a){var b=a.j;a=g.fd(b);var c=g.fd(b);b=2*(c>>31)+1;var d=c>>>20&2047;a=4294967296*(c&1048575)+a;return 2047==d?a?NaN:Infinity*b:0==d?b*Math.pow(2,-1074)*a:b*Math.pow(2,d-1075)*(a+4503599627370496)};
g.td=function(a){var b=g.ed(a.j)>>>0;a=a.j;hd(a,b);var c=a.j;a.j+=b;a=a.u;if(Eaa){var d=a,e;(e=rd)||(e=rd=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===sd){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),sd=!0}catch(p){sd=!1}}!sd&&(rd=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?bb():(m=a[f++],194>l||128!==(m&192)?(f--,bb()):c.push((l&
31)<<6|m&63)):240>l?f>=b-1?bb():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,bb()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?bb():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,bb()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):bb(),8192<=c.length&&(k=cb(k,c),c.length=0);f=cb(k,c)}return f};
vd=function(a){var b=g.ed(a.j)>>>0;return id(a.j,b)};
wd=function(a,b){this.u=a>>>0;this.j=b>>>0};
yd=function(a){if(!a)return xd||(xd=new wd(0,0));if(!/^-?\d+$/.test(a))return null;g.ad(a);return new wd(g.$c,g.Zc)};
zd=function(){this.j=[]};
Ad=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)};
Bd=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Cd=function(a,b){if(0<=b)Bd(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
g.Dd=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 zd};
Ed=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
Gd=function(a,b){g.Fd(a,b,2);b=a.j.end();Ed(a,b);b.push(a.u);return b};
Hd=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.D){Ed(a,a.j.end());for(var c=0;c<b.length;c++)Ed(a,Uc(b[c])||Oc())}};
g.Fd=function(a,b,c){Bd(a.j,8*b+c)};
g.Kd=function(a,b,c){g.Fd(a,b,2);Bd(a.j,c.length);Ed(a,a.j.end());Ed(a,c)};
Md=function(a,b){Object.isFrozen(a)||(Ld?a[Ld]|=b:void 0!==a.SA?a.SA|=b:Object.defineProperties(a,{SA:{value:b,configurable:!0,writable:!0,enumerable:!1}}))};
Nd=function(a){var b;Ld?b=a[Ld]:b=a.SA;return null==b?0:b};
Od=function(a){Md(a,1);return a};
Pd=function(a){return Array.isArray(a)?!!(Nd(a)&2):!1};
Qd=function(a){if(!Array.isArray(a))throw Error("cannot mark non-array as immutable");Md(a,2)};
Rd=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
Sd=function(a){return null==a?Tc():a.constructor===Rc?a:"string"===typeof a?a?new Rc(a,Pc):Tc():Mc(a)?a.length?new Rc(new Uint8Array(a),Pc):Tc():Tc()};
Td=function(a){if(Pd(a.He))throw Error("Cannot mutate an immutable Message");};
Ud=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};
Xd=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Mc(a))return g.Ac(a);if(a instanceof Rc){var b=a.Zc;b=null==b||"string"===typeof b?b:Lc&&b instanceof Uint8Array?g.Ac(b):null;return(a.Zc=b)||""}}}return a};
Zd=function(a,b){b=void 0===b?Haa:b;return Yd(a,b)};
$d=function(a,b){if(null!=a){if(Array.isArray(a))a=Yd(a,b);else if(Rd(a)){var c={},d;for(d in a)c[d]=$d(a[d],b);a=c}else a=b(a);return a}};
Yd=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=$d(c[d],b);Array.isArray(a)&&Nd(a)&1&&Od(c);return c};
ae=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=Xd(a);return Array.isArray(a)?Zd(a,ae):a};
Haa=function(a){return Mc(a)?new Uint8Array(a):a};
g.be=function(a,b,c){return-1===b?null:b>=a.C?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&(c=a.u[b],null!=c)?c:a.He[b+a.B]};
g.D=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||Td(a);b<a.C&&!d?a.He[b+a.B]=c:(a.u||(a.u=a.He[a.C+a.B]={}))[b]=c;return a};
g.de=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;var e=g.be(a,b,d);null==e&&(e=ce);if(Pd(a.He))c&&(Qd(e),Object.freeze(e));else if(e===ce||Pd(e))e=Od(e.slice()),g.D(a,b,e,d);return e};
ee=function(a,b){var c=g.be(a,b);if(null==c)return null;if(c instanceof Rc)return c;c=Sd(c);g.D(a,b,c,void 0,!0);return c};
fe=function(a,b,c){a=g.be(a,b);return null==a?c:a};
ge=function(a,b){var c=void 0===c?"":c;a=ee(a,b);return null==a?c?new Rc(c,Pc):Tc():a};
he=function(a,b,c){var d=void 0===d?!1:d;return g.D(a,b,null==c?Od([]):Array.isArray(c)?Od(c):c,d)};
ie=function(a,b,c){g.D(a,b,void 0,!1,void 0===c?!1:c)};
je=function(a,b,c,d){Td(a);c!==d?g.D(a,b,c):ie(a,b);return a};
g.ke=function(a,b,c,d,e){Td(a);a=g.de(a,b);e&&Nd(a)&4&&(c=Sd(c));void 0!=d?a.splice(d,0,c):a.push(c)};
g.me=function(a,b,c,d){Td(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.be(a,e)&&(0!==c&&ie(a,c,!0),c=e)}return c};
g.ne=function(a,b,c){var d=void 0===d?!1:d;Td(a);a.j||(a.j={});var e=a.j[c];if(e)return e;e=g.be(a,c,d);b=new b(e);null==e&&g.D(a,c,b.He,d);return a.j[c]=b};
qe=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.be(a,c,void 0===e?!1:e);if(null==e&&!d)return f;b=new b(e);Pd(a.He)&&Qd(b.He);return a.j[c]=b};
re=function(a,b,c,d){d=void 0===d?!1:d;a.j||(a.j={});var e=Pd(a.He),f=a.j[c];if(!f){d=g.de(a,c,!0,d);f=[];e=e||Pd(d);for(var k=0;k<d.length;k++)f[k]=new b(d[k]),e&&Qd(f[k].He);e&&(Qd(f),Object.freeze(f));a.j[c]=f}return f};
se=function(a,b,c,d){d=void 0===d?!1:d;Td(a);a.j||(a.j={});var e=c?c.He:c;a.j[b]=c;return g.D(a,b,e,d)};
te=function(a,b,c,d){Td(a);a.j||(a.j={});var e=d?d.He:d;a.j[b]=d;g.me(a,b,c,e)};
ue=function(a,b,c,d){d=void 0===d?!1:d;Td(a);if(c){var e=Od([]);for(var f=0;f<c.length;f++)e[f]=c[f].He;a.j||(a.j={});a.j[b]=c}else a.j&&(a.j[b]=void 0),e=ce;return g.D(a,b,e,d)};
we=function(a,b,c,d){var e=void 0===e?!1:e;Td(a);e=re(a,c,b,e);c=d?d:new c;a=g.de(a,b);e.push(c);a.push(c.He);return c};
xe=function(a,b,c){return fe(a,b,void 0===c?0:c)};
ze=function(a,b,c){a||(a=ye);ye=null;var d=this.constructor.j;a||(a=d?[d]:[]);this.B=(d?0:-1)-(this.constructor.u||0);this.j=void 0;this.He=a;a:{d=this.He.length;a=d-1;if(d&&(d=this.He[a],Rd(d))){this.C=a-this.B;this.u=d;break a}void 0!==b&&-1<b?(this.C=Math.max(b,a+1-this.B),this.u=void 0):this.C=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)if(a=c[b],a<this.C)a+=this.B,(d=this.He[a])?Array.isArray(d)&&Od(d):this.He[a]=ce;else{d=this.u||(this.u=this.He[this.C+this.B]={});var e=d[a];e?Array.isArray(e)&&
Od(e):d[a]=ce}};
Be=function(a){Ae=!0;try{return JSON.stringify(a.toJSON(),Iaa)}finally{Ae=!1}};
Ce=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 "+Ma(b)+": "+b);ye=b;a=new a(b);ye=null;return a};
Iaa=function(a,b){return Xd(b)};
De=function(a,b){b.D&&(a.D=b.D.slice());var c=b.j;if(c){b=b.u;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),k=+d;if(Array.isArray(e)){if(e.length)for(f=re(a,e[0].constructor,k,f),k=0;k<Math.min(f.length,e.length);k++)De(f[k],e[k])}else(f=qe(a,e.constructor,k,void 0,f))&&De(f,e)}}}};
Ee=function(){ze.apply(this,arguments)};
He=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],k=f.V_;k||(d.Zu=f.Nha||f.BZ.IC,f.oL?(d.TC=Fe(f.oL),k=function(l){return function(m,n,p){return l.Zu(m,n,p,l.TC)}}(d)):f.RN?(d.UC=Ge(f.ZE.iq,f.RN),k=function(l){return function(m,n,p){return l.Zu(m,n,p,l.UC)}}(d)):k=d.Zu,f.V_=k);
k(b,a,f.ZE);d={Zu:d.Zu,TC:d.TC,UC:d.UC}}}Gaa(b,a)};
Je=function(a,b,c){return a[Ie]||(a[Ie]=function(d,e){return b(d,e,c)})};
Me=function(a){var b=a[Ie];if(!b){var c=Ke(a);b=function(d,e){return Le(d,e,c)};
a[Ie]=b}return b};
Jaa=function(a){var b=a.oL;if(b)return Me(b);if(b=a.Mha)return Je(a.ZE.iq,b,a.RN)};
Kaa=function(a){var b=Jaa(a),c=a.ZE,d=a.BZ.Cl;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
Pe=function(a,b,c,d,e,f){a=a();b.iq=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=a[k++];Array.isArray(m)?d(b,c,l,m):e(b,c,l,m);break;case 2:e(b,c,l,a[k++],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};
Fe=function(a){var b=a[Qe];if(!b){var c=Re(a);b=function(d,e){return Se(d,e,c)};
a[Qe]=b}return b};
Ge=function(a,b){var c=a[Qe];c||(c=function(d,e){return He(d,e,b)},a[Qe]=c);
return c};
Laa=function(a,b){a.push(b)};
Maa=function(a,b,c){a.push(b,c.IC)};
Naa=function(a,b,c,d){var e=Fe(d),f=Re(d).iq,k=c.IC;a.push(b,function(l,m,n){return k(l,m,n,f,e)})};
Oaa=function(a,b,c,d,e,f){var k=Ge(d,f),l=c.IC;a.push(b,function(m,n,p){return l(m,n,p,d,k)})};
Re=function(a){var b=a[Te];return b?b:Pe(a,a[Te]=[],Laa,Maa,Naa,Oaa)};
Paa=function(a,b){a[0]=b};
Qaa=function(a,b,c,d){var e=c.Cl;a[b]=d?function(f,k,l){return e(f,k,l,d)}:e};
Raa=function(a,b,c,d,e){var f=c.Cl,k=Me(d),l=Ke(d).iq;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.Cl,m=Je(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,k)}};
Ke=function(a){var b=a[Ue];return b?b:Pe(a,a[Ue]={},Paa,Qaa,Raa,Saa)};
Le=function(a,b,c){for(;nd(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,od(f),!f.NE){var k=f.j.j-d;f.j.j=d;d=id(f.j,k);(f=e.D)?f.push(d):e.D=[d]}}return a};
Se=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]);He(a,b,e?c[0]:void 0)};
g.Ve=function(a,b){var c=new Faa;Se(a,c,Re(b));Ed(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.We=function(a,b){return{Cl:a,IC:b}};
g.Xe=function(a,b,c){b=g.be(b,c);if(null!=b){g.Fd(a,c,1);a=a.j;var d=+b;if(0===d)g.Zc=0<1/d?0:2147483648,g.$c=0;else if(isNaN(d))g.Zc=2147483647,g.$c=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)g.Zc=(c|2146435072)>>>0,g.$c=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.Zc=(c|b/4294967296)>>>0,g.$c=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.Zc=(c|b+1023<<20|1048576*d&1048575)>>>0;g.$c=4503599627370496*
d>>>0}g.Dd(a,g.$c);g.Dd(a,g.Zc)}};
g.Ye=function(a,b,c){b=g.be(b,c);if(null!=b&&("string"===typeof b&&yd(b),null!=b))if(g.Fd(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.$c=b;g.Zc=d;Ad(a,g.$c,g.Zc)}else c=yd(b),Ad(a.j,c.u,c.j)};
g.Ze=function(a,b,c){b=g.be(b,c);null!=b&&null!=b&&(g.Fd(a,c,0),Cd(a.j,b))};
g.af=function(a,b,c){b=g.be(b,c);null!=b&&g.Kd(a,c,g.eb(b))};
g.bf=function(a,b,c,d,e){b=qe(b,d,c);null!=b&&(c=Gd(a,c),e(b,a),Hd(a,c))};
cf=function(a,b,c,d){var e=Taa,f=Uaa;this.j=a;this.fieldName=b;this.iq=c;this.C=d;this.isRepeated=0;this.u=e;this.B=f};
Taa=function(a){var b=this.iq,c=this.j;return this.isRepeated?re(a,b,c,!0):qe(a,b,c,void 0,!0)};
Uaa=function(a,b){var c=this.j;return this.isRepeated?ue(a,c,b,!0):se(a,c,b,!0)};
df=function(a){return null===a?void 0:a};
g.F=function(){Ee.apply(this,arguments)};
ef=function(a){g.F.call(this,a)};
Vaa=function(){return[ef,1,ff,2,ff]};
gf=function(a){g.F.call(this,a)};
Waa=function(){return[gf,1,ff,2,ff]};
hf=function(a){g.F.call(this,a)};
Xaa=function(){return[hf,1,ff,2,ff]};
jf=function(a){g.F.call(this,a)};
Yaa=function(){return[jf,1,g.kf,Vaa,lf,2,g.kf,Waa,lf,3,g.kf,Xaa,lf]};
mf=function(a){this.yL=a};
nf=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Rs=new Map};
of=function(a,b){nf.call(this,a,3,b)};
pf=function(a,b){nf.call(this,a,2,b)};
g.qf=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.rf=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Oa(d)?g.rf.apply(null,d):g.qf(d)}};
g.G=function(){this.Ei=this.Ei;this.Yf=this.Yf};
g.H=function(a,b){g.sf(a,g.Ta(g.qf,b))};
g.sf=function(a,b){a.Ei?b():(a.Yf||(a.Yf=[]),a.Yf.push(b))};
g.vf=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Zaa=function(a){var b=g.Ka("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(k){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.C.$googDebugFname||b}catch(k){e="Not available",c=!0}b=wf(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,xf[c])c=xf[c];else{c=String(c);if(!xf[c]){var f=/function\s+([^\(]+)/m.exec(c);xf[c]=f?f[1]:"[Anonymous]"}c=xf[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}};
wf=function(a,b){b||(b={});b[yf(a)]=!0;var c=a.stack||"";(a=a.ST)&&!b[yf(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=wf(a,b));return c};
yf=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Af=function(a){return g.zf?"webkit"+a:a.toLowerCase()};
Bf=function(a,b){g.vf.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)};
Df=function(a){return!(!a||!a[Cf])};
aba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Lc=e;this.key=++$aa;this.qy=this.Oz=!1};
Ef=function(a){a.qy=!0;a.listener=null;a.proxy=null;a.src=null;a.Lc=null};
g.Ff=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Gf=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Hf=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.If=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Jf=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Kf=function(a){for(var b in a)return b};
Lf=function(a){for(var b in a)return a[b]};
Mf=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Nf=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Of=function(a,b){return null!==a&&b in a};
g.Pf=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Qf=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
Rf=function(a,b){return(b=Qf(a,b))&&a[b]};
g.Sf=function(a){for(var b in a)return!1;return!0};
g.Vf=function(a){for(var b in a)delete a[b]};
g.Wf=function(a,b){b in a&&delete a[b]};
g.Xf=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Yf=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.Zf=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.$f=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.$f(a[c]);return b};
g.bg=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<ag.length;f++)c=ag[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
cg=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
dg=function(a){this.src=a;this.listeners={};this.j=0};
g.eg=function(a,b){var c=b.type;c in a.listeners&&g.Zb(a.listeners[c],b)&&(Ef(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
fg=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.qy&&f.listener==b&&f.capture==!!c&&f.Lc==d)return e}return-1};
g.hg=function(a,b,c,d,e){if(d&&d.once)return gg(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.hg(a,b[f],c,d,e);return null}c=ig(c);return Df(a)?a.Oa(b,c,g.Pa(d)?!!d.capture:!!d,e):jg(a,b,c,!1,d,e)};
jg=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=g.Pa(e)?!!e.capture:!!e,l=kg(a);l||(a[lg]=l=new dg(a));c=l.add(b,c,d,k,f);if(c.proxy)return c;d=bba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)cba||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(mg(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");ng++;return c};
bba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=dba;return a};
gg=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)gg(a,b[f],c,d,e);return null}c=ig(c);return Df(a)?a.fB(b,c,g.Pa(d)?!!d.capture:!!d,e):jg(a,b,c,!0,d,e)};
og=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)og(a,b[f],c,d,e);else d=g.Pa(d)?!!d.capture:!!d,c=ig(c),Df(a)?a.vc(b,c,d,e):a&&(a=kg(a))&&(b=a.Tw(b,c,d,e))&&pg(b)};
pg=function(a){if("number"!==typeof a&&a&&!a.qy){var b=a.src;if(Df(b))g.eg(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(mg(c),d):b.addListener&&b.removeListener&&b.removeListener(d);ng--;(c=kg(b))?(g.eg(c,a),0==c.j&&(c.src=null,b[lg]=null)):Ef(a)}}};
mg=function(a){return a in qg?qg[a]:qg[a]="on"+a};
dba=function(a,b){if(a.qy)a=!0;else{b=new Bf(b,this);var c=a.listener,d=a.Lc||a.src;a.Oz&&pg(a);a=c.call(d,b)}return a};
kg=function(a){a=a[lg];return a instanceof dg?a:null};
ig=function(a){if("function"===typeof a)return a;a[rg]||(a[rg]=function(b){return a.handleEvent(b)});
return a[rg]};
g.sg=function(){g.G.call(this);this.B=new dg(this);this.ib=this;this.Ia=null};
tg=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.qy&&k.capture==c){var l=k.listener,m=k.Lc||k.src;k.Oz&&g.eg(a.B,k);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
ug=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
vg=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
zg=function(a){return function(){return a}};
g.Bg=function(){};
eba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Cg=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Dg=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
fba=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)}};
Fg=function(){if(void 0===Eg){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Wa,createScript:Wa,createScriptURL:Wa})}catch(c){g.C.console&&g.C.console.error(c.message)}Eg=a}else Eg=a}return Eg};
Ig=function(a,b){this.j=a===Gg&&b||"";this.u=Hg};
Jg=function(a){return a instanceof Ig&&a.constructor===Ig&&a.u===Hg?a.j:"type_error:Const"};
g.Kg=function(a){return new Ig(Gg,a)};
Mg=function(a,b){this.j=b===Lg?a:"";this.rl=!0};
Og=function(a,b){this.j=b===Ng?a:""};
Pg=function(a){return a instanceof Og&&a.constructor===Og?a.j:"type_error:TrustedResourceUrl"};
iba=function(a,b){var c=Jg(a);if(!gba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(hba,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 Ig?Jg(d):encodeURIComponent(String(d))});
return g.Qg(a)};
g.Qg=function(a){var b=Fg();a=b?b.createScriptURL(a):a;return new Og(a,Ng)};
g.Sg=function(a,b){this.j=b===Rg?a:""};
g.Tg=function(a){return a instanceof g.Sg&&a.constructor===g.Sg?a.j:"type_error:SafeUrl"};
Ug=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(jba)?new g.Sg(a,Rg):null};
g.Xg=function(a){a instanceof g.Sg||(a="object"==typeof a&&a.rl?a.Qh():String(a),a=Vg.test(a)?new g.Sg(a,Rg):Ug(a));return a||Wg};
g.Yg=function(a,b){if(a instanceof g.Sg)return a;a="object"==typeof a&&a.rl?a.Qh():String(a);if(b&&/^data:/i.test(a)&&(b=Ug(a)||Wg,b.Qh()==a))return b;Vg.test(a)||(a="about:invalid#zClosurez");return new g.Sg(a,Rg)};
$g=function(a,b){this.j=b===Zg?a:"";this.rl=!0};
ah=function(a){return a instanceof $g&&a.constructor===$g?a.j:"type_error:SafeStyle"};
dh=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(bh).join(" "):bh(d),b+=c+":"+d+";")}return b?new $g(b,Zg):ch};
kba=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=ah(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new $g(c,Zg):ch};
bh=function(a){if(a instanceof g.Sg)return'url("'+g.Tg(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof Ig?Jg(a):lba(String(a));if(/[{;}]/.test(a))throw new ab("Value does not allow [{;}], got: %s.",[a]);return a};
lba=function(a){var b=a.replace(eh,"$1").replace(eh,"$1").replace(fh,"url");if(mba.test(b)){if(nba.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!oba(a))return"zClosurez"}else return"zClosurez";return pba(a)};
oba=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};
pba=function(a){return a.replace(fh,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(k,l,m){f=l;return m});
b=g.Xg(d).Qh();return c+f+b+f+e})};
hh=function(a,b,c){this.j=c===gh?a:"";this.u=b;this.rl=this.MF=!0};
g.ih=function(a){return a instanceof hh&&a.constructor===hh?a.j:"type_error:SafeHtml"};
kh=function(a){if(a instanceof hh)return a;var b="object"==typeof a,c=null;b&&a.MF&&(c=a.As());return jh(nb(b&&a.rl?a.Qh():String(a)),c)};
qba=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=kh(f),e.push(g.ih(f).toString()),f=f.As(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=kh(qh),d=c.As(),e=[];a.forEach(b);return jh(e.join(g.ih(c).toString()),d)};
rba=function(a){return qba(Array.prototype.slice.call(arguments))};
jh=function(a,b){var c=Fg();a=c?c.createHTML(a):a;return new hh(a,b,gh)};
g.rh=function(a,b){Jg(a);Jg(a);return jh(b,null)};
sba=function(a,b){Jg(a);Jg(a);return new $g(b,Zg)};
sh=function(a,b){Jg(a);Jg(a);return g.Qg(b)};
g.th=function(a,b){if(tba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.ih(b)};
g.uh=function(a,b){b=b instanceof g.Sg?b:g.Yg(b);a.href=g.Tg(b)};
vh=function(a,b,c,d){a=a instanceof g.Sg?a:g.Yg(a);b=b||g.C;c=c instanceof Ig?Jg(c):c||"";return void 0!==d?b.open(g.Tg(a),c,d):b.open(g.Tg(a),c)};
wh=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&uba.test(a))break a;a=""}return a};
vba=function(a,b){return a+Math.random()*(b-a)};
g.xh=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.yh=function(a,b){a%=b;return 0>a*b?a+b:a};
g.zh=function(a,b,c){return a+c*(b-a)};
Ah=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Bh=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Ch=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Dh=function(a,b){this.width=a;this.height=b};
g.Eh=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Fh=function(a){return a.width*a.height};
g.Gh=function(a){return encodeURIComponent(String(a))};
Hh=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Ih=function(a){return a=nb(a)};
g.Jh=function(a){return null==a?"":String(a)};
Kh=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Lh=function(a){var b=Number(a);return 0==b&&g.lb(a)?NaN:b};
Mh=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Nh=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
wba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
xba=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};
Rh=function(a){return a?new Oh(Ph(a)):Qh||(Qh=new Oh)};
Sh=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.Th=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Vh=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Uh(document,"*",a,b)};
g.$h=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.Uh(c,"*",a,b)[0]||null}return a||null};
g.Uh=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.Tb(b.split(/\s+/),c)&&(d[e++]=k);d.length=e;return d}return a};
ai=function(a,b){g.Ff(b,function(c,d){c&&"object"==typeof c&&c.rl&&(c=c.Qh());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:yba.hasOwnProperty(d)?a.setAttribute(yba[d],c):gb(d,"aria-")||gb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
zba=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Dh(a.clientWidth,a.clientHeight)};
Bba=function(a){var b=Aba(a);a=a.parentWindow||a.defaultView;return g.Ic&&g.wc("10")&&a.pageYOffset!=b.scrollTop?new g.Bh(b.scrollLeft,b.scrollTop):new g.Bh(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Aba=function(a){return a.scrollingElement?a.scrollingElement:g.zf||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
bi=function(a){return a?a.parentWindow||a.defaultView:window};
di=function(a,b,c){var d=arguments,e=document,f=d[1],k=ci(e,String(d[0]));f&&("string"===typeof f?k.className=f:Array.isArray(f)?k.className=f.join(" "):ai(k,f));2<d.length&&Cba(e,k,d,2);return k};
Cba=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Oa(f)||g.Pa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Pa(f)){var k="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){k="function"==typeof f.item;break a}}k=!1}g.oc(k?g.cc(f):f,e)}}};
g.ei=function(a){return ci(document,a)};
ci=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.fi=function(a){return document.createTextNode(String(a))};
g.gi=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.hi=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.ii=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Dba=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.ji=function(a){var b;if(Eba&&!(g.Ic&&g.wc("9")&&!g.wc("10")&&g.C.SVGElement&&a instanceof g.C.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Pa(b)&&1==b.nodeType?b:null};
g.ki=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};
Ph=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.li=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.gi(a);var c=Ph(a);a.appendChild(c.createTextNode(String(b)))}};
mi=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")||Fba(a)):a.hasAttribute("tabindex")&&Fba(a))&&g.Ic){var c;"function"!==typeof a.getBoundingClientRect||g.Ic&&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};
Fba=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
oi=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return ni(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Tb(e.className.split(/\s+/),c))},!0)};
ni=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Oh=function(a){this.j=a||g.C.document||document};
qi=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Ab()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(pi||(pi=Gba()),pi(a)):g.C.setImmediate(a)};
Gba=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!wb("Presto")&&(a=function(){var e=g.ei("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.Sa)(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&&!zb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.vL;c.vL=null;e()}};
return function(e){d.next={vL:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
Hba=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||Iba();ui||(ti(),ui=!0);Jba.add(a,b)};
Iba=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);ti=function(){a.then(Kba)}}else ti=function(){qi(Kba)}};
Kba=function(){for(var a;a=Jba.remove();){try{a.j.call(a.scope)}catch(b){Hba(b)}vg(Lba,a)}ui=!1};
wi=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
g.yi=function(a){this.j=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.Bg)try{var b=this;a.call(void 0,function(c){xi(b,2,c)},function(c){xi(b,3,c)})}catch(c){xi(this,3,c)}};
Mba=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1};
zi=function(a,b,c){var d=Nba.get();d.u=a;d.onRejected=b;d.context=c;return d};
Ai=function(a){if(a instanceof g.yi)return a;var b=new g.yi(g.Bg);xi(b,2,a);return b};
Bi=function(a){return new g.yi(function(b,c){c(a)})};
g.Pba=function(a,b,c){Oba(a,b,c,null)||g.vi(g.Ta(b,a))};
Qba=function(a){return new g.yi(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Pba(e,b,c)})};
Di=function(a,b){b=zi(b,b);b.B=!0;Ci(a,b);return a};
Rba=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?Rba(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Sba(c),Tba(c,e,3,b)))}a.B=null}else xi(a,3,b)};
Ci=function(a,b){a.u||2!=a.j&&3!=a.j||Uba(a);a.C?a.C.next=b:a.u=b;a.C=b};
Vba=function(a,b,c,d){var e=zi(null,null,null);e.j=new g.yi(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 Ei?k(l):f(m)}catch(n){k(n)}}:k});
e.j.B=a;Ci(a,e);return e.j};
xi=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,Oba(c,a.B_,a.C_,a)||(a.K=c,a.j=b,a.B=null,Uba(a),3!=b||c instanceof Ei||Wba(a,c)))};
Oba=function(a,b,c,d){if(a instanceof g.yi)return Ci(a,zi(b||g.Bg,c||null,d)),!0;if(wi(a))return a.then(b,c,d),!0;if(g.Pa(a))try{var e=a.then;if("function"===typeof e)return Xba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
Xba=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)}};
Uba=function(a){a.J||(a.J=!0,g.vi(a.zU,a))};
Sba=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Tba=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,Yba(b,c,d);else try{b.B?b.u.call(b.context):Yba(b,c,d)}catch(e){Zba.call(null,e)}vg(Nba,b)};
Yba=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
Wba=function(a,b){a.D=!0;g.vi(function(){a.D&&Zba.call(null,b)})};
Ei=function(a){$a.call(this,a)};
g.Fi=function(a,b){g.sg.call(this);this.gg=a||1;this.Py=b||g.C;this.pL=(0,g.Sa)(this.p_,this);this.AN=g.Ua()};
g.Gi=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Sa)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Sa)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.C.setTimeout(a,b||0)};
Hi=function(a,b){var c=null;return(new g.yi(function(d,e){c=g.Gi(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Fh(function(d){g.C.clearTimeout(c);
throw d;})};
g.Ii=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.Fi(this.flushInterval);this.u.Oa("tick",this.ZP,!1,this);this.D=!1};
$ba=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.ZP()};
aca=function(a,b){return a.J.has(b)?void 0:a.j.get(b)};
bca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
cca=function(a){this.j=a;this.j.fL("/client_streamz/po/w/rl",{Wn:3,Vn:"mn"},{Wn:2,Vn:"ac"},{Wn:2,Vn:"sc"},{Wn:3,Vn:"rk"})};
dca=function(a){this.j=a;this.j.fL("/client_streamz/po/w/el",{Wn:3,Vn:"en"},{Wn:3,Vn:"rk"})};
eca=function(a){this.j=a;this.j.Gz("/client_streamz/po/w/cec",{Wn:2,Vn:"ec"},{Wn:3,Vn:"rk"})};
g.Ji=function(a){g.F.call(this,a,-1,fca)};
g.Ki=function(a){g.F.call(this,a,-1,gca)};
g.Li=function(a){g.F.call(this,a)};
g.Mi=function(a){g.F.call(this,a)};
ica=function(a){g.F.call(this,a,-1,hca)};
g.jca=function(a){var b=new g.Ji;b=g.D(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].Vn);b=he(b,3,c);c=[];d=[];for(var e=g.r(a.Rs.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.gF(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.yL;var q=new g.Mi;switch(k){case 3:g.me(q,1,g.Ni,Number(p));break;case 2:g.me(q,2,g.Ni,Number(p))}m.push(q)}k=m;for(l=0;l<k.length;l++){m=k[l];n=new g.Ki;m=se(n,2,m);n=f;p=[];q=a;for(var t=
[],w=0;w<q.j.length;w++)t.push(q.j[w].Wn);q=t;for(t=0;t<q.length;t++){w=q[t];var x=n[t],y=new g.Li;switch(w){case 3:g.me(y,1,g.Oi,String(x));break;case 2:g.me(y,2,g.Oi,Number(x));break;case 1:g.me(y,3,g.Oi,"true"==x)}p.push(y)}ue(m,1,p);c.push(m)}}ue(b,4,c);return b};
kca=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};
lca=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,w=0;64>w;w+=4)t[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var I=z^x&(y^z);var K=1518500249}else I=x^y^z,K=1859775393;else 60>w?(I=x&y|z&(x|y),K=2400959708):(I=x^y^z,K=3395469782);I=((q<<5|q>>>27)&4294967295)+I+E+K+t[w]&4294967295;E=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=I}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+E&4294967295}
function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],x=0,y=q.length;x<y;++x)w.push(q.charCodeAt(x));q=w}t||(t=q.length);w=0;if(0==n)for(;w+64<t;)b(q.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=q[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(q.slice(w,w+64)),w+=64,p+=64}
function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)q[t++]=e[w]>>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,pU:function(){for(var q=d(),t="",w=0;w<q.length;w++)t+="0123456789ABCDEF".charAt(Math.floor(q[w]/16))+"0123456789ABCDEF".charAt(q[w]%16);return t}}};
nca=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,mca(kca(d),a,c||null)].join(" "):null};
mca=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.oc(d,function(l){e.push(l)}),oca(e.join(" "));
var f=[],k=[];g.oc(c,function(l){k.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.Ub(f)?[c,b,a]:[f.join(":"),c,b,a];g.oc(d,function(l){e.push(l)});
a=oca(e.join(" "));a=[c,a];g.Ub(k)||a.push(k.join(""));return a.join("_")};
oca=function(a){var b=lca();b.update(a);return b.pU().toLowerCase()};
Pi=function(a){this.j=a||{cookie:""}};
Qi=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=qb(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}};
Ri=function(a){return!!pca.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
qca=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;Ri(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new Pi(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Ri(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
rca=function(a,b,c,d){(a=g.C[a])||(a=(new Pi(document)).get(b));return a?nca(a,c,d):null};
Si=function(a,b){b=void 0===b?!1:b;var c=kca(String(g.C.location.href)),d=[];if(qca(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 Pi(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?nca(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Ri(b)&&((b=rca("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=rca("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&
d.push(a))}return 0==d.length?null:d.join(" ")};
Ti=function(a){g.F.call(this,a,-1,sca)};
Ui=function(){};
g.Vi=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.Wi=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.Yi=function(a){var b=[];Xi(new tca,a,b);return b.join("")};
tca=function(){};
Xi=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),Xi(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),uca(d,c),c.push(":"),Xi(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":uca(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);}}};
uca=function(a,b){b.push('"',a.replace(vca,function(c){var d=wca[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),wca[c]=d);return d}),'"')};
xca=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"}};
Zi=function(){};
$i=function(){};
yca=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};
aj=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};
bj=function(a){return a?decodeURI(a):a};
g.dj=function(a,b){return b.match(cj)[a]||null};
g.ej=function(a){return bj(g.dj(3,a))};
g.zca=function(a){a=a.match(cj);return aj(a[1],a[2],a[3],a[4])};
Aca=function(a){a=a.match(cj);return aj(a[1],null,a[3],a[4])};
Bca=function(a){a=a.match(cj);return aj(null,null,null,null,a[5],a[6],a[7])};
fj=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?Hh(e):"")}}};
Cca=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)]};
Dca=function(a,b){return b?a?a+"&"+b:b:a};
gj=function(a,b){if(!b)return a;a=Cca(a);a[1]=Dca(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
tj=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)tj(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Gh(b)))};
Eca=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)tj(a[b],a[b+1],c);return c.join("&")};
g.uj=function(a){var b=[],c;for(c in a)tj(c,a[c],b);return b.join("&")};
vj=function(a,b){var c=2==arguments.length?Eca(arguments[1],0):Eca(arguments,1);return gj(a,c)};
g.wj=function(a,b){b=g.uj(b);return gj(a,b)};
xj=function(a,b,c){c=null!=c?"="+g.Gh(c):"";return gj(a,b+c)};
Fca=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};
yj=function(a,b){var c=a.search(Gca),d=Fca(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 Hh(a.slice(d,-1!==e?e:0))};
zj=function(a,b){for(var c=a.search(Gca),d=0,e,f=[];0<=(e=Fca(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(Hca,"$1")};
Ica=function(a,b,c){return xj(zj(a,b),b,c)};
Jca=function(a,b){a=Cca(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]=Dca(d.join("&"),g.uj(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.Aj=function(a){g.sg.call(this);this.headers=new Map;this.Z=a||null;this.D=!1;this.xa=this.j=null;this.Ra=this.X="";this.u=0;this.C="";this.J=this.Ha=this.ma=this.Da=!1;this.S=0;this.ra=null;this.Qa="";this.va=this.K=!1};
Lca=function(a,b,c,d,e,f,k){var l=new g.Aj;Kca.push(l);b&&l.Oa("complete",b);l.fB("ready",l.ZT);f&&(l.S=Math.max(0,f));k&&(l.K=k);l.send(a,c,d,e)};
Mca=function(a){return g.Ic&&g.wc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Oca=function(a,b){a.D=!1;a.j&&(a.J=!0,a.j.abort(),a.J=!1);a.C=b;a.u=5;Nca(a);Bj(a)};
Nca=function(a){a.Da||(a.Da=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Pca=function(a){if(a.D&&"undefined"!=typeof Cj)if(a.xa[1]&&4==g.Dj(a)&&2==a.getStatus())Ej(a,"Local request error detected and ignored");else if(a.ma&&4==g.Dj(a))g.Gi(a.NO,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){Ej(a,"Request complete");a.D=!1;try{if(Fj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Dj(a)?a.j.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";Nca(a)}}finally{Bj(a)}}};
Bj=function(a,b){if(a.j){Qca(a);var c=a.j,d=a.xa[0]?function(){}:null;
a.j=null;a.xa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Qca=function(a){a.j&&a.va&&(a.j.ontimeout=null);a.ra&&(g.C.clearTimeout(a.ra),a.ra=null)};
Fj=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.dj(1,String(a.X)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol.slice(0,-1)),b=!Rca.test(a?a.toLowerCase():"");c=b}return c};
g.Dj=function(a){return a.j?a.j.readyState:0};
g.Gj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Hj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Qa){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
Sca=function(a){return a.j&&a.isComplete()?a.j.getAllResponseHeaders()||"":""};
Tca=function(a){var b={};a=Sca(a).split("\r\n");for(var c=0;c<a.length;c++)if(!g.lb(a[c])){var d=xba(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 Hf(b,function(k){return k.join(", ")})};
g.Jj=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Ej=function(a,b){return b+" ["+a.Ra+" "+a.X+" "+a.getStatus()+"]"};
Kj=function(a){g.F.call(this,a)};
Vca=function(a){g.F.call(this,a,-1,Uca)};
Lj=function(a){g.F.call(this,a)};
Mj=function(a){g.F.call(this,a,31,Wca)};
Yca=function(a){g.F.call(this,a,17,Xca)};
$ca=function(a){g.F.call(this,a,6,Zca)};
ada=function(a){g.F.call(this,a)};
Oj=function(a,b,c,d,e,f,k,l,m,n,p){g.sg.call(this);var q=this;this.Z="";this.u=[];this.Wa="";this.Xa=this.Da=-1;this.Ra=!1;this.S=this.C=null;this.K=0;this.ob=1;this.timeoutMillis=0;this.xa=!1;g.sg.call(this);this.Va=b||function(){};
this.J=new bda(a,f);this.fb=d;this.Qa=p;this.qb=g.Ta(vba,0,1);this.ra=e||null;this.X=c||null;this.va=k||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Ha=f||!1;!this.Ha&&(65<=Gb("Chromium")||45<=Gb("Firefox")||12<=Gb("Safari")||Kb()&&g.sb(Nb(),12));a=g.D(new Lj,1,1);Nj(this.J,a);this.D=new g.Vi(1E4,3E5,.1);this.j=new g.Fi(this.D.getValue());g.H(this,this.j);n=cda(this,n);g.hg(this.j,"tick",n,!1,this);this.ma=new g.Fi(6E5);g.H(this,this.ma);g.hg(this.ma,"tick",n,!1,this);this.va||
this.ma.start();this.Ha||(g.hg(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.aF()}),g.hg(document,"pagehide",this.aF,!1,this))};
cda=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
dda=function(a){a.ra||(a.ra=.01>a.qb()?"https://web.archive.org/web/20220406233357/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20220406233357/https://play.google.com/log?format=json&hasfast=true");return a.ra};
eda=function(a,b){a.D=new g.Vi(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
gda=function(a){fda(a,function(b,c){b=xj(b,"format","json");b=bi().navigator.sendBeacon(b,Be(c));a.xa&&!b&&(a.xa=!1);return b})};
fda=function(a,b){if(0!==a.u.length){var c=zj(dda(a),"format");c=vj(c,"auth",a.Va(),"authuser",a.X||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.J.ye(e,a.K);if(!b(c,f))break;a.K=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
hda=function(){g.vf.call(this,"event-logged",void 0)};
bda=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new Yca;g.D(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Nj(this,new Lj)};
Nj=function(a,b){se(a.j,1,b);g.be(b,1)||g.D(b,1,1);a.B||(b=Pj(a),g.be(b,5)||g.D(b,5,a.locale));a.u&&(b=Pj(a),qe(b,Vca,9)||se(b,9,a.u))};
ida=function(a,b){b(bi()).then(function(c){a.u=c;c=Pj(a);se(c,9,a.u);return!0}).catch(function(){return!1})};
Pj=function(a){a=qe(a.j,Lj,1);var b=qe(a,Kj,11);b||(b=new Kj,se(a,11,b));return b};
jda=function(a,b,c){Lca(a.url,function(d){d=d.target;Fj(d)?b(g.Gj(d)):c(d.getStatus())},a.requestType,a.body,a.xr,a.timeoutMillis,a.withCredentials)};
kda=function(){this.B="https://web.archive.org/web/20220406233357/https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=jda;this.j=""};
lda=function(){var a="",b=!1,c="2";a=void 0===a?"":a;c=void 0===c?"":c;var d=new kda;d.j="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.j=d.ye()};
mda=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}};
Qj=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};
Rj=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()};
Sj=function(a,b){this.logger=a;this.j=b;this.startMillis=Rj()};
Tj=function(){};
Uj=function(a){this.fk=a;this.C=new lda;this.j=new g.Ii(this.C);this.clientError=new eca(this.j);this.u=new dca(this.j);this.B=new cca(this.j)};
nda=function(a){g.F.call(this,a)};
oda=function(a){g.F.call(this,a)};
Vj=function(a){g.F.call(this,a)};
g.Wj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Xj=function(a){this.j=!1;if(a.challenge instanceof Vj){var b=fe(a.challenge,4,"");a=fe(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new g.Wj;this.u=c.promise;this.B=g.r((0,g.C[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({NT:d,ZZ:e})})},!0)).next().value;
this.XZ=c.promise.then(function(){})};
pda=function(a){return sh(g.Kg("From proto message. b/12014412"),g.be(a,4)||"")};
qda=function(){};
Yj=function(a){this.j=a};
rda=function(){};
Zj=function(a){this.j=a};
sda=function(a){if(a instanceof rda)if(a instanceof Zj)a=a.j;else throw Error("");else a=g.Tg(a);return a};
tda=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.ak=function(a,b){a.src=Pg(b);tda(a)};
uda=function(a,b){return a.parseFromString(g.ih(b),"text/xml")};
bk=function(){this.j={};this.u=null};
vda=function(){bk.j||(bk.j=new bk);return bk.j};
xda=function(a){var b=vda();return wda(b,qe(a,nda,1),qe(a,oda,2),fe(a,3,""))};
wda=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return yda(b,c);(e=a.j)[d]||(e[d]=new Promise(function(f,k){yda(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
k(l)})}));
return a.j[d]};
yda=function(a,b){return b?zda(b):a?Ada(a):Promise.resolve()};
zda=function(a){return new Promise(function(b,c){var d=g.ei("SCRIPT"),e=pda(a);g.ak(d,e);d.onload=function(){g.ii(d);b()};
d.onerror=function(){g.ii(d);c(Error("EWLS"))};
(g.Th("HEAD")[0]||document.documentElement).appendChild(d)})};
Ada=function(a){return new Promise(function(b){var c=g.ei("SCRIPT");if(a){var d=g.be(a,6);if(null===d||void 0===d)var e=null;else{var f=null==(e=Fg())?void 0:e.createScript(d);e=new Yj(null!=f?f:d,ck)}}else e=null;if(e instanceof qda)if(e instanceof Yj)e=e.j;else throw Error("");else e=e instanceof Mg&&e.constructor===Mg?e.j:"type_error:SafeScript";c.textContent=e;tda(c);(g.Th("HEAD")[0]||document.documentElement).appendChild(c);g.ii(c);b()})};
dk=function(a){g.F.call(this,a)};
ek=function(a){g.F.call(this,a)};
fk=function(a){g.F.call(this,a)};
Bda=function(a,b,c){this.client=a;this.fk=b;this.j=c};
Cda=function(a){var b=vda().u,c,d,e,f,k;return g.B(function(l){if(1==l.j)return c=new dk,je(c,1,a.fk,""),b&&je(c,2,b,""),d=a.j(),g.A(l,a.client.create(c,d),2);e=l.u;f=Vc(ge(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=Ce(Vj,n);return m.call(l,n)}k=qe(e,Vj,1);if(!k)throw Error("Missing field");return l.return(k)})};
Eda=function(a,b){var c,d;return g.B(function(e){c=a.j();var f=new ek;f=je(f,1,a.fk,"");d=je(f,2,b,"");f=e.return;var k=gk(a.client.j,"https://web.archive.org/web/20220406233357/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Dda);return f.call(e,k)})};
Fda=function(a){this.j=a};
hk=function(a){g.F.call(this,a)};
ik=function(a,b,c){this.j=a;this.B=b;this.u=c};
jk=function(a,b,c){c=void 0===c?{}:c;this.MZ=a;this.j=c;this.u=b};
kk=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
Gda=function(a,b,c){c=void 0===c?{}:c;return new ik(b,a,c)};
lk=function(a){g.F.call(this,a)};
mk=function(a){g.F.call(this,a)};
nk=function(a){g.F.call(this,a)};
ok=function(a){g.F.call(this,a,-1,Hda)};
pk=function(a,b){this.K=a.lW;this.S=b;this.j=a.xhr;this.B=[];this.D=[];this.J=[];this.C=[];this.u=[];this.K&&Ida(this)};
Lda=function(a,b){g.hg(a.j,"complete",function(){if(Fj(a.j)){var c=g.Gj(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){qk(a,new Qj(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=mda(a.j.getStatus());rk(a,sk(a));0==c?Jda(a,d):qk(a,new Qj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Gj(a.j);var e={};d?(e=Kda(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());rk(a,sk(a));qk(a,new Qj(d,c,e))}})};
Ida=function(a){a.K.Qm("data",function(b){if("1"in b){var c=b["1"];try{var d=a.S(c)}catch(e){qk(a,new Qj(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Jda(a,d)}if("2"in b)for(b=Kda(a,b["2"]),c=0;c<a.J.length;c++)a.J[c](b)});
a.K.Qm("end",function(){rk(a,sk(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.K.Qm("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||Fj(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=mda(c);break;default:d=14}rk(a,sk(a));b=xca(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);qk(a,new Qj(d,b))}})};
sk=function(a){var b={},c=Tca(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Kda=function(a,b){var c=2,d={};try{var e=Ce(ok,b);c=xe(e,1);var f=e.getMessage();re(e,nk,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(k){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.X)):(c=14,f="Unable to parse RpcStatus: "+k)}return{code:c,details:f,metadata:d}};
tk=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Jda=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
rk=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
qk=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.uk=function(a){this.D=a.U_||null;this.B=a.eQ||!1};
vk=function(a,b){g.sg.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.X=new Headers;this.u=null;this.ma="GET";this.Z="";this.j=!1;this.S=this.C=this.D=null};
Mda=function(a){a.C.read().then(a.SU.bind(a)).catch(a.KA.bind(a))};
xk=function(a){a.readyState=4;a.D=null;a.C=null;a.S=null;wk(a)};
wk=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Nda=function(a){if(a.Mi&&"function"==typeof a.Mi)return a.Mi();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.Oa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Mf(a)};
Oda=function(a){if(a.xm&&"function"==typeof a.xm)return a.xm();if(!a.Mi||"function"!=typeof a.Mi){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Oa(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Nf(a)}}};
g.yk=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Oa(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=Oda(a),e=Nda(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)};
g.zk=function(a){this.j=this.S=this.C="";this.u=null;this.D=this.K="";this.J=!1;var b;a instanceof g.zk?(this.J=a.J,g.Ak(this,a.C),this.S=a.S,g.Bk(this,a.j),g.Ck(this,a.u),this.K=a.getPath(),Dk(this,a.B.clone()),this.D=a.D):a&&(b=String(a).match(cj))?(this.J=!1,g.Ak(this,b[1]||"",!0),this.S=Ek(b[2]||""),g.Bk(this,b[3]||"",!0),g.Ck(this,b[4]),this.K=Ek(b[5]||"",!0),Dk(this,b[6]||"",!0),this.D=Ek(b[7]||"")):(this.J=!1,this.B=new Fk(null,this.J))};
g.Ak=function(a,b,c){a.C=c?Ek(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.Bk=function(a,b,c){a.j=c?Ek(b,!0):b};
g.Ck=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};
Dk=function(a,b,c){b instanceof Fk?(a.B=b,Pda(a.B,a.J)):(c||(b=Gk(b,Qda)),a.B=new Fk(b,a.J))};
g.Hk=function(a,b,c){a.B.set(b,c)};
g.Ik=function(a){return a instanceof g.zk?a.clone():new g.zk(a)};
Ek=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Gk=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Rda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Rda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Fk=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Jk=function(a){a.j||(a.j=new Map,a.u=0,a.B&&fj(a.B,function(b,c){a.add(Hh(b),c)}))};
Sda=function(a,b){Jk(a);b=Kk(a,b);return a.j.has(b)};
g.Tda=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Kk(a,b),g.cc(c)),a.u=a.u+c.length)};
Kk=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Pda=function(a,b){b&&!a.C&&(Jk(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Tda(this,e,c))},a));
a.C=b};
g.Uda=function(a){var b="";g.Ff(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Sk=function(a,b,c){if(g.Sf(c))return a;c=g.Uda(c);if("string"===typeof a)return xj(a,g.Gh(b),c);g.Hk(a,b,c);return a};
g.Tk=function(a){g.G.call(this);this.u=a;this.j={}};
Vda=function(a,b,c,d,e,f){if(Array.isArray(c))for(var k=0;k<c.length;k++)Vda(a,b,c[k],d,e,f);else{b=gg(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
g.Uk=function(a){g.Ff(a.j,function(b,c){this.j.hasOwnProperty(c)&&pg(b)},a);
a.j={}};
Wda=function(){this.B=!0;this.u=0;this.j=""};
Xda=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Vk=function(){this.J=null;this.K=[];this.C=this.u=this.B=this.j=this.X=0;this.D=null;this.S=0};
Wk=function(a,b,c,d){a.j=3;a.J="The stream is broken @"+a.X+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.J);};
Zk=function(){this.j=null;this.u=0;this.B=new Wda;this.C=new Vk};
Yda=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
$k=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
al=function(a){this.X=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.oU)};
bl=function(a,b,c){a.D=3;a.X="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.X);};
cl=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.J=!1};
Zda=function(a){var b=g.Jj(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new cl:new al:b.startsWith("application/x-protobuf")?(a=g.Jj(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Zk:null:new Vk:null};
dl=function(a){this.j=a;this.u=null;this.C=this.B=0;this.X=!1;this.D=this.K=this.J=null;this.S=new g.Tk(this);this.S.Oa(this.j,"readystatechange",this.Z)};
el=function(a,b){a.C!=b&&(a.C=b,a.K&&a.K())};
fl=function(a){g.Uk(a.S);if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
$da=function(a){this.B=a;a=(0,g.Sa)(this.dX,this);this.B.D=a;a=(0,g.Sa)(this.OY,this);this.B.K=a;this.u={};this.j={}};
aea=function(a,b){for(var c={},d=0;d<a.length;c={OC:c.OC},d++)c.OC=a[d],b.forEach(function(e){return function(f){try{f(e.OC)}catch(k){}}}(c))};
gl=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]=[]};
bea=function(a){a=void 0===a?{}:a;this.D=a.mia||g.Ka("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ka("withCredentials",a)||!1;this.C=a.kia||[];this.J=a.oia||[];this.j=a.ria;this.B=a.pia||!1};
gk=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return cea(function(k){return new dea(function(l,m){var n={},p=eea(a,k,f);p.Qm("error",function(q){return m(q)});
p.Qm("metadata",function(q){n=q});
p.Qm("data",function(q){var t=n;t=void 0===t?{}:t;l(new jk(q,k.yA(),t))})})},a.J).call(a,Gda(e,c,d)).then(function(k){return k.MZ})};
eea=function(a,b,c){var d=b.yA(),e=b.getMetadata(),f=fea(a,!0);a=gea(a,e,f,c+d.getName());c=hea(f,d.u,!1);Lda(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
fea=function(a,b){b=a.B&&!b;return a.j||b?new g.Aj(new g.uk({U_:a.j,eQ:b})):new g.Aj};
gea=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.Sk(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
hea=function(a,b,c){if(c)if(a.isActive(),!g.Ic||g.xc(10)){c=new dl(a);var d=new $da(c)}else d=null;return new pk({xhr:a,lW:d},b)};
cea=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
hl=function(){var a={format:"jspb"};this.j=new bea(a)};
jl=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=iea(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,k=f,l=0;12<=k;k-=12,l+=12)c+=il(a,l),d+=il(a,l+4),e+=il(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 jea.toString(e)};
iea=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
il=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
kea=function(a){var b=new hl,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Bda(b,a,function(){return c})};
lea=function(a){var b=kea(a.fk);return new kl(Object.assign({},{jA:b},a))};
ll=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,ll.prototype)};
ml=function(){g.G.apply(this,arguments);this.B=new g.Wj};
mea=function(a,b){nl(b).then(function(){a.B.resolve()})};
ol=function(a,b,c,d,e){ml.call(this);this.logger=a;this.C=c;this.J=d;this.u="m";this.D=0;g.H(this,b);mea(this,e);this.j=new jf};
pl=function(a,b){ml.call(this);this.j=a;this.u="f";mea(this,b)};
ql=function(a){ml.call(this);this.u="e";if(a instanceof ll){var b=a.code+":"+a.message+":"+a.stack;a=a.code+":_"+jl(a.message)+":_"+jl(a.stack)}else b=a.message+":"+a.stack,a="_"+jl(a.message)+":_"+jl(a.stack||"");this.j=new Uint8Array(g.fb(("WE:"+b).substring(0,2048)));this.C=new Uint8Array(g.fb(("WE:"+a).substring(0,2048)))};
nl=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
rl=function(a,b){return Promise.race([a,nl(12E4).then(b)])};
kl=function(a){this.j=void 0;this.u=new g.Wj;this.jA=a.jA;this.yO=a.yO;this.onError=a.onError;this.logger=a.bia?new Tj:new Uj(a.fk);var b=new Sj(this.logger,"r");this.ready().finally(function(){return void b.done()});
nea(this)};
oea=function(a,b,c){var d=window.webpocb;if(!d)throw new ll(4,Error("PMD:Undefined"));d=d(Vc(ge(b,1)));return new ol(a.logger,c,d,xe(b,3),1E3*xe(b,2))};
pea=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,w,x,y,z;return g.B(function(E){switch(E.j){case 1:b=void 0,c=a.j?6E4:1E3,d=new g.Vi(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){E.Ya(4);break}g.va(E,5);return g.A(E,rl(a.logger.nG("c",e,Cda(a.jA)),function(){return Promise.reject(new ll(10,"JVZ:Timeout"))}),7);
case 7:return f=E.u,k=new Sj(a.logger,"b"),g.A(E,xda(f),8);case 8:return l=new Xj({challenge:f}),g.A(E,rl(l.snapshot({}),function(){return Promise.reject(new ll(15,"MDA:Timeout"))}),9);
case 9:return m=E.u,k.done(),g.A(E,rl(a.logger.nG("g",e,Eda(a.jA,m)),function(){return Promise.reject(new ll(10,"BWB:Timeout"))}),10);
case 10:n=E.u;p=new Sj(a.logger,"i");if(xe(n,3))var I=oea(a,n,l);else l.dispose(),I=new pl(Vc(ge(n,1)),1E3*xe(n,2));q=I;p.done();w=t=void 0;null==(w=(t=a).yO)||w.call(t,Vc(ge(n,1)));return E.return(q);case 5:x=g.xa(E);b=x instanceof ll?x:x instanceof Qj?new ll(11,x):new ll(12,x);a.logger.vx(b.code);z=y=void 0;null==(z=(y=a).onError)||z.call(y,b);a:{if(x instanceof Qj)switch(x.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(!I)throw b;return g.A(E,nl(d.getValue()),11);case 11:g.Wi(d);
case 3:e++;E.Ya(2);break;case 4:throw b;}})};
nea=function(a){var b,c,d,e;g.B(function(f){switch(f.j){case 1:return b=void 0,g.va(f,4),g.A(f,pea(a),6);case 6:b=f.u;g.wa(f,5);break;case 4:if(c=g.xa(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.vx(13);f.Ya(0);break}else a.logger.vx(14),b=new ql(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)}})};
qea=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}};
rea=function(a,b,c,d){var e=window,f="//web.archive.org/web/20220406233357/https://pagead2.googlesyndication.com/bg/"+g.Ih(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=Rh(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=iba(g.Kg("//web.archive.org/web/20220406233357/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.Ih(a)+".js"});g.ak(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
sea=function(a){var b={};g.oc(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]})};
sl=function(){this.qd=0;this.j=!1;this.u=-1;this.Fq=!1;this.Dh=0};
tl=function(){this.Zc=null;this.j=!1};
ul=function(a){tl.call(this);this.u=a};
vl=function(){tl.call(this)};
wl=function(){tl.call(this)};
xl=function(){this.j={};this.u=!0;this.B={}};
yl=function(a,b,c){a.j[b]||(a.j[b]=new ul(c));return a.j[b]};
tea=function(a){a.j.queryid||(a.j.queryid=new wl)};
zl=function(a,b,c){(a=a.j[b])&&a.setValue(c)};
Al=function(a,b){if(g.Of(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
Bl=function(a){var b={},c=g.Gf(a.j,function(d){return d.j});
g.Ff(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.Zc?String(d.Zc):"";0<d.length&&(b[e]=d)},a);
return b};
uea=function(a){a=Bl(a);var b=[];g.Ff(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
wea=function(a){yl(a,"od",vea);yl(a,"opac",Cl).j=!0;yl(a,"sbeos",Cl).j=!0;yl(a,"prf",Cl).j=!0;yl(a,"mwt",Cl).j=!0;yl(a,"iogeo",Cl)};
xea=function(){this.j=this.Qo=null};
Dl=function(){};
Fl=function(){if(!El())throw Error();};
El=function(){return!(!Gl||!Gl.performance)};
Hl=function(a){return a?a.passive&&yea()?a:a.capture||!1:!1};
Il=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Hl(d)),!0):!1};
Jl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
zea=function(){};
Aea=function(){return ub?ub.mobile:!Kl()&&(wb("iPod")||wb("iPhone")||wb("Android")||wb("IEMobile"))};
Kl=function(){return ub?!ub.mobile&&(wb("iPad")||wb("Android")||wb("Silk")):wb("iPad")||wb("Android")&&!wb("Mobile")||wb("Silk")};
Ll=function(a){try{return!!a&&null!=a.location.href&&rc(a,"foo")}catch(b){return!1}};
Ml=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Cea=function(){var a=[];Ml(Bea,function(b){a.push(b)});
return a};
Eea=function(a){return(a=Dea.exec(a))&&a[0]||""};
Hea=function(){var a=Fea("IFRAME"),b={};g.oc(Gea(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Fea=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Iea=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Ll(a)&&(b=a);return b};
Mea=function(a){a=a||Nl();for(var b=new Jea(g.C.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Kea.test(f.url)&&(c=f);if(f.url&&!f.ZF){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Lea(b,e,c)};
Nl=function(){var a=g.C,b=[],c=null;do{var d=a;if(Ll(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Jea(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.ZF=!0);return b};
Lea=function(a,b,c){this.j=a;this.u=b;this.B=c};
Jea=function(a,b){this.url=a;this.ZF=!!b;this.depth=null};
Ol=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Pl=function(a,b){var c={};c[a]=b;return[c]};
Nea=function(a,b,c,d,e){var f=[];Ml(a,function(k,l){(k=Ql(k,b,c,d,e))&&f.push(l+"="+k)});
return f.join(b)};
Ql=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(Ql(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Nea(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Pea=function(a,b,c){b=b+"//web.archive.org/web/20220406233357/https://pagead2.googlesyndication.com"+c;var d=Oea(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=Nea(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};
Oea=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};
Rl=function(a,b){this.j=a;this.depth=b};
Rea=function(){function a(l,m){return null==l?m:l}
var b=Nl(),c=Math.max(b.length-1,0),d=Mea(b);b=d.j;var e=d.u,f=d.B,k=[];f&&k.push(new Rl([f.url,f.ZF?2:0],a(f.depth,1)));e&&e!=f&&k.push(new Rl([e.url,2],0));b.url&&b!=f&&k.push(new Rl([b.url,0],a(b.depth,c)));d=g.Sl(k,function(l,m){return k.slice(0,k.length-m)});
!b.url||(f||e)&&b!=f||(e=Eea(b.url))&&d.push([new Rl([e,1],a(b.depth,c))]);d.push([]);return g.Sl(d,function(l){return Qea(c,l)})};
Qea=function(a,b){g.Tl(b,function(e){return 0<=e.depth});
var c=Ul(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
d[0]=a;g.oc(b,function(e){return d[e.depth+1]=e.j});
return d};
Sea=function(){var a=Rea();return g.Sl(a,function(b){return Ql(b)})};
Tea=function(a){Gl.google_image_requests||(Gl.google_image_requests=[]);var b=Fea("IMG",Gl.document);b.src=a;Gl.google_image_requests.push(b)};
Vl=function(a){var b="Ze";if(a.Ze&&a.hasOwnProperty(b))return a.Ze;var c=new a;a.Ze=c;a.hasOwnProperty(b);return c};
Wl=function(){this.u=new zea;this.j=El()?new Fl:new Dl};
Uea=function(){Xl();var a=Gl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Gl.setInterval&&"function"===typeof Gl.clearInterval&&"function"===typeof Gl.setTimeout&&"function"===typeof Gl.clearTimeout)};
Vea=function(){Xl();return Sea()};
Wea=function(){};
Xl=function(){return Vl(Wea).getContext()};
Yl=function(a){g.F.call(this,a)};
Zea=function(){return[Yl,1,Xea,2,dm,3,dm,4,dm,5,Yea]};
$ea=function(a){this.B=a;this.j=-1;this.u=this.C=0};
em=function(a,b){return function(){var c=g.Ca.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}}};
afa=function(a,b){this.u=a;this.B=b;this.j=new $ea(a)};
bfa=function(){};
gfa=function(){this.B=void 0;this.u=this.J=0;this.D=-1;this.featureSet=new xl;yl(this.featureSet,"mv",cfa).j=!0;yl(this.featureSet,"omid",Cl);yl(this.featureSet,"epoh",Cl).j=!0;yl(this.featureSet,"epph",Cl).j=!0;yl(this.featureSet,"umt",Cl).j=!0;yl(this.featureSet,"phel",Cl).j=!0;yl(this.featureSet,"phell",Cl).j=!0;yl(this.featureSet,"oseid",dfa).j=!0;var a=this.featureSet;a.j.sloi||(a.j.sloi=new vl);a.j.sloi.j=!0;yl(this.featureSet,"mm",efa);yl(this.featureSet,"ovms",ffa).j=!0;yl(this.featureSet,
"xdi",Cl).j=!0;yl(this.featureSet,"amp",Cl).j=!0;yl(this.featureSet,"prf",Cl).j=!0;yl(this.featureSet,"gtx",Cl).j=!0;yl(this.featureSet,"mvp_lv",Cl).j=!0;yl(this.featureSet,"ssmol",Cl).j=!0;yl(this.featureSet,"vveh",Cl).j=!0;this.j=new afa(Xl(),this.featureSet);this.C=!1;this.flags=new bfa};
fm=function(){return Vl(gfa)};
gm=function(a,b,c,d,e){if((d?a.B:Math.random())<(e||a.j))try{if(c instanceof Ol)var f=c;else f=new Ol,Ml(c,function(l,m){var n=f,p=n.C++;l=Pl(m,l);n.j.push(p);n.u[p]=l});
var k=Pea(f,a.u,"/pagead/gen_204?id="+b+"&");k&&(Xl(),Tea(k))}catch(l){}};
hfa=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};
ifa=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.Ua()};
jfa=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
kfa=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
im=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=hm()||(null!=b?b:1>Math.random())};
lfa=function(a){a&&jm&&hm()&&(jm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),jm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
mfa=function(){var a=km;this.j=lm;this.cM="jserror";this.dI=!0;this.dE=null;this.u=this.pG;this.Rb=void 0===a?null:a};
nfa=function(a,b,c,d){return em(fm().j.j,function(){try{if(a.Rb&&a.Rb.j){var e=a.Rb.start(b.toString(),3);var f=c();a.Rb.end(e)}else f=c()}catch(l){var k=a.dI;try{lfa(e),k=a.u(b,new mm(nm(l)),void 0,d)}catch(m){a.pG(217,m)}if(!k)throw l;}return f})()};
pm=function(a,b,c,d){var e=om;return em(fm().j.j,function(){var f=g.Ca.apply(0,arguments);return nfa(e,a,function(){return b.apply(c,f)},d)})};
nm=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};
mm=function(a){hfa.call(this,Error(a),{message:a})};
ofa=function(){Gl&&"undefined"!=typeof Gl.google_measure_js_timing&&(Gl.google_measure_js_timing||km.disable())};
pfa=function(a){om.dE=function(b){g.oc(a,function(c){c(b)})}};
qfa=function(a,b){return nfa(om,a,b)};
qm=function(a,b){return pm(a,b)};
wm=function(a,b,c,d){om.pG(a,b,c,d)};
xm=function(){return Date.now()-rfa};
sfa=function(){var a=fm().B,b=0<=ym?xm()-ym:-1,c=zm?xm()-Am:-1,d=0<=Bm?xm()-Bm:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];wm(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};
Cm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Dm=function(a){return a.right-a.left};
Em=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};
Fm=function(a,b,c){b instanceof g.Bh?(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};
Gm=function(a,b,c){var d=new Cm(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
Hm=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};
ufa=function(a){var b=a!==a.top,c=a.top===Iea(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),Jf(tfa,function(k){return"function"===typeof f[k]})||(e=1));
return{Uj:f,compatibility:e,b_:d}};
vfa=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
wfa=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Dh(b.innerWidth,b.innerHeight)).round():zba(b||window).round()}catch(d){return new g.Dh(-12245933,-12245933)}};
Im=function(a,b,c){try{a&&(b=b.top);var d=wfa(a,b,void 0===c?!1:c),e=Bba(Rh(b.document).j);if(-12245933==d.width){var f=d.width;var k=new Cm(f,f,f,f)}else k=new Cm(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new Cm(-12245933,-12245933,-12245933,-12245933)}};
g.Jm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Km=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.Mm=function(a,b,c){if("string"===typeof b)(b=Lm(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Lm(c,d);f&&(c.style[f]=e)}};
Lm=function(a,b){var c=xfa[b];if(!c){var d=Mh(b);c=d;void 0===a.style[d]&&(d=(g.zf?"Webkit":Nm?"Moz":g.Ic?"ms":null)+wba(d),void 0!==a.style[d]&&(c=d));xfa[b]=c}return c};
g.Om=function(a,b){var c=a.style[Mh(b)];return"undefined"!==typeof c?c:a.style[Lm(a,b)]||""};
Pm=function(a,b){var c=Ph(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Qm=function(a,b){return Pm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Sm=function(a,b,c){if(b instanceof g.Bh){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Rm(d,!1);a.style.top=g.Rm(b,!1)};
Tm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
yfa=function(a){if(g.Ic&&!g.xc(8))return a.offsetParent;var b=Ph(a),c=Qm(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=Qm(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.Um=function(a){var b=Ph(a),c=new g.Bh(0,0);var d=b?Ph(b):document;d=!g.Ic||g.xc(9)||"CSS1Compat"==Rh(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Tm(a);b=Bba(Rh(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Afa=function(a,b){var c=new g.Bh(0,0),d=bi(Ph(a));if(!rc(d,"parent"))return c;do{var e=d==b?g.Um(a):zfa(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.Vm=function(a,b){a=Bfa(a);b=Bfa(b);return new g.Bh(a.x-b.x,a.y-b.y)};
zfa=function(a){a=Tm(a);return new g.Bh(a.left,a.top)};
Bfa=function(a){if(1==a.nodeType)return zfa(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Bh(a.clientX,a.clientY)};
g.Wm=function(a,b,c){if(b instanceof g.Dh)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Rm(b,!0);a.style.height=g.Rm(c,!0)};
g.Rm=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Xm=function(a){var b=Cfa;if("none"!=Qm(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};
Cfa=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.zf&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Tm(a),new g.Dh(a.right-a.left,a.bottom-a.top)):new g.Dh(b,c)};
g.Ym=function(a,b){a.style.display=b?"":"none"};
Zm=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Dfa=function(a){return new Cm(a.top,a.right,a.bottom,a.left)};
Efa=function(a){var b=a.top||0,c=a.left||0;return new Cm(b,c+(a.width||0),b+(a.height||0),c)};
$m=function(a){return null!=a&&0<=a&&1>=a};
Ffa=function(){var a=g.tb();return a?an("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return pb(a,b)})||pb(a,"OMI/")&&!pb(a,"XiaoMi/")?!0:pb(a,"Presto")&&pb(a,"Linux")&&!pb(a,"X11")&&!pb(a,"Android")&&!pb(a,"Mobi"):!1};
Gfa=function(){this.B=!Ll(Gl.top);this.isMobileDevice=Kl()||Aea();var a=Nl();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.ej(a[a.length-1].url)||"":"";this.j=new Cm(0,0,0,0);this.C=new g.Dh(0,0);this.D=new g.Dh(0,0);this.K=new Cm(0,0,0,0);this.J=0;this.S=!1;this.u=!(!Gl||!ufa(Gl).Uj);this.update(Gl)};
Hfa=function(a,b){b&&b.screen&&(a.C=new g.Dh(b.screen.width,b.screen.height))};
Ifa=function(a,b){var c=a.j?new g.Dh(Dm(a.j),a.j.getHeight()):new g.Dh(0,0);b=void 0===b?Gl: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.Dh(e,d)}catch(w){t=new g.Dh(-12245933,-12245933)}a.D=t};
dn=function(){var a=bn();if(0<a.J||a.S)return!0;a=Xl().u.isVisible();var b=0===Jl(cn);return a||b};
bn=function(){return Vl(Gfa)};
en=function(a){this.B=a;this.u=0;this.j=null};
fn=function(a,b,c){this.B=a;this.Ia=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new Gm(-1,!0,this);this.j=this;this.S=b;this.Z=this.X=!1;this.xa="uk";this.va=!1;this.J=!0};
gn=function(a,b){g.Tb(a.D,b)||(a.D.push(b),b.Et(a.j),b.Ho(a.C),b.Fl()&&(a.X=!0))};
Jfa=function(a){a=a.j;a.IJ();a.HJ();var b=bn();b.K=Im(!1,a.B,b.isMobileDevice);Ifa(bn(),a.B);a.C.j=a.CM()};
Kfa=function(a){a.X=a.D.length?an(a.D,function(b){return b.Fl()}):!1};
Lfa=function(a){var b=g.cc(a.D);g.oc(b,function(c){c.Ho(a.C)})};
hn=function(a){var b=g.cc(a.D);g.oc(b,function(c){c.Et(a.j)});
a.j!=a||Lfa(a)};
jn=function(a,b,c,d){this.element=a;this.j=new Cm(0,0,0,0);this.C=new Cm(0,0,0,0);this.u=b;this.featureSet=c;this.ma=d;this.Z=!1;this.timestamp=-1;this.K=new Hm(b.C,this.element,this.j,new Cm(0,0,0,0),0,0,xm(),0)};
kn=function(a){this.D=!1;this.j=a;this.C=function(){}};
Mfa=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.Zc=null==b?"":b};
Nfa=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}};
Ofa=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.Zc<typeof b.Zc?!0:typeof a.Zc>typeof b.Zc?!1:a.Zc<b.Zc};
ln=function(){this.B=0;this.j=[];this.u=!1};
Pfa=function(a,b){(0,g.oc)(b.j,function(c){a.add(c.j,c.Zc,Nfa(c))})};
mn=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Ml(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
nn=function(a){var b=Qfa;a.u&&(g.kc(a.j,function(c,d){return Ofa(d,c)?1:Ofa(c,d)?-1:0}),a.u=!1);
return Ul(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Qfa=function(a){var b=a.j;a=a.Zc;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Tb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Rfa=function(a){var b=void 0===b?!0:b;this.j=new ln;void 0!==a&&Pfa(this.j,a);b&&this.j.add("v",on,-16)};
Sfa=function(a){var b=[],c=[];g.Ff(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)};
Tfa=function(){if(on&&"unreleased"!==on)return on};
Ufa=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Tfa();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);Xl();Tea(b)};
Vfa=function(){this.j=0};
Wfa=function(a,b,c){(0,g.oc)(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 ln;k.add("id","av-js");k.add("type","verif");k.add("vtype",d.D);d=Vl(Vfa);k.add("i",d.j++);k.add("adk",e);mn(k,f);e=new Rfa(k);Ufa(e)}})};
pn=function(){this.u=this.B=this.C=this.j=0};
qn=function(a){this.u=a=void 0===a?Xfa:a;this.j=g.Sl(this.u,function(){return new pn})};
rn=function(a,b){return Yfa(a,function(c){return c.j},void 0===b?!0:b)};
tn=function(a,b){return sn(a,b,function(c){return c.j})};
Zfa=function(a,b){return Yfa(a,function(c){return c.B},void 0===b?!0:b)};
un=function(a,b){return sn(a,b,function(c){return c.B})};
vn=function(a,b){return sn(a,b,function(c){return c.u})};
$fa=function(a){g.oc(a.j,function(b){b.u=0})};
Yfa=function(a,b,c){a=g.Sl(a.j,function(d){return b(d)});
return c?a:aga(a)};
sn=function(a,b,c){var d=g.Rb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
aga=function(a){return g.Sl(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
wn=function(){this.u=new qn;this.Ia=new pn;this.ma=this.K=-1;this.Va=1E3;this.Wa=new qn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.xa=this.ra=-1};
xn=function(a,b){return Zfa(a.u,void 0===b?!0:b)};
yn=function(a){this.isValid=a};
zn=function(a){return new yn(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
dga=function(a,b){b=void 0===b?cga:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof yn&&d.isValid(a))return new Zj(a,ck)}};
An=function(a,b,c,d){var e=void 0===e?!1:e;c=pm(d,c);Il(a,b,c,{capture:e})};
Cn=function(a,b){b=Bn(b);return 0===b?0:Bn(a)/b};
Bn=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
ega=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.ji(a)||a){var d=Ph(a),e=d&&bi(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1};
fga=function(a,b,c){if(!a||!b)return!1;b=Fm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Ll(window.top)&&window.top&&window.top.document&&(window=window.top);if(!vfa())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Ph(c))&&b.defaultView&&b.defaultView.frameElement)&&ega(b,a);var d=a===c;a=!d&&a&&ni(a,function(e){return e===c});
return!(b||d||a)};
gga=function(a,b,c,d){return bn().B?!1:0>=Dm(a)||0>=a.getHeight()?!0:c&&d?qfa(208,function(){return fga(a,b,c)}):!1};
Dn=function(a,b,c){g.G.call(this);this.position=hga.clone();this.lB=this.BA();this.mG=-2;this.q_=Date.now();this.pQ=-1;this.lastUpdateTime=b;this.dB=null;this.dA=!1;this.tB=null;this.opacity=-1;this.requestSource=c;this.rG=function(){};
this.CQ=function(){};
this.eh=new xea;this.eh.Qo=a;this.eh.j=a;this.No=!1;this.gq={BG:null,zG:null};this.XP=!0;this.Iy=null;this.Gt=this.GV=!1;fm().J++;this.Ef=this.pF();this.mQ=-1;this.je=null;this.CV=!1;this.featureSet=new xl;wea(this.featureSet);iga(this);1==this.requestSource?zl(this.featureSet,"od",1):zl(this.featureSet,"od",0)};
iga=function(a){a=a.eh.Qo;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:jga&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Nh()):!!a.getAttribute("data-"+Nh());b&&(bn().u=!0)};
En=function(a,b){b!=a.Gt&&(a.Gt=b,a=bn(),b?a.J++:0<a.J&&a.J--)};
kga=function(a,b){if(a.je){if(b.getName()===a.je.getName())return;a.je.dispose();a.je=null}b=b.create(a.eh.j,a.featureSet,a.Fl());if(b=null!=b&&b.pD()?b:null)a.je=b};
lga=function(a,b,c){if(!a.dB||-1==a.lastUpdateTime||-1===b.u||-1===a.dB.u)return 0;a=b.u-a.dB.u;return a>c?0:a};
mga=function(a,b,c){if(a.je){a.je.Jn();var d=a.je.K,e=d.C,f=e.j;if(null!=d.J){var k=d.B;a.tB=new g.Bh(k.left-f.left,k.top-f.top)}f=a.nC()?Math.max(d.j,d.D):d.j;k={};null!==e.volume&&(k.volume=e.volume);e=a.xM(d);a.dB=d;a.Ja(f,b,c,!1,k,e,d.K)}};
nga=function(a){if(a.dA&&a.Iy){var b=1==Al(a.featureSet,"od"),c=bn().j,d=a.Iy,e=a.je?a.je.getName():"ns",f=new g.Dh(Dm(c),c.getHeight());c=a.nC();a={e_:e,tB:a.tB,S_:f,nC:c,qd:a.Ef.qd,M_:b};if(b=d.u){b.Jn();e=b.K;f=e.C.j;var k=null,l=null;null!=e.J&&f&&(k=e.B,k=new g.Bh(k.left-f.left,k.top-f.top),l=new g.Dh(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={e_:b.getName(),tB:k,S_:l,nC:c,M_:!1,qd:e}}else c=null;c&&Wfa(d,a,c)}};
oga=function(a,b,c){b&&(a.rG=b);c&&(a.CQ=c)};
g.Fn=function(){};
g.Gn=function(a){return{value:a,done:!1}};
pga=function(){this.C=this.j=this.B=this.u=this.D=0};
qga=function(a){var b={};var c=g.Ua()-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};
rga=function(){sl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Hn=function(a){return $m(a.volume)&&0<a.volume};
In=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 sga(f,b,c)}};
Jn=function(a,b){return function(c){return b(c)?c[a]:void 0}};
tga=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}};
sga=function(a,b,c){return void 0===c||c?g.Xn(a,function(d,e){return g.Tb(b,e)}):g.Sl(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)})};
Yn=function(){this.u=this.j=""};
uga=function(){};
Zn=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.bg(c,a);return nn(mn(new ln,c))};
vga=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};
$n=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)};
wga=function(a){var b=g.Nf(a.u),c=0,d;for(d in a.j)g.Tb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
xga=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};
ao=function(){this.j=this.u=0};
bo=function(){wn.call(this);this.B=new pn;this.Ha=this.X=this.va=0;this.S=-1;this.Xa=new pn;this.D=new pn;this.j=new qn;this.J=this.C=-1;this.Z=new pn;this.Va=2E3;this.Da=new ao;this.Ra=new ao;this.Qa=new ao};
co=function(a,b,c){var d=a.Ha;zm||c||-1==a.S||(d+=b-a.S);return d};
yga=function(){this.u=!1};
eo=function(a,b){this.u=!1;this.B=a;this.X=b;this.C=0};
fo=function(a,b){eo.call(this,a,b);this.K=[]};
go=function(a,b,c,d){jn.call(this,a,b,c,d)};
ho=function(a,b,c){jn.call(this,null,a,b,c);this.J=a.isActive();this.D=0};
io=function(a){return[a.top,a.left,a.bottom,a.right]};
jo=function(a,b,c,d,e,f,k){f=void 0===f?null:f;k=void 0===k?[]:k;Dn.call(this,b,c,d);this.mH=e;this.LE=0;this.Hf={};this.vf=new vga;this.QQ={};this.Tf="";this.Ra=null;this.ib=!1;this.j=[];this.Rq=f;this.J=k;this.C=null;this.B=-1;this.Ha=this.X=void 0;this.ma=this.Z=0;this.xa=-1;this.Wa=this.Va=!1;this.va=this.S=this.u=this.Su=this.fb=0;new qn;this.Da=this.Ia=0;this.Qa=-1;this.og=0;this.K=g.Bg;this.ra=[this.BA()];this.ob=2;this.Lr={};this.Lr.pause="p";this.Lr.resume="r";this.Lr.skip="s";this.Lr.mute=
"m";this.Lr.unmute="um";this.Lr.exitfullscreen="ef";this.D=null;this.Xa=!1};
ko=function(a){0!=a.og&&(a.og=3)};
lo=function(a){return void 0===a?a:Number(a)?Zm(a,3):0};
mo=function(a,b){return a.ra[null!=b&&b<a.ra.length?b:a.ra.length-1]};
zga=function(a){var b=!!Al(fm().featureSet,"umt");return a.X||!b&&!a.Ha?0:1};
Aga=function(a,b){a.Im()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.ma+=b,a.Da+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.Ia+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Qa&&0<d&&(a.Qa=0<=Bm?xm()-Bm:-1);a.Z=c;return e};
Bga=function(a,b){an(a.J,function(c){return c.B==b.B})||a.J.push(b)};
Cga=function(a){var b=tn(a.Gg().j,1);return no(a,b)};
no=function(a,b,c){return 15E3<=b?!0:a.Va?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.xa?b>=a.xa:!1:!1};
Dga=function(a){var b=Zm(a.Ef.qd,2),c=a.vf.B,d=a.Ef,e=mo(a),f=lo(e.C),k=lo(e.J),l=lo(d.volume),m=Zm(e.K,2),n=Zm(e.ma,2),p=Zm(d.qd,2),q=Zm(e.ra,2),t=Zm(e.xa,2);d=Zm(d.Dh,2);a=a.zo().clone();a.round();e=xn(e,!1);return{R_:b,jx:c,mB:f,iB:k,ew:l,nB:m,jB:n,qd:p,oB:q,kB:t,Dh:d,position:a,rB:e}};
Fga=function(a,b){Ega(a.j,b,function(){return{R_:0,jx:void 0,mB:-1,iB:-1,ew:-1,nB:-1,jB:-1,qd:-1,oB:-1,kB:-1,Dh:-1,position:void 0,rB:[]}});
a.j[b]=Dga(a)};
Ega=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
po=function(a,b,c){var d=a.QQ[b];if(null!=d)return d;d=Gga(a,b);var e=Qf(oo,function(f){return f==b});
a=Hga(a,d,d,c,Iga[oo[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
qo=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Hga=function(a,b,c,d,e){if(a.No)return{"if":0,vs:0};var f=a.zo().clone();f.round();var k=bn(),l=fm(),m=a.Gg(),n=a.je?a.je.getName():"ns",p={};p["if"]=k.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.q_;p.p=[f.top,f.left,f.bottom,f.right];p.tos=rn(m.u,!1);p.mtos=xn(m);p.mcvt=m.Ia.B;p.ps=void 0;f=co(m,xm(),a.Im());p.vht=f;p.mut=m.Xa.B;p.a=lo(a.Ef.volume);p.mv=lo(m.J);p.fs=a.Gt?1:0;p.ft=m.Z.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=rn(m.j);p.ssb=rn(m.Wa,!1);p.amtos=Zfa(m.j,!1);p.uac=a.fb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=no(a,m.B.j,!0)?1:0;p.efpf=a.ob;if("gsv"==n||"nis"==n)n=a.je,0<n.D&&(p.nnut=n.D);p.tcm=zga(a);p.nmt=a.Ia;p.bt=a.Da;p.pst=a.Qa;p.vpaid=a.X;p.dur=a.B;p.vmtime=a.Z;p.is=a.vf.B;1<=a.j.length&&(p.i0=a.j[0].jx,p.a0=[a.j[0].ew],p.c0=[a.j[0].qd],p.ss0=[a.j[0].Dh],n=a.j[0].position,p.p0=n?io(n):void 0);2<=a.j.length&&(p.i1=a.j[1].jx,p.a1=qo(a.j[1].mB,a.j[1].ew,a.j[1].iB),p.c1=qo(a.j[1].nB,a.j[1].qd,a.j[1].jB),p.ss1=qo(a.j[1].oB,a.j[1].Dh,a.j[1].kB),n=a.j[1].position,p.p1=n?io(n):
void 0,p.mtos1=a.j[1].rB);3<=a.j.length&&(p.i2=a.j[2].jx,p.a2=qo(a.j[2].mB,a.j[2].ew,a.j[2].iB),p.c2=qo(a.j[2].nB,a.j[2].qd,a.j[2].jB),p.ss2=qo(a.j[2].oB,a.j[2].Dh,a.j[2].kB),n=a.j[2].position,p.p2=n?io(n):void 0,p.mtos2=a.j[2].rB);4<=a.j.length&&(p.i3=a.j[3].jx,p.a3=qo(a.j[3].mB,a.j[3].ew,a.j[3].iB),p.c3=qo(a.j[3].nB,a.j[3].qd,a.j[3].jB),p.ss3=qo(a.j[3].oB,a.j[3].Dh,a.j[3].kB),n=a.j[3].position,p.p3=n?io(n):void 0,p.mtos3=a.j[3].rB);p.cs=xga(a.vf);b&&(p.ic=wga(a.vf),p.dvpt=m.B.u,p.dvs=vn(m.u,.5),
p.dfvs=vn(m.u,1),p.davs=vn(m.j,.5),p.dafvs=vn(m.j,1),c&&(m.B.u=0,$fa(m.u),$fa(m.j)),a.Jm()&&(p.dtos=m.va,p.dav=m.X,p.dtoss=a.LE+1,c&&(m.va=0,m.X=0,a.LE++)),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=[Dm(k.j),k.j.getHeight()];p.scs=[k.C.width,k.C.height];p.dom=k.domain;a.Su&&(p.vds=a.Su);if(0<a.J.length||a.Rq)b=g.cc(a.J),a.Rq&&b.push(a.Rq),p.pings=g.Sl(b,function(q){return q.toString()});
b=g.Sl(g.Xn(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.je?a.je.getName():"ns";a.je&&g.bg(p,a.je.uo());d?(p.c=Zm(a.Ef.qd,2),p.ss=Zm(a.Ef.Dh,2)):p.tth=xm()-Jga;p.mc=Zm(m.ma,2);p.nc=Zm(m.K,2);p.mv=lo(m.J);p.nv=lo(m.C);p.lte=Zm(a.mG,2);d=mo(a,e);xn(m);p.qmtos=xn(d);p.qnc=Zm(d.K,2);p.qmv=lo(d.J);p.qnv=lo(d.C);p.qas=0<d.C?1:0;p.qi=a.Tf;p.avms||(p.avms="geo");p.psm=m.Da.j;p.psv=m.Da.getValue();p.psfv=m.Ra.getValue();p.psa=m.Qa.getValue();l=uea(l.featureSet);l.length&&(p.veid=l);
a.D&&g.bg(p,qga(a.D));p.avas=a.tA();p.vs=a.DM();return p};
Gga=function(a,b){if(g.Tb(Kga,b))return!0;var c=a.Hf[b];return void 0!==c?(a.Hf[b]=!0,!c):!1};
Mga=function(){this.j={};var a=bi();ro(this,a,document);var b=Lga();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)ro(this,c,c.document);ro(this,a.top,a.top.document)}}catch(d){}};
Lga=function(){var a=document.documentElement;try{if(!Ll(bi().top))return"2";var b=[],c=bi(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"}};
ro=function(a,b,c){An(c,"mousedown",function(){return Nga(a)},301);
An(b,"scroll",function(){return Oga(a)},302);
An(c,"touchmove",function(){return Pga(a)},303);
An(c,"mousemove",function(){return Qga(a)},304);
An(c,"keydown",function(){return Rga(a)},305)};
Nga=function(a){g.Ff(a.j,function(b){1E5<b.B||++b.B})};
Oga=function(a){g.Ff(a.j,function(b){1E5<b.j||++b.j})};
Pga=function(a){g.Ff(a.j,function(b){1E5<b.j||++b.j})};
Rga=function(a){g.Ff(a.j,function(b){1E5<b.u||++b.u})};
Qga=function(a){g.Ff(a.j,function(b){1E5<b.C||++b.C})};
Sga=function(){this.j=[];this.u=[]};
so=function(a,b){return g.Qb(a.j,function(c){return c.Tf==b})};
Tga=function(a,b){return b?g.Qb(a.j,function(c){return c.eh.Qo==b}):null};
Uga=function(a,b){return g.Qb(a.u,function(c){return 2==c.fl()&&c.Tf==b})};
uo=function(){var a=to;return 0==a.j.length?a.u:0==a.u.length?a.j:g.ac(a.u,a.j)};
Vga=function(a,b){a=1==b.fl()?a.j:a.u;var c=Pb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.je&&b.je.yv(),b.dispose(),!0):!1};
Wga=function(a){var b=to;if(Vga(b,a)){switch(a.fl()){case 0:var c=function(){return null};
case 2:c=function(){return Uga(b,a.Tf)};
break;case 1:c=function(){return so(b,a.Tf)}}for(var d=c();d;d=c())Vga(b,d)}};
Xga=function(a,b){var c=to;a=g.Xn(a,(void 0===b?0:b)?function(d){return!so(c,d.Tf)}:function(d){return!Tga(c,d.eh.Qo)});
c.j.push.apply(c.j,g.u(a))};
Yga=function(a){var b=to,c=[];g.oc(a,function(d){an(b.j,function(e){return e.eh.Qo===d.eh.Qo&&e.Tf===d.Tf})||(b.j.push(d),c.push(d))})};
vo=function(){this.j=this.u=null};
Zga=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.Qb(a.u,function(d){return null!=d&&d.JJ()});
a.j&&(a.j.init(c)?Jfa(a.j.j):b(a.j.j.qt(),a.j));return null!=a.j};
wo=function(a){a=$ga(a);kn.call(this,a.length?a[a.length-1]:new fn(Gl,0));this.B=a;this.u=null};
$ga=function(a){if(!a.length)return[];a=(0,g.Xn)(a,function(c){return null!=c&&c.xv()});
for(var b=1;b<a.length;b++)gn(a[b-1],a[b]);return a};
yo=function(a,b,c,d){jn.call(this,a,b,c,d);this.X=this.S=this.D=this.J=this.B=null};
zo=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
bha=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=fm().j.j;a.B=new c.IntersectionObserver(em(d,function(e){return Ao(a,e)}),aha);
d=em(d,function(){a.B.unobserve(b);a.B.observe(b);Ao(a,zo(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);Ao(a,zo(a));return!0};
Ao=function(a,b){try{if(b.length){a.S||(a.S=xm());var c=cha(b),d=Afa(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new Cm(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var k=Dfa(c.intersectionRect);a.C=Fm(k,a.j.left-k.left,a.j.top-k.top)}}catch(l){a.yv(),wm(299,l)}};
cha=function(a){return Ul(a,function(b,c){return b.time>c.time?b:c},a[0])};
Bo=function(a){a=void 0===a?Gl:a;kn.call(this,new fn(a,2))};
Co=function(){var a=dha();fn.call(this,Gl.top,a,"geo")};
dha=function(){fm();var a=bn();return a.B||a.u?0:2};
eha=function(){};
Do=function(){this.done=!1;this.j={CT:0,bL:0,dia:0,WL:0,QF:-1,hU:0,gU:0,iU:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new en(this)};
Fo=function(){var a=Eo;a.J||(a.J=!0,fha(a,function(){return a.C.apply(a,g.u(g.Ca.apply(0,arguments)))}),a.C())};
gha=function(){Vl(eha);var a=Vl(vo);null!=a.j&&a.j.j?Jfa(a.j.j):bn().update(Gl)};
Go=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{gha();var d=xm(),e=fm();e.D=d;if(null!=Vl(vo).j)for(e=0;e<b.length;e++)mga(b[e],d,c);else gm(lm,"",{strategy_not_selected:1,bin:e.u},!0);for(d=0;d<b.length;d++)nga(b[d]);++a.j.WL}finally{c?g.oc(b,function(f){f.Ef.qd=0}):a.u.schedule()}}};
fha=function(a,b){if(!a.D){b=pm(142,b);Xl();var c;cn.visibilityState?c="visibilitychange":cn.mozVisibilityState?c="mozvisibilitychange":cn.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Il(cn,c,b,{capture:!1})&&(a.D=b)}};
hha=function(){var a=Vl(vo);if(null!=a.j){var b=a.j;g.oc(uo(),function(c){return kga(c,b)})}};
iha=function(a,b){a=a.K;zm&&(a+=b-Am);return a};
jha=function(a){var b=Eo;a=void 0===a?function(){return{}}:a;
om.cM="av-js";lm.j=.01;pfa([function(c){var d=fm(),e={};e=(e.bin=d.u,e.type="error",e);d=Bl(d.featureSet);if(!b.B){var f=Gl.document,k=0<=ym?xm()-ym:-1,l=xm();-1==b.j.QF&&(k=l);var m=bn(),n=fm(),p=Bl(n.featureSet),q=uo();try{if(0<q.length){var t=m.j;t&&(p.bs=[Dm(t),t.getHeight()]);var w=m.D;w&&(p.ps=[w.width,w.height]);Gl.screen&&(p.scs=[Gl.screen.width,Gl.screen.height])}else p.url=encodeURIComponent(Gl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=k;p.pt=ym;p.bin=n.u;void 0!==Gl.google_osd_load_pub_page_exp&&(p.olpp=Gl.google_osd_load_pub_page_exp);p.deb=[1,b.j.CT,b.j.bL,b.j.WL,b.j.QF,0,b.u.u,b.j.hU,b.j.gU,b.j.iU].join("-");p.tvt=iha(b,l);m.u&&(p.inapp=1);if(null!==Gl&&Gl!=Gl.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Gl.location.href.substring(0,512)));var x=m.K;p.is=[Dm(x),x.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.Zf(b.B);w=fm().j;1==Al(w.B,"prf")?(x=new Yl,f=w.j,k=0,-1<f.j&&(k=f.B.j.now()-f.j),x=je(x,1,f.C+k,0),f=w.j,
x=je(x,5,-1<f.j?f.u+1:f.u,0),x=je(x,2,w.u.j.B(),0),x=je(x,3,w.u.j.u(),0),w=je(x,4,w.u.j.j(),0),x={},w=(x.pf=g.Ac(g.Ve(w,Zea)),x)):w={};g.bg(t,w);g.bg(c,e,d,t,a());if(e=Tfa())d={},g.bg(c,(d.v=encodeURIComponent(e),d))}])};
lha=function(){var a=kha||Gl;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("&")};
Ho=function(){var a="youtube.player.web_20220405_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20220405_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20220405_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20220405_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_20220405_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};
mha=function(){return"av.default_js".includes("ima_html5_sdk")?{Uk:"ima",Xk:null}:"av.default_js".includes("ima_native_sdk")?{Uk:"nima",Xk:null}:"av.default_js".includes("admob-native-video-javascript")?{Uk:"an",Xk:null}:"youtube.player.web_20220405_01_RC00".includes("cast_js_sdk")?{Uk:"cast",Xk:Ho()}:"youtube.player.web_20220405_01_RC00".includes("youtube.player.web")?{Uk:"yw",Xk:Ho()}:"youtube.player.web_20220405_01_RC00".includes("outstream_web_client")?{Uk:"out",Xk:Ho()}:"youtube.player.web_20220405_01_RC00".includes("drx_rewarded_web")?
{Uk:"r",Xk:Ho()}:"youtube.player.web_20220405_01_RC00".includes("gam_native_web_video")?{Uk:"n",Xk:Ho()}:"youtube.player.web_20220405_01_RC00".includes("admob_interstitial_video")?{Uk:"int",Xk:Ho()}:{Uk:"j",Xk:null}};
Ko=function(a,b){var c={sv:"924"};null!==Io&&(c.v=Io);c.cb=nha;c.nas=to.j.length;c.msg=a;void 0!==b&&(a=oha(b))&&(c.e=Jo[a]);return c};
Lo=function(a){return gb(a,"custom_metric_viewable")};
oha=function(a){var b=Lo(a)?"custom_metric_viewable":a.toLowerCase();return Qf(oo,function(c){return c==b})};
pha=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
sha=function(a){try{var b=a.split(",");return b.length>g.Nf(qha).length?null:Ul(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===rha[d[0]]||!rha[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
tha=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?un(b.j,a.j):un(b.u,a.j);case "tos":return a.u?tn(b.j,a.j):tn(b.u,a.j)}return 0};
Mo=function(a,b,c,d){eo.call(this,b,d);this.K=a;this.S=c};
uha=function(){};
No=function(){};
Oo=function(){};
Po=function(a){eo.call(this,"fully_viewable_audible_half_duration_impression",a)};
Qo=function(a){this.j=a};
Ro=function(a,b){eo.call(this,a,b)};
So=function(a){fo.call(this,"measurable_impression",a)};
To=function(){Qo.apply(this,arguments)};
Uo=function(a,b,c){ho.call(this,a,b,c)};
Vo=function(a){a=void 0===a?Gl:a;kn.call(this,new fn(a,2))};
Wo=function(a,b,c){ho.call(this,a,b,c)};
Xo=function(a){a=void 0===a?Gl:a;kn.call(this,new fn(a,2))};
Yo=function(){fn.call(this,Gl,2,"mraid");this.Da=0;this.ma=this.ra=!1;this.K=null;this.u=ufa(this.B);this.C.j=new Cm(0,0,0,0);this.Ha=!1};
Zo=function(a,b,c){a.kp("addEventListener",b,c)};
yha=function(a){fm().C=!!a.kp("isViewable");Zo(a,"viewableChange",vha);"loading"===a.kp("getState")?Zo(a,"ready",wha):xha(a)};
xha=function(a){"string"===typeof a.u.Uj.AFMA_LIDAR?(a.ra=!0,zha(a)):(a.u.compatibility=3,a.K="nc",a.fail("w"))};
zha=function(a){a.ma=!1;var b=1==Al(fm().featureSet,"rmmt"),c=!!a.kp("isViewable");(b?!c:1)&&Xl().setTimeout(qm(524,function(){a.ma||(Aha(a),wm(540,Error()),a.K="mt",a.fail("w"))}),500);
Bha(a);Zo(a,a.u.Uj.AFMA_LIDAR,Cha)};
Bha=function(a){var b=1==Al(fm().featureSet,"sneio"),c=void 0!==a.u.Uj.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Uj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Uj.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Uj.AFMA_LIDAR_EXP_1=!b)};
Aha=function(a){a.kp("removeEventListener",a.u.Uj.AFMA_LIDAR,Cha);a.ra=!1};
Dha=function(a,b){if("loading"===a.kp("getState"))return new g.Dh(-1,-1);b=a.kp(b);if(!b)return new g.Dh(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Dh(-1,-1):new g.Dh(a,b)};
wha=function(){try{var a=Vl(Yo);a.kp("removeEventListener","ready",wha);xha(a)}catch(b){wm(541,b)}};
Cha=function(a,b){try{var c=Vl(Yo);c.ma=!0;var d=a?new Cm(a.y,a.x+a.width,a.y+a.height,a.x):new Cm(0,0,0,0);var e=xm(),f=dn();var k=new Gm(e,f,c);k.j=d;k.volume=b;c.Ho(k)}catch(l){wm(542,l)}};
vha=function(a){var b=fm(),c=Vl(Yo);a&&!b.C&&(b.C=!0,c.Ha=!0,c.K&&c.fail("w",!0))};
$o=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.K=(a.start=this.nV,a.firstquartile=this.iV,a.midpoint=this.kV,a.thirdquartile=this.oV,a.complete=this.fV,a.error=this.gV,a.pause=this.lH,a.resume=this.HP,a.skip=this.mV,a.viewable_impression=this.il,a.mute=this.Nu,a.unmute=this.Nu,a.fullscreen=this.jV,a.exitfullscreen=this.hV,a.fully_viewable_audible_half_duration_impression=this.il,a.measurable_impression=this.il,a.abandon=this.lH,a.engagedview=this.il,a.impression=this.il,a.creativeview=
this.il,a.progress=this.Nu,a.custom_metric_viewable=this.il,a.bufferstart=this.lH,a.bufferfinish=this.HP,a.audio_measurable=this.il,a.audio_audible=this.il,a);a={};this.S=(a.overlay_resize=this.lV,a.abandon=this.GF,a.close=this.GF,a.collapse=this.GF,a.overlay_unmeasurable_impression=function(b){return po(b,"overlay_unmeasurable_impression",dn())},a.overlay_viewable_immediate_impression=function(b){return po(b,"overlay_viewable_immediate_impression",dn())},a.overlay_unviewable_impression=function(b){return po(b,
"overlay_unviewable_impression",dn())},a.overlay_viewable_end_of_session_impression=function(b){return po(b,"overlay_viewable_end_of_session_impression",dn())},a);
fm().u=3;Eha(this);this.B=!1};
ap=function(a,b,c,d){b=a.py(null,d,!0,b);b.C=c;Xga([b],a.B);return b};
Fha=function(a,b,c){sea(b);var d=a.j;g.oc(b,function(e){var f=g.Sl(e.criteria,function(k){var l=sha(k);if(null==l)k=null;else if(k=new pha,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=ib(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});
an(f,function(k){return null==k})||Bga(c,new Mo(e.id,e.event,f,d))})};
Gha=function(){var a=[],b=fm();a.push(Vl(Co));Al(b.featureSet,"mvp_lv")&&a.push(Vl(Yo));b=[new Vo,new Xo];b.push(new wo(a));b.push(new Bo(Gl));return b};
Hha=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=xm(),c=fm(),d=bn();ym=b;c.B=79463069;"o"!==a.u&&(kha=Iea(Gl));if(Uea()){Eo.j.bL=0;Eo.j.QF=xm()-b;var e=Gha(),f=Vl(vo);f.u=e;Zga(f,function(){bp()})?Eo.done||(hha(),gn(f.j.j,a),Fo()):d.B?bp():Fo()}else cp=!0}catch(k){throw to.reset(),k;
}}};
ep=function(a){Eo.u.cancel();dp=a;Eo.done=!0};
fp=function(a){if(a.u)return a.u;var b=Vl(vo).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};
gp=function(a,b,c){if(null==a.j)return b.Su|=4,!1;a=Iha(a.j,c,b);b.Su|=a;return 0==a};
bp=function(){var a=[new Bo(Gl)],b=Vl(vo);b.u=a;Zga(b,function(){ep("i")})?Eo.done||(hha(),Fo()):ep("i")};
Jha=function(a,b){if(!a.ib){var c=po(a,"start",dn());c=a.mH.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="924";null!==Io&&(d.v=Io);fj(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=lha();fj(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20220406233357/https://pagead2.googlesyndication.com/pagead/gen_204?"+nn(mn(new ln,d));Ufa(b);a.ib=!0}};
hp=function(a,b,c){Go(Eo,[a],!dn());Fga(a,c);4!=c&&Ega(a.ra,c,a.BA);return po(a,b,dn())};
Eha=function(a){jha(function(){var b=Kha();null!=a.u&&(b.sdk=a.u);var c=Vl(vo);null!=c.j&&(b.avms=c.j.getName());return b})};
Lha=function(a,b,c,d){if(a.B)var e=so(to,b);else e=Tga(to,c),null!==e&&e.Tf!==b&&(a.yw(e),e=null);e||(b=a.py(c,xm(),!1,b),0==to.u.length&&(fm().B=79463069),Yga([b]),e=b,e.C=fp(a),d&&(e.Ra=d));return e};
Mha=function(a){g.oc(to.j,function(b){3==b.og&&a.yw(b)})};
Nha=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Kha=function(){var a=bn(),b={},c={},d={};return Object.assign({},(b.sv="924",b),null!==Io&&(c.v=Io,c),(d["if"]=a.B?"1":"0",d.nas=String(to.j.length),d))};
ip=function(a){eo.call(this,"audio_audible",a)};
jp=function(a){fo.call(this,"audio_measurable",a)};
kp=function(){Qo.apply(this,arguments)};
lp=function(){};
Oha=function(a){this.j=a};
Iha=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==Io&&(d.v=Io,d),(e.sv="924",e.cb=nha,e.e=Pha(b),e));e=po(c,b,dn());g.bg(d,e);c.QQ[b]=e;d=2==c.fl()?Sfa(d).join("&"):c.mH.j(d).j;try{return a(c.Tf,d,b),0}catch(f){return 2}}else return 1};
Pha=function(a){var b=Lo(a)?"custom_metric_viewable":a;a=Qf(oo,function(c){return c==b});
return Jo[a]};
mp=function(){$o.call(this);this.D=null;this.C=!1;this.J="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Qha=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Fha(a,c,b)};
Rha=function(a,b,c){var d=so(to,b);d||(d=c.opt_nativeTime||-1,d=ap(a,b,fp(a),d),c.opt_osdId&&(d.Ra=c.opt_osdId));return d};
Sha=function(a,b,c){var d=so(to,b);d||(d=ap(a,b,"n",c.opt_nativeTime||-1));return d};
Tha=function(a,b){var c=so(to,b);c||(c=ap(a,b,"h",-1));return c};
Uha=function(a){fm();switch(fp(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};
Xha=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.bg(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.GA(b,c);c=f?f.mH:a.IE();if(e.opt_bounds)return c.j(Ko("ol",d));if(void 0!==d)if(void 0!==oha(d))if(cp)b=Ko("ue",d);else if(Hha(a),"i"==dp)b=Ko("i",d),b["if"]=0;else if(b=a.GA(b,e))if(a.B&&3==b.og)b="stopped";else{b:{"i"==dp&&(b.No=!0,a.SH());f=e.opt_fullscreen;void 0!==f&&En(b,!!f);var k;if(f=!bn().u)(f=pb(g.tb(),"CrKey")||pb(g.tb(),"PlayStation")||pb(g.tb(),"Roku")||Ffa()||pb(g.tb(),"Xbox"))||
(f=g.tb(),f=pb(f,"AppleTV")||pb(f,"Apple TV")||pb(f,"CFNetwork")||pb(f,"tvOS")),f||(f=g.tb(),f=pb(f,"sdk_google_atv_x86")||pb(f,"Android TV")),f=!f;f&&(Xl(),f=0===Jl(cn));if(k=f){switch(b.fl()){case 1:Jha(b,"pv");break;case 2:a.DH(b)}ep("pv")}f=d.toLowerCase();if(k=!k)k=Al(fm().featureSet,"ssmol")&&"loaded"===f?!1:g.Tb(Vha,f);if(k&&0==b.og){"i"!=dp&&(Eo.done=!1);k=void 0!==e?e.opt_nativeTime:void 0;Bm=k="number"===typeof k?k:xm();b.dA=!0;var l=dn();b.og=1;b.Hf={};b.Hf.start=!1;b.Hf.firstquartile=
!1;b.Hf.midpoint=!1;b.Hf.thirdquartile=!1;b.Hf.complete=!1;b.Hf.resume=!1;b.Hf.pause=!1;b.Hf.skip=!1;b.Hf.mute=!1;b.Hf.unmute=!1;b.Hf.viewable_impression=!1;b.Hf.measurable_impression=!1;b.Hf.fully_viewable_audible_half_duration_impression=!1;b.Hf.fullscreen=!1;b.Hf.exitfullscreen=!1;b.LE=0;l||(b.Gg().S=k);Go(Eo,[b],!l)}(k=b.Lr[f])&&$n(b.vf,k);g.Tb(Wha,f)&&b.Rq&&b.Rq.D(b,null);switch(b.fl()){case 1:var m=Lo(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=Ko(void 0,f);g.bg(e,d);d=e;break b}d=void 0}3==b.og&&(a.B?b.je&&b.je.yv():a.yw(b));b=d}else b=Ko("nf",d);else b=void 0;else cp?b=Ko("ue"):f?(b=Ko(),g.bg(b,Hga(f,!0,!1,!1))):b=Ko("nf");return"string"===typeof b?a.B&&"stopped"===b?np:c.j():c.j(b)};
Yha=function(a,b){b&&(a.J=b)};
Zha=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
op=function(a,b,c){c=void 0===c?{}:c;a=Xha(Vl(mp),b,c,a);return Zha(a)};
$ha=function(a,b){b=void 0===b?!1:b;var c=Vl(mp).GA(a,{});c?ko(c):b&&(a=Vl(mp).py(null,xm(),!1,a),a.og=3,Yga([a]))};
cia=function(a){if(g.lb(g.Jh(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.zk(a)}catch(c){return null!=g.Qb(aia,function(d){return 0<a.search(d)})}return b.D.match(bia)?!0:null!=g.Qb(aia,function(c){return null!=a.match(c)})};
g.pp=function(a,b){return a.replace(dia,function(c,d){try{var e=g.Xf(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.lb(g.Jh(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
eia=function(a){if(qp){var b={};Object.defineProperties(a,(b[Symbol.hasInstance]=Ud(Object[Symbol.hasInstance]),b))}};
sp=function(a){g.sg.call(this);var b=this;this.J=this.u=0;this.Rj=null!=a?a:{cg:function(e,f){return setTimeout(e,f)},
Ii: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,rp(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.J||fia(this)};
gia=function(){var a=g.tp;sp.j||(sp.j=new sp(a));return sp.j};
fia=function(a){a.J=a.Rj.cg(function(){var b;return g.B(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ya(3):g.A(c,rp(a),3):g.A(c,rp(a),3);fia(a);g.ua(c)})},3E4)};
rp=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,k;return g.B(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,k=!1,g.va(l,2,3),d&&(a.u=a.Rj.cg(function(){d.abort()},b||2E4)),g.A(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:k=!0;case 3:g.ya(l);a.D=void 0;a.u&&(a.Rj.Ii(a.u),a.u=0);k!==a.j&&(a.j=k,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(k);g.za(l,0);break;case 2:g.xa(l),k=!1,l.Ya(3)}})})};
up=function(){this.data_=[];this.j=-1};
hia=function(a){-1==a.j&&(a.j=Ul(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
g.vp=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.Sa)(this.SR,this)};
g.wp=function(a){a.isActive()||a.start()};
iia=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
jia=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.gg=b||0;this.u=c;this.B=(0,g.Sa)(this.LJ,this)};
g.xp=function(a,b){a.isActive()||a.start(b)};
g.yp=function(a){a.stop();a.LJ()};
g.zp=function(a){a.isActive()&&g.yp(a)};
Ap=function(a,b){this.j=a[g.C.Symbol.iterator]();this.u=b};
kia=function(a,b){return new Ap(a,b)};
lia=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Bp=function(a){return a.classList?a.classList:lia(a).match(/\S+/g)||[]};
g.Cp=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Dp=function(a,b){return a.classList?a.classList.contains(b):g.Tb(Bp(a),b)};
g.M=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Dp(a,b)){var c=lia(a);g.Cp(a,c+(0<c.length?" "+b:b))}};
g.Ep=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.M(a,e)});
else{var c={};Array.prototype.forEach.call(Bp(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.Cp(a,b)}};
g.Fp=function(a,b){a.classList?a.classList.remove(b):g.Dp(a,b)&&g.Cp(a,Array.prototype.filter.call(Bp(a),function(c){return c!=b}).join(" "))};
g.Gp=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Fp(a,c)}):g.Cp(a,Array.prototype.filter.call(Bp(a),function(c){return!g.Tb(b,c)}).join(" "))};
g.N=function(a,b,c){c?g.M(a,b):g.Fp(a,b)};
mia=function(a,b){var c=!g.Dp(a,b);g.N(a,b,c)};
Kp=function(a){if(a instanceof Hp||a instanceof Ip||a instanceof Jp)return a;if("function"==typeof a.next)return new Hp(function(){return a});
if("function"==typeof a[Symbol.iterator])return new Hp(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Lh)return new Hp(function(){return a.Lh()});
throw Error("Not an iterator or iterable.");};
Hp=function(a){this.u=a};
Ip=function(a){this.u=a};
Jp=function(a){Hp.call(this,function(){return a});
this.B=a};
g.Lp=function(a,b){this.u={};this.j=[];this.Ap=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.Lp)for(c=a.xm(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
nia=function(a,b){return a===b};
Np=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Mp(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],Mp(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
Mp=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Op=function(){g.sg.call(this);this.j=0;this.endTime=this.startTime=null};
oia=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.Mm(a,"transition",b.join(","))};
Pp=function(a,b,c,d,e){g.Op.call(this);this.u=a;this.J=b;this.K=c;this.D=d;this.S=Array.isArray(e)?e:[e]};
pia=function(a,b,c,d){return new Pp(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
ria=function(a){a=qb(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 qia))return null}return a};
Qp=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
sia=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
tia=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Ic&&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)};
yia=function(a){if(!a)return ch;var b=document.createElement("div").style;uia(a).forEach(function(c){var d=g.zf&&c in via?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");gb(d,"--")||gb(d,"var")||(c=tia(wia,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=ria(c),null!=c&&tia(xia,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return sba(g.Kg("Output of CSS sanitizer"),b.cssText||"")};
uia=function(a){g.Oa(a)?a=g.cc(a):(a=g.Nf(a),g.Zb(a,"cssText"));return a};
g.Sp=function(a){var b,c=b=0,d=!1;a=a.split(zia);for(var e=0;e<a.length;e++){var f=a[e];g.Rp.test(f)?(b++,c++):Aia.test(f)?d=!0:Bia.test(f)?c++:Cia.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Tp=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.Up=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=g.zh(a.j,a.B,b),d=g.zh(a.B,a.C,b);a=g.zh(a.C,a.u,b);c=g.zh(c,d,b);d=g.zh(d,a,b);return g.zh(c,d,b)};
Vp=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Dia=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")};
Wp=function(a){return(a=a.exec(g.tb()))?a[1]:""};
Xp=function(a){return 0<=g.sb(Eia,a)};
g.Yp=function(a){g.G.call(this);this.J=1;this.B=[];this.C=0;this.j=[];this.u={};this.K=!!a};
Fia=function(a,b,c){g.vi(function(){a.apply(b,c)})};
g.Zp=function(a){this.j=a};
$p=function(a){this.j=a};
Gia=function(a){this.data=a};
Hia=function(a){return void 0===a||a instanceof Gia?a:new Gia(a)};
aq=function(a){this.j=a};
g.Iia=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ua()||!!b&&b>g.Ua()};
g.bq=function(a){this.j=a};
Jia=function(){};
cq=function(){};
dq=function(a){this.j=a};
eq=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
Kia=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
gq=function(a,b){this.u=a;this.j=null;if(g.Ic&&!g.xc(9)){fq||(fq=new g.Lp);this.j=fq.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)),fq.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
hq=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Lia[b]})};
iq=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
jq=function(a,b){this.u=a;this.j=b+"::"};
g.kq=function(a){var b=new eq;return b.isAvailable()?a?new jq(b,a):b:null};
lq=function(a,b){this.j=a;this.Zc=b};
mq=function(a){this.j=[];if(a)a:{if(a instanceof mq){var b=a.xm();a=a.Mi();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new lq(b[d],a[d]));break a}}else b=g.Nf(a),a=Mf(a);for(d=0;d<b.length;d++)Mia(this,b[d],a[d])}};
Mia=function(a,b,c){var d=a.j;d.push(new lq(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};
nq=function(){mq.call(this)};
oq=function(){};
Nia=function(){var a=g.Ca.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.Ca.apply(0,arguments))))}})};
Oia=function(){var a=g.Ca.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.Ca.apply(1,arguments))))}};
d=a.map(function(k){return k(f)});
e=Nia.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
pq=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Pia=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:qq}))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"+pq()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(qq+' 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.'));})};
Qia=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(w);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(w),1);n=null}}}
function k(w){if("object"!==typeof w||null===w)var x=!1;else{for(x=w;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(w)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
return w}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(Qia)(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:qq});a={};var t=(a.dispatch=k,a.subscribe=f,a.getState=e,a.replaceReducer=function(w){if("function"!==typeof w)throw Error("Expected the nextReducer to be a function.");l=w;k({type:Ria});return t},a[Sia]=function(){var w={};
return w.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)}},w[Sia]=function(){return this},w},a);
return t};
rq=function(a){g.F.call(this,a,-1,Tia)};
Xia=function(){return[rq,2,Uia,4,ff,7,sq,9,sq,10,sq,11,Via,12,sq,13,Uia,14,g.tq,Wia,15,g.uq,16,g.uq,17,sq,1,Via,3,g.uq,5,g.uq,6,g.uq,8,ff]};
vq=function(a){g.F.call(this,a)};
Wia=function(){return[vq,1,ff,2,ff,3,ff,4,ff,5,sq]};
Yia=function(a){var b=a.split(""),c=[function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
null,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
2037384444,b,"-KvUl7v",-62658807,function(d,e,f){var k=f.length;d.forEach(function(l,m,n){this.push(n[m]=f[(f.indexOf(l)-f.indexOf(this[m])+m+k--)%f.length])},e.split(""))},
function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1352568161,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
-710430310,2070136657,-2026768902,function(d){d.reverse()},
-1687385475,-1567211244,-603366210,1135536092,722730780,-352286398,"MVz1Pml",-802762500,1506157767,-603366210,-1005233588,513393264,b,-1898428464,-1139290570,-739539879,1260496854,1457575405,1401511178,b,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
1343673457,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
973115332,-1431918500,null,-563187850,function(d,e){d.push(e)},
1011091561,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
null,-2102542821,57583671,200614659];c[1]=c;c[41]=c;c[46]=c;try{c[37](c[41],c[47]),c[24](c[13],c[11]),c[31](c[33]),c[22](c[30],c[5]),c[43](c[25]),c[7](c[20]),c[16](c[25],c[15]),c[35](c[1],c[28]),c[7](c[1],c[16]),c[35](c[32],c[20]),c[36](c[1],c[42]),c[33](c[39],c[37]),c[24](c[38],c[1]),c[11](c[5],c[25]),c[40](c[43],c[0]),c[0](c[36],c[50]),c[40](c[48],c[4]),c[37](c[2],c[14]),c[23](c[20],c[21],c[24]()),c[45](c[17],c[22]),c[8](c[14],c[29]),c[1](c[4],c[30]),c[1](c[17],c[5]),c[13](c[17]),c[20](c[17],c[35],
c[21]()),c[13](c[14]),c[8](c[2],c[10]),c[23](c[46]),c[42](c[9],c[47]),c[44](c[7]),c[23](c[31],c[24]),c[15](c[7],c[39]),c[15](c[34],c[11]),c[18](c[26],c[42]),c[15](c[21],c[0]),c[10](c[13],c[21]),c[17](c[13],c[12]),c[32](c[51],c[42]),c[17](c[26],c[1]),c[16](c[26],c[33]),c[10](c[6],c[0])}catch(d){return"enhanced_except_kJUB7-r-_w8_"+a}return b.join("")};
wq=function(a){g.F.call(this,a)};
xq=function(a){g.F.call(this,a)};
yq=function(a){g.F.call(this,a)};
g.zq=function(a){g.F.call(this,a,-1,Zia)};
aja=function(a){g.F.call(this,a,-1,$ia)};
Aq=function(a){g.F.call(this,a)};
Bq=function(a){g.F.call(this,a,-1,bja)};
Cq=function(a){g.F.call(this,a,-1,cja)};
eja=function(a){g.F.call(this,a,-1,dja)};
Dq=function(a){g.F.call(this,a)};
fja=function(a){g.F.call(this,a)};
gja=function(a){g.F.call(this,a)};
Eq=function(a){g.F.call(this,a)};
Fq=function(a){g.F.call(this,a)};
hja=function(a){g.F.call(this,a)};
jja=function(a){g.F.call(this,a,-1,ija)};
kja=function(a){g.F.call(this,a)};
Gq=function(a){g.F.call(this,a)};
lja=function(a){g.F.call(this,a)};
Hq=function(a){g.F.call(this,a)};
mja=function(a){g.F.call(this,a)};
Iq=function(a){g.F.call(this,a)};
nja=function(a,b){se(a,1,b)};
oja=function(a){g.F.call(this,a)};
pja=function(a,b){se(a,1,b)};
Jq=function(a){g.F.call(this,a,-1,qja)};
rja=function(a,b){se(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)};
sja=function(a){g.F.call(this,a)};
Nq=function(a){g.F.call(this,a,-1,tja)};
Oq=function(a){g.F.call(this,a)};
Pq=function(a){g.F.call(this,a,-1,uja)};
Rq=function(a,b){we(a,68,Qq,b)};
Qq=function(a){g.F.call(this,a)};
vja=function(a){g.F.call(this,a)};
wja=function(a){g.F.call(this,a)};
Sq=function(a){g.F.call(this,a)};
Tq=function(a){g.F.call(this,a,431)};
xja=function(a){g.F.call(this,a)};
Uq=function(a){g.F.call(this,a)};
Vq=function(a){g.F.call(this,a,-1,yja)};
zja=function(){return g.Ka("yt.ads.biscotti.lastId_")||""};
Aja=function(a){g.Ja("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.O=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=Bja(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.dr=function(a,b){a=Bja(a);return void 0===a&&void 0!==b?b:Number(a||0)};
er=function(){return g.O("EXPERIMENTS_TOKEN","")};
Bja=function(a){var b=g.O("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.O("EXPERIMENT_FLAGS",{})[a]};
fr=function(){var a=[],b=g.O("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.O("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Cja=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.Ka("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.O("ERRORS",[]),e.push([a,"ERROR",b,c,d]),ar("ERRORS",e));Cja(a)};
jr=function(a,b,c,d){var e=g.Ka("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.O("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=Nla(f[0]||""),l=Nla(f[1]||"");k in c?Array.isArray(c[k])?g.dc(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:Ola==p?"unchanged":p}];Pla.hasOwnProperty(n)||jr(m)}}return c};
lr=function(a){var b=[];g.Ff(a,function(c,d){var e=g.Gh(d),f;Array.isArray(c)?f=c:f=[c];g.oc(f,function(k){""==k?b.push(e):b.push(e+"="+g.Gh(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 Yla(a,b||{},!0)};
qr=function(a,b){return Yla(a,b||{},!1)};
Yla=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.Of(e,f))e[f]=b[f];return g.wj(a,e)+d};
rr=function(a){if(!b)var b=window.location.href;var c=g.dj(1,a),d=g.ej(a);c&&d?(a=a.match(cj),b=b.match(cj),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.ej(b)==d&&(Number(g.dj(4,b))||null)==(Number(g.dj(4,a))||null):!0;return a};
sr=function(a){a||(a=document.location.href);a=g.dj(1,a);return null!==a&&"https"==a};
tr=function(a){a=g.ej(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Nla=function(a){return a&&a.match(Zla)?a:Hh(a)};
ur=function(a){var b=$la;a=void 0===a?zja():a;var c=Object,d=c.assign,e=ama(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 w=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,w,k,l,x,y,m,n,p,q];k=wfa(!1,b.j.top);l={};var z=void 0===z?g.C:z;m=new up;z.SVGElement&&z.document.createElementNS&&
m.set(0);n=Hea();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=hia(m);b=(l.bc=z,l.bih=k.height,l.biw=k.width,l.brdim=f.join(),l.vis=Jl(b.u),l.wgl=!!Gl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
ama=function(a){var b={};b.dt=bma;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?Gl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Gl.screen)?void 0:f.height;var k;b.u_w=null==(k=Gl.screen)?void 0:k.width;var l;b.u_ah=null==(l=Gl.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Gl.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Gl.screen)?void 0:
n.colorDepth}catch(p){}return b};
dma=function(){if(!cma)return null;var a=cma();return"open"in a?a:null};
g.wr=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)};
fma=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 ema){var f=g.O(ema[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};
hma=function(a,b){var c=g.ej(a);g.Q("debug_handle_relative_url_for_query_forward_killswitch")||c||!rr(a)||(c=document.location.hostname);var d=bj(g.dj(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.oc(gma,function(k){e[k]&&(f[k]=e[k])});
return qr(a,f)};
Er=function(a){return g.ej(a)?!1:!0};
g.Gr=function(a,b){var c=b.format||"JSON";a=ima(a,b);var d=jma(a,b),e=!1,f=Fr(a,function(m){if(!e){e=!0;l&&g.Dr(l);var n=g.wr(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=kma(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};
ima=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.O("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=pr(a,b);return a};
jma=function(a,b){var c=g.O("XSRF_FIELD_NAME"),d=g.O("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,k=g.O("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.ej(a)&&!b.withCredentials&&g.ej(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.bg(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.uj(e));f=e||f&&!g.Sf(f);!lma&&f&&"POST"!=
b.method&&(lma=!0,g.hr(Error("AJAX request with postData should use POST")));return e};
kma=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)?mma(a):null)e={},g.oc(a.getElementsByTagName("*"),function(k){e[k.tagName]=nma(k)})}d&&oma(e);
return e};
oma=function(a){if(g.Pa(a))for(var b in a)"html_content"==b||ib(b,"_html")?a[b]=g.rh(g.Kg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):oma(a[b])};
mma=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
nma=function(a){var b="";g.oc(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=dma();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Q("debug_forward_web_query_parameters")&&(a=hma(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=fma(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.Zf(b),d;return(new g.yi(function(e,f){c.onSuccess=function(k){g.wr(k)?e(new pma(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)})).Fh(function(e){e instanceof Ei&&d.abort();
return Bi(e)})};
g.Jr=function(a,b,c,d){function e(l,m,n){return l.Fh(function(p){if(0>=m||403===vr(p.xhr))return Bi(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.yi(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){$a.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
pma=function(a){this.xhr=a};
Kr=function(){this.j=0;this.Zc=null};
Lr=function(a){var b=new Kr;a=void 0===a?null:a;b.j=2;b.Zc=void 0===a?null:a;return b};
Mr=function(a){var b=new Kr;a=void 0===a?null:a;b.j=1;b.Zc=void 0===a?null:a;return b};
g.Pr=function(a,b,c,d,e){Nr||Or.set(""+a,b,{hB:c,path:"/",domain:void 0===d?"youtube.com":d,SZ:void 0===e?!1:e})};
g.Qr=function(a,b){if(!Nr)return Or.get(""+a,b)};
g.qma=function(a,b,c){Nr||Or.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
rma=function(){if(!Or.isEnabled())return!1;if(!Or.isEmpty())return!0;Or.set("TESTCOOKIESENABLED","1",{hB: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)};
sma=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.Ka("yt.scheduler.instance")};
Sr=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ka("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Br(a,c||0)};
Xr=function(a){var b=g.Ka("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
tma=function(){var a=/Chrome\/(\d+)/.exec(g.tb());return a?parseFloat(a[1]):NaN};
uma=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.tb());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")};
vma=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()};
wma=function(){return Yr("(ps4; leanback shell)")||Yr("ps4")&&g.$r()};
g.xma=function(){return g.$r()&&(Yr("ps4 vr")||Yr("ps4 pro vr"))};
cs=function(){var a=/WebKit\/([0-9]+)/.exec(g.tb());return!!(a&&600<=parseInt(a[1],10))};
ds=function(){var a=/WebKit\/([0-9]+)/.exec(g.tb());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.tb();return b?0<=b.toLowerCase().indexOf(a):!1};
ks=function(){if(qca()||gs()||is())return!0;if(g.Q("enable_web_eom_visitor_data"))return g.O("EOM_VISITOR_DATA")?!1:!0;var a=g.O("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a?!0:(a=g.Qr("CONSENT"))?a.startsWith("YES+"):!0};
ms=function(a){$a.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 Ei};
ls=function(){$a.call(this,"Biscotti ID is missing from server")};
Bma=function(){if(g.Q("disable_biscotti_fetch_entirely_for_all_web_clients"))return Bi(Error("Biscotti id fetching has been disabled entirely."));if(!ks())return Bi(Error("User has not consented - not fetching biscotti id."));if("1"==g.Xf(g.O("PLAYER_VARS",{}),"privembed",!1))return Bi(Error("Biscotti ID is not available in private embed mode"));ns||(ns=Ir("//web.archive.org/web/20220406233357/https://googleads.g.doubleclick.net/pagead/id",yma).then(zma).Fh(function(a){return Ama(2,a)}));
return ns};
zma=function(a){a=a.xhr.responseText;if(!gb(a,")]}'"))throw new ls;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new ls;a=a.id;Aja(a);ns=Mr(a);Cma(18E5,2);return a};
Ama=function(a,b){b=new ms(b);Aja("");ns=Lr(b);0<a&&Cma(12E4,a-1);throw b;};
Cma=function(a,b){g.Br(function(){Ir("//web.archive.org/web/20220406233357/https://googleads.g.doubleclick.net/pagead/id",yma).then(zma,function(c){return Ama(b,c)}).Fh(g.Bg)},a)};
Dma=function(){try{var a=g.Ka("yt.ads.biscotti.getId_");return a?a():Bma()}catch(b){return Bi(b)}};
Ema=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.O("ALT_PREF_COOKIE_NAME","PREF");this.u=g.O("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!!((Fma("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);};
Fma=function(a){a=void 0!==ps[a]?ps[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Gma=function(){var a=g.C.navigator;return a?a.connection:void 0};
Ima=function(){var a=Gma();if(a){var b=Hma[a.type||"unknown"]||"CONN_UNKNOWN";a=Hma[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}};
Kma=function(){var a=Gma();if(null!=a&&a.effectiveType)return Jma.hasOwnProperty(a.effectiveType)?Jma[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Lma=function(){return"INNERTUBE_API_KEY"in $q&&"INNERTUBE_API_VERSION"in $q};
g.vs=function(){return{innertubeApiKey:g.O("INNERTUBE_API_KEY"),innertubeApiVersion:g.O("INNERTUBE_API_VERSION"),OA:g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),SF:g.O("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),cN:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"),UF:g.O("INNERTUBE_CONTEXT_HL"),TF:g.O("INNERTUBE_CONTEXT_GL"),dN:g.O("INNERTUBE_HOST_OVERRIDE")||"",fN:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),VF:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.O("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.ws=function(a){var b={client:{hl:a.UF,gl:a.TF,clientName:a.SF,clientVersion:a.innertubeContextClientVersion,configInfo:a.OA}};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});Mma(a,void 0,b);Nma(void 0,b);Oma(a,void 0,b);Pma(void 0,b);g.O("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&(b.user=
{onBehalfOfUser:g.O("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.r(Object.entries(mr(g.O("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};
Qma=function(a){var b=new Cq,c=new g.zq;g.D(c,1,a.UF);g.D(c,2,a.TF);g.D(c,16,a.cN);g.D(c,17,a.innertubeContextClientVersion);if(a.OA){var d=a.OA,e=new xq;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);se(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 aja;for(var f=0;f<d.length;f++){var k=new wq;g.D(k,1,d[f].key);k.setValue(d[f].value);
we(e,15,wq,k)}se(b,5,e)}Mma(a,c);Nma(c);Oma(a,c);Pma(c);g.O("DELEGATED_SESSION_ID")&&!g.Q("pageid_as_header_web")&&(a=new Bq,g.D(a,3,g.O("DELEGATED_SESSION_ID")));a=g.r(Object.entries(mr(g.O("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);se(b,1,c);return b};
Mma=function(a,b,c){a=a.SF;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=qe(b,yq,96)||new yq;var d=os();d=Object.keys(Rma).indexOf(d);d=-1===d?null:d;null!==d&&g.D(c,3,d);se(b,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=os())};
Nma=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)}};
Oma=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=qe(b,xq,62))?d:new xq;g.D(c,6,a.appInstallData);se(b,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Pma=function(a,b){var c=Ima();c&&(a?g.D(a,61,Sma[c]):b&&(b.client.connectionType=c));g.Q("web_log_effective_connection_type")&&(c=Kma())&&(a?g.D(a,94,Tma[c]):b&&(b.client.effectiveConnectionType=c))};
Uma=function(a,b,c){c=void 0===c?{}:c;var d={};g.Q("enable_web_eom_visitor_data")&&g.O("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.O("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.O("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.iL||g.O("AUTHORIZATION"))||(a?b="Bearer "+g.Ka("gapi.auth.getToken")().Wga:b=Si([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.O("SESSION_INDEX",0),g.Q("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));
return d};
xs=function(a){var b;(b=g.kq(a))||(a=new gq(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new aq(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)};
Vma=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.wx(a.payload);break;case "EVENT":As.logEvent(a.eventType,a.payload)}};
Gs=function(a){Fs||(As?As.wx(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.Ca.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.O("DATASYNC_ID"))return g.O("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?Wma[a]:c;d=void 0===d?Xma[a]:d;e=void 0===e?Yma[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},Wma.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&&Zma.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",GB: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}})};
$ma=function(a){if(!a)throw Error();throw a;};
ana=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)}};
bna=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)}};
cna=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)})};
dna=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)};
ena=function(a){return new Promise(function(b,c){dna(a,b,c)})};
g.Ws=function(a){return new g.Us(new Ts(function(b,c){dna(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()}))};
fna=function(a,b){this.request=a;this.cursor=b};
Ys=function(a){return g.Ws(a).then(function(b){return b?new fna(a,b):null})};
gna=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)};
hna=function(a,b){return g.bt(a,["LogsRequestsStore"],{mode:"readwrite",Hc:!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,w,x,y;return g.B(function(z){switch(z.j){case 1:var E={mode:"readonly",Hc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?E.mode=c:Object.assign(E,c);e=E;a.transactionCount++;f=e.Hc?3:1;k=0;case 2:if(l){z.Ya(3);break}k++;m=Math.round((0,g.R)());g.va(z,4);n=a.j.transaction(b,e.mode);E=new dt(n);E=ina(E,d);return g.A(z,E,6);case 6:return p=z.u,q=Math.round((0,g.R)()),jna(a,m,q,k,void 0,b.join(),e),z.return(p);case 4:t=g.xa(z);w=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)jna(a,m,w,k,x,b.join(),e),l=x;z.Ya(2);break;case 3:return z.return(Promise.reject(l))}})};
jna=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),kna(a,!1,d,f,b,k.tag),Gs(e)):kna(a,!0,d,
f,b,k.tag)};
kna=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})};
lna=function(a,b){return g.ft(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
g.nna=function(a,b){return"getAll"in IDBObjectStore.prototype?g.Ws(a.j.getAll(b,void 0)):mna(a,b)};
mna=function(a,b){var c=[];return g.ft(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
pna=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.Ws(a.j.getAllKeys(void 0,void 0)):ona(a)};
ona=function(a){var b=[];return g.qna(a,{query:void 0},function(c){b.push(c.DA());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.qna=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)}})})};
ina=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})};
rna=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)})};
sna=function(a,b){this.request=a;this.cursor=b};
gt=function(a){return g.Ws(a).then(function(b){return b?new sna(a,b):null})};
tna=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new gna(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.l_,p=c.upgrade,q=c.closed,t;k.addEventListener("upgradeneeded",function(w){try{if(null===w.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===k.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&"none"!==w.dataLoss&&Hs("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:Ms(a)});var x=f(),y=new dt(k.transaction);
p&&p(x,function(z){return w.oldVersion<z&&w.newVersion>=z},y);
y.done.catch(function(z){e(z)})}catch(z){e(z)}});
k.addEventListener("success",function(){var w=k.result;m&&w.addEventListener("versionchange",function(){m(f())});
w.addEventListener("close",function(){Hs("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ms(a),dbVersion:w.version});n&&n()});
d(f())});
k.addEventListener("error",function(){e(k.error)});
l&&k.addEventListener("blocked",function(){l()})})};
una=function(a,b,c){c=void 0===c?{}:c;return tna(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.va(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.A(k,ena(c),4);
if(2!=k.j)return g.wa(k,0);f=g.xa(k);throw Rs(f,a,"",-1);})};
vna=function(a){return new Promise(function(b){sma(function(){b()},a)})};
kt=function(a,b){this.name=a;this.options=b;this.C=!0;this.J=this.D=0;this.u=500};
wna=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()};
xna=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"],{Hc:!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))})};
yna=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"],{Hc:!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)})};
zna=function(a){return yna(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
Ana=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.va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.A(e,xna(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.xa(e),e.return(!1)}})};
Bna=function(){if(void 0!==qt)return qt;Fs=!0;return qt=Ana().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.Ka("ytglobal.idbToken_")||void 0};
g.tt=function(){var a=rt();return a?Promise.resolve(a):Bna().then(function(b){(b=b?pt:void 0)&&g.Ja("ytglobal.idbToken_",b);return b})};
Cna=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}};
Dna=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}:Cna(a);g.va(p,3);return g.A(p,xna(m,k),5);case 5:return g.A(p,una(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.xa(p),g.va(p,7),g.A(p,nt(m.actualName,
k),9);case 9:g.wa(p,8);break;case 7:g.xa(p);case 8:throw n;}})};
Ena=function(a,b,c){c=void 0===c?{}:c;return Dna(a,b,!1,c)};
Fna=function(a,b,c){c=void 0===c?{}:c;return Dna(a,b,!0,c)};
Gna=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=Cna(a);return g.A(e,jt(d.actualName,b),3)}return g.A(e,nt(d.actualName,c),0)})};
Hna=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(){})};
Ina=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,zna(b),3)}c=d.u;return g.A(d,Hna(c,a,b),0)})};
Jna=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.ze=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Ft=function(){};
this.now=Date.now;this.zw=!1;var b;this.lQ=null!=(b=a.lQ)?b:100;var c;this.KP=null!=(c=a.KP)?c:1;var d;this.CP=null!=(d=a.CP)?d:2592E6;var e;this.tP=null!=(e=a.tP)?e:12E4;var f;this.JP=null!=(f=a.JP)?f:5E3;var k;this.hd=null!=(k=a.hd)?k:void 0;this.eA=!!a.eA;var l;this.Tz=null!=(l=a.Tz)?l:.1;var m;this.QB=null!=(m=a.QB)?m:10;a.handleError&&(this.handleError=a.handleError);a.Ft&&(this.Ft=a.Ft);a.zw&&(this.zw=a.zw);this.kb=a.kb;this.Rj=a.Rj;this.rf=a.rf;this.hf=a.hf;this.Zm=a.Zm;this.iH=a.iH;this.DG=
a.DG;this.hd&&(!this.kb||this.kb("networkless_logging"))&&Kna(this)};
Kna=function(a){a.hd&&!a.zw&&(a.ze=!0,a.eA&&Math.random()<=a.Tz&&a.rf.XT(a.hd),Lna(a),a.hf.Me()&&a.Ny(),a.hf.Oa(a.iH,a.Ny.bind(a)),a.hf.Oa(a.DG,a.uL.bind(a)))};
vt=function(a,b){var c,d;return g.B(function(e){switch(e.j){case 1:if(!a.hd)throw c=g.Ss("immediateSend"),c;if(void 0===b.id){e.Ya(2);break}return g.A(e,a.rf.QV(b.id,a.hd),3);case 3:(d=e.u)?b=d:a.Ft(Error("The request cannot be found in the database."));case 2:if(Mna(a,b,a.CP)){e.Ya(4);break}a.Ft(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Ya(5);break}return g.A(e,a.rf.Zs(b.id,a.hd),5);case 5:return e.return();case 4:b.skipRetry||(b=Nna(a,b));if(!b){e.Ya(0);
break}if(!b.skipRetry||void 0===b.id){e.Ya(8);break}return g.A(e,a.rf.Zs(b.id,a.hd),8);case 8:a.Zm(b.url,b.options,!!b.skipRetry),g.ua(e)}})};
Nna=function(a,b){if(!a.hd)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=Ona(f);if(!(a.kb&&a.kb("nwl_consider_error_code")&&k||a.kb&&!a.kb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.QB)){n.Ya(2);break}if(!a.hf.cn){n.Ya(3);break}return g.A(n,a.hf.cn(),3);case 3:if(a.hf.Me()){n.Ya(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Ya(6);break}return g.A(n,a.rf.HH(b.id,a.hd,!1),6);case 6:return n.return();case 2:if(a.kb&&a.kb("nwl_consider_error_code")&&
!k&&a.potentialEsfErrorCounter>a.QB)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Ya(8);break}return b.sendCount<a.KP?g.A(n,a.rf.HH(b.id,a.hd),12):g.A(n,a.rf.Zs(b.id,a.hd),8);case 12:a.Rj.cg(function(){a.hf.Me()&&a.Ny()},a.JP);
case 8:c(e,f),g.ua(n)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return void 0===(null==(k=b)?void 0:k.id)?l.Ya(2):g.A(l,a.rf.Zs(b.id,a.hd),2);a.hf.Pm&&a.kb&&a.kb("vss_network_hint")&&a.hf.Pm(!0);d(e,f);g.ua(l)})};
return b};
Mna=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
Lna=function(a){if(!a.hd)throw g.Ss("retryQueuedRequests");a.rf.yM("QUEUED",a.hd).then(function(b){b&&!Mna(a,b,a.tP)?a.Rj.cg(function(){return g.B(function(c){if(1==c.j)return void 0===b.id?c.Ya(2):g.A(c,a.rf.HH(b.id,a.hd),2);Lna(a);g.ua(c)})}):a.hf.Me()&&a.Ny()})};
wt=function(a,b){a.RQ&&!a.hf.Me()?a.RQ(b):a.handleError(b)};
Ona=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)};
Qna=function(a,b,c){var d=At();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.Ka("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.Ap){var p=new m;m.Ap=p.version}var q=m.Ap}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m,
g.cc(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)}},Pna[a.toString()]?g.Wr()?g.tp.cg(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=Qna(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.oc(a,function(c){b.unsubscribeByKey(c);delete Ct[c]}))};
At=function(){return g.Ka("ytPubsub2Pubsub2Instance")};
Gt=function(a,b){kt.call(this,a,b);this.options=b;Ls(a)};
Rna=function(a,b){var c;return function(){c||(c=new Gt(a,b));return c}};
g.Ht=function(a,b){return Rna(a,b)};
Sna=function(){if(It)return It();var a={};It=g.Ht("LogsDatabaseV2",{Tq:(a.LogsRequestsStore={Gn:2},a),Cy:!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(Sna(),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.O("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(k,hna(d,e),3);f=k.u;c.v_=(0,g.R)();Tna(c);return k.return(f)})};
Una=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.O("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",Hc:!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.v_=(0,g.R)();Tna(c);return n.return(m)})};
Vna=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",Hc:!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",Hc:!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))})};
Wna=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",Hc:!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)})};
Xna=function(){g.B(function(a){return g.A(a,Ina(),0)})};
Tna=function(a){g.Q("nwl_csi_killswitch")||.01>=Math.random()&&Bt("nwl_transaction_latency_payload",a)};
Zna=function(a){return g.lt(Yna(),a)};
$na=function(a){var b,c;g.B(function(d){if(1==d.j)return g.A(d,Zna(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.bt(b,["SWHealthLog"],{mode:"readwrite",Hc:!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)})};
aoa=function(a){var b;return g.B(function(c){if(1==c.j)return g.A(c,Zna(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.Tg(g.Xg(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.ih(kh(a)).toString(),a=g.Gh(g.Yi(a))),g.lb(a)||(a=di("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Ph(a).body.appendChild(a)));else if(e)Fr(a,b,"POST",e,d);else if(g.O("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Fr(a,b,"GET","",d);else{b:{try{var f=new qea({url:a});if(f.B&&f.u||f.C){var k=bj(g.dj(5,a));var l=!(!k||
!k.endsWith("/aclk")||"1"!==yj(a,"ri"));break b}}catch(m){}l=!1}l?boa(a)?(b&&b(),c=!0):c=!1:c=!1;c||coa(a,b)}};
boa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
coa=function(a,b){var c=new Image,d=""+doa++;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.Ka("yt.networkRequestMonitor.instance")||new Pt;g.Ja("yt.networkRequestMonitor.instance",a);Pt.j=a}return Pt.j};
St=function(){Rt||(Rt=new xs("yt.offline"));return Rt};
eoa=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)}};
foa=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.sg.call(this);var a=this;this.S=0;this.J=this.C=!1;this.u=this.xF();g.Q("use_shared_nsm")?(this.j=gia(),g.Q("use_shared_nsm_and_keep_yt_online_updated")&&(this.j.Oa("networkstatus-online",function(){a.u=!0;a.J&&foa()}),this.j.Oa("networkstatus-offline",function(){a.u=!1}))):(goa(this),hoa(this))};
ioa=function(){if(!Tt.j){var a=g.Ka("yt.networkStatusManager.instance")||new Tt;g.Ja("yt.networkStatusManager.instance",a);Tt.j=a}return Tt.j};
hoa=function(a){window.addEventListener("online",function(){return g.B(function(b){if(1==b.j)return g.A(b,a.cn(),2);a.J&&foa();g.ua(b)})})};
goa=function(a){window.addEventListener("offline",function(){return g.B(function(b){return g.A(b,a.cn(),0)})})};
joa=function(a){a.S=g.Tr(0,function(){return g.B(function(b){if(1==b.j)return a.u?a.xF()||!a.C?b.Ya(3):g.A(b,a.cn(),3):g.A(b,a.cn(),3);joa(a);g.ua(b)})},koa)};
g.Ut=function(a){a=void 0===a?{}:a;g.sg.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=ioa();var c=g.Ka("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.XL);a.IN&&(c=g.Ka("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=g.Ka("yt.networkStatusManager.instance.listen").bind(this.j))a.WB?(this.WB=
a.WB,c(this.D,function(){loa(b,"publicytnetworkstatus-online")}),c(this.C,function(){loa(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online")}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
loa=function(a,b){a.WB?a.u?(g.tp.Ii(a.K),a.K=g.tp.cg(function(){a.J!==b&&(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)())},a.WB-((0,g.R)()-a.u))):(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)()):a.dispatchEvent(b)};
Vt=function(){ut.call(this,{rf:{XT:Wna,Zs:Mt,yM:Una,QV:Vna,HH:Lt,set:Kt},hf:moa(),handleError:g.hr,Ft:jr,Zm:noa,now:g.R,RQ:eoa,Rj:g.Vr(),iH:"publicytnetworkstatus-online",DG:"publicytnetworkstatus-offline",eA:!0,Tz:.1,QB:g.dr("potential_esf_error_limit",10),kb:g.Q,zw:!(g.Ks()&&(g.Q("embeds_web_nwl_disable_nocookie")?"www.youtube-nocookie.com"!==g.ej(document.location.toString()):1))});this.u=new g.Wj;g.Q("networkless_immediately_drop_all_requests")&&Xna();Jna("LogsDatabaseV2")};
Wt=function(){var a=g.Ka("yt.networklessRequestController.instance");a||(a=new Vt,g.Ja("yt.networklessRequestController.instance",a),g.Q("networkless_logging")&&g.tt().then(function(b){a.hd=b;Kna(a);a.u.resolve();a.eA&&Math.random()<=a.Tz&&a.hd&&$na(a.hd);g.Q("networkless_immediately_drop_sw_health_store")&&ooa(a)}));
return a};
ooa=function(a){var b;g.B(function(c){if(!a.hd)throw b=g.Ss("clearSWHealthLogsDb"),b;return c.return(aoa(a.hd).catch(function(d){a.handleError(d)}))})};
noa=function(a,b,c){g.Q("use_cfr_monitor")&&poa(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)};
moa=function(){Xt||(Xt=new g.Ut({IN:!0,XL:!0}));return Xt};
poa=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)}};
qoa=function(a,b){function c(d){var e=Yt().Me();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().Me()&&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().Me()||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.ua(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().Pm(!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())};
roa=function(){var a=rt();if(!a)throw g.Ss("throttleSend");eu||(eu=g.tp.cg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,Una("NEW",a),2);if(3!=c.j)return b=c.u,b?g.A(c,au(b),3):(g.tp.Ii(eu),eu=0,c.return());eu&&(eu=0,roa());g.ua(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.Ya(2);break}return g.A(e,Vna(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.Ya(4);break}jr(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ya(5);break}return g.A(e,Mt(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=soa(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.Ya(0);break}if(!a.skipRetry||void 0===a.id){e.Ya(8);break}return g.A(e,Mt(a.id,b),8);case 8:$t(a.url,a.options,!!a.skipRetry),g.ua(e)}})};
soa=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=Ona(f);if(!(g.Q("nwl_consider_error_code")&&k||!g.Q("nwl_consider_error_code")&&toa()<=g.dr("potential_esf_error_limit",10))){n.Ya(2);break}if(g.Q("skip_checking_network_on_cfr_failure")&&(!g.Q("skip_checking_network_on_cfr_failure")||Qt().isEndpointCFR(a.url))){n.Ya(3);break}return g.A(n,Yt().cn(),3);case 3:if(Yt().Me()){n.Ya(2);break}c(e,f);if(!g.Q("nwl_consider_error_code")||
void 0===(null==(l=a)?void 0:l.id)){n.Ya(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&&toa()>g.dr("potential_esf_error_limit",10))return n.return();g.Ka("ytNetworklessLoggingInitializationOptions")&&fu.potentialEsfErrorCounter++;gu++;if(void 0===(null==(m=a)?void 0:m.id)){n.Ya(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.tp.cg(function(){Yt().Me()&&roa()},5E3);
case 8:c(e,f),g.ua(n)}})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return g.Q("use_cfr_monitor")&&Qt().requestComplete(a.url,!0),void 0===(null==(k=a)?void 0:k.id)?l.Ya(2):g.A(l,Mt(a.id,b),2);g.Q("vss_network_hint")&&Yt().Pm(!0);d(e,f);g.ua(l)})};
return a};
Yt=function(){if(g.Q("use_new_nwl"))return moa();hu||(hu=new g.Ut({IN:!0,XL:!0}));return hu};
bu=function(a){Yt().Me()?g.hr(a):eoa(a)};
$t=function(a,b,c){c&&0===Object.keys(b).length?g.Nt(a):g.Gr(a,b)};
Zt=function(){return g.Ka("ytNetworklessLoggingInitializationOptions")?fu.isNwlInitialized:!1};
toa=function(){return g.Ka("ytNetworklessLoggingInitializationOptions")?fu.potentialEsfErrorCounter:gu};
g.iu=function(a){this.config_=null;a?this.config_=a:Lma()&&(this.config_=g.vs())};
g.ju=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.aO.bypassNetworkless?(f.method="POST",d.aO.writeThenSend?g.Q("use_new_nwl_wts")?Wt().writeThenSend(n,f):qoa(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.O("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_.dN;k&&(c=k);k=Uma(a.config_.fN||!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_.VF&&k;m=m&&k.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=pr(""+c+b,l);g.Q("use_new_nwl")&&Wt().ze||!g.Q("use_new_nwl")&&
Zt()?Bna().then(function(p){e(p)}):e(!1)};
uoa=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;an(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 voa||(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){}};
woa=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}};
xoa=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 Qf(nu,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Pa(e[4])&&g.Pa(d)&&g.Yf(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=xoa(a,b,c,d);if(e)return e;e=++yoa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new mu(l);if(!ni(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"),zoa()||"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};
Aoa=function(a,b){var c=document.body||document;return g.ou(c,"click",function(d){var e=ni(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.oc(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?zoa()||"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.Bh(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.kN&&a.kN()};
g.xu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Boa=function(a){return Aoa(a,function(b){return g.Dp(b,"ytp-ad-has-logging-urls")})};
g.Coa=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.Sa)(this.X,this));this.S=g.Cr((0,g.Sa)(this.Z,this),25)};
Doa=function(){var a={},b=void 0===a.xZ?!1:a.xZ;a=void 0===a.uU?!0:a.uU;if(null==g.Ka("_lact",window)){var c=parseInt(g.O("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ja("_lact",c,window);g.Ja("_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.tp.cg(function(){Au();Cu[a]=!1},b))};
Au=function(){null==g.Ka("_lact",window)&&(Doa(),g.Ka("_lact",window));var a=Date.now();g.Ja("_lact",a,window);-1==g.Ka("_fact",window)&&g.Ja("_fact",a,window);(a=g.Ka("ytglobal.ytUtilActivityCallback_"))&&a()};
Du=function(){var a=g.Ka("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
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.oc(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};
Foa=function(a){var b=g.Eu();if(b)if(b.clear(a),a)Eoa(a);else for(var c in Hu)Eoa(c)};
g.Eu=function(){return g.C.ytPubsubPubsubInstance};
Eoa=function(a){Hu[a]&&(a=Hu[a],g.oc(a,function(b){Fu[b]&&delete Fu[b]}),a.length=0)};
Goa=function(){this.B=this.j=this.u=0};
Ioa=function(a,b){if("log_event"===a.endpoint){var c=Lu(a),d=Mu.get(c)||[];Mu.set(c,d);d.push(a.payload);Hoa(b,d,c)}};
Joa=function(a,b){if("log_event"===a.endpoint){var c=Lu(a,!0),d=Nu.get(c)||[];Nu.set(c,d);a=Be(a.payload);d.push(a);Hoa(b,d,c,!0)}};
Hoa=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&&(Koa(d),d?Pu.B=e:Qu.B=e)};
Loa=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.yi(function(e){Ou&&Ou.isReady()?Su(d,e,{bypassNetworkless:!0},!0):e()})}};
Moa=function(a,b){if("log_event"===a.endpoint){var c=Lu(a,!0),d=new Map;d.set(c,[Be(a.payload)]);b&&(Ou=new b);return new g.yi(function(e){Ou&&Ou.isReady()?Tu(d,e,{bypassNetworkless:!0},!0):e()})}};
Lu=function(a,b){var c="";if(a.xw)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.yi(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 Koa(c),d()})};
Koa=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.O("LOGGING_BATCH_TIMEOUT",g.dr("web_gel_debounce_ms",1E4));g.Q("shorten_initial_gel_batch_timeout")&&Xu&&(b=Noa);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.$f({context:g.ws(e.config_||g.vs())});m.events=n;(n=Wu[l])&&Ooa(m,l,n);delete Wu[l];l="visitorOnlyApprovedKey"===l;Poa(m,f,l);Qoa(c);g.ju(e,"log_event",m,Roa(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=Qma(e.config_||g.vs());se(m,1,p);n=Soa(n);for(p=0;p<n.length;p++)we(m,3,Tq,n[p]);(n=Vu[l])&&Toa(m,l,n);delete Vu[l];l="visitorOnlyApprovedKey"===l;Uoa(m,f,l);Qoa(c);m=Be(m);l=Roa(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}};
Qoa=function(a){g.Q("always_send_and_write")&&(a.writeThenSend=!1)};
Roa=function(a,b,c,d,e){return{retry:!0,onSuccess:c,onError:d,aO:a,xw:b,aha:!!e,headers:{},postBodyFormat:"",postBody:""}};
Poa=function(a,b,c){a.requestTimeMs=String(b);g.Q("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.O("EVENT_ID"))&&(c=Voa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Uoa=function(a,b,c){g.D(a,2,b);if(!c&&(b=g.O("EVENT_ID"))){c=Voa();var d=new xja;g.D(d,1,b);g.D(d,2,c);se(a,5,d)}};
Voa=function(){var a=g.O("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Woa/2));a++;a>Woa&&(a=1);ar("BATCH_CLIENT_COUNTER",a);return a};
Ooa=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}]};
Toa=function(a,b,c){if(c.Ig())var d=1;else if(c.getPlaylistId())d=2;else return;se(a,4,c);a=a.getContext()||new Cq;c=qe(a,Bq,3)||new Bq;var e=new Aq;e.setToken(b);g.D(e,1,d);we(c,12,Aq,e);se(a,3,c)};
Soa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(Ce(Tq,String(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(Xoa[a]||Yoa[a])return}else if(g.Q("lr_drop_other_payloads")&&Xoa[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.gj&&(a=e.context,b=d.gj,b={index:Zoa(b),groupKey:b},a.sequence=b,d.ZL&&delete Yu[d.gj]);(d.RH?Loa:Ioa)({endpoint:"log_event",payload:e,
cttAuthInfo:d.cttAuthInfo,xw:d.xw},c)};
$u=function(){Ru(void 0,void 0,!1)};
Zoa=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.O("ytLoggingEventsDefaultDisabled",!1)&&g.iu==g.iu&&(d=null);Zu(a,b,d,c)};
apa=function(){var a=void 0===a?window.location.href:a;if(g.Q("kevlar_disable_theme_param"))return null;bj(g.dj(5,a));try{var b=g.or(a).theme;return $oa.get(b)||null}catch(c){}return null};
cpa=function(a,b,c){a&&(a.dataset?a.dataset[bpa(b)]=String(c):a.setAttribute("data-"+b,c))};
dpa=function(a){return a?a.dataset?a.dataset[bpa("loaded")]:a.getAttribute("data-loaded"):null};
bpa=function(a){return epa[a]||(epa[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.Qb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
fpa=function(){var a=document;return g.Qb(["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.Va=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&&gpa()&&(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.Dd=new g.Yp(a);g.H(this,this.Dd)};
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.X=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.zf&&a.setAttribute("draggable","true"),a.style.touchAction="none");lv(this)};
nv=function(a,b,c){a.C.T(a.X,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.YN);nv(a,"touchstart",a.AI);a.j&&nv(a,pv("down"),a.eW)};
hpa=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};
qv=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Zf(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Zf(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||{}};
ipa=function(a){a instanceof qv||(a=new qv(a));return a};
tv=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(rv)for(c=1,d=0;d<rv.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^rv.charCodeAt(d),c++;return b};
g.uv=function(a){a=tv(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.jpa=function(){return g.Sl(tv(16),function(a){return(a&15).toString(16)}).join("")};
vv=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.gj){e=c.gj;var f=Zoa(e),k=new wja;g.D(k,2,f);g.D(k,1,e);se(d,3,k);c.ZL&&delete kpa[c.gj]}se(a,33,d);(c.RH?Moa:Joa)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,xw:c.xw},b)};
Dv=function(a,b){b=void 0===b?{}:b;var c=!1;g.O("ytLoggingEventsDefaultDisabled",!1)&&g.iu===g.iu&&(c=!0);vv(a,c?null:g.iu,b)};
Fv=function(a,b){var c=new Tq;te(c,72,Ev,a);Dv(c,b)};
lpa=function(a,b,c){var d=new Tq;te(d,73,Ev,a);c?vv(d,c,b):Dv(d,b)};
mpa=function(a,b,c){var d=new Tq;te(d,78,Ev,a);c?vv(d,c,b):Dv(d,b)};
npa=function(a,b,c){var d=new Tq;te(d,208,Ev,a);c?vv(d,c,b):Dv(d,b)};
opa=function(a,b,c){var d=new Tq;te(d,156,Ev,a);c?vv(d,c,b):Dv(d,b)};
ppa=function(a,b,c){var d=new Tq;te(d,215,Ev,a);c?vv(d,c,b):Dv(d,b)};
qpa=function(a,b,c){var d=new Tq;te(d,111,Ev,a);c?vv(d,c,b):Dv(d,b)};
Gv=function(a){this.j=a};
g.Hv=function(a){return new Gv({trackingParams:a})};
spa=function(a){var b=rpa++;return new Gv({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
Iv=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
Jv=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
tpa=function(a){return g.O(Jv(void 0===a?0:a))};
g.Kv=function(a){return(a=tpa(void 0===a?0:a))?new Gv({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
upa=function(){var a=g.O("csn-to-ctt-auth-info");a||(a={},ar("csn-to-ctt-auth-info",a));return a};
g.Lv=function(a){a=g.O(Iv(void 0===a?0:a));if(!a&&!g.O("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
vpa=function(a,b,c){var d=upa();(c=g.Lv(c))&&delete d[c];b&&(d[a]=b)};
Mv=function(a){return upa()[a]};
xpa=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.O(Iv(c))||b!==g.O(Jv(c)))vpa(a,d,c),ar(Iv(c),a),ar(Jv(c),b),b=function(){setTimeout(function(){if(a)if(g.Q("web_time_via_jspb")){var e=new lja;g.D(e,1,wpa);g.D(e,2,a);g.Q("use_default_heartbeat_client")?qpa(e):qpa(e,void 0,g.iu)}else e={clientDocumentNonce:wpa,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()};
ypa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
zpa=function(){this.Kn=[];this.Om=[]};
Ov=function(){if(!Nv){var a=Nv=new zpa;a.Om.length=0;a.Kn.length=0;Apa(a,Bpa)}return Nv};
Apa=function(a,b){b.Om&&a.Om.push.apply(a.Om,b.Om);b.Kn&&a.Kn.push.apply(a.Kn,b.Kn)};
Cpa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Pv(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Pv(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Pv(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)};
Pv=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};
Dpa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Qv(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=Cpa(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?Qv(e+".ve",f,k,l):0;d+=k;d+=Qv(e,a[e],b,c);if(500<d)break}}else c[b]=Rv(a),d+=c[b].length;else c[b]=Rv(a),d+=c[b].length;return d};
Qv=function(a,b,c,d){c+="."+a;a=Rv(b);d[c]=a;return c.length+a.length};
Rv=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+")"}};
Cs=function(a){g.S(a)};
g.Sv=function(a){g.S(a,"WARNING")};
g.S=function(a,b){var c=void 0===c?{}:c;c.name=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.O("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<=Epa)){var k=Fpa,l=Zaa(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",w=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=Dpa(a.args[z],"params."+z,d,y),500<=y);z++);else if(a.hasOwnProperty("params")&&
a.params){var E=a.params;if("object"===typeof a.params)for(var I in E){if(E[I]){var K="params."+I,P=Rv(E[I]);d[K]=P;y+=K.length+P.length;if(500<y)break}}else d.params=Rv(E)}if(k.length)for(var aa=0;aa<k.length&&!(y=Dpa(k[aa],"params.context."+aa,d,y),500<=y);aa++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);var J={message:m,name:n,lineNumber:t,fileName:w,stack:x,params:d,sampleWeight:1},qa=Number(a.columnNumber);isNaN(qa)||(J.lineNumber=J.lineNumber+":"+qa);
if("IGNORED"===a.level)var na=0;else a:{for(var Ia=Ov(),Na=g.r(Ia.Om),bc=Na.next();!bc.done;bc=Na.next()){var jb=bc.value;if(J.message&&J.message.match(jb.Ax)){na=jb.weight;break a}}for(var mc=g.r(Ia.Kn),Wb=mc.next();!Wb.done;Wb=mc.next()){var Id=Wb.value;if(Id.callback(J)){na=Id.weight;break a}}na=1}J.sampleWeight=na;for(var Jd=g.r(Gpa),kb=Jd.next();!kb.done;kb=Jd.next()){var Wc=kb.value;if(Wc.KB[J.name])for(var wg=g.r(Wc.KB[J.name]),Tf=wg.next();!Tf.done;Tf=wg.next()){var Wh=Tf.value,Vd=J.message.match(Wh.Ng);
if(Vd){J.params["params.error.original"]=Vd[0];for(var uc=Wh.groups,lh={},Cc=0;Cc<uc.length;Cc++)lh[uc[Cc]]=Vd[Cc+1],J.params["params.error."+uc[Cc]]=Vd[Cc+1];J.message=Wc.vG(lh);break}}}J.params||(J.params={});var hj=Ov();J.params["params.errorServiceSignature"]="msg="+hj.Om.length+"&cb="+hj.Kn.length;J.params["params.serviceWorker"]="false";g.C.document&&g.C.document.querySelectorAll&&(J.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.Kg("sample").constructor!==
Ig&&(J.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(J);if(0!==J.sampleWeight&&!Hpa.has(J.message)){if("ERROR"===e){Tv.ea("handleError",J);if(g.Q("record_app_crashed_web")&&0===Ipa&&1===J.sampleWeight)if(Ipa++,g.Q("errors_via_jspb")){var Xh=new kja;g.D(Xh,1,1);if(!g.Q("report_client_error_with_app_crash_ks")){var ij=new Eq;g.D(ij,1,J.message);var Dc=new Fq;se(Dc,3,ij);var Ne=new hja;se(Ne,5,Dc);var xg=new jja;se(xg,9,Ne);se(Xh,4,xg)}var Yh=new Tq;te(Yh,
20,Ev,Xh);Dv(Yh)}else{var jj={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.Q("report_client_error_with_app_crash_ks")||(jj.systemHealth={crashData:{clientError:{logMessage:{message:J.message}}}});g.Ds("appCrashed",jj)}Jpa++}else"WARNING"===e&&Tv.ea("handleWarning",J);if(g.Q("kevlar_gel_error_routing"))a:{var ud=e;if(g.Q("errors_via_jspb")){if(Kpa())var kj=void 0;else{var oe=new fja;g.D(oe,1,J.stack);J.fileName&&g.D(oe,4,J.fileName);var Xc=J.lineNumber&&J.lineNumber.split?J.lineNumber.split(":"):[];0!==
Xc.length&&(1!==Xc.length||isNaN(Number(Xc[0]))?2!==Xc.length||isNaN(Number(Xc[0]))||isNaN(Number(Xc[1]))||(g.D(oe,2,Number(Xc[0])),g.D(oe,3,Number(Xc[1]))):g.D(oe,2,Number(Xc[0])));var $e=new Eq;g.D($e,1,J.message);g.D($e,3,J.name);g.D($e,6,J.sampleWeight);"ERROR"===ud?g.D($e,2,2):"WARNING"===ud?g.D($e,2,1):g.D($e,2,0);var mh=new gja;g.D(mh,1,!0);te(mh,3,Lpa,oe);var tf=new eja;g.D(tf,3,window.location.href);for(var Zh=g.O("FEXP_EXPERIMENTS",[]),Uf=0;Uf<Zh.length;Uf++)g.ke(tf,5,Zh[Uf]);var Lk=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!cr("web_disable_gel_stp_ecatcher_killswitch")&&Lk)for(var Zl=g.r(Object.keys(Lk)),nh=Zl.next();!nh.done;nh=Zl.next()){var Mk=nh.value,lj=new Dq;g.D(lj,1,Mk);lj.setValue(String(Lk[Mk]));we(tf,4,Dq,lj)}var mj=J.params;if(mj){var Xb=g.r(Object.keys(mj));for(nh=Xb.next();!nh.done;nh=Xb.next()){var Oe=nh.value,Nk=new Dq;g.D(Nk,1,"client."+Oe);Nk.setValue(String(mj[Oe]));we(tf,4,Dq,Nk)}}var Kn=g.O("SERVER_NAME"),Ln=g.O("SERVER_VERSION");if(Kn&&Ln){var Ec=new Dq;g.D(Ec,1,"server.name");Ec.setValue(Kn);
we(tf,4,Dq,Ec);var Ok=new Dq;g.D(Ok,1,"server.version");Ok.setValue(Ln);we(tf,4,Dq,Ok)}var nj=new Fq;se(nj,1,tf);se(nj,2,mh);se(nj,3,$e);kj=nj}var oj=kj;if(!oj)break a;var Mn=new Tq;te(Mn,163,Ev,oj);Dv(Mn)}else{if(Kpa())var Nn=void 0;else{var pj={stackTrace:J.stack};J.fileName&&(pj.filename=J.fileName);var uf=J.lineNumber&&J.lineNumber.split?J.lineNumber.split(":"):[];0!==uf.length&&(1!==uf.length||isNaN(Number(uf[0]))?2!==uf.length||isNaN(Number(uf[0]))||isNaN(Number(uf[1]))||(pj.lineNumber=Number(uf[0]),
pj.columnNumber=Number(uf[1])):pj.lineNumber=Number(uf[0]));var Pk={level:"ERROR_LEVEL_UNKNOWN",message:J.message,errorClassName:J.name,sampleWeight:J.sampleWeight};"ERROR"===ud?Pk.level="ERROR_LEVEL_ERROR":"WARNING"===ud&&(Pk.level="ERROR_LEVEL_WARNNING");var qj={isObfuscated:!0,browserStackInfo:pj},oh={pageUrl:window.location.href,kvPairs:[]};g.O("FEXP_EXPERIMENTS")&&(oh.experimentIds=g.O("FEXP_EXPERIMENTS"));var $l=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!cr("web_disable_gel_stp_ecatcher_killswitch")&&
$l)for(var On=g.r(Object.keys($l)),ph=On.next();!ph.done;ph=On.next()){var Pn=ph.value;oh.kvPairs.push({key:Pn,value:String($l[Pn])})}var pe=J.params;if(pe){var Qn=g.r(Object.keys(pe));for(ph=Qn.next();!ph.done;ph=Qn.next()){var Rn=ph.value;oh.kvPairs.push({key:"client."+Rn,value:String(pe[Rn])})}}var ld=g.O("SERVER_NAME"),Sn=g.O("SERVER_VERSION");ld&&Sn&&(oh.kvPairs.push({key:"server.name",value:ld}),oh.kvPairs.push({key:"server.version",value:Sn}));Nn={errorMetadata:oh,stackTrace:qj,logMessage:Pk}}var Tn=
Nn;if(!Tn)break a;g.Ds("clientError",Tn)}("ERROR"===ud||g.Q("errors_flush_gel_always_killswitch"))&&$u()}if(!g.Q("suppress_error_204_logging")){var rj=J.params||{},yg={urlParams:{a:"logerror",t:"jserror",type:J.name,msg:J.message.substr(0,250),line:J.lineNumber,level:e,"client.name":rj.name},postParams:{url:g.O("PAGE_NAME",window.location.href),file:J.fileName},method:"POST"};rj.version&&(yg["client.version"]=rj.version);if(yg.postParams){J.stack&&(yg.postParams.stack=J.stack);for(var Wd=g.r(Object.keys(rj)),
am=Wd.next();!am.done;am=Wd.next()){var bm=am.value;yg.postParams["client."+bm]=rj[bm]}var Qk=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(Qk)for(var Rk=g.r(Object.keys(Qk)),cm=Rk.next();!cm.done;cm=Rk.next()){var Un=cm.value;yg.postParams[Un]=Qk[Un]}var Vn=g.O("SERVER_NAME"),Wn=g.O("SERVER_VERSION");Vn&&Wn&&(yg.postParams["server.name"]=Vn,yg.postParams["server.version"]=Wn)}g.Gr(g.O("ECATCHER_REPORT_HOST","")+"/error_204",yg)}try{Hpa.add(J.message)}catch(sj){}Epa++}}}};
Kpa=function(){for(var a=g.r(Mpa),b=a.next();!b.done;b=a.next())if(Yr(b.value.toLowerCase()))return!0;return!1};
Npa=function(a){var b=g.Ca.apply(1,arguments),c=a;c.args||(c.args=[]);c.args.push.apply(c.args,g.u(b))};
Uv=function(a){xt.call(this,1,arguments);this.csn=a};
Rpa=function(a,b,c,d,e,f,k){function l(){g.Sv(new g.Is("newScreen() parent element does not have a VE - rootVe",b))}
var m=Opa();f=new Gv({veType:b,youtubeData:f,jspbYoutubeData:void 0});e={cttAuthInfo:e,gj:m};if(g.Q("il_via_jspb")){var n=new Iq;n.Eh(m);nja(n,f.getAsJspb());c&&c.visualElement?(f=new oja,c.clientScreenNonce&&g.D(f,2,c.clientScreenNonce),pja(f,c.visualElement.getAsJspb()),k&&g.D(f,4,Ppa[k]),se(n,5,f)):c&&l();d&&g.D(n,3,d);opa(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(Qpa,new Uv(m));return m};
g.Wv=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:Mv(b),
gj:b};d=g.r(d);for(var k=d.next();!k.done;k=d.next())k=k.value.getAsJson(),(g.Sf(k)||!k.trackingParams&&!k.veType)&&g.Sv(Error("Child VE logged with no data"));if(g.Q("il_via_jspb")){var l=new Jq;l.Eh(b);rja(l,c.getAsJspb());g.Sl(e,function(m){m=m.getAsJspb();we(l,3,Gq,m)});
"UNDEFINED_CSN"==b?Vv("visualElementAttached",l,f):ppa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Sl(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"==b?Vv("visualElementAttached",c,f):a?Zu("visualElementAttached",c,a,f):g.Ds("visualElementAttached",c,f)};
g.Xv=function(a,b,c){var d={cttAuthInfo:Mv(a),gj:a};if(g.Q("il_via_jspb")){var e=new Lq;e.Eh(a);b=b.getAsJspb();se(e,2,b);g.D(e,4,1);c&&se(e,3);"UNDEFINED_CSN"==a?Vv("visualElementShown",e,d):Fv(e,d)}else e={csn:a,ve:b.getAsJson(),eventType:1},c&&(e.clientData=c),"UNDEFINED_CSN"==a?Vv("visualElementShown",e,d):g.Ds("visualElementShown",e,d)};
Spa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:Mv(b),gj:b,ZL:d};g.Q("il_via_jspb")?(e=new Lq,e.Eh(b),c=c.getAsJspb(),se(e,2,c),g.D(e,4,d?16:8),"UNDEFINED_CSN"==b?Vv("visualElementHidden",e,f):lpa(e,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"==b?Vv("visualElementHidden",d,f):a?Zu("visualElementHidden",d,a,f):g.Ds("visualElementHidden",d,f))};
Tpa=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f={cttAuthInfo:Mv(b),gj:b};if(g.Q("il_via_jspb")){var k=new Kq;k.Eh(b);c=c.getAsJspb();se(k,2,c);g.D(k,4,Ppa[e]);d&&se(k,3);"UNDEFINED_CSN"==b?Vv("visualElementGestured",k,f):mpa(k,f,a)}else e={csn:b,ve:c.getAsJson(),gestureType:e},d&&(e.clientData=d),"UNDEFINED_CSN"==b?Vv("visualElementGestured",e,f):a?Zu("visualElementGestured",e,a,f):g.Ds("visualElementGestured",e,f)};
Upa=function(){return g.Bc(Math.random()+"")};
Vv=function(a,b,c){Yv.push({payloadName:a,payload:b,options:c});Zv||(Zv=Ft(Qpa,Vpa))};
Vpa=function(a){if(Yv){for(var b=g.r(Yv),c=b.next();!c.done;c=b.next())if(c=c.value,c.payload)if(g.Q("il_via_jspb"))switch(c.payload.Eh(a.csn),c.payloadName){case "screenCreated":opa(c.payload,c.options);break;case "visualElementAttached":ppa(c.payload,c.options);break;case "visualElementShown":Fv(c.payload,c.options);break;case "visualElementHidden":lpa(c.payload,c.options);break;case "visualElementGestured":mpa(c.payload,c.options);break;case "visualElementStateChanged":npa(c.payload,c.options);
break;default:g.Sv(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);Yv.length=0}Zv=0};
g.$v=function(a,b){g.oc(b,function(c){var d={cttAuthInfo:Mv(a),gj:a};if(g.Q("il_via_jspb")){var e=new Lq;e.Eh(a);c=c.getAsJspb();se(e,2,c);g.D(e,4,4);"UNDEFINED_CSN"==a?Vv("visualElementShown",e,d):Fv(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"==a?Vv("visualElementShown",e,d):g.Ds("visualElementShown",e,d)})};
g.aw=function(a,b){g.oc(b,function(c){Spa(void 0,a,c)})};
g.bw=function(a,b,c){Tpa(void 0,a,b,c)};
cw=function(){this.u=new Set;this.j=new Set;this.B=new Map};
g.fw=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.dw)():ew())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.gw=function(a){var b=ew(),c=(0,g.dw)();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};
Wpa=function(){var a=(0,g.dw)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.hw=function(a){try{var b=ew(),c=(0,g.dw)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.iw=function(){return g.gw("yt-remote-session-screen-id")};
g.jw=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(Xpa,""),c=c.replace(Ypa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Zpa(a,b,c)};
Zpa=function(a,b,c){c=void 0===c?null:c;var d=$pa(a),e=document.getElementById(d),f=e&&dpa(e),k=e&&!f;f?b&&b():(b&&(f=g.Iu(d,b),b=""+g.Ra(b),aqa[b]=f),k||(e=bqa(a,d,function(){dpa(e)||(cpa(e,"loaded","true"),g.Ku(d),g.Br(g.Ta(Foa,d),0))},c)))};
bqa=function(a,b,c,d){d=void 0===d?null:d;var e=g.ei("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.ak(e,g.Qg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
$pa=function(a){var b=document.createElement("a");g.uh(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Kh(a)};
mw=function(a){var b=g.Ca.apply(1,arguments);if(!kw(a)||b.some(function(e){return!kw(e)}))throw Error("Only objects may be merged.");
var c=a;b=g.r(b);for(var d=b.next();!d.done;d=b.next())lw(c,d.value);return c};
lw=function(a,b){for(var c in b)if(kw(b[c])){if(c in a&&!kw(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});lw(a[c],b[c])}else if(nw(b[c])){if(c in a&&!nw(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);cqa(a[c],b[c])}else a[c]=b[c];return a};
cqa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,kw(c)?a.push(lw({},c)):nw(c)?a.push(cqa([],c)):a.push(c);return a};
kw=function(a){return"object"===typeof a&&!Array.isArray(a)};
nw=function(a){return"object"===typeof a&&Array.isArray(a)};
ow=function(a,b,c,d,e,f){g.G.call(this);this.j=a;this.u=c;this.B=d;this.D=e;this.C=f};
fqa=function(a,b,c){c.Ku?(pw(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),dqa(a.D,b)):eqa(a.C,c.fm,b.slotId)};
hqa=function(a,b,c,d){var e=qw(a.B.get(),1);pw(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return gqa(a.u.get(),c,d,e.clientPlaybackNonce,e.GL,e.daiEnabled,e)},b)};
tw=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(!rw(a.Ea,c.value))return!1;return!0};
uw=function(a,b){this.zp=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
jqa=function(a){iqa=void 0===a?!1:a};
T=function(a,b,c,d,e){d=void 0===d?{}:d;iqa&&(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.Sv(a)}};
vw=function(a,b,c,d,e,f,k){g.G.call(this);this.B=a;this.u=b;this.aE=c;this.Pa=d;this.C=e;this.j=f;this.Ga=k};
ww=function(){this.u=new Map;this.j=new Map;this.B=new Map};
xw=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.uv(16)};
yw=function(a,b,c){if(g.O("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.uv(16)};
zw=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.uv(16)};
Aw=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};
kqa=function(a,b,c,d){this.B=a;this.Kd=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
Bw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Sv(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Cw=function(a,b){return b&&b.test(a)?!0:!1};
Dw=function(a){var b=lqa&&lqa.exec(a);return b?b[0]:g.Q("allow_music_base_url")&&(a=mqa&&mqa.exec(a))?a[0]:""};
Ew=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,nqa),a,b,"Trusted Stream URL")};
g.Fw=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,oqa),a,b,"Trusted Image URL")};
qqa=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,pqa),a,b,"Trusted Promoted Video Domain URL")};
sqa=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,rqa),a,b,"Drm Licensor URL")};
uqa=function(a,b){b=void 0===b?!1:b;return Bw(Cw(a,tqa),a,b,"Captions URL")};
vqa=function(a){a=new g.zk(a);g.Ak(a,document.location.protocol);g.Bk(a,document.location.hostname);document.location.port&&g.Ck(a,document.location.port);return a.toString()};
Gw=function(a){a=new g.zk(a);g.Ak(a,document.location.protocol);return a.toString()};
g.Iw=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=wqa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||Hw.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.Tl(d.thumbnails,function(e){return g.Fw(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
xqa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
yqa=function(a,b){switch(a.style){case Hw.CHAPTER_MARKER:return b?8:5;case Hw.AD_MARKER:return 6;case Hw.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Jw=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.Kw=function(a){return"crn_"+a};
g.Lw=function(a){return"crx_"+a};
Mw=function(a,b,c,d,e){g.Iw.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};
Nw=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
zqa=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
Aqa=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Vp(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Vp(Math.max(0,b.B-b.j),0x7ffffffffffff):new Vp(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 Vp(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Kd;a=1E3*d.startSecs;if(c){if(a<b.u)return new Vp(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new Vp(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new Vp(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Ow=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Pw=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.Qw=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=di("B",null,k||l));d.italics&&(k=di("I",null,k||l));d.strikethrough&&(k=di("STRIKE",null,k||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,k=di("A",null,k||l),g.uh(k,d.url),"TARGET_NEW_WINDOW"==d.target&&(k.target="_blank"));l=k||di("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:di("SPAN",null,b)};
Rw=function(a,b){xt.call(this,1,arguments);this.timer=b};
Bqa=function(a,b){xt.call(this,1,arguments);this.j=a;this.timer=b};
Cqa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Dqa=function(a){var b=Sw(a);if(b.aft)return b.aft;a=g.O((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};
Eqa=function(){var a;if(g.Q("csi_use_performance_navigation_timing")){var b,c,d,e=null==Tw?void 0:null==(a=Tw.getEntriesByType)?void 0:null==(b=a.call(Tw,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=Uw(e.requestStart),e.responseEnd=Uw(e.responseEnd),e.redirectStart=Uw(e.redirectStart),e.redirectEnd=Uw(e.redirectEnd),e.domainLookupEnd=Uw(e.domainLookupEnd),e.connectStart=Uw(e.connectStart),e.connectEnd=Uw(e.connectEnd),e.responseStart=Uw(e.responseStart),
e.secureConnectionStart=Uw(e.secureConnectionStart),e.domainLookupStart=Uw(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Tw.timing}else a=Tw.timing;return a};
Vw=function(){return g.Q("csi_use_time_origin")&&Tw.timeOrigin?Math.floor(Tw.timeOrigin):Tw.timing.navigationStart};
Uw=function(a){return Math.round(Vw()+a)};
Ww=function(a,b){g.Ja("ytglobal.timing"+(b||"")+"ready_",a)};
Xw=function(a){return g.Ka("ytcsi."+(a||"")+"data_")||Fqa(a)};
Yw=function(a){a=Xw(a);a.info||(a.info={});return a.info};
Sw=function(a){a=Xw(a);a.tick||(a.tick={});return a.tick};
Zw=function(a){a=Xw(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
$w=function(a){a=Zw(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
Gqa=function(a){a=Zw(a);a.jspbInfos||(a.jspbInfos=[]);return a.jspbInfos};
ax=function(a){var b=Xw(a).nonce;b||(b=g.uv(16),Xw(a).nonce=b);return b};
Fqa=function(a){var b={tick:{},info:{}};g.Ja("ytcsi."+(a||"")+"data_",b);return b};
Jqa=function(a){var b=Sw(a||""),c=Dqa(a);c&&!Hqa&&(Bt(Iqa,new Rw(Math.round(c-b._start),a)),Hqa=!0)};
Kqa=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]&&!Kqa(a[d],b[d]))return!1;return!0};
Lqa=function(){if(Tw.getEntriesByType){var a=Tw.getEntriesByType("paint");if(a=g.Qb(a,function(b){return"first-paint"===b.name}))return Uw(a.startTime)}a=Tw.timing;
return a.jW?Math.max(0,a.jW):0};
bx=function(){var a=g.Ka("ytcsi.debug");a||(a=[],g.Ja("ytcsi.debug",a),g.Ja("ytcsi.reference",{}));return a};
cx=function(a){a=a||"";var b=Mqa();if(b[a])return b[a];var c=bx(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
dx=function(a){a=a||"";var b=Mqa();b[a]&&delete b[a];var c=bx(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Mqa=function(){var a=g.Ka("ytcsi.reference");if(a)return a;bx();return g.Ka("ytcsi.reference")};
ex=function(a){return Nqa[a]||"LATENCY_ACTION_UNKNOWN"};
Sqa=function(a,b,c){c=Zw(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 Oqa){c=Oqa[a];g.Tb(Pqa,c)&&(b=!!b);a in Qqa&&"string"===typeof b&&(b=Qqa[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 mw({},d)}g.Tb(Rqa,a)||g.Sv(new g.Is("Unknown label logged with GEL CSI",a))};
fx=function(){this.j=0};
gx=function(){fx.j||(fx.j=new fx);return fx.j};
ix=function(a,b){hx[b]=hx[b]||{count:0};var c=hx[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 hx)hx[e]&&6E4<d-hx[e].time&&delete hx[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.Sv(c)),!0):!1};
jx=function(a){Fqa(a);Tqa();a||(g.O("TIMING_ACTION")&&ar("PREVIOUS_ACTION",g.O("TIMING_ACTION")),ar("TIMING_ACTION",""))};
nx=function(a,b){b=void 0===b?{}:b;kx(a);dx(a);jx(a);Xw(a).useGel=!0;cx(a||"").info.actionType=a;b.cttAuthInfo&&(Xw(a).cttAuthInfo=b.cttAuthInfo);ar(a+"TIMING_ACTION",a);lx("_start",b.startTime,a);b={actionType:ex(a)};var c=g.Lv();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);mx(b,a);Ww(!0,a)};
g.ox=function(a,b,c,d){null!==b&&(Yw(c)[a]=b,(a=Sqa(a,b,c))&&mx(a,c,d))};
mx=function(a,b,c){if(!g.Q("web_csi_via_jspb")||(void 0===c?0:c))c=cx(b||""),mw(c.info,a),mw($w(b),a),c=ax(b),b=Xw(b).cttAuthInfo,gx().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":g.D(c,1,U[a[e]]);break;case "clientActionNonce":g.D(c,2,a[e]);break;case "clientScreenNonce":g.D(c,4,a[e]);break;case "loadType":g.D(c,3,a[e]);break;case "isPrewarmedLaunch":g.D(c,92,a[e]);break;case "isFirstInstall":g.D(c,55,a[e]);
break;case "networkType":g.D(c,5,px[a[e]]);break;case "connectionType":g.D(c,26,qx[a[e]]);break;case "detailedConnectionType":g.D(c,27,rx[a[e]]);break;case "isVisible":g.D(c,6,a[e]);break;case "playerType":g.D(c,7,sx[a[e]]);break;case "clientPlaybackNonce":g.D(c,8,a[e]);break;case "adClientPlaybackNonce":g.D(c,28,a[e]);break;case "previousCpn":g.D(c,77,a[e]);break;case "targetCpn":g.D(c,76,a[e]);break;case "isMonetized":g.D(c,9,a[e]);break;case "isPrerollAllowed":g.D(c,16,a[e]);break;case "isPrerollShown":g.D(c,
17,a[e]);break;case "adType":g.D(c,12,a[e]);break;case "adTypesAllowed":g.D(c,36,a[e]);break;case "adNetworks":g.D(c,37,a[e]);break;case "previousAction":g.D(c,13,U[a[e]]);break;case "isRedSubscriber":g.D(c,14,a[e]);break;case "serverTimeMs":g.D(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":g.D(c,20,a[e]);break;case "targetVideoId":g.D(c,78,a[e]);break;case "adBreakType":g.D(c,21,tx[a[e]]);break;case "isNavigation":g.D(c,25,a[e]);break;case "viewportHeight":g.D(c,29,a[e]);
break;case "viewportWidth":g.D(c,30,a[e]);break;case "screenHeight":g.D(c,84,a[e]);break;case "screenWidth":g.D(c,85,a[e]);break;case "browseId":g.D(c,31,a[e]);break;case "isCacheHit":g.D(c,32,a[e]);break;case "httpProtocol":g.D(c,33,a[e]);break;case "transportProtocol":g.D(c,34,a[e]);break;case "searchQuery":g.D(c,41,a[e]);break;case "isContinuation":g.D(c,42,a[e]);break;case "availableProcessors":g.D(c,43,a[e]);break;case "sdk":g.D(c,44,a[e]);break;case "isLocalStream":g.D(c,45,a[e]);break;case "navigationRequestedSameUrl":g.D(c,
64,a[e]);break;case "shellStartupDurationMs":g.D(c,70,a[e]);break;case "appInstallDataAgeMs":g.D(c,73,a[e]);break;case "latencyActionError":g.D(c,71,ux[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,vx[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,wx[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,xx[a[e]]);break;case "playerRotationType":g.D(c,101,yx[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:Uqa.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))}}zx(c,b)}};
zx=function(a,b){Gqa(b).push(a);cx(b||"").jspbInfo.push(a);var c=ax(b);b=Xw(b).cttAuthInfo;gx().jspbInfo(a,c,b)};
lx=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;Tw.mark&&(gb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),Tw.mark(d))}cx(c||"").tick[a]=b||(0,g.R)();d=Zw(c);d.gelTicks&&(d.gelTicks[a]=!0);d=Sw(c);var e=b||(0,g.R)();d[a]=e;e=ax(c);var f=Xw(c).cttAuthInfo;if("_start"===a){var k=gx();ix(k,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.Q("web_csi_via_jspb")?(f=new sja,g.D(f,1,e),e=new Tq,te(e,6,Ev,f),Dv(e,b)):g.Ds("latencyActionBaselined",{clientActionNonce:e},b))}else gx().tick(a,e,b,f);Jqa(c);return d[a]};
Vqa=function(a){var b="above_the_fold";Tw&&Tw.measure&&(gb(b,"measure_")||(b="measure_"+b),a?Tw.measure(b,a):Tw.measure(b))};
Wqa=function(a){var b=Yw(a),c=$w(a);a=Gqa(a);for(var d=0;d<a.length;d++);return!!("ad_at"in b||"ad_at"in c)};
Ax=function(a,b){b=Sw(b);return a in b};
Bx=function(a,b,c){Ax("_start",c)&&!Ax(a,c)&&lx(a,b,c)};
Cx=function(){switch(uoa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
kx=function(a){Ax("_start",a)&&lx("aa",void 0,a)};
$qa=function(){function a(f){var k=Eqa(),l=Vw();l&&(lx("srt",k.responseStart),1!==f.prerender&&lx("_start",l,void 0));f=Lqa();0<f&&lx("fpt",f);f=Eqa();f.isPerformanceNavigationTiming&&mx({performanceNavigationTiming:!0});lx("nreqs",f.requestStart,void 0);lx("nress",f.responseStart,void 0);lx("nrese",f.responseEnd,void 0);0<f.redirectEnd-f.redirectStart&&(lx("nrs",f.redirectStart,void 0),lx("nre",f.redirectEnd,void 0));0<f.domainLookupEnd-f.domainLookupStart&&(lx("ndnss",f.domainLookupStart,void 0),
lx("ndnse",f.domainLookupEnd,void 0));0<f.connectEnd-f.connectStart&&(lx("ntcps",f.connectStart,void 0),lx("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=Vw()&&0<f.connectEnd-f.secureConnectionStart&&(lx("nstcps",f.secureConnectionStart,void 0),lx("ntcpe",f.connectEnd,void 0));Tw&&"getEntriesByType"in Tw&&Xqa()}
var b=g.O("TIMING_INFO",{});if(g.Q("web_csi_via_jspb")){b=Yqa(b);zx(b);b=new Pq;g.D(b,25,!0);g.D(b,1,U[ex(g.O("TIMING_ACTION"))]);var c=g.O("PREVIOUS_ACTION");c&&g.D(b,13,U[ex(c)]);(c=g.O("CLIENT_PROTOCOL"))&&g.D(b,33,c);(c=g.O("CLIENT_TRANSPORT"))&&g.D(b,34,c);(c=g.Lv())&&"UNDEFINED_CSN"!==c&&g.D(b,4,c);c=Cx();1!==c&&-1!==c||g.D(b,6,!0);c=Yw();if("cold"===c.yt_lt&&(g.D(b,3,"cold"),a(c),c=Zqa(),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);we(b,83,
Oq,e)}}zx(b)}else{for(c in b)b.hasOwnProperty(c)&&g.ox(c,b[c]);b={isNavigation:!0,actionType:ex(g.O("TIMING_ACTION"))};if(c=g.O("PREVIOUS_ACTION"))b.previousAction=ex(c);if(c=g.O("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.O("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.Lv())&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);c=Cx();if(1===c||-1===c)b.isVisible=!0;c=Yw();if("cold"===c.yt_lt&&(b.loadType="cold",a(c),c=Zqa(),0<c.length))for(b.resourceInfo=[],c=g.r(c),d=c.next();!d.done;d=c.next())b.resourceInfo.push({resourceCache:d.value});
mx(b)}};
Yqa=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};
ara=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);wh()&&a.setAttribute("nonce",wh());return c?(a=Tw.getEntriesByName(c))&&a[0]&&(a=a[0],c=Vw(),lx("rsf_"+b,c+Math.round(a.fetchStart)),lx("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
Zqa=function(){var a=[];if(document.querySelector&&Tw&&Tw.getEntriesByName)for(var b in Dx)if(Dx.hasOwnProperty(b)){var c=Dx[b];ara(b,c)&&a.push(c)}return a};
Xqa=function(){var a=window.location.protocol,b=Tw.getEntriesByType("resource");b=g.Xn(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20220406233357/https://fonts.gstatic.com/s/")});
(b=Ul(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(lx("wffs",Uw(b.startTime)),lx("wffe",Uw(b.responseEnd)))};
Fx=function(){return g.ot||g.Ex||g.$r()&&19>uma()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)};
Gx=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
g.Hx=function(a,b){this.id=a;this.Fc=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
Ix=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.Kx=function(a,b,c,d){return new Ix(g.Jx[a]||0,g.Jx[b]||0,c,d)};
Lx=function(a){var b=g.Jx.auto;return a.u===b&&a.j===b};
Nx=function(a){return Mx[a.j||a.u]||"auto"};
bra=function(a,b){b=g.Jx[b];return a.u<=b&&(!a.j||a.j>=b)};
Ox=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc&&!a.has(c.Fc.id)){var d=new g.Hx(c.id,c.Fc);a.add(c.Fc.id);this.audioTracks.push(d)}}};
fra=function(a,b,c,d,e){var f={},k=new Set,l={};if(Px(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=Qx(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:Rx(l)}));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=cra(a,l[c]),l[c]=dra(l[c])));c=g.r(k.values());for(k=c.next();!k.done;k=c.next())(k=b.u.get(k.value))&&
--k.IP;b=g.Gf(l,function(w){return!!w.length});
e&&d({aftflt:Rx(l)});a.fb=era(b,a);return b};
Qx=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.Va)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.Xa&&"h"===b.j&&b.video&&1080<b.video.j)return"blkhigh264";if(a.Wa&&b.video&&4320<=b.video.j&&32<b.video.fps)return"blk8khfr";if("(h"===b.j&&!c.D)return"enchdr";var f="MAC3"===b.j||"MEAC3"===b.j||"M"===b.j;if(d&&f&&!a.Ha)return"blk51live";if((a=c.u.get(b.j))&&
0<a.IP)return e.add(b.j),"byerr";e=gra(c,b);if(!0!==e)return e;var k;return null==(k=b.video)||!(32<k.fps)||c.S&&(c.ma||Sx(c,Tx.FRAMERATE))?!0:"capHfr"};
era=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};
Ux=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
Rx=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(Ux(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.Yb())}return b.join(".")};
hra=function(a,b,c,d,e){var f={},k={};g.Ff(b,function(l,m){l=l.filter(function(n){var p=n.Yb();if(!n.Sd)return k[p]="noenc",!1;if("("===n.j||"(h"===n.j){if(a.B&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";(q=!!n.Sd[c.flavor]&&!!c.j[q])||(k[p]=n.Sd[c.flavor]?"unspt":"noflv");return q}if(!Sx(a,Tx.CRYPTOBLOCKFORMAT)&&!a.ra||a.Z)return k[p]=a.Z?"disvp":"vpsub",!1}return c&&n.Sd[c.flavor]&&c.j[n.mimeType]?!0:(k[p]=c?n.Sd[c.flavor]?"unspt":"noflv":"nosys",!1)});
l.length&&(f[m]=l)});
d&&Object.entries(k).length&&e(k);return f};
lra=function(a,b,c,d,e){function f(w){return!!l[w]}
var k=a.B||!!d,l=fra(a,b,c,e,k);Vx(c)&&(l=hra(b,l,d,k,e),k&&e({enflt:Rx(l)}));if(Px(c))return e=g.Qb(Object.values(l),function(w){return!!w.length&&!!w[0].audio}),k=g.Qb(Object.values(l),function(w){return!!w.length&&!!w[0].video}),e&&k||Lr(),Mr(new Ox(k,e));
b=ira(a);k&&e({audioPrefOrder:b.join("_")});b=g.Qb(b,f);if(!b)return k&&e({noaudio:1}),Lr();b=l[b];l["9"]&&l.h&&c.Cf&&!a.Ia&&(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=jra(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(w){return w});
else 0<a.X&&p&&n&&(t=[m,d],q=n.concat(p).filter(function(w){return w}));
if(q.length&&!a.j){Wx(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 Ox(q,b))}q=kra(a);q=g.Qb(q,f);if(!q){if(l[m])return e=l[m],Wx(e,b),Mr(new Ox(e,b));k&&e({novideo:1});return Lr()}a.ub&&("1"===q||"1h"===q)&&l[d]&&(m=Xx(l[q]),Xx(l[d])>m&&(q=d));"9"===q&&l.h&&(d=Xx(l["9"]),Xx(l.h)>1.5*d&&(q="h"));a.ib&&c.isLive&&"("===q&&l.H&&1440>Xx(l["("])&&(q="H");k&&e({vfmly:Ux(q)});a=l[q];if(!a.length)return k&&e({novfmly:Ux(q)}),Lr();Wx(a,
b);return Mr(new Ox(a,b))};
Wx=function(a,b,c){c=void 0===c?[]:c;g.kc(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0<c.length){f=c.indexOf(d.j)+1;var k=c.indexOf(e.j)+1;f=0===f||0===k?k||-1:f-k}f||(f=e.Ob-d.Ob);return f});
g.kc(b,function(d,e){return e.Ob-d.Ob})};
dra=function(a){var b=Ul(a,function(c,d){return 32<d.video.fps?Math.min(c,d.video.width):c},Infinity);
Infinity>b&&(a=g.Xn(a,function(c){return 32<c.video.fps||c.video.width<b}));
bs()&&(a=g.Xn(a,function(c){return"299"!==c.Yb()}));
return a};
cra=function(a,b){return b=g.Xn(b,function(c){return c.video.j<=a.ob})};
Xx=function(a){return Ul(a,function(b,c){return Math.max(b,c.video.j)},0)};
mra=function(a){a=void 0===a?{}:a;var b=void 0===a.ql?!1:a.ql,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.mI?!1:a.mI;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&Fx()?3:2:c&&d?-1:1};
nra=function(a){return mra({hasSubfragmentedFmp4:a.D.Gh,ql:a.D.Gh,defraggedFromSubfragments:a.mm,isManifestless:!0,mI:a.Ia})};
ora=function(a){a=a.split("");Yx.LQ(a,44);Yx.GP(a,3);Yx.UL(a,20);Yx.GP(a,1);return a.join("")};
g.Zx=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
$x=function(a){a.url||(a.url=pra(a));return a.url};
by=function(a){ay(a);return a.C};
cy=function(a){return a.u?gb(a.u,"local"):"local"===a.B};
qra=function(a){ay(a);return g.If(a.j,function(b){return null!==b})};
dy=function(a){ay(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
ey=function(a,b){b=void 0===b?!1:b;ay(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=$x(a);c=new g.zk(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.Bk(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.Zx(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.Bk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Bk(c,"www.youtube.com"),d=c.toString()):d=vqa(d);c=new g.Zx(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
ay=function(a){if(a.u){if(!Ew(a.u)&&!a.u.startsWith("local"))throw new g.Is("Untrusted URL",a.u);var b=g.Ik(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=rra(c);
Object.assign(a.j,fy(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=sra[0](b),a.set("n",b),sra.length||Yia(""))}};
pra=function(a){ay(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(qra(a)){var c=[];g.Ff(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
rra=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&tra(c,a[b],a[b+1]);return c};
fy=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?tra(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
tra=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.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Kd=m;this.endTime=b+c;this.j=k||0;this.range=f||null;this.pending=l||!1;this.Kd=m||null};
hy=function(){this.segments=[];this.j=null;this.u=!0};
ura=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=Pb(a.segments,function(d){return d.Ma>=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)})};
vra=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).Hr.split(c).KF};
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};
wra=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
xra=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=xra(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
yra=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]};
zra=function(a,b){a.focus(b);return my(a,b,4)?wra(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)};
Ara=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/20220406233357/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.B=(Gy(this,"First-Frame-Time-Us")+Gy(this,"First-Frame-Uncertainty-Us"))/1E6;this.lj=Gy(this,"Target-Duration-Us")/1E6;this.u="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=Gy(this,"Crypto-Period-Index");
this.C=Gy(this,"Crypto-Period-Seconds")};
Cra=function(a){var b;a.data["Cuepoint-Type"]?b=new Aw(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",Bra[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
Dra=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
Gy=function(a,b){return Number(a.data[b])||0};
g.Era=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
Fra=function(a,b){this.j=a;this.duration=b};
Gra=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};
Hra=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};
Ira=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 Gra(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;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
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)};
Jra=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{sI:c,sU:b,DU:d,CZ:f,nI: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};
Kra=function(a){a.skip(4);return{RZ:Ey(a,0),value:Ey(a,0),sI:Cy(a),Yha:Cy(a),nha:Cy(a),id:Cy(a),SN:Ey(a),offset:a.offset}};
g.Lra=function(a){var b=My(a,0,1701671783);if(!b)return null;var c=Kra(b),d=c.RZ;c=Iy(c.SN);if(a=My(a,b.offset+b.size,1701671783))if(a=Kra(a),a=Iy(a.SN),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};
Nra=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 Ara(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(Mra)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?Ora(d-9,8):Ora(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Pra=function(a){var b=new Ty(a);b.Lt();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 Gra(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};
Qra=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};
Rra=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};
Sra=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(!Tra(a)||!Xy(a,524531317))return!1;Yy(a,!0);return!0};
Tra=function(a){if(a.Lt()){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};
Ora=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.Mh=a;this.j={};this.url=""};
Ura=function(a,b){var c=b.indexOf("?");if(0<c){var d=fy(b.substr(c+1));g.Ff(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=rra(b);g.Ff(b,function(e,f){this.set(f,e)},a)};
g.hz=function(a){a.url||(a.url=Vra(a));return a.url};
Vra=function(a){var b=$x(a.Mh),c=[];g.Ff(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=qra(a.Mh)?"&":"?";return b+a+d};
iz=function(a,b){var c=new g.Zx(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Ff(a.j,function(d,e){c.set(e,null)});
return c};
Wra=function(){this.u=this.j=this.timedOut=this.started=this.B=0};
Xra=function(a){a.B=(0,g.R)();a.started+=1};
Yra=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.u);return Math.pow(b.ih,d)};
jz=function(a,b){a[b]||(a[b]=new Wra);return a[b]};
Zra=function(a){this.K=this.J=this.D=this.u=0;this.j=a;this.C=a.clone()};
lz=function(a,b,c){if(cy(a.j))return!1;var d=jz(c,by(a.j));if(1<=d.timedOut||1<=d.j)if(a=kz(a,b),c=jz(c,by(a)),c.timedOut+c.j<=d.timedOut+d.j)return!0;return!1};
$ra=function(a,b,c){a=b?kz(a,c):a.j;return new gz(a)};
kz=function(a,b){b=b?b.vk:!1;a.B||(a.B=ey(a.C,b));return a.B};
asa=function(a,b){var c=a.D+b.Bq*(a.u-a.D)+.25*a.J;b=c>b.Qf?1E3*Math.pow(b.ih,c-b.Qf):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 Zra(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)};
bsa=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.S=[];this.D="";this.Ma=-1;this.D=void 0===d?"":d;this.Ma=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.K=!!n;a=this.range?this.zb+this.u===this.range.length:void 0===p?!!this.u:p;this.Td=a;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):csa(this)};
csa=function(a){a.B=a.startTime;a.J=a.duration;a.C=a.B+a.J};
tz=function(a){return sz?a.Td&&dsa(a):a.K};
esa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Ma!==a.Ma);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.zb+b.u===a.zb+a.u:d};
uz=function(a){return 1===a.type||2===a.type};
vz=function(a){return 3===a.type||6===a.type};
wz=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.Ma===b.Ma?a.zb+a.u===b.zb:a.Ma+1===b.Ma&&0===b.zb&&a.Td:!1};
fsa=function(a,b){return wz(a,b)||Ah(a.C,b.B)||a.Ma+1===b.Ma&&0===b.zb&&a.Td?!0:!1};
xz=function(a){return a.Ma+(a.Td?1:0)};
gsa=function(a){1===a.length||g.Tl(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)};
zz=function(a){a=yz(a);var b="";g.Ff(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
yz=function(a){var b={};b.itag=a.j.info.Yb();b.type=""+a.type;b.seg=String(a.Ma);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.Td&&(b.end="1");tz(a)&&(b.eos="1");return b};
hsa=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.Ma===b.Ma&&a.zb>=b.zb&&(a.zb+a.u<=b.zb+b.u||b.Td)};
isa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.df()?(a=a.j.xu(a),an(a,function(c){return isa(c,b)})):a.Ma===b.Ma&&!!b.u&&b.zb+b.u>a.zb&&b.zb+b.u<=a.zb+a.u};
jsa=function(a,b){var c=b.j;a.D="updateWithEmsg";a.Ma=c;b.u&&!sz&&(a.K=b.u)};
dsa=function(a){return sz?a.j.index.oN(a.Ma):a.K};
Az=function(a,b){var c=b.Ma;a.D="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,csa(a)};
Bz=function(a,b){this.j=a;this.B=null;this.D=this.Ye=NaN;this.J=this.requestId=null;this.u=a[0].j.u;this.C=b||"";this.range=this.j[0].range&&0<this.j[0].u?gsa(this.j):null};
Cz=function(a){return!uz(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?ey(a.B,b.vk):a.B;var d=new gz(b);d.get("alr")||d.set("alr","yes");a.C&&Ura(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new gz(new g.Zx(a.C)):(d=$ra(a.u,c,b),a.C&&Ura(d,a.C));(b=a.range)?d.set("range",b.toString()):a.j[0].j.Gq()&&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.Ye)||d.set("headm",a.Ye.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Ff(a.urlParams,function(e,
f){d.set(f,e)});
return d};
ksa=function(a){if(a.range)return a.range.length;a=a.j[0];return Math.round(a.J*a.j.info.Ob)};
lsa=function(a,b,c){if(0!==b.length){var d=[];b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=qz(e.Kz,c);d.push(new rz(3,a.j[0].j,f,"extendWithMediaSegments",e.jC-1,e.startTimeMs/1E3,e.durationMs/1E3))}return new Bz(a.j.concat(d))}};
msa=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,a.range.length));else{if(a.C&&0<=a.C.indexOf("/range/")||"1"===a.u.C.get("defrag")||"1"===a.u.C.get("otf"))return null;d=qz(0,4096)}d=new rz(5,c.j,d,"createProbeRequestInfo"+c.D,c.Ma);d=new Bz([d],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.lj=f;this.index=e||new hy};
nsa=function(a,b,c,d,e){this.Ma=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};
osa=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};
psa=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};
qsa=function(a){var b=a.B;a.B=[];return b};
rsa=function(){this.C=[];this.j=null;this.u={};this.B={}};
vsa=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=ssa(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",k=tsa(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",k=usa(a,f));if(null==k)return;k.update(e,c);g.dc(d,qsa(k))}g.dc(a.C,d);xaa(a.C,function(l){return 1E3*l.startSecs+l.j})};
wsa=function(a){a.j&&(a.j.j=[]);g.Ff(a.u,function(b){b.j=[]});
g.Ff(a.B,function(b){b.j=[]})};
ssa=function(a){a.j||(a.j=new Iz);return a.j};
tsa=function(a,b){a.u[b]||(a.u[b]=new Iz);return a.u[b]};
usa=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.lj?0:b.lj;var c=void 0===b.Qk?!1:b.Qk,d=void 0===b.nm?0:b.nm,e=void 0===b.Ie?0:b.Ie,f=void 0===b.Kg?Infinity:b.Kg,k=void 0===b.yx?0:b.yx;b=void 0===b.gf?!1:b.gf;hy.call(this);this.B=this.Cv=-1;this.C=null;this.Sg=a;this.nm=d;this.Qk=c;this.Ie=e;this.Kg=f;this.yx=k;this.gf=b};
Lz=function(a,b,c){b=Kz(a,b);return 0<=b&&(c||!a.segments[b].pending)};
Kz=function(a,b){return jc(a.segments,function(c){return b-c.Ma})};
Mz=function(a,b,c){c=void 0===c?{}:c;Fz.call(this,a,b,"",void 0,void 0,c.lj||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};
xsa=function(a,b,c){var d=a.index.getSegmentURL(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Ob*f;var k=b===a.index.getLastSegmentNumber()&&0<c;a=new rz(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,k);return new Bz([a],d)};
ysa=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.Pt()&&!this.info.zb};
Rz=function(a){return xra(a.j)};
zsa=function(a,b){if(1!==a.info.j.info.containerType||a.info.zb||!a.info.Td)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};
Asa=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b),d=c.KF;c=c.Hr;var e=new rz(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.zb,b,!1,!1);d=new Qz(e,d,a.B);a=new rz(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.zb+b,a.info.u-b,tz(a.info),a.info.Td);a=new Qz(a,c,!1);return[d,a]};
Bsa=function(a,b,c){var d;if(!(d=!wz(a.info,b.info)||a.info.Td)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?vra(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.Ma,a.info.startTime,a.info.duration,a.info.zb,a.info.u,tz(a.info),a.info.Td);d=b.info;c.u+=d.u;c.range&&(c.J+=d.J);c.C=d.C;c.Td=d.Td;c.K=tz(c)||tz(d);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};
Csa=function(a){g.Sz(a.info.j.info)||a.info.j.info.Be();if(-1!==a.C)return a.C;if(a.u&&Dra(a.u))return a.C=Dra(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};
Esa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=Csa(a)+b;Dsa(a,c);a.timestampOffset=b};
Dsa=function(a,b){g.Sz(a.info.j.info)||a.info.j.info.Be();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=Fsa(a);a=b?0:a.info.J;return c||a};
Fsa=function(a){g.Sz(a.info.j.info)||a.info.j.info.Be();if(a.u&&6===a.info.type)return a.u.lj;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=Jra(d.value),c+=d.nI[0]/d.sI;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 w=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 I=w?By(l):n;x&&By(l);p&&0===E||!y||By(l);q&&By(l);t+=I}f+=t/m}d=Py(k.type)?d+8:d+k.size}c=f||NaN}c||g.Sv(new g.Is("Missing duration while parsing bmff",zz(a.info)))}else c=new Ty(Rz(a)),a=a.D?c:new Ty(new DataView(a.info.j.j.buffer)),c=Sra(c,ez(a));return c};
Gsa=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};
Hsa=function(a){if(!a.u){g.Sz(a.info.j.info)||a.info.j.info.Be();if(g.Sz(a.info.j.info))var b=g.Lra(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=Qra(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=Qra(b),d||(d=m)):az(b)}b.j=c;b=e?new Hy(e,d):null}a.u=b}};
Isa=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=Rra(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),q=f===a.index.getLastSegmentNumber()&&n+p===k.length;e.push(new rz(3,a,k,"getRequestInfoForRange",f,l,m,n,p,q));if(k.start+n+p>=c+d)break}e.length||g.S(new g.Is("b189619593",""+b,""+c,""+d));return new Bz(e)};
Wz=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Jsa=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.Jx[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.Jx[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.Jx[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.Ob||(c.Ob=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};
g.Sz=function(a){return 1===a.containerType};
fA=function(a){return"application/x-mpegURL"===a.mimeType};
Ksa=function(a){var b=navigator.mediaCapabilities;if(!b||"f"===a.j)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.Ob||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Ob||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
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};
Lsa=function(a,b,c,d,e){var f=new Wz;b in g.Jx||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.Jx[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})};
Msa=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Os)?void 0:c.toFixed(0))+", "+(null==(d=a.Ob)?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.Ka("yt.player.utils.videoElement_");a||(a=g.ei("VIDEO"),g.Ja("yt.player.utils.videoElement_",a));return a};
kA=function(a){var b=jA();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Nsa=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&&!Xp("38")&&!g.$r())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!wma())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)};
Osa=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};
Psa=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.Id=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.QM={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}};
g.jv(this.Id,this.QM);this.Xy=this.isActive};
yA=function(a,b,c,d,e){g.iv.call(this);var f=this;this.hc=a;this.We=b;this.id=c;this.containerType=d;this.isVideo=e;this.vN=this.cB=this.Te=null;this.appendWindowStart=this.timestampOffset=0;this.qL=qA([],[]);this.Mz=!1;this.vy=Qsa?[]:void 0;this.Lc=function(l){return f.ea(l.type,f)};
var k;if(null==(k=this.hc)?0:k.addEventListener)this.hc.addEventListener("updateend",this.Lc),this.hc.addEventListener("error",this.Lc)};
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.We=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.iA(this);g.H(this,this.events);this.zx=new AA(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.We.webkitMediaSourceURL,!0);a=this.mediaSource||this.We;gv(this.events,a,["sourceopen","webkitsourceopen"],this.LY);gv(this.events,a,["sourceclose","webkitsourceclose"],this.KY)};
Rsa=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Ssa=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.We.webkitSourceState){case a.We.SOURCE_OPEN:return"open";case a.We.SOURCE_ENDED:return"ended";default:return"closed"}};
EA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Tsa=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Id:a.j,f=a.u.isView()?a.u.Id:a.u,k=new BA(a.mediaSource,a.We,!0);k.zx=a.zx;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.lC(a.j.rd());return k};
Usa=function(a,b){return FA(function(c,d){return g.Jr(c,d,4,1E3)},a,b)};
g.Vsa=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(Wsa);return a(b,c).then(function(d){var e=g.Vsa(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.Ha=this.duration=0;this.gf=this.S=this.isLive=this.u=!1;this.Kg=this.Ie=0;this.isOtf=this.Cf=!1;this.xa=(0,g.R)();this.X=Infinity;this.j={};this.state=this.ma=0;this.timeline=null;this.isManifestless=!1;this.Z=[];this.B=null;this.ra=0;this.Ia="";this.va=NaN;this.J=this.D=this.C=this.timestampOffset=this.K=0;this.Ra=!!b&&b.kb("html5_live_nonzero_first_segment_start_time");
this.Va=!!b&&b.kb("html5_live_self_init_segments");this.withCredentials=!b||!b.kb("html5_manifest_without_credentials");this.Da=!!b&&b.kb("disable_html5_manifest_namespace_redux");this.Qa=b&&b.kb("disable_html5_duration_caching")?Infinity:10;Xsa=!!b&&b.kb("html5_modern_vp9_mime_type")};
jra=function(a){return g.If(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
Vx=function(a){return g.If(a.j,function(b){return!!b.info.Sd})};
Ysa=function(a){return g.If(a.j,function(b){return gA(b.info.mimeType)})};
Zsa=function(a){return g.If(a.j,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
$sa=function(a){return g.If(a.j,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
ata=function(a){return g.If(a.j,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
bta=function(a){return g.If(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
cta=function(a){return Jf(a.j,function(b){return b.info.video?b.oH():!0})};
Px=function(a){return g.If(a.j,function(b){return cy(b.u.j)})};
dta=function(a){return g.If(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=eta(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 Jsa(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 w=g.r(a.drm_families.split(",")),x=w.next();!x.done;x=w.next())x=x.value,t[x]=b[x]}return new bA(e,d,{audio:m,video:k,Fc:l,Sd:t,Ob:f,Os:c,contentLength:p,lastModified:q,captionTrack:n,streamType:+a.stream_type})};
fta=function(a){return an(a,function(b){return 3===+b.stream_type})?3:0};
gta=function(a,b){return a.timeline?ec(a.timeline.C,b):a.Z.length?ec(a.Z,b):[]};
JA=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.Zx(a,!0);a.set("alr","yes");c&&(c=ora(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
kta=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=hta(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 w=Number(Gz(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=ita(Gz(b,KA(a,"spatialAudioType")));t=new Wz(t,w,m);a:{w=Gz(b,"lang")||"und";if(m=Hz(b,"Role"))if(p=Gz(m,"value")||"",g.Of(jta,p)){m=w+"."+jta[p];n="main"===p;a=Gz(b,KA(a,"langName"))||w+" - "+p;w=new g.hA(a,m,n);break a}w=void 0}}if(b=Hz(b,"ContentProtection"))if("https://web.archive.org/web/20220406233357/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,Fc:w,Sd:x,Ob:e,Os:k,contentLength:f})};
hta=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}};
ita=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}};
mta=function(a,b){b=void 0===b?"":b;a.state=1;a.xa=(0,g.R)();return Usa(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=uda(d,jh(c,null)).getElementsByTagName("MPD")[0];a.X=1E3*osa(Gz(c,"minimumUpdatePeriod"))||Infinity;if(!a.Da){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/20220406233357/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.Ia=d}a.isLive=Infinity>a.X&&a.isLivePlayback;a.Ha=Number(Gz(c,KA(a,"earliestMediaSequence")))||0;if(d=Date.parse(psa(Gz(c,KA(a,"mpdResponseTime")))))a.ra=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Tl(c.getElementsByTagName("Period"),a.qZ,a);a.state=2;a.ea("loaded");lta(a)}return a}).Fh(function(c){if(c instanceof Hr){var d=c.xhr;
a.ma=d.status}a.state=3;a.ea("loaderror");return Bi(d)})};
nta=function(a,b,c){return mta(new GA(a,b,c),a)};
LA=function(a){return a.isLive&&(0,g.R)()-a.xa>=a.X};
lta=function(a){var b=a.X;isFinite(b)&&(LA(a)?a.refresh():(b=Math.max(0,a.xa+b-(0,g.R)()),a.B||(a.B=new g.L(a.refresh,b,a),g.H(a,a.B)),a.B.start(b)))};
ota=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.K||a.timestampOffset):0};
NA=function(a){return a.D?a.D-(a.K||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.Qa&&(a.va=b);return b}if(a.isLive&&(d=b[c],d.lj))return d.lj}return NaN};
pta=function(a,b){a=Rf(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};
qta=function(a,b){g.Ff(a.j,function(c){g.Ff(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)})})};
rta=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.Zx("https://web.archive.org/web/20220406233357/http://www.youtube.com/videoplayback"),c,"fake"):new Uz(new g.Zx("https://web.archive.org/web/20220406233357/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.Da?"yt:"+b:a.Ia+":"+b};
sta=function(a){a.D=0;a.C=0;a.J=0};
eta=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(Xsa&&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&&!tta||'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(".")+'"'};
uta=function(){var a=g.gw("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.xh(Math.floor(b),0,100),muted:!!a.muted}};
vta=function(a){g.fw("yt-player-bandwidth",a,2592E3)};
RA=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Wpa()>(0,g.R)()-1E3*a))return 0;a=g.gw("yt-player-quality");if("string"===typeof a){if(a=g.Jx[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
wta=function(){var a=g.gw("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};
xta=function(){var a={values:{},Cm:{}};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};
yta=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
TA=function(a,b){return+SA()[yta(a,b)]||8192};
SA=function(){return g.gw("yt-player-performance-cap")||{}};
zta=function(a){g.fw("yt-player-watch-later-pending",a)};
Ata=function(){return!!g.gw("yt-player-headers-readable")};
Bta=function(a){g.fw("yt-player-playback-on-reload",a)};
Cta=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.Dta=function(){var a=g.gw("yt-player-caption-language-preferences");return a?a:[]};
Eta=function(){this.qb=this.j=this.Da=this.J=this.D=this.ma=this.xa=this.Ra=this.Qa=!1;this.S=this.K=0;this.Xa=!1;this.Va=!0;this.Wa=!1;this.X=0;this.ra=!1;this.ob=Infinity;this.fE=!1;this.ub=!0;this.Ia=this.Ha=!1;this.u={};this.ib=this.B=this.va=!1;this.Qd=0;this.fb=!1};
kra=function(a){if(a.Ra)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=(Fta[a.Z]||[a.Z]).concat(b));return b};
ira=function(a){var b=["o","a","A"];1===a.Qd&&(a.ma&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.J&&(b=["meac3","MEAC3"].concat(b)));a.Qa&&(b=["so","sa"].concat(b));!a.qb||a.Da||a.C||b.unshift("a");a.xa&&b.unshift("ah");a.C&&(b=(Fta[a.C]||[a.C]).concat(b));return b};
UA=function(a,b,c){b=void 0===b?{}:b;if(Sx(a.u,Tx.AV1_CODECS)&&Sx(a.u,Tx.HEIGHT)&&Sx(a.u,Tx.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=Cta();if(d)return b.localPref=d}catch(k){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;vma()&&(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.kb("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.bB=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};
dB=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.mA&&!g.$r())return Xp("45");if(g.ot||g.Ic)return a.kb("edge_nonprefixed_eme");if(g.Ex)return Xp("47");if(g.Qs){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.cB(a,"html5_safari_desktop_eme_min_version"))return Xp(a)}return!0};
Gta=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.ya=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.Na()};
Ita=function(a,b){a.callback=b;a.B=[];dB(a.experiments)?wB(a):Hta(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=Jta(a,c);a.Na();navigator.requestMediaKeySystemAccess(b,d).then(ir(function(e){if(!a.isDisposed()){a.Na();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())Kta(a,c,k.value);if(e.videoCapabilities)for(e=
g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())Kta(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),wB(a)):a.callback(a.B)}}),ir(function(){a.Na();
a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor;a.D||a.j.shift();wB(a)}))}};
Kta=function(a,b,c){a.N("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
Jta=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.ya("swcrypto",{}),k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
Hta=function(a){if(XA()&&g.Qs)a.Na(),a.B.push(new WA("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Lta(),c=g.Qb(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.Na(),a.B.push(a.u[c])):a.Na();a.j=[]}a.callback(a.B)};
Lta=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}};
Mta=function(){this.j=0};
Nta=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.cB=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.Ka("cast.receiver.platform.canDisplayType");this.J={};this.X=!1;this.u=new Map;this.S=!0;this.D=!this.experiments.kb("html5_disable_protected_hdr");this.j=this.B=!1;this.Z=this.experiments.kb("html5_disable_vp9_encrypted");a=g.Ka("cast.receiver.platform.getValue");this.C=!this.K&&a&&a("max-video-resolution-vpx")||null};
gra=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.Be()&&as()&&a.experiments.kb("html5_appletv_disable_vp9"))return"dwebm";if(eA(b)&&a.X)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(Sx(a,Tx.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?Xp(53):g.Ex&&Xp(64)))return"dopus";var f=c;f=void 0===
f?1:f;c={};b.video&&(b.video.width&&(c[Tx.WIDTH.name]=b.video.width),b.video.height&&(c[Tx.HEIGHT.name]=b.video.height),b.video.fps&&(c[Tx.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[Tx.EOTF.name]=b.video.u),b.Ob&&(c[Tx.BITRATE.name]=8*b.Ob*f),"("===b.j&&(c[Tx.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[Tx.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[Tx.CHANNELS.name]=b.audio.numChannels);a.B&&cA(b)&&
(c[Tx.EXPERIMENTAL.name]="allowed");f=g.r(Object.keys(Tx));for(var k=f.next();!k.done;k=f.next()){k=Tx[k.value];var l;if(l=c[k.name])(l=k===Tx.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=a.experiments.kb("html5_ignore_h264_framerate_cap")&&k===Tx.FRAMERATE&&("H"===l.j||"h"===l.j)),l=!(l||k===Tx.DECODETOTEXTURE&&!a.experiments.kb("html5_decode_to_texture_cap"));if(l)if(Sx(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===Tx.EOTF)return"dvp92"}!a.experiments.kb("disable_html5_cast_hdcp_filter2")&&
a.K&&b.video&&1080<b.video.j&&b.Sd&&(e+="; hdcp=2.2");return"227"!==d||a.experiments.kb("html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.kb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
yB=function(a){var b=Zr()&&!Xp(29),c=Yr("google tv")&&Yr("chrome")&&!Xp(30);a=as()&&a.experiments.kb("apple_tv_cobalt_default_mse_killswitch");return b||c||a?!1:Rsa()};
Ota=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)&&gra(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};
Sx=function(a,b){b.name in a.J||(a.J[b.name]=Pta(a,b));return a.J[b.name]};
Pta=function(a,b){if(a.C)return!!a.C[b.name];if(b===Tx.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===Tx.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)};
Qta=function(a){a.S=!1;a.j=!0};
Rta=function(a){a.B||(a.B=!0,a.j=!0)};
Sta=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).CU);a.u.set(b,{CU:c+1,IP:Math.pow(2,c+1)});a.j=!0};
Uta=function(a){return Tta.then(a)};
AB=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;Vta(a)}};
Xta=function(a){a.j||(Wta(function(){Vta(a)}),a.j=!0)};
Vta=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&&Xta(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(!Yta){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}Yta=!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};
Zta=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};
$ta=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};
KB=function(){if(!aua&&!g.ot){if(JB)return JB;var a;JB=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=JB)?0:b.importKey)&&(null==(c=JB)?0:c.sign)&&(null==(d=JB)?0:d.encrypt))return JB;JB=void 0}};
g.LB=function(a){this.C=a};
g.MB=function(a){this.u=a};
NB=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()};
bua=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,w,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],w=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[y]=x),t=q+OB[y]+x+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&k^f&k),q=t+w,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],w=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[y]=x),t=p+OB[y]+x+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+w,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],w=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[y]=x),t=n+OB[y]+x+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&l^
~k&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+w,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],w=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[y]=x),t=m+OB[y]+x+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&k^~f&l),w=((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+w,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};
dua=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;cua(a);return b};
cua=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.K=[];a.K.length=64;a.C=0;a.u=0};
QB=function(){this.B=this.j=0;this.u=Array.from({length:PB.length}).fill(0)};
eua=function(){};
fua=function(a){this.name=a;this.startTimeMs=(0,g.R)();this.j=!1};
gua=function(){this.profiles=new eua};
RB=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new QB),a.profiles[b].Dl(c,d))};
SB=function(){};
TB=function(){g.LB.apply(this,arguments)};
UB=function(){g.MB.apply(this,arguments)};
hua=function(a,b){this.encryptedClientKey=b;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
VB=function(a){try{return Jc(a)}catch(b){return null}};
iua=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?VB(b.clientKey):null;var c=b.encryptedClientKey?VB(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.R)():null;a&&c&&d&&(this.j=new hua(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=VB(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
WB=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
XB=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=jua(this);this.B=c;this.D=d};
jua=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
YB=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.kc(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};
kua=function(a){var b=new Mta;this.policy=a;this.ra=b;this.X=this.ma=0;this.D=-1;this.S=!1;this.Z=this.C=ZB();this.K=new XB(4,1,.6,.4);this.j=new XB(10,1,.5,.4);this.B=a.j?new WB(a.u):new XB(a.u,20,.5,.4);this.J=new XB(5,1,.25);this.u=new XB(30,1,.5);a=g.gw("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.S=!0);this.B.Yg(this.policy.D,b);0<a.delay&&this.K.Yg(1,Math.min(a.delay,2));0<a.stall&&this.j.Yg(1,a.stall);0<a.init&&(this.Z=Math.min(a.init,this.Z));this.D=ZB()};
$B=function(a){a=a.K.Fg();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
lua=function(a,b,c){isNaN(c)||(a.X+=c);isNaN(b)||(a.ma+=b)};
aC=function(a){a=a.B.Fg();return 0<a?a:1};
bC=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=aC(a);d=1/((a.j.Fg()||0)+1/d);var e=a.J.Fg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+$B(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((YB(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
cC=function(a){return{delay:$B(a),stall:a.j.Fg()||0,byterate:aC(a),init:a.Z}};
dC=function(a){-1<a.D&&3E4<ZB()-a.D&&(vta(cC(a)),a.D=ZB(),a.S=!0)};
mua=function(a){return 4E3<=ZB()-a.C};
nua=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.j=!1};
pua=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.G.call(this);var c=this;this.values=a;this.Cm=b;this.u={};this.B=this.j=0;this.C=new g.L(function(){oua(c)},1E4);
g.H(this,this.C)};
eC=function(a,b){qua(a,b);return a.values[b]&&a.Cm[b]?a.values[b]/Math.pow(2,a.j/a.Cm[b]):0};
qua=function(a,b){a.values[b]||(b=xta(),a.values=b.values||{},a.Cm=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
oua=function(a){var b=xta();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]=eC(a,e);a.u=c}b=a.Cm;c={};c.values=a.u;c.halfLives=b;g.fw("yt-player-memory",c,2592E3)};
fC=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
gC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
hC=function(a,b){return void 0===b||null===b?a:Number(b)};
iC=function(a,b){return void 0===b||null===b?a:b.toString()};
jC=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(rua))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
kC=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};
JC=function(a,b,c){g.G.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Ub=this.Wb=this.Ia=this.Pf=this.userDisplayName=this.userDisplayImage=this.Vh="";this.deviceParams={};this.controlsType="0";this.xe=NaN;this.Sb=!1;this.Dd=(0,g.R)();this.Xa=0;this.nj=this.zk=!1;this.wj=!0;this.mj=this.Vc=!1;this.Aj=null;this.C=!1;this.X=0;a=a?g.Zf(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new Nta(b?
b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.ib=b?b.serializedForcedExperimentIds:iC("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)&&!this.N("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:iC("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(y){d=""}this.pc=d;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];this.j=fC(!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||lC(this)&&b.loaderUrl?b.loaderUrl||"":this.pc:this.loaderUrl=this.j||lC(this)&&a.loaderUrl?iC("",a.loaderUrl):this.pc;this.N("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=iC("",a.embedsTokenValue));this.B=Cw(this.loaderUrl,
sua);d=this.loaderUrl;var e=void 0===e?!1:e;this.Mk=Bw(Cw(d,tua),d,e,"Trusted Ad Domain URL");this.Ra=fC(!1,a.privembed);this.protocol=0===this.pc.indexOf("http:")?"http":"https";this.ma=Dw((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Dw(this.pc)||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=gC(d,e,uua):e&&(d="embedded");this.Ha=d;Doa();e=null;d=b?b.playerStyle:a.ps;var f=g.Tb(vua,d);!d||f&&!this.B||
(e=d);this.playerStyle=e;this.S=(this.D=g.Tb(vua,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Lk=!this.S;this.xa=fC(!1,a.disableplaybackui);this.disablePaidContentOverlay=fC(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=fC(!1,null==b?void 0:b.disableSeek);this.Dc=this.N("variable_playback_rate")?!0:jA().defaultPlaybackRate?mC||g.hs||nC?g.Ex&&Xp("20")||g.mA&&Xp("4")||g.oC&&Xp("11")||ds():!(g.oC&&!Yr("chrome")||mC||Yr("android")||Yr("silk")):!1;
this.Hk=fC(!1,a.enable_faster_speeds);this.isMobile=fC("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);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.Kk=e;this.va=pA();this.Xl=g.pC;this.sj=fC(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.dg=!(!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.dg||fC(!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.yk=g.qC(this)&&!this.sj||fC(!rC(this)&&!sC(this)&&!this.D,k);this.vk=b?!!b.mobileIphoneSupportsInlinePlayback:fC(!1,a.playsinline);k=this.isMobile&&tC&&null!=uC&&0<uC&&2.3>=uC;e=b?b.useNativeControls:a.use_native_controls;this.J=g.qC(this)&&
this.isMobile;d=this.isMobile&&!this.J;e=vC(this)||!k&&fC(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.me=this.isMobile;this.color=gC("red",b?b.progressBarColor:a.color,wua);this.Vl="3"===this.controlsType||fC(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.ub=!this.j;this.vj=(e=!this.ub&&!sC(this)&&!this.S&&!this.D&&!rC(this))&&!this.Vl&&"1"===this.controlsType;this.Lb=g.wC(this)&&e&&"0"===this.controlsType&&!this.vj;this.cm=this.Wl=
k;this.Cb=("3"===this.controlsType||this.isMobile||fC(!1,a.use_media_volume))&&!this.J;this.xj=xC&&!g.wc(601)?!1:!0;this.Jk=this.j||!1;this.pd=sC(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=iC("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.B||fC(!0,l);k=!0;b&&b.disableMdxCast&&(k=!1);this.fb=this.N("enable_cast_for_web_unplugged")&&g.yC(this)&&k||this.N("enable_cast_on_music_web")&&g.zC(this)&&k||l&&
k&&"1"===this.controlsType&&!this.isMobile&&(sC(this)||g.wC(this)||g.AC(this))&&!g.BC(this);this.Zl=nA()||oA();l=b?!!b.supportsAutoplayOverride:fC(!1,a.autoplayoverride);this.Th=!this.isMobile&&!Yr("nintendo wiiu")&&!Yr("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:fC(!1,a.mutedautoplay);k=this.N("embeds_enable_muted_autoplay")&&g.qC(this);this.Vd=l&&k&&this.va&&!vC(this);l=(sC(this)||rC(this))&&"blazer"===this.playerStyle;this.fh=b?!!b.disableFullscreen:!fC(!0,a.fs);this.Wa=!this.fh&&(l||g.bv());
this.ej=this.N("uniplayer_block_pip")&&(Zr()&&Xp(58)&&!is()||fs);l=g.qC(this)&&!this.sj;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Hb=l||fC(!this.D,m);this.xk=fC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.K=is()&&0<uC&&4.4>=uC?"_top":"_blank";this.Qd=g.AC(this);this.ph=fC("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.Da=m;this.authUser=iC("",b?b.authorizedUserIndex:a.authuser);this.bd=g.qC(this)&&(this.Ra||this.N("embeds_web_enable_hiding_login_buttons")&&(!rma()||is()||gs())||this.N("embeds_web_enable_always_hiding_login_buttons"));var n;b?void 0!==b.disableWatchLater&&
(n=!b.disableWatchLater):n=a.showwatchlater;this.Ak=((m=!this.bd)||!!this.authUser&&m)&&fC(!this.S,this.B?n:void 0);this.Zf=b?b.isMobileDevice||!!b.disableKeyboardControls:fC(!1,a.disablekb);this.loop=fC(!1,a.loop);this.pageId=iC("",!this.N("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Yl=fC(!0,a.canplaylive);this.ob=fC(!1,a.livemonitor);this.disableSharing=fC(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.Dh(n,m))):n=null;this.yj=n;this.mute=b?!!b.startMuted:fC(!1,a.mute);this.storeUserVolume=!this.mute&&fC("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:gC(void 0,n,CC);this.captionsLanguagePreference=
b?b.captionsLanguagePreference||"":iC("",a.cc_lang_pref);n=gC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,CC);"3"===this.controlsType&&2===n&&(n=3);this.Va=n;this.nf=b?b.hl||"en_US":iC("en_US",a.hl);this.region=b?b.contentRegion||"US":iC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":iC("en",a.host_language);this.Bk=!this.Ra&&Math.random()<g.cB(this.experiments,"web_player_api_logging_fraction");this.Qa=!this.Ra;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:
fC(!0,a.deviceHasDisplay);this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.xe=hC(this.xe,a.ismb);this.Lk?(n=a.vss_host||"s.youtube.com","s.youtube.com"===n&&(n=DC(this.ma)||"www.youtube.com")):n="video.google.com";this.zj=n;EC(this,a,!0);this.Z=new BB;g.H(this,this.Z);m=b?b.innertubeApiKey:iC("",a.innertube_api_key);l=b?b.innertubeApiVersion:iC("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:iC("",a.innertube_context_client_version);m=g.O("INNERTUBE_API_KEY")||m;l=g.O("INNERTUBE_API_VERSION")||
l;k=g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");e=FC(this);d="number"===typeof this.deviceParams.c?Number(this.deviceParams.c):Object.keys(xua).indexOf(this.deviceParams.c);this.gh={innertubeApiKey:m,innertubeApiVersion:l,OA:k,SF:e,cN:d,innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,UF:this.hostLanguage,TF:this.region,dN:g.O("INNERTUBE_HOST_OVERRIDE")||"",fN:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),VF:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.wk=
null!=window.WebKitPlaybackTargetAvailabilityEvent;this.u=new xB(this.experiments,this.N("html5_force_hfr_support")?!0:GC(this)||bs()||wma()||yua(this),g.mA&&g.wc(56)||g.Ex&&g.wc(54)||yua(this));n=this.xe;m=this.experiments;l=new nua;g.HC(this)&&(l.j=!0,l.D=.1);m.kb("html5_pctile_bandwidth_estimator")&&(l.j=!1);n&&(l.B=n/8);l.C=480<=RA();this.schedule=new kua(l);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:fC(!1,a.enable_safety_mode);p=this.xa?!1:sC(this)&&"blazer"!==
this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.Tb=fC(p,!this.S&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:fC(!1,a.send_visitor_id_header);var t;"docs"===this.playerStyle&&(b?t=b.disableNativeContextMenu:t=a.disable_native_context_menu);this.disableNativeContextMenu=fC(!1,t);this.Ik=GC(this)&&this.N("enable_skip_intro_button");this.embedConfig=iC("",b?b.serializedEmbedConfig:a.embed_config);q=a.raw_embedded_player_response;q||(t=a.embedded_player_response)&&
(q=JSON.parse(t));this.bj=q?gC("EMBEDDED_PLAYER_MODE_UNKNOWN",q.embeddedPlayerMode,zua):"EMBEDDED_PLAYER_MODE_UNKNOWN";this.C="EMBEDDED_PLAYER_MODE_PFL"===this.bj;this.qb=fC(!1,a.full_window);this.Fb=!g.yC(this)&&!IC(this)&&!g.BC(this)&&!0;var w;this.livingRoomAppMode=gC("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null==(w=b.device)?void 0:w.livingRoomAppMode:a.living_room_app_mode,Aua);this.transparentBackground=b?!!b.transparentBackground:fC(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:
fC(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:fC(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:fC(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=fC(!1,a.showbackbutton);var x;this.wj=null!=(x=a.show_loop_video_toggle)?x:!0;this.Ul=1E-4>Math.random();this.ih=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new iua(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.Pc=new pua;g.H(this,this.Pc);this.mj=fC(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.O("DATASYNC_ID");this.Nk=g.O("LOGGED_IN",!1);this.Qf=(null==b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=iC("",b?b.embedsRct:a.rct);this.cj=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.N("html5_high_res_logging")?this.X=2:1>4096*
Math.random()&&(this.X=1);this.N("html5_ping_queue")&&(this.nh=new AB)};
EC=function(a,b,c){c=void 0===c?!1:c;a.Wb=iC(a.Wb,b.video_id);a.Ia=iC(a.Ia,b.eventid);a.Ia&&(rv=a.Ia);for(var d=[],e=g.r(Object.keys(Bua)),f=e.next();!f.done;f=e.next()){f=Bua[f.value];var k=b[f];null!=k&&(k!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=k)}!c&&0<d.length&&a.Ul&&(d.sort(),g.Sv(new g.Is("Player client parameters changed after startup",d)));a.userAge=hC(a.userAge,b.user_age);a.Vh=iC(a.Vh,b.user_display_email);a.userDisplayImage=iC(a.userDisplayImage,b.user_display_image);g.Fw(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=iC(a.userDisplayName,b.user_display_name);a.Pf=iC(a.Pf,b.user_gender);a.csiPageType=iC(a.csiPageType,b.csi_page_type);a.csiServiceName=iC(a.csiServiceName,b.csi_service_name);a.ph=fC(a.ph,b.enablecsi);a.pageId=iC(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Pd=b.living_room_session_po_token.toString())};
KC=function(a,b){return!a.D&&Zr()&&Xp(55)&&"3"===a.controlsType&&!b};
g.LC=function(a){a=DC(a.ma);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.MC=function(a){return g.BC(a)?"music.youtube.com":g.LC(a)};
NC=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
OC=function(a){return sC(a)&&!g.yC(a)};
vC=function(a){return xC&&!a.vk||Yr("nintendo wiiu")||Yr("nintendo 3ds")?!0:!1};
g.BC=function(a){return"music-embed"===a.playerStyle};
FC=function(a){return a.deviceParams.c};
g.HC=function(a){return/^TVHTML5/.test(FC(a))?!0:"TV"===a.deviceParams.cplatform};
Cua=function(a){return"TVHTML5"===FC(a)&&a.deviceParams.cver.startsWith("7")};
lC=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===FC(a)};
yua=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.PC=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
GC=function(a){return/web/i.test(FC(a))};
g.QC=function(a){return"WEB"===FC(a).toUpperCase()};
IC=function(a){return"WEB_KIDS"===FC(a)};
g.yC=function(a){return"WEB_UNPLUGGED"===FC(a)};
RC=function(a){return"TVHTML5_UNPLUGGED"===FC(a)};
g.SC=function(a){return g.yC(a)||"TV_UNPLUGGED_CAST"===FC(a)||RC(a)};
g.zC=function(a){return"WEB_REMIX"===FC(a)};
g.TC=function(a){return"WEB_EMBEDDED_PLAYER"===FC(a)};
g.UC=function(a){return!a.N("web_player_i_see_captions_killswitch")&&g.QC(a)};
VC=function(a){return a.N("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.QC(a)};
Dua=function(a){return!a.N("web_player_larger_tap_buttons_killswitch")&&g.QC(a)&&!g.wC(a)};
WC=function(a){return a.N("html5_device_is_audio_only")?a.deviceIsAudioOnly:!a.deviceHasDisplay};
g.YC=function(a){var b;(b=WC(a)||!g.mA||fs||"3"===a.controlsType?!1:g.hs?a.j&&g.wc(51):!0)||(b=WC(a)||!g.Ex||fs||"3"===a.controlsType?!1:g.hs?a.j&&g.wc(48):g.wc(38));b||(b=WC(a)||!g.oC||fs||"3"===a.controlsType?!1:g.hs?a.j&&g.wc(37):g.wc(27));return b||!WC(a)&&g.XC&&!es()&&g.wc(11)||!WC(a)&&g.Qs&&g.wc("604.4")};
Eua=function(a){if(g.wC(a)&&tC)return!1;if(g.Ex){if(!g.wc(47)||!g.wc(52)&&g.wc(51))return!1}else if(g.Qs)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
sC=function(a){return"detailpage"===a.Ha};
g.wC=function(a){return"embedded"===a.Ha};
ZC=function(a){return"leanback"===a.Ha};
rC=function(a){return"adunit"===a.Ha||"gvn"===a.playerStyle};
g.AC=function(a){return"profilepage"===a.Ha};
g.qC=function(a){return a.j&&g.wC(a)&&!rC(a)&&!a.D};
$C=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.Sv(new g.Is("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.aD=function(a){var b=g.MC(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&Fua.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.bD=function(a,b){return Mr(b||a.Ub)};
cD=function(a){return 1<=a.X};
DC=function(a){var b=g.ej(a);return(a=Number(g.dj(4,a))||null)?b+":"+a:b};
dD=function(a){var b=[];if(a){a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
g.eD=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
fD=function(a){return 1===a||2===a};
gD=function(a,b){b=void 0===b?0:b;if(a instanceof g.eD)return a;a=a&&a instanceof Error?a:Error(""+a);fD(b)?g.S(a):g.Sv(a);return new g.eD(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
hD=function(a){this.j=a};
iD=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.yf().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].yf().Be())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()};
Gua=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=""};
Hua=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Fc)?void 0:d.getId())===b});
a.j=b};
jD=function(a,b,c){a.cpn&&(b=g.wj(b,{cpn:a.cpn}));c&&(b=g.wj(b,{Sha:c}));return b};
Iua=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
Jua=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)};
Kua=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.Wu=a.Wu;this.Sd=a.Sd||"";this.Fc=a.Fc;this.audioChannels=a.audioChannels;this.j=""};
Lua=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 Kua({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,Wu:n?l[n]:void 0,Sd:f.drm_families,Fc:k,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
kD=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
Mua=function(a,b){if(!(fs||cs()||as()))return null;a=Lua(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.Fc&&(f=k.Fc.getId(),c[f]||(k=new g.Hx(f,k.Fc),c[f]=k,b.push(k)))}}return 0<b.length?b:null};
Rua=function(a,b,c,d,e,f,k){if(!(fs||cs()||as()))return Lr();var l={},m=Nua(c),n=Lua(c,a.N("html5_filter_fmp4_in_hls"),a.u.D,l);if(!n)return k({noplst:1}),Lr();Oua(n);c={};var p=(c.fairplay="https://web.archive.org/web/20220406233357/https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],w=[],x=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new Kua({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Fc: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 I=E.next();!I.done;I=E.next())if(I=I.value,I.width){for(var K=g.r(I.u),P=K.next();!P.done;P=K.next())if(P=P.value,n[P]){I.j=P;break}I.j||(I.j=Pua(n,I));if(K=n[I.j])if(c.push(I),"fairplay"===I.Sd&&(q=p),P="","PQ"===I.Wu?P="smpte2084":"HLG"===I.Wu&&(P="arib-std-b67"),P&&(y=P),w.push(Qua(K,[I],d,f,I.itag,I.width,I.height,I.fps,m,void 0,void 0,q,P)),!x||I.width*I.height*I.fps>x.width*x.height*x.fps)x=I}else t.push(I)}else l[E]="disdrmhfr";w.reduce(function(aa,
J){return J.yf().isEncrypted()&&aa},!0)&&(q=p);
e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.N("html5_native_audio_track_switching");w.push(Qua(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));Object.entries(l).length&&k(l);return iD(a.u,w,KC(a,b))};
Qua=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w){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),Sd:q});a=new Gua(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new kD(e,a,m)};
Nua=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};
Pua=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Sd===b.Sd&&!e.audioChannels)return d}return""};
Oua=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]};
lD=function(a,b){this.j=a;this.u=b};
Sua=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.Zx(k.url,!0);if(k.s){var l=k.sp,m=ora(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=Lsa(k.type,k.quality,k.itag,k.width,k.height);e.push(new lD(k,f))}}return iD(a.u,e,KC(a,b))};
mD=function(a,b){this.j=a;this.u=b};
Tua=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=Lsa(e.type,"medium","0");d.push(new mD(f,e.url))}return iD(a.u,d,KC(a,b))};
nD=function(a,b){this.type=a||"";this.id=b||""};
g.oD=function(a){return new nD(a.substr(0,2),a.substr(2))};
pD=function(a,b){for(var c={},d=g.r(Object.keys(Uua)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Fw(f)&&(c[Uua[e]]=f)}return c};
qD=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(Vua)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Vua[e];for(var f=g.r(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=Wua(k.url);g.Fw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Wua(a.url),g.Fw(a)&&(b["maxresdefault.jpg"]=a));return b};
Wua=function(a){return a.startsWith("//")?"https:"+a:a};
g.rD=function(a,b){this.u=a;this.author="";this.Dw=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=pD(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new nD("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.oD(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.sD=function(a,b){this.j=a;this.Hn=this.author="";this.Dw=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Oq=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Hn=b.Hn||"";if(a=b.endscreen_autoplay_session_data)this.Dw=kr(a,"&");this.Ew=b.Ew;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.Oq=b.Oq||"";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=pD(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
Yua=function(a,b){var c=g.Ka("ytDebugData.callbacks");c||(c={},g.Ja("ytDebugData.callbacks",c));if(g.Q("web_dd_iu")||Xua.includes(a))c[a]=b};
tD=function(a){this.j=new aq(a)};
Zua=function(){if(void 0===uD){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.kq(g.Js()+"::yt-player"))){uD=new tD(a);break a}uD=void 0}}return uD};
g.vD=function(){var a=Zua();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.$ua=function(a){var b=Zua();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.wD=function(a){return g.vD()[a]||0};
g.xD=function(a,b){var c=g.vD();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.$ua(c))};
g.yD=function(a){return g.B(function(b){return b.return(g.lt(ava(),a))})};
AD=function(a,b,c,d,e,f,k){var l,m,n,p,q,t,w;return g.B(function(x){switch(x.j){case 1:return l=g.wD(a),4===l?x.return(4):g.A(x,g.tt(),2);case 2:m=x.u;if(!m)throw g.Ss("wiac");if(!k||void 0===f){x.Ya(3);break}return g.A(x,bva(k,f),4);case 4:f=x.u;case 3:return n=c.lastModified||"0",cva("Writing data to iDB: "+a+" "+b.id+" "+n+" "+e+" "+(null==(p=f)?void 0:p.length)),g.A(x,g.yD(m),5);case 5:return q=x.u,g.va(x,6),zD++,g.A(x,g.bt(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",
Hc:!0},function(y){if(void 0!==e&&void 0!==f){var z=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,"0");z=g.ct(y.objectStore("media"),f,z)}else z=g.Us.resolve(void 0);var E=dva(a,b.isVideo()),I=dva(a,!b.isVideo()),K={fmts:eva(d),format:c||{}};E=g.ct(y.objectStore("index"),K,E);var P=-1===d.downloadedEndTime;y=P?y.objectStore("index").get(I):g.Us.resolve(void 0);return g.Us.all([y,z,E]).then(function(aa){aa=g.r(aa).next().value;zD--;var J=g.wD(a);4!==J&&P&&void 0!==aa&&g.fva(aa.fmts)&&(J=1,g.xD(a,J));
return J})}),8);
case 8:return x.return(x.u);case 6:t=g.xa(x);zD--;w=g.wD(a);if(4===w)return x.return(w);g.xD(a,4);throw t;}})};
g.gva=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.yD(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.nna(e.objectStore("index"),f).then(function(k){return k.map(function(l){return l?l.format:{}})})}))})};
iva=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.yD(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 hva(e,n)})):m.return(l)})};
g.fva=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
dva=function(a,b){return""+a+"|"+(b?"v":"a")};
cva=function(){};
eva=function(a){var b={};return lr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
kva=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.jva)?(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};
lva=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.TI=VB(a.ustreamerConfig)||void 0)};
g.BD=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.DD=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.CD(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.ED=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.CD=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("")};
pva=function(a,b,c,d){a||(a=b&&mva.hasOwnProperty(b)&&nva.hasOwnProperty(b)?nva[b]+"_"+mva[b]:void 0);b=a;if(!b)return null;a=b.match(ova);if(!a||5!==a.length)return null;if(a=b.match(ova)){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};
rva=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return qva[a];return null};
FD=function(a){return a&&a.baseUrl||""};
GD=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};
sva=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Va=b)};
uva=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=tva(d.baseUrl);if(!e)return;d=new g.BD({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Pw(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.Wv=b.audioTracks||[];a.SQ=b.defaultAudioTrackIndex||0;a.Xv=b.translationLanguages?g.Sl(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Pw(f.languageName)}}):
[];
a.cm=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
vva=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,qk:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,qk:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
qk:0===f?5:7})}}};
wva=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
xva=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)};
Dva=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=yva[c]);(c=a.projectionType)&&(b.projection_type=zva[c]);(c=a.stereoLayout)&&(b.stereo_layout=Ava[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=Bva[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(HD[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=rva(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=Cva[a])&&(b.primaries=a);return g.uj(b)};
ID=function(a){g.iv.call(this);this.j=null;this.B=new nq;this.j=null;this.K=new Set;this.D=a||""};
Eva=function(a,b,c){for(c=JD(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(KD(d,b))&&(d=g.LD(d,b)))return d;c--}return g.LD(a.levels[0],b)};
Gva=function(a,b,c){c=JD(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=KD(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,{DN:f,UN:e}))}Fva(a)};
Fva=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=Hva(a,b)}};
Hva=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=MD(a.levels[b.DN],b.UN);c.onload=function(){var d=b.DN,e=b.UN;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);Fva(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.sD()-1);e=[e,d];a.ea("l",e[0],e[1])};
return c};
g.ND=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};
KD=function(a,b){return Math.floor(b/(a.columns*a.rows))};
MD=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.wj(c,{sigh:a.signature}));return Gw(c)};
g.LD=function(a,b){b>=a.tD()&&a.Np();var c=KD(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Np()+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:MD(a,c),column:b,columns:k,row:e,rows:d,Bx:a.width*k,Sq:a.height*d}};
OD=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;ID.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)};
Iva=function(a,b,c){return(a=a.levels[b])?a.rz(c):-1};
JD=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};
PD=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.ND.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
QD=function(a,b,c,d){OD.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].OJ(c)};
Jva=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.wj(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.SD=function(a,b){g.iv.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.gO=this.vj=this.adQueryId=this.Yl=null;this.Rv={start:NaN,end:NaN};this.ariaLabel="";this.Sd=null;this.oE=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ra="";this.Vv=this.Zl=!1;this.uK=null;this.me=this.xe=this.mj=this.WI=!1;this.J=null;this.YO=this.Zf=!1;this.Pd=NaN;this.ph=!1;this.Ov=0;this.EN=!1;this.Nr={};this.OD=this.cycToken=null;
this.author="";this.Lv=0;this.wj=!1;this.Kv=null;this.SD=[];this.cq=this.XD=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Lb=this.Hb="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Fb=0;this.NN=this.pc=this.u=null;this.nH="";this.Ia=!1;this.wk=this.vk=0;this.Tv=this.pipable=this.wl=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.ob=this.isPrivate=this.isListed=this.oI=this.LP=this.mutedAutoplay=this.Al=
!1;this.VC="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.UI=this.ih=this.gf=!1;this.latencyClass="UNKNOWN";this.iJ=this.yH=this.enablePreroll=this.enableServerStitchedDai=this.oe=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.ub=0;this.reloadReason="";this.VI=this.kJ=this.nf=!1;this.keywords={};this.qb="";this.Ak=0;this.Hp=!1;this.liveChunkReadahead=NaN;this.nh=null;this.Vl=this.lengthSeconds=0;this.playerParams=
this.musicVideoType=null;this.YI=this.paygated=!1;this.Pi=[];this.ra=[];this.racyCheckOk=!1;this.GK={};this.wy=0;this.C=null;this.autonavState=1;this.lL=null;this.shortDescription="";this.fb=this.KD=!1;this.Gp=this.Tb=this.startSeconds=0;this.Yr=this.xQ=this.ej=RD;this.suggestions=null;this.Wl=this.Xl=void 0;this.bj=null;this.MD=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.kq=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.Yv=void 0;this.yk=[];this.hlsFormats=
this.cj="";this.Jr=this.Fp=this.Qf=this.Cb=this.Xa=this.Gk=this.gr=null;this.Ai="vvt";this.Dc=!1;this.UD=null;this.TP="";this.Nk=NaN;this.Is=this.ls=this.Lk=this.hs=this.gs=this.nj=this.Kk=this.Hs=this.Mk=this.qs="";this.sj=null;this.sN=!1;this.S={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.aJ=this.ZI=NaN;this.bd=this.zk=this.Vc=this.hJ=this.bJ=!1;this.Hk=!0;this.Z={};this.captionTracks=[];this.Wv=[];this.SQ=0;this.Xv=[];this.cm=!1;this.xj=new g.Hx("und",new g.hA("Default",
"und",!0));this.XI=0;this.X=null;this.Pr=[];this.dG=!1;this.Pc=[];this.Zr=this.Ub="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.UQ=this.Or=this.zj=this.Cg=this.cG=this.Sv=this.Qv=null;this.Bq=!1;this.ma=null;this.isInlinePlaybackNoAd=this.dg=this.useCobaltWidevine=this.uN=this.Hq=!1;this.JF=!0;this.QK=this.SK=NaN;this.defraggedFromSubfragments=this.ql=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Mv=this.TD=this.Vd=!1;this.interstitials=
[];this.D=this.II=!1;this.Wa="";this.allowImaMonetization=!1;this.xc=this.Bk=this.yK="";this.Ha=this.cJ=!1;this.Qd=0;this.xK=this.Jk="";this.YC=this.XC=this.vH=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Ik=!1;this.Vh=this.Pf=!0;this.errorDetail=this.userGenderAge="";this.QD=this.RD=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=
this.Fj=this.errorReason=this.errorCode=null;this.Rp=this.Qp="";this.yj=!1;this.Ul=[];this.tN=this.WK=this.UK=this.Kg=this.Ie=0;this.fetchType=null;this.HK=!0;this.eO=void 0;this.rP=-1;this.Th=this.Wb=!1;this.Sb=null;this.xa="";this.gh=!1;this.watchUrl=null;this.rr=[];this.visibleOnLoadKeys=[];this.CN=[];this.N("web_player_ux_module_wait")&&this.B.Fb&&this.ra.push("ux");this.Wb=this.N("web_new_autonav_countdown");this.Th=this.N("web_new_big_thumbnail_endscreen");Kva(this,b)};
g.VD=function(a,b,c){b&&b.cpn&&g.Sv(new g.Is("CPN provided in VideoData update",{Oha:b.cpn,eg:a.clientPlaybackNonce,xha:c}));c?(kC(b),Kva(a,b),TD(a)&&UD(a)):(b=b||{},Lva(a,b),Mva(a,b),Nva(a,b),a.ea("dataupdated"))};
Nva=function(a,b){a.fflags=iC(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ra=Gw(c));a.Zl=fC(a.Zl,b.iv_ads_only);a.Vv=fC(a.Vv,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.X_=c;a.isPharma=fC(a.isPharma,b.is_pharma);a.author=iC(a.author,b.author);a.Hb=tva(b.ttsurl)||a.Hb;a.wj=fC(a.wj,b.cc_asr);a.Lb=iC(a.Lb,b.channel_path);a.channelBanner=iC(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=iC(a.profilePicture,c);a.videoCountText=iC(a.videoCountText,b.video_count_text);
a.autonavState=gC(a.autonavState,b.autonav_state,Ova);a.clientPlaybackNonce=iC(a.clientPlaybackNonce,b.cpn);a.subscribed=fC(a.subscribed,b.subscribed);a.rawViewCount=hC(a.rawViewCount,b.view_count);a.shortViewCount=iC(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=iC(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=iC(a.lengthText||"",b.lengthText);a.Oq=iC(a.Oq||"",b.Oq);a.Hn=iC(a.Hn||"",b.Hn);a.title=iC(a.title,b.title);a.subtitle=iC(a.subtitle,b.subtitle);a.expandedTitle=
iC(a.expandedTitle,b.expanded_title);a.expandedSubtitle=iC(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=iC(a.ariaLabel,b.aria_label);a.ypcPreview=iC(a.ypcPreview,b.ypc_preview);a.WD=iC(a.WD,b.ypc_origin);a.Dc=fC(a.Dc,b.ypc_is_premiere_trailer);a.Jk=iC(a.Jk,b.ypc_clickwrap_message);a.paygated=fC(a.paygated,b.paygated);a.sN=fC(a.sN,b.requires_purchase);a.showShareButton=!fC(!a.showShareButton,b.ss);a.Pf=fC(a.Pf,b.showwatchlater);a.Vh=fC(a.Vh,b.shownotifybutton);a.Ik=fC(a.Ik,b.copy_share);a.N("web_player_mutable_event_label")&&
(c=b.el)&&(a.eventLabel=c);if(c=b.keywords)a.keywords=Pva(c.split(","));if(c=b.rvs)a.suggestions=nr(c).map(function(d){return d.playlist||d.list||d.api?new g.rD(a.B,d):new g.sD(a.B,d)});
a.contentCheckOk=fC(a.contentCheckOk,b.cco);a.racyCheckOk=fC(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=fC(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=iC(a.oauthToken,b.oauth_token);a.qb=iC(a.qb,b.kpt);a.visitorData=iC(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=kr(c,"&");a.Kq=iC(a.Kq,b.endscreen_ad_tracking_data);a.sP=fC(a.sP,b.wait_for_vast_info_cards_xml);a.LD=fC(a.LD,b.suppress_creator_endscreen);a.jJ=fC(a.jJ,b.is_trueview_action);a.TN=iC(a.TN,b.tracking_list);
a.Qp=iC(a.Qp,b.clip);a.Rp=iC(a.Rp,b.clipt);Qva(a,b)};
Kva=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.Fj=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.uv(16));a.ob=fC(a.B.ob,b.livemonitor);Lva(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.Zl=!0);q.allowInPlaceSwitch&&(a.Vv=!0);var t=q.loadPolicy;t&&(a.annotationsLoadPolicy=Rva[t]);var w=q.invideoUrl;w&&(a.Ra=Gw(w));a.WI=!0;break}}var x=a.playerResponse.attestation;x&&sva(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.ZI=Number(z.intervalMilliseconds),a.aJ=
Number(z.maxRetries),a.bJ=!!z.softFailOnError,a.hJ=!!z.useInnertubeHeartbeatsForDrm,a.mj=!0);a.heartbeatServerData=z.heartbeatServerData;a.N("heartbeat_iff_heartbeat_params_filled")&&(a.mj=!0);var I;a.ph=!(null==(I=z.heartbeatAttestationConfig)||!I.requiresAttestation)}var K=a.playerResponse.messages;K&&wva(a,K);var P=a.playerResponse.multicamera;if(P){var aa=P.playerLegacyMulticameraRenderer;if(aa){var J=aa.metadataList;J&&(a.xK=J,a.Pc=nr(J))}}var qa=a.playerResponse.overlay;if(qa){var na=qa.playerControlsOverlayRenderer;
if(na){var Ia=na.controlBgHtml;null!=Ia?(a.Wa=Ia,a.D=!0):(a.Wa="",a.D=!1);if(na.mutedAutoplay){var Na=na.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Na&&Na.endScreen){var bc=Na.endScreen.playerMutedAutoplayEndScreenRenderer;bc&&bc.text&&(a.yK=g.Pw(bc.text))}}else a.mutedAutoplay=!1}}var jb=a.playerResponse.playabilityStatus;if(jb){var mc=jb.backgroundability;mc&&mc.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Wb,Id;if(null==(Wb=jb.offlineability)?0:null==(Id=Wb.offlineabilityRenderer)?
0:Id.offlineable)a.offlineable=!0;var Jd=jb.contextParams;Jd&&(a.contextParams=Jd);var kb=jb.pictureInPicture;kb&&kb.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);jb.playableInEmbed&&(a.allowEmbed=!0);var Wc=jb.ypcClickwrap;if(Wc){var wg=Wc.playerLegacyDesktopYpcClickwrapRenderer,Tf=Wc.ypcRentalActivationRenderer;if(wg)a.Jk=wg.durationMessage||"",a.me=!0;else if(Tf){var Wh=Tf.durationMessage;a.Jk=Wh?g.Pw(Wh):"";a.me=!0}}var Vd=jb.errorScreen;if(Vd){if(Vd.playerLegacyDesktopYpcTrailerRenderer){var uc=
Vd.playerLegacyDesktopYpcTrailerRenderer;a.Is=uc.trailerVideoId||"";var lh=Vd.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Cc=lh&&lh.ypcTrailerRenderer}else if(Vd.playerLegacyDesktopYpcOfferRenderer)uc=Vd.playerLegacyDesktopYpcOfferRenderer;else if(Vd.ypcTrailerRenderer){Cc=Vd.ypcTrailerRenderer;var hj=Cc.fullVideoMessage;a.Kk=hj?g.Pw(hj):""}uc&&(a.Lk=uc.itemTitle||"",uc.itemUrl&&(a.ls=uc.itemUrl),uc.itemBuyUrl&&(a.gs=uc.itemBuyUrl),a.hs=uc.itemThumbnail||"",a.Hs=uc.offerHeadline||"",a.Mk=
uc.offerDescription||"",a.nj=uc.offerId||"",a.qs=uc.offerButtonText||"",a.UD=uc.offerButtonFormattedText||null,a.Nk=uc.overlayDurationMsec||NaN,a.Kk=uc.fullVideoMessage||"",a.xe=!0);if(Cc){var Xh=Cc.unserializedPlayerResponse;if(Xh)a.sj={raw_player_response:Xh};else{var ij=Cc.playerVars;a.sj=ij?mr(ij):null}a.xe=!0}}}var Dc=a.playerResponse.playbackTracking;if(Dc){var Ne=b,xg=FD(Dc.googleRemarketingUrl);xg&&(a.googleRemarketingUrl=xg);var Yh=FD(Dc.youtubeRemarketingUrl);Yh&&(a.youtubeRemarketingUrl=
Yh);var jj=FD(Dc.ptrackingUrl);if(jj){var ud=GD(jj),kj=ud.oid;kj&&(a.EK=kj);var oe=ud.pltype;oe&&(a.FK=oe);var Xc=ud.ptchn;Xc&&(a.DK=Xc);var $e=ud.ptk;$e&&(a.Kr=encodeURIComponent($e));var mh=ud.m;mh&&(a.Jq=mh)}var tf=FD(Dc.ppvRemarketingUrl);tf&&(a.ppvRemarketingUrl=tf);var Zh=FD(Dc.qoeUrl);if(Zh){for(var Uf=g.or(Zh),Lk=g.r(Object.keys(Uf)),Zl=Lk.next();!Zl.done;Zl=Lk.next()){var nh=Zl.value,Mk=Uf[nh];Uf[nh]=Array.isArray(Mk)?Mk.join(","):Mk}a.xP=Uf;var lj=Uf.cat;lj&&(a.Bk=lj);var mj=Uf.live;mj&&
(a.VC=mj);var Xb=Uf.drm_product;Xb&&(a.oE=Xb)}var Oe=FD(Dc.remarketingUrl);if(Oe){a.remarketingUrl=Oe;var Nk=GD(Oe);Nk.foc_id&&(a.S.focEnabled=!0);var Kn=Nk.data;Kn&&(a.S.rmktEnabled=!0,Kn.engaged&&(a.S.engaged="1"));a.S.baseUrl=Aca(Oe)+bj(g.dj(5,Oe))}var Ln=FD(Dc.videostatsPlaybackUrl);if(Ln){var Ec=GD(Ln);a.OK=Ec;var Ok=Ec.adformat;if(Ok&&(Ne.adformat=Ok,!a.N("process_video_data_ad_format_in_player_tracking_killswitch"))){var nj=a.V(),oj=pva(Ok,a.Zr,nj.j,nj.B);oj&&(a.adFormat=oj)}var Mn=Ec.aqi;
Mn&&(Ne.ad_query_id=Mn);var Nn=Ec.autoplay;Nn&&(a.Al="1"==Nn);var pj=Ec.autonav;pj&&(a.wl="1"==pj);var uf=Ec.delay;uf&&(a.Fb=Lh(uf));var Pk=Ec.ei;Pk&&(a.eventId=Pk);"adunit"===Ec.el&&(a.Al=!0);var qj=Ec.feature;qj&&(a.rN=qj);var oh=Ec.list;oh&&(a.playlistId=oh);var $l=Ec.of;$l&&(a.T_=$l);var On=Ec.osid;On&&(a.osid=On);var ph=Ec.referrer;ph&&(a.referrer=ph);var Pn=Ec.sdetail;Pn&&(a.jM=Pn);var pe=Ec.sourceid;pe&&(a.S6=pe);var Qn=Ec.ssrt;Qn&&(a.Nv="1"==Qn);var Rn=Ec.subscribed;Rn&&(a.subscribed="1"==
Rn,a.S.subscribed=Rn);var ld=Ec.uga;ld&&(a.userGenderAge=ld);var Sn=Ec.upt;Sn&&(a.W_=Sn);var Tn=Ec.vm;Tn&&(a.videoMetadata=Tn)}var rj=FD(Dc.videostatsWatchtimeUrl);if(rj){var yg=GD(rj).ald;yg&&(a.o_=yg)}if(Dc.promotedPlaybackTracking){var Wd=Dc.promotedPlaybackTracking;Wd.startUrls&&(a.Qr=Wd.startUrls);Wd.firstQuartileUrls&&(a.cD=Wd.firstQuartileUrls);Wd.secondQuartileUrls&&(a.dD=Wd.secondQuartileUrls);Wd.thirdQuartileUrls&&(a.eD=Wd.thirdQuartileUrls);Wd.completeUrls&&(a.bD=Wd.completeUrls);Wd.engagedViewUrls&&
(1<Wd.engagedViewUrls.length&&g.Sv(new g.Is("There are more than one engaged_view_urls.")),a.pd=Wd.engagedViewUrls[0])}}a:{var am=a.playerResponse.adPlacements;if(am)for(var bm=g.r(am),Qk=bm.next();!Qk.done;Qk=bm.next()){var Rk=Qk.value;if(Rk.adPlacementRenderer&&Rk.adPlacementRenderer.renderer&&Rk.adPlacementRenderer.renderer.videoAdTrackingRenderer){var cm=Rk.adPlacementRenderer.renderer.videoAdTrackingRenderer;break a}}cm=null}var Un=cm;Dc&&Dc.promotedPlaybackTracking&&Un&&g.Sv(new g.Is("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
Un&&(a.YI=!0);var Vn=a.playerResponse.playerAds;if(Vn)for(var Wn=b,sj=g.r(Vn),wv=sj.next();!wv.done;wv=sj.next()){var xv=wv.value;if(xv){var eB=xv.playerLegacyDesktopWatchAdsRenderer;if(eB){var rm=eB.playerAdParams;if(rm){"1"==rm.autoplay&&(a.Al=!0);a.vj=rm.encodedAdSafetyReason||null;void 0!==rm.showContentThumbnail&&(a.Hk=!!rm.showContentThumbnail);Wn.enabled_engage_types=rm.enabledEngageTypes;break}}}}var ve=a.playerResponse.playerConfig;if(ve){var sm=ve.manifestlessWindowedLiveConfig;if(sm){var fB=
Number(sm.minDvrSequence),gB=Number(sm.maxDvrSequence),hB=Number(sm.minDvrMediaTimeMs),iB=Number(sm.maxDvrMediaTimeMs),jB=Number(sm.startWalltimeMs);fB&&(a.Ie=fB);hB&&(a.WK=hB/1E3);gB&&(a.Kg=gB);iB&&(a.UK=iB/1E3);jB&&(a.tN=jB/1E3)}var xo=ve.daiConfig;if(xo){if(xo.enableDai){a.oe=!0;var kB=xo.enableServerStitchedDai;kB&&(a.enableServerStitchedDai=kB);var lB=xo.enablePreroll;lB&&(a.enablePreroll=lB)}"DAI_TYPE_SS_DISABLED"===xo.daiType&&(a.yH=!0)}var xr=ve.audioConfig;if(xr){var yv=xr.loudnessDb;null!=
yv&&(a.Pd=yv);xr.audioMuted&&(a.Zf=!0);xr.muteOnStart&&(a.YO=!0)}var mB=ve.playbackEndConfig;if(mB){var nB=mB.endSeconds;nB&&a.mutedAutoplay&&(a.endSeconds=nB)}var yr=ve.fairPlayConfig;if(yr){var oB=yr.certificate;oB&&(a.pc=VB(oB));var zr=Number(yr.keyRotationPeriodMs);0<zr&&(a.P_=zr);var pB=Number(yr.keyPrefetchMarginMs);0<pB&&(a.A_=pB)}var tm=ve.playbackStartConfig;if(tm){a.YC=Number(tm.startSeconds);var zv=tm.liveUtcStartSeconds,um=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;zv&&!um&&(a.liveUtcStartSeconds=
Number(zv));var Av=tm.startPosition;if(Av){var Dja=Av.utcTimeMillis;Dja&&!um&&(a.liveUtcStartSeconds=.001*Number(Dja));var Eja=Av.streamTimeMillis;Eja&&(a.Gp=.001*Number(Eja))}a.progressBarStartPosition=tm.progressBarStartPosition;a.progressBarEndPosition=tm.progressBarEndPosition}else{var FX=ve.skippableSegmentsConfig;if(FX){var Fja=FX.introSkipDurationMs;Fja&&(a.vH=Number(Fja)/1E3);var Gja=FX.outroSkipDurationMs;Gja&&(a.XC=Number(Gja)/1E3)}}var GX=ve.skippableIntroConfig;if(GX){var Hja=Number(GX.startMs),
Ija=Number(GX.endMs);isNaN(Hja)||isNaN(Ija)||(a.SK=Hja,a.QK=Ija)}var Jja=ve.streamSelectionConfig;Jja&&(a.wk=Number(Jja.maxBitrate));var Kja=ve.vrConfig;Kja&&(a.Hq="1"==Kja.partialSpherical);var qB=ve.webDrmConfig;if(qB){qB.skipWidevine&&(a.uN=!0);var Lja=qB.widevineServiceCert;Lja&&(a.NN=VB(Lja));qB.useCobaltWidevine&&(a.useCobaltWidevine=!0);qB.startWithNoQualityConstraint&&(a.dg=!0)}var Mja=ve.mediaCommonConfig;if(Mja){var TJ=Mja.dynamicReadaheadConfig;TJ&&(a.maxReadAheadMediaTimeMs=TJ.maxReadAheadMediaTimeMs||
NaN,a.minReadAheadMediaTimeMs=TJ.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=TJ.readAheadGrowthRateMs||NaN)}var Nja=ve.inlinePlaybackConfig;Nja&&(a.JF=!!Nja.showAudioControls)}var vm=a.playerResponse.streamingData;if(vm){var Oja=vm.adaptiveFormats;if(Oja){for(var Pja=[],Qja=g.r(Oja),Ij=Qja.next();!Ij.done;Ij=Qja.next()){var UJ=Ij.value;Pja.push(Dva(UJ));var Rja=UJ.loudnessDb;UJ.itag&&null!=Rja&&(a.Nr[UJ.itag.toString()]=Rja)}a.adaptiveFormats=Pja.join(",")}var HX=vm.formats;if(HX){var rB=
[],Sja=g.r(HX);for(Ij=Sja.next();!Ij.done;Ij=Sja.next()){var IX=Ij.value;rB.push(IX.itag+"/"+IX.width+"x"+IX.height)}a.nH=rB.join(",");rB=[];var Tja=g.r(HX);for(Ij=Tja.next();!Ij.done;Ij=Tja.next()){var Bv=Ij.value,sB={itag:Bv.itag,type:Bv.mimeType,quality:Bv.quality},Uja=Bv.url;Uja&&(sB.url=Uja);var Vja=Bv.cipher||Bv.signatureCipher;if(Vja){var JX=mr(Vja);sB.sp=JX.sp;sB.s=JX.s;sB.url=JX.url}rB.push(g.uj(sB))}a.cj=rB.join(",")}var KX=vm.hlsFormats;if(KX){var Wja=ve||null,VJ={};if(Wja){var LX=Wja.audioPairingConfig;
if(LX&&LX.pairs)for(var Xja=g.r(LX.pairs),MX=Xja.next();!MX.done;MX=Xja.next()){var Yja=MX.value,NX=Yja.videoItag;VJ[NX]||(VJ[NX]=[]);VJ[NX].push(Yja.audioItag)}}for(var Zja={},$ja=g.r(KX),Ar=$ja.next();!Ar.done;Ar=$ja.next()){var aka=Ar.value;Zja[aka.itag]=aka.bitrate}var bka=[],cka=g.r(KX);for(Ar=cka.next();!Ar.done;Ar=cka.next()){var Ag=Ar.value,Xk={itag:Ag.itag,type:Ag.mimeType,url:Ag.url,bitrate:Ag.bitrate,width:Ag.width,height:Ag.height,fps:Ag.fps},WJ=Ag.audioTrack;if(WJ){var dka=WJ.displayName;
dka&&(Xk.name=dka,Xk.audio_track_id=WJ.id,WJ.audioIsDefault&&(Xk.is_default="1"))}if(Ag.drmFamilies){for(var eka=[],fka=g.r(Ag.drmFamilies),OX=fka.next();!OX.done;OX=fka.next())eka.push(HD[OX.value]);Xk.drm_families=eka.join(",")}var XJ=VJ[Ag.itag];if(XJ&&XJ.length){Xk.audio_itag=XJ.join(",");var gka=Zja[XJ[0]];gka&&(Xk.bitrate+=gka)}var hka=rva(Ag);hka&&(Xk.eotf=hka);Ag.audioChannels&&(Xk.audio_channels=Ag.audioChannels);bka.push(g.uj(Xk))}a.hlsFormats=bka.join(",")}var PX=vm.licenseInfos;if(PX&&
0<PX.length){for(var ika={},jka=g.r(PX),QX=jka.next();!QX.done;QX=jka.next()){var kka=QX.value,lka=kka.drmFamily,mka=kka.url;lka&&mka&&(ika[HD[lka]]=mka)}a.Sd=ika}var nka=vm.drmParams;nka&&(a.drmParams=nka);var oka=vm.dashManifestUrl;oka&&(a.ib=g.wj(oka,{cpn:a.clientPlaybackNonce}));var pka=vm.hlsManifestUrl;pka&&(a.hlsvp=pka);var qka=vm.probeUrl;qka&&(a.probeUrl=Gw(g.wj(qka,{cpn:a.clientPlaybackNonce})))}var rka=a.playerResponse.trackingParams;rka&&(a.va=rka);var Gc=a.playerResponse.videoDetails;
if(Gc){var Yk=b,RX=Gc.videoId;RX&&(a.videoId=RX,Yk.video_id||(Yk.video_id=RX));var ska=Gc.channelId;ska&&(a.S.uid=ska.substr(2));var SX=Gc.title;SX&&(a.title=SX,Yk.title||(Yk.title=SX));var TX=Gc.lengthSeconds;TX&&(a.lengthSeconds=Number(TX),Yk.length_seconds||(Yk.length_seconds=TX));var tka=Gc.keywords;tka&&(a.keywords=Pva(tka));var UX=Gc.channelId;UX&&(a.rj=UX,Yk.ucid||(Yk.ucid=UX));var uka=Gc.viewCount;uka&&(a.rawViewCount=Number(uka));var VX=Gc.author;VX&&(a.author=VX,Yk.author||(Yk.author=VX));
var vka=Gc.shortDescription;vka&&(a.shortDescription=vka);var wka=Gc.isCrawlable;wka&&(a.isListed=wka);var xka=Gc.musicVideoType;xka&&(a.musicVideoType=xka);var WX=Gc.isLive;null!=WX&&(a.isLivePlayback=WX);if(WX||Gc.isUpcoming)a.isPremiere=!Gc.isLiveContent;var yka=Gc.thumbnail;yka&&(a.Z=qD(yka));var zka=ve||null,XX=b;Gc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Gc.isUpcoming&&(a.isUpcoming=!0);if(Gc.isPostLiveDvr)a.gf=!0;else{var YX=!1;if(a.ob)a.allowLiveDvr=WD(a,!0),a.isLivePlayback=
!0;else if(Gc.isLive){XX.livestream="1";a.allowLiveDvr=WD(a,!!Gc.isLiveDvrEnabled);a.Da=27;Gc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Aka=Gc.latencyClass;Aka&&(a.latencyClass=Sva[Aka]||"UNKNOWN");var Bka=Gc.liveChunkReadahead;Bka&&(a.liveChunkReadahead=Bka);var tB=zka&&zka.livePlayerConfig;if(tB){tB.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);tB.hasSubfragmentedWebm&&(a.ql=!0);tB.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Cka=tB.liveExperimentalContentId;
Cka&&(a.liveExperimentalContentId=Number(Cka))}YX=!0}else Gc.isUpcoming&&(YX=!0);YX&&(a.isLivePlayback=!0,XX.adformat&&"8"!==XX.adformat.split("_")[1]||a.ra.push("heartbeat"),a.N("heartbeat_iff_heartbeat_params_filled")||(a.mj=!0))}var Dka=Gc.isPrivate;Dka&&(a.isPrivate=fC(a.isPrivate,Dka))}if(jb){var Eka=Gc||null,Fka=!1,Cv=jb.errorScreen;Fka=Cv&&(Cv.playerLegacyDesktopYpcOfferRenderer||Cv.playerLegacyDesktopYpcTrailerRenderer||Cv.ypcTrailerRenderer)?!0:Eka&&Eka.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE",
"FULLSCREEN_ONLY"].includes(jb.status);if(!Fka){a.errorCode="150";var YJ=Cv&&Cv.playerErrorMessageRenderer;if(YJ){a.playerErrorMessageRenderer=YJ;var Gka=YJ.reason;Gka&&(a.errorReason=g.Pw(Gka));var $X=YJ.subreason;$X&&(a.Fj=g.Pw($X),a.Mq=$X)}else a.errorReason=jb.reason||null;var aY=jb.status;if("LOGIN_REQUIRED"===aY)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===aY)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===aY){var Hka=jb.errorScreen,Ika=Hka&&Hka.playerKavRenderer;a.errorDetail=Ika&&
Ika.kavUrl?"4":"3"}else a.errorDetail=jb.isBlockedInRestrictedMode?"5":"0"}}var Jka=a.playerResponse.interstitialPods;Jka&&vva(a,Jka);a.Ra&&a.eventId&&(a.Ra=qr(a.Ra,{ei:a.eventId}));var bY=a.playerResponse.captions;bY&&bY.playerCaptionsTracklistRenderer&&uva(a,bY.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.YC=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&
a.accountLinkingConfig.alsParam&&(a.MK=a.accountLinkingConfig.alsParam);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&xva(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}Mva(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Kka=b.hlsdvr;null!=Kka&&(a.allowLiveDvr=WD(a,"1"==Kka));a.adQueryId=b.ad_query_id||null;a.vj||(a.vj=b.encoded_ad_safety_reason||null);
a.gO=b.agcid||null;a.Qv=b.ad_id||null;a.Sv=b.ad_sys||null;a.cG=b.encoded_ad_playback_context||null;a.Zf=fC(a.Zf,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=fC(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");a.endSeconds=hC(a.endSeconds,a.XC||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=hC(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.va=iC(a.va,b.itct);a.oI=fC(a.oI,b.noiba);a.UI=fC(a.UI,b.is_live_destination);
a.isLivePlayback=fC(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=fC(a.isUpcoming,b.isUpcoming));a.gf=fC(a.gf,b.post_live_playback);a.isMdxPlayback=fC(a.isMdxPlayback,b.mdx);var ZJ=b.mdx_control_mode;ZJ&&(a.mdxControlMode="number"===typeof ZJ?ZJ:Lh(ZJ));a.isInlinePlaybackNoAd=fC(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.ub=hC(a.ub,b.reload_count);a.reloadReason=iC(a.reloadReason,b.reload_reason);a.Hk=
fC(a.Hk,b.show_content_thumbnail);a.VI=fC(a.VI,b.utpsa);a.MD=fC(a.MD,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.OD=b.tkn||null;var Lka=pD(b);0<Object.keys(Lka).length&&(a.Z=Lka);a.Qa=iC(a.Qa,b.vvt);a.mdxEnvironment=iC(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.eR=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=iC(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?
hC(0,b.index):hC(a.playlistIndex,b.index));a.TK=b.pyv_view_beacon_url;a.nL=b.pyv_quartile25_beacon_url;a.AL=b.pyv_quartile50_beacon_url;a.SL=b.pyv_quartile75_beacon_url;a.XK=b.pyv_quartile100_beacon_url;var Mka=b.remarketing_url;Mka&&(a.remarketingUrl=Mka);var Nka=b.ppv_remarketing_url;Nka&&(a.ppvRemarketingUrl=Nka);var Oka=b.session_data;!a.EM&&Oka&&(a.EM=kr(Oka,"&").feature);a.isFling=1==hC(a.isFling?1:0,b.is_fling);a.vnd=hC(a.vnd,b.vnd);a.fh=iC(a.fh,b.force_ads_url);a.vg=iC(a.vg,b.ctrl);a.Og=iC(a.Og,
b.ytr);a.hm=b.ytrcc;a.VM=b.ytrexp;a.ID=b.ytrext;a.Ub=iC(a.Ub,b.adformat);a.Zr=iC(a.Zr,b.attrib);a.slotPosition=hC(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Nv=fC(a.Nv,b.ssrt);a.videoId=kC(b)||a.videoId;a.K=iC(a.K,b.vss_credentials_token);a.Ai=iC(a.Ai,b.vss_credentials_token_type);a.Vd=fC(a.Vd,b.audio_only);a.TD=fC(a.TD,b.aac_high);a.Mv=fC(a.Mv,b.prefer_low_quality_audio);a.Bk=iC(a.Bk,b.qoe_cat);a.yj=fC(a.yj,b.download_media);a.Ha=fC(a.Ha,b.prefer_gapless);a:{var cY=a.playerResponse;if(cY&&
cY.adPlacements)for(var Pka=g.r(cY.adPlacements),dY=Pka.next();!dY.done;dY=Pka.next()){var $J=dY.value.adPlacementRenderer;if(null!=$J&&"AD_PLACEMENT_KIND_START"==($J.config&&$J.config.adPlacementConfig&&$J.config.adPlacementConfig.kind)){var Qka=!0;break a}}Qka=!1}Qka&&(a.adModule=!0,a.ra.push("ad"));var Rka=b.adaptive_fmts;Rka&&(a.adaptiveFormats=Rka);var Ska=b.allow_embed;Ska&&(a.allowEmbed="1"==Ska);var Tka=b.backgroundable;Tka&&(a.backgroundable="1"==Tka);var Uka=b.autonav;Uka&&(a.wl="1"==Uka);
var Vka=b.autoplay;Vka&&(a.Al="1"==Vka);var Wka=b.iv_load_policy;Wka&&(a.annotationsLoadPolicy=gC(a.annotationsLoadPolicy,Wka,CC));var Xka=b.cc_lang_pref;Xka&&(a.captionsLanguagePreference=iC(Xka,a.captionsLanguagePreference));var Yka=b.cc_load_policy;Yka&&(a.Kv=gC(a.Kv,Yka,CC));var Zka;a.deviceCaptionsOn=null!=(Zka=b.device_captions_on)?Zka:void 0;var $ka;a.TQ=null!=($ka=b.device_captions_lang_pref)?$ka:"";var ala;a.SD=null!=(ala=b.viewer_selected_caption_langs)?ala:[];var bla=b.cached_load;bla&&
(a.cq=fC(a.cq,bla));"0"==b.dash&&(a.XD=!0);var dla=b.dashmpd;dla&&(a.ib=g.wj(dla,{cpn:a.clientPlaybackNonce}));var ela=b.delay;ela&&(a.Fb=Lh(ela));var fla=a.XC||b.end;void 0!=fla&&(a.clipEnd=hC(a.clipEnd,fla));var gla=b.fmt_list;gla&&(a.nH=gla);b.heartbeat_preroll&&a.ra.push("heartbeat");a.vk=-Math.floor(10*Math.random());a.Vl=-Math.floor(40*Math.random());var hla=b.is_listed;hla&&(a.isListed=fC(a.isListed,hla));var ila=b.is_private;ila&&(a.isPrivate=fC(a.isPrivate,ila));var jla=b.is_dni;jla&&(a.D=
fC(a.D,jla));var kla=b.dni_color;kla&&(a.Wa=iC(a.Wa,kla));var lla=b.pipable;lla&&(a.pipable=fC(a.pipable,lla));a.Tv=a.pipable&&a.B.Zl;a.KD=a.Tv&&(!a.B.showMiniplayerButton||a.N("web_player_pip"));var mla=b.paid_content_overlay_duration_ms;mla&&(a.paidContentOverlayDurationMs=Lh(mla));var nla=b.paid_content_overlay_text;nla&&(a.paidContentOverlayText=nla);var ola=b.url_encoded_fmt_stream_map;ola&&(a.cj=ola);var pla=b.hls_formats;pla&&(a.hlsFormats=pla);var qla=b.hlsvp;qla&&(a.hlsvp=qla);var aK=b.length_seconds;
aK&&(a.lengthSeconds="string"===typeof aK?Lh(aK):aK);var bK=b.live_start_walltime;bK&&(a.WC="number"===typeof bK?bK:Lh(bK));var cK=b.live_manifest_duration;cK&&(a.nh="number"===typeof cK?cK:Lh(cK));var rla=b.player_params;rla&&(a.playerParams=rla);var sla=b.partnerid;sla&&(a.Da=hC(a.Da,sla));var tla=b.probe_url;tla&&(a.probeUrl=Gw(g.wj(tla,{cpn:a.clientPlaybackNonce})));var eY=b.pyv_billable_url;eY&&qqa(eY)&&(a.pd=eY);var fY=b.pyv_conv_url;fY&&qqa(fY)&&(a.VK=fY);Qva(a,b);0<a.startSeconds||(a.startSeconds=
hC(a.startSeconds,a.YC||a.vH||b.start||b.startSeconds),a.Tb=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var ula=b.live_utc_start;if(null!=ula)a.liveUtcStartSeconds=Number(ula);else{var gY=a.startSeconds;gY&&isFinite(gY)&&1E9<gY&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var vla=b.utc_start_millis;vla&&(a.liveUtcStartSeconds=.001*Number(vla))}var wla=b.stream_time_start_millis;wla&&(a.Gp=.001*Number(wla));var xla=a.vH||b.start;
void 0==xla||"1"==b.resume||a.isLivePlayback||(a.clipStart=hC(a.clipStart,xla));var yla=b.url_encoded_third_party_media;yla&&(a.bj=nr(yla));var hY=b.ypc_offer_button_formatted_text;if(hY){var zla=JSON.parse(hY);a.UD=null!=zla?zla:null;a.TP=hY}var Ala=b.ypc_offer_button_text;Ala&&(a.qs=Ala);var Bla=b.ypc_offer_description;Bla&&(a.Mk=Bla);var Cla=b.ypc_offer_headline;Cla&&(a.Hs=Cla);var Dla=b.ypc_full_video_message;Dla&&(a.Kk=Dla);var Ela=b.ypc_offer_id;Ela&&(a.nj=Ela);var Fla=b.ypc_buy_url;Fla&&(a.gs=
Fla);var Gla=b.ypc_item_thumbnail;Gla&&(a.hs=Gla);var Hla=b.ypc_item_title;Hla&&(a.Lk=Hla);var Ila=b.ypc_item_url;Ila&&(a.ls=Ila);var Jla=b.ypc_vid;Jla&&(a.Is=Jla);b.ypc_overlay_timeout&&(a.Nk=Number(b.ypc_overlay_timeout));var Kla=b.ypc_trailer_player_vars;Kla&&(a.sj=mr(Kla));var Lla=b.ypc_original_itct;Lla&&(a.nR=Lla);a.rj=iC(a.rj,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=fC(a.S.focEnabled,b.focEnabled);a.S.rmktEnabled=fC(a.S.rmktEnabled,b.rmktEnabled);a.Fp=b.storyboard_spec||null;a.Jr=b.live_storyboard_spec||null;a.uK=b.iv_endscreen_url||null;a.WI=fC(a.WI,b.iv3_module);a.mj=fC(a.mj,b.ypc_license_checker_module);a.xe=fC(a.xe,b.ypc_module);a.me=fC(a.me,b.ypc_clickwrap_module);a.xe&&a.ra.push("ypc");a.me&&a.ra.push("ypc_clickwrap");a.GK={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};Nva(a,b);var Mla=b.cotn;Mla&&(a.cotn=Mla);if(Tva(a))XD(a)&&(a.isLivePlayback&&a.ib&&(a.Vc=!0),a.pc&&(a.zk=!0));
else if(Uva(a))a.Vc=!0;else{var Qla=Vva(a,a.adaptiveFormats);if(Qla){YD(a,Qla);var Rla=!0}else Rla=!1;Rla?a.N("html5_disable_manifestfull_ssdai_killswitch")||(a.enableServerStitchedDai=a.enableServerStitchedDai&&ZD(a)):a.ib&&(a.Vc=!0)}var jY=b.adpings;jY&&(a.Yl=jY?mr(jY):null);var Sla=b.feature;Sla&&(a.rN=Sla);var Tla=b.referrer;Tla&&(a.referrer=Tla);a.clientScreenNonce=iC(a.clientScreenNonce,b.csn);a.wy=hC(a.wy,b.root_ve_type);a.Ak=hC(a.Ak,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=
b.kids_app_info);a.Hp=fC(a.Hp,b.upg_content_filter_mode);var Ula=b.unplugged_location_info;Ula&&(a.ma=Ula);var Vla=b.unplugged_partner_opt_out;Vla&&(a.Pv=iC("",Vla));a.Bq=fC(a.Bq,b.disable_watch_next);a.Aj=iC(a.Aj,b.internal_ip_override);a.II=!!b.is_yto_interstitial;(a.interstitials.length||a.II)&&a.ra.push("yto");var Wla=b.Pi;Wla&&(a.Pi=Wla);b.oC&&(a.oC=b.oC);var Xla;a.xa=null!=(Xla=b.csi_timer)?Xla:"";a.gh=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.N("html5_attach_watch_endpoint_ustreamer_config")&&
b.watch_endpoint&&Wva(a,b.watch_endpoint)};
Mva=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=hC(0,b.autoplay_count);if(f.autoplay&&f.autoplay.autoplay&&!f.playlist){var l=f.autoplay.autoplay.sets,m={},n=new g.sD(a.B),p=null,q;if(l){for(var t=g.r(l),w=t.next();!w.done;w=t.next()){var x=w.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.Pw(z));var E=p.title;E&&(n.title=g.Pw(E))}else{var I,K;if(null==(I=q)?0:null==(K=I.watchEndpoint)?0:K.videoId)n.videoId=q.watchEndpoint.videoId}n.Dw=m;a.suggestions=[n]}}var P=e.twoColumnWatchNextResults}var aa,J;a.aR=!!(null==(aa=P)?0:null==(J=aa.autoplay)?0:J.autoplay);var qa=a.watchNextResponse.playerOverlays;
if(qa){var na=qa.playerOverlayRenderer;if(na){var Ia=na.autonavToggle;Ia&&(a.autoplaySwitchButtonRenderer=Ia.autoplaySwitchButtonRenderer,a.N("web_player_autonav_use_server_provided_state")&&$D(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var Na=na.endScreen;if(Na){var bc=Na.watchNextEndScreenRenderer;if(bc)var jb=bc.results}var mc=na.videoDetails;if(mc){var Wb=mc.embeddedPlayerOverlayVideoDetailsRenderer;var Id=mc.musicEmbeddedPlayerOverlayVideoDetailsRenderer;Id&&(a.CG=Id.title,
a.qG=Id.byline);var Jd=mc.playerOverlayVideoDetailsRenderer;Jd&&(Jd.title&&(b.title=g.Pw(Jd.title)),Jd.subtitle&&(b.subtitle=g.Pw(Jd.subtitle)))}var kb=na.actions;if(kb)for(var Wc=g.r(kb),wg=Wc.next();!wg.done;wg=Wc.next()){var Tf=wg.value;Tf.likeButtonRenderer&&(a.likeButtonRenderer=Tf.likeButtonRenderer)}var Wh,Vd,uc=null==(Wh=na.suggestedActionsRenderer)?void 0:null==(Vd=Wh.suggestedActionsRenderer)?void 0:Vd.suggestedActions;if(uc)for(var lh=g.r(uc),Cc=lh.next();!Cc.done;Cc=lh.next()){var hj=
Cc.value,Xh=void 0,ij=void 0;if(null==(Xh=hj.suggestedActionRenderer)?0:null==(ij=Xh.trigger)?0:ij.suggestedActionTimeRangeTrigger)a.suggestedAction=hj.suggestedActionRenderer}var Dc,Ne=null==(Dc=na.decoratedPlayerBarRenderer)?void 0:Dc.decoratedPlayerBarRenderer;if(Ne){var xg;a.multiMarkersPlayerBarRenderer=null==(xg=Ne.playerBar)?void 0:xg.multiMarkersPlayerBarRenderer;var Yh,jj;a.Yv=null==(Yh=Ne.playerBar)?void 0:null==(jj=Yh.chapteredPlayerBarRenderer)?void 0:jj.chapters;var ud;a.iR=null==(ud=
Ne.playerBarActionButton)?void 0:ud.buttonRenderer}g.wC(a.B)&&(a.Pf=!!na.addToMenu);Xva(a,na.shareButton);var kj=na.productsInVideoOverlayRenderer;kj&&(a.shoppingOverlayRenderer=kj.shoppingOverlayRenderer);var oe=na.autoplay;if(oe)var Xc=oe.playerOverlayAutoplayRenderer;a.progressBarStartPosition=na.startPosition;a.progressBarEndPosition=na.endPosition}}if(!jb&&P){var $e=P.endScreen&&P.endScreen.endScreen;$e&&(jb=$e.results)}if(P){var mh=P.desktopOverlay&&P.desktopOverlay.desktopOverlayConfigRenderer;
mh&&(mh.suppressShareButton&&(a.showShareButton=!1),mh.suppressWatchLaterButton&&(a.Pf=!1))}Wb&&Yva(a,b,Wb);var tf=hC(0,b.autoplay_count);if(jb){for(var Zh=P||null,Uf=Xc||null,Lk=[],Zl=!0,nh=g.r(jb),Mk=nh.next();!Mk.done;Mk=nh.next()){var lj=Mk.value,mj=void 0,Xb=null;if(lj.endScreenVideoRenderer){var Oe=lj.endScreenVideoRenderer,Nk=Oe.title;Xb=new g.sD(a.B);Xb.videoId=Oe.videoId;Xb.lengthSeconds=Oe.lengthInSeconds||0;var Kn=Oe.publishedTimeText;Kn&&(Xb.publishedTimeText=g.Pw(Kn));var Ln=Oe.shortBylineText;
Ln&&(Xb.author=g.Pw(Ln));var Ec=Oe.shortViewCountText;Ec&&(Xb.shortViewCount=g.Pw(Ec));if(Nk){Xb.title=g.Pw(Nk);var Ok=Nk.accessibility;if(Ok){var nj=Ok.accessibilityData;nj&&nj.label&&(Xb.ariaLabel=nj.label)}}var oj=Oe.navigationEndpoint;if(oj){mj=oj.clickTrackingParams;var Mn=oj.watchEndpoint;Mn?Xb.Ew=Mn:oj.urlEndpoint&&(Xb.watchUrl=oj.urlEndpoint.url)}var Nn=Oe.thumbnailOverlays;if(Nn)for(var pj=g.r(Nn),uf=pj.next();!uf.done;uf=pj.next()){var Pk=uf.value.thumbnailOverlayTimeStatusRenderer;if(Pk)if("LIVE"===
Pk.style){Xb.isLivePlayback=!0;break}else if("UPCOMING"===Pk.style){Xb.isUpcoming=!0;break}}Xb.Z=qD(Oe.thumbnail)}else if(lj.endScreenPlaylistRenderer){var qj=lj.endScreenPlaylistRenderer,oh=qj.navigationEndpoint;if(!oh)continue;var $l=oh.watchEndpoint;if(!$l)continue;var On=$l.videoId;Xb=new g.rD(a.B);Xb.playlistId=qj.playlistId;Xb.playlistLength=Number(qj.videoCount)||0;Xb.j=On||null;Xb.videoId=On;var ph=qj.title;ph&&(Xb.title=g.Pw(ph));var Pn=qj.shortBylineText;Pn&&(Xb.author=g.Pw(Pn));mj=oh.clickTrackingParams;
Xb.Z=qD(qj.thumbnail)}Xb&&(mj&&(Xb.sessionData={itct:mj}),Zl?(Zva(Xb,Zh,Uf,tf),Lk.splice(0,0,Xb),Zl=!1):Lk.push(Xb))}a.suggestions=Lk}if(Xc){a.HK=!!Xc.preferImmediateRedirect;a.Wb=a.Wb||!!Xc.webShowNewAutonavCountdown;a.Th=a.Th||!!Xc.webShowBigThumbnailEndscreen;if(a.Wb||a.Th){var pe=Xc,Qn=jb||null,Rn=P||null,ld=new g.sD(a.B);ld.videoId=pe.videoId;var Sn,Tn,rj=null==Qn?void 0:null==(Sn=Qn[0])?void 0:null==(Tn=Sn.endScreenVideoRenderer)?void 0:Tn.navigationEndpoint;if(rj){var yg=rj.clickTrackingParams;
yg&&(ld.sessionData={itct:yg})}var Wd=pe.videoTitle;if(Wd){ld.title=g.Pw(Wd);var am=Wd.accessibility;if(am){var bm=am.accessibilityData;bm&&bm.label&&(ld.ariaLabel=bm.label)}}var Qk=pe.byline;Qk&&(ld.author=g.Pw(Qk));var Rk=pe.publishedTimeText;Rk&&(ld.publishedTimeText=g.Pw(Rk));var cm=pe.shortViewCountText;cm&&(ld.shortViewCount=g.Pw(cm));var Un=pe.thumbnailOverlays;if(Un)for(var Vn=g.r(Un),Wn=Vn.next();!Wn.done;Wn=Vn.next()){var sj=Wn.value.thumbnailOverlayTimeStatusRenderer;if(sj)if("LIVE"===
sj.style){ld.isLivePlayback=!0;break}else if("UPCOMING"===sj.style){ld.isUpcoming=!0;break}else if("DEFAULT"===sj.style&&sj.text){ld.lengthText=g.Pw(sj.text);var wv=sj.text.accessibility;if(wv){var xv=wv.accessibilityData;xv&&xv.label&&(ld.Oq=xv.label||"")}break}}ld.Z=qD(pe.background);var eB=pe.nextButton;if(eB){var rm=eB.buttonRenderer;if(rm){var ve=rm.navigationEndpoint;if(ve){var sm=ve.watchEndpoint;sm&&(ld.Ew=sm)}}}if(pe.topBadges){var fB=pe.topBadges[0];if(fB){var gB=fB.metadataBadgeRenderer;
gB&&"BADGE_STYLE_TYPE_PREMIUM"==gB.style&&(ld.oC=!0)}}var hB=pe.alternativeTitle;hB&&(ld.Hn=g.Pw(hB));Zva(ld,Rn,pe,tf);a.suggestions||(a.suggestions=[]);a.suggestions[0]=ld}null!=Xc.countDownSecs&&(a.rP=1E3*Xc.countDownSecs);var iB;a.Y_=null==(iB=Xc.cancelButton)?void 0:iB.buttonRenderer}a.watchNextResponse.currentVideoThumbnail&&(a.Z=qD(a.watchNextResponse.currentVideoThumbnail));if(!a.N("player_parse_profile_picture_from_watch_next_killswitch")){var jB,xo,kB,lB,xr,yv=null==(jB=a.watchNextResponse)?
void 0:null==(xo=jB.contents)?void 0:null==(kB=xo.twoColumnWatchNextResults)?void 0:null==(lB=kB.results)?void 0:null==(xr=lB.results)?void 0:xr.contents;if(yv&&yv[1]){var mB,nB,yr,oB,zr=null==(mB=yv[1].videoSecondaryInfoRenderer)?void 0:null==(nB=mB.owner)?void 0:null==(yr=nB.videoOwnerRenderer)?void 0:null==(oB=yr.thumbnail)?void 0:oB.thumbnails;zr&&zr.length&&(a.profilePicture=zr[zr.length-1].url)}}var pB=a.watchNextResponse.onResponseReceivedEndpoints;if(pB)for(var tm=g.r(pB),zv=tm.next();!zv.done;zv=
tm.next()){var um=zv.value;um.changeKeyedMarkersVisibilityCommand&&(a.wK=um.changeKeyedMarkersVisibilityCommand);var Av=void 0;a.N("web_key_moments_markers")&&(null==(Av=um.loadMarkersCommand)?0:Av.entityKeys)&&(a.rr=um.loadMarkersCommand.entityKeys,um.loadMarkersCommand.visibleOnLoadKeys&&(a.visibleOnLoadKeys=um.loadMarkersCommand.visibleOnLoadKeys))}}};
$D=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
aE=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
dE=function(a){if(a.N("html5_single_format_policy")&&a.Sb)return a.Sb;var b=a.Ha,c=!!a.j&&a.j.Cf,d=a.B,e=a.YF(),f=bE(a),k=a.TD,l=a.isOtf(),m=a.fE(),n=a.ob,p=a.Qd,q=new Eta;if(cD(d)||d.N("html5_logging_format_selection"))q.B=!0;q.Ra=f;q.xa=k&&d.B;q.Qd=p;Yr("windows nt 5.1")&&!g.Ex&&(q.j=!0);if(f=e)f=d.N("disable_html5_ambisonic_audio")||!(g.YC(d)||d.N("html5_enable_spherical")||d.N("html5_enable_spherical3d"))?!1:Eua(d);f&&(q.Qa=!0);b&&(q.j=!0,q.qb=!0);l&&!d.N("html5_otf_prefer_vp9")&&(q.j=!0);n&&
(q.j=!0);Sx(d.u,Tx.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.Da=!0));d.N("html5_block_8k_hfr")&&(q.Wa=!0);q.K=g.cB(d.experiments,"html5_max_selectable_quality_ordinal");q.S=g.cB(d.experiments,"html5_min_selectable_quality_ordinal");!d.N("html5_kaios_hd_killswitch")&&nC&&(q.ob=480);if(c||e)q.Va=!1;q.Xa=!1;b=UA(d,q.u);0<b&&2160>b&&(zA()||d.N("html5_format_hybridization"))&&(q.u.supportsChangeType=
+zA(),q.X=b);2160<=b&&(q.ra=!0);Cta()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.ub=!1);q.fE=m;m=g.ot||js()&&!m?!1:!0;q.Ia=m;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.Ha&&a.isAd()&&(a.Xl&&(q.Z=a.Xl),a.Wl&&(q.C=a.Wl));q.Ha=a.isLivePlayback&&cE(a)&&a.B.N("html5_drm_live_audio_51");
return a.Sb=q};
awa=function(a){lx("drm_pb_s",void 0,a.xa);a.pc||a.j&&Vx(a.j);var b={};a.j&&(b=fra(dE(a),a.B.u,a.j,function(c){return a.ea("ctmp","fmtflt",c)},!0));
b=new vB(b,a.B.experiments,a.uN,$va(a),function(c,d){a.ya(c,d)});
g.H(a,b);a.zk=!1;a.Ia=!0;Ita(b,function(c){lx("drm_pb_f",void 0,a.xa);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.pc;e.K=a.P_;e.J=a.A_;break;case "widevine":e.B=a.NN}a.Pr=c;if(0<a.Pr.length&&(a.X=a.Pr[0],2<=a.B.X)){c={};d=g.r(Object.entries(a.X.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.ya("drmProbe",c)}UD(a)})};
Vva=function(a,b){var c;(c=!b)||(c=!(!a.N("html5_manifestless_unplugged")&&a.isLivePlayback&&g.SC(a.B)&&g.HC(a.B)?0:!XD(a)&&a.adaptiveFormats));if(c)return null;eE(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(tta=!0);b=fE(b);c=Date.now();var d=a.Sd;var e=a.lengthSeconds,f=a.isLivePlayback,k=a.gf,l=a.B,m=fta(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.Ie=l.Ie||q;l.Kg=l.Kg||t;var w=!gA(f.mimeType);m&&HA(l,new Mz(m,f,{lj:p,Qk:w,nm:n,Ie:q,Kg:t,yx:300,gf:k}))}l.u=!k;l.Cf=!0;l.isManifestless=!0;l.isLive=!k;l.gf=k;l.S=!!l.Ie&&!!l.Kg&&isFinite(l.Kg);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.Aj));d=k}c=Date.now()-c;a.N("html5_log_manifest_performance")&&(k=dta(d)?1:0,a.ya("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.ih=!0)));return d};
XD=function(a){return as()?!gE(a):cs()?!(!a.pc||!a.N("html5_enable_safari_fairplay")):!1};
gE=function(a){return eE(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"'))};
$va=function(a){return a.useCobaltWidevine?as()?gE(a):!1:!1};
ZD=function(a){return!(!a.j||!a.j.isManifestless)};
bwa=function(a){if(!Fx())return!1;if(a.N("html5_streaming_debug")||ZD(a)&&("ULTRALOW"==a.latencyClass||21530001==hE(a)))return!0;if(!window.AbortController&&!Gx()||a.Ha)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.Cf)?!0:!1};
cwa=function(a){return mra({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,ql:a.ql,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:ZD(a),mI:bwa(a)})};
hE=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=OA(a.j)?21530001:a.liveExperimentalContentId};
Tva=function(a){return as()&&gE(a)?!1:XD(a)&&g.SC(a.B)&&!a.isLivePlayback||!yB(a.B.u)||a.XD?!0:!1};
ewa=function(a){a.Ia=!0;a.Vc=!1;if(Uva(a))g.gva(a.videoId).then(function(d){dwa(a,d)}).then(function(){UD(a)});
else{Ew(a.ib)||g.Sv(new g.Is("DASH MPD Origin invalid: ",a.ib));var b=a.ib,c=g.cB(a.B.experiments,"dash_manifest_version")||4;b=g.wj(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.wj(b,{pacing:0}));nta(b,a.B.experiments,a.isLivePlayback).then(function(d){a.isDisposed()||(YD(a,d,!0),lx("mrc",void 0,a.xa),UD(a))},function(d){a.isDisposed()||(a.Ia=!1,a.ea("dataloaderror",new g.eD("manifest.net.retryexhausted",{backend:"manifest",
rc:d.status},1)))});
lx("mrs",void 0,a.xa)}};
dwa=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 Dva(e)}).join(",");
d=Vva(a,d);YD(a,d);a.ya("dlr",{})};
UD=function(a){a.isDisposed()||(a.Ia=!1,a.ea("dataloaded"))};
YD=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.H(a,b);b.Ie=a.Ie;b.Kg=a.Kg;b.D=a.WK;b.C=a.UK;a.N("html5_start_walltime_min_seekable_killswitch")||(b.J=a.tN);fwa(a)&&a.ra.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.nh=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.ya,a),c?b.subscribe("refresh",a.vO,a):b.subscribe("cuepointsadded",a.BL,a));Vx(b)&&(a.zk=!0)};
cE=function(a){return a.Sd?!0:!!a.j&&Vx(a.j)};
kwa=function(a,b){if(a.isDisposed())return Lr();a.C=null;a.Xa=null;a.Cb=null;if(eE(a,"html5_high_res_logging")||eE(a,"html5_high_res_logging_live_infra"))a.B.X=2;return gwa(a,b).then(void 0,function(){return hwa(a,b)}).then(void 0,function(){return iwa(a)}).then(void 0,function(){return jwa(a)})};
gwa=function(a,b){var c=b||Tva(a);if(!a.j||c)return a.ya("skipDash",{dm:!!a.j,air:b,dd:a.XD,mss:yB(a.B.u)}),Lr();bE(a)&&rta(a.j,a.isLivePlayback);eE(a,"html5_enable_cobalt_experimental_vp9_decoder")&&Rta(a.B.u);return Mr().then(function(){return lra(dE(a),a.B.u,a.j,a.X,function(d){return a.ea("ctmp","fmtflt",d)}).then(function(d){lwa(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.Sb&&a.ya("av1",a.Sb.u)})})};
hwa=function(a,b){if(b&&a.hlsvp)return Lr();if(a.hlsFormats){b=fE(a.hlsFormats);var c;if((null==(c=a.Sb)?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.ya("hlsfmt",{itags:c.join(".")})}a.gr=Mua(a.B,b);c=a.clientPlaybackNonce;var f,k,l,m;return Rua(a.B,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(k=f.captions)?void 0:null==(l=k.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.wk,c,function(n){return a.ea("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],t=g.r(n),w=t.next();!w.done;w=t.next()){w=w.value;
var x=void 0;q.push(null==(x=w.yf())?void 0:x.Yb());var y=x=void 0;(null==(x=w.yf())?void 0:null==(y=x.audio)?void 0:y.numChannels)>p&&(p=w.yf().audio.numChannels)}2<p&&a.ya("hlschl",{mn:p});var z;(null==(z=a.Sb)?0:z.B)&&a.ya("hlsfmtaf",{itags:q.join(".")});iE(a,n)})}return Lr()};
iwa=function(a){return a.bj&&a.kJ?Tua(a.B,a.isAd(),a.bj).then(function(b){iE(a,b)}):Lr()};
jwa=function(a){var b=fE(a.cj,a.nH);if(a.hlsvp){var c=Jva(a.hlsvp,a.clientPlaybackNonce,a.wk);b.push(c)}return Sua(a.B,a.isAd(),b,mwa(a)).then(function(d){iE(a,d)})};
lwa=function(a,b){a.C=b;b=a.getAvailableAudioTracks();b=b.concat(a.xj);for(var c=0;c<a.Wv.length;c++)for(var d=a.Wv[c],e=0;e<b.length;e++){var f=b[e],k=f.Fc.id==d.audioTrackId;if(f.Fc.isDefault&&c==a.SQ||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.X&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=fA(a.C.videoInfos[0]),b!=("fairplay"==a.X.flavor)))for(c=g.r(a.Pr),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.X=d;break}};
iE=function(a,b){a.Cb=b;lwa(a,new Ox(g.Sl(a.Cb,function(c){return c.yf()})))};
mwa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Kr&&(b.ptk=a.Kr,b.oid=a.EK,b.ptchn=a.DK,b.pltype=a.FK,a.Jq&&(b.m=a.Jq));return b};
g.jE=function(a){return XD(a)&&a.pc?(a={},a.fairplay="https://web.archive.org/web/20220406233357/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Sd||null};
nwa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Pw(b.text):a.paidContentOverlayText};
kE=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Lh(b.durationMs):a.paidContentOverlayDurationMs};
lE=function(a){var b="";if(a.VC)return a.VC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.gf?"post":a.ih?"window":"live");return b};
g.mE=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
nE=function(a){return!!(a.ib||a.adaptiveFormats||a.cj||a.bj||a.hlsvp)};
TD=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Tb(a.ra,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ia&&(nE(a)||g.Tb(a.ra,"heartbeat")||b)};
fE=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};
Xva=function(a,b){a.showShareButton=!!b;var c,d,e=(null==b?void 0:null==(c=b.buttonRenderer)?void 0:c.navigationEndpoint)||(null==b?void 0:null==(d=b.buttonRenderer)?void 0:d.command);e&&(a.Ik=!!e.copyTextEndpoint)};
Lva=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Cg=c);if(a.Cg){if(c=a.Cg.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Cg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Wa=d,a.D=!0):(a.Wa="",a.D=!1);if(d=c.defaultThumbnail)a.Z=qD(d),a.sampledThumbnailColor=
d.sampledThumbnailColor;var e;(d=null==c?void 0:null==(e=c.videoDetails)?void 0:e.embeddedPlayerOverlayVideoDetailsRenderer)&&Yva(a,b,d);var f;if(e=null==c?void 0:null==(f=c.videoDetails)?void 0:f.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.CG=e.title,a.qG=e.byline,e.musicVideoType&&(a.musicVideoType=e.musicVideoType);a.Pf=!!c.addToWatchLaterButton;Xva(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)Wva(a,f),a.videoId=f.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Lh(c.videoDurationSeconds));c.webPlayerActionsPorting&&xva(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.Pw(e.shortBylineText):"",d=e.title?g.Pw(e.title):"",n.push({author:c,encrypted_id:e.videoId,
title:d,channel_path:m===l?b.channel_path:"",profile_picture:m===l?b.profile_picture:"",is_private:m===l?a.isPrivate:!1,is_dni:m===l?a.D:!1,dni_color:m===l?a.Wa:""});b={index:k.currentIndex,list:k.playlistId,playlist_length:k.totalVideos,video:n};k.titleText&&(b.title=g.Pw(k.titleText));k.shortBylineText&&(b.author=g.Pw(k.shortBylineText));a.UQ=b}}if(a.Cg.previewPlayabilityStatus){if(a.Or=a.Cg.previewPlayabilityStatus,b=a.Or,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){n=b.errorScreen;if(k=null==
n?void 0:n.playerErrorMessageRenderer){a.YE=k;if(l=k.reason)a.errorReason=g.Pw(l);if(k=k.subreason)a.Fj=g.Pw(k)}else a.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var p;(null==n?0:null==(p=n.playerKavRenderer)?0:p.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.Cg.playabilityStatus&&(a.zj=a.Cg.playabilityStatus,
owa(a)&&(a.errorDetail="0",a.zj&&((p=a.zj.embeddedPlayerErrorMessageRenderer)?a.YE=p.embeddedPlayerErrorMessageRenderer:a.N("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.zj.reason||null))));(p=a.Cg.attestation)&&sva(a,p);(p=a.Cg.permissions)&&p.allowImaMonetization&&(a.allowImaMonetization=!0)}};
Wva=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.CK=new lva(b)};
Zva=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.lL=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.Dw=d};
Yva=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.Pw(f);if(e=e.subtitle)b.subtitle=g.Pw(e)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(e=
c.title)b.expanded_title=g.Pw(e);if(e=c.subtitle)b.expanded_subtitle=g.Pw(e);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Vh=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.RD=b.toggledServiceEndpoint||null,a.QD=b.defaultServiceEndpoint||null):(a.RD=b.defaultServiceEndpoint||null,
a.QD=b.toggledServiceEndpoint||null))}};
g.oE=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
pE=function(a){return a.isLivePlayback&&a.allowLiveDvr};
g.qE=function(a){return!!a.j&&Zsa(a.j)};
g.rE=function(a){return!!a.j&&$sa(a.j)};
fwa=function(a){return a.YF()||g.sE(a)};
g.tE=function(a){return!!a.j&&ata(a.j)};
g.sE=function(a){return!!a.j&&bta(a.j)};
g.pwa=function(a){if(a.LD)return null;var b=a.uK;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.qwa=function(a){return a.LD?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.uE=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.vE=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};
wE=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.B.Ha};
xE=function(a){if(a.isAd()&&a.videoId!=a.B.Wb)return a.B.Wb};
yE=function(a){return a.Al||"detailpage"==wE(a)||"shortspage"==wE(a)||a.mutedAutoplay};
zE=function(a){if(yE(a)){if("detailpage"==wE(a)||"shortspage"==wE(a))return a.wl||0<a.ub;if(!("17_8"===a.adFormat&&!a.wl||a.LP||"adunit"==wE(a)&&a.pd))return!0}return!1};
g.AE=function(a){return a.oauthToken||a.B.Ub};
rwa=function(a){var b=1,c=g.cB(a.B.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Pd;a.C&&a.C.j&&a.C.j[0]&&a.Nr[a.C.j[0].id]&&(c=a.Nr[a.C.j[0].id]);if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.EN)return Math.min(1,Math.pow(10,-a.Ov/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.cj,g.cB(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.Ov=c}return Math.min(1,Math.pow(10,-c/20))||b};
bE=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===FC(a.B)&&"MUSIC"===a.B.deviceParams.ctheme;!a.Vd&&(g.zC(a.B)||c)&&b.includes(a.musicVideoType)&&(a.Vd=!0);if(b=g.$r())b=/Starboard\/([0-9]+)/.exec(g.tb()),b=10>(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===FC(c)||"TVHTML5"===FC(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.deviceParams.ctheme;!a.Vd&&(c||Cua(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.Vd=!0);return WC(a.B)||a.Vd&&a.B.B};
swa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
BE=function(a){return!(!a.yj||!a.B.B)&&!!a.adaptiveFormats};
Uva=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.wD(b);return b&&!a.yj};
g.CE=function(a){if(!a.j||!a.u||!a.J)return!1;var b=a.j.j;return!!b[a.u.id]&&cy(b[a.u.id].u.j)&&!!b[a.J.id]&&cy(b[a.J.id].u.j)};
twa=function(a){return a.Or?["OK","LIVE_STREAM_OFFLINE"].includes(a.Or.status):!0};
owa=function(a){return(a=a.zj)&&a.showError?a.showError:!1};
eE=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
uwa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
Qva=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.ZC=b.quartile_0_url,a.NK=b.quartile_25_url,a.PK=b.quartile_50_url,a.RK=b.quartile_75_url,a.LK=b.quartile_100_url,a.Qr=b.quartile_0_urls,a.cD=b.quartile_25_urls,a.dD=b.quartile_50_urls,a.eD=b.quartile_75_urls,a.bD=b.quartile_100_urls};
WD=function(a,b){return b?yB(a.B.u)?!0:DE&&5>EE?!1:!0:!1};
Pva=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};
tva=function(a){if(a){if(uqa(a))return a;a=vqa(a);if(uqa(a,!0))return a}return""};
g.vwa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.mE(a,"yt:cc_default_lang")||a.B.nf};
FE=function(a){return!!(a.N("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
GE=function(a,b){this.j=a;this.Z=b||{};this.J=String(Math.floor(1E9*Math.random()));this.D={};this.X=this.S=0};
wwa=function(a){return HE(a)&&1==a.getPlayerState(2)};
HE=function(a){a=a.Kc();return void 0!==a&&2==a.getPlayerType()};
IE=function(a){a=a.V();return GC(a)&&!g.SC(a)&&"desktop-polymer"==a.playerStyle};
JE=function(a,b){var c=a.V();vC(c)||"3"!=c.controlsType||a.bb().zy(b)};
LE=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=KE(a)};
KE=function(a){return a+(":"+(oq.getInstance().j++).toString(36))};
ME=function(a){this.Y=a};
xwa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.Qs?0:a.Y.isMobile||g.SC(a.Y)||g.HC(a.Y)||IC(a.Y)||!g.Qs))return!0;a=g.$h("video-ads");return null!=a&&"none"!==Pm(a,"display")};
ywa=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}};
NE=function(){g.iv.call(this);var a=this;this.j={};g.sf(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
PE=function(){if(null===OE){OE=new NE;Vl(mp).u="b";var a=Vl(mp),b="h"==fp(a)||"b"==fp(a),c=!(fm(),!1);b&&c&&(a.C=!0,a.D=new Mga)}return OE};
zwa=function(a,b,c){a.j[b]=c};
Awa=function(){};
QE=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};
RE=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"};
SE=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||[]]])};
Bwa=function(a){return(a=a.pings)?Object.fromEntries(SE(a)):{}};
TE=function(a,b,c,d,e){GE.call(this,a,Bwa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ha=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new QE(0,[]);this.va=null;this.C={};this.ra=null;this.u=0;this.K=null;this.ma=e;this.Da=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=hC(this.u,this.C.length_seconds);this.ma&&this.K&&(this.Da=this.ma(this.K));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.S(f)}this.va=this.j.clickthroughEndpoint||null;this.B=new QE(0,[this.u])};
Cwa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
UE=function(){this.j=[];this.u=0};
VE=function(a,b){b&&a.j.push(b)};
WE=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};
XE=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};
YE=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
ZE=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Dwa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=WE(a.impressionCommands)||[];b.error=WE(a.errorCommands)||[];b.mute=WE(a.muteCommands)||[];b.unmute=WE(a.unmuteCommands)||[];b.pause=WE(a.pauseCommands)||[];b.rewind=WE(a.rewindCommands)||[];b.resume=WE(a.resumeCommands)||[];b.skip=WE(a.skipCommands)||[];b.close=WE(a.closeCommands)||[];b.clickthrough=WE(a.clickthroughCommands)||[];b.fullscreen=WE(a.fullscreenCommands)||[];b.active_view_viewable=WE(a.activeViewViewableCommands)||
[];b.active_view_measurable=WE(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=WE(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=WE(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=WE(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=WE(a.endFullscreenCommands)||[];b.channel_clickthrough=WE(a.channelClickthroughCommands)||[];b.abandon=WE(a.abandonCommands)||
[];b.progress=XE(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=XE(a.progressCommands.filter(function(c){return ZE(c)&&Ah(YE(c),0)}));
b.first_quartile=XE(a.progressCommands.filter(function(c){return ZE(c)&&Ah(YE(c),.25)}));
b.midpoint=XE(a.progressCommands.filter(function(c){return ZE(c)&&Ah(YE(c),.5)}));
b.third_quartile=XE(a.progressCommands.filter(function(c){return ZE(c)&&Ah(YE(c),.75)}));
b.complete=XE(a.progressCommands.filter(function(c){return ZE(c)&&Ah(YE(c),1)}));
return b};
$E=function(a){GE.call(this,a,Dwa(a));this.u=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
Ewa=function(a,b,c,d){this.id=b;this.C=d.Kd;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.D=e.getAdBreakUrl||"")?0:2;d.j=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Aqa(b,d);if(null==f)d=new Mw(b,new Vp(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(oq.getInstance().j++).toString(36);
var k=d.daiEnabled||d.Kd;f=new Mw(b,f,d.visible&&!k,"adcuerange:"+e,3);k=null;if(d.Kd||0<d.j)if(d=Aqa(b,d,!0))k=new Mw(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)};
aF=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
cF=function(a,b){var c={};Fwa(a,c,b);Gwa(c);c.LACT=bF(function(){return Du().toString()});
c.VIS=bF(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=bF(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
Hwa=function(a){var b={};if(!a.kind)return g.S(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.S(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=bF(zg(Math.round(Lh(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=bF(zg("0"));return b};
bF=function(a){return{toString:function(){return a()}}};
Iwa=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.Sf(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};
Fwa=function(a,b,c){b.CPN=bF(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.Sv(Error("Video data is null.")),d=null);return d});
b.AD_MT=bF(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=bF(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=bF(function(){return a.bb().Hg().height.toString()});
b.P_W=bF(function(){return a.bb().Hg().width.toString()});
b.PV_H=bF(function(){return a.bb().getVideoContentRect().height.toString()});
b.PV_W=bF(function(){return a.bb().getVideoContentRect().width.toString()})};
Gwa=function(a){a.CONN=bF(zg("0"));a.WT=bF(function(){return Date.now().toString()})};
Jwa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=aF(a)?bF(zg(Math.round(a.j.start/1E3).toString())):bF(zg("0"));return b};
Kwa=function(a){var b={};b.SLOT_POS=bF(zg(a.B.j.toString()));return b};
Lwa=function(a){var b=a&&g.ob(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
dF=function(a){for(var b={},c=g.r(Mwa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
eF=function(){var a={};Object.assign.apply(Object,[a].concat(g.u(g.Ca.apply(0,arguments))));return a};
fF=function(){};
gF=function(a){this.im=a};
hF=function(a){this.Vp=a};
Owa=function(a,b,c,d,e,f){e=void 0===e?new hF(new gF(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.ai=e;this.daiEnabled=f;this.u={aD:.25,SECOND:.5,VD:.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});
Nwa(RE(a.j.pings))};
mF=function(a,b){iF(a)||(jF(a)?(kF(a,0,!0),Pwa(a,b,b)):(kF(a,0,!0),Qwa(a,0,0,!0)),lF(a,"complete"))};
kF=function(a,b,c){for(c=void 0===c?!1:c;a.ad.S<a.progressPings.length;){var d=nF(a,"progress"),e=a.progressPings[a.ad.S];if(e.offsetMilliseconds<=1E3*b||c)oF(a,e,d),a.ad.S++;else break}};
Rwa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.X<a.unmutedProgressPings.length;){var d=nF(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.X];if(e.offsetMilliseconds<=1E3*b||c)oF(a,e,d),a.ad.X++;else break}};
Qwa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.aD||d)&&lF(a,"first_quartile");(b>=c*a.u.SECOND||d)&&lF(a,"midpoint");(b>=c*a.u.VD||d)&&lF(a,"third_quartile")};
Swa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.aD||d)&&lF(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&lF(a,"unmuted_midpoint");(b>=c*a.u.VD||d)&&lF(a,"unmuted_third_quartile")};
pF=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;lF(a,b)};
Pwa=function(a,b,c){if(0<c&&0<b){var d=a.j.yb(a.j.getPresentingPlayerType());g.V(d,16)||g.V(d,32)||(pF(a,"first_quartile",b,c*a.u.aD),pF(a,"midpoint",b,c*a.u.SECOND),pF(a,"third_quartile",b,c*a.u.VD))}a.lastUpdatedTimeSecs=b};
qF=function(a,b){for(var c=nF(a,b),d=g.r(a.ad.Z[b]||[]),e=d.next();!e.done;e=d.next())oF(a,e.value,c);a.ad.D[b]=!0};
lF=function(a,b){a.ad.D.hasOwnProperty(b)||qF(a,b)};
rF=function(a,b){return a.ad.D.hasOwnProperty(b)};
oF=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.ai,f=e.send,k={},l=cF(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)}};
nF=function(a,b){var c=a.B;a=a.ad;if(a.lx())if(b=Twa(b),null==b)c={};else{var d;(d=a.xa()())||(d=(d=c.I)&&d.Kc?(d=d.Kc())&&2==d.getPlayerType()?sF(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.I.isFullscreen()},c=op(b,a.J,c)):c={}}else c={};return c?Object.assign({},c):{}};
jF=function(a){return!a.j.V().N("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
iF=function(a){return jF(a)&&!rF(a,"impression")};
tF=function(a){return jF(a)&&rF(a,"seek")};
uF=function(a,b){jF(a)?qF(a,b):lF(a,b)};
g.vF=function(a,b){this.state=a;this.Vo=b};
wF=function(a,b){return g.V(a.state,b)&&!g.V(a.Vo,b)?1:!g.V(a.state,b)&&g.V(a.Vo,b)?-1:0};
g.xF=function(a,b){return 0<wF(a,b)};
yF=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.kP,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.lP,this);this.u.subscribe("adoverlaymeasurableimpression",this.mP,this);this.u.subscribe("adoverlayunviewableimpression",this.nP,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.oP,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.pP,
this);this.u.subscribe("adviewableimpression",this.qP,this);this.ad=b;this.ra=[];this.macros=c;this.S=!1;this.va=!xwa(new ME(this.I.V()),f);this.C=!1};
zF=function(a,b){g.dc(a.ra,b);Uwa(a,b,1)};
AF=function(a,b){if(a.S){var c=a.j,d=a.getDuration();!iF(c)&&0<d&&(kF(c,b),jF(c)?Pwa(c,b,d):Qwa(c,b,d,!1));a.C||(c=a.j,a=a.getDuration(),!iF(c)&&0<a&&(Rwa(c,b),Swa(c,b,a,!1)))}};
Uwa=function(a,b,c){0!=b.length&&(b=g.Sl(b,function(d){return new Ow(d,c,d.id)}),a.ea("onAdUxUpdate",b))};
BF=function(a){var b={};b.abandon=a.abandonCommands&&WE(a.abandonCommands.commands)||[];GE.call(this,a,b)};
CF=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;LE.call(this,"ad-action-interstitial",a,b,c,d);this.j=d;this.Rg=e;this.ij=f};
DF=function(a,b,c,d,e,f){yF.call(this,a,b,c,d,e,1);this.D=b;this.B=b.j.durationMilliseconds||0;this.Rb=null;this.J=f};
EF=function(a){GE.call(this,a);this.u=mr(this.j.playerVars||"")};
FF=function(){GE.apply(this,arguments)};
GF=function(){GE.apply(this,arguments)};
Vwa=function(a,b,c,d,e,f){this.J=a;this.C=b;this.j=c;this.D=d;this.B=e;this.u=f};
HF=function(a,b,c,d,e){yF.call(this,a,b,c,d,e);var f=this;this.J=b;this.B=new g.L(function(){f.lh("load_timeout")},1E4);
g.H(this,this.B);this.D=new fv(this);g.H(this,this.D)};
IF=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(!rw(a.Ea,c.value))return!1;return!0};
JF=function(a){return!!(a.zV&&a.slot&&a.layout)};
Wwa=function(a){LE.call(this,"ad-message",a)};
KF=function(a,b,c,d,e,f,k,l){yF.call(this,a,b,c,d,e);var m=this;this.B=b;this.X=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.Jg():n>m.J&&m.Ih()}};
Zwa=function(a,b){if(a.K&&a.Z){a.Z=!1;var c=a.B.j;if(JF(c)){var d=c.slot;c=c.layout;b=Xwa(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;LF(e.j(),f,k,l);Ywa(e.j(),f)}}else g.Sv(Error("adMessageRenderer is not augmented on termination"))}};
Xwa=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.Sv(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.MF=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={RC:c.RC},e=d.next())e=e.value,c.RC=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.RC}}(c));
return a};
NF=function(a){return a?g.Pw(a):null};
$wa=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a};
axa=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
bxa=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
exa=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(cxa(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=NF(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
dxa(a,b,c,d))}};
cxa=function(a,b,c){var d=NF(b.confirmLabel)||"",e=NF(b.title)||"",f=[];if(b.adReasons)for(var k=g.r(b.adReasons),l=k.next();!l.done;l=k.next())f.push(NF(l.value)||"");k=b.headerTitle?g.Pw(b.headerTitle):"";d={closeButton:d,menuTitle:k,targetingReasonHeader:e,targetingReasons:f,dialogMessage:NF(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints),
n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
dxa=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:NF(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=$wa(b.navigationEndpoint);var k=bxa(b[1]),l=[bxa(b[0])];(b=axa(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(k)};
a.muteAd=function(){m||c(k);m=!1;for(var n=g.r(l),p=n.next();!p.done;p=n.next())c(p.value)};
fxa(a,e,d)}}};
fxa=function(a,b,c){a.muteAdInfo.goneText=NF(b.title)||"";a.muteAdInfo.questionText=NF(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=NF(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=NF(e.reason)||"";e=$wa(e.endpoint)[0];a.push({label:d,url:e})}};
OF=function(a,b,c,d,e,f){this.u=a;this.D=b;this.j=cF(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.j[b]=f[b];this.B=c;this.C=e};
gxa=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.Ld(e):a.B.xq()};
b.skipShown=function(){a.Ld(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
hxa=function(a,b,c){exa(b,c,function(d){a.Ld(d)},function(d){a.sendAdsPing(d)})};
ixa=function(a){for(var b={},c=g.r(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.j[d].toString();return Object.assign(b,a.D)};
jxa=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){},
instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){},
muteAdClicked:function(){},
sendAdsPing:function(){},
skip:function(){},
endSurveyOnSubmitted:function(){},
skipShown:function(){},
whyThisAdClicked:function(){},
whyThisAdClosed:function(){},
daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null,adBreakEndSeconds:null}};
kxa=function(a,b,c,d,e){new OF(a,b,c,d,e)};
PF=function(a){this.value=a};
QF=function(a){this.value=a};
RF=function(a){this.value=a};
SF=function(a){this.value=a};
TF=function(a){this.value=a};
UF=function(){PF.apply(this,arguments)};
VF=function(a){this.value=a};
WF=function(a){this.value=a};
XF=function(a){this.value=a};
YF=function(a){this.value=a};
ZF=function(a){this.value=a};
$F=function(a){this.value=a};
aG=function(){PF.apply(this,arguments)};
bG=function(){PF.apply(this,arguments)};
cG=function(a){this.value=a};
dG=function(a){this.value=a};
eG=function(a){this.value=a};
fG=function(a){this.value=a};
gG=function(a){this.value=a};
hG=function(a){this.value=a};
iG=function(a){this.value=a};
jG=function(a){this.value=a};
kG=function(a){this.value=a};
lG=function(a){this.value=a};
mG=function(a){this.value=a};
nG=function(a){this.value=a};
oG=function(a){this.value=a};
pG=function(a){this.value=a};
qG=function(a){this.value=a};
rG=function(a){this.value=a};
sG=function(a){this.value=a};
tG=function(a){this.value=a};
uG=function(a){this.value=a};
vG=function(a){this.value=a};
wG=function(a){this.value=a};
xG=function(a){this.value=a};
yG=function(a){this.value=a};
zG=function(a){this.value=a};
AG=function(a){this.value=a};
BG=function(a){this.value=a};
CG=function(a){this.value=a};
DG=function(a){this.value=a};
EG=function(a){this.value=a};
FG=function(a){this.value=a};
GG=function(a){this.value=a};
HG=function(a){this.value=a};
IG=function(a){this.value=a};
JG=function(a){this.value=a};
KG=function(){PF.apply(this,arguments)};
LG=function(){PF.apply(this,arguments)};
MG=function(){PF.apply(this,arguments)};
NG=function(){PF.apply(this,arguments)};
OG=function(){PF.apply(this,arguments)};
PG=function(){PF.apply(this,arguments)};
mxa=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 lxa(d)?!0:!1};
nxa=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=lxa(a)):b=!1:b=!1;return b};
lxa=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};
pxa=function(a,b,c,d,e,f){this.j=new OF(a,b,c,d,e,oxa(f))};
qxa=function(a,b){var c=jxa();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.j.Ld(d)};
b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":gxa(a.j,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":hxa(a.j,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.j.sendAdsPing(d)};
return c};
oxa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=bF(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=bF(a);return b};
QG=function(a,b,c){g.iv.call(this,!0);var d=this;this.J=b;this.D=c;this.u=a;this.Rb=new g.Fi(200);this.Rb.Oa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.j+=f;d.j>=d.u&&(d.j=d.u,d.Rb.stop());e=d.j/1E3;d.D&&d.D.Qb(e);rxa(d,{current:e,duration:d.u/1E3})});
g.H(this,this.Rb);this.j=0;this.B=null;g.sf(this,function(){d.B=null});
this.C=0};
rxa=function(a,b){a.J.La("onAdPlaybackProgress",b);a.B=b};
RG=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;LE.call(this,"survey",a,{},b,c);this.Rg=d;this.ij=e};
SG=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.Fi(200);g.H(this,this.timer);this.timer.Oa("tick",function(){d.Qb()})};
TG=function(){Ax("pbp")||Ax("pbs")||Bx("pbp");Ax("pbp","watch")||Ax("pbs","watch")||Bx("pbp",void 0,"watch")};
UG=function(a,b,c){Ax(a,c)||Bx(a,b,c);Ax(a,"video_to_ad")||Bx(a,b,"video_to_ad");Ax(a,"ad_to_video")||Bx(a,b,"ad_to_video");Ax(a,"ad_to_ad")||Bx(a,b,"ad_to_ad")};
VG=function(a,b,c,d,e,f,k){yF.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.J=new fv;g.H(this,this.J);this.J.T(this.I,"resize",function(){450>l.I.bb().Hg().width&&(g.hv(l.J),l.Jg())});
this.Z=0;this.K=null;this.X=k(this,function(){return""+(Date.now()-l.Z)});
if(this.B=g.HC(a.V())?new QG(1E3*b.u,a,f):null)g.H(this,this.B),this.J.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&sxa(l)})};
txa=function(a,b){b=qxa(a.X,b);a.I.La("onAdInfoChange",b)};
sxa=function(a){var b=a.D.j;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.X.Ld(b&&b.timeoutCommands)):g.S(Error("Expected a survey question in InstreamSurveyAdRenderer."))};
WG=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;LE.call(this,"survey-interstitial",a,b,c,d);this.Rg=e;this.bI=f};
XG=function(a,b,c,d,e){yF.call(this,a,b,c,d,e,1);this.B=b};
YG=function(a,b,c,d,e,f,k,l,m){yF.call(this,a,b,c,d,e,1);var n=this;this.WA=!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.lh("load_timeout")},1E4);
g.H(this,this.J);this.X=k};
uxa=function(a){if(a.X&&(a.I.V().experiments.kb("enable_topsoil_wta_for_halftime")||a.I.V().experiments.kb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.S(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.S(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,k){return f+k},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
aH=function(a,b){if(null!==a.K){var c=vxa(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||(wxa(d,e,[],!1),xxa(d.B(),d.u),yxa(d.B(),d.u),zxa(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"}LF(d.B(),d.u,d.j,e);if(k){e=d.B();k=d.u;ZG(e.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);e=g.r(e.Wd);for(f=e.next();!f.done;f=e.next())f.value.Yi(k);Ywa(d.B(),
d.u)}d.Pa.get().I.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&$G(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
bH=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""};
vxa=function(a){if(a=a.B.j.elementId)return a;g.S(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
Axa=function(a){function b(l,m){l=a.wZ;var n=Object.assign({},{});n.FINAL=bF(zg("1"));n.SLOT_POS=bF(zg("0"));return eF(l,dF(n),m)}
function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var q=b(m,n);
n=a.yC(m,q);m=l(m,q,n,p);g.H(m,n);return m}}}
var d=c(function(l,m,n){return new DF(a.I,l,m,n,a.mq,a.eb)}),e=c(function(l,m,n){return new XG(a.I,l,m,n,a.mq)}),f=c(function(l,m,n){return new KF(a.I,l,m,n,a.mq,a.eb,a.Oj,a.Mm)}),k=c(function(l,m,n){return new HF(a.I,l,m,n,a.mq,a.eb)});
this.DT=new Vwa({create:function(l,m){var n=eF(b(l,m),dF(Kwa(l)));m=a.yC(l,n);l=new YG(a.I,l,n,m,a.mq,a.eb,a.daiEnabled,function(p){return new kxa(a.eb,n,p,a.I,a.ai)},a.Nm,a.Dg);
g.H(l,m);return l}},{create:function(l,m){var n=a.yC(l,m);
l=new VG(a.I,l,m,n,a.mq,a.eb,function(p,q){return new pxa(a.eb,m,p,a.I,a.ai,q)});
g.H(l,n);return l}},d,e,f,k)};
cH=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
Bxa=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{jU:new Vp(b,c),yV:new Aw(b,c-b,a.context,a.identifier,a.event,a.j)}};
dH=function(){this.j=[]};
eH=function(a,b,c){var d=g.ic(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
Cxa=function(){this.j=new dH};
fH=function(a){this.j=a};
Dxa=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};
Exa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
Fxa=function(a,b,c){a.j&&gH({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
Gxa=function(a,b){a.j&&gH({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.KT}})};
Hxa=function(a,b){gH({daiStateTrigger:{errorType:a,contentCpn:b}})};
gH=function(a){g.Ds("adsClientStateChange",a)};
hH=function(a){this.I=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.ze=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Jxa=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.ze=!0,(a.I.N("send_csi_info_for_ad_to_video_killswitch")||Ax("_start",a.actionType))&&
Ixa(a)))};
Ixa=function(a){if(a.ze)if(a.I.N("web_csi_via_jspb")){var b=new Pq,c=Kxa(a.B);g.D(b,21,c);g.D(b,7,4);c=new Nq;g.D(c,8,2);se(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=Wqa(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);
zx(b,a.actionType)}else b={adBreakType:Kxa(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=Wqa(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),mx(b,a.actionType)};
Kxa=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.Mxa=function(a){return(a=Lxa[a.toString()])?a:"LICENSE"};
iH=function(){g.G.call(this);this.u=null;this.K=this.J=!1;this.C=new g.sg;g.H(this,this.C)};
jH=function(a){a=a.Yw();return 1>a.length?NaN:a.end(a.length-1)};
Nxa=function(a,b,c){a.Sl()||a.getCurrentTime()>b||10<c||(a.play(),g.Br(function(){Nxa(a,a.getCurrentTime(),c+1)},500))};
Oxa=function(a,b){a.u&&a.u.equals(b)||(a.u&&a.u.dispose(),a.u=b)};
kH=function(a){return Psa(a.fg(),a.getCurrentTime())};
Pxa=function(a,b){if(0===a.Jh()||0<a.Bj())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Yw(),a.length||!c)?tA(a,b):c};
Qxa=function(a){var b=a.fg();return 0<vA(b)&&a.getDuration()?b.end(b.length-1):0};
lH=function(a){switch(a.Bj()){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.mH=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
nH=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.mH(b,c)};
oH=function(a,b){return nH(a,a.state|b)};
pH=function(a,b){return nH(a,a.state&~b)};
qH=function(a,b,c){return nH(a,(a.state|b)&~c)};
g.V=function(a,b){return!!(a.state&b)};
g.rH=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.sH=function(a){return g.V(a,8)&&!g.V(a,2)&&!g.V(a,1024)};
tH=function(a){return a.Jc()&&!g.V(a,16)&&!g.V(a,32)};
g.uH=function(a){return g.V(a,1)&&!g.V(a,2)};
vH=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,64)?-1:g.V(a,1)&&!g.V(a,32)?3:g.V(a,8)?1:g.V(a,4)?2:-1};
wH=function(a,b,c,d,e,f,k,l){g.iv.call(this);this.ag=a;this.I=b;this.u=d;this.K=this.u.u instanceof GE?this.u.u:null;this.j=null;this.Z=!1;this.D=c;this.X=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ra=0;this.va=!1;this.lm=e;this.Ys=f;this.Tp=k;this.ma=!1;this.daiEnabled=l};
Rxa=function(a){if(HE(a.I)){var b=a.I.getVideoData(2);b=a.u.S[b.xc]||null;if(!b)return a.Yk(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.Fv(b)}else if(1===a.I.getPresentingPlayerType()&&a.j)return a.Yk(),!0;return!1};
Sxa=function(a,b){a.D.Qs(a.u.j.j,b,a.mM(),a.nM(),a.isLiveStream())};
xH=function(a){var b=a.ag,c=a.u.j;if(c instanceof Mw){if(b.S&&zqa(c)&&g.V(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.S(Error(c.toString()+" has already been seen")):(b.Up.add(c),b.B.set(c,a),Nw(c)||b.j.Rd([c],1))}else g.S(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.J&&(Txa(a,a.oM()),a.u.J=!0)};
Txa=function(a,b){for(var c=yH(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=Uxa(k);e.push({externalVideoId:k.Ig(),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(!Vxa(a,k,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+Uxa(p)},0);
Fxa(a.lm,a.u.j.Ow(),b);Gxa(a.lm,{cueIdentifier:a.u.C&&a.u.C.identifier,KT:e})};
Uxa=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};
yH=function(a){var b=a.u.j.end;a=eH(a.Ys,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
Vxa=function(a,b,c,d){var e=a.Tp.create(b,dF(Jwa(a.u)),a.u.j.j);c=e.aM(c,d);g.qf(e);if(!c)return!1;a.u.S[c]=b;return!0};
AH=function(a,b){b=void 0===b?!1:b;a.Z=!0;g.qf(a.j);a.D.Hu();var c=a.u.K;if(null!==c){var d=a.lm,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,k=yH(a);d.j&&gH({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(k-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.qo()).toString()}});a.u.K=null}b||a.daiEnabled?zH(a.ag,!0):a.X&&a.DJ()&&a.qx()?zH(a.ag,!1,Wxa(a)):zH(a.ag,!1);Sxa(a,!0)};
Wxa=function(a){if(a.va)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ua()/1E3)-a.ra;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
Xxa=function(a,b,c){this.j=a;this.u=b;this.B=c};
BH=function(){this.D=[];this.K=[];this.j=[];this.C=[];this.J=[];this.u=new Set;this.S=new Map};
CH=function(){BH.j||(BH.j=new BH);return BH.j};
Yxa=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.Lv(c),f=g.Kv(c);if(e&&f){var k;(null==d?0:null==(k=d.response)?0:k.trackingParams)&&g.Wv(a.client,e,f,[g.Hv(d.response.trackingParams)]);var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.Wv(a.client,e,f,[g.Hv(d.playerResponse.trackingParams)])}})};
Zxa=function(a,b){DH(a,g.Hv(b))};
DH=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.Lv(d);c=c||g.Kv(d);e&&c&&g.Wv(a.client,e,c,[b])}};
aya=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){$xa(a,b,c);var f=g.Kv(c.layer);if(f){for(var k=g.r(a.D),l=k.next();!l.done;l=k.next())l=l.value,DH(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.Lv(k);var n=m[0]||g.Kv(k);if(l&&n){k=a.client;var p=m[1];m={cttAuthInfo:Mv(l),gj:l};g.Q("il_via_jspb")?(p=new Mq,p.Eh(l),n=n.getAsJspb(),se(p,2,n),"UNDEFINED_CSN"==l?Vv("visualElementStateChanged",p,m):npa(p,m,k)):(n=
{csn:l,ve:n.getAsJson(),clientData:p},"UNDEFINED_CSN"==l?Vv("visualElementStateChanged",n,m):k?Zu("visualElementStateChanged",n,k,m):g.Ds("visualElementStateChanged",n,m))}}}};
g.Lv(c.layer)||a.B();if(c.RL)for(var d=g.r(c.RL),e=d.next();!e.done;e=d.next())Yxa(a,e.value,c.layer);else g.S(Error("Delayed screen needs a data promise."))};
$xa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.pZ?c.pZ:c.layer;var e=g.Lv(d);d=g.Kv(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.O("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(k={servletData:{serializedServletEventId:l}});try{var m=Rpa(a.client,b,f,c.ML,c.cttAuthInfo,k,c.Bha)}catch(n){Npa(n,{wy:b,rootVe:d,parentVisualElement:void 0,gha:e,Uha:f,ML:c.ML});g.S(n);return}xpa(m,
b,c.layer,c.cttAuthInfo);if(b=e&&"UNDEFINED_CSN"!==e&&d){a:{b=g.r(Object.values(bya));for(f=b.next();!f.done;f=b.next())if(g.Lv(f.value)===e){b=!0;break a}b=!1}b=!b}b&&Spa(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||"");mx({clientScreenNonce:m});cw.getInstance().clear();d=g.Kv(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Q("web_mark_root_visible")||g.Q("music_web_mark_root_visible"))&&g.Xv(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&&DH(a,m,d,c.layer);for(c=0;c<a.C.length;c++){e=a.C[c];try{e()}catch(n){g.S(n)}}for(c=a.C.length=0;c<a.J.length;c++){e=a.J[c];try{e()}catch(n){g.S(n)}}};
EH=function(){this.j={};if(this.u=rma()){var a=g.Qr("CONSISTENCY");a&&cya(this,{encryptedTokenJarContents:a})}};
cya=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)}};
FH=function(){var a=g.O("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")&&(this.localStorage=dya(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
dya=function(a){return void 0===a.localStorage?new xs("yt-client-location"):a.localStorage};
g.GH=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.O("INNERTUBE_CONTEXT");if(!d)return g.S(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.$f(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.O("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:apa()||k;e.userInterfaceTheme=
f;if(!b){if(f=Ima())e.connectionType=f;g.Q("web_log_effective_connection_type")&&(f=Kma())&&(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")&&Ema.j&&(e.mainAppWebInfo.pwaInstallabilityStatus=Ema.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.O("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.O("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();EH.j||(EH.j=new EH);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:Mf(EH.j.j)});!g.Q("web_prequest_context_killswitch")&&(n=g.O("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.Lv())&&(d.clientScreenNonce=b):!b&&(b=g.Lv())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ka("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.Q("web_enable_client_location_service")&&FH.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)),w=t.next();!w.done;w=t.next()){var x=g.r(w.value),y=x.next().value,z=x.next().value;p=y;q=z;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(E){g.S(E)}return d};
HH=function(){this.iQ=!0};
IH=function(){HH.apply(this,arguments);this.xr={}};
KH=function(){JH||(JH=new IH);return JH};
eya=function(a,b){b?a.xr.Authorization="Bearer "+b:delete a.xr.Authorization};
fya=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
gya=function(){var a=null;Dma().then(function(b){return a=b},function(b){return a=fya(b)});
return a};
hya=function(){var a=Hi(1E3,"NO_BID");return Di(Qba([Dma(),a]).Fh(fya),function(){return a.cancel()})};
iya=function(a){return a.Tb?g.rs(g.qs.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
LH=function(a){this.player=a;this.u=this.j=1};
NH=function(a,b,c,d){c=void 0===c?{}:c;var e=c.uw,f=c.Ed;d=void 0===d?"":d;c=a.player.getVideoData(1);var k=a.player.V().Gk,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:iya(a.player.V()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.qo(),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.bb().Hg().height,
P_W:a.player.bb().Hg().width,YT_REMOTE:k?k.join(","):""},m=ama($la);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="19088",(e=a.player.V().ib)&&(d.forced_experiments=e));b=qr(g.pp(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return Bi(Error("Invalid AdBreakInfo URL"));if((d=null==c?void 0:c.oauthToken)&&sr()){var n=KH();eya(n,d)}n=a.player.dl(n);a=jya(a,b,l,c.isMdxPlayback);return g.MH(n,a,"/youtubei/v1/player/ad_break")};
mya=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=rr(b),f=kya(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=kya(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=[];lya.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};
pya=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 nya&&(f.clientName=nya[d[0]]),d[1]in oya&&(f.platform=oya[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};
jya=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=qya.exec(b);f=null!=f&&2<=f.length?f[1]:"";var k=rya.test(b),l=sya.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=tya.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=uya.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=a.player.V();var q=DC(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.GH(a.player.getVideoData(1).va,!0);var t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";mya(q,b,t.toString(),a.player.V());var w={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19088,autonavState:iya(a.player.V())};d&&(d={},pya(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=vya.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 wya)for(d=d.split(RegExp("[:&]")),y=wya.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),z=0,E=d.length;z<E;z++){var I=d[z].split("=");if(I[0]===x&&parseInt("0x"+I[1],16)&y){d=!0;break a}}d=!1}w.autoCaptionsDefaultOn=d}b=xya.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=
[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest: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};
OH=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};
yya=function(a,b){var c={isEmpty:!0,pN:!1,fm:[]};if(!b)return c;b&&b.trackingParams&&Zxa(CH(),b.trackingParams);if(b&&b.adThrottled)return c.pN=!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.Ub(b))return c;if(0<a.j.j.end){var d=a.j.j.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.fm=b;
c.isEmpty=!1;return c};
PH=function(a,b,c,d,e,f,k,l){wH.call(this,a,b,c,d,e,f,k,l);this.B=d.u;this.C=-1;this.J=null;this.S=zya(this.CA())};
Aya=function(a){a.C++;var b=a.CA();b?(0<a.C&&a.D.hI(),a.Fv(b)):AH(a)};
zya=function(a){return a?Bya.some(function(b){return a instanceof b}):!1};
Cya=function(a){this.j=new Xxa(function(b){b=new wH(a.ag,a.I,a.LL(),b,a.lm,a.Ys,a.Tp,a.daiEnabled);xH(b);return b},function(b){return new OH(a.aE,a.ag,a.I,a.Sp,b,a.lm)},function(b){b=new PH(a.ag,a.I,a.LL(),b,a.lm,a.Ys,a.Tp,a.daiEnabled);
xH(b);return b})};
Dya=function(a,b){UE.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Ds("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),VE(this,new FF(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);VE(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new BF(d.adActionInterstitialRenderer),
VE(this,d)):d.adIntroRenderer&&(d=new EF(d.adIntroRenderer),VE(this,d),this.u=1);this.j.filter(function(f){return f instanceof TE}).forEach(function(f,k){f instanceof TE&&(k=new QE(k,c),f.B=k)})}}};
Fya=function(a,b){UE.call(this);VE(this,Eya(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new $E(c.instreamSurveyAdRenderer);break a}}b=null}VE(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new BF(a.adActionInterstitialRenderer)):a=null:a=null;VE(this,a)};
Eya=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new BF(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Ds("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new FF(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new GF(b.surveyTextInterstitialRenderer):null};
Gya=function(a,b){this.B=new Awa;this.j=a;this.u=b};
Hya=function(a){this.j=a};
Iya=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 Ewa(b,c,k,d)}catch(l){g.S(l)}};
Jya=function(a){var b=new Hya(a.ET);return{lM:function(){return b}}};
QH=function(a){g.G.call(this);var b=this;this.u=a;this.j=null;g.sf(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.sf(this,function(){b.u.removeEventListener(c,d)})}};
RH=function(a){g.G.call(this);this.j=a};
Kya=function(a){var b=window.document;return g.SC(a.V())?new QH(b):new RH(a)};
Lya=function(a){g.G.call(this);this.WR=new Exa(a.I,a.contentCpn,a.daiEnabled)};
Mya=function(a){SH=a&&a.data};
Nya=function(a){TH=a&&a.data};
Oya=function(a){UH=a&&a.data};
Pya=function(){VH=UH=TH=SH=null};
YH=function(a){g.G.call(this);var b=this;this.Qc=a;this.ke=new Map;this.j=new Map;WH(this,"commandExecutorCommand",function(c,d,e){b.Ld(c.commands,d,e)});
XH(this,"commandExecutorCommand",function(c,d){Qya(b,c.commands,d)});
WH(this,"clickTrackingParams",function(){});
XH(this,"clickTrackingParams",function(){})};
Rya=function(a,b){WH(a,b.bl(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
Sya=function(a,b){XH(a,b.bl(),function(c,d){b.Dm(c,d)})};
WH=function(a,b,c){a.isDisposed();a.ke.get(b)&&g.S(Error("Extension name "+b+" already registered"));a.ke.set(b,c)};
XH=function(a,b,c){a.isDisposed();a.j.get(b)&&g.S(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
Qya=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())ZH(a,b.value,c);e=g.r(e);for(b=e.next();!b.done;b=e.next())ZH(a,b.value,c)};
Tya=function(a,b){a.Qc.get().La("innertubeCommand",{openPopupAction:b})};
Uya=function(a,b){a.Qc.get().La("innertubeCommand",{confirmDialogEndpoint:b})};
ZH=function(a,b,c){a.isDisposed();b.loggingUrls&&Vya(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?Tya(a,e):"confirmDialogEndpoint"===d?Uya(a,e):Wya.hasOwnProperty(d)||Vya(a,d,e,c)}};
Xya=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.ke.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.S(f)}else b=new g.Is("Unhandled field",b),g.Sv(b)};
Vya=function(a,b,c,d){(a=a.j.get(b))||new g.Is("Unhandled field",b);try{a(c,d)}catch(e){g.S(e)}};
Zya=function(a,b,c,d){for(var e=!1,f=g.r(b.ji.entries()),k=f.next();!k.done;k=f.next())k=g.r(k.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===k.slotType&&"core"===k.gb&&(e=!0);e?(d=Yya(b,d))?c.EF(d):T("No triggering layout ID available when attempting to mute."):g.vi(function(){a.Yk()})};
Yya=function(a,b){if(b)return b;a=g.r(a.ji.entries());for(b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.slotType&&"core"===b.gb)return c.layoutId}};
$ya=function(a){var b=new gF(a.im),c=new hF(b);return{HU:function(){return b},
qF:function(){return c}}};
$H=function(a){hH.call(this,a)};
Twa=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}};
aza=function(a){this.I=a;var b=Vl(mp),c=a.oe();b.B!==c&&((b.B=c)||Mha(b));a.V().N("active_view_stop_starting_measurement_on_loaded")&&zl(fm().featureSet,"ssmol",1)};
Nwa=function(a){Yha(Vl(mp),a)};
bza=function(a){g.G.call(this);this.j=a;this.u=new aza(a.I)};
cza=function(a){return function(){return a.j.I.V().N("html5_disable_csi_for_bulleit")?new $H(a.j.I):new hH(a.j.I)}};
dza=function(a){return function(b,c){return new Owa(b,a.u,c,a.j.I,a.j.ai,a.j.daiEnabled)}};
aI=function(a,b,c,d,e){g.iv.call(this);var f=this;this.j=b;this.xa=null;this.Va=c;this.Xa=e.Dg;this.Ra=e.gp;this.u=null;this.B=new Map;c=this.j.V().experiments;var k=$ya({im:b.getVideoData(1)}),l=new bza({ai:k.qF(),I:b,daiEnabled:!1});g.H(this,l);this.Up=new Set;this.PA=-1;this.X=[];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.Qa=this.ra=!1;this.S=g.SC(b.V());this.fb=d;b=new Lya({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
eha:this,daiEnabled:!1,I:this.j});g.H(this,b);this.Wa=b.WR;this.Ha=(new Cxa({fha:this,aia:c.kb("html5_recognize_predict_start_cue_point"),Wha:c.kb("html5_persist_cue_range_killswitch")})).j;var m=cg(dF(cF(this.j)));e=new Axa({eb:this,mq:PE(),ai:k.qF(),I:this.j,wZ:m,yC:dza(l),daiEnabled:!1,Nm:e.Nm,Dg:this.Xa,Oj:e.Oj,Mm:e.Mm});this.va=(new Cya({Sp:this.Va,Tp:e.DT,aE:a,ag:this,mq:PE(),LL:cza(l),lm:this.Wa,Ys:this.Ha,I:this.j,jia:m,yC:function(n){return dza(l)(n,m)},
daiEnabled:!1})).kM();this.Da=Jya({ET:new Gya(c,function(n){return f.J.has(n)?f.J.get(n):null})}).lM();
this.Ia=Kya(this.j);g.H(this,this.Ia);this.ib=ZC(this.j.V())?this.j.V().experiments.kb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.V().experiments.kb("align_ad_to_video_player_lifecycle_for_bulleit")};
jza=function(a,b){if(a.j.getVideoData(1).cq||g.O("SERVED_VIA_SPF_HISTORY"))bI(a);else{if(IE(a.j)){var c=eza(a.j);c.addEventListener("updateKevlarOrC3Companion",Mya);c.addEventListener("updateEngagementPanelAction",Nya);c.addEventListener("changeEngagementPanelVisibility",Oya);window.addEventListener("yt-navigate-start",Pya)}a.C.T(a.j,"applicationplayerstatechange",a.NW);a.C.T(a.j,g.Kw("ad"),a.MG,a);a.C.T(a.j,g.Lw("ad"),a.cX,a);a.C.T(a.j,"aduxclicked",a.zW);a.C.T(a.j,"videodatachange",a.fZ);b=fza(b);
b=gza(a,b);b=hza(a,b);0<b.length&&iza(a,b);g.vi(a.H_,a)}};
fza=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(T("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
gza=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})};
hza=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})};
kza=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.S(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof OH?!1:c instanceof wH?!c.Dq():!0})};
bI=function(a){var b=lza(a);if(0<b.length){var c=g.cB(a.j.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.S&&g.HC(a.j.V())?(c=new g.L(function(){mza(a,b)},c),g.H(a,c),c.start()):g.vi(function(){mza(a,b)})}};
nza=function(a,b){if(!b)return{};(a=!!a.u&&a.u||null)?(a=a.j,b=a.ad.lx()?nF(a.j,b):{}):b={};return b};
lza=function(a){for(var b=oza(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.Up.delete(d.value);return b};
oza=function(a){var b=[];a=g.r(a.Up);for(var c=a.next();!c.done;c=a.next())c=c.value,Nw(c)&&b.push(c);return b};
pza=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Da,e=d.create;var f=1E3*a.j.getDuration(1);f=new kqa(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.V().experiments.kb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.X.length,c);a.X=a.X.concat(b);return b};
mza=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.MG(c.value)}};
iza=function(a,b){b=pza(a,b);0==b.length||b.map(function(c){return a.va.create(c)})};
qza=function(a){a.ra||(a.D.T(a.j,"presentingplayerstatechange",a.XR),a.D.T(a.j,"internalAbandon",a.nW),a.D.T(a.j,"progresssync",a.iZ),a.D.T(a.j,"onVolumeChange",a.jZ),a.D.T(a.Ia,"fullscreentoggled",a.mX),a.ra=!0);g.M(a.j.getRootNode(),"ad-showing");g.M(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.kb("enable_html5_teal_ad_badge")&&IE(a.j)&&g.M(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
zH=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.Dq()&&(HE(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&rza(a,a.u);a.u=null;a.PA=-1;e&&sza(a,c);a.ma||a.Ra.lq();b&&d&&(d.CJ().B=!1,xH(d))};
sza=function(a,b){g.hv(a.D);a.ra=!1;g.Fp(a.j.getRootNode(),"ad-showing");a.ib?(a.ma||a.Ra.lq(),tza(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),tza(a));g.Fp(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.kb("enable_html5_teal_ad_badge")&&g.Fp(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
tza=function(a){if(a.Qa)!a.S&&g.HC(a.j.V())&&a.j.Vm();else if(a.j.Vm(),!a.S){var b=a.j.yb(1);g.V(b,4)&&!g.V(b,2)&&a.j.playVideo()}};
rza=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.qf(b)};
cI=function(a){g.G.call(this);this.u=a};
dI=function(a){cI.call(this,!0);this.j=a};
uza=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.vj||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.Jw();k!==f&&g.Sv(new g.Is("Mismatched macro for AD_CPN found.",{adCpnFromPlayer:k||"empty_from_player",adCpnFromAdService:f||"empty_from_ad_service"}));return k}):d.AD_CPN=c(function(){return b.Jw()});
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};
vza=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.Sa)(a,b);this.j=new g.L(function(){return d(c.Z)},300);
g.H(this,this.j);this.X=this.S=Infinity};
wza=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};
eI=function(){var a="ytp-id-"+xza.toString();xza++;return a};
g.fI=function(a){g.G.call(this);this.ub={};this.Pd={};this.element=this.createElement(a)};
gI=function(a,b,c,d){if("{{"===d.substr(0,2))a.Pd[d]=[b,c];else return d};
yza=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.ei("BR"));c.push(g.fi(f))}):c.push(g.fi(d))}return c};
hI=function(a,b,c,d){if("child"===c){g.gi(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=yza(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Mm(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Tg(g.Xg(a))),b.setAttribute(c,a))};
g.W=function(a){g.fI.call(this,a);this.tb=!0;this.ra=!1;this.listeners=[]};
g.iI=function(a,b){b?a.show():a.hide()};
g.jI=function(a){g.W.call(this,a);this.Va=new g.iv;g.H(this,this.Va)};
kI=function(a,b,c,d,e,f,k,l){l=void 0===l?null:l;e||"ad-message"===d||"ad-text"===d||g.Sv(new g.Is("The UI component has undefined layoutId.",{componentType:d}));g.jI.call(this,c);this.api=a;this.eb=b;this.macros={};this.componentType=d;this.K=null;this.fb=l;this.layoutId=e;this.j=f;this.jb=k;this.Qa=null;this.JH=new dI(this.element);g.H(this,this.JH);this.Xa=this.T(this.element,"click",this.onClick);this.va=[];this.ma=new vza(this.onClick,this);g.H(this,this.ma);this.ib=!1;this.X=null};
lI=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Sv(Error("Got null or undefined adText object")),"";var c=g.Jh(a.text);if(!a.isTemplated)return c;if(null==b)return g.Sv(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};
zza=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Ub(a.thumbnails)||null==a.thumbnails[0].url)?"":g.Jh(a.thumbnails[0].url)};
Aza=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Ub(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Dh(0,0):new g.Dh(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
Bza=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.Cza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
mI=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.nI=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.oI=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"}}]}};
Dza=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"}}]}};
Eza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Fza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.pI=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"}}]}};
Gza=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"}}]}};
Hza=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"}}]}};
Iza=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"}}]}};
Jza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
g.qI=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"}}]}};
rI=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"}}]}};
Kza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
sI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.tI=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"}}]}};
Lza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Mza=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"}}]}};
Nza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
uI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
Oza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.vI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.wI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
Pza=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Qza=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"}}]}};
xI=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
yI=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.pI();case "INFO_OUTLINE":return Iza();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 sI();case "LIKE":return g.qI();case "DISLIKE":return Hza();default:return g.Sv(new g.Is("Unexpected icon:",a)),null}};
zI=function(a,b,c,d,e,f,k,l,m){f=void 0===f?[]:f;l=void 0===l?!1:l;f={G:"button",Fa:["ytp-ad-button"].concat(f)};null!=m&&(f.W={tabindex:m});kI.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()};
Rza=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||[]};
AI=function(){g.G.call(this);var a=this;this.j=new Map;this.u=Boa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Nt(b[c])})};
Sza=function(){null==BI&&(BI=new AI);return BI};
CI=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Tza(a))){b=di("SPAN",null,b);break a}b=g.fi(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(Uza(e,b))}return 1==c.length?c[0]:di("SPAN",null,c)};
Uza=function(a,b){var c=null,d=a.text;b&&(d=Tza(d)||d);a.bold&&(c=di("B",null,c||d));a.italics&&(c=di("I",null,c||d));a.strikethrough&&(c=di("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=di("A",null,c||d),g.uh(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Sza().register(c,a),g.M(c,"ytp-ad-has-logging-urls"));
return c||di("SPAN",null,d)};
Tza=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(di("BR")),b.push(a[c]);return b}return null};
DI=function(a,b,c,d,e,f,k,l,m){k=void 0===k?!1:k;l=void 0===l?[]:l;kI.call(this,a,b,{G:"span",Fa:["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()};
EI=function(a){return a&&a.thumbnails&&!g.Ub(a.thumbnails||null)&&a.thumbnails[0].url?g.Jh(a.thumbnails[0].url):""};
FI=function(a,b,c,d,e,f,k){k=void 0===k?!1:k;kI.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()};
GI=function(a,b,c,d,e,f,k){f=void 0===f?[]:f;kI.call(this,a,b,{G:"div",Fa:["ytp-ad-confirm-dialog-background"],U:[{G:"div",L:"ytp-ad-confirm-dialog-container",U:[{G:"div",Fa:["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",Fa:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{G:"span",L:"ytp-ad-button-icon",U:[g.pI()]}]}]},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()};
Vza=function(a,b){if(b.title){var c=g.Pw(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=CI(d.value),a.Z.appendChild(d)}b.cancelLabel&&(c=g.Pw(b.cancelLabel),a.Ka("cancelLabel",c),a.u.T(a.D,"click",function(e){return a.uD(e)}));
b.confirmLabel&&(b=g.Pw(b.confirmLabel),a.Ka("confirmLabel",b),a.u.T(a.J,"click",function(e){return a.LG(e)}));
a.u.T(a.S,"click",function(e){return a.KG(e)})};
HI=function(a,b,c,d,e,f,k){f=void 0===f?[]:f;k=void 0===k?"toggle-button":k;var l=KE("ytp-ad-toggle-button-input");kI.call(this,a,b,{G:"div",Fa:["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.xa=this.Ca("ytp-ad-toggle-button-text");
this.B=null;this.S=!1;this.hide()};
II=function(a){a.S&&(a.isToggled()?(g.Ym(a.J,!1),g.Ym(a.D,!0)):(g.Ym(a.J,!0),g.Ym(a.D,!1)))};
Wza=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||[]};
JI=function(a){fv.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.S)};
KI=function(a,b,c,d,e){kI.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.xa=this.Ca("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
$za=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new zI(a.api,a.eb,a.layoutId,a.j,a.jb,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(a,a.u),a.u.init(KE("button"),c,a.macros),a.u.Oa("click",a.pO,a),a.u.Ba(a.element));b.title&&(c=g.Pw(b.title),a.Ka("title",c));b.reasonsTitle&&(c=g.Pw(b.reasonsTitle),a.Ka("reasonsTitle",c));b.reasons&&Xza(a,b.reasons);b.cancelLabel&&(c=g.Pw(b.cancelLabel),a.Ka("cancelLabel",c),g.ou(a.J,"click",function(){return a.pO()}));
b.confirmLabel&&(c=g.Pw(b.confirmLabel),a.Ka("confirmLabel",c),g.ou(a.S,"click",function(){return Yza(a)}));
b.undoRenderer&&Zza(a,b.undoRenderer)};
Xza=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.Sv(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.Sv(Error("AdFeedbackReason.endpoint was not set.")):(c=new aAa(c,d),g.H(a,c),a.Z.appendChild(c.j.element),a.D.push(c)))}};
Zza=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new zI(a.api,a.eb,a.layoutId,a.j,a.jb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(a,a.B),a.B.init(KE("ad-feedback-undo-mute-button"),b,a.macros),a.B.Oa("click",a.eZ,a),a.B.Ba(a.xa)):g.Sv(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
Yza=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(LI(a.jb,b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ea("a"),a.hide())};
aAa=function(a,b){this.u=b;this.j=new g.jI({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.Pw(a)}]});this.B=this.j.Ca("ytp-ad-feedback-dialog-reason-input")};
MI=function(a,b,c,d,e){GI.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
NI=function(a,b,c,d,e,f){kI.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.Ra=this.Ca("ytp-ad-info-dialog-mute-container");this.Ia=this.Ca("ytp-ad-info-dialog-message");this.Da=this.Ca("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.xa=f;this.J=null;this.Ha=!1;this.Z=null;this.hide()};
bAa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new KI(a.api,a.eb,a.layoutId,a.j,a.jb),g.H(a,a.B),a.B.init(KE("ad-feedback-dialog"),b,a.macros),a.B.Ba(a.xa),a.B.subscribe("a",function(){return a.ea("c")})};
cAa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new MI(a.api,a.eb,a.layoutId,a.j,a.jb),g.H(a,a.D),a.D.init(KE("ad-mute-confirm-dialog"),b,a.macros),a.D.Ba(a.xa),a.D.subscribe("b",function(){return a.ea("c")})};
dAa=function(a){a.u&&a.u.Oa("click",a.QJ,a);g.ou(a.S,"click",function(){return a.QJ()})};
OI=function(a,b,c,d,e,f,k){DI.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()};
eAa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.S(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new NI(a.api,a.eb,a.layoutId,a.j,a.jb,a.C),g.H(a,a.u),a.u.init(KE("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")}))};
gAa=function(a,b,c){null==a.button?g.S(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.M(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(eAa(a,b,c),a.button.Oa("click",function(){a.u&&!a.u.tb&&(a.u.show(),fAa(a))})):a.button.Oa("click",function(){return fAa(a)}))};
fAa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
PI=function(a,b,c,d,e,f,k){kI.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()};
QI=function(a,b){b&&g.li(a.element,lI(a.u,b))};
RI=function(a,b,c,d,e,f,k,l){kI.call(this,a,b,c,d,e,f,k);this.u=l;g.H(this,this.u);this.Da=this.D=-1};
SI=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.hp,a),a.Da=a.u.subscribe("g",a.jr,a),a.hp())};
TI=function(a){null!=a.u&&-1!==a.D&&(a.u.Mf(a.D),a.u.Mf(a.Da),a.Da=-1,a.D=-1)};
g.UI=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.EC,0,this);g.H(this,this.delay)};
VI=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
WI=function(a,b,c,d,e,f,k){RI.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.Ia=-1;this.B=new g.jI({G:"span",L:"ytp-ad-preview-container"});g.H(this,this.B);this.C=new PI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-preview-text");g.H(this,this.C);this.C.Ba(this.B.element);this.S=new g.jI({G:"span",L:"ytp-ad-preview-image"});g.H(this,this.S);this.J=new FI(this.api,this.eb,this.layoutId,this.j,this.jb);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.UI(this.B,400,!1,100,function(){return l.hide()});
g.H(this,this.Z);this.xa=0;this.Ha=!1;this.Ra=k;this.hide()};
XI=function(a){a.Z.show(100);a.show()};
YI=function(a,b,c,d,e,f){RI.call(this,a,b,{G:"div",Fa:["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 FI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-flyout-cta-icon");g.H(this,this.S);
this.S.Ba(this.Ca("ytp-flyout-cta-icon-container"));this.J=new PI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-flyout-cta-headline");g.H(this,this.J);this.J.Ba(this.Ca("ytp-flyout-cta-headline-container"));this.C=new PI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-flyout-cta-description");g.H(this,this.C);this.C.Ba(this.Ca("ytp-flyout-cta-description-container"));this.B=new zI(this.api,this.eb,this.layoutId,this.j,this.jb,["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.xa=0;this.hide()};
ZI=function(a,b,c,d,e,f){kI.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 HI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.C);this.C.Ba(this.element);this.B=new HI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.B);this.B.Ba(this.element);this.D=new g.UI(this,400,!1,500,
function(){return k.hide()});
g.H(this,this.D);this.hide()};
$I=function(a,b,c,d,e){e=void 0===e?0:e;g.G.call(this);this.B=a;this.u=!1;this.X=d;this.J=!1;this.j=null;0<b&&(this.j=new g.L(this.jL,b,this),g.H(this,this.j));this.D=new g.L(this.jL,c,this);g.H(this,this.D);this.S=pia(this.B,e,1,d);g.H(this,this.S);this.K=pia(this.B,0,d,1);g.H(this,this.K);this.C=new fv;g.H(this,this.C)};
aJ=function(a,b,c,d,e,f,k){RI.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.xa=!1;this.Ha=k;this.C=new g.jI({G:"span",Fa:["ytp-ad-skip-button-container"]});g.H(this,this.C);this.C.Ba(this.element);this.B=this.J=null;this.Ia=new g.UI(this.C,500,!1,100,function(){return l.hide()});
g.H(this,this.Ia);this.Z=new $I(this.C.element,15E3,5E3,.5,.5);g.H(this,this.Z);this.hide()};
iAa=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?hAa(b.adLifecycleCommand):!1})};
hAa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
bJ=function(a,b,c,d,e,f,k){RI.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()};
jAa=function(a,b){a.J||(a.J=!0,a.B&&(b?a.B.Z.hide():a.B.hide()),b?(a=a.C,a.Ia.show(),a.show()):a.C.show())};
cJ=function(a,b,c,d,e){zI.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
dJ=function(a,b,c,d,e,f){f=void 0===f?!1:f;kI.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.u=f;this.hide()};
eJ=function(a,b,c,d,e){e=void 0===e?!1:e;LE.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.j=d;this.ij=e};
fJ=function(a,b){g.iv.call(this);this.api=a;this.durationMs=b;this.j=null;this.Lc=new fv(this);g.H(this,this.Lc);this.u=kAa;this.Lc.T(this.api,"presentingplayerstatechange",this.Tc);this.j=this.Lc.T(this.api,"onAdPlaybackProgress",this.Qb)};
gJ=function(a,b){g.iv.call(this);this.eb=b;this.u=!1;this.j=0;this.Lc=new fv(this);g.H(this,this.Lc);this.durationMs=a;this.timer=new g.Fi(100);g.H(this,this.timer);this.Lc.T(this.timer,"tick",this.Qb);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.hJ=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.iJ=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)};
jJ=function(a,b,c,d,e,f,k){RI.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()};
kJ=function(a,b,c,d,e){PI.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
lJ=function(a,b){this.u=a;this.j=b};
mJ=function(a){return a.j-a.u};
nJ=function(a,b){return a.u+b*mJ(a)};
oJ=function(a,b,c){return mJ(a)?g.xh((b-a.u)/mJ(a),0,1):null!=c?c:Infinity};
pJ=function(a,b){g.jI.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.H(this,this.u);this.Ic=this.Ca("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
qJ=function(a,b,c,d,e,f,k){kI.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;lAa(this)&&
(a=di("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 kJ(this.api,this.eb,this.layoutId,this.j,this.jb),c.Ba(a),c.init(KE("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.xa=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()};
lAa=function(a){a=a.api.V();return g.zC(a)&&a.isMobile};
nAa=function(a,b){var c=void 0===c?!0:c;var d=g.O("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.ej(window.location.href);e&&d.push(e);e=g.ej(a);if(g.Tb(d,e)||!e&&gb(a,"/"))if(g.Q("autoescape_tempdata_url")&&(d=document.createElement("a"),g.uh(d,a),a=d.href),a&&(a=Bca(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.Lv()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&mAa(a,b,f)}else mAa(a,b)};
mAa=function(a,b,c){a="ST-"+Kh(a).toString(36);b=b?g.uj(b):"";c=c||5;ks()&&g.Pr(a,b,c)};
rJ=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.wj("/sharing_services",a);g.Nt(d)};
g.pAa=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.wj(a,b)+c;var e=void 0===e?cga:e;e=dga(a,e)||oAa;d.href=sda(e)};
g.sJ=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.O("EVENT_ID");d&&(b.ei||(b.ei=d));b&&nAa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.pAa(a))};
g.tJ=function(a,b,c,d){c&&nAa(a,c);c=g.Xg(a);c=g.Tg(c);a!=c&&jr(Error("Unsafe window.open URL: "+a));a=c;b=b||Kh(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=qAa(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)};
qAa=function(a){return"www.googleadservices.com"!==g.ej(a)?a:a+"&nis=3"};
g.uJ=function(a,b,c){b=rAa(null,b,c);if(b=vh(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.Iu("LOGGED_IN",function(d){g.Ju(g.O("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)};
rAa=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=vj(c,"mode",a));a=vj(d,"next",c);b&&(a=vj(a,"feature",b));return a};
vJ=function(a){this.name=a};
wJ=function(){this.key=sAa};
tAa=function(){this.providers=new Map;this.j=new Map};
yJ=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.L_)var e=d.L_;else if(d.K_)e=d[xJ]?uAa(a,d[xJ],c):[],e=d.K_.apply(d,g.u(e));else if(d.NQ){e=d.NQ;var f=e[xJ]?uAa(a,e[xJ],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.iia||a.j.set(b,
e);return e};
uAa=function(a,b,c){return b?b.map(function(d){return d instanceof wJ?yJ(a,d.key,c,!0):yJ(a,d,c)}):[]};
vAa=function(a,b){if(!a)return!1;var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.Er)return!!b.Er[a.signalServiceEndpoint.signal];var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.DE)return!!b.DE[a.continuationCommand.request];for(var e in a)if(b.AE[e])return!0;return!1};
wAa=function(a,b){var c;if((null==(c=a.signalServiceEndpoint)?0:c.signal)&&b.Er&&(c=b.Er[a.signalServiceEndpoint.signal]))return c();var d;if((null==(d=a.continuationCommand)?0:d.request)&&b.DE&&(d=b.DE[a.continuationCommand.request]))return d();for(var e in a)if(b.AE[e]&&(a=b.AE[e]))return a()};
zJ=function(a){return function(){return new a}};
yAa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=xAa[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(xAa).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.AJ=function(a){return"/youtubei/v1/"+yAa(a)};
BJ=function(a){var b=g.O("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Bca(a)));return a};
zAa=function(a,b){var c={};g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.O("INNERTUBE_API_KEY"));g.Q("json_condensed_response")&&(c.prettyPrint="false");return a=qr(a,c)};
CJ=function(a,b){return{method:void 0===b?"POST":b,mode:rr(a)?"same-origin":"cors",credentials:rr(a)?"same-origin":"include"}};
DJ=function(){};
EJ=function(){};
FJ=function(a,b,c,d){this.C=a;this.hf=b;this.j=c;this.D=d;this.B=void 0;this.u=new Map;a.Er||(a.Er={});a.Er=Object.assign({},AAa,a.Er)};
BAa=function(a,b,c,d){if(void 0!==FJ.j){if(d=FJ.j,a=[a!==d.C,b!==d.hf,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 FJ.j=new FJ(a,b,c,d)};
HJ=function(a,b,c){var d=void 0===d?GJ:d;var e=wAa(b,a.C);if(!e)return Bi(new g.Is("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.yi(function(k){var l,m,n;return g.B(function(p){if(1==p.j)return m="cors"===(null==(l=f.yr)?void 0:l.mode)?"cors":void 0,a.j.iQ?(n=CAa(a,f.config,m),p.Ya(2)):g.A(p,DAa(a,f.config,m),3);2!=p.j&&(n=p.u);k(EAa(a,f,n));g.ua(p)})}):Bi(new g.Is("Error: Failed to build request for command.",b))};
g.MH=function(a,b,c,d,e){e=void 0===e?{Zp:{identity:GJ}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.GH(d,f));return new g.yi(function(k){var l,m,n,p,q;return g.B(function(t){if(1==t.j)return l=BJ(c),m=rr(l)?"same-origin":"cors",a.j.iQ?(n=CAa(a,e,m),t.Ya(2)):g.A(t,DAa(a,e,m),3);2!=t.j&&(n=t.u);var w=n;p=zAa(BJ(c),w);q={input:p,yr:CJ(p),ul:b,config:e};k(EAa(a,q,n));g.ua(t)})})};
EAa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,w,x,y,z,E,I,K,P;return g.B(function(aa){switch(aa.j){case 1:aa.Ya(2);break;case 3:if((d=aa.u)&&!d.isExpired())return aa.return(Promise.resolve(d.j()));case 2:if((f=null==(e=b.config)?void 0:e.fk)&&a.u.has(f)&&g.Q("web_memoize_inflight_requests"))return aa.return(a.u.get(f));if(null==(k=b)?0:null==(l=k.ul)?0:l.context)for(m=g.r([]),n=m.next();!n.done;n=m.next())p=n.value,p.Zha(b.ul.context);if(null==(q=a.B)?0:q.C(b.input,b.ul))return aa.return(a.B.B(b.input,
b.ul));t=JSON.stringify(b.ul);b.yr=Object.assign({},b.yr,{headers:c});w=Object.assign({},b.yr);"POST"===b.yr.method&&(w=Object.assign({},w,{body:t}));(null==(x=b.config)?0:x.KZ)&&lx(b.config.KZ);y=a.hf.fetch(b.input,w,b.config);f&&a.u.set(f,y);return g.A(aa,y,4);case 4:z=aa.u;f&&a.u.has(f)&&a.u.delete(f);(null==(E=b.config)?0:E.NZ)&&lx(b.config.NZ);if(z||null==(I=a.B)||!I.j(b.input,b.ul)){aa.Ya(5);break}return g.A(aa,a.B.u(b.input,b.ul),6);case 6:z=aa.u;case 5:if(z&&a.D)for(K=g.r(FAa),n=K.next();!n.done;n=
K.next())P=n.value,a.D[P]&&a.D[P].handleResponse(z,b);return aa.return(z)}})};
DAa=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.Zp)?void 0:e.identity)||GJ;m=null==(k=b)?void 0:null==(l=k.Zp)?void 0:l.sessionIndex;var q=Ai(a.j.uA(f,{sessionIndex:m}));return g.A(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},GAa(c),n)))})};
CAa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Zp)?void 0:d.identity)||GJ,f;b=null==b?void 0:null==(f=b.Zp)?void 0:f.sessionIndex;a=a.j.uA(e,{sessionIndex:b});return Object.assign({},GAa(c),a)};
GAa=function(a){var b={"Content-Type":"application/json"};g.Q("enable_web_eom_visitor_data")&&g.O("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.O("EOM_VISITOR_DATA"):g.O("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));"cors"!==a&&((a=g.O("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.O("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),g.Q("forward_domain_admin_state_on_embeds")&&
(a=g.O("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
IJ=function(){};
JJ=function(){};
KJ=function(){};
LJ=function(){};
MJ=function(){};
NJ=function(){};
OJ=function(a){this.j=a};
g.RJ=function(a,b){if(!PJ){QJ||(QJ=new tAa);var c=QJ;var d={AZ:HAa,NQ:OJ};c.providers.set(d.AZ,d);d={AE:{feedbackEndpoint:zJ(KJ),modifyChannelNotificationPreferenceEndpoint:zJ(LJ),playlistEditEndpoint:zJ(MJ),subscribeEndpoint:zJ(IJ),unsubscribeEndpoint:zJ(JJ),webPlayerShareEntityServiceEndpoint:zJ(NJ)}};var e=g.Q("web_enable_client_location_service")?FH.getInstance():void 0,f={};e&&(f.client_location=e);void 0===a&&(HH.j||(HH.j=new HH),a=HH.j);void 0===b&&(b=c.resolve(HAa));BAa(d,b,a,f);PJ=FJ.j}return PJ};
SJ=function(){};
IAa=function(){SJ.j||(SJ.j=new SJ);return SJ.j};
KAa=function(){if(!g.Q("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Q("disable_biscotti_fetch_entirely_for_all_web_clients")&&ks()&&"1"!=g.Xf(g.O("PLAYER_VARS",{}),"privembed",!1)){var a=function(){dK=!0;"google_ad_status"in window?ar("DCLKSTAT",1):ar("DCLKSTAT",2)};
try{g.jw("//web.archive.org/web/20220406233357/https://static.doubleclick.net/instream/ad_status.js",a)}catch(b){}JAa.push(g.tp.cg(function(){if(!(dK||"google_ad_status"in window)){try{if(a){var b=""+g.Ra(a),c=aqa[b];c&&g.Ju(c)}}catch(d){}dK=!0;ar("DCLKSTAT",3)}},5E3))}};
LAa=function(){var a=Number(g.O("DCLKSTAT",0));return isNaN(a)?0:a};
eK=function(){};
MAa=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)};
OAa=function(a,b){eK.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:NAa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:NAa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
NAa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
PAa=function(){this.state=1;this.j=null};
RAa=function(a,b,c,d,e,f){var k=void 0===k?"trayride":k;c?(a.state=2,g.jw(c,function(){if(window[k])QAa(a,d,k,e);else{a.state=3;var l=$pa(c),m=document.getElementById(l);m&&(Foa(l),m.parentNode.removeChild(m));g.Sv(new g.Is("Unable to load Botguard","from "+c))}},f)):b?(f=g.ei("SCRIPT"),f.textContent=b,f.nonce=wh(),document.head.appendChild(f),document.head.removeChild(f),window[k]?QAa(a,d,k,e):(a.state=4,g.Sv(new g.Is("Unable to load Botguard from JS")))):g.Sv(new g.Is("Unable to load VM; no url or JS provided"))};
QAa=function(a,b,c,d){a.state=5;try{var e=new Xj({program:b,globalName:c});e.XZ.then(function(){a.state=6;d&&d(b)});
SAa(a,e)}catch(f){a.state=7,f instanceof Error&&g.Sv(f)}};
TAa=function(a,b){var c=g.fK;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({qw:a}).then(d):d(null)})]):Promise.resolve(null)};
SAa=function(a,b){g.qf(a.j);a.j=b};
hK=function(a){return!gK||(0,g.R)()-gK>a};
g.jK=function(a,b){var c=g.cB(b.experiments,"bg_vm_reinit_threshold");b.N("always_reinit_bg_vm")&&(c=0);a.program&&(2===g.fK.state?0:hK(c))&&(Bx("bg_i",void 0,"player_att"),g.fK.initialize(a,function(){var d=a.serverEnvironment;Bx("bg_l",void 0,"player_att");gK=(0,g.R)();for(var e=0;e<iK.length;e++){var f=iK[e];try{f(d)}catch(k){}}},b.cspNonce))};
UAa=function(a){a=void 0===a?{}:a;return g.fK.invoke(a)};
VAa=function(a){var b=g.dr("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return TAa(a,b)};
XAa=function(a,b,c,d){var e=window.location.search;if(38===b.Da&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.wj("//web.archive.org/web/20220406233357/https://play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.eR});if(30===b.Da&&"docs"===a.playerStyle)return g.wj("https://web.archive.org/web/20220406233357/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:a.pd});if(33===b.Da&&"google-live"===a.playerStyle)return g.wj("//web.archive.org/web/20220406233357/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Da&&g.S(Error("getVideoInfoUrl for invalid namespace: "+a.Da));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.pd,ps:a.playerStyle,el:wE(b),hl:a.nf,list:b.playlistId,agcid:b.gO,aqi:b.adQueryId,sts:19088,lact:Du()};Object.assign(f,a.deviceParams);a.ib&&(f.forced_experiments=a.ib);b.Qa?(f.vvt=b.Qa,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):g.AE(b)&&(f.access_token=g.AE(b));b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.Qv&&(f.ad_id=b.Qv);null!==b.Sv&&(f.ad_sys=b.Sv);null!==b.cG&&(f.encoded_ad_playback_context=b.cG);b.MD&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Va&&2!==a.Va&&(f.cc_load_policy=a.Va);var k=g.rs(g.qs.getInstance(),65);g.UC(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.Kq&&(f.endscreen_ad_tracking=
b.Kq);(k=a.Z.get(b.videoId))&&k.Ry&&(f.ic_track=k.Ry);b.va&&(f.itct=b.va);zE(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.wl&&(f.autonav="1");b.oI&&(f.noiba="1");b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Og);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.hm&&(f.ytrcc=b.hm);b.VI&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.fh&&(k=3===b.fh.split("|").length,f.force_ad_params=k?b.fh:"||"+b.fh);b.bd&&(f.preload=
b.bd);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.nf&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");xE(b)&&(f.content_v=xE(b));b.ob&&(f.livemonitor=1);a.authUser&&(f.authuser=a.authUser);a.pageId&&(f.pageid=a.pageId);a.Ia&&(f.ei=a.Ia);a.j&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.B&&b.WC&&(f.live_start_walltime=b.WC);a.B&&b.nh&&(f.live_manifest_duration=b.nh);a.B&&b.playerParams&&(f.player_params=b.playerParams);a.B&&b.cycToken&&(f.cyc=b.cycToken);
a.B&&b.OD&&(f.tkn=b.OD);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.qb&&(f.kpt=b.qb);b.Ak&&(f.kids_age_up_mode=b.Ak);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Hp&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ma?(c=null!=b.ma.latitudeE7&&null!=b.ma.longitudeE7?b.ma.latitudeE7+","+b.ma.longitudeE7:",",c+=","+(b.ma.clientPermissionState||0)+","+(b.ma.locationRadiusMeters||"")+","+(b.ma.locationOverrideToken||"")):
c=null;c&&(f.uloc=c);b.Aj&&(f.internalipoverride=b.Aj);a.embedConfig&&(f.embed_config=a.embedConfig);a.xk&&(f.co_rel="1");0<a.ancestorOrigins.length&&(f.ancestor_origins=Array.from(a.ancestorOrigins).join(","));void 0!==a.homeGroupInfo&&(f.home_group_info=a.homeGroupInfo);void 0!==a.livingRoomAppMode&&(f.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(f.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(f.is_living_room_deeplink="1");b.Qp&&b.Rp&&(f.clip=b.Qp,f.clipt=b.Rp);b.Bq&&
(f.disable_watch_next="1");b.gh&&(f.forced_by_var="1");for(var l in f)!WAa.has(l)&&f[l]&&512<String(f[l]).length&&(g.Sv(Error("GVI param too long: "+l)),f[l]="");b=a.ma;g.yC(a)&&(b=Dw(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.ma);a=g.wj(b+"get_video_info",f);e&&(a=hma(a,e));return a};
g.kK=function(a,b){return a.ma+"timedtext_video?ref=player&v="+b.videoId};
g.lK=function(a,b){a.feature=b;return a};
g.mK=function(a,b){a.utm_source="yt-embeds-web";a.utm_medium=b};
YAa=function(a){var b={};a.ID&&(b.ytrext=a.ID);return g.Sf(b)?void 0:b};
g.ZAa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.fK.isInitialized()){var d="";b.videoData&&b.videoData.Va&&(d=b.videoData.Va+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);Bx("bg_v",void 0,"player_att");d=UAa(d);Bx("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else Bx("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.fK.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^LAa())},a);
this.videoData&&this.videoData.Va?this.j=mr(this.videoData.Va):this.j={}};
g.$Aa=function(a){if(a.videoData&&a.videoData.Va){for(var b=[a.videoData.Va],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};
bBa=function(a){var b={};Object.assign(b,a.u);g.Q("player_attestation_bg_async")&&(b.c1a=function(){return aBa(a)});
if(a.videoData&&a.videoData.Va){for(var c=[a.videoData.Va],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)};
aBa=function(a){function b(e){return e+"&r1d="+g.fK.getState()}
if(!g.fK.isInitialized())return Bx("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.Va&&(c=a.videoData.Va+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){Bx("bg_v",void 0,"player_att");VAa(d).then(function(f){f?(Bx("bg_s",void 0,"player_att"),e(b("r1a="+f))):(Bx("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){Bx("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.oK=function(a){var b=a.V(),c=g.nK(b),d=a.va;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=wE(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.ob?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.Ak)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:cBa[e]}});a.Hp&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.bd&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=dBa[b];c.request=d;d=c.user||{};if(b=a.Qa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.qb)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.nK=function(a){var b=g.GH(),c=b.client||{};if(a.ib){var d=a.ib.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.pd)b.thirdParty={embedUrl:a};return b};
iBa=function(a,b,c){var d=a.videoId,e=g.oK(a),f=a.V(),k={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Du()),referer:document.location.toString(),signatureTimestamp:19088};g.qs.getInstance();a.wl&&(k.autonav=!0);g.rs(0,141)&&(k.autonavState=g.rs(0,140)?"STATE_OFF":"STATE_ON");k.autoCaptionsDefaultOn=g.rs(0,66);zE(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.fh;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 w=g.r(t.value.split("="));t=w.next().value;w=la(w);p[t]=w.join("=")}q=p.url;t=p.presetad;w=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),w&&(m.viralAdResponseUrl=w),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=eBa[p.breaktype])y.breakType=p;q&&(y.url=q);t&&(y.presetAd=t);w&&(y.viralAdResponseUrl=w);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.WC;if(null!=m){m={startWalltime:String(m)};if(n=a.nh)m.manifestDuration=String(n||14400);k.liveContext=
m}a.mutedAutoplay&&(k.mutedAutoplay=!0);a.nf&&(k.splay=!0);m=a.vnd;5===m&&(k.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.hm)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Og){n=a.ID;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:fBa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:gBa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||
"",platform:hBa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(z){g.Sv(z)}w&&(t={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo: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.qC(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.UC(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.TQ&&(d.captionParams.deviceCaptionsLangPref=a.TQ);a.SD.length?d.captionParams.viewerSelectedCaptionLangs=a.SD:g.QC(e)&&e.N("web_player_i_see_captions_2")&&(f=g.Dta(),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.Pd&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Pd);e.N("fetch_att_independently")?(a=!e.N("html5_force_include_bg_data"),d.attestationRequest={omitBotguardData:a}):e.N("html5_exclude_bg_vm_data")&&(a=g.cB(e.experiments,"bg_vm_reinit_threshold"),d.attestationRequest={omitBotguardData:!hK(a)});return d};
kBa=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j)return c={context:g.nK(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.AJ(jBa),g.A(f,g.MH(b,c,d),2);e=f.u;return f.return(e)})};
lBa=function(a,b,c){var d=g.cB(b.experiments,"bg_vm_reinit_threshold");hK(d)&&kBa(a,c).then(function(e){e.botguardData&&g.jK(e.botguardData,b)},function(e){a.isDisposed()||(e=gD(e),a.ya("attf",{error:e.errorCode}))})};
pK=function(){var a=mBa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Nia.apply(null,[Oia.apply(null,g.u(b))].concat(g.u(c)));this.store=Qia(a,void 0,b)};
g.qK=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===k)d[f]=l;else if(Array.isArray(l)&&Array.isArray(k))d[f]=c?[].concat(g.u(k),g.u(l)):l;else if(!Array.isArray(l)&&g.Pa(l)&&!Array.isArray(k)&&g.Pa(k))d[f]=g.qK(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,Qha:k,Ka:l}),g.S(b),a}return d};
rK=function(a){this.u=a;this.C=this.j=0;this.B=-1};
sK=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};
tK=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.j+1<=a.u.totalLength;){0>c&&(c=sK(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:sK(a);break;case 1:a.j+=8;break;case 2:d=sK(a);a.j+=d;break;case 5:a.j+=4}}return!1};
uK=function(a,b){if(tK(a,b))return sK(a)};
nBa=function(a,b){if(tK(a,b))return!!sK(a)};
vK=function(a,b){if(tK(a,b)){b=sK(a);var c=ny(a.u,a.j,b);a.j+=b;return c}};
wK=function(a,b){if(a=vK(a,b))return g.uy(a)};
oBa=function(a,b,c){if(a=vK(a,b))return c(new rK(new iy([a])))};
xK=function(a,b){a=a instanceof Uint8Array?new iy([a]):a;return b(new rK(a))};
pBa=function(){this.j=0;this.B=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)};
yK=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)}};
zK=function(a,b){if(268435455<b){yK(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(yK(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};
AK=function(a,b,c){void 0!==c&&(zK(a,b<<3|0),zK(a,c))};
BK=function(a,b,c){void 0!==c&&AK(a,b,c?1:0)};
CK=function(a,b,c){void 0!==c&&(zK(a,b<<3|2),b=c.length,zK(a,b),yK(a,b),a.u.set(c,a.j),a.j+=b)};
DK=function(a,b,c){void 0!==c&&(qBa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),yK(a,1.2*c.length),b=wy(c,a.u.subarray(a.j)),a.j+b>a.u.length&&(yK(a,b),b=wy(c,a.u.subarray(a.j))),a.j+=b,rBa(a))};
qBa=function(a,b,c){c=void 0===c?2:c;zK(a,b<<3|2);a.B.push(a.j);a.B.push(c);a.j+=c};
rBa=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}};
EK=function(a,b,c,d,e){c&&(qBa(a,b,void 0===e?3:e),d(a,c),rBa(a))};
sBa=function(a,b){var c=new pBa;b(c,a);return new Uint8Array(c.u.buffer,0,c.j)};
g.FK=function(a){var b=new rK(new iy([Jc(decodeURIComponent(a))]));a=wK(b,2);b=uK(b,4);var c=tBa[b];if("undefined"===typeof c)throw a=new g.Is("Failed to recognize field number",{name:"EntityKeyHelperError",vha:b}),g.S(a),a;return{yU:b,entityType:c,entityId:a}};
g.GK=function(a,b){var c=new pBa;DK(c,2,a);a=uBa[b];if("undefined"===typeof a)throw b=new g.Is("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.S(b),b;AK(c,4,a);AK(c,5,1);b=new Uint8Array(c.u.buffer,0,c.j);return encodeURIComponent(g.Ac(b))};
HK=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))};
vBa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.qK(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))};
wBa=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 IK(a)};
IK=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};
xBa=function(a,b,c,d){if(g.Pa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
LK=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.X=new Set;JK(this,"cueVideoById",this.cueVideoById);JK(this,"loadVideoById",this.loadVideoById);JK(this,"cueVideoByUrl",this.cueVideoByUrl);JK(this,"loadVideoByUrl",this.loadVideoByUrl);JK(this,"playVideo",this.playVideo);JK(this,"pauseVideo",this.pauseVideo);JK(this,"stopVideo",this.stopVideo);JK(this,"clearVideo",this.clearVideo);
JK(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);JK(this,"getVideoBytesTotal",this.getVideoBytesTotal);JK(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);JK(this,"getVideoStartBytes",this.getVideoStartBytes);JK(this,"cuePlaylist",this.cuePlaylist);JK(this,"loadPlaylist",this.loadPlaylist);JK(this,"nextVideo",this.nextVideo);JK(this,"previousVideo",this.previousVideo);JK(this,"playVideoAt",this.playVideoAt);JK(this,"setShuffle",this.setShuffle);JK(this,"setLoop",this.setLoop);JK(this,
"getPlaylist",this.MU);JK(this,"getPlaylistIndex",this.getPlaylistIndex);JK(this,"getPlaylistId",this.getPlaylistId);JK(this,"loadModule",this.loadModule);JK(this,"unloadModule",this.unloadModule);JK(this,"setOption",this.setOption);JK(this,"getOption",this.getOption);JK(this,"getOptions",this.getOptions);JK(this,"mute",this.mute);JK(this,"unMute",this.unMute);JK(this,"isMuted",this.isMuted);JK(this,"setVolume",this.setVolume);JK(this,"getVolume",this.getVolume);JK(this,"seekTo",this.seekTo);JK(this,
"getPlayerMode",this.getPlayerMode);JK(this,"getPlayerState",this.getPlayerState);JK(this,"getPlaybackRate",this.getPlaybackRate);JK(this,"setPlaybackRate",this.setPlaybackRate);JK(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);JK(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
JK(this,"setPlaybackQuality",this.setPlaybackQuality);JK(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);JK(this,"getCurrentTime",this.getCurrentTime);JK(this,"getDuration",this.getDuration);JK(this,"addEventListener",this.JT);JK(this,"removeEventListener",this.FZ);JK(this,"getDebugText",this.getDebugText);JK(this,"getVideoData",function(){return c.HA()});
JK(this,"addCueRange",this.addCueRange);JK(this,"removeCueRange",this.removeCueRange);JK(this,"setSize",this.setSize);JK(this,"getApiInterface",this.getApiInterface);JK(this,"destroy",this.destroy);JK(this,"showVideoInfo",this.showVideoInfo);JK(this,"hideVideoInfo",this.hideVideoInfo);JK(this,"isVideoInfoVisible",this.isVideoInfoVisible);JK(this,"getSphericalProperties",this.getSphericalProperties);JK(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.V();a.D||(JK(this,"getVideoEmbedCode",
this.getVideoEmbedCode),JK(this,"getVideoUrl",this.getVideoUrl));JK(this,"getMediaReferenceTime",this.getMediaReferenceTime);JK(this,"getSize",this.getSize);a.D||JK(this,"logImaAdEvent",this.logImaAdEvent);KK(this,"getInternalApiInterface",this.getInternalApiInterface);KK(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);KK(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);KK(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);KK(this,"getAdState",this.getAdState);KK(this,"sendAbandonmentPing",
this.sendAbandonmentPing);KK(this,"setLoopRange",this.setLoopRange);KK(this,"getLoopRange",this.getLoopRange);KK(this,"setAutonavState",this.setAutonavState);KK(this,"seekToLiveHead",this.seekToLiveHead);KK(this,"seekToStreamTime",this.seekToStreamTime);KK(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);KK(this,"startSeekCsiAction",this.startSeekCsiAction);KK(this,"getStreamTimeOffset",this.getStreamTimeOffset);KK(this,"getVideoData",this.HA);KK(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);
KK(this,"downloadVideo",this.downloadVideo);KK(this,"queueOfflineAction",this.queueOfflineAction);KK(this,"pauseVideoDownload",this.pauseVideoDownload);KK(this,"resumeVideoDownload",this.resumeVideoDownload);KK(this,"refreshAllVideos",this.refreshAllVideos);KK(this,"deleteVideos",this.deleteVideos);KK(this,"deleteAllVideos",this.deleteAllVideos);KK(this,"isOrchestrationLeader",this.isOrchestrationLeader);KK(this,"getAppState",this.getAppState);KK(this,"addInfoCardXml",this.addInfoCardXml);KK(this,
"updateLastActiveTime",this.updateLastActiveTime);KK(this,"setBlackout",this.setBlackout);KK(this,"setAccountLinkState",this.setAccountLinkState);KK(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);KK(this,"setUserEngagement",this.setUserEngagement);KK(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);KK(this,"getPresentingPlayerType",this.getPresentingPlayerType);KK(this,"canPlayType",this.canPlayType);KK(this,"updatePlaylist",this.updatePlaylist);KK(this,"updateVideoData",
this.updateVideoData);KK(this,"updateEnvironmentData",this.updateEnvironmentData);KK(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);KK(this,"setCardsVisible",this.setCardsVisible);KK(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);KK(this,"setSafetyMode",this.setSafetyMode);KK(this,"isAtLiveHead",function(d){return c.isAtLiveHead(void 0,d)});
KK(this,"getVideoAspectRatio",this.getVideoAspectRatio);KK(this,"getPreferredQuality",this.getPreferredQuality);KK(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);KK(this,"onAdUxClicked",this.onAdUxClicked);KK(this,"getFeedbackProductData",this.getFeedbackProductData);KK(this,"getStoryboardFrame",this.getStoryboardFrame);KK(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);KK(this,"getStoryboardLevel",this.getStoryboardLevel);KK(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
KK(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);KK(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);KK(this,"addUtcCueRange",this.addUtcCueRange);KK(this,"showAirplayPicker",this.showAirplayPicker);KK(this,"addBgVersionChangeCallback",this.addBgVersionChangeCallback);KK(this,"dispatchReduxAction",this.dispatchReduxAction);KK(this,"getPlayerResponse",this.getPlayerResponse);KK(this,"setAutonav",this.setAutonav);KK(this,"isNotServable",this.isNotServable);KK(this,
"channelSubscribed",this.channelSubscribed);KK(this,"channelUnsubscribed",this.channelUnsubscribed);KK(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);KK(this,"togglePictureInPicture",this.togglePictureInPicture);KK(this,"supportsGaplessAudio",this.supportsGaplessAudio);KK(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
KK(this,"clearQueue",this.clearQueue);KK(this,"isFastLoad",function(){return!1});
KK(this,"getAudioTrack",this.AU);KK(this,"setAudioTrack",this.setAudioTrack);KK(this,"getAvailableAudioTracks",this.BU);KK(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);KK(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);KK(this,"getStatsForNerds",this.getStatsForNerds);KK(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);KK(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);KK(this,"setMinimized",this.setMinimized);KK(this,"confirmYpcRental",
this.confirmYpcRental);KK(this,"setInlinePreview",this.setInlinePreview);KK(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);KK(this,"handleExternalCall",this.handleExternalCall);KK(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);KK(this,"setScreenLayer",this.setScreenLayer);KK(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);KK(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);KK(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);
KK(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);KK(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);KK(this,"setGlobalCrop",this.setGlobalCrop);KK(this,"getVisibilityState",this.getVisibilityState);KK(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);KK(this,"setInternalSize",this.setInternalSize)};
JK=function(a,b,c){a.D[b]=function(){var d=g.Ca.apply(0,arguments);a.Na();return c.apply(a,d)};
a.u.hasOwnProperty(b)||KK(a,b,c);a.S.push(b)};
MK=function(a,b,c){a.K[b]=function(){var d=g.Ca.apply(0,arguments);a.Na();return c.apply(a,d)};
a.u.hasOwnProperty(b)||KK(a,b,c);a.S.push(b)};
KK=function(a,b,c){a.u[b]=function(){var d=g.Ca.apply(0,arguments);a.Na();return c.apply(a,d)}};
eza=function(a){a.B||(a.B={},Object.assign(a.B,a.D),Object.assign(a.B,a.K),a.B.addEventListener=function(b,c){yBa(a,b,c)},a.B.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Ra(c));
var d=a.C[c];d&&(a.app.qm.unsubscribe(b,d),g.Wf(a.C,c))});
return a.B};
yBa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Ra(c));if(!a.C[d]){var e;"string"===typeof c?e=function(){var k=g.Ca.apply(0,arguments);g.Ka(c).apply(window,k)}:e=c;
var f=function(k){e({target:a.B,data:k})};
a.C[d]=f;a.app.qm.subscribe(b,f)}};
zBa=function(a,b,c){b=g.xh(Math.floor(b),0,100);isFinite(b)&&NK(a.app,{volume:b,muted:a.isMuted()},c)};
ABa=function(a,b){NK(a.app,{muted:!0,volume:a.getVolume()},b)};
BBa=function(a,b){NK(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.PK=function(a){var b=OK(a.app.sb());if(b)return b.Lw();a=a.app.sb();a=g.BC(a.I.V())?a.Nd.get("music"):void 0;return a?a.Lw():null};
RK=function(a,b){LK.call(this,a,b);var c=this;this.j=!1;MK(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(QK(c,d),e)});
MK(this,"loadVideoByPlayerVars",function(d,e,f,k){c.loadVideoByPlayerVars(QK(c,d),e,f,k)});
MK(this,"preloadVideoByPlayerVars",function(d,e,f,k){return void c.preloadVideoByPlayerVars(QK(c,d),e,f,k)});
MK(this,"seekBy",this.seekBy);MK(this,"mutedAutoplay",this.mutedAutoplay);MK(this,"showControls",this.showControls);MK(this,"hideControls",this.hideControls);MK(this,"cancelPlayback",this.cancelPlayback);MK(this,"getProgressState",this.getProgressState);MK(this,"isInline",this.isInline);MK(this,"setInline",this.setInline);MK(this,"setLoopVideo",this.setLoopVideo);MK(this,"getLoopVideo",this.getLoopVideo);MK(this,"getStoryboardFormat",this.getStoryboardFormat);MK(this,"getVideoContentRect",this.getVideoContentRect);
MK(this,"toggleFullscreen",this.toggleFullscreen);MK(this,"isFullscreen",this.isFullscreen);MK(this,"getVideoStats",this.getVideoStats);MK(this,"getPlayerSize",this.getPlayerSize);MK(this,"toggleSubtitles",this.toggleSubtitles);MK(this,"setCenterCrop",this.setCenterCrop);MK(this,"setFauxFullscreen",this.setFauxFullscreen);MK(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);MK(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);MK(this,"setSizeStyle",this.setSizeStyle);MK(this,"wakeUpControls",this.wakeUpControls)};
QK=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.SK=function(a){RK.call(this,a);this.vD=this.settingsMenu=null};
g.TK=function(a){a=a.sb();var b=a.Nd.get("endscreen");return b&&b.Cr()?!0:a.Dy()||g.BC(a.I.V())};
g.UK=function(a,b){3===a.getPresentingPlayerType()?a.ea("mdxautoplaycancel"):a.ea("autonavcancel",b)};
g.WK=function(a){var b=VK(a.sb());return a.app.Eg&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.ol()||!!a.getPlaylist()};
g.YK=function(a){return(a=g.XK(a.sb()))?a.EA():{}};
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.ib)};
g.ZK=function(a,b,c){a=a.bb().element;var d=jc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.hi(a,b,d);b.setAttribute("data-layer",String(c))};
g.$K=function(a){var b=a.V();if(!b.Tb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!FE(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.Tb(c.ra,"ypc")&&!a&&(!g.qC(b)||f)};
HBa=function(a){a=g.aL(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.cJ)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.ya("iqss",{trigger:d},!0),!0):!1};
bL=function(a){this.Y=a;this.u=this.j=NaN};
cL=function(a,b){this.Y=a;this.timerName="";this.C=!1;this.u=this.B=NaN;this.D=new bL(a);this.j=b||null;this.C=!1};
dL=function(a,b){UG(b,void 0,a.timerName)};
IBa=function(a,b,c){var d=g.wC(b.B)&&!b.B.D;if(b.B.ph&&(sC(b.B)||"shortspage"===b.B.Ha||ZC(b.B)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.O("TIMING_ACTION")||ar("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&ar("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Li();for(var e=g.r(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,lx(f,d[f],a.timerName);d=a.j.aA;e=g.r(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.ox(f,d[f],a.timerName);d=a.j;d.j={};d.aA={}}g.ox("yt_pvis",
Cx(),a.timerName);g.ox("yt_pt","html5",a.timerName);a.J!==b.clientPlaybackNonce||Number.isNaN(a.B)||(Ax("_start",a.timerName)?c=Sw(a.timerName)._start+a.B:g.Sv(new g.Is("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!Ax("pbs",a.timerName)&&a.tick("pbs",c)}};
JBa=function(a){if(a.j){var b=a.j;b.j={};b.aA={}}a.C=!1;a.J=void 0;a.B=NaN};
eL=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 nD("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.oD(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=pD(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
fL=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.gL=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.SD(a.u,b),g.H(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
hL=function(a,b){a.index=g.xh(b,0,a.length-1);a.startSeconds=0};
iL=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.gL(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.RJ();var n=a.V(),p={context:g.oK(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 w,x,y,z,
E,I,K;q=(null==(w=q)?void 0:null==(x=w.embedPreview)?void 0:null==(y=x.thumbnailPreviewRenderer)?void 0:null==(z=y.playButton)?void 0:null==(E=z.buttonRenderer)?void 0:null==(I=E.navigationEndpoint)?void 0:null==(K=I.watchEndpoint)?void 0:K.videoId)||null}else q=null}w=(w=q)?w:void 0;x=a.playlistId?a.playlistId:b.list;y=b.listType;if(x){var P;"user_uploads"===y?P={username:x}:P={playlistId:x};MBa(n,w,b,P);p.playlistRequest=P}else b.playlist?(P={templistVideoIds:b.playlist.toString().split(",")},MBa(n,
w,b,P),p.playlistRequest=P):w&&(P={videoId:w},n&&(P.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=P);d=p;e=g.AJ(NBa);g.va(m,2);return g.A(m,g.MH(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.SD(k,b));l=g.xa(m);g.S(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.kL=function(a,b){jL.get(a);jL.set(a,b)};
g.lL=function(a){g.iv.call(this);this.loaded=!1;this.player=a};
PBa=function(){this.u=[];this.j=[]};
g.mL=function(a,b){return b?a.j.concat(a.u):a.j};
g.nL=function(a,b){switch(b.kind){case "asr":QBa(b,a.u);break;default:QBa(b,a.j)}};
QBa=function(a,b){g.Qb(b,function(c){return a.equals(c)})||b.push(a)};
g.oL=function(a){g.G.call(this);this.Y=a;this.u=new PBa;this.C=[]};
g.pL=function(a,b,c){g.oL.call(this,a);this.audioTrack=c;this.j=null;this.C=b.Xv};
RBa=function(){this.j=10;this.Gh=!1};
SBa=function(a,b){var c=void 0===b?{}:b,d=void 0===c.ql?!1:c.ql;b=new RBa;b.Gh=(void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4)||d;if(a=g.cB(a.experiments,"html5_time_based_consolidation_ms"))b.j=a;return b};
g.TBa=function(a){this.j=a;this.D=new RBa;this.Vl=this.Ul=!1;this.Hk=2;this.K=20971520;this.X=8388608;this.J=120;this.qb=3145728;this.xa=62914560;this.ub=10485760;this.Ik=g.cB(this.j.experiments,"html5_min_readbehind_secs");this.Nv=g.cB(this.j.experiments,"html5_min_readbehind_cap_secs");this.Mv=g.cB(this.j.experiments,"html5_max_readbehind_secs");this.Vv=this.j.N("html5_trim_future_discontiguous_ranges");this.Ob=NaN;this.ph=0;this.Qp=this.cj=this.Gp=2;this.Ha=2097152;this.cm=1048576;this.Va=!1;this.bd=
1800;this.Bk=5;this.va=15;this.Dd=1;this.B=1.15;this.C=1.05;this.mj=1;this.Mk=!0;this.Ia=!1;this.Rp=.8;this.Sb=!1;this.Yv=this.j.N("html5_update_representation_init_boxes");this.yj=!1;this.Cb=6;this.Z=this.ib=!1;this.Jk=this.Wb=0;this.Zr=this.j.N("html5_append_init_while_paused");this.Wl=g.cB(this.j.experiments,"html5_post_interrupt_readahead");this.Hb=5E3;this.Fp=100;this.wj=10;this.rr=g.cB(this.j.experiments,"html5_ssdai_failure_retry_limit")||3;this.vk=this.j.experiments.kb("html5_clone_original_for_fallback_location");
this.Tv=this.j.experiments.kb("html5_ssdai_reset_on_video_only_killswitch");this.Qf=1;this.ih=1.6;this.fb=!1;this.ma=.5;this.Dc=2;this.pc=this.Or=0;this.Pr=1.5;this.Qr=this.nh=.5;this.Vd=15;this.Ak=1;this.Kq=this.Fb=!1;this.Gk=0;this.mm=this.Jr=this.Aj=this.Yl=this.Nk=!1;this.Lb=2;this.gr=this.sj=!1;this.Ei=0;this.Zf=this.Hp=this.ra=this.Nr=this.dg=!1;this.Ra=!0;this.Yf=this.Ub=this.Xl=this.Qa=!1;this.yk=!0;this.gh=!1;this.u="";this.Hs=1048576;this.Vc=[];this.Is=this.j.N("html5_woffle_resume");this.Pd=
!1;this.Wa=!0;this.zj=this.Th=this.pd=!1;this.nf=46800;this.Jq=this.nj=this.ej=this.Zl=this.Qd=this.ob=!1;this.S=0;this.vj="";this.qs=this.j.N("html5_disable_codec_for_playback_on_error");this.Vh=this.Yr=this.xj=this.fh=!1;this.xe=0;this.Rv=ds();this.Mq=this.zk=!1;this.gs=this.j.N("html5_skip_buffer_check_seek_to_head");this.Pc=!1;this.kq=!this.j.N("html5_reset_media_stream_discontinuity_killswitch");this.bj=!1;this.Pf=8192;this.Da=this.Tb=!1;this.Bq=1;this.Xv=this.j.N("html5_update_readahead_from_real_byterates");
this.Wv=this.j.N("html5_onesie_live");this.Ov=g.cB(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Lk=g.cB(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.wk=this.j.experiments.kb("html5_onesie_consume_media_slices");this.Sv=this.j.N("html5_self_init_consolidation");this.Kr=this.j.N("html5_stream_metadata");this.Xa=this.j.N("html5_onesie_ads");this.Lv=this.j.N("html5_match_smb_cuepoints_start_secs");this.hs=this.j.N("html5_live_partial_response_resumable");this.me=this.j.N("html5_ssdai_log_ad_transition_info");
this.xk=this.j.N("html5_eliminate_net_retryexhausted_error");this.Kk=this.j.N("html5_no_deferred_permanent_error");this.Qv=g.cB(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.ls=this.j.N("html5_constrain_fallback_format_bounding_volume");this.Kv=this.j.N("html5_onesie_consume_media_slices");this.Pv=this.j.N("html5_onesie_nonzero_playback_start")};
UBa=function(a,b){1080<b.video.j&&!a.Ul&&(a.K=36700160,a.X=5242880,a.qb=10485760,a.Ha=4194304,a.Ul=!0);2160<b.video.j&&!a.Vl&&(a.K=104857600,a.Ob=13107200,a.Vl=!0);b.isEncrypted()&&g.$r()&&Yr("kant")&&(a.Ob=1310720);b.Ob&&(a.cm=Math.max(65536,Math.min(a.Ha,5*b.Ob)))};
g.qL=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.SC(b.V())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Cf())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.qL(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Ysa(a.j);return b||a};
g.rL=function(a,b,c,d,e){g.oL.call(this,a);this.videoId=c;this.aN=e;this.D={};this.j=null;a=d||g.or(b).hl||"";a=a.split("_").join("-");this.B=pr(b,{hl:a})};
sL=function(a,b){g.G.call(this);this.I=a;this.C=b;this.aA={};this.j={};this.u=null;this.D=this.I.N("web_player_defer_modules");this.B=new Set;this.Nd=new Map};
g.tL=function(a){return a.Nd.get("captions")};
YBa=function(a,b){switch(b){case "ad":return uL(a);case "annotations_module":return b=a.I.V(),a=a.I.getVideoData(),a.jJ||"3"===b.controlsType?!1:b.Z.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Ra||!!g.uE(a)||!!g.vE(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.pwa(a)||!!g.qwa(a))),a;case "embed":return g.qC(a.I.V());case "endscreen":return g.WBa(a);case "heartbeat":return a.ZH();case "inline_preview":return a.I.V().showInlinePreviewUi;case "kids":return IC(a.I.V());case "remote":return a.I.V().fb;case "miniplayer":return a.I.V().showMiniplayerUiWhenMinimized;case "music":return g.BC(a.I.V());case "offline":return a.I.V().Qf;case "captions":return b=a.I.getVideoData(),!!b.Hb||!!b.captionTracks.length||g.VBa(b,a.I);case "unplugged":return g.yC(a.I.V());
case "ux":return a.I.V().Fb;case "webgl":return XBa(a);case "ypc":return a.Dy();case "ypc_clickwrap":return a=a.I.getVideoData(),a.me&&!a.II;case "yto":return!!a.I.getVideoData().ra.includes("yto");default:return g.S(Error("Module descriptor "+b+" does not match")),!1}};
vL=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var k=a.Nd.get(b);if(!k||d)if(e||(e=function(){vL(a,b,c,d)}),f||(f=function(){a.I.Je(b)}),k=k||ZBa(a,b,YBa(a,b),e,f))a.Nd.set(b,k),k.create(),c&&a.I.La("onApiChange")};
$Ba=function(a){wL(a)&&a.GE();a.D&&(vL(a,"captions",!0),vL(a,"endscreen"),a.HE(),vL(a,"creatorendscreen",!0))};
wL=function(a){a=a.I.getVideoData();return a.N("web_player_defer_ad")&&!g.Tb(a.ra,"ad")};
g.WBa=function(a){var b=a.I.V();if(ZC(b)||b.D||!b.Hb&&!b.Qd)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.XK=function(a){return a.Nd.get("webgl")};
XBa=function(a){var b=a.I.getVideoData();a=a.I.V();var c=g.xma(),d=a.N("enable_spherical_kabuki"),e=g.YC(a);if(g.tE(b))return c||d||e||a.N("html5_enable_spherical");if(g.qE(b))return e||c||d||a.N("html5_enable_spherical");if(g.rE(b))return e||c||a.N("html5_enable_spherical3d");if(g.sE(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.jE(b)&&!c&&(a.N("enable_webgl_noop")||a.N("html5_enable_bicubicsharp"))};
aCa=function(a){a.I.V().N("web_player_ux_module_wait")&&a.Nd.get("ux")&&a.I.Je("ux")};
bCa=function(a){aCa(a);vL(a,"ux",!0)};
uL=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=jL.get(b);if(f)return new f(a.I);cCa(a,b,d,e)}else a.I.Je(b)}catch(k){a.I.Je(b),g.S(k)}return null};
xL=function(a,b,c){for(var d=g.r(a.Nd),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.gi(b))&&(g.qf(f),a.Nd.delete(e))}};
yL=function(a){return a.Nd.get("ad")};
zL=function(a){if(IC(a.I.V()))return a.Nd.get("kids")};
VK=function(a){if(a.I.V().fb)return a.Nd.get("remote")};
g.AL=function(a){if(g.yC(a.I.V()))return a.Nd.get("unplugged")};
OK=function(a){if(a.I.V().Fb)return a.Nd.get("ux")};
BL=function(a){if(a.I.V().Qf)return a.Nd.get("offline")};
g.CL=function(a){return a.Nd.get("annotations_module")};
DL=function(a){return a.Nd.get("creatorendscreen")};
eCa=function(a){var b=a.C.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){dCa(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.Ya(0)):g.A(k,e(),3);f=k.u;c(f);g.ua(k)})},function(){d("player wasm load failure")})})};
cCa=function(a,b,c,d){if(a.C){var e=fCa[b];dCa(a,a.C+e,function(){a.B.add(e);c.call(a)},d)}};
dCa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var k=g.Th("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.ei("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){qi(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.S(z)}qi(e);t&&t(y)};
var w=m,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":qi(f)}x&&x(y)};
l&&((k=a.I.V().cspNonce)&&m.setAttribute("nonce",k),g.ak(m,g.Qg(b)),k=g.Th("HEAD")[0]||document.body,k.insertBefore(m,k.firstChild),g.sf(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
EL=function(a,b,c){g.vf.call(this,b,a);this.j=c};
g.FL=function(a){iH.call(this);var b=this;this.j=a;this.D={};this.listener=function(c){b.dispatchEvent(new EL(b,c.type,c))}};
HL=function(a,b,c,d,e){g.iv.call(this);var f=this;this.target=a;this.Rz=b;this.u=0;this.J=!1;this.C=new g.Bh(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.X=new g.L(function(){GL(f,1,!1)},b,this);
g.H(this,this.X);this.Z=new g.L(function(){GL(f,2,!1)},b,this);
g.H(this,this.Z);this.ma=new g.L(function(){GL(f,512,!1)},b,this);
g.H(this,this.ma);this.ra=c&&0<c.Pc.length?5E3:3E3;d||(this.B=this.j.T(a,"mouseover",this.qB),this.j.T(a,"mousemove",this.fW),this.j.T(a,"mouseleave",this.gW));Nm?this.j.T(a,"keypress",this.IV):this.j.T(a,"focusin",this.EU);this.D=this.j.T(a,"mousedown",this.VN);this.S=this.j.T(a,"touchstart",this.sQ,void 0,!0);GL(this,640,!0)};
gCa=function(a){GL(a,4,!1);a.K&&(a.j.vc(a.K),a.K=null,a.B=a.j.T(a.target,"mouseover",a.qB));a.B&&(a.j.vc(a.B),a.B=a.j.T(a.target,"mouseover",a.qB))};
GL=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.X.start(),b&2&&a.Z.start()):(a.u&=~b,b&1&&a.X.stop(),b&2&&a.Z.stop(),b&512&&a.ma.stop());a.u&512&&!(a.u&128)&&g.xp(a.ma,a.ra);b=!a.u;d!==b&&a.ea("autohideupdate",b)};
g.IL=function(a){g.W.call(this,{G:"button",Fa:["ytp-large-play-button","ytp-button"],W:{"aria-label":"Play"},U:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ja);g.wC(this.api.V())&&this.api.N("embeds_web_enable_red_play_button_on_preview")&&g.M(this.element,"ytp-large-play-button-red-bg");this.Ja()};
g.JL=function(a){var b=["ytp-cued-thumbnail-overlay"];a.V().D&&b.push("ytp-exp-contain-thumbnail");g.W.call(this,{G:"div",Fa:b,U:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ca("ytp-cued-thumbnail-overlay");var c=new g.IL(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.UI(this,250);g.H(this,this.u);this.j=new g.L(this.Ja,0,this);g.H(this,this.j);this.Ja();this.T(a,"appresize",this.xb);this.T(a,
"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.oZ);sC(a.V())&&this.T(a,"videoplayerreset",this.dS)};
hCa=function(a){var b=!a.V().fh&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.KL=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.iJ(a))return g.vu(a),!0;b.pauseVideo();a=e.getAttribute("href");g.sJ(a,d,!0);return!1};
g.LL=function(a,b,c){if(OC(b.V())&&2!==b.getPresentingPlayerType()){if(g.iJ(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.vu(c),!0}else if(b.V().N("embeds_enable_webview_nonjs_navigation")&&g.qC(b.V())&&(is()||gs()))b=c.target,b instanceof HTMLAnchorElement&&(a=dga(a),b.href=sda(a));else{var d=g.iJ(c);d&&b.pauseVideo();g.sJ(a,void 0,!0);d&&(g.tJ(a),g.vu(c))}return!1};
iCa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}],L:"ytp-subtitles-button-icon"}};
ML=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"}]}]}]}};
NL=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
OL=function(a,b,c){a=a.V();return a.N("desktop_player_button_tooltip_with_shortcut")&&!a.Zf?g.MF("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.PL=function(a){g.W.call(this,{G:"div",Fa:["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.QL=function(a){a=a.split(jCa);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}};
SL=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.MF(g.RL[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}};
kCa=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)}};
lCa=function(a){for(var b=0;b<a.keys.length;b++)a.vc(a.keys[b]);a.keys=[]};
TL=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.qg);this.onVideoDataChange()};
UL=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
mCa=function(a){UL(a,"play",function(){a.I.playVideo()});
UL(a,"pause",function(){a.I.pauseVideo()});
UL(a,"seekbackward",function(){a.I.seekBy(-5*a.I.getPlaybackRate())});
UL(a,"seekforward",function(){a.I.seekBy(5*a.I.getPlaybackRate())})};
nCa=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};
oCa=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.Fw(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
pCa=function(a){var b=a.I.yb();b=b.isCued()||b.isError()?"none":g.sH(b)?"playing":"paused";a.mediaSession.playbackState=b};
VL=function(a){g.W.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.B=!1;this.Md=this.j=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.TC(b)?(this.u=new g.W({G:"a",L:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},U:[{G:"div",L:"ytp-paid-content-overlay-icon",oa:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",oa:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",oa:"{{chevron}}"}]}),
this.T(this.u.element,"click",this.onClick)):this.u=new g.W({G:"div",Fa:["ytp-button","ytp-paid-content-overlay-text"],oa:"{{text}}"});this.C=new g.UI(this.u,250,!1,100);g.H(this,this.u);this.u.Ba(this.element);g.H(this,this.C);this.I.dh(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Tc)};
rCa=function(a,b){var c=nwa(b),d=kE(b);b.me&&a.I.ll()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.zp(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&qCa(a,d,c,b)):c&&d&&qCa(a,d,c,b))};
qCa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.L(a.Db,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.hk(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.oI():null})};
sCa=function(a,b){a.j&&(g.V(b,8)&&a.B?(a.B=!1,a.jd(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))};
WL=function(a){g.W.call(this,{G:"div",L:"ytp-spinner",U:[ML(),{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();tCa(a)?this.j.start():this.hide()};
tCa=function(a){return g.V(a,128)?!1:g.V(a,16)||g.V(a,1)?!0:!1};
g.XL=function(a,b,c,d){d=void 0===d?!1:d;g.jI.call(this,b);var e=this;this.I=a;this.xa=d;this.K=new g.iA(this);this.X=new g.UI(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())});
g.H(this,this.K);g.H(this,this.X)};
uCa=function(a){a.u&&(document.activeElement&&g.ki(a.element,document.activeElement)&&(mi(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.hv(a.K);a.S=void 0};
YL=function(a,b,c){a.hg()?a.Db():a.jd(b,c)};
ZL=function(a){var b=g.VA(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Fa:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{G:"div",Fa:["ytp-unmute-text"],oa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Fa:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.XL.call(this,a,{G:"button",Fa:["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.qg);this.Oa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.qC(this.api.V());g.iI(this,a);a&&vCa(this);this.B=a};
vCa=function(a){a.j||(a.j=!0,a.api.Za(a.element,!0))};
g.aM=function(a){g.iA.call(this);var b=this;this.api=a;this.uG=!1;this.vl=null;this.Zz=!1;this.Le=null;this.FE=this.xC=!1;this.zI=this.BI=null;this.yN=NaN;this.yI=this.Aw=!1;this.Ex=0;this.YD=[];var c=a.V(),d=a.bb();this.kL=new g.L(this.GG,0,this);g.H(this,this.kL);g.BC(c)||(this.jm=new g.JL(a),g.H(this,this.jm),g.ZK(a,this.jm.element,4));if(wCa(this)){var e=new WL(a);g.H(this,e);e=e.element;g.ZK(a,e,4)}var f=a.getVideoData();this.Jd=new HL(d,function(l){return b.Rz(l)},f,c.me,VC(c));
g.H(this,this.Jd);this.Jd.subscribe("autohideupdate",this.Xj,this);if(!c.disablePaidContentOverlay){var k=new VL(a);g.H(this,k);g.ZK(a,k.element,4)}this.CC=new ZL(a);g.H(this,this.CC);g.ZK(this.api,this.CC.element,2);this.LF=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.tC=new g.L(this.Lu,200,this);g.H(this,this.tC);this.gG=f.videoId;this.DP=new g.L(function(){b.Ex=0},350);
g.H(this,this.DP);this.cA=new g.L(function(){b.yI||$L(b)},350,this);
g.H(this,this.cA);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.M(f,"ytp-color-white")}g.BC(c)&&g.M(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new TL(a),g.H(this,f));this.T(a,"appresize",this.xb);this.T(a,"presentingplayerstatechange",this.qg);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.VX);this.T(a,"autonavvisibility",
function(){b.pn()});
this.T(a,"sizestylechange",function(){b.pn()});
this.T(d,"click",this.sY,this);this.T(d,"dblclick",this.tY,this);c.Wa&&(this.T(d,"gesturechange",this.uY,this),this.T(d,"gestureend",this.vY,this));this.To=[d.pw];this.jm&&this.To.push(this.jm.element);e&&this.To.push(e)};
bM=function(a,b){if(!b)return!1;var c=a.api.zd();if(c.Pp()&&(c=c.Ke())&&g.ki(c,b))return c.controls;for(c=0;c<a.To.length;c++)if(g.ki(a.To[c],b))return!1;return g.Dp(b,"ytp-player-content")||g.Dp(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
xCa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.bb().LA||!1)&&a.api.V().isMobile&&cM&&11<=EE;a=a.api.V().J&&cM;return!(!b&&!a)};
dM=function(a,b){return!bM(a,ru(b))&&g.iJ(b)};
$L=function(a){a.Jd.Jl();if(a.xC&&a.FE)a.FE=!1;else if(!a.api.V().xa&&!a.Zk()){var b=a.api.yb();g.V(b,2)&&g.TK(a.api)||a.Dr(b);if(!a.api.V().Wa||b.isCued()||g.V(b,1024)){var c=a.api.mC();g.Ds("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.V(b,1024);c&&(b.isCued()||d)?(g.Ds("embedsRequestStorageAccessState",{isCued:b.isCued(),Gha:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Ds("embedsRequestStorageAccessFailedState",{state:b.state}),a.Lu())}else a.tC.isActive()?
(a.MA(),a.tC.stop()):a.tC.start()}};
yCa=function(a,b){return g.iJ(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.yb(),!g.V(b,4)||g.V(b,8)||g.V(b,2)||a.Lu(),!0):!1};
zCa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
wCa=function(a){a=Zr()&&67<=tma()&&!a.api.V().J;return!Yr("tizen")&&!nC&&!a&&!0};
eM=function(a,b){b=void 0===b?2:b;g.iv.call(this);this.api=a;this.j=null;this.Lc=new fv(this);g.H(this,this.Lc);this.u=kAa;this.Lc.T(this.api,"presentingplayerstatechange",this.Tc);this.j=this.Lc.T(this.api,"progresssync",this.Qb);this.qk=b;1===this.qk&&this.Qb()};
fM=function(a){g.W.call(this,{G:"button",Fa:["ytp-button","ytp-back-button"],U:[{G:"div",L:"ytp-arrow-back-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Jb:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.iI(this,a.V().showBackButton);this.Oa("click",this.onClick)};
g.gM=function(a){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",oa:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.I=a;this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,500,this);g.H(this,this.u);g.H(this,this.j);this.hide()};
iM=function(a,b,c){if(0>=b){c=xI();b="muted";var d=0}else c=c?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";hM(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",Jb:!0,L:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.I.getPlaybackRate(),d=g.MF("Speed is $RATE",{RATE:String(c)});hM(a,b,d,c+"x")};
BCa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";hM(a,iCa(),b)};
hM=function(a,b,c,d){d=void 0===d?"":d;a.Ka("label",void 0===c?"":c);VC(a.I.V())?a.Ka("icon",null):a.Ka("icon",b);g.zp(a.j);a.u.start();a.Ka("title",d);g.N(a.element,"ytp-bezel-text-hide",!d)};
kM=function(a,b,c){g.W.call(this,{G:"button",Fa:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.qC(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")?Jza():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{G:"div",L:"ytp-cards-button-title",oa:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
L:"ytp-cards-button-title",oa:"Shopping"}]}]});this.I=a;this.B=b;this.C=c;this.j=null;this.u=new g.UI(this,250,!0,100);g.H(this,this.u);g.N(this.C,"ytp-show-cards-title",g.qC(a.V()));this.hide();this.Oa("click",this.onClicked);this.Oa("mouseover",this.sX);jM(this,!0)};
jM=function(a,b){b?a.j=g.lM(a.B.kc(),a.element):(a.j=a.j,a.j(),a.j=null)};
mM=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:a.V().N("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"Show cards","aria-haspopup":"true"},U:[Jza()]},{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},U:[g.pI()]}]:[{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.I=a;this.X=
b;this.zg=c;this.C=new g.UI(this,250,!1,250);this.j=null;this.K=new g.L(this.GX,300,this);this.J=new g.L(this.FX,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.Ti),this.T(this.Ca("ytp-cards-teaser-info-icon"),"click",this.pI),this.T(this.Ca("ytp-cards-teaser-label"),"click",this.pI)):this.Oa("click",this.pI);this.T(c.element,"mouseover",this.UJ);this.T(c.element,"mouseout",this.TJ);this.T(a,"cardsteasershow",
this.TY);this.T(a,"cardsteaserhide",this.Db);this.T(a,"cardstatechange",this.DQ);this.T(a,"presentingplayerstatechange",this.DQ);this.T(a,"appresize",this.NI);this.T(a,"onShowControls",this.NI);this.T(a,"onHideControls",this.bU);this.Oa("mouseenter",this.fS)};
oM=function(a){g.W.call(this,{G:"button",Fa:[nM.BUTTON,nM.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:nM.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.tI()]},{G:"div",L:nM.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.Oa("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(nM.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.RD:c.QD)?(a=a.api.dl())?HJ(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.qM=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 w=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.wC(w)||g.AC(w))c.target=w.K;g.W.call(this,{G:"div",Fa:["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=w.userDisplayName&&g.wC(w)&&!w.N("subscribe_tooltipkillswitch");g.W.call(this,{G:"div",Fa:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.MF("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":$C(w),"data-tooltip-opaque":String(g.qC(w)),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.MF("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":$C(w),"data-tooltip-opaque":String(g.qC(w)),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 K=x.channelId;if(m||n){var P={c:K};if(q.V().N("embeds_botguard_with_subscribe_killswitch"))P="";else{var aa;g.fK.isInitialized()&&(aa=UAa(P));P=aa||""}if(aa=q.getVideoData())if(aa=aa.subscribeCommand){var J=q.dl();J?(HJ(J,aa,{botguardResponse:P,feature:m}),q.La("SUBSCRIBE",K)):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")},I=function(){var K=x.channelId;
if(m||n){var P=q.getVideoData();HJ(q.dl(),P.unsubscribeCommand,{feature:m});q.La("UNSUBSCRIBE",K)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")};
this.T(y,"click",E);this.T(z,"click",I);this.T(y,"keypress",function(K){13===K.keyCode&&E(K)});
this.T(z,"keypress",function(K){13===K.keyCode&&I(K)});
this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.kc(),pM(this.tooltip),g.sf(this,g.lM(this.tooltip,y)),g.sf(this,g.lM(this.tooltip,z)))}else g.M(y,"ytp-sb-disabled"),g.M(z,"ytp-sb-disabled")}};
rM=function(a,b){g.W.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.V().K,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",oa:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().K,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",oa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.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.qC(this.api.V());a.Ab(this.j,this,36925);this.D&&DCa(this);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.Ja();g.qC(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.bd){var d=b.authUser?null:rAa(),e=new g.qM("Subscribe",null,"Subscribed",null,!0,!1,c.rj,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.wb(e.element)});
var f=new oM(a.api);a.u=f;g.H(a,f);f.Ba(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Vh&&f.show()});
a.T(a.api,"UNSUBSCRIBE",function(){c.Vh&&(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.zE():a.WE());a.api.wb(a.j)}):(a.T(a.channel,"mouseenter",a.WE),a.T(a.channel,"mouseleave",a.zE),a.T(a.channel,"focusin",a.WE),a.T(a.channel,"focusout",function(k){a.channel.contains(k.relatedTarget)||a.zE()}),a.T(a.j,"click",function(){a.api.wb(a.j)}));
a.B=new g.L(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Za(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Za(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.GH);a.T(a.api,"appresize",a.GH);a.T(a.api,"fullscreentoggled",a.GH)};
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.mK(c,a.api.V().loaderUrl);return g.wj(b,g.lK(c,"emb_ch_name_ex"))};
g.sM=function(a,b,c,d){g.jI.call(this,a);this.priority=b;c&&this.If(c);d&&this.Cd(d)};
g.tM=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",Fa: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}}"}]}};
uM=function(a,b){a.Ka("icon",b)};
vM=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",Fa:["ytp-panel-back-button-container"],U:[{W:{"aria-label":"Back to previous menu"},G:"button",Fa:["ytp-button",l]}]},{W:{tabindex:"0"},G:"span",Fa:[m],U:[c]}]};if(e){var p="ytp-panel-options";n.U.push({G:"button",Fa:["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.jI.call(this,
k);this.content=b;d&&k.U?b.Ba(this.element,k.U.length-1):b.Ba(this.element);this.TM=!1;this.pV=d;c&&(c=this.Ca(l),m=this.Ca(m),this.T(c,"click",this.lO),this.T(m,"click",this.lO),this.TM=!0,e&&(p=this.Ca(p),this.T(p,"click",e)));b.subscribe("size-change",this.rO,this);this.T(a,"fullscreentoggled",this.rO);g.N(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.jI({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.wM=function(a,b,c,d,e,f){b=void 0===b?null:b;var k={role:"menu"};b&&(k.id=b);b=new g.jI({G:"div",L:"ytp-panel-menu",W:k});vM.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)};
g.xM=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.YG,a);a.items=[];g.gi(a.menuItems.element);a.menuItems.ea("size-change")};
JCa=function(a,b){return b.priority-a.priority};
yM=function(a){var b=g.tM({"aria-haspopup":"true"});g.sM.call(this,b,a);this.Oa("keydown",this.j)};
zM=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
AM=function(a,b){g.sM.call(this,g.tM({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Oa("click",this.onClick)};
BM=function(a,b){g.W.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().bd?"":"Sign in on YouTube"}]}]}]});this.Ta=a;this.j=b;a.V().authUser||a.V().bd||(a=this.Ca("ytp-user-info-panel-login"),this.T(a,"click",this.hS));this.T(window,"blur",this.hide);this.T(document,"click",this.gS);this.Ja()};
CM=function(a,b,c,d){g.wM.call(this,a);this.rb=c;this.zc=d;this.getVideoUrl=new yM(6);this.Mj=new yM(5);this.Ij=new yM(4);this.Nb=new yM(3);this.sy=new g.sM(g.tM({href:"{{href}}",target:this.I.V().K},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.sM(g.tM(),1,"Stats for nerds");this.Ws=new g.jI({G:"div",Fa:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},oa:"{{text}}"});this.HL=new vM(this.I,this.Ws);this.Ty=this.Ko=null;g.qC(this.I.V())&&this.I.N("embeds_web_enable_user_info_in_context_menu")&&
(this.jj=new g.sM(g.tM(),8,"User info"),g.H(this,this.jj),this.yc(this.jj,!0),this.jj.Oa("click",this.FY,this),a.Ab(this.jj.element,this.jj,137682));this.I.V().wj&&(this.Qi=new AM("Loop",7),g.H(this,this.Qi),this.yc(this.Qi,!0),this.Qi.Oa("click",this.zX,this),a.Ab(this.Qi.element,this.Qi,28661));g.H(this,this.getVideoUrl);this.yc(this.getVideoUrl,!0);this.getVideoUrl.Oa("click",this.pX,this);a.Ab(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.Mj);this.yc(this.Mj,!0);this.Mj.Oa("click",
this.qX,this);a.Ab(this.Mj.element,this.Mj,28660);g.H(this,this.Ij);this.yc(this.Ij,!0);this.Ij.Oa("click",this.oX,this);a.Ab(this.Ij.element,this.Ij,28658);g.H(this,this.Nb);this.yc(this.Nb,!0);this.Nb.Oa("click",this.nX,this);g.H(this,this.sy);this.yc(this.sy,!0);this.sy.Oa("click",this.oY,this);g.H(this,this.showVideoInfo);this.yc(this.showVideoInfo,!0);this.showVideoInfo.Oa("click",this.GY,this);g.H(this,this.Ws);this.Ws.Oa("click",this.bX,this);g.H(this,this.HL);b=document.queryCommandSupported&&
document.queryCommandSupported("copy");43<=Gb("Chromium")&&(b=!0);40>=Gb("Firefox")&&(b=!1);b&&(this.Ko=new g.W({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.H(this,this.Ko),this.Ko.Ba(this.element));var e;null==(e=this.jj)||uM(e,Mza());var f;null==(f=this.Qi)||uM(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"}}]});uM(this.Nb,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",
width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});uM(this.sy,{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"}}]});uM(this.showVideoInfo,Iza());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);KCa(this);LCa(this,this.I.getVideoData())};
EM=function(a,b){var c=!1;if(a.Ko){var d=a.Ko.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.rb.Db():(a.Ws.Cd(b,"text"),g.DM(a.rb,a.HL),NL(a.Ws.element),a.Ko&&(a.Ko=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/20220406233357/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.Da&&(c.partnerid=b.Da),c=g.wj("//web.archive.org/web/20220406233357/https://support.google.com/googleplay/",c));g.iI(a.Ij,e&&b.allowEmbed);g.iI(a.getVideoUrl,e);g.iI(a.Mj,e&&!b.isLivePlayback);
a.sy.Cd(c,"href");var f;null==(f=a.Qi)||g.iI(f,!b.isLivePlayback&&!d);var k;null==(k=a.jj)||g.iI(k,!d)};
KCa=function(a){var b=!!a.Ko;a.Nb.If(b?"Copy debug info":"Get debug info");zM(a.Nb,!b);a.Ij.If(b?"Copy embed code":"Get embed code");zM(a.Ij,!b);a.getVideoUrl.If(b?"Copy video URL":"Get video URL");zM(a.getVideoUrl,!b);a.Mj.If(b?"Copy video URL at current time":"Get video URL at current time");zM(a.Mj,!b);uM(a.Ij,b?Gza():null);uM(a.getVideoUrl,b?rI():null);uM(a.Mj,b?rI():null)};
g.FM=function(a,b){g.XL.call(this,a,{G:"div",Fa:["ytp-popup",b||""]},100,!0);this.j=[];this.J=this.C=null;this.zz=this.maxWidth=0;this.size=new g.Dh(0,0);this.Oa("keydown",this.iS)};
MCa=function(a){var b=a.j[a.j.length-1];if(b){g.Wm(a.element,a.maxWidth||"100%",a.zz||"100%");b.I.V().N("player_panel_min_width_killswitch")&&g.Mm(b.element,"minWidth","250px");g.Mm(b.element,"width","");g.Mm(b.element,"height","");g.Mm(b.element,"maxWidth","100%");g.Mm(b.element,"maxHeight","100%");g.Mm(b.content.element,"height","");var c=g.Xm(b.element);c.width+=1;c.height+=1;g.Mm(b.element,"width",c.width+"px");g.Mm(b.element,"height",c.height+"px");g.Mm(b.element,"maxWidth","");g.Mm(b.element,
"maxHeight","");var d=0;b.TM&&(d=b.Ca("ytp-panel-header"),d=g.Xm(d).height);var e=0;b.pV&&(e=b.Ca("ytp-panel-footer"),g.Mm(e,"width",c.width+"px"),e=g.Xm(e).height);g.Mm(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.Mm(b.element,"width",c.width+"px")));a.size=c}};
g.DM=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);GM(a,c,b)};
g.HM=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];GM(a,b,c,!0)}};
GM=function(a,b,c,d){NCa(a);b&&(b.unsubscribe("size-change",a.Ru,a),b.unsubscribe("back",a.Ch,a));c.subscribe("size-change",a.Ru,a);c.subscribe("back",a.Ch,a);if(a.tb){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.Wm(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.Fp(c.element,"ytp-panel-animate-back")):(g.M(b.element,"ytp-panel-animate-back"),g.Fp(c.element,"ytp-panel-animate-forward"));g.Wm(a.element,a.size);a.J=new g.L(function(){g.Fp(a.element,"ytp-popup-animating");b.detach();g.Gp(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.yp(a.C);a.J&&g.yp(a.J)};
g.IM=function(a,b,c){g.FM.call(this,a);this.va=b;this.zc=c;this.B=new g.iA(this);this.Z=new g.L(this.YY,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.bb();a.B.T(b,"contextmenu",a.YW);a.B.T(b,"touchstart",a.kS,null,!0);a.B.T(b,"touchmove",a.TO,null,!0);a.B.T(b,"touchend",a.TO,null,!0)}};
QCa=function(a){a.I.isFullscreen()?g.ZK(a.I,a.element,10):a.Ba(document.body)};
g.JM=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{G:"button",Fa:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.qC(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.kc();b=a.V();pM(this.tooltip);g.N(this.element,"ytp-show-copylink-title",g.qC(b)&&!g.BC(b));a.Ab(this.element,this,86570);this.Oa("click",
this.onClick);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.T(a,"appresize",this.Ja);this.Ja();g.sf(this,g.lM(this.tooltip,this.element))};
RCa=function(a){a.Ka("icon",mI());if(a.api.V().isMobile)KM(a.tooltip,a.element,"Link copied to clipboard");else{a.Ka("title-attr","Link copied to clipboard");LM(a.tooltip);KM(a.tooltip,a.element);var b=a.Oa("mouseleave",function(){a.vc(b);a.Ja();a.tooltip.Dj()})}};
SCa=function(a,b){return g.B(function(c){if(1==c.j)return g.va(c,2),g.A(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.xa(c);var d=c.return,e=!1,f=g.ei("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)})};
MM=function(){g.W.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Fa:["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()};
NM=function(a){g.W.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div",
L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text-legacy",oa:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.L(this.show,10,this);this.u=new g.L(this.hide,700,this);this.j=this.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.Za(this.C,!0);this.I.Za(this.D,
!0)};
TCa=function(a,b){b=g.MF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ka("seekTime",b)};
OM=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
PM=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=PM(a,b)+1;return b<a.length?b:-1};
WCa=function(a,b){return PM(a,b)-1};
XCa=function(a,b){return new g.Iw(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.RM=function(a,b,c,d,e,f,k){g.iA.call(this);var l=this;this.api=a;this.contextMenu=c;this.Jd=d;this.zc=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(){QM(l,!1)});
this.T(c.element,"mousedown",function(){QM(l,!1)});
this.T(b,"keydown",this.LM);this.T(c.element,"keydown",this.LM);this.T(b,"keyup",this.MM);this.T(c.element,"keyup",this.MM)};
QM=function(a,b){g.N(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.N(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
TM=function(a,b,c,d){var e=g.tL(a.api.sb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var k=0;k<g.SM.length;k++){var l=g.SM[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.qf();if(g.V(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.tL(a.api.sb())&&a.api.setOption("captions","sampleSubtitles",b)};
UM=function(a,b,c){g.W.call(this,{G:"button",Fa:["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.kc();
a.Ab(this.element,this,16499);this.T(a,"appresize",this.Ja);this.T(a,"fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.Ja();g.sf(this,g.lM(this.tooltip,this.element));this.Oa("click",function(){a.wb(d.element);YL(c,d.element,!1)});
this.T(c.closeButton,"click",function(){d.focus()})};
VM=function(a,b){g.XL.call(this,a,{G:"div",L:"ytp-overflow-panel",W:{id:eI(),role:"dialog"},U:[{G:"div",L:"ytp-overflow-panel-content",U:[{G:"div",L:"ytp-overflow-panel-action-buttons",oa:"{{buttons}}"}]},{G:"button",Fa:["ytp-overflow-panel-close","ytp-button"],W:{title:"Close"},U:[g.pI()]}]},250);this.actionButtons=[];this.tooltip=b.kc();this.j=this.Ca("ytp-overflow-panel-content");this.closeButton=this.Ca("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Db);g.sf(this,g.lM(this.tooltip,
this.closeButton));this.Oa("click",this.lS);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
WM=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ka("buttons",a.actionButtons))};
$Ca=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.jc(b)};
XM=function(a,b,c){var d=g.gL(b,c),e=a.V(),f=d.Re("default.jpg");g.W.call(this,{G:"a",Fa:["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.Oa("click",this.onClick)};
YM=function(a){g.XL.call(this,a,{G:"div",L:"ytp-playlist-menu",W:{role:"dialog",id:eI()},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",Fa:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.pI()]}]},{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.Db);b=this.Ca("ytp-playlist-menu-title-name");a.V().C||this.T(b,"click",this.XY);g.H(this,this.B);this.hide()};
ZM=function(a,b,c){g.W.call(this,{G:"button",Fa:["ytp-playlist-menu-button","ytp-button"],W:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},U:[{G:"div",L:"ytp-playlist-menu-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",oa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.kc();a.Ab(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Ja);this.T(a,"appresize",this.Ja);this.hide();this.j();g.sf(this,g.lM(this.tooltip,this.element));this.Oa("click",function(){a.wb(d.element);YL(c,d.element,!1)})};
$M=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-promotooltip-wrapper",U:[{G:"div",L:"ytp-promotooltip-container",U:[{G:"div",L:"ytp-promotooltip-content",U:[{G:"div",L:"ytp-promotooltip-title",oa:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",oa:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",U:[{G:"div",L:"ytp-promotooltip-dismiss-button",oa:"{{dismissButtonText}}",W:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",oa:"{{acceptButtonText}}",W:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.K=b;this.I=c;this.j=this.B=null;this.title=this.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.iI(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.I.dh(this.element,this,!0),this.I.hk(this.element,a);this.T(c,"onShowControls",
this.xD);this.T(c,"onHideControls",this.aX);this.T(c,"resize",this.xb);this.T(this.acceptButton,"click",this.oW);this.T(this.dismissButton,"click",this.gX);this.T(document,"click",this.mS)};
aDa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
aN=function(a){g.iI(a,!1);a.u&&a.I.Za(a.element,a.tb)};
bN=function(a,b){var c=a.tooltipRenderer.promoConfig;if(c){switch(b){case 0:var d;if(null==(d=c.impressionEndpoints)?0:d.length)var e=c.impressionEndpoints[0];break;case 1:e=c.acceptCommand;break;case 2:e=c.dismissCommand}var f,k;if(null==(f=e)?0:null==(k=f.feedbackEndpoint)?0:k.feedbackToken)b={feedbackTokens:[e.feedbackEndpoint.feedbackToken]},a=a.I.dl(),(null==a?0:vAa(e,a.C))&&HJ(a,e,b)}};
bDa=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};
cN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-replay-button","ytp-button"],W:{title:"Replay"},U:[g.vI()]});this.I=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Oa("click",this.onClick,this);a=a.yb();g.iI(this,g.V(a,2));g.lM(b.kc(),this.element)};
g.dN=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{G:"button",Fa:["ytp-button","ytp-share-button"],W:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.qC(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.kc();b=a.V();a.Ab(this.element,this,28664);this.Oa("click",this.onClick);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",
this.Ja);this.T(a,"appresize",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.Ja();g.N(this.element,"ytp-show-share-title",g.qC(b)&&!g.BC(b));g.sf(this,g.lM(this.tooltip,this.element))};
cDa=function(a){"InvalidStateError"!==a.name&&g.S(a)};
g.eN=function(a,b){var c=eI(),d=a.V();c={G:"div",L:"ytp-share-panel",W:{id:eI(),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",Fa:["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:[ML()]},{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",Fa:["ytp-share-panel-close","ytp-button"],W:{title:"Close"},U:[g.pI()]}]};g.XL.call(this,a,c,250);this.api=a;this.tooltip=b.kc();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.Db);g.sf(this,g.lM(this.tooltip,this.closeButton));this.C=this.Ca("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Ja);this.B=this.Ca("ytp-share-panel-link");g.sf(this,g.lM(this.tooltip,this.B));this.Oa("click",this.nS);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.PV);this.hide()};
eDa=function(a,b){dDa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={vn:e.vn},f++){e.vn=c[f];a:switch(e.vn.img||e.vn.iconId){case "facebook":var k={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":k={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:k=null}k&&(k=new g.W({G:"a",Fa:["ytp-share-panel-service-button","ytp-button"],W:{href:e.vn.url,target:"_blank",title:e.vn.sname||e.vn.serviceName},U:[k]}),k.Oa("click",function(m){return function(n){if(g.iJ(n)){var p=m.vn.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var t=q;t||(t={});q=window;var w=p instanceof g.Sg?p:g.Xg("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(",");Kb()&&
q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(t=g.ei("A"),g.uh(t,w),t.target=p,y&&(t.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,q,1),t.dispatchEvent(w),q={}):y?(q=vh("",q,p,E),w=g.Tg(w),q&&(g.XC&&g.ob(w,";")&&(w="'"+w.replace(/'/g,"%27")+"'"),q.opener=null,""===w&&(w="javascript:''"),w=g.rh(g.Kg("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Ih(w)+'">'),(t=q.document)&&
t.write&&(t.write(g.ih(w)),t.close()))):(q=vh(w,q,p,E))&&t.noopener&&(q.opener=null);q&&(q.opener||(q.opener=window),q.focus());g.vu(n)}}}(e)),g.sf(k,g.lM(a.tooltip,k.element)),a.j.push(k),d++)}var l=b.more||b.moreLink;
b=new g.W({G:"a",Fa:["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.Oa("click",function(m){g.LL(l,a.api,m)&&a.api.La("SHARE_CLICKED")});
g.sf(b,g.lM(a.tooltip,b.element));a.j.push(b);a.Ka("buttons",a.j)};
dDa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.qf(c);a.j=[]};
hN=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.Wa=b;this.Qa=this.K=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ha=new g.L(function(){d.badge.element.style.width=""},200,this);
this.Z=new g.L(function(){fN(d);gN(d)},200,this);
this.dismissButton=new g.W({G:"button",Fa:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.J=new g.W({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",oa:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.J);this.badge=new g.W({G:"button",Fa:["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.UI(this.badge,250,!1,100);g.H(this,this.S);this.va=new g.UI(this.J,250,!1,100);g.H(this,this.va);this.Ia=new g.vp(this.c_,null,this);g.H(this,this.Ia);this.ma=new g.vp(this.wU,null,this);g.H(this,this.ma);g.H(this,this.Ha);g.H(this,this.Z);this.I.dh(this.badge.element,this.badge,!0);this.I.dh(this.dismissButton.element,this.dismissButton,!0);this.T(this.I,"onHideControls",function(){d.j=!1;gN(d);fN(d);d.zi()});
this.T(this.I,"onShowControls",function(){d.j=!0;gN(d);fN(d);d.zi()});
this.T(this.badge.element,"click",this.HG);this.T(this.dismissButton.element,"click",this.IG);this.T(this.I,"pageTransition",this.oS);this.T(this.I,"appresize",this.zi);this.T(this.I,"fullscreentoggled",this.lX);this.T(this.I,"cardstatechange",this.SW);this.T(this.I,"annotationvisibility",this.E_,this);this.T(this.I,"offlineslatestatechange",this.F_,this)};
fN=function(a){g.N(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)};
gN=function(a,b){var c=a.K||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ia.stop(),a.ma.stop(),a.Ha.stop(),a.Ia.start()):(g.iI(a.J,a.expanded),g.N(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),fDa(a))};
fDa=function(a){a.C&&a.I.Za(a.badge.element,a.Fy());a.D&&a.I.Za(a.dismissButton.element,a.Fy()&&(a.K||a.j||!a.u))};
gDa=function(a){var b=a.text||"";g.li(g.$h("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ra?a.Ra:"")};
hDa=function(a,b){b?a.D&&a.I.wb(a.dismissButton.element):a.C&&a.I.wb(a.badge.element)};
iN=function(a,b){hN.call(this,a,b);var c=this;this.X=this.xa=this.Da=!1;this.T(this.I,g.Kw("shopping_overlay_visible"),function(){c.Ne(!0)});
this.T(this.I,g.Lw("shopping_overlay_visible"),function(){c.Ne(!1)});
this.T(this.I,g.Kw("shopping_overlay_expanded"),function(){c.K=!0;gN(c)});
this.T(this.I,g.Lw("shopping_overlay_expanded"),function(){c.K=!1;gN(c)});
this.T(this.I,"changeProductsInVideoVisibility",this.XX);this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,"paidcontentoverlayvisibilitychange",this.QX)};
jN=function(a){a.I.jf("shopping_overlay_visible");a.I.jf("shopping_overlay_expanded")};
kN=function(a){g.XL.call(this,a,{G:"button",Fa:["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.Go(c,d)});
this.T(this.element,"click",function(){b.I.seekTo(b.j/1E3)});
this.hide()};
lN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay"},oa:"{{icon}}"});this.I=a;this.Oa("click",this.onClick);this.T(a,"airplayactivechange",this.Ja);this.T(a,"airplayavailabilitychange",this.Ja);this.Ja();g.sf(this,g.lM(b.kc(),this.element))};
mN=function(a,b){g.W.call(this,{G:"button",Fa:["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.Gv);this.Oa("click",this.onClick);this.I.V().N("web_player_autonav_toggle_always_listen")&&iDa(this);
this.tooltip=b.kc();g.sf(this,g.lM(b.kc(),this.element));this.Gv()};
iDa=function(a){a.u.push(a.T(a.I,"videodatachange",a.Gv));a.u.push(a.T(a.I,"videoplayerreset",a.Gv));a.u.push(a.T(a.I,"onPlaylistUpdate",a.Gv));a.u.push(a.T(a.I,"autonavchange",a.VJ))};
jDa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Ka("title",b);a.Ka("label",b);LM(a.tooltip)};
kDa=function(a){return a.I.V().N("web_player_autonav_use_server_provided_state")&&$D(a.I.getVideoData())};
g.oN=function(a){g.W.call(this,{G:"div",L:"ytp-gradient-bottom"});this.j=g.ei("CANVAS");this.ctx=this.j.getContext("2d");this.B=NaN;this.j.width=1;this.u=g.BC(a.V());g.nN(this,a.bb().getPlayerSize().height)};
g.nN=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){}}}};
pN=function(a,b,c,d,e){g.W.call(this,{G:"div",L:"ytp-chapter-container",U:[{G:"button",Fa:["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.X=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.Kw(d),this.Qb);this.T(a,"onLoopRangeChange",this.Qb);this.T(a,"innertubeCommand",this.onClickCommand);g.qC(this.I.V())||g.sf(this,g.lM(b.kc(),this.X))};
qN=function(a,b,c){pN.call(this,a,b,c,"chapterCueRange","View chapter")};
rN=function(a,b,c,d,e,f,k){var l=b.Bx/b.columns,m=b.Sq/b.rows,n=Math.min(c/l,d/m);void 0!==f&&n*l<f&&(n=Math.min(2,f/l));f=b.Bx*n;l=b.Sq*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,w=-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 "+w+"px/"+(null!=k?k:f)+"px "+l+"px"};
g.sN=function(a){g.W.call(this,{G:"div",L:"ytp-storyboard-framepreview",U:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Ca("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.iA(this);this.j=new g.UI(this,100);g.H(this,this.events);g.H(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Tc)};
tN=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){tN(a,a.api.kh())}),a.events.T(a.api,"progresssync",a.Hd),a.events.T(a.api,"appresize",a.D)),a.B=NaN,uN(a),a.j.show(200)):(c&&g.hv(a.events),a.j.hide(),a.j.stop())};
uN=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.bb().getPlayerSize(),e=JD(b,d.width);c=Iva(b,e,c);c!==a.B&&(a.B=c,Gva(b,c,d.width),b=Eva(b,c,d.width),rN(a.C,b,d.width,d.height))};
vN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Fa:["ytp-fullerscreen-edu-text"],oa:"Scroll for details"},{G:"div",Fa:["ytp-fullerscreen-edu-chevron"],U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ta=a;this.B=b;this.j=new g.UI(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.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.Oa("click",this.onClick);this.Ja()};
g.wN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.j=g.lM(this.u.kc(),this.element);this.B=new g.L(this.UT,2E3,this);g.H(this,this.B);this.T(a,"fullscreentoggled",this.hj);this.T(a,"presentingplayerstatechange",this.Ja);this.Oa("click",this.onClick);g.bv()&&(b=this.I.bb(),this.T(b,fpa(),this.QG),this.T(b,ev(document),this.Rm));a.V().Wa||a.V().J||this.disable();a.Ab(this.element,this,
139117);this.Ja();this.hj(a.isFullscreen())};
xN=function(a,b,c){pN.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.T(a,g.Lw("timedMarkerCueRange"),this.Qb)};
yN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[Nza()]});this.I=a;this.visible=!1;this.Oa("click",this.onClick);this.T(a,"fullscreentoggled",this.Ja);this.Ka("title",OL(a,"Miniplayer","i"));g.sf(this,g.lM(b.kc(),this.element));a.Ab(this.element,this,62946);this.Ja()};
zN=function(a,b,c){g.W.call(this,{G:"button",Fa:["ytp-multicam-button","ytp-button"],W:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.I=a;this.j=!1;this.u=new g.L(this.B,400,this);this.tooltip=b.kc();pM(this.tooltip);g.H(this,this.u);this.Oa("click",function(){YL(c,d.element,!1)});
this.T(a,"presentingplayerstatechange",function(){d.Ja(!1)});
this.T(a,"videodatachange",this.onVideoDataChange);this.Ja(!0);g.sf(this,g.lM(this.tooltip,this.element))};
AN=function(a){g.XL.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",Fa:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.pI()]}]}]},{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.Db);this.hide()};
BN=function(){g.G.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.vp(this.j,null,this);g.H(this,this.delay)};
lDa=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=lDa(a,d)))return d}};
oDa=function(a,b,c){c=lDa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=eI();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=mDa(e),m=mDa(c);CN(a,function(n){d.setAttribute("d",nDa(l,m,n))},200)};
CN=function(a,b,c){a.u=b;a.startTime=(0,g.R)();a.duration=c;a.j()};
mDa=function(a){var b=[];a=a.match(pDa);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};
nDa=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.DN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-mute-button","ytp-button"],W:a.V().va?{title:"{{title}}"}:{"aria-disabled":"true","aria-haspopup":"true"},oa:"{{icon}}"});this.I=a;this.j=null;this.C=this.K=this.D=this.X=NaN;this.Z=this.J=null;this.B=[];this.u=[];this.visible=!1;this.currentIcon=null;var c=this.I.V();this.Ka("icon",xI());this.tooltip=b.kc();this.j=new g.fI({G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"ytp-svg-volume-animation-mask"},
U:[{G:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",W:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},U:[{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",Jb:!0,Fa:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",Jb:!0,Fa:["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.Vh("ytp-svg-volume-animation-mover",this.j.element);this.u=
g.Vh("ytp-svg-volume-animation-hider",this.j.element);this.ma=new BN;g.H(this,this.ma);this.S=new BN;g.H(this,this.S);this.Oa("click",this.HX);this.T(a,"appresize",this.WJ);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.va)g.sf(this,g.lM(b.kc(),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.XL(a,{G:"span",Fa:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},U:[e[0],{G:"a",W:{href:"https://web.archive.org/web/20220406233357/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.jt(d,f)});
g.ZK(a,d.element,4)}this.message=d;a.Ab(this.element,this,28662);this.WJ(a.bb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
sDa=function(a,b){a.X=b;var c=a.Z;b&&(c+=nDa(qDa,rDa,b));a.J.setAttribute("d",c)};
tDa=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=xI():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)};
EN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},U:[Nza()]});this.I=a;this.Ka("title","Picture in Picture");this.Oa("click",this.onClick);g.sf(this,g.lM(b.kc(),this.element))};
g.FN=function(a,b,c){g.W.call(this,{G:"button",Fa:["ytp-play-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.currentIcon=null;this.transition=new BN;this.tooltip=b.kc();g.H(this,this.transition);this.j=!!c;a.Ab(this.element,this,36842);a.Za(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);uDa(this,a.yb());this.Oa("click",this.Lu,this);g.sf(this,
g.lM(b.kc(),this.element))};
vDa=function(a){switch(a){case 1:return uI();case 2:return Lza();case 3:return g.vI();case 4:return Pza();default:return null}};
uDa=function(a,b){var c=g.oE(a.I.getVideoData()),d=!1;g.sH(b)?b=c?4:2:g.V(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.currentIcon!==b){c=null;switch(b){case 2:c=OL(a.I,"Pause","k");break;case 3:c="Replay";break;case 1:c=OL(a.I,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,icon:vDa(b)}):(a.update({title:c}),(c=vDa(b))&&a.currentIcon&&3!==a.currentIcon?oDa(a.transition,a.element,c):a.Ka("icon",c));LM(a.tooltip);a.currentIcon=b}};
g.HN=function(a,b,c){g.W.call(this,{G:"a",Fa:[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?sI():Oza()]});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.kc();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.yD);this.T(a,"mdxpreviousnextchange",function(){GN(d);d.yD()});
this.onVideoDataChange()};
wDa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
xDa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.I.getCurrentTime()&&2!==a.I.getPresentingPlayerType()};
yDa=function(a){var b=VK(a.I.sb());return b?a.j?b.hasNext():b.ol():!1};
GN=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.WK(a.I)&&(!a.j||c);var d=a.j&&g.$K(a.I),e=yDa(a),f=a.j&&5===a.I.getPresentingPlayerType(),k=OL(a.I,"Next","SHIFT+n"),l=OL(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.gL(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.hJ(m.lengthSeconds):null;b.preview=m.Re("mqdefault.jpg")}b.title=a.j?k:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=a.videoData.suggestions[0],b.url=l.jl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.hJ(l.lengthSeconds):null,b.preview=l.Re("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.lM(a.tooltip,a.element),a.D=a.Oa("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.vc(a.D),a.D=null);LM(a.tooltip)};
IN=function(a,b){g.W.call(this,{G:"div",L:"ytp-fine-scrubbing",U:[{G:"div",L:"ytp-fine-scrubbing-thumbnails"},{G:"div",L:"ytp-fine-scrubbing-cursor"},{G:"div",L:"ytp-fine-scrubbing-seek-time",oa:"{{seekTime}}"},{G:"div",L:"ytp-fine-scrubbing-play",U:[uI()]},{G:"div",L:"ytp-fine-scrubbing-dismiss",U:[g.pI()]}]});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.xa=this.Z=this.C=this.D=0;this.u=[];this.isEnabled=this.X=!1;this.S=new g.mv(this.B,!0);this.S.subscribe("dragstart",this.ZJ,this);this.S.subscribe("dragmove",this.YJ,this);this.S.subscribe("dragend",this.XJ,this);g.H(this,this.S)};
ADa=function(a){var b=a.api.kh();if(b){var c=a.J?1.5:1,d=160*c,e=JD(b,160*c);if(b=b.levels[e]){if(!a.u.length){e=[];for(var f=KD(b,b.Np()),k=b.columns*b.rows,l=b.Np(),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:MD(b,m),column:0,columns:q,row:p,rows:n,Bx:b.width*q,Sq: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 zDa,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.Sq*=c,rN(f,k,b.width,d,!0,void 0,d*b.columns),f.style.width=d*k.columns+"px",f.style.height=160*c+"px";JN(a,a.api.getCurrentTime());for(d=a.api.getVideoData().yk;a.j.length>d.length;)c=void 0,null==(c=a.j.pop())||c.dispose();for(;a.j.length<d.length;)c=new KN,a.j.push(new KN),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.Mm(a.j[e].element,"transform","translateX("+f%b.rows*160*c+"px)"),a.j[e].Ba(a.thumbnails[k].element);a.X=!0}}};
JN=function(a,b){var c=g.hJ(b);a.update({seekTime:c});c=a.J?1.5:1;c=a.B.offsetWidth||90*a.thumbnails.length*c;b=-(b/a.api.getDuration()*c)+a.K/2;a.D=b;g.Mm(a.B,"transform","translateX("+a.D+"px)")};
zDa=function(){g.W.call(this,{G:"div",L:"ytp-fine-scrubbing-thumbnail"})};
KN=function(){g.W.call(this,{G:"div",L:"ytp-fine-scrubbing-chapter-title",oa:"{{chapterTitle}}"})};
BDa=function(a){g.W.call(this,{G:"div",L:"ytp-heat-map-chapter",U:[{G:"svg",L:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"{{id}}"},U:[{G:"path",L:"ytp-heat-map-path",W:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{G:"rect",L:"ytp-heat-map-graph",W:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-hover",W:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-play",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.J=this.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};
LN=function(){g.W.call(this,{G:"div",L:"ytp-chapter-hover-container",U:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",U:[{G:"div",Fa:["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")};
MN=function(a,b){g.Mm(a.j,"width",b)};
NN=function(a,b){g.Mm(a.j,"margin-right",b+"px")};
ON=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};
PN=function(){g.W.call(this,{G:"div",L:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.RN=function(a,b){g.jI.call(this,{G:"div",L:"ytp-progress-bar-container",W:{"aria-disabled":"true"},U:[{G:"div",Fa:["ytp-heat-map-container"],U:[{G:"div",L:"ytp-heat-map-edu"}]},{G:"div",Fa:["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",Fa:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",W:{tabindex:"0"},Fa:["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.Vd=!1;this.D=this.Pf=0;this.Wa=1;this.pd=this.S=0;this.K=null;this.xa=this.Tb=0;this.fb=this.Ca("ytp-marker-crenellation-list");this.Ra={};this.Sb={};this.clipEnd=Infinity;this.Cb=this.Ca("ytp-clip-end");this.pc=new g.mv(this.Cb,!0);this.me=this.Ca("ytp-clip-end-exclude");this.Zf=this.Ca("ytp-clip-start-exclude");this.clipStart=0;this.Fb=this.Ca("ytp-clip-start");this.Dc=new g.mv(this.Fb,!0);this.ma=this.ib=0;this.Ic=this.Ca("ytp-progress-bar");
this.qb={};this.bd={};this.Wb=this.Ca("ytp-chapters-container");this.Qf=this.Ca("ytp-timed-markers-container");this.j=[];this.X=[];this.Qd={};this.Hb=null;this.Xa=-1;this.ob=this.Ha=0;this.Z=null;this.Dd=this.Ca("ytp-scrubber-button");this.dg=this.Ca("ytp-scrubber-container");this.Lb=new g.Bh;this.xe=new EDa;this.B=new lJ(0,0);this.Ib=null;this.C=this.Ub=!1;this.nf=null;this.Da=this.Ca("ytp-fine-scrubbing-container");this.va=this.Ca("ytp-heat-map-container");this.Pc=this.Ca("ytp-heat-map-edu");this.J=
[];this.Qa=this.Vc=this.Ia=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.kc();g.sf(this,g.lM(this.tooltip,this.Cb));g.H(this,this.pc);this.pc.subscribe("hoverstart",this.oO,this);this.pc.subscribe("hoverend",this.nO,this);this.T(this.Cb,"click",this.ZB);g.sf(this,g.lM(this.tooltip,this.Fb));g.H(this,this.Dc);this.Dc.subscribe("hoverstart",this.oO,this);this.Dc.subscribe("hoverend",this.nO,this);this.T(this.Fb,"click",this.ZB);FDa(this);this.T(a,"resize",this.xb);this.T(a,"presentingplayerstatechange",
this.rS);this.T(a,"videodatachange",this.Go);this.T(a,"videoplayerreset",this.XU);this.T(a,"cuerangesadded",this.GQ);this.T(a,"cuerangesremoved",this.GZ);this.T(a,"cuerangemarkersupdated",this.GQ);this.T(a,"onLoopRangeChange",this.aK);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.Kw("timedMarkerCueRange"),this.WY);this.updateVideoData(a.getVideoData(),!0);this.aK(a.getLoopRange());QN(this)&&!this.u&&(this.u=new IN(this.api,this.D),this.u.Ba(this.Da),g.H(this,this.u),this.T(this.u.dismissButton,
"click",this.fM),this.T(this.u.playButton,"click",this.bF),this.T(this.u.element,"dblclick",this.bF),this.T(this.Da,"keydown",this.kX));this.api.Ab(this.va,this,139609,!0);this.api.Ab(this.Pc,this,140127,!0);this.api.Ab(this.fb,this,145078,!0)};
FDa=function(a){if(0===a.j.length){var b=new LN;a.j.push(b);g.H(a,b);b.Ba(a.Wb,0)}for(;1<a.j.length;)a.j.pop().dispose();MN(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
SN=function(a){for(;a.X.length;)a.X.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.Iw(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.jf("chapterCueRange");a.api.Rd(c)};
VN=function(a,b){var c,d=null==(c=a.qb[b])?void 0:c.chapters;d&&(HDa(a,d),a.api.getVideoData().yk=a.j,GDa(a));var e;if((c=null==(e=a.qb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){SN(a);e=g.r(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new PN,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)}TN(a,
a.X);e=a.X;c=a.Qd;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.Rd(d)}var l,m;b=null==(l=a.qb[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 w=t;q="hm_"+q.J.length;w.update({id:q});q="url(#"+q+")";w.C.setAttribute("clip-path",q);w.B.setAttribute("clip-path",q);w.u.setAttribute("clip-path",q);0<=d&&(t.element.style.width=d+"px")}d=[];e&&d.push(e);t=g.r(l);for(w=t.next();!w.done;w=t.next()){w=w.value;var x=q=void 0,y=void 0,z=null!=(y=null==(q=w)?void 0:null==(x=q.heatMarkerRenderer)?
void 0:x.timeRangeStartMillis)?y:-1;z>=f&&z<=k&&d.push(w)}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;w=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)*w;z=100-g.xh(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="";w=g.r(k.entries());for(q=w.next();!q.done;q=w.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.N(f.api.getRootNode(),
"ytp-heat-map",f.isValid);g.N(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.UN(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.Pw(n):""});a.heatMarkersDecorations=l}};
IDa=function(a,b){a.X.push(b);g.H(a,b);b.Ba(a.Qf,a.Qf.children.length)};
TN=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),WN(a));g.Mm(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.Pw(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 LN,a.j.push(f),g.H(a,f),f.Ba(a.Wb,a.Wb.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.UN(a);XN(a)};
g.UN=function(a){a.Ha=a.j.length-1;a.ob=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){NN(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;MN(a.j[d],e+"px");break}a.j[c].width=0;MN(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,MN(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,MN(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.Ha,l=0===a.ob?3:k*a.ob,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,NN(a.j[c],a.C?3:2));g.N(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*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);NN(p.j[q],0);b&&(a.Ha--,m/f>a.ob&&(a.ob=m/f),d=!0)}c++}}return d};
XN=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:FE(d))&&b.airingStart&&b.airingEnd?LDa(a,b.airingStart,b.airingEnd):LDa(a,b.seekableStart,b.seekableEnd);d=oJ(c,b.loaded,0);b=oJ(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;YN(a,b,d);e&&ZN(a);MDa(a)}}};
LDa=function(a,b,c){return $N(a)?new lJ(Math.max(b,a.Ib.startTimeMs/1E3),Math.min(c,a.Ib.endTimeMs/1E3)):new lJ(b,c)};
NDa=function(a,b){b&&(b=a.j[PM(a.j,b.startTimeMs)],g.N(b.j,"ytp-repeating-chapter",!1));a.Ib&&(b=a.j[PM(a.j,a.Ib.startTimeMs)],g.N(b.j,"ytp-repeating-chapter",!0));a.j.forEach(function(c){g.N(c.j,"ytp-exp-chapter-hover-container",!a.Ib)})};
bO=function(a,b){var c=nJ(a.B,b.B);if(1<a.j.length){c=aO(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.Ha)};
PDa=function(a,b,c,d){b=g.xh(b,0,a.C?60:40);a.S=b;var e=a.Wa;a.Wa=b/(a.C?60:40)*(Math.max(mJ(a.B)/a.D,1)-1)+1;b=a.D*a.Wa;a.xa=g.xh(d*b-c,0,b-a.D);e!==a.Wa&&ZN(a)};
ZN=function(a){if(1!==a.j.length||QN(a))a.Dd.style.removeProperty("height");else{var b=WN(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Dba(a.fb),f=0;if(a.S>.2*(a.C?60:40)){for(var k=mJ(a.B)/60*d,l=Math.ceil(mJ(a.B)/60*c);l<k;l++){var m=e[f];m||(m=g.ei("DIV"),a.fb.appendChild(m));f++;0===l%60?g.Cp(m,"ytp-60m-progress"):0===l%30?g.Cp(m,"ytp-30m-progress"):0===l%15?g.Cp(m,"ytp-15m-progress"):g.Cp(m,"ytp-1m-progress");m.style.left=(60*l/mJ(a.B)-c)*b.j+"px"}a.Qa||(a.Qa=!0,a.api.Za(a.fb,a.Qa))}b=a.Ub?a.B.j:0;a.update({boundTimeLeft:g.hJ(nJ(a.B,
c)-b),boundTimeRight:g.hJ(nJ(a.B,d)-b)});for(c=e.length-1;c>=f;c--)g.ii(e[c]);a.element.style.height=a.S+(a.C?8:5)+"px";a.ea("height-change",a.S);a.Dd.style.height=a.S+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Ra));for(f=e.next();!f.done;f=e.next())QDa(a,f.value);cO(a);YN(a,a.ma,a.ib)};
WN=function(a){var b=a.Lb.x,c=a.D*a.Wa;b=g.xh(b,0,a.D);a.xe.update(b,a.D,-a.xa,-(c-a.xa-a.D));return a.xe};
dO=function(a){return(a.C?135:90)-(a.C?54:48)};
YN=function(a,b,c){a.ma=b;a.ib=c;var d=WN(a),e=a.B.j,f=nJ(a.B,a.ma),k=g.MF("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.hJ(f,!0),DURATION:g.hJ(e,!0)}),l=PM(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.Ib&&2!==a.api.getPresentingPlayerType()&&(e=a.Ib.startTimeMs/1E3,f=a.Ib.endTimeMs/1E3);e=oJ(a.B,e,0);l=oJ(a.B,f,1);k=a.api.getVideoData();f=g.xh(b,e,l);c=(null==k?0:g.CE(k))?1:g.xh(c,
e,l);b=JDa(a,b,d);g.Mm(a.dg,"transform","translateX("+b+"px)");eO(a,d,e,f,"PLAY_PROGRESS");(null==k?0:FE(k))?(b=a.api.getProgressState().seekableEnd)&&eO(a,d,f,oJ(a.B,b),"LIVE_BUFFER"):eO(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)+"%")}};
eO=function(a,b,c,d,e){var f=a.j.length,k=b.j-a.Ha*(a.C?3:2),l=c*k;c=aO(a,l);var m=d*k;k=aO(a,m);"HOVER_PROGRESS"===e&&(k=aO(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++)ON(a.j[d],e).style.left=c===d?b+"px":"0";for(f=c;f<k;f++)d=a.j[f].width,fO(a,ON(a.j[f],e),f===c?d-b:d,d);f=a.j[k].width;m=g.xh(m-SDa(a,k),0,f);c===k&&(m-=b);fO(a,ON(a.j[k],e),m,f);m=a.j.length;for(k+=1;k<m;k++)fO(a,ON(a.j[k],e),0,a.j[k].width);for(k=0;k<c;k++)fO(a,ON(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};
fO=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.Mm(b,"transform","scalex("+(d?c/d:0)+")")};
aO=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.Ha)+(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.gO=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.Pf=b;a.D=c;a.C=d;QN(a)&&null!=(b=a.u)&&(b.J=d);ZN(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.UN(a);a.u&&(a.u.K=a.D,f&&QN(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.Da.style.height=c+"px",g.Mm(a.va,"transform","translateY("+-d+"px)"),g.Mm(a.Ic,"transform","translateY("+-d+"px)")),ADa(a.u)))};
cO=function(a){var b=!!a.Ib&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Ib?(c=a.Ib.startTimeMs/1E3,d=a.Ib.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var k;if(null==(k=a.Ib)?0:k.postId)f=e=!1;g.N(a.element,"ytp-loop-range-enabled",b);g.N(a.element,"ytp-clip-start-enabled",e);g.N(a.element,"ytp-clip-end-enabled",f);b=e?oJ(a.B,c,0):0;d=f?oJ(a.B,d,1):1;a.Fb.style.left=Math.round(1E3*b)/10+"%";a.Cb.style.left=Math.round(1E3*d)/10+"%";a.Zf.style.width=Math.round(1E3*
b)/10+"%";a.me.style.left=Math.round(1E3*d)/10+"%";a.me.style.width=Math.round(1E3*(1-d))/10+"%"};
MDa=function(a){var b;if(null==(b=a.api.getVideoData())||!FE(b)){b=WN(a);eO(a,b,a.ma,Math.max(b.B,a.ma),"HOVER_PROGRESS");for(var c=aO(a,b.j*a.ma,!0),d=aO(a,b.C,!0),e=c;e<=d;e++)g.N(a.j[e].u,"ytp-hover-progress-light",b.B>a.ma);g.N(a.Dd,"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.Ra[b];b=a.Sb[b];var d=WN(a),e=oJ(a.B,c.start/1E3,0),f=yqa(c,a.C)/d.width;var k=oJ(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.xh(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";fO(a,b,g.xh((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.Ra[c]===b&&(g.ii(a.Sb[c]),delete a.Ra[c],delete a.Sb[c])};
QN=function(a){return a.api.V().N("web_player_fine_scrubbing")};
hO=function(a){a.u&&(a.u.disable(),a.S=0,a.va.style.removeProperty("transform"),a.Ic.style.removeProperty("transform"),a.Da.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
UDa=function(a,b){var c=b/dO(a)*(a.C?54:48);g.Mm(a.Ic,"transform","translateY("+-b+"px)");g.Mm(a.va,"transform","translateY("+-b+"px)");g.Mm(a.Da,"transform","translateY("+c+"px)");a.Da.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.Ic,!0),a.Z.subscribe("hovermove",a.aY,a),a.Z.subscribe("hoverend",a.ZX,a),a.Z.subscribe("dragstart",a.YX,a),a.Z.subscribe("dragmove",a.cY,a),a.Z.subscribe("dragend",a.bY,a),a.nf=a.Oa("keydown",a.sS)):a.Z&&(a.element.setAttribute("aria-disabled","true"),a.vc(a.nf),a.Z.cancel(),a.Z.dispose(),a.Z=null)};
g.WDa=function(a){var b=2*a.D*g.PC();return 1E3*mJ(a.B)/a.api.getPlaybackRate()/b};
$N=function(a){var b;return!(null==(b=a.Ib)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
iO=function(a,b,c){g.W.call(this,{G:"button",Fa:["ytp-remote-button","ytp-button"],W:{title:"Play on TV","aria-haspopup":"true"},oa:"{{icon}}"});this.I=a;this.rb=c;this.currentIcon=null;this.T(a,"onMdxReceiversChange",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.T(a,"appresize",this.Ja);a.Ab(this.element,this,139118);this.Ja();this.Oa("click",this.j,this);g.sf(this,g.lM(b.kc(),this.element))};
jO=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-button","ytp-screen-mode-button"],W:{"aria-haspopup":"true","aria-owns":eI(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},U:[{G:"svg",W:{viewBox:"0 0 36 36"},U:[{G:"path",Jb:!0,W:{d:"M8 9v11.2h4v-1.6H9.6v-8h12.8V14H24V9Zm17.09 10.81h-5.81v4.36h5.81zM28 25.63V15.44c0-.8-.65-1.44-1.45-1.44h-13.09c-.8 0-1.45.64-1.45 1.44v10.19c0 .8.65 1.45 1.45 1.45h13.09c.8 0 1.45-.65 1.45-1.45Zm-1.45.01h-13.09V15.43h13.09z",fill:"#fff"}}]}]});
this.I=a;this.u=!0;this.rb=null;this.Oa("click",this.B);this.T(a,"appresize",this.j);g.sf(this,g.lM(b.kc(),this.element));this.j(a.bb().getPlayerSize())};
kO=function(a,b,c,d,e){g.sM.call(this,g.tM(),a,b);this.rb=d;this.j=!1;this.u=null;e&&(this.u=new g.W({G:"div",U:[{G:"span",oa:"{{title}}"},{G:"span",L:"ytp-menuitem-keyboard-shortcut",oa:e}]}),this.If(this.u),this.u.Ka("title",b),g.H(this,this.u));this.Oa("click",this.onClick)};
lO=function(a,b){b&&!a.j?(a.rb.yc(a),a.j=!0):!b&&a.j&&(a.rb.kf(a),a.j=!1)};
mO=function(a,b){kO.call(this,9,"Miniplayer",a,b,"(i)");this.I=a;uM(this,{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!0,W:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]});this.T(a,"fullscreentoggled",this.Ja);a.Ab(this.element,this,62946);this.Ja()};
nO=function(a,b,c){kO.call(this,11,"Connect to a device",a,b);this.I=a;this.B=c;this.currentIcon=null;this.T(a,"onMdxReceiversChange",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.T(a,"appresize",this.Ja);a.Ab(this.element,this,139118);this.Ja()};
oO=function(a,b){kO.call(this,10,"Theater mode",a,b,"(t)");this.I=a;this.isWidescreen=null;this.T(a,"sizestylechange",this.Ja);this.T(a,"fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);a.Ab(this.element,this,139116);this.Ja()};
pO=function(a,b,c){g.FM.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.Ym=c;this.Wc=new g.wM(this.I);this.vC=0;g.H(this,this.Wc);this.T(a,"minimized",this.hide);this.T(a,"sizestylechange",this.hide);this.T(a,"fullscreentoggled",this.hide);this.hide();g.DM(this,this.Wc);this.Ym=c;this.element.id=c.element.getAttribute("aria-owns");a=this.I.V();a.fb&&(b=new nO(this.I,this,this.settingsMenu),g.H(this,b),this.vC++);a.qb||(b=new oO(this.I,this),g.H(this,b),this.vC++);a.showMiniplayerButton&&
(a=new mO(this.I,this),g.H(this,a),this.vC++)};
qO=function(a,b,c){g.W.call(this,{G:"button",Fa:["ytp-button","ytp-settings-button"],W:{"aria-expanded":"false","aria-haspopup":"true","aria-owns":eI(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.wI()]});this.I=a;this.rb=c;this.u=!0;this.Oa("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.sf(this,g.lM(b.kc(),this.element));this.I.Ab(this.element,
this,28663);this.updateBadge();this.j(a.bb().getPlayerSize())};
rO=function(a,b){a.u=!!b;a.j(a.I.bb().getPlayerSize())};
sO=function(a,b){AM.call(this,"Annotations",6);this.I=a;this.rb=b;this.j=!1;a.N("web_settings_menu_icons")&&uM(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.Ja);this.T(a,"onApiChange",this.Ja);this.subscribe("select",this.u,this);this.Ja()};
g.tO=function(a,b,c,d,e,f,k){g.sM.call(this,g.tM({"aria-haspopup":"true"}),b,a);this.rb=d;this.C=!1;this.u=null;this.options={};this.B=new g.wM(c,void 0,a,e,f,k);g.H(this,this.B);this.Oa("keydown",this.tS);this.Oa("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.uO=function(a,b){g.xM(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.options[f],l=f===a.u;l&&(d=!0);k&&k.priority===-e?(l=a,l.options[f].If(l.Cj(f,!0)),delete a.options[f]):k=a.qE(f,-e,l);c[f]=k;a.B.yc(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};
vO=function(a,b){g.tO.call(this,"Audio track",3,a,b);this.I=a;this.tracks={};this.j=new g.W({G:"div",U:[{G:"span",oa:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",oa:"{{content}}"}]});a.N("web_settings_menu_icons")&&uM(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.If(this.j);this.T(a,"videodatachange",this.Ja);this.T(a,"onPlaybackAudioChange",this.Ja);this.Ja()};
wO=function(a,b){AM.call(this,"Autoplay",7);this.I=a;this.rb=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()};
xO=function(a,b,c,d){d=new g.W({G:"div",Fa:["ytp-linked-account-popup-button"],oa:d,W:{role:"button",tabindex:"0"}});b=new g.W({G:"div",L:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{G:"div",L:"ytp-linked-account-popup-title",oa:b},{G:"div",L:"ytp-linked-account-popup-description",oa:c},{G:"div",L:"ytp-linked-account-popup-buttons",U:[d]}]});g.XL.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.Oa("click",function(){e.Db()});
g.H(this,d);g.ZK(this.I,this.element,4);this.hide()};
yO=function(a,b){g.sM.call(this,g.tM({"aria-haspopup":"true"}),1);this.I=a;this.rb=b;this.u=this.j=!1;this.T(this.I,"videodatachange",this.C);this.Oa("click",this.onClick);this.C()};
zO=function(a){return a?g.Pw(a):""};
AO=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-screen-mode-settings-option",U:[{G:"div",L:"ytp-screen-mode-settings-label",oa:"{{label}}"}]});this.rb=c;this.Ym=new g.jI({G:"button",Fa:["ytp-screen-mode-settings-button","ytp-button"],oa:"{{icon}}",W:{title:"{{title}}"}});this.Ym.Ba(this.element,0);g.H(this,this.Ym);this.Ym.Ka("icon",a);this.If(b);this.Oa("click",this.onClick)};
BO=function(a,b,c){AO.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"}}]},OL(b,"Miniplayer","i"),c);this.I=b;a.addButton(this);this.T(b,"fullscreentoggled",this.Ja);b.Ab(this.element,this,62946);this.Ja()};
CO=function(a,b){g.tO.call(this,"Quality",2,a,b);this.I=a;this.D={};this.j="unknown";a.N("web_settings_menu_icons")&&uM(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.Hv);this.T(a,"videoplayerreset",this.Hv);this.T(a,"onPlaybackQualityChange",
this.bK);this.Hv();a.Ab(this.element,this,137721)};
YDa=function(a,b,c){a=a.D[b];var d=g.Jx[b];c={G:"span",Fa: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};
DO=function(a,b,c){AO.call(this,Bza(),"Connect to a device",c);this.I=b;this.currentIcon=null;a.addButton(this);this.T(b,"onMdxReceiversChange",this.Ja);this.T(b,"presentingplayerstatechange",this.Ja);this.T(b,"appresize",this.Ja);b.Ab(this.element,this,139118);this.Oa("click",this.onClick);this.Ja()};
EO=function(a,b){g.jI.call(this,{G:"div",L:"ytp-screen-mode-menu-item"});this.I=a;this.rb=b};
FO=function(a,b,c){AO.call(this,Qza(),OL(b,"Theater mode","t"),c);this.I=b;this.isWidescreen=null;a.addButton(this);this.T(b,"sizestylechange",this.Ja);this.T(b,"fullscreentoggled",this.Ja);this.T(b,"presentingplayerstatechange",this.Ja);b.Ab(this.element,this,139116);this.Ja()};
GO=function(a,b,c,d,e,f,k){g.W.call(this,{G:"div",L:"ytp-slider-section",W:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-slider",U:[{G:"div",L:"ytp-slider-handle"}]}]});this.J=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.Z=f;this.range=this.maximumValue-this.minimumValue;this.ma=this.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.vS,this);this.T(this.element,"keydown",this.wS);this.T(this.element,"wheel",this.uS);this.init()};
IO=function(a){GO.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.I=a;this.B=g.ei("P");this.va=fba(this.X,this);g.M(this.u,"ytp-speedslider");g.M(this.B,"ytp-speedslider-text");a=this.B;var b=this.u;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);HO(this);this.T(this.I,"onPlaybackRateChange",this.xa)};
HO=function(a){a.B.textContent=JO(a,a.j)+"x"};
JO=function(a,b){a=Number(g.xh(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))};
KO=function(a){g.jI.call(this,{G:"div",L:"ytp-speedslider-component"});this.j=new IO(a);g.H(this,this.j);this.element.appendChild(this.j.element)};
ZDa=function(a){var b=new KO(a);vM.call(this,a,b,"Custom");g.H(this,b)};
LO=function(a,b){var c=new ZDa(a);g.tO.call(this,"Playback speed",5,a,b,"Custom",function(){g.DM(b,c)});
a.N("web_settings_menu_icons")&&uM(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.Ja);this.Ja()};
$Da=function(a,b){var c=MO(b);a.options[c]?a.Di(c):b===a.D&&a.j&&(a.Di(a.j),a.Cd(b.toString()))};
bEa=function(a){g.uO(a,a.J.map(MO));a.j=null;a.D=null;var b=a.I.getPlaybackRate();a.J.includes(b)||(aEa(a,b),g.tO.prototype.Of.call(a,a.j))};
aEa=function(a,b){a.D=b;a.j=g.MF("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.J.map(MO);b.unshift(a.j);g.uO(a,b)};
MO=function(a){return a.toString()};
NO=function(a,b,c,d){var e=new g.wM(b,void 0,"Video Override");g.tO.call(this,d.text||"",a,b,c,"Video Override",function(){g.DM(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.pc(a,this.getKey,this);this.J=e;g.H(this,this.J);b=new g.sM({G:"div",L:"ytp-menuitemtitle",oa:"Allow for a different caption style if specified by the video."},0);g.H(this,b);this.J.yc(b,!0);this.D=new g.sM({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.yc(this.D,!0);this.T(this.D.element,
"click",function(){cEa(f,!0)});
this.j=new g.sM({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.yc(this.j,!0);this.T(this.j.element,"click",function(){cEa(f,!1)});
g.uO(this,g.Sl(a,this.getKey))};
cEa=function(a,b){a.ea("settingChange",a.setting+"Override",!b);a.rb.Ch()};
OO=function(a,b){g.wM.call(this,a,void 0,"Options");var c=this;this.So={};for(var d=0;d<g.SM.length;d++){var e=g.SM[d],f=new NO(-d,a,b,e);g.H(this,f);f.subscribe("settingChange",this.yh,this);this.So[e.option.toString()]=f;this.yc(f,!0)}a=new g.sM(g.tM(),-g.SM.length,"Reset");g.H(this,a);a.Oa("click",function(){c.yh("reset",!0)});
this.yc(a,!0)};
PO=function(a,b){g.tO.call(this,"Auto-translate",0,a,b);this.I=a;this.languages={};a.Ab(this.element,this,127301);a.Za(this.element,!0)};
dEa=function(a,b){a.languages=g.pc(b,a.getKey,a);g.uO(a,g.Sl(b,a.getKey))};
QO=function(a,b){var c=new OO(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.UC(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.tO.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.DM(b,c)},e);
var f=this;this.I=a;this.rb=b;this.tracks={};this.J=new g.L(function(){eEa(f,!1)},3E3);
g.H(this,this.J);this.K=new g.W({G:"div",U:[{G:"span",oa:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",oa:"{{content}}"}]});g.H(this,this.K);this.If(this.K);a.N("web_settings_menu_icons")&&uM(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 PO(a,b);g.H(this,this.j);this.j.subscribe("select",this.xS,this);this.D=c;g.H(this,this.D);this.D.subscribe("settingChange",this.yh,this);b.subscribe("show",this.EY,this);this.T(a,"videodatachange",this.Ja);this.T(a,"onApiChange",this.Ja);this.T(a,"onCaptionsTrackListChanged",this.Ja);this.T(a,"captionschanged",this.Ja);a.Ab(this.element,this,127300);this.Ja()};
eEa=function(a,b){a.I.setOption("captions","sampleSubtitles",b)};
RO=function(a){g.FM.call(this,a,"ytp-settings-menu");var b=this;this.Wc=new g.wM(this.I);this.kG=this.settingsButton=null;this.wC=0;this.isInitialized=!1;g.H(this,this.Wc);this.hide();g.DM(this,this.Wc);var c=this.I.V();if(c.N("web_screen_mode_menu_b")){var d=new EO(this.I,this);g.H(this,d);if(c.showMiniplayerButton&&!c.N("web_player_pip")){var e=new BO(d,this.I,this);g.H(this,e)}c.qb||(e=new FO(d,this.I,this),g.H(this,e),this.wC++);c.fb&&(c=new DO(d,this.I,this),g.H(this,c),this.wC++);1<this.wC&&
ICa(this.Wc,d)}a.Ab(this.element,this,108341,!0);this.subscribe("show",function(f){b.Ne(f)})};
fEa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
SO=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-size-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.isWidescreen=null;this.transition=new BN;this.tooltip=b.kc();g.H(this,this.transition);this.T(a,"sizestylechange",this.Ja);this.T(a,"fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);a.Ab(this.element,this,139116);this.Ja();this.Oa("click",this.onClick);g.sf(this,g.lM(this.tooltip,this.element))};
g.TO=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-subtitles-button","ytp-button"],W:{"aria-pressed":"{{pressed}}",title:"{{title}}"},U:[iCa()]});this.I=a;this.tooltip=b.kc();this.T(a,"videodatachange",this.Ja);this.T(a,"appresize",this.Ja);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ja);this.T(a,"onCaptionsTrackListChanged",this.Ja);this.T(a,"captionschanged",this.Ja);this.I.Ab(this.element,this,127299);this.Ja();this.Oa("click",this.onClick);g.sf(this,g.lM(b.kc(),
this.element))};
g.VO=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{G:"div",Fa:["ytp-time-display","notranslate"],U:[{G:"span",L:"ytp-time-clip-icon",oa:"{{clipicon}}"},{G:"span",U:[{G:"span",L:"ytp-time-current",oa:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",oa:" / "},{G:"span",L:"ytp-time-duration",oa:"{{duration}}"}]},{G:"span",L:"ytp-clip-watch-full-video-button-separator",oa:"\u2022"},{G:"span",L:"ytp-clip-watch-full-video-button",oa:"{{watchfullvideo}}"}]});this.api=a;this.K=c;this.liveBadge=new g.W({G:"button",
Fa:["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.Ib=this.C=this.B=null;this.S=this.Ca("ytp-clip-watch-full-video-button");this.liveBadge.Cd("Live");g.H(this,this.liveBadge);this.liveBadge.Ba(this.element);this.tooltip=b.kc();this.Oa("click",this.onClick);this.T(this.S,"click",this.kZ);this.T(a,"presentingplayerstatechange",this.Qb);this.T(a,"appresize",this.Qb);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Qb();a=a.getLoopRange();b=this.Ib!==a;this.Ib=a;b&&UO(this)};
UO=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.N(a.element,"ytp-clip",WO(a));g.N(a.element,"ytp-live",XO(a))};
XO=function(a){return a.isLiveVideo&&!a.u&&!WO(a)};
WO=function(a){return!!a.Ib&&!!a.Ib.postId&&2!==a.api.getPresentingPlayerType()&&(!a.api.N("web_repeating_chapters")||"clips"===a.Ib.type)};
$O=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-volume-panel",W:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-volume-slider",U:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.K=c;this.Oi=!1;this.X=this.volume=0;this.J=null;this.B=this.u=this.isDragging=!1;this.j=b;this.K=c;this.C=b.bf();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.JY,this);this.D.subscribe("dragmove",this.zS,this);this.D.subscribe("dragend",this.IY,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.cK);this.T(a,"fullscreentoggled",this.Rm);this.T(a,"onShowControls",this.CL);this.T(a,"onHideControls",this.CL);this.T(this.element,"keydown",this.AS);this.T(this.element,"focus",function(){YO(d,d.u,d.isDragging,!0,d.j.Oi())});
this.T(this.element,"blur",function(){YO(d,d.u,d.isDragging,!1,d.j.Oi())});
this.cK(a.bb().getPlayerSize());ZO(this,a.getVolume(),a.isMuted())};
ZO=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};
gEa=function(a,b){g.N(a.element,"ytp-volume-control-hover",b);YO(a,b,a.isDragging,a.B,a.j.Oi())};
YO=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.Oi;a.u=b;a.isDragging=c;a.B=d;a.Oi=e;b=a.u||a.isDragging||a.B||a.Oi;f!==b&&(b?a.J=a.T(a.element,"wheel",a.yS):(a.vc(a.J),a.J=null),g.N(a.K,"ytp-volume-slider-active",b))};
g.aP=function(a,b){var c=a.V(),d=g.MC(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.BC(c)&&e.push("ytp-youtube-music-button");var f={target:c.K,"data-sessionlink":"feature=player-button",title:""};c.C||(f.title=g.MF("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.W.call(this,{G:"a",Fa:e,W:f,oa:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Ab(this.element,this,28666);c.C||this.Oa("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.sf(this,g.lM(b.kc(),this.element));this.xb()};
bP=function(a,b,c){g.iA.call(this);var d=this;this.I=a;this.B=b;this.Jd=c;this.Qa=NaN;this.Ra=this.Ia=null;this.settingsMenu=new RO(this.I);this.j=null;this.Ic=new g.RN(this.I,this.B);this.muteButton=null;this.Tg=new g.VO(this.I,this.B);this.S=this.D=this.C=this.X=this.Da=this.xa=null;this.Z=new EN(this.I,this.B);this.Ha=new g.wN(this.I,this.B);this.ge=new g.vp(this.Vq,null,this);this.K=null;c=a.V();this.Jd.subscribe("autohideupdate",this.Xj,this);var e=!a.yb().isCued(),f=this.I.V().N("html5_player_bottom_linear_gradient");
f||!g.BC(c)&&!a.V().N("html5_player_dynamic_bottom_gradient")?f=f?new g.W({G:"div",L:"ytp-gradient-bottom-container",U:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.W({G:"div",L:"ytp-gradient-bottom"}):this.Ra=f=new g.oN(a);g.H(this,f);g.ZK(a,f.element,9);this.ra=new g.UI(f,250,e,100);g.H(this,this.ra);this.u=new g.W({G:"div",L:"ytp-chrome-bottom",U:[{G:"div",L:"ytp-chrome-controls"}]});g.H(this,this.u);g.ZK(a,this.u.element,9);this.ma=new g.UI(this.u,250,
e,100);g.H(this,this.ma);this.va=this.u.element.children[0];g.sf(this.settingsMenu,function(){a.Bo()===d.settingsMenu&&(a.settingsMenu=null)});
g.H(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.ZK(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){hEa(d.B.kc(),!n);b.Ay(d.settingsMenu,n)});
g.H(this,this.Ic);this.Ic.Ba(this.u.element,0);e=new g.sN(a);g.H(this,e);g.ZK(a,e.element,4);f=new g.fI({G:"div",L:"ytp-left-controls"});g.H(this,f);f.Ba(this.va);e=new g.HN(a,b,!1);g.H(this,e);e.Ba(f.element);c.xa||(e=new g.FN(a,b),g.H(this,e),e.Ba(f.element),VC(c)&&(e=new g.fI({G:"div",L:"ytp-hybrid-controls"}),g.H(this,e),this.S=new g.FN(a,b,!0),g.H(this,this.S),this.S.Ba(e.element),g.ZK(a,e.element,4)));e=new g.HN(a,b,!0);g.H(this,e);e.Ba(f.element);e=new g.W({G:"span",L:"ytp-volume-area"});g.H(this,
e);e.Ba(f.element);if(!c.Cb&&(this.muteButton=new g.DN(a,b),g.H(this,this.muteButton),this.muteButton.Ba(e.element),c.va&&!c.J)){var k=new $O(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(){gEa(k,!0)});
e=new g.mv(f.element);g.H(this,e);e.subscribe("hoverend",function(){gEa(k,!1)})}g.H(this,this.Tg);
this.Tg.Ba(f.element);e=new g.fI({G:"div",L:"ytp-right-controls"});g.H(this,e);this.xa=new qN(a,b,this.Ic);g.H(this,this.xa);this.xa.Ba(f.element);c.N("web_key_moments_markers")&&(this.Da=new xN(a,b,this.Ic),g.H(this,this.Da),this.Da.Ba(f.element));e.Ba(this.va);a.V().Tb&&c.N("web_player_move_autonav_toggle")&&(f=new mN(a,b),g.H(this,f),f.Ba(e.element));c.N("external_fullscreen_with_edu")&&c.externalFullscreen&&OC(c)&&(this.X=new vN(a,b),g.H(this,this.X),this.X.Ba(e.element));f=new g.TO(a,b);g.H(this,
f);f.Ba(e.element);f=new qO(a,b,this.settingsMenu);g.H(this,f);fEa(this.settingsMenu,f);f.Ba(e.element);if(c.N("web_screen_mode_menu_a")){var l=new jO(a,b);g.H(this,l);this.j=new pO(this.I,this.settingsMenu,l);l.rb=this.j;g.sf(this.j,function(){a.Xw()===d.j&&(a.vD=null)});
g.H(this,this.j)}if(f=this.j&&1<this.j.vC)a.vD=this.j,g.ZK(a,this.j.element,7),this.j.subscribe("show",function(n){hEa(d.B.kc(),!n);b.Ay(d.j,n)}),l.Ba(e.element);
var m=new AN(a);g.H(this,m);g.ZK(a,m.element,5);m.subscribe("show",function(n){b.Sn(m,n)});
l=new zN(a,b,m);g.H(this,l);l.Ba(e.element);l=a.getVideoData();if(c.vj||l.D&&"1"===c.controlsType)this.C=new g.aP(a,b),g.H(this,this.C),this.C.Ba(e.element);g.H(this,this.Z);!f&&1>=this.settingsMenu.wC&&(c.showMiniplayerButton&&!a.V().N("web_player_pip")&&(this.D=new yN(a,b),g.H(this,this.D),this.D.Ba(e.element)),this.Z.Ba(e.element),l.KD||this.Z.hide(),c.qb||(l=new SO(a,b),g.H(this,l),l.Ba(e.element)),c.fb&&(l=new iO(a,b,this.settingsMenu),g.H(this,l),l.Ba(e.element)),c.wk&&(c=new lN(a,b),g.H(this,
c),c.Ba(e.element)));g.H(this,this.Ha);this.Ha.Ba(e.element);g.H(this,this.ge);this.T(a,"appresize",this.xb);this.T(a,"fullscreentoggled",this.xb);this.T(a,"presentingplayerstatechange",this.zD);this.T(a,"videodatachange",this.onVideoDataChange);this.xb()};
iEa=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.kc().Dj(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.Xj())};
jEa=function(a){var b=a.I.bb().getPlayerSize().width;return Math.max(b-2*cP(a),100)};
cP=function(a){var b=a.B.bf();return 12*(a.I.getVideoData().D?0:b?2:1)};
dP=function(a){var b=a.B.bf()?72:50;a=a.I.V();g.QC(a)&&(b=54,Dua(a)&&(b=62));return b};
eP=function(a,b){hN.call(this,a,b,!1);var c=this;this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,g.Kw("suggested_action_button_visible"),function(){c.Ne(!0)});
this.T(this.I,g.Lw("suggested_action_button_visible"),function(){c.Ne(!1)})};
fP=function(a){a.I.jf("suggested_action_button_visible")};
hP=function(a){var b={G:"div",L:gP.SUBTEXT,U:[{G:"a",L:gP.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},oa:"{{channelName}}"}]};a.V().C&&(b={G:"div",L:gP.SUBTEXT,U:[{G:"span",L:gP.CHANNEL_NAME,oa:"{{channelName}}"}]});g.W.call(this,{G:"div",L:gP.TITLE,U:[{G:"div",L:gP.TEXT,U:[{G:"a",Fa:[gP.LINK,gP.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(gP.LINK);
a.Ab(this.element,this,23851);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.Ja()};
kEa=function(a){a.Ka("channelLink","");a.Ka("channelName","");a.Ka("channelTitleFocusable","-1")};
g.iP=function(a,b){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-tooltip-text-wrapper",U:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"g",U:[{G:"rect",W:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",U:[{G:"g",U:[{G:"polygon",W:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",W:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path",
W:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",oa:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",oa:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",oa:"{{duration}}"}]}]});var c=this;this.api=a;this.Da=b;this.env=this.api.V();this.xa=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.X=function(d){(d=tu(d))&&g.ki(c.u,d)||c.Ek()};
this.C=function(d){3===c.type&&c.Ek();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.X),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.X),lEa(c,d,2))};
this.Z=function(){c.Ek()};
this.u=null;this.D=new g.UI(this,100);this.type=null;this.S=!1;this.j=null;this.B=NaN;this.J="";this.AD=this.api.bb().getPlayerSize().width;this.K=!0;this.scale=1;this.ma=new g.L(this.LV,250,this);this.va=new g.L(this.Ek,5E3,this);g.H(this,this.D);g.H(this,this.ma);g.H(this,this.va);mC&&(a=this.Ca("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
pM=function(a){a.element.setAttribute("aria-live","polite")};
hEa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:jP(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.K=b};
oEa=function(a,b,c,d,e,f,k,l){if(!a.xa||a.env.J){3===a.type&&a.Ek();1!==a.type&&(g.Cp(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.kh(),a.j&&a.j.subscribe("l",a.xO,a));a.update({text:d,title:null!=k?k:""});g.N(a.text,"ytp-tooltip-text-no-title",1===a.type&&!k);g.N(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=JD(a.j,160*a.scale),a.env.N("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=Iva(a.j,d,c));mEa(a,d);if(l)switch(c=g.Xm(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"}nEa(a,!!e,b,f)}};
g.kP=function(a){1===a.type&&a.Ek()};
g.lM=function(a,b){if(a.xa)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.Ek();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
KM=function(a,b,c){if(a.type)if(3===a.type)a.Ek();else return;lEa(a,b,3,c)};
lEa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Is("showElementTooltip called with non-element.",b.toString()),g.S(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.S=!!d;d?a.J=d:(a.J=b.getAttribute("title"),b.removeAttribute("title"));g.Cp(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.N(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.N(a.element,"ytp-tooltip-opaque",!!b);a.type=
c;a.api.addEventListener("appresize",a.Z);a.K&&(jP(a),a.D.show(0))}};
jP=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.Ep(a.element,["ytp-text-detail","ytp-preview"]);
g.N(a.element,"ytp-has-duration",!!d)}else a.Ka("text",a.J),g.Gp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);nEa(a,!!b)};
nEa=function(a,b,c,d){var e=Math.min(a.AD,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Da.ir(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()};
LM=function(a){a.u&&!a.S&&a.u.hasAttribute("title")&&(a.J=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&jP(a))};
mEa=function(a,b){g.N(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=Eva(a.j,a.B,b);rN(a.bg,d,b,c,!0);a.ma.start()}};
pEa=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.lP=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.qC(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.kc();pM(this.tooltip);a.Ab(this.element,this,28665);this.Oa("click",this.onClick,this);this.T(a,"videoplayerreset",this.BS);
this.T(a,"appresize",this.Az);this.T(a,"videodatachange",this.Az);this.T(a,"presentingplayerstatechange",this.Az);this.Az();a=this.I.V();var c=g.gw("yt-player-watch-later-pending");a.j&&c?(zta(),qEa(this)):this.Ja(2);g.N(this.element,"ytp-show-watch-later-title",g.qC(a));g.sf(this,g.lM(b.kc(),this.element))};
rEa=function(a,b){g.uJ(function(){zta({videoId:b});window.location.reload()},"wl_button",g.LC(a.I.V()))};
qEa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ja(3);var b=a.I.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.dl(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ja(2);a.I.V().B&&a.I.La("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ja(1);a.I.V().isMobile&&KM(a.tooltip,a.element);a.I.V().B&&a.I.La("WATCH_LATER_VIDEO_ADDED")};
HJ(c,b).then(d,function(){a.isRequestPending=!1;sEa(a,"An error occurred. Please try again later.")})}};
sEa=function(a,b){a.Ja(4,b);a.I.V().B&&a.I.La("WATCH_LATER_ERROR",b)};
tEa=function(a,b){var c=a.I.V();if(b!==a.icon){switch(b){case 3:var d=ML();break;case 1:d=mI();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=c.N("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Ka("icon",d);a.icon=b}};
mP=function(a){g.aM.call(this,a);var b=this;this.TA=(this.Eq=g.qC(this.api.V()))&&(this.api.V().isMobile||is()||gs());this.xE=48;this.yE=69;this.Wk=null;this.Uo=[];this.zc=new g.gM(this.api);this.Bw=this.api.N("web_player_deprecate_double_tap_ux")?new MM:new NM(this.api);this.ri=new g.W({G:"div",L:"ytp-chrome-top"});this.Qy=[];this.tooltip=new g.iP(this.api,this);this.backButton=this.ju=null;this.channelAvatar=new rM(this.api,this);this.title=new hP(this.api,this);this.Ug=new g.fI({G:"div",L:"ytp-chrome-top-buttons"});
this.Ag=this.shareButton=this.Hh=null;this.zg=new kM(this.api,this,this.ri.element);this.overflowButton=this.rg=null;this.Kf="1"===this.api.V().controlsType?new bP(this.api,this,this.Jd):null;this.contextMenu=new g.IM(this.api,this,this.zc);this.nE=!1;this.nA=new g.W({G:"div",W:{tabindex:"0"}});this.mA=new g.W({G:"div",W:{tabindex:"0"}});this.by=null;this.uG=this.Zz=!1;var c=a.bb(),d=a.V(),e=a.getVideoData();this.Eq&&(g.M(a.getRootNode(),"ytp-embed"),g.M(a.getRootNode(),"ytp-embed-playlist"),this.TA&&
(g.M(a.getRootNode(),"ytp-embed-overlays-autohide"),g.M(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.xE=60,this.yE=89);this.api.V().isMobile&&(g.M(a.getRootNode(),"ytp-mobile"),this.api.V().J&&g.M(a.getRootNode(),"ytp-embed-mobile-exp"));this.Cg=e&&e.Cg;g.H(this,this.zc);g.ZK(a,this.zc.element,4);g.H(this,this.Bw);g.ZK(a,this.Bw.element,4);e=new g.W({G:"div",L:"ytp-gradient-top"});g.H(this,e);g.ZK(a,e.element,1);this.xI=new g.UI(e,250,!0,100);g.H(this,this.xI);g.H(this,this.ri);g.ZK(a,
this.ri.element,1);this.wI=new g.UI(this.ri,250,!0,100);g.H(this,this.wI);g.H(this,this.tooltip);g.ZK(a,this.tooltip.element,4);var f=new YM(a);g.H(this,f);g.ZK(a,f.element,5);f.subscribe("show",function(l){b.Sn(f,l)});
this.Qy.push(f);this.ju=new ZM(a,this,f);g.H(this,this.ju);d.showBackButton&&(this.backButton=new fM(a),g.H(this,this.backButton),this.backButton.Ba(this.ri.element));this.Eq||this.ju.Ba(this.ri.element);this.channelAvatar.Ba(this.ri.element);g.H(this,this.channelAvatar);g.H(this,this.title);this.title.Ba(this.ri.element);g.H(this,this.Ug);this.Ug.Ba(this.ri.element);d.C||(this.Hh=new g.lP(a,this),g.H(this,this.Hh),this.Hh.Ba(this.Ug.element));var k=new g.eN(a,this);g.H(this,k);g.ZK(a,k.element,5);
k.subscribe("show",function(l){b.Sn(k,l)});
this.Qy.push(k);d.C||(this.shareButton=new g.dN(a,this,k),g.H(this,this.shareButton),this.shareButton.Ba(this.Ug.element),this.Ag=new g.JM(a,this),g.H(this,this.Ag),this.Ag.Ba(this.Ug.element));d.Ik&&(e=new kN(a),g.H(this,e),g.ZK(a,e.element,4));this.Eq&&this.ju.Ba(this.Ug.element);g.H(this,this.zg);this.zg.Ba(this.Ug.element);d.C||(e=new mM(a,this,this.zg),g.H(this,e),e.Ba(this.Ug.element));this.rg=new VM(a,this);g.H(this,this.rg);g.ZK(a,this.rg.element,5);this.rg.subscribe("show",function(){b.Sn(b.rg,
b.rg.hg())});
this.Qy.push(this.rg);this.overflowButton=new UM(a,this,this.rg);g.H(this,this.overflowButton);this.overflowButton.Ba(this.Ug.element);this.Kf&&g.H(this,this.Kf);"3"===d.controlsType&&(e=new cN(a,this),g.H(this,e),g.ZK(a,e.element,9));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.KQ,this);e=new pJ(a,new eM(a));g.H(this,e);g.ZK(a,e.element,4);this.nA.Oa("focus",this.FU,this);g.H(this,this.nA);this.mA.Oa("focus",this.GU,this);g.H(this,this.mA);(this.Km=d.me?null:new g.RM(a,c,this.contextMenu,
this.Jd,this.zc,this.Bw,function(){return b.Zk()}))&&g.H(this,this.Km);
this.Eq||(this.VP=new iN(this.api,this),g.H(this,this.VP),g.ZK(a,this.VP.element,4));this.hQ=new eP(this.api,this);g.H(this,this.hQ);g.ZK(a,this.hQ.element,4);this.To.push(this.zc.element);this.T(a,"fullscreentoggled",this.Rm);this.T(a,"offlineslatestatechange",function(){b.api.nx()&&GL(b.Jd,128,!1)});
this.T(a,"cardstatechange",function(){b.qj()});
this.T(a,"resize",this.ZW);this.T(a,"showpromotooltip",this.BX)};
uEa=function(a){var b=a.api.V(),c=g.V(a.api.yb(),128);return b.j&&c&&!a.api.isFullscreen()};
nP=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Pm(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=nP(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};
vEa=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.by){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.by=new $M(d,a,a.api),g.H(a,a.by),g.ZK(a.api,a.by.element,9));var l;null==(l=a.by)||l.xD(d,c)}}};
g.oP=function(a){g.lL.call(this,a);this.chrome=null;this.load()};
pP=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.ej(a),trigger:b};wEa(k,a);c&&c(k);d&&!l&&d(new g.eD("pathprobe.net",k))}
var f=(0,g.R)();g.Gr(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
wEa=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())};
qP=function(a){g.G.call(this);var b=this;this.Y=a;this.j=new Map;this.C=[];this.B=this.Y.N("html5_onesie_prefer_trusted_host");this.X=g.cB(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.S=new g.L(this.K,this.X,this);this.J=-1;g.H(this,this.S);xEa(this,g.gw("yt-player-bandaid-host"));this.Z=this.load();this.X&&this.Z.then(function(){b.K()})};
xEa=function(a,b){var c=null==b?void 0:b.primary;a.u(0,c);c=c?yEa(c):void 0;a.u(2,c);a.u(1,null==b?void 0:b.secondary)};
rP=function(a,b){return new g.Zx("https://"+b+a.Y.ih.baseUrl)};
sP=function(a,b,c,d){pP("https://"+b+"/videoplayback?probe=1",c,function(e){d.N("html5_onesie_host_racing")&&!d.N("html5_onesie_probe_ec_hosts")&&(d.VA||d.PM());a.C.push(e)},function(e){a.C.push(e.details)})};
yEa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
uP=function(a,b){var c,d,e,f,k,l;return g.B(function(m){if(1==m.j){c=rP(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($x(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",$x(c),e.xhr.status)));f=new g.Zx(e.xhr.responseText);k=by(f);
l=f.get("ms");a.Y.N("html5_onesie_keep_redirector_params")?f.set("id",null):(f=rP(a,k),f.set("ms",l));return k&&zEa(k)?2!==b||tP(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};
zEa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
tP=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
vP=function(a,b){this.location=a;this.XM=b;this.endTimestamp=this.startTimestamp=-1};
wP=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=xP.length;4>a;a++){var b=g.ei("VIDEO");b.load();xP.push(new g.FL(b))}};
EEa=function(){this.u=200;this.j=12};
FEa=function(a){var b=new EEa;b.u=g.cB(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.j=g.cB(a.experiments,"html5_gapless_max_played_ranges");return b};
g.yP=function(a,b,c,d){d=void 0===d?!1:d;iH.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.Nh()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.j&&((b=b.zd())&&b.isView()&&(b=b.mediaElement),b&&b.uq().length>a.j&&g.jE(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.jE(f)&&
g.jE(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}};
zP=function(){var a=this;this.j=this.u=iaa;this.promise=new g.yi(function(b,c){a.u=b;a.j=c})};
AP=function(a,b,c,d){g.G.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Il=new zP;this.nk=d-1E3*b.rd();this.Il.then(void 0,function(){});
this.timeout=new g.L(function(){e.Xe("timeout")},1E4);
g.H(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.Na()};
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.Na();a.timeout.start();b=g.BP.tp("gtfta");return g.A(p,a.Il,2)}g.BP.Xn(b);c=a.j.zd();if(c.Sf())return a.Xe("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!CA(a.C))return a.Xe("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.tq()!==a.C)return a.Xe("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=HEa(a);e=d.cO;f=d.PL;k=d.bO;a.j.Pg(!1,!0);l=IEa(c,e,k,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.K&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Cq:!0,vI:3,pe:"gapless_pseudo"}),l.play()||Mr());m=c.Nb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+k;a.u.ya("gapless",m);a.j.ya("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().fb&&g.sH(a.u.getPlayerState())&&KEa(a.u)});
CP(a,6);a.dispose();return p.return(Promise.resolve())})};
OEa=function(a){if(a.u.getVideoData().C){DP(a.u,a.C);CP(a,3);MEa(a);var b=NEa(a),c=b.UP;b=b.YZ;c.subscribe("updateend",a.Es,a);b.subscribe("updateend",a.Es,a);a.Es(c);a.Es(b)}};
MEa=function(a){a.j.unsubscribe("internalvideodatachange",a.Xp,a);a.u.unsubscribe("internalvideodatachange",a.Xp,a);a.j.unsubscribe("mediasourceattached",a.Xp,a);a.u.unsubscribe("statechange",a.Tc,a)};
IEa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.yP(a,b,c,d)};
CP=function(a,b){a.Na();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Il.resolve(void 0))};
HEa=function(a){var b=a.j.zd();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:EP(a.j,!0);c=Math.min(a.nk/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Nh()+d;return{lU:b,cO:a,PL:c,bO:Infinity}};
NEa=function(a){return{UP:a.B.j.Id,YZ:a.B.u.Id}};
FP=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.Na();a.Ot()||GP(a);a.C=new zP;a.j=b;var e=c,f=a.app.Kc(),k=f.getVideoData().isLivePlayback?Infinity:1E3*EP(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.Ta.addEventListener(g.Kw("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.Iw(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,EP(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),k=Math.min(d,EP(b)+l));f=pta(e,k)||d;f!==d&&a.j.ya("qvaln",{st:d,at:f,rm:l,ct:k})}b=f;d=a.j;d.getVideoData().bd=!0;d.getVideoData().Ha=!0;g.HP(d,!0);e={};a.u&&(e=g.IP(a.u.Zb.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.ya("queued",e);0!==b&&d.seekTo(b+.01,{Cq:!0,vI:3,pe:"videoqueuer_queued"});a.B=new AP(a.S,a.app.Kc(),a.j,c);c=a.B;c.Na();Infinity!==c.status.status&&(CP(c,1),c.j.subscribe("internalvideodatachange",
c.Xp,c),c.u.subscribe("internalvideodatachange",c.Xp,c),c.j.subscribe("mediasourceattached",c.Xp,c),c.u.subscribe("statechange",c.Tc,c),c.j.subscribe("newelementrequired",c.CO,c),c.Xp());return a.C};
PEa=function(a){var b,c,d;g.B(function(e){switch(e.j){case 1:if(a.isDisposed())return e.return();a.Na();if(!a.C||!a.j)return a.Na(),e.return();a.K&&JP(a.app.Kc(),!0,!1);b=null;if(!a.B){e.Ya(2);break}g.va(e,3);return g.A(e,LEa(a.B),5);case 5:g.wa(e,2);break;case 3:b=c=g.xa(e);case 2:if(!a.j)return a.Na(),e.return();g.BP.zH("vqsp",function(){KP(a.app,a.j)});
g.BP.zH("vqpv",function(){a.app.playVideo()});
b&&REa(a.j,b.message);d=a.C;GP(a);return e.return(d.resolve(void 0))}})};
GP=function(a){if(a.u){var b=a.u;a.app.Ta.removeEventListener(g.Kw("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.Xe("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.aL(a.app,1)&&a.j!==a.app.Kc()&&a.j.dispose();a.j=null;a.K=!1};
SEa=function(){var a=uoa();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};
LP=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.Ne()};
UEa(this.C);this.D=this.getVisibilityState(this.Bf(),this.isFullscreen(),this.Se(),this.isInline(),this.Mt(),this.It())};
WEa=function(a){this.end=this.start=a};
g.PP=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.Y=b;this.Aa=c;this.xa=new Map;this.Qa=new Map;this.Da=new Map;this.D=new Map;this.B=[];this.J=[];this.u=new Map;this.ub=new Map;this.K=new Map;this.qb=NaN;this.ib=this.Ra=null;this.ob=new g.L(function(){MP(d,d.qb)});
this.events=new g.iA(this);this.isLiveNow=!0;this.Dc=g.cB(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.ma=new g.L(function(){d.Z=!0;var e=d.Aa,f=d.Dc;e.ya("sdai",{aftimeout:f});e.ud(new g.eD("ad.fetchtimeout",{timeout:f}));NP(d);d.bx(!1)},this.Dc);
this.Z=!1;this.Ha=new Map;this.fb=[];this.X=null;this.pc=new Set;this.va=[];this.Cb=[];this.Tb=[];this.Lb=[];this.j=void 0;this.Ia=0;this.Xa=!0;this.C=!1;this.Va=[];this.Sb=new Set;this.Wb=new Set;this.Ub=new Set;this.Ji=0;this.S=null;this.Wa=new Set;this.Hb=0;this.Qn=this.Fb=!1;this.Aa.getPlayerType();XEa(this.Aa,this);this.ra=cD(this.Y);g.H(this,this.ob);g.H(this,this.events);g.H(this,this.ma);OP(this)||(this.events.T(this.api,g.Kw("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api,
g.Lw("serverstitchedcuerange"),this.onCueRangeExit))};
$Ea=function(a,b,c,d,e,f,k){var l=YEa(a,e,e+d);a.Y.N("html5_ssdai_log_ad_transition_info")&&a.Aa.ya("sdai",{attl:1,len:(d/1E3).toFixed(3),enter:(e/1E3).toFixed(3),abid:k});a.Z&&a.Aa.ya("sdai",{adaftto:1});var m=a.Y.N("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Aa;f=void 0===f?e+d:f;e===f&&!d&&a.Y.N("html5_allow_zero_duration_ads_on_timeline")&&a.Aa.ya("sdai",{attl0d:1});if(e>f&&(a.Na(),QP(a,{reason:"enterTime_greater_than_return",wc:e,Nc:f}),m))return"";var p=1E3*n.getMinSeekableTime();
if(e<p&&(a.Na(),QP(a,{reason:"enterTime_less_than_minSeekableTime",wc:e,Vha:p}),m))return"";n=1E3*n.getDuration();if(f>n&&(a.Na(),QP(a,{reason:"parent_return_greater_than_content_duration",Nc:f,Tha: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.wc&&e<p.Nc||f<=p.Nc&&f>p.wc||f===p.wc)return a.Na(),RP(a,b.video_id||"",e,f,p),"";e===p.Nc&&(n=p)}else m=g.ic(a.J,{Nc:e},function(t,w){return t.Nc-w.Nc}),0<=m&&(n=a.J[m],n.Nc>e&&RP(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.Y.N("web_player_ss_timeout_skip_ads"))return a.Aa.ya("sdai",{rejectAttl:1}),k&&!an(a.Lb,function(t){return t===k})&&(a.Aa.ya("sdai",{rejectAdBreakAttl:1}),a.Lb.push(k)),a.Y.N("web_player_stop_timer_for_timedout_ab_killswitch")||SP(a),"";
l="ss_childplayback_"+ZEa++;b.cpn||(b.cpn=g.uv(16));m=b.cpn;b=new g.SD(a.Y,b);b.xc=l;c={xc:l,playerType:c,durationMs:d,wc:e,Nc:f,cpn:m,videoData:b,errorCount:0};g.nc(a.J,c,function(t,w){return t.wc-w.wc});
a.u.set(m,c);a.ub.set(l,c);a.Aa.ya("sdai",{attlDone:f-e});k?c.Ok=k:n?c.Ok=n.Ok:c.Ok=c.cpn;if(e=c.Ok)(d=a.K.get(e))?(d.push(c),g.kc(d,function(t,w){return t.wc-w.wc})):a.K.set(e,[c]);
a.ma.isActive()&&(a.Z=!1,a.ma.stop(),NP(a),a.bx(!0));a.Na();return l};
TP=function(a,b,c){return a.Y.experiments.kb("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}};
aFa=function(a,b,c){return new g.Iw(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
UP=function(a){return{cpn:a.Aa.getVideoData().clientPlaybackNonce,durationMs:0,wc:0,playerType:1,Nc:0,videoData:a.Aa.getVideoData(),errorCount:0}};
WP=function(a,b,c){var d=a.C,e=UP(a),f=b.uf-c.uf;.5<Math.abs(f)&&a.Aa.ya("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.xc,k.En),e=TP(a,"a2a",k),a.Aa.ya("sdai",e),a.Ji++,VP(a.Aa,l,k,c.uf,b.uf,d))}else if(!b.isAd&&c.isAd){a.api.ea("serverstitchedvideochange");k=TP(a,"a2c");a.Aa.ya("sdai",k);a.Ji=0;if(k=c.Ed)a.Ia=k.end;var m;c.adCpn&&(m=a.u.get(c.adCpn));
m&&VP(a.Aa,m,e,c.uf,b.uf,d)}else if(b.isAd&&!c.isAd){var n;b.adCpn&&(n=a.u.get(b.adCpn));n&&(a.Ia=0,a.api.ea("serverstitchedvideochange",n.xc,n.En),m=TP(a,"c2a",n),a.Aa.ya("sdai",m),a.Ji=1,VP(a.Aa,e,n,c.uf,b.uf,d))}};
XP=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.ic(a.J,{wc:c},function(e,f){return e.wc-f.wc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.J[d],a.Nc>=c)?{gm:a,Uq:b}:{gm:void 0,Uq:b}};
YP=function(a,b){var c="";OP(a)?(c=b/1E3-a.Am(),c=a.Aa.Ct(c)):(b=bFa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
bFa=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};
MP=function(a,b){var c=a.ib||a.api.Kc().getPlayerState();ZP(a,!0);var d=b;a.Y.N("web_player_ssdai_seek_without_offset_killswitch")&&(d=XP(a,b).Uq);a.Aa.seekTo(d);a=a.api.Kc();b=a.getPlayerState();g.sH(c)&&!g.sH(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()};
ZP=function(a,b){a.qb=NaN;a.ob.stop();a.Ra&&b&&$P(a.Ra);a.ib=null;a.Ra=null};
aQ=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Na();for(var d=b,e=c,f=[],k=g.r(a.J),l=k.next();!l.done;l=k.next())l=l.value,(l.wc<d||l.Nc>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.Aa.removeCueRange(k),a.D.delete(k.getId()),a.Aa.ya("sdai",{rmAdCR:1}));d=XP(a,b/1E3);b=d.gm;d=d.Uq;b&&(d=1E3*d-b.wc,e=b.wc+d,a.Na(),b.durationMs=d,b.Nc=e,cFa(a,b));if(b=XP(a,c/1E3).gm){var m;d="playback_timelinePlaybackId_"+b.xc+"_video_id_"+
(null==(m=b.videoData)?void 0:m.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.wc+"_parentReturnTimeMs_"+b.Nc;a.wx("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
dFa=function(a){a.Y.N("web_player_ss_timeline_manager_reset_all_killswitch")||(a.xa.clear(),a.Qa.clear(),a.Da.clear(),a.D.clear(),a.B=[],a.J=[],a.u.clear(),a.ub.clear(),a.K.clear(),a.Ha.clear(),a.fb=[],a.X=null,a.pc.clear(),a.va=[],a.Cb=[],a.Tb=[],a.Lb=[],a.Va=[],a.Sb.clear(),a.Wb.clear(),a.Ub.clear(),a.Wa.clear(),a.isLiveNow=!0,a.Z=!1,a.j=void 0,a.Ia=0,a.Xa=!0,a.C=!1,a.Ji=0,a.S=null,a.Hb=0,a.Fb=!1,a.Qn=!1)};
cFa=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.wc+b.durationMs:d.end===c.start&&(d.end=b.wc);c.start=b.wc;c.end=b.wc+b.durationMs}};
bQ=function(a,b,c){c=a.Ha.get(c);c||(b+=a.Am(),c=XP(a,b,1).gm);return c};
cQ=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;eFa(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.Aa.removeCueRange(e);if(a.Va.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else eFa(a,b,c)};
eFa=function(a,b,c){b=aFa(b,c);c=!0;g.nc(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.Aa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.Aa.addCueRange(b),b=a.Aa.Gw("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())};
dQ=function(a,b,c){if(void 0===c||!c){c=g.r(a.fb);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.fb.push(new WEa(b))}};
g.fFa=function(a,b){a=g.r(a.fb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
RP=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Pha:b,wc:c,Nc:d,rha:e.xc,sha:(null==(f=e.videoData)?void 0:f.videoId)||"",oha:e.durationMs,pha:e.wc,qha:e.Nc};QP(a,b)};
QP=function(a,b){a=a.Aa;a.ya("timelineerror",b);a.ud(new g.eD("dai.timelineerror",b))};
gFa=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};
hFa=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};
iFa=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};
jFa=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.Nc!==b.wc&&c++;return c};
kFa=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.Nc!==e.wc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Wb.has(e)&&(a.Aa.ya("sdai",{decoratedAd:e}),a.Wb.add(e)))}};
NP=function(a){a.ra&&a.Aa.ya("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Hb)+"_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={Bp:d.Bp},f=e.next()){d.Bp=f.value;f=1E3*d.Bp.startSecs;var k=1E3*d.Bp.durationSecs+f;if(b>f&&b<k||c>f&&c<k)return an(a.Tb,function(l){return function(m){return m.identifier===l.Bp.identifier}}(d))||(a.Aa.ya("sdai",{adskip:b}),a.Tb.push(d.Bp)),d.Bp}};
SP=function(a){a.Z=!1;a.ma.isActive()&&NP(a);a.ma.stop();a.bx(!1)};
OP=function(a){return a.Y.experiments.kb("html5_ssdai_use_new_ad_report")};
eQ=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.Y=b;this.j=c;this.J=new Map;this.u=[];this.B=this.K=null;this.X=NaN;this.D=this.C=null;this.S=new g.L(function(){lFa(d,d.X)});
this.Z=[];this.ma=new g.L(function(){var e=d.Z.pop();if(e){var f=e.xc,k=e.playerVars;e=e.playerType;k&&(k.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(k,e,NaN,"",f),d.Z.length&&g.xp(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.Kw("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.qg)};
pFa=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 fQ(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),k,l),"";var n=1E3*m.getMinSeekableTime();if(e<n)return fQ(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.rd(),fQ(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.wc&&e<q.Nc)return fQ(a,"overlappingEnter",k,l),a.Na(),"";if(f<=q.Nc&&f>q.wc)return fQ(a,"overlappingReturn",k,l),a.Na(),"";if(f===q.wc)return fQ(a,"outOfOrder",k,l),a.Na(),"";e===q.Nc&&(n=q)}k="cs_childplayback_"+mFa++;l={Ed:gQ(d,!0),nk:Infinity,target:null};var t={xc:k,playerVars:b,playerType:c,durationMs:d,wc:e,Nc:f,Un:l};a.u=a.u.concat(t).sort(function(y,z){return y.wc-z.wc});
n?nFa(a,n,{Ed:gQ(n.durationMs,!0),nk:a.Y.N("timeline_manager_transition_killswitch")?Infinity:n.Un.nk,target:t}):(b={Ed:gQ(e,!1),nk:e,target:t},a.J.set(b.Ed,b),a.Na(),m.addCueRange(b.Ed));b=a.Y.N("html5_gapless_preloading");if(a.j===a.api.Kc()&&(m=1E3*m.getCurrentTime(),m>=t.wc&&m<t.Nc)){var w=a.api.Kc().getPlayerState(),x=m-t.wc;qi(function(){oFa(a,t,x/1E3,w)});
b=!1}b&&(a.Z.unshift(t),g.xp(a.ma,0));a.Na();return k};
gQ=function(a,b){return new g.Iw(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
qFa=function(a,b,c,d){a.Na();a.B=d;a.api.fA(a.j,c,b)};
rFa=function(a,b,c,d){a.Na();a.B=d;d=b.xc;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
nFa=function(a,b,c){var d=b.Un;b.Un=c;hQ(a,b)&&(c=a.api.Kc(),d.Ed===a.B&&iQ(a),a.Na(),c.removeCueRange(d.Ed),b=b.Un,a.Na(),c.addCueRange(b.Ed))};
iQ=function(a){a.K=null;a.B=null;a.api.Ot()||a.api.clearQueue()};
sFa=function(a,b){hQ(a,b)||fQ(a,"childPlaybackIsNotPresenting");return b.Nc===b.wc+b.durationMs?(a=a.api.Kc(),b.wc+1E3*a.getCurrentTime()):b.Nc};
jQ=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.wc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{gm:d,Uq:b-e};c=f-d.Nc/1E3}return{gm:null,Uq:b-c}};
lFa=function(a,b){var c=a.D||a.api.Kc().getPlayerState();kQ(a,!0);b=a.Y.N("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.Jj();var d=jQ(a,b);b=d.gm;d=d.Uq;var e=b&&!hQ(a,b)||!b&&a.j!==a.api.Kc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||iQ(a);a.Na();b?(a.Na(),oFa(a,b,d,c)):(a.Na(),lQ(a,d,c))};
lQ=function(a,b,c){var d=a.j,e=a.api.Kc();d!==e&&a.api.Vm();d.seekTo(b,{pe:"application_timelinemanager"});tFa(a,c)};
oFa=function(a,b,c,d){var e=hQ(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.SD(a.Y,b.playerVars);f.xc=b.xc;a.api.Po(f,b.playerType)}f=a.api.Kc();e||(b=b.Un,a.Na(),f.addCueRange(b.Ed));f.seekTo(c,{pe:"application_timelinemanager"});tFa(a,d)};
tFa=function(a,b){a=a.api.Kc();var c=a.getPlayerState();g.sH(b)&&!g.sH(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()};
kQ=function(a,b){a.X=NaN;a.S.stop();a.C&&b&&$P(a.C);a.D=null;a.C=null};
hQ=function(a,b){a=a.api.Kc();return!!a&&a.getVideoData().xc===b.xc};
uFa=function(a){var b=a.u.find(function(e){return hQ(a,e)});
if(b){var c=a.api.Kc();iQ(a);var d=new g.mH(8);b=sFa(a,b)/1E3;lQ(a,b,d);c.ya("forceParentTransition",{childPlayback:1});a.j.ya("forceParentTransition",{parentPlayback:1})}};
mQ=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Na();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.nk>=d&&l.target&&l.target.Nc<=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.wc>=d&&l.Nc<=e){var m=a;m.K===l&&iQ(m);hQ(m,l)&&m.api.Vm()}else f.push(l);a.u=f;d=jQ(a,b/1E3);b=d.gm;d=d.Uq;b&&(d*=1E3,vFa(a,b,d,b.Nc===b.wc+b.durationMs?b.wc+d:b.Nc));(b=jQ(a,
c/1E3).gm)&&fQ(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.xc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.wc+" parentReturnTimeMs="+b.Nc+"}.Child playbacks can only have duration updated not their start."))};
vFa=function(a,b,c,d){a.Na();b.durationMs=c;b.Nc=d;d={Ed:gQ(c,!0),nk:c,target:null};nFa(a,b,d);hQ(a,b)&&1E3*a.api.Kc().getCurrentTime()>c&&(b=sFa(a,b)/1E3,c=a.api.Kc().getPlayerState(),lQ(a,b,c))};
fQ=function(a,b,c,d){a.j.ya("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
xFa=function(a){a&&"web"!==a&&wFa.includes(a)};
pQ=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(){nQ(c);oQ(c)});
g.H(this,this.j)};
yFa=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())qQ(a,d.value,b);a.data=[];oQ(a)};
nQ=function(a){var b=(0,g.R)();a.data.forEach(function(c){c.expire<b&&qQ(a,c,!0)});
a.data=g.Xn(a.data,function(c){return!(c.expire<b)})};
qQ=function(a,b,c){c&&a.u&&a.u(b.value)};
oQ=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.rQ=function(a){this.tag=a};
sQ=function(){g.G.call(this);this.j=new pQ(5,null);g.H(this,this.j)};
zFa=function(a,b){return b?!!a.j.get(b):!1};
tQ=function(){g.Yp.call(this);this.D=new Map};
uQ=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};
vQ=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()};
wQ=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||[]};
xQ=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:AFa(c.buffer))||0};
yQ=function(a){this.u=a;this.j=NaN;this.buffer=new uQ(100)};
BFa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.Yb()+")":a.Yb()};
zQ=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)};
CFa=function(a,b){cpa(a,"version",b)};
BQ=function(a){g.W.call(this,{G:"div",Fa:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.AQ.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.pw=this.Ca(g.AQ.VIDEO_CONTAINER);this.nu=new g.Jm(0,0,0,0);this.Eb=null;this.SB=new g.Jm(0,0,0,0);this.yF=this.xG=this.wG=NaN;this.LA=this.PB=this.qH=this.zL=!1;this.CE=NaN;this.aG=!1;this.xx=null;this.PG=function(){b.element.focus()};
this.DB=function(){b.app.Ta.ea("playerUnderlayVisibilityChange","visible");b.Eb.classList.remove(g.AQ.VIDEO_CONTAINER_TRANSITIONING);b.Eb.removeEventListener(DFa,b.DB);b.Eb.removeEventListener("transitioncancel",b.DB)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,k,l){c.apply(b.element,[f,k,l])};
this.removeEventListener=function(f,k,l){d.apply(b.element,[f,k,l])};
var e=a.V();e.transparentBackground&&this.Fn("ytp-transparent");"0"===e.controlsType&&this.Fn("ytp-hide-controls");g.M(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.M(this.element,"ytp-linear-gradient-bottom-experiment");Dua(e)&&g.M(this.element,"ytp-larger-tap-buttons");e.N("enable_new_paid_product_placement")&&!g.TC(e)&&g.M(this.element,"ytp-exp-ppp-update");VC(e)&&g.M(this.element,"ytp-exp-hybrid-controls");CFa(this.element,EFa(a));this.WP=!1;this.Iw=
new g.Dh(NaN,NaN);FFa(this);this.T(a.Ta,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
FFa=function(a){function b(){a.Eb&&CQ(a);DQ(a)!==a.aG&&a.resize()}
function c(k,l){a.Go(k,l)}
function d(k){k.getVideoData()&&a.updateVideoData(k.getVideoData())}
function e(){a.SB=new g.Jm(0,0,0,0);a.nu=new g.Jm(0,0,0,0)}
var f=a.app.Ta;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.sf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
GFa=function(a){var b=g.aL(a.app);if(b=b?b.getVideoData():null){if(g.qE(b)||g.rE(b)||g.tE(b))return 16/9;if(aE(b)&&b.C.j)return a=b.C.videoInfos[0].video,EQ(a.width,a.height)}return(a=a.Eb)?EQ(a.videoWidth,a.videoHeight):16/9};
HFa=function(a,b,c,d){var e=c,f=EQ(b.width,b.height);a.zL?e=c<f?Infinity:0:isNaN(a.yF)?isNaN(a.xG)||(e=a.xG):e=a.yF;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};
EQ=function(a,b){return 1>Math.abs(FQ*b-a)||1>Math.abs(FQ/a-b)?FQ:a/b};
DQ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.aL(a.app);if(!b||b.ll())return!1;var c=a.app.Ta.yb();a=!g.V(c,2)||!a.app.V().N("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ha;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()};
CQ=function(a){var b="3"===a.app.V().controlsType&&!a.LA&&DQ(a)&&!a.app.Cx||!1;a.Eb.controls=b;a.Eb.tabIndex=b?0:-1;b?a.Eb.removeEventListener("focus",a.PG):a.app.V().N("disable_focus_redirect")||a.Eb.addEventListener("focus",a.PG)};
IFa=function(a){var b=a.Hg(),c=1,d=!1,e=HFa(a,b,a.getVideoAspectRatio()),f=a.app.V().N("enable_desktop_player_underlay"),k=es(),l=g.cB(a.app.V().experiments,"player_underlay_min_player_width");l=f&&a.qH&&a.getPlayerSize().width>l;if(DQ(a)){var m=GFa(a);var n=isNaN(m)||g.ot||GQ&&g.Qs||l;fs&&!g.wc(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.Jm(n,0,b.width,
b.height)):n=new g.Jm(0,0,b.width,b.height):(c=e.aspectRatio/m,n=new g.Jm((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.WP)a.Eb.style.display="";a.aG=!0}else{n=-b.height;fs?n*=window.devicePixelRatio:g.XC&&(n-=window.screen.height);n=new g.Jm(0,n,b.width,b.height);if(k||a.WP)a.Eb.style.display="none";a.aG=!1}Km(a.SB,n)||(a.SB=n,g.yC(a.app.V())?(a.Eb.style.setProperty("width",n.width+"px","important"),a.Eb.style.setProperty("height",
n.height+"px","important")):g.Wm(a.Eb,n.getSize()),d=new g.Bh(n.left,n.top),g.Sm(a.Eb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Jm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Km(a.nu,b)||(a.nu=b,d=!0);g.Mm(a.Eb,"transform",1===c?"":"scaleX("+c+")");f&&l!==a.PB&&(l&&(a.Eb.addEventListener(DFa,a.DB),a.Eb.addEventListener("transitioncancel",a.DB),a.Eb.classList.add(g.AQ.VIDEO_CONTAINER_TRANSITIONING)),a.PB=l,a.app.Ta.ea("playerUnderlayVisibilityChange",a.PB?"transitioning":"hidden"));
return d};
JFa=function(){this.csn=g.Lv();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
KFa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
LFa=function(a){if(a.csn!==g.Lv())if("UNDEFINED_CSN"===a.csn)a.csn=g.Lv();else{var b=g.Lv(),c=g.Kv();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.Wv(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.Xv(b,c)}};
HQ=function(a,b,c,d,e){g.W.call(this,{G:"div",L:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.D+"em"};
IQ=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.ei("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.ei("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="")};
JQ=function(a){var b=null;b={G:"button",Fa:["html5-video-info-panel-close","ytp-button"],W:{title:"close"},oa:"[X]"};g.W.call(this,{G:"div",L:"html5-video-info-panel",U:[b,{G:"div",L:"html5-video-info-panel-content",U:[{G:"div",U:[{G:"div",oa:"Video ID / sCPN"},{G:"span",oa:"{{video_id_and_cpn}}",L:"ytp-sfn-cpn"}]},{G:"div",U:[{G:"div",oa:"Viewport / Frames"},{G:"span",oa:"{{dims_and_frames}}"}]},{G:"div",U:[{G:"div",oa:"Current / Optimal Res"},{G:"span",oa:"{{resolution}}"}]},{G:"div",U:[{G:"div",
oa:"Volume / Normalized"},{G:"span",oa:"{{volume}}"}]},{G:"div",U:[{G:"div",oa:"Codecs"},{G:"span",oa:"{{codecs}}"}]},{G:"div",W:{style:"{{shader_info_style}}"},U:[{G:"div",oa:"Shader Info"},{G:"span",oa:"{{shader_info}}"}]},{G:"div",W:{style:"{{color_style}}"},U:[{G:"div",oa:"Color"},{G:"span",oa:"{{color}}"}]},{G:"div",W:{style:"{{drm_style}}"},U:[{G:"div",oa:"Protected"},{G:"span",oa:"{{drm}}"}]},{G:"div",W:{style:"{{bandwidth_style}}"},U:[{G:"div",oa:"Connection Speed"},{G:"span",U:[{G:"span",
oa:"{{bandwidth_chart}}"},{G:"span",oa:"{{bandwidth_kbps}}"}]}]},{G:"div",W:{style:"{{network_activity_style}}"},U:[{G:"div",oa:"Network Activity"},{G:"span",U:[{G:"span",oa:"{{network_activity_chart}}"},{G:"span",oa:"{{network_activity_bytes}}"}]}]},{G:"div",U:[{G:"div",oa:"Buffer Health"},{G:"span",U:[{G:"span",oa:"{{buffer_health_chart}}"},{G:"span",oa:"{{buffer_health_seconds}}"}]}]},{G:"div",W:{style:"{{live_latency_style}}"},U:[{G:"div",oa:"Live Latency"},{G:"span",U:[{G:"span",oa:"{{live_latency_chart}}"},
{G:"span",oa:"{{live_latency_secs}}"}]}]},{G:"div",W:{style:"{{live_mode_style}}"},U:[{G:"div",oa:"Live Mode"},{G:"span",oa:"{{live_mode}}"}]},{G:"div",W:{style:"{{playback_categories_style}}"},U:[{G:"div",oa:"Playback Categories"},{G:"span",oa:"{{playback_categories}}"}]},{G:"div",U:[{G:"div",oa:"Mystery Text"},{G:"span",oa:"{{debug_info}}"}]},{G:"div",U:[{G:"div",oa:"Date"},{G:"span",oa:"{{date}}"}]},{G:"div",W:{style:"{{cotn_and_local_media_style}}"},U:[{G:"div",oa:"COTN / Local Media"},{G:"span",
oa:"{{cotn_and_local_media}}"}]},{G:"div",W:{style:"{{release_style}}"},U:[{G:"div",oa:"Player Release"},{G:"span",oa:"{{release_name}}"}]}]}]});b?(b=this.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 HQ(300,1,150,b,c);g.H(this,this.j);this.Ka("bandwidth_chart",this.j);this.B=new HQ(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 HQ(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 HQ(300,1,150,d,c);g.H(this,this.C);this.Ka("network_activity_chart",this.C);this.delay=
new g.L(this.Ja,500,this);g.H(this,this.delay);this.Ta=a};
MFa=function(a){a=void 0===a?{}:a;var b=a.Gh,c=a.Sg,d=a.getLastSegmentNumber,e=a.wt;this.mm=a.mm;this.Gh=b;this.Sg=c;this.getLastSegmentNumber=d;this.wt=e};
NFa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.mm||b===c&&(a=a.wt())&&b===a.Ma?!0:!1};
OFa=function(a,b,c){if(!NFa(a,b))return 0;if(!a.Gh||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.wt())&&b===a.Ma&&!a.pending?2:1};
KQ=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
PFa=function(a,b){var c=Math.min(2.5,$B(a.schedule));a=LQ(a);return b-c*a};
MQ=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.pd&&(d=Math.abs(d));d/=a.playbackRate;var f=1/bC(a.schedule);var k=Math.max(.9*(d-3),$B(a.schedule)+2048*f);c=k/f*a.policy.Rp/(b+c);c=Math.min(c,d);a.policy.Vd&&e&&(c=Math.max(c,a.policy.Vd));return QFa(a,c,b)};
QFa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Qp*c),Math.min(Math.min(a.policy.Ha,31*c),Math.ceil(b*c))))||65536};
LQ=function(a){return bC(a.schedule,!a.policy.yj,a.policy.cm)};
NQ=function(a){return LQ(a)/a.playbackRate};
OQ=function(a,b,c,d,e){this.Ua=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.gf;this.D=null};
RFa=function(a,b,c){var d=b.j.index,e=b.u.Ma;Lz(d,e)||c&&c.Ma===e?(a.Na(),b.D=!Lz(d,e),b.S=!Lz(d,e)):(a.Na(),b.D=!0,b.S=!0)};
TFa=function(a,b,c,d){a.Na();if(!b.j.df())return a=a.policy.Pv&&!!b.B.length&&b.B[0]instanceof PQ,0===c||a||QQ(b),c;var e=RQ(b,c);if(!isNaN(e))return a.Na(),e;QQ(b);SQ(b.C);return d&&(a=uA(d.xf(),c),!isNaN(a))?(TQ(b,a+SFa),c):TQ(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.Ua.ya("seekreason",{reason:"behindMinSq",tgt:e});VFa(a,e)});
return}}c?a.videoTrack.S=!1:a.audioTrack.S=!1;var f=a.policy.gs||!a.C;if(0<=RQ(a.videoTrack,a.B)&&0<=RQ(a.audioTrack,a.B)&&f){if(a.videoTrack.D||a.audioTrack.D)a.Na(),a.Ua.ya("iterativeSeeking",{status:"done",count:a.seekCount});a.videoTrack.D=!1;a.audioTrack.D=!1}else d&&g.vi(function(){if(a.C||!a.policy.Ra)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.Na(),a.Ua.ya("iterativeSeeking",{status:"done",count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Na(),a.Ua.ya("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.B,actual:k,duration:l,isVideo:c}),a.seek(a.B)):(a.Na(),a.Ua.ya("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.B,actual:k}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ua.Aa.seekTo(k+.1,{Cq:!0,pe:"chunkSelectorSynchronizeMedia",
Yp:!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.Ie)||b.Ma===a.j.Ie)&&d<a.j.Ie?(a.Na(),a.j.getMinSeekableTime()):-1};
VFa=function(a,b){a.C&&-1!==a.videoTrack.J&&-1!==a.audioTrack.J&&(a.C=!1,a.Na(),a.Ua.Aa.seekTo(b+.1,{Cq:!0,pe:"chunkSelectorSynchronize",Yp:!0}))};
WFa=function(a){var b=-1!==a.videoTrack.J,c=-1!==a.audioTrack.J;if(!b||!c)if(b=!b&&a.videoTrack.Gf(),c=!c&&a.audioTrack.Gf(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.J=c.Gf().info.Ma,-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))&&sta(a.j);g.vi(function(){return VFa(a,d)});
a.Ua.ya("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={}};
UQ=function(a,b,c,d,e,f){g.iv.call(this);this.Ua=a;this.S=b;this.policy=c;this.J=d;this.xa=e;this.ma=this.j=null;this.B=this.D=NaN;this.K=0;this.X=NaN;this.C=null;this.ra=new Map;this.Z="";this.va=0;this.u=f?1:0};
VQ=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){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b};
aGa=function(a,b,c,d){$Fa(a.J,d,c,b);$Fa(a.xa,d,c,b);PA(a.S,d,!0);PA(a.S,d,!1);a.ya("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
bGa=function(a,b){if(a.j){var c=a.j.Kd.durationSecs-(b.startTime+a.K-a.j.Kd.startSecs);0>=c||(c=new Aw(a.j.Kd.startSecs-(isNaN(a.K)?0:a.K),c,a.j.Kd.context,a.j.Kd.identifier,"stop",a.j.Kd.j+1E3*b.duration),a.ya("cuepointdiscontinuity",{segNum:b.Ma}),VQ(a,c,b.Ma))}};
WQ=function(a,b,c){a.u!==b&&(a.ya("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
cGa=function(a,b,c,d){(void 0===d?0:d)?WQ(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&WQ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
XQ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
dGa=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Ua=a;this.ra=b;this.policy=c;this.C=d;this.J=e;this.Wa=f;this.logger=new g.rQ("dash/abr");this.j=RD;this.u=this.K=null;this.X=-1;this.Ha=!1;this.nextVideo=this.B=null;this.D=[];this.xa={};this.videoIndex=0;this.Ra=this.Z=this.S=!1;this.va=0;this.Qa=new Set;this.Va=!1;this.ma=new Map;this.Ia=0;this.Xa=!1;this.Da=null};
iGa=function(a,b,c){YQ(a,b);eGa(a,c);a.K=a.B;fGa(a);gGa(a);a.u=a.nextVideo;a.K=a.B;return hGa(a)};
jGa=function(a,b){if(a.j.equals(b))return null;if("m"===b.reason&&b.isLocked())return YQ(a,b),a.videoIndex=a.D.length-1,ZQ(a),$Q(a),a.Z=a.Z||a.u!==a.nextVideo,a.u=a.nextVideo,new XQ(a.B,a.u,b.reason);"r"===b.reason&&(a.X=-1);YQ(a,b);$Q(a);if("r"===b.reason&&a.nextVideo===a.u)return new XQ(a.B,a.nextVideo,b.reason);a.u&&a.nextVideo&&aR(a,a.u.info)<aR(a,a.nextVideo.info)&&(b=a.j.reason,a.S=a.S||"r"===b||"u"===b||"v"===b);return null};
kGa=function(a,b){if(b.info.video){if(a.u!==b)return a.u=b,hGa(a)}else a.Ra=a.K!==b,a.K=b;return null};
bR=function(a,b,c){a.Ia+=1;if(void 0===c?0:c)a.Xa=!0;c=6E4*Math.pow(2,a.Ia);a.ma.set(b.info.id,(0,g.R)()+c);a.X=-1;YQ(a,a.j)};
cR=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};
lGa=function(a,b){return new XQ(a.K,a.u,b||a.j.reason)};
hGa=function(a){a.Ha?a.Ha=!1:a.X=(0,g.R)();a.S=!1;return new XQ(a.K,a.u,a.j.reason)};
mGa=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};
YQ=function(a,b){a.j=b;var c=a.J.videoInfos;if(!a.j.isLocked()){var d=(0,g.R)();c=g.Xn(c,function(q){if(q.Ob>this.policy.Ob)return!1;var t=this.C.j[q.id],w=t.info.j;return this.policy.qs&&this.Qa.has(w)||this.ma.get(q.id)>d||4<t.u.u||4<t.S?!1:t.C?!1:!0},a);
a.Xa&&cR(a)&&(c=a.policy.ls?g.Xn(c,function(q){return 854>=q.video.width&&480>=q.video.height}):g.Xn(c,function(q){return 480>=q.video.j}))}c.length||(c=a.J.videoInfos);
var e=g.Xn(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.xj&&GQ&&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=mGa(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=mGa(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 aR(a,q)-aR(a,t)});
c={};for(b=1;b<e.length;c={Zy:c.Zy,Yy:c.Yy},b++)c.Yy=e[b-1],c.Zy=e[b],c.Yy.video.width>c.Zy.video.width?(g.Yb(e,b),b--):aR(a,c.Yy)*a.policy.B>aR(a,c.Zy)&&(g.Yb(e,b-1),b--);c=e[e.length-1];a.Va=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;UBa(a.policy,c)};
eGa=function(a,b){b?a.B=a.C.j[b]:(b=(b=g.Qb(a.J.j,function(c){return!!c.Fc&&c.Fc.isDefault}))||a.J.j[0],a.B=a.C.j[b.id]);
ZQ(a)};
nGa=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=NQ(a.ra)/a.policy.B;return aR(a,b.info)+aR(a,a.D[c])>d};
ZQ=function(a){if(!a.B||!a.policy.u)if(!a.B||!a.B.info.Fc)if(a.B=a.C.j[a.J.j[0].id],1<a.J.j.length){var b=!1;if(a.policy.Qa){if(b=!0,a.policy.Xl){var c=Pb(a.J.j,function(d){return"250"===d.Yb()});
0<=c&&(a.B=a.C.j[a.J.j[c].id],b=nGa(a,a.B))}}else b=a.j.isLocked()?240>a.j.j:nGa(a,a.B);b&&(a.B=a.C.j[g.Ob(a.J.j).id])}};
$Q=function(a){a.policy.fh&&(a.Da=a.Da||new g.L(function(){a.policy.fh&&a.u&&!cR(a)&&1===Math.floor(10*Math.random())?(bR(a,a.u),a.S=!0):a.Da.start()},6E4),g.xp(a.Da));
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.Ob(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=NQ(a.ra),d=aR(a,a.B.info),e=c/a.policy.C-d;0<b&&!(aR(a,a.D[b])<=e);b--);for(var f=c/a.policy.B-d;b<a.D.length-1&&!(aR(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: "+Msa(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}};
fGa=function(a){var b=a.policy.C,c=NQ(a.ra),d=c/b-aR(a,a.B.info);b=g.Rb(a.D,function(e){return aR(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: "+Msa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
gGa=function(a){if(a.Wa.length){var b=a.Wa,c=function(d,e){if("f"===d.info.j||b.includes(nz(d,a.C.isLive,a.Ua.Ig(),a.policy.Xa)))return d;for(var f={},k=0;k<e.length;f={ez:f.ez,gz:f.gz},k++){var l=a.C.j[e[k].id],m=nz(l,a.C.isLive,a.Ua.Ig(),a.policy.Xa);if(b.includes(m)){m=d.info.j;var n=l.info.j;if(m===n||zA())return f.ez=d.info.Yb(),f.gz=l.info.Yb(),a.Ua.ya("ombifa",{f:f.ez,t:f.gz}),a.logger.info(function(p){return function(){return"Initial format selection changed from "+p.ez+" to "+p.gz+" based on prefetched media."}}(f)),
a.Ha=!0,l;
a.Ua.ya("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Ua.ya("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.J.videoInfos);a.B=c(a.B,a.J.j)}};
aR=function(a,b){if(!a.xa[b.id]){var c=a.C.j[b.id].index.getLocalMaxByterate(a.va,15);c=b.Os&&a.u&&a.u.index.isLoaded()?c||b.Os:c||b.Ob;a.xa[b.id]=c}c=a.xa[b.id];a.policy.Wb&&b.video&&b.video.j>a.policy.Wb&&(c*=1.5);return c};
oGa=function(a,b){a=Rf(a.C.j,function(c){return c.info.Yb()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
pGa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(cta(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};
qGa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
bva=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j){if(!b)return f.return(b);c=dR.tp("woe");d=new g.LB(a.u);return g.A(f,d.encrypt(b,a.j),2)}e=f.u;dR.Xn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
hva=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j){if(!b)return f.return(b);c=dR.tp("wod");d=new g.LB(a.u);return g.A(f,d.decrypt(b,a.j),2)}e=f.u;dR.Xn(c,Math.ceil(b.byteLength/16));return f.return(e)})};
eR=function(a,b,c){this.policy=a;this.j=b;this.va=c;this.B=this.u=0;this.Te=null;this.Z=new Set;this.S=[];this.indexRange=this.initRange=null;this.X=new zP;this.ma=this.ra=!1;a:{if(this.policy.Vc&&this.policy.Is){b={};c=g.r(this.policy.Vc);for(var d=c.next();!d.done;b={bz:b.bz,cz:b.cz},d=c.next())if(d=g.or(d.value),b.bz=+d.clen,b.cz=+d.csz,0<b.bz&&0<b.cz&&this.policy.u===d.docid&&this.j.info.id===d.fmtid&&this.j.info.lastModified===+d.lmt){c={};b=(c.clen=b.bz,c.csz=b.cz,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.Hs,this.C=0,this.policy.Pd&&(this.K=g.uv(16),this.J=g.uv(16)));this.D=new Uint8Array(this.chunkSize);this.K&&this.J&&(this.crypto=new qGa(this.K,this.J))};
fR=function(a){return!!a.Te&&tz(a.Te)};
tGa=function(a,b){if(!fR(a)&&!a.isDisposed()){if(!(a.ra||(a.ra=!0,0<a.C))){var c=gR(a);c=AD(a.policy.u,a.j.info,hR(a),c);iR(a,c)}if(1===b.info.type)a.initRange=qz(0,b.j.totalLength);else if(2===b.info.type){if(!a.Te||1!==a.Te.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.Te.type&&!wz(a.Te,b.info)&&(a.S=[],b.info.Ma!==xz(a.Te)||0!==b.info.zb))return;if(b.info.Td){c=g.r(a.S);for(var d=c.next();!d.done;d=c.next())rGa(a,d.value);
a.S=[]}else{a.S.push(b);a.Te=b.info;return}}a.Te=b.info;rGa(a,b);sGa(a)}};
rGa=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.ev=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.ev);a.D.set(f,a.u);a.u+=e.ev;c+=e.ev;if(a.u===a.D.length){if(b.info===a.Te&&fR(a)&&c===d.length)break;f=gR(a);f=AD(a.policy.u,a.j.info,hR(a),f,a.B,a.D,a.crypto);a.policy.Wa&&a.Z.add(f);iR(a,
f);a.isDisposed()||(f=gR(a),a.va(hR(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={ev:e.ev}}};
sGa=function(a){if(fR(a)){var b=new Uint8Array(a.D.buffer,0,a.u),c=uGa(a),d=a.policy.u;if(a.policy.Wa)Promise.all(a.Z).then(function(){var f=AD(d,a.Te.j.info,hR(a),c,a.B,b,a.crypto);iR(a,f,!0)});
else{var e=AD(a.policy.u,a.Te.j.info,hR(a),c,a.B,b,a.crypto);iR(a,e,!0)}}};
gR=function(a){return{downloadedEndTime:Math.round(a.Te?a.Te.C:0),maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Os)}};
uGa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.j.info.Os)}};
hR=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.Ob,lastModified:String(a.j.info.lastModified),initRange:null==(d=a.initRange)?void 0:bsa(d),indexRange:null==(e=a.indexRange)?void 0:bsa(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};
iR=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.policy.Wa&&a.Z.delete(b);(c||4===d)&&a.X.resolve(d)},function(d){a.X.reject(d)})};
vGa=function(a){a=g.Sy(a,1886614376);for(var b=g.r(a),c=b.next();!c.done;c=b.next());return g.Sl(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
wGa=function(a){var b=Ul(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};
xGa=function(a,b,c,d,e){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e};
jR=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.u=[];this.Be=!1;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Be=!0};
yGa=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=Xia;if(kR.length){var p=kR.pop();kd(p);p.j.init(n,void 0,void 0,void 0);m=p}else m=new md(n);try{var q=Ke(f);var t=Le(new q.iq,m,q);break b}finally{m.j.clear(),m.C=-1,m.u=-1,100>kR.length&&kR.push(m)}t=
void 0}m=t;if(null!==m){var w=m;break a}}catch(x){}}c+=e}w=null}catch(x){w=null}}if(null!=w){b=g.be(w,7);null==b||a.Be||(a.cryptoPeriodIndex=b);b=g.be(w,10);null!=b&&0<b&&!a.Be&&(a.j=b);b=g.de(w,2,!1);if(b.length&&!(Nd(b)&4)){Object.isFrozen(b)&&(b=Od(b.slice()),g.D(w,2,b,void 0,!0));for(c=0;c<b.length;c++)b[c]=Sd(b[c]);Md(b,5)}Pd(w.He)&&Object.freeze(b);w=g.r(b);for(b=w.next();!b.done;b=w.next())a.u.push(g.Ac(Vc(b.value),4))}};
zGa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Ac(a.initData):""+a.cryptoPeriodIndex};
lR=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.Zx?void 0:d.Zx;d=void 0===d.NA?!1:d.NA;this.videoId=a;this.status=b;this.videoDuration=c;this.Zx=e;this.NA=d};
AGa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.j=e};
mR=function(a){this.j=a;this.offset=0};
nR=function(a){if(a.offset>=a.j.totalLength)throw Error();return oy(a.j,a.offset++)};
BGa=function(a,b){b=void 0===b?!1:b;var c=nR(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=nR(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+nR(a),d*=128;return b?c:c-d};
pR=function(a,b,c){var d=this;this.Ua=a;this.policy=b;this.D=c;this.logger=new g.rQ("dash");this.u=[];this.j=null;this.ma=-1;this.S=0;this.va=NaN;this.X=0;this.B=NaN;this.Da=this.Ha=0;this.Ra=-1;this.xa=this.C=this.K=this.ra=null;this.Va=this.Qa=NaN;this.J=this.Z=this.Ia=this.Wa=null;this.Xa=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.J=new eR(this.policy,e,function(k,l,m){oR(a,new lR(d.policy.u,2,{Zx:new AGa(f,k,e.info,l,m)}))});
this.J.X.promise.then(function(k){d.J=null;1===k&&oR(a,new lR(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.Ua.ya("dldbwerr",{em:l});CGa(d);oR(a,new lR(d.policy.u,4,{NA:!0}))})}};
DGa=function(a){return a.u.length?a.u[0]:null};
qR=function(a){return a.u.length?a.u[a.u.length-1]:null};
HGa=function(a,b,c){if(a.C){var d=a.C.zb+a.C.u;if(0<c.info.zb)if(c.info.Ma===a.C.Ma&&c.info.zb<d){if(c.info.zb+c.info.u<=d)return;c=Asa(c,d-c.info.zb)[1]}else if(0<=c.info.Ma&&0<=a.C.Ma&&!wz(a.C,c.info))throw new g.Is("improper_continuation",zz(a.C),zz(c.info));d=a.C;var e=c.info;(d.Ma!==e.Ma&&e.Ma!==d.Ma+1||d.type!==e.type?0:wz(d,e)||(Ah(d.B,e.B)&&d.Ma===e.Ma?0:fsa(d,e)))||rR(a,"d")}else if(0<c.info.zb)throw new g.Is("continuation_of_null",zz(c.info));a.C=c.info;a.D=c.info.j;d=b.tF();if(0===c.info.zb){if(a.j)throw new g.Is("slice_not_fully_processed",
zz(a.j.info),zz(c.info));sR(a);a.Ha=d}else{if(a.policy.hs&&a.Ha&&d&&a.Ha!==d)throw a=new g.Is("lmt_mismatch",c.info.Ma,a.Ha,d),a.level="WARNING",a;!c.info.j.xl()&&a.K&&jsa(c.info,a.K)}if(a.j){d=Bsa(a.j,c);if(!d)throw new g.Is("failed_to_merge",zz(a.j.info),zz(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.Td)break a;6===a.j.info.type?EGa(a,b,a.j):tR(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=zra(f,l),n=zra(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 mR(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=BGa(p,!0),t=BGa(p,!1);var w=q;var x=t}catch(z){x=w=-1}p=w;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=FGa(a,a.ma),d.D&&GGa(a,d),EGa(a,b,d),uR(a,d),a.ma=0):a.S&&(d=FGa(a,0>a.S?Infinity:a.S),a.S-=d.j.totalLength,uR(a,d))}}a.j&&a.j.info.Td&&(uR(a,a.j),a.j=null)};
tR=function(a,b){!b.info.j.xl()&&0===b.info.zb&&(g.Sz(b.info.j.info)||b.info.j.info.Be())&&Hsa(b);if(1===b.info.type)try{GGa(a,b),IGa(a,b)}catch(d){g.S(d);var c=yz(b.info);c.hms="1";a.Ua.handleError("fmt.unparseable",c||{},1)}b.info.j.DF(b);a.J&&tGa(a.J,b)};
SQ=function(a){a.u=[];sR(a);CGa(a)};
CGa=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
JGa=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};
vR=function(a){return g.Sl(a.u,function(b){return b.info})};
FGa=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=Asa(c,b);a.j=c[1];return c[0]};
GGa=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)).Lt(),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=Ira(c):d.info.Be()&&(d.B=Pra(c))));b.info.j.info.Be()&&
b.info.isVideo()&&(c=Rz(b),(new Ty(c)).Lt(),Zy([408125543,374648427,174,224],30320,c)&&Zy([408125543,374648427,174,224],21432,c));if(a.policy.Rv&&b.info.j.info.Be()){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.Em()&&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 Fra(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.Xa=!0;b.info.j.D=c}}b.info.j.xl()||b.info.j.j||b.info.j.indexRange||Isa(b)};
EGa=function(a,b,c){if(c.info.j.xl()){if(a.Xa&&KGa(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=Gsa(c),k=a.ra,wR?(l=1/b,b=xR(a,b)>=xR(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&KGa(c)&&(b=a.ra,wR?(l=Gsa(c),k=1/l,l=xR(a,l),b=xR(b)+k-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,Hra(Rz(c),b))}else{k=!1;a.K||(Hsa(c),c.u&&(a.K=c.u,k=!0,jsa(c.info,c.u),l=c.u,l.u&&a.policy.Kv&&(a.D.index.u=!l.u),l=c.info.j.info,f=Rz(c),g.Sz(l)?Ry(f,1701671783):l.Be()&&Zy([408125543],307544935,f)));a:{if(f=l=Tz(c,a.policy.Da))f=c.info.j.info.Be()&&160===oy(c.j,0);if(f)a.X+=l,a.B=a.policy.Tb?a.B+l:NaN;else{if(a.policy.gr){var n=a.Ua.Yp(Csa(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Tb&&isNaN(a.Qa)){g.Sv(new g.Is("Missing duration while processing previous chunk",
zz(c.info)));rR(a,"m");break a}f=n-a.B;var p=f-a.Da;d=c.info.Ma;var q=a.xa?a.xa.Ma:-1,t=a.Va,w=a.Qa;m=a.policy.Ei&&f>a.policy.Ei;var x=a.policy.xe&&p>a.policy.xe;1E-4<Math.abs(p)&&(n={audio:""+ +a.Em(),sq:d.toFixed(),sliceStart:n,lastSq:q.toFixed(),lastSliceStart:t,lastSliceDuration:w,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},a.Ua.handleError("qoe.avsync",n),a.Ra=d);n=0;m||x||(e=a.B);a.ra&&!a.Em()&&g.Sz(c.info.j.info)&&(x=a.ra,m=x.Ra,x=x.Da,p=.02<Math.abs(x-f),
(d===m||d>m&&d>a.Ra)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),Hra(Rz(c),d),d=Tz(c,a.policy.Da),n=l-d,l=d));a.Da=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;Dsa(c,e)?(isNaN(a.va)&&(a.va=e),a.X+=l,a.B=e+l):(l=yz(c.info),l.smst="1",a.Ua.handleError("fmt.unparseable",l||{},1))}}a.xa=c.info;a.Qa=Fsa(c);0<=c.C&&(a.Va=c.C);if(k&&a.K){k=LGa(a,!0);Az(c.info,k);a.j&&Az(a.j.info,k);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())Az(l.value,k);(c.info.Td||a.j&&a.j.info.Td)&&6!==c.info.type||(a.Z=k,
b=a.Ua,b.j.isManifestless&&MGa(b,k,null,!!a.D.info.video),a.policy.Pc||NGa(a))}}IGa(a,c);a.timestampOffset&&Esa(c,a.timestampOffset)};
uR=function(a,b){if(b.info.Td){a.Wa=b.info;if(a.K){var c=a.K,d=LGa(a,!1),e=null;if(a.K.hx()){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 xGa(e,f,k,l,g.Era(c))}a.Ua.XG(a.D,d,e);a.Z||a.policy.Pc||NGa(a);a.Z=null}sR(a)}a.J&&tGa(a.J,b);if(c=qR(a))if(c=Bsa(c,b,a.policy.ej)){a.u.pop();a.u.push(c);return}a.u.push(b)};
sR=function(a){a.j=null;a.ma=-1;a.S=0;a.K=null;a.va=NaN;a.X=0;a.Z=null};
rR=function(a,b){b={rst4disc:b,cd:a.Da.toFixed(3),sq:a.xa?a.xa.Ma:-1};a.B=NaN;a.Da=0;a.Ra=-1;a.xa=null;a.Va=NaN;a.Qa=NaN;a.Ia=null;a.Ua.ya("mdstm",b)};
IGa=function(a,b){if(a.D.info.Sd){if(b.info.j.info.Be()){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.S=vGa(Rz(b)),c=wGa(b.info.S),d="cenc";c&&c.length&&(c=new jR(c,d),c.Be=b.info.j.info.Be(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.C&&(c.j=b.u.C),a.Ua.Xt(c))}};
NGa=function(a){var b=a.K,c=Cra(b);c&&(c.startSecs+=a.va,a.Ua.WG(a.D,c,b.j,b.hx()))};
LGa=function(a,b){var c,d=a.K;if(c=Cra(d))c.startSecs+=a.va;return new gy(d.j,a.va,b?d.lj:a.X,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
KGa=function(a){return a.info.j.xl()&&a.info.Ma===a.info.j.index.getLastSegmentNumber()};
xR=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()};
OGa=function(a,b){0>b||(a.u.forEach(function(c){Esa(c,b)}),a.timestampOffset=b)};
yR=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};
PGa=function(a){return g.Tl(a.info.j,function(b){return 3===b.type})};
zR=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
AR=function(a,b){b&&a.state<b?zR(a,b):a.callback&&a.callback(a,a.state)};
QGa=function(a){a.j&&a.j.C?(a=a.j.C,a=new rz(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Ma,a.startTime+a.duration,0,a.zb+a.u,0,!1)):(a=a.info.j[0],a=new rz(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Ma,a.startTime,0,a.zb,0,!1));return a};
RGa=function(a,b){this.j=a;this.u=0;this.B=null;this.qe=[];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.Tl(this.j,function(c){return!!c.range})};
SGa=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(uz(m)&&!c&&a.u+b.totalLength-k<f+m.u){a.B=b.split(k).Hr;break}var n=3===m.type||4===m.type,p=a,q=a.u-f,t=k,w=b,x=n&&d&&!e&&1===b.j.length,y=!!c,z=w.totalLength-t;m.range&&(z=Math.min(m.u-q,z));y=m.range?m.zb+q+z===m.range.length:y;q=new rz(m.type,m.j,m.range,"reslice"+m.D,m.Ma,m.startTime,m.duration,m.zb+q,z,y&&tz(m),y);t=ky(w,t,z);
p.qe.push(new Qz(q,t,x));p=z;a.u+=p;k+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(k===b.totalLength)break}};
TGa=function(a){if(!a.qe.length)return[];var b=a.qe;a.qe=[];a.C=g.Ob(b).info;return b};
UGa=function(a){return a.length-a.u+a.qe.reduce(function(b,c){return b+c.j.totalLength},0)};
PQ=function(a,b,c,d,e){yR.call(this,c,e);var f=this;this.policy=a;this.u=b;this.Ud=d;this.B=new g.L(function(){f.isComplete()||(f.lastError="net.timeout",zR(f,5))},this.policy.Qv);
this.Hd=function(){f.isDisposed()||(BR(f.Ud,f.u)?(f.isComplete()||f.B.start(),f.Ud.jg(f.u)&&AR(f,2),f.Ud.cf(f.u)&&(VGa(f.Ud,f.u)?zR(f,4):(f.lastError="net.closed",zR(f,5)))):(f.lastError="player.exception",zR(f,5)))};
this.B.start();var k;this.j=new RGa(this.info.j,null==(k=this.info.range)?void 0:k.length);WGa(this.Ud,this.u,this.Hd);g.vi(this.Hd)};
CR=function(a,b,c){this.Ua=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.X=-1;this.C=new pR(a,b,c);this.Ob=c.info.Ob;this.K=c.mx();this.isManifestless=c.mx();this.D=this.K};
DR=function(a,b){b&&wR&&OGa(a.C,b.uF());a.hc=b};
ER=function(a){return a.hc&&a.hc.xA()};
FR=function(a,b){a.B.push(b);a.u=g.Ob(b.info.j)};
GR=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();XGa(a,b);a.ma=b.qM()}a.B.length&&(b=a.B[0],b.mu()&&(!b.info.Vk()||a.policy.Kr||b instanceof PQ)&&XGa(a,b))};
XGa=function(a,b){if(b.mu()){var c=b.BD();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Z&&b instanceof PQ&&a.Ua.ya("omblss",{s:zz(d.info)}),YGa(a,b,d)}};
YGa=function(a,b,c){switch(c.info.type){case 1:case 2:tR(a.C,c);break;case 4:var d=c.info.j,e=d.MJ(c),f;(null==(f=a.u)?0:4===f.type)&&hsa(c.info,a.u)&&(a.u=d.xu(a.u).pop());c=g.r(e);for(d=c.next();!d.done;d=c.next())YGa(a,b,d.value);break;case 3:HGa(a.C,b,c);break;case 6:HGa(a.C,b,c),a.u=c.info}};
RQ=function(a,b,c){c=void 0===c?!1:c;if(a.hc){var d=a.hc.xf(),e=uA(d,b),f=NaN,k=ER(a);k&&(f=uA(d,k.j.index.getStartTime(k.Ma)));if(e===f&&a.u&&a.u.u&&ZGa(HR(a),0))return b}a=$Ga(a,b,c);return 0<=a?a:NaN};
TQ=function(a,b){a.j.df();var c=$Ga(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.J)if(e=e.J,e.Te&&3===e.Te.type)e=e.Te.startTime;else if(0<e.C){var f=e.j.index;f=g.ic(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.zm(b).j[0];IR(a)&&a.hc&&a.hc.abort();a.Z=0;return a.u.startTime};
aHa=function(a){a.K=!0;a.D=!0;a.J=-1;TQ(a,Infinity)};
JR=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?UGa(d.j):ksa(d.info),b+=d;return b+=JGa(a.C)};
KR=function(a,b){if(!a.hc)return 0;var c=ER(a);if(c&&tz(c))return c.C;a=a.hc.xf(!0);return Psa(a,b)};
$Fa=function(a,b,c,d){QQ(a);for(var e=a.C,f=null,k=e.u.length-1;0<=k;k--){var l=e.u[k];l.info.Ma>=b&&(e.u.pop(),e.B-=Tz(l,e.policy.Da),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Ia,e.policy.kq&&0===e.u.length&&!e.C&&rR(e,"r"));e.policy.kq&&(k=f?f.Ma:-1,f=f?f.j.info.Yb():"",e.Ua.ya("mdstm",{rollbk:1,itag:f,popped:k,sq:b,lastslc:e.C?e.C.Ma:-1,lastfraget:e.B.toFixed(3)}));d>c?TQ(a,d):a.u=a.j.Dn(b-1,!1).j[0]};
NR=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)LR(a,b);else{for(;c<a.B.length;)LR(a,a.B.pop());var d=MR(a);d&&d.j.Gq()&&an(b.info.j,function(e){return isa(e,d)})?a.u=d:vz(b.info.j[0])?a.u=QGa(b):a.u=null}};
IR=function(a){var b;!(b="f"===a.j.info.j)&&(b=a.policy.u)&&(b=a.C,b=!!b.J&&fR(b.J));if(b)return!0;b=ER(a);if(!b)return!1;var c=tz(b)&&b.Td;return a.isManifestless&&0<a.X?c||b.Ma>=a.X:c};
bHa=function(a){var b;return IR(a)||!(null==(b=qR(a.C))||!tz(b.info))};
HR=function(a){var b=[],c=ER(a);c&&b.push(c);b=g.ac(b,vR(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={Xr:e.Xr},k=f.next())e.Xr=k.value,d.S&&(b=g.Xn(b,function(l){return function(m){return!hsa(m,l.Xr)}}(e))),(vz(e.Xr)||4===e.Xr.type)&&b.push(e.Xr)}a.u&&!esa(a.u,g.Ob(b),a.u.j.xl())&&b.push(a.u);
return b};
ZGa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!fsa(a[b-1],a[b]))return!1;return!0};
$Ga=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=HR(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:ZGa(a,c?b:0)?a[b].startTime:NaN};
OR=function(a){return!(!a.u||a.u.j===a.j)};
cHa=function(a){return OR(a)&&a.j.df()&&a.u.j.info.Ob<a.j.info.Ob};
dHa=function(a,b,c){return(a=MR(a))&&!tz(a)?a.C>b&&a.C<b+c:!1};
MR=function(a){var b=qR(a.C);return b?b.info:ER(a)};
QQ=function(a){for(var b=g.r(a.B),c=b.next();!c.done;c=b.next())LR(a,c.value);a.B=[];a.u=null};
LR=function(a,b){if(b.S&&!b.info.j[0].j.Gq()){a=a.C;if(a.Z&&!a.policy.dg){var c=a.Ua;c.j.isManifestless&&PA(c.j,a.Z.Ma,!!a.D.info.video)}a.Z=null;a.K=null;a.C=a.Wa;a.B=a.C?a.B-a.X:NaN;sR(a)}b.dispose()};
eHa=function(a){return!!a.u&&-1!==a.u.Ma&&a.u.Ma<a.j.index.getFirstSegmentNumber()};
fHa=function(a){var b=a.u;b&&-1===b.Ma&&(a=qR(a.C))&&vz(a.info)&&(a=a.info.Ma,b.D="updateLastSliceRequested",b.Ma=a)};
gHa=function(a){return an(a.B,function(b){return b.D})};
PR=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.Yt()};
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.Xq(f,e.B),e.D=f)},function(){},d.body||null)};
iHa=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;hHa(this).then(function(){c.callbacks.ep()},function(d){c.error=""+d||"unknown_err";
c.callbacks.ep()})};
hHa=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,w,x,y;return g.B(function(z){if(1==z.j){a.status=200;b=a.j.get("docid");c=Hh(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 qGa(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,iva(b,c,d,n,f),5):z.Ya(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e;
w=Math.max(0,k.start-q);x=Math.min(k.end+1,t)-(w+q);y=new Uint8Array(p.buffer,w,x);a.u.append(y);a.loaded+=x;a.loaded<k.length&&a.callbacks.Xq((0,g.R)(),a.loaded);n++;return z.Ya(2)})};
QR=function(a,b){var c=b.ah,d=void 0===b.Gj?1:b.Gj,e=void 0===b.HB?d:b.HB,f=void 0===b.Vk?!1:b.Vk,k=void 0===b.Gm?!1:b.Gm,l=void 0===b.PE?!1:b.PE,m=b.uh,n=b.Ma;b=b.Ye;this.callbacks=a;this.requestNumber=++jHa;this.j=this.now();this.ra=this.Ia=NaN;this.Da=0;this.C=this.j;this.u=0;this.Qa=this.j;this.va=0;this.Ra=this.Ha=this.isActive=!1;this.B=0;this.Z=NaN;this.K=this.D=Infinity;this.S=NaN;this.xa=!1;this.X=NaN;this.J=void 0;this.ah=c;this.policy=this.ah.ra;this.Gj=d;this.HB=e;this.Vk=f;this.Gm=k;
l&&(this.J=[]);this.uh=m;this.Ma=n;this.Ye=b;this.snapshot=cC(this.ah);kHa(this);lHa(this,this.j);this.Z=(this.X-this.j)/1E3};
mHa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
RR=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.Z).toFixed(),pb:a.Gj,stall:(1E3*a.B).toFixed(),hrt:(a.Ia-a.j).toFixed(),elt:(a.ra-a.j).toFixed(),elb:a.Da};a.url&&wEa(b,a.url);return b};
oHa=function(a,b,c,d){if(!a.Ha){a.Ha=!0;if(!a.Gm){SR(a,b,c);nHa(a,b,c);var e=a.jo();if(2===e&&d)TR(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.Ra&&UR(a)&&TR(a,d,c),UR(a)&&(d=a.ah,c=Math.max(c,2048),d.j.Yg(1,a.B/c),dC(d));c=a.ah;b=(b-a.j)/1E3||.05;d=a.Z;e=a.Vk;c.J.Yg(b,a.u/b);c.C=ZB();e||c.u.Yg(1,b-d)}a.deactivate()}};
nHa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.jo();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&TR(a,.05,e)):TR(a,d,e),a.Ra=!0);else if(VR(a,c)){if(1===f&&(f=(b-a.j)/1E3,!pHa(a)&&!a.Gm)){var k=a.ah;k.K.Yg(1,f);dC(k)}a.ra=b;a.Da=c;a.isActive=!0}a.Gm||lua(a.ah,d,e);a.C=b;a.u=c};
TR=function(a,b,c){if(!a.Gm){b=Math.max(b,.05);a=a.ah;var d=b;a.B.Yg(void 0===b?d:b,c/d);a.C=ZB()}};
SR=function(a,b,c){c=Math.round(c/1024);a.J&&a.J.push(WR(b-a.Qa,c-a.va));a.Qa=b;a.va=c};
qHa=function(a){return a.J?a.J.join(""):""};
VR=function(a,b){return b?a.uh&&1!==a.jo()?!0:2048<=b:!1};
UR=function(a){return VR(a,a.u)};
rHa=function(a){return(a.C-a.j)/1E3};
kHa=function(a){a.S=a.j+1E3*a.snapshot.delay;a.xa=!1};
YR=function(a,b){if(a.uh&&void 0!==a.Ma&&void 0!==a.Ye){var c=Math,d=c.min,e=a.D;var f=a.uh;var k=a.j;if(NFa(f,a.Ma))f=b;else{var l=0;f.Gh&&(l=.2);f=k+1E3*(f.Sg+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.K;f=a.uh;k=a.j;l=OFa(f,a.Ma,a.Ye);2!==l&&(b=l?b:k+1E3*f.Sg,f.Gh&&(b+=1E3*f.Sg));a.K=d.call(c,e,b);a.D<=a.j?kHa(a):(a.S=a.D,a.xa=!0)}};
pHa=function(a){a.uh&&YR(a,a.now());return a.xa};
lHa=function(a,b){b=void 0===b?a.now():b;if(a.uh){YR(a,b);var c=a.ma?a.uh?1!==a.jo():!1:a.D!==a.K;if(c){if(c=a.K,b<c){a.X=a.K;return}}else c=a.D;c=Math.max(c,a.S)}else c=a.S;var d=a.Gj-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=UR(a)?d+b:d+Math.max(b,c);a.X=d};
WR=function(a,b){for(var c="";4095<a;)c+=WR(4095,0),a-=4095;for(;4095<b;)c+=WR(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))};
ZR=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.X=d;this.status=0;this.response=void 0;this.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.Cl=f.body.getReader(),e.isDisposed()?e.Cl.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Zt(),sHa(e));
else e.onDone()};
this.Z=function(f){var k=(0,g.R)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.Cl=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.R)(),f-e.S>e.policy.j&&(e.S=f,e.callbacks.Xq(k,e.u)),sHa(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)};
sHa=function(a){a.Cl.read().then(a.Z,a.onError).then(void 0,Cs)};
$R=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.Yt(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.Hd(f)}),!1)};
cS=function(a,b,c,d,e,f){var k=void 0===f?{}:f;f=void 0===k.Vx?[]:k.Vx;var l=void 0===k.Jy?!1:k.Jy,m=void 0===k.bq?0:k.bq,n=void 0===k.poToken?"":k.poToken,p=void 0===k.fp?void 0:k.fp;k=void 0===k.gy?"":k.gy;yR.call(this,b,e);var q=this;this.policy=a;this.logger=new g.rQ("dash/request");this.Z=this.B=0;this.xa=!1;this.K=this.J=null;this.va=!1;this.timing=new QR(this,c);this.ma=d;this.Jy=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.Jy&&this.u.set("smb","1");this.policy.bj&&n&&this.u.set("pot",n);k&&this.u.set("bbs",k);this.Vx=f||null;this.fp=p;this.D=tHa(this);this.ra=1*this.policy.bd;this.X=new g.L(this.JZ,this.ra,this);this.info.u.K=(0,g.R)();Xra(aS(this));try{this.xhr=uHa(this),this.X.start()}catch(t){g.Sv(t),this.lastError="net.ssl",g.vi(function(){bS(q)})}};
tHa=function(a){if(!(Dz(a.info)&&a.info.Vk()&&a.policy.Fb&&a.Vx)||2<=a.info.u.u||0<RA()||!Ata())return!1;var b=a.u.get("aitags");if(!b)return!1;b=Hh(b).split(",");for(var c=[],d=g.r(a.Vx),e=d.next();!e.done;e=d.next())e=e.value,g.Tb(b,e)&&c.push(e);if(!c.length)return!1;a.u.set("altitags",g.Gh(c.join(",")));return!0};
aS=function(a){return jz(a.ma,by(a.u.Mh))};
wHa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.iy())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(vHa(a)){var d=b.Gf();d.totalLength<=a.policy.Pf&&(c=ny(d),c=sy(c),c=Ew(c)?c:"")}if(c){var e=aS(a);(0,g.R)();e.started=0;e.timedOut=0;e.j=0;a.info.Nj(a.u,c);return 3}c=b.Kj();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.XB())return a.lastError="net.closed",5;a.Fo(!0);if(!d&&a.j&&(d=a.j.qe,d.length&&!zsa(d[0])))return a.lastError="net.closed",
5;d=PGa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=PGa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.xa=!0,a.policy.Yl&&(d=b);oHa(a.timing,(0,g.R)(),c,d?Number(d):0);b=aS(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.fp)&&(a=a.u.Mh,(0,g.R)()<b.J+3E5||cy(a)||(c=by(a))&&zEa(c)&&b.B===tP(c)&&(dy(a)&&(e=by(ey(a))),g.fw("yt-player-bandaid-host",{primary:c,secondary:e},864E3),b.J=(0,g.R)(),xEa(b,{primary:c,secondary:e})));return 4};
bS=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.R)();if(!b.Gm){SR(b,c,1024*b.va);var d=(c-b.j)/1E3;if(2!==b.jo())if(UR(b)){b.B+=(c-b.C)/1E3;var e=b.ah,f=b.u;f=Math.max(f,2048);e.j.Yg(1,b.B/f);dC(e)}else pHa(b)||b.Gm||(e=b.ah,e.K.Yg(1,d),dC(e)),b.ra=c;e=b.ah;f=b.Z;var k=b.Vk;e.J.Yg(d,b.u/d);e.C=ZB();k||e.u.Yg(1,d-f);lua(b.ah,(c-b.C)/1E3,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!cy(a.u.Mh)?(c=aS(a),
c.timedOut+=1):(c=aS(a),c.j+=1),a.timing.u||(c=a.info.u,d=a.u,++c.u,b&&++c.D,by(d.Mh).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.B))):++a.info.u.J;zR(a,5)};
xHa=function(a,b){b&&(b=aS(a),b.u+=1);dS(a);a.lastError="net.timeout";bS(a)};
dS=function(a){a.xhr&&a.xhr.abort();a.timing.deactivate()};
vHa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Mw();c=!c||c<=a.policy.Pf;return(!a.xhr.Ju()||!b||-1!==b.indexOf("text/plain"))&&c};
uHa=function(a){if(cy(a.u.Mh))return new iHa(a.u,a.timing);var b=g.hz(a.u);return a.policy.Ia&&(a.policy.Kq&&!isNaN(a.info.Ye)&&a.info.Ye>a.policy.Gk||a.D&&!a.policy.Kr?0:Fx())?Gx()?new PR(b,a.policy.D,a.timing):new ZR(b,a.policy.D,a.timing):new $R(b,a.timing)};
yHa=function(a){if(!a.policy.D.Gh||!isNaN(a.info.Ye)&&0<a.info.Ye)return!1;if(!a.xhr.Aq())return!0;var b=a.xhr;b.Mw()?b=!1:(b=b.getResponseHeader("content-type"),b="audio/mp4"===b||"video/mp4"===b||"video/webm"===b);return!b||isNaN(a.info.Ye)&&(b=a.xhr.getResponseHeader("x-head-seqnum"))&&Number(b)>a.info.j[0].Ma?!1:!0};
eS=function(a,b,c,d,e){this.Ua=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.X=NaN};
zHa=function(a,b,c,d,e){return b.fb&&b.ra&&3===nra(b)?new eS(a,b,c,d,e):null};
AHa=function(a,b){if(a.policy.Nr){var c=b.info.Ob,d=bC(a.schedule);b=b.index.Sg;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*b+a.policy.ma)/c,b-a.policy.Dc));a.Na()}};
DHa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.nh,k=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Pr&&(k=!0);a.Na();a.J=c}c=d>=a.policy.Dc&&!a.B;if(!f&&!c&&BHa(a,b))return NaN;c&&(a.B=!0,a.Na());a:{d=k;c=Date.now()/1E3-(a.S.Fg()||0)-a.K.B-a.policy.ma;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.Na();fS(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.pc;d<c&&(a.Na(),c=d)}else a.B&&(d=c+a.policy.ma-a.ma+a.policy.Qr,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.pc))),
c=d);c=Math.max(c,f);a.Na();f=c}a.j=f;if(isNaN(a.j))return a.Na(),a.clear(),NaN;if(!k&&BHa(a,b))return CHa(a,b),NaN;if(a.j<=a.u.startTime)return fS(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.j,!1))return!CHa(a,b)&&k&&(fS(a,NaN,"t",b),a.clear()),NaN;a.Na();k=a.j;fS(a,k,"s",b);a.clear();return k};
CHa=function(a,b){return a.Z(a.j,!0)?!1:(fS(a,NaN,"ns",b),a.Na(),a.clear(),!0)};
BHa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.pc:a.policy.Or)};
fS=function(a,b,c,d){var e=a.C.oq();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.K.B).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.S.Fg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;Lz(b,a.u.Ma,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ma)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ma)).toFixed(0));a.Ua.ya("ssr",e)};
EHa=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.gS=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.Aa=a;this.schedule=b;this.policy=c;this.j=d;this.X=m;this.Cb=n;this.timing=new YFa(this.Cb);this.S=new KQ(this.schedule,this.policy);this.mediaSource=null;this.ma=new g.L(this.Kh,0,this);this.Ra=new g.L(this.Kh,1E3,this);this.ub=new g.L(this.Kh,void 0,this);this.qb=new g.L(this.Kh,1E4,this);this.K=this.currentTime=NaN;this.ra=this.fb=0;this.va=this.Wa=this.isSuspended=!1;this.Z=null;this.Ia=this.Qa="";this.Ha=new WB(5);
this.xa={};this.ib=this.Ye=NaN;this.uh=null;this.timestampOffset=NaN;this.ob=!1;this.Xa=0;this.qn=!1;this.C=null;this.Da=NaN;this.gy="";this.logger=new g.rQ("dash");a=m&&Array.from(m.Od.keys());m&&(this.Da=Date.now());this.u=new dGa(this,this.S,c,this.j,e,a);c=iGa(this.u,f,k&&k.id);this.audioTrack=new CR(this,this.policy,c.audio);this.videoTrack=new CR(this,this.policy,c.video);this.videoTrack.C.ra=this.audioTrack.C;this.Va={updateend:this.CS,error:this.JW};g.H(this,this.ma);g.H(this,this.Ra);g.H(this,
this.ub);g.H(this,this.qb);this.D=zHa(this,this.policy,this.schedule,this.Ha,function(q,t){return FHa(p,q,t)});
this.B=new UQ(this,this.j,this.policy,this.videoTrack,this.audioTrack,l);this.J=new OQ(this,this.j,this.videoTrack,this.audioTrack,this.policy);0<this.policy.Lk&&(this.gy=g.uv(this.policy.Lk))};
IHa=function(a,b){var c=b.j,d=a.j.isLive;if(a.j.isLive){var e=Date.now();if(!isNaN(a.Da)&&e-a.Da>1E3*a.policy.Ov){a.ya("ombttl",{});return}}e=a.Ig();if(a.X&&BR(a.X,nz(c,d,e,a.policy.Xa))){d=nz(c,d,e,a.policy.Xa);e=GHa(a.X,d);if(a.j.isLive&&a.policy.Wv)var f=c.zm(Infinity);else{if(!c.indexRange||!c.initRange)return;var k=c.indexRange.length+c.initRange.length,l=HHa(a.X,d);if(!l){a.ya("ombooo",{});return}k=l-k;if(a.policy.wk&&0<e.length){var m;f=null==(m=c.xo(0))?void 0:lsa(m,e,k)}f&&0!==e.length||
(f=c.xo(k),a.policy.wk&&a.ya("ombcf",{}))}f&&(m=function(n){try{n.isFailed()?(a.handleError(n.lastError,n.oq()),NR(b,n),Dz(n.info)&&hS(a,b,c,!0),a.Kh()):iS(a,n)&&a.Kh()}catch(p){n=gD(p),a.handleError(n.errorCode,n.details,n.severity),jS(a)}},c.J=!0,Cz(f)&&FR(b,new PQ(a.policy,d,f,a.X,m)))}else a.ya("ombfmt",{})};
JHa=function(a){var b=a.videoTrack.j.index;a.uh=new MFa({mm:a.policy.mm,Gh:a.policy.D.Gh,Sg:b.Sg,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
wt:function(){return b.wt()}})};
kS=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.xa={},d.va=b,YQ(d,d.j));b=!d.j.isLocked()&&-1<d.X&&8E3>(0,g.R)()-d.X;var e=d.nextVideo&&3*aR(d,d.nextVideo.info)<NQ(d.ra);if(!b||e)ZQ(d),$Q(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)};
lS=function(a,b){a.Wa=b;a.qn||(a.isSuspended=!0)};
mS=function(a,b){a.policy.me&&a.C&&(a.Qa=b)};
LHa=function(a){a.policy.Ub=!1;try{KHa(a)}catch(b){g.S(b)}};
MHa=function(a){a.mediaSource&&a.mediaSource.j&&a.mediaSource.u&&(kv(a.mediaSource.j,a.Va,a),kv(a.mediaSource.u,a.Va,a));DR(a.audioTrack,null);DR(a.videoTrack,null);a.mediaSource=null};
nS=function(a,b){b=void 0===b?!1:b;MHa(a);b?a.qn=!0:a.policy.Yf?lS(a,a.ob):lS(a,!1);jS(a)};
oS=function(a){a.mediaSource&&a.mediaSource.cf()&&(nS(a),a.policy.Jq&&a.handleError("fmt.unplayable",{unexpected:1},1))};
pS=function(a,b,c){var d=a.B;if(2===d.u||3===d.u)return mS(a,"waitad"),!1;if(!asa(b.u?b.u.j.u:b.j.u,a.policy))return mS(a,"resource"),!1;if(a.isSuspended&&(!mua(a.schedule)||a.Wa))return mS(a,"suspend"),!1;if(a.policy.u&&5<=zD)return g.xp(a.Ra),mS(a,"exceedq"),!1;if(a.j.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ma)return mS(a,"pending"),!1;if(b.B.length>=a.policy.Ak)return mS(a,"toomany"),!1;if(!a.policy.Nk&&0<b.B.length&&!a.policy.D.Gh)return mS(a,"pipeline"),!1;if(b.K)return b=!a.j.isLive||
!isNaN(a.Ye),mS(a,b?"":"sqless"),b}if(gHa(b))return mS(a,"shavable"),!1;if(!b.u){if(!b.j.df())return mS(a,"meta"),!1;TQ(b,a.currentTime)}d=b.B.length+c.B.length;(b.B.length&&b.B[0].Iv()||c.B.length&&c.B[0].Iv()||a.j.isLive)&&--d;if(d+1>=a.policy.Hk)return mS(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.df()&&(b.u=g.Ob(d.j.xu(d)),d=b.u);if(!tz(d)&&!d.j.Cn(d))return mS(a,"notready"),!1;var e=a.j.gf||a.j.S;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.Cv&&0<e&&d.Ma>=e)return b.X=e,c.X=e,mS(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return mS(a,"toomanyaudio"),!1;if(cHa(b)&&!a.policy.Va)return mS(a,""),!0;if(tz(d))return mS(a,"eos"),!1;if(JR(b)&&JR(b)+JR(c)>a.policy.qb)return mS(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.C;f=!!(c.u&&!tz(c.u)&&c.u.C<f);var k=b===a.videoTrack&&a.qn;if(f&&(!a.j.isManifestless||c.u&&c.u.C&&d.C)&&e&&!k)return mS(a,"othertrack"),!1;if(a.policy.Ra&&!b.D&&c.D)return mS(a,"seek"),!1;if(vz(d)&&d.C>
NHa(a,b))return mS(a,"maxtime;"+d.C.toFixed(3)+";"+NHa(a,b)),!1;if((b=b.hc)&&b.isLocked())return mS(a,"locked"),!1;mS(a,"");return!0};
OHa=function(a,b,c){if(pS(a,b,c)){if(b.K){if(a.j.isLive){var d=a.j.Ie&&a.j.S?b.j.Dn(a.j.Ie,!1):b.j.zm(Infinity);d.Ye=a.Ye}else d=b.j.Dn(0,!1);a.D?0===d.Ye&&(d.D=a.D.X):d.D=a.ib}else if(d=b.u,d.j.df()){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(OR(b)&&b.j.df()){var l=Math.min(15,.5*qS(a,b,!0));l=cHa(b)||e<=l||a.u.S}else l=!1;l&&0===f&&(a.j.isManifestless?k=b.j:(k=d.startTime+rS,d.u&&(k+=d.duration),TQ(b,k),d=b.u,k=d.j));k.xl()?(f=a.u,c=MQ(a.S,k.info.Ob,
c.j.info.Ob,e,0<f.D.length&&0===f.videoIndex&&a.va),e=OR(b),c=d.j.Bs(d,c),c.range&&1<c.j.length&&(e||c.u.u||c.j[0].j!==d.j?c=d.j.Bs(d,c.j[0].u):(e=c.j[c.j.length-1],k=e.u/c.range.length,!e.Td&&.4>k&&(c=d.j.Bs(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=yz(d),c.pr=""+b.B.length,a.J.u&&(c.sk="1"),c.snss=d.D,a.ya("nosq",c)),d=k.Bv(d));if(a.qn)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.xl()?(c=MQ(a.S,b.j.info.Ob,c.j.info.Ob,0),d=d.j.Bs(d,c)):d=d.j.Bv(d);if(a.C&&(c=a.B,e=d.j[0].Ma,
e=0>e&&!isNaN(c.B)?c.B:e,k=ZFa(a.B,d.j[0].B,e),f=b===a.audioTrack?1:2,c=a.C.Hj(k,e,d.j[0].j.info.id,f),0>e&&(a.policy.Tv||2===f)&&cGa(a.B,0,0,!0),c)){k={decurl_itag:d.j[0].j.info.Yb(),sg:e,st:k.toFixed(3)};if(a.policy.Mq&&b.isRequestPending(e-1)){a.ya("sdai",{wt_daistate_on_sg:e-1});return}a.ya("sdai",k);e=d;c&&(e.B=new g.Zx(c))}a.policy.nj&&-1!==d.j[0].Ma&&d.j[0].Ma<a.j.Ie&&(d=b.j.Dn(a.j.Ie,!1));FR(b,sS(a,d))}};
sS=function(a,b){vz(b.j[b.j.length-1])&&PHa(a,kGa(a.u,b.j[0].j));var c=ksa(b);c={ah:a.schedule,Gj:c,HB:PFa(a.S,c),Vk:uz(b.j[0]),Gm:cy(b.u.j),PE:a.policy.Z};a.uh&&(c.Ma=b.j[0].Ma,c.Ye=b.Ye,c.uh=a.uh);var d={bq:Math.max(0,b.j[0].B-a.currentTime),Vx:a.policy.Fb&&Dz(b)&&b.j[0].j.info.video?pGa(a.u):void 0,Jy:a.qn,poToken:a.Aa.Y.Pd||"",fp:a.Aa.yg.fp,gy:a.gy};return new cS(a.policy,b,c,a.xa,function(e,f){try{a:{a.policy.me&&a.C&&(a.Z=e);var k=e.info.j[0].j,l=k.info.video?a.videoTrack:a.audioTrack;if(!(2<=
e.state)||e.isComplete()||e.C||!(!a.mediaSource||a.isSuspended||3<KR(l,a.currentTime))){var m=a.policy.Lb;if(!(!m||e.isComplete()||e.C<m||lz(e.info.u,a.policy,a.xa))){var n=a.xa;var p=by(kz(e.info.u,a.policy));var q=jz(n,p);if(!(q.j||q.timedOut||q.started)){var t=msa(e.info,!0);t&&sS(a,t)}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.ib){var w=Object.assign(RR(e.timing),{rst:""+e.state,strm:""+e.xhr.Ju(),d:qHa(e.timing)});a.ya("rqs",w)}e.xa&&a.ya("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.Iv()&&z&&(g.Vr(),Xr(4));if(3===e.state){NR(l,e);Dz(e.info)&&hS(a,l,k,!0);if(a.C){var I=e.info.Hj();I&&a.C.Nj(e.info.j[0].Ma,k.info.id,I)}a.Kh()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var K=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;K&&K instanceof cS&&K.C&&xHa(K,!0)}e.dispose()}else{if(!e.isFailed()&&
e.D&&2<=e.state&&3!==e.state){var P=e.xhr.getResponseHeader("X-Response-Itag");if(P){var aa=oGa(a.u,P),J=e.info.range.length-aa.oF();aa.J=!0;e.info.j[0].j.J=!1;var qa=aa.xo(J);e.info=qa;if(e.j){var na=e.j,Ia=qa.j;na.j=Ia;var Na=Ia[0].range,bc=new iy;for(f=0;f<na.qe.length;f++)jy(bc,na.qe[f].j);for(f=0;f<na.qe.length;f++){na.qe[f].info=Ia[f];var jb=Ia[f].range;na.qe[f].j=ky(bc,jb.start-Na.start,jb.length)}}e.D=!1;var mc=a.videoTrack;mc.j!==aa&&(mc.j=aa);var Wb=a.videoTrack;Wb.u&&(Wb.u.j=aa);var Id=
a.Aa;Id.videoData.ej=g.Kx("auto",aa.info.video.quality,!1,"u");tS(Id);var Jd=e.tF();Jd&&aa.info.lastModified&&aa.info.lastModified!==+Jd&&NR(a.videoTrack,e)}else e.D=!1}if(4===e.state){if(iS(a,e),a.B){var kb=a.B,Wc=e.info,wg=a.C;if(0!==kb.u&&wg&&Wc.j[0].isVideo())if(Wc.j[0].Ma>kb.B&&(kb.B=NaN,kb.D=NaN),kb.j&&kb.j.Ma===Wc.j[0].Ma){var Tf=kb.j.Kd.event;if("start"===Tf||"continue"===Tf){if(1===kb.u||5===kb.u)kb.j.hx?WQ(kb,4,"cue"):(kb.B=Wc.j[0].Ma,kb.D=Wc.j[0].B,kb.ya("sdai",{joinad:kb.u,sg:kb.B,st:kb.D.toFixed(3)}),
kb.X=Date.now(),WQ(kb,2,"join"),wg.AF(kb.j.Kd))}else"stop"!==Tf||1!==kb.u&&5!==kb.u||kb.ya("sdai",{joinstop:1,st:kb.u,sg:kb.B}),WQ(kb,5,"stop")}else 1===kb.u&&WQ(kb,5,"noad")}}else if(a.policy.Ia&&e.mu()&&!e.isComplete()&&!iS(a,e)&&!e.isFailed())break a;e.isFailed()&&a.yq(e);a.Kh();if(a.policy.Hb&&e.isComplete()&&e.canRetry()&&lz(e.info.u,a.policy,a.xa)){var Wh=a.xa;var Vd=by(e.info.u.j);var uc=jz(Wh,Vd);if(!(uc.B+a.policy.Hb*Yra(uc,a.policy,!0)>(0,g.R)())){var lh=msa(e.info,!1);lh&&sS(a,lh)}}}}}}}catch(Cc){e=
fD(0),aa=gD(Cc,0),a.handleError(aa.errorCode,aa.details,aa.severity),e||jS(a)}},d)};
PHa=function(a,b){b&&a.Aa.xB(b);a.policy.zk&&a.u.Ra&&(b=lGa(a.u,"a"),uS(a.Aa,b.reason,b.audio.info))};
iS=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.mu(),c.K=!1);b.hF()&&a.Ha.Yg(1,b.hF());var d=b.dK(),e=b.tM(),f=a.j,k;for(k in f.j){var l=f.j[k].index;l.Qk&&(d&&(l.Cv=Math.max(l.Cv,d)),e&&(l.B=Math.max(l.B||0,e)))}}if(b.info.Vk()&&!Cz(b.info))for(var m=g.r(b.BD()),n=m.next();!n.done;n=m.next())tR(c.C,n.value);GR(c);return!!c.Gf()}catch(p){return b=b.oq(),b.origin="hrhs",QHa(a,p,b),!1}};
QHa=function(a,b,c){if(b instanceof Error&&(c.msg||(c.msg=""+b.message),g.Sv(b),"WARNING"===b.level)){vS(a.Aa,c);return}a.handleError("fmt.unplayable",c,1)};
KHa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=RHa(a);if(d){if(a.policy.Zr){if(!b.po()){var e=a.audioTrack.Gf();e&&(wS(a,a.audioTrack,b,e.info),xS(a,b,e))}!c.po()&&(b=a.videoTrack.Gf())&&(wS(a,a.videoTrack,c,b.info),xS(a,c,b))}a.ra||(a.ra=(0,g.R)(),a.policy.Z&&a.ya("apdps",{r:d}))}else{if(a.ra){d=(0,g.R)()-a.ra;e=KR(a.audioTrack,a.currentTime);var f=KR(a.videoTrack,a.currentTime);a.policy.Z&&a.ya("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.xf());if(d.C)d=DHa(d,f);else{if(f=e.Gf()){var k=f.u;k&&k.D&&k.B&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Ye&&(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.Na())}d=NaN}d&&a.Aa.seekTo(d,{Cq:!0,pe:"pollSubsegmentReadahead",Yp:!0})}d=!1;SHa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.R)(),UG("vda",e.C,e.j),e.B&&(g.Vr(),Xr(4))));if(a.mediaSource&&!a.mediaSource.cf()&&
(SHa(a,a.audioTrack,b)&&(d=a.timing,d.B||(d.B=(0,g.R)(),UG("ada",d.B,d.j),d.C&&(g.Vr(),Xr(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Ub&&IR(a.videoTrack)&&IR(a.audioTrack)&&CA(a.mediaSource)&&!a.mediaSource.oh()&&(e=ER(a.audioTrack).j,e===a.j.j[e.info.id]&&(e=a.mediaSource,CA(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.We.webkitSourceEndOfStream(e.We.EOS_NO_ERROR)),e=a.schedule,vta(cC(e)),e.D=ZB(),e.S=!0));e=a.policy.Mv;f=a.policy.Vv;d||!(0<e||f)||!CA(a.mediaSource)||IR(a.videoTrack)||
IR(a.audioTrack)||(b.AC(a.currentTime,f,e),c.AC(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.j?c.j.supports(0):EA());c&&g.xp(a.ma)}}}};
RHa=function(a){if(gHa(a.videoTrack))return"ssf";var b=a.B;if(1===b.u||2===b.u||3===b.u)return"cpm";if(a.policy.Zf||bHa(a.videoTrack)||bHa(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=vR(c.C).concat(vR(d.C));f=g.r(f);for(var k=f.next();!k.done;k=f.next())e+=k.value.u;c=c.j.info.Ob+d.j.info.Ob;e/=c;b=e<b.policy.Jk?!1:10<e?!0:10>c*(10-e)/NQ(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&DGa(b.C).info.J<
b.ma)return"seek"}if(!a.va||!a.policy.Cb||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";b=dHa(a.videoTrack,a.currentTime,a.policy.Cb)||dHa(a.audioTrack,a.currentTime,a.policy.Cb);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||pS(a,a.videoTrack,a.audioTrack)||pS(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
SHa=function(a,b,c){if(c.oh())return!0;if(!c.Qz())return!1;var d=b.Gf(),e;if(!(e=!d||6===d.info.type)&&(e=a.B)){e=a.B;var f;if(f=0!==e.u&&b===e.xa)e=MR(e.J),f=d.info.Ma>(e?e.Ma:-1);e=!!f}if(e)return!1;wS(a,b,c,d.info);if(a.j.u&&0===d.info.zb&&(g.Sz(d.info.j.info)||a.policy.Hp)){if(null==c.po()){e=ER(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.S,f=d.info.S,e.length!==f.length)e=!1;else{for(var k=0;k<e.length;k++)if(!g.lc(e[k],f[k])){e=!1;break b}e=!0}f=!e}e=f}else e=c.po(),a.policy.Yv&&d.info.j.Pt()&&
Isa(d),f=d.info.j.j,e=e!==f&&!g.lc(e,f);e&&(f=ER(b),a.ya("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Ma}));a.policy.Sb&&!e&&(g.Sz(d.info.j.info)?(Ry(Rz(d),1836019574),Ry(Rz(d),1718909296)):(e=new Ty(Rz(d)),Tra(e),Xy(e,524531317,!0),d.j=d.j.split(e.start+e.j).Hr),d.D=!1)}a.policy.gh?d.B=!1:a.policy.Sv&&!c.po()&&(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)&&xS(a,c,d))return!0;if(e)return!1;e=a.currentTime+qS(a,b,!1);(e=d.info.B>e)||(a.policy.ob&&(!d.info.zb||d.info.Td||10>d.info.B)&&a.ya("sba",c.Nb({as:zz(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=THa(a,c,f,d.info,e),"s"===c?(a.Xa=0,a=!0):("i"===c||"x"===c?UHa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy,e.K=Math.floor(.8*e.K),
e.xa=Math.floor(.8*e.xa),e.J=Math.floor(.8*e.J)):(e=a.policy,e.X=Math.floor(.8*e.X),e.ub=Math.floor(.8*e.ub),e.J=Math.floor(.8*e.J)),bR(a.u,d.info.j)),vS(a.Aa,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.di(d);return!0};
UHa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",a.policy.Kk||(d.j.C=e),d.j.info.video&&!cR(a.u)&&bR(a.u,d.j)):"i"===c&&(15>a.Xa?(a.Xa++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=yz(d);var k;d.mrs=null==(k=a.mediaSource)?void 0:DA(k);d.origin=b;d.reason=c;a.handleError(e,d,f)};
MGa=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.Ma)){l=b;var m=f.al(l.Ma);m&&m.startTime!==l.startTime?(f.segments=[],f.rD(l),f=!0):f=!1;f&&(k=b.Ma)}else f.rD(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.XG(b,c,d)};
wS=function(a,b,c,d){b=ER(b);!b||b.Td||wz(b,d)||c.abort();!c.Qw()||zA()?c.KI(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Qw()&&a.ya("ctu",{ct:zA(),prev_c:c.Qw(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.yk&&b&&(d=0+b.duration,b=-b.j,0===c.sA()&&d===c.eF()||c.UH(0,d),b!==c.rd()&&(c.lC(b),wR&&OGa(a.audioTrack.C,c.uF())))};
xS=function(a,b,c){c.info.j.df();var d=c.info.j.j;if(!d||!b.Qz()||b.po()===d)return!1;var e=d,f=b.wA();if(a.policy.gh&&f&&b.isView()&&g.Sz(c.info.j.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Nra(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ya("fenc",{})}f=null;(k=c.info.j.xo(0))&&(f=k.j[0]);a.policy.ob&&a.ya("sbi",b.Nb({as:zz(c.info)}));a.policy.Vh&&b.abort();d=THa(a,b,e,f,d);if("s"!==d)return UHa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.K||(a.K=
(0,g.R)(),UG("vis_a",a.K,a.j))):(a=a.timing,a.J||(a.J=(0,g.R)(),UG("ais_a",a.J,a.j)));return b.oh()};
THa=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.xf()).replace(/,/g,"_"),message:g.Bc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},EHa()),a.handleError("player.exception",b),"q";g.S(f)}return"u"}return a.mediaSource.cf()?"m":"s"};
oR=function(a,b){a.Aa.yB(b)};
qS=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.X:a.policy.K;!a.policy.Va&&a.u.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.ub:a.policy.xa));c&&(d+=a.policy.qb);c=a.u.j.isLocked()?b.u?b.u.j.info.Ob:b.j.info.Ob:b.Ob*a.policy.mj;d/=c;0<a.policy.Ik&&a.mediaSource&&CA(a.mediaSource)&&(b=b.j.info.video?a.mediaSource.u:a.mediaSource.j)&&!b.oh()&&(b=b.xf(),c=sA(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.Ik,a.policy.Nv))));0<a.policy.J&&
(d=Math.min(d,a.policy.J));return d};
NHa=function(a,b){var c=a.B;c=c.j?c.j.Kd:null;if(a.qn&&c)return c.startSecs+c.durationSecs+15;b=qS(a,b,!0);!a.u.j.isLocked()&&0<a.policy.va&&(c=((0,g.R)()-a.fb)/1E3,b=Math.min(b,a.policy.va+a.policy.Dd*c));b=a.currentTime+b;return a.policy.Wl&&(c=VHa(a)+a.policy.Wl,c<b)?(a.ya("mrl",{ori:b,mod:c},!0),a.policy.zj&&(a.fb=(0,g.R)()),c):b};
VHa=function(a){var b=g.Xn(a.Aa.wm(),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};
WHa=function(a,b){pP(b,"cms",function(c){a.policy.Z&&a.ya("pathprobe",c)},function(c){a.Aa.handleError(c)})};
XHa=function(a,b){a.C=b;a.B&&(a.B.C=b);a.C.YH(a.videoTrack.j.info.Be())};
YHa=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.Ct(d);e!==c.Z&&(c.C.dH(c.Z,e,c.va,d),c.Z=e);c.va=d}a.currentTime!==b&&a.resume();a.J.u&&a.mediaSource&&!a.mediaSource.cf()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=tA(a.mediaSource.u.xf(),a.currentTime+rS),c&&d&&(a.J.u=!1));a.J.u||(a.currentTime=b);g.xp(a.Ra)}};
ZHa=function(a,b){var c=HR(a.videoTrack).find(function(d){return d.startTime>=b&&FHa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
FHa=function(a,b,c){if(!(a.videoTrack.j.df()&&a.audioTrack.j.df()&&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=RQ(a.videoTrack,b,c);if(isNaN(d))return!1;a=RQ(a.audioTrack,a.policy.ra?b:d,c);return isNaN(a)?!1:!0};
hS=function(a,b,c,d){if(!(c.df()||c.Pt()||c.J)&&asa(c.u,a.policy)&&"f"!==c.info.j){if(d){d=a.S;var e=c.info,f=QFa(d,e.video?d.policy.Gp:d.policy.cj,e.Ob);d=d.policy.ph&&e.video?Math.max(f,d.policy.ph):f}else d=0;d=c.xo(d);a=sS(a,d);Cz(d)&&FR(b,a);c.J=!0}};
jS=function(a){try{var b=a.audioTrack;QQ(b);SQ(b.C);var c=a.videoTrack;QQ(c);SQ(c.C)}catch(d){g.S(d)}a.policy.u=""};
$Ha=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.B.K=a.timestampOffset,a.Aa.fH(a.timestampOffset),a.j.isManifestless&&(a.j.timestampOffset=a.timestampOffset))};
g.yS=function(a){this.kd=a};
zS=function(){g.iv.apply(this,arguments)};
AS=function(a,b,c,d){zS.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)};
aIa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
bIa=function(a){var b=a.interval,c=a.yu;this.url=a.url;this.interval=b;this.yu=c};
cIa=function(a,b){this.statusCode=a;this.message=b;this.j=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
dIa=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 cIa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.Mxa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new bIa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,yu: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};
BS=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.Vi(5E3,2E4,.2)};
eIa=function(a,b,c){a.onSuccess=b;a.onError=c};
gIa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(a.Na(),0!==e.status&&e.response)if(lx("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=dIa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else fIa(a,e)},
onError:function(e){fIa(a,e)}};
c&&(b=Ica(b,"access_token",c));g.Gr(b,d);a.Na()};
fIa=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)};
iIa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){a.Na();lx("drm_net_r",void 0,a.timer);var k="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Jc(f.license)}catch(x){g.S(x)}if(0!==k||l){l=new cIa(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=hIa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&
(t+="HDR");k[t]||(m.push(t),k[t]=!0);var w=null;try{w=Jc(q.keyId)}catch(x){g.S(x)}w&&(n[g.Ac(w,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.iL="Bearer "+d);g.ju(c,"player/get_drm_license",b,e)};
DS=function(a,b,c,d){g.iv.call(this);this.videoData=a;this.Y=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.X;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Qa&&(a.vvt=this.videoData.Qa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Y.authUser&&(a.authuser=this.Y.authUser);this.Y.pageId&&(a.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.tb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.X=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.VA(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.X=!1);this.baseUrl=g.bB(this.u)?aIa(c.initData).replace("skd://",
"https://"):this.u.C;this.fairplayKeyId=yj(this.baseUrl,"ek")||"";if(b=yj(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.xa=this.videoData.N("html5_use_drm_retry");this.va=c.Be?[g.Ac(c.initData,4)]:c.u;this.Na();CS(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
mIa=function(a,b){CS(a,{createkeysession:1});a.status="gr";lx("drm_gk_s",void 0,a.videoData.xa);a.url=jIa(a);try{a.B=b.createSession(a.S,function(c){CS(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&&(kIa(a.B,function(c,d){lIa(a,c,d)},function(c,d,e){if(!a.isDisposed()){a.Na();
d=void 0;var f=1;g.bB(a.u)&&g.yC(a.Y)&&a.Y.N("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.Y.N("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(a.Na(),CS(a,{onkyadd:1}),a.K||(a.ea("sessionready"),a.K=!0))},function(c){a.ap(c)}),g.H(a,a.B))};
jIa=function(a){var b=a.baseUrl;sqa(b)||a.error("drm.net",2,"t.x");if(!yj(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Y.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.r(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Ica(b,d,a.C[d]);return b};
lIa=function(a,b,c){if(!a.isDisposed())if(b){a.Na();CS(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":nIa(a,b);return;default:a.ea("ctmp","message_type",{t:c,l:b.byteLength})}a.Z||(lx("drm_gk_f",void 0,a.videoData.xa),a.Z=!0,a.ea("newsession",a));if(ZA(a.u)&&(b=oIa(b),!b))return;g.bB(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=py(g.Ac(b)));b=new BS(b,++a.requestNumber,a.videoData.xa);eIa(b,function(d){pIa(a,
d)},function(d,e,f){if(!a.isDisposed()){var k=0,l;
(l=3<=d.j.u)||(l=a.xa&&36E4<(0,g.R)()-a.ra);l&&(k=1,e="drm.net.retryexhausted");a.Na();CS(a,{onlcsrqerr:e,info:f});a.error(e,k,f);a.shouldRetry(fD(k),d)&&qIa(a,d)}});
g.H(a,b);rIa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
nIa=function(a,b){a.Na();CS(a,{sdpvrq:1});a.J=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.deviceParams);c=g.wj("https://web.archive.org/web/20220406233357/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))}))}};
ES=function(a){var b;if(b=a.X&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
rIa=function(a,b){a.status="km";lx("drm_net_s",void 0,a.videoData.xa);if(a.videoData.useInnertubeDrmService()){var c=new g.iu(a.Y.gh),d={context:g.ws(c.config_||g.vs())};d.drmSystem=sIa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Ac(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.Y.deviceParams)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Qa&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Qa,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.qb&&(d.context.user.kidsParent={oauthToken:a.videoData.qb});g.bB(a.u)&&(d.fairplayKeyId=g.Ac(kaa(a.fairplayKeyId)));g.bD(a.Y,g.AE(a.videoData)).then(function(l){iIa(b,d,c,l);a.status="rs"})}else a.Na(),a.error("drm.net",2,"t.r;ic.0")}else g.bD(a.Y,g.AE(a.videoData)).then(function(l){gIa(b,a.url,l);
a.status="rs"})};
pIa=function(a,b){if(!a.isDisposed())if(CS(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{lx("drm_kr_s",void 0,a.videoData.xa);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.Y.N("html5_heartbeat_wait_for_drm_killswitch")||
(a.videoData.useInnertubeDrmService()&&!a.videoData.dG&&a.ea("newlicense",new bIa({})),a.videoData.dG=!0),a.ma=an(a.D,function(d){return d.includes("HDR")}));
b.u&&(a.j=Hf(b.u,function(d){return{type:d,status:"unknown"}}));
$A(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Jc(qy(b.message)):aB(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=py(g.Ac(b.message)));a.B&&(a.Na(),CS(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){lx("drm_kr_f",void 0,a.videoData.xa);ES(a)||(CS(a,{ksApiUnsup:1}),a.ea("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Bc(d.message);
a.error("drm.keyerror",1,d)}));
a.K&&(a.ra=(0,g.R)());g.bB(a.u)&&a.ea("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)}};
qIa=function(a,b){var c=b.j.getValue();c=new g.L(function(){rIa(a,b)},c);
g.H(a,c);c.start();g.Wi(b.j);a.Na();CS(a,{rtyrq:1})};
tIa=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)};
uIa=function(a){var b={};b[a.status]=ES(a)?tIa(a,"."):a.D.join(".");return b};
vIa=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};
GS=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
CS=function(a,b){var c=void 0===c?!1:c;a.Na(dD(b));(c||cD(a.Y))&&a.ea("ctmp","drmlog",b)};
wIa=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};
oIa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=uda(new DOMParser,g.rh(g.Kg("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(xIa(Hc(a.childNodes[0].nodeValue)).buffer):null:null};
yIa=function(a,b,c,d){if(a=py(g.Ac(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Jca(c,d),g.Jr(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=dIa(e))&&e.message&&b.update(e.message)})};
HS=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);zIa(this)};
zIa=function(a){a.j?(a.C.T(a.j,"message",a.DS),a.C.T(a.j,"keystatuseschange",a.ap),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.KO),gv(a.C,a.u,["mskeyerror","webkitkeyerror"],a.JO),gv(a.C,a.u,["mskeyadded","webkitkeyadded"],a.IO))};
kIa=function(a,b,c,d,e){a.D=b;a.B=c;a.J=d;a.K=e};
AIa=function(a,b,c){g.hr(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
IS=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)};
CIa=function(a,b){b=BIa(b,a.j.u);a=a.B.createSession("video/mp4",b);return new HS(null,null,null,null,a)};
DIa=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 HS(null,null,null,null,a)};
JS=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};
BIa=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};
KS=function(a,b){g.G.call(this);this.j=g.ei("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()};
LS=function(a,b,c,d){zS.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();EIa(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)};
EIa=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)};
MS=function(){this.keys=[];this.values=[]};
NS=function(a){a.keys=[];a.values=[]};
OS=function(a,b,c){g.iv.call(this);this.element=a;this.videoData=b;this.Y=c;this.j=this.videoData.X;this.drmSessionId=this.videoData.drmSessionId||g.jpa();this.u=new Map;this.J=new MS;this.K=new MS;this.B=[];this.Da=2;this.ma=new g.iA(this);this.Ha=this.va=!1;this.heartbeatParams=null;this.ra=this.X=!1;this.D=null;this.xa=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||XA()||dB(c.experiments);c=this.videoData.dg;this.S="fairplay"===this.j.flavor||c?RD:FIa;this.C=new IS(this.element,this.j);g.H(this,
this.C);YA(this.j)&&(this.Z=new IS(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.IS):gv(this.ma,c,YA(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.JX);GIa(this);a:switch(c=this.j,a=this.Y.experiments,b=this.u,c.flavor){case "fairplay":19.2999<uma()?(a=c.K,c=c.J,c>=a&&(c=.75*a),b=.5*(a-c),c=new AS(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new LS(a.kb("disable_license_delay"),!a.kb("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.D=c)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.eL,this),this.D.subscribe("log_qoe",this.Xg,this);this.Na("Created, key system "+this.j.keySystem+", final EME "+dB(this.Y.experiments));this.Xg({cks:this.j.yf()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.Ia=new KS(this.videoData.pc,this.Y.experiments),g.H(this,this.Ia))};
GIa=function(a){var b=a.C.attach();b?b.then(ir(function(){HIa(a)}),ir(function(c){if(!a.isDisposed()){a.Na();
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.Na(),a.Xg({mdkrdy:1}),a.X=!0);
a.Z&&(b=a.Z.attach())};
JIa=function(a,b,c){a.Ha=!0;c=new jR(b,c);a.Y.N("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));IIa(a,c)};
IIa=function(a,b){if(!a.isDisposed()){a.Xg({onInitData:1});if(a.Y.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.Na();a.Xg({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.va&&!a.videoData.isLivePlayback)PS(a);else{if(!(a.Y.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Be)){a.va=!0;c=b.cryptoPeriodIndex;var d=b.j;yGa(b);b.Be||(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.eL(b)}};
HIa=function(a){if(!a.isDisposed())if(a.Y.N("html5_drm_set_server_cert")&&!g.HC(a.Y)){var b=a.C.setServerCertificate();b?b.then(ir(function(c){cD(a.Y)&&a.ea("ctmp","ssc",{success:c})}),ir(function(c){a.ea("ctmp","ssce",{n:c.name,
m:c.message})})).then(ir(function(){QS(a)})):QS(a)}else QS(a)};
QS=function(a){a.isDisposed()||(a.X=!0,a.Na(),a.Xg({onmdkrdy:1}),PS(a))};
KIa=function(a){return"widevine"===a.j.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
PS=function(a){if(a.Ha&&a.X&&!a.ra){for(;a.B.length;){var b=a.B[0],c=KIa(a)?zGa(b):g.Ac(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}yGa(b);break}a.B.length&&a.createSession(a.B[0])}};
LIa=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}))};
SS=function(a){g.G.call(this);var b=this;this.Aa=a;this.j=this.Aa.V();this.videoData=this.Aa.getVideoData();this.sx=0;this.J=this.B=!1;this.D=0;this.C=g.cB(this.j.experiments,"html5_delayed_retry_count");this.u=new g.L(function(){RS(b.Aa)},g.cB(this.j.experiments,"html5_delayed_retry_delay_ms"));
g.H(this,this.u)};
US=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.Aa.Mg.C&&d&&"22"===d.Yb())return a.Aa.Mg.C=!0,a.ud("qoe.restart",{reason:"fmt.unplayable.22"}),TS(a.Aa),!0;var f=!1,k=a.sx+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.ud("auth",c),!0;var l;if(l=!k)l=a.Aa.Co(),l=!!(l.Se()||l.isInline()||l.isBackground()||
l.Mt()||l.It());l&&(c.nonfg="paused",k=!0,a.Aa.pauseVideo());"fmt.decode"!==b&&"fmt.unplayable"!==b||null==e||"mac3"!==e.j&&"MAC3"!==e.j&&"meac3"!==e.j&&"MEAC3"!==e.j&&"m"!==e.j&&"M"!==e.j||(Sta(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.Aa.Ua;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.Qa.has(n)?l=!1:(l.Qa.add(n),l.X=-1,YQ(l,l.j),l=!0);l&&(m="cfallp")}else Sta(a.j.u,
d.j),m="cfallexp";m&&(f=k=!0,c[m]=d.j)}if(!k)return MIa(a,c);a.sx=(0,g.R)();k=a.videoData;k.Xa?(k=k.Xa.NJ(),m=Date.now()/1E3+1800,k=k<m):k=!1;c.e=b;k&&(c.staleprog="1");a.ud("qoe.restart",c);if(k&&NIa(a))return OIa(a),!0;Yr("philips")&&PIa(a);d&&eA(d)?(f=a.j.u,f.X=!0,f=f.j=!0):e?(b=(b=ER(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.S+=1,bR(e.u,b,!0)):a.videoData.Xa&&a.videoData.Xa.OH();a.u.isActive()||RS(a.Aa,f);return!0};
MIa=function(a,b){if(a.videoData.fb)return!1;a.j.Xa+=1;if(10>=a.j.Xa)return!1;b.exiled=""+a.j.Xa;a.ud("qoe.start15s",b);a.Aa.ea("playbackstalledatstart");return!0};
PIa=function(a){if("GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(b){}};
NIa=function(a){return a.B?!0:"yt"!==a.j.Da?!1:a.videoData.fb?25>a.videoData.ub:!a.videoData.ub};
OIa=function(a){if(!a.B){a.B=!0;var b=a.Aa.getPlayerState();b=g.V(b,4)||b.isSuspended();a.Aa.Wm();b&&!BE(a.videoData)||a.Aa.ea("signatureexpired")}};
QIa=function(a,b){if((a=a.Aa.zd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Bj();b.details.merr=c?c.toString():"0";b.details.msg=a.Fe()}};
RIa=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};
TIa=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="19088";if(NIa(a))return fD(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new g.eD("qoe.restart",b)),a.ud(b.errorCode,b.details),OIa(a),!0;6048E5<(0,g.R)()-a.j.Dd&&SIa(a,"signature");return!1};
SIa=function(a,b){try{window.location.reload();a.ud("qoe.restart",{detail:"pr."+b});return}catch(c){}a.j.N("tvhtml5_retire_old_players")&&g.HC(a.j)&&PIa(a)};
UIa=function(a,b){var c=a.j.u;c.D=!1;c.j=!0;a.ud("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});TS(a.Aa)};
VIa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
VS=function(a,b,c){this.Y=a;this.Gy=b;this.Aa=c;this.X=this.J=this.K=this.u=this.j=this.D=this.S=this.B=0;this.playbackRate=1;this.C=!1};
XIa=function(a,b,c){!a.Y.N("html5_tv_ignore_capable_constraint")&&g.HC(a.Y)&&(c=c.compose(WIa(a,b)));return c};
YIa=function(a,b){return 1<a.playbackRate?(a=Ota(a.Y.u,b.j.videoInfos,a.playbackRate),new Ix(0,a,!0,"o")):new Ix(0,0,!1,"o")};
ZIa=function(a,b){var c=a.Aa;c=c.videoData.ot||WS(c.yg).ot;if(a.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.RI&&Lx(b.videoData.ej))a=c.RI,b.videoData.ej=new Ix(0,a,!1,"u");else{var d;if(c&&(null==(d=c.mE)?0:d.length)&&Lx(b.videoData.ej)){a=new Map;d=g.r(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.Yb(),e.video.j);d=[];c=g.r(c.mE);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.u(d));b.videoData.ej=new Ix(0,a,
!1,"u")}}return b.videoData.ej};
WIa=function(a,b){if(g.HC(a.Y)&&Sx(a.Y.u,Tx.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;vC(a.Y)&&(e=window.screen&&window.screen.width?new g.Dh(window.screen.width,window.screen.height):null);e||(e=a.Y.yj?a.Y.yj.clone():a.Gy.Hg());(xC||GQ||d)&&e.scale(g.PC());d=e;bE(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||tC||(e=.45);a=g.cB(a.Y.experiments,"html5_viewport_undersend_maximum");for(f=0;f<
b.length;f++){c=b[f];var k=c.video;if(null===d||k.width*e<d.width&&k.height*e<d.height){a&&f&&k.width<d.width*a&&k.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c="93"===c.Yb()?g.Jx[Xz(d.width,d.height)]:d.j;c=new Ix(0,c,!1,"r")}else c=RD;c=c.j}c&&(c=Math.max(c,360));return new Ix(0,c,!1,"r")};
$Ia=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.Ya(0);break}d=c.value;return g.A(e,Ksa(d),4);case 4:c=b.next(),e.Ya(3)}})};
bJa=function(a,b){if(!b.videoData.u||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.Ua()-a.S&&(a.B=0);a.B++;a.S=g.Ua();if(4!==a.B)return!1;aJa(a,b.videoData.u);return!0};
dJa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.cB(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),k=g.cB(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.R)()-a.D?0:f||0<e||0<k))return!1;a.D=(0,g.R)();c=c.wz();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.X;a.J=c.droppedVideoFrames;a.X=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&cD(a.Y)&&a.Aa.ya("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.HC(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;aJa(a,b.videoData.u);a.Aa.ya("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},cJa()));return!0};
eJa=function(a,b){return 0>=g.cB(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
aJa=function(a,b){var c=b.j,d=b.video.fps;b=b.video.j-1;var e=SA();c=yta(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.fw("yt-player-performance-cap",e,604800));a.Aa.Ou()};
fJa=function(a,b){if(!b.j.j)return a.C?new Ix(0,360,!1,"b"):RD;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.cB(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.isMobile?240:f;b=g.r(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!eA(e))if(f=TA(e.j,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new Ix(0,d,!1,"b")};
gJa=function(a){a=a.Aa.Co();return a.isInline()?new Ix(0,480,!1,"v"):a.isBackground()&&60<Du()/1E3?new Ix(0,360,!1,"v"):RD};
iJa=function(a,b,c){if(a.Y.experiments.kb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.HC(a.Y)&&(1080<=RA(-1)||b.osid))return RD;var d=g.cB(a.Y.experiments,"html5_autonav_quality_cap"),e=g.cB(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.wl&&Du()/1E3>e?(c&&(d=hJa(a,c,d)),new Ix(0,d,!1,"e")):RD};
hJa=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};
jJa=function(a,b){a.N("html5_log_media_perf_info")&&(a.Aa.ya("perfdb",cJa()),a.Aa.ya("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.Aa.ya("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("-")}))};
cJa=function(){return Hf(SA(),function(a){return""+a})};
XS=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.mH;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)};
YS=function(a){0<=a.u||(3===a.j.Aa.getVisibilityState()?a.J=!0:(a.u=g.IP(a.j),a.delay.start()))};
kJa=function(a){if(!(0>a.B)){var b=g.IP(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.uH(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
ZS=function(a,b){b?lJa.test(a):(a=g.or(a),Object.keys(a).includes("cpn"))};
$S=function(a,b,c,d,e,f,k){var l={format:"RAW"},m={};if(rr(a)&&sr()){if(k){var n;2!==(null==(n=mJa.uaChPolyfill)?void 0:n.state.type)?k=null:(k=mJa.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.O("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.O("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.O("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")&&lJa.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};
aT=function(a,b,c,d,e,f,k,l){sr()&&c.token&&(a=pr(a,{ctt:c.token,cttype:c.uI,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:ZS(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.nh?(b=b||{},ZS(a,d.N("html5_assert_cpn_with_regex")),d.nh.enqueue(a,b)):b?(ZS(a,d.N("html5_assert_cpn_with_regex")),g.Gr(a,b)):g.Nt(a,e)};
g.cT=function(a){g.G.call(this);var b=this;this.j=a;this.logger=new g.rQ("qoe");this.u={};this.sequenceNumber=1;this.Va=NaN;this.Md="N";this.S=this.ob=this.Xa=this.Ra=this.C=0;this.Da=this.qb="";this.fb=this.ma=NaN;this.Wa=0;this.ub=-1;this.ib=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Qa=this.va=this.isOffline=this.ra=!1;this.Fb=[];this.Z=null;this.D=this.Ia=this.J=!1;this.B=-1;this.Ha=!1;this.Cb=new g.L(this.ZU,750,this);this.X=this.adCpn="";this.adFormat=void 0;this.Lb=0;this.Hb=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));
g.H(this,this.Cb);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.Z=c});
g.bT(this,0,"vps",["N"])};
g.bT=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
dT=function(a,b){var c=a.j.Aa.getCurrentTime();g.bT(a,b,"cmt",[c.toFixed(3)]);c=a.j.Aa.Nh();if(a.K&&1E3*c>a.K.dO+100&&a.K){var d=a.K,e=d.isAd;c=1E3*c-d.dO;a.xa=1E3*b-d.PZ-c-d.EZ;if(!a.j.videoData.N("web_player_dai_csi_killswitch")){c=(0,g.R)()-c;b=a.xa;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;nx(f,k);mx({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);lx("pbs",c,f)}else c=a.j.Aa.Li(),c.K!==d.clientPlaybackNonce?(c.J=d.clientPlaybackNonce,c.B=b):g.Sv(new g.Is("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.ya("gllat",{l:a.xa.toFixed(),prev_ad:+e});delete a.K}};
eT=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.IP(a.j);var c=a.j.Aa.FA();if(!isNaN(a.ma)&&!isNaN(c.j)){var d=c.j-a.ma;0<d&&g.bT(a,b,"bwm",[d,(c.C-a.fb).toFixed(3)])}isNaN(a.ma)&&c.j&&a.isOffline&&nJa(a,!1);a.ma=c.j;a.fb=c.C;isNaN(c.bandwidthEstimate)||g.bT(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);cD(a.j.Y)&&0!==Object.keys(c.u).length&&a.ya("bwinfo",c.u);if(cD(a.j.Y)||a.j.Y.N("html5_log_meminfo"))d=EHa(),Object.values(d).some(function(e){return void 0!==e})&&a.ya("meminfo",d);
a.Z&&g.bT(a,b,"bat",[a.Z.level,a.Z.charging?"1":"0"]);d=a.j.Aa.getVisibilityState();a.ub!==d&&(g.bT(a,b,"vis",[d]),a.ub=d);dT(a,b);(d=oJa(a.j))&&d!==a.Wa&&(g.bT(a,b,"conn",[d]),a.Wa=d);pJa(a,b,c)};
pJa=function(a,b,c){if(!isNaN(c.bq)){var d=c.bq;c.B<d&&(d=c.B);g.bT(a,b,"bh",[d.toFixed(3)])}};
qJa=function(a,b,c){g.bD(a.j.Y,g.AE(a.j.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.j.Y.N("kevlar_woffle")||a.j.Y.N("qoe_nwl_downloads"))e=!0}else a.j.Y.N("qoe_with_networkless")&&(e=!0);var f=a.j.Y.N("qoe_send_and_write"),k=a.j.Y,l=a.j.N("web_player_vss_pageid_header")?a.j.Y.pageId:void 0;d=$S(b,k,l,a.j.Y.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,d);k.N("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,aT(b,d,{token:a.j.videoData.K,
uI:a.j.videoData.Ai,mdxEnvironment:a.j.videoData.mdxEnvironment},k,void 0,e,f&&a.va)):e?(e=a.j.Y.N("networkless_ajax"),k={method:"POST",postBody:c},f&&a.va?a.j.Y.N("use_new_nwl_saw")?Wt().sendAndWrite(b,k):du(b,k):e?g.Gr(b,{method:"POST",postBody:c}):a.j.Y.N("use_new_nwl_stw")?Wt().sendThenWrite(b,k):cu(b,k)):(f=c,f=void 0===f?"":f,boa(b,f)||g.Nt(b,void 0,void 0,void 0,f))})};
fT=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(Ul(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.L(a.reportStats,0,a)).start()};
rJa=function(a){a.j.videoData.bd&&gT(a,"prefetch");a.j.videoData.ub&&a.ya("reload",{r:a.j.videoData.reloadReason,ct:a.j.videoData.ub});a.j.videoData.ob&&gT(a,"monitor");a.j.videoData.isLivePlayback&&gT(a,"live");a.j.videoData.vg&&a.ya("ctrl",{mode:a.j.videoData.vg},!0);if(a.j.videoData.Og){var b=a.j.videoData.Og.replace(/,/g,"_");a.ya("ytp",{type:b},!0)}a.j.videoData.VM&&(b=a.j.videoData.VM.replace(/,/g,"."),a.ya("ytrexp",{ids:b},!0));if(!a.j.Y.N("html5_disable_gpu_reporting")){var c=a.j.videoData;
b=a.j.Y.N("enable_white_noise")||a.j.Y.N("enable_webgl_noop")||a.j.Y.N("enable_gpu_logging");c=g.sE(c)||g.qE(c)||g.rE(c)||g.tE(c);(b||c)&&(b=(0,g.hT)())&&(a.u.gpu=[b])}BE(a.j.videoData)&&g.bT(a,g.IP(a.j),"dt",["1"]);cD(a.j.Y)&&(b=(0,g.R)()-a.j.Y.Dd,a.ya("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.Va=g.Cr(function(){a.reportStats()},1E4)};
tJa=function(a,b,c){var d=g.IP(a.j);sJa(a,d,b,0,c);eT(a,d);fT(a)};
sJa=function(a,b,c,d,e){var f=a.j.Aa.getCurrentTime();c=[c,1===d?"fatal":"",f.toFixed(3)];e&&c.push(uJa(e));g.bT(a,b,"error",c);a.D=!0};
iT=function(a){0<=a.B||(a.j.Y.Vc||3!==a.j.Aa.getVisibilityState()?a.B=g.IP(a.j):a.Ha=!0)};
gT=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
nJa=function(a,b){a.isOffline=b;g.bT(a,g.IP(a.j),"is_offline",[a.isOffline?"1":"0"])};
vJa=function(a,b,c,d,e){var f=g.IP(a.j);1===b&&g.bT(a,f,"vps",[a.Md]);var k=a.u.xvt||[];k.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=k};
uJa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
wJa=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.Oh().volume;this.X=this.j.Oh().muted;this.C=jT(this.j)};
kT=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.Ob(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=jT(a.j);a.B=a.u};
xJa=function(a){a.segments.length&&a.u===a.B||kT(a);var b=a.segments;a.segments=[];return b};
zJa=function(a){yJa(a);a.K=g.Cr(function(){a.update()},100);
a.lastUpdateTime=g.IP(a.j);a.C=jT(a.j)};
yJa=function(a){window.clearInterval(a.K);a.K=NaN};
AJa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
lT=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Ra=this.ub=this.isFinal=this.Dd=this.qb=this.autoplay=this.autonav=!1;this.Fb="yt";this.J=this.K=null;this.sendVisitorIdHeader=this.Va=!1;this.pageId="";this.B="watchtime"===c;this.C="playback"===c;this.ma="delayplay"===c;this.Z="atr"===c;this.Pd="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.Z?"/api/stats/"+c:"//"+b.zj+"/api/stats/"+c;this.nf=!b.N("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&
b.pfpChazalUi&&a.D;d&&(this.ub=d.fs,d.rtn&&(this.J=d.rtn),this.B?(this.playerState=d.state,0<d.rti&&(this.K=d.rti)):(this.Qd=d.mos,this.Ei=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Lb=d.inview),d.size&&(this.Hb=d.size));this.deviceParams=g.Zf(b.deviceParams);this.pd=b.pd;b.N("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;this.Qa=b.nf;this.Fb=b.Da;this.region=
b.region;this.userAge=b.userAge;this.ib=b.Pf;this.Wb=Du();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.ra=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");this.Vd=b.N("vss_final_ping_send_and_write");this.va=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.me=b.N("vss_playback_use_send_and_write");this.Tb=b.N("use_new_nwl_saw");this.Ub=b.N("use_new_nwl_stw");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Yf=b.j&&b.N("embeds_append_synth_ch_headers");g.qC(b)&&
!b.N("embeds_rct_killswitch")&&(this.embedsRct=b.embedsRct);g.qC(b)&&!b.N("embeds_enable_epm_killswitch")&&(this.Ia=b.bj);this.accessToken=g.AE(a);a.OK&&(this.D=a.OK);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=zE(a);this.autonav=a.wl||this.autonav;this.bd=xE(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.qb=a.D;a.K&&(this.S=a.K,this.ob=a.Ai);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Lv;this.Ha=a.Fb;a.u&&(this.videoFormat=a.u.Yb(),a.J&&a.J.Yb()!==
this.videoFormat&&(this.audioFormat=a.J.Yb()));a.j&&Px(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.nf?"embedded_unbranded":wE(a);this.Ra=a.nf;this.pc=a.vk;if(b=lE(a))this.xe=b;this.Dc=a.Vl;this.eventId=a.eventId;this.playlistId=a.TN||a.playlistId;this.vg=a.vg;this.Og=a.Og;this.Vc=a.Nv;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Pc=a.T_;this.referrer=a.referrer;this.Wa=a.EM||a.rN;this.Xa=
a.Pv;this.fb=a.W_;this.userGenderAge=a.userGenderAge;this.Da=a.o_};
mT=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.bD(a.Y,a.accessToken).then(function(d){return $S(a.uri,a.Y,a.pageId,c,d,b,a.Yf)})};
BJa=function(a,b){return function(){a.Y.N("html5_simplify_pings")?(a.j=a.xa,a.Sb=b(),a.Wb=0,a.send()):mT(a).then(function(c){var d=a.uri,e=nT(a),f=a.ra,k=a.va,l=a.Tb,m=a.Ub;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.wj(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)})}};
nT=function(a){var b={ns:a.Fb,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.videoFormat,fs:a.ub?"1":"0",rt:a.u(a.Sb),adformat:a.adFormat,content_v:a.bd,etv:a.embedsTokenValue,euri:a.pd,lact:a.Wb,live:a.xe,cl:(439688426).toString(),mos:a.Qd,state:a.playerState,volume:a.Ei};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.qb&&(b.dni="1");!a.B&&a.Ia&&(b.epm=CJa[a.Ia]);a.isFinal&&(b["final"]="1");a.Ra&&(b.splay="1");a.Ha&&(b.delay=a.Ha);
a.Qa&&(b.hl=a.Qa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.ib&&(b.uga=a.ib+a.userAge);void 0!==a.xa&&(b.len=a.u(a.xa));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.J&&(b.rtn=a.u(a.J));a.Wa&&(b.feature=a.Wa);a.vg&&(b.ctrl=a.vg);a.Og&&(b.ytr=a.Og);a.audioFormat&&(b.afmt=a.audioFormat);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Cb&&(b.lio=a.u(a.Cb));a.B?(b.idpj=a.pc,b.ldpj=a.Dc,null!=a.K&&(b.rti=
a.u(a.K)),a.Da&&(b.ald=a.Da)):void 0!==a.adType&&(b.at=a.adType);a.Hb&&(a.C||a.ma||a.B)&&(b.size=a.Hb);null!=a.Lb&&(a.C||a.ma||a.B)&&(b.inview=a.u(a.Lb));a.B&&(b.volume=oT(a,g.Sl(a.segments,function(d){return d.volume})),b.st=oT(a,g.Sl(a.segments,function(d){return d.startTime})),b.et=oT(a,g.Sl(a.segments,function(d){return d.endTime})),an(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=oT(a,g.Sl(a.segments,function(d){return d.playbackRate}))),an(a.segments,function(d){return"-"!==d.j})&&
(b.als=g.Sl(a.segments,function(d){return d.j}).join(",")));
b.muted=oT(a,g.Sl(a.segments,function(d){return d.muted?1:0}));
an(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=oT(a,g.Sl(a.segments,function(d){return d.visibilityState})));
an(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=oT(a,g.Sl(a.segments,function(d){return d.connectionType})));
an(a.segments,function(d){return 0!==d.u})&&(b.blo=oT(a,g.Sl(a.segments,function(d){return d.u})));
an(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.Sl(a.segments,function(d){return d.C}).join(","));
an(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Sl(a.segments,function(d){return d.clipId}).join(","));
if(an(a.segments,function(d){return!!d.B})){var c="au";
a.C&&(c="au_d");b[c]=g.Sl(a.segments,function(d){return d.B}).join(",")}sr()&&a.S&&(b.ctt=a.S,b.cttype=a.ob,b.mdx_environment=a.mdxEnvironment);
a.Pd&&(b.etype=void 0!==a.X?a.X:0);a.Xa&&(b.uoo=a.Xa);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=DJa[a.livingRoomAppMode]||a.livingRoomAppMode);a.D&&a.Y.N("html5_log_server_url_param")?EJa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.Pc,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.Vc&&(b.ssrt="1"),a.fb&&(b.upt=a.fb));(a.C||a.ma)&&a.embedsRct&&
(b.rct=a.embedsRct);return b};
EJa=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])};
oT=function(a,b){return g.Sl(b,a.u).join(",")};
FJa=function(a,b){a.attestationResponse&&mT(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.ra?a.va?a.Tb?Wt().sendAndWrite(b,c):du(b,c):a.Ub?Wt().sendThenWrite(b,c):cu(b,c):g.Gr(b,c)})};
pT=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.xa=this.va=this.Z=this.X=this.C=!1;this.D=NaN;this.u=new wJa(a)};
HJa=function(a){if(!a.C){a.j.Y.N("disable_embedpage_playback_logging")||16623!==a.j.videoData.wy||g.Sv(Error("Playback for EmbedPage"));var b=qT(a,"playback");a:{if(a.j.Y.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.vk,k=a.j.videoData.Vl,l=-f;e=g.r(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+k-f);c.push(d);a.J=c;break a}}a.J=[10+a.j.videoData.vk,10,10,40+a.j.videoData.Vl-a.j.videoData.vk,40]}zJa(a.u);b.J=rT(a,!0);0<a.D&&(b.j-=a.D);b.send();a.j.videoData.Kr&&(b=a.j.Y,d=a.j.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Kr,oid:d.EK,ptchn:d.DK,pltype:d.FK,content_v:xE(d)},d.Jq&&Object.assign(c,{m:d.Jq}),b=g.wj(b.ma+"ptracking",c),sT(a,b));a.j.videoData.Fb||GJa(a);a.C=!0;a=a.u;a.u=a.j.Aa.getCurrentTime();
a.j.Y.N("html5_vss_media_time_killswitch")||(a.u=a.j.Aa.Nh());a.lastUpdateTime=g.IP(a.j);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.S=!0}};
rT=function(a,b,c){c=void 0===c?NaN:c;var d=g.IP(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=xJa(a.u),l=IJa(a,k);b&&(l.K=f);var m=1E3<a.S;!(1<k.length)&&k[0].isEmpty()||m||(l.J=rT(a,!0,f));l.send();a.S++}},1E3*(f-d));
return f};
qT=function(a,b){var c=a.j;c=Object.assign(c.Oh(),c.videoData.Oh());Object.assign(c,{state:a.currentPlayerState});b=new lT(a.j.videoData,a.j.Y,b,c);b.j=a.j.Aa.getCurrentTime();a.j.Y.N("html5_vss_media_time_killswitch")||(b.j=a.j.Aa.Nh());a.j.videoData.isLivePlayback||(b.xa=a.j.Aa.getDuration());a.j.videoData.j&&(c=a.j.videoData.j.getIngestionTime(b.j))&&(b.Cb=c-b.j);b.Sb=g.IP(a.j);b.segments=[jT(a.j)];return b};
IJa=function(a,b){var c=qT(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};
tT=function(a){a.u.update();return IJa(a,xJa(a.u))};
GJa=function(a){a.j.videoData.remarketingUrl&&!a.va&&(sT(a,a.j.videoData.remarketingUrl),a.va=!0);a.j.videoData.youtubeRemarketingUrl&&!a.xa&&(sT(a,a.j.videoData.youtubeRemarketingUrl),a.xa=!0);a.j.videoData.googleRemarketingUrl&&!a.ma&&(sT(a,a.j.videoData.googleRemarketingUrl),a.ma=!0);a.j.videoData.ppvRemarketingUrl&&!a.ra&&(sT(a,a.j.videoData.ppvRemarketingUrl),a.ra=!0);a.Qu()};
uT=function(a){if(!a.isDisposed()&&a.C){a.currentPlayerState="paused";var b=tT(a);b.isFinal=!0;b.send();a.dispose()}};
JJa=function(a,b,c){if(!a.X){c||(c=qT(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.X=!0}};
sT=function(a,b){var c=a.j.Y;g.bD(a.j.Y,g.AE(a.j.videoData)).then(function(d){var e=a.j.N("web_player_vss_pageid_header")?a.j.Y.pageId:void 0,f=a.j.Y.sendVisitorIdHeader?a.j.videoData.visitorData:void 0,k=a.j.Y.N("vss_pings_using_networkless")||a.j.Y.N("kevlar_woffle"),l=a.j.Y.N("allow_skip_networkless");d=$S(b,c,e,f,d);aT(b,d,{token:a.j.videoData.K,uI:a.j.videoData.Ai,mdxEnvironment:a.j.videoData.mdxEnvironment},c,void 0,k&&!l,!1,!0)})};
KJa=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="-"};
vT=function(a,b,c,d){this.videoData=a;this.Y=b;this.Aa=c;this.Oh=d;this.j=void 0};
g.IP=function(a){return LJa(a)()};
LJa=function(a){if(!a.j){var b=g.Ta(function(d){var e=(0,g.R)();d&&631152E6>=e&&(g.S(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.Y.N("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.Aa.cH()}return a.j};
oJa=function(a){if(navigator.connection&&navigator.connection.type)return MJa[navigator.connection.type]||MJa.other;if(g.HC(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
jT=function(a){var b=new KJa;b.C=a.Oh().cc||"-";b.playbackRate=a.Aa.getPlaybackRate();var c=a.Aa.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Sb&&(b.u=1);c=a.Aa.getAudioTrack();c.Fc&&c.Fc.id&&"und"!==c.Fc.id&&(b.B=c.Fc.id);b.connectionType=oJa(a);b.volume=a.Oh().volume;b.muted=a.Oh().muted;b.clipId=a.Oh().clipid||"-";b.j=a.videoData.MK||"-";return b};
g.wT=function(a){g.G.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.eg=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.bj&&(this.j=new pT(this.u),g.H(this,this.j),this.qoe=new g.cT(this.u),g.H(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.eg=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.eg,this.j));this.C=new XS(this.u,function(c){b.ya("h5h",c)});
g.H(this,this.C)};
NJa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.eg){var b;null!=(b=a.B.get(a.eg))&&kT(b.u)}else a.j&&kT(a.j.u)};
OJa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Md&&(b.Md="N");var c=g.IP(b.j);g.bT(b,c,"vps",[b.Md]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);cD(b.j.Y)&&b.ya("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())uT(c.value);else a.j&&uT(a.j);a.dispose()};
PJa=function(a,b){a.j&&JJa(a.j,b)};
QJa=function(a){if(!a.j)return null;var b=qT(a.j,"atr");return function(c){a.j&&JJa(a.j,c,b)}};
RJa=function(a,b,c,d){c.adFormat=c.Ub;var e=b.Aa;b=new pT(new vT(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Nh:function(){return e.Nh()},
FA:function(){return e.FA()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
ax:function(){return e.ax()},
getVisibilityState:function(){return e.getVisibilityState()},
Li:function(){return e.Li()},
cH:function(){e.cH()},
Mx:function(){e.Mx()}},b.Oh));
b.D=d;g.H(a,b);return b};
SJa=function(){this.bq=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN};
TJa=function(){this.u=g.Jw;this.j=[]};
VJa=function(a,b,c){var d=[];for(b=UJa(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};
WJa=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};
XJa=function(a){return a.j.slice(UJa(a,0x7ffffffffffff),a.j.length)};
UJa=function(a,b){a=jc(a.j,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
YJa=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};
ZJa=function(a,b){a.j=a.j.filter(function(c){return!b.has(c)})};
xT=function(a,b,c,d){g.G.call(this);this.S=a;this.ma=b;this.D=c;this.X=d;this.u=NaN;this.J=this.K=this.started=!1;this.B=[];this.Z=new g.L(this.Fk,250,this);g.H(this,this.Z);this.C=new g.L(this.Fk,0,this);g.H(this,this.C);this.j=new TJa};
$Ja=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.X(g.Kw(d.namespace),d):a.X(g.Lw(d.namespace),d)}};
aKa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.HC(a)&&(this.C=.01)};
yT=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
zT=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};
bKa=function(a,b){this.videoData=a;this.j=b};
cKa=function(a,b,c){return kwa(b,c).then(function(){return Mr(new bKa(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.ib,drm:""+ +cE(b),f18:""+ +(0<=b.cj.indexOf("itag=18")),c18:""+ +kA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.j&&(cE(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.X){f.drmsys=b.X.keySystem;var k=0;b.X.j&&(k=Object.keys(b.X.j).length);f.drmst=""+k}return new g.eD(d,f,e)})};
dKa=function(a){this.D=a;this.B=this.u=0;this.C=new uQ(50)};
BT=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 eKa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.ob?c.u=3:g.oE(a)&&(c.u=2);b.kb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=cwa(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===hE(a)&&(c.J=g.cB(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Yr("trident/")||Yr("edge/"))d=g.cB(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B,
d);g.cB(b,"html5_minimum_readahead_seconds")&&(c.B=g.cB(b,"html5_minimum_readahead_seconds"));g.cB(b,"html5_maximum_readahead_seconds")&&(c.X=g.cB(b,"html5_maximum_readahead_seconds"));b.kb("html5_force_adaptive_readahead")&&(c.C=!0);g.cB(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.cB(b,"html5_allowable_liveness_drift_chunks"));g.cB(b,"html5_readahead_ratelimit")&&(c.Z=g.cB(b,"html5_readahead_ratelimit"));switch(hE(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.K=b.kb("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.ob&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(hE(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=AT(this,b);this.Na()};
fKa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.K&&3===cwa(a.videoData)&&--c;return CT(a)*c};
DT=function(a,b){var c=a.Jj(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*CT(a);return b>=c-a};
gKa=function(a,b,c){b=DT(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B};
hKa=function(a,b){b=DT(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b};
CT=function(a){return a.videoData.j?OA(a.videoData.j)||5:5};
AT=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/CT(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.X/CT(a))),b)};
eKa=function(){this.ma=1;this.B=0;this.X=Infinity;this.Z=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.S=!1};
GT=function(a){g.G.call(this);this.Aa=a;this.Y=this.Aa.V();this.C=this.j=0;this.B=new g.L(this.D,1E3,this);this.xa=new ET({delayMs:g.cB(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.X=new ET({delayMs:g.cB(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Da=FT(this,"html5_seek_set_cmt");this.ma=FT(this,"html5_seek_jiggle_cmt");this.ra=FT(this,"html5_seek_new_elem");this.Ra=FT(this,"html5_unreported_seek_reseek");this.K=FT(this,"html5_long_rebuffer_jiggle_cmt");this.S=new ET({delayMs:2E4});
this.J=FT(this,"html5_ads_preroll_lock_timeout");this.Ha=new ET({delayMs:g.cB(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Xs:!this.Y.N("html5_report_slow_ads_as_error")});this.Ia=new ET({delayMs:g.cB(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Xs:!this.Y.N("html5_skip_slow_buffering_ad")});this.va=FT(this,"html5_seek_over_discontinuities");this.Qa=new ET({delayMs:g.cB(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.Z=FT(this,"html5_slow_start_no_media_source");
this.u={};g.H(this,this.B)};
FT=function(a,b){var c=g.cB(a.Y.experiments,b+"_delay_ms");a=a.Y.N(b+"_cfl");return new ET({delayMs:c,Xs:a})};
iKa=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;HT(a,a.va,m&&!e,f&&!k,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
HT=function(a,b,c,d,e,f,k){jKa(b,c)?(a.ud(e,b,k),b.Xs||f()):(b.eC&&b.triggerTimestamp&&!b.B?(c=(0,g.R)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.triggerTimestamp>b.eC,c=b.j&&c-b.j>b.CH||f?b.B=!0:!1):c=!1,c&&(c=Object.assign({},a.Nb(b)),c.wn=k,c.we=e,c.wsuc=d,a.Aa.ya("workaroundReport",c),d&&(b.reset(),a.u[e]=!1)))};
ET=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.CH?1E3:b.CH,d=void 0===b.eC?3E4:b.eC;b=void 0===b.Xs?!1:b.Xs;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.CH=c;this.eC=d;this.Xs=b};
jKa=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};
JT=function(a){g.G.call(this);var b=this;this.Aa=a;this.Y=this.Aa.V();this.videoData=this.Aa.getVideoData();this.policy=new kKa(this.Y);this.Z=new GT(this.Aa);this.playbackData=null;this.Ha=new g.iA;this.J=this.u=this.Ua=this.mediaElement=null;this.j=NaN;this.B=0;this.C=null;this.va=NaN;this.D=this.K=null;this.X=this.S=!1;this.ra=new g.L(function(){lKa(b,!1)},2E3);
this.Ra=new g.L(function(){IT(b)});
this.Da=new g.L(function(){b.Na();b.S=!0;mKa(b)});
this.timestampOffset=0;this.Ia=!0;this.xa=0;this.Qa=NaN;this.ma=new g.L(function(){var c=b.Y.Pc;c.j+=1E4/36E5;c.j-c.B>1/6&&(oua(c),c.B=c.j);b.ma.start()},1E4);
g.H(this,this.Z);g.H(this,this.Ha);g.H(this,this.ra);g.H(this,this.Da);g.H(this,this.Ra);g.H(this,this.ma)};
nKa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new dKa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(ZD(a.videoData)&&a.Ua){var c=a.Ua.Ha.Fg()||0;break a}if(a.videoData.j){c=a.videoData.j.ra;break a}}c=0}return c}),a.u=new BT(a.videoData,a.Y.experiments,function(){return a.yd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.B=a.B||a.videoData.startSeconds||0)};
MT=function(a,b){(a.Ua=b)?KT(a,!0):LT(a)};
oKa=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?kH(a.mediaElement):0,d.C++,3>d.C||g.Ua()-d.J<d.policy.Z||(d.J=g.Ua(),d.u.push(e),50<d.u.length&&d.u.shift(),d.Na())),d=a.u,gKa(d,c,void 0===b?!0:b),hKa(d,c),b&&lKa(a,!0))};
lKa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!DT(c,d)&&c.Hm()?(c.Na(),c.policy.S&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):d<c.videoData.getMinSeekableTime()?(c.Na(),c=Math.min(c.videoData.getMinSeekableTime()+10,c.Jj())):c=NaN;if(!isNaN(c)){if(a.Ua&&b&&(b=a.ra.isActive(),d=a.u.Jj(),(d=ZHa(a.Ua,d-a.rd()))&&!b)){a.ra.start();a.Aa.ya("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.rd()});a.seekTo(d+a.rd(),{pe:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{pe:"playbacktimeline_pegToLive"})}}};
KT=function(a,b){if(a.u&&a.Ua){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){b.Na();var d=AT(b,b.j-1);break b}if(b.policy.C){b.Na();d=AT(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.Na(),b.u=[],b.C=0}else c=!1;c&&(c=a.Aa.Zb,b=fKa(a.u),c.qoe&&(c=c.qoe,g.bT(c,g.IP(c.j),"lra",[b]),c.ya("live-readahead-seconds",{v:b})));b=a.Ua;c=a.u.j;d=a.u;
d=(d.j-1+d.policy.j)*CT(d);a=a.u.policy.J;b.Ye=Math.max(c-1,0);b.D&&(b.D.ma=d);b.ib=a}};
pKa=function(a,b){a.B=b};
NT=function(a){return a.videoData.isLivePlayback&&!!a.videoData.C&&!a.videoData.C.j};
mKa=function(a){qKa(a).then(void 0,function(){LT(a)});
OT(a).then(function(c){rKa(a,c)},function(){LT(a)});
$P(a.Aa);if(2<=a.Y.X){var b=a.Nb();b["native"]=""+ +a.X;b.tgt=""+a.j;a.Aa.ya("startSeek",b)}};
qKa=function(a){if(!a.K)if(a.Ua)if(isFinite(a.j))a.Na(),a.K=a.Ua.seek(a.j-a.timestampOffset);else{a.Na();var b=a.Ua;jS(b);b.D&&AHa(b.D,b.videoTrack.j);g.xp(b.ma);b=b.J;var c=Math.max(b.videoTrack.C.B||0,b.audioTrack.C.B||0);aHa(b.videoTrack);aHa(b.audioTrack);var d=b.j,e;for(e in d.j)ura(d.j[e].index,Infinity);b.j.isManifestless&&(b.C=!0);b.Ua.currentTime=c;b.u=!0;b.D=new zP;a.K=b.D;a.j=a.Ua.getCurrentTime()+a.timestampOffset}else a.K=Ai(a.j-a.timestampOffset);return a.K};
OT=function(a){var b=a.C;b||(a.C=new zP,b=a.C,IT(a));return b};
sKa=function(a,b,c){return isNaN(b)?NaN:g.xh(b,a.getMinSeekableTime(),a.yd(c))};
IT=function(a){if(a.C)if(!a.N("html5_nondash_live_seek_killswitch")&&NT(a)&&a.mediaElement&&0<a.mediaElement.Jh()&&0<jH(a.mediaElement)&&(a.j=sKa(a,a.j,!1)),!a.mediaElement||!tKa(a))a.Ra.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.xa)uKa(a);else if(!a.videoData.isLivePlayback&&a.j>=a.yd()-.1)a.j=a.yd(),a.C.resolve(a.yd()),JP(a.Aa);else try{var c=a.j-a.timestampOffset;a.Na();a.mediaElement.seekTo(c);a.Z.j=
c;a.va=c;a.B=a.j}catch(d){a.Na()}}};
tKa=function(a){if(!a.mediaElement||0===a.mediaElement.Jh()||0<a.mediaElement.Bj())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)&&cE(a.videoData))return b;if(0<=a.j){var c=a.mediaElement.Yw();if(c.length||!b)return tA(c,a.j-a.timestampOffset)}return b};
uKa=function(a){a.C?a.C.resolve(a.mediaElement.getCurrentTime()):a.Na()};
rKa=function(a,b){a.Na();a.D&&(a.D.resolve(b),a.Aa.ea("SEEK_COMPLETE"),2<=a.Y.X&&(b=a.Nb(),b["native"]=""+ +a.X,a.Aa.ya("seekEnd",b)));vKa(a)};
vKa=function(a){a.j=NaN;a.va=NaN;a.C=null;a.K=null;a.D=null;a.S=!1;a.X=!1;a.xa=0;a.ra.stop();a.Da.stop()};
LT=function(a){a.D&&a.Na();vKa(a)};
wKa=function(a){if(a.mediaElement){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ha.T(a.mediaElement,c.value,function(d){var e=a.mediaElement;d=d.type;a.Na();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.C||a.X&&d!==a.j)a.C=new zP,a.va=d,e=e.getCurrentTime(),a.Z.j=e,a.seekTo(d,{pe:"playbacktimeline_mediaElementEvent"}),a.X=!0;break;case "seeked":uKa(a);break;case "loadedmetadata":if(a.Ia){e="ss";d=0;(pE(a.videoData)||a.videoData.liveUtcStartSeconds)&&
(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.j?(d=a.videoData.liveUtcStartSeconds||a.videoData.Tb,e="utc",d=a.yd()-a.getIngestionTime(a.yd())+d):a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Tb?(e="mss",d=a.videoData.Tb+a.rd()):a.videoData.Gp&&(e="stss",d=a.videoData.Gp);var f={};d?(a.seekTo(d,{pe:"playbacktimeline_startSeconds"}),f[e]=d,a.Aa.ya("startSeconds",f),a.Ia=!1):a.videoData.Tb&&(f[e]=
a.videoData.Tb+a.rd(),a.Aa.ya("startSeconds",f));e=!!d}else e=!1;a.N("html5_nondash_live_seek_killswitch")&&!e&&NT(a)&&(a.j=isFinite(a.j)?g.xh(a.j,a.getMinSeekableTime(),a.yd()):a.yd());IT(a);break;case "progress":IT(a)}});
a.D||a.B||a.policy.u||!a.mediaElement.FH()||a.seekTo(.01,{pe:"playbacktimeline_setupMediaElement"})}};
xKa=function(a,b){a.j=b;a.B=b;OT(a).then(function(c){rKa(a,c)},function(){LT(a)})};
kKa=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")};
PT=function(){this.finished=this.started=!1};
QT=function(a){this.j=a;this.iv=xIa(tv(16))};
yKa=function(a,b,c){var d;return g.B(function(e){var f=a.j;f.u||(f.u=new TB(f.j));d=f.u;return e.return(d.decrypt(b,c))})};
RT=function(a){g.G.call(this);this.j=a;this.logger=new g.rQ("onesie");this.Od=new Map;this.u=!1};
BR=function(a,b){return a.Od.has(b)};
GHa=function(a,b){return(a=a.Od.get(b))?a.ON:[]};
WGa=function(a,b,c){a.Od.get(b).Hd=c};
TT=function(a,b){BR(a,b)&&(a.Od.get(b).qe=new iy,ST(a,b))};
zKa=function(a){for(var b=g.r(a.Od),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.Hd||TT(a,c)}};
HHa=function(a,b){var c;return(null==(c=a.Od.get(b))?void 0:c.Gj)||0};
VGa=function(a,b){var c=a.Od.get(b),d=!c.Gj&&!!c.bytesReceived;b=a.Sf(b);return d&&a.u&&void 0!==b?b:(d||c.bytesReceived===c.Gj)&&c.Lz+c.qe.totalLength===c.bytesReceived};
AKa=function(a,b,c){c=void 0===c?!1:c;a.Od.set(b,{qe:new iy,Lz:0,bytesReceived:0,tH:!1,cf:!1,Sf:!1,Em:c,ON:[]})};
UT=function(a){a=g.r(a.Od.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.tH&&(b.Hd&&b.Hd(),b.tH=!1)};
ST=function(a,b){if((b=a.Od.get(b))&&!b.cf){b.cf=!0;b.Hd&&b.Hd();a:{b=g.r(a.Od.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.cf){b=!1;break a}b=!0}if(b&&(a=a.j,a.playerResponse)){var d;null==(d=a.xhr)||d.abort()}}};
BKa=function(a,b){for(var c=!1,d=g.r(a.Od.keys()),e=d.next();!e.done;e=d.next()){e=a.Od.get(e.value);var f=void 0,k=void 0;(null==(f=e)?0:f.Gj)&&0<(null==(k=e)?void 0:k.Gj)&&(e.Em?c=!0:b=!0)}return b&&c};
DKa=function(a,b){AK(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(zK(a,112),zK(a,c<<1^c>>31));AK(a,16,b.JV);AK(a,18,b.eU);AK(a,19,b.dU);AK(a,21,b.d_);AK(a,23,b.PT);AK(a,34,b.visibility);EK(a,38,b.mediaCapabilities,CKa,3);AK(a,39,b.r_);AK(a,40,b.YL)};
EKa=function(a){for(var b=[];tK(a,2);)b.push(sK(a));return{mE:b.length?b:void 0,RI:uK(a,4)}};
CKa=function(a,b){var c;if(b.QI)for(c=0;c<b.QI.length;c++)EK(a,1,b.QI[c],FKa,1);if(b.lE)for(c=0;c<b.lE.length;c++)EK(a,2,b.lE[c],GKa,1)};
GKa=function(a,b){AK(a,1,b.OT);AK(a,2,b.numChannels);AK(a,3,b.RV)};
FKa=function(a,b){AK(a,1,b.Q_);AK(a,3,b.SV);AK(a,4,b.TV);AK(a,11,b.maxFramerate);AK(a,12,b.RV)};
JKa=function(a){return{rZ:uK(a,1),itag:wK(a,3),eP:oBa(a,4,HKa),lmt:uK(a,5),tha:uK(a,7),xtags:wK(a,15),YV:oBa(a,23,IKa)}};
HKa=function(a){return{iv:vK(a,5),BV:!!nBa(a,7)}};
IKa=function(a){return{videoId:wK(a,2)}};
LKa=function(a,b){EK(a,2,b.cU,DKa,3);EK(a,3,b.eN,KKa,3);CK(a,4,b.onesieUstreamerConfig);CK(a,9,b.TI)};
KKa=function(a,b){CK(a,2,b.encryptedOnesieInnertubeRequest);CK(a,5,b.encryptedClientKey);CK(a,6,b.iv);CK(a,7,b.hmac);BK(a,10,b.serializeResponseAsJson);BK(a,13,b.enableAdPlacementsPreroll);BK(a,14,b.enableCompressionResponseOnly)};
MKa=function(a,b){DK(a,1,b.name);DK(a,2,b.value)};
NKa=function(a,b){DK(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)EK(a,2,b.httpHeaders[c],MKa,3);CK(a,3,b.postBody);BK(a,4,b.proxiedByTrustedBandaid);BK(a,6,b.skipResponseEncryption)};
OKa=function(a){return{onesieProxyStatus:uK(a,1),httpStatus:uK(a,2),body:vK(a,4)}};
VT=function(a){this.Tj=a;this.u=!1;this.j=[]};
XT=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.lI;if(b=b.buffer)PKa(a.Tj.od,c,b);else if(b=a.Tj,b.j[c].SM=!0,b=WT(b.od,c),null==b?0:BR(b,c))null==b||ST(b,c)}};
QKa=function(a,b){a.j.push({lI:b,isEncrypted:!1});a.u||XT(a)};
g.RKa=function(a){this.data=a;this.j=0;this.D=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===ZT.length){ZT.length=288;ZT.fill(8);for(a=144;280>a;a++)ZT[a]=255>=a?9:7;$T.length=32;$T.fill(5);aU.length=286;aU.fill(0);for(a=261;285>a;a++)aU[a]=Math.floor((a-261)/4);bU[257]=3;for(a=258;285>a;a++){var b=bU[a-1];b+=1<<aU[a-1];bU[a]=b}bU[285]=258;for(a=0;30>a;a++)cU[a]=3>=a?0:Math.floor((a-2)/2);for(a=dU[0]=1;30>a;a++)b=dU[a-1],b+=1<<cU[a-1],dU[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.VKa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!eU(b,1);switch(eU(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=eU(b,5)+257;var f=eU(b,5)+1;for(var k=eU(b,4)+4,l=0;l<k;l++)d[SKa[l]]=eU(b,3);d=fU(d);for(k=e+f;c.length<k;){l=TKa(b,d);switch(l){case 16:l=c[c.length-1];var m=eU(b,2)+3;break;case 17:l=0;m=eU(b,3)+3;break;case 18:l=0;m=eU(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,UKa(b,c,f));break;case 1:UKa(b,ZT,$T);break;case 0:gU(b,
b.j&7);c=eU(b,16);e=eU(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};
UKa=function(a,b,c){b=fU(b);c=fU(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=bU[n];k+=eU(a,aU[n]);m=TKa(a,c);l=dU[m];l+=eU(a,cU[m]);if(WKa&&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};
TKa=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 gU(a,c&15),c>>4;for(gU(a,7);0>c;)c=b[eU(a,1)-c];return c>>4};
eU=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};
gU=function(a,b){a.j-=b;a.register>>=b};
fU=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};
XKa=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.VKa(new g.RKa(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.Ya(3);break}e.append(k);m.Ya(2);break;case 3:return m.return(ny(e))}})};
ZKa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=YKa[d]||0;a.j&&e>a.j||c.push(d)}return c};
bLa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.u($Ka[c]||[]));b.N("html5_early_media_for_drm")&&a.push.apply(a,g.u(aLa[c]||[]))};
gLa=function(a,b){var c=dE(a),d=a.V().u;if(hU&&!d.j)return hU;for(var e=[],f=[],k={},l=g.r(cLa),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=dLa(p);!q||!q.video||eA(q)&&!c.ra&&q.video.j>c.X||(n?e.push(p):(q=Qx(c,q,d),!0===q?(n=!0,e.push(p)):k[p]=q))}e&&bLa(e,a)}l=g.r(eLa);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=fLa(m))&&p.audio)if(p=Qx(c,p,d),!0===p){f.push(m);break}else k[m]=
p;f&&bLa(f,a)}c.B&&b("orfmts",k);hU={video:e,audio:f};d.j=!1;return hU};
dLa=function(a){var b=hLa[aA[a]],c=iLa[a];if(!c||!b)return null;var d=new Yz(c.width,c.height,c.fps);b=eta(b,d);return new bA(a,b,{video:d,Ob:c.bitrate/8})};
fLa=function(a){var b=hLa[aA[a]],c=jLa[a];return c&&b?new bA(a,b,{audio:new Wz(c.audioSampleRate,c.numChannels)}):null};
kLa=function(a){this.od=a;this.logger=new g.rQ("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new VT(this)};
iU=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].SM||QKa(a.queue,c)};
lLa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.bH(b,a.C).then(function(e){var f=a.od;f.wd("oprr");f.playerResponse=e;f.tG||(f.wu=!1);jU(f)},function(e){a.od.fail(e)});
break;case 2:a.wd("ormk");b=ny(b);a.queue.decrypt(b);break;default:d=!0}a.od.Rh&&a.od.ya("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
mLa=function(a,b,c){var d=oy(b,0);a.od.Rh&&a.od.ya("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).Hr,d=a.B[d]||null)&&(a.Ir(a.j[d].Em?"oafs_r":"ovfs_r"),a.queue.enqueue(d,b,c))};
nLa=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=wra(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]};
kU=function(a){this.callbacks=a;this.j=new iy};
oLa=function(a,b){var c=g.VA(b.Y.experiments,"debug_bandaid_hostname");if(c)b=rP(b,c);else if(c=b.j.get(0)){var d=c;if(b.Y.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,wP(f)<wP(d)&&(d=f);e=g.cB(b.Y.experiments,"html5_onesie_host_racing_cap_ms");0<e&&0!==d.XM&&wP(c)-wP(d)<=e&&(d=c);var k;b.D=null==(k=d)?void 0:k.KV}b=d.location}else b=void 0;if(b){var l;if(k=null==(l=a.CK)?void 0:l.urlQueryOverride)for(l=fy(k),l=g.r(Object.entries(l)),
k=l.next();!k.done;k=l.next())c=g.r(k.value),k=c.next().value,c=c.next().value,b.set(k,c);if(!b.get("id")){l=VB(a.videoId);a=[];if(l)for(l=g.r(l),k=l.next();!k.done;k=l.next())a.push(k.value.toString(16).padStart(2,"0"));b.set("id",a.join(""))}return b}};
pLa=function(a,b){return b.load().then(function(){return oLa(a,b)})};
lU=function(a,b){g.G.call(this);this.Aa=a;this.playerRequest=b;this.Y=this.Aa.V();this.videoData=this.Aa.getVideoData();this.logger=new g.rQ("onesie");this.Rh=2<=this.Y.X;this.NL=this.Y.ih;this.hH=new QT(this.NL.j);this.xhr=null;this.Il=new zP;this.UM=!1;this.playerResponse="";this.AQ=new kU(this);this.Tj=new kLa(this);this.FB=new g.L(this.PM,1E4,this);this.XO=new g.L(this.VV,2E3,this);this.qr="";this.VA=this.iN=!1;this.Jo=this.Aa.yg.fp;this.au="";this.wu=this.N("html5_onesie_wait_for_media_availability");
this.enableCompression=this.tG=this.UA=!1;g.H(this.videoData,this);g.H(this,this.FB);g.H(this,this.XO);a=Fx();b=yB(this.Y.u);this.N("html5_onesie_media_bytes")&&a&&b&&(this.N("html5_onesie_ads")?this.Ve=new Map:(this.Ud=new RT(this),g.H(this,this.Ud)));this.ya("sxhr",{s:""+ +a,a:""+ +(!!window.AbortController||Gx())},!0)};
WT=function(a,b){return a.Ve?(b=b.split(";")[0],a.Ve.get(b)):a.Ud};
qLa=function(a,b,c){var d;return g.B(function(e){if(1==e.j)return a.wd("oprd_s"),KB()?g.A(e,yKa(a.hH,b,c),3):(d=a.hH.decrypt(b,c),e.Ya(2));2!=e.j&&(d=e.u);a.wd("oprd_c");return e.return(d)})};
rLa=function(a){return a.N("html5_onesie_host_probing")||a.Rh};
PKa=function(a,b,c){null!=(a=WT(a,b))&&(b=a.Od.get(b))&&!b.cf&&(jy(b.qe,c),b.bytesReceived+=c.totalLength,b.tH=!0)};
jU=function(a){if(!a.playerResponse)return!1;if(a.UA)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&bE(a.videoData);if(!a.Ve&&a.wu&&a.Ud&&!BKa(a.Ud,b))return!1;if(a.Ve&&a.wu){if(!a.Ve.has(a.qr))return!1;var c=a.Ve.get(a.qr);if(c&&!BKa(c,b))return!1}a.wd("ofr");a.Il.resolve(a.playerResponse);a.FB.stop();return a.UA=!0};
tLa=function(a){a.wd("ogsf_s");var b;if((null!=(b=a.Ve)?b:a.Ud)&&!a.N("html5_onesie_media_capabilities")){b=gLa(a.Aa.getVideoData(),function(d,e){a.ya(d,e)});
var c=sLa(a.Aa);b.video=ZKa(c,b.video);if(b.video.length)return a.wd("ogsf_c"),b;a.ya("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
uLa=function(a){if(!a.El)return{};var b=RR(a.El);b.d=qHa(a.El);b.shost=a.OP;b.ty="o";return b};
ALa=function(a){function b(e){return(d.gh&&!c.N("web_player_no_force_gvi")||!((c.mj?0:c.N("web_player_gvi_wexit")||(g.HC(c)?"TVHTML5"===FC(c)?Cua(c)?c.N("web_player_gvi_wexit_living_room_pangea"):c.N("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===FC(c)?c.N("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===FC(c)||lC(c)?c.N("web_player_gvi_wexit_living_room_simply"):RC(c)||"TV_UNPLUGGED_CAST"===FC(c)?c.N("web_player_gvi_wexit_living_room_unplugged"):c.N("web_player_gvi_wexit_living_room_other"):
1))||d.yj&&d.B.B)?0:"yt"!==c.Da?38===d.Da&&"books"===c.playerStyle||30===d.Da&&"docs"===c.playerStyle||33===d.Da&&"google-live"===c.playerStyle?0:c.N("web_player_gvi_wexit_all_player_styles"):"adunit"!==wE(d)||c.N("web_player_gvi_wexit_adunit"))?vLa(a,d).then(function(){mU(a,d)},function(f){mU(a,d,!0);
throw f;}):wLa(a,d,e)}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.Ia=!0;return xLa(a)?yLa(a,d).then(function(){mU(a,d)},function(e){e=gD(e);
if(fD(e.severity))return mU(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(zLa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
xLa=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.vg)||!b.N("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Da||zLa)return!1;b=b.ih;if(!b||!b.j)return a.handleError(new g.eD("onesie.unavailable.hotconfig",{key:"0"})),!1;b={};return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.eD("html5.missingapi",b)),!1):!0};
BLa=function(a){var b=KH();eya(b,a);return g.RJ(b,IAa())};
yLa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,w,x,y;return g.B(function(z){if(1==z.j)return b.fetchType="onesie",c=iBa(b,a.getPlayerSize(),a.getVisibilityState()),d=new lU(a,c),g.A(z,d.fetch(),2);e=z.u;f={player_response:e};b.Ia=!1;k=a.V();l=k.N("html5_onesie_ads");if(!l)b.xk=d.Ud;else if(l&&d.Ve)for(m=g.r(d.Ve.keys()),n=m.next();!n.done;n=m.next())p=n.value,(q=d.Ve.get(p))&&a.yg.Ut.j.set(p,q,180);if(l){var E=d.ot;WS(a.yg).ot=E}else b.ot=d.ot;g.VD(b,f,!0);if(b.Ia||TD(b))return z.return(Promise.resolve());
l?yFa(a.yg.Ut.j):b.xk=void 0;t={};w="onesie.response";x=0;b.errorCode?(w="auth",t.ec=b.errorCode,t.ed=b.errorDetail,t.es=b.Fj||"",x=2):(t.successButUnplayable="1",t.disposed=""+ +b.isDisposed(),t.afmts=""+ +/adaptiveFormats/.test(e),t.cpn=b.clientPlaybackNonce);y=new g.eD(w,t,x);return z.return(Promise.reject(y))})};
vLa=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.Ya(4);break}if(!(0<f)){t.Ya(5);break}return g.A(t,Hi(5E3),6);case 6:k=new g.Is("Retrying OnePlatform request",{attempt:f}),g.Sv(k);case 5:return g.va(t,7),g.A(t,CLa(a,b),9);case 9:return t.return();case 7:l=g.xa(t);m=gD(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(fD(m.severity)){t.Ya(4);break}case 3:f++;t.Ya(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q=c?2:1,t.return(Promise.reject(new g.eD(p,{backend:"op"},q)))}})};
CLa=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.bD(c,g.AE(b)).then(function(e){return DLa(a,b,e)},void 0)):d.return(DLa(a,b,g.AE(b)))})};
DLa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,w,x,y,z,E,I,K,P,aa;return g.B(function(J){if(1==J.j)return d=BLa(c),e=iBa(b,a.getPlayerSize(),a.getVisibilityState()),f=g.AJ(ELa),k=g.AE(b),l=(0,g.R)(),m=!1,n="empty",p=0,a.wd("ps_s"),q=function(qa){2===qa.readyState&&a.wd("ps_c")},t={Yt:q},g.A(J,g.MH(d,e,f,void 0,t),2);
w=J.u;a.wd("ps_r");if(b.isDisposed())return J.return();w?w.error?(m=!0,n="esf:"+w.error.message,p=w.error.code):w.errorMetadata&&(m=!0,n="its",p=w.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.qb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.O("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.Qa?"1":"0",is_mdx:b.isMdxPlayback?"1":
"0",mdx_ctrl:b.vg||"",token_eq:k===g.AE(b)?"1":"0"},I="manifest.net.connect",429===p?(I="auth",x=2):200<p&&(I="manifest.net.badstatus",400===p&&(x=2)),J.return(Promise.reject(new g.eD(I,E,x)));b.Ia=!1;g.VD(b,{raw_player_response:w},!0);if(b.errorCode)return K={ec:b.errorCode,ed:b.errorDetail,es:b.Fj||""},J.return(Promise.reject(new g.eD("auth",K,2)));if(!b.Ia&&!TD(b))return P=b.isAd()?"auth":"manifest.net.retryexhausted",aa=b.isAd()?2:1,J.return(Promise.reject(new g.eD(P,{successButUnplayable:"1",
hasMedia:nE(b)?"1":"0"},aa)));g.ua(J)})};
wLa=function(a,b,c){var d,e,f,k,l,m,n,p,q,t,w;return g.B(function(x){switch(x.j){case 1:d=XAa(a.V(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),e=function(){return!0},f=function(y){y=gD(y);
if(fD(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.Ya(4);break}n=d;if(!(0<m)){x.Ya(5);break}return g.A(x,Hi(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},k||(p.recover="embedded"),n=qr(d,p);case 5:return g.A(x,FLa(b,n).then(e,f),7);case 7:if(q=x.u)return x.return();m++;x.Ya(2);break;case 4:t=k?"auth":"manifest.net.retryexhausted";w=k?2:1;if(!k&&1E-4>Math.random())try{g.Sv(new g.Is("b/152131571",btoa(d)))}catch(y){}return x.return(Promise.reject(new g.eD(t,{backend:"gvi"},w)))}})};
FLa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,w,x,y;return g.B(function(z){if(1==z.j)return a.fetchType="gvi",c=a.V(),(f=YAa(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 I=0,K=((0,g.R)()-m).toFixed();K={backend:"gvi",rc:""+E,rt:K};var P="manifest.net.connect";429===E?(P="auth",I=2):200<E&&(P="manifest.net.badstatus",400===E&&(I=2));return Promise.reject(new g.eD(P,K,I))}},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.Ia=!1;t=mr(q.responseText);g.VD(a,t,!0);if(a.errorCode)return w={ec:a.errorCode,ed:a.errorDetail,es:a.Fj||""},z.return(Promise.reject(new g.eD("auth",w,2)));if(!a.Ia&&!TD(a))return x=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,z.return(Promise.reject(new g.eD(x,{successButUnplayable:"1"},y)));g.ua(z)})};
mU=function(a,b,c){c=void 0===c?!1:c;var d;g.B(function(e){d=a.V();return c&&(!g.TC(d)||"embedded"!==wE(b))||b.Bq||"adunit"!==wE(b)&&(g.HC(d)||IC(d)||g.zC(d)||g.yC(d)||"WEB_CREATOR"===FC(d))?e.return():d.N("html5_use_oauth_callback")?e.return(g.bD(d,g.AE(b)).then(function(f){return GLa(a,b,f)})):e.return(GLa(a,b,g.AE(b)))})};
GLa=function(a,b,c){var d,e,f,k;return g.B(function(l){if(1==l.j){g.va(l,2);d=BLa(c);var m=b.V();g.qs.getInstance();var n={context:g.oK(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===wE(b)&&(n.isAdPlayback=!0);m.embedConfig&&(n.serializedThirdPartyEmbedConfig=m.embedConfig);m.xk&&(n.showContentOwnerOnly=!0);g.rs(0,141)&&(n.autonavState=g.rs(0,140)?"STATE_OFF":"STATE_ON");if(g.UC(m)){m=g.rs(0,65);m=null!=m?!m:!1;var p=!!g.gw("yt-player-sticky-caption");
n.captionsRequested=m&&p}e=n;f=g.AJ(HLa);a.wd("wn_s");return g.A(l,g.MH(d,e,f),4)}if(2!=l.j)return k=l.u,a.wd("wn_r"),k&&!k.error&&g.VD(b,{raw_watch_next_response:k},!1),g.wa(l,0);g.xa(l);g.ua(l)})};
ILa=function(a){function b(){a.wd("virc");Bx("virc",void 0,"video_to_ad")}
a.wd("vir");Bx("vir",void 0,"video_to_ad");var c=ALa(a);c.then(b,b);return c};
g.qU=function(a,b,c,d,e,f,k,l,m,n){m=void 0===m?new g.SD(a):m;n=void 0===n?!0:n;g.iv.call(this);var p=this;this.Y=a;this.playerType=b;this.Gb=c;this.Gy=d;this.getVisibilityState=f;this.visibility=k;this.yg=l;this.videoData=m;this.RT=n;this.logger=new g.rQ("VideoPlayer");this.jw=new aKa(this.Y);this.Zd=null;this.du=new MS;this.pm=null;this.Mg=new VS(this.Y,this.Gy,this);this.RM=!0;this.mediaSource=this.Ua=null;this.Zi=[];this.Sm=new PT;this.Oe=this.Ux=null;this.Tm=new PT;this.LB=null;this.IF=this.Nt=
!1;this.MB=NaN;this.playerState=new g.mH;this.OB=[];this.Tu=new g.iA;this.Ej=new SS(this);this.mediaElement=null;this.Pq=new g.L(this.xX,15E3,this);this.MH=this.sB=!1;this.lr=NaN;this.Jz=!1;this.jE=0;this.kE=new g.L(this.PH,4500,this);this.kx=!1;this.bB=NaN;this.jI=new vQ(new Map([["bufferhealth",function(){var q=p.Uc;return q.mediaElement?kH(q.mediaElement):0}],
["bandwidth",function(){return p.fF()}],
["networkactivity",function(){return p.Y.schedule.X}],
["livelatency",function(){return p.isAtLiveHead()&&p.Jc()?nU(p):NaN}],
["rawlivelatency",function(){return nU(p)}]]));
this.sx=0;this.loop=!1;this.playbackRate=1;this.wN=0;this.Uc=new JT(this);this.mL=!1;this.NB=[];this.fG=this.dP=0;this.IH=this.FQ=!1;this.ZD=new g.L(this.PU,0,this);this.kd=null;this.fO=new g.L(this.VT,0,this);this.TB=new g.L(this.BP,3E4,this);this.mW=[this.Tu,this.ZD,this.Pq,this.TB,this.kE,this.jI,this.fO];this.Ne=function(){var q=p.Zb;q.u.Y.Vc||3===q.u.Aa.getVisibilityState()||(q.u.Y.Vc=!0);NJa(q);var t=q.C;t.J&&0>t.u&&3!==t.j.Aa.getVisibilityState()&&YS(t);q.qoe&&(q=q.qoe,q.Ha&&0>q.B&&q.j.Y.Vc&&
iT(q));p.Ua&&tS(p);p.Y.Kk&&!p.videoData.backgroundable&&p.mediaElement&&!p.Bf()&&(p.isBackground()&&p.mediaElement.sz()?(p.ya("bgmobile",{suspend:1}),p.Wm(!0)):p.isBackground()||oU(p)&&p.ya("bgmobile",{resume:1}))};
this.Bg=new xT(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.Kw("endcr")||g.V(p.playerState,32)||JP(p);
e(q,t,p.playerType)});
g.H(this,this.Bg);g.H(this,this.Uc);JLa(this,m);this.videoData.subscribe("dataupdated",this.hZ,this);this.videoData.subscribe("dataloaded",this.wE,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ya,this);this.videoData.subscribe("ctmpstr",this.BH,this);KLa(this);UEa(this.Ne);this.visibility.subscribe("visibilitystatechange",this.Ne);this.videoData.Ha&&LLa(this);!owa(this.videoData)&&twa(this.videoData)||MLa(this);1===this.playerType&&pU.isActive()&&
this.TB.start();this.videoData.Qd=this.getUserAudio51Preference();this.N("html5_generate_content_po_token")&&NLa(this)};
JLa=function(a,b){if(2===a.playerType||a.Y.Mk)b.kJ=!0;var c=pva(b.Ub,b.Zr,a.Y.j,a.Y.B);c&&(b.adFormat=c);2===a.playerType&&(b.Al=!0);if(a.isFullscreen()||a.Y.j)c=g.gw("yt-player-autonavstate"),b.autonavState=c||(a.Y.j?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&rU(a,b.endSeconds)};
KLa=function(a){!a.Zb||a.Zb.isDisposed();a.Zb=new g.wT(new vT(a.videoData,a.Y,a,function(){return a.yg.Oh()}))};
sF=function(a){return a.mediaElement&&a.mediaElement.Pp()?a.mediaElement.Ke():null};
sU=function(a){if(a.videoData.isValid())return!0;a.Vf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
LLa=function(a){var b=a.yg.Kc();a.videoData.Wl=a.videoData.Wl||(null==b?void 0:b.iF());a.videoData.Xl=a.videoData.Xl||(null==b?void 0:b.jF())};
g.HP=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.Zb;YS(c.C);c.qoe&&iT(c.qoe)}a.Nt=b;!sU(a)||a.Sm.started?g.HC(a.Y)&&a.videoData.isLivePlayback&&a.Sm.started&&!a.Sm.isFinished()&&!a.Nt&&a.wE():(a.Sm.start(),b=a.Zb,g.IP(b.u),b.qoe&&rJa(b.qoe),a.wE())};
OLa=function(a){var b=a.videoData;ILa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=gD(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Vf("auth",2,unescape(a.videoData.errorReason),dD(c.details),a.videoData.errorDetail,a.videoData.Fj||void 0):a.handleError(c))})};
XEa=function(a,b){a.kd=b;a.Ua&&XHa(a.Ua,new g.yS(b))};
PLa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Zi=g.cc(a.videoData.ra)),nE(a.videoData)){a.Gb.tick("bpd_s");tU(a).then(function(){a.Gb.tick("bpd_c");if(!a.isDisposed()){a.Nt&&(a.Vb(oH(oH(a.playerState,512),1)),oU(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&rU(a,c.endSeconds);a.Sm.finished=!0;uU(a,"dataloaded");a.Tm.started&&vU(a);jJa(a.Mg,a.Oe)}});
a.N("html5_log_media_perf_info")&&a.ya("loudness",{v:a.videoData.Pd.toFixed(3)},!0);var b=uwa(a.videoData);b&&a.ya("playerResponseExperiment",{id:b},!0);a.iE()}else uU(a,"dataloaded")};
tU=function(a){wU(a);a.Oe=null;var b=cKa(a.Y,a.videoData,a.Bf());a.Ux=b;a.Ux.then(function(c){QLa(a,c)},function(c){a.isDisposed()||(c=gD(c),a.visibility.isBackground()?(xU(a,"vp_none_avail"),a.Ux=null,a.Sm.reset()):(a.Sm.finished=!0,a.Vf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",dD(c.details))))});
return b};
TS=function(a){tU(a).then(function(){return oU(a)});
g.sH(a.playerState)&&a.playVideo()};
QLa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Oe=b;nKa(a.Uc,a.Oe);if(a.videoData.isLivePlayback){var c=(a.N("html5_onesie_ads")?zFa(a.yg.Ut,a.videoData.videoId):!!a.videoData.xk)||a.Ua&&!isNaN(a.Ua.Da);c=a.N("html5_onesie_live")&&c;0<a.videoData.Tb&&!ZD(a.videoData)||c||a.seekTo(a.yd(),{pe:"videoplayer_playbackData"})}a.videoData.C.j?a.Ua?g.Sv(Error("Duplicated Loader")):(c=g.cB(a.Y.experiments,"html5_onesie_defer_content_loader_ms"),a.N("html5_onesie_ads")&&c&&g.Tb(a.Zi,"ad")&&
zFa(a.yg.Ut,a.videoData.kR)?g.Br(function(){a.isDisposed()||a.Ua||yU(a)},c):yU(a)):!a.videoData.C.j&&BE(a.videoData)&&a.yB(new lR(a.videoData.videoId||"",4));
zU(a);$Ia(b).then(function(){a.Ou();AU(a)})}};
BU=function(a){a.mediaElement&&a.mediaElement.Ls();g.HP(a);sU(a)&&!g.V(a.playerState,128)&&(a.Tm.started||(a.Tm.start(),a.Vb(oH(oH(a.playerState,8),1))),vU(a))};
vU=function(a){a.isDisposed();if(!a.Tm.isFinished()&&a.Sm.isFinished()&&!g.V(a.playerState,128)&&!a.Zi.length){if(!a.Bg.started){var b=a.Bg;b.started=!0;b.Fk()}if(!a.ll()){a.Ua&&(b=a.Ua.timing,a.IF=!!b.u&&!!b.D);a.Tm.isFinished()||(a.Tm.finished=!0);b=a.N("html5_onesie_live")&&a.Ua&&!isNaN(a.Ua.Da);!a.videoData.isLivePlayback||0<a.videoData.Tb&&!ZD(a.videoData)||b||(a.seekTo(Infinity,{pe:"videoplayer_readying"}),a.isBackground()&&(a.MH=!0));b=a.Zb;if(b.qoe){b=b.qoe;b.j.videoData.Bk&&gT(b,b.j.videoData.Bk);
if(b.j.videoData.isLivePlayback){var c=b.j.videoData.j;ZD(b.j.videoData)&&gT(b,"manifestless");c&&OA(c)&&gT(b,"live-segment-"+OA(c).toFixed(1))}"yt"!==b.j.Y.Da&&(b.u.len=[b.j.videoData.lengthSeconds.toFixed(2)]);b.j.videoData.cotn&&!BE(b.j.videoData)&&nJa(b,!0);cD(b.j.Y)&&(c=CEa())&&b.ya("cblt",{m:c});b.j.videoData.isDaiEnabled()?gT(b,b.j.videoData.enableServerStitchedDai?"ssdai":"csdai"):b.j.videoData.yH&&gT(b,"dsdai")}a.ea("playbackready",a);Ax("pbr",a.Gb.timerName)||(a.Gb.tick("pbr"),Bx("pbr",
void 0,"video_to_ad"))}}};
JP=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();b=b?new g.mH(14):new g.mH;a.Vb(b)};
rU=function(a,b){a.pm&&CU(a);a.pm=new g.Iw(1E3*b,0x7ffffffffffff);a.pm.namespace="endcr";a.addCueRange(a.pm)};
CU=function(a){a.removeCueRange(a.pm);a.pm=null};
EU=function(a,b,c,d){a.videoData.u=c;d&&uS(a,b,d);d=(d=g.DU(a))?d.Yb():"";a.Zb.Sx(new VIa(a.videoData,c,b,d));c=a.Mg;c.B=0;c.j=0;a.ea("internalvideoformatchange",a.videoData,"m"===b)};
g.DU=function(a){var b=FU(a);return Lx(b)||!a.Oe?null:g.Qb(a.Oe.j.videoInfos,function(c){return b.C(c)})};
uS=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.Kx(new VIa(a.videoData,c,b,""));d||a.ea("internalaudioformatchange",a.videoData,"m"===b)}};
vS=function(a,b){b&&a.ud(new g.eD("qoe.restart",b));a.N("html5_reloads_report_as_buffering")&&a.Vb(oH(a.playerState,2048));GU(a);b=a.videoData.j&&Vx(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Ua&&LHa(a.Ua),RS(a)):(a.N("html5_reloads_report_as_buffering")||a.Vb(oH(a.playerState,16)),oU(a),g.sH(a.playerState)&&a.playVideo())};
FU=function(a){if(a.Oe){var b=a.Mg;var c=a.Oe;a=a.xt();if(b.Aa.Co().isInline())var d=RD;else b.N("html5_exponential_memory_for_sticky")?d=.5>eC(b.Y.Pc,"sticky-lifetime")?"auto":Mx[RA()]:d=Mx[RA()],d=g.Kx("auto",d,!1,"s");if(Lx(d)){d=WIa(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;vma()&&!g.HC(b.Y)&&cA(c.j.videoInfos[0])&&
(f=Math.min(f,g.Jx.large));f=new Ix(0,f,!1,"o");d=e.call(d,f);e=d.compose;f=4320;!b.Y.isMobile||g.wC(b.Y)||es()||b.Y.N("hls_for_vod")||(f=b.Y.N("mweb_default_hd720")?g.Jx.hd720:g.Jx.medium);(k=g.cB(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.vg&&!c.videoData.Sd&&(f=Math.min(f,k));k=g.cB(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;k&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,k));if(l=k=g.cB(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=
g.r(l.videoInfos),m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,k));(k=g.cB(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,k));f=hJa(b,c,f);f=new Ix(0,4320===f?0:f,!1,"d");d=e.call(d,f).compose(gJa(b)).compose(iJa(b,c.videoData,c)).compose(fJa(b,c)).compose(ZIa(b,c)).compose(YIa(b,c))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(fJa(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&(d=d.compose(ZIa(b,c)));
b.N("html5_varispeed_playback_rate")&&(d=d.compose(YIa(b,c)));b=c.videoData.Yr.compose(d).compose(c.videoData.xQ).compose(a)}else b=RD;return b};
sLa=function(a){var b=a.Mg;a=a.videoData;var c=gJa(b);b.N("html5_disable_client_autonav_cap_for_onesie")||c.compose(iJa(b,a));return c};
g.RLa=function(a,b,c){a.videoData.Yr=b;if(a.Oe&&c){c=a.Mg;var d=a.Oe;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=Ota(c.Y.u,d.j.videoInfos,c.playbackRate),0!==b.j&&e<b.j&&c.Aa.setPlaybackRate(1));var k,l;d=(null==(k=d.videoData.u)?void 0:null==(l=k.video)?void 0:l.j)||0;g.fw("yt-player-quality",{quality:g.Jx[Nx(b)],previousQuality:d},31104E3);c.Y.schedule.policy.C=480<=RA();if(c.N("html5_exponential_memory_for_sticky")){b=
c.Y.Pc;k=1;var m=void 0===m?!1:m;qua(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Cm["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Cm["sticky-lifetime"]=0);m&&.0625<eC(b,"sticky-lifetime")&&(k=2*b.Cm["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/k);b.Cm["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.fw("yt-player-performance-cap",m,604800)}else g.hw("yt-player-performance-cap")}}}zU(a)};
NLa=function(a){a.videoData.videoId?SLa(a.yg,a.videoData.videoId).then(function(b){a.videoData.x6=b}):a.ya("pomvid",{})};
zU=function(a){if(!a.isDisposed()&&!g.V(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)AU(a);else{var b=FU(a),c=a.videoData;a:{var d=a.videoData.Cb;if(b.j){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.yf(),l=g.Jx[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.Xa=d;EU(a,b.reason,TLa(a,a.videoData.Xa))}if(a.N("html5_check_unstarted")?g.sH(a.playerState):a.Jc())a.Uc.Ia=!1,a.playVideo()}};
AU=function(a){if(a.videoData.C&&a.videoData.C.j){var b=FU(a);if(a.Ua&&(a=a.Ua,!a.isDisposed()&&!a.u.j.equals(b)&&a.videoTrack)){var c=a.u.j;PHa(a,jGa(a.u,b));kS(a);var d=a.u.j.isLocked()&&"m"===b.reason&&a.u.Z,e=a.policy.sj&&"l"===b.reason&&OR(a.videoTrack);b=c.j>b.j&&"b"===b.reason;c=a.u.Va&&!zA();d||e||b||c?vS(a.Aa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.xp(a.ma)}}};
tS=function(a){a.N("html5_update_constraint")?AU(a):zU(a)};
VLa=function(a){var b=ULa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Fc.getName()===b})};
ULa=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}};
yU=function(a){qta(a.videoData.j,{cpn:a.videoData.clientPlaybackNonce,c:a.Y.deviceParams.c,cver:a.Y.deviceParams.cver});var b=a.Y,c=a.videoData,d=new g.TBa(b),e=SBa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,ql:c.ql});d.D=e;d.ma=g.cB(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.Dc=g.cB(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Or=g.cB(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.pc=g.cB(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Pr=g.cB(b.experiments,"html5_subsegment_readahead_min_load_speed");d.nh=g.cB(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Qr=g.cB(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Kq=b.N("html5_restrict_streaming_xhr_on_sqless_requests");d.Gk=g.cB(b.experiments,"html5_max_headm_for_streaming_xhr");d.Nk=b.N("html5_pipeline_manifestless_allow_nonstreaming");d.Yl=b.N("html5_prefer_server_bwe3");d.ph=1024*g.cB(b.experiments,"html5_video_tbd_min_kb");d.Aj=b.N("html5_last_slice_transition");
d.Jr=b.N("html5_store_xhr_headers_readable");d.Hb=g.cB(b.experiments,"html5_probe_primary_delay_base_ms")||d.Hb;d.dg=b.N("html5_no_placeholder_rollbacks");d.Nr=b.N("html5_subsegment_readahead_enable_mffa");b.N("html5_allow_video_keyframe_without_audio")&&(d.ra=!0);d.Hp=b.N("html5_webm_init_skipping");d.pd=b.N("html5_abs_buffer_health");d.zj=b.N("html5_interruption_resets_seeked_time");d.nf=g.cB(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.nf;d.Qd=b.N("html5_explicitly_dispose_xhr");
d.Jq=b.N("html5_restart_on_unexpected_detach");d.xe=g.cB(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Ei=g.cB(b.experiments,"html5_max_drift_per_track_secs");d.Wb=g.cB(b.experiments,"html5_static_abr_resolution_shelf");d.ej=!b.N("html5_encourage_array_coalescing");d.xj=b.N("html5_filter_non_efficient_formats_for_safari");d.Yr=b.N("html5_format_hybridization");d.Vh=b.N("html5_abort_before_separate_init");d.Mq=b.N("html5_serialize_server_stitched_ad_request");d.Zf=b.N("html5_never_pause_appends");
d.Jk=g.cB(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.bj=b.N("html5_attach_po_token_to_bandaid");b.N("html5_allow_video_keyframe_without_audio")&&(d.ra=!0);0<g.cB(b.experiments,"html5_max_redirect_response_length")&&(d.Pf=g.cB(b.experiments,"html5_max_redirect_response_length"));e=g.cB(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.Bq=e);d.Tb=b.N("html5_rewrite_timestamps_for_webm");d.Da=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.Fg()===e.policy.B?d.va=10:d.va=c.minReadAheadMediaTimeMs/1E3||d.va,d.Dd=c.readAheadGrowthRateMs/1E3||d.Dd);Nm&&(d.xa=41943040);d.Va=!EA();g.HC(b)||!EA()?(e=b.experiments,d.K=8388608,d.X=524288,d.cj=5,d.qb=2097152,d.Ha=1048576,d.Qp=1.5,d.Mk=!1,d.Ob=4587520,bs()&&(d.Ob=786432),d.B*=1.1,d.C*=1.1,d.Sb=!0,d.xa=d.K,d.ub=d.X,d.Yf=e.kb("persist_disable_player_preload_on_tv")||e.kb("persist_disable_player_preload_on_tv_for_living_room")||!1):b.isMobile&&
(d.B*=1.3,d.C*=1.3);g.mA&&Yr("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.K=20971520,d.X=1572864,e&&(d.Ob=812500,d.bd=1E3,d.Gp=5,d.Ha=2097152));!b.N("html5_disable_firefox_init_skipping")&&g.Ex&&(d.Sb=!0);b.supportsGaplessAudio()||(d.yk=!1);nC&&(d.Qa=!0);d.Fb=b.N("html5_peak_shave");"onesie"===c.fetchType&&b.N("html5_disable_peak_shave_for_onesie")&&(d.Fb=!1);var f;e=null==(f=c.j)?void 0:Vx(f);if(ZD(c)){d.Pc=!0;d.yj=!0;d.Da=!0;d.Tb=!0;d.gr=!0;if("ULTRALOW"===c.latencyClass||"LOW"===
c.latencyClass&&!b.N("html5_disable_low_pipeline"))d.Ak=2,d.Hk=4;d.mm=c.defraggedFromSubfragments;c.oe&&(d.Zl=!0);g.oE(c)&&(d.Ra=!1);d.nj=g.SC(b)}c.isAd()&&(d.Cb=0,d.Vd=0);bwa(c)&&(d.Ia=!0,b.N("html5_aggressive_timeout_for_streaming_xhr")&&(d.bd=400,d.Lb*=3,d.Bk=2,d.Qf=3,d.ih=1.4));d.fb=b.N("html5_enable_subsegment_readahead_v3")||b.N("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.ib=cD(b);d.Z=d.ib&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||2<=b.X);js()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&
!b.N("html5_disable_move_pssh_to_moov")&&e&&(d.Sb=!1);var k=0;b.N("html5_live_use_alternate_bandwidth_window_sizes")&&(k=b.schedule.policy.u,c.isLivePlayback&&(k=g.cB(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=ZD(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=jua(f)}d.Zf=c.isLivePlayback;switch(hE(c)){case 21530001:d.Th=b.N("html5_live_smoothly_extend_max_seekable_time");d.fb=!0;"LOW"===c.latencyClass?d.ma=g.cB(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.ma=g.cB(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.dg=
!0;break;case 2153E4:d.fb=!1}c.Cf()&&(d.mj=g.cB(b.experiments,"html5_live_byterate_factor_for_readahead")||1);d.Qa=d.Qa||c.Mv;d.Ub=c.Ha;2<=b.X&&(d.ob=!0);c.Ha&&!e&&b.N("html5_hack_gapless_init")&&(d.gh=!0);(e=g.cB(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Ha&&c.isAd()&&(d.B*=e,d.C*=e);BE(c)&&(d.u=c.videoId,b.N("html5_wofflec")&&(d.Pd=!0),b.N("woffle_pending_promises_killswitch")&&(d.Wa=!1),d.pd=!0,d.Fp=4,c.Ul&&0<c.Ul.length&&(d.Vc=c.Ul));d.sj=c.dg;d.S=UA(b,{},c.C||void 0);c=480<=RA();
e=g.cB(b.experiments,"html5_deadzone_multiplier")||1;d.B*=e;d.C*=e;if(e=g.cB(b.experiments,"html5_request_sizing_multiplier"))d.Rp=e;Sx(b.u,Tx.BITRATE)&&(d.Ob=NaN);b.u.B&&(d.vj="; "+Tx.EXPERIMENTAL.name+"=allowed");c&&(d.Wb=0);b.N("html5_prefer_low_quality_audio_means_64k")&&nC&&(d.Xl=!0);b.N("debug_html5_random_stun_format")&&(d.fh=!0);b.N("html5_log_audio_abr")&&(d.zk=!0);b=a.getAudioTrack();b=b.Fc.isDefault?void 0:b;NS(a.du);if(a.N("html5_onesie_ads"))a:{c=a.yg.Ut;if(e=a.videoData.videoId)if(f=
c.j.get(e)){c.j.remove(e);c=f;break a}c=void 0}else c=a.videoData,e=c.xk,delete c.xk,c=e;a.Ua=new g.gS(a,a.Y.schedule,d,a.videoData.j,a.videoData.C,FU(a),b,a.videoData.enableServerStitchedDai,c,a.videoData.xa);b=WLa(a)?!0:a.Nt&&g.HC(a.Y)&&a.videoData.isLivePlayback;a.Ua.initialize(a.getCurrentTime(),FU(a),b);a.videoData.probeUrl&&(a.Ua.Ia=a.videoData.probeUrl);!a.Zi.length&&!a.Nt||!a.N("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||HU(a,!1);MT(a.Uc,a.Ua);a.kd&&XHa(a.Ua,new g.yS(a.kd));
g.CE(a.videoData)&&(a.Ua.policy.wj=2);b=a.videoData;if(g.CE(b)){c=b.j.j;if(e=!!c[b.u.id])b=c[b.u.id].u,e=!!b.j.get("ck")&&!!b.j.get("civ");b=e}else b=!1;(b||BE(a.videoData)&&d.Pd)&&a.ya("wofc",{},!0)};
wU=function(a){a.Ua&&(a.Ua.dispose(),a.Ua=null,MT(a.Uc,null));GU(a)};
GU=function(a){if(a.mediaSource){if(a.Ua){var b=ZD(a.videoData)&&a.videoData.oe&&!a.videoData.isAd();nS(a.Ua,b)}a.mediaSource.dispose();a.mediaSource=null}};
XLa=function(a){if(a.mediaSource)return a.mediaSource.zx;a:{try{if(g.$r()&&a.videoData.YF()){var b=a.mediaElement;b.B&&(b.B.dispose(),b.B=void 0)}var c=a.mediaElement.tq()}catch(d){if(US(a.Ej,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Vf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}DP(a,c)}return a.mediaSource?a.mediaSource.zx:null};
DP=function(a,b){YLa(a);a.mediaSource=b;Ssa(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){var d=a.getDuration();!d&&ZD(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,c>a.mediaSource.getDuration()&&a.mediaSource.gk(c)):a.mediaSource.gk(d);var e=a.Ua,f=a.mediaSource;e.qn&&(jS(e),e.qn=!1);MHa(e);if(!f.j&&!f.u){var k=e.videoTrack.Gf(),l=k?k.info.j:e.videoTrack.j,m=e.audioTrack.Gf(),n=l.info.mimeType+e.policy.vj,p=(m?m.info.j:e.audioTrack.j).info.mimeType,q,t=null==(q=f.mediaSource)?
void 0:q.addSourceBuffer(p),w,x="fakesb"===n.split(";")[0]?void 0:null==(w=f.mediaSource)?void 0:w.addSourceBuffer(n);f.We&&(f.We.webkitSourceAddId("0",p),f.We.webkitSourceAddId("1",n));var y=new yA(t,f.We,"0",$z(p),!1),z=new yA(x,f.We,"1",$z(n),!0);f.j=y;f.u=z;g.H(f,y);g.H(f,z)}DR(e.videoTrack,f.u||null);DR(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.jv(f.j,e.Va,e);g.jv(f.u,e.Va,e);try{e.Kh()}catch(E){g.S(E)}a.ea("mediasourceattached")}}catch(E){g.Sv(E),a.handleError(new g.eD("fmt.unplayable",
{msi:"1",ename:E.name},1))}})};
YLa=function(a){a.Ua?a.Ua.seek(a.getCurrentTime()-a.rd()).Fh(function(){}):yU(a)};
RS=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.Ua&&a.Ua.zq(),a.Ua&&a.Ua.isDisposed()&&wU(a),a.N("html5_reloads_report_as_buffering")&&a.Vb(oH(a.playerState,2048)),a.ea("newelementrequired"),b?g.A(c,tU(a),2):c.Ya(2);g.V(a.playerState,8)&&a.playVideo();g.ua(c)})};
REa=function(a,b){a.ya("newelem",{r:b});RS(a)};
IU=function(a){a.Gb.D.JG();g.V(a.playerState,32)||(a.Vb(oH(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Qb()};
$P=function(a){g.V(a.playerState,32)?(a.Vb(qH(a.playerState,16,32)),a.ea("endseeking",a)):g.V(a.playerState,2)||a.Vb(oH(a.playerState,16));a.Gb.D.NG(a.videoData,g.V(a.playerState,4))};
MLa=function(a){var b=a.videoData.errorDetail;a.Vf("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Fj||void 0)};
uU=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
ZLa=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.Tu.T(a.mediaElement,c.value,a.gH,a);a.Y.wk&&a.mediaElement.Pp()&&(a.Tu.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.EW,a),a.Tu.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.FW,a))};
$La=function(a){window.clearInterval(a.MB);JU(a)||(a.MB=g.Cr(function(){return JU(a)},100))};
JU=function(a){var b=a.mediaElement;b&&a.sB&&!a.videoData.fb&&!Ax("vfp",a.Gb.timerName)&&2<=b.Jh()&&!b.Sf()&&0<vA(b.fg())&&a.Gb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.fb&&0<b.getDuration()&&(!Ax("pbp",a.Gb.timerName)&&b.Sl()&&2<=b.Jh()&&0<vA(b.fg())&&a.Gb.tick("pbp"),b=b.getCurrentTime(),yT(a.jw,b))?(KEa(a),!0):!1};
KEa=function(a){window.clearInterval(a.MB);a.Pq.stop();a.videoData.fb=!0;a.Y.zk=!0;a.Y.Xa=0;var b=a.Ej;if(b.videoData.u){var c=b.j.u;c.u.delete(b.videoData.u.j);c.j=!0}b.u.stop();a.Y.cj=a.videoData.Ov;a.videoData.EN=!0;aMa(a);g.V(a.playerState,8)&&a.Vb(pH(a.playerState,65));b=a.Zb;b.j&&HJa(b.j);b=b.C;c=g.IP(b.j);0>b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.xp(a.kE);a.ea("playbackstarted");g.Wr()&&((a=g.Ka("yt.scheduler.instance.clearPriorityThreshold"))?a():Xr(0))};
aMa=function(a){var b=a.getCurrentTime(),c=WS(a.yg);!Ax("pbs",a.Gb.timerName)&&Tw.measure&&Tw.getEntriesByName&&(Tw.getEntriesByName("mark_nr")[0]?Vqa("mark_nr"):Vqa());c.videoId&&a.Gb.info("docid",c.videoId);c.eventId&&a.Gb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.N("web_player_early_cpn")&&a.Gb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Gb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Sl())if(a.Y.experiments.kb("web_csi_via_jspb")){var d=new Nq;g.D(d,
6,!0);var e=new Pq;se(e,22,d);zx(e,a.Gb.timerName)}else a.Gb.info("paused",1);a.Y.experiments.kb("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,se(e,22,d),zx(e,a.Gb.timerName)):c.u?a.Gb.info("fmt",c.u.Yb()):a.Gb.info("fmt","-1");c.bd&&(e=a.IF?2:1,a.Y.experiments.kb("web_csi_via_jspb")?(d=new Nq,g.D(d,8,e),e=new Pq,se(e,22,d),zx(e,a.Gb.timerName)):a.Gb.info("yt_pre",String(a.IF?2:1)));a.isFullscreen()&&a.Gb.info("yt_fs","1");mx({liveStreamMode:bMa[lE(c)]},a.Gb.timerName);
a.Gb.info("cmt",b.toFixed(3));if(a.Ua){b=a.Ua.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.Gb.tick(f,b[f])}};
cMa=function(a){a.Zb.Hd();if(a.videoData.isLivePlayback&&Date.now()>a.wN+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.Aa.FA(),d=g.IP(b.j);pJa(b,d,c);c=c.D;isNaN(c)||g.bT(b,d,"e2el",[c.toFixed(3)])}}g.SC(a.Y)&&a.ya("rawlat",{l:xQ(a.jI,"rawlivelatency").toFixed(3)});a.wN=Date.now()}a.videoData.u&&fA(a.videoData.u)&&(b=sF(a))&&b.videoHeight!==a.fG&&(a.fG=b.videoHeight,EU(a,"a",TLa(a,a.videoData.Xa)))};
TLa=function(a,b){if("auto"===b.j.video.quality&&fA(b.yf())&&a.videoData.Cb)for(var c=g.r(a.videoData.Cb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.fG&&"auto"!==d.j.video.quality)return d.yf();return b.yf()};
nU=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Ua&&a.videoData.j&&(b=ZD(a.videoData)?a.Ua.Ha.Fg()||0:a.videoData.j.ra);return Date.now()/1E3-a.getIngestionTime()-b};
dMa=function(a){!a.N("html5_ignore_airplay_events_on_new_video_killswitch")&&a.mediaElement&&a.mediaElement.Bf()&&(a.bB=(0,g.R)());a.Y.Xl?g.Br(function(){KU(a)},0):KU(a)};
KU=function(a){if(a.mediaElement)try{a.LB=a.mediaElement.playVideo()}catch(c){xU(a,"err."+c)}if(a.LB){var b=a.LB;b.then(void 0,function(c){if(!(g.V(a.playerState,4)||g.V(a.playerState,256)||a.LB!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);xU(a,d);a.mL=!0;a.videoData.LP=!0}})}};
xU=function(a,b){g.V(a.playerState,128)||(a.Vb(qH(a.playerState,1028,9)),a.ya("dompaused",{r:b}),a.ea("onAutoplayBlocked"))};
oU=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=XLa(a);var d;null==(d=a.Ua)||d.resume()}else wU(a),a.videoData.Xa&&(c=a.videoData.Xa.Dv());b=c;d=a.mediaElement.sz();c=!1;d&&d.equals(b)||(eMa(a,b),c=!0);g.V(a.playerState,2)||(b=a.Uc,b.D||!(0<b.B)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.B,{pe:"playbacktimeline_resumeTime"}));a:if(b=c,g.jE(a.videoData)&&a.mediaElement)if((d=a.videoData.X)&&a.mediaElement.Pp()){var e=a.mediaElement.Ke();
if(a.Zd)if(e!==a.Zd.element)LU(a);else if(b&&"fairplay"===d.flavor&&!as())LU(a);else break a;a.Zd=new OS(e,a.videoData,a.Y);a.Zd.subscribe("licenseerror",a.wB,a);a.Zd.subscribe("qualitychange",a.uX,a);a.Zd.subscribe("heartbeatparams",a.Ox,a);a.Zd.subscribe("keystatuseschange",a.ap,a);a.Zd.subscribe("ctmp",a.ya,a);b=g.r(a.du.keys);for(d=b.next();!d.done;d=b.next())d=a.du.get(d.value),a.Zd.Xt(d);a.N("html5_eme_loader_sync")||NS(a.du)}else a.Vf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return c};
eMa=function(a,b){a.Gb.tick("vta");Bx("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&pKa(a.Uc,a.getCurrentTime());a.mediaElement.Ls(b);a.mediaSource&&Xr(4);!a.videoData.fb&&g.sH(a.playerState)&&a.Pq.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)}}};
LU=function(a){a.Zd&&(a.Zd.dispose(),a.Zd=null)};
EP=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.N("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.V(a.playerState,4))||a.Hm()||g.oE(a.videoData))?a.getCurrentTime():a.yd(b)};
fMa=function(a){a.mediaElement&&(a.mediaSource?(LU(a),GU(a),XLa(a)):(a.videoData.Xa&&a.videoData.Xa.OH(),a.mediaElement.stopVideo()),a.playVideo())};
MU=function(a,b){a.Y.N("html5_log_rebuffer_reason")&&a.ya("bufreason",{r:b,lact:Du()})};
VP=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.Ub,w=n.j.videoData.clientPlaybackNonce,x=n.j.videoData.videoId,y=q!==w&&m!==x;w=p!==w&&l!==x;n.reportStats();n.adCpn&&n.adCpn!==p||(n.adCpn=w?p:"",n.X=w?l:"",n.adFormat=w?t:void 0,vJa(n,f?2:0,q,m,e),n.reportStats(),n.adCpn=y?q:"",n.X=y?m:"",n.adFormat=y?t:void 0,vJa(n,f?3:1,p,l,d),n.reportStats())}d=
a.Zb;f=b.cpn;d.B.has(f)?(l=d.B.get(f),tT(l).send(),g.Dr(l.B),l.B=NaN,d.u.Y.N("watch_time_greater_than_playback_time_fix_killswitch")||f===d.u.videoData.clientPlaybackNonce||(uT(l),d.B.delete(f))):(d.eg=d.u.videoData.clientPlaybackNonce,d.eg&&d.j&&d.B.set(d.eg,d.j));d=a.Zb;f=c.cpn;k=k.videoData;l=e-a.Am();if(d.B.has(f)){var z;null!=(z=d.B.get(f))&&z.C&&isNaN(z.B)&&rT(z,!1)}else z=RJa(d,d.u,k,l),d.B.set(f,z),HJa(z);d.eg=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;nx(b,z);mx({targetVideoId:a.videoId,targetCpn:c.cpn},b);lx("pbs",e,b)}}};
gMa=function(a,b){if(cD(a.Y)){var c=g.cB(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.Nb();d.rt=(1E3*g.IP(a.Zb.u)).toFixed();d.e=b.substr(0,3);a.NB[a.dP++%c]=d}}};
hMa=function(a){if(cD(a.Y)){a.NB.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.r(a.NB),c=b.next();!c.done;c=b.next())c=c.value,a.ya("vpe",Object.assign({t:c.rt},c));a.NB=[];a.dP=0}};
iMa=function(a){if(Yr("cobalt")&&Yr("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ya("nxdock",{d:b})}};
JEa=function(a,b,c,d,e){a.ya("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
HU=function(a,b){var c;null==(c=a.Ua)||lS(c,b||WLa(a))};
WLa=function(a){var b=a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.HC(a.Y),c=a.N("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.Tb(a.Zi,"ad")};
g.PU=function(a,b,c){g.G.call(this);var d=this;this.logger=new g.rQ("App");this.Cx=this.Eg=!1;this.Uu={};this.eE={};this.UB={};this.Au=[];this.bN=!1;this.WF=null;this.gN=!1;this.Iq=!0;this.aI=!1;this.zN=this.hG=null;this.GN=!0;this.mediaElement=this.Ib=null;this.Tx=!1;this.MP=this.ey=this.Bb=this.playlist=null;this.Ey=void 0;this.yp=0;this.md=this.Xu=this.tj=null;this.useLivingRoomPoToken=!1;this.config=ipa(b||{});this.webPlayerContextConfig=c;Vma();b=this.config.args||{};this.Y=new JC(b,c,c?c.canaryState:
this.config.assets.player_canary_state);g.H(this,this.Y);this.iE();this.Y.isMobile&&!jMa&&(window.addEventListener(mC?"touchstart":"click",DEa,{capture:!0,passive:!0}),jMa=!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(){kMa(d)}):kMa(this));
this.N("html5_onesie")&&(this.fp=new qP(this.Y),g.H(this,this.fp));this.YP=fC(sC(this.Y)&&!0,b.enablesizebutton);this.bG=fC(!1,b.player_wide);this.visibility=new LP;g.H(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.iA(this);g.H(this,this.events);this.Um=new tQ;g.H(this,this.Um);this.qm=new tQ;g.H(this,this.qm);this.Mo=new JFa;this.Ta=new g.SK(this);g.H(this,this.Ta);this.template=new BQ(this);g.H(this,this.template);this.appState=1;this.wg=this.Y.storeUserVolume?
uta():{volume:100,muted:this.Y.mute};this.I=this.Y.B?new RK(this,1):new LK(this,1);g.H(this,this.I);c={};this.hE=(c.internalvideodatachange=this.IW,c.playbackready=this.KW,c.playbackstarted=this.LW,c.statechange=this.MW,c);this.Bc=lMa(this);this.bW=new g.iA(this);g.H(this,this.bW);this.N("html5_enable_web_assembly")&&this.Bc&&eCa(this.Bc).then(function(e){d.Y.Aj=e});
this.Gb=new cL(this.Y,this.Bc);this.vb=mMa(this);c={};this.gP=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.JG,c.endseeking=this.NG,c.internalAbandon=this.TG,c.internalaudioformatchange=this.Kx,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.Sx,c.liveviewshift=this.wX,c.playbackstalledatstart=this.MY,c.progresssync=this.eY,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.BB,
c.SEEK_TO=this.BY,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.UX,c.statechange=this.WO,c.connectionissue=this.Mx,c.newelementrequired=this.DO,c.heartbeatparams=this.Ox,c.videoelementevent=this.gH,c.drmoutputrestricted=this.onDrmOutputRestricted,c.signatureexpired=this.HY,c.nonfatalerror=this.KX,c);this.Ro=new g.iA(this);g.H(this,this.Ro);c=10;g.HC(this.Y)&&(c=3);RC(this.Y)&&(c=g.cB(this.Y.experiments,
"tvhtml5_unplugged_preload_cache_size"));this.Ut=new sQ;g.H(this,this.Ut);this.Xx=new pQ(c,function(e){e!==g.aL(d,e.getPlayerType())&&e.dispose()});
g.H(this,this.Xx);this.XE=this.iA=-1;this.hC=new g.L(this.template.resize,16,this.template);g.H(this,this.hC);nMa(this);this.kd=new eQ(this.Ta,this.Y,this.vb);this.Vu=new FP(this);g.H(this,this.Vu);xFa(this.Y.deviceParams.c);this.events.T(this.Ta,g.Kw("appapi"),this.GW);this.events.T(this.Ta,g.Lw("appapi"),this.HW);this.events.T(this.Ta,g.Kw("appad"),this.jO);this.events.T(this.Ta,g.Lw("appad"),this.jO);this.events.T(this.Ta,g.Kw("appprogressboundary"),this.dY);this.events.T(this.Ta,g.Lw("applooprange"),
this.iC);this.events.T(this.Ta,"presentingplayerstatechange",this.qg);this.events.T(this.Ta,"resize",this.pY);this.template.Ba(Sh(a));this.events.T(this.Ta,"offlineslatestatechange",this.MX);this.SI=oMa(this,this.template.element);g.H(this,this.SI);this.Bc.I.V().Qf&&vL(this.Bc,"offline");this.Y.Fb&&g.kL("ux",g.oP);a=g.cB(this.Y.experiments,"html5_defer_fetch_att_ms");this.hL=new g.L(this.DZ,a,this);g.H(this,this.hL);WS(this).isValid()&&(g.iw()&&WS(this).ra.push("remote"),NU(this),!this.Y.N("html5_delay_initial_loading")&&
OU(this)&&(this.Y.Th||this.Y.Vd)&&g.HP(this.vb));this.Gb.tick("fs");pMa(this);this.Bd=null;this.Y.Fb&&bCa(this.Bc);g.BC(this.Bc.I.V())&&vL(this.Bc,"music");g.qC(this.Bc.I.V())&&vL(this.Bc,"embed");this.N("web_player_sentinel_is_uniplayer")||g.Sv(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.Sv(new g.Is("b/195699950",{yt:a,player:c}));this.BQ=qMa(this);if(a=
g.cB(this.Y.experiments,"html5_block_pip_safari_delay"))this.cF=new g.L(this.tL,a,this),g.H(this,this.cF);this.Y.N("embeds_enable_pem_cookie_blocking_killswitch")||(Nr=this.Y.Ra);a=g.cB(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.ZO=new g.Fi(a),g.H(this,this.ZO),this.events.T(this.ZO,"tick",function(){d.aP&&rMa.Xn(d.aP);d.aP=rMa.tp("apit")}))};
qMa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Bb||a.vb).Zb.ud("player.exception",dD({n:c.name,m:c.message}))}
Tv.subscribe("handleError",b);gr.push(b);return function(){Tv.unsubscribe("handleError",b);var c=gr.indexOf(b);-1!==c&&gr.splice(c,1)}};
mMa=function(a){var b=new g.SD(a.Y,a.config.args);b=a.Nn(1,b);b.setPlaybackRate(a.Y.j?1:sMa(a,Number(g.gw("yt-player-playback-rate"))||1));g.jv(b,a.hE,a);return b};
lMa=function(a){var b="",c=EFa(a);0===c.indexOf("//")&&(c=a.Y.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Sv(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new sL(a.Ta,b);tMa(a,b);return b};
tMa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
uMa=function(a,b){var c=a.isVideoInfoVisible();a.tj||(a.tj=new JQ(a.Ta),g.H(a,a.tj),g.ZK(a.Ta,a.tj.element,4));g.iI(a.tj,b);QU(a)&&c!==b&&VK(a.Bc).tI();a=a.Bb;b&&a&&a.ya("sfn",{},!0)};
RU=function(a){var b=WC(a.Y)?new g.FL(g.ei("AUDIO")):xP.pop()||new g.FL(g.ei("VIDEO"));a.mediaElement=b;g.H(a,a.mediaElement);a.Bb&&a.Bb.setMediaElement(a.mediaElement);try{a.Y.Cb?(a.Xu&&a.events.vc(a.Xu),a.Xu=a.events.T(a.mediaElement,"volumechange",a.EX)):(a.mediaElement.Cu(a.wg.muted),a.mediaElement.setVolume(a.wg.volume/100))}catch(d){a.Xe("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.hv(a.Ro);vMa(a);b=a.template;b.Eb=a.mediaElement.Ke();
b.LA=!1;b.Eb.parentNode||g.hi(b.pw,b.Eb,0);b.SB=new g.Jm(0,0,0,0);IFa(b);CQ(b);g.M(b.Eb,"video-stream");g.M(b.Eb,g.AQ.MAIN_VIDEO);var c=b.app.V();c.fh&&b.Eb.setAttribute("data-no-fullscreen","true");c.vk&&(b.Eb.setAttribute("webkit-playsinline",""),b.Eb.setAttribute("playsinline",""));c.Wl&&b.Eb&&b.T(b.Eb,"click",b.Eb.play,b.Eb);try{a.mediaElement.Ls()}catch(d){a.Xe("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
KP=function(a,b){if(a.Bb!==b){var c=null;if(a.Bb){c=a.Bb.getPlayerState();xL(a.Bc,3);SU(a,"cuerangesremoved",a.Bb.wm());a.Vu&&!b.isGapless()&&a.Bb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var d;if(d=a.md)d=a.mediaElement,d=!!d&&d===a.md.mediaElement;d&&(a.Pg(),RU(a));a.Bb&&(a.Bb.Pg(),kv(a.Bb,a.gP,a),1!==a.Bb.getPlayerType()&&a.Bb.dispose());a.Bb=null}1===b.getPlayerType()&&a.vb!==b&&(b.getVideoData().autonavState=a.vb.getVideoData().autonavState,kv(a.vb,a.hE,a),d=a.vb.getPlaybackRate(),
a.vb.dispose(),a.vb=b,a.vb.setPlaybackRate(d),g.jv(b,a.hE,a),NU(a));d=b.getPlayerType();if(b!==a.vb&&b!==a.Uu[d]){var e;null==(e=a.Uu[d])||e.dispose();a.Uu[d]=b}a.Bb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.jv(b,a.gP,a);if(b.ZA())TU(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.rH(c,b.getPlayerState())&&a.WO(new g.vF(b.getPlayerState(),c));if(b.Sm.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&
a.Ta.La("onPlaybackQualityChange",c.quality);SU(a,"cuerangesadded",a.Bb.wm());c=b.getPlayerState();g.V(c,2)?wMa(a):g.V(c,8)&&b.playVideo()}}};
wMa=function(a){if(!xMa(a)){var b=a.vb.zd();b&&(b=b.Fw(),b instanceof Promise&&b.catch(function(){}));
UU(a,vH(a.yb()))}};
vMa=function(a){var b=a.mediaElement;oA()?a.Ro.T(b,"webkitpresentationmodechanged",a.yY):nA()&&(a.Ro.T(b,"enterpictureinpicture",function(){a.Du(!0)}),a.Ro.T(b,"leavepictureinpicture",function(){a.Du(!1)}));
xC&&(a.Ro.T(b,"webkitbeginfullscreen",function(){a.hj(3)}),a.Ro.T(b,"webkitendfullscreen",function(){a.hj(0)}))};
g.aL=function(a,b){return b?1===b?a.vb:a.getVideoData().enableServerStitchedDai&&2===b?!a.N("web_player_enable_preroll_for_ssdai_killswitch")&&a.getVideoData().enablePreroll?a.Uu[2]||a.Bb:a.Bb:a.Uu[b]||null:a.Bb};
VU=function(a,b){return a.oe(b)?a.vb:b};
WU=function(a,b){var c=a.Bb;return c&&b===a.vb&&a.oe(b)&&a.oe(c)?c:b};
XU=function(a){if(!QU(a)){var b=yL(a.Bc);b&&!b.created&&uL(a.Bc)&&b.create()}};
yMa=function(a){var b=a.getVideoData(),c=a.Bc;wL(c)||c.GE();vL(c,"attribution",!1,!0);vL(c,"embed");vL(c,"inline_preview");vL(c,"kids");vL(c,"remote");vL(c,"miniplayer");vL(c,"music");vL(c,"offline");vL(c,"unplugged");vL(c,"ypc",!1,!0);vL(c,"ypc_clickwrap",!1,!0);vL(c,"yto",!1,!0);vL(c,"webgl",!1,!0);c.D||(vL(c,"captions",!0),vL(c,"endscreen"),c.HE(),vL(c,"creatorendscreen",!0));c.IL();aCa(c);a.Ta.ea("videoready",b)};
WS=function(a){return a.vb.getVideoData()};
OU=function(a){a=WS(a);a.isValid();return yE(a)};
pMa=function(a){a.KE();var b=a.config.args;RU(a);var c=WS(a);a.Ta.La("onVolumeChange",a.wg);if(b&&fL(b)){var d=OC(a.Y);d&&!a.Eg&&(b.fetch=0);var e=g.qC(a.Y);e&&!a.Eg&&(b.fetch=0);YU(a,b);g.qC(a.Y)&&a.Gb.tick("ep_pr_s");if(d&&!a.Eg)ZU(a);else if(e&&!a.Eg)$U(a);else if(!c.isValid())a.playlist.onReady(function(){aV(a)})}KP(a,a.vb);
g.V(a.vb.getPlayerState(),128)||(b=Nsa(!WC(a.Y)),"fmt.noneavailable"===b?a.Xe("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Xe(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&OU(a)&&(a.Y.Th||a.Y.Vd)?bV(a):g.gw("yt-player-playback-on-reload")?(g.Ds("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.authUser}),Bta(!1),bV(a)):ZC(a.Y)||zMa(a),g.QC(a.Y)||"MWEB"===FC(a.Y)?(g.Tr(g.Vr(),function(){cV(a)}),g.Tr(g.Vr(),function(){KAa()})):
(cV(a),KAa()))};
cV=function(a){if(a.N("fetch_att_independently"))g.xp(a.hL);else{var b=a.getVideoData().botguardData;b&&(a.getVideoData(),g.jK(b,a.Y))}};
zMa=function(a){a.Ta.ea("initializingmode");a.Gl(2);vL(a.Bc,"remote");a.Y.N("player_cued_miniplayer_module_killswitch")||vL(a.Bc,"miniplayer")};
bV=function(a){if(g.V(a.vb.getPlayerState(),128))return!1;OU(a)&&a.Y.Vd&&(xP.length&&a.Cx?(NK(a,{muted:!1,volume:a.wg.volume},!1),dV(a,!1)):xP.length||a.wg.muted||(NK(a,{muted:!0,volume:a.wg.volume},!1),dV(a,!0)));var b=a.vb.getVideoData();b.YO&&NK(a,{muted:!0,volume:a.wg.volume},!1);eV(a,1,b,!1);a.Ta.ea("initializingmode");KP(a,a.vb);a.Gl(3);if(!(b=!a.Y.xj)){if(b=a.md)b=a.mediaElement,b=!!b&&b===a.md.mediaElement;b=b&&a.bN}b&&(a.Pg(),RU(a),a.vb.setMediaElement(a.mediaElement));BU(a.vb);if(g.V(a.vb.getPlayerState(),
128))return!1;UU(a,3);return a.bN=!0};
kMa=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.HC(a.Y)?b:c;try{if(a.Yu=lea({fk:b,onError:function(e){g.Sv(e)}}),!a.N("html5_generate_content_po_token")){a.Yu.ready().then(function(){AMa(a)});
var d=g.cB(a.Y.experiments,"html5_session_po_token_interval_time_ms");0<d&&(a.TH=g.Cr(function(){AMa(a)},d))}}catch(e){e instanceof Error&&g.Sv(e)}};
AMa=function(a){var b,c,d,e;g.B(function(f){if(!a.N("html5_generate_session_po_token")||null==(b=a.Yu)||!b.isReady()||a.useLivingRoomPoToken)return f.return();c=a.N("enable_web_eom_visitor_data")?g.O("EOM_VISITOR_DATA")||g.O("VISITOR_DATA"):g.O("VISITOR_DATA");d=a.Y.Nk?a.Y.datasyncId:c;e=a.Y.livingRoomPoTokenId||d;a.Y.Pd=BMa(a,e);g.ua(f)})};
BMa=function(a,b){var c;if(null==(c=a.Yu)||!c.isReady())return"";try{var d=a.Yu.Vt({qw:b});return g.Ac(d,2)}catch(e){return g.Sv(e),""}};
SLa=function(a,b){return g.B(function(c){return a.Yu?c.return(a.Yu.ready().then(function(){return BMa(a,b)})):c.return(Promise.reject("web po not ready"))})};
QU=function(a){a=VK(a.Bc);return!!a&&a.loaded};
CMa=function(a,b){if(!a.Ib)return!1;var c=.001*a.Ib.startTimeMs-1;a=.001*a.Ib.endTimeMs;return Ah(b,c)||Ah(b,a)||b>=c&&b<=a};
DMa=function(a){g.V(a.vb.getPlayerState(),64)&&WS(a).isLivePlayback&&5E3>a.Ib.startTimeMs||a.vb.seekTo(.001*a.Ib.startTimeMs,{pe:"application_loopRangeStart"})};
sMa=function(a,b){var c=a.Ta.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
gV=function(a,b,c){if(a.oe(c)){c=c.getVideoData();if(fV(a))c=b;else{a=a.kd;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.xc===e.xc){b+=e.wc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.xc===e.xc)break;var f=e.wc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Nc/1E3;else break}c=d}return c}return b};
EMa=function(a,b){if(3===a.getPresentingPlayerType())return vH(VK(a.Bc).Md);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Bd)?0:c.isAdPlaying(a.getCurrentTime()))?a.iA:-1}return 2!==b||a.oe()?a.iA:a.XE};
NU=function(a){hV(a);a.setLoopVideo(!1);a.setLoopRange(null);a.eE={};a.UB={};a.Au=[];JBa(a.Gb);if(a.Bd){var b=a.Bd,c=a.vb;c.getPlayerType();b.Na();ZP(b,!1);aQ(b);dFa(b);b.Aa=c}b=a.kd;a=a.vb;1!==a.getPlayerType()&&fQ(b,"invalidParentVideoPlayerType");b.Na();kQ(b,!1);mQ(b);b.j=a};
ZU=function(a){var b=FMa();if(b)if(!b.list)a.Ss();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ta.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.gL(a.playlist).videoId||(b.index=a.playlist.index));iL(a.playlist,b);a.ey&&iV(a,a.ey)}else a.ey=null};
$U=function(a,b){var c=(b?b:WS(a)).UQ;a.Gb.tick("ep_pr_r");if(null!=c&&(iL(a.playlist,c),a.aI))a.playlist.onReady(function(){aV(a,b)})};
YU=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Ss,a),g.qf(a.playlist),a.playlist=null);b&&(a.Eg&&(b.fetch=0),a.playlist=new eL(a.Y,b),a.playlist.subscribe("error",a.Ss,a))};
jV=function(a,b,c,d){b in a.eE||(c=new g.Iw(c,d,{id:b,priority:2,namespace:"appad"}),a.vb.addCueRange(c),a.eE[b]=c)};
JMa=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.pp(c,d);d=void 0;d=void 0===d?!1:d;(d=Bw(Cw(c,GMa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=Bw(Cw(c,HMa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=Bw(Cw(c,IMa),c,d,"Nielsen OCR URL"));g.Nt(c,void 0,d)}return!0};
UU=function(a,b){if(a.Bb){var c=a.Bb.getPlayerType();if(2===c&&!a.oe()){a.XE!==b&&(a.XE=b,a.Ta.La("onAdStateChange",b));return}if(2===c&&a.oe()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.N("clips_disable_end_when_looping")&&0===b&&a.Ib||a.iA===b||(a.iA=b,a.Ta.La("onStateChange",b))};
eV=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.xc;var f=a.Xx.get(e);if(!f)return null;a.Xx.remove(e);if(g.V(f.getPlayerState(),128))return f.dispose(),null}if(f===g.aL(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||KP(a,f);return f};
kV=function(a,b,c){c=g.aL(a,c);b&&c===a.vb&&(c.getVideoData().nf=!0)};
lV=function(a,b,c){c=void 0===c?1:c;if(b.isValid()){var d=a.Nn(c,b);a.cancelPlayback(4,c);KP(a,d);2===c&&a.vb.pu(b.clientPlaybackNonce,b.Ub||"",b.breakType||0,b.Pd);1===c&&(a.Gl(1),zMa(a))}else b.dispose(),g.qf(g.aL(a,c))};
KMa=function(a,b,c,d,e){b=xBa(b,c,d,e);(c=g.qC(a.Y)&&!a.Y.S)&&!a.Eg&&(b.fetch=0);YU(a,b);g.qC(a.Y)&&a.Gb.tick("ep_a_pr_s");if(c&&!a.Eg)c=WS(a),OBa(c,b).then(function(f){a.aI=!0;$U(a,f)});
else a.playlist.onReady(function(){aV(a)});
g.qC(a.Y)&&a.Gb.tick("ep_a_pr_r")};
aV=function(a,b){var c=g.qC(a.Y)&&!a.Y.S,d=c&&b?b:g.gL(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Al&&(a.Y.Th||a.Y.Vd)||!a.Iq?(b=b.nf,d=a.Po(d,1),b&&kV(a,d)):lV(a,d,1));g.qC(a.Y)&&a.Gb.tick("ep_p_l");a.aI=!1;a.Ta.La("onPlaylistUpdate")};
xMa=function(a){if(a.playlist&&g.wC(a.Y)&&a.Kw()){var b=a.Y.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
iV=function(a,b){var c=g.Ka(b);c?((b=FMa())&&b.list&&c(),a.ey=null):a.ey=b};
FMa=function(){var a=g.Ka("yt.www.watch.lists.getState");return a?a():null};
mV=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=Hw.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=Hw.AD_MARKER:(b.style=Hw.TIME_MARKER,b.color=e),b.visible=!0);a.cw([new g.Iw(1E3*c,1E3*d,b)],1);return!0};
LMa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.Au.push({id:b,O_:c,N_:d}),!1;e=f-a.getCurrentTime();return mV(a,b,c-e,d-e)};
MMa=function(a,b){a.Au=g.Xn(a.Au,function(f){return f.id!==b});
for(var c=a.vb.wm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.vb.removeCueRange(e),SU(a,"cuerangesremoved",[e]),!0}return!1};
NMa=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)};
NK=function(a,b,c){a.Y.va&&(a.wg=b,b.muted||dV(a,!1),c&&a.Y.storeUserVolume&&!a.Y.Cb&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.fw("yt-player-volume",c),g.fw("yt-player-volume",c,2592E3))),OMa(a),c=g.mA&&a.mediaElement&&!a.mediaElement.zf(),a.Y.Cb&&!c||a.Ta.La("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
OMa=function(a){var b=a.getVideoData();if(!b.Zf){b=a.Y.Cb?1:rwa(b);var c=a.mediaElement;c.Cu(a.wg.muted);try{c.setVolume(a.wg.volume*b/100)}catch(d){g.Sv(new g.Is("b183742307","multiplier: "+b+", volume: "+a.wg.volume))}}};
dV=function(a,b){b!==a.Cx&&(a.Cx=b,a.Ta.La("onMutedAutoplayChange",b))};
nV=function(a){var b=cv(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Ke())?b:null};
QMa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.N("lock_fullscreen2")||a.Y.J)&&c&&c.lock&&(!g.mA||!PMa))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.Tx||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.Tx=!0}}else a.Tx&&(a.Tx=!1,c.unlock())};
SU=function(a,b,c){a.Ta.ea(b,c);var d=g.HC(a.Y)||g.yC(a.Y)||g.zC(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ta.La(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}}))}};
oV=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var k=g.aL(a,e);if(!k||(2!==k.getPlayerType()||a.oe(k)||f)&&!g.oE(k.getVideoData()))3===a.getPresentingPlayerType()?VK(a.Bc).zl("control_seek",b,c):(k===a.vb&&a.Ib&&!CMa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
pV=function(a){a.Ta.La("SIZE_CLICKED",!a.bG)};
TU=function(a,b,c,d){c&&(a.Pg(),RU(a));c=g.aL(a);c.ud(new g.eD("staleconfig",{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?ZD(e)&&g.SC(a.Y)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Qa&&(f.vvt=e.Qa);e.K&&(f.vss_credentials_token=e.K,f.vss_credentials_token_type=e.Ai);e.oauthToken&&(f.oauth_token=e.oauthToken);e.gh&&(f.force_gvi=e.gh);f.autoplay=1;f.reload_count=e.ub+1;f.reload_reason=b;e.Pv&&
(f.unplugged_partner_opt_out=e.Pv);e.Dc&&(f.ypc_is_premiere_trailer=e.Dc);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d);"signature"===b&&a.Bd&&XU(a)};
RMa=function(a,b){WS(a).autonavState=b;g.fw("yt-player-autonavstate",b);a.Ta.ea("autonavchange",b)};
SMa=function(a){var b=a.getVideoData().Zf,c=a.Y.Sb,d=a.isInline()&&!a.getVideoData().JF,e=a.mediaElement;b||c||d?e.ME():(e.OE(),NK(a,a.wg))};
oMa=function(a,b){return a.Y.N("html5_enable_embedded_player_visibility_signals")&&g.qC(a.Y)?new zQ(b):null};
hV=function(a){(a=yL(a.sb()))&&a.created&&a.destroy()};
fV=function(a){return(a.N("html5_halftime_limit_timeline_usage_killswitch")||a.getVideoData().enableServerStitchedDai)&&!!a.Bd};
TMa=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]=Pm(a,d);b.hidden=!!a.hidden};
nMa=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.N("embeds_enable_request_storage_access_safari_itp")&&g.Qs&&d&&b.j?gs()||b.Ra?(g.Ds("embedsStorageAccessNotChecked",{isIosWebview:gs(),isPemPlayer:b.Ra}),a.Ey=!1):c.hasStorageAccess().then(function(e){g.Ds("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Ey=!e},function(e){g.Ds("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Sv(Error("Embeds ITP Error: "+e));a.Ey=!1}):a.Ey=!1};
UMa=function(a,b){return g.HC(a.Y)&&tr(b)&&sr(b)?g.bD(a.Y,g.AE(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):Mr()};
qV=function(a,b){UMa(a,b).then(function(c){g.Nt(b,void 0,void 0,c)})};
rV=function(a,b){b.forEach(function(c){qV(a,c)})};
EFa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
VMa=function(a){var b;a=null==(b=OK(a.sb()))?void 0:b.Lw();if(!(a instanceof g.aM))return null;var c;return(null==(c=a.BM())?void 0:c.X)||null};
WMa=function(a,b,c,d){var e=1E3*a.getCurrentTime()<c?1:-1;b.zP(e,d);oV(a,c/1E3)};
sV=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
rw=function(a,b){return a.j.has(b)};
X=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
tV=function(a){return Array.from(a.j.keys())};
YMa=function(a){var b;return(null==(b=XMa.get(a))?void 0:b.Gr)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
vV=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:ZMa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Pb&&(c.entryTriggerType=b.Pb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Pb)c.debugData.slotEntryTriggerData=uV(a);a=b.lc;c.debugData.fulfillmentTriggerData=[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(uV(d.value));b=b.uc;c.debugData.expirationTriggerData=
[];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(uV(a.value))}return c};
$Ma=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:ZMa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
uV=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Vg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Vg);null!=a.Pe&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Pe);return c};
aNa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Sl(d||[],function(e){return vV(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
yV=function(a,b){return function(c){return wV(xV(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.gb,b.Pb,b.lc,b.uc,c.layoutId,c.layoutType,c.gb)}};
wV=function(a,b,c,d,e,f,k,l,m,n,p){return{adClientDataEntry:{slotData:vV(a,{slotId:b,slotType:c,slotPhysicalPosition:d,gb:e,Pb:f,lc:k,uc:l,Ea:new sV([])}),layoutData:$Ma(a,{layoutId:m,layoutType:n,gb:p,Ad:[],Rc:[],Oc:[],Sc:[],Xc:[],qc:new Map,Ea:new sV([]),Ac:{}})}}};
zV=function(a){this.Pa=a;a=Math.random();var b=this.Pa.get();b=g.cB(b.I.V().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
xV=function(a){var b;(b=a.j)||(a=a.Pa.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};
bNa=function(a,b){var c={slotId:xw(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:void 0,lc:[],uc:[],gb:"surface",Ea:new sV([])},d=Object,e=d.assign;b=yw(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",qc:new Map,Ad:[],Rc:[],Oc:[],Sc:[],Xc:[],gb:"surface",Ea:new sV([]),Ac:wV(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.gb,c.Pb,c.lc,c.uc,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},
a,{zV:!0,slot:c,layout:b})};
AV=function(a){this.controller=a};
BV=function(a){this.EE=a};
CV=function(a,b,c){this.EE=a;this.qh=b;this.Ri=c};
cNa=function(a,b,c){var d=a.EE();switch(b.type){case "SKIP":Zya(d,a.qh,a.Ri,c)}};
DV=function(){};
EV=function(){};
FV=function(a,b){this.ek=a;this.vZ=b};
GV=function(a,b){this.Vp=a;this.Sa=b};
HV=function(a){this.I=a};
IV=function(a,b){this.ai=a;this.Sa=b};
eNa=function(a){g.G.call(this);this.j=a;this.JS=dNa(this)};
dNa=function(a){var b=new YH(a.j.Qc);g.H(a,b);a=g.r([new AV(a.j.GT),new GV(a.j.Vp,a.j.Sa),new HV(a.j.I),new IV(a.j.ai,a.j.Sa),new CV(a.j.kW,a.j.qh,a.j.Ri),new BV(a.j.aU),new EV,new FV(a.j.ek,a.j.Dg),new DV]);for(var c=a.next();!c.done;c=a.next())c=c.value,Rya(b,c),Sya(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())WH(b,c.value,function(){});
return b};
fNa=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}};
JV=function(a,b,c,d){g.G.call(this);this.Wd=b;this.Xb=c;this.Pa=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)};
KV=function(a,b){a.Wd.add(b);a.Pa.get().I.V().N("html5_not_register_disposables_when_core_listens")||g.H(a,b)};
xxa=function(a,b){ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
yxa=function(a,b){ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Wd);for(var c=a.next();!c.done;c=a.next())c.value.Ah(b)};
zxa=function(a,b){ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Wd);for(var c=a.next();!c.done;c=a.next())c.value.sf(b)};
Ywa=function(a,b){ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Wd);for(var c=a.next();!c.done;c=a.next())c.value.tf(b)};
MV=function(a,b,c){T(c,b,void 0,void 0,c.Wp);LV(a,b,!0)};
iNa=function(a,b,c){if(NV(a.j,b))if(OV(a.j,b).C=c?"filled":"not_filled",null===c){PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Wd);for(var d=c.next();!d.done;d=c.next())d.value.bk(b);LV(a,b,!1)}else{PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=X(c.Ea,"metadata_type_sub_layouts")){d=g.r(d);for(var e=d.next();!e.done;e=d.next())PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.r(a.Wd);for(d=e.next();!d.done;d=
e.next())d.value.dk(b);if(NV(a.j,b))if(OV(a.j,b).D)LV(a,b,!1);else{PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!OV(f,b))throw new QV("Unknown slotState for onLayout");if(!f.ke.Lm.get(b.slotType))throw new QV("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType);if(g.Ub(c.Ad)&&g.Ub(c.Rc)&&g.Ub(c.Oc)&&g.Ub(c.Sc)&&g.Ub(c.Xc))throw new QV("Layout has no exit triggers.");RV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Ad);RV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Rc);RV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Oc);RV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);RV(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Xc)}catch(n){a.Ff(b,c,n);LV(a,b,!0);return}OV(a.j,b).J=!0;try{var k=a.j,l=OV(k,b),m=k.ke.Lm.get(b.slotType).get().ye(k.C,k.u,b,c);m.init();l.layout=c;if(l.B)throw new QV("Already had LayoutRenderingAdapter registered for slot");l.B=m;SV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Ad);SV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.Rc);SV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Oc);SV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);SV(k,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Xc)}catch(n){TV(a,b);LV(a,b,!0);a.Ff(b,c,n);return}PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.r(a.Wd);for(d=f.next();!d.done;d=f.next())d.value.Ui(b,c);TV(a,b);gNa(a,b)}else hNa(a.Pa.get())&&T("slot is unscheduled after been fulfilled.",b,c)}};
UV=function(a,b,c){"core"!==b.gb&&PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
VV=function(a,b,c){PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Wd);for(var d=a.next();!d.done;d=a.next())d.value.Ui(b,c)};
$G=function(a,b,c){a=g.r(a.Wd);for(var d=a.next();!d.done;d=a.next())d.value.Vi(b,c)};
WV=function(a,b,c){PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Wd);for(var d=a.next();!d.done;d=a.next())d.value.Mc(b,c)};
LF=function(a,b,c,d){PV(a.Xb,YMa(d),b,c);a=g.r(a.Wd);for(var e=a.next();!e.done;e=a.next())e.value.Yc(b,c,d)};
TV=function(a,b){if(NV(a.j,b)){OV(a.j,b).J=!1;var c=XV;b=OV(a.j,b);var d=[].concat(g.u(b.S));Vb(b.S);c(a,d)}};
XV=function(a,b){b.sort(function(f,k){function l(m){T("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===k.category?f.trigger.triggerId.localeCompare(k.trigger.triggerId):fNa(f.category,l)-fNa(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,NV(a.j,d.slot))if(OV(a.j,d.slot).J)OV(a.j,d.slot).S.push(d);else{jNa(a.Xb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(kNa);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))&&lNa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&mNa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&nNa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
oNa(a,c)};
lNa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&YV(a.j,d.slot)&&pNa(a,d.slot,d.layout,c)};
mNa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())LV(a,c.value.slot,!1)};
nNa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(OV(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.Hw(c.slot))}};
oNa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Wd),e=d.next();!e.done;e=d.next())e.value.Xi(c.slot);try{var f=a.j,k=c.slot,l=OV(f,k);if(!l)throw new ZV("Got enter request for unknown slot");if(!l.u)throw new ZV("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.j)throw new ZV("Tried to enter a slot from stage: "+l.j);if($V(l))throw new ZV("Got enter request for already active slot");
for(var m=g.r(aW(f,k.slotType+"_"+k.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&$V(p))throw new ZV("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j});}}catch(q){T(q,c.slot,bW(a.j,c.slot),void 0,q.Wp);LV(a,c.slot,!0);continue}c=OV(a.j,c.slot);"scheduled"!==c.j&&cW(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.gA()}};
gNa=function(a,b){if(NV(a.j,b)&&$V(OV(a.j,b))&&bW(a.j,b)&&!YV(a.j,b)){var c;PV(a.Xb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=bW(a.j,b))?c:void 0);a=OV(a.j,b);"entered"!==a.j&&cW(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
pNa=function(a,b,c,d){if(NV(a.j,b)){var e=a.Xb,f;var k=(null==(f=XMa.get(d))?void 0:f.wr)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";PV(e,k,b,c);a=OV(a.j,b);"rendering"!==a.j&&cW(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.lf(c,d)}};
LV=function(a,b,c){if(NV(a.j,b)){a:switch(OV(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(OV(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(OV(a.j,b).D=!0,!c))return;if($V(OV(a.j,b)))OV(a.j,b).D=!0,qNa(a,b,c);else{a:switch(OV(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)OV(a.j,b).D=!0,NV(a.j,b)&&(ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=OV(a.j,b),b.C="fill_cancel_requested",b.K.sE());else{c=
bW(a.j,b);ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=OV(a.j,b);var e=b.Pb,f=d.ra.get(e.triggerId);f&&(f.pj(e),d.ra.delete(e.triggerId));e=g.r(b.lc);for(f=e.next();!f.done;f=e.next()){f=f.value;var k=d.Z.get(f.triggerId);k&&(k.pj(f),d.Z.delete(f.triggerId))}e=g.r(b.uc);for(f=e.next();!f.done;f=e.next())if(f=f.value,k=d.X.get(f.triggerId))k.pj(f),d.X.delete(f.triggerId);null!=d.layout&&(e=d.layout,dW(d,e.Ad),dW(d,e.Rc),dW(d,e.Oc),dW(d,e.Sc),dW(d,e.Xc));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;OV(d,b)&&(d=aW(d,b.slotType+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Wd);for(d=a.next();!d.done;d=a.next())d=d.value,d.Yi(b),c&&d.Vi(b,c)}}}};
qNa=function(a,b,c){if(NV(a.j,b)&&$V(OV(a.j,b))){var d=bW(a.j,b);if(d&&YV(a.j,b))pNa(a,b,d,c?"error":"abandoned");else{ZG(a.Xb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=OV(a.j,b);if(!e)throw new ZV("Cannot exit slot it is unregistered");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&cW(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new ZV("Cannot exit slot because adapter is not defined");e.u.hA()}catch(f){T(f,b,void 0,void 0,f.Wp)}}}};
rNa=function(a){this.slot=a;this.ra=new Map;this.Z=new Map;this.X=new Map;this.ma=new Map;this.B=this.layout=this.u=this.K=void 0;this.J=this.D=!1;this.S=[];this.j="not_scheduled";this.C="not_filled"};
$V=function(a){return"enter_requested"===a.j||a.isActive()};
QV=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Wp=c;this.args=[];b&&this.args.push(b)};
ZV=function(a,b,c){c=void 0===c?!1:c;$a.call(this,a);this.Wp=c;this.args=[];b&&this.args.push(b)};
eW=function(a,b,c,d,e,f){g.G.call(this);this.ke=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Pa=f;this.j=new Map};
aW=function(a,b){return(a=a.j.get(b))?a:new Map};
OV=function(a,b){return aW(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
sNa=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};
NV=function(a,b){return null!=OV(a,b)};
YV=function(a,b){a=OV(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};
bW=function(a,b){(a=OV(a,b))?null!=a.layout&&!a.layout&&T("Unexpected empty layout",b):T("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
fW=function(a,b,c){if(g.Ub(c))throw new ZV("No "+tNa.get(b)+" triggers found for slot.");c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.ke.xi.get(d.triggerType))throw new ZV("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
RV=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.ke.xi.get(d.triggerType))throw new QV("No trigger adapter registered for "+tNa.get(b)+" trigger of type: "+d.triggerType);};
SV=function(a,b,c,d){d=g.r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.ke.xi.get(e.triggerType);f.dj(c,e,b.slot,b.layout?b.layout:null);b.ma.set(e.triggerId,f)}};
dW=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.pj(c),a.ma.delete(c.triggerId))}};
cW=function(a,b,c){T("Slot stage was "+b+" when calling method "+c,a)};
uNa=function(a){return gW(a.Yq).concat(gW(a.xi)).concat(gW(a.tm)).concat(gW(a.fn)).concat(gW(a.Lm))};
gW=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Ni&&b.push(c);return b};
hW=function(a){g.G.call(this);this.j=a;this.u=vNa(this)};
vNa=function(a){var b=new JV(function(c,d,e,f){return new eW(a.j.ke,c,d,e,f,a.j.Pa)},new Set(uNa(a.j.ke).concat(a.j.listeners)),a.j.Xb,a.j.Pa);
g.H(a,b);return b};
iW=function(a){g.G.call(this);var b=this;this.u=a;this.j=null;g.sf(this,function(){g.qf(b.j);b.j=null})};
Y=function(a){return new iW(a)};
jW=function(a){this.j=a};
LI=function(a,b,c,d){(a=a.j())||T("Could not initiate a command router instance.");a.executeCommand(b,c,d)};
kW=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
wNa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
zNa=function(a,b,c,d,e,f,k){b=xNa(b,f,Number(d.prefetchMilliseconds)||0,k);a=b instanceof ZV?b:yNa(a,d,e,b,c);return a instanceof ZV?a:[a]};
ANa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
ENa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,lW(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return BNa(n)});
a=[];b={};f=g.r(f);for(var k=f.next();!k.done;b={Rr:b.Rr},k=f.next()){b.Rr=k.value;k={};for(var l=g.r(b.Rr.bE),m=l.next();!m.done;k={un:k.un},m=l.next())k.un=m.value,m=function(n,p){return function(q){return n.un.JL(q,p.Rr.instreamVideoAdRenderer.elementId,n.un.cL)}}(k,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===k.un.Ms?a.push(CNa(c,d,k.un.dL,e,b.Rr.instreamVideoAdRenderer.elementId,k.un.adSlotLoggingData,m)):a.push(DNa(c,d,e,b.Rr.instreamVideoAdRenderer.elementId,k.un.adSlotLoggingData,m))}return a};
lW=function(a,b,c){if(b=FNa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=GNa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.QA=c)}else T("InstreamVideoAdRenderer without externalVideoId")}};
FNa=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};
BNa=function(a){if(void 0===a.instreamVideoAdRenderer)return T("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.bE),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.JL)return!1;if(void 0===c.cL)return T("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.QA||void 0===c.Ms||a.QA!==c.Ms&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.Ms)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return T("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.QA,"matching APSR kind":c.Ms}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.Ms&&void 0===c.dL)return T("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
GNa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,QA:void 0,adVideoId:b,bE:[]});return a.get(b)};
mW=function(a,b,c,d,e,f,k){d?GNa(a,d).bE.push({dL:b,Ms:c,cL:e,adSlotLoggingData:f,JL:k}):T("Companion AdPlacementSupportedRenderer without adVideoId")};
nW=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};
oW=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,w,x,y,z,E,I,K,P,aa,J,qa,na,Ia,Na;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==(w=a.playbackCommands)?void 0:w.resumeCommands,skipCommands:null==(x=a.playbackCommands)?void 0:x.skipCommands,progressCommands:null==
(y=a.playbackCommands)?void 0:y.progressCommands,bha:null==(z=a.playbackCommands)?void 0:z.clickthroughCommands,fullscreenCommands:null==(E=a.playbackCommands)?void 0:E.fullscreenCommands,activeViewViewableCommands:null==(I=a.playbackCommands)?void 0:I.activeViewViewableCommands,activeViewMeasurableCommands:null==(K=a.playbackCommands)?void 0:K.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(P=a.playbackCommands)?void 0:P.activeViewFullyViewableAudibleHalfDurationCommands,
activeViewAudioAudibleCommands:null==(aa=a.playbackCommands)?void 0:null==(J=aa.activeViewTracking)?void 0:J.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(qa=a.playbackCommands)?void 0:null==(na=qa.activeViewTracking)?void 0:na.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(Ia=a.playbackCommands)?void 0:Ia.endFullscreenCommands,abandonCommands:null==(Na=a.playbackCommands)?void 0:Na.abandonCommands,completeCommands:b}};
INa=function(a,b,c,d,e,f,k){return function(l,m){return HNa(a,m.slotId,l,f,function(n,p){n=k(n);return pW(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new jG(c),d],c.adLayoutLoggingData)})}};
LNa=function(a,b,c,d,e,f,k){if(!JNa(a))return new ZV("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[KNa(f,b,c,d,function(m){var n=k(m);m=m.slotId;m=yw(e.u.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},q=new qW(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",qc:new Map,Ad:[q],Rc:[],
Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([new kG(l)]),Ac:n(p)}})]};
JNa=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};
ONa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!nxa(a))return function(){return new ZV("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var k=a.playerOverlay.instreamSurveyAdRenderer,l=nW(k);return 0>=l?function(){return new ZV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k})}:function(m,n){var p=MNa(m,c,d,function(q){var t=n(q),w=q.slotId;
q=oW(k);w=yw(e.u.get(),"LAYOUT_TYPE_SURVEY",w);var x={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new qW(e.j,d),z=new rW(e.j,w),E=new sW(e.j,w),I=new NNa(e.j);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",qc:new Map,Ad:[y,I],Rc:[z],Oc:[],Sc:[E],Xc:[],gb:"core",Ea:new sV([new iG(k),new ZF(b),new IG(l/1E3),new LG(q)]),Ac:t(x),adLayoutLoggingData:k.adLayoutLoggingData}});
m=LNa(a,c,p.slotId,d,e,m,n);return m instanceof ZV?m:[p].concat(g.u(m))}};
WNa=function(a,b,c,d,e){var f=[];try{var k=[];if(c.renderer.linearAdSequenceRenderer)var l=function(w){w=PNa(w.slotId,c,b,e(w),d);k=w.j_;return w.mU};
else if(c.renderer.instreamVideoAdRenderer)l=function(w){var x=w.slotId;w=e(w);var y=c.config.adPlacementConfig,z=QNa(y),E=z.bM;z=z.eM;var I=c.renderer.instreamVideoAdRenderer,K;if(null==I?0:null==(K=I.playerOverlay)?0:K.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var P=RNa(I);K=Math.min(E+1E3*P.videoLengthSeconds,z);z=new QE(0,[P.videoLengthSeconds],K);var aa=P.videoLengthSeconds,J=P.playerVars,qa=P.instreamAdPlayerOverlayRenderer,na=P.adVideoId,
Ia=SNa(c),Na=P.qc;P=P.aL;var bc=null==I?void 0:I.adLayoutLoggingData;I=null==I?void 0:I.sodarExtensionData;x=yw(b.u.get(),"LAYOUT_TYPE_MEDIA",x);var jb={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",qc:Na,Ad:[new tW(b.j)],Rc:[],Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([new cG(d),new uG(aa),new vG(J),new xG(E),new yG(K),qa&&new dG(qa),new ZF(y),new aG(na),new $F(z),new DG(Ia),I&&new wG(I),new qG({current:null}),new AG({}),new PG(P)].filter(TNa)),
Ac:w(jb),adLayoutLoggingData:bc}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=UNa(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 ZV)return t;f.push.apply(f,g.u(t))}}catch(w){return new ZV(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:VNa(c)})}return f};
VNa=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};
PNa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,k=QNa(f),l=k.bM,m=k.eM;k=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==k||!k.length)throw new TypeError("Expected linear ads");var n=[],p={fQ:l,gQ:0,f_:n};k=k.map(function(t){return XNa(a,t,p,c,d,f,e,m)}).map(function(t,w){w=new QE(w,n,m);
return t(w)});
var q=k.map(function(t){return t.nU});
return{mU:YNa(c,a,l,q,f,SNa(b),d,m),j_:k.map(function(t){return t.i_})}};
XNa=function(a,b,c,d,e,f,k,l){var m=RNa(b.instreamVideoAdRenderer),n=c.fQ,p=c.gQ,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.fQ=q;c.gQ++;c.f_.push(m.videoLengthSeconds);var t,w,x=null==(t=b.instreamVideoAdRenderer)?void 0:null==(w=t.playerOverlay)?void 0:w.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z=m.playerVars;2<=y.u&&(z.slot_pos=y.j);z.autoplay="1";var E,I;z=m.videoLengthSeconds;var K=m.playerVars,
P=m.qc,aa=m.aL,J=m.instreamAdPlayerOverlayRenderer,qa=m.adVideoId,na=null==(E=b.instreamVideoAdRenderer)?void 0:E.adLayoutLoggingData;E=null==(I=b.instreamVideoAdRenderer)?void 0:I.sodarExtensionData;I=yw(d.u.get(),"LAYOUT_TYPE_MEDIA",a);var Ia={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};y={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",qc:P,Ad:[],Rc:[],Oc:[],Sc:[],Xc:[],gb:"adapter",Ea:new sV([new cG(k),new uG(z),new vG(K),new xG(n),new yG(q),new zG(p),new qG({current:null}),J&&new dG(J),
new ZF(f),new aG(qa),new $F(y),E&&new wG(E),x&&new OG(x),new AG({}),new PG(aa)].filter(TNa)),Ac:e(Ia),adLayoutLoggingData:na};z=ONa(b.instreamVideoAdRenderer,f,k,y.layoutId,d);return{nU:y,i_:z}}};
RNa=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,qc:a.pings?SE(a.pings):new Map,aL:RE(a.pings)}};
SNa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
QNa=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{bM:b,eM:a}};
$Na=function(a,b,c,d,e,f,k){var l=c.pings;return l?[ZNa(a,f,e,function(m){var n=m.slotId;m=k(m);var p=c.adLayoutLoggingData;n=yw(b.u.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",gb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",qc:SE(l),Ad:[new uW(b.j,f)],Rc:[],Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([new ZF(d)]),Ac:m(q),adLayoutLoggingData:p}})]:new ZV("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
bOa=function(a,b,c,d,e,f,k,l){a=aOa(a,c,f,k,d,function(m){var n=m.slotId;m=l(m);n=yw(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",qc:q,Ad:[new vW(b.j,n)],Rc:[],Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([new CG(e),new ZF(c)]),Ac:m(p)}});
return a instanceof ZV?a:[a]};
dOa=function(a,b,c,d,e,f,k,l){a=cOa(a,c,f,k,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=yw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=wW(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,xW(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=yw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=wW(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,xW(b,n,p))):q.imageOverlayAdContentRenderer?(q=yw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=xW(b,n,p),n.push(new yW(b.j,q)),n=wW(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new QV("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new QV("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof ZV?a:[a]};
gOa=function(a,b,c,d,e,f,k){var l=Number(d.durationMilliseconds);return isNaN(l)?new ZV("Expected valid duration for AdActionInterstitialRenderer."):function(m){return eOa(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 fOa(a,n,e,function(p,q){var t=p.slotId;p=k(p);t=yw(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return pW(b,
t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new gG(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
hOa=function(a,b,c,d){if(!c.playerVars)return new ZV("No playerVars available in AdIntroRenderer.");var e=mr(c.playerVars);e.autoplay="1";return function(f){var k=f.slotId;f=d(f);k=yw(a.u.get(),"LAYOUT_TYPE_MEDIA",k);var l={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{Fr:{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",qc:new Map,Ad:[],Rc:[],Oc:[],Sc:[],Xc:[],gb:"adapter",Ea:new sV([new BG({}),new ZF(b),new qG({current:null}),new vG(e)]),Ac:f(l)},Us:[new zW(a.j,k,"error")],fq:[],Yz:[],
Xz:[]}}};
jOa=function(a,b,c,d,e,f,k,l){var m=nW(e);if(!mxa(e))return new ZV("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new ZV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=INa(a,b,e,f,c,d,k);return n instanceof ZV?n:function(p){return iOa(b,p.slotId,c,m,oW(e),k(p),n,l)}};
kOa=function(a,b,c,d,e,f,k){function l(p){return fOa(a,p,d,m)}
function m(p,q){var t=p.slotId;p=k(p);t=yw(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return pW(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new hG(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 ZV("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=AW(b,p.slotId,c,n,q,new Map,t,l);q=new mG(p.jH);return{Fr:{layoutId:p.layoutId,layoutType:p.layoutType,qc:p.qc,Ad:[],Rc:[],Oc:[],Sc:[],Xc:[],gb:p.gb,Ea:new sV([].concat(g.u(p.ow),[q])),Ac:p.Ac,adLayoutLoggingData:p.adLayoutLoggingData},Us:[],fq:p.Oc,Yz:p.Sc,Xz:p.Xc,Bh:p.Bh}}};
nOa=function(a,b,c,d,e,f,k,l,m,n,p){c=lOa(c,d,f,k,l,m,n,p);if(c instanceof ZV)return c;a=mOa(b,a,k,e,c);return a instanceof ZV?a:[].concat(g.u(a.Zh),[a.fu])};
pOa=function(a,b,c,d,e,f,k,l,m,n,p){b=lOa(b,c,e,f,l,m,n,p);if(b instanceof ZV)return b;a=oOa(a,c,f,k,d,l.Cf,b);return a instanceof ZV?a:a.Zh.concat(a.fu)};
lOa=function(a,b,c,d,e,f,k,l){var m=BW(c);return m instanceof QV?new ZV(m):function(n){var p=new QE(0,[m.Fz]),q=qOa(m.playerVars,m.wP,e,l,p);n=f(n);var t=k.get(m.GC.externalVideoId);p=rOa(a,"core",m.GC,b,q,m.Fz,d,p,n,t);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,qc:p.qc,Ad:p.Ad,Rc:p.Rc,Oc:p.Oc,Sc:p.Sc,Xc:p.Xc,gb:p.gb,Ea:p.Ea,Ac:p.Ac,adLayoutLoggingData:p.adLayoutLoggingData},Zh:[]}}};
BW=function(a){if(!a.playerVars)return new QV("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 QV("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=mr(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,T("Expected valid length seconds in player vars but got NaN"));
return{GC:a,playerVars:b,wP:a.playerVars,Fz:c}};
qOa=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){T(f)}c.vg&&(a.ctrl=c.vg);c.Og&&(a.ytr=c.Og);c.hm&&(a.ytrcc=c.hm);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Ai&&(a.vss_credentials_token_type=c.Ai),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
tOa=function(a,b,c,d,e,f,k,l,m,n,p){a=mOa(b,a,k,e,sOa(b,c,d,f,k,l,m,n,p));return a instanceof ZV?a:[].concat(g.u(a.Zh),[a.fu])};
vOa=function(a,b,c,d,e,f,k,l,m,n,p){b=sOa(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=uOa(a,c,f,k),c instanceof ZV?d=c:(f=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER"),k=yw(a.u.get(),"LAYOUT_TYPE_SURVEY",f),a=[].concat(g.u(c.uc),[new CW(a.j,k)]),f=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Pb:c.Pb,lc:c.lc,uc:a},{slotId:f,layoutId:k}),d=f instanceof ZV?f:{fu:{slotId:c.slotId,slotType:c.slotType,
slotPhysicalPosition:c.slotPhysicalPosition,Pb:c.Pb,lc:c.lc,uc:a,gb:c.gb,Ea:new sV([new EG(f.layout)]),adSlotLoggingData:d},Zh:f.Zh})):d=oOa(a,c,f,k,d,l.Cf,b);return d instanceof ZV?d:d.Zh.concat(d.fu)};
sOa=function(a,b,c,d,e,f,k,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),w=t.next();!w.done;w=t.next())if(w=w.value,w.instreamVideoAdRenderer){w=BW(w.instreamVideoAdRenderer);if(w instanceof QV){q=new ZV(w);break b}q.push(w.Fz)}}if(q instanceof ZV)p=q;else{t=0;w=[];for(var x=[],y=[],z=[],E=[],I=[],K=new rG({current:null}),P=[],aa=g.r(d),J=aa.next();!J.done;J=aa.next())if(J=J.value,J.adIntroRenderer){J=hOa(b,c,J.adIntroRenderer,k);if(J instanceof ZV){p=J;break a}J=J(n);w.push(J.Fr);x=[].concat(g.u(J.Us),
g.u(x));y=[].concat(g.u(J.fq),g.u(y));J.Bh&&(P=[J.Bh].concat(g.u(P)))}else if(J.instreamVideoAdRenderer){var qa=BW(J.instreamVideoAdRenderer);if(qa instanceof QV){p=new ZV(qa);break a}var na=new QE(t,q);J=b;var Ia=qa.GC,Na=qOa(qa.playerVars,qa.wP,f,m,na),bc=k(n),jb=l.get(qa.GC.externalVideoId);qa=rOa(J,"adapter",Ia,c,Na,qa.Fz,e,na,bc,jb);na=qa.Rc;Ia.isCritical&&(na=[new zW(J.j,qa.layoutId,"error")].concat(g.u(na)));J={layoutId:qa.layoutId,layoutType:qa.layoutType,qc:qa.qc,Ad:[],Rc:[],Oc:[],Sc:[],
Xc:[],gb:qa.gb,Ea:qa.Ea,Ac:qa.Ac,adLayoutLoggingData:qa.adLayoutLoggingData};Ia=na;qa=qa.Oc;t++;w.push(J);x=[].concat(g.u(Ia),g.u(x));y=[].concat(g.u(qa),g.u(y))}else if(J.adActionInterstitialRenderer){J=gOa(a,b,c,J.adActionInterstitialRenderer,e,t,k);if(J instanceof ZV){p=J;break a}J=J(n);w.push(J.Fr);x=[].concat(g.u(J.Us),g.u(x));y=[].concat(g.u(J.fq),g.u(y));J.Bh&&(P=[J.Bh].concat(g.u(P)))}else if(J.instreamSurveyAdRenderer){if(void 0===p){p=new ZV("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:J.instreamSurveyAdRenderer});break a}J=jOa(a,b,c,e,J.instreamSurveyAdRenderer,K,k,p);if(J instanceof ZV){p=J;break a}J=J(n);w.push(J.Fr);J.Bh&&P.push(J.Bh);x=[].concat(g.u(J.Us),g.u(x));y=[].concat(g.u(J.fq),g.u(y));z=[].concat(g.u(J.Yz),g.u(z));E=[].concat(g.u(J.Xz),g.u(E));I=[K].concat(g.u(I))}else if(J.surveyTextInterstitialRenderer){J=kOa(a,b,c,e,J.surveyTextInterstitialRenderer,K,k);if(J instanceof ZV){p=J;break a}J=J(n);w.push(J.Fr);J.Bh&&P.push(J.Bh);y=[].concat(g.u(J.fq),
g.u(y))}else{p=new ZV("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={g_:w,Rc:x,Sc:z,Xc:E,Oc:y,ow:I,Zh:P}}}p instanceof ZV?n=p:(z=n.slotId,q=p.g_,t=p.Rc,w=p.Oc,x=p.Sc,y=p.ow,n=k(n),z=yw(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),E={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",qc:new Map,Ad:[new vW(b.j,z)],Rc:t,Oc:w,Sc:x,Xc:[],gb:"core",Ea:new sV([new sG(q)].concat(g.u(y))),Ac:n(E)},
Zh:p.Zh});return n}};
xOa=function(a,b,c,d,e,f,k){if(!mxa(c))return new ZV("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=nW(c);if(0>=l)return new ZV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new rG({current:null}),n=INa(a,b,c,m,d,f,k);return wOa(a,d,f,l,e,function(p,q){var t=p.slotId,w=oW(c);p=k(p);t=yw(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,q);
X(y.Ea,"metadata_type_fulfilled_layout")||T("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new ZF(d),new JG(l),new LG(w),new MG(!0),m,new nG("LAYOUT_TYPE_SURVEY")];return{XV:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qc:new Map,Ad:[new vW(b.j,t)],Rc:[new rW(b.j,q.layoutId)],Oc:[],Sc:[new sW(b.j,q.layoutId)],Xc:[],gb:"core",Ea:new sV(w),Ac:p(x)},uV:y}})};
yOa=function(a){if(!wNa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&JF(b)?!0:(T("Invalid Sandwich with notify"),!1):!1};
zOa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?JF(a)?!0:(T("Invalid LASR with notify"),!1):!1};
DW=function(a,b,c,d,e,f,k){this.u=a;this.j=b;this.Pa=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===k?1:k};
gqa=function(a,b,c,d,e,f,k){var l=[];if(0===b.length&&0===c.length)return l;b=b.filter(kW);for(var m=c.filter(kW),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 w=AOa(a,n,t,d,e,f,k,p);w instanceof ZV?T(w,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(w))}e=BOa(a,m,d,k,p,n);l.push.apply(l,g.u(e));if(null===a.D||f&&!k.QL){var x,y,z;a=k.Cf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(x=b[0].config)?void 0:null==(y=x.adPlacementConfig)?void 0:y.kind)&&(null==(z=b[0].renderer)?void 0:z.adBreakServiceRenderer);if(!l.length&&!a){var E,I,K,P;T("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==(I=E.config)?void 0:
null==(K=I.adPlacementConfig)?void 0:K.kind,renderer:null==(P=b[0])?void 0:P.renderer})}return l}x=c.filter(kW);l.push.apply(l,g.u(ENa(n,x,a.u.get(),a.D,d,a.Pa.get())));if(!l.length){var aa,J,qa,na;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(aa=b[0])?void 0:null==(J=aa.config)?void 0:null==(qa=J.adPlacementConfig)?void 0:qa.kind,renderer:null==(na=b[0])?void 0:na.renderer})}return l};
BOa=function(a,b,c,d,e,f){function k(t){return yV(a.B.get(),t)}
var l=[];b=g.r(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&yOa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,lW(f,n,m.config.adPlacementConfig.kind),m=nOa(q.layout.layoutId,a.u.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,k,e,a.loadPolicy,a.Pa.get()),m instanceof ZV?T(m):l.push.apply(l,g.u(m))):q&&zOa(q)&&(lW(f,n,m.config.adPlacementConfig.kind),m=tOa(q.adStart.adMessageRenderer.layout.layoutId,
a.u.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,c,d,k,e,a.loadPolicy,a.Pa.get()),m instanceof ZV?T(m):l.push.apply(l,g.u(m)))}return l};
AOa=function(a,b,c,d,e,f,k,l){function m(x){return yV(a.B.get(),x)}
var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,w=k.QL&&"AD_PLACEMENT_KIND_START"===q;w=f&&!w;if(null!=n.adsEngagementPanelRenderer)return mW(b,c.elementId,q,n.adsEngagementPanelRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.adsEngagementPanelRenderer,K=yV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new RF(I),y,z,I.impressionPings,K,n.adsEngagementPanelRenderer.adLayoutLoggingData)}),[];
if(null!=n.actionCompanionAdRenderer)mW(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.actionCompanionAdRenderer,K=yV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new QF(I),y,z,I.impressionPings,K,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)mW(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.imageCompanionAdRenderer,K=yV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new VF(I),y,z,I.impressionPings,K,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)mW(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.shoppingCompanionCarouselRenderer,K=yV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new WF(I),y,z,I.impressionPings,K,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else if(n.adBreakServiceRenderer){if(!ANa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return zNa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.C)return new ZV("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");k.Cf||T("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(k.Cf),clientPlaybackNonce:k.clientPlaybackNonce});
COa(a.C,{adPlacementRenderer:c,contentCpn:d,GL:e})}else{if(n.clientForecastingAdRenderer)return bOa(a.u.get(),a.j.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return dOa(a.u.get(),a.j.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&w)return WNa(a.u.get(),a.j.get(),c,d,m);if(n.linearAdSequenceRenderer&&!w)return lW(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?vOa(a.u.get(),a.j.get(),p,t,n.linearAdSequenceRenderer.linearAds,
d,e,k,m,l,a.loadPolicy,a.Pa.get()):new ZV("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!w)return lW(b,n,q),pOa(a.u.get(),a.j.get(),p,t,n.instreamVideoAdRenderer,d,e,k,m,l,a.loadPolicy,a.Pa.get());if(n.instreamSurveyAdRenderer)return xOa(a.u.get(),a.j.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return wNa(n.sandwichedLinearAdRenderer)?vOa(a.u.get(),a.j.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,
n.sandwichedLinearAdRenderer.linearAd],d,e,k,m,l,a.loadPolicy,a.Pa.get()):new ZV("Received invalid SandwichedLinearAdRenderer.");if(null!=n.videoAdTrackingRenderer)return $Na(a.u.get(),a.j.get(),n.videoAdTrackingRenderer,p,t,d,m)}}return[]};
FW=function(a){g.G.call(this);this.j=a};
pw=function(a,b,c,d){a.j().Yh(b,d);c=c();a=a.j();GW(a.Xb,"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;ZG(d.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);ZG(d.Xb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.lb(c.slotId))throw new ZV("Slot ID was empty");if(OV(e,c))throw new ZV("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Pb.triggerType});if(!e.ke.tm.has(c.slotType))throw new ZV("No fulfillment adapter factory registered for slot of type: "+
c.slotType);if(!e.ke.fn.has(c.slotType))throw new ZV("No SlotAdapterFactory registered for slot of type: "+c.slotType);fW(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Pb?[c.Pb]:[]);fW(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.lc);fW(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.uc);var f=d.j,k=c.slotType+"_"+c.slotPhysicalPosition,l=aW(f,k);if(OV(f,c))throw new ZV("Duplicate slots not supported");l.set(c.slotId,new rNa(c));f.j.set(k,l)}catch(na){T(na,c,void 0,void 0,na.Wp);break a}OV(d.j,c).J=!0;try{var m=d.j,n=OV(m,
c),p=c.Pb,q=m.ke.xi.get(p.triggerType);q&&(q.dj("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ra.set(p.triggerId,q));for(var t=g.r(c.lc),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.ke.xi.get(x.triggerType);y&&(y.dj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Z.set(x.triggerId,y))}for(var z=g.r(c.uc),E=z.next();!E.done;E=z.next()){var I=E.value,K=m.ke.xi.get(I.triggerType);K&&(K.dj("TRIGGER_CATEGORY_SLOT_EXPIRATION",I,c,null),n.X.set(I.triggerId,K))}var P=m.ke.tm.get(c.slotType).get().ye(m.B,
c);n.K=P;var aa=m.ke.fn.get(c.slotType).get().ye(m.D,c);aa.init();n.u=aa}catch(na){T(na,c,void 0,void 0,na.Wp);LV(d,c,!0);break a}ZG(d.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Ah(c);for(var J=g.r(d.Wd),qa=J.next();!qa.done;qa=J.next())qa.value.Ah(c);TV(d,c)}};
HW=function(a,b,c,d){this.zp=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
IW=function(a,b,c,d){g.G.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.j=new Map;d.get().addListener(this);g.sf(this,function(){d.get().removeListener(e)})};
dqa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.lc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof HW?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Vp(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)};
JW=function(){g.G.apply(this,arguments);this.Ni=!0;this.ji=new Map;this.j=new Map};
DOa=function(a,b){a=g.r(a.ji.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
EOa=function(a,b){a=g.r(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}T("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.lb(b)),layoutId:b})};
CW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
zW=function(a,b,c){this.Pe=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
qW=function(a,b){this.Pe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
tW=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
KW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
LW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
vW=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
uW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
FOa=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)};
NNa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
rW=function(a,b){this.Pe=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
sW=function(a,b){this.Pe=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
yW=function(a,b){this.durationMs=45E3;this.Pe=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
GOa=function(a){return[new lG(a.Mu),new dG(a.instreamAdPlayerOverlayRenderer),new pG(a.cP),new ZF(a.adPlacementConfig),new uG(a.videoLengthSeconds),new IG(a.sG)]};
HOa=function(a,b,c,d,e,f){a=c.OF?c.OF:yw(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var k={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",qc:new Map,Ad:[new qW(function(l){return zw(f,l)},c.Mu)],
Rc:[],Oc:[],Sc:[],Xc:[],gb:b,Ea:d,Ac:e(k),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
MW=function(a){var b=this;this.u=a;this.j=function(c){return zw(b.u.get(),c)}};
IOa=function(a,b,c,d,e,f){c=new sV([new eG(c),new ZF(d)]);b=yw(a.u.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",qc:new Map,Ad:[new qW(function(k){return zw(a.u.get(),k)},e)],
Rc:[],Oc:[],Sc:[],Xc:[],gb:"core",Ea:c,Ac:f(d),adLayoutLoggingData:void 0}};
NW=function(a,b,c,d,e){return HOa(b,c,d,new sV(GOa(d)),e,a.u.get())};
JOa=function(a,b,c,d,e){var f=GOa(d);f.push(new XF(d.FT));f.push(new YF(d.HT));return HOa(b,c,d,new sV(f),e,a.u.get())};
EW=function(a,b,c,d,e,f,k,l,m){b=yw(a.u.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;k&&p.set("impression",k);return{layoutId:b,layoutType:c,qc:p,Ad:[new vW(a.j,b),new KW(a.j,e)],Rc:[],Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([d,new ZF(f),new lG(e)]),Ac:l(n),adLayoutLoggingData:m}};
xW=function(a,b,c){var d=[];d.push(new LW(a.j,c));b&&d.push(b);return d};
wW=function(a,b,c,d,e,f,k){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,qc:new Map,Ad:k,Rc:[new CW(a.j,b)],Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([new UF(d),new ZF(e)]),Ac:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
pW=function(a,b,c,d,e,f,k,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,qc:new Map,Ad:[new qW(a.j,c)],Rc:[],Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([new ZF(d)].concat(g.u(k))),Ac:e(m),adLayoutLoggingData:l}};
eOa=function(a,b,c,d,e,f,k,l,m,n){a=AW(a,b,c,d,e,f,k,l,m,n);return{Fr:{layoutId:a.layoutId,layoutType:a.layoutType,qc:a.qc,Ad:[],Rc:[],Oc:[],Sc:[],Xc:[],gb:a.gb,Ea:new sV(a.ow),Ac:a.Ac,adLayoutLoggingData:a.adLayoutLoggingData},Us:a.Rc,fq:a.Oc,Yz:a.Sc,Xz:a.Xc,Bh:a.Bh}};
iOa=function(a,b,c,d,e,f,k,l){b=AW(a,b,c,d,e,new Map,f,function(m){return k(m,l)});
a=new sW(a.j,b.jH);c=new mG(b.jH);d=new nG("LAYOUT_TYPE_SURVEY");return{Fr:{layoutId:b.layoutId,layoutType:b.layoutType,qc:b.qc,Ad:[],Rc:[],Oc:[],Sc:[],Xc:[],gb:b.gb,Ea:new sV([].concat(g.u(b.ow),[c,d])),Ac:b.Ac,adLayoutLoggingData:b.adLayoutLoggingData},Us:b.Rc,fq:b.Oc,Yz:[].concat(g.u(b.Sc),[a]),Xz:b.Xc,Bh:b.Bh}};
AW=function(a,b,c,d,e,f,k,l,m,n){b=yw(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var q=X(l.Ea,"metadata_type_fulfilled_layout");q||T("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new ZF(c),new JG(d),new LG(e)];n&&c.push(new zG(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qc:f,Ad:[],Rc:[new rW(a.j,q)],Oc:[],Sc:[],Xc:[],gb:"adapter",
ow:c,Ac:k(p),adLayoutLoggingData:m,Bh:l,jH:q}};
rOa=function(a,b,c,d,e,f,k,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new ZF(d),new $F(l),new aG(c.externalVideoId),new cG(k),new dG(c.playerOverlay.instreamAdPlayerOverlayRenderer),new LG({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new vG(e),new qG({current:null}),new uG(f)];(e=c.playerUnderlay)&&d.push(new eG(e));e=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
f:yw(a.u.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new mG(f));d.push(new oG(e));d.push(new zG(l.j));c.adNextParams&&d.push(new SF(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new fG(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new TF(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new KG(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new wG(c.sodarExtensionData));n&&d.push(new HG(n));d.push(new PG(RE(c.pings)));return{layoutId:p,
layoutType:"LAYOUT_TYPE_MEDIA",qc:SE(c.pings),Ad:[new vW(a.j,p)],Rc:c.skipOffsetMilliseconds?[new rW(a.j,f)]:[],Oc:[new rW(a.j,f)],Sc:[],Xc:[],gb:b,Ea:new sV(d),Ac:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
YNa=function(a,b,c,d,e,f,k,l){d.every(function(n){return IF(n,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout");
b=yw(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",qc:new Map,Ad:[new tW(a.j)],Rc:[],Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([new xG(c),new yG(l),new sG(d),new ZF(e),new DG(f),new AG({})]),Ac:k(m)}};
TNa=function(a){return null!=a};
OW=function(a,b,c){this.zp=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
PW=function(a,b,c){this.Pe=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
QW=function(a,b){this.Pe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
KOa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
RW=function(a,b,c){this.zp=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
SW=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
TW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
UW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
VW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
WW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
XW=function(a,b){this.Vg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
xNa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Bl:new Vp(-0x8000000000000,-0x8000000000000),VB:d},null!=c&&(d.kt=new Vp(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Bl:new Vp(0x7ffffffffffff,0x8000000000000),VB:d},null!=c&&(d.kt=new Vp(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new ZV("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Bl:new Vp(a,e),VB:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.kt=new Vp(a,e)}return d;default:return new ZV("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
YW=function(a){var b=this;this.u=a;this.j=function(c){return zw(b.u.get(),c)}};
yNa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var k=xw(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.kt&&d.kt.start!==d.Bl.start&&l.push(new HW(a.j,c,new Vp(d.kt.start,d.Bl.start),!1));l.push(new HW(a.j,c,new Vp(d.Bl.start,d.Bl.end),d.VB));d={getAdBreakUrl:b.getAdBreakUrl,vP:d.Bl.start,uP:d.Bl.end};b=new WW(a.j,k);f=[new FG(d)].concat(g.u(f));return{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Pb:b,lc:l,uc:[new uW(a.j,c),new UW(a.j,k),new VW(a.j,k)],gb:"core",Ea:new sV(f),
adSlotLoggingData:e}};
MOa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(LOa(a,b,e.value));return d};
LOa=function(a,b,c){return null!=c.Vg&&c.Vg===a?c.clone(b):c};
HNa=function(a,b,c,d,e){return NOa(a,b,c,d,e)};
fOa=function(a,b,c,d){var e=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");return NOa(a,e,b,c,d)};
NOa=function(a,b,c,d,e){var f=new QW(a.j,c),k=[new TW(a.j,b)];a=[new UW(a.j,b),new uW(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:f,lc:k,uc:a,gb:"core",Ea:new sV([new EG(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:f,lc:k,uc:a},c))]),adSlotLoggingData:void 0}};
wOa=function(a,b,c,d,e,f){var k=xw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=yw(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=ZW(a,b,c,d);d=[new TW(a.j,k)];a=[new UW(a.j,k),new uW(a.j,c),new CW(a.j,m)];if(b instanceof ZV)return b;f=f({slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Pb:b,lc:d,uc:a},{slotId:l,layoutId:m});l=f.uV;return[{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,lc:d,uc:a,gb:"core",Ea:new sV([new EG(f.XV)]),
adSlotLoggingData:e},l]};
OOa=function(a,b,c,d,e){e=e?e:xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new QW(a.j,c);var f=[new TW(a.j,e)];a=[new uW(a.j,b),new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,lc:f,uc:a,gb:"core",Ea:new sV([new EG(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,lc:f,uc:a}))])}};
POa=function(a,b,c,d){var e=xw(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new QW(a.j,c);var f=[new TW(a.j,e)];a=[new uW(a.j,b),new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Pb:c,lc:f,uc:a,gb:"core",Ea:new sV([new EG(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,gb:"core",Pb:c,lc:f,uc:a}))])}};
cOa=function(a,b,c,d,e,f){b=ZW(a,b,c,d);if(b instanceof ZV)return b;var k=b instanceof HW?new RW(a.j,c,b.j):null;d=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new TW(a.j,d)];a=[new uW(a.j,c),new UW(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:b,lc:l,uc:a},k);return f instanceof QV?new ZV(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:b,lc:l,uc:a,gb:"core",Ea:new sV([new EG(f)]),adSlotLoggingData:e}};
MNa=function(a,b,c,d){var e=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new QW(a.j,c);var f=[new TW(a.j,e)],k=[new UW(a.j,e),new uW(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,lc:f,uc:k};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,lc:[new TW(a.j,e)],uc:[new uW(a.j,b),new UW(a.j,e)],gb:"core",Ea:new sV([new EG(d(f))])}};
KNa=function(a,b,c,d,e){var f=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new PW(a.j,d,c);d=[new TW(a.j,f)];a=[new uW(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,lc:d,uc:a,gb:"core",Ea:new sV([new EG(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,lc:d,uc:a}))])}};
DNa=function(a,b,c,d,e,f){var k=xw(a.u.get(),b);return QOa(a,k,b,new QW(a.j,d),c,e,d,f)};
ZNa=function(a,b,c,d){var e=xw(a.u.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new uw(a.j,b);var f=[new TW(a.j,e)];a=[new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Pb:b,lc:f,uc:a,gb:"core",Ea:new sV([new EG(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,gb:"core",Pb:b,lc:f,uc:a}))]),adSlotLoggingData:c}};
CNa=function(a,b,c,d,e,f,k){return QOa(a,c,b,new SW(a.j,c),d,f,e,k)};
UNa=function(a,b,c){var d=xw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new KOa(a.j),f=[new XW(a.j,d)];a=[new uW(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:e,lc:f,uc:a,gb:"core",Ea:new sV([new EG(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Pb:e,lc:f,uc:a})),new AG({})])}};
mOa=function(a,b,c,d,e){b=new zW(a.j,b,"normal");a=ROa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,lc:a.lc,uc:a.uc,gb:a.gb});return e instanceof ZV?e:{fu:Object.assign({},a,{Ea:new sV([new EG(e.layout)]),adSlotLoggingData:d}),Zh:e.Zh}};
oOa=function(a,b,c,d,e,f,k){a=uOa(a,b,c,d);if(a instanceof ZV)return a;k=k({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,lc:a.lc,uc:a.uc,gb:a.gb});if(k instanceof ZV)return k;b=[new EG(k.layout)];f&&b.push(new NG({}));return{fu:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,lc:a.lc,uc:a.uc,gb:a.gb,Ea:new sV(b),adSlotLoggingData:e},Zh:k.Zh}};
ROa=function(a,b,c){var d=xw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new TW(a.j,d)];a=[new UW(a.j,d),new uW(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,lc:e,uc:a,gb:"core"}};
uOa=function(a,b,c,d){b=ZW(a,b,c,d);return b instanceof ZV?b:ROa(a,b,c)};
aOa=function(a,b,c,d,e,f){var k=xw(a.u.get(),"SLOT_TYPE_FORECASTING");b=ZW(a,b,c,d);if(b instanceof ZV)return b;d=[new TW(a.j,k)];a=[new UW(a.j,k),new uW(a.j,c)];return{slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Pb:b,lc:d,uc:a,gb:"core",Ea:new sV([new EG(f({slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Pb:b,lc:d,uc:a}))]),adSlotLoggingData:e}};
SOa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new uw(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=xNa(b,d),a instanceof ZV?a:e(a.Bl,f);case "AD_PLACEMENT_KIND_END":return new OW(a.j,c,f);default:return new ZV("Cannot construct entry trigger",{kind:b.kind})}};
ZW=function(a,b,c,d){return SOa(a,b,c,d,function(e,f){return new HW(a.j,c,e,f)})};
QOa=function(a,b,c,d,e,f,k,l){var m=[new XW(a.j,b)];a=[new uW(a.j,e),new UW(a.j,b),new zW(a.j,k,"error")];return{slotId:b,slotType:c,slotPhysicalPosition:1,Pb:d,lc:m,uc:a,gb:"core",Ea:new sV([new EG(l({slotId:b,slotType:c,slotPhysicalPosition:1,gb:"core",Pb:d,lc:m,uc:a}))]),adSlotLoggingData:f}};
$W=function(a,b){g.G.call(this);this.Pa=a;this.u=b;this.eventCount=0};
ZG=function(a,b,c){GW(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
PV=function(a,b,c,d){GW(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
jNa=function(a,b,c,d){var e=a.Pa.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"))&&GW(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
GW=function(a,b,c,d,e,f,k,l,m,n){try{if(!TOa(a)&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=xV(a.u.get()),q=UOa(a,p,b,c,d,e,f,k,l,m,n);g.Ds("adsClientStateChange",{adsClientEvent:q})}}catch(t){g.Tr(g.Vr(),function(){T(t instanceof Error?t:String(t),f,k,{pacf_message:"exception during pacf logging"})})}};
TOa=function(a){var b=a.Pa.get();return!(b.I.V().N("html5_enable_ads_client_monitoring_log_live_infra")||(g.HC(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.Pa.get().I.V().N("html5_disable_client_tmp_logs")};
UOa=function(a,b,c,d,e,f,k,l,m,n,p){c={eventType:c,eventOrder:++a.eventCount};var q={};k&&(q.slotData=vV(b,k));l&&(q.layoutData=$Ma(b,l));m&&(q.triggerData=uV(m.trigger,m.category));d&&(q.opportunityData=aNa(b,d,e,f));b={organicPlaybackContext:{contentCpn:qw(a.j.get(),1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=qw(a.j.get(),1).Cf;var t;b.organicPlaybackContext.isMdxPlayback=null==(t=qw(a.j.get(),1))?void 0:t.isMdxPlayback;var w;if(a=null==(w=qw(a.j.get(),2))?void 0:w.clientPlaybackNonce)b.adVideoPlaybackContext=
{adVideoCpn:a};b&&(q.externalContext=b);c.adClientData=q;n&&(c.serializedSlotAdServingData=n.serializedSlotAdServingDataEntry);p&&(c.serializedAdServingData=p.serializedAdServingDataEntry);return c};
aX=function(a,b,c){$W.call(this,a,b);this.j=c};
bX=function(){this.j=new Map};
cX=function(a,b,c,d,e){g.G.call(this);this.I=a;this.B=b;this.Ga=c;this.C=d;this.u=e;this.listeners=[];var f=new fv(this);g.H(this,f);f.T(a,"internalAbandon",this.TG);g.sf(this,function(){g.hv(f)})};
dX=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.Kw("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.Lw("ad"),this.onCueRangeExit,this)};
VOa=function(a,b,c,d,e){g.Iw.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
eX=function(a){this.I=a};
fX=function(a){this.I=a};
gX=function(a){var b,c,d;return(null==(b=a.I.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
hNa=function(a){if(g.SC(a.I.V()))return a.I.V().N("html5_enable_vod_lsar_ivar_pacf_unplugged");if(GC(a.I.V())||g.HC(a.I.V()))return!0;T("Composite VOD on legacy path.");return!1};
WOa=function(a){return a.I.V().N("html5_recognize_predict_start_cue_point")};
hX=function(a){return a.I.V().N("html5_enable_common_timer_for_survey_web")};
XOa=function(a){return a.I.V().experiments.kb("enable_desktop_player_underlay")};
YOa=function(a){return a.I.V().experiments.kb("html5_disable_lidar")};
iX=function(a,b){this.Ga=a;this.I=b;this.j=new Map;PE().subscribe("adactiveviewmeasurable",this.Ix,this);PE().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Hx,this);PE().subscribe("adviewableimpression",this.Jx,this);PE().subscribe("adaudioaudible",this.Fx,this);PE().subscribe("adaudiomeasurable",this.Gx,this)};
kX=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?T("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),Yha(Vl(mp),c),zwa(PE(),b,{Pw:function(){return d?{currentTime:a.Ga.get().getCurrentTimeSec(2,!1),duration:d,Jc:2===a.Ga.get().getPresentingPlayerType()&&1===jX(a.Ga.get(),2),Iha:!1,Jha:!0,volume:a.Ga.get().isMuted()?0:a.Ga.get().getVolume()/100}:{}}}))};
lX=function(a,b){a.j.has(b)?(a.j.delete(b),delete PE().j[b]):T("Unexpected unregistration of layout in LidarApi")};
mX=function(a,b,c){this.B=c;this.C=a;this.D=b};
nX=function(a,b,c,d){var e=void 0===e?new mX(function(){var f=a.getVideoData(1);return f?g.AE(f):""},function(){return a.V().pageId},function(f){return a.V().N(f)}):e;
this.I=a;this.u=b;this.B=c;this.C=d;this.Vp=e;this.rC=null;this.j=new Map;this.ai=new hF(e);this.D=a.V().experiments.kb("html5_disable_lidar")};
$Oa=function(a,b,c,d){d=void 0===d?[]:d;var e=EOa(a.u.get(),c);e?(c=oX(a,ZOa(e),e),b.hasOwnProperty("baseUrl")?a.Vp.send(b,c):a.ai.send(b,c,{},d)):T("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
pX=function(a,b){g.Ds("adsClientStateChange",b)};
qX=function(a,b){a.j.has(b.Sw())?T("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Sw(),b)};
rX=function(a,b){a.j.delete(b.Sw())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
ZOa=function(a){var b=X(a.Ea,"metadata_type_ad_placement_config");a=X(a.Ea,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,PN:a}};
oX=function(a,b,c,d){var e=c?aPa(a):{};c=c?bPa(a,c.layoutId):{};var f=a.I.V().N("enable_macro_substitution_on_html5")?cPa(a):{},k={},l={};d=Object.assign({},cF(a.I,d),Hwa(b.adPlacementConfig),(k.SLOT_POS=bF(function(){return(b.PN||0).toString()}),k),c,e,f,(l.FINAL=bF(function(){return"1"}),l.AD_CPN=bF(function(){var m;
return(null==(m=qw(a.C.get(),2))?void 0:m.clientPlaybackNonce)||""}),l));
e={};c=g.r(Object.values(dPa));for(f=c.next();!f.done;f=c.next())f=f.value,k=d[f],null!=k&&(e[f]=k.toString());return e};
aPa=function(a){var b={},c,d=null==(c=a.rC)?void 0:ePa(c);null!=d&&(b.SURVEY_ELAPSED_MS=bF(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=bF(function(){return Math.round(Date.now()/1E3).toString()});
return b};
bPa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.dF();if(!a)return{};b={};return b.YT_ERROR_CODE=a.JC.toString(),b.ERRORCODE=a.Uy.toString(),b.ERROR_MSG=a.errorMessage,b};
cPa=function(a){var b={},c=a.I.getVideoData(1);b.ASR=bF(function(){var d;return null!=(d=null==c?void 0:c.vj)?d:null});
b.EI=bF(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
sX=function(a,b,c){g.G.call(this);this.I=a;this.j=b;this.Pa=c;this.listeners=[];this.jG=null;this.cE=new Map;b=new g.iA(this);g.H(this,b);b.T(a,"videodatachange",this.gZ);b.T(a,"serverstitchedvideochange",this.CY);this.jq=qw(this)};
qw=function(a,b){var c=a.I.getVideoData(b);return c?fPa(a,c,b||a.I.getPresentingPlayerType(!0)):null};
gPa=function(a,b,c){var d=fPa(a,b,c);a.jq=d;a.listeners.forEach(function(e){e.HO(d)})};
fPa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,k=b.xc,l=b.title,m=b.vg,n=b.Og,p=b.isMdxPlayback,q=b.Ai,t=b.mdxEnvironment,w=b.wl,x=b.Al,y=b.cq,z=b.videoId||"",E=b.profilePicture||"",I=b.rj||"";b=b.hm||void 0;k=a.j.get().j.get(k)||{layoutId:null,slotId:null};var K=a.I.getVideoData(1),P=K.Cf();K=K.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var aa,J,qa=(null==K?void 0:null==(aa=K.playerConfig)?void 0:null==(J=aa.daiConfig)?void 0:J.enableDai)||!1,na,
Ia;aa=(null==K?void 0:null==(na=K.playerConfig)?void 0:null==(Ia=na.daiConfig)?void 0:Ia.enablePreroll)||!1;return Object.assign({},k,{videoId:z,author:d,clientPlaybackNonce:e,playbackDurationMs:c,GL:a,daiEnabled:qa,QL:aa,isListed:f,Cf:P,profilePicture:E,title:l,rj:I,vg:m,Og:n,hm:b,isMdxPlayback:p,Ai:q,mdxEnvironment:t,wl:w,Al:x,cq:y})};
tX=function(a,b){g.G.call(this);this.I=a;this.j=b;this.listeners=[];this.lq=function(){T("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.fY);b.T(a,"presentingplayerstatechange",this.WX);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.pg);b.T(a,"resize",this.xb);c.T(a,g.Kw("appad"),this.Wj)};
uX=function(a,b){var c;b=null!=(c=a.j.get().cE.get(b))?c:null;if(null===b)return T("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a<b?0:a-b};
jX=function(a,b){return a.I.yb(b)};
hPa=function(a){var b=a.I.bb().Hg();a=a.I.Lj(!0,!0);return b.height-(a.height+a.top)};
iPa=function(a){a.I.cueVideoByPlayerVars({videoId:"empty_video"},2)};
jPa=function(a,b){var c=a.I.V();vC(c)||"3"!==c.controlsType||a.I.bb().zy(b)};
vX=function(a,b){g.M(a.I.getRootNode(),b)};
wX=function(a,b){g.Fp(a.I.getRootNode(),b)};
kPa=function(a,b,c,d,e){g.G.call(this);var f=this;this.u=Y(function(){return new ww});
g.H(this,this.u);this.X=Y(function(){return new MW(f.u)});
g.H(this,this.X);this.K=Y(function(){return new JW});
g.H(this,this.K);this.B=Y(function(){return new FW(a)});
g.H(this,this.B);this.C=Y(function(){return new YW(f.u)});
g.H(this,this.C);this.ra=Y(function(){return new bX});
g.H(this,this.ra);this.va=Y(function(){return new jW(e)});
this.S=Y(function(){return new dX(b)});
g.H(this,this.S);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.Pa=Y(function(){return new fX(b)});
g.H(this,this.Pa);this.D=Y(function(){return new zV(f.Pa)});
g.H(this,this.D);this.J=Y(function(){return new DW(f.C,f.X,f.Pa,f.D,null,null)});
g.H(this,this.J);this.j=Y(function(){return new sX(b,f.ra,f.Pa)});
g.H(this,this.j);this.Xb=new aX(this.Pa,this.D,this.j);g.H(this,this.Xb);this.Ga=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ga);this.Z=Y(function(){return new iX(f.Ga,b)});
g.H(this,this.Z);this.Sa=Y(function(){return new nX(b,f.K,f.Z,f.j)});
g.H(this,this.Sa);this.Cc=new vw(this.B,this.J,c,this.Pa,a,this.j,this.Ga);g.H(this,this.Cc);var k=new cX(b,this.Cc,this.Ga,this.j);this.xa=Y(function(){return k});
this.Xo=k;this.ma=new IW(this.B,this.C,this.S,this.xa);g.H(this,this.ma);this.Ec=new ow(this.B,this.C,this.J,this.j,this.ma,c);g.H(this,this.Ec);this.ke={Yq:new Map,tm:new Map,xi:new Map,fn:new Map,Lm:new Map};this.listeners=[];this.Nq={Ec:this.Ec,Pk:null,Nm:null,Dg:this.Pa.get(),jb:this.va.get(),gp:this.Ga.get(),Cc:this.Cc,Oj:this.u.get(),Mm:null,Ri:{EF:function(){}},
qh:this.K.get(),ek:this.j.get()}};
xX=function(){this.listeners=new Set};
yX=function(){};
lPa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&rea(b.siub,b.scs,b.bgub,b.bgp)};
mPa=function(a,b,c,d){this.callback=a;this.slot=b;this.B=c;this.u=d;this.j=null};
nPa=function(a,b,c,d){a.j&&T("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.Ku?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",k=a.B.get(),l=a.slot.slotId,m=yV(a.u.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,gb:a.slot.gb,Pb:a.slot.Pb,lc:a.slot.lc,uc:a.slot.uc}),n=yw(k.u.get(),f,l),p={layoutId:n,layoutType:f,gb:"core"};e={layoutId:n,
layoutType:f,qc:new Map,Ad:[new FOa(k.j,l)],Rc:[],Oc:[],Sc:[],Xc:[],gb:"core",Ea:new sV([new GG(e)]),Ac:m(p)};iNa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Ei||MV(a.callback,a.slot,new ZV(e,void 0,!0))})};
oPa=function(a){if(null==a.j)a.callback.CB(a.slot);else try{a.j.cancel(),a.j=null,a.callback.CB(a.slot)}catch(b){a.j=null,MV(a.callback,a.slot,new ZV(b))}};
zX=function(a,b,c,d,e,f){this.slot=b;this.u=c;this.B=f;this.j=new mPa(a,b,d,e)};
pPa=function(a){var b;null==(b=a.B)||b.get().bp(X(a.slot.Ea,"metadata_type_cue_point").identifier)};
AX=function(a,b,c,d,e){this.callback=a;this.slot=b;this.u=c;this.j=new mPa(a,b,d,e)};
BX=function(a,b){this.callback=a;this.slot=b};
CX=function(a,b){return tw(a,b.Xd,b.slotType)?!0:!1};
DX=function(){};
EX=function(a,b,c,d){this.j=a;this.B=b;this.u=c;this.D=d};
ZX=function(){};
qPa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
iY=function(a,b){return IF(a,b.Xd,b.Ue)?!0:!1};
kY=function(a){this.j=a};
lY=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Sa=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,PN:e}};
mY=function(){return["metadata_type_ad_placement_config"]};
nY=function(a){var b=a.Sa.get();return oX(b,a.J)};
oY=function(a,b){a.C.has(b)||a.Lf(b)};
pY=function(a,b,c){for(c=void 0===c?!1:c;a.j<a.u.length;){var d=a.u[a.j];if(d.offsetMilliseconds<=b||c)rPa(a,"progress",[d]),a.j++;else break}};
qY=function(a,b){return a.C.has(b)};
rPa=function(a,b,c){var d,e=a.Sa.get(),f=a.layoutId;a=null!=(d=a.B)?d:void 0;c=void 0===c?[]:c;if(d=EOa(e.u.get(),f))for(b=e.D?{}:e.B.get().Lf(f,b),f=oX(e,ZOa(d),d,a),c=g.r(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.ai.send(d.baseUrl,f,b,d.headers);else T("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
sPa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Sa=d;this.j=e;a=X(this.layout.Ea,"metadata_type_ad_placement_config");this.u=new lY(c.qc,this.Sa,a,c.layoutId)};
tPa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];mY().forEach(function(b){a.push(b)});
return{Xd:a,Ue:["LAYOUT_TYPE_FORECASTING"]}};
rY=function(a,b){this.Sa=a;this.j=b};
sY=function(a,b,c,d){g.iv.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.j=[]};
tY=function(a,b,c,d,e,f,k){e=X(c.Ea,e);a=nY(a);var l=Dg(function(){d.Mc(b,c)});
k.push(f(e,a,c.layoutId,{adsClientData:c.Ac},function(){l()}))};
uY=function(a,b,c,d,e,f,k,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.r(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.I.sendVideoStatsEngageEvent(1,void 0,2):e?e():T("Tried to call engagePingCallback but it is null",k,l)}}else T("Companion AdUxClick received without a layoutId",k,l)};
uPa=function(a,b,c,d,e){LE.call(this,"action-companion",a,b,c,d,e)};
vY=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Sa=e;this.Ee=f;this.J=l;this.Ni=!0;this.B=null;this.C=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");KV(this.Ee(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.D=new lY(c.qc,this.Sa,a,c.layoutId)};
vPa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)});
return{Xd:a,Ue:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
wY=function(a,b,c,d,e){sY.call(this,a,b,c,d);a=X(c.Ea,"metadata_type_ad_placement_config");this.B=new lY(c.qc,e,a,c.layoutId)};
wPa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];mY().forEach(function(b){a.push(b)});
return{Xd:a,Ue:["LAYOUT_TYPE_ENDCAP"]}};
xY=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Ga=e;this.Sa=f;this.D=k;this.C=l;this.B=!1;this.J=X(this.layout.Ea,"metadata_type_linked_player_bytes_layout_id")};
xPa=function(){return{Xd:["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"],Ue:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
yY=function(a,b,c,d,e,f,k,l){return iY(c,xPa())?new xY(a,b,c,d,e,f,k,l):iY(c,wPa())?new wY(a,b,c,d,f):null};
zY=function(a,b,c,d,e){this.u=a;this.Ga=b;this.Sa=c;this.B=d;this.j=e};
AY=function(a,b,c,d,e,f){g.G.call(this);this.callback=a;this.Yd=b;this.Ga=c;this.xd=d;this.Ee=e;this.Pa=f;this.Ni=!0;this.NF=!1};
BY=function(a,b,c,d,e,f,k,l,m,n){AY.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=k;this.J=l;this.u=[];this.j=-1;this.C=!1};
CY=function(a,b,c){var d=X(a.Kb().Ea,"metadata_type_linked_in_player_layout_id");return d?d:(T("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Gd(),a.Kb(),{requestingSlot:b,requestingLayout:c}),null)};
DY=function(a,b,c,d){if(!a.C){var e=a.u[a.j];e?(e.Kb().layoutId!==c.layoutId&&T("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Kb().layoutId}),a.C=!0,e.lf(e.Kb(),d),LF(a.B,b,c,d),a.C=!1,a.D?(a.D(),a.xd.get().Hu()):yPa(a)):T("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
yPa=function(a){if(a.j===a.u.length-1)a.j++,EY(a.J,a.layout.layoutId),a.xd.get().Hu();else{-1===a.j&&a.callback.Mc(a.slot,a.layout);a.j++;var b=a.u[a.j];0<a.j&&a.xd.get().hI();b.startRendering(b.Kb())}};
FY=function(a){return!a.Vo.Jc()&&a.state.Jc()};
GY=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
zPa=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)};
APa=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))};
BPa=function(a,b,c,d){this.D=a;this.layoutId=c;this.J=d;this.u=[];this.j=[];this.B=this.C=0;a=g.r(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":zPa(b)?this.u.push(b):T("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":APa(b)?this.j.push(b):T("Invalid AdVideoProgressMillisecondsCommand");break;default:T("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
IY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w){g.G.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Sa=d;this.ma=e;this.Ga=f;this.xd=k;this.Ia=l;this.B=m;this.J=n;this.position=q;this.Da=t;this.Pa=w;this.Ni=!0;this.xa=!1;this.u="not_rendering";this.S=!1;a=X(this.layout.Ea,"metadata_type_ad_placement_config");this.j=new lY(c.qc,this.Sa,a,c.layoutId);var y;a=(null==(y=HY(this))?void 0:y.progressCommands)||[];this.Va=new BPa(m,a,c.layoutId,function(){return x.ym()});
this.va=Dg(function(){x.callback.Mc(x.slot,x.layout)});
this.K=Dg(function(){"rendering_stop_requested"!==x.u&&p(x);x.X?x.callback.Yc(x.slot,x.layout,x.X):T("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
HY=function(a){return X(a.layout.Ea,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
KY=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.u){pY(a.j,1E3*b,c);a.S||pY(a.j,1E3*b,void 0===c?!1:c);var d=a.ym();if(d){d/=1E3;if(b>=.25*d||c)oY(a.j,"first_quartile"),JY(a,"unmuted_first_quartile");if(b>=.5*d||c)oY(a.j,"midpoint"),JY(a,"unmuted_midpoint");if(b>=.75*d||c)oY(a.j,"third_quartile"),JY(a,"unmuted_third_quartile");a=a.Va;b*=1E3;if(c=a.J()){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.D.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.j.length;)if(c=
a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.D.get().executeCommand(c.command,a.layoutId),a.B++;else break}}}};
LY=function(a,b){a.S||a.j.Lf(b)};
JY=function(a,b){a.S||oY(a.j,b)};
NY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x){IY.call(this,a,b,c,d,e,f,k,m,n,p,q,t,w,x);var y=this;this.Qc=l;this.WA=!0;this.Z=this.C=0;hX(this.Pa.get())?(this.D=new SG(this.ym(),function(z){KY(y,z/1E3);MY(y,z)},function(){KY(y,y.ym()/1E3,!0);
MY(y,y.ym());y.K()}),g.H(this,this.D)):(this.timer=new g.Fi(200),this.timer.Oa("tick",function(){y.Qb()}),g.H(this,this.timer))};
CPa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r(mY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Xd:a,Ue:["LAYOUT_TYPE_MEDIA_BREAK"]}};
DPa=function(a){hX(a.Pa.get())?a.D.start():(a.Z=Date.now(),MY(a,a.C),a.timer.start())};
ePa=function(a){return hX(a.Pa.get())?a.D.j/1E3:a.C/1E3};
MY=function(a,b){b={current:b/1E3,duration:a.ym()/1E3};a.Qc.get().La("onAdPlaybackProgress",b)};
OY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x,y,z,E,I,K){IY.call(this,a,b,c,d,e,m,p,t,w,y,z,E,I,K);var P=this;this.Ra=f;this.Yd=k;this.ra=l;this.Z=n;this.Qc=q;this.Qa=x;this.adCpn="";this.D=new g.L(function(){P.Dx("load_timeout",new QV("Media layout load timeout.",{},!0))},1E4)};
EPa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r(mY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Xd:a,Ue:["LAYOUT_TYPE_MEDIA"]}};
PY=function(a,b,c,d,e,f,k){AY.call(this,a,b,c,d,f,k);this.j=e};
GPa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x,y,z,E,I){if(iY(d,{Xd:["metadata_type_sub_layouts"],Ue:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var K=X(d.Ea,"metadata_type_sub_layouts");a=new BY(a,n,q,w,b,c,d,f,e,I);e=[];for(b={Dp:0};b.Dp<K.length;b={Dp:b.Dp},b.Dp++){var P=FPa({Mc:a.PY.bind(a),Yc:a.RY.bind(a),Ff:a.QY.bind(a)},c,K[b.Dp],k,l,m,n,p,q,t,w,x,y,z,E,function(aa){return function(J){J.lf(K[aa.Dp],"normal")}}(b),b.Dp,K.length,I);
if(!P)return;e.push(P)}a.u=e;return a}if(iY(d,{Xd:[],Ue:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=FPa({Mc:a.Mc.bind(a),Yc:a.Yc.bind(a),Ff:a.Ff.bind(a)},c,d,k,l,m,n,p,q,t,w,x,y,z,E,function(){EY(f,d.layoutId)},0,1,I))?new PY(a,n,q,w,c,e,I):c};
FPa=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x,y,z,E,I){if(iY(c,CPa()))return new NY(a,b,c,d,e,m,p,q,t,w,function(){},y,z,E,I);
if(iY(c,EPa()))return rw(c.Ea,"metadata_type_ad_intro")?new OY(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x,function(K){q.get().La("onAdIntroStateChange",K)},y,z,E,I):new OY(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x,function(K){q.get().aj(K)},y,z,E,I)};
QY=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x){this.Ee=a;this.J=b;this.Sa=c;this.D=d;this.S=e;this.Yd=f;this.K=k;this.Ga=l;this.B=m;this.xd=n;this.Qc=p;this.j=q;this.u=t;this.C=w;this.Pa=x};
RY=function(a,b,c,d,e,f,k,l){g.G.call(this);var m=this;this.C=a;this.D=b;this.u=d;this.Ga=e;this.Pa=f;this.Sa=k;this.B=l;this.j=null;c.get().addListener(this);g.sf(this,function(){c.get().removeListener(m)});
d.get().addListener(this);g.sf(this,function(){d.get().removeListener(m)})};
COa=function(a,b){if(a.j)T("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.r(a.u.get().zC);for(var c=b.next();!c.done;c=b.next())HPa(a,a.j,c.value)}};
HPa=function(a,b,c){var d=a.Ga.get().getCurrentTimeSec(1,!1);a.Pa.get().I.V().experiments.kb("html5_ssdai_log_ad_transition_info")&&a.Sa.get().Uh("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.durationSecs.toFixed(3));pw(a.C.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.D.get(),f=gX(a.Pa.get());var k=1E3*c.startSecs;k={Bl:new Vp(k,k+1E3*c.durationSecs),VB:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new Vp(1E3*(c.startSecs-4),1E3*l);else{var m=
Math.max(0,c.startSecs-d-10);f=new Vp(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}k.kt=f;return[yNa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,k,b.adPlacementRenderer.adSlotLoggingData,[new tG(c)])]})};
SY=function(a,b,c,d,e,f,k,l,m){g.G.call(this);this.J=a;this.S=b;this.K=c;this.D=d;this.u=e;this.B=f;this.j=k;this.Pa=l;this.C=m;this.Ni=!0};
IPa=function(a,b,c){return POa(a.u.get(),b.contentCpn,b.Mu,function(d){return IOa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Mu,yV(a.j.get(),d))})};
TY=function(a){var b,c=null==(b=X(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(c){b=a.layoutId;var d=X(a.Ea,"metadata_type_content_cpn"),e=X(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),f=X(a.Ea,"metadata_type_player_underlay_renderer"),k=X(a.Ea,"metadata_type_ad_placement_config"),l=X(a.Ea,"metadata_type_video_length_seconds");var m=rw(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?X(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):rw(a.Ea,"metadata_type_layout_enter_ms")&&
rw(a.Ea,"metadata_type_layout_exit_ms")?(X(a.Ea,"metadata_type_layout_exit_ms")-X(a.Ea,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Mu:b,contentCpn:d,cP:c,instreamAdPlayerOverlayRenderer:e,instreamAdPlayerUnderlayRenderer:f,adPlacementConfig:k,videoLengthSeconds:l,sG:m,OF:X(a.Ea,"metadata_type_linked_in_player_layout_id"),ZM:X(a.Ea,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
KPa=function(a,b){return JPa(a,b)};
LPa=function(a,b){b=JPa(a,b);if(!b)return null;var c;b.sG=null==(c=X(a.Ea,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
JPa=function(a,b){var c,d=null==(c=X(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;rw(a.Ea,"metadata_ad_video_is_listed")?c=X(a.Ea,"metadata_ad_video_is_listed"):b?c=b.isListed:(T("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);rw(a.Ea,"metadata_type_ad_info_ad_metadata")?b=X(a.Ea,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.rj,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(T("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{FT:b,adPlacementConfig:X(a.Ea,"metadata_type_ad_placement_config"),HT:c,contentCpn:X(a.Ea,"metadata_type_content_cpn"),OF:X(a.Ea,"metadata_type_linked_in_player_layout_id"),ZM:X(a.Ea,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:X(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,sG:void 0,cP:d,Mu:a.layoutId,videoLengthSeconds:X(a.Ea,"metadata_type_video_length_seconds")}};
MPa=function(a,b){this.callback=a;this.slot=b};
UY=function(){};
NPa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c};
OPa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c;this.u=!1;this.j=0};
PPa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c};
VY=function(a){this.Ga=a};
WY=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
XY=function(a){g.G.call(this);this.CD=a;this.Mb=new Map};
QPa=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof sW&&f.Pe===b&&c.push(e)}c.length?XV(a.CD(),c):T("Survey is submitted but no registered triggers can be activated.")};
YY=function(a,b){XY.call(this,a);var c=this;b.get().addListener(this);g.sf(this,function(){b.get().removeListener(c)})};
ZY=function(a){g.G.call(this);this.j=a;this.Ni=!0;this.Mb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.J=new Set;this.u=new Set};
$Y=function(a,b){g.G.call(this);var c=this;this.j=a;this.Mb=new Map;b.get().addListener(this);g.sf(this,function(){b.get().removeListener(c)})};
RPa=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 uW){var k=f.trigger.j===b;k===c?e.push(f):d&&k&&(T("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
aZ=function(a,b,c,d){g.G.call(this);var e=this;this.u=a;this.B=b;this.Ga=c;this.C=d;this.Mb=new Map;this.j=new Set;c.get().addListener(this);g.sf(this,function(){c.get().removeListener(e)})};
bZ=function(a,b,c,d,e,f,k,l,m,n){if(qw(a.C.get(),1).clientPlaybackNonce!==m)throw new ZV("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Mb.set(c.triggerId,{bundle:new WY(b,c,d,e),bA:f});a.B.get().addCueRange(f,k,l,n,a)};
SPa=function(a,b){a=g.r(a.Mb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;if(b===d.bA)return c}return""};
cZ=function(a){g.G.call(this);this.B=a;this.Ni=!0;this.Mb=new Map;this.u=this.j=null};
EY=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof vW){var f;if(f=e.trigger.layoutId===b)f=(f=kNa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&XV(a.B(),c)};
dZ=function(a){g.G.call(this);this.j=a;this.Ni=!0;this.Mb=new Map};
eZ=function(a,b){g.G.call(this);this.j=a;this.u=b;this.u.get().addListener(this)};
fZ=function(a,b,c,d,e,f){g.G.call(this);this.B=a;this.D=b;this.J=c;this.S=d;this.K=e;this.Pa=f;this.j=this.u=null;this.C=!1;this.D.get().addListener(this)};
wxa=function(a,b,c,d,e){var f=xw(a.K.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:void 0,lc:[],uc:[],gb:"surface",Ea:new sV([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",qc:new Map,Ad:[],Rc:[],Oc:[],Sc:[],Xc:[],gb:"surface",Ea:new sV(c),Ac:wV(xV(a.J.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};UV(a.B(),a.u,a.j);d&&(VV(a.B(),a.u,a.j),a.C=!0,WV(a.B(),a.u,a.j))};
gZ=function(a){this.Sp=a};
TPa=function(a,b){if(!a)return{fm:[],Ku:!0};a.trackingParams&&Zxa(CH(),a.trackingParams);if(a.adThrottled)return{fm:[],Ku:!0};a=a.playerAds;if(!a||!a.length)return{fm:[],Ku:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{fm:[],Ku:!1};if(0<b.end){var c=b.end.toString();a.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===d.kind&&d.adTimeOffset&&"-1"===d.adTimeOffset.offsetEndMilliseconds&&d.adTimeOffset.offsetEndMilliseconds!==c&&(d.adTimeOffset.offsetEndMilliseconds=c)})}return{fm:a,
Ku:!1}};
hZ=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.FG);this.j.T(this.I,"aduxmouseout",this.EG);this.j.T(this.I,"muteadaccepted",this.BW)};
UPa=function(a,b,c){b=g.Sl(b,function(d){return new Ow(d,c,d.id)});
a.I.La("onAdUxUpdate",b)};
iZ=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
jZ=function(a,b,c){g.G.call(this);this.I=a;this.Pa=b;this.Sa=c;this.listeners=[];this.zC=[];this.B=new cH(this,WOa(b.get()));this.u=new dH;this.j=null};
VPa=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:throw Error("Unexpected cuepoint event");}};
kZ=function(a){this.I=a};
lZ=function(a){this.I=a};
mZ=function(){this.listeners=[]};
WPa=function(a){this.I=a};
XPa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ga=d;this.Sa=e;a=X(c.Ea,"metadata_type_ad_placement_config");this.j=new lY(c.qc,this.Sa,a,c.layoutId)};
YPa=function(a,b){this.Ga=a;this.Sa=b};
nZ=function(a,b,c,d,e,f,k,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.K=e;this.D=f;this.Ga=k;this.j=l;this.Sa=m;this.S=n;this.driftRecoveryMs=X(this.layout.Ea,"metadata_type_drift_recovery_ms")||null};
ZPa=function(a){var b=X(a.layout.Ea,"metadata_type_layout_enter_ms"),c=X(a.layout.Ea,"metadata_type_layout_exit_ms");a=a.D.get();b=eH(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
oZ=function(a,b){var c;pX(a.Sa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.B.get().jq)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ac.adClientDataEntry},b)})};
pZ=function(a,b,c,d,e,f,k,l,m,n,p){nZ.call(this,a,b,c,d,e,f,k,l,m,n);this.J=p;this.C=this.u=null;a=g.r(this.J);for(b=a.next();!b.done;b=a.next())b=b.value,rw(b.Kb().Ea,"metadata_type_survey_overlay")&&(this.C=b.Kb().layoutId)};
aQa=function(a,b){var c=$Pa(a,b);a.u={Fi:c};c?c.startRendering(c.Kb()):b===a.C&&T("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
$Pa=function(a,b){return null==b?null:a.J.find(function(c){return c.Kb().layoutId===b})||null};
bQa=function(a,b,c,d,e,f,k,l,m,n){var p=e-d,q=rw(b.Ea,"metadata_type_survey_overlay");if(!p)return k.ix(c,2,f,d,e,a.slotId),n.Uh("ads_iraot","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q),null;c=k.Ns(c,2,f,d,e,a.slotId);n.Uh("ads_atct","d."+p+";sid."+a.slotId+";vl."+f+";enterMs."+d+";exitMs."+e+";hso."+q);if(!c)return T("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;c?(l.j.has(c)&&T("Unexpected remap of timeline playback"),l.j.set(c,
{slotId:a,layoutId:b})):T("Invalid timeline playback ID");d+f>e&&k.Pu(c,e-d);return c};
cQa=function(a,b){var c=X(b.Ea,"metadata_type_sodar_extension_data");if(c)try{lPa(0,c)}catch(d){T("Unexpected error when loading Sodar",a,b,{error:d})}};
dQa=function(a,b,c,d,e,f){c=new g.vF(c,new g.mH);qZ(a,b,c,d,e,!1,f)};
qZ=function(a,b,c,d,e,f,k){f=void 0===f?!0:f;FY(c)&&GY(e,0,null)&&(!qY(a,"impression")&&k&&k(),oY(a,"impression"));qY(a,"impression")&&(g.xF(c,4)&&!g.xF(c,2)&&a.Lf("pause"),0>wF(c,4)&&!(0>wF(c,2))&&a.Lf("resume"),g.xF(c,16)&&.5<=e&&a.Lf("seek"),f&&g.xF(c,2)&&rZ(a,c.state,b,d,e))};
rZ=function(a,b,c,d,e,f){if(qY(a,"impression")){var k=1>=Math.abs(d-e);sZ(a,b,k?d:e,c,d,f);k&&oY(a,"complete")}};
sZ=function(a,b,c,d,e,f){pY(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(GY(c,.25*e,d)&&(f&&!qY(a,"first_quartile")&&f("first"),oY(a,"first_quartile")),GY(c,.5*e,d)&&(f&&!qY(a,"midpoint")&&f("second"),oY(a,"midpoint")),GY(c,.75*e,d)&&(f&&!qY(a,"third_quartile")&&f("third"),oY(a,"third_quartile")))};
eQa=function(a,b){qY(a,"impression")&&a.Lf(b?"fullscreen":"end_fullscreen")};
fQa=function(a){qY(a,"impression")&&a.Lf("clickthrough")};
gQa=function(a){a.Lf("active_view_measurable")};
hQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.Lf("active_view_fully_viewable_audible_half_duration")};
iQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.Lf("active_view_viewable")};
jQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.Lf("audio_audible")};
kQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.Lf("audio_measurable")};
lQa=function(a,b,c,d,e,f,k,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.j=e;this.Ga=f;this.K=k;this.B=l;this.J=m;this.Pa=n;this.Sa=p;this.C=q;this.WA=!0;this.xc=this.u=null};
mQa=function(a,b,c){var d;a.Sa.get().Uh("ads_qua","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=qw(a.C.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
nQa=function(a,b){var c;a.Sa.get().Uh("ads_imp","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=qw(a.C.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
tZ=function(a){return{enterMs:X(a.Ea,"metadata_type_layout_enter_ms"),exitMs:X(a.Ea,"metadata_type_layout_exit_ms")}};
uZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w){nZ.call(this,a,b,c,d,e,k,l,m,n,q);this.X=f;this.J=p;this.C=t;this.Pa=w;this.xc=this.u=null};
oQa=function(a,b){var c;a.Sa.get().Uh("ads_imp","acpn."+(null==(c=qw(a.B.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
pQa=function(a,b,c){var d;a.Sa.get().Uh("ads_qua","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=qw(a.B.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
vZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x,y,z,E,I){this.Ee=a;this.ra=b;this.j=c;this.B=d;this.Ga=e;this.Sa=f;this.K=k;this.D=l;this.u=m;this.C=n;this.Yd=p;this.Z=q;this.xd=t;this.Qc=w;this.S=x;this.X=y;this.ma=z;this.Pa=E;this.J=I};
wZ=function(a){g.G.call(this);this.j=a;this.Mb=new Map};
xZ=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&XV(a.j(),c)};
yZ=function(a,b){g.G.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.sf(this,function(){b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().jq)?void 0:d.slotId)||null};
qQa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
zZ=function(a){this.I=a};
rQa=function(a,b,c,d,e){LE.call(this,"image-companion",a,b,c,d,e)};
AZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Sa=e;this.Ee=f;this.J=l;this.Ni=!0;this.B=null;this.C=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");KV(this.Ee(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.D=new lY(c.qc,this.Sa,a,c.layoutId)};
sQa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)});
return{Xd:a,Ue:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
tQa=function(a,b,c,d,e){LE.call(this,"shopping-companion",a,b,c,d,e)};
BZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Sa=e;this.Ee=f;this.J=l;this.Ni=!0;this.B=null;this.C=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");KV(this.Ee(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.D=new lY(c.qc,this.Sa,a,c.layoutId)};
uQa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)});
return{Xd:a,Ue:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
vQa=function(a,b,c,d,e){LE.call(this,"ads-engagement-panel",a,b,c,d,e)};
CZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Sa=e;this.Ee=f;this.J=l;this.Ni=!0;this.B=null;this.C=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");KV(this.Ee(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.D=new lY(c.qc,this.Sa,a,c.layoutId)};
wQa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)});
return{Xd:a,Ue:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
xQa=function(a,b,c,d,e){this.j=a;this.Sa=b;this.Ee=c;this.u=d;this.B=e};
DZ=function(a,b,c){LE.call(this,"player-underlay",a,{},b,c);this.j=c};
EZ=function(a,b,c,d){sY.call(this,a,b,c,d)};
yQa=function(a){this.j=a};
FZ=function(a,b,c,d,e){sY.call(this,c,a,b,d);this.Sa=e;a=X(b.Ea,"metadata_type_ad_placement_config");this.B=new lY(b.qc,e,a,b.layoutId)};
GZ=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
IZ=function(a,b,c){c=void 0===c?HZ:c;c.width<HZ.width&&(c=HZ);if(a.width<c.width||a.height<c.height)return{JC:3,Uy:501,errorMessage:"ad("+GZ(c)+") larger than container("+GZ(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{JC:3,Uy:501,errorMessage:"ad("+GZ(c)+") to container("+GZ(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{JC:3,Uy:501,errorMessage:"ad("+GZ(c)+") covers container("+GZ(a)+") center."}};
zQa=function(a,b){var c=X(a.Ea,"metadata_type_ad_placement_config");return new lY(a.qc,b,c,a.layoutId)};
JZ=function(a){return X(a.Ea,"metadata_type_invideo_overlay_ad_renderer")};
KZ=function(a,b,c,d){LE.call(this,"invideo-overlay",a,b,c,d);this.j=d};
LZ=function(a,b,c,d,e,f,k,l,m,n,p,q){sY.call(this,f,a,b,e);this.Sa=c;this.B=k;this.Ga=l;this.K=m;this.Pa=n;this.D=p;this.C=q;this.S=zQa(b,c)};
AQa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];mY().forEach(function(b){a.push(b)});
return{Xd:a,Ue:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
MZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t){sY.call(this,f,a,b,e);this.Sa=c;this.B=k;this.K=l;this.Ga=m;this.S=n;this.Pa=p;this.D=q;this.C=t;this.X=zQa(b,c)};
BQa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(mY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Xd:a,Ue:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
NZ=function(a){this.Ga=a;this.j=!1};
OZ=function(a,b,c,d,e,f,k){sY.call(this,c,a,b,d);this.B=e;this.Ga=f;this.Pa=k};
CQa=function(a,b,c,d,e,f,k,l,m,n){this.j=a;this.Ga=b;this.Sa=c;this.K=d;this.D=e;this.B=f;this.J=k;this.C=l;this.Pa=m;this.u=n};
PZ=function(a){g.G.call(this);this.B=a;this.Ni=!0;this.Mb=new Map;this.j=new Map;this.u=new Map};
DQa=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};
EQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.K=Y(function(){return new ww});
g.H(this,this.K);this.ra=Y(function(){return new MW(f.K)});
g.H(this,this.ra);this.D=Y(function(){return new JW});
g.H(this,this.D);this.X=Y(function(){return new FW(a)});
g.H(this,this.X);this.Z=Y(function(){return new YW(f.K)});
g.H(this,this.Z);this.Hb=Y(function(){return new bX});
g.H(this,this.Hb);this.Ub=Y(function(){return new ME(b.V())});
g.H(this,this.Ub);this.ma=Y(function(){return new hZ(b)});
g.H(this,this.ma);this.Da=Y(function(){return new jW(e)});
g.H(this,this.Da);this.xd=Y(function(){return new hH(b)});
g.H(this,this.xd);this.Ia=Y(function(){return new dX(b)});
g.H(this,this.Ia);this.Yd=Y(function(){return new kZ(b)});
g.H(this,this.Yd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.Pa=Y(function(){return new fX(b)});
g.H(this,this.Pa);this.Lb=Y(function(){return new gZ(d)});
g.H(this,this.Lb);this.J=Y(function(){return new zV(f.Pa)});
g.H(this,this.J);this.Va=Y(function(){return new DW(f.Z,f.ra,f.Pa,f.J,"SLOT_TYPE_ABOVE_FEED",f.ib)});
g.H(this,this.Va);this.Dc=Y(function(){return new lZ(b)});
g.H(this,this.Dc);this.qb=Y(function(){return new mZ});
g.H(this,this.qb);this.ob=Y(function(){return new xX});
g.H(this,this.ob);this.j=Y(function(){return new sX(b,f.Hb,f.Pa)});
g.H(this,this.j);this.Xb=new aX(this.Pa,this.J,this.j);g.H(this,this.Xb);this.Ha=Y(function(){return new jZ(b,f.Pa,f.Sa)});
g.H(this,this.Ha);this.Ra=Y(function(){return new zZ(b)});
g.H(this,this.Ra);this.Ga=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ga);this.xe=Y(function(){return new yX});
this.va=Y(function(){return new iX(f.Ga,b)});
g.H(this,this.va);this.Sa=Y(function(){return new nX(b,f.D,f.va,f.j)});
g.H(this,this.Sa);this.bd=new SY(TY,QZ,function(l,m,n,p){return NW(f.ra.get(),l,m,n,p)},this.X,this.Z,this.ra,this.J,this.Pa,this.j);
g.H(this,this.bd);this.Cc=new vw(this.X,this.Va,c,this.Pa,a,this.j,this.Ga);g.H(this,this.Cc);var k=new cX(b,this.Cc,this.Ga,this.j,this.Ha);this.Xa=Y(function(){return k});
this.Xo=k;this.ib=new RY(this.X,this.Z,this.Xa,this.Ha,this.Ga,this.Pa,this.Sa,this.Ra);g.H(this,this.ib);this.Cb=new IW(this.X,this.Z,this.Ia,this.Xa);g.H(this,this.Cb);this.Ec=new ow(this.X,this.Z,this.Va,this.j,this.Cb,c);g.H(this,this.Ec);this.Tb=Y(function(){return new EX(f.Lb,f.ra,f.J,f.Ra)});
g.H(this,this.Tb);this.B=Y(function(){return new ZX});
g.H(this,this.B);this.xa=new YY(a,this.ma);g.H(this,this.xa);this.u=new ZY(a);g.H(this,this.u);this.Wa=new wZ(a);g.H(this,this.Wa);this.fb=new $Y(a,this.Xa);g.H(this,this.fb);this.Qa=new aZ(a,this.Ia,this.Ga,this.j);g.H(this,this.Qa);this.ub=new yZ(a,this.j);g.H(this,this.ub);this.S=new cZ(a);g.H(this,this.S);this.Pc=new dZ(a);g.H(this,this.Pc);this.Fb=new PZ(a);g.H(this,this.Fb);this.C=Y(function(){return new UY});
g.H(this,this.C);this.pd=Y(function(){return new VY(f.Ga)});
g.H(this,this.pd);this.Dd=Y(function(){return new xQa(f.ma,f.Sa,a,f.D,f.va)});
g.H(this,this.Dd);this.Sb=Y(function(){return new kY(f.Ec)});
g.H(this,this.Sb);this.Wb=Y(function(){return new rY(f.Sa,f.S)});
g.H(this,this.Wb);this.Vc=Y(function(){return new vZ(a,f.S,f.j,f.Ra,f.Ga,f.Sa,f.Hb,f.Ha,f.va,f.xe,f.Yd,f.Ia,f.xd,f.Qc,f.Ub,f.Da,f.Dc,f.Pa,f.D)});
g.H(this,this.Vc);this.Pd=Y(function(){return new YPa(f.Ga,f.Sa)});
g.H(this,this.Pd);this.pc=Y(function(){return new CQa(f.ma,f.Ga,f.Sa,f.D,f.va,f.Wa,f.Fb,f.Da,f.Pa,c)});
g.H(this,this.pc);this.Qd=Y(function(){return new yQa(f.ma)});
g.H(this,this.Qd);this.Vd=new eZ(a,this.ob,this.K);g.H(this,this.Vd);this.me=new fZ(a,this.qb,this.J,this.j,this.K,this.Pa);g.H(this,this.me);this.ke={Yq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ib],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Cb]]),tm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Tb],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.B],["SLOT_TYPE_PLAYER_UNDERLAY",this.B],["SLOT_TYPE_PLAYBACK_TRACKING",this.B]]),xi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.xa],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.xa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Wa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",
this.ub],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ub],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Pc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Fb]]),fn:new Map([["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",
this.pd],["SLOT_TYPE_PLAYER_UNDERLAY",this.C],["SLOT_TYPE_PLAYBACK_TRACKING",this.C]]),Lm:new Map([["SLOT_TYPE_ABOVE_FEED",this.Dd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Sb],["SLOT_TYPE_FORECASTING",this.Wb],["SLOT_TYPE_PLAYER_BYTES",this.Vc],["SLOT_TYPE_PLAYBACK_TRACKING",this.Pd],["SLOT_TYPE_IN_PLAYER",this.pc],["SLOT_TYPE_PLAYER_UNDERLAY",this.Qd]])};this.listeners=[this.D.get()];this.Nq={Ec:this.Ec,Pk:this.S,Nm:this.qb.get(),Dg:this.Pa.get(),jb:this.Da.get(),gp:this.Ga.get(),Cc:this.Cc,Oj:this.K.get(),
Mm:this.ob.get(),Ri:this.xa,qh:this.D.get(),ek:this.j.get()}};
FQa=function(a,b,c,d,e,f,k,l,m,n){this.u=a;this.Ga=b;this.Sa=c;this.K=d;this.D=e;this.B=f;this.J=k;this.C=l;this.Pa=m;this.j=n};
GQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new ww});
g.H(this,this.C);this.K=Y(function(){return new MW(f.C)});
g.H(this,this.K);this.S=Y(function(){return new JW});
g.H(this,this.S);this.D=Y(function(){return new FW(a)});
g.H(this,this.D);this.J=Y(function(){return new YW(f.C)});
g.H(this,this.J);this.bd=Y(function(){return new bX});
g.H(this,this.bd);this.Hb=Y(function(){return new ME(b.V())});
g.H(this,this.Hb);this.Ia=Y(function(){return new hZ(b)});
g.H(this,this.Ia);this.Z=Y(function(){return new jW(e)});
g.H(this,this.Z);this.xd=Y(function(){return new hH(b)});
g.H(this,this.xd);this.ma=Y(function(){return new dX(b)});
g.H(this,this.ma);this.Yd=Y(function(){return new kZ(b)});
g.H(this,this.Yd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.Pa=Y(function(){return new fX(b)});
g.H(this,this.Pa);this.ub=Y(function(){return new gZ(d)});
g.H(this,this.ub);this.B=Y(function(){return new zV(f.Pa)});
g.H(this,this.B);this.Ha=Y(function(){return new DW(f.J,f.K,f.Pa,f.B,null,f.Xa)});
g.H(this,this.Ha);this.Ub=Y(function(){return new lZ(b)});
g.H(this,this.Ub);this.ib=Y(function(){return new mZ});
g.H(this,this.ib);this.fb=Y(function(){return new xX});
g.H(this,this.fb);this.j=Y(function(){return new sX(b,f.bd,f.Pa)});
g.H(this,this.j);this.Xb=new aX(this.Pa,this.B,this.j);g.H(this,this.Xb);this.Lb=Y(function(){return new jZ(b,f.Pa,f.Sa)});
this.Ga=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ga);this.Da=Y(function(){return new iX(f.Ga,b)});
g.H(this,this.Da);this.Sa=Y(function(){return new nX(b,f.S,f.Da,f.j)});
g.H(this,this.Sa);this.Vc=Y(function(){return new yX});
g.H(this,this.Vc);this.Dc=new SY(TY,QZ,function(l,m,n,p){return NW(f.K.get(),l,m,n,p)},this.D,this.J,this.K,this.B,this.Pa,this.j);
g.H(this,this.Dc);this.Cc=new vw(this.D,this.Ha,c,this.Pa,a,this.j,this.Ga);g.H(this,this.Cc);var k=new cX(b,this.Cc,this.Ga,this.j,this.Lb);this.Va=Y(function(){return k});
this.Xo=k;this.Xa=new RY(this.D,this.J,this.Va,this.Lb,this.Ga,this.Pa,this.Sa);g.H(this,this.Xa);this.ob=new IW(this.D,this.J,this.ma,this.Va);g.H(this,this.ob);this.Ec=new ow(this.D,this.J,this.Ha,this.j,this.ob,c);g.H(this,this.Ec);this.Fb=Y(function(){return new EX(f.ub,f.K,f.B)});
g.H(this,this.Fb);this.va=Y(function(){return new ZX});
g.H(this,this.va);this.Qa=new YY(a,this.Ia);g.H(this,this.Qa);this.u=new ZY(a);g.H(this,this.u);this.Ra=new wZ(a);g.H(this,this.Ra);this.Wa=new $Y(a,this.Va);g.H(this,this.Wa);this.ra=new aZ(a,this.ma,this.Ga,this.j);g.H(this,this.ra);this.X=new cZ(a);g.H(this,this.X);this.Wb=new dZ(a);g.H(this,this.Wb);this.qb=new PZ(a);g.H(this,this.qb);this.xa=Y(function(){return new UY});
g.H(this,this.xa);this.Pc=Y(function(){return new VY(f.Ga)});
g.H(this,this.Pc);this.Cb=Y(function(){return new kY(f.Ec)});
g.H(this,this.Cb);this.Sb=Y(function(){return new rY(f.Sa,f.X)});
g.H(this,this.Sb);this.Tb=Y(function(){return new FQa(f.Ia,f.Ga,f.Sa,f.S,f.Da,f.Ra,f.qb,f.Z,f.Pa,c)});
g.H(this,this.Tb);this.pc=Y(function(){return new QY(a,f.X,f.Sa,f.Da,f.Vc,f.Yd,f.j,f.Ga,f.ma,f.xd,f.Qc,f.Hb,f.Z,f.Ub,f.Pa)});
g.H(this,this.pc);this.pd=new eZ(a,this.fb,this.C);g.H(this,this.pd);this.Dd=new fZ(a,this.ib,this.B,this.j,this.C,this.Pa);g.H(this,this.Dd);this.ke={Yq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Dc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ob]]),tm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Fb],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.va]]),xi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Qa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ra],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Wa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ra],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ra],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ra],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Wa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Wb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.qb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xa],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.Pc]]),Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cb],["SLOT_TYPE_FORECASTING",this.Sb],["SLOT_TYPE_IN_PLAYER",this.Tb],["SLOT_TYPE_PLAYER_BYTES",this.pc]])};this.listeners=[this.S.get()];this.Nq={Ec:this.Ec,Pk:null,Nm:this.ib.get(),
Dg:this.Pa.get(),jb:this.Z.get(),gp:this.Ga.get(),Cc:this.Cc,Oj:this.C.get(),Mm:this.fb.get(),Ri:this.Qa,qh:this.S.get(),ek:this.j.get()}};
HQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.D=Y(function(){return new ww});
g.H(this,this.D);this.J=Y(function(){return new MW(f.D)});
g.H(this,this.J);this.K=Y(function(){return new JW});
g.H(this,this.K);this.X=Y(function(){return new FW(a)});
g.H(this,this.X);this.Z=Y(function(){return new YW(f.D)});
g.H(this,this.Z);this.Ub=Y(function(){return new bX});
g.H(this,this.Ub);this.ob=Y(function(){return new ME(b.V())});
g.H(this,this.ob);this.xa=Y(function(){return new hZ(b)});
g.H(this,this.xa);this.Ha=Y(function(){return new jW(e)});
g.H(this,this.Ha);this.xd=Y(function(){return new hH(b)});
g.H(this,this.xd);this.ma=Y(function(){return new dX(b)});
g.H(this,this.ma);this.Yd=Y(function(){return new kZ(b)});
g.H(this,this.Yd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.Pa=Y(function(){return new fX(b)});
g.H(this,this.Pa);this.Xa=Y(function(){return new gZ(d)});
g.H(this,this.Xa);this.B=Y(function(){return new zV(f.Pa)});
g.H(this,this.B);this.va=Y(function(){return new DW(f.Z,f.J,f.Pa,f.B,null,null)});
g.H(this,this.va);this.Cb=Y(function(){return new lZ(b)});
g.H(this,this.Cb);this.Ra=Y(function(){return new mZ});
g.H(this,this.Ra);this.j=Y(function(){return new sX(b,f.Ub,f.Pa)});
g.H(this,this.j);this.Xb=new aX(this.Pa,this.B,this.j);g.H(this,this.Xb);this.Ga=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ga);this.Va=Y(function(){return new iX(f.Ga,b)});
g.H(this,this.Va);this.Sa=Y(function(){return new nX(b,f.K,f.Va,f.j)});
g.H(this,this.Sa);this.Tb=Y(function(){return new yX});
g.H(this,this.Tb);this.Lb=new SY(TY,QZ,function(l,m,n,p){return NW(f.J.get(),l,m,n,p)},this.X,this.Z,this.J,this.B,this.Pa,this.j);
g.H(this,this.Lb);this.Cc=new vw(this.X,this.va,c,this.Pa,a,this.j,this.Ga);g.H(this,this.Cc);var k=new cX(b,this.Cc,this.Ga,this.j);this.qb=Y(function(){return k});
this.Xo=k;this.Wa=new IW(this.X,this.Z,this.ma,this.qb);g.H(this,this.Wa);this.Ec=new ow(this.X,this.Z,this.va,this.j,this.Wa,c);g.H(this,this.Ec);this.ib=Y(function(){return new EX(f.Xa,f.J,f.B)});
g.H(this,this.ib);this.ra=Y(function(){return new ZX});
g.H(this,this.ra);this.Da=new YY(a,this.xa);g.H(this,this.Da);this.u=new ZY(a);g.H(this,this.u);this.Ia=new $Y(a,this.qb);g.H(this,this.Ia);this.Qa=new aZ(a,this.ma,this.Ga,this.j);g.H(this,this.Qa);this.S=new cZ(a);g.H(this,this.S);this.Fb=new dZ(a);g.H(this,this.Fb);this.C=Y(function(){return new UY});
g.H(this,this.C);this.Sb=Y(function(){return new VY(f.Ga)});
g.H(this,this.Sb);this.fb=Y(function(){return new kY(f.Ec)});
g.H(this,this.fb);this.ub=Y(function(){return new rY(f.Sa,f.S)});
g.H(this,this.ub);this.Wb=Y(function(){return new zY(f.xa,f.Ga,f.Sa,f.K,c)});
g.H(this,this.Wb);this.Hb=Y(function(){return new QY(a,f.S,f.Sa,f.Va,f.Tb,f.Yd,f.j,f.Ga,f.ma,f.xd,f.Qc,f.ob,f.Ha,f.Cb,f.Pa)});
g.H(this,this.Hb);this.pc=new fZ(a,this.Ra,this.B,this.j,this.D,this.Pa);g.H(this,this.pc);this.ke={Yq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),tm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ib],["SLOT_TYPE_FORECASTING",this.ra],["SLOT_TYPE_IN_PLAYER",this.ra],["SLOT_TYPE_PLAYER_BYTES",
this.ra]]),xi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ia],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.Sb]]),
Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fb],["SLOT_TYPE_FORECASTING",this.ub],["SLOT_TYPE_IN_PLAYER",this.Wb],["SLOT_TYPE_PLAYER_BYTES",this.Hb]])};this.listeners=[this.K.get()];this.Nq={Ec:this.Ec,Pk:null,Nm:this.Ra.get(),Dg:this.Pa.get(),jb:this.Ha.get(),gp:this.Ga.get(),Cc:this.Cc,Oj:this.D.get(),Mm:null,Ri:this.Da,qh:this.K.get(),ek:this.j.get()}};
IQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new ww});
g.H(this,this.C);this.D=Y(function(){return new MW(f.C)});
g.H(this,this.D);this.J=Y(function(){return new JW});
g.H(this,this.J);this.S=Y(function(){return new FW(a)});
g.H(this,this.S);this.X=Y(function(){return new YW(f.C)});
g.H(this,this.X);this.Wb=Y(function(){return new bX});
g.H(this,this.Wb);this.ib=Y(function(){return new ME(b.V())});
g.H(this,this.ib);this.xa=Y(function(){return new hZ(b)});
g.H(this,this.xa);this.Ha=Y(function(){return new jW(e)});
g.H(this,this.Ha);this.xd=Y(function(){return new hH(b)});
g.H(this,this.xd);this.Z=Y(function(){return new dX(b)});
g.H(this,this.Z);this.Yd=Y(function(){return new kZ(b)});
g.H(this,this.Yd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.Pa=Y(function(){return new fX(b)});
g.H(this,this.Pa);this.Wa=Y(function(){return new gZ(d)});
g.H(this,this.Wa);this.B=Y(function(){return new zV(f.Pa)});
g.H(this,this.B);this.va=Y(function(){return new DW(f.X,f.D,f.Pa,f.B,null,null)});
g.H(this,this.va);this.Fb=Y(function(){return new lZ(b)});
g.H(this,this.Fb);this.Qa=Y(function(){return new mZ});
g.H(this,this.Qa);this.j=Y(function(){return new sX(b,f.Wb,f.Pa)});
g.H(this,this.j);this.Xb=new aX(this.Pa,this.B,this.j);g.H(this,this.Xb);this.Ga=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ga);this.Ra=Y(function(){return new iX(f.Ga,b)});
g.H(this,this.Ra);this.Sa=Y(function(){return new nX(b,f.J,f.Ra,f.j)});
g.H(this,this.Sa);this.Ub=Y(function(){return new yX});
g.H(this,this.Ub);this.Sb=new SY(TY,QZ,function(l,m,n,p){return NW(f.D.get(),l,m,n,p)},this.S,this.X,this.D,this.B,this.Pa,this.j);
g.H(this,this.Sb);this.Cc=new vw(this.S,this.va,c,this.Pa,a,this.j,this.Ga);g.H(this,this.Cc);var k=new cX(b,this.Cc,this.Ga,this.j);this.ob=Y(function(){return k});
this.Xo=k;this.Va=new IW(this.S,this.X,this.Z,this.ob);g.H(this,this.Va);this.Ec=new ow(this.S,this.X,this.va,this.j,this.Va,c);g.H(this,this.Ec);this.fb=Y(function(){return new EX(f.Wa,f.D,f.B)});
g.H(this,this.fb);this.ma=Y(function(){return new ZX});
g.H(this,this.ma);this.Da=new YY(a,this.xa);g.H(this,this.Da);this.u=new ZY(a);g.H(this,this.u);this.Ia=new $Y(a,this.ob);g.H(this,this.Ia);this.qb=new aZ(a,this.Z,this.Ga,this.j);g.H(this,this.qb);this.K=new cZ(a);g.H(this,this.K);this.Hb=new dZ(a);g.H(this,this.Hb);this.ra=Y(function(){return new UY});
g.H(this,this.ra);this.Tb=Y(function(){return new VY(f.Ga)});
g.H(this,this.Tb);this.Xa=Y(function(){return new kY(f.Ec)});
g.H(this,this.Xa);this.ub=Y(function(){return new rY(f.Sa,f.K)});
g.H(this,this.ub);this.Cb=Y(function(){return new zY(f.xa,f.Ga,f.Sa,f.J,c)});
g.H(this,this.Cb);this.Lb=Y(function(){return new QY(a,f.K,f.Sa,f.Ra,f.Ub,f.Yd,f.j,f.Ga,f.Z,f.xd,f.Qc,f.ib,f.Ha,f.Fb,f.Pa)});
g.H(this,this.Lb);this.pc=new fZ(a,this.Qa,this.B,this.j,this.C,this.Pa);g.H(this,this.pc);this.ke={Yq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Va]]),tm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",
this.ma]]),xi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ia],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.qb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ra],["SLOT_TYPE_FORECASTING",this.ra],["SLOT_TYPE_IN_PLAYER",this.ra],["SLOT_TYPE_PLAYER_BYTES",this.Tb]]),Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xa],["SLOT_TYPE_FORECASTING",
this.ub],["SLOT_TYPE_IN_PLAYER",this.Cb],["SLOT_TYPE_PLAYER_BYTES",this.Lb]])};this.listeners=[this.J.get()];this.Nq={Ec:this.Ec,Pk:null,Nm:this.Qa.get(),Dg:this.Pa.get(),jb:this.Ha.get(),gp:this.Ga.get(),Cc:this.Cc,Oj:this.C.get(),Mm:null,Ri:this.Da,qh:this.J.get(),ek:this.j.get()}};
RZ=function(a,b,c,d,e,f,k,l,m){xY.call(this,a,b,c,d,e,f,k,m);this.K=l};
JQa=function(){var a=xPa();a.Xd.push("metadata_type_ad_info_ad_metadata");return a};
KQa=function(a,b,c,d,e,f){this.B=a;this.Ga=b;this.Sa=c;this.C=d;this.u=e;this.j=f};
LQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new ww});
g.H(this,this.C);this.D=Y(function(){return new MW(f.C)});
g.H(this,this.D);this.J=Y(function(){return new JW});
g.H(this,this.J);this.S=Y(function(){return new FW(a)});
g.H(this,this.S);this.X=Y(function(){return new YW(f.C)});
g.H(this,this.X);this.Wb=Y(function(){return new bX});
g.H(this,this.Wb);this.ob=Y(function(){return new WPa(b)});
g.H(this,this.ob);this.qb=Y(function(){return new ME(b.V())});
g.H(this,this.qb);this.xa=Y(function(){return new hZ(b)});
g.H(this,this.xa);this.Ha=Y(function(){return new jW(e)});
g.H(this,this.Ha);this.xd=Y(function(){return new hH(b)});
g.H(this,this.xd);this.Z=Y(function(){return new dX(b)});
g.H(this,this.Z);this.Yd=Y(function(){return new kZ(b)});
g.H(this,this.Yd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.Pa=Y(function(){return new fX(b)});
g.H(this,this.Pa);this.Xa=Y(function(){return new gZ(d)});
g.H(this,this.Xa);this.B=Y(function(){return new zV(f.Pa)});
g.H(this,this.B);this.va=Y(function(){return new DW(f.X,f.D,f.Pa,f.B,null,null)});
g.H(this,this.va);this.Fb=Y(function(){return new lZ(b)});
g.H(this,this.Fb);this.Ra=Y(function(){return new mZ});
g.H(this,this.Ra);this.j=Y(function(){return new sX(b,f.Wb,f.Pa)});
g.H(this,this.j);this.Xb=new aX(this.Pa,this.B,this.j);g.H(this,this.Xb);this.Ga=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ga);this.Va=Y(function(){return new iX(f.Ga,b)});
g.H(this,this.Va);this.Sa=Y(function(){return new nX(b,f.J,f.Va,f.j)});
g.H(this,this.Sa);this.Ub=Y(function(){return new yX});
g.H(this,this.Ub);this.Sb=new SY(KPa,QZ,function(l,m,n,p){return JOa(f.D.get(),l,m,n,p)},this.S,this.X,this.D,this.B,this.Pa,this.j);
g.H(this,this.Sb);this.Cc=new vw(this.S,this.va,c,this.Pa,a,this.j,this.Ga);g.H(this,this.Cc);var k=new cX(b,this.Cc,this.Ga,this.j);this.ub=Y(function(){return k});
this.Xo=k;this.Wa=new IW(this.S,this.X,this.Z,this.ub);g.H(this,this.Wa);this.Ec=new ow(this.S,this.X,this.va,this.j,this.Wa,c);g.H(this,this.Ec);this.ib=Y(function(){return new EX(f.Xa,f.D,f.B)});
g.H(this,this.ib);this.ma=Y(function(){return new ZX});
g.H(this,this.ma);this.Da=new YY(a,this.xa);g.H(this,this.Da);this.u=new ZY(a);g.H(this,this.u);this.Ia=new $Y(a,this.ub);g.H(this,this.Ia);this.Qa=new aZ(a,this.Z,this.Ga,this.j);g.H(this,this.Qa);this.K=new cZ(a);g.H(this,this.K);this.Hb=new dZ(a);g.H(this,this.Hb);this.ra=Y(function(){return new UY});
g.H(this,this.ra);this.Tb=Y(function(){return new VY(f.Ga)});
g.H(this,this.Tb);this.fb=Y(function(){return new kY(f.Ec)});
g.H(this,this.fb);this.Cb=Y(function(){return new rY(f.Sa,f.K)});
g.H(this,this.Cb);this.Lb=Y(function(){return new QY(a,f.K,f.Sa,f.Va,f.Ub,f.Yd,f.j,f.Ga,f.Z,f.xd,f.Qc,f.qb,f.Ha,f.Fb,f.Pa)});
g.H(this,this.Lb);this.pc=Y(function(){return new KQa(f.xa,f.Ga,f.Sa,f.J,f.ob,c)});
g.H(this,this.pc);this.Dc=new fZ(a,this.Ra,this.B,this.j,this.C,this.Pa);g.H(this,this.Dc);this.ke={Yq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),tm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ib],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",
this.ma]]),xi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ia],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Qa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Qa],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ra],["SLOT_TYPE_FORECASTING",this.ra],["SLOT_TYPE_IN_PLAYER",this.ra],["SLOT_TYPE_PLAYER_BYTES",this.Tb]]),Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.fb],["SLOT_TYPE_FORECASTING",this.Cb],["SLOT_TYPE_IN_PLAYER",this.pc],["SLOT_TYPE_PLAYER_BYTES",this.Lb]])};this.listeners=[this.J.get()];this.Nq={Ec:this.Ec,Pk:null,Nm:this.Ra.get(),Dg:this.Pa.get(),jb:this.Ha.get(),gp:this.Ga.get(),Cc:this.Cc,Oj:this.C.get(),Mm:null,Ri:this.Da,qh:this.J.get(),ek:this.j.get()}};
MQa=function(a,b,c,d,e,f){this.u=a;this.Ga=b;this.Sa=c;this.B=d;this.C=e;this.j=f};
NQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.K=Y(function(){return new ww});
g.H(this,this.K);this.S=Y(function(){return new MW(f.K)});
g.H(this,this.S);this.C=Y(function(){return new JW});
g.H(this,this.C);this.D=Y(function(){return new FW(a)});
g.H(this,this.D);this.J=Y(function(){return new YW(f.K)});
g.H(this,this.J);this.ub=Y(function(){return new bX});
g.H(this,this.ub);this.Lb=Y(function(){return new WPa(b)});
g.H(this,this.Lb);this.Sb=Y(function(){return new ME(b.V())});
g.H(this,this.Sb);this.Ha=Y(function(){return new hZ(b)});
g.H(this,this.Ha);this.Qa=Y(function(){return new jW(e)});
g.H(this,this.Qa);this.xd=Y(function(){return new hH(b)});
g.H(this,this.xd);this.ma=Y(function(){return new dX(b)});
g.H(this,this.ma);this.Yd=Y(function(){return new kZ(b)});
g.H(this,this.Yd);this.Qc=Y(function(){return new eX(b)});
g.H(this,this.Qc);this.Pa=Y(function(){return new fX(b)});
g.H(this,this.Pa);this.Cb=Y(function(){return new gZ(d)});
g.H(this,this.Cb);this.B=Y(function(){return new zV(f.Pa)});
g.H(this,this.B);this.Da=Y(function(){return new DW(f.J,f.S,f.Pa,f.B,null,f.Wa,3)});
g.H(this,this.Da);this.Wb=Y(function(){return new lZ(b)});
g.H(this,this.Wb);this.fb=Y(function(){return new mZ});
g.H(this,this.fb);this.j=Y(function(){return new sX(b,f.ub,f.Pa)});
g.H(this,this.j);this.Xb=new aX(this.Pa,this.B,this.j);g.H(this,this.Xb);this.Z=Y(function(){return new jZ(b,f.Pa,f.Sa)});
g.H(this,this.Z);this.xa=Y(function(){return new zZ(b)});
g.H(this,this.xa);this.Ga=Y(function(){return new tX(b,f.j)});
g.H(this,this.Ga);this.pd=Y(function(){return new yX});
this.ib=Y(function(){return new iX(f.Ga,b)});
g.H(this,this.ib);this.Sa=Y(function(){return new nX(b,f.C,f.ib,f.j)});
g.H(this,this.Sa);this.Cc=new vw(this.D,this.Da,c,this.Pa,a,this.j,this.Ga);g.H(this,this.Cc);var k=new cX(b,this.Cc,this.Ga,this.j,this.Z);this.Ra=Y(function(){return k});
this.Xo=k;this.Pc=new SY(LPa,QZ,function(l,m,n,p){return JOa(f.S.get(),l,m,n,p)},this.D,this.J,this.S,this.B,this.Pa,this.j);
g.H(this,this.Pc);this.Wa=new RY(this.D,this.J,this.Ra,this.Z,this.Ga,this.Pa,this.Sa,this.xa);g.H(this,this.Wa);this.qb=new IW(this.D,this.J,this.ma,this.Ra);g.H(this,this.qb);this.Ec=new ow(this.D,this.J,this.Da,this.j,this.qb,c);g.H(this,this.Ec);this.Hb=Y(function(){return new EX(f.Cb,f.S,f.B,f.xa)});
g.H(this,this.Hb);this.ra=Y(function(){return new ZX});
g.H(this,this.ra);this.Ia=new YY(a,this.Ha);g.H(this,this.Ia);this.u=new ZY(a);g.H(this,this.u);this.Va=new $Y(a,this.Ra);g.H(this,this.Va);this.Xa=new aZ(a,this.ma,this.Ga,this.j);g.H(this,this.Xa);this.ob=new yZ(a,this.j);g.H(this,this.ob);this.X=new cZ(a);g.H(this,this.X);this.pc=new dZ(a);g.H(this,this.pc);this.va=Y(function(){return new UY});
g.H(this,this.va);this.Vc=Y(function(){return new VY(f.Ga)});
g.H(this,this.Vc);this.Fb=Y(function(){return new kY(f.Ec)});
g.H(this,this.Fb);this.Tb=Y(function(){return new rY(f.Sa,f.X)});
g.H(this,this.Tb);this.Dc=Y(function(){return new vZ(a,f.X,f.j,f.xa,f.Ga,f.Sa,f.ub,f.Z,f.ib,f.pd,f.Yd,f.ma,f.xd,f.Qc,f.Sb,f.Qa,f.Wb,f.Pa,f.C)});
g.H(this,this.Dc);this.Ub=Y(function(){return new MQa(f.Ha,f.Ga,f.Sa,f.C,f.Lb,c)});
g.H(this,this.Ub);this.bd=new fZ(a,this.fb,this.B,this.j,this.K,this.Pa);g.H(this,this.bd);this.ke={Yq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Pc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Cc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),tm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hb],["SLOT_TYPE_FORECASTING",this.ra],
["SLOT_TYPE_IN_PLAYER",this.ra],["SLOT_TYPE_PLAYER_BYTES",this.ra]]),xi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ia],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Va],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Xa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Xa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.ob],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ob],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Va],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.pc]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.Vc]]),Lm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Fb],["SLOT_TYPE_FORECASTING",this.Tb],["SLOT_TYPE_PLAYER_BYTES",this.Dc],["SLOT_TYPE_IN_PLAYER",this.Ub]])};this.listeners=[this.C.get()];this.Nq={Ec:this.Ec,Pk:null,Nm:this.fb.get(),Dg:this.Pa.get(),jb:this.Qa.get(),gp:this.Ga.get(),Cc:this.Cc,Oj:this.K.get(),Mm:null,Ri:this.Ia,qh:this.C.get(),ek:this.j.get()}};
SZ=function(a,b,c,d){g.G.call(this);var e=this;this.j=OQa(function(){return e.u},a,b,c,d);
g.H(this,this.j);this.u=(new hW(this.j)).B();g.H(this,this.u)};
TZ=function(a){return a.j.Nq};
OQa=function(a,b,c,d,e){try{var f=b.V();if(g.QC(f))var k=new EQa(a,b,c,d,e);else if(g.TC(f))k=new GQa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===FC(f))k=new IQa(a,b,c,d,e);else if(IC(f))k=new HQa(a,b,c,d,e);else if(g.zC(f))k=new LQa(a,b,c,d,e);else if(g.yC(f))k=new NQa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return k}catch(l){return k=b.V(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:k.deviceParams.cplatform,interface:k.deviceParams.c,
Fha:k.deviceParams.cver,Eha:k.deviceParams.ctheme,Dha:k.deviceParams.cplayer,Xha:k.playerStyle}),new kPa(a,b,c,d,e)}};
UZ=function(a,b){this.j=a;this.Pk=b};
VZ=function(a){JI.call(this,a)};
WZ=function(a,b,c,d,e,f){RI.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()};
XZ=function(a,b,c,d,e,f,k){kI.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d,e);this.Rg=f;this.ij=k;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.Ha=this.Ca("ytp-ad-action-interstitial-image-container");this.D=new FI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-image");g.H(this,this.D);this.D.Ba(this.Ha);this.Da=this.Ca("ytp-ad-action-interstitial-headline-container");this.S=new PI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-headline");g.H(this,this.S);
this.S.Ba(this.Da);this.xa=this.Ca("ytp-ad-action-interstitial-description-container");this.J=new PI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-description");g.H(this,this.J);this.J.Ba(this.xa);this.Ra=this.Ca("ytp-ad-action-interstitial-background-container");this.Z=new FI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Z);this.Z.Ba(this.Ra);this.Ia=this.Ca("ytp-ad-action-interstitial-action-button-container");
this.C=new fv;g.H(this,this.C);this.hide()};
PQa=function(a){var b=g.$h("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)};
YZ=function(a,b,c,d,e){kI.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.Wa=this.xa=this.D=this.Ra=this.Ha=null;this.Ia=!1;this.J=null;this.Z=0;a=this.Ca("ytp-ad-overlay-container");this.Da=new $I(a,45E3,6E3,.3,.4);g.H(this,this.Da);this.C=QQa(this);g.H(this,this.C);this.C.Ba(a);this.B=RQa(this);g.H(this,this.B);this.B.Ba(a);this.u=SQa(this);g.H(this,this.u);this.u.Ba(a);this.hide()};
QQa=function(a){var b=new g.jI({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:[yI(ZZ)]}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Fa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.T(b.Ca("ytp-ad-overlay-title"),"click",function(c){return $Z(a,b.element,
c)});
a.T(b.Ca("ytp-ad-overlay-link"),"click",function(c){return $Z(a,b.element,c)});
a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ti);b.hide();return b};
RQa=function(a){var b=new g.jI({G:"div",Fa:["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:[yI(ZZ)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Fa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
oa:"{{displayUrl}}"}]});a.T(b.Ca("ytp-ad-overlay-title"),"click",function(c){return $Z(a,b.element,c)});
a.T(b.Ca("ytp-ad-overlay-link"),"click",function(c){return $Z(a,b.element,c)});
a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ti);a.T(b.Ca("ytp-ad-overlay-text-image"),"click",a.UY);b.hide();return b};
SQa=function(a){var b=new g.jI({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:[yI(ZZ)]}]},{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 $Z(a,b.element,c)});
a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ti);b.hide();return b};
a_=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.S(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.$h("video-ads ytp-ad-module")||null,null==b)g.S(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.xa=new g.jI({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.xa),a.xa.Ba(b),b=new OI(a.api,a.eb,a.layoutId,a.j,a.jb,a.xa.element,!1),g.H(a,b),b.init(KE("ad-info-hover-text-button"),
c,a.macros),a.J){b.Ba(a.J,0);b.subscribe("f",a.tW,a);b.subscribe("e",a.ZG,a);a.T(a.J,"click",a.uW);var d=g.$h("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.Ia=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.Wa=b}else g.S(Error("Ad info button container within overlay ad was not present."))}else g.Sv(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
TQa=function(a,b){if(b_(a,c_)||a.api.Se())return!1;var c=lI(b.title),d=lI(b.description);if(g.lb(c)||g.lb(d))return!1;a.dh(a.C.element,b.trackingParams||null);a.C.Ka("title",lI(b.title));a.C.Ka("description",lI(b.description));a.C.Ka("displayUrl",lI(b.displayUrl));b.navigationEndpoint&&g.dc(a.S,b.navigationEndpoint);a.C.show();a.Da.start();a.Za(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.Z++});
return!0};
UQa=function(a,b){if(b_(a,c_)||a.api.Se())return!1;var c=lI(b.title),d=lI(b.description);if(g.lb(c)||g.lb(d))return!1;a.dh(a.B.element,b.trackingParams||null);a.B.Ka("title",lI(b.title));a.B.Ka("description",lI(b.description));a.B.Ka("displayUrl",lI(b.displayUrl));a.B.Ka("imageUrl",zza(b.image));b.navigationEndpoint&&g.dc(a.S,b.navigationEndpoint);a.Ra=b.imageNavigationEndpoint||null;a.B.show();a.Da.start();a.Za(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Z++});
return!0};
VQa=function(a,b){if(a.api.Se())return!1;var c=Aza(b.image),d=c;c.width<c_.width&&(d=c_);if(0===c.width||0===c.height||b_(a,d))return!1;a.dh(a.u.element,b.trackingParams||null);a.u.Ka("imageUrl",zza(b.image));a.u.Ka("width",c.width);a.u.Ka("height",c.height);b.navigationEndpoint&&g.dc(a.S,b.navigationEndpoint);b=a.u.Ca("ytp-ad-image-overlay");g.Mm(b,"max-width",c.width+"px");a.u.show();a.Za(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.Z++;a.api.FG("invideo-overlay",a.layoutId)});
a.T(a.u.element,"mouseout",function(){a.api.EG("invideo-overlay",a.layoutId)});
return!0};
b_=function(a,b){var c=a.api.bb().Hg(),d=a.api.Lj(!0,!1);return(b=IZ(c,c.height-(d.height+d.top),b))?(a.Ha&&b&&(c=g.Zf(a.macros),c.ERRORCODE=b.Uy.toString(),c.ERROR_MSG=b.errorMessage,LI(a.jb,a.Ha,c)),!0):!1};
$Z=function(a,b,c){var d=g.Zf(a.macros),e=g.Xm(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Vm(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())LI(a.jb,c.value,d);a.api.pauseVideo()};
WQa=function(a,b){a=a.api.getRootNode();g.N(a,"ytp-ad-overlay-open",b);g.N(a,"ytp-ad-overlay-closed",!b)};
d_=function(a,b,c,d,e,f){RI.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.xa=this.Ca("ytp-ad-message-slot");this.B=new g.jI({G:"span",L:"ytp-ad-message-container"});this.B.Ba(this.xa);g.H(this,this.B);this.messageText=new PI(this.api,this.eb,this.layoutId,this.j,e,"ytp-ad-message-text");g.H(this,this.messageText);this.messageText.Ba(this.B.element);this.J=new g.UI(this.B,400,!1,100,function(){return k.hide()});
g.H(this,this.J);this.hide()};
XQa=function(a,b){a=a.api.getRootNode();g.N(a,"ytp-ad-overlay-open",b);g.N(a,"ytp-ad-overlay-closed",!b)};
e_=function(a,b,c,d,e){kI.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.xa=this.Ca("ytp-ad-underlay-image-container");this.C=new FI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-underlay-image");
g.H(this,this.C);this.C.Ba(this.xa);this.Z=this.Ca("ytp-ad-underlay-headline-container");this.u=new PI(this.api,this.eb,this.layoutId,this.j,this.jb,"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 PI(this.api,this.eb,this.layoutId,this.j,this.jb,"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()};
YQa=function(a){var b=g.$h("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)};
f_=function(a,b,c,d,e){kI.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()};
g_=function(a,b,c,d,e){kI.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()};
h_=function(a,b,c,d,e){zI.call(this,a,b,c,d,e,["ytp-ad-survey-submit-button"],"survey-submit")};
i_=function(a,b,c,d,e,f,k){kI.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.ij=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()};
j_=function(a,b,c,d,e,f,k,l){kI.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",U:[{G:"div",Fa:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Fa:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Fa:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},f,c,d,e);this.Rg=k;this.ij=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.Ua()};
ZQa=function(a,b,c){var d=new f_(a.api,a.eb,a.layoutId,a.j,a.jb);d.Ba(a.answers);d.init(KE("survey-answer"),b,c);a.B.push(d)};
aRa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&EI(c)||"",g.lb(c)?g.Sv(Error("Found ThumbnailDetails without valid image URL")):g.Mm(a.S,"backgroundImage","url("+c+")"));$Qa(a,b)}else g.S(Error("addCommonComponents() needs to be called before starting countdown."))};
$Qa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.S(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Ua();a.u=a.Rg?new fJ(a.api,b.durationMilliseconds):new gJ(b.durationMilliseconds,a.eb,!0);g.H(a,a.u);if(b.timeoutCommands&&!a.Rg){var c=b.timeoutCommands;a.u.subscribe("g",function(){for(var e=g.r(c),f=e.next();!f.done;f=e.next())LI(a.jb,f.value,a.macros)})}if(a.u&&b.instreamAdPlayerOverlay&&
b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new i_(a.api,a.eb,a.layoutId,a.j,a.jb,a.u,a.ij);
d.Ba(a.playerOverlay);d.init(KE("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.H(a,d);a.yP()}catch(e){g.S(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.S(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new pJ(a.api,a.u),b.Ba(a.playerOverlay),g.H(a,b)):g.S(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
bRa=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.Ua()-a.C).toString()})};
k_=function(a,b,c,d,e,f,k){j_.call(this,a,b,c,d,e,"survey-question-multi-select",f,k);this.noneOfTheAbove=null;this.submitEndpoints=[];this.J=null;this.hide()};
cRa=function(a,b,c){a.noneOfTheAbove=new g_(a.api,a.eb,a.layoutId,a.j,a.jb);a.noneOfTheAbove.Ba(a.answers);a.noneOfTheAbove.init(KE("survey-none-of-the-above"),b,c)};
dRa=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
l_(a,!0)};
l_=function(a,b){var c=a.D;a=eRa(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof bJ&&!c.u.J&&jAa(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
eRa=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
m_=function(a,b,c,d,e,f,k){j_.call(this,a,b,c,d,e,"survey-question-single-select",f,k);this.hide()};
n_=function(a,b,c,d,e,f,k){kI.call(this,a,b,{G:"div",L:"ytp-ad-survey",U:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.Rg=f;this.ij=k;this.questions=[];this.u=this.Ca("ytp-ad-survey-questions");this.hide()};
o_=function(a,b,c,d,e,f,k){kI.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",U:[{G:"div",L:"ytp-ad-survey-interstitial-contents",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d,e);this.Rg=f;this.bI=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.UI(this,500,!1,300);g.H(this,this.transition)};
fRa=function(a,b){b=b&&EI(b)||"";if(g.lb(b))g.Sv(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Ic&&10>document.documentMode)c=ch;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.ei("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=yia(d.style)}b=kba(c,dh({"background-image":'url("'+b+'")'}));a.style.cssText=ah(b)}};
gRa=function(a){var b=g.$h("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)};
p_=function(a,b,c,d){JI.call(this,a);this.api=a;this.jb=c;this.u={};this.K=b;a=new g.W({G:"div",Fa:["video-ads","ytp-ad-module"]});g.H(this,a);nC&&g.M(a.element,"ytp-ads-tiny-mode");this.D=new dI(a.element);g.H(this,this.D);g.ZK(this.api,a.element,4);XOa(d)&&(d=new g.W({G:"div",Fa:["ytp-ad-underlay"]}),g.H(this,d),this.B=new dI(d.element),g.H(this,this.B),g.ZK(this.api,d.element,0));g.H(this,Sza())};
hRa=function(a,b){a=g.Xf(a.u,b.id,null);null==a&&g.Sv(Error("Component not found for element id: "+b.id));return a||null};
q_=function(a){g.lL.call(this,a);var b=this;this.u=this.eb=null;this.created=!1;this.Sp=new LH(this.player);this.B=function(){function d(){return b.eb}
if(null!=b.u)return b.u;var e=$ya({im:a.getVideoData(1)});e=new eNa({GT:new UZ(function(){return b.eb},TZ(b.j).Pk),
Vp:e.HU(),aU:d,kW:d,Ri:TZ(b.j).Ri,ai:e.qF(),ek:TZ(b.j).ek,I:b.player,Dg:TZ(b.j).Dg,Sa:b.j.j.Sa,qh:TZ(b.j).qh,Qc:b.j.j.Qc});b.u=e.JS;return b.u};
this.j=new SZ(this.player,this,this.Sp,this.B);g.H(this,this.j);var c=a.V();!GC(c)||g.yC(c)||IC(c)||(g.H(this,new p_(a,function(){return b.eb},TZ(this.j).jb,TZ(this.j).Dg)),g.H(this,new VZ(a)))};
iRa=function(a){a.created!==a.loaded&&T("Created and loaded are out of sync")};
r_=function(a,b){b===a.Ks&&(a.Ks=void 0)};
jRa=function(a){a.eb?TZ(a.j).Cc.HF()||a.eb.HF()||TZ(a.j).gp.lq():T("AdService is null when calling maybeUnlockPrerollIfReady")};
kRa=function(a){a=g.r(TZ(a.j).qh.ji.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.gb)return!0;return!1};
s_=function(a){a=g.r(TZ(a.j).qh.ji.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
eqa=function(a,b,c){c=void 0===c?"":c;var d=TZ(a.j).Dg,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.Cf()||!1;d=lRa(b,d,f,e,TZ(a.j).Oj);hqa(TZ(a.j).Ec,c,d.JB,b);a.eb&&0<d.lw.length&&(a=a.eb,b=d.lw,b=gza(a,b),b=hza(a,b),iza(a,b))};
lRa=function(a,b,c,d,e){var f={lw:[],JB:[]};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=bNa(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=bNa(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.SC(l.I.V())?l=l.I.V().N("html5_enable_vod_lsar_ivar_pacf_unplugged"):GC(l.I.V())||g.HC(l.I.V())?l=!0:(T("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||hNa(m):null!=l.sandwichedLinearAdRenderer?m.I.V().N("html5_enable_vod_slar_with_notify_pacf"):
!1;l?f.JB.push(k):f.lw.push(k)}return f};
mRa=function(){if(!g.Ic)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.t_=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=jh(a,null);return b.parseFromString(g.ih(a),"application/xml")}if(nRa){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.u_=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={G:"svg",W:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(-1.000000, -3.000000)"},U:[{G:"polygon",W:{points:"0 0 24 0 24 24 0 24"}},{G:"path",W:{d:"M19,7 L5,7 L5,17 L19,17 L19,7 Z M23,19 L23,4.98 C23,3.88 22.1,3 21,3 L3,3 C1.9,3 1,3.88 1,4.98 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 Z M21,19.02 L3,19.02 L3,4.97 L21,4.97 L21,19.02 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Open video page";a.V().N("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={G:"svg",W:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},U:[{G:"path",W:{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Expand");g.W.call(this,{G:"button",Fa:["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.Oa("click",this.onClick,this);this.Ka("title",OL(a,e,"i"));g.sf(this,g.lM(b.kc(),this.element))};
ba=[];ha="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
fa=aaa(this);ia("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,k){this.j=f;ha(this,"description",{configurable:!0,writable:!0,value:k})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=fa[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ha(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ka(ea(this))}})}return a});
var oRa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ma(d,e)&&(a[e]=d[e])}return a};
ia("Object.assign",function(a){return a||oRa});
var oa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},pRa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=oa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),v_;
if("function"==typeof Object.setPrototypeOf)v_=Object.setPrototypeOf;else{var w_;a:{var qRa={a:!0},rRa={};try{rRa.__proto__=qRa;w_=rRa.a;break a}catch(a){}w_=!1}v_=w_?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=v_;
ra.prototype.S=function(a){this.u=a};
ra.prototype.return=function(a){this.B={return:a};this.j=this.D};
ra.prototype.Ya=function(a){this.j=a};
ia("Reflect",function(a){return a?a:{}});
ia("Reflect.construct",function(){return pRa});
ia("Reflect.setPrototypeOf",function(a){return a?a:pa?function(b,c){try{return pa(b,c),!0}catch(d){return!1}}:null});
ia("Promise",function(a){function b(k){this.j=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();try{k(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(k){return k instanceof b?k:new b(function(l){l(k)})}
if(a)return a;c.prototype.u=function(k){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(k)};
var e=fa.setTimeout;c.prototype.B=function(k){e(k,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var k=this.j;this.j=[];for(var l=0;l<k.length;++l){var m=k[l];k[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(k){this.B(function(){throw k;})};
b.prototype.C=function(){function k(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:k(this.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.xa(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.Da(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.X()};
b.prototype.va=function(){var k=this;e(function(){if(k.Z()){var l=fa.console;"undefined"!==typeof l&&l.error(k.B)}},1)};
b.prototype.Z=function(){if(this.K)return!1;var k=fa.CustomEvent,l=fa.Event,m=fa.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof k?k=new k("unhandledrejection",{cancelable:!0}):"function"===typeof l?k=new l("unhandledrejection",{cancelable:!0}):(k=fa.document.createEvent("CustomEvent"),k.initCustomEvent("unhandledrejection",!1,!0,k));k.promise=this;k.reason=this.B;return m(k)};
b.prototype.X=function(){if(null!=this.u){for(var k=0;k<this.u.length;++k)f.u(this.u[k]);this.u=null}};
var f=new c;b.prototype.xa=function(k){var l=this.C();k.Pz(l.resolve,l.reject)};
b.prototype.Da=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,w){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:w}
var n,p,q=new b(function(t,w){n=t;p=w});
this.Pz(m(k,n),m(l,p));return q};
b.prototype.catch=function(k){return this.then(void 0,k)};
b.prototype.Pz=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).Pz(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;w--;0==w&&n(t)}}
var t=[],w=0;do t.push(void 0),w++,d(m.value).Pz(q(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ia("Array.prototype.find",function(a){return a?a:function(b,c){return Da(this,b,c).PQ}});
ia("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(!ma(m,k)){var n=new c;ha(m,k,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var k="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ma(m,k))throw Error("WeakMap key fail: "+m);m[k][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ma(m,k)?m[k][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ma(m,k)&&ma(m[k],this.j)};
b.prototype.delete=function(m){return d(m)&&ma(m,k)&&ma(m[k],this.j)?delete m[k][this.j]:!1};
return b});
ia("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return ka(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&&ma(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});
ia("Array.prototype.entries",function(a){return a?a:function(){return Ea(this,function(b,c){return[b,c]})}});
ia("Object.setPrototypeOf",function(a){return a||pa});
ia("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}});
ia("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k<f&&c<e;)if(d[c++]!=b[k++])return!1;return k>=f}});
ia("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ia("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});
ia("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){return c})}});
ia("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}});
ia("globalThis",function(a){return a||fa});
ia("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push([d,b[d]]);return c}});
ia("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;
})})}});
ia("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Da(this,b,c).YM}});
ia("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}});
ia("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ia("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}});
ia("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Fa(this,b,"includes").indexOf(b,c||0)}});
ia("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ia("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ia("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ia("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push(b[d]);return c}});
ia("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}});
ia("Int8Array.prototype.fill",Ga);ia("Uint8Array.prototype.fill",Ga);ia("Uint8ClampedArray.prototype.fill",Ga);ia("Int16Array.prototype.fill",Ga);ia("Uint16Array.prototype.fill",Ga);ia("Int32Array.prototype.fill",Ga);ia("Uint32Array.prototype.fill",Ga);ia("Float32Array.prototype.fill",Ga);ia("Float64Array.prototype.fill",Ga);
ia("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Fa(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ia("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}});
ia("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});
ia("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ia("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}});
ia("Int8Array.prototype.copyWithin",Ha);ia("Uint8Array.prototype.copyWithin",Ha);ia("Uint8ClampedArray.prototype.copyWithin",Ha);ia("Int16Array.prototype.copyWithin",Ha);ia("Uint16Array.prototype.copyWithin",Ha);ia("Int32Array.prototype.copyWithin",Ha);ia("Uint32Array.prototype.copyWithin",Ha);ia("Float32Array.prototype.copyWithin",Ha);ia("Float64Array.prototype.copyWithin",Ha);ia("Number.parseInt",function(a){return a||parseInt});
Cj=Cj||{};g.C=this||self;Qa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Va($a,Error);$a.prototype.name="CustomError";var Qh;g.Va(ab,$a);ab.prototype.name="AssertionError";var sd=void 0,rd,Eaa="undefined"!==typeof TextDecoder,db,jaa="undefined"!==typeof TextEncoder;var qb=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 sRa=g.Ka("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ub;if(null!=sRa&&sRa){var tRa=g.C.navigator;ub=tRa?tRa.userAgentData||null:null}else ub=null;var Sb,Ul,an;Sb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.uRa=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.oc=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.Xn=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.Sl=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};
Ul=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.oc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
an=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.Tl=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};qc[" "]=function(){};var Nm,GQ,PMa,vRa,wRa,xRa,mC,nC,x_;g.oC=yb();g.Ic=zb();g.ot=wb("Edge");g.XC=g.ot||g.Ic;Nm=wb("Gecko")&&!(pb(g.tb(),"WebKit")&&!wb("Edge"))&&!(wb("Trident")||wb("MSIE"))&&!wb("Edge");g.zf=pb(g.tb(),"WebKit")&&!wb("Edge");GQ=Lb();PMa=Mb();g.hs=Ib();vRa=Jb();wRa=wb("iPad");xRa=wb("iPod");mC=Kb();nC=pb(g.tb(),"KaiOS");
a:{var y_="",z_=function(){var a=g.tb();if(Nm)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.ot)return/Edge\/([\d\.]+)/.exec(a);if(g.Ic)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.zf)return/WebKit\/(\S+)/.exec(a);if(g.oC)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
z_&&(y_=z_?z_[1]:"");if(g.Ic){var A_=tc();if(null!=A_&&A_>parseFloat(y_)){x_=String(A_);break a}}x_=y_}var vc=x_,Baa={},B_;if(g.C.document&&g.Ic){var yRa=tc();B_=yRa?yRa:parseInt(vc,10)||void 0}else B_=void 0;var Caa=B_;var xC,DE;g.Ex=Cb();xC=Jb()||wb("iPod");DE=wb("iPad");g.pC=Fb();g.mA=Db();g.Qs=Eb()&&!Kb();var zc={},Kc=null;var Lc="undefined"!==typeof Uint8Array,Nc,Pc={};var Sc;Rc.prototype.isEmpty=function(){return null==this.Zc};var Daa;Daa="function"===typeof Uint8Array.prototype.slice;g.$c=0;g.Zc=0;g.h=g.bd.prototype;g.h.init=function(a,b,c,d){d=void 0===d?{}:d;this.Hz=void 0===d.Hz?!1:d.Hz;a&&(a=Yc(a),this.u=a.buffer,this.D=a.Jt,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.Hz=!1};
g.h.reset=function(){this.j=this.C};
g.h.advance=function(a){this.j+=a;cd(this)};
g.h.pz=ca(0);var jd=[];md.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
md.prototype.advance=function(a){this.j.advance(a)};
var kR=[];var xd;zd.prototype.length=function(){return this.j.length};
zd.prototype.end=function(){var a=this.j;this.j=[];return a};var Ld="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Ae,ce=Object.freeze(Od([])),qp="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;ze.prototype.toJSON=function(){var a=this.He;return Ae?a:Zd(a,ae)};
ze.prototype.J=function(a){return a.u(this)};
ze.prototype.clone=function(){var a=Zd(this.He);ye=a;a=new this.constructor(a);ye=null;De(a,this);return a};
ze.prototype.toString=function(){return this.He.toString()};
var ye;g.v(Ee,ze);if(qp){var zRa={};Object.defineProperties(Ee,(zRa[Symbol.hasInstance]=Ud(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),zRa))};var Ie,Qe,Te,Ue,Xea,dm,Yea,ff,Uia,sq,Via;Ie=Symbol();Qe=Symbol();Te=Symbol();Ue=Symbol();Xea=g.We(function(a,b,c){if(1!==a.u)return!1;a=g.qd(a);je(b,c,a,0);return!0},g.Xe);
dm=g.We(function(a,b,c){if(0!==a.u)return!1;a=g.dd(a.j);je(b,c,a,0);return!0},g.Ye);
Yea=g.We(function(a,b,c){if(0!==a.u)return!1;a=g.ed(a.j);je(b,c,a,0);return!0},g.Ze);
g.uq=g.We(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,g.td(a));return!0},g.af);
g.tq=g.We(function(a,b,c,d,e){if(2!==a.u)return!1;g.pd(a,we(b,c,d),e);return!0},function(a,b,c,d,e){b=re(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=Gd(a,c);e(b[d],a);Hd(a,f)}});
g.kf=g.We(function(a,b,c,d,e,f){if(2!==a.u)return!1;(f=le(b,f))&&f!==c&&ie(b,f);b=g.ne(b,d,c);g.pd(a,b,e);return!0},g.bf);
ff=g.We(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,vd(a));return!0},function(a,b,c){b=g.be(b,c);
null!=b&&g.Kd(a,c,Yc(b).buffer)});
Uia=g.We(function(a,b,c){if(2!==a.u)return!1;a=vd(a);g.ke(b,c,a,void 0,!0);return!0},function(a,b,c){b=g.de(b,c);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.Kd(a,c,Yc(e).buffer)}});
sq=g.We(function(a,b,c){if(0!==a.u)return!1;a=g.ed(a.j)>>>0;g.D(b,c,a);return!0},function(a,b,c){b=g.be(b,c);
null!=b&&null!=b&&(g.Fd(a,c,0),Bd(a.j,b))});
Via=g.We(function(a,b,c){if(0!==a.u)return!1;a=g.ed(a.j);g.D(b,c,a);return!0},function(a,b,c){b=g.be(b,c);
null!=b&&(b=parseInt(b,10),g.Fd(a,c,0),Cd(a.j,b))});g.v(g.F,Ee);if(qp){var ARa={};Object.defineProperties(g.F,(ARa[Symbol.hasInstance]=Ud(Object[Symbol.hasInstance]),ARa))};g.v(ef,g.F);g.v(gf,g.F);g.v(hf,g.F);g.v(jf,g.F);var lf=[1,2,3];g.h=nf.prototype;g.h.IT=function(a){var b=g.Ca.apply(1,arguments),c=this.gF(b);c?c.push(new mf(a)):this.QP(a,b)};
g.h.QP=function(a){this.Rs.set(this.wM(g.Ca.apply(1,arguments)),[new mf(a)])};
g.h.gF=function(){var a=this.wM(g.Ca.apply(0,arguments));return this.Rs.has(a)?this.Rs.get(a):void 0};
g.h.KU=function(){var a=this.gF(g.Ca.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.h.clear=function(){this.Rs.clear()};
g.h.wM=function(){var a=g.Ca.apply(0,arguments);return a?a.join(","):"key"};g.v(of,nf);of.prototype.B=function(a){var b=g.Ca.apply(1,arguments),c=0,d=this.KU(b);d&&(c=d.yL);this.QP(c+a,b)};g.v(pf,nf);pf.prototype.Dl=function(a){this.IT(a,g.Ca.apply(1,arguments))};g.G.prototype.Ei=!1;g.G.prototype.isDisposed=function(){return this.Ei};
g.G.prototype.dispose=function(){this.Ei||(this.Ei=!0,this.qa())};
g.G.prototype.qa=function(){if(this.Yf)for(;this.Yf.length;)this.Yf.shift()()};g.vf.prototype.stopPropagation=function(){this.u=!0};
g.vf.prototype.preventDefault=function(){this.defaultPrevented=!0};var xf={};var cba=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=Af("AnimationEnd"),DFa=Af("TransitionEnd");g.Va(Bf,g.vf);var BRa={2:"touch",3:"pen",4:"mouse"};
Bf.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)?Nm&&(rc(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:BRa[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&Bf.re.preventDefault.call(this)};
Bf.prototype.stopPropagation=function(){Bf.re.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Bf.prototype.preventDefault=function(){Bf.re.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Cf="closure_listenable_"+(1E6*Math.random()|0);var $aa=0;var ag="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");dg.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=fg(a,b,d,e);-1<k?(b=a[k],c||(b.Oz=!1)):(b=new aba(b,this.src,f,!!d,e),b.Oz=c,a.push(b));return b};
dg.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=fg(e,b,c,d);return-1<b?(Ef(e[b]),g.Yb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
dg.prototype.Tw=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=fg(a,b,c,d));return-1<e?a[e]:null};var lg="closure_lm_"+(1E6*Math.random()|0),qg={},ng=0,rg="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Va(g.sg,g.G);g.sg.prototype[Cf]=!0;g.h=g.sg.prototype;g.h.addEventListener=function(a,b,c,d){g.hg(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){og(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.ib;d=a.type||a;if("string"===typeof a)a=new g.vf(a,b);else if(a instanceof g.vf)a.target=a.target||b;else{var e=a;a=new g.vf(d,b);g.bg(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var k=a.currentTarget=c[f];e=tg(k,d,!0,a)&&e}a.u||(k=a.currentTarget=b,e=tg(k,d,!0,a)&&e,a.u||(e=tg(k,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)k=a.currentTarget=c[f],e=tg(k,d,!1,a)&&e;return e};
g.h.qa=function(){g.sg.re.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,Ef(d[e]);delete a.listeners[c];a.j--}}this.Ia=null};
g.h.Oa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.h.fB=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.h.vc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.h.Tw=function(a,b,c,d){return this.B.Tw(String(a),b,c,d)};ug.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 Eba=g.Ic||g.zf;var CRa={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 Eg;Ig.prototype.rl=!0;Ig.prototype.Qh=function(){return this.j};
var Hg={},Gg={};g.Kg("");var Lg={};Mg.prototype.Qh=function(){return this.j.toString()};
Mg.prototype.toString=function(){return this.j.toString()};var Bia,Aia,zia,Cia;Bia=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.DRa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.ERa=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.Rp=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]");Aia=/^http:\/\/.*/;g.FRa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");zia=/\s+/;Cia=/[\d\u06f0-\u06f9]/;g.h=Og.prototype;g.h.rl=!0;g.h.Qh=function(){return this.j.toString()};
g.h.MF=!0;g.h.As=function(){return 1};
g.h.toString=function(){return this.j+""};
var hba=/%{(\w+)}/g,gba=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Ng={};g.h=g.Sg.prototype;g.h.rl=!0;g.h.Qh=function(){return this.j.toString()};
g.h.MF=!0;g.h.As=function(){return 1};
g.h.toString=function(){return this.j.toString()};
var jba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Vg=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Rg={},Wg=new g.Sg("about:invalid#zClosurez",Rg);var Zg={};$g.prototype.Qh=function(){return this.j};
$g.prototype.toString=function(){return this.j.toString()};
var ch=new $g("",Zg),mba=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),fh=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),eh=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"),nba=/\/\*/;var gh={};hh.prototype.As=function(){return this.u};
hh.prototype.Qh=function(){return this.j.toString()};
hh.prototype.toString=function(){return this.j.toString()};
var GRa=/^[a-zA-Z0-9-]+$/,HRa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},IRa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},qh=new hh(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",0,gh);var tba=Cg(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.ih(qh);return!b.parentElement}),uba=/^[\w+/_-]+[=]{0,2}$/;g.h=g.Bh.prototype;g.h.clone=function(){return new g.Bh(this.x,this.y)};
g.h.equals=function(a){return a instanceof g.Bh&&Ch(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.Dh.prototype;g.h.clone=function(){return new g.Dh(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!Fh(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.JRa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var yba={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=Oh.prototype;g.h.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.h.Ca=function(a){return g.$h(a,this.j)};
g.h.createElement=function(a){return ci(this.j,a)};
g.h.appendChild=function(a,b){a.appendChild(b)};
g.h.append=function(a,b){Cba(Ph(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.ii;g.h.contains=g.ki;var pi;ri.prototype.add=function(a,b){var c=Lba.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 Lba=new ug(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,Jba=new ri;Mba.prototype.reset=function(){this.context=this.onRejected=this.u=this.j=null;this.B=!1};
var Nba=new ug(function(){return new Mba},function(a){a.reset()});
g.yi.prototype.then=function(a,b,c){return Vba(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.yi.prototype.$goog_Thenable=!0;g.h=g.yi.prototype;g.h.Fh=function(a,b){return Vba(this,null,a,b)};
g.h.catch=g.yi.prototype.Fh;g.h.cancel=function(a){if(0==this.j){var b=new Ei(a);g.vi(function(){Rba(this,b)},this)}};
g.h.B_=function(a){this.j=0;xi(this,2,a)};
g.h.C_=function(a){this.j=0;xi(this,3,a)};
g.h.zU=function(){for(var a;a=Sba(this);)Tba(this,a,this.j,this.K);this.J=!1};
var Zba=Hba;g.Va(Ei,$a);Ei.prototype.name="cancel";g.Va(g.Fi,g.sg);g.h=g.Fi.prototype;g.h.enabled=!1;g.h.Rb=null;g.h.setInterval=function(a){this.gg=a;this.Rb&&this.enabled?(this.stop(),this.start()):this.Rb&&this.stop()};
g.h.p_=function(){if(this.enabled){var a=g.Ua()-this.AN;0<a&&a<.8*this.gg?this.Rb=this.Py.setTimeout(this.pL,this.gg-a):(this.Rb&&(this.Py.clearTimeout(this.Rb),this.Rb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.h.start=function(){this.enabled=!0;this.Rb||(this.Rb=this.Py.setTimeout(this.pL,this.gg),this.AN=g.Ua())};
g.h.stop=function(){this.enabled=!1;this.Rb&&(this.Py.clearTimeout(this.Rb),this.Rb=null)};
g.h.qa=function(){g.Fi.re.qa.call(this);this.stop();delete this.Py};g.h=g.Ii.prototype;g.h.RH=function(a){this.D=a;this.C=1};
g.h.ZP=function(){var a=this.j.values();a=[].concat(g.u(a)).filter(function(b){return b.Rs.size});
a.length&&this.K.flush(a,this.D);bca(a);this.B=0;this.u.enabled&&this.u.stop()};
g.h.Gz=function(a){var b=g.Ca.apply(1,arguments);this.j.has(a)||this.j.set(a,new of(a,b))};
g.h.fL=function(a){var b=g.Ca.apply(1,arguments);this.j.has(a)||this.j.set(a,new pf(a,b))};
g.h.FJ=function(a){this.oD.apply(this,[a,1].concat(g.u(g.Ca.apply(1,arguments))))};
g.h.oD=function(a,b){var c=g.Ca.apply(2,arguments),d=aca(this,a);d&&d instanceof of&&(d.B(b,c),$ba(this))};
g.h.Dl=function(a,b){var c=g.Ca.apply(2,arguments),d=aca(this,a);d&&d instanceof pf&&(d.Dl(b,c),$ba(this))};cca.prototype.Dl=function(a,b,c,d,e){this.j.Dl("/client_streamz/po/w/rl",a,b,c,d,e)};
dca.prototype.Dl=function(a,b,c){this.j.Dl("/client_streamz/po/w/el",a,b,c)};var fca,gca;g.v(g.Ji,g.F);g.v(g.Ki,g.F);g.v(g.Li,g.F);g.v(g.Mi,g.F);fca=[3,6,4];gca=[1];g.Oi=[1,2,3];g.Ni=[1,2,3];g.v(ica,g.F);var hca=[1];var pca={};g.h=Pi.prototype;g.h.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{hB: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.cia;d=c.SZ||!1;var f=c.domain||void 0;var k=c.path||void 0;var l=c.hB}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=qb(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,"",{hB:0,path:b,domain:c});return d};
g.h.xm=function(){return Qi(this).keys};
g.h.Mi=function(){return Qi(this).values};
g.h.isEmpty=function(){return!this.j.cookie};
g.h.clear=function(){for(var a=Qi(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Or=new Pi("undefined"==typeof document?null:document);g.v(Ti,g.F);var sca=[2];g.Vi.prototype.u=0;g.Vi.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.Vi.prototype.getValue=function(){return this.B};var wca={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},vca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Zi.prototype.u=null;Zi.prototype.getOptions=function(){return this.u||(this.u=this.C())};var C_;g.Va($i,Zi);$i.prototype.j=function(){var a=yca(this);return a?new ActiveXObject(a):new XMLHttpRequest};
$i.prototype.C=function(){var a={};yca(this)&&(a[0]=!0,a[1]=!0);return a};
C_=new $i;var cj=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Gca=/#|$/,Hca=/[?&]($|#)/;g.Va(g.Aj,g.sg);var Rca=/^https?$/i,KRa=["POST","PUT"],Kca=[];g.h=g.Aj.prototype;g.h.ZT=function(){this.dispose();g.Zb(Kca,this)};
g.h.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.X+"; newUri="+a);b=b?b.toUpperCase():"GET";this.X=a;this.C="";this.u=0;this.Ra=b;this.Da=!1;this.D=!0;this.j=this.Z?this.Z.j():C_.j();this.xa=this.Z?this.Z.getOptions():C_.getOptions();this.j.onreadystatechange=(0,g.Sa)(this.NO,this);try{Ui(Ej(this,"Opening Xhr")),this.Ha=!0,this.j.open(b,String(a),!0),this.Ha=!1}catch(k){Ui(Ej(this,"Error opening Xhr: "+k.message));Oca(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.Tb(KRa,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.Qa&&(this.j.responseType=this.Qa);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Qca(this),0<this.S&&(this.va=Mca(this.j),Ui(Ej(this,"Will abort after "+this.S+"ms if incomplete, xhr2 "+this.va)),
this.va?(this.j.timeout=this.S,this.j.ontimeout=(0,g.Sa)(this.GJ,this)):this.ra=g.Gi(this.GJ,this.S,this)),Ui(Ej(this,"Sending request")),this.ma=!0,this.j.send(a),this.ma=!1}catch(k){Ui(Ej(this,"Send error: "+k.message)),Oca(this,k)}};
g.h.GJ=function(){"undefined"!=typeof Cj&&this.j&&(this.C="Timed out after "+this.S+"ms, aborting",this.u=8,Ej(this,this.C),this.dispatchEvent("timeout"),this.abort(8))};
g.h.abort=function(a){this.j&&this.D&&(Ej(this,"Aborting"),this.D=!1,this.J=!0,this.j.abort(),this.J=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Bj(this))};
g.h.qa=function(){this.j&&(this.D&&(this.D=!1,this.J=!0,this.j.abort(),this.J=!1),Bj(this,!0));g.Aj.re.qa.call(this)};
g.h.NO=function(){this.isDisposed()||(this.Ha||this.ma||this.J?Pca(this):this.hY())};
g.h.hY=function(){Pca(this)};
g.h.isActive=function(){return!!this.j};
g.h.isComplete=function(){return 4==g.Dj(this)};
g.h.getStatus=function(){try{return 2<g.Dj(this)?this.j.status:-1}catch(a){return-1}};
g.h.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.h.getLastError=function(){return"string"===typeof this.C?this.C:String(this.C)};g.v(Kj,g.F);g.v(Vca,g.F);var Uca=[1];g.v(Lj,g.F);g.v(Mj,g.F);Mj.prototype.N=function(){return null!=g.be(this,7)};
var Wca=[3,20,27];g.v(Yca,g.F);var Xca=[3,5];g.v($ca,g.F);var Zca=[5];g.v(ada,g.F);var LRa;LRa=new cf(175237375,{Kha:0},ada,function(a,b){if(null!=b){var c={lia:xe(b,1,-1)};a&&(c.VQ=b);return c}});g.v(Oj,g.sg);g.h=Oj.prototype;g.h.qa=function(){this.aF();g.sg.prototype.qa.call(this)};
g.h.dispatch=function(a){if(a instanceof Mj)this.log(a);else{var b=new Mj;a=Be(a);b=g.D(b,8,a);this.log(b)}};
g.h.log=function(a){a=a.clone();var b=this.ob++;g.D(a,21,b);this.Z&&g.D(a,26,this.Z);if(!g.be(a,1)){b=a;var c=Date.now().toString();g.D(b,1,c)}null!=g.be(a,15)||g.D(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),se(a,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.K;this.u.push(a);this.dispatchEvent(new hda(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.xa)gda(this);else{var d=Date.now();if(this.Xa>d&&this.Da<d)b&&b("throttled");else{var e=this.J.ye(this.u,this.K);d={};var f=this.Va();f&&(d.Authorization=f);var k=dda(this);this.X&&(d["X-Goog-AuthUser"]=this.X,k=xj(k,"authuser",this.X));this.pageId&&(d["X-Goog-PageId"]=this.pageId,k=xj(k,"pageId",this.pageId));if(f&&this.Wa===f)b&&b("stale-auth-token");else{this.u=[];this.j.enabled&&this.j.stop();this.K=0;var l=Be(e),m;this.S&&
this.S.isSupported(l.length)&&(m=this.S.compress(l));var n={url:k,body:l,QT:1,xr:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(w){c.D.reset();c.j.setInterval(c.D.getValue());if(w){var x=null;try{var y=JSON.parse(w.replace(")]}'\n",""));x=new $ca(y)}catch(z){}x&&(w=Number(fe(x,1,"-1")),0<w&&(c.Da=Date.now(),c.Xa=c.Da+w),x=x.J(LRa))&&(x=xe(x,1,-1),-1!=x&&(c.Ra||eda(c,x)))}a&&a()},q=function(w,x){var y=re(e,Mj,3);
g.Wi(c.D);c.j.setInterval(c.D.getValue());401===w&&f&&(c.Wa=f);void 0===x&&(x=500<=w&&600>w||401===w||0===w);x&&(c.u=y.concat(c.u),c.va||c.j.enabled||c.j.start());b&&b("net-send-failed",w)},t=function(){c.Qa?c.Qa.send(n,p,q):c.fb(n,p,q)};
m?m.then(function(w){n.xr["Content-Encoding"]="gzip";n.xr["Content-Type"]="application/binary";n.body=w;n.QT=2;t()},function(){t()}):t()}}}};
g.h.aF=function(){this.flush()};
g.v(hda,g.vf);bda.prototype.ye=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=ue(c,3,a);b&&g.D(a,14,b);return a};kda.prototype.ye=function(){var a=new Oj(1654,this.ma?this.ma:Si,"0",this.J,this.B,this.C,!1,this.xa,void 0,void 0,this.K?this.K:void 0);this.X&&Nj(a.J,this.X);if(this.u){var b=this.u,c=Pj(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 Ti),b=Be(b),g.D(a.C,4,b)):a.C&&ie(a.C,4));this.ra&&(b=this.ra,a.C||(a.C=new Ti),he(a.C,2,b));this.Z&&(b=this.Z,a.Ra=!0,eda(a,b));this.va&&ida(a.J,this.va);return a};lda.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new ica,c=[],d=0;d<a.length;d++){var e=a[d],f=g.jca(e);c.push(f);e.clear()}ue(b,1,c);this.j.dispatch(b);this.j.flush()}};g.v(Qj,Error);Qj.prototype.name="RpcError";Sj.prototype.done=function(){this.logger.HN(this.j,Rj()-this.startMillis)};
Tj.prototype.vx=function(){};
Tj.prototype.HN=function(){};
Tj.prototype.nG=function(a,b,c){return c};
Uj.prototype.vx=function(a){this.clientError.j.FJ("/client_streamz/po/w/cec",a,this.fk)};
Uj.prototype.HN=function(a,b){this.u.Dl(b,a,this.fk)};
Uj.prototype.nG=function(a,b,c){function d(k){var l=Rj()-f;e.B.Dl(l,a,b,k,e.fk)}
var e=this,f=Rj();c.then(function(){d(0)},function(k){k instanceof Qj?d(k.code):d(-1)});
return c};g.v(nda,g.F);g.v(oda,g.F);g.v(Vj,g.F);Vj.j="bfkj";Xj.prototype.snapshot=function(a){if(this.j)throw Error("Already disposed");return this.u.then(function(b){var c=b.NT;return new Promise(function(d){c(function(e){d(e)},[a.qw,
a.a_])})})};
Xj.prototype.dispose=function(){this.j=!0;this.u.then(function(a){(a=a.ZZ)&&a()})};
Xj.prototype.isDisposed=function(){return this.j};/*

 SPDX-License-Identifier: Apache-2.0
*/
var ck={};g.v(Yj,qda);Yj.prototype.toString=function(){return this.j.toString()};g.v(Zj,rda);Zj.prototype.toString=function(){return this.j};
var oAa=new Zj("about:invalid#zTSz",ck);g.v(dk,g.F);g.v(ek,g.F);g.v(fk,g.F);Bda.prototype.ping=function(a,b){var c=this,d,e;return g.B(function(f){d=c.j();e=b||new fk;var k=g.D(e,1,c.fk);g.D(k,2,a);return g.A(f,c.client.ping(e,d),0)})};fa.Object.defineProperties(Fda.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.j.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.j.b}}});g.v(hk,g.F);ik.prototype.yA=function(){return this.B};
ik.prototype.getMetadata=function(){return this.u};jk.prototype.getMetadata=function(){return this.j};
jk.prototype.yA=function(){return this.u};
jk.prototype.getStatus=function(){return null};kk.prototype.getName=function(){return this.name};var MRa=new kk("/google.internal.waa.v1.Waa/Create",dk,hk,function(a){return Be(a)},function(a){return Ce(hk,a)});g.v(lk,g.F);var Dda=new kk("/google.internal.waa.v1.Waa/GenerateIT",ek,lk,function(a){return Be(a)},function(a){return Ce(lk,a)});g.v(mk,g.F);var NRa=new kk("/google.internal.waa.v1.Waa/Ping",fk,mk,function(a){return Be(a)},function(a){return Ce(mk,a)});var dea=Promise;g.v(nk,g.F);nk.prototype.getValue=function(){return fe(this,2,"")};
nk.prototype.setValue=function(a){Td(this);null==a||(a instanceof Rc?a.isEmpty():0===a.length)?ie(this,2):g.D(this,2,a);return this};g.v(ok,g.F);ok.prototype.getMessage=function(){return fe(this,2,"")};
var Hda=[3];pk.prototype.Qm=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.J.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
pk.prototype.removeListener=function(a,b){"data"==a?tk(this.B,b):"metadata"==a?tk(this.D,b):"status"==a?tk(this.J,b):"end"==a?tk(this.C,b):"error"==a&&tk(this.u,b);return this};
pk.prototype.cancel=function(){this.j.abort()};
pk.prototype.cancel=pk.prototype.cancel;pk.prototype.removeListener=pk.prototype.removeListener;pk.prototype.on=pk.prototype.Qm;g.Va(g.uk,Zi);g.uk.prototype.j=function(){return new vk(this.D,this.B)};
g.uk.prototype.C=zg({});g.Va(vk,g.sg);g.h=vk.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;wk(this)};
g.h.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.X,method:this.ma,credentials:this.J,cache:void 0};a&&(b.body=a);(this.ra||g.C).fetch(new Request(this.Z,b)).then(this.cV.bind(this),this.KA.bind(this))};
g.h.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,xk(this));this.readyState=0};
g.h.cV=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,wk(this)),this.j&&(this.readyState=3,wk(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.aV.bind(this),this.KA.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;Mda(this)}else a.text().then(this.bV.bind(this),this.KA.bind(this))};
g.h.SU=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?xk(this):wk(this);3==this.readyState&&Mda(this)}};
g.h.bV=function(a){this.j&&(this.response=this.responseText=a,xk(this))};
g.h.aV=function(a){this.j&&(this.response=a,xk(this))};
g.h.KA=function(){this.j&&xk(this)};
g.h.setRequestHeader=function(a,b){this.X.append(a,b)};
g.h.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.h.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
Object.defineProperty(vk.prototype,"withCredentials",{get:function(){return"include"===this.J},
set:function(a){this.J=a?"include":"same-origin"}});g.zk.prototype.toString=function(){var a=[],b=this.C;b&&a.push(Gk(b,ORa,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.S)&&a.push(Gk(b,ORa,!0),"@"),a.push(g.Gh(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(Gk(c,"/"==c.charAt(0)?PRa:QRa,!0));(c=this.B.toString())&&a.push("?",c);(c=this.D)&&a.push("#",Gk(c,RRa));return a.join("")};
g.zk.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.Ak(b,a.C):c=!!a.S;c?b.S=a.S:c=!!a.j;c?g.Bk(b,a.j):c=null!=a.u;var d=a.getPath();if(c)g.Ck(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.ob(e,"./")||g.ob(e,"/.")){d=gb(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?Dk(b,a.B.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.zk.prototype.clone=function(){return new g.zk(this)};
g.zk.prototype.getPath=function(){return this.K};
var ORa=/[#\/\?@]/g,QRa=/[#\?:]/g,PRa=/[#\?]/g,Qda=/[#\?@]/g,RRa=/#/g;g.h=Fk.prototype;g.h.add=function(a,b){Jk(this);this.B=null;a=Kk(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){Jk(this);a=Kk(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(){Jk(this);return 0==this.u};
g.h.forEach=function(a,b){Jk(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.h.xm=function(){Jk(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.Mi=function(a){Jk(this);var b=[];if("string"===typeof a)Sda(this,a)&&(b=b.concat(this.j.get(Kk(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){Jk(this);this.B=null;a=Kk(this,a);Sda(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.Mi(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.Gh(d);d=this.Mi(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+g.Gh(d[f]));a.push(k)}}return this.B=a.join("&")};
g.h.clone=function(){var a=new Fk;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.yk(arguments[b],function(c,d){this.add(d,c)},this)};g.Va(g.Tk,g.G);var SRa=[];g.h=g.Tk.prototype;g.h.Oa=function(a,b,c,d){Array.isArray(b)||(b&&(SRa[0]=b.toString()),b=SRa);for(var e=0;e<b.length;e++){var f=g.hg(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.h.fB=function(a,b,c,d){return Vda(this,a,b,c,d)};
g.h.vc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.vc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Pa(d)?!!d.capture:!!d,e=e||this.u||this,c=ig(c),d=!!d,b=Df(a)?a.Tw(b,c,d,e):a?(a=kg(a))?a.Tw(b,c,d,e):null:null,b&&(pg(b),delete this.j[b.key])};
g.h.qa=function(){g.Tk.re.qa.call(this);g.Uk(this)};
g.h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Wda.prototype.isInputValid=function(){return this.B};Vk.prototype.isInputValid=function(){return 3!=this.j};
Vk.prototype.Fe=function(){return this.J};
Vk.prototype.Ez=function(){return!0};
Vk.prototype.parse=function(a){function b(m){m&128&&Wk(f,k,l,"invalid tag");2!=(m&7)&&Wk(f,k,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Wk(f,k,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Wk(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:Wk(f,k,l,"stream already broken");break;case 0:b(k[l]);break;case 1:c(k[l]);break;case 2:d(k[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.X++;l++}a=f.K;f.K=[];return 0<a.length?a:null};Zk.prototype.isInputValid=function(){return null===this.j};
Zk.prototype.Fe=function(){return this.j};
Zk.prototype.Ez=function(){return!1};
Zk.prototype.parse=function(a){null!==this.j&&Yda(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||Xda(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=Hc(c.j.slice(0,4*d))}catch(k){Xda(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){Yda(this,a,k.message)}this.u+=a.length;return b};var TRa={INIT:0,Uv:1,PD:2,Js:3,hv:4,fv:5,STRING:6,JD:7,vK:8,IK:9,JK:10,KK:11,dJ:12,eJ:13,fJ:14,gJ:15,zK:16,AK:17,BK:18,uT:19,ND:20};g.h=al.prototype;g.h.isInputValid=function(){return 3!=this.D};
g.h.Fe=function(){return this.X};
g.h.done=function(){return 2===this.D};
g.h.Ez=function(){return!1};
g.h.parse=function(a){function b(){for(;t<a.length;)if($k(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.PD:"["===x?f.j=m.hv:$k(x)||bl(f,a,t);continue;case m.JD:case m.PD:if($k(x))continue;if(f.j===m.JD)k.push(m.vK);else if("}"===x){e("{}");f.j=d();continue}else k.push(m.Js);'"'===x?f.j=m.STRING:bl(f,a,t);continue;case m.vK:case m.Js:if($k(x))continue;":"===x?(f.j===m.Js&&(k.push(m.Js),f.u++),f.j=m.Uv):"}"===x?(f.u--,e(),f.j=d()):","===x?(f.j===m.Js&&k.push(m.Js),f.j=m.JD):bl(f,a,t);continue;case m.hv:case m.Uv:if($k(x))continue;
if(f.j===m.hv)if(f.u++,f.j=m.Uv,"]"===x){f.u--;if(0===f.u){f.j=m.fv;return}e("[]");f.j=d();continue}else k.push(m.fv);'"'===x?f.j=m.STRING:"{"===x?f.j=m.PD:"["===x?f.j=m.hv:"t"===x?f.j=m.IK:"f"===x?f.j=m.dJ:"n"===x?f.j=m.zK:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.j=m.ND:bl(f,a,t));continue;case m.fv:if(","===x)k.push(m.fv),f.j=m.Uv,1===f.u&&(q=t);else if("]"===x){f.u--;if(0===f.u)return;e();f.j=d()}else if($k(x))continue;else bl(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.IK:if(!x)continue;"r"===x?f.j=m.JK:bl(f,a,t);continue;case m.JK:if(!x)continue;"u"===x?f.j=m.KK:bl(f,a,t);continue;case m.KK:if(!x)continue;"e"===x?f.j=d():bl(f,a,t);continue;case m.dJ:if(!x)continue;"a"===x?f.j=m.eJ:
bl(f,a,t);continue;case m.eJ:if(!x)continue;"l"===x?f.j=m.fJ:bl(f,a,t);continue;case m.fJ:if(!x)continue;"s"===x?f.j=m.gJ:bl(f,a,t);continue;case m.gJ:if(!x)continue;"e"===x?f.j=d():bl(f,a,t);continue;case m.zK:if(!x)continue;"u"===x?f.j=m.AK:bl(f,a,t);continue;case m.AK:if(!x)continue;"l"===x?f.j=m.BK:bl(f,a,t);continue;case m.BK:if(!x)continue;"l"===x?f.j=d():bl(f,a,t);continue;case m.uT:"."===x?f.j=m.ND:bl(f,a,t);continue;case m.ND:if(-1!=="0123456789.eE+-".indexOf(x))continue;else t--,f.B--,f.j=
d();continue;default:bl(f,a,t)}}}
function d(){var x=k.pop();return null!=x?x:m.Uv}
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=TRa,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return bl(f,a,t),null;case 2:return b()&&bl(f,a,t),null;case 0:if(b()){var w=a[t++];f.B++;if("["===w){f.D=1;p=t;f.j=m.hv;continue}else bl(f,a,t)}return null;case 1:return c(),0===f.u&&f.j==m.fv?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.J.length?(w=f.J,f.J=[],w):null}return null};cl.prototype.isInputValid=function(){return null===this.D};
cl.prototype.Fe=function(){return this.D};
cl.prototype.Ez=function(){return!1};
cl.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 al({Yga:!0,oU:!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(!$k(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};dl.prototype.getStatus=function(){return this.C};
dl.prototype.Z=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Dj(this.j),c=this.j.u,d=this.j.getStatus(),e=g.Gj(this.j);a=[];if(g.Hj(this.j)instanceof Array){var f=g.Hj(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.X=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?el(this,7):7==c?el(this,8):d||el(this,3)),this.u||(this.u=Zda(this.j),null==this.u&&el(this,5)),2<this.C)fl(this);else{if(a.length>this.B){var k=a.length;c=[];try{if(this.u.Ez())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){el(this,5);fl(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){el(this,5);fl(this);break a}}4==b?(0!=e.length||
this.X?el(this,2):el(this,4),fl(this)):el(this,1)}}}catch(p){el(this,6),fl(this)}};g.h=$da.prototype;g.h.Qm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.h.addListener=function(a,b){this.Qm(a,b);return this};
g.h.removeListener=function(a,b){var c=this.u[a];c&&g.Zb(c,b);(a=this.j[a])&&g.Zb(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.dX=function(a){var b=this.u.data;b&&aea(a,b);(b=this.j.data)&&aea(a,b);this.j.data=[]};
g.h.OY=function(){switch(this.B.getStatus()){case 1:gl(this,"readable");break;case 5:case 6:case 4:case 7:case 3:gl(this,"error");break;case 8:gl(this,"close");break;case 2:gl(this,"end")}};bea.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return cea(function(k){var l=k.yA(),m=k.getMetadata(),n=fea(e,!1);m=gea(e,m,n,f+l.getName());var p=hea(n,l.u,!0);k=l.j(k.j);n.send(m,"POST",k);return p},this.C).call(this,Gda(d,b,c))};hl.prototype.create=function(a,b){return gk(this.j,"https://web.archive.org/web/20220406233357/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},MRa)};
hl.prototype.ping=function(a,b){return gk(this.j,"https://web.archive.org/web/20220406233357/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},NRa)};var jea={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.v(ll,Error);g.v(ml,g.G);g.v(ol,ml);ol.prototype.Vt=function(a){++this.D>=this.J&&this.B.resolve();var b=new Sj(this.logger,"C");a=new Fda(this.C(a.qw));b.done();b=a.u;var c=this.j;c=qe(c,hf,3===le(c,lf)?3:-1);c||(c=new hf,a=Jc(a.B),g.D(c,2,a),te(this.j,3,lf,c));g.D(c,1,b);return g.Ve(this.j,Yaa)};
g.v(pl,ml);pl.prototype.Vt=function(){return this.j};
g.v(ql,ml);ql.prototype.Vt=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C};
kl.prototype.isReady=function(){return!!this.j};
kl.prototype.ready=function(){var a=this;return g.B(function(b){return g.A(b,a.u.promise,0)})};
kl.prototype.Vt=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Sj(this.logger,this.j.u);try{return this.j.Vt(a)}catch(e){b=new Sj(this.logger,"e");var c=new ll(5,e);this.logger.vx(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new ql(c)).Vt()}finally{b.done()}};var on;on=["av.default","js","unreleased"].slice(-1)[0];var cn=document,Gl=window;var vea={NONE:0,R5:1},ffa={jR:0,Nca:1,Mca:2,Oca:3},efa={g1:"a",I5:"d",VIDEO:"v"};sl.prototype.isVisible=function(){return this.Fq?.3<=this.qd:.5<=this.qd};var Cl={l2:0,l6:1},cfa={NONE:0,E7:1,I6:2};tl.prototype.getValue=function(){return this.Zc};
g.v(ul,tl);ul.prototype.setValue=function(a){if(null!==this.Zc||!g.Pf(this.u,a))return!1;this.Zc=a;return!0};
g.v(vl,tl);vl.prototype.setValue=function(a){if(null!==this.Zc||"number"!==typeof a)return!1;this.Zc=a;return!0};
g.v(wl,tl);wl.prototype.setValue=function(a){if(null!==this.Zc||"string"!==typeof a)return!1;this.Zc=a;return!0};xl.prototype.disable=function(){this.u=!1};
xl.prototype.enable=function(){this.u=!0};
xl.prototype.isEnabled=function(){return this.u};
xl.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var jga=!g.Ic&&!Eb();Dl.prototype.now=function(){return 0};
Dl.prototype.u=function(){return 0};
Dl.prototype.B=function(){return 0};
Dl.prototype.j=function(){return 0};g.v(Fl,Dl);Fl.prototype.now=function(){return El()&&Gl.performance.now?Gl.performance.now():Dl.prototype.now.call(this)};
Fl.prototype.u=function(){return El()&&Gl.performance.memory?Gl.performance.memory.totalJSHeapSize||0:Dl.prototype.u.call(this)};
Fl.prototype.B=function(){return El()&&Gl.performance.memory?Gl.performance.memory.usedJSHeapSize||0:Dl.prototype.B.call(this)};
Fl.prototype.j=function(){return El()&&Gl.performance.memory?Gl.performance.memory.jsHeapSizeLimit||0:Dl.prototype.j.call(this)};var yea=Cg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});zea.prototype.isVisible=function(){return 1===Jl(cn)};g.Kg("csi.gstatic.com");g.Kg("googleads.g.doubleclick.net");g.Kg("partner.googleadservices.com");g.Kg("pubads.g.doubleclick.net");g.Kg("securepubads.g.doubleclick.net");g.Kg("tpc.googlesyndication.com");var Dea=/https?:\/\/[^\/]+/,Bea={x0:"allow-forms",y0:"allow-modals",z0:"allow-orientation-lock",A0:"allow-pointer-lock",B0:"allow-popups",C0:"allow-popups-to-escape-sandbox",D0:"allow-presentation",E0:"allow-same-origin",F0:"allow-scripts",G0:"allow-top-navigation",H0:"allow-top-navigation-by-user-activation"},Gea=Cg(function(){return Cea()});var Kea=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Wl.prototype.setInterval=function(a,b){return Gl.setInterval(a,b)};
Wl.prototype.clearInterval=function(a){Gl.clearInterval(a)};
Wl.prototype.setTimeout=function(a,b){return Gl.setTimeout(a,b)};
Wl.prototype.clearTimeout=function(a){Gl.clearTimeout(a)};Wea.prototype.getContext=function(){if(!this.j){if(!Gl)throw Error("Context has not been set and window is undefined.");this.j=Vl(Wl)}return this.j};g.v(Yl,g.F);var dfa={lca:1,BT:2,haa:3};g.Qg(Jg(g.Kg("https://web.archive.org/web/20220406233357/https://pagead2.googlesyndication.com/pagead/osd.js")));gfa.prototype.sH=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 D_=null;var jm=g.C.performance,URa=!!(jm&&jm.mark&&jm.measure&&jm.clearMarks),hm=Cg(function(){var a;if(a=URa){var b;if(null===D_){D_="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(D_=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=D_;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
im.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(hm()&&g.oc(this.events,lfa),this.events.length=0)};
im.prototype.start=function(a,b){if(!this.j)return null;var c=jfa()||ifa();a=new kfa(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";jm&&hm()&&jm.mark(b);return a};
im.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=jfa()||ifa();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";jm&&hm()&&jm.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};mfa.prototype.pG=function(a,b,c,d,e){e=e||this.cM;try{var f=new Ol;f.j.push(1);f.u[1]=Pl("context",a);b.error&&b.meta&&b.id||(b=new mm(nm(b)));if(b.msg){var k=b.msg.substring(0,512);f.j.push(2);f.u[2]=Pl("msg",k)}var l=b.meta||{};if(this.dE)try{this.dE(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=Mea();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Pl("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Aca(m.j.url):""}];f.j.push(5);f.u[5]=p;gm(this.j,e,f,!1,c)}catch(q){try{gm(this.j,
e,{context:"ecmserr",rctx:a,msg:nm(q),url:m&&m.j.url},!1,c)}catch(t){}}return this.dI};
g.v(mm,hfa);var lm,om,km=new im;lm=new function(){var a="https:";Gl&&Gl.location&&"http:"===Gl.location.protocol&&(a="http:");this.u=a;this.j=.01;this.B=Math.random()};
om=new mfa;Gl&&Gl.document&&("complete"==Gl.document.readyState?ofa():km.j&&Il(Gl,"load",function(){ofa()}));var rfa=Date.now(),Am=-1,ym=-1,Jga,Bm=-1,zm=!1;g.h=Cm.prototype;g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new Cm(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof Cm?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};Gm.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Em(this.j,a.j)&&!0};Hm.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.S==a.S&&Em(this.B,a.B)&&Em(this.J,a.J)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.K==a.K};var VRa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},oo={xT:"start",oR:"firstquartile",sT:"midpoint",yT:"thirdquartile",fR:"complete",ERROR:"error",rT:"metric",PAUSE:"pause",vT:"resume",wT:"skip",AT:"viewable_impression",tT:"mute",zT:"unmute",pR:"fullscreen",mR:"exitfullscreen",dR:"bufferstart",cR:"bufferfinish",qR:"fully_viewable_audible_half_duration_impression",qT:"measurable_impression",WQ:"abandon",lR:"engagedview",rR:"impression",gR:"creativeview",pT:"loaded",tca:"progress",
CLOSE:"close",W1:"collapse",uba:"overlay_resize",vba:"overlay_unmeasurable_impression",wba:"overlay_unviewable_impression",yba:"overlay_viewable_immediate_impression",xba:"overlay_viewable_end_of_session_impression",hR:"custom_metric_viewable",oba:"verification_debug",XQ:"audio_audible",ZQ:"audio_measurable",YQ:"audio_impression"},Vha="start firstquartile midpoint thirdquartile resume loaded".split(" "),Wha=["start","firstquartile","midpoint","thirdquartile"],Kga=["abandon"],Jo={UNKNOWN:-1,xT:0,oR:1,
sT:2,yT:3,fR:4,rT:5,PAUSE:6,vT:7,wT:8,AT:9,tT:10,zT:11,pR:12,mR:13,qR:14,qT:15,WQ:16,lR:17,rR:18,gR:19,pT:20,hR:21,dR:22,cR:23,YQ:24,ZQ:25,XQ:26};var tfa={k0:"addEventListener",K6:"getMaxSize",L6:"getScreenSize",M6:"getState",N6:"getVersion",Ica:"removeEventListener",a8:"isViewable"};g.h=g.Jm.prototype;g.h.clone=function(){return new g.Jm(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.Bh?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.Dh(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 xfa={};Gfa.prototype.update=function(a){a&&a.document&&(this.K=Im(!1,a,this.isMobileDevice),this.j=Im(!0,a,this.isMobileDevice),Ifa(this,a),Hfa(this,a))};en.prototype.cancel=function(){Xl().clearTimeout(this.j);this.j=null};
en.prototype.schedule=function(){var a=this;this.j=Xl().setTimeout(em(fm().j.j,qm(143,function(){a.u++;a.B.sample()})),sfa())};g.h=fn.prototype;g.h.xv=function(){return!1};
g.h.initialize=function(){return this.isInitialized=!0};
g.h.qt=function(){return this.j.xa};
g.h.gx=function(){return this.j.Z};
g.h.fail=function(a,b){if(!this.Z||(void 0===b?0:b))this.Z=!0,this.xa=a,this.S=0,this.j!=this||hn(this)};
g.h.getName=function(){return this.j.Ia};
g.h.uo=function(){return this.j.uM()};
g.h.uM=function(){return{}};
g.h.Bm=function(){return this.j.S};
g.h.HJ=function(){var a=bn();a.j=Im(!0,this.B,a.isMobileDevice)};
g.h.IJ=function(){Hfa(bn(),this.B)};
g.h.CM=function(){return this.C.j};
g.h.sample=function(){};
g.h.isActive=function(){return this.j.J};
g.h.Et=function(a){var b=this.j;this.j=a.Bm()>=this.S?a:this;b!==this.j?(this.J=this.j.J,hn(this)):this.J!==this.j.J&&(this.J=this.j.J,hn(this))};
g.h.Ho=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.X);this.C=a;b&&Lfa(this)}};
g.h.Fl=function(){return this.X};
g.h.dispose=function(){this.va=!0};
g.h.isDisposed=function(){return this.va};g.h=jn.prototype;g.h.pD=function(){return!0};
g.h.yv=function(){};
g.h.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Zb(a.D,this);a.X&&this.Fl()&&Kfa(a);this.yv();this.Z=!0}};
g.h.isDisposed=function(){return this.Z};
g.h.uo=function(){return this.u.uo()};
g.h.Bm=function(){return this.u.Bm()};
g.h.qt=function(){return this.u.qt()};
g.h.gx=function(){return this.u.gx()};
g.h.Et=function(){};
g.h.Ho=function(){this.Jn()};
g.h.Fl=function(){return this.ma};g.h=kn.prototype;g.h.Bm=function(){return this.j.Bm()};
g.h.qt=function(){return this.j.qt()};
g.h.gx=function(){return this.j.gx()};
g.h.create=function(a,b,c){var d=null;this.j&&(d=this.qz(a,b,c),gn(this.j,d));return d};
g.h.JJ=function(){return this.zv()};
g.h.zv=function(){return!1};
g.h.init=function(a){return this.j.initialize()?(gn(this.j,this),this.C=a,!0):!1};
g.h.Et=function(a){0==a.Bm()&&this.C(a.qt(),this)};
g.h.Ho=function(){};
g.h.Fl=function(){return!1};
g.h.dispose=function(){this.D=!0};
g.h.isDisposed=function(){return this.D};
g.h.uo=function(){return{}};ln.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.j,f=e.push;a=new Mfa(a,b,c);d=new Mfa(a.j,a.Zc,a.u+d);f.call(e,d);this.u=!0;return this};Rfa.prototype.toString=function(){var a="//web.archive.org/web/20220406233357/https://pagead2.googlesyndication.com//pagead/gen_204",b=nn(this.j);0<b.length&&(a+="?"+b);return a};pn.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 Xfa=[1,.75,.5,.3,0];qn.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)}};wn.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.qd):b.qd;this.ma=Math.max(this.ma,b.qd);this.ra=-1!=this.ra?Math.min(this.ra,b.Dh):b.Dh;this.xa=Math.max(this.xa,b.Dh);this.Wa.update(b.Dh,c.Dh,b.j,a,d);this.u.update(b.qd,c.qd,b.j,a,d);c=d||c.Fq!=b.Fq?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ia.update(c,a,b)};
wn.prototype.Jm=function(){return this.Ia.B>=this.Va};var cga=[zn("data"),zn("http"),zn("https"),zn("mailto"),zn("ftp"),new yn(function(a){return/^[^:]*([/?#]|$)/.test(a)})];if(cn&&cn.URL){var E_=cn.URL,F_;if(F_=!!E_){var G_;a:{if(E_){var WRa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var H_=WRa.exec(decodeURIComponent(E_));if(H_){G_=H_[1]&&1<H_[1].length?H_[1].substring(1):"true";break a}}catch(a){}}G_=""}F_=0<G_.length}om.dI=!F_};var XRa=new Cm(0,0,0,0);var hga=new Cm(0,0,0,0);g.v(Dn,g.G);g.h=Dn.prototype;
g.h.qa=function(){if(this.eh.j){if(this.gq.BG){var a=this.eh.j;a.removeEventListener&&a.removeEventListener("mouseover",this.gq.BG,Hl());this.gq.BG=null}this.gq.zG&&(a=this.eh.j,a.removeEventListener&&a.removeEventListener("mouseout",this.gq.zG,Hl()),this.gq.zG=null)}this.Iy&&this.Iy.dispose();this.je&&this.je.dispose();delete this.lB;delete this.rG;delete this.CQ;delete this.eh.Qo;delete this.eh.j;delete this.gq;delete this.Iy;delete this.je;delete this.featureSet;g.G.prototype.qa.call(this)};
g.h.zo=function(){return this.je?this.je.j:this.position};
g.h.sH=function(a){fm().sH(a)};
g.h.Fl=function(){return!1};
g.h.BA=function(){return new wn};
g.h.Gg=function(){return this.lB};
g.h.xM=function(a){return lga(this,a,1E4)};
g.h.Ja=function(a,b,c,d,e,f,k){this.No||(this.dA&&(a=this.pE(a,c,e,k),d=d&&this.Ef.qd>=(this.Fq()?.3:.5),this.MI(f,a,d),this.lastUpdateTime=b,0<a.qd&&-1===this.mQ&&(this.mQ=b),-1==this.pQ&&this.Jm()&&(this.pQ=b),-2==this.mG&&(this.mG=Bn(this.zo())?a.qd:-1),this.Ef=a),this.rG(this))};
g.h.MI=function(a,b,c){this.Gg().update(a,b,this.Ef,c)};
g.h.pF=function(){return new sl};
g.h.pE=function(a,b,c,d){c=this.pF();c.j=b;b=Xl().u;b=0===Jl(cn)?-1:b.isVisible()?0:1;c.u=b;c.qd=this.BE(a);c.Fq=this.Fq();c.Dh=d;return c};
g.h.BE=function(a){return 0===this.opacity&&1===Al(this.featureSet,"opac")?0:a};
g.h.Fq=function(){return!1};
g.h.nC=function(){return this.CV||this.GV};
g.h.qB=function(){xm()};
g.h.AG=function(){xm()};
g.h.fl=function(){return 0};
g.h.Jm=function(){return this.lB.Jm()};
g.h.DM=function(){return this.No?2:this.Jm()?4:3};
g.h.tA=function(){return 0};g.Fn.prototype.next=function(){return g.I_};
g.I_={done:!0,value:void 0};g.Fn.prototype.Lh=function(){return this};g.v(rga,sl);var J_=tga([void 0,1,2,3,4,8,16]),K_=tga([void 0,4,8,16]),YRa={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Jn("p0",K_),p1:Jn("p1",K_),p2:Jn("p2",K_),p3:Jn("p3",K_),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:In("mtos1",[0,2,4],!1,K_),mtos2:In("mtos2",[0,2,4],!1,K_),mtos3:In("mtos3",[0,2,4],!1,K_),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Jn("a0",K_),a1:Jn("a1",K_),a2:Jn("a2",K_),a3:Jn("a3",K_),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:Jn("c0",K_),c1:Jn("c1",K_),c2:Jn("c2",K_),c3:Jn("c3",K_),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Jn("qmtos",J_),qnc:Jn("qnc",J_),qmv:Jn("qmv",J_),qnv:Jn("qnv",J_),
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:Jn("ss0",K_),ss1:Jn("ss1",K_),ss2:Jn("ss2",K_),ss3:Jn("ss3",K_),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},
ZRa=Object.assign({},YRa,{avid:zg("audio"),avas:"avas",vs:"vs"}),$Ra={atos:"atos",avt:In("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"};ao.prototype.getValue=function(){return this.u};
ao.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.v(bo,wn);
bo.prototype.update=function(a,b,c,d){if(!b.paused){wn.prototype.update.call(this,a,b,c,d);var e=Hn(b)&&Hn(c),f=.5<=(d?Math.min(b.qd,c.qd):c.qd);$m(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.X+=e?a:0);this.j.update(b.qd,c.qd,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Z.update(c.fullscreen,a);this.Xa.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Da.update(a,b.isVisible());this.Ra.update(a,1<=b.qd);this.Qa.update(a,
Hn(b))}};yga.prototype.D=function(a){this.u||(this.j(a)?(a=Iha(this.X,this.B,a),this.C|=a,a=0==a):a=!1,this.u=a)};g.v(eo,yga);eo.prototype.j=function(){return!0};
eo.prototype.J=function(){return!1};
eo.prototype.getId=function(){var a=this,b=Qf(oo,function(c){return c==a.B});
return Jo[b].toString()};
eo.prototype.toString=function(){var a="";this.J()&&(a+="c");this.u&&(a+="s");0<this.C&&(a+=":"+this.C);return this.getId()+a};g.v(fo,eo);fo.prototype.D=function(a,b){b=void 0===b?null:b;null!=b&&this.K.push(b);eo.prototype.D.call(this,a)};g.v(go,jn);g.h=go.prototype;g.h.rE=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Dfa(a.getBoundingClientRect())}catch(n){c=new Cm(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Afa(a,b),k=f.x,l=f.y;var m=new Cm(Math.round(l),Math.round(k+d),Math.round(l+e),Math.round(k))}catch(n){m=XRa.clone()}this.j=m}};
g.h.rL=function(){this.C=this.u.C.j};
g.h.lN=function(a){var b=1==Al(this.featureSet,"od");return gga(a,this.C,this.element,b)};
g.h.sL=function(){this.timestamp=xm()};
g.h.Jn=function(){this.sL();this.rE();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Dh(a.videoWidth,a.videoHeight);a=this.j;var c=Dm(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.rL();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Cm(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 Cm(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Cm(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.lN(c)?c=new Cm(0,0,0,0):(d=bn().C,b=new Cm(0,d.height,d.width,0),d=Cn(c,this.j),e=Cn(c,bn().j),b=Cn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Cm(0,0,0,
0):Fm(c,-this.j.left,-this.j.top);dn()||(e=d=0);this.K=new Hm(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.h.getName=function(){return this.u.getName()};var aSa=new Cm(0,0,0,0);g.v(ho,go);g.h=ho.prototype;g.h.pD=function(){this.B();return!0};
g.h.Ho=function(){go.prototype.Jn.call(this)};
g.h.sL=function(){};
g.h.rE=function(){};
g.h.Jn=function(){this.B();go.prototype.Jn.call(this)};
g.h.Et=function(a){a=a.isActive();a!==this.J&&(a?this.B():(bn().j=new Cm(0,0,0,0),this.j=new Cm(0,0,0,0),this.C=new Cm(0,0,0,0),this.timestamp=-1));this.J=a};var L_={},Iga=(L_.firstquartile=0,L_.midpoint=1,L_.thirdquartile=2,L_.complete=3,L_);g.v(jo,Dn);g.h=jo.prototype;g.h.Fl=function(){return!0};
g.h.Im=function(){return 2==this.og};
g.h.xM=function(a){return lga(this,a,Math.max(1E4,this.B/3))};
g.h.Ja=function(a,b,c,d,e,f,k){var l=this,m=this.K(this)||{};g.bg(m,e);this.B=m.duration||this.B;this.X=m.isVpaid||this.X;this.Ha=m.isYouTube||this.Ha;e=Aga(this,b);1===zga(this)&&(f=e);Dn.prototype.Ja.call(this,a,b,c,d,m,f,k);this.Rq&&this.Rq.u&&g.oc(this.J,function(n){n.D(l)})};
g.h.MI=function(a,b,c){Dn.prototype.MI.call(this,a,b,c);mo(this).update(a,b,this.Ef,c);this.Wa=Hn(this.Ef)&&Hn(b);-1==this.xa&&this.Va&&(this.xa=this.Gg().B.j);this.vf.B=0;a=this.Jm();b.isVisible()&&$n(this.vf,"vs");a&&$n(this.vf,"vw");$m(b.volume)&&$n(this.vf,"am");Hn(b)&&$n(this.vf,"a");this.Gt&&$n(this.vf,"f");-1!=b.u&&($n(this.vf,"bm"),1==b.u&&$n(this.vf,"b"));Hn(b)&&b.isVisible()&&$n(this.vf,"avs");this.Wa&&a&&$n(this.vf,"avw");0<b.qd&&$n(this.vf,"pv");no(this,this.Gg().B.j,!0)&&$n(this.vf,"gdr");
2E3<=un(this.Gg().u,1)&&$n(this.vf,"pmx")};
g.h.BA=function(){return new bo};
g.h.Gg=function(){return this.lB};
g.h.pF=function(){return new rga};
g.h.pE=function(a,b,c,d){a=Dn.prototype.pE.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Gt;a.paused=this.Im();a.volume=c.volume;$m(a.volume)||(this.fb++,b=this.Ef,$m(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.h.BE=function(a){return bn(),this.Gt?1:Dn.prototype.BE.call(this,a)};
g.h.fl=function(){return 1};
g.h.getDuration=function(){return this.B};
g.h.DM=function(){return this.No?2:Cga(this)?5:this.Jm()?4:3};
g.h.tA=function(){return this.Xa?2E3<=this.Gg().D.B?4:3:2};var bSa=g.Ua();Sga.prototype.reset=function(){this.j=[];this.u=[]};
var to=Vl(Sga);g.v(wo,kn);g.h=wo.prototype;g.h.getName=function(){return(this.u?this.u:this.j).getName()};
g.h.uo=function(){return(this.u?this.u:this.j).uo()};
g.h.Bm=function(){return(this.u?this.u:this.j).Bm()};
g.h.init=function(a){var b=!1;(0,g.oc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,gn(this.j,this));return b};
g.h.dispose=function(){(0,g.oc)(this.B,function(a){a.dispose()});
kn.prototype.dispose.call(this)};
g.h.JJ=function(){return an(this.B,function(a){return a.xv()})};
g.h.zv=function(){return an(this.B,function(a){return a.xv()})};
g.h.qz=function(a,b,c){return new go(a,this.j,b,c)};
g.h.Ho=function(a){this.u=a.u};var aha={threshold:[0,.3,.5,.75,1]};g.v(yo,go);g.h=yo.prototype;g.h.pD=function(){var a=this;this.X||(this.X=xm());if(qfa(298,function(){return bha(a)}))return!0;
this.u.fail("msf");return!1};
g.h.yv=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.h.Jn=function(){var a=zo(this);0<a.length&&Ao(this,a);go.prototype.Jn.call(this)};
g.h.rE=function(){};
g.h.lN=function(){return!1};
g.h.rL=function(){};
g.h.uo=function(){var a={};return Object.assign(this.u.uo(),(a.niot_obs=this.X,a.niot_cbk=this.S,a))};
g.h.getName=function(){return"nio"};g.v(Bo,kn);Bo.prototype.getName=function(){return"nio"};
Bo.prototype.zv=function(){return!bn().u&&null!=this.j.j.B.IntersectionObserver};
Bo.prototype.qz=function(a,b,c){return new yo(a,this.j,b,c)};g.v(Co,fn);Co.prototype.CM=function(){return bn().j};
Co.prototype.xv=function(){var a=dha();this.S!==a&&(this.j!=this&&a>this.j.S&&(this.j=this,hn(this)),this.S=a);return 2==a};Do.prototype.sample=function(){Go(this,uo(),!1)};
Do.prototype.C=function(){var a=dn(),b=xm();a?(zm||(Am=b,g.oc(to.j,function(c){var d=c.Gg();d.Ha=co(d,b,1!=c.og)})),zm=!0):(this.K=iha(this,b),zm=!1,Jga=b,g.oc(to.j,function(c){c.dA&&(c.Gg().S=b)}));
Go(this,uo(),!a)};
var Eo=Vl(Do);var kha=null,dp="",cp=!1;var nha=mha().Uk,Io=mha().Xk;var qha={n6:"visible",h1:"audible",tea:"time",uea:"timetype"},rha={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.v(Mo,eo);Mo.prototype.getId=function(){return this.K};
Mo.prototype.J=function(){return!0};
Mo.prototype.j=function(a){var b=a.Gg(),c=a.getDuration();return an(this.S,function(d){if(void 0!=d.j)var e=tha(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.v(No,uha);No.prototype.u=function(){return null};
No.prototype.B=function(){return[]};g.v(Oo,uga);Oo.prototype.j=function(a){var b=new Yn;b.j=Zn(a,YRa);b.u=Zn(a,$Ra);return b};g.v(Po,eo);Po.prototype.j=function(a){return Cga(a)};g.v(Qo,uha);g.v(Ro,eo);Ro.prototype.j=function(a){return a.Gg().Jm()};g.v(So,fo);So.prototype.j=function(a){var b=g.Tb(this.K,Al(fm().featureSet,"ovms"));return!a.No&&(0!=a.og||b)};g.v(To,Qo);To.prototype.u=function(){return new So(this.j)};
To.prototype.B=function(){return[new Ro("viewable_impression",this.j),new Po(this.j)]};g.v(Uo,ho);Uo.prototype.B=function(){var a=g.Ka("ima.admob.getViewability"),b=Al(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
Uo.prototype.getName=function(){return"gsv"};g.v(Vo,kn);Vo.prototype.getName=function(){return"gsv"};
Vo.prototype.zv=function(){var a=bn();fm();return a.u&&!1};
Vo.prototype.qz=function(a,b,c){return new Uo(this.j,b,c)};g.v(Wo,ho);Wo.prototype.B=function(){var a=this,b=g.Ka("ima.bridge.getNativeViewability"),c=Al(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Sf(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Efa(d.opt_nativeViewBounds||{});var k=a.u.C;k.j=f?aSa.clone():Efa(e);a.timestamp=d.opt_nativeTime||-1;bn().j=k.j;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})};
Wo.prototype.getName=function(){return"nis"};g.v(Xo,kn);Xo.prototype.getName=function(){return"nis"};
Xo.prototype.zv=function(){var a=bn();fm();return a.u&&!1};
Xo.prototype.qz=function(a,b,c){return new Wo(this.j,b,c)};g.v(Yo,fn);g.h=Yo.prototype;g.h.xv=function(){return null!=this.u.Uj};
g.h.uM=function(){var a={};this.Da&&(a.mraid=this.Da);this.ra&&(a.mlc=1);a.mtop=this.u.b_;this.K&&(a.mse=this.K);this.Ha&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.h.kp=function(a){var b=g.Ca.apply(1,arguments);try{return this.u.Uj[a].apply(this.u.Uj,b)}catch(c){wm(538,c,.01,function(d){d.method=a})}};
g.h.initialize=function(){var a=this;if(this.isInitialized)return!this.gx();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;bn().S=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?yha(this):An(this.B,"load",function(){Xl().setTimeout(qm(292,function(){return yha(a)}),100)},292);
return!0};
g.h.HJ=function(){var a=bn(),b=Dha(this,"getMaxSize");a.j=new Cm(0,b.width,b.height,0)};
g.h.IJ=function(){bn().C=Dha(this,"getScreenSize")};
g.h.dispose=function(){Aha(this);fn.prototype.dispose.call(this)};g.h=$o.prototype;g.h.yw=function(a){En(a,!1);Wga(a)};
g.h.GA=function(){};
g.h.py=function(a,b,c,d){var e=this;b=c?b:-1;c=this.KL();a=new jo(Gl,a,b,7,this.IE(),c.u(),c.B());a.Tf=d;tea(a.featureSet);zl(a.featureSet,"queryid",a.Tf);a.sH("");oga(a,function(){return e.KM.apply(e,g.u(g.Ca.apply(0,arguments)))},function(){return e.eV.apply(e,g.u(g.Ca.apply(0,arguments)))});
(d=Vl(vo).j)&&kga(a,d);a.eh.Qo&&Vl(eha);return a};
g.h.Et=function(a){switch(a.Bm()){case 0:if(a=Vl(vo).j)a=a.j,g.Zb(a.D,this),a.X&&this.Fl()&&Kfa(a);bp();break;case 2:Fo()}};
g.h.Ho=function(){};
g.h.Fl=function(){return!1};
g.h.eV=function(a,b){a.No=!0;switch(a.fl()){case 1:Jha(a,b);break;case 2:this.DH(a)}this.SH()};
g.h.nV=function(a){var b=a.K(a);b&&(b=b.volume,a.Xa=$m(b)&&0<b);Fga(a,0);return po(a,"start",dn())};
g.h.Nu=function(a,b,c){Go(Eo,[a],!dn());return this.il(a,b,c)};
g.h.il=function(a,b,c){return po(a,c,dn())};
g.h.iV=function(a){return hp(a,"firstquartile",1)};
g.h.kV=function(a){a.Va=!0;return hp(a,"midpoint",2)};
g.h.oV=function(a){return hp(a,"thirdquartile",3)};
g.h.fV=function(a){var b=hp(a,"complete",4);ko(a);return b};
g.h.gV=function(a){Al(fm().featureSet,"vveh")&&(a.og=3);return po(a,"error",dn())};
g.h.HP=function(a,b,c){b=dn();if(a.Im()&&!b){var d=xm();a.Gg().S=d}Go(Eo,[a],!b);a.Im()&&(a.og=1);return po(a,c,b)};
g.h.mV=function(a,b){b=this.Nu(a,b||{},"skip");ko(a);return b};
g.h.jV=function(a,b){En(a,!0);return this.Nu(a,b||{},"fullscreen")};
g.h.hV=function(a,b){En(a,!1);return this.Nu(a,b||{},"exitfullscreen")};
g.h.lH=function(a,b,c){b=a.Gg();var d=xm();b.Ha=co(b,d,1!=a.og);Go(Eo,[a],!dn());1==a.og&&(a.og=2);return po(a,c,dn())};
g.h.lV=function(a){Go(Eo,[a],!dn());return a.u()};
g.h.GF=function(a){Go(Eo,[a],!dn());this.AP(a);ko(a);return a.u()};
g.h.KM=function(){};
g.h.DH=function(){};
g.h.AP=function(){};
g.h.KJ=function(){};
g.h.SH=function(){};
g.h.JE=function(){};
g.h.KL=function(){this.j||(this.j=this.JE());return null==this.j?new No:new To(this.j)};
g.h.IE=function(){return new Oo};g.v(ip,eo);ip.prototype.j=function(a){return 4==a.tA()};g.v(jp,fo);jp.prototype.j=function(a){a=a.tA();return 3==a||4==a};g.v(kp,Qo);kp.prototype.u=function(){return new jp(this.j)};
kp.prototype.B=function(){return[new ip(this.j)]};g.v(lp,uga);lp.prototype.j=function(a){!a||4!==a.vs&&5!==a.vs||(a=Object.assign({},a,{vs:3}));var b=new Yn;b.j=Zn(a,ZRa);b.u=Zn(a,$Ra);return b};Oha.prototype.u=function(){return g.Ka(this.j)};var zua={W5:"EMBEDDED_PLAYER_MODE_UNKNOWN",T5:"EMBEDDED_PLAYER_MODE_DEFAULT",V5:"EMBEDDED_PLAYER_MODE_PFP",U5:"EMBEDDED_PLAYER_MODE_PFL"},Aua={Y8:"LIVING_ROOM_APP_MODE_UNSPECIFIED",V8:"LIVING_ROOM_APP_MODE_MAIN",U8:"LIVING_ROOM_APP_MODE_KIDS",W8:"LIVING_ROOM_APP_MODE_MUSIC",X8:"LIVING_ROOM_APP_MODE_UNPLUGGED",T8:"LIVING_ROOM_APP_MODE_GAMING"},Rma={jga:"WEB_DISPLAY_MODE_UNKNOWN",fga:"WEB_DISPLAY_MODE_BROWSER",hga:"WEB_DISPLAY_MODE_MINIMAL_UI",iga:"WEB_DISPLAY_MODE_STANDALONE",gga:"WEB_DISPLAY_MODE_FULLSCREEN"};g.v(mp,$o);g.h=mp.prototype;g.h.GA=function(a,b){var c=this,d=Vl(vo);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Sha(this,a,b);break;case "gsv":e=Rha(this,a,b);break;case "exc":e=Tha(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Lha(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.fl()&&(e.K==g.Bg&&(e.K=function(f){return c.KJ(f)}),Qha(this,e,b));
return e};
g.h.KJ=function(a){a.u=0;a.va=0;if("h"==a.C||"n"==a.C){fm();a.Ra&&(fm(),"h"!=fp(this)&&fp(this));var b=g.Ka("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Tf)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ka("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Tf)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ka("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Tf)}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.Sf(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 VRa)null==b[d]&&(a.S|=VRa[d]);Nha(b,"currentTime");Nha(b,"duration");$m(c.volume)&&$m()&&(c.volume*=NaN);return c};
g.h.JE=function(){fm();"h"!=fp(this)&&fp(this);var a=Uha(this);return null!=a?new Oha(a):null};
g.h.DH=function(a){!a.j&&a.No&&gp(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.h.AP=function(a){a.XP&&(a.Jm()?gp(this,a,"overlay_viewable_end_of_session_impression"):gp(this,a,"overlay_unviewable_impression"),a.XP=!1)};
g.h.KM=function(){};
g.h.SH=function(){};
g.h.py=function(a,b,c,d){a=$o.prototype.py.call(this,a,b,c,d);this.C&&(b=this.D,null==a.D&&(a.D=new pga),b.j[a.Tf]=a.D,a.D.D=bSa);return a};
g.h.yw=function(a){a&&1==a.fl()&&this.C&&delete this.D.j[a.Tf];return $o.prototype.yw.call(this,a)};
g.h.KL=function(){this.j||(this.j=this.JE());return null==this.j?new No:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.J?new kp(this.j):new To(this.j)};
g.h.IE=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.J?new lp:new Oo};
var np=new Yn;np.j="stopped";np.u="stopped";var cSa=pm(193,op,void 0,Kha);g.Ja("Goog_AdSense_Lidar_sendVastEvent",cSa);var dSa=qm(194,function(a,b){b=void 0===b?{}:b;a=Xha(Vl(mp),a,b);return Zha(a)});
g.Ja("Goog_AdSense_Lidar_getViewability",dSa);var eSa=pm(195,function(){return Vea()});
g.Ja("Goog_AdSense_Lidar_getUrlSignalsArray",eSa);var fSa=qm(196,function(){return JSON.stringify(Vea())});
g.Ja("Goog_AdSense_Lidar_getUrlSignalsList",fSa);var bma=(new Date).getTime();var gSa="client_dev_mss_url client_dev_regex_map client_dev_root_url client_rollout_override expflag jsfeat jsmode mods".split(" ");g.u(gSa);var aia="://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(" "),bia=/\bocr\b/;var dia=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.v(sp,g.sg);sp.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Rj.Ii(this.J);delete sp.j};
sp.prototype.Me=function(){return this.j};up.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)};
up.prototype.get=function(a){return!!this.data_[a]};g.Va(g.vp,g.G);g.h=g.vp.prototype;g.h.start=function(){this.stop();this.C=!1;var a=iia(this),b=jia(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.hg(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(eba(this.B),20)};
g.h.stop=function(){if(this.isActive()){var a=iia(this),b=jia(this);a&&!b&&this.u.mozRequestAnimationFrame?pg(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.SR=function(){this.C&&this.j&&pg(this.j);this.j=null;this.J.call(this.D,g.Ua())};
g.h.qa=function(){this.stop();g.vp.re.qa.call(this)};g.Va(g.L,g.G);g.h=g.L.prototype;g.h.Av=0;g.h.qa=function(){g.L.re.qa.call(this);this.stop();delete this.j;delete this.u};
g.h.start=function(a){this.stop();this.Av=g.Gi(this.B,void 0!==a?a:this.gg)};
g.h.stop=function(){this.isActive()&&g.C.clearTimeout(this.Av);this.Av=0};
g.h.isActive=function(){return 0!=this.Av};
g.h.LJ=function(){this.Av=0;this.j&&this.j.call(this.u)};Ap.prototype[Symbol.iterator]=function(){return this};
Ap.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};Hp.prototype.Lh=function(){return new Ip(this.u())};
Hp.prototype[Symbol.iterator]=function(){return new Jp(this.u())};
Hp.prototype.j=function(){return new Jp(this.u())};
g.v(Ip,g.Fn);Ip.prototype.next=function(){return this.u.next()};
Ip.prototype[Symbol.iterator]=function(){return new Jp(this.u)};
Ip.prototype.j=function(){return new Jp(this.u)};
g.v(Jp,Hp);Jp.prototype.next=function(){return this.B.next()};g.h=g.Lp.prototype;g.h.Mi=function(){Np(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.h.xm=function(){Np(this);return this.j.concat()};
g.h.has=function(a){return Mp(this.u,a)};
g.h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||nia;Np(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.Ap=this.size=this.j.length=0};
g.h.remove=function(a){return this.delete(a)};
g.h.delete=function(a){return Mp(this.u,a)?(delete this.u[a],--this.size,this.Ap++,this.j.length>2*this.size&&Np(this),!0):!1};
g.h.get=function(a,b){return Mp(this.u,a)?this.u[a]:b};
g.h.set=function(a,b){Mp(this.u,a)||(this.size+=1,this.j.push(a),this.Ap++);this.u[a]=b};
g.h.forEach=function(a,b){for(var c=this.xm(),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.Lp(this)};
g.h.keys=function(){return Kp(this.Lh(!0)).j()};
g.h.values=function(){return Kp(this.Lh(!1)).j()};
g.h.entries=function(){var a=this;return kia(this.keys(),function(b){return[b,a.get(b)]})};
g.h.Lh=function(a){Np(this);var b=0,c=this.Ap,d=this,e=new g.Fn;e.next=function(){if(c!=d.Ap)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.I_;var f=d.j[b++];return g.Gn(a?f:d.u[f])};
return e};g.Va(g.Op,g.sg);g.h=g.Op.prototype;g.h.Jc=function(){return 1==this.j};
g.h.uB=function(){this.Ki("begin")};
g.h.Nx=function(){this.Ki("end")};
g.h.onFinish=function(){this.Ki("finish")};
g.h.Ki=function(a){this.dispatchEvent(a)};var hSa=Cg(function(){if(g.Ic)return g.wc("10.0");var a=g.ei("DIV"),b=g.zf?"-webkit":Nm?"-moz":g.Ic?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!GRa.test("div"))throw Error("");if("DIV"in IRa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!GRa.test(l))throw Error("");var f=b[l];if(null!=f){var k=l;if(f instanceof Ig)f=Jg(f);else if("style"==k.toLowerCase()){if(!g.Pa(f))throw Error("");
f instanceof $g||(f=dh(f));f=ah(f)}else{if(/^on/i.test(k))throw Error("");if(k.toLowerCase()in HRa)if(f instanceof Og)f=Pg(f).toString();else if(f instanceof g.Sg)f=g.Tg(f);else if("string"===typeof f)f=g.Xg(f).Qh();else throw Error("");}f.rl&&(f=f.Qh());k=k+'="'+nb(String(f))+'"';e+=" "+k}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===CRa.div?l+=">":(c=rba(d),l+=">"+g.ih(c).toString()+"</div>",c=c.As());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=jh(l,c);g.th(a,b);return""!=
g.Om(a.firstChild,"transition")});g.Va(Pp,g.Op);g.h=Pp.prototype;g.h.play=function(){if(this.Jc())return!1;this.uB();this.Ki("play");this.startTime=g.Ua();this.j=1;if(hSa())return g.Mm(this.u,this.K),this.C=g.Gi(this.uZ,void 0,this),!0;this.qD(!1);return!1};
g.h.uZ=function(){g.Xm(this.u);oia(this.u,this.S);g.Mm(this.u,this.D);this.C=g.Gi((0,g.Sa)(this.qD,this,!1),1E3*this.J)};
g.h.stop=function(){this.Jc()&&this.qD(!0)};
g.h.qD=function(a){g.Mm(this.u,"transition","");g.C.clearTimeout(this.C);g.Mm(this.u,this.D);this.endTime=g.Ua();this.j=0;if(a)this.Ki("stop");else this.onFinish();this.Nx()};
g.h.qa=function(){this.stop();Pp.re.qa.call(this)};
g.h.pause=function(){};var qia={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};Qp("Element","attributes")||Qp("Node","attributes");Qp("Element","innerHTML")||Qp("HTMLElement","innerHTML");Qp("Node","nodeName");Qp("Node","nodeType");Qp("Node","parentNode");Qp("Node","childNodes");Qp("HTMLElement","style")||Qp("Element","style");Qp("HTMLStyleElement","sheet");var wia=sia("getPropertyValue"),xia=sia("setProperty");Qp("Element","namespaceURI")||Qp("Node","namespaceURI");var via={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Tp.prototype.clone=function(){return new g.Tp(this.j,this.K,this.B,this.D,this.C,this.J,this.u,this.S)};
g.Tp.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};Vp.prototype.clone=function(){return new Vp(this.start,this.end)};var iSa=new WeakMap;(function(){if(PMa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.tb()))?a[1]:"0"}return GQ?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.tb()))?a[0].replace(/_/g,"."):"10"):g.hs?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.tb()))?a[1]:""):vRa||wRa||xRa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.tb()))?a[1].replace(/_/g,"."):""):""})();var Eia=function(){if(g.Ex)return Wp(/Firefox\/([0-9.]+)/);if(g.Ic||g.ot||g.oC)return vc;if(g.mA){if(Kb()||Lb()){var a=Wp(/CriOS\/([0-9.]+)/);if(a)return a}return Wp(/Chrome\/([0-9.]+)/)}if(g.Qs&&!Kb())return Wp(/Version\/([0-9.]+)/);if(xC||DE){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.tb()))return a[1]+"."+a[2]}else if(g.pC)return(a=Wp(/Android\s+([0-9.]+)/))?a:Wp(/Version\/([0-9.]+)/);return""}();g.Va(g.Yp,g.G);g.h=g.Yp.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.Mf(a)}return!1};
g.h.Mf=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.Zb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.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];Fia(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.Mf(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.Mf,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.h.qa=function(){g.Yp.re.qa.call(this);this.clear();this.B.length=0};g.Zp.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Yi(b))};
g.Zp.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.Zp.prototype.remove=function(a){this.j.remove(a)};g.Va($p,g.Zp);$p.prototype.set=function(a,b){$p.re.set.call(this,a,Hia(b))};
$p.prototype.u=function(a){a=$p.re.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
$p.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.Va(aq,$p);aq.prototype.set=function(a,b,c){if(b=Hia(b)){if(c){if(c<g.Ua()){aq.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ua()}aq.re.set.call(this,a,b)};
aq.prototype.u=function(a,b){var c=aq.re.u.call(this,a);if(c)if(!b&&g.Iia(c))aq.prototype.remove.call(this,a);else return c};g.Va(g.bq,aq);g.Va(cq,Jia);cq.prototype[Symbol.iterator]=function(){return Kp(this.Lh(!0)).j()};
cq.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.Va(dq,cq);g.h=dq.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.Lh=function(a){var b=0,c=this.j,d=new g.Fn;d.next=function(){if(b>=c.length)return g.I_;var e=c.key(b++);if(a)return g.Gn(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Gn(e)};
return d};
g.h.clear=function(){this.j.clear()};
g.h.key=function(a){return this.j.key(a)};g.Va(eq,dq);g.Va(Kia,dq);g.Va(gq,cq);var Lia={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},fq=null;g.h=gq.prototype;g.h.isAvailable=function(){return!!this.j};
g.h.set=function(a,b){this.j.setAttribute(hq(a),b);iq(this)};
g.h.get=function(a){a=this.j.getAttribute(hq(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.j.removeAttribute(hq(a));iq(this)};
g.h.Lh=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.Fn;d.next=function(){if(b>=c.length)return g.I_;var e=c[b++];if(a)return g.Gn(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Gn(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);iq(this)};g.Va(jq,cq);jq.prototype.set=function(a,b){this.u.set(this.j+a,b)};
jq.prototype.get=function(a){return this.u.get(this.j+a)};
jq.prototype.remove=function(a){this.u.remove(this.j+a)};
jq.prototype.Lh=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.Fn;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.Gn(a?e.slice(c.j.length):c.u.get(e))};
return d};lq.prototype.getKey=function(){return this.j};
lq.prototype.getValue=function(){return this.Zc};
lq.prototype.clone=function(){return new lq(this.j,this.Zc)};g.h=mq.prototype;g.h.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Vb(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.Mi=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.xm=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 mq(this)};
g.h.isEmpty=function(){return 0===this.j.length};
g.h.clear=function(){Vb(this.j)};g.Va(nq,mq);nq.prototype.enqueue=function(a,b){Mia(this,a,b)};La(oq);oq.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 qq="@@redux/INIT"+pq(),Ria="@@redux/REPLACE"+pq();var Sia="function"===typeof Symbol&&Symbol.observable||"@@observable";g.v(rq,g.F);rq.prototype.getType=function(){return fe(this,11,0)};
g.v(vq,g.F);vq.prototype.getKey=function(){return ee(this,3)};
var Tia=[2,13,14];g.v(wq,g.F);wq.prototype.getKey=function(){return g.be(this,1)};
wq.prototype.getValue=function(){return g.be(this,2===le(this,jSa)?2:-1)};
wq.prototype.setValue=function(a){return g.me(this,2,jSa,a)};
var jSa=[2,3,4,5,6];g.v(xq,g.F);g.v(yq,g.F);g.v(g.zq,g.F);g.zq.prototype.oo=ca(1);g.zq.prototype.getPlayerType=function(){return g.be(this,36)};
g.zq.prototype.setHomeGroupInfo=function(a){return se(this,81,a)};
var Zia=[9,66,24,32,86,100,101],xua={bfa:0,Zfa:1,nga:32,tga:61,zga:67,wga:86,lga:42,oga:60,ega:62,rga:73,qga:76,xga:88,yga:90,Aga:41,Bga:69,Cga:70,Dga:71,Qaa:2,Raa:27,ANDROID:3,M0:54,N0:14,U0:91,O0:55,P0:24,Q0:20,R0:18,T0:21,W0:30,Z0:29,b1:28,d1:34,V0:36,S0:38,IOS:5,K7:15,U7:92,L7:40,N7:25,O7:17,P7:19,Q7:64,R7:66,S7:26,W7:22,X7:33,Y7:68,Z7:35,T7:53,V7:37,M7:39,Lea:7,Mea:57,Nea:43,Pea:59,Oea:93,Y0:74,Qea:75,Rea:85,Sea:65,Uea:80,Vea:8,Jea:10,Yea:58,Xea:63,Tea:72,X0:23,Iga:11,Jga:13,V1:12,Kea:16,kga:56,
vga:31,vaa:77,O6:84,pga:87,P6:89};g.v(aja,g.F);var $ia=[15,26,28];g.v(Aq,g.F);Aq.prototype.setToken=function(a){return g.D(this,2,a)};g.v(Bq,g.F);Bq.prototype.setSafetyMode=function(a){return g.D(this,5,a)};
var bja=[12];g.v(Cq,g.F);var cja=[12];g.v(eja,g.F);g.v(Dq,g.F);Dq.prototype.getKey=function(){return fe(this,1,"")};
Dq.prototype.getValue=function(){return fe(this,2,"")};
Dq.prototype.setValue=function(a){return g.D(this,2,a)};
var dja=[4,5];g.v(fja,g.F);g.v(gja,g.F);var Lpa=[2,3];g.v(Eq,g.F);Eq.prototype.getMessage=function(){return fe(this,1,"")};g.v(Fq,g.F);g.v(hja,g.F);g.v(jja,g.F);var ija=[10,17];g.v(kja,g.F);g.v(Gq,g.F);Gq.prototype.hk=function(a){g.D(this,1,a)};g.v(lja,g.F);g.v(Hq,g.F);Hq.prototype.Eh=function(a){g.D(this,3,a)};
g.v(mja,g.F);g.v(Iq,g.F);Iq.prototype.Eh=function(a){g.D(this,2,a)};
g.v(oja,g.F);g.v(Jq,g.F);Jq.prototype.Eh=function(a){g.D(this,1,a)};
var qja=[3];g.v(Kq,g.F);Kq.prototype.Eh=function(a){g.D(this,1,a)};
Kq.prototype.Io=function(){return null!=g.be(this,2)};g.v(Lq,g.F);Lq.prototype.Eh=function(a){g.D(this,1,a)};
Lq.prototype.Io=function(){return null!=g.be(this,2)};g.v(Mq,g.F);Mq.prototype.Eh=function(a){g.D(this,1,a)};
Mq.prototype.Io=function(){return null!=g.be(this,2)};g.v(sja,g.F);g.v(Nq,g.F);Nq.prototype.Yb=function(){return xe(this,1)};
Nq.prototype.getVisibilityState=function(){return fe(this,5,0)};
var tja=[16];g.v(Oq,g.F);g.v(Pq,g.F);Pq.prototype.getPlayerType=function(){return fe(this,7,0)};
Pq.prototype.Ig=function(){return fe(this,19,"")};
Pq.prototype.setVideoId=function(a){return g.D(this,19,a)};
g.v(Qq,g.F);Qq.prototype.getId=function(){return fe(this,2,"")};
var uja=[83,68];g.v(vja,g.F);g.v(wja,g.F);g.v(Sq,g.F);g.v(Tq,g.F);Tq.prototype.getContext=function(){return qe(this,Sq,33)};
var Ev=[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 Ppa={z7:0,k7:1,q7:2,r7:4,w7:8,s7:16,t7:32,y7:64,x7:128,m7:256,o7:512,v7:1024,n7:2048,p7:4096,l7:8192,u7:16384};g.v(xja,g.F);g.v(Uq,g.F);Uq.prototype.Ig=function(){return g.be(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.be(this,2===le(this,Uu)?2:-1)};
var Uu=[1,2];g.v(Vq,g.F);Vq.prototype.getContext=function(){return qe(this,Cq,1)};
var yja=[3];g.v(Wq,g.F);g.v(Xq,g.F);var kSa;kSa=new cf(406606992,{Aha:0},Xq,function(a,b){if(null!=b){var c={gl:df(g.be(b,1)),hl:df(g.be(b,2)),yha:df(g.be(b,3)),locale:df(g.be(b,4)),Rha:df(g.be(b,5))};a&&(c.VQ=b);return c}});g.v(Yq,Xq);eia(Yq);var M_=g.C.window,lSa,mSa,$q=(null==M_?void 0:null==(lSa=M_.yt)?void 0:lSa.config_)||(null==M_?void 0:null==(mSa=M_.ytcfg)?void 0:mSa.data_)||{},nSa,oSa=(null==M_?void 0:null==(nSa=M_.ytcfg)?void 0:nSa.obfuscatedData_)||[];g.v(Zq,Wq);Zq.prototype.J=function(a){var b=br();406606992!==a.j||b&&b.jspb_i18n_extension||(a=new cf(a.j,a.fieldName,Yq,a.C));return Wq.prototype.J.call(this,a)};
eia(Zq);var pSa=new Zq(oSa),qSa=br();if(!qSa||!qSa.jspb_i18n_extension){var rSa=new Yq;kSa.B(pSa,rSa)}g.Ja("yt.config_",$q);g.Ja("yt.configJspb_",oSa);var gr=[];var Zla=/^[\w.]*$/,Pla={q:!0,search_query:!0},Ola=String(kr);var $la=new function(){var a=window.document;this.j=window;this.u=a};
g.Ja("yt.ads_.signals_.getAdSignalsString",function(a){return lr(ur(a))});g.Ua();var cma="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var ema={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"},gma="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(gSa)),lma=!1,kya=Er;g.v(Hr,$a);Kr.prototype.then=function(a,b,c){return 1===this.j&&a?(a=a.call(c,this.Zc),wi(a)?a:Mr(a)):2===this.j&&b?(a=b.call(c,this.Zc),wi(a)?a:Lr(a)):this};
Kr.prototype.getValue=function(){return this.Zc};
Kr.prototype.$goog_Thenable=!0;var Nr=!1;Rr.prototype.cg=function(a,b){return Sr(a,1,b)};g.v(Ur,Rr);Ur.prototype.Ii=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ka("yt.scheduler.instance.cancelJob");b?b(a):g.Dr(a)}};
Ur.prototype.start=function(){var a=g.Ka("yt.scheduler.instance.start");a&&a()};
Ur.prototype.pause=function(){var a=g.Ka("yt.scheduler.instance.pause");a&&a()};g.tp=g.Vr();var fs=xC||DE;g.v(ms,$a);ms.prototype.name="BiscottiError";g.v(ls,$a);ls.prototype.name="BiscottiMissingError";var yma={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},ns=null;var ps=g.Ka("ytglobal.prefsUserPrefsPrefs_")||{};g.Ja("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.Vf(ps)};
g.h.dump=function(){var a=[],b;for(b in ps)a.push(b+"="+encodeURIComponent(String(ps[b])));return a.join("&")};
La(g.qs);var Hma={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"},Sma={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},Tma={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},Jma={"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.Yi(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.qma(a,"/",this.u)};var N_;N_=window;g.R=N_.ytcsi&&N_.ytcsi.now?N_.ytcsi.now:N_.performance&&N_.performance.timing&&N_.performance.now&&N_.performance.timing.navigationStart?function(){return N_.performance.timing.navigationStart+N_.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.v(g.Is,Error);var O_={},Wma=(O_.AUTH_INVALID="No user identifier specified.",O_.EXPLICIT_ABORT="Transaction was explicitly aborted.",O_.IDB_NOT_SUPPORTED="IndexedDB is not supported.",O_.MISSING_INDEX="Index not created.",O_.MISSING_OBJECT_STORES="Object stores not created.",O_.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",O_.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",O_.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",O_.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",O_.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",O_.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",O_.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",O_),P_={},Xma=(P_.AUTH_INVALID="ERROR",P_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",P_.EXPLICIT_ABORT="IGNORED",
P_.IDB_NOT_SUPPORTED="ERROR",P_.MISSING_INDEX="WARNING",P_.MISSING_OBJECT_STORES="ERROR",P_.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",P_.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",P_.QUOTA_EXCEEDED="WARNING",P_.QUOTA_MAYBE_EXCEEDED="WARNING",P_.UNKNOWN_ABORT="WARNING",P_.INCOMPATIBLE_DB_VERSION="WARNING",P_),Q_={},Yma=(Q_.AUTH_INVALID=!1,Q_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Q_.EXPLICIT_ABORT=!1,Q_.IDB_NOT_SUPPORTED=!1,Q_.MISSING_INDEX=!1,Q_.MISSING_OBJECT_STORES=!1,Q_.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Q_.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Q_.QUOTA_EXCEEDED=!1,Q_.QUOTA_MAYBE_EXCEEDED=!0,Q_.UNKNOWN_ABORT=!0,Q_.INCOMPATIBLE_DB_VERSION=!1,Q_);g.v(g.Ns,g.Is);g.v(Os,g.Ns);g.v(Ps,Error);var Zma=["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={Sr:0};f.Sr<a.length;f={Sr:f.Sr},++f.Sr)g.Us.resolve(a[f.Sr]).then(function(k){return function(l){d[k.Sr]=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:ana,e=null!=b?b:$ma;return new g.Us(new Ts(function(f,k){"PENDING"===c.state.status?(c.j.push(function(){bna(c,c,d,f,k)}),c.onRejected.push(function(){cna(c,c,e,f,k)})):"FULFILLED"===c.state.status?bna(c,c,d,f,k):"REJECTED"===c.state.status&&cna(c,c,e,f,k)}))};
g.Us.prototype.catch=function(a){return this.then(void 0,a)};g.h=fna.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.DA=function(){return this.cursor.primaryKey};g.h=gna.prototype;g.h.add=function(a,b,c){return g.bt(this,[a],{mode:"readwrite",Hc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.h.clear=function(a){return g.bt(this,[a],{mode:"readwrite",Hc:!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",Hc:!0},function(c){return c.objectStore(a).count(b)})};
g.h.delete=function(a,b){return g.bt(this,[a],{mode:"readwrite",Hc:!0},function(c){return c.objectStore(a).delete(b)})};
g.h.get=function(a,b){return g.bt(this,[a],{mode:"readonly",Hc:!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?lna(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 rna(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=rna.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=sna.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.DA=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 una(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,w,x;return g.B(function(y){switch(y.j){case 1:return k=null!=(f=Error().stack)?f:"",g.va(y,2),g.A(y,c.B(c.name,c.options.version,e),4);case 4:l=y.u;for(var z=c.options,E=[],I=g.r(Object.keys(z.Tq)),K=I.next();!K.done;K=I.next()){K=K.value;var P=z.Tq[K],aa=void 0===P.IZ?Number.MAX_VALUE:P.IZ;!(l.j.version>=P.Gn)||l.j.version>=aa||l.j.objectStoreNames.contains(K)||E.push(K)}m=E;if(0===m.length){y.Ya(5);break}n=Object.keys(c.options.Tq);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.Ya(6);break}c.D++;if(!g.Q("ytidb_remake_db_enable_backoff_delay")){y.Ya(7);break}return g.A(y,vna(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.xa(y);if(q instanceof DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){y.Ya(10);break}return g.A(y,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),11);case 11:t=y.u;w=t.j.version;if(void 0!==c.options.version&&
w>c.options.version+1)throw t.close(),c.C=!1,wna(c,w);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 wna(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,l_:b,upgrade:this.options.upgrade};return this.j=d=a()};var mt=new kt("YtIdbMeta",{Tq:{databases:{Gn:1}},upgrade:function(a,b){b(1)&&g.$s(a,"databases",{keyPath:"actualName"})}});var qt,pt=new function(){}(new function(){});new g.Wj;g.h=ut.prototype;g.h.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.hd&&this.ze){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.rf.set(d,this.hd).then(function(e){d.id=e;c.hf.Me()&&vt(c,d)}).catch(function(e){vt(c,d);
wt(c,e)})}else this.Zm(a,b)};
g.h.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.hd&&this.ze){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.kb&&this.kb("nwl_skip_retry")&&(e.skipRetry=c);if(this.hf.Me()||this.kb&&this.kb("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.rf.set(e,d.hd).catch(function(n){wt(d,n)}),2);
f(k,l);g.ua(m)})}}this.Zm(a,b,e.skipRetry)}else this.rf.set(e,this.hd).catch(function(k){d.Zm(a,b,e.skipRetry);
wt(d,k)})}else c=this.kb&&this.kb("nwl_skip_retry")&&c,this.Zm(a,b,c)};
g.h.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.hd&&this.ze){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.rf.Zs(d.id,c.hd):e=!0;c.hf.Pm&&c.kb&&c.kb("vss_network_hint")&&c.hf.Pm(!0);f(k,l)};
this.Zm(d.url,d.options);this.rf.set(d,this.hd).then(function(k){d.id=k;e&&c.rf.Zs(d.id,c.hd)}).catch(function(k){wt(c,k)})}else this.Zm(a,b)};
g.h.Ny=function(){var a=this;if(!this.hd)throw g.Ss("throttleSend");this.j||(this.j=this.Rj.cg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,a.rf.yM("NEW",a.hd),2);if(3!=c.j)return b=c.u,b?g.A(c,vt(a,b),3):(a.uL(),c.return());a.j&&(a.j=0,a.Ny());g.ua(c)})},this.lQ))};
g.h.uL=function(){this.Rj.Ii(this.j);this.j=0};zt.prototype.toString=function(){return this.topic};var sSa=g.Ka("ytPubsub2Pubsub2Instance")||new g.Yp;g.Yp.prototype.subscribe=g.Yp.prototype.subscribe;g.Yp.prototype.unsubscribeByKey=g.Yp.prototype.Mf;g.Yp.prototype.publish=g.Yp.prototype.ea;g.Yp.prototype.clear=g.Yp.prototype.clear;g.Ja("ytPubsub2Pubsub2Instance",sSa);var Ct=g.Ka("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ja("ytPubsub2Pubsub2SubscribedKeys",Ct);var Dt=g.Ka("ytPubsub2Pubsub2TopicToKeys")||{};g.Ja("ytPubsub2Pubsub2TopicToKeys",Dt);var Pna=g.Ka("ytPubsub2Pubsub2IsAsync")||{};
g.Ja("ytPubsub2Pubsub2IsAsync",Pna);g.Ja("ytPubsub2Pubsub2SkipSubKey",null);g.v(Gt,kt);Gt.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.Cy?Fna:Ena)(a,b,Object.assign({},c))};
Gt.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Cy?Jna:Gna)(this.name,a)};var It;var tSa={},Yna=g.Ht("ServiceWorkerLogsDatabase",{Tq:(tSa.SWHealthLog={Gn:1},tSa),Cy:!0,upgrade:function(a,b){b(1)&&g.et(g.$s(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Ot={},doa=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 koa=g.dr("network_polling_interval",3E4);g.v(Tt,g.sg);g.h=Tt.prototype;g.h.Me=function(){if(g.Q("use_shared_nsm")&&this.j){var a;return null==(a=this.j)?void 0:a.Me()}return this.u};
g.h.Pm=function(a){if(g.Q("use_shared_nsm")&&this.j){var b;null!=(b=this.j)&&(b.j=a)}else a!==this.u&&(this.u=a)};
g.h.cW=function(a){!g.Q("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.S||joa(this))};
g.h.xF=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.h.tU=function(){this.J=!0};
g.h.Oa=function(a,b){return g.Q("use_shared_nsm")&&this.j?this.j.Oa(a,b):g.sg.prototype.Oa.call(this,a,b)};
g.h.cn=function(a){var b=this;if(g.Q("use_shared_nsm")&&this.j){var c=rp(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.va(m,2,3),e&&(b.K=g.tp.cg(function(){e.abort()},a||2E4)),g.A(m,fetch("/generate_204",{method:"HEAD",
signal:k}),5);case 5:l=!0;case 3:g.ya(m);g.Q("use_cfr_monitor")&&Qt().requestComplete("generate_204",l);b.D=void 0;b.K&&g.tp.Ii(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.za(m,0);break;case 2:g.xa(m),l=!1,m.Ya(3)}})})};
Tt.prototype.sendNetworkCheckRequest=Tt.prototype.cn;Tt.prototype.listen=Tt.prototype.Oa;Tt.prototype.enableErrorFlushing=Tt.prototype.tU;Tt.prototype.getWindowStatus=Tt.prototype.xF;Tt.prototype.monitorNetworkStatusChange=Tt.prototype.cW;Tt.prototype.networkStatusHint=Tt.prototype.Pm;Tt.prototype.isNetworkAvailable=Tt.prototype.Me;Tt.getInstance=ioa;g.v(g.Ut,g.sg);g.Ut.prototype.Me=function(){var a=g.Ka("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0};
g.Ut.prototype.Pm=function(a){var b=g.Ka("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)};
g.Ut.prototype.cn=function(a){var b=this,c;return g.B(function(d){c=g.Ka("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return g.Q("skip_network_check_if_cfr")&&Qt().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Pm((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Me())})):c?d.return(c(a)):d.return(!0)})};var Xt;g.v(Vt,ut);Vt.prototype.writeThenSend=function(a,b){b||(b={});g.Ks()||(this.ze=!1);ut.prototype.writeThenSend.call(this,a,b)};
Vt.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Ks()||(this.ze=!1);ut.prototype.sendThenWrite.call(this,a,b,c)};
Vt.prototype.sendAndWrite=function(a,b){b||(b={});g.Ks()||(this.ze=!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.Ja("ytNetworklessLoggingInitializationOptions",fu);g.iu.prototype.isReady=function(){!this.config_&&Lma()&&(this.config_=g.vs());return!!this.config_};var Yoa={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},Xoa={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 uSa=0,ku=g.zf?"webkit":Nm?"moz":g.Ic?"ms":g.oC?"o":"",vSa=g.Ka("ytDomDomGetNextId")||function(){return++uSa};
g.Ja("ytDomDomGetNextId",vSa);var voa={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.kN=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.Ja("ytEventsEventsListeners",nu);var yoa=g.C.ytEventsEventsCounter||{count:0};g.Ja("ytEventsEventsCounter",yoa);var gpa=Cg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),zoa=Cg(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var ZB=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.Va(zu,g.G);zu.prototype.X=function(a){void 0===a.j&&woa(a);var b=a.j;void 0===a.u&&woa(a);this.j=new g.Bh(b,a.u)};
zu.prototype.zo=function(){return this.j||new g.Bh};
zu.prototype.Z=function(){if(this.j){var a=ZB();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 wSa,Fu,Hu;wSa=g.C.ytPubsubPubsubInstance||new g.Yp;Fu=g.C.ytPubsubPubsubSubscribedKeys||{};Hu=g.C.ytPubsubPubsubTopicToKeys||{};g.Gu=g.C.ytPubsubPubsubIsSynchronous||{};g.Yp.prototype.subscribe=g.Yp.prototype.subscribe;g.Yp.prototype.unsubscribeByKey=g.Yp.prototype.Mf;g.Yp.prototype.publish=g.Yp.prototype.ea;g.Yp.prototype.clear=g.Yp.prototype.clear;g.Ja("ytPubsubPubsubInstance",wSa);g.Ja("ytPubsubPubsubTopicToKeys",Hu);g.Ja("ytPubsubPubsubIsSynchronous",g.Gu);
g.Ja("ytPubsubPubsubSubscribedKeys",Fu);var Noa=g.dr("initial_gel_batch_timeout",2E3),Woa=Math.pow(2,16)-1,Ou=void 0,Qu=new Goa,Pu=new Goa,Xu=!0,Mu=g.C.ytLoggingTransportGELQueue_||new Map;g.Ja("ytLoggingTransportGELQueue_",Mu);var Nu=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ja("ytLoggingTransportGELProtoQueue_",Nu);var Wu=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Ja("ytLoggingTransportTokensToCttTargetIds_",Wu);var Vu=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Ja("ytLoggingTransportTokensToJspbCttTargetIds_",Vu);var Yu=g.C.ytLoggingGelSequenceIdObj_||{};g.Ja("ytLoggingGelSequenceIdObj_",Yu);var $oa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var epa={};g.v(fv,g.G);fv.prototype.T=function(a,b,c,d,e){c=ir((0,g.Sa)(c,d||this.Va));c={target:a,name:b,callback:c};var f;e&&gpa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.J.push(c);return c};
fv.prototype.vc=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.Va(g.iv,g.G);g.iv.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Dd.subscribe(a,b,c)};
g.iv.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Dd.unsubscribe(a,b,c)};
g.iv.prototype.Mf=function(a){return this.isDisposed()?!1:this.Dd.Mf(a)};
g.iv.prototype.ea=function(a,b){return this.isDisposed()?!1:this.Dd.ea.apply(this.Dd,arguments)};g.v(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.YN=function(a){ov(this);nv(this,pv("move"),this.WN);nv(this,pv("out"),this.XN);nv(this,"touchstart",this.AI);this.j&&nv(this,pv("down"),this.yG);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.WN=function(a){var b=g.qu(a);a=uu(a);if(this.D){var c=this.D;this.D=null;if(tu(c)==b&&Ch(uu(c),a))return}this.ea("hovermove",a.x,a.y,b)};
g.h.XN=function(a){var b=uu(a),c=tu(a);try{if(c&&g.ki(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.eW=function(a){this.YN(a);this.yG(a)};
g.h.yG=function(a){if("number"!==typeof a.button||0==a.button){ov(this);this.C.T(document,pv("move"),this.dW);this.C.T(document,pv("up"),this.iW);var b=g.qu(a);if(g.zf)nv(this,"dragstart",this.qU);else if(g.vu(a),(g.XC||Nm)&&b)a:{for(var c=b;c;){if(mi(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.qU=function(a){g.vu(a)};
g.h.dW=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.iW=function(a){ov(this);this.B=!1;var b=ru(a),c=g.qu(a);a=uu(a);b&&g.ki(this.J,b)?(nv(this,pv("move"),this.WN),nv(this,pv("out"),this.XN),nv(this,pv("down"),this.yG),nv(this,"touchstart",this.AI),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.AI=function(a){var b=a.changedTouches[0];b&&(ov(this),nv(this,"touchmove",this.u_),nv(this,"touchend",this.rQ),nv(this,"touchcancel",this.rQ),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.u_=function(a){var b=hpa(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.rQ=function(a){var b=hpa(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.zf&&this.J.removeAttribute("draggable"),this.J.style.touchAction="");ov(this);g.iv.prototype.qa.call(this)};qv.prototype.clone=function(){var a=new qv,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ma(c)?g.Zf(c):c}return a};var jBa=["att/get"],NBa=["embedded_player"],xSa=["share/get_web_player_share_panel"],ySa=["feedback"],zSa=["notification/modify_channel_preference"],ELa=["player"],ASa=["browse/edit_playlist"],BSa=["subscription/subscribe"],CSa=["subscription/unsubscribe"],HLa=["next","unplugged/watch_next"];var rv=Date.now().toString();var kpa=g.C.ytLoggingGelSequenceIdObj_||{};g.Ja("ytLoggingGelSequenceIdObj_",kpa);var R_=g.C.ytLoggingDocDocumentNonce_;R_||(R_=g.uv(16),g.Ja("ytLoggingDocDocumentNonce_",R_));var wpa=R_;var bya={jR:0,Q1:1,m2:2,P$:3,B5:4,Sfa:5,Oaa:6,mda:7,xca:8,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS"};var rpa=1;Gv.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};
Gv.prototype.getAsJspb=function(){var a=new Gq;void 0!==this.j.trackingParams?a.hk(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();se(a,7,b)}void 0!==this.j.youtubeData&&se(a,8,this.j.jspbYoutubeData);return a};
Gv.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Gv.prototype.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};g.Ja("yt_logging_screen.getRootVeType",tpa);g.Ja("yt_logging_screen.getCurrentCsn",g.Lv);g.Ja("yt_logging_screen.getCttAuthInfo",Mv);g.Ja("yt_logging_screen.setCurrentScreen",xpa);var Gpa=[{vG:function(a){return"Cannot read property '"+a.key+"'"},
KB:{Error:[{Ng:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ng:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ng:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ng:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{Ng:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ng:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ng:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{vG:function(a){return"Cannot call '"+a.key+"'"},
KB:{TypeError:[{Ng:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ng:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ng:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ng:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ng:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Ng:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{vG:function(a){return a.key+" is not defined"},
KB:{ReferenceError:[{Ng:/(.*) is not defined/,groups:["key"]},{Ng:/Can't find variable: (.*)/,groups:["key"]}]}}];var Bpa={Om:[],Kn:[{callback:ypa,weight:500}]};var Nv;var Tv=new g.Yp;var Hpa=new Set,Epa=0,Jpa=0,Ipa=0,Fpa=[],Mpa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.v(Uv,xt);var Qpa=new zt("screen-created",Uv),Yv=[],Opa=Upa,Zv=0;var DSa={P1:3611,Z_:27686,d0:85013,e0:23462,g0:42016,h0:62407,j0:26926,f0:43781,l0:51236,m0:79148,n0:50160,o0:77504,J0:87907,K0:18630,e1:54445,f1:80935,n1:105675,o1:37521,q1:147285,s1:47786,u1:98349,v1:123695,B1:6827,C1:29434,N1:7282,O1:124448,Y1:32276,X1:76278,Z1:147868,b2:147869,d2:93911,f2:106531,g2:27259,h2:27262,j2:27263,n2:21759,o2:27107,q2:62936,s2:49568,u2:38408,v2:80637,w2:68727,z2:68728,A2:80353,B2:80356,C2:74610,D2:45707,E2:83962,F2:83970,G2:46713,H2:89711,I2:74612,J2:93265,K2:74611,L2:131380,
N2:128979,O2:139311,P2:128978,M2:131391,Q2:105350,S2:139312,T2:134800,R2:131392,V2:113533,W2:93252,X2:99357,Z2:94521,b3:114252,d3:113532,e3:94522,Y2:94583,f3:88E3,g3:139580,h3:93253,j3:93254,l3:94387,m3:94388,n3:93255,o3:97424,U2:72502,q3:110111,r3:76019,t3:117092,u3:117093,s3:89431,v3:110466,w3:77240,x3:60508,y3:148123,z3:148124,A3:137401,B3:137402,C3:137046,D3:73393,E3:113534,F3:92098,G3:131381,H3:84517,I3:83759,J3:80357,K3:86113,L3:72598,M3:72733,N3:107349,O3:124275,P3:118203,Q3:133275,R3:133274,
S3:133272,T3:133273,U3:133276,V3:144507,W3:143247,X3:143248,Y3:143249,Z3:143250,a4:143251,b4:144401,e4:117431,d4:133797,f4:128572,g4:133405,h4:117429,i4:117430,j4:117432,l4:120080,m4:117259,n4:121692,o4:145656,p4:145655,q4:145653,r4:145654,s4:145657,t4:132972,u4:133051,v4:133658,w4:132971,x4:97615,z4:143359,y4:143356,B4:143361,A4:143358,D4:143360,C4:143357,E4:142303,F4:143353,G4:143354,H4:144479,I4:143355,J4:31402,L4:133624,M4:146477,N4:133623,O4:133622,K4:133621,P4:84774,Q4:95117,R4:98930,S4:98931,
T4:98932,U4:43347,V4:129889,W4:149123,X4:45474,Y4:100352,Z4:84758,a5:98443,b5:117985,c5:74613,d5:74614,e5:64502,f5:136032,g5:74615,h5:74616,i5:122224,j5:74617,k5:77820,l5:74618,m5:93278,n5:93274,o5:93275,p5:93276,q5:22110,r5:29433,u5:133798,v5:132295,y5:120541,C5:82047,D5:113550,E5:75836,F5:75837,J5:42352,N5:84512,O5:76065,Q5:75989,Y5:16623,Z5:32594,a6:27240,c6:32633,m6:74858,p6:3945,o6:16989,q6:45520,r6:25488,s6:25492,t6:25494,v6:55760,w6:14057,y6:18451,z6:57204,A6:57203,B6:17897,C6:57205,D6:18198,
E6:17898,F6:17909,G6:43980,H6:46220,R6:11721,T6:147994,V6:49954,a7:96369,b7:3854,i7:56251,j7:25624,F7:16906,G7:99999,I7:68172,J7:27068,b8:47973,c8:72773,d8:26970,e8:26971,f8:96805,g8:17752,h8:73233,i8:109512,j8:22256,k8:14115,l8:22696,m8:89278,n8:89277,o8:109513,p8:43278,q8:43459,r8:43464,s8:89279,t8:43717,u8:55764,v8:22255,w8:147912,x8:89281,y8:40963,z8:43277,A8:43442,C8:91824,E8:120137,G8:96367,H8:36850,I8:72694,J8:37414,K8:36851,M8:124863,L8:121343,N8:73491,O8:54473,P8:43375,Q8:46674,e9:143815,
f9:139095,g9:144402,h9:32473,l9:72901,m9:72906,n9:50947,o9:50612,p9:50613,q9:50942,r9:84938,s9:84943,t9:84939,u9:84941,v9:84944,w9:84940,x9:84942,y9:35585,z9:51926,A9:79983,B9:63238,C9:18921,D9:63241,E9:57893,F9:41182,G9:135732,H9:33424,I9:22207,J9:42993,K9:36229,L9:22206,M9:22205,N9:18993,O9:19001,P9:18990,Q9:18991,R9:18997,S9:18725,T9:19003,U9:36874,V9:44763,W9:33427,X9:67793,Y9:22182,Z9:37091,a$:34650,b$:50617,c$:47261,d$:22287,e$:25144,f$:97917,h$:62397,i$:125598,j$:137935,k$:36961,l$:108035,
m$:27426,n$:27857,o$:27846,p$:27854,q$:69692,r$:61411,s$:39299,t$:38696,u$:62520,v$:36382,w$:108701,x$:50663,y$:36387,z$:14908,A$:37533,B$:105443,C$:61635,D$:62274,E$:133818,F$:65702,G$:65703,H$:65701,I$:76256,K$:37671,L$:49953,S$:36216,T$:28237,U$:39553,V$:29222,W$:26107,X$:38050,Y$:26108,aaa:120745,Z$:26109,baa:26110,caa:66881,daa:28236,eaa:14586,jaa:57929,naa:74723,oaa:44098,paa:44099,saa:23528,taa:61699,qaa:134104,raa:134103,uaa:59149,waa:101951,xaa:97346,yaa:118051,zaa:95102,Aaa:64882,Baa:119505,
Caa:63595,Daa:63349,Eaa:95101,Faa:75240,Gaa:27039,Haa:68823,Iaa:21537,Jaa:83464,Kaa:75707,Laa:83113,Maa:101952,Naa:101953,Paa:79610,Vaa:125755,Waa:24402,Xaa:24400,Yaa:32925,Zaa:57173,bba:122502,cba:145268,dba:138480,eba:64423,fba:64424,hba:33986,jba:100828,kba:129089,lba:21409,Cba:135155,Dba:135156,Eba:135157,Fba:135158,Gba:135159,Hba:135160,Iba:135161,Jba:135162,Kba:135163,Lba:135164,Mba:135165,Nba:135166,zba:11070,Aba:11074,Bba:17880,Oba:14001,Qba:30709,Rba:30707,Sba:30711,Tba:30710,Uba:30708,Pba:26984,
Vba:146143,Wba:63648,Xba:63649,aca:51879,fca:111059,hca:5754,ica:20445,nca:130975,mca:130976,oca:110386,qca:113746,rca:66557,yca:17310,zca:28631,Bca:21589,Cca:68012,Dca:60480,Eca:138664,Fca:141121,Gca:31571,Hca:141978,Lca:76980,Pca:41577,Qca:45469,Vca:38669,Wca:13768,Xca:13777,bda:141842,cda:62985,dda:4724,eda:59369,fda:43927,gda:43928,jda:12924,lda:100355,oda:56219,pda:27669,qda:10337,nda:47896,rda:122629,tda:139723,sda:139722,uda:121258,vda:107598,wda:127991,xda:96639,yda:107536,zda:130169,Ada:96661,
Bda:145188,Cda:96658,Dda:116646,Eda:121122,Fda:96660,Gda:127738,Hda:127083,Ida:147842,Jda:104443,Kda:96659,Lda:147595,Mda:106442,Oda:134840,Sda:63667,Tda:63668,Uda:63669,Vda:130686,Zda:147036,bea:78314,cea:147799,fea:55761,gea:127098,hea:134841,mea:96368,nea:67374,oea:48992,rea:146176,sea:49956,wea:31961,xea:26388,Cea:23811,Dea:5E4,Eea:126250,Gea:96370,Hea:47355,Iea:47356,Wea:37935,Zea:45521,afa:21760,cfa:83769,dfa:49977,efa:49974,ffa:93497,gfa:93498,ifa:34325,kfa:140759,lfa:115803,mfa:123707,nfa:100081,
ofa:35309,pfa:68314,qfa:25602,rfa:100339,sfa:143516,ufa:59018,vfa:18248,wfa:50625,xfa:9729,yfa:37168,zfa:37169,Afa:21667,Bfa:16749,Cfa:18635,Dfa:39305,Efa:18046,Gfa:53969,Hfa:8213,Jfa:93926,Mfa:102852,Nfa:110099,Ofa:22678,Pfa:69076,Qfa:137575,Tfa:139224,Ufa:100856,Wfa:17736,Xfa:3832,Yfa:147111,cga:55759,dga:64031,Ega:93044,Gga:93045,Kga:34388,Lga:17657,Mga:17655,Nga:39579,Oga:39578,Pga:77448,Qga:8196,Rga:11357,Sga:69877,Tga:8197,Vga:82039};cw.prototype.clear=function(){this.u.clear();this.j.clear();this.B.clear()};
La(cw);var ew;g.dw=Cg(function(){var a=new eq;return a.isAvailable()?new g.bq(a):null});
ew=Cg(function(){var a=new Kia;return a.isAvailable()?new g.bq(a):null});var Xpa=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Ypa=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,aqa={};g.v(ow,g.G);var iqa=!1;g.v(vw,g.G);vw.prototype.HF=function(){var a=this.C().sF("SLOT_TYPE_PLAYER_BYTES",1),b=qw(this.j.get(),1).clientPlaybackNonce,c=!1;a=g.r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.slotType&&d.Pb instanceof uw?d.Pb.zp:void 0;e&&e===b&&(c&&T("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
vw.prototype.wh=function(a,b,c,d,e,f){var k=this,l=qw(this.j.get(),1);l.cq?this.Ga.get().lq():(pw(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return gqa(k.u.get(),d,e,a,b,f,l)}),jRa(this.aE))};
vw.prototype.Yj=function(){};var S_={},Hw=(S_.AD_MARKER="ytp-ad-progress",S_.CHAPTER_MARKER="ytp-chapter-marker",S_.TIME_MARKER="ytp-time-marker",S_);var GMa=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/)"),lqa=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/)"),
mqa=RegExp("^https?://(music|music-green-qa|music-release-qa)\\.youtube\\.com/"),HMa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),tqa=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)|$))"),
rqa=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)|$))"),oqa=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/)"),
IMa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),pqa=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)"),nqa=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/.*$)"),
tua=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)"),
sua=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)"),
ESa=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.Iw.prototype.getId=function(){return this.id};
g.Iw.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+xqa(this.start)+", "+xqa(this.end)+"]"};
g.Iw.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 wqa=1;g.Iw.prototype.getId=g.Iw.prototype.getId;g.v(Mw,g.Iw);Mw.prototype.deactivate=function(){this.B=!0};
Mw.prototype.Ow=function(){return this.end-this.start};var T_;var FSa=g.tb(),GSa=FSa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!GSa||2>GSa.length)T_=void 0;else{var U_=FSa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);T_=U_&&6==U_.length?Number(U_[5].replace("_",".")):0}var EE=T_,cM=0<=EE;cM&&0<=g.tb().search("Safari")&&g.tb().search("Version");g.v(Rw,xt);g.v(Bqa,xt);var Iqa=new zt("aft-recorded",Rw),HSa=new zt("timing-sent",Bqa);var V_=window,Tw=V_.performance||V_.mozPerformance||V_.msPerformance||V_.webkitPerformance||new Cqa;var Hqa=!1,Dx={'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"},
Tqa=(0,g.Sa)(Tw.clearResourceTimings||Tw.webkitClearResourceTimings||Tw.mozClearResourceTimings||Tw.msClearResourceTimings||Tw.oClearResourceTimings||g.Bg,Tw);var W_={},Nqa=(W_.auto_search="LATENCY_ACTION_AUTO_SEARCH",W_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",W_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",W_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",W_.app_startup="LATENCY_ACTION_APP_STARTUP",W_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",W_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",W_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",W_.browse="LATENCY_ACTION_BROWSE",W_.cast_splash="LATENCY_ACTION_CAST_SPLASH",
W_.channels="LATENCY_ACTION_CHANNELS",W_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",W_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",W_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",W_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",W_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",W_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",W_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",
W_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",W_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",W_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",W_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",W_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",W_.chips="LATENCY_ACTION_CHIPS",W_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",W_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",
W_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",W_.embed="LATENCY_ACTION_EMBED",W_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",W_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",W_.explore="LATENCY_ACTION_EXPLORE",W_.home="LATENCY_ACTION_HOME",W_.library="LATENCY_ACTION_LIBRARY",W_.live="LATENCY_ACTION_LIVE",W_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",W_.onboarding="LATENCY_ACTION_ONBOARDING",W_.parent_profile_settings=
"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",W_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",W_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",W_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",W_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",W_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",W_.prebuffer="LATENCY_ACTION_PREBUFFER",W_.prefetch="LATENCY_ACTION_PREFETCH",W_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",W_.profile_switcher="LATENCY_ACTION_LOGIN",
W_.reel_watch="LATENCY_ACTION_REEL_WATCH",W_.results="LATENCY_ACTION_RESULTS",W_.search_ui="LATENCY_ACTION_SEARCH_UI",W_.search_suggest="LATENCY_ACTION_SUGGEST",W_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",W_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",W_.seek="LATENCY_ACTION_PLAYER_SEEK",W_.settings="LATENCY_ACTION_SETTINGS",W_.tenx="LATENCY_ACTION_TENX",W_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",W_.watch="LATENCY_ACTION_WATCH",W_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",
W_["watch,watch7"]="LATENCY_ACTION_WATCH",W_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",W_["watch,watch7ad"]="LATENCY_ACTION_WATCH",W_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",W_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",W_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",W_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",W_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",W_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",W_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",
W_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",W_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",W_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",W_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",W_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",W_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",W_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",W_.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",W_),X_={},Oqa=(X_.ad_allowed="adTypesAllowed",X_.yt_abt="adBreakType",X_.ad_cpn="adClientPlaybackNonce",X_.ad_docid="adVideoId",X_.yt_ad_an="adNetworks",X_.ad_at="adType",X_.aida="appInstallDataAgeMs",X_.browse_id="browseId",X_.p="httpProtocol",X_.t="transportProtocol",X_.cs="commandSource",X_.cpn="clientPlaybackNonce",X_.ccs="creatorInfo.creatorCanaryState",X_.ctop="creatorInfo.topEntityType",X_.csn="clientScreenNonce",X_.docid="videoId",X_.GetHome_rid="requestIds",
X_.GetSearch_rid="requestIds",X_.GetPlayer_rid="requestIds",X_.GetWatchNext_rid="requestIds",X_.GetBrowse_rid="requestIds",X_.GetLibrary_rid="requestIds",X_.is_continuation="isContinuation",X_.is_nav="isNavigation",X_.b_p="kabukiInfo.browseParams",X_.is_prefetch="kabukiInfo.isPrefetch",X_.is_secondary_nav="kabukiInfo.isSecondaryNav",X_.nav_type="kabukiInfo.navigationType",X_.prev_browse_id="kabukiInfo.prevBrowseId",X_.query_source="kabukiInfo.querySource",X_.voz_type="kabukiInfo.vozType",X_.yt_lt=
"loadType",X_.mver="creatorInfo.measurementVersion",X_.yt_ad="isMonetized",X_.nr="webInfo.navigationReason",X_.nrsu="navigationRequestedSameUrl",X_.pnt="performanceNavigationTiming",X_.prt="playbackRequiresTap",X_.plt="playerInfo.playbackType",X_.pis="playerInfo.playerInitializedState",X_.paused="playerInfo.isPausedOnLoad",X_.yt_pt="playerType",X_.fmt="playerInfo.itag",X_.yt_pl="watchInfo.isPlaylist",X_.yt_pre="playerInfo.preloadType",X_.yt_ad_pr="prerollAllowed",X_.pa="previousAction",X_.yt_red=
"isRedSubscriber",X_.rce="mwebInfo.responseContentEncoding",X_.rc="resourceInfo.resourceCache",X_.scrh="screenHeight",X_.scrw="screenWidth",X_.st="serverTimeMs",X_.ssdm="shellStartupDurationMs",X_.br_trs="tvInfo.bedrockTriggerState",X_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",X_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",X_.label="tvInfo.label",X_.is_mdx="tvInfo.isMdx",X_.preloaded="tvInfo.isPreloaded",X_.aac_type="tvInfo.authAccessCredentialType",X_.upg_player_vis="playerInfo.visibilityState",
X_.query="unpluggedInfo.query",X_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",X_.yt_vst="videoStreamType",X_.vph="viewportHeight",X_.vpw="viewportWidth",X_.yt_vis="isVisible",X_.rcl="mwebInfo.responseContentLength",X_.GetSettings_rid="requestIds",X_.GetTrending_rid="requestIds",X_.GetMusicSearchSuggestions_rid="requestIds",X_.REQUEST_ID="requestIds",X_),Pqa="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(" "),
Y_={},Qqa=(Y_.ccs="CANARY_STATE_",Y_.mver="MEASUREMENT_VERSION_",Y_.pis="PLAYER_INITIALIZED_STATE_",Y_.yt_pt="LATENCY_PLAYER_",Y_.pa="LATENCY_ACTION_",Y_.ctop="TOP_ENTITY_TYPE_",Y_.yt_vst="VIDEO_STREAM_TYPE_",Y_),Rqa="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var U={LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_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_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,
LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,
LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,
LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,
LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,
LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,
LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_HOME:1,LATENCY_ACTION_STARTUP:106,
LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";
U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";
U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";
U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";
U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";
U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";
U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";
U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";
U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";
U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";
U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";
U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";
U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";
U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";
U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";
U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";
U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";
U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";
U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";
U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";
U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";
var px={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};px[px.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";px[px.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";px[px.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var qx={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};
qx[qx.CONN_INVALID]="CONN_INVALID";qx[qx.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";qx[qx.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";qx[qx.CONN_WIFI_METERED]="CONN_WIFI_METERED";qx[qx.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";qx[qx.CONN_DISCO]="CONN_DISCO";qx[qx.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";qx[qx.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";qx[qx.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";qx[qx.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";qx[qx.CONN_WIFI]="CONN_WIFI";qx[qx.CONN_NONE]="CONN_NONE";
qx[qx.CONN_UNKNOWN]="CONN_UNKNOWN";qx[qx.CONN_DEFAULT]="CONN_DEFAULT";
var rx={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};rx[rx.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
rx[rx.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";rx[rx.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";rx[rx.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";rx[rx.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";rx[rx.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";rx[rx.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
rx[rx.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";rx[rx.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";rx[rx.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";rx[rx.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";rx[rx.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";rx[rx.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";rx[rx.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";rx[rx.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
rx[rx.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";rx[rx.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";rx[rx.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";rx[rx.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";rx[rx.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";rx[rx.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";rx[rx.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";rx[rx.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
rx[rx.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";rx[rx.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";rx[rx.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";rx[rx.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var sx={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};
sx[sx.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";sx[sx.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";sx[sx.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";sx[sx.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";sx[sx.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";sx[sx.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";sx[sx.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";sx[sx.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var tx={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};tx[tx.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";tx[tx.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";tx[tx.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";tx[tx.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var ux={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
ux[ux.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";ux[ux.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var vx={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};vx[vx.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";vx[vx.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";vx[vx.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
vx[vx.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";vx[vx.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";vx[vx.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var wx={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};wx[wx.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";wx[wx.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";wx[wx.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";wx[wx.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var xx={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};xx[xx.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";xx[xx.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";xx[xx.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var yx={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};yx[yx.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
yx[yx.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";yx[yx.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var Uqa="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 hx=g.C.ytLoggingLatencyUsageStats_||{};g.Ja("ytLoggingLatencyUsageStats_",hx);fx.prototype.tick=function(a,b,c,d){ix(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.Q("web_csi_via_jspb")?(d=new vja,g.D(d,1,a),g.D(d,2,b),a=new Tq,te(a,5,Ev,d),Dv(a,c)):g.Ds("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
fx.prototype.info=function(a,b,c){var d=Object.keys(a).join("");ix(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Ds("latencyActionInfo",a,{cttAuthInfo:c}))};
fx.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));ix(this,"info_"+d+"_"+b)||(g.D(a,2,b),b={cttAuthInfo:c},c=new Tq,te(c,7,Ev,a),Dv(c,b))};
fx.prototype.span=function(a,b,c){var d=Object.keys(a).join("");ix(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Ds("latencyActionSpan",a,{cttAuthInfo:c}))};var Z_=window;Z_.ytcsi&&(Z_.ytcsi.info=g.ox,Z_.ytcsi.tick=lx);var Ova={G5:1,b6:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var FQ=16/9,ISa=[.25,.5,.75,1,1.25,1.5,1.75,2],JSa=ISa.concat([3,4,5,6,7,8,9,10,15]);var KSa=["h","H"],LSa=["9","("],MSa=["9h","(h"],NSa=["8","*"],OSa=["a","A"],PSa=["o","O"],QSa=["m","M"],RSa=["mac3","MAC3"],SSa=["meac3","MEAC3"],$_={},Fta=($_.h=KSa,$_.H=KSa,$_["9"]=LSa,$_["("]=LSa,$_["9h"]=MSa,$_["(h"]=MSa,$_["8"]=NSa,$_["*"]=NSa,$_.a=OSa,$_.A=OSa,$_.o=PSa,$_.O=PSa,$_.m=QSa,$_.M=QSa,$_.mac3=RSa,$_.MAC3=RSa,$_.meac3=SSa,$_.MEAC3=SSa,$_);g.Hx.prototype.getLanguageInfo=function(){return this.Fc};
g.Hx.prototype.toString=function(){return this.Fc.name};
g.Hx.prototype.getLanguageInfo=g.Hx.prototype.getLanguageInfo;var a0,Mx;a0={};g.Jx=(a0.auto=0,a0.tiny=144,a0.light=144,a0.small=240,a0.medium=360,a0.large=480,a0.hd720=720,a0.hd1080=1080,a0.hd1440=1440,a0.hd2160=2160,a0.hd2880=2880,a0.highres=4320,a0);Mx={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Ix.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
Ix.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
Ix.prototype.compose=function(a){if(a.B&&Lx(a))return RD;if(a.B||Lx(this))return a;if(this.B||Lx(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 Ix(b,c,!1,c===this.j?this.reason:a.reason)};
Ix.prototype.C=function(a){return a.video?bra(this,a.video.quality):!1};
var TSa=g.Kx("auto","hd1080",!1,"l"),FIa=g.Kx("auto","large",!1,"l"),RD=g.Kx("auto","auto",!1,"p");g.Kx("small","auto",!1,"p");Ox.prototype.ao=function(a){a=a||RD;for(var b=g.Xn(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};
Ox.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var Yx={LQ:function(a){a.reverse()},
UL:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
GP:function(a,b){a.splice(0,b)}};g.Zx.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.Zx.prototype.get=function(a){ay(this);return this.j[a]||null};
g.Zx.prototype.clone=function(){var a=new g.Zx(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.Zf(this.j);a.url=this.url;return a};
var sra=[Yia];g.h=hy.prototype;g.h.rD=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.al(a))?a.duration:0};
g.h.getDurationTicks=function(a){return this.getDuration(a)};
g.h.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ma:-1};
g.h.getIngestionTime=function(a){return(a=this.al(a))?a.ingestionTime:NaN};
g.h.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
g.h.oN=function(a){return this.getLastSegmentNumber()===a&&!this.u};
g.h.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.h.getMinSeekableTime=function(){return this.segments[0].startTime};
g.h.getNumberOfSegments=function(){return this.segments.length};
g.h.getOffset=function(){return 0};
g.h.getSegmentNumberForTime=function(a){return(a=this.nt(a))?a.Ma:-1};
g.h.getSegmentURL=function(a){return(a=this.al(a))?a.sourceURL:""};
g.h.getStartTime=function(a){return(a=this.al(a))?a.startTime:0};
g.h.getStartTimeInPeriod=function(a){return(a=this.al(a))?a.j:0};
g.h.isLoaded=function(){return 0<this.segments.length};
g.h.al=function(a){if(this.j&&this.j.Ma===a)return this.j;a=g.ic(this.segments,new gy(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return this.j=0<=a?this.segments[a]:null};
g.h.nt=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.ic(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.cc(a),this.segments.length){var b=this.segments.length?g.Ob(this.segments).endTime:0,c=a[0].Ma-this.getLastSegmentNumber();1<c&&Vb(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(vra(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{KF:b,Hr: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 xIa=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 b0={},USa=(b0.predictStart="predictStart",b0.start="start",b0["continue"]="continue",b0.stop="stop",b0),Bra={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Hy.prototype.hx=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 Mra=!1;Ty.prototype.Lt=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.Sv(c);else throw c;}this.j=a;return b};gz.prototype.set=function(a,b){this.Mh.get(a);this.j[a]=b;this.url=""};
gz.prototype.get=function(a){return this.j[a]||this.Mh.get(a)};Zra.prototype.Nj=function(a,b){a.Mh===this.j&&(this.j=iz(a,b));a.Mh===this.B&&(this.B=iz(a,b))};mz.prototype.df=function(){return!!this.j&&this.index.isLoaded()};
mz.prototype.Pt=function(){return!1};
mz.prototype.MJ=function(a){return[a]};
mz.prototype.xu=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.Ma!==this.Ma||a.zb!==this.zb||a.u!==this.u)};
rz.prototype.isVideo=function(){return!!this.j.info.video};
var sz=!1;Bz.prototype.Hj=function(){return this.B?$x(this.B):""};
Bz.prototype.Vk=function(){return uz(this.j[0])};
Bz.prototype.Nj=function(a,b){this.u.Nj(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")};g.v(Fz,mz);g.h=Fz.prototype;g.h.xl=function(){return!1};
g.h.Gq=function(){return VSa};
g.h.mx=function(){return!1};
g.h.Pt=function(){return!this.K};
g.h.xo=function(){var a=new rz(1,this,this.initRange,"getMetadataRequestInfo");return new Bz([a],this.K)};
g.h.Bs=function(){return null};
g.h.Bv=function(a){this.Cn(a);if(this.Gq()&&a.u&&!a.Td){var b=new rz(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Ma,a.startTime,a.duration,a.zb+a.u,NaN,tz(a),!0);return new Bz([b],this.index.getSegmentURL(a.Ma))}return this.Dn(xz(a),!1)};
g.h.zm=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.Dn(a,!0)};
g.h.DF=function(a){this.j=new Uint8Array(Rz(a).buffer)};
g.h.Cn=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.h.update=function(a,b,c){this.index.append(a);ura(this.index,c);this.index.u=b};
g.h.df=function(){return this.Pt()?!0:mz.prototype.df.call(this)};
g.h.Dn=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Ob?this.info.Ob*e:1E3;b=!b;var k=f;f=a===this.index.getLastSegmentNumber()&&!this.index.u&&0<f;a=new rz(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,k,f,b);return new Bz([a],c)};
g.h.oF=function(){return this.Pt()?0:this.initRange.length};
g.h.oH=function(){return!1};
var VSa=!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;d.C=k;var m=k,n=+Gz(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(psa(Gz(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.K=Gz(a,"media"));a=c?l-c.Ma:1;d.J=0<a?0:-a+1;a=g.r(e);for(e=a.next();!e.done;e=a.next()){e=
e.value;n=+e.getAttribute("d")/f;for(var p=(+e.getAttribute("yt:sid")||0)/f,q=+e.getAttribute("r")||0,t=0;t<=q;t++)if(c&&l<=c.Ma)l++;else{var w=new nsa(l,b,n,m+p,k);d.j.push(w);var x=w.startSecs;w=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(w&&y){w=Number(w);x=-w/f+x;y=Number(y)/f;var z=e.getAttribute("yt:cuepointContext")||null,E=e.getAttribute("yt:cuepointIdentifier")||"";var I=e.getAttribute("yt:cuepointEvent")||"";I=USa[I]||"unknown";w=new Aw(x,y,z,E,
I,w)}else w=null;w&&d.B.push(w);l++;b+=n;k+=n;m+=n+p}}d.j.length&&(d.u=g.Ob(d.j))}this.J=d.J;this.u=d.u||this.u;g.dc(this.j,d.j);g.dc(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.v(Jz,hy);g.h=Jz.prototype;g.h.getFirstSegmentNumber=function(){return this.Qk?this.segments.length?this.nt(this.getMinSeekableTime()).Ma:-1:hy.prototype.getFirstSegmentNumber.call(this)};
g.h.getMinSeekableTime=function(){if(this.gf)return 0;if(!this.Qk)return hy.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Ob(this.segments).endTime-this.nm,0);return 0<this.Ie&&this.nt(a).Ma<this.Ie?this.al(this.Ie).startTime:a};
g.h.getMaxKnownEndTime=function(){if(!this.segments.length)return hy.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.Qk||a<=this.segments[this.segments.length-1].Ma)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new gy(a,Math.max(0,b.startTime-(b.Ma-a)*this.Sg),this.Sg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.C&&a.pending&&3===this.C?this.gf?Math.min(this.nm,a.startTime):a.startTime:this.gf?Math.min(this.nm,a.endTime):
a.endTime};
g.h.getNumberOfSegments=function(){return this.Qk?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:hy.prototype.getNumberOfSegments.call(this)};
g.h.getLastSegmentNumber=function(){var a=Math.min(this.Kg,Math.max(hy.prototype.getLastSegmentNumber.call(this),this.Cv)),b=1E3*this.nm;b=0<this.B&&this.B<b;this.gf&&0<this.nm&&0<this.Cv&&!b&&(b=this.nt(this.nm))&&(a=Math.min(b.Ma-1,a));return a};
g.h.wt=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.h.rD=function(a){var b=Kz(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.yx&&0===a.Ma%(300/this.Sg)){var c=this.segments[0].Ma,d=Math.floor(this.yx/this.Sg);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.h.nt=function(a){if(!this.Qk)return hy.prototype.nt.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ma-Math.ceil((this.segments[0].startTime-a)/this.Sg));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Sg+1);else{b=jc(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ma-b.Ma-1))+1)+b.Ma}return this.al(b)};
g.h.al=function(a){if(!this.Qk)return hy.prototype.al.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.Sg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new gy(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.v(Mz,Fz);g.h=Mz.prototype;g.h.mx=function(){return!0};
g.h.df=function(){return!0};
g.h.Cn=function(a){return this.Gq()&&a.u&&!a.Td||!dsa(a)};
g.h.xo=function(){};
g.h.zm=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?Fz.prototype.zm.call(this,a,b):(a=new rz(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.lj,void 0,this.lj*this.info.Ob),new Bz([a],""))};
g.h.Dn=function(a,b){var c=void 0===c?!1:c;if(Lz(this.index,a))return Fz.prototype.Dn.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.lj*this.info.Ob;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 Bz([c],0<=a?"sq/"+a:"")};g.v(Nz,mz);g.h=Nz.prototype;g.h.xl=function(){return!1};
g.h.Gq=function(){return!1};
g.h.mx=function(){return!1};
g.h.xo=function(){var a=new rz(1,this,void 0,"otfInit");return new Bz([a],this.K)};
g.h.Bs=function(){return null};
g.h.Bv=function(a){this.Cn(a);return xsa(this,xz(a),!1)};
g.h.zm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return xsa(this,a,!0)};
g.h.DF=function(a){1===a.info.type&&(this.j||(this.j=yra(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&ysa(this,a.u))};
g.h.Cn=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.h.oF=function(){return 0};
g.h.oH=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.oN=function(a){return this.getLastSegmentNumber()===a};
g.h.getMaxKnownEndTime=function(){return this.u?this.j[this.count]/this.B:NaN};
g.h.getMinSeekableTime=function(){return 0};
g.h.getNumberOfSegments=function(){return this.count};
g.h.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.h.getSegmentURL=function(){return""};
g.h.getSegmentNumberForTime=function(a){a=g.ic(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.v(Uz,mz);g.h=Uz.prototype;g.h.xo=function(a){var b=new rz(1,this,this.initRange,"initInfo"),c=new rz(2,this,this.indexRange,"indexInfo");b=[b,c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&(a=qz(c,a),b.push(new rz(4,this,a,"tbdRange"))));return new Bz(b)};
g.h.DF=function(a){if(1===a.info.type){if(this.j)return;this.j=yra(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=Jra(d);b.setTimebase(c.sI);b.setFirstSegmentStart(c.DU+a+d.size,c.sU);a=c.nI.length;for(d=0;d<a;d++)b.addSegmentBySize(c.CZ[d],c.nI[d])}else this.K=Rz(a)}if(this.info.Be()&&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={nQ:1E6,oQ:1E9,duration:0,NP:0,NH:0};if(Xy(a,408125543))if(f.NP=Yy(a,!0),f.NH=a.start+a.j,Xy(a,357149030)){for(var k=Wy(a);!Uy(k);){var l=Yy(k,!1);2807729===l?f.nQ=$y(k):2807730===l?f.oQ=$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.oQ/a.nQ);e=new Ty(d);d=e;k=a.NH;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({Wz:p,kU:n})}}}if(0<f.length&&c===f[0].Wz)for(c=0;c<f.length;c++)f[c].Wz+=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.Wz,d.kU);b.cap(a.NP+a.NH,a.duration)}}this.K=null}};
g.h.MJ=function(a){for(var b=this.xu(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.xu=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.Cn=function(a){tz(a);return this.df()?!0:a.range.end+1<this.info.contentLength};
g.h.Bs=function(a,b){this.Cn(a);if(!this.df())return b=qz(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new oz(b.start,this.info.contentLength-1)),a=[new rz(4,a.j,b,"getNextRequestInfoByLength")],new Bz(a);4===a.type&&(a=this.xu(a),a=a[a.length-1]);var c=0,d=a.range.start+a.zb+a.u;3===a.type&&(tz(a),c=a.Ma,d===a.range.end+1&&(c+=1));return Vz(this,c,d,b)};
g.h.Bv=function(){return null};
g.h.zm=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.xl=function(){return!0};
g.h.Gq=function(){return!0};
g.h.mx=function(){return!1};
g.h.oF=function(){return this.indexRange.length+this.initRange.length};
g.h.oH=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};Wz.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var c0={},Tx=(c0.WIDTH={name:"width",video:!0,valid:640,invalid:99999},c0.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},c0.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},c0.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},c0.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},c0.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},c0.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},c0.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},c0.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},c0.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},c0);var Z={},aA=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",
Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["271"]="9",Z["313"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]="o",Z["250"]="o",Z["251"]=
"o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]="(h",Z["588"]="(h",Z["562"]=
"(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z);var 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.Be=function(){return 2===this.containerType};
g.h.isEncrypted=function(){return!!this.Sd};
g.h.Em=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.v(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.v(xA,g.iv);g.h=xA.prototype;g.h.appendBuffer=function(a,b,c){if(this.Id.sA()!==this.appendWindowStart+this.start||this.Id.eF()!==this.appendWindowEnd+this.start||this.Id.rd()!==this.timestampOffset+this.start)this.Id.supports(1),this.Id.UH(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Id.lC(this.timestampOffset+this.start);this.Id.appendBuffer(a,b,c)};
g.h.abort=function(){this.Id.abort()};
g.h.remove=function(a,b){this.Id.remove(a+this.start,b+this.start)};
g.h.UH=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.h.uF=function(){return this.timestampOffset+this.start};
g.h.sA=function(){return this.appendWindowStart};
g.h.eF=function(){return this.appendWindowEnd};
g.h.lC=function(a){this.timestampOffset=a};
g.h.rd=function(){return this.timestampOffset};
g.h.xf=function(a){a=this.Id.xf(void 0===a?!1:a);return wA(a,this.start,this.end)};
g.h.oh=function(){return this.Id.oh()};
g.h.po=function(){return this.Id.po()};
g.h.wA=function(){return this.Id.wA()};
g.h.KI=function(a,b){this.Id.KI(a,b)};
g.h.supports=function(a){return this.Id.supports(a)};
g.h.xA=function(){return this.Id.xA()};
g.h.isView=function(){return!0};
g.h.AC=function(a,b,c){return this.isActive?this.Id.AC(a,b,c):!1};
g.h.Qz=function(){return this.Id.Qz()?this.isActive:!1};
g.h.isLocked=function(){return this.Xy&&!this.isActive};
g.h.Nb=function(a){a=this.Id.Nb(a);a.vw=this.start+"-"+this.end;return a};
g.h.Qw=function(){return this.Id.Qw()};
g.h.rF=function(){return this.Id.rF()};
g.h.qa=function(){kv(this.Id,this.QM);g.iv.prototype.qa.call(this)};var wR=!1;g.v(yA,g.iv);g.h=yA.prototype;g.h.appendBuffer=function(a,b,c){this.Mz=!1;c&&(this.cB=c);b&&(b.isEncrypted()&&(this.vN=this.cB),3===b.type&&(this.Te=b));this.vy&&(2<=this.vy.length||1048576<a.length?delete this.vy:this.vy.push(a));var d;(null==(d=this.hc)?0:d.appendBuffer)?this.hc.appendBuffer(a):this.hc?this.hc.append(a):this.We&&this.We.webkitSourceAppend(this.id,a)};
g.h.abort=function(){try{this.hc?this.hc.abort():this.We&&this.We.webkitSourceAbort(this.id)}catch(a){}this.cB=this.Te=null};
g.h.remove=function(a,b){this.Mz=!1;var c;(null==(c=this.hc)?0:c.remove)&&this.hc.remove(a,b)};
g.h.sA=function(){if(wR&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.hc)?void 0:a.appendWindowStart)||0};
g.h.eF=function(){var a;return(null==(a=this.hc)?void 0:a.appendWindowEnd)||0};
g.h.UH=function(a,b){this.hc&&(wR&&this.isVideo?(this.appendWindowStart=a,this.hc.appendWindowEnd=b):a>this.sA()?(this.hc.appendWindowEnd=b,this.hc.appendWindowStart=a):(this.hc.appendWindowStart=a,this.hc.appendWindowEnd=b))};
g.h.uF=function(){return this.timestampOffset};
g.h.lC=function(a){wR?this.timestampOffset=a:this.supports(1)&&(this.hc.timestampOffset=a)};
g.h.rd=function(){return wR?this.timestampOffset:this.supports(1)?this.hc.timestampOffset:0};
g.h.xf=function(a){if(void 0===a?0:a)return this.Mz||this.oh()||(this.qL=this.xf(!1),this.Mz=!0),this.qL;try{return this.hc?this.hc.buffered:this.We?this.We.webkitSourceBuffered(this.id):qA([0],[Infinity])}catch(b){return qA([],[])}};
g.h.oh=function(){var a;return(null==(a=this.hc)?void 0:a.updating)||!1};
g.h.po=function(){return this.cB};
g.h.wA=function(){return this.vN};
g.h.KI=function(a,b){this.containerType!==a&&(this.supports(4),zA()&&this.hc.changeType(b));this.containerType=a};
g.h.xA=function(){return this.Te};
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.Qz=function(){return!this.oh()};
g.h.isLocked=function(){return!1};
g.h.Nb=function(a){a.to=this.rd();a.up=this.oh();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.xf())}catch(e){}return a};
g.h.qa=function(){this.supports(3)&&(this.hc.removeEventListener("updateend",this.Lc),this.hc.removeEventListener("error",this.Lc));g.iv.prototype.qa.call(this)};
g.h.AC=function(a,b,c){if(!this.supports(2)||this.oh())return!1;var d=this.xf(),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.Na();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.Na(),this.remove(0,l),!0}catch(m){}return!1};
g.h.Na=function(){};
g.h.Qw=function(){return this.containerType};
g.h.rF=function(){return this.vy};
var Qsa=!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.v(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.gk=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.We.webkitSourceSetDuration(a))}catch(b){}};
g.h.cf=function(){try{return"closed"===DA(this)}catch(a){return!0}};
g.h.oh=function(){return!!(this.j&&this.j.oh()||this.u&&this.u.oh())};
g.h.LY=function(){!this.isDisposed()&&CA(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.h.KY=function(){this.dispose()};var Wsa=/action_display_post/;var Xsa;g.v(GA,g.iv);g.h=GA.prototype;g.h.isFailed=function(){return 3===this.state};
g.h.qZ=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Cf=this.u=!0;this.timeline||(this.timeline=new rsa);vsa(this.timeline,a,this.Ra);this.ea("refresh");for(a=0;a<c.length;a++){var d=kta(this,c[a]),e=this.isLive&&g.Sz(d)&&this.Va;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.K&&l.getStreamTimeOffset()&&(this.K=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),k=f.next();!k.done;k=f.next()){k=k.value;var m=d.info.id,n=8*d.info.Ob,p=k.Ma,q=k.startSecs;var t=l.K.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
n.toString()),t[b]=t[b].replace("$Time$",q.toString());e.push(new gy(k.Ma,k.startSecs,k.durationSecs,k.j,t.join("$"),null,k.u))}else{l=ec(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 w=l[m];b=w.getAttribute("media");if(!e&&(w=w.getAttribute("mediaRange"))){var x=w.split("-");x[1]&&0<=Number(x[1])?t=pz(w):b=b+"?range="+w}p.call(n,new gy(q.Ma,q.startSecs,q.durationSecs,q.j,b,t,q.u))}e=k}d.update(e,this.isLive,this.Ha)}wsa(this.timeline);
return!0}this.duration=osa(Gz(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=kta(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.wj(this.sourceUrl,{start_seq:ota(this).toString()});mta(this,a).Fh(function(){})}};
g.h.resume=function(){lta(this)};
g.h.yd=function(){if(this.isManifestless&&this.S&&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.Em()&&(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.yd());if(a&&(a-=this.J,0<a))return this.yd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.h.getStreamTimeOffset=function(){return this.K};
g.h.getIngestionTime=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.getSegmentNumberForTime(a),e=c.getIngestionTime(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var QA=null,tta=!!navigator.mediaCapabilities,jta={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.Nb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
WA.prototype.yf=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 d0={},uB=(d0.playready=["com.youtube.playready","com.microsoft.playready"],d0.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],d0),e0={},sIa=(e0.widevine="DRM_SYSTEM_WIDEVINE",e0.fairplay="DRM_SYSTEM_FAIRPLAY",e0.playready="DRM_SYSTEM_PLAYREADY",e0),f0={},WSa=(f0.widevine=1,f0.fairplay=2,f0.playready=3,f0);g.v(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.Sd)for(var k=g.r(Object.keys(f.Sd)),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.Sd[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=Gta(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.Na=function(){};
vB.prototype.N=function(a){return this.experiments.kb(a)};var bMa={"":"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 XSa={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},g0;a:{var h0=g.tb();h0=h0.toLowerCase();if(g.ob(h0,"android")){var YSa=h0.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(YSa){var ZSa=parseFloat(YSa[1]);if(100>ZSa){g0=ZSa;break a}}var $Sa=h0.match("("+g.Nf(XSa).join("|")+")");g0=$Sa?XSa[$Sa[0]]:0}else g0=void 0}var uC=g0,tC=0<=uC;var wua={RED:"red",Fga:"white"};var uua={v0:"adunit",z5:"detailpage",P5:"editpage",S5:"embedded",X5:"embedded_unbranded",F8:"leanback",pca:"previewpage",sca:"profilepage",jfa:"unplugged",gca:"playlistoverview",dea:"sponsorshipsoffer",Nda:"shortspage"};Nta.prototype.kb=function(a){return"true"===this.flags[a]};xB.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;fs?a=a||aTa[b]:2.2===uC?a=a||bTa[b]:Zr()&&(a=a||cTa[b]);return!!a};
xB.prototype.isTypeSupported=function(a){this.Na();return this.K?window.cast.receiver.platform.canDisplayType(a):lA(a)};
xB.prototype.Na=function(){};
var bTa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},cTa={"application/x-mpegURL":"maybe"},aTa={"application/x-mpegURL":"maybe"};var Tta=Promise.resolve(),Wta=window.queueMicrotask?window.queueMicrotask.bind(window):Uta;AB.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});Xta(this)};
AB.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Gr(a.url,a.options)}};g.v(BB,g.iv);BB.prototype.add=function(a,b){!this.items[a]&&(b.nw||b.Sz||b.Ry)&&(this.items[a]=cg(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.Sf(this.items)};var CC={Z8:1,a9:2,b9:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Yta=!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;)$ta(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($ta(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var aua=!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 JB;g.LB.prototype.encrypt=function(a,b){var c=this,d,e;return g.B(function(f){if(1==f.j){d=KB();if(!d)return f.return(c.j(a,b));g.va(f,3);return g.A(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.xa(f);g.Sv(e);aua=!0;return f.return(c.j(a,b))})};
g.LB.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.Ya(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.LB.prototype.j=function(a,b){this.B||(this.B=new IB(this.C));Zta(this.B,b);return this.B.encrypt(a)};
g.LB.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.MB.prototype.encrypt=function(a,b){this.j||(this.j=new IB(this.u));Zta(this.j,b);return this.j.encrypt(a)};
g.MB.prototype.decrypt=function(a,b){return this.encrypt(a,b)};NB.prototype.reset=function(){cua(this);this.update(this.B)};
NB.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,bua(this,this.J,0));for(;b+64<=c;b+=64)bua(this,a,b);b<c&&(a=a.subarray(b),this.J.set(a,this.u),this.u+=a.length)};
var OB=[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];QB.prototype.Dl=function(a,b){var c=this;b=void 0===b?1:b;this.j+=b;this.B+=a;var d=a/b;PB.forEach(function(e,f){d<e||(c.u[f]+=b)})};
QB.prototype.toString=function(){return""};
var PB=[20,100,500,2E3];g.h=gua.prototype;g.h.isActive=function(){return!0};
g.h.RA=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.PC=a.prototype[e],d.SC=b[e],a.prototype[e]=function(f){return function(){var k=g.Ca.apply(0,arguments),l=(0,g.R)();k=f.PC.apply(this,k);RB(c,f.SC,(0,g.R)()-l);return k}}(d)),d={PC:d.PC,
SC:d.SC}}};
g.h.tp=function(a){return new fua(a)};
g.h.Xn=function(a,b){b=void 0===b?1:b;a instanceof fua&&(RB(this,a.name,(0,g.R)()-a.startTimeMs,b),a.j=!0)};
g.h.zH=function(a,b){var c=void 0===c?1:c;var d=(0,g.R)();b();RB(this,a,(0,g.R)()-d,c)};
g.h.iM=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<PB.length;++e)if(0<c.u[e])d+="."+PB[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new eua;return a};
g.h.toString=function(){return""};g.h=SB.prototype;g.h.isActive=function(){return!1};
g.h.RA=function(){};
g.h.tp=function(){};
g.h.Xn=function(){};
g.h.zH=function(a,b){b()};
g.h.iM=function(){return{}};
g.h.toString=function(){return""};var i0,pU,j0,dR,rMa;i0=new SB;pU=cr("html5_enable_profiler")||cr("html5_onesie_enable_profiler")||cr("html5_offline_encryption_enable_profiler")||0<cr("html5_performance_impact_profiling_timer_ms")?new gua:new SB;g.BP=cr("html5_enable_profiler")?pU:i0;j0=cr("html5_onesie_enable_profiler")?pU:i0;dR=cr("html5_offline_encryption_enable_profiler")?pU:i0;rMa=cr("html5_performance_impact_profiling_timer_ms")?pU:i0;g.v(TB,g.LB);TB.prototype.j=function(a,b){var c=j0.tp("oap");b=g.LB.prototype.j.call(this,a,b);j0.Xn(c,Math.ceil(a.length/16));return b};
TB.prototype.u=function(a,b,c){var d=this,e,f;return g.B(function(k){if(1==k.j)return e=j0.tp("oan2"),g.A(k,g.LB.prototype.u.call(d,a,b,c),2);f=k.u;j0.Xn(e,Math.ceil(a.byteLength/16));return k.return(f)})};
g.v(UB,g.MB);UB.prototype.encrypt=function(a,b){var c=j0.tp("oap");b=g.MB.prototype.encrypt.call(this,a,b);j0.Xn(c,Math.ceil(a.byteLength/16));return b};WB.prototype.Yg=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
WB.prototype.Fg=function(){return this.j/(1-Math.pow(this.alpha,this.u))};XB.prototype.Yg=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0};
XB.prototype.Fg=function(){return this.D?(YB(this,this.B-this.D)+YB(this,this.B)+YB(this,this.B+this.D))/3:YB(this,this.B)};g.v(pua,g.G);var rua=/^([0-9\.]+):([0-9\.]+)$/;var vua="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Bua={w1:"cbrand",z1:"cbr",A1:"cbrver",A7:"c",D7:"cver",C7:"ctheme",B7:"cplayer",faa:"cmodel",Taa:"cnetwork",rba:"cos",tba:"cosver",Yba:"cplatform"};g.v(JC,g.G);g.h=JC.prototype;g.h.N=function(a){return this.experiments.kb(a)};
g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.MC(this);d&&"www.youtube.com"===c?d="https://web.archive.org/web/20220406233357/https://youtu.be/"+a:g.yC(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,fs&&(a=zja())&&(b.ebc=a));return g.wj(d,b)};
g.h.getVideoEmbedCode=function(a,b,c){a="https://"+g.MC(this)+"/embed/"+a;c&&(a=g.wj(a,{list:c}));c=b.width;b=b.height;a=g.Ih(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<=tma()||g.Ex&&g.wc(68)?!0:!1};
g.h.getPlayerType=function(){return this.deviceParams.cplayer};
var Fua=["www.youtube-nocookie.com","youtube.googleapis.com"];g.h=hD.prototype;g.h.yf=function(){return this.j};
g.h.Dv=function(){return null};
g.h.NJ=function(){var a=this.Dv();return a?(a=g.or(a.j),Number(a.expire)):NaN};
g.h.OH=function(){};
g.h.Yb=function(){return this.j.Yb()};
g.h.getHeight=function(){return this.j.video.height};Gua.prototype.ye=function(){Jua(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Fc){if(e.Fc.getIsDefault()){c=e.Fc.getId();break a}c||(c=e.Fc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Fc||e.Fc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.r(e),f=e.next();!f.done;f=
e.next()){var k=a,l=k.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Fc){p=f.Fc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=jD(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Iua(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=dTa,d=(k=d.Fc)?'#EXT-X-MEDIA:URI="'+jD(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?dTa: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="')+(Iua(k,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(k+=",FRAME-RATE="+
e.fps),e.Wu&&(k+=",VIDEO-RANGE="+e.Wu),a.push(k),a.push(jD(this,e.url,"")));return a.join("\n")};
var dTa="text";g.v(kD,hD);kD.prototype.NJ=function(){return this.expiration};
kD.prototype.Dv=function(){if(!this.u||this.u.isDisposed()){var a=this.B.ye();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new AA(a)}return this.u};g.v(lD,hD);lD.prototype.Dv=function(){return new AA($x(this.u))};
lD.prototype.OH=function(){this.u=ey(this.u)};g.v(mD,hD);mD.prototype.Dv=function(){return new AA(this.u)};nD.prototype.toString=function(){return this.type+this.id};var Uua={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Vua={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.rD.prototype.Re=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 NC(this.u,this.j,a)};
g.rD.prototype.jl=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.sD.prototype.Re=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:NC(this.j,this.videoId,a)};
g.sD.prototype.jl=function(){return this.watchUrl||this.j.getVideoUrl(this.videoId)};var Xua=["APP_STATE","PI"];var k0={},ava=g.Ht("yt-player-local-media",{Tq:(k0.index={Gn:2},k0.media={Gn:2},k0.captions={Gn:5},k0),Cy:!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});tD.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
tD.prototype.get=function(a){return this.j.get(a)};
tD.prototype.remove=function(a){this.j.remove(a)};var uD=void 0;Yua("LMS",function(){return g.B(function(a){return a.return(g.vD())})});var zD;zD=0;g.jva=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Yua("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.yD(a),3)}b=c.u;return c.return(g.bt(b,["index","media","captions"],{mode:"readonly",Hc:!0},function(d){var e={};d=[g.ft(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
pna(d.objectStore("media")),pna(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:kva(f||[]),captions:k}})}))})});g.h=g.BD.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.CD(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 mva={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},nva={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},ova=/^(\d*)_((\d*)_?(\d*))$/;var l0={},Rva=(l0.ALWAYS=1,l0.BY_REQUEST=3,l0.UNKNOWN=void 0,l0),m0={},Cva=(m0.COLOR_PRIMARIES_BT709="bt709",m0.COLOR_PRIMARIES_BT2020="bt2020",m0.COLOR_PRIMARIES_UNKNOWN=null,m0.COLOR_PRIMARIES_UNSPECIFIED=null,m0),n0={},qva=(n0.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",n0.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",n0.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",n0.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",n0.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,n0.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,n0),o0={},HD=(o0.FAIRPLAY="fairplay",o0.PLAYREADY="playready",o0.WIDEVINE="widevine",o0.CLEARKEY=null,o0.FLASHACCESS=null,o0.UNKNOWN=null,o0.WIDEVINE_CLASSIC=null,o0),p0={},Sva=(p0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",p0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",p0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",p0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",p0),q0={},zva=(q0.UNKNOWN=0,q0.RECTANGULAR=1,q0.EQUIRECTANGULAR=2,q0.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,q0.MESH=4,q0),r0={},Bva=(r0.SPATIAL_AUDIO_TYPE_NONE=0,r0.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,r0.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,r0.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,r0),s0={},Ava=(s0.STEREO_LAYOUT_UNKNOWN=0,s0.STEREO_LAYOUT_LEFT_RIGHT=1,s0.STEREO_LAYOUT_TOP_BOTTOM=2,s0),t0={},yva=(t0.FORMAT_STREAM_TYPE_UNKNOWN=0,t0.FORMAT_STREAM_TYPE_OTF=3,t0);g.v(ID,g.iv);ID.prototype.qa=function(){this.j&&(this.j=this.j.onload=null);g.iv.prototype.qa.call(this)};g.h=g.ND.prototype;g.h.getHeight=function(){return this.height};
g.h.vM=ca(2);g.h.sD=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.rz=function(a){var b=this.sD()-1;return g.xh(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.h.Np=function(){return this.frameCount-1};
g.h.tD=function(){return this.frameCount?0:-1};
g.h.OJ=function(){};g.v(OD,ID);OD.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};
OD.prototype.J=function(a,b,c,d){return new g.ND(a,b,c,d)};g.v(PD,g.ND);g.h=PD.prototype;g.h.sD=function(){return this.u.getNumberOfSegments()};
g.h.rz=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.Np=function(){return this.u.getLastSegmentNumber()};
g.h.tD=function(){return this.u.getFirstSegmentNumber()};
g.h.OJ=function(a){this.u=a};g.v(QD,OD);QD.prototype.u=function(a,b){return OD.prototype.u.call(this,"$N|"+a,b)};
QD.prototype.J=function(a,b,c){return new PD(a,b,c,this.isLive)};g.v(g.SD,g.iv);g.h=g.SD.prototype;g.h.V=function(){return this.B};
g.h.N=function(a){return this.B.N(a)};
g.h.qf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Sb)||!a.fb)};
g.h.vO=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.vO,this),this.BL(-1))};
g.h.BL=function(a){if(!this.isLivePlayback||!this.X||"fairplay"!=this.X.flavor){var b=gta(this.j,this.XI);if(0<b.length){if(eE(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.XI+=b.length;c=eE(this,"html5_log_all_cuepoints")||2<=this.B.X;if(ZD(this)&&c)for(b=g.r(b),d=b.next();!d.done;d=b.next())c=d.value,this.ya("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,
id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.Rv.start=this.Lv,this.Rv.end=c+3)}}};
g.h.Oh=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.Zf&&(a.infringe=1);this.nf&&(a.splay=1);var b=lE(this);b&&(a.live=b);this.Al&&(a.autoplay=1);this.jM&&(a.sdetail=this.jM);this.Da&&(a.partnerid=this.Da);this.osid&&(a.osid=this.osid);return a};
g.h.kh=function(){if(this.cotn)return null;var a=g.SC(this.B)||this.N("web_l3_storyboard");if(!this.Qf)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Qf=new OD(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=Lf(this.j.j).index)&&(this.Qf=new QD(b.spec,this.j.isLive,c,a))}else this.Fp?this.Qf=new OD(this.Fp,this.lengthSeconds,void 0,!1,a):this.Jr&&this.j&&
(b=Lf(this.j.j).index)&&(this.Qf=new QD(this.Jr,this.j.isLive,b,a));return this.Qf};
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.Fp||this.Jr};
g.h.yd=function(){return this.j&&!isNaN(this.j.yd())?this.j.yd():ZD(this)?0:this.lengthSeconds};
g.h.getMinSeekableTime=function(){return this.j&&!isNaN(this.j.getMinSeekableTime())?this.j.getMinSeekableTime():0};
g.h.getPlaylistSequenceForTime=function(a){if(this.j&&this.u){var b=this.j.j[this.u.id];if(!b)return null;var c=b.index.getSegmentNumberForTime(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.h.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.bj)};
g.h.isLoaded=function(){return TD(this)&&!this.Vc&&!this.zk};
g.h.Re=function(a){if(30==this.Da)return(a=this.Z["default.jpg"])?a:this.videoId?g.wj("//web.archive.org/web/20220406233357/https://docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.authKey}):"//web.archive.org/web/20220406233357/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:NC(this.B,this.videoId,a)};
g.h.Cf=function(){return this.isLivePlayback||this.gf||this.ih||!(!this.liveUtcStartSeconds||!this.nh)};
g.h.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.gf&&!this.isLivePlayback&&this.j.u)};
g.h.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.gr||[]:[]};
g.h.getAudioTrack=function(){var a=this;if(this.J&&!fA(this.J))return g.Qb(this.getAvailableAudioTracks(),function(d){return d.id==a.J.id})||this.xj;
if(this.gr){if(!this.Gk)for(var b=g.r(this.gr),c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc.getIsDefault()){this.Gk=c;break}return this.Gk||this.xj}return this.xj};
g.h.getPlayerResponse=function(){return this.playerResponse};
g.h.jl=function(){return this.watchUrl?this.watchUrl:this.B.getVideoUrl(this.videoId)};
g.h.YF=function(){return!!this.j&&(Zsa(this.j)||$sa(this.j)||ata(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.ZH=function(){return this.mj||this.Dc};
g.h.Dy=function(){return this.xe||this.Dc};
g.h.fE=function(){return eE(this,"html5_samsung_vp9_live")};
g.h.useInnertubeDrmService=function(){return!0};
g.h.ya=function(a,b,c){this.ea("ctmp",a,b,c)};
g.h.BH=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.xk;this.Yl=null;delete this.X_;delete this.accountLinkingConfig;delete this.j;this.C=this.playerResponse=this.watchNextResponse=null;this.cj=this.adaptiveFormats="";delete this.botguardData;this.Nr={};this.suggestions=null};GE.prototype.lx=function(){return!1};
GE.prototype.xa=function(){return function(){return null}};var OE=null;g.v(NE,g.iv);NE.prototype.Pw=function(a){return this.j.hasOwnProperty(a)?this.j[a].Pw():{}};
g.Ja("ytads.bulleit.getVideoMetadata",function(a){return PE().Pw(a)});
g.Ja("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=PE();c=ywa(c);null!==c&&d.ea(c,{queryId:a,viewabilityString:b})});g.v(TE,GE);g.h=TE.prototype;g.h.Kt=function(){return!0};
g.h.Op=function(){return!1};
g.h.isSkippable=function(){return null!=this.ra};
g.h.Ig=function(){return this.K};
g.h.getVideoUrl=function(){return null};
g.h.lx=function(){return!0};g.v($E,GE);$E.prototype.Kt=function(){return!0};
$E.prototype.Op=function(){return!1};
$E.prototype.lx=function(){return!0};
$E.prototype.xa=function(){return function(){return g.$h("video-ads")}};Ewa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var dPa={b0:"FINAL",q0:"AD_BREAK_LENGTH",r0:"AD_CPN",s0:"AH",t0:"AD_MT",u0:"ASR",w0:"AW",S1:"NM",T1:"NX",U1:"NY",e2:"CONN",t2:"CPN",M5:"DV_VIEWABILITY",d6:"ERRORCODE",h6:"ERROR_MSG",j6:"EI",Q6:"GOOGLE_VIEWABILITY",h7:"IAS_VIEWABILITY",D8:"LACT",S8:"LIVE_TARGETING_CONTEXT",c9:"I_X",d9:"I_Y",J$:"MT",N$:"MIDROLL_POS",O$:"MIDROLL_POS_MS",Q$:"MOAT_INIT",R$:"MOAT_VIEWABILITY",bca:"P_H",cca:"PV_H",dca:"PV_W",eca:"P_W",jca:"TRIGGER_TYPE",Zca:"SDKV",Yda:"SLOT_POS",qea:"SURVEY_LOCAL_TIME_EPOCH_S",pea:"SURVEY_ELAPSED_MS",
BT:"VIS",Kfa:"VIEWABILITY",Lfa:"VED",Rfa:"VOL",Vfa:"WT",Uga:"YT_ERROR_CODE"};var Mwa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];fF.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.pp(a.baseUrl,Iwa(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.O("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.O("VISITOR_DATA"));break;case "EOM_VISITOR_ID":this.N("enable_web_eom_visitor_data")&&g.O("EOM_VISITOR_DATA")&&(b["X-Goog-EOM-Visitor-Id"]=g.O("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.v(gF,fF);gF.prototype.j=function(){return this.im?g.AE(this.im):""};
gF.prototype.u=function(){return this.im?this.im.V().pageId:""};
gF.prototype.N=function(a){return this.im?this.im.N(a):!1};hF.prototype.send=function(a,b,c){try{var d=a.match(cj);if("https"===d[1])var e=a;else d[1]="https",e=aj("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=cia(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.Vp.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(k){}};g.v(Owa,g.G);g.v(yF,g.iv);g.h=yF.prototype;g.h.Pw=function(){return{}};
g.h.FP=function(){};
g.h.le=function(a){this.Tk();this.ea(a)};
g.h.Tk=function(){Uwa(this,this.ra,3);this.ra=[]};
g.h.getDuration=function(){return this.I.getDuration(2,!1)};
g.h.Do=function(){var a=this.j;iF(a)||!rF(a,"impression")&&!rF(a,"start")||rF(a,"abandon")||rF(a,"complete")||rF(a,"skip")||uF(a,"pause");this.C||(a=this.j,iF(a)||!rF(a,"unmuted_impression")&&!rF(a,"unmuted_start")||rF(a,"unmuted_abandon")||rF(a,"unmuted_complete")||uF(a,"unmuted_pause"))};
g.h.Eo=function(){this.va||this.S||this.Rf()};
g.h.Ih=function(){mF(this.j,this.getDuration());if(!this.C){var a=this.j;this.getDuration();iF(a)||(Rwa(a,0,!0),Swa(a,0,0,!0),lF(a,"unmuted_complete"))}};
g.h.Jg=function(){var a=this.j;!rF(a,"impression")||rF(a,"skip")||rF(a,"complete")||qF(a,"abandon");this.C||(a=this.j,rF(a,"unmuted_impression")&&!rF(a,"unmuted_complete")&&qF(a,"unmuted_abandon"))};
g.h.xq=function(){var a=this.j;jF(a)?lF(a,"skip"):!rF(a,"impression")||rF(a,"abandon")||rF(a,"complete")||lF(a,"skip")};
g.h.Rf=function(){if(!this.S){var a=this.Jw();this.j.macros.AD_CPN=a;a=this.j;if(jF(a)){var b=a.j.getCurrentTime(2,!1);pF(a,"impression",b,0)}else lF(a,"impression");lF(a,"start");iF(a)||a.j.isFullscreen()&&qF(a,"fullscreen");this.S=!0;this.C=this.I.isMuted()||0==this.I.getVolume();this.C||(a=this.j,lF(a,"unmuted_impression"),lF(a,"unmuted_start"),iF(a)||a.j.isFullscreen()&&qF(a,"unmuted_fullscreen"))}};
g.h.lh=function(a){a=a||"";var b="",c="",d="";HE(this.I)&&(b=this.I.yb(2).state,this.I.zd()&&(c=this.I.zd().Jh(),null!=this.I.zd().Bj()&&(d=this.I.zd().Bj())));var e=this.j;e.macros=eF(e.macros,Lwa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));lF(e,"error");this.C||(e=this.j,e.macros=eF(e.macros,Lwa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),lF(e,"unmuted_error"))};
g.h.Af=function(){};
g.h.kP=function(){this.ea("adactiveviewmeasurable")};
g.h.lP=function(){this.ea("adfullyviewableaudiblehalfdurationimpression")};
g.h.mP=function(){this.ea("adoverlaymeasurableimpression")};
g.h.nP=function(){this.ea("adoverlayunviewableimpression")};
g.h.oP=function(){this.ea("adoverlayviewableendofsessionimpression")};
g.h.pP=function(){this.ea("adoverlayviewableimmediateimpression")};
g.h.qP=function(){this.ea("adviewableimpression")};
g.h.dispose=function(){this.isDisposed()||(this.Tk(),this.u.unsubscribe("adactiveviewmeasurable",this.kP,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.lP,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.mP,this),this.u.unsubscribe("adoverlayunviewableimpression",this.nP,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.oP,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.pP,this),this.u.unsubscribe("adviewableimpression",
this.qP,this),delete this.u.j[this.ad.J],g.iv.prototype.dispose.call(this))};
g.h.Jw=function(){var a=this.I.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.h.aM=function(){return""};g.v(BF,GE);BF.prototype.Kt=function(){return!0};
BF.prototype.Op=function(){return!1};g.v(CF,LE);g.v(DF,yF);g.h=DF.prototype;g.h.Cs=function(){0<this.B&&this.Rf()};
g.h.Rf=function(){var a=this;this.Rb=new g.L(function(){a.Ih();for(var b=g.r(a.D.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.J.executeCommand(c.value,a.macros);a.le("adended")},this.B,this);
g.H(this,this.Rb);this.Rb.start();zF(this,[new CF(this.D.j,this.macros)]);yF.prototype.Rf.call(this)};
g.h.Jg=function(){yF.prototype.Jg.call(this);this.le("adabandoned")};
g.h.Ih=function(){yF.prototype.Ih.call(this)};
g.h.le=function(a){this.Rb&&this.Rb.stop();yF.prototype.le.call(this,a)};g.v(EF,GE);EF.prototype.Kt=function(){return!0};
EF.prototype.Op=function(){return!1};g.v(FF,GE);FF.prototype.Kt=function(){return!0};
FF.prototype.Op=function(){return!1};g.v(GF,GE);GF.prototype.Kt=function(){return!0};
GF.prototype.Op=function(){return!1};Vwa.prototype.create=function(a,b){return a instanceof TE?this.J.create(a,b):a instanceof $E?this.C.create(a,b):a instanceof BF?this.j.create(a,b):a instanceof GF?this.D.create(a,b):a instanceof FF?this.B.create(a,b):a instanceof EF?this.u.create(a,b):null};g.v(HF,yF);g.h=HF.prototype;g.h.Jg=function(){yF.prototype.Jg.call(this);this.le("adabandoned")};
g.h.Do=function(){yF.prototype.Do.call(this);this.ea("adpause",2)};
g.h.Eo=function(){yF.prototype.Eo.call(this);this.ea("adplay",1)};
g.h.Rf=function(){yF.prototype.Rf.call(this);this.B.stop();this.D.T(this.I,g.Kw("bltplayback"),this.TR);var a=new g.Iw(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Rd([a],2);this.ea("adplay",1)};
g.h.Ih=function(){yF.prototype.Ih.call(this);this.le("adended")};
g.h.lh=function(a){yF.prototype.lh.call(this,a);this.le("aderror")};
g.h.Cs=function(){JE(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.La("onAdIntroStateChange",1)};
g.h.le=function(a){this.B.stop();JE(this.I,!0);"adabandoned"!=a&&this.I.La("onAdComplete");this.I.La("onAdEnd");this.ea(a);this.I.La("onAdIntroStateChange",0)};
g.h.TR=function(a){"bltcompletion"==a.getId()&&(this.I.jf("bltplayback",2),mF(this.j,this.getDuration()))};var kNa=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.v(Wwa,LE);g.v(KF,yF);g.h=KF.prototype;g.h.Cs=function(){if(this.K){var a=this.B.j;if(!JF(a)){g.Sv(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;xxa(d.j(),c);yxa(d.j(),c);d=d.j();d=g.r(d.Wd);for(var e=d.next();!e.done;e=d.next())e.value.Xi(c)}}0>=this.X&&(g.S(Error("durationMs was specified incorrectly with a value of: "+this.X)),this.Ih());this.Rf();this.I.addEventListener("progresssync",this.ma)};
g.h.Jg=function(){yF.prototype.Jg.call(this);this.le("adabandonedreset",!0)};
g.h.Rf=function(){var a=this.I.V();Bx("apbs",void 0,"video_to_ad");g.ox("ad_at","0_0","video_to_ad");yF.prototype.Rf.call(this);this.D=a.N("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.J=this.D+this.X/1E3;g.HC(a)?this.I.La("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):zF(this,[new Wwa(this.B.j)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Lv(),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(!JF(b)){g.Sv(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;zxa(d.j(),e);WV(d.j(),e,f)}}g.V(this.I.yb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Lv(),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.Ih())};
g.h.Ih=function(){yF.prototype.Ih.call(this);this.le("adended",!0)};
g.h.lh=function(a){g.Sv(Error("Player error during adNotify."));yF.prototype.lh.call(this,a);this.le("aderror",!0)};
g.h.le=function(a,b){(void 0===b?0:b)||g.Sv(Error("TerminateAd directly called from other class during adNotify."));this.I.removeEventListener("progresssync",this.ma);this.Tk();Zwa(this,a);"adended"===a||"aderror"===a?this.ea("adnotifyexitednormalorerror"):this.ea(a)};
g.h.dispose=function(){this.I.removeEventListener("progresssync",this.ma);Zwa(this);yF.prototype.dispose.call(this)};
g.h.Tk=function(){g.HC(this.I.V())?this.I.La("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):yF.prototype.Tk.call(this)};OF.prototype.sendAdsPing=function(a){this.C.send(a,ixa(this),{})};
OF.prototype.Ld=function(a){var b=this;if(a){var c=ixa(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};PF.prototype.get=function(){return this.value};
g.v(QF,PF);QF.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.v(RF,PF);RF.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.v(SF,PF);SF.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.v(TF,PF);TF.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.v(UF,PF);UF.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.v(VF,PF);VF.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.v(WF,PF);WF.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.v(XF,PF);XF.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.v(YF,PF);YF.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.v(ZF,PF);ZF.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.v($F,PF);$F.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.v(aG,PF);aG.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.v(bG,PF);bG.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.v(cG,PF);cG.prototype.getType=function(){return"metadata_type_content_cpn"};
g.v(dG,PF);dG.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.v(eG,PF);eG.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.v(fG,PF);fG.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.v(gG,PF);gG.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.v(hG,PF);hG.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.v(iG,PF);iG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.v(jG,PF);jG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.v(kG,PF);kG.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.v(lG,PF);lG.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.v(mG,PF);mG.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.v(nG,PF);nG.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.v(oG,PF);oG.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.v(pG,PF);pG.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.v(qG,PF);qG.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.v(rG,PF);rG.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.v(sG,PF);sG.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.v(tG,PF);tG.prototype.getType=function(){return"metadata_type_cue_point"};
g.v(uG,PF);uG.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.v(vG,PF);vG.prototype.getType=function(){return"metadata_type_player_vars"};
g.v(wG,PF);wG.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.v(xG,PF);xG.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.v(yG,PF);yG.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.v(zG,PF);zG.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.v(AG,PF);AG.prototype.getType=function(){return"metadata_type_dai"};
g.v(BG,PF);BG.prototype.getType=function(){return"metadata_type_ad_intro"};
g.v(CG,PF);CG.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.v(DG,PF);DG.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.v(EG,PF);EG.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.v(FG,PF);FG.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.v(GG,PF);GG.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.v(HG,PF);HG.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.v(IG,PF);IG.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.v(JG,PF);JG.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.v(KG,PF);KG.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.v(LG,PF);LG.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.v(MG,PF);MG.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
g.v(NG,PF);NG.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.v(OG,PF);OG.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.v(PG,PF);PG.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};pxa.prototype.Ld=function(a){this.j.Ld(a)};g.v(QG,g.iv);QG.prototype.getProgressState=function(){return this.B};
QG.prototype.start=function(){this.C=Date.now();rxa(this,{current:this.j/1E3,duration:this.u/1E3});this.Rb.start()};
QG.prototype.stop=function(){this.Rb.stop()};g.v(RG,LE);g.v(SG,g.iv);SG.prototype.start=function(){this.u||(this.u=!0,this.timer.start(),this.B=Date.now())};
SG.prototype.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
SG.prototype.Qb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.j+=b;this.j>=this.durationMs?(this.j=this.durationMs,this.timer.stop(),this.C(this.j),this.D()):this.C(this.j)};g.v(VG,yF);g.h=VG.prototype;g.h.Cs=function(){this.Rf()};
g.h.Rf=function(){var a=this,b=this.D.j;if(g.HC(this.I.V()))txa(this,b),this.Z=Date.now(),this.B&&this.B.start();else if(zF(this,[new RG(b)]),this.D.j.controlWithFixEnabled){var c=1E3*this.D.u;this.K=new SG(c,function(d){var e={current:d/1E3,duration:c/1E3};AF(a,d/1E3);a.I.La("onAdPlaybackProgress",e)},function(){var d={current:c/1E3,
duration:c/1E3};sxa(a);a.I.La("onAdPlaybackProgress",d)});
g.H(this,this.K);this.K.start()}TG();yF.prototype.Rf.call(this)};
g.h.getDuration=function(){return this.D.u};
g.h.Do=function(){yF.prototype.Do.call(this);this.B&&this.B.stop()};
g.h.Eo=function(){yF.prototype.Eo.call(this);this.B&&this.B.start()};
g.h.Jg=function(){yF.prototype.Jg.call(this);this.le("adabandoned")};
g.h.xq=function(){yF.prototype.xq.call(this);this.le("adended")};
g.h.lh=function(a){this.I.V().experiments.kb("html5_block_player_errors_while_survey_active")?T("Unexpected Player Error while the Survey is playing."):(yF.prototype.lh.call(this,a),this.le("aderror"))};
g.h.le=function(a){this.Tk();this.ea(a)};
g.h.Af=function(a){switch(a){case "skip-button":this.xq();break;case "survey-submit":this.le("adended")}};
g.h.Tk=function(){g.HC(this.I.V())?(this.B&&this.B.stop(),this.I.La("onAdInfoChange",null)):yF.prototype.Tk.call(this)};g.v(WG,LE);g.v(XG,yF);XG.prototype.Cs=function(){this.Rf()};
XG.prototype.Rf=function(){TG();zF(this,[new WG(this.B.j,this.macros)]);yF.prototype.Rf.call(this)};
XG.prototype.Jg=function(){yF.prototype.Jg.call(this);this.le("adabandoned")};
XG.prototype.lh=function(a){yF.prototype.lh.call(this,a);this.le("aderror")};g.v(YG,yF);g.h=YG.prototype;g.h.Pw=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:wwa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}};
g.h.Cs=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Ig();a&&b&&this.I.V().Z.add(b,{nw:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{rea(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Kg("//web.archive.org/web/20220406233357/https://tpc.googlesyndication.com/sodar/%{path}");g.Sv(new g.Is("Load Sodar Error.",d instanceof Ig,d.constructor===Ig,{Message:e.message,"Escaped injector basename":g.Ih(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Ig)throw e;}}catch(e){g.S(e)}JE(this.I,!1);a=
Cwa(this.B);b=this.I.V();a.iv_load_policy=b.isMobile||g.HC(b)||g.SC(b)?3:1;b=this.I.getVideoData(1);b.vg&&(a.ctrl=b.vg);b.Og&&(a.ytr=b.Og);b.hm&&(a.ytrcc=b.hm);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Ai&&(a.vss_credentials_token_type=b.Ai),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.X?this.J.start():(this.I.cueVideoByPlayerVars(a,2),this.J.start(),this.I.playVideo(2))};
g.h.Do=function(){yF.prototype.Do.call(this);this.ea("adpause",2)};
g.h.Eo=function(){yF.prototype.Eo.call(this);this.ea("adplay",1)};
g.h.Rf=function(){yF.prototype.Rf.call(this);this.J.stop();this.Z.T(this.I,g.Kw("bltplayback"),this.UR);var a=new g.Iw(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Rd([a],2);a=bH(this);this.D.xa=a;if(this.I.isMuted()){a=this.j;var b=this.I.isMuted();jF(a)||lF(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=vxa(this);for(var c=this.B,d=uxa(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.Ig(),q=l.getVideoUrl();p&&n.push(new aG(p));q&&n.push(new bG(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new dG(q)),(q=q.elementId)&&n.push(new mG(q))):T("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new eG(p));l.j.adNextParams&&n.push(new SF(l.j.adNextParams||""));(p=l.va)&&n.push(new TF(p));(p=qw(f.S.get(),2))?(n.push(new XF({channelId:p.rj,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new YF(p.isListed))):T("Expected meaningful PlaybackData on ad started.");n.push(new $F(l.B));n.push(new uG(l.u));n.push(new cG(a));n.push(new qG({current:this}));p=l.Ha;null!=p.kind&&n.push(new ZF(p));(p=l.Da)&&n.push(new HG(p));void 0!==m&&n.push(new IG(m));f.j?T(f.j.layoutId===k?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):wxa(f,k,n,!0,l.j.adLayoutLoggingData)}}this.I.La("onAdStart",
bH(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.UR=function(a){"bltcompletion"==a.getId()&&(this.I.jf("bltplayback",2),mF(this.j,this.getDuration()),aH(this,"adended"))};
g.h.Ih=function(){yF.prototype.Ih.call(this);this.le("adended");for(var a=g.r(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.h.Jg=function(){yF.prototype.Jg.call(this);this.le("adabandoned")};
g.h.dC=function(){var a=this.j;iF(a)||qF(a,"clickthrough");this.C||(a=this.j,iF(a)||qF(a,"unmuted_clickthrough"))};
g.h.Rx=function(){this.xq()};
g.h.xq=function(){yF.prototype.xq.call(this);this.le("adended")};
g.h.lh=function(a){yF.prototype.lh.call(this,a);this.le("aderror")};
g.h.le=function(a){this.J.stop();JE(this.I,!0);"adabandoned"!=a&&this.I.La("onAdComplete");aH(this,a);this.I.La("onAdEnd",bH(this));this.ea(a)};
g.h.Tk=function(){var a=this.I.V();g.HC(a)&&(g.SC(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.HC(a))?this.I.La("onAdInfoChange",null):yF.prototype.Tk.call(this)};
g.h.FP=function(){this.HV&&this.I.playVideo()};
g.h.HV=function(){return 2==this.I.getPlayerState(2)};
g.h.aM=function(a,b){if(!Number.isFinite(a))return g.S(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.S(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=Cwa(this.B);d=this.I.Ns(d,2,c,a,b);a+c>b&&this.I.Pu(d,b-a);return d};
g.h.dispose=function(){wwa(this.I)&&!this.X&&this.I.stopVideo(2);aH(this,"adabandoned");yF.prototype.dispose.call(this)};cH.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={ww:null,BN:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.BN))if(b.BN=c,b.ww){if(c<b.ww.end){a:{c=b.ww;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.ww.end=a,this.u.uO(a))}}else if(a=
Bxa(a,this.B))c=a.yV,b.ww=a.jU,this.u.aH(c)};
cH.prototype.updateTime=function(){};fH.prototype.Uf=function(a){var b=this.j;g.vi(function(){return b.Uf(a,1)})};g.h=hH.prototype;g.h.Qs=function(a,b,c,d,e){var f=this;Jxa(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.ze=!1;f.u=!1;f.C=!b&&0===c})};
g.h.gI=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});nx("video_to_ad",a)};
g.h.hI=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});nx("ad_to_ad",a)};
g.h.Hu=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});nx("ad_to_video",a);this.I.N("html5_csi_delay_pbresume")&&(this.I.Li().u=this.I.getCurrentTime(1));this.I.N("send_csi_info_for_ad_to_video_killswitch")||Ixa(this)};
g.h.QH=function(){if(this.ze&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(lx("apbs",void 0,this.actionType),g.Q("finalize_all_timelines")))){var a=this.actionType;kx(a);dx(a);jx(a)}};
g.h.reset=function(){return new hH(this.I)};var u0={},v0=(u0.BUFFERING="buffering-mode",u0.CUED="cued-mode",u0.ENDED="ended-mode",u0.PAUSED="paused-mode",u0.PLAYING="playing-mode",u0.SEEKING="seeking-mode",u0.UNSTARTED="unstarted-mode",u0);var eTa,w0,Lxa;
eTa={I0:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",j1:"AUTHENTICATION_MALFORMED",l1:"AUTHENTICATION_MISSING",t1:"BAD_REQUEST",G1:"CAST_SESSION_DEVICE_MISMATCHED",H1:"CAST_SESSION_VIDEO_MISMATCHED",I1:"CAST_TOKEN_EXPIRED",J1:"CAST_TOKEN_FAILED",K1:"CAST_TOKEN_MALFORMED",L1:"CGI_PARAMS_MALFORMED",M1:"CGI_PARAMS_MISSING",A5:"DEVICE_FALLBACK",e6:"GENERIC_WITH_LINK_AND_CPN",f6:"ERROR_HDCP",g6:"LICENSE",i6:"VIDEO_UNAVAILABLE",u6:"FORMAT_UNAVAILABLE",J6:"GEO_FAILURE",c7:"HTML5_AUDIO_RENDERER_ERROR",
d7:"GENERIC_WITHOUT_LINK",e7:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",f7:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",g7:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",H7:"INVALID_DRM_MESSAGE",vca:"PURCHASE_NOT_FOUND",wca:"PURCHASE_REFUNDED",Jca:"RENTAL_EXPIRED",Rca:"RETRYABLE_ERROR",hda:"SERVER_ERROR",eea:"STOPPED_BY_ANOTHER_PLAYBACK",iea:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",jea:"STREAMING_NOT_ALLOWED",lea:"STREAM_LICENSE_NOT_FOUND",yea:"TOO_MANY_REQUESTS",zea:"TOO_MANY_REQUESTS_WITH_LINK",
Aea:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Bea:"TOO_MANY_STREAMS_PER_USER",tfa:"UNSUPPORTED_DEVICE",Ffa:"VIDEO_FORBIDDEN",Ifa:"VIDEO_NOT_FOUND"};w0={};
g.RL=(w0.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.",w0.DEVICE_FALLBACK="Sorry, this video is not available on this device.",w0.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",w0.LICENSE="Sorry, there was an error licensing this video.",w0.VIDEO_UNAVAILABLE=
"Video unavailable",w0.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",w0.GEO_FAILURE="This video isn't available in your country.",w0.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",w0.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",w0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",w0.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",
w0.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",w0.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",w0.PURCHASE_NOT_FOUND="This video requires payment.",w0.PURCHASE_REFUNDED="This video's purchase has been refunded.",w0.RENTAL_EXPIRED="This video's rental has expired.",w0.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",w0.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
w0.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",w0.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",w0.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",w0.SERVER_ERROR="There was an internal server error. Please try again later.",w0.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",w0.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
w0.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",w0.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",w0.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",w0.TOO_MANY_REQUESTS="Please log in to watch this video.",w0.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",w0.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
w0.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",w0.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",w0.VIDEO_FORBIDDEN="Access to this video is forbidden.",w0.VIDEO_NOT_FOUND="This video can not be found.",w0);
Lxa={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.v(iH,g.G);g.h=iH.prototype;g.h.sz=function(){return this.u};
g.h.Ls=function(a){var b="";a&&(Oxa(this,a),b=a.j);if(!this.zf()||b)b&&this.zf()!==b&&(this.yz(b),delete this.B),fTa||a&&a.u||this.load(),this.K||(this.addEventListener("volumechange",this.DL),this.K=!0)};
g.h.tq=function(){if(this.B){var a=this.B;this.B=void 0;return a}a=this.Ke();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.Ls(a.zx);return a};
g.h.playVideo=function(){var a=this;this.Sf()&&this.seekTo(0);!this.zf()&&this.u&&(g.hr(Error("playVideo without src")),this.yz(this.u.j),this.u.u||this.load());var b=this.play();!b&&gTa&&cM&&7<=(EE||0)&&g.Coa(this,"playing",function(){g.Br(function(){Nxa(a,a.getCurrentTime(),0)},500)});
return b};
g.h.seekTo=function(a){0<this.Jh()&&(hTa&&cM&&4>EE&&(a=Math.max(.1,a)),this.xz(a))};
g.h.stopVideo=function(){!this.B&&this.zf()&&(iTa&&fs&&0<this.getCurrentTime()&&this.seekTo(0),this.bC(),this.load(),Oxa(this,null))};
g.h.zt=function(){var a=this.fg();return 0<vA(a)&&this.getDuration()?uA(a,this.getCurrentTime()):0};
g.h.qq=function(){var a=this.getDuration();return Infinity===a?1:a?this.zt()/a:0};
g.h.Nb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:rA(this.uq(),",",3),vbu:rA(this.fg()),vpa:""+ +this.Sl(),vsk:""+ +this.Ev(),ven:""+ +this.Sf(),vpr:""+this.getPlaybackRate(),vrs:""+this.Jh(),vns:""+this.AA(),vec:""+this.Bj(),vemsg:this.Fe(),vvol:""+this.getVolume(),vdom:""+ +this.XF(),vsrc:""+ +!!this.zf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.h.addEventListener=function(a,b){this.C.Oa(a,b,!1,this);this.QE(a)};
g.h.removeEventListener=function(a,b){this.C.vc(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.C.dispatchEvent(a)};
g.h.OE=function(){this.J=!1};
g.h.ME=function(){this.J=!0;this.Cu(!0)};
g.h.DL=function(){this.J&&!this.zA()&&this.Cu(!0)};
g.h.equals=function(a){return!!a&&a.Ke()===this.Ke()};
g.h.qa=function(){this.K&&this.removeEventListener("volumechange",this.DL);g.G.prototype.qa.call(this)};
var fTa=!1,iTa=!0,gTa=!0,hTa=!0;g.h=g.mH.prototype;g.h.getData=function(){return this.stateData};
g.h.Jc=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)};
g.h.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)};
g.h.isError=function(){return g.V(this,128)};
g.h.isSuspended=function(){return g.V(this,512)};
g.h.toString=function(){return"PSt."+this.state.toString(16)};g.v(wH,g.iv);g.h=wH.prototype;g.h.Dq=function(){var a=this.u;return a.u instanceof TE||a.u instanceof $E||a.u instanceof UE};
g.h.mD=function(){return this.u.u.Op()};
g.h.CJ=function(){return this.u.j};
g.h.nD=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.h.DJ=function(){return aF(this.u)};
g.h.FM=function(a){if(!Nw(a)){this.X&&(this.va=this.I.isAtLiveHead(),this.ra=Math.ceil(g.Ua()/1E3));var b=new fH(this.ag);a=Dxa(a);b.Uf(a)}this.EJ()};
g.h.nN=function(){return!0};
g.h.Pj=function(){return this.K instanceof $E};
g.h.qx=function(){return this.K instanceof TE};
g.h.EJ=function(){var a=this.ag;this.nN()&&(a.u&&zH(a,!1),a.u=this,this.Dq()&&qza(a));this.D.gI();this.bP()};
g.h.bP=function(){this.K?this.Fv(this.K):AH(this)};
g.h.onAdEnd=function(a,b){b=void 0===b?!1:b;this.aj(0);AH(this,b)};
g.h.hO=function(){this.onAdEnd()};
g.h.pW=function(){lF(this.j.j,"active_view_measurable")};
g.h.sW=function(){var a=this.j.j;iF(a)||tF(a)||lF(a,"active_view_fully_viewable_audible_half_duration")};
g.h.vW=function(){};
g.h.wW=function(){};
g.h.xW=function(){};
g.h.yW=function(){};
g.h.DW=function(){var a=this.j.j;iF(a)||tF(a)||lF(a,"active_view_viewable")};
g.h.qW=function(){var a=this.j.j;iF(a)||tF(a)||lF(a,"audio_audible")};
g.h.rW=function(){var a=this.j.j;iF(a)||tF(a)||lF(a,"audio_measurable")};
g.h.oM=function(){return this.qx()?[this.CA()]:[]};
g.h.Tc=function(a){if(null!==this.j){this.ma||(a=new g.vF(a.state,new g.mH),this.ma=!0);var b=a.state;if(g.xF(a,2))this.j.Ih();else{var c=a;(this.I.V().experiments.kb("html5_bulleit_handle_gained_playing_state")?c.state.Jc()&&!c.Vo.Jc():c.state.Jc())?(this.D.QH(),this.j.Eo()):b.isError()?this.j.lh(b.getData().errorCode):g.xF(a,4)&&(this.Z||this.j.Do())}if(null!==this.j){if(g.xF(a,16)&&(b=this.j.j,!(iF(b)||.5>b.j.getCurrentTime(2,!1)&&!b.j.V().N("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;
if(c.lx()){var d=b.B.I.V().N("html5_dai_enable_active_view_creating_completed_adblock");$ha(c.J,d)}b.ad.D.seek=!0}0>wF(a,4)&&!(0>wF(a,2))&&(b=this.j,c=b.j,iF(c)||uF(c,"resume"),b.C||(b=b.j,iF(b)||uF(b,"unmuted_resume")));!this.I.V().experiments.kb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.xF(a,512)&&!g.uH(a.state)&&this.D.Hu()}}};
g.h.onVideoDataChange=function(){return this.daiEnabled?Rxa(this):!1};
g.h.resume=function(){this.j&&this.j.FP()};
g.h.Tn=function(){this.j&&this.j.le("adended")};
g.h.Yk=function(){this.Tn()};
g.h.aj=function(a){this.ag.aj(a)};
g.h.VR=function(a){this.ag.j.La("onAdUxUpdate",a)};
g.h.onAdUxClicked=function(a){this.j.Af(a)};
g.h.mM=function(){return 0};
g.h.nM=function(){return 1};
g.h.CI=function(a){this.daiEnabled&&this.u.J&&this.u.j.start<=a&&a<yH(this)&&this.I.eq(a,this.u.j.end)};
g.h.Fv=function(a){g.qf(this.j);this.j=a=this.Tp.create(a,dF(Jwa(this.u)),this.u.j.j);this.lG(a);a.va?a.lh("ui_unstable"):a.Cs();Sxa(this,!1)};
g.h.lG=function(a){a.subscribe("adabandoned",g.Ta(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Ta(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.pW,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.hO,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.sW,this);a.subscribe("adoverlaymeasurableimpression",this.vW,this);a.subscribe("adoverlayunviewableimpression",this.wW,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.xW,this);a.subscribe("adoverlayviewableimmediateimpression",this.yW,this);a.subscribe("adpause",this.FF,this);a.subscribe("adplay",this.FF,this);a.subscribe("adunstarted",this.FF,this);a.subscribe("onAdUxUpdate",this.VR,this);a.subscribe("adviewableimpression",this.DW,this);a.subscribe("adaudioaudible",this.qW,this);a.subscribe("adaudiomeasurable",this.rW,this)};
g.h.FF=function(a){this.aj(a)};
g.h.CA=function(){return this.K};
g.h.isLiveStream=function(){return this.X};
g.h.reset=function(){return new wH(this.ag,this.I,this.D.reset(),this.u,this.lm,this.Ys,this.Tp,this.daiEnabled)};
g.h.qa=function(){g.qf(this.j);this.j=null;g.iv.prototype.qa.call(this)};Xxa.prototype.create=function(a){return(a.u instanceof UE?this.B:""===a.D?this.j:this.u)(a)};BH.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Lv(void 0===c?0:c))?(Tpa(this.client,c,g.Hv(a),b),b=!0):b=!1:b=!1;return b};EH.prototype.handleResponse=function(a,b){var c,d;b=(null==(c=b.ul.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
EH.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];cya(this,b)};var jTa=window.location.hostname.split(".").slice(-2).join("."),x0;FH.getInstance=function(){x0=g.Ka("yt.clientLocationService.instance");x0||(x0=new FH,g.Ja("yt.clientLocationService.instance",x0));return x0};
FH.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)};
FH.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.O("INNERTUBE_CLIENT_NAME")?(this.localStorage=dya(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Pr("YT_CL",JSON.stringify({loctok:a}),15552E3,jTa,!0))};
FH.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})})};
FH.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};HH.prototype.uA=function(a,b){a={};var c=Si([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.O("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.O("DELEGATED_SESSION_ID")));return a};var JH;g.v(IH,HH);IH.prototype.uA=function(a,b){a=HH.prototype.uA.call(this,a,b);return Object.assign({},a,this.xr)};var rya=/[&\?]action_proxy=1/,qya=/[&\?]token=([\w-]*)/,sya=/[&\?]video_id=([\w-]*)/,tya=/[&\?]index=([\d-]*)/,uya=/[&\?]m_pos_ms=([\d-]*)/,xya=/[&\?]vvt=([\w-]*)/,lya="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(" "),vya="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(" "),nya={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"},oya={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},wya={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};LH.prototype.St=function(a){this.player.Li().tick(a)};
LH.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return NH(this,a,b);var d=1===this.j;d&&this.St("a_bid_s");var e=gya();if(null!==e)return d&&this.St("a_bid_f"),NH(this,a,b,e);e=hya();d&&Di(e,function(){c.St("a_bid_f")});
return e.then(function(f){return NH(c,a,b,f)})};
LH.prototype.reset=function(){this.u=this.j=1};g.v(OH,g.iv);g.h=OH.prototype;g.h.CJ=function(){return this.j.j};
g.h.nD=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.h.DJ=function(){return aF(this.j)};
g.h.Dq=function(){return!1};
g.h.mD=function(){return!1};
g.h.onAdUxClicked=function(){};
g.h.FM=function(a){var b=this;T("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.nD()||(c=Dxa(a));this.j.B=1;Di(this.C.fetch(this.j.D,{uw:this.j.C||void 0,Ed:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=yya(b,d);var f=b.B;f.j&&d.isEmpty&&Hxa("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.pN||(b.j.B=2,(new fH(b.u)).Uf(e),d.isEmpty||eqa(b.J,d.fm))}},function(){(new fH(b.u)).Uf(c);
var d=b.B;d.j&&Hxa("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.nD()&&bI(b.u)})}};
g.h.EJ=function(){};
g.h.CI=function(){};var Bya=Object.freeze([BF,EF,$E,GF,TE]);g.v(PH,wH);g.h=PH.prototype;g.h.oM=function(){for(var a=this.B.j,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
g.h.nN=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Kt()})};
g.h.Pj=function(){return this.J instanceof $E||this.J instanceof GF};
g.h.qx=function(){return this.J instanceof TE||this.J instanceof EF};
g.h.bP=function(){this.daiEnabled?HE(this.I)&&Rxa(this):Aya(this)};
g.h.Fv=function(a){var b=zya(a);this.J&&b&&this.S!==b&&(b?qza(this.ag):sza(this.ag),this.S=b);this.J=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
wH.prototype.Fv.call(this,a)};
g.h.lG=function(a){var b=this;wH.prototype.lG.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void AH(b)})};
g.h.Yk=function(){this.C=this.B.j.length;this.j&&this.j.le("adended");AH(this)};
g.h.Tn=function(){this.onAdEnd()};
g.h.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.aj(0),a?AH(this,b):Aya(this))};
g.h.hO=function(){if(1==this.B.u)this.J instanceof FF&&g.Sv(Error("AdNotify error with FailureMode.TERMINATING")),AH(this);else this.onAdEnd()};
g.h.CA=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.h.Dq=function(){return this.S};
g.h.mD=function(){return this.B.j.every(function(a){return a.Op()})};
g.h.reset=function(){return new PH(this.ag,this.I,this.D.reset(),this.u,this.lm,this.Ys,this.Tp,this.daiEnabled)};
g.h.mM=function(){return this.C};
g.h.nM=function(){return this.B.j.length};Cya.prototype.kM=function(){return this.j};g.v(Dya,UE);g.v(Fya,UE);Gya.prototype.create=function(a,b){function c(l){return new TE(l,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.instreamSurveyAdRenderer,k=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new $E(f):null!=k?new Fya(k,c,this.j):null!=a?new Dya(a,c):null};Hya.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 kqa(k.B,k.u,k.daiEnabled,k.C),m=k.Kd;m&&(l.Kd=new Aw(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.Kd=f;e.push(Iya(this,a[0],c,k));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(Iya(this,d.value,c,b)),c++;return e};g.v(QH,g.G);QH.prototype.addEventListener=function(a,b){this.j=b};
QH.prototype.removeEventListener=function(){this.j=null};
g.v(RH,g.G);RH.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
RH.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.v(Lya,g.G);var SH=null,TH=null,UH=null,VH=null;g.Ja("yt.www.ads.eventcache.getLastCompanionData",function(){return SH});
g.Ja("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Ja("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return TH});
g.Ja("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return UH});
g.Ja("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return VH});var Wya={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.v(YH,g.G);YH.prototype.qa=function(){this.ke.clear();g.G.prototype.qa.call(this)};
YH.prototype.Ld=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.r(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
YH.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&Xya(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?Tya(this,e):"confirmDialogEndpoint"===d?Uya(this,e):Wya.hasOwnProperty(d)||Xya(this,d,e,b,c)}};g.v($H,hH);g.h=$H.prototype;g.h.Qs=function(){};
g.h.gI=function(){};
g.h.hI=function(){};
g.h.Hu=function(){};
g.h.QH=function(){};
g.h.reset=function(){return new $H(this.I)};g.v(bza,g.G);g.v(aI,g.iv);g.h=aI.prototype;g.h.HF=function(){return!kza(this,oza(this))};
g.h.Jw=function(){return this.xa};
g.h.qa=function(){this.ma=!0;g.hv(this.C);if(IE(this.j)){var a=eza(this.j);a.removeEventListener("updateKevlarOrC3Companion",Mya);a.removeEventListener("updateEngagementPanelAction",Nya);a.removeEventListener("changeEngagementPanelVisibility",Oya);window.removeEventListener("yt-navigate-start",Pya);VH=UH=TH=SH=null}a=g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())rza(this,b.value);zH(this,!1);this.Up.clear();this.X=[];this.K.clear();g.qf(this.Z);this.Z=new Map;g.qf(this.J);this.J=new Map;
this.B.clear();g.iv.prototype.qa.call(this)};
g.h.MG=function(a){if(a instanceof Mw&&!a.B&&(!zqa(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.V(this.j.yb(1),32))this.K.add(a);else{var b=this.B.get(a);b&&((this.j.V().experiments.kb("enable_eviction_protection_for_bulleit")?this.u?this.u.mD():1:1)?b.FM(a):a.deactivate())}};
g.h.cX=function(a){a instanceof Mw&&(a.B&&(a.B=!1),this.K.delete(a))};
g.h.aH=function(){};
g.h.uO=function(a){var b=1E3*a;this.u&&this.u.CI(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.CI(b);g.nc(this.Ha.j,1E3*a)};
g.h.zl=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.qx()?a.I.Kc().playVideo():a.Pj()&&a.j.Eo());break;case "control_pause":this.u&&(a=this.u,a.qx()?a.I.Kc().pauseVideo():a.Pj()&&a.j.Do())}};
g.h.XR=function(a){this.u&&this.u.Tc(a)};
g.h.NW=function(a){0>wF(a,16)&&(this.K.forEach(this.MG,this),this.K.clear())};
g.h.fZ=function(){if(this.u)this.u.onVideoDataChange()};
g.h.iZ=function(){if(HE(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&AF(b.j,a)}};
g.h.nW=function(){this.Qa=!0;if(this.u){var a=this.u;a.j&&a.j.Jg()}};
g.h.zW=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.h.jZ=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.I.isMuted();jF(b)||lF(b,c?"mute":"unmute");a.C||(b=a.I.isMuted(),lF(a.j,b?"unmuted_mute":"unmuted_unmute"))}};
g.h.mX=function(a){if(this.u){var b=this.u.j,c=b.j;iF(c)||qF(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,iF(b)||qF(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.h.Uf=function(a,b){this.j.Uf(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Up.delete(b),this.B.delete(b)};
g.h.H_=function(){for(var a=[],b=g.r(this.Up),c=b.next();!c.done;c=b.next())c=c.value,Nw(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||SU(b,"cuerangemarkersupdated",a)};
g.h.aj=function(a){this.j.aj(a);switch(a){case 1:this.PA=1;break;case 0:this.PA=0}};
g.h.cI=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.S:!1};
g.h.Tn=function(){this.u&&this.u.Dq()&&this.u.Tn()};
g.h.Yk=function(){this.u&&this.u.Dq()&&this.u.Yk()};
g.h.kA=function(){};
g.h.Uz=function(){};
g.h.Qb=function(a){if(this.u){var b=this.u;b.j&&AF(b.j,a)}};
g.h.Pj=function(){return HE(this.j)&&!!this.u&&this.u.Pj()};
g.h.executeCommand=function(a,b,c){this.fb.executeCommand(a,b,nza(this,void 0===c?null:c))};
g.h.isDaiEnabled=function(){return!1};
g.h.kM=function(){return this.va};
g.h.lM=function(){return this.Da};g.v(cI,g.G);cI.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)};
g.v(dI,cI);g.v(vza,g.G);var xza=1;g.v(g.fI,g.G);g.h=g.fI.prototype;
g.h.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Fa;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.XC&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.ei(a.G);if(c){if(c=gI(this,e,"class",c))hI(this,e,"class",c),this.ub[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.ub[f.value]=e;hI(this,e,"class",d.join(" "))}d=a.oa;c=a.U;if(d)b=gI(this,e,"child",d),void 0!==b&&e.appendChild(g.fi(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=gI(this,e,"child",f),null!=f&&e.appendChild(g.fi(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Jb&&(k=eI(),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.hi(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],hI(this,b,c,"string"===typeof f?
gI(this,b,c,f):f);return e};
g.h.Ca=function(a){return this.ub[a]};
g.h.Ba=function(a,b){"number"===typeof b?g.hi(a,this.element,b):a.appendChild(this.element)};
g.h.detach=function(){g.ii(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.Pd["{{"+a+"}}"])&&hI(this,a[0],a[1],b)};
g.h.qa=function(){this.ub={};this.Pd={};this.detach();g.G.prototype.qa.call(this)};g.v(g.W,g.fI);g.h=g.W.prototype;g.h.Cd=function(a,b){this.Ka(b||"content",a)};
g.h.show=function(){this.tb||(g.Mm(this.element,"display",""),this.tb=!0)};
g.h.hide=function(){this.tb&&(g.Mm(this.element,"display","none"),this.tb=!1)};
g.h.jc=function(a){this.ra=a};
g.h.Oa=function(a,b,c){return this.T(this.element,a,b,c)};
g.h.T=function(a,b,c,d){c=(0,g.Sa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.h.vc=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;mi(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.fI.prototype.qa.call(this)};g.v(g.jI,g.W);g.jI.prototype.subscribe=function(a,b,c){return this.Va.subscribe(a,b,c)};
g.jI.prototype.unsubscribe=function(a,b,c){return this.Va.unsubscribe(a,b,c)};
g.jI.prototype.Mf=function(a){return this.Va.Mf(a)};
g.jI.prototype.ea=function(a){return this.Va.ea.apply(this.Va,[a].concat(g.u(g.Ca.apply(1,arguments))))};var kTa=new WeakSet;g.v(kI,g.jI);g.h=kI.prototype;g.h.bind=function(a){if(!this.Qa&&a.renderer){var b=Object.assign({},uza(this.api,this.eb),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.h.init=function(a,b,c){this.Qa=a;this.element.setAttribute("id",this.Qa);this.fb&&g.M(this.element,this.fb);this.X=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&this.dh(this.element,this.K)};
g.h.clear=function(){};
g.h.hide=function(){g.jI.prototype.hide.call(this);null!=this.K&&this.Za(this.element,!1)};
g.h.show=function(){g.jI.prototype.show.call(this);if(!this.ib){this.ib=!0;var a=this.X&&this.X.impressionCommand;a&&this.KH(a,null)}null!=this.K&&this.Za(this.element,!0)};
g.h.onClick=function(a){if(this.K&&!kTa.has(a)){var b=this.element;this.api.Io(b)&&this.tb&&this.api.wb(b,this.j);kTa.add(a)}if(a=this.X&&this.X.clickCommand)a=this.jP(a),this.KH(a,this.pM())};
g.h.jP=function(a){return a};
g.h.pM=function(){return null};
g.h.aS=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=wza(b,a)||1!=a.length;var c=a.item(0);b.J||!c?(b.S=Infinity,b.X=Infinity):(b.S=c.clientX,b.X=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.h.ZR=function(a){var b=this.ma;a=a.changedTouches.item(0);if(Kb()&&!(0<=g.sb(Nb(),8))||a&&Math.pow(a.clientX-b.S,2)+Math.pow(a.clientY-b.X,2)>Math.pow(5,2))b.C=!0};
g.h.YR=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&wza(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.KH=function(a){this.layoutId||g.Sv(new g.Is("The UI component has undefined layoutId when calling the runCommand method.",{componentType:this.componentType}));this.api.V().N("enable_macro_substitution_on_html5")&&this.layoutId?this.jb.executeCommand(a,this.layoutId):LI(this.jb,a,this.macros)};
g.h.dh=function(a,b){this.api.dh(a,this);this.api.hk(a,b)};
g.h.Za=function(a,b){this.api.Io(a)&&this.api.Za(a,b,this.j)};
g.h.qa=function(){this.clear(null);this.vc(this.Xa);for(var a=g.r(this.va),b=a.next();!b.done;b=a.next())this.vc(b.value);g.jI.prototype.qa.call(this)};g.v(zI,kI);
zI.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.Sv(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.Pw(b.text),g.lb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.jI({G:"span",L:"ytp-ad-button-text",oa:a}),g.H(this,this.C),this.C.Ba(this.element)));null!=b.icon&&(b=yI(b.icon),
null!=b&&(this.B=new g.jI({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.H(this,this.B)),this.D?g.hi(this.element,this.B.element,0):this.B.Ba(this.element))}};
zI.prototype.clear=function(){this.hide()};
zI.prototype.onClick=function(a){kI.prototype.onClick.call(this,a);a=g.r(Rza(this));for(var b=a.next();!b.done;b=a.next())LI(this.jb,b.value,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(AI,g.G);AI.prototype.qa=function(){this.u&&g.pu(this.u);this.j.clear();BI=null;g.G.prototype.qa.call(this)};
AI.prototype.register=function(a,b){b&&this.j.set(a,b)};
var BI=null;g.v(DI,kI);
DI.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.S(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new zI(this.api,this.eb,this.layoutId,this.j,this.jb),g.H(this,this.button),this.button.init(KE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Pw(a)),this.button.Ba(this.element),this.J&&!g.Dp(this.button.element,"ytp-ad-clickable")&&g.M(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.jI({G:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.jI({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=CI(a),g.hi(this.B.element,b,0)),this.show())};
DI.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();kI.prototype.hide.call(this)};
DI.prototype.show=function(){this.button&&this.button.show();kI.prototype.show.call(this)};g.v(FI,kI);FI.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&EI(a)||"";g.lb(b)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Sv(Error("Found AdImage without valid image URL")):(this.u?g.Mm(this.element,"backgroundImage","url("+b+")"):ai(this.element,{src:b}),ai(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
FI.prototype.clear=function(){this.hide()};g.v(GI,kI);g.h=GI.prototype;g.h.hide=function(){kI.prototype.hide.call(this);this.C&&this.C.focus()};
g.h.show=function(){this.C=document.activeElement;kI.prototype.show.call(this);this.D.focus()};
g.h.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.S(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.S(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Vza(this,b):g.S(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.h.clear=function(){g.hv(this.u);this.hide()};
g.h.KG=function(){this.hide()};
g.h.uD=function(){var a=this.B.cancelEndpoint;a&&LI(this.jb,a,this.macros);this.hide()};
g.h.LG=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&LI(this.jb,a,this.macros);this.hide()};g.v(HI,kI);g.h=HI.prototype;
g.h.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.S(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.S(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.M(this.C,a)}a={};b.defaultText?
(c=g.Pw(b.defaultText),g.lb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Ym(this.xa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=yI(b.defaultIcon),this.Ka("untoggledIconTemplateSpec",c),b.toggledIcon?(this.S=!0,c=yI(b.toggledIcon),this.Ka("toggledIconTemplateSpec",c)):(g.Ym(this.J,!0),g.Ym(this.D,!1)),g.Ym(this.u,!1)):g.Ym(this.Z,!1);g.Sf(a)||this.update(a);b.isToggled&&
(g.M(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));II(this);this.T(this.element,"change",this.PJ);this.show()}};
g.h.onClick=function(a){0<this.va.length&&(this.toggleButton(!this.isToggled()),this.PJ());kI.prototype.onClick.call(this,a)};
g.h.PJ=function(){g.N(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.r(Wza(this,this.isToggled())),b=a.next();!b.done;b=a.next())LI(this.jb,b.value,this.macros);if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);II(this)};
g.h.clear=function(){this.hide()};
g.h.toggleButton=function(a){g.N(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;II(this)};
g.h.isToggled=function(){return this.u.checked};g.v(JI,fv);JI.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 Ow&&this.C(b)}};g.v(KI,kI);g.h=KI.prototype;g.h.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.S(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Sv(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Sv(Error("AdFeedbackRenderer.title was not set.")),$za(this,b)):g.S(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();kI.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;kI.prototype.show.call(this);this.J.focus()};
g.h.pO=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ea("a");this.hide()};
g.h.eZ=function(){this.hide()};
aAa.prototype.isChecked=function(){return this.B.checked};g.v(MI,GI);MI.prototype.KG=function(a){GI.prototype.KG.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
MI.prototype.uD=function(a){GI.prototype.uD.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
MI.prototype.LG=function(a){GI.prototype.LG.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ea("b")};g.v(NI,kI);g.h=NI.prototype;
g.h.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);this.J=b;if(null==b.dialogMessage&&null==b.title)g.S(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Sv(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.u=new zI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.H(this,
this.u),this.u.init(KE("button"),a,this.macros),this.u.Ba(this.element);b.title&&(a=g.Pw(b.title),this.Ka("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=CI(a[c]);if(!g.lb(d.textContent)){var e=di("LI");e.appendChild(d);this.Da.appendChild(e)}}else g.Ym(this.Da,!1);b.dialogMessage&&(a=CI(b.dialogMessage,!0),this.Ia.appendChild(a));b.confirmLabel&&(a=g.Pw(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.Sv(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?bAa(this,a):c&&cAa(this,c),this.C=new zI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.H(this,this.C),this.C.init(KE("button"),b,this.macros),this.C.Oa("click",this.IX,this),
this.C.Ba(this.Ra)));dAa(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();kI.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.Ha){for(var a=g.r(this.J&&this.J.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())LI(this.jb,b.value,this.macros);this.Ha=!0}this.Z=document.activeElement;kI.prototype.show.call(this);this.S.focus()};
g.h.QJ=function(){this.J&&this.J.confirmServiceEndpoint&&LI(this.jb,this.J.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ea("d");this.hide()};
g.h.IX=function(){var a=this.B?this.B:this.D;a&&!a.tb&&(this.hide(),a.show())};g.v(OI,DI);OI.prototype.init=function(a,b,c){DI.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(gAa(this,a,c),this.show())};
OI.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();DI.prototype.hide.call(this)};
OI.prototype.show=function(){this.button&&this.button.show();DI.prototype.show.call(this)};
OI.prototype.clear=function(){this.hide()};g.v(PI,kI);PI.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.li(this.element,lI(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?EI(a):"",c=(c=this.api.getVideoData(1))&&c.Hk,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
PI.prototype.isTemplated=function(){return this.u.isTemplated||!1};
PI.prototype.clear=function(){this.hide()};var kAa={seekableStart:0,seekableEnd:1,current:0};g.v(RI,kI);RI.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var k=g.r(f);f=k.next().value;k=la(k);return a.apply(f,k)}
function d(f){f=g.r(f);f.next();f=la(f);return b(e,f)}
b=void 0===b?Dia:b;var e=g.Ra(a);return function(){var f=g.Ca.apply(0,arguments),k=this||g.C,l=iSa.get(k);l||(l={},iSa.set(k,l));return sc(l,[this].concat(g.u(f)),c,d)}})(function(a){var b=g.ei("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.ei("DIV");g.Wm(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.ii(b);return a});g.v(g.UI,g.G);g.h=g.UI.prototype;g.h.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.EC(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.tb||(VI(this,!0),this.state=1,a?this.delay.start(a):this.EC()))};
g.h.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.tb&&(VI(this,!0),this.state=4,this.delay.start(this.C)))};
g.h.EC=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:VI(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();VI(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.EC()};
g.h.qa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.G.prototype.qa.call(this)};g.v(WI,RI);g.h=WI.prototype;
g.h.init=function(a,b,c){RI.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.S(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ra&&g.M(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.xa=null==a||0===a?this.u.Ow():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(KE("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Hk&&b.thumbnail?this.J.init(KE("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();TI(this);RI.prototype.hide.call(this)};
g.h.show=function(){SI(this);this.B.show();this.C.show();this.J.show();RI.prototype.show.call(this)};
g.h.jr=function(){this.hide()};
g.h.hp=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ha&&a>=this.xa?(this.Z.hide(),this.Ha=!0,this.ea("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.xa-a)/1E3)),a!=this.Ia&&(QI(this.C,{TIME_REMAINING:String(a)}),this.Ia=a)))}};g.v(YI,RI);g.h=YI.prototype;
g.h.init=function(a,b,c){RI.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.lb(g.Jh(d[0].url))&&(d[0].url=a.profilePicture)}else g.Sv(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(KE("ad-image"),b.image,c);
this.J.init(KE("ad-text"),b.headline,c);this.C.init(KE("ad-text"),b.description,c);this.B.init(KE("button"),b.actionButton.buttonRenderer,c);this.Z=b.actionButton.buttonRenderer.navigationEndpoint;this.api.XA()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.RJ.bind(this));this.xa=b.startMs||0;SI(this)}else g.S(Error("FlyoutCtaRenderer has no valid action button."));else g.S(Error("FlyoutCtaRenderer has no description AdText."));else g.S(Error("FlyoutCtaRenderer has no headline AdText."));
else g.Sv(Error("FlyoutCtaRenderer has no image."))};
g.h.onClick=function(a){RI.prototype.onClick.call(this,a);this.api.pauseVideo();!g.ki(this.B.element,a.target)&&this.Z&&LI(this.jb,this.Z,this.macros)};
g.h.hp=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.xa&&(TI(this),g.Fp(this.element,"ytp-flyout-cta-inactive"))}};
g.h.jr=function(){this.clear()};
g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.RJ.bind(this))};
g.h.show=function(){this.B&&this.B.show();RI.prototype.show.call(this)};
g.h.hide=function(){this.B&&this.B.hide();RI.prototype.hide.call(this)};
g.h.RJ=function(a){"hidden"==a?this.show():this.hide()};g.v(ZI,kI);g.h=ZI.prototype;g.h.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(KE("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(KE("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.T(this.element,"change",this.SJ),this.D.show(100),this.show(),a=g.r(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())LI(this.jb,b.value,this.macros)};
g.h.clear=function(){this.hide()};
g.h.hide=function(){this.C.hide();this.B.hide();kI.prototype.hide.call(this)};
g.h.show=function(){this.C.show();this.B.show();kI.prototype.show.call(this)};
g.h.SJ=function(){mia(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.La("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.h.onClick=function(a){0<this.va.length&&this.SJ();kI.prototype.onClick.call(this,a)};g.v($I,g.G);g.h=$I.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.cS,this);this.C.T(this.B,"mouseout",this.bS,this);this.j?this.j.start():(this.J=this.u=!0,g.Mm(this.B,{opacity:this.X}))};
g.h.cS=function(){this.u&&(this.u=!1,this.K.play());this.D.stop();this.j&&this.j.stop()};
g.h.bS=function(){this.J?this.D.start():this.j&&this.j.start()};
g.h.jL=function(){this.u||(this.u=!0,this.S.play(),this.J=!0)};g.v(aJ,RI);g.h=aJ.prototype;
g.h.init=function(a,b,c){RI.prototype.init.call(this,a,b,c);this.S=b;this.xa=iAa(this);if(!b||g.Sf(b))g.S(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Sf(b.message))g.S(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=yI(a);null==b?g.S(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.J=new g.jI({G:"button",Fa:["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 PI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-skip-button-text"),this.B.init(KE("ad-text"),this.S.message,c),g.H(this,this.B),g.hi(this.J.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.va.length)&&c.isMobile&&(nC?0:"ontouchstart"in document.documentElement&&(Aea()||Kl()))&&(this.vc(this.Xa),d&&this.vc(d),this.va=[this.T(this.element,"touchstart",this.aS,this),this.T(this.element,
"touchmove",this.ZR,this),this.T(this.element,"touchend",this.YR,this)])}};
g.h.clear=function(){this.Z.reset();this.hide()};
g.h.hide=function(){this.C.hide();this.B&&this.B.hide();TI(this);RI.prototype.hide.call(this)};
g.h.onClick=function(a){if(null!=this.J&&(a&&g.vu(a),RI.prototype.onClick.call(this,a),this.ea("j"),this.Ha||!this.xa))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.h.jP=function(a){if(!this.Ha)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&&hAa(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.h.pM=function(){return"skip"};
g.h.KH=function(a,b){b=nza(this.eb,b);LI(this.jb,a,this.macros,b)};
g.h.show=function(){this.Z.start();this.C.show();this.B&&this.B.show();SI(this);RI.prototype.show.call(this)};
g.h.jr=function(){this.ea("k")};
g.h.hp=function(){};g.v(bJ,RI);g.h=bJ.prototype;
g.h.init=function(a,b,c){RI.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Sf(a)?null:a){this.S=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.VA(this.api.V().experiments,"preskip_button_style_ads_backend")&&GC(this.api.V());this.B=new WI(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,d);this.B.init(KE("preskip-component"),a,c);XI(this.B);g.H(this,this.B);
this.B.Ba(this.element)}else b.skipOffsetMilliseconds&&(this.S=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Sf(b)?null:b;null==b?g.S(Error("SkipButtonRenderer was not set in player response.")):(this.C=new aJ(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,this.Z),this.C.init(KE("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();SI(this);RI.prototype.show.call(this)};
g.h.jr=function(){};
g.h.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();TI(this);RI.prototype.hide.call(this)};
g.h.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();TI(this);RI.prototype.hide.call(this)};
g.h.hp=function(){1E3*this.u.getProgressState().current>=this.S&&jAa(this,!0)};g.v(cJ,zI);cJ.prototype.init=function(a,b,c){zI.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Pw(b.text),a=!g.lb(a));a?null==b.navigationEndpoint?g.Sv(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Sv(Error("Button style was not a link-style type in renderer,")):this.show():g.Sv(Error("No visit advertiser text was present in the renderer."))};g.v(dJ,kI);dJ.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);a=b.text;g.lb(lI(a))?g.Sv(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 PI(this.api,this.eb,this.layoutId,this.j,this.jb),a.init(KE("simple-ad-badge"),b,c),a.Ba(this.element),g.H(this,a)),this.show())};
dJ.prototype.clear=function(){this.hide()};g.v(eJ,LE);g.v(fJ,g.iv);g.h=fJ.prototype;g.h.Ow=function(){return this.durationMs};
g.h.stop=function(){this.j&&this.Lc.vc(this.j)};
g.h.Qb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")};
g.h.getProgressState=function(){return this.u};
g.h.Tc=function(a){g.xF(a,2)&&this.ea("g")};g.v(gJ,g.iv);g.h=gJ.prototype;g.h.Ow=function(){return this.durationMs};
g.h.start=function(){this.u||(this.u=!0,this.timer.start())};
g.h.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
g.h.Qb=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.eb&&this.eb.Qb(this.B.current);this.ea("h");a&&this.ea("g")};
g.h.getProgressState=function(){return this.B};g.v(jJ,RI);g.h=jJ.prototype;g.h.init=function(a,b,c){RI.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 PI(this.api,this.eb,this.layoutId,this.j,this.jb);this.B.init(KE("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(){TI(this);RI.prototype.hide.call(this)};
g.h.jr=function(){this.hide()};
g.h.hp=function(){if(null!=this.u){var a=this.u.getProgressState();if(null!=a&&null!=a.current&&this.B){a=(this.u instanceof fJ?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof gJ?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.hJ(a);QI(this.B,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.h.show=function(){SI(this);RI.prototype.show.call(this)};g.v(kJ,PI);kJ.prototype.onClick=function(a){PI.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(pJ,g.jI);pJ.prototype.Qb=function(){var a=this.u.getProgressState();this.Ic.style.width=100*oJ(new lJ(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
pJ.prototype.onStateChange=function(){g.yC(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Qb,this),this.Qb()):-1!==this.j&&(this.hide(),this.u.Mf(this.j),this.j=-1))};g.v(qJ,kI);
qJ.prototype.init=function(a,b,c,d){kI.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new bJ(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,this.J),c.Ba(this.D),c.init(KE("skip-button"),a.skipAdRenderer,this.macros),g.H(this,c)):a.adPreviewRenderer&&(c=new WI(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,!1),c.Ba(this.D),c.init(KE("ad-preview"),a.adPreviewRenderer,this.macros),XI(c),g.H(this,c)));b.brandInteractionRenderer&&(a=
b.brandInteractionRenderer.brandInteractionRenderer,c=new ZI(this.api,this.eb,this.layoutId,this.j,this.jb),c.Ba(this.Z),c.init(KE("instream-user-sentiment"),a,this.macros),g.H(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new YI(this.api,this.eb,this.layoutId,this.j,this.jb,this.u),g.H(this,c),c.Ba(this.S),c.init(KE("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 dJ(this.api,this.eb,this.layoutId,this.j,this.jb,!0),g.H(this,c),c.Ba(this.B),c.init(KE("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 jJ(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,d),g.H(this,d),d.Ba(this.B),d.init(KE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new OI(this.api,this.eb,this.layoutId,this.j,this.jb,this.element),g.H(this,a),a.Ba(this.B),a.init(KE("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=lAa(this)&&this.C?this.C:this.B))&&(a=new cJ(this.api,this.eb,this.layoutId,this.j,this.jb),g.H(this,a),a.Ba(d),a.init(KE("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!vC(b)&&
"3"==b.controlsType&&(b=new pJ(this.api,this.u),b.Ba(this.xa),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()};
qJ.prototype.clear=function(){this.hide()};g.Ja("yt.pubsub.publish",g.Ku);var xJ=Symbol("injectionDeps");vJ.prototype.toString=function(){return"InjectionToken("+this.name+")"};
tAa.prototype.resolve=function(a){return a instanceof wJ?yJ(this,a.key,[],!0):yJ(this,a,[])};var QJ;var GJ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var y0={},xAa=(y0.WEB_UNPLUGGED="^unplugged/",y0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",y0.WEB_UNPLUGGED_OPS="^unplugged/",y0.WEB_UNPLUGGED_PUBLIC="^unplugged/",y0.WEB_CREATOR="^creator/",y0.WEB_KIDS="^kids/",y0.WEB_EXPERIMENTS="^experiments/",y0.WEB_MUSIC="^music/",y0.WEB_REMIX="^music/",y0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",y0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",y0);DJ.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?GJ:c;var d={context:g.GH(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.AJ(this.B());var k;(a=null==(f=a.commandMetadata)?void 0:null==(k=f.webCommandMetadata)?void 0:k.apiUrl)&&(b=a);f=zAa(BJ(b));d={input:f,yr:CJ(f),ul:d,config:Object.assign({},void 0)};d.config.Zp?d.config.Zp.identity=c:d.config.Zp={identity:c};return d}g.S(new g.Is("Error: Failed to create Request from Command.",a))};
fa.Object.defineProperties(DJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(EJ,DJ);EJ.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",yr:CJ("/getDatasyncIdsEndpoint","GET"),ul:{}}};
EJ.prototype.B=function(){return[]};
EJ.prototype.j=function(){};
EJ.prototype.u=function(){};var lTa={},AAa=(lTa.GET_DATASYNC_IDS=zJ(EJ),lTa);var FAa=["consistency","mss","client_location","entities","store"];g.v(IJ,DJ);IJ.prototype.B=function(){return BSa};
IJ.prototype.j=function(a){return a.subscribeEndpoint};
IJ.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
fa.Object.defineProperties(IJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(JJ,DJ);JJ.prototype.B=function(){return CSa};
JJ.prototype.j=function(a){return a.unsubscribeEndpoint};
JJ.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
fa.Object.defineProperties(JJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(KJ,DJ);KJ.prototype.B=function(){return ySa};
KJ.prototype.j=function(a){return a.feedbackEndpoint};
KJ.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
fa.Object.defineProperties(KJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(LJ,DJ);LJ.prototype.B=function(){return zSa};
LJ.prototype.j=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
LJ.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(MJ,DJ);MJ.prototype.B=function(){return ASa};
MJ.prototype.j=function(a){return a.playlistEditEndpoint};
MJ.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(NJ,DJ);NJ.prototype.B=function(){return xSa};
NJ.prototype.j=function(a){return a.webPlayerShareEntityServiceEndpoint};
NJ.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var sAa=new vJ("NETWORK_SLI_TOKEN");OJ.prototype.fetch=function(a,b){var c=this,d,e;return g.B(function(f){c.j&&(d=bj(g.dj(5,zj(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.Sv(k)}))):f.return(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Sv(k)}))})};
OJ.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.Sv(new g.Is("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
OJ[xJ]=[new wJ];var HAa=new vJ("NETWORK_MANAGER_TOKEN");var PJ;SJ.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.Yt)f.onreadystatechange=function(p){c.Yt(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)})};
SJ.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Sv(new g.Is("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.Sv(new g.Is("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var JAa=[],dK=!1;eK.getInstance=function(){var a=g.Ka("ytglobal.storage_");a||(a=new eK,g.Ja("ytglobal.storage_",a));return a};
eK.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(MAa()):d.return()})};
g.Ja("ytglobal.storageClass_",eK);Bs.prototype.wx=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":OAa(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=PAa.prototype;
g.h.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(f=a.interpreterSafeScript,e=g.Kg("From proto message. b/166824318"),f=f.privateDoNotAccessOrElseSafeScriptWrappedValue||"",Jg(e),Jg(e),e=(e=Fg())?e.createScript(f):f,e=(new Mg(e,Lg)).toString());a.interpreterSafeUrl&&(d=a.interpreterSafeUrl,d=sh(g.Kg("From proto message. b/166824318"),d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());
RAa(this,e,d,a.program,b,c)}else g.Sv(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={qw:a};if(b.j)throw Error("Already disposed");b=b.B([a.qw,a.a_])}else b=null;return b};
g.h.dispose=function(){SAa(this,null);this.state=8};var gK,iK;g.fK=new PAa;gK=0;iK=[];var WAa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var fBa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},gBa={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"},hBa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},eBa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},cBa={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"},dBa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};pK.prototype.getState=function(){return this.store.getState()};
pK.prototype.dispatch=function(a){return this.store.dispatch(a)};
pK.prototype.subscribe=function(a){return this.store.subscribe(a)};
pK.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
pK.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var uBa={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},tBa={},mTa=g.r(Object.entries(uBa)),z0=mTa.next();!z0.done;z0=mTa.next()){var nTa=g.r(z0.value),oTa=nTa.next().value,pTa=nTa.next().value,qTa=oTa,rTa=pTa;rTa&&(tBa[rTa]=qTa)};var A0;A0={};g.sTa=(A0.INVALID_ENCODER_VERSION="Invalid encoder version",A0.KEY_CREATION_FAILED="Failed to create encoder key",A0.UNKNOWN_DECODE_ERROR="Failed to decode PES data",A0.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",A0.WRONG_DATA_TYPE="Encoder cannot process the data type",A0);var mBa;
mBa=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{Pia(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],w=l[t],x=(0,c[t])(w,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!==w}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,k=null==(f=e.options)?void 0:f.persistenceOption;if(k&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==k&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==k)return d;if(!e.entityKey)return g.S(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.S(new g.Is("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Kf(e.payload);return HK(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===
e.type){e=e.entityKey;try{var m=g.FK(e).entityType;l=HK(d,m,e)}catch(q){if(q instanceof Error)g.S(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.S(new g.Is("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Kf(e.payload);var n,p;return vBa(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 HK(a,c.entityType,c.key,c.xU);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 HK(k,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,vBa(a,c.entityType,c.key,c.xU,c.Lha);default:return a}}});
g.B0=new pK;var C0={},tTa=(C0["api.invalidparam"]=2,C0.auth=150,C0["drm.auth"]=150,C0["heartbeat.net"]=150,C0["heartbeat.servererror"]=150,C0["heartbeat.stop"]=150,C0["html5.unsupportedads"]=5,C0["fmt.noneavailable"]=5,C0["fmt.decode"]=5,C0["fmt.unplayable"]=5,C0["html5.missingapi"]=5,C0["html5.unsupportedlive"]=5,C0["drm.unavailable"]=5,C0);g.v(LK,g.G);g.h=LK.prototype;
g.h.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&Cw(c,ESa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Bk&&!this.X.has(a)&&(this.X.add(a),g.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.Sv(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&&Cw(b,ESa))};
g.h.getBandwidthEstimate=function(){return bC(this.app.V().schedule)};
g.h.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.aL(this.app);b&&(a={gpu:(0,g.hT)(),d:a},b.handleError(new g.eD("feedback",a)))};
g.h.getApiInterface=function(){return this.S.slice()};
g.h.getInternalApiInterface=function(){return g.Nf(this.u)};
g.h.JT=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ca.apply(0,arguments);g.Ka(b).apply(window,d)};
this.J[b]=c}else c=b;this.app.qm.subscribe(a,c)};
g.h.FZ=function(a,b){if("string"===typeof b){var c=this.J[b];g.Wf(this.J,b);b=c}this.app.qm.unsubscribe(a,b)};
g.h.getPlayerState=function(){return EMa(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&&kV(this.app,!0,this.playerType);oV(this.app,a,b,c,this.playerType)};
g.h.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.h.startSeekCsiAction=function(){this.app.Li().D.j=(0,g.R)()};
g.h.seekToStreamTime=function(a,b,c){this.j&&kV(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.aL(d,e),l=0;k&&k.getStreamTimeOffset()&&!k.rd()&&(l=k.getStreamTimeOffset());oV(d,a-l,b,c,e,f)};
g.h.getStreamTimeOffset=function(){var a=g.aL(this.app,1);return a?a.getStreamTimeOffset():0};
g.h.seekToLiveHead=function(a,b){var c=g.aL(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&oV(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.wg.volume};
g.h.setVolume=function(a){zBa(this,a)};
g.h.isMuted=function(){return this.app.wg.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().dg&&WS(this.app).allowImaMonetization,autoplay:yE(WS(this.app)),mutedAutoplay:WS(this.app).mutedAutoplay});return a};
g.h.playVideo=function(){this.j&&kV(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.oe()){var b=yL(this.app.sb());if(!kRa(b)){b.zl("control_play");return}if(s_(b))return}3===a?VK(this.app.sb()).zl("control_play"):this.app.playVideo(a)};
g.h.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.oe()){var b=yL(this.app.sb());if(!kRa(b)){b.zl("control_pause");return}}3===a?VK(this.app.sb()).zl("control_pause"):this.app.pauseVideo(a)};
g.h.stopVideo=function(){var a=this.app;a.Y.ub&&a.Ta.ea("pageTransition");a.stopVideo()};
g.h.clearVideo=function(){};
g.h.getPlaybackRate=function(){return g.aL(this.app,1).getPlaybackRate()};
g.h.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.h.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.Dc){var b=a.j||a.N("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://web.archive.org/web/20220406233357/https://admin.youtube.com","https://web.archive.org/web/20220406233357/https://viacon.corp.google.com","https://web.archive.org/web/20220406233357/https://yurt.corp.google.com"].includes(b)||a.Hk?JSa:ISa}else a=[1];return a};
g.h.getPlaybackQuality=function(a){return(a=g.aL(this.app,a))?a.getPlaybackQuality():"unknown"};
g.h.setPlaybackQuality=function(){};
g.h.getAvailableQualityLevels=function(){var a=g.aL(this.app,this.playerType);return a?(a=g.Sl(a.ao(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.getAvailableQualityLabels=function(){var a=g.aL(this.app,this.playerType);return a?g.Sl(a.ao(),function(b){return b.qualityLabel}):[]};
g.h.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.h.getVideoBytesTotal=function(){return 1};
g.h.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.h.getVideoStartBytes=function(){return 0};
g.h.getSize=function(){var a=this.app.bb().getPlayerSize();return{width:a.width,height:a.height}};
g.h.setSize=function(){this.app.bb().resize()};
g.h.channelSubscribed=function(){this.La("SUBSCRIBE",WS(this.app).rj)};
g.h.channelUnsubscribed=function(){this.La("UNSUBSCRIBE",WS(this.app).rj)};
g.h.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.h.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.h.getCurrentPlaylistSequence=function(){return g.aL(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.h.getPlaylistSequenceForTime=function(a){return g.aL(this.app).getPlaylistSequenceForTime(a)};
g.h.shouldSendVisibilityState=function(){return!0};
g.h.updateFullerscreenEduButtonVisibility=function(a){var b=VMa(this.app);b&&(b.u=a,b.Ja())};
g.h.updateFullerscreenEduButtonSubtleModeState=function(a){var b=VMa(this.app);b&&(g.N(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.sf(b,g.lM(b.B.kc(),b.element)),b.C=!0))};
g.h.confirmYpcRental=function(){var a=g.aL(this.app,this.playerType);a&&a.Je("ypc_clickwrap")};
g.h.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.h.setConnectedRemoteApps=function(a){this.app.V().Gk=a};
g.h.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=gC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,Aua)};
g.h.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.h.isPictureInPictureAllowed=function(){return WS(this.app).Tv};
g.h.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.h.loadModule=function(a){"captions"===a&&(a=g.tL(this.app.sb()))&&!a.loaded&&a.load()};
g.h.unloadModule=function(a){"captions"===a&&(a=g.tL(this.app.sb()))&&a.loaded&&a.D_()};
g.h.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(IK(a,b,c),this.playerType),this.j&&kV(this.app,a,this.playerType))};
g.h.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(IK(a,b,c),this.playerType)};
g.h.loadVideoByUrl=function(a,b,c){a=wBa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&kV(this.app,a,this.playerType)};
g.h.cueVideoByUrl=function(a,b,c){a=wBa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.h.getVideoUrl=function(){var a=this.app.V();if(a.S)return"";var b=WS(this.app),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.h.getDebugText=function(){return this.app.getDebugText()};
g.h.getVideoEmbedCode=function(){var a=this.app.V();return a.S?"":a.getVideoEmbedCode(WS(this.app).videoId,this.app.bb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.h.addCueRange=function(a,b,c){return mV(this.app,a,b,c)};
g.h.addUtcCueRange=function(a,b,c){return LMa(this.app,a,b,c)};
g.h.removeCueRange=function(a){return MMa(this.app,a)};
g.h.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&kV(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&&kV(this.app,!0,this.playerType)};
g.h.previousVideo=function(){this.app.previousVideo();this.j&&kV(this.app,!0,this.playerType)};
g.h.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&kV(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.MU=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.gL(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.sb();return"captions"===a?(a=g.tL(d))&&a.wf(b,c):null};
g.h.getOption=function(a,b,c){var d=g.aL(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.sb();if("captions"===a){var c;return(null==(c=g.tL(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.tL(b)&&a.push("captions"),a)};
g.h.HA=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.aL(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(){uMa(this.app,!0)};
g.h.hideVideoInfo=function(){uMa(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.aL(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.V(a,128)&&5===tTa[b.errorCode])};
g.h.getSphericalProperties=function(){var a=g.XK(this.app.sb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.h.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.XK(this.app.sb());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.aL(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=BL(e.app.sb()))?g.A(l,f.xH([a],b,c,d),3):l.Ya(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=WS(this.app))?0:$D(b))return}RMa(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.aL(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.h.setUserAudio51Preference=function(a){var b=g.aL(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.h.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.aL(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,{Sz:b,Ry: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().nj!==a&&(this.app.V().nj=a,(a=g.aL(this.app,this.playerType))&&zU(a))};
g.h.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.tL(this.app.sb()).IQ(a,b)};
g.h.getCaptionWindowContainerId=function(){var a=g.tL(this.app.sb());return a?a.getCaptionWindowContainerId():""};
g.h.toggleSubtitlesOn=function(){var a=g.tL(this.app.sb());a&&a.qQ()};
g.h.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.oe()&&(a=1);return a};
g.h.getPlayerResponse=function(){var a=g.aL(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.h.getStoryboardFrame=function(a,b){var c=this.app.kh();if(!c)return null;b=c.levels[b];return b?(a=g.LD(b,a))?{column:a.column,columns:a.columns,height:a.Sq,row:a.row,rows:a.rows,url:a.url,width:a.Bx}:null:null};
g.h.getStoryboardFrameIndex=function(a,b){var c=this.app.kh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.rd();return b.rz(a)};
g.h.getStoryboardLevel=function(a){var b=this.app.kh();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Np(),minFrameIndex:b.tD()}:null:null};
g.h.getNumberOfStoryboardLevels=function(){var a=this.app.kh();return a?a.levels.length:0};
g.h.AU=function(){return this.getAudioTrack()};
g.h.getAudioTrack=function(){var a=g.aL(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().xj};
g.h.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&VK(this.app.sb()).zl("control_set_audio_track",a);var b=g.aL(this.app,this.playerType);if(b&&!b.isDisposed()&&!g.V(b.playerState,128)){var c;if(null==(c=b.videoData.C)?0:c.j)b.Ua.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.Fc.getName()){if(e.enabled){c=
!1;break a}c=e.enabled=!0;break a}c=void 0}c&&b.ya("hlsaudio",{id:a.id})}else{a:if(c=b.videoData,c.J&&!fA(c.J)||a==c.Gk||!c.Cb||0>=c.Cb.length)c=!1;else{d=g.r(c.Cb);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof kD)){c=!1;break a}var f=a.Fc.getId();e.B&&(Hua(e.B,f),e.u=null)}c.Gk=a;c=!0}c&&oU(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.ya("hlsaudio",{id:a.id}))}}}};
g.h.BU=function(){return this.getAvailableAudioTracks()};
g.h.getAvailableAudioTracks=function(){return g.aL(this.app,this.playerType).getAvailableAudioTracks()};
g.h.getMaxPlaybackQuality=function(){var a=g.aL(this.app,this.playerType);return a&&a.getVideoData().u?Nx(a.Oe?XIa(a.Mg,a.Oe,a.xt()):RD):"unknown"};
g.h.getUserPlaybackQualityPreference=function(){var a=g.aL(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.h.getSubtitlesUserSettings=function(){var a=g.tL(this.app.sb());return a?a.OU():null};
g.h.resetSubtitlesUserSettings=function(){g.tL(this.app.sb()).LZ()};
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.bb().setGlobalCrop(a)};
g.h.getVisibilityState=function(){var a=this.Se();return this.app.getVisibilityState(this.Bf(),this.isFullscreen()||vC(this.app.V()),a,this.isInline(),this.app.Mt(),this.app.It())};
g.h.isMutedByMutedAutoplay=function(){return this.app.Cx};
g.h.isInline=function(){return this.app.isInline()};
g.h.setInternalSize=function(a,b){this.app.bb().setInternalSize(new g.Dh(a,b))};
g.h.rd=function(){var a=g.aL(this.app);return a?a.rd():0};
g.h.Se=function(){return this.app.Se()};
g.h.Bf=function(){var a=g.aL(this.app,this.playerType);return!!a&&a.Bf()};
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.gL(b).videoId||(a.index=b.index)):YU(this.app,{list:a.list,index:a.index,playlist_length:d.length});iL(this.app.getPlaylist(),a);this.La("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.h.updateVideoData=function(a,b){var c=g.aL(this.app,this.playerType||1);c&&g.VD(c.getVideoData(),a,b)};
g.h.updateEnvironmentData=function(a){EC(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.CL(this.app.sb());d&&d.Zg()&&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.bb().getVideoAspectRatio()};
g.h.getPreferredQuality=function(){var a=g.aL(this.app);return a?a.getPreferredQuality():"unknown"};
g.h.setPlaybackQualityRange=function(a,b){var c=g.aL(this.app,this.playerType);c&&(a=g.Kx(a,b||a,!0,"m"),g.RLa(c,a,!0))};
g.h.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)};
g.h.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.h.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)};
g.h.dispatchReduxAction=function(a){g.B0.dispatch(a)};
g.h.ea=function(a){var b=g.Ca.apply(1,arguments);this.app.V().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.qm.ea.apply(this.app.qm,[a].concat(g.u(b)));this.app.Um.ea.apply(this.app.Um,[a].concat(g.u(b)))};
g.h.La=function(a){var b=g.Ca.apply(1,arguments);this.app.qm.ea.apply(this.app.qm,[a].concat(g.u(b)));this.app.Um.ea.apply(this.app.Um,[a].concat(g.u(b)))};
g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.h.logImaAdEvent=function(a,b){this.app.V().dg&&WS(this.app).allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.zca(this.app.V().loaderUrl),eventType:a,youtubeHost:g.ej(this.app.V().ma)||""},g.Ds("embedsAdEvent",a))};
g.h.N=function(a){return this.app.V().N(a)};
g.h.Na=function(){};
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.v(RK,LK);g.h=RK.prototype;g.h.addCueRange=function(a,b,c,d,e){return mV(this.app,a,b,c,d,e)};
g.h.getPlayerState=function(a){return EMa(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){oV(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.seekTo=function(a,b,c,d){oV(this.app,a,b,c,d||this.playerType)};
g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.h.HA=function(a){a=void 0===a?this.playerType:a;var b=LK.prototype.HA.call(this,a)||{};if(a=g.aL(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.ih;b.isManifestless=ZD(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)?Lh(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Lh(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.nR;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=nwa(a);b.paidContentOverlayDurationMs=kE(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.j&&Px(a.j)&&(b.usingLocalMedia=
"true");cE(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):LK.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=VK(this.app.sb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):LK.prototype.getDuration.call(this)};
g.h.getProgressState=function(a){if(3===this.getPresentingPlayerType())return VK(this.app.sb()).getProgressState();var b=this.app.getVideoData(),c=(g.aL(this.app,a)||g.aL(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.zt(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.aL(p,c))?(c=VU(p,c),c=gV(p,EP(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.qf(),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.PK(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.PK(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.PK(this);a&&a.showControls(!0)};
g.h.hideControls=function(){var a=g.PK(this);a&&a.showControls(!1)};
g.h.getVideoContentRect=function(a){a=this.app.bb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.setFauxFullscreen=function(a){g.bv();this.app.hj(a?2:0)};
g.h.toggleFullscreen=function(){function a(c){g.Sv(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.TC(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.bb().element).catch(a):(b=this.app.zd().Ke())?av(b).catch(a):Promise.reject(Error("Media element missing"));this.La("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.h.cancelPlayback=function(){var a=yL(this.app.sb());a&&a.created&&a.destroy();(a=g.aL(this.app))&&a.stopVideo();(a=this.app.sb().Nd.get("endscreen"))&&a.AV()&&g.UK(this.app.Ta,!0)};
g.h.stopVideo=function(){var a=this.app.V();!a.N("disable_new_pause_state3")&&OC(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():LK.prototype.stopVideo.call(this)};
g.h.getVideoStats=function(){return g.aL(this.app,this.playerType).Nb(!0)};
g.h.toggleSubtitles=function(){var a=g.tL(this.app.sb());a&&a.s_()};
g.h.getDebugText=function(a){return this.app.getDebugText(a)};
g.h.setSphericalProperties=function(a){if(a){var b=g.XK(this.app.sb());b&&b.setSphericalProperties(a,!0)}};
g.h.getSphericalProperties=function(){var a=g.XK(this.app.sb());return a?a.getSphericalProperties():{}};
g.h.setVolume=function(a,b){zBa(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.CL(this.app.sb());b&&!b.loaded&&b.load()}LK.prototype.loadModule.call(this,a)};
g.h.unloadModule=function(a){if("annotations_module"===a){var b=g.CL(this.app.sb());b&&b.loaded&&b.unload()}LK.prototype.unloadModule.call(this,a)};
g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.sb();switch(a){case "ad":return(a=yL(d))&&a.wf&&a.wf(b,c);case "kids":return(a=zL(d))&&a.wf(b,c);case "remote":return(a=VK(d))&&a.wf(b,c);case "unplugged":return(a=g.AL(d))&&a.wf(b,c);case "annotations_module":return(a=g.CL(d))&&a.wf(b,c);case "creatorendscreen":return(a=DL(d))&&a.wf(b,c)}return LK.prototype.setOption.call(this,a,b,c)};
g.h.getOptions=function(a){var b=this.app.sb();switch(a){case "ad":var c,d;return(null==(c=yL(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=VK(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var k,l;return(null==(k=g.CL(b))?void 0:null==(l=k.getOptions)?void 0:l.call(k))||null;case "creatorendscreen":var m,n;return(null==(m=DL(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.AL(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var t,w;return(null==(t=zL(b))?void 0:null==(w=t.getOptions)?void 0:w.call(t))||null}if(!a){a=LK.prototype.getOptions.call(this);if(!a)return a;yL(b)&&a.push("ad");VK(b)&&a.push("remote");g.CL(b)&&a.push("annotations_module");DL(b)&&a.push("creatorendscreen");g.AL(b)&&a.push("unplugged");zL(b)&&a.push("kids");return a}return LK.prototype.getOptions.call(this,a)};
g.h.getPlayerSize=function(){var a=this.app.bb().getPlayerSize();return{width:a.width,height:a.height}};
g.h.wakeUpControls=function(){var a=g.PK(this);a&&a.Jl()};
g.h.setCenterCrop=function(a){this.app.bb().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.v(g.SK,RK);g.h=g.SK.prototype;g.h.rk=function(a,b,c,d,e,f){return this.app.rk(a,b,c,d,e,f)};
g.h.Kw=function(){return this.app.Kw()};
g.h.nq=ca(4);g.h.sb=function(){return this.app.sb()};
g.h.Ae=function(){var a=this.sb().Nd.get("endscreen");return!!a&&a.Ae()};
g.h.getRootNode=function(){return this.bb().element};
g.h.V=function(){return this.app.V()};
g.h.At=ca(6);g.h.dl=function(a){return this.app.dl(a)};
g.h.Bo=function(){return this.settingsMenu};
g.h.Xw=function(){return this.vD};
g.h.yb=function(a){return this.app.yb(a)};
g.h.bb=function(){return this.app.bb()};
g.h.getPlaylist=function(){return this.app.getPlaylist()};
g.h.getVideoData=function(a){var b=g.aL(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Bd))b=void 0;else{var d=a.getCurrentTime();b=b.Qn?void 0:null==(c=YP(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.h.kh=function(a){return this.app.kh(a)};
g.h.isWidescreen=function(){return this.app.isWidescreen()};
g.h.isHdr=function(){var a=g.aL(this.app);return a?a.isHdr():!1};
g.h.ox=function(){return this.app.ox()};
g.h.Eu=function(a){this.app.Eu(a)};
g.h.Vf=function(a,b,c,d,e){this.app.Xe(a,b,c,d,e)};
g.h.Hl=ca(10);g.h.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){VK(this.app.sb()).zl("control_play");return}if(2===this.getPresentingPlayerType()){var b=yL(this.app.sb());if(b&&(b.Pj()||s_(b)))return}}catch(c){g.S(c)}this.app.playVideo(a)};
g.h.stopVideo=function(a){g.aL(this.app,a).stopVideo()};
g.h.Wm=function(a){g.aL(this.app,a).Wm()};
g.h.addEventListener=function(a,b){this.app.Um.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.Um.unsubscribe(a,b)};
g.h.ea=function(a){RK.prototype.ea.call.apply(RK.prototype.ea,[this,a].concat(g.u(g.Ca.apply(1,arguments))))};
g.h.aj=function(a){this.app.aj(a)};
g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.h.ao=function(){var a={},b=g.aL(this.app).ao();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.h.Uw=ca(12);g.h.fC=function(a){this.app.fC(a);a&&RMa(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.Vw=ca(14);g.h.Zj=ca(18);g.h.St=function(a,b){this.sb().St(a,b)};
g.h.Zg=function(){var a=g.CL(this.sb());return!!a&&a.Zg()};
g.h.Rk=function(){var a=g.CL(this.sb());return!!a&&a.Rk()};
g.h.setCardsVisible=function(a,b,c){var d=g.CL(this.sb());d&&d.setCardsVisible(a,b,c)};
g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.h.Bu=ca(19);g.h.Mr=function(){var a=g.aL(this.app);a&&a.Mr()};
g.h.zy=function(a){this.La("onVideoAreaChange");this.La(a?"onShowControls":"onHideControls")};
g.h.Lj=function(a,b){var c=g.PK(this);if(c)return c.Lj(a,b);a=this.app.bb().Hg();return new g.Jm(0,0,a.width,a.height)};
g.h.Co=function(){return this.app.Co()};
g.h.nx=function(){var a=this.sb().Nd.get("heartbeat");return!!a&&a.nx()};
g.h.qf=function(){var a=this.V();if(a.xa||a.disableSeek)return!1;a=g.aL(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.oE(b)||2===this.getPresentingPlayerType()&&!this.app.oe()||a.ll()&&3!==this.getPresentingPlayerType()?!1:!0};
g.h.kx=function(){var a;return(null==(a=g.aL(this.app))?void 0:a.kx)||!1};
g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.h.qp=function(){var a=g.aL(this.app);a&&a.qp()};
g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.h.Rd=function(a,b,c){this.app.cw(a,b,c)};
g.h.Uf=function(a,b){this.app.aC(a,b)};
g.h.jf=function(a,b){var c=this.app,d=g.aL(c,b);d&&(a=d.Bg.jf(a),b&&c.getPresentingPlayerType()!==b||SU(c,"cuerangesremoved",a))};
g.h.Je=function(a,b){(b=g.aL(this.app,b))&&b.Je(a)};
g.h.ll=function(){var a=g.aL(this.app);return a?a.ll():!0};
g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.h.setVolume=function(a){a=g.xh(a,0,100);NK(this.app,{volume:a,muted:this.isMuted()},!0)};
g.h.mute=function(){NK(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.unMute=function(){NK(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.zd=function(){return this.app.zd()};
g.h.Li=function(){return this.app.Li()};
g.h.jh=function(a){return this.app.jh(a)};
g.h.getBandwidthEstimate=function(){return bC(this.V().schedule)};
g.h.Ab=function(a,b,c,d){this.V().Qa&&this.app.Mo.Ab(a,b,c,void 0===d?!1:d)};
g.h.dh=function(a,b,c){this.V().Qa&&this.app.Mo.dh(a,b,void 0===c?!1:c)};
g.h.hk=function(a,b){this.V().Qa&&this.app.Mo.hk(a,b)};
g.h.wb=function(a,b){this.V().Qa&&this.app.Mo.click(a,b)};
g.h.Za=function(a,b,c){if(this.V().Qa){var d=this.app.Mo;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Lv(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.$v(e,[f]):g.aw(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Xv(e,f,c),d.B.add(a))}};
g.h.Io=function(a){return this.V().Qa?this.app.Mo.Io(a):!1};
g.h.Kc=function(){return g.aL(this.app)};
g.h.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.h.Vm=function(){this.app.Vm()};
g.h.Nn=function(a,b){return this.app.Nn(a,b)};
g.h.Gl=function(a){this.app.Gl(a)};
g.h.oG=function(){this.app.oG()};
g.h.Ns=function(a,b,c,d,e,f){return this.app.Ns(a,b,c,d,e,f)};
g.h.ix=function(a,b,c,d,e,f){return this.app.ix(a,b,c,d,e,f)};
g.h.bp=function(a){this.app.bp(a)};
g.h.eq=function(a,b){b=void 0===b?Infinity:b;this.app.eq(void 0===a?-1:a,b)};
g.h.Pu=function(a,b,c){this.app.Pu(a,b,c)};
g.h.qo=function(){return this.app.qo()};
g.h.fA=function(a,b,c){this.app.fA(a,b,void 0===c?0:c)};
g.h.Ot=function(){return this.app.Ot()};
g.h.clearQueue=function(){this.app.clearQueue()};
g.h.oe=function(){return this.app.oe()};
g.h.Po=function(a,b,c){return this.app.Po(a,b,c)};
g.h.ya=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.aL(this.app,d))||e.ya(a,b,c)};
g.h.mC=function(){return this.app.mC()};
g.h.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.h.FG=function(a,b){this.ea("aduxmouseover",a,b)};
g.h.EG=function(a,b){this.ea("aduxmouseout",a,b)};
g.h.ZG=function(a,b){this.ea("muteadaccepted",a,b)};
g.h.XA=function(){return this.app.bb().XA()};
g.h.Fu=function(a){this.app.bb().Fu(a)};bL.prototype.JG=function(){this.u=(0,g.R)()};
bL.prototype.reset=function(){this.j=this.u=NaN};
bL.prototype.NG=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};!this.Y.N("web_player_csi_ctt_killswitch")&&a.K&&(c.cttAuthInfo={token:a.K,videoId:a.videoId});nx("seek",c);g.ox("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||lx("pl_ss",this.u,"seek");lx(b,(0,g.R)(),"seek")}this.reset()}};cL.prototype.reset=function(){jx(this.timerName)};
cL.prototype.tick=function(a,b){lx(a,b,this.timerName)};
cL.prototype.Ir=function(a){var b=this.timerName;Ax(a,b)?a=!1:(lx(a,void 0,b),a=!0);return a};
cL.prototype.info=function(a,b){g.ox(a,b,this.timerName)};g.v(eL,g.iv);g.h=eL.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.h.ol=function(a){return this.loop||!!a||0<=this.index-1};
g.h.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ea("shuffle")};
g.h.Re=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 NC(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.jl=function(){return this.u.getVideoUrl(g.gL(this).videoId,this.getPlaylistId())};
g.h.qa=function(){this.j=null;g.rf(this.items);g.iv.prototype.qa.call(this)};var jL=new Map;g.v(g.lL,g.iv);g.h=g.lL.prototype;g.h.create=function(){};
g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.wf=function(){};
g.h.gi=function(){return!0};
g.h.qa=function(){this.loaded&&this.unload();g.iv.prototype.qa.call(this)};
g.h.Nb=function(){return{}};
g.h.getOptions=function(){return[]};g.v(g.oL,g.G);g.h=g.oL.prototype;g.h.Oo=ca(22);g.h.Rt=function(){};
g.h.jn=function(){};
g.h.wq=function(){return""};
g.h.rH=ca(23);g.h.qa=function(){this.jn();g.G.prototype.qa.call(this)};g.v(g.pL,g.oL);g.pL.prototype.Oo=ca(21);g.pL.prototype.Rt=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.nL(this.u,c.value);a()};
g.pL.prototype.wq=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.ED(a));return pr(c,d)};
g.pL.prototype.jn=function(){this.j&&this.j.abort()};g.uTa=new Map;g.v(g.rL,g.oL);g.rL.prototype.Oo=ca(20);
g.rL.prototype.Rt=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.aN&&(d.asrs=1);c=pr(c,d);this.jn();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"),w="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.nL(b.u,new g.BD({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:w}))}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.rL.prototype.wq=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.ED(a));return c=pr(c,b)};
g.rL.prototype.jn=function(){this.j&&this.j.abort()};g.v(sL,g.G);g.h=sL.prototype;g.h.Dy=function(){return this.I.getVideoData().Dy()};
g.h.ZH=function(){return this.I.getVideoData().ZH()};
g.h.IL=function(){var a=this.Nd.get("heartbeat");vL(this,"heartbeat",!1,!0,this.IL);!a&&this.Nd.has("heartbeat")&&this.I.ea("offlineslatestatechange")};
g.h.HE=function(){vL(this,"annotations_module",!0,void 0,this.HE);var a=this.Nd.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.h.GE=function(){if(!this.Nd.get("ad"))try{uL(this)?vL(this,"ad",!1,!0,this.GE):this.I.Je("ad")}catch(a){this.I.Je("ad"),g.S(a)}};
g.h.Li=function(){return this.j};
g.h.wF=function(){var a={},b=g.tL(this);b&&Object.assign(a,b.wF());return a};
g.h.St=function(a,b){Object.assign(this.j,a||null);Object.assign(this.aA,b||null)};
g.h.qa=function(){g.G.prototype.qa.call(this);xL(this,1,!0);for(var a=g.r(Object.entries(fCa)),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)&&jL.delete(b)}this.B.clear()};
var D0={},fCa=(D0.ad="ad.js",D0.annotations_module="annotations_module.js",D0.attribution="attribution.js",D0.creatorendscreen="annotations_module.js",D0.embed="embed.js",D0.endscreen="endscreen.js",D0.heartbeat="heartbeat.js",D0.inline_preview="inline_preview.js",D0.kids="kids.js",D0.remote="remote.js",D0.miniplayer="miniplayer.js",D0.music="music.js",D0.offline="offline.js",D0.captions="captions.js",D0.unplugged="unplugged.js",D0.ux="ux.js",D0.webgl="webgl.js",D0.ypc="ypc.js",D0.ypc_clickwrap="ypc_clickwrap.js",
D0.yto="yto.js",D0);g.v(EL,g.vf);EL.prototype.preventDefault=function(){g.vf.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
EL.prototype.stopPropagation=function(){g.vf.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.v(g.FL,iH);g.h=g.FL.prototype;g.h.Pp=function(){return!0};
g.h.isView=function(){return!1};
g.h.FH=function(){return!1};
g.h.Ke=function(){return this.j};
g.h.zf=function(){return this.j.src};
g.h.yz=function(a){this.Na();var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.h.bC=function(){this.Na();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.Na();this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.h.rq=function(){return this.j.loop};
g.h.setLoop=function(a){this.Na();this.j.loop=a};
g.h.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.h.Sl=function(){return this.j.paused};
g.h.Ev=function(){return this.j.seeking};
g.h.Sf=function(){return this.j.ended};
g.h.zA=function(){return this.j.muted};
g.h.Cu=function(a){pA();this.Na();this.j.muted=a};
g.h.uq=function(){return this.j.played||qA([],[])};
g.h.fg=function(){try{var a=this.j.buffered}catch(b){}return a||qA([],[])};
g.h.Yw=function(){return this.j.seekable||qA([],[])};
g.h.vz=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.h.getCurrentTime=function(){return this.j.currentTime};
g.h.xz=function(a){this.Na();this.j.currentTime=a};
g.h.getDuration=function(){return this.j.duration};
g.h.load=function(){this.Na();var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.h.pause=function(){this.Na();this.j.pause()};
g.h.play=function(){this.Na();var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.h.Jh=function(){return this.j.readyState};
g.h.AA=function(){return this.j.networkState};
g.h.Bj=function(){return this.j.error?this.j.error.code:null};
g.h.Fe=function(){return this.j.error?this.j.error.message:""};
g.h.wz=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.Bf=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.h.qp=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.zo=function(){var a=this.j;return new g.Bh(a.offsetLeft,a.offsetTop)};
g.h.getSize=function(){return g.Xm(this.j)};
g.h.setSize=function(a){g.Wm(this.j,a)};
g.h.getVolume=function(){return this.j.volume};
g.h.setVolume=function(a){pA();this.Na();this.j.volume=a};
g.h.QE=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.dw=ca(25);g.h.Ky=ca(27);g.h.Ly=ca(29);g.h.Ts=ca(31);g.h.Fw=function(){return dv(this.j)};
g.h.Fn=function(a){g.M(this.j,a)};
g.h.getStyle=function(a){return g.Om(this.j,a)};
g.h.XF=function(){return g.ki(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]);iH.prototype.qa.call(this)};
g.h.Na=function(){};g.v(HL,g.iv);g.h=HL.prototype;g.h.fW=function(a){a=uu(a);if(!Ch(a,this.C)){var b=2;this.J&&(b|=8);this.C=a;GL(this,b,!0)}};
g.h.gW=function(){this.J&&GL(this,8,!0);GL(this,2,!1)};
g.h.qB=function(a){var b=uu(a);Ch(b,this.C)||(this.C=b,(a=g.qu(a))&&this.Rz(a)&&(GL(this,4,!0),this.j.vc(this.B),this.B=this.j.T(this.target,"mouseover",this.AG),this.K=this.j.T(this.target,"mouseout",this.AG)))};
g.h.AG=function(a){a=tu(a);a&&this.Rz(a)||(this.C=new g.Bh(NaN,NaN),gCa(this))};
g.h.IV=function(){GL(this,1,!0)};
g.h.EU=function(a){a=g.qu(a);a instanceof Element&&!(0<a.tabIndex)||GL(this,1,!0)};
g.h.VN=function(){this.J=!0;this.j.vc(this.D);this.D=this.j.T(document,"mouseup",this.hW)};
g.h.hW=function(){this.J=!1;GL(this,8,!1);this.j.vc(this.D);this.D=this.j.T(this.target,"mousedown",this.VN)};
g.h.sQ=function(a){if(a=(a=a.changedTouches)&&a[0])this.va=a.identifier,this.j.vc(this.S),this.S=this.j.T(this.target,"touchend",this.t_,void 0,!0),GL(this,1024,!0)};
g.h.t_=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.vc(this.S),this.S=this.j.T(this.target,"touchstart",this.sQ,void 0,!0),GL(this,1024,!1))};
g.h.Jl=function(){GL(this,2,!0)};
g.h.resize=function(){g.mA&&gCa(this)};
g.h.toString=function(){return g.iv.prototype.toString.call(this)};g.v(g.IL,g.W);
g.IL.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.V();if(a.D&&(a.Wa||b.pfpChazalUi))var c=b.pfpChazalUi?[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.D?(g.N(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.Wa||b.pfpChazalUi)&&(a=a.Wa?a.Wa:"#1f1f1f",this.Ca("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.v(g.JL,g.W);g.h=g.JL.prototype;g.h.show=function(){var a=this;this.tb||(this.B.T(this.api,"videodatachange",function(){g.xp(a.j)}),this.B.T(this.api,"videoplayerreset",function(){g.xp(a.j)}));
g.W.prototype.show.call(this)};
g.h.hide=function(){this.B&&g.hv(this.B);g.W.prototype.hide.call(this)};
g.h.xb=function(){g.xp(this.j)};
g.h.onStateChange=function(a){var b=this.api.V();b.N("disable_new_pause_state3")&&OC(b)&&(a=a.state.isCued()&&!a.Vo.isCued()||g.WK(this.api)&&g.V(a.state,2),g.Mm(this.element,"transition-delay",a?"2s":""));g.xp(this.j)};
g.h.oZ=function(){g.xp(this.j)};
g.h.dS=function(){this.u.stop();this.hide();g.xp(this.j)};
g.h.Ja=function(){var a=this.api.yb();if(3===this.api.getPresentingPlayerType()&&(a.Jc()||g.V(a,4)))var b=!0;else(b=this.api.sb().Nd.get("ypc"))&&b.IB?b=!0:(b=this.api.V(),b=g.V(a,2)&&g.TK(this.api)&&b.Qd?!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.V(a,2)||g.TK(this.api)||b&&this.api.Kw())||g.V(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.I_(this.api.getPlaylist(),a)):
(this.u.hide(),g.V(a,1)||this.u.stop())};
g.h.I_=function(){for(var a,b=g.r(g.Ca.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.SD&&!c.videoId)){a=this.api.bb().getPlayerSize();var d=g.PC(),e=a.width*d;d*=a.height;if(1280<e||720<d)if(a=c.Re("maxresdefault.jpg"))break;if(640<e||480<d)if(a=c.Re("maxresdefault.jpg"))break;if(320<e||180<d)if(a=c.Re("sddefault.jpg")||c.Re("hqdefault.jpg")||c.Re("mqdefault.jpg"))break;if(a=c.Re("default.jpg"))break}this.D.style.backgroundImage=a?"url("+a+")":""};g.v(g.PL,g.W);g.PL.prototype.resize=function(){};
g.PL.prototype.u=function(a){var b=this;lCa(this);var c=a.SE,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.D?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Cd(SL(this,"TOO_MANY_REQUESTS_WITH_LINK",d.jl(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.D?this.Cd(g.QL(a.errorMessage)):this.Cd(SL(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20220406233357/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20220406233357/https://support.google.com/youtube/?p=player_error1",a&&(c=
g.wj(c,{hl:a})),this.Cd(SL(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.ub&&!d.j&&kCa(this,function(e){if(g.KL(e,b.api,!OC(b.api.V()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.La("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var jCa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.v(TL,g.iA);TL.prototype.qg=function(){pCa(this)};
TL.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=nCa(this);c.N("enable_web_media_session_metadata_fix")&&g.zC(c)&&f?(d=oCa(f.thumbnailDetails),f.album&&(e=g.Pw(f.album))):d=[{src:b.Re("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}pCa(this);mCa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.WK(this.I)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()});
UL(this,"nexttrack",b);UL(this,"previoustrack",c)}};
TL.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())UL(this,b.value,null);g.iA.prototype.qa.call(this)};g.v(VL,g.W);g.h=VL.prototype;g.h.onClick=function(a){g.KL(a,this.I,!0);this.I.wb(this.element)};
g.h.onVideoDataChange=function(a,b){rCa(this,b);this.Md&&sCa(this,this.Md)};
g.h.Tc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&rCa(this,b);this.j&&sCa(this,a.state);this.Md=a.state};
g.h.jd=function(){this.C.show();this.I.ea("paidcontentoverlayvisibilitychange",!0);this.I.Za(this.element,!0)};
g.h.Db=function(){this.C.hide();this.I.ea("paidcontentoverlayvisibilitychange",!1);this.I.Za(this.element,!1)};g.v(WL,g.W);WL.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
WL.prototype.onStateChange=function(a){tCa(a.state)?this.j.start():this.hide()};
WL.prototype.u=function(){this.message.style.display="block"};g.v(g.XL,g.jI);g.h=g.XL.prototype;g.h.show=function(){var a=this.hg();g.jI.prototype.show.call(this);this.xa&&(this.K.T(window,"blur",this.Db),this.K.T(document,"click",this.eS));a||this.ea("show",!0)};
g.h.hide=function(){var a=this.hg();g.jI.prototype.hide.call(this);uCa(this);a&&this.ea("show",!1)};
g.h.jd=function(a,b){this.u=a;this.X.show();b?(this.S||(this.S=this.K.T(this.I,"appresize",this.gL)),this.gL()):this.S&&(this.K.vc(this.S),this.S=void 0)};
g.h.gL=function(){var a=g.PK(this.I);this.u&&a.ir(this.element,this.u)};
g.h.Db=function(){var a=this.hg();uCa(this);this.X.hide();a&&this.ea("show",!1)};
g.h.eS=function(a){var b=ru(a);b&&(g.ki(this.element,b)||this.u&&g.ki(this.u,b)||!g.iJ(a))||this.Db()};
g.h.hg=function(){return this.tb&&4!==this.X.state};g.v(ZL,g.XL);ZL.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(vCa(this),this.jd()):(this.j&&this.wb(),this.Db()))};
ZL.prototype.qg=function(a){this.api.isMutedByMutedAutoplay()&&g.xF(a,2)&&this.Db()};
ZL.prototype.onClick=function(){this.api.unMute();this.wb()};
ZL.prototype.wb=function(){this.clicked||(this.clicked=!0,this.api.wb(this.element))};g.v(g.aM,g.iA);g.h=g.aM.prototype;g.h.init=function(){var a=this.api.yb();this.Vb(a);this.pn();this.xb()};
g.h.onVideoDataChange=function(a,b){this.gG!==b.videoId&&(this.gG=b.videoId,a=this.Jd,a.ra=b&&0<b.Pc.length?5E3:3E3,GL(a,512,!0),this.pn())};
g.h.VX=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.h.mp=function(){var a=this.api.Zg()&&this.api.Rk();return this.Zz||a||this.LF};
g.h.qj=function(){var a=!this.mp();g.N(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.h.Rz=function(a){try{if(!g.ki(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!mi(a);)a=a===this.api.getRootNode()?null:g.ji(a);return!!a};
g.h.Xj=function(a){var b=this.api.getRootNode();g.N(b,"ytp-autohide",a);g.N(b,"ytp-autohide-active",!0);this.kL.start(a?250:100);a&&(this.xC=!1,g.Fp(b,"ytp-touch-mode"));this.FE=!a;this.api.zy(!a)};
g.h.GG=function(){var a=this.api.getRootNode();g.N(a,"ytp-autohide-active",!1)};
g.h.xY=function(){this.yI=!0};
g.h.wY=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.yI=!1,this.zI&&this.vc(this.zI),0===this.Ex&&dM(this,a)?(this.MA(),this.cA.start(),this.zI=this.T(this.api.bb(),"touchmove",this.xY,void 0,!0)):this.cA.stop();!xCa(this)||!dM(this,a)||this.api.V().J&&this.api.V().N("embeds_web_enable_mobile_touch_fix")||$L(this);var b=this.CC.hg();if(mC&&yCa(this,a))b&&g.vu(a);else if(this.Jd.u||bM(this,ru(a))||this.CC.hg()||
(this.api.yb().isCued(),g.vu(a)),this.xC=!0,g.M(this.api.getRootNode(),"ytp-touch-mode"),this.Jd.Jl(),this.api.V().N("player_doubletap_to_seek")&&(b=this.api.yb(),!(!this.api.qf()||g.V(b,2)&&g.TK(this.api)||g.V(b,64)))){b=Date.now()-this.yN;this.Ex+=1;if(350>=b){this.Aw=!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.Ex-1);0<d&&d<b?(this.uu(-1,d,c,e),this.api.seekBy(-10*
this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.uu(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.vu(a)}this.yN=Date.now();this.DP.start()}};
g.h.sY=function(a){if(!yCa(this,a)){if(!xCa(this)&&dM(this,a)&&!this.cA.isActive()){if(g.TC(this.api.V())&&this.api.yb().isCued()){var b=void 0===b?{}:b;kx();dx();jx();Ww(!1);b.cttAuthInfo&&(Xw().cttAuthInfo=b.cttAuthInfo);ar("TIMING_AFT_KEYS",[]);b.Hha?mx({loadType:"hot"}):mx({loadType:"warm"});ar("TIMING_ACTION","");delete g.O("TIMING_INFO",{}).yt_lt;lx("_start",b.startTime,void 0);b=["pbs","pbu"];cx("").info.actionType="watch";b&&ar("TIMING_AFT_KEYS",b);ar("TIMING_ACTION","watch");$qa();b=Yw();
var c=$w();if("cold"===b.yt_lt||"cold"===c.loadType){var d=Sw(),e=Zw();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)f in e||lx(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=Sqa(k,b[k]))&&!Kqa($w(),k)&&(mw(c,k),mw(f,k),d=!0);d&&mx(f)}Ww(!0);b=g.O("TIMING_ACTION");g.Ka("ytglobal.timingready_")&&b&&Ax("_start")&&Dqa()&&Jqa()}$L(this);g.vu(a)}this.Aw&&(this.Aw=!1)}};
g.h.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Ds("embedsRequestStorageAccessResult",{resolved:!0});Bta(!0);$u();window.location.reload()},function(){g.Ds("embedsRequestStorageAccessResult",{resolved:!1});
a.Lu()})};
g.h.MA=function(){};
g.h.Dr=function(){};
g.h.uu=function(){};
g.h.zP=function(){};
g.h.Lu=function(){var a=this.api.yb();g.V(a,2)&&g.TK(this.api)||(g.sH(a)?this.api.pauseVideo():(this.api.oG(),this.api.playVideo(),this.jm&&document.activeElement===this.jm.C.element&&this.api.getRootNode().focus()))};
g.h.tY=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!bM(this,ru(a)))if(a=this.api.V(),this.api.V().N("player_doubletap_to_seek")&&this.Aw)this.Aw=!1;else if(a.Wa&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.ex(d)})}catch(d){this.ex(d)}};
g.h.ex=function(a){String(a).includes("fullscreen error")?g.Sv(a):g.S(a)};
g.h.uY=function(a){zCa(this,.3,a.scale);g.vu(a)};
g.h.vY=function(a){zCa(this,.1,a.scale)};
g.h.xb=function(){var a=this.api.bb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Jd.resize();g.N(b,"ytp-fullscreen",this.api.isFullscreen());g.N(b,"ytp-large-width-mode",c);g.N(b,"ytp-small-mode",this.Df());g.N(b,"ytp-tiny-mode",this.YA());g.N(b,"ytp-big-mode",this.bf());this.Le&&this.Le.resize(a)};
g.h.qg=function(a){this.Vb(a.state);this.pn()};
g.h.mF=function(){var a=!!this.gG&&!this.api.Ae(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(wRa&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=yL(this.api.sb());return a&&b.cI()}return a&&(c.yk||this.api.isFullscreen()||c.qb)};
g.h.pn=function(){var a=this.mF();this.vl!==a&&(this.vl=a,g.N(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.Vb=function(a){var b=a.isCued()||this.api.ll()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.BI&&this.vc(this.BI),this.BI=this.T(this.api.bb(),"touchstart",this.wY,void 0,b));var c=a.Jc()&&!g.V(a,32)||this.api.nx();GL(this.Jd,128,!c);c=3===this.api.getPresentingPlayerType();GL(this.Jd,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[v0.ENDED];else d=[],g.V(a,8)?d.push(v0.PLAYING):g.V(a,4)&&d.push(v0.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(v0.BUFFERING),g.V(a,32)&&
d.push(v0.SEEKING),g.V(a,64)&&d.push(v0.UNSTARTED);g.lc(this.YD,d)||(g.Gp(c,this.YD),this.YD=d,g.Ep(c,d));d=this.api.V();var e=g.V(a,2);g.N(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b||this.api.V().N("enable_post_ad_perception_survey_in_desktop")&&this.Pj());g.N(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.LF);g.V(a,128)&&!g.qC(d)?(this.Le||(this.Le=new g.PL(this.api),g.H(this,this.Le),g.ZK(this.api,this.Le.element,4)),this.Le.u(a.getData()),this.Le.show()):
this.Le&&(this.Le.dispose(),this.Le=null)};
g.h.Pj=function(){if(2!==this.api.getPresentingPlayerType())return!1;var a=yL(this.api.sb());return a.Pj()||s_(a)};
g.h.Zk=function(){return this.api.Zg()&&this.api.Rk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Ae()?(g.UK(this.api,!0),!0):!1};
g.h.onMutedAutoplayChange=function(a){this.LF=a;this.qj()};
g.h.bf=function(){return!1};
g.h.Df=function(){return!this.bf()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.h.YA=function(){return this.Df()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.h.Oi=function(){return this.xC};
g.h.Bo=function(){return null};
g.h.Xw=function(){return null};
g.h.Lj=function(){var a=this.api.bb().getPlayerSize();return new g.Jm(0,0,a.width,a.height)};
g.h.handleGlobalKeyDown=function(){return!1};
g.h.handleGlobalKeyUp=function(){return!1};
g.h.ir=function(){};
g.h.showControls=function(a){void 0!==a&&this.api.bb().zy(a)};
g.h.Jl=function(){};
g.h.BM=function(){return null};g.v(eM,g.iv);g.h=eM.prototype;g.h.Ow=function(){return 1E3*this.api.getDuration(this.qk,!1)};
g.h.stop=function(){this.j&&this.Lc.vc(this.j)};
g.h.Qb=function(){var a=this.api.getProgressState(this.qk);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.qk,!1)};this.ea("h")};
g.h.getProgressState=function(){return this.u};
g.h.Tc=function(a){g.xF(a,2)&&this.ea("g")};g.v(fM,g.W);fM.prototype.onClick=function(){this.I.La("BACK_CLICKED")};g.v(g.gM,g.W);g.gM.prototype.show=function(){g.W.prototype.show.call(this);g.xp(this.j)};
g.gM.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)};
g.gM.prototype.Dr=function(a){a?g.V(this.I.yb(),64)||hM(this,uI(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?hM(this,Pza(),"Stop live playback"):hM(this,Lza(),"Pause"))};g.v(kM,g.W);g.h=kM.prototype;g.h.jd=function(){this.I.V().N("player_new_info_card_format")&&g.Dp(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.qC(this.I.V())||(this.u.show(),g.Ku("iv-button-shown"))};
g.h.Db=function(){g.Ku("iv-button-hidden");this.u.hide()};
g.h.hg=function(){return this.tb&&4!==this.u.state};
g.h.qa=function(){this.j&&this.j();g.W.prototype.qa.call(this)};
g.h.sX=function(){g.Ku("iv-button-mouseover")};
g.h.onClicked=function(a){this.I.Zg();var b=g.Dp(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.Rk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(mM,g.W);g.h=mM.prototype;g.h.DQ=function(){this.I.Zg()&&this.I.Rk()&&this.hg()&&this.Db()};
g.h.pI=function(){this.Db();!this.I.Zg()&&this.I.V().N("enable_error_corrections_infocards_icon_web")&&this.zg.Db();g.Ku("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.I.La("innertubeCommand",this.onClickCommand):this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.fS=function(){g.Ku("iv-teaser-mouseover");this.j&&this.j.stop()};
g.h.TY=function(a){this.I.V().N("player_new_info_card_format")&&!g.qC(this.I.V())?this.zg.Db():this.I.V().N("enable_error_corrections_infocards_icon_web")&&this.zg.jd();this.j||!a||this.I.Rk()||this.u&&this.u.isActive()||(this.jd(a),g.Ku("iv-teaser-shown"))};
g.h.jd=function(a){this.onClickCommand=a.onClickCommand;this.Ka("text",a.teaserText);this.element.setAttribute("dir",g.Sp(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.qC(this.I.V())&&this.zg.Db();this.NI()},0,this);
this.u.start();jM(this.zg,!1);this.j=new g.L(this.Db,580+a.durationMs,this);this.j.start();this.D.push(this.Oa("mouseover",this.UJ,this));this.D.push(this.Oa("mouseout",this.TJ,this))};
g.h.NI=function(){if(!this.I.V().N("player_new_info_card_format")&&g.qC(this.I.V())&&this.tb){var a=this.zg.element.offsetLeft,b=g.$h("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.zg.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.h.bU=function(){g.qC(this.I.V())&&this.X.Df()&&this.tb&&this.S.start()};
g.h.UJ=function(){this.J.stop();this.j&&this.j.isActive()&&this.K.start()};
g.h.TJ=function(){this.K.stop();this.j&&!this.j.isActive()&&this.J.start()};
g.h.GX=function(){this.j&&this.j.stop()};
g.h.FX=function(){this.Db()};
g.h.Ti=function(){this.Db()};
g.h.Db=function(){!this.j||this.B&&this.B.isActive()||(g.Ku("iv-teaser-hidden"),this.C.hide(),g.Fp(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.vc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);jM(this.zg,!0);!this.I.Zg()&&this.I.V().N("enable_error_corrections_infocards_icon_web")&&this.zg.Db()},330,this),this.B.start())};
g.h.hg=function(){return this.tb&&4!==this.C.state};
g.h.qa=function(){var a=this.I.getRootNode();a&&g.Fp(a,"ytp-cards-teaser-shown");g.rf(this.u,this.B,this.j);g.W.prototype.qa.call(this)};var E0={},nM=(E0.BUTTON="ytp-button",E0.TITLE_NOTIFICATIONS="ytp-title-notifications",E0.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",E0.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",E0.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",E0);g.v(oM,g.W);oM.prototype.onClick=function(){this.api.wb(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.v(g.qM,g.W);g.qM.prototype.u=function(){g.M(this.element,"ytp-sb-subscribed")};
g.qM.prototype.B=function(){g.Fp(this.element,"ytp-sb-subscribed")};g.v(rM,g.W);g.h=rM.prototype;g.h.GH=function(){GCa(this);this.channel.classList.remove("ytp-title-expanded")};
g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.h.WE=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.Za(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Vh&&a.subscribed&&(this.u.show(),this.api.Za(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.h.zE=function(){this.Ka("flyoutUnfocusable","true");this.Ka("channelTitleFocusable","-1");this.B&&this.B.start()};
g.h.Ja=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Lb&&!!a.profilePicture:g.qC(b)&&(c=!!a.videoId&&!!a.Lb&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.C&&!(b.J&&200>this.api.getPlayerSize().width));var d=g.aD(this.api.V())+a.Lb;g.qC(b)&&(d=HCa(this,d));var e=a.Lb,f=a.profilePicture;b=g.qC(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.aD(k)+e;g.qC(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.MF("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.M(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.Fp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Za(this.j,c&&this.ra);this.subscribeButton&&(this.subscribeButton.channelId=a.rj);this.Ka("expandedTitle",a.expandedTitle);this.Ka("channelTitleLink",d);this.Ka("expandedSubtitle",
a.expandedSubtitle)};g.v(g.sM,g.jI);g.sM.prototype.If=function(a){this.Ka("label",a)};
g.sM.prototype.Ka=function(a,b){g.jI.prototype.Ka.call(this,a,b);this.ea("size-change")};g.v(vM,g.jI);vM.prototype.rO=function(){this.ea("size-change")};
vM.prototype.focus=function(){this.content.focus()};
vM.prototype.lO=function(){this.ea("back")};g.v(g.wM,vM);g.wM.prototype.yc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.ic(this.items,a,JCa);if(0<=b)return;b=~b;g.fc(this.items,b,0,a);g.hi(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.YG,this);this.menuItems.ea("size-change")};
g.wM.prototype.kf=function(a){a.unsubscribe("size-change",this.YG,this);this.isDisposed()||(g.Zb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))};
g.wM.prototype.YG=function(){this.menuItems.ea("size-change")};
g.wM.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.v(yM,g.sM);yM.prototype.j=function(a){g.wu(a)||39!==g.xu(a)||(this.element.click(),g.vu(a))};g.v(AM,g.sM);AM.prototype.onClick=function(){this.setValue(!this.checked);this.ea("select",this.checked)};
AM.prototype.getValue=function(){return this.checked};
AM.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(BM,g.W);g.h=BM.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.Ka("userInfoFocusable","0");this.Ka("userInfoFocusable2","0")};
g.h.hide=function(){g.W.prototype.hide.call(this);this.Ka("userInfoFocusable","-1");this.Ka("userInfoFocusable2","-1")};
g.h.gS=function(a){var b=ru(a),c=g.ki(this.element,b);a=this.j&&g.ki(this.j,b)&&g.iJ(a);b&&(c||a)||this.hide()};
g.h.hS=function(){g.uJ(function(){window.location.reload()},"user_info_panel",g.LC(this.Ta.V()))};
g.h.Ja=function(){var a=this.Ta.V();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.Vh};this.Ka("icon",Mza());this.Ka("watchingAsUsername",g.MF("Watching as $USER_NAME",a));this.Ka("watchingAsEmail",g.MF("($USER_EMAIL)",a))};g.v(CM,g.wM);g.h=CM.prototype;g.h.bX=function(){NL(this.Ws.element)};
g.h.nX=function(){EM(this,this.I.getDebugText(!0))&&hM(this.zc,mI())};
g.h.oX=function(){EM(this,this.I.getVideoEmbedCode())&&hM(this.zc,Gza());this.I.wb(this.Ij.element);rJ("EMBED",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.pX=function(){EM(this,this.I.getVideoUrl(!0,!0))&&hM(this.zc,rI());this.I.wb(this.getVideoUrl.element);rJ("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.qX=function(){EM(this,this.I.getVideoUrl(!1,!0))&&hM(this.zc,rI());this.I.wb(this.Mj.element);rJ("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.h.onLoopChange=function(a){var b;null==(b=this.Qi)||b.setValue(a)};
g.h.zX=function(){this.I.setLoopVideo(this.Qi.getValue());this.rb.Db();this.I.wb(this.Qi.element)};
g.h.oY=function(a){this.I.reportPlaybackIssue();if(g.KL(a,this.I,!OC(this.I.V()))){a=this.I;var b=a.app.getFeedbackProductData();a.La("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.rb.Db()};
g.h.GY=function(){this.I.isVideoInfoVisible()?this.I.hideVideoInfo():this.I.showVideoInfo();this.rb.Db()};
g.h.FY=function(){this.jj&&(this.Ty||(this.Ty=new BM(this.I,this.jj.element),g.H(this,this.Ty),g.ZK(this.I,this.Ty.element,4)),this.Ty.show(),this.rb.Db(),this.I.wb(this.jj.element))};
g.h.onVideoDataChange=function(a,b){LCa(this,b)};
g.h.jc=function(a){g.wM.prototype.jc.call(this,a);this.I.Za(this.Ij.element,a);this.I.Za(this.getVideoUrl.element,a);this.I.Za(this.Mj.element,a);this.Qi&&this.I.Za(this.Qi.element,a);this.jj&&this.I.Za(this.jj.element,a)};g.v(g.FM,g.XL);g.h=g.FM.prototype;g.h.show=function(){g.XL.prototype.show.call(this);this.Ru()};
g.h.hide=function(){g.XL.prototype.hide.call(this);1<this.j.length&&g.HM(this)};
g.h.Ru=function(){NCa(this);this.tb&&(MCa(this),g.Wm(this.element,this.size))};
g.h.Ch=function(){var a=this.j.pop();GM(this,a,this.j[this.j.length-1],!0)};
g.h.iS=function(a){if(!g.wu(a))switch(g.xu(a)){case 27:this.Db();g.vu(a);break;case 37:1<this.j.length&&this.Ch();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.XL.prototype.qa.call(this);this.C&&this.C.dispose();this.J&&this.J.dispose()};g.v(g.IM,g.FM);g.h=g.IM.prototype;g.h.kS=function(a){var b=ru(a);if(!(b&&(oi(b,"a")||oi(b,null,"ytp-no-contextmenu"))||this.tb)){var c;this.ma=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Bh(a.clientX,a.clientY):new g.Bh(0,0);this.Z.start()}};
g.h.TO=function(){this.Z.stop()};
g.h.YY=function(){this.open(this.ma)};
g.h.show=function(){this.D||(this.D=new CM(this.I,this.va,this,this.zc),g.H(this,this.D),g.DM(this,this.D));this.D.onLoopChange(this.I.getLoopVideo());g.FM.prototype.show.call(this);this.I.Za(this.element,!0);this.D.jc(!0);this.element.tabIndex=-1;this.element.focus()};
g.h.hide=function(){PCa(this);g.FM.prototype.hide.call(this);this.I.Za(this.element,!1);this.D&&this.D.jc(!1)};
g.h.YW=function(a){var b=ru(a);this.tb||b&&(oi(b,"a")||oi(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.N(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.jd();var c=document.body;b=new Cm(0,Infinity,Infinity,0);var d=Rh(c);for(var e=d.j.body,f=d.j.documentElement,k=Aba(d.j);c=yfa(c);)if(!(g.Ic&&0==c.clientWidth||g.zf&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Qm(c,"overflow")){var l=g.Um(c),m=new g.Bh(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=zba(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.Jm(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Sm(this.element,new g.Bh(d.left,d.top));g.hv(this.B);this.B.T(document,"contextmenu",this.hX);this.B.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.I,"pageTransition",this.jS)};
g.h.hX=function(a){if(!g.wu(a)){var b=ru(a);g.ki(this.element,b)||this.Db();this.I.V().disableNativeContextMenu&&g.vu(a)}};
g.h.onFullscreenToggled=function(){this.Db();QCa(this)};
g.h.jS=function(){this.Db()};g.v(g.JM,g.W);g.JM.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.wb(a.element);g.ua(f)})};
g.JM.prototype.Ja=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",Jb:!0,L:"ytp-svg-fill",W:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.Ka("title-attr","Copy link");var c=this.api.bb().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.u&&b.Ik&&!(b.D&&a.pfpChazalUi);g.N(this.element,"ytp-copylink-button-visible",this.visible);g.iI(this,this.visible);LM(this.tooltip);this.api.Za(this.element,this.visible&&this.ra)};
g.JM.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.api.Za(this.element,this.visible&&a)};
g.JM.prototype.qa=function(){g.W.prototype.qa.call(this);g.Fp(this.element,"ytp-copylink-button-visible")};g.v(MM,g.W);g.h=MM.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.xp(this.j)};
g.h.hide=function(){this.u.stop();g.Fp(this.element,"ytp-chapter-seek");g.Fp(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.h.uu=function(a,b,c,d){this.vu(a,d)};
g.h.vu=function(a,b){g.zp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.Fp(this.element,"ytp-chapter-seek");this.Ka("chapterSeekText","");a=g.MF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Ka("seekTime",a)};
g.h.cC=function(a,b){g.zp(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.v(NM,g.W);g.h=NM.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.xp(this.u)};
g.h.hide=function(){this.B.stop();g.Fp(this.element,"ytp-chapter-seek");g.Fp(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
g.h.uu=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.wb(e);g.zp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.bb().getPlayerSize().height;e=this.I.bb().getPlayerSize();e=e.width/3-3*e.height;this.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.bb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ca("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");TCa(this,d)};
g.h.vu=function(a,b){var c=this.I.bb().getPlayerSize();g.zp(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.cC=function(a,b){g.zp(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 vTa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(vTa).reduce(function(a,b){a[vTa[b]]=b;return a},{});
var wTa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(wTa).reduce(function(a,b){a[wTa[b]]=b;return a},{});
var xTa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(xTa).reduce(function(a,b){a[xTa[b]]=b;return a},{});var F0,yTa;F0=[{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"}];yTa=[{option:0,text:OM(0)},{option:.25,text:OM(.25)},{option:.5,text:OM(.5)},{option:.75,text:OM(.75)},{option:1,text:OM(1)}];
g.SM=[{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:F0},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:OM(.5)},{option:-1,text:OM(.75)},{option:0,text:OM(1)},{option:1,text:OM(1.5)},{option:2,text:OM(2)},
{option:3,text:OM(3)},{option:4,text:OM(4)}]},{option:"background",text:"Background color",options:F0},{option:"backgroundOpacity",text:"Background opacity",options:yTa},{option:"windowColor",text:"Window color",options:F0},{option:"windowOpacity",text:"Window opacity",options:yTa},{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:OM(.25)},{option:.5,text:OM(.5)},{option:.75,text:OM(.75)},{option:1,text:OM(1)}]}];g.v(g.RM,g.iA);g.h=g.RM.prototype;
g.h.LM=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.Zf&&(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);iM(this.zc,f,!1);this.api.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);iM(this.zc,f,!0);this.api.setVolume(f);k=f=!0;break;case 36:this.api.qf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),k=f=!0);break;case 35:this.api.qf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),k=f=!0)}}b&&QM(this,!0);(b||k)&&this.Jd.Jl();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.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.La("onKeyPress",a))};
g.h.MM=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.XK(this.api.sb());c&&(c=c.rp)&&c.tb&&(c.HM(a),b=!0);9===a&&(QM(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.Zf)return k;var l=g.XK(this.api.sb());if(l&&(l=l.rp)&&l.tb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=l.GM(a)}e.D||k||(k=f||String.fromCharCode(a).toLowerCase(),this.u+=k,0==="awesome".indexOf(this.u)?(k=!0,7===this.u.length&&mia(this.api.getRootNode(),"ytp-color-party")):(this.u=k,k=0==="awesome".indexOf(this.u)));if(!k){f=(f=this.api.getVideoData())?f.yk:[];l=GQ?d:c;switch(a){case 80:b&&
!e.xa&&(hM(this.zc,Oza(),"Previous"),this.api.previousVideo(),k=!0);break;case 78:b&&!e.xa&&(hM(this.zc,sI(),"Next"),this.api.nextVideo(),k=!0);break;case 74:this.api.qf()&&(this.api.startSeekCsiAction(),this.j?this.j.vu(-1,10):hM(this.zc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),k=!0);break;case 76:this.api.qf()&&(this.api.startSeekCsiAction(),this.j?this.j.vu(1,10):hM(this.zc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),k=!0);break;case 37:this.api.qf()&&(this.api.startSeekCsiAction(),l?(l=WCa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.cC(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(this.j?this.j.vu(-1,5):hM(this.zc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),k=!0));break;case 39:this.api.qf()&&(this.api.startSeekCsiAction(),l?(l=VCa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.cC(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(null!=this.j?this.j.vu(1,5):hM(this.zc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),iM(this.zc,this.api.getVolume(),!1)):(this.api.mute(),iM(this.zc,0,!0));k=!0;break;case 32:case 75:e.xa||(k=!g.sH(this.api.yb()),this.zc.Dr(k),k?this.api.playVideo():this.api.pauseVideo(),k=!0);break;case 190:b?e.Dc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),ACa(this.zc,!1),k=!0):this.api.qf()&&(ZCa(this,1),k=!0);break;case 188:b?e.Dc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k-
.25,!0),ACa(this.zc,!0),k=!0):this.api.qf()&&(ZCa(this,-1),k=!0);break;case 70:hCa(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.tL(this.api.sb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),BCa(this.zc,!e||e&&!e.displayName),k=!0);break;case 79:TM(this,"textOpacity");break;case 87:TM(this,"windowOpacity");break;case 187:case 61:TM(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:TM(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.qf()&&(this.api.startSeekCsiAction(),
a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),k=!0);k&&this.Jd.Jl()}return k};
g.h.qa=function(){g.zp(this.B);g.iA.prototype.qa.call(this)};g.v(UM,g.W);UM.prototype.Ja=function(){var a=g.qC(this.I.V())&&g.WK(this.I)&&g.V(this.I.yb(),128),b=this.I.getPlayerSize();this.visible=this.j.Df()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.V().pfpChazalUi);g.N(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&LM(this.tooltip);this.I.Za(this.element,this.visible&&this.ra)};
UM.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.I.Za(this.element,this.visible&&a)};
UM.prototype.qa=function(){g.W.prototype.qa.call(this);g.Fp(this.element,"ytp-overflow-button-visible")};g.v(VM,g.XL);g.h=VM.prototype;g.h.lS=function(a){a=ru(a);g.ki(this.element,a)&&(g.ki(this.j,a)||g.ki(this.closeButton,a)||YL(this))};
g.h.Db=function(){g.XL.prototype.Db.call(this);this.tooltip.Dj(this.element)};
g.h.show=function(){this.tb&&this.I.ea("OVERFLOW_PANEL_OPENED");g.XL.prototype.show.call(this);this.element.setAttribute("aria-modal","true");$Ca(this,!0)};
g.h.hide=function(){g.XL.prototype.hide.call(this);this.element.removeAttribute("aria-modal");$Ca(this,!1)};
g.h.onFullscreenToggled=function(a){!a&&this.hg()&&YL(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.tb){b.focus();break}};g.v(XM,g.W);XM.prototype.onClick=function(a){g.KL(a,this.api)&&this.api.playVideoAt(this.index)};g.v(YM,g.XL);g.h=YM.prototype;g.h.show=function(){g.XL.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.wD);this.B.T(this.api,"onPlaylistUpdate",this.wD);this.wD()};
g.h.hide=function(){g.XL.prototype.hide.call(this);g.hv(this.B);this.updatePlaylist(null)};
g.h.wD=function(){this.updatePlaylist(this.api.getPlaylist())};
g.h.gC=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 XM(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.XY=function(a){var b=this.api.getVideoUrl(!0);g.LL(b,this.api,a)};
g.h.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.gC,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.gC,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.MF(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.gC()}else this.tb&&this.hide();
else this.playlist&&this.gC()};
g.h.focus=function(){this.selected.focus()};
g.h.qa=function(){this.hide();g.XL.prototype.qa.call(this)};g.v(ZM,g.W);
ZM.prototype.Ja=function(){var a=g.qC(this.api.V());g.N(this.element,"ytp-playlist-menu-button-tiny",400>this.api.bb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.MF("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.MF("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.tb||(this.show(),LM(this.tooltip)),this.visible=!0,this.jc(!0)):
this.tb&&(this.hide(),this.jc(!1),LM(this.tooltip))};
ZM.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.api.Za(this.element,this.visible&&a)};
ZM.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ja,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ja,this);this.Ja()};g.v($M,g.W);g.h=$M.prototype;
g.h.xD=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.Ym(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.fI({G:"span",L:"ytp-promotooltip-details-icon",
U:[zTa[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.fI({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.gi(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.Ym(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.Ym(this.acceptButton,e);n=this.tooltipRenderer.dismissButton;p=!1;var t,w,x;(null==n?0:null==(t=n.buttonRenderer)?0:null==(w=t.text)?0:null==(x=w.runs)?0:x.length)&&n.buttonRenderer.text.runs[0].text&&
(this.update({dismissButtonText:n.buttonRenderer.text.runs[0].text.toString()}),p=!0);g.Ym(this.dismissButton,p)}b&&(this.B=b);this.j=aDa(this);this.D=!1;this.I.V().N("web_player_hide_nitrate_promo_tooltip")||g.iI(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.Se()?g.iI(this,!1):(b=g.Xm(this.j),b.width&&b.height?(this.K.ir(this.element,this.j),t=this.I.bb().getPlayerSize().height-g.Xm(this.element).height-
b.height-12,this.element.style.top=t+"px",t=this.Ca("ytp-promotooltip-pointer"),w=g.Vm(this.j,this.I.getRootNode()),x=Number(this.element.style.left.replace(/[^\d\.]/g,"")),n=this.I.isFullscreen()?18:12,t.style.left=w.x-x+b.width/2-n+"px"):g.iI(this,!1));this.J||(this.J=!0,bN(this,0));this.u&&this.I.Za(this.element,this.tb)}};
g.h.aX=function(){aN(this);this.D=!0};
g.h.oW=function(){this.C=!0;bN(this,1);this.I.ea("promotooltipacceptbuttonclicked",this.acceptButton);aN(this);this.u&&this.I.wb(this.acceptButton)};
g.h.gX=function(){this.C=!0;bN(this,2);aN(this);this.u&&this.I.wb(this.dismissButton)};
g.h.mS=function(a){if(1===this.I.getPresentingPlayerType()){var b=!0,c=g.$h("ytp-ad-overlay-ad-info-dialog-container"),d=ru(a);if(this.B&&d&&g.ki(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=bDa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.ki(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.ki(this.element,d))}this.j&&this.tb&&!c&&(!d||b&&g.iJ(a))&&(this.C=!0,aN(this))}}};
g.h.xb=function(){this.D||(this.j||(this.j=aDa(this)),this.xD())};
var zTa={"ytp-settings-button":g.wI()};g.v(cN,g.W);cN.prototype.onStateChange=function(a){g.iI(this,g.V(a.state,2))};
cN.prototype.onClick=function(){this.I.yb();this.I.playVideo()};g.v(g.dN,g.W);g.dN.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(cDa)}catch(e){e instanceof Error&&cDa(e)}else this.j.Zk(),YL(this.B,this.element,!1);this.api.wb(this.element)};
g.dN.prototype.Ja=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.qC(a)&&g.WK(this.api)&&g.V(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",Jb:!0,L:"ytp-svg-fill",W:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});a=a.disableSharing&&2!==this.api.getPresentingPlayerType()||
!b.showShareButton||b.Ik||c||b.D&&a.pfpChazalUi;c=this.api.bb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.N(this.element,"ytp-share-button-visible",this.visible);g.iI(this,this.visible);LM(this.tooltip);this.api.Za(this.element,this.visible&&this.ra)};
g.dN.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.api.Za(this.element,this.visible&&a)};
g.dN.prototype.qa=function(){g.W.prototype.qa.call(this);g.Fp(this.element,"ytp-share-button-visible")};g.v(g.eN,g.XL);g.h=g.eN.prototype;g.h.nS=function(a){a=ru(a);g.ki(this.D,a)||g.ki(this.closeButton,a)||YL(this)};
g.h.Db=function(){g.XL.prototype.Db.call(this);this.tooltip.Dj(this.element)};
g.h.show=function(){var a=this.tb;g.XL.prototype.show.call(this);this.Ja();a||this.api.La("onSharePanelOpened")};
g.h.PV=function(){this.tb&&this.Ja()};
g.h.Ja=function(){var a=this;g.M(this.element,"ytp-share-panel-loading");g.Fp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&HJ(this.api.dl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Fp(a.element,"ytp-share-panel-loading"),eDa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.BC(this.api.V())&&(b=g.wj(b,g.lK({},"emb_share")));this.Ka("link",b);this.Ka("linkText",b);this.Ka("shareLinkWithUrl",g.MF("Share link $URL",{URL:b}));NL(this.B)};
g.h.onFullscreenToggled=function(a){!a&&this.hg()&&YL(this)};
g.h.focus=function(){this.B.focus()};
g.h.qa=function(){g.XL.prototype.qa.call(this);dDa(this)};g.v(hN,g.W);g.h=hN.prototype;g.h.HG=function(){};
g.h.IG=function(){};
g.h.Fy=function(){return!0};
g.h.c_=function(){if(this.expanded){this.va.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.va.hide();this.Va=34+a;g.N(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Va)+"px";this.ma.start()};
g.h.wU=function(){this.badge.element.style.width=(this.expanded?this.Va:34)+"px";this.Ha.start()};
g.h.F_=function(){g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.h.zi=function(){this.Fy()?this.S.show():this.S.hide();fDa(this)};
g.h.oS=function(){this.enabled=!1;this.zi()};
g.h.E_=function(){this.zi()};
g.h.SW=function(a){this.Qa=1===a;this.zi();g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.h.lX=function(){g.N(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.zi()};g.v(iN,hN);g.h=iN.prototype;g.h.qa=function(){jN(this);hN.prototype.qa.call(this)};
g.h.HG=function(a){a.target!==this.dismissButton.element&&(hDa(this,!1),this.I.La("innertubeCommand",this.onClickCommand))};
g.h.IG=function(){this.B=!0;hDa(this,!0);this.zi()};
g.h.XX=function(a){this.Da=a;this.zi()};
g.h.QX=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.xa&&(this.X=a,a||(a=3+this.I.getCurrentTime(),this.Rd(a)))};
g.h.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.X=this.xa=this.u=this.K=!1,jN(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Da=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.hk(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.I.hk(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.Pw(a.text);var k;if(c=null==(k=a.dismissButton)?void 0:k.a11yLabel)this.Ra=g.Pw(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;kE(b)?this.X=this.xa=!0:this.Rd()}gDa(this);gN(this);this.zi()};
g.h.Fy=function(){return!this.Da&&this.enabled&&!this.B&&!this.Wa.Df()&&!this.Qa&&!this.X&&(this.u||this.j)};
g.h.Ne=function(a){(this.u=a)?(fN(this),gN(this,!1)):(jN(this),this.Z.start());this.zi()};
g.h.Rd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Iw(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Iw(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.I.Rd(b)};g.v(kN,g.XL);kN.prototype.show=function(){g.XL.prototype.show.call(this);this.C.start()};
kN.prototype.hide=function(){g.XL.prototype.hide.call(this);this.C.stop()};
kN.prototype.Go=function(a,b){"dataloaded"===a&&((this.B=b.SK,this.j=b.QK,isNaN(this.B)||isNaN(this.j))?this.D&&(this.I.jf("intro"),this.I.removeEventListener(g.Kw("intro"),this.ma),this.I.removeEventListener(g.Lw("intro"),this.Z),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.Kw("intro"),this.ma),this.I.addEventListener(g.Lw("intro"),this.Z),this.I.addEventListener("onShowControls",this.J),a=new g.Iw(this.B,this.j,{priority:9,namespace:"intro"}),
this.I.Rd([a]),this.D=!0))};g.v(lN,g.W);lN.prototype.onClick=function(){this.I.qp()};
lN.prototype.Ja=function(){var a=!0;g.qC(this.I.V())&&(a=a&&480<=this.I.bb().getPlayerSize().width);g.iI(this,a);this.Ka("icon",this.I.Bf()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:{G:"svg",
W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};new xs("yt.autonav");g.v(mN,g.W);g.h=mN.prototype;
g.h.Gv=function(){var a;if(a=3!==this.I.getPresentingPlayerType()&&g.$K(this.I)&&400<=this.I.bb().getPlayerSize().width)a=this.I.getVideoData(),a=this.I.V().N("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.aR;if(a)this.j||(this.j=!0,g.iI(this,this.j),this.I.V().N("web_player_autonav_toggle_always_listen")||iDa(this),a=this.I.getVideoData(),this.VJ(a.autonavState),this.I.Za(this.element,this.j));else if(this.j=!1,g.iI(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.vc(b.value)}};
g.h.VJ=function(a){kDa(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.O("AUTONAV_OFF_BY_DEFAULT")?!1:!g.rs(0,140)),this.isChecked=a);jDa(this)};
g.h.onClick=function(){this.isChecked=!this.isChecked;this.I.fC(this.isChecked?2:1);jDa(this);if(kDa(this)){var a=this.I.getVideoData().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.I.La("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.I.La("innertubeCommand",a.onDisabledCommand)}this.I.wb(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.v(g.oN,g.W);g.oN.prototype.qa=function(){this.ctx=null;g.W.prototype.qa.call(this)};g.v(pN,g.W);pN.prototype.onClick=function(){this.I.La("innertubeCommand",this.j)};
pN.prototype.K=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
pN.prototype.J=function(){this.C.disabled=null==this.j;g.N(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.Qb()};g.v(qN,pN);qN.prototype.onClickCommand=function(a){(null==a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Qb()};
qN.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.iR)?void 0:c.command;pN.prototype.J.call(this)};
qN.prototype.Qb=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=PM(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.B)this.I.La("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.B=!1}else this.B=!0;pN.prototype.K.call(this,a)};g.v(g.sN,g.W);g.sN.prototype.Tc=function(a){g.V(a.state,32)?tN(this,this.api.kh()):this.tb&&(g.V(a.state,16)||g.V(a.state,1))||this.j.hide()};
g.sN.prototype.Hd=function(){var a=this.api.yb();(g.V(a,32)||g.V(a,16))&&uN(this)};
g.sN.prototype.D=function(){this.B=NaN;uN(this)};
g.sN.prototype.hide=function(){this.u&&tN(this,null);g.W.prototype.hide.call(this)};g.v(vN,g.W);vN.prototype.onClick=function(){this.Ta.wb(this.element);this.Ta.La("onFullerscreenEduClicked")};
vN.prototype.Ja=function(){this.Ta.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Ta.Za(this.element,this.Ta.isFullscreen()&&!this.u)};g.v(g.wN,g.W);g.h=g.wN.prototype;g.h.onClick=function(){var a=this;if(this.I.V().Wa||this.I.V().J){this.I.wb(this.element);try{this.I.toggleFullscreen().catch(function(b){a.ex(b)})}catch(b){this.ex(b)}}else YL(this.message,this.element,!0)};
g.h.ex=function(a){String(a).includes("fullscreen error")?g.Sv(a):g.S(a);this.QG()};
g.h.QG=function(){this.disable();this.message.jd(this.element,!0)};
g.h.Rm=function(){cv()===this.I.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.h.UT=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.QG()}};
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.XL(this.I,{G:"div",Fa:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://web.archive.org/web/20220406233357/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.jt(a.message,c)});
g.ZK(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.Ja=function(){var a=hCa(this.I),b=this.I.V().J&&250>this.I.getPlayerSize().width;g.iI(this,a&&!b);this.I.Za(this.element,this.tb)};
g.h.hj=function(a){if(a){var b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=OL(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",U:[{G:"path",
Jb:!0,L:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=OL(this.I,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});LM(this.u.kc())};
g.h.qa=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.qa.call(this)};g.v(xN,pN);xN.prototype.onClickCommand=function(a){(null==a?0:a.changeMarkersVisibilityCommand)&&this.Qb()};
xN.prototype.updateVideoData=function(){var a,b;this.j=null==(a=this.u.Hb)?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;pN.prototype.J.call(this)};
xN.prototype.Qb=function(){var a="",b=this.u.X,c,d=null==(c=this.u.Hb)?void 0:c.headerTitle;c=d?g.Pw(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.La("innertubeCommand",b[d].onActiveCommand),this.currentIndex=d));pN.prototype.K.call(this,a)};g.v(yN,g.W);yN.prototype.onClick=function(){this.I.La("onCollapseMiniplayer");this.I.wb(this.element)};
yN.prototype.Ja=function(){this.visible=!this.I.isFullscreen();g.iI(this,this.visible);this.I.Za(this.element,this.visible&&this.ra)};
yN.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.I.Za(this.element,this.visible&&a)};g.v(zN,g.W);zN.prototype.onVideoDataChange=function(a){this.Ja("newdata"===a)};
zN.prototype.Ja=function(a){var b=this.I.getVideoData(),c=b.Pc,d=this.I.yb();d=(g.sH(d)||g.V(d,4))&&0<c.length;g.iI(this,d);a&&(this.j=!0);if(d){this.j&&g.xp(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.MF("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.Re("default.jpg")});LM(this.tooltip)}else this.u.stop()};
zN.prototype.B=function(){KM(this.tooltip,this.element,"More cameras available");this.j=!1};g.v(AN,g.XL);g.h=AN.prototype;g.h.show=function(){var a=this.tb;g.XL.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Ja),this.B.T(this.api,"videodatachange",this.Ja),this.Ja())};
g.h.hide=function(){this.B&&(g.hv(this.B),g.XL.prototype.hide.call(this))};
g.h.Ja=function(){var a=this,b=this.api.getVideoData(),c=b.Pc,d,e={};for(d=0;d<c.length;e={KC:e.KC},d++){var f=this.j[d];f||(f=new g.W({G:"button",Fa:["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.KC=d,f.Oa("click",function(n){return function(){var p=n.KC,q=a.api.getVideoData(),t=a.api,w=q.Pc[p];p=g.aL(t.app,1).getVideoData();q=t.getCurrentTime();w.id===p.videoId?(w=g.aL(t.app,
1),g.aL(t.app)!==w&&(t.app.Vm(),p.isLivePlayback||t.seekTo(q))):t.app.loadVideoByPlayerVars({videoId:w.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.xK}}}},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=NC(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.sH(d)||g.V(d,4)||b||!this.hg()||YL(this)};
g.h.focus=function(){for(var a=this.api.getVideoData(),b=a.Pc,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.h.qa=function(){g.rf(this.j);g.XL.prototype.qa.call(this)};g.v(BN,g.G);BN.prototype.j=function(){var a=(0,g.R)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.Up(ATa,a));1>a&&this.delay.start()};
var ATa=new g.Tp(0,0,.4,0,.2,1,1,1),pDa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.DN,g.W);g.h=g.DN.prototype;g.h.WJ=function(a){this.visible=300<=a.width;g.iI(this,this.visible);this.I.Za(this.element,this.visible&&this.ra)};
g.h.HX=function(){this.I.V().va?this.I.isMuted()?this.I.unMute():this.I.mute():YL(this.message,this.element,!0);this.I.wb(this.element)};
g.h.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.I.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.X;isNaN(f)?sDa(this,a):CN(this.ma,function(l){sDa(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)?tDa(this,d):CN(this.S,function(l){tDa(c,k+(c.C-k)*l)},250);
this.C=d}e.va&&(e=OL(this.I,"Mute","m"),d=OL(this.I,"Unmute","m"),this.Ka("title",b?d:e),LM(this.tooltip))};
g.h.jc=function(a){g.W.prototype.jc.call(this,a);this.I.Za(this.element,this.visible&&a)};
var qDa=["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"],rDa=["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.v(EN,g.W);EN.prototype.onClick=function(){this.I.togglePictureInPicture()};g.v(g.FN,g.W);g.FN.prototype.onStateChange=function(a){uDa(this,a.state);a=g.V(a.state,2);VC(this.I.V())&&(!this.j&&!a||this.j&&a?(this.hide(),this.I.Za(this.element,!1)):(this.show(),this.I.Za(this.element,!0)))};
g.FN.prototype.onVideoDataChange=function(){g.N(this.element,"ytp-play-button-playlist",g.WK(this.I))};
g.FN.prototype.Lu=function(a){this.I.wb(this.element);if(g.sH(this.I.yb()))this.I.pauseVideo();else{if(this.I.Se()&&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});nx("direct_playback",b)}this.I.Li().timerName="direct_playback";this.I.playVideo()}!this.I.V().N("miniplayer_disable_play_button_click_focus_killswitch")&&this.I.Se()&&a&&"click"===
a.type&&this.element.blur()};g.v(g.HN,g.W);g.h=g.HN.prototype;g.h.onVideoDataChange=function(){wDa(this);this.C&&(this.vc(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.pS);this.B=xDa(this);GN(this);this.yD(this.I.bb().getPlayerSize())};
g.h.yD=function(a){a=void 0===a?this.I.bb().getPlayerSize():a;a=(g.WK(this.I)||this.j&&g.$K(this.I)||yDa(this))&&(this.j||400<=a.width);g.iI(this,a);this.I.Za(this.element,a)};
g.h.onClick=function(a){this.I.wb(this.element);var b=!0;this.isLinkable?b=g.KL(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.pS=function(){var a=xDa(this);a!==this.B&&(this.B=a,GN(this))};
g.h.qa=function(){this.u&&(this.u(),this.u=null);wDa(this);g.W.prototype.qa.call(this)};g.v(IN,g.W);g.h=IN.prototype;g.h.qS=function(a){this.ZJ(a.pageX);this.YJ(a.pageX+a.deltaX);this.XJ()};
g.h.ZJ=function(a){this.ma=a};
g.h.YJ=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.Mm(this.B,"transform","translateX("+this.C+"px)"),a=g.hJ(a),this.update({seekTime:a})):this.C=this.D))};
g.h.XJ=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.xa=this.api.getCurrentTime();this.isEnabled=!0;this.va=this.T(this.element,"wheel",this.qS)};
g.h.disable=function(){this.hide();this.isEnabled=!1;this.va&&this.vc(this.va)};
g.h.reset=function(){this.disable();this.u=[];this.X=!1};
g.h.qa=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.W.prototype.qa.call(this)};
g.v(zDa,g.W);g.v(KN,g.W);g.v(BDa,g.W);g.v(LN,g.W);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.xh(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.v(PN,g.W);g.v(g.RN,g.jI);g.h=g.RN.prototype;g.h.xb=function(){g.UN(this);XN(this);TN(this,this.X);var a;null==(a=this.u)||JN(a,this.api.getCurrentTime())};
g.h.onClickCommand=function(a){if(a=null==a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&VN(this,b)}};
g.h.WY=function(a){this.api.La("innertubeCommand",this.Qd[a.id])};
g.h.Qb=function(){XN(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.ZB()};
g.h.kX=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.bF();b=!0;break;case 27:var d;(null==(d=this.u)?0:d.isEnabled)&&this.fM();b=!0}b&&g.vu(a)}};
g.h.sS=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.Go=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.h.XU=function(){this.Go("newdata",this.api.getVideoData())};
g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(FE(a)||$N(this)?this.Ub=!1:this.Ub=a.allowLiveDvr,g.N(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!FE(a))));VDa(this,this.api.qf());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;cO(this);for(YN(this,this.ma,this.ib);0<this.J.length;)this.J.pop().dispose();this.heatMarkersDecorations=[];this.qb={};var d;null==(d=this.u)||d.reset();hO(this)}else this.ZB();g.kP(this.tooltip)}if(a){d=a.watchNextResponse;
if(d=!a.isLivePlayback&&d)d=this.api.getVideoData(),b=d.Yv,d=null!=d.multiMarkersPlayerBarRenderer||null!=b&&0<b.length||0<d.rr.length;if(!d||this.Ib||this.Ib)FDa(this),SN(this);else{d=this.api.getVideoData();b=d.multiMarkersPlayerBarRenderer;if(null==b?0:b.markersMap){d=this.api.getVideoData();var e;d.kq=(null==(e=b.visibleOnLoad)?void 0:e.key)||d.kq;e=g.r(b.markersMap);for(b=e.next();!b.done;b=e.next())b=b.value,b.key&&b.value&&(this.qb[b.key]=b.value);null!=d.kq&&VN(this,d.kq)}else{if(e=this.api.V().N("web_key_moments_markers")&&
0<d.rr.length){e=g.B0.getState().entities;b=g.r(d.rr);for(var f=b.next();!f.done;f=b.next()){c=f.value;var k=void 0;f=null==(k=e.macroMarkersListEntity?e.macroMarkersListEntity[c]||null:null)?void 0:k.markersList;k=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(k=f)?void 0:k.markerType)&&(this.bd[c]=f)}c=!1;b=g.GK("visibility_override","markersVisibilityOverrideEntity");e=e.markersVisibilityOverrideEntity?e.markersVisibilityOverrideEntity[b]||null:null;e=g.r((null==e?void 0:e.videoId)===d.videoId&&(null==
e?0:e.visibilityOverrideMarkersKey)?e.visibilityOverrideMarkersKey:d.visibleOnLoadKeys);for(f=e.next();!f.done;f=e.next())if(b=f.value,f=void 0,k=null==(f=this.bd[b])?void 0:f.markers){SN(this);c=g.r(k);for(f=c.next();!f.done;f=c.next()){k=f.value;f=new PN;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)}TN(this,this.X);c=this.X;f=this.Qd;k=[];l=null;for(m=0;m<c.length;m++){var n=c[m].timeRangeStartMillis;if(!isNaN(n)&&c[m].onActiveCommand){var p=void 0,q=null!=(p=c[m].j)?p:1E4;l&&l.end>n&&(l.end=n);n=XCa(n,n+q);k.push(n);l=n;f[n.id]=c[m].onActiveCommand}}this.api.Rd(k);this.Hb=this.bd[b];c=!0}e=c}if(e)d.CN=this.X;else if(e=d.Yv)HDa(this,e),d.yk=this.j,GDa(this)}a.wK&&0===this.J.length&&(a=a.wK,d=a.key,a.isVisible&&d&&VN(this,d))}}XN(this)};
g.h.rS=function(a){this.Z&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.Z.cancel()};
g.h.aK=function(a){var b=!!this.Ib!==!!a,c=this.Ib;this.Ib=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",Kza()),this.Ka("clipendicon",Kza()),this.Ka("clipstarttitle",null),this.Ka("clipendtitle",null)):(this.Ka("clipstarticon",Fza()),this.Ka("clipendicon",Eza()),this.Ka("clipstarttitle","Watch full video"),this.Ka("clipendtitle","Watch full video")),
b&&(this.updateVideoData(this.api.getVideoData(),!0),g.UN(this)),cO(this));YN(this,this.ma,this.ib)};
g.h.aY=function(a,b,c){var d=g.Um(this.element),e=WN(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=oJ(this.B,Number(c.getAttribute("data-position")),0)*e+g.Um(this.Ic).x);this.Lb.x=a-d.x;this.Lb.y=b-d.y;a=WN(this);c=bO(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:FE(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.xa,m=oJ(this.B,m)*WN(this).j+b,a.position=m),
b=this.B.u;$N(this)&&(b=this.B.u);m=f||g.hJ(this.Ub?c-this.B.j:c-b);b=a.position+this.Pf;c-=this.api.rd();if(this.api.kh()){if(1<this.j.length){d=aO(this,this.Lb.x,!0);if(!this.Ib)for(e=0;e<this.j.length;)g.N(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.X),p=n.next();!p.done;p=n.next())p=p.value,g.N(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.N(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.Hb?(d=UCa(this.X,1E3*c),d=null!=d?this.X[d].title:""):(d=PM(this.j,1E3*c),d=this.j[d].title):(d=PM(this.j,1E3*c),d=this.j[d].title);d||(l+=16*e);.6===this.tooltip.scale&&(l=d?110:126);e=PM(this.j,1E3*c);this.Xa=ODa(this,c,e)?e:ODa(this,c,e+1)?e+1:-1;g.N(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Xa&&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.hJ(n.decorationTimeMillis/1E3),e=!0);this.Vc!==e&&(this.Vc=e,this.api.Za(this.Pc,this.Vc));g.N(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.Ia||(this.Ia=!0,this.api.Za(this.va,this.Ia)));var q;if(QN(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.S)){var t;l-=(null==(t=this.u)?0:t.isEnabled)?dO(this):this.S}oEa(this.tooltip,b,c,m,!!f,l,d,n)}else oEa(this.tooltip,b,c,m,!!f,l);g.M(this.api.getRootNode(),"ytp-progress-bar-hover");MDa(this)};
g.h.ZX=function(){g.kP(this.tooltip);g.Fp(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ia&&(this.Ia=!1,this.api.Za(this.va,this.Ia))};
g.h.YX=function(a,b){QN(this)&&this.u&&(this.u.X?JN(this.u,this.api.getCurrentTime()):ADa(this.u),this.u.show(),g.N(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.K&&(this.K.dispose(),this.K=null);this.pd=b;1<this.j.length&&-1!==this.Xa?this.api.seekTo(this.j[this.Xa].startTime/1E3,!1):this.api.seekTo(bO(this,WN(this)),!1);g.M(this.element,"ytp-drag");(this.Vd=g.sH(this.api.yb()))&&this.api.pauseVideo()};
g.h.bY=function(){var a=this;if(QN(this)&&this.u){var b=dO(this);this.S>=.5*b?(this.u.enable(),JN(this.u,this.api.getCurrentTime()),UDa(this,b)):hO(this);g.N(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled)}else if(this.Tb=0,g.Fp(this.element,"ytp-pull-ui"),g.Fp(this.element,"ytp-pulling"),this.K&&(this.K.dispose(),this.K=null),0<this.S){var c=(0,g.R)();this.K=new g.vp(function(){var f=a.S,k=WN(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.Qa&&(a.Qa=!1,a.api.Za(a.fb,a.Qa))});
this.K.start()}if(g.V(this.api.yb(),32)||3===this.api.getPresentingPlayerType()){this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.Xa)this.api.seekTo(this.j[this.Xa].startTime/1E3);else{b=bO(this,WN(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.wb(this.Pc)}g.Fp(this.element,"ytp-drag");this.Vd&&!g.V(this.api.yb(),2)&&this.api.playVideo()}};
g.h.cY=function(a,b){var c=this,d=!1,e=!1;a=WN(this);1===this.j.length&&!QN(this)&&3600<=mJ(this.B)&&(PDa(this,this.pd-b-10,a.position,a.B),e=!0,d=this.S>.1*(this.C?60:40),a=WN(this));g.N(this.element,"ytp-pull-ui",e);d&&g.M(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Tb!==d&&(this.Tb=d,this.K&&(this.K.dispose(),this.K=null),d)){var f=(0,g.R)();this.K=new g.vp(function(){var l=c.D*(c.Wa-1);c.xa=g.xh(c.xa+c.Tb*((0,g.R)()-f)*.3,0,l);ZN(c);c.api.seekTo(bO(c,
WN(c)),!1);0<c.xa&&c.xa<l&&c.K.start()});
this.K.start()}a=bO(this,a);this.api.seekTo(a,!1);var k;QN(this)&&(null==(k=this.u)?0:k.X)&&(k=dO(this),b=this.pd-b-10,this.u.isEnabled&&(b=k+b,JN(this.u,a)),this.S=g.xh(b,0,k),UDa(this,this.S))};
g.h.oO=function(){this.Ib||(this.Ka("clipstarticon",Dza()),this.Ka("clipendicon",Dza()),g.M(this.element,"ytp-clip-hover"))};
g.h.nO=function(){this.Ib||(this.Ka("clipstarticon",Fza()),this.Ka("clipendicon",Eza()),g.Fp(this.element,"ytp-clip-hover"))};
g.h.ZB=function(){this.clipStart=0;this.clipEnd=Infinity;cO(this);YN(this,this.ma,this.ib)};
g.h.GQ=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ra[c]){var d=g.ei("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ra[c]=b;this.Sb[c]=d;g.Cp(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.GZ=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())TDa(this,b.value)};
g.h.fM=function(){this.u&&(this.api.seekTo(this.u.xa),this.u.play(),hO(this))};
g.h.bF=function(){this.u&&(this.u.play(),hO(this))};
g.h.qa=function(){VDa(this,!1);g.jI.prototype.qa.call(this)};g.v(iO,g.W);iO.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
iO.prototype.Ja=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.iI(this,a&&400<=this.I.bb().getPlayerSize().width);this.I.Za(this.element,this.tb);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",Jb:!0,W:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.Ka("icon",g.Cza())}g.N(this.element,"ytp-remote-button-active",this.isActive())}};
iO.prototype.j=function(){this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.rb.uC(this.element);this.I.wb(this.element)};g.v(jO,g.W);jO.prototype.j=function(a){g.iI(this,this.u&&400<=a.width)};
jO.prototype.B=function(){var a=this.rb;a.tb?a.Db():a.jd(this.element)};g.v(kO,g.sM);kO.prototype.onClick=function(){this.rb.Db()};g.v(mO,kO);mO.prototype.onClick=function(){kO.prototype.onClick.call(this);this.I.La("onCollapseMiniplayer");this.I.wb(this.element)};
mO.prototype.Ja=function(){var a=!this.I.isFullscreen();lO(this,a);this.I.Za(this.element,this.j)};g.v(nO,kO);nO.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
nO.prototype.Ja=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);lO(this,a&&!this.I.isFullscreen());this.I.Za(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",Jb:!0,W:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.Ka("icon",{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!0,W:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]})}};
nO.prototype.onClick=function(){kO.prototype.onClick.call(this);this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.B.uC(this.element);this.I.wb(this.element)};g.v(oO,kO);oO.prototype.onClick=function(){kO.prototype.onClick.call(this);pV(this.I.app);this.I.wb(this.element)};
oO.prototype.Ja=function(){var a=this.I.ox()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType();lO(this,a);this.j&&(a=this.I.isWidescreen(),this.isWidescreen!==a&&(uM(this,a?{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",W:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},U:[{G:"path",Jb:!0,W:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]}),this.isWidescreen=a,this.u.Ka("title",a?"Default view":"Theater mode")));this.I.Za(this.element,this.j)};g.v(pO,g.FM);pO.prototype.jd=function(a){0<this.Wc.items.length&&g.FM.prototype.jd.call(this,a)};
pO.prototype.yc=function(a){this.Wc.yc(a);a=this.Ym;a.u=0<this.Wc.items.length;a.j(a.I.bb().getPlayerSize())};
pO.prototype.kf=function(a){this.tb&&1>=this.Wc.items.length&&this.hide();this.Wc.kf(a);a=this.Ym;a.u=0<this.Wc.items.length;a.j(a.I.bb().getPlayerSize())};
pO.prototype.uC=function(){};g.v(qO,g.W);qO.prototype.j=function(a){var b=400;this.I.V().J&&(b=200);a=this.u&&a.width>=b;g.iI(this,a);this.I.Za(this.element,a)};
qO.prototype.B=function(){if(this.rb.tb)this.rb.Db();else{var a=g.tL(this.I.sb());a&&!a.loaded&&(a.wf("tracklist",{includeAsr:!0}).length||a.load());this.I.wb(this.element);this.rb.jd(this.element)}};
qO.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.YK(this.I),e=c&&!!g.XK(this.I.sb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.N(this.element,"ytp-hdr-quality-badge",a);g.N(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.N(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.N(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.N(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.N(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.N(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(sO,AM);sO.prototype.isLoaded=function(){var a=g.CL(this.I.sb());return void 0!==a&&a.loaded};
sO.prototype.Ja=function(){void 0!==g.CL(this.I.sb())&&3!==this.I.getPresentingPlayerType()?this.j||(this.rb.yc(this),this.j=!0):this.j&&(this.rb.kf(this),this.j=!1);this.setValue(this.isLoaded())};
sO.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ea("annotationvisibility",a)};
sO.prototype.qa=function(){this.j&&this.rb.kf(this);AM.prototype.qa.call(this)};g.v(g.tO,g.sM);g.h=g.tO.prototype;g.h.open=function(){g.DM(this.rb,this.B)};
g.h.Di=function(a){XDa(this);this.options[a].element.setAttribute("aria-checked","true");this.Cd(this.Cj(a));this.u=a};
g.h.qE=function(a,b,c){var d=this;b=new g.sM({G:"div",Fa:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Fa:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.Cj(a,!0));b.Oa("click",function(){d.Of(a)});
return b};
g.h.enable=function(a){this.C?a||(this.C=!1,this.Ds(!1)):a&&(this.C=!0,this.Ds(!0))};
g.h.Ds=function(a){a?this.rb.yc(this):this.rb.kf(this)};
g.h.Of=function(a){this.ea("select",a)};
g.h.Cj=function(a){return a.toString()};
g.h.tS=function(a){g.wu(a)||39!==g.xu(a)||(this.open(),g.vu(a))};
g.h.qa=function(){this.C&&this.rb.kf(this);g.sM.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.v(vO,g.tO);vO.prototype.Ja=function(){var a=this.I.getAvailableAudioTracks();1<a.length?(g.uO(this,g.Sl(a,this.D)),this.tracks=g.pc(a,this.D,this),this.j.Cd(a.length?" ("+a.length+")":""),this.ea("size-change"),this.Di(this.D(this.I.getAudioTrack())),this.enable(!0)):this.enable(!1)};
vO.prototype.Of=function(a){g.tO.prototype.Of.call(this,a);this.I.setAudioTrack(this.tracks[a]);this.rb.Ch()};
vO.prototype.D=function(a){return a.toString()};g.v(wO,AM);
wO.prototype.u=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&g.$K(this.I))this.j||(this.rb.yc(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.Za(this.element,this.j));else if(this.j){this.rb.kf(this);this.j=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.vc(b.value)}};
wO.prototype.C=function(a){this.setValue(1!==a)};
wO.prototype.D=function(a){this.I.fC(a?2:1);this.j&&(this.I.Za(this.element,this.j),this.I.wb(this.element))};
wO.prototype.qa=function(){this.j&&this.rb.kf(this);AM.prototype.qa.call(this)};g.v(xO,g.XL);xO.prototype.jd=function(){g.XL.prototype.jd.call(this);this.dialog.focus()};g.v(yO,g.sM);yO.prototype.jc=function(a){this.u&&this.I.Za(this.element,this.j&&a)};
yO.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.If(zO(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,k,l;this.B=new xO(this.I,zO(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),zO(null==a?void 0:null==(k=a.menuData)?void 0:k.connectedDialogMessage),zO(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.dh(this.element,this,!0),this.I.hk(this.element,d);this.rb.yc(this);this.j=!0}else!c&&this.j&&(this.rb.kf(this),this.j=!1)};
yO.prototype.onClick=function(){this.u&&this.I.wb(this.element);this.rb.Db();this.B&&this.B.jd()};g.v(AO,g.W);AO.prototype.onClick=function(){this.rb.Db()};
AO.prototype.If=function(a){this.Ka("label",a);this.Ym.Ka("title",a)};g.v(BO,AO);BO.prototype.onClick=function(){AO.prototype.onClick.call(this);this.I.La("onCollapseMiniplayer");this.I.wb(this.element)};
BO.prototype.Ja=function(){var a=!this.I.isFullscreen();g.iI(this,a);this.I.Za(this.element,a)};g.v(CO,g.tO);g.h=CO.prototype;g.h.Hv=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.I.ao(),a=this.I.getAvailableQualityLevels(),g.FBa(this.I)&&g.GBa(this.I)&&a.unshift("missing-qualities"),HBa(this.I)&&a.unshift("inline-survey"),g.uO(this,a),a.length)){this.bK();this.enable(!0);return}this.enable(!1)};
g.h.bK=function(){var a=this.I.getPreferredQuality();this.options[a]&&(this.j=this.I.getPlaybackQuality(),this.Di(a),"auto"===a&&this.Cd(this.Cj(a)))};
g.h.Of=function(a){"missing-qualities"!==a&&(g.tO.prototype.Of.call(this,a),this.I.setPlaybackQuality(a),this.rb.Db(),this.Hv())};
g.h.open=function(){g.tO.prototype.open.call(this);this.I.wb(this.element)};
g.h.qE=function(a,b,c){var d=this;if("inline-survey"!==a)return g.tO.prototype.qE.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={fz:c.fz},f=e.next())c.fz=f.value,f=new g.W({G:"span",L:"ytp-menuitem-inline-survey-response",U:[c.fz?g.qI():Hza()],W:{tabindex:"0",role:"button"}}),f.Oa("click",function(k){return function(){var l=k.fz,m=g.aL(d.I.app);m&&(m.ya("iqsr",{tu:l}),m.getVideoData().cJ=!0);d.rb.Db();d.Hv()}}(c)),a.push(f);
return new g.sM({G:"div",L:"ytp-menuitem",W:{"aria-disabled":"true"},U:[{G:"div",Fa:["ytp-menuitem-label"],U:a}]},b)};
g.h.Cj=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"a",W:{href:"https://web.archive.org/web/20220406233357/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.v(DO,AO);DO.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
DO.prototype.Ja=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.iI(this,a);this.I.Za(this.element,this.tb);var b=1;a&&this.isActive()&&(b=2);if(this.currentIcon!==b)switch(this.currentIcon=b,b){case 1:this.Ka("icon",Bza());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"}}]})}};
DO.prototype.onClick=function(){AO.prototype.onClick.call(this);this.I.getOption("remote","quickCast")?this.I.setOption("remote","quickCast",!0):this.rb.uC(this.element);this.I.wb(this.element)};g.v(EO,g.jI);EO.prototype.addButton=function(a){this.element.appendChild(a.element)};
EO.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.v(FO,AO);FO.prototype.onClick=function(){AO.prototype.onClick.call(this);pV(this.I.app);this.I.wb(this.element)};
FO.prototype.Ja=function(){g.iI(this,this.I.ox()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.tb){var a=this.I.isWidescreen();this.isWidescreen!==a&&(this.Ym.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"}}]}:Qza()),this.If(OL(this.I,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.I.Za(this.element,this.tb)};g.v(GO,g.W);g.h=GO.prototype;g.h.init=function(){this.Br(this.j);this.Ka("minvalue",this.minimumValue);this.Ka("maxvalue",this.maximumValue)};
g.h.wS=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.Br(this.j+b);g.vu(a)}};
g.h.uS=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Br(b);g.vu(a)};
g.h.vS=function(a){a=(a-g.Um(this.u).x)/this.K*this.range+this.minimumValue;this.Br(a)};
g.h.Br=function(a,b){b=void 0===b?"":b;a=g.xh(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.v(IO,GO);IO.prototype.X=function(){this.I.setPlaybackRate(this.j,!0)};
IO.prototype.Br=function(a){GO.prototype.Br.call(this,a,JO(this,a).toString());this.B&&(HO(this),this.va())};
IO.prototype.xa=function(){var a=this.I.getPlaybackRate();JO(this,this.j)!==a&&(this.Br(a),HO(this))};g.v(KO,g.jI);KO.prototype.focus=function(){this.j.focus()};g.v(ZDa,vM);g.v(LO,g.tO);g.h=LO.prototype;g.h.Cj=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.h.Ja=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);bEa(this)};
g.h.Ds=function(a){g.tO.prototype.Ds.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),bEa(this),$Da(this,this.I.getPlaybackRate())):(this.vc(this.K),this.K=null)};
g.h.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||aEa(this,b);$Da(this,a)};
g.h.Of=function(a){g.tO.prototype.Of.call(this,a);a===this.j?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.rb.Ch()};g.v(NO,g.tO);g.h=NO.prototype;g.h.Di=function(a){g.tO.prototype.Di.call(this,a)};
g.h.getKey=function(a){return a.option.toString()};
g.h.getOption=function(a){return this.settings[a]};
g.h.Cj=function(a){return this.getOption(a).text||""};
g.h.Of=function(a){g.tO.prototype.Of.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.v(OO,g.wM);OO.prototype.Jf=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.So[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Di(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
OO.prototype.yh=function(a,b){this.ea("settingChange",a,b)};g.v(PO,g.tO);PO.prototype.getKey=function(a){return a.languageCode};
PO.prototype.Cj=function(a){return this.languages[a].languageName||""};
PO.prototype.Of=function(a){this.ea("select",a);this.I.wb(this.element);g.HM(this.rb)};g.v(QO,g.tO);g.h=QO.prototype;g.h.getKey=function(a){return g.Sf(a)?"__off__":a.displayName};
g.h.Cj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.h.Of=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.kK(this.I.V(),this.I.getVideoData()),g.tJ(a)):(this.I.wb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.tO.prototype.Of.call(this,a),this.rb.Ch())};
g.h.Ja=function(){var a=this.I.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.I.getVideoData();b=b&&b.cm;var c,d=!(null==(c=this.I.getVideoData())||!g.CE(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.pc(c,this.getKey,this);d=g.Sl(c,this.getKey);if(f.length&&!g.Sf(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)}dEa(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.uO(this,d);this.Di(f);e&&e.translationLanguage?this.j.Di(this.j.getKey(e.translationLanguage)):XDa(this.j);a&&this.D.Jf(this.I.getSubtitlesUserSettings());this.K.Cd(c&&c.length?" ("+c.length+")":"");this.ea("size-change");this.I.Za(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.h.xS=function(a){var b=this.I.getOption("captions","track");b=g.Zf(b);b.translationLanguage=this.j.languages[a];this.I.setOption("captions","track",b)};
g.h.yh=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}eEa(this,!0);this.J.start();this.D.Jf(this.I.getSubtitlesUserSettings())};
g.h.EY=function(a){a||g.zp(this.J)};
g.h.qa=function(){g.zp(this.J);g.tO.prototype.qa.call(this)};g.v(RO,g.FM);g.h=RO.prototype;g.h.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.kG=new yO(this.I,this);g.H(this,this.kG);var a=new CO(this.I,this);g.H(this,a);a=new QO(this.I,this);g.H(this,a);this.I.V().C||(a=new sO(this.I,this),g.H(this,a));this.I.V().Dc&&(a=new LO(this.I,this),g.H(this,a));this.I.V().Tb&&!this.I.V().N("web_player_move_autonav_toggle")&&(a=new wO(this.I,this),g.H(this,a));a=new vO(this.I,this);g.H(this,a);rO(this.settingsButton,this.Wc.items.length)}};
g.h.yc=function(a){this.initialize();this.Wc.yc(a);rO(this.settingsButton,this.Wc.items.length)};
g.h.kf=function(a){this.tb&&1>=this.Wc.items.length&&this.hide();this.Wc.kf(a);rO(this.settingsButton,this.Wc.items.length)};
g.h.jd=function(a){this.initialize();0<this.Wc.items.length&&g.FM.prototype.jd.call(this,a)};
g.h.show=function(){g.FM.prototype.show.call(this);g.M(this.I.getRootNode(),"ytp-settings-shown")};
g.h.hide=function(){g.FM.prototype.hide.call(this);g.Fp(this.I.getRootNode(),"ytp-settings-shown")};
g.h.Ne=function(a){this.I.Za(this.element,a);var b;null==(b=this.kG)||b.jc(a)};
g.h.uC=function(a){if(this.hg())this.Db();else{this.initialize();a:{var b=g.r(this.Wc.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.jd(a));this.jd(a)}};g.v(SO,g.W);SO.prototype.onClick=function(){pV(this.I.app);this.I.wb(this.element)};
SO.prototype.Ja=function(){g.iI(this,this.I.ox()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.tb){var a=this.I.isWidescreen();if(this.isWidescreen!==a){var b=a?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.isWidescreen?this.Ka("icon",b):oDa(this.transition,this.element,b);this.isWidescreen=a;b=OL(this.I,"Default view","t");var c=OL(this.I,"Theater mode","t");this.Ka("title",a?b:c);LM(this.tooltip)}}this.I.Za(this.element,this.tb)};g.v(g.TO,g.W);g.TO.prototype.onClick=function(){if(null!=g.tL(this.I.sb())&&(this.I.toggleSubtitles(),this.I.wb(this.element),!this.isEnabled())){var a=!1,b=g.rs(g.qs.getInstance(),65);g.UC(this.I.V())&&null!=b&&(a=!b);a&&this.I.V().N("web_player_nitrate_promo_tooltip")&&this.I.ea("showpromotooltip",this.element)}};
g.TO.prototype.j=function(a){var b,c;null==(b=g.PK(this.I))||null==(c=b.Bo())||c.jd(a)};
g.TO.prototype.isEnabled=function(){return!!this.I.getOption("captions","track").displayName};
g.TO.prototype.Ja=function(){var a=null!=g.tL(this.I.sb()),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",OL(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",OL(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}LM(this.tooltip);c=c&&this.I.bb().getPlayerSize().width>=b;g.iI(this,c);this.I.Za(this.element,c);a&&this.Ka("pressed",this.isEnabled())};g.v(g.VO,g.W);g.h=g.VO.prototype;
g.h.Qb=function(){var a=this.api.bb().getPlayerSize().width,b=this.K;this.api.V().J&&(b=400);b=a>=b&&(!XO(this)||!g.V(this.api.yb(),64));g.iI(this,b);g.N(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);WO(this)&&(c-=this.Ib.startTimeMs/1E3);c=g.hJ(c);this.B!==c&&(this.Ka("currenttime",c),this.B=c);b=WO(this)?
g.hJ((this.Ib.endTimeMs-this.Ib.startTimeMs)/1E3):g.hJ(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;!XO(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Qb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Cd(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.lM(this.tooltip,
this.liveBadge.element)));a=this.api.getLoopRange();b=this.Ib!==a;this.Ib=a;b&&UO(this)};
g.h.onLoopRangeChange=function(a){var b=this.Ib!==a;this.Ib=a;b&&(this.Qb(),UO(this))};
g.h.kZ=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.Qb();UO(this)};
g.h.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.ob;this.u=FE(a);this.isPremiere=a.isPremiere;g.N(this.element,"ytp-live",XO(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.W.prototype.qa.call(this)};g.v($O,g.W);g.h=$O.prototype;g.h.Rm=function(){var a=this.j.bf();this.C!==a&&(this.C=a,ZO(this,this.api.getVolume(),this.api.isMuted()))};
g.h.cK=function(a){g.iI(this,350<=a.width)};
g.h.AS=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.xh(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.vu(a))}};
g.h.yS=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.xh(b/10,-10,10));g.vu(a)};
g.h.JY=function(){YO(this,this.u,!0,this.B,this.j.Oi());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.h.zS=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Um(this.S).x;this.api.setVolume(100*g.xh((a-c/2)/(b-c),0,1))};
g.h.IY=function(){YO(this,this.u,!1,this.B,this.j.Oi());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.h.onVolumeChange=function(a){ZO(this,a.volume,a.muted)};
g.h.CL=function(){YO(this,this.u,this.isDragging,this.B,this.j.Oi())};
g.h.qa=function(){g.W.prototype.qa.call(this);g.Fp(this.K,"ytp-volume-slider-active")};g.v(g.aP,g.W);g.aP.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.iI(this,this.visible);this.api.Za(this.element,this.visible&&this.ra);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ka("url",a))};
g.aP.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.iJ(a),!1,!0,!0);if(g.qC(b)||g.BC(b)){var d={};b.ra&&g.qC(b)&&g.mK(d,b.loaderUrl);c=g.wj(c,g.lK(d,"emb_logo"))}g.LL(c,this.api,a);this.api.wb(this.element)};
g.aP.prototype.xb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]};
if(g.BC(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.N(b,"ytp-youtube-music-logo-icon-only",c)}this.Ka("logoSvg",a)};
g.aP.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.api.Za(this.element,this.visible&&a)};g.v(bP,g.iA);g.h=bP.prototype;g.h.Hd=function(){this.Ic.Qb();this.Tg.Qb()};
g.h.Xj=function(){this.zD();if(this.Jd.u){this.Hd();var a;null==(a=this.S)||a.show()}else{g.kP(this.Ic.tooltip);var b;null==(b=this.S)||b.hide()}};
g.h.Vq=function(){this.Hd();this.ge.start()};
g.h.zD=function(){var a=!this.I.V().isMobile&&300>g.WDa(this.Ic)&&this.I.yb().Jc()&&!!window.requestAnimationFrame,b=!a;this.Jd.u||(a=b=!1);b?this.K||(this.K=this.T(this.I,"progresssync",this.Hd)):this.K&&(this.vc(this.K),this.K=null);a?this.ge.isActive()||this.ge.start():this.ge.stop()};
g.h.xb=function(){var a=this.B.bf(),b=this.I.bb().getPlayerSize(),c=cP(this),d=Math.max(b.width-2*c,100);if(this.Qa!==b.width||this.Ia!==a){this.Qa=b.width;this.Ia=a;var e=jEa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.gO(this.Ic,c,e,a);this.B.kc().AD=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-dP(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.zz=e;c.Ru();this.zD();!this.I.V().N("html5_player_bottom_linear_gradient")&&this.I.V().N("html5_player_dynamic_bottom_gradient")&&
g.nN(this.Ra,b.height)};
g.h.onVideoDataChange=function(){var a=this.I.getVideoData();this.va.style.background=a.D?a.Wa:"";g.iI(this.Z,a.KD)};g.v(eP,hN);g.h=eP.prototype;g.h.HG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.La("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())};
g.h.IG=function(){this.B=!0;this.S.hide()};
g.h.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,fP(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.K=this.enabled=!0;this.text=(b=a.title)?g.Pw(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.Iw(d,b,{priority:9,namespace:"suggested_action_button_visible"}));this.I.Rd(c)}this.onClickCommand=a.tapCommand;gDa(this);gN(this);
this.zi()}};
g.h.Fy=function(){return!this.B&&this.enabled&&(this.u||this.j)};
g.h.Ne=function(a){this.B||((this.u=a)?fN(this):(fP(this),this.Z.start()),this.zi())};
g.h.qa=function(){fP(this);hN.prototype.qa.call(this)};var G0={},gP=(G0.CHANNEL_NAME="ytp-title-channel-name",G0.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",G0.LINK="ytp-title-link",G0.SESSIONLINK="yt-uix-sessionlink",G0.SUBTEXT="ytp-title-subtext",G0.TEXT="ytp-title-text",G0.TITLE="ytp-title",G0);g.v(hP,g.W);hP.prototype.onClick=function(a){this.api.wb(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.iJ(a),!1,!0);if(g.qC(b)){var d={};b.ra&&g.mK(d,b.loaderUrl);c=g.wj(c,g.lK(d,"emb_title"))}g.LL(c,this.api,a)};
hP.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.V();this.Ka("title",a.title);kEa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Lb&&c.profilePicture?(this.Ka("channelLink",c.Lb),this.Ka("channelName",c.author),this.Ka("channelTitleFocusable","0")):kEa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.qb;g.N(this.link,gP.FULLERSCREEN_LINK,c);b.S||!a.videoId||c||a.D&&b.pfpChazalUi||b.C?this.j&&(this.Ka("url",
null),this.vc(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.qC(b)?a.expandedTitle:a.author)};g.v(g.iP,g.W);g.h=g.iP.prototype;g.h.xO=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,mEa(this,a))};
g.h.LV=function(){Gva(this.j,this.B,160*this.scale)};
g.h.Ek=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.X);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.X);a.addEventListener("focus",this.C);pEa(this);break;case 3:pEa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.xO,this),this.j=null),this.api.removeEventListener("videoready",this.Z),this.ma.stop()}this.type=null;this.K&&this.D.hide()};
g.h.Dj=function(){if(this.u)for(var a=0;a<arguments.length;a++)g.ki(arguments[a],this.u)&&this.Ek()};
g.h.qa=function(){null!=this.type&&this.Ek();this.j&&this.j.dispose();g.W.prototype.qa.call(this)};g.v(g.lP,g.W);g.h=g.lP.prototype;g.h.Az=function(){var a=this.I.getPlayerSize(),b=this.I.V(),c=this.I.getVideoData(),d=g.qC(b)&&g.WK(this.I)&&g.V(this.I.yb(),128);this.visible=b.Ak&&240<=a.width&&!c.isAd()&&c.Pf&&!d&&!(c.D&&b.pfpChazalUi);g.iI(this,this.visible);this.icon&&tEa(this,this.icon);this.I.Za(this.element,this.visible&&this.ra)};
g.h.Ig=function(){return this.I.getVideoData().videoId};
g.h.onClick=function(){var a=this;this.I.wb(this.element);var b=this.I.V(),c=this.Ig();b.authUser?qEa(this):this.I.mC()?this.I.requestStorageAccess(function(){g.Ds("embedsItpWatchLaterResult",{accepted:!0});$u();rEa(a,c)},function(){g.Ds("embedsItpWatchLaterResult",{accepted:!1});
sEa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):rEa(this,c)};
g.h.BS=function(){this.isRequestPending=this.j=!1;this.Ja(2)};
g.h.Ja=function(a,b){var c=this.I.V();tEa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.MF("Added as $USER_NAME",a):g.MF("Watch later as $USER_NAME",a),image:$C(c)})):this.update({title:"Watch later",image:null});LM(this.tooltip)};
g.h.jc=function(a){g.W.prototype.jc.call(this,a);this.I.Za(this.element,this.visible&&a)};g.v(mP,g.aM);g.h=mP.prototype;g.h.kc=function(){return this.tooltip};
g.h.BM=function(){return this.Kf};
g.h.Sn=function(a,b){b?this.Wk=a:this.Wk=null;this.qj()};
g.h.jt=function(a,b){if(b)this.Uo.push(a);else for(b=this.Uo.length;0<=b;b--)if(this.Uo[b]===a){this.Uo.splice(b,1);break}GL(this.Jd,64,0<this.Uo.length)};
g.h.mp=function(){this.api.Zg()&&this.api.Rk();return!!this.Wk||uEa(this)||g.aM.prototype.mp.call(this)};
g.h.qj=function(){var a=!this.mp(),b=a&&this.api.Zg()&&!g.V(this.api.yb(),2)&&!(this.api.getVideoData().D&&this.api.V().pfpChazalUi)&&!this.api.V().C,c=this.Eq&&g.WK(this.api)&&g.V(this.api.yb(),128);a||c?(this.wI.show(),this.xI.show()):(this.wI.hide(),this.xI.hide(),this.tooltip.Dj(this.ri.element));b?this.zg.jd():this.zg.Db();this.Kf&&iEa(this.Kf,!a);g.aM.prototype.qj.call(this)};
g.h.ir=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Xm(a),k=d||this.Kf&&g.ki(this.Kf.u.element,b),l=d=null;null!=c&&k||(d=g.Xm(b),l=g.Vm(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;k?(b=this.Kf,d=cP(b),l=jEa(b),k=this.api.bb().getPlayerSize().height,c=g.xh(c,d,d+l-f.width),f=k-dP(b)-f.height):g.ki(this.ri.element,b)?(b=this.api.bb().getPlayerSize().width,c=g.xh(c,12,b-f.width-12),f=this.bf()?this.yE:this.xE,"gvn"===this.api.V().playerStyle&&(f+=
20),this.Eq&&(f-=this.bf()?26:18)):(b=this.api.bb().getPlayerSize(),c=g.xh(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.Xj=function(a){a&&(this.tooltip.Dj(this.ri.element),this.Kf&&this.tooltip.Dj(this.Kf.u.element));this.TA&&(g.N(this.contextMenu.element,"ytp-autohide",a),g.N(this.contextMenu.element,"ytp-autohide-active",!0));g.aM.prototype.Xj.call(this,a)};
g.h.GG=function(){g.aM.prototype.GG.call(this);this.TA&&(g.N(this.contextMenu.element,"ytp-autohide-active",!1),this.TA&&(this.contextMenu.hide(),this.rg&&this.rg.hide()))};
g.h.Lj=function(a,b){var c=this.api.bb().getPlayerSize();c=new g.Jm(0,0,c.width,c.height);if(a||this.Jd.u&&!this.mp()){if(this.api.V().yk||b)a=this.bf()?this.yE:this.xE,c.top+=a,c.height-=a;this.Kf&&(c.height-=dP(this.Kf))}return c};
g.h.Rm=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.nA.element,b),b.parentElement.insertBefore(this.mA.element,b.nextSibling))):g.hr(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.nA.detach(),this.mA.detach());this.xb();this.pn()};
g.h.bf=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.J||!1};
g.h.showControls=function(a){this.Zz=!a;this.qj()};
g.h.xb=function(){var a=this.bf();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.N(this.contextMenu.element,"ytp-big-mode",a);this.qj();if(this.Df()&&this.rg)this.Hh&&WM(this.rg,this.Hh),this.shareButton&&WM(this.rg,this.shareButton),this.Ag&&WM(this.rg,this.Ag);else{if(this.rg){a=this.rg;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Hh&&!g.ki(this.Ug.element,this.Hh.element)&&this.Hh.Ba(this.Ug.element);this.shareButton&&!g.ki(this.Ug.element,
this.shareButton.element)&&this.shareButton.Ba(this.Ug.element);this.Ag&&!g.ki(this.Ug.element,this.Ag.element)&&this.Ag.Ba(this.Ug.element)}this.pn();g.aM.prototype.xb.call(this)};
g.h.mF=function(){if(uEa(this)&&!g.WK(this.api))return!1;var a=this.api.getVideoData();return!g.qC(this.api.V())||2===this.api.getPresentingPlayerType()||!this.Cg||((a=this.Cg||a.Cg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.aM.prototype.mF.call(this):!1};
g.h.pn=function(){g.aM.prototype.pn.call(this);this.api.Za(this.title.element,!!this.vl);this.ju&&this.ju.jc(!!this.vl);this.channelAvatar.jc(!!this.vl);this.overflowButton&&this.overflowButton.jc(this.Df()&&!!this.vl);this.shareButton&&this.shareButton.jc(!this.Df()&&!!this.vl);this.Hh&&this.Hh.jc(!this.Df()&&!!this.vl);this.Ag&&this.Ag.jc(!this.Df()&&!!this.vl);if(!this.vl){this.tooltip.Dj(this.ri.element);for(var a=0;a<this.Qy.length;a++){var b=this.Qy[a];b.hg()&&b.Db()}}};
g.h.Vb=function(a){this.Kf&&iEa(this.Kf,this.mp());this.qj();g.aM.prototype.Vb.call(this,a)};
g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){return this.Km?this.Km.handleGlobalKeyDown(a,b,c,d,e,f,k):!1};
g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){return this.Km?this.Km.handleGlobalKeyUp(a,b,c,d,e,f,k):!1};
g.h.Zk=function(){return this.contextMenu.tb?(this.contextMenu.Db(),!0):this.Uo.length?(this.Uo[this.Uo.length-1].Db(),!0):this.Wk?(this.Wk.Db(),!0):g.aM.prototype.Zk.call(this)};
g.h.Ay=function(a,b){this.uG=b;this.jt(a,b);this.KQ()};
g.h.KQ=function(){var a=this.uG||this.contextMenu.hg();this.nE!==a&&(this.nE=a,this.api.La("onAutonavPauseRequest",this.nE))};
g.h.FU=function(){nP(this,this.api.getRootNode(),!0).focus()};
g.h.GU=function(){nP(this,this.api.getRootNode(),!1).focus()};
g.h.Bo=function(){return this.Kf&&this.Kf.settingsMenu};
g.h.Xw=function(){return this.Kf&&this.Kf.j};
g.h.Jl=function(){this.Jd.Jl()};
g.h.MA=function(){this.zc.hide()};
g.h.Dr=function(a){this.zc.Dr(!g.sH(a))};
g.h.uu=function(a,b,c,d){this.Bw.uu(a,b,c,d)};
g.h.zP=function(a,b){this.Bw.cC(a,b)};
g.h.ZW=function(){vEa(this,!0)};
g.h.BX=function(a){vEa(this,!1,a)};g.v(g.oP,g.lL);g.oP.prototype.gi=function(){return!1};
g.oP.prototype.create=function(){var a=this.player.V();g.zC(a)&&a.isMobile?this.chrome=new g.aM(this.player):this.chrome=new mP(this.player);g.H(this,this.chrome);this.chrome.init();this.player.Je("ux")};
g.oP.prototype.Lw=function(){return this.chrome};g.v(qP,g.G);qP.prototype.u=function(a,b){if(b){b=b instanceof g.Zx?b:rP(this,b);var c;(null==(c=this.j.get(a))?void 0:by(c.location))!==by(b)&&this.j.set(a,new vP(b,a))}else this.j.delete(a)};
qP.prototype.load=function(){var a=this,b,c,d,e,f,k,l,m,n,p;return g.B(function(q){switch(q.j){case 1:b=a.j.get(0);g.va(q,2);var t;if(t=b&&!a.B)t=by(b.location),t=a.B===tP(t);if(t){q.Ya(4);break}return g.A(q,uP(a,a.B?2:0),5);case 5:if(c=q.u)a.u(0,c),dy(c)&&a.u(1,ey(c));case 4:g.wa(q,3);break;case 2:d=g.xa(q);g.Sv(d);if(!a.B){q.Ya(3);break}a.B=!1;return g.A(q,a.load(),7);case 7:return q.return();case 3:if(!a.Y.experiments.kb("html5_onesie_probe_ec_hosts")){q.Ya(0);break}g.va(q,9);e=a;f=e.u;k=3;return g.A(q,
uP(a,1),11);case 11:return f.call(e,k,q.u),l=a,m=l.u,n=4,g.A(q,uP(a,2),12);case 12:m.call(l,n,q.u);g.wa(q,0);break;case 9:p=g.xa(q),g.Sv(p),g.ua(q)}})};
qP.prototype.K=function(){g.xp(this.S);var a=g.cB(this.Y.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={Cp:a.Cp},c=b.next()){a.Cp=c.value;c="https://"+by(a.Cp.location)+"/initplayback?c="+FC(this.Y)+"&owc=1";var d=function(e){return function(f){e.Cp.end();f.ht=e.Cp.XM;e.Cp.KV=f}}(a);
a.Cp.start();pP(c,"pw",d)}}};
vP.prototype.start=function(){this.startTimestamp=(0,g.R)()};
vP.prototype.end=function(){this.endTimestamp=(0,g.R)()};var xP=[],jMa=!1;g.hT=Cg(function(){var a="";try{var b=g.ei("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.v(g.yP,iH);g.h=g.yP.prototype;g.h.isView=function(){return!0};
g.h.FH=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.fg(),c=uA(b,a);return!(this.start<c)}catch(d){}return!1};
g.h.uq=function(){return wA(this.mediaElement.uq(),this.start,this.end)};
g.h.fg=function(){return wA(this.mediaElement.fg(),this.start,this.end)};
g.h.Yw=function(){return wA(this.mediaElement.Yw(),this.start,this.end)};
g.h.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.h.xz=function(a){this.mediaElement.xz(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.FH()){this.mediaElement.getCurrentTime();try{this.mediaElement.xz(this.start)}catch(a){}}return this.mediaElement.play()};
g.h.Nb=function(){var a=iH.prototype.Nb.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.sz=function(){return this.mediaElement.sz()};
g.h.Ls=function(a){this.mediaElement.Ls(a)};
g.h.tq=function(){return this.mediaElement.tq()};
g.h.playVideo=function(){return this.mediaElement.playVideo()};
g.h.OE=function(){this.mediaElement.OE()};
g.h.ME=function(){this.mediaElement.ME()};
g.h.Pp=function(){return this.mediaElement.Pp()};
g.h.Ke=function(){return this.mediaElement.Ke()};
g.h.zf=function(){return this.mediaElement.zf()};
g.h.yz=function(a){this.mediaElement.yz(a)};
g.h.bC=function(){this.mediaElement.bC()};
g.h.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.h.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.h.rq=function(){return this.mediaElement.rq()};
g.h.setLoop=function(a){this.mediaElement.setLoop(a)};
g.h.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.h.Sl=function(){return this.mediaElement.Sl()};
g.h.Ev=function(){return this.mediaElement.Ev()};
g.h.Sf=function(){return this.mediaElement.Sf()};
g.h.zA=function(){return this.mediaElement.zA()};
g.h.Cu=function(a){this.mediaElement.Cu(a)};
g.h.vz=function(){return this.mediaElement.vz()};
g.h.load=function(){this.mediaElement.load()};
g.h.pause=function(){this.mediaElement.pause()};
g.h.Jh=function(){return this.mediaElement.Jh()};
g.h.AA=function(){return this.mediaElement.AA()};
g.h.Bj=function(){return this.mediaElement.Bj()};
g.h.Fe=function(){return this.mediaElement.Fe()};
g.h.wz=function(){return this.mediaElement.wz()};
g.h.Bf=function(){return this.mediaElement.Bf()};
g.h.qp=function(){return this.mediaElement.qp()};
g.h.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.h.zo=function(){return this.mediaElement.zo()};
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.dw=ca(24);g.h.Ky=ca(26);g.h.Ly=ca(28);g.h.Ts=ca(30);g.h.Fw=function(){return this.mediaElement.Fw()};
g.h.Fn=function(a){this.mediaElement.Fn(a)};
g.h.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.h.XF=function(){return this.mediaElement.XF()};
g.h.stopVideo=function(){this.mediaElement.stopVideo()};
g.h.QE=function(a){this.mediaElement.QE(a)};
g.h.audioTracks=function(){return this.mediaElement.audioTracks()};zP.prototype.then=function(a,b){return this.promise.then(a,b)};
zP.prototype.resolve=function(a){this.u(a)};
zP.prototype.reject=function(a){this.j(a)};g.v(AP,g.G);g.h=AP.prototype;g.h.isFinished=function(){return 6===this.status.status};
g.h.getStatus=function(){return this.status};
g.h.Xp=function(){var a=this.j.getVideoData(),b=this.u.getVideoData();if(a.C){var c;if(c=a.j){c=a.j;for(var d=!1,e=!1,f=g.r(Object.values(c.j)),k=f.next();!k.done;k=f.next())k=k.value,k.info.audio&&k.index.isLoaded()&&(d=!0),k.info.video&&k.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=!(d&&e)}if(c)this.Na();else if(this.j.zd()){f=GEa(this.policy,this.j,this.u,this.nk);k=HEa(this);c=k.lU;e=k.cO;d=k.PL;k=k.bO;if(!this.J){var l=1E3*this.u.Nh(),m=this.j.Nh();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=
0);a=a.isAd();this.u.ly(l,m,a);this.J=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Xe(b,f)):2===this.status.status?OEa(this):(a=this.j.tq())?a.j||a.u?!CA(a)&&g.$r()?this.Xe("mse_closed"):b.j&&Vx(b.j)&&a.u&&!a.u.wA()?this.Xe("encr_upgrade"):(b=this.j.zd(),b.Sf()?this.Xe("elem_ended"):0>e?this.Xe("next_player_future"):(this.D=d,this.B=Tsa(a,c,d,!0),this.C=Tsa(a,e,k,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.ya("gaplessPrep",{cpn:a}),DP(this.j,this.B),this.j.setMediaElement(IEa(b,c,d,!this.j.getVideoData().isAd())),
CP(this,2),OEa(this))):this.Na():this.Na()}else this.Xe("no-elem")}else this.Na()};
g.h.Es=function(a){var b=NEa(this).UP,c=a===b;b=c?this.B.j:this.B.u;c=c?this.C.j:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;tA(a.xf(),d-.01)&&(CP(this,4),b.isActive=!1,b.Xy=b.Xy||b.isActive,this.u.ya("sbh",{}),c.isActive=!0,c.Xy=c.Xy||c.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&CP(this,5)}};
g.h.CO=function(){4<=this.status.status&&6>this.status.status&&this.Xe("player-reload-after-handoff")};
g.h.Xe=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){this.Na();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.ud(new g.eD("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.nk,msg:a})));a=this.j;a.videoData.Ha=!1;c&&RS(a);a.Ua&&LHa(a.Ua)}this.Il.reject(void 0);this.dispose()}};
g.h.qa=function(){MEa(this);this.j.unsubscribe("newelementrequired",this.CO,this);if(this.B){var a=this.B.u;this.B.j.Id.unsubscribe("updateend",this.Es,this);a.Id.unsubscribe("updateend",this.Es,this)}g.G.prototype.qa.call(this)};
g.h.Tc=function(a){g.xF(a,128)&&this.Xe("player-error-event")};
g.h.Na=function(){};g.v(FP,g.G);FP.prototype.clearQueue=function(){this.Na();this.C&&this.C.reject("Queue cleared");GP(this)};
FP.prototype.Ot=function(){return!this.j};
FP.prototype.qa=function(){GP(this);g.G.prototype.qa.call(this)};
FP.prototype.Na=function(){};g.v(LP,g.iv);g.h=LP.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.hj=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ne())};
g.h.setMinimized=function(a){this.B!==a&&(this.B=a,this.Ne())};
g.h.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ne())};
g.h.Du=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ne())};
g.h.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Ne())};
g.h.Bf=function(){return this.j};
g.h.isFullscreen=function(){return 0!==this.fullscreen};
g.h.vt=function(){return this.fullscreen};
g.h.Se=function(){return this.B};
g.h.isInline=function(){return this.inline};
g.h.isBackground=function(){return SEa()};
g.h.Mt=function(){return this.pictureInPicture};
g.h.It=function(){return this.u};
g.h.Ne=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.Bf(),this.isFullscreen(),this.Se(),this.isInline(),this.Mt(),this.It());a!==this.D&&this.ea("visibilitystatechange");this.D=a};
g.h.qa=function(){VEa(this.C);g.iv.prototype.qa.call(this)};g.v(g.PP,g.G);g.h=g.PP.prototype;
g.h.onCueRangeEnter=function(a){this.Va.push(a);var b=a.getId(),c=""===b;this.Wa.add(a.u);c||this.Aa.ya("sdai",{enterAdCueRange:1});if(this.Xa){this.Xa=!1;if(!c){var d=this.u.get(b);d&&(this.Y.N("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.Aa.getCurrentTime(),WP(this,{Ed:a,isAd:!0,Fm:!0,uf:c,adCpn:b},{isAd:!1,Fm:!1,uf:c})),this.api.ea("serverstitchedvideochange",d.xc,d.En),a=TP(this,"midab",d),this.Aa.ya("sdai",a),this.Ji=1)}this.C=!1}else if(this.j){if(this.j.Fm)this.Aa.ya("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.uf,cpn:b,currentTime:this.Aa.getCurrentTime()}),this.Y.N("web_player_same_transition_fallback_killswitch")||(d=this.Aa.getCurrentTime(),a={Ed:a,isAd:!c,Fm:!0,uf:d,adCpn:b},b={Ed:this.j.Ed,isAd:this.j.isAd,Fm:!1,uf:d,adCpn:this.j.adCpn},this.j.Ed&&this.Wa.delete(this.j.Ed.u),WP(this,a,b));else{if(this.j.Ed===a){this.Aa.ya("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.uf,cpn:b,currentTime:this.Aa.getCurrentTime()});this.j=void 0;
return}if(this.j.adCpn===b){b&&this.Aa.ya("sdai",{dchtsc:b});this.j=void 0;return}a={Ed:a,isAd:!c,Fm:!0,uf:this.Aa.getCurrentTime(),adCpn:b};WP(this,a,this.j)}this.j=void 0;this.C=!1}else this.j={Ed:a,isAd:!c,Fm:!0,uf:this.Aa.getCurrentTime(),adCpn:b}};
g.h.onCueRangeExit=function(a){if(this.Y.N("web_player_same_transition_fallback_killswitch")||this.Wa.has(a.u)){this.Wa.delete(a.u);this.Va=this.Va.filter(function(d){return d!==a});
this.Xa&&(this.C=this.Xa=!1,this.Aa.ya("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Fm){if(this.j.Ed===a){this.Aa.ya("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.uf,cpn:b,currentTime:this.Aa.getCurrentTime()});this.j=void 0;return}if(this.j.adCpn===b){b&&this.Aa.ya("sdai",{dchtsc:b});this.j=void 0;return}c={Ed:a,isAd:!c,Fm:!1,uf:this.Aa.getCurrentTime(),adCpn:b};WP(this,this.j,c)}else this.Aa.ya("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,
transitionTime:this.j.uf,upcomingCpn:b,contentCpn:this.Aa.getVideoData().clientPlaybackNonce,currentTime:this.Aa.getCurrentTime()});this.j=void 0;this.C=!1}else this.j={Ed:a,isAd:!c,Fm:!1,uf:this.Aa.getCurrentTime(),adCpn:b};this.Y.N("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.Aa.getCurrentTime()<this.Aa.Jj()&&MP(this,Infinity))}else this.Aa.ya("sdai",{ignore_single_exit:1})};
g.h.isAdPlaying=function(a){return this.Qn?!1:OP(this)?!!this.S:!!YP(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)MP(this,a);else{b=this.api.Kc();var d=b===this.Ra?this.ib:null;ZP(this,!1);this.qb=a;null!=c&&this.ob.start(c);b&&(this.ib=d||b.getPlayerState(),IU(b),this.Ra=b)}};
g.h.qa=function(){ZP(this,!1);aQ(this);dFa(this);g.G.prototype.qa.call(this)};
g.h.Na=function(){};
g.h.YH=function(a){this.Fb=a;this.Aa.ya("sdai",{swebm:a})};
g.h.Nj=function(a,b,c){if(c&&b){var d=this.Ha.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.Zx(c);this.ra&&this.Aa.ya("sdai",{hdlredir:1,itag:b,seg:a,hostport:by(c)});d.locations.set(e,c)}}};
g.h.Hj=function(a,b,c,d){if(this.Qn)return null;var e=Number(c.split(";")[0]),f=3===d;if(g.fFa(this,b))return this.ra&&this.Aa.ya("sdai",{gdu:"undec",seg:b,itag:e}),null;a=bQ(this,a,b);this.ra&&this.Aa.ya("sdai",{gdu:1,seg:b,itag:e,pb:""+!!a});if(!a)return dQ(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.Aa.ya("sdai",{gdu:"noadpfmts",seg:b,itag:e}),
dQ(this,b,f),null;k=m.find(function(p){return p.itag===e});
if(!k||!k.url){c={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:e,fullitag:c,itags:""};if(!this.Y.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.Aa.ya("sdai",c);dQ(this,b,f);return null}m=!this.Y.N("html5_ssdai_decipher_killswitch");a.locations.set(e,new g.Zx(k.url,m))}m=a.locations.get(e);if(!m)return this.Aa.ya("sdai",{gdu:"nourl",seg:b,itag:e}),dQ(this,b,f),null;k=new gz(m);this.Fb&&k.set("dvc","webm");
this.Y.experiments.kb("ssdai_return_original_content")&&k.set("dairoc","1");(m=this.vA(b-1,d))&&k.set("daistate",m);a.fI&&b>=a.fI&&k.set("skipsq",""+a.fI);(l=this.Aa.getVideoData().clientPlaybackNonce)&&k.set("cpn",l);m=[];a.Ok&&(m=gFa(this,a.Ok),0<m.length&&k.set("acpns",m.join(",")));f||this.Ha.set(b,a);this.Y.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.Ok?this.Aa.ya("sdai",{acpns_aids_nm:1,ids:iFa(this,
a.Ok).join("_"),aids:null==f?void 0:f.replace(/,/g,"_"),cpn:l,trackType:d}):this.Aa.ya("sdai",{acpns_aids_nm:"noAdBreakId",cpn:l})));f=g.hz(k);2048<(null==f?void 0:f.length)&&this.Aa.ya("sdai",{urltoolong:1,sq:b,itag:e,len:f.length});this.ra&&(f&&(n=a.cpn,d=a.Ok,kFa(this,n,d),d&&!this.Ub.has(d)&&(n=hFa(this,n,d),k=jFa(this,d),this.Aa.ya("sdai",{iofa:n}),this.Aa.ya("sdai",{noawnzd:k-n}),this.Aa.ya("sdai",{acpns:m.join(".")}),this.Ub.add(d))),this.Aa.ya("sdai",{gdu:"v",seg:b,itag:c,ast:a.wc.toFixed(3),
alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));return f};
g.h.eI=function(a,b){if(a=bQ(this,a,b))if(a=a.Ok)if(this.Aa.ya("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.fI=b}};
g.h.vA=function(a,b){return 1===b&&this.xa.has(a)?this.xa.get(a)||"":2===b&&this.Qa.has(a)?this.Qa.get(a)||"":3===b&&this.Da.has(a)?this.Da.get(a)||"":""};
g.h.Sy=ca(33);
g.h.eH=function(a,b,c,d,e,f,k,l){l&&(k?this.Qa.set(a,l):this.xa.set(a,l));if(k){if(d.length&&e.length)for(a=b+this.Am(),k=g.r(d.entries()),l=k.next();!l.done;l=k.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=a;a=m+e[l];if(n=this.u.get(n))l=m-f[l],n.En=null!=n.En?Math.min(n.En,l):l}if(!OP(this))if(d.length&&e.length)for(b=1E3*(b+this.Am()),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.Aa.getVideoData().clientPlaybackNonce)cQ(this,b,
b+f,!1),b+=f;else if(this.Sb.has(c)||(this.Aa.ya("sdai",{adCpnFromEmsg:1}),this.Sb.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=aFa(b,b+f,c),this.D.set(c,a),this.Aa.ya("sdai",{newAdCR:1}),k=!0),b=a.end,cQ(this,a.start,a.end,!0),k)for(this.Aa.addCueRange(a),c=this.Aa.Gw("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||cQ(this,1E3*(b+this.Am()),1E3*(b+this.Am())+
5E3,!1)}};
g.h.Nw=ca(35);g.h.Am=function(){return this.Aa.Am()};
g.h.wx=function(a){this.Aa.ya("timelineerror",{e:a});this.Na()};
g.h.bx=function(a){this.Z&&this.X&&this.va.push(this.X);!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.X&&this.Cb.push(this.X);this.X=null;this.Aa.bx(a)};
g.h.AF=function(a){if(this.Qn||a.identifier&&this.pc.has(a.identifier))this.ra&&this.Aa.ya("sdai",{startnoad:a.identifier}),SP(this);else if(an(this.va,function(c){return c.identifier===a.identifier}))this.Aa.ya("sdai",{timedoutcp:1}),this.ma.start(0);
else if(!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&an(this.Cb,function(c){return c.identifier===a.identifier}))this.Aa.ya("sdai",{fetchedcp:1}),SP(this);
else if(this.ma.isActive()){var b;this.Aa.ya("sdai",{racingcp:(null==(b=this.X)?void 0:b.identifier)+"_"+a.identifier})}else this.Hb=(new Date).getTime()/1E3,this.ra&&this.Aa.ya("sdai",{adf:1}),this.Z=!1,this.ma.start(),this.X=a,this.xa.clear(),this.Qa.clear(),this.Da.clear(),this.Y.N("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.Ha.clear(),this.fb=[]};
g.h.yq=function(a,b){a=bQ(this,a,b);if(!this.Y.experiments.kb("disable_ssdai_on_errors")||!a||this.Qn)return!1;this.Qn=!0;0<this.Ji&&(this.Ji=0,this.S=null,this.api.ea("serverstitchedvideochange"));a=this.Aa;b={reason:"disablessdai",sq:b};"disablessdai"===b.reason&&(a.videoData.iJ=!0);a.ud(new g.eD("qoe.restart",b));RS(a,!0);return!0};
g.h.zq=function(){this.Aa.ya("sdai",{rstdaist:1});this.xa.clear();this.Qa.clear();this.Da.clear()};
g.h.bp=function(a){this.pc.add(a);var b;(null==(b=this.X)?void 0:b.identifier)===a&&SP(this)};
g.h.dH=function(a,b,c,d){if(OP(this)){var e=this.Aa.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?UP(this):this.u.get(a),k=b===e?UP(this):this.u.get(b);f&&k?(c=this.C?c:d,VP(this.Aa,f,k,c,d,this.C),b===e?(this.Ia=1E3*c,this.Ji=0,this.S=null,this.Aa.ya("sdai",{adchg:this.Ji}),this.api.ea("serverstitchedvideochange")):(this.Ia=0,this.Ji++,this.S=k,this.Aa.ya("sdai",{adchg:this.Ji,apid:this.S.xc,acpn:this.S.cpn}),this.api.ea("serverstitchedvideochange",k.xc,k.En))):this.Aa.ya("sdai",
{unknowntrans:"1",old:a,"new":b});this.C=!1}}};
var ZEa=0;g.v(eQ,g.G);g.h=eQ.prototype;g.h.onCueRangeEnter=function(a){if(this.j===this.api.Kc()){var b=this.J.get(a);if(b){var c=b.target;this.Na();rFa(this,c,b.nk,a)}else this.ud("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.Un.Ed===a})){var d=b.Un;
this.Na();c=d.target;d=d.nk;c?rFa(this,c,d,a):qFa(this,b.Nc,d,a)}};
g.h.onQueuedVideoLoaded=function(){var a=this.K;iQ(this);if(a){if(!hQ(this,a)){var b=this.api.Kc();this.ud("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}b=this.api.Kc();a=a.Un;this.Na();b.addCueRange(a.Ed)}};
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)lFa(this,a);else{b=this.api.Kc();var d=b===this.C?this.D:null;kQ(this,!1);this.X=a;null!=c&&this.S.start(c);b&&(this.D=d||b.getPlayerState(),IU(b),this.C=b)}};
g.h.qg=function(a){g.xF(a,128)&&uFa(this)};
g.h.isManifestless=function(){return ZD(this.j.getVideoData())};
g.h.qa=function(){kQ(this,!1);mQ(this);g.G.prototype.qa.call(this)};
g.h.Na=function(){};
g.h.ud=function(a,b){this.j.ud(new g.eD(a,b))};
var mFa=0;var wFa="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.v(pQ,g.G);pQ.prototype.get=function(a){nQ(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
pQ.prototype.set=function(a,b,c){this.remove(a,!0);nQ(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())&&qQ(this,c,!0);oQ(this)};
pQ.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(qQ(this,c,b),g.$b(this.data,function(d){return d.key===a}),oQ(this))};
pQ.prototype.qa=function(){var a=this;g.G.prototype.qa.call(this);this.data.forEach(function(b){qQ(a,b,!0)});
this.data=[]};g.rQ.prototype.info=function(){};g.v(sQ,g.G);sQ.prototype.qa=function(){yFa(this.j);g.G.prototype.qa.call(this)};g.v(tQ,g.Yp);tQ.prototype.ea=function(a){var b=g.Ca.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.Yp.prototype.ea.call.apply(g.Yp.prototype.ea,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};uQ.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
uQ.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)};
uQ.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.v(vQ,g.G);vQ.prototype.start=function(){this.u.start()};
vQ.prototype.stop=function(){this.u.stop()};
vQ.prototype.clear=function(){for(var a=g.r(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
vQ.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 yQ(BTa.has(b)));this.j.get(b).update(c())}this.u.start()};
var BTa=new Set(["networkactivity"]);yQ.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
yQ.prototype.clear=function(){this.buffer.clear();this.j=0};g.v(zQ,g.G);zQ.prototype.qa=function(){g.G.prototype.qa.call(this);this.j=null;this.u&&this.u.disconnect()};g.CTa=Cg(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var H0;H0={};g.AQ=(H0.STOP_EVENT_PROPAGATION="html5-stop-propagation",H0.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",H0.IV_DRAWER_OPEN="ytp-iv-drawer-open",H0.MAIN_VIDEO="html5-main-video",H0.VIDEO_CONTAINER="html5-video-container",H0.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",H0.HOUSE_BRAND="house-brand",H0);g.v(BQ,g.W);g.h=BQ.prototype;g.h.Fn=function(){g.Ep(this.element,g.Ca.apply(0,arguments))};
g.h.Pg=function(){this.Eb&&(this.Eb.removeEventListener("focus",this.PG),g.ii(this.Eb),this.Eb=null)};
g.h.KE=function(){this.isDisposed();var a=this.app.V();a.xj||this.Fn("tag-pool-enabled");a.D&&this.Fn(g.AQ.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Fn("ytp-gvn"),this.element.style.backgroundColor="transparent");a.ub&&(this.CE=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.zy=function(a){vC(this.app.V());this.LA=!a;CQ(this)};
g.h.resize=function(){if(this.Eb){var a=this.Hg();if(!a.isEmpty()){var b=!g.Eh(a,this.nu.getSize()),c=IFa(this);b&&(this.nu.width=a.width,this.nu.height=a.height);a=this.app.V();(c||b||a.ub)&&this.app.Ta.ea("resize",this.getPlayerSize())}}};
g.h.Go=function(a,b){this.updateVideoData(b)};
g.h.updateVideoData=function(a){if(this.Eb){var b=this.app.V();fs&&(this.Eb.setAttribute("x-webkit-airplay","allow"),a.title?this.Eb.setAttribute("title",a.title):this.Eb.removeAttribute("title"));fwa(a)?this.Eb.setAttribute("disableremoteplayback",""):this.Eb.removeAttribute("disableremoteplayback");this.Eb.setAttribute("controlslist","nodownload");b.cm&&a.videoId&&(this.Eb.poster=a.Re("default.jpg"))}b=g.mE(a,"yt:bgcolor");this.pw.style.backgroundColor=b?b:"";this.wG=jC(g.mE(a,"yt:stretch"));this.xG=
jC(g.mE(a,"yt:crop"),!0);g.N(this.element,"ytp-dni",a.D);this.resize()};
g.h.setGlobalCrop=function(a){this.yF=jC(a,!0);this.resize()};
g.h.setCenterCrop=function(a){this.zL=a;this.resize()};
g.h.hj=function(){};
g.h.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ta.isFullscreen();if(b&&Zr())return new g.Dh(window.outerWidth,window.outerHeight);if(b||a.Jk){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.xx&&this.xx.media===a||(this.xx=window.matchMedia(a));var c=this.xx&&this.xx.matches}if(c)return new g.Dh(window.innerWidth,window.innerHeight)}else if(!isNaN(this.Iw.width)&&!isNaN(this.Iw.height))return this.Iw.clone();return new g.Dh(this.element.clientWidth,
this.element.clientHeight)};
g.h.Hg=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.cB(this.app.V().experiments,"player_underlay_min_player_width");return a&&this.qH&&b.width>c?(a=g.cB(this.app.V().experiments,"player_underlay_video_width_fraction"),new g.Dh(b.width*a,b.height)):b};
g.h.getVideoAspectRatio=function(){return isNaN(this.wG)?GFa(this):this.wG};
g.h.getVideoContentRect=function(a){var b=this.Hg();a=HFa(this,b,this.getVideoAspectRatio(),a);return new g.Jm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.h.Fu=function(a){this.qH=a;this.resize()};
g.h.XA=function(){return this.PB};
g.h.onMutedAutoplayChange=function(){CQ(this)};
g.h.setInternalSize=function(a){g.Eh(this.Iw,a)||(this.Iw=a,this.resize())};
g.h.qa=function(){this.CE&&g.Ju(this.CE);this.Pg();g.W.prototype.qa.call(this)};g.h=JFa.prototype;g.h.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Lv();c&&a.visualElement&&g.bw(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=spa(c);a.visualElement=c;var f=g.Lv(),k=g.Kv();f&&k&&g.Wv(void 0,f,k,[c]);g.sf(b,function(){KFa(e,a)});
d&&this.u.add(a)};
g.h.dh=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.sf(b,function(){KFa(d,a)});
c&&this.u.add(a)};
g.h.hk=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Hv(b))};
g.h.Io=function(a){return this.elements.has(a)};g.v(HQ,g.W);
HQ.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.v(JQ,g.W);g.h=JQ.prototype;g.h.show=function(){g.W.prototype.show.call(this);this.Ja()};
g.h.hide=function(){g.W.prototype.hide.call(this);this.delay.stop()};
g.h.stop=function(){this.delay.stop()};
g.h.start=function(){this.delay.isActive()||this.Ja()};
g.h.Ja=function(){var a=(0,g.R)(),b=this.Ta.getStatsForNerds();IQ(this.j,b.bandwidth_samples);IQ(this.C,b.network_activity_samples);IQ(this.B,b.live_latency_samples);IQ(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)};KQ.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
KQ.prototype.getPlaybackRate=function(){return this.playbackRate};OQ.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.ra?a:e,d);a=Math.max(a,e,d);this.u=!0;this.j.isManifestless&&(RFa(this,this.videoTrack,b),RFa(this,this.audioTrack,c));return a};
OQ.prototype.Na=function(){};
var SFa=2/24;YFa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.R)()};g.v(UQ,g.iv);g.h=UQ.prototype;
g.h.XG=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.eH(a.Ma,a.startTime,this.u,d,e,f,c,k)}if(c){if(b&&!this.ra.has(a.Ma)){c=a.startTime;d=[];e=g.r(b.j.entries());for(f=e.next();!f.done;f=e.next()){k=g.r(f.value);f=k.next().value;k=k.next().value;var l=c;c=l+b.u[f];d.push({startTime:l,endTime:c,adCpn:k})}this.ra.set(a.Ma,d)}this.policy.Pc&&(c=this.ma&&a.Ma===this.ma.Ma+1,this.ma=a,d=this.j&&a.Ma===this.j.Ma+1,d=this.j&&c&&d&&"stop"!==this.j.Kd.event&&"predictStart"!==
this.j.Kd.event,e=a.Kd||null,f=this.J.j.index.getLastSegmentNumber()<=a.Ma,k=this.S.isManifestless&&this.policy.Zl,e?(this.j&&this.j.Kd.identifier===e.identifier&&this.j.Kd.startSecs!==e.startSecs&&(l=this.policy.Lv&&this.Ua.qn,this.ya("cuepointStartSecsDrift",{id:e.identifier,firstSegNum:this.j.Ma,secondSegNum:a.Ma,firstStartSecs:this.j.Kd.startSecs,secondStartSecs:e.startSecs,sync:l}),l&&(e.startSecs=this.j.Kd.startSecs,e.durationSecs=this.j.Kd.durationSecs)),this.j={Kd:e,Ma:a.Ma,hx:!!b},f?VQ(this,
e,a.Ma):k&&(c?d?VQ(this,e,a.Ma):"continue"===e.event||"stop"===e.event?bGa(this,a):VQ(this,e,a.Ma):VQ(this,e,a.Ma))):d&&bGa(this,a))}};
g.h.WG=function(a,b,c){var d=this.J.j.index.getLastSegmentNumber()<=b;this.j={Kd:a,Ma:b,hx:c};d&&VQ(this,a,b)};
g.h.zq=function(){this.C&&this.C.zq()};
g.h.ya=function(a,b){this.Ua.ya(a,b)};
g.h.Hy=function(a,b){var c=this.J.j.index.getSegmentNumberForTime(a);if(0<=c){var d;if(null==(d=this.C)?0:d.vA(c,2))return this.ya("sdai",{skipad_on:c,t:a.toFixed(3)}),b.eI(a,c),aGa(this,a,a,c),!0}return!1};
g.h.Ct=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};dGa.prototype.Ou=function(a){var b=this.policy.S;this.policy.S=UA(a,{},this.J);if(b!==this.policy.S){YQ(this,this.j);$Q(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)}};eR.prototype.dispose=function(){this.ma=!0};
eR.prototype.isDisposed=function(){return this.ma};mR.prototype.skip=function(a){this.offset+=a};
mR.prototype.getOffset=function(){return this.offset};pR.prototype.di=function(a){this.Ia=this.u.shift().info;a.info.equals(this.Ia)};
pR.prototype.Em=function(){return!!this.D.info.audio};
pR.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()};g.h=yR.prototype;g.h.hF=function(){return 0};
g.h.dK=function(){return null};
g.h.tM=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;zR(this,-1)};
g.h.tF=function(){return 0};g.v(PQ,yR);g.h=PQ.prototype;g.h.onStateChange=function(){this.isDisposed()&&(TT(this.Ud,this.u),this.B.dispose())};
g.h.oq=function(){var a=HHa(this.Ud,this.u),b;var c=(null==(b=this.Ud.Od.get(this.u))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Ud.Od.get(this.u))?void 0:d.Lz)||0;var e;d=(null==(e=this.Ud.Od.get(this.u))?void 0:e.qe.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.Ud.Sf(this.u)}};
g.h.qM=function(){return 0};
g.h.Iv=function(){return!0};
g.h.BD=function(){this.Fo();this.S=!0;return TGa(this.j)};
g.h.eK=function(){this.Fo();return this.j.qe};
g.h.mu=function(){var a,b;return!!(null==(a=this.j)?0:null==(b=a.qe)?0:b.length)||this.Ud.jg(this.u)};
g.h.Fo=function(){for(;this.Ud.jg(this.u);){var a=this.j,b=this.Ud.di(this.u),c=this.Ud.Od.get(this.u);SGa(a,b,c.cf&&!c.qe.totalLength&&VGa(this.Ud,this.u))}};CR.prototype.Gf=function(){return DGa(this.C)};
CR.prototype.di=function(a){this.C.di(a);a=a.info;var b=a.j.info.Ob;this.policy.Xv&&a.Td&&a.duration&&(b=Math.max(b,(a.zb+a.u)/a.duration));this.Ob=Math.max(this.Ob,b||0)};
CR.prototype.getDuration=function(){return this.j.index.getMaxKnownEndTime()};
CR.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Ma:!1};g.h=PR.prototype;g.h.Yt=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Zt()};
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.ep())};
g.h.Aq=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.Mw=function(){return+this.getResponseHeader("content-length")};
g.h.Kj=function(){return this.B};
g.h.iy=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.h.jg=function(){return 0<this.j.totalLength};
g.h.di=function(){var a=this.j;this.j=new iy;return a};
g.h.Gf=function(){return this.j};
g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.h.Ju=function(){return!0};
g.h.XB=function(){return this.C};
g.h.Fe=function(){return""};g.h=iHa.prototype;g.h.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.h.abort=function(){};
g.h.Aq=function(){return!0};
g.h.Mw=function(){return this.range.length};
g.h.Kj=function(){return this.loaded};
g.h.iy=function(){return!!this.loaded};
g.h.jg=function(){return!!this.u.totalLength};
g.h.di=function(){var a=this.u;this.u=new iy;return a};
g.h.Gf=function(){return this.u};
g.h.Ju=function(){return!0};
g.h.XB=function(){return!!this.error};
g.h.Fe=function(){return this.error};var jHa=0;g.h=QR.prototype;g.h.jo=function(){this.ma||(this.ma=this.callbacks.jo?this.callbacks.jo():1);return this.ma};
g.h.Zt=function(){this.Ia=this.now();this.callbacks.Zt()};
g.h.Xq=function(a,b){SR(this,a,b);50>a-this.C&&UR(this)||nHa(this,a,b);this.callbacks.Xq(a,b)};
g.h.ep=function(){this.callbacks.ep()};
g.h.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.h.now=function(){return(0,g.R)()};g.h=ZR.prototype;g.h.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.X);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.ma,this.onError).then(void 0,Cs)};
g.h.onDone=function(){this.isDisposed()||this.callbacks.ep()};
g.h.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.h.Aq=function(){return!!this.D};
g.h.Kj=function(){return this.u};
g.h.Mw=function(){return+this.getResponseHeader("content-length")};
g.h.iy=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.h.jg=function(){return!!this.j.totalLength};
g.h.di=function(){this.jg();var a=this.j;this.j=new iy;return a};
g.h.Gf=function(){this.jg();return this.j};
g.h.isDisposed=function(){return this.J};
g.h.abort=function(){this.Cl&&this.Cl.cancel().catch(function(){});
this.B&&this.B.abort();this.J=!0};
g.h.Ju=function(){return!0};
g.h.XB=function(){return this.K};
g.h.Fe=function(){return this.errorMessage};g.h=$R.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.ep()}};
g.h.Yt=function(){2===this.xhr.readyState&&this.callbacks.Zt()};
g.h.Hd=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.Xq((0,g.R)(),a.loaded))};
g.h.Aq=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.Mw=function(){return+this.getResponseHeader("content-length")};
g.h.Kj=function(){return this.u};
g.h.iy=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.h.jg=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.h.di=function(){this.jg();var a=this.response;this.response=void 0;return new iy([new Uint8Array(a)])};
g.h.Gf=function(){this.jg();return new iy([new Uint8Array(this.response)])};
g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.h.Ju=function(){return!1};
g.h.XB=function(){return!1};
g.h.Fe=function(){return""};g.v(cS,yR);g.h=cS.prototype;g.h.oq=function(){var a=RR(this.timing);a.shost=by(this.u.Mh);this.B&&(a.rc=this.B.toString());a.itag=this.info.j[0].j.info.Yb();a.ml=""+ +this.info.j[0].j.df();a.sq=""+this.info.j[0].Ma;this.u&&(a.ifi=""+ +dy(this.info.u.C));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.Fe()&&(a.msg=this.xhr.Fe());this.Jy&&(a.smb="1");if(this.j){var b=this.j.qe;b.length&&zsa(b[0],a)}this.info.Hj()&&(a.sdai="1");return a};
g.h.qM=function(){return rHa(this.timing)};
g.h.Fe=function(){return this.xhr.Fe()||""};
g.h.Iv=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.HB&&VR(a,a.u));return a};
g.h.Xq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.mu()?AR(this,2):!this.va&&this.Iv()&&(AR(this),this.va=!0))};
g.h.Zt=function(){if(!this.isDisposed()&&this.xhr){if(!this.Z&&this.xhr.Aq()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Z=((0,g.R)()-a)/1E3}this.xhr.Aq()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Jr&&!Ata()&&g.fw("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.ep=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.X.stop(),this.B=a.status,a=wHa(this,a),5===a?bS(this):zR(this,a))};
g.h.canRetry=function(){this.isDisposed();var a=aS(this),b=this.info.Hj()?this.policy.rr:this.policy.wj;return a.timedOut<this.policy.Fp&&a.j<b};
g.h.onStateChange=function(){this.isComplete()&&(this.policy.Qd?dS(this):this.timing.deactivate())};
g.h.JZ=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.R)(),b=!1;UR(this.timing)?(a=this.timing.X,lHa(this.timing),this.timing.X-a>=.8*this.ra?(this.C++,b=5<=this.C):this.C=0):(b=this.timing,b.uh&&YR(b,b.now()),a-=b.S,this.policy.Lb&&0<a&&(this.C+=1),b=Yra(aS(this),this.policy,!1)*this.policy.Bk,b=a>1E3*b);this.C&&this.callback&&this.callback(this,this.state);b?xHa(this,!1):this.X.start()}};
g.h.dispose=function(){yR.prototype.dispose.call(this);this.X.dispose();this.policy.Qd||dS(this)};
g.h.BD=function(){if(!this.eK().length)return[];this.S=!0;return TGa(this.j)};
g.h.mu=function(){if(1>this.state)return!1;if(this.j&&this.j.qe.length)return!0;var a;return(null==(a=this.xhr)?0:a.jg())?!0:!1};
g.h.eK=function(){this.Fo(!1);return this.j?this.j.qe:[]};
g.h.Fo=function(a){if(a||this.xhr.Aq()&&this.xhr.jg()&&!vHa(this)&&!this.D){if(!this.j){if(this.xhr.Ju())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Kj();this.j=new RGa(this.info.j,b)}for(;this.xhr.jg();)SGa(this.j,this.xhr.di(),a&&!this.xhr.jg())}};
g.h.Kj=function(){return this.xhr.Kj()};
g.h.hF=function(){return this.Z};
g.h.jo=function(){return yHa(this)?2:1};
g.h.tF=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.h.dK=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J};
g.h.tM=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K};eS.prototype.clear=function(){this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1};
eS.prototype.Na=function(){};g.v(g.gS,g.G);g.h=g.gS.prototype;
g.h.initialize=function(a,b,c){a=a||0;this.Aa.xB(lGa(this.u));if(this.j.isManifestless){if(this.policy.Th){b=nra(this.policy);for(var d in this.j.j)this.j.j.hasOwnProperty(d)&&(this.j.j[d].index.C=b)}JHa(this)}this.D&&AHa(this.D,this.videoTrack.j);this.policy.Ia&&Fx()&&this.ya("streaming",{ac:!!window.AbortController||Gx()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.j.isManifestless?d:a;this.X&&(IHa(this,this.videoTrack),IHa(this,this.audioTrack),zKa(this.X),delete this.X);
c?(this.policy.Yf?(this.ob=c,lS(this,c)):lS(this,!1),g.xp(this.Ra)):(a=0===this.currentTime,hS(this,this.videoTrack,this.videoTrack.j,a),hS(this,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).Fh(function(){}),this.timing.tick("gv"));
(this.j.Ie||this.j.Kg||this.j.D||this.j.C||this.j.J)&&this.ya("minMaxSq",{minSq:this.j.Ie,maxSq:this.j.Kg,minDvrTime:this.j.D,maxDvrTime:this.j.C,startWalltime:this.j.J})};
g.h.resume=function(){if(this.isSuspended||this.va){this.Wa=this.va=this.isSuspended=!1;try{this.Kh()}catch(a){g.S(a)}}};
g.h.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.B=b.C.j[a.id];b.K=b.B;a=new XQ(b.K,b.u,"m");uS(this.Aa,a.reason,a.audio.info);vS(this.Aa)}};
g.h.setPlaybackRate=function(a){a!==this.S.getPlaybackRate()&&this.S.setPlaybackRate(a)};
g.h.yq=function(a){var b=a.info.j[0].j,c=a.lastError;if(cy(b.u.j)){var d=g.Bc(a.Fe());this.ya("dldbrerr",{em:d||"none"})}d=a.info.j[0].Ma;var e=ZFa(this.B,a.info.j[0].B,d);if(a.canRetry()){if(!(a.info.u.u>=this.policy.rr&&this.C&&a.info.Hj()&&"net.badstatus"===a.lastError&&this.C.yq(e,d))){d=(b.info.video&&1<b.u.u||410===a.B||500===a.B||503===a.B)&&!cR(this.u)&&!cy(b.u.j);e=a.oq();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.handleError(c,e);this.isDisposed()||(d&&bR(this.u,
b),NR(f,a),this.Kh())}}else this.policy.xk?(b=1,this.C&&a.info.Hj()&&"net.badstatus"===a.lastError&&this.C.yq(e,d)&&(b=0),this.handleError(c,a.oq(),b)):(this.handleError(c,a.oq()),this.policy.Kk||!a.info.Vk()||this.policy.u||cy(b.u.j)?this.C&&a.info.Hj()&&"net.badstatus"===a.lastError&&this.C.yq(e,d)||this.handleError("net.retryexhausted",{err:c,rn:a.timing.requestNumber.toString()},1):(b.C=c,this.Kh()))};
g.h.Kh=function(){oS(this);if(this.mediaSource&&CA(this.mediaSource)&&!this.mediaSource.oh()){var a=ER(this.videoTrack);a=this.policy.Aj&&a&&tz(a);this.j.isManifestless&&this.j.S&&MA(this.j)?(this.K=MA(this.j),this.mediaSource.gk(this.K)):this.j.isLive&&!a?isNaN(this.K)?(this.K=this.currentTime+3600,this.mediaSource.gk(this.K)):this.K<=this.currentTime+1800&&(this.K=Math.max(this.K+1800,this.currentTime+3600),this.mediaSource.gk(this.K)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.K)||this.K!==a)&&0<a&&(this.mediaSource.gk(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||!eHa(this.videoTrack)&&!eHa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Ra?a=!1:(jS(this),this.Aa.seekTo(Infinity,{pe:"checkLoaderTracksSync",Yp:!0}),a=!0),!a){oS(this);try{GR(this.videoTrack);if(this.isDisposed())return;
GR(this.audioTrack);if(this.isDisposed())return}catch(e){QHa(this,e,{origin:"pollSlice"})}this.j.isManifestless&&(fHa(this.videoTrack),fHa(this.audioTrack),WFa(this.J),(a=this.videoTrack.Gf())&&a.u&&(a=a.u.D&&!this.policy.mm,this.ya(a===this.policy.D.Gh?"strm":"strmbug",{strm:a,sfmp4:this.policy.D.Gh,dfs:this.policy.mm},!0)));if(this.mediaSource)KHa(this);else if(this.policy.u){(a=this.videoTrack.Gf())&&this.videoTrack.di(a);var b=this.audioTrack.Gf();b&&this.audioTrack.di(b);IR(this.videoTrack)&&
IR(this.audioTrack)||(a||b)&&g.xp(this.ma)}kS(this);hS(this,this.videoTrack,this.videoTrack.j,!1);hS(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.Va)&&!this.J.u&&
OR(a)&&a.j.df()&&this.u.S)a:{if(b=this.currentTime,c=this.S,d=MQ(c,a.j.info.Ob,d.j.info.Ob,0),c=$B(c.schedule)+d/bC(c.schedule),b+=Math.max(c,c+10-d/a.j.info.Ob),a.B.length){if(a.B[0].info.j[0].startTime<=b)break a;QQ(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.Ob(g.Ob(a.B).info.j):a.C.u.length?a.u=qR(a.C).info:a.u=ER(a);a.u&&b<a.u.startTime&&(a.Z=0,a.j.df()?a.u=a.j.zm(b,!0).j[0]:a.u=null)}OHa(this,this.videoTrack,this.audioTrack);OHa(this,this.audioTrack,
this.videoTrack);this.policy.Mk&&this.Ia&&!this.isSuspended&&mua(this.schedule)&&(WHa(this,this.Ia),this.Ia="");this.D&&(a=this.D,a.C?(b=a.J+a.policy.nh,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.Dc)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.xp(this.ub,a));g.xp(this.qb)}}};
g.h.CS=function(a){if(this.policy.ob&&this.mediaSource){var b=a===this.mediaSource.j,c=a.xA();if(c&&(c.zb&&!c.Td||this.ya("sbu",a.Nb({a:b})),c.Td)){a=a.xf();b=sA(a,c.startTime-rS);var d=sA(a,this.currentTime);(0>b||b!==d)&&this.ya("sbu_mismatch",{b:rA(a),c:this.currentTime,s:zz(c)})}}this.Kh()};
g.h.JW=function(a){if(this.mediaSource){var b=ER(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.rF())for(var c=0;c<a.length;c++)this.ya("appendedbuffer",{i:c,b:g.Ac(a[c].subarray(0,4096),3)});a=void 0;b&&(a=yz(b));this.handleError("fmt.unplayable",a,1)}};
g.h.Xt=function(a){this.Aa.Xt(a)};
g.h.XG=function(a,b,c){this.j.isManifestless&&MGa(this,b,c,!!a.info.video)};
g.h.WG=function(a,b,c,d){a.info.video&&this.B.WG(b,c,d)};
g.h.Zw=ca(8);g.h.seek=function(a){if(this.isDisposed())return Bi();if(this.videoTrack.K||this.audioTrack.K)return Bi("seeking to head");oS(this);this.fb=(0,g.R)();kS(this,a);this.mediaSource&&this.mediaSource.j&&this.mediaSource.u&&(this.mediaSource.j.isLocked()||this.mediaSource.u.isLocked())&&vS(this.Aa,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.j.isLocked()});var b=this.currentTime;this.currentTime=this.J.seek(a);cGa(this.B,a,b);g.xp(this.ma);return Ai(this.currentTime)};
g.h.getCurrentTime=function(){return this.currentTime};
g.h.iF=function(){return this.audioTrack.j.info.j};
g.h.jF=function(){return this.videoTrack.j.info.j};
g.h.qa=function(){try{nS(this),QQ(this.audioTrack),QQ(this.videoTrack),this.Z=null,this.Qa="",g.G.prototype.qa.call(this)}catch(a){g.S(a)}};
g.h.handleError=function(a,b,c){c=void 0===c?0:c;var d=fD(c);if(this.policy.xk||!this.isDisposed())b=new g.eD(a,b,c),g.Ra(this),dD(b.details),this.Aa.handleError(b),"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.h.Nb=function(){var a=ER(this.audioTrack),b=ER(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.J.u,lmf:this.u.j.isLocked(),lbw:aC(this.schedule).toFixed(3),lhd:$B(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.Fg()||0)).toFixed(3),laa:a?zz(a):"",lva:b?zz(b):"",lar:this.audioTrack.u?zz(this.audioTrack.u):"",lvr:this.videoTrack.u?zz(this.videoTrack.u):"",laq:""+JR(this.audioTrack),lvq:""+JR(this.videoTrack)};this.mediaSource&&!this.mediaSource.cf()&&this.mediaSource.j&&this.mediaSource.u&&
(a.lab=rA(this.mediaSource.j.xf()),a.lvb=rA(this.mediaSource.u.xf()));this.ra&&(a.lapt=((0,g.R)()-this.ra).toFixed(0),a.lapr=RHa(this));return a};
g.h.fF=function(){return LQ(this.S)};
g.h.ya=function(a,b,c){this.Aa.ya(a,b,void 0===c?!1:c)};
g.h.Ig=function(){return this.Aa.Ig()};
g.h.Yp=function(a,b){a/=b;isNaN(this.timestampOffset)&&$Ha(this,a-Math.min(a,this.policy.nf));return(a-this.timestampOffset)*b};
g.h.zq=function(){this.B.zq()};
g.h.Ou=function(a){this.u.Ou(a)};
g.h.Hy=function(a,b){return this.C&&this.B.Hy(a,this.C)?($Ha(this,this.timestampOffset-b),!0):!1};
g.h.Ct=function(a){return this.B.Ct(a)};
var rS=2/24;g.h=g.yS.prototype;g.h.Hj=function(a,b,c,d){return this.kd.Hj(a,b,c,d)};
g.h.AF=function(a){this.kd.AF(a)};
g.h.yq=function(a,b){return this.kd.yq(a,b)};
g.h.zq=function(){this.kd.zq()};
g.h.eI=function(a,b){this.kd.eI(a,b)};
g.h.Nw=ca(34);g.h.Nj=function(a,b,c){this.kd.Nj(a,b,c)};
g.h.Sy=ca(32);g.h.eH=function(a,b,c,d,e,f,k,l){this.kd.eH(a,b,c,d,e,f,k,l)};
g.h.YH=function(a){this.kd.YH(a)};
g.h.vA=function(a,b){return this.kd.vA(a,b)};
g.h.dH=function(a,b,c,d){this.kd.dH(a,b,c,d)};g.v(zS,g.iv);g.v(AS,zS);AS.prototype.J=function(a,b){if(a&&b){var c=1*Number(yj(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.Sf(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.xp(this.u))}};
AS.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(cj),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.Gh(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 jR(d,"fairplay",!0))}this.j={}};
AS.prototype.qa=function(){this.j={};zS.prototype.qa.call(this)};var I0={},hIa=(I0.DRM_TRACK_TYPE_AUDIO="AUDIO",I0.DRM_TRACK_TYPE_SD="SD",I0.DRM_TRACK_TYPE_HD="HD",I0.DRM_TRACK_TYPE_UHD1="UHD1",I0);g.v(BS,g.G);BS.prototype.Na=function(){};g.v(DS,g.iv);g.h=DS.prototype;g.h.ap=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)&&wIa(d);c=g.Ac(d,4);wIa(d);d=g.Ac(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),this.Na("Key statuses changed: "+tIa(this,",")),CS(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)})));fD(b)&&this.dispose()};
g.h.shouldRetry=function(a,b){return this.xa&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.h.qa=function(){this.j={};g.iv.prototype.qa.call(this)};
g.h.Nb=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.yf=function(){var a=this.D.join();if(ES(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.h.Na=function(){};g.v(HS,g.G);g.h=HS.prototype;g.h.DS=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.h.ap=function(){this.K&&this.K(this.j.keyStatuses)};
g.h.KO=function(a){this.D&&this.D(a.message,"license-request")};
g.h.JO=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.IO=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){AIa(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.v(IS,g.G);g.h=IS.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.HS),gv(this.D,this.element,["keyerror","webkitkeyerror"],this.GS),gv(this.D,this.element,["keyadded","webkitkeyadded"],this.ES));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=BIa(c,this.j.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new HS(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},ir(function(f){AIa(e,"t.generateRequest",f)}));
return e}if(YA(this.j))return DIa(this,c);if($A(this.j))return CIa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new HS(this.element,this.j,c,null,null)};
g.h.HS=function(a){var b=JS(this,a);b&&b.KO(a)};
g.h.GS=function(a){var b=JS(this,a);b&&b.JO(a)};
g.h.ES=function(a){var b=JS(this,a);b&&b.IO(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.v(KS,g.G);
KS.prototype.init=function(){var a=this,b,c;return g.B(function(d){if(1==d.j)return g.Mm(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 IS(a.j,
a.B);g.H(a,a.u);a.u.attach();g.ua(d)})};
KS.prototype.J=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new jR(c,a.initDataType);var d=aIa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.Na()});
f&&(g.H(this,f),this.D.push(f),kIa(f,function(k){yIa(k,f.j,d,e)},function(){b.Na()},function(){},function(){}))}};
KS.prototype.Na=function(){};
KS.prototype.qa=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.G.prototype.qa.call(this)};g.v(LS,zS);
LS.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?EIa(this,a):(this.j.push({time:b+c,info:a}),g.xp(this.u,c))}};
LS.prototype.qa=function(){this.j=[];zS.prototype.qa.call(this)};MS.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
MS.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
MS.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
MS.prototype.findIndex=function(a){return g.Rb(this.keys,function(b){return g.lc(a,b)})};g.v(OS,g.iv);g.h=OS.prototype;g.h.IS=function(a){this.Xg({onecpt:1});a.initData&&JIa(this,new Uint8Array(a.initData),a.initDataType)};
g.h.JX=function(a){this.Xg({onndky:1});JIa(this,a.initData,a.contentType)};
g.h.Xt=function(a){this.Xg({onneedkeyinfo:1});this.Y.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));IIa(this,a)};
g.h.eL=function(a){this.B.push(a);PS(this)};
g.h.createSession=function(a){var b=KIa(this)?zGa(a):g.Ac(a.initData);this.u.get(b);this.ra=!0;a=new DS(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.mO,this);a.subscribe("keystatuseschange",this.ap,this);a.subscribe("licenseerror",this.wB,this);a.subscribe("newlicense",this.EO,this);a.subscribe("newsession",this.FO,this);a.subscribe("sessionready",this.RO,this);a.subscribe("fairplay_next_need_key_info",this.wO,this);mIa(a,this.C)};
g.h.EO=function(a){this.isDisposed()||(this.Na(),this.Xg({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))};
g.h.FO=function(){this.isDisposed()||(this.Na(),this.Xg({newlcssn:1}),this.B.shift(),this.ra=!1,PS(this))};
g.h.RO=function(){if(YA(this.j)&&(this.Na(),this.Xg({onsnrdy:1}),this.Da--,0===this.Da)){var a=this.Z;a.element.msSetMediaKeys(a.B)}};
g.h.ap=function(a){if(!this.isDisposed()){!this.xa&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(LIa(this),this.xa=!0);this.Na();this.Xg({onksch:1});if(!ES(a)&&g.ot&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(ES(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(!ES(a)||c)b=a.D;b=g.Tb(b,"UHD2")||g.Tb(b,"UHD2HDR")?
"highres":g.Tb(b,"UHD1")||g.Tb(b,"UHD1HDR")?"hd2160":g.Tb(b,"HD")||g.Tb(b,"HDHDR")?"hd1080":g.Tb(b,"HD720")||g.Tb(b,"HD720HDR")?"hd720":"large"}a:{c=g.Kx("auto",b,!1,"l");if(this.videoData.dg){if(this.S.equals(c))break a}else if(bra(this.S,b))break a;this.S=c;this.ea("qualitychange");this.Na();this.Xg({updtlq:b})}this.ea("keystatuseschange",a)}};
g.h.mO=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)};
g.h.wO=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)};
g.h.wB=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&LIa(this),this.ea("licenseerror",a,b,c,d))};
g.h.xt=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.mO,this),b.unsubscribe("keystatuseschange",this.ap,this),b.unsubscribe("licenseerror",this.wB,this),b.unsubscribe("newlicense",this.EO,this),b.unsubscribe("newsession",this.FO,this),b.unsubscribe("sessionready",this.RO,this),b.unsubscribe("fairplay_next_need_key_info",this.wO,this),b.dispose();
this.u.clear();NS(this.J);NS(this.K);this.heartbeatParams=null;g.iv.prototype.qa.call(this)};
g.h.Nb=function(){for(var a={systemInfo:this.j.Nb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Nb());return a};
g.h.yf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.yf()+(this.D?"/KR":"")};
g.h.Xg=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.Na(dD(a)),(cD(this.Y)||b)&&this.ea("ctmp","drmlog",a))};
g.h.Na=function(){};g.v(SS,g.G);SS.prototype.ZA=function(){return this.B};
SS.prototype.handleError=function(a){var b=this;QIa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!US(this,a.errorCode,a.details))&&!TIa(this,a))if(fD(a.severity)){var c,d=null==(c=this.Aa.Ua)?void 0:c.u.j;if(RIa(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.Aa.Vf(a.errorCode,a.severity,e,dD(a.details),f)}else this.Aa.ea("nonfatalerror",
a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.ud(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20220406233357/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.R)(),pP(a,"manifest",function(k){b.J=!0;b.ya("pathprobe",k)},function(k){b.ud(k.errorCode,k.details)}))};
SS.prototype.ya=function(a,b){this.Aa.Zb.ya(a,b)};
SS.prototype.ud=function(a,b){b=dD(b);this.Aa.Zb.ud(a,b)};VS.prototype.setPlaybackRate=function(a){this.playbackRate=a};
VS.prototype.N=function(a){return this.Y.N(a)};g.v(XS,g.G);XS.prototype.Tc=function(a){kJa(this);this.playerState=a.state;0<=this.B&&g.xF(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
XS.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(DTa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
XS.prototype.send=function(){if(!(this.C||0>this.u)){kJa(this);var a=g.IP(this.j)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=bMa[lE(this.j.videoData)];a:switch(this.j.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=0>this.B?a:this.B-this.u;a=this.j.Y.Dd+
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.jE(this.j.videoData),isGapless:this.j.videoData.Ha,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()}};
XS.prototype.qa=function(){this.C||this.send();g.G.prototype.qa.call(this)};
var DTa=/\bnet\b/;var mJa=window;var lJa=/[?&]cpn=/;g.v(g.cT,g.G);g.h=g.cT.prototype;g.h.ZU=function(){var a=g.IP(this.j);dT(this,a)};
g.h.Rw=function(){return this.xa};
g.h.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.IP(this.j),-1<["PL","B","S"].indexOf(this.Md)&&(!g.Sf(this.u)||a>=this.C+30)&&(g.bT(this,a,"vps",[this.Md]),this.C=a),!g.Sf(this.u))){7E3===this.sequenceNumber&&g.Sv(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){eT(this,a);var b=a,c=this.j.Aa.ax(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Xa,k=e&&!this.ob;d>c.totalVideoFrames||5E3<f?tJa(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(0<f||k)&&g.bT(this,b,"df",[f]);this.Xa=d;this.ob=e;!this.j.Y.N("disable_webgl_reporting")&&0<this.S&&(g.bT(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.X&&(a.addocid=this.X);this.j.videoData.cotn&&(a.cotn=this.j.videoData.cotn);a.el=wE(this.j.videoData);a.content_v=xE(this.j.videoData);a.ns=this.j.Y.Da;
a.fexp=this.j.Y.experiments.experimentIds.toString();a.cl=(439688426).toString();(b=this.j.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=lE(this.j.videoData))&&(a.live=b);cE(this.j.videoData)&&(a.drm=1,this.j.videoData.X&&(a.drm_system=WSa[this.j.videoData.X.flavor]||0),this.j.videoData.oE&&(a.drm_product=this.j.videoData.oE));sr()&&this.j.videoData.K&&(a.ctt=this.j.videoData.K,a.cttype=this.j.videoData.Ai,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.iJ&&(a.dai_fallback="1")):this.j.videoData.xc?a.dai="cs":this.j.videoData.yH&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.j.N("html5_log_server_url_param")&&this.j.videoData.xP){if(b=this.j.videoData.xP,a&&b)for(c=g.r(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Hb.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.j.videoData.videoId,a.ei=this.j.videoData.eventId;
g.bg(a,this.j.Y.deviceParams);a=g.wj("//"+this.j.Y.zj+"/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.Sv(new g.Is("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?c+=e:b+=e);qJa(this,a+b,c.replace(/ /g,"%20"))}this.u={}}};
g.h.jy=function(a){0<a&&(this.u.aft=[a.toString()])};
g.h.RP=function(){if(this.j.videoData.X){var a=this.j.videoData.X;gT(this,"eme-"+(a.keySystemAccess?"final":YA(a)?"ms":aB(a)?"ytfp":$A(a)?"safarifp":"nonfinal"))}};
g.h.Tc=function(a){var b=a.state,c=g.IP(this.j);a=this.getPlayerState(a.state);if(a!==this.Md){if(!(c<this.C)){if("PL"===this.Md)this.playTimeSecs+=c-this.C;else if("B"===this.Md&&this.ra){this.ra=!1;var d=g.cB(this.j.Y.experiments,"html5_disable_last_state_change")?this.C:this.Ra;this.rebufferTimeSecs+=c-d;!this.Qa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.j.Aa.Mx(),this.u.qoealert=["1"],this.Qa=!0)}"B"!==a||"PL"!==this.Md&&"PB"!==this.Md||(this.ra=!0);this.C=c}"PL"===this.Md&&("B"===
a||"S"===a)||cD(this.j.Y)?eT(this,c):dT(this,c);"PL"===a&&g.xp(this.Cb);g.bT(this,c,"vps",[a]);this.Md=a;this.C=this.Ra=c;this.D=!0}a=b.getData();g.V(b,128)&&a&&sJa(this,c,a.errorCode,a.TE,a.wH);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Jc()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);fT(this)};
g.h.Sx=function(a){var b=g.IP(this.j);g.bT(this,b,"vfs",[a.j.id,a.u,this.qb,a.reason]);this.qb=a.j.id;var c=this.j.Aa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.PC();1<d&&c.push(d);g.bT(this,b,"view",c)}this.Ia||(cD(this.j.Y)&&gT(this,"rqs"),this.j.videoData.j&&Px(this.j.videoData.j)&&(this.u.preload=["1"]));this.D=this.Ia=!0;"m"===a.reason&&100===++this.Lb&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.bT(this,b,"vps",[this.Md]);this.reportStats(b)};
g.h.Kx=function(a){var b=g.IP(this.j);a.j.id!==this.Da&&(g.bT(this,b,"afs",[a.j.id,this.Da,a.reason]),this.Da=a.j.id)};
g.h.Zo=ca(38);g.h.Yo=ca(41);g.h.onPlaybackRateChange=function(a){var b=g.IP(this.j);a&&a!==this.ib&&(g.bT(this,b,"rate",[a]),this.ib=a);this.reportStats(b)};
g.h.Zj=ca(17);g.h.getPlayerState=function(a){if(g.V(a,128))return"ER";if(g.V(a,2048))return"B";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";if(g.sH(a)&&g.V(a,64))return"B";var b=ETa[vH(a)];g.HC(this.j.Y)&&"B"===b&&3===this.j.Aa.getVisibilityState()&&(b="SU");"B"===b&&g.V(a,4)&&(b="PB");return b};
g.h.qa=function(){g.G.prototype.qa.call(this);window.clearInterval(this.Va)};
g.h.ya=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Fb.indexOf(a);e||this.Fb.push(a);if(!c||!e){b="string"!==typeof b?dD(b):b;b=uJa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.IP(this.j);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.u.ctmp=d;fT(this);return f}};
g.h.ly=function(a,b,c){this.K={PZ:Number(this.ya("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),dO:a,EZ:b,isAd:c}};
g.h.pu=function(a,b,c){g.bT(this,g.IP(this.j),"ad_playback",[a,b,c])};
var J0={},ETa=(J0[5]="N",J0[-1]="N",J0[3]="B",J0[0]="EN",J0[2]="PA",J0[1]="PL",J0);wJa.prototype.update=function(){if(this.S){var a=this.j.Aa.getCurrentTime()||0;this.j.Y.N("html5_vss_media_time_killswitch")||(a=this.j.Aa.Nh()||0);var b=g.IP(this.j);if(a!==this.u||AJa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||AJa(this,a,b))){var d=this.j.Oh();c=d.volume;var e=c!==this.Z;d=d.muted;d!==this.X?(this.X=d,c=!0):(!e||0<=this.D||(this.Z=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(kT(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};lT.prototype.send=function(a){var b=this;if(!this.Va){var c=nT(this),d=g.wj(this.uri,c);this.Z&&!this.Y.N("html5_simplify_pings")?FJa(this,d):mT(this,a).then(function(e){b.Z&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});aT(d,e,{token:b.S,uI:b.ob,mdxEnvironment:b.mdxEnvironment},b.Y,a,b.ra,b.isFinal&&b.Vd||b.va||b.C&&b.me)});
this.Va=!0}};
lT.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var K0={},DJa=(K0.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,K0.LIVING_ROOM_APP_MODE_MAIN=1,K0.LIVING_ROOM_APP_MODE_KIDS=2,K0.LIVING_ROOM_APP_MODE_MUSIC=3,K0.LIVING_ROOM_APP_MODE_UNPLUGGED=4,K0.LIVING_ROOM_APP_MODE_GAMING=5,K0),L0={},CJa=(L0.EMBEDDED_PLAYER_MODE_UNKNOWN=0,L0.EMBEDDED_PLAYER_MODE_DEFAULT=1,L0.EMBEDDED_PLAYER_MODE_PFP=2,L0.EMBEDDED_PLAYER_MODE_PFL=3,L0);g.v(pT,g.G);g.h=pT.prototype;g.h.Hd=function(){this.u.update();var a;if(a=this.j.videoData.isLoaded()&&this.j.videoData.Fb&&this.C&&!this.Z)a=this.u,a=(a.j.Y.N("html5_vss_media_time_killswitch")?a.J+a.j.Aa.getCurrentTime()-a.B:a.J+a.j.Aa.Nh()-a.B)>=this.j.videoData.Fb;a&&(this.C&&this.j.videoData.Fb&&(a=qT(this,"delayplay"),a.Dd=!0,a.send(),this.Z=!0),GJa(this))};
g.h.Tc=function(a){this.isDisposed()||(g.V(a.state,2)?(this.currentPlayerState="paused",g.xF(a,2)&&this.C&&tT(this).send()):g.V(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&rT(this,!1)):this.currentPlayerState="paused")};
g.h.qa=function(){g.G.prototype.qa.call(this);g.Dr(this.B);this.B=NaN;yJa(this.u)};
g.h.Nb=function(){return nT(qT(this,"playback"))};
g.h.Qu=function(){this.j.videoData.S.eventLabel=wE(this.j.videoData);this.j.videoData.S.playerStyle=this.j.Y.playerStyle;this.j.videoData.pd&&(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.pd;a.isAd=b};
g.h.jh=function(a){var b=qT(this,"engage");b.X=a;return BJa(b,LJa(this.j))};KJa.prototype.isEmpty=function(){return this.endTime===this.startTime};vT.prototype.N=function(a){return this.Y.N(a)};
var MJa={other:1,none:2,wifi:3,cellular:7};g.v(g.wT,g.G);g.h=g.wT.prototype;g.h.Tc=function(a){if(g.xF(a,1024)||g.xF(a,512)||g.xF(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.eg){var c;null==(c=this.B.get(this.eg))||c.Tc(a)}else this.j&&this.j.Tc(a);this.qoe&&this.qoe.Tc(a);this.C.Tc(a)};
g.h.Hd=function(){if(this.u.videoData.enableServerStitchedDai&&this.eg){var a;null==(a=this.B.get(this.eg))||a.Hd()}else this.j&&this.j.Hd()};
g.h.ud=function(a,b){this.qoe&&tJa(this.qoe,a,b);this.C.onError(a)};
g.h.Sx=function(a){this.qoe&&this.qoe.Sx(a)};
g.h.Kx=function(a){this.qoe&&this.qoe.Kx(a)};
g.h.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.h.Zo=ca(37);g.h.ya=function(a,b,c){this.qoe&&this.qoe.ya(a,b,c)};
g.h.ly=function(a,b,c){this.qoe&&this.qoe.ly(a,b,c)};
g.h.jy=function(a){this.qoe&&this.qoe.jy(a)};
g.h.pu=function(a,b,c){this.qoe&&this.qoe.pu(a,b,c)};
g.h.Yo=ca(40);g.h.Zj=ca(16);g.h.Rw=function(){if(this.qoe)return this.qoe.Rw()};
g.h.Nb=function(){if(this.u.videoData.enableServerStitchedDai&&this.eg){var a;null==(a=this.B.get(this.eg))||a.Nb()}else if(this.j)return this.j.Nb();return{}};
g.h.jh=function(a){return this.j?this.j.jh(a):function(){}};
g.h.Qu=function(){this.j&&this.j.Qu()};g.v(xT,g.G);g.h=xT.prototype;g.h.Rd=function(a,b){this.Fk();b&&2E3<=this.j.j.length&&this.Gw("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.nc(b.j,c,b.u)}this.u=NaN;this.Fk()};
g.h.Uf=function(a){1E4<a.length&&g.Sv(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)});
ZJa(this.j,b);this.Fk()}};
g.h.Gw=function(a,b){var c=(isNaN(this.u)?g.V(this.D(),2)?0x8000000000000:1E3*this.S():this.u)-b;b=this.wm().filter(function(d){return d.namespace===a&&d.end<c});
this.Uf(b);return b};
g.h.wm=function(){return this.isDisposed()?[]:this.j.j};
g.h.reset=function(){this.started=!1;this.C.stop();this.j.j=[];this.B=[];this.Fk()};
g.h.jf=function(a){var b=this.wm().filter(function(c){return c.namespace===a});
this.Uf(b);return b};
g.h.Tc=function(a){this.started&&(this.Fk(),g.V(a.Vo,16)&&(a=YJa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.h.RE=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.VE=function(a){var b=[];if(!a.length)return b;a.sort(g.Jw);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.Fk=function(){this.J=!0;if(!this.K){for(var a=3;this.J&&a;)this.J=!1,this.K=!0,this.hN(),this.K=!1,a--;this.D().Jc()&&(a=YJa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.ma(),this.C.start(a)))}};
g.h.hN=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.V(a,32)&&this.Z.start();for(var b=g.V(this.D(),2)?0x8000000000000:1E3*this.S(),c=g.V(a,2),d=[],e=[],f=g.r(this.B),k=f.next();!k.done;k=f.next())k=k.value,k.active&&(c?0x8000000000000>k.end:!k.contains(b))&&e.push(k);d=d.concat(this.VE(e));f=e=null;c?(a=WJa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=XJa(this.j)):a=this.u<=b&&tH(a)?VJa(this.j,this.u,b):WJa(this.j,b);
d=d.concat(this.RE(a));e&&(d=d.concat(this.VE(e)));f&&(d=d.concat(this.RE(f)));this.u=b;$Ja(this,d)}};
g.h.qa=function(){this.B=[];this.j.j=[];g.G.prototype.qa.call(this)};
g.BP.RA(xT,{Rd:"crmacr",RE:"crmncr",VE:"crmxcr",hN:"crmis",Uf:"crmrcr"});g.v(BT,g.iv);BT.prototype.Hm=function(){return this.K};
BT.prototype.Jj=function(){return Math.max(this.S()-fKa(this,!0),this.videoData.getMinSeekableTime())};
BT.prototype.Na=function(){};g.v(GT,g.G);GT.prototype.Tc=function(){g.xp(this.B)};
GT.prototype.D=function(){var a=this,b=this.Aa.zd(),c=this.Aa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.V(c,8)&&g.V(c,16),k=this.Aa.Co().isBackground()||c.isSuspended();HT(this,this.xa,f&&!k,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.j)&&0<this.j&&Pxa(b,this.j);var l=!d||10<Math.abs(d-this.j);HT(this,this.Da,f&&l&&!k,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var m=f&&tA(b.fg(),this.j);f=this.Aa.Ua;l=!f||!f.policy.Ub;var n=function(){b.seekTo(a.j+.001)};
HT(this,this.ma,m&&l&&!k,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return RS(a.Aa)};
HT(this,this.ra,m&&!k,e,"qoe.slowseek",l,"new_elem");var p=tH(c);m=g.uH(c);var q=b.fg(),t=sA(q,d);iKa(this,b,q,d,k,p,m);q=0<=t&&q.end(t)>d+5;q=p&&m&&q;HT(this,this.K,q&&!k,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");HT(this,this.S,q&&!k,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var w=f.getCurrentTime();n=b.uq();n=Osa(n,w);n=!f.J.u&&d===n;HT(this,this.Ra,p&&m&&n&&!k,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(w)},"seek_to_loader")}HT(this,this.X,p&&m&&!k,p&&!m,"qoe.longrebuffer",function(){},
"timeout");
n=c.isSuspended();n=g.Tb(this.Aa.Zi,"ad")&&!n;HT(this,this.J,n,!n,"qoe.start15s",function(){a.Aa.Je("ad")},"ads_preroll_timeout");
n=this.Aa.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.Aa,y=x.yg.Kc();(!y||!x.videoData.isAd()||y.getVideoData().xc!==x.getVideoData().xc)&&x.videoData.oe||x.Vf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)};
HT(this,this.Ha,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&tA(b.fg(),d+5)&&q;HT(this,this.Ia,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");HT(this,this.Qa,g.sH(c)&&g.V(c,64)&&!k,e,"qoe.start15s",function(){},"timeout");
HT(this,this.Z,!!f&&!f.mediaSource&&g.sH(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
GT.prototype.ud=function(a,b,c){b=this.Nb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Aa.ud(new g.eD(a,b));this.u[a]=!0};
GT.prototype.Nb=function(a){a=Object.assign(this.Aa.Nb(!0),a.Nb());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
ET.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
ET.prototype.Nb=function(){var a={},b=(0,g.R)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.v(JT,g.G);g.h=JT.prototype;g.h.setMediaElement=function(a){g.hv(this.Ha);(this.mediaElement=a)?(wKa(this),IT(this)):LT(this)};
g.h.Tc=function(a){this.Z.Tc(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Jc()?g.xp(this.ma):this.ma.stop());if(this.mediaElement)if(8===a.Vo.state&&tH(a.state)&&g.uH(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.fg();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.Qa-c)||(this.Aa.ya("seekover",{b:rA(b,
"_"),cmt:a}),this.Qa=c,this.seekTo(c,{Cq:!0,pe:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.fb&&0<this.videoData.limitedPlaybackDurationInSeconds&&rU(this.Aa,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.h.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&tKa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.B||0};
g.h.Nh=function(){return this.getCurrentTime()-this.rd()};
g.h.Jj=function(){return this.u?this.u.Jj():Infinity};
g.h.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return DT(this.u,a)};
g.h.Hm=function(){return!!this.u&&this.u.Hm()};
g.h.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.yQ?!1:c.yQ;var d=void 0===c.zQ?0:c.zQ,e=void 0===c.Cq?!1:c.Cq,f=void 0===c.vI?0:c.vI,k=void 0===c.pe?"":c.pe;if(void 0===c.Yp?0:c.Yp)a+=this.rd();c=a;var l=!isFinite(c)||(this.u?DT(this.u,c):c>=this.yd())||!g.oE(this.videoData);l||this.Aa.ya("seeknotallowed",{st:c,mst:this.yd()});if(!l)return this.C&&(this.C=null,OT(this)),Ai(this.getCurrentTime());this.Na();if(.005>Math.abs(a-this.j)&&this.S)return this.Na(),this.D;k&&(c=a,(2<=this.Y.X||
this.N("html5_log_seek_reasons"))&&this.Aa.ya("seekreason",{reason:k,tgt:c}));this.S&&LT(this);this.D||(this.D=new zP);a&&!isFinite(a)&&KT(this,!1);k=a;(NT(this)&&!(this.mediaElement&&0<this.mediaElement.Jh()&&0<jH(this.mediaElement))||ZD(this.videoData)&&this.getMinSeekableTime()===this.yd(!1)?0:isFinite(k)||!ZD(this.videoData))&&(a=sKa(this,a,e));a&&!isFinite(a)&&KT(this,!1);this.B=a;this.xa=f;this.j=a;this.u&&(e=this.u,f=a,gKa(e,f,!1),hKa(e,f));e=this.Aa;f=a;e.Uc.B=f;k=e.jw;k.mediaTime=f;k.j=!0;
b&&IU(e);e.pm&&f>e.videoData.endSeconds&&isFinite(f)&&CU(e);f<e.yd()-.01&&(k=pH(e.playerState,2),g.V(k,8)&&(k=pH(k,4)),e.Vb(k));e.ea("SEEK_TO",e,f);this.D&&(b?d&&this.Da.start(d):(this.Na(),this.S=!0,mKa(this)));(b=this.Aa.pm)&&a>b.start&&CU(this.Aa);return this.D};
g.h.yd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.yd();var b;if(!this.N("html5_linear_live_max_seekable_killswitch")&&FE(this.videoData)&&(null==(b=this.mediaElement)?0:b.Sl())&&this.videoData.j)return a=this.getCurrentTime(),swa(1E3*this.getIngestionTime(a))+a;if(ZD(this.videoData)&&this.videoData.ih&&this.videoData.j)return this.videoData.j.yd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.Jj();a=this.videoData.yd();this.policy.j&&
this.mediaElement&&(a=Math.max(a,Qxa(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?as()?swa(this.mediaElement.vz().getTime()):jH(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.h.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(FE(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(){MT(this,null);this.Z.dispose();g.G.prototype.qa.call(this)};
g.h.Nb=function(){var a={};this.Ua&&Object.assign(a,this.Ua.Nb());this.mediaElement&&Object.assign(a,this.mediaElement.Nb());return a};
g.h.fH=function(a){this.timestampOffset=a};
g.h.getStreamTimeOffset=function(){return ZD(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.h.rd=function(){return this.timestampOffset};
g.h.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)};
g.h.qq=function(){if(!this.mediaElement)return 0;if(pE(this.videoData)){var a=Qxa(this.mediaElement)+this.timestampOffset-this.getMinSeekableTime(),b=this.yd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.qq()};
g.h.xB=function(a){this.J&&(this.J.j=a.audio.index)};
g.h.N=function(a){return this.Y&&this.Y.N(a)};
g.h.Na=function(){};PT.prototype.isFinished=function(){return this.finished};
PT.prototype.start=function(){this.started=!0};
PT.prototype.reset=function(){this.finished=this.started=!1};QT.prototype.encrypt=function(a){return(new UB(this.j.j)).encrypt(a,this.iv)};
QT.prototype.decrypt=function(a,b){return(new UB(this.j.j)).decrypt(a,b)};g.v(RT,g.G);g.h=RT.prototype;g.h.jg=function(a){var b;return!(null==(b=this.Od.get(a))||!b.qe.totalLength)};
g.h.di=function(a){a=this.Od.get(a);var b=a.qe;a.Lz+=b.totalLength;a.qe=new iy;return b};
g.h.cf=function(a){return this.Od.get(a).cf};
g.h.Sf=function(a){return this.Od.get(a).Sf};
g.h.Px=function(a){(a=this.Od.get(a))&&!a.Sf&&(a.Sf=!0)};
g.h.qa=function(){g.G.prototype.qa.call(this);for(var a=g.r(this.Od.keys()),b=a.next();!b.done;b=a.next())ST(this,b.value);this.Od.clear()};VT.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.Tj.wd("omd_s");c=new Uint8Array(16);KB()?d=new TB(a):e=new UB(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ya(3);break}f=b.j.shift();if(!d){k=e.decrypt(ny(f.buffer),c);m.Ya(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]);PKa(b.Tj.od,
f.lI,n);m.Ya(2);break;case 3:b.Tj.wd("omdf"),XT(b),b.u=!1,b.Tj.VG(),g.ua(m)}})};
VT.prototype.enqueue=function(a,b,c){this.j.push({lI:a,buffer:b,isEncrypted:c});this.u||XT(this)};var WKa=!!Uint8Array.prototype.copyWithin,ZT=[],$T=[],SKa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],bU=[],aU=[],dU=[],cU=[];var hU,FTa=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),M0={},GTa=(M0.a=1,M0.o=3,M0.meac3=5,M0.mac3=7,M0),N0={},HTa=(N0["1h"]=8,N0["9h"]=4,N0["1"]=8,N0["9"]=4,N0.h=2,N0),cLa=[["337","336","335"],["701","700"],["315","308","303","302"],["299","298"],["401","400","399","398"],["313","271","248","247","244"],["137","136"]],eLa=[["140"],["251"]],O0={},aLa=(O0["247"]=["317","273","318","280","279"],O0["136"]=["144","222","223","143","142"],O0["140"]=["149"],O0),P0={},$Ka=(P0["398"]=
["397","396","395","394"],P0["247"]=["244","243","242"],P0["136"]=["135","134","133","160"],P0["251"]=["250"],P0),Q0={},jLa=(Q0["140"]={numChannels:2},Q0["251"]={audioSampleRate:48E3,numChannels:2},Q0),R0={},iLa=(R0["337"]={width:3840,height:2160,bitrate:3E7,fps:30},R0["336"]={width:2560,height:1440,bitrate:15E6,fps:30},R0["335"]={width:1920,height:1080,bitrate:75E5,fps:30},R0["701"]={width:3840,height:2160,bitrate:2E7,fps:30},R0["700"]={width:2560,height:1440,bitrate:1E7,fps:30},R0["315"]={width:3840,
height:2160,bitrate:2E7,fps:60},R0["308"]={width:2560,height:1440,bitrate:1E7,fps:60},R0["303"]={width:1920,height:1080,bitrate:5E6,fps:60},R0["302"]={width:1280,height:720,bitrate:25E5,fps:60},R0["299"]={width:1920,height:1080,bitrate:75E5,fps:60},R0["298"]={width:1280,height:720,bitrate:35E5,fps:60},R0["401"]={width:3840,height:2160,bitrate:15E6,fps:60},R0["400"]={width:2560,height:1440,bitrate:75E5,fps:60},R0["399"]={width:1920,height:1080,bitrate:2E6,fps:60},R0["398"]={width:1280,height:720,bitrate:1E6,
fps:60},R0["313"]={width:3840,height:2160,bitrate:8E6,fps:30},R0["271"]={width:2560,height:1440,bitrate:4E6,fps:30},R0["248"]={width:1920,height:1080,bitrate:2E6,fps:30},R0["247"]={width:1280,height:720,bitrate:15E5,fps:30},R0["137"]={width:1920,height:1080,bitrate:4E6,fps:30},R0["136"]={width:1280,height:720,bitrate:3E6,fps:30},R0),S0={},YKa=(S0["133"]=240,S0["134"]=360,S0["135"]=480,S0["136"]=720,S0["137"]=1080,S0["242"]=240,S0["243"]=360,S0["244"]=480,S0["247"]=720,S0["248"]=1080,S0["298"]=720,
S0["299"]=1080,S0["302"]=720,S0["303"]=1080,S0["395"]=240,S0["396"]=360,S0["397"]=480,S0["398"]=720,S0["399"]=1080,S0),T0={},hLa=(T0["1"]='video/mp4; codecs="av01.0.08M.08"',T0["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',T0["9"]='video/webm; codecs="vp9"',T0["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',T0.h='video/mp4; codecs="avc1.64001e"',T0.o='audio/webm; codecs="opus"',T0.a='audio/mp4; codecs="mp4a.40.2"',T0);g.h=kLa.prototype;g.h.VG=function(){this.od.VG()};
g.h.feed=function(a,b){var c=b.totalLength;switch(a){case 10:a=xK(b,JKa);var d=a.rZ,e=!1;switch(d){case 0:this.C=!a.eP.BV;this.iv=a.eP.iv;break;case 2:break;case 23:var f=this.od;a=a.YV;f.wd("omp_r");a.videoId&&(f.qr=a.videoId);f.qr!==f.videoData.videoId&&(f.videoData.kR=f.qr,f.ya("ompp","vid."+f.qr));f.tG=!0;break;case 24:a=this.od;a.wd("omp_c");a.tG=!1;a.wu=!1;null!=(c=a.Ud||(null==(f=a.Ve)?void 0:f.get(a.qr)))&&(c.u=!0);jU(a);break;default:e=!0}this.od.Rh&&this.od.ya("ombup","id.10;pt."+d+";len."+
b.totalLength+(e?";ignored.1":""));this.u=d;break;case 11:lLa(this,b);break;case 20:f=new rK(b);var k={qV:uK(f,1),videoId:wK(f,2),itag:uK(f,3),lmt:uK(f,4),xtags:wK(f,5),Kz:uK(f,6),Lt:nBa(f,8),jC:uK(f,9),hha:uK(f,10),startTimeMs:uK(f,11),durationMs:uK(f,12),eB:uK(f,14)};var l=k.qV,m=k.itag,n=k.Lt;a=k.Kz;c=k.jC;var p=k.startTimeMs,q=k.durationMs;f=this.od.N("html5_onesie_ads");var t=k.videoId;f=((void 0===f?0:f)?(t||"")+";":"")+k.itag+";"+(k.lmt||0)+";"+(k.xtags||"");m=FTa.has(aA[""+m]);n&&this.wd(m?
"oais_r":"ovis_r");n=void 0!==this.j[f];this.od.Rh&&this.od.ya("ombup","id.20;len."+b.totalLength+";hid."+l+";fid"+f);this.B[l]=f;n?(d=this.j[f].headers,d.push(k),k.eB&&2===d.length&&(b=this.od,d=d[0].eB+d[1].eB,e={Kz:null!=a?a:-1,jC:null!=c?c:-1,startTimeMs:null!=p?p:-1,durationMs:null!=q?q:-1},null!=(a=WT(b,f))&&(c=a.Od.get(f),c.Gj=d,e&&a.j.N("html5_onesie_consume_media_slices")&&(0>=e.Kz||0>=e.jC||0>=e.durationMs||0>e.startTimeMs?TT(a,f):c.ON.push(e))),jU(b))):(this.j[f]={SM:!1,Em:m,headers:[k]},
b=this.od,b.Ve?(e=f.split(";")[0],b.Ve.has(e)||(a=new RT(b),b.Ve.set(e,a),g.H(b,a)),null==(d=b.Ve.get(e))||AKa(d,f,m)):null==(e=b.Ud)||AKa(e,f,m));break;case 21:mLa(this,b,!1);break;case 12:mLa(this,b,!0);break;case 22:this.Px(b);break;case 37:b=xK(b,EKa);if(b.mE||b.RI)this.od.ot=b;break;default:this.od.Rh&&this.od.ya("ombup","id."+a+";len."+c+";ignored.1")}};
g.h.Px=function(a){var b=oy(a,0);this.od.Rh&&this.od.ya("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.od.Px(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].eB||QKa(this.queue,a))};
g.h.bH=function(a,b){var c=this,d,e,f,k,l,m,n,p,q,t,w;return g.B(function(x){switch(x.j){case 1:c.od.bH();d=ny(a);if(!b){f=d;x.Ya(2);break}return g.A(x,qLa(c.od,d,c.iv),3);case 3:f=x.u;case 2:e=f;if(!c.od.enableCompression){x.Ya(4);break}return g.A(x,XKa(e),5);case 5:e=x.u,c.od.ya("decompression",{ds:"DecompressionStream"in window});case 4:try{k=xK(e,OKa)}catch(y){return l=y instanceof Error?{name:y.name,message:y.message}:{},l.webcrypto=""+ +!!KB(),l.enc=""+ +c.C,m=new g.eD("onesie.response.parse",
l),x.return(Promise.reject(m))}if(1!==k.onesieProxyStatus)return n={st:k.onesieProxyStatus,webcrypto:""+ +!!KB(),textencoder:""+ +!!g.C.TextEncoder},p=new g.eD("onesie.response.badproxystatus",n),x.return(Promise.reject(p));if(200!==k.httpStatus)return q={st:k.httpStatus},t=new g.eD("onesie.response.badstatus",q),x.return(Promise.reject(t));w=g.uy(k.body);return x.return(w)}})};
g.h.wd=function(a){this.od.wd(a)};
g.h.Ir=function(a){return this.od.Ir(a)};kU.prototype.feed=function(a){for(jy(this.j,a);;){var b=0;b=g.r(nLa(this.j,b));a=b.next().value;b=b.next().value;b=g.r(nLa(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).Hr.split(c);c=b.Hr;this.callbacks.Tj.feed(a,b.KF);this.j=c}};
kU.prototype.dispose=function(){this.j=new iy};g.v(lU,g.G);g.h=lU.prototype;g.h.wd=function(a){this.Aa.wd(a)};
g.h.Ir=function(a){return this.Aa.Ir(a)};
g.h.OG=function(){this.wd("orfb");this.VA=!0;if(rLa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Kj(),rt:(1E3*rHa(this.El)).toFixed(),shost:g.ej(this.au),trigger:"o1"};this.ya("pathprobe",dD(a))}};
g.h.bH=function(){this.wd("orpr");this.UM=!0};
g.h.VG=function(){if(this.Ve)for(var a=g.r(this.Ve.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Ve.get(b.value))||UT(c)}else null==(a=this.Ud)||UT(a)};
g.h.ya=function(a,b,c){this.Aa.ya(a,b,void 0===c?!1:c)};
g.h.Px=function(a){var b;null==(b=WT(this,a))||b.Px(a)};
g.h.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,q,t,w;return g.B(function(x){if(1==x.j)return a.FB.start(),a.wd("ogpd"),(b=oLa(a.videoData,a.Jo))?x.Ya(2):g.A(x,pLa(a.videoData,a.Jo),3);2!=x.j&&(b=x.u);if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new g.eD("onesie.unavailable.hotconfig",c),a.fail(d),x.return(a.Il);a.OP=by(b);var y=a.playerRequest,z=a.Y,E=a.videoData,I=tP(a.OP);I=void 0===I?!1:I;var K=z.gh,P="https://web.archive.org/web/20220406233357/https://youtubei.googleapis.com/youtubei/"+K.innertubeApiVersion+
"/player",aa=g.AE(E);K.VF&&aa||(P=P+"?key="+K.innertubeApiKey);K=[{name:"Content-Type",value:"application/json"}];aa&&K.push({name:"Authorization",value:"Bearer "+aa});K.push({name:"User-Agent",value:g.tb()});z.N("enable_web_eom_visitor_data")&&g.O("EOM_VISITOR_DATA")?K.push({name:"X-Goog-EOM-Visitor-Id",value:g.O("EOM_VISITOR_DATA")}):(E=E.visitorData||g.O("VISITOR_DATA"))&&K.push({name:"X-Goog-Visitor-Id",value:E});(E=g.VA(z.experiments,"debug_sherlog_username"))&&K.push({name:"X-Youtube-Sherlog-Username",
value:E});y=JSON.stringify(y);vy?y=vy.encode(y):(E=new Uint8Array(Math.ceil(1.2*y.length)),aa=wy(y,E),E.length<aa&&(E=new Uint8Array(aa),aa=wy(y,E)),E.length>aa&&(E=E.subarray(0,aa)),y=E);z=z.N("html5_onesie_prefer_trusted_host");f={url:P,httpHeaders:K,postBody:y,proxiedByTrustedBandaid:z&&I,skipResponseEncryption:z&&I};try{var J=a.Y,qa=a.videoData,na=a.Aa.getPlayerSize(),Ia=a.Aa.getVisibilityState(),Na=a.NL.onesieUstreamerConfig,bc=null==(k=a.videoData.CK)?void 0:k.TI,jb=a.hH,mc=sBa(f,NKa),Wb=jb.encrypt(mc),
Id=jb.j.encryptedClientKey,Jd=jb.iv,kb=jb.iv,Wc=new NB(jb.j.B);Wc.update(Wb);Wc.update(kb);var wg=dua(Wc);Wc.update(Wc.D);Wc.update(wg);var Tf=dua(Wc);Wc.reset();var Wh=J.N("html5_onesie_ads"),Vd=!!f.skipResponseEncryption,uc=bC(J.schedule,!0),lh=Vd&&J.N("html5_onesie_disable_js_cleartext_compression")||!!KB()&&1572864<uc;var Cc={encryptedOnesieInnertubeRequest:Wb,encryptedClientKey:Id,iv:Jd,hmac:Tf,serializeResponseAsJson:!0,enableAdPlacementsPreroll:Wh,enableCompressionResponseOnly:"DecompressionStream"in
window||!lh};I={};var hj=RA(0);if(hj){I.JV=hj;I.lastManualDirection=wta();var Xh=Wpa()||0;0<Xh&&(I.timeSinceLastManualFormatSelectionMs=(0,g.R)()-Xh)}I.d_=RA();if(J.schedule.S||!J.N("html5_onesie_enable_server_side_badwidth_estimation"))I.PT=bC(J.schedule,!0);var ij=g.PC();I.eU=na.width*ij;I.dU=na.height*ij;I.visibility=Ia;I.r_=Du();J.N("html5_onesie_media_capabilities")&&(I.YL=3);J.N("html5_onesie_audio_only_playback")&&bE(qa)&&(I.YL=1);if(J.N("html5_onesie_media_capabilities")){var Dc=dE(qa),Ne=
J.u;J=[];qa=[];for(var xg=g.r(cLa),Yh=xg.next();!Yh.done;Yh=xg.next())for(var jj=g.r(Yh.value),ud=jj.next();!ud.done;ud=jj.next()){var kj=ud.value,oe=dLa(kj);if(oe&&oe.video&&!0===Qx(Dc,oe,Ne)){J.push({Q_:HTa[aA[kj]],TV:oe.video.width,SV:oe.video.height,maxFramerate:oe.video.fps});break}}for(var Xc=g.r(eLa),$e=Xc.next();!$e.done;$e=Xc.next()){var mh=g.r($e.value);for(ud=mh.next();!ud.done;ud=mh.next()){var tf=ud.value,Zh=fLa(tf);if(Zh&&Zh.audio&&!0===Qx(Dc,Zh,Ne)){qa.push({OT:GTa[aA[tf]],numChannels:Zh.audio.numChannels});
break}}}I.mediaCapabilities={QI:J,lE:qa}}e={eN:Cc,cU:I,onesieUstreamerConfig:Na,TI:bc}}catch(Uf){return a.logger.info("Failed to create OnesieRequestProto."),a.fail(Uf),x.return(a.Il)}a.enableCompression=e.eN.enableCompressionResponseOnly;a.wd("osor");l=SBa(a.Y);m=sBa(e,LKa);n={method:"POST",body:m,headers:{"Content-Type":"text/plain",Referer:location.origin}};p=a.N("html5_onesie_skip_default_formats");q=a.N("html5_onesie_media_capabilities");Na=b;Cc=a.videoData;bc=tLa(a);Dc=p;Ne=q;Dc=void 0===Dc?
!1:Dc;Ne=void 0===Ne?!1:Ne;Na.set("ack","1");Na.set("cpn",Cc.clientPlaybackNonce);Na.set("opr","1");xg=Cc.V();xg.N("html5_onesie_ads")||(Na.set("oaad","0"),Na.set("oavd","0"));Na.set("por","1");KB()||Na.set("onem","1");0<Cc.startSeconds&&xg.N("html5_onesie_nonzero_playback_start")&&(Na.set("osts",""+Cc.startSeconds),Na.set("osbr","1"),Na.set("osnz","1"));Ne||(bc?(Cc=bc.audio,Na.set("pvi",bc.video.join(",")),Na.set("pai",Cc.join(",")),Fx()||Na.set("osh","1")):(Dc||(Na.set("pvi","135"),Na.set("pai",
"140")),Na.set("oad","0"),Na.set("ovd","0")));a.Rh&&a.ya("ombrs","1");t=a.Aa.V().schedule;a.El=new QR(a,{ah:t,PE:a.Rh});b.set("rn",""+a.El.requestNumber);a.au=$x(b);mHa(a.El,a.au);a.wd("ocs");Fx()?Gx()?a.xhr=new PR(a.au,l,a.El,n):a.xhr=new ZR(a.au,l,a.El,n):a.xhr=new $R(a.au,a.El,n);a.XO.start();a.Rh&&(null==(w=a.Jo)?0:w.D)&&a.ya("ombhr",a.Jo.D);return x.return(a.Il)})};
g.h.Zt=function(){};
g.h.Xq=function(){!this.VA&&this.xhr.Kj()&&this.OG();this.Fo()};
g.h.ep=function(){this.Fo();if(!this.isDisposed()){var a=uLa(this),b=this.xhr;a.rc=b.status;if(b.Fe()){var c="onesie.net";a.msg=b.Fe()}else 400<=b.status?c="onesie.net.badstatus":b.iy()?this.UM||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new g.eD(c,a)):(this.wd("orf"),oHa(this.El,(0,g.R)(),b.Kj(),0),this.Rh&&this.ya("rqs",a));this.Rh&&this.ya("ombre","ok."+ +!c);this.wu=!1;jU(this);iU(this.Tj);var d;if(c=null==(d=this.Jo)?void 0:
AEa(d))for(d=0;d<c.length;d++)this.ya("pathprobe",c[d])}};
g.h.N=function(a){return this.Y.N(a)};
g.h.VV=function(){if(rLa(this)&&this.Jo&&(!this.VA||this.N("html5_onesie_probe_ec_hosts"))){var a=this.Jo;if(a.Y.experiments.kb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:by(b.location);c&&sP(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:by(d.location))&&sP(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:by(e.location))&&sP(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:by(c.location))&&sP(a,d,"o3",this)}}};
g.h.PM=function(){this.logger.info("Onesie request timed out");this.wu=!1;if(!jU(this)){var a=uLa(this);a.timeout="1";this.fail(new g.eD("onesie.request",a))}};
g.h.fail=function(a){var b=this;a=gD(a);this.UA?this.Aa.ud(a):(this.Il.reject(a),this.UA=!0);iU(this.Tj);this.FB.stop();this.wd("ore");var c,d;null==(c=this.Jo)||null==(d=AEa(c))||d.forEach(function(e){b.ya("pathprobe",e)});
this.dispose()};
g.h.qa=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();iU(this.Tj);this.AQ.dispose();g.G.prototype.qa.call(this)};
g.h.Fo=function(){try{var a=this.xhr;102400<a.Kj()&&!this.iN&&(this.wd("or100k"),this.iN=!0);for(var b={};a.jg();){var c=a.di();b.NC=c.totalLength;this.Rh&&this.ya("ombrss","len."+b.NC);this.AQ.feed(c);b={NC:b.NC}}if(this.Ve)for(var d=g.r(this.Ve.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.Ve.get(e.value))||UT(a);else{var f;null==(f=this.Ud)||UT(f)}}catch(k){this.fail(k)}};var zLa=!1;g.v(g.qU,g.iv);g.h=g.qU.prototype;g.h.qa=function(){this.BP();this.TB.stop();window.clearInterval(this.MB);VEa(this.Ne);this.visibility.unsubscribe("visibilitystatechange",this.Ne);OJa(this.Zb);g.qf(this.Zb);wU(this);g.tp.Ii(this.lr);this.Pg();this.Oe=null;g.qf(this.videoData);g.qf(this.Ej);g.rf(this.mW);this.pm=null;g.iv.prototype.qa.call(this)};
g.h.jy=function(a){this.Zb.jy(a)};
g.h.pu=function(a,b,c,d){this.Zb.pu(a,b,c);this.N("html5_log_media_perf_info")&&this.ya("adloudness",{ld:d.toFixed(3),cpn:a})};
g.h.iF=function(){var a;return null==(a=this.Ua)?void 0:a.iF()};
g.h.jF=function(){var a;return null==(a=this.Ua)?void 0:a.jF()};
g.h.getVideoData=function(){return this.videoData};
g.h.V=function(){return this.Y};
g.h.Co=function(){return this.visibility};
g.h.zd=function(){return this.mediaElement};
g.h.wE=function(){if(this.videoData.isLoaded()){var a=this.Ej;0<g.cB(a.j.experiments,"html5_player_min_build_cl")&&439688426<g.cB(a.j.experiments,"html5_player_min_build_cl")&&SIa(a,"oldplayer");PLa(this)}else this.videoData.Vc||this.videoData.zk?this.Nt&&g.HC(this.Y)&&this.videoData.isLivePlayback||(this.videoData.Vc?ewa(this.videoData):(a=this.Zb,a.qoe&&(a=a.qoe,gT(a,"protected"),a.j.videoData.X?a.RP():a.j.videoData.subscribe("dataloaded",a.RP,a)),awa(this.videoData))):!this.videoData.Ia&&this.RT&&
OLa(this)};
g.h.At=ca(5);g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
g.h.isBackground=function(){return this.visibility.isBackground()};
g.h.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.ea("internalAbandon"),this.PH(!0),OJa(this.Zb),g.qf(this.Zb),g.tp.Ii(this.lr));var a;null==(a=this.Y.nh)||a.flush()};
g.h.Mr=function(){NJa(this.Zb)};
g.h.Vf=function(a,b,c,d,e,f){var k,l;g.Pf(eTa,c)?k=c:c?l=c:k="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+LAa());(c=l)||(c=g.RL[k]||"");a={errorCode:a,errorDetail:e,errorMessage:c,SE:k,Fj:f||"",wH:d,TE:b};uU(this,"dataloaderror");this.Vb(nH(this.playerState,128,a));g.tp.Ii(this.lr);wU(this);this.Wm()};
g.h.Je=function(a){this.Zi=this.Zi.filter(function(b){return a!==b});
this.Tm.started&&vU(this)};
g.h.ll=function(){var a;(a=!!this.Zi.length)||(a=this.Bg.j.j[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.h.Hm=function(){return this.Uc.Hm()};
g.h.Jc=function(){return this.playerState.Jc()};
g.h.getPlayerState=function(){return this.playerState};
g.h.getPlayerType=function(){return this.playerType};
g.h.getPreferredQuality=function(){if(this.Oe){var a=this.Oe;a=a.videoData.Yr.compose(a.videoData.xQ);a=Nx(a)}else a="auto";return a};
g.h.Uw=ca(11);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.h.setMediaElement=function(a){if(this.mediaElement&&a.Ke()===this.mediaElement.Ke()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.hv(this.Tu),this.mediaElement=a,ZLa(this),this.Uc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Pg();if(!this.playerState.isError()){var b=pH(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=oH(b,1));a.isView()&&(b=pH(b,64));this.Vb(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);
ZLa(this);this.Uc.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.Ej.sx&&(a=this.mediaElement,a.B||a.zf()||!Rsa()||(a.B=a.tq()))}};
g.h.Pg=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.Uc.B=c);this.Uc.setMediaElement(null);GU(this);this.Ua&&(g.xp(this.Ua.ma),HU(this,b));this.Pq.stop();if(this.mediaElement&&(!this.Tm.started||this.playerState.isError()||g.V(this.playerState,2)||this.Vb(oH(this.playerState,512)),this.mediaElement)){g.hv(this.Tu);if(a||!this.mediaElement.isView())this.mediaElement.stopVideo(),LU(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.V(a.playerState,128))return k.return();if(a.Ej.ZA())return a.ea("signatureexpired"),k.return();a.mediaElement&&(l=a.Zb,YS(l.C),l.qoe&&iT(l.qoe));BU(a);g.V(a.playerState,64)&&a.Vb(oH(a.playerState,8));return a.Tm.isFinished()&&a.mediaElement?a.Oe||!a.Ux?k.Ya(2):g.A(k,a.Ux,2):
k.return()}if(!a.videoData.C)return a.videoData.isLivePlayback&&!g.zB(a.Y.u,!0)?(b="html5.unsupportedlive",c=2):(b=cE(a.videoData)?"fmt.unplayable":"fmt.noneavailable",c=1),g.Sv(Error("selectableFormats")),a.Vf(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),k.return();if(a.Bf()&&a.videoData.C.j)return k.return(tU(a));if(a.videoData.isLivePlayback){d=a.getCurrentTime()<a.getMinSeekableTime()-15;e=g.oE(a.videoData)&&g.V(a.playerState,4);(f=!a.N("html5_dompaused_unpause_killswitch")&&
g.V(a.playerState,1024))||!d&&!e||(e?a.seekTo(Infinity,{pe:"videoplayer_unpauseLiveOnly"}):a.seekTo(a.getMinSeekableTime(),{pe:"videoplayer_outOfWindow"}));!a.isAtLiveHead(void 0,!0)&&a.Hm()&&a.seekTo(Infinity,{pe:"videoplayer_peggedToLive"});if(l=g.V(a.playerState,256)&&a.videoData.fb)l=a.Uc,l=l.S&&!isFinite(l.j);if(l)return a.Vb(qH(a.playerState,8,4)),k.return()}g.V(a.playerState,4)&&g.V(a.playerState,16)&&a.Vb(qH(a.playerState,9,4));if(oU(a))return dMa(a),k.return();KU(a);g.ua(k)})};
g.h.ao=function(){if(!this.Oe)return[];var a=XIa(this.Mg,this.Oe,this.xt());return this.Oe.j.ao(a)};
g.h.xt=function(){var a=this.Zd?this.Zd.xt():aE(this.videoData)&&this.videoData.j&&Vx(this.videoData.j)?this.videoData.dg?RD:FIa:RD;this.IH&&(a=a.compose(TSa));return a};
g.h.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?Nx(this.videoData.Yr):Mx[RA()]};
g.h.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.h.setUserAudio51Preference=function(a){this.videoData.Qd!==a&&(this.videoData.Qd=a,g.fw("yt-player-audio51",a,2592E3),TS(this))};
g.h.getUserAudio51Preference=function(){var a;return null!=(a=g.gw("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=VLa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.h.tq=function(){return this.mediaSource};
g.h.Xt=function(a){this.du.set(a.initData,a);this.Zd&&(this.Zd.Xt(a),this.N("html5_eme_loader_sync")||this.du.remove(a.initData))};
g.h.xB=function(a){EU(this,a.reason,a.video.info,a.audio.info);this.Uc.xB(a)};
g.h.yB=function(a){this.ea("localmediachange",a)};
g.h.Ou=function(){var a;null==(a=this.Ua)||a.Ou(this.Y)};
g.h.ZA=function(){return this.Ej.ZA()};
g.h.handleError=function(a){this.Ej.handleError(a)};
g.h.pauseVideo=function(a){a=void 0===a?!1:a;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!a)if(g.V(this.playerState,8))this.Vb(qH(this.playerState,4,8));else return;this.N("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.Hy()||(g.V(this.playerState,128)||(a?this.Vb(oH(this.playerState,256)):this.Vb(qH(this.playerState,4,8))),this.mediaElement&&this.mediaElement.pause(),g.oE(this.videoData)&&this.Ua&&HU(this,!1))};
g.h.stopVideo=function(){this.pauseVideo();this.Ua&&(HU(this,!1),jS(this.Ua))};
g.h.Wm=function(a){a=void 0===a?!1:a;var b;null==(b=this.mediaElement)||b.stopVideo();LU(this);wU(this);g.V(this.playerState,128)||(a?this.Vb(pH(pH(oH(this.playerState,4),8),16)):this.Vb(nH(this.playerState)));this.videoData.videoId&&this.Y.Z.remove(this.videoData.videoId)};
g.h.seekTo=function(a,b){b=void 0===b?{}:b;g.V(this.playerState,2)&&oU(this);if(this.kd){var c=this.kd;isFinite(a)&&a<c.Aa.Jj()?c.isLiveNow=!1:c.isLiveNow=!0}this.Uc.seekTo(a,b);this.N("html5_cuerange_synconseek_killswitch")||this.Bg.Fk()};
g.h.getCurrentTime=function(){return this.Uc.getCurrentTime()};
g.h.Nh=function(){return this.Uc.Nh()};
g.h.Jj=function(){return this.Uc.Jj()};
g.h.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.rd())};
g.h.zt=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.zt());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.rd()):this.N("html5_disable_limit_ingestion_tvos")&&!as()||!this.mediaElement||!(a=this.mediaElement.vz())||(a=a.getTime(),isNaN(a))?NaN:a/1E3+this.getCurrentTime()};
g.h.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.rd():this.yd()?this.yd():0};
g.h.FA=function(){var a=new SJa;if(this.Ua){var b=this.Y.schedule;a.j=b.X;a.C=b.ma;a.bandwidthEstimate=bC(b);a.u={d:$B(b).toFixed(2),st:(1E9*(b.j.Fg()||0)).toFixed(2),bw:b.B.Fg().toFixed(0),abw:b.J.Fg().toFixed(0),v50:YB(b.u,.5).toFixed(2),v92:YB(b.u,.92).toFixed(2),v96:YB(b.u,.96).toFixed(2),v98:YB(b.u,.98).toFixed(2)};b=this.Ua;if(b.mediaSource&&!b.mediaSource.cf()&&(a.bq=KR(b.videoTrack,b.currentTime),a.B=KR(b.audioTrack,b.currentTime),b.policy.ib)){var c=JR(b.videoTrack),d=JR(b.audioTrack),e=
rA(b.mediaSource.u.xf(),"_",5),f=rA(b.mediaSource.j.xf(),"_",5);Object.assign(a.u,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=LQ(b.S)}else this.mediaElement&&(a.bq=kH(this.mediaElement));a.D=this.isAtLiveHead()&&this.Jc()?nU(this):NaN;return a};
g.h.qq=function(){return this.mediaElement?g.oE(this.videoData)?1:pE(this.videoData)?this.isAtLiveHead()||this.Hm()?1:this.Uc.qq():this.mediaElement.qq():0};
g.h.Nb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Zb.Nb());this.mediaElement&&(Object.assign(b,this.mediaElement.Nb()),Object.assign(b,this.ax()));this.Ua&&Object.assign(b,this.Ua.Nb());this.Zd&&(b.drm=JSON.stringify(this.Zd.Nb()));b.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.ll()&&(b.prerolls=this.Zi.join(","));this.videoData.wk&&(b.ismb=this.videoData.wk);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.yg.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&OA(this.videoData.j)&&(b.segduration=OA(this.videoData.j)),a=this.Uc,b.lat=a.J?AFa(a.J.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Pd.toFixed(3);if(a=g.DU(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=RA();b.release_version="youtube.player.web_20220405_01_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.h.addCueRange=function(a){this.cw([a])};
g.h.removeCueRange=function(a){this.Bg.Uf([a])};
g.h.Gw=function(a,b){return this.Bg.Gw(a,b)};
g.h.cw=function(a,b){this.Bg.Rd(a,b)};
g.h.aC=function(a){this.Bg.Uf(a)};
g.h.wm=function(){return this.Bg.wm()||[]};
g.h.Bf=function(){return this.visibility.Bf()};
g.h.qp=function(){this.mediaElement&&this.mediaElement.qp()};
g.h.hZ=function(){uU(this)};
g.h.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.h.gH=function(a){var b=a.target.zf();if(this.mediaElement&&this.mediaElement.zf()&&this.mediaElement.zf()===b){gMa(this,a.type);switch(a.type){case "error":var c=lH(this.mediaElement)||"";if("capability.changed"===c){tU(this);return}if(0<this.mediaElement.Bj()&&US(this.Ej,c,{msg:this.mediaElement.Fe()}))return;if(this.isBackground()&&4===this.mediaElement.Bj()){this.Wm();xU(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.mediaSource||0<
c)&&1!==c&&this.gk(c);break;case "ratechange":this.Ua&&this.Ua.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.Bg;c.started=!0;c.Fk();this.Zb.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":iMa(this);this.ea("onLoadedMetadata");$La(this);break;case "loadstart":$La(this);break;case "progress":case "suspend":this.Qb();this.ea("onLoadProgress",this,this.qq());break;case "playing":dL(this.Gb,"plev");this.MH&&(this.MH=!1,this.isAtLiveHead()||this.seekTo(Infinity,{pe:"videoplayer_onPlaying"}));
break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.Jh();if(c&&(!this.sB||d))return;this.sB=this.sB||!!this.mediaElement.getCurrentTime();JU(this);this.Qb();if(!this.mediaElement||this.mediaElement.zf()!==b)return;this.ea("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.uq().length&&0===this.mediaElement.fg().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&
this.Ua)return;break;case "resize":iMa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.mL&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.Qs){xU(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.zf()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.jw;var e=this.mediaElement;d=b.state;e=e?e:a.target;var f=
e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var k=e.Sf()||1<f&&1.1>Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Sf();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!yT(c,f);if(l||k&&f)0<e.AA()&&e.zf()&&(d=14);else switch(a.type){case "error":lH(e)&&(d|=128);break;case "pause":g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1093;yT(c,e.getCurrentTime())&&(d&=-2);g.V(b,
1)&&zT(c,e.getCurrentTime(),(0,g.R)(),kH(e))&&(d|=1);break;case "seeking":d|=16;g.V(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.V(b,2)||(d|=1);zT(c,e.getCurrentTime(),(0,g.R)(),kH(e));break;case "timeupdate":k=g.V(b,16),l=g.V(b,4),(g.V(b,8)||k)&&!l&&yT(c,e.getCurrentTime())&&(d=8),zT(c,e.getCurrentTime(),(0,g.R)(),kH(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,e=lH(d),k=1,e?("capability.changed"===e&&(k=2),l="GENERIC_WITHOUT_LINK",f=d.Nb(),f.mediaElem="1",/AUDIO_RENDERER/.test(d.Fe())&&
(l="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.RL[l]||"",SE:l,wH:dD(f),TE:k}):d=null);b=nH(b,c,d)}!g.V(this.playerState,1)&&g.V(b,1)&&MU(this,"evt"+a.type);this.Vb(b)}}};
g.h.EW=function(a){a="available"===a.j.availability;a!==this.kx&&(this.kx=a,this.ea("airplayavailabilitychange"))};
g.h.FW=function(){var a=(0,g.R)(),b=this.mediaElement.Bf();this.ya("airplay",{ia:b});if(!this.N("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.bB)||!(2E3>a-this.bB))this.bB=a,b!==this.Bf()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Ne()),this.ya("airplay",{rbld:b}),TS(this)),this.ea("airplayactivechange")};
g.h.bx=function(a){if(this.Ua){var b=this.Ua,c=b.B,d=b.currentTime,e=Date.now()-c.X;c.X=NaN;c.ya("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&aGa(c,d,c.D,c.B);WQ(c,4,"adf");g.xp(b.ma)}};
g.h.Qb=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){oKa(this.Uc,this.Jc());var c=this.getCurrentTime();this.Ua&&(g.V(this.playerState,4)&&g.oE(this.videoData)||YHa(this.Ua,c));5<c&&(this.Uc.B=c);var d=g.Wr();d?g.tp.Ii(this.lr):g.Dr(this.lr);var e=this.mediaElement.Sl();if((g.uH(this.playerState)||!e||FE(this.videoData))&&!g.V(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.V(b.playerState,128)){cD(b.Y)&&g.cB(b.Y.experiments,"html5_log_rebuffer_events")&&
gMa(b,"pfx");var k=b.getCurrentTime(),l=kH(b.mediaElement),m=g.V(b.playerState,8),n=yT(b.jw,k),p=zT(b.jw,k,(0,g.R)(),l);m&&n?b.Vb(pH(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.ya("setended",{ct:k,bh:l,dur:m,live:n}),n&&b.N("html5_set_ended_in_pfx_live_cfl")||(b.mediaElement.rq()?b.seekTo(0,{pe:"videoplayer_loop"}):JP(b))):(g.uH(b.playerState)||MU(b,"progress_fix"),b.Vb(oH(b.playerState,1)))):(m&&!n&&!p&&
0<k&&(m=(Date.now()-b.sx)/1E3,n=b.getDuration(),k>n-1&&b.ya("misspg",{t:k.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.V(b.playerState,4)&&g.uH(b.playerState)&&5<kH(b.mediaElement)&&b.Vb(pH(b.playerState,1)));b.Qb()}};
0===this.mediaElement.uq().length?this.lr=d?g.tp.cg(f,100):g.Br(f,100):this.lr=d?g.tp.cg(f,500):g.Br(f,500)}this.videoData.Lv=c;!a&&this.Jc()&&cMa(this);dJa(this.Mg,this.Oe,this.zd(),this.isBackground())&&tS(this);eJa(this.Mg,this.videoData.u)&&(this.Zb.ud("qoe.restart","droprate."+this.Mg.K),Qta(this.Y.u),TS(this));this.ea("progresssync",this,a);!this.N("html5_progress_event_linear_paused_killswitch")&&e&&FE(this.videoData)&&this.ea("onVideoProgress",this,this.getCurrentTime())}};
g.h.PU=function(){this.Vf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.h.Rw=function(){return this.Zb.Rw()};
g.h.fF=function(){return this.Ua?this.Ua.fF():bC(this.Y.schedule,!0)};
g.h.VT=function(){g.uH(this.playerState)&&bJa(this.Mg,this.Oe)&&tS(this)};
g.h.Vb=function(a){if(!g.rH(this.playerState,a)){var b=new g.vF(a,this.playerState);this.playerState=a;hMa(this);var c=!this.OB.length;this.OB.push(b);var d=this.mediaElement&&this.mediaElement.Ev();if(g.xF(b,1)&&!g.V(b.Vo,16)&&!d&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.Ua){d=this.Ua;d.va=!0;if(d.policy.me&&d.C){var e={rebuf:d.va,ct:d.currentTime.toFixed(3)};if(d.Z){e.sq=d.Z.info.j[0].Ma;e.itag=d.Z.info.j[0].j.info.id;e.mt=d.Z.info.j[0].B.toFixed(3);e.st=d.Z.state;var f=d.Z.lastError;
f&&(e.err=f)}d.Qa&&(e.ccr=d.Qa);d.ya("sdai",e)}this.mediaElement&&5<=kH(this.mediaElement)&&((d=g.cB(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.fO.start(d):bJa(this.Mg,this.Oe)&&tS(this))}(d=g.cB(this.Y.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.V(a,1)&&(g.V(a,8)||g.V(a,16))?this.ZD.start(d):this.ZD.stop();(0>wF(b,8)||g.xF(b,1024))&&this.Pq.stop();!g.xF(b,8)||this.videoData.fb||g.V(b.state,1024)||this.Pq.start();g.V(b.state,8)&&0>wF(b,16)&&!g.V(b.state,32)&&
!g.V(b.state,2)&&this.playVideo();g.V(b.state,2)&&pE(this.videoData)&&(this.gk(this.getCurrentTime()),this.Qb(!0));g.xF(b,2)&&this.PH(!0);g.xF(b,128)&&this.Wm();this.videoData.j&&this.videoData.isLivePlayback&&!this.FQ&&(0>wF(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.xF(b,8)&&this.videoData.j.resume());this.Uc.Tc(b);this.Zb.Tc(b);if(c&&!this.isDisposed())try{for(var k=g.r(this.OB),l=k.next();!l.done;l=k.next()){var m=l.value;this.Bg.Tc(m);this.ea("statechange",m)}}finally{this.OB.length=0}}};
g.h.Mx=function(){this.videoData.isLivePlayback||this.ea("connectionissue")};
g.h.cH=function(){this.Gb.tick("qoes")};
g.h.wB=function(a,b,c,d){a:{var e=this.Ej;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=fD(b);"drm.keyerror"===a&&this.Zd&&1<this.Zd.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())UIa(e,a);else{if(e.Aa.Vf(a,b,d,c),MIa(e,{detail:c}))break a}else e.ud(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ya("retrydrm",{sessionLimitExhausted:1}),e.D++,fMa(e.Aa))}};
g.h.uX=function(){var a=this,b=g.cB(this.Y.experiments,"html5_license_constraint_delay"),c=js();b&&c?(b=new g.L(function(){zU(a);uU(a)},b),g.H(this,b),b.start()):(zU(this),uU(this))};
g.h.Ox=function(a){this.ea("heartbeatparams",a)};
g.h.ap=function(a){this.ya("keystatuses",uIa(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=vIa(b,c);d=ES(a)?GS(a,d):a.D.includes(d)}else{a:{b=vIa(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?UIa(this.Ej):d||GS(a,"AUDIO")&&GS(a,"SD")||(this.IH?this.ea("drmoutputrestricted"):(this.IH=
!0,this.ya("retrydrm",{o:1}),AU(this),fMa(this)))};
g.h.xX=function(){if(!this.videoData.fb&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Jh()&&5<=kH(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Vb(oH(this.playerState,1)),MU(this,"load_soft_timeout"),this.ea("playbackstalledatstart"),a="1");hMa(this);if(this.N("html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},this.ll()&&(a.prerolls=this.Zi.join(",")),this.Ua&&Object.assign(a,this.Ua.Nb()),this.mediaElement&&Object.assign(a,this.mediaElement.Nb());
else{var b=this.videoData.C;a={restartmsg:a,mfmt:aE(this.videoData)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Sd&&!this.Zd?"1":"0",mfmtinfo:this.videoData.u?"0":"1",prerolls:this.ll()?this.Zi.join(","):"0"};if(this.Zd){b=a;var c=this.Zd;if(0>=c.u.size){var d="ns;";c.X||(d+="nr;");c=d+="ql."+c.B.length}else c=uIa(c.u.values().next().value),c=dD(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Ua)?void 0:e.Nb())||{});var f;Object.assign(a,(null==(f=this.mediaElement)?void 0:
f.Nb())||{})}this.Zb.ud("qoe.start15s",dD(a));this.ea("loadsofttimeout")}};
g.h.gk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,uU(this))};
g.h.PH=function(a){var b=this;a=void 0===a?!1:a;if(!this.Jz){Ax("att_s","player_att")||Bx("att_s",void 0,"player_att");var c=new g.ZAa(this.videoData);if("c1a"in c.j&&!g.fK.isInitialized()&&(Bx("att_wb",void 0,"player_att"),2===this.jE&&.01>Math.random()&&g.Sv(Error("Botguard not available after 2 attempts")),!a&&5>this.jE)){g.xp(this.kE);this.jE++;return}if("c1b"in c.j){var d=QJa(this.Zb);d&&bBa(c).then(function(e){e&&!b.Jz&&d?(Bx("att_f",void 0,"player_att"),d(e),b.Jz=!0):Bx("att_e",void 0,"player_att")},
function(){Bx("att_e",void 0,"player_att")})}else(a=g.$Aa(c))?(Bx("att_f",void 0,"player_att"),PJa(this.Zb,a),this.Jz=!0):Bx("att_e",void 0,"player_att")}};
g.h.yd=function(a){return this.Uc.yd(void 0===a?!1:a)};
g.h.getMinSeekableTime=function(){return this.Uc.getMinSeekableTime()};
g.h.rd=function(){return this.Uc?this.Uc.rd():0};
g.h.getStreamTimeOffset=function(){return this.Uc?this.Uc.getStreamTimeOffset():0};
g.h.Am=function(){var a=0;this.Y.N("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.rd():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.HC(this.Y);this.playbackRate!==a&&b&&(this.Mg.setPlaybackRate(a),AU(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=sF(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.Qu=function(){this.Zb.Qu()};
g.h.sendVideoStatsEngageEvent=function(a,b){var c=this.Zb;c.j?(c=qT(c.j,"engage"),c.X=a,c.send(b)):b&&b()};
g.h.jh=function(a){return this.Zb.jh(a)};
g.h.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.RM||(void 0===b?0:b))?this.Uc.isAtLiveHead(a):!1};
g.h.qo=function(){var a=this.yd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Uc,c=!(c.u&&c.u.B));return c||this.Hm()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.h.Zj=ca(15);g.h.Zo=ca(36);g.h.Yo=ca(39);g.h.ax=function(){return this.mediaElement?this.mediaElement.wz():{}};
g.h.setLoop=function(a){this.loop=a;this.mediaElement&&this.mediaElement.setLoop(a)};
g.h.rq=function(){return this.mediaElement?this.mediaElement.rq():this.loop};
g.h.fH=function(a){this.ya("timestamp",{t:a.toString()});this.Uc.fH(a)};
g.h.wd=function(a){this.Gb.tick(a)};
g.h.Ir=function(a){return this.Gb.Ir(a)};
g.h.ya=function(a,b,c){this.Zb.ya(a,b,void 0===c?!1:c)};
g.h.BH=function(a,b,c){this.Zb.ya(a,b,void 0===c?!1:c)};
g.h.ud=function(a){this.Zb.ud(a.errorCode,dD(a.details))};
g.h.ly=function(a,b,c){this.Zb.ly(a,b,c)};
g.h.getPlayerSize=function(){return this.Gy.getPlayerSize()};
g.h.Hg=function(){return this.Gy.Hg()};
g.h.Li=function(){return this.Gb};
g.h.N=function(a){return this.Y.N(a)};
g.h.iE=function(){if(eE(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=Fma(b)||0;c|=268435456;0==c?delete ps[b]:(c=c.toString(16),ps[b]=c.toString());a.save()}}};
g.h.BP=function(){if(g.sH(this.playerState)){var a=pU.iM();0!==Object.keys(a).length&&this.Zb.ya("profile",a)}this.TB.start()};
g.h.Hy=function(){var a=this.getCurrentTime(),b;return(null==(b=this.Ua)?0:b.Hy(a,100))?(xKa(this.Uc,a+100+5),!0):!1};
g.h.Ig=function(){return this.videoData.videoId};
g.h.Ct=function(a){return this.Ua?this.Ua.Ct(a):""};g.v(g.PU,g.G);g.PU.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Ra(a),e=U0[d];if(e){try{e.dispose()}catch(k){g.S(k)}U0[d]=null}var f=new g.PU(a,b,c);g.sf(f,function(){U0[d]=null;f.BQ&&f.BQ()});
return U0[d]=f}catch(k){throw g.S(k),k.stack;}};
g.h=g.PU.prototype;g.h.Co=function(){return this.visibility};
g.h.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.h.dl=function(){this.WF||(this.WF=g.RJ(KH(),IAa()));return this.WF};
g.h.isVideoInfoVisible=function(){return!(!this.tj||!this.tj.tb)};
g.h.Pg=function(){if(this.mediaElement){this.Xu&&(this.events.vc(this.Xu),this.Xu=null);g.hv(this.Ro);this.Bb&&this.Bb.Pg(!0);this.template.Pg();if(!this.N("html5_unset_src_on_remove_killswitch"))try{this.mediaElement.bC()}catch(a){}this.mediaElement=null}};
g.h.Kc=function(){return this.Bb};
g.h.Vm=function(){this.Bb!==this.vb&&KP(this,this.vb)};
g.h.Nn=function(a,b,c){var d=this,e=this.Gb;2===a&&(e=new cL(this.Y));return new g.qU(this.Y,a,e,this.template,function(f){return d.Um.ea.apply(d.Um,[f].concat(g.u(g.Ca.apply(1,arguments))))},function(){return d.Ta.getVisibilityState()},this.visibility,this,b,c)};
g.h.setIsExternalPlaylist=function(a){this.Eg=fC(!1,a)};
g.h.KW=function(){QU(this)||this.Gl(5)};
g.h.UX=function(a){QU(this)||(OMa(this),g.sH(a.getPlayerState())&&this.playVideo())};
g.h.canPlayType=function(a){return kA(a)};
g.h.V=function(){return this.Y};
g.h.getVideoData=function(){return this.Bb.getVideoData()};
g.h.Zw=ca(7);g.h.getVideoLoadedFraction=function(a){a=g.aL(this,a);return a?g.CE(a.getVideoData())?1:(a=a.zd())?a.qq():0:0};
g.h.bb=function(){return this.template};
g.h.sb=function(){return this.Bc};
g.h.Li=function(){return this.Gb};
g.h.Eu=function(a){var b=g.aL(this,1);b&&JP(b,a)};
g.h.Oh=function(){var a=this.Bc.wF();a.fs=this.Ta.isFullscreen();a.volume=Math.round(this.Ta.getVolume());a.muted=this.Ta.isMuted()?1:0;a.mos=a.muted;if(this.Y.N("html5_enable_embedded_player_visibility_signals")&&g.qC(this.Y)){if(this.SI){var b=this.SI;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.PC();1<c&&b.push(c);a.size=b.join(":")}}this.Bb===this.vb&&this.Ib&&(a.clipid=
this.Ib.postId);return a};
g.h.DZ=function(){lBa(this.getVideoData(),this.Y,this.dl())};
g.h.addBgVersionChangeCallback=function(a){iK.push(a)};
g.h.aj=function(a){1===a&&(this.Gb.tick("vr"),this.yp||(this.yp=Ft(HSa,this.sO,this)),aMa(this.Bb),IBa(this.Gb,this.Bb.getVideoData(),NMa(this)));var b=this.Y;(ZC(b)&&b.B||g.yC(b))&&(this.oe()||this.Ta.La("onAdStateChange",a))};
g.h.setLoopVideo=function(a){this.Bb===this.vb&&this.Bb.rq()!==a&&(this.Bb.setLoop(a),this.Ta.La("onLoopChange",a))};
g.h.getLoopVideo=function(){return this.Bb.rq()};
g.h.setLoopRange=function(a){var b=!1;!!this.Ib!==!!a?b=!0:this.Ib&&a&&(b=this.Ib.startTimeMs!==a.startTimeMs||this.Ib.endTimeMs!==a.endTimeMs||this.Ib.postId!==a.postId);b&&(this.vb.Bg.jf("applooprange"),a?(b=new g.Iw(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.vb.addCueRange(b)):WS(this).clipConfig=void 0,this.Ib=a,this.Ta.La("onLoopRangeChange",a||void 0),this.Bb===this.vb&&(this.iC(),this.Bb.Mr()))};
g.h.getLoopRange=function(){return this.Ib};
g.h.iC=function(){this.Ib&&this.Bb===this.vb&&(CMa(this,this.vb.getCurrentTime())||DMa(this))};
g.h.setPlaybackRate=function(a,b){isNaN(a)||(a=sMa(this,a),this.vb.getPlaybackRate()!==a&&(this.vb.setPlaybackRate(a),b&&!this.Y.j&&g.fw("yt-player-playback-rate",a),this.Ta.La("onPlaybackRateChange",a)))};
g.h.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return VK(this.Bc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.aL(this):g.aL(this,a);if(!a)return 0;if(b){if(c&&this.Bd&&(b=this.Bd.Ia/1E3,0!==b))return b;a=WU(this,a);return gV(this,a.getCurrentTime(),a)}c&&this.Bd?(b=this.Bd,a=a.getCurrentTime(),OP(b)?(b=YP(b,1E3*a))&&b.En&&(a-=b.En):(b=bFa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.h.zt=function(){var a=g.aL(this);if(!a)return 0;a=WU(this,a);return gV(this,a.zt(),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.aL(this):g.aL(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=VU(this,a),gV(this,b.getDuration(),b);d&&this.Bd?(b=this.Bd,d=a.getCurrentTime(),
b=OP(b)?b.S?b.S.durationMs/1E3:0:(b=YP(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.h.getMinSeekableTime=function(a){a=g.aL(this,a);if(!a)return 0;a=VU(this,a);return gV(this,a.getMinSeekableTime(),a)};
g.h.getIngestionTime=function(a){var b=g.aL(this,a);return b?this.oe(b)?(b=VU(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.h.KE=function(){this.template.KE();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.qY)};
g.h.getDebugText=function(a){var b=this.vb.Nb(a);if(this.Bb&&this.Bb!==this.vb){for(var c=this.Bb.Nb(a),d=g.r(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=Sh("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.$h("video-ads");f?(TMa(f,e),e.html=f.outerHTML):e.missing=1;f={};var k=g.$h("videoAdUiSkipContainer"),l=g.$h("ytp-ad-skip-button-container"),m=k||l;m?(TMa(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===+Fh(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.zo().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.hT)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ta.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.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(QU(this))return 3;var b;return a&&(null==(b=this.Bd)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.aL(this).getPlayerType()};
g.h.yb=function(a){return 3===this.getPresentingPlayerType()?VK(this.Bc).Md:g.aL(this,a).getPlayerState()};
g.h.getAppState=function(){return this.appState};
g.h.gH=function(a){switch(a.type){case "loadedmetadata":dL(this.Gb,"fvb");this.hC.start();a=g.r(this.Au);for(var b=a.next();!b.done;b=a.next())b=b.value,LMa(this,b.id,b.O_,b.N_,!1);this.Au=[];break;case "loadstart":dL(this.Gb,"gv");break;case "progress":case "timeupdate":2<=vA(a.target.fg())&&dL(this.Gb,"l2s");break;case "playing":g.XC&&this.hC.start();if(g.HC(this.Y))a=!1;else{b=g.XK(this.sb());a="none"===this.mediaElement.getStyle("display")||0===Fh(this.mediaElement.getSize());var c=DQ(this.template),
d=this.Bb.getVideoData(),e=g.zC(this.Y)||g.BC(this.Y);d=bE(d);b=!c||b||e||d||this.Y.Sb;a=a&&!b}a&&(this.Bb.ya("hidden",{},!0),this.getVideoData().ub||(this.N("html5_new_elem_on_hidden")?(this.getVideoData().ub=1,this.DO(null),this.Bb.playVideo()):TU(this,"hidden",!0)))}};
g.h.onLoadProgress=function(a,b){this.Ta.La("onLoadProgress",b)};
g.h.MY=function(){this.Ta.ea("playbackstalledatstart")};
g.h.onVideoProgress=function(a,b){a=WU(this,a);b=gV(this,a.getCurrentTime(),a);this.Ta.La("onVideoProgress",b)};
g.h.onAutoplayBlocked=function(){this.Ta.La("onAutoplayBlocked")};
g.h.eY=function(){this.Ta.ea("progresssync")};
g.h.MW=function(a){if(1===this.getPresentingPlayerType()){g.xF(a,1)&&!g.V(a.state,64)&&WS(this).isLivePlayback&&this.vb.isAtLiveHead()&&1<this.Ta.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.xF(a,2)){if(this.Ib&&this.Ib.endTimeMs>=1E3*(this.getDuration()-1)){DMa(this);return}wMa(this)}if(g.V(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ta.La("onError",tTa[b.errorCode]||5);this.Ta.La("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.SE});6048E5<(0,g.R)()-this.Y.Dd&&this.Ta.La("onReloadRequired")}b={};if(a.state.Jc()&&!g.uH(a.state)&&!Ax("pbresume","ad_to_video")&&Ax("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);mx(b,"ad_to_video");if(this.N("html5_csi_delay_pbresume")){if(Ax("plev","ad_to_video")&&!isNaN(this.Gb.u))if(b=1E3*(this.getCurrentTime()-this.Gb.u),0>b){var d;null==(d=g.aL(this))||
d.ya("csir",{ossms:b})}else if(1E5<b){var e;null==(e=g.aL(this))||e.ya("csir",{oslms:b})}else d=(0,g.R)()-b,lx("pbresume",d,"ad_to_video"),this.Gb.u=NaN}else lx("pbresume",void 0,"ad_to_video")}this.Ta.ea("applicationplayerstatechange",a)}};
g.h.WO=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("presentingplayerstatechange",a)};
g.h.qg=function(a){UU(this,vH(a.state));g.V(a.state,1024)&&this.Ta.isMutedByMutedAutoplay()&&(NK(this,{muted:!1,volume:this.wg.volume},!1),dV(this,!1))};
g.h.IW=function(a,b,c){"newdata"===a&&NU(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.Kx=function(){this.Ta.La("onPlaybackAudioChange",this.Ta.getAudioTrack().Fc.name)};
g.h.Sx=function(a){var b=this.Bb.getVideoData();a===b&&this.Ta.La("onPlaybackQualityChange",a.u.video.quality)};
g.h.onVideoDataChange=function(a,b,c){b===this.vb&&(this.Y.Ub=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Bd?this.Bd=new g.PP(this.Ta,this.Y,this.vb):!this.getVideoData().enableServerStitchedDai&&this.Bd&&(this.Bd.dispose(),this.Bd=null);if("newdata"===a)xL(this.Bc,2),this.Ta.ea("videoplayerreset",b);else{if(!this.mediaElement)return;if("dataloaded"===a)if(this.Bb===this.vb){if(EC(c.B,c.GK),!this.vb.getPlayerState().isError()){var d=QU(this);WS(this).isLoaded();d&&this.Gl(6);
yMa(this);wL(this.Bc)||XU(this)}}else yMa(this);if(1===b.getPlayerType()&&(this.Y.va&&SMa(this),this.getVideoData().isLivePlayback&&!this.Y.Yl&&this.Xe("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(c.pd||c.ZC||c.Qr||c.YI||c.S.focEnabled||c.S.rmktEnabled||this.getVideoData().Yl)d=this.getVideoData(),jV(this,"part2viewed",1,0x8000000000000),jV(this,"engagedview",Math.max(1,1E3*d.Fb),0x8000000000000),d.isLivePlayback||(d=1E3*d.lengthSeconds,jV(this,"videoplaytime25",.25*d,d),jV(this,
"videoplaytime50",.5*d,d),jV(this,"videoplaytime75",.75*d,d),jV(this,"videoplaytime100",d,0x8000000000000),jV(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.UB.progressEndBoundary,(null==d?void 0:d.start)!==e&&(d&&this.aC([d]),e=new g.Iw(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),
this.vb.addCueRange(e),this.UB.progressEndBoundary=e))}}this.Ta.ea("videodatachange",a,c,b.getPlayerType())}this.Ta.La("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.iC();if(b=c.wy){if(a=this.Mo,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=CH();var f=void 0===f?{}:f;Object.values(DSa).includes(c)||(g.Sv(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.RL?aya(b,c,f):$xa(b,c,f);LFa(a)}}else LFa(this.Mo)};
g.h.Ss=function(){YU(this,null);this.Ta.La("onPlaylistUpdate")};
g.h.jO=function(a){var b=a.getId(),c=WS(this);if("part2viewed"===b){if(c.TK&&g.Nt(c.TK),c.ZC&&qV(this,c.ZC),c.Qr)for(var d={CPN:this.getVideoData().clientPlaybackNonce},e=g.r(c.Qr),f=e.next();!f.done;f=e.next())qV(this,g.pp(f.value,d))}else"conversionview"===b?this.vb.Qu():"engagedview"===b&&c.pd&&(d={CPN:this.getVideoData().clientPlaybackNonce},g.Nt(g.pp(c.pd,d)));c.VK&&(d=a.getId(),d=pr(c.VK,{label:d}),g.Nt(d));switch(b){case "videoplaytime25":c.NK&&qV(this,c.NK);c.cD&&rV(this,c.cD);c.nL&&g.Nt(c.nL);
break;case "videoplaytime50":c.PK&&qV(this,c.PK);c.dD&&rV(this,c.dD);c.AL&&g.Nt(c.AL);break;case "videoplaytime75":c.RK&&qV(this,c.RK);c.eD&&rV(this,c.eD);c.SL&&g.Nt(c.SL);break;case "videoplaytime100":c.LK&&qV(this,c.LK),c.bD&&rV(this,c.bD),c.XK&&g.Nt(c.XK)}(b=this.getVideoData().Yl)&&JMa(this,b,a.getId())&&JMa(this,b,a.getId()+"gaia");this.vb.removeCueRange(a)};
g.h.dY=function(a){delete this.UB[a.getId()];this.vb.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.Ta.La("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,
watchEndpoint:b})};
g.h.Gl=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(UU(this,-1),UU(this,5)),this.appState=a,this.Ta.ea("appstatechange",a))};
g.h.Xe=function(a,b,c,d,e){this.vb.Vf(a,b,c,d,e)};
g.h.Hl=ca(9);g.h.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.aL(this,a);if(!c)return!1;a=VU(this,c);c=WU(this,c);return a!==c?a.isAtLiveHead(gV(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.h.qo=function(){var a=g.aL(this);return a?VU(this,a).qo():0};
g.h.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.aL(this,d))2===this.appState&&bV(this),this.oe(d)?fV(this)?this.Bd.seekTo(a,b,c):this.kd.seekTo(a,b,c):d.seekTo(a,{yQ:!b,zQ:c,pe:"application"})};
g.h.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.h.BB=function(){this.Ta.La("SEEK_COMPLETE")};
g.h.BY=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.V(a.getPlayerState(),512)||bV(this):this.Ta.La("SEEK_TO",b)};
g.h.onAirPlayActiveChange=function(){this.Ta.ea("airplayactivechange");this.Y.N("html5_external_airplay_events")&&this.Ta.La("onAirPlayActiveChange",this.Ta.Bf())};
g.h.onAirPlayAvailabilityChange=function(){this.Ta.ea("airplayavailabilitychange");this.Y.N("html5_external_airplay_events")&&this.Ta.La("onAirPlayAvailabilityChange",this.Ta.kx())};
g.h.showAirplayPicker=function(){var a;null==(a=this.Bb)||a.qp()};
g.h.JG=function(){this.Ta.ea("beginseeking")};
g.h.NG=function(){this.Ta.ea("endseeking")};
g.h.getStoryboardFormat=function(a){return(a=g.aL(this,a))?VU(this,a).getVideoData().getStoryboardFormat():null};
g.h.kh=function(a){return(a=g.aL(this,a))?VU(this,a).getVideoData().kh():null};
g.h.oe=function(a){a=a||this.Bb;var b=!1;if(a){a=a.getVideoData();if(fV(this))a=a===this.Bd.Aa.getVideoData();else a:if(b=this.kd,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.r(b.u);for(var c=b.next();!c.done;c=b.next())if(a.xc===c.value.xc){a=!0;break a}a=!1}b=a}return b};
g.h.Ns=function(a,b,c,d,e,f){var k=fV(this),l;null==(l=g.aL(this))||l.ya("appattl",{sstm:this.Bd?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:k});return k?$Ea(this.Bd,a,b,c,d,e,f):pFa(this.kd,a,b,c,d,e)};
g.h.ix=function(a,b,c,d,e,f){fV(this)&&$Ea(this.Bd,a,b,c,d,e,f);return""};
g.h.bp=function(a){var b;null==(b=this.Bd)||b.bp(a)};
g.h.eq=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;fV(this)?this.Y.N("web_player_ssdai_prevent_clearing_timeline_killswitch")&&aQ(this.Bd,a,b):mQ(this.kd,a,b)};
g.h.Pu=function(a,b,c){if(fV(this)){var d=this.Bd,e=c;(c=d.ub.get(a))?(d.Na(),void 0===e&&(e=c.Nc),a=e,d.Na(),c.durationMs=b,c.Nc=a,d.Y.N("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&cFa(d,c)):d.wx("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.kd;e=null;for(var f=g.r(d.u),k=f.next();!k.done;k=f.next())if(k=k.value,k.xc===a){e=k;break}e?(d.Na(),void 0===c&&(c=e.Nc),vFa(d,e,b,c)):fQ(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.h.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.oe();a=new g.SD(this.Y,a);d&&(a.xc=d);c=void 0===c?Infinity:c;b=b||this.Bb.getPlayerType();var e;this.Y.N("html5_gapless_preloading")&&(e=eV(this,b,a,!0));e||(e=this.Nn(b,a));2===b&&this.vb&&(b=e.getVideoData(),this.vb.pu(b.clientPlaybackNonce,b.Ub||"",b.breakType||0,b.Pd));this.fA(e,c)};
g.h.fA=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.aL(this);e&&(VU(this,e).FQ=!0);QEa(this.Vu,a,b,c).then(function(){d.Ta.La("onQueuedVideoLoaded")},function(){})};
g.h.Ot=function(){return this.Vu.Ot()};
g.h.clearQueue=function(){this.Vu.clearQueue()};
g.h.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,k=new g.SD(this.Y,a),l,m=null!=(l=k.xa)?l:"";this.Gb.timerName=m;this.N("web_player_early_cpn")&&k.clientPlaybackNonce&&this.Gb.info("cpn",k.clientPlaybackNonce);if(!this.N("web_player_load_video_context_killswitch")&&e){for(;k.Pi.length&&k.Pi[0].isExpired();)k.Pi.shift();f=k.Pi.length-1;f=0<f&&e.u(k.Pi[f])&&e.u(k.Pi[f-1]);k.Pi.push(e)}c||(a&&fL(a)?(OC(this.Y)&&!this.Eg&&(a.fetch=0),YU(this,a)):this.playlist&&YU(this,null),a&&
this.setIsExternalPlaylist(a.external_list),OC(this.Y)&&!this.Eg&&ZU(this));a=this.Po(k,b,d);f&&this.Xe("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+k.Pi.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=kC(a);if(!this.Xx.get(b+"_"+d+"_"+e)){a=new g.SD(this.Y,a);e&&(a.xc=e);e=b+"_"+a.videoId+"_"+a.xc;if(d=this.Bb){d=this.Bb.getPlayerType();var f=this.Bb.getVideoData().videoId,k=this.Bb.getVideoData().xc;d=e===d+"_"+f+"_"+k}d?(g.HP(this.Bb,!0),a.dispose()):(a.bd=!0,a=this.Nn(b,a),1===b&&RC(this.Y)||g.HP(a,!0),this.Xx.set(e,a,c||3600))}};
g.h.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Bc;a=a.I.V().showMiniplayerUiWhenMinimized?a.Nd.get("miniplayer"):void 0;a&&(this.Se()?a.load():a.unload());this.Ta.ea("minimized")};
g.h.setInline=function(a){this.visibility.setInline(a)};
g.h.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Bc;a=a.I.V().showInlinePreviewUi?a.Nd.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ta.La("onInlinePreviewModeChange"))};
g.h.Du=function(a){var b=this.Y.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.ej&&this.Y.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.cF&&b?this.cF.start():this.tL():this.visibility.Du(a)};
g.h.tL=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Ke();b&&dv(b).catch(function(c){return g.Sv(c)})};
g.h.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.h.yY=function(){"picture-in-picture"===this.mediaElement.Ke().webkitPresentationMode?this.Du(!0):this.Du(!1)};
g.h.togglePictureInPicture=function(){var a=g.aL(this);a&&a.togglePictureInPicture()};
g.h.Po=function(a,b,c){b=void 0===b?1:b;Ax("_start",this.Gb.timerName)||(lx("_start",void 0,this.Gb.timerName),this.Gb.info("srt",0));var d=eV(this,b,a,!1);d?a.dispose():(d=this.Nn(b,a,c),this.N("html5_onesie")&&sU(d)&&g.HP(d),this.hC.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),KP(this,d));d===this.vb&&(this.Y.Ub=a.oauthToken);if(!sU(d))return!1;if(d===this.vb)return this.Gl(1),bV(this);BU(d);return!0};
g.h.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&fL(a))if(this.Iq=!0,YU(this,a),(a=g.gL(this.playlist))&&a.isValid())lV(this,a,b);else this.playlist.onReady(function(){aV(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Ss();var d=new g.SD(this.Y,a);!g.qC(this.Y)||this.Y.S||1!==b||d.isAd()||d.Ub||!this.Y.N("embeds_enable_iframe_apis_through_oneplatform")?lV(this,d,b):(OBa(d,a?a:{}).then(function(e){lV(c,e,b)}),d.dispose())}};
g.h.rk=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(sC(this.Y)||g.SC(this.Y))return b=b||{},b.lact=Du(),b.vis=this.Ta.getVisibilityState(),this.Ta.La("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;JBa(this.Gb);this.Gb.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.Iq=!0;KMa(this,a,b,c,d)};
g.h.loadPlaylist=function(a,b,c,d){this.Iq=!1;KMa(this,a,b,c,d)};
g.h.Kw=function(){if(this.Ta.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;OC(this.Y)&&!this.Eg&&ZU(this);return!(!this.playlist||!this.playlist.hasNext())};
g.h.nq=ca(3);
g.h.nextVideo=function(a,b){var c=this.vb.getVideoData().suggestions;g.$K(this.Ta)&&c&&0<c.length?(a=c[0],this.rk(a.videoId,b?a.Dw:a.sessionData,a.playlistId,b,void 0,a.lL||void 0)):this.Eg?this.Ta.La("onPlaylistNext"):3===this.getPresentingPlayerType()?VK(this.Bc).nextVideo():this.playlist&&(OC(this.Y)&&!this.Ta.isFullscreen()?iV(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&hL(this.playlist,KBa(this.playlist)),this.playlist.loaded?(a=b&&this.Y.N("html5_player_autonav_logging"),this.Po(g.gL(this.playlist,
void 0,b,a),1)):this.Iq=!1))};
g.h.previousVideo=function(a){this.Eg?this.Ta.La("onPlaylistPrevious"):3===this.getPresentingPlayerType()?VK(this.Bc).RB():this.playlist&&(OC(this.Y)&&!this.Ta.isFullscreen()?iV(this,"yt.www.watch.lists.prev"):(this.playlist.ol(a)&&hL(this.playlist,LBa(this.playlist)),this.playlist.loaded?this.Po(g.gL(this.playlist),1):this.Iq=!1))};
g.h.playVideoAt=function(a){this.Eg?this.Ta.La("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Po(g.gL(this.playlist,a),1):this.Iq=!1,hL(this.playlist,a))};
g.h.getPlaylist=function(){return this.playlist};
g.h.Vw=ca(13);g.h.GW=function(a){this.Ta.La("onCueRangeEnter",a.getId())};
g.h.HW=function(a){this.Ta.La("onCueRangeExit",a.getId())};
g.h.cw=function(a,b,c){var d=g.aL(this,b);d&&(d.cw(a,c),b&&this.getPresentingPlayerType()!==b||SU(this,"cuerangesadded",a))};
g.h.aC=function(a,b){var c=g.aL(this,b);c&&(c.aC(a),b&&this.getPresentingPlayerType()!==b||SU(this,"cuerangesremoved",a))};
g.h.LW=function(){var a=this;this.getPresentingPlayerType();this.yp||(this.yp=Ft(HSa,this.sO,this));IBa(this.Gb,this.Bb.getVideoData(),NMa(this));OU(this)&&this.Y.j&&"embedded"===wE(WS(this))&&this.GN&&.01>Math.random()&&g.Ds("autoplayTriggered",{intentional:this.gN});this.GN=!1;$Ba(this.Bc);this.N("web_player_defer_ad")&&XU(this);this.Ta.La("onPlaybackStartExternal");this.Y.N("mweb_client_log_screen_associated");(function(){var c=g.Lv(a.MP||(a.Se()?3:0));if(c&&"UNDEFINED_CSN"!==c)if(a.Y.N("il_via_jspb")){var d=
new Hq,e=a.getVideoData().clientPlaybackNonce;g.D(d,1,e).Eh(c);a.Y.N("web_playback_associated_ve")&&a.getVideoData().va&&(e=g.Hv(a.getVideoData().va),g.Xv(c,e),c=e.getAsJspb(),se(d,2,c));if(a.Y.N("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo){c=a.getVideoData().queueInfo;e=new mja;if(null==c?0:c.enqueueingVe)if(null==c?0:c.enqueueingVe.trackingParams){var f=g.Hv(c.enqueueingVe.trackingParams);f=f.getAsJspb();se(e,1,f)}else g.Sv(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));se(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;te(e,202,Ev,d);Dv(e,c)}else d={cpn:a.getVideoData().clientPlaybackNonce,csn:c},a.Y.N("web_playback_associated_ve")&&a.getVideoData().va&&(e=g.Hv(a.getVideoData().va),g.Xv(c,e),d.playbackVe=e.getAsJson()),a.Y.N("kevlar_playback_associated_queue")&&
a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo),c={},a.N("web_playback_associated_log_ctt")&&a.getVideoData().K&&(c.cttAuthInfo={token:a.getVideoData().K,videoId:a.getVideoData().videoId}),g.Ds("playbackAssociated",d,c);else g.Sv(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});nx("player_att",b);this.getVideoData().botguardData&&(g.QC(this.Y)||"MWEB"===FC(this.Y)?g.Tr(g.Vr(),function(){cV(a)}):cV(this));
this.iC()};
g.h.TG=function(){this.Ta.ea("internalAbandon");this.N("html5_ad_module_cleanup_killswitch")||hV(this)};
g.h.sO=function(a){a=a.j;!isNaN(a)&&0<a&&this.vb&&this.vb.jy(a)};
g.h.onApiChange=function(){this.Y.B&&this.Bb?this.Ta.La("onApiChange",this.Bb.getPlayerType()):this.Ta.La("onApiChange")};
g.h.EX=function(){var a=this.mediaElement;a={volume:g.xh(Math.floor(100*a.getVolume()),0,100),muted:a.zA()};a.muted||dV(this,!1);this.wg=g.Zf(a);this.Ta.La("onVolumeChange",a)};
g.h.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ta.La("onMutedAutoplayStarts"))};
g.h.onFullscreenChange=function(){var a=nV(this);this.hj(a?1:0);QMa(this,!!a)};
g.h.hj=function(a){var b=!!a,c=!!this.vt()!==b;this.visibility.hj(a);this.template.hj(b);this.N("html5_media_fullscreen")&&!b&&this.mediaElement&&nV(this)===this.mediaElement.Ke()&&this.mediaElement.Fw();this.template.resize();c&&this.Gb.tick("fsc");c&&(this.Ta.ea("fullscreentoggled",b),a=WS(this),b={fullscreen:b,videoId:a.WD||a.videoId,time:this.getCurrentTime()},this.Ta.getPlaylistId()&&(b.listId=this.Ta.getPlaylistId()),this.Ta.La("onFullscreenChange",b))};
g.h.isFullscreen=function(){return this.visibility.isFullscreen()};
g.h.vt=function(){return this.visibility.vt()};
g.h.qY=function(){this.Bb&&(0!==this.vt()&&1!==this.vt()||this.hj(nV(this)?1:0),this.Y.ej&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.Fw())};
g.h.wX=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("liveviewshift",a)};
g.h.playVideo=function(a){if(a=g.aL(this,a))2===this.appState?bV(this):(null!=this.tj&&this.tj.tb&&this.tj.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.h.pauseVideo=function(a){(a=g.aL(this,a))&&a.pauseVideo()};
g.h.stopVideo=function(){var a=this.vb.getVideoData(),b=new g.SD(this.Y,{video_id:a.WD||a.videoId,oauth_token:a.oauthToken});b.Z=g.Zf(a.Z);this.cancelPlayback(6);lV(this,b,1);null!=this.tj&&this.tj.stop()};
g.h.cancelPlayback=function(a,b){Et(this.yp);this.yp=0;var c=g.aL(this,b);c&&(this.Y.N("html5_high_res_logging")&&c.ya("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Bb&&xL(this.Bc,a),1===b&&(c.stopVideo(),hV(this)),c.Wm(),SU(this,"cuerangesremoved",c.wm()),c.Bg.reset(),this.Vu&&c.isGapless()&&(c.Pg(!0),c.setMediaElement(this.mediaElement))))};
g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.aL(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.h.jh=function(a){var b=g.aL(this);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.jh(a):null};
g.h.updatePlaylist=function(){OC(this.Y)?ZU(this):g.qC(this.Y)&&$U(this);this.Ta.La("onPlaylistUpdate")};
g.h.setSizeStyle=function(a,b){this.YP=a;this.bG=b;this.Ta.ea("sizestylechange",a,b);this.template.resize()};
g.h.isWidescreen=function(){return this.bG};
g.h.Se=function(){return this.visibility.Se()};
g.h.isInline=function(){return this.visibility.isInline()};
g.h.Mt=function(){return this.visibility.Mt()};
g.h.It=function(){return this.visibility.It()};
g.h.ox=function(){return this.YP};
g.h.getAdState=function(){if(3===this.getPresentingPlayerType())return VK(this.Bc).getAdState();if(!this.oe()){var a=yL(this.sb());if(a)return a.getAdState()}return-1};
g.h.pY=function(a){var b=this.template.getVideoContentRect();Km(this.zN,b)||(this.zN=b,this.Bb&&zU(this.Bb),this.vb&&this.vb!==this.Bb&&zU(this.vb),1===this.vt()&&this.Tx&&QMa(this,!0));this.hG&&g.Eh(this.hG,a)||(this.Ta.ea("appresize",a),this.hG=a)};
g.h.qf=function(){return this.Ta.qf()};
g.h.HY=function(){2===this.getPresentingPlayerType()&&this.kd.isManifestless()&&!this.N("web_player_manifestless_ad_signature_expiration_killswitch")?uFa(this.kd):(this.Bd&&(aQ(this.Bd),hV(this)),TU(this,"signature",void 0,!0))};
g.h.DO=function(){this.Pg();RU(this)};
g.h.KX=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ta.La("onPlayerRequestAuthFailed")};
g.h.Mx=function(){this.Ta.La("CONNECTION_ISSUE")};
g.h.Ox=function(a){this.Ta.ea("heartbeatparams",a)};
g.h.fC=function(a){this.Ta.La("onAutonavChangeRequest",1!==a)};
g.h.zd=function(){return this.mediaElement};
g.h.setBlackout=function(a){this.Y.Sb=a;this.Bb&&(this.Bb.Mr(),this.Y.va&&SMa(this))};
g.h.setAccountLinkState=function(a){var b=g.aL(this);b&&(b.getVideoData().MK=a,b.Mr())};
g.h.updateAccountLinkingConfig=function(a){var b=g.aL(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ta.ea("videodatachange","dataupdated",c,b.getPlayerType())}};
g.h.MX=function(){var a=g.aL(this);if(a){var b=!this.Ta.nx();(a.RM=b)||a.Pq.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.Y.N("html5_suspend_loader")&&a.Ua&&(b?a.Ua.resume():HU(a,!0));a.Y.N("html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Vb(pH(a.playerState,512)):a.Vb(oH(a.playerState,512)));a=a.Zb;a.qoe&&(a=a.qoe,g.bT(a,g.IP(a.j),"stream",[b?"A":"I"]))}};
g.h.onLoadedMetadata=function(){this.Ta.La("onLoadedMetadata")};
g.h.onDrmOutputRestricted=function(){this.Ta.La("onDrmOutputRestricted")};
g.h.iE=function(){this.N("html5_skip_empty_load")&&(fTa=!0);iTa=this.N("html5_ios_force_seek_to_zero_on_stop");gTa=this.N("html5_ios7_force_play_on_stall");hTa=this.N("html5_ios4_seek_above_zero");Qsa=this.N("html5_retain_source_buffer_appends_for_debugging");this.N("html5_mediastream_applies_timestamp_offset")&&(wR=!0);this.N("html5_dont_override_default_sample_desc_index")&&(Mra=!0);var a=g.cB(this.Y.experiments,"html5_cobalt_override_quic");a&&BEa(0<a);Error.stackTraceLimit=25;var b=g.cB(this.Y.experiments,
"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
VSa=this.N("html5_live_partial_response_resumable");sz=this.N("html5_onesie_consume_media_slices")};
g.h.oG=function(){this.gN=!0};
g.h.qa=function(){this.Bc.dispose();this.kd.dispose();this.Bd&&this.Bd.dispose();this.vb.dispose();this.Pg();g.rf(Mf(this.Uu),this.playlist);Et(this.yp);this.yp=0;this.TH&&(window.clearInterval(this.TH),this.TH=void 0);g.G.prototype.qa.call(this)};
g.h.N=function(a){return this.Y.N(a)};
g.h.mC=function(){return this.Ey};
g.h.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.h.setScreenLayer=function(a){this.MP=a};
g.h.seekToChapterWithAnimation=function(a){var b=this,c,d=null==(c=OK(this.sb()))?void 0:c.Lw();if(d instanceof g.aM&&!(0>a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.yk)&&a<c.length)for(e=g.r(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.index===a){WMa(this,d,c.startTime,c.title);return}if(this.N("web_key_moments_markers")){var f;(e=null==(f=this.getVideoData())?void 0:f.CN)&&a<e.length&&e.forEach(function(k,l){l===a&&WMa(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=BL(c.Bc);if(!d)return k.return(Promise.reject());b&&(e={ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:b}});return g.A(k,d.xH([a],"ytMainDownloadedVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),3)}f=k.u;return k.return(f[0])})};
g.h.pauseVideoDownload=function(a){var b=BL(this.Bc);b&&b.kH(a)};
g.h.resumeVideoDownload=function(a){var b=this,c;return g.B(function(d){return(c=BL(b.Bc))?d.return(c.uy(a)):d.return(Promise.reject())})};
g.h.refreshAllVideos=function(a){void 0===a&&(a=14400);var b=BL(this.Bc);return b?b.oy(a):Promise.reject()};
g.h.deleteVideos=function(a){var b=BL(this.Bc);return b?b.xH(a,"ytMainDownloadedVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"):Promise.reject()};
g.h.deleteAllVideos=function(){var a=BL(this.Bc);return a?a.deleteAll():Promise.reject()};
g.h.isOrchestrationLeader=function(){var a=BL(this.Bc);return a?a.isOrchestrationLeader():!1};
g.h.getStatsForNerds=function(){var a=this.Ta,b=g.aL(this),c=a.getVideoData(),d=a.zd(),e=d.Ke(),f=b.ax(),k=b.jI,l=8*xQ(k,"bandwidth")/1024,m=xQ(k,"networkactivity")/1024,n=xQ(k,"bufferhealth");if(b.Zd){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Zd.j.yf()+"/"+Nx(b.xt());p+="/"+b.Zd.yf()}else p="";var q=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),w=rA(d.fg(),",",3),x="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(x+="SS");x+="DAI, ";a:{if(b.kd){if(b.kd.Qn){var y=
"D,";break a}y=b.kd.Ji;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:"+w+" ";d.Ev()&&(x+="S");d.Sl()&&(x+="P");d.Sf()&&(x+="E");a.isOrchestrationLeader()&&(x+=" L");(d=b.Rw())&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();q=c.Rv;d&&d>q.start&&d<q.end&&(x+=" as");d=x;x=g.PC();q=g.YK(a).vV;t=c.C&&!c.C.j?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){y=
0;for(var z="",E=0;10>E;E++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),4==E%5){for(var I="",K=0;6>K;K++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+I,y>>=5;z+=I}w=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else w="";l={video_id_and_cpn:c.videoId+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:p?"":"display:none",drm:p,debug_info:d,
bandwidth_style: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=rwa(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Pd.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=
e.videoWidth+"x"+e.videoHeight;if(a=c.u)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.DU(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.gf;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(ZD(c)?" Manifestless":"");else if(e){a=xQ(k,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=ZD(c)?"Manifestless, ":"";c.ih&&(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=wQ(k,"bandwidth");l.network_activity_samples=wQ(k,"networkactivity");l.live_latency_samples=wQ(k,
"livelatency");l.buffer_health_samples=wQ(k,"bufferhealth");b=g.CE(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";eE(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220405_01_RC00",l.release_style=""):l.release_style="display:none";return l};
g.h.getVideoUrl=function(a,b,c,d,e){return this.Ib&&this.Ib.postId?(a=this.Y.getVideoUrl(a),a=zj(a,"v"),a.replace("/watch","/clip/"+this.Ib.postId)):this.Y.getVideoUrl(a,b,c,d,e)};
var U0={};g.Ja("yt.player.Application.create",g.PU.create);g.Ja("yt.player.Application.createAlternate",g.PU.create);Apa(Ov(),{Om:[{Ax:/Unable to load player module/,weight:20},{Ax:/Failed to fetch/,weight:500},{Ax:/XHR API fetch failed/,weight:10},{Ax:/JSON parsing failed after XHR fetch/,weight:10},{Ax:/Retrying OnePlatform request/,weight:10}]});var ITa=g.Ka("ytcsi.tick");ITa&&ITa("pe");var ZMa=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"]]),XMa=new Map([["normal",{wr:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Gr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{wr:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Gr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{wr:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Gr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{wr:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Gr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{wr:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Gr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{wr:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Gr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{wr:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Gr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var JTa={Kca:"replaceUrlMacros",pba:"onAboutThisAdPopupClosed",k6:"executeCommand"};AV.prototype.bl=function(){return"adLifecycleCommand"};
AV.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.vi(function(){b.controller.Tn()});
break;case "END_LINEAR_AD_PLACEMENT":g.vi(function(){b.controller.Yk()});
break;case "FILL_ABOVE_FEED_SLOT":g.vi(function(){a.elementId&&b.controller.kA(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.vi(function(){b.controller.Uz()})}};
AV.prototype.Dm=function(a){this.handle(a)};BV.prototype.bl=function(){return"clearCueRangesCommand"};
BV.prototype.handle=function(){var a=this.EE();g.vi(function(){a.Uf(Array.from(a.Up))})};
BV.prototype.Dm=function(a){this.handle(a)};CV.prototype.bl=function(){return"muteAdEndpoint"};
CV.prototype.handle=function(a){cNa(this,a)};
CV.prototype.Dm=function(a,b){cNa(this,a,b)};DV.prototype.bl=function(){return"openPopupAction"};
DV.prototype.handle=function(){};
DV.prototype.Dm=function(a){this.handle(a)};EV.prototype.bl=function(){return"pingingEndpoint"};
EV.prototype.handle=function(){};
EV.prototype.Dm=function(a){this.handle(a)};FV.prototype.bl=function(){return"urlEndpoint"};
FV.prototype.handle=function(a,b){b=Object.assign({},b);if(this.vZ.I.V().N("h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")){var c=qw(this.ek,2);c&&(b.AD_CPN=c.clientPlaybackNonce)}b=g.pp(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.tJ(b,void 0,void 0,a)};
FV.prototype.Dm=function(a){this.handle(a,{})};GV.prototype.bl=function(){return"adPingingEndpoint"};
GV.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Vp.send(a,b,c)};
GV.prototype.Dm=function(a,b){$Oa(this.Sa.get(),a,b)};HV.prototype.bl=function(){return"changeEngagementPanelVisibilityAction"};
HV.prototype.handle=function(a){this.I.La("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
HV.prototype.Dm=function(a){this.handle(a)};IV.prototype.bl=function(){return"loggingUrls"};
IV.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.ai.send(d.baseUrl,b,c,d.headers)};
IV.prototype.Dm=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,$Oa(this.Sa.get(),c.baseUrl,b,c.headers)};g.v(eNa,g.G);var tNa=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.v(JV,g.G);g.h=JV.prototype;g.h.sF=function(a,b){return this.j.sF(a,b)};
g.h.Yh=function(a,b){GW(this.Xb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.r(this.Wd),d=c.next();!d.done;d=c.next())d.value.Yh(a,b)};
g.h.sf=function(a){if(NV(this.j,a)){ZG(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.sf(a);for(var b=g.r(this.Wd),c=b.next();!c.done;c=b.next())c.value.sf(a);gNa(this,a)}};
g.h.tf=function(a){if(NV(this.j,a)){ZG(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.tf(a);for(var b=g.r(this.Wd),c=b.next();!c.done;c=b.next())c.value.tf(a);NV(this.j,a)&&OV(this.j,a).D&&LV(this,a,!1)}};
g.h.CB=function(a){ZG(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);NV(this.j,a)&&(this.j.CB(a),LV(this,a,!1))};
g.h.Mc=function(a,b){if(NV(this.j,a)){PV(this.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Wd),d=c.next();!d.done;d=c.next())d.value.Mc(a,b)}};
g.h.Yc=function(a,b,c){if(NV(this.j,a)){PV(this.Xb,YMa(c),a,b);this.j.Yc(a,b);for(var d=g.r(this.Wd),e=d.next();!e.done;e=d.next())e.value.Yc(a,b,c);(c=bW(this.j,a))&&b.layoutId===c.layoutId&&qNa(this,a,!1)}};
g.h.Ff=function(a,b,c){T(c,a,b,void 0,c.Wp);LV(this,a,!0)};
g.h.qa=function(){var a=sNa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())LV(this,b.value,!1);g.G.prototype.qa.call(this)};rNa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(QV,$a);g.v(ZV,$a);g.v(eW,g.G);g.h=eW.prototype;g.h.sF=function(a,b){b=aW(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.Ah=function(a){a=OV(this,a);"not_scheduled"!==a.j&&cW(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.h.Hw=function(a){a=OV(this,a);a.C="fill_requested";a.K.Hw()};
g.h.sf=function(a){a=OV(this,a);"enter_requested"!==a.j&&cW(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.h.CB=function(a){OV(this,a).C="fill_canceled"};
g.h.tf=function(a){a=OV(this,a);"exit_requested"!==a.j&&cW(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.h.Yc=function(a,b){a=OV(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&cW(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.v(hW,g.G);hW.prototype.B=function(){return this.u};g.v(iW,g.G);iW.prototype.get=function(){this.isDisposed()&&T("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};jW.prototype.executeCommand=function(a,b){ZH(this.j(),a,b)};
jW.prototype.Ld=function(a,b){Qya(this.j(),a,b)};g.v(FW,g.G);g.v(IW,g.G);IW.prototype.onCueRangeEnter=function(){};
IW.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.u.get().removeCueRange(a),pw(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=xw(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Pb:c.Pb?LOa(c.slotId,d,c.Pb):void 0,lc:MOa(c.slotId,d,c.lc),uc:MOa(c.slotId,d,c.uc)})]},c.slotId))};
IW.prototype.wh=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.j.clear()};
IW.prototype.Yj=function(){};g.v(JW,g.G);g.h=JW.prototype;g.h.Ah=function(){};
g.h.Yi=function(a){var b=this;g.Tr(g.Vr(),function(){var c=b.j.get(a);c&&T("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.u(c)).map(function(d){return d.layoutType})})},0)};
g.h.sf=function(){};
g.h.Xi=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.h.Vi=function(a,b){this.ji.has(a)&&this.ji.get(a)===b&&T("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):T("Trying to unscheduled a Layout that was not scheduled.",a,b)}else T("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.h.Mc=function(a,b){this.ji.set(a,b)};
g.h.Yc=function(a){this.ji.delete(a)};
g.h.Yh=function(){};TW.prototype.clone=function(a){var b=this;return new TW(function(){return b.triggerId},a)};UW.prototype.clone=function(a){var b=this;return new UW(function(){return b.triggerId},a)};VW.prototype.clone=function(a){var b=this;return new VW(function(){return b.triggerId},a)};WW.prototype.clone=function(a){var b=this;return new WW(function(){return b.triggerId},a)};XW.prototype.clone=function(a){var b=this;return new XW(function(){return b.triggerId},a)};g.v($W,g.G);$W.prototype.logEvent=function(a){GW(this,a)};g.v(aX,$W);bX.prototype.clear=function(){this.j.clear()};g.v(cX,g.G);g.h=cX.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.wh=function(a,b,c,d,e,f,k){if(""===a)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ga.get().wh(a,b,c,d,e,f,k);this.C.get().wh(a,b,c,d,e,f,k);var l;null==(l=this.u)||l.get().wh(a,b,c,d,e,f,k);this.B.wh(a,b,c,d,e,f,k);l=g.r(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.wh(a,b,c,d,e,f,k)}};
g.h.TG=function(){this.j&&this.Yj(this.j)};
g.h.Yj=function(a){this.j=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Yj(a)};g.v(dX,g.G);dX.prototype.addCueRange=function(a,b,c,d,e,f,k){f=void 0===f?3:f;k=void 0===k?1:k;this.j.has(a)?T("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new VOa(a,b,c,d,f),this.j.set(a.id,{Ed:a,listener:e,qk:k}),this.I.Rd([a],k))};
dX.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.I.Uf([b.Ed],b.qk),this.j.delete(a)):T("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
dX.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
dX.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.v(VOa,g.Iw);eX.prototype.aj=function(a){this.I.aj(a)};
eX.prototype.La=function(a){this.I.La.apply(this.I,[a].concat(g.u(g.Ca.apply(1,arguments))))};g.h=iX.prototype;g.h.Lf=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"),$ha(a,b),{};b=Twa(b);if(null===b||this.I.V().N("enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return{};var c=this.I.Kc();c=c&&(this.I.V().N("enable_server_stitched_dai")||2===c.getPlayerType())&&sF(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ga.get().isFullscreen()};return op(b,a,c)};
g.h.Ix=function(a){var b;null==(b=this.j.get(a.queryId))||b.Ix()};
g.h.Hx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Hx()};
g.h.Jx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Jx()};
g.h.Fx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Fx()};
g.h.Gx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Gx()};g.v(mX,fF);mX.prototype.j=function(){return this.C()};
mX.prototype.u=function(){return this.D()};
mX.prototype.N=function(a){return this.B(a)};nX.prototype.jh=function(){var a=this.I.Kc();return a&&(a=a.jh(1))?a:null};
nX.prototype.Uh=function(a,b){"string"===typeof b?this.I.getVideoData(1).BH(a,b):this.I.getVideoData(1).ya(a,b)};g.v(sX,g.G);g.h=sX.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.wh=function(){this.cE.clear();this.jG=null;this.I.V().N("html5_clear_timeline_storage_killswitch")||this.j.get().clear()};
g.h.Yj=function(){};
g.h.gZ=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Uh("ads_ssm_vdc_s",{pt:c,dvt:a});(gX(this.Pa.get())||this.Pa.get().I.V().N("html5_debug_client_stitched"))&&"dataloaded"!==a||gPa(this,b,c)};
g.h.CY=function(a,b){void 0!==a&&(this.jG=a,void 0===b?T("Expected ad video start time on SS video changed"):this.cE.set(a,b));b=this.I.getPresentingPlayerType(!0);var c=this.I.getVideoData(b);this.I.getVideoData(1).ya("ads_ssvc",{pt:b,cpn:""+(null==c?void 0:c.clientPlaybackNonce)});c?gPa(this,c,b):T("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.h.qa=function(){this.listeners.length=0;this.jq=null;g.G.prototype.qa.call(this)};
g.h.Uh=function(a,b){this.I.getVideoData(1).ya(a,b)};g.v(tX,g.G);g.h=tX.prototype;g.h.wh=function(){var a=this;this.lq=Dg(function(){a.I.isDisposed()||a.I.Je("ad",1)})};
g.h.Yj=function(){};
g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.playVideo=function(){this.I.playVideo()};
g.h.pauseVideo=function(){this.I.pauseVideo()};
g.h.resumeVideo=function(a){this.Im(a)&&this.I.playVideo()};
g.h.Im=function(a){return 2===this.I.getPlayerState(a)};
g.h.getCurrentTimeSec=function(a,b){var c=this.j.get().jG;return 2!==a||b||null===c?this.I.getCurrentTime(a,b):uX(this,c)};
g.h.getVolume=function(){return this.I.getVolume()};
g.h.isMuted=function(){return this.I.isMuted()};
g.h.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)};
g.h.getPlayerState=function(a){return this.I.getPlayerState(a)};
g.h.isFullscreen=function(){return this.I.isFullscreen()};
g.h.isAtLiveHead=function(){return this.I.isAtLiveHead()};
g.h.Fu=function(a){this.I.Fu(a)};
g.h.fY=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.Wh(a)};
g.h.WX=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Wi(a,this.getPresentingPlayerType())};
g.h.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.h.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.h.pg=function(){for(var a=this.I.Se(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.pg(a)};
g.h.xb=function(){for(var a=this.I.bb().Hg(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Si(a)};
g.h.Wj=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Wj(a)};g.v(kPa,g.G);xX.prototype.addListener=function(a){this.listeners.add(a)};
xX.prototype.removeListener=function(a){this.listeners.delete(a)};zX.prototype.Hw=function(){var a=this;nPa(this.j,function(){var b=X(a.slot.Ea,"metadata_type_ad_break_request_data");return a.u.get().fetch({MQ:b.getAdBreakUrl,OL:new g.Iw(b.vP,b.uP),uw:X(a.slot.Ea,"metadata_type_cue_point")})},function(){pPa(a)},function(b){b=b.fm;
2<=b.length&&T("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,k;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(k=c.renderer)||!k.instreamVideoAdRenderer)})||pPa(a)})};
zX.prototype.sE=function(){oPa(this.j)};AX.prototype.Hw=function(){var a=this;nPa(this.j,function(){var b=X(a.slot.Ea,"metadata_type_ad_break_request_data");return a.u.get().fetch({MQ:b.getAdBreakUrl,OL:new g.Iw(b.vP,b.uP)})})};
AX.prototype.sE=function(){oPa(this.j)};BX.prototype.Hw=function(){iNa(this.callback,this.slot,X(this.slot.Ea,"metadata_type_fulfilled_layout"))};
BX.prototype.sE=function(){MV(this.callback,this.slot,new ZV("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};DX.prototype.ye=function(a,b){return CX(b,{Xd:["metadata_type_fulfilled_layout"]})?new BX(a,b):this.C(a,b)};g.v(EX,DX);EX.prototype.C=function(a,b){if(CX(b,{Xd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new zX(a,b,this.j,this.B,this.u,this.D);if(CX(b,{Xd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new AX(a,b,this.j,this.B,this.u);throw new ZV("Unsupported slot with type: "+b.slotType+" and client metadata: "+tV(b.Ea)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(ZX,DX);ZX.prototype.C=function(a,b){throw new ZV("Unsupported slot with type: "+b.slotType+" and client metadata: "+tV(b.Ea)+" in DefaultFulfillmentAdapterFactory.");};g.h=qPa.prototype;g.h.Gd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){};
g.h.release=function(){};
g.h.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Ff(this.slot,a,new QV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Ea,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Mc(this.slot,a),fqa(this.j,this.slot,b)):T("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.h.lf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ff(this.slot,a,new QV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Yc(this.slot,a,b)};kY.prototype.ye=function(a,b,c,d){if(iY(d,{Xd:["metadata_type_ad_break_response_data"],Ue:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new qPa(a,c,d,this.j);throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};lY.prototype.Lf=function(a){var b=this.D.get(a)||[];rPa(this,a,b);this.C.add(a)};g.h=sPa.prototype;g.h.Gd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){};
g.h.release=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ff(this.slot,a,new QV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Mc(this.slot,a),oY(this.u,"impression"),EY(this.j,a.layoutId))};
g.h.lf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ff(this.slot,a,new QV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Yc(this.slot,a,b)};rY.prototype.ye=function(a,b,c,d){if(iY(d,tPa()))return new sPa(a,c,d,this.Sa,this.j);throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(sY,g.iv);g.h=sY.prototype;g.h.Gd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){this.u.get().addListener(this)};
g.h.release=function(){this.u.get().removeListener(this);this.dispose()};
g.h.EF=function(){};
g.h.CF=function(){};
g.h.BF=function(){};
g.h.JA=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ff(this.slot,a,new QV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),UPa(a,this.j,1))};
g.h.lf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Ff(this.slot,a,new QV("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();UPa(c,this.j,3);this.j=[];this.callback.Yc(this.slot,a,b)}};
g.h.qa=function(){this.u.get().removeListener(this);g.iv.prototype.qa.call(this)};g.v(uPa,LE);g.v(vY,sY);g.h=vY.prototype;g.h.Af=function(a,b){uY("action-companion",a,this.J.get().ji,this.Sa.get(),this.B,this.C,this.Gd(),this.Kb(),b)};
g.h.startRendering=function(a){tY(this.D,this.Gd(),this.Kb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new uPa(b,c,d,e,f)},this.j);
sY.prototype.startRendering.call(this,a)};
g.h.Mc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Sa.get().jh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Yc=function(){};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.sf=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Yh=function(){};
g.h.qa=function(){this.Ee().Wd.delete(this);sY.prototype.qa.call(this)};g.v(wY,sY);wY.prototype.init=function(){sY.prototype.init.call(this);var a=X(this.layout.Ea,"metadata_type_ad_action_interstitial_renderer"),b=nY(this.B);this.j.push(new CF(a,b,this.layout.layoutId,{adsClientData:this.layout.Ac},!0,!0))};
wY.prototype.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a)};
wY.prototype.Af=function(){};
wY.prototype.qa=function(){sY.prototype.qa.call(this)};g.v(xY,sY);g.h=xY.prototype;g.h.init=function(){sY.prototype.init.call(this);var a=X(this.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ac},c=!X(this.layout.Ea,"metadata_type_player_bytes_callback").WA;this.j.push(new eJ(a,this.layout.layoutId,X(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.h.Wo=function(){this.B||this.Ga.get().resumeVideo(2)};
g.h.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a);this.C.Ks=this};
g.h.lf=function(a,b){sY.prototype.lf.call(this,a,b);r_(this.C,this)};
g.h.Af=function(a){if(DOa(this.D.get(),this.J))switch(a){case "visit-advertiser":this.Sa.get().I.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Ga.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Ga.get().Im(2))||this.Ga.get().pauseVideo();break;case "visit-advertiser":this.Ga.get().pauseVideo();X(this.layout.Ea,"metadata_type_player_bytes_callback").dC();
break;case "skip-button":a=X(this.layout.Ea,"metadata_type_player_bytes_callback"),a.WA&&a.Rx(this.Gd(),this.layout)}};
g.h.qa=function(){sY.prototype.qa.call(this)};zY.prototype.ye=function(a,b,c,d){if(a=yY(a,c,d,this.u,this.Ga,this.Sa,this.B,this.j))return a;throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(AY,g.G);g.h=AY.prototype;g.h.init=function(){var a=X(this.Kb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Lo()};
g.h.release=function(){var a=X(this.Kb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.jp()};
g.h.startRendering=function(a){a.layoutId!==this.Kb().layoutId?this.callback.Ff(this.Gd(),a,new QV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Kb().layoutId+("and LayoutType: "+this.Kb().layoutType))):(this.Ga.get().addListener(this),KV(this.Ee(),this),iPa(this.Ga.get()),this.xd.get().gI(),this.vp(a))};
g.h.lf=function(a,b){this.NF=!0;this.wp(a,b);this.Ga.get().I.Vm();this.Yd.get().I.cueVideoByPlayerVars({},2);a=jX(this.Ga.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Ga.get().playVideo();this.Ga.get().removeListener(this);this.NF&&this.MN()};
g.h.Yc=function(a,b){b.layoutId===this.Kb().layoutId&&(this.NF=!1,this.Ee().Wd.delete(this))};
g.h.Wi=function(a,b){if(a.state.isError()){var c,d;this.Ff(null==(c=a.state.getData())?void 0:c.errorCode,new QV("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.LO(a)};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.sf=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Yh=function(){};
g.h.Wj=function(){};g.v(BY,AY);g.h=BY.prototype;g.h.Gd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.Lo=function(){if(1>=this.u.length)throw new ZV("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(),UV(this.B,this.slot,b.Kb()),VV(this.B,this.slot,b.Kb())};
g.h.jp=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,$G(this.B,this.slot,b.Kb()),b.release()};
g.h.er=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.er()};
g.h.zr=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.zr()};
g.h.Rx=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("onSkipRequested for a PlayerBytes layout that is not currently active",c.Gd(),c.Kb(),{requestingSlot:a,requestingLayout:b}):DY(this,c.Gd(),c.Kb(),"skipped")};
g.h.vp=function(){-1===this.j&&yPa(this)};
g.h.PY=function(a,b){WV(this.B,a,b)};
g.h.wp=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.lf(a.Kb(),b),this.D=function(){c.callback.Yc(c.slot,c.layout,b)}):this.callback.Yc(this.slot,this.layout,b)};
g.h.Mc=function(a,b){var c=this.u[this.j];c&&c.Mc(a,b)};
g.h.Yc=function(a,b,c){AY.prototype.Yc.call(this,a,b,c);var d=this.u[this.j];d&&d.Yc(a,b,c)};
g.h.MN=function(){var a=this.u[this.j];a&&a.IA()};
g.h.Wh=function(a){var b=this.u[this.j];b&&b.Wh(a)};
g.h.LO=function(a){var b=this.u[this.j];b&&b.Wi(a)};
g.h.Ff=function(a,b){-1===this.j&&(this.callback.Mc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.Dx(a,b):T("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Kb().layoutId})};
g.h.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.h.pg=function(a){var b=this.u[this.j];b&&b.pg(a)};
g.h.Si=function(a){var b=this.u[this.j];b&&b.Si(a)};
g.h.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.h.RY=function(a,b,c){DY(this,a,b,c)};
g.h.QY=function(a,b){DY(this,a,b,"error")};g.v(IY,g.G);g.h=IY.prototype;g.h.Gd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){var a=X(this.layout.Ea,"metadata_type_video_length_seconds"),b=X(this.layout.Ea,"metadata_type_active_view_traffic_type");kX(this.ma.get(),this.layout.layoutId,b,a,this);qX(this.Sa.get(),this);this.Lo()};
g.h.release=function(){lX(this.ma.get(),this.layout.layoutId);rX(this.Sa.get(),this);this.jp()};
g.h.er=function(){};
g.h.zr=function(){};
g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ff(this.slot,a,new QV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",xwa(this.Ia.get(),1)?(this.J(-1),this.vp(a),this.Qs(!1)):this.Dx("ui_unstable",new QV("Failed to render media layout because ad ui unstable.")))};
g.h.Mc=function(a,b){if(b.layoutId===this.layout.layoutId){this.u="rendering";oY(this.j,"impression");oY(this.j,"start");if(this.Ga.get().isMuted()){oY(this.j,"mute");var c;a=(null==(c=HY(this))?void 0:c.muteCommands)||[];this.B.get().Ld(a,this.layout.layoutId)}if(this.Ga.get().isFullscreen()){this.j.Lf("fullscreen");var d;c=(null==(d=HY(this))?void 0:d.fullscreenCommands)||[];this.B.get().Ld(c,this.layout.layoutId)}this.S=this.Ga.get().isMuted()||0===this.Ga.get().getVolume();JY(this,"unmuted_impression");
JY(this,"unmuted_start");this.Ga.get().isFullscreen()&&LY(this,"unmuted_fullscreen");this.xd.get().QH();this.J(1);this.zO();var e;d=(null==(e=HY(this))?void 0:e.impressionCommands)||[];this.B.get().Ld(d,this.layout.layoutId)}};
g.h.Dx=function(a,b,c){this.Ha={JC:3,Uy:"load_timeout"===a?402:400,errorMessage:b.message};X(this.layout.Ea,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&T("There is a player error in this survey ads",this.Gd(),this.Kb(),{playerType:String(c)});oY(this.j,"error");JY(this,"unmuted_error");var d;a=(null==(d=HY(this))?void 0:d.errorCommands)||[];this.B.get().Ld(a,this.layout.layoutId);this.callback.Ff(this.slot,this.layout,b)};
g.h.IA=function(){this.K()};
g.h.IM=function(){if("rendering"===this.u){oY(this.j,"pause");LY(this,"unmuted_pause");var a,b=(null==(a=HY(this))?void 0:a.pauseCommands)||[];this.B.get().Ld(b,this.layout.layoutId);this.J(2)}};
g.h.JM=function(){if("rendering"===this.u){oY(this.j,"resume");LY(this,"unmuted_resume");var a,b=(null==(a=HY(this))?void 0:a.resumeCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.lf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ff(this.slot,a,new QV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.X=b,this.wp(a,b))};
g.h.Yc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.X=void 0,(a="normal"!==c||this.position+1===this.Da)&&this.Qs(a),this.AO(c),this.J(0),c){case "abandoned":if(qY(this.j,"impression")){oY(this.j,"abandon");JY(this,"unmuted_abandon");var d,e=(null==(d=HY(this))?void 0:d.abandonCommands)||[];this.B.get().Ld(e,this.layout.layoutId)}break;case "normal":oY(this.j,"complete");JY(this,"unmuted_complete");d=(null==(e=HY(this))?void 0:e.completeCommands)||[];this.B.get().Ld(d,
this.layout.layoutId);break;case "skipped":oY(this.j,"skip");var f;d=(null==(f=HY(this))?void 0:f.skipCommands)||[];this.B.get().Ld(d,this.layout.layoutId)}};
g.h.Sw=function(){return this.layout.layoutId};
g.h.dF=function(){return this.Ha};
g.h.Wi=function(a){if("not_rendering"!==this.u){this.xa||(a=new g.vF(a.state,new g.mH),this.xa=!0);var b=2===this.Ga.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&FY(a)&&this.va():b?g.xF(a,2)?this.fK():(FY(a)?this.J(1):g.xF(a,4)&&!g.xF(a,2)&&this.IM(),0>wF(a,4)&&!(0>wF(a,2))&&this.JM()):this.IA()}};
g.h.Ix=function(){if("rendering"===this.u){oY(this.j,"active_view_measurable");var a,b=(null==(a=HY(this))?void 0:a.activeViewMeasurableCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.Hx=function(){if("rendering"===this.u){oY(this.j,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=HY(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.Jx=function(){if("rendering"===this.u){oY(this.j,"active_view_viewable");var a,b=(null==(a=HY(this))?void 0:a.activeViewViewableCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.Fx=function(){if("rendering"===this.u){oY(this.j,"audio_audible");var a,b=(null==(a=HY(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.Gx=function(){if("rendering"===this.u){oY(this.j,"audio_measurable");var a,b=(null==(a=HY(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}};
g.h.Qs=function(a){this.xd.get().Qs(X(this.layout.Ea,"metadata_type_ad_placement_config").kind,a,this.position,this.Da,!1)};
g.h.onFullscreenToggled=function(a){if("rendering"===this.u)if(a){this.j.Lf("fullscreen");LY(this,"unmuted_fullscreen");var b,c=(null==(b=HY(this))?void 0:b.fullscreenCommands)||[];this.B.get().Ld(c,this.layout.layoutId)}else this.j.Lf("end_fullscreen"),LY(this,"unmuted_end_fullscreen"),b=(null==(c=HY(this))?void 0:c.endFullscreenCommands)||[],this.B.get().Ld(b,this.layout.layoutId)};
g.h.onVolumeChange=function(){if("rendering"===this.u)if(this.Ga.get().isMuted()){oY(this.j,"mute");JY(this,"unmuted_mute");var a,b=(null==(a=HY(this))?void 0:a.muteCommands)||[];this.B.get().Ld(b,this.layout.layoutId)}else oY(this.j,"unmute"),JY(this,"unmuted_unmute"),a=(null==(b=HY(this))?void 0:b.unmuteCommands)||[],this.B.get().Ld(a,this.layout.layoutId)};
g.h.pg=function(){};
g.h.Si=function(){};
g.h.Wj=function(){};g.v(NY,IY);g.h=NY.prototype;g.h.Lo=function(){};
g.h.jp=function(){var a=this.Sa.get();a.rC===this&&(a.rC=null);hX(this.Pa.get())?this.D.stop():this.timer.stop()};
g.h.vp=function(){this.Pa.get().I.V().N("enable_post_ad_perception_survey_in_desktop")&&iPa(this.Ga.get());this.Sa.get().rC=this;TG();this.va()};
g.h.zO=function(){DPa(this)};
g.h.fK=function(){};
g.h.er=function(){hX(this.Pa.get())?this.D.stop():this.timer.stop();IY.prototype.IM.call(this)};
g.h.zr=function(){DPa(this);IY.prototype.JM.call(this)};
g.h.ym=function(){return X(this.Kb().Ea,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.h.wp=function(){hX(this.Pa.get())?this.D.stop():this.timer.stop()};
g.h.Qb=function(){var a=Date.now(),b=a-this.Z;this.Z=a;this.C+=b;this.C>=this.ym()?(this.C=this.ym(),KY(this,this.C/1E3,!0),MY(this,this.C),this.K()):(KY(this,this.C/1E3),MY(this,this.C))};
g.h.AO=function(){};
g.h.Wh=function(){};g.v(OY,IY);g.h=OY.prototype;g.h.Lo=function(){X(this.Kb().Ea,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=X(this.Kb().Ea,"metadata_type_shrunken_player_bytes_config")};
g.h.jp=function(){X(this.Kb().Ea,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.Z.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()};
g.h.vp=function(a){var b=X(a.Ea,"metadata_type_ad_video_id"),c=X(a.Ea,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Qa.get().I.V().Z.add(b,{nw:c});(b=X(a.Ea,"metadata_type_sodar_extension_data"))&&lPa(this.Ra.get(),b);jPa(this.Ga.get(),!1);b=this.Yd.get();a=X(a.Ea,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.D.start();this.Yd.get().I.playVideo(2)};
g.h.zO=function(){this.D.stop();this.C="adcompletioncuerange:"+this.Kb().layoutId;this.Z.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=qw(this.ra.get(),2))?void 0:a.clientPlaybackNonce)||"")||T("Media layout confirmed started, but ad CPN not set.");this.Qc.get().La("onAdStart",this.adCpn)};
g.h.fK=function(){this.K()};
g.h.ym=function(){var a;return null==(a=qw(this.ra.get(),2))?void 0:a.playbackDurationMs};
g.h.dC=function(){this.j.Lf("clickthrough")};
g.h.wp=function(){this.D.stop();jPa(this.Ga.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ga.get().Fu(!1)};
g.h.onCueRangeEnter=function(a){a!==this.C?T("Received CueRangeEnter signal for unknown layout.",this.Gd(),this.Kb(),{cueRangeId:a}):(this.Z.get().removeCueRange(this.C),this.C=void 0,a=X(this.Kb().Ea,"metadata_type_video_length_seconds"),KY(this,a,!0),oY(this.j,"complete"))};
g.h.AO=function(a){"abandoned"!==a&&this.Qc.get().La("onAdComplete");this.Qc.get().La("onAdEnd",this.adCpn)};
g.h.onCueRangeExit=function(){};
g.h.Wh=function(a){"rendering"===this.u&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ga.get().Fu(!0),KY(this,a))};g.v(PY,AY);g.h=PY.prototype;g.h.Gd=function(){return this.j.Gd()};
g.h.Kb=function(){return this.j.Kb()};
g.h.Lo=function(){this.j.init()};
g.h.jp=function(){this.j.release()};
g.h.er=function(){this.j.er()};
g.h.zr=function(){this.j.zr()};
g.h.Rx=function(a,b){T("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Gd(),this.Kb(),{requestingSlot:a,requestingLayout:b})};
g.h.vp=function(a){this.j.startRendering(a)};
g.h.wp=function(a,b){this.j.lf(a,b)};
g.h.Mc=function(a,b){this.j.Mc(a,b)};
g.h.Yc=function(a,b,c){AY.prototype.Yc.call(this,a,b,c);this.j.Yc(a,b,c);b.layoutId===this.Kb().layoutId&&this.xd.get().Hu()};
g.h.MN=function(){this.j.IA()};
g.h.Wh=function(a){this.j.Wh(a)};
g.h.LO=function(a){this.j.Wi(a)};
g.h.Ff=function(a,b,c){this.j.Dx(a,b,c)};
g.h.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.h.pg=function(a){this.j.pg(a)};
g.h.Si=function(a){this.j.Si(a)};
g.h.onVolumeChange=function(){this.j.onVolumeChange()};QY.prototype.ye=function(a,b,c,d){if(a=GPa(a,b,c,d,this.Ee,this.J,this.Sa,this.D,this.S,this.Yd,this.K,this.Ga,this.B,this.xd,this.Qc,this.j,this.u,this.C,this.Pa))return a;throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(RY,g.G);g.h=RY.prototype;g.h.BO=function(a){if(this.j)HPa(this,this.j,a);else{var b;null==(b=this.B)||b.get().bp(a.identifier)}};
g.h.tO=function(){};
g.h.wh=function(a){this.j&&this.j.contentCpn!==a&&(T("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.h.Yj=function(a){this.j&&this.j.contentCpn!==a&&T("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
g.h.qa=function(){g.G.prototype.qa.call(this);this.j=null};g.v(SY,g.G);g.h=SY.prototype;g.h.Mc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&IF(b,this.S)){var d=qw(this.C.get(),2),e=this.J(b,d);e?pw(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[OOa(c.u.get(),e.contentCpn,e.Mu,function(k){return c.K(k.slotId,"core",e,yV(c.j.get(),k))},e.ZM)];
e.instreamAdPlayerUnderlayRenderer&&XOa(c.Pa.get())&&f.push(IPa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):T("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.sf=function(){};
g.h.Xi=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Yh=function(){};
g.h.Yc=function(){};var QZ=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.h=MPa.prototype;g.h.init=function(){};
g.h.Gd=function(){return this.slot};
g.h.gA=function(){this.callback.sf(this.slot)};
g.h.hA=function(){this.callback.tf(this.slot)};
g.h.release=function(){};UY.prototype.ye=function(a,b){return new MPa(a,b)};g.h=NPa.prototype;g.h.init=function(){};
g.h.Gd=function(){return this.slot};
g.h.gA=function(){vX(this.Ga.get(),"ad-showing");this.callback.sf(this.slot)};
g.h.hA=function(){this.callback.tf(this.slot);wX(this.Ga.get(),"ad-showing")};
g.h.release=function(){};g.h=OPa.prototype;g.h.init=function(){};
g.h.Gd=function(){return this.slot};
g.h.gA=function(){vX(this.Ga.get(),"ad-showing");vX(this.Ga.get(),"ad-interrupting");this.u=this.Ga.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.sf(this.slot)};
g.h.hA=function(){wX(this.Ga.get(),"ad-showing");wX(this.Ga.get(),"ad-interrupting");var a=this.u?Infinity:this.Ga.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ga.get().I.seekTo(a,void 0,void 0,1);this.callback.tf(this.slot)};
g.h.release=function(){};g.h=PPa.prototype;g.h.init=function(){};
g.h.Gd=function(){return this.slot};
g.h.gA=function(){vX(this.Ga.get(),"ad-showing");vX(this.Ga.get(),"ad-interrupting");this.callback.sf(this.slot)};
g.h.hA=function(){this.Ga.get().lq();wX(this.Ga.get(),"ad-showing");wX(this.Ga.get(),"ad-interrupting");this.callback.tf(this.slot)};
g.h.release=function(){this.Ga.get().lq()};VY.prototype.ye=function(a,b){if(tw(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new NPa(a,b,this.Ga);if(b.Pb instanceof HW&&tw(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new OPa(a,b,this.Ga);if(tw(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new PPa(a,b,this.Ga);throw new ZV("Unsupported slot with type "+b.slotType+" and client metadata: "+(tV(b.Ea)+" in PlayerBytesSlotAdapterFactory."));};g.v(XY,g.G);XY.prototype.j=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof rW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Pe===a&&b.push(d)}b.length?XV(this.CD(),b):T("Mute requested but no registered triggers can be activated.")};g.v(YY,XY);g.h=YY.prototype;g.h.Af=function(a,b){if(b)if("survey-submit"===a)QPa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof rW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Pe===b&&a.push(d)}a.length&&XV(this.CD(),a)}else"survey-single-select-answer-button"===a&&QPa(this,b)};
g.h.EF=function(a){XY.prototype.j.call(this,a)};
g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new ZV("Tried to register duplicate trigger for slot.");if(!(b instanceof sW||b instanceof rW))throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
g.h.pj=function(a){this.Mb.delete(a.triggerId)};
g.h.CF=function(){};
g.h.BF=function(){};
g.h.JA=function(){};g.v(ZY,g.G);g.h=ZY.prototype;
g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new ZV("Tried to register duplicate trigger for slot.");if(!(b instanceof TW||b instanceof UW||b instanceof VW||b instanceof WW||b instanceof XW||b instanceof LW||b instanceof QW||b instanceof qW||b instanceof zW||b instanceof KW||b instanceof PW))throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new WY(a,b,c,d);this.Mb.set(b.triggerId,a);b instanceof XW&&this.D.has(b.Vg)&&
XV(this.j(),[a]);b instanceof TW&&this.B.has(b.Vg)&&XV(this.j(),[a]);b instanceof QW&&this.u.has(b.Pe)&&XV(this.j(),[a])};
g.h.pj=function(a){this.Mb.delete(a.triggerId)};
g.h.Ah=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof XW&&a.slotId===d.trigger.Vg&&b.push(d);0<b.length&&XV(this.j(),b)};
g.h.Yi=function(a){this.D.delete(a.slotId);a=[];for(var b=g.r(this.Mb.values()),c=b.next();!c.done;c=b.next());0<a.length&&XV(this.j(),a)};
g.h.Xi=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof LW&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&XV(this.j(),b)};
g.h.sf=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof TW&&a.slotId===d.trigger.Vg&&b.push(d);0<b.length&&XV(this.j(),b)};
g.h.tf=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof UW)a.slotId===d.trigger.Vg&&b.push(d);else if(d.trigger instanceof PW){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.Pe)&&b.push(d)}0<b.length&&XV(this.j(),b)};
g.h.bk=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof VW&&a.slotId===d.trigger.Vg&&b.push(d);0<b.length&&XV(this.j(),b)};
g.h.dk=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof WW&&a.slotId===d.trigger.Vg&&b.push(d);0<b.length&&XV(this.j(),b)};
g.h.Ui=function(a,b){this.J.add(b.layoutId)};
g.h.Vi=function(a,b){this.J.delete(b.layoutId)};
g.h.Mc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof QW)b.layoutId===e.trigger.Pe&&c.push(e);else if(e.trigger instanceof KW){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof PW&&(f=e.trigger,b.layoutId===f.Pe&&this.C.has(f.slotId)&&c.push(e));0<c.length&&XV(this.j(),c)};
g.h.Yc=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Mb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof qW&&b.layoutId===e.trigger.Pe&&a.push(e),e.trigger instanceof zW){var f=e.trigger;b.layoutId===f.Pe&&c===f.j&&a.push(e)}0<a.length&&XV(this.j(),a)};
g.h.Yh=function(){};
g.h.wh=function(){this.C.clear()};
g.h.Yj=function(){};g.v($Y,g.G);$Y.prototype.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new ZV("Tried to register duplicate trigger for slot.");if(!(b instanceof uw||b instanceof uW))throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
$Y.prototype.pj=function(a){this.Mb.delete(a.triggerId)};
$Y.prototype.wh=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],k=g.r(this.Mb.values()),l=k.next();!l.done;l=k.next())l=l.value,l.trigger instanceof uw&&l.trigger.zp===a&&f.push(l);e.call(d,b,g.u(f));b.push.apply(b,g.u(RPa(this.Mb,a,!1,c)));b.length&&XV(this.j(),b)};
$Y.prototype.Yj=function(a){var b=[];b.push.apply(b,g.u(RPa(this.Mb,a,!0,!1)));b.length&&XV(this.j(),b)};g.v(aZ,g.G);g.h=aZ.prototype;
g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new ZV("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof HW)bZ(this,a,b,c,d,e,b.j.start,b.j.end,b.zp,b.visible);else if(b instanceof RW)bZ(this,a,b,c,d,e,b.j.start,b.j.end,b.zp,!1);else if(b instanceof OW)bZ(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.zp,b.visible);else throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.h.pj=function(a){var b=this.Mb.get(a.triggerId);b&&this.B.get().removeCueRange(b.bA);this.Mb.delete(a.triggerId)};
g.h.onCueRangeEnter=function(a){if(a=SPa(this,a))if(a=this.Mb.get(a))if(g.V(jX(this.Ga.get()),32))this.j.add(a.bA);else{var b=null==a?void 0:a.bundle.trigger;(b instanceof HW||b instanceof OW)&&XV(this.u(),[a.bundle])}};
g.h.onCueRangeExit=function(a){if(a=SPa(this,a))if(a=this.Mb.get(a))this.j.delete(a.bA),a.bundle.trigger instanceof RW&&XV(this.u(),[a.bundle])};
g.h.Wi=function(a){if(0>wF(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.Wh=function(){};
g.h.onFullscreenToggled=function(){};
g.h.pg=function(){};
g.h.Si=function(){};
g.h.onVolumeChange=function(){};
g.h.Wj=function(){};g.v(cZ,g.G);g.h=cZ.prototype;g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new ZV("Tried to register duplicate trigger for slot.");if(!(b instanceof vW||b instanceof SW))throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
g.h.pj=function(a){this.Mb.delete(a.triggerId)};
g.h.Tn=function(){};
g.h.Yk=function(){};
g.h.Mc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?T("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)};
g.h.Yc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.sf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?T("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.h.tf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?T("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Yh=function(){};
g.h.Uz=function(){null!=this.j&&EY(this,this.j)};
g.h.kA=function(a){if(null===this.u){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof SW&&d.trigger.slotId===a&&b.push(d);b.length&&XV(this.B(),b)}};g.v(dZ,g.G);g.h=dZ.prototype;g.h.Yh=function(a,b){for(var c=[],d=g.r(this.Mb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&XV(this.j(),c)};
g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new ZV("Tried to register duplicate trigger for slot.");if(!(b instanceof FOa))throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
g.h.pj=function(a){this.Mb.delete(a.triggerId)};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.sf=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Mc=function(){};
g.h.Yc=function(){};g.v(eZ,g.G);eZ.prototype.qa=function(){this.u.get().removeListener(this);g.G.prototype.qa.call(this)};g.v(fZ,g.G);fZ.prototype.qa=function(){this.D.get().removeListener(this);g.G.prototype.qa.call(this)};gZ.prototype.fetch=function(a){var b=a.OL;return this.Sp.fetch(a.MQ,{uw:void 0===a.uw?void 0:a.uw,Ed:b}).then(function(c){return TPa(c,b)})};g.v(hZ,g.G);g.h=hZ.prototype;g.h.addListener=function(a){this.listeners.push(a)};
g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.h.onAdUxClicked=function(a,b){iZ(this,function(c){c.Af(a,b)})};
g.h.FG=function(a){iZ(this,function(b){b.CF(a)})};
g.h.EG=function(a){iZ(this,function(b){b.BF(a)})};
g.h.BW=function(a){iZ(this,function(b){b.JA(a)})};g.v(jZ,g.G);g.h=jZ.prototype;g.h.wh=function(){this.B=new cH(this,WOa(this.Pa.get()));this.u=new dH;var a=this.I.getVideoData(1),b;if((null==(b=this.j)?void 0:b.clientPlaybackNonce)!==a.clientPlaybackNonce){null!=this.j&&this.j.unsubscribe("cuepointupdated",this.vB,this);a.subscribe("cuepointupdated",this.vB,this);this.j=a;this.zC.length=0;var c;a=(null==(c=a.j)?void 0:gta(c,0))||[];this.vB(a)}};
g.h.Yj=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.aH=function(a){this.zC.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.BO(a)};
g.h.uO=function(a){g.nc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.tO(a)};
g.h.vB=function(a){var b=this.I.getVideoData(1).isDaiEnabled();if(b||!g.SC(this.I.V())){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,pX(this.Sa.get(),{cuepointTrigger:{event:VPa(c.event),cuepointId:c.identifier,totalCueDurationMs:1E3*c.durationSecs,playheadTimeMs:c.j,cueStartTimeMs:1E3*c.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:this.I.getVideoData(1).clientPlaybackNonce}}),b?this.B.reduce(c):0!==this.I.getCurrentTime(1)&&"start"===c.event&&this.aH(c)}};
g.h.qa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.vB,this),this.j=null);this.listeners.length=0;this.zC.length=0;g.G.prototype.qa.call(this)};mZ.prototype.addListener=function(a){this.listeners.push(a)};
mZ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.h=XPa.prototype;g.h.Gd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){this.Ga.get().addListener(this)};
g.h.release=function(){this.Ga.get().removeListener(this)};
g.h.startRendering=function(a){this.callback.Mc(this.slot,a)};
g.h.lf=function(a,b){this.callback.Yc(this.slot,a,b)};
g.h.Wj=function(a){switch(a.id){case "part2viewed":oY(this.j,"start");break;case "videoplaytime25":oY(this.j,"first_quartile");break;case "videoplaytime50":oY(this.j,"midpoint");break;case "videoplaytime75":oY(this.j,"third_quartile");break;case "videoplaytime100":oY(this.j,"complete");break;case "engagedview":oY(this.j,"progress");break;default:T("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.h.onVolumeChange=function(){};
g.h.Si=function(){};
g.h.pg=function(){};
g.h.onFullscreenToggled=function(){};
g.h.Wi=function(){};
g.h.Wh=function(){};YPa.prototype.ye=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.r(mY()),f=e.next();!f.done;f=e.next())b.push(f.value);if(iY(d,{Xd:b,Ue:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new XPa(a,c,d,this.Ga,this.Sa);throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.h=nZ.prototype;g.h.Gd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){this.D.get().addListener(this);this.Ga.get().addListener(this);this.Lo();var a=X(this.layout.Ea,"metadata_type_layout_enter_ms"),b=X(this.layout.Ea,"metadata_type_layout_exit_ms"),c,d=null==(c=this.B.get().jq)?void 0:c.clientPlaybackNonce;c=this.layout.Ac.adClientDataEntry;pX(this.Sa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.D.get();e=eH(e.u,a,b);null!==e&&(pX(this.Sa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",
adClientData:c}}),this.K.get().eq(e,b))};
g.h.release=function(){this.jp();this.D.get().removeListener(this);this.Ga.get().removeListener(this)};
g.h.startRendering=function(){this.vp();this.callback.Mc(this.slot,this.layout)};
g.h.lf=function(a,b){this.wp(b);null!==this.driftRecoveryMs&&(oZ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(ZPa(this)-X(this.layout.Ea,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ga.get().I.qo()).toString()}),this.driftRecoveryMs=null);this.callback.Yc(this.slot,this.layout,b)};
g.h.BO=function(){};
g.h.tO=function(a){var b=X(this.layout.Ea,"metadata_type_layout_enter_ms"),c=X(this.layout.Ea,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;pX(this.Sa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.B.get().jq)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Ac.adClientDataEntry}});this.K.get().eq(a,c)}};
g.h.Wh=function(a){this.iO(a);a=this.Ga.get().getCurrentTimeSec(2,!0);if(DOa(this.S.get(),this.layout.layoutId)){var b=X(this.layout.Ea,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=ZPa(this),e=this.Ga.get().I.qo(),f=Math.min(a+e,d/1E3);f<=a?oZ(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(oZ(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ga.get().I.seekTo(f,void 0,void 0,1))}}};
g.h.pg=function(){};
g.h.Si=function(){};
g.h.onVolumeChange=function(){};
g.h.Wj=function(){};g.v(pZ,nZ);g.h=pZ.prototype;g.h.Lo=function(){this.B.get().addListener(this);this.J.forEach(function(a){a.init()});
null!=this.C&&this.Sa.get().Uh("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.C)};
g.h.jp=function(){this.B.get().removeListener(this);this.u=null;this.J.forEach(function(a){a.release()})};
g.h.vp=function(){if(this.u)T("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.C)});else{var a,b=null==(a=this.B.get().jq)?void 0:a.layoutId;aQa(this,b)}};
g.h.wp=function(a){var b,c,d,e;null==(d=this.u)||null==(e=d.Fi)||e.lf(null==(b=this.u)?void 0:null==(c=b.Fi)?void 0:c.Kb(),a);this.u=null};
g.h.HO=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Sa.get().Uh("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.C+";slrs."+!!this.u+";slrslid."+(null==(c=this.u)?void 0:null==(d=c.Fi)?void 0:d.Kb().layoutId))}var e;if(this.u&&(null==(e=this.u.Fi)?void 0:e.Kb().layoutId)!==a){var f,k;null==(k=this.u.Fi)||k.lf(null==(f=this.u.Fi)?void 0:f.Kb(),"normal");aQa(this,a)}};
g.h.iO=function(){};
g.h.Wi=function(){};
g.h.onFullscreenToggled=function(){};g.h=lQa.prototype;g.h.Gd=function(){return this.slot};
g.h.Kb=function(){return this.layout};
g.h.init=function(){var a=this;X(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;this.xc=bQa(this.slot,this.layout,X(this.layout.Ea,"metadata_type_player_vars"),X(this.layout.Ea,"metadata_type_layout_enter_ms"),X(this.layout.Ea,"metadata_type_layout_exit_ms"),1E3*X(this.layout.Ea,"metadata_type_video_length_seconds"),this.D.get(),this.K.get(),function(){var d=Object,e=d.assign,f=tZ(a.layout);var k=X(a.slot.Ea,"metadata_type_fulfilled_layout");k=Object.assign({},tZ(k),{adPlacementConfig:X(k.Ea,
"metadata_type_ad_placement_config"),subLayouts:X(k.Ea,"metadata_type_sub_layouts").map(tZ)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:k,hasSurveyOverlay:rw(a.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:X(a.layout.Ea,"metadata_type_survey_overlay")})},this.Sa.get());
this.Ga.get().addListener(this);var b=X(this.layout.Ea,"metadata_type_video_length_seconds"),c=X(this.layout.Ea,"metadata_type_active_view_traffic_type");YOa(this.Pa.get())||kX(this.B.get(),this.layout.layoutId,c,b,this);UV(this.callback,this.slot,this.layout);VV(this.callback,this.slot,this.layout)};
g.h.release=function(){this.Ga.get().removeListener(this);YOa(this.Pa.get())||lX(this.B.get(),this.layout.layoutId);this.Pa.get().I.V().N("html5_unschedule_dai_media_sublayout_killswitch")||$G(this.callback,this.slot,this.layout)};
g.h.startRendering=function(){var a=this;rw(this.layout.Ea,"metadata_type_survey_overlay")&&this.Sa.get().Uh("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)T("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:rw(this.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:X(this.layout.Ea,"metadata_type_survey_overlay")});else{this.u={Sj:null,yy:!1};this.Pa.get().I.V().experiments.kb("html5_disable_sodar_for_tvhtml5")||cQa(this.slot,this.layout,
this.J.get());oY(this.j,"start");if(gX(this.Pa.get())){var b=jX(this.Ga.get()),c=X(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);dQa(this.j,this.u.Sj,b,c,d,function(){return void nQa(a,"teois")})}WV(this.callback,this.slot,this.layout);
rw(this.layout.Ea,"metadata_type_survey_overlay")&&this.Sa.get().Uh("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.h.lf=function(a,b){var c=this;if(this.u){if(gX(this.Pa.get()))if(null===this.xc)T("Unexpected media sub layout exited without a timeline playback ID");else{a=X(this.layout.Ea,"metadata_type_video_length_seconds");var d=uX(this.Ga.get(),this.xc);this.j.B=d;rZ(this.j,null,this.u.Sj,a,d,function(e){return void mQa(c,e,"fue")})}this.u=null;
LF(this.callback,this.slot,this.layout,b)}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.Dx=function(){};
g.h.IA=function(){};
g.h.Wh=function(a){var b=this;if(this.u){if(qY(this.j,"impression")){var c=jX(this.Ga.get()),d=X(this.layout.Ea,"metadata_type_video_length_seconds");sZ(this.j,c,a,this.u.Sj,d,function(e){return void mQa(b,e,"tpaqe")})}this.u.Sj=a}};
g.h.Wi=function(a){var b=this;if(this.u){gX(this.Pa.get())||this.u.yy||(this.u.yy=!0,a=new g.vF(a.state,new g.mH));var c=X(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);qZ(this.j,this.u.Sj,a,c,d,!gX(this.Pa.get()),function(){return void nQa(b,"teosc")})}};
g.h.onFullscreenToggled=function(a){eQa(this.j,a)};
g.h.pg=function(){};
g.h.Si=function(){};
g.h.Rx=function(){};
g.h.onVolumeChange=function(){};
g.h.Mc=function(){};
g.h.Yc=function(){};
g.h.er=function(){};
g.h.zr=function(){};
g.h.dC=function(){fQa(this.j)};
g.h.Ix=function(){gQa(this.j)};
g.h.Hx=function(){hQa(this.j)};
g.h.Jx=function(){iQa(this.j)};
g.h.Fx=function(){jQa(this.j)};
g.h.Gx=function(){kQa(this.j)};
g.h.Wj=function(){};g.v(uZ,nZ);g.h=uZ.prototype;
g.h.Lo=function(){var a=this;X(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;var b=X(this.layout.Ea,"metadata_type_layout_enter_ms"),c=X(this.layout.Ea,"metadata_type_layout_exit_ms");this.xc=bQa(this.slot,this.layout,X(this.layout.Ea,"metadata_type_player_vars"),b,c,1E3*X(this.layout.Ea,"metadata_type_video_length_seconds"),this.K.get(),this.X.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:X(a.layout.Ea,"metadata_type_ad_placement_config")}},
this.Sa.get());
var d=X(this.layout.Ea,"metadata_type_video_length_seconds"),e=X(this.layout.Ea,"metadata_type_active_view_traffic_type");kX(this.C.get(),this.layout.layoutId,e,d,this)};
g.h.jp=function(){lX(this.C.get(),this.layout.layoutId)};
g.h.vp=function(){var a=this;if(this.u)T("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={Sj:null,yy:!1},cQa(this.slot,this.layout,this.J.get()),oY(this.j,"start"),gX(this.Pa.get())){var b=jX(this.Ga.get()),c=X(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);dQa(this.j,this.u.Sj,b,c,d,function(){return void oQa(a,"teois")})}};
g.h.wp=function(){var a=this;if(this.u){if(gX(this.Pa.get()))if(null===this.xc)T("Unexpected single media layout exited without a timeline playback ID");else{var b=X(this.layout.Ea,"metadata_type_video_length_seconds"),c=uX(this.Ga.get(),this.xc);this.j.B=c;rZ(this.j,null,this.u.Sj,b,c,function(d){return void pQa(a,d,"fue")})}this.u=null}else T("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.h.iO=function(a){var b=this;if(this.u){if(qY(this.j,"impression")){var c=jX(this.Ga.get()),d=X(this.layout.Ea,"metadata_type_video_length_seconds");sZ(this.j,c,a,this.u.Sj,d,function(e){return void pQa(b,e,"tpaqe")})}this.u.Sj=a}};
g.h.Wi=function(a){var b=this;if(this.u){gX(this.Pa.get())||this.u.yy||(this.u.yy=!0,a=new g.vF(a.state,new g.mH));var c=X(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ga.get().getCurrentTimeSec(2,!1);qZ(this.j,this.u.Sj,a,c,d,!gX(this.Pa.get()),function(){return void oQa(b,"teosc")})}};
g.h.onFullscreenToggled=function(a){eQa(this.j,a)};
g.h.dC=function(){fQa(this.j)};
g.h.Ix=function(){gQa(this.j)};
g.h.Hx=function(){hQa(this.j)};
g.h.Jx=function(){iQa(this.j)};
g.h.Fx=function(){jQa(this.j)};
g.h.Gx=function(){kQa(this.j)};vZ.prototype.ye=function(a,b,c,d){if(rw(c.Ea,"metadata_type_dai")){var e=X(d.Ea,"metadata_type_ad_placement_config");iY(d,{Xd:"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(" "),Ue:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new lY(d.qc,this.Sa,e,d.layoutId,null),e=new uZ(a,c,d,this.j,this.B,this.K,this.D,this.Ga,e,this.Sa,this.C,this.J,this.u,this.Pa)):e=null;
if(e)return e;a:{var f=X(d.Ea,"metadata_type_sub_layouts"),k=X(d.Ea,"metadata_type_ad_placement_config");if(iY(d,{Xd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Ue:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==k){e=[];f=g.r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=X(l.Ea,"metadata_type_media_sub_layout_index");if(!iY(l,{Xd:"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(" "),
Ue:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new lY(l.qc,this.Sa,k,l.layoutId,m);e.push(new lQa(b,c,l,this.B,m,this.Ga,this.K,this.u,this.C,this.Pa,this.Sa,this.j))}b=new lY(d.qc,this.Sa,k,d.layoutId);a=new pZ(a,c,d,this.j,this.B,this.D,this.Ga,b,this.Sa,this.J,e)}else a=null}if(a)return a}else if(a=GPa(a,b,c,d,this.Ee,this.ra,this.Sa,this.u,this.C,this.Yd,this.j,this.Ga,this.Z,this.xd,this.Qc,this.S,this.X,this.ma,this.Pa))return a;throw new QV("Unsupported layout with type: "+d.layoutType+
" and client metadata: "+tV(d.Ea)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(wZ,g.G);wZ.prototype.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new ZV("Tried to register duplicate trigger for slot.");if(!(b instanceof CW))throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d))};
wZ.prototype.pj=function(a){this.Mb.delete(a.triggerId)};g.v(yZ,g.G);
yZ.prototype.dj=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new ZV("Tried to re-register the trigger.");a=new WY(a,b,c,d);if(a.trigger instanceof KOa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof tW)this.B.set(a.trigger.triggerId,a);else throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&XV(this.C(),[a])};
yZ.prototype.pj=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
yZ.prototype.HO=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.u(qQa(this.B,this.j)));null!=a&&b.push.apply(b,g.u(qQa(this.u,a)));this.j=a;b.length&&XV(this.C(),b)}};g.h=zZ.prototype;g.h.Ns=function(a,b,c,d,e,f){return this.I.Ns(a,b,c,d,e,f)};
g.h.eq=function(a,b){this.I.eq(a,b)};
g.h.Pu=function(a,b,c){this.I.Pu(a,b,c)};
g.h.bp=function(a){this.I.bp(a)};
g.h.ix=function(a,b,c,d,e,f){this.I.ix(a,b,c,d,e,f)};g.v(rQa,LE);g.v(AZ,sY);g.h=AZ.prototype;g.h.Af=function(a,b){uY("image-companion",a,this.J.get().ji,this.Sa.get(),this.B,this.C,this.Gd(),this.Kb(),b)};
g.h.startRendering=function(a){tY(this.D,this.Gd(),this.Kb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new rQa(b,c,d,e,f)},this.j);
sY.prototype.startRendering.call(this,a)};
g.h.Mc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Sa.get().jh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Yc=function(){};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.sf=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Yh=function(){};
g.h.qa=function(){this.Ee().Wd.delete(this);sY.prototype.qa.call(this)};g.v(tQa,LE);g.v(BZ,sY);g.h=BZ.prototype;g.h.Af=function(a,b){uY("shopping-companion",a,this.J.get().ji,this.Sa.get(),this.B,this.C,this.Gd(),this.Kb(),b)};
g.h.startRendering=function(a){tY(this.D,this.Gd(),this.Kb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new tQa(b,c,d,e,f)},this.j);
sY.prototype.startRendering.call(this,a)};
g.h.Mc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Sa.get().jh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Yc=function(){};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.sf=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Yh=function(){};
g.h.qa=function(){this.Ee().Wd.delete(this);sY.prototype.qa.call(this)};g.v(vQa,LE);g.v(CZ,sY);g.h=CZ.prototype;g.h.Af=function(a,b){uY("ads-engagement-panel",a,this.J.get().ji,this.Sa.get(),this.B,this.C,this.Gd(),this.Kb(),b)};
g.h.startRendering=function(a){tY(this.D,this.Gd(),this.Kb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new vQa(b,c,d,e,f)},this.j);
sY.prototype.startRendering.call(this,a)};
g.h.Mc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Sa.get().jh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.h.Yc=function(){};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.sf=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Yh=function(){};
g.h.qa=function(){this.Ee().Wd.delete(this);sY.prototype.qa.call(this)};xQa.prototype.ye=function(a,b,c,d){if(iY(d,wQa()))return new CZ(a,c,d,this.j,this.Sa,this.Ee,this.B,this.u);if(iY(d,vPa()))return new vY(a,c,d,this.j,this.Sa,this.Ee,this.B,this.u);if(iY(d,sQa()))return new AZ(a,c,d,this.j,this.Sa,this.Ee,this.B,this.u);if(iY(d,uQa()))return new BZ(a,c,d,this.j,this.Sa,this.Ee,this.B,this.u);throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(DZ,LE);g.v(EZ,sY);EZ.prototype.init=function(){sY.prototype.init.call(this);var a=X(this.layout.Ea,"metadata_type_player_underlay_renderer");this.j.push(new DZ(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.Ac}))};
EZ.prototype.Af=function(){};
EZ.prototype.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a)};
EZ.prototype.qa=function(){sY.prototype.qa.call(this)};yQa.prototype.ye=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r(mY()),f=e.next();!f.done;f=e.next())b.push(f.value);if(iY(d,{Xd:b,Ue:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new EZ(a,c,d,this.j);throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.v(FZ,sY);FZ.prototype.startRendering=function(a){var b=nY(this.B),c={adsClientData:this.layout.Ac};this.j.push(new WG(X(this.layout.Ea,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Kb().layoutId,c,!0,!0));sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a)};
FZ.prototype.Af=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Rx(this.slot,this.layout):T("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
FZ.prototype.qa=function(){sY.prototype.qa.call(this)};var HZ=new g.Dh(320,63);g.v(KZ,LE);g.v(LZ,sY);g.h=LZ.prototype;g.h.Wh=function(){};
g.h.Wi=function(){};
g.h.onFullscreenToggled=function(){};
g.h.pg=function(a){a&&xZ(this.B,this.layout)};
g.h.Si=function(a){var b=JZ(this.layout);if(this.J=IZ(a,hPa(this.Ga.get())))b.onErrorCommand&&this.K.get().executeCommand(b.onErrorCommand,this.layout.layoutId),xZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Sw=function(){return this.Kb().layoutId};
g.h.dF=function(){return this.J};
g.h.Af=function(a){this.C.Af(a);"in_video_overlay_close_button"===a&&xZ(this.B,this.layout)};
g.h.JA=function(a){"invideo-overlay"===a&&xZ(this.B,this.layout)};
g.h.Wo=function(){this.C.Wo()};
g.h.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a);this.D.Ks=this};
g.h.lf=function(a,b){sY.prototype.lf.call(this,a,b);r_(this.D,this)};
g.h.init=function(){sY.prototype.init.call(this);qX(this.Sa.get(),this);this.Ga.get().addListener(this);this.j.push(new KZ(JZ(this.layout),nY(this.S),this.layout.layoutId,{adsClientData:this.layout.Ac}))};
g.h.release=function(){sY.prototype.release.call(this);this.Ga.get().removeListener(this);rX(this.Sa.get(),this)};
g.h.Wj=function(){};g.v(MZ,sY);g.h=MZ.prototype;g.h.init=function(){sY.prototype.init.call(this);qX(this.Sa.get(),this);this.Ga.get().addListener(this);this.j.push(new KZ(JZ(this.layout),nY(this.X),this.layout.layoutId,{adsClientData:this.layout.Ac}))};
g.h.Wo=function(){this.C.Wo()};
g.h.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a);this.D.Ks=this};
g.h.lf=function(a,b){sY.prototype.lf.call(this,a,b);r_(this.D,this)};
g.h.Af=function(a){this.C.Af(a);"in_video_overlay_close_button"===a&&xZ(this.B,this.layout)};
g.h.CF=function(a){if("invideo-overlay"===a){a=DQa(this.K,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.h.JA=function(a){"invideo-overlay"===a&&xZ(this.B,this.layout)};
g.h.BF=function(a){if("invideo-overlay"===a){a=DQa(this.K,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.h.Wh=function(){};
g.h.Wi=function(){};
g.h.onFullscreenToggled=function(){};
g.h.pg=function(a){a&&xZ(this.B,this.layout)};
g.h.Si=function(a){var b=JZ(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=hPa(this.Ga.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.Ub(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Dh(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Dh(0,0)}if(this.J=IZ(a,d,c))b.onErrorCommand&&this.S.get().executeCommand(b.onErrorCommand,this.layout.layoutId),xZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Sw=function(){return this.Kb().layoutId};
g.h.dF=function(){return this.J};
g.h.release=function(){sY.prototype.release.call(this);this.Ga.get().removeListener(this);rX(this.Sa.get(),this)};
g.h.Wj=function(){};NZ.prototype.Af=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ga.get().Im(1))||this.Ga.get().pauseVideo())};
NZ.prototype.Wo=function(){this.j||this.Ga.get().resumeVideo(1)};g.v(OZ,sY);g.h=OZ.prototype;g.h.init=function(){sY.prototype.init.call(this);this.Ga.get().addListener(this)};
g.h.startRendering=function(a){var b=X(this.layout.Ea,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new RG(b,this.layout.layoutId,{adsClientData:this.layout.Ac},!0,!0));sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a)};
g.h.Mc=function(){};
g.h.Af=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.er(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.zr(this.slot,this.layout):T("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.h.Si=function(a){450>a.width&&xZ(this.B,this.layout)};
g.h.onVolumeChange=function(){};
g.h.Wh=function(){};
g.h.onFullscreenToggled=function(){};
g.h.pg=function(){};
g.h.Wi=function(){};
g.h.Wj=function(){};
g.h.qa=function(){sY.prototype.qa.call(this)};
g.h.release=function(){sY.prototype.release.call(this);this.Ga.get().removeListener(this)};CQa.prototype.ye=function(a,b,c,d){if(b=yY(a,c,d,this.j,this.Ga,this.Sa,this.K,this.u))return b;if(iY(d,BQa()))return new MZ(c,d,this.Sa,this.D,this.j,a,this.B,this.J,this.Ga,this.C,this.Pa,this.u,new NZ(this.Ga));if(iY(d,AQa()))return new LZ(c,d,this.Sa,this.D,this.j,a,this.B,this.Ga,this.C,this.Pa,this.u,new NZ(this.Ga));if(iY(d,{Xd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ue:["LAYOUT_TYPE_SURVEY"]}))return new OZ(c,d,a,this.j,this.B,this.Ga,this.Pa);if(iY(d,{Xd:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ue:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new FZ(c,d,a,this.j,this.Sa);throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(PZ,g.G);g.h=PZ.prototype;g.h.dj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new ZV("Tried to register duplicate trigger for slot.");if(!(b instanceof yW))throw new ZV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Mb.set(b.triggerId,new WY(a,b,c,d));a=this.j.has(b.Pe)?this.j.get(b.Pe):new Set;a.add(b);this.j.set(b.Pe,a)};
g.h.pj=function(a){this.Mb.delete(a.triggerId);if(!(a instanceof yW))throw new ZV("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.Pe))b.delete(a),0===b.size&&this.j.delete(a.Pe)};
g.h.Ah=function(){};
g.h.Yi=function(){};
g.h.Xi=function(){};
g.h.sf=function(){};
g.h.tf=function(){};
g.h.bk=function(){};
g.h.dk=function(){};
g.h.Ui=function(){};
g.h.Vi=function(){};
g.h.Yh=function(){};
g.h.Mc=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={bv:a.bv},d=b.next())a.bv=d.value,d=new g.L(function(e){return function(){var f=c.Mb.get(e.bv.triggerId);XV(c.B(),[f])}}(a),a.bv.durationMs),d.start(),this.u.set(a.bv.triggerId,d)}};
g.h.Yc=function(){};g.v(EQa,g.G);FQa.prototype.ye=function(a,b,c,d){if(b=yY(a,c,d,this.u,this.Ga,this.Sa,this.K,this.j))return b;if(iY(d,BQa()))return new MZ(c,d,this.Sa,this.D,this.u,a,this.B,this.J,this.Ga,this.C,this.Pa,this.j,new NZ(this.Ga));if(iY(d,AQa()))return new LZ(c,d,this.Sa,this.D,this.u,a,this.B,this.Ga,this.C,this.Pa,this.j,new NZ(this.Ga));throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(GQa,g.G);g.v(HQa,g.G);g.v(IQa,g.G);g.v(RZ,xY);RZ.prototype.startRendering=function(a){xY.prototype.startRendering.call(this,a);X(this.layout.Ea,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ea,"metadata_type_ad_info_ad_metadata"),this.K.get().I.La("onAdMetadataAvailable",a))};KQa.prototype.ye=function(a,b,c,d){if(iY(d,JQa()))return new RZ(a,c,d,this.B,this.Ga,this.Sa,this.C,this.u,this.j);throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(LQa,g.G);MQa.prototype.ye=function(a,b,c,d){if(iY(d,JQa()))return new RZ(a,c,d,this.u,this.Ga,this.Sa,this.B,this.C,this.j);if(a=yY(a,c,d,this.u,this.Ga,this.Sa,this.B,this.j))return a;throw new QV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+tV(d.Ea)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(NQa,g.G);g.v(SZ,g.G);SZ.prototype.B=function(){return this.u};UZ.prototype.kA=function(a){this.Pk.kA(a)};
UZ.prototype.Uz=function(){try{this.Pk.Uz()}catch(a){}};
UZ.prototype.Tn=function(){this.j().Tn()};
UZ.prototype.Yk=function(){this.j().Yk()};g.v(VZ,JI);
VZ.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.La("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.La("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.La("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.La("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.La("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.La("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.La("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.La("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.La("updateEngagementPanelAction",b.addAction);this.j.La("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.La("changeEngagementPanelVisibility",b.hideAction),this.j.La("updateEngagementPanelAction",b.removeAction)}};g.v(WZ,RI);g.h=WZ.prototype;g.h.init=function(a,b,c){RI.prototype.init.call(this,a,b,c);g.Mm(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.h.clear=function(){this.hide()};
g.h.hide=function(){TI(this);RI.prototype.hide.call(this)};
g.h.show=function(){SI(this);RI.prototype.show.call(this)};
g.h.jr=function(){this.hide()};
g.h.hp=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Mm(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.v(XZ,kI);g.h=XZ.prototype;
g.h.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.S(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=
e&&0<e.length&&g.lb(g.Jh(e[0].url))&&(e[0].url=d.profilePicture);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.lb(g.Jh(e[0].url))&&(e[0].url=d.Re());e=b.headline;null!=e&&g.lb(g.Jh(e.text))&&(e.text=d.author)}this.D.init(KE("ad-image"),b.image,c);this.S.init(KE("ad-text"),b.headline,c);this.J.init(KE("ad-text"),b.description,c);this.Z.init(KE("ad-image"),b.backgroundImage,c);this.actionButton=new zI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-action-interstitial-action-button"]);
g.H(this,this.actionButton);this.actionButton.Ba(this.Ia);this.actionButton.init(KE("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.V().isMobile||(this.C.T(this.Ha,"click",this.UE,this),this.C.T(this.Da,"click",this.UE,this),this.C.T(this.xa,"click",this.UE,this));this.u=this.Rg?new fJ(this.api,a):new gJ(a);g.H(this,this.u);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.u&&(this.skipButton=new aJ(this.api,this.eb,this.layoutId,this.j,this.jb,
this.u,this.ij),g.H(this,this.skipButton),this.skipButton.Ba(this.element),this.skipButton.init(KE("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.u&&(this.B=new WI(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,!1),g.H(this,this.B),this.B.Ba(this.element),this.B.init(KE("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.u&&(c=new WZ(this.api,this.eb,this.layoutId,this.j,this.jb,this.u),
g.H(this,c),c.Ba(this.element),c.init(KE("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.S(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.S(Error("AdActionInterstitialRenderer has no button."));else g.S(Error("AdActionInterstitialRenderer has no background AdImage."));else g.S(Error("AdActionInterstitialRenderer has no description AdText."));else g.S(Error("AdActionInterstitialRenderer has no headline AdText."));
else g.S(Error("AdActionInterstitialRenderer has no image."))};
g.h.clear=function(){g.hv(this.C);this.hide()};
g.h.show=function(){PQa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();kI.prototype.show.call(this)};
g.h.hide=function(){PQa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();kI.prototype.hide.call(this)};
g.h.UE=function(){this.navigationEndpoint&&LI(this.jb,this.navigationEndpoint,this.macros)};var ZZ={iconType:"CLOSE"},c_=new g.Dh(320,63);g.v(YZ,kI);g.h=YZ.prototype;
g.h.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);this.D=b;this.S=g.cc(this.D.onClickCommands||[]);this.Ha=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.J=g.$h("ytp-ad-overlay-ad-info-button-container",this.C.element),a_(this,b),a=TQa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.J=g.$h("ytp-ad-overlay-ad-info-button-container",this.B.element),
a_(this,b),a=UQa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.J=g.$h("ytp-ad-overlay-ad-info-button-container",this.u.element),a_(this,b),a=VQa(this,a.imageOverlayAdContentRenderer)):(g.S(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),WQa(this,!0))};
g.h.clear=function(){WQa(this,!1);this.Da.reset();this.Z=0;this.C.hide();this.Za(this.C.element,!1);this.B.hide();this.Za(this.B.element,!1);this.u.hide();this.Za(this.u.element,!1);this.hide();this.dispose()};
g.h.UY=function(){this.Ra&&LI(this.jb,this.Ra,this.macros);this.api.pauseVideo()};
g.h.Ti=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.r(a);for(var b=a.next();!b.done;b=a.next())LI(this.jb,b.value,this.macros);this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.h.tW=function(){this.Ia||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.h.ZG=function(){this.Ia||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.ZG("invideo-overlay")};
g.h.uW=function(a){a.target===this.J&&g.$h("ytp-ad-button",this.Wa.element).click()};g.v(d_,RI);g.h=d_.prototype;g.h.init=function(a,b,c){RI.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(KE("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(){XQa(this,!1);RI.prototype.hide.call(this);this.B.hide();this.messageText.hide();TI(this)};
g.h.show=function(){XQa(this,!0);RI.prototype.show.call(this);SI(this);this.B.show();this.messageText.show()};
g.h.jr=function(){this.hide()};
g.h.hp=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.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&&(QI(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.v(e_,kI);g.h=e_.prototype;
g.h.init=function(a,b,c){kI.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.C.init(KE("ad-image"),b.image,c),this.u.init(KE("ad-text"),b.headline,c),this.D.init(KE("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 zI(this.api,this.eb,this.layoutId,this.j,this.jb,a),g.H(this,
this.actionButton),this.actionButton.Ba(this.J),this.actionButton.init(KE("button"),b.actionButton.buttonRenderer,c),b=g.cB(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().N("place_shrunken_video_on_left_of_player")?(c=this.B,g.Fp(c,"ytp-ad-underlay-left-container"),g.M(c,"ytp-ad-underlay-right-container"),g.Mm(this.B,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.B,g.Fp(c,"ytp-ad-underlay-right-container"),g.M(c,"ytp-ad-underlay-left-container")),g.Mm(this.B,"width",
Math.round(100*(1-b-.04))+"%"),this.api.XA()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.gK.bind(this)),this.api.addEventListener("resize",this.OM.bind(this))):g.S(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.h.show=function(){YQa(!0);this.actionButton&&this.actionButton.show();kI.prototype.show.call(this)};
g.h.hide=function(){YQa(!1);this.actionButton&&this.actionButton.hide();kI.prototype.hide.call(this)};
g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.gK.bind(this));this.api.removeEventListener("resize",this.OM.bind(this));this.hide()};
g.h.onClick=function(a){kI.prototype.onClick.call(this,a);this.actionButton&&g.ki(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.h.gK=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.OM=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.Mm(this.u.element,"font-size",a.width/40+"px")};g.v(f_,kI);
f_.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new zI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ba(this.answer),a.init(KE("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.u=new HI(this.api,this.eb,this.layoutId,this.j,this.jb,
["ytp-ad-survey-answer-toggle-button"]),this.u.Ba(this.answer),g.H(this,this.u),this.u.init(KE("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
f_.prototype.clear=function(){this.hide()};g.v(g_,kI);g_.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new HI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ba(this.u),this.button.init(KE("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.v(h_,zI);h_.prototype.init=function(a,b,c){zI.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Pw(b.text),a=!g.lb(b));a||g.Sv(Error("No submit text was present in the renderer."))};
h_.prototype.onClick=function(a){this.ea("l");zI.prototype.onClick.call(this,a)};g.v(i_,kI);
i_.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new bJ(this.api,this.eb,this.layoutId,this.j,this.jb,this.C,this.ij),c.Ba(this.J),c.init(KE("skip-button"),a,this.macros),g.H(this,c),this.u=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new WI(this.api,this.eb,this.layoutId,this.j,this.jb,this.C,!1),c.Ba(this.J),c.init(KE("ad-preview"),a,this.macros),XI(c),g.H(this,c),this.u=c);null==this.u&&g.S(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new h_(this.api,this.eb,this.layoutId,this.j,this.jb),c.Ba(this.submitButton),c.init(KE("survey-submit"),a,this.macros),g.H(this,c),this.B=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new dJ(this.api,this.eb,this.layoutId,this.j,this.jb,!0),c.Ba(this.D),c.init(KE("simple-ad-badge"),a,this.macros),g.H(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new jJ(this.api,this.eb,this.layoutId,this.j,this.jb,
this.C,void 0),c.Ba(this.D),c.init(KE("ad-duration-remaining"),a,this.macros),g.H(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new OI(this.api,this.eb,this.layoutId,this.j,this.jb,this.element),g.H(this,a),a.Ba(this.D),a.init(KE("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
i_.prototype.clear=function(){this.hide()};g.v(j_,kI);j_.prototype.init=function(a,b,c){kI.prototype.init.call(this,a,b,c);bRa(this)};
j_.prototype.show=function(){this.C=g.Ua();kI.prototype.show.call(this)};
j_.prototype.yP=function(){};g.v(k_,j_);g.h=k_.prototype;g.h.init=function(a,b,c){var d=this;j_.prototype.init.call(this,a,b,c);b.questionText&&g.li(this.questionText,g.Pw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&ZQa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.J=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&cRa(this,a,c);b.surveyAdQuestionCommon&&aRa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.h.yP=function(){l_(this,!1);this.D.B.subscribe("l",this.SY,this)};
g.h.onChange=function(a){a.target===this.noneOfTheAbove.button.u?dRa(this):this.J.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),l_(this,!0))};
g.h.SY=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.$f(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=xj(e.baseUrl,a));return e});
return d});
if(b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())LI(this.jb,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.v(m_,j_);m_.prototype.init=function(a,b,c){var d=this;j_.prototype.init.call(this,a,b,c);b.questionText&&g.li(this.questionText,g.Pw(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&ZQa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?aRa(this,b.surveyAdQuestionCommon):g.S(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
m_.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(n_,kI);
n_.prototype.init=function(a,b,c){var d=this;kI.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new m_(d.api,d.eb,d.layoutId,d.j,d.jb,d.Rg,d.ij);f.Ba(d.u);f.init(KE("survey-question-single-select"),e,c);d.questions.push(f);g.H(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new k_(d.api,d.eb,d.layoutId,d.j,d.jb,
d.Rg,d.ij),f.Ba(d.u),f.init(KE("survey-question-multi-select"),e,c),d.questions.push(f),g.H(d,f))});
this.show()};
n_.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(o_,kI);
o_.prototype.init=function(a,b,c){var d=this;kI.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.S(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){fRa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
fRa(this.logoImage,b.brandImage);g.li(this.text,g.Pw(b.text));this.actionButton=new zI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-survey-interstitial-action-button"]);g.H(this,this.actionButton);this.actionButton.Ba(this.B);this.actionButton.init(KE("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.u=this.Rg?new fJ(this.api,1E3*a):new gJ(1E3*a,void 0);this.u.subscribe("g",function(){d.transition.hide();if(!d.Rg){for(var k=g.r(e),l=k.next();!l.done;l=
k.next())LI(d.jb,l.value,c);LI(d.jb,{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.bI)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())LI(d.jb,m.value,d.macros)});
this.transition.show(100);if(!this.Rg&&b.impressionCommands){a=g.r(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())LI(this.jb,f.value,c)}}else g.S(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.S(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.S(Error("SurveyTextInterstitialRenderer has no button."));else g.S(Error("SurveyTextInterstitialRenderer has no text."));else g.S(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
o_.prototype.clear=function(){this.hide()};
o_.prototype.show=function(){gRa(!0);kI.prototype.show.call(this)};
o_.prototype.hide=function(){gRa(!1);kI.prototype.hide.call(this)};var KTa="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.v(p_,JI);
p_.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!KTa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.api,f=this.jb,k=c.layoutId,l=c.j,m=c instanceof CF||c instanceof RG||c instanceof WG?c.Rg:!1,n=c instanceof CF||c instanceof eJ||c instanceof RG?c.ij:!1,p=c instanceof WG?c.bI:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;p=void 0===p?!1:p;switch(d){case "invideo-overlay":a=new YZ(e,a,k,l,f);break;case "player-overlay":a=new qJ(e,a,k,l,f,new eM(e),n);
break;case "survey":a=new n_(e,a,k,l,f,m,n);break;case "ad-action-interstitial":a=new XZ(e,a,k,l,f,m,n);break;case "survey-interstitial":a=new o_(e,a,k,l,f,m,p);break;case "ad-message":a=new d_(e,a,k,l,f,new eM(e,1));break;case "player-underlay":a=new e_(e,a,k,l,f);break;default:a=null}if(!a){g.Sv(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Of(this.u,b)?g.Sv(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof DZ?this.B?this.B.append(a.JH):
g.S(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.JH);break;case 2:b=hRa(this,a);if(null==b)break;b.bind(c);break;case 3:c=hRa(this,a),null!=c&&(g.qf(c),g.Of(this.u,b)?g.Wf(this.u,b):g.Sv(Error("Ad UI component does not exist: "+b)))}};
p_.prototype.qa=function(){g.rf(Object.values(this.u));this.u={};JI.prototype.qa.call(this)};g.v(q_,g.lL);g.h=q_.prototype;g.h.create=function(){try{iRa(this),this.load(),this.created=!0,iRa(this)}catch(a){T(a instanceof Error?a:String(a))}};
g.h.load=function(){g.lL.prototype.load.call(this);var a=TZ(this.j).Dg;jqa(a.I.V().N("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){T(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.Cf()||!1;a=lRa(f,a,e,k,TZ(this.j).Oj);f=c&&c.clientPlaybackNonce||"";c=c&&c.cq||!1;k=1E3*this.player.getDuration(1);this.eb=new aI(this,this.player,this.Sp,b,TZ(this.j));jza(this.eb,a.lw);this.j.j.Xo.wh(f,k,c,a.JB,a.JB.concat(a.lw),e,d);bI(this.eb)};
g.h.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Xo.Yj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.h.unload=function(){g.lL.prototype.unload.call(this);jqa(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){T(b instanceof Error?b:String(b))}if(null!==this.eb){var a=this.eb;this.eb=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Sp.reset()};
g.h.gi=function(){return!1};
g.h.cI=function(){return null===this.eb?!1:this.eb.cI()};
g.h.zl=function(a){null!==this.eb&&this.eb.zl(a)};
g.h.getAdState=function(){return this.eb?this.eb.PA:-1};
g.h.getOptions=function(){return Object.values(JTa)};
g.h.wf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=cF(this.player),Object.assign(b,a.Xga),this.eb&&!b.AD_CPN&&(b.AD_CPN=this.eb.Jw()),a=g.pp(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Wo(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}};
g.h.Wo=function(a){a.isMuted&&Zya(this.eb,TZ(this.j).qh,TZ(this.j).Ri,a.layoutId);this.Ks&&this.Ks.Wo()};
g.h.executeCommand=function(a){TZ(this.j).jb.executeCommand(a.command,a.layoutId)};
g.h.Pj=function(){return null===this.eb?!1:this.eb.Pj()};g.kL("ad",q_);var nRa=g.Ic&&mRa();g.v(g.u_,g.W);g.u_.prototype.onClick=function(){this.I.La("onExpandMiniplayer")};})(_yt_player);

}

/*
     FILE ARCHIVED ON 23:33:57 Apr 06, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:29:18 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.694
  load_resource: 193.506
  PetaboxLoader3.resolve: 55.945
  PetaboxLoader3.datanode: 64.22
*/