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;/*


 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.
*/
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa,baa,caa,fa,daa,eaa,ha,ia,ma,na,oa,iaa,jaa,ua,wa,kaa,laa,maa,za,Aa,Ba,Da,Ia,Ja,oaa,paa,Ua,Va,Xa,qaa,Ya,raa,vaa,waa,xaa,bb,yaa,db,fb,jb,nb,wb,xb,zb,Ab,Cb,Db,Gaa,Eb,Hb,Gb,Haa,Iaa,Jaa,Ib,Jb,Kaa,Kb,Lb,Mb,Laa,Maa,Naa,Pb,Paa,Qaa,gc,Raa,nc,Saa,Taa,jc,Uaa,Vaa,Waa,tc,vc,Xaa,Yaa,eba,Dc,dba,aba,Fc,Gc,hba,Ic,Jc,Lc,Kc,Pc,Qc,Uc,Vc,Wc,Zc,$c,ad,jba,bd,cd,dd,ed,kba,fd,lba,mba,nba,oba,ld,pba,qba,rba,nd,pd,rd,tba,wd,vba,zd,Ad,xd,Bd,Gd,sba,Jd,xba,Kd,H,Ld,Nd,Pd,yba,Qd,Rd,Sd,Td,Ud,zba,Bba,Aba,Cba,Wd,
Id,Dba,Eba,Fba,Gba,Yd,Hba,Zd,Jba,Iba,de,Mba,Oba,me,Pba,Qba,ne,se,Sba,Uba,te,Vba,ze,Wba,Xba,Be,Yba,Zba,$ba,cca,dca,fca,gca,hca,ica,jca,aca,bca,lca,mca,nca,oca,Le,pca,qca,rca,sca,Fe,eca,kca,vca,wca,Re,xca,yca,Se,Te,zca,Ue,Ve,Ye,Bca,Aca,Cca,Dca,ef,ff,Gca,gf,kf,Hca,Ica,nf,rf,Jca,Mca,Bf,Df,Nca,Oca,Ef,Tca,Jf,Qca,Sca,Hf,Gf,Nf,Of,Uca,Pf,Vca,Rf,Yf,Wca,$f,ag,bg,dg,$ca,eg,bda,eda,gg,gda,kda,ig,lg,mg,mda,nda,lda,sda,tda,tg,uda,wda,xda,vg,yda,yg,zg,Cda,Cg,Dg,Fg,Ig,Kg,Og,Pg,Dda,Eda,Fda,Gda,Sg,Ida,Xg,Kda,Mda,Lda,
Zg,ah,Nda,$g,Oda,Rg,jh,Qda,mh,kh,Qg,oh,Rda,ph,rh,Sda,Uda,Wda,xh,yh,zh,$da,Bh,aea,Ah,eea,vh,Yda,gea,dea,bea,cea,hea,fea,Ch,Fh,jea,kea,lea,mea,nea,oea,pea,rea,vea,xea,yea,Aea,zea,Bea,Qh,Rh,Sh,Dea,Eea,Th,Vh,Gea,Zh,Hea,Kea,$h,ai,Lea,bi,ci,Nea,Oea,gi,Pea,Qea,hi,ii,Rea,ki,ui,Sea,wi,xi,Vea,Wea,Yea,Zea,afa,$ea,bfa,zi,cfa,Ci,Gi,Hi,Ii,hfa,Ji,kfa,mfa,nfa,Li,pfa,qfa,rfa,tfa,sfa,ufa,ofa,Ki,wfa,Mi,xfa,Ni,Oi,yfa,Pi,Qi,Ri,Si,Ti,zfa,Afa,Bfa,Cfa,Dfa,Ui,Efa,Ffa,Vi,Xi,Gfa,Hfa,Yi,Kfa,Lfa,Nfa,Zi,$i,Pfa,aj,Qfa,cj,Rfa,Tfa,
Sfa,Ufa,Vfa,Wfa,dj,ej,fj,Xfa,Yfa,$fa,aga,kj,lj,mj,nj,cga,oj,pj,qj,rj,sj,iga,ega,vj,hga,wj,gga,uj,tj,yj,jga,Aj,zj,kga,lga,Gj,Hj,Jj,oga,Ij,Mj,pga,Nj,mga,sga,tga,uga,Qj,Rj,Sj,vga,Tj,Uj,Yj,Zj,wga,ak,bk,ck,xga,yga,dk,zga,jj,Cga,Dga,Ega,Fga,Aga,ek,gk,Gga,fk,Iga,Kga,hk,ik,kk,lk,mk,nk,ok,pk,jk,qk,Jga,Lga,Mga,Nga,Oga,Pga,Qga,Rga,Sga,rk,sk,tk,uk,vk,wk,xk,Tga,yk,zk,Ak,Uga,Wga,Xga,Ck,Ek,Dk,Gk,Hk,Ik,Zga,$ga,Jk,Kk,Lk,bha,cha,fha,dha,gha,kha,Mk,jha,hha,Nk,Ok,lha,Pk,mha,Qk,oha,nha,pha,qha,Tk,Uk,rha,sha,tha,Vk,Wk,
uha,Xk,vha,wha,xha,Bha,Yk,Cha,Dha,Eha,Fha,Gha,bl,Hha,Iha,Jha,ol,nl,ml,Kha,Lha,Mha,pl,ql,rl,Oha,yl,zl,Al,Bl,Cl,Dl,Qha,Rha,Sha,El,Gl,Hl,Ll,Ml,Pl,Uha,Wha,Vha,Xha,Yha,Vl,Zha,$ha,Wl,aia,bia,cia,dia,$l,Yl,am,bm,cm,eia,fia,gia,dm,em,fm,hia,iia,jia,gm,kia,hm,im,lia,mia,nia,oia,pia,qia,ria,km,lm,mm,om,uia,pm,qm,via,tia,nm,wia,rm,sm,tm,vm,um,xia,yia,zia,wm,Bia,xm,Dia,Eia,Fia,Gia,Hia,Iia,Jia,Kia,Am,Bm,Cm,Mia,Lia,Gm,Nia,Hm,Oia,Im,Pia,Qia,Jm,Km,Lm,Ria,Mm,Nm,Om,Pm,Qm,Rm,Sm,Vm,Wm,Sia,Tia,Uia,Via,Xm,Wia,Yia,Xia,
Zm,$m,$ia,Zia,eja,dja,an,fja,gja,hja,jja,ija,kja,bn,lja,mja,dn,nja,oja,pja,qja,en,rja,fn,sja,gn,hn,uja,jn,vja,kn,ln,wja,xja,mn,on,zja,pn,yja,Aja,Bja,Dja,Fja,qn,Gja,tn,un,Ija,Jja,Mja,Nja,vn,Oja,wn,xn,yn,zn,An,Bn,Cn,Dn,En,Fn,Gn,Hn,In,Sja,Rja,Tja,Vja,Uja,Xja,Qja,Wja,Pja,Jn,Kn,Zja,$ja,aka,On,Pn,Qn,Ln,cka,Rn,Yja,eka,fka,gka,dka,Sn,Tn,Un,Vn,hka,bka,ika,Wn,jka,kka,lka,mka,nka,qka,Yn,rka,Zn,ska,vka,bo,yka,xka,ao,eo,zka,Aka,Bka,lo,Cka,Dka,mo,Eka,zo,uo,vo,wo,Fka,Co,Bo,Gka,Eo,Hka,Jka,Fo,Kka,Lka,Qka,Mka,Io,Jo,
Vka,Ko,Wka,Lo,Mo,Yka,Po,Zka,$ka,Qo,bla,So,To,Uo,dla,Wo,Xo,Yo,Zo,ap,bp,fla,gla,cp,hla,ila,dp,jla,kla,fp,gp,ola,ip,jp,kp,lp,mp,np,op,pp,qp,rp,sp,tp,up,vp,wp,xp,yp,zp,Ap,Bp,Cp,Dp,Ep,Fp,Gp,Hp,Ip,Jp,Kp,Lp,Mp,Np,Op,Pp,Qp,Rp,Sp,Tp,Up,Vp,Wp,Xp,Yp,Zp,$p,aq,bq,cq,dq,eq,fq,gq,hq,iq,jq,kq,lq,mq,nq,oq,pq,qq,zla,sq,tq,uq,vq,xq,yq,zq,Aq,Bq,Cq,Dq,Eq,Fq,Gq,Hq,Iq,Jq,Kq,Lq,Mq,Nq,Oq,Pq,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Yq,Zq,$q,ar,br,cr,dr,er,fr,gr,hr,ir,jr,kr,lr,mr,nr,or,pr,qr,rr,sr,tr,ur,vr,wr,xr,yr,zr,Ar,Br,Cr,Dr,Er,Fr,Gr,
Hr,Ir,Jr,Kr,Lr,Mr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,et,ft,gt,ht,jt,kt,lt,mt,nt,ot,pt,qt,rt,tt,ut,vt,wt,xt,zt,At,Bt,Ct,Dt,Et,cma,Ft,dma,Jt,fma,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,Tt,St,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,bu,cu,du,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,pma,qma,tu,vu,yu,rma,zu,sma,Cu,Du,Eu,Fu,Gu,Hu,Ju,Ku,wma,Lu,Mu,Nu,tma,Ou,zma,Cma,Pu,
Ema,Gma,Uu,Hma,Ima,Jma,Nma,Lma,Mma,Vu,Yu,Xu,Oma,$u,av,bv,Pma,Qma,iv,Rma,kv,lv,Sma,mv,nv,ov,qv,tv,uv,hv,vv,Uma,wv,xv,yv,zv,Av,Bv,Cv,Dv,Wma,Ev,Hv,Gv,Yma,ana,Zma,$ma,bna,cna,dna,Kv,Ov,Pv,Qv,ena,fna,hna,jna,Rv,kna,Uv,Sv,Xv,aw,cw,lna,jw,kw,lw,mw,ow,pw,rw,qna,rna,uw,sna,tna,ww,una,vna,xw,yw,wna,zw,xna,Cw,zna,Ana,Aw,Bna,Cna,Ena,Dna,Gw,yna,Gna,Hna,Ina,Jw,Jna,Kna,Lw,Lna,Mw,Mna,Nna,Pw,Ona,Pna,Qna,Rna,Tw,Sna,Tna,Una,Vna,Wna,Xna,Yna,Zna,Vw,$na,boa,coa,doa,Xw,eoa,foa,goa,noa,hoa,ioa,joa,koa,loa,roa,moa,ax,soa,
bx,voa,uoa,toa,cx,$w,woa,dx,ex,gx,yoa,kx,jx,fx,zoa,mx,Boa,Coa,Doa,Eoa,Foa,Goa,Hoa,Aoa,Joa,Koa,Loa,Moa,Noa,px,qx,sx,Poa,tx,Qoa,Roa,wx,xx,Toa,Soa,Uoa,Woa,Bx,Cx,Yoa,Zoa,bpa,Hx,Ix,Jx,cpa,Yx,Zx,by,ay,$x,dy,fpa,epa,ly,my,hpa,oy,ipa,jpa,qy,kpa,sy,ry,lpa,ty,mpa,npa,yy,ppa,qpa,vy,Gy,opa,Hy,Iy,upa,Oy,tpa,ypa,zpa,spa,xpa,wpa,uy,Py,Fy,My,vpa,Ry,Sy,Dpa,Vy,Fpa,Yy,Zy,az,Hpa,Ipa,Jpa,Kpa,Lpa,Mpa,Npa,bz,cz,R,Ppa,uqa,Wpa,vqa,Xpa,dz,xqa,zqa,Bqa,Aqa,yqa,Zpa,cqa,dqa,fqa,gqa,Kqa,iqa,lqa,qqa,Rqa,Oqa,Pqa,Tqa,Vqa,Uqa,Wqa,
Xqa,jz,ara,era,fra,gra,mra,ora,sra,tra,Kra,Lra,Mra,ura,wra,xz,Pra,uz,Tra,yz,Zra,$ra,dsa,Gsa,Fsa,Dz,Msa,Osa,Psa,Nsa,Ez,Hz,Iz,Rsa,Gz,Jz,Kz,Oz,Rz,Sz,Pz,Tsa,Tz,Uz,Usa,Vsa,Wsa,Wz,Xsa,Zsa,Xz,$sa,Yz,Zz,fw,gta,ita,cA,kta,fA,hA,iA,mta,nta,ota,lA,qta,mA,uta,vta,wta,xta,nA,yta,sA,tA,uA,vA,wA,zta,Cta,Fta,Dta,GA,FA,Gta,EA,HA,IA,Jta,Lta,LA,MA,OA,Mta,Ota,NA,Qta,PA,QA,RA,SA,TA,UA,VA,Rta,WA,XA,YA,ZA,Wta,Yta,$ta,aua,aB,cua,dua,gB,hB,eua,fua,iB,lB,gua,hua,mB,iua,jua,kua,lua,qB,pB,rB,sB,tB,uB,vB,nB,wB,xB,yB,mua,pua,
qua,rua,zB,AB,BB,sua,CB,yua,DB,EB,GB,HB,LB,KB,XB,JB,Bua,YB,ZB,$B,IB,Dua,Eua,Fua,Cua,Gua,bC,dC,gC,iC,Iua,jC,kC,pxa,Sxa,wxa,rC,nC,uxa,oxa,Jua,qC,oC,mC,Uxa,Vxa,Wxa,AC,BC,Xxa,CC,DC,zC,aya,Yxa,Zxa,bya,EC,cya,GC,dya,HC,IC,JC,KC,eya,fya,LC,gya,MC,hya,NC,OC,QC,UC,iya,VC,WC,XC,YC,ZC,$C,aD,jya,bD,dD,lya,mya,cD,eD,pya,qya,fD,rya,iD,sya,jD,lD,tya,kD,mD,uya,oD,wya,qD,rD,wD,yya,tD,xD,zD,zya,BD,vD,yD,Aya,CD,Bya,DD,Cya,sD,uD,xya,AD,ED,Dya,Eya,FD,Fya,GD,Gya,HD,ID,KD,Hya,JD,LD,Iya,Jya,MD,OD,ND,PD,QD,RD,Kya,SD,TD,Lya,
UD,Mya,VD,WD,XD,Nya,YD,Oya,$D,ZD,Pya,Qya,Rya,Sya,aE,bE,cE,dE,Tya,Uya,Vya,Wya,fE,Xya,gE,hE,Yya,Zya,iE,$ya,aza,eza,fza,bza,cza,dza,jE,lE,kE,wE,xE,gza,hza,yE,zE,iza,jza,kza,lza,nza,mza,BE,oza,pza,qza,rza,sza,tza,DE,EE,FE,GE,uza,HE,JE,IE,NE,wC,OE,PE,vC,uC,QE,wza,RE,SE,TE,LE,UE,xza,XE,YE,$E,yza,aF,bF,cF,dF,eF,fF,zza,gF,hF,Aza,iF,jF,lF,mF,nF,oF,Bza,Cza,qF,pF,rF,sF,Dza,Eza,tF,uF,Qxa,pC,Iza,Jza,Kza,Lza,Mza,Nza,lC,vF,yF,zF,Qza,Rza,Sza,AF,Wza,Tza,Uza,Yza,Zza,CF,Xza,$za,DF,EF,FF,aAa,bAa,GF,cAa,BF,dAa,HF,wF,
eAa,KF,fAa,gAa,hAa,MF,LF,iAa,jAa,kAa,lAa,nAa,Rxa,Pxa,NF,PF,RF,SF,TF,UF,VF,QF,ZF,pAa,aG,rAa,bG,tAa,sAa,qAa,uAa,vAa,wAa,OF,yAa,cG,Txa,dG,zAa,BAa,sC,CAa,DAa,EAa,FAa,HAa,IAa,GAa,fG,gG,mG,KAa,LAa,pG,sG,MAa,OAa,NAa,PAa,QAa,RAa,SAa,TAa,UAa,vG,VAa,WAa,XAa,wG,xG,yG,zG,YAa,ZAa,AG,$Aa,BG,CG,aBa,DG,bBa,FG,cBa,GG,HG,IG,JG,dBa,eBa,gBa,KG,hBa,fBa,LG,hH,cH,jH,mH,nH,dH,iBa,pBa,eH,gH,qH,tBa,SG,vH,RG,wH,bH,zH,AH,BH,CH,DH,EH,vBa,wBa,FH,xBa,yBa,zBa,ABa,GH,BBa,GBa,FBa,CBa,EBa,DBa,HH,HBa,IH,IBa,KBa,OBa,NH,OH,RBa,PH,QH,
SBa,UBa,XBa,YBa,ZBa,RH,$Ba,aCa,WH,YH,ZH,$H,aI,cCa,bI,cI,dCa,dI,eCa,eI,fI,gI,hI,iI,jI,fCa,gCa,kI,lI,oI,jCa,kCa,mCa,pI,nCa,wI,xCa,rCa,sCa,zCa,ACa,xI,BCa,DCa,CCa,ECa,zI,CI,FCa,yI,DI,EI,GCa,KCa,HCa,JCa,RI,XI,ZI,qDa,WCa,LI,$I,pDa,XCa,QI,rDa,bJ,UCa,tDa,sDa,II,PI,zDa,vDa,wDa,xDa,yDa,ADa,cJ,BDa,CDa,eJ,fJ,DDa,hJ,HI,NI,fDa,ICa,YCa,lDa,jDa,kJ,OI,uDa,rJ,sJ,tJ,uJ,PDa,YI,QDa,wJ,RDa,VCa,yJ,IDa,MI,SDa,NCa,KI,MCa,TBa,BJ,CJ,UDa,DJ,EJ,FJ,HJ,GJ,IJ,VDa,WDa,JJ,LJ,XDa,YDa,MJ,NJ,OJ,PJ,QJ,ZDa,RJ,$Da,SJ,TJ,UJ,VJ,WJ,XJ,aEa,
$J,bEa,aK,cK,eEa,bK,fEa,cEa,dEa,gEa,hEa,iEa,dK,eK,fK,kEa,gK,hK,mEa,mK,kK,pEa,oEa,qEa,pK,nEa,qK,lK,rK,oK,nK,jK,iK,tK,uK,wK,yK,tEa,uEa,sEa,zK,AK,BK,CK,DK,vEa,EK,FK,wEa,GK,HK,IK,zEa,xEa,MK,AEa,BEa,NK,CEa,QK,RK,DEa,IEa,SK,JEa,TK,UK,KEa,VK,LEa,MEa,NEa,OEa,PEa,WK,XK,REa,QEa,TEa,SEa,YK,ZK,WEa,XEa,YEa,ZEa,$K,$Ea,aL,aFa,bL,dL,eL,fL,gL,kL,mL,nL,bFa,cFa,oL,dFa,eFa,pL,fFa,rL,gFa,hFa,iFa,vL,wL,mFa,nFa,yL,xL,oFa,kFa,lFa,zL,qFa,BL,AL,DL,EL,GL,HL,rFa,sFa,tFa,uFa,IL,KL,yFa,BFa,vFa,LL,KFa,ML,NL,MFa,LFa,OFa,PFa,RFa,
QFa,SFa,TFa,UFa,VFa,SL,TL,WFa,XFa,YFa,ZFa,$Fa,aGa,$L,cGa,dGa,YL,ZL,bGa,gGa,hGa,aM,kGa,iGa,mGa,lGa,nGa,bM,rEa,oGa,lEa,pGa,qGa,rGa,cM,xGa,tGa,uGa,vGa,yGa,dM,BGa,zGa,CGa,DGa,AGa,wGa,EGa,qL,GGa,HGa,FGa,eM,fM,IGa,JGa,KGa,gM,iM,MGa,jM,mM,nM,NGa,OGa,PGa,oM,RGa,SGa,TGa,UGa,VGa,WGa,XGa,tM,YGa,uM,wM,ZGa,$Ga,aHa,xM,bHa,cHa,dHa,BM,CM,DM,eHa,EM,fHa,GM,hHa,gHa,HM,IM,JM,KM,iHa,LM,MM,jHa,NM,OM,nHa,kHa,mHa,lHa,oHa,QM,RM,pHa,qHa,rHa,SM,tHa,wHa,vHa,TM,UM,VM,WM,XM,ZM,$M,aN,bN,cN,dN,eN,yHa,xHa,gN,zHa,hN,iN,jN,kN,lN,oN,
pN,qN,rN,sN,tN,uN,vN,BHa,DHa,CHa,wN,FHa,GHa,JHa,KHa,BN,MHa,DN,EN,FN,OHa,HN,THa,RHa,QHa,PHa,VHa,IN,JN,KN,LN,MN,NN,ON,RN,YHa,$Ha,TN,UN,aIa,ew,cIa,bIa,VN,eIa,dIa,fIa,XN,YN,$N,hIa,iIa,jIa,gIa,nIa,mIa,uIa,wIa,xIa,yIa,hO,iO,AIa,BIa,jO,DIa,kO,EIa,FIa,mO,nO,lO,sGa,HIa,IIa,JIa,KIa,GIa,tO,LIa,KO,OIa,RIa,SIa,YO,ZO,bP,cP,dP,eP,fP,TIa,UIa,gP,iP,jP,VIa,kP,WIa,lP,mP,nP,oP,XIa,$Ia,aJa,pP,bJa,cJa,qP,dJa,eJa,fJa,gJa,hJa,rP,sP,tP,iJa,uP,jJa,kJa,vP,wP,lJa,mJa,yP,zP,pJa,nJa,qJa,rJa,sJa,tJa,uJa,xJa,wJa,yJa,KP,DJa,NP,FJa,
OP,BJa,CJa,MP,zJa,EJa,PP,QP,RP,RO,rO,TP,VP,HJa,GJa,JJa,WP,ZP,KJa,YP,LJa,MJa,NJa,eQ,fQ,gQ,kQ,PJa,QJa,lQ,mQ,RJa,SJa,TJa,UJa,nQ,WJa,VJa,XJa,oQ,pQ,YJa,$Ja,aKa,sQ,qQ,bKa,cKa,ZJa,tQ,uQ,xQ,dKa,eKa,wQ,zQ,yQ,BQ,DQ,fKa,HQ,hKa,iKa,gKa,lKa,jKa,GQ,mKa,IQ,nKa,oKa,LQ,MQ,NQ,OQ,QQ,pKa,qKa,SQ,sKa,rKa,tKa,uKa,vKa,wKa,YQ,ZQ,$Q,xKa,aR,bR,AKa,dR,cR,BKa,CKa,DKa,eR,fR,EKa,FKa,GKa,HKa,gR,jR,JKa,IKa,kR,lR,mR,KKa,nR,oR,pR,qR,LKa,tR,uR,sR,OKa,rR,vR,PKa,RKa,QKa,AR,yR,zR,SKa,TKa,UKa,BR,CR,DR,ER,FR,VKa,WKa,XKa,IR,JR,YKa,LR,MR,
OR,ZKa,PR,QR,RR,SR,$Ka,cLa,TR,aLa,bLa,gLa,hLa,VR,iLa,jLa,kLa,lLa,YR,$R,aS,nLa,bS,pLa,oLa,mLa,cS,rLa,qLa,sLa,dS,eS,fS,gS,tLa,hS,uLa,kS,vLa,nS,yLa,lS,wLa,DLa,qS,ELa,GLa,vS,HLa,ILa,sS,pS,zS,yS,rS,AS,LLa,BS,uS,oS,KLa,xS,FLa,JLa,MLa,wS,iS,DS,NLa,OLa,tS,ES,FS,GS,HS,IS,JS,KS,LS,MS,NS,OS,QLa,RS,SS,TS,US,VS,WS,SLa,XS,RLa,YS,ZS,$S,aT,cT,bT,dT,eT,TLa,fT,ULa,WLa,VLa,gT,hT,XLa,iT,jT,YLa,kT,ZLa,lT,$La,mT,oT,rT,qT,uT,tT,aMa,sT,wT,cMa,dMa,xT,yT,zT,eMa,BT,fMa,EQ,bMa,jMa,WQ,gMa,DT,iMa,XQ,hMa,kMa,mMa,lMa,nMa,oMa,pMa,
HT,qMa,JT,rMa,sMa,KT,tMa,LT,vMa,MT,uMa,OT,xMa,wMa,NT,PT,QT,RT,yMa,zMa,AMa,BMa,UT,GMa,JMa,HMa,DMa,WT,CMa,IMa,$T,LMa,KMa,aU,NMa,PMa,QMa,OMa,fU,RMa,SMa,TMa,YMa,mU,ZMa,nU,pU,qU,rU,$Ma,gU,sU,uU,aNa,cNa,vU,dNa,wU,xU,eNa,yU,WMa,kU,fNa,gNa,hNa,iNa,jNa,hU,VMa,lU,iU,zU,oNa,BU,pNa,qNa,mNa,DU,rNa,EU,kNa,GU,nNa,sNa,FU,CU,tNa,HU,uNa,AU,wNa,KU,IU,LU,JU,yNa,xNa,NU,ANa,OU,PU,BNa,QU,RU,SU,TU,CNa,UU,WU,ENa,FNa,GNa,ZU,YU,XU,HNa,INa,JNa,KNa,bV,cV,dV,eV,LNa,gV,MNa,fV,hV,iV,NNa,PNa,TNa,QNa,RNa,SNa,UNa,VNa,oV,pV,XNa,WNa,
YNa,ZNa,qV,rV,sV,$Na,eOa,gOa,xV,yV,zV,AV,dOa,hOa,tV,aOa,iOa,uV,vV,bOa,cOa,wV,jOa,kOa,fOa,lOa,mOa,nOa,oOa,qCa,wCa,CV,DV,rOa,pOa,qOa,EV,sOa,FV,GV,HV,IV,tOa,uOa,vOa,JV,xOa,yOa,LV,zOa,MV,NV,AOa,BOa,COa,QV,GOa,TV,PV,IOa,EOa,FOa,DOa,UV,SV,RV,HOa,NOa,LOa,KOa,JOa,WV,OOa,XV,POa,YV,ZV,QOa,jV,cW,dW,eW,fW,gW,SOa,hW,nV,TOa,lV,mV,WOa,kW,lW,XOa,oW,jW,YOa,iW,UOa,VOa,pW,ZOa,$Oa,nW,kV,mW,aPa,bPa,cPa,dPa,ePa,fPa,qW,jPa,rW,vW,kPa,tW,sW,mPa,wW,uW,nPa,hPa,yW,lPa,iPa,xW,oPa,zW,pPa,rPa,qPa,tPa,sPa,uPa,AW,BW,vPa,DW,wPa,CW,
xPa,zPa,APa,yPa,CPa,BPa,FPa,DPa,EPa,HPa,GPa,IPa,JPa,KPa,FW,LPa,MPa,NPa,GW,OPa,HW,PPa,QPa,LW,KW,NW,TPa,MW,OW,UPa,WPa,ZPa,dQa,aQa,cQa,hQa,QW,iQa,jQa,RW,SW,$V,kQa,ROa,UW,lQa,VW,aW,bW,mQa,nQa,oQa,pQa,WW,TW,qQa,XW,YW,wQa,xQa,vQa,yQa,ZW,AQa,zQa,BQa,CQa,DQa,EQa,HQa,GQa,FQa,$W,IQa,KQa,bX,cX,dX,fX,LQa,gX,MQa,RPa,SPa,jX,eX,NQa,OQa,QQa,MOa,kX,lX,PQa,OV,IW,RQa,SQa,TQa,UQa,JQa,VQa,mX,oX,pX,WQa,XQa,YQa,ZQa,$Qa,aRa,bRa,dRa,cRa,fRa,rX,jRa,gRa,iRa,kRa,sX,oRa,mRa,nRa,qRa,tX,rRa,uX,qX,sRa,lRa,tRa,vX,uRa,hRa,vRa,wX,
xRa,yRa,xX,wRa,yX,zX,zRa,AX,BX,BRa,ERa,DRa,CRa,DX,FRa,CX,GRa,FX,HX,HRa,IRa,JRa,KRa,MRa,LRa,NRa,ORa,PRa,IX,RRa,JX,SRa,QRa,TRa,VRa,XRa,YRa,URa,ZRa,$Ra,bSa,aSa,cSa,WRa,KX,LX,dSa,MX,NX,OX,RX,TX,SX,iSa,UX,jSa,lSa,kSa,XX,VX,gSa,oSa,mSa,nSa,pSa,ZX,rSa,qSa,sSa,$X,aY,tSa,bY,wSa,cY,xSa,dY,zSa,fY,iY,hY,eY,ASa,kY,jY,ySa,lY,BSa,gY,CSa,mY,DSa,hSa,YX,FSa,GSa,HSa,ISa,JSa,KSa,LSa,NSa,OSa,PSa,MSa,QSa,RSa,oY,SSa,TSa,pY,qY,USa,VSa,WSa,sY,YSa,uY,ZSa,$Sa,tY,rY,XSa,xY,wY,aTa,yY,vY,bTa,AY,fTa,EY,gTa,dTa,CY,hTa,eTa,iTa,FY,
GY,zY,kTa,jTa,DY,lTa,BY,HY,cTa,IY,JY,tQa,uQa,mTa,nTa,LY,uTa,tTa,QY,vTa,sTa,yTa,zTa,ATa,BTa,CTa,DTa,ETa,KY,FTa,GTa,RY,ITa,JTa,PTa,MTa,QTa,NTa,LTa,RTa,KTa,UTa,SY,VTa,XTa,WY,ZTa,cUa,$Ta,sK,YY,dUa,UMa,fUa,ZY,GX,gUa,iUa,eUa,dU,aUa,jUa,kUa,hX,iX,eZ,HTa,bUa,cZ,TY,nUa,oUa,qUa,pUa,hUa,aZ,sUa,fZ,tUa,XT,uUa,EX,MMa,vUa,tU,$Y,wUa,yUa,xUa,FMa,zUa,BUa,mUa,YTa,DUa,CUa,bZ,UY,EUa,hZ,ZT,FUa,GUa,oU,HUa,IUa,JUa,KUa,EMa,gZ,rUa,LUa,ZUa,TUa,SUa,aVa,bVa,RUa,kZ,eU,eVa,cVa,gVa,nZ,oZ,hVa,iVa,jVa,YUa,tZ,lVa,sZ,jZ,nVa,oVa,UUa,
wZ,pVa,XUa,qZ,kVa,pZ,vVa,mZ,wVa,yZ,mVa,zZ,AZ,xVa,rZ,fVa,rVa,qVa,yVa,zVa,AVa,BVa,pO,CVa,uZ,DVa,FVa,lZ,BZ,GVa,dVa,HVa,IVa,WUa,xZ,vZ,JVa,VUa,KVa,CZ,DZ,DNa,LVa,EZ,KA,FZ,GZ,NVa,PVa,QVa,HZ,RVa,JZ,SVa,TVa,KZ,IZ,UVa,LZ,MZ,NZ,VVa,OZ,PZ,QZ,WVa,SZ,TZ,UZ,YVa,XVa,VZ,ZVa,$Va,WZ,XZ,aWa,bWa,cWa,YZ,ZZ,$Z,a_,b_,c_,d_,e_,dWa,f_,g_,h_,eWa,fWa,gWa,hWa,iWa,jWa,i_,j_,kWa,lWa,k_,l_,m_,mWa,n_,o_,nWa,p_,q_,r_,s_,t_,oWa,pWa,u_,v_,qWa,rWa,w_,x_,y_,sWa,tWa,z_,uWa,vWa,A_,wWa,xWa,yWa,FEa,GEa,HEa,yEa,zWa,DWa,EWa,FWa,PK,I_,JK,AWa,
J_,IWa,JWa,KWa,LWa,BWa,NWa,B_,OWa,PWa,K_,F_,QWa,L_,D_,RWa,C_,MWa,M_,TWa,G_,H_,O_,N_,UWa,P_,WWa,VWa,XWa,Y,Q_,PM,R_,S_,YWa,ZWa,$Wa,bXa,cXa,gXa,T_,hXa,dXa,iXa,U_,kXa,lXa,jXa,nXa,oXa,rXa,uXa,sXa,yXa,HXa,GXa,zXa,IXa,BXa,CXa,AXa,LXa,NXa,SXa,VXa,WXa,YXa,ZXa,aYa,dYa,cYa,hYa,eYa,e0,iYa,lYa,kYa,rYa,nYa,mYa,uYa,yYa,zYa,AYa,BYa,h0,Kta,EYa,CYa,j0,JA,l0,m0,Hta,n0,GYa,HYa,f0,c0,Y_,DXa,IYa,JYa,b0,a0,KYa,xXa,LYa,o0,MYa,Z_,$_,RXa,NYa,OYa,p0,PYa,q0,QYa,i0,QXa,PXa,qXa,TXa,XXa,$Xa,vYa,jYa,JXa,EXa,RYa,r0,s0,SYa,t0,TYa,
u0,v0,w0,x0,y0,z0,A0,aXa,VYa,UYa,pXa,UXa,WYa,xYa,XYa,YYa,bYa,OXa,wXa,tXa,fXa,eXa,KXa,FXa,oYa,fYa,gYa,pYa,qYa,MXa,aZa,ZYa,B0,$Ya,C0,OK,E_,GWa,k0,cZa,D0,E0,F0,G0,eZa,dZa,fZa,H0,I0,bZa,RZ,J0,gZa,DYa,CWa,hZa,iZa,jZa,kZa,sYa,tYa,K0,lZa,mZa,M0,N0,oZa,P0,pZa,qZa,nZa,O0,rZa,sZa,tZa,Q0,wZa,vZa,R0,xZa,yZa,L0,zZa,AZa,BZa,S0,T0,CZa,U0,V0,DZa,EZa,FZa,GZa,HZa,IZa,JZa,KZa,LZa,MZa,W0,X0,NZa,Y0,Z0,$0,a1,b1,c1,d1,e1,PZa,f1,OZa,QZa,RZa,g1,SZa,TZa,h1,i1,j1,UZa,VZa,WZa,k1,XZa,l1,YZa,m1,ZZa,n1,$Za,o1,a_a,c_a,p1,f_a,b_a,
d_a,e_a,h_a,q1,i_a,j_a,k_a,s1,r1,u1,t1,v1,l_a,m_a,o_a,n_a,w1,p_a,q_a,s_a,r_a,x1,y1,FYa,t_a,z1,u_a,A1,w_a,x_a,v_a,y_a,B1,z_a,A_a,B_a,C1,D1,E1,C_a,F1,G1,H1,D_a,E_a,I1,F_a,G_a,J1,g_a,K1,L1,M1,EEa,N1,H_a,O1,I_a,P1,Q1,K_a,J_a,R1,S1,T1,L_a,M_a,N_a,U1,O_a,P_a,Q_a,S_a,R_a,T_a,U_a,W_a,V_a,X_a,Y_a,Z_a,$_a,a0a,b0a,c0a,d0a,e0a,f0a,g0a,h0a,i0a,j0a,k0a,l0a,m0a,V1,W1,X1,n0a,o0a,p0a,q0a,r0a,s0a,t0a,u0a,v0a,w0a,x0a,y0a,z0a,Y1,A0a,B0a,Z1,$1,D0a,E0a,a2,F0a,b2,G0a,c2,H0a,d2,I0a,J0a,K0a,e2,L0a,M0a,N0a,O0a,P0a,Q0a,g2,
R0a,S0a,T0a,U0a,V0a,X0a,h2,W0a,Y0a,Z0a,$0a,a1a,e1a,b1a,c1a,d1a,g1a,i1a,j1a,k1a,h1a,i2,l1a,m1a,n1a,o1a,p1a,k2,q1a,l2,m2,n2,r1a,t1a,u1a,v1a,w1a,y1a,x1a,z1a,o2,p2,C1a,A1a,B1a,q2,D1a,E1a,r2,F1a,G1a,H1a,I1a,J1a,K1a,L1a,Ita,M1a,N1a,R1a,T1a,aaa,ea,Ai,Na,naa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.ba=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
caa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
fa=function(a,b){if(b)a:{var c=g.da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ea(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
eaa=function(a){return a.raw=a};
g.t=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:baa(a)}};
ha=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.u=function(a){return a instanceof Array?a:ha(g.t(a))};
ia=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.v=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ka)ka(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.hf=b.prototype};
ma=function(){this.J=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.I=0;this.Z=this.B=null};
na=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
oa=function(a,b){a.B={KP:b,XQ:!0};a.j=a.I||a.D};
g.x=function(a,b,c){a.j=c;return{value:b}};
g.pa=function(a){a.j=0};
g.qa=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
g.ra=function(a,b){a.j=b;a.I=0};
g.sa=function(a){a.I=0;var b=a.B.KP;a.B=null;return b};
g.gaa=function(a){a.Z=[a.B];a.I=0;a.D=0};
g.haa=function(a,b){var c=a.Z.splice(0)[0];(c=a.B=a.B||c)?c.XQ?a.j=a.I||a.D:void 0!=c.Ja&&a.D<c.Ja?(a.j=c.Ja,a.B=null):a.j=a.D:a.j=b};
iaa=function(a){this.j=new ma;this.u=a};
jaa=function(a,b){na(a.j);var c=a.j.C;if(c)return ua(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return wa(a)};
ua=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.J=!1,e;var f=e.value}catch(h){return a.j.C=null,oa(a.j,h),wa(a)}a.j.C=null;d.call(a.j,f);return wa(a)};
wa=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.J=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,oa(a.j,c)}a.j.J=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.XQ)throw b.KP;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
kaa=function(a){this.next=function(b){na(a.j);a.j.C?b=ua(a,a.j.C.next,b,a.j.T):(a.j.T(b),b=wa(a));return b};
this.throw=function(b){na(a.j);a.j.C?b=ua(a,a.j.C["throw"],b,a.j.T):(oa(a.j,b),b=wa(a));return b};
this.return=function(b){return jaa(a,b)};
this[Symbol.iterator]=function(){return this}};
laa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.A=function(a){return laa(new kaa(new iaa(a)))};
g.ya=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
maa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,HU:f}}return{i:-1,HU:void 0}};
za=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};
Aa=function(a){return a?a:Array.prototype.fill};
Ba=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Da=function(a){return a?a:Array.prototype.copyWithin};
g.Ea=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.Ga=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};
Ia=function(a){a.gg=void 0;a.getInstance=function(){return a.gg?a.gg:a.gg=new a}};
Ja=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ka=function(a){var b=Ja(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Ma=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Oa=function(a){return Object.prototype.hasOwnProperty.call(a,Na)&&a[Na]||(a[Na]=++naa)};
oaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
paa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.Pa=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.Pa=oaa:g.Pa=paa;return g.Pa.apply(null,arguments)};
g.Qa=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.Sa=function(){return Date.now()};
g.Ta=function(a,b){function c(){}
c.prototype=b.prototype;a.hf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Mi=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Ua=function(a){return a};
Va=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Va);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
Xa=function(a,b){var c=Va.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(Va,this,d+a[e])};
qaa=function(){};
Ya=function(){throw Error("Invalid UTF8");};
raa=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.uaa=function(a){var b=!1;b=void 0===b?!1:b;if(saa){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(taa||(taa=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-56320+65536;d[c++]=
f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
vaa=function(a){g.C.setTimeout(function(){throw a;},0)};
waa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
xaa=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.ab=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};
bb=function(a,b){return 0==a.lastIndexOf(b,0)};
yaa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
db=function(a,b){var c=String(b).toLowerCase();a=String(a.slice(0,b.length)).toLowerCase();return 0==(c<a?-1:c==a?0:1)};
g.eb=function(a){return/^[\s\xa0]*$/.test(a)};
fb=function(a){if(!zaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Aaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Baa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Caa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Daa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Eaa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Faa,"&#0;"));return a};
g.ib=function(a,b){return-1!=a.indexOf(b)};
jb=function(a,b){return g.ib(a.toLowerCase(),b.toLowerCase())};
g.rb=function(a,b){var c=0;a=lb(String(a)).split(".");b=lb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=nb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||nb(0==f[2].length,0==h[2].length)||nb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
nb=function(a,b){return a<b?-1:a>b?1:0};
g.sb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""};
wb=function(a){return tb?ub?ub.brands.some(function(b){return(b=b.brand)&&g.ib(b,a)}):!1:!1};
xb=function(a){return g.ib(g.sb(),a)};
zb=function(){return tb?!!ub&&0<ub.brands.length:!1};
Ab=function(){return zb()?!1:xb("Opera")};
Cb=function(){return zb()?!1:xb("Trident")||xb("MSIE")};
Db=function(){return zb()?!1:xb("Edge")};
Gaa=function(){return zb()?wb("Microsoft Edge"):xb("Edg/")};
Eb=function(){return xb("Firefox")||xb("FxiOS")};
Hb=function(){return xb("Safari")&&!(Gb()||(zb()?0:xb("Coast"))||Ab()||Db()||Gaa()||(zb()?wb("Opera"):xb("OPR"))||Eb()||xb("Silk")||xb("Android"))};
Gb=function(){return zb()?wb("Chromium"):(xb("Chrome")||xb("CriOS"))&&!Db()||xb("Silk")};
Haa=function(){return xb("Android")&&!(Gb()||Eb()||Ab()||xb("Silk"))};
Iaa=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})]||""}};
Jaa=function(a){var b=g.sb();if("Internet Explorer"===a){if(Cb())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=Iaa(c);switch(a){case "Opera":if(Ab())return b(["Version","Opera"]);if(zb()?wb("Opera"):xb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Db())return b(["Edge"]);if(Gaa())return b(["Edg"]);break;case "Chromium":if(Gb())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Eb()||"Safari"===a&&Hb()||"Android Browser"===a&&Haa()||"Silk"===a&&xb("Silk")?(b=c[2])&&b[1]||"":""};
Ib=function(a){if(zb()&&"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=Jaa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Jb=function(){return tb?!!ub&&!!ub.platform:!1};
Kaa=function(){return Jb()?"Android"===ub.platform:xb("Android")};
Kb=function(){return xb("iPhone")&&!xb("iPod")&&!xb("iPad")};
Lb=function(){return Kb()||xb("iPad")||xb("iPod")};
Mb=function(){return Jb()?"macOS"===ub.platform:xb("Macintosh")};
Laa=function(){return Jb()?"Windows"===ub.platform:xb("Windows")};
Maa=function(){var a=g.sb(),b="";if(Laa())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Lb())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Mb())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(jb(g.sb(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Kaa())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(Jb()?"Chrome OS"===ub.platform:xb("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
g.Nb=function(a){return a[a.length-1]};
Naa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.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.Sb=function(a,b){return 0<=Oaa(a,b)};
g.Tb=function(a){return 0==a.length};
Paa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Wb=function(a,b){b=Oaa(a,b);var c;(c=0<=b)&&g.Vb(a,b);return c};
g.Vb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.bc=function(a,b){b=Pb(a,b);0<=b&&g.Vb(a,b)};
Qaa=function(a,b){var c=0;Naa(a,function(d,e){b.call(void 0,d,e,a)&&g.Vb(a,e)&&c++})};
g.dc=function(a){return Array.prototype.concat.apply([],arguments)};
g.ec=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.fc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ka(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.ic=function(a,b,c,d){Array.prototype.splice.apply(a,gc(arguments,1))};
gc=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
Raa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Ma(e)?"o"+g.Oa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.mc=function(a,b,c){return Saa(a,c||jc,!1,b)};
nc=function(a,b){return Saa(a,b,!0)};
Saa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.oc=function(a,b){a.sort(b||jc)};
Taa=function(a,b){var c=jc;g.oc(a,function(d,e){return c(b(d),b(e))})};
g.pc=function(a,b){if(!g.Ka(a)||!g.Ka(b)||a.length!=b.length)return!1;for(var c=a.length,d=Uaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
jc=function(a,b){return a>b?1:a<b?-1:0};
Uaa=function(a,b){return a===b};
g.qc=function(a,b,c){c=g.mc(a,b,c);0>c&&g.ic(a,-(c+1),0,b)};
g.sc=function(a,b,c){var d={};(0,g.rc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Vaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Waa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
tc=function(a){tc[" "](a);return a};
vc=function(a,b){try{return tc(a[b]),!0}catch(c){}return!1};
Xaa=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Yaa=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.zc=function(a){return Xaa(Zaa,a,function(){return 0<=g.rb(wc,a)})};
g.Ac=function(a){return Number($aa)>=a};
g.Bc=function(a,b){void 0===b&&(b=0);aba();b=bba[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
g.Cc=function(a,b){if(cba&&!b)a=g.C.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Bc(c,b)}return a};
eba=function(a){var b=[];dba(a,function(c){b.push(c)});
return b};
Dc=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ib("=.",a[b-1])&&(c=g.ib("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;dba(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
dba=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Ec[n];if(null!=p)return p;if(!g.eb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
aba();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
aba=function(){if(!Ec){Ec={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));bba[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Ec[f]&&(Ec[f]=e)}}}};
Fc=function(a){return fba&&null!=a&&a instanceof Uint8Array};
Gc=function(){return gba||(gba=new Uint8Array(0))};
hba=function(a){if(a!==Hc)throw Error("illegal external caller");};
Ic=function(a,b){hba(b);this.yd=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Jc=function(){return iba||(iba=new Ic(null,Hc))};
Lc=function(a){return(a=Kc(a))?new Uint8Array(a):Gc()};
Kc=function(a){hba(Hc);var b=a.yd;b=null==b||Fc(b)?b:"string"===typeof b?Dc(b):null;return null==b?b:a.yd=b};
Pc=function(a,b){if(Mc)return a[Mc]|=b;if(void 0!==a.Fn)return a.Fn|=b;Object.defineProperties(a,{Fn:{value:b,configurable:!0,writable:!0,enumerable:!1}});return b};
Qc=function(a,b){Mc?a[Mc]&&(a[Mc]&=~b):void 0!==a.Fn&&(a.Fn&=~b)};
Uc=function(a){var b;Mc?b=a[Mc]:b=a.Fn;return null==b?0:b};
Vc=function(a,b){Mc?a[Mc]=b:void 0!==a.Fn?a.Fn=b:Object.defineProperties(a,{Fn:{value:b,configurable:!0,writable:!0,enumerable:!1}})};
Wc=function(a){Pc(a,1);return a};
g.Xc=function(a){return!!(Uc(a)&2)};
Zc=function(a){Pc(a,16);return a};
$c=function(a,b){Vc(b,(a|0)&-51)};
ad=function(a,b){Vc(b,(a|18)&-41)};
jba=function(a,b){var c=Uc(a);(c&b)!==b&&(Object.isFrozen(a)&&(a=Array.prototype.slice.call(a)),Vc(a,c|b));return a};
bd=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
cd=function(a,b,c){if(null==a){if(!c)throw Error();}else if("string"===typeof a)a=a?new Ic(a,Hc):Jc();else if(a.constructor!==Ic)if(Fc(a))a=a.length?new Ic(new Uint8Array(a),Hc):Jc();else{if(!b)throw Error();a=void 0}return a};
dd=function(a){if(g.Xc(a.Be))throw Error("Cannot mutate an immutable Message");};
ed=function(a){var b=a.length;(b=b?a[b-1]:void 0)&&bd(b)?b.g=1:(b={},a.push((b.g=1,b)))};
kba=function(a){return a.displayName||a.name||"unknown type name"};
fd=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+kba(b)+" but got "+(a&&kba(a.constructor)));return a};
lba=function(a,b,c){var d=!1;if(null!=a&&"object"===typeof a&&!(d=Array.isArray(a))&&a.eE===gd)return a;if(d)return new b(a);if(c)return new b};
mba=function(a,b){hd=b;a=new a(b);hd=void 0;return a};
nba=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a)if(Array.isArray(a)){if(0!==(Uc(a)&128))return a=Array.prototype.slice.call(a),ed(a),a}else{if(Fc(a))return g.Bc(a);if(a instanceof Ic){var b=a.yd;return null==b?"":"string"===typeof b?b:a.yd=g.Bc(b)}}}return a};
oba=function(a,b,c,d){if(null!=a){if(Array.isArray(a))a=ld(a,b,c,void 0!==d);else if(bd(a)){var e={},f;for(f in a)e[f]=oba(a[f],b,c,d);a=e}else a=b(a,d);return a}};
ld=function(a,b,c,d){var e=Uc(a);d=d?!!(e&16):void 0;a=Array.prototype.slice.call(a);for(var f=0;f<a.length;f++)a[f]=oba(a[f],b,c,d);c(e,a);return a};
pba=function(a){return a.eE===gd?a.toJSON():nba(a)};
qba=function(a){if(!a)return a;if("object"===typeof a){if(Fc(a))return new Uint8Array(a);if(a.eE===gd)return a.clone()}return a};
rba=function(a,b){a&128&&ed(b)};
nd=function(a){return a.B||(a.B=a.Be[a.D+a.Bs]={})};
g.od=function(a,b,c){return-1===b?null:b>=a.D?a.B?a.B[b]:void 0:c&&a.B&&(c=a.B[b],null!=c)?c:a.Be[b+a.Bs]};
g.F=function(a,b,c,d){dd(a);return pd(a,b,c,d)};
pd=function(a,b,c,d){a.I&&(a.I=void 0);if(b>=a.D||d)return nd(a)[b]=c,a;a.Be[b+a.Bs]=c;(c=a.B)&&b in c&&delete c[b];return a};
rd=function(a,b,c){return void 0!==sba(a,b,c,!1)};
g.td=function(a,b,c,d,e){var f=g.od(a,b,d);Array.isArray(f)||(f=sd);var h=Uc(f);h&1||Wc(f);if(e)h&2||Pc(f,2),c&1||Object.freeze(f);else{e=!(c&2);var l=h&2;c&1||!l?e&&h&16&&!l&&Qc(f,16):(f=Wc(Array.prototype.slice.call(f)),pd(a,b,f,d))}return f};
tba=function(a,b){a=g.od(a,b);return null==a?a:+a};
g.uba=function(a,b){a=g.od(a,b);return null==a?a:!!a};
wd=function(a,b){var c=g.od(a,b),d=cd(c,!0,!0);null!=d&&d!==c&&pd(a,b,d);return d};
g.yd=function(a,b,c,d){var e=g.Xc(a.Be),f=g.td(a,b,1,d,e),h=Uc(f);if(!(h&4)){Object.isFrozen(f)&&(f=Wc(f.slice()),pd(a,b,f,d));for(var l=0,m=0;l<f.length;l++){var n=c(f[l]);null!=n&&(f[m++]=n)}m<l&&(f.length=m);Pc(f,5);e&&(Pc(f,2),Object.freeze(f))}!e&&(h&2||Object.isFrozen(f))&&(f=Array.prototype.slice.call(f),Pc(f,5),xd(a,b,f,d));return f};
vba=function(a){return cd(a,!0,!0)};
zd=function(a,b){a=g.od(a,b);return null==a?0:a};
Ad=function(a,b){a=wd(a,b);return null==a?Jc():a};
xd=function(a,b,c,d){c=null==c?sd:jba(c,1);return g.F(a,b,c,d)};
Bd=function(a,b,c,d){dd(a);c!==d?pd(a,b,c):pd(a,b,void 0,!1);return a};
g.Cd=function(a,b,c,d){dd(a);b=g.td(a,b,2,!1,!1);void 0!=d?b.splice(d,0,c):b.push(c);return a};
g.Hd=function(a,b,c,d){dd(a);(c=Gd(a,c))&&c!==b&&null!=d&&pd(a,c,void 0,!1);return pd(a,b,d)};
Gd=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=g.od(a,e)&&(0!==c&&pd(a,c,void 0,!1),c=e)}return c};
g.wba=function(a,b,c){dd(a);var d=g.od(a,c);b=Id(lba(d,b,!0));d!==b&&pd(a,c,b);return b};
sba=function(a,b,c,d){var e=g.od(a,c,d);b=lba(e,b);b!==e&&null!=b&&(pd(a,c,b,d),Pc(b.Be,Uc(a.Be)&-33));return b};
Jd=function(a,b,c,d){d=void 0===d?!1:d;b=sba(a,b,c,d);if(null==b)return b;if(!g.Xc(a.Be)){var e=Id(b);e!==b&&(b=e,pd(a,c,b,d))}return b};
xba=function(a,b,c,d,e,f){a.u||(a.u={});var h=a.u[c],l=g.td(a,c,3,d,f);if(h)f||(Object.isFrozen(h)?e||(h=Array.prototype.slice.call(h),a.u[c]=h):e&&Object.freeze(h));else{h=[];var m=!!(Uc(a.Be)&16),n=g.Xc(l);!f&&n&&(l=Wc(Array.prototype.slice.call(l)),pd(a,c,l,d));d=n;for(var p=0;p<l.length;p++){var q=l[p];var r=b;var w=m,y=!1;y=void 0===y?!1:y;w=void 0===w?!1:w;r=Array.isArray(q)?new r(w?Zc(q):q):y?new r:void 0;void 0!==r&&(d=d||g.Xc(q),h.push(r),n&&Pc(r.Be,2))}a.u[c]=h;a=l;Object.isFrozen(a)||(b=
Uc(a)|33,Vc(a,d?b&-9:b|8));(f||e&&n)&&Pc(h,2);(f||e)&&Object.freeze(h)}return h};
Kd=function(a,b,c,d){var e=g.Xc(a.Be);b=xba(a,b,c,d,e,e);a=g.td(a,c,3,d,e);if(!e&&a&&!(Uc(a)&8)){for(e=0;e<b.length;e++)c=b[e],d=Id(c),c!==d&&(b[e]=d,a[e]=b[e].Be);Pc(a,8)}return b};
H=function(a,b,c,d){dd(a);null!=d?fd(d,b):d=void 0;return pd(a,c,d)};
Ld=function(a,b,c,d,e){dd(a);null!=e?fd(e,b):e=void 0;return g.Hd(a,c,d,e)};
Nd=function(a,b,c,d,e){dd(a);if(null!=d){var f=Wc([]);for(var h=!1,l=0;l<d.length;l++)f[l]=fd(d[l],b).Be,h=h||g.Xc(f[l]);a.u||(a.u={});a.u[c]=d;b=f;h?Qc(b,8):Pc(b,8)}else a.u&&(a.u[c]=void 0),f=sd;return pd(a,c,f,e)};
Pd=function(a,b,c){g.F(a,b,cd(c,!1,!0))};
yba=function(a,b,c,d,e){dd(a);var f=xba(a,c,b,void 0,!1,!1);c=null!=d?fd(d,c):new c;a=g.td(a,b,2,void 0,!1);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.Be)):(f.push(c),a.push(c.Be));c.Yo()&&Qc(a,8);return c};
Qd=function(a,b,c,d,e){yba(a,b,c,d,e);return a};
Rd=function(a,b){return g.od(a,b)};
Sd=function(a,b){return null==a?b:a};
Td=function(a,b){return Sd(g.od(a,b),"")};
Ud=function(a,b,c){return Sd(g.od(a,b),void 0===c?0:c)};
zba=function(a,b,c){c=void 0===c?ad:c;if(null!=a){if(fba&&a instanceof Uint8Array)return a.length?new Ic(new Uint8Array(a),Hc):Jc();if(Array.isArray(a)){var d=Uc(a);if(d&2)return a;if(b&&!(d&32)&&(d&16||0===d))return Vc(a,d|2),a;a=ld(a,zba,c,!0);b=Uc(a);b&4&&b&2&&Object.freeze(a);return a}return a.eE===gd?Aba(a):a}};
Bba=function(a,b,c,d,e,f,h){(a=a.u&&a.u[c])?(d=0<a.length?a[0].constructor:void 0,f=Uc(a),f&2||(a=g.Vd(a,Aba),ad(f,a),Object.freeze(a)),Nd(b,d,c,a,e)):g.F(b,c,zba(d,f,h),e)};
Aba=function(a){if(g.Xc(a.Be))return a;a=Cba(a,!0);Pc(a.Be,2);return a};
Cba=function(a,b){var c=a.Be,d=Zc([]),e=a.constructor.j;e&&d.push(e);0!==(Uc(c)&128)&&ed(d);b=b||a.Yo()?ad:$c;d=mba(a.constructor,d);a.Rq&&(d.Rq=a.Rq.slice());e=!!(Uc(c)&16);for(var f=0;f<c.length;f++){var h=c[f];if(f===c.length-1&&bd(h))for(var l in h){var m=+l;Number.isNaN(m)?nd(d)[m]=h[m]:Bba(a,d,m,h[l],!0,e,b)}else Bba(a,d,f-a.Bs,h,!1,e,b)}return d};
g.I=function(a,b,c){null==a&&(a=hd);hd=void 0;var d=this.constructor.u||0,e=0<d,f=this.constructor.j,h=!1;if(null==a){a=f?[f]:[];var l=!0;Vc(a,48)}else{if(!Array.isArray(a))throw Error();if(f&&f!==a[0])throw Error();var m=Pc(a,0),n=m;if(l=0!==(16&n))(h=0!==(32&n))||(n|=32);if(e)if(128&n)d=0;else{if(0<a.length){var p=a[a.length-1];if(bd(p)&&"g"in p){d=0;n|=128;delete p.g;var q=!0,r;for(r in p){q=!1;break}q&&a.pop()}}}else if(128&n)throw Error();m!==n&&Vc(a,n)}this.Bs=(f?0:-1)-d;this.u=void 0;this.Be=
a;a:{f=this.Be.length;d=f-1;if(f&&(f=this.Be[d],bd(f))){this.B=f;this.D=d-this.Bs;break a}void 0!==b&&-1<b?(this.D=Math.max(b,d+1-this.Bs),this.B=void 0):this.D=Number.MAX_VALUE}if(!e&&this.B&&"g"in this.B)throw Error('Unexpected "g" flag in sparse object of message that is not a group type.');if(c){b=l&&!h&&!0;e=this.D;var w;for(l=0;l<c.length;l++)h=c[l],h<e?(h+=this.Bs,(d=a[h])?Dba(d,b):a[h]=sd):(w||(w=nd(this)),(d=w[h])?Dba(d,b):w[h]=sd)}};
Wd=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);return mba(a,Zc(b))};
Id=function(a){if(g.Xc(a.Be)){var b=Cba(a,!1);b.I=a;a=b}return a};
Dba=function(a,b){if(Array.isArray(a)){var c=Uc(a),d=1;!b||c&2||(d|=16);(c&d)!==d&&Vc(a,c|d)}};
Eba=function(a,b){return nba(b)};
Fba=function(a,b){b.Rq&&(a.Rq=b.Rq.slice());var c=b.u;if(c){b=b.B;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=Kd(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)Fba(f[h],e[h])}else throw Error("unexpected object: type: "+Ja(e)+": "+e);}}}};
Gba=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Yd=function(){return Error("Failed to read varint, encoding is invalid.")};
Hba=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
Zd=function(a){if("string"===typeof a)return{buffer:Dc(a),Yo:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Yo:!1};if(a.constructor===Uint8Array)return{buffer:a,Yo:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Yo:!1};if(a.constructor===Ic)return{buffer:Kc(a)||Gc(),Yo:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Yo:!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");
};
Jba=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.t(Iba(c,a)),b=c.next().value,a=c.next().value,c=b);g.$d=c>>>0;g.ae=a>>>0};
g.Lba=function(a){if(16>a.length)Jba(Number(a));else if(Kba)a=BigInt(a),g.$d=Number(a&BigInt(4294967295))>>>0,g.ae=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);g.ae=g.$d=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.ae*=1E6,g.$d=1E6*g.$d+d,4294967296<=g.$d&&(g.ae+=g.$d/4294967296|0,g.$d%=4294967296);b&&(b=g.t(Iba(g.$d,g.ae)),a=b.next().value,b=b.next().value,g.$d=a,g.ae=b)}};
Iba=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
g.ce=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.ee=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;de(a,f);if(128>h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw Yd();};
de=function(a,b){a.j=b;if(b>a.B)throw Hba(a.B,b);};
g.fe=function(a){var b=a.u,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Yd();de(a,c);return e};
g.ge=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
g.he=function(a){var b=g.ge(a),c=g.ge(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
g.ie=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;c<d;){var f=e[c++];b|=f;if(0===(f&128))return de(a,c),!!(b&127)}throw Yd();};
Mba=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw Hba(b,a.B-c);a.j=d;return c};
Oba=function(a,b){if(0==b)return Jc();var c=Mba(a,b);a.mC&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?Gc():Nba?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Jc():new Ic(c,Hc)};
me=function(a){if(le.length){var b=le.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.ce(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;Pba(this)};
Pba=function(a){var b={};a.cI=void 0===b.cI?!1:b.cI};
Qba=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.fe(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Gba(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
ne=function(a){switch(a.u){case 0:0!=a.u?ne(a):g.ie(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)ne(a);else{var b=g.fe(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!Qba(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}ne(a)}while(1);break;default:throw Gba(a.u,a.B);}};
g.oe=function(a,b,c){var d=a.j.B,e=g.fe(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d};
g.re=function(a){var b=g.fe(a.j)>>>0;a=a.j;var c=Mba(a,b);a=a.u;if(Rba){var d=a,e;(e=pe)||(e=pe=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===qe){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),qe=!0}catch(p){qe=!1}}!qe&&(pe=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?Ya():(m=a[f++],194>l||128!==(m&192)?(f--,Ya()):c.push((l&31)<<6|m&
63)):240>l?f>=b-1?Ya():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,Ya()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?Ya():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,Ya()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Ya(),8192<=c.length&&(h=raa(h,c),c.length=0);f=raa(h,c)}return f};
se=function(a){var b=g.fe(a.j)>>>0;return Oba(a.j,b)};
Sba=function(a,b){this.u=a>>>0;this.j=b>>>0};
Uba=function(a){if(!a)return Tba||(Tba=new Sba(0,0));if(!/^-?\d+$/.test(a))return null;g.Lba(a);return new Sba(g.$d,g.ae)};
te=function(){this.j=[]};
Vba=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)};
ze=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Wba=function(a,b){if(0<=b)ze(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
g.Ae=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)};
Xba=function(){this.B=[];this.u=0;this.j=new te};
Be=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
Yba=function(a,b){g.Ce(a,b,2);b=a.j.end();Be(a,b);b.push(a.u);return b};
Zba=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++};
$ba=function(a,b){if(b=b.Rq){Be(a,a.j.end());for(var c=0;c<b.length;c++)Be(a,Kc(b[c])||Gc())}};
g.Ce=function(a,b,c){ze(a.j,8*b+c)};
g.De=function(a,b,c){g.Ce(a,b,2);ze(a.j,c.length);Be(a,a.j.end());Be(a,c)};
cca=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],h=f.a5;h||(d.Ux=f.k6a||f.y3.AF,f.XO?(d.MF=aca(f.XO),h=function(l){return function(m,n,p){return l.Ux(m,n,p,l.MF)}}(d)):f.vR?(d.LF=bca(f.oI.Ns,f.vR),h=function(l){return function(m,n,p){return l.Ux(m,n,p,l.LF)}}(d)):h=d.Ux,f.a5=h);
h(b,a,f.oI);d={Ux:d.Ux,MF:d.MF,LF:d.LF}}}$ba(b,a)};
dca=function(a,b,c){return a[Ee]||(a[Ee]=function(d,e){return b(d,e,c)})};
fca=function(a){var b=a[Ee];if(!b){var c=Fe(a);b=function(d,e){return eca(d,e,c)};
a[Ee]=b}return b};
gca=function(a){var b=a.XO;if(b)return fca(b);if(b=a.j6a)return dca(a.oI.Ns,b,a.vR)};
hca=function(a){var b=gca(a),c=a.oI,d=a.y3.Qn;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
ica=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(Ge in c||He in c||0<c.length&&"function"==typeof c[0])?c:void 0};
jca=function(a,b,c,d,e,f){b.Ns=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var l=a[h++];c(b,l)}for(;h<a.length;){c=a[h++];for(var m=h+1;m<a.length&&"number"!==typeof a[m];)m++;l=a[h++];m-=h;switch(m){case 0:d(b,c,l);break;case 1:(m=ica(a,h))?(h++,e(b,c,l,m)):d(b,c,l,a[h++]);break;case 2:m=h++;m=ica(a,m);e(b,c,l,m,a[h++]);break;case 3:f(b,c,l,a[h++],a[h++],a[h++]);break;case 4:f(b,c,l,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("unexpected number of binary field arguments: "+m);
}}return b};
aca=function(a){var b=a[Ke];if(!b){var c=Le(a);b=function(d,e){return kca(d,e,c)};
a[Ke]=b}return b};
bca=function(a,b){var c=a[Ke];c||(c=function(d,e){return cca(d,e,b)},a[Ke]=c);
return c};
lca=function(a,b){a.push(b)};
mca=function(a,b,c){a.push(b,c.AF)};
nca=function(a,b,c,d){var e=aca(d),f=Le(d).Ns,h=c.AF;a.push(b,function(l,m,n){return h(l,m,n,f,e)})};
oca=function(a,b,c,d,e,f){var h=bca(d,f),l=c.AF;a.push(b,function(m,n,p){return l(m,n,p,d,h)})};
Le=function(a){var b=a[He];if(b)return b;b=jca(a,a[He]=[],lca,mca,nca,oca);Ge in a&&He in a&&(a.length=0);return b};
pca=function(a,b){a[0]=b};
qca=function(a,b,c,d){var e=c.Qn;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
rca=function(a,b,c,d,e){var f=c.Qn,h=fca(d),l=Fe(d).Ns;a[b]=function(m,n,p){return f(m,n,p,l,h,e)}};
sca=function(a,b,c,d,e,f,h){var l=c.Qn,m=dca(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,h)}};
Fe=function(a){var b=a[Ge];if(b)return b;b=jca(a,a[Ge]={},pca,qca,rca,sca);Ge in a&&He in a&&(a.length=0);return b};
eca=function(a,b,c){for(;Qba(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=hca(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,ne(f),!f.cI){var h=f.j.j-d;f.j.j=d;d=Oba(f.j,h);(f=e.Rq)?f.push(d):e.Rq=[d]}}return a};
kca=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]);cca(a,b,e?c[0]:void 0)};
g.Me=function(a,b){var c=new Xba;kca(a,c,Le(b));Be(c,c.j.end());a=new Uint8Array(c.u);b=c.B;for(var d=b.length,e=0,f=0;f<d;f++){var h=b[f];a.set(h,e);e+=h.length}c.B=[a];return a};
g.Ne=function(a,b){return{Qn:a,AF:b}};
g.Oe=function(a,b,c){b=tba(b,c);if(null!=b){g.Ce(a,c,1);a=a.j;var d=+b;if(0===d)g.ae=0<1/d?0:2147483648,g.$d=0;else if(isNaN(d))g.ae=2147483647,g.$d=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)g.ae=(c|2146435072)>>>0,g.$d=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.ae=(c|b/4294967296)>>>0,g.$d=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.ae=(c|b+1023<<20|1048576*d&1048575)>>>0;g.$d=4503599627370496*
d>>>0}g.Ae(a,g.$d);g.Ae(a,g.ae)}};
g.Pe=function(a,b,c){b=g.od(b,c);null!=b&&("string"===typeof b&&Uba(b),null!=b&&(g.Ce(a,c,0),"number"===typeof b?(a=a.j,Jba(b),Vba(a,g.$d,g.ae)):(c=Uba(b),Vba(a.j,c.u,c.j))))};
g.Qe=function(a,b,c){b=g.od(b,c);null!=b&&null!=b&&(g.Ce(a,c,0),Wba(a.j,b))};
g.tca=function(a,b,c){b=g.od(b,c);null!=b&&g.De(a,c,g.uaa(b))};
g.uca=function(a,b,c,d,e){b=Jd(b,d,c);null!=b&&(c=Yba(a,c),e(b,a),Zba(a,c))};
vca=function(a,b,c){b=wd(b,c);null!=b&&g.De(a,c,Zd(b).buffer)};
wca=function(a){var b=this.Ns,c=this.j;return this.isRepeated?Kd(a,b,c,!0):Jd(a,b,c,!0)};
Re=function(a){g.I.call(this,a)};
xca=function(a){g.I.call(this,a)};
yca=function(a){g.I.call(this,a)};
Se=function(a){g.I.call(this,a)};
Te=function(a){g.I.call(this,a)};
zca=function(a){this.hP=a};
Ue=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Ov=new Map};
Ve=function(a,b){Ue.call(this,a,3,b)};
Ye=function(a,b){Ue.call(this,a,2,b)};
g.Ze=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.$e=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ka(d)?g.$e.apply(null,d):g.Ze(d)}};
g.K=function(){this.Vo=this.Vo;this.wl=this.wl};
g.L=function(a,b){g.af(a,g.Qa(g.Ze,b))};
g.af=function(a,b){a.Vo?b():(a.wl||(a.wl=[]),a.wl.push(b))};
g.bf=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Bca=function(a){var b=g.Ga("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.C.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Aca(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,cf[c])c=cf[c];else{c=String(c);if(!cf[c]){var f=/function\s+([^\(]+)/m.exec(c);cf[c]=f?f[1]:"[Anonymous]"}c=cf[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}};
Aca=function(a,b){b||(b={});b[Cca(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Cca(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Aca(a,b));return c};
Cca=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Dca=function(a){return g.df?"webkit"+a:a.toLowerCase()};
ef=function(a,b){g.bf.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)};
ff=function(a){return!(!a||!a[Eca])};
Gca=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Zc=e;this.key=++Fca;this.removed=this.sC=!1};
gf=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Zc=null};
g.hf=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.jf=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
kf=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.lf=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Hca=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.mf=function(a){for(var b in a)return b};
Ica=function(a){for(var b in a)return a[b]};
nf=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.of=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.pf=function(a,b){return null!==a&&b in a};
g.qf=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
rf=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
Jca=function(a,b){return(b=rf(a,b))&&a[b]};
g.sf=function(a){for(var b in a)return!1;return!0};
g.Kca=function(a){for(var b in a)delete a[b]};
g.tf=function(a,b){b in a&&delete a[b]};
g.uf=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.wf=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.yf=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.zf=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);if(a instanceof Date)return new Date(a.getTime());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.zf(a[c]);return b};
g.Af=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<Lca.length;f++)c=Lca[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Mca=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
Bf=function(a){this.src=a;this.listeners={};this.j=0};
g.Cf=function(a,b){var c=b.type;c in a.listeners&&g.Wb(a.listeners[c],b)&&(gf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
Df=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.Zc==d)return e}return-1};
g.Ff=function(a,b,c,d,e){if(d&&d.once)return Ef(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.Ff(a,b[f],c,d,e);return null}c=Gf(c);return ff(a)?a.Pa(b,c,g.Ma(d)?!!d.capture:!!d,e):Nca(a,b,c,!1,d,e)};
Nca=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Ma(e)?!!e.capture:!!e,l=Hf(a);l||(a[If]=l=new Bf(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=Oca();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Pca||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Qca(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Rca++;return c};
Oca=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Sca;return a};
Ef=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ef(a,b[f],c,d,e);return null}c=Gf(c);return ff(a)?a.VD(b,c,g.Ma(d)?!!d.capture:!!d,e):Nca(a,b,c,!0,d,e)};
Tca=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Tca(a,b[f],c,d,e);else d=g.Ma(d)?!!d.capture:!!d,c=Gf(c),ff(a)?a.zc(b,c,d,e):a&&(a=Hf(a))&&(b=a.Dz(b,c,d,e))&&Jf(b)};
Jf=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(ff(b))g.Cf(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Qca(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Rca--;(c=Hf(b))?(g.Cf(c,a),0==c.j&&(c.src=null,b[If]=null)):gf(a)}}};
Qca=function(a){return a in Kf?Kf[a]:Kf[a]="on"+a};
Sca=function(a,b){if(a.removed)a=!0;else{b=new ef(b,this);var c=a.listener,d=a.Zc||a.src;a.sC&&Jf(a);a=c.call(d,b)}return a};
Hf=function(a){a=a[If];return a instanceof Bf?a:null};
Gf=function(a){if("function"===typeof a)return a;a[Lf]||(a[Lf]=function(b){return a.handleEvent(b)});
return a[Lf]};
g.Mf=function(){g.K.call(this);this.B=new Bf(this);this.yb=this;this.Ma=null};
Nf=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var l=h.listener,m=h.Zc||h.src;h.sC&&g.Cf(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Of=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
Uca=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
Pf=function(a){return function(){return a}};
g.Qf=function(){};
Vca=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Rf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Yf=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
Wca=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)}};
$f=function(){if(void 0===Zf){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ua,createScript:Ua,createScriptURL:Ua})}catch(c){g.C.console&&g.C.console.error(c.message)}Zf=a}else Zf=a}return Zf};
ag=function(a,b){this.j=a===Xca&&b||"";this.u=Yca};
bg=function(a){return a instanceof ag&&a.constructor===ag&&a.u===Yca?a.j:"type_error:Const"};
g.cg=function(a){return new ag(Xca,a)};
dg=function(a,b){this.j=b===Zca?a:"";this.Dn=!0};
$ca=function(a){var b=$f();a=b?b.createScript(a):a;return new dg(a,Zca)};
eg=function(a,b){this.j=b===ada?a:""};
bda=function(a){return a instanceof eg&&a.constructor===eg?a.j:"type_error:TrustedResourceUrl"};
eda=function(a,b){var c=bg(a);if(!cda.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(dda,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 ag?bg(d):encodeURIComponent(String(d))});
return g.fg(a)};
g.fg=function(a){var b=$f();a=b?b.createScriptURL(a):a;return new eg(a,ada)};
gg=function(a,b){this.j=b===fda?a:""};
g.hg=function(a){return a instanceof gg&&a.constructor===gg?a.j:"type_error:SafeUrl"};
gda=function(a){var b=a.indexOf("#");0<b&&(a=a.substring(0,b));b=a.match(/[?&]body=/gi);if(!b)return!0;if(1<b.length)return!1;a=a.match(/[?&]body=([^&]*)/)[1];if(!a)return!0;try{decodeURIComponent(a)}catch(c){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(a)};
g.jg=function(a){a instanceof gg||(a="object"==typeof a&&a.Dn?a.Bk():String(a),hda.test(a)?a=ig(a):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(ida)?ig(a):null));return a||jda};
kda=function(a){if(a instanceof gg)return a;a="object"==typeof a&&a.Dn?a.Bk():String(a);hda.test(a)||(a="about:invalid#zClosurez");return ig(a)};
ig=function(a){return new gg(a,fda)};
lg=function(a,b){this.j=b===kg?a:"";this.Dn=!0};
mg=function(a){return a instanceof lg&&a.constructor===lg?a.j:"type_error:SafeStyle"};
mda=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(lda).join(" "):lda(d),b+=c+":"+d+";")}return b?new lg(b,kg):ng};
nda=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=mg(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new lg(c,kg):ng};
lda=function(a){if(a instanceof gg)return'url("'+g.hg(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof ag)a=bg(a);else{a=String(a);var b=a.replace(oda,"$1").replace(oda,"$1").replace(pda,"url");if(qda.test(b)){if(b=!rda.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&sda(a)}a=b?tda(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new Xa("Value does not allow [{;}], got: %s.",[a]);return a};
sda=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};
tda=function(a){return a.replace(pda,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.jg(d).Bk();return c+f+b+f+e})};
tg=function(a,b){this.j=b===og?a:"";this.Dn=!0};
g.ug=function(a){return a instanceof tg&&a.constructor===tg?a.j:"type_error:SafeHtml"};
uda=function(a){return a instanceof tg?a:vg(fb("object"==typeof a&&a.Dn?a.Bk():String(a)))};
wda=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=uda(e),d.push(g.ug(e).toString()))}
var c=uda(vda),d=[];a.forEach(b);return vg(d.join(g.ug(c).toString()))};
xda=function(a){return wda(Array.prototype.slice.call(arguments))};
vg=function(a){var b=$f();a=b?b.createHTML(a):a;return new tg(a,og)};
g.wg=function(a,b){return vg(b)};
yda=function(a,b){return new lg(b,kg)};
g.Ada=function(a,b){if(zda())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.ug(b)};
g.xg=function(a,b){b=b instanceof gg?b:kda(b);a.href=g.hg(b)};
yg=function(a,b,c,d){a=a instanceof gg?a:kda(a);b=b||g.C;c=c instanceof ag?bg(c):c||"";return void 0!==d?b.open(g.hg(a),c,d):b.open(g.hg(a),c)};
zg=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Bda.test(a))break a;a=""}return a};
Cda=function(a,b){return a+Math.random()*(b-a)};
g.Ag=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Bg=function(a,b){a%=b;return 0>a*b?a+b:a};
Cg=function(a,b,c){return a+c*(b-a)};
Dg=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Eg=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Fg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Gg=function(a,b){this.width=a;this.height=b};
g.Hg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Ig=function(a){return a.width*a.height};
g.Jg=function(a){return encodeURIComponent(String(a))};
Kg=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Lg=function(a){return a=fb(a)};
g.Mg=function(a){return null==a?"":String(a)};
Og=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Pg=function(a){var b=Number(a);return 0==b&&g.eb(a)?NaN:b};
Dda=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Eda=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Fda=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
Gda=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};
Sg=function(a){return a?new Qg(Rg(a)):Hda||(Hda=new Qg)};
Ida=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.Tg=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Vg=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Ug(document,"*",a,b)};
g.Wg=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.Ug(c,"*",a,b)[0]||null}return a||null};
g.Ug=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.Sb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
Xg=function(a,b){g.hf(b,function(c,d){c&&"object"==typeof c&&c.Dn&&(c=c.Bk());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Jda.hasOwnProperty(d)?a.setAttribute(Jda[d],c):bb(d,"aria-")||bb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Kda=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Gg(a.clientWidth,a.clientHeight)};
Mda=function(a){var b=Lda(a);a=a.parentWindow||a.defaultView;return g.Yg&&a.pageYOffset!=b.scrollTop?new g.Eg(b.scrollLeft,b.scrollTop):new g.Eg(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Lda=function(a){return a.scrollingElement?a.scrollingElement:g.df||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Zg=function(a){return a?a.parentWindow||a.defaultView:window};
ah=function(a,b,c){var d=arguments,e=document,f=d[1],h=$g(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):Xg(h,f));2<d.length&&Nda(e,h,d,2);return h};
Nda=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Ka(f)||g.Ma(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Ma(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.rc(h?g.ec(f):f,e)}}};
g.bh=function(a){return $g(document,a)};
$g=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.ch=function(a){return document.createTextNode(String(a))};
g.dh=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.eh=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.fh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Oda=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.gh=function(a){var b;if(Pda&&(b=a.parentElement))return b;b=a.parentNode;return g.Ma(b)&&1==b.nodeType?b:null};
g.hh=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};
Rg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.ih=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.dh(a),a.appendChild(Rg(a).createTextNode(String(b)))};
jh=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")||Qda(a)):a.hasAttribute("tabindex")&&Qda(a))&&g.Yg){var c;"function"!==typeof a.getBoundingClientRect||g.Yg&&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};
Qda=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
mh=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return kh(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Sb(e.className.split(/\s+/),c))},!0)};
kh=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Qg=function(a){this.j=a||g.C.document||document};
oh=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Db()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(nh||(nh=Rda()),nh(a)):g.C.setImmediate(a)};
Rda=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!xb("Presto")&&(a=function(){var e=g.bh("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Pa)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!Cb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.eP;c.eP=null;e()}};
return function(e){d.next={eP:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
ph=function(){this.u=this.j=null};
rh=function(){this.next=this.scope=this.fn=null};
g.uh=function(a,b){sh||Sda();th||(sh(),th=!0);Tda.add(a,b)};
Sda=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);sh=function(){a.then(Uda)}}else sh=function(){oh(Uda)}};
Uda=function(){for(var a;a=Tda.remove();){try{a.fn.call(a.scope)}catch(b){vaa(b)}Uca(Vda,a)}th=!1};
g.wh=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.Qf)try{var b=this;a.call(void 0,function(c){vh(b,2,c)},function(c){vh(b,3,c)})}catch(c){vh(this,3,c)}};
Wda=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1};
xh=function(a,b,c){var d=Xda.get();d.u=a;d.onRejected=b;d.context=c;return d};
yh=function(a){if(a instanceof g.wh)return a;var b=new g.wh(g.Qf);vh(b,2,a);return b};
zh=function(a){return new g.wh(function(b,c){c(a)})};
g.Zda=function(a,b,c){Yda(a,b,c,null)||g.uh(g.Qa(b,a))};
$da=function(a){return new g.wh(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Zda(e,b,c)})};
Bh=function(a,b){b=xh(b,b);b.B=!0;Ah(a,b);return a};
aea=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.B||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?aea(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):bea(c),cea(c,e,3,b)))}a.B=null}else vh(a,3,b)};
Ah=function(a,b){a.u||2!=a.j&&3!=a.j||dea(a);a.C?a.C.next=b:a.u=b;a.C=b};
eea=function(a,b,c,d){var e=xh(null,null,null);e.j=new g.wh(function(f,h){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Ch?h(l):f(m)}catch(n){h(n)}}:h});
e.j.B=a;Ah(a,e);return e.j};
vh=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,Yda(c,a.I4,a.J4,a)||(a.J=c,a.j=b,a.B=null,dea(a),3!=b||c instanceof Ch||fea(a,c)))};
Yda=function(a,b,c,d){if(a instanceof g.wh)return Ah(a,xh(b||g.Qf,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Ma(a))try{var f=a.then;if("function"===typeof f)return gea(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
gea=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
dea=function(a){a.I||(a.I=!0,g.uh(a.gZ,a))};
bea=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
cea=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,hea(b,c,d);else try{b.B?b.u.call(b.context):hea(b,c,d)}catch(e){iea.call(null,e)}Uca(Xda,b)};
hea=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
fea=function(a,b){a.D=!0;g.uh(function(){a.D&&iea.call(null,b)})};
Ch=function(a){Va.call(this,a)};
g.Dh=function(a,b){g.Mf.call(this);this.Kh=a||1;this.sB=b||g.C;this.YO=(0,g.Pa)(this.u4,this);this.hR=g.Sa()};
g.Eh=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Pa)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Pa)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.C.setTimeout(a,b||0)};
Fh=function(a,b){var c=null;return(new g.wh(function(d,e){c=g.Eh(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).jj(function(d){g.C.clearTimeout(c);
throw d;})};
g.Gh=function(a){this.J=a;this.j=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.Dh(this.flushInterval);this.u.Pa("tick",this.tG,!1,this);this.D=!1};
jea=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.tG()};
kea=function(a,b){return a.I.has(b)?void 0:a.j.get(b)};
lea=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
mea=function(a){this.j=a;this.j.kC("/client_streamz/po/w/rl",{Ag:3,zg:"mn"},{Ag:2,zg:"ac"},{Ag:2,zg:"sc"},{Ag:3,zg:"rk"})};
nea=function(a){this.j=a;this.j.kC("/client_streamz/po/w/el",{Ag:3,zg:"en"},{Ag:3,zg:"rk"})};
oea=function(a){this.j=a;this.j.Tm("/client_streamz/po/w/cec",{Ag:2,zg:"ec"},{Ag:3,zg:"rk"})};
pea=function(a){this.j=a;this.j.Tm("/client_streamz/po/w/csc",{Ag:2,zg:"cs"},{Ag:3,zg:"rk"})};
rea=function(a){g.I.call(this,a,-1,qea)};
g.Hh=function(a){g.I.call(this,a,-1,sea)};
g.Ih=function(a){g.I.call(this,a,-1,tea)};
g.Mh=function(a){g.I.call(this,a)};
g.Nh=function(a){g.I.call(this,a)};
vea=function(a){g.I.call(this,a,-1,uea)};
g.wea=function(a){var b=new g.Hh;b=g.F(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].zg);if(null==c)c=sd;else{for(d=0;d<c.length;d++);c=jba(c,5)}b=g.F(b,3,c);c=[];d=[];for(var e=g.t(a.Ov.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var h=a.C;for(var l=a.xI(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.hP;var q=new g.Nh;switch(h){case 3:g.Hd(q,1,g.Oh,Number(p));break;case 2:g.Hd(q,2,g.Oh,Number(p))}m.push(q)}h=m;for(l=0;l<h.length;l++){m=
h[l];n=new g.Ih;m=H(n,g.Nh,2,m);n=f;p=[];q=a;for(var r=[],w=0;w<q.j.length;w++)r.push(q.j[w].Ag);q=r;for(r=0;r<q.length;r++){w=q[r];var y=n[r],z=new g.Mh;switch(w){case 3:g.Hd(z,1,g.Ph,String(y));break;case 2:g.Hd(z,2,g.Ph,Number(y));break;case 1:g.Hd(z,3,g.Ph,"true"==y)}p.push(z)}Nd(m,g.Mh,1,p);c.push(m)}}Nd(b,g.Ih,4,c);return b};
xea=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};
yea=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 r=h,w=0;64>w;w+=4)r[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=r[w-3]^r[w-8]^r[w-14]^r[w-16],r[w]=(q<<1|q>>>31)&4294967295;q=e[0];var y=e[1],z=e[2],B=e[3],D=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=B^y&(z^B);var E=1518500249}else G=y^z^B,E=1859775393;else 60>w?(G=y&z|B&(y|z),E=2400959708):(G=y^z^B,E=3395469782);G=((q<<5|q>>>27)&4294967295)+G+D+E+r[w]&4294967295;D=B;B=z;z=(y<<30|y>>>2)&4294967295;y=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+y&4294967295;e[2]=
e[2]+z&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+D&4294967295}
function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],y=0,z=q.length;y<z;++y)w.push(q.charCodeAt(y));q=w}r||(r=q.length);w=0;if(0==n)for(;w+64<r;)b(q.slice(w,w+64)),w+=64,p+=64;for(;w<r;)if(f[n++]=q[w++],p++,64==n)for(n=0,b(f);w+64<r;)b(q.slice(w,w+64)),w+=64,p+=64}
function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=r&255,r>>>=8;b(f);for(w=r=0;5>w;w++)for(var y=24;0<=y;y-=8)q[r++]=e[w]>>y&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,VY:function(){for(var q=d(),r="",w=0;w<q.length;w++)r+="0123456789ABCDEF".charAt(Math.floor(q[w]/16))+"0123456789ABCDEF".charAt(q[w]%16);return r}}};
Aea=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,zea(xea(d),a,c||null)].join(" "):null};
zea=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.rc(d,function(l){e.push(l)}),Bea(e.join(" "));
var f=[],h=[];g.rc(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.Tb(f)?[c,b,a]:[f.join(":"),c,b,a];g.rc(d,function(l){e.push(l)});
a=Bea(e.join(" "));a=[c,a];g.Tb(h)||a.push(h.join(""));return a.join("_")};
Bea=function(a){var b=yea();b.update(a);return b.VY().toLowerCase()};
Qh=function(a){this.j=a||{cookie:""}};
Rh=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=lb(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}};
Sh=function(a){return!!Cea.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Dea=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;Sh(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new Qh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Sh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
Eea=function(a,b,c,d){(a=g.C[a])||(a=(new Qh(document)).get(b));return a?Aea(a,c,d):null};
Th=function(a,b){b=void 0===b?!1:b;var c=xea(String(g.C.location.href)),d=[];if(Dea(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 Qh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Aea(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Sh(b)&&((b=Eea("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Eea("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&
d.push(a))}return 0==d.length?null:d.join(" ")};
Vh=function(a){g.I.call(this,a,-1,Fea)};
g.Wh=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.I=c||0;this.J=d||2};
g.Xh=function(a){a.j=Math.min(a.D,a.j*a.J);a.B=Math.min(a.D,a.j+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.j):0));a.u++};
g.Yh=function(a){return(new Gea).Rk(a)};
Gea=function(){};
Zh=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),Zh(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),Hea(d,c),c.push(":"),Zh(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Hea(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);}}};
Hea=function(a,b){b.push('"',a.replace(Iea,function(c){var d=Jea[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Jea[c]=d);return d}),'"')};
Kea=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"}};
$h=function(){};
ai=function(){};
Lea=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
bi=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
ci=function(a){return a?decodeURI(a):a};
g.ei=function(a,b){return b.match(di)[a]||null};
g.fi=function(a){return ci(g.ei(3,a))};
g.Mea=function(a){a=a.match(di);return bi(a[1],a[2],a[3],a[4])};
Nea=function(a){a=a.match(di);return bi(a[1],null,a[3],a[4])};
Oea=function(a){a=a.match(di);return bi(null,null,null,null,a[5],a[6],a[7])};
gi=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?Kg(e):"")}}};
Pea=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)]};
Qea=function(a,b){return b?a?a+"&"+b:b:a};
hi=function(a,b){if(!b)return a;a=Pea(a);a[1]=Qea(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
ii=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)ii(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Jg(b)))};
Rea=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)ii(a[b],a[b+1],c);return c.join("&")};
g.ji=function(a){var b=[],c;for(c in a)ii(c,a[c],b);return b.join("&")};
ki=function(a,b){var c=2==arguments.length?Rea(arguments[1],0):Rea(arguments,1);return hi(a,c)};
g.ti=function(a,b){b=g.ji(b);return hi(a,b)};
ui=function(a,b,c){c=null!=c?"="+g.Jg(c):"";return hi(a,b+c)};
Sea=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};
wi=function(a,b){var c=a.search(Tea),d=Sea(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 Kg(a.slice(d,-1!==e?e:0))};
xi=function(a,b){for(var c=a.search(Tea),d=0,e,f=[];0<=(e=Sea(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(Uea,"$1")};
Vea=function(a,b,c){return ui(xi(a,b),b,c)};
Wea=function(a,b){a=Pea(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]=Qea(d.join("&"),g.ji(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.yi=function(a){g.Mf.call(this);this.headers=new Map;this.Z=a||null;this.C=!1;this.Aa=this.j=null;this.oa="";this.u=0;this.D="";this.I=this.Ka=this.ea=this.Ba=!1;this.T=0;this.ya=null;this.Oa="";this.Sa=this.J=!1};
Yea=function(a,b,c,d,e,f,h){var l=new g.yi;Xea.push(l);b&&l.Pa("complete",b);l.VD("ready",l.DY);f&&(l.T=Math.max(0,f));h&&(l.J=h);l.send(a,c,d,e)};
Zea=function(a){return g.Yg&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
afa=function(a,b){a.C=!1;a.j&&(a.I=!0,a.j.abort(),a.I=!1);a.D=b;a.u=5;$ea(a);zi(a)};
$ea=function(a){a.Ba||(a.Ba=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
bfa=function(a){if(a.C&&"undefined"!=typeof Ai)if(a.Aa[1]&&4==g.Bi(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.Bi(a))g.Eh(a.tS,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Ci(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Bi(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";$ea(a)}}finally{zi(a)}}};
zi=function(a,b){if(a.j){cfa(a);var c=a.j,d=a.Aa[0]?function(){}:null;
a.j=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
cfa=function(a){a.j&&a.Sa&&(a.j.ontimeout=null);a.ya&&(g.C.clearTimeout(a.ya),a.ya=null)};
Ci=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.ei(1,String(a.oa)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol.slice(0,-1)),b=!dfa.test(a?a.toLowerCase():"");c=b}return c};
g.Bi=function(a){return a.j?a.j.readyState:0};
g.Di=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Ei=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Oa){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
g.efa=function(a){var b={};a=(a.j&&2<=g.Bi(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.eb(a[c])){var d=Gda(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 kf(b,function(h){return h.join(", ")})};
g.Fi=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Gi=function(a){g.I.call(this,a)};
Hi=function(a){g.I.call(this,a,-1,ffa)};
Ii=function(a){g.I.call(this,a)};
hfa=function(a){g.I.call(this,a,-1,gfa)};
Ji=function(a){g.I.call(this,a,31,ifa)};
kfa=function(a){g.I.call(this,a,17,jfa)};
mfa=function(a){g.I.call(this,a,6,lfa)};
nfa=function(a){g.I.call(this,a)};
Li=function(a,b,c,d,e,f,h,l,m,n,p){g.Mf.call(this);var q=this;this.ea="";this.u=[];this.ib="";this.kb=this.Ka=-1;this.Wa=!1;this.T=this.C=null;this.J=0;this.Mb=1;this.timeoutMillis=0;this.Ba=!1;g.Mf.call(this);this.Xa=b||function(){};
this.I=new ofa(a,f);this.qb=d;this.Sa=p;this.Vb=g.Qa(Cda,0,1);this.ya=e||null;this.Z=c||null;this.Aa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Oa=f||!1;!this.Oa&&(65<=Ib("Chromium")||45<=Ib("Firefox")||12<=Ib("Safari")||Lb()&&g.rb(Maa(),12));a=g.F(new Ii,1,1);Ki(this.I,a);this.D=new g.Wh(1E4,3E5,.1);this.j=new g.Dh(this.D.getValue());g.L(this,this.j);n=pfa(this,n);g.Ff(this.j,"tick",n,!1,this);this.oa=new g.Dh(6E5);g.L(this,this.oa);g.Ff(this.oa,"tick",n,!1,this);this.Aa||
this.oa.start();this.Oa||(g.Ff(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.pI()}),g.Ff(document,"pagehide",this.pI,!1,this))};
pfa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
qfa=function(a){a.ya||(a.ya=.01>a.Vb()?"https://web.archive.org/web/20221116135136/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20221116135136/https://play.google.com/log?format=json&hasfast=true");return a.ya};
rfa=function(a,b){a.D=new g.Wh(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
tfa=function(a){sfa(a,function(b,c){b=ui(b,"format","json");b=Zg().navigator.sendBeacon(b,c.Rk());a.Ba&&!b&&(a.Ba=!1);return b})};
sfa=function(a,b){if(0!==a.u.length){var c=xi(qfa(a),"format");c=ki(c,"auth",a.Xa(),"authuser",a.Z||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.I.Ze(e,a.J);if(!b(c,f))break;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
ufa=function(){g.bf.call(this,"event-logged",void 0)};
ofa=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new kfa;g.F(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Ki(this,new Ii)};
Ki=function(a,b){H(a.j,Ii,1,b);g.od(b,1)||g.F(b,1,1);a.B||(b=Mi(a),g.od(b,5)||g.F(b,5,a.locale));a.u&&(b=Mi(a),Jd(b,Hi,9)||H(b,Hi,9,a.u))};
wfa=function(a,b){var c=void 0===c?vfa:c;b(Zg(),c).then(function(d){a.u=d;d=Mi(a);H(d,Hi,9,a.u);return!0}).catch(function(){return!1})};
Mi=function(a){a=Jd(a.j,Ii,1);var b=Jd(a,Gi,11);b||(b=new Gi,H(a,Gi,11,b));return b};
xfa=function(a,b,c){Yea(a.url,function(d){d=d.target;Ci(d)?b(g.Di(d)):c(d.getStatus())},a.requestType,a.body,a.Zt,a.timeoutMillis,a.withCredentials)};
Ni=function(a){this.J=a;this.C="https://web.archive.org/web/20221116135136/https://play.google.com/log?format=json&hasfast=true";this.D=!1;this.T=xfa;this.j=""};
Oi=function(a,b,c,d,e,f){c=void 0===c?"":c;e=void 0===e?"":e;if(f)b=f;else{a=new Ni(void 0===a?-1:a);a.j=void 0===b?"":b;""!=c&&(a.C=c);if(void 0===d?0:d)a.D=!0;e&&(a.u=e);b=a.Ze()}this.j=b};
yfa=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}};
Pi=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};
Qi=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()};
Ri=function(a,b){this.logger=a;this.j=b;this.startMillis=Qi()};
Si=function(){};
Ti=function(a,b){this.vg=a;a=new Ni(1654);if(b){var c=new rea;b=xd(c,3,b);a.B=b}b=new Oi(1654,"","",!1,"8",a.Ze());b=new g.Gh(b);this.clientError=new oea(b);this.u=new nea(b);this.B=new mea(b);this.j=new pea(b)};
zfa=function(a){this.j=a;this.j.Tm("/client_streamz/bg/fiec",{Ag:3,zg:"rk"},{Ag:2,zg:"ec"})};
Afa=function(a){this.j=a;this.j.kC("/client_streamz/bg/fil",{Ag:3,zg:"rk"})};
Bfa=function(a){this.j=a;this.j.Tm("/client_streamz/bg/fsc",{Ag:3,zg:"rk"})};
Cfa=function(a){this.j=a;this.j.kC("/client_streamz/bg/fsl",{Ag:3,zg:"rk"})};
Dfa=function(a){this.vg=a;this.J=Ui();this.C=new Oi(1828);this.j=new g.Gh(this.C);this.I=new Afa(this.j);this.u=new Bfa(this.j);this.B=new Cfa(this.j);this.D=new zfa(this.j)};
Ui=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()};
Efa=function(a){g.I.call(this,a)};
Ffa=function(a){g.I.call(this,a)};
Vi=function(a){g.I.call(this,a)};
g.Wi=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Xi=function(a){var b=this;this.j=!1;if(a.challenge instanceof Vi){var c=Td(a.challenge,4);var d=Td(a.challenge,5)}else c=a.program,d=a.globalName;if(a.z3){var e;this.cq=null!=(e=a.cq)?e:new Dfa(d)}var f=new g.Wi;this.u=f.promise;if(!g.C[d]){var h;null!=(h=this.cq)&&h.D.j.Bo("/client_streamz/bg/fiec",h.vg,1)}this.B=g.t((0,g.C[d].a)(c,function(l,m){Promise.resolve().then(function(){var n;null!=(n=b.cq)&&n.I.wh(Ui()-n.J,n.vg);f.resolve({uY:l,a4:m})})},!0)).next().value;
this.Y3=f.promise.then(function(){})};
Gfa=function(a){g.cg("From proto message. b/12014412");return g.fg(g.od(a,4)||"")};
Hfa=function(){};
Yi=function(a){this.j=a};
Kfa=function(a,b){var c=[new Yi(Ifa[0].toLowerCase(),Jfa)];if(0===c.length)throw Error("No prefixes are provided");if(c.map(function(d){if(d instanceof Yi)d=d.j;else throw Error("");return d}).every(function(d){return 0!=="attributionsrc".indexOf(d)}))throw Error('Attribute "attributionsrc" does not match any of the allowed prefixes.');
a.setAttribute("attributionsrc",b)};
Lfa=function(a,b){return a.parseFromString(g.ug(b),"text/xml")};
Nfa=function(a){a:if(Mfa){try{var b=new URL(a)}catch(c){b="https:";break a}b=b.protocol}else b:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break b}b=b.protocol;b=":"===b||""===b?"https:":b}if("javascript:"!==b)return a};
Zi=function(a){this.isValid=a};
$i=function(a){return new Zi(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Pfa=function(a,b){b=void 0===b?Ofa:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Zi&&d.isValid(a))return ig(a)}};
aj=function(a,b){b=b instanceof gg?g.hg(b):Nfa(b);void 0!==b&&(a.href=b)};
Qfa=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.bj=function(a,b){a.src=bda(b);Qfa(a)};
cj=function(){this.j={};this.u=null};
Rfa=function(){cj.instance||(cj.instance=new cj);return cj.instance};
Tfa=function(a){var b=Rfa();return Sfa(b,Jd(a,Efa,1),Jd(a,Ffa,2),Td(a,3))};
Sfa=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return Ufa(b,c);var e;(e=a.j)[d]||(e[d]=new Promise(function(f,h){Ufa(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
Ufa=function(a,b){return b?Vfa(b):a?Wfa(a):Promise.resolve()};
Vfa=function(a){return new Promise(function(b,c){var d=g.bh("SCRIPT"),e=Gfa(a);g.bj(d,e);d.onload=function(){g.fh(d);b()};
d.onerror=function(){g.fh(d);c(Error("EWLS"))};
(g.Tg("HEAD")[0]||document.documentElement).appendChild(d)})};
Wfa=function(a){return new Promise(function(b){var c=g.bh("SCRIPT");if(a){var d=g.od(a,6);d=null===d||void 0===d?null:$ca(d)}else d=null;c.textContent=d instanceof dg&&d.constructor===dg?d.j:"type_error:SafeScript";Qfa(c);(g.Tg("HEAD")[0]||document.documentElement).appendChild(c);g.fh(c);b()})};
dj=function(a){g.I.call(this,a)};
ej=function(a){g.I.call(this,a)};
fj=function(a){g.I.call(this,a)};
Xfa=function(a,b,c){this.client=a;this.vg=b;this.j=c};
Yfa=function(a){var b=Rfa().u,c,d,e,f,h;return g.A(function(l){if(1==l.j)return c=new dj,Bd(c,1,a.vg,""),b&&Bd(c,2,b,""),d=a.j(),g.x(l,a.client.create(c,d),2);e=l.u;f=Lc(Ad(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=Wd(Vi,n);return m.call(l,n)}h=Jd(e,Vi,1);if(!h)throw Error("Missing field");return l.return(h)})};
$fa=function(a,b){var c,d;return g.A(function(e){c=a.j();var f=new ej;f=Bd(f,1,a.vg,"");d=Bd(f,2,b,"");f=e.return;var h=a.client;h=jj(h.j,h.u+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Zfa);return f.call(e,h)})};
aga=function(a){this.u=a};
kj=function(a){g.I.call(this,a)};
lj=function(a,b,c){this.j=a;this.B=b;this.u=c};
mj=function(a,b,c){c=void 0===c?{}:c;this.L3=a;this.j=c;this.u=b};
nj=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
cga=function(a,b,c){c=void 0===c?{}:c;return new lj(b,a,c)};
oj=function(a){g.I.call(this,a)};
pj=function(a){g.I.call(this,a)};
qj=function(a){g.I.call(this,a)};
rj=function(a){g.I.call(this,a,-1,dga)};
sj=function(a,b){this.J=a.R_;this.T=b;this.j=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.J&&ega(this)};
iga=function(a,b){g.Ff(a.j,"complete",function(){if(Ci(a.j)){var c=g.Di(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.T;var e=d(c,fga)}catch(f){tj(a,new Pi(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}d=yfa(a.j.getStatus());uj(a,vj(a));0==d?gga(a,e):tj(a,new Pi(d,"Xhr succeeded but the status code is not 200"))}else e=g.Di(a.j),c={},e?(c=hga(a,e),e=c.code,d=c.details,
c=c.metadata):(e=2,d="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError()),uj(a,vj(a)),tj(a,new Pi(e,d,c))})};
ega=function(a){a.J.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.T;var e=d(c,fga)}catch(f){tj(a,new Pi(13,"Error when deserializing response data; error: "+f+(", response: "+c)))}e&&gga(a,e)}if("2"in b)for(b=hga(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.on("end",function(){uj(a,vj(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.J.on("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||Ci(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=yfa(c);break;default:d=14}uj(a,vj(a));b=Kea(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);tj(a,new Pi(d,b))}})};
vj=function(a){var b={},c=g.efa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
hga=function(a,b){var c=2,d={};try{var e=Wd(rj,b);c=Ud(e,1);var f=e.getMessage();Kd(e,qj,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.oa)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
wj=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
gga=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
uj=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
tj=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.xj=function(a){this.I=a.Z4||null;this.D=a.NT||!1;this.u=void 0};
yj=function(a,b){g.Mf.call(this);this.ya=a;this.J=b;this.I=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.u=null;this.oa="GET";this.ea="";this.j=!1;this.T=this.C=this.D=null};
jga=function(a){a.C.read().then(a.CZ.bind(a)).catch(a.yD.bind(a))};
Aj=function(a){a.readyState=4;a.D=null;a.C=null;a.T=null;zj(a)};
zj=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
kga=function(a){if(a.Ck&&"function"==typeof a.Ck)return a.Ck();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.Ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return nf(a)};
lga=function(a){if(a.No&&"function"==typeof a.No)return a.No();if(!a.Ck||"function"!=typeof a.Ck){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Ka(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.of(a)}}};
g.Bj=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Ka(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=lga(a),e=kga(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.Cj=function(a){this.j=this.T=this.D="";this.C=null;this.I=this.B="";this.J=!1;var b;a instanceof g.Cj?(this.J=a.J,g.Dj(this,a.D),this.T=a.T,g.Ej(this,a.j),g.Fj(this,a.C),this.B=a.B,Gj(this,a.u.clone()),this.I=a.I):a&&(b=String(a).match(di))?(this.J=!1,g.Dj(this,b[1]||"",!0),this.T=Hj(b[2]||""),g.Ej(this,b[3]||"",!0),g.Fj(this,b[4]),this.B=Hj(b[5]||"",!0),Gj(this,b[6]||"",!0),this.I=Hj(b[7]||"")):(this.J=!1,this.u=new Ij(null,this.J))};
g.Dj=function(a,b,c){a.D=c?Hj(b,!0):b;a.D&&(a.D=a.D.replace(/:$/,""))};
g.Ej=function(a,b,c){a.j=c?Hj(b,!0):b};
g.Fj=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null};
Gj=function(a,b,c){b instanceof Ij?(a.u=b,mga(a.u,a.J)):(c||(b=Jj(b,nga)),a.u=new Ij(b,a.J))};
g.Kj=function(a,b,c){a.u.set(b,c)};
g.Lj=function(a){return a instanceof g.Cj?a.clone():new g.Cj(a)};
Hj=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Jj=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,oga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
oga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Ij=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Mj=function(a){a.j||(a.j=new Map,a.u=0,a.B&&gi(a.B,function(b,c){a.add(Kg(b),c)}))};
pga=function(a,b){Mj(a);b=Nj(a,b);return a.j.has(b)};
g.qga=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Nj(a,b),g.ec(c)),a.u=a.u+c.length)};
Nj=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
mga=function(a,b){b&&!a.C&&(Mj(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.qga(this,e,c))},a));
a.C=b};
g.rga=function(a){var b="";g.hf(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Oj=function(a,b,c){if(g.sf(c))return a;c=g.rga(c);if("string"===typeof a)return ui(a,g.Jg(b),c);g.Kj(a,b,c);return a};
g.Pj=function(a){g.K.call(this);this.u=a;this.j={}};
sga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)sga(a,b,c[h],d,e,f);else{b=Ef(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
tga=function(){this.B=!0;this.u=0;this.j=""};
uga=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Qj=function(){this.I=null;this.J=[];this.C=this.u=this.B=this.j=this.Z=0;this.D=null;this.T=0};
Rj=function(a,b,c,d){a.j=3;a.I="The stream is broken @"+a.Z+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
Sj=function(){this.j=null;this.u=0;this.B=new tga;this.C=new Qj};
vga=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Tj=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Uj=function(a){this.Z=null;this.I=[];this.C="";this.oa=[];this.B=this.u=0;this.J=!1;this.T=0;this.ya=/[\\"]/g;this.j=this.D=0;this.ea=!(!a||!a.UY)};
Yj=function(a,b,c){a.D=3;a.Z="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.Z);};
Zj=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.I=!1};
wga=function(a){var b=g.Fi(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Zj:new Uj:b.startsWith("application/x-protobuf")?(a=g.Fi(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Sj:null:new Qj:null};
ak=function(a){this.j=a;this.u=null;this.C=this.B=0;this.Z=!1;this.D=this.J=this.I=null;this.T=new g.Pj(this);this.T.Pa(this.j,"readystatechange",this.ea)};
bk=function(a,b){a.C!=b&&(a.C=b,a.J&&a.J())};
ck=function(a){a.T.Zf();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
xga=function(a){this.B=a;a=(0,g.Pa)(this.K0,this);this.B.D=a;a=(0,g.Pa)(this.F2,this);this.B.J=a;this.u={};this.j={}};
yga=function(a,b){for(var c={},d=0;d<a.length;c={GF:c.GF},d++)c.GF=a[d],b.forEach(function(e){return function(f){try{f(e.GF)}catch(h){}}}(c))};
dk=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
zga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.D=a.N6a||g.Ga("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ga("withCredentials",a)||!1;this.C=a.M6a||[];this.I=a.P6a||[];this.j=a.S6a;this.B=a.Q6a||!1};
jj=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Aga(function(h){return new Bga(function(l,m){var n={},p=Cga(a,h,f);p.on("error",function(q){return m(q)});
p.on("metadata",function(q){n=q});
p.on("data",function(q){var r=n;r=void 0===r?{}:r;l(new mj(q,h.kD(),r))})})},a.I).call(a,cga(e,c,d)).then(function(h){return h.L3})};
Cga=function(a,b,c){var d=b.kD(),e=b.getMetadata(),f=Dga(a,!0);a=Ega(a,e,f,c+d.getName());c=Fga(f,d.u,!1);iga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Dga=function(a,b){b=a.B&&!b;return a.j||b?new g.yi(new g.xj({Z4:a.j,NT:b})):new g.yi};
Ega=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.J=!0;if(a.D)d=g.Oj(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Fga=function(a,b,c){if(c)if(a.isActive(),!g.Yg||g.Ac(10)){c=new ak(a);var d=new xga(c)}else d=null;return new sj({xhr:a,R_:d},b)};
Aga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
ek=function(){this.j=new zga;this.u="https://web.archive.org/web/20221116135136/https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
gk=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
a=Gga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=fk(a,l),d+=fk(a,l+4),e+=fk(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Hga.toString(e)};
Gga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
fk=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
Iga=function(a){var b=new ek,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Xfa(b,a,function(){return c})};
Kga=function(a){var b=a.vg;var c=a.onError;a=a.LH;var d=Iga(b);b=new Jga({vg:b,SC:d,onError:c,LH:a});b.start();return b};
hk=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,hk.prototype)};
ik=function(a){g.K.call(this);this.logger=a;this.C=new g.Wi};
kk=function(a,b){jk(b).then(function(){a.C.resolve()})};
lk=function(a,b,c,d,e){ik.call(this,a);this.D=c;this.J=d;this.u="m";this.j="x";this.I=0;g.L(this,b);kk(this,e);this.B=new Te};
mk=function(a,b,c){ik.call(this,a);this.B=b;this.u="f";this.j="z";kk(this,c)};
nk=function(a,b,c){ik.call(this,a);this.B=b;this.u="w";this.j="z";kk(this,c)};
ok=function(a,b){ik.call(this,a);this.u="e";this.j="y";b instanceof hk?(a=b.code+":"+b.message+":"+b.stack,b=b.code+":_"+gk(b.message)+":_"+gk(b.stack)):(a=b.message+":"+b.stack,b="_"+gk(b.message)+":_"+gk(b.stack||""));this.B=new Uint8Array(g.ab(("WE:"+a).substring(0,2048)));this.D=new Uint8Array(g.ab(("WE:"+b).substring(0,2048)))};
pk=function(a,b,c){ik.call(this,a);this.B=b;this.clientState=c;this.u="S";this.j="q"};
jk=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
qk=function(a,b){return Promise.race([a,jk(12E4).then(b)])};
Jga=function(a){this.j=void 0;this.C=new g.Wi;this.state=1;this.B=0;this.u=void 0;this.SC=a.SC;this.eS=a.eS;this.onError=a.onError;this.logger=a.A6a?new Si:new Ti(a.vg,a.LH)};
Lga=function(a,b,c){var d=window.webpocb;if(!d)throw new hk(4,Error("PMD:Undefined"));d=d(Lc(Ad(b,1)));if(!(d instanceof Function))throw new hk(16,Error("APF:Failed"));return new lk(a.logger,c,d,Sd(g.od(b,3),0),1E3*Sd(g.od(b,2),0))};
Mga=function(a,b){return qk(a.logger.KJ("c",void 0===b?1:b,Yfa(a.SC)),function(){return Promise.reject(new hk(10,"JVZ:Timeout"))})};
Nga=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,w,y,z,B;return g.A(function(D){switch(D.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Wh(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){D.Ja(4);break}g.qa(D,5);a.state=3;a.B=e-1;return g.x(D,a.u&&1===e?a.u:Mga(a,e),7);case 7:return f=D.u,a.u=void 0,a.state=4,h=new Ri(a.logger,"b"),g.x(D,Tfa(f),8);case 8:return l=new Xi({challenge:f}),a.state=5,g.x(D,qk(l.snapshot({}),function(){return Promise.reject(new hk(15,"MDA:Timeout"))}),9);
case 9:return m=D.u,h.done(),a.state=6,g.x(D,qk(a.logger.KJ("g",e,$fa(a.SC,m)),function(){return Promise.reject(new hk(10,"BWB:Timeout"))}),10);
case 10:n=D.u;a.state=7;p=new Ri(a.logger,"i");if(Td(n,4)){l.dispose();var G=new nk(a.logger,Td(n,4),1E3*Sd(g.od(n,2),0))}else Sd(g.od(n,3),0)?G=Lga(a,n,l):(l.dispose(),G=new mk(a.logger,Lc(Ad(n,1)),1E3*Sd(g.od(n,2),0)));q=G;p.done();w=r=void 0;null==(w=(r=a).eS)||w.call(r,Lc(Ad(n,1)));a.state=8;return D.return(q);case 5:y=g.sa(D);b=y instanceof hk?y:y instanceof Pi?new hk(11,y):new hk(12,y);a.logger.iA(b.code);B=z=void 0;null==(B=(z=a).onError)||B.call(z,b);a:{if(y instanceof Pi)switch(y.code){case 2:case 13:case 14:case 4:break;
default:G=!1;break a}G=!0}if(!G)throw b;return g.x(D,jk(d.getValue()),11);case 11:g.Xh(d);case 3:e++;D.Ja(2);break;case 4:throw b;}})};
Oga=function(a){var b,c,d,e;g.A(function(f){switch(f.j){case 1:return b=void 0,g.qa(f,4),g.x(f,Nga(a),6);case 6:b=f.u;g.ra(f,5);break;case 4:if(c=g.sa(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.iA(13);f.Ja(0);break}else a.logger.iA(14),b=new ok(a.logger,d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.C.resolve(),g.x(f,a.j.C.promise,1)}})};
Pga=function(a,b,c){var d,e=null!=(d=a.j)?d:new pk(a.logger,a.B,a.state);d=new Ri(a.logger,e.u);try{return c?e.nA(b):e.gr(b)}catch(l){d=new Ri(a.logger,"e");var f=l instanceof hk?l:new hk(5,l);a.logger.iA(f.code);var h;null==(h=a.onError)||h.call(a,f);e=new ok(a.logger,f);return c?e.nA(b):e.gr(b)}finally{d.done()}};
Qga=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}};
Rga=function(a,b,c,d,e){var f=window,h=c?"//web.archive.org/web/20221116135136/https://pagead2.googlesyndication.com/bg/"+g.Lg(c)+".js":"";c=f.document;var l={};b&&(l._scs_=b);l._bgu_=h;l._bgp_=d;l._li_="v_h.3.0.0.0";e&&(l._upb_=e);(b=f.GoogleTyFxhY)&&"function"==typeof b.push||(b=f.GoogleTyFxhY=[]);b.push(l);f=Sg(c).createElement("SCRIPT");f.type="text/javascript";f.async=!0;a=eda(g.cg("//web.archive.org/web/20221116135136/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.Lg(a)+".js"});g.bj(f,a);c.getElementsByTagName("head")[0].appendChild(f)};
Sga=function(a){var b={};g.rc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
Qaa(a,function(c){return null===b[c.event]})};
rk=function(){this.Rd=0;this.j=!1;this.u=-1;this.ot=!1;this.gj=0};
sk=function(){this.yd=null;this.j=!1};
tk=function(a){sk.call(this);this.u=a};
uk=function(){sk.call(this)};
vk=function(){sk.call(this)};
wk=function(){this.j={};this.u=!0;this.B={}};
xk=function(a,b,c){a.j[b]||(a.j[b]=new tk(c));return a.j[b]};
Tga=function(a){a.j.queryid||(a.j.queryid=new vk)};
yk=function(a,b,c){(a=a.j[b])&&a.setValue(c)};
zk=function(a,b){if(g.pf(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
Ak=function(a){var b={},c=g.jf(a.j,function(d){return d.j});
g.hf(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.yd?String(d.yd):"";0<d.length&&(b[e]=d)},a);
return b};
Uga=function(a){a=Ak(a);var b=[];g.hf(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Wga=function(a){xk(a,"od",Vga);xk(a,"opac",Bk).j=!0;xk(a,"sbeos",Bk).j=!0;xk(a,"prf",Bk).j=!0;xk(a,"mwt",Bk).j=!0;xk(a,"iogeo",Bk)};
Xga=function(){this.j=this.Yq=null};
Ck=function(){};
Ek=function(){if(!Dk())throw Error();};
Dk=function(){return!(!Fk||!Fk.performance)};
Gk=function(a){return a?a.passive&&Yga()?a:a.capture||!1:!1};
Hk=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Gk(d)),!0):!1};
Ik=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Zga=function(){};
$ga=function(){return tb&&ub?ub.mobile:!Jk()&&(xb("iPod")||xb("iPhone")||xb("Android")||xb("IEMobile"))};
Jk=function(){return tb&&ub?!ub.mobile&&(xb("iPad")||xb("Android")||xb("Silk")):xb("iPad")||xb("Android")&&!xb("Mobile")||xb("Silk")};
Kk=function(a){try{return!!a&&null!=a.location.href&&vc(a,"foo")}catch(b){return!1}};
Lk=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
bha=function(){var a=[];Lk(aha,function(b){a.push(b)});
return a};
cha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
fha=function(){var a=dha("IFRAME"),b={};g.rc(eha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
dha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
gha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Kk(a)&&(b=a);return b};
kha=function(a){a=a||Mk();for(var b=new hha(g.C.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&iha.test(f.url)&&(c=f);if(f.url&&!f.vJ){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new jha(b,e,c)};
Mk=function(){var a=g.C,b=[],c=null;do{var d=a;if(Kk(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new hha(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.vJ=!0);return b};
jha=function(a,b,c){this.j=a;this.u=b;this.B=c};
hha=function(a,b){this.url=a;this.vJ=!!b;this.depth=null};
Nk=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Ok=function(a,b){var c={};c[a]=b;return[c]};
lha=function(a,b,c,d,e){var f=[];Lk(a,function(h,l){(h=Pk(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Pk=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Pk(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(lha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
mha=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};
Qk=function(a,b){this.j=a;this.depth=b};
oha=function(){function a(l,m){return null==l?m:l}
var b=Mk(),c=Math.max(b.length-1,0),d=kha(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new Qk([f.url,f.vJ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Qk([e.url,2],0));b.url&&b!=f&&h.push(new Qk([b.url,0],a(b.depth,c)));d=g.Vd(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=cha(b.url))&&d.push([new Qk([e,1],a(b.depth,c))]);d.push([]);return g.Vd(d,function(l){return nha(c,l)})};
nha=function(a,b){g.Rk(b,function(e){return 0<=e.depth});
var c=Sk(b,function(e,f){return Math.max(e,f.depth)},-1),d=Vaa(c+2);
d[0]=a;g.rc(b,function(e){return d[e.depth+1]=e.j});
return d};
pha=function(){var a=void 0===a?oha():a;return a.map(function(b){return Pk(b)})};
qha=function(a){Fk.google_image_requests||(Fk.google_image_requests=[]);var b=dha("IMG",Fk.document);b.src=a;Fk.google_image_requests.push(b)};
Tk=function(a){var b="gg";if(a.gg&&a.hasOwnProperty(b))return a.gg;var c=new a;a.gg=c;a.hasOwnProperty(b);return c};
Uk=function(){this.u=new Zga;this.j=Dk()?new Ek:new Ck};
rha=function(){Vk();var a=Fk.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Fk.setInterval&&"function"===typeof Fk.clearInterval&&"function"===typeof Fk.setTimeout&&"function"===typeof Fk.clearTimeout)};
sha=function(){Vk();return pha()};
tha=function(){};
Vk=function(){return Tk(tha).getContext()};
Wk=function(a){g.I.call(this,a)};
uha=function(a){this.B=a;this.j=-1;this.u=this.C=0};
Xk=function(a,b){return function(){var c=g.ya.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}}};
vha=function(a,b){this.u=a;this.B=b;this.j=new uha(a)};
wha=function(){this.j={}};
xha=function(){var a=Yk().flags.j[Zk.key];if("proto"===Zk.valueType){try{var b=JSON.parse(a);if(Array.isArray(b))return b}catch(c){}return Zk.defaultValue}return typeof a===typeof Zk.defaultValue?a:Zk.defaultValue};
Bha=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.featureSet=new wk;xk(this.featureSet,"mv",yha).j=!0;xk(this.featureSet,"omid",Bk);xk(this.featureSet,"epoh",Bk).j=!0;xk(this.featureSet,"epph",Bk).j=!0;xk(this.featureSet,"umt",Bk).j=!0;xk(this.featureSet,"phel",Bk).j=!0;xk(this.featureSet,"phell",Bk).j=!0;xk(this.featureSet,"oseid",zha).j=!0;var a=this.featureSet;a.j.sloi||(a.j.sloi=new uk);a.j.sloi.j=!0;xk(this.featureSet,"mm",$k);xk(this.featureSet,"ovms",Aha).j=!0;xk(this.featureSet,
"xdi",Bk).j=!0;xk(this.featureSet,"amp",Bk).j=!0;xk(this.featureSet,"prf",Bk).j=!0;xk(this.featureSet,"gtx",Bk).j=!0;xk(this.featureSet,"mvp_lv",Bk).j=!0;xk(this.featureSet,"ssmol",Bk).j=!0;xk(this.featureSet,"fmd",Bk).j=!0;this.j=new vha(Vk(),this.featureSet);this.C=!1;this.flags=new wha};
Yk=function(){return Tk(Bha)};
Cha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Nk)var e=c;else e=new Nk,Lk(c,function(h,l){var m=e,n=m.C++;h=Ok(l,h);m.j.push(n);m.u[n]=h});
var f=e.Ge(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Vk(),qha(f))}catch(h){}};
Dha=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};
Eha=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.Sa()};
Fha=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
Gha=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.taskId=this.slotId=void 0};
bl=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=al()||(null!=b?b:1>Math.random())};
Hha=function(a){a&&cl&&al()&&(cl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),cl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Iha=function(){var a=dl;this.j=el;this.JP="jserror";this.QL=!0;this.mH=null;this.u=this.LJ;this.yc=void 0===a?null:a};
Jha=function(a,b,c){var d=ll;return Xk(Yk().j.j,function(){try{if(d.yc&&d.yc.j){var e=d.yc.start(a.toString(),3);var f=b();d.yc.end(e)}else f=b()}catch(l){var h=d.QL;try{Hha(e),h=d.u(a,new ml(nl(l)),void 0,c)}catch(m){d.LJ(217,m)}if(!h)throw l;}return f})()};
ol=function(a,b,c,d){return Xk(Yk().j.j,function(){var e=g.ya.apply(0,arguments);return Jha(a,function(){return b.apply(c,e)},d)})};
nl=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};
ml=function(a){Dha.call(this,Error(a),{message:a})};
Kha=function(){Fk&&"undefined"!=typeof Fk.google_measure_js_timing&&(Fk.google_measure_js_timing||dl.disable())};
Lha=function(a){ll.mH=function(b){g.rc(a,function(c){c(b)})}};
Mha=function(a,b){return Jha(a,b)};
pl=function(a,b){return ol(a,b)};
ql=function(a,b,c,d){ll.LJ(a,b,c,d)};
rl=function(){return Date.now()-Nha};
Oha=function(){var a=Yk().B,b=0<=sl?rl()-sl:-1,c=tl?rl()-ul:-1,d=0<=vl?rl()-vl:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];ql(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
yl=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
zl=function(a){return a.right-a.left};
Al=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};
Bl=function(a,b,c){b instanceof g.Eg?(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};
Cl=function(a,b,c){var d=new yl(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
Dl=function(a,b,c,d,e,f,h,l){this.C=a;this.T=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=h;this.J=l};
Qha=function(a){var b=a!==a.top,c=a.top===gha(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),Hca(Pha,function(h){return"function"===typeof f[h]})||(e=1));
return{Tl:f,compatibility:e,d4:d}};
Rha=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
Sha=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Gg(b.innerWidth,b.innerHeight)).round():Kda(b||window).round()}catch(d){return new g.Gg(-12245933,-12245933)}};
El=function(a,b,c){try{a&&(b=b.top);var d=Sha(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new yl(f,f,f,f);var h=Mda(Sg(b.document).j),l=h.x,m=h.y;return new yl(m,l+f,m+e,l)}catch(n){return new yl(-12245933,-12245933,-12245933,-12245933)}};
g.Fl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Gl=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.Il=function(a,b,c){if("string"===typeof b)(b=Hl(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Hl(c,d);f&&(c.style[f]=e)}};
Hl=function(a,b){var c=Tha[b];if(!c){var d=Dda(b);c=d;void 0===a.style[d]&&(d=(g.df?"Webkit":Jl?"Moz":g.Yg?"ms":null)+Fda(d),void 0!==a.style[d]&&(c=d));Tha[b]=c}return c};
g.Kl=function(a,b){var c=a.style[Dda(b)];return"undefined"!==typeof c?c:a.style[Hl(a,b)]||""};
Ll=function(a,b){var c=Rg(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Ml=function(a,b){return Ll(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Ol=function(a,b,c){if(b instanceof g.Eg){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Nl(d,!1);a.style.top=g.Nl(b,!1)};
Pl=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Uha=function(a){if(g.Yg&&!g.Ac(8))return a.offsetParent;var b=Rg(a),c=Ml(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=Ml(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.Ql=function(a){var b=Rg(a),c=new g.Eg(0,0);var d=b?Rg(b):document;d=!g.Yg||g.Ac(9)||"CSS1Compat"==Sg(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Pl(a);b=Mda(Sg(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Wha=function(a,b){var c=new g.Eg(0,0),d=Zg(Rg(a));if(!vc(d,"parent"))return c;do{var e=d==b?g.Ql(a):Vha(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.Rl=function(a,b){a=Xha(a);b=Xha(b);return new g.Eg(a.x-b.x,a.y-b.y)};
Vha=function(a){a=Pl(a);return new g.Eg(a.left,a.top)};
Xha=function(a){if(1==a.nodeType)return Vha(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Eg(a.clientX,a.clientY)};
g.Sl=function(a,b,c){if(b instanceof g.Gg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Nl(b,!0);a.style.height=g.Nl(c,!0)};
g.Nl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Tl=function(a){var b=Yha;if("none"!=Ml(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};
Yha=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.df&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Pl(a),new g.Gg(a.right-a.left,a.bottom-a.top)):new g.Gg(b,c)};
g.Ul=function(a,b){a.style.display=b?"":"none"};
Vl=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Zha=function(a){return new yl(a.top,a.right,a.bottom,a.left)};
$ha=function(a){var b=a.top||0,c=a.left||0;return new yl(b,c+(a.width||0),b+(a.height||0),c)};
Wl=function(a){return null!=a&&0<=a&&1>=a};
aia=function(){var a=g.sb();return a?Xl("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return jb(a,b)})||jb(a,"OMI/")&&!jb(a,"XiaoMi/")?!0:jb(a,"Presto")&&jb(a,"Linux")&&!jb(a,"X11")&&!jb(a,"Android")&&!jb(a,"Mobi"):!1};
bia=function(){this.B=!Kk(Fk.top);this.isMobileDevice=Jk()||$ga();var a=Mk();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.fi(a[a.length-1].url)||"":"";this.j=new yl(0,0,0,0);this.C=new g.Gg(0,0);this.D=new g.Gg(0,0);this.J=new yl(0,0,0,0);this.I=0;this.T=!1;this.u=!(!Fk||!Qha(Fk).Tl);this.update(Fk)};
cia=function(a,b){b&&b.screen&&(a.C=new g.Gg(b.screen.width,b.screen.height))};
dia=function(a,b){var c=a.j?new g.Gg(zl(a.j),a.j.getHeight()):new g.Gg(0,0);b=void 0===b?Fk:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var r=new g.Gg(e,d)}catch(w){r=new g.Gg(-12245933,-12245933)}a.D=r};
$l=function(){var a=Yl();if(0<a.I||a.T)return!0;a=Vk().u.isVisible();var b=0===Ik(Zl);return a||b};
Yl=function(){return Tk(bia)};
am=function(a){this.B=a;this.u=0;this.j=null};
bm=function(a,b,c){this.B=a;this.Oa=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new Cl(-1,!0,this);this.j=this;this.T=b;this.ea=this.Z=!1;this.Ba="uk";this.Aa=!1;this.I=!0};
cm=function(a,b){g.Sb(a.D,b)||(a.D.push(b),b.Cw(a.j),b.Mq(a.C),b.Rn()&&(a.Z=!0))};
eia=function(a){a=a.j;a.ON();a.NN();var b=Yl();b.J=El(!1,a.B,b.isMobileDevice);dia(Yl(),a.B);a.C.j=a.kQ()};
fia=function(a){a.Z=a.D.length?Xl(a.D,function(b){return b.Rn()}):!1};
gia=function(a){var b=g.ec(a.D);g.rc(b,function(c){c.Mq(a.C)})};
dm=function(a){var b=g.ec(a.D);g.rc(b,function(c){c.Cw(a.j)});
a.j!=a||gia(a)};
em=function(a,b,c,d){this.element=a;this.j=new yl(0,0,0,0);this.C=new yl(0,0,0,0);this.u=b;this.featureSet=c;this.oa=d;this.ea=!1;this.timestamp=-1;this.J=new Dl(b.C,this.element,this.j,new yl(0,0,0,0),0,0,rl(),0)};
fm=function(a){this.D=!1;this.j=a;this.C=function(){}};
hia=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.yd=null==b?"":b};
iia=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}};
jia=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.yd<typeof b.yd?!0:typeof a.yd>typeof b.yd?!1:a.yd<b.yd};
gm=function(){this.B=0;this.j=[];this.u=!1};
kia=function(a,b){(0,g.rc)(b.j,function(c){a.add(c.j,c.yd,iia(c))})};
hm=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Lk(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
im=function(a){var b=lia;a.u&&(g.oc(a.j,function(c,d){return jia(d,c)?1:jia(c,d)?-1:0}),a.u=!1);
return Sk(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
lia=function(a){var b=a.j;a=a.yd;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Sb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
mia=function(a){var b=void 0===b?!0:b;this.j=new gm;void 0!==a&&kia(this.j,a);b&&this.j.add("v",jm,-16)};
nia=function(a){var b=[],c=[];g.hf(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)};
oia=function(){if(jm&&"unreleased"!==jm)return jm};
pia=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=oia();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);Vk();qha(b)};
qia=function(){this.j=0};
ria=function(a,b,c){(0,g.rc)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),h=new gm;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=Tk(qia);h.add("i",d.j++);h.add("adk",e);hm(h,f);e=new mia(h);pia(e)}})};
km=function(){this.u=this.B=this.C=this.j=0};
lm=function(a){this.u=a=void 0===a?sia:a;this.j=g.Vd(this.u,function(){return new km})};
mm=function(a,b){return tia(a,function(c){return c.j},void 0===b?!0:b)};
om=function(a,b){return nm(a,b,function(c){return c.j})};
uia=function(a,b){return tia(a,function(c){return c.B},void 0===b?!0:b)};
pm=function(a,b){return nm(a,b,function(c){return c.B})};
qm=function(a,b){return nm(a,b,function(c){return c.u})};
via=function(a){g.rc(a.j,function(b){b.u=0})};
tia=function(a,b,c){a=g.Vd(a.j,function(d){return b(d)});
return c?a:wia(a)};
nm=function(a,b,c){var d=g.Rb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
wia=function(a){return g.Vd(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
rm=function(){this.u=new lm;this.Oa=new km;this.oa=this.J=-1;this.Xa=1E3;this.ib=new lm([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ba=this.ya=-1};
sm=function(a,b){return uia(a.u,void 0===b?!0:b)};
tm=function(a,b,c,d){var e=void 0===e?!1:e;c=ol(d,c);Hk(a,b,c,{capture:e})};
vm=function(a,b){b=um(b);return 0===b?0:um(a)/b};
um=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
xia=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.gh(a)||a){var d=Rg(a),e=d&&Zg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
yia=function(a,b,c){if(!a||!b)return!1;b=Bl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Kk(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Rha())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Rg(c))&&b.defaultView&&b.defaultView.frameElement)&&xia(b,a);var d=a===c;a=!d&&a&&kh(a,function(e){return e===c});
return!(b||d||a)};
zia=function(a,b,c,d){return Yl().B?!1:0>=zl(a)||0>=a.getHeight()?!0:c&&d?Mha(208,function(){return yia(a,b,c)}):!1};
wm=function(a,b,c){g.K.call(this);this.position=Aia.clone();this.dE=this.nD();this.JJ=-2;this.v4=Date.now();this.cU=-1;this.lastUpdateTime=b;this.UD=null;this.gz=!1;this.mE=null;this.opacity=-1;this.requestSource=c;this.D4=!1;this.OJ=function(){};
this.sU=function(){};
this.Oi=new Xga;this.Oi.Yq=a;this.Oi.j=a;this.Tq=!1;this.Ls={YJ:null,WJ:null};this.FT=!0;this.lB=null;this.Ew=this.n_=!1;Yk().I++;this.Ug=this.II();this.ZT=-1;this.Re=null;this.hasCompleted=this.k_=!1;this.featureSet=new wk;Wga(this.featureSet);Bia(this);1==this.requestSource?yk(this.featureSet,"od",1):yk(this.featureSet,"od",0)};
Bia=function(a){a=a.Oi.Yq;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Cia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Eda()):!!a.getAttribute("data-"+Eda());b&&(Yl().u=!0)};
xm=function(a,b){b!=a.Ew&&(a.Ew=b,a=Yl(),b?a.I++:0<a.I&&a.I--)};
Dia=function(a,b){if(a.Re){if(b.getName()===a.Re.getName())return;a.Re.dispose();a.Re=null}b=b.create(a.Oi.j,a.featureSet,a.Rn());if(b=null!=b&&b.uG()?b:null)a.Re=b};
Eia=function(a,b,c){if(!a.UD||-1==a.lastUpdateTime||-1===b.u||-1===a.UD.u)return 0;a=b.u-a.UD.u;return a>c?0:a};
Fia=function(a,b,c){if(a.Re){a.Re.Zp();var d=a.Re.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.mE=new g.Eg(h.left-f.left,h.top-f.top)}f=a.jF()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.gQ(d);a.UD=d;a.La(f,b,c,!1,h,e,d.J)}};
Gia=function(a){if(a.gz&&a.lB){var b=1==zk(a.featureSet,"od"),c=Yl().j,d=a.lB,e=a.Re?a.Re.getName():"ns",f=new g.Gg(zl(c),c.getHeight());c=a.jF();a={j4:e,mE:a.mE,Y4:f,jF:c,Rd:a.Ug.Rd,R4:b};if(b=d.u){b.Zp();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.Eg(h.left-f.left,h.top-f.top),l=new g.Gg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={j4:b.getName(),mE:h,Y4:l,jF:c,R4:!1,Rd:e}}else c=null;c&&ria(d,a,c)}};
Hia=function(a,b,c){b&&(a.OJ=b);c&&(a.sU=c)};
g.ym=function(){};
g.zm=function(a){return{value:a,done:!1}};
Iia=function(){this.C=this.j=this.B=this.u=this.D=0};
Jia=function(a){var b={};var c=g.Sa()-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};
Kia=function(){rk.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Am=function(a){return Wl(a.volume)&&0<a.volume};
Bm=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 Lia(f,b,c)}};
Cm=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Mia=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}};
Lia=function(a,b,c){return void 0===c||c?g.Dm(a,function(d,e){return g.Sb(b,e)}):g.Vd(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
Gm=function(){this.u=this.j=""};
Nia=function(){};
Hm=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.Af(c,a);return im(hm(new gm,c))};
Oia=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};
Im=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)};
Pia=function(a){var b=g.of(a.u),c=0,d;for(d in a.j)g.Sb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
Qia=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};
Jm=function(){this.j=this.u=0};
Km=function(){rm.call(this);this.B=new km;this.Ma=this.Z=this.Aa=0;this.T=-1;this.kb=new km;this.D=new km;this.j=new lm;this.I=this.C=-1;this.ea=new km;this.Xa=2E3;this.Ka=new Jm;this.Wa=new Jm;this.Sa=new Jm};
Lm=function(a,b,c){var d=a.Ma;tl||c||-1==a.T||(d+=b-a.T);return d};
Ria=function(){this.B=!1};
Mm=function(a,b){this.B=!1;this.C=a;this.Z=b;this.D=0};
Nm=function(a,b){Mm.call(this,a,b);this.J=[]};
Om=function(a,b,c,d){em.call(this,a,b,c,d)};
Pm=function(a,b,c){em.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
Qm=function(a){return[a.top,a.left,a.bottom,a.right]};
Rm=function(a,b,c,d,e,f,h){f=void 0===f?null:f;h=void 0===h?[]:h;wm.call(this,b,c,d);this.SK=e;this.ZH=0;this.Wg={};this.Og=new Oia;this.JU={};this.uh="";this.Wa=null;this.yb=!1;this.j=[];this.kp=f;this.I=h;this.C=null;this.B=-1;this.Ma=this.Z=void 0;this.oa=this.ea=0;this.Ba=-1;this.ib=this.Xa=!1;this.Aa=this.T=this.u=this.Lx=this.qb=0;new lm;this.Ka=this.Oa=0;this.Sa=-1;this.Lh=0;this.J=g.Qf;this.ya=[this.nD()];this.Mb=2;this.xu={};this.xu.pause="p";this.xu.resume="r";this.xu.skip="s";this.xu.mute=
"m";this.xu.unmute="um";this.xu.exitfullscreen="ef";this.D=null;this.kb=!1};
Sm=function(a){a.hasCompleted=!0;0!=a.Lh&&(a.Lh=3)};
Vm=function(a){return void 0===a?a:Number(a)?Vl(a,3):0};
Wm=function(a,b){return a.ya[null!=b&&b<a.ya.length?b:a.ya.length-1]};
Sia=function(a){var b=!!zk(Yk().featureSet,"umt");return a.Z||!b&&!a.Ma?0:1};
Tia=function(a,b){a.ep()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ea;var d=c-a.ea,e=0;0<=d?(a.oa+=b,a.Ka+=Math.max(b-d,0),e=Math.min(d,a.oa)):a.Oa+=Math.abs(d);0!=d&&(a.oa=0);-1==a.Sa&&0<d&&(a.Sa=0<=vl?rl()-vl:-1);a.ea=c;return e};
Uia=function(a,b){Xl(a.I,function(c){return c.C==b.C})||a.I.push(b)};
Via=function(a){var b=om(a.ji().j,1);return Xm(a,b)};
Xm=function(a,b,c){return 15E3<=b?!0:a.Xa?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Ba?b>=a.Ba:!1:!1};
Wia=function(a){var b=Vl(a.Ug.Rd,2),c=a.Og.B,d=a.Ug,e=Wm(a),f=Vm(e.C),h=Vm(e.I),l=Vm(d.volume),m=Vl(e.J,2),n=Vl(e.oa,2),p=Vl(d.Rd,2),q=Vl(e.ya,2),r=Vl(e.Ba,2);d=Vl(d.gj,2);a=a.Hq().clone();a.round();e=sm(e,!1);return{X4:b,Xz:c,fE:f,aE:h,My:l,gE:m,bE:n,Rd:p,hE:q,cE:r,gj:d,position:a,kE:e}};
Yia=function(a,b){Xia(a.j,b,function(){return{X4:0,Xz:void 0,fE:-1,aE:-1,My:-1,gE:-1,bE:-1,Rd:-1,hE:-1,cE:-1,gj:-1,position:void 0,kE:[]}});
a.j[b]=Wia(a)};
Xia=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Zm=function(a,b,c){var d=a.JU[b];if(null!=d)return d;d=Zia(a,b);var e=rf(Ym,function(f){return f==b});
a=$ia(a,d,d,c,aja[Ym[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
$m=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
$ia=function(a,b,c,d,e){if(a.Tq)return{"if":0,vs:0};var f=a.Hq().clone();f.round();var h=Yl(),l=Yk(),m=a.ji(),n=a.Re?a.Re.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.v4;p.p=[f.top,f.left,f.bottom,f.right];p.tos=mm(m.u,!1);p.mtos=sm(m);p.mcvt=m.Oa.B;p.ps=void 0;f=Lm(m,rl(),a.ep());p.vht=f;p.mut=m.kb.B;p.a=Vm(a.Ug.volume);p.mv=Vm(m.I);p.fs=a.Ew?1:0;p.ft=m.ea.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=mm(m.j);p.ssb=mm(m.ib,!1);p.amtos=uia(m.j,!1);p.uac=a.qb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=Xm(a,m.B.j,!0)?1:0;p.efpf=a.Mb;if("gsv"==n||"nis"==n)n=a.Re,0<n.D&&(p.nnut=n.D);p.tcm=Sia(a);p.nmt=a.Oa;p.bt=a.Ka;p.pst=a.Sa;p.vpaid=a.Z;p.dur=a.B;p.vmtime=a.ea;p.is=a.Og.B;1<=a.j.length&&(p.i0=a.j[0].Xz,p.a0=[a.j[0].My],p.c0=[a.j[0].Rd],p.ss0=[a.j[0].gj],n=a.j[0].position,p.p0=n?Qm(n):void 0);2<=a.j.length&&(p.i1=a.j[1].Xz,p.a1=$m(a.j[1].fE,a.j[1].My,a.j[1].aE),p.c1=$m(a.j[1].gE,a.j[1].Rd,a.j[1].bE),p.ss1=$m(a.j[1].hE,a.j[1].gj,a.j[1].cE),n=a.j[1].position,p.p1=n?
Qm(n):void 0,p.mtos1=a.j[1].kE);3<=a.j.length&&(p.i2=a.j[2].Xz,p.a2=$m(a.j[2].fE,a.j[2].My,a.j[2].aE),p.c2=$m(a.j[2].gE,a.j[2].Rd,a.j[2].bE),p.ss2=$m(a.j[2].hE,a.j[2].gj,a.j[2].cE),n=a.j[2].position,p.p2=n?Qm(n):void 0,p.mtos2=a.j[2].kE);4<=a.j.length&&(p.i3=a.j[3].Xz,p.a3=$m(a.j[3].fE,a.j[3].My,a.j[3].aE),p.c3=$m(a.j[3].gE,a.j[3].Rd,a.j[3].bE),p.ss3=$m(a.j[3].hE,a.j[3].gj,a.j[3].cE),n=a.j[3].position,p.p3=n?Qm(n):void 0,p.mtos3=a.j[3].kE);p.cs=Qia(a.Og);b&&(p.ic=Pia(a.Og),p.dvpt=m.B.u,p.dvs=qm(m.u,
.5),p.dfvs=qm(m.u,1),p.davs=qm(m.j,.5),p.dafvs=qm(m.j,1),c&&(m.B.u=0,via(m.u),via(m.j)),a.fp()&&(p.dtos=m.Aa,p.dav=m.Z,p.dtoss=a.ZH+1,c&&(m.Aa=0,m.Z=0,a.ZH++)),p.dat=m.D.u,p.dft=m.ea.u,c&&(m.D.u=0,m.ea.u=0));p.ps=[h.D.width,h.D.height];p.bs=[zl(h.j),h.j.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.Lx&&(p.vds=a.Lx);if(0<a.I.length||a.kp)b=g.ec(a.I),a.kp&&b.push(a.kp),p.pings=g.Vd(b,function(q){return q.toString()});
b=g.Vd(g.Dm(a.I,function(q){return q.I()}),function(q){return q.getId()});
Raa(b);p.ces=b;a.u&&(p.vmer=a.u);a.T&&(p.vmmk=a.T);a.Aa&&(p.vmiec=a.Aa);p.avms=a.Re?a.Re.getName():"ns";a.Re&&g.Af(p,a.Re.Dq());d?(p.c=Vl(a.Ug.Rd,2),p.ss=Vl(a.Ug.gj,2)):p.tth=rl()-bja;p.mc=Vl(m.oa,2);p.nc=Vl(m.J,2);p.mv=Vm(m.I);p.nv=Vm(m.C);p.lte=Vl(a.JJ,2);d=Wm(a,e);sm(m);p.qmtos=sm(d);p.qnc=Vl(d.J,2);p.qmv=Vm(d.I);p.qnv=Vm(d.C);p.qas=0<d.C?1:0;p.qi=a.uh;p.avms||(p.avms="geo");p.psm=m.Ka.j;p.psv=m.Ka.getValue();p.psfv=m.Wa.getValue();p.psa=m.Sa.getValue();l=Uga(l.featureSet);l.length&&(p.veid=l);
a.D&&g.Af(p,Jia(a.D));p.avas=a.cD();p.vs=a.mQ();return p};
Zia=function(a,b){if(g.Sb(cja,b))return!0;var c=a.Wg[b];return void 0!==c?(a.Wg[b]=!0,!c):!1};
eja=function(){this.j={};var a=Zg();an(this,a,document);var b=dja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)an(this,c,c.document);an(this,a.top,a.top.document)}}catch(d){}};
dja=function(){var a=document.documentElement;try{if(!Kk(Zg().top))return"2";var b=[],c=Zg(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"}};
an=function(a,b,c){tm(c,"mousedown",function(){return fja(a)},301);
tm(b,"scroll",function(){return gja(a)},302);
tm(c,"touchmove",function(){return hja(a)},303);
tm(c,"mousemove",function(){return ija(a)},304);
tm(c,"keydown",function(){return jja(a)},305)};
fja=function(a){g.hf(a.j,function(b){1E5<b.B||++b.B})};
gja=function(a){g.hf(a.j,function(b){1E5<b.j||++b.j})};
hja=function(a){g.hf(a.j,function(b){1E5<b.j||++b.j})};
jja=function(a){g.hf(a.j,function(b){1E5<b.u||++b.u})};
ija=function(a){g.hf(a.j,function(b){1E5<b.C||++b.C})};
kja=function(){this.j=[];this.u=[]};
bn=function(a,b){return g.Qb(a.j,function(c){return c.uh==b})};
lja=function(a,b){return b?g.Qb(a.j,function(c){return c.Oi.Yq==b}):null};
mja=function(a,b){return g.Qb(a.u,function(c){return 2==c.qn()&&c.uh==b})};
dn=function(){var a=cn;return 0==a.j.length?a.u:0==a.u.length?a.j:g.dc(a.u,a.j)};
nja=function(a,b){a=1==b.qn()?a.j:a.u;var c=Pb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Re&&b.Re.vy(),b.dispose(),!0):!1};
oja=function(a){var b=cn;if(nja(b,a)){switch(a.qn()){case 0:var c=function(){return null};
case 2:c=function(){return mja(b,a.uh)};
break;case 1:c=function(){return bn(b,a.uh)}}for(var d=c();d;d=c())nja(b,d)}};
pja=function(a,b){var c=cn;a=g.Dm(a,(void 0===b?0:b)?function(d){return!bn(c,d.uh)}:function(d){return!lja(c,d.Oi.Yq)});
c.j.push.apply(c.j,g.u(a))};
qja=function(a){var b=[];g.rc(a,function(c){Xl(cn.j,function(d){return d.Oi.Yq===c.Oi.Yq&&d.uh===c.uh})||(cn.j.push(c),b.push(c))})};
en=function(){this.j=this.u=null};
rja=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.PN()});
a.j&&(a.j.init(c)?eia(a.j.j):b(a.j.j.ow(),a.j));return null!=a.j};
fn=function(a){a=sja(a);fm.call(this,a.length?a[a.length-1]:new bm(Fk,0));this.B=a;this.u=null};
sja=function(a){if(!a.length)return[];a=(0,g.Dm)(a,function(c){return null!=c&&c.uy()});
for(var b=1;b<a.length;b++)cm(a[b-1],a[b]);return a};
gn=function(a,b,c,d){em.call(this,a,b,c,d);this.Z=this.T=this.D=this.I=this.B=null};
hn=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
uja=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=Yk().j.j;a.B=new c.IntersectionObserver(Xk(d,function(e){return jn(a,e)}),tja);
d=Xk(d,function(){a.B.unobserve(b);a.B.observe(b);jn(a,hn(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.D=new g.C.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);jn(a,hn(a));return!0};
jn=function(a,b){try{if(b.length){a.T||(a.T=rl());var c=vja(b),d=Wha(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new yl(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Zha(c.intersectionRect);a.C=Bl(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.vy(),ql(299,l)}};
vja=function(a){return Sk(a,function(b,c){return b.time>c.time?b:c},a[0])};
kn=function(a){a=void 0===a?Fk:a;fm.call(this,new bm(a,2))};
ln=function(){var a=wja();bm.call(this,Fk.top,a,"geo")};
wja=function(){Yk();var a=Yl();return a.B||a.u?0:2};
xja=function(){};
mn=function(){this.done=!1;this.j={eY:0,LO:0,C6a:0,EP:0,jJ:-1,MY:0,LY:0,OY:0,i4:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new am(this)};
on=function(){var a=nn;a.I||(a.I=!0,yja(a,function(){return a.C.apply(a,g.u(g.ya.apply(0,arguments)))}),a.C())};
zja=function(){Tk(xja);var a=Tk(en);null!=a.j&&a.j.j?eia(a.j.j):Yl().update(Fk)};
pn=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{zja();var d=rl();Yk().D=d;if(null!=Tk(en).j)for(var e=0;e<b.length;e++)Fia(b[e],d,c);for(d=0;d<b.length;d++)Gia(b[d]);++a.j.EP}finally{c?g.rc(b,function(f){f.Ug.Rd=0}):a.u.schedule()}}};
yja=function(a,b){if(!a.D){b=ol(142,b);Vk();var c;Zl.visibilityState?c="visibilitychange":Zl.mozVisibilityState?c="mozvisibilitychange":Zl.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Hk(Zl,c,b,{capture:!1})&&(a.D=b)}};
Aja=function(){var a=Tk(en);if(null!=a.j){var b=dn(),c=a.j;g.rc(b,function(d){return Dia(d,c)})}};
Bja=function(a,b){a=a.J;tl&&(a+=b-ul);return a};
Dja=function(a){a=void 0===a?function(){return{}}:a;
ll.JP="av-js";el.j=.01;Lha([function(b){var c=Yk(),d={};d=(d.bin=c.u,d.type="error",d);c=Ak(c.featureSet);if(!nn.B){var e=nn,f=Fk.document,h=0<=sl?rl()-sl:-1,l=rl();-1==e.j.jJ&&(h=l);var m=Yl(),n=Yk(),p=Ak(n.featureSet),q=dn();try{if(0<q.length){var r=m.j;r&&(p.bs=[zl(r),r.getHeight()]);var w=m.D;w&&(p.ps=[w.width,w.height]);Fk.screen&&(p.scs=[Fk.screen.width,Fk.screen.height])}else p.url=encodeURIComponent(Fk.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=sl;p.bin=n.u;void 0!==Fk.google_osd_load_pub_page_exp&&(p.olpp=Fk.google_osd_load_pub_page_exp);p.deb=[1,e.j.eY,e.j.LO,e.j.EP,e.j.jJ,0,e.u.u,e.j.MY,e.j.LY,e.j.OY,e.j.i4,-1].join(";");p.tvt=Bja(e,l);m.u&&(p.inapp=1);if(null!==Fk&&Fk!=Fk.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Fk.location.href.substring(0,512)));var y=m.J;p.is=[zl(y),y.getHeight()]}}catch(z){p.error=1}nn.B=p}r=g.yf(nn.B);w=Yk().j;1==zk(w.B,"prf")?(y=new Wk,e=w.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),y=Bd(y,1,
e.C+f,0),e=w.j,y=Bd(y,5,-1<e.j?e.u+1:e.u,0),y=Bd(y,2,w.u.j.B(),0),y=Bd(y,3,w.u.j.u(),0),w=Bd(y,4,w.u.j.j(),0),y={},w=(y.pf=g.Bc(g.Me(w,Cja)),y)):w={};g.Af(r,w);g.Af(b,d,c,r,a());if(d=oia())c={},g.Af(b,(c.v=encodeURIComponent(d),c))}])};
Fja=function(){var a=Eja||Fk;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("&")};
qn=function(){var a="youtube.player.web_20221113_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20221113_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20221113_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20221113_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20221113_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
Gja=function(){return"av.default_js".includes("ima_html5_sdk")?{Xm:"ima",Zm:null}:"av.default_js".includes("ima_native_sdk")?{Xm:"nima",Zm:null}:"av.default_js".includes("admob-native-video-javascript")?{Xm:"an",Zm:null}:"youtube.player.web_20221113_00_RC00".includes("cast_js_sdk")?{Xm:"cast",Zm:qn()}:"youtube.player.web_20221113_00_RC00".includes("youtube.player.web")?{Xm:"yw",Zm:qn()}:"youtube.player.web_20221113_00_RC00".includes("outstream_web_client")?{Xm:"out",Zm:qn()}:"youtube.player.web_20221113_00_RC00".includes("drx_rewarded_web")?
{Xm:"r",Zm:qn()}:"youtube.player.web_20221113_00_RC00".includes("gam_native_web_video")?{Xm:"n",Zm:qn()}:"youtube.player.web_20221113_00_RC00".includes("admob_interstitial_video")?{Xm:"int",Zm:qn()}:{Xm:"j",Zm:null}};
tn=function(a,b){var c={sv:"941"};null!==rn&&(c.v=rn);c.cb=Hja;c.nas=cn.j.length;c.msg=a;void 0!==b&&(a=Ija(b))&&(c.e=sn[a]);return c};
un=function(a){return bb(a,"custom_metric_viewable")};
Ija=function(a){var b=un(a)?"custom_metric_viewable":a.toLowerCase();return rf(Ym,function(c){return c==b})};
Jja=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
Mja=function(a){try{var b=a.split(",");return b.length>g.of(Kja).length?null:Sk(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Lja[d[0]]||!Lja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
Nja=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?pm(b.j,a.j):pm(b.u,a.j);case "tos":return a.u?om(b.j,a.j):om(b.u,a.j)}return 0};
vn=function(a,b,c,d){Mm.call(this,b,d);this.J=a;this.T=c};
Oja=function(){};
wn=function(){};
xn=function(){};
yn=function(a){Mm.call(this,"fully_viewable_audible_half_duration_impression",a)};
zn=function(a){this.j=a};
An=function(a,b){Mm.call(this,a,b)};
Bn=function(a){Nm.call(this,"measurable_impression",a)};
Cn=function(){zn.apply(this,arguments)};
Dn=function(a,b,c){Pm.call(this,a,b,c)};
En=function(a){a=void 0===a?Fk:a;fm.call(this,new bm(a,2))};
Fn=function(a,b,c){Pm.call(this,a,b,c)};
Gn=function(a){a=void 0===a?Fk:a;fm.call(this,new bm(a,2))};
Hn=function(){bm.call(this,Fk,2,"mraid");this.Ka=0;this.oa=this.ya=!1;this.J=null;this.u=Qha(this.B);this.C.j=new yl(0,0,0,0);this.Ma=!1};
In=function(a,b,c){a.Ir("addEventListener",b,c)};
Sja=function(a){Yk().C=!!a.Ir("isViewable");In(a,"viewableChange",Pja);"loading"===a.Ir("getState")?In(a,"ready",Qja):Rja(a)};
Rja=function(a){"string"===typeof a.u.Tl.AFMA_LIDAR?(a.ya=!0,Tja(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))};
Tja=function(a){a.oa=!1;var b=1==zk(Yk().featureSet,"rmmt"),c=!!a.Ir("isViewable");(b?!c:1)&&Vk().setTimeout(pl(524,function(){a.oa||(Uja(a),ql(540,Error()),a.J="mt",a.fail("w"))}),500);
Vja(a);In(a,a.u.Tl.AFMA_LIDAR,Wja)};
Vja=function(a){var b=1==zk(Yk().featureSet,"sneio"),c=void 0!==a.u.Tl.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Tl.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Tl.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Tl.AFMA_LIDAR_EXP_1=!b)};
Uja=function(a){a.Ir("removeEventListener",a.u.Tl.AFMA_LIDAR,Wja);a.ya=!1};
Xja=function(a,b){if("loading"===a.Ir("getState"))return new g.Gg(-1,-1);b=a.Ir(b);if(!b)return new g.Gg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Gg(-1,-1):new g.Gg(a,b)};
Qja=function(){try{var a=Tk(Hn);a.Ir("removeEventListener","ready",Qja);Rja(a)}catch(b){ql(541,b)}};
Wja=function(a,b){try{var c=Tk(Hn);c.oa=!0;var d=a?new yl(a.y,a.x+a.width,a.y+a.height,a.x):new yl(0,0,0,0);var e=rl(),f=$l();var h=new Cl(e,f,c);h.j=d;h.volume=b;c.Mq(h)}catch(l){ql(542,l)}};
Pja=function(a){var b=Yk(),c=Tk(Hn);a&&!b.C&&(b.C=!0,c.Ma=!0,c.J&&c.fail("w",!0))};
Jn=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.XZ,a.firstquartile=this.SZ,a.midpoint=this.UZ,a.thirdquartile=this.YZ,a.complete=this.PZ,a.error=this.QZ,a.pause=this.RK,a.resume=this.lT,a.skip=this.WZ,a.viewable_impression=this.un,a.mute=this.Fx,a.unmute=this.Fx,a.fullscreen=this.TZ,a.exitfullscreen=this.RZ,a.fully_viewable_audible_half_duration_impression=this.un,a.measurable_impression=this.un,a.abandon=this.RK,a.engagedview=this.un,a.impression=this.un,a.creativeview=
this.un,a.progress=this.Fx,a.custom_metric_viewable=this.un,a.bufferstart=this.RK,a.bufferfinish=this.lT,a.audio_measurable=this.un,a.audio_audible=this.un,a);a={};this.T=(a.overlay_resize=this.VZ,a.abandon=this.aJ,a.close=this.aJ,a.collapse=this.aJ,a.overlay_unmeasurable_impression=function(b){return Zm(b,"overlay_unmeasurable_impression",$l())},a.overlay_viewable_immediate_impression=function(b){return Zm(b,"overlay_viewable_immediate_impression",$l())},a.overlay_unviewable_impression=function(b){return Zm(b,
"overlay_unviewable_impression",$l())},a.overlay_viewable_end_of_session_impression=function(b){return Zm(b,"overlay_viewable_end_of_session_impression",$l())},a);
Yk().u=3;Yja(this);this.B=!1};
Kn=function(a,b,c,d){b=a.WA(null,d,!0,b);b.C=c;pja([b],a.B);return b};
Zja=function(a,b,c){Sga(b);var d=a.j;g.rc(b,function(e){var f=g.Vd(e.criteria,function(h){var l=Mja(h);if(null==l)h=null;else if(h=new Jja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=yaa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Xl(f,function(h){return null==h})||Uia(c,new vn(e.id,e.event,f,d))})};
$ja=function(){var a=[],b=Yk();a.push(Tk(ln));zk(b.featureSet,"mvp_lv")&&a.push(Tk(Hn));b=[new En,new Gn];b.push(new fn(a));b.push(new kn(Fk));return b};
aka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=rl(),c=Yk(),d=Yl();sl=b;c.B=79463069;"o"!==a.u&&(Eja=gha(Fk));if(rha()){nn.j.LO=0;nn.j.jJ=rl()-b;var e=$ja(),f=Tk(en);f.u=e;rja(f,function(){Ln()})?nn.done||(Aja(),cm(f.j.j,a),on()):d.B?Ln():on()}else Mn=!0}catch(h){throw cn.reset(),h;
}}};
On=function(a){nn.u.cancel();Nn=a;nn.done=!0};
Pn=function(a){if(a.u)return a.u;var b=Tk(en).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};
Qn=function(a,b,c){if(null==a.j)return b.Lx|=4,!1;a=bka(a.j,c,b);b.Lx|=a;return 0==a};
Ln=function(){var a=[new kn(Fk)],b=Tk(en);b.u=a;rja(b,function(){On("i")})?nn.done||(Aja(),on()):On("i")};
cka=function(a,b){if(!a.yb){var c=Zm(a,"start",$l());c=a.SK.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="941";null!==rn&&(d.v=rn);gi(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=Fja();gi(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20221116135136/https://pagead2.googlesyndication.com/pagead/gen_204?"+im(hm(new gm,d));pia(b);a.yb=!0}};
Rn=function(a,b,c){pn(nn,[a],!$l());Yia(a,c);4!=c&&Xia(a.ya,c,a.nD);return Zm(a,b,$l())};
Yja=function(a){Dja(function(){var b=dka();null!=a.u&&(b.sdk=a.u);var c=Tk(en);null!=c.j&&(b.avms=c.j.getName());return b})};
eka=function(a,b,c,d){if(a.B)var e=bn(cn,b);else e=lja(cn,c),null!==e&&e.uh!==b&&(a.bz(e),e=null);e||(b=a.WA(c,rl(),!1,b),0==cn.u.length&&(Yk().B=79463069),qja([b]),e=b,e.C=Pn(a),d&&(e.Wa=d));return e};
fka=function(a){g.rc(cn.j,function(b){3==b.Lh&&a.bz(b)})};
gka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
dka=function(){var a=Yl(),b={},c={},d={};return Object.assign({},(b.sv="941",b),null!==rn&&(c.v=rn,c),(d["if"]=a.B?"1":"0",d.nas=String(cn.j.length),d))};
Sn=function(a){Mm.call(this,"audio_audible",a)};
Tn=function(a){Nm.call(this,"audio_measurable",a)};
Un=function(){zn.apply(this,arguments)};
Vn=function(){};
hka=function(a){this.j=a};
bka=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==rn&&(d.v=rn,d),(e.sv="941",e.cb=Hja,e.e=ika(b),e));e=Zm(c,b,$l());g.Af(d,e);c.JU[b]=e;d=2==c.qn()?nia(d).join("&"):c.SK.j(d).j;try{return a(c.uh,d,b),0}catch(f){return 2}}else return 1};
ika=function(a){var b=un(a)?"custom_metric_viewable":a;a=rf(Ym,function(c){return c==b});
return sn[a]};
Wn=function(){Jn.call(this);this.I=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
jka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Zja(a,c,b)};
kka=function(a,b,c){var d=bn(cn,b);d||(d=c.opt_nativeTime||-1,d=Kn(a,b,Pn(a),d),c.opt_osdId&&(d.Wa=c.opt_osdId));return d};
lka=function(a,b,c){var d=bn(cn,b);d||(d=Kn(a,b,"n",c.opt_nativeTime||-1));return d};
mka=function(a,b){var c=bn(cn,b);c||(c=Kn(a,b,"h",-1));return c};
nka=function(a){Yk();switch(Pn(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};
qka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Af(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.uD(b,c);c=f?f.SK:a.VH();if(e.opt_bounds)return c.j(tn("ol",d));if(void 0!==d)if(void 0!==Ija(d))if(Mn)b=tn("ue",d);else if(aka(a),"i"==Nn)b=tn("i",d),b["if"]=0;else if(b=a.uD(b,e))if(a.B&&3==b.Lh)b="stopped";else{b:{"i"==Nn&&(b.Tq=!0,a.DL());f=e.opt_fullscreen;void 0!==f&&xm(b,!!f);var h;if(f=!Yl().u)(f=jb(g.sb(),"CrKey")||jb(g.sb(),"PlayStation")||jb(g.sb(),"Roku")||aia()||jb(g.sb(),"Xbox"))||
(f=g.sb(),f=jb(f,"AppleTV")||jb(f,"Apple TV")||jb(f,"CFNetwork")||jb(f,"tvOS")),f||(f=g.sb(),f=jb(f,"sdk_google_atv_x86")||jb(f,"Android TV")),f=!f;f&&(Vk(),f=0===Ik(Zl));if(h=f){switch(b.qn()){case 1:cka(b,"pv");break;case 2:a.mL(b)}On("pv")}f=d.toLowerCase();if(h=!h)h=zk(Yk().featureSet,"ssmol")&&"loaded"===f?!1:g.Sb(oka,f);if(h&&0==b.Lh){"i"!=Nn&&(nn.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;vl=h="number"===typeof h?h:rl();b.gz=!0;var l=$l();b.Lh=1;b.Wg={};b.Wg.start=!1;b.Wg.firstquartile=
!1;b.Wg.midpoint=!1;b.Wg.thirdquartile=!1;b.Wg.complete=!1;b.Wg.resume=!1;b.Wg.pause=!1;b.Wg.skip=!1;b.Wg.mute=!1;b.Wg.unmute=!1;b.Wg.viewable_impression=!1;b.Wg.measurable_impression=!1;b.Wg.fully_viewable_audible_half_duration_impression=!1;b.Wg.fullscreen=!1;b.Wg.exitfullscreen=!1;b.ZH=0;l||(b.ji().T=h);pn(nn,[b],!l)}(h=b.xu[f])&&Im(b.Og,h);zk(Yk().featureSet,"fmd")||g.Sb(pka,f)&&b.kp&&b.kp.u(b,null);switch(b.qn()){case 1:var m=un(f)?a.J.custom_metric_viewable:a.J[f];break;case 2:m=a.T[f]}if(m&&
(d=m.call(a,b,e,d),zk(Yk().featureSet,"fmd")&&g.Sb(pka,f)&&b.kp&&b.kp.u(b,null),void 0!==d)){e=tn(void 0,f);g.Af(e,d);d=e;break b}d=void 0}3==b.Lh&&(a.B?b.Re&&b.Re.vy():a.bz(b));b=d}else b=tn("nf",d);else b=void 0;else Mn?b=tn("ue"):f?(b=tn(),g.Af(b,$ia(f,!0,!1,!1))):b=tn("nf");return"string"===typeof b?a.B&&"stopped"===b?Xn:c.j():c.j(b)};
Yn=function(a,b){b&&(a.C=b)};
rka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
Zn=function(a,b,c){c=void 0===c?{}:c;a=qka(Tk(Wn),b,c,a);return rka(a)};
ska=function(a,b){b=void 0===b?!1:b;var c=Tk(Wn).uD(a,{});c?Sm(c):b&&(a=Tk(Wn).WA(null,rl(),!1,a),a.Lh=3,qja([a]))};
vka=function(a){if(g.eb(g.Mg(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Cj(a)}catch(c){return null!=g.Qb(tka,function(d){return 0<a.search(d)})}return b.I.match(uka)?!0:null!=g.Qb(tka,function(c){return null!=a.match(c)})};
g.$n=function(a,b){return a.replace(wka,function(c,d){try{var e=g.uf(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.eb(g.Mg(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
bo=function(a){g.Mf.call(this);var b=this;this.I=this.u=0;this.Rl=null!=a?a:{Wh:function(e,f){return setTimeout(e,f)},
Bl:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.A(function(e){return g.x(e,ao(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.I||xka(this)};
yka=function(){var a=g.co;bo.instance||(bo.instance=new bo(a));return bo.instance};
xka=function(a){a.I=a.Rl.Wh(function(){var b;return g.A(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ja(3):g.x(c,ao(a),3):g.x(c,ao(a),3);xka(a);g.pa(c)})},3E4)};
ao=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.A(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.qa(l,2,3),d&&(a.u=a.Rl.Wh(function(){d.abort()},b||2E4)),g.x(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.gaa(l);a.D=void 0;a.u&&(a.Rl.Bl(a.u),a.u=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.haa(l,0);break;case 2:g.sa(l),h=!1,l.Ja(3)}})})};
eo=function(){this.data_=[];this.j=-1};
zka=function(a){-1===a.j&&(a.j=Sk(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
g.fo=function(a,b,c){g.K.call(this);this.j=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.Pa)(this.zW,this)};
g.go=function(a){a.isActive()||a.start()};
Aka=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Bka=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.ho=function(a,b,c){g.K.call(this);this.j=a;this.Kh=b||0;this.u=c;this.B=(0,g.Pa)(this.RN,this)};
g.io=function(a,b){a.isActive()||a.start(b)};
g.jo=function(a){a.stop();a.RN()};
g.ko=function(a){a.isActive()&&g.jo(a)};
lo=function(a,b){this.j=a[g.C.Symbol.iterator]();this.u=b};
Cka=function(a,b){return new lo(a,b)};
Dka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
mo=function(a){return a.classList?a.classList:Dka(a).match(/\S+/g)||[]};
g.no=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.oo=function(a,b){return a.classList?a.classList.contains(b):g.Sb(mo(a),b)};
g.po=function(a,b){if(a.classList)a.classList.add(b);else if(!g.oo(a,b)){var c=Dka(a);g.no(a,c+(0<c.length?" "+b:b))}};
g.qo=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.po(a,e)});
else{var c={};Array.prototype.forEach.call(mo(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.no(a,b)}};
g.ro=function(a,b){a.classList?a.classList.remove(b):g.oo(a,b)&&g.no(a,Array.prototype.filter.call(mo(a),function(c){return c!=b}).join(" "))};
g.so=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.ro(a,c)}):g.no(a,Array.prototype.filter.call(mo(a),function(c){return!g.Sb(b,c)}).join(" "))};
g.to=function(a,b,c){c?g.po(a,b):g.ro(a,b)};
Eka=function(a,b){var c=!g.oo(a,b);g.to(a,b,c)};
zo=function(a){if(a instanceof uo||a instanceof vo||a instanceof wo)return a;if("function"==typeof a.next)return new uo(function(){return a});
if("function"==typeof a[Symbol.iterator])return new uo(function(){return a[Symbol.iterator]()});
if("function"==typeof a.sj)return new uo(function(){return a.sj()});
throw Error("Not an iterator or iterable.");};
uo=function(a){this.u=a};
vo=function(a){this.u=a};
wo=function(a){uo.call(this,function(){return a});
this.B=a};
g.Ao=function(a,b){this.u={};this.j=[];this.Tr=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.Ao)for(c=a.No(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Fka=function(a,b){return a===b};
Co=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Bo(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],Bo(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
Bo=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Do=function(){g.Mf.call(this);this.j=0;this.endTime=this.startTime=null};
Gka=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.Il(a,"transition",b.join(","))};
Eo=function(a,b,c,d,e){g.Do.call(this);this.u=a;this.I=b;this.J=c;this.D=d;this.T=Array.isArray(e)?e:[e]};
Hka=function(a,b,c,d){return new Eo(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Jka=function(a){a=lb(a);if(""==a)return null;if(db(a,"url("))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;for(var b=/([\-\w]+)\(/g,c;c=b.exec(a);)if(!(c[1].toLowerCase()in Ika))return null}return a};
Fo=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Kka=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Lka=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Yg&&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)};
Qka=function(a){if(!a)return ng;var b=document.createElement("div").style;Mka(a).forEach(function(c){var d=g.df&&c in Nka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");bb(d,"--")||bb(d,"var")||(c=Lka(Oka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Jka(c),null!=c&&Lka(Pka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return yda(g.cg("Output of CSS sanitizer"),b.cssText||"")};
Mka=function(a){g.Ka(a)?a=g.ec(a):(a=g.of(a),g.Wb(a,"cssText"));return a};
g.Ho=function(a){var b,c=b=0,d=!1;a=a.split(Rka);for(var e=0;e<a.length;e++){var f=a[e];g.Go.test(f)?(b++,c++):Ska.test(f)?d=!0:Tka.test(f)?c++:Uka.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
Io=function(a,b,c,d,e,f,h,l){this.j=a;this.J=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.T=l};
Jo=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=Cg(a.j,a.B,b),d=Cg(a.B,a.C,b);a=Cg(a.C,a.u,b);c=Cg(c,d,b);d=Cg(d,a,b);return Cg(c,d,b)};
Vka=function(a,b){var c=(b-a.j)/(a.u-a.j);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=Jo(a,c);var l=(Jo(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;1E-6<Math.abs(f-b)&&8>h;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Jo(a,c);return c};
Ko=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Wka=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")};
Lo=function(a){return(a=a.exec(g.sb()))?a[1]:""};
Mo=function(a){return 0<=g.rb(Xka,a)};
g.No=function(a){g.K.call(this);this.I=1;this.B=[];this.C=0;this.j=[];this.u={};this.J=!!a};
Yka=function(a,b,c){g.uh(function(){a.apply(b,c)})};
g.Oo=function(a){this.j=a};
Po=function(a){this.j=a};
Zka=function(a){this.data=a};
$ka=function(a){return void 0===a||a instanceof Zka?a:new Zka(a)};
Qo=function(a){this.j=a};
g.ala=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Sa()||!!b&&b>g.Sa()};
g.Ro=function(a){this.j=a};
bla=function(){};
So=function(){};
To=function(a){this.j=a};
Uo=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
dla=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
Wo=function(a,b){this.u=a;this.j=null;if(g.Yg&&!g.Ac(9)){Vo||(Vo=new g.Ao);this.j=Vo.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)),Vo.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
Xo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return ela[b]})};
Yo=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Zo=function(a,b){this.u=a;this.j=b+"::"};
g.$o=function(a){var b=new Uo;return b.isAvailable()?a?new Zo(b,a):b:null};
ap=function(a,b){this.j=a;this.yd=b};
bp=function(a){this.j=[];if(a)a:{if(a instanceof bp){var b=a.No();a=a.Ck();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new ap(b[d],a[d]));break a}}else b=g.of(a),a=nf(a);for(c=0;c<b.length;c++)fla(this,b[c],a[c])}};
fla=function(a,b,c){var d=a.j;d.push(new ap(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};
gla=function(){bp.apply(this,arguments)};
cp=function(){};
hla=function(){var a=g.ya.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.ya.apply(0,arguments))))}})};
ila=function(){var a=g.ya.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.u(g.ya.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=hla.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
dp=function(){return Math.random().toString(36).substring(7).split("").join(".")};
jla=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:ep}))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"+dp()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(ep+' 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.'));})};
kla=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;p===n&&(p=n.slice());p.push(w);return function(){if(y){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
y=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}}
function h(w){if("object"!==typeof w||null===w)var y=!1;else{for(y=w;null!==Object.getPrototypeOf(y);)y=Object.getPrototypeOf(y);y=Object.getPrototypeOf(w)===y}if(!y)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}y=n=p;for(var z=0;z<y.length;z++)(0,y[z])();
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(kla)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,q=!1;h({type:ep});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(w){if("function"!==typeof w)throw Error("Expected the nextReducer to be a function.");l=w;h({type:lla});return r},a[mla]=function(){var w={};
return w.subscribe=function(y){function z(){y.next&&y.next(e())}
if("object"!==typeof y||null===y)throw new TypeError("Expected the observer to be an object.");z();return{unsubscribe:f(z)}},w[mla]=function(){return this},w},a);
return r};
fp=function(a){g.I.call(this,a,-1,nla)};
gp=function(a){g.I.call(this,a)};
ola=function(a){var b=a.split(""),c=[1857313293,1743181933,-1157128051,function(d,e,f,h,l){return e(f,h,l)},
1397454627,null,1955225089,-702770505,-30227629,-1251935529,-140097179,1404992819,function(d,e,f,h,l,m,n){return d(l,m,n)},
null,function(d,e,f){var h=d.length;e.forEach(function(l,m,n){this.push(n[m]=d[(d.indexOf(l)-d.indexOf(this[m])+m+h--)%d.length])},f.split(""))},
-1644475367,-1652722992,420870875,19695390,1806366633,-76358804,2061853180,"WcWiYv",-1610430344,-1644475367,1822473984,function(d,e){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f},
616024219,function(d){throw d;},
-754717701,b,978651903,"NJ6YhFQ",function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
2081180409,1181137879,-928135958,-2038679840,978651903,1466827480,null,1089534803,1963913415,-854550558,827610337,function(d,e,f,h,l){return e(f,h,l)},
-1944628690,612322966,-878976573,"\\\\\\\u00de",-908825059,-2034760875,-1933653531,function(d,e,f,h,l,m){return e(h,l,m)},
1058643221,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},
function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
-1182631997,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
-1631981862,-1287046165,-1909503724,-882856766,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
-456324716,-778138720,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
function(d){d.reverse()},
250349337,1212019695,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
"]],{",/(')'("{((),))(,)/,1792299217,1442743212,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
654087840,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
-1716705807,b,-389288030,b];c[5]=c;c[13]=c;c[40]=c;try{try{1<c[60]&&(((0,c[12])(c[56],((0,c[56])(c[20],c[30]),c[56])(c[57],c[82]),(0,c[33])(c[7],c[5]),(0,c[56])(c[new Date("12/31/1969 17:00:23 PDT")/1E3],c[30]),c[11],c[5]),(0,c[66])(c[13],c[8]),c[56])(c[42],c[80]),1)||(0,c[3])(((0,c[66])(c[82],c[77]),c[33])(c[60],c[30])<=(0,c[53])((0,c[26])(c[0],c[5]),c[26],((0,c[67])(c[40]),c[15])(c[128-Math.pow(7,3)%257]),c[69],c[5]),c[66],c[13],c[39]),-1!=c[57]&&(((0,c[65])((0,c[3])(c[33],c[63]),c[25],c[29]),c[15])(c[37],
c[79]),(0,c[36])(c[73]),c[26])(c[48],c[68])*((0,c[16])(c[30],c[12]),c[16])(c[32],c[67]),2>c[62]&&(0,c[3])((((0,c[20])(c[46],c[43]),c[59])(c[51],c[46]),c[66])(c[35],c[30]),c[66],((0,c[6])(c[new Date("Wednesday 31 December 1969 16:01:08 PST")/1E3],c[63]),c[26])(c[38]),c[13],c[36]),(-7==c[10]||((0,c[59])((0,c[21])(c[27],c[49])-(0,c[29])(c[69],c[70]),c[46],(0,c[23])(c[11]),c[59],(0,c[9])(c[57],c[79]),c[63]),0))&&((((0,c[0])(c[70],c[13]),c[16])(c[62],c[23]),c[69])((0,c[9])(c[2],c[63]),c[80],(0,c[54])(),
c[13],c[15]),c[80])((0,c[41])(),c[63],c[15]),(((0,c[11])(),c[0])(c[82],c[65]),c[53])(c[65],c[31])}catch(d){-10!==c[175-Math.pow(8,3)- -410]&&(-2<c[42]||(((0,c[49])(c[13],c[64]),(0,c[80])((0,c[41])(),c[new Date("31 December 1969 19:01:05 CDT")/1E3],c[15]),c[16])(c[34],c[13]),0))&&(((0,c[80])((0,c[276-235*Math.pow(1,2)])(),c[65],c[5]),c[49])(c[71],c[21]),c[0])(c[39],c[63]),4!==c[17]&&(4>c[27]||((((0,c[36])((0,c[53])(c[13],c[20]),c[53],(0,c[50])(c[63]),c[71],c[42]),(0,c[49])(c[71],c[51]),c[56])(c[19]),
(0,c[75])((0,c[3])((0,c[44])(),c[69],c[11]),c[15],c[10],c[458%Math.pow(5,3)+-14]),(0,c[15])(c[4],c[69]),((0,c[65])(c[19]),c[22])(c[50],c[69]),(0,c[15])(c[78],c[29]),c[75])((0,c[75])((0,c[59])(c[29],c[81]),c[59],c[77],c[64]),c[55],c[2],c[33]),""))&&((((0,c[18])((0,c[55])(c[63],c[75]),c[12],c[44],c[9]),c[18])((((((0,c[76])((0,c[42])(),c[9],c[11]),(((0,c[new Date("12/31/1969 19:01:05 CDT")/1E3])((0,c[76])((0,c[34])(),c[59],c[11]),c[55],c[261%Math.pow(7,3)-228],c[9]),c[5])(c[20],c[19]),c[76])((0,c[42])(),
c[59],c[15120-Math.pow(2,4)-15093]),c[55])(c[43],c[61]),c[55])(c[25],c[9]),c[76])((0,c[37])(),c[9],c[1]),c[49])(c[9],c[31]),c[55],c[10],c[67]),c[76])((0,c[42])(),c[61],c[1]),c[76])((0,c[50])(),c[59],c[11])}}catch(d){return"enhanced_except_7pYBken-_w8_"+a}return b.join("")};
g.hp=function(a){this.name=a};
ip=function(a){g.I.call(this,a)};
jp=function(a){g.I.call(this,a)};
kp=function(a){g.I.call(this,a)};
lp=function(a){g.I.call(this,a)};
mp=function(a){g.I.call(this,a,-1,pla)};
np=function(a){g.I.call(this,a,-1,qla)};
op=function(a){g.I.call(this,a)};
pp=function(a){g.I.call(this,a)};
qp=function(a){g.I.call(this,a)};
rp=function(a){g.I.call(this,a)};
sp=function(a){g.I.call(this,a)};
tp=function(a){g.I.call(this,a)};
up=function(a){g.I.call(this,a)};
vp=function(a){g.I.call(this,a)};
wp=function(a){g.I.call(this,a,-1,rla)};
xp=function(a){g.I.call(this,a,-1,sla)};
yp=function(a){g.I.call(this,a)};
zp=function(a){g.I.call(this,a)};
Ap=function(a){g.I.call(this,a)};
Bp=function(a){g.I.call(this,a)};
Cp=function(a){g.I.call(this,a)};
Dp=function(a){g.I.call(this,a)};
Ep=function(a){g.I.call(this,a,-1,tla)};
Fp=function(a){g.I.call(this,a)};
Gp=function(a){g.I.call(this,a,-1,ula)};
Hp=function(a){g.I.call(this,a)};
Ip=function(a){g.I.call(this,a)};
Jp=function(a){g.I.call(this,a)};
Kp=function(a){g.I.call(this,a)};
Lp=function(a){g.I.call(this,a)};
Mp=function(a){g.I.call(this,a)};
Np=function(a){g.I.call(this,a)};
Op=function(a){g.I.call(this,a)};
Pp=function(a){g.I.call(this,a)};
Qp=function(a){g.I.call(this,a)};
Rp=function(a){g.I.call(this,a)};
Sp=function(a){g.I.call(this,a)};
Tp=function(a){g.I.call(this,a,-1,vla)};
Up=function(a){g.I.call(this,a)};
Vp=function(a){g.I.call(this,a)};
Wp=function(a){g.I.call(this,a)};
Xp=function(a){g.I.call(this,a,-1,wla)};
Yp=function(a){g.I.call(this,a)};
Zp=function(a){g.I.call(this,a,-1,xla)};
$p=function(a){g.I.call(this,a)};
aq=function(a){g.I.call(this,a)};
bq=function(a){g.I.call(this,a)};
cq=function(a){g.I.call(this,a)};
dq=function(a){g.I.call(this,a)};
eq=function(a){g.I.call(this,a)};
fq=function(a){g.I.call(this,a)};
gq=function(a){g.I.call(this,a)};
hq=function(a){g.I.call(this,a)};
iq=function(a){g.I.call(this,a)};
jq=function(a){g.I.call(this,a)};
kq=function(a){g.I.call(this,a)};
lq=function(a){g.I.call(this,a)};
mq=function(a){g.I.call(this,a)};
nq=function(a){g.I.call(this,a)};
oq=function(a){g.I.call(this,a)};
pq=function(a){g.I.call(this,a)};
qq=function(a){g.I.call(this,a)};
zla=function(a){g.I.call(this,a,-1,yla)};
g.rq=function(a){g.I.call(this,a,-1,Ala)};
sq=function(a){g.I.call(this,a,-1,Bla)};
tq=function(a){g.I.call(this,a,-1,Cla)};
uq=function(a){g.I.call(this,a)};
vq=function(a){g.I.call(this,a,-1,Dla)};
xq=function(a){g.I.call(this,a,-1,Ela)};
yq=function(a){g.I.call(this,a)};
zq=function(a){g.I.call(this,a)};
Aq=function(a){g.I.call(this,a)};
Bq=function(a){g.I.call(this,a)};
Cq=function(a){g.I.call(this,a)};
Dq=function(a){g.I.call(this,a)};
Eq=function(a){g.I.call(this,a)};
Fq=function(a){g.I.call(this,a)};
Gq=function(a){g.I.call(this,a)};
Hq=function(a){g.I.call(this,a)};
Iq=function(a){g.I.call(this,a,-1,Fla)};
Jq=function(a){g.I.call(this,a,-1,Gla)};
Kq=function(a){g.I.call(this,a)};
Lq=function(a){g.I.call(this,a,-1,Hla)};
Mq=function(a){g.I.call(this,a)};
Nq=function(a){g.I.call(this,a,-1,Ila)};
Oq=function(a){g.I.call(this,a,-1,Jla)};
Pq=function(a){g.I.call(this,a,-1,Kla)};
Qq=function(a){g.I.call(this,a,-1,Lla)};
Rq=function(a){g.I.call(this,a)};
Sq=function(a){g.I.call(this,a,-1,Mla)};
Tq=function(a){g.I.call(this,a)};
Uq=function(a){g.I.call(this,a)};
Vq=function(a){g.I.call(this,a)};
Wq=function(a){g.I.call(this,a)};
Xq=function(a){g.I.call(this,a)};
Yq=function(a){g.I.call(this,a)};
Zq=function(a){g.I.call(this,a)};
$q=function(a){g.I.call(this,a)};
ar=function(a){g.I.call(this,a)};
br=function(a){g.I.call(this,a)};
cr=function(a){g.I.call(this,a)};
dr=function(a){g.I.call(this,a)};
er=function(a){g.I.call(this,a)};
fr=function(a){g.I.call(this,a)};
gr=function(a){g.I.call(this,a)};
hr=function(a){g.I.call(this,a)};
ir=function(a){g.I.call(this,a)};
jr=function(a){g.I.call(this,a)};
kr=function(a){g.I.call(this,a)};
lr=function(a){g.I.call(this,a)};
mr=function(a){g.I.call(this,a)};
nr=function(a){g.I.call(this,a)};
or=function(a){g.I.call(this,a)};
pr=function(a){g.I.call(this,a,-1,Nla)};
qr=function(a){g.I.call(this,a,-1,Ola)};
rr=function(a){g.I.call(this,a,-1,Pla)};
sr=function(a){g.I.call(this,a)};
tr=function(a){g.I.call(this,a)};
ur=function(a){g.I.call(this,a)};
vr=function(a){g.I.call(this,a)};
wr=function(a){g.I.call(this,a)};
xr=function(a){g.I.call(this,a)};
yr=function(a){g.I.call(this,a)};
zr=function(a){g.I.call(this,a,-1,Qla)};
Ar=function(a){g.I.call(this,a,-1,Rla)};
Br=function(a){g.I.call(this,a)};
Cr=function(a){g.I.call(this,a)};
Dr=function(a){g.I.call(this,a)};
Er=function(a){g.I.call(this,a)};
Fr=function(a){g.I.call(this,a)};
Gr=function(a){g.I.call(this,a)};
Hr=function(a){g.I.call(this,a)};
Ir=function(a){g.I.call(this,a)};
Jr=function(a){g.I.call(this,a)};
Kr=function(a){g.I.call(this,a,-1,Sla)};
Lr=function(a){g.I.call(this,a,-1,Tla)};
Mr=function(a){g.I.call(this,a)};
Nr=function(a){g.I.call(this,a)};
Or=function(a){g.I.call(this,a,-1,Ula)};
Pr=function(a){g.I.call(this,a)};
Qr=function(a){g.I.call(this,a,-1,Vla)};
Rr=function(a){g.I.call(this,a)};
Sr=function(a){g.I.call(this,a)};
Tr=function(a){g.I.call(this,a)};
Ur=function(a){g.I.call(this,a)};
Vr=function(a){g.I.call(this,a,-1,Wla)};
Wr=function(a){g.I.call(this,a,-1,Xla)};
Xr=function(a){g.I.call(this,a)};
Yr=function(a){g.I.call(this,a)};
Zr=function(a){g.I.call(this,a)};
$r=function(a){g.I.call(this,a)};
as=function(a){g.I.call(this,a)};
bs=function(a){g.I.call(this,a)};
cs=function(a){g.I.call(this,a)};
ds=function(a){g.I.call(this,a)};
es=function(a){g.I.call(this,a)};
fs=function(a){g.I.call(this,a)};
gs=function(a){g.I.call(this,a,-1,Yla)};
hs=function(a){g.I.call(this,a)};
is=function(a){g.I.call(this,a)};
js=function(a){g.I.call(this,a)};
ks=function(a){g.I.call(this,a,-1,Zla)};
ls=function(a){g.I.call(this,a)};
ms=function(a){g.I.call(this,a)};
ns=function(a){g.I.call(this,a)};
os=function(a){g.I.call(this,a)};
ps=function(a){g.I.call(this,a)};
qs=function(a){g.I.call(this,a)};
rs=function(a){g.I.call(this,a)};
ts=function(a){g.I.call(this,a)};
us=function(a){g.I.call(this,a)};
vs=function(a){g.I.call(this,a)};
ws=function(a){g.I.call(this,a)};
xs=function(a){g.I.call(this,a)};
ys=function(a){g.I.call(this,a)};
zs=function(a){g.I.call(this,a)};
As=function(a){g.I.call(this,a)};
Bs=function(a){g.I.call(this,a)};
Cs=function(a){g.I.call(this,a)};
Ds=function(a){g.I.call(this,a)};
Es=function(a){g.I.call(this,a)};
Fs=function(a){g.I.call(this,a)};
Gs=function(a){g.I.call(this,a)};
Hs=function(a){g.I.call(this,a)};
Is=function(a){g.I.call(this,a)};
Js=function(a){g.I.call(this,a)};
Ks=function(a){g.I.call(this,a)};
Ls=function(a){g.I.call(this,a)};
Ms=function(a){g.I.call(this,a)};
Ns=function(a){g.I.call(this,a)};
Os=function(a){g.I.call(this,a,-1,$la)};
Ps=function(a){g.I.call(this,a,-1,ama)};
Qs=function(a){g.I.call(this,a)};
Rs=function(a){g.I.call(this,a)};
Ss=function(a){g.I.call(this,a)};
Ts=function(a){g.I.call(this,a)};
Us=function(a){g.I.call(this,a)};
Vs=function(a){g.I.call(this,a)};
Ws=function(a){g.I.call(this,a)};
Xs=function(a){g.I.call(this,a)};
Ys=function(a){g.I.call(this,a)};
Zs=function(a){g.I.call(this,a)};
$s=function(a){g.I.call(this,a)};
at=function(a){g.I.call(this,a)};
bt=function(a){g.I.call(this,a,-1,bma)};
ct=function(a){g.I.call(this,a)};
dt=function(a){g.I.call(this,a)};
et=function(a){g.I.call(this,a)};
ft=function(a){g.I.call(this,a)};
gt=function(a){g.I.call(this,a)};
ht=function(a){g.I.call(this,a)};
jt=function(a){g.I.call(this,a)};
kt=function(a){g.I.call(this,a)};
lt=function(a){g.I.call(this,a)};
mt=function(a){g.I.call(this,a)};
nt=function(a){g.I.call(this,a)};
ot=function(a){g.I.call(this,a)};
pt=function(a){g.I.call(this,a)};
qt=function(a){g.I.call(this,a)};
rt=function(a){g.I.call(this,a)};
tt=function(a){g.I.call(this,a)};
ut=function(a){g.I.call(this,a)};
vt=function(a){g.I.call(this,a)};
wt=function(a){g.I.call(this,a)};
xt=function(a){g.I.call(this,a)};
zt=function(a){g.I.call(this,a)};
At=function(a){g.I.call(this,a)};
Bt=function(a){g.I.call(this,a)};
Ct=function(a){g.I.call(this,a)};
Dt=function(a){g.I.call(this,a)};
Et=function(a){g.I.call(this,a)};
cma=function(a,b){H(a,ts,1,b)};
Ft=function(a){g.I.call(this,a)};
dma=function(a,b){H(a,ts,1,b)};
Jt=function(a){g.I.call(this,a,-1,ema)};
fma=function(a,b){H(a,ts,2,b)};
Kt=function(a){g.I.call(this,a)};
Lt=function(a){g.I.call(this,a)};
Mt=function(a){g.I.call(this,a)};
Nt=function(a){g.I.call(this,a)};
Ot=function(a){g.I.call(this,a)};
Pt=function(a){g.I.call(this,a,-1,gma)};
Qt=function(a){g.I.call(this,a)};
Rt=function(a){g.I.call(this,a,-1,hma)};
Tt=function(a,b){Qd(a,68,St,b)};
St=function(a){g.I.call(this,a)};
Ut=function(a){g.I.call(this,a)};
Vt=function(a){g.I.call(this,a,-1,ima)};
Wt=function(a){g.I.call(this,a,-1,jma)};
Xt=function(a){g.I.call(this,a)};
Yt=function(a){g.I.call(this,a)};
Zt=function(a){g.I.call(this,a)};
$t=function(a){g.I.call(this,a,-1,kma)};
au=function(a){g.I.call(this,a)};
bu=function(a){g.I.call(this,a,-1,lma)};
cu=function(a){g.I.call(this,a)};
du=function(a){g.I.call(this,a)};
eu=function(a){g.I.call(this,a)};
fu=function(a){g.I.call(this,a,-1,mma)};
gu=function(a){g.I.call(this,a)};
hu=function(a){g.I.call(this,a)};
iu=function(a){g.I.call(this,a,-1,nma)};
ju=function(a){g.I.call(this,a)};
ku=function(a){g.I.call(this,a)};
lu=function(a){g.I.call(this,a)};
mu=function(a){g.I.call(this,a)};
nu=function(a){g.I.call(this,a,449)};
ou=function(a){g.I.call(this,a)};
pu=function(a){g.I.call(this,a)};
qu=function(a){g.I.call(this,a,-1,oma)};
pma=function(){return g.Ga("yt.ads.biscotti.lastId_")||""};
qma=function(a){g.Ea("yt.ads.biscotti.lastId_",a)};
tu=function(){var a=arguments;1<a.length?ru[a[0]]=a[1]:1===a.length&&Object.assign(ru,a[0])};
g.uu=function(a,b){return a in ru?ru[a]:b};
vu=function(a){var b=ru.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.wu=function(a){a=rma(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.xu=function(a,b){a=rma(a);return void 0===a&&void 0!==b?b:Number(a||0)};
yu=function(){return g.uu("EXPERIMENTS_TOKEN","")};
rma=function(a){var b=g.uu("EXPERIMENTS_FORCED_FLAGS",{})||{};return void 0!==b[a]?b[a]:g.uu("EXPERIMENT_FLAGS",{})[a]};
zu=function(){for(var a=[],b=g.uu("EXPERIMENTS_FORCED_FLAGS",{}),c=g.t(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.uu("EXPERIMENT_FLAGS",{});var e=g.t(Object.keys(c));for(d=e.next();!d.done;d=e.next())d=d.value,d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
sma=function(a){Au.forEach(function(b){return b(a)})};
Cu=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Bu(b)}}:a};
g.Bu=function(a,b,c,d){var e=g.Ga("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.uu("ERRORS",[]),e.push([a,"ERROR",b,c,d]),tu("ERRORS",e));sma(a)};
Du=function(a,b,c,d){var e=g.Ga("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.uu("ERRORS",[]),e.push([a,"WARNING",b,c,d]),tu("ERRORS",e))};
Eu=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=tma(f[0]||""),l=tma(f[1]||"");h in c?Array.isArray(c[h])?g.fc(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(Eu);m.args=[{key:n,value:f[1],query:a,method:uma==p?"unchanged":p}];vma.hasOwnProperty(n)||Du(m)}}return c};
Fu=function(a){var b=[];g.hf(a,function(c,d){var e=g.Jg(d),f;Array.isArray(c)?f=c:f=[c];g.rc(f,function(h){""==h?b.push(e):b.push(e+"="+g.Jg(h))})});
return b.join("&")};
Gu=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Eu(a,"&")};
Hu=function(a){a=a.split(",");return a=a.map(function(b){return Gu(b)})};
g.Iu=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Gu(1<a.length?a[1]:a[0])):{}};
Ju=function(a,b){return wma(a,b||{},!0)};
Ku=function(a,b){return wma(a,b||{},!1)};
wma=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=Gu(e[1]||"");for(var f in b)if(c||!g.pf(e,f))e[f]=b[f];return g.ti(a,e)+d};
Lu=function(a){if(!b)var b=window.location.href;var c=g.ei(1,a),d=g.fi(a);c&&d?(a=a.match(di),b=b.match(di),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.fi(b)==d&&(Number(g.ei(4,b))||null)==(Number(g.ei(4,a))||null):!0;return a};
Mu=function(a){a||(a=document.location.href);a=g.ei(1,a);return null!==a&&"https"==a};
Nu=function(a){a=g.fi(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
tma=function(a){return a&&a.match(xma)?a:Kg(a)};
Ou=function(a){var b=yma;a=void 0===a?pma():a;var c=Object,d=c.assign,e=zma(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(D){}try{var m=f.outerWidth;var n=f.outerHeight}catch(D){}try{var p=f.innerWidth;var q=f.innerHeight}catch(D){}try{var r=f.screenLeft;var w=f.screenTop}catch(D){}try{p=f.innerWidth,q=f.innerHeight}catch(D){}try{var y=f.screen.availWidth;var z=f.screen.availTop}catch(D){}f=[r,w,h,l,y,z,m,n,p,q];h=Sha(!1,b.j.top);l={};var B=void 0===B?g.C:B;m=new eo;B.SVGElement&&B.document.createElementNS&&
m.set(0);n=fha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);B.crypto&&B.crypto.subtle&&m.set(3);B.TextDecoder&&B.TextEncoder&&m.set(4);B=zka(m);b=(l.bc=B,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Ik(b.u),l.wgl=!!Fk.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
zma=function(a){var b={};b.dt=Ama;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?Fk:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Fk.screen)?void 0:f.height;var h;b.u_w=null==(h=Fk.screen)?void 0:h.width;var l;b.u_ah=null==(l=Fk.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Fk.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Fk.screen)?void 0:
n.colorDepth}catch(p){}return b};
Cma=function(){if(!Bma)return null;var a=Bma();return"open"in a?a:null};
g.Qu=function(a){switch(Pu(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Pu=function(a){return a&&"status"in a?a.status:-1};
g.Ru=function(a,b){"function"===typeof a&&(a=Cu(a));return window.setTimeout(a,b)};
g.Su=function(a,b){"function"===typeof a&&(a=Cu(a));return window.setInterval(a,b)};
g.Tu=function(a){window.clearTimeout(a)};
Ema=function(a,b){b=void 0===b?{}:b;var c=Lu(a),d=g.wu("web_ajax_ignore_global_headers_if_set"),e;for(e in Dma){var f=g.uu(Dma[e]);"X-Goog-Visitor-Id"!==e||f||(f=g.uu("VISITOR_DATA"));!f||!c&&!Uu(a,e)||d&&void 0!==b[e]||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||Uu(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Uu(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&
(b["X-YouTube-Time-Zone"]=h)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&!Uu(a,"X-YouTube-Ad-Signals")||(b["X-YouTube-Ad-Signals"]=Fu(Ou()));return b};
Gma=function(a,b){var c=g.fi(a);g.wu("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Lu(a)&&(c=document.location.hostname);var d=ci(g.ei(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=Gu(b),f={};g.rc(Fma,function(h){e[h]&&(f[h]=e[h])});
return Ku(a,f)};
Uu=function(a){return g.fi(a)?!1:!0};
g.Wu=function(a,b){var c=b.format||"JSON";a=Hma(a,b);var d=Ima(a,b),e=!1,f=Vu(a,function(m){if(!e){e=!0;l&&g.Tu(l);var n=g.Qu(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=Jma(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.Ru(function(){e||(e=!0,f.abort(),g.Tu(l),h.call(b.context||g.C,f))},d)}return f};
Hma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.uu("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=Ju(a,b);return a};
Ima=function(a,b){var c=g.uu("XSRF_FIELD_NAME"),d=g.uu("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.uu("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.fi(a)&&!b.withCredentials&&g.fi(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.wu("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=Gu(e),g.Af(e,f),e=b.postBodyFormat&&
"JSON"==b.postBodyFormat?JSON.stringify(e):g.ji(e));f=e||f&&!g.sf(f);!Kma&&f&&"POST"!=b.method&&(Kma=!0,g.Bu(Error("AJAX request with postData should use POST")));return e};
Jma=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,Du(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Lma(a):null)e={},g.rc(a.getElementsByTagName("*"),function(h){e[h.tagName]=Mma(h)})}d&&Nma(e);
return e};
Nma=function(a){if(g.Ma(a))for(var b in a)"html_content"==b||yaa(b,"_html")?a[b]=g.wg(g.cg("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Nma(a[b])};
Lma=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Mma=function(a){var b="";g.rc(a.childNodes,function(c){b+=c.nodeValue});
return b};
Vu=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Cu(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Cma();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.wu("debug_forward_web_query_parameters")&&(a=Gma(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Ema(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};
Yu=function(a,b){var c=g.yf(b),d;return(new g.wh(function(e,f){c.onSuccess=function(h){g.Qu(h)?e(new Oma(h)):f(new Xu("Request failed, status="+Pu(h),"net.badstatus",h))};
c.onError=function(h){f(new Xu("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Xu("Request timed out","net.timeout",h))};
d=g.Wu(a,c)})).jj(function(e){e instanceof Ch&&d.abort();
return zh(e)})};
g.Zu=function(a,b,c,d){function e(l,m,n){return l.jj(function(p){if(0>=m||403===Pu(p.xhr))return zh(new Xu("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(Yu(a,b),m-1,q)})})}
function f(l){return new g.wh(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(Yu(a,b),c-1,d)};
Xu=function(a,b,c){Va.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Oma=function(a){this.xhr=a};
$u=function(a){this.j=void 0===a?null:a;this.u=0;this.yd=null};
av=function(a){var b=new $u;a=void 0===a?null:a;b.u=2;b.yd=void 0===a?null:a;return b};
bv=function(a){var b=new $u;a=void 0===a?null:a;b.u=1;b.yd=void 0===a?null:a;return b};
g.ev=function(a,b,c,d,e){cv||dv.set(""+a,b,{ZD:c,path:"/",domain:void 0===d?"youtube.com":d,R3:void 0===e?!1:e})};
g.fv=function(a,b){if(!cv)return dv.get(""+a,b)};
g.gv=function(a,b,c){cv||dv.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Pma=function(){if(!dv.isEnabled())return!1;if(!dv.isEmpty())return!0;dv.set("TESTCOOKIESENABLED","1",{ZD:60});if("1"!==dv.get("TESTCOOKIESENABLED"))return!1;dv.remove("TESTCOOKIESENABLED");return!0};
Qma=function(){var a=/Chrome\/(\d+)/.exec(g.sb());return a?parseFloat(a[1]):NaN};
iv=function(){return hv("android")&&hv("chrome")&&!(hv("trident/")||hv("edge/"))&&!hv("cobalt")};
Rma=function(){return hv("armv7")||hv("aarch64")||hv("android")};
g.jv=function(){return hv("cobalt")};
kv=function(){return hv("cobalt")&&hv("appletv")};
lv=function(){return hv("(ps3; leanback shell)")||hv("ps3")&&g.jv()};
Sma=function(){return hv("(ps4; leanback shell)")||hv("ps4")&&g.jv()};
g.Tma=function(){return g.jv()&&(hv("ps4 vr")||hv("ps4 pro vr"))};
mv=function(){var a=/WebKit\/([0-9]+)/.exec(g.sb());return!!(a&&600<=parseInt(a[1],10))};
nv=function(){var a=/WebKit\/([0-9]+)/.exec(g.sb());return!!(a&&602<=parseInt(a[1],10))};
ov=function(){return hv("iemobile")||hv("windows phone")&&hv("edge")};
qv=function(){return pv&&hv("applewebkit")&&!hv("version")&&(!hv("safari")||hv("gsa/"))};
tv=function(){return g.rv&&hv("version/")};
uv=function(){return hv("smart-tv")&&hv("samsung")};
hv=function(a){var b=g.sb();return b?0<=b.toLowerCase().indexOf(a):!1};
g.N=function(a,b){if(a)return a[b.name]};
vv=function(a){var b=g.uu("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Oea(a)));return a};
Uma=function(a,b){var c={};g.uu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.uu("INNERTUBE_API_KEY"));g.wu("json_condensed_response")&&(c.prettyPrint="false");return a=Ku(a,c)};
wv=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:Lu(a)?"same-origin":"cors",credentials:Lu(a)?"same-origin":"include"};b={};for(var d=g.t(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
xv=function(){return Dea()||qv()||tv()?!0:g.uu("EOM_VISITOR_DATA")?!1:!0};
yv=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
zv=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Av=function(a,b){return void 0===b||null===b?a:Number(b)};
Bv=function(a,b){return void 0===b||null===b?a:b.toString()};
Cv=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Vma))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
Dv=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.wu("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
Wma=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===Ev(a,!1)};
g.Fv=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
Ev=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?zv(b,c.embeddedPlayerMode,Xma):b};
Hv=function(a){Va.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Gv;this.isTimeout=a instanceof Xu&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Ch};
Gv=function(){Va.call(this,"Biscotti ID is missing from server")};
Yma=function(){if(g.wu("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!xv())return Error("User has not consented - not fetching biscotti id.");var a=g.uu("PLAYER_VARS",{});if("1"==g.uf(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(Wma(a))return Error("Biscotti id fetching has been disabled for pfl.")};
ana=function(){var a=Yma();if(void 0!==a)return zh(a);Iv||(Iv=Yu("//web.archive.org/web/20221116135136/https://googleads.g.doubleclick.net/pagead/id",Jv).then(Zma).jj(function(b){return $ma(2,b)}));
return Iv};
Zma=function(a){a=a.xhr.responseText;if(!bb(a,")]}'"))throw new Gv;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new Gv;a=a.id;qma(a);Iv=bv(a);bna(18E5,2);return a};
$ma=function(a,b){b=new Hv(b);qma("");Iv=av(b);0<a&&bna(12E4,a-1);throw b;};
bna=function(a,b){g.Ru(function(){Yu("//web.archive.org/web/20221116135136/https://googleads.g.doubleclick.net/pagead/id",Jv).then(Zma,function(c){return $ma(b,c)}).jj(g.Qf)},a)};
cna=function(){try{var a=g.Ga("yt.ads.biscotti.getId_");return a?a():ana()}catch(b){return zh(b)}};
dna=function(a){var b=this;this.u=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
Kv=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.Mv=function(){this.j=g.uu("ALT_PREF_COOKIE_NAME","PREF");this.u=g.uu("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.fv(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])&&(Lv[d]=c.toString())}}};
g.Nv=function(a,b){return!!((ena("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Ov=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=ena(c)||0;d=b?d|a:d&~a;0==d?delete Lv[c]:(b=d.toString(16),Lv[c]=b.toString())};
Pv=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Qv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
ena=function(a){a=void 0!==Lv[a]?Lv[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
fna=function(){var a=g.C.navigator;return a?a.connection:void 0};
hna=function(){var a=fna();if(a){var b=gna[a.type||"unknown"]||"CONN_UNKNOWN";a=gna[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}};
jna=function(){var a=fna();if(null!=a&&a.effectiveType)return ina.hasOwnProperty(a.effectiveType)?ina[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Rv=function(){};
g.Tv=function(a,b,c){return Sv(b,0,c)};
kna=function(a,b){Sv(a,2,b)};
Uv=function(){Rv.apply(this,arguments)};
g.Vv=function(){Uv.instance||(Uv.instance=new Uv);return Uv.instance};
g.Wv=function(){return!!g.Ga("yt.scheduler.instance")};
Sv=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ga("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Ru(a,c||0)};
Xv=function(a){var b=g.Ga("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
g.Yv=function(a){var b=g.ya.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.$v=function(){try{return g.Zv(),!0}catch(a){return!1}};
g.Zv=function(a){if(void 0!==g.uu("DATASYNC_ID"))return g.uu("DATASYNC_ID");throw new g.Yv("Datasync ID not set",void 0===a?"unknown":a);};
aw=function(a){var b;(b=g.$o(a))||(a=new Wo(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new Qo(a):null;this.u=document.domain||window.location.hostname};
cw=function(){var a;return null==(a=bw())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
lna=function(){var a={};for(dw=new ew(void 0===a.handleError?fw:a.handleError,void 0===a.logEvent?g.gw:a.logEvent);0<hw.length;)switch(a=hw.shift(),a.type){case "ERROR":dw.jA(a.payload);break;case "EVENT":dw.logEvent(a.eventType,a.payload)}};
jw=function(a){iw||(dw?dw.jA(a):(hw.push({type:"ERROR",payload:a}),10<hw.length&&hw.shift()))};
kw=function(a,b){iw||(dw?dw.logEvent(a,b):(hw.push({type:"EVENT",eventType:a,payload:b}),10<hw.length&&hw.shift()))};
lw=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
mw=function(a){return a.substr(0,a.indexOf(":"))||a};
g.nw=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?mna[a]:c;d=void 0===d?nna[a]:d;e=void 0===e?ona[a]:e;g.Yv.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.nw.prototype)};
ow=function(a,b){g.nw.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},mna.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ow.prototype)};
pw=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,pw.prototype)};
rw=function(a,b,c,d){b=mw(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.nw)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.nw("QUOTA_EXCEEDED",a);if(g.qw&&"UnknownError"===e.name)return new g.nw("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof pw)return new g.nw("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&pna.some(function(f){return e.message.includes(f)}))return new g.nw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.nw("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",yE:e.name})];e.level="WARNING";return e};
g.tw=function(a,b,c){var d=cw();return new g.nw("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
qna=function(a){if(!a)throw Error();throw a;};
rna=function(a){return a};
uw=function(a){this.j=a};
g.vw=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.t(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.t(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)}};
sna=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.vw?ww(a,b,f,d,e):d(f)}catch(h){e(h)}};
tna=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.vw?ww(a,b,f,d,e):d(f)}catch(h){e(h)}};
ww=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.vw?ww(a,b,f,d,e):d(f)},function(f){e(f)})};
una=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
vna=function(a){return new Promise(function(b,c){una(a,b,c)})};
xw=function(a){return new g.vw(new uw(function(b,c){una(a,b,c)}))};
yw=function(a,b){return new g.vw(new uw(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
wna=function(a,b){this.request=a;this.cursor=b};
zw=function(a){return xw(a).then(function(b){return b?new wna(a,b):null})};
xna=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.Q)());this.u=!1};
g.Bw=function(a,b,c){a=a.j.createObjectStore(b,c);return new Aw(a)};
Cw=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.Fw=function(a,b,c){return g.Dw(a,[b],{mode:"readwrite",Sb:!0},function(d){return g.Ew(d.objectStore(b),c)})};
g.Dw=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,w,y,z;return g.A(function(B){switch(B.j){case 1:var D={mode:"readonly",Sb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?D.mode=c:Object.assign(D,c);e=D;a.transactionCount++;f=e.Sb?3:1;h=0;case 2:if(l){B.Ja(3);break}h++;m=Math.round((0,g.Q)());g.qa(B,4);n=a.j.transaction(b,e.mode);D=new Gw(n);D=yna(D,d);return g.x(B,D,6);case 6:return p=B.u,q=Math.round((0,g.Q)()),zna(a,m,q,h,void 0,b.join(),e),B.return(p);case 4:r=g.sa(B);w=Math.round((0,g.Q)());
y=rw(r,a.j.name,b.join(),a.j.version);if((z=y instanceof g.nw&&!y.j)||h>=f)zna(a,m,w,h,y,b.join(),e),l=y;B.Ja(2);break;case 3:return B.return(Promise.reject(l))}})};
zna=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.nw&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&kw("QUOTA_EXCEEDED",{dbName:mw(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.nw&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),kw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Ana(a,!1,d,f,b,h.tag),jw(e)):Ana(a,!0,d,
f,b,h.tag)};
Ana=function(a,b,c,d,e,f){kw("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Aw=function(a){this.j=a};
g.Hw=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Bna=function(a,b){return g.Iw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
Cna=function(a,b,c){var d=[];return g.Iw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
Ena=function(a){return"getAllKeys"in IDBObjectStore.prototype?xw(a.j.getAllKeys(void 0,void 0)):Dna(a)};
Dna=function(a){var b=[];return g.Fna(a,{query:void 0},function(c){b.push(c.pD());return c.continue()}).then(function(){return b})};
g.Ew=function(a,b,c){return xw(a.j.put(b,c))};
g.Iw=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return Jw(a).then(function(d){return yw(d,c)})};
g.Fna=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 zw(a).then(function(e){return yw(e,c)})};
Gw=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.nw;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
yna=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.t(d).next().value})};
Gna=function(a){this.j=a};
Hna=function(a,b,c){var d=[];return g.Kw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
g.Kw=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return Jw(a).then(function(d){return yw(d,c)})};
Ina=function(a,b){this.request=a;this.cursor=b};
Jw=function(a){return xw(a).then(function(b){return b?new Ina(a,b):null})};
Jna=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new xna(h.result,{closed:q}));return r}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.r4,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(w){try{if(null===w.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&"none"!==w.dataLoss&&kw("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:mw(a)});var y=f(),z=new Gw(h.transaction);
p&&p(y,function(B){return w.oldVersion<B&&w.newVersion>=B},z);
z.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var w=h.result;m&&w.addEventListener("versionchange",function(){m(f())});
w.addEventListener("close",function(){kw("IDB_UNEXPECTEDLY_CLOSED",{dbName:mw(a),dbVersion:w.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Kna=function(a,b,c){c=void 0===c?{}:c;return Jna(a,b,c)};
Lw=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.A(function(h){if(1==h.j)return g.qa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.x(h,vna(c),4);
if(2!=h.j)return g.ra(h,0);f=g.sa(h);throw rw(f,a,"",-1);})};
Lna=function(a){return new Promise(function(b){kna(function(){b()},a)})};
Mw=function(a,b){this.name=a;this.options=b;this.C=!0;this.I=this.D=0;this.u=500};
Mna=function(a,b){return new g.nw("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.Nw=function(a,b){if(!b)throw g.tw("openWithToken",mw(a.name));return a.open()};
Nna=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.x(d,g.Nw(Ow,b),2);c=d.u;return d.return(g.Dw(c,["databases"],{Sb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.Ew(f,a).then(function(){})})}))})};
Pw=function(a,b){var c;return g.A(function(d){if(1==d.j)return a?g.x(d,g.Nw(Ow,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
Ona=function(a,b){var c,d;return g.A(function(e){return 1==e.j?(c=[],g.x(e,g.Nw(Ow,b),2)):3!=e.j?(d=e.u,g.x(e,g.Dw(d,["databases"],{Sb:!0,mode:"readonly"},function(f){c.length=0;return g.Iw(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
Pna=function(a){return Ona(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)};
Qna=function(){var a,b,c,d;return g.A(function(e){switch(e.j){case 1:a=cw();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(pv&&mv()&&!nv()||g.Qw)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.qa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.x(e,Nna(d,Rw),4);case 4:return g.x(e,Pw("yt-idb-test-do-not-use",Rw),5);case 5:return e.return(!0);case 2:return g.sa(e),e.return(!1)}})};
Rna=function(){if(void 0!==Sw)return Sw;iw=!0;return Sw=Qna().then(function(a){iw=!1;var b;if(null!=(b=bw())&&b.j){var c;b={hasSucceededOnce:(null==(c=cw())?void 0:c.hasSucceededOnce)||a};var d;null==(d=bw())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
Tw=function(){return g.Ga("ytglobal.idbToken_")||void 0};
g.Uw=function(){var a=Tw();return a?Promise.resolve(a):Rna().then(function(b){(b=b?Rw:void 0)&&g.Ea("ytglobal.idbToken_",b);return b})};
Sna=function(a){if(!g.$v())throw a=new g.nw("AUTH_INVALID",{dbName:a}),jw(a),a;var b=g.Zv();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Tna=function(a,b,c,d){var e,f,h,l,m,n;return g.A(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.x(p,g.Uw(),2);case 2:h=p.u;if(!h)throw l=g.tw("openDbImpl",a,b),g.wu("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),jw(l),l;lw(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Sna(a);g.qa(p,3);return g.x(p,Nna(m,h),5);case 5:return g.x(p,Kna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.sa(p),g.qa(p,7),g.x(p,Pw(m.actualName,
h),9);case 9:g.ra(p,8);break;case 7:g.sa(p);case 8:throw n;}})};
Una=function(a,b,c){c=void 0===c?{}:c;return Tna(a,b,!1,c)};
Vna=function(a,b,c){c=void 0===c?{}:c;return Tna(a,b,!0,c)};
Wna=function(a,b){b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.x(e,g.Uw(),2);if(3!=e.j){c=e.u;if(!c)return e.return();lw(a);d=Sna(a);return g.x(e,Lw(d.actualName,b),3)}return g.x(e,Pw(d.actualName,c),0)})};
Xna=function(a,b,c){a=a.map(function(d){return g.A(function(e){return 1==e.j?g.x(e,Lw(d.actualName,b),2):g.x(e,Pw(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Yna=function(){var a=void 0===a?{}:a;var b,c;return g.A(function(d){if(1==d.j)return g.x(d,g.Uw(),2);if(3!=d.j){b=d.u;if(!b)return d.return();lw("LogsDatabaseV2");return g.x(d,Pna(b),3)}c=d.u;return g.x(d,Xna(c,a,b),0)})};
Zna=function(a,b){b=void 0===b?{}:b;var c;return g.A(function(d){if(1==d.j)return g.x(d,g.Uw(),2);if(3!=d.j){c=d.u;if(!c)return d.return();lw(a);return g.x(d,Lw(a,b),3)}return g.x(d,Pw(a,c),0)})};
Vw=function(a,b){Mw.call(this,a,b);this.options=b;lw(a)};
$na=function(a,b){var c;return function(){c||(c=new Vw(a,b));return c}};
g.Ww=function(a,b){return $na(a,b)};
boa=function(a){return g.Nw(aoa(),a)};
coa=function(a,b,c){var d,e,f;return g.A(function(h){switch(h.j){case 1:return d={config:a,hashData:b,timestamp:(0,g.Q)()},g.x(h,boa(c),2);case 2:return e=h.u,g.x(h,e.clear("hotConfigStore"),3);case 3:return g.x(h,g.Fw(e,"hotConfigStore",d),4);case 4:return f=h.u,h.return(f)}})};
doa=function(a,b,c,d){var e,f,h;return g.A(function(l){switch(l.j){case 1:return e={config:a,hashData:b,configData:c,timestamp:(0,g.Q)()},g.x(l,boa(d),2);case 2:return f=l.u,g.x(l,f.clear("coldConfigStore"),3);case 3:return g.x(l,g.Fw(f,"coldConfigStore",e),4);case 4:return h=l.u,l.return(h)}})};
Xw=function(){};
eoa=function(a,b,c){var d,e;return g.A(function(f){if(!g.wu("gcf_config_store_update_enabled"))return f.Ja(0);a.j=b;g.Ea("yt.gcf.config.hotConfigGroup",a.j);a.hotHashData=c;g.Ea("yt.gcf.config.hotHashData",a.hotHashData);d=Tw();return d?g.x(f,coa(b,c,d),0):(e=g.tw("updateHotConfig token error"),Du(e),f.Ja(0))})};
foa=function(a,b,c){var d,e;return g.A(function(f){if(!g.wu("gcf_config_store_update_enabled"))return f.Ja(0);a.coldHashData=c;g.Ea("yt.gcf.config.coldHashData",a.coldHashData);d=Tw();return d?b.configData?g.x(f,doa(b,c,b.configData,d),0):f.Ja(0):(e=g.tw("updateColdConfig token error"),Du(e),f.Ja(0))})};
goa=function(){return"INNERTUBE_API_KEY"in ru&&"INNERTUBE_API_VERSION"in ru};
g.Yw=function(){return{innertubeApiKey:g.uu("INNERTUBE_API_KEY"),innertubeApiVersion:g.uu("INNERTUBE_API_VERSION"),FD:g.uu("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),mJ:g.uu("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),OQ:g.uu("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.uu("INNERTUBE_CONTEXT_CLIENT_VERSION"),oJ:g.uu("INNERTUBE_CONTEXT_HL"),nJ:g.uu("INNERTUBE_CONTEXT_GL"),PQ:g.uu("INNERTUBE_HOST_OVERRIDE")||"",QQ:!!g.uu("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),pJ:!!g.uu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.uu("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.Zw=function(a){var b={client:{hl:a.oJ,gl:a.nJ,clientName:a.mJ,clientVersion:a.innertubeContextClientVersion,configInfo:a.FD}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.C.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=yu();""!==c&&(b.client.experimentsToken=c);c=zu();0<c.length&&(b.request={internalExperimentFlags:c});hoa(a,void 0,b);g.wu("enable_third_party_info")&&ioa(void 0,b);joa(void 0,b);koa(a,void 0,b);loa(void 0,b);g.wu("start_sending_config_hash")&&
moa(void 0,b);g.uu("DELEGATED_SESSION_ID")&&!g.wu("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.uu("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.t(Object.entries(Gu(g.uu("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.t(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=
c.call(a,d,e);return b};
noa=function(a){var b=new xq,c=new g.rq;g.F(c,1,a.oJ);g.F(c,2,a.nJ);g.F(c,16,a.OQ);g.F(c,17,a.innertubeContextClientVersion);if(a.FD){var d=a.FD,e=new mq;d.coldConfigData&&g.F(e,1,d.coldConfigData);d.appInstallData&&g.F(e,6,d.appInstallData);d.coldHashData&&g.F(e,3,d.coldHashData);d.hotHashData&&g.F(e,5,d.hotHashData);H(c,mq,62,e)}(d=g.C.devicePixelRatio)&&1!=d&&g.F(c,65,d);d=yu();""!==d&&g.F(c,54,d);d=zu();if(0<d.length){e=new sq;for(var f=0;f<d.length;f++){var h=new lq;g.F(h,1,d[f].key);h.setValue(d[f].value);
Qd(e,15,lq,h)}H(b,sq,5,e)}hoa(a,c);g.wu("enable_third_party_info")&&ioa(b);joa(c);koa(a,c);loa(c);g.wu("start_sending_config_hash")&&moa(c);g.uu("DELEGATED_SESSION_ID")&&!g.wu("pageid_as_header_web")&&(a=new vq,g.F(a,3,g.uu("DELEGATED_SESSION_ID")));a=g.t(Object.entries(Gu(g.uu("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.t(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?g.F(c,12,e):"cmodel"===d?g.F(c,13,e):"cbr"===d?g.F(c,87,e):"cbrver"===d?g.F(c,88,e):"cos"===d?g.F(c,18,e):"cosver"===
d?g.F(c,19,e):"cplatform"===d&&g.F(c,42,e);b.C(c);return b};
hoa=function(a,b,c){a=a.mJ;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=Jd(b,qq,96)||new qq;var d=Kv();d=Object.keys(ooa).indexOf(d);d=-1===d?null:d;null!==d&&g.F(c,3,d);H(b,qq,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=Kv())};
ioa=function(a,b){var c=g.Ga("yt.embedded_player.embed_url");c&&(a?(b=Jd(a,tq,7)||new tq,g.F(b,4,c),H(a,tq,7,b)):b&&(b.thirdParty={embedUrl:c}))};
joa=function(a,b){var c;if(g.wu("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.F(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
koa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=Jd(b,mq,62))?d:new mq;g.F(c,6,a.appInstallData);H(b,mq,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
loa=function(a,b){var c=hna();c&&(a?g.F(a,61,poa[c]):b&&(b.client.connectionType=c));g.wu("web_log_effective_connection_type")&&(c=jna())&&(a?g.F(a,94,qoa[c]):b&&(b.client.effectiveConnectionType=c))};
roa=function(a,b,c){c=void 0===c?{}:c;var d={};g.uu("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.uu("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.uu("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.RO||g.uu("AUTHORIZATION"))||(a?b="Bearer "+g.Ga("gapi.auth.getToken")().access_token:b=Th([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.uu("SESSION_INDEX",0),g.wu("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.uu("DELEGATED_SESSION_ID")));return d};
moa=function(a,b){Xw.instance||(Xw.instance=new Xw);var c=g.Ga("yt.gcf.config.coldConfigData");var d=g.Ga("yt.gcf.config.hotHashData");var e=g.Ga("yt.gcf.config.coldHashData");if(c&&e&&d)if(a){var f;b=null!=(f=Jd(a,mq,62))?f:new mq;g.F(b,1,c);g.F(b,3,e);g.F(b,5,d);H(a,mq,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.coldConfigData=c,b.client.configInfo.coldHashData=e,b.client.configInfo.hotHashData=d)};
ax=function(a){this.pC=this.Bf=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Dw=function(){};
this.now=Date.now;this.cz=!1;var b;this.XT=null!=(b=a.XT)?b:100;var c;this.oT=null!=(c=a.oT)?c:1;var d;this.hT=null!=(d=a.hT)?d:2592E6;var e;this.bT=null!=(e=a.bT)?e:12E4;var f;this.nT=null!=(f=a.nT)?f:5E3;var h;this.qf=null!=(h=a.qf)?h:void 0;this.LC=!!a.LC;var l;this.yC=null!=(l=a.yC)?l:.1;var m;this.KE=null!=(m=a.KE)?m:10;a.handleError&&(this.handleError=a.handleError);a.Dw&&(this.Dw=a.Dw);a.cz&&(this.cz=a.cz);a.pC&&(this.pC=a.pC);this.gb=a.gb;this.Rl=a.Rl;this.Dg=a.Dg;this.pg=a.pg;this.Cp=a.Cp;
this.MK=a.MK;this.bK=a.bK;$w(this)&&(!this.gb||this.gb("networkless_logging"))&&soa(this)};
soa=function(a){$w(a)&&!a.cz&&(a.Bf=!0,a.LC&&Math.random()<=a.yC&&a.Dg.CY(a.qf),toa(a),a.pg.lh()&&a.qB(),a.pg.Pa(a.MK,a.qB.bind(a)),a.pg.Pa(a.bK,a.cP.bind(a)))};
bx=function(a,b){var c,d;return g.A(function(e){switch(e.j){case 1:if(!$w(a))throw c=g.tw("immediateSend"),c;if(void 0===b.id){e.Ja(2);break}return g.x(e,a.Dg.x_(b.id,a.qf),3);case 3:(d=e.u)?b=d:a.Dw(Error("The request cannot be found in the database."));case 2:if(uoa(a,b,a.hT)){e.Ja(4);break}a.Dw(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Ja(5);break}return g.x(e,a.Dg.dw(b.id,a.qf),5);case 5:return e.return();case 4:b.skipRetry||(b=voa(a,b));if(!b){e.Ja(0);
break}if(!b.skipRetry||void 0===b.id){e.Ja(8);break}return g.x(e,a.Dg.dw(b.id,a.qf),8);case 8:a.Cp(b.url,b.options,!!b.skipRetry),g.pa(e)}})};
voa=function(a,b){if(!$w(a))throw g.tw("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m;return g.A(function(n){switch(n.j){case 1:h=woa(f);if(!(a.gb&&a.gb("nwl_consider_error_code")&&h||a.gb&&!a.gb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.KE)){n.Ja(2);break}if(!a.pg.eF){n.Ja(3);break}return g.x(n,a.pg.eF(),3);case 3:if(a.pg.lh()){n.Ja(2);break}c(e,f);if(!a.gb||!a.gb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Ja(6);break}return g.x(n,a.Dg.qL(b.id,a.qf,!1),6);case 6:return n.return();case 2:if(a.gb&&a.gb("nwl_consider_error_code")&&
!h&&a.potentialEsfErrorCounter>a.KE)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Ja(8);break}return b.sendCount<a.oT?g.x(n,a.Dg.qL(b.id,a.qf),12):g.x(n,a.Dg.dw(b.id,a.qf),8);case 12:a.Rl.Wh(function(){a.pg.lh()&&a.qB()},a.nT);
case 8:c(e,f),g.pa(n)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.A(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ja(2):g.x(l,a.Dg.dw(b.id,a.qf),2);a.pg.Ht&&a.gb&&a.gb("vss_network_hint")&&a.pg.Ht(!0);d(e,f);g.pa(l)})};
return b};
uoa=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
toa=function(a){if(!$w(a))throw g.tw("retryQueuedRequests");a.Dg.hQ("QUEUED",a.qf).then(function(b){b&&!uoa(a,b,a.bT)?a.Rl.Wh(function(){return g.A(function(c){if(1==c.j)return void 0===b.id?c.Ja(2):g.x(c,a.Dg.qL(b.id,a.qf),2);toa(a);g.pa(c)})}):a.pg.lh()&&a.qB()})};
cx=function(a,b){a.OU&&!a.pg.lh()?a.OU(b):a.handleError(b)};
$w=function(a){return!!a.qf||a.pC};
woa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
dx=function(a,b){this.version=a;this.args=b};
ex=function(a,b){this.topic=a;this.j=b};
gx=function(a,b){var c=fx();c&&c.publish.call(c,a.toString(),a,b)};
yoa=function(a,b,c){var d=fx();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ga("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(hx[e])try{if(h&&a instanceof ex&&a!=f)try{var m=a.j,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Tr){var p=new m;m.Tr=p.version}var q=m.Tr}catch(r){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ec(n.args))}catch(r){throw r.message="yt.pubsub2.Data.deserialize(): "+r.message,r;}}catch(r){throw r.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+r.message,r;}b.call(c||window,h)}catch(r){g.Bu(r)}},xoa[a.toString()]?g.Wv()?g.co.Wh(l):g.Ru(l,0):l())});
hx[e]=!0;ix[a.toString()]||(ix[a.toString()]=[]);ix[a.toString()].push(e);return e};
kx=function(a,b,c){var d=yoa(a,function(e){b.apply(c,arguments);jx(d)},c);
return d};
jx=function(a){var b=fx();b&&("number"===typeof a&&(a=[a]),g.rc(a,function(c){b.unsubscribeByKey(c);delete hx[c]}))};
fx=function(){return g.Ga("ytPubsub2Pubsub2Instance")};
zoa=function(){if(lx)return lx();var a={};lx=g.Ww("LogsDatabaseV2",{qp:(a.LogsRequestsStore={zl:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.Bw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.Hw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Cw(b,"sapisid");c(9)&&Cw(b,"SWHealthLog")},
version:9});return lx()};
mx=function(a){return g.Nw(zoa(),a)};
Boa=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.j)return c={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.x(h,mx(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.uu("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.x(h,g.Fw(d,"LogsRequestsStore",e),3);f=h.u;c.A4=(0,g.Q)();Aoa(c);return h.return(f)})};
Coa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j)return c={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.x(n,mx(b),2);if(3!=n.j)return d=n.u,e=g.uu("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.Q)()],l=IDBKeyRange.bound(f,h),m=void 0,g.x(n,g.Dw(d,["LogsRequestsStore"],{mode:"readwrite",Sb:!0},function(p){return g.Kw(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.A4=(0,g.Q)();Aoa(c);return n.return(m)})};
Doa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.x(d,mx(b),2);c=d.u;return d.return(g.Dw(c,["LogsRequestsStore"],{mode:"readwrite",Sb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.Ew(f,h).then(function(){return h})})}))})};
Eoa=function(a,b,c){c=void 0===c?!0:c;var d;return g.A(function(e){if(1==e.j)return g.x(e,mx(b),2);d=e.u;return e.return(g.Dw(d,["LogsRequestsStore"],{mode:"readwrite",Sb:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.Ew(h,l).then(function(){return l})):g.vw.resolve(void 0)})}))})};
Foa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.x(d,mx(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
Goa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.x(d,mx(a),2);b=d.u;c=(0,g.Q)()-2592E6;return g.x(d,g.Dw(b,["LogsRequestsStore"],{mode:"readwrite",Sb:!0},function(e){return g.Iw(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Hoa=function(){g.A(function(a){return g.x(a,Yna(),0)})};
Aoa=function(a){g.wu("nwl_csi_killswitch")||.01>=Math.random()&&gx("nwl_transaction_latency_payload",a)};
Joa=function(a){return g.Nw(Ioa(),a)};
Koa=function(a){var b,c;g.A(function(d){if(1==d.j)return g.x(d,Joa(a),2);b=d.u;c=(0,g.Q)()-2592E6;return g.x(d,g.Dw(b,["SWHealthLog"],{mode:"readwrite",Sb:!0},function(e){return g.Iw(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Loa=function(a){var b;return g.A(function(c){if(1==c.j)return g.x(c,Joa(a),2);b=c.u;return g.x(c,b.clear("SWHealthLog"),0)})};
g.nx=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.jv()){if(a){a=g.hg(g.jg(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");h.x6a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));h.w6a&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));h.y6a&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));h=vg(a);a=g.Jg(g.Yh(g.ug(h).toString()))}g.eb(a)||
(h=ah("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Rg(h).body.appendChild(h))}}else if(e)Vu(a,b,"POST",e,d);else if(g.uu("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Vu(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Qga({url:a});if(l.B&&l.u||l.C){var m=ci(g.ei(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==wi(a,"ri"));break b}}catch(p){}n=!1}n?Moa(a)?(b&&b(),h=!0):h=!1:h=!1;h||Noa(a,b)}};
Moa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Noa=function(a,b){var c=new Image,d=""+Ooa++;ox[d]=c;c.onload=c.onerror=function(){b&&ox[d]&&b();delete ox[d]};
c.src=a};
px=function(){this.j=new Map;this.u=!1};
qx=function(){if(!px.instance){var a=g.Ga("yt.networkRequestMonitor.instance")||new px;g.Ea("yt.networkRequestMonitor.instance",a);px.instance=a}return px.instance};
sx=function(){rx||(rx=new aw("yt.offline"));return rx};
Poa=function(a){if(g.wu("offline_error_handling")){var b=sx().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);sx().set("errors",b,2592E3,!0)}};
tx=function(){g.Mf.call(this);var a=this;this.u=!1;this.j=yka();this.j.Pa("networkstatus-online",function(){if(a.u&&g.wu("offline_error_handling")){var b=sx().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Yv(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.Bu(d)}sx().set("errors",{},2592E3,!0)}}})};
Qoa=function(){if(!tx.instance){var a=g.Ga("yt.networkStatusManager.instance")||new tx;g.Ea("yt.networkStatusManager.instance",a);tx.instance=a}return tx.instance};
g.ux=function(a){a=void 0===a?{}:a;g.Mf.call(this);var b=this;this.j=this.D=0;this.u=Qoa();var c=g.Ga("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.QE?(this.QE=a.QE,c("networkstatus-online",function(){Roa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Roa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
Roa=function(a,b){a.QE?a.j?(g.co.Bl(a.D),a.D=g.co.Wh(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.Q)())},a.QE-((0,g.Q)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.Q)()):a.dispatchEvent(b)};
wx=function(){var a=ax.call;vx||(vx=new g.ux({h6a:!0,G5a:!0}));a.call(ax,this,{Dg:{CY:Goa,dw:Foa,hQ:Coa,x_:Doa,qL:Eoa,set:Boa},pg:vx,handleError:g.Bu,Dw:Du,Cp:Soa,now:g.Q,OU:Poa,Rl:g.Vv(),MK:"publicytnetworkstatus-online",bK:"publicytnetworkstatus-offline",LC:!0,yC:.1,KE:g.xu("potential_esf_error_limit",10),gb:g.wu,cz:!(g.$v()&&"www.youtube-nocookie.com"!==g.fi(document.location.toString()))});this.u=new g.Wi;g.wu("networkless_immediately_drop_all_requests")&&Hoa();Zna("LogsDatabaseV2")};
xx=function(){var a=g.Ga("yt.networklessRequestController.instance");a||(a=new wx,g.Ea("yt.networklessRequestController.instance",a),g.wu("networkless_logging")&&g.Uw().then(function(b){a.qf=b;soa(a);a.u.resolve();a.LC&&Math.random()<=a.yC&&a.qf&&Koa(a.qf);g.wu("networkless_immediately_drop_sw_health_store")&&Toa(a)}));
return a};
Toa=function(a){var b;g.A(function(c){if(!a.qf)throw b=g.tw("clearSWHealthLogsDb"),b;return c.return(Loa(a.qf).catch(function(d){a.handleError(d)}))})};
Soa=function(a,b,c){g.wu("use_cfr_monitor")&&Uoa(a,b);if(g.wu("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Q)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Q)())}c&&0===Object.keys(b).length?g.nx(a):g.Wu(a,b)};
Uoa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){qx().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){qx().requestComplete(a,!0);d(e,f)}};
g.yx=function(a){this.config_=null;a?this.config_=a:goa()&&(this.config_=g.Yw())};
g.zx=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.FR.bypassNetworkless?(f.method="POST",d.FR.writeThenSend?xx().writeThenSend(n,f):xx().sendAndWrite(n,f)):g.wu("web_all_payloads_via_jspb")?g.Wu(n,f):(f.method="POST",f.postParams||(f.postParams={}),g.Wu(n,f))}catch(q){if("InvalidAccessError"==q.name)Du(Error("An extension is blocking network request."));else throw q;}}
!g.uu("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Du(new g.Yv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Yv("innertube xhrclient not ready",b,c,d),g.Bu(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.PQ;h&&(c=h);h=roa(a.config_.QQ||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.pJ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=Ju(""+c+b,l);g.Ga("ytNetworklessLoggingInitializationOptions")&&
Voa.isNwlInitialized?Rna().then(function(p){e(p)}):e(!1)};
Woa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Ax+"VisibilityState";if(b in a)return a[b]};
Bx=function(a,b){var c;Xl(a,function(d){c=b[d];return!!c});
return c};
Cx=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 Xoa||(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){}};
Yoa=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}};
Zoa=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 rf(Dx,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Ma(e[4])&&g.Ma(d)&&g.wf(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Ex=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Zoa(a,b,c,d);if(e)return e;e=++$oa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Cx(l);if(!kh(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Cx(l);
l.currentTarget=a;return c.call(a,l)};
h=Cu(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),apa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Dx[e]=[a,b,c,h,d];return e};
bpa=function(a,b){var c=document.body||document;return g.Ex(c,"click",function(d){var e=kh(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Fx=function(a){a&&("string"==typeof a&&(a=[a]),g.rc(a,function(b){if(b in Dx){var c=Dx[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?apa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Dx[b]}}))};
g.Gx=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Hx=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.Gx(a)};
Ix=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};
Jx=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.Eg(b,c)};
g.Kx=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Wx=function(a){a=a||window.event;return!1===a.returnValue||a.VQ&&a.VQ()};
g.Xx=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
cpa=function(a){return bpa(a,function(b){return g.oo(b,"ytp-ad-has-logging-urls")})};
g.dpa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ex(a,b,function(){g.Fx(e);c.apply(a,arguments)},d)};
Yx=function(a){for(var b in Dx)Dx[b][0]==a&&g.Fx(b)};
Zx=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.oa=g.Ex(window,"mousemove",(0,g.Pa)(this.Z,this));this.T=g.Su((0,g.Pa)(this.ea,this),25)};
by=function(){var a={},b=void 0===a.u3?!1:a.u3;a=void 0===a.bZ?!0:a.bZ;if(null==g.Ga("_lact",window)){var c=parseInt(g.uu("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ea("_lact",c,window);g.Ea("_fact",c,window);-1==c&&$x();g.Ex(document,"keydown",$x);g.Ex(document,"keyup",$x);g.Ex(document,"mousedown",$x);g.Ex(document,"mouseup",$x);b?g.Ex(window,"touchmove",function(){ay("touchmove",200)},{passive:!0}):(g.Ex(window,"resize",function(){ay("resize",200)}),a&&g.Ex(window,"scroll",function(){ay("scroll",
200)}));
new Zx(function(){ay("mouse",100)});
g.Ex(document,"touchstart",$x,{passive:!0});g.Ex(document,"touchend",$x,{passive:!0})}};
ay=function(a,b){cy[a]||(cy[a]=!0,g.co.Wh(function(){$x();cy[a]=!1},b))};
$x=function(){null==g.Ga("_lact",window)&&(by(),g.Ga("_lact",window));var a=Date.now();g.Ea("_lact",a,window);-1==g.Ga("_fact",window)&&g.Ea("_fact",a,window);(a=g.Ga("ytglobal.ytUtilActivityCallback_"))&&a()};
dy=function(){var a=g.Ga("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
g.iy=function(a,b,c){var d=g.ey();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){fy[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.gy[a]?h():g.Ru(h,0)}catch(l){g.Bu(l)}},c);
fy[e]=!0;hy[a]||(hy[a]=[]);hy[a].push(e);return e}return 0};
g.jy=function(a){var b=g.ey();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.rc(a,function(c){b.unsubscribeByKey(c);delete fy[c]}))};
g.ky=function(a,b){var c=g.ey();return c?c.publish.apply(c,arguments):!1};
fpa=function(a){var b=g.ey();if(b)if(b.clear(a),a)epa(a);else for(var c in hy)epa(c)};
g.ey=function(){return g.C.ytPubsubPubsubInstance};
epa=function(a){hy[a]&&(a=hy[a],g.rc(a,function(b){fy[b]&&delete fy[b]}),a.length=0)};
ly=function(a){this.name=a};
my=function(){this.key=gpa};
hpa=function(){this.providers=new Map;this.j=new Map};
oy=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.FU)var e=d.FU;else if(d.Q4)e=d[ny]?ipa(a,d[ny],c):[],e=d.Q4.apply(d,g.u(e));else if(d.EU){e=d.EU;var f=e[ny]?ipa(a,e[ny],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.J6a||a.j.set(b,
e);return e};
ipa=function(a,b,c){return b?b.map(function(d){return d instanceof my?oy(a,d.key,c,!0):oy(a,d,c)}):[]};
jpa=function(){py||(py=new hpa);return py};
qy=function(){this.store={};this.j={}};
kpa=function(a,b){var c=ry(b);if(a.j[c])return a.j[c];var d=Object.keys(a.store)||[];if(1>=d.length&&ry(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(sy(b.auth,h[0])){var l=b.isJspb;sy(void 0===l?"undefined":l?"true":"false",h[1])&&sy(b.cttAuthInfo,h[2])&&e.push(d[f])}}return a.j[c]=e};
sy=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
ry=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo].join("/")};
lpa=function(){this.B=this.j=this.u=0};
ty=function(){var a=g.Ga("yt.logging.ims");a||(a=new qy,g.Ea("yt.logging.ims",a));return a};
mpa=function(a,b){g.wu("web_all_payloads_via_jspb")&&Du(new g.Yv("transport.log called for JSON in JSPB only experiment"));if("log_event"===a.endpoint){uy(a);var c=vy(a);if(g.wu("use_new_in_memory_storage")){wy[c]=!0;var d={cttAuthInfo:c,isJspb:!1};ty().storePayload(d,a.payload);yy(b,[],c,!1,d)}else d=zy.get(c)||[],zy.set(c,d),d.push(a.payload),yy(b,d,c)}};
npa=function(a,b){if("log_event"===a.endpoint){uy(void 0,a);var c=vy(a,!0);if(g.wu("use_new_in_memory_storage")){wy[c]=!0;var d={cttAuthInfo:c,isJspb:!0};ty().storePayload(d,a.payload.toJSON());yy(b,[],c,!0,d)}else d=Ay.get(c)||[],Ay.set(c,d),a=a.payload.toJSON(),d.push(a),yy(b,d,c,!0)}};
yy=function(a,b,c,d,e){d=void 0===d?!1:d;a&&(By=new a);a=g.xu("tvhtml5_logging_max_batch")||g.xu("web_logging_max_batch")||100;var f=(0,g.Q)(),h=d?Cy.B:Dy.B;b=b.length;e&&(b=ty().getSequenceCount(e));b>=a?Ey||(Ey=Fy(function(){Gy({writeThenSend:!0},g.wu("flush_only_full_queue")?c:void 0,d);Ey=void 0},0)):10<=f-h&&(opa(d),d?Cy.B=f:Dy.B=f)};
ppa=function(a,b){g.wu("web_all_payloads_via_jspb")&&Du(new g.Yv("transport.logIsolatedGelPayload called in JSPB only experiment"));if("log_event"===a.endpoint){uy(a);var c=vy(a),d=new Map;d.set(c,[a.payload]);b&&(By=new b);return new g.wh(function(e,f){By&&By.isReady()?Hy(d,By,e,f,{bypassNetworkless:!0},!0):e()})}};
qpa=function(a,b){if("log_event"===a.endpoint){uy(void 0,a);var c=vy(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(By=new b);return new g.wh(function(e){By&&By.isReady()?Iy(d,By,e,{bypassNetworkless:!0},!0):e()})}};
vy=function(a,b){var c="";if(a.Zy)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new pu;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.Hd(d,2,Jy,c.playlistId);Ky[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Ly[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Gy=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;!c&&g.wu("web_all_payloads_via_jspb")&&Du(new g.Yv("transport.flushLogs called for JSON in JSPB only experiment"));new g.wh(function(d,e){c?(My(Cy.u),My(Cy.j),Cy.j=0):(My(Dy.u),My(Dy.j),Dy.j=0);if(By&&By.isReady())if(g.wu("use_new_in_memory_storage")){var f=a,h=c,l=By;f=void 0===f?{}:f;h=void 0===h?!1:h;var m=new Map,n=new Map;if(void 0!==b)h?(e=ty().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),m.set(b,e),Iy(m,l,d,f)):(m=ty().extractMatchingEntries({isJspb:h,
cttAuthInfo:b}),n.set(b,m),Hy(n,l,d,e,f));else if(h){e=g.t(Object.keys(wy));for(h=e.next();!h.done;h=e.next())n=h.value,h=ty().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<h.length&&m.set(n,h),delete wy[n];Iy(m,l,d,f)}else{m=g.t(Object.keys(wy));for(h=m.next();!h.done;h=m.next()){h=h.value;var p=ty().extractMatchingEntries({isJspb:!1,cttAuthInfo:h});0<p.length&&n.set(h,p);delete wy[h]}Hy(n,l,d,e,f)}}else f=a,m=c,l=By,f=void 0===f?{}:f,m=void 0===m?!1:m,void 0!==b?m?(e=new Map,m=Ay.get(b)||
[],e.set(b,m),Iy(e,l,d,f),Ay.delete(b)):(m=new Map,n=zy.get(b)||[],m.set(b,n),Hy(m,l,d,e,f),zy.delete(b)):m?(Iy(Ay,l,d,f),Ay.clear()):(Hy(zy,l,d,e,f),zy.clear());else opa(c),d()})};
opa=function(a){a=void 0===a?!1:a;if(g.wu("web_gel_timeout_cap")&&(!a&&!Dy.j||a&&!Cy.j)){var b=Fy(function(){Gy({writeThenSend:!0},void 0,a)},6E4);
a?Cy.j=b:Dy.j=b}My(a?Cy.u:Dy.u);b=g.uu("LOGGING_BATCH_TIMEOUT",g.xu("web_gel_debounce_ms",1E4));g.wu("shorten_initial_gel_batch_timeout")&&Ny&&(b=rpa);b=Fy(function(){Gy({writeThenSend:!0},void 0,a)},b);
a?Cy.u=b:Dy.u=b};
Hy=function(a,b,c,d,e,f){e=void 0===e?{}:e;var h=Math.round((0,g.Q)()),l=a.size,m={};a=g.t(a);for(var n=a.next();!n.done;m={JB:m.JB,Ur:m.Ur,Xx:m.Xx,LB:m.LB,KB:m.KB},n=a.next()){var p=g.t(n.value);n=p.next().value;p=p.next().value;m.Ur=g.zf({context:g.Zw(b.config_||g.Yw())});if(!g.Ka(p)&&!g.wu("throw_err_when_logevent_malformed_killswitch")){d();break}m.Ur.events=p;(p=Ly[n])&&spa(m.Ur,n,p);delete Ly[n];m.Xx="visitorOnlyApprovedKey"===n;tpa(m.Ur,h,m.Xx);upa(e);m.LB=function(q){g.wu("update_log_event_config")&&
g.co.Wh(function(){return g.A(function(r){return g.x(r,vpa(q),0)})});
l--;l||c()};
m.JB=0;m.KB=function(q){return function(){q.JB++;if(e.bypassNetworkless&&1===q.JB)try{g.zx(b,"log_event",q.Ur,Oy({writeThenSend:!0},q.Xx,q.LB,q.KB,f)),Ny=!1}catch(r){g.Bu(r),d()}l--;l||c()}}(m);
try{g.zx(b,"log_event",m.Ur,Oy(e,m.Xx,m.LB,m.KB,f)),Ny=!1}catch(q){g.Bu(q),d()}}};
Iy=function(a,b,c,d,e){d=void 0===d?{}:d;var f=Math.round((0,g.Q)()),h=a.size,l=new Map([].concat(g.u(a)));l=g.t(l);for(var m=l.next();!m.done;m=l.next()){var n=g.t(m.value).next().value,p=a.get(n);m=new qu;var q=noa(b.config_||g.Yw());H(m,xq,1,q);p=p?wpa(p):[];p=g.t(p);for(q=p.next();!q.done;q=p.next())Qd(m,3,nu,q.value);(p=Ky[n])&&xpa(m,n,p);delete Ky[n];n="visitorOnlyApprovedKey"===n;ypa(m,f,n);upa(d);m=m.Rk();n=Oy(d,n,function(r){g.wu("update_log_event_config")&&g.co.Wh(function(){return g.A(function(w){return g.x(w,
vpa(r),0)})});
h--;h||c()},function(){h--;
h||c()},e);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=m;g.zx(b,"log_event","",n);Ny=!1}};
upa=function(a){g.wu("always_send_and_write")&&(a.writeThenSend=!1)};
Oy=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,FR:a,Zy:b,x5a:!!e,headers:{},postBodyFormat:"",postBody:""};Py()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Q)())));return a};
tpa=function(a,b,c){Py()||(a.requestTimeMs=String(b));g.wu("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.uu("EVENT_ID"))&&(c=zpa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
ypa=function(a,b,c){Py()||g.F(a,2,b);if(!c&&(b=g.uu("EVENT_ID"))){c=zpa();var d=new ou;g.F(d,1,b);g.F(d,2,c);H(a,ou,5,d)}};
zpa=function(){var a=g.uu("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Apa/2));a++;a>Apa&&(a=1);tu("BATCH_CLIENT_COUNTER",a);return a};
spa=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}]};
xpa=function(a,b,c){if(c.Wf())var d=1;else if(c.getPlaylistId())d=2;else return;H(a,pu,4,c);a=a.getContext()||new xq;c=Jd(a,vq,3)||new vq;var e=new uq;e.setToken(b);g.F(e,1,d);Qd(c,12,uq,e);H(a,vq,3,c)};
wpa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new nu(a[c]))}catch(d){g.Bu(new g.Yv("Transport failed to deserialize "+String(a[c])))}return b};
uy=function(a,b){if(g.Ga("yt.logging.transport.enableScrapingForTest")){var c=g.Ga("yt.logging.transport.scrapedPayloadsForTesting"),d=g.Ga("yt.logging.transport.payloadToScrape","");b&&(b=b.payload,(b=g.Ga("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));a&&a.payload[d]&&c.push((null==a?void 0:a.payload)[d]);g.Ea("yt.logging.transport.scrapedPayloadsForTesting",c)}};
Py=function(){return g.wu("use_request_time_ms_header")||g.wu("lr_use_request_time_ms_header")};
Fy=function(a,b){return g.wu("transport_use_scheduler")?Sv(a,0,b):g.Ru(a,b)};
My=function(a){g.wu("transport_use_scheduler")?g.co.Bl(a):g.Tu(a)};
vpa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.A(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.N(d,Bpa),h=null==(f=d)?void 0:f.hotHashData,l=g.N(d,Cpa),n=null==(m=d)?void 0:m.coldHashData,p=jpa().resolve(Xw),e&&h?g.x(q,eoa(p,e,h),2):q.Ja(2)):l&&n?g.x(q,foa(p,l,n),0):q.Ja(0)})};
Ry=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.Q)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;g.wu("enable_unknown_lact_fix_on_html5")&&by();a=dy();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.wu("log_sequence_info_on_gel_web")&&d.Qk&&(a=e.context,b=d.Qk,b={index:Dpa(b),groupKey:b},a.sequence=b,d.GP&&delete Qy[d.Qk]);(d.CL?ppa:mpa)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,Zy:d.Zy},c)};
Sy=function(a){Gy(void 0,void 0,void 0===a?!1:a)};
Dpa=function(a){Qy[a]=a in Qy?Qy[a]+1:0;return Qy[a]};
g.Xy=function(a,b,c){c=void 0===c?{}:c;c.timestamp=Math.round(c.timestamp||(0,g.Q)());var d=Epa;g.uu("ytLoggingEventsDefaultDisabled",!1)&&Epa===g.yx&&(d=null);if(g.wu("web_all_payloads_via_jspb"))if(Ty&&Uy){var e=Ty[a];if(e)if((b=e(Vy(b)))&&Uy[a]){if(Uy[a](b,c,d||void 0),a=Wy,Wy=[],a)for(a=g.t(a),c=a.next();!c.done;c=a.next())c=c.value,g.Xy(c.payloadName,c.payload,c.options)}else Du(new g.Yv("Unable to call logFn for payload",a));else Du(new g.Yv("Unable to translate payload to JSPB",a))}else Wy.push({payloadName:a,
payload:b,options:c});else Ry(a,b,d,c)};
Vy=function(a){if(!g.wu("jspb_convert_payloads_to_lower_camel")||!g.Ma(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=Fpa(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.Ka(a[d]))a[d]=Vy(a[d]);else if(g.Ka(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(Vy(e[h]));a[d]=f}}return a};
Fpa=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
Yy=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.Q)());g.F(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=dy();d=new mu;g.F(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.wu("log_sequence_info_on_gel_web")&&c.Qk){e=c.Qk;var f=Dpa(e),h=new lu;g.F(h,2,f);g.F(h,1,e);H(d,lu,3,h);c.GP&&delete Gpa[c.Qk]}H(a,mu,33,d);(c.CL?qpa:npa)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,Zy:c.Zy},b)};
Zy=function(a,b){b=void 0===b?{}:b;var c=!1;g.uu("ytLoggingEventsDefaultDisabled",!1)&&(c=!0);Yy(a,c?null:g.yx,b)};
az=function(a,b){var c=new nu;Ld(c,Mt,72,$y,a);Zy(c,b)};
Hpa=function(a,b,c){var d=new nu;Ld(d,Lt,73,$y,a);c?Yy(d,c,b):Zy(d,b)};
Ipa=function(a,b,c){var d=new nu;Ld(d,Kt,78,$y,a);c?Yy(d,c,b):Zy(d,b)};
Jpa=function(a,b,c){var d=new nu;Ld(d,Nt,208,$y,a);c?Yy(d,c,b):Zy(d,b)};
Kpa=function(a,b,c){var d=new nu;Ld(d,Et,156,$y,a);c?Yy(d,c,b):Zy(d,b)};
Lpa=function(a,b,c){var d=new nu;Ld(d,Ct,202,$y,a);c?Yy(d,c,b):Zy(d,b)};
Mpa=function(a,b,c){var d=new nu;Ld(d,Jt,215,$y,a);c?Yy(d,c,b):Zy(d,b)};
Npa=function(a,b,c){var d=new nu;Ld(d,tt,111,$y,a);c?Yy(d,c,b):Zy(d,b)};
bz=function(a,b,c){if(!g.wu("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)c?a(c(b[d])):a(b[d]);else c?a(c(b)):a(b)};
cz=function(a,b,c){if(!g.wu("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
R=function(a){g.wu("jspb_translator_log_errors")&&g.Bu(a)};
Ppa=function(a){var b=new sr;try{return void 0!==a.eventType&&g.F(b,1,Opa[a.eventType]),void 0!==a.storedEventsCount&&g.F(b,2,a.storedEventsCount),void 0!==a.expiredEventsCount&&g.F(b,3,a.expiredEventsCount),void 0!==a.averageTimeBetweenDispatchesMs&&g.F(b,4,a.averageTimeBetweenDispatchesMs),void 0!==a.oldestStoredEventAgeMs&&g.F(b,5,a.oldestStoredEventAgeMs),void 0!==a.metricIntervalMs&&g.F(b,6,a.metricIntervalMs),void 0!==a.dispatchedEventCount&&g.F(b,7,a.dispatchedEventCount),void 0!==a.dispatchAttemptCount&&
g.F(b,8,a.dispatchAttemptCount),void 0!==a.withDiskSpaceMs&&g.F(b,9,a.withDiskSpaceMs),void 0!==a.withNetworkMs&&g.F(b,10,a.withNetworkMs),void 0!==a.foregroundMs&&g.F(b,11,a.foregroundMs),void 0!==a.activeMs&&g.F(b,12,a.activeMs),void 0!==a.condensedPageBcSlackCount&&g.F(b,13,a.condensedPageBcSlackCount),void 0!==a.persistedDeleteUsedCount&&g.F(b,14,a.persistedDeleteUsedCount),void 0!==a.persistedDeleteCount&&g.F(b,15,a.persistedDeleteCount),void 0!==a.eventDisabledCount&&g.F(b,16,a.eventDisabledCount),
void 0!==a.identityResolutionErrorCount&&g.F(b,17,a.identityResolutionErrorCount),void 0!==a.exceededMaxRetryCount&&g.F(b,18,a.exceededMaxRetryCount),void 0!==a.condensedPageBcPersistFailCount&&g.F(b,19,a.condensedPageBcPersistFailCount),void 0!==a.couldNotUnloadPageCount&&g.F(b,20,a.couldNotUnloadPageCount),void 0!==a.pageWasCorruptedCount&&g.F(b,24,a.pageWasCorruptedCount),void 0!==a.badEventIndexCount&&g.F(b,27,a.badEventIndexCount),void 0!==a.serializeErrorCount&&g.F(b,25,a.serializeErrorCount),
void 0!==a.payloadInfoNotSetCount&&g.F(b,21,a.payloadInfoNotSetCount),void 0!==a.requestEmptyErrorCount&&g.F(b,22,a.requestEmptyErrorCount),void 0!==a.clientEventNotSetCount&&g.F(b,23,a.clientEventNotSetCount),void 0!==a.differentIdCount&&g.F(b,26,a.differentIdCount),b}catch(c){R(c)}};
uqa=function(a){var b=new Ps;try{void 0!==a.encryptedVideoId&&g.F(b,1,a.encryptedVideoId);void 0!==a.cotn&&g.F(b,20,a.cotn);void 0!==a.cpn&&g.F(b,30,a.cpn);void 0!==a.transferStatusType&&g.F(b,38,Qpa[a.transferStatusType]);void 0!==a.statusType&&g.F(b,2,Rpa[a.statusType]);void 0!==a.failureReason&&g.F(b,3,Spa[a.failureReason]);void 0!==a.transferFailureReason&&g.F(b,41,Tpa[a.transferFailureReason]);void 0!==a.failureExceptionType&&g.F(b,37,a.failureExceptionType);void 0!==a.totalFetchedKbytes&&g.F(b,
4,a.totalFetchedKbytes);void 0!==a.diskAvailableKbytes&&g.F(b,5,a.diskAvailableKbytes);void 0!==a.totalContentKbytes&&g.F(b,21,a.totalContentKbytes);void 0!==a.alreadyDownloadedKbytes&&g.F(b,22,a.alreadyDownloadedKbytes);void 0!==a.fetchedFromCacheKbytes&&g.F(b,23,a.fetchedFromCacheKbytes);if(a.systemHealth){a:{var c=a.systemHealth,d=new Wr;try{void 0!==c.tag&&g.F(d,1,Upa[c.tag]);if(c.staticContext){b:{var e=c.staticContext,f=new Rr;try{void 0!==e.displayDensityDpi&&g.F(f,1,e.displayDensityDpi);void 0!==
e.heightPixels&&g.F(f,2,e.heightPixels);void 0!==e.widthPixels&&g.F(f,3,e.widthPixels);void 0!==e.memoryTotalKbytes&&g.F(f,4,e.memoryTotalKbytes);void 0!==e.osSdkVersion&&g.F(f,5,e.osSdkVersion);void 0!==e.osIncrementalVersion&&g.F(f,6,e.osIncrementalVersion);void 0!==e.hardwareArchitecture&&g.F(f,7,e.hardwareArchitecture);void 0!==e.appVersionCode&&g.F(f,8,e.appVersionCode);void 0!==e.devicePixelRatio&&g.F(f,9,e.devicePixelRatio);void 0!==e.buildFingerprint&&g.F(f,10,e.buildFingerprint);void 0!==
e.socManufacturer&&g.F(f,11,e.socManufacturer);void 0!==e.socModel&&g.F(f,12,e.socModel);void 0!==e.availableProcessors&&g.F(f,13,e.availableProcessors);void 0!==e.cpuCores&&g.F(f,14,e.cpuCores);void 0!==e.heightPoints&&g.F(f,15,e.heightPoints);void 0!==e.widthPoints&&g.F(f,16,e.widthPoints);void 0!==e.androidMediaPerformanceClass&&g.F(f,17,e.androidMediaPerformanceClass);var h=f;break b}catch(Wa){R(Wa)}h=void 0}H(d,Rr,2,h)}if(c.dynamicContext){b:{var l=c.dynamicContext,m=new Lr;try{void 0!==l.screenOn&&
g.F(m,1,l.screenOn);void 0!==l.deviceRotation&&g.F(m,2,l.deviceRotation);void 0!==l.networkType&&g.F(m,3,l.networkType);void 0!==l.networkCoarseState&&g.F(m,4,l.networkCoarseState);void 0!==l.chargingStatus&&g.F(m,5,Vpa[l.chargingStatus]);void 0!==l.isInForeground&&g.F(m,6,l.isInForeground);void 0!==l.viewportHeightPixels&&g.F(m,7,l.viewportHeightPixels);void 0!==l.viewportWidthPixels&&g.F(m,8,l.viewportWidthPixels);void 0!==l.hasCoarsePointer&&g.F(m,9,l.hasCoarsePointer);void 0!==l.hasFinePointer&&
g.F(m,10,l.hasFinePointer);void 0!==l.hasHoverSupport&&g.F(m,11,l.hasHoverSupport);void 0!==l.deviceFreeStorageMbytes&&g.F(m,12,l.deviceFreeStorageMbytes);void 0!==l.deviceStorageQuotaMbytes&&g.F(m,13,l.deviceStorageQuotaMbytes);void 0!==l.deviceStorageUsageMbytes&&g.F(m,14,l.deviceStorageUsageMbytes);void 0!==l.processUptimeMs&&g.F(m,15,l.processUptimeMs);void 0!==l.hasAppShell&&g.F(m,16,l.hasAppShell);void 0!==l.glVersion&&g.F(m,17,l.glVersion);void 0!==l.glRenderer&&g.F(m,18,l.glRenderer);l.srsDatapushBuildIds&&
bz(m.C.bind(m),l.srsDatapushBuildIds,Wpa);l.playerDatapushBuildIds&&bz(m.j.bind(m),l.playerDatapushBuildIds,Xpa);var n=m;break b}catch(Wa){R(Wa)}n=void 0}H(d,Lr,3,n)}void 0!==c.serializedPrimesMetric&&Pd(d,4,c.serializedPrimesMetric);void 0!==c.serializedIosPrimesMetric&&Pd(d,6,c.serializedIosPrimesMetric);if(c.webMetric){b:{var p=c.webMetric,q=new Tr;try{void 0!==p.currentHeapKbytes&&g.F(q,1,p.currentHeapKbytes);void 0!==p.navigationCount&&g.F(q,2,p.navigationCount);var r=q;break b}catch(Wa){R(Wa)}r=
void 0}H(d,Tr,7,r)}if(c.crashData){b:{var w=c.crashData,y=new Ir;try{void 0!==w.stackTrace&&g.F(y,1,w.stackTrace);void 0!==w.screenVeType&&g.F(y,2,w.screenVeType);if(w.compactStackTrace){var z=dz(w.compactStackTrace);H(y,rr,3,z)}void 0!==w.crashTimeMs&&g.F(y,4,w.crashTimeMs);if(w.clientError){c:{var B=w.clientError,D=new Hr;try{if(B.errorMetadata){d:{var G=B.errorMetadata,E=new Ar;try{void 0!==G.exceptionCategory&&g.F(E,1,Ypa[G.exceptionCategory]);if(G.serviceTrackingData){e:{var J=G.serviceTrackingData,
M=new yr;try{void 0!==J.innertubeBuildChangelist&&g.F(M,1,J.innertubeBuildChangelist);void 0!==J.innertubeBuildExperimentsSourceVersion&&g.F(M,2,J.innertubeBuildExperimentsSourceVersion);void 0!==J.innertubeBuildLabel&&g.F(M,3,J.innertubeBuildLabel);void 0!==J.innertubeBuildTimestampSec&&g.F(M,4,J.innertubeBuildTimestampSec);void 0!==J.innertubeBuildVariantsChecksum&&g.F(M,5,J.innertubeBuildVariantsChecksum);void 0!==J.innertubeJobName&&g.F(M,6,J.innertubeJobName);var P=M;break e}catch(Wa){R(Wa)}P=
void 0}H(E,yr,2,P)}void 0!==G.pageUrl&&g.F(E,3,G.pageUrl);G.kvPairs&&bz(E.j.bind(E),G.kvPairs,Zpa);G.experimentIds&&bz(E.C.bind(E),G.experimentIds);if(G.playerMetadata){e:{var X=G.playerMetadata,W=new zr;try{void 0!==X.error&&cz(W.j.bind(W),X.error,$pa);void 0!==X.stackTrace&&g.F(W,2,X.stackTrace);var S=W;break e}catch(Wa){R(Wa)}S=void 0}H(E,zr,6,S)}void 0!==G.exceptionType&&g.F(E,7,aqa[G.exceptionType]);var ca=E;break d}catch(Wa){R(Wa)}ca=void 0}H(D,Ar,1,ca)}if(B.stackTrace){d:{var O=B.stackTrace,
xa=new Fr;try{void 0!==O.isObfuscated&&g.F(xa,1,O.isObfuscated);if(O.androidStackInfo){e:{var la=O.androidStackInfo,ta=new Cr;try{void 0!==la.serializedThrowable&&Pd(ta,1,la.serializedThrowable);var La=ta;break e}catch(Wa){R(Wa)}La=void 0}Ld(xa,Cr,2,ez,La)}if(O.browserStackInfo){e:{var cb=O.browserStackInfo,va=new Dr;try{void 0!==cb.stackTrace&&g.F(va,1,cb.stackTrace);void 0!==cb.lineNumber&&g.F(va,2,cb.lineNumber);void 0!==cb.columnNumber&&g.F(va,3,cb.columnNumber);void 0!==cb.filename&&g.F(va,4,
cb.filename);var Ha=va;break e}catch(Wa){R(Wa)}Ha=void 0}Ld(xa,Dr,3,ez,Ha)}if(O.iosStackInfo){e:{var Xb=O.iosStackInfo,kb=new Er;try{void 0!==Xb.stackTrace&&g.F(kb,1,Xb.stackTrace);if(Xb.compactStackTrace){var cc=dz(Xb.compactStackTrace);H(kb,rr,2,cc)}var Nc=kb;break e}catch(Wa){R(Wa)}Nc=void 0}Ld(xa,Er,4,ez,Nc)}var Yb=xa;break d}catch(Wa){R(Wa)}Yb=void 0}H(D,Fr,2,Yb)}if(B.logMessage){d:{var vb=B.logMessage,Za=new Gr;try{void 0!==vb.message&&g.F(Za,1,vb.message);void 0!==vb.level&&g.F(Za,2,bqa[vb.level]);
void 0!==vb.errorClassName&&g.F(Za,3,vb.errorClassName);void 0!==vb.sourceMethodName&&g.F(Za,4,vb.sourceMethodName);void 0!==vb.sampleWeight&&g.F(Za,6,vb.sampleWeight);var qd=Za;break d}catch(Wa){R(Wa)}qd=void 0}H(D,Gr,3,qd)}var Rc=D;break c}catch(Wa){R(Wa)}Rc=void 0}H(y,Hr,5,Rc)}var $b=y;break b}catch(Wa){R(Wa)}$b=void 0}H(d,Ir,9,$b)}c.delayedEventMetrics&&bz(d.j.bind(d),c.delayedEventMetrics,Ppa);if(c.iosBatteryMetric){b:{var Bb=c.iosBatteryMetric,Dd=new ur;try{void 0!==Bb.sampleDurationMs&&g.F(Dd,
1,Bb.sampleDurationMs);if(Bb.startSample){var id=cqa(Bb.startSample);H(Dd,tr,2,id)}if(Bb.endSample){var hc=cqa(Bb.endSample);H(Dd,tr,3,hc)}var ac=Dd;break b}catch(Wa){R(Wa)}ac=void 0}H(d,ur,11,ac)}if(c.androidBatteryMetric){b:{var ob=c.androidBatteryMetric,Fb=new kr;try{void 0!==ob.sampleDurationMs&&g.F(Fb,1,ob.sampleDurationMs);if(ob.startSample){var kc=dqa(ob.startSample);H(Fb,jr,2,kc)}if(ob.endSample){var Ra=dqa(ob.endSample);H(Fb,jr,3,Ra)}var Oc=Fb;break b}catch(Wa){R(Wa)}Oc=void 0}H(d,kr,12,
Oc)}if(c.webApiSupport){b:{var pb=c.webApiSupport,Zb=new Sr;try{void 0!==pb.intersectionObserverPresent&&g.F(Zb,1,pb.intersectionObserverPresent);void 0!==pb.indexedDbPresent&&g.F(Zb,2,pb.indexedDbPresent);void 0!==pb.serviceWorkerPresent&&g.F(Zb,3,pb.serviceWorkerPresent);void 0!==pb.webSharePresent&&g.F(Zb,4,pb.webSharePresent);void 0!==pb.fullScreenApiPresent&&g.F(Zb,5,pb.fullScreenApiPresent);void 0!==pb.cacheStoragePresent&&g.F(Zb,6,pb.cacheStoragePresent);void 0!==pb.storageEstimatePresent&&
g.F(Zb,7,pb.storageEstimatePresent);void 0!==pb.storagePersistPresent&&g.F(Zb,8,pb.storagePersistPresent);void 0!==pb.webkitTemporaryStoragePresent&&g.F(Zb,9,pb.webkitTemporaryStoragePresent);void 0!==pb.idb2Present&&g.F(Zb,10,pb.idb2Present);void 0!==pb.promiseRejectionEventPresent&&g.F(Zb,11,pb.promiseRejectionEventPresent);void 0!==pb.subtleCryptoPresent&&g.F(Zb,12,pb.subtleCryptoPresent);void 0!==pb.broadcastChannelPresent&&g.F(Zb,13,pb.broadcastChannelPresent);void 0!==pb.webLocksApiPresent&&
g.F(Zb,14,pb.webLocksApiPresent);var Xd=Zb;break b}catch(Wa){R(Wa)}Xd=void 0}H(d,Sr,13,Xd)}if(c.cpuProfiling){b:{var Ed=c.cpuProfiling,qb=new xr;try{if(Ed.profilingSamples){var xc=dz(Ed.profilingSamples);H(qb,rr,1,xc)}if(Ed.config){var Sc=qb.setConfig;c:{var uc=Ed.config,ud=new wr;try{void 0!==uc.profilingIntervalSec&&g.F(ud,1,uc.profilingIntervalSec);void 0!==uc.profilingDurationSec&&g.F(ud,2,uc.profilingDurationSec);void 0!==uc.timerType&&g.F(ud,3,eqa[uc.timerType]);void 0!==uc.profilingStartTimeSec&&
g.F(ud,4,uc.profilingStartTimeSec);void 0!==uc.fractionOfRunsToSample&&g.F(ud,5,uc.fractionOfRunsToSample);var vd=ud;break c}catch(Wa){R(Wa)}vd=void 0}Sc.call(qb,vd)}var je=qb;break b}catch(Wa){R(Wa)}je=void 0}H(d,xr,14,je)}if(c.stallStackTrace){var ue=dz(c.stallStackTrace);H(d,rr,15,ue)}if(c.memoryUsage){b:{var gb=c.memoryUsage,Ub=new Or;try{void 0!==gb.totalMemoryUsageBytes&&g.F(Ub,1,gb.totalMemoryUsageBytes);gb.classMemoryUsage&&bz(Ub.j.bind(Ub),gb.classMemoryUsage,fqa);if(gb.config){var ve=Ub.setConfig;
c:{var $a=gb.config,yb=new Nr;try{void 0!==$a.maxStartTimeSec&&g.F(yb,1,$a.maxStartTimeSec);void 0!==$a.durationTimeSec&&g.F(yb,2,$a.durationTimeSec);void 0!==$a.intervalSec&&g.F(yb,3,$a.intervalSec);void 0!==$a.maxLogCount&&g.F(yb,4,$a.maxLogCount);void 0!==$a.fractionOfRunsToSample&&g.F(yb,5,$a.fractionOfRunsToSample);var yc=yb;break c}catch(Wa){R(Wa)}yc=void 0}ve.call(Ub,yc)}void 0!==gb.processUptimeMs&&g.F(Ub,4,gb.processUptimeMs);gb.viewAllocation&&bz(Ub.C.bind(Ub),gb.viewAllocation,fqa);void 0!==
gb.entityStoreCount&&g.F(Ub,6,gb.entityStoreCount);void 0!==gb.entityStoreBytes&&g.F(Ub,7,gb.entityStoreBytes);var Md=Ub;break b}catch(Wa){R(Wa)}Md=void 0}H(d,Or,16,Md)}c.networkEvents&&bz(d.C.bind(d),c.networkEvents,gqa);if(c.threadUtilization){b:{var Ob=c.threadUtilization,we=new Vr;try{void 0!==Ob.userJourney&&g.F(we,1,Ob.userJourney);void 0!==Ob.type&&g.F(we,2,hqa[Ob.type]);Ob.threadPoolStats&&bz(we.j.bind(we),Ob.threadPoolStats,iqa);void 0!==Ob.totalThreadCount&&g.F(we,4,Ob.totalThreadCount);
void 0!==Ob.statsGenerateDurationMs&&g.F(we,5,Ob.statsGenerateDurationMs);var vf=we;break b}catch(Wa){R(Wa)}vf=void 0}H(d,Vr,18,vf)}if(c.androidBackgroundTask){b:{var Fd=c.androidBackgroundTask,xe=new vr;try{void 0!==Fd.tag&&g.F(xe,1,Fd.tag);void 0!==Fd.isKnownTask&&g.F(xe,2,Fd.isKnownTask);void 0!==Fd.result&&g.F(xe,3,jqa[Fd.result]);var Sf=xe;break b}catch(Wa){R(Wa)}Sf=void 0}H(d,vr,19,Sf)}if(c.distributiveProfilingSpan){b:{var lc=c.distributiveProfilingSpan,We=new Kr;try{void 0!==lc.spanId&&g.F(We,
1,kqa[lc.spanId]);void 0!==lc.sampleRate&&g.F(We,2,lc.sampleRate);void 0!==lc.spanDurationMs&&g.F(We,3,lc.spanDurationMs);void 0!==lc.sampleFailureCount&&g.F(We,4,lc.sampleFailureCount);lc.sample&&bz(We.Fh.bind(We),lc.sample,lqa);var Yc=We;break b}catch(Wa){R(Wa)}Yc=void 0}H(d,Kr,20,Yc)}var Ie=d;break a}catch(Wa){R(Wa)}Ie=void 0}H(b,Wr,6,Ie)}void 0!==a.detailedNetworkType&&g.F(b,7,fz[a.detailedNetworkType]);void 0!==a.isAd&&g.F(b,8,a.isAd);void 0!==a.offlineModeType&&g.F(b,9,mqa[a.offlineModeType]);
void 0!==a.storageFormat&&g.F(b,24,nqa[a.storageFormat]);void 0!==a.offlineSourceVeType&&g.F(b,32,a.offlineSourceVeType);void 0!==a.listId&&g.F(b,10,a.listId);void 0!==a.offlineabilityFormatType&&g.F(b,11,gz[a.offlineabilityFormatType]);void 0!==a.offlineAudioQuality&&g.F(b,29,oqa[a.offlineAudioQuality]);void 0!==a.softErrorCount&&g.F(b,12,a.softErrorCount);void 0!==a.pendingStateFlags&&g.F(b,13,a.pendingStateFlags);void 0!==a.unusedOfflineVideoPendingState&&g.F(b,14,pqa[a.unusedOfflineVideoPendingState]);
void 0!==a.isRefresh&&g.F(b,15,a.isRefresh);void 0!==a.isNewPlayerResponse&&g.F(b,16,a.isNewPlayerResponse);void 0!==a.isOfflineShareable&&g.F(b,17,a.isOfflineShareable);void 0!==a.hasContentVerificationSignature&&g.F(b,18,a.hasContentVerificationSignature);void 0!==a.isOfflineInterleaving&&g.F(b,19,a.isOfflineInterleaving);void 0!==a.blockSizeBytes&&g.F(b,25,a.blockSizeBytes);void 0!==a.streamVerificationStrategy&&g.F(b,26,hz[a.streamVerificationStrategy]);a.streamVerificationFailedBlocks&&bz(b.j.bind(b),
a.streamVerificationFailedBlocks,qqa);if(a.spacecastInfo){a:{var Tf=a.spacecastInfo,Xe=new Rs;try{void 0!==Tf.applianceId&&g.F(Xe,1,Tf.applianceId);void 0!==Tf.transferredFromCache&&g.F(Xe,2,rqa[Tf.transferredFromCache]);var pg=Xe;break a}catch(Wa){R(Wa)}pg=void 0}H(b,Rs,28,pg)}void 0!==a.transferType&&g.F(b,33,sqa[a.transferType]);void 0!==a.onlyDownloadOnWifi&&g.F(b,34,a.onlyDownloadOnWifi);void 0!==a.appLifecycleStatus&&g.F(b,35,tqa[a.appLifecycleStatus]);void 0!==a.isDefaultDownloadToSdCard&&
g.F(b,36,a.isDefaultDownloadToSdCard);void 0!==a.serializedLoggingParams&&Pd(b,39,a.serializedLoggingParams);void 0!==a.transferServiceStartedFromBackground&&g.F(b,40,a.transferServiceStartedFromBackground);void 0!==a.transferFirstStarted&&g.F(b,42,a.transferFirstStarted);return b}catch(Wa){R(Wa)}};
Wpa=function(a){var b=new pq;try{if(a.datapushBuild){var c=vqa(a.datapushBuild);H(b,nq,1,c)}return b}catch(d){R(d)}};
vqa=function(a){var b=new nq;try{return void 0!==a.buildId&&g.F(b,1,a.buildId),void 0!==a.clientExperimentId&&g.F(b,2,a.clientExperimentId),void 0!==a.accessType&&g.F(b,3,wqa[a.accessType]),b}catch(c){R(c)}};
Xpa=function(a){var b=new oq;try{if(a.datapushBuild){var c=vqa(a.datapushBuild);H(b,nq,1,c)}return b}catch(d){R(d)}};
dz=function(a){var b=new rr;try{return a.stackTraces&&bz(b.C.bind(b),a.stackTraces,xqa),a.allModules&&bz(b.j.bind(b),a.allModules,yqa),void 0!==a.appVersionCode&&g.F(b,3,a.appVersionCode),b}catch(c){R(c)}};
xqa=function(a){var b=new qr;try{if(a.mainThread){var c=zqa(a.mainThread);H(b,pr,1,c)}a.backgroundThreads&&bz(b.j.bind(b),a.backgroundThreads,zqa);a.metaData&&bz(b.C.bind(b),a.metaData,Aqa);return b}catch(d){R(d)}};
zqa=function(a){var b=new pr;try{a.stackFrames&&bz(b.j.bind(b),a.stackFrames,Bqa);void 0!==a.androidStack&&g.F(b,6,a.androidStack);void 0!==a.threadName&&g.F(b,2,a.threadName);void 0!==a.cpuUsage&&g.F(b,3,a.cpuUsage);void 0!==a.cpuTimeSec&&g.F(b,4,a.cpuTimeSec);if(a.iosThreadInfo){a:{var c=a.iosThreadInfo,d=new nr;try{void 0!==c.state&&d.Oc(Cqa[c.state]);void 0!==c.flag&&g.F(d,2,Dqa[c.flag]);void 0!==c.currentPriority&&g.F(d,3,c.currentPriority);void 0!==c.priority&&g.F(d,4,c.priority);void 0!==c.maxPriority&&
g.F(d,5,c.maxPriority);void 0!==c.isCrashedThread&&g.F(d,6,c.isCrashedThread);var e=d;break a}catch(f){R(f)}e=void 0}H(b,nr,5,e)}return b}catch(f){R(f)}};
Bqa=function(a){var b=new or;try{return void 0!==a.instructionOffset&&g.F(b,1,a.instructionOffset),void 0!==a.moduleIndex&&g.F(b,2,a.moduleIndex),b}catch(c){R(c)}};
Aqa=function(a){var b=new mr;try{return void 0!==a.clientTimestampMs&&g.F(b,1,a.clientTimestampMs),void 0!==a.sampleTimeCostMs&&g.F(b,2,a.sampleTimeCostMs),void 0!==a.numberOfBustedFrames&&g.F(b,3,a.numberOfBustedFrames),void 0!==a.droppedFrameDurationMs&&g.F(b,4,a.droppedFrameDurationMs),void 0!==a.deviceOrientation&&g.F(b,5,Eqa[a.deviceOrientation]),void 0!==a.processUptimeMs&&g.F(b,6,a.processUptimeMs),void 0!==a.memoryUsageKbytes&&g.F(b,7,a.memoryUsageKbytes),void 0!==a.batteryPercentage&&g.F(b,
8,a.batteryPercentage),void 0!==a.exceptionName&&g.F(b,9,a.exceptionName),void 0!==a.exceptionReason&&g.F(b,10,a.exceptionReason),void 0!==a.signalNumber&&g.F(b,11,a.signalNumber),void 0!==a.signalCode&&g.F(b,12,a.signalCode),b}catch(c){R(c)}};
yqa=function(a){var b=new lr;try{return void 0!==a.moduleUuid&&Pd(b,1,a.moduleUuid),void 0!==a.moduleName&&g.F(b,2,a.moduleName),void 0!==a.loadAddress&&g.F(b,3,a.loadAddress),b}catch(c){R(c)}};
Zpa=function(a){var b=new Br;try{return void 0!==a.key&&g.F(b,1,a.key),void 0!==a.value&&b.setValue(a.value),b}catch(c){R(c)}};
cqa=function(a){var b=new tr;try{return void 0!==a.batteryLevelMicros&&g.F(b,1,a.batteryLevelMicros),void 0!==a.networkType&&g.F(b,2,fz[a.networkType]),void 0!==a.screenBrightness&&g.F(b,3,a.screenBrightness),void 0!==a.isLowPowerMode&&g.F(b,4,a.isLowPowerMode),void 0!==a.isBackground&&g.F(b,5,a.isBackground),void 0!==a.isStateTransition&&g.F(b,6,a.isStateTransition),void 0!==a.observedBackgroundFetchMethodCallback&&g.F(b,7,a.observedBackgroundFetchMethodCallback),void 0!==a.observedBackgroundTaskDidExpire&&
g.F(b,8,a.observedBackgroundTaskDidExpire),b}catch(c){R(c)}};
dqa=function(a){var b=new jr;try{return void 0!==a.batteryLevelMicros&&g.F(b,1,a.batteryLevelMicros),void 0!==a.networkType&&g.F(b,2,fz[a.networkType]),void 0!==a.screenBrightness&&g.F(b,3,a.screenBrightness),void 0!==a.screenBrightnessMode&&g.F(b,4,Fqa[a.screenBrightnessMode]),void 0!==a.lowPowerMode&&g.F(b,5,Gqa[a.lowPowerMode]),void 0!==a.batteryHealth&&g.F(b,6,Hqa[a.batteryHealth]),b}catch(c){R(c)}};
fqa=function(a){var b=new Mr;try{return void 0!==a.className&&g.F(b,1,a.className),void 0!==a.instanceNum&&g.F(b,2,a.instanceNum),void 0!==a.instanceSizeBytes&&g.F(b,3,a.instanceSizeBytes),void 0!==a.allocationNum&&g.F(b,4,a.allocationNum),void 0!==a.deallocationNum&&g.F(b,5,a.deallocationNum),b}catch(c){R(c)}};
gqa=function(a){var b=new Qr;try{return void 0!==a.index&&g.F(b,1,a.index),void 0!==a.networkEventType&&g.F(b,2,Iqa[a.networkEventType]),void 0!==a.path&&g.F(b,3,a.path),void 0!==a.failureReason&&g.F(b,4,Jqa[a.failureReason]),void 0!==a.startTimeMs&&g.F(b,5,a.startTimeMs),void 0!==a.totalDurationMs&&g.F(b,6,a.totalDurationMs),void 0!==a.requestSize&&g.F(b,7,a.requestSize),void 0!==a.responseSize&&g.F(b,8,a.responseSize),a.networkRequestAttempt&&bz(b.j.bind(b),a.networkRequestAttempt,Kqa),void 0!==
a.httpMethod&&g.F(b,10,Lqa[a.httpMethod]),b}catch(c){R(c)}};
Kqa=function(a){var b=new Pr;try{return void 0!==a.failureReason&&g.F(b,1,Jqa[a.failureReason]),void 0!==a.startTimeMs&&g.F(b,5,a.startTimeMs),void 0!==a.durationMs&&g.F(b,2,a.durationMs),void 0!==a.networkAvailable&&g.F(b,3,Mqa[a.networkAvailable]),b}catch(c){R(c)}};
iqa=function(a){var b=new Ur;try{return void 0!==a.threadPoolName&&g.F(b,1,a.threadPoolName),void 0!==a.threadCount&&g.F(b,2,a.threadCount),void 0!==a.startedTaskCount&&g.F(b,3,a.startedTaskCount),void 0!==a.finishedTaskCount&&g.F(b,4,a.finishedTaskCount),void 0!==a.runningTimeMs&&g.F(b,5,a.runningTimeMs),void 0!==a.waitingTimeMs&&g.F(b,6,a.waitingTimeMs),void 0!==a.runCount&&g.F(b,7,a.runCount),void 0!==a.runningPercent&&g.F(b,8,a.runningPercent),b}catch(c){R(c)}};
lqa=function(a){var b=new Jr;try{void 0!==a.curveTimestampMs&&g.F(b,1,a.curveTimestampMs);void 0!==a.curveWeight&&g.F(b,2,a.curveWeight);void 0!==a.realTimestampMs&&g.F(b,3,a.realTimestampMs);void 0!==a.sampleCostUsec&&g.F(b,4,a.sampleCostUsec);if(a.compactStackTraceSample){var c=dz(a.compactStackTraceSample);H(b,rr,5,c)}return b}catch(d){R(d)}};
qqa=function(a){var b=new Qs;try{return void 0!==a.itag&&g.F(b,1,a.itag),void 0!==a.startingByte&&g.F(b,2,a.startingByte),b}catch(c){R(c)}};
Rqa=function(a){var b=new fu;try{void 0!==a.id&&g.F(b,1,a.id);void 0!==a.videoState&&g.F(b,2,Nqa[a.videoState]);void 0!==a.pendingStateFlags&&g.F(b,3,a.pendingStateFlags);void 0!==a.totalBytes&&g.F(b,21,a.totalBytes);void 0!==a.downloadedBytes&&g.F(b,4,a.downloadedBytes);void 0!==a.selectedVideoQuality&&g.F(b,5,gz[a.selectedVideoQuality]);void 0!==a.selectedOfflineMode&&g.F(b,6,mqa[a.selectedOfflineMode]);void 0!==a.playerResponseSavedTimeMs&&g.F(b,7,a.playerResponseSavedTimeMs);void 0!==a.offlineStateUpdateTimeMs&&
g.F(b,8,a.offlineStateUpdateTimeMs);void 0!==a.offlineStateExpiresInS&&g.F(b,9,a.offlineStateExpiresInS);void 0!==a.durationInS&&g.F(b,10,a.durationInS);void 0!==a.isInPlaylist&&g.F(b,11,a.isInPlaylist);void 0!==a.addedNetworkType&&g.F(b,12,fz[a.addedNetworkType]);void 0!==a.downloadCompletedNetworkType&&g.F(b,13,fz[a.downloadCompletedNetworkType]);a.captions&&bz(b.j.bind(b),a.captions,Oqa);void 0!==a.unusedOfflineVideoPendingState&&g.F(b,15,pqa[a.unusedOfflineVideoPendingState]);void 0!==a.lastPlaybackTimestampMs&&
g.F(b,16,a.lastPlaybackTimestampMs);a.offlineSuspendedStates&&bz(b.C.bind(b),a.offlineSuspendedStates,Pqa);void 0!==a.streamInLocalStorage&&g.F(b,18,a.streamInLocalStorage);void 0!==a.streamInInternalStorage&&g.F(b,19,a.streamInInternalStorage);if(a.storageIdStates){a:{var c=a.storageIdStates,d=new eu;try{void 0!==c.storageId&&g.F(d,1,c.storageId);void 0!==c.storageIdSourceType&&g.F(d,2,Qqa[c.storageIdSourceType]);var e=d;break a}catch(n){R(n)}e=void 0}H(b,eu,20,e)}void 0!==a.cotn&&g.F(b,22,a.cotn);
if(a.additionalVideoClientState){var f=new cu;H(b,cu,23,f)}if(a.offlineVideoEntityMigrationState){a:{var h=a.offlineVideoEntityMigrationState,l=new hu;try{void 0!==h.isInOfflineStore&&g.F(l,1,h.isInOfflineStore);void 0!==h.isPlaybackDataEntityPresent&&g.F(l,2,h.isPlaybackDataEntityPresent);void 0!==h.wasPlaybackDataEntityUsedToFillVideoState&&g.F(l,3,h.wasPlaybackDataEntityUsedToFillVideoState);void 0!==h.isTransferEntityPresent&&g.F(l,4,h.isTransferEntityPresent);void 0!==h.wasTransferEntityUsedToFillVideoState&&
g.F(l,5,h.wasTransferEntityUsedToFillVideoState);void 0!==h.offlineStoreCaptionTrackCount&&g.F(l,6,h.offlineStoreCaptionTrackCount);void 0!==h.entityStoreCaptionTrackCount&&g.F(l,7,h.entityStoreCaptionTrackCount);void 0!==h.isMetadataEntityPresent&&g.F(l,8,h.isMetadataEntityPresent);var m=l;break a}catch(n){R(n)}m=void 0}H(b,hu,24,m)}return b}catch(n){R(n)}};
Oqa=function(a){var b=new gu;try{return void 0!==a.format&&g.F(b,1,a.format),void 0!==a.isDownloaded&&g.F(b,2,a.isDownloaded),b}catch(c){R(c)}};
Pqa=function(a){var b=new du;try{return void 0!==a.totalDownloadedBytes&&g.F(b,1,a.totalDownloadedBytes),void 0!==a.totalSegmentCount&&g.F(b,2,a.totalSegmentCount),void 0!==a.backgroundTransitionCount&&g.F(b,3,a.backgroundTransitionCount),void 0!==a.totalDurationMs&&g.F(b,4,a.totalDurationMs),void 0!==a.downloadErrorCount&&g.F(b,5,a.downloadErrorCount),void 0!==a.totalDownloadedSizePercent&&g.F(b,6,a.totalDownloadedSizePercent),b}catch(c){R(c)}};
Tqa=function(a){var b=new bu;try{return void 0!==a.id&&g.F(b,1,a.id),a.videoIds&&bz(b.j.bind(b),a.videoIds),void 0!==a.videoCount&&g.F(b,3,a.videoCount),void 0!==a.successCount&&g.F(b,4,a.successCount),void 0!==a.failCount&&g.F(b,5,a.failCount),void 0!==a.pendingCount&&g.F(b,6,a.pendingCount),void 0!==a.disabledCount&&g.F(b,7,a.disabledCount),void 0!==a.deletedCount&&g.F(b,8,a.deletedCount),void 0!==a.selectedVideoQuality&&g.F(b,9,gz[a.selectedVideoQuality]),void 0!==a.isPlaylistOwner&&g.F(b,10,a.isPlaylistOwner),
void 0!==a.lastSyncTimeMs&&g.F(b,11,a.lastSyncTimeMs),void 0!==a.requestSource&&g.F(b,12,Sqa[a.requestSource]),b}catch(c){R(c)}};
Vqa=function(a){var b=new Wt;try{return void 0!==a.videoId&&b.setVideoId(a.videoId),void 0!==a.itag&&g.F(b,6,a.itag),void 0!==a.failureReason&&g.F(b,2,iz[a.failureReason]),void 0!==a.isCachedExternally&&g.F(b,3,a.isCachedExternally),void 0!==a.previousFailureReason&&g.F(b,4,iz[a.previousFailureReason]),void 0!==a.previousFailureReasonTimestampMs&&g.F(b,5,a.previousFailureReasonTimestampMs),void 0!==a.streamVerificationStrategy&&g.F(b,7,hz[a.streamVerificationStrategy]),void 0!==a.blockSizeBytes&&
g.F(b,8,a.blockSizeBytes),a.streamVerificationFailedBlocks&&bz(b.j.bind(b),a.streamVerificationFailedBlocks,Uqa),void 0!==a.primaryVerificationStrategy&&g.F(b,10,hz[a.primaryVerificationStrategy]),void 0!==a.secondaryVerificationStrategy&&g.F(b,11,hz[a.secondaryVerificationStrategy]),void 0!==a.secondaryFailureReason&&g.F(b,12,iz[a.secondaryFailureReason]),b}catch(c){R(c)}};
Uqa=function(a){var b=new Xt;try{return void 0!==a.itag&&g.F(b,1,a.itag),void 0!==a.startingByte&&g.F(b,2,a.startingByte),b}catch(c){R(c)}};
Wqa=function(a){var b=new Yt;try{return void 0!==a.videoId&&b.setVideoId(a.videoId),void 0!==a.surrogateVideoId&&g.F(b,2,a.surrogateVideoId),b}catch(c){R(c)}};
Xqa=function(a){var b=new Zt;try{return void 0!==a.externalVideoId&&g.F(b,1,a.externalVideoId),void 0!==a.videoSid&&g.F(b,2,a.videoSid),b}catch(c){R(c)}};
jz=function(a){var b=new ts;try{void 0!==a.trackingParams&&b.Ah(a.trackingParams);void 0!==a.veType&&g.F(b,2,a.veType);void 0!==a.elementIndex&&g.F(b,3,a.elementIndex);void 0!==a.veCounter&&g.F(b,6,a.veCounter);if(a.dataElement){var c=jz(a.dataElement);H(b,ts,7,c)}void 0!==a.isCounterfactual&&g.F(b,5,a.isCounterfactual);if(a.youtubeData){a:{var d=a.youtubeData,e=new kq;try{if(d.channelData){b:{var f=d.channelData,h=new Hp;try{void 0!==f.externalId&&Pd(h,1,f.externalId);var l=h;break b}catch(Fa){R(Fa)}l=
void 0}H(e,Hp,2,l)}if(d.channelItem){b:{var m=d.channelItem,n=new Ip;try{void 0!==m.externalId&&Pd(n,1,m.externalId);var p=n;break b}catch(Fa){R(Fa)}p=void 0}H(e,Ip,5,p)}if(d.playlistItem){b:{var q=d.playlistItem,r=new Jp;try{void 0!==q.externalPlaylistId&&Pd(r,5,q.externalPlaylistId);var w=r;break b}catch(Fa){R(Fa)}w=void 0}H(e,Jp,6,w)}if(d.analyticsData){b:{var y=d.analyticsData,z=new Kp;try{if(y.analysisVariant){c:{var B=y.analysisVariant,D=new up;try{if(B.analysisSummary){d:{var G=B.analysisSummary,
E=new ip;try{void 0!==G.type&&g.F(E,1,Yqa[G.type]);void 0!==G.eligibility&&g.F(E,2,Zqa[G.eligibility]);void 0!==G.sentiment&&g.F(E,3,$qa[G.sentiment]);var J=E;break d}catch(Fa){R(Fa)}J=void 0}H(D,ip,1,J)}if(B.videoPerformanceVariant){var M=ara(B.videoPerformanceVariant);Ld(D,sp,2,kz,M)}if(B.videoOverviewVariant){d:{var P=B.videoOverviewVariant,X=new tp;try{void 0!==P.timePeriod&&g.F(X,1,lz[P.timePeriod]);if(P.videoPerformanceVariant){var W=ara(P.videoPerformanceVariant);H(X,sp,2,W)}void 0!==P.durationTimePeriod&&
g.F(X,3,bra[P.durationTimePeriod]);var S=X;break d}catch(Fa){R(Fa)}S=void 0}Ld(D,tp,3,kz,S)}if(B.channelFluctuationVariant){d:{var ca=B.channelFluctuationVariant,O=new kp;try{void 0!==ca.views&&g.F(O,1,mz[ca.views]);void 0!==ca.driver&&g.F(O,2,cra[ca.driver]);void 0!==ca.ctr&&g.F(O,3,mz[ca.ctr]);void 0!==ca.impressions&&g.F(O,4,mz[ca.impressions]);void 0!==ca.viewsPerVideo&&g.F(O,5,mz[ca.viewsPerVideo]);var xa=O;break d}catch(Fa){R(Fa)}xa=void 0}Ld(D,kp,4,kz,xa)}if(B.artistOverviewVariant){d:{var la=
B.artistOverviewVariant,ta=new jp;try{void 0!==la.timePeriod&&g.F(ta,1,lz[la.timePeriod]);void 0!==la.variantType&&g.F(ta,2,dra[la.variantType]);var La=ta;break d}catch(Fa){R(Fa)}La=void 0}Ld(D,jp,5,kz,La)}if(B.monthlySubsVariant){var cb=era(B.monthlySubsVariant);Ld(D,op,6,kz,cb)}if(B.monthlyRevenueVariant){var va=fra(B.monthlyRevenueVariant);Ld(D,np,7,kz,va)}if(B.holisticMonthlyOverviewVariant){d:{var Ha=B.holisticMonthlyOverviewVariant,Xb=new pp;try{if(Ha.viewsPerformance){var kb=gra(Ha.viewsPerformance);
H(Xb,mp,1,kb)}if(Ha.subsPerformance){var cc=era(Ha.subsPerformance);H(Xb,op,2,cc)}if(Ha.revenuePerformance){var Nc=fra(Ha.revenuePerformance);H(Xb,np,3,Nc)}var Yb=Xb;break d}catch(Fa){R(Fa)}Yb=void 0}Ld(D,pp,8,kz,Yb)}if(B.personalizedChannelOverviewVariant){d:{var vb=B.personalizedChannelOverviewVariant,Za=new rp;try{void 0!==vb.timePeriod&&g.F(Za,1,lz[vb.timePeriod]);if(vb.viewsPerformance){var qd=gra(vb.viewsPerformance);H(Za,mp,2,qd)}var Rc=Za;break d}catch(Fa){R(Fa)}Rc=void 0}Ld(D,rp,9,kz,Rc)}if(B.channelNewReturningVariant){d:{var $b=
B.channelNewReturningVariant,Bb=new lp;try{void 0!==$b.uniqueViewers&&g.F(Bb,1,mz[$b.uniqueViewers]);void 0!==$b.newViewers&&g.F(Bb,2,mz[$b.newViewers]);void 0!==$b.returningViewers&&g.F(Bb,3,mz[$b.returningViewers]);var Dd=Bb;break d}catch(Fa){R(Fa)}Dd=void 0}Ld(D,lp,10,kz,Dd)}if(B.lowReturningViewersDataStoryVariant){d:{var id=B.lowReturningViewersDataStoryVariant,hc=new qp;try{void 0!==id.videoListType&&g.F(hc,1,hra[id.videoListType]);var ac=hc;break d}catch(Fa){R(Fa)}ac=void 0}Ld(D,qp,11,kz,ac)}var ob=
D;break c}catch(Fa){R(Fa)}ob=void 0}H(z,up,12,ob)}if(y.cardConfig){c:{var Fb=y.cardConfig,kc=new yp;try{void 0!==Fb.cardType&&g.F(kc,3,ira[Fb.cardType]);void 0!==Fb.legacyMobileCardType&&g.F(kc,5,jra[Fb.legacyMobileCardType]);void 0!==Fb.entityType&&g.F(kc,4,kra[Fb.entityType]);if(Fb.tableCardConfig){d:{var Ra=Fb.tableCardConfig,Oc=new xp;try{void 0!==Ra.dimension&&g.F(Oc,1,nz[Ra.dimension]);void 0!==Ra.metrics&&cz(Oc.j.bind(Oc),Ra.metrics,nz);var pb=Oc;break d}catch(Fa){R(Fa)}pb=void 0}Ld(kc,xp,
1,lra,pb)}if(Fb.keyMetricCardConfig){d:{var Zb=Fb.keyMetricCardConfig,Xd=new wp;try{Zb.metricTabConfigs&&bz(Xd.j.bind(Xd),Zb.metricTabConfigs,mra);var Ed=Xd;break d}catch(Fa){R(Fa)}Ed=void 0}Ld(kc,wp,2,lra,Ed)}var qb=kc;break c}catch(Fa){R(Fa)}qb=void 0}H(z,yp,13,qb)}void 0!==y.externalVideoId&&g.F(z,15,y.externalVideoId);void 0!==y.videoSid&&g.F(z,16,y.videoSid);if(y.exploreConfig){c:{var xc=y.exploreConfig,Sc=new Gp;try{void 0!==xc.metrics&&cz(Sc.j.bind(Sc),xc.metrics,nz);void 0!==xc.dimension&&
g.F(Sc,2,nz[xc.dimension]);void 0!==xc.timePeriodType&&g.F(Sc,3,lz[xc.timePeriodType]);var uc=Sc;break c}catch(Fa){R(Fa)}uc=void 0}H(z,Gp,18,uc)}var ud=z;break b}catch(Fa){R(Fa)}ud=void 0}H(e,Kp,20,ud)}if(d.promotionData){b:{var vd=d.promotionData,je=new Pp;try{void 0!==vd.promotionId&&g.F(je,1,vd.promotionId);void 0!==vd.placementType&&g.F(je,9,nra[vd.placementType]);var ue=je;break b}catch(Fa){R(Fa)}ue=void 0}H(e,Pp,21,ue)}if(d.backstageItem){b:{var gb=d.backstageItem,Ub=new Mp;try{void 0!==gb.stanzaId&&
g.F(Ub,1,gb.stanzaId);void 0!==gb.likeCount&&g.F(Ub,7,gb.likeCount);void 0!==gb.backstageId&&g.F(Ub,9,gb.backstageId);void 0!==gb.wasPostScheduled&&g.F(Ub,14,gb.wasPostScheduled);var ve=Ub;break b}catch(Fa){R(Fa)}ve=void 0}H(e,Mp,32,ve)}if(d.adminSelfieData){b:{var $a=d.adminSelfieData,yb=new Lp;try{void 0!==$a.componentId&&g.F(yb,1,$a.componentId);void 0!==$a.componentType&&g.F(yb,2,$a.componentType);if($a.payload){c:{var yc=$a.payload,Md=new Dp;try{if(yc.include){d:{var Ob=yc.include,we=new Ap;
try{void 0!==Ob.fragmentName&&g.F(we,1,Ob.fragmentName);var vf=we;break d}catch(Fa){R(Fa)}vf=void 0}Ld(Md,Ap,1,oz,vf)}if(yc.toolboxPage){d:{var Fd=yc.toolboxPage,xe=new Cp;try{void 0!==Fd.fragmentName&&g.F(xe,1,Fd.fragmentName);var Sf=xe;break d}catch(Fa){R(Fa)}Sf=void 0}Ld(Md,Cp,2,oz,Sf)}if(yc.reviewQueuePage){d:{var lc=yc.reviewQueuePage,We=new Bp;try{void 0!==lc.queueId&&g.F(We,1,lc.queueId);var Yc=We;break d}catch(Fa){R(Fa)}Yc=void 0}Ld(Md,Bp,3,oz,Yc)}var Ie=Md;break c}catch(Fa){R(Fa)}Ie=void 0}H(yb,
Dp,3,Ie)}var Tf=yb;break b}catch(Fa){R(Fa)}Tf=void 0}H(e,Lp,41,Tf)}if(d.notificationState){b:{var Xe=d.notificationState,pg=new Yp;try{if(Xe.inboxInteractionData){c:{var Wa=Xe.inboxInteractionData,li=new Ep;try{Wa.notifications&&bz(li.j.bind(li),Wa.notifications,ora);var mi=li;break c}catch(Fa){R(Fa)}mi=void 0}H(pg,Ep,9,mi)}var qg=pg;break b}catch(Fa){R(Fa)}qg=void 0}H(e,Yp,59,qg)}if(d.delegationContext){b:{var Tc=d.delegationContext,jd=new Np;try{void 0!==Tc.externalChannelId&&g.F(jd,1,Tc.externalChannelId);
void 0!==Tc.externalOwnerId&&g.F(jd,3,Tc.externalOwnerId);void 0!==Tc.artistId&&g.F(jd,4,Tc.artistId);if(Tc.roleType){c:{var rg=Tc.roleType,sg=new zp;try{void 0!==rg.channelRoleType&&g.Hd(sg,1,pz,pra[rg.channelRoleType]);void 0!==rg.artistRoleType&&g.Hd(sg,2,pz,qra[rg.artistRoleType]);void 0!==rg.contentOwnerRoleType&&g.Hd(sg,3,pz,rra[rg.contentOwnerRoleType]);var ni=sg;break c}catch(Fa){R(Fa)}ni=void 0}H(jd,zp,5,ni)}void 0!==Tc.oacChannelId&&g.F(jd,6,Tc.oacChannelId);void 0!==Tc.isInternalUser&&
g.F(jd,8,Tc.isInternalUser);void 0!==Tc.delegationContextSerialized&&Pd(jd,9,Tc.delegationContextSerialized);var Je=jd;break b}catch(Fa){R(Fa)}Je=void 0}H(e,Np,63,Je)}if(d.campaignData){b:{var kd=d.campaignData,Uf=new Op;try{void 0!==kd.campaignName&&g.F(Uf,1,kd.campaignName);void 0!==kd.campaignVersion&&g.F(Uf,2,kd.campaignVersion);var Jh=Uf;break b}catch(Fa){R(Fa)}Jh=void 0}H(e,Op,64,Jh)}if(d.scoringEventInfo){b:{var oi=d.scoringEventInfo,Kh=new Qp;try{void 0!==oi.scoringTrackingParams&&Pd(Kh,1,
oi.scoringTrackingParams);var pi=Kh;break b}catch(Fa){R(Fa)}pi=void 0}H(e,Qp,77,pi)}if(d.servletData){b:{var Vj=d.servletData,fl=new Rp;try{void 0!==Vj.serializedServletEventId&&g.F(fl,1,Vj.serializedServletEventId);var gl=fl;break b}catch(Fa){R(Fa)}gl=void 0}H(e,Rp,83,gl)}if(d.yoodleData){b:{var hl=d.yoodleData,il=new Sp;try{void 0!==hl.promoId&&g.F(il,1,hl.promoId);var Wj=il;break b}catch(Fa){R(Fa)}Wj=void 0}H(e,Sp,85,Wj)}if(d.videoRestrictionData){b:{var qi=d.videoRestrictionData,ri=new Tp;try{qi.restrictions&&
bz(ri.j.bind(ri),qi.restrictions,sra);void 0!==qi.prechecksPending&&g.F(ri,2,qi.prechecksPending);var Lh=ri;break b}catch(Fa){R(Fa)}Lh=void 0}H(e,Tp,92,Lh)}if(d.creatorMusicData){b:{var Vf=d.creatorMusicData,Wf=new Zp;try{if(Vf.entity){var ke=tra(Vf.entity);H(Wf,fq,1,ke)}Vf.entities&&bz(Wf.j.bind(Wf),Vf.entities,tra);if(Vf.track){var si=ura(Vf.track);Ld(Wf,$p,3,vra,si)}if(Vf.collection){var Em=wra(Vf.collection);Ld(Wf,aq,4,vra,Em)}var jl=Wf;break b}catch(Fa){R(Fa)}jl=void 0}H(e,Zp,96,jl)}if(d.creatorData){b:{var ye=
d.creatorData,Ng=new gq;try{void 0!==ye.ttWizardTargetFeature&&g.Hd(Ng,1,xra,yra[ye.ttWizardTargetFeature]);void 0!==ye.ttWizardTargetLevel&&g.Hd(Ng,2,xra,zra[ye.ttWizardTargetLevel]);if(ye.simpleWizardDetails){var lh=new hq;Ld(Ng,hq,3,qz,lh)}if(ye.advancedWizardDetails){c:{var Xf=ye.advancedWizardDetails,Xj=new iq;try{void 0!==Xf.isDoubleHop&&g.F(Xj,1,Xf.isDoubleHop);var gj=Xj;break c}catch(Fa){R(Fa)}gj=void 0}Ld(Ng,iq,4,qz,gj)}if(ye.blockedWizardDetails){c:{var kl=ye.blockedWizardDetails,hj=new jq;
try{void 0!==kl.loggableBlockedReason&&g.F(hj,1,Ara[kl.loggableBlockedReason]);var Fm=hj;break c}catch(Fa){R(Fa)}Fm=void 0}Ld(Ng,jq,5,qz,Fm)}var xf=Ng;break b}catch(Fa){R(Fa)}xf=void 0}H(e,gq,98,xf)}var ij=e;break a}catch(Fa){R(Fa)}ij=void 0}H(b,kq,8,ij)}return b}catch(Fa){R(Fa)}};
ara=function(a){var b=new sp;try{return void 0!==a.views&&g.F(b,1,mz[a.views]),void 0!==a.driver&&g.F(b,2,Bra[a.driver]),void 0!==a.ctr&&g.F(b,3,mz[a.ctr]),void 0!==a.avd&&g.F(b,4,mz[a.avd]),void 0!==a.impressions&&g.F(b,5,mz[a.impressions]),void 0!==a.videoLength&&g.F(b,6,mz[a.videoLength]),b}catch(c){R(c)}};
era=function(a){var b=new op;try{return void 0!==a.subsGrowth&&g.F(b,1,mz[a.subsGrowth]),void 0!==a.nonSubViews&&g.F(b,2,mz[a.nonSubViews]),void 0!==a.subsAddedPerNonSubViews&&g.F(b,3,mz[a.subsAddedPerNonSubViews]),void 0!==a.accountsClosed&&g.F(b,4,mz[a.accountsClosed]),void 0!==a.subsRemovedToAddedRatio&&g.F(b,5,mz[a.subsRemovedToAddedRatio]),void 0!==a.videosPublished&&g.F(b,6,mz[a.videosPublished]),b}catch(c){R(c)}};
fra=function(a){var b=new np;try{return void 0!==a.revenue&&g.F(b,1,mz[a.revenue]),void 0!==a.revenueSource&&g.F(b,2,Cra[a.revenueSource]),void 0!==a.revenueDrivingMetrics&&cz(b.j.bind(b),a.revenueDrivingMetrics,Dra),void 0!==a.revenueChangeReason&&g.F(b,4,Era[a.revenueChangeReason]),void 0!==a.revenueChangeFact&&g.F(b,5,Fra[a.revenueChangeFact]),void 0!==a.driverCountryCode&&g.F(b,6,a.driverCountryCode),b}catch(c){R(c)}};
gra=function(a){var b=new mp;try{return void 0!==a.views&&g.F(b,1,mz[a.views]),void 0!==a.drivers&&cz(b.j.bind(b),a.drivers,Gra),b}catch(c){R(c)}};
mra=function(a){var b=new vp;try{return void 0!==a.metric&&g.F(b,1,nz[a.metric]),void 0!==a.comparisonMetric&&g.F(b,2,nz[a.comparisonMetric]),void 0!==a.includeCumulative&&g.F(b,3,a.includeCumulative),b}catch(c){R(c)}};
ora=function(a){var b=new Fp;try{return void 0!==a.attributionTag&&g.F(b,2,a.attributionTag),b}catch(c){R(c)}};
sra=function(a){var b=new Up;try{if(a.limitedAds){a:{var c=a.limitedAds,d=new Vp;try{void 0!==c.imposer&&g.F(d,1,Hra[c.imposer]);var e=d;break a}catch(q){R(q)}e=void 0}Ld(b,Vp,1,rz,e)}if(a.copyright){a:{var f=a.copyright,h=new Wp;try{void 0!==f.policyType&&g.F(h,1,Ira[f.policyType]);var l=h;break a}catch(q){R(q)}l=void 0}Ld(b,Wp,2,rz,l)}if(a.communityGuidelines){a:{var m=a.communityGuidelines,n=new Xp;try{void 0!==m.policyVerticals&&cz(n.j.bind(n),m.policyVerticals,Jra);var p=n;break a}catch(q){R(q)}p=
void 0}Ld(b,Xp,3,rz,p)}return b}catch(q){R(q)}};
tra=function(a){var b=new fq;try{if(a.featuredCollection){var c=Kra(a.featuredCollection);Ld(b,bq,1,sz,c)}if(a.mood){var d=Lra(a.mood);Ld(b,cq,2,sz,d)}if(a.genre){var e=Mra(a.genre);Ld(b,dq,3,sz,e)}if(a.track){var f=ura(a.track);Ld(b,$p,4,sz,f)}return b}catch(h){R(h)}};
Kra=function(a){var b=new bq;try{return void 0!==a.id&&g.F(b,1,a.id),b}catch(c){R(c)}};
Lra=function(a){var b=new cq;try{return void 0!==a.type&&g.F(b,1,Nra[a.type]),b}catch(c){R(c)}};
Mra=function(a){var b=new dq;try{return void 0!==a.type&&g.F(b,1,Ora[a.type]),b}catch(c){R(c)}};
ura=function(a){var b=new $p;try{void 0!==a.artTrackId&&g.F(b,1,a.artTrackId);void 0!==a.assetId&&g.F(b,2,a.assetId);if(a.details){var c=new eq;H(b,eq,3,c)}if(a.parent){var d=wra(a.parent);H(b,aq,4,d)}return b}catch(e){R(e)}};
wra=function(a){var b=new aq;try{if(a.featuredCollection){var c=Kra(a.featuredCollection);Ld(b,bq,1,tz,c)}if(a.mood){var d=Lra(a.mood);Ld(b,cq,2,tz,d)}if(a.genre){var e=Mra(a.genre);Ld(b,dq,3,tz,e)}return b}catch(f){R(f)}};
xz=function(a){var b=new Rq;try{if(a.opportunityData){a:{var c=a.opportunityData,d=new Mq;try{if(c.debugData){b:{var e=c.debugData,f=new Nq;try{e.slots&&bz(f.j.bind(f),e.slots,Pra);void 0!==e.associatedSlotId&&g.F(f,2,e.associatedSlotId);var h=f;break b}catch(Ha){R(Ha)}h=void 0}H(d,Nq,2,h)}void 0!==c.opportunityType&&g.F(d,3,Qra[c.opportunityType]);var l=d;break a}catch(Ha){R(Ha)}l=void 0}H(b,Mq,1,l)}if(a.slotData){var m=Pra(a.slotData);H(b,Kq,2,m)}if(a.layoutData){a:{var n=a.layoutData,p=new Iq;
try{void 0!==n.type&&g.F(p,2,Rra[n.type]);if(n.debugData){b:{var q=n.debugData,r=new Jq;try{void 0!==q.layoutId&&g.F(r,1,q.layoutId);q.exitNormalTriggerData&&bz(r.oY.bind(r),q.exitNormalTriggerData,uz);q.exitSkipTriggerData&&bz(r.pY.bind(r),q.exitSkipTriggerData,uz);q.exitMuteTriggerData&&bz(r.nY.bind(r),q.exitMuteTriggerData,uz);q.exitUserInputSubmittedTriggerData&&bz(r.rY.bind(r),q.exitUserInputSubmittedTriggerData,uz);q.exitUserCancelledTriggerData&&bz(r.qY.bind(r),q.exitUserCancelledTriggerData,
uz);var w=r;break b}catch(Ha){R(Ha)}w=void 0}H(p,Jq,3,w)}void 0!==n.controlFlowManagerLayer&&g.F(p,4,Sra[n.controlFlowManagerLayer]);void 0!==n.pingTriggerTypes&&cz(p.j.bind(p),n.pingTriggerTypes,vz);var y=p;break a}catch(Ha){R(Ha)}y=void 0}H(b,Iq,3,y)}if(a.triggerData){var z=uz(a.triggerData);H(b,Hq,4,z)}if(a.pingData){a:{var B=a.pingData,D=new Oq;try{void 0!==B.sourceTriggerType&&g.F(D,1,vz[B.sourceTriggerType]);B.debugData&&bz(D.j.bind(D),B.debugData,Tra);void 0!==B.pingCount&&g.F(D,3,B.pingCount);
void 0!==B.pingDispatchStatus&&g.F(D,4,Ura[B.pingDispatchStatus]);void 0!==B.serializedAdPingMetadata&&Pd(D,5,B.serializedAdPingMetadata);if(B.pingDebugData){b:{var G=B.pingDebugData,E=new Qq;try{void 0!==G.substitutedMacros&&cz(E.j.bind(E),G.substitutedMacros,wz);void 0!==G.unsubstitutedMacros&&cz(E.C.bind(E),G.unsubstitutedMacros,wz);var J=E;break b}catch(Ha){R(Ha)}J=void 0}H(D,Qq,6,J)}var M=D;break a}catch(Ha){R(Ha)}M=void 0}H(b,Oq,6,M)}if(a.externalContext){a:{var P=a.externalContext,X=new Eq;
try{if(P.organicPlaybackContext){b:{var W=P.organicPlaybackContext,S=new Dq;try{void 0!==W.contentCpn&&g.F(S,1,W.contentCpn);void 0!==W.isLivePlayback&&g.F(S,2,W.isLivePlayback);void 0!==W.isOfflinePlayback&&g.F(S,3,W.isOfflinePlayback);void 0!==W.isMdxPlayback&&g.F(S,4,W.isMdxPlayback);void 0!==W.isDaiContent&&g.F(S,5,W.isDaiContent);var ca=S;break b}catch(Ha){R(Ha)}ca=void 0}H(X,Dq,1,ca)}if(P.html5ExperimentContext){b:{var O=P.html5ExperimentContext,xa=new Cq;try{void 0!==O.ytExperimentId&&g.F(xa,
1,O.ytExperimentId);var la=xa;break b}catch(Ha){R(Ha)}la=void 0}H(X,Cq,2,la)}if(P.adVideoPlaybackContext){b:{var ta=P.adVideoPlaybackContext,La=new Bq;try{void 0!==ta.adVideoCpn&&g.F(La,1,ta.adVideoCpn);var cb=La;break b}catch(Ha){R(Ha)}cb=void 0}H(X,Bq,3,cb)}var va=X;break a}catch(Ha){R(Ha)}va=void 0}H(b,Eq,5,va)}return b}catch(Ha){R(Ha)}};
Pra=function(a){var b=new Kq;try{void 0!==a.type&&g.F(b,2,Vra[a.type]);void 0!==a.entryTriggerType&&g.F(b,6,vz[a.entryTriggerType]);void 0!==a.slotPhysicalPosition&&g.F(b,8,a.slotPhysicalPosition);if(a.debugData){a:{var c=a.debugData,d=new Lq;try{void 0!==c.slotId&&g.F(d,1,c.slotId);void 0!==c.entryTriggerTypes&&cz(d.C.bind(d),c.entryTriggerTypes,vz);void 0!==c.unscheduledDueToError&&g.F(d,3,c.unscheduledDueToError);c.entryTriggerData&&bz(d.j.bind(d),c.entryTriggerData,uz);if(c.slotEntryTriggerData){var e=
uz(c.slotEntryTriggerData);H(d,Hq,7,e)}c.fulfillmentTriggerData&&bz(d.T.bind(d),c.fulfillmentTriggerData,uz);c.expirationTriggerData&&bz(d.J.bind(d),c.expirationTriggerData,uz);var f=d;break a}catch(h){R(h)}f=void 0}H(b,Lq,3,f)}void 0!==a.externallyManaged&&g.F(b,4,a.externallyManaged);void 0!==a.controlFlowManagerLayer&&g.F(b,5,Sra[a.controlFlowManagerLayer]);return b}catch(h){R(h)}};
uz=function(a){var b=new Hq;try{void 0!==a.type&&g.F(b,1,vz[a.type]);void 0!==a.category&&g.F(b,2,Wra[a.category]);if(a.layoutIdEnteredTriggerData){a:{var c=a.layoutIdEnteredTriggerData,d=new Fq;try{void 0!==c.enteredLayoutId&&g.F(d,1,c.enteredLayoutId);var e=d;break a}catch(m){R(m)}e=void 0}Ld(b,Fq,3,Xra,e)}if(a.triggerSourceData){a:{var f=a.triggerSourceData,h=new Gq;try{void 0!==f.associatedSlotId&&g.Hd(h,1,Yra,f.associatedSlotId);void 0!==f.associatedLayoutId&&g.Hd(h,2,Yra,f.associatedLayoutId);
var l=h;break a}catch(m){R(m)}l=void 0}Ld(b,Gq,4,Xra,l)}void 0!==a.shouldOnlyTriggerOnce&&g.F(b,5,a.shouldOnlyTriggerOnce);return b}catch(m){R(m)}};
Tra=function(a){var b=new Pq;try{return void 0!==a.macros&&cz(b.j.bind(b),a.macros,wz),void 0!==a.success&&g.F(b,2,a.success),b}catch(c){R(c)}};
yz=function(a){var b=new er;try{return void 0!==a.startMs&&g.F(b,1,a.startMs),void 0!==a.endMs&&g.F(b,2,a.endMs),b}catch(c){R(c)}};
Zra=function(a){var b=new Tq;try{return void 0!==a.externalVideoId&&g.F(b,1,a.externalVideoId),void 0!==a.originalMediaDurationMs&&g.F(b,2,a.originalMediaDurationMs),void 0!==a.trimmedMediaDurationMs&&g.F(b,3,a.trimmedMediaDurationMs),b}catch(c){R(c)}};
$ra=function(a){var b=new Ns;try{return void 0!==a.orchestrationActionId&&g.F(b,1,a.orchestrationActionId),b}catch(c){R(c)}};
dsa=function(a){var b=new lt;try{if(a.itemId){a:{var c=a.itemId,d=new yq;try{void 0!==c.type&&g.F(d,1,zz[c.type]);void 0!==c.externalId&&g.F(d,2,c.externalId);var e=d;break a}catch(m){R(m)}e=void 0}H(b,yq,1,e)}void 0!==a.productType&&g.F(b,2,Az[a.productType]);if(a.alcLoggingParams){a:{var f=a.alcLoggingParams,h=new kt;try{void 0!==f.purchaseOriginEntityType&&g.F(h,1,asa[f.purchaseOriginEntityType]);void 0!==f.purchaseOriginPageType&&g.F(h,2,bsa[f.purchaseOriginPageType]);var l=h;break a}catch(m){R(m)}l=
void 0}Ld(b,kt,3,csa,l)}return b}catch(m){R(m)}};
Gsa=function(a){var b=new gs;try{if(a.dimensions){a:{var c=a.dimensions,d=new hs;try{void 0!==c.csn&&g.F(d,1,c.csn);void 0!==c.userExperienceId&&g.F(d,2,c.userExperienceId);if(c.studio){b:{var e=c.studio,f=new ds;try{void 0!==e.route&&g.F(f,1,e.route);void 0!==e.feature&&g.F(f,2,esa[e.feature]);void 0!==e.topEntityType&&g.F(f,3,fsa[e.topEntityType]);void 0!==e.availability&&g.F(f,4,gsa[e.availability]);void 0!==e.isChannelDelegation&&g.F(f,5,e.isChannelDelegation);void 0!==e.isArtistDelegation&&g.F(f,
6,e.isArtistDelegation);void 0!==e.environment&&g.F(f,7,hsa[e.environment]);void 0!==e.networkConnectionStatus&&g.F(f,8,isa[e.networkConnectionStatus]);var h=f;break b}catch(la){R(la)}h=void 0}H(d,ds,3,h)}if(c.mweb){b:{var l=c.mweb,m=new cs;try{void 0!==l.pageType&&g.F(m,1,jsa[l.pageType]);void 0!==l.navType&&g.F(m,2,ksa[l.navType]);var n=m;break b}catch(la){R(la)}n=void 0}H(d,cs,4,n)}if(c.mainAppWeb){b:{var p=c.mainAppWeb,q=new bs;try{void 0!==p.pageType&&g.F(q,1,lsa[p.pageType]);void 0!==p.requestType&&
g.F(q,2,msa[p.requestType]);void 0!==p.isShellLoad&&g.F(q,3,p.isShellLoad);var r=q;break b}catch(la){R(la)}r=void 0}H(d,bs,5,r)}if(c.survivalSli){b:{var w=c.survivalSli,y=new $r;try{void 0!==w.partitionMinute&&g.F(y,1,w.partitionMinute);void 0!==w.survivalStatus&&g.F(y,2,nsa[w.survivalStatus]);void 0!==w.survivalSessionType&&g.F(y,3,osa[w.survivalSessionType]);var z=y;break b}catch(la){R(la)}z=void 0}H(d,$r,6,z)}if(c.tvhtml5){b:{var B=c.tvhtml5,D=new es;try{void 0!==B.authRefreshTokenFailureType&&
g.F(D,1,psa[B.authRefreshTokenFailureType]);void 0!==B.networkErrorEndpoint&&g.F(D,2,qsa[B.networkErrorEndpoint]);void 0!==B.networkErrorResponseCode&&g.F(D,3,B.networkErrorResponseCode);void 0!==B.sessionSurvivalLengthMin&&g.F(D,4,B.sessionSurvivalLengthMin);void 0!==B.accountChangeType&&g.F(D,5,rsa[B.accountChangeType]);void 0!==B.accountChangeTrigger&&g.F(D,6,ssa[B.accountChangeTrigger]);void 0!==B.cpn&&g.F(D,7,B.cpn);void 0!==B.sessionSurvivalDidUserAgentChange&&g.F(D,8,B.sessionSurvivalDidUserAgentChange);
void 0!==B.adShownToPremiumUserCondition&&g.F(D,9,tsa[B.adShownToPremiumUserCondition]);void 0!==B.identityType&&g.F(D,10,usa[B.identityType]);void 0!==B.identityDelegationType&&g.F(D,11,vsa[B.identityDelegationType]);void 0!==B.botguardServerEnvironment&&g.F(D,12,wsa[B.botguardServerEnvironment]);void 0!==B.accountEventTrigger&&g.F(D,13,xsa[B.accountEventTrigger]);void 0!==B.signInMethodType&&g.F(D,14,ysa[B.signInMethodType]);void 0!==B.accountEventErrorType&&g.F(D,15,zsa[B.accountEventErrorType]);
void 0!==B.hadRemoteDeviceConnected&&g.F(D,16,B.hadRemoteDeviceConnected);void 0!==B.hadVoiceInitiatedPlayback&&g.F(D,17,B.hadVoiceInitiatedPlayback);void 0!==B.restartLengthMin&&g.F(D,18,B.restartLengthMin);void 0!==B.restartReason&&g.F(D,19,Asa[B.restartReason]);var G=D;break b}catch(la){R(la)}G=void 0}H(d,es,7,G)}if(c.unpluggedWeb){b:{var E=c.unpluggedWeb,J=new fs;try{void 0!==E.unpluggedWebEntitlementType&&g.F(J,1,Bsa[E.unpluggedWebEntitlementType]);void 0!==E.unpluggedWebPurchaseType&&g.F(J,
2,Csa[E.unpluggedWebPurchaseType]);var M=J;break b}catch(la){R(la)}M=void 0}H(d,fs,8,M)}void 0!==c.logEventStatus&&g.F(d,9,c.logEventStatus);if(c.kids){b:{var P=c.kids,X=new as;try{void 0!==P.userType&&g.F(X,1,Dsa[P.userType]);var W=X;break b}catch(la){R(la)}W=void 0}H(d,as,10,W)}void 0!==c.screen&&g.F(d,11,c.screen);if(c.navigation){b:{var S=c.navigation,ca=new Zr;try{void 0!==S.destinationScreen&&g.F(ca,1,S.destinationScreen);void 0!==S.navType&&g.F(ca,2,Esa[S.navType]);var O=ca;break b}catch(la){R(la)}O=
void 0}H(d,Zr,12,O)}var xa=d;break a}catch(la){R(la)}xa=void 0}H(b,hs,1,xa)}a.records&&bz(b.j.bind(b),a.records,Fsa);return b}catch(la){R(la)}};
Fsa=function(a){var b=new is;try{return void 0!==a.name&&g.F(b,1,Hsa[a.name]),void 0!==a.status&&g.F(b,2,Isa[a.status]),void 0!==a.state&&b.Oc(Jsa[a.state]),void 0!==a.sliId&&g.F(b,4,a.sliId),b}catch(c){R(c)}};
g.gw=function(a,b,c){c=void 0===c?{}:c;if(g.wu("migrate_events_to_ts"))g.Xy(a,b,c);else{var d=Ksa;g.uu("ytLoggingEventsDefaultDisabled",!1)&&Ksa==g.yx&&(d=null);if(g.wu("web_all_payloads_via_jspb")&&Bz&&Cz)if(c=Bz[a])if((b=c(b))&&Cz[a])Cz[a](b);else Du(new g.Yv("Unable to call logFn for payload",a));else Du(new g.Yv("Unable to translate payload to JSPB",a));else Ry(a,b,d,c)}};
Dz=function(){if(g.wu("migrate_events_to_ts"))a:{if(g.wu("web_fp_via_jspb")&&(Sy(!0),!g.wu("web_fp_via_jspb_and_json")))break a;Sy()}else{if(g.wu("web_fp_via_jspb")&&(Sy(!0),!g.wu("web_fp_via_jspb_and_json")))return;Sy()}};
Msa=function(){var a=void 0===a?window.location.href:a;if(g.wu("kevlar_disable_theme_param"))return null;ci(g.ei(5,a));try{var b=g.Iu(a).theme;return Lsa.get(b)||null}catch(c){}return null};
Osa=function(a,b,c){a&&(a.dataset?a.dataset[Nsa(b)]=String(c):a.setAttribute("data-"+b,c))};
Psa=function(a){return a?a.dataset?a.dataset[Nsa("loaded")]:a.getAttribute("data-loaded"):null};
Nsa=function(a){return Qsa[a]||(Qsa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Ez=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()};
Hz=function(a){var b;g.Fz()?Gz()==a&&(b=document):b=a;return b&&(a=Bx(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Iz=function(a){return g.Qb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Rsa=function(){var a=document;return g.Qb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.Fz=function(){return!!Bx(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Gz=function(a){a=void 0===a?!1:a;var b=Bx(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Jz=function(a){g.K.call(this);this.J=[];this.ib=a||this};
Kz=function(a,b,c,d){for(var e=0;e<c.length;e++)a.S(b,c[e],d)};
g.Lz=function(a,b){for(;a.J.length;){var c=a.J.pop(),d=void 0;b&&Ssa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.Mz=function(a){a=void 0===a?!1:a;g.K.call(this);this.gh=new g.No(a);g.L(this,this.gh)};
g.Nz=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Oz=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Qz=function(a,b,c,d){g.Mz.call(this);this.j=!!b;this.I=a;this.Z=c||a;this.T=!!d;this.C=new Jz(this);g.L(this,this.C);this.D=this.J=null;this.B=this.u=!1;b&&(g.df&&a.setAttribute("draggable","true"),a.style.touchAction="none");Pz(this)};
Rz=function(a,b,c){a.C.S(a.Z,b,c,void 0,!a.j)};
Sz=function(a){g.Lz(a.C,!a.j)};
Pz=function(a){a.D=null;a.J=null;Rz(a,Tz("over"),a.CR);Rz(a,"touchstart",a.nM);a.j&&Rz(a,Tz("down"),a.K_)};
Tsa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.J)return d}return null};
Tz=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Uz=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.yf(b);this.assets=a.assets||{};this.attrs=a.attrs||g.yf(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||{}};
Usa=function(a){a instanceof Uz||(a=new Uz(a));return a};
Vsa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Wsa=function(){this.aq=[];this.mp=[]};
Wz=function(){if(!Vz){var a=Vz=new Wsa;a.mp.length=0;a.aq.length=0;Xsa(a,Ysa)}return Vz};
Xsa=function(a,b){b.mp&&a.mp.push.apply(a.mp,b.mp);b.aq&&a.aq.push.apply(a.aq,b.aq)};
Zsa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Xz(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Xz(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Xz(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)};
Xz=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};
$sa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Yz(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=Zsa(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?Yz(e+".ve",f,h,l):0;d+=h;d+=Yz(e,a[e],b,c);if(500<d)break}}else c[b]=Zz(a),d+=c[b].length;else c[b]=Zz(a),d+=c[b].length;return d};
Yz=function(a,b,c,d){c+="."+a;a=Zz(b);d[c]=a;return c.length+a.length};
Zz=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+")"}};
fw=function(a){g.$z(a)};
g.aA=function(a){g.$z(a,"WARNING")};
g.$z=function(a,b){var c=void 0===c?{}:c;c.name=g.uu("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.uu("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.wu("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<=ata)){var h=bta,l=Bca(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 r=l.lineNumber||"Not available",w=l.fileName||"Not available",y=p,z=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var B=0;B<a.args.length&&!(z=$sa(a.args[B],"params."+B,d,z),500<=z);B++);else if(a.hasOwnProperty("params")&&
a.params){var D=a.params;if("object"===typeof a.params)for(var G in D){if(D[G]){var E="params."+G,J=Zz(D[G]);d[E]=J;z+=E.length+J.length;if(500<z)break}}else d.params=Zz(D)}if(h.length)for(var M=0;M<h.length&&!(z=$sa(h[M],"params.context."+M,d,z),500<=z);M++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);var P={message:m,name:n,lineNumber:r,fileName:w,stack:y,params:d,sampleWeight:1},X=Number(a.columnNumber);isNaN(X)||(P.lineNumber=P.lineNumber+":"+X);if("IGNORED"===
a.level)var W=0;else a:{for(var S=Wz(),ca=g.t(S.mp),O=ca.next();!O.done;O=ca.next()){var xa=O.value;if(P.message&&P.message.match(xa.mA)){W=xa.weight;break a}}for(var la=g.t(S.aq),ta=la.next();!ta.done;ta=la.next()){var La=ta.value;if(La.callback(P)){W=La.weight;break a}}W=1}P.sampleWeight=W;for(var cb=g.t(cta),va=cb.next();!va.done;va=cb.next()){var Ha=va.value;if(Ha.DE[P.name])for(var Xb=g.t(Ha.DE[P.name]),kb=Xb.next();!kb.done;kb=Xb.next()){var cc=kb.value,Nc=P.message.match(cc.Ai);if(Nc){P.params["params.error.original"]=
Nc[0];for(var Yb=cc.groups,vb={},Za=0;Za<Yb.length;Za++)vb[Yb[Za]]=Nc[Za+1],P.params["params.error."+Yb[Za]]=Nc[Za+1];P.message=Ha.SJ(vb);break}}}P.params||(P.params={});var qd=Wz();P.params["params.errorServiceSignature"]="msg="+qd.mp.length+"&cb="+qd.aq.length;P.params["params.serviceWorker"]="false";g.C.document&&g.C.document.querySelectorAll&&(P.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.cg("sample").constructor!==ag&&(P.params["params.fconst"]=
"true");window.yterr&&"function"===typeof window.yterr&&window.yterr(P);if(0!==P.sampleWeight&&!dta.has(P.message)){if("ERROR"===e){bA.ma("handleError",P);if(g.wu("record_app_crashed_web")&&0===eta&&1===P.sampleWeight)if(eta++,g.wu("errors_via_jspb")){var Rc=new Xr;g.F(Rc,1,1);if(!g.wu("report_client_error_with_app_crash_ks")){var $b=new Gr;g.F($b,1,P.message);var Bb=new Hr;H(Bb,Gr,3,$b);var Dd=new Ir;H(Dd,Hr,5,Bb);var id=new Wr;H(id,Ir,9,Dd);H(Rc,Wr,4,id)}var hc=new nu;Ld(hc,Xr,20,$y,Rc);Zy(hc)}else{var ac=
{appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.wu("report_client_error_with_app_crash_ks")||(ac.systemHealth={crashData:{clientError:{logMessage:{message:P.message}}}});g.gw("appCrashed",ac)}fta++}else"WARNING"===e&&bA.ma("handleWarning",P);if(g.wu("kevlar_gel_error_routing"))a:{var ob=e;if(g.wu("errors_via_jspb")){if(gta())var Fb=void 0;else{var kc=new Dr;g.F(kc,1,P.stack);P.fileName&&g.F(kc,4,P.fileName);var Ra=P.lineNumber&&P.lineNumber.split?P.lineNumber.split(":"):[];0!==Ra.length&&(1!==Ra.length||
isNaN(Number(Ra[0]))?2!==Ra.length||isNaN(Number(Ra[0]))||isNaN(Number(Ra[1]))||(g.F(kc,2,Number(Ra[0])),g.F(kc,3,Number(Ra[1]))):g.F(kc,2,Number(Ra[0])));var Oc=new Gr;g.F(Oc,1,P.message);g.F(Oc,3,P.name);g.F(Oc,6,P.sampleWeight);"ERROR"===ob?g.F(Oc,2,2):"WARNING"===ob?g.F(Oc,2,1):g.F(Oc,2,0);var pb=new Fr;g.F(pb,1,!0);Ld(pb,Dr,3,ez,kc);var Zb=new Ar;g.F(Zb,3,window.location.href);for(var Xd=g.uu("FEXP_EXPERIMENTS",[]),Ed=0;Ed<Xd.length;Ed++)Zb.C(Xd[Ed]);var qb=g.uu("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!vu("web_disable_gel_stp_ecatcher_killswitch")&&qb)for(var xc=g.t(Object.keys(qb)),Sc=xc.next();!Sc.done;Sc=xc.next()){var uc=Sc.value,ud=new Br;g.F(ud,1,uc);ud.setValue(String(qb[uc]));Zb.j(ud)}var vd=P.params;if(vd){var je=g.t(Object.keys(vd));for(Sc=je.next();!Sc.done;Sc=je.next()){var ue=Sc.value,gb=new Br;g.F(gb,1,"client."+ue);gb.setValue(String(vd[ue]));Zb.j(gb)}}var Ub=g.uu("SERVER_NAME"),ve=g.uu("SERVER_VERSION");if(Ub&&ve){var $a=new Br;g.F($a,1,"server.name");$a.setValue(Ub);Zb.j($a);
var yb=new Br;g.F(yb,1,"server.version");yb.setValue(ve);Zb.j(yb)}var yc=new Hr;H(yc,Ar,1,Zb);H(yc,Fr,2,pb);H(yc,Gr,3,Oc);Fb=yc}var Md=Fb;if(!Md)break a;var Ob=new nu;Ld(Ob,Hr,163,$y,Md);Zy(Ob)}else{if(gta())var we=void 0;else{var vf={stackTrace:P.stack};P.fileName&&(vf.filename=P.fileName);var Fd=P.lineNumber&&P.lineNumber.split?P.lineNumber.split(":"):[];0!==Fd.length&&(1!==Fd.length||isNaN(Number(Fd[0]))?2!==Fd.length||isNaN(Number(Fd[0]))||isNaN(Number(Fd[1]))||(vf.lineNumber=Number(Fd[0]),vf.columnNumber=
Number(Fd[1])):vf.lineNumber=Number(Fd[0]));var xe={level:"ERROR_LEVEL_UNKNOWN",message:P.message,errorClassName:P.name,sampleWeight:P.sampleWeight};"ERROR"===ob?xe.level="ERROR_LEVEL_ERROR":"WARNING"===ob&&(xe.level="ERROR_LEVEL_WARNNING");var Sf={isObfuscated:!0,browserStackInfo:vf},lc={pageUrl:window.location.href,kvPairs:[]};g.uu("FEXP_EXPERIMENTS")&&(lc.experimentIds=g.uu("FEXP_EXPERIMENTS"));var We=g.uu("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!vu("web_disable_gel_stp_ecatcher_killswitch")&&
We)for(var Yc=g.t(Object.keys(We)),Ie=Yc.next();!Ie.done;Ie=Yc.next()){var Tf=Ie.value;lc.kvPairs.push({key:Tf,value:String(We[Tf])})}var Xe=P.params;if(Xe){var pg=g.t(Object.keys(Xe));for(Ie=pg.next();!Ie.done;Ie=pg.next()){var Wa=Ie.value;lc.kvPairs.push({key:"client."+Wa,value:String(Xe[Wa])})}}var li=g.uu("SERVER_NAME"),mi=g.uu("SERVER_VERSION");li&&mi&&(lc.kvPairs.push({key:"server.name",value:li}),lc.kvPairs.push({key:"server.version",value:mi}));we={errorMetadata:lc,stackTrace:Sf,logMessage:xe}}var qg=
we;if(!qg)break a;g.gw("clientError",qg)}("ERROR"===ob||g.wu("errors_flush_gel_always_killswitch"))&&Dz()}if(!g.wu("suppress_error_204_logging")){var Tc=P.params||{},jd={urlParams:{a:"logerror",t:"jserror",type:P.name,msg:P.message.substr(0,250),line:P.lineNumber,level:e,"client.name":Tc.name},postParams:{url:g.uu("PAGE_NAME",window.location.href),file:P.fileName},method:"POST"};Tc.version&&(jd["client.version"]=Tc.version);if(jd.postParams){P.stack&&(jd.postParams.stack=P.stack);for(var rg=g.t(Object.keys(Tc)),
sg=rg.next();!sg.done;sg=rg.next()){var ni=sg.value;jd.postParams["client."+ni]=Tc[ni]}var Je=g.uu("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(Je)for(var kd=g.t(Object.keys(Je)),Uf=kd.next();!Uf.done;Uf=kd.next()){var Jh=Uf.value;jd.postParams[Jh]=Je[Jh]}var oi=g.uu("SERVER_NAME"),Kh=g.uu("SERVER_VERSION");oi&&Kh&&(jd.postParams["server.name"]=oi,jd.postParams["server.version"]=Kh)}g.Wu(g.uu("ECATCHER_REPORT_HOST","")+"/error_204",jd)}try{dta.add(P.message)}catch(pi){}ata++}}}};
gta=function(){for(var a=g.t(hta),b=a.next();!b.done;b=a.next())if(hv(b.value.toLowerCase()))return!0;return!1};
ita=function(a){var b=g.ya.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.u(b))};
cA=function(a){this.kf=a};
g.dA=function(a){return new cA({trackingParams:a})};
kta=function(a){var b=jta++;return new cA({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
fA=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(eA)for(c=1,d=0;d<eA.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^eA.charCodeAt(d),c++;return b};
g.gA=function(a){a=fA(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.lta=function(){return g.Vd(fA(16),function(a){return(a&15).toString(16)}).join("")};
hA=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
iA=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
mta=function(a){return g.uu(iA(void 0===a?0:a))};
g.jA=function(a){return(a=mta(void 0===a?0:a))?new cA({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
nta=function(){var a=g.uu("csn-to-ctt-auth-info");a||(a={},tu("csn-to-ctt-auth-info",a));return a};
g.kA=function(a){a=g.uu(hA(void 0===a?0:a));if(!a&&!g.uu("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
ota=function(a,b,c){var d=nta();(c=g.kA(c))&&delete d[c];b&&(d[a]=b)};
lA=function(a){return nta()[a]};
qta=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.uu(hA(c))||b!==g.uu(iA(c)))if(ota(a,d,c),tu(hA(c),a),tu(iA(c),b),b=function(){setTimeout(function(){if(a)if(g.wu("web_time_via_jspb")){var e=new tt;g.F(e,1,pta);g.F(e,2,a);g.wu("use_default_heartbeat_client")?Npa(e):Npa(e,void 0,g.yx)}else e={clientDocumentNonce:pta,clientScreenNonce:a},g.wu("use_default_heartbeat_client")?g.gw("foregroundHeartbeatScreenAssociated",e):Ry("foregroundHeartbeatScreenAssociated",e,g.yx)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
mA=function(a){dx.call(this,1,arguments);this.csn=a};
uta=function(a,b,c,d,e,f,h){function l(){g.aA(new g.Yv("newScreen() parent element does not have a VE - rootVe",b))}
var m=rta(),n=new cA({veType:b,youtubeData:f,jspbYoutubeData:void 0});f={Qk:m};e&&(f.cttAuthInfo=e);g.wu("il_via_jspb")?(e=new Et,e.j(m),cma(e,n.getAsJspb()),c&&c.visualElement?(n=new Ft,c.clientScreenNonce&&g.F(n,2,c.clientScreenNonce),dma(n,c.visualElement.getAsJspb()),h&&g.F(n,4,sta[h]),H(e,Ft,5,n)):c&&l(),d&&g.F(e,3,d),Kpa(e,f,a)):(e={csn:m,pageVe:n.getAsJson()},c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=
h)):c&&l(),d&&(e.cloneCsn=d),a?Ry("screenCreated",e,a,f):g.gw("screenCreated",e,f));gx(tta,new mA(m));return m};
g.oA=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:lA(b)||void 0,
Qk:b};d=g.t(d);for(var h=d.next();!h.done;h=d.next())h=h.value.getAsJson(),(g.sf(h)||!h.trackingParams&&!h.veType)&&g.aA(Error("Child VE logged with no data"));if(g.wu("il_via_jspb")){var l=new Jt;l.j(b);fma(l,c.getAsJspb());g.Vd(e,function(m){m=m.getAsJspb();Qd(l,3,ts,m)});
"UNDEFINED_CSN"===b?nA("visualElementAttached",f,void 0,l):Mpa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Vd(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"===b?nA("visualElementAttached",f,c):a?Ry("visualElementAttached",c,a,f):g.gw("visualElementAttached",c,f)};
g.pA=function(a,b,c){var d={cttAuthInfo:lA(a)||void 0,Qk:a};g.wu("il_via_jspb")?(c=new Mt,c.j(a),b=b.getAsJspb(),H(c,ts,2,b),g.F(c,4,1),"UNDEFINED_CSN"===a?nA("visualElementShown",d,void 0,c):az(c,d)):(b={csn:a,ve:b.getAsJson(),eventType:1},c&&(b.clientData=c),"UNDEFINED_CSN"===a?nA("visualElementShown",d,b):g.gw("visualElementShown",b,d))};
vta=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:lA(b)||void 0,Qk:b,GP:d};g.wu("il_via_jspb")?(e=new Lt,e.j(b),c=c.getAsJspb(),H(e,ts,2,c),g.F(e,4,d?16:8),"UNDEFINED_CSN"===b?nA("visualElementHidden",f,void 0,e):Hpa(e,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?nA("visualElementHidden",f,d):a?Ry("visualElementHidden",d,a,f):g.gw("visualElementHidden",d,f))};
wta=function(a,b,c,d){var e={cttAuthInfo:lA(b)||void 0,Qk:b};g.wu("il_via_jspb")?(d=new Kt,d.j(b),c=c.getAsJspb(),H(d,ts,2,c),g.F(d,4,sta.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK),"UNDEFINED_CSN"===b?nA("visualElementGestured",e,void 0,d):Ipa(d,e,a)):(c={csn:b,ve:c.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d&&(c.clientData=d),"UNDEFINED_CSN"===b?nA("visualElementGestured",e,c):a?Ry("visualElementGestured",c,a,e):g.gw("visualElementGestured",c,e))};
xta=function(){return g.Cc(Math.random()+"",3)};
nA=function(a,b,c,d){qA.push({payloadName:a,payload:c,Vq:d,options:b});rA||(rA=kx(tta,yta))};
yta=function(a){if(qA){for(var b=g.t(qA),c=b.next();!c.done;c=b.next())if(c=c.value,g.wu("il_via_jspb")&&c.Vq)switch(c.Vq.j(a.csn),c.payloadName){case "screenCreated":Kpa(c.Vq,c.options);break;case "visualElementAttached":Mpa(c.Vq,c.options);break;case "visualElementShown":az(c.Vq,c.options);break;case "visualElementHidden":Hpa(c.Vq,c.options);break;case "visualElementGestured":Ipa(c.Vq,c.options);break;case "visualElementStateChanged":Jpa(c.Vq,c.options);break;default:g.aA(new g.Yv("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,Ry(c.payloadName,c.payload,null,c.options));qA.length=0}rA=0};
sA=function(){this.B=new Set;this.j=new Set;this.D=new Map;this.client=g.yx;this.csn=null};
tA=function(){sA.instance||(sA.instance=new sA);return sA.instance};
uA=function(){this.u=new Set;this.j=new Set;this.B=new Map;this.client=g.yx;this.csn=null};
vA=function(){uA.instance||(uA.instance=new uA);return uA.instance};
wA=function(){this.u=new Set;this.j=new Set;this.B=new Map};
g.zA=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.xA)():yA())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.AA=function(a){var b=yA(),c=(0,g.xA)();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};
zta=function(){var a=(0,g.xA)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.BA=function(a){try{var b=yA(),c=(0,g.xA)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.CA=function(){return g.AA("yt-remote-session-screen-id")};
g.DA=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(Ata,""),c=c.replace(Bta,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Cta(a,b,c)};
Cta=function(a,b,c){c=void 0===c?null:c;var d=Dta(a),e=document.getElementById(d),f=e&&Psa(e),h=e&&!f;f?b&&b():(b&&(f=g.iy(d,b),b=""+g.Oa(b),Eta[b]=f),h||(e=Fta(a,d,function(){Psa(e)||(Osa(e,"loaded","true"),g.ky(d),g.Ru(g.Qa(fpa,d),0))},c)))};
Fta=function(a,b,c,d){d=void 0===d?null:d;var e=g.bh("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.bj(e,g.fg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Dta=function(a){var b=document.createElement("a");g.xg(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Og(a)};
GA=function(a){var b=g.ya.apply(1,arguments);if(!EA(a)||b.some(function(d){return!EA(d)}))throw Error("Only objects may be merged.");
b=g.t(b);for(var c=b.next();!c.done;c=b.next())FA(a,c.value);return a};
FA=function(a,b){for(var c in b)if(EA(b[c])){if(c in a&&!EA(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});FA(a[c],b[c])}else if(HA(b[c])){if(c in a&&!HA(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Gta(a[c],b[c])}else a[c]=b[c];return a};
Gta=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,EA(c)?a.push(FA({},c)):HA(c)?a.push(Gta([],c)):a.push(c);return a};
EA=function(a){return"object"===typeof a&&!Array.isArray(a)};
HA=function(a){return"object"===typeof a&&Array.isArray(a)};
IA=function(a,b,c,d,e,f){g.K.call(this);this.Ub=a;this.Gb=b;this.Pd=c;this.Ta=d;this.u=e;this.j=f};
Jta=function(a,b,c){c.Bx?(JA(a.Ub.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Hta(a.u,b)):Ita(a.j,c.Do,b.slotId,c.ssdaiAdsConfig)};
Lta=function(a,b,c,d,e){var f=a.Ta.get().dg(1);JA(a.Ub.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Kta(a.Pd.get(),c,d,f.clientPlaybackNonce,f.qP,f.daiEnabled,f,e)},b)};
LA=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.t(b);for(c=b.next();!c.done;c=b.next())if(!KA(a.Ea,c.value))return!1;return!0};
MA=function(a,b){this.Jp=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
OA=function(a){Mta(a);var b=JSON.parse(JSON.stringify(Nta));b.adPlacements&&b.playerAds&&b.playerResponse&&b.playerResponse.adPlacements&&b.playerResponse.playerAds?NA(!1,"j.s_",a,2,2):NA(!0,"j.s_",a,3,2);Ota(a);try{var c=document.createElement("ytd-display-ad-renderer");c.classList.add("ytd-companion-slot-renderer");c.setAttribute("id","masthead-ad");document.body.appendChild(c);var d="none"===getComputedStyle(c).display;NA(d,"e.h_",a,d?3:2,6);document.body.removeChild(c)}catch(e){NA(!1,"e.h_",a,
1,6)}};
Mta=function(a){g.A(function(b){return g.x(b,(void 0!==Yma()?zh(Error("Biscotti id is disabled")):Yu("//web.archive.org/web/20221116135136/https://googleads.g.doubleclick.net/pagead/id",Jv)).then(function(){NA(!1,"b.f_",a,2,0)},function(c){"Biscotti id is disabled"===c.message?NA(!1,"b.f_",a+"_known.failure",2,0):(g.aA("Failed fetching bid when "+a),NA(!0,"b.f_",a,3,0))}),0)})};
Ota=function(a){var b;g.A(function(c){if(1==c.j)return g.qa(c,2),g.x(c,(new Response('{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}',{status:200})).json(),4);if(2!=c.j)return b=c.u,b.adPlacements&&b.playerAds&&b.playerResponse&&b.playerResponse.adPlacements&&b.playerResponse.playerAds?NA(!1,"r.s_",a,2,4):NA(!0,"r.s_",a,3,4),g.ra(c,0);g.sa(c);NA(!1,"r.s_",a+"_failure",1,4);g.pa(c)})};
NA=function(a,b,c,d,e){g.gw("biscottiBasedDetection",{detected:a,source:b+c});tu("CATSTAT",Number(g.uu("CATSTAT",0))&~(3<<e)|d<<e)};
Qta=function(a){Pta=void 0===a?!1:a};
PA=function(a,b,c,d,e){d=void 0===d?{}:d;Pta&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Yv(a);if(a.args)for(var f=g.t(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.aA(a)}};
QA=function(a,b,c,d,e,f,h){g.K.call(this);this.Ub=a;this.Pd=b;this.hH=c;this.Fa=d;this.j=e;this.Ta=f;this.Ha=h};
RA=function(){this.u=new Map;this.j=new Map;this.B=new Map};
SA=function(a,b){if(g.uu("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.gA(16)};
TA=function(a,b,c){if(g.uu("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.gA(16)};
UA=function(a,b){if(g.uu("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.gA(16)};
VA=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};
Rta=function(a,b,c,d){this.B=a;this.nf=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
WA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.aA(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
XA=function(a,b){return b&&b.test(a)?!0:!1};
YA=function(a){return(a=Sta&&Sta.exec(a))?a[0]:""};
ZA=function(a){var b=void 0===b?!1:b;return WA(XA(a,Tta),a,b,"Trusted Stream URL")};
g.$A=function(a){var b=void 0===b?!1:b;return WA(XA(a,Uta),a,b,"Trusted Image URL")};
Wta=function(a){var b=void 0===b?!1:b;return WA(XA(a,Vta),a,b,"Trusted Promoted Video Domain URL")};
Yta=function(a){var b=void 0===b?!1:b;return WA(XA(a,Xta),a,b,"Drm Licensor URL")};
$ta=function(a,b){b=void 0===b?!1:b;return WA(XA(a,Zta),a,b,"Captions URL")};
aua=function(a){a=new g.Cj(a);g.Dj(a,document.location.protocol);g.Ej(a,document.location.hostname);document.location.port&&g.Fj(a,document.location.port);return a.toString()};
aB=function(a){a=new g.Cj(a);g.Dj(a,document.location.protocol);return a.toString()};
g.cB=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=bua++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||bB.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.Rk(d.thumbnails,function(e){return g.$A(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
cua=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
dua=function(a,b){switch(a.style){case bB.CHAPTER_MARKER:return b?8:5;case bB.AD_MARKER:return 6;case bB.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.dB=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.eB=function(a){return"crn_"+a};
g.fB=function(a){return"crx_"+a};
gB=function(a,b,c,d,e){g.cB.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};
hB=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
eua=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
fua=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Ko(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Ko(Math.max(0,b.B-b.j),0x7ffffffffffff):new Ko(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 Ko(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.nf;a=1E3*d.startSecs;if(c){if(a<b.u)return new Ko(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new Ko(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new Ko(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
iB=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.jB=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.t(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.kB=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=ah("B",null,h||l));d.italics&&(h=ah("I",null,h||l));d.strikethrough&&(h=ah("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=ah("A",null,h||l),g.xg(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||ah("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:ah("SPAN",null,b)};
lB=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.zs=c;this.args=[];b&&this.args.push(b)};
gua=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={gm:new Ko(-0x8000000000000,-0x8000000000000),SA:d},null!=c&&(d.oq=new Ko(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={gm:new Ko(0x7ffffffffffff,0x8000000000000),SA:d},null!=c&&(d.oq=new Ko(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||PA("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||PA("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 lB("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={gm:new Ko(a,e),SA:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.oq=new Ko(a,e)}return d;default:return new lB("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
hua=function(a){var b=1E3*a.startSecs;return new Ko(b,b+1E3*a.durationSecs)};
mB=function(a,b){dx.call(this,1,arguments);this.timer=b};
iua=function(a,b){dx.call(this,1,arguments);this.j=a;this.timer=b};
jua=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
kua=function(a){var b=nB("aft",a);if(b)return b;b=g.uu((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=nB(b[d],a);if(e)return e}return NaN};
lua=function(){var a;if(g.wu("csi_use_performance_navigation_timing")||g.wu("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==oB?void 0:null==(a=oB.getEntriesByType)?void 0:null==(b=a.call(oB,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=pB(e.requestStart),e.responseEnd=pB(e.responseEnd),e.redirectStart=pB(e.redirectStart),e.redirectEnd=pB(e.redirectEnd),e.domainLookupEnd=pB(e.domainLookupEnd),e.connectStart=pB(e.connectStart),
e.connectEnd=pB(e.connectEnd),e.responseStart=pB(e.responseStart),e.secureConnectionStart=pB(e.secureConnectionStart),e.domainLookupStart=pB(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=oB.timing}else a=oB.timing;return a};
qB=function(){return(g.wu("csi_use_time_origin")||g.wu("csi_use_time_origin_tvhtml5"))&&oB.timeOrigin?Math.floor(oB.timeOrigin):oB.timing.navigationStart};
pB=function(a){return Math.round(qB()+a)};
rB=function(a,b){g.Ea("ytglobal.timing"+(b||"")+"ready_",a)};
sB=function(a){return g.Ga("ytcsi."+(a||"")+"data_")||mua(a)};
tB=function(a){a=sB(a);a.info||(a.info={});return a.info};
uB=function(a){a=sB(a);a.metadata||(a.metadata={});return a.metadata};
vB=function(a){a=sB(a);a.tick||(a.tick={});return a.tick};
nB=function(a,b){if(a=vB(b)[a])return"number"===typeof a?a:a[a.length-1]};
wB=function(a){a=sB(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
xB=function(a){a=wB(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
yB=function(a){var b=sB(a).nonce;b||(b=g.gA(16),sB(a).nonce=b);return b};
mua=function(a){var b={tick:{},info:{}};g.Ea("ytcsi."+(a||"")+"data_",b);return b};
pua=function(a){var b=nB("_start",a),c=kua(a);b&&c&&!nua&&(gx(oua,new mB(Math.round(c-b),a)),nua=!0)};
qua=function(a,b){for(var c=g.t(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!qua(a[d],b[d]))return!1;return!0};
rua=function(){if(oB.getEntriesByType){var a=oB.getEntriesByType("paint");if(a=g.Qb(a,function(b){return"first-paint"===b.name}))return pB(a.startTime)}a=oB.timing;
return a.P_?Math.max(0,a.P_):0};
zB=function(){var a=g.Ga("ytcsi.debug");a||(a=[],g.Ea("ytcsi.debug",a),g.Ea("ytcsi.reference",{}));return a};
AB=function(a){a=a||"";var b=sua();if(b[a])return b[a];var c=zB(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
BB=function(a){a=a||"";var b=sua();b[a]&&delete b[a];var c=zB(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
sua=function(){var a=g.Ga("ytcsi.reference");if(a)return a;zB();return g.Ga("ytcsi.reference")};
CB=function(a){return tua[a]||"LATENCY_ACTION_UNKNOWN"};
yua=function(a,b,c){c=wB(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 uua){c=uua[a];g.Sb(vua,c)&&(b=!!b);a in wua&&"string"===typeof b&&(b=wua[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return GA({},d)}g.Sb(xua,a)||g.aA(new g.Yv("Unknown label logged with GEL CSI",a))};
DB=function(){this.j=0};
EB=function(){DB.instance||(DB.instance=new DB);return DB.instance};
GB=function(a,b){FB[b]=FB[b]||{count:0};var c=FB[b];c.count++;c.time=(0,g.Q)();a.j||(a.j=g.Tv(0,function(){var d=(0,g.Q)(),e;for(e in FB)FB[e]&&6E4<d-FB[e].time&&delete FB[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Yv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.aA(c)),!0):!1};
HB=function(a){mua(a);zua();a||(g.uu("TIMING_ACTION")&&tu("PREVIOUS_ACTION",g.uu("TIMING_ACTION")),tu("TIMING_ACTION",""))};
LB=function(a,b){b=void 0===b?{}:b;IB(a);BB(a);HB(a);sB(a).useGel=!0;AB(a||"").info.actionType=a;b.cttAuthInfo&&(sB(a).cttAuthInfo=b.cttAuthInfo);tu(a+"TIMING_ACTION",a);JB("_start",b.startTime,a);b={actionType:CB(a)};var c=g.kA();c&&"UNDEFINED_CSN"!==c&&(b.clientScreenNonce=c);KB(b,a);rB(!0,a)};
g.MB=function(a,b,c,d){if(null!==b){var e=tB(c);g.wu("skip_setting_info_in_csi_data_object")?"yt_lt"===a&&(e="string"===typeof b?b:""+b,uB(c).loadType=e):e[a]=b;(a=yua(a,b,c))&&KB(a,c,d)}};
KB=function(a,b,c){if(!g.wu("web_csi_via_jspb")||(void 0===c?0:c))c=AB(b||""),GA(c.info,a),g.wu("skip_setting_info_in_csi_data_object")&&a.loadType&&(c=a.loadType,uB(b).loadType=c),GA(xB(b),a),c=yB(b),b=sB(b).cttAuthInfo,EB().info(a,c,b);else{c=new Rt;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.F(c,1,T[a[e]]);break;case "clientActionNonce":g.F(c,2,a[e]);break;case "clientScreenNonce":g.F(c,4,a[e]);break;case "loadType":g.F(c,3,a[e]);
break;case "isPrewarmedLaunch":g.F(c,92,a[e]);break;case "isFirstInstall":g.F(c,55,a[e]);break;case "networkType":g.F(c,5,NB[a[e]]);break;case "connectionType":g.F(c,26,OB[a[e]]);break;case "detailedConnectionType":g.F(c,27,PB[a[e]]);break;case "isVisible":g.F(c,6,a[e]);break;case "playerType":g.F(c,7,QB[a[e]]);break;case "clientPlaybackNonce":g.F(c,8,a[e]);break;case "adClientPlaybackNonce":g.F(c,28,a[e]);break;case "previousCpn":g.F(c,77,a[e]);break;case "targetCpn":g.F(c,76,a[e]);break;case "isMonetized":g.F(c,
9,a[e]);break;case "isPrerollAllowed":g.F(c,16,a[e]);break;case "isPrerollShown":g.F(c,17,a[e]);break;case "adType":g.F(c,12,a[e]);break;case "adTypesAllowed":g.F(c,36,a[e]);break;case "adNetworks":g.F(c,37,a[e]);break;case "previousAction":g.F(c,13,T[a[e]]);break;case "isRedSubscriber":g.F(c,14,a[e]);break;case "serverTimeMs":g.F(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":g.F(c,20,a[e]);break;case "targetVideoId":g.F(c,78,a[e]);break;case "adBreakType":g.F(c,21,RB[a[e]]);
break;case "isNavigation":g.F(c,25,a[e]);break;case "viewportHeight":g.F(c,29,a[e]);break;case "viewportWidth":g.F(c,30,a[e]);break;case "screenHeight":g.F(c,84,a[e]);break;case "screenWidth":g.F(c,85,a[e]);break;case "browseId":g.F(c,31,a[e]);break;case "isCacheHit":g.F(c,32,a[e]);break;case "httpProtocol":g.F(c,33,a[e]);break;case "transportProtocol":g.F(c,34,a[e]);break;case "searchQuery":g.F(c,41,a[e]);break;case "isContinuation":g.F(c,42,a[e]);break;case "availableProcessors":g.F(c,43,a[e]);
break;case "sdk":g.F(c,44,a[e]);break;case "isLocalStream":g.F(c,45,a[e]);break;case "navigationRequestedSameUrl":g.F(c,64,a[e]);break;case "shellStartupDurationMs":g.F(c,70,a[e]);break;case "appInstallDataAgeMs":g.F(c,73,a[e]);break;case "latencyActionError":g.F(c,71,SB[a[e]]);break;case "actionStep":g.F(c,79,a[e]);break;case "jsHeapSizeLimit":g.F(c,80,a[e]);break;case "totalJsHeapSize":g.F(c,81,a[e]);break;case "usedJsHeapSize":g.F(c,82,a[e]);break;case "sourceVideoDurationMs":g.F(c,90,a[e]);break;
case "videoOutputFrames":g.F(c,93,a[e]);break;case "isResume":g.F(c,104,a[e]);break;case "debugTicksExcluded":g.F(c,105,a[e]);break;case "adPrebufferedTimeSecs":g.F(c,39,a[e]);break;case "isLivestream":g.F(c,47,a[e]);break;case "liveStreamMode":g.F(c,91,TB[a[e]]);break;case "adCpn2":g.F(c,48,a[e]);break;case "adDaiDriftMillis":g.F(c,49,a[e]);break;case "videoStreamType":g.F(c,53,UB[a[e]]);break;case "playbackRequiresTap":g.F(c,56,a[e]);break;case "performanceNavigationTiming":g.F(c,67,a[e]);break;
case "transactionType":g.F(c,74,VB[a[e]]);break;case "playerRotationType":g.F(c,101,WB[a[e]]);break;case "allowedPreroll":g.F(c,10,a[e]);break;case "shownPreroll":g.F(c,11,a[e]);break;case "getHomeRequestId":g.F(c,57,a[e]);break;case "getSearchRequestId":g.F(c,60,a[e]);break;case "getPlayerRequestId":g.F(c,61,a[e]);break;case "getWatchNextRequestId":g.F(c,62,a[e]);break;case "getBrowseRequestId":g.F(c,63,a[e]);break;case "getLibraryRequestId":g.F(c,66,a[e]);break;default:Aua.includes(f)&&g.Bu(new g.Yv("Codegen laipb translator asked to translate message field",
""+f))}}catch(h){g.Bu(Error("Codegen laipb translator failed to set "+f))}}XB(c,b)}};
XB=function(a,b){if(g.wu("skip_setting_info_in_csi_data_object")){var c=Td(a,3);c&&(uB(b).loadType=c)}else c=wB(b),c.jspbInfos||(c.jspbInfos=[]),c.jspbInfos.push(a.Rk());AB(b||"").jspbInfo.push(a);c=yB(b);b=sB(b).cttAuthInfo;EB().jspbInfo(a,c,b)};
JB=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;oB.mark&&(bb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),oB.mark(d))}d=AB(c||"");d.tick[a]=b||(0,g.Q)();if(d.callback&&d.callback[a]){d=g.t(d.callback[a]);for(var e=d.next();!e.done;e=d.next())e=e.value,e()}d=wB(c);d.gelTicks&&(d.gelTicks[a]=!0);e=vB(c);d=b||(0,g.Q)();g.wu("log_repeated_ytcsi_ticks")?a in e||(e[a]=d):e[a]=d;e=yB(c);var f=sB(c).cttAuthInfo;"_start"===a?(a=EB(),GB(a,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.wu("web_csi_via_jspb")?
(a=new Ot,g.F(a,1,e),e=new nu,Ld(e,Ot,6,$y,a),Zy(e,b)):g.gw("latencyActionBaselined",{clientActionNonce:e},b))):EB().tick(a,e,b,f);pua(c);return d};
Bua=function(a){var b="above_the_fold";oB&&oB.measure&&(bb(b,"measure_")||(b="measure_"+b),a?oB.measure(b,a):oB.measure(b))};
YB=function(a,b){b=vB(b);return a in b};
ZB=function(a,b,c){YB("_start",c)&&!YB(a,c)&&JB(a,b,c)};
$B=function(){switch(Woa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
IB=function(a){YB("_start",a)&&JB("aa",void 0,a)};
Dua=function(a){var b=lua(),c=qB(),d=g.uu("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.wu("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(JB("srt",b.responseStart),1!==a.prerender&&JB("_start",c,void 0));a=rua();0<a&&JB("fpt",a);a=lua();a.isPerformanceNavigationTiming&&KB({performanceNavigationTiming:!0});JB("nreqs",a.requestStart,void 0);JB("nress",a.responseStart,void 0);JB("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(JB("nrs",a.redirectStart,void 0),JB("nre",a.redirectEnd,
void 0));0<a.domainLookupEnd-a.domainLookupStart&&(JB("ndnss",a.domainLookupStart,void 0),JB("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(JB("ntcps",a.connectStart,void 0),JB("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=qB()&&0<a.connectEnd-a.secureConnectionStart&&(JB("nstcps",a.secureConnectionStart,void 0),JB("ntcpe",a.connectEnd,void 0));oB&&"getEntriesByType"in oB&&Cua()};
Eua=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);zg()&&a.setAttribute("nonce",zg());return c?(a=oB.getEntriesByName(c))&&a[0]&&(a=a[0],c=qB(),JB("rsf_"+b,c+Math.round(a.fetchStart)),JB("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
Fua=function(){var a=[];if(document.querySelector&&oB&&oB.getEntriesByName)for(var b in aC)if(aC.hasOwnProperty(b)){var c=aC[b];Eua(b,c)&&a.push(c)}return a};
Cua=function(){var a=window.location.protocol,b=oB.getEntriesByType("resource");b=g.Dm(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20221116135136/https://fonts.gstatic.com/s/")});
(b=Sk(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(JB("wffs",pB(b.startTime)),JB("wffe",pB(b.responseEnd)))};
Gua=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
bC=function(a){var b=g.N(a,Hua)||a.signatureCipher;a={cJ:!1,Hs:"",uu:"",s:""};if(!b)return a;b=Gu(b);a.cJ=!0;a.Hs=b.url;a.uu=b.sp;a.s=b.s;return a};
g.cC=function(a,b){this.id=a;this.Mc=b;this.captionTracks=[];this.j=this.C=null;this.xtags="";this.u=null;this.B="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
dC=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.fC=function(a,b,c,d){return new dC(g.eC[a]||0,g.eC[b]||0,c,d)};
gC=function(a){var b=g.eC.auto;return a.u===b&&a.j===b};
iC=function(a){return hC[a.j||a.u]||"auto"};
Iua=function(a,b){b=g.eC[b];return a.u<=b&&(!a.j||a.j>=b)};
jC=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.t(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Mc&&!a.has(c.Mc.id)){var d=new g.cC(c.id,c.Mc);a.add(c.Mc.id);this.audioTracks.push(d)}}};
kC=function(){g.K.apply(this,arguments);this.j=null};
pxa=function(a,b,c,d,e,f){if(a.j)return a.j;var h={},l=new Set,m={};if(lC(d)){for(var n in d.j)d.j.hasOwnProperty(n)&&(a=d.j[n],m[a.info.Ib]=[a.info]);return m}n={};for(var p in d.j)if(d.j.hasOwnProperty(p)){var q=d.j[p].info;if(b.T&&q.video&&q.video.j<b.T)h[q.itag]="min"+b.T;else{var r=q.Ib;n[r]=n[r]||[];n[r].push(q)}}p=g.t(Object.keys(n));for(r=p.next();!r.done;r=p.next())mC(n[r.value]);f&&e({aftsrt:nC(n)});p={};q=g.t(Object.keys(n));for(r=q.next();!r.done;r=q.next()){r=r.value;for(var w=g.t(n[r]),
y=w.next();!y.done;y=w.next()){y=y.value;var z=y.itag,B=void 0,D=r+"_"+((null==(B=y.video)?void 0:B.fps)||0);p.hasOwnProperty(D)?!0===p[D]?m[r].push(y):h[z]=p[D]:(B=oC(b,y,c,d.isLive,!1,l),!0!==B?(h[z]=B,"disablevp9hfr"===B&&(p[D]="disablevp9hfr")):(m[r]=m[r]||[],m[r].push(y),p[D]=!0))}}f&&e({bfflt:nC(m)});for(var G in m)m.hasOwnProperty(G)&&(d=G,m[d]&&m[d][0].isVideo()&&(m[d]=m[d],m[d]=Jua(b,m[d],h),m[d]=oxa(m[d],h)));f&&e(h);b=g.t(l.values());for(d=b.next();!d.done;d=b.next())(d=c.u.get(d.value))&&
--d.mT;f&&e({aftflt:nC(m)});a.j=g.jf(m,function(E){return!!E.length});
return a.j};
Sxa=function(a,b,c,d,e,f){function h(w){return!!m[w]}
var l=b.B||!!e,m=pxa(a,b,c,d,f,l);pC(d)&&(m=uxa(c,m,e,l,f),l&&f({enflt:nC(m)}));b.Mb=wxa(m,b);if(lC(d))return f=g.Qb(Object.values(m),function(w){return!!w.length&&!!w[0].audio}),l=g.Qb(Object.values(m),function(w){return!!w.length&&!!w[0].video}),f&&l||av(),bv(new jC(l,f));
a=Pxa(b);l&&f({audioPrefOrder:a.join("_")});a=g.Qb(a,h);if(!a)return l&&f({noaudio:1}),av();a=m[a];m["9"]&&m.h&&d.Ud&&!b.Wa&&(l&&f({dltvp9:1}),delete m["9"]);var n=m["1h"]?"1h":"1";c=m["9h"]?"9h":"9";var p=m[n],q=m[c];p&&p.length&&(b.u.highestAv1Resolution=p[p.length-1].video.j);q&&q.length&&(b.u.highestVp9Resolution=q[q.length-1].video.j);e=[];var r=[];if(b.Ba&&!b.j)for(r=Qxa(d)?m["1h"]||m["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],l&&f({newhybpref:r.join(".")}),p=g.t(r),q=p.next();!q.done;q=p.next())e=
e.concat(m[q.value]).filter(function(w){return w});
else 0<b.Z&&q&&p&&(r=[n,c],e=p.concat(q).filter(function(w){return w}));
if(e.length&&!b.j){mC(e,r);if(l){l=[];b=g.t(e);for(d=b.next();!d.done;d=b.next())l.push(d.value.itag);f({hbdfmt:l.join(".")})}return bv(new jC(e,a))}e=Rxa(b);e=g.Qb(e,h);if(!e){if(m[n])return f=m[n],mC(f),bv(new jC(f,a));l&&f({novideo:1});return av()}b.Ac&&("1"===e||"1h"===e)&&m[c]&&(n=qC(m[e]),qC(m[c])>n&&(e=c));"9"===e&&m.h&&qC(m.h)>qC(m["9"])&&(e="h");b.Vb&&d.isLive&&"("===e&&m.H&&1440>qC(m["("])&&(e="H");l&&f({vfmly:rC(e)});b=m[e];if(!b.length)return l&&f({novfmly:rC(e)}),av();mC(b);return bv(new jC(b,
a))};
wxa=function(a,b){var c=b.D&&!(!a.mac3&&!a.MAC3),d=b.I&&!(!a.meac3&&!a.MEAC3);return b.oa&&!(!a.m&&!a.M)||c||d};
rC=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
nC=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(rC(d));d=g.t(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
uxa=function(a,b,c,d,e){var f={},h={};g.hf(b,function(l,m){l=l.filter(function(n){var p=n.itag;if(!n.Gd)return h[p]="noenc",!1;if("("===n.Ib||"(h"===n.Ib){if(a.B&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";(q=!!n.Gd[c.flavor]&&!!c.j[q])||(h[p]=n.Gd[c.flavor]?"unspt":"noflv");return q}if(!sC(a,tC.CRYPTOBLOCKFORMAT)&&!a.ya||a.ea)return h[p]=a.ea?"disvp":"vpsub",!1}return c&&n.Gd[c.flavor]&&c.j[n.mimeType]?!0:(h[p]=c?n.Gd[c.flavor]?"unspt":"noflv":"nosys",!1)});
l.length&&(f[m]=l)});
d&&Object.entries(h).length&&e(h);return f};
oxa=function(a,b){var c=Sk(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
lv()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
Jua=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.pc)return!0;c[d.itag]="maxquality";return!1})};
qC=function(a){return Sk(a,function(b,c){return Math.max(b,c.video.j)},0)};
oC=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?new Set:f;if(""===b.Ib)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.kb)return"blk2khfr";if(a.J&&b.video&&b.video.j>a.J)return"max"+a.J;if(a.yb&&"h"===b.Ib&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.Ib&&!c.D)return"enchdr";if((void 0===d?0:d)&&uC(b)&&!a.Sa)return"blk51live";if(vC(b)&&!a.Oa)return"blk51ugc";if(!a.rd&&b.Gd&&b.Gd.fairplay&&("("===b.Ib||"(h"===b.Ib||"A"===b.Ib||"MEAC3"===b.Ib))return"cbc";if((d=c.u.get(b.Ib))&&
0<d.mT)return f.add(b.Ib),"byerr";var h;if(null==(h=b.video)?0:32<h.fps){if(!c.T||!c.oa&&!sC(c,tC.FRAMERATE))return"capHfr";if(a.qb&&4320<=b.video.j)return"blk8khfr";if(wC(b)&&(e||a.Dc&&b.Gd&&1440<=b.video.j))return"disablevp9hfr"}a=Txa(c,b);return!0!==a?a:!0};
mC=function(a,b){b=void 0===b?[]:b;g.oc(a,function(c,d){var e=d.Tb-c.Tb;if(!c.isVideo()||!d.isVideo())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0<b.length&&(c=b.indexOf(c.Ib)+1,d=b.indexOf(d.Ib)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
Uxa=function(a){a=void 0===a?{}:a;var b=void 0===a.Bn?!1:a.Bn,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.ZL?!1:a.ZL;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e?3:2:c&&d?-1:1};
Vxa=function(a){return Uxa({hasSubfragmentedFmp4:a.C.lj,Bn:a.C.lj,defraggedFromSubfragments:a.Io,isManifestless:!0,ZL:a.Ma})};
Wxa=function(a){a=a.split("");xC.TU(a,55);xC.iK(a,77);xC.jy(a,2);return a.join("")};
g.yC=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
AC=function(a){zC(a);return a.C};
BC=function(a){return a.u?bb(a.u,"local"):"local"===a.B};
Xxa=function(a){zC(a);return g.lf(a.j,function(b){return null!==b})};
CC=function(a){zC(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
DC=function(a,b){b=void 0===b?!1:b;zC(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ge();c=new g.Cj(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.Ej(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.yC(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.Ej(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Ej(c,"www.youtube.com"),d=c.toString()):d=aua(d);c=new g.yC(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
zC=function(a){if(a.u){if(!ZA(a.u)&&!a.u.startsWith("local"))throw new g.Yv("Untrusted URL",a.u);var b=g.Lj(a.u);a.B=b.D;a.C=b.j+(null!=b.C?":"+b.C:"");var c=b.B;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=Yxa(c);Object.assign(a.j,
Zxa(b.u.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=$xa[0](b),a.set("n",b),$xa.length||ola(""))}};
aya=function(a){zC(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Xxa(a)){var c=[];g.hf(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Yxa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&bya(c,a[b],a[b+1]);return c};
Zxa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?bya(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
bya=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};
EC=function(a,b,c,d,e,f,h,l,m){this.Na=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.nf=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.nf=m||null};
g.FC=function(){this.segments=[];this.j=null;this.u=!0};
cya=function(a,b){if(b>a.jd())a.segments=[];else{var c=Pb(a.segments,function(d){return d.Na>=b},a);
0<c&&a.segments.splice(0,c)}};
GC=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)})};
dya=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};
HC=function(a,b){b=g.t(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
IC=function(a,b,c){return a.split(b).Uj.split(c).Vz};
JC=function(a){a.C=void 0;a.u=0;a.B=0};
KC=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
eya=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
fya=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(!KC(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);JC(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
LC=function(a,b,c){a=fya(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
gya=function(a){a=LC(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};
MC=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
hya=function(a,b){a.focus(b);return KC(a,b,4)?eya(a).getUint32(b-a.B):256*(256*(256*MC(a,b)+MC(a,b+1))+MC(a,b+2))+MC(a,b+3)};
NC=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
OC=function(a){return String.fromCharCode.apply(null,a)};
QC=function(a){return PC?PC.decode(a):OC(a)};
g.SC=function(a){if(!a.length)return"";try{if(PC)return PC.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)RC[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;RC[e++]=55296|f>>10;f=56320|f&1023}RC[e++]=f}}f=String.fromCharCode.apply(String,RC);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
UC=function(a,b){var c;if(null==(c=TC)?0:c.encodeInto)return b=TC.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};
iya=function(a){if(TC)return TC.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=UC(a,b);b.length<c&&(b=new Uint8Array(c),c=UC(a,b));b.length>c&&(b=b.subarray(0,c));return b};
VC=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};
WC=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
XC=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
YC=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
ZC=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
$C=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};
aD=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 QC(b)};
jya=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
bD=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};
dD=function(a,b){this.data=a;this.uri=b||"https://web.archive.org/web/20221116135136/http://youtube.com/streaming/metadata/segment/102015";this.j=cD(this,"Sequence-Number");this.I=cD(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=cD(this,"Ingestion-Walltime-Us")/1E6;this.u=(cD(this,"First-Frame-Time-Us")+cD(this,"First-Frame-Uncertainty-Us"))/1E6;this.ij=cD(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=cD(this,"Crypto-Period-Index");
this.B=cD(this,"Crypto-Period-Seconds")};
lya=function(a){return a.data["Cuepoint-Type"]?new VA(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",kya[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
mya=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
cD=function(a,b){return Number(a.data[b])||0};
eD=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.nya=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.oya=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
pya=function(a,b){this.j=a;this.duration=b};
qya=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)};
fD=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};
rya=function(a,b){var c=g.gD(a,0,1952868452);a=g.gD(a,0,1953658222);if(c&&a){c.skip(1);var d=WC(c)<<16|XC(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=ZC(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=WC(a)<<16|XC(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=ZC(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=ZC(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
iD=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.gD(a,0,1836476516))?g.hD(a):NaN};
sya=function(a){var b=g.gD(a,0,1937011556);if(!b)return null;b=jD(a,b.dataOffset+8,1635148593)||jD(a,b.dataOffset+8,1635135537);if(!b)return null;var c=jD(a,b.dataOffset+78,1936995172),d=jD(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),WC(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=jD(a,d.dataOffset,1886547818)){var h=jD(a,d.dataOffset,1886546020),l=jD(a,d.dataOffset,2037673328);if(!l&&(l=jD(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=YC(h)/65536,f=YC(h)/65536,e=YC(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new qya(b,c,f,e,a)}return null};
jD=function(a,b,c){for(;kD(a,b);){var d=lD(a,b);if(d.type===c)return d;b+=d.size}return null};
g.gD=function(a,b,c){for(;kD(a,b);){var d=lD(a,b);if(d.type===c)return d;b=mD(d.type)?b+8:b+d.size}return null};
g.nD=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
lD=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new VC(a,b,c,d)};
g.hD=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
tya=function(a){a=new VC(a.data,a.offset,a.size,a.type,a.u);var b=WC(a);a.skip(7);var c=ZC(a);if(0===b){b=ZC(a);var d=ZC(a)}else b=$C(a),d=$C(a);a.skip(2);for(var e=XC(a),f=[],h=[],l=0;l<e;l++){var m=ZC(a);f.push(m);h.push(ZC(a));a.skip(4)}return{fM:c,ZY:b,lZ:d,A3:f,aM:h}};
kD=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593===c||1635148611===c||1937126244===c||1936995172===c||1635135537===c||1635135811===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
mD=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
uya=function(a){a.skip(4);return{Q3:aD(a,0),value:aD(a,0),fM:ZC(a),v6a:ZC(a),I5a:ZC(a),id:ZC(a),wR:aD(a),offset:a.offset}};
g.vya=function(a){var b=jD(a,0,1701671783);if(!b)return null;var c=uya(b),d=c.Q3;c=fD(c.wR);if(a=jD(a,b.offset+b.size,1701671783))if(a=uya(a),a=fD(a.wR),c&&a){b=g.t(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new dD(c,d):null};
oD=function(a,b){for(var c=jD(a,0,b);c;)c.markAsSkip(),c=jD(a,c.offset+c.size,b)};
g.pD=function(a,b){for(var c=0,d=[];kD(a,c);){var e=lD(a,c);e.type===b&&d.push(e);c=mD(e.type)?c+8:c+e.size}return d};
wya=function(a,b){var c=g.gD(a,0,1937011556),d=g.gD(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.gD(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 jya(a.byteLength+b);bD(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;bD(d,a,c.offset+16,c.size-16);bD(d,e,e.byteOffset+f.dataOffset+8,b);bD(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.t([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.gD(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.gD(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
qD=function(a,b){this.j=a;this.pos=0;this.start=b||0};
rD=function(a){return a.pos>=a.j.byteLength};
wD=function(a,b,c){var d=new qD(c);if(!sD(d,a))return!1;d=tD(d);if(!uD(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=vD(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?xya(d-9,8):xya(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
yya=function(a){var b=new qD(a);b.Pl();if(sD(b,[408125543,374648427,174,224]))b=tD(b);else return null;for(var c=a=null;!rD(b);){var d=vD(b,!1);if(21432===d)switch(xD(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=tD(b):yD(b)}if(!c)return null;for(var e,f=d=b=null;!rD(c);)switch(vD(c,!1)){case 30321:if(3!==xD(c))return null;break;case 30324:b=zD(c);break;case 30323:f=zD(c);break;case 30325:d=zD(c);break;case 30322:e=vD(c,!0);e=AD(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:yD(c)}return e?new qya(a,b,f,d,e):null};
tD=function(a){var b=vD(a,!0),c=a.j.byteOffset+a.pos;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new qD(c,a.start+a.pos);a.pos+=b;return c};
xD=function(a){for(var b=vD(a,!0),c=BD(a),d=1;d<b;d++)c=256*c+BD(a);return c};
zD=function(a){var b=vD(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
zya=function(a){var b=vD(a,!0);return QC(AD(a,b))};
BD=function(a){return a.j.getUint8(a.pos++)};
vD=function(a,b){var c=BD(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+BD(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+BD(a),d*=128;return b?c-d:c};
yD=function(a){var b=vD(a,!0);a.pos+=b};
Aya=function(a){if(!uD(a,440786851,!0))return null;var b=a.pos;vD(a,!1);var c=vD(a,!0)+a.pos-b;a.pos=b+c;if(!uD(a,408125543,!1))return null;vD(a,!0);if(!uD(a,357149030,!0))return null;var d=a.pos;vD(a,!1);var e=vD(a,!0)+a.pos-d;a.pos=d+e;if(!uD(a,374648427,!0))return null;var f=a.pos;vD(a,!1);var h=vD(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);
l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l};
CD=function(a){var b=a.pos;a.pos=0;var c=1E6;sD(a,[408125543,357149030,2807729])&&(c=xD(a));a.pos=b;return c};
Bya=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!DD(a)||!uD(a,160))return a.pos=c,NaN;vD(a,!0);var d=a.pos;if(!uD(a,161))return a.pos=c,NaN;vD(a,!0);BD(a);var e=BD(a)<<8|BD(a);a.pos=d;if(!uD(a,155))return a.pos=c,NaN;d=xD(a);a.pos=c;return(e+d)*b/1E9};
DD=function(a){if(!Cya(a)||!uD(a,524531317))return!1;vD(a,!0);return!0};
Cya=function(a){if(a.Pl()){if(!uD(a,408125543))return!1;vD(a,!0)}return!0};
sD=function(a,b){for(var c=0;c<b.length;c++){if(!uD(a,b[c]))return!1;c!==b.length-1&&vD(a,!0)}return!0};
uD=function(a,b,c){c=void 0===c?!1:c;if(rD(a))return!1;for(var d=a.pos;vD(a,!1)!==b;)if(yD(a),d=a.pos,rD(a))return!1;c&&(a.pos=d);return!0};
xya=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};
AD=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
ED=function(a){this.Mi=a;this.j={};this.url=""};
Dya=function(a,b){var c=b.indexOf("?");if(0<c){var d=Zxa(b.substr(c+1));g.hf(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Yxa(b);g.hf(b,function(e,f){this.set(f,e)},a)};
Eya=function(a){var b=a.Mi.Ge(),c=[];g.hf(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Xxa(a.Mi)?"&":"?";return b+a+d};
FD=function(a,b){var c=new g.yC(b);(b=c.get("req_id"))&&a.set("req_id",b);g.hf(a.j,function(d,e){c.set(e,null)});
return c};
Fya=function(){this.C=this.B=this.j=this.timedOut=this.started=this.D=this.u=0};
GD=function(a){a.D=(0,g.Q)();a.started=0;a.timedOut=0;a.j=0};
Gya=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.B);return Math.pow(b.je,d)};
HD=function(a,b){a[b]||(a[b]=new Fya);return a[b]};
ID=function(a){this.J=this.I=this.D=this.u=0;this.j=a;this.B=a.clone()};
KD=function(a,b,c){if(BC(a.j))return!1;var d=HD(c,AC(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=JD(a,b);c=HD(c,AC(a));return c.timedOut+c.j+ +(b.Cm&&!c.D)<d};
Hya=function(a,b,c){a=b?JD(a,c):a.j;return new ED(a)};
JD=function(a,b){b=b?b.Pj:!1;a.C||(a.C=DC(a.B,b));return a.C};
LD=function(a,b,c){return AC(b?JD(a,c):a.j)};
Iya=function(a,b,c){c=HD(c,LD(a,KD(a,b,c),b));c=Math.max(a.D,c.timedOut)+b.qv*(a.u-a.D)+.25*a.I;b=c>b.Tf?1E3*Math.pow(b.je,c-b.Tf):0;return 0===b?!0:a.J+b<(0,g.Q)()};
Jya=function(a,b,c){a.j.set(b,c);a.B.set(b,c);a.C&&a.C.set(b,c)};
MD=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.D=!1;this.J=0;this.C=this.B=null;this.info=b;this.u=new ID(a)};
OD=function(a,b,c,d){a=ND(a,b);return(d?(c||"")+";":"")+a.itag+";"+(a.lmt||0)+";"+a.xtags};
ND=function(a,b){var c=g.t(a.info.id.split(";")),d=c.next().value;c=c.next().value;return{itag:+d,lmt:b?0:a.info.lastModified,xtags:void 0===c?"":c}};
PD=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
QD=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new PD(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
RD=function(a,b){return new PD(a,a+b-1)};
Kya=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
SD=function(a){if(!a)return new PD(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new PD(b,a),0<b.length))return b};
TD=function(a,b,c,d,e,f,h,l,m,n){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.J=[];this.D="";this.Na=-1;this.D=d;this.Na=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Kb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.Pe=this.range?this.Kb+this.u===this.range.length:void 0===n?!!this.u:n;this.range?(this.C=this.startTime+this.duration*this.Kb/this.range.length,this.I=this.duration*this.u/this.range.length,this.B=this.C+this.I):Lya(this)};
Lya=function(a){a.C=a.startTime;a.I=a.duration;a.B=a.C+a.I};
UD=function(a){return a.Pe&&a.j.index.wJ(a.Na)};
Mya=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Na!==a.Na);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Kb+b.u===a.Kb+a.u:d};
VD=function(a){return 1===a.type||2===a.type};
WD=function(a){return 3===a.type||6===a.type};
XD=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Kb+a.u===b.range.start+b.Kb:a.Na===b.Na?a.Kb+a.u===b.Kb:a.Na+1===b.Na&&0===b.Kb&&a.Pe:!1};
Nya=function(a,b){return XD(a,b)||Dg(a.B,b.C)||a.Na+1===b.Na&&0===b.Kb&&a.Pe?!0:!1};
YD=function(a){return a.Na+(a.Pe?1:0)};
Oya=function(a){1===a.length||g.Rk(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new PD(a[0].range.start+a[0].Kb,b.range.start+b.Kb+b.u-1)};
$D=function(a){a=ZD(a);var b="";g.hf(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
ZD=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.D;b.seg=String(a.Na);a.range&&(b.range=""+(a.range.start+a.Kb)+"-"+(a.range.start+a.Kb+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.I).toFixed(1);b.off=String(a.Kb);b.len=String(a.u);a.Pe&&(b.end="1");UD(a)&&(b.eos="1");return b};
Pya=function(a){return new TD(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Na,a.startTime,0,a.Kb,0)};
Qya=function(a){return new TD(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Na,a.startTime+a.duration,0,a.Kb+a.u,0)};
Rya=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Kb>=b.range.start+b.Kb&&a.range.start+a.Kb+a.u<=b.range.start+b.Kb+b.u:a.Na===b.Na&&a.Kb>=b.Kb&&(a.Kb+a.u<=b.Kb+b.u||b.Pe)};
Sya=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Xf()?(a=a.j.kx(a),Xl(a,function(c){return Sya(c,b)})):a.Na===b.Na&&!!b.u&&b.Kb+b.u>a.Kb&&b.Kb+b.u<=a.Kb+a.u};
aE=function(a,b){var c=b.Na;a.D="updateWithSegmentInfo";a.Na=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Lya(a)};
bE=function(a,b){this.Za=a;this.J=this.u=null;this.D=this.fg=NaN;this.I=this.requestId=null;this.j=a[0].j.u;this.C=b||"";if(this.Za[0].range&&0<this.Za[0].u){a:{for(b=1;b<a.length;b++)if(!XD(a[b-1],a[b])){b=!1;break a}b=!0}if(b)this.range=Oya(a),this.B=this.range.length;else{this.range=this.Za[this.Za.length-1].range;b=0;a=g.t(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;this.B=b}}};
cE=function(a){return!VD(a.Za[a.Za.length-1])};
dE=function(a){return 4===a.Za[a.Za.length-1].type};
g.eE=function(a,b,c){c=null===a.I?KD(a.j,b,c):a.I;if(a.u){b=c?DC(a.u,b.Pj):a.u;var d=new ED(b);d.get("alr")||d.set("alr","yes");a.C&&Dya(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new ED(new g.yC(a.C)):(d=Hya(a.j,c,b),a.C&&Dya(d,a.C));(b=a.range)?d.set("range",b.toString()):a.Za[0].j.qt()&&1===a.Za.length&&a.Za[0].Kb&&d.set("range",a.Za[0].Kb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.fg)||d.set("headm",a.fg.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.hf(a.urlParams,function(e,
f){d.set(f,e)});
return d};
Tya=function(a){if(a.range)return a.B;a=a.Za[0];return Math.round(a.I*a.j.info.Tb)};
Uya=function(a,b){return Math.max(0,a.Za[0].C-b)};
Vya=function(a,b){if(0!==b.length){var c=[];b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,c.push(new TD(3,a.Za[0].j,RD(d.du,d.Sn),"extendWithMediaSegments",d.Bp-1,d.startMs/1E3,d.durationMs/1E3));return new bE(a.Za.concat(c))}};
Wya=function(a,b){a=g.t(a.Za);for(var c=a.next();!c.done;c=a.next())if(c=c.value,3===c.type&&b>=c.C&&b<=c.B)return!0;return!1};
fE=function(a,b,c,d,e,f){f=void 0===f?0:f;MD.call(this,a,b,d,void 0);this.I=c;this.ij=f;this.index=e||new g.FC};
Xya=function(a,b,c,d,e){this.Na=a;this.startSecs=b;this.durationSecs=c;this.j=d||NaN;this.u=e||NaN};
gE=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""};
hE=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
Yya=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};
Zya=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
iE=function(){this.j=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.J="";this.C=-1};
$ya=function(a){var b=a.B;a.B=[];return b};
aza=function(){this.C=[];this.j=null;this.u={};this.B={}};
eza=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;"Period"===e.nodeName?f=bza(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=cza(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=dza(a,e));if(null==f)return;f.update(d);g.fc(c,$ya(f))}g.fc(a.C,c);Taa(a.C,function(h){return 1E3*h.startSecs+h.j})};
fza=function(a){a.j&&(a.j.j=[]);g.hf(a.u,function(b){b.j=[]});
g.hf(a.B,function(b){b.j=[]})};
bza=function(a){a.j||(a.j=new iE);return a.j};
cza=function(a,b){a.u[b]||(a.u[b]=new iE);return a.u[b]};
dza=function(a,b){a.B[b]||(a.B[b]=new iE);return a.B[b]};
jE=function(a){var b=void 0===a?{}:a;a=void 0===b.ij?0:b.ij;var c=void 0===b.Al?!1:b.Al,d=void 0===b.dn?0:b.dn,e=void 0===b.De?0:b.De,f=void 0===b.jg?Infinity:b.jg,h=void 0===b.Rw?0:b.Rw;b=void 0===b.He?!1:b.He;g.FC.call(this);this.Uo=this.Cn=-1;this.B=null;this.Ei=a;this.dn=d;this.Al=c;this.De=e;this.jg=f;this.Rw=h;this.He=b};
lE=function(a,b,c){b=kE(a,b);return 0<=b&&(c||!a.segments[b].pending)};
kE=function(a,b){return nc(a.segments,function(c){return b-c.Na})};
wE=function(a,b,c){c=void 0===c?{}:c;fE.call(this,a,b,"",void 0,void 0,c.ij||0);this.index=new jE(c)};
xE=function(a,b,c){MD.call(this,a,b);this.I=c;this.index=new g.FC;this.index.u=!1};
gza=function(a,b,c){var d=a.index.rD(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Tb*f;return new bE([new TD(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
hza=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new EC(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
yE=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.D=-1;this.timestampOffset=0;this.I=!1;this.C=this.info.j.Mw()&&!this.info.Kb};
zE=function(a){return fya(a.j)};
iza=function(a,b){if(1!==a.info.j.info.containerType||a.info.Kb||!a.info.Pe)return!0;a=zE(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};
jza=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b);return[new yE(new TD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Kb,b,!1),c.Vz,a.B),new yE(new TD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Kb+b,a.info.u-b,a.info.Pe),c.Uj)]};
kza=function(a,b,c){var d;if(!(d=!XD(a.info,b.info)||a.info.Pe)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?dya(a.j,c.j[0]):1);d=c}if(d)return null;c=new TD(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Na,a.info.startTime,a.info.duration,a.info.Kb,a.info.u,a.info.Pe);d=b.info;c.u+=d.u;c.range&&(c.I+=d.I);c.B=d.B;c.Pe=d.Pe;d=new GC;HC(d,a.j);HC(d,b.j);c=new yE(c,d,a.B);c.u=b.u||a.u;return c};
lza=function(a){g.AE(a.info.j.info)||a.info.j.info.me();if(-1!==a.D)return a.D;if(a.u&&mya(a.u))return a.D=mya(a.u),a.D;if(g.AE(a.info.j.info)){var b=zE(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;kD(b,f);){var h=lD(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.hD(h):1952867444===h.type&&isNaN(d)&&(d=g.nD(h));f=mD(h.type)?f+8:f+h.size}!e&&c&&(e=iD(c));b=d/e}else b=new qD(zE(a)),c=a.C?b:new qD(new DataView(a.info.j.j.buffer)),d=CD(c),c=b.pos,b.pos=0,DD(b)?uD(b,231)?
(d=xD(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.D=b||a.info.C;return a.D};
nza=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=lza(a)+b;mza(a,c);a.timestampOffset=b};
mza=function(a,b){g.AE(a.info.j.info)||a.info.j.info.me();a.D=b;if(g.AE(a.info.j.info)){var c=zE(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;kD(c,f);){var h=lD(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.hD(h)));if(1952867444===h.type){!d&&a&&(d=iD(a));var l=g.nD(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=mD(h.type)?f+8:f+h.size}return!0}c=new qD(zE(a));a=a.C?c:new qD(new DataView(a.info.j.j.buffer));d=CD(a);a=c.pos;c.pos=0;if(DD(c)&&uD(c,231))if(e=vD(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
BE=function(a,b){b=void 0===b?!1:b;var c=oza(a);a=b?0:a.info.I;return c||a};
oza=function(a){g.AE(a.info.j.info)||a.info.j.info.me();if(a.u&&6===a.info.type)return a.u.ij;if(g.AE(a.info.j.info)){var b=zE(a);var c=0;b=g.pD(b,1936286840);b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=tya(d.value),c+=d.aM[0]/d.fM;c=c||NaN;if(!(0<=c))a:{c=zE(a);b=a.info.j.j;for(var e=d=0,f=0;kD(c,d);){var h=lD(c,d);if(1836476516===h.type)e=g.hD(h);else if(1836019558===h.type){!e&&b&&(e=iD(b));if(!e){c=NaN;break a}var l=jD(h.data,h.dataOffset,1953653094),m=e,n=jD(l.data,l.dataOffset,1952868452);
l=jD(l.data,l.dataOffset,1953658222);var p=YC(n);YC(n);p&2&&YC(n);n=p&8?YC(n):0;var q=YC(l),r=q&1;p=q&4;var w=q&256,y=q&512,z=q&1024;q&=2048;var B=ZC(l);r&&YC(l);p&&YC(l);for(var D=r=0;D<B;D++){var G=w?YC(l):n;y&&YC(l);p&&0===D||!z||YC(l);q&&YC(l);r+=G}f+=r/m}d=mD(h.type)?d+8:d+h.size}c=f||NaN}c||g.aA(new g.Yv("Missing duration while parsing bmff",$D(a.info)))}else c=new qD(zE(a)),a=a.C?c:new qD(new DataView(a.info.j.j.buffer)),c=Bya(c,CD(a));return c};
pza=function(a){var b=zE(a);var c=(c=g.gD(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.gD(b,0,1836476516))?g.hD(b):a?iD(a):NaN);return c};
qza=function(a){return a.info.j.info.me()&&160===MC(a.j,0)};
rza=function(a){if(!a.u){g.AE(a.info.j.info)||a.info.j.info.me();if(g.AE(a.info.j.info))var b=g.vya(zE(a));else{b=new qD(zE(a));var c=b.pos;b.pos=0;var d=null,e=null;if(sD(b,[408125543,307544935]))for(var f=b.pos+vD(b,!0);b.pos<f;)if(29555!==vD(b,!1))yD(b);else for(var h=b.pos+vD(b,!0);b.pos<h;)if(26568!==vD(b,!1))yD(b);else for(var l=b.pos+vD(b,!0);b.pos<l;){var m=vD(b,!1);if(17543===m){if(m=zya(b),m=fD(m))if(e)for(var n=g.t(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=zya(b),d||(d=m)):yD(b)}b.pos=c;b=e?new dD(e,d):null}a.u=b}};
sza=function(a){if(!a.I){if(g.AE(a.info.j.info)){var b=zE(a);var c=jD(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=Aya(new qD(zE(a)));b&&(a.info.j.j=b,a.I=!0)}};
g.CE=function(){this.count=0;this.u=1;this.B=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)};
tza=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
DE=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
EE=function(a,b,c,d){MD.call(this,a,b,c,d);this.I=null;this.index=new g.CE};
FE=function(a,b,c,d){for(var e=[],f=b;f<=a.index.jd();f++){var h=RD(a.index.Oo(f),tza(a.index,f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+n);e.push(new TD(3,a,h,"getRequestInfoForRange",f,l,m,n,p));if(h.start+n+p>=c+d)break}e.length||g.$z(new g.Yv("b189619593",""+b,""+c,""+d));return new bE(e)};
GE=function(a,b,c,d){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d};
uza=function(a,b,c,d,e){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d;this.xtags=void 0===e?"":e};
HE=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return vza[a];return null};
JE=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||IE(a,b);this.j=g.eC[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.eC[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));
this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
IE=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=KE[0];for(var d=0;d<KE.length;d++){var e=KE[d],f=g.eC[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
NE=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Tb||(c.Tb=16E3);Object.assign(this,c);a=g.t(this.id.split(";"));this.itag=a.next().value;this.u=a.next().value;this.containerType=LE(b);this.Ib=ME[this.itag]||""};
wC=function(a){return"9"===a.Ib||"("===a.Ib||"9h"===a.Ib||"(h"===a.Ib};
OE=function(a){return"9h"===a.Ib||"(h"===a.Ib};
PE=function(a){return"1"===a.Ib||"1h"===a.Ib};
vC=function(a){return"mac3"===a.Ib||"meac3"===a.Ib||"m"===a.Ib};
uC=function(a){return"MAC3"===a.Ib||"MEAC3"===a.Ib||"M"===a.Ib};
g.AE=function(a){return 1===a.containerType};
QE=function(a){return"application/x-mpegURL"===a.mimeType};
wza=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.Ib)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.Tb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.Tb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.j=d})};
RE=function(a){return/(opus|mp4a|dtse|ac-3|ec-3)/.test(a)};
SE=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
TE=function(a){return a.includes("vtt")||a.includes("text/mp4")};
LE=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};
UE=function(a,b,c,d,e,f){var h=new GE;b in g.eC||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.eC[b],d=Math.round(16*e/9));f=new JE(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new NE(c,a,{audio:h,video:f})};
xza=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Ds)?void 0:c.toFixed(0))+", "+(null==(d=a.Tb)?void 0:d.toFixed(0))+")"};
g.VE=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.WE=function(){Jz.apply(this,arguments)};
XE=function(){var a=g.Ga("yt.player.utils.videoElement_");a||(a=g.bh("VIDEO"),g.Ea("yt.player.utils.videoElement_",a));return a};
YE=function(a){var b=XE();return!!(b&&b.canPlayType&&b.canPlayType(a))};
$E=function(a){if(/opus/.test(a)&&g.ZE&&!Mo("38")&&!g.jv())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Sma())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!YE(a)};
yza=function(a){try{var b=$E('video/mp4; codecs="avc1.42001E"')||$E('video/webm; codecs="vp9"');return($E('audio/mp4; codecs="mp4a.40.2"')||$E('audio/webm; codecs="opus"'))&&(b||!a)||YE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
aF=function(){var a=XE();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
bF=function(){var a=XE();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
cF=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
dF=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)};
eF=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};
fF=function(a,b){return 0<=eF(a,b)};
zza=function(a,b){if(!a)return NaN;b=eF(a,b);return 0<=b?a.start(b):NaN};
gF=function(a,b){if(!a)return NaN;b=eF(a,b);return 0<=b?a.end(b):NaN};
hF=function(a){return a&&a.length?a.end(a.length-1):NaN};
Aza=function(a,b){a=gF(a,b);return 0<=a?a-b:0};
iF=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 cF(d,e)};
jF=function(a,b,c,d){g.Mz.call(this);var e=this;this.xd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.zQ={error:function(){!e.isDisposed()&&e.isActive&&e.ma("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ma("updateend",e)}};
g.Nz(this.xd,this.zQ);this.BB=this.isActive};
lF=function(a,b,c,d,e,f){g.Mz.call(this);var h=this;this.vc=a;this.Yf=b;this.id=c;this.containerType=d;this.Ib=e;this.isVideo=f;this.DJ=this.fA=this.df=null;this.zC=!1;this.appendWindowStart=this.timestampOffset=0;this.yH=cF([],[]);this.Sy=!1;this.lx=kF?[]:void 0;this.Zc=function(m){return h.ma(m.type,h)};
var l;if(null==(l=this.vc)?0:l.addEventListener)this.vc.addEventListener("updateend",this.Zc),this.vc.addEventListener("error",this.Zc)};
mF=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
nF=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
oF=function(a,b,c){c=void 0===c?!1:c;g.K.call(this);this.mediaSource=a;this.Yf=b;this.isView=c;this.C=0;this.callback=null;this.events=new g.WE(this);g.L(this,this.events);this.B=new nF(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Yf.webkitMediaSourceURL,!0);a=this.mediaSource||this.Yf;Kz(this.events,a,["sourceopen","webkitsourceopen"],this.D2);Kz(this.events,a,["sourceclose","webkitsourceclose"],this.C2)};
Bza=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Cza=function(a,b){pF(a)?g.uh(function(){b(a)}):a.callback=b};
qF=function(a){return!!a.j||!!a.u};
pF=function(a){try{return"open"===rF(a)}catch(b){return!1}};
rF=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Yf.webkitSourceState){case a.Yf.SOURCE_OPEN:return"open";case a.Yf.SOURCE_ENDED:return"ended";default:return"closed"}};
sF=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Dza=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.xd:a.j,f=a.u.isView()?a.u.xd:a.u,h=new oF(a.mediaSource,a.Yf,!0);h.B=a.B;e=new jF(e,b,c,d);b=new jF(f,b,c,d);h.j=e;h.u=b;g.L(h,e);g.L(h,b);pF(a)||a.j.gF(a.j.Bd());return h};
Eza=function(a){return tF(function(b,c){return g.Zu(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.Fza=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=QC(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
tF=function(a,b,c){b.match(Gza);return a(b,c).then(function(d){var e=g.Fza(d.xhr);return e?tF(a,e,c):d.xhr})};
uF=function(a,b,c,d){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.Mz.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.videoId=d;this.Ba=this.duration=0;this.isPremiere=this.He=this.B=this.isLiveHeadPlayable=this.isLive=this.u=!1;this.jg=this.De=0;this.isOtf=this.Ud=!1;this.oa=(0,g.Q)();this.I=Infinity;this.j={};this.Ma=new Map;this.state=this.Vg=0;this.timeline=null;this.isManifestless=!1;this.J=[];this.C=null;this.T=0;this.Oa="";this.ea=NaN;this.Fd=this.wc=this.od=this.timestampOffset=
this.D=0;this.Z=!1;this.Ka=[];this.Aa=!!b&&b.gb("disable_html5_manifest_namespace_redux");this.Sa=b&&b.gb("disable_html5_duration_caching")?Infinity:10;this.Wa=!!b&&b.gb("html5_live_head_playable");Hza=!!b&&b.gb("html5_modern_vp9_mime_type")};
Qxa=function(a){return g.lf(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
pC=function(a){return g.lf(a.j,function(b){return!!b.info.Gd})};
Iza=function(a){return g.lf(a.j,function(b){return TE(b.info.mimeType)})};
Jza=function(a){return g.lf(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
Kza=function(a){return g.lf(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
Lza=function(a){return g.lf(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
Mza=function(a){return g.lf(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Nza=function(a){return Hca(a.j,function(b){return b.info.video?b.VK():!0})};
lC=function(a){return g.lf(a.j,function(b){return BC(b.u.j)})};
vF=function(a,b){a.j[b.info.id]=b;var c=OD(b,a.Ud,a.videoId,!0);a.Ma.set(c,b)};
yF=function(a,b,c){c=void 0===c?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(SE(d)){var h=a.width||640;e=a.height||360;var l=a.fps,m=a.qualityLabel,n=a.colorInfo,p=a.projectionType,q;a.stereoLayout&&(q=Oza[a.stereoLayout]);var r=HE(a)||void 0;if(null==n?0:n.primaries)var w=Pza[n.primaries]||void 0;h=new JE(h,e,l,p,q,void 0,m,r,w);d=wF(d,h,ME[a.itag||""])}var y;if(RE(d)){var z=a.audioSampleRate;q=a.audioTrack;z=new GE(z?+z:void 0,a.audioChannels,a.spatialAudioType,
a.isDrc);q&&(w=q.displayName,e=q.id,q=q.audioIsDefault,w&&(y=new g.VE(w,e||"",!!q)))}var B;a.captionTrack&&(l=a.captionTrack,q=l.displayName,w=l.vssId,e=l.languageCode,l=l.kind,q&&w&&e&&(B=new uza(q,w,e,l,a.xtags)));q=Number(a.bitrate)/8;w=Number(a.contentLength);e=Number(a.lastModified);l=a.drmFamilies;a=a.type;c=c&&w?w/c:0;if(b&&l){var D={};l=g.t(l);for(m=l.next();!m.done;m=l.next())(m=xF[m.value])&&(D[m]=b[m])}return new NE(f,d,{audio:z,video:h,Mc:y,Gd:D,Tb:q,Ds:c,contentLength:w,lastModified:e,
captionTrack:B,streamType:a})};
zF=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(SE(d)){var h=(a.size||"640x360").split("x");h=new JE(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=wF(d,h,ME[a.itag])}var l;if(RE(d)){var m=new GE(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.VE(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 uza(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags));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 r={};for(var w=g.t(a.drm_families.split(",")),y=w.next();!y.done;y=w.next())y=y.value,r[y]=b[y]}return new NE(e,d,{audio:m,video:h,Mc:l,Gd:r,Tb:f,Ds:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type})};
Qza=function(a){return Xl(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Rza=function(a){return Xl(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Sza=function(a,b){return a.timeline?gc(a.timeline.C,b):a.J.length?gc(a.J,b):[]};
AF=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.yC(a,!0);a.set("alr","yes");c&&(c=Wxa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Wza=function(a,b){var c=gE(b,"id");c=c.replace(":",";");var d=gE(b,"mimeType"),e=gE(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(gE(b,"bandwidth"))/8;var f=Number(hE(b,"BaseURL").getAttribute(BF(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(SE(d)){var l=Number(gE(b,"width"));var m=Number(gE(b,"height")),n=Number(gE(b,"frameRate")),p=Tza(gE(b,BF(a,"projectionType")));a:switch(gE(b,BF(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
0}l=new JE(l,m,n,p,q)}if(RE(d)){var r=Number(gE(b,"audioSamplingRate"));var w=Number(gE(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Uza(gE(b,BF(a,"spatialAudioType")));r=new GE(r,w,m);a:{w=gE(b,"lang")||"und";if(m=hE(b,"Role"))if(p=gE(m,"value")||"",g.pf(Vza,p)){m=w+"."+Vza[p];n="main"===p;a=gE(b,BF(a,"langName"))||w+" - "+p;w=new g.VE(a,m,n);break a}w=void 0}}if(b=hE(b,"ContentProtection"))if("https://web.archive.org/web/20221116135136/http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var y={};for(b=
b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(y[a]=m.trim()))}else y=void 0;return new NE(c,d,{audio:r,video:l,Mc:w,Gd:y,Tb:e,Ds:h,contentLength:f})};
Tza=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}};
Uza=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}};
Yza=function(a,b){b=void 0===b?"":b;a.state=1;a.oa=(0,g.Q)();return Eza(b||a.sourceUrl).then(function(c){if(!a.isDisposed()){a.Vg=c.status;c=c.responseText;var d=new DOMParser;c=Lfa(d,vg(c)).getElementsByTagName("MPD")[0];a.I=1E3*Yya(gE(c,"minimumUpdatePeriod"))||Infinity;if(!a.Aa){b:{if(c.attributes){d=g.t(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"https://web.archive.org/web/20221116135136/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.Oa=d}a.isLive=Infinity>a.I&&a.isLivePlayback;
a.Ba=Number(gE(c,BF(a,"earliestMediaSequence")))||0;if(d=Date.parse(Zya(gE(c,BF(a,"mpdResponseTime")))))a.T=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Rk(c.getElementsByTagName("Period"),a.l3,a);a.state=2;a.ma("loaded");Xza(a)}return a}).jj(function(c){if(c instanceof Xu){var d=c.xhr;
a.Vg=d.status}a.state=3;a.ma("loaderror");return zh(d)})};
Zza=function(a,b,c){return Yza(new uF(a,b,c),a)};
CF=function(a){return a.isLive&&(0,g.Q)()-a.oa>=a.I};
Xza=function(a){var b=a.I;isFinite(b)&&(CF(a)?a.refresh():(b=Math.max(0,a.oa+b-(0,g.Q)()),a.C||(a.C=new g.ho(a.refresh,b,a),g.L(a,a.C)),a.C.start(b)))};
$za=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.jd()+1}return 0};
DF=function(a){return a.od?a.od-(a.D||a.timestampOffset):0};
EF=function(a){return a.wc?a.wc-(a.D||a.timestampOffset):0};
FF=function(a){if(!isNaN(a.ea))return a.ea;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.Gl();c<=d.jd();c++)b+=d.getDuration(c);b/=d.zw();b=.5*Math.round(b/.5);d.zw()>a.Sa&&(a.ea=b);return b}if(a.isLive&&(d=b[c],d.ij))return d.ij}return NaN};
aAa=function(a,b){a=Jca(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.Jh(b);return a.getStartTime(c)===b?b:c<a.jd()?a.getStartTime(c+1):NaN};
bAa=function(a,b){if(!a.j["0"]){var c=new NE("0","fakesb",{video:new JE(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new fE(new g.yC("https://web.archive.org/web/20221116135136/http://www.youtube.com/videoplayback"),c,"fake"):new EE(new g.yC("https://web.archive.org/web/20221116135136/http://www.youtube.com/videoplayback"),c,new PD(0,0),new PD(0,0))}};
GF=function(a,b,c){for(var d in a.j){var e=TE(a.j[d].info.mimeType)||a.j[d].info.isVideo();if(c===e){e=a.j[d].index;var f=kE(e,b);0<=f&&e.segments.splice(f,1)}}};
cAa=function(a){for(var b in a.j)cya(a.j[b].index,Infinity)};
BF=function(a,b){return a.Aa?"yt:"+b:a.Oa+":"+b};
dAa=function(a){a.wc=0;a.od=0;a.Fd=0};
HF=function(a){return a.Wa&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
wF=function(a,b,c){null===IF&&(IF=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(Hza&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return IF||"9"!==c&&"("!==c?IF||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!IF&&!JF||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;c="00";var d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
eAa=function(a){g.zA("yt-player-bandwidth",a,2592E3)};
KF=function(a){a=void 0===a?2592E3:a;if(0<a&&!(zta()>(0,g.Q)()-1E3*a))return 0;a=g.AA("yt-player-quality");if("string"===typeof a){if(a=g.eC[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
fAa=function(){var a=g.AA("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};
gAa=function(){var a={values:{},So:{}};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};
hAa=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
MF=function(a,b){return+LF()[hAa(a,b)]||8192};
LF=function(){return g.AA("yt-player-performance-cap")||{}};
iAa=function(a){g.zA("yt-player-watch-later-pending",a)};
jAa=function(){return!!g.AA("yt-player-headers-readable")};
kAa=function(a){g.zA("yt-player-playback-on-reload",a)};
lAa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.mAa=function(){var a=g.AA("yt-player-caption-language-preferences");return a?a:[]};
nAa=function(a){this.Aa=a;this.wc=this.j=this.Ma=this.I=this.D=this.oa=this.Ka=this.ib=this.Xa=!1;this.T=this.J=0;this.yb=!1;this.kb=!0;this.qb=!1;this.Z=0;this.ya=!1;this.pc=Infinity;this.nH=!1;this.Ac=!0;this.Wa=this.Oa=this.Sa=!1;this.u={};this.Vb=this.B=this.Ba=!1;this.rd=this.Aa.experiments.gb("html5_enable_vp9_fairplay");this.Dc=this.Aa.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Hh=0;this.Mb=!1};
Rxa=function(a){if(a.ib)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.ya&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.ea&&(b=(oAa[a.ea]||[a.ea]).concat(b));return b};
Pxa=function(a){var b=["o","a","A"];1===a.Hh&&(a.oa&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.I&&(b=["meac3","MEAC3"].concat(b)));a.Xa&&(b=["so","sa"].concat(b));!a.wc||a.Ma||a.C||b.unshift("a");a.Ka&&b.unshift("ah");a.C&&(b=(oAa[a.C]||[a.C]).concat(b));return b};
NF=function(a,b,c){b=void 0===b?{}:b;if(a.N("html5_disable_av1"))return b.disabled=1,0;if(sC(a.B,tC.AV1_CODECS)&&sC(a.B,tC.HEIGHT)&&sC(a.B,tC.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=lAa();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Rma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return PE(h)}))?void 0:null==(f=e.j)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(MF("1",c.fps),MF("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=MF("1",30),b.perfCap30=c,a=Math.min(a,c),c=MF("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
PF=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Ma=this.keySystemAccess=null;this.Ou=this.Pu=-1;this.fk=null;this.B="";this.C=!!d&&d.gb("edge_nonprefixed_eme");this.B=d?OF(d,"html5_hdcp_probing_stream_url"):""};
RF=function(a){return a.C?!1:!a.keySystemAccess&&!!QF()&&"com.microsoft.playready"===a.keySystem};
SF=function(a){return"com.microsoft.playready"===a.keySystem};
TF=function(a){return!a.keySystemAccess&&!!QF()&&"com.apple.fps.1_0"===a.keySystem};
UF=function(a){return"com.youtube.fairplay"===a.keySystem};
VF=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.WF=function(a){return"fairplay"===a.flavor};
QF=function(){var a=window,b=a.MSMediaKeys;mv()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
ZF=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.ZE&&!g.jv())return Mo("45");if(g.Qw||g.Yg)return a.gb("edge_nonprefixed_eme");if(g.XF)return Mo("47");if(g.qw){if(a.gb("html5_enable_safari_fairplay"))return!1;if(a=g.YF(a,"html5_safari_desktop_eme_min_version"))return Mo(a)}return!0};
pAa=function(a,b,c,d){var e=kv(),f=(c=e||c&&mv())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.u(f),g.u($F.playready)):[].concat(g.u($F.playready),g.u(f))};
aG=function(a,b,c,d,e){d=void 0===d?!1:d;g.K.call(this);this.experiments=b;this.useCobaltWidevine=d;this.va=e;this.u=[];this.B={};this.j={};this.callback=null;this.D=!1;this.C=[];this.initialize(a,!c)};
rAa=function(a,b){a.callback=b;a.C=[];ZF(a.experiments)?bG(a):qAa(a)};
bG=function(a){if(!a.isDisposed())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=sAa(a,c);navigator.requestMediaKeySystemAccess(b,d).then(Cu(function(e){if(!a.isDisposed()){c.keySystemAccess=e;if(SF(c)){e=XE();for(var f=g.t(Object.keys(a.j[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.j[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.t(e.audioCapabilities),h=f.next();!h.done;h=f.next())tAa(a,c,h.value);if(e.videoCapabilities)for(e=
g.t(e.videoCapabilities),f=e.next();!f.done;f=e.next())tAa(a,c,f.value)}a.C.push(c);a.useCobaltWidevine?(a.u.shift(),bG(a)):a.callback(a.C)}}),Cu(function(){a.D=!a.D&&"widevine"===a.B[a.u[0]].flavor;
a.D||a.u.shift();bG(a)}))}};
tAa=function(a,b,c){a.N("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
sAa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};SF(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.t(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.ZE&&hv("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&(tv()||iv())&&(a.va("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
qAa=function(a){if(QF()&&g.qw)a.C.push(new PF("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=uAa(),c=g.Qb(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
uAa=function(){var a=QF();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=XE();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
vAa=function(){this.j=0};
wAa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Eu(b||"","&");a={};b=g.t(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.YF=function(a,b){return Number(a.flags[b])||0};
OF=function(a,b){return(a=a.flags[b])?a.toString():""};
yAa=function(a){return xAa.then(a)};
cG=function(a,b,c){this.experiments=a;this.oa=b;this.ya=void 0===c?!1:c;this.J=!!g.Ga("cast.receiver.platform.canDisplayType");this.I={};this.Z=!1;this.u=new Map;this.T=!0;this.D=!this.experiments.gb("html5_disable_protected_hdr");this.j=this.B=!1;this.ea=this.experiments.gb("html5_disable_vp9_encrypted");a=g.Ga("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null};
Txa=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.me()&&kv()&&a.experiments.gb("html5_appletv_disable_vp9"))return"dwebm";if(PE(b)&&a.Z)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(sC(a,tC.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.ZE?Mo(53):g.XF&&Mo(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[tC.WIDTH.name]=b.video.width),b.video.height&&(c[tC.HEIGHT.name]=b.video.height),b.video.fps&&(c[tC.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[tC.EOTF.name]=b.video.u),b.Tb&&(c[tC.BITRATE.name]=8*b.Tb*f),"("===b.Ib&&(c[tC.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[tC.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[tC.CHANNELS.name]=b.audio.numChannels);a.B&&wC(b)&&(c[tC.EXPERIMENTAL.name]="allowed");f=g.t(Object.keys(tC));for(var h=f.next();!h.done;h=f.next())if(h=tC[h.value],c[h.name]&&!(h===tC.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.gb("html5_ignore_h264_framerate_cap")&&h===tC.FRAMERATE&&("H"===b.Ib||"h"===b.Ib)))if(sC(a,h))if(a.C){if(a.C[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(OE(b)&&h===tC.EOTF)return"dvp92";!a.experiments.gb("disable_html5_cast_hdcp_filter2")&&
a.J&&b.video&&1080<b.video.j&&b.Gd&&(e+="; hdcp=2.2");return"227"===d?"hqcenc":"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.gb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:a.experiments.gb("html5_log_mimetype_on_149_rejected")&&"149"===d?e:"tpus":"newhvc"};
dG=function(a){var b=iv()&&!Mo(29),c=hv("google tv")&&hv("chrome")&&!Mo(30);a=kv()&&a.experiments.gb("apple_tv_cobalt_default_mse_killswitch");return b||c||a?!1:Bza()};
zAa=function(a,b,c){var d=480;b=g.t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===Txa(a,e,c)&&(d=f)}return d};
g.eG=function(a,b){b=void 0===b?!1:b;return dG(a)&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(XE(),"application/x-mpegURL")?!0:!1};
BAa=function(a){AAa(function(){for(var b=g.t(Object.keys(tC)),c=b.next();!c.done;c=b.next())sC(a,tC[c.value])})};
sC=function(a,b){b.name in a.I||(a.I[b.name]=CAa(a,b));return a.I[b.name]};
CAa=function(a,b){if(a.C)return!!a.C[b.name];if(b===tC.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===tC.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)};
DAa=function(a){a.T=!1;a.j=!0};
EAa=function(a){a.B||(a.B=!0,a.j=!0)};
FAa=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).jZ);a.u.set(b,{jZ:c+1,mT:Math.pow(2,c+1)});a.j=!0};
HAa=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;GAa(a)}};
IAa=function(a){a.j||(AAa(function(){GAa(a)}),a.j=!0)};
GAa=function(a){a.j=!1;if(a.queue.length&&!(a.u&&5>=a.queue.length&&15E3>(0,g.Q)()-a.C)){var b=a.queue.shift(),c=b.url;b=b.options;b.timeout=1E4;g.Zu(c,b,3,1E3).then(a.B,a.B);a.u=!0;a.C=(0,g.Q)();5<a.queue.length&&IAa(a)}};
fG=function(){g.Mz.call(this);this.items={}};
gG=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
mG=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!JAa){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);hG=new Uint8Array(256);iG=gG(256);jG=gG(256);kG=gG(256);lG=gG(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;hG[f]=e;b=e<<1^(e>>7&&283);var h=b^e;iG[f]=b<<24|e<<16|e<<8|h;jG[f]=h<<24|iG[f]>>>8;kG[f]=e<<24|jG[f]>>>8;lG[f]=e<<24|kG[f]>>>8}JAa=!0}e=gG(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=(hG[a>>16&255]^d)<<24|hG[a>>8&255]<<16|hG[a&255]<<8|hG[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
KAa=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};
LAa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=iG[c>>>24]^jG[d>>16&255]^kG[e>>8&255]^lG[f&255]^b[n++],l=iG[d>>>24]^jG[e>>16&255]^kG[f>>8&255]^lG[c&255]^b[n++],m=iG[e>>>24]^jG[f>>16&255]^kG[c>>8&255]^lG[d&255]^b[n++],f=iG[f>>>24]^jG[c>>16&255]^kG[d>>8&255]^lG[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=hG[c>>>24]^h>>>24;a[1]=hG[d>>16&255]^h>>16&255;a[2]=hG[e>>8&255]^
h>>8&255;a[3]=hG[f&255]^h&255;h=b[41];a[4]=hG[d>>>24]^h>>>24;a[5]=hG[e>>16&255]^h>>16&255;a[6]=hG[f>>8&255]^h>>8&255;a[7]=hG[c&255]^h&255;h=b[42];a[8]=hG[e>>>24]^h>>>24;a[9]=hG[f>>16&255]^h>>16&255;a[10]=hG[c>>8&255]^h>>8&255;a[11]=hG[d&255]^h&255;h=b[43];a[12]=hG[f>>>24]^h>>>24;a[13]=hG[c>>16&255]^h>>16&255;a[14]=hG[d>>8&255]^h>>8&255;a[15]=hG[e&255]^h&255};
pG=function(){if(!nG&&!g.Qw){if(oG)return oG;var a;oG=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=oG)?0:b.importKey)&&(null==(c=oG)?0:c.sign)&&(null==(d=oG)?0:d.encrypt))return oG;oG=void 0}};
g.qG=function(a){this.C=a};
g.rG=function(a){this.u=a};
sG=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
MAa=function(a,b,c){for(var d=a.J,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,w,y,z=0;64>z;)16>z?(d[z]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],y=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=y),r=q+tG[z]+y+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+w,l+=r,z++,16>z?(d[z]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[z-2],w=d[z-15],y=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=y),r=p+tG[z]+y+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+w,h+=r,z++,16>z?(d[z]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],y=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=y),r=n+tG[z]+y+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+w,f+=r,z++,16>z?(d[z]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],w=d[z-15],y=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[z]=y),r=m+tG[z]+y+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),y=q,q=l,l=y,y=p,p=h,h=y,y=n,n=f,f=y,m=e+r,e=r+w,z++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]=
l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
OAa=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;NAa(a);return b};
NAa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0};
PAa=function(a){this.j=a};
QAa=function(a,b,c){a=new sG(a.j);a.update(b);a.update(c);b=OAa(a);a.update(a.D);a.update(b);b=OAa(a);a.reset();return b};
RAa=function(a){this.u=a};
SAa=function(a,b,c,d){var e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(a.j){m.Ja(2);break}e=a;return g.x(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.x(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
TAa=function(a,b,c){a.B||(a.B=new PAa(a.u));return QAa(a.B,b,c)};
UAa=function(a,b,c){var d,e;return g.A(function(f){if(1==f.j){d=pG();if(!d)return f.return(TAa(a,b,c));g.qa(f,3);return g.x(f,SAa(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.sa(f);g.aA(e);nG=!0;return f.return(TAa(a,b,c))})};
vG=function(){this.B=this.j=0;this.u=Array.from({length:uG.length}).fill(0)};
VAa=function(){};
WAa=function(a){this.name=a;this.startTimeMs=(0,g.Q)();this.j=!1};
XAa=function(){this.profiles=new VAa};
wG=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new vG),a.profiles[b].wh(c,d))};
xG=function(){};
yG=function(){g.qG.apply(this,arguments)};
zG=function(){g.rG.apply(this,arguments)};
YAa=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
ZAa=function(a){a.u||(a.u=new yG(a.j));return a.u};
AG=function(a){try{return Dc(a)}catch(b){return null}};
$Aa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?AG(b.clientKey):null;var c=b.encryptedClientKey?AG(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.Q)():null;a&&c&&d&&(this.j=new YAa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=AG(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
BG=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
CG=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.D=aBa(this);this.B=c;this.I=d};
aBa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
DG=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.oc(a.D,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.D[Math.round(b*((a.u?a.j:a.valueIndex)-1))]]||0};
bBa=function(a){var b=new vAa;this.policy=a;this.ya=b;this.Z=this.oa=0;this.D=-1;this.T=!1;this.ea=this.C=EG();this.J=new CG(4,1,.6,.4);this.j=new CG(10,1,.5,.4);this.B=a.C?new BG(a.j):new CG(a.j,20,.5,.4);this.I=new CG(5,1,.25);this.u=new CG(30,1,.5);a=g.AA("yt-player-bandwidth")||{};b=this.policy.u;0<a.byterate&&(b=a.byterate,this.T=!0);this.B.Fh(this.policy.D,b);0<a.delay&&this.J.Fh(1,Math.min(a.delay,2));0<a.stall&&this.j.Fh(1,a.stall);0<a.init&&(this.ea=Math.min(a.init,this.ea));this.D=EG()};
FG=function(a){a=a.J.gi();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
cBa=function(a,b,c){isNaN(c)||(a.Z+=c);isNaN(b)||(a.oa+=b)};
GG=function(a){a=a.B.gi();return 0<a?a:1};
HG=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=GG(a);d=1/((a.j.gi()||0)+1/d);var e=a.I.gi();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+FG(a);c=d*Math.min(1,c/(d*b));a.policy.B||(a=((DG(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
IG=function(a){return{delay:FG(a),stall:a.j.gi()||0,byterate:GG(a),init:a.ea}};
JG=function(a){-1<a.D&&3E4<EG()-a.D&&(eAa(IG(a)),a.D=EG(),a.T=!0)};
dBa=function(a){return 4E3<=EG()-a.C};
eBa=function(){this.j=17;this.u=13E4;this.D=.5;this.B=this.C=!1};
gBa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.K.call(this);var c=this;this.values=a;this.So=b;this.u={};this.B=this.j=0;this.C=new g.ho(function(){fBa(c)},1E4);
g.L(this,this.C)};
KG=function(a,b){hBa(a,b);return a.values[b]&&a.So[b]?a.values[b]/Math.pow(2,a.j/a.So[b]):0};
hBa=function(a,b){a.values[b]||(b=gAa(),a.values=b.values||{},a.So=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
fBa=function(a){var b=gAa();if(b.values){b=b.values;for(var c={},d=g.t(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]=KG(a,e);a.u=c}b=a.So;c={};c.values=a.u;c.halfLives=b;g.zA("yt-player-memory",c,2592E3)};
LG=function(){var a=this;this.j=this.u=qaa;this.promise=new g.wh(function(b,c){a.u=b;a.j=c})};
hH=function(a,b,c,d){g.K.call(this);this.webPlayerContextConfig=b;this.al=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Mg=this.Fd=this.Sa=this.Kg=this.userDisplayName=this.userDisplayImage=this.Pj="";this.deviceParams={};this.controlsType="0";this.rd=NaN;this.zd=!1;this.We=(0,g.Q)();this.qb=0;this.fl=this.Bm=!1;this.gk=!0;this.C=this.j=this.Wk=this.Le=!1;this.Nk=0;a=a?g.yf(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);
this.experiments=new wAa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:Bv("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:Bv("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var e=document.location.toString()}catch(B){e=""}this.je=e;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];this.u=yv(!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");this.loaderUrl=b?this.u||iBa(this)&&b.loaderUrl?b.loaderUrl||"":this.je:this.u||iBa(this)&&a.loaderUrl?Bv("",a.loaderUrl):this.je;g.Ea("yt.embedded_player.embed_url",this.loaderUrl);this.D=XA(this.loaderUrl,jBa);d=this.loaderUrl;var f=void 0===f?!1:f;this.Lm=WA(XA(d,kBa),d,f,"Trusted Ad Domain URL");
this.Xa=yv(!1,a.privembed);this.protocol=0===this.je.indexOf("http:")?"http":"https";this.ya=YA((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||YA(this.je)||this.protocol+"://www.youtube.com/";f=b?b.eventLabel:a.el;d="detailpage";"adunit"===f?d=this.u?"embedded":"detailpage":"embedded"===f||this.D?d=zv(d,f,lBa):f&&(d="embedded");this.Ka=d;by();f=null;d=b?b.playerStyle:a.ps;e=g.Sb(mBa,d);!d||e&&!this.D||(f=d);this.playerStyle=f;this.Z=(this.I=g.Sb(mBa,this.playerStyle))&&"play"!==this.playerStyle&&
"jamboard"!==this.playerStyle;this.Km=!this.Z;this.Ma=yv(!1,a.disableplaybackui);this.disablePaidContentOverlay=yv(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=yv(!1,null==b?void 0:b.disableSeek);this.Od=this.N("variable_playback_rate")?!0:XE().defaultPlaybackRate?MG||g.rv||NG?g.XF&&Mo("20")||g.ZE&&Mo("4")||g.OG&&Mo("11")||nv():!(g.OG&&!hv("chrome")||MG||hv("android")||hv("silk")):!1;this.Fm=yv(!1,a.enable_faster_speeds);this.isMobile=yv("blazer"===this.playerStyle,a.is_html5_mobile_device||
b&&b.isMobileDevice);this.wc=qv()||tv();this.isMobile?f=!this.I:(f=Number(Date.now()/1E3),d=g.Mv.getInstance(),f=this.N("block_desktop_background_playback_with_mobile_cookie")&&d&&f>Number(d.get("dhmu",f.toString())));this.Jm=f;this.Ba=bF();this.Qm=g.PG;this.il=yv(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.gh=!(!b||!b.embedsEnablePfpImaIntegration||this.N("embeds_pfp_ima_integration_killswitch"));this.Aa=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.N("embeds_web_enable_utm_params"));
this.Hm=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.N("embeds_web_enable_ve_conversion_logging_tracking")||this.N("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list"));this.pfpChazalUi=this.gh||yv(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.N("embeds_pfp_chazal_ui_killswitch"));var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.ek=g.QG(this)&&!this.il||yv(!RG(this)&&!SG(this)&&!this.I,h);this.jl=b?!!b.mobileIphoneSupportsInlinePlayback:yv(!1,a.playsinline);h=this.isMobile&&
TG&&null!=UG&&0<UG&&2.3>=UG;f=b?b.useNativeControls:a.use_native_controls;this.J=g.QG(this)&&this.isMobile;d=this.isMobile&&!this.J;f=g.VG(this)||!h&&yv(d,f)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?f:"0";this.Tf=this.isMobile;this.color=zv("red",b?b.progressBarColor:a.color,nBa);this.Om="3"===this.controlsType||yv(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.pc=!this.u;this.fk=(f=!this.pc&&!SG(this)&&!this.Z&&!this.I&&!RG(this))&&!this.Om&&
"1"===this.controlsType;this.od=g.WG(this)&&f&&"0"===this.controlsType&&!this.fk;this.cn=this.Pm=h;this.Dc=("3"===this.controlsType||this.isMobile||yv(!1,a.use_media_volume))&&!this.J;this.ql=XG&&!g.zc(601)?!1:!0;this.Im=this.u||!1;this.Ac=SG(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Bv("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.D||yv(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.yb=this.N("enable_cast_for_web_unplugged")&&
g.YG(this)&&h||this.N("enable_cast_on_music_web")&&g.ZG(this)&&h||l&&h&&"1"===this.controlsType&&!this.isMobile&&(SG(this)||g.WG(this)||"profilepage"===this.Ka)&&!g.$G(this);this.Sm=!!window.document.pictureInPictureEnabled||aF();l=b?!!b.supportsAutoplayOverride:yv(!1,a.autoplayoverride);this.hk=!this.isMobile&&!hv("nintendo wiiu")||l;l=b?!!b.enableMutedAutoplay:yv(!1,a.mutedautoplay);h=this.N("embeds_enable_muted_autoplay")&&g.QG(this);this.Jj=l&&h&&this.Ba&&!g.VG(this);l=(SG(this)||RG(this))&&"blazer"===
this.playerStyle;this.Hh=b?!!b.disableFullscreen:!yv(!0,a.fs);this.kb=!this.Hh&&(l||g.Fz());this.Vk=this.N("uniplayer_block_pip")&&(iv()&&Mo(58)&&!tv()||pv);l=g.QG(this)&&!this.il;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Yc=l||yv(!this.I,m);this.dk=yv(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.T=tv()&&0<UG&&4.4>=UG?"_top":"_blank";this.Sf="profilepage"===this.Ka;this.Hj=yv("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m=
"bl";break;case "gmail":m="gm";break;case "gac":m="ga";break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Oa=m;this.authUser=Bv("",b?b.authorizedUserIndex:a.authuser);this.Ve=g.QG(this)&&(this.Xa||!Pma()||this.wc);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):
n=a.showwatchlater;this.Cm=((m=!this.Ve)||!!this.authUser&&m)&&yv(!this.Z,this.D?n:void 0);this.Ng=b?b.isMobileDevice||!!b.disableKeyboardControls:yv(!1,a.disablekb);this.loop=yv(!1,a.loop);this.pageId=Bv("",b?b.initialDelegatedSessionId:a.pageid);this.Rm=yv(!0,a.canplaylive);this.Vb=yv(!1,a.livemonitor);this.disableSharing=yv(this.I,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.Gg(n,m))):n=null;this.rl=n;this.mute=b?!!b.startMuted:yv(!1,a.mute);this.storeUserVolume=!this.mute&&yv("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:zv(void 0,n,aH);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":Bv("",a.cc_lang_pref);n=zv(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,
aH);"3"===this.controlsType&&2===n&&(n=3);this.ib=n;this.Jg=b?b.hl||"en_US":Bv("en_US",a.hl);this.region=b?b.contentRegion||"US":Bv("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Bv("en",a.host_language);this.Dm=!this.Xa&&Math.random()<g.YF(this.experiments,"web_player_api_logging_fraction");this.Wa=!this.Xa;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.rd=Av(this.rd,a.ismb);this.Km?(n=a.vss_host||"s.youtube.com","s.youtube.com"===n&&(n=bH(this.ya)||
"www.youtube.com")):n="video.google.com";this.ul=n;cH(this,a,!0);this.oa=new fG;g.L(this,this.oa);m=b?b.innertubeApiKey:Bv("",a.innertube_api_key);l=b?b.innertubeApiVersion:Bv("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:Bv("",a.innertube_context_client_version);m=g.uu("INNERTUBE_API_KEY")||m;l=g.uu("INNERTUBE_API_VERSION")||l;h=g.uu("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");f=dH(this);d="number"===typeof this.deviceParams.c?Number(this.deviceParams.c):Object.keys(oBa).indexOf(this.deviceParams.c);
this.Qi={innertubeApiKey:m,innertubeApiVersion:l,FD:h,mJ:f,OQ:d,innertubeContextClientVersion:g.uu("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,oJ:this.hostLanguage,nJ:this.region,PQ:g.uu("INNERTUBE_HOST_OVERRIDE")||"",QQ:!!g.uu("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),pJ:!!g.uu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.ll=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new cG(this.experiments,this.N("html5_force_hfr_support")?!0:eH(this)||lv()||Sma()||pBa(this),g.ZE&&g.zc(56)||
g.XF&&g.zc(54)||pBa(this));n=this.rd;m=new eBa;g.fH(this)&&(m.C=!0,m.D=.1);n&&(m.u=n/8);m.B=480<=KF();this.schedule=new bBa(m);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:yv(!1,a.enable_safety_mode);p=this.Ma?!1:SG(this)&&"blazer"!==this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.Dd=yv(p,!this.Z&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:yv(!1,a.send_visitor_id_header);var r;"docs"===this.playerStyle&&(b?
r=b.disableNativeContextMenu:r=a.disable_native_context_menu);this.disableNativeContextMenu=yv(!1,r);this.Gm=eH(this)&&this.N("enable_skip_intro_button");this.embedConfig=Bv("",b?b.serializedEmbedConfig:a.embed_config);this.ea=Ev(a,g.QG(this));this.j="EMBEDDED_PLAYER_MODE_PFL"===this.ea;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.Mb=yv(!1,a.full_window);this.Ye=!g.YG(this)&&!gH(this)&&!g.$G(this)&&!0;var w;this.livingRoomAppMode=zv("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||
(null==b?void 0:null==(w=b.device)?void 0:w.livingRoomAppMode),qBa);var y;q=Av(NaN,null==b?void 0:null==(y=b.device)?void 0:y.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground=b?!!b.transparentBackground:yv(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:yv(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:yv(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:yv(!1,a.use_miniplayer_ui);
this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=yv(!1,a.showbackbutton);var z;this.gk=null!=(z=a.show_loop_video_toggle)?z:!0;this.Nm=1E-4>Math.random();this.Si=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new $Aa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.ke=new gBa;g.L(this,this.ke);this.Wk=yv(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.uu("DATASYNC_ID");
this.Mm=g.uu("LOGGED_IN",!1);this.Lg=(null==b?void 0:b.allowWoffleManagement)||!1;this.Pk=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.N("html5_high_res_logging_always")?this.C=!0:this.C=100*Math.random()<(g.YF(this.experiments,"html5_ultra_high_res_logging_percent")||g.YF(this.experiments,"html5_high_res_logging_percent"));this.N("html5_ping_queue")&&(this.Gj=new HAa);this.Nk=g.YF(this.experiments,"html5_defer_modules_delay_time_millis")};
g.iH=function(a){a=g.YF(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<rBa.length?rBa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
cH=function(a,b,c){c=void 0===c?!1:c;a.Fd=Bv(a.Fd,b.video_id);a.Sa=Bv(a.Sa,b.eventid);a.Sa&&(eA=a.Sa);for(var d=[],e=g.t(Object.keys(sBa)),f=e.next();!f.done;f=e.next()){f=sBa[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.Nm&&(d.sort(),g.aA(new g.Yv("Player client parameters changed after startup",d)));a.userAge=Av(a.userAge,b.user_age);a.Pj=Bv(a.Pj,b.user_display_email);a.userDisplayImage=Bv(a.userDisplayImage,b.user_display_image);g.$A(a.userDisplayImage)||
(a.userDisplayImage="");a.userDisplayName=Bv(a.userDisplayName,b.user_display_name);a.Kg=Bv(a.Kg,b.user_gender);a.csiPageType=Bv(a.csiPageType,b.csi_page_type);a.csiServiceName=Bv(a.csiServiceName,b.csi_service_name);a.Hj=yv(a.Hj,b.enablecsi);a.pageId=Bv(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Xe=b.living_room_session_po_token.toString())};
jH=function(a,b){return!a.I&&iv()&&Mo(55)&&"3"===a.controlsType&&!b};
g.kH=function(a){a=bH(a.ya);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.lH=function(a){return g.$G(a)?"music.youtube.com":g.kH(a)};
mH=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
nH=function(a){return SG(a)&&!g.YG(a)};
g.VG=function(a){return XG&&!a.jl||hv("nintendo wiiu")?!0:!1};
g.$G=function(a){return"music-embed"===a.playerStyle};
dH=function(a){return a.deviceParams.c};
g.fH=function(a){return/^TVHTML5/.test(dH(a))?!0:"TV"===a.deviceParams.cplatform};
iBa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===dH(a)};
pBa=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.oH=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
eH=function(a){return/web/i.test(dH(a))};
g.pH=function(a){return"WEB"===dH(a).toUpperCase()};
gH=function(a){return"WEB_KIDS"===dH(a)};
g.YG=function(a){return"WEB_UNPLUGGED"===dH(a)};
qH=function(a){return"TVHTML5_UNPLUGGED"===dH(a)};
g.rH=function(a){return g.YG(a)||"TV_UNPLUGGED_CAST"===dH(a)||qH(a)};
g.ZG=function(a){return"WEB_REMIX"===dH(a)};
g.sH=function(a){return"WEB_EMBEDDED_PLAYER"===dH(a)};
g.uH=function(a){return(a.deviceIsAudioOnly||!g.ZE||pv||"3"===a.controlsType?!1:g.rv?a.u&&g.zc(51):!0)||(a.deviceIsAudioOnly||!g.XF||pv||"3"===a.controlsType?!1:g.rv?a.u&&g.zc(48):g.zc(38))||(a.deviceIsAudioOnly||!g.OG||pv||"3"===a.controlsType?!1:g.rv?a.u&&g.zc(37):g.zc(27))||!a.deviceIsAudioOnly&&g.tH&&!ov()&&g.zc(11)||!a.deviceIsAudioOnly&&g.qw&&g.zc("604.4")};
tBa=function(a){if(g.WG(a)&&TG)return!1;if(g.XF){if(!g.zc(47)||!g.zc(52)&&g.zc(51))return!1}else if(g.qw)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
SG=function(a){return"detailpage"===a.Ka};
g.WG=function(a){return"embedded"===a.Ka};
vH=function(a){return"leanback"===a.Ka};
RG=function(a){return"adunit"===a.Ka||"gvn"===a.playerStyle};
g.QG=function(a){return a.u&&g.WG(a)&&!RG(a)&&!a.I};
wH=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.aA(new g.Yv("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.xH=function(a){var b=g.lH(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&uBa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.yH=function(a,b){b=void 0===b?"":b;if(a.N("html5_use_oauth_callback")&&a.al){var c,d=new LG;a.al(function(e,f){f?(g.aA(new g.Yv("b189348328_oauth_callback_failed",{error:f})),c=b):void 0===e?(g.aA(new g.Yv("b189348328_oauth_callback_failed",{error:Error("No oauthToken or error provided by getAppOauthToken")})),c=b):c=e;d.resolve(c)});
return void 0!==c?bv(c):new $u(d)}return bv(b)};
bH=function(a){var b=g.fi(a);return(a=Number(g.ei(4,a))||null)?b+":"+a:b};
zH=function(a){var b=[];if(a){a=g.t(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.t(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(";")};
AH=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
BH=function(a){return 1===a||2===a};
CH=function(a,b){b=void 0===b?0:b;if(a instanceof AH)return a;a=a&&a instanceof Error?a:Error(""+a);BH(b)?g.$z(a):g.aA(a);return new AH(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
DH=function(a){this.j=a};
EH=function(a,b,c){if(c)return av();c={};var d=XE();b=g.t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.Qg().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].Qg().me())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.t(KE);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?bv(a):av()};
vBa=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.j=""};
wBa=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Mc)?void 0:d.getId())===b});
a.j=b};
FH=function(a,b,c){a.cpn&&(b=g.ti(b,{cpn:a.cpn}));c&&(b=g.ti(b,{p6a:c}));return b};
xBa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
yBa=function(a){for(var b=[],c=[],d=g.t(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.u=b.concat(c)};
zBa=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.Ox=a.Ox;this.Gd=a.Gd||"";this.Mc=a.Mc;this.audioChannels=a.audioChannels;this.j=""};
ABa=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.t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new g.VE(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new zBa({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,Ox:n?l[n]:void 0,Gd:f.drm_families,Mc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
GH=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
BBa=function(a,b){if(!(pv||mv()||kv()))return null;a=ABa(b,a.N("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.t(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.t(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Mc&&(f=h.Mc.getId(),c[f]||(h=new g.cC(f,h.Mc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
GBa=function(a,b,c,d,e,f,h){if(!(pv||mv()||kv()))return av();var l={},m=CBa(c),n=ABa(c,a.N("html5_filter_fmp4_in_hls"),a.B.D,l);if(!n)return h({noplst:1}),av();DBa(n);c={};var p=(c.fairplay="https://web.archive.org/web/20221116135136/https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],w=[],y=null,z="";d=d&&d.match(/hls_timedtext_playlist/)?new zBa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Mc:new g.VE("English","en",!1)}):null;for(var B=g.t(Object.keys(n)),D=B.next();!D.done;D=B.next())if(D=D.value,!a.N("html5_disable_drm_hfr_1080")||
"383"!==D&&"373"!==D){D=g.t(n[D]);for(var G=D.next();!G.done;G=D.next())if(G=G.value,G.width){for(var E=g.t(G.u),J=E.next();!J.done;J=E.next())if(J=J.value,n[J]){G.j=J;break}G.j||(G.j=EBa(n,G));if(E=n[G.j])if(c.push(G),"fairplay"===G.Gd&&(q=p),J="","PQ"===G.Ox?J="smpte2084":"HLG"===G.Ox&&(J="arib-std-b67"),J&&(z=J),w.push(FBa(E,[G],d,f,G.itag,G.width,G.height,G.fps,m,void 0,void 0,q,J)),!y||G.width*G.height*G.fps>y.width*y.height*y.fps)y=G}else r.push(G)}else l[D]="disdrmhfr";w.reduce(function(M,
P){return P.Qg().isEncrypted()&&M},!0)&&(q=p);
e=Math.max(e,0);p=y||{};n=void 0===p.fps?0:p.fps;y=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.N("html5_native_audio_track_switching");w.push(FBa(r,c,d,f,"93",y,p,n,m,"auto",e,q,z,B));Object.entries(l).length&&h(l);return EH(a.B,w,jH(a,b))};
FBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){for(var y=0,z="",B=g.t(a),D=B.next();!D.done;D=B.next())D=D.value,z||(z=D.itag),D.audioChannels&&D.audioChannels>y&&(y=D.audioChannels,z=D.itag);e=new NE(e,"application/x-mpegURL",{audio:new GE(0,y),video:new JE(f,h,l,null,void 0,n,void 0,r),Gd:q,ER:z});a=new vBa(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new GH(e,a,m)};
CBa=function(a){a=g.t(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};
EBa=function(a,b){for(var c=g.t(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Gd===b.Gd&&!e.audioChannels)return d}return""};
DBa=function(a){for(var b=new Set,c=g.t(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.t(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.t(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
HH=function(a,b){this.j=a;this.u=b};
HBa=function(a,b,c,d){var e=[];c=g.t(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.yC(h.url,!0);if(h.s){var l=h.sp,m=Wxa(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.t(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=UE(h.type,h.quality,h.itag,h.width,h.height);e.push(new HH(h,f))}}return EH(a.B,e,jH(a,b))};
IH=function(a,b){this.j=a;this.u=b};
IBa=function(a,b,c){var d=[];c=g.t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=UE(e.type,"medium","0");d.push(new IH(f,e.url))}return EH(a.B,d,jH(a,b))};
KBa=function(a){return a&&JBa[a]?JBa[a]:null};
g.JH=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;this.xtags=a.xtags||""};
g.LH=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.KH(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.xtags&&(b.xtags=a.xtags);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.MH=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.KH=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("")};
OBa=function(a,b,c,d){a||(a=b&&LBa.hasOwnProperty(b)&&MBa.hasOwnProperty(b)?MBa[b]+"_"+LBa[b]:void 0);b=a;if(!b)return null;a=b.match(NBa);if(!a||5!==a.length)return null;if(a=b.match(NBa)){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};
NH=function(a,b){for(var c={},d=g.t(Object.keys(PBa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.$A(f)&&(c[PBa[e]]=f)}return c};
OH=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.t(Object.keys(QBa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=QBa[e];for(var f=g.t(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=RBa(h.url);g.$A(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=RBa(a.url),g.$A(a)&&(b["maxresdefault.jpg"]=a));return b};
RBa=function(a){return a.startsWith("//")?"https:"+a:a};
PH=function(a){return a&&a.baseUrl||""};
QH=function(a){a=g.Iu(a);for(var b=g.t(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};
SBa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.tj=b)};
UBa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.t(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=TBa(d.baseUrl);if(!e)return;d=new g.JH({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.jB(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.CH=b.audioTracks||[];a.dP=b.defaultAudioTrackIndex||0;a.DH=b.translationLanguages?g.Vd(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.jB(f.languageName)}}):
[];
a.wC=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
XBa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.N(h,VBa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.N(h,WBa))return Object.assign({is_yto_interstitial:!0},Gu(h))});
d=g.t(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,qm:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,qm: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,
qm:0===f?5:7})}}};
YBa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
ZBa=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)};
RH=function(a,b){this.type=a||"";this.id=b||""};
g.SH=function(a){return new RH(a.substr(0,2),a.substr(2))};
g.TH=function(a,b){this.u=a;this.author="";this.jz=null;this.playlistLength=0;this.j=this.sessionData=null;this.ea={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Eu(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.ea=NH(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new RH("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.SH(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.UH=function(a,b){this.j=a;this.Xp=this.author="";this.jz=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Ct=this.lengthText="";this.sessionData=null;this.ea={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Xp=b.Xp||"";if(a=b.endscreen_autoplay_session_data)this.jz=Eu(a,"&");this.kz=b.kz;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.Ct=b.Ct||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Eu(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.ea=NH(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
$Ba=function(a,b,c,d){d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){var e,f,h,l,m=null==(e=b.autoplay)?void 0:null==(f=e.autoplay)?void 0:null==(h=f.sets)?void 0:null==(l=h[0])?void 0:l.autoplayVideo;m&&((e=m.clickTrackingParams)&&(d.itct=e),e=g.N(m,g.VH))&&(a.UO=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.jz=d};
aCa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
WH=function(){var a=bCa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=hla.apply(null,[ila.apply(null,g.u(b))].concat(g.u(c)));this.store=kla(a,void 0,b)};
g.XH=function(a,b,c){for(var d=Object.assign({},a),e=g.t(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.u(h),g.u(l)):l;else if(!Array.isArray(l)&&g.Ma(l)&&!Array.isArray(h)&&g.Ma(h))d[f]=g.XH(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Yv("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,o6a:h,updateValue:l}),g.$z(b),
a}return d};
YH=function(a){this.j=a;this.pos=0;this.u=-1};
ZH=function(a){var b=MC(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=MC(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
$H=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=ZH(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:ZH(a);break;case 1:a.pos+=8;break;case 2:d=ZH(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
aI=function(a,b){if($H(a,b))return ZH(a)};
cCa=function(a,b){if($H(a,b))return!!ZH(a)};
bI=function(a,b){if($H(a,b)){b=ZH(a);var c=LC(a.j,a.pos,b);a.pos+=b;return c}};
cI=function(a,b){if(a=bI(a,b))return g.SC(a)};
dCa=function(a,b,c){if(a=bI(a,b))return c(new YH(new GC([a])))};
dI=function(a,b){a=a instanceof Uint8Array?new GC([a]):a;return b(new YH(a))};
eCa=function(){this.pos=0;this.u=[];this.j=new Uint8Array(4096);this.view=new DataView(this.j.buffer)};
eI=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.j.subarray(0,a.pos));a.j=b;a.view=new DataView(a.j.buffer)}};
fI=function(a,b){if(268435455<b){eI(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(eI(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
gI=function(a,b,c){void 0!==c&&(fI(a,b<<3|0),fI(a,c))};
hI=function(a,b,c){void 0!==c&&gI(a,b,c?1:0)};
iI=function(a,b,c){void 0!==c&&(fI(a,b<<3|2),b=c.length,fI(a,b),eI(a,b),a.j.set(c,a.pos),a.pos+=b)};
jI=function(a,b,c){void 0!==c&&(fCa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),eI(a,1.2*c.length),b=UC(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(eI(a,b),b=UC(c,a.j.subarray(a.pos))),a.pos+=b,gCa(a))};
fCa=function(a,b,c){c=void 0===c?2:c;fI(a,b<<3|2);a.u.push(a.pos);a.u.push(c);a.pos+=c};
gCa=function(a){for(var b=a.u.pop(),c=a.u.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
kI=function(a,b,c,d,e){c&&(fCa(a,b,void 0===e?3:e),d(a,c),gCa(a))};
lI=function(a,b){var c=new eCa;b(c,a);return new Uint8Array(c.j.buffer,0,c.pos)};
g.mI=function(a){var b=new YH(new GC([Dc(decodeURIComponent(a))]));a=cI(b,2);b=aI(b,4);var c=hCa[b];if("undefined"===typeof c)throw a=new g.Yv("Failed to recognize field number",{name:"EntityKeyHelperError",Q5a:b}),g.$z(a),a;return{fZ:b,entityType:c,entityId:a}};
g.nI=function(a,b){var c=new eCa;iI(c,2,iya(a));a=iCa[b];if("undefined"===typeof a)throw b=new g.Yv("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.$z(b),b;gI(c,4,a);gI(c,5,1);b=new Uint8Array(c.j.buffer,0,c.pos);return encodeURIComponent(g.Bc(b))};
oI=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
jCa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.XH(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
kCa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.$z(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.$z(new g.Yv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.mf(e.payload);
return oI(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.mI(e).entityType;l=oI(d,m,e)}catch(q){if(q instanceof Error)g.$z(new g.Yv("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.$z(new g.Yv("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.mf(e.payload);var n,p;return jCa(d,l,e.entityKey,e.payload[l],
null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return oI(a,c.entityType,c.key,c.eZ);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return oI(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,jCa(a,c.entityType,c.key,c.eZ,c.i6a);default:return a}};
mCa=function(a,b){var c=g.Ga("ytDebugData.callbacks");c||(c={},g.Ea("ytDebugData.callbacks",c));if(g.wu("web_dd_iu")||lCa.includes(a))c[a]=b};
pI=function(a){this.j=new Qo(a)};
nCa=function(){if(void 0===qI){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.$o(g.Zv()+"::yt-player"))){qI=new pI(a);break a}qI=void 0}}return qI};
g.rI=function(){var a=nCa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.oCa=function(a){var b=nCa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.sI=function(a){return g.rI()[a]||0};
g.tI=function(a,b){var c=g.rI();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.oCa(c))};
g.uI=function(a){return g.A(function(b){return b.return(g.Nw(pCa(),a))})};
wI=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,w;return g.A(function(y){switch(y.j){case 1:return m=g.sI(a),4===m?y.return(4):g.x(y,g.Uw(),2);case 2:n=y.u;if(!n)throw g.tw("wiac");if(!l||void 0===h){y.Ja(3);break}return g.x(y,qCa(l,h),4);case 4:h=y.u;case 3:return p=c.lastModified||"0",g.x(y,g.uI(n),5);case 5:return q=y.u,g.qa(y,6),vI++,g.x(y,g.Dw(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Sb:!0},function(z){if(void 0!==f&&void 0!==h){var B=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");B=g.Ew(z.objectStore("media"),h,B)}else B=g.vw.resolve(void 0);var D=rCa(a,b.isVideo()),G=rCa(a,!b.isVideo()),E={fmts:sCa(d),format:c||{}};D=g.Ew(z.objectStore("index"),E,D);var J=-1===d.downloadedEndTime;E=J?z.objectStore("index").get(G):g.vw.resolve(void 0);var M={fmts:"music",format:{}};z=J&&e&&!b.isVideo()?g.Ew(z.objectStore("index"),M,G):g.vw.resolve(void 0);return g.vw.all([z,E,B,D]).then(function(P){P=g.t(P);P.next();P=P.next().value;vI--;var X=g.sI(a);if(4!==X&&J&&e||void 0!==P&&g.tCa(P.fmts))X=
1,g.tI(a,X);return X})}),8);
case 8:return y.return(y.u);case 6:r=g.sa(y);vI--;w=g.sI(a);if(4===w)return y.return(w);g.tI(a,4);throw r;}})};
g.uCa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.x(d,g.Uw(),2);if(3!=d.j){b=d.u;if(!b)throw g.tw("ri");return g.x(d,g.uI(b),3)}c=d.u;return d.return(g.Dw(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
xCa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){if(1==m.j)return g.x(m,g.Uw(),2);if(3!=m.j){f=m.u;if(!f)throw g.tw("rc");return g.x(m,g.uI(f),3)}h=m.u;l=g.Dw(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Sb:vCa},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return wCa(e,n)}).catch(function(n){throw new g.Yv("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.tCa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
rCa=function(a,b){return""+a+"|"+(b?"v":"a")};
sCa=function(a){var b={};return Fu((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
zCa=function(a){var b={},c={};a=g.t(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.yCa)?(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.t(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
ACa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.CB=AG(a.ustreamerConfig)||void 0)};
xI=function(a){g.Mz.call(this);this.j=null;this.B=new gla;this.j=null;this.J=new Set;this.D=a||""};
BCa=function(a,b,c){for(c=yI(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(zI(d,b))&&(d=g.AI(d,b)))return d;c--}return g.AI(a.levels[0],b)};
DCa=function(a,b,c){c=yI(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=zI(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),fla(d.B,f,{jR:f,yR:e}))}CCa(a)};
CCa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=ECa(a,b)}};
ECa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.jR].Ge(b.yR);c.onload=function(){var d=b.jR,e=b.yR;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);CCa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.YB()-1);e=[e,d];a.ma("l",e[0],e[1])};
return c};
g.BI=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};
zI=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.AI=function(a,b){b>=a.xG()&&a.Zu();var c=zI(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Zu()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.Ge(c),column:b,columns:h,row:e,rows:d,oA:a.width*h,Gt:a.height*d}};
CI=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;xI.call(this,c);this.isLive=d;this.T=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
FCa=function(a,b,c){return(a=a.levels[b])?a.ZB(c):-1};
yI=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};
DI=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.BI.call(this,a,b,c,0);this.u=null;this.D=d?2:0};
EI=function(a,b,c,d){CI.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].UN(c)};
GCa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.ti(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.GI=function(a,b){g.Mz.call(this);this.u=a;this.adModule=!1;this.adaptiveFormats="";this.aN=this.ul=this.adQueryId=this.Sx=null;this.sM={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.Gd=null;this.TF=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Xa="";this.HM=this.Tx=!1;this.jP=null;this.Ye=this.Si=this.wt=this.UG=!1;this.I=null;this.gO=this.Nk=!1;this.We=NaN;this.fl=!1;this.dL=0;this.XM=!1;this.vv={};this.IM=this.cycToken=
null;this.author="";this.ZJ=0;this.Bm=!1;this.MJ=null;this.SF=[];this.Gs=this.RF=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.ke=this.Od="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Mb=0;this.fk=this.Ma=this.B=null;this.IG="";this.Oa=!1;this.rd=this.ql=0;this.FM=this.pipable=this.Dp=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Vb=this.isShortsEligible=
this.isPrivate=this.isListed=this.MG=this.hO=this.mutedAutoplay=this.Nn=!1;this.XG="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.PG=this.Yc=this.He=!1;this.latencyClass="UNKNOWN";this.tO=this.FO=this.KG=this.enablePreroll=this.enableServerStitchedDai=this.Oe=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Ac=0;this.reloadReason="";this.SG=this.WO=this.Gj=!1;this.keywords={};this.pc="";this.Jm=0;this.Ev=
!1;this.liveChunkReadahead=NaN;this.al=null;this.Ex=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.uO=this.paygated=!1;this.Ek=[];this.Pk=!1;this.Ba=[];this.QF=null;this.QM=this.racyCheckOk=!1;this.JR={};this.aB=0;this.C=null;this.autonavState=1;this.UO=null;this.shortDescription="";this.Wa=this.eL=!1;this.Cv=this.Dc=this.startSeconds=0;this.Fv=this.mO=this.ek=FI;this.vl=this.suggestions=null;this.Kx=this.Qx=void 0;this.ll=null;this.GM=!1;this.expandedSubtitle=this.expandedTitle=
this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.PF=void 0;this.suggestedActions=[];this.Ju=void 0;this.Le=[];this.Hj=[];this.hlsFormats=this.dk="";this.qv=this.Bv=this.Pj=this.zd=this.qb=this.Om=this.hv=null;this.mj="vvt";this.Sf=!1;this.WF=null;this.kO="";this.At=NaN;this.Qt=this.AD=this.jt=this.RC=this.Lv=this.gk=this.cn=this.SD=this.xt=this.RD="";this.hk=null;this.OM=!1;this.T={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.zO=this.vO=NaN;this.Mg=this.Im=
this.Jg=this.EO=this.BO=!1;this.Qm=!0;this.ea={};this.captionTracks=[];this.CH=[];this.dP=0;this.DH=[];this.wC=!1;this.qO={};this.Cm=new g.cC("und",new g.VE("Default","und",!0));this.WG=0;this.Z=null;this.xv=[];this.bG=!1;this.Tf=[];this.Gv=this.Dd="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.aH=this.playerResponse=this.sO=this.wv=this.Em=this.hh=this.aG=this.EM=this.bM=null;this.Lu=!1;this.oa=null;this.isInlinePlaybackNoAd=this.Vk=this.useCobaltWidevine=this.VM=this.Jw=!1;
this.YF=!0;this.Ve=this.Lg=NaN;this.defraggedFromSubfragments=this.Bn=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.TK=this.UF=this.Qi=!1;this.interstitials=[];this.D=this.OG=!1;this.ib="";this.allowImaMonetization=!1;this.Gc=this.Mm=this.HQ="";this.kb=this.DO=!1;this.Hh=0;this.nQ=this.Sm="";this.tI=this.bH=this.JG=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Rm=!1;this.jl=this.Jj=!0;this.errorDetail=this.userGenderAge=
"";this.KM=this.OF=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Dl=this.errorReason=this.errorCode=null;this.Iu=this.Hu="";this.Dm=!1;this.ix=[];this.Fd=this.wc=this.od=this.jg=this.De=0;this.fetchType=null;this.aT=!0;this.transitionEndpointAtEndOfStream=void 0;this.NF=this.jO=-1;this.il=this.Xe=!1;this.Wk=null;this.Sa="";this.Fm=!1;this.watchUrl=null;this.ov=[];this.visibleOnLoadKeys=[];
this.YM=[];this.inlineMetricEnabled=this.Km=!1;this.embedsRctn=this.embedsRct="";this.CO=NaN;this.QG=!1;this.Xe=this.N("web_new_autonav_countdown");this.il=this.N("web_new_big_thumbnail_endscreen");HCa(this,b);this.Ku=new kC;g.L(this,this.Ku)};
g.JI=function(a,b,c){b&&b.cpn&&g.aA(new g.Yv("CPN provided in VideoData update",{l6a:b.cpn,Gh:a.clientPlaybackNonce,S5a:c}));c?(Dv(b),HCa(a,b),HI(a)&&II(a)):(b=b||{},ICa(a,b),JCa(a,b),KCa(a,b),a.ma("dataupdated"))};
KCa=function(a,b){a.fflags=Bv(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Xa=aB(c));a.Tx=yv(a.Tx,b.iv_ads_only);a.HM=yv(a.HM,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.GX=c;a.isPharma=yv(a.isPharma,b.is_pharma);a.author=Bv(a.author,b.author);a.Od=TBa(b.ttsurl)||a.Od;a.Bm=yv(a.Bm,b.cc_asr);a.ke=Bv(a.ke,b.channel_path);a.channelBanner=Bv(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.profilePicture=Bv(a.profilePicture,c);a.videoCountText=Bv(a.videoCountText,b.video_count_text);
a.autonavState=zv(a.autonavState,b.autonav_state,LCa);a.clientPlaybackNonce=Bv(a.clientPlaybackNonce,b.cpn);a.subscribed=yv(a.subscribed,b.subscribed);a.rawViewCount=Av(a.rawViewCount,b.view_count);a.shortViewCount=Bv(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=Bv(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=Bv(a.lengthText||"",b.lengthText);a.Ct=Bv(a.Ct||"",b.Ct);a.Xp=Bv(a.Xp||"",b.Xp);a.title=Bv(a.title,b.title);a.subtitle=Bv(a.subtitle,b.subtitle);a.expandedTitle=
Bv(a.expandedTitle,b.expanded_title);a.expandedSubtitle=Bv(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=Bv(a.ariaLabel,b.aria_label);a.ypcPreview=Bv(a.ypcPreview,b.ypc_preview);a.ZF=Bv(a.ZF,b.ypc_origin);a.Sf=yv(a.Sf,b.ypc_is_premiere_trailer);a.Sm=Bv(a.Sm,b.ypc_clickwrap_message);a.paygated=yv(a.paygated,b.paygated);a.OM=yv(a.OM,b.requires_purchase);a.showShareButton=!yv(!a.showShareButton,b.ss);a.Jj=yv(a.Jj,b.showwatchlater);a.jl=yv(a.jl,b.shownotifybutton);a.Rm=yv(a.Rm,b.copy_share);if(c=
b.el)a.eventLabel=c;if(c=b.keywords)a.keywords=MCa(c.split(","));if(c=b.rvs)a.suggestions=Hu(c).map(function(d){return d.playlist||d.list||d.api?new g.TH(a.u,d):new g.UH(a.u,d)}),a.N("web_player_decouple_autonav")||(a.vl=a.suggestions[0]);
a.contentCheckOk=yv(a.contentCheckOk,b.cco);a.racyCheckOk=yv(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=yv(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=Bv(a.oauthToken,b.oauth_token);a.pc=Bv(a.pc,b.kpt);a.visitorData=Bv(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=Eu(c,"&");a.Nu=Bv(a.Nu,b.endscreen_ad_tracking_data);a.bN=yv(a.bN,b.wait_for_vast_info_cards_xml);a.tM=yv(a.tM,b.suppress_creator_endscreen);a.GO=yv(a.GO,b.is_trueview_action);a.ZM=Bv(a.ZM,b.tracking_list);
a.Hu=Bv(a.Hu,b.clip);a.Iu=Bv(a.Iu,b.clipt);NCa(a,b)};
HCa=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="auth");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.Dl=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.gA(16));a.Vb=yv(a.u.Vb,b.livemonitor);ICa(a,b);var h=b.raw_player_response;if(h)a.aH=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;
if(m)for(var n=g.t(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.Tx=!0);q.allowInPlaceSwitch&&(a.HM=!0);var r=q.loadPolicy;r&&(a.annotationsLoadPolicy=OCa[r]);var w=q.invideoUrl;w&&(a.Xa=aB(w));a.UG=!0;break}}var y=a.playerResponse.attestation;y&&SBa(a,y);var z=a.playerResponse.cotn;z&&(a.cotn=z);var B=a.playerResponse.heartbeatParams;if(B){var D=B.heartbeatToken;D&&(a.drmSessionId=B.drmSessionId||"",a.heartbeatToken=D,a.vO=Number(B.intervalMilliseconds),
a.zO=Number(B.maxRetries),a.BO=!!B.softFailOnError,a.EO=!!B.useInnertubeHeartbeatsForDrm,a.wt=!0);a.heartbeatServerData=B.heartbeatServerData;var G;a.fl=!(null==(G=B.heartbeatAttestationConfig)||!G.requiresAttestation)}var E=a.playerResponse.messages;E&&YBa(a,E);var J=a.playerResponse.multicamera;if(J){var M=J.playerLegacyMulticameraRenderer;if(M){var P=M.metadataList;P&&(a.nQ=P,a.Tf=Hu(P))}}var X=a.playerResponse.overlay;if(X){var W=X.playerControlsOverlayRenderer;if(W){var S=W.controlBgHtml;null!=
S?(a.ib=S,a.D=!0):(a.ib="",a.D=!1);if(W.mutedAutoplay){var ca=g.N(W.mutedAutoplay,PCa);if(ca&&ca.endScreen){var O=g.N(ca.endScreen,QCa);O&&O.text&&(a.HQ=g.jB(O.text))}}else a.mutedAutoplay=!1}}if(g.QG(a.u)&&a.u.N("embeds_web_enable_epm_dni_parity_fix")){var xa=a.V(),la;void 0!==(null==X?void 0:null==(la=X.playerControlsOverlayRenderer)?void 0:la.controlBgHtml)?xa.ea="EMBEDDED_PLAYER_MODE_PFP":"EMBEDDED_PLAYER_MODE_PFP"===xa.ea&&(xa.ea="EMBEDDED_PLAYER_MODE_DEFAULT")}var ta=a.playerResponse.playabilityStatus;
if(ta){var La=ta.backgroundability;La&&La.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var cb,va;if(null==(cb=ta.offlineability)?0:null==(va=cb.offlineabilityRenderer)?0:va.offlineable)a.offlineable=!0;var Ha=ta.contextParams;Ha&&(a.contextParams=Ha);var Xb=ta.pictureInPicture;Xb&&Xb.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ta.playableInEmbed&&(a.allowEmbed=!0);var kb=ta.ypcClickwrap;if(kb){var cc=kb.playerLegacyDesktopYpcClickwrapRenderer,Nc=kb.ypcRentalActivationRenderer;
if(cc)a.Sm=cc.durationMessage||"",a.Ye=!0;else if(Nc){var Yb=Nc.durationMessage;a.Sm=Yb?g.jB(Yb):"";a.Ye=!0}}var vb=ta.errorScreen;if(vb){if(vb.playerLegacyDesktopYpcTrailerRenderer){var Za=vb.playerLegacyDesktopYpcTrailerRenderer;a.Qt=Za.trailerVideoId||"";var qd=vb.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Rc=qd&&qd.ypcTrailerRenderer}else if(vb.playerLegacyDesktopYpcOfferRenderer)Za=vb.playerLegacyDesktopYpcOfferRenderer;else if(vb.ypcTrailerRenderer){Rc=vb.ypcTrailerRenderer;var $b=
Rc.fullVideoMessage;a.cn=$b?g.jB($b):"";var Bb,Dd;a.Qt=(null==(Bb=g.N(Rc,RCa))?void 0:null==(Dd=Bb.videoDetails)?void 0:Dd.videoId)||""}Za&&(a.jt=Za.itemTitle||"",Za.itemUrl&&(a.AD=Za.itemUrl),Za.itemBuyUrl&&(a.Lv=Za.itemBuyUrl),a.RC=Za.itemThumbnail||"",a.SD=Za.offerHeadline||"",a.xt=Za.offerDescription||"",a.gk=Za.offerId||"",a.RD=Za.offerButtonText||"",a.WF=Za.offerButtonFormattedText||null,a.At=Za.overlayDurationMsec||NaN,a.cn=Za.fullVideoMessage||"",a.Si=!0);if(Rc){var id=g.N(Rc,RCa);if(id)a.hk=
{raw_player_response:id};else{var hc=g.N(Rc,SCa);a.hk=hc?Gu(hc):null}a.Si=!0}}}var ac=a.playerResponse.playbackTracking;if(ac){var ob=b,Fb=PH(ac.googleRemarketingUrl);Fb&&(a.googleRemarketingUrl=Fb);var kc=PH(ac.youtubeRemarketingUrl);kc&&(a.youtubeRemarketingUrl=kc);var Ra=PH(ac.ptrackingUrl);if(Ra){var Oc=QH(Ra),pb=Oc.oid;pb&&(a.kR=pb);var Zb=Oc.pltype;Zb&&(a.xR=Zb);var Xd=Oc.ptchn;Xd&&(a.cR=Xd);var Ed=Oc.ptk;Ed&&(a.tv=encodeURIComponent(Ed));var qb=Oc.m;qb&&(a.Mu=qb)}var xc=PH(ac.ppvRemarketingUrl);
xc&&(a.ppvRemarketingUrl=xc);var Sc=PH(ac.qoeUrl);if(Sc){for(var uc=g.Iu(Sc),ud=g.t(Object.keys(uc)),vd=ud.next();!vd.done;vd=ud.next()){var je=vd.value,ue=uc[je];uc[je]=Array.isArray(ue)?ue.join(","):ue}a.lO=uc;var gb=uc.cat;gb&&(a.Mm=gb);var Ub=uc.live;Ub&&(a.XG=Ub);var ve=uc.drm_product;ve&&(a.TF=ve)}var $a=PH(ac.remarketingUrl);if($a){a.remarketingUrl=$a;var yb=QH($a);yb.foc_id&&(a.T.focEnabled=!0);var yc=yb.data;yc&&(a.T.rmktEnabled=!0,yc.engaged&&(a.T.engaged="1"));a.T.baseUrl=Nea($a)+ci(g.ei(5,
$a))}var Md=PH(ac.videostatsPlaybackUrl);if(Md){var Ob=QH(Md);a.je=Ob;var we=Ob.adformat;if(we&&(ob.adformat=we,!a.N("process_video_data_ad_format_in_player_tracking_killswitch"))){var vf=a.V(),Fd=OBa(we,a.Gv,vf.u,vf.D);Fd&&(a.adFormat=Fd)}var xe=Ob.aqi;xe&&(ob.ad_query_id=xe);var Sf=Ob.autoplay;Sf&&(a.Nn="1"==Sf,a.Dp="1"==Sf);var lc=Ob.autonav;lc&&(a.isAutonav="1"==lc);var We=Ob.delay;We&&(a.Mb=Pg(We));var Yc=Ob.ei;Yc&&(a.eventId=Yc);"adunit"===Ob.el&&(a.Nn=!0);var Ie=Ob.feature;Ie&&(a.Nm=Ie);var Tf=
Ob.list;Tf&&(a.playlistId=Tf);var Xe=Ob.of;Xe&&(a.cH=Xe);var pg=Ob.osid;pg&&(a.osid=pg);var Wa=Ob.referrer;Wa&&(a.referrer=Wa);var li=Ob.sdetail;li&&(a.Av=li);var mi=Ob.sourceid;mi&&(a.A3a=mi);var qg=Ob.ssrt;qg&&(a.Pm="1"==qg);var Tc=Ob.subscribed;Tc&&(a.subscribed="1"==Tc,a.T.subscribed=Tc);var jd=Ob.uga;jd&&(a.userGenderAge=jd);var rg=Ob.upt;rg&&(a.Dv=rg);var sg=Ob.vm;sg&&(a.videoMetadata=sg)}var ni=PH(ac.videostatsWatchtimeUrl);if(ni){var Je=QH(ni).ald;Je&&(a.Rx=Je)}if(ac.promotedPlaybackTracking){var kd=
ac.promotedPlaybackTracking;kd.startUrls&&(a.Lm=kd.startUrls);kd.firstQuartileUrls&&(a.yv=kd.firstQuartileUrls);kd.secondQuartileUrls&&(a.NJ=kd.secondQuartileUrls);kd.thirdQuartileUrls&&(a.aK=kd.thirdQuartileUrls);kd.completeUrls&&(a.AJ=kd.completeUrls);kd.engagedViewUrls&&(1<kd.engagedViewUrls.length&&g.aA(new g.Yv("There are more than one engaged_view_urls.")),a.Ng=kd.engagedViewUrls[0])}}var Uf=a.playerResponse.playerCueRanges;Uf&&0<Uf.length&&(a.cueRanges=Uf);a:{var Jh=a.playerResponse.adPlacements;
if(Jh)for(var oi=g.t(Jh),Kh=oi.next();!Kh.done;Kh=oi.next()){var pi=void 0,Vj=void 0,fl=null==(pi=Kh.value.adPlacementRenderer)?void 0:null==(Vj=pi.renderer)?void 0:Vj.videoAdTrackingRenderer;if(fl){var gl=fl;break a}}gl=null}var hl=gl;ac&&ac.promotedPlaybackTracking&&hl&&g.aA(new g.Yv("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));hl&&(a.uO=!0);var il=a.playerResponse.playerAds;if(il)for(var Wj=b,qi=g.t(il),ri=qi.next();!ri.done;ri=qi.next()){var Lh=ri.value;if(Lh){var Vf=
Lh.playerLegacyDesktopWatchAdsRenderer;if(Vf){var Wf=Vf.playerAdParams;if(Wf){"1"==Wf.autoplay&&(a.Nn=!0,a.Dp=!0);a.ul=Wf.encodedAdSafetyReason||null;void 0!==Wf.showContentThumbnail&&(a.Qm=!!Wf.showContentThumbnail);Wj.enabled_engage_types=Wf.enabledEngageTypes;break}}}}var ke=a.playerResponse.playerConfig;if(ke){var si=ke.manifestlessWindowedLiveConfig;if(si){var Em=Number(si.minDvrSequence),jl=Number(si.maxDvrSequence),ye=Number(si.minDvrMediaTimeMs),Ng=Number(si.maxDvrMediaTimeMs),lh=Number(si.startWalltimeMs);
Em&&(a.De=Em);ye&&(a.wc=ye/1E3);jl&&(a.jg=jl);Ng&&(a.od=Ng/1E3);lh&&(a.Fd=lh/1E3)}var Xf=ke.daiConfig;if(Xf){if(Xf.enableDai){a.Oe=!0;var Xj=Xf.enableServerStitchedDai;Xj&&(a.enableServerStitchedDai=Xj);var gj=Xf.enablePreroll;gj&&(a.enablePreroll=gj)}var kl;if("DAI_TYPE_SS_DISABLED"===Xf.daiType||(null==(kl=Xf.debugInfo)?0:kl.isDisabledUnpluggedChannel))a.KG=!0}var hj=ke.audioConfig;if(hj){var Fm=hj.loudnessDb;null!=Fm&&(a.We=Fm);hj.audioMuted&&(a.Nk=!0);hj.muteOnStart&&(a.gO=!0)}var xf=ke.playbackEndConfig;
if(xf){var ij=xf.endSeconds;ij&&a.mutedAutoplay&&(a.endSeconds=ij)}var Fa=ke.fairPlayConfig;if(Fa){var mE=Fa.certificate;mE&&(a.Ma=AG(mE));var wl=Number(Fa.keyRotationPeriodMs);0<wl&&(a.Pu=wl);var wq=Number(Fa.keyPrefetchMarginMs);0<wq&&(a.Ou=wq)}var xo=ke.playbackStartConfig;if(xo){a.tI=Number(xo.startSeconds);var yo=xo.liveUtcStartSeconds,Gt=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;yo&&!Gt&&(a.liveUtcStartSeconds=Number(yo));var Lx=xo.startPosition;if(Lx){var nE=Lx.utcTimeMillis;nE&&!Gt&&
(a.liveUtcStartSeconds=.001*Number(nE));var oE=Lx.streamTimeMillis;oE&&(a.Cv=.001*Number(oE))}a.progressBarStartPosition=xo.progressBarStartPosition;a.progressBarEndPosition=xo.progressBarEndPosition}else{var Mx=ke.skippableSegmentsConfig;if(Mx){var pE=Mx.introSkipDurationMs;pE&&(a.JG=Number(pE)/1E3);var Ca=Mx.outroSkipDurationMs;Ca&&(a.bH=Number(Ca)/1E3)}}var X4=ke.skippableIntroConfig;if(X4){var Kua=Number(X4.startMs),Lua=Number(X4.endMs);isNaN(Kua)||isNaN(Lua)||(a.Lg=Kua,a.Ve=Lua)}var Mua=ke.streamSelectionConfig;
Mua&&(a.rd=Number(Mua.maxBitrate));var Nua=ke.vrConfig;Nua&&(a.Jw="1"==Nua.partialSpherical);var qE=ke.webDrmConfig;if(qE){qE.skipWidevine&&(a.VM=!0);var Oua=qE.widevineServiceCert;Oua&&(a.fk=AG(Oua));qE.useCobaltWidevine&&(a.useCobaltWidevine=!0);qE.startWithNoQualityConstraint&&(a.Vk=!0)}var uO=ke.mediaCommonConfig;if(uO){var vO=uO.dynamicReadaheadConfig;if(vO){a.maxReadAheadMediaTimeMs=vO.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=vO.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=
vO.readAheadGrowthRateMs||NaN;var Pua,Qua=null==uO?void 0:null==(Pua=uO.mediaUstreamerRequestConfig)?void 0:Pua.videoPlaybackUstreamerConfig;Qua&&(a.QF=AG(Qua))}}var Rua=ke.inlinePlaybackConfig;Rua&&(a.YF=!!Rua.showAudioControls);var Y4=ke.embeddedPlayerConfig;if(Y4){var Z4=Y4.embeddedPlayerMode;if(Z4&&a.N("embeds_web_enable_player_response_embeds_mode")){var Sua=a.V();Sua.ea=Z4;Sua.j="EMBEDDED_PLAYER_MODE_PFL"===Z4}var Tua=Y4.isShortsExperienceEligible;void 0!==Tua&&(a.isShortsEligible=Tua)}}var xl=
a.playerResponse.streamingData;if(xl){var $4=xl.adaptiveFormats;if($4){var Uua=xl.streamingUrlTemplate;if(a.N("enable_streaming_url_template")&&Uua)for(var Vua=g.t($4),Uh=Vua.next();!Uh.done;Uh=Vua.next()){var wO=Uh.value;!wO.url&&wO.distinctParams&&(wO.url=Uua+"&"+wO.distinctParams)}var Wua=[],Xua=g.t($4);for(Uh=Xua.next();!Uh.done;Uh=Xua.next()){var md=Uh.value,Yua=Wua,S5a=Yua.push,a5=md.indexRange,b5=md.initRange,be={itag:md.itag,url:md.url,index:a5?a5.start+"-"+a5.end:"0-0",bitrate:md.bitrate,
init:b5?b5.start+"-"+b5.end:"0-0",type:md.mimeType,clen:md.contentLength,lmt:md.lastModified,xtags:md.xtags},xO=md.audioTrack;if(xO){var Zua=xO.displayName;Zua&&(be.name=Zua,be.audio_track_id=xO.id,xO.audioIsDefault&&(be.isDefault="1"))}var rE=md.captionTrack;rE&&(be.caption_display_name=rE.displayName,be.caption_vss_id=rE.vssId,be.caption_language_code=rE.languageCode,be.caption_kind=rE.kind);var yO=bC(md),T5a=yO.Hs,U5a=yO.uu,V5a=yO.s;yO.cJ&&(be.url=T5a,be.sp=U5a,be.s=V5a);var $ua=md.width,ava=md.height;
null!=$ua&&null!=ava&&(be.size=$ua+"x"+ava);var bva=md.fps;bva&&(be.fps=bva);var cva=md.type;cva&&(be.stream_type=cva);var dva=md.projectionType;dva&&(be.projection_type=dva);var eva=md.stereoLayout;eva&&(be.stereo_layout=Oza[eva]);var fva=md.spatialAudioType;fva&&(be.spatial_audio_type=fva);var gva=md.drmFamilies;if(gva){for(var hva=[],iva=g.t(gva),c5=iva.next();!c5.done;c5=iva.next())hva.push(xF[c5.value]);be.drm_families=hva.join(",")}var jva=md.qualityLabel;jva&&(be.quality_label=jva);var kva=
md.targetDurationSec;kva&&(be.target_duration_sec=kva);var lva=md.maxDvrDurationSec;lva&&(be.max_dvr_duration_sec=lva);var mva=md.audioSampleRate;mva&&(be.audio_sample_rate=mva);var nva=md.audioChannels;nva&&(be.audio_channels=nva);var ova=HE(md);ova&&(be.eotf=ova);var pva=md.colorInfo;if(pva){var qva=pva.primaries;if(qva){var rva=Pza[qva];rva&&(be.primaries=rva)}}md.isDrc&&(be.drc="1");var W5a=g.ji(be);S5a.call(Yua,W5a);var sva=md.loudnessDb;md.itag&&null!=sva&&(a.vv[md.itag.toString()]=sva)}a.adaptiveFormats=
Wua.join(",")}var d5=xl.formats;if(d5){var sE=[],tva=g.t(d5);for(Uh=tva.next();!Uh.done;Uh=tva.next()){var e5=Uh.value;sE.push(e5.itag+"/"+e5.width+"x"+e5.height)}a.IG=sE.join(",");sE=[];var uva=g.t(d5);for(Uh=uva.next();!Uh.done;Uh=uva.next()){var tE=Uh.value,uE={itag:tE.itag,type:tE.mimeType,quality:tE.quality},vva=tE.url;vva&&(uE.url=vva);var zO=bC(tE),X5a=zO.Hs,Y5a=zO.uu,Z5a=zO.s;zO.cJ&&(uE.url=X5a,uE.sp=Y5a,uE.s=Z5a);sE.push(g.ji(uE))}a.dk=sE.join(",")}var f5=xl.hlsFormats;if(f5){var wva=ke||
null,AO={};if(wva){var g5=wva.audioPairingConfig;if(g5&&g5.pairs)for(var xva=g.t(g5.pairs),h5=xva.next();!h5.done;h5=xva.next()){var yva=h5.value,i5=yva.videoItag;AO[i5]||(AO[i5]=[]);AO[i5].push(yva.audioItag)}}for(var zva={},Ava=g.t(f5),Ht=Ava.next();!Ht.done;Ht=Ava.next()){var Bva=Ht.value;zva[Bva.itag]=Bva.bitrate}var Cva=[],Dva=g.t(f5);for(Ht=Dva.next();!Ht.done;Ht=Dva.next()){var vi=Ht.value,Tm={itag:vi.itag,type:vi.mimeType,url:vi.url,bitrate:vi.bitrate,width:vi.width,height:vi.height,fps:vi.fps},
BO=vi.audioTrack;if(BO){var Eva=BO.displayName;Eva&&(Tm.name=Eva,Tm.audio_track_id=BO.id,BO.audioIsDefault&&(Tm.is_default="1"))}if(vi.drmFamilies){for(var Fva=[],Gva=g.t(vi.drmFamilies),j5=Gva.next();!j5.done;j5=Gva.next())Fva.push(xF[j5.value]);Tm.drm_families=Fva.join(",")}var CO=AO[vi.itag];if(CO&&CO.length){Tm.audio_itag=CO.join(",");var Hva=zva[CO[0]];Hva&&(Tm.bitrate+=Hva)}var Iva=HE(vi);Iva&&(Tm.eotf=Iva);vi.audioChannels&&(Tm.audio_channels=vi.audioChannels);Cva.push(g.ji(Tm))}a.hlsFormats=
Cva.join(",")}var k5=xl.licenseInfos;if(k5&&0<k5.length){for(var Jva={},Kva=g.t(k5),l5=Kva.next();!l5.done;l5=Kva.next()){var Lva=l5.value,Mva=Lva.drmFamily,Nva=Lva.url;Mva&&Nva&&(Jva[xF[Mva]]=Nva)}a.Gd=Jva}var Ova=xl.drmParams;Ova&&(a.drmParams=Ova);var Pva=xl.dashManifestUrl;Pva&&(a.yb=g.ti(Pva,{cpn:a.clientPlaybackNonce}));var Qva=xl.hlsManifestUrl;Qva&&(a.hlsvp=Qva);var Rva=xl.probeUrl;Rva&&(a.probeUrl=aB(g.ti(Rva,{cpn:a.clientPlaybackNonce})));var Sva=xl.serverAbrStreamingUrl;Sva&&(a.PM=new g.yC(Sva))}var Tva=
a.playerResponse.trackingParams;Tva&&(a.ya=Tva);var Od=a.playerResponse.videoDetails;if(Od){var Um=b,m5=Od.videoId;m5&&(a.videoId=m5,Um.video_id||(Um.video_id=m5));var Uva=Od.channelId;Uva&&(a.T.uid=Uva.substr(2));var n5=Od.title;n5&&(a.title=n5,Um.title||(Um.title=n5));var o5=Od.lengthSeconds;o5&&(a.lengthSeconds=Number(o5),Um.length_seconds||(Um.length_seconds=o5));var Vva=Od.keywords;Vva&&(a.keywords=MCa(Vva));var p5=Od.channelId;p5&&(a.Zk=p5,Um.ucid||(Um.ucid=p5));var Wva=Od.viewCount;Wva&&(a.rawViewCount=
Number(Wva));var q5=Od.author;q5&&(a.author=q5,Um.author||(Um.author=q5));var Xva=Od.shortDescription;Xva&&(a.shortDescription=Xva);var Yva=Od.isCrawlable;Yva&&(a.isListed=Yva);var Zva=Od.musicVideoType;Zva&&(a.musicVideoType=Zva);var r5=Od.isLive;null!=r5&&(a.isLivePlayback=r5);if(r5||Od.isUpcoming)a.isPremiere=!Od.isLiveContent;var $va=Od.thumbnail;$va&&(a.ea=OH($va));var awa=ke||null,s5=b;Od.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Od.isUpcoming&&(a.isUpcoming=!0);if(Od.isPostLiveDvr)a.He=
!0;else{var t5=!1;if(a.Vb)a.allowLiveDvr=KI(a,!0),a.isLivePlayback=!0;else if(Od.isLive){s5.livestream="1";a.allowLiveDvr=KI(a,!!Od.isLiveDvrEnabled);a.Aa=27;Od.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var bwa=Od.latencyClass;bwa&&(a.latencyClass=TCa[bwa]||"UNKNOWN");var cwa=Od.liveChunkReadahead;cwa&&(a.liveChunkReadahead=cwa);var Nx=awa&&awa.livePlayerConfig;if(Nx){Nx.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Nx.hasSubfragmentedWebm&&(a.Bn=!0);Nx.defraggedFromSubfragments&&
(a.defraggedFromSubfragments=!0);var dwa=Nx.liveExperimentalContentId;dwa&&(a.liveExperimentalContentId=Number(dwa));var ewa=Nx.isLiveHeadPlayable;a.N("html5_live_head_playable")&&null!=ewa&&(a.isLiveHeadPlayable=ewa)}t5=!0}else Od.isUpcoming&&(t5=!0);t5&&(a.isLivePlayback=!0,s5.adformat&&"8"!==s5.adformat.split("_")[1]||a.Ba.push("heartbeat"),a.wt=!0)}var fwa=Od.isPrivate;void 0!==fwa&&(a.isPrivate=yv(a.isPrivate,fwa))}if(ta){var gwa=Od||null,hwa=!1,Ox=ta.errorScreen;hwa=Ox&&(Ox.playerLegacyDesktopYpcOfferRenderer||
Ox.playerLegacyDesktopYpcTrailerRenderer||Ox.ypcTrailerRenderer)?!0:gwa&&gwa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ta.status);if(!hwa){a.errorCode=KBa(ta.errorCode)||"auth";var DO=Ox&&Ox.playerErrorMessageRenderer;if(DO){a.playerErrorMessageRenderer=DO;var iwa=DO.reason;iwa&&(a.errorReason=g.jB(iwa));var v5=DO.subreason;v5&&(a.Dl=g.jB(v5),a.fv=v5)}else a.errorReason=ta.reason||null;var w5=ta.status;if("LOGIN_REQUIRED"===w5)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===
w5)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===w5){var jwa=ta.errorScreen,kwa=jwa&&jwa.playerKavRenderer;a.errorDetail=kwa&&kwa.kavUrl?"4":"3"}else a.errorDetail=ta.isBlockedInRestrictedMode?"5":"0"}}var lwa=a.playerResponse.interstitialPods;lwa&&XBa(a,lwa);a.Xa&&a.eventId&&(a.Xa=Ku(a.Xa,{ei:a.eventId}));var x5=a.playerResponse.captions;x5&&x5.playerCaptionsTracklistRenderer&&UBa(a,x5.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&
(a.tI=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&ZBa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}JCa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var mwa=b.hlsdvr;null!=mwa&&(a.allowLiveDvr=KI(a,"1"==mwa));a.adQueryId=b.ad_query_id||null;a.ul||(a.ul=b.encoded_ad_safety_reason||null);a.aN=b.agcid||null;a.bM=
b.ad_id||null;a.EM=b.ad_sys||null;a.aG=b.encoded_ad_playback_context||null;a.Nk=yv(a.Nk,b.infringe||b.muted);a.authKey=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=yv(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");var EO=b.length_seconds;EO&&(a.lengthSeconds="string"===typeof EO?Pg(EO):EO);var nwa=!a.isAd()&&!a.Pk&&g.Fv(g.iH(a.u));if(nwa){var FO=a.lengthSeconds;switch(g.iH(a.u)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<FO?a.endSeconds=30:30>FO&&10<FO&&(a.endSeconds=
10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.endSeconds=.2*FO}}else a.endSeconds=Av(a.endSeconds,a.bH||b.end||b.endSeconds);a.limitedPlaybackDurationInSeconds=Av(a.limitedPlaybackDurationInSeconds,b.limited_playback_duration_in_seconds);a.ya=Bv(a.ya,b.itct);a.MG=yv(a.MG,b.noiba);a.PG=yv(a.PG,b.is_live_destination);a.isLivePlayback=yv(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=yv(a.isUpcoming,
b.isUpcoming));a.He=yv(a.He,b.post_live_playback);a.isMdxPlayback=yv(a.isMdxPlayback,b.mdx);var GO=b.mdx_control_mode;GO&&(a.mdxControlMode="number"===typeof GO?GO:Pg(GO));a.isInlinePlaybackNoAd=yv(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Ac=Av(a.Ac,b.reload_count);a.reloadReason=Bv(a.reloadReason,b.reload_reason);a.Qm=yv(a.Qm,b.show_content_thumbnail);a.SG=yv(a.SG,b.utpsa);a.GM=yv(a.GM,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.IM=b.tkn||null;var owa=NH(b);0<Object.keys(owa).length&&
(a.ea=owa);a.Ka=Bv(a.Ka,b.vvt);a.mdxEnvironment=Bv(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.MX=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Bv(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?Av(0,b.index):Av(a.playlistIndex,b.index));a.lU=b.pyv_view_beacon_url;a.PU=b.pyv_quartile25_beacon_url;a.QU=b.pyv_quartile50_beacon_url;a.RU=b.pyv_quartile75_beacon_url;
a.NU=b.pyv_quartile100_beacon_url;var pwa=b.remarketing_url;pwa&&(a.remarketingUrl=pwa);var qwa=b.ppv_remarketing_url;qwa&&(a.ppvRemarketingUrl=qwa);var rwa=b.session_data;!a.LM&&rwa&&(a.LM=Eu(rwa,"&").feature);a.isFling=1==Av(a.isFling?1:0,b.is_fling);a.vnd=Av(a.vnd,b.vnd);a.forceAdsUrl=Bv(a.forceAdsUrl,b.force_ads_url);a.Rh=Bv(a.Rh,b.ctrl);a.Bi=Bv(a.Bi,b.ytr);a.Fo=b.ytrcc;a.MM=b.ytrexp;a.UK=b.ytrext;a.Dd=Bv(a.Dd,b.adformat);a.Gv=Bv(a.Gv,b.attrib);a.slotPosition=Av(a.slotPosition,b.slot_pos);a.breakType=
b.break_type;a.Pm=yv(a.Pm,b.ssrt);a.videoId=Dv(b)||a.videoId;a.J=Bv(a.J,b.vss_credentials_token);a.mj=Bv(a.mj,b.vss_credentials_token_type);a.Qi=yv(a.Qi,b.audio_only);a.UF=yv(a.UF,b.aac_high);a.TK=yv(a.TK,b.prefer_low_quality_audio);a.Mm=Bv(a.Mm,b.qoe_cat);a.Dm=yv(a.Dm,b.download_media);a.kb=yv(a.kb,b.prefer_gapless);a:{var y5=a.playerResponse;if(y5&&y5.adPlacements)for(var swa=g.t(y5.adPlacements),z5=swa.next();!z5.done;z5=swa.next()){var HO=z5.value.adPlacementRenderer;if(null!=HO&&"AD_PLACEMENT_KIND_START"===
(HO.config&&HO.config.adPlacementConfig&&HO.config.adPlacementConfig.kind)){var twa=!0;break a}}twa=!1}twa&&(a.adModule=!0,a.Ba.push("ad"));var uwa=b.adaptive_fmts;uwa&&(a.adaptiveFormats=uwa,a.va("afmts",{},!0));var vwa=b.allow_embed;vwa&&(a.allowEmbed="1"==vwa);var wwa=b.backgroundable;wwa&&(a.backgroundable="1"==wwa);var xwa=b.autonav;xwa&&(a.isAutonav="1"==xwa);var A5=b.autoplay;A5&&(a.Dp="1"==A5,a.Nn="1"==A5);var ywa=b.iv_load_policy;ywa&&(a.annotationsLoadPolicy=zv(a.annotationsLoadPolicy,ywa,
aH));var zwa=b.cc_lang_pref;zwa&&(a.captionsLanguagePreference=Bv(zwa,a.captionsLanguagePreference));var Awa=b.cc_load_policy;Awa&&(a.MJ=zv(a.MJ,Awa,aH));var Bwa;a.deviceCaptionsOn=null!=(Bwa=b.device_captions_on)?Bwa:void 0;var Cwa;a.rO=null!=(Cwa=b.device_captions_lang_pref)?Cwa:"";var Dwa;a.SF=null!=(Dwa=b.viewer_selected_caption_langs)?Dwa:[];var Ewa=b.cached_load;Ewa&&(a.Gs=yv(a.Gs,Ewa));"0"==b.dash&&(a.RF=!0);var Fwa=b.dashmpd;Fwa&&(a.yb=g.ti(Fwa,{cpn:a.clientPlaybackNonce}));var Gwa=b.delay;
Gwa&&(a.Mb=Pg(Gwa));var Hwa=a.bH||b.end;void 0!=Hwa&&(a.clipEnd=Av(a.clipEnd,Hwa));var Iwa=b.fmt_list;Iwa&&(a.IG=Iwa);b.heartbeat_preroll&&a.Ba.push("heartbeat");a.ql=-Math.floor(10*Math.random());a.Ex=-Math.floor(40*Math.random());var Jwa=b.is_listed;Jwa&&(a.isListed=yv(a.isListed,Jwa));var Kwa=b.is_private;Kwa&&(a.isPrivate=yv(a.isPrivate,Kwa));var Lwa=b.is_dni;Lwa&&(a.D=yv(a.D,Lwa));var Mwa=b.dni_color;Mwa&&(a.ib=Bv(a.ib,Mwa));var Nwa=b.pipable;Nwa&&(a.pipable=yv(a.pipable,Nwa));a.FM=a.pipable&&
a.u.Sm;a.eL=a.FM&&!a.u.showMiniplayerButton;var Owa=b.paid_content_overlay_duration_ms;Owa&&(a.paidContentOverlayDurationMs=Pg(Owa));var Pwa=b.paid_content_overlay_text;Pwa&&(a.paidContentOverlayText=Pwa);var Qwa=b.url_encoded_fmt_stream_map;Qwa&&(a.dk=Qwa);var Rwa=b.hls_formats;Rwa&&(a.hlsFormats=Rwa);var Swa=b.hlsvp;Swa&&(a.hlsvp=Swa);var IO=b.live_start_walltime;IO&&(a.YG="number"===typeof IO?IO:Pg(IO));var JO=b.live_manifest_duration;JO&&(a.al="number"===typeof JO?JO:Pg(JO));var Twa=b.player_params;
Twa&&(a.playerParams=Twa);var Uwa=b.partnerid;Uwa&&(a.Aa=Av(a.Aa,Uwa));var Vwa=b.probe_url;Vwa&&(a.probeUrl=aB(g.ti(Vwa,{cpn:a.clientPlaybackNonce})));var B5=b.pyv_billable_url;B5&&Wta(B5)&&(a.Ng=B5);var C5=b.pyv_conv_url;C5&&Wta(C5)&&(a.IU=C5);NCa(a,b);nwa?(a.startSeconds=0,a.Dc=0):0<a.startSeconds||(a.startSeconds=Av(a.startSeconds,a.tI||a.JG||b.start||b.startSeconds),a.Dc=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Wwa=b.live_utc_start;if(null!=Wwa)a.liveUtcStartSeconds=
Number(Wwa);else{var D5=a.startSeconds;D5&&isFinite(D5)&&1E9<D5&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Xwa=b.utc_start_millis;Xwa&&(a.liveUtcStartSeconds=.001*Number(Xwa))}var Ywa=b.stream_time_start_millis;Ywa&&(a.Cv=.001*Number(Ywa));var Zwa=a.JG||b.start;void 0==Zwa||"1"==b.resume||a.isLivePlayback||(a.clipStart=Av(a.clipStart,Zwa));var $wa=b.url_encoded_third_party_media;$wa&&(a.ll=Hu($wa));var E5=b.ypc_offer_button_formatted_text;if(E5){var axa=
JSON.parse(E5);a.WF=null!=axa?axa:null;a.kO=E5}var bxa=b.ypc_offer_button_text;bxa&&(a.RD=bxa);var cxa=b.ypc_offer_description;cxa&&(a.xt=cxa);var dxa=b.ypc_offer_headline;dxa&&(a.SD=dxa);var exa=b.ypc_full_video_message;exa&&(a.cn=exa);var fxa=b.ypc_offer_id;fxa&&(a.gk=fxa);var gxa=b.ypc_buy_url;gxa&&(a.Lv=gxa);var hxa=b.ypc_item_thumbnail;hxa&&(a.RC=hxa);var ixa=b.ypc_item_title;ixa&&(a.jt=ixa);var jxa=b.ypc_item_url;jxa&&(a.AD=jxa);var kxa=b.ypc_vid;kxa&&(a.Qt=kxa);b.ypc_overlay_timeout&&(a.At=
Number(b.ypc_overlay_timeout));var lxa=b.ypc_trailer_player_vars;lxa&&(a.hk=Gu(lxa));var mxa=b.ypc_original_itct;mxa&&(a.WX=mxa);a.Zk=Bv(a.Zk,b.ucid);b.baseUrl&&(a.T.baseUrl=b.baseUrl);b.uid&&(a.T.uid=b.uid);b.oeid&&(a.T.oeid=b.oeid);b.ieid&&(a.T.ieid=b.ieid);b.ppe&&(a.T.ppe=b.ppe);b.engaged&&(a.T.engaged=b.engaged);b.subscribed&&(a.T.subscribed=b.subscribed);a.T.focEnabled=yv(a.T.focEnabled,b.focEnabled);a.T.rmktEnabled=yv(a.T.rmktEnabled,b.rmktEnabled);a.Bv=b.storyboard_spec||null;a.qv=b.live_storyboard_spec||
null;a.jP=b.iv_endscreen_url||null;a.UG=yv(a.UG,b.iv3_module);a.wt=yv(a.wt,b.ypc_license_checker_module);a.Si=yv(a.Si,b.ypc_module);a.Ye=yv(a.Ye,b.ypc_clickwrap_module);a.Si&&a.Ba.push("ypc");a.Ye&&a.Ba.push("ypc_clickwrap");a.JR={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};KCa(a,b);var nxa=b.cotn;nxa&&(a.cotn=nxa);if(UCa(a))LI(a)&&(a.isLivePlayback&&a.yb&&(a.Jg=!0),a.Ma&&(a.Im=!0));else if(VCa(a))a.Jg=!0;else{var qxa,rxa,sxa=(null==(qxa=a.playerResponse)?void 0:null==(rxa=qxa.streamingData)?void 0:rxa.adaptiveFormats)||[],txa;if(0<sxa.length)var F5=WCa(a,sxa);else{var vxa=
a.adaptiveFormats;if(vxa&&XCa(a)){MI(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(JF=!0);var Px=NI(vxa),H5=a.Gd,xxa=a.lengthSeconds,a6a=a.isLivePlayback,vE=a.He,Qx=a.u,I5=a.videoId,b6a=Qza(Px);if(a6a||vE){var qh=new uF("",null==Qx?void 0:Qx.experiments,!0,I5);qh.Ud=!0;qh.isManifestless=!0;qh.u=!vE;qh.isLive=!vE;qh.He=vE;for(var yxa=g.t(Px),J5=yxa.next();!J5.done;J5=yxa.next()){var Rx=J5.value,zxa=zF(Rx,H5),It=AF(Rx.url,Rx.sp,Rx.s),Axa=It.get("id");Axa&&Axa.includes("%7E")&&(qh.Z=!0);var c6a=
Number(Rx.target_duration_sec)||5,d6a=Number(Rx.max_dvr_duration_sec)||14400,Bxa=Number(It.get("mindsq")||It.get("min_sq")||"0"),Cxa=Number(It.get("maxdsq")||It.get("max_sq")||"0")||Infinity;qh.De=qh.De||Bxa;qh.jg=qh.jg||Cxa;var e6a=!TE(zxa.mimeType);It&&vF(qh,new wE(It,zxa,{ij:c6a,Al:e6a,dn:d6a,De:Bxa,jg:Cxa,Rw:300,He:vE}))}qh.B=!!qh.De&&!!qh.jg&&isFinite(qh.jg);var Dxa=qh}else{if("FORMAT_STREAM_TYPE_OTF"===b6a){var LO=xxa;LO=void 0===LO?0:LO;var Sx=new uF("",null==Qx?void 0:Qx.experiments,!1,I5);
Sx.duration=LO||0;for(var Exa=g.t(Px),K5=Exa.next();!K5.done;K5=Exa.next()){var Tx=K5.value,L5=zF(Tx,H5,Sx.duration),M5=AF(Tx.url,Tx.sp,Tx.s);if(M5)if("FORMAT_STREAM_TYPE_OTF"===L5.streamType)vF(Sx,new xE(M5,L5,"sq/0"));else{var f6a=QD(Tx.init),g6a=QD(Tx.index);vF(Sx,new EE(M5,L5,f6a,g6a))}}Sx.isOtf=!0;var Fxa=Sx}else{var MO=xxa;MO=void 0===MO?0:MO;var NO=new uF("",null==Qx?void 0:Qx.experiments,!1,I5);NO.duration=MO||0;for(var Gxa=g.t(Px),N5=Gxa.next();!N5.done;N5=Gxa.next()){var Ux=N5.value,h6a=
zF(Ux,H5,NO.duration),i6a=QD(Ux.init),j6a=QD(Ux.index),Hxa=AF(Ux.url,Ux.sp,Ux.s);Hxa&&vF(NO,new EE(Hxa,h6a,i6a,j6a))}Fxa=NO}Dxa=Fxa}var k6a=Dxa;if(0<Px.length){var Vx=Px[0];if(Vx.url&&Vx.sp&&Vx.s){var l6a=AF(Vx.url,Vx.sp,Vx.s),m6a=Number(l6a.get("max_sq"))||Infinity;isFinite(m6a)&&(a.Yc=!0)}}var n6a=a.isLivePlayback&&!a.He&&!a.Yc&&!a.isPremiere;a.N("html5_live_head_playable")&&!OI(a)&&n6a&&a.va("missingLiveHeadPlayable",{});F5=k6a}else F5=null}if(txa=F5){PI(a,txa);var Ixa=!0}else Ixa=!1;Ixa?a.enableServerStitchedDai=
a.enableServerStitchedDai&&QI(a):a.yb&&(a.Jg=!0)}var P5=b.adpings;P5&&(a.Sx=P5?Gu(P5):null);var Jxa=b.feature;Jxa&&(a.Nm=Jxa);var Kxa=b.referrer;Kxa&&(a.referrer=Kxa);a.clientScreenNonce=Bv(a.clientScreenNonce,b.csn);a.aB=Av(a.aB,b.root_ve_type);a.Jm=Av(a.Jm,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Ev=yv(a.Ev,b.upg_content_filter_mode);var Lxa=b.unplugged_location_info;Lxa&&(a.oa=Lxa);var Mxa=b.unplugged_partner_opt_out;Mxa&&(a.hL=Bv("",Mxa));a.Lu=yv(a.Lu,b.disable_watch_next);
a.Hm=Bv(a.Hm,b.internal_ip_override);a.OG=!!b.is_yto_interstitial;(a.interstitials.length||a.OG)&&a.Ba.push("yto");var Nxa=b.Ek;Nxa&&(a.Ek=Nxa);b.lF&&(a.lF=b.lF);var Oxa;a.Sa=null!=(Oxa=b.csi_timer)?Oxa:"";a.Fm=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);a.N("html5_attach_watch_endpoint_ustreamer_config")&&b.watch_endpoint&&YCa(a,b.watch_endpoint);g.QG(a.u)&&(a.embedsRct=Bv(a.embedsRct,b.rct),a.embedsRctn=Bv(a.embedsRctn,b.rctn));a.Km=a.Km||!!b.pause_at_start};
JCa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.watchNextResponse=c;var e=a.watchNextResponse.contents;if(e){var f=e.singleColumnWatchNextResults;if(f){var h=Av(0,b.autoplay_count);if(f.autoplay&&f.autoplay.autoplay&&!f.playlist){var l=f.autoplay.autoplay.sets,m={},n=new g.UH(a.V()),p=null,q;if(l){for(var r=g.t(l),w=r.next();!w.done;w=r.next()){var y=w.value.autoplayVideoRenderer;if(y&&y.compactVideoRenderer){p=y.compactVideoRenderer;
break}}if(q=l[0].autoplayVideo){var z=q.clickTrackingParams;z&&(m.itct=z);m.autonav="1";m.playnext=String(h)}}else m.feature="related-auto";var B=g.N(q,g.VH);if(p){n.videoId=p.videoId;var D=p.shortBylineText;D&&(n.author=g.jB(D));var G=p.title;G&&(n.title=g.jB(G))}else null!=B&&B.videoId&&(n.videoId=B.videoId);n.jz=m;a.N("web_player_decouple_autonav")?a.suggestions=[]:a.suggestions=[n];a.vl=n}}var E=e.twoColumnWatchNextResults}var J,M;a.JX=!!(null==(J=E)?0:null==(M=J.autoplay)?0:M.autoplay);var P=
a.watchNextResponse.playerOverlays;if(P){var X=P.playerOverlayRenderer;if(X){var W=X.autonavToggle;W&&(a.autoplaySwitchButtonRenderer=g.N(W,ZCa),a.N("web_player_autonav_use_server_provided_state")&&RI(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var S=X.endScreen;if(S){var ca=S.watchNextEndScreenRenderer;if(ca)var O=ca.results}var xa=X.videoDetails;if(xa){var la=xa.embeddedPlayerOverlayVideoDetailsRenderer;var ta=xa.musicEmbeddedPlayerOverlayVideoDetailsRenderer;ta&&(a.GG=ta.title,
a.cG=ta.byline);var La=xa.playerOverlayVideoDetailsRenderer;La&&(La.title&&(b.title=g.jB(La.title)),La.subtitle&&(b.subtitle=g.jB(La.subtitle)))}var cb=X.actions;if(cb)for(var va=g.t(cb),Ha=va.next();!Ha.done;Ha=va.next()){var Xb=Ha.value;Xb.likeButtonRenderer&&(a.likeButtonRenderer=Xb.likeButtonRenderer)}var kb,cc=null==(kb=g.N(X.suggestedActionsRenderer,$Ca))?void 0:kb.suggestedActions;if(cc)for(var Nc=g.t(cc),Yb=Nc.next();!Yb.done;Yb=Nc.next()){var vb=g.N(Yb.value,aDa);vb&&g.N(vb.trigger,bDa)&&
a.suggestedActions.push(vb)}var Za=g.N(X.decoratedPlayerBarRenderer,cDa);if(Za){a.multiMarkersPlayerBarRenderer=g.N(Za.playerBar,dDa);var qd;a.PF=null==(qd=g.N(Za.playerBar,eDa))?void 0:qd.chapters;a.OX=g.N(Za.playerBarActionButton,g.SI)}g.WG(a.u)&&(a.Jj=!!X.addToMenu);fDa(a,X.shareButton);var Rc=X.productsInVideoOverlayRenderer;Rc&&(a.shoppingOverlayRenderer=g.N(Rc,gDa));var $b=X.autoplay;if($b)var Bb=$b.playerOverlayAutoplayRenderer;a.progressBarStartPosition=X.startPosition;a.progressBarEndPosition=
X.endPosition;var Dd=X.gatedActionsOverlayRenderer;Dd&&(a.AX=g.N(Dd,hDa));var id=g.N(X.infoPanel,iDa);a.N("embeds_web_enable_info_panel_preview")&&id&&jDa(a,id)}}if(!O&&E){var hc=E.endScreen&&E.endScreen.endScreen;hc&&(O=hc.results)}if(E){var ac=E.desktopOverlay&&g.N(E.desktopOverlay,kDa);ac&&(ac.suppressShareButton&&(a.showShareButton=!1),ac.suppressWatchLaterButton&&(a.Jj=!1))}la&&lDa(a,b,la);var ob=Av(0,b.autoplay_count);if(O){for(var Fb=E||null,kc=Bb||null,Ra=[],Oc=!0,pb=g.t(O),Zb=pb.next();!Zb.done;Zb=
pb.next()){var Xd=Zb.value,Ed=void 0,qb=null;if(Xd.endScreenVideoRenderer){var xc=Xd.endScreenVideoRenderer,Sc=xc.title;qb=new g.UH(a.V());qb.videoId=xc.videoId;qb.lengthSeconds=xc.lengthInSeconds||0;var uc=xc.publishedTimeText;uc&&(qb.publishedTimeText=g.jB(uc));var ud=xc.shortBylineText;ud&&(qb.author=g.jB(ud));var vd=xc.shortViewCountText;vd&&(qb.shortViewCount=g.jB(vd));if(Sc){qb.title=g.jB(Sc);var je=Sc.accessibility;if(je){var ue=je.accessibilityData;ue&&ue.label&&(qb.ariaLabel=ue.label)}}var gb=
xc.navigationEndpoint;if(gb){Ed=gb.clickTrackingParams;var Ub=g.N(gb,g.VH),ve=g.N(gb,g.TI);Ub?qb.kz=Ub:null!=ve&&(qb.watchUrl=ve.url)}var $a=xc.thumbnailOverlays;if($a)for(var yb=g.t($a),yc=yb.next();!yc.done;yc=yb.next()){var Md=yc.value.thumbnailOverlayTimeStatusRenderer;if(Md)if("LIVE"===Md.style){qb.isLivePlayback=!0;break}else if("UPCOMING"===Md.style){qb.isUpcoming=!0;break}}qb.ea=OH(xc.thumbnail)}else if(Xd.endScreenPlaylistRenderer){var Ob=Xd.endScreenPlaylistRenderer,we=Ob.navigationEndpoint;
if(!we)continue;var vf=g.N(we,g.VH);if(!vf)continue;var Fd=vf.videoId;qb=new g.TH(a.V());qb.playlistId=Ob.playlistId;qb.playlistLength=Number(Ob.videoCount)||0;qb.j=Fd||null;qb.videoId=Fd;var xe=Ob.title;xe&&(qb.title=g.jB(xe));var Sf=Ob.shortBylineText;Sf&&(qb.author=g.jB(Sf));Ed=we.clickTrackingParams;qb.ea=OH(Ob.thumbnail)}qb&&(Ed&&(qb.sessionData={itct:Ed}),Oc?(a.N("web_player_decouple_autonav")?Ra.push(qb):($Ba(qb,Fb,kc,ob),Ra.splice(0,0,qb)),Oc=!1):Ra.push(qb))}a.suggestions=Ra}if(Bb){a.aT=
!!Bb.preferImmediateRedirect;a.Xe=a.Xe||!!Bb.webShowNewAutonavCountdown;a.il=a.il||!!Bb.webShowBigThumbnailEndscreen;if(a.Xe||a.il){var lc=Bb,We=E||null,Yc=new g.UH(a.V());Yc.videoId=lc.videoId;var Ie=lc.videoTitle;if(Ie){Yc.title=g.jB(Ie);var Tf=Ie.accessibility;if(Tf){var Xe=Tf.accessibilityData;Xe&&Xe.label&&(Yc.ariaLabel=Xe.label)}}var pg=lc.byline;pg&&(Yc.author=g.jB(pg));var Wa=lc.publishedTimeText;Wa&&(Yc.publishedTimeText=g.jB(Wa));var li=lc.shortViewCountText;li&&(Yc.shortViewCount=g.jB(li));
var mi=lc.thumbnailOverlays;if(mi)for(var qg=g.t(mi),Tc=qg.next();!Tc.done;Tc=qg.next()){var jd=Tc.value.thumbnailOverlayTimeStatusRenderer;if(jd)if("LIVE"===jd.style){Yc.isLivePlayback=!0;break}else if("UPCOMING"===jd.style){Yc.isUpcoming=!0;break}else if("DEFAULT"===jd.style&&jd.text){Yc.lengthText=g.jB(jd.text);var rg=jd.text.accessibility;if(rg){var sg=rg.accessibilityData;sg&&sg.label&&(Yc.Ct=sg.label||"")}break}}Yc.ea=OH(lc.background);var ni=lc.nextButton;if(ni){var Je=ni.buttonRenderer;if(Je){var kd=
Je.navigationEndpoint;if(kd){var Uf=g.N(kd,g.VH);Uf&&(Yc.kz=Uf)}}}if(lc.topBadges){var Jh=lc.topBadges[0];if(Jh){var oi=g.N(Jh,mDa);oi&&"BADGE_STYLE_TYPE_PREMIUM"===oi.style&&(Yc.lF=!0)}}var Kh=lc.alternativeTitle;Kh&&(Yc.Xp=g.jB(Kh));$Ba(Yc,We,lc,ob);a.suggestions||(a.suggestions=[]);a.vl=Yc;a.N("web_player_decouple_autonav")||(a.suggestions[0]=Yc)}null!=Bb.countDownSecs&&(a.jO=1E3*Bb.countDownSecs);null!=Bb.countDownSecsForFullscreen&&(a.NF=0<=Bb.countDownSecsForFullscreen?1E3*Bb.countDownSecsForFullscreen:
-1);var pi;a.IX=null==(pi=Bb.cancelButton)?void 0:pi.buttonRenderer;a.N("web_autonav_color_transition")&&Bb.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.N(Bb.watchToWatchTransitionRenderer,nDa))}if(O){var Vj,fl,gl,hl=null==O?void 0:null==(Vj=O[0])?void 0:null==(fl=Vj.endScreenVideoRenderer)?void 0:null==(gl=fl.navigationEndpoint)?void 0:gl.clickTrackingParams,il=g.UI(a);hl&&il&&(il.sessionData={itct:hl})}a.watchNextResponse.currentVideoThumbnail&&(a.ea=OH(a.watchNextResponse.currentVideoThumbnail));
var Wj,qi,ri,Lh,Vf,Wf=null==(Wj=a.watchNextResponse)?void 0:null==(qi=Wj.contents)?void 0:null==(ri=qi.twoColumnWatchNextResults)?void 0:null==(Lh=ri.results)?void 0:null==(Vf=Lh.results)?void 0:Vf.contents;if(Wf&&Wf[1]){var ke,si,Em,jl,ye=null==(ke=Wf[1].videoSecondaryInfoRenderer)?void 0:null==(si=ke.owner)?void 0:null==(Em=si.videoOwnerRenderer)?void 0:null==(jl=Em.thumbnail)?void 0:jl.thumbnails;ye&&ye.length&&(a.profilePicture=ye[ye.length-1].url)}var Ng=a.watchNextResponse.onResponseReceivedEndpoints;
if(Ng)for(var lh=g.t(Ng),Xf=lh.next();!Xf.done;Xf=lh.next()){var Xj=Xf.value;g.N(Xj,VI)&&(a.BP=g.N(Xj,VI));var gj=g.N(Xj,oDa),kl=void 0;a.N("web_key_moments_markers")&&(null==(kl=gj)?0:kl.entityKeys)&&(a.ov=gj.entityKeys,gj.visibleOnLoadKeys&&(a.visibleOnLoadKeys=gj.visibleOnLoadKeys))}if(a.N("web_key_moments_markers")){var hj=g.WI.getState().entities,Fm=g.nI("visibility_override","markersVisibilityOverrideEntity");var xf=hj.markersVisibilityOverrideEntity?hj.markersVisibilityOverrideEntity[Fm]||
null:null;var ij=a.videoId||Dv(b);a.Le=(null==xf?void 0:xf.videoId)===ij&&(null==xf?0:xf.visibilityOverrideMarkersKey)?xf.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.u(a.Le))}if(a.N("html5_log_offline_playback_started_event")){var Fa=g.N(a.watchNextResponse.currentVideoEndpoint,g.VH);if(null==Fa?0:Fa.playlistId)a.ZG=Fa.playlistId}}};
RI=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
XI=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
ZI=function(a){var b=a.kb,c=!!a.j&&a.j.Ud,d=a.u,e=a.uJ(),f=YI(a),h=a.UF,l=a.isOtf(),m=a.nH(),n=a.Vb,p=a.Hh,q=new nAa(d);if(d.C||d.N("html5_logging_format_selection"))q.B=!0;q.ib=f;q.Ka=h&&d.D;q.Hh=p;hv("windows nt 5.1")&&!g.XF&&(q.j=!0);if(f=e)f=d.N("disable_html5_ambisonic_audio")||!g.uH(d)?!1:tBa(d);f&&(q.Xa=!0);b&&(q.j=!0,q.wc=!0);l&&!d.N("html5_otf_prefer_vp9")&&(q.j=!0);l&&d.N("html5_photos_use_vp9_otf")&&"picasaweb"===d.playerStyle&&(q.j=!1);n&&(q.j=!0);b=d.N("html5_ugc_vod_audio_51")&&!c;l=
d.N("html5_ugc_live_audio_51")&&c;q.Oa=b||l;sC(d.B,tC.CHANNELS)&&(d.N("html5_enable_aac51")&&(q.oa=!0),d.N("html5_enable_ac3")&&(q.D=!0),d.N("html5_enable_eac3")&&(q.I=!0),d.N("html5_enable_ac3_gapless")&&(q.Ma=!0));d.N("html5_block_8k_hfr")&&(q.qb=!0);q.J=g.YF(d.experiments,"html5_max_selectable_quality_ordinal");q.T=g.YF(d.experiments,"html5_min_selectable_quality_ordinal");NG&&(q.pc=480);if(c||e)q.kb=!1;q.yb=!1;c=NF(d,q.u);0<c&&2160>c&&(mF()||d.N("html5_format_hybridization"))&&(q.u.supportsChangeType=
+mF(),q.Z=c);2160<=c&&(q.ya=!0);lAa()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.Ac=!1);q.nH=m;q.Wa=g.Qw||uv()&&!m?!1:!0;q.Ba=d.N("html5_format_hybridization");q.Vb=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");kv()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.I=!0);a.kb&&a.isAd()&&(a.Qx&&(q.ea=a.Qx),a.Kx&&(q.C=a.Kx));q.Sa=a.isLivePlayback&&a.In()&&a.u.N("html5_drm_live_audio_51");
return a.Wk=q};
qDa=function(a){JB("drm_pb_s",void 0,a.Sa);a.Ma||a.j&&pC(a.j);var b={};a.j&&(b=pxa(a.Ku,ZI(a),a.u.B,a.j,function(c){return a.ma("ctmp","fmtflt",c)},!0));
b=new aG(b,a.u.experiments,a.VM,pDa(a),function(c,d){a.va(c,d)});
g.L(a,b);a.Im=!1;a.Oa=!0;rAa(b,function(c){JB("drm_pb_f",void 0,a.Sa);for(var d=g.t(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Ma=a.Ma;e.Pu=a.Pu;e.Ou=a.Ou;break;case "widevine":e.fk=a.fk}a.xv=c;if(0<a.xv.length&&(a.Z=a.xv[0],a.u.C)){c={};d=g.t(Object.entries(a.Z.j));for(e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.va("drmProbe",c)}II(a)})};
WCa=function(a,b){if(0===b.length||!XCa(a))return null;MI(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(JF=!0);var c=a.Gd;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.He,h=a.u,l=a.videoId,m=Rza(b);if(e||f){h=new uF("",h.experiments,!0,l);h.u=!f;h.Ud=!0;h.isManifestless=!0;h.isLive=!f;h.He=f;l=g.t(b);for(d=l.next();!d.done;d=l.next()){var n=d.value;d=yF(n,c);e=bC(n);e=AF(e.Hs||n.url||"",e.uu,e.s);(m=e.get("id"))&&m.includes("%7E")&&(h.Z=!0);m=Number(n.targetDurationSec||5);n=Number(n.maxDvrDurationSec||
14400);var p=Number(e.get("mindsq")||e.get("min_sq")||"0"),q=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.De=h.De||p;h.jg=h.jg||q;var r=!TE(d.mimeType);e&&vF(h,new wE(e,d,{ij:m,Al:r,dn:n,De:p,jg:q,Rw:300,He:f}))}h.B=!!h.De&&!!h.jg&&isFinite(h.jg);c=h}else if("FORMAT_STREAM_TYPE_OTF"===m){d=void 0===d?0:d;f=new uF("",h.experiments,!1,l);f.duration=d||0;h=g.t(b);for(l=h.next();!l.done;l=h.next())l=l.value,d=yF(l,c,f.duration),e=bC(l),(e=AF(e.Hs||l.url||"",e.uu,e.s))&&("FORMAT_STREAM_TYPE_OTF"===
d.streamType?vF(f,new xE(e,d,"sq/0")):vF(f,new EE(e,d,SD(l.initRange),SD(l.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new uF("",h.experiments,!1,l);f.duration=d||0;h=g.t(b);for(l=h.next();!l.done;l=h.next())m=l.value,l=yF(m,c,f.duration),d=SD(m.initRange),e=SD(m.indexRange),n=bC(m),(m=AF(n.Hs||m.url||"",n.uu,n.s))&&vF(f,new EE(m,l,d,e));c=f}h=bC(b[0]);b=h.Hs;f=h.uu;h=h.s;b&&f&&h&&(b=AF(b,f,h),b=Number(b.get("max_sq"))||Infinity,isFinite(b)&&(a.Yc=!0));b=a.isLivePlayback&&!a.He&&!a.Yc&&
!a.isPremiere;a.N("html5_live_head_playable")&&!OI(a)&&b&&a.va("missingLiveHeadPlayable",{});return c};
LI=function(a){return kv()?!$I(a):mv()?!(!a.Ma||!a.N("html5_enable_safari_fairplay")):!1};
$I=function(a){return a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
pDa=function(a){return a.N("html5_disable_tvos_widevine")||!a.useCobaltWidevine?!1:kv()?$I(a):!1};
XCa=function(a){return!a.N("html5_manifestless_unplugged")&&a.isLivePlayback&&g.rH(a.u)&&g.fH(a.u)?!1:!LI(a)};
QI=function(a){return!(!a.j||!a.j.isManifestless)};
rDa=function(a){return Uxa({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Bn:a.Bn,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:QI(a),ZL:aJ})};
bJ=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=FF(a.j)?21530001:a.liveExperimentalContentId};
UCa=function(a){return kv()&&$I(a)?!1:LI(a)&&g.rH(a.u)&&!a.isLivePlayback||!dG(a.u.B)||a.RF?!0:!1};
tDa=function(a){a.Oa=!0;a.Jg=!1;if(VCa(a))g.uCa(a.videoId).then(function(c){sDa(a,c)}).then(function(){II(a)});
else{ZA(a.yb)||g.aA(new g.Yv("DASH MPD Origin invalid: ",a.yb));var b=a.yb;b=g.ti(b,{mpd_version:g.YF(a.u.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.ti(b,{pacing:0}));Zza(b,a.u.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(PI(a,c,!0),JB("mrc",void 0,a.Sa),II(a))},function(c){a.isDisposed()||(a.Oa=!1,a.ma("dataloaderror",new AH("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
JB("mrs",void 0,a.Sa)}};
sDa=function(a,b){var c=b.map(function(l){return l.itag}),d;
if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e={},f=g.t(a.playerResponse.streamingData.adaptiveFormats),h=f.next();!h.done;e={ao:e.ao},h=f.next())e.ao=h.value,c.includes(e.ao.itag)&&(e.ao=Object.assign({},e.ao),e.ao.url=b.find(function(l){return function(m){return m.itag===l.ao.itag}}(e)).url,e.ao.signatureCipher="",d.push(e.ao));
b=WCa(a,d);PI(a,b);a.va("dlr",{})}else a.va("offsdm",{cotn:a.aH?a.aH.cotn:"0",cpn:a.clientPlaybackNonce})};
II=function(a){a.isDisposed()||(a.Oa=!1,a.ma("dataloaded"))};
PI=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.L(a,b);b.De=a.De;b.jg=a.jg;b.wc=a.wc;b.od=a.od;b.Fd=a.Fd;a.PM&&(b.ya=new ID(a.PM));uDa(a)&&a.Ba.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.al=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.va,a),c?b.subscribe("refresh",a.bS,a):b.subscribe("cuepointsadded",a.kP,a));pC(b)&&(a.Im=!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
zDa=function(a,b){if(a.isDisposed())return av();a.C=null;a.qb=null;a.zd=null;MI(a,"html5_high_res_logging_always")&&(a.u.C=!0);return vDa(a,b).then(void 0,function(){return wDa(a,b)}).then(void 0,function(){return xDa(a)}).then(void 0,function(){return yDa(a)})};
vDa=function(a,b){var c=b||UCa(a);if(!a.j||c)return a.va("skipDash",{dm:!!a.j,air:b,dd:a.RF,mss:dG(a.u.B)}),av();YI(a)&&bAa(a.j,a.isLivePlayback);MI(a,"html5_enable_cobalt_experimental_vp9_decoder")&&EAa(a.u.B);return bv().then(function(){return Sxa(a.Ku,ZI(a),a.u.B,a.j,a.Z,function(d){return a.ma("ctmp","fmtflt",d)}).then(function(d){ADa(a,d);
a.Ku.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Wk&&a.va("av1",a.Wk.u)})})};
wDa=function(a,b){if(b&&a.hlsvp)return av();if(a.hlsFormats){b=NI(a.hlsFormats);var c;if((null==(c=a.Wk)?0:c.B)&&b){c=[];for(var d=g.t(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.va("hlsfmt",{itags:c.join(".")})}a.hv=BBa(a.u,b);c=a.clientPlaybackNonce;var f,h,l,m;return GBa(a.u,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.rd,c,function(n){return a.ma("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.t(n),w=r.next();!w.done;w=r.next()){w=w.value;
var y=void 0;q.push(null==(y=w.Qg())?void 0:y.itag);var z=y=void 0;(null==(y=w.Qg())?void 0:null==(z=y.audio)?void 0:z.numChannels)>p&&(p=w.Qg().audio.numChannels)}2<p&&a.va("hlschl",{mn:p});var B;(null==(B=a.Wk)?0:B.B)&&a.va("hlsfmtaf",{itags:q.join(".")});cJ(a,n)})}return av()};
xDa=function(a){return a.ll&&a.WO?IBa(a.u,a.isAd(),a.ll).then(function(b){cJ(a,b)}):av()};
yDa=function(a){var b=NI(a.dk,a.IG);if(a.hlsvp){var c=GCa(a.hlsvp,a.clientPlaybackNonce,a.rd);b.push(c)}return HBa(a.u,a.isAd(),b,BDa(a)).then(function(d){cJ(a,d)})};
ADa=function(a,b){a.C=b;if(a.C){b=g.t(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.qO[d]=c.id)}}b=a.getAvailableAudioTracks();b=b.concat(a.Cm);for(c=0;c<a.CH.length;c++){d=a.CH[c];for(var e=0;e<b.length;e++){var f=b[e],h=f.Mc.id==d.audioTrackId;if(f.Mc.isDefault&&c==a.dP||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.j=a.captionTracks[d.defaultCaptionTrackIndex]);
void 0!==d.forcedCaptionTrackIndex&&(f.u=a.captionTracks[d.forcedCaptionTrackIndex]);f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(a.Z&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=QE(a.C.videoInfos[0]),b!=("fairplay"==a.Z.flavor)))for(c=g.t(a.xv),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.Z=d;break}};
cJ=function(a,b){a.zd=b;ADa(a,new jC(g.Vd(a.zd,function(c){return c.Qg()})))};
BDa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver};a.tv&&(b.ptk=a.tv,b.oid=a.kR,b.ptchn=a.cR,b.pltype=a.xR,a.Mu&&(b.m=a.Mu));return b};
g.dJ=function(a){return LI(a)&&a.Ma?(a={},a.fairplay="https://web.archive.org/web/20221116135136/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.Gd||null};
CDa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.jB(b.text):a.paidContentOverlayText};
eJ=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Pg(b.durationMs):a.paidContentOverlayDurationMs};
fJ=function(a){var b="";if(a.XG)return a.XG;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Yc?"window":"live");a.He&&(b="post");return b};
g.gJ=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
DDa=function(a){return!!a.Ng||!!a.zJ||!!a.Lm||!!a.zv||a.uO||a.T.focEnabled||a.T.rmktEnabled};
hJ=function(a){return!!(a.yb||a.adaptiveFormats||a.dk||a.ll||a.hlsvp)};
HI=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Sb(a.Ba,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Oa&&(hJ(a)||g.Sb(a.Ba,"heartbeat")||b)};
NI=function(a,b){a=Hu(a);var c={};if(b){b=g.t(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.t(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};
fDa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.N(b,g.SI))?void 0:c.navigationEndpoint)||(null==(d=g.N(b,g.SI))?void 0:d.command);e&&(a.Rm=!!g.N(e,EDa))};
ICa=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.hh=c);if(a.hh){if(c=a.hh.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage),c.isShortsEligible&&(a.isShortsEligible=c.isShortsEligible);if(c=a.hh.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.ib=d,a.D=!0,a.u.N("embeds_web_enable_epm_dni_parity_fix")&&
(a.u.ea="EMBEDDED_PLAYER_MODE_PFP")):(a.ib="",a.D=!1,a.u.N("embeds_web_enable_epm_dni_parity_fix")&&"EMBEDDED_PLAYER_MODE_PFP"===a.u.ea&&(a.u.ea="EMBEDDED_PLAYER_MODE_DEFAULT"));if(d=c.defaultThumbnail)a.ea=OH(d),a.sampledThumbnailColor=d.sampledThumbnailColor;(d=g.N(null==c?void 0:c.videoDetails,FDa))&&lDa(a,b,d);if(d=g.N(null==c?void 0:c.videoDetails,GDa))a.GG=d.title,a.cG=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Jj=!!c.addToWatchLaterButton;fDa(a,c.shareButton);var e,f;
if(d=g.N(null==c?void 0:null==(e=c.playButton)?void 0:null==(f=e.buttonRenderer)?void 0:f.navigationEndpoint,g.VH))YCa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Pg(c.videoDurationSeconds));c.webPlayerActionsPorting&&ZBa(a,c.webPlayerActionsPorting);if(e=g.N(null==c?void 0:c.playlist,HDa)){a.Pk=!0;f=[];d=Number(e.currentIndex);if(e.contents)for(var h=0,l=e.contents.length;h<l;h++){var m=e.contents[h].playlistPanelVideoRenderer;if(m){var n=m.shortBylineText?g.jB(m.shortBylineText):
"",p=m.title?g.jB(m.title):"";f.push({author:n,encrypted_id:m.videoId,title:p,channel_path:h===d?b.channel_path:"",profile_picture:h===d?b.profile_picture:"",is_private:h===d?a.isPrivate:!0,is_dni:h===d?a.D:!1,dni_color:h===d?a.ib:""})}}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.jB(e.titleText));e.shortBylineText&&(b.author=g.jB(e.shortBylineText));a.sO=b}b=g.N(null==c?void 0:c.infoPanel,iDa);a.N("embeds_web_enable_info_panel_preview")&&
b&&jDa(a,b)}if(a.hh.previewPlayabilityStatus){if(a.wv=a.hh.previewPlayabilityStatus,b=a.wv,!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){a.errorCode=KBa(b.errorCode);c=b.errorScreen;if(e=null==c?void 0:c.playerErrorMessageRenderer){a.VF=e;if(f=e.reason)a.errorReason=g.jB(f);if(e=e.subreason)a.Dl=g.jB(e)}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 q;(null==c?
0:null==(q=c.playerKavRenderer)?0:q.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.hh.playabilityStatus&&(a.Em=a.hh.playabilityStatus,IDa(a)&&(a.errorDetail="0",a.Em&&((q=a.Em.embeddedPlayerErrorMessageRenderer)?a.VF=g.N(q,JDa):a.N("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.Em.reason||null))));(q=a.hh.attestation)&&SBa(a,q);(q=a.hh.permissions)&&q.allowImaMonetization&&(a.allowImaMonetization=!0)}};
YCa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.bR=new ACa(b)};
lDa=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e;if(d=g.N(null==(e=g.N(null==c?void 0:c.channelThumbnailEndpoint,KDa))?void 0:e.urlEndpoint,g.TI))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.N(e,LDa)){if(d=e.title)b.title=g.jB(d);if(e=e.subtitle)b.subtitle=g.jB(e)}if(c=c.expandedRenderer)if(c=g.N(c,MDa)){if(e=c.title)b.expanded_title=g.jB(e);if(e=c.subtitle)b.expanded_subtitle=g.jB(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.N(c,g.iJ),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.jl=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.OF=b.toggledServiceEndpoint||null,a.KM=b.defaultServiceEndpoint||
null):(a.OF=b.defaultServiceEndpoint||null,a.KM=b.toggledServiceEndpoint||null)))}};
jDa=function(a,b){a.CO=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.Kg=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.Gm=null==b?void 0:b.infoPanelDetailsViewModel};
g.jJ=function(a){return OI(a)&&!a.allowLiveDvr};
kJ=function(a){return OI(a)&&a.allowLiveDvr};
OI=function(a){return a.N("html5_live_head_playable")&&QI(a)?a.isLiveHeadPlayable:a.isLivePlayback};
g.lJ=function(a){return!!a.j&&Jza(a.j)};
g.mJ=function(a){return!!a.j&&Kza(a.j)};
uDa=function(a){return a.uJ()||g.nJ(a)};
g.oJ=function(a){return!!a.j&&Lza(a.j)};
g.nJ=function(a){return!!a.j&&Mza(a.j)};
g.NDa=function(a){if(a.tM)return null;var b=a.jP;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.ODa=function(a){return a.tM?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.pJ=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.qJ=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.t(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};
rJ=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.u.Ka};
sJ=function(a){if(a.isAd()&&a.videoId!=a.u.Fd)return a.u.Fd};
tJ=function(a){return a.Nn||"detailpage"==rJ(a)||"shortspage"==rJ(a)||a.mutedAutoplay};
uJ=function(a){if(tJ(a)){if("detailpage"==rJ(a)||"shortspage"==rJ(a))return a.isAutonav||0<a.Ac;if(!((a.N("html5_enable_desktop_masthead_autoplay_fix")&&"17_8"===a.adFormat&&(g.sH(a.u)||a.isAutonav||a.Dp)?0:"17_8"===a.adFormat&&!a.isAutonav)||a.hO||"adunit"==rJ(a)&&a.Ng))return!0}return!1};
g.vJ=function(a){return a.oauthToken||a.u.Mg};
PDa=function(a){var b=1,c=g.YF(a.u.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.We;a.C&&a.C.j&&a.C.j[0]&&a.vv[a.C.j[0].id]&&(c=a.vv[a.C.j[0].id]);if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.XM)return Math.min(1,Math.pow(10,-a.dL/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.u.Pk,g.YF(a.u.experiments,"html5_stateful_audio_min_adjustment_value")));a.dL=c}return Math.min(1,Math.pow(10,-c/20))||b};
YI=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===dH(a.u)&&"MUSIC"===a.u.deviceParams.ctheme;!a.Qi&&(g.ZG(a.u)||c)&&b.includes(a.musicVideoType)&&(a.Qi=!0);if(b=g.jv())b=/Starboard\/([0-9]+)/.exec(g.sb()),b=10>(b?parseInt(b[1],10):NaN);c=a.u;c=("TVHTML5_CAST"===dH(c)||"TVHTML5"===dH(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.u.deviceParams.ctheme;var d;if(d=!a.Qi)c||(c=a.u,
c="TVHTML5"===dH(c)&&c.deviceParams.cver.startsWith("7")),d=c;d&&!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.Qi=!0);return a.u.deviceIsAudioOnly||a.Qi&&a.u.D};
QDa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
wJ=function(a){return!(!a.Dm||!a.u.D)&&!!a.adaptiveFormats};
RDa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
VCa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.sI(b);return b&&!a.Dm};
g.xJ=function(a){if(!a.j||!a.B||!a.I)return!1;var b=a.j.j;return!!b[a.B.id]&&BC(b[a.B.id].u.j)&&!!b[a.I.id]&&BC(b[a.I.id].u.j)};
yJ=function(a){return a.wv?["OK","LIVE_STREAM_OFFLINE"].includes(a.wv.status):!0};
IDa=function(a){return(a=a.Em)&&a.showError?a.showError:!1};
MI=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
SDa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
NCa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.zv=new aCa(b));if(b=b.video_masthead_ad_quartile_urls)a.zJ=b.quartile_0_url,a.HJ=b.quartile_25_url,a.BT=b.quartile_50_url,a.VT=b.quartile_75_url,a.pT=b.quartile_100_url,a.Lm=b.quartile_0_urls,a.yv=b.quartile_25_urls,a.NJ=b.quartile_50_urls,a.aK=b.quartile_75_urls,a.AJ=b.quartile_100_urls,a.QG=!1};
KI=function(a,b){return b?dG(a.u.B)?!0:zJ&&5>AJ?!1:!0:!1};
MCa=function(a){var b={};a=g.t(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};
TBa=function(a){if(a){if($ta(a))return a;a=aua(a);if($ta(a,!0))return a}return""};
g.TDa=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.gJ(a,"yt:cc_default_lang")||a.u.Jg};
BJ=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.UI=function(a){if(a.N("web_player_decouple_autonav")){var b;return a.vl||(null==(b=a.suggestions)?void 0:b[0])||null}var c;return(null==(c=a.suggestions)?void 0:c[0])||null};
CJ=function(a,b){this.j=a;this.ea=b||{};this.I=String(Math.floor(1E9*Math.random()));this.D={};this.Z=this.T=0};
UDa=function(a){return DJ(a)&&1==a.getPlayerState(2)};
DJ=function(a){a=a.Lc();return void 0!==a&&2==a.getPlayerType()};
EJ=function(a){a=a.V();return eH(a)&&!g.rH(a)&&"desktop-polymer"==a.playerStyle};
FJ=function(a,b){var c=a.V();g.VG(c)||"3"!=c.controlsType||a.fb().cB(b)};
HJ=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=GJ(a)};
GJ=function(a){return a+(":"+(cp.getInstance().j++).toString(36))};
IJ=function(a){this.Y=a};
VDa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.qw?0:a.Y.isMobile||g.rH(a.Y)||g.fH(a.Y)||gH(a.Y)||!g.qw))return!0;a=g.Wg("video-ads");return null!=a&&"none"!==Ll(a,"display")};
WDa=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}};
JJ=function(){g.Mz.call(this);var a=this;this.j={};g.af(this,function(){for(var b=g.t(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
LJ=function(){if(null===KJ){KJ=new JJ;Tk(Wn).u="b";var a=Tk(Wn),b="h"==Pn(a)||"b"==Pn(a),c=!(Yk(),!1);b&&c&&(a.D=!0,a.I=new eja)}return KJ};
XDa=function(a,b,c){a.j[b]=c};
YDa=function(){};
MJ=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};
NJ=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
OJ=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"};
PJ=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],
["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",a.unmutedClickthroughPings||
[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
QJ=function(a){switch(a){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
default:return null}};
ZDa=function(a){return(a=a.pings)?Object.fromEntries(PJ(a)):{}};
RJ=function(a,b,c,d,e){CJ.call(this,a,ZDa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Ma=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new MJ(0,[]);this.Aa=null;this.C={};this.ya=null;this.u=0;this.J=null;this.oa=e;this.Ka=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.ya=c);this.C=Gu(this.j.playerVars||"");this.J=this.j.externalVideoId||null;this.u=Av(this.u,this.C.length_seconds);this.oa&&this.J&&(this.Ka=this.oa(this.J));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.$z(f)}this.Aa=this.j.clickthroughEndpoint||null;this.B=new MJ(0,[this.u])};
$Da=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
SJ=function(){this.j=[];this.u=0};
TJ=function(a,b){b&&a.j.push(b)};
UJ=function(a){if(!a)return[];var b=[];a=g.t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.t(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
VJ=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};
WJ=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
XJ=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
aEa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=UJ(a.impressionCommands)||[];b.error=UJ(a.errorCommands)||[];b.mute=UJ(a.muteCommands)||[];b.unmute=UJ(a.unmuteCommands)||[];b.pause=UJ(a.pauseCommands)||[];b.rewind=UJ(a.rewindCommands)||[];b.resume=UJ(a.resumeCommands)||[];b.skip=UJ(a.skipCommands)||[];b.close=UJ(a.closeCommands)||[];b.clickthrough=UJ(a.clickthroughCommands)||[];b.fullscreen=UJ(a.fullscreenCommands)||[];b.active_view_viewable=UJ(a.activeViewViewableCommands)||
[];b.active_view_measurable=UJ(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=UJ(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=UJ(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=UJ(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=UJ(a.endFullscreenCommands)||[];b.channel_clickthrough=UJ(a.channelClickthroughCommands)||[];b.abandon=UJ(a.abandonCommands)||
[];b.progress=VJ(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=VJ(a.progressCommands.filter(function(c){return XJ(c)&&Dg(WJ(c),0)}));
b.first_quartile=VJ(a.progressCommands.filter(function(c){return XJ(c)&&Dg(WJ(c),.25)}));
b.midpoint=VJ(a.progressCommands.filter(function(c){return XJ(c)&&Dg(WJ(c),.5)}));
b.third_quartile=VJ(a.progressCommands.filter(function(c){return XJ(c)&&Dg(WJ(c),.75)}));
b.complete=VJ(a.progressCommands.filter(function(c){return XJ(c)&&Dg(WJ(c),1)}));
return b};
$J=function(a){CJ.call(this,a,aEa(a));a.questions&&a.questions.reduce(function(b,c){return(c=g.N(c,YJ)||g.N(c,ZJ))?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
bEa=function(a,b,c,d){this.id=b;this.C=d.nf;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=fua(b,d);if(null==f)d=new gB(b,new Ko(-1,-1),!1,"adcuerange:invalid",3),d.deactivate(),d=[null,d];else{e=":"+(cp.getInstance().j++).toString(36);
var h=d.daiEnabled||d.nf;f=new gB(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.nf||0<d.j)if(d=fua(b,d,!0))h=new gB(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.j=d[1];this.u=c;this.I=!1;this.T={};this.J=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
aK=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
cK=function(a,b){var c={};cEa(a,c,b);dEa(c);c.LACT=bK(function(){return dy().toString()});
c.VIS=bK(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=bK(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
eEa=function(a){var b={};if(!a.kind)return g.$z(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.$z(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=bK(Pf(Math.round(Pg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=bK(Pf("0"));return b};
bK=function(a){return{toString:function(){return a()}}};
fEa=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.sf(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
cEa=function(a,b,c){b.CPN=bK(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.aA(Error("Video data is null.")),d=null);return d});
b.AD_MT=bK(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=bK(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=bK(function(){return a.fb().Wi().height.toString()});
b.P_W=bK(function(){return a.fb().Wi().width.toString()});
b.PV_H=bK(function(){return a.fb().getVideoContentRect().height.toString()});
b.PV_W=bK(function(){return a.fb().getVideoContentRect().width.toString()})};
dEa=function(a){a.CONN=bK(Pf("0"));a.WT=bK(function(){return Date.now().toString()})};
gEa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=aK(a)?bK(Pf(Math.round(a.j.start/1E3).toString())):bK(Pf("0"));return b};
hEa=function(a){var b={};b.SLOT_POS=bK(Pf(a.B.j.toString()));return b};
iEa=function(a){var b=a&&g.ib(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
dK=function(a){for(var b={},c=g.t(jEa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
eK=function(){var a={};Object.assign.apply(Object,[a].concat(g.u(g.ya.apply(0,arguments))));return a};
fK=function(){};
kEa=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,w,y;g.A(function(z){switch(z.j){case 1:e=!!b.scrubReferrer;f=g.$n(b.baseUrl,fEa(c,e,d));h={};try{l=new g.Cj(f),"2"===l.u.get("ase")&&(g.aA(Error("Queries for attributionsrc label  registration when sending pings.")),h["Attribution-Reporting-Eligible"]="event-source")}catch(B){g.aA(B)}if(!b.headers){z.Ja(2);break}m=g.t(b.headers);n=m.next();case 3:if(n.done){z.Ja(5);break}p=n.value;switch(p.headerType){case "VISITOR_ID":g.uu("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=
g.uu("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.uu("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]=g.uu("EOM_VISITOR_DATA"));break;case "USER_AUTH":return z.Ja(6);case "PLUS_PAGE_ID":(q=a.u())&&(h["X-Goog-PageId"]=q)}z.Ja(4);break;case 6:r=a.j();if(!r.j){w=r.getValue();z.Ja(8);break}return g.x(z,r.j,9);case 9:w=z.u;case 8:(y=w)&&(h.Authorization="Bearer "+y);z.Ja(4);break;case 4:n=m.next();z.Ja(3);break;case 5:"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];
case 2:g.nx(f,void 0,e,0!==Object.keys(h).length?h:void 0,"",!0),g.pa(z)}})};
gK=function(a){this.hq=a};
hK=function(a){this.ys=a};
mEa=function(a,b,c,d,e,f){e=void 0===e?new hK(new gK(d.getVideoData(1))):e;f=void 0===f?!1:f;g.K.call(this);this.ad=a;this.B=b;this.macros=c;this.j=d;this.Lk=e;this.daiEnabled=f;this.u={XF:.25,TG:.5,VG:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.ea.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.ea.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
lEa(OJ(a.j.pings))};
mK=function(a,b){iK(a)||(jK(a)?(kK(a,0,!0),nEa(a,b,b)):(kK(a,0,!0),oEa(a,0,0,!0)),lK(a,"complete"))};
kK=function(a,b,c){for(c=void 0===c?!1:c;a.ad.T<a.progressPings.length;){var d=nK(a,"progress"),e=a.progressPings[a.ad.T];if(e.offsetMilliseconds<=1E3*b||c)oK(a,e,d),a.ad.T++;else break}};
pEa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Z<a.unmutedProgressPings.length;){var d=nK(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Z];if(e.offsetMilliseconds<=1E3*b||c)oK(a,e,d),a.ad.Z++;else break}};
oEa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.XF||d)&&lK(a,"first_quartile");(b>=c*a.u.TG||d)&&lK(a,"midpoint");(b>=c*a.u.VG||d)&&lK(a,"third_quartile")};
qEa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.XF||d)&&lK(a,"unmuted_first_quartile");(b>=c*a.u.TG||d)&&lK(a,"unmuted_midpoint");(b>=c*a.u.VG||d)&&lK(a,"unmuted_third_quartile")};
pK=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;lK(a,b)};
nEa=function(a,b,c){if(0<c&&0<b){var d=a.j.Db(a.j.getPresentingPlayerType());g.U(d,16)||g.U(d,32)||(pK(a,"first_quartile",b,c*a.u.XF),pK(a,"midpoint",b,c*a.u.TG),pK(a,"third_quartile",b,c*a.u.VG))}a.lastUpdatedTimeSecs=b};
qK=function(a,b){for(var c=nK(a,b),d=g.t(a.ad.ea[b]||[]),e=d.next();!e.done;e=d.next())oK(a,e.value,c);a.ad.D[b]=!0};
lK=function(a,b){a.ad.D.hasOwnProperty(b)||qK(a,b)};
rK=function(a,b){return a.ad.D.hasOwnProperty(b)};
oK=function(a,b,c){var d=b.baseUrl;if(d){b=b.headers||[];for(var e=a.Lk,f=e.send,h={},l=cK(a.j),m=g.t(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();if(l=a.j.getVideoData(2))h.AD_CPN=l.clientPlaybackNonce;a=Object.assign(h,a.macros);f.call(e,d,a,c,b)}};
nK=function(a,b){var c=a.B;a=a.ad;if(a.Zz())if(b=rEa(b),null==b)c={};else{var d;(d=a.Ba()())||(d=(d=c.G)&&d.Lc?(d=d.Lc())&&2==d.getPlayerType()?sK(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.G.isFullscreen()},c=Zn(b,a.I,c)):c={}}else c={};return c?Object.assign({},c):{}};
jK=function(a){return!a.j.V().N("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
iK=function(a){return jK(a)&&!rK(a,"impression")};
tK=function(a){return jK(a)&&rK(a,"seek")};
uK=function(a,b){jK(a)?qK(a,b):lK(a,b)};
g.vK=function(a,b){this.state=a;this.rr=b};
wK=function(a,b){return g.U(a.state,b)&&!g.U(a.rr,b)?1:!g.U(a.state,b)&&g.U(a.rr,b)?-1:0};
g.xK=function(a,b){return 0<wK(a,b)};
yK=function(a,b,c,d,e,f){f=void 0===f?0:f;g.Mz.call(this);this.G=a;this.j=d;this.u=e;this.u.j[b.I]=this;this.u.subscribe("adactiveviewmeasurable",this.SS,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.US,this);this.u.subscribe("adoverlaymeasurableimpression",this.VS,this);this.u.subscribe("adoverlayunviewableimpression",this.WS,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.XS,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.YS,
this);this.u.subscribe("adviewableimpression",this.ZS,this);this.ad=b;this.ya=[];this.macros=c;this.T=!1;this.Aa=!VDa(new IJ(this.G.V()),f);this.C=!1};
tEa=function(a,b){g.fc(a.ya,b);sEa(a,b,1)};
uEa=function(a,b){if(a.T){var c=a.j,d=a.getDuration();!iK(c)&&0<d&&(kK(c,b),jK(c)?nEa(c,b,d):oEa(c,b,d,!1));a.C||(c=a.j,a=a.getDuration(),!iK(c)&&0<a&&(pEa(c,b),qEa(c,b,a,!1)))}};
sEa=function(a,b,c){0!=b.length&&(b=g.Vd(b,function(d){return new iB(d,c,d.id)}),a.ma("onAdUxUpdate",b))};
zK=function(a){var b={};b.abandon=a.abandonCommands&&UJ(a.abandonCommands.commands)||[];CJ.call(this,a,b)};
AK=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;HJ.call(this,"ad-action-interstitial",a,b,c,d);this.j=d;this.OL=e;this.iF=f};
BK=function(a,b,c,d,e,f){yK.call(this,a,b,c,d,e,1);this.D=b;this.B=b.j.durationMilliseconds||0;this.yc=null;this.I=f};
CK=function(a){CJ.call(this,a);this.u=Gu(this.j.playerVars||"")};
DK=function(){CJ.apply(this,arguments)};
vEa=function(a,b,c,d){this.C=a;this.j=b;this.B=c;this.u=d};
EK=function(a,b,c,d,e){yK.call(this,a,b,c,d,e);var f=this;this.I=b;this.B=new g.ho(function(){f.yn("load_timeout")},1E4);
g.L(this,this.B);this.D=new Jz(this);g.L(this,this.D)};
FK=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.t(b);for(c=b.next();!c.done;c=b.next())if(!KA(a.Ea,c.value))return!1;return!0};
wEa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
GK=function(a){return!!(a.h_&&a.slot&&a.layout)};
HK=function(a,b,c){HJ.call(this,"ad-message",a,void 0,b,c)};
IK=function(a,b,c,d,e,f,h,l){yK.call(this,a,b,c,d,e);var m=this;this.B=b;this.Z=b.j.durationMs||0;this.J=l;this.ea=!1;this.I=this.D=0;this.oa=function(){var n=m.G.getProgressState().current;n<m.D?m.xn():n>m.I&&m.pj()}};
zEa=function(a,b){if(a.J&&a.ea){a.ea=!1;var c=a.B.j;if(GK(c)){var d=c.slot;c=c.layout;b=xEa(b);a=g.t(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;JK(e.j(),f,h,l);yEa(e.j(),f)}}else g.aA(Error("adMessageRenderer is not augmented on termination"))}};
xEa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.aA(Error("AdNotify abandoned")),"abandoned";default:return g.aA(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.KK=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
g.LK=function(a,b){for(var c={},d=g.t(Object.keys(b)),e=d.next();!e.done;c={JF:c.JF},e=d.next())e=e.value,c.JF=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.JF}}(c));
return a};
MK=function(a,b,c,d){this.j=a;this.C=b;this.u=cK(c);this.B=d};
AEa=function(a){for(var b={},c=g.t(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
BEa=function(a,b,c,d){new MK(a,b,c,d)};
NK=function(a,b,c,d,e,f,h,l,m){yK.call(this,a,b,c,d,e,1);var n=this;this.MD=!0;this.J=m;this.B=b;this.D=f;this.ea=new Jz(this);g.L(this,this.ea);this.I=new g.ho(function(){n.yn("load_timeout")},1E4);
g.L(this,this.I);this.Z=h};
CEa=function(a){if(a.Z&&(a.G.V().experiments.gb("enable_topsoil_wta_for_halftime")||a.G.V().experiments.gb("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.$z(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.$z(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
QK=function(a,b){if(null!==a.J){var c=DEa(a);a=g.t(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(EEa(d,e,[],!1),FEa(d.B(),d.u),GEa(d.B(),d.u),HEa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}JK(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;OK(e.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.t(e.Qd);for(f=e.next();!f.done;f=e.next())f.value.Oj(h);yEa(d.B(),
d.u)}d.Fa.get().G.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&PK(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
RK=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""};
DEa=function(a){if(a=a.B.j.elementId)return a;g.$z(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
IEa=function(a){function b(h,l){h=a.r3;var m=Object.assign({},{});m.FINAL=bK(Pf("1"));m.SLOT_POS=bK(Pf("0"));return eK(h,dK(m),l)}
function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
m=a.pM(l,p);l=h(l,p,m,n);g.L(l,m);return l}}}
var d=c(function(h,l,m){return new BK(a.G,h,l,m,a.oz,a.jb)}),e=c(function(h,l,m){return new IK(a.G,h,l,m,a.oz,a.jb,a.Ml,a.ip)}),f=c(function(h,l,m){return new EK(a.G,h,l,m,a.oz,a.jb)});
this.fY=new vEa({create:function(h,l){var m=eK(b(h,l),dK(hEa(h)));l=a.pM(h,m);h=new NK(a.G,h,m,l,a.oz,a.jb,a.daiEnabled,function(){return new BEa(a.jb,m,a.G,a.Lk)},a.jp,a.Ih);
g.L(h,l);return h}},d,e,f)};
SK=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
JEa=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{PY:new Ko(b,c),g_:new VA(b,c-b,a.context,a.identifier,a.event,a.j)}};
TK=function(){this.j=[]};
UK=function(a,b,c){var d=g.mc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
KEa=function(){this.j=new TK};
VK=function(a){this.j=a};
LEa=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.t(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
MEa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
NEa=function(a,b,c){a.j&&WK({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
OEa=function(a,b){a.j&&WK({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.tY}})};
PEa=function(a,b){WK({daiStateTrigger:{errorType:a,contentCpn:b}})};
WK=function(a){g.gw("adsClientStateChange",a)};
XK=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Bf=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
REa=function(a,b,c,d,e,f){f();var h=a.G.getVideoData(1),l=a.G.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.J);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.Bf=!0,(a.G.N("send_csi_info_for_ad_to_video_killswitch")||YB("_start",a.actionType))&&
QEa(a)))};
QEa=function(a){if(a.Bf)if(a.G.N("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)HB("video_to_ad");else if(a.G.N("web_csi_via_jspb")){var b=new Rt;g.F(b,21,SEa(a.B));g.F(b,7,4);var c=new Pt;g.F(c,8,2);H(b,Pt,22,c);g.F(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.F(b,76,a.contentCpn),a.videoId&&g.F(b,78,a.videoId)):(a.adCpn&&g.F(b,76,a.adCpn),a.adVideoId&&g.F(b,78,a.adVideoId));a.adFormat&&g.F(b,12,a.adFormat);a.contentCpn&&
g.F(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.F(b,28,a.adCpn);a.adVideoId&&g.F(b,20,a.adVideoId);XB(b,a.actionType)}else b={adBreakType:TEa(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)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),KB(b,a.actionType)};
TEa=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"}};
SEa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
g.VEa=function(a){return(a=UEa[a.toString()])?a:"LICENSE"};
YK=function(){g.K.call(this);this.B=null;this.T=this.J=!1;this.D=new g.Mf;g.L(this,this.D)};
ZK=function(a){a=a.Kz();return 1>a.length?NaN:a.end(a.length-1)};
WEa=function(a){!a.u&&Bza()&&(a.C?a.C.then(function(){return WEa(a)}):a.Vf()||(a.u=a.Fq()))};
XEa=function(a){a.u&&(a.u.dispose(),a.u=void 0)};
YEa=function(a,b,c){a.Co()||a.getCurrentTime()>b||10<c||(a.play(),g.Ru(function(){YEa(a,a.getCurrentTime(),c+1)},500))};
ZEa=function(a,b){a.B&&a.B.equals(b)||(a.B&&a.B.dispose(),a.B=b)};
$K=function(a){return Aza(a.jh(),a.getCurrentTime())};
$Ea=function(a,b){if(0===a.qj()||0<a.cf())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Kz(),a.length||!c)?fF(a,b):c};
aL=function(a){a.Vf()&&(pv&&0<a.getCurrentTime()&&a.seekTo(0),a.WE(),a.load(),ZEa(a,null));delete a.C};
aFa=function(a){var b=a.jh();return 0<hF(b)&&a.getDuration()?b.end(b.length-1):0};
bL=function(a){switch(a.cf()){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.cL=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
dL=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.cL(b,c)};
eL=function(a,b){return dL(a,a.state|b)};
fL=function(a,b){return dL(a,a.state&~b)};
gL=function(a,b,c){return dL(a,(a.state|b)&~c)};
g.U=function(a,b){return!!(a.state&b)};
g.hL=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.iL=function(a){return g.U(a,4)};
g.jL=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)};
kL=function(a){return a.Rc()&&!g.U(a,16)&&!g.U(a,32)};
g.lL=function(a){return g.U(a,1)&&!g.U(a,2)};
mL=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1};
nL=function(a,b,c,d,e,f,h,l){g.Mz.call(this);this.Eh=a;this.G=b;this.u=d;this.J=this.u.u instanceof CJ?this.u.u:null;this.j=null;this.ea=!1;this.D=c;this.Z=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ya=0;this.Aa=!1;this.Ho=e;this.cw=f;this.ws=h;this.oa=!1;this.daiEnabled=l};
bFa=function(a){if(DJ(a.G)){var b=a.G.getVideoData(2);b=a.u.T[b.Gc]||null;if(!b)return a.mq(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.By(b)}else if(1===a.G.getPresentingPlayerType()&&a.j)return a.mq(),!0;return!1};
cFa=function(a,b){a.D.Nv(a.u.j.j,b,a.TP(),a.UP(),a.isLiveStream())};
oL=function(a){var b=a.Eh,c=a.u.j;if(c instanceof gB){if(b.T&&eua(c)&&g.U(b.j.Db(1),64)){var d=1E3*b.j.getCurrentTime(1)||0;d!=c.start&&c.contains(d)&&c.deactivate()}b.B.has(c)?g.$z(Error(c.toString()+" has already been seen")):(b.xs.add(c),b.B.set(c,a),hB(c)||b.j.xe([c],1))}else g.$z(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.I&&(dFa(a,a.VP()),a.u.I=!0)};
dFa=function(a,b){for(var c=pL(a),d=a.u.j.start,e=[],f=g.t(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=eFa(h);e.push({externalVideoId:h.Wf(),originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.j.start;h.B.B=c;if(!fFa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+eFa(p)},0);
NEa(a.Ho,a.u.j.nw(),b);OEa(a.Ho,{cueIdentifier:a.u.C&&a.u.C.identifier,tY:e})};
eFa=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};
pL=function(a){var b=a.u.j.end;a=UK(a.cw,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
fFa=function(a,b,c,d){var e=a.ws.create(b,dK(gEa(a.u)),a.u.j.j);c=e.HP(c,d);g.Ze(e);if(!c)return!1;a.u.T[c]=b;return!0};
rL=function(a,b){b=void 0===b?!1:b;a.ea=!0;g.Ze(a.j);a.D.yx();var c=a.u.J;if(null!==c){var d=a.Ho,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,h=pL(a);d.j&&WK({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.Cq()).toString()}});a.u.J=null}b||a.daiEnabled?qL(a.Eh,!0):a.Z&&a.KN()&&a.eA()?qL(a.Eh,!1,gFa(a)):qL(a.Eh,!1);cFa(a,!0)};
gFa=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Sa()/1E3)-a.ya;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
hFa=function(a,b,c){this.j=a;this.u=b;this.B=c};
iFa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
g.sL=function(a,b){g.rc(b,function(c){var d={cttAuthInfo:lA(a)||void 0,Qk:a};if(g.wu("il_via_jspb")){var e=new Mt;e.j(a);c=c.getAsJspb();H(e,ts,2,c);g.F(e,4,4);"UNDEFINED_CSN"===a?nA("visualElementShown",d,void 0,e):az(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?nA("visualElementShown",d,e):g.gw("visualElementShown",e,d)})};
g.tL=function(a,b){g.rc(b,function(c){vta(void 0,a,c)})};
g.uL=function(a,b,c){wta(void 0,a,b,c)};
vL=function(){this.I=[];this.J=[];this.j=[];this.D=[];this.T=[];this.u=new Set;this.Z=new Map};
wL=function(){vL.instance||(vL.instance=new vL);return vL.instance};
mFa=function(a,b,c,d){d=void 0===d?{}:d;Object.values(jFa).includes(b)||(g.aA(new g.Yv("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||a.j.push({rootVe:b,key:d.key||""});a.I=[];a.J=[];d.AP?kFa(a,b,c,d):lFa(a,b,c,d)};
nFa=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.kA(c),f=g.jA(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.oA(a.client,e,f,[g.dA(d.response.trackingParams)]);var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.oA(a.client,e,f,[g.dA(d.playerResponse.trackingParams)])}})};
yL=function(a,b){xL(a,g.dA(b))};
xL=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.I.push([b,c]);else{var e=g.kA(d);c=c||g.jA(d);e&&c&&g.oA(a.client,e,c,[b])}};
oFa=function(a,b,c,d){d=void 0===d?0:d;var e=g.kA(d);d=b||g.jA(d);e&&d&&(a=a.client,b={cttAuthInfo:lA(e)||void 0,Qk:e},g.wu("il_via_jspb")?(c=new Nt,c.j(e),d=d.getAsJspb(),H(c,ts,2,d),"UNDEFINED_CSN"===e?nA("visualElementStateChanged",b,void 0,c):Jpa(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?nA("visualElementStateChanged",b,c):a?Ry("visualElementStateChanged",c,a,b):g.gw("visualElementStateChanged",c,b)))};
kFa=function(a,b,c,d){d=void 0===d?{}:d;a.u.add(d.layer||0);a.B=function(){lFa(a,b,c,d);var h=g.jA(d.layer);if(h){for(var l=g.t(a.I),m=l.next();!m.done;m=l.next())m=m.value,xL(a,m[0],m[1]||h,d.layer);h=g.t(a.J);for(l=h.next();!l.done;l=h.next())l=l.value,oFa(a,l[0],l[1])}};
c||g.kA(d.layer)||a.B();if(d.AP)for(var e=g.t(d.AP),f=e.next();!f.done;f=e.next())nFa(a,f.value,d.layer);else g.$z(Error("Delayed screen needs a data promise."))};
lFa=function(a,b,c,d){d=void 0===d?{}:d;d.layer||(d.layer=0);var e=void 0!==d.j3?d.j3:d.layer;var f=g.kA(e);e=g.jA(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m;h=g.uu("EVENT_ID");"UNDEFINED_CSN"===f&&h&&(m={servletData:{serializedServletEventId:h}});try{var n=uta(a.client,b,l,d.wP,d.cttAuthInfo,m,d.U5a)}catch(p){ita(p,{aB:b,rootVe:e,parentVisualElement:c,D5a:f,r6a:l,wP:d.wP});g.$z(p);
return}qta(n,b,d.layer,d.cttAuthInfo);if(b=f&&"UNDEFINED_CSN"!==f&&e){a:{b=g.t(Object.values(pFa));for(c=b.next();!c.done;c=b.next())if(g.kA(c.value)===f){b=!0;break a}b=!1}b=!b}b&&vta(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=n||"");KB({clientScreenNonce:n});e=wA.getInstance();g.wu("use_ts_visibilitylogger")?(e=vA(),g.wu("safe_logging_library_killswitch")?(e.clear(),e.csn=g.kA()):Cu(tA().u).bind(tA())()):e.clear();e=g.jA(d.layer);f&&"UNDEFINED_CSN"!==f&&e&&
(g.wu("web_mark_root_visible")||g.wu("music_web_mark_root_visible"))&&g.pA(n,e);a.u.delete(d.layer||0);a.B=void 0;f=g.t(a.Z);for(n=f.next();!n.done;n=f.next())b=g.t(n.value),n=b.next().value,b=b.next().value,b.has(d.layer)&&e&&xL(a,n,e,d.layer);for(d=0;d<a.D.length;d++){f=a.D[d];try{f()}catch(p){g.$z(p)}}for(d=a.D.length=0;d<a.T.length;d++){f=a.T[d];try{f()}catch(p){g.$z(p)}}};
zL=function(){this.j={};if(this.u=Pma()){var a=g.fv("CONSISTENCY");a&&qFa(this,{encryptedTokenJarContents:a})}};
qFa=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.ev("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
BL=function(){var a=g.uu("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.uu("INNERTUBE_CLIENT_NAME")&&(this.localStorage=AL(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
AL=function(a){return void 0===a.localStorage?new aw("yt-client-location"):a.localStorage};
g.CL=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.uu("INNERTUBE_CONTEXT");if(!d)return g.$z(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.zf(d);g.wu("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.uu("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.Mv.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.Nv(0,165)?h="USER_INTERFACE_THEME_DARK":g.Nv(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.wu("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:Msa()||h;e.userInterfaceTheme=
f;if(!b){if(f=hna())e.connectionType=f;g.wu("web_log_effective_connection_type")&&(f=jna())&&(d.client.effectiveConnectionType=f)}var l;if(g.wu("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.Iu(g.C.location.href);!g.wu("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.wu("kevlar_woffle")&&dna.instance&&(m=dna.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=Kv(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.wu("web_lr_app_quality_killswitch")&&(m=g.uu("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.uu("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.wu("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(D){}n=void 0}n&&(e.timeZone=n)}(n=yu())?e.experimentsToken=n:delete e.experimentsToken;n=zu();zL.instance||(zL.instance=new zL);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:nf(zL.instance.j)});!g.wu("web_prequest_context_killswitch")&&
(n=g.uu("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.Mv.getInstance();n=g.Nv(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.wu("warm_op_csn_cleanup")?c&&(b=g.kA())&&(d.clientScreenNonce=b):!b&&(b=g.kA())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ga("yt.mdx.remote.remoteClient_"))d.remoteClient=a;BL.getInstance().setLocationOnInnerTubeContext(d);try{var p=
Ou(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.t(Object.entries(p)),w=r.next();!w.done;w=r.next()){var y=g.t(w.value),z=y.next().value,B=y.next().value;p=z;q=B;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(D){g.$z(D)}return d};
DL=function(){this.ST=!0};
EL=function(){DL.apply(this,arguments);this.Zt={}};
GL=function(){FL||(FL=new EL);return FL};
HL=function(a,b){b?a.Zt.Authorization="Bearer "+b:delete a.Zt.Authorization};
rFa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
sFa=function(){var a=null;cna().then(function(b){return a=b},function(b){return a=rFa(b)});
return a};
tFa=function(){var a=Fh(1E3,"NO_BID");return Bh($da([cna(),a]).jj(rFa),function(){a.cancel()})};
uFa=function(a){return a.Dd?g.Nv(g.Mv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
IL=function(a){this.player=a;this.u=this.j=1};
KL=function(a,b,c,d){var e=void 0===c?{}:c;c=e.Xy;e=e.Yd;d=void 0===d?"":d;var f=a.player.getVideoData(1),h=a.player.V().Em,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.durationSecs:0,AUTONAV_STATE:uFa(a.player.V()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Cq(),LACT:dy(),LIVE_INDEX:c?a.u++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.fb().Wi().height,
P_W:a.player.fb().Wi().width,YT_REMOTE:h?h.join(","):""},m=zma(yma);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};Nu(b)&&(d.sts="19310",(c=a.player.V().forcedExperiments)&&(d.forced_experiments=c));var n=Ku(g.$n(b,l),d);a.player.getVideoData();return 2!==n.split("?").length?zh(Error("Invalid AdBreakInfo URL")):g.yH(a.player.V(),null==f?void 0:f.oauthToken).then(function(p){if(p&&Mu()){var q=GL();HL(q,p)}p=a.player.Il(q);q=vFa(a,n,l,f.isMdxPlayback);return g.JL(p,q,"/youtubei/v1/player/ad_break").then(function(r){return r})})};
yFa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Lu(b),f=wFa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=wFa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Fu(Ou(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];xFa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
BFa=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in zFa&&(f.clientName=zFa[d[0]]),d[1]in AFa&&(f.platform=AFa[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
vFa=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=CFa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=DFa.test(b),l=EFa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=FFa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=GFa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=a.player.V();var q=bH(p.ya);p=p.N("embeds_web_enable_pem_domain_fix_for_ad_requests")?q:"www.youtube-nocookie.com"===q?"www.youtube.com":
q;q=g.CL(a.player.getVideoData(1).ya,!0);var r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";yFa(q,b,r.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:19310,autonavState:uFa(a.player.V())};d&&(d={},BFa(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=HFa.includes(p)?void 0:g.fv("PREF")){for(var y=d.split(RegExp("[:&]")),z=0,B=y.length;z<B;z++){var D=y[z].split("=");if(("SML"===
D[0].toUpperCase()||"GSML"===D[0].toUpperCase())&&1<D.length&&"TRUE"===D[1].toUpperCase()){q.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in IFa)for(d=d.split(RegExp("[:&]")),z=IFa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,y="f"+(1+Math.floor(z/31)).toString(),z=1<<Math.floor(z%31),B=0,D=d.length;B<D;B++){var G=d[B].split("=");if(G[0]===y&&parseInt("0x"+G[1],16)&z){d=!0;break a}}d=!1}w.autoCaptionsDefaultOn=d}b=JFa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=
[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,context:q,adSignalsInfoString:Fu(Ou(r.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};
LL=function(a,b,c,d,e,f){g.Mz.call(this);this.I=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
KFa=function(a,b){var c={isEmpty:!0,ZQ:!1,Do:[]};if(!b)return c;b&&b.trackingParams&&yL(wL(),b.trackingParams);if(b&&b.adThrottled)return c.ZQ=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
if(g.Tb(b))return c;if(0<a.j.j.end){var d=a.j.j.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.Do=b;
c.isEmpty=!1;return c};
ML=function(){CJ.apply(this,arguments)};
NL=function(a,b,c,d,e,f,h,l){nL.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.T=LFa(this.oD())};
MFa=function(a){a.C++;var b=a.oD();b?(0<a.C&&a.D.UL(),a.By(b)):rL(a)};
LFa=function(a){return a?NFa.some(function(b){return a instanceof b}):!1};
OFa=function(a){this.j=new hFa(function(b){b=new nL(a.Eh,a.G,a.vP(),b,a.Ho,a.cw,a.ws,a.daiEnabled);oL(b);return b},function(b){return new LL(a.hH,a.Eh,a.G,a.us,b,a.Ho)},function(b){b=new NL(a.Eh,a.G,a.vP(),b,a.Ho,a.cw,a.ws,a.daiEnabled);
oL(b);return b})};
PFa=function(a,b){SJ.call(this);a.adStart&&g.N(a.adStart,OL)&&(g.gw("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),TJ(this,new DK(g.N(a.adStart,OL))));if(a.linearAds){var c=[];a=g.t(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(g.N(d,PL)){var e=b(g.N(d,PL));TJ(this,e);c.push(e.u);g.N(d,PL).isCritical&&(this.u=1)}else g.N(d,QL)?(d=new zK(g.N(d,QL)),TJ(this,d)):g.N(d,RL)&&(d=new CK(g.N(d,RL)),TJ(this,d),this.u=1);this.j.filter(function(f){return f instanceof
RJ}).forEach(function(f,h){f instanceof RJ&&(h=new MJ(h,c),f.B=h)})}}};
RFa=function(a,b){SJ.call(this);TJ(this,QFa(this,a.adVideoStart));var c=a.linearAd;b=c&&g.N(c,PL)?b(g.N(c,PL)):null;TJ(this,b);(a=a.adVideoEnd)?g.N(a,QL)?(this.u=1,a=new zK(g.N(a,QL))):a=null:a=null;TJ(this,a)};
QFa=function(a,b){return null==b?null:g.N(b,QL)?(a.u=1,new zK(g.N(b,QL))):g.N(b,OL)?(g.gw("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new DK(g.N(b,OL))):null};
SFa=function(a,b){this.B=new YDa;this.j=a;this.u=b};
TFa=function(a){this.j=a};
UFa=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.j.create(e,f):null;return new bEa(b,c,h,d)}catch(l){g.$z(l)}};
VFa=function(a){var b=new TFa(a.gY);return{SP:function(){return b}}};
SL=function(a){g.K.call(this);var b=this;this.u=a;this.j=null;g.af(this,function(){return b.j=null});
var c=Iz(a);if(c){var d=function(){b.j&&b.j(!!Gz())};
this.u.addEventListener(c,d);g.af(this,function(){b.u.removeEventListener(c,d)})}};
TL=function(a){g.K.call(this);this.j=a};
WFa=function(a){var b=window.document;return g.rH(a.V())?new SL(b):new TL(a)};
XFa=function(a){g.K.call(this);this.FW=new MEa(a.G,a.contentCpn,a.daiEnabled)};
YFa=function(a){UL=a&&a.data};
ZFa=function(a){VL=a&&a.data};
$Fa=function(a){WL=a&&a.data};
aGa=function(){XL=WL=VL=UL=null};
$L=function(a){g.K.call(this);var b=this;this.pd=a;this.Te=new Map;this.j=new Map;YL(this,"commandExecutorCommand",function(c,d,e){b.Uf(c.commands,d,e)});
ZL(this,"commandExecutorCommand",function(c,d,e){bGa(b,c.commands,d,e)});
YL(this,"clickTrackingParams",function(){});
ZL(this,"clickTrackingParams",function(){})};
cGa=function(a,b){YL(a,b.pn(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
dGa=function(a,b){ZL(a,b.pn(),function(c,d,e){b.To(c,d,e)})};
YL=function(a,b,c){a.isDisposed();a.Te.get(b)&&g.$z(Error("Extension name "+b+" already registered"));a.Te.set(b,c)};
ZL=function(a,b,c){a.isDisposed();a.j.get(b)&&g.$z(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
bGa=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[],h=g.t(b);for(b=h.next();!b.done;b=h.next())b=b.value,g.N(b,eGa)||g.N(b,fGa)?e.push(b):f.push(b);e=g.t(e);for(b=e.next();!b.done;b=e.next())aM(a,b.value,c,d);f=g.t(f);for(b=f.next();!b.done;b=f.next())aM(a,b.value,c,d)};
gGa=function(a,b){a.pd.get().Qa("innertubeCommand",{openPopupAction:b})};
hGa=function(a,b){a.pd.get().Qa("innertubeCommand",{confirmDialogEndpoint:b})};
aM=function(a,b,c,d){a.isDisposed();b.loggingUrls&&iGa(a,"loggingUrls",b.loggingUrls,c,d);b=g.t(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?gGa(a,f):"confirmDialogEndpoint"===e?hGa(a,f):jGa.hasOwnProperty(e)||iGa(a,e,f,c,d)}};
kGa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Te.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.$z(f)}else b=new g.Yv("Unhandled field",b),g.aA(b)};
iGa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.$z(f)}else b=new g.Yv("Unhandled field",b),g.aA(b)};
mGa=function(a,b,c,d){for(var e=!1,f=g.t(b.Tj.entries()),h=f.next();!h.done;h=f.next())h=g.t(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.slotType&&"core"===h.eb&&(e=!0);e?(d=lGa(b,d))?c.YI(d):PA("No triggering layout ID available when attempting to mute."):g.uh(function(){a.mq()})};
lGa=function(a,b){if(b)return b;a=g.t(a.Tj.entries());for(b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.slotType&&"core"===b.eb)return c.layoutId}};
nGa=function(a){var b=new gK(a.hq),c=new hK(b);return{pZ:function(){return b},
JI:function(){return c}}};
bM=function(a){XK.call(this,a)};
rEa=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "skip":case "unmuted_skip":return"skip";
case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
oGa=function(a){this.G=a;var b=Tk(Wn),c=a.Oe();b.B!==c&&((b.B=c)||fka(b));a.V().N("active_view_stop_starting_measurement_on_loaded")&&yk(Yk().featureSet,"ssmol",1)};
lEa=function(a){Yn(Tk(Wn),a)};
pGa=function(a){g.K.call(this);this.j=a;this.u=new oGa(a.G)};
qGa=function(a){return function(){return new bM(a.j.G)}};
rGa=function(a){return function(b,c){return new mEa(b,a.u,c,a.j.G,a.j.Lk,a.j.daiEnabled)}};
cM=function(a,b,c,d,e){g.Mz.call(this);var f=this;this.j=b;this.Ba=null;this.Xa=c;this.kb=e.Ih;this.Wa=e.Dr;this.u=null;this.B=new Map;c=this.j.V().experiments;var h=nGa({hq:b.getVideoData(1)}),l=new pGa({Lk:h.JI(),G:b,daiEnabled:!1});g.L(this,l);this.xs=new Set;this.GD=-1;this.Z=[];this.ea=new Map;this.I=new Map;this.J=new Set;this.C=new Jz(this);g.L(this,this.C);this.D=new Jz(this);g.L(this,this.D);this.oa=this.Sa=this.ya=!1;this.T=g.rH(b.V());this.qb=d;b=new XFa({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
C5a:this,daiEnabled:!1,G:this.j});g.L(this,b);this.ib=b.FW;this.Ma=(new KEa).j;var m=Mca(dK(cK(this.j)));e=new IEa({jb:this,oz:LJ(),Lk:h.JI(),G:this.j,r3:m,pM:rGa(l),daiEnabled:!1,jp:e.jp,Ih:this.kb,Ml:e.Ml,ip:e.ip});this.Aa=(new OFa({us:this.Xa,ws:e.fY,hH:a,Eh:this,oz:LJ(),vP:qGa(l),Ho:this.ib,cw:this.Ma,G:this.j,L6a:m,pM:function(n){return rGa(l)(n,m)},
daiEnabled:!1})).RP();this.Ka=VFa({gY:new SFa(c,function(n){return f.I.has(n)?f.I.get(n):null})}).SP();
this.Oa=WFa(this.j);g.L(this,this.Oa);this.yb=vH(this.j.V())?this.j.V().experiments.gb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.V().experiments.gb("align_ad_to_video_player_lifecycle_for_bulleit")};
xGa=function(a,b){if(a.j.getVideoData(1).Gs||g.uu("SERVED_VIA_SPF_HISTORY"))dM(a);else{if(EJ(a.j)){var c=sGa(a.j);c.addEventListener("updateKevlarOrC3Companion",YFa);c.addEventListener("updateEngagementPanelAction",ZFa);c.addEventListener("changeEngagementPanelVisibility",$Fa);window.addEventListener("yt-navigate-start",aGa)}a.C.S(a.j,"applicationplayerstatechange",a.v0);a.C.S(a.j,g.eB("ad"),a.lK,a);a.C.S(a.j,g.fB("ad"),a.J0,a);a.C.S(a.j,"aduxclicked",a.h0);a.C.S(a.j,"videodatachange",a.W2);b=tGa(b);
b=uGa(a,b);b=vGa(a,b);0<b.length&&wGa(a,b);g.uh(a.O4,a)}};
tGa=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(PA("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
uGa=function(a,b){a.ea=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.ea.set(c.elementId,c),!1):!0})};
vGa=function(a,b){a.I=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.I.set(c.hostElementId,c),!1):!0})};
yGa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.$z(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof LL?!1:c instanceof nL?!c.nt():!0})};
dM=function(a){var b=zGa(a);if(0<b.length){var c=g.YF(a.j.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.T&&g.fH(a.j.V())?(c=new g.ho(function(){AGa(a,b)},c),g.L(a,c),c.start()):g.uh(function(){AGa(a,b)})}};
BGa=function(a,b){if(!b)return{};(a=!!a.u&&a.u||null)?(a=a.j,b=a.ad.Zz()?nK(a.j,b):{}):b={};return b};
zGa=function(a){for(var b=CGa(a),c=g.t(b),d=c.next();!d.done;d=c.next())a.xs.delete(d.value);return b};
CGa=function(a){var b=[];a=g.t(a.xs);for(var c=a.next();!c.done;c=a.next())c=c.value,hB(c)&&b.push(c);return b};
DGa=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Ka,e=d.create;var f=1E3*a.j.getDuration(1);f=new Rta(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.V().experiments.gb("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Z.length,c);a.Z=a.Z.concat(b);return b};
AGa=function(a,b){if(!a.isDisposed()){b=g.t(b);for(var c=b.next();!c.done;c=b.next())a.lK(c.value)}};
wGa=function(a,b){b=DGa(a,b);0==b.length||b.map(function(c){return a.Aa.create(c)})};
EGa=function(a){a.ya||(a.D.S(a.j,"presentingplayerstatechange",a.GW),a.D.S(a.j,"internalAbandon",a.T_),a.D.S(a.j,"progresssync",a.Z2),a.D.S(a.j,"onVolumeChange",a.b3),a.D.S(a.Oa,"fullscreentoggled",a.R0),a.ya=!0);g.po(a.j.getRootNode(),"ad-showing");g.po(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.gb("enable_html5_teal_ad_badge")&&EJ(a.j)&&g.po(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
qL=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.nt()&&(DJ(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&FGa(a,a.u);a.u=null;a.GD=-1;e&&GGa(a,c);a.oa||a.Wa.Rs();b&&d&&(d.JN().B=!1,oL(d))};
GGa=function(a,b){g.Lz(a.D);a.ya=!1;g.ro(a.j.getRootNode(),"ad-showing");a.yb?(a.oa||a.Wa.Rs(),HGa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),HGa(a));g.ro(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.gb("enable_html5_teal_ad_badge")&&g.ro(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
HGa=function(a){if(a.Sa)!a.T&&g.fH(a.j.V())&&a.j.yp();else if(a.j.yp(),!a.T){var b=a.j.Db(1);g.iL(b)&&!g.U(b,2)&&a.j.playVideo()}};
FGa=function(a,b){a=a.B;for(var c=g.t(a),d=c.next();!d.done;d=c.next()){d=g.t(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.Ze(b)};
eM=function(a){g.K.call(this);this.u=a};
fM=function(a){eM.call(this,!0);this.j=a};
IGa=function(a){function b(e){return{toString:e}}
var c={},d=a.getVideoData(1);c.CPN=b(function(){return d&&d.clientPlaybackNonce||null});
c.ASR=b(function(){return d&&d.ul||null});
c.EI=b(function(){return d&&d.eventId||null});
c.AD_CPN=b(function(){var e;return(null==(e=a.getVideoData(2))?void 0:e.clientPlaybackNonce)||""});
c.AD_MT=b(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
c.MT=b(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
c.P_H=b(function(){return a.getPlayerSize().height.toString()});
c.PV_H=c.P_H;c.P_W=b(function(){return a.getPlayerSize().width.toString()});
c.PV_W=c.P_W;c.CONN="0";c.WT=b(function(){return Date.now().toString()});
c.LACT=b(function(){return dy().toString()});
c.VIS=b(function(){return a.getVisibilityState().toString()});
c.VOL=b(function(){return a.getVolume().toString()});
return c};
JGa=function(a,b){g.K.call(this);var c=this;this.B=[];this.J=!1;this.u=0;this.D=this.I=this.C=!1;this.ea=null;var d=(0,g.Pa)(a,b);this.j=new g.ho(function(){return d(c.ea)},300);
g.L(this,this.j);this.Z=this.T=Infinity};
KGa=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};
gM=function(){var a="ytp-id-"+LGa.toString();LGa++;return a};
g.hM=function(a){g.K.call(this);this.wc={};this.We={};this.element=this.createElement(a)};
iM=function(a,b,c,d){if("{{"===d.substr(0,2))a.We[d]=[b,c];else return d};
MGa=function(a,b){var c=[];if(!b)return c;b=g.t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.F?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.bh("BR"));c.push(g.ch(f))}):c.push(g.ch(d))}return c};
jM=function(a,b,c,d){if("child"===c){g.dh(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.F?[d]:d;c=MGa(a,e);c=g.t(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Il(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.hg(g.jg(a))),b.setAttribute(c,a))};
g.V=function(a){g.hM.call(this,a);this.sb=!0;this.ya=!1;this.listeners=[]};
g.kM=function(a,b){b?a.show():a.hide()};
g.lM=function(a){g.V.call(this,a);this.Wa=new g.Mz;g.L(this,this.Wa)};
mM=function(a,b,c,d,e,f,h,l){l=void 0===l?null:l;g.lM.call(this,c);this.api=a;this.jb=b;this.macros={};this.componentType=d;this.J=null;this.qb=l;this.layoutId=e;this.j=f;this.bb=h;this.Xa=null;this.tL=new fM(this.element);g.L(this,this.tL);this.kb=this.S(this.element,"click",this.onClick);this.Aa=[];this.oa=new JGa(this.onClick,this);g.L(this,this.oa);this.yb=!1;this.Z=null};
nM=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.aA(Error("Got null or undefined adText object")),"";var c=g.Mg(a.text);if(!a.isTemplated)return c;if(null==b)return g.aA(Error("Missing required parameters for a templated message")),c;a=g.t(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.t(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
NGa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Tb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.Mg(a.thumbnails[0].url)};
OGa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.Tb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Gg(0,0):new g.Gg(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
PGa=function(){return{F:"svg",X:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},W:[{F:"path",X:{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.QGa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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"}}]}};
oM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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.pM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{F:"path",X:{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.qM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{F:"path",X:{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"}}]}};
RGa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{F:"path",X:{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"}}]}};
SGa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
TGa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.rM=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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"}}]}};
UGa=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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"}}]}};
VGa=function(){return{F:"svg",X:{viewBox:"0 0 24 24"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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"}}]}};
WGa=function(){return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{F:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",X:{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"}}]}};
XGa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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.sM=function(){return{F:"svg",X:{viewBox:"0 0 24 24"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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"}}]}};
tM=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{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"}}]}};
YGa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
uM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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.vM=function(){return{F:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{F:"path",X:{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"}}]}};
wM=function(){return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{F:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{F:"path",X:{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"}}]}};
ZGa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
$Ga=function(){return{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",K:"ytp-svg-fill",X:{"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"}}]}};
aHa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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"}}]}};
xM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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"}}]}};
bHa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.yM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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.zM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.AM=function(){return{F:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},W:[{F:"path",X:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
cHa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
dHa=function(){return{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{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"}}]}};
BM=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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"}}]}};
CM=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return wM();case "CHECK_BOX":return{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",
fill:"#d4d4d4"}},{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.rM();case "INFO_OUTLINE":return WGa();case "REMOVE_CIRCLE":return{F:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",X:{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 uM();case "LIKE":return g.sM();case "DISLIKE":return VGa();default:return g.aA(new g.Yv("Unexpected icon:",
a)),null}};
DM=function(a,b,c,d,e,f,h,l,m){f=void 0===f?[]:f;h=void 0===h?"button":h;l=void 0===l?!1:l;f={F:"button",Ga:["ytp-ad-button"].concat(f)};null!=m&&(f.X={tabindex:m});mM.call(this,a,b,f,h,c,d,e);this.u=this.B=this.C=null;this.D=l;this.hide()};
eHa=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||[]};
EM=function(){g.K.call(this);var a=this;this.j=new Map;this.u=cpa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.nx(b[c])})};
fHa=function(){null==FM&&(FM=new EM);return FM};
GM=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=gHa(a))){b=ah("SPAN",null,b);break a}b=g.ch(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(hHa(e,b))}return 1==c.length?c[0]:ah("SPAN",null,c)};
hHa=function(a,b){var c=null,d=a.text;b&&(d=gHa(d)||d);a.bold&&(c=ah("B",null,c||d));a.italics&&(c=ah("I",null,c||d));a.strikethrough&&(c=ah("STRIKE",null,c||d));a.navigationEndpoint&&g.N(a.navigationEndpoint,g.TI)&&(b=g.N(a.navigationEndpoint,g.TI),c=ah("A",null,c||d),g.xg(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),fHa().register(c,a),g.po(c,"ytp-ad-has-logging-urls"));
return c||ah("SPAN",null,d)};
gHa=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(ah("BR")),b.push(a[c]);return b}return null};
HM=function(a,b,c,d,e,f,h,l,m){h=void 0===h?!1:h;l=void 0===l?[]:l;m=void 0===m?"ad-hover-text-button":m;mM.call(this,a,b,{F:"span",Ga:["ytp-ad-hover-text-button"].concat(l)},m,c,d,e);this.button=this.B=null;this.I=h;this.D=f;this.hide()};
IM=function(a){return a&&a.thumbnails&&!g.Tb(a.thumbnails||null)&&a.thumbnails[0].url?g.Mg(a.thumbnails[0].url):""};
JM=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;mM.call(this,a,b,{F:"img",K:"ytp-ad-image"},"ad-image",c,d,e,void 0===f?null:f);this.u=h;this.hide()};
KM=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;h=void 0===h?"confirm-dialog":h;mM.call(this,a,b,{F:"div",Ga:["ytp-ad-confirm-dialog-background"],W:[{F:"div",K:"ytp-ad-confirm-dialog-container",W:[{F:"div",Ga:["ytp-ad-confirm-dialog"].concat(f),X:{role:"dialog",tabindex:"-1"},W:[{F:"div",K:"ytp-ad-confirm-dialog-title",qa:"{{title}}"},{F:"div",K:"ytp-ad-confirm-dialog-messages"},{F:"div",K:"ytp-ad-confirm-dialog-confirm-container",W:[{F:"button",K:"ytp-ad-confirm-dialog-cancel-button",qa:"{{cancelLabel}}"},
{F:"button",K:"ytp-ad-confirm-dialog-confirm-button",qa:"{{confirmLabel}}"}]}]}]},{F:"button",Ga:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],W:[{F:"span",K:"ytp-ad-button-icon",W:[g.rM()]}]}]},h,c,d,e);this.T=this.Da("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Da("ytp-ad-confirm-dialog-cancel-button");this.I=this.Da("ytp-ad-confirm-dialog-confirm-button");this.ea=this.Da("ytp-ad-confirm-dialog-messages");this.C=null;this.u=new Jz;g.L(this,this.u);
this.B=null;this.hide()};
iHa=function(a,b){if(b.title){var c=g.jB(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.t(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=GM(d.value),a.ea.appendChild(d)}b.cancelLabel&&(c=g.jB(b.cancelLabel),a.updateValue("cancelLabel",c),a.u.S(a.D,"click",function(e){return a.yG(e)}));
b.confirmLabel&&(b=g.jB(b.confirmLabel),a.updateValue("confirmLabel",b),a.u.S(a.I,"click",function(e){return a.jK(e)}));
a.u.S(a.T,"click",function(e){return a.hK(e)})};
LM=function(a,b,c,d,e,f,h){f=void 0===f?[]:f;h=void 0===h?"toggle-button":h;var l=GJ("ytp-ad-toggle-button-input");mM.call(this,a,b,{F:"div",Ga:["ytp-ad-toggle-button"].concat(f),W:[{F:"label",K:"ytp-ad-toggle-button-label",X:{"for":l},W:[{F:"span",K:"ytp-ad-toggle-button-icon",X:{role:"button","aria-label":"{{tooltipText}}"},W:[{F:"span",K:"ytp-ad-toggle-button-untoggled-icon",qa:"{{untoggledIconTemplateSpec}}"},{F:"span",K:"ytp-ad-toggle-button-toggled-icon",qa:"{{toggledIconTemplateSpec}}"}]},
{F:"input",K:"ytp-ad-toggle-button-input",X:{id:l,type:"checkbox"}},{F:"span",K:"ytp-ad-toggle-button-text",qa:"{{buttonText}}"},{F:"span",K:"ytp-ad-toggle-button-tooltip",qa:"{{tooltipText}}"}]}]},h,c,d,e);this.C=this.Da("ytp-ad-toggle-button");this.u=this.Da("ytp-ad-toggle-button-input");this.Da("ytp-ad-toggle-button-label");this.ea=this.Da("ytp-ad-toggle-button-icon");this.I=this.Da("ytp-ad-toggle-button-untoggled-icon");this.D=this.Da("ytp-ad-toggle-button-toggled-icon");this.Ba=this.Da("ytp-ad-toggle-button-text");
this.B=null;this.T=!1;this.hide()};
MM=function(a){a.T&&(a.isToggled()?(g.Ul(a.I,!1),g.Ul(a.D,!0)):(g.Ul(a.I,!0),g.Ul(a.D,!1)))};
jHa=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||[]};
NM=function(a){Jz.call(this);this.j=a;this.S(this.j,"onAdUxUpdate",this.T)};
OM=function(a,b,c,d,e){mM.call(this,a,b,{F:"div",K:"ytp-ad-feedback-dialog-background",W:[{F:"div",K:"ytp-ad-feedback-dialog-container",W:[{F:"div",K:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{F:"div",K:"ytp-ad-feedback-dialog-title",W:[{F:"span",qa:"{{title}}"}]},{F:"span",K:"ytp-ad-info-dialog-feedback-options-title",qa:"{{reasonsTitle}}"},{F:"div",K:"ytp-ad-info-dialog-feedback-options"},{F:"div",K:"ytp-ad-feedback-dialog-confirm-container",W:[{F:"button",K:"ytp-ad-feedback-dialog-cancel-button",
qa:"{{cancelLabel}}"},{F:"button",K:"ytp-ad-feedback-dialog-confirm-button",qa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d,e);this.D=[];this.u=null;this.I=this.Da("ytp-ad-feedback-dialog-cancel-button");this.T=this.Da("ytp-ad-feedback-dialog-confirm-button");this.ea=this.Da("ytp-ad-info-dialog-feedback-options");this.Ba=this.Da("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
nHa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.u=new DM(a.api,a.jb,a.layoutId,a.j,a.bb,["ytp-ad-feedback-dialog-close-button"],"button"),g.L(a,a.u),a.u.init(GJ("button"),c,a.macros),a.u.Pa("click",a.UR,a),a.u.Ca(a.element));b.title&&(c=g.jB(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.jB(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&kHa(a,b.reasons);b.cancelLabel&&(c=g.jB(b.cancelLabel),a.updateValue("cancelLabel",c),g.Ex(a.I,"click",
function(){return a.UR()}));
b.confirmLabel&&(c=g.jB(b.confirmLabel),a.updateValue("confirmLabel",c),g.Ex(a.T,"click",function(){return lHa(a)}));
b.undoRenderer&&mHa(a,b.undoRenderer)};
kHa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.aA(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.aA(Error("AdFeedbackReason.endpoint was not set.")):(c=new oHa(c,d),g.L(a,c),a.ea.appendChild(c.j.element),a.D.push(c)))}};
mHa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new DM(a.api,a.jb,a.layoutId,a.j,a.bb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.L(a,a.B),a.B.init(GJ("ad-feedback-undo-mute-button"),b,a.macros),a.B.Pa("click",a.V2,a),a.B.Ca(a.Ba)):g.aA(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
lHa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].u,a.api.V().N("enable_macro_substitution_on_html5")?a.layoutId?a.bb.executeCommand(b,a.layoutId):g.$z(Error("Missing layoutId for ad feedback dialog.")):PM(a.bb,b,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ma("a"),a.hide())};
oHa=function(a,b){this.u=b;this.j=new g.lM({F:"label",K:"ytp-ad-feedback-dialog-reason-label",W:[{F:"input",K:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{F:"span",K:"ytp-ad-feedback-dialog-reason-text",qa:g.jB(a)}]});this.B=this.j.Da("ytp-ad-feedback-dialog-reason-input")};
QM=function(a,b,c,d,e){KM.call(this,a,b,c,d,e,[],"ad-mute-confirm-dialog")};
RM=function(a,b,c,d,e,f){mM.call(this,a,b,{F:"div",K:"ytp-ad-info-dialog-background",W:[{F:"div",K:"ytp-ad-info-dialog-container",W:[{F:"div",K:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{F:"div",K:"ytp-ad-info-dialog-title",qa:"{{title}}"},{F:"ul",K:"ytp-ad-info-dialog-ad-reasons"},{F:"div",K:"ytp-ad-info-dialog-message"},{F:"div",K:"ytp-ad-info-dialog-mute-container"},{F:"div",K:"ytp-ad-info-dialog-confirm-container",W:[{F:"button",K:"ytp-ad-info-dialog-confirm-button",qa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d,e);this.u=this.B=null;this.T=this.Da("ytp-ad-info-dialog-confirm-button");this.Sa=this.Da("ytp-ad-info-dialog-mute-container");this.Oa=this.Da("ytp-ad-info-dialog-message");this.Ka=this.Da("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ba=f;this.I=null;this.Ma=!1;this.ea=null;this.hide()};
pHa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new OM(a.api,a.jb,a.layoutId,a.j,a.bb),g.L(a,a.B),a.B.init(GJ("ad-feedback-dialog"),b,a.macros),a.B.Ca(a.Ba),a.B.subscribe("a",function(){return a.ma("c")})};
qHa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new QM(a.api,a.jb,a.layoutId,a.j,a.bb),g.L(a,a.D),a.D.init(GJ("ad-mute-confirm-dialog"),b,a.macros),a.D.Ca(a.Ba),a.D.subscribe("b",function(){return a.ma("c")})};
rHa=function(a){a.u&&a.u.Pa("click",a.WN,a);g.Ex(a.T,"click",function(){return a.WN()})};
SM=function(a,b,c,d,e,f,h){HM.call(this,a,b,c,d,e,void 0===h?!0:h,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.u=null;this.C=f;this.hide()};
tHa=function(a,b,c){b=b.dialog&&g.N(b.dialog,sHa)||null;null==b?g.$z(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.u=new RM(a.api,a.jb,a.layoutId,a.j,a.bb,a.C),g.L(a,a.u),a.u.init(GJ("ad-info-dialog"),b,c),a.u.Ca(a.C),a.u.subscribe("d",function(){return a.ma("f")}),a.u.subscribe("c",function(){return a.ma("e")}))};
wHa=function(a,b,c){null==a.button?g.$z(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.po(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.N(b.serviceEndpoint,uHa)||null)?(tHa(a,b,c),a.button.Pa("click",function(){a.u&&!a.u.sb&&(a.u.show(),vHa(a))})):a.button.Pa("click",function(){return vHa(a)}))};
vHa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
TM=function(a,b,c,d,e,f,h){mM.call(this,a,b,{F:"div",K:"ytp-ad-text"},void 0===h?"ad-text":h,c,d,e,void 0===f?null:f);this.u=null;this.hide()};
UM=function(a,b){b&&g.ih(a.element,nM(a.u,b))};
VM=function(a,b,c,d,e,f,h,l){mM.call(this,a,b,c,d,e,f,h);this.u=l;g.L(this,this.u);this.Ka=this.D=-1};
WM=function(a){a.u&&-1===a.D&&(a.D=a.u.subscribe("h",a.Er,a),a.Ka=a.u.subscribe("g",a.Tt,a),a.Er())};
XM=function(a){null!=a.u&&-1!==a.D&&(a.u.Zg(a.D),a.u.Zg(a.Ka),a.Ka=-1,a.D=-1)};
g.YM=function(a,b,c,d,e,f){g.K.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.u=e;this.delay=new g.ho(this.gC,0,this);g.L(this,this.delay)};
ZM=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
$M=function(a,b,c,d,e,f,h){VM.call(this,a,b,{F:"div",K:"ytp-ad-preview-slot"},"ad-preview",c,d,e,f);var l=this;this.Oa=-1;this.B=new g.lM({F:"span",K:"ytp-ad-preview-container"});g.L(this,this.B);this.C=new TM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-preview-text");g.L(this,this.C);this.C.Ca(this.B.element);this.T=new g.lM({F:"span",K:"ytp-ad-preview-image"});g.L(this,this.T);this.I=new JM(this.api,this.jb,this.layoutId,this.j,this.bb);g.L(this,this.I);this.I.Ca(this.T.element);this.T.Ca(this.B.element);
this.B.Ca(this.element);this.ea=new g.YM(this.B,400,!1,100,function(){return l.hide()});
g.L(this,this.ea);this.Ba=0;this.Ma=!1;this.Sa=h;this.hide()};
aN=function(a){a.ea.show(100);a.show()};
bN=function(a,b,c,d,e,f){VM.call(this,a,b,{F:"div",Ga:["ytp-flyout-cta","ytp-flyout-cta-inactive"],W:[{F:"div",K:"ytp-flyout-cta-icon-container"},{F:"div",K:"ytp-flyout-cta-body",W:[{F:"div",K:"ytp-flyout-cta-text-container",W:[{F:"div",K:"ytp-flyout-cta-headline-container"},{F:"div",K:"ytp-flyout-cta-description-container"}]},{F:"div",K:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e,f);this.C=new JM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-flyout-cta-icon");g.L(this,this.C);
this.C.Ca(this.Da("ytp-flyout-cta-icon-container"));this.api.V().N("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.ea=new TM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-flyout-cta-headline");g.L(this,this.ea);this.ea.Ca(this.Da("ytp-flyout-cta-headline-container"));this.T=new TM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-flyout-cta-description");g.L(this,this.T);this.T.Ca(this.Da("ytp-flyout-cta-description-container"));a=["ytp-flyout-cta-action-button"];
this.api.V().N("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new DM(this.api,this.jb,this.layoutId,this.j,this.bb,a);g.L(this,this.B);this.B.Ca(this.Da("ytp-flyout-cta-action-button-container"));this.api.V().N("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.setAttribute("tabIndex","-1");this.I=null;this.Ba=0;this.hide()};
cN=function(a,b,c,d,e,f){mM.call(this,a,b,{F:"div",K:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,e,void 0===f?null:f);var h=this;this.u=null;this.C=new LM(this.api,this.jb,this.layoutId,this.j,this.bb,["ytp-ad-instream-user-sentiment-like-button"]);g.L(this,this.C);this.C.Ca(this.element);this.B=new LM(this.api,this.jb,this.layoutId,this.j,this.bb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.L(this,this.B);this.B.Ca(this.element);this.D=new g.YM(this,400,!1,500,
function(){return h.hide()});
g.L(this,this.D);this.hide()};
dN=function(a,b,c,d,e){e=void 0===e?0:e;g.K.call(this);this.B=a;this.u=!1;this.Z=d;this.I=!1;this.j=null;0<b&&(this.j=new g.ho(this.SO,b,this),g.L(this,this.j));this.D=new g.ho(this.SO,c,this);g.L(this,this.D);this.T=Hka(this.B,e,1,d);g.L(this,this.T);this.J=Hka(this.B,0,d,1);g.L(this,this.J);this.C=new Jz;g.L(this,this.C)};
eN=function(a,b,c,d,e,f,h){VM.call(this,a,b,{F:"div",K:"ytp-ad-skip-button-slot"},"skip-button",c,d,e,f);var l=this;this.T=null;this.Ba=!1;this.Ma=h;this.C=new g.lM({F:"span",Ga:["ytp-ad-skip-button-container"]});g.L(this,this.C);this.C.Ca(this.element);this.B=this.I=null;this.Oa=new g.YM(this.C,500,!1,100,function(){return l.hide()});
g.L(this,this.Oa);this.ea=new dN(this.C.element,15E3,5E3,.5,.5);g.L(this,this.ea);this.hide()};
yHa=function(a){a=a.T&&a.T.adRendererCommands;return(a&&a.clickCommand&&g.N(a.clickCommand,g.fN)&&g.N(a.clickCommand,g.fN).commands||[]).some(function(b){return b.adLifecycleCommand?xHa(b.adLifecycleCommand):!1})};
xHa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
gN=function(a,b,c,d,e,f,h){VM.call(this,a,b,{F:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e,f);this.ea=h;this.I=!1;this.T=0;this.C=this.B=null;this.hide()};
zHa=function(a,b){a.I||(a.I=!0,a.B&&(b?a.B.ea.hide():a.B.hide()),b?(a=a.C,a.Oa.show(),a.show()):a.C.show())};
hN=function(a,b,c,d,e){DM.call(this,a,b,c,d,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
iN=function(a,b,c,d,e,f){f=void 0===f?!1:f;mM.call(this,a,b,{F:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d,e);this.u=f;this.hide()};
jN=function(a,b,c,d,e){e=void 0===e?!1:e;HJ.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.j=d;this.iF=e};
kN=function(a,b){g.Mz.call(this);this.api=a;this.durationMs=b;this.j=null;this.Zc=new Jz(this);g.L(this,this.Zc);this.u=AHa;this.Zc.S(this.api,"presentingplayerstatechange",this.Vc);this.j=this.Zc.S(this.api,"onAdPlaybackProgress",this.jc)};
lN=function(a,b){g.Mz.call(this);this.jb=b;this.u=!1;this.j=0;this.Zc=new Jz(this);g.L(this,this.Zc);this.durationMs=a;this.timer=new g.Dh(100);g.L(this,this.timer);this.Zc.S(this.timer,"tick",this.jc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.mN=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.nN=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)};
oN=function(a,b,c,d,e,f,h){VM.call(this,a,b,{F:"span",K:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=h;this.B=null;this.hide()};
pN=function(a,b,c,d,e){TM.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")};
qN=function(a,b){this.u=a;this.j=b};
rN=function(a){return a.j-a.u};
sN=function(a,b){return a.u+b*rN(a)};
tN=function(a,b,c){return rN(a)?g.Ag((b-a.u)/rN(a),0,1):null!=c?c:Infinity};
uN=function(a,b){g.lM.call(this,{F:"div",K:"ytp-ad-persistent-progress-bar-container",W:[{F:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.L(this,this.u);this.Cc=this.Da("ytp-ad-persistent-progress-bar");this.j=-1;this.S(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
vN=function(a,b,c,d,e,f,h){mM.call(this,a,b,{F:"div",K:"ytp-ad-player-overlay",W:[{F:"div",K:"ytp-ad-player-overlay-flyout-cta"},{F:"div",K:"ytp-ad-player-overlay-instream-info"},{F:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{F:"div",K:"ytp-ad-player-overlay-progress-bar"},{F:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.T=h;this.D=this.Da("ytp-ad-player-overlay-flyout-cta");this.api.V().N("web_rounded_thumbnails")&&this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.B=this.Da("ytp-ad-player-overlay-instream-info");this.C=null;BHa(this)&&(a=ah("div"),g.po(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 pN(this.api,this.jb,this.layoutId,this.j,this.bb),c.Ca(a),c.init(GJ("ad-title"),{text:b.title},this.macros),g.L(this,c)),this.C=a);this.I=this.Da("ytp-ad-player-overlay-skip-or-preview");this.Ba=this.Da("ytp-ad-player-overlay-progress-bar");this.ea=
this.Da("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.L(this,this.u);this.hide()};
BHa=function(a){a=a.api.V();return g.ZG(a)&&a.isMobile};
DHa=function(a,b){var c=void 0===c?!0:c;var d=g.uu("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.fi(window.location.href);e&&d.push(e);e=g.fi(a);if(g.Sb(d,e)||!e&&bb(a,"/"))if(g.wu("autoescape_tempdata_url")&&(d=document.createElement("a"),g.xg(d,a),a=d.href),a&&(a=Oea(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.kA()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&CHa(a,b,f)}else CHa(a,b)};
CHa=function(a,b,c){a="ST-"+Og(a).toString(36);b=b?g.ji(b):"";c=c||5;xv()&&g.ev(a,b,c)};
wN=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.ti("/sharing_services",a);g.nx(d)};
g.xN=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
g.EHa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.ti(a,b)+c;var e=void 0===e?Ofa:e;e=Pfa(a,e)||jda;e=e instanceof gg?g.hg(e):Nfa(e);void 0!==e&&(d.href=e)};
g.yN=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.uu("EVENT_ID");d&&(b.ei||(b.ei=d));b&&DHa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.EHa(a))};
g.zN=function(a,b,c,d){c&&DHa(a,c);c=g.jg(a);c=g.hg(c);a!=c&&Du(Error("Unsafe window.open URL: "+a));a=c;b=b||Og(a).toString(36);try{var e;if("2"===(null==(e=Gu(a))?void 0:e.ase)){Du(Error("Queries for attributionsrc label registration when opening a window."));a=FHa(a);window.open(a,b,"attributionsrc");return}}catch(h){g.Bu(h)}if(d){a=FHa(a);try{var f=encodeURIComponent(d);window.open(a,b,"attributionsrc="+f);return}catch(h){g.Bu(h)}}window.open(a,b)};
FHa=function(a){if("www.googleadservices.com"!==g.fi(a))return a;var b,c;return"function"===typeof(null==(b=document.featurePolicy)?void 0:b.features)&&(null==(c=document.featurePolicy)?0:c.features().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
g.AN=function(a,b,c){b=GHa(b,c);if(b=yg(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.iy("LOGGED_IN",function(d){g.jy(g.uu("LOGGED_IN_PUBSUB_KEY"));tu("LOGGED_IN",!0);a(d)}),tu("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
GHa=function(a,b){var c="/signin?context=popup";b&&(c=document.location.protocol+"//"+b+c);b=ki(c,"next",document.location.protocol+"//"+document.domain+"/post_login");a&&(b=ki(b,"feature",a));return b};
JHa=function(a,b){if(!a)return!1;var c,d=null==(c=g.N(a,HHa))?void 0:c.signal;if(d&&b.pu)return!!b.pu[d];var e;if((c=null==(e=g.N(a,IHa))?void 0:e.request)&&b.QH)return!!b.QH[c];for(var f in a)if(b.NH[f])return!0;return!1};
KHa=function(a,b){var c,d=null==(c=g.N(a,HHa))?void 0:c.signal;if(d&&b.pu&&(c=b.pu[d]))return c();var e;if((c=null==(e=g.N(a,IHa))?void 0:e.request)&&b.QH&&(e=b.QH[c]))return e();for(var f in a)if(b.NH[f]&&(a=b.NH[f]))return a()};
BN=function(a){return function(){return new a}};
MHa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=LHa[b];if(c){var d=new RegExp(c),e=g.t(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(LHa).forEach(function(h){var l=g.t(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.t(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.CN=function(a){return"/youtubei/v1/"+MHa(a)};
DN=function(){};
EN=function(){};
FN=function(a,b,c,d){this.gI=a;this.pg=b;this.j=c;this.C=d;this.B=void 0;this.u=new Map;a.pu||(a.pu={});a.pu=Object.assign({},NHa,a.pu)};
OHa=function(a,b,c,d){if(void 0!==FN.instance){if(d=FN.instance,a=[a!==d.gI,b!==d.pg,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.Yv("InnerTubeTransportService is already initialized",a);
}else FN.instance=new FN(a,b,c,d)};
HN=function(a,b,c){var d=void 0===d?GN:d;var e=KHa(b,a.gI);if(!e)return zh(new g.Yv("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.wh(function(h){var l,m,n;return g.A(function(p){if(1==p.j)return m="cors"===(null==(l=f.Hr)?void 0:l.mode)?"cors":void 0,a.j.ST?(n=PHa(a,f.config,m),p.Ja(2)):g.x(p,QHa(a,f.config,m),3);2!=p.j&&(n=p.u);h(RHa(a,f,n));g.pa(p)})}):zh(new g.Yv("Error: Failed to build request for command.",b))};
g.JL=function(a,b,c,d,e){e=void 0===e?{Cs:{identity:GN}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.CL(d,f));return new g.wh(function(h){var l,m,n,p,q;return g.A(function(r){if(1==r.j)return l=vv(c),m=Lu(l)?"same-origin":"cors",a.j.ST?(n=PHa(a,e,m),r.Ja(2)):g.x(r,QHa(a,e,m),3);2!=r.j&&(n=r.u);var w=n;p=Uma(vv(c),w);q={input:p,Hr:wv(p),En:b,config:e};h(RHa(a,q,n));g.pa(r)})})};
THa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.E6a)?0:d.K6a)&&a.C){d=g.t(SHa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.C[e]&&a.C[e].handleResponse(b,c)}};
RHa=function(a,b,c){var d,e,f,h,l,m,n,p,q,r,w,y,z,B,D,G,E,J,M,P,X,W,S,ca,O,xa,la,ta;return g.A(function(La){switch(La.j){case 1:La.Ja(2);break;case 3:if((d=La.u)&&!d.isExpired())return La.return(Promise.resolve(d.j()));case 2:if(null==(e=b)?0:null==(f=e.En)?0:f.context)for(h=g.t([]),l=h.next();!l.done;l=h.next())m=l.value,m.z6a(b.En.context);if(null==(n=a.B)||!n.F6a(b.input,b.En)){La.Ja(4);break}return g.x(La,a.B.g6a(b.input,b.En),5);case 5:return p=La.u,g.wu("kevlar_process_local_innertube_responses_killswitch")||
THa(a,p,b),La.return(p);case 4:return(w=null==(r=b.config)?void 0:r.vg)&&a.u.has(w)&&g.wu("web_memoize_inflight_requests")?q=a.u.get(w):(y=JSON.stringify(b.En),D=null!=(B=null==(z=b.Hr)?void 0:z.headers)?B:{},b.Hr=Object.assign({},b.Hr,{headers:Object.assign({},D,c)}),G=Object.assign({},b.Hr),"POST"===b.Hr.method&&(G=Object.assign({},G,{body:y})),(null==(E=b.config)?0:E.J3)&&JB(b.config.J3),J=function(){return a.pg.fetch(b.input,G,b.config)},q=J(),w&&a.u.set(w,q)),g.x(La,q,6);
case 6:M=La.u;if(g.wu("web_one_platform_error_handling")&&M&&"error"in M&&(null==(P=M)?0:null==(X=P.error)?0:X.details))for(W=M.error.details,S=g.t(W),ca=S.next();!ca.done;ca=S.next())O=ca.value,(xa=O["@type"])&&-1<UHa.indexOf(xa)&&(delete O["@type"],M=O);w&&a.u.has(w)&&a.u.delete(w);(null==(la=b.config)?0:la.M3)&&JB(b.config.M3);if(M||null==(ta=a.B)||!ta.y5a(b.input,b.En)){La.Ja(7);break}return g.x(La,a.B.f6a(b.input,b.En),8);case 8:M=La.u;case 7:return THa(a,M,b),La.return(M||void 0)}})};
QHa=function(a,b,c){var d,e,f,h,l,m,n;return g.A(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Cs)?void 0:e.identity)||GN;m=null==(h=b)?void 0:null==(l=h.Cs)?void 0:l.sessionIndex;var q=yh(a.j.dD(f,{sessionIndex:m}));return g.x(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},VHa(c),n)))})};
PHa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Cs)?void 0:d.identity)||GN,f;b=null==b?void 0:null==(f=b.Cs)?void 0:f.sessionIndex;a=a.j.dD(e,{sessionIndex:b});return Object.assign({},VHa(c),a)};
VHa=function(a){var b={"Content-Type":"application/json"};g.uu("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.uu("EOM_VISITOR_DATA"):g.uu("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.uu("VISITOR_DATA"));g.wu("track_webfe_innertube_auth_mismatch")&&(b["X-Youtube-Bootstrap-Logged-In"]=g.uu("LOGGED_IN",!1));"cors"!==a&&((a=g.uu("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.uu("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.uu("CHROME_CONNECTED_HEADER"))&&
(b["X-Youtube-Chrome-Connected"]=a),(a=g.uu("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
IN=function(){};
JN=function(){};
KN=function(){};
LN=function(){};
MN=function(){};
NN=function(){};
ON=function(a){this.j=a};
g.QN=function(a,b){if(!PN){var c=jpa(),d={cL:WHa,EU:ON};c.providers.set(d.cL,d);d={NH:{feedbackEndpoint:BN(KN),modifyChannelNotificationPreferenceEndpoint:BN(LN),playlistEditEndpoint:BN(MN),subscribeEndpoint:BN(IN),unsubscribeEndpoint:BN(JN),webPlayerShareEntityServiceEndpoint:BN(NN)}};var e=BL.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(DL.instance||(DL.instance=new DL),a=DL.instance);void 0===b&&(b=c.resolve(WHa));OHa(d,b,a,f);a={cL:XHa,FU:FN.instance};c.providers.set(a.cL,a);PN=c.resolve(XHa)}return PN};
RN=function(){};
YHa=function(){RN.instance||(RN.instance=new RN);return RN.instance};
$Ha=function(){if(!g.wu("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.wu("disable_biscotti_fetch_entirely_for_all_web_clients")&&xv()){var a=g.uu("PLAYER_VARS",{});if("1"!=g.uf(a,"privembed",!1)&&!Wma(a)){var b=function(){SN=!0;"google_ad_status"in window?tu("DCLKSTAT",1):tu("DCLKSTAT",2)};
try{g.DA("//web.archive.org/web/20221116135136/https://static.doubleclick.net/instream/ad_status.js",b)}catch(c){}ZHa.push(g.co.Wh(function(){if(!(SN||"google_ad_status"in window)){try{if(b){var c=""+g.Oa(b),d=Eta[c];d&&g.jy(d)}}catch(e){}SN=!0;tu("DCLKSTAT",3)}},5E3))}}};
TN=function(){var a=Number(g.uu("DCLKSTAT",0));return isNaN(a)?0:a};
UN=function(){};
aIa=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."))})};
ew=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.xu("ytidb_transaction_ended_event_rate_limit_session",.2)};
cIa=function(a,b){UN.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:bIa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:bIa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
bIa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
VN=function(){this.state=1;this.j=null};
eIa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Oc(2),g.DA(c,function(){if(window[h])dIa(a,d,h,e);else{a.Oc(3);var l=Dta(c),m=document.getElementById(l);m&&(fpa(l),m.parentNode.removeChild(m));g.aA(new g.Yv("Unable to load Botguard","from "+c))}},f)):b?(f=g.bh("SCRIPT"),f.textContent=b,f.nonce=zg(),document.head.appendChild(f),document.head.removeChild(f),window[h]?dIa(a,d,h,e):(a.Oc(4),g.aA(new g.Yv("Unable to load Botguard from JS")))):g.aA(new g.Yv("Unable to load VM; no url or JS provided"))};
dIa=function(a,b,c,d){a.Oc(5);try{var e=new Xi({program:b,globalName:c,z3:g.wu("att_web_record_metrics")});e.Y3.then(function(){a.Oc(6);d&&d(b)});
a.KL(e)}catch(f){a.Oc(7),f instanceof Error&&g.aA(f)}};
fIa=function(a,b){var c=g.WN;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.AB()?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.AB()?c.KU({Wv:a}).then(d):d(null)})]):Promise.resolve(null)};
XN=function(){var a=g.Ga("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
YN=function(){VN.apply(this,arguments)};
$N=function(a){return!ZN||(0,g.Q)()-ZN>a};
hIa=function(a,b){gIa(a.program,b.C3)&&(ZB("bg_i",void 0,"player_att"),g.WN.initialize(a,function(){var c=a.serverEnvironment;ZB("bg_l",void 0,"player_att");ZN=(0,g.Q)();for(var d=0;d<aO.length;d++){var e=aO[d];try{e(c)}catch(f){}}},b.cspNonce))};
iIa=function(a){a=void 0===a?{}:a;return g.WN.invoke(a)};
jIa=function(a){var b=g.xu("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return fIa(a,b)};
gIa=function(a,b){return a?g.WN.isLoading()?!1:$N(b):!1};
g.bO=function(a,b){return a.ya+"timedtext_video?ref=player&v="+b.videoId};
g.cO=function(a,b){a.feature=b;return a};
g.dO=function(a,b){b=g.fi(b)||b;a.utm_source="yt-embeds-web";a.utm_medium=b};
g.kIa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.WN.isInitialized()){var d="";b.videoData&&b.videoData.tj&&(d=b.videoData.tj+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);ZB("bg_v",void 0,"player_att");d=iIa(d);ZB("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else ZB("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.WN.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^TN())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.uu("CATSTAT",0)))},a);
this.videoData&&this.videoData.tj?this.j=Gu(this.videoData.tj):this.j={}};
g.lIa=function(a){if(a.videoData&&a.videoData.tj){for(var b=[a.videoData.tj],c=g.t(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};
nIa=function(a){var b={};Object.assign(b,a.u);g.wu("player_attestation_bg_async")&&(b.c1a=function(){return mIa(a)});
if(a.videoData&&a.videoData.tj){for(var c=[a.videoData.tj],d=g.t(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
g.eO=function(a,b){hIa(a,{C3:g.YF(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
mIa=function(a){function b(e){return e+"&r1d="+g.WN.getState()}
if(!g.WN.isInitialized())return ZB("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.tj&&(c=a.videoData.tj+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){ZB("bg_v",void 0,"player_att");jIa(d).then(function(f){f?(ZB("bg_s",void 0,"player_att"),e(b("r1a="+f))):(ZB("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){ZB("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.gO=function(a){var b=a.V(),c=g.fO(b),d=a.ya;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=rJ(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Vb?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.Jm)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:oIa[e]}});a.Ev&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.oa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Mg&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=pIa[b];c.request=d;d=c.user||{};if(b=a.Ka)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.pc)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.fO=function(a){var b=g.CL(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.t(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.N("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Ac)b.thirdParty={embedUrl:a};return b};
uIa=function(a,b,c){var d=a.videoId,e=g.gO(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(dy()),referer:document.location.toString(),signatureTimestamp:19310};g.Mv.getInstance();a.isAutonav&&(h.autonav=!0);g.Nv(0,141)&&(h.autonavState=g.Nv(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Nv(0,66);uJ(a)&&(h.autoplay=!0);f.D&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m=
{},n=[];l=l.split(",");l=g.t(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.t(q);for(var r=q.next();!r.done;r=q.next()){var w=g.t(r.value.split("="));r=w.next().value;w=ha(w);p[r]=w.join("=")}q=p.url;r=p.presetad;w=p.viralresponseurl;var y=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),w&&(m.viralAdResponseUrl=w),y&&(m.viralCampaignId=
String(y));else if("video_ad"===p.adtype){var z={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=qIa[p.breaktype])z.breakType=p;q&&(z.url=q);r&&(z.presetAd=r);w&&(z.viralAdResponseUrl=w);y&&(z.viralCampaignId=String(y));n.push(z)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.YG;if(null!=m){m={startWalltime:String(m)};if(n=a.al)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Gj&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Fo)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Bi){n=a.UK;l=[];p=g.t(p.split(","));for(q=p.next();!q.done;q=p.next())if(r=q.value)if((q=r.startsWith("!"))&&(r=r.substr(1)),r=r.split("-"),!(3>r.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:rIa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:sIa[r[0]]||"UNKNOWN_INTERFACE",
clientVersion:r[2]||"",platform:tIa[r[1]]||"UNKNOWN_PLATFORM"};r=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(B){g.aA(B)}w&&(r={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:r,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});h.mdxContext=
m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.QG(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=
f;d.captionParams={};f=g.Nv(g.Mv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.pH(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.rO&&(d.captionParams.deviceCaptionsLangPref=a.rO);a.SF.length?d.captionParams.viewerSelectedCaptionLangs=a.SF:g.pH(e)&&(f=g.mAa(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&&a.N("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.N("html5_non_onesie_attach_po_token");
if(f||h)a=a.V(),a.Xe&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Xe);e.N("fetch_att_independently")?(a=!e.N("html5_force_include_bg_data"),d.attestationRequest={omitBotguardData:a}):e.N("html5_exclude_bg_vm_data")&&(d.attestationRequest={omitBotguardData:!$N(g.YF(e.experiments,"bg_vm_reinit_threshold"))});return d};
wIa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j)return c={context:g.fO(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.CN(vIa),g.x(f,g.JL(b,c,d),2);e=f.u;return f.return(e)})};
xIa=function(a,b,c){$N(g.YF(b.experiments,"bg_vm_reinit_threshold"))&&wIa(a,c).then(function(d){d&&(d=d.botguardData)&&g.eO(d,b)},function(d){a.isDisposed()||(d=CH(d),a.va("attf",{error:d.errorCode}))})};
yIa=function(){this.Kv={}};
hO=function(a,b,c,d,e){b in a.Kv||(c=new g.cB(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.Kv[b]=c)};
iO=function(){g.K.apply(this,arguments);this.C=new Set;this.D={};this.J={};this.j={};this.I={};this.B={};this.u=void 0;this.T=new Set};
AIa=function(a){var b=void 0===b?5:b;return a?zIa[a]||b:b};
BIa=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 jO(a)};
jO=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.t(CIa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
DIa=function(a,b,c,d){if(g.Ma(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
kO=function(a,b,c,d){g.K.call(this);this.app=a;this.state=b;this.playerType=d;this.j=!0;this.element=null;c&&(EIa(this),FIa(this))};
EIa=function(a){lO(a,"getInternalApiInterface",a.getInternalApiInterface);lO(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);lO(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);lO(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);lO(a,"getAdState",a.getAdState);lO(a,"sendAbandonmentPing",a.sendAbandonmentPing);lO(a,"setLoopRange",a.setLoopRange);lO(a,"getLoopRange",a.getLoopRange);lO(a,"setAutonavState",a.setAutonavState);lO(a,"seekToLiveHead",a.seekToLiveHead);lO(a,"seekToStreamTime",a.seekToStreamTime);
lO(a,"seekToChapterWithAnimation",a.seekToChapterWithAnimation);lO(a,"startSeekCsiAction",a.startSeekCsiAction);lO(a,"getStreamTimeOffset",a.getStreamTimeOffset);lO(a,"getVideoData",a.xZ);lO(a,"setIsExternalPlaylist",a.setIsExternalPlaylist);lO(a,"setInlinePreview",a.setInlinePreview);lO(a,"downloadVideo",a.downloadVideo);lO(a,"updateDownloadState",a.updateDownloadState);lO(a,"queueOfflineAction",a.queueOfflineAction);lO(a,"pauseVideoDownload",a.pauseVideoDownload);lO(a,"resumeVideoDownload",a.resumeVideoDownload);
lO(a,"refreshAllVideos",a.refreshAllVideos);lO(a,"refreshAllStaleEntities",a.refreshAllStaleEntities);lO(a,"deleteVideos",a.deleteVideos);lO(a,"deleteAllVideos",a.deleteAllVideos);lO(a,"isOrchestrationLeader",a.isOrchestrationLeader);lO(a,"getAppState",a.getAppState);lO(a,"addInfoCardXml",a.addInfoCardXml);lO(a,"updateLastActiveTime",a.updateLastActiveTime);lO(a,"setBlackout",a.setBlackout);lO(a,"setUserEngagement",a.setUserEngagement);lO(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
lO(a,"getPresentingPlayerType",a.getPresentingPlayerType);lO(a,"canPlayType",a.canPlayType);lO(a,"updatePlaylist",a.updatePlaylist);lO(a,"updateVideoData",a.updateVideoData);lO(a,"updateEnvironmentData",a.updateEnvironmentData);lO(a,"sendVideoStatsEngageEvent",a.sendVideoStatsEngageEvent);lO(a,"setCardsVisible",a.setCardsVisible);lO(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);lO(a,"setSafetyMode",a.setSafetyMode);lO(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,
b)});
lO(a,"getVideoAspectRatio",a.getVideoAspectRatio);lO(a,"getPreferredQuality",a.getPreferredQuality);lO(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);lO(a,"onAdUxClicked",a.onAdUxClicked);lO(a,"getFeedbackProductData",a.getFeedbackProductData);lO(a,"getStoryboardFrame",a.getStoryboardFrame);lO(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);lO(a,"getStoryboardLevel",a.getStoryboardLevel);lO(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);lO(a,"getCaptionWindowContainerId",
a.getCaptionWindowContainerId);lO(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);lO(a,"addUtcCueRange",a.addUtcCueRange);lO(a,"showAirplayPicker",a.showAirplayPicker);lO(a,"addBgVersionChangeCallback",a.addBgVersionChangeCallback);lO(a,"dispatchReduxAction",a.dispatchReduxAction);lO(a,"getPlayerResponse",a.getPlayerResponse);lO(a,"changeMarkerVisibility",a.changeMarkerVisibility);lO(a,"setAutonav",a.setAutonav);lO(a,"isNotServable",a.isNotServable);lO(a,"channelSubscribed",a.channelSubscribed);
lO(a,"channelUnsubscribed",a.channelUnsubscribed);lO(a,"isPictureInPictureAllowed",a.isPictureInPictureAllowed);lO(a,"togglePictureInPicture",a.togglePictureInPicture);lO(a,"supportsGaplessAudio",a.supportsGaplessAudio);lO(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
lO(a,"clearQueue",a.clearQueue);lO(a,"isFastLoad",function(){return!1});
lO(a,"getAudioTrack",a.hZ);lO(a,"setAudioTrack",a.setAudioTrack);lO(a,"getAvailableAudioTracks",a.iZ);lO(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);lO(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);lO(a,"getStatsForNerds",a.getStatsForNerds);lO(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);lO(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);lO(a,"setMinimized",a.setMinimized);lO(a,"confirmYpcRental",a.confirmYpcRental);lO(a,"toggleSubtitlesOn",
a.toggleSubtitlesOn);lO(a,"handleExternalCall",a.handleExternalCall);lO(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);lO(a,"setScreenLayer",a.setScreenLayer);lO(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);lO(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);lO(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);lO(a,"setGlobalCrop",a.setGlobalCrop);lO(a,"syncVolume",a.syncVolume);lO(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);lO(a,"getVisibilityState",
a.getVisibilityState);lO(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);lO(a,"setInternalSize",a.setInternalSize)};
FIa=function(a){mO(a,"cueVideoById",a.cueVideoById);mO(a,"loadVideoById",a.loadVideoById);mO(a,"cueVideoByUrl",a.cueVideoByUrl);mO(a,"loadVideoByUrl",a.loadVideoByUrl);mO(a,"playVideo",a.playVideo);mO(a,"pauseVideo",a.pauseVideo);mO(a,"stopVideo",a.stopVideo);mO(a,"clearVideo",a.clearVideo);mO(a,"getVideoBytesLoaded",a.getVideoBytesLoaded);mO(a,"getVideoBytesTotal",a.getVideoBytesTotal);mO(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);mO(a,"getVideoStartBytes",a.getVideoStartBytes);mO(a,"cuePlaylist",
a.cuePlaylist);mO(a,"loadPlaylist",a.loadPlaylist);mO(a,"nextVideo",a.nextVideo);mO(a,"previousVideo",a.previousVideo);mO(a,"playVideoAt",a.playVideoAt);mO(a,"setShuffle",a.setShuffle);mO(a,"setLoop",a.setLoop);mO(a,"getPlaylist",a.uZ);mO(a,"getPlaylistIndex",a.getPlaylistIndex);mO(a,"getPlaylistId",a.getPlaylistId);mO(a,"loadModule",a.loadModule);mO(a,"unloadModule",a.unloadModule);mO(a,"setOption",a.setOption);mO(a,"getOption",a.getOption);mO(a,"getOptions",a.getOptions);mO(a,"mute",a.mute);mO(a,
"unMute",a.unMute);mO(a,"isMuted",a.isMuted);mO(a,"setVolume",a.setVolume);mO(a,"getVolume",a.getVolume);mO(a,"seekTo",a.seekTo);mO(a,"getPlayerMode",a.getPlayerMode);mO(a,"getPlayerState",a.getPlayerState);mO(a,"getPlaybackRate",a.getPlaybackRate);mO(a,"setPlaybackRate",a.setPlaybackRate);mO(a,"getAvailablePlaybackRates",a.getAvailablePlaybackRates);mO(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
mO(a,"setPlaybackQuality",a.setPlaybackQuality);mO(a,"getAvailableQualityLevels",a.getAvailableQualityLevels);mO(a,"getCurrentTime",a.getCurrentTime);mO(a,"getDuration",a.getDuration);mO(a,"addEventListener",a.mY);mO(a,"removeEventListener",a.E3);mO(a,"getDebugText",a.getDebugText);mO(a,"getVideoData",function(){return GIa(a)});
mO(a,"addCueRange",a.addCueRange);mO(a,"removeCueRange",a.removeCueRange);mO(a,"setSize",a.setSize);mO(a,"getApiInterface",a.getApiInterface);mO(a,"destroy",a.destroy);mO(a,"showVideoInfo",a.showVideoInfo);mO(a,"hideVideoInfo",a.hideVideoInfo);mO(a,"isVideoInfoVisible",a.isVideoInfoVisible);mO(a,"getSphericalProperties",a.getSphericalProperties);mO(a,"setSphericalProperties",a.setSphericalProperties);var b=a.app.V();b.I||(mO(a,"getVideoEmbedCode",a.getVideoEmbedCode),mO(a,"getVideoUrl",a.getVideoUrl));
mO(a,"getMediaReferenceTime",a.getMediaReferenceTime);mO(a,"getSize",a.getSize);b.I||mO(a,"logImaAdEvent",a.logImaAdEvent)};
mO=function(a,b,c){a.state.D[b]=function(){return c.apply(a,g.ya.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||lO(a,b,c);a.state.C.add(b)};
nO=function(a,b,c){a.state.J[b]=function(){return c.apply(a,g.ya.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||lO(a,b,c);a.state.C.add(b)};
lO=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.ya.apply(0,arguments))}};
g.oO=function(a,b,c){return a.state.j[b].apply(a.state.j,g.u(c))};
sGa=function(a){a.state.u||(a.state.u={addEventListener:function(b,c){HIa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.Oa(c));var d=a.state.B[c];d&&(a.app.Lo.unsubscribe(b,d),g.tf(a.state.B,c))}});
return a.state.u};
HIa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Oa(c));if(!a.state.B[d]){var e;"string"===typeof c?e=function(){var h=g.ya.apply(0,arguments);g.Ga(c).apply(window,h)}:e=c;
var f=function(h){e({target:a.state.u,data:h})};
a.state.B[d]=f;a.app.Lo.subscribe(b,f)}};
IIa=function(a,b,c){b=g.Ag(Math.floor(b),0,100);isFinite(b)&&pO(a.app,{volume:b,muted:a.isMuted()},c)};
JIa=function(a,b){pO(a.app,{muted:!0,volume:a.getVolume()},b)};
KIa=function(a,b){pO(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
GIa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.qO(a.app,b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=yJ(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
g.sO=function(a){var b=rO(a.app.vb());if(b)return b.mw();a=a.app.vb();a=g.$G(a.G.V())?a.Ie.get("music"):void 0;return a?a.mw():null};
tO=function(a,b,c,d){kO.call(this,a,b,!1,d);this.j=!1;c&&(EIa(this),LIa(this),FIa(this))};
LIa=function(a){nO(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(KO(a,b),c)});
nO(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(KO(a,b),c,d,e)});
nO(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(KO(a,b),c,d,e)});
nO(a,"getVideoData",a.lQ);nO(a,"seekBy",a.seekBy);nO(a,"mutedAutoplay",a.mutedAutoplay);nO(a,"showControls",a.showControls);nO(a,"hideControls",a.hideControls);nO(a,"cancelPlayback",a.cancelPlayback);nO(a,"getProgressState",a.getProgressState);nO(a,"isInline",a.isInline);nO(a,"setInline",a.setInline);nO(a,"setLoopVideo",a.setLoopVideo);nO(a,"getLoopVideo",a.getLoopVideo);nO(a,"getStoryboardFormat",a.getStoryboardFormat);nO(a,"getVideoContentRect",a.getVideoContentRect);nO(a,"toggleFullscreen",a.toggleFullscreen);
nO(a,"isFullscreen",a.isFullscreen);nO(a,"getVideoStats",a.getVideoStats);nO(a,"getPlayerSize",a.getPlayerSize);nO(a,"toggleSubtitles",a.toggleSubtitles);nO(a,"setCenterCrop",a.setCenterCrop);nO(a,"setFauxFullscreen",a.setFauxFullscreen);nO(a,"setSizeStyle",a.setSizeStyle);nO(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);nO(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);nO(a,"wakeUpControls",a.wakeUpControls)};
KO=function(a,b){var c={};if(a.app.V().Z){a=g.t(MIa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.t(NIa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
OIa=function(a,b,c){var d=a.app.sf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.OO=function(a,b){tO.call(this,a,b,!1);this.zG=this.settingsMenu=null};
g.PO=function(a){a=a.vb();var b=a.Ie.get("endscreen");return b&&b.nu()?!0:a.gB()||g.$G(a.G.V())};
g.QO=function(a,b){3===a.getPresentingPlayerType()?a.ma("mdxautoplaycancel"):a.ma("autonavcancel",b)};
g.SO=function(a){var b=RO(a.vb());return a.app.di&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.An()||!!a.getPlaylist()};
g.UO=function(a){return(a=g.TO(a.vb()))?a.sD():{}};
g.PIa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.QIa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.yb)};
g.VO=function(a,b,c){a=a.fb().element;var d=nc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.eh(a,b,d);b.setAttribute("data-layer",String(c))};
g.WO=function(a){var b=a.V();if(!b.Dd)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!BJ(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&&
(!d||e)&&!g.Sb(c.Ba,"ypc")&&!a&&(!g.QG(b)||f)};
RIa=function(a){a=g.qO(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.DO)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.va("iqss",{trigger:d},!0),!0):!1};
g.XO=function(a,b,c,d){d=void 0===d?!1:d;g.lM.call(this,b);var e=this;this.G=a;this.Ba=d;this.J=new g.WE(this);this.Z=new g.YM(this,c,!0,void 0,void 0,function(){e.PP()});
g.L(this,this.J);g.L(this,this.Z)};
SIa=function(a){a.u&&(document.activeElement&&g.hh(a.element,document.activeElement)&&(jh(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.Lz(a.J);a.T=void 0};
YO=function(a,b,c){a.oi()?a.wb():a.Kc(b,c)};
ZO=function(a,b,c,d){d=new g.V({F:"div",Ga:["ytp-linked-account-popup-button"],qa:d,X:{role:"button",tabindex:"0"}});b=new g.V({F:"div",K:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{F:"div",K:"ytp-linked-account-popup-title",qa:b},{F:"div",K:"ytp-linked-account-popup-description",qa:c},{F:"div",K:"ytp-linked-account-popup-buttons",W:[d]}]});g.XO.call(this,a,{F:"div",K:"ytp-linked-account-popup-container",W:[b]},100);var e=this;this.dialog=b;g.L(this,this.dialog);
d.Pa("click",function(){e.wb()});
g.L(this,d);g.VO(this.G,this.element,4);this.hide()};
g.$O=function(a,b,c,d){g.lM.call(this,a);this.priority=b;c&&this.Xg(c);d&&this.Wd(d)};
g.aP=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{F:c?"a":"div",Ga:b,X:a,W:[{F:"div",K:"ytp-menuitem-icon",qa:"{{icon}}"},{F:"div",K:"ytp-menuitem-label",qa:"{{label}}"},{F:"div",K:"ytp-menuitem-content",qa:"{{content}}"}]}};
bP=function(a,b){a.updateValue("icon",b)};
cP=function(a){g.$O.call(this,g.aP({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.G=a;this.u=this.j=!1;this.ob=a.Jl();a.yg(this.element,this,!0);this.S(this.G,"settingsMenuVisibilityChanged",function(c){b.Wb(c)});
this.S(this.G,"videodatachange",this.C);this.Pa("click",this.onClick);this.C()};
dP=function(a){return a?g.jB(a):""};
eP=function(a){g.K.call(this);this.api=a};
fP=function(a){eP.call(this,a);var b=this;lO(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
lO(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new cP(b.api);g.L(b,b.menuItem)})};
TIa=function(a){eP.call(this,a);this.events=new g.WE(a);g.L(this,this.events);a.N("fetch_bid_for_dclk_status")&&this.events.S(a,"videoready",function(){g.Tv(g.Vv(),function(){OA("vr")})});
a.N("report_pml_debug_signal")&&this.events.S(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})),
contentCpn:b.clientPlaybackNonce}};g.gw("adsClientStateChange",e)}})};
UIa=function(){g.Mv.getInstance();return g.Nv(0,192)?g.Nv(0,190):!g.wu("web_watch_cinematics_disabled_by_default")};
gP=function(a,b){g.$O.call(this,g.aP({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{F:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Pa("click",this.onClick)};
iP=function(a){var b=a.N("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";gP.call(this,b,13);var c=this;this.G=a;this.j=!1;this.u=new g.ho(function(){g.ro(c.element,"ytp-menuitem-highlighted")},0);
this.ob=a.Jl();bP(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.Pa(hP,this.B);g.L(this,this.u)};
jP=function(a){eP.call(this,a);var b=this;this.j=!1;var c;this.N("web_cinematic_watch_settings")&&(null==(c=a.V().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){VIa(b)}),a.addEventListener("highlightSettingsMenu",function(d){VIa(b);
var e=b.menuItem;"menu_item_cinematic_lighting"===d&&(g.po(e.element,"ytp-menuitem-highlighted"),g.po(e.element,"ytp-menuitem-highlight-transition-enabled"),e.u.start())}),lO(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
VIa=function(a){a.menuItem||(a.menuItem=new iP(a.api),g.L(a,a.menuItem),a.menuItem.La(a.j))};
kP=function(a){eP.call(this,a);var b=this;this.j={};this.events=new g.WE(a);g.L(this,this.events);this.N("enable_precise_embargos")&&(this.events.S(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.Df("embargo",1);(null==c?0:c.cueRanges)&&WIa(b,c)}),this.events.S(a,g.eB("embargo"),function(c){var d;
c=null!=(d=b.j[c.id])?d:[];d=g.t(c);for(c=d.next();!c.done;c=d.next()){var e=c.value;b.api.hideControls();b.api.wg("heartbeat.stop",2,"This video isn't available in your current playback area");c=void 0;(e=null==(c=e.embargo)?void 0:c.onTrigger)&&b.api.Qa("innertubeCommand",e)}}))};
WIa=function(a,b){if(null==b?0:BJ(b)){var c;null==(c=b.cueRanges)||c.filter(function(d){var e;return null==(e=d.onEnter)?void 0:e.some(a.u)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h;
e=f+Number(null==(h=d.duration)?void 0:h.seconds);h="embargo_"+f;a.api.addUtcCueRange(h,f,e,"embargo",!1);d.onEnter&&(a.j[h]=d.onEnter.filter(a.u))})}};
lP=function(a){eP.call(this,a);var b=this;this.j=[];this.events=new g.WE(a);g.L(this,this.events);lO(a,"addEmbedsConversionTrackingParams",function(c){b.api.V().Hm&&b.addEmbedsConversionTrackingParams(c)});
this.events.S(a,"veClickLogged",function(c){b.api.Cj(c)&&(c=Ud(c.visualElement.getAsJspb(),2),b.j.push(c))})};
mP=function(a){return g.jv()?a:g.Cc(a,4)};
nP=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-fullerscreen-edu-button","ytp-button"],W:[{F:"div",Ga:["ytp-fullerscreen-edu-text"],qa:"Scroll for details"},{F:"div",Ga:["ytp-fullerscreen-edu-chevron"],W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ua=a;this.B=b;this.j=new g.YM(this,250,void 0,100);this.C=this.u=!1;a.rb(this.element,this,61214);this.B=b;g.L(this,this.j);this.S(a,
"fullscreentoggled",this.La);this.S(a,"presentingplayerstatechange",this.La);this.Pa("click",this.onClick);this.La()};
oP=function(a){eP.call(this,a);var b=this;this.events=new g.WE(a);g.L(this,this.events);lO(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
lO(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.V();a.N("external_fullscreen_with_edu")&&c.externalFullscreen&&nH(c)&&"1"===c.controlsType&&this.events.S(a,"basechromeinitialized",function(){var d=g.sO(a);b.j=new nP(a,d);g.L(b,b.j);d.lC(b.j)})};
XIa=function(a){g.V.call(this,{F:"div",K:"ytp-gated-actions-overlay",W:[{F:"div",K:"ytp-gated-actions-overlay-background",W:[{F:"div",K:"ytp-gated-actions-overlay-background-overlay"}]},{F:"button",Ga:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},W:[g.rM()]},{F:"div",K:"ytp-gated-actions-overlay-bar",W:[{F:"div",K:"ytp-gated-actions-overlay-text-container",W:[{F:"div",K:"ytp-gated-actions-overlay-title",qa:"{{title}}"},{F:"div",K:"ytp-gated-actions-overlay-subtitle",
qa:"{{subtitle}}"}]},{F:"div",K:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Da("ytp-gated-actions-overlay-background");this.u=this.Da("ytp-gated-actions-overlay-button-container");this.j=[];this.S(this.Da("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.Qa("onCloseMiniplayer")});
this.hide()};
$Ia=function(a,b){var c=0,d={};for(c=0;c<b.length;d={Vx:d.Vx},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.V({F:"button",K:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},W:[{F:"div",K:"ytp-gated-actions-overlay-button-title",qa:"{{buttonText}}"}]}),g.L(a,h),h.Ca(a.u),e={element:h});d.Vx=g.N(b[c],YIa);var l=f=void 0,m=void 0,n=(null==(f=d.Vx)?void 0:f.title)||(null==(l=d.Vx)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&h.zc(e.listener);
e.listener=h.Pa("click",function(p){return function(){var q,r=g.N(null==(q=p.Vx)?void 0:q.onTap,ZIa);r&&a.api.Qa("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
aJa=function(a){eP.call(this,a);var b=this;this.events=new g.WE(a);g.L(this,this.events);this.N("enable_courses_player_overlay_purchase")&&(this.j=new XIa(this.api),g.L(this,this.j),this.events.S(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.AX;c=b.j;if(d){var e,f,h=(null==(e=d.title)?void 0:e.content)||"";e=(null==(f=d.subtitle)?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(null==h?0:h.sources){e=0;h=g.t(h.sources);for(var l=h.next();!l.done;l=
h.next())l=l.value,l.width&&l.url&&l.width>e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;$Ia(c,d.actionButtons||[]);c.show()}else c.hide()}),g.VO(this.api,this.j.element,4))};
pP=function(a){eP.call(this,a);var b=this;lO(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
bJa=function(a,b,c){var d=[],e=b?156595:151874;a=g.t(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
cJa=function(a){for(var b=0,c=0;c<a.length;c++)if(a[c].paygatedQualityDetails){var d=a[c];a.splice(c,1);a.splice(b,0,d);b++}};
qP=function(a){eP.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Ab=null;var c;this.useLivingRoomPoToken=!(null==(c=a.V().webPlayerContextConfig)||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Ab=a.vj();b.N("html5_generate_session_po_token")&&!b.useLivingRoomPoToken&&(b.Ab.Fi("pot_isc"),b.N("html5_webpo_idle_priority_job")?g.Tv(g.Vv(),function(){dJa(b)}):dJa(b))});
a.IL(this)};
dJa=function(a){a.Ab.Fi("pot_ist");var b=a.api.V(),c="",d=a.N("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN";c=a.N("html5_webpo_critical_experiment")?"6BW35shnjYbBdd0Xn55t":a.N("html5_webpo_critical_control")?"Av5DGcHDtt8bC80Ew9nc":a.N("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":"O43z0dpjhgX20SCx4KAo";c=g.fH(b)?d:c;a.N("html5_placeholder_po_tokens")&&(c="2ZCPXHYZSpebQXqOYNtj");try{if(a.j=Kga({vg:c,onError:function(f){g.aA(f)}}),!a.N("html5_generate_content_po_token")){a.j.ready().then(function(){a.Ab.Fi("pot_if");
eJa(a)});
var e=g.YF(b.experiments,"html5_session_po_token_interval_time_ms");0<e&&(a.u=g.Su(function(){eJa(a)},e))}}catch(f){f instanceof Error&&g.aA(f)}};
eJa=function(a){var b,c,d,e,f;g.A(function(h){if(!a.N("html5_generate_session_po_token")||null==(b=a.j)||!b.isReady()||a.useLivingRoomPoToken)return h.return();c=a.api.V();d=g.uu("EOM_VISITOR_DATA")||g.uu("VISITOR_DATA");e=c.Mm?c.datasyncId:d;f=c.livingRoomPoTokenId||e;c.Xe=fJa(a,f);g.pa(h)})};
fJa=function(a,b){var c;if(null==(c=a.j)||!c.isReady())return"";try{a.Ab.Fi("pot_cms");var d=a.j.nA({Wv:b});a.Ab.Fi("pot_cmf");return d}catch(e){return g.aA(e),""}};
gJa=function(a){eP.call(this,a);var b=this;this.freePreviewWatchedDuration=0;this.events=new g.WE(a);g.L(this,this.events);g.rH(a.V())&&(this.events.S(a,"heartbeatRequest",function(c){c.heartbeatRequestParams||(c.heartbeatRequestParams={});c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={});c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}),lO(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=
c}))};
hJa=function(a){g.K.call(this);this.j=new fP(a);g.L(this,this.j);this.T=new pP(a);g.L(this,this.T);this.Z=new qP(a);g.L(this,this.Z);this.C=new kP(a);g.L(this,this.C);this.u=new TIa(a);g.L(this,this.u);this.ea=new gJa(a);g.L(this,this.ea);this.B=new jP(a);g.L(this,this.B);this.I=new oP(a);g.L(this,this.I);this.J=new aJa(a);g.L(this,this.J);this.D=new lP(a);g.L(this,this.D)};
rP=function(){this.u=this.j=NaN};
sP=function(a,b,c){YB(a,c)||ZB(a,b,c);YB(a,"video_to_ad")||ZB(a,b,"video_to_ad");YB(a,"ad_to_video")||ZB(a,b,"ad_to_video");YB(a,"ad_to_ad")||ZB(a,b,"ad_to_ad")};
tP=function(a,b){this.Y=a;this.timerName="";this.B=!1;this.u=NaN;this.C=new rP;this.j=b||null;this.B=!1};
iJa=function(a,b){a.timerName=b};
uP=function(a,b){sP(b,void 0,a.timerName)};
jJa=function(a,b,c){var d=g.WG(b.u)&&!b.u.I;if(b.u.Hj&&(SG(b.u)||"shortspage"===b.u.Ka||vH(b.u)||d)&&!a.B){a.B=!0;a.I=b.clientPlaybackNonce;g.uu("TIMING_ACTION")||tu("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&tu("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.vj();for(var e=g.t(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,JB(f,d[f],a.timerName);d=a.j.HC;e=g.t(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.MB(f,d[f],a.timerName);d=a.j;d.j={};d.HC={}}g.MB("yt_pvis",
$B(),a.timerName);g.MB("yt_pt","html5",a.timerName);a.D!==b.clientPlaybackNonce||Number.isNaN(a.u)||(YB("_start",a.timerName)?c=nB("_start",a.timerName)+a.u:g.aA(new g.Yv("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!YB("pbs",a.timerName)&&a.tick("pbs",c)}};
kJa=function(a){if(a.j){var b=a.j;b.j={};b.HC={}}a.B=!1;a.D=void 0;a.u=NaN};
vP=function(a,b){g.Mz.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.ea={};this.B=0;if(a=b.session_data)this.sessionData=Eu(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 RH("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.SH(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.t(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.ea=NH(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
wP=function(a){return!!(a.playlist||a.list||a.api)};
lJa=function(a){var b=a.index+1;return b>=a.length?0:b};
mJa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.xP=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.GI(a.u,b),g.L(a,e),e.Pk=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
yP=function(a,b){a.index=g.Ag(b,0,a.length-1);a.startSeconds=0};
zP=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.xP(a);a.items=[];for(var d=g.t(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()}};
pJa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j){c=g.QN();var p=a.V(),q={context:g.gO(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};p=p.embedConfig;var r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=b.raw_embedded_player_response;if(!r&&!g.wu("parse_video_id_from_serialized_embedded_player_response_killswitch")){var w=b.embedded_player_response;w&&(r=JSON.parse(w))}if(r){var y,z,B,D,G,E;r=(null==(E=g.N(null==(y=r)?void 0:null==(z=y.embedPreview)?
void 0:null==(B=z.thumbnailPreviewRenderer)?void 0:null==(D=B.playButton)?void 0:null==(G=D.buttonRenderer)?void 0:G.navigationEndpoint,g.VH))?void 0:E.videoId)||null}else r=null}y=(y=r)?y:void 0;z=a.playlistId?a.playlistId:b.list;B=b.listType;if(z){var J;"user_uploads"===B?J={username:z}:J={playlistId:z};nJa(p,y,b,J);q.playlistRequest=J}else b.playlist?(J={templistVideoIds:b.playlist.toString().split(",")},nJa(p,y,b,J),q.playlistRequest=J):y&&(J={videoId:y},p&&(J.serializedThirdPartyEmbedConfig=
p),q.singleVideoRequest=J);d=q;e=g.CN(oJa);g.qa(n,2);return g.x(n,g.JL(c,d,e),4)}if(2!=n.j)return f=n.u,h=a.V(),b.raw_embedded_player_response=f,h.ea=Ev(b,g.QG(h)),h.j="EMBEDDED_PLAYER_MODE_PFL"===h.ea,h.N("embeds_web_enable_info_panel_preview")&&f&&(l=f,l.trackingParams&&(q=l.trackingParams,yL(wL(),q))),n.return(new g.GI(h,b));m=g.sa(n);g.$z(m);return n.return(a)})};
nJa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.BP=function(a,b){AP.get(a);AP.set(a,b)};
g.CP=function(a){g.Mz.call(this);this.loaded=!1;this.player=a};
qJa=function(){this.u=[];this.j=[]};
g.DP=function(a,b){return b?a.j.concat(a.u):a.j};
g.EP=function(a,b){switch(b.kind){case "asr":rJa(b,a.u);break;default:rJa(b,a.j)}};
rJa=function(a,b){g.Qb(b,function(c){return a.equals(c)})||b.push(a)};
g.FP=function(a){g.K.call(this);this.Y=a;this.j=new qJa;this.C=[]};
g.GP=function(a,b,c){g.FP.call(this,a);this.audioTrack=c;this.u=null;this.C=b.DH};
sJa=function(){this.j=this.lj=!1};
tJa=function(a){a=void 0===a?{}:a;var b=void 0===a.Bn?!1:a.Bn,c=new sJa;c.lj=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c};
g.HP=function(a){this.j=a;this.C=new sJa;this.Em=this.Dm=!1;this.ek=2;this.T=20971520;this.oa=8388608;this.J=120;this.Yc=3145728;this.ib=62914560;this.od=10485760;this.hk=g.YF(this.j.experiments,"html5_min_readbehind_secs");this.Ju=g.YF(this.j.experiments,"html5_min_readbehind_cap_secs");this.Iu=g.YF(this.j.experiments,"html5_max_readbehind_secs");this.Ev=this.j.N("html5_trim_future_discontiguous_ranges");this.Nk=this.j.N("html5_disable_encrypted_vp9_live_non_2k_4k");this.Tb=NaN;this.Lm=this.Si=this.cn=
2;this.ya=2097152;this.We=0;this.Km=1048576;this.wc=!1;this.Fd=1800;this.gk=this.dk=5;this.Sa=15;this.Xe=1;this.B=1.15;this.D=1.05;this.Vo=1;this.Bm=!0;this.Ma=!1;this.Mm=.8;this.al=this.pc=!1;this.zd=6;this.I=this.rd=!1;this.Xa=this.j.N("html5_halt_ssdai_fetch_on_predict_start");this.Mg=g.YF(this.j.experiments,"html5_static_abr_resolution_shelf");this.ql=g.YF(this.j.experiments,"html5_min_startup_buffered_media_duration_secs");this.Fm=g.YF(this.j.experiments,"html5_post_interrupt_readahead");this.Cm=
!1;this.Hm=g.YF(this.j.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Rm=100;this.Ye=10;this.Ku=g.YF(this.j.experiments,"html5_offline_failure_retry_limit")||2;this.Pj=this.j.experiments.gb("html5_clone_original_for_fallback_location");this.Tf=1;this.je=1.6;this.Dc=!1;this.qb=g.YF(this.j.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.gh=g.YF(this.j.experiments,"html5_subsegment_readahead_timeout_secs");this.Bv=g.YF(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs");
this.Ng=g.YF(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.Cv=g.YF(this.j.experiments,"html5_subsegment_readahead_min_load_speed");this.Qm=g.YF(this.j.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.Dv=g.YF(this.j.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Sf=15;this.il=1;this.Dd=!1;this.vv=this.j.N("html5_restrict_streaming_xhr_on_sqless_requests");this.Tx=g.YF(this.j.experiments,"html5_max_headm_for_streaming_xhr");
this.Ou=this.j.N("html5_pipeline_manifestless_allow_nonstreaming");this.fv=this.j.N("html5_prefer_server_bwe3");this.Sx=this.j.N("html5_last_slice_transition");this.zv=this.j.N("html5_store_xhr_headers_readable");this.Io=!1;this.Im=0;this.Jg=2;this.Om=this.Jj=!1;this.ll=g.YF(this.j.experiments,"html5_max_drift_per_track_secs");this.ul=this.j.N("html5_no_placeholder_rollbacks");this.Av=this.j.N("html5_subsegment_readahead_enable_mffa");this.Ve=this.j.N("html5_allow_video_keyframe_without_audio");this.Lv=
this.j.N("html5_webm_init_skipping");this.rl=this.j.N("html5_never_pause_appends");this.Vb=!0;this.Le=this.Oa=this.Mb=!1;this.Pk=!0;this.Lg=!1;this.u="";this.Ex=1048576;this.ke=[];this.Kx=this.j.N("html5_woffle_resume");this.Qi=this.j.N("html5_abs_buffer_health");this.Hh=!1;this.Rx=this.j.N("html5_interruption_resets_seeked_time");this.Hu=g.YF(this.j.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ka=!1;this.Wk=this.j.N("html5_explicitly_dispose_xhr");this.Jm=!1;this.xt=!this.j.N("html5_encourage_array_coalescing");
this.Gj=!1;this.tv=this.j.N("html5_restart_on_unexpected_detach");this.ea=0;this.Vk="";this.ix=this.j.N("html5_disable_codec_for_playback_on_error");this.Kg=!1;this.Qx=this.j.N("html5_filter_non_efficient_formats_for_safari");this.j.N("html5_format_hybridization");this.jt=this.j.N("html5_abort_before_separate_init");this.jl=g.YF(this.j.experiments,"html5_manifestless_seg_drift_limit_secs");this.wv=nv();this.fl=!1;this.yv=this.j.N("html5_serialize_server_stitched_ad_request");this.At=this.j.N("html5_skip_buffer_check_seek_to_head");
this.Od=!1;this.wt=this.j.N("html5_attach_po_token_to_bandaid");this.fk=g.YF(this.j.experiments,"html5_max_redirect_response_length")||8192;this.wl=this.j.N("html5_rewrite_timestamps_for_webm");this.Nm=this.j.N("html5_rewrite_durations_for_webm");this.kb=this.j.N("html5_only_media_duration_for_discontinuities");this.qv=g.YF(this.j.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Fv=this.j.N("html5_onesie_live");this.Gv=this.j.N("html5_onesie_premieres");this.Lu=g.YF(this.j.experiments,
"html5_onesie_live_ttl_secs")||8;this.vl=g.YF(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.xv=this.j.N("html5_self_init_consolidation");this.Ac=this.j.N("html5_onesie_ads");this.Qt=this.j.N("html5_live_partial_response_resumable");this.Nu=g.YF(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.Wa=this.j.N("html5_ssdai_use_post_for_media")&&this.j.N("gab_return_sabr_ssdai_config");this.Sm=this.j.N("html5_use_post_for_media");this.Pu=this.j.N("html5_precoalesce");
this.useUmp=this.j.N("html5_use_ump");this.Ba=this.Z=!1;this.Gm=this.j.N("html5_prefer_drc");this.ov=this.j.N("html5_reset_primary_stats_on_redirector_failure");this.hv=this.j.N("html5_remap_to_original_host_when_redirected");this.Hj=this.j.N("html5_xhr_clean_up_multi_slice_facade");this.Aa=this.j.N("html5_consume_media_bytes_slice_infos");this.yb=this.j.N("html5_use_sabr_requests_for_debugging");this.Mu=this.j.N("html5_onesie_notify_cuepoint_manager_on_completion");this.Pm=g.YF(this.j.experiments,
"html5_skip_sub_quantum_discontinuity_secs")};
uJa=function(a,b){1080<b.video.j&&!a.Dm&&(a.T=36700160,a.oa=5242880,a.Yc=10485760,a.ya=Math.max(4194304,a.ya),a.Dm=!0);2160<b.video.j&&!a.Em&&(a.T=104857600,a.Tb=13107200,a.Em=!0);b.isEncrypted()&&g.jv()&&hv("kant")&&(a.Tb=1310720);b.Tb&&(a.Km=Math.max(65536,Math.min(a.ya,5*b.Tb)))};
g.IP=function(a,b){return TE(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.vJa=function(a,b){if(null!=a.j&&g.rH(b.V())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Ud())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.IP(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Iza(a.j);return b||a};
g.JP=function(a,b,c,d,e){g.FP.call(this,a);this.videoId=c;this.LQ=e;this.D={};this.u=null;a=d||g.Iu(b).hl||"";a=a.split("_").join("-");this.B=Ju(b,{hl:a})};
xJa=function(){this.j=wJa(this)};
wJa=function(a){return{env:{emscripten_notify_memory_growth:function(){}},
wasi_snapshot_preview1:{proc_exit:function(){},
fd_write:function(b,c,d){b=new DataView(a.exports.memory.buffer);for(var e="",f=0,h=0;h<d;h++){var l=b.getUint32(c,!0),m=b.getUint32(c+4,!0);f+=m;e+=g.SC(new Uint8Array(a.exports.memory.buffer,l,m));c+=8}console.log(e);return f}}}};
yJa=function(a){var b,c;return g.A(function(d){if(1==d.j)return b=new xJa,g.x(d,WebAssembly.instantiateStreaming(fetch(a),b.j),2);c=d.u;b.module=c.module;b.instance=c.instance;b.exports=b.instance.exports;return d.return(b)})};
KP=function(a,b){g.K.call(this);this.G=a;this.I=b;this.HC={};this.j={};this.u=null;this.J=this.G.N("web_player_defer_modules");this.C=new Set;this.B=this.G.V().Nk||0;this.Ie=new Map;0<this.B&&(this.D=new g.ho(this.GC,this.B,this),g.L(this,this.D))};
g.LP=function(a){return a.Ie.get("captions")};
DJa=function(a,b){switch(b){case "ad":return MP(a);case "annotations_module":return a.isShortsModeEnabled()?a=!1:(b=a.G,a=b.V(),b=b.getVideoData(),a=a.j||b.GO||"3"===a.controlsType?!1:a.oa.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Xa||!!g.pJ(b)||!!g.qJ(b):!0),a;case "creatorendscreen":return zJa(a);case "embed":return g.QG(a.G.V());case "endscreen":return g.AJa(a);case "heartbeat":return a.ML();case "inline_preview":return a.G.V().showInlinePreviewUi;case "kids":return gH(a.G.V());
case "remote":return a.G.V().yb;case "miniplayer":return a.G.V().showMiniplayerUiWhenMinimized;case "music":return g.$G(a.G.V());case "offline":return a.G.V().Lg;case "captions":return BJa(a);case "unplugged":return g.YG(a.G.V());case "ux":return a.G.V().Ye;case "webgl":return CJa(a);case "ypc":return a.gB();case "ypc_clickwrap":return a=a.G.getVideoData(),a.Ye&&!a.OG;case "yto":return!!a.G.getVideoData().Ba.includes("yto");default:return g.$z(Error("Module descriptor "+b+" does not match")),!1}};
NP=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Ie.get(b);if(!h||d)if(e||(e=function(){NP(a,b,c,d)}),f||(f=function(){a.G.Of(b)}),h=h||EJa(a,b,DJa(a,b),e,f))a.Ie.set(b,h),h.create(),c&&a.G.Qa("onApiChange")};
FJa=function(a){var b=a.G.getVideoData(),c=a.J&&!b.isInlinePlaybackNoAd;a.G.N("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
OP=function(a){a=a.G.getVideoData();var b;if(b=a.N("web_player_defer_ad")){if(g.Sb(a.Ba,"ad")||MI(a,"disable_defer_admodule_on_advertiser_video")&&DDa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=null==b?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=
e=void 0;f=Number(null==(e=f)?void 0:null==(h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=1E3*a}a=b?!1:!0}b=a}return b};
BJa=function(a){var b=a.G.getVideoData();return!!b.Od||!!b.captionTracks.length||g.vJa(b,a.G)};
g.AJa=function(a){var b=a.G.V();if(b.j||vH(b)||b.I||!b.Yc&&!b.Sf)return!1;var c=a.G.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.N("desktop_enable_autoplay");a=a.G.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.TO=function(a){return a.Ie.get("webgl")};
CJa=function(a){var b=a.G.getVideoData();a=a.G.V();var c=g.Tma(),d=a.N("enable_spherical_kabuki"),e=g.uH(a);if(g.oJ(b))return c||d||e;if(g.lJ(b))return e||c||d;if(g.mJ(b))return e||c||!1;if(g.nJ(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.dJ(b)&&!c&&a.N("enable_webgl_noop")};
MP=function(a){if(a.G.V().j)return!1;if(a=a.G.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
zJa=function(a){if(a.isShortsModeEnabled())return!1;a=a.G;var b=a.V();if(b.j||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.NDa(a)||!!g.ODa(a))};
EJa=function(a,b,c,d,e){try{if(c){var f=AP.get(b);if(f)return new f(a.G);GJa(a,b,d,e)}else a.G.Of(b)}catch(h){a.G.Of(b),g.$z(h)}return null};
PP=function(a,b,c){for(var d=g.t(a.Ie),e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Sj(b))&&(g.Ze(f),a.Ie.delete(e))}};
QP=function(a){return a.Ie.get("ad")};
RP=function(a){if(gH(a.G.V()))return a.Ie.get("kids")};
RO=function(a){if(a.G.V().yb)return a.Ie.get("remote")};
g.SP=function(a){if(g.YG(a.G.V()))return a.Ie.get("unplugged")};
rO=function(a){if(a.G.V().Ye)return a.Ie.get("ux")};
TP=function(a){if(a.G.V().Lg)return a.Ie.get("offline")};
g.UP=function(a){return a.Ie.get("annotations_module")};
VP=function(a){return a.Ie.get("creatorendscreen")};
HJa=function(a){a=a.I.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return yJa(a)};
GJa=function(a,b,c,d){if(a.I){var e=IJa[b];JJa(a,a.I+e,function(){a.C.add(e);c.call(a)},d)}};
JJa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.Tg("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.bh("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(z){oh(f);q&&q.apply(window,[z])};
var r=m.onerror;m.onerror=function(z){if(.01>Math.random()){var B=new g.Yv("Unable to load player module",b,document.location&&document.location.origin);g.$z(B)}oh(e);r&&r(z)};
var w=m,y=w.onreadystatechange;w.onreadystatechange=function(z){switch(w.readyState){case "loaded":case "complete":oh(f)}y&&y(z)};
l&&((h=a.G.V().cspNonce)&&m.setAttribute("nonce",h),g.bj(m,g.fg(b)),h=g.Tg("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.af(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
WP=function(a,b,c){g.bf.call(this,b,a);this.j=c};
g.XP=function(a){YK.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new WP(b,c.type,c))}};
ZP=function(a,b,c,d,e){g.Mz.call(this);var f=this;this.target=a;this.vC=b;this.u=0;this.I=!1;this.C=new g.Eg(NaN,NaN);this.j=new g.WE(this);this.Aa=this.B=this.J=null;g.L(this,this.j);b=d||e?4E3:3E3;this.Z=new g.ho(function(){YP(f,1,!1)},b,this);
g.L(this,this.Z);this.ea=new g.ho(function(){YP(f,2,!1)},b,this);
g.L(this,this.ea);this.oa=new g.ho(function(){YP(f,512,!1)},b,this);
g.L(this,this.oa);this.ya=c&&0<c.Tf.length?5E3:3E3;d||(this.B=this.j.S(a,"mouseover",this.jE),this.j.S(a,"mousemove",this.L_),this.j.S(a,"mouseleave",this.M_));Jl?this.j.S(a,"keypress",this.p_):this.j.S(a,"focusin",this.mZ);this.D=this.j.S(a,"mousedown",this.zR);this.T=this.j.S(a,"touchstart",this.fU,void 0,!0);YP(this,640,!0)};
KJa=function(a){YP(a,4,!1);a.J&&(a.j.zc(a.J),a.J=null,a.B=a.j.S(a.target,"mouseover",a.jE));a.B&&(a.j.zc(a.B),a.B=a.j.S(a.target,"mouseover",a.jE))};
YP=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.Z.start(),b&2&&a.ea.start()):(a.u&=~b,b&1&&a.Z.stop(),b&2&&a.ea.stop(),b&512&&a.oa.stop());a.u&512&&!(a.u&128)&&g.io(a.oa,a.ya);b=!a.u;d!==b&&a.ma("autohideupdate",b)};
g.aQ=function(a){g.V.call(this,{F:"button",Ga:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play"},W:["{{largePlayButtonChildren}}"]});this.api=a;this.S(a,"videodatachange",this.La);this.S(a,"basechromeinitialized",this.La);a=this.api.V();a.J&&$P&&(this.Pa("click",this.j,this),this.Pa("touchstart",this.u,this));g.WG(a)&&g.po(this.element,"ytp-large-play-button-red-bg");this.api.rb(this.element,this,28572);this.La()};
g.bQ=function(a){var b=a.V(),c=["ytp-cued-thumbnail-overlay"];b.I&&c.push("ytp-exp-contain-thumbnail");b.N("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.V.call(this,{F:"div",Ga:c,W:[{F:"div",K:"ytp-cued-thumbnail-overlay-image"}]});b=this.Da("ytp-cued-thumbnail-overlay");c=new g.aQ(a);g.L(this,c);c.Ca(b);this.B=new g.WE(this);g.L(this,this.B);this.api=a;this.D=this.Da("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.YM(this,250);g.L(this,this.u);this.j=new g.ho(this.La,
0,this);g.L(this,this.j);this.La();this.S(a,"appresize",this.Bb);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"ypcStateChanged",this.h3);SG(a.V())&&this.S(a,"videoplayerreset",this.NW)};
LJa=function(a){if(!a.api.N("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Db();a=g.U(a,64)&&g.U(a,1);return 0===b&&a};
MJa=function(a){var b=!a.V().Hh&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.cQ=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.nN(a))return g.Kx(a),!0;b.pauseVideo();a=e.getAttribute("href");g.yN(a,d,!0);return!1};
g.dQ=function(a,b,c){if(nH(b.V())&&2!==b.getPresentingPlayerType()){if(g.nN(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.Kx(c),!0}else if(b.V().N("embeds_enable_webview_nonjs_navigation")&&g.QG(b.V())&&(tv()||qv()))b=c.target,b instanceof HTMLAnchorElement&&aj(b,Pfa(a));else{var d=g.nN(c);d&&b.pauseVideo();g.yN(a,void 0,!0);d&&(g.zN(a),g.Kx(c))}return!1};
NJa=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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"}}],K:"ytp-subtitles-button-icon"}};
eQ=function(){return{F:"div",K:"ytp-spinner-container",W:[{F:"div",K:"ytp-spinner-rotator",W:[{F:"div",K:"ytp-spinner-left",W:[{F:"div",K:"ytp-spinner-circle"}]},{F:"div",K:"ytp-spinner-right",W:[{F:"div",K:"ytp-spinner-circle"}]}]}]}};
fQ=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
gQ=function(a,b,c){a=a.V();return a.N("desktop_player_button_tooltip_with_shortcut")&&!a.Ng?g.LK("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.hQ=function(a){g.V.call(this,{F:"div",Ga:["ytp-error"],X:{role:"alert"},W:[{F:"div",K:"ytp-error-content",W:[{F:"div",K:"ytp-error-icon-container",W:[{F:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},W:[{F:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{F:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{F:"div",K:"ytp-error-content-wrap",
W:[{F:"div",K:"ytp-error-content-wrap-reason",qa:"{{content}}"},{F:"div",K:"ytp-error-content-wrap-subreason",qa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.iQ=function(a){a=a.split(OJa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({F:"br"}),b.push(d[e]);c<a.length&&b.push({F:"a",X:{href:a[c],target:a[c+1]},qa:a[c+2]})}return{F:"span",W:b}};
kQ=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.V().u);a=a.api.getVideoData();b=g.LK(g.jQ[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({F:"h2",qa:f});d.push(b[0]);h&&d.push({F:"br"});d.push({F:"a",X:{href:c,target:e?"_blank":null},qa:b[2]});d.push(b[4]);return{F:"span",W:d}};
PJa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.S(c[d],"click",b);a.keys.push(e)}};
QJa=function(a){for(var b=0;b<a.keys.length;b++)a.zc(a.keys[b]);a.keys=[]};
lQ=function(a){g.WE.call(this);this.G=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.Nh);this.onVideoDataChange()};
mQ=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
RJa=function(a){mQ(a,"play",function(){a.G.playVideo()});
mQ(a,"pause",function(){a.G.pauseVideo()});
mQ(a,"seekbackward",function(){a.G.seekBy(-5*a.G.getPlaybackRate())});
mQ(a,"seekforward",function(){a.G.seekBy(5*a.G.getPlaybackRate())})};
SJa=function(a){var b,c;a=a.G.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
TJa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.t(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.$A(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
UJa=function(a){var b=a.G.Db();b=b.isCued()||b.isError()?"none":g.jL(b)?"playing":"paused";a.mediaSession.playbackState=b};
nQ=function(a){g.V.call(this,{F:"div",K:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.Id=this.j=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.sH(b)?(this.u=new g.V({F:"a",K:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},W:[{F:"div",K:"ytp-paid-content-overlay-icon",qa:"{{icon}}"},{F:"div",K:"ytp-paid-content-overlay-text",qa:"{{text}}"},{F:"div",K:"ytp-paid-content-overlay-chevron",qa:"{{chevron}}"}]}),
this.S(this.u.element,"click",this.onClick)):this.u=new g.V({F:"div",Ga:["ytp-button","ytp-paid-content-overlay-text"],qa:"{{text}}"});this.C=new g.YM(this.u,250,!1,100);g.L(this,this.u);this.u.Ca(this.element);g.L(this,this.C);this.G.yg(this.element,this);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.Vc)};
WJa=function(a,b){var c=CDa(b),d=eJ(b);b.Ye&&a.G.zn()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.ko(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&VJa(a,d,c,b)):c&&d&&VJa(a,d,c,b))};
VJa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.ho(a.wb,b,a);g.L(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.N(e,g.TI))?void 0:l.url;a.G.Ah(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{F:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",
width:"100%"},W:[{F:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.qM():null})};
XJa=function(a,b){a.j&&(g.U(b,8)&&a.B?(a.B=!1,a.Kc(),a.j.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))};
oQ=function(a){g.V.call(this,{F:"div",K:"ytp-spinner",W:[eQ(),{F:"div",K:"ytp-spinner-message",qa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.j=new g.ho(this.show,500,this);g.L(this,this.j);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"playbackstalledatstart",this.u);this.Oc(a.Db())};
pQ=function(a){var b=OF(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{F:"div",Ga:["ytp-unmute-icon"],W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{F:"div",Ga:["ytp-unmute-text"],qa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({F:"div",Ga:["ytp-unmute-box"],W:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.XO.call(this,a,{F:"button",Ga:["ytp-unmute","ytp-popup","ytp-button"].concat(c),W:[{F:"div",K:"ytp-unmute-inner",W:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.rb(this.element,this,51663);this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.S(a,"presentingplayerstatechange",
this.Nh);this.Pa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.QG(this.api.V());g.kM(this,a);a&&YJa(this);this.B=a};
YJa=function(a){a.j||(a.j=!0,a.api.Va(a.element,!0))};
g.rQ=function(a){g.WE.call(this);var b=this;this.api=a;this.RJ=!1;this.Gn=null;this.FC=!1;this.Gf=null;this.RH=this.sF=!1;this.mM=this.oM=null;this.fR=NaN;this.lM=this.ez=!1;this.rA=0;this.eH=[];this.PK=!1;this.ED={height:0,width:0};var c=a.V(),d=a.fb();this.ED=a.getPlayerSize();this.TO=new g.ho(this.eK,0,this);g.L(this,this.TO);g.$G(c)||(this.Go=new g.bQ(a),g.L(this,this.Go),g.VO(a,this.Go.element,4));if(ZJa(this)){var e=new oQ(a);g.L(this,e);e=e.element;g.VO(a,e,4)}var f=a.getVideoData();this.Ee=
new ZP(d,function(l){return b.vC(l)},f,c.Tf,!1);
g.L(this,this.Ee);this.Ee.subscribe("autohideupdate",this.Vl,this);if(!c.disablePaidContentOverlay){var h=new nQ(a);g.L(this,h);g.VO(a,h.element,4)}this.uM=new pQ(a);g.L(this,this.uM);g.VO(this.api,this.uM.element,2);this.fJ=this.api.isMutedByMutedAutoplay();this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.oF=new g.ho(this.Cx,200,this);g.L(this,this.oF);this.gA=f.videoId;this.iT=new g.ho(function(){b.rA=0},350);
g.L(this,this.iT);this.KC=new g.ho(function(){b.lM||qQ(b)},350,this);
g.L(this,this.KC);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.po(f,"ytp-color-white")}g.$G(c)&&g.po(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new lQ(a),g.L(this,f));this.S(a,"appresize",this.Bb);this.S(a,"presentingplayerstatechange",this.Nh);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"videoplayerreset",this.F1);this.S(a,"autonavvisibility",
function(){b.Xn()});
this.S(a,"sizestylechange",function(){b.Xn()});
this.S(d,"click",this.e2,this);this.S(d,"dblclick",this.f2,this);c.kb&&(this.S(d,"gesturechange",this.g2,this),this.S(d,"gestureend",this.h2,this));this.ir=[d.Vy];this.Go&&this.ir.push(this.Go.element);e&&this.ir.push(e)};
$Ja=function(a,b){if(!b)return!1;var c=a.api.Zd();if(c.rs()&&(c=c.Ef())&&g.hh(c,b))return c.controls;for(c=0;c<a.ir.length;c++)if(g.hh(a.ir[c],b))return!1;return g.oo(b,"ytp-player-content")||g.oo(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
aKa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.fb().BD||!1)&&a.api.V().isMobile&&$P&&11<=AJ;a=a.api.V().J&&$P;return!(!b&&!a)};
sQ=function(a,b){return!$Ja(a,Hx(b))&&g.nN(b)};
qQ=function(a){a.Ee.Wn();if(a.sF&&a.RH)a.RH=!1;else if(!a.api.V().Ma&&!a.zk()){var b=a.api.Db();g.U(b,2)&&g.PO(a.api)||a.ou(b);if(!a.api.V().kb||b.isCued()||g.U(b,1024)){var c=a.api.hF();g.gw("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.U(b,1024);c&&(b.isCued()||d)?(g.gw("embedsRequestStorageAccessState",{isCued:b.isCued(),Z5a:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.gw("embedsRequestStorageAccessFailedState",{state:b.state}),a.Cx())}else a.oF.isActive()?
(a.CD(),a.oF.stop()):a.oF.start()}};
bKa=function(a,b){return g.nN(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Db(),!g.U(b,4)||g.U(b,8)||g.U(b,2)||a.Cx(),!0):!1};
cKa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
ZJa=function(a){a=iv()&&67<=Qma()&&!a.api.V().J;return!hv("tizen")&&!NG&&!a&&!0};
tQ=function(a,b){b=void 0===b?2:b;g.Mz.call(this);this.api=a;this.j=null;this.Zc=new Jz(this);g.L(this,this.Zc);this.u=AHa;this.Zc.S(this.api,"presentingplayerstatechange",this.Vc);this.j=this.Zc.S(this.api,"progresssync",this.jc);this.qm=b;1===this.qm&&this.jc()};
uQ=function(a){g.V.call(this,{F:"button",Ga:["ytp-button","ytp-back-button"],W:[{F:"div",K:"ytp-arrow-back-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{F:"path",Qb:!0,X:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.kM(this,a.V().showBackButton);this.Pa("click",this.onClick)};
g.vQ=function(a){g.V.call(this,{F:"div",W:[{F:"div",K:"ytp-bezel-text-wrapper",W:[{F:"div",K:"ytp-bezel-text",qa:"{{title}}"}]},{F:"div",K:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},W:[{F:"div",K:"ytp-bezel-icon",qa:"{{icon}}"}]}]});this.G=a;this.u=new g.ho(this.show,10,this);this.j=new g.ho(this.hide,500,this);g.L(this,this.u);g.L(this,this.j);this.hide()};
xQ=function(a,b,c){if(0>=b){c=BM();b="muted";var d=0}else c=c?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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";wQ(a,c,b,d+"%")};
dKa=function(a,b){b=b?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.G.getPlaybackRate(),d=g.LK("Speed is $RATE",{RATE:String(c)});wQ(a,b,d,c+"x")};
eKa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";wQ(a,NJa(),b)};
wQ=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.ko(a.j);a.u.start();a.updateValue("title",d);g.to(a.element,"ytp-bezel-text-hide",!d)};
zQ=function(a,b,c){g.V.call(this,{F:"button",Ga:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.QG(a.V()))},W:[{F:"span",K:"ytp-cards-button-icon-default",W:[{F:"div",K:"ytp-cards-button-icon",W:[a.V().N("player_new_info_card_format")?XGa():{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{F:"div",K:"ytp-cards-button-title",qa:"Info"}]},{F:"span",K:"ytp-cards-button-icon-shopping",W:[{F:"div",K:"ytp-cards-button-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",K:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{F:"path",K:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{F:"path",K:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{F:"div",
K:"ytp-cards-button-title",qa:"Shopping"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.YM(this,250,!0,100);g.L(this,this.u);g.to(this.C,"ytp-show-cards-title",g.QG(a.V()));this.hide();this.Pa("click",this.onClicked);this.Pa("mouseover",this.W0);yQ(this,!0)};
yQ=function(a,b){b?a.j=g.AQ(a.B.xc(),a.element):(a.j=a.j,a.j(),a.j=null)};
BQ=function(a,b,c){g.V.call(this,{F:"div",K:"ytp-cards-teaser",W:[{F:"div",K:"ytp-cards-teaser-box"},{F:"div",K:"ytp-cards-teaser-text",W:a.V().N("player_new_info_card_format")?[{F:"button",K:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},W:[XGa()]},{F:"span",K:"ytp-cards-teaser-label",qa:"{{text}}"},{F:"button",K:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},W:[g.rM()]}]:[{F:"span",K:"ytp-cards-teaser-label",qa:"{{text}}"}]}]});var d=this;this.G=a;this.Z=
b;this.Yh=c;this.C=new g.YM(this,250,!1,250);this.j=null;this.J=new g.ho(this.n1,300,this);this.I=new g.ho(this.m1,2E3,this);this.D=[];this.u=null;this.T=new g.ho(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.L(this,this.C);g.L(this,this.J);g.L(this,this.I);g.L(this,this.T);a.V().N("player_new_info_card_format")?(g.po(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.Da("ytp-cards-teaser-close-button"),"click",this.Ln),this.S(this.Da("ytp-cards-teaser-info-icon"),"click",this.cM),this.S(this.Da("ytp-cards-teaser-label"),"click",this.cM)):this.Pa("click",this.cM);this.S(c.element,"mouseover",this.aO);this.S(c.element,"mouseout",this.ZN);this.S(a,"cardsteasershow",
this.K2);this.S(a,"cardsteaserhide",this.wb);this.S(a,"cardstatechange",this.tU);this.S(a,"presentingplayerstatechange",this.tU);this.S(a,"appresize",this.AM);this.S(a,"onShowControls",this.AM);this.S(a,"onHideControls",this.FY);this.Pa("mouseenter",this.OW)};
DQ=function(a){g.V.call(this,{F:"button",Ga:[CQ.BUTTON,CQ.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{F:"div",K:CQ.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},W:[g.vM()]},{F:"div",K:CQ.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},W:[{F:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{F:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=a;this.j=!1;a.rb(this.element,this,36927);this.Pa("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
fKa=function(a,b){a.j=b;a.element.classList.toggle(CQ.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.OF:c.KM)?(a=a.api.Il())?HN(a,b):g.Bu(Error("No innertube service available when updating notification preferences.")):g.Bu(Error("No update preferences command available.")):g.Bu(Error("No video data when updating notification preferences."))};
g.FQ=function(a,b,c,d,e,f,h,l,m,n,p,q,r){r=void 0===r?null:r;f&&(a=a.charAt(0)+a.substring(1).toLowerCase());var w;if(f||(null==(w=r)?0:w.Ce()))c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var y=q.V();p=y.userDisplayName&&g.WG(y)&&!y.N("subscribe_tooltipkillswitch");g.V.call(this,{F:"div",Ga:["ytp-button","ytp-sb"],W:[{F:"div",K:"ytp-sb-subscribe",X:p?{title:g.LK("Subscribe as $USER_NAME",{USER_NAME:y.userDisplayName}),"aria-label":"Subscribe to channel",
"data-tooltip-image":wH(y),"data-tooltip-opaque":String(g.QG(y)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},W:[{F:"div",K:"ytp-sb-text",W:[{F:"div",K:"ytp-sb-icon"},a]},b?{F:"div",K:"ytp-sb-count",qa:b}:""]},{F:"div",K:"ytp-sb-unsubscribe",X:p?{title:g.LK("Subscribed as $USER_NAME",{USER_NAME:y.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":wH(y),"data-tooltip-opaque":String(g.QG(y)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},
W:[{F:"div",K:"ytp-sb-text",W:[{F:"div",K:"ytp-sb-icon"},c]},d?{F:"div",K:"ytp-sb-count",qa:d}:""]}],X:{"aria-live":"polite"}});var z=this;this.channelId=h;this.B=r;this.G=q;var B=this.Da("ytp-sb-subscribe"),D=this.Da("ytp-sb-unsubscribe");f&&g.po(this.element,"ytp-sb-classic");if(e){y.N("web_rounded_containers")&&(g.po(B,"ytp-sb-rounded"),g.po(D,"ytp-sb-rounded"));l?this.j():this.u();var G=function(){if(y.authUser){var J=z.channelId;if(m||n){var M={c:J};if(q.V().N("embeds_botguard_with_subscribe_killswitch"))M=
"";else{var P;g.WN.isInitialized()&&(P=iIa(M));M=P||""}if(P=q.getVideoData())if(P=P.subscribeCommand){var X=q.Il();X?(HN(X,P,{botguardResponse:M,feature:m}),q.Qa("SUBSCRIBE",J)):g.Bu(Error("No innertube service available when updating subscriptions."))}else g.Bu(Error("No subscribe command in videoData."));else g.Bu(Error("No video data available when updating subscription."))}D.focus();D.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")}else g.AN(z.C,"sb_button",g.kH(z.G.V()))},
E=function(){var J=z.channelId;
if(m||n){var M=q.getVideoData();HN(q.Il(),M.unsubscribeCommand,{feature:m});q.Qa("UNSUBSCRIBE",J)}B.focus();B.removeAttribute("aria-hidden");D.setAttribute("aria-hidden","true")};
this.S(B,"click",G);this.S(D,"click",E);this.S(B,"keypress",function(J){13===J.keyCode&&G(J)});
this.S(D,"keypress",function(J){13===J.keyCode&&E(J)});
this.S(q,"SUBSCRIBE",this.j);this.S(q,"UNSUBSCRIBE",this.u);this.B&&p&&(this.tooltip=this.B.xc(),EQ(this.tooltip),g.af(this,g.AQ(this.tooltip,B)),g.af(this,g.AQ(this.tooltip,D)))}else g.po(B,"ytp-sb-disabled"),g.po(D,"ytp-sb-disabled")};
HQ=function(a,b){g.V.call(this,{F:"div",K:"ytp-title-channel",W:[{F:"div",K:"ytp-title-beacon"},{F:"a",K:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.V().T,"aria-label":"{{channelLogoLabel}}"}},{F:"div",K:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{F:"div",K:"ytp-title-expanded-heading",W:[{F:"div",K:"ytp-title-expanded-title",W:[{F:"a",qa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.V().T,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{F:"div",K:"ytp-title-expanded-subtitle",qa:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});this.api=a;this.C=b;this.channel=this.Da("ytp-title-channel");this.j=this.Da("ytp-title-channel-logo");this.D=this.Da("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;a.rb(this.j,this,36925);GQ(this)&&gKa(this);this.C.Ce()&&hKa(this);this.S(a,"videodatachange",this.La);this.S(a,"videoplayerreset",this.La);
this.La()};
hKa=function(a){a.updateValue("flyoutUnfocusable","false");a.updateValue("channelTitleFocusable","0");a.S(a.j,"click",function(){a.api.tb(a.j)});
iKa(a)};
iKa=function(a){if(!a.api.V().Ve){var b=a.api.getVideoData(),c=new g.FQ("Subscribe",null,"Subscribed",null,!0,!1,b.Zk,b.subscribed,"channel_avatar",null,null,a.api,a.C);a.api.yg(c.element,a);var d;a.api.Ah(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.S(c.element,"click",function(){a.api.tb(c.element)});
a.subscribeButton=c;g.L(a,a.subscribeButton);a.subscribeButton.Ca(a.D);if(a.C.Ce())a.api.Va(a.subscribeButton.element,!0);else{a.subscribeButton.hide();var e=new DQ(a.api);a.u=e;g.L(a,e);e.Ca(a.D);e.hide();a.S(a.api,"SUBSCRIBE",function(){b.jl&&(e.show(),a.api.Va(e.element,!0))});
a.S(a.api,"UNSUBSCRIBE",function(){b.jl&&(e.hide(),a.api.Va(e.element,!1),fKa(e,!1))})}}};
gKa=function(a){var b=a.api.V();iKa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.isMobile||b.wc?a.S(a.j,"click",function(c){jKa(a)&&(c.preventDefault(),a.isExpanded()?a.MH():a.mI());a.api.tb(a.j)}):(a.S(a.channel,"mouseenter",a.mI),a.S(a.channel,"mouseleave",a.MH),a.S(a.channel,"focusin",a.mI),a.S(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||
a.MH()}),a.S(a.j,"click",function(){a.api.tb(a.j)}));
a.B=new g.ho(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Va(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Va(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.L(a,a.B);a.S(a.channel,kKa,function(){lKa(a)});
a.S(a.api,"onHideControls",a.pL);a.S(a.api,"appresize",a.pL);a.S(a.api,"fullscreentoggled",a.pL)};
lKa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
jKa=function(a){var b=a.api.getPlayerSize();return GQ(a)&&524<=b.width};
GQ=function(a){return g.QG(a.api.V())&&!a.C.Ce()};
mKa=function(a,b){var c={};a.api.V().Aa&&g.dO(c,a.api.V().loaderUrl);g.oO(a.api,"addEmbedsConversionTrackingParams",[c]);return g.ti(b,g.cO(c,"emb_ch_name_ex"))};
IQ=function(a,b,c,d,e,f){var h={F:"div",K:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={F:"div",K:"ytp-panel-header",W:[{F:"div",Ga:["ytp-panel-back-button-container"],W:[{X:{"aria-label":"Back to previous menu"},F:"button",Ga:["ytp-button",l]}]},{X:{tabindex:"0"},F:"span",Ga:[m],W:[c]}]};if(e){var p="ytp-panel-options";n.W.push({F:"button",Ga:["ytp-button",p],W:[d]})}h.W=[n]}d=!1;f&&(f={F:"div",K:"ytp-panel-footer",W:[f]},d=!0,h.W?h.W.push(f):h.W=[f]);g.lM.call(this,
h);this.content=b;d&&h.W?b.Ca(this.element,h.W.length-1):b.Ca(this.element);this.DQ=!1;this.CQ=d;c&&(c=this.Da(l),m=this.Da(m),this.S(c,"click",this.QR),this.S(m,"click",this.QR),this.DQ=!0,e&&(p=this.Da(p),this.S(p,"click",e)));b.subscribe("size-change",this.WR,this);this.S(a,"fullscreentoggled",this.WR);this.G=a};
nKa=function(a,b){var c=new g.lM({F:"div",K:"ytp-multi-item-panel"});a.content.Ca(c.element);b.Ca(c.element);a.content=c;c.Ca(a.element);g.L(a,c)};
g.JQ=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.lM({F:"div",K:"ytp-panel-menu",X:h});IQ.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.L(this,this.menuItems)};
g.KQ=function(a){for(var b=g.t(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.zK,a);a.items=[];g.dh(a.menuItems.element);a.menuItems.ma("size-change")};
oKa=function(a,b){return b.priority-a.priority};
LQ=function(a){var b=g.aP({"aria-haspopup":"true"});g.$O.call(this,b,a);this.Pa("keydown",this.j)};
MQ=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
NQ=function(a,b){g.V.call(this,{F:"div",K:"ytp-user-info-panel",X:{"aria-label":"User info"},W:a.V().authUser&&!a.N("embeds_web_always_enable_signed_out_state")?[{F:"div",K:"ytp-user-info-panel-icon",qa:"{{icon}}"},{F:"div",K:"ytp-user-info-panel-content",W:[{F:"div",K:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},qa:"{{watchingAsUsername}}"},{F:"div",K:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},qa:"{{watchingAsEmail}}"}]}]:[{F:"div",
K:"ytp-user-info-panel-icon",qa:"{{icon}}"},{F:"div",K:"ytp-user-info-panel-content",W:[{F:"div",W:[{F:"text",X:{tabIndex:"{{userInfoFocusable}}"},qa:"Signed out"}]},{F:"div",K:"ytp-user-info-panel-login",W:[{F:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},qa:a.V().Ve?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.V().authUser||a.V().Ve||(a=this.Da("ytp-user-info-panel-login"),this.S(a,"click",this.QW));this.closeButton=new g.V({F:"button",Ga:["ytp-collapse","ytp-button"],X:{title:"Close"},
W:[g.AM()]});this.closeButton.Ca(this.element);g.L(this,this.closeButton);this.S(window,"blur",this.hide);this.S(document,"click",this.PW);this.La()};
OQ=function(a,b,c,d){g.JQ.call(this,a);this.ob=c;this.Ic=d;this.getVideoUrl=new LQ(6);this.Kl=new LQ(5);this.Fl=new LQ(4);this.Yb=new LQ(3);this.YA=new g.$O(g.aP({href:"{{href}}",target:this.G.V().T},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.$O(g.aP(),1,"Stats for nerds");this.Xv=new g.lM({F:"div",Ga:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},qa:"{{text}}"});this.rP=new IQ(this.G,this.Xv);this.wB=this.Oq=null;g.QG(this.G.V())&&this.G.N("embeds_web_enable_new_context_menu_triggering")&&
(this.closeButton=new g.V({F:"button",Ga:["ytp-collapse","ytp-button"],X:{title:"Close"},W:[g.AM()]}),this.closeButton.Ca(this.element),this.closeButton.Pa("click",this.JY,this));g.QG(this.G.V())&&(this.Uk=new g.$O(g.aP(),8,"Account"),g.L(this,this.Uk),this.Ec(this.Uk,!0),this.Uk.Pa("click",this.v2,this),a.rb(this.Uk.element,this.Uk,137682));this.G.V().gk&&(this.Fk=new gP("Loop",7),g.L(this,this.Fk),this.Ec(this.Fk,!0),this.Fk.Pa("click",this.e1,this),a.rb(this.Fk.element,this.Fk,28661));g.L(this,
this.getVideoUrl);this.Ec(this.getVideoUrl,!0);this.getVideoUrl.Pa("click",this.U0,this);a.rb(this.getVideoUrl.element,this.getVideoUrl,28659);g.L(this,this.Kl);this.Ec(this.Kl,!0);this.Kl.Pa("click",this.V0,this);a.rb(this.Kl.element,this.Kl,28660);g.L(this,this.Fl);this.Ec(this.Fl,!0);this.Fl.Pa("click",this.T0,this);a.rb(this.Fl.element,this.Fl,28658);g.L(this,this.Yb);this.Ec(this.Yb,!0);this.Yb.Pa("click",this.S0,this);g.L(this,this.YA);this.Ec(this.YA,!0);this.YA.Pa("click",this.Y1,this);g.L(this,
this.showVideoInfo);this.Ec(this.showVideoInfo,!0);this.showVideoInfo.Pa("click",this.w2,this);g.L(this,this.Xv);this.Xv.Pa("click",this.I0,this);g.L(this,this.rP);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Ib("Chromium")&&(b=!0);40>=Ib("Firefox")&&(b=!1);b&&(this.Oq=new g.V({F:"textarea",K:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.L(this,this.Oq),this.Oq.Ca(this.element));var e;null==(e=this.Uk)||bP(e,$Ga());var f;null==(f=this.Fk)||bP(f,{F:"svg",X:{fill:"none",
height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});bP(this.Yb,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{"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"}}]});bP(this.YA,{F:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{"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"}}]});bP(this.showVideoInfo,WGa());this.S(a,"onLoopChange",this.onLoopChange);this.S(a,"videodatachange",this.onVideoDataChange);pKa(this);this.AT(this.G.getVideoData())};
QQ=function(a,b){var c=!1;if(a.Oq){var d=a.Oq.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.ob.wb():(a.Xv.Wd(b,"text"),g.PQ(a.ob,a.rP),fQ(a.Xv.element),a.Oq&&(a.Oq=null,pKa(a)));return c};
pKa=function(a){var b=!!a.Oq;a.Yb.Xg(b?"Copy debug info":"Get debug info");MQ(a.Yb,!b);a.Fl.Xg(b?"Copy embed code":"Get embed code");MQ(a.Fl,!b);a.getVideoUrl.Xg(b?"Copy video URL":"Get video URL");MQ(a.getVideoUrl,!b);a.Kl.Xg(b?"Copy video URL at current time":"Get video URL at current time");MQ(a.Kl,!b);bP(a.Fl,b?UGa():null);bP(a.getVideoUrl,b?tM():null);bP(a.Kl,b?tM():null)};
g.RQ=function(a,b){g.XO.call(this,a,{F:"div",Ga:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.C=null;this.hC=this.maxWidth=0;this.size=new g.Gg(0,0);this.Pa("keydown",this.RW)};
qKa=function(a){var b=a.j[a.j.length-1];if(b){g.Sl(a.element,a.maxWidth||"100%",a.hC||"100%");g.Il(b.element,"width","");g.Il(b.element,"height","");g.Il(b.element,"maxWidth","100%");g.Il(b.element,"maxHeight","100%");g.Il(b.content.element,"height","");var c=g.Tl(b.element);c.width+=1;c.height+=1;g.Il(b.element,"width",c.width+"px");g.Il(b.element,"height",c.height+"px");g.Il(b.element,"maxWidth","");g.Il(b.element,"maxHeight","");var d=0;b.DQ&&(d=b.Da("ytp-panel-header"),d=g.Tl(d).height);var e=
0;b.CQ&&(e=b.Da("ytp-panel-footer"),g.Il(e,"width",c.width+"px"),e=g.Tl(e).height);g.Il(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.Il(b.element,"width",c.width+"px")));a.size=c}};
g.PQ=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);SQ(a,c,b)};
g.TQ=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];SQ(a,b,c,!0)}};
SQ=function(a,b,c,d){rKa(a);b&&(b.unsubscribe("size-change",a.Jx,a),b.unsubscribe("back",a.ej,a));c.subscribe("size-change",a.Jx,a);c.subscribe("back",a.ej,a);if(a.sb){g.po(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ca(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;qKa(a);g.Sl(a.element,e);a.C=new g.ho(function(){sKa(a,b,c,d)},20,a);
a.C.start()}else c.Ca(a.element),b&&b.detach()};
sKa=function(a,b,c,d){a.C.dispose();a.C=null;g.po(a.element,"ytp-popup-animating");d?(g.po(b.element,"ytp-panel-animate-forward"),g.ro(c.element,"ytp-panel-animate-back")):(g.po(b.element,"ytp-panel-animate-back"),g.ro(c.element,"ytp-panel-animate-forward"));g.Sl(a.element,a.size);a.I=new g.ho(function(){g.ro(a.element,"ytp-popup-animating");b.detach();g.so(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
rKa=function(a){a.C&&g.jo(a.C);a.I&&g.jo(a.I)};
g.UQ=function(a,b,c){g.RQ.call(this,a);this.Aa=b;this.Ic=c;this.B=new g.WE(this);this.ea=new g.ho(this.P2,1E3,this);this.oa=this.D=null;g.L(this,this.B);g.L(this,this.ea);a.rb(this.element,this,28656);g.po(this.element,"ytp-contextmenu");tKa(this);this.hide()};
tKa=function(a){g.Lz(a.B);var b=a.G.V();"gvn"===b.playerStyle||(b.isMobile||b.wc)&&b.N("embeds_web_enable_new_context_menu_triggering")||(b=a.G.fb(),a.B.S(b,"contextmenu",a.G0),a.B.S(b,"touchstart",a.TW,null,!0),a.B.S(b,"touchmove",a.zS,null,!0),a.B.S(b,"touchend",a.zS,null,!0))};
uKa=function(a){a.G.isFullscreen()?g.VO(a.G,a.element,10):a.Ca(document.body)};
g.VQ=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{F:"button",Ga:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.QG(a.V()))},W:[{F:"div",K:"ytp-copylink-icon",qa:"{{icon}}"},{F:"div",K:"ytp-copylink-title",qa:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.xc();b=a.V();EQ(this.tooltip);g.to(this.element,"ytp-show-copylink-title",g.QG(b)&&!g.$G(b));a.rb(this.element,this,86570);this.Pa("click",
this.onClick);this.S(a,"videodatachange",this.La);this.S(a,"videoplayerreset",this.La);this.S(a,"appresize",this.La);this.La();g.af(this,g.AQ(this.tooltip,this.element))};
vKa=function(a){a.updateValue("icon",oM());if(a.api.V().isMobile)WQ(a.tooltip,a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");XQ(a.tooltip);WQ(a.tooltip,a.element);var b=a.Pa("mouseleave",function(){a.zc(b);a.La();a.tooltip.vk()})}};
wKa=function(a,b){return g.A(function(c){if(1==c.j)return g.qa(c,2),g.x(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.sa(c);var d=c.return,e=!1,f=g.bh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(pv){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
return d.call(c,e)})};
YQ=function(a){g.V.call(this,{F:"div",K:"ytp-doubletap-ui-legacy",W:[{F:"div",K:"ytp-doubletap-fast-forward-ve"},{F:"div",K:"ytp-doubletap-rewind-ve"},{F:"div",K:"ytp-doubletap-static-circle",W:[{F:"div",K:"ytp-doubletap-ripple"}]},{F:"div",K:"ytp-doubletap-overlay-a11y"},{F:"div",K:"ytp-doubletap-seek-info-container",W:[{F:"div",K:"ytp-doubletap-arrows-container",W:[{F:"span",K:"ytp-doubletap-base-arrow"},{F:"span",K:"ytp-doubletap-base-arrow"},{F:"span",K:"ytp-doubletap-base-arrow"}]},{F:"div",
K:"ytp-doubletap-tooltip",W:[{F:"div",K:"ytp-chapter-seek-text-legacy",qa:"{{seekText}}"},{F:"div",K:"ytp-doubletap-tooltip-label",qa:"{{seekTime}}"}]}]}]});this.G=a;this.B=new g.ho(this.show,10,this);this.u=new g.ho(this.hide,700,this);this.j=this.Da("ytp-doubletap-static-circle");g.L(this,this.B);g.L(this,this.u);this.hide();this.C=this.Da("ytp-doubletap-fast-forward-ve");this.D=this.Da("ytp-doubletap-rewind-ve");this.G.rb(this.C,this,28240);this.G.rb(this.D,this,28239);this.G.Va(this.C,!0);this.G.Va(this.D,
!0)};
ZQ=function(a,b,c){var d=a.G.fb().getPlayerSize();g.ko(a.u);a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.po(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";xKa(a,c)};
$Q=function(a,b,c){g.ko(a.u);a.B.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.po(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
xKa=function(a,b){b=g.LK("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
aR=function(a,b,c){g.V.call(this,{F:"div",Ga:["ytp-info-panel-action-item"],W:[{F:"div",K:"ytp-info-panel-action-item-disclaimer",qa:"{{disclaimer}}"},{F:"a",Ga:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{F:"div",K:"ytp-info-panel-action-item-icon",qa:"{{icon}}"},{F:"div",K:"ytp-info-panel-action-item-label",qa:"{{label}}"}]}]});this.G=a;this.j=c;this.disclaimer=this.Da("ytp-info-panel-action-item-disclaimer");this.button=
this.Da("ytp-info-panel-action-item-button");this.isValid=!1;this.G.yg(this.element,this,!0);this.Pa("click",this.onClick);a="";c=g.N(null==b?void 0:b.onTap,ZIa);var d=g.N(c,g.TI);this.isValid=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.isValid=!0,aj(this.button,g.jg(a))):(d=g.N(c,yKa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.isValid=!0,c=this.button,d=a,db(d,"sms:")&&gda(d)||(d="about:invalid#zClosurez"),
aj(c,ig(d))):(c=g.N(c,zKa))&&!this.j&&(a=c.phoneNumber?"tel:"+c.phoneNumber:"",this.isValid=!0,c=a,db(c,"tel:")||(c="about:invalid#zClosurez"),aj(this.button,ig(c)));var e;if(c=null==(e=b.disclaimerText)?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:wM(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,
icon:wM()})}this.G.Ah(this.element,b.trackingParams||null);this.isValid&&(this.u={externalLinkData:{url:a}})};
bR=function(a,b){var c=gM();g.XO.call(this,a,{F:"div",K:"ytp-info-panel-detail-skrim",W:[{F:"div",K:"ytp-info-panel-detail",X:{role:"dialog",id:c},W:[{F:"div",K:"ytp-info-panel-detail-header",W:[{F:"div",K:"ytp-info-panel-detail-title",qa:"{{title}}"},{F:"button",Ga:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},W:[g.rM()]}]},{F:"div",K:"ytp-info-panel-detail-body",qa:"{{body}}"},{F:"div",K:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Da("ytp-info-panel-detail-items");
this.B=new g.WE(this);this.itemData=[];this.C=c;b=this.Da("ytp-info-panel-detail-close");this.S(b,"click",this.wb);b=this.Da("ytp-info-panel-detail-skrim");this.S(b,"click",this.wb);b=this.Da("ytp-info-panel-detail");this.S(b,"click",function(d){d.stopPropagation()});
g.L(this,this.B);this.G.yg(this.element,this,!0);this.S(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
AKa=function(a,b){a=g.t(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.G.Va(c.element,b)};
dR=function(a,b,c){g.V.call(this,{F:"div",K:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":c.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.QG(a.V()))},W:[{F:"div",K:"ytp-info-panel-preview-text",qa:"{{text}}"},{F:"div",K:"ytp-info-panel-preview-chevron",qa:"{{chevron}}"}]});var d=this;this.G=a;this.Id=this.j=this.videoId=null;this.C=this.showControls=this.u=!1;this.S(this.element,"click",function(){a.tb(d.element);b.zk();YO(c)});
this.B=new g.YM(this,250,!1,100);g.L(this,this.B);this.G.yg(this.element,this,!0);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.Vc);this.S(this.G,"paidcontentoverlayvisibilitychange",this.XR);this.S(this.G,"infopaneldetailvisibilitychange",this.XR);var e=a.getVideoData()||{};BKa(e)&&cR(this,e);this.S(a,"onShowControls",this.VW);this.S(a,"onHideControls",this.UW)};
cR=function(a,b){if(!b.Ye||!a.G.zn()){var c=b.CO||1E4,d=BKa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.ko(a.j),a.videoId=b.videoId,d?(CKa(a,c,b),a.Kc()):(a.wb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),CKa(a,c,b),a.Kc())}};
BKa=function(a){var b,c,d,e;return!!(null==(b=a.Kg)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.Kg)?0:null==(e=d.bodyText)?0:e.content)};
CKa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.ho(a.X3,b,a);g.L(a,a.j);var d;b=(null==(d=c.Kg)?void 0:d.trackingParams)||null;a.G.Ah(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.Kg)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.Kg)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.Kg)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.Kg)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.qM()})};
DKa=function(a,b){a.j&&(g.U(b,8)?(a.u=!0,a.Kc(),a.j.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))};
eR=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
fR=function(a,b){var c=0;a=g.t(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
EKa=function(a,b){for(var c=0,d=g.t(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};
FKa=function(a,b){b=fR(a,b)+1;return b<a.length?b:-1};
GKa=function(a,b){return fR(a,b)-1};
HKa=function(a,b){return new g.cB(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.hR=function(a,b,c,d,e,f,h,l){g.WE.call(this);var m=this;this.api=a;this.contextMenu=c;this.Ee=d;this.Ic=e;this.j=f;this.C=h;this.Cc=l;this.B=new g.ho(function(){IKa(m,!1)},1E3);
this.u="";g.L(this,this.B);this.S(b,"mousedown",function(){gR(m,!1)});
this.S(c.element,"mousedown",function(){gR(m,!1)});
this.S(b,"keydown",this.uQ);this.S(c.element,"keydown",this.uQ);this.S(b,"keyup",this.vQ);this.S(c.element,"keyup",this.vQ)};
gR=function(a,b){g.to(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.to(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
jR=function(a,b,c,d){var e=g.LP(a.api.vb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.iR.length;h++){var l=g.iR[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);IKa(a,!0);a.B.start()}};
JKa=function(a,b){a.api.Sg();if(g.iL(a.api.Db())){var c=a.api.getVideoData().B;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
IKa=function(a,b){g.LP(a.api.vb())&&a.api.setOption("captions","sampleSubtitles",b)};
kR=function(a,b,c){g.V.call(this,{F:"button",Ga:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},W:[{F:"div",K:"ytp-overflow-icon",W:[{F:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{F:"path",X:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.G=a;this.j=b;this.visible=!1;this.tooltip=this.j.xc();
a.rb(this.element,this,16499);this.S(a,"appresize",this.La);this.S(a,"fullscreentoggled",this.La);this.S(a,"presentingplayerstatechange",this.La);this.La();g.af(this,g.AQ(this.tooltip,this.element));this.Pa("click",function(){a.tb(d.element);YO(c,d.element,!1)});
this.S(c.closeButton,"click",function(){d.focus()})};
lR=function(a,b){g.XO.call(this,a,{F:"div",K:"ytp-overflow-panel",X:{id:gM(),role:"dialog"},W:[{F:"div",K:"ytp-overflow-panel-content",W:[{F:"div",K:"ytp-overflow-panel-action-buttons",qa:"{{buttons}}"}]},{F:"button",Ga:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},W:[g.rM()]}]},250);this.actionButtons=[];this.tooltip=b.xc();this.j=this.Da("ytp-overflow-panel-content");this.closeButton=this.Da("ytp-overflow-panel-close");this.S(this.closeButton,"click",this.wb);g.af(this,g.AQ(this.tooltip,
this.closeButton));this.Pa("click",this.WW);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
mR=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
KKa=function(a,b){a=g.t(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Wb(b)};
nR=function(a,b,c){var d=g.xP(b,c),e=a.V(),f=d.Hf("default.jpg");g.V.call(this,{F:"a",Ga:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},W:[{F:"div",K:"ytp-video-menu-item-index",qa:String(c+1)},{F:"div",K:"ytp-video-menu-item-now-playing",qa:"\u25b6"},{F:"div",K:"ytp-video-menu-item-thumbnail",X:{style:f?"background-image: url("+f+");":void 0}},{F:"div",K:"ytp-video-menu-item-title",qa:d.title},{F:"div",
K:"ytp-video-menu-item-author",qa:d.author}]});this.api=a;this.index=c;this.Pa("click",this.onClick)};
oR=function(a){g.XO.call(this,a,{F:"div",K:"ytp-playlist-menu",X:{role:"dialog",id:gM()},W:[{F:"div",K:"ytp-playlist-menu-header",W:[{F:"div",K:"ytp-playlist-menu-title",W:[a.V().j?{F:"span",K:"ytp-playlist-menu-title-name",qa:"{{title}}"}:{F:"a",K:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},qa:"{{title}}"},{F:"button",Ga:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.rM()]}]},{F:"div",K:"ytp-playlist-menu-subtitle",qa:"{{subtitle}}"}]},{F:"div",K:"ytp-playlist-menu-items",
X:{role:"menu"}}]},250);this.api=a;this.C=this.selected=this.D=this.playlist=null;this.items=this.Da("ytp-playlist-menu-items");this.B=new g.WE(this);this.j=[];var b=this.Da("ytp-playlist-menu-close");this.S(b,"click",this.wb);b=this.Da("ytp-playlist-menu-title-name");a.V().j||(this.C=this.S(b,"click",this.O2));g.L(this,this.B);this.hide()};
pR=function(a,b,c){g.V.call(this,{F:"button",Ga:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},W:[{F:"div",K:"ytp-playlist-menu-button-icon",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{F:"div",K:"ytp-playlist-menu-button-text",qa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.xc();a.rb(this.element,this,70344);this.S(a,"videodatachange",this.j);this.S(a,"onPlaylistUpdate",this.j);this.S(a,"presentingplayerstatechange",this.La);this.S(a,"appresize",this.La);this.hide();this.j();g.af(this,g.AQ(this.tooltip,this.element));this.Pa("click",function(){a.tb(d.element);YO(c,d.element,!1)})};
qR=function(a,b,c){g.V.call(this,{F:"div",K:"ytp-promotooltip-wrapper",W:[{F:"div",K:"ytp-promotooltip-container",W:[{F:"div",K:"ytp-promotooltip-content",W:[{F:"div",K:"ytp-promotooltip-title",qa:"{{title}}"},{F:"div",K:"ytp-promotooltip-details",qa:"{{details}}"}]},{F:"div",K:"ytp-promotooltip-buttons",W:[{F:"div",K:"ytp-promotooltip-dismiss-button",qa:"{{dismissButtonText}}",X:{tabindex:"0"}},{F:"div",K:"ytp-promotooltip-accept-button",qa:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
{F:"div",K:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.G=c;this.j=this.B=null;this.title=this.Da("ytp-promotooltip-title");this.details=this.Da("ytp-promotooltip-details");this.acceptButton=this.Da("ytp-promotooltip-accept-button");this.dismissButton=this.Da("ytp-promotooltip-dismiss-button");this.u=this.D=!1;this.C=!0;this.Z=this.I=this.T=!1;g.kM(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.G.yg(this.element,this,!0),this.G.Ah(this.element,a);this.S(c,
"onShowControls",this.YW);this.S(c,"onHideControls",this.XW);this.S(c,"resize",this.Bb);this.S(this.acceptButton,"click",this.U_);this.S(this.dismissButton,"click",this.N0);this.S(document,"click",this.ZW);c.N("web_rounded_containers")&&g.po(this.Da("ytp-promotooltip-container"),"ytp-promotooltip-rounded")};
LKa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.Wg("ytp-chrome-bottom"),d=g.Wg("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.T=!(null==d||!d.contains(b));return b};
tR=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Ul(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.hM({F:"span",K:"ytp-promotooltip-details-icon",
W:[MKa[a.tooltipRenderer.targetId]]});g.L(a,h);for(var l=[],m=g.t(d),n=m.next();!n.done;n=m.next())n=new g.hM({F:"span",K:"ytp-promotooltip-details-component",qa:n.value}),g.L(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if("string"!==typeof f)for(g.dh(a.details),e=g.t(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Ul(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.N(e,g.SI))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.N(e,g.SI).text.runs[0].text&&(a.update({acceptButtonText:g.N(e,g.SI).text.runs[0].text.toString()}),f=!0);g.Ul(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var w,y,z;(null==(w=g.N(p,g.SI))?0:null==(y=w.text)?0:null==(z=y.runs)?0:z.length)&&g.N(p,g.SI).text.runs[0].text&&(a.update({dismissButtonText:g.N(p,g.SI).text.runs[0].text.toString()}),
q=!0);g.Ul(a.dismissButton,q)}c&&(a.B=c);a.j=LKa(a);a.I=!1;a.G.V().N("web_player_hide_nitrate_promo_tooltip")||g.kM(a,!0);rR(a);a.Z||(a.Z=!0,sR(a,0));a.u&&a.G.Va(a.element,a.sb)}};
uR=function(a){g.kM(a,!1);a.u&&a.G.Va(a.element,a.sb)};
sR=function(a,b){var c=a.tooltipRenderer.promoConfig;if(c){switch(b){case 0:var d;if(null==(d=c.impressionEndpoints)?0:d.length)var e=c.impressionEndpoints[0];break;case 1:e=c.acceptCommand;break;case 2:e=c.dismissCommand}var f;b=null==(f=g.N(e,NKa))?void 0:f.feedbackToken;e&&b&&(f={feedbackTokens:[b]},a=a.G.Il(),(null==a?0:JHa(e,a.gI))&&HN(a,e,f))}};
OKa=function(a){var b,c,d,e=(null==(b=g.N(a.acceptButton,g.SI))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.N(a.acceptButton,g.SI).text.runs[0].text,f,h,l;b=(null==(f=g.N(a.dismissButton,g.SI))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.N(a.dismissButton,g.SI).text.runs[0].text;return e||b};
rR=function(a){var b;if(!(b=!a.j)){b=a.j;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.G.Jf())g.kM(a,!1);else if(b=g.Tl(a.j),b.width&&b.height){a.J.St(a.element,a.j);var d=a.G.fb().getPlayerSize().height;c=g.Tl(a.Da("ytp-promotooltip-container")).height;var e=d-c-b.height-12;a.C||(e-=d-a.J.zj().height);a.element.style.top=e+"px";d=a.Da("ytp-promotooltip-pointer");e=g.Rl(a.j,a.G.getRootNode());var f=Number(a.element.style.left.replace(/[^\d\.]/g,
""));a=a.G.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.kM(a,!1)};
vR=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-replay-button","ytp-button"],X:{title:"Replay"},W:[g.yM()]});this.G=a;this.S(a,"presentingplayerstatechange",this.onStateChange);this.Pa("click",this.onClick,this);this.Oc(a.Db());g.AQ(b.xc(),this.element)};
g.wR=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{F:"button",Ga:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.QG(a.V()))},W:[{F:"div",K:"ytp-share-icon",qa:"{{icon}}"},{F:"div",K:"ytp-share-title",qa:"Share"}]});this.api=a;this.j=b;this.u=c;this.B=d;this.visible=!1;this.tooltip=this.j.xc();c=a.V();a.rb(this.element,this,28664);this.Pa("click",this.onClick);this.S(a,"videodatachange",this.La);this.S(a,"videoplayerreset",
this.La);this.S(a,"appresize",this.La);this.S(a,"presentingplayerstatechange",this.La);this.La();g.to(this.element,"ytp-show-share-title",g.QG(c)&&!g.$G(c)&&!b.Ce());g.af(this,g.AQ(this.tooltip,this.element))};
PKa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.j.zk(),YO(a.u,a.element,!1)):g.$z(b))};
g.xR=function(a,b){var c=gM(),d=a.V();c={F:"div",K:"ytp-share-panel",X:{id:gM(),role:"dialog","aria-labelledby":c},W:[{F:"div",K:"ytp-share-panel-inner-content",W:[{F:"div",K:"ytp-share-panel-title",X:{id:c},qa:"Share"},{F:"a",Ga:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.T,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},qa:"{{linkText}}"},{F:"label",K:"ytp-share-panel-include-playlist",W:[{F:"input",K:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",
checked:!0}},"Include playlist"]},{F:"div",K:"ytp-share-panel-loading-spinner",W:[eQ()]},{F:"div",K:"ytp-share-panel-service-buttons",qa:"{{buttons}}"},{F:"div",K:"ytp-share-panel-error",qa:"An error occurred while retrieving sharing information. Please try again later."}]},{F:"button",Ga:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},W:[g.rM()]}]};g.XO.call(this,a,c,250);var e=this;this.api=a;this.tooltip=b.xc();this.B=[];this.D=this.Da("ytp-share-panel-inner-content");this.closeButton=
this.Da("ytp-share-panel-close");this.S(this.closeButton,"click",this.wb);g.af(this,g.AQ(this.tooltip,this.closeButton));this.C=this.Da("ytp-share-panel-include-playlist-checkbox");this.S(this.C,"click",this.La);this.j=this.Da("ytp-share-panel-link");g.af(this,g.AQ(this.tooltip,this.j));this.api.rb(this.j,this,164503);this.S(this.j,"click",function(){e.api.tb(e.j)});
this.Pa("click",this.aX);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.S(a,"onLoopRangeChange",this.w_);this.hide()};
RKa=function(a,b){QKa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Mp:e.Mp,nj:e.nj},f++){e.Mp=c[f];a:switch(e.Mp.img||e.Mp.iconId){case "facebook":var h={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.Mp.sname||e.Mp.serviceName;e.nj=new g.V({F:"a",Ga:["ytp-share-panel-service-button","ytp-button"],X:{href:e.Mp.url,target:"_blank",title:l},W:[h]});e.nj.Pa("click",function(p){return function(q){if(g.nN(q)){var r=p.Mp.url;var w=void 0===w?{}:w;w.target=w.target||"YouTube";w.width=w.width||"600";w.height=w.height||"600";var y=w;y||(y={});w=window;var z=r instanceof gg?r:g.jg("undefined"!=typeof r.href?r.href:String(r));var B=void 0!==self.crossOriginIsolated,
D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPolicy);var G="unsafe-url"===D;D=y.noreferrer;if(B&&D){if(G)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");D=!1}r=y.target||r.target;B=[];for(var E in y)switch(E){case "width":case "height":case "top":case "left":B.push(E+"="+y[E]);break;case "target":case "noopener":case "noreferrer":break;default:B.push(E+"="+(y[E]?1:0))}E=B.join(",");Lb()&&
w.navigator&&w.navigator.standalone&&r&&"_self"!=r?(y=g.bh("A"),g.xg(y,z),y.target=r,D&&(y.rel="noreferrer"),z=document.createEvent("MouseEvent"),z.initMouseEvent("click",!0,!0,w,1),y.dispatchEvent(z),w={}):D?(w=yg("",w,r,E),z=g.hg(z),w&&(g.tH&&g.ib(z,";")&&(z="'"+z.replace(/'/g,"%27")+"'"),w.opener=null,""===z&&(z="javascript:''"),z=g.wg(g.cg("b/12014412, meta tag with sanitized URL"),'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Lg(z)+'">'),(y=w.document)&&
y.write&&(y.write(g.ug(z)),y.close()))):((w=yg(z,w,r,E))&&y.noopener&&(w.opener=null),w&&y.noreferrer&&(w.opener=null));w&&(w.opener||(w.opener=window),w.focus());g.Kx(q)}}}(e));
g.af(e.nj,g.AQ(a.tooltip,e.nj.element));"Facebook"===l?a.api.rb(e.nj.element,e.nj,164504):"Twitter"===l&&a.api.rb(e.nj.element,e.nj,164505);a.S(e.nj.element,"click",function(p){return function(){a.api.tb(p.nj.element)}}(e));
a.api.Va(e.nj.element,!0);a.B.push(e.nj);d++}}var m=b.more||b.moreLink,n=new g.V({F:"a",Ga:["ytp-share-panel-service-button","ytp-button"],W:[{F:"span",K:"ytp-share-panel-service-button-more",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{F:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{F:"path",X:{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"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.Pa("click",function(p){g.dQ(m,a.api,p)&&a.api.Qa("SHARE_CLICKED")});
g.af(n,g.AQ(a.tooltip,n.element));a.api.rb(n.element,n,164506);a.S(n.element,"click",function(){a.api.tb(n.element)});
a.api.Va(n.element,!0);a.B.push(n);a.updateValue("buttons",a.B)};
QKa=function(a){for(var b=g.t(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Ze(c);a.B=[]};
AR=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{F:"div",K:"ytp-suggested-action"});var d=this;this.G=a;this.ib=b;this.Sa=this.I=this.j=this.B=this.u=this.D=this.expanded=this.enabled=this.ea=!1;this.Ma=new g.ho(function(){d.badge.element.style.width=""},200,this);
this.Z=new g.ho(function(){yR(d);zR(d)},200,this);
this.dismissButton=new g.V({F:"button",Ga:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.L(this,this.dismissButton);this.C=new g.V({F:"div",K:"ytp-suggested-action-badge-expanded-content-container",W:[{F:"label",K:"ytp-suggested-action-badge-title",qa:"{{badgeLabel}}"},this.dismissButton]});g.L(this,this.C);this.badge=new g.V({F:"button",Ga:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[c?{F:"div",K:"ytp-suggested-action-badge-icon"}:
"",this.C]});g.L(this,this.badge);this.badge.Ca(this.element);this.J=new g.YM(this.badge,250,!1,100);g.L(this,this.J);this.Aa=new g.YM(this.C,250,!1,100);g.L(this,this.Aa);this.Oa=new g.fo(this.f4,null,this);g.L(this,this.Oa);this.oa=new g.fo(this.dZ,null,this);g.L(this,this.oa);g.L(this,this.Ma);g.L(this,this.Z);this.G.yg(this.badge.element,this.badge,!0);this.G.yg(this.dismissButton.element,this.dismissButton,!0);this.S(this.G,"onHideControls",function(){d.j=!1;zR(d);yR(d);d.Yk()});
this.S(this.G,"onShowControls",function(){d.j=!0;zR(d);yR(d);d.Yk()});
this.S(this.badge.element,"click",this.fK);this.S(this.dismissButton.element,"click",this.nE);this.S(this.G,"pageTransition",this.bX);this.S(this.G,"appresize",this.Yk);this.S(this.G,"fullscreentoggled",this.Q0);this.S(this.G,"cardstatechange",this.B0);this.S(this.G,"annotationvisibility",this.L4,this);this.S(this.G,"offlineslatestatechange",this.M4,this)};
yR=function(a){g.to(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.D)};
zR=function(a,b){var c=a.I||a.j||!a.D;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Oa.stop(),a.oa.stop(),a.Ma.stop(),a.Oa.start()):(g.kM(a.C,a.expanded),g.to(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),SKa(a))};
SKa=function(a){a.u&&a.G.Va(a.badge.element,a.iB());a.B&&a.G.Va(a.dismissButton.element,a.iB()&&(a.I||a.j||!a.D))};
TKa=function(a){var b=a.text||"";g.ih(g.Wg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Wa?a.Wa:"")};
UKa=function(a,b){b?a.B&&a.G.tb(a.dismissButton.element):a.u&&a.G.tb(a.badge.element)};
BR=function(a,b){AR.call(this,a,b);var c=this;this.T=this.Ba=this.Ka=!1;this.S(this.G,g.eB("shopping_overlay_visible"),function(){c.Lf(!0)});
this.S(this.G,g.fB("shopping_overlay_visible"),function(){c.Lf(!1)});
this.S(this.G,g.eB("shopping_overlay_expanded"),function(){c.I=!0;zR(c)});
this.S(this.G,g.fB("shopping_overlay_expanded"),function(){c.I=!1;zR(c)});
this.S(this.G,"changeProductsInVideoVisibility",this.H1);this.S(this.G,"videodatachange",this.onVideoDataChange);this.S(this.G,"paidcontentoverlayvisibilitychange",this.A1)};
CR=function(a){a.G.Df("shopping_overlay_visible");a.G.Df("shopping_overlay_expanded")};
DR=function(a){g.XO.call(this,a,{F:"button",Ga:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{F:"div",K:"ytp-skip-intro-button-text",qa:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.ho(function(){b.hide()},5E3);
this.Ve=this.Lg=NaN;g.L(this,this.j);this.I=function(){b.show()};
this.D=function(){b.hide()};
this.C=function(){var c=b.G.getCurrentTime();c>b.Lg/1E3&&c<b.Ve/1E3&&b.show()};
this.S(this.G,"videodatachange",function(c,d){b.Lq(c,d)});
this.S(this.element,"click",function(){b.G.seekTo(b.Ve/1E3)});
this.hide()};
ER=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay"},qa:"{{icon}}"});this.G=a;this.Pa("click",this.onClick);this.S(a,"airplayactivechange",this.La);this.S(a,"airplayavailabilitychange",this.La);this.La();g.af(this,g.AQ(b.xc(),this.element))};
FR=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{F:"div",K:"ytp-autonav-toggle-button-container",W:[{F:"div",K:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.G=a;this.u=[];this.j=!1;this.isChecked=!0;a.rb(this.element,this,113681);this.S(a,"presentingplayerstatechange",this.Cy);this.Pa("click",this.onClick);this.G.V().N("web_player_autonav_toggle_always_listen")&&VKa(this);
this.tooltip=b.xc();g.af(this,g.AQ(b.xc(),this.element));this.Cy()};
VKa=function(a){a.u.push(a.S(a.G,"videodatachange",a.Cy));a.u.push(a.S(a.G,"videoplayerreset",a.Cy));a.u.push(a.S(a.G,"onPlaylistUpdate",a.Cy));a.u.push(a.S(a.G,"autonavchange",a.bO))};
WKa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);XQ(a.tooltip)};
XKa=function(a){return a.G.V().N("web_player_autonav_use_server_provided_state")&&RI(a.ud())};
g.HR=function(a){g.V.call(this,{F:"div",K:"ytp-gradient-bottom"});this.j=g.bh("CANVAS");this.ctx=this.j.getContext("2d");this.B=NaN;this.j.width=1;this.u=g.$G(a.V());g.GR(this,a.fb().getPlayerSize().height)};
g.GR=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){}}}};
IR=function(a,b,c,d,e){g.V.call(this,{F:"div",K:"ytp-chapter-container",W:[{F:"button",Ga:["ytp-chapter-title","ytp-button"],W:[{F:"span",X:{"aria-hidden":"true"},K:"ytp-chapter-title-prefix",qa:"\u2022"},{F:"div",K:"ytp-chapter-title-content",qa:"{{title}}",X:{title:e,"aria-label":e}},{F:"div",K:"ytp-chapter-title-chevron",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.G=a;
this.C=c;this.D="";this.currentIndex=0;this.j=void 0;this.u=!0;this.T=this.Da("ytp-chapter-container");this.B=this.Da("ytp-chapter-title");this.Z=this.Da("ytp-chapter-title-content");this.updateVideoData("newdata",this.G.getVideoData());this.S(a,"videodatachange",this.updateVideoData);this.S(this.T,"click",this.onClick);this.S(a,g.eB(d),this.jc);this.S(a,"onLoopRangeChange",this.jc);this.S(a,"innertubeCommand",this.onClickCommand);g.QG(this.G.V())||g.af(this,g.AQ(b.xc(),this.Z))};
JR=function(a,b,c){IR.call(this,a,b,c,"chapterCueRange","View chapter")};
YKa=function(a,b,c,d,e){var f=b.Gt/b.rows,h=Math.min(c/(b.oA/b.columns),d/f),l=b.oA*h,m=b.Gt*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,r=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+r+"px/"+l+"px "+m+"px"};
g.KR=function(a,b){g.V.call(this,{F:"div",K:"ytp-storyboard-framepreview",W:[{F:"div",K:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Da("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.WE(this);this.j=new g.YM(this,100);g.L(this,this.events);g.L(this,this.j);this.S(this.api,"presentingplayerstatechange",this.Vc);b&&this.S(this.element,"click",function(){b.qq()})};
LR=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.S(a.api,"videodatachange",function(){LR(a,a.api.Vi())}),a.events.S(a.api,"progresssync",a.pe),a.events.S(a.api,"appresize",a.D)),a.B=NaN,MR(a),a.j.show(200)):(c&&g.Lz(a.events),a.j.hide(),a.j.stop())};
MR=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.fb().getPlayerSize(),e=yI(b,d.width);c=FCa(b,e,c);c!==a.B&&(a.B=c,DCa(b,c,d.width),b=BCa(b,c,d.width),YKa(a.C,b,d.width,d.height))};
g.NR=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-title-no-tooltip":"{{data-title-no-tooltip}}"},qa:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.AQ(this.u.xc(),this.element);this.B=new g.ho(this.AY,2E3,this);g.L(this,this.B);this.S(a,"fullscreentoggled",this.Sk);this.S(a,"presentingplayerstatechange",this.La);this.Pa("click",this.onClick);g.Fz()&&(b=this.G.fb(),this.S(b,Rsa(),this.qK),this.S(b,Iz(document),
this.rp));a.V().kb||a.V().J||this.disable();a.rb(this.element,this,139117);this.La();this.Sk(a.isFullscreen())};
OR=function(a,b,c){IR.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.S(a,g.fB("timedMarkerCueRange"),this.jc);this.S(a,"updatemarkervisibility",this.updateVideoData)};
ZKa=function(a){var b,c=null==(b=a.G.getVideoData())?void 0:b.Le;if(c)for(a=a.C.Yc,c=g.t(c),b=c.next();!b.done;b=c.next())if(b=a[b.value])return b};
PR=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button","aria-keyshortcuts":"i","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[aHa()]});this.G=a;this.visible=!1;this.Pa("click",this.onClick);this.S(a,"fullscreentoggled",this.La);this.updateValue("title",gQ(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});g.af(this,g.AQ(b.xc(),this.element));a.rb(this.element,this,62946);
this.La()};
QR=function(a,b,c){g.V.call(this,{F:"button",Ga:["ytp-multicam-button","ytp-button"],X:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.G=a;this.j=!1;this.u=new g.ho(this.B,400,this);this.tooltip=b.xc();EQ(this.tooltip);g.L(this,this.u);this.Pa("click",function(){YO(c,d.element,!1)});
this.S(a,"presentingplayerstatechange",function(){d.La(!1)});
this.S(a,"videodatachange",this.onVideoDataChange);this.La(!0);g.af(this,g.AQ(this.tooltip,this.element))};
RR=function(a){g.XO.call(this,a,{F:"div",K:"ytp-multicam-menu",X:{role:"dialog"},W:[{F:"div",K:"ytp-multicam-menu-header",W:[{F:"div",K:"ytp-multicam-menu-title",W:["Switch camera",{F:"button",Ga:["ytp-multicam-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.rM()]}]}]},{F:"div",K:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.WE(this);this.items=this.Da("ytp-multicam-menu-items");this.j=[];g.L(this,this.B);a=this.Da("ytp-multicam-menu-close");this.S(a,"click",this.wb);this.hide()};
SR=function(){g.K.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.fo(this.j,null,this);g.L(this,this.delay)};
$Ka=function(a,b){if("path"===b.F)return b.X.d;if(b.W)for(var c=0;c<b.W.length;c++){var d=b.W[c];if(d&&"string"!==typeof d&&(d=$Ka(a,d)))return d}};
cLa=function(a,b,c){c=$Ka(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=gM();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=aLa(e),m=aLa(c);TR(a,function(n){d.setAttribute("d",bLa(l,m,n))},200)};
TR=function(a,b,c){a.u=b;a.startTime=(0,g.Q)();a.duration=c;a.j()};
aLa=function(a){var b=[];a=a.match(dLa);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};
bLa=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.UR=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-mute-button","ytp-button"],X:a.V().Ba?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},qa:"{{icon}}"});this.G=a;this.j=null;this.C=this.T=this.D=this.ea=NaN;this.oa=this.I=null;this.B=[];this.u=[];this.visible=!1;this.J=null;var c=this.G.V();this.updateValue("icon",BM());this.tooltip=b.xc();this.j=new g.hM({F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},W:[{F:"defs",W:[{F:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},W:[{F:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{F:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{F:"path",K:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{F:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},W:[{F:"path",K:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{F:"path",
Qb:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{F:"path",Qb:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"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.L(this,this.j);this.I=this.j.Da("ytp-svg-volume-animation-speaker");
this.oa=this.I.getAttribute("d");this.B=g.Vg("ytp-svg-volume-animation-mover",this.j.element);this.u=g.Vg("ytp-svg-volume-animation-hider",this.j.element);this.Aa=new SR;g.L(this,this.Aa);this.Z=new SR;g.L(this,this.Z);this.Pa("click",this.o1);this.S(a,"appresize",this.cO);this.S(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Ba)g.af(this,g.AQ(b.xc(),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.XO(a,{F:"span",Ga:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},W:[e[0],{F:"a",X:{href:"https://web.archive.org/web/20221116135136/https://support.google.com/youtube/?p=noaudio",target:c.T},qa:e[2]},e[4]]},100,!0);g.L(this,d);d.hide();d.subscribe("show",function(f){b.hw(d,f)});
g.VO(a,d.element,4)}this.message=d;a.rb(this.element,this,28662);this.cO(a.fb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
gLa=function(a,b){a.ea=b;var c=a.oa;b&&(c+=bLa(eLa,fLa,b));a.I.setAttribute("d",c)};
hLa=function(a,b){a.T=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=BM():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.J&&(a.updateValue("icon",e),a.J=e)};
VR=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},W:[aHa()]});this.G=a;this.updateValue("title","Picture in Picture");this.Pa("click",this.onClick);g.af(this,g.AQ(b.xc(),this.element))};
g.WR=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},qa:"{{icon}}"});this.G=a;this.j=null;this.transition=new SR;this.tooltip=b.xc();g.L(this,this.transition);a.rb(this.element,this,36842);a.Va(this.element,!0);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"videodatachange",this.onVideoDataChange);this.Oc(a.Db());
this.Pa("click",this.Cx,this);g.af(this,g.AQ(b.xc(),this.element))};
iLa=function(a){switch(a){case 1:return xM();case 2:return ZGa();case 3:return g.yM();case 4:return cHa();default:return null}};
g.ZR=function(a,b,c){g.V.call(this,{F:"a",Ga:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{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}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},W:[c?uM():bHa()]});var d=this;this.G=a;this.j=c;this.playlist=this.videoData=null;this.I=
!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.xc();c?a.rb(this.element,this,6193):a.rb(this.element,this,6194);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"onPlaylistUpdate",this.onVideoDataChange);this.S(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.S(a,"appresize",this.BG);this.S(a,"mdxpreviousnextchange",function(){YR(d);d.BG()});
this.onVideoDataChange()};
jLa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
kLa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.G.getCurrentTime()&&2!==a.G.getPresentingPlayerType()};
lLa=function(a){var b=RO(a.G.vb());return b?a.j?b.hasNext():b.An():!1};
YR=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=null!=a.playlist&&a.playlist.hasNext();c=g.SO(a.G)&&(!a.j||c);var d=a.j&&g.WO(a.G),e=lLa(a),f=a.j&&5===a.G.getPresentingPlayerType(),h=gQ(a.G,"Next","SHIFT+n"),l=gQ(a.G,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.B)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.xP(a.playlist,a.j?lJa(a.playlist):mJa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
b.url=a.G.V().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.mN(m.lengthSeconds):null;b.preview=m.Hf("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=null==(m=a.videoData)?void 0:g.UI(m))b.url=l.vn(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.mN(l.lengthSeconds):
null,b.preview=l.Hf("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.AQ(a.tooltip,a.element),a.D=a.Pa("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.zc(a.D),a.D=null);XQ(a.tooltip)};
$R=function(a,b){g.V.call(this,{F:"div",K:"ytp-fine-scrubbing",W:[{F:"div",K:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}},{F:"div",X:{"aria-hidden":"true"},K:"ytp-fine-scrubbing-cursor"},{F:"div",K:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},qa:"{{seekTime}}"},{F:"div",
K:"ytp-fine-scrubbing-play",W:[xM()],X:{title:"Play from this position",role:"button"}},{F:"div",K:"ytp-fine-scrubbing-dismiss",W:[g.rM()],X:{title:"Exit precise seeking",role:"button"}}]});this.api=a;this.B=this.Da("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Da("ytp-fine-scrubbing-dismiss");this.playButton=this.Da("ytp-fine-scrubbing-play");this.thumbnails=[];this.j=[];this.Aa=this.C=0;this.oa=void 0;this.T=NaN;this.Ka=this.J=this.u=this.I=0;this.D=[];this.interval=this.frameCount=0;
this.thumbnailWidth=160;this.scale=1;this.Ba=0;this.isEnabled=this.ea=!1;g.af(this,g.AQ(b,this.dismissButton));g.af(this,g.AQ(b,this.playButton));this.Z=new g.Qz(this.B,!0);this.Z.subscribe("dragstart",this.DG,this);this.Z.subscribe("dragmove",this.CG,this);this.Z.subscribe("dragend",this.dX,this);this.S(a,"SEEK_COMPLETE",this.Xw);this.B.addEventListener("keydown",function(){});
g.L(this,this.Z);this.api.rb(this.element,this,153154);this.api.rb(this.B,this,152789);this.api.rb(this.dismissButton,this,153156);this.api.rb(this.playButton,this,153155)};
aS=function(a){a.T=NaN;a.J=0;a.I=a.u};
nLa=function(a){var b=a.api.Vi();if(b){var c=90*a.scale,d=yI(b,160*a.scale);if(b=b.levels[d]){a.thumbnailWidth=b.width;if(!a.D.length){d=[];for(var e=zI(b,b.Zu()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=h<f?Math.ceil(h/b.columns):b.rows,n=0;n<b.rows;n++){var p=h<b.columns?h:b.columns,q={url:b.Ge(l),column:0,columns:p,row:n,rows:m,oA:b.width*p,Gt:b.height*m};d.push(q);h-=p;if(1>=h)break}a.D=d;a.frameCount=b.YB();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>
a.D.length;)d=void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new mLa,a.thumbnails.push(d),d.Ca(a.B),g.L(a,d);for(d=0;d<a.D.length;d++)e=a.thumbnails[d].element,f=a.D[d],h=a.thumbnailWidth*a.scale,l=f.Gt/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Gt/f.rows*m+"px/"+h*b.columns+"px "+l*f.rows*m+"px",e.style.width=h*f.columns+"px",e.style.height=c+"px";bS(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Hj;a.j.length>c.length;)d=void 0,null==
(d=a.j.pop())||d.dispose();for(;a.j.length<c.length;)d=new cS,a.j.push(new cS),g.L(a,d);c=g.t(c.entries());for(d=c.next();!d.done;d=c.next())e=g.t(d.value),d=e.next().value,e=e.next().value,a.j[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Il(a.j[d].element,"transform","translateX("+e%b.rows*a.thumbnailWidth*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.j[d].Ca(a.thumbnails[f].element);a.ea=!0}}};
bS=function(a,b){a.update({seekTime:g.mN(b)});var c=a.thumbnailWidth*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.C/2:-b*c/a.interval-c/2+a.C/2;b=g.Ag(b,oLa(a),a.C/2);a.I=b;a.u=a.I;g.Il(a.B,"transform","translateX("+a.I+"px)")};
pLa=function(a,b){var c=a.thumbnailWidth*a.scale;b-=a.C/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
oLa=function(a){return-((a.B.offsetWidth||(a.frameCount-1)*a.thumbnailWidth*a.scale)-a.C/2)};
mLa=function(){g.V.call(this,{F:"div",K:"ytp-fine-scrubbing-thumbnail"})};
cS=function(){g.V.call(this,{F:"div",K:"ytp-fine-scrubbing-chapter-title",W:[{F:"div",K:"ytp-fine-scrubbing-chapter-title-content",qa:"{{chapterTitle}}"}]})};
rLa=function(a,b,c,d){d=void 0===d?!1:d;b=new qLa(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)}};
qLa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
sLa=function(a){g.V.call(this,{F:"div",K:"ytp-heat-map-chapter",W:[{F:"svg",K:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{F:"defs",W:[{F:"clipPath",X:{id:"{{id}}"},W:[{F:"path",K:"ytp-heat-map-path",X:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{F:"rect",K:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{F:"rect",K:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{F:"rect",K:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Da("ytp-heat-map-svg");this.D=this.Da("ytp-heat-map-path");this.C=this.Da("ytp-heat-map-graph");this.B=this.Da("ytp-heat-map-play");this.u=this.Da("ytp-heat-map-hover");this.isValid=!1;this.j=60;a=""+g.Oa(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)};
dS=function(){g.V.call(this,{F:"div",K:"ytp-chapter-hover-container",W:[{F:"div",K:"ytp-progress-bar-padding"},{F:"div",K:"ytp-progress-list",W:[{F:"div",Ga:["ytp-play-progress","ytp-swatch-background-color"]},{F:"div",K:"ytp-progress-linear-live-buffer"},{F:"div",K:"ytp-load-progress"},{F:"div",K:"ytp-hover-progress"},{F:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Da("ytp-progress-linear-live-buffer");this.B=this.Da("ytp-ad-progress-list");
this.D=this.Da("ytp-load-progress");this.I=this.Da("ytp-play-progress");this.u=this.Da("ytp-hover-progress");this.j=this.Da("ytp-chapter-hover-container")};
eS=function(a,b){g.Il(a.j,"width",b)};
fS=function(a,b){g.Il(a.j,"margin-right",b+"px")};
gS=function(a,b){return"PLAY_PROGRESS"===b?a.I:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
tLa=function(){this.fraction=this.position=this.B=this.j=this.C=this.u=this.width=NaN};
hS=function(){g.V.call(this,{F:"div",K:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.jS=function(a,b){g.lM.call(this,{F:"div",K:"ytp-progress-bar-container",X:{"aria-disabled":"true"},W:[{F:"div",Ga:["ytp-heat-map-container"],W:[{F:"div",K:"ytp-heat-map-edu"}]},{F:"div",Ga:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{F:"div",K:"ytp-chapters-container"},{F:"div",K:"ytp-marker-crenellation-list"},{F:"div",K:"ytp-timed-markers-container"},
{F:"div",K:"ytp-clip-start-exclude"},{F:"div",K:"ytp-clip-end-exclude"},{F:"div",K:"ytp-scrubber-container",W:[{F:"div",Ga:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{F:"div",K:"ytp-scrubber-pull-indicator"}]}]}]},{F:"div",Ga:["ytp-fine-scrubbing-container"],W:[{F:"div",K:"ytp-fine-scrubbing-edu"}]},{F:"div",K:"ytp-bound-time-left",qa:"{{boundTimeLeft}}"},{F:"div",K:"ytp-bound-time-right",qa:"{{boundTimeRight}}"},{F:"div",K:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},qa:"{{clipstarticon}}"},
{F:"div",K:"ytp-clip-end",X:{title:"{{clipendtitle}}"},qa:"{{clipendicon}}"}]});this.api=a;this.Ye=!1;this.D=this.Mg=0;this.Xa=1;this.Le=this.Z=0;this.J=null;this.Ba=this.od=0;this.kb=this.Da("ytp-marker-crenellation-list");this.Sa={};this.rd={};this.clipEnd=Infinity;this.Ac=this.Da("ytp-clip-end");this.Fd=new g.Qz(this.Ac,!0);this.Sf=this.Da("ytp-clip-end-exclude");this.gh=this.Da("ytp-clip-start-exclude");this.clipStart=0;this.Dc=this.Da("ytp-clip-start");this.je=new g.Qz(this.Dc,!0);this.oa=this.Mb=
0;this.Cc=this.Da("ytp-progress-bar");this.pc={};this.Yc={};this.Dd=this.Da("ytp-chapters-container");this.Ng=this.Da("ytp-timed-markers-container");this.j=[];this.T=[];this.Xe={};this.Tf=null;this.ib=-1;this.Vb=this.Ka=0;this.ea=null;this.Ve=this.Da("ytp-scrubber-button");this.Hh=this.Da("ytp-scrubber-container");this.yb=new g.Eg;this.Kg=new tLa;this.B=new qN(0,0);this.xb=null;this.C=this.zd=!1;this.Lg=null;this.qb=this.Da("ytp-fine-scrubbing-container");this.Aa=this.Da("ytp-heat-map-container");
this.Od=this.Da("ytp-heat-map-edu");this.Jg=this.Da("ytp-fine-scrubbing-edu");this.I=[];this.Oa=this.ke=this.Ma=!1;this.heatMarkersDecorations=[];this.u=void 0;this.tooltip=b.xc();g.af(this,g.AQ(this.tooltip,this.Ac));g.L(this,this.Fd);this.Fd.subscribe("hoverstart",this.TR,this);this.Fd.subscribe("hoverend",this.SR,this);this.S(this.Ac,"click",this.UE);g.af(this,g.AQ(this.tooltip,this.Dc));g.L(this,this.je);this.je.subscribe("hoverstart",this.TR,this);this.je.subscribe("hoverend",this.SR,this);this.S(this.Dc,
"click",this.UE);uLa(this);this.S(a,"resize",this.Bb);this.S(a,"presentingplayerstatechange",this.fX);this.S(a,"videodatachange",this.Lq);this.S(a,"videoplayerreset",this.HZ);this.S(a,"cuerangesadded",this.xU);this.S(a,"cuerangesremoved",this.F3);this.S(a,"cuerangemarkersupdated",this.xU);this.S(a,"onLoopRangeChange",this.dO);this.S(a,"innertubeCommand",this.onClickCommand);this.S(a,g.eB("timedMarkerCueRange"),this.N2);this.S(a,"updatemarkervisibility",this.vU);this.updateVideoData(a.getVideoData(),
!0);this.dO(a.getLoopRange());iS(this)&&!this.u&&(this.u=new $R(this.api,this.tooltip),a=g.Ql(this.element).x||0,this.u.Bb(a,this.D),this.u.Ca(this.qb),g.L(this,this.u),this.S(this.u.dismissButton,"click",this.qq),this.S(this.u.playButton,"click",this.qI),this.S(this.u.element,"dblclick",this.qI));a=this.api.V();g.QG(a)&&a.isMobile&&a.N("embeds_web_enable_progress_bar_context_menu_fix")&&g.po(this.element,"ytp-no-contextmenu");this.api.rb(this.Aa,this,139609,!0);this.api.rb(this.Od,this,140127,!0);
this.api.rb(this.Jg,this,151179,!0);this.api.rb(this.kb,this,145078,!0);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)};
uLa=function(a){if(0===a.j.length){var b=new dS;a.j.push(b);g.L(a,b);b.Ca(a.Dd,0)}for(;1<a.j.length;)a.j.pop().dispose();eS(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
kS=function(a){for(;a.T.length;)a.T.pop().dispose()};
vLa=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.cB(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Df("chapterCueRange");a.api.xe(c)};
nS=function(a,b){var c,d=null==(c=a.pc[b])?void 0:c.chapters;d&&(wLa(a,d),a.api.getVideoData().Hj=a.j,vLa(a));var e;if((c=null==(e=a.pc[b])?void 0:e.markers)&&"HEATSEEKER"!==b){kS(a);e=g.t(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new hS,d=g.N(d,g.xLa)){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;yLa(a,c)}lS(a,
a.T);e=a.T;c=a.Xe;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=HKa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.xe(d)}var l;if(b=g.N(null==(l=a.pc[b])?void 0:l.heatmap,zLa)){l=b.heatMarkers||[];var m;e=null!=(m=b.minHeightDp)?m:0;var n;m=null!=(n=b.maxHeightDp)?n:60;n=a.j.length;c=null;for(d=0;d<n;d++){h=a.j[d].startTime;var p=d===n-1?Infinity:a.j[d+1].startTime;if(d===a.I.length){f=
void 0;var q=a;f=void 0===f?NaN:f;var r=new sLa(q.api);q.I.push(r);g.L(q,r);r.Ca(q.Aa);0<=f&&(r.element.style.width=f+"px")}f=[];c&&f.push(c);q=g.t(l);for(r=q.next();!r.done;r=q.next()){r=r.value;var w=void 0,y=void 0,z=null!=(y=null==(w=g.N(r,ALa))?void 0:w.timeRangeStartMillis)?y:-1;z>=h&&z<=p&&f.push(r)}0<m&&(a.Aa.style.height=m+"px");h=a.I[d];q=0===d;q=void 0===q?!1:q;p=h;0<m&&(p.j=m,p.I.style.height=p.j+"px");p=h.j;q=void 0===q?!1:q;r=1E3/f.length;w=[];w.push({x:0,y:100});y=g.t(f.entries());
for(z=y.next();!z.done;z=y.next()){var B=g.t(z.value);z=B.next().value;B=B.next().value;var D=void 0;B=(null==(D=g.N(B,ALa))?void 0:D.heatMarkerIntensityScoreNormalized)||0;D=(z+.5)*r;B=100-g.Ag(100*B,e/p*100,m/p*100);0!==z||q||w.push({x:0,y:B});w.push({x:D,y:B});z===f.length-1&&w.push({x:1E3,y:B})}w.push({x:1E3,y:100});p=w;if(0===f.length)p="";else{q="";r=g.t(p.entries());for(w=r.next();!w.done;w=r.next())y=g.t(w.value),w=y.next().value,y=y.next().value,0===w?w="M "+y.x.toFixed(1)+","+y.y.toFixed(1):
(z=rLa(p[w-1],p[w-2],y),w=rLa(y,p[w-1],p[w+1],!0),w=" C "+(z.x.toFixed(1)+","+z.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1)+" "+y.x.toFixed(1)+","+y.y.toFixed(1))),q+=w;p=q}h.D.setAttribute("d",p);h.isValid=""!==p;g.to(h.api.getRootNode(),"ytp-heat-map",h.isValid);g.to(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.N("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.mS(a);l=[];b=g.t(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.N(e.value,
BLa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:null!=(n=e.visibleTimeRangeStartMillis)?n:-1,visibleTimeRangeEndMillis:null!=(c=e.visibleTimeRangeEndMillis)?c:-1,decorationTimeMillis:null!=(d=e.decorationTimeMillis)?d:NaN,label:m?g.jB(m):""});a.heatMarkersDecorations=l}};
yLa=function(a,b){a.T.push(b);g.L(a,b);b.Ca(a.Ng,a.Ng.children.length)};
lS=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=oS(a,c.timeRangeStartMillis/(1E3*a.B.j),pS(a));g.Il(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
wLa=function(a,b){var c=0,d=!1;b=g.t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.N(e,CLa)){e=g.N(e,CLa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.jB(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new dS,a.j.push(f),g.L(a,f),f.Ca(a.Dd,a.Dd.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.mS(a);qS(a)};
g.mS=function(a){a.Ka=a.j.length-1;a.Vb=0;DLa(a,!0)&&DLa(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){fS(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;eS(a.j[d],e+"px");break}a.j[c].width=0;eS(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,eS(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,eS(a.j[c],d+"px"));c=0;if(a.I.length===a.j.length)for(b=0;b<
a.I.length;b++)d=a.j[b].width,a.I[b].element.style.width=d+"px",a.I[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
DLa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.D){for(var h=a.D-(a.C?3:2)*a.Ka,l=0===a.Vb?3:h*a.Vb,m=g.t(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,fS(a.j[c],a.C?3:2));g.to(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0<r.width?
r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);fS(p.j[q],0);b&&(a.Ka--,m/f>a.Vb&&(a.Vb=m/f),d=!0)}c++}}return d};
qS=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:BJ(d))&&b.airingStart&&b.airingEnd?ELa(a,b.airingStart,b.airingEnd):ELa(a,b.seekableStart,b.seekableEnd);d=tN(c,b.loaded,0);b=tN(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;rS(a,b,d);e&&sS(a);FLa(a)}}};
ELa=function(a,b,c){return tS(a)?new qN(Math.max(b,a.xb.startTimeMs/1E3),Math.min(c,a.xb.endTimeMs/1E3)):new qN(b,c)};
GLa=function(a,b){var c;!a.api.N("web_repeating_chapters")||"repeatChapter"!==(null==(c=a.xb)?void 0:c.type)&&"repeatChapter"!==(null==b?void 0:b.type)||(b&&(b=a.j[fR(a.j,b.startTimeMs)],g.to(b.j,"ytp-repeating-chapter",!1)),a.xb&&(b=a.j[fR(a.j,a.xb.startTimeMs)],g.to(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.to(d.j,"ytp-exp-chapter-hover-container",!a.xb)}))};
vS=function(a,b){var c=sN(a.B,b.fraction);if(1<a.j.length){c=uS(a,b.B,!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.B-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};
HLa=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.Ka)};
ILa=function(a,b,c,d){b=g.Ag(b,0,a.C?60:40);a.Z=b;var e=a.Xa;a.Xa=b/(a.C?60:40)*(Math.max(rN(a.B)/a.D,1)-1)+1;b=a.D*a.Xa;a.Ba=g.Ag(d*b-c,0,b-a.D);e!==a.Xa&&sS(a)};
sS=function(a){if(1!==a.j.length||wS(a))a.Ve.style.removeProperty("height");else{var b=pS(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Oda(a.kb),f=0;if(a.Z>.2*(a.C?60:40)){for(var h=rN(a.B)/60*d,l=Math.ceil(rN(a.B)/60*c);l<h;l++){var m=e[f];m||(m=g.bh("DIV"),a.kb.appendChild(m));f++;0===l%60?g.no(m,"ytp-60m-progress"):0===l%30?g.no(m,"ytp-30m-progress"):0===l%15?g.no(m,"ytp-15m-progress"):g.no(m,"ytp-1m-progress");m.style.left=(60*l/rN(a.B)-c)*b.j+"px"}a.Oa||(a.Oa=!0,a.api.Va(a.kb,a.Oa))}b=a.zd?a.B.j:0;a.update({boundTimeLeft:g.mN(sN(a.B,
c)-b),boundTimeRight:g.mN(sN(a.B,d)-b)});for(c=e.length-1;c>=f;c--)g.fh(e[c]);a.element.style.height=a.Z+(a.C?8:5)+"px";a.ma("height-change",a.Z);a.Ve.style.height=a.Z+(a.C?20:13)+"px"}e=g.t(Object.keys(a.Sa));for(f=e.next();!f.done;f=e.next())JLa(a,f.value);xS(a);rS(a,a.oa,a.Mb)};
pS=function(a){var b=a.yb.x,c=a.D*a.Xa;b=g.Ag(b,0,a.D);a.Kg.update(b,a.D,-a.Ba,-(c-a.Ba-a.D));return a.Kg};
zS=function(a){return(a.C?135:90)-yS(a)};
yS=function(a){var b=48,c=a.api.V();a.C?b=54:g.QG(c)&&!c.isMobile&&(b=40);return b};
rS=function(a,b,c){a.oa=b;a.Mb=c;var d=pS(a),e=a.B.j,f=sN(a.B,a.oa),h=g.LK("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.mN(f,!0),DURATION:g.mN(e,!0)}),l=fR(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.xb&&2!==a.api.getPresentingPlayerType()&&(e=a.xb.startTimeMs/1E3,f=a.xb.endTimeMs/1E3);e=tN(a.B,e,0);l=tN(a.B,f,1);h=a.api.getVideoData();f=g.Ag(b,e,l);c=(null==h?0:g.xJ(h))?1:g.Ag(c,
e,l);b=oS(a,b,d);g.Il(a.Hh,"transform","translateX("+b+"px)");AS(a,d,e,f,"PLAY_PROGRESS");(null==h?0:BJ(h))?(b=a.api.getProgressState().seekableEnd)&&AS(a,d,f,tN(a.B,b),"LIVE_BUFFER"):AS(a,d,e,c,"LOAD_PROGRESS");if(a.api.N("web_player_heat_map_played_bar")){var m;null!=(m=a.I[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
AS=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ka*(a.C?3:2),l=c*h;c=uS(a,l);var m=d*h;h=uS(a,m);"HOVER_PROGRESS"===e&&(h=uS(a,b.j*d,!0),m=b.j*d-KLa(a,b.j*d)*(a.C?3:2));b=Math.max(l-LLa(a,c),0);for(d=c;d<f;d++)gS(a.j[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].width,BS(a,gS(a.j[f],e),f===c?d-b:d,d);f=a.j[h].width;m=g.Ag(m-LLa(a,h),0,f);c===h&&(m-=b);BS(a,gS(a.j[h],e),m,f);m=a.j.length;for(h+=1;h<m;h++)BS(a,gS(a.j[h],e),0,a.j[h].width);for(h=0;h<c;h++)BS(a,gS(a.j[h],e),0,a.j[h].width)};
LLa=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};
BS=function(a,b,c,d,e){e||a.api.V().isMobile?b.style.width=c+"px":g.Il(b,"transform","scalex("+(d?c/d:0)+")")};
uS=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=KLa(a,b)*(a.C?3:2));c=g.t(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};
oS=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.t(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.C?3:2)*a.Ka)+(a.C?3:2)*(0>e?0:e)+c.u};
KLa=function(a,b){for(var c=a.j.length,d=0,e=g.t(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.CS=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.Mg=b;a.D=c;a.C=d;iS(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);sS(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.mS(a);a.u&&f&&iS(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-yS(a),a.qb.style.height=c+"px",g.Il(a.Aa,"transform","translateY("+-d+"px)"),g.Il(a.Cc,"transform","translateY("+-d+"px)")),nLa(a.u))};
xS=function(a){var b=!!a.xb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.xb?(c=a.xb.startTimeMs/1E3,d=a.xb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var h,l;if((null==(h=a.xb)?0:h.postId)||"repeatChapter"===(null==(l=a.xb)?void 0:l.type))f=e=!1;g.to(a.element,"ytp-loop-range-enabled",b);g.to(a.element,"ytp-clip-start-enabled",e);g.to(a.element,"ytp-clip-end-enabled",f);b=e?tN(a.B,c,0):0;d=f?tN(a.B,d,1):1;a.Dc.style.left=Math.round(1E3*b)/10+"%";a.Ac.style.left=
Math.round(1E3*d)/10+"%";a.gh.style.width=Math.round(1E3*b)/10+"%";a.Sf.style.left=Math.round(1E3*d)/10+"%";a.Sf.style.width=Math.round(1E3*(1-d))/10+"%"};
FLa=function(a){var b;if(null==(b=a.api.getVideoData())||!BJ(b)){b=pS(a);AS(a,b,a.oa,Math.max(b.fraction,a.oa),"HOVER_PROGRESS");for(var c=uS(a,b.j*a.oa,!0),d=uS(a,b.B,!0),e=c;e<=d;e++)g.to(a.j[e].u,"ytp-hover-progress-light",b.fraction>a.oa);g.to(a.Ve,"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.I[0])&&f.u.setAttribute("width",(100*b.fraction).toFixed(2)+"%")}}};
JLa=function(a,b){var c=a.Sa[b];b=a.rd[b];var d=pS(a),e=tN(a.B,c.start/1E3,0),f=dua(c,a.C)/d.width;var h=tN(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Ag(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.u,0)+"px";BS(a,b,g.Ag((h-c)*d.j+d.u,0,d.width),d.width,!0)};
MLa=function(a,b){var c=b.getId();a.Sa[c]===b&&(g.fh(a.rd[c]),delete a.Sa[c],delete a.rd[c])};
wS=function(a){return a.api.N("web_player_fine_scrubbing")};
iS=function(a){var b;return wS(a)&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Jf()&&!a.api.isInline()};
DS=function(a){a.u&&(a.u.disable(),a.Z=0,a.Aa.style.removeProperty("transform"),a.Cc.style.removeProperty("transform"),a.qb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
NLa=function(a,b){var c=b/zS(a)*yS(a);g.Il(a.Cc,"transform","translateY("+-b+"px)");g.Il(a.Aa,"transform","translateY("+-b+"px)");g.Il(a.qb,"transform","translateY("+c+"px)");a.qb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=yS(a)-c+"px")};
OLa=function(a,b){b?a.ea||(a.element.removeAttribute("aria-disabled"),a.ea=new g.Qz(a.Cc,!0),a.ea.subscribe("hovermove",a.K1,a),a.ea.subscribe("hoverend",a.J1,a),a.ea.subscribe("dragstart",a.I1,a),a.ea.subscribe("dragmove",a.M1,a),a.ea.subscribe("dragend",a.L1,a),a.Lg=a.Pa("keydown",a.gX)):a.ea&&(a.element.setAttribute("aria-disabled","true"),a.zc(a.Lg),a.ea.cancel(),a.ea.dispose(),a.ea=null)};
g.PLa=function(a){var b=2*a.D*g.oH();return 1E3*rN(a.B)/a.api.getPlaybackRate()/b};
tS=function(a){var b;return!(null==(b=a.xb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
ES=function(a,b,c){g.V.call(this,{F:"button",Ga:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true"},qa:"{{icon}}"});this.G=a;this.ob=c;this.j=null;this.S(a,"onMdxReceiversChange",this.La);this.S(a,"presentingplayerstatechange",this.La);this.S(a,"appresize",this.La);a.rb(this.element,this,139118);this.La();this.Pa("click",this.u,this);g.af(this,g.AQ(b.xc(),this.element))};
FS=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-button","ytp-screen-mode-button"],X:{"aria-haspopup":"true","aria-owns":gM(),title:"Viewing options","data-tooltip-target-id":"ytp-screen-mode-button"},W:[{F:"svg",X:{viewBox:"0 0 36 36"},W:[{F:"path",Qb:!0,X:{d:"M8 9v11.2h4v-1.6H9.6v-8h12.8V14H24V9Zm17.09 10.81h-5.81v4.36h5.81zM28 25.63V15.44c0-.8-.65-1.44-1.45-1.44h-13.09c-.8 0-1.45.64-1.45 1.44v10.19c0 .8.65 1.45 1.45 1.45h13.09c.8 0 1.45-.65 1.45-1.45Zm-1.45.01h-13.09V15.43h13.09z",fill:"#fff"}}]}]});
this.G=a;this.u=!0;this.ob=null;this.Pa("click",this.B);this.S(a,"appresize",this.j);g.af(this,g.AQ(b.xc(),this.element));this.j(a.fb().getPlayerSize())};
GS=function(a,b,c,d,e){g.$O.call(this,g.aP(),a,b);this.ob=d;this.j=!1;this.u=null;e&&(this.u=new g.V({F:"div",W:[{F:"span",qa:"{{title}}"},{F:"span",K:"ytp-menuitem-keyboard-shortcut",qa:e}]}),this.Xg(this.u),this.u.updateValue("title",b),g.L(this,this.u));this.Pa("click",this.onClick)};
HS=function(a,b){b&&!a.j?(a.ob.Ec(a),a.j=!0):!b&&a.j&&(a.ob.Nf(a),a.j=!1)};
IS=function(a,b){GS.call(this,10,"Miniplayer",a,b,"(i)");this.G=a;bP(this,{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{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.S(a,"fullscreentoggled",this.La);a.rb(this.element,this,62946);this.La()};
JS=function(a,b,c){GS.call(this,12,"Connect to a device",a,b);this.G=a;this.C=c;this.B=null;this.S(a,"onMdxReceiversChange",this.La);this.S(a,"presentingplayerstatechange",this.La);this.S(a,"appresize",this.La);a.rb(this.element,this,139118);this.La()};
KS=function(a,b){GS.call(this,11,"Theater mode",a,b,"(t)");this.G=a;this.isWidescreen=null;this.S(a,"sizestylechange",this.La);this.S(a,"fullscreentoggled",this.La);this.S(a,"presentingplayerstatechange",this.La);a.rb(this.element,this,139116);this.La()};
LS=function(a,b,c){g.RQ.call(this,a,"ytp-screen-mode-menu");this.settingsMenu=b;this.Ap=c;this.td=new g.JQ(this.G);this.qF=0;g.L(this,this.td);this.S(a,"minimized",this.hide);this.S(a,"sizestylechange",this.hide);this.S(a,"fullscreentoggled",this.hide);this.hide();g.PQ(this,this.td);this.FL(c);a=this.G.V();a.yb&&(b=new JS(this.G,this,this.settingsMenu),g.L(this,b),this.qF++);a.Mb||(b=new KS(this.G,this),g.L(this,b),this.qF++);a.showMiniplayerButton&&(a=new IS(this.G,this),g.L(this,a),this.qF++)};
MS=function(a,b,c){g.V.call(this,{F:"button",Ga:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":gM(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.zM()]});this.G=a;this.ob=c;this.u=!0;this.Pa("click",this.B);this.S(a,"onPlaybackQualityChange",this.updateBadge);this.S(a,"videodatachange",this.updateBadge);this.S(a,"webglsettingschanged",this.updateBadge);this.S(a,"appresize",this.j);g.af(this,g.AQ(b.xc(),this.element));
this.G.rb(this.element,this,28663);this.updateBadge();this.j(a.fb().getPlayerSize())};
NS=function(a,b){a.u=!!b;a.j(a.G.fb().getPlayerSize())};
OS=function(a,b){gP.call(this,"Annotations",7);this.G=a;this.ob=b;this.j=!1;a.N("web_settings_menu_icons")&&bP(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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.S(a,"videodatachange",this.La);this.S(a,"onApiChange",this.La);this.subscribe("select",this.onSelect,this);this.La()};
g.PS=function(a,b,c,d,e,f,h){g.$O.call(this,g.aP({"aria-haspopup":"true"}),b,a);this.ob=d;this.D=!1;this.selectedKey=null;this.options={};this.B=new g.JQ(c,void 0,a,e,f,h);g.L(this,this.B);this.Pa("keydown",this.hX);this.Pa("click",this.open)};
QLa=function(a){if(a.selectedKey){var b=a.options[a.selectedKey];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.selectedKey=null}};
g.QS=function(a,b){g.KQ(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.selectedKey;l&&(d=!0);h&&h.priority===-e?(a.options[f].Xg(a.nk(f,!0)),delete a.options[f]):h=a.xH(f,-e,l);c[f]=h;a.B.Ec(h,!0)}d||(a.selectedKey=null);b=g.t(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
RS=function(a,b){g.PS.call(this,"Audio track",4,a,b);this.G=a;this.tracks={};this.j=new g.V({F:"div",W:[{F:"span",qa:"Audio track"},{F:"span",K:"ytp-menuitem-label-count",qa:"{{content}}"}]});a.N("web_settings_menu_icons")&&bP(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]});g.L(this,this.j);this.Xg(this.j);this.S(a,"videodatachange",this.La);this.S(a,"onPlaybackAudioChange",this.La);this.La()};
SS=function(a,b){gP.call(this,"Autoplay",8);this.G=a;this.ob=b;this.j=!1;this.B=[];this.S(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.onSelect,this);a.rb(this.element,this,113682);this.u()};
TS=function(a,b){g.$O.call(this,g.aP({"aria-haspopup":"false"}),0,"Context Menu");this.G=a;this.ob=b;this.S(this.element,"click",this.onClick);this.ob.Ec(this)};
US=function(a,b,c){g.V.call(this,{F:"div",K:"ytp-screen-mode-settings-option",W:[{F:"div",K:"ytp-screen-mode-settings-label",qa:"{{label}}"}]});this.ob=c;this.Ap=new g.lM({F:"button",Ga:["ytp-screen-mode-settings-button","ytp-button"],qa:"{{icon}}",X:{title:"{{title}}"}});this.Ap.Ca(this.element,0);g.L(this,this.Ap);this.Ap.updateValue("icon",a);this.Xg(b);this.Pa("click",this.onClick)};
VS=function(a,b,c){US.call(this,{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{d:"M45,10v28H3V10H45 M46,9H2v30h44V9L46,9z M43,26H26v10h17V26 M23,16v6.09l-6.68-6.68l-1.41,1.41L21.09,23H16v2h9v-9H23z",fill:"white"}}]},gQ(b,"Miniplayer","i"),c);this.G=b;a.addButton(this);this.S(b,"fullscreentoggled",this.La);b.rb(this.element,this,62946);this.La()};
WS=function(a,b){var c;g.pH(a.V())&&(c={F:"div",K:"ytp-panel-footer-content",W:[{F:"span",qa:"Adjust download quality from your "},{F:"a",K:"ytp-panel-footer-content-link",qa:"Settings",X:{href:"/account_downloads"}}]});g.PS.call(this,"Quality",3,a,b,void 0,void 0,c);this.G=a;this.Z={};this.J={};this.u={};this.j=this.C=!1;this.I="unknown";this.T="";this.C=this.G.N("web_player_use_new_api_for_quality_pullback");this.j=this.G.N("web_player_enable_premium_hbr_playback_cap");a.N("web_settings_menu_icons")&&
bP(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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.po(this.B.element,"ytp-quality-menu");this.S(a,"videodatachange",this.Dy);this.S(a,"videoplayerreset",this.Dy);this.S(a,"onPlaybackQualityChange",this.eO);this.Dy();a.rb(this.element,this,137721)};
SLa=function(a,b,c){a=a.Z[b];var d=g.eC[b];return RLa(a?a.qualityLabel:d?d+"p":"Auto",b,c)};
XS=function(a,b,c,d){b=(a=a.j?a.u[b]:a.J[b])&&a.qualityLabel;d=RLa(b?b:"Auto",a&&a.quality||"",d);(a=(a=a&&a.paygatedQualityDetails)&&a.paygatedIndicatorText)&&c&&d.W.push({F:"div",K:"ytp-premium-label",qa:a});return d};
RLa=function(a,b,c){a={F:"span",Ga:c,W:[a]};var d;"highres"===b?d="8K":"hd2880"===b?d="5K":"hd2160"===b?d="4K":0===b.indexOf("hd")&&"hd720"!==b&&(d="HD");d&&(a.W.push(" "),a.W.push({F:"sup",K:"ytp-swatch-color",qa:d}));return a};
YS=function(a,b,c){US.call(this,PGa(),"Connect to a device",c);this.G=b;this.j=null;a.addButton(this);this.S(b,"onMdxReceiversChange",this.La);this.S(b,"presentingplayerstatechange",this.La);this.S(b,"appresize",this.La);b.rb(this.element,this,139118);this.Pa("click",this.onClick);this.La()};
ZS=function(a,b){g.lM.call(this,{F:"div",K:"ytp-screen-mode-menu-item"});this.G=a;this.ob=b};
$S=function(a,b,c){US.call(this,dHa(),gQ(b,"Theater mode","t"),c);this.G=b;this.isWidescreen=null;a.addButton(this);this.S(b,"sizestylechange",this.La);this.S(b,"fullscreentoggled",this.La);this.S(b,"presentingplayerstatechange",this.La);b.rb(this.element,this,139116);this.La()};
aT=function(a,b,c,d,e,f,h){g.V.call(this,{F:"div",K:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{F:"div",K:"ytp-slider",W:[{F:"div",K:"ytp-slider-handle"}]}]});this.I=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.ea=f;this.range=this.maximumValue-this.minimumValue;this.oa=this.Da("ytp-slider-section");this.u=this.Da("ytp-slider");this.T=this.Da("ytp-slider-handle");
this.C=new g.Qz(this.u,!0);this.j=h?h:c;g.L(this,this.C);this.C.subscribe("dragmove",this.jX,this);this.S(this.element,"keydown",this.kX);this.S(this.element,"wheel",this.iX);this.init()};
cT=function(a){aT.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.G=a;this.B=g.bh("P");this.Aa=Wca(this.Z,this);g.po(this.u,"ytp-speedslider");g.po(this.B,"ytp-speedslider-text");a=this.u;a.parentNode&&a.parentNode.insertBefore(this.B,a.nextSibling);bT(this);this.S(this.G,"onPlaybackRateChange",this.updateValues)};
bT=function(a){a.B.textContent=dT(a,a.j)+"x"};
dT=function(a,b){a=Number(g.Ag(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))};
eT=function(a){g.lM.call(this,{F:"div",K:"ytp-speedslider-component"});this.j=new cT(a);g.L(this,this.j);this.element.appendChild(this.j.element)};
TLa=function(a){var b=new eT(a);IQ.call(this,a,b,"Custom");g.L(this,b)};
fT=function(a,b){var c=new TLa(a);g.PS.call(this,"Playback speed",6,a,b,"Custom",function(){g.PQ(b,c)});
a.N("web_settings_menu_icons")&&bP(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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.L(this,c);this.G=a;this.u=this.j=this.I=null;this.C=this.G.getAvailablePlaybackRates();this.S(a,"presentingplayerstatechange",this.La);this.La()};
ULa=function(a,b){var c=gT(b);a.options[c]?a.Ji(c):b===a.u&&a.j&&(a.Ji(a.j),a.Wd(b.toString()))};
WLa=function(a){g.QS(a,a.C.map(gT));a.j=null;a.u=null;var b=a.G.getPlaybackRate();a.C.includes(b)||(VLa(a,b),g.PS.prototype.ah.call(a,a.j))};
VLa=function(a,b){a.u=b;a.j=g.LK("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.C.map(gT);b.unshift(a.j);g.QS(a,b)};
gT=function(a){return a.toString()};
hT=function(a,b,c,d){var e=new g.JQ(b,void 0,"Video Override");g.PS.call(this,d.text||"",a,b,c,"Video Override",function(){g.PQ(c,e)});
var f=this;g.po(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.sc(a,this.getKey,this);this.C=e;g.L(this,this.C);b=new g.$O({F:"div",K:"ytp-menuitemtitle",qa:"Allow for a different caption style if specified by the video."},0);g.L(this,b);this.C.Ec(b,!0);this.u=new g.$O({F:"div",K:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{F:"div",K:"ytp-menuitem-label",qa:"On"}]},-1);g.L(this,this.u);this.C.Ec(this.u,!0);this.S(this.u.element,
"click",function(){XLa(f,!0)});
this.j=new g.$O({F:"div",K:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{F:"div",K:"ytp-menuitem-label",qa:"Off"}]},-2);g.L(this,this.j);this.C.Ec(this.j,!0);this.S(this.j.element,"click",function(){XLa(f,!1)});
g.QS(this,g.Vd(a,this.getKey))};
XLa=function(a,b){a.ma("settingChange",a.setting+"Override",!b);a.ob.ej()};
iT=function(a,b){g.JQ.call(this,a,void 0,"Options");var c=this;this.er={};for(var d=0;d<g.iR.length;d++){var e=g.iR[d],f=new hT(-d,a,b,e);g.L(this,f);f.subscribe("settingChange",this.dj,this);this.er[e.option.toString()]=f;this.Ec(f,!0)}a=new g.$O(g.aP(),-g.iR.length,"Reset");g.L(this,a);a.Pa("click",function(){c.dj("reset",!0)});
this.Ec(a,!0)};
jT=function(a,b){g.PS.call(this,"Auto-translate",0,a,b);this.G=a;this.languages={};a.rb(this.element,this,127301);a.Va(this.element,!0)};
YLa=function(a,b){a.languages=g.sc(b,a.getKey,a);g.QS(a,g.Vd(b,a.getKey))};
kT=function(a,b){var c=new iT(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.pH(a.V())&&(e={F:"div",K:"ytp-panel-footer-content",W:[{F:"span",qa:d[0]},{F:"a",K:"ytp-panel-footer-content-link",qa:"Settings",X:{href:"/account_playback"}},{F:"span",qa:d[1]}]});g.PS.call(this,"Subtitles/CC",5,a,b,"Options",function(){g.PQ(b,c)},e);
var f=this;this.G=a;this.ob=b;this.tracks={};this.C=new g.ho(function(){ZLa(f,!1)},3E3);
g.L(this,this.C);this.I=new g.V({F:"div",W:[{F:"span",qa:"Subtitles/CC"},{F:"span",K:"ytp-menuitem-label-count",qa:"{{content}}"}]});g.L(this,this.I);this.Xg(this.I);a.N("web_settings_menu_icons")&&bP(this,{F:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{F:"path",X:{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 jT(a,b);g.L(this,this.j);this.j.subscribe("select",this.lX,this);this.u=c;g.L(this,this.u);this.u.subscribe("settingChange",this.dj,this);b.subscribe("show",this.u2,this);this.S(a,"videodatachange",this.La);this.S(a,"onApiChange",this.La);this.S(a,"onCaptionsTrackListChanged",this.La);this.S(a,"captionschanged",this.La);a.rb(this.element,this,127300);this.La()};
ZLa=function(a,b){a.G.setOption("captions","sampleSubtitles",b)};
lT=function(a){g.RQ.call(this,a,"ytp-settings-menu");var b=this;this.td=new g.JQ(this.G);this.settingsButton=null;this.rF=0;this.isInitialized=this.NK=!1;g.L(this,this.td);this.hide();g.PQ(this,this.td);var c=this.G.V();if(c.N("web_screen_mode_menu_b")){var d=new ZS(this.G,this);g.L(this,d);if(c.showMiniplayerButton){var e=new VS(d,this.G,this);g.L(this,e)}c.Mb||(e=new $S(d,this.G,this),g.L(this,e),this.rF++);c.yb&&(e=new YS(d,this.G,this),g.L(this,e),this.rF++);1<this.rF&&nKa(this.td,d)}a.rb(this.element,
this,108341,!0);this.subscribe("show",function(f){b.Lf(f)});
this.S(a,"highlightSettingsMenu",function(){b.NK=!0;b.Kc()});
c.N("web_rounded_containers")&&g.po(this.element,"ytp-rounded-menu")};
$La=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
mT=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-title-no-tooltip":"{{data-title-no-tooltip}}"},qa:"{{icon}}"});this.G=a;this.isWidescreen=null;this.transition=new SR;this.tooltip=b.xc();g.L(this,this.transition);this.S(a,"sizestylechange",this.La);this.S(a,"fullscreentoggled",this.La);this.S(a,"presentingplayerstatechange",this.La);a.rb(this.element,this,139116);this.La();this.Pa("click",this.onClick);g.af(this,g.AQ(this.tooltip,
this.element))};
g.nT=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-subtitles-button","ytp-button"],X:{"aria-pressed":"{{pressed}}",title:"{{title}}","aria-keyshortcuts":"c","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[NJa()]});this.G=a;this.tooltip=b.xc();this.S(a,"videodatachange",this.La);this.S(a,"appresize",this.La);this.S(a,"promotooltipacceptbuttonclicked",this.j);this.S(a,"onApiChange",this.La);this.S(a,"onCaptionsTrackListChanged",this.La);this.S(a,"captionschanged",this.La);this.G.rb(this.element,
this,127299);this.La();this.Pa("click",this.onClick);g.af(this,g.AQ(b.xc(),this.element))};
g.pT=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{F:"div",Ga:["ytp-time-display","notranslate"],W:[{F:"span",K:"ytp-time-clip-icon",qa:"{{clipicon}}"},{F:"span",W:[{F:"span",K:"ytp-time-current",qa:"{{currenttime}}"},{F:"span",K:"ytp-time-separator",qa:" / "},{F:"span",K:"ytp-time-duration",qa:"{{duration}}"}]},{F:"span",K:"ytp-clip-watch-full-video-button-separator",qa:"\u2022"},{F:"span",K:"ytp-clip-watch-full-video-button",qa:"{{watchfullvideo}}"}]});this.api=a;this.J=c;this.liveBadge=new g.V({F:"button",
Ga:["ytp-live-badge","ytp-button"],X:{disabled:"true"},qa:"{{content}}"});this.j=null;this.isLiveVideo=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.xb=this.C=this.B=null;this.T=this.Da("ytp-clip-watch-full-video-button");this.liveBadge.Wd("Live");g.L(this,this.liveBadge);this.liveBadge.Ca(this.element);this.tooltip=b.xc();this.Pa("click",this.onClick);this.S(this.T,"click",this.d3);this.S(a,"presentingplayerstatechange",this.jc);this.S(a,"appresize",this.jc);this.S(a,"onLoopRangeChange",this.onLoopRangeChange);
this.S(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.jc();a=a.getLoopRange();b=this.xb!==a;this.xb=a;b&&oT(this);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)};
oT=function(a){a.updateValue("clipicon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{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.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.to(a.element,"ytp-clip",qT(a));g.to(a.element,"ytp-live",rT(a))};
rT=function(a){var b=a.api.V().N("enable_linear_program_progress");return a.isLiveVideo&&!qT(a)&&(!b||!a.u)};
qT=function(a){return!!a.xb&&!!a.xb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.api.N("web_repeating_chapters")||"clips"===a.xb.type)};
uT=function(a,b,c){g.V.call(this,{F:"div",K:"ytp-volume-panel",X:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{F:"div",K:"ytp-volume-slider",W:[{F:"div",K:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.J=c;this.Dk=!1;this.Z=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.j=b;this.J=c;this.C=b.If();this.T=this.Da("ytp-volume-slider");this.ea=this.Da("ytp-volume-slider-handle");
this.D=new g.Qz(this.T,!0);g.L(this,this.D);this.D.subscribe("dragstart",this.B2,this);this.D.subscribe("dragmove",this.nX,this);this.D.subscribe("dragend",this.A2,this);this.S(a,"onVolumeChange",this.onVolumeChange);this.S(a,"appresize",this.fO);this.S(a,"fullscreentoggled",this.rp);this.S(a,"onShowControls",this.lP);this.S(a,"onHideControls",this.lP);this.S(this.element,"keydown",this.oX);this.S(this.element,"focus",function(){sT(d,d.u,d.isDragging,!0,d.j.Dk())});
this.S(this.element,"blur",function(){sT(d,d.u,d.isDragging,!1,d.j.Dk())});
this.fO(a.fb().getPlayerSize());tT(this,a.getVolume(),a.isMuted())};
tT=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.ea.style.left=(a.C?60:40)*c+"px";a.volume=b};
aMa=function(a,b){g.to(a.element,"ytp-volume-control-hover",b);sT(a,b,a.isDragging,a.B,a.j.Dk())};
sT=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.Dk;a.u=b;a.isDragging=c;a.B=d;a.Dk=e;b=a.u||a.isDragging||a.B||a.Dk;f!==b&&(b?a.I=a.S(a.element,"wheel",a.mX):(a.zc(a.I),a.I=null),g.to(a.J,"ytp-volume-slider-active",b))};
g.vT=function(a,b){var c=a.V(),d=g.lH(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.j&&e.push("no-link");g.$G(c)&&e.push("ytp-youtube-music-button");var f={target:c.T,"data-sessionlink":"feature=player-button",title:""};c.j||(f.title=g.LK("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.V.call(this,{F:"a",Ga:e,X:f,qa:"{{logoSvg}}"});this.u=b;this.j=null;this.api=a;this.visible=!1;a.rb(this.element,this,28666);c.j||(this.j=this.Pa("click",
this.onClick));this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"onLoopRangeChange",this.onVideoDataChange);this.S(a,"appresize",this.Bb);this.onVideoDataChange();c.j||g.af(this,g.AQ(b.xc(),this.element));this.Bb()};
wT=function(a,b,c){g.WE.call(this);var d=this;this.G=a;this.u=b;this.Ee=c;this.Sa=NaN;this.Wa=this.Oa=null;this.settingsMenu=new lT(this.G);this.C=null;this.Cc=new g.jS(this.G,this.u);this.muteButton=null;this.Gi=new g.pT(this.G,this.u);this.Ka=this.Xa=this.I=this.D=this.Ba=this.Aa=null;this.Z=new VR(this.G,this.u);this.Ma=new g.NR(this.G,this.u);this.Ne=new g.fo(this.It,null,this);this.T=null;c=a.V();this.Ee.subscribe("autohideupdate",this.Vl,this);var e=!a.Db().isCued(),f=this.G.V().N("html5_player_bottom_linear_gradient");
f||!g.$G(c)&&!a.V().N("html5_player_dynamic_bottom_gradient")?f=f?new g.V({F:"div",K:"ytp-gradient-bottom-container",W:[{F:"div",K:"ytp-gradient-bottom-extension"},{F:"div",K:"ytp-gradient-bottom"}]}):new g.V({F:"div",K:"ytp-gradient-bottom"}):this.Wa=f=new g.HR(a);g.L(this,f);g.VO(a,f.element,9);this.oa=new g.YM(f,250,e,100);g.L(this,this.oa);this.B=new g.V({F:"div",K:"ytp-chrome-bottom",W:[{F:"div",K:"ytp-chrome-controls"}]});g.L(this,this.B);g.VO(a,this.B.element,9);this.ea=new g.YM(this.B,250,
e,100);g.L(this,this.ea);this.ya=this.B.element.children[0];g.af(this.settingsMenu,function(){a.Jl()===d.settingsMenu&&(a.settingsMenu=null)});
g.L(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.VO(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(n){bMa(d.u.xc(),!n);b.dB(d.settingsMenu,n)});
g.L(this,this.Cc);this.Cc.Ca(this.B.element,0);e=new g.KR(a,b);g.L(this,e);g.VO(a,e.element,4);e=new g.hM({F:"div",K:"ytp-left-controls"});g.L(this,e);e.Ca(this.ya);f=new g.ZR(a,b,!1);g.L(this,f);f.Ca(e.element);c.Ma||(f=new g.WR(a,b),g.L(this,f),f.Ca(e.element));f=new g.ZR(a,b,!0);g.L(this,f);f.Ca(e.element);f=new g.V({F:"span",K:"ytp-volume-area"});g.L(this,f);f.Ca(e.element);if(!c.Dc&&(this.muteButton=new g.UR(a,b),g.L(this,this.muteButton),this.muteButton.Ca(f.element),c.Ba&&!c.J)){var h=new uT(a,
b,this.B.element);this.Ka=h;g.L(this,h);h.Ca(f.element);f=new g.Qz(f.element);g.L(this,f);f.subscribe("hoverstart",function(){var n;null==(n=d.Ka)||aMa(n,!0)});
f=new g.Qz(e.element);g.L(this,f);f.subscribe("hoverend",function(){var n;null==(n=d.Ka)||aMa(n,!1)})}g.L(this,this.Gi);
this.Gi.Ca(e.element);this.j=new g.hM({F:"div",K:"ytp-right-controls"});g.L(this,this.j);this.Aa=new JR(a,b,this.Cc);g.L(this,this.Aa);this.Aa.Ca(e.element);c.N("web_key_moments_markers")&&(this.Ba=new OR(a,b,this.Cc),g.L(this,this.Ba),this.Ba.Ca(e.element));this.j.Ca(this.ya);a.V().Dd&&c.N("web_player_move_autonav_toggle")&&(e=new FR(a,b),g.L(this,e),e.Ca(this.j.element));e=new g.nT(a,b);g.L(this,e);e.Ca(this.j.element);e=new MS(a,b,this.settingsMenu);g.L(this,e);$La(this.settingsMenu,e);e.Ca(this.j.element);
if(c.N("web_screen_mode_menu_a")){var l=new FS(a,b);g.L(this,l);this.C=new LS(this.G,this.settingsMenu,l);l.ob=this.C;g.af(this.C,function(){a.Jz()===d.C&&(a.zG=null)});
g.L(this,this.C)}if(e=this.C&&1<this.C.qF)a.zG=this.C,g.VO(a,this.C.element,7),this.C.subscribe("show",function(n){bMa(d.u.xc(),!n);b.dB(d.C,n)}),l.Ca(this.j.element);
var m=new RR(a);g.L(this,m);g.VO(a,m.element,5);m.subscribe("show",function(n){b.Jo(m,n)});
l=new QR(a,b,m);g.L(this,l);l.Ca(this.j.element);l=a.getVideoData();if(c.fk||l.D&&"1"===c.controlsType)this.D=new g.vT(a,b),g.L(this,this.D),this.D.Ca(this.j.element);g.L(this,this.Z);!e&&1>=this.settingsMenu.rF&&(c.showMiniplayerButton&&(this.I=new PR(a,b),g.L(this,this.I),this.I.Ca(this.j.element)),this.Z.Ca(this.j.element),l.eL||this.Z.hide(),c.Mb||(l=new mT(a,b),g.L(this,l),l.Ca(this.j.element)),c.yb&&(l=new ES(a,b,this.settingsMenu),g.L(this,l),l.Ca(this.j.element)),c.ll&&(c=new ER(a,b),g.L(this,
c),c.Ca(this.j.element)));g.L(this,this.Ma);this.Ma.Ca(this.j.element);g.L(this,this.Ne);this.S(a,"appresize",this.Bb);this.S(a,"fullscreentoggled",this.Bb);this.S(a,"presentingplayerstatechange",this.EG);this.S(a,"videodatachange",this.onVideoDataChange);this.Bb()};
cMa=function(a,b){a.G.Db().isCued()||b?b&&(a.ea.hide(),a.oa.hide(),a.muteButton&&a.muteButton.Wb(!1),a.D&&a.D.Wb(!1),a.I&&a.I.Wb(!1),a.u.xc().vk(a.B.element)):b||(a.ea.show(),a.oa.show(),a.muteButton&&a.muteButton.Wb(!0),a.D&&a.D.Wb(!0),a.I&&a.I.Wb(!0),a.Vl())};
dMa=function(a){var b=a.G.fb().getPlayerSize().width;return Math.max(b-2*xT(a),100)};
xT=function(a){var b=a.u.If(),c=a.G.getVideoData().D,d=0;a.u.If()&&a.u.Ce()&&(d=(a.G.fb().getPlayerSize().width-a.G.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
yT=function(a){var b=a.u.If()?72:50;a=a.G.V();g.pH(a)&&(b=62,g.WG(a)&&(b=54));return b};
zT=function(a,b){AR.call(this,a,b,!1);var c=this;this.suggestedActions={};this.S(this.G,"videodatachange",this.onVideoDataChange);this.S(this.G,g.eB("suggested_action_button_visible"),function(d){c.FL(d.id);c.enabled=!0;c.Lf()});
this.S(this.G,g.fB("suggested_action_button_visible"),function(){c.enabled=!1;c.Lf()})};
eMa=function(a){a.suggestedActions={};a.G.Df("suggested_action_button_visible")};
BT=function(a){g.V.call(this,{F:"div",K:AT.TITLE,W:[{F:"div",K:AT.TEXT,W:[{F:"a",Ga:[AT.LINK,AT.SESSIONLINK],X:{target:a.V().T,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},qa:"{{title}}"},{F:"div",K:AT.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Da(AT.LINK);a.rb(this.element,this,23851);this.S(a,"videodatachange",this.La);this.S(a,"videoplayerreset",this.La);this.La()};
fMa=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");a.updateValue("channelTitleFocusable","-1")};
g.CT=function(a,b){g.V.call(this,{F:"div",W:[{F:"div",K:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},W:[{F:"div",K:"ytp-tooltip-edu",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{F:"span",qa:"{{eduText}}"}]},{F:"div",K:"ytp-tooltip-image"},{F:"div",K:"ytp-tooltip-title",W:[{F:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"g",
W:[{F:"rect",X:{fill:"none",height:"24",width:"24",x:"0"}}]},{F:"g",W:[{F:"g",W:[{F:"polygon",X:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{F:"polygon",X:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{F:"path",X:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{F:"span",qa:"{{title}}"}]},{F:"span",K:"ytp-tooltip-text",
qa:"{{text}}"}]},{F:"div",K:"ytp-tooltip-bg",W:[{F:"div",K:"ytp-tooltip-duration",qa:"{{duration}}"}]}]});var c=this;this.api=a;this.Ka=b;this.env=this.api.V();this.Ba=this.env.isMobile;this.bg=this.Da("ytp-tooltip-bg");this.Ma=this.Da("ytp-tooltip-edu");this.image=this.Da("ytp-tooltip-image");this.text=this.Da("ytp-tooltip-text");this.title=this.Da("ytp-tooltip-title");this.Z=function(d){(d=Ix(d))&&g.hh(c.j,d)||c.zm()};
this.D=function(d){3===c.type&&c.zm();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.D),d.addEventListener("mouseout",c.Z),d.removeEventListener("focus",c.D),d.addEventListener("blur",c.Z),gMa(c,d,2))};
this.ea=function(){c.zm()};
this.j=null;this.I=new g.YM(this,100);this.type=null;this.T=!1;this.u=null;this.C=NaN;this.B="";this.FG=this.api.fb().getPlayerSize().width;this.J=!0;this.scale=1;this.oa=new g.ho(this.s_,250,this);this.Aa=new g.ho(this.zm,5E3,this);g.L(this,this.I);g.L(this,this.oa);g.L(this,this.Aa);MG&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
EQ=function(a){a.element.setAttribute("aria-live","polite")};
bMa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:DT(a);a.I.show();break;default:a.I.show()}else a.I.hide();a.J=b};
jMa=function(a,b,c,d,e,f,h,l,m){if(!a.Ba||a.env.J){3===a.type&&a.zm();1!==a.type&&(g.no(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.I.show(),a.u&&a.u.dispose(),a.u=a.api.Vi(),a.u&&a.u.subscribe("l",a.dS,a));if(m){var n=g.Tl(a.bg).height||90;a.Ma.style.bottom=n+2+"px"}a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.to(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.to(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=yI(a.u,160*a.scale),a.env.N("web_l3_storyboard")&&4===a.u.levels.length&&
(d=a.u.levels.length-1),d=FCa(a.u,d,c));hMa(a,d);if(l)switch(c=g.Tl(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"}iMa(a,!!e,b,f)}};
g.ET=function(a){1===a.type&&a.zm()};
g.AQ=function(a,b){if(a.Ba)return function(){};
b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.zm();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
WQ=function(a,b,c){if(a.type)if(3===a.type)a.zm();else return;gMa(a,b,3,c)};
gMa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Yv("showElementTooltip called with non-element.",b.toString()),g.$z(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.j=b;a.T=!!d;d?a.B=d:(a.B=b.getAttribute("title"),b.removeAttribute("title"));g.no(a.element,"ytp-tooltip");a.env.N("web_rounded_containers")&&g.po(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});
g.to(a.element,"ytp-tooltip-image-enabled",!!e);b=b.getAttribute("data-tooltip-opaque");g.to(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.ea);a.J&&(DT(a),a.I.show(0))}};
DT=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.B&&a.j.getAttribute("aria-label")!==a.B)var c=a.B;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.LK("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.T){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.B,duration:c});d=d.getAttribute("data-preview");e=160*a.scale;var f=
90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.qo(a.element,["ytp-text-detail","ytp-preview"]);g.to(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.B),g.so(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);iMa(a,!!b)}};
iMa=function(a,b,c,d){var e=Math.min(a.FG,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ka.St(a.element,a.j,c,1===a.type,d);a.element.style.top?g.po(a.element,"ytp-bottom"):a.element.style.bottom&&g.po(a.element,"ytp-top");3===a.type&&a.Aa.start()};
XQ=function(a){a.j&&!a.T&&a.j.hasAttribute("title")&&(a.B=a.j.getAttribute("title")||"",a.j.removeAttribute("title"),a.J&&DT(a))};
hMa=function(a,b){g.to(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;b=160*a.scale;var c=160*a.scale,d=BCa(a.u,a.C,b);YKa(a.bg,d,b,c,!0);a.oa.start()}};
kMa=function(a){var b=a.j;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.ea);a.T||b.setAttribute("title",a.B);a.B="";a.j=null};
g.FT=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.QG(a.V()))},W:[{F:"div",K:"ytp-watch-later-icon",qa:"{{icon}}"},{F:"div",K:"ytp-watch-later-title",qa:"Watch later"}]});this.G=a;this.icon=null;this.u=this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.xc();EQ(this.tooltip);a.rb(this.element,this,28665);this.Pa("click",this.onClick,this);this.S(a,"videoplayerreset",this.pX);
this.S(a,"appresize",this.Ey);this.S(a,"videodatachange",this.Ey);this.S(a,"presentingplayerstatechange",this.Ey);this.Ey();a=this.G.V();var c=g.AA("yt-player-watch-later-pending");a.u&&c?(iAa(),lMa(this)):this.La(2);g.to(this.element,"ytp-show-watch-later-title",g.QG(a));g.af(this,g.AQ(b.xc(),this.element))};
mMa=function(a,b){g.AN(function(){iAa({videoId:b});window.location.reload()},"wl_button",g.kH(a.G.V()))};
lMa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.La(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Il(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.La(2);a.G.V().D&&a.G.Qa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.La(1);a.G.V().isMobile&&WQ(a.tooltip,a.element);a.G.V().D&&a.G.Qa("WATCH_LATER_VIDEO_ADDED")};
HN(c,b).then(d,function(){a.isRequestPending=!1;nMa(a,"An error occurred. Please try again later.")})}};
nMa=function(a,b){a.La(4,b);a.G.V().D&&a.G.Qa("WATCH_LATER_ERROR",b)};
oMa=function(a,b){var c=a.G.V();if(b!==a.icon){switch(b){case 3:var d=eQ();break;case 1:d=oM();break;case 2:d={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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")?{F:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",d);a.icon=
b}};
g.GT=function(a){g.rQ.call(this,a);var b=this;this.JD=(this.Sq=g.QG(this.api.V()))&&(this.api.V().isMobile||tv()||qv());this.HH=48;this.IH=69;this.Ym=null;this.jr=[];this.Ic=new g.vQ(this.api);this.fz=new YQ(this.api);this.Gg=new g.V({F:"div",K:"ytp-chrome-top"});this.tB=[];this.tooltip=new g.CT(this.api,this);this.backButton=this.ex=null;this.channelAvatar=new HQ(this.api,this);this.title=new BT(this.api,this);this.Hi=new g.hM({F:"div",K:"ytp-chrome-top-buttons"});this.Zh=this.shareButton=this.dl=
null;this.Yh=new zQ(this.api,this,this.Gg.element);this.overflowButton=this.Ph=null;this.Pf="1"===this.api.V().controlsType?new wT(this.api,this,this.Ee):null;this.contextMenu=new g.UQ(this.api,this,this.Ic);this.vH=!1;this.VC=new g.V({F:"div",X:{tabindex:"0"}});this.UC=new g.V({F:"div",X:{tabindex:"0"}});this.PA=null;this.OK=this.RJ=this.FC=!1;var c=a.fb(),d=a.V(),e=a.getVideoData();this.Sq&&(g.po(a.getRootNode(),"ytp-embed"),g.po(a.getRootNode(),"ytp-embed-playlist"),this.JD&&(g.po(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.po(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.HH=60,this.IH=89);a.V().j&&g.po(a.getRootNode(),"ytp-embed-pfl");this.api.V().isMobile&&(g.po(a.getRootNode(),"ytp-mobile"),this.api.V().J&&g.po(a.getRootNode(),"ytp-embed-mobile-exp"));this.hh=e&&e.hh;g.L(this,this.Ic);g.VO(a,this.Ic.element,4);g.L(this,this.fz);g.VO(a,this.fz.element,4);e=new g.V({F:"div",K:"ytp-gradient-top"});g.L(this,e);g.VO(a,e.element,1);this.kM=new g.YM(e,250,!0,100);g.L(this,
this.kM);g.L(this,this.Gg);g.VO(a,this.Gg.element,1);this.jM=new g.YM(this.Gg,250,!0,100);g.L(this,this.jM);g.L(this,this.tooltip);g.VO(a,this.tooltip.element,4);var f=new oR(a);g.L(this,f);g.VO(a,f.element,5);f.subscribe("show",function(p){b.Jo(f,p)});
this.tB.push(f);this.ex=new pR(a,this,f);g.L(this,this.ex);d.showBackButton&&(this.backButton=new uQ(a),g.L(this,this.backButton),this.backButton.Ca(this.Gg.element));this.Sq||this.ex.Ca(this.Gg.element);this.Ce()?(g.L(this,this.title),this.title.Ca(this.Gg.element),g.L(this,this.channelAvatar),this.channelAvatar.Ca(this.Gg.element)):(g.L(this,this.channelAvatar),this.channelAvatar.Ca(this.Gg.element),g.L(this,this.title),this.title.Ca(this.Gg.element));g.L(this,this.Hi);this.Hi.Ca(this.Gg.element);
var h=new g.xR(a,this);g.L(this,h);g.VO(a,h.element,5);h.subscribe("show",function(p){b.Jo(h,p)});
this.tB.push(h);d.j||this.Ce()||(this.dl=new g.FT(a,this),g.L(this,this.dl),this.dl.Ca(this.Hi.element));d.j||(this.shareButton=new g.wR(a,this,h),g.L(this,this.shareButton),this.shareButton.Ca(this.Hi.element));d.j||this.Ce()||(this.Zh=new g.VQ(a,this),g.L(this,this.Zh),this.Zh.Ca(this.Hi.element));this.Sq&&!this.Ce()&&this.ex.Ca(this.Hi.element);this.Ce()||(g.L(this,this.Yh),this.Yh.Ca(this.Hi.element));d.Gm&&(e=new DR(a),g.L(this,e),g.VO(a,e.element,4));d.j||(e=new BQ(a,this,this.Yh),g.L(this,
e),e.Ca(this.Hi.element));this.Ce()||(this.Ph=new lR(a,this),g.L(this,this.Ph),g.VO(a,this.Ph.element,5),this.Ph.subscribe("show",function(){b.Jo(b.Ph,b.Ph.oi())}),this.tB.push(this.Ph),this.overflowButton=new kR(a,this,this.Ph),g.L(this,this.overflowButton),this.overflowButton.Ca(this.Hi.element));
this.Pf&&g.L(this,this.Pf);"3"===d.controlsType&&(e=new vR(a,this),g.L(this,e),g.VO(a,e.element,9));g.L(this,this.contextMenu);this.contextMenu.subscribe("show",this.CU,this);e=new uN(a,new tQ(a));g.L(this,e);g.VO(a,e.element,4);this.VC.Pa("focus",this.nZ,this);g.L(this,this.VC);this.UC.Pa("focus",this.oZ,this);g.L(this,this.UC);var l;(this.gp=d.Tf?null:new g.hR(a,c,this.contextMenu,this.Ee,this.Ic,this.fz,function(){return b.zk()},null==(l=this.Pf)?void 0:l.Cc))&&g.L(this,this.gp);
this.Sq||(this.DT=new BR(this.api,this),g.L(this,this.DT),g.VO(a,this.DT.element,4));this.RT=new zT(this.api,this);g.L(this,this.RT);g.VO(a,this.RT.element,4);var m;if(this.Sq&&this.api.V().N("embeds_web_enable_info_panel_preview")&&(null==(m=d.webPlayerContextConfig)||!m.embedsDisableInfoPanels)){var n=new bR(a,this.api.V().wc);g.L(this,n);g.VO(a,n.element,5);n.subscribe("show",function(p){b.Jo(n,p)});
c=new dR(a,this,n);g.L(this,c);g.VO(a,c.element,4)}this.ir.push(this.Ic.element);this.S(a,"fullscreentoggled",this.rp);this.S(a,"offlineslatestatechange",function(){b.api.aA()&&YP(b.Ee,128,!1)});
this.S(a,"cardstatechange",function(){b.Zj()});
this.S(a,"resize",this.H0);this.S(a,"showpromotooltip",this.g1)};
pMa=function(a){var b=a.api.V(),c=g.U(a.api.Db(),128);return b.u&&c&&!a.api.isFullscreen()};
HT=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Ll(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=HT(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};
qMa=function(a,b,c){if(a.api.V().N("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.PA){if(!(b=!b)){var f,h;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)}e=b}e&&(a.PA=new qR(d,a,a.api),g.L(a,a.PA),g.VO(a.api,a.PA.element,9));var l;null==(l=a.PA)||tR(l,d,c)}}};
g.IT=function(a){g.CP.call(this,a);this.chrome=null;this.load()};
JT=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.Q)()-f).toFixed(),shost:g.fi(a),trigger:b};rMa(h,a);c&&c(h);d&&!l&&d(new AH("pathprobe.net",h))}
var f=(0,g.Q)();g.Wu(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
rMa=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())};
sMa=function(a){return new Promise(function(b){setTimeout(b,a)})};
KT=function(a){g.K.call(this);var b=this;this.Y=a;this.j=new Map;this.C=[];this.u=this.Y.experiments.gb("html5_onesie_trusted_hosts_for_all")||!pG();this.Z=g.YF(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.T=new g.ho(this.J,this.Z,this);this.I=-1;g.L(this,this.T);tMa(this,g.AA("yt-player-bandaid-host"));this.ea=this.load();this.Z&&this.ea.then(function(){b.J()})};
tMa=function(a,b){var c=null==b?void 0:b.primary;a.B(0,c);c=c?uMa(c):void 0;a.B(2,c);a.B(1,null==b?void 0:b.secondary)};
LT=function(a,b){return new g.yC("https://"+b+a.Y.Si.baseUrl)};
vMa=function(a,b){a="https://"+AC(b.location)+"/initplayback?c="+dH(a.Y)+"&owc=1";b.start();JT(a,"pw",function(c){b.end();c.ht=b.JQ;b.r_=c})};
MT=function(a,b,c,d){JT("https://"+b+"/videoplayback?probe=1",c,function(e){!d.N("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.N("html5_onesie_probe_ec_hosts")||d.LD||d.yQ();a.C.push(e)},function(e){a.C.push(e.details)})};
uMa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
OT=function(a,b){var c,d,e,f,h,l;return g.A(function(m){if(1==m.j){c=LT(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.x(m,Yu(c.Ge(),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.Yv("b204258371_no_host",c.Ge(),e.xhr.status)));f=new g.yC(e.xhr.responseText);h=
AC(f);l=f.get("ms");f=LT(a,h);f.set("ms",l);return h&&wMa(h)?2!==b||NT(h)?m.return(f):m.return(Promise.reject(new g.Yv("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.Yv("b204258371_invalid",h,l)))})};
xMa=function(a){var b=a.C;a.C=[];return b};
wMa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
NT=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
PT=function(a,b){this.location=a;this.JQ=b;this.endTimestamp=this.startTimestamp=-1};
QT=function(a){return a.endTimestamp<=a.startTimestamp?Infinity:a.endTimestamp-a.startTimestamp};
RT=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
yMa=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};
zMa=function(){for(var a=ST.length;4>a;a++){var b=g.bh("VIDEO");b.load();ST.push(new g.XP(b))}};
AMa=function(){};
g.TT=function(a,b,c,d){d=void 0===d?!1:d;YK.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
BMa=function(a,b,c){var d=b.getVideoData(),e=a.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};b=e.C;if(a.wj()>c/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(a=a.Zd())&&a.isView()&&(a=a.mediaElement);if(a&&12<a.Ws().length&&g.dJ(d))return{msg:"played-ranges"};if(!d.C)return null;if(!d.C.j||!b.j)return{msg:"non-dash"};if(d.C.videoInfos[0].containerType!==b.videoInfos[0].containerType)return{msg:"container"};if(g.dJ(e)&&g.dJ(d))return{msg:"content-protection"};
e=b.j[0];d=d.C.j[0];a=e.audio;c=d.audio;return a.sampleRate===c.sampleRate||g.ZE?(a.numChannels||2)!==(c.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:e.itag,cr:a.sampleRate,ni:d.itag,nr:c.sampleRate}};
UT=function(a,b,c,d){g.K.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.I=!1;this.Vn=new LG;this.mm=d-1E3*b.Bd();this.Vn.then(void 0,function(){});
this.timeout=new g.ho(function(){e.ag("timeout")},1E4);
g.L(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null}};
GMa=function(a){var b,c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.VT.Nr("gtfta");return g.x(p,a.Vn,2)}g.VT.rq(b);c=a.j.Zd();if(c.kh())return a.ag("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!pF(a.C))return a.ag("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.Fq()!==a.C)return a.ag("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=CMa(a);e=d.HR;f=d.yP;h=d.GR;a.j.Ci(!1,!0);l=DMa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.J&&(a.u.seekTo(a.u.getCurrentTime()+.001,{kt:!0,iM:3,qe:"gapless_pseudo"}),l.play()||bv());m=c.Yb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.va("gapless",m);a.j.va("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();EMa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);EMa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.uh(function(){!a.u.getVideoData().Wa&&g.jL(a.u.getPlayerState())&&FMa(a.u)});
WT(a,6);a.dispose();return p.return(Promise.resolve())})};
JMa=function(a){if(a.u.getVideoData().C){XT(a.u,a.C);WT(a,3);HMa(a);var b=IMa(a),c=b.CT;b=b.Z3;c.subscribe("updateend",a.ev,a);b.subscribe("updateend",a.ev,a);a.ev(c);a.ev(b)}};
HMa=function(a){a.j.unsubscribe("internalvideodatachange",a.As,a);a.u.unsubscribe("internalvideodatachange",a.As,a);a.j.unsubscribe("mediasourceattached",a.As,a);a.u.unsubscribe("statechange",a.Vc,a)};
DMa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.TT(a,b,c,d)};
WT=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Vn.resolve(void 0))};
CMa=function(a){var b=a.j.Zd();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:ZT(a.j,!0);c=Math.min(a.mm/1E3,c)+b;var d=a.J?100:0;a=c-a.u.wj()+d;return{RY:b,HR:a,yP:c,GR:Infinity}};
IMa=function(a){return{CT:a.B.j.xd,Z3:a.B.u.xd}};
$T=function(a){g.K.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.J=!1;this.C=null;this.T=new AMa;this.B=null;this.I=function(){g.uh(function(){KMa(b)})}};
LMa=function(a,b,c,d){d=void 0===d?0:d;a.Lw()||aU(a);a.C=new LG;a.j=b;var e=c,f=a.app.Lc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*ZT(f,!0);e>h&&(e=h-200,a.J=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.app.Ua.addEventListener(g.eB("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.cB(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,
ZT(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,ZT(b)+l));f=aAa(e,h)||d;f!==d&&a.j.va("qvaln",{st:d,at:f,rm:l,ct:h})}b=f;d=a.j;d.getVideoData().Mg=!0;d.getVideoData().kb=!0;g.bU(d,!0);e={};a.u&&(e=g.cU(a.u.qc.provider),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.va("queued",e);0!==b&&d.seekTo(b+.01,{kt:!0,iM:3,qe:"videoqueuer_queued"});a.B=new UT(a.T,a.app.Lc(),a.j,c);c=a.B;Infinity!==c.status.status&&(WT(c,1),c.j.subscribe("internalvideodatachange",c.As,
c),c.u.subscribe("internalvideodatachange",c.As,c),c.j.subscribe("mediasourceattached",c.As,c),c.u.subscribe("statechange",c.Vc,c),c.j.subscribe("newelementrequired",c.iS,c),c.As());return a.C};
KMa=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&dU(a.app.Lc(),!0,!1);b=null;if(!a.B){e.Ja(2);break}g.qa(e,3);return g.x(e,GMa(a.B),5);case 5:g.ra(e,2);break;case 3:b=c=g.sa(e);case 2:if(!a.j)return e.return();g.VT.iL("vqsp",function(){eU(a.app,a.j)});
g.VT.iL("vqpv",function(){a.app.playVideo()});
b&&MMa(a.j,b.message);d=a.C;aU(a);return e.return(d.resolve(void 0))}})};
aU=function(a){if(a.u){var b=a.u;a.app.Ua.removeEventListener(g.eB("vqueued"),a.I);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.ag("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.qO(a.app,1)&&a.j!==a.app.Lc()&&a.j.dispose();a.j=null;a.J=!1};
NMa=function(){var a=Woa();return!(!a||"visible"===a)};
PMa=function(a){var b=OMa();b&&document.addEventListener(b,a,!1)};
QMa=function(a){var b=OMa();b&&document.removeEventListener(b,a,!1)};
OMa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Ax+"VisibilityState"])return"";a=Ax+"visibilitychange"}return a};
fU=function(){g.Mz.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.Lf()};
PMa(this.C);this.D=this.getVisibilityState(this.Rg(),this.isFullscreen(),this.Jf(),this.isInline(),this.Kw(),this.Gw())};
RMa=function(a,b){var c;if(b.gH)for(c=0;c<b.gH.length;c++)jI(a,1,b.gH[c]);iI(a,2,b.sY);jI(a,3,b.Qs);gI(a,4,b.e4);gI(a,5,b.V4);jI(a,6,b.W4)};
SMa=function(a,b){kI(a,6,b.T3,RMa,3)};
TMa=function(a){this.end=this.start=a};
g.jU=function(a,b,c){g.K.call(this);var d=this;this.api=a;this.Y=b;this.xa=c;this.ib="";this.Aa=new Map;this.Wa=new Map;this.Ba=new Map;this.C=new Map;this.B=[];this.T=[];this.u=new Map;this.Ac=new Map;this.Z=new Map;this.wc=NaN;this.Vb=this.qb=null;this.pc=new g.ho(function(){gU(d,d.wc)});
this.events=new g.WE(this);this.isLiveNow=!0;this.ke=g.YF(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.J=new g.ho(function(){d.ya=!0;var e=d.xa,f=d.ke;e.va("sdai",{aftimeout:f});e.Jd(new AH("ad.fetchtimeout",{timeout:f}));hU(d);d.Rz(!1)},this.ke);
this.ya=!1;this.Ma=new Map;this.Mb=[];this.oa=null;this.Od=new Set;this.Sa=[];this.Dc=[];this.Dd=[];this.od=[];this.j=void 0;this.kb=0;this.Xa=!0;this.D=!1;this.Ka=[];this.zd=new Set;this.je=new Set;this.Fd=new Set;this.xk=0;this.ea=null;this.yb=new Set;this.Yc=0;this.kq=this.rd=!1;this.I="";this.xa.getPlayerType();UMa(this.xa,this);this.Oa=this.Y.C;g.L(this,this.pc);g.L(this,this.events);g.L(this,this.J);iU(this)||(this.events.S(this.api,g.eB("serverstitchedcuerange"),this.onCueRangeEnter),this.events.S(this.api,
g.fB("serverstitchedcuerange"),this.onCueRangeExit))};
YMa=function(a,b,c,d,e,f,h,l){var m=VMa(a,f,f+e);a.ya&&a.xa.va("sdai",{adaftto:1});var n=a.xa;h=void 0===h?f+e:h;f===h&&!e&&a.Y.N("html5_allow_zero_duration_ads_on_timeline")&&a.xa.va("sdai",{attl0d:1});f>h&&kU(a,{reason:"enterTime_greater_than_return",Jc:f,wd:h});var p=1E3*n.Td();f<p&&kU(a,{reason:"enterTime_less_than_minSeekableTime",Jc:f,s6a:p});n=1E3*n.getDuration();h>n&&kU(a,{reason:"parent_return_greater_than_content_duration",wd:h,q6a:n});n=null;p=g.mc(a.T,{wd:f},function(w,y){return w.wd-
y.wd});
0<=p&&(n=a.T[p],n.wd>f&&WMa(a,b.video_id||"",f,h,n));if(m&&n){p=g.t(a.Sa.entries());for(var q=p.next();!q.done;q=p.next()){var r=g.t(q.value);q=r.next().value;r=r.next().value;if(r.identifier===m.identifier){a.Sa.splice(q,1);break}}}else if(m)return a.xa.va("sdai",{rejectAttl:1}),l&&!Xl(a.od,function(w){return w===l})&&(a.xa.va("sdai",{rejectAdBreakAttl:1}),a.od.push(l)),lU(a),"";
m="ss_childplayback_"+XMa++;b.cpn||(b.cpn=g.gA(16));p=b.cpn;b=new g.GI(a.Y,b);b.Gc=m;c={Gc:m,playerType:d,durationMs:e,Jc:f,wd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.qc(a.T,c,function(w,y){return w.Jc-y.Jc});
a.u.set(p,c);a.Ac.set(m,c);a.xa.va("sdai",{attlDone:h-f,acpn:p});l?c.xl=l:n?c.xl=n.xl:c.xl=c.cpn;if(f=c.xl)(d=a.Z.get(f))?(d.push(c),g.oc(d,function(w,y){return w.Jc-y.Jc})):a.Z.set(f,[c]);
a.J.isActive()&&(a.ya=!1,a.J.stop(),hU(a),a.Rz(!0));return m};
mU=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
ZMa=function(a,b,c){return new g.cB(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
nU=function(a){return{cpn:a.xa.getVideoData().clientPlaybackNonce,durationMs:0,Jc:0,playerType:1,wd:0,videoData:a.xa.getVideoData(),errorCount:0}};
pU=function(a,b,c){var d=a.D,e=nU(a),f=a.I;a.I="";var h=b.Hg-c.Hg;.5<Math.abs(h)&&a.xa.va("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.u.get(b.adCpn);var m=a.u.get(c.adCpn)}m&&l&&(a.api.ma("serverstitchedvideochange",l.Gc,l.Up),a.xa.va("sdai",mU("a2a",l)),a.xk++,oU(a.xa,m,l,c.Hg,b.Hg,d,!!f))}else if(!b.isAd&&c.isAd){a.api.ma("serverstitchedvideochange");a.xa.va("sdai",mU("a2c"));a.xk=0;if(h=c.Yd)a.kb=h.end;var n;c.adCpn&&
(n=a.u.get(c.adCpn));n&&oU(a.xa,n,e,c.Hg,b.Hg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.u.get(b.adCpn));p&&(a.kb=0,a.api.ma("serverstitchedvideochange",p.Gc,p.Up),a.xa.va("sdai",mU("c2a",p)),a.xk=1,oU(a.xa,e,p,c.Hg,b.Hg,d,!!f))}};
qU=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.mc(a.T,{Jc:c},function(e,f){return e.Jc-f.Jc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.T[d],a.wd>=c)?{Wm:a,Tw:b}:{Wm:void 0,Tw:b}};
rU=function(a,b){var c="";iU(a)?(c=b/1E3-a.Qo(),c=a.xa.Aw(c)):(b=$Ma(a,b))&&(c=b.getId());return c?a.u.get(c):void 0};
$Ma=function(a,b){a=g.t(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
gU=function(a,b){var c=a.Vb||a.api.Lc().getPlayerState();sU(a,!0);a.xa.seekTo(b);a=a.api.Lc();b=a.getPlayerState();g.jL(c)&&!g.jL(b)?a.playVideo():g.iL(c)&&!g.iL(b)&&a.pauseVideo()};
sU=function(a,b){a.wc=NaN;a.pc.stop();a.qb&&b&&tU(a.qb);a.Vb=null;a.qb=null};
uU=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.t(a.T),f=e.next();!f.done;f=e.next())f=f.value,(f.Jc<b||f.wd>c)&&d.push(f);a.T=d;d=g.t(a.C.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.xa.removeCueRange(e),a.C.delete(e.getId()),a.xa.va("sdai",{rmAdCR:1}));d=qU(a,b/1E3);b=d.Wm;d=d.Tw;if(b&&(d=1E3*d-b.Jc,e=b.Jc+d,b.durationMs=d,b.wd=e,d=a.C.get(b.cpn))){e=g.t(a.B);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=b.Jc+
b.durationMs:f.end===d.start&&(f.end=b.Jc);d.start=b.Jc;d.end=b.Jc+b.durationMs}if(b=qU(a,c/1E3).Wm){var h;d="playback_timelinePlaybackId_"+b.Gc+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Jc+"_parentReturnTimeMs_"+b.wd;a.jA("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
aNa=function(a){a.ib="";a.Aa.clear();a.Wa.clear();a.Ba.clear();a.C.clear();a.B=[];a.T=[];a.u.clear();a.Ac.clear();a.Z.clear();a.Ma.clear();a.Mb=[];a.oa=null;a.Od.clear();a.Sa=[];a.Dc=[];a.Dd=[];a.od=[];a.Ka=[];a.zd.clear();a.je.clear();a.Fd.clear();a.yb.clear();a.isLiveNow=!0;a.ya=!1;a.j=void 0;a.kb=0;a.Xa=!0;a.D=!1;a.xk=0;a.ea=null;a.Yc=0;a.rd=!1;a.kq=!1;a.I="";a.J.isActive()&&lU(a)};
cNa=function(a,b,c,d,e){if(!a.kq)if(g.bNa(a,c))a.Oa&&a.xa.va("sdai",{gdu:"undec",seg:c,itag:e});else return vU(a,b,c,d)};
vU=function(a,b,c,d){var e=a.Ma.get(c);if(!e){b+=a.Qo();b=qU(a,b,1);var f;b.Wm||2!==(null==(f=wU(a,c-1,null!=d?d:2))?void 0:f.Iy)?e=b.Wm:e=a.Ma.get(c-1)}return e};
dNa=function(a){if(a.Ka.length)for(var b=g.t(a.Ka),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.t(a.C.values());for(b=c.next();!b.done;b=c.next())a.xa.removeCueRange(b.value);c=g.t(a.B);for(b=c.next();!b.done;b=c.next())a.xa.removeCueRange(b.value);a.C.clear();a.B=[];a.Aa.clear();a.Wa.clear();a.Ba.clear();a.j||(a.Xa=!0)};
wU=function(a,b,c,d){if(1===c){if(a.Y.N("html5_reset_daistate_on_audio_codec_change")&&d&&d!==a.ib&&(""!==a.ib&&(a.xa.va("sdai",{rstadaist:1,old:a.ib,"new":d}),a.Aa.clear()),a.ib=d),a.Aa.has(b))return a.Aa.get(b)}else{if(2===c&&a.Wa.has(b))return a.Wa.get(b);if(3===c&&a.Ba.has(b))return a.Ba.get(b)}};
xU=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;eNa(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.xa.removeCueRange(e);if(a.Ka.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else eNa(a,b,c)};
eNa=function(a,b,c){b=ZMa(b,c);c=!0;g.qc(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.xa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.xa.addCueRange(b),b=a.xa.nz("serverstitchedcuerange",36E5),b=g.t(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
yU=function(a,b,c){if(void 0===c||!c){c=g.t(a.Mb);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.Mb.push(new TMa(b))}};
g.bNa=function(a,b){a=g.t(a.Mb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
WMa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",m6a:b,Jc:c,wd:d,M5a:e.Gc,N5a:(null==(f=e.videoData)?void 0:f.videoId)||"",J5a:e.durationMs,K5a:e.Jc,L5a:e.wd};kU(a,b)};
kU=function(a,b){a=a.xa;a.va("timelineerror",b);a.Jd(new AH("dai.timelineerror",b))};
fNa=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
gNa=function(a,b,c){var d=0;a=a.Z.get(c);if(!a)return-1;a=g.t(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
hNa=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.t(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};
iNa=function(a,b){var c=0;a=a.Z.get(b);if(!a)return 0;a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.wd!==b.Jc&&c++;return c};
jNa=function(a,b,c){var d=!1;if(c&&(c=a.Z.get(c))){c=g.t(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.wd!==e.Jc&&(e=e.cpn,b===e&&(d=!0),d&&!a.je.has(e)&&(a.xa.va("sdai",{decoratedAd:e}),a.je.add(e)))}};
hU=function(a){a.Oa&&a.xa.va("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Yc)+"_isTimeout_"+a.ya})};
VMa=function(a,b,c){if(a.Sa.length)for(var d={},e=g.t(a.Sa),f=e.next();!f.done;d={Vr:d.Vr},f=e.next()){d.Vr=f.value;f=1E3*d.Vr.startSecs;var h=1E3*d.Vr.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return Xl(a.Dd,function(l){return function(m){return m.identifier===l.Vr.identifier}}(d))||(a.xa.va("sdai",{adskip:b}),a.Dd.push(d.Vr)),d.Vr}};
lU=function(a){a.ya=!1;a.J.isActive()&&hU(a);a.J.stop();a.Rz(!1)};
iU=function(a){return a.Y.experiments.gb("html5_ssdai_use_new_ad_report")};
zU=function(a,b,c){g.K.call(this);var d=this;this.api=a;this.Y=b;this.j=c;this.I=new Map;this.u=[];this.B=this.J=null;this.Z=NaN;this.D=this.C=null;this.T=new g.ho(function(){kNa(d,d.Z)});
this.ea=[];this.oa=new g.ho(function(){var e=d.ea.pop();if(e){var f=e.Gc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ea.length&&g.io(d.oa,4500))}});
this.events=new g.WE(this);c.getPlayerType();g.L(this,this.T);g.L(this,this.oa);g.L(this,this.events);this.events.S(this.api,g.eB("childplayback"),this.onCueRangeEnter);this.events.S(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.S(this.api,"presentingplayerstatechange",this.Nh)};
oNa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return AU(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Td();if(e<n)return AU(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Bd(),AU(a,m,h,l),"";n=null;for(var p=g.t(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Jc&&e<q.wd)return AU(a,"overlappingEnter",h,l),"";if(f<=q.wd&&f>q.Jc)return AU(a,"overlappingReturn",h,l),"";if(f===q.Jc)return AU(a,"outOfOrder",h,l),"";e===q.wd&&(n=q)}h="cs_childplayback_"+lNa++;l={Yd:BU(d,!0),mm:Infinity,target:null};var r={Gc:h,playerVars:b,playerType:c,durationMs:d,Jc:e,wd:f,nq:l};a.u=a.u.concat(r).sort(function(z,B){return z.Jc-B.Jc});
n?mNa(a,n,{Yd:BU(n.durationMs,!0),mm:a.Y.N("timeline_manager_transition_killswitch")?Infinity:n.nq.mm,target:r}):(b={Yd:BU(e,!1),mm:e,target:r},a.I.set(b.Yd,b),m.addCueRange(b.Yd));b=!0;if(a.j===a.api.Lc()&&(m=1E3*m.getCurrentTime(),m>=r.Jc&&m<r.wd)){var w=a.api.Lc().getPlayerState(),y=m-r.Jc;oh(function(){nNa(a,r,y/1E3,w)});
b=!1}b&&(a.ea.unshift(r),g.io(a.oa,0));return h};
BU=function(a,b){return new g.cB(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
pNa=function(a,b,c,d){a.B=d;a.api.MC(a.j,c,b)};
qNa=function(a,b,c,d){a.B=d;d=b.Gc;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
mNa=function(a,b,c){var d=b.nq;b.nq=c;CU(a,b)&&(c=a.api.Lc(),d.Yd===a.B&&DU(a),c.removeCueRange(d.Yd),c.addCueRange(b.nq.Yd))};
DU=function(a){a.J=null;a.B=null;a.api.Lw()||a.api.clearQueue()};
rNa=function(a,b){CU(a,b)||AU(a,"childPlaybackIsNotPresenting");return b.wd===b.Jc+b.durationMs?(a=a.api.Lc(),b.Jc+1E3*a.getCurrentTime()):b.wd};
EU=function(a,b){var c=0;a=g.t(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Jc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Wm:d,Tw:b-e};c=f-d.wd/1E3}return{Wm:null,Tw:b-c}};
kNa=function(a,b){var c=a.D||a.api.Lc().getPlayerState();FU(a,!0);b=isFinite(b)?b:a.j.Hl();var d=EU(a,b);b=d.Wm;d=d.Tw;var e=b&&!CU(a,b)||!b&&a.j!==a.api.Lc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||DU(a);b?nNa(a,b,d,c):GU(a,d,c)};
GU=function(a,b,c){var d=a.j,e=a.api.Lc();d!==e&&a.api.yp();d.seekTo(b,{qe:"application_timelinemanager"});sNa(a,c)};
nNa=function(a,b,c,d){var e=CU(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.GI(a.Y,b.playerVars);f.Gc=b.Gc;a.api.Xq(f,b.playerType)}f=a.api.Lc();e||f.addCueRange(b.nq.Yd);f.seekTo(c,{qe:"application_timelinemanager"});sNa(a,d)};
sNa=function(a,b){a=a.api.Lc();var c=a.getPlayerState();g.jL(b)&&!g.jL(c)?a.playVideo():g.iL(b)&&!g.iL(c)&&a.pauseVideo()};
FU=function(a,b){a.Z=NaN;a.T.stop();a.C&&b&&tU(a.C);a.D=null;a.C=null};
CU=function(a,b){a=a.api.Lc();return!!a&&a.getVideoData().Gc===b.Gc};
tNa=function(a){var b=a.u.find(function(e){return CU(a,e)});
if(b){var c=a.api.Lc();DU(a);var d=new g.cL(8);b=rNa(a,b)/1E3;GU(a,b,d);c.va("forceParentTransition",{childPlayback:1});a.j.va("forceParentTransition",{parentPlayback:1})}};
HU=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.t(a.I),h=f.next();!h.done;h=f.next()){var l=g.t(h.value);h=l.next().value;l=l.next().value;l.mm>=d&&l.target&&l.target.wd<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.t(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Jc>=d&&l.wd<=e){var m=a;m.J===l&&DU(m);CU(m,l)&&m.api.yp()}else f.push(l);a.u=f;d=EU(a,b/1E3);b=d.Wm;d=d.Tw;b&&(d*=1E3,uNa(a,b,d,b.wd===b.Jc+b.durationMs?b.Jc+d:b.wd));(b=EU(a,c/1E3).Wm)&&
AU(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Gc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Jc+" parentReturnTimeMs="+b.wd+"}.Child playbacks can only have duration updated not their start."))};
uNa=function(a,b,c,d){b.durationMs=c;b.wd=d;d={Yd:BU(c,!0),mm:c,target:null};mNa(a,b,d);CU(a,b)&&1E3*a.api.Lc().getCurrentTime()>c&&(b=rNa(a,b)/1E3,c=a.api.Lc().getPlayerState(),GU(a,b,c))};
AU=function(a,b,c,d){a.j.va("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
wNa=function(a){a&&"web"!==a&&vNa.includes(a)};
KU=function(a,b){g.K.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.ho(function(){IU(c);JU(c)});
g.L(this,this.j)};
IU=function(a){var b=(0,g.Q)();a.data.forEach(function(c){c.expire<b&&LU(a,c,!0)});
a.data=g.Dm(a.data,function(c){return!(c.expire<b)})};
LU=function(a,b,c){c&&a.u&&a.u(b.value)};
JU=function(a){a.j.stop();var b=Infinity;for(var c=g.t(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.MU=function(a){this.tag=a};
yNa=function(a,b){xNa.apply(null,[6,a,b].concat(g.u(g.ya.apply(2,arguments))))};
xNa=function(a,b,c){var d=g.ya.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.$z(new (Function.prototype.bind.apply(g.Yv,[null,f].concat(g.u(d)))),e);d.unshift(f);d=d.join(", ");e=zNa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(h){}zNa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
NU=function(){g.K.call(this);this.j=new KU(5,null);g.L(this,this.j);this.u=new KU(15,null);g.L(this,this.u)};
ANa=function(a,b){return b?!!a.j.get(b):!1};
OU=function(){g.No.call(this);this.D=new Map};
PU=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
BNa=function(a){return a.data[a.j]||0};
QU=function(a){g.K.call(this);this.B=a;this.j=new Map;this.u=new g.ho(this.sample,250,this);g.L(this,this.u);this.start()};
RU=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||[]};
SU=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:BNa(c.buffer))||0};
TU=function(a){this.u=a;this.j=NaN;this.buffer=new PU(100)};
CNa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
UU=function(a){g.K.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
WU=function(a){g.V.call(this,{F:"div",Ga:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},W:[{F:"div",K:g.VU.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.Vy=this.Da(g.VU.VIDEO_CONTAINER);this.gx=new g.Fl(0,0,0,0);this.Ob=null;this.ME=new g.Fl(0,0,0,0);this.SI=this.UJ=this.TJ=NaN;this.BD=this.JE=this.XK=this.iP=!1;this.PH=NaN;this.xJ=!1;this.kA=null;this.pK=function(){b.element.focus()};
this.vE=function(){b.app.Ua.ma("playerUnderlayVisibilityChange","visible");b.Ob.classList.remove(g.VU.VIDEO_CONTAINER_TRANSITIONING);b.Ob.removeEventListener(hP,b.vE);b.Ob.removeEventListener("transitioncancel",b.vE)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.V();e.transparentBackground&&this.Vp("ytp-transparent");"0"===e.controlsType&&this.Vp("ytp-hide-controls");g.po(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.po(this.element,"ytp-linear-gradient-bottom-experiment");e.N("enable_new_paid_product_placement")&&!g.sH(e)&&g.po(this.element,"ytp-exp-ppp-update");Osa(this.element,"version",DNa(a));this.ET=!1;this.qz=new g.Gg(NaN,NaN);ENa(this);this.S(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
ENa=function(a){function b(){a.Ob&&XU(a);YU(a)!==a.xJ&&a.resize()}
function c(h,l){a.Lq(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.ME=new g.Fl(0,0,0,0);a.gx=new g.Fl(0,0,0,0)}
var f=a.app.Ua;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.af(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
FNa=function(a){var b=g.qO(a.app);if(b=b?b.getVideoData():null){if(g.lJ(b)||g.mJ(b)||g.oJ(b))return 16/9;if(XI(b)&&b.C.j)return a=b.C.videoInfos[0].video,ZU(a.width,a.height)}return(a=a.Ob)?ZU(a.videoWidth,a.videoHeight):16/9};
GNa=function(a,b,c,d){var e=c,f=ZU(b.width,b.height);a.iP?e=c<f?Infinity:0:isNaN(a.SI)?isNaN(a.UJ)||(e=a.UJ):e=a.SI;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};
ZU=function(a,b){return 1>Math.abs($U*b-a)||1>Math.abs($U/a-b)?$U:a/b};
YU=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.qO(a.app);if(!b||b.zn())return!1;a=a.app.Ua.Db();b=!g.U(a,2)||b&&b.getVideoData().kb;var c=g.U(a,1024);return a&&b&&!c&&!a.isCued()};
XU=function(a){var b="3"===a.app.V().controlsType&&!a.BD&&YU(a)&&!a.app.pA||!1;a.Ob.controls=b;a.Ob.tabIndex=b?0:-1;b?a.Ob.removeEventListener("focus",a.pK):a.app.V().N("disable_focus_redirect")||a.Ob.addEventListener("focus",a.pK)};
HNa=function(a){var b=a.Wi(),c=1,d=!1,e=GNa(a,b,a.getVideoAspectRatio()),f=a.app.V(),h=f.N("enable_desktop_player_underlay"),l=ov(),m=g.YF(f.experiments,"player_underlay_min_player_width");m=h&&a.XK&&a.getPlayerSize().width>m;if(YU(a)){var n=FNa(a);var p=isNaN(n)||g.Qw||aV&&g.qw||m;pv&&!g.zc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.N("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Fl(p,0,b.width,b.height)):p=new g.Fl(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Fl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.qw&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.to(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.ET)a.Ob.style.display="";a.xJ=!0}else{p=-b.height;pv?p*=window.devicePixelRatio:g.tH&&(p-=window.screen.height);p=new g.Fl(0,p,b.width,b.height);if(l||a.ET)a.Ob.style.display="none";a.xJ=!1}Gl(a.ME,p)||(a.ME=p,g.YG(f)?(a.Ob.style.setProperty("width",
p.width+"px","important"),a.Ob.style.setProperty("height",p.height+"px","important")):g.Sl(a.Ob,p.getSize()),d=new g.Eg(p.left,p.top),g.Ol(a.Ob,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Fl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Gl(a.gx,b)||(a.gx=b,d=!0);g.Il(a.Ob,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.JE&&(m&&(a.Ob.addEventListener(hP,a.vE),a.Ob.addEventListener("transitioncancel",a.vE),a.Ob.classList.add(g.VU.VIDEO_CONTAINER_TRANSITIONING)),a.JE=m,a.app.Ua.ma("playerUnderlayVisibilityChange",
a.JE?"transitioning":"hidden"));return d};
INa=function(){this.csn=g.kA();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
JNa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
KNa=function(a){if(a.csn!==g.kA())if("UNDEFINED_CSN"===a.csn)a.csn=g.kA();else{var b=g.kA(),c=g.jA();if(b&&c){a.csn=b;for(var d=g.t(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.oA(void 0,b,c,[e])}if(b)for(a=g.t(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.pA(b,c)}};
bV=function(a,b,c,d,e){g.V.call(this,{F:"div",K:"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"};
cV=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.bh("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.bh("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.t(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="")};
dV=function(a){var b=null;b={F:"button",Ga:["html5-video-info-panel-close","ytp-button"],X:{title:"close"},qa:"[X]"};g.V.call(this,{F:"div",K:"html5-video-info-panel",W:[b,{F:"div",K:"html5-video-info-panel-content",W:[{F:"div",W:[{F:"div",qa:"Video ID / sCPN"},{F:"span",qa:"{{video_id_and_cpn}}",K:"ytp-sfn-cpn"}]},{F:"div",W:[{F:"div",qa:"Viewport / Frames"},{F:"span",qa:"{{dims_and_frames}}"}]},{F:"div",W:[{F:"div",qa:"Current / Optimal Res"},{F:"span",qa:"{{resolution}}"}]},{F:"div",W:[{F:"div",
qa:"Volume / Normalized"},{F:"span",qa:"{{volume}}"}]},{F:"div",W:[{F:"div",qa:"Codecs"},{F:"span",qa:"{{codecs}}"}]},{F:"div",X:{style:"{{shader_info_style}}"},W:[{F:"div",qa:"Shader Info"},{F:"span",qa:"{{shader_info}}"}]},{F:"div",X:{style:"{{color_style}}"},W:[{F:"div",qa:"Color"},{F:"span",qa:"{{color}}"}]},{F:"div",X:{style:"{{drm_style}}"},W:[{F:"div",qa:"Protected"},{F:"span",qa:"{{drm}}"}]},{F:"div",X:{style:"{{bandwidth_style}}"},W:[{F:"div",qa:"Connection Speed"},{F:"span",W:[{F:"span",
qa:"{{bandwidth_chart}}"},{F:"span",qa:"{{bandwidth_kbps}}"}]}]},{F:"div",X:{style:"{{network_activity_style}}"},W:[{F:"div",qa:"Network Activity"},{F:"span",W:[{F:"span",qa:"{{network_activity_chart}}"},{F:"span",qa:"{{network_activity_bytes}}"}]}]},{F:"div",W:[{F:"div",qa:"Buffer Health"},{F:"span",W:[{F:"span",qa:"{{buffer_health_chart}}"},{F:"span",qa:"{{buffer_health_seconds}}"}]}]},{F:"div",X:{style:"{{live_latency_style}}"},W:[{F:"div",qa:"Live Latency"},{F:"span",W:[{F:"span",qa:"{{live_latency_chart}}"},
{F:"span",qa:"{{live_latency_secs}}"}]}]},{F:"div",X:{style:"{{live_mode_style}}"},W:[{F:"div",qa:"Live Mode"},{F:"span",qa:"{{live_mode}}"}]},{F:"div",X:{style:"{{playback_categories_style}}"},W:[{F:"div",qa:"Playback Categories"},{F:"span",qa:"{{playback_categories}}"}]},{F:"div",W:[{F:"div",qa:"Mystery Text"},{F:"span",qa:"{{debug_info}}"}]},{F:"div",X:{style:"{{extra_debug_info_style}}"},W:[{F:"div",qa:""},{F:"span",W:[{F:"span",qa:"{{extra_debug_info}}"}]}]},{F:"div",W:[{F:"div",qa:"Date"},{F:"span",
qa:"{{date}}"}]},{F:"div",X:{style:"{{cotn_and_local_media_style}}"},W:[{F:"div",qa:"COTN / Local Media"},{F:"span",qa:"{{cotn_and_local_media}}"}]},{F:"div",X:{style:"{{release_style}}"},W:[{F:"div",qa:"Player Release"},{F:"span",qa:"{{release_name}}"}]}]}]});b?(b=this.Da("html5-video-info-panel-close"),this.S(b,"click",this.hide)):this.S(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 bV(300,1,150,b,c);g.L(this,this.j);this.updateValue("bandwidth_chart",this.j);this.B=new bV(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.L(this,this.B);this.updateValue("live_latency_chart",this.B);this.u=new bV(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.L(this,this.u);this.updateValue("buffer_health_chart",this.u);this.C=new bV(300,1,150,d,c);g.L(this,this.C);this.updateValue("network_activity_chart",
this.C);this.delay=new g.ho(this.La,500,this);g.L(this,this.delay);this.Ua=a};
eV=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
LNa=function(a,b){var c=Math.min(2.5,FG(a.schedule));a=fV(a);return b-c*a};
gV=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Qi&&(d=Math.abs(d));d/=a.playbackRate;var f=1/HG(a.schedule);c=Math.max(.9*(d-3),FG(a.schedule)+2048*f)/f*a.policy.Mm/(b+c);if(!a.policy.We||d)c=Math.min(c,d);a.policy.Sf&&e&&(c=Math.max(c,a.policy.Sf));return MNa(a,c,b)};
MNa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Lm*c),Math.min(Math.min(a.policy.ya,31*c),Math.ceil(b*c))))||65536};
fV=function(a){return HG(a.schedule,!a.policy.al,a.policy.Km)};
hV=function(a){return fV(a)/a.playbackRate};
iV=function(a,b,c,d,e){this.Ia=a;this.j=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.u=0;this.D=!1;this.B=this.j.isManifestless&&!this.j.He;this.C=null};
NNa=function(a,b){var c=a.j.index,d=a.u.Na;lE(c,d)||b&&b.Na===d?(a.D=!lE(c,d),a.T=!lE(c,d)):(a.D=!0,a.T=!0)};
PNa=function(a,b,c){if(!a.j.Xf())return 0===b||a.B.length&&a.B[0]instanceof jV||kV(a),b;var d=lV(a,b);if(!isNaN(d))return d;a.uj();return c&&(c=gF(c.Bg(),b),!isNaN(c))?(mV(a,c+ONa),b):mV(a,b)};
TNa=function(a,b,c,d){if(a.Tg()&&a.u){var e=QNa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.B=!0;g.uh(function(){a.Ia.va("seekreason",{reason:"behindMinSq",tgt:e});RNa(a,e)});
return}}c?a.videoTrack.T=!1:a.audioTrack.T=!1;var f=a.policy.At||!a.B;0<=lV(a.videoTrack,a.u)&&0<=lV(a.audioTrack,a.u)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Ia.va("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.uh(function(){if(a.B||!a.policy.Vb)SNa(a);else{var h=b.startTime,l=b.duration,m=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,n=!a.videoTrack.T&&!a.audioTrack.T;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.u>=h&&a.u<h+l+.1?((c?a.videoTrack:a.audioTrack).D=
!1,a.videoTrack.D||a.audioTrack.D||(a.Ia.va("iterativeSeeking",{status:"done",count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Ia.va("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.u,actual:h,duration:l,isVideo:c}),a.seek(a.u)):(a.Ia.va("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.u,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ia.xa.seekTo(h+.1,{kt:!0,qe:"chunkSelectorSynchronizeMedia",Wp:!0})))}})};
QNa=function(a,b,c){if(!a.Tg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Jh(a.u);return(lE(c,a.j.De)||b.Na===a.j.De)&&d<a.j.De?a.j.Td():-1};
RNa=function(a,b){a.B&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.B=!1,a.u=b,a.Ia.xa.seekTo(b+.1,{kt:!0,qe:"chunkSelectorSynchronize",Wp:!0}))};
SNa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&nV(a.videoTrack),c=!c&&nV(a.audioTrack),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=nV(c).info.Na,-1!==b.I){var d=Math.max(b.j.index.getStartTime(b.I),c.j.index.getStartTime(c.I));EF(a.j)&&432E3<Math.abs(d-EF(a.j))&&dAa(a.j);g.uh(function(){RNa(a,d)});
a.Ia.va("initManifestlessSync",{st:d,a:a.audioTrack.I,v:a.videoTrack.I});a.C&&(a.C.resolve(d+.1),a.C=null)}};
UNa=function(a){this.j=a;this.T=this.Ba=this.I=this.ya=this.B=this.C=this.J=this.Aa=this.ea=this.oa=this.Z=0;this.ticks={}};
VNa=function(a){a.Z||(a.Z=(0,g.Q)(),sP("mb_s",a.Z,a.j))};
oV=function(a,b,c,d,e,f){g.Mz.call(this);this.Ia=a;this.Aa=b;this.policy=c;this.T=d;this.Ka=e;this.oa=this.j=null;this.C=this.B=NaN;this.I=0;this.Z=NaN;this.D=null;this.ya=new Map;this.ea="";this.Ba=0;this.J=NaN;this.u=f?1:0};
pV=function(a,b,c){b.startSecs+=isNaN(a.I)?0:a.I;a=a.Aa;a.J.push(b);a.ma("cuepointsadded",c)};
XNa=function(a,b,c){if(0!==a.u&&c&&b.Za[0].isVideo())if(b.Za[0].Na>a.C&&(a.C=NaN,a.B=NaN),a.j&&a.j.Na===b.Za[0].Na){var d=a.j,e=d.nf,f=c.xr(e);a.va("sdai",{onqevt:e.event,sq:b.Za[0].Na,gab:f});a.policy.Xa?f?"predictStart"!==e.event?WNa(a,b,d,c):(a.J=b.Za[0].Na+Math.max(Math.ceil(-e.j/5E3),1),a.va("sdai",{onpred:b.Za[0].Na,est:a.J}),a.Z=Date.now(),qV(a,3,"predict"),c.vD(d.nf)):1===a.u&&qV(a,5,"nogab"):f&&"predictStart"!==e.event?WNa(a,b,d,c):qV(a,5,"nogab")}else 1===a.u&&qV(a,5,"noad")};
WNa=function(a,b,c,d){c.Uz?qV(a,4,"cue"):(a.C=b.Za[0].Na,a.B=b.Za[0].C,a.va("sdai",{joinad:a.u,sg:a.C,st:a.B.toFixed(3)}),a.Z=Date.now(),qV(a,2,"join"),d.vD(c.nf))};
YNa=function(a,b,c){return(0>c||c===a.C)&&!isNaN(a.B)?a.B:b};
ZNa=function(a,b){if(a.j){var c=a.j.nf.durationSecs-(b.startTime+a.I-a.j.nf.startSecs);0>=c||(c=new VA(a.j.nf.startSecs-(isNaN(a.I)?0:a.I),c,a.j.nf.context,a.j.nf.identifier,"stop",a.j.nf.j+1E3*b.duration),a.va("cuepointdiscontinuity",{segNum:b.Na}),pV(a,c,b.Na))}};
qV=function(a,b,c){a.u!==b&&(a.va("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
rV=function(a,b,c,d){(void 0===d?0:d)?qV(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&qV(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
sV=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
$Na=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Ia=a;this.Aa=b;this.policy=c;this.D=d;this.I=e;this.kb=f;this.logger=new g.MU("dash/abr");this.B=FI;this.j=this.J=null;this.Z=-1;this.Oa=!1;this.nextVideo=this.u=null;this.C=[];this.Ka={};this.videoIndex=0;this.Xa=this.ea=this.T=!1;this.Ba=0;this.Wa=new Set;this.ib=!1;this.ya=new Map;this.Sa=0;this.qb=!1;this.Ma=null};
eOa=function(a,b,c){tV(a,b);aOa(a,c);a.J=a.u;bOa(a);cOa(a);a.j=a.nextVideo;a.J=a.u;return dOa(a)};
gOa=function(a,b){if(fOa(a,b))return null;if("m"===b.reason&&b.isLocked())return tV(a,b),a.videoIndex=a.C.length-1,uV(a),vV(a),a.ea=a.ea||a.j!==a.nextVideo,a.j=a.nextVideo,new sV(a.u,a.j,b.reason);"r"===b.reason&&(a.Z=-1);tV(a,b);vV(a);if("r"===b.reason&&a.nextVideo===a.j)return new sV(a.u,a.nextVideo,b.reason);a.j&&a.nextVideo&&wV(a,a.j.info)<wV(a,a.nextVideo.info)&&(b=a.B.reason,a.T=a.T||"r"===b||"u"===b||"v"===b);return null};
xV=function(a,b,c){a.Sa+=1;if(void 0===c?0:c)a.qb=!0;c=6E4*Math.pow(2,a.Sa);a.ya.set(b.info.id,(0,g.Q)()+c);a.Z=-1;tV(a,a.B)};
yV=function(a){if(a.ya.size){for(var b=(0,g.Q)(),c=g.t(a.ya.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ya.clear()}return!1};
zV=function(a,b){return new sV(a.J,a.j,b||a.B.reason)};
AV=function(a){return a.B.isLocked()};
dOa=function(a){a.Oa?a.Oa=!1:a.Z=(0,g.Q)();a.T=!1;return new sV(a.J,a.j,a.B.reason)};
hOa=function(a,b){var c={};b=g.t(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&PE(f)&&f.video.j>a.policy.ea,l=e<=a.policy.ea?PE(d):wC(d);if(!f||h||l)c[e]=d}return c};
tV=function(a,b){a.B=b;var c=a.I.videoInfos;if(!AV(a)){var d=(0,g.Q)();c=g.Dm(c,function(q){if(q.Tb>this.policy.Tb)return!1;var r=this.D.j[q.id],w=r.info.Ib;return this.policy.ix&&this.Wa.has(w)||this.ya.get(q.id)>d||4<r.u.u||4<r.J?!1:!0},a);
a.qb&&yV(a)&&(c=g.Dm(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}c.length||(c=a.I.videoInfos);
var e=g.Dm(c,b.C,b);if(AV(a)&&a.oa){var f=g.Qb(c,function(q){return q.id===a.oa});
f?e=[f]:delete a.oa}f="m"===b.reason||"s"===b.reason;a.policy.Qx&&aV&&g.qw&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.j||q.j.powerEfficient)}));
if(0<e.length)if(mF()){var h=hOa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.Ib===h[q.video.j].Ib})}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=hOa(a,b)[n].Ib;e=e.filter(function(q){return!!q&&!!q.video&&q.Ib===p})}}e.length||(e=[c[0]]);
e.sort(function(q,r){return wV(a,q)-wV(a,r)});
c={};for(b=1;b<e.length;c={EB:c.EB,DB:c.DB},b++)c.DB=e[b-1],c.EB=e[b],c.DB.video.width>c.EB.video.width?(g.Vb(e,b),b--):wV(a,c.DB)*a.policy.B>wV(a,c.EB)&&(g.Vb(e,b-1),b--);c=e[e.length-1];a.ib=!!a.j&&!!a.j.info&&a.j.info.Ib!==c.Ib;a.C=e;uJa(a.policy,c)};
aOa=function(a,b){b?a.u=a.D.j[b]:(b=g.Qb(a.I.j,function(c){return!!c.Mc&&c.Mc.isDefault}),a.policy.Gm&&!b&&(b=g.Qb(a.I.j,function(c){return c.audio.j})),b=b||a.I.j[0],a.u=a.D.j[b.id]);
uV(a)};
iOa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=hV(a.Aa)/a.policy.B;return wV(a,b.info)+wV(a,a.C[c])>d};
uV=function(a){if(!a.u||!a.policy.u&&!a.u.info.Mc){var b=a.I.j;a.u&&a.policy.Gm&&(b=b.filter(function(d){return d.audio.j===a.u.info.audio.j}),b.length||(b=a.I.j));
a.u=a.D.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Mb?!0:a.B.isLocked()?240>a.B.j:iOa(a,a.u))a.u=a.D.j[g.Nb(b).id]}}};
vV=function(a){a.policy.Kg&&(a.Ma=a.Ma||new g.ho(function(){a.policy.Kg&&a.j&&!yV(a)&&1===Math.floor(10*Math.random())?(xV(a,a.j),a.T=!0):a.Ma.start()},6E4),g.io(a.Ma));
if(!a.nextVideo||!a.policy.u)if(AV(a))a.nextVideo=360>=a.B.j?a.D.j[a.C[0].id]:a.D.j[g.Nb(a.C).id];else{for(var b=Math.min(a.videoIndex,a.C.length-1),c=hV(a.Aa),d=wV(a,a.u.info),e=c/a.policy.D-d;0<b&&!(wV(a,a.C[b])<=e);b--);for(var f=c/a.policy.B-d;b<a.C.length-1&&!(wV(a,a.C[b+1])>=f);b++);a.nextVideo=a.D.j[a.C[b].id];a.videoIndex!==b&&a.logger.info(function(){var h=a.B;return"Adapt to: "+xza(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+
f.toFixed(0)+", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))});
a.videoIndex=b}};
bOa=function(a){var b=a.policy.D,c=hV(a.Aa),d=c/b-wV(a,a.u.info);b=g.Rb(a.C,function(e){return wV(this,e)<d},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.D.j[a.C[b].id];a.logger.info(function(){return"Initial selected fmt: "+xza(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
cOa=function(a){if(a.kb.length){var b=a.kb,c=function(d,e){if("f"===d.info.Ib||b.includes(OD(d,a.D.Ud,a.Ia.Wf(),a.policy.Ac)))return d;for(var f={},h=0;h<e.length;f={HB:f.HB,MB:f.MB},h++){var l=a.D.j[e[h].id],m=OD(l,a.D.Ud,a.Ia.Wf(),a.policy.Ac);if(b.includes(m)){m=d.info.Ib;var n=l.info.Ib;if(m===n||mF()){if(d.info.u!==l.info.u)return a.Ia.va("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.HB=d.info.itag;f.MB=l.info.itag;a.Ia.va("ombifa",{f:f.HB,t:f.MB});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.HB+" to "+p.MB+" based on prefetched media."}}(f));
a.Oa=!0;return l}a.Ia.va("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Ia.va("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.I.videoInfos);a.u=c(a.u,a.I.j)}};
wV=function(a,b){if(!a.Ka[b.id]){var c=a.D.j[b.id].index.fQ(a.Ba,15);c=b.Ds&&a.j&&a.j.index.isLoaded()?c||b.Ds:c||b.Tb;a.Ka[b.id]=c}c=a.Ka[b.id];a.policy.Mg&&b.video&&b.video.j>a.policy.Mg&&(c*=1.5);return c};
jOa=function(a,b){a=Jca(a.D.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
kOa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Nza(a.D)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.C.length;c++)b.push(a.C[c].itag);b.reverse()}return b};
fOa=function(a,b){var c;return a.B.equals(b)&&(!a.oa||!AV(a)||(null==(c=a.nextVideo)?void 0:c.info.id)===a.oa)};
lOa=function(a){this.u=a;this.Eo=[];this.j=-1};
mOa=function(a,b,c){var d=ND(c.info.j);var e=c.info.Na+(c.info.j.Iw()?0:1);var f=1E3*c.info.startTime,h=0<=b?a[b]:null;if(h){var l,m;var n=(null==(l=h.formatId)?void 0:l.itag)===(null==d?void 0:d.itag)&&(null==(m=h.formatId)?void 0:m.xtags)===(null==d?void 0:d.xtags);l=h.fI===e||h.fI+1===e;m=100>Math.abs(h.startTimeMs+h.durationMs-f);n=!(n&&l&&m)}else n=1;n&&(h={formatId:d,startTimeMs:f,durationMs:0,g4:e},b+=1,a.splice(b,0,h));h.durationMs+=1E3*c.info.I;h.fI=e;return b};
nOa=function(a){var b=[];a.Eo.forEach(function(e){b.push(Object.assign({},e))});
var c=a.j;a=g.t(a.u.u);for(var d=a.next();!d.done;d=a.next())c=mOa(b,c,d.value);return b};
oOa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
qCa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=BV.Nr("woe");d=new g.qG(a.u);return g.x(f,d.encrypt(b,a.j),2)}e=f.u;BV.rq(c,Math.ceil(b.byteLength/16));return f.return(e)})};
wCa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=BV.Nr("wod");d=new g.qG(a.u);return g.x(f,d.decrypt(b,a.j),2)}e=f.u;BV.rq(c,Math.ceil(b.byteLength/16));return f.return(e)})};
CV=function(a,b,c){this.policy=a;this.j=b;this.Aa=c;this.B=this.u=0;this.df=null;this.ea=new Set;this.Z=[];this.indexRange=this.initRange=null;this.T=new LG;this.oa=this.ya=!1;a:{if(this.policy.ke&&this.policy.Kx){b={};c=g.t(this.policy.ke);for(var d=c.next();!d.done;b={FB:b.FB,GB:b.GB},d=c.next())if(d=g.Iu(d.value),b.FB=+d.clen,b.GB=+d.csz,0<b.FB&&0<b.GB&&this.policy.u===d.docid&&this.j.info.id===d.fmtid&&this.j.info.lastModified===+d.lmt){c={};b=(c.clen=b.FB,c.csz=b.GB,c.ck=d.ck,c.civ=d.civ,c);
break a}}b=void 0}b?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.J=b.ck,this.I=b.civ):(this.chunkSize=a.Ex,this.C=0,this.J=g.gA(16),this.I=g.gA(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.I&&(this.crypto=new oOa(this.J,this.I))};
DV=function(a){return!!a.df&&UD(a.df)};
rOa=function(a,b){if(!DV(a)&&!a.isDisposed()){if(!(a.ya||(a.ya=!0,0<a.C))){var c=EV(a);c=wI(a.policy.u,a.j.info,FV(a),c,a.policy.Ba);GV(a,c)}if(1===b.info.type){if(a.df){HV(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=RD(0,b.j.totalLength)}else if(2===b.info.type)a.df&&1===a.df.type||HV(a,Error("Woffle: Index before init")),a.indexRange=RD(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.df){HV(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.df.type&&!XD(a.df,b.info)&&(a.Z=[],b.info.Na!==YD(a.df)||0!==b.info.Kb))return;if(b.info.Pe){c=g.t(a.Z);for(var d=c.next();!d.done;d=c.next())pOa(a,d.value);a.Z=[]}else{a.Z.push(b);a.df=b.info;return}}else{HV(a,Error("Woffle: Unexpected slice type"));return}a.df=b.info;pOa(a,b);qOa(a)}};
pOa=function(a,b){var c=0,d=LC(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.Kb;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.Zx=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.Zx);a.D.set(f,a.u);a.u+=e.Zx;c+=e.Zx;if(a.u===a.D.length){if(b.info===a.df&&DV(a)&&c===d.length)break;f=EV(a);f=wI(a.policy.u,a.j.info,FV(a),f,a.policy.Ba,a.B,a.D,a.crypto);a.ea.add(f);GV(a,
f);a.isDisposed()||(f=EV(a),a.Aa(FV(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={Zx:e.Zx}}};
qOa=function(a){if(DV(a))if(a.df&&a.indexRange)if(a.u){var b=new Uint8Array(a.D.buffer,0,a.u),c=sOa(a),d=a.policy.u;Promise.all(a.ea).then(function(){var e=wI(d,a.df.j.info,FV(a,!0),c,a.policy.Ba,a.B,b,a.crypto);GV(a,e,!0)})}else HV(a,new IV("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else HV(a,new IV("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
EV=function(a){return{downloadedEndTime:Math.round(a.df?a.df.B:0),maxKnownEndTime:Math.round(a.j.index.Eq()),averageByteRate:Math.round(a.j.info.Ds)}};
sOa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Eq()),averageByteRate:Math.round(a.j.info.Ds)}};
FV=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.df||HV(a,new IV("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));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.J,b.civ=a.I);var c="local://localhost/videoplayback?"+Fu(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Tb,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:Kya(d),indexRange:null==(e=a.indexRange)?void 0:Kya(e),url:c};if(d=a.j.info.u)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};
GV=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.ea.delete(b);(c||4===d)&&a.T.resolve(d)},function(d){a.T.reject(d)})};
HV=function(a,b){4!==g.sI(a.policy.u)&&(g.tI(a.policy.u,4),g.aA(b),a.T.reject(new IV(b.message)))};
IV=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
tOa=function(a){a=g.pD(a,1886614376);for(var b=g.t(a),c=b.next();!c.done;c=b.next());return g.Vd(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
uOa=function(a){var b=Sk(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
vOa=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e;this.Iy=f};
JV=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.u=[];this.me=!1;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.me=!0};
xOa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{b:{var m=void 0,n=b.subarray(c+f,c+f+l);f=wOa;if(KV.length){var p=KV.pop();Pba(p);p.j.init(n,void 0,void 0,void 0);m=p}else m=new me(n);try{var q=Fe(f);var r=eca(new q.Ns,m,q);break b}finally{m.free()}r=void 0}m=r;if(null!==m){var w=m;break a}}catch(y){}}c+=
e}w=null}catch(y){w=null}}if(null!=w)for(b=g.od(w,7),null==b||a.me||(a.cryptoPeriodIndex=b),b=g.od(w,10),null!=b&&0<b&&!a.me&&(a.j=b),w=g.t(g.yd(w,2,vba)),b=w.next();!b.done;b=w.next())a.u.push(g.Bc(Lc(b.value),4))};
yOa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Bc(a.initData):""+a.cryptoPeriodIndex};
LV=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.OA?void 0:d.OA;d=void 0===d.DD?!1:d.DD;this.videoId=a;this.status=b;this.videoDuration=c;this.OA=e;this.DD=d};
zOa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.j=e};
MV=function(a){this.j=a;this.offset=0};
NV=function(a){if(a.offset>=a.j.totalLength)throw Error();return MC(a.j,a.offset++)};
AOa=function(a,b){b=void 0===b?!1:b;var c=NV(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=NV(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+NV(a),d*=128;return b?c:c-d};
BOa=function(a,b,c){var d=this;this.Ia=a;this.policy=b;this.I=c;this.logger=new g.MU("dash");this.u=[];this.j=null;this.ya=-1;this.Z=0;this.Ba=NaN;this.ea=0;this.B=NaN;this.T=this.Ma=0;this.Wa=-1;this.Ka=this.C=this.D=this.Aa=null;this.Xa=this.Sa=NaN;this.J=this.oa=this.Oa=this.ib=null;this.kb=!1;this.timestampOffset=0;if(this.policy.u){var e=this.I,f=this.policy.u;this.policy.Ba&&a.va("atv",{ap:this.policy.Ba});this.J=new CV(this.policy,e,function(h,l,m){OV(a,new LV(d.policy.u,2,{OA:new zOa(f,h,
e.info,l,m)}))});
this.J.T.promise.then(function(h){d.J=null;1===h?OV(a,new LV(d.policy.u,h)):d.Ia.va("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof IV&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Ia.va("offlinenwerr",{em:l}),PV(d),OV(a,new LV(d.policy.u,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Ia.va("dldbwerr",{em:l}),PV(d),OV(a,new LV(d.policy.u,4,{DD:!0})))})}};
COa=function(a){return a.u.length?a.u[0]:null};
QV=function(a){return a.u.length?a.u[a.u.length-1]:null};
GOa=function(a,b,c,d){d=void 0===d?0:d;if(a.C){var e=a.C.Kb+a.C.u;if(0<c.info.Kb)if(c.info.Na===a.C.Na&&c.info.Kb<e){if(c.info.Kb+c.info.u<=e)return;c=jza(c,e-c.info.Kb)[1]}else if(0<=c.info.Na&&0<=a.C.Na&&!XD(a.C,c.info))throw new g.Yv("improper_continuation",$D(a.C),$D(c.info));e=a.C;var f=c.info;(e.Na!==f.Na&&f.Na!==e.Na+1||e.type!==f.type?0:XD(e,f)||(Dg(e.C,f.C)&&e.Na===f.Na?0:Nya(e,f)))||RV(a,"d")}else if(0<c.info.Kb)throw new g.Yv("continuation_of_null",$D(c.info));a.C=c.info;a.I=c.info.j;if(0===
c.info.Kb){if(a.j)if(a.policy.Nk)a.Ia.va("slice_not_fully_processed",{buffered:$D(a.j.info),push:$D(c.info)});else throw new g.Yv("slice_not_fully_processed",$D(a.j.info),$D(c.info));SV(a);a.Ma=d}else{if(a.policy.Qt&&a.Ma&&d&&a.Ma!==d)throw a=new g.Yv("lmt_mismatch",c.info.Na,a.Ma,d),a.level="WARNING",a;!c.info.j.Ql()&&a.D&&(d=c.info,e=a.D.j,d.D="updateWithEmsg",d.Na=e)}if(a.j){d=kza(a.j,c);if(!d)throw new g.Yv("failed_to_merge",$D(a.j.info),$D(c.info));a.j=d}else a.j=c;a:{c=g.AE(a.j.info.j.info);
if(3!==a.j.info.type){if(!a.j.info.Pe)break a;6===a.j.info.type?DOa(a,b,a.j):TV(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.ya&&0===a.Z){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=hya(h,l),n=hya(h,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){e=l;break}}0>e&&(f=-1)}else{h=new MV(h);for(m=l=!1;;){n=h.Oo();var p=h;try{var q=AOa(p,!0),r=AOa(p,!1);var w=q;var y=r}catch(B){y=w=-1}p=w;var z=y;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=z&&(e=h.Oo()+
z,m=!0);else{if(l&&(160===p||163===p)&&(0>f&&(f=n),m))break;163===p&&(f=Math.max(0,f),e=h.Oo()+z);if(160===p){0>f&&(e=f=h.Oo()+z);break}h.skip(z)}}0>f&&(e=-1)}if(0>f)break;a.ya=f;a.Z=e-f}if(a.ya>d)break;a.ya?(d=EOa(a,a.ya),d.C&&FOa(a,d),DOa(a,b,d),UV(a,d),a.ya=0):a.Z&&(d=EOa(a,0>a.Z?Infinity:a.Z),a.Z-=d.j.totalLength,UV(a,d))}}a.j&&a.j.info.Pe&&(UV(a,a.j),a.j=null)};
TV=function(a,b){!b.info.j.Ql()&&0===b.info.Kb&&(g.AE(b.info.j.info)||b.info.j.info.me())&&rza(b);if(1===b.info.type)try{FOa(a,b),HOa(a,b)}catch(d){g.$z(d);var c=ZD(b.info);c.hms="1";a.Ia.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.XI(b);a.J&&rOa(a.J,b);c.Xf()&&a.policy.yb&&(a=a.Ia.Nb,a.Ka.push(ND(c,a.Ud)))};
PV=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
IOa=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};
EOa=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=jza(c,b);a.j=c[1];return c[0]};
FOa=function(a,b){var c=zE(b);if(OE(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new qD(c);sD(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;wC(d)&&!OE(d)&&(d=zE(b),(new qD(d)).Pl(),wD([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.AE(d.info)?d.B=sya(c):d.info.me()&&(d.B=yya(c))));b.info.j.info.me()&&
b.info.isVideo()&&(c=zE(b),(new qD(c)).Pl(),wD([408125543,374648427,174,224],30320,c)&&wD([408125543,374648427,174,224],21432,c));if(a.policy.wv&&b.info.j.info.me()){c=zE(b);var e=new qD(c);if(sD(e,[408125543,374648427,174,29637])){d=vD(e,!0);e=e.start+e.pos;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Ol()&&g.AE(b.info.j.info)){d=zE(b);c=g.gD(d,0,1701606260);f=g.gD(d,0,1836476516);if(c&&f){c.skip(2);var h=XC(c),l=ZC(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push($C(c)),
e.push($C(c)),m.push(XC(c)),n.push(XC(c));else for(h=0;h<l;++h)d.push(YC(c)),e.push(YC(c)),m.push(XC(c)),n.push(XC(c));c=g.hD(f);c=new pya(e[0]/c,d[0]/c)}else c=null;if(c){if(g.AE(b.info.j.info))for(d=zE(b),e=g.gD(d,0,1701082227);e;)e.markAsSkip(),e=g.gD(d,e.offset+e.size,1701082227);a.kb=!0;b.info.j.C=c}}b.info.j.Ql()||b.info.j.j||b.info.j.indexRange||sza(b)};
DOa=function(a,b,c){if(c.info.j.Ql()){if(a.kb&&JOa(c)&&(b=zE(c),b=g.gD(b,0,1953658222))){b.skip(1);var d=WC(b)<<16|XC(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=ZC(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=ZC(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Aa&&!!a.Aa.I.C)if(b=c.info.isVideo())b=pza(c),h=a.Aa,VV?(l=1/b,b=WV(a,b)>=WV(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&JOa(c)&&(b=a.Aa,VV?(l=pza(c),h=1/l,l=WV(a,l),b=WV(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,rya(zE(c),b))}else{h=!1;a.D||(rza(c),c.u&&(a.D=c.u,h=!0,f=c.info,d=c.u.j,f.D="updateWithEmsg",f.Na=d,f=c.u,f.C&&(a.I.index.u=!f.C),f=c.info.j.info,d=zE(c),g.AE(f)?oD(d,1701671783):f.me()&&wD([408125543],307544935,d)));a:if((f=BE(c,a.policy.kb))&&qza(c))l=a.policy.Nm?KOa(a,c):0,a.T+=l,f-=l,a.ea+=f,a.B=a.policy.wl?a.B+f:NaN;else{if(a.policy.Om){if(d=m=a.Ia.Wp(lza(c),1),0<=a.B&&6!==c.info.type){if(a.policy.wl&&isNaN(a.Sa)){g.aA(new g.Yv("Missing duration while processing previous chunk",
$D(c.info)));RV(a,"m");break a}var n=m-a.B,p=n-a.T,q=c.info.Na,r=a.Ka?a.Ka.Na:-1,w=a.Xa,y=a.Sa,z=a.policy.ll&&n>a.policy.ll,B=a.policy.jl&&Math.abs(p)>a.policy.jl,D=a.policy.Pm?p<a.policy.Pm:!1;if(1E-4<Math.abs(p)){var G=null==(e=a.D)?void 0:eD(e);e={audio:""+ +a.Ol(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:w,lastSliceDuration:y,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+z||B)};if(null==G?0:G.length)e.adCpn=G[0];a.Ia.handleError("qoe.avsync",e);
a.Wa=q}z||B||D||(d=a.B);e=KOa(a,c,m);f-=e;a.T=n+e;a.policy.I&&(p&&!D||e)&&(n=null==(l=a.D)?void 0:eD(l),a.Ia.va("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Na,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.B)?c.info.startTime:a.B;mza(c,d)?(isNaN(a.Ba)&&(a.Ba=d),a.ea+=f,a.B=d+f):(l=ZD(c.info),l.smst="1",a.Ia.handleError("fmt.unparseable",
l||{},1))}a.Ka=c.info;a.Sa=oza(c);0<=c.D&&(a.Xa=c.D);if(h&&a.D){h=LOa(a,!0);aE(c.info,h);a.j&&aE(a.j.info,h);b=g.t(b);for(l=b.next();!l.done;l=b.next())aE(l.value,h);(c.info.Pe||a.j&&a.j.info.Pe)&&6!==c.info.type||(a.oa=h,b=a.Ia,b.Nb.isManifestless&&MOa(b,h,null,!!a.I.info.video),a.policy.Od||NOa(a))}}HOa(a,c);a.timestampOffset&&nza(c,a.timestampOffset)};
UV=function(a,b){if(b.info.Pe){a.ib=b.info;if(a.D){var c=a.D,d=LOa(a,!1),e=null;if(a.D.Uz()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=eD(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.t(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.t(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.t(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 vOa(e,f,h,l,g.nya(c),g.oya(c))}a.Ia.yK(a.I,d,e);a.oa||a.policy.Od||NOa(a);a.oa=null}SV(a)}a.J&&rOa(a.J,b);if(c=QV(a))if(c=kza(c,b,a.policy.xt)){a.u.pop();a.u.push(c);return}a.u.push(b)};
SV=function(a){a.j=null;a.ya=-1;a.Z=0;a.D=null;a.Ba=NaN;a.ea=0;a.oa=null};
RV=function(a,b){b={rst4disc:b,cd:a.T.toFixed(3),sq:a.Ka?a.Ka.Na:-1};a.B=NaN;a.T=0;a.Wa=-1;a.Ka=null;a.Xa=NaN;a.Sa=NaN;a.Oa=null;a.Ia.va("mdstm",b)};
HOa=function(a,b){if(a.I.info.Gd){if(b.info.j.info.me()){var c=new qD(zE(b));if(sD(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=vD(c,!0);c=16!==d?null:AD(c,d)}else c=null;d="webm"}else b.info.J=tOa(zE(b)),c=uOa(b.info.J),d="cenc";c&&c.length&&(c=new JV(c,d),c.me=b.info.j.info.me(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Ia.Vw(c))}};
NOa=function(a){var b=a.D,c=lya(b);c&&(c.startSecs+=a.Ba,a.Ia.xK(a.I,c,b.j,b.Uz()))};
LOa=function(a,b){var c,d=a.D;if(c=lya(d))c.startSecs+=a.Ba;return new EC(d.j,a.Ba,b?d.ij:a.ea,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
KOa=function(a,b,c){var d=0;if(b.info.j.info.me()&&(!a.policy.Nm||!qza(b)))return 0;if(a.Aa&&!a.Ol()){var e=0;c&&g.AE(b.info.j.info)?e=c-a.B:b.info.j.info.me()&&(e=a.T);var f=b.info.Na;c=BE(b,a.policy.kb);var h=a.Aa;var l=h.Wa;h=h.T;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.AE(b.info.j.info))rya(zE(b),d);else if(b.info.j.info.me()&&(f=e-h,!g.AE(b.info.j.info)&&(b.info.j.info.me(),d=new qD(zE(b)),l=b.C?d:new qD(new DataView(b.info.j.j.buffer)),
BE(b,!0)))){var n=1E3*f,p=CD(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||DD(d))if(uD(d,160))if(vD(d,!0),uD(d,155)){if(f=d.pos,m=vD(d,!0),d.pos=f,n=1E9*n/p,p=xD(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=BE(b,a.policy.kb);d=c-d}d&&b.info.j.info.me()&&a.Ia.va("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+
d,audioDrift:h})}return d};
JOa=function(a){return a.info.j.Ql()&&a.info.Na===a.info.j.index.jd()};
WV=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.I.C&&b&&(b+=a.I.C.j);return b+a.getDuration()};
OOa=function(a,b){0>b||(a.u.forEach(function(c){nza(c,b)}),a.timestampOffset=b)};
XV=function(a,b){this.info=a;this.callback=b;this.state=1;this.ax=this.zD=!1;this.Cd=null};
POa=function(a){return g.Rk(a.info.Za,function(b){return 3===b.type})};
YV=function(a,b,c){this.policy=a;this.Za=b;this.j=0;this.B=null;this.vf=[];this.C=null;(this.length=c?c:0)?1!==this.Za.length||this.Za[0].u||(this.Za[0].u=this.length):1===this.Za.length||g.Rk(this.Za,function(d){return!!d.range})};
ZV=function(a,b,c){a.policy.Pu&&a.length&&!c&&!a.u&&(a.u=new Uint8Array(a.length));if(a.u&&a.u.byteLength>=b.totalLength){var d=b,e=a.u;if(!(e.byteLength<d.totalLength)){for(var f=0,h=0;h<d.j.length;h++)e.set(d.j[h],f),f+=d.j[h].length;d.j=[e.subarray(0,f)];JC(d)}a.u=a.u.subarray(b.totalLength)}a.B&&(HC(a.B,b),b=a.B,a.B=null);e=d=!1;h=f=0;for(var l=g.t(a.Za),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.j)f+=m.u;else{if(VD(m)&&!c&&a.j+b.totalLength-h<f+m.u){a.B=b.split(h).Uj;break}var n=
3===m.type||4===m.type,p=a,q=a.j-f,r=n&&d&&!e&&1===b.j.length,w=b.totalLength-h;m.range&&(w=Math.min(m.u-q,w));q=new TD(m.type,m.j,m.range,"reslice"+m.D,m.Na,m.startTime,m.duration,m.Kb+q,w,m.range?m.Kb+q+w===m.range.length:!!c);var y=IC(b,h,w),z=void 0;if(r)for(z=new GC([]),r=0;r<p.vf.length;r++)HC(z,p.vf[r].j);p.vf.push(new yE(q,y,z));p=w;a.j+=p;h+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
QOa=function(a){return a.length-a.j+a.vf.reduce(function(b,c){return b+c.j.totalLength},0)};
jV=function(a,b,c,d,e){XV.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.hd=d;this.lastError=null;this.j=new g.ho(function(){f.isComplete()||(f.lastError="net.timeout",f.Oc(5))},this.policy.Nu);
this.pe=function(){f.isDisposed()||($V(f.hd,f.formatId)?(f.isComplete()||f.j.start(),aW(f.hd,f.formatId)&&f.lr(2),f.hd.hg(f.formatId)&&(bW(f.hd,f.formatId)?f.Oc(4):(f.lastError="net.closed",f.Oc(5)))):(f.lastError="player.exception",f.Oc(5)))};
this.j.start();this.policy.Aa||(this.Cd=new YV(this.policy,this.info.Za,this.info.B));ROa(this.hd,this.formatId,this.pe);g.uh(this.pe)};
cW=function(a,b,c){this.Ia=a;this.policy=b;this.j=c;this.logger=new g.MU("dash");this.B=[];this.u=this.vc=null;this.oa=this.ya=0;this.I=-1;this.T=!1;this.ea=-1;this.C=new BOa(a,b,c);this.policy.yb&&(this.Z=new lOa(this.C));this.Tb=c.info.Tb;this.J=c.Iw();this.isManifestless=c.Iw();this.D=this.J};
dW=function(a,b){b&&VV&&OOa(a.C,b.OI());var c;null!=(c=a.Z)&&(c.Eo=[],c.j=-1);a.vc=b};
eW=function(a){return a.vc&&a.vc.jD()};
fW=function(a,b){a.B.push(b);a.u=g.Nb(b.info.Za)};
gW=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();SOa(a,b);a.ya=b.XP()}a.B.length&&SOa(a,a.B[0])};
SOa=function(a,b){if(b.Pn()){var c=b.Tk();c=g.t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.I&&b instanceof jV&&a.Ia.va("omblss",{s:$D(d.info)}),hW(a,b.info.Za,d,b.MI())}};
hW=function(a,b,c,d){d=void 0===d?0:d;switch(c.info.type){case 1:case 2:TV(a.C,c);break;case 4:var e=c.info.j,f=e.SN(c),h;(null==(h=a.u)?0:4===h.type)&&Rya(c.info,a.u)&&(a.u=e.kx(a.u).pop());c=g.t(f);for(e=c.next();!e.done;e=c.next())hW(a,b,e.value,d);break;case 3:GOa(a.C,b,c,d);break;case 6:GOa(a.C,b,c,d),a.u=c.info}};
nV=function(a){return COa(a.C)};
TOa=function(a){var b;return(null==(b=a.Z)?void 0:nOa(b))||[]};
lV=function(a,b,c){c=void 0===c?!1:c;if(a.vc){var d=a.vc.Bg(),e=gF(d,b),f=NaN,h=eW(a);h&&(f=gF(d,h.j.index.getStartTime(h.Na)));if(e===f&&a.u&&a.u.u&&UOa(iW(a),0))return b}a=VOa(a,b,c);return 0<=a?a:NaN};
mV=function(a,b){a.j.Xf();var c=VOa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.J)if(e=e.J,e.df&&3===e.df.type)e=e.df.startTime;else if(0<e.C){var f=e.j.index;f=g.mc(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.Po(b).Za[0];jW(a)&&a.vc&&a.vc.abort();a.oa=0;return a.u.startTime};
WOa=function(a){a.J=!0;a.D=!0;a.I=-1;mV(a,Infinity)};
kW=function(a){for(var b=0,c=g.t(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.Cd&&d.Cd.length?QOa(d.Cd):Tya(d.info),b+=d;return b+=IOa(a.C)};
lW=function(a,b){b=void 0===b?!1:b;if(!a.vc)return 0;var c=eW(a);if(c&&UD(c))return c.B;c=a.Ia.getCurrentTime();if(b&&(b=QV(a.C)))return b.info.B-c;a=a.vc.Bg(!0);return Aza(a,c)};
XOa=function(a,b,c,d){kV(a);for(var e=a.C,f=null,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Na>=b&&(e.u.pop(),e.B-=BE(l,e.policy.kb),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Oa,0!==e.u.length||e.C||RV(e,"r"));e.Ia.va("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Na:-1,sq:b,lastslc:e.C?e.C.Na:-1,lastfraget:e.B.toFixed(3)});d>c?mV(a,d):a.u=a.j.Tp(b-1,!1).Za[0]};
oW=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)mW(a,b);else{for(;c<a.B.length;)mW(a,a.B.pop());var d=nW(a);d&&d.j.qt()&&Xl(b.info.Za,function(e){return Sya(e,d)})?(a.u=d,a.policy.I&&a.Ia.va("cer",{lsr:"lsp",
lsp:$D(d)})):(WD(b.info.Za[0])?(a.u=b.Cd&&b.Cd.C?Qya(b.Cd.C):Pya(b.info.Za[0]),a.policy.I&&a.Ia.va("cer",{lsr:$D(a.u),lsp:null==d?void 0:$D(d)})):(a.u=null,a.policy.I&&a.Ia.va("cer",{lsr:"null",lsp:null==d?void 0:$D(d)})),a.policy.Nk&&mW(a,b,!0))}};
jW=function(a){var b;!(b="f"===a.j.info.Ib)&&(b=a.policy.u)&&(b=a.C,b=!!b.J&&DV(b.J));if(b)return!0;b=eW(a);if(!b)return!1;var c=UD(b)&&b.Pe;return a.isManifestless&&0<a.ea?c||b.Na>=a.ea:c};
YOa=function(a){var b;return jW(a)||!(null==(b=QV(a.C))||!UD(b.info))};
iW=function(a){var b=[],c=eW(a);c&&b.push(c);b=g.dc(b,a.C.Bw());c=g.t(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.t(d.info.Za),h=f.next();!h.done;e={Gu:e.Gu},h=f.next())e.Gu=h.value,d.zD&&(b=g.Dm(b,function(l){return function(m){return!Rya(m,l.Gu)}}(e))),(WD(e.Gu)||4===e.Gu.type)&&b.push(e.Gu)}a.u&&!Mya(a.u,g.Nb(b),a.u.j.Ql())&&b.push(a.u);
return b};
UOa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Nya(a[b-1],a[b]))return!1;return!0};
VOa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=iW(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:UOa(a,c?b:0)?a[b].startTime:NaN};
pW=function(a){return!(!a.u||a.u.j===a.j)};
ZOa=function(a){return pW(a)&&a.j.Xf()&&a.u.j.info.Tb<a.j.info.Tb};
$Oa=function(a,b,c){return(a=nW(a))&&!UD(a)?a.B>b&&a.B<b+c:!1};
nW=function(a){var b=QV(a.C);return b?b.info:eW(a)};
kV=function(a){for(var b=g.t(a.B),c=b.next();!c.done;c=b.next())mW(a,c.value);a.B=[];a.u=null};
mW=function(a,b,c){c=void 0===c?!1:c;b.zD&&((void 0===c?0:c)||!b.info.Za[0].j.qt())&&(a=a.C,a.oa&&!a.policy.ul&&(c=a.Ia,c.Nb.isManifestless&&GF(c.Nb,a.oa.Na,!!a.I.info.video)),a.oa=null,a.D=null,a.C=a.ib,a.B=a.C?a.B-a.ea:NaN,SV(a));b.dispose()};
aPa=function(a){return!!a.u&&-1!==a.u.Na&&a.u.Na<a.j.index.Gl()};
bPa=function(a){var b=a.u;b&&-1===b.Na&&(a=QV(a.C))&&WD(a.info)&&(a=a.info.Na,b.D="updateLastSliceRequested",b.Na=a)};
cPa=function(a){return Xl(a.B,function(b){return b.ax})};
dPa=function(a){a=void 0===a?{}:a;var b=a.lj,c=a.Ei,d=a.jd,e=a.Ss;this.Io=a.Io;this.lj=b;this.Ei=c;this.jd=d;this.Ss=e};
ePa=function(a,b){if(0>b)return!0;var c=a.jd();return b<c||b===c&&!a.Io||b===c&&(a=a.Ss())&&b===a.Na?!0:!1};
fPa=function(a,b,c){if(!ePa(a,b))return 0;if(!a.lj||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.jd();return b<c||b===c&&(a=a.Ss())&&b===a.Na&&!a.pending?2:1};
qW=function(a,b){var c=b.fh,d=void 0===b.mz?1:b.mz,e=void 0===b.zE?d:b.zE,f=void 0===b.gq?!1:b.gq,h=void 0===b.Zo?!1:b.Zo,l=void 0===b.eI?!1:b.eI,m=b.Ij,n=b.Na;b=b.fg;this.callbacks=a;this.requestNumber=++gPa;this.j=this.now();this.ya=this.Oa=NaN;this.Ka=0;this.C=this.j;this.u=0;this.Sa=this.j;this.Aa=0;this.Wa=this.Ma=this.isActive=!1;this.B=0;this.ea=NaN;this.J=this.D=Infinity;this.T=NaN;this.Ba=!1;this.Z=NaN;this.I=void 0;this.fh=c;this.policy=this.fh.ya;this.mz=d;this.zE=e;this.gq=f;this.Zo=h;
l&&(this.I=[]);this.Ij=m;this.Na=n;this.fg=b;this.snapshot=IG(this.fh);hPa(this);iPa(this,this.j);this.ea=(this.Z-this.j)/1E3};
jPa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
rW=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.ea).toFixed(),pb:a.mz,stall:(1E3*a.B).toFixed(),hrt:(a.Oa-a.j).toFixed(),elt:(a.ya-a.j).toFixed(),elb:a.Ka};a.url&&rMa(b,a.url);return b};
vW=function(a,b,c,d){if(!a.Ma){a.Ma=!0;if(!a.Zo){sW(a,b,c);kPa(a,b,c);var e=a.yq();if(2===e&&d)tW(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.Wa&&uW(a)&&tW(a,d,c),uW(a)&&(d=a.fh,d.j.Fh(1,a.B/Math.max(c,2048)),JG(d));c=a.fh;b=(b-a.j)/1E3||.05;d=a.ea;e=a.gq;c.I.Fh(b,a.u/b);c.C=EG();e||c.u.Fh(1,b-d)}a.deactivate()}};
kPa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.yq();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&tW(a,.05,e)):tW(a,d,e),a.Wa=!0);else if(wW(a,c)){if(1===f&&(f=(b-a.j)/1E3,!lPa(a)&&!a.Zo)){var h=a.fh;h.J.Fh(1,f);JG(h)}a.ya=b;a.Ka=c;a.isActive=!0}a.Zo||cBa(a.fh,d,e);a.C=b;a.u=c};
tW=function(a,b,c){a.Zo||(b=Math.max(b,.05),a=a.fh,a.B.Fh(b,c/b),a.C=EG())};
sW=function(a,b,c){c=Math.round(c/1024);a.I&&a.I.push(xW(b-a.Sa,c-a.Aa));a.Sa=b;a.Aa=c};
mPa=function(a){return a.I?a.I.join(""):""};
wW=function(a,b){return b?a.OD()?!0:2048<=b:!1};
uW=function(a){return wW(a,a.u)};
nPa=function(a){return(a.C-a.j)/1E3};
hPa=function(a){a.T=a.j+1E3*a.snapshot.delay;a.Ba=!1};
yW=function(a,b){if(a.Ij&&void 0!==a.Na&&void 0!==a.fg){var c=Math,d=c.min,e=a.D;var f=a.Ij;var h=a.j;if(ePa(f,a.Na))f=b;else{var l=0;f.lj&&(l=.2);f=h+1E3*(f.Ei+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.J;f=a.Ij;h=a.j;l=fPa(f,a.Na,a.fg);2!==l&&(b=l?b:h+1E3*f.Ei,f.lj&&(b+=1E3*f.Ei));a.J=d.call(c,e,b);a.D<=a.j?hPa(a):(a.T=a.D,a.Ba=!0)}};
lPa=function(a){a.Ij&&yW(a,a.now());return a.Ba};
iPa=function(a,b){b=void 0===b?a.now():b;if(a.Ij){yW(a,b);if(a.oa?a.OD():a.D!==a.J){var c=a.J;if(b<c){a.Z=a.J;return}}else c=a.D;c=Math.max(c,a.T)}else c=a.T;var d=a.mz-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=uW(a)?d+b:d+Math.max(b,c);a.Z=d};
xW=function(a,b){for(var c="";4095<a;)c+=xW(4095,0),a-=4095;for(;4095<b;)c+=xW(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))};
oPa=function(a,b){if(b+1<=a.totalLength){var c=MC(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=MC(a,b++);else if(2===c)c=MC(a,b++),a=MC(a,b++),a=(c&63)+64*a;else if(3===c){c=MC(a,b++);var d=MC(a,b++);a=MC(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=MC(a,b++);d=MC(a,b++);var e=MC(a,b++);a=MC(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),KC(a,c,4)?a=eya(a).getUint32(c-a.B,!0):(d=MC(a,c+2)+256*MC(a,c+3),a=MC(a,c)+256*(MC(a,c+1)+
256*d)),b+=5;return[a,b]};
zW=function(a){this.callbacks=a;this.j=new GC};
pPa=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 GC;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.t(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.Ww()};
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.policy.j?e.j.append(f):e.u=f;e.B+=f.length;f=(0,g.Q)();10<f-e.D&&(e.callbacks.Cr(f,e.B),e.D=f)},function(){},d.body||null)};
rPa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=QD(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new GC;qPa(this).then(function(){c.callbacks.tp()},function(d){c.error=""+d||"unknown_err";
c.callbacks.tp()})};
qPa=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,w,y,z;return g.A(function(B){if(1==B.j){a.status=200;b=a.j.get("docid");c=Kg(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 oOa(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=B.j)return n<=m?g.x(B,xCa(b,c,d,n,f),5):B.Ja(0);p=B.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;r=(n+1)*e;
w=Math.max(0,h.start-q);y=Math.min(h.end+1,r)-(w+q);z=new Uint8Array(p.buffer,w,y);a.u.append(z);a.loaded+=y;a.loaded<h.length&&a.callbacks.Cr((0,g.Q)(),a.loaded);n++;return B.Ja(2)})};
tPa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.Z=d;this.status=0;this.response=void 0;this.T=this.u=0;this.I=this.J=!1;this.errorMessage="";this.oa=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.Qn=f.body.getReader(),e.isDisposed()?e.Qn.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Lt(),sPa(e));
else e.onDone()};
this.ea=function(f){var h=(0,g.Q)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.Qn=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.policy.j?e.j.append(f):e.C=f,sPa(e),f=(0,g.Q)(),10<f-e.T&&(e.T=f,e.callbacks.Cr(h,e.u))))};
this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()};
this.j=new GC;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
sPa=function(a){a.Qn.read().then(a.ea,a.onError).then(void 0,fw)};
uPa=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.t(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.Ww(f)};
a=Cu(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",Cu(function(f){d.pe(f)}),!1)};
AW=function(a,b,c,d,e){if(BC(a.Mi))return new rPa(a,c);a=a.Ge();return d?Gua()?new pPa(a,b,c,e):new tPa(a,b,c,e):new uPa(a,c,e)};
BW=function(a,b,c,d,e,f,h){g.K.call(this);this.callbacks=a;this.policy=b;this.Ke=c;this.B=d;this.timing=e;this.logger=f;this.C=h;this.lastError=null;this.u=0;this.j=new g.ho(this.I3,this.policy.Fd,this)};
vPa=function(a){a.B.J=(0,g.Q)();a=CW(a);a.u=(0,g.Q)();a.started+=1};
DW=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.Q)();if(!b.Zo){sW(b,c,1024*b.Aa);var d=(c-b.j)/1E3;if(2!==b.yq())if(uW(b)){b.B+=(c-b.C)/1E3;var e=b.fh,f=b.u;f=Math.max(f,2048);e.j.Fh(1,b.B/f);JG(e)}else lPa(b)||b.Zo||(e=b.fh,e.J.Fh(1,d),JG(e)),b.ya=c;e=b.fh;f=b.ea;var h=b.gq;e.I.Fh(d,b.u/d);e.C=EG();h||e.u.Fh(1,d-f);cBa(b.fh,(c-b.C)/1E3,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!BC(a.Ke.Mi)?(c=
CW(a),c.timedOut+=1):(c=CW(a),c.j+=1),a.timing.u||(c=a.B,d=a.Ke,e=a.policy,f=a.C,++c.u,b&&++c.D,AC(d.Mi).startsWith("redirector.")&&(c.j=c.B.clone(),delete c.C,e.ov&&delete f[AC(c.j)]))):++a.B.I;a.callbacks.Oc(5)};
wPa=function(a,b){return 400<=b.status?(a.lastError="net.badstatus",!0):b.TA()?!1:(a.lastError=204===b.status?"net.nocontent":"net.connect",!0)};
CW=function(a){return HD(a.C,AC(a.Ke.Mi))};
xPa=function(a){var b=rW(a.timing);b.shost=AC(a.Ke.Mi);return b};
zPa=function(a,b){gI(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(fI(a,112),fI(a,c<<1^c>>31));gI(a,16,b.q_);gI(a,18,b.IY);gI(a,19,b.HY);gI(a,21,b.h4);gI(a,23,b.wY);gI(a,28,b.s3);gI(a,34,b.visibility);kI(a,38,b.mediaCapabilities,yPa,3);gI(a,39,b.w4);gI(a,40,b.FP);hI(a,46,b.YY)};
APa=function(a){for(var b=[];$H(a,2);)b.push(ZH(a));return{uH:b.length?b:void 0,videoId:cI(a,3),CM:aI(a,4)}};
yPa=function(a,b){var c;if(b.BM)for(c=0;c<b.BM.length;c++)kI(a,1,b.BM[c],BPa,1);if(b.tH)for(c=0;c<b.tH.length;c++)kI(a,2,b.tH[c],CPa,1)};
CPa=function(a,b){gI(a,1,b.vY);gI(a,2,b.numChannels);gI(a,3,b.y_)};
BPa=function(a,b){gI(a,1,b.U4);gI(a,3,b.z_);gI(a,4,b.A_);gI(a,11,b.maxFramerate);gI(a,12,b.y_)};
FPa=function(a){return{m3:aI(a,1),itag:cI(a,3),LS:dCa(a,4,DPa),lmt:aI(a,5),O5a:aI(a,7),xtags:cI(a,15),F_:dCa(a,23,EPa)}};
DPa=function(a){return{iv:bI(a,5),j_:cCa(a,7)}};
EPa=function(a){return{videoId:cI(a,2)}};
HPa=function(a,b){kI(a,2,b.AC,zPa,3);kI(a,3,b.qJ,GPa,3);iI(a,4,b.onesieUstreamerConfig);iI(a,9,b.CB)};
GPa=function(a,b){iI(a,2,b.encryptedOnesieInnertubeRequest);iI(a,5,b.encryptedClientKey);iI(a,6,b.iv);iI(a,7,b.hmac);hI(a,10,b.serializeResponseAsJson);hI(a,13,b.enableAdPlacementsPreroll);hI(a,14,b.enableCompressionResponseOnly);iI(a,16,b.unencryptedOnesieInnertubeRequest)};
IPa=function(a,b){jI(a,1,b.name);jI(a,2,b.value)};
JPa=function(a,b){jI(a,1,b.url);var c;if(b.httpHeaders)for(c=0;c<b.httpHeaders.length;c++)kI(a,2,b.httpHeaders[c],IPa,3);iI(a,3,b.postBody);hI(a,4,b.proxiedByTrustedBandaid);hI(a,6,b.skipResponseEncryption)};
KPa=function(a){return{onesieProxyStatus:aI(a,1),httpStatus:aI(a,2),body:bI(a,4)}};
FW=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.JA?[]:h.JA;var l=void 0===h.mB?!1:h.mB,m=void 0===h.Fs?0:h.Fs,n=void 0===h.poToken?"":h.poToken,p=void 0===h.Mt?void 0:h.Mt;h=void 0===h.RA?"":h.RA;XV.call(this,b,e);this.policy=a;this.logger=new g.MU("dash/request");this.Sv=this.Vg=0;this.wT=!1;this.Uo=this.Cn=null;this.pU=this.oU=this.FQ=!1;this.timing=new qW(this,c);this.mB=l;this.Ke=g.eE(this.info,this.policy,d);this.Ke.set("rn",this.qD().toString());this.Ke.set("rbuf",(1E3*m).toFixed().toString());
this.mB&&this.Ke.set("smb","1");this.policy.wt&&n&&this.Ke.set("pot",n);h&&this.Ke.set("bbs",h);this.policy.useUmp&&!BC(this.Ke.Mi)&&(this.Yj=new zW(this),this.Ke.set("ump","1"),this.Ke.set("srfvp","1"));this.Kd=new BW(this,this.policy,this.Ke,this.info.j,this.timing,this.logger,d);this.JA=f||null;this.Mt=p;this.ax=LPa(this);vPa(this.Kd);a=void 0;if(this.policy.Sm||this.Yj||this.policy.Wa){a={method:"POST"};b=(0,g.EW)([120,0]);if(this.Yj||this.policy.Sm)a.body=b;this.policy.Wa&&(a.body=this.info.Ys()||
b)}try{this.xhr=AW(this.Ke,this.policy.C,this.timing,this.policy.Ma?this.policy.vv&&!isNaN(this.info.fg)&&this.info.fg>this.policy.Tx?!1:!0:!1,a),this.Kd.j.start(),g.uh(function(){})}catch(q){MPa(this,q,!0)}};
LPa=function(a){if(!(dE(a.info)&&a.info.gq()&&a.policy.Dd&&a.JA)||2<=a.info.j.u||0<KF()||!jAa())return!1;var b=a.Ke.get("aitags");if(!b)return!1;b=Kg(b).split(",");for(var c=[],d=g.t(a.JA),e=d.next();!e.done;e=d.next())e=e.value,g.Sb(b,e)&&c.push(e);if(!c.length)return!1;a.Ke.set("altitags",g.Jg(c.join(",")));return!0};
MPa=function(a,b,c){c=void 0===c?!1:c;g.$z(b);a.Kd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.uh(function(){DW(a.Kd)}):DW(a.Kd)};
NPa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.wz();c=!c||c<=a.policy.fk;return(!a.xhr.Ax()||!b||-1!==b.indexOf("text/plain"))&&c};
GW=function(a,b,c,d,e,f,h,l,m,n,p,q){g.K.call(this);this.Ia=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.C=e;this.B=f;this.timing=h;this.I=l;this.schedule=m;this.j=n;this.D=p;this.ea=q;this.oa=!1;this.RA="";this.Ij=null;this.T=0;this.fg=NaN;this.ya=!1;this.u=null;this.Z=NaN;this.J=0;this.logger=new g.MU("dash");0<this.policy.vl&&(this.RA=g.gA(this.policy.vl))};
OPa=function(a,b,c){var d=b.u?b.u.j.u:b.j.u,e=a.policy,f=a.C,h;(h=e.hv)||(h=AC(d.j)!==AC(d.B));h&&(f=HD(f,AC(d.B)),e=6E4*Math.pow(f.C,e.je),(0,g.Q)()<f.u+e||(f.u=(0,g.Q)(),f.C+=1,d.j=d.B.clone()));if(HW(a,b,c)){if(b.J)a.j.isLive?(c=a.j.De&&a.j.B?b.j.Tp(a.j.De,!1):b.j.Po(Infinity),c.fg=a.fg):c=b.j.Tp(0,!1),a.ea?0===c.fg&&(c.D=a.ea.T):c.D=a.Z;else if(d=b.u,d.j.Xf()){e=d.B-a.Ia.getCurrentTime();h=!d.range||0===d.u&&0===d.Kb?0:d.range.length-(d.Kb+d.u);f=d.j;if(pW(b)&&b.j.Xf()){var l=Math.min(15,.5*IW(a.Ia,
b,!0));l=ZOa(b)||e<=l||a.D.T}else l=!1;l&&0===h&&(a.j.isManifestless?f=b.j:(f=d.startTime+JW,d.u&&(f+=d.duration),mV(b,f),d=b.u,f=d.j));f.Ql()?(h=a.D,e=gV(a.I,f.info.Tb,c.j.info.Tb,e,0<h.C.length&&0===h.videoIndex&&a.Ia.cA),c=d,f=pW(b),d=c.j.Yu(c,e),(e=d.B)&&1<d.Za.length&&(f||d.j.u||d.Za[0].j!==c.j?d=c.j.Yu(c,d.Za[0].u):(f=d.Za[d.Za.length-1],h=f.u/e,!f.Pe&&.4>h&&(d=c.j.Yu(c,e-f.u)))),c=d):(0>d.Na&&(c=ZD(d),c.pr=""+b.B.length,a.Ia.Tg()&&(c.sk="1"),c.snss=d.D,a.Ia.va("nosq",c)),c=f.zy(d));if(a.policy.Z)for(d=
g.t(c.Za),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Ql()?(c=gV(a.I,b.j.info.Tb,c.j.info.Tb,0),c=d.j.Yu(d,c)):c=d.j.zy(d);if(a.u){h=c.Za[0].j.info.id;d=a.B;e=c.Za[0].Na;d=0>e&&!isNaN(d.C)?d.C:e;e=YNa(a.B,c.Za[0].C,d);l=b===a.audioTrack?1:2;var m=c.Za[0].j.info.Ib;f=h.split(";")[0];if(a.policy.Wa)h=a.u.Ys(e,d,h,l,m),0>d&&2===l&&rV(a.B,0,0,!0),h&&(a.Ia.va("sdai",{ssdaiinfo:"1",length:h.length,itag:f,f:m,sg:d,st:e.toFixed(3)}),c.J=h);else if(h=a.u.jn(e,d,h,l,m),0>d&&2===l&&rV(a.B,0,0,!0),
h){e={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.yv&&b.isRequestPending(d-1)){a.Ia.va("sdai",{wt_daistate_on_sg:d-1});return}a.Ia.va("sdai",e);h&&(c.u=new g.yC(h))}else h=a.B,h.policy.Xa&&5!==h.u&&a.Ia.va("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Gj&&-1!==c.Za[0].Na&&c.Za[0].Na<a.j.De&&(c=b.j.Tp(a.j.De,!1));fW(b,KW(a,c));VNa(a.timing)}};
HW=function(a,b,c){var d;var e=a.B,f=(null==(d=b.u)?void 0:d.Na)||-1;e.policy.Xa&&3===e.u&&f+1>=e.J?(e.va("sdai",{haltrq:f+1,est:e.J}),d=!1):d=2!==e.u;if(!d||!Iya(b.u?b.u.j.u:b.j.u,a.policy,a.C)||a.Ia.isSuspended&&(!dBa(a.schedule)||a.Ia.IC))return!1;if(a.policy.u&&5<=vI)return g.io(a.Ia.XD),!1;if(a.j.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Na||b.B.length>=a.policy.il||!a.policy.Ou&&0<b.B.length&&!a.policy.C.lj)return!1;if(b.J)return!a.j.isLive||!isNaN(a.fg)}if(cPa(b))return!1;if(!b.u){if(!b.j.Xf())return!1;
mV(b,a.Ia.getCurrentTime())}e=(d=a.policy.We)&&!b.B.length&&lW(b,!0)<Math.min(d,lW(c));d=b.B.length+c.B.length;(e||b.B.length&&b.B[0].ut()||c.B.length&&c.B[0].ut()||a.j.isLive)&&--d;if(d+1>=a.policy.ek)return!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Xf()&&(b.u=g.Nb(d.j.kx(d)),d=b.u);if(!UD(d)&&!d.j.Sp(d))return!1;f=a.j.He||a.j.B;if(a.j.isManifestless&&f){f=b.j.index.jd();var h=c.j.index.jd();f=Math.min(f,h);if(0<b.j.index.hD()&&0<f&&d.Na>=f)return b.ea=f,c.ea=f,!1}if(d.j.info.audio&&4===d.type)return!1;
if(ZOa(b)&&!a.policy.wc)return!0;if(UD(d)||kW(b)&&kW(b)+kW(c)>a.policy.Yc)return!1;f=!b.D&&!c.D;if(e=!e)e=d.B,e=!!(c.u&&!UD(c.u)&&c.u.B<e);h=b===a.videoTrack&&a.policy.Z;return e&&(!a.j.isManifestless||c.u&&c.u.B&&d.B)&&f&&!h||a.policy.Vb&&!b.D&&c.D?!1:WD(d)&&d.B>PPa(a,b)?(PPa(a,b),!1):(a=b.vc)&&a.isLocked()?!1:!0};
PPa=function(a,b){var c=a.B;c=c.j?c.j.nf:null;if(a.policy.Z&&c)return c.startSecs+c.durationSecs+15;b=IW(a.Ia,b,!0);!AV(a.Ia.ge)&&0<a.policy.Sa&&(c=((0,g.Q)()-a.T)/1E3,b=Math.min(b,a.policy.Sa+a.policy.Xe*c));b=a.Ia.getCurrentTime()+b;return a.policy.Fm&&(c=QPa(a)+a.policy.Fm,c<b)?(a.Ia.va("mrl",{ori:b,mod:c},!0),a.policy.Rx&&(a.T=(0,g.Q)()),c):b};
QPa=function(a){var b=a.Ia.El().filter(function(d){return"ad"===d.namespace});
b=g.t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.Ia.getCurrentTime())return c.start/1E3;return Infinity};
LW=function(a,b,c){a:if(b=b.info,b.u)c=null;else{var d=b.Za[0];if(b.range)var e=RD(b.range.start,Math.min(4096,b.B));else{if(b.C&&0<=b.C.indexOf("/range/")||"1"===b.j.B.get("defrag")||"1"===b.j.B.get("otf")){c=null;break a}e=RD(0,4096)}e=new bE([new TD(5,d.j,e,"createProbeRequestInfo"+d.D,d.Na)],b.C);e.I=c;e.u=b.u;c=e}c&&KW(a,c)};
KW=function(a,b){RPa(a.Ia,b);var c=Tya(b);c={fh:a.schedule,mz:c,zE:LNa(a.I,c),gq:VD(b.Za[0]),Zo:BC(b.j.j),eI:a.policy.I};a.Ij&&(c.Na=b.Za[0].Na,c.fg=b.fg,c.Ij=a.Ij);var d={Fs:Uya(b,a.Ia.getCurrentTime()),JA:a.policy.Dd&&dE(b)&&b.Za[0].j.info.video?kOa(a.D):void 0,mB:a.policy.Z,poToken:a.Ia.NI(),Mt:a.Ia.Ez(),RA:a.RA};return new FW(a.policy,b,c,a.C,function(e,f){try{a:{var h=e.info.Za[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.yw()||!(!a.Ia.mediaSource||a.Ia.isSuspended||
3<lW(l))){var m=e.yw();if(!e.isComplete()&&m&&!KD(e.info.j,a.policy,a.C)){var n=a.policy.Im;if(!a.ya&&n&&m>=n)LW(a,e,!1),a.ya=!0;else{var p=a.policy.Jg;if(p&&!(m<p)){var q=HD(a.C,LD(e.info.j,!0,a.policy));q.j||q.timedOut||q.started||LW(a,e,!0)}}}if(e.isComplete()||e.isDisposed()&&3>f){if(a.policy.rd){var r=Object.assign(rW(e.timing),{rst:e.state,strm:e.xhr.Ax(),d:mPa(e.timing)});a.Ia.va("rqs",r)}e.wT&&a.Ia.va("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var w=a.timing,y=e.info.Za[0].j,z=!w.D&&y.info.video,
B=!w.u&&y.info.audio;3===e.state?z?w.tick("vrr"):B&&w.tick("arr"):4===e.state?z?(w.D=e.Ge(),g.Vv(),Xv(4)):B&&(w.u=e.Ge()):e.ut()&&z&&(g.Vv(),Xv(4));if(3===e.state){oW(l,e);dE(e.info)&&MW(a,l,h,!0);if(a.u){var D=e.info.jn();D&&a.u.Aj(e.info.Za[0].Na,h.info.id,D)}a.Ia.rj()}else if(e.isComplete()&&5===e.info.Za[0].type){if(4===e.state){var G=(e.info.Za[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;G&&G instanceof FW&&G.yw()&&G.tF(!0)}e.dispose()}else{if(!e.isFailed()&&e.ax&&2<=e.state&&3!==e.state){var E=
e.xhr.getResponseHeader("X-Response-Itag");if(E){var J=jOa(a.D,E),M=e.info.B;if(M){var P=M-J.HI();J.D=!0;e.info.Za[0].j.D=!1;var X=J.Gq(P);e.info=X;if(e.Cd){var W=e.Cd,S=X.Za;W.Za=S;var ca=S[0].range,O=new GC;for(f=0;f<W.vf.length;f++)HC(O,W.vf[f].j);for(f=0;f<W.vf.length;f++){W.vf[f].info=S[f];var xa=S[f].range;W.vf[f].j=IC(O,xa.start-ca.start,xa.length);delete W.vf[f].B}}e.ax=!1;var la=a.videoTrack;la.j!==J&&(la.j=J);var ta=a.videoTrack;ta.u&&(ta.u.j=J);a.Ia.JK(J.info.video.quality);var La=e.MI();
La&&J.info.lastModified&&J.info.lastModified!==+La&&oW(a.videoTrack,e)}}else e.ax=!1}if(4===e.state)NW(a,e),a.B&&XNa(a.B,e.info,a.u);else if(a.policy.Ma&&e.Pn()&&!e.isComplete()&&!NW(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Kq(e);a.Ia.rj();if(a.policy.Hm&&e.isComplete()&&e.canRetry()&&KD(e.info.j,a.policy,a.C)){var cb=HD(a.C,LD(e.info.j,!1,a.policy));cb.u+a.policy.Hm*Gya(cb,a.policy,!0)>(0,g.Q)()||LW(a,e,!1)}}}}}}catch(va){J=a.oa?1:0,a.oa=!0,e=BH(J),J=CH(va,J),a.Ia.handleError(J.errorCode,J.details,
J.severity),e||a.Ia.uj()}},d)};
NW=function(a,b){if(a.policy.useUmp&&b.isDisposed())return!1;try{var c=b.info.Za[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&d){a.J=0;d.J&&(b.isDisposed(),b.isComplete()||b.Pn(),d.J=!1);b.yI()&&a.Ia.BC.Fh(1,b.yI());var e=b.hD(),f=b.bQ(),h=a.j,l;for(l in h.j){var m=h.j[l].index;m.Al&&(e&&(m.Cn=Math.max(m.Cn,e)),f&&(m.Uo=Math.max(m.Uo||0,f)))}}if(b.info.gq()&&!cE(b.info))for(var n=g.t(b.Tk()),p=n.next();!p.done;p=n.next()){var q=p.value;if(1===q.info.type)if(c.info.video){var r=
a.timing;r.Aa||(r.Aa=(0,g.Q)(),sP("vis_r",r.Aa,r.j))}else{var w=a.timing;w.J||(w.J=(0,g.Q)(),sP("ais_r",w.J,w.j))}TV(d.C,q)}gW(d,a.Ia.getCurrentTime());var y=!!nV(d);if(y&&b instanceof jV)if(c.info.Ol()){var z=a.timing;z.ea||(z.ea=(0,g.Q)(),sP("oafs_rp",z.ea,z.j))}else{var B=a.timing;B.oa||(B.oa=(0,g.Q)(),sP("ovfs_rp",B.oa,B.j))}return y}catch(D){return b=b.Aq(),b.origin="hrhs",SPa(a.Ia,D,b),!1}};
TPa=function(a){var b=a.videoTrack.j.index;a.Ij=new dPa({Io:a.policy.Io,lj:a.policy.C.lj,Ei:b.Ei,jd:function(){return b.jd()},
Ss:function(){return b.Ss()}})};
MW=function(a,b,c,d){if(!(c.Xf()||c.Mw()||c.D||!Iya(c.u,a.policy,a.C)||"f"===c.info.Ib||a.policy.yb)){if(d){d=a.I;var e=c.info;d=MNa(d,e.video?d.policy.cn:d.policy.Si,e.Tb)}else d=0;d=c.Gq(d);a=KW(a,d);cE(d)&&fW(b,a);c.D=!0}};
OW=function(a){this.u={};this.logger=new g.MU(a)};
UPa=function(a,b){var c=a.videoId;return((void 0===b?0:b)?(c||"")+";":"")+a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
WPa=function(a,b){var c=[];b=g.t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=VPa[d]||0;a.j&&e>a.j||c.push(d)}return c};
ZPa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.u(XPa[c]||[]));b.N("html5_early_media_for_drm")&&a.push.apply(a,g.u(YPa[c]||[]))};
dQa=function(a,b){var c=ZI(a),d=a.V().B;if(PW&&!d.j)return PW;for(var e=[],f=[],h={},l=g.t($Pa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.t(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=aQa(p);!q||!q.video||PE(q)&&!c.ya&&q.video.j>c.Z||(n?e.push(p):(q=oC(c,q,d),!0===q?(n=!0,e.push(p)):h[p]=q))}e&&ZPa(e,a)}l=g.t(bQa);for(n=l.next();!n.done;n=l.next()){n=g.t(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=cQa(m))&&p.audio&&(a.N("html5_onesie_51_audio")||!vC(p)&&!uC(p)))if(p=
oC(c,p,d),!0===p){f.push(m);break}else h[m]=p;f&&ZPa(f,a)}c.B&&b("orfmts",h);PW={video:e,audio:f};d.j=!1;return PW};
aQa=function(a){var b=ME[a],c=eQa[b],d=fQa[a];if(!d||!c)return null;var e=new JE(d.width,d.height,d.fps);c=wF(c,e,b);return new NE(a,c,{video:e,Tb:d.bitrate/8})};
cQa=function(a){var b=eQa[ME[a]],c=gQa[a];return c&&b?new NE(a,b,{audio:new GE(c.audioSampleRate,c.numChannels)}):null};
hQa=function(a,b){kI(a,1,b.formatId,QW,3);gI(a,2,b.startTimeMs);gI(a,3,b.durationMs);gI(a,4,b.g4);gI(a,5,b.fI)};
QW=function(a,b){gI(a,1,b.itag);gI(a,2,b.lmt);jI(a,3,b.xtags)};
iQa=function(a,b){iI(a,3,b.playbackCookie)};
jQa=function(a,b){kI(a,1,b.AC,zPa,1);var c;if(b.lJ)for(c=0;c<b.lJ.length;c++)kI(a,2,b.lJ[c],QW,3);if(b.Eo)for(c=0;c<b.Eo.length;c++)kI(a,3,b.Eo[c],hQa,3);iI(a,5,b.videoPlaybackUstreamerConfig);if(b.yL)for(c=0;c<b.yL.length;c++)kI(a,16,b.yL[c],QW,3);if(b.zL)for(c=0;c<b.zL.length;c++)kI(a,17,b.zL[c],QW,3);kI(a,19,b.l4,iQa,3)};
RW=function(a){OW.call(this,"sabr");this.callbacks=a};
SW=function(a){g.K.call(this);this.C=a;this.logger=new g.MU("onesie");this.Ed=new Map;this.B=!1;this.u=this.j=null};
$V=function(a,b){return a.Ed.has(b)};
kQa=function(a,b){return(a=a.Ed.get(b))?a.lA:[]};
ROa=function(a,b,c){a.Ed.get(b).pe=c};
UW=function(a,b){$V(a,b)&&(a.Ed.get(b).vf=new GC,TW(a,b))};
lQa=function(a){for(var b=g.t(a.Ed),c=b.next();!c.done;c=b.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;d.pe||UW(a,c)}};
VW=function(a,b){b=a.Ed.get(b);if(!b)return 0;a=0;if(0<b.Za.length){b=g.t(b.Za);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=(null==(d=c.value.range)?void 0:d.length)||0}return a}if(0<b.lA.length)for(c=g.t(b.lA),d=c.next();!d.done;d=c.next())a+=d.value.Sn||0;return a+b.MQ};
aW=function(a,b){var c;return!(null==(c=a.Ed.get(b))||!c.vf.totalLength)};
bW=function(a,b){var c=a.Ed.get(b),d=VW(a,b),e=!d&&!!c.bytesReceived;b=a.kh(b);return e&&a.B&&void 0!==b?b:(e||c.bytesReceived===d)&&c.qC+c.vf.totalLength===c.bytesReceived};
mQa=function(a,b){a=a.Ed.get(b);return a.hg&&!a.vf.totalLength};
nQa=function(a,b,c,d){c.Za.push.apply(c.Za,g.u(d));if(c.Cd){a=g.t(d);for(var e=a.next();!e.done;e=a.next())b=void 0,d=c.Cd,e=e.value,d.Za.push(e),d.length+=(null==(b=e.range)?void 0:b.length)||0}else c.Cd=new YV(a.u,[].concat(g.u(c.Za)),VW(a,b))};
oQa=function(a,b,c){var d,e=null==(d=a.j)?void 0:d.Ma.get(b);if(!e)return[];if(c.Pl){var f;return(null==(f=e.Gq(0))?void 0:f.Za)||[]}if(e.Ql())return 0>c.du||0>c.Bp||0>c.durationMs||0>c.startMs||0>c.Sn?(UW(a,b),[]):[new TD(3,e,RD(c.du,c.Sn),"makeSliceInfosMediaBytes",c.Bp-1,c.startMs/1E3,c.durationMs/1E3)];if(0>c.Bp)return UW(a,b),[];var h;return(null==(h=a.j)?0:h.Ud)?(a=e.ij,[new TD(3,e,void 0,"makeSliceInfosMediaBytes",c.Bp,void 0,a,void 0,a*e.info.Tb)]):[]};
pQa=function(a,b,c){a.j=b;a.u=c;b=g.t(a.Ed);for(c=b.next();!c.done;c=b.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;for(var e=g.t(d.sT),f=e.next();!f.done;f=e.next())f=oQa(a,c,f.value),nQa(a,c,d,f)}};
WW=function(a,b,c){(a=a.Ed.get(b))&&!a.hg&&(HC(a.vf,c),a.bytesReceived+=c.totalLength,a.aL=!0)};
TW=function(a,b){if((b=a.Ed.get(b))&&!b.hg){b.hg=!0;b.pe&&b.pe();a:{b=g.t(a.Ed.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.hg){b=!1;break a}b=!0}b&&a.C.OR()}};
qQa=function(a,b){for(var c=!1,d=g.t(a.Ed.keys()),e=d.next();!e.done;e=d.next())if(e=a.Ed.get(e.value))for(var f=g.t(e.lA),h=f.next();!h.done;h=f.next())0<h.value.Sn&&(e.Ol?c=!0:b=!0);return b&&c};
XW=function(a,b,c,d,e,f){g.K.call(this);this.policy=a;this.info=b;this.callbacks=e;this.logger=new g.MU("sabr");this.Yj=new zW(this);this.O3=new RW(this);this.hd=new SW(this);this.state=1;this.qT=!1;this.Qj=new qW(this,f);this.Ke=Hya(b.j,!1,this.policy);this.Ke.set("rn",""+this.qD());pQa(this.hd,c,a);this.Kd=new BW(this,this.policy,this.Ke,b.j,this.Qj,this.logger,d);vPa(this.Kd);a={method:"POST"};a.body=b.u;try{this.xhr=AW(this.Ke,this.policy.C,this.Qj,aJ,a),this.Kd.j.start()}catch(h){g.aA(h)}};
YW=function(a,b,c,d,e){e=void 0===e?0:e;var f={},h=KF(0);h&&(f.q_=h,f.lastManualDirection=fAa(),h=zta()||0,0<h&&(f.timeSinceLastManualFormatSelectionMs=(0,g.Q)()-h));f.h4=KF();a.schedule.T&&(f.wY=HG(a.schedule,!0));h=g.oH();f.IY=c.width*h;f.HY=c.height*h;f.visibility=d;f.w4=dy();a.N("html5_onesie_media_capabilities")&&(f.FP=3);a.N("html5_onesie_audio_only_playback")&&YI(b)&&(f.FP=1);if(a.N("html5_onesie_media_capabilities")){b=ZI(b);c=a.B;d=[];h=[];for(var l=g.t($Pa),m=l.next();!m.done;m=l.next()){m=
g.t(m.value);for(var n=m.next();!n.done;n=m.next()){n=n.value;var p=aQa(n);if(p&&p.video&&!0===oC(b,p,c)){d.push({U4:rQa[ME[n]],A_:p.video.width,z_:p.video.height,maxFramerate:p.video.fps});break}}}l=g.t(bQa);for(m=l.next();!m.done;m=l.next())for(m=g.t(m.value),n=m.next();!n.done;n=m.next())if(n=n.value,(p=cQa(n))&&p.audio&&(a.N("html5_onesie_51_audio")||!vC(p)&&!uC(p))&&!0===oC(b,p,c)){h.push({vY:sQa[ME[n]],numChannels:p.audio.numChannels});break}f.mediaCapabilities={BM:d,tH:h}}a.N("html5_prefer_drc")&&
(f.YY=!0);0<e&&(f.s3=1E3*e);return f};
wQa=function(a,b,c){var d,e,f;return g.A(function(h){if(1==h.j)return d=lI(b,JPa),g.x(h,tQa(c,d),2);if(3!=h.j)return e=h.u,g.x(h,uQa(c,e),3);f=h.u;return h.return({encryptedOnesieInnertubeRequest:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,hmac:f,serializeResponseAsJson:!0,enableAdPlacementsPreroll:a.N("html5_onesie_ads"),enableCompressionResponseOnly:vQa(a,!!b.skipResponseEncryption)})})};
xQa=function(a,b,c,d,e,f,h,l){var m,n;return g.A(function(p){if(1==p.j)return g.x(p,wQa(c,a,b),2);m=p.u;n=YW(c,d,e,f);return p.return({qJ:m,AC:n,onesieUstreamerConfig:h,CB:l})})};
vQa=function(a,b){a=HG(a.schedule,!0);b=b||!!pG()&&1572864<a;return"DecompressionStream"in window||!b};
yQa=function(a,b,c,d,e,f,h,l,m){a=YW(a,b,c,d,h);l={playbackCookie:null==l?void 0:l.playbackCookie};c=(c=null==m?void 0:m.audio)?[ND(c,e.Ud)]:[];m=(m=null==m?void 0:m.video)?[ND(m,e.Ud)]:[];if(b.QF)var n=b.QF;this.u=lI({AC:a,lJ:e.Ka,Eo:f,yL:c,zL:m,videoPlaybackUstreamerConfig:n,l4:l},jQa);this.j=e.ya};
ZW=function(a,b,c,d,e,f,h,l){g.K.call(this);this.xa=a;this.Ia=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.B=f;this.fh=h;this.D=l;this.j=[];this.J={};this.I=this.xa.V();this.videoData=this.xa.getVideoData()};
AQa=function(a,b){3===b.state?(a.j.pop(),null==b||b.dispose()):5===b.state?a.Kq(b):-1!==b.state&&zQa(a);a.Ia.rj()};
zQa=function(a){for(;a.j.length&&4===a.j[0].state;){var b=a.j.shift();BQa(a,b)}a.j.length&&BQa(a,a.j[0])};
BQa=function(a,b){var c=zV(a.D),d,e;var f=[(null==(d=c.video)?void 0:OD(d,a.B.Ud,a.xa.Wf(),!0))||"",(null==(e=c.audio)?void 0:OD(e,a.B.Ud,a.xa.Wf(),!0))||""];c=new Set(b.eD());f=g.t(f);for(d=f.next();!d.done;d=f.next())if(d=d.value,c.has(d)&&b.Pn(d)){e=b.Tk(d);e=g.t(e);for(var h=e.next();!h.done;h=e.next()){h=h.value;var l=b.Bw(d);hW(h.info.j.info.Ol()?a.audioTrack:a.videoTrack,l,h)}}};
CQa=function(a,b,c,d,e){this.Ia=a;this.policy=b;this.schedule=c;this.Sv=d;this.Z=e;this.ea=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.T=NaN};
DQa=function(a,b,c,d,e){return b.Dc&&b.Ve&&3===Vxa(b)?new CQa(a,b,c,d,e):null};
EQa=function(a,b){if(a.policy.Av){var c=b.info.Tb,d=HG(a.schedule);b=b.index.Ei;c=Math.max(1,d/c);a.T=Math.round(1E3*Math.max(((c-1)*b+a.policy.qb)/c,b-a.policy.gh))}};
HQa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Qm,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Cv&&(h=!0);a.I=c}c=d>=a.policy.gh&&!a.B;if(!f&&!c&&FQa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.Sv.gi()||0)-a.J.u-a.policy.qb;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){$W(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Ng;d<c&&(c=d)}else a.B&&(d=c+a.policy.qb-a.ea+a.policy.Dv,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Ng))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&FQa(a,b))return GQa(a,b),NaN;if(a.j<=a.u.startTime)return $W(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.j,!1))return!GQa(a,b)&&h&&($W(a,NaN,"t",b),a.clear()),NaN;h=a.j;$W(a,h,"s",b);a.clear();return h};
GQa=function(a,b){return a.Z(a.j,!0)?!1:($W(a,NaN,"ns",b),a.clear(),!0)};
FQa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.Ng:a.policy.Bv)};
$W=function(a,b,c,d){var e=a.C.Aq();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.J.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.Sv.gi()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;lE(b,a.u.Na,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Na)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Na)).toFixed(0));a.Ia.va("ssr",e)};
IQa=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.aX=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.K.call(this);var p=this;this.xa=a;this.schedule=b;this.policy=c;this.Nb=d;this.J=m;this.Wa=n;this.timing=new UNa(this.Wa);this.T=new eV(this.schedule,this.policy);this.mediaSource=null;this.Oa=new g.ho(this.rj,0,this);this.XD=new g.ho(this.rj,1E3,this);this.Sa=new g.ho(this.rj,void 0,this);this.Ma=new g.ho(this.rj,1E4,this);this.C=this.currentTime=NaN;this.Z=0;this.cA=this.IC=this.isSuspended=!1;this.oa="";this.BC=new BG(5);this.Xa={};this.timestampOffset=
NaN;this.Ka=!1;this.Aa=0;this.D=null;this.ea=NaN;this.logger=new g.MU("dash");a=m&&m.eD();m&&(this.policy.Aa&&pQa(m,this.Nb,this.policy),this.ea=Date.now());this.ge=new $Na(this,this.T,c,this.Nb,e,a);c=eOa(this.ge,f,h&&h.id);this.audioTrack=new cW(this,this.policy,c.audio);this.videoTrack=new cW(this,this.policy,c.video);this.videoTrack.C.Aa=this.audioTrack.C;this.ya={updateend:this.qX,error:this.r0};g.L(this,this.Oa);g.L(this,this.XD);g.L(this,this.Sa);g.L(this,this.Ma);this.B=DQa(this,this.policy,
this.schedule,this.BC,function(q,r){return JQa(p,q,r)});
this.j=new oV(this,this.Nb,this.policy,this.videoTrack,this.audioTrack,l);this.I=new iV(this,this.Nb,this.videoTrack,this.audioTrack,this.policy);this.u=new GW(this,this.policy,this.videoTrack,this.audioTrack,this.Xa,this.j,this.timing,this.T,this.schedule,this.Nb,this.ge,this.B);g.L(this,this.u);this.Ba=new ZW(this.xa,this,this.policy,this.audioTrack,this.videoTrack,this.Nb,this.schedule,this.ge);g.L(this,this.Ba)};
KQa=function(a,b){var c=b.j,d=a.Nb.Ud;if(a.Nb.Ud){if(a.Nb.Z){a.va("ombab",{});return}var e=Date.now();if(HF(a.Nb)&&!isNaN(a.ea)&&e-a.ea>1E3*a.policy.Lu){a.va("ombttl",{});return}if(a.Nb.De&&a.Nb.B||!a.policy.Gv&&a.Nb.isPremiere)return}e=a.Wf();if(a.J&&$V(a.J,OD(c,d,e,a.policy.Ac))){d=OD(c,d,e,a.policy.Ac);if(a.policy.Aa){var f=a.J.Bw(d);if(0===f.length){a.va("ombmsi",{});return}f=new bE(f);if(!Wya(f,a.currentTime)){a.va("ostmf",{ct:a.currentTime});return}}else if(e=kQa(a.J,d),!a.Nb.Ud||!a.policy.Fv){if(!c.indexRange||
!c.initRange)return;if(!VW(a.J,d)){a.va("ombooo",{});return}if(0<e.length){var h;if((f=null==(h=c.Gq(0))?void 0:Vya(h,e))&&!Wya(f,a.currentTime)){a.va("ostmf",{ct:a.currentTime});return}}}else if(HF(a.Nb)||a.Nb.isPremiere||a.Nb.He)f=c.Po(Infinity);f&&(h=function(l){try{if(l.isFailed())a.handleError(l.cf(),l.Aq()),oW(b,l),dE(l.info)&&MW(a.u,b,c,!0),a.rj();else if(NW(a.u,l)){if(a.policy.Mu){var m;null==(m=a.j)||XNa(m,l.info,a.D)}a.rj()}}catch(n){l=CH(n),a.handleError(l.errorCode,l.details,l.severity),
a.uj()}},c.D=!0,cE(f)&&(fW(b,new jV(a.policy,d,f,a.J,h)),VNa(a.timing)))}else a.va("ombfmt",{})};
bX=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.ge;b=d.nextVideo&&d.nextVideo.index.Jh(b)||0;d.Ba!==b&&(d.Ka={},d.Ba=b,tV(d,d.B));b=!AV(d)&&-1<d.Z&&8E3>(0,g.Q)()-d.Z;var e=d.nextVideo&&3*wV(d,d.nextVideo.info)<hV(d.Aa);if(!b||e)uV(d),vV(d),d.ea=d.ea||d.nextVideo!==d.j;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Ba=-1);d=d.nextVideo;c.j!==d&&(c.j=d);c=a.audioTrack;a=a.ge.u;c.j!==a&&(c.j=a)};
cX=function(a,b){a.IC=b;a.policy.Z||(a.isSuspended=!0)};
dX=function(a,b,c,d){XOa(a.videoTrack,d,c,b);XOa(a.audioTrack,d,c,b);GF(a.Nb,d,!0);GF(a.Nb,d,!1);a.va("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
fX=function(a){a.policy.Oa=!1;try{eX(a)}catch(b){g.$z(b)}};
LQa=function(a){a.mediaSource&&a.mediaSource.j&&a.mediaSource.u&&(Oz(a.mediaSource.j,a.ya,a),Oz(a.mediaSource.u,a.ya,a));dW(a.audioTrack,null);dW(a.videoTrack,null);a.mediaSource=null};
gX=function(a){a.mediaSource&&a.mediaSource.hg()&&(a.ew(),a.policy.tv&&a.handleError("fmt.unplayable",{unexpected:1},1))};
MQa=function(a,b){b&&a.xa.qE(b);a.policy.fl&&a.ge.Xa&&(b=zV(a.ge,"a"),hX(a.xa,b.reason,b.audio.info))};
RPa=function(a,b){if(WD(b.Za[b.Za.length-1])){a:{var c=a.ge;b=b.Za[0].j;if(b.info.video){if(c.j!==b){c.j=b;c=dOa(c);break a}}else c.Xa=c.J!==b,c.J=b;c=null}MQa(a,c)}};
SPa=function(a,b,c){if(b instanceof Error){c.msg||(c.msg=""+b.message);c.name||(c.name=""+b.name);if(b instanceof g.Yv&&b.args)for(var d=g.t(Object.entries(b.args)),e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;c["arg"+e]=""+f}g.aA(b);if("WARNING"===b.level){iX(a.xa,c);return}}a.handleError("fmt.unplayable",c,1)};
jX=function(a){g.io(a.Oa)};
eX=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=NQa(a);if(d){if(a.policy.Ma){if(!b.Bq()){var e=nV(a.audioTrack);e&&(kX(a,a.audioTrack,b,e.info),lX(a,b,e))}!c.Bq()&&(b=nV(a.videoTrack))&&(kX(a,a.videoTrack,c,b.info),lX(a,c,b))}a.Z||(a.Z=(0,g.Q)(),a.policy.I&&a.va("apdps",{r:d}))}else{if(a.Z){d=(0,g.Q)()-a.Z;e=lW(a.audioTrack,!0);var f=lW(a.videoTrack,!0);a.policy.I&&a.va("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.Z=0}if(a.B){d=a.B;e=a.audioTrack;
f=hF(a.mediaSource.u.Bg());if(d.C)d=HQa(d,f);else{if(f=nV(e)){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.fg&&(d.C=e,d.J=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.I=d.startTimeSecs,d.D=d.u.startTime)}d=NaN}d&&a.xa.seekTo(d,{kt:!0,qe:"pollSubsegmentReadahead",Wp:!0})}d=!1;OQa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.Q)(),sP("vda",e.C,e.j),e.B&&(g.Vv(),Xv(4))),e=a.timing,e.Ba||(e.Ba=(0,g.Q)(),sP("vrb_f",e.Ba,e.j)));if(a.mediaSource&&!a.mediaSource.hg()&&
(OQa(a,a.audioTrack,b)&&(d=!0,e=a.timing,e.B||(e.B=(0,g.Q)(),sP("ada",e.B,e.j),e.C&&(g.Vv(),Xv(4))),e=a.timing,e.T||(e.T=(0,g.Q)(),sP("arb_f",e.T,e.j))),!a.isDisposed()&&a.mediaSource)){!a.policy.Oa&&jW(a.videoTrack)&&jW(a.audioTrack)&&pF(a.mediaSource)&&!a.mediaSource.ri()&&(e=eW(a.audioTrack).j,e===a.Nb.j[e.info.id]&&(e=a.mediaSource,pF(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Yf.webkitSourceEndOfStream(e.Yf.EOS_NO_ERROR)),e=a.schedule,eAa(IG(e)),e.D=EG(),e.T=!0));e=a.policy.Iu;f=a.policy.Ev;
d||!(0<e||f)||!pF(a.mediaSource)||jW(a.videoTrack)||jW(a.audioTrack)||(b.vF(a.currentTime,f,e),c.vF(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.j?c.j.supports(0):sF());c&&jX(a)}}}};
NQa=function(a){if(cPa(a.videoTrack))return"ssf";if(a.policy.rl||YOa(a.audioTrack)||YOa(a.videoTrack)&&"f"!==a.videoTrack.j.info.Ib)return"";if(a.I.Tg()){var b=a.T;var c=a.videoTrack;var d=a.audioTrack;if(c.B.length||d.B.length){var e=c.j.info.Tb+d.j.info.Tb;e=10*(1-hV(b)/e);b=Math.max(e,b.policy.ql);c=lW(d,!0)>=b&&lW(c,!0)>=b}else c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.B.length&&1===c.C.u.length&&COa(c.C).info.I<c.ya)return"seek"}if(!a.cA||!a.policy.zd||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";
c=$Oa(a.videoTrack,a.currentTime,a.policy.zd)||$Oa(a.audioTrack,a.currentTime,a.policy.zd);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||HW(a.u,a.videoTrack,a.audioTrack)||HW(a.u,a.audioTrack,a.videoTrack))&&c?"nord":""};
OQa=function(a,b,c){if(c.sJ())return!0;if(!c.uC())return!1;var d=nV(b);if(!d||6===d.info.type)return!1;var e,f;(f=null==(e=a.j))||(f=1===e.u||2===e.u)||!(f=0!==e.u&&b===e.Ka)||(e=nW(e.T),f=d.info.Na>(e?e.Na:-1));if(f)return a.I.Tg()&&jX(a),!1;kX(a,b,c,d.info);if(a.Nb.u&&0===d.info.Kb){if(null==c.Bq()){e=eW(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.pc(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Bq(),d.info.j.Mw()&&sza(d),
f=d.info.j.j,e=e!==f&&!g.pc(e,f);e&&(f=eW(b),a.va("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Na}));f=g.AE(d.info.j.info);(a.policy.pc&&f||a.policy.Lv&&!f)&&!e&&(g.AE(d.info.j.info)?(oD(zE(d),1836019574),oD(zE(d),1718909296)):(e=new qD(zE(d)),Cya(e),uD(e,524531317,!0),d.j=d.j.split(e.start+e.pos).Uj),d.C=!1)}a.policy.Lg?d.B=void 0:a.policy.xv&&!c.Bq()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.Kb||d.C||d.B||3!==d.info.type||!e||(f=new GC([e]),HC(f,d.j),f=LC(f),
e=(new GC([f])).split(e.length),d.B=e.Vz,d.j=e.Uj));e=a.B&&!!a.B.C&&b.j.info.audio;f=a.Nb.isManifestless||d.B||d.C;if(!(a.Nb.u&&0!==d.info.Kb||f&&!e)&&lX(a,c,d))return!0;if(e)return!1;e=a.currentTime+IW(a,b,!1);if(!(e=d.info.C>e)){e=a.policy.Ka?(0,g.Q)():0;f=d.C||d.B?d.info.j.j:null;h=d.j;d.B&&(h=new GC([]),HC(h,d.B),HC(h,d.j));var l=LC(h);h=a.policy.Ka?(0,g.Q)():0;f=PQa(a,c,l,d.info,f);a.policy.Ka&&(!d.info.Kb||d.info.Pe||10>d.info.C)&&a.va("sba",c.Yb({as:$D(d.info),pdur:Math.round(h-e),adur:Math.round((0,g.Q)()-
h)}));"s"===f?(a.Aa=0,a=!0):("i"===f||"x"===f?QQa(a,"checked",f,d.info):("q"===f&&(d.info.isVideo()?(c=a.policy,c.T=Math.floor(.8*c.T),c.ib=Math.floor(.8*c.ib),c.J=Math.floor(.8*c.J)):(c=a.policy,c.oa=Math.floor(.8*c.oa),c.od=Math.floor(.8*c.od),c.J=Math.floor(.8*c.J)),xV(a.ge,d.info.j)),iX(a.xa,{reattachOnAppend:f})),a=!1);e=!a}if(e)return!1;b.Jr(d);return!0};
QQa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.info.video&&!yV(a.ge)&&xV(a.ge,d.j)):"i"===c&&(15>a.Aa?(a.Aa++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=ZD(d);var h;d.mrs=null==(h=a.mediaSource)?void 0:rF(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
MOa=function(a,b,c,d,e){var f=a.Nb,h=!1,l=-1;for(p in f.j){var m=TE(f.j[p].info.mimeType)||f.j[p].info.isVideo();if(d===m)if(h=f.j[p].index,lE(h,b.Na)){m=b;var n=h.hn(m.Na);n&&n.startTime!==m.startTime?(h.segments=[],h.wG(m),h=!0):h=!1;h&&(l=b.Na)}else h.wG(b),h=!0}if(0<=l){var p={};f.ma("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}TNa(a.I,b,d,h);a.j.yK(b,c,d,e)};
kX=function(a,b,c,d){b=eW(b);!b||b.Pe||XD(b,d)||c.abort();!c.Bz()||mF()?c.wM(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Bz()&&a.va("ctu",{ct:mF(),prev_c:c.Bz(),curr_c:d.j.info.containerType});b=d.j.C;a.policy.Pk&&b&&(d=0+b.duration,b=-b.j,0===c.rz()&&d===c.bD()||c.EL(0,d),b!==c.Bd()&&(c.gF(b),VV&&OOa(a.audioTrack.C,c.OI())))};
lX=function(a,b,c){c.info.j.Xf();var d=c.info.j.j;if(!d||!b.uC()||b.Bq()===d)return!1;var e=d,f=b.iD();if(a.policy.Lg&&f&&b.isView()&&g.AE(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=wya(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.va("fenc",{})}f=null;(h=c.info.j.Gq(0))&&(f=h.Za[0]);a.policy.Ka&&a.va("sbi",b.Yb({as:$D(c.info)}));a.policy.jt&&b.abort();d=PQa(a,b,e,f,d);if("s"!==d)return QQa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.ya||(a.ya=
(0,g.Q)(),sP("vis_a",a.ya,a.j))):(a=a.timing,a.I||(a.I=(0,g.Q)(),sP("ais_a",a.I,a.j)));return b.ri()};
PQa=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:dF(b.Bg()).replace(/,/g,"_"),message:g.Cc(f.message,3),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},IQa()),a.handleError("player.exception",b),"q";g.$z(f)}return"u"}return a.mediaSource.hg()?"m":"s"};
OV=function(a,b){a.xa.rE(b)};
IW=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.oa:a.policy.T;!a.policy.wc&&AV(a.ge)&&(d=Math.max(d,b.j.info.audio?a.policy.od:a.policy.ib));c&&(d+=a.policy.Yc);c=AV(a.ge)?b.u?b.u.j.info.Tb:b.j.info.Tb:b.Tb*a.policy.Vo;d/=c;0<a.policy.hk&&a.mediaSource&&pF(a.mediaSource)&&(b=b.j.info.video?a.mediaSource.u:a.mediaSource.j)&&!b.ri()&&(b=b.Bg(),c=eF(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.hk,a.policy.Ju))));0<a.policy.J&&(d=Math.min(d,
a.policy.J));return d};
RQa=function(a,b){JT(b,"cms",function(c){a.policy.I&&a.va("pathprobe",c)},function(c){a.xa.handleError(c)})};
SQa=function(a,b){a.D=b;a.j&&(a.j.D=b);a.D.LL(a.videoTrack.j.info.me());a.u.u=a.D};
TQa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.j,d=b;if(0!==c.u&&c.D){var e=c.Aw(d);e!==c.ea&&(c.D.GK(c.ea,e,c.Ba,d),c.ea=e);c.Ba=d}a.currentTime!==b&&a.resume();a.I.Tg()&&a.mediaSource&&!a.mediaSource.hg()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=fF(a.mediaSource.u.Bg(),a.currentTime+JW),c&&d&&(a.I.D=!1));a.I.Tg()||(a.currentTime=b);g.io(a.XD)}};
UQa=function(a,b){var c=iW(a.videoTrack).find(function(d){return d.startTime>=b&&JQa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
JQa=function(a,b,c){if(!(a.videoTrack.j.Xf()&&a.audioTrack.j.Xf()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.j))return!1;if(c&&a.Nb.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=lV(a.videoTrack,b,c);if(isNaN(d))return!1;a=lV(a.audioTrack,a.policy.Ve?b:d,c);return isNaN(a)?!1:!0};
VQa=function(a){a.uj();a.B&&EQa(a.B,a.videoTrack.j);jX(a);a=a.I;var b=Math.max(a.videoTrack.C.B||0,a.audioTrack.C.B||0);WOa(a.videoTrack);WOa(a.audioTrack);cAa(a.j);a.j.isManifestless&&(a.B=!0);a.Ia.currentTime=b;a.D=!0;a.C=new LG;return a.C};
mX=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.j.I=a.timestampOffset,a.xa.IK(a.timestampOffset),a.Nb.isManifestless&&(a.Nb.timestampOffset=a.timestampOffset))};
g.nX=function(a){this.md=a};
oX=function(){g.Mz.apply(this,arguments)};
pX=function(a,b,c,d){oX.call(this);var e=this;this.B=-1;this.j={};this.C=new g.ho(this.D,0,this);g.L(this,this.C);this.u=new g.ho(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.L(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
WQa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
XQa=function(a){if(!(28>=a.length))for(var b=(0,g.EW)([60,0,75,0,73,0,68,0,62,0]),c=28;c<a.length;){a:if(a.length-c<b.length)var d=!1;else{for(d=0;d<b.length;++d)if(a[c+d]!==b[d]){d=!1;break a}d=!0}if(d){c+=b.length;if(a.length<=c+48)break;b=new Uint8Array(24);for(d=0;24>d;++d)b[d]=a[c+2*d];a=QC(b);a=Dc(a);if(!a)break;c=a[0];a[0]=a[3];a[3]=c;c=a[1];a[1]=a[2];a[2]=c;c=a[4];a[4]=a[5];a[5]=c;c=a[6];a[6]=a[7];a[7]=c;return a}c++}};
YQa=function(a){var b=a.interval,c=a.mx;this.url=a.url;this.interval=b;this.mx=c};
ZQa=function(a,b){this.statusCode=a;this.message=b;this.j=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
$Qa=function(a){var b=OC(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=fD(b.slice(d+2));if(null==b)return null;a=new ZQa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.VEa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new YQa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,mx: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.t(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};
aRa=function(a,b,c){c=void 0===c?"":c;g.K.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.Wh(5E3,2E4,.2)};
bRa=function(a,b,c){a.onSuccess=b;a.onError=c};
dRa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(0!==e.status&&e.response)if(JB("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=$Qa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else cRa(a,e)},
onError:function(e){cRa(a,e)}};
c&&(b=Vea(b,"access_token",c));g.Wu(b,d)};
cRa=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)};
fRa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){JB("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Dc(f.license)}catch(y){g.$z(y)}if(0!==h||l){l=new ZQa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.t(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=eRa[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");
h[r]||(m.push(r),h[r]=!0);var w=null;try{w=Dc(q.keyId)}catch(y){g.$z(y)}w&&(n[g.Bc(w,4)]=r)}}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.RO="Bearer "+d);g.zx(c,"player/get_drm_license",b,e)};
rX=function(a,b,c,d){g.Mz.call(this);this.videoData=a;this.Y=b;this.T=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.ea=!1;this.B=null;this.Aa=[];this.D=[];this.oa=!1;this.j={};this.ya=NaN;this.status="";this.I=NaN;this.u=a.Z;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ka&&(a.vvt=this.videoData.Ka,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.sb()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.Z=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(OF(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.Z=!1);b="";g.WF(this.u)?VF(this.u)?(d=XQa(c.initData))&&
(b="https://web.archive.org/web/20221116135136/https://www.youtube.com/api/drm/fps?ek="+waa(d)):b=WQa(c.initData).replace("skd://","https://"):b=this.u.u;this.baseUrl=b;this.fairplayKeyId=wi(this.baseUrl,"ek")||"";if(b=wi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ba=this.videoData.N("html5_use_drm_retry");this.Aa=c.me?[g.Bc(c.initData,4)]:c.u;qX(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
jRa=function(a,b){qX(a,{createkeysession:1});a.status="gr";JB("drm_gk_s",void 0,a.videoData.Sa);a.url=gRa(a);try{a.B=b.createSession(a.T,function(c){qX(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ma("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(hRa(a.B,function(c,d){iRa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.WF(a.u)&&g.YG(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()||(qX(a,{onkyadd:1}),a.J||(a.ma("sessionready"),a.J=!0))},function(c){a.Ar(c)}),g.L(a,a.B))};
gRa=function(a){var b=a.baseUrl;Yta(b)||a.error("drm.net",2,"t.x");if(!wi(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.t(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Vea(b,d,a.C[d]);return b};
iRa=function(a,b,c){if(!a.isDisposed())if(b){qX(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":kRa(a,b);return;default:a.ma("ctmp","message_type",{t:c,l:b.byteLength})}a.ea||(JB("drm_gk_f",void 0,a.videoData.Sa),a.ea=!0,a.ma("newsession",a));if(SF(a.u)&&(b=lRa(b),!b))return;g.WF(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=NC(g.Bc(b)));b=new aRa(b,++a.requestNumber,a.videoData.Sa);bRa(b,function(d){mRa(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.u)||(l=a.Ba&&36E4<(0,g.Q)()-a.ya);l&&(h=1,e="drm.net.retryexhausted");qX(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(BH(h),d)&&nRa(a,d)}});
g.L(a,b);oRa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
kRa=function(a,b){qX(a,{sdpvrq:1});a.I=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.deviceParams);c=g.ti("https://web.archive.org/web/20221116135136/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:OC(b)}),responseType:"arraybuffer"};
g.Zu(c,b,3,500).then(Cu(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=OC(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ma("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.I)/1E3,a.I=NaN,a.ma("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))}}),Cu(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
sX=function(a){var b;if(b=a.Z&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
oRa=function(a,b){a.status="km";JB("drm_net_s",void 0,a.videoData.Sa);if(a.videoData.useInnertubeDrmService()){var c=new g.yx(a.Y.Qi),d={context:g.Zw(c.config_||g.Yw())};d.drmSystem=pRa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Bc(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.B)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.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.Ka&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ka,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.pc&&(d.context.user.kidsParent={oauthToken:a.videoData.pc});g.WF(a.u)&&(d.fairplayKeyId=g.Bc(xaa(a.fairplayKeyId)));g.yH(a.Y,g.vJ(a.videoData)).then(function(l){fRa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.yH(a.Y,g.vJ(a.videoData)).then(function(l){dRa(b,a.url,l);
a.status="rs"})};
mRa=function(a,b){if(!a.isDisposed())if(qX(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{JB("drm_kr_s",void 0,a.videoData.Sa);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.u.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ma("newlicense",b.heartbeatParams);b.j&&(a.D=b.j,a.videoData.useInnertubeDrmService()&&
!a.videoData.bG&&a.ma("newlicense",new YQa({})),a.videoData.bG=!0,a.oa=Xl(a.D,function(d){return d.includes("HDR")}));
b.u&&(a.j=kf(b.u,function(d){return{type:d,status:"unknown"}}));
TF(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Dc(OC(b.message)):UF(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=NC(g.Bc(b.message)));a.B&&(qX(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){JB("drm_kr_f",void 0,a.videoData.Sa);sX(a)||(qX(a,{ksApiUnsup:1}),a.ma("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Cc(d.message,3);
a.error("drm.keyerror",1,d)}));
a.J&&(a.ya=(0,g.Q)());g.WF(a.u)&&a.ma("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)}};
nRa=function(a,b){var c=b.j.getValue();c=new g.ho(function(){oRa(a,b)},c);
g.L(a,c);c.start();g.Xh(b.j);qX(a,{rtyrq:1})};
qRa=function(a,b){for(var c=[],d=g.t(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)};
tX=function(a){var b={};b[a.status]=sX(a)?qRa(a,"."):a.D.join(".");return b};
rRa=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};
uX=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
qX=function(a,b){var c=void 0===c?!1:c;zH(b);(c||a.Y.C)&&a.ma("ctmp","drmlog",b)};
sRa=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};
lRa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Lfa(new DOMParser,g.wg(g.cg("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array((0,g.EW)(eba(a.childNodes[0].nodeValue)).buffer):null:null};
tRa=function(a,b,c,d){if(a=NC(g.Bc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Wea(c,d),g.Zu(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=$Qa(e))&&e.message&&b.update(e.message)})};
vX=function(a,b,c,d,e){g.K.call(this);this.element=a;this.T=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.J=this.I=this.B=this.D=null;this.C=new g.WE(this);g.L(this,this.C);uRa(this)};
uRa=function(a){a.j?(a.C.S(a.j,"message",a.rX),a.C.S(a.j,"keystatuseschange",a.Ar),a.j.closed&&a.j.closed.then(Cu(function(){a.isDisposed()||hv("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(Kz(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.qS),Kz(a.C,a.u,["mskeyerror","webkitkeyerror"],a.pS),Kz(a.C,a.u,["mskeyadded","webkitkeyadded"],a.oS))};
hRa=function(a,b,c,d,e){a.D=b;a.B=c;a.I=d;a.J=e};
vRa=function(a,b,c){g.Bu(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
wX=function(a,b){g.K.call(this);this.element=a;this.j=b;this.I={};this.C=null;this.D=new g.WE(this);this.B=this.u=null;g.L(this,this.D)};
xRa=function(a,b){b=wRa(b,a.j.Ma);a=a.B.createSession("video/mp4",b);return new vX(null,null,null,null,a)};
yRa=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 vX(null,null,null,null,a)};
xX=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
wRa=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};
yX=function(a,b){g.K.call(this);this.j=g.bh("video");this.u=null;this.D=[];this.C=new g.WE(this);this.B=new PF("fairplay","com.youtube.fairplay","",b);this.B.Ma=a;g.L(this,this.C);this.init()};
zX=function(a,b,c,d){oX.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.j=[];this.u=new g.ho(function(){e.ma("log_qoe",{wvagt:"timer",reqlen:e.j?e.j.length:-1});if(e.j){if(0<e.j.length){var f=e.j.shift();zRa(e,f.info)}0<e.j.length&&(f=e.j[0].time-(0,g.Q)(),e.u.start(Math.max(0,f)))}},0);
g.L(this,this.u);d.subscribe("widevine_set_need_key_info",this.I,this)};
zRa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.t(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ma("log_qoe",{wvagt:"reqnews",canskip:c});c||a.ma("rotated_need_key_info_ready",b)};
AX=function(){this.keys=[];this.values=[]};
BX=function(a,b,c){g.Mz.call(this);this.element=a;this.videoData=b;this.Y=c;this.j=this.videoData.Z;this.drmSessionId=this.videoData.drmSessionId||g.lta();this.u=new Map;this.I=new AX;this.J=new AX;this.B=[];this.Ka=2;this.oa=new g.WE(this);this.Ma=this.Aa=!1;this.heartbeatParams=null;this.ya=this.Z=!1;this.D=null;this.Ba=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||QF()||ZF(c.experiments);c=this.videoData.Vk;this.T="fairplay"===this.j.flavor||c?FI:ARa;this.C=new wX(this.element,this.j);g.L(this,
this.C);RF(this.j)&&(this.ea=new wX(this.element,this.j),g.L(this,this.ea));g.L(this,this.oa);c=this.element;this.j.keySystemAccess?this.oa.S(c,"encrypted",this.vX):Kz(this.oa,c,RF(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.s1);BRa(this);a:switch(c=this.j,a=this.Y.experiments,b=this.u,c.flavor){case "fairplay":if(b=/\sCobalt\/(\S+)\s/.exec(g.sb())){a=[];b=g.t(b[1].split("."));for(var d=b.next();!d.done;d=b.next())d=parseInt(d.value,10),0<=d&&a.push(d);a=parseFloat(a.join("."))}else a=
NaN;19.2999<a?(a=c.Pu,c=c.Ou,c>=a&&(c=.75*a),b=.5*(a-c),c=new pX(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new zX(a.gb("disable_license_delay"),!a.gb("h5_widevine_keyrotationagent_optimization_killswitch"),b,this);break a;default:c=null}if(this.D=c)g.L(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.NO,this),this.D.subscribe("log_qoe",this.Ki,this);ZF(this.Y.experiments);this.Ki({cks:this.j.Qg()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.B&&(this.Oa=new yX(this.videoData.Ma,
this.Y.experiments),g.L(this,this.Oa))};
BRa=function(a){var b=a.C.attach();b?b.then(Cu(function(){CRa(a)}),Cu(function(c){if(!a.isDisposed()){g.Bu(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ma("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Ki({mdkrdy:1}),a.Z=!0);
a.ea&&(b=a.ea.attach())};
ERa=function(a,b,c){a.Ma=!0;c=new JV(b,c);a.Y.N("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));DRa(a,c)};
DRa=function(a,b){if(!a.isDisposed()){a.Ki({onInitData:1});if(a.Y.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.Ki({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Aa&&!a.videoData.isLivePlayback)CX(a);else{if(!(a.Y.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.me)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.j;xOa(b);b.me||(d&&b.j!==d?a.ma("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ma("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ma("widevine_set_need_key_info",b)}}else a.NO(b)}};
CRa=function(a){if(!a.isDisposed())if(a.Y.N("html5_drm_set_server_cert")&&!g.fH(a.Y)||VF(a.j)){var b=a.C.setServerCertificate();b?b.then(Cu(function(c){a.Y.C&&a.ma("ctmp","ssc",{success:c})}),Cu(function(c){a.ma("ctmp","ssce",{n:c.name,
m:c.message})})).then(Cu(function(){DX(a)})):DX(a)}else DX(a)};
DX=function(a){a.isDisposed()||(a.Z=!0,a.Ki({onmdkrdy:1}),CX(a))};
FRa=function(a){return"widevine"===a.j.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
CX=function(a){if(a.Ma&&a.Z&&!a.ya){for(;a.B.length;){var b=a.B[0],c=FRa(a)?yOa(b):g.Bc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}xOa(b);break}a.B.length&&a.createSession(a.B[0])}};
GRa=function(a){var b;if(b=g.jv()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.SC(b),a.ma("ctmp","drm",{metrics:b}))};
FX=function(a){g.K.call(this);var b=this;this.xa=a;this.j=this.xa.V();this.videoData=this.xa.getVideoData();this.hA=0;this.I=this.B=!1;this.D=0;this.C=g.YF(this.j.experiments,"html5_delayed_retry_count");this.u=new g.ho(function(){EX(b.xa)},g.YF(this.j.experiments,"html5_delayed_retry_delay_ms"));
g.L(this,this.u)};
HX=function(a,b,c){var d=a.videoData.B,e=a.videoData.I;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.xa.Oh.D&&d&&"22"===d.itag)return a.xa.Oh.D=!0,a.Jd("qoe.restart",{reason:"fmt.unplayable.22"}),GX(a.xa),!0;var f=!1,h=a.hA+3E4<(0,g.Q)()||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.Jd("auth",c),!0;var l;if(l=!h)l=a.xa.Jq(),l=!!(l.Jf()||l.isInline()||l.isBackground()||
l.Kw()||l.Gw());l&&(c.nonfg="paused",h=!0,a.xa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:vC(e)||uC(e))&&(FAa(a.j.B,e.Ib),c.acfallexp=e.Ib,f=h=!0);!h&&0<a.C&&(a.u.start(),h=!0,c.delayed="1",--a.C);e=a.xa.Ia;if(!h&&((null==d?0:PE(d))||(null==d?0:wC(d)))){var m;if(a.videoData.N("html5_disable_codec_for_playback_on_error")&&e){l=e.ge;var n=d.Ib;l.Wa.has(n)?l=!1:(l.Wa.add(n),l.Z=-1,tV(l,l.B),l=!0);l&&(m="cfallp")}else FAa(a.j.B,d.Ib),m="cfallexp";m&&(f=h=!0,c[m]=d.Ib)}if(!h)return HRa(a,
c);a.hA=(0,g.Q)();h=a.videoData;h.qb?(h=h.qb.TN(),m=Date.now()/1E3+1800,h=h<m):h=!1;c.e=b;h&&(c.staleprog="1");a.Jd("qoe.restart",c);if(h&&IRa(a))return JRa(a),!0;if(hv("philips")&&"GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(p){}d&&PE(d)?(f=a.j.B,f.Z=!0,f=f.j=!0):e?(b=(b=eW(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.J+=1,xV(e.ge,b,!0)):a.videoData.qb&&a.videoData.qb.xL();a.u.isActive()||EX(a.xa,f);return!0};
HRa=function(a,b){if(a.videoData.Wa)return!1;a.j.qb+=1;if(10>=a.j.qb)return!1;b.exiled=""+a.j.qb;a.Jd("qoe.start15s",b);a.xa.ma("playbackstalledatstart");return!0};
IRa=function(a){return a.B?!0:"yt"!==a.j.Oa?!1:a.videoData.Wa?25>a.videoData.Ac:!a.videoData.Ac};
JRa=function(a){if(!a.B){a.B=!0;var b=a.xa.getPlayerState();b=g.iL(b)||b.isSuspended();a.xa.hm();b&&!wJ(a.videoData)||a.xa.ma("signatureexpired")}};
KRa=function(a,b){if((a=a.xa.Zd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.cf();b.details.merr=c?c.toString():"0";b.details.mmsg=a.rf()}};
MRa=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="19310";if(IRa(a))return BH(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new AH("qoe.restart",b)),a.Jd(b.errorCode,b.details),JRa(a),!0;6048E5<(0,g.Q)()-a.j.We&&LRa(a,"signature");return!1};
LRa=function(a,b){try{window.location.reload(),a.Jd("qoe.restart",{detail:"pr."+b})}catch(c){}};
NRa=function(a,b){var c=a.j.B;c.D=!1;c.j=!0;a.Jd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});EX(a.xa,!0)};
ORa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
PRa=function(a,b,c){this.Y=a;this.jB=b;this.xa=c;this.Z=this.I=this.J=this.u=this.j=this.C=this.T=this.B=0;this.D=!1};
IX=function(a,b,c){!a.Y.N("html5_tv_ignore_capable_constraint")&&g.fH(a.Y)&&(c=c.compose(QRa(a,b)));return c};
RRa=function(a,b){var c,d=JX(a,null==(c=b.j)?void 0:c.videoInfos);c=a.xa.getPlaybackRate();return 1<c&&d?(a=zAa(a.Y.B,b.j.videoInfos,c),new dC(0,a,!0,"o")):new dC(0,0,!1,"o")};
JX=function(a,b){return b&&g.fH(a.Y)?b.some(function(c){return 32<c.video.fps}):!1};
SRa=function(a,b){var c=a.xa.gD();if(a.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.CM&&gC(b.videoData.ek))a=c.CM,b.videoData.ek=new dC(0,a,!1,"u");else{var d;if(c&&(null==(d=c.uH)?0:d.length)&&gC(b.videoData.ek)){a=new Map;d=g.t(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.itag,e.video.j);d=[];c=g.t(c.uH);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.ek=new dC(0,a,!1,"u")}}return b.videoData.ek};
QRa=function(a,b){if(g.fH(a.Y)&&sC(a.Y.B,tC.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.VG(a.Y)&&(e=window.screen&&window.screen.width?new g.Gg(window.screen.width,window.screen.height):null);e||(e=a.Y.rl?a.Y.rl.clone():a.jB.Wi());(XG||aV||d)&&e.scale(g.oH());d=e;YI(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||TG||(e=.45);a=g.YF(a.Y.experiments,
"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new dC(0,"93"===c.itag?g.eC[IE(d.width,d.height)]:d.j,!1,"r")}else c=FI;c=c.j}c&&(c=Math.max(c,360));return new dC(0,c,!1,"r")};
TRa=function(a){var b,c,d,e;return g.A(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.x(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.t(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ja(0);break}e=d.value;return g.x(f,wza(e),4);case 4:d=c.next(),f.Ja(3)}})};
VRa=function(a,b){if(!b.videoData.B||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.Sa()-a.T&&(a.B=0);a.B++;a.T=g.Sa();if(4!==a.B)return!1;URa(a,b.videoData.B);return!0};
XRa=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.YF(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),h=g.YF(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.Q)()-a.C?0:f||0<e||0<h))return!1;var l=((0,g.Q)()-a.C)/1E3;a.C=(0,g.Q)();c=c.dC();if(!c)return!1;var m=c.droppedVideoFrames-a.I,n=c.totalVideoFrames-a.Z;a.I=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var p=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||
-1;f&&a.Y.C&&a.xa.va("ddf",{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:p});if(d)return a.j=0,a.u=0,!1;d=60<n?m/n:0;0<d&&(a.J=d);a.u=0<h&&60*d>h?a.u+1:0;if(45<(n-m)/l||!e||g.fH(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;URa(a,b.videoData.B);a.xa.va("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},WRa()));return!0};
YRa=function(a,b){return 0>=g.YF(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
URa=function(a,b){var c=b.Ib,d=b.video.fps;b=b.video.j-1;var e=LF();c=hAa(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.zA("yt-player-performance-cap",e,604800));a.xa.Gx()};
ZRa=function(a,b){if(!b.j.j)return a.D?new dC(0,360,!1,"b"):FI;for(var c=!1,d=!1,e=g.t(b.j.videoInfos),f=e.next();!f.done;f=e.next())PE(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.YF(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.isMobile?240:f;b=g.t(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!PE(e))if(f=MF(e.Ib,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new dC(0,d,!1,"b")};
$Ra=function(a){a=a.xa.Jq();return a.isInline()?new dC(0,480,!1,"v"):a.isBackground()&&60<dy()/1E3?new dC(0,360,!1,"v"):FI};
bSa=function(a,b,c){if(a.Y.experiments.gb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.fH(a.Y)&&(1080<=KF(-1)||b.osid))return FI;var d=g.YF(a.Y.experiments,"html5_autonav_quality_cap"),e=g.YF(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&dy()/1E3>e?(c&&(d=aSa(a,c,d)),new dC(0,d,!1,"e")):FI};
aSa=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};
cSa=function(a,b){a.N("html5_log_media_perf_info")&&(a.xa.va("perfdb",WRa()),a.xa.va("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.xa.va("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.j)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
WRa=function(){return kf(LF(),function(a){return""+a})};
KX=function(a,b){g.K.call(this);this.provider=a;this.I=b;this.j=-1;this.D=!1;this.u=-1;this.playerState=new g.cL;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.delay=new g.ho(this.send,6E4,this);this.B=!1;g.L(this,this.delay)};
LX=function(a){0<=a.j||(3===a.provider.xa.getVisibilityState()?a.D=!0:(a.j=g.cU(a.provider),a.delay.start()))};
dSa=function(a){if(!(0>a.u)){var b=g.cU(a.provider),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.lL(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
MX=function(a,b){b?eSa.test(a):(a=g.Iu(a),Object.keys(a).includes("cpn"))};
NX=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Lu(a)&&Mu()){if(h){var n;2!==(null==(n=fSa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=fSa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.uu("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.uu("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.uu("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&eSa.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};
OX=function(a,b,c,d,e,f,h,l){Mu()&&c.token&&(a=Ju(a,{ctt:c.token,cttype:c.hM,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:MX(a,d.N("html5_assert_cpn_with_regex")),h?xx().sendAndWrite(a,b):xx().sendThenWrite(a,b,l)):d.Gj?(b=b||{},MX(a,d.N("html5_assert_cpn_with_regex")),c=d.Gj,c.queue.push({url:a,options:b}),IAa(c)):b?(MX(a,d.N("html5_assert_cpn_with_regex")),g.Wu(a,b)):g.nx(a,e)};
g.QX=function(a){g.K.call(this);var b=this;this.provider=a;this.logger=new g.MU("qoe");this.j={};this.sequenceNumber=1;this.ib=NaN;this.Id="N";this.J=this.Vb=this.qb=this.Xa=this.B=0;this.Ba=this.pc="";this.yb=this.ea=NaN;this.kb=0;this.wc=-1;this.Mb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Sa=this.ya=this.isOffline=this.oa=!1;this.Dc=[];this.Z=null;this.Oa=this.C=this.Ma=this.D=!1;this.u=-1;this.Ka=!1;this.Ac=new g.ho(this.JZ,750,this);this.T=this.adCpn="";this.adFormat=void 0;this.Yc=0;
this.rd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.Wa=!1;g.L(this,this.Ac);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.Z=c});
g.PX(this,0,"vps",["N"])};
g.PX=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
RX=function(a,b){var c=a.provider.xa.getCurrentTime();g.PX(a,b,"cmt",[c.toFixed(3)]);c=a.provider.xa.wj();if(a.I&&1E3*c>a.I.IR+100&&a.I){var d=a.I,e=d.isAd;c=1E3*c-d.IR;a.Aa=1E3*b-d.N3-c-d.D3;c=(0,g.Q)()-c;b=a.Aa;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.J&&(h.cttAuthInfo={token:d.J,videoId:d.videoId});h.startTime=c-b;LB(f,h);KB({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);JB("pbs",c,f)}else c=a.provider.xa.vj(),c.I!==d.clientPlaybackNonce?
(c.D=d.clientPlaybackNonce,c.u=b):g.aA(new g.Yv("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.va("gllat",{l:a.Aa.toFixed(),prev_ad:+e});delete a.I}};
TX=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.cU(a.provider);var c=a.provider.xa.Lz();if(!isNaN(a.ea)&&!isNaN(c.j)){var d=c.j-a.ea;0<d&&g.PX(a,b,"bwm",[d,(c.C-a.yb).toFixed(3)])}isNaN(a.ea)&&c.j&&a.isOffline&&gSa(a,!1);a.ea=c.j;a.yb=c.C;isNaN(c.bandwidthEstimate)||g.PX(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.Y.C&&0!==Object.keys(c.u).length&&a.va("bwinfo",c.u);if(a.provider.Y.C||a.provider.Y.N("html5_log_meminfo"))d=IQa(),Object.values(d).some(function(e){return void 0!==e})&&a.va("meminfo",
d);
a.Z&&g.PX(a,b,"bat",[a.Z.level,a.Z.charging?"1":"0"]);d=a.provider.xa.getVisibilityState();a.wc!==d&&(g.PX(a,b,"vis",[d]),a.wc=d);RX(a,b);(d=hSa(a.provider))&&d!==a.kb&&(g.PX(a,b,"conn",[d]),a.kb=d);SX(a,b,c)};
SX=function(a,b,c){if(!isNaN(c.Fs)){var d=c.Fs;c.B<d&&(d=c.B);g.PX(a,b,"bh",[d.toFixed(3)])}};
iSa=function(a,b,c){g.yH(a.provider.Y,g.vJ(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.Y.N("kevlar_woffle")||a.provider.Y.N("qoe_nwl_downloads"))e=!0}else a.provider.Y.N("qoe_with_networkless")&&(e=!0);var f=a.provider.Y.N("qoe_send_and_write"),h=a.provider.Y;d=NX(b,h,a.provider.Y.pageId,a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.N("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,OX(b,
d,{token:a.provider.videoData.J,hM:a.provider.videoData.mj,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.ya)):e?(e=a.provider.Y.N("networkless_ajax"),h={method:"POST",postBody:c},f&&a.ya?xx().sendAndWrite(b,h):e?g.Wu(b,{method:"POST",postBody:c}):xx().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,Moa(b,f)||g.nx(b,void 0,void 0,void 0,f))})};
UX=function(a){for(var b=0,c=g.t(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Sk(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.ho(a.reportStats,0,a)).start()};
jSa=function(a){a.provider.videoData.Mg&&VX(a,"prefetch");a.provider.videoData.Ac&&a.va("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Ac});a.provider.videoData.Vb&&VX(a,"monitor");a.provider.videoData.isLivePlayback&&VX(a,"live");a.provider.videoData.Rh&&a.va("ctrl",{mode:a.provider.videoData.Rh},!0);if(a.provider.videoData.Bi){var b=a.provider.videoData.Bi.replace(/,/g,"_");a.va("ytp",{type:b},!0)}a.provider.videoData.MM&&(b=a.provider.videoData.MM.replace(/,/g,"."),a.va("ytrexp",
{ids:b},!0));var c=a.provider.videoData;b=a.provider.Y.N("enable_white_noise")||a.provider.Y.N("enable_webgl_noop");c=g.nJ(c)||g.lJ(c)||g.mJ(c)||g.oJ(c);(b||c)&&(b=(0,g.WX)())&&(a.j.gpu=[b]);wJ(a.provider.videoData)&&g.PX(a,g.cU(a.provider),"dt",["1"]);a.provider.Y.C&&(b=(0,g.Q)()-a.provider.Y.We,a.va("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.ib=g.Su(function(){a.reportStats()},1E4)};
lSa=function(a,b,c){var d=g.cU(a.provider);kSa(a,d,b,0,c);TX(a,d);UX(a)};
kSa=function(a,b,c,d,e){var f=a.provider.Y.deviceParams.cbrver;"Chrome"===a.provider.Y.deviceParams.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e||"")&&mSa(a,3);f=a.provider.xa.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+TN());e&&c.push(nSa(e));g.PX(a,b,"error",c);a.C=!0};
XX=function(a){0<=a.u||(a.provider.Y.Le||3!==a.provider.xa.getVisibilityState()?a.u=g.cU(a.provider):a.Ka=!0)};
VX=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
gSa=function(a,b){a.isOffline=b;g.PX(a,g.cU(a.provider),"is_offline",[a.isOffline?"1":"0"])};
oSa=function(a,b,c,d,e){var f=g.cU(a.provider);1!==b&&3!==b&&5!==b||g.PX(a,f,"vps",[a.Id]);var h=a.j.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.j.xvt=h};
mSa=function(a,b){if(!a.Oa){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Oa=!0}};
nSa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
pSa=function(a){this.provider=a;this.J=!1;this.j=0;this.C=-1;this.lastUpdateTime=NaN;this.u=0;this.segments=[];this.I=this.D=0;this.Z=this.provider.xj().volume;this.T=this.provider.xj().muted;this.B=YX(this.provider)};
ZX=function(a){a.B.startTime=a.u;a.B.endTime=a.j;a.segments.length&&g.Nb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.B:a.segments.length&&a.B.isEmpty()||a.segments.push(a.B);a.D+=a.j-a.u;a.B=YX(a.provider);a.u=a.j};
rSa=function(a){qSa(a);a.I=g.Su(function(){a.update()},100);
a.lastUpdateTime=g.cU(a.provider);a.B=YX(a.provider)};
qSa=function(a){window.clearInterval(a.I);a.I=NaN};
sSa=function(a,b,c){c-=a.lastUpdateTime;return b===a.j&&.5<c};
$X=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Oa=this.qb=this.isFinal=this.Od=this.kb=this.Ac=this.autoplay=this.autonav=!1;this.Vb="yt";this.D=this.I=null;this.sendVisitorIdHeader=this.Sa=!1;this.pageId="";this.C="watchtime"===c;this.B="playback"===c;this.ea="delayplay"===c;this.Z="atr"===c;this.ke="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.Z?"/api/stats/"+c:"//"+b.ul+"/api/stats/"+c;this.Ye=this.B&&b.pfpChazalUi&&a.D;d&&(this.qb=d.fs,d.rtn&&(this.D=d.rtn),
this.C?(this.playerState=d.state,0<d.rti&&(this.I=d.rti)):(this.Le=d.mos,this.Xe=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.wc=d.inview),d.size&&(this.pc=d.size));this.deviceParams=g.yf(b.deviceParams);this.Fd=b.Ac;this.experimentIds=b.experiments.experimentIds;this.Ma=b.Jg;this.Vb=b.Oa;this.region=b.region;this.userAge=b.userAge;this.Xa=b.Kg;this.rd=dy();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.oa=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");
this.Ve=b.N("vss_final_ping_send_and_write");this.ya=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.We=b.N("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.zd=b.u&&b.N("embeds_append_synth_ch_headers");g.QG(b)&&(this.Ka=b.ea);this.accessToken=g.vJ(a);a.je&&(this.je=a.je);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=uJ(a);this.B&&(this.Ac=a.N("html5_enable_log_server_autoplay")&&a.Dp&&"adunit"==rJ(a)?!0:!1);this.autonav=
a.isAutonav||this.autonav;this.Dd=sJ(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.kb=a.D;a.J&&(this.J=a.J,this.ib=a.mj);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.ZJ;this.Mb=a.Mb;a.B&&(this.videoFormat=a.B.itag,a.I&&a.I.itag!==this.videoFormat&&(this.audioFormat=a.I.itag));a.j&&lC(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Ye?"embedded_unbranded":rJ(a);this.Oa=a.Gj;this.Yc=a.ql;if(b=fJ(a))this.livePlaybackType=b;this.od=a.Ex;this.Aa=a.Aa;this.eventId=
a.eventId;this.playlistId=a.ZM||a.playlistId;this.Av=a.Av;this.Rh=a.Rh;this.Bi=a.Bi;this.Pm=a.Pm;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.cH=a.cH;this.referrer=a.referrer;this.Nm=a.LM||a.Nm;this.Wa=a.hL;this.Dv=a.Dv;this.userGenderAge=a.userGenderAge;this.Rx=a.Rx;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn};
aY=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.yH(a.Y,a.accessToken).then(function(d){return NX(a.uri,a.Y,a.pageId,c,d,b,a.zd)})};
tSa=function(a,b){return function(){a.Y.N("html5_simplify_pings")?(a.j=a.Ba,a.Dc=b(),a.rd=0,a.send()):aY(a).then(function(c){var d=a.uri,e=bY(a),f=a.oa,h=a.ya;e.cmt=e.len;e.lact="0";var l=b().toFixed(3);e.rt=Number(l).toString();d=g.ti(d,e);f?(null==c&&(c={}),h?xx().sendAndWrite(d,c):xx().sendThenWrite(d,c)):c?g.Wu(d,c):g.nx(d)})}};
bY=function(a){var b={ns:a.Vb,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.videoFormat,fs:a.qb?"1":"0",rt:a.u(a.Dc),adformat:a.adFormat,content_v:a.Dd,euri:a.Fd,lact:a.rd,live:a.livePlaybackType,cl:(488224367).toString(),mos:a.Le,state:a.playerState,volume:a.Xe};a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autoplay&&(b.autoplay="1");a.Ac&&(b.sautoplay="1");a.kb&&(b.dni="1");!a.C&&a.Ka&&(b.epm=uSa[a.Ka]);a.isFinal&&(b["final"]="1");a.Oa&&(b.splay="1");a.Mb&&
(b.delay=a.Mb);a.Ma&&(b.hl=a.Ma);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Xa&&(b.uga=a.Xa+a.userAge);void 0!==a.Ba&&(b.len=a.u(a.Ba));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.D&&(b.rtn=a.u(a.D));a.Nm&&(b.feature=a.Nm);a.Rh&&(b.ctrl=a.Rh);a.Bi&&(b.ytr=a.Bi);a.audioFormat&&(b.afmt=a.audioFormat);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.yb&&(b.lio=a.u(a.yb));a.C?(b.idpj=a.Yc,b.ldpj=a.od,null!=
a.I&&(b.rti=a.u(a.I)),a.Rx&&(b.ald=a.Rx)):void 0!==a.adType&&(b.at=a.adType);a.pc&&(a.B||a.ea||a.C)&&(b.size=a.pc);null!=a.wc&&(a.B||a.ea||a.C)&&(b.inview=a.u(a.wc));a.C&&(b.volume=cY(a,g.Vd(a.segments,function(d){return d.volume})),b.st=cY(a,g.Vd(a.segments,function(d){return d.startTime})),b.et=cY(a,g.Vd(a.segments,function(d){return d.endTime})),Xl(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=cY(a,g.Vd(a.segments,function(d){return d.playbackRate}))),Xl(a.segments,function(d){return"-"!==
d.j})&&(b.als=g.Vd(a.segments,function(d){return d.j}).join(",")));
b.muted=cY(a,g.Vd(a.segments,function(d){return d.muted?1:0}));
Xl(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=cY(a,g.Vd(a.segments,function(d){return d.visibilityState})));
Xl(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=cY(a,g.Vd(a.segments,function(d){return d.connectionType})));
Xl(a.segments,function(d){return 0!==d.u})&&(b.blo=cY(a,g.Vd(a.segments,function(d){return d.u})));
Xl(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.Vd(a.segments,function(d){return d.C}).join(","));
Xl(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Vd(a.segments,function(d){return d.clipId}).join(","));
if(Xl(a.segments,function(d){return!!d.B})){var c="au";
a.B&&(c="au_d");b[c]=g.Vd(a.segments,function(d){return d.B}).join(",")}Mu()&&a.J&&(b.ctt=a.J,b.cttype=a.ib,b.mdx_environment=a.mdxEnvironment);
a.ke&&(b.etype=void 0!==a.T?a.T:0);a.Wa&&(b.uoo=a.Wa);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=vSa[a.livingRoomAppMode]||a.livingRoomAppMode);a.je?wSa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.cH,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.Pm&&(b.ssrt="1"),a.Dv&&(b.upt=a.Dv));if(a.B||a.ea)a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn);return b};
wSa=function(a,b){if(b&&a.je)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.t(Object.keys(a.je)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.je[h]||(b[h]=a.je[h])};
cY=function(a,b){return g.Vd(b,a.u).join(",")};
xSa=function(a,b){a.attestationResponse&&aY(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.oa?a.ya?xx().sendAndWrite(b,c):xx().sendThenWrite(b,c):g.Wu(b,c)})};
dY=function(a){g.K.call(this);this.provider=a;this.currentPlayerState="paused";this.C=NaN;this.I=[10,10,10,40];this.T=this.J=0;this.ya=this.oa=this.Ba=this.Aa=this.ea=this.Z=this.u=!1;this.B=this.D=NaN;this.j=new pSa(a)};
zSa=function(a){if(!a.u){a.provider.Y.N("disable_embedpage_playback_logging")||16623!==a.provider.videoData.aB||g.aA(Error("Playback for EmbedPage"));var b=eY(a,"playback");a:{if(a.provider.Y.N("web_player_use_server_vss_schedule")){var c,d=null==(c=a.provider.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.provider.videoData.ql,h=a.provider.videoData.Ex,
l=-f;e=g.t(e);for(var m=e.next();!m.done;m=e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.I=c;break a}}a.I=[10+a.provider.videoData.ql,10,10,40+a.provider.videoData.Ex-a.provider.videoData.ql,40]}rSa(a.j);b.D=fY(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.tv&&(b=a.provider.Y,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.tv,oid:d.kR,ptchn:d.cR,pltype:d.xR,content_v:sJ(d)},d.Mu&&Object.assign(c,{m:d.Mu}),b=g.ti(b.ya+"ptracking",
c),gY(a,b));a.provider.videoData.Mb||ySa(a);a.u=!0;a=a.j;a.j=a.provider.xa.wj();a.lastUpdateTime=g.cU(a.provider);!(0===a.u&&5>a.j)&&2<a.j-a.u&&(a.u=a.j);a.J=!0}};
fY=function(a,b){b=void 0===b?NaN:b;var c=g.cU(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.I[a.J];a.J+1<a.I.length&&a.J++;var e=b+d;a.C=g.Ru(function(){if(!a.isDisposed()){a.C=NaN;var f=hY(a),h=ASa(a,f);h.I=e;var l=1E3<a.T;!(1<f.length)&&f[0].isEmpty()||l||(h.D=fY(a,e));h.send();a.T++}},1E3*(e-c));
return a.D=e};
iY=function(a){g.Tu(a.C);a.C=NaN};
hY=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.u||ZX(a);var b=a.segments;a.segments=[];return b};
eY=function(a,b){var c=a.provider;c=Object.assign(c.xj(),c.videoData.xj());Object.assign(c,{state:a.currentPlayerState});b=new $X(a.provider.videoData,a.provider.Y,b,c);b.j=a.provider.xa.wj();a.provider.videoData.isLivePlayback||(b.Ba=a.provider.xa.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.sf(b.j))&&(b.yb=c-b.j);b.Dc=g.cU(a.provider);b.segments=[YX(a.provider)];return b};
ASa=function(a,b){var c=eY(a,"watchtime");if(0<a.B){for(var d=g.t(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.j;c.segments=b;return c};
kY=function(a,b){var c=jY(a,!isNaN(a.D));b&&(a.D=NaN);return c};
jY=function(a,b){var c=ASa(a,hY(a));!isNaN(a.D)&&b&&(c.I=a.D);return c};
ySa=function(a){a.provider.videoData.remarketingUrl&&!a.Aa&&(gY(a,a.provider.videoData.remarketingUrl),a.Aa=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Ba&&(gY(a,a.provider.videoData.youtubeRemarketingUrl),a.Ba=!0);a.provider.videoData.googleRemarketingUrl&&!a.oa&&(gY(a,a.provider.videoData.googleRemarketingUrl),a.oa=!0);a.provider.videoData.ppvRemarketingUrl&&!a.ya&&(gY(a,a.provider.videoData.ppvRemarketingUrl),a.ya=!0);a.Ix()};
lY=function(a){if(!a.isDisposed()&&a.u){a.currentPlayerState="paused";var b=kY(a);b.isFinal=!0;b.send();a.dispose()}};
BSa=function(a,b,c){if(!a.Z){c||(c=eY(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.Z=!0}};
gY=function(a,b){var c=a.provider.Y;g.yH(a.provider.Y,g.vJ(a.provider.videoData)).then(function(d){var e=a.provider.Y.pageId,f=a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.Y.N("vss_pings_using_networkless")||a.provider.Y.N("kevlar_woffle"),l=a.provider.Y.N("allow_skip_networkless");d=NX(b,c,e,f,d);OX(b,d,{token:a.provider.videoData.J,hM:a.provider.videoData.mj,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
CSa=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="-"};
mY=function(a,b,c,d){this.videoData=a;this.Y=b;this.xa=c;this.xj=d;this.j=void 0};
g.cU=function(a){return DSa(a)()};
DSa=function(a){if(!a.j){var b=g.Qa(function(d){var e=(0,g.Q)();d&&631152E6>=e&&(a.xa.va("ytnerror",{issue:28799967,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.xa.EK()}return a.j};
hSa=function(a){if(navigator.connection&&navigator.connection.type)return ESa[navigator.connection.type]||ESa.other;if(g.fH(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
YX=function(a){var b=new CSa;b.C=a.xj().cc||"-";b.playbackRate=a.xa.getPlaybackRate();var c=a.xa.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.zd&&(b.u=1);c=a.xa.getAudioTrack();c.Mc&&c.Mc.id&&"und"!==c.Mc.id&&(b.B=c.Mc.id);b.connectionType=hSa(a);b.volume=a.xj().volume;b.muted=a.xj().muted;b.clipId=a.xj().clipid||"-";b.j=a.videoData.WM||"-";return b};
g.nY=function(a){g.K.call(this);var b=this;this.provider=a;this.qoe=this.j=null;this.Gh=void 0;this.u=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.ll&&(this.j=new dY(this.provider),g.L(this,this.j),this.qoe=new g.QX(this.provider),g.L(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Gh=this.provider.videoData.clientPlaybackNonce)&&this.u.set(this.Gh,this.j));this.B=new KX(this.provider,function(c){b.va("h5h",c)});
g.L(this,this.B)};
FSa=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Gh){var b;null!=(b=a.u.get(a.Gh))&&ZX(b.j)}else a.j&&ZX(a.j.j)};
GSa=function(a){a.B.send();if(a.qoe){var b=a.qoe;if(b.C){"PL"===b.Id&&(b.Id="N");var c=g.cU(b.provider);g.PX(b,c,"vps",[b.Id]);b.D||(0<=b.u&&(b.j.user_intent=[b.u.toString()]),b.D=!0);b.provider.Y.C&&b.va("finalized",{});b.ya=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.t(a.u.values()),c=b.next();!c.done;c=b.next())lY(c.value);else a.j&&lY(a.j);a.dispose()};
HSa=function(a,b){a.j&&BSa(a.j,b)};
ISa=function(a){if(!a.j)return null;var b=eY(a.j,"atr");return function(c){a.j&&BSa(a.j,c,b)}};
JSa=function(a,b,c,d){c.adFormat=c.Dd;var e=b.xa;b=new dY(new mY(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
wj:function(){return e.wj()},
Lz:function(){return e.Lz()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Oz:function(){return e.Oz()},
getVisibilityState:function(){return e.getVisibilityState()},
vj:function(){return e.vj()},
EK:function(){e.EK()},
zA:function(){e.zA()},
va:function(f,h){e.va(f,h)}},b.xj));
b.B=d;g.L(a,b);return b};
KSa=function(){this.Fs=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN};
LSa=function(){this.j=g.dB;this.array=[]};
NSa=function(a,b,c){var d=[];for(b=MSa(a,b);b<a.array.length;++b){var e=a.array[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
OSa=function(a,b){var c=[];a=g.t(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
PSa=function(a){return a.array.slice(MSa(a,0x7ffffffffffff),a.array.length)};
MSa=function(a,b){a=nc(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
QSa=function(a,b){var c=NaN;a=g.t(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
RSa=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
oY=function(a,b,c,d){g.K.call(this);this.T=a;this.oa=b;this.D=c;this.Z=d;this.u=NaN;this.I=this.J=this.started=!1;this.B=[];this.ea=new g.ho(this.Am,250,this);g.L(this,this.ea);this.C=new g.ho(this.Am,0,this);g.L(this,this.C);this.j=new LSa};
SSa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.Z(g.eB(d.namespace),d):a.Z(g.fB(d.namespace),d)}};
TSa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.fH(a)&&(this.C=.01)};
pY=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
qY=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};
USa=function(a,b){this.videoData=a;this.j=b};
VSa=function(a,b,c){return zDa(b,c).then(function(){return bv(new USa(b,b.C))},function(d){d instanceof Error&&Du(d);
var e=YE('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=$E('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.eG(a.B,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:!!b.adaptiveFormats,d:!!b.yb,drm:b.In(),f18:0<=b.dk.indexOf("itag=18"),c18:e};b.j&&(b.In()?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=$E('video/mp4; codecs="avc1.42001E"'),
e.cVP9=$E('video/webm; codecs="vp9"'));b.Z&&(e.drmsys=b.Z.keySystem,f=0,b.Z.j&&(f=Object.keys(b.Z.j).length),e.drmst=f);return new AH(d,e,h)})};
WSa=function(a){this.D=a;this.B=this.u=0;this.C=new PU(50)};
sY=function(a,b,c){g.Mz.call(this);this.videoData=a;this.experiments=b;this.T=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new XSa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Vb?c.u=3:g.jJ(a)&&(c.u=2);"NORMAL"===a.latencyClass&&(c.T=!0);var d=rDa(a);c.D=2===d||-1===d;c.D&&(c.ea++,21530001===bJ(a)&&(c.I=g.YF(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(hv("trident/")||hv("edge/"))c.B=Math.max(c.B,g.YF(b,"html5_platform_minimum_readahead_seconds")||3);g.YF(b,"html5_minimum_readahead_seconds")&&
(c.B=g.YF(b,"html5_minimum_readahead_seconds"));g.YF(b,"html5_maximum_readahead_seconds")&&(c.Z=g.YF(b,"html5_maximum_readahead_seconds"));b.gb("html5_force_adaptive_readahead")&&(c.C=!0);switch(bJ(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.gb("html5_live_smoothly_extend_max_seekable_time")}this.policy=c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Vb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(bJ(a)){case 21530001:b=
1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=rY(this,b)};
YSa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===rDa(a.videoData)&&--c;return tY(a)*c};
uY=function(a,b){var c=a.Hl(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*tY(a);return b>=c-a};
ZSa=function(a,b,c){b=uY(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B};
$Sa=function(a,b){b=uY(a,b);a.D!==b&&a.ma("livestatusshift",b);a.D=b};
tY=function(a){return a.videoData.j?FF(a.videoData.j)||5:5};
rY=function(a,b){b=Math.max(Math.max(a.policy.ea,Math.ceil(a.policy.B/tY(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.Z/tY(a))),b)};
XSa=function(){this.ea=1;this.B=0;this.Z=Infinity;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.T=!1};
xY=function(a){g.K.call(this);this.xa=a;this.Y=this.xa.V();this.C=this.j=0;this.B=new g.ho(this.D,1E3,this);this.Ba=new vY({delayMs:g.YF(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.Z=new vY({delayMs:g.YF(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ka=wY(this,"html5_seek_set_cmt");this.oa=wY(this,"html5_seek_jiggle_cmt");this.ya=wY(this,"html5_seek_new_elem");this.Wa=wY(this,"html5_unreported_seek_reseek");this.J=wY(this,"html5_long_rebuffer_jiggle_cmt");this.T=new vY({delayMs:2E4});
this.I=wY(this,"html5_ads_preroll_lock_timeout");this.Ma=new vY({delayMs:g.YF(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Yv:!this.Y.N("html5_report_slow_ads_as_error")});this.Oa=new vY({delayMs:g.YF(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Yv:!this.Y.N("html5_skip_slow_buffering_ad")});this.Aa=wY(this,"html5_seek_over_discontinuities");this.Sa=new vY({delayMs:g.YF(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.ea=wY(this,"html5_slow_start_no_media_source");
this.u={};g.L(this,this.B)};
wY=function(a,b){var c=g.YF(a.Y.experiments,b+"_delay_ms");a=a.Y.N(b+"_cfl");return new vY({delayMs:c,Yv:a})};
aTa=function(a,b,c,d,e,f,h){var l=eF(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1<c.length?c.start(l+1):d;yY(a,a.Aa,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
yY=function(a,b,c,d,e,f,h,l){bTa(b,c)?(a.Jd(e,b,h),b.Yv||f()):(b.YE&&b.triggerTimestamp&&!b.B?(c=(0,g.Q)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.triggerTimestamp>b.YE,c=b.j&&c-b.j>b.lL||f?b.B=!0:!1):c=!1,c&&(l=Object.assign({},a.Yb(b),l),l.wn=h,l.we=e,l.wsuc=d,a.xa.va("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))};
vY=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.lL?1E3:b.lL,d=void 0===b.YE?3E4:b.YE;b=void 0===b.Yv?!1:b.Yv;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.lL=c;this.YE=d;this.Yv=b};
bTa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.Q)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1};
AY=function(a){g.K.call(this);var b=this;this.xa=a;this.Y=this.xa.V();this.videoData=this.xa.getVideoData();this.policy=new cTa(this.Y);this.ea=new xY(this.xa);this.playbackData=null;this.Oa=new g.WE;this.I=this.j=this.Ia=this.mediaElement=null;this.u=NaN;this.C=0;this.Aa=NaN;this.B=null;this.Ba=NaN;this.D=this.J=null;this.Z=this.T=!1;this.ya=new g.ho(function(){dTa(b,!1)},2E3);
this.Xa=new g.ho(function(){zY(b)});
this.Ma=new g.ho(function(){b.T=!0;eTa(b)});
this.timestampOffset=0;this.Sa=!0;this.Ka=0;this.Wa=NaN;this.oa=new g.ho(function(){var c=b.Y.ke;c.j+=1E4/36E5;c.j-c.B>1/6&&(fBa(c),c.B=c.j);b.oa.start()},1E4);
g.L(this,this.ea);g.L(this,this.Oa);g.L(this,this.ya);g.L(this,this.Ma);g.L(this,this.Xa);g.L(this,this.oa)};
fTa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new WSa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(QI(a.videoData)&&a.Ia){var c=a.Ia.BC.gi()||0;break a}if(a.videoData.j){c=a.videoData.j.T;break a}}c=0}return c}),a.j=new sY(a.videoData,a.Y.experiments,function(){return a.Sd(!0)}));
BY(a)||(a.C=a.C||a.videoData.startSeconds||0)};
EY=function(a,b){(a.Ia=b)?CY(a,!0):DY(a)};
gTa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.j&&!(c>=e.u&&c<e.B)){var f=e.j.Jh(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.sf(f),f-=e.D(),e.C.add(f))}}a.j&&(d&&(d=a.j,e=a.mediaElement?$K(a.mediaElement):0,d.C++,3>d.C||3E3>g.Sa()-d.I||(d.I=g.Sa(),d.u.push(e),50<d.u.length&&d.u.shift())),d=a.j,ZSa(d,c,void 0===b?!0:b),$Sa(d,c),b&&dTa(a,!0))};
dTa=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!uY(c,d)&&c.bp()?(c.policy.T&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Td()?Math.min(c.videoData.Td()+10,c.Hl()):NaN;if(!isNaN(c)){if(a.Ia&&b&&(b=a.ya.isActive(),d=a.j.Hl(),(d=UQa(a.Ia,d-a.Bd()))&&!b)){a.ya.start();a.xa.va("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Bd()});a.seekTo(d+a.Bd(),{qe:"playbacktimeline_inBufferSeek"});return}a.seekTo(c,{qe:"playbacktimeline_pegToLive"})}}};
CY=function(a,b){if(a.j&&a.Ia){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.j,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){var d=rY(b,b.j-1);break b}if(b.policy.C){d=rY(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(c=a.xa.qc,b=YSa(a.j),c.qoe&&(c=c.qoe,g.PX(c,g.cU(c.provider),"lra",[b]),c.va("live-readahead-seconds",{v:b})));b=a.Ia;c=a.j.j;d=a.j;d=(d.j-1+d.policy.j)*
tY(d);var e=b.u;a=a.j.policy.I;e.fg=Math.max(c-1,0);e.Z=a;b.B&&(b.B.ea=d)}};
hTa=function(a,b){a.C=b};
eTa=function(a){iTa(a).then(void 0,function(){DY(a)});
FY(a).then(function(c){jTa(a,c)},function(){DY(a)});
tU(a.xa);if(a.Y.C){var b=a.Yb();b["native"]=""+ +a.Z;b.tgt=""+a.u;a.xa.va("startSeek",b)}};
iTa=function(a){a.J||(a.Ia?isFinite(a.u)?a.J=a.Ia.seek(a.u-a.timestampOffset):(OI(a.videoData),a.J=VQa(a.Ia),a.u=a.Ia.getCurrentTime()+a.timestampOffset):a.J=yh(a.u-a.timestampOffset));return a.J};
FY=function(a){var b=a.B;b||(a.B=new LG,b=a.B,zY(a));return b};
GY=function(a,b,c){return isNaN(b)?NaN:g.Ag(b,a.Td(),a.Sd(c))};
zY=function(a){if(a.B)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.qj()&&0<ZK(a.mediaElement)&&(a.u=GY(a,a.u,!1)),!a.mediaElement||!kTa(a))a.Xa.start(750);else if(!isNaN(a.u)&&isFinite(a.u)&&a.Ba!==a.u-a.timestampOffset){var b=a.mediaElement.getCurrentTime()-a.u;if(Math.abs(b)<=a.Ka)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else if(!OI(a.videoData)&&a.u>=a.Sd()-.1)a.u=a.Sd(),a.B.resolve(a.Sd()),dU(a.xa);else try{var c=a.u-a.timestampOffset;
a.mediaElement.seekTo(c);a.ea.j=c;a.Ba=c;a.C=a.u}catch(d){}}};
kTa=function(a){if(!a.mediaElement||0===a.mediaElement.qj()||0<a.mediaElement.cf())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.In())return b;if(0<=a.u){var c=a.mediaElement.Kz();if(c.length||!b)return fF(c,a.u-a.timestampOffset)}return b};
jTa=function(a,b){a.D&&(a.D.resolve(b),a.xa.ma("SEEK_COMPLETE"),a.Y.C&&(b=a.Yb(),b["native"]=""+ +a.Z,a.xa.va("seekEnd",b)));DY(a)};
DY=function(a){a.u=NaN;a.Ba=NaN;a.B=null;a.J=null;a.D=null;a.T=!1;a.Z=!1;a.Ka=0;a.ya.stop();a.Ma.stop()};
lTa=function(a){if(a.mediaElement){for(var b=g.t(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Oa.S(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.Z&&d!==a.u)a.B=new LG,a.Ba=d,e=e.getCurrentTime(),a.ea.j=e,a.seekTo(d,{qe:"playbacktimeline_mediaElementEvent"}),a.Z=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.Sa){e=
"ss";d=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Dc&&!BY(a)&&(e="mss",d=a.videoData.Dc);var f;if(f=!d)f=(kJ(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||BY(a))&&!!a.videoData.j;f&&(d=a.videoData.liveUtcStartSeconds||a.videoData.Dc,e="utc",d=a.Sd()-a.sf(a.Sd())+d);!d&&a.videoData.Cv&&(e="stss",d=a.videoData.Cv);f={};if(d){if(d>a.Sd()||d<a.Td())f.minSeekableTime=a.Td(),f.maxSeekableTime=a.Sd(),a.xa.va("startSecondsOutOfBounds",f),a.N("html5_skip_oob_start_seconds")&&
a.videoData.Ud()&&(d=GY(a,d,!1));a.seekTo(d,{qe:"playbacktimeline_startSeconds"});f[e]=d;a.xa.va("startSeconds",f);a.Sa=!1}else a.videoData.Dc&&(f[e]=a.videoData.Dc+a.Bd(),a.xa.va("startSeconds",f))}zY(a);break;case "progress":zY(a)}});
a.D||a.C||!a.mediaElement.oL()||a.seekTo(.01,{qe:"playbacktimeline_setupMediaElement"})}};
BY=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
HY=function(a,b){a.xa.va("sdai",{adj4t:b.toFixed(3)});a.Aa=b;b+=1;a.u=b;a.C=b;FY(a).then(function(c){jTa(a,c)},function(){DY(a)})};
cTa=function(a){this.j=a.N("html5_live_smoothly_extend_max_seekable_time")};
IY=function(){this.finished=this.started=!1};
JY=function(a){this.j=a;this.iv=(0,g.EW)(fA(16))};
tQa=function(a,b){var c;return g.A(function(d){(0,g.Q)();c=ZAa(a.j);return d.return(c.encrypt(b,a.iv))})};
uQa=function(a,b){var c;return g.A(function(d){(0,g.Q)();var e=a.j;e.C||(e.C=new RAa(e.B));c=e.C;return d.return(UAa(c,b,a.iv))})};
mTa=function(a,b,c){var d;return g.A(function(e){(0,g.Q)();d=ZAa(a.j);return e.return(d.decrypt(b,c))})};
nTa=function(a){this.Kk=a;this.u=!1;this.j=[]};
LY=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.YL;if(b=b.buffer){var d=void 0;null==(d=KY(a.Kk.Nd,c))||WW(d,c,b)}else if(b=a.Kk,b.j[c].BQ=!0,b=KY(b.Nd,c),null==b?0:$V(b,c))null==b||TW(b,c)}};
g.qTa=function(a){this.data=a;this.j=0;this.D=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===MY.length){MY.length=288;MY.fill(8);for(a=144;280>a;a++)MY[a]=255>=a?9:7;oTa.length=32;oTa.fill(5);NY.length=286;NY.fill(0);for(a=261;285>a;a++)NY[a]=Math.floor((a-261)/4);OY[257]=3;for(a=258;285>a;a++){var b=OY[a-1];b+=1<<NY[a-1];OY[a]=b}OY[285]=258;for(a=0;30>a;a++)pTa[a]=3>=a?0:Math.floor((a-2)/2);for(a=PY[0]=1;30>a;a++)b=PY[a-1],b+=1<<pTa[a-1],PY[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.wTa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!QY(b,1);switch(QY(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=QY(b,5)+257;var f=QY(b,5)+1;for(var h=QY(b,4)+4,l=0;l<h;l++)d[rTa[l]]=QY(b,3);d=sTa(d);for(h=e+f;c.length<h;){l=tTa(b,d);switch(l){case 16:l=c[c.length-1];var m=QY(b,2)+3;break;case 17:l=0;m=QY(b,3)+3;break;case 18:l=0;m=QY(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,uTa(b,c,f));break;case 1:uTa(b,MY,oTa);break;case 0:vTa(b,
b.j&7);c=QY(b,16);e=QY(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};
uTa=function(a,b,c){b=sTa(b);c=sTa(c);for(var d=a.data,e=a.C,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256<n){h=OY[n];h+=QY(a,NY[n]);m=tTa(a,c);l=PY[m];l+=QY(a,pTa[m]);if(xTa&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];f+=
h;h=a.register;l=a.j;m=a.u}else break}a.B=f};
tTa=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 vTa(a,c&15),c>>4;for(vTa(a,7);0>c;)c=b[QY(a,1)-c];return c>>4};
QY=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};
vTa=function(a,b){a.j-=b;a.register>>=b};
sTa=function(a){for(var b=[],c=g.t(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
yTa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,w;return g.A(function(y){switch(y.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=b.exports.inflateGzip(c,a.length,e))throw Error("inflateGzip="+f);h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return y.return(h)}catch(z){g.$z(z),b.reload()}if(!("DecompressionStream"in
window))return y.return(g.wTa(new g.qTa(a)));l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new GC([]);case 2:return g.x(y,n.read(),4);case 4:q=y.u;r=q.value;if(w=q.done){y.Ja(3);break}p.append(r);y.Ja(2);break;case 3:return y.return(LC(p))}})};
zTa=function(a){OW.call(this,"onesie");this.Nd=a;this.j={};this.C=!0;this.B=null;this.queue=new nTa(this)};
ATa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.t(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())if(c=c.value,!a.j[c].BQ){var d=a.queue;d.j.push({YL:c,isEncrypted:!1});d.u||LY(d)}};
BTa=function(a,b){var c=b.totalLength,d=!1;switch(a.B){case 0:a.CK(b,a.C).then(function(e){var f=a.Nd;f.Pc("oprr");f.playerResponse=e;f.QJ||(f.jx=!1);RY(f)},function(e){a.Nd.fail(e)});
break;case 2:a.Pc("ormk");b=LC(b);a.queue.decrypt(b);break;default:d=!0}a.Nd.Bj&&a.Nd.va("ombup","id.11;pt."+a.B+";len."+c+(d?";ignored.1":""));a.B=null};
CTa=function(a,b){var c=OF(b.Y.experiments,"debug_bandaid_hostname");if(c)b=LT(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.t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,QT(f)<QT(d)&&(d=f);e=g.YF(b.Y.experiments,"html5_onesie_host_racing_cap_ms");0<e&&0!==d.JQ&&QT(c)-QT(d)<=e&&(d=c);var h;b.D=null==(h=d)?void 0:h.r_}b=d.location.clone()}else b=void 0;if(b&&a.videoId){h=AG(a.videoId);a=[];if(h)for(h=g.t(h),c=h.next();!c.done;c=
h.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}};
DTa=function(a,b){return b.load().then(function(){return CTa(a,b)})};
ETa=function(a,b){g.K.call(this);this.xa=a;this.playerRequest=b;this.Y=this.xa.V();this.videoData=this.xa.getVideoData();this.logger=new g.MU("onesie");this.Bj=this.Y.C;this.XH=this.Y.Si;this.xE=new JY(this.XH.j);this.xhr=null;this.Vn=new LG;this.EQ=!1;this.playerResponse="";this.Yj=new zW(this);this.Kk=new zTa(this);this.Zw=new g.ho(this.yQ,1E4,this);this.DS=new g.ho(this.C_,2E3,this);this.Vt="";this.LD=this.TQ=!1;this.Nq=this.xa.Ez();this.LK="";this.jx=this.N("html5_onesie_wait_for_media_availability");
this.enableCompression=this.QJ=this.KD=!1;g.L(this.videoData,this);g.L(this,this.Zw);g.L(this,this.DS);a=dG(this.Y.B);this.N("html5_onesie_media_bytes")&&aJ&&a&&(this.N("html5_onesie_ads")?this.og=new Map:(this.hd=new SW(this),g.L(this,this.hd)));this.QP=new Map};
KY=function(a,b){return a.og?(b=b.split(";")[0],a.og.get(b)):a.hd};
FTa=function(a,b,c){var d;return g.A(function(e){if(1==e.j)return a.Pc("oprd_s"),pG()?g.x(e,mTa(a.xE,b,c),3):(d=a.xE.decrypt(b,c),e.Ja(2));2!=e.j&&(d=e.u);a.Pc("oprd_c");return e.return(d)})};
GTa=function(a){return a.N("html5_onesie_host_probing")||a.Bj?aJ:!1};
RY=function(a){if(!a.playerResponse)return!1;if(a.KD)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&YI(a.videoData);if(!a.og&&a.jx&&a.hd&&!qQa(a.hd,b))return!1;if(a.og&&a.jx){if(!a.og.has(a.Vt))return!1;var c=a.og.get(a.Vt);if(c&&!qQa(c,b))return!1}a.Pc("ofr");a.Vn.resolve(a.playerResponse);a.N("html5_onesie_time_out_after_resolving")?a.Zw.start():a.Zw.stop();return a.KD=!0};
ITa=function(a){var b;if((null!=(b=a.og)?b:a.hd)&&!a.N("html5_onesie_media_capabilities")){a.Pc("ogsf_s");b=dQa(a.xa.getVideoData(),function(d,e){a.va(d,e)});
var c=HTa(a.xa);b.video=WPa(c,b.video);a.Pc("ogsf_c");if(b.video.length)return b;a.va("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
JTa=function(a){if(!a.Qj)return{};var b=rW(a.Qj);b.d=mPa(a.Qj);b.shost=a.uT;b.ty="o";return b};
PTa=function(a){function b(e){return c.Wk&&(!d.Dm||!d.u.D)||"yt"!==c.Oa&&(38===d.Aa&&"books"===c.playerStyle||30===d.Aa&&"docs"===c.playerStyle||33===d.Aa&&"google-live"===c.playerStyle)?KTa(a,d,e):LTa(a,d).then(function(){SY(a,d)},function(f){SY(a,d,!0);
throw f;})}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.Oa=!0;return MTa(a)?NTa(a,d).then(function(){SY(a,d)},function(e){e=CH(e);
if(BH(e.severity))return SY(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(OTa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
MTa=function(a){var b=a.V();if(!b.N("html5_onesie"))return!1;var c=a.getVideoData();if(!b.N("html5_onesie_cast")&&(c.J||c.Rh)||!b.N("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Oa)return!1;c=b.Si;if(!c||!c.j)return a.handleError(new AH("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.D<(0,g.Q)()&&(a.va("okexp","1"),(c=a.Ez())&&b.N("html5_prefer_trusted_host_on_key_expiration"))){c.u=!0;var d;(b=null==(d=c.j.get(0))?void 0:AC(d.location))&&!NT(b)&&c.j.delete(0)}if(OTa)return a.va("ost3",
"1"),!1;d={};return 0<Object.keys(d).length?(d.onesie="0",a.handleError(new AH("html5.missingapi",d)),!1):!0};
QTa=function(a){var b=GL();HL(b,a);return g.QN(b,YHa())};
NTa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D,G,E,J,M,P,X,W,S,ca,O,xa;return g.A(function(la){if(1==la.j)return b.fetchType="onesie",c=uIa(b,a.getPlayerSize(),a.getVisibilityState()),d=new ETa(a,c),g.x(la,d.fetch(),2);e=la.u;f={player_response:e};b.Oa=!1;h=a.V();l=h.N("html5_onesie_ads");m=a.Xh.Ft;if(!l)b.rl=d.hd;else if(l&&d.og)for(n=g.t(d.og.entries()),p=n.next();!p.done;p=n.next())q=p.value,r=g.t(q),w=r.next().value,y=r.next().value,z=w,B=y,m.j.set(z,B,180);D=g.t(d.QP.entries());for(G=
D.next();!G.done;G=D.next())E=G.value,J=g.t(E),M=J.next().value,P=J.next().value,X=M,W=P,m.u.set(X,W,180);g.JI(b,f,!0);if(b.Oa||HI(b))return la.return(Promise.resolve());l?(m.j.Zf(),m.u.Zf()):b.rl=void 0;S={};ca="onesie.response";O=0;b.errorCode?(ca="auth",S.ec=b.errorCode,S.ed=b.errorDetail,S.es=b.Dl||"",O=2):(S.successButUnplayable="1",S.disposed=""+ +b.isDisposed(),S.afmts=""+ +/adaptiveFormats/.test(e),S.cpn=b.clientPlaybackNonce);xa=new AH(ca,S,O);return la.return(Promise.reject(xa))})};
LTa=function(a,b){var c,d,e,f,h,l,m,n,p,q;return g.A(function(r){switch(r.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){r.Ja(4);break}if(!(0<f)){r.Ja(5);break}return g.x(r,Fh(5E3),6);case 6:h=new g.Yv("Retrying OnePlatform request",{attempt:f}),g.aA(h);case 5:return g.qa(r,7),g.x(r,RTa(a,b),9);case 9:return r.return();case 7:l=g.sa(r);m=CH(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 r.return(Promise.reject(m));
a.handleError(m);if(BH(m.severity)){r.Ja(4);break}case 3:f++;r.Ja(2);break;case 4:return p=c?"auth":"manifest.net.retryexhausted",q=c?2:1,r.return(Promise.reject(new AH(p,{backend:"op"},q)))}})};
RTa=function(a,b){function c(W){2===W.readyState&&a.Pc("ps_c")}
var d,e,f,h,l,m,n,p,q,r,w,y,z,B,D,G,E,J,M,P,X;return g.A(function(W){switch(W.j){case 1:b.fetchType="gp";d=a.V();e=g.yH(d,g.vJ(b));if(!e.j){f=e.getValue();W.Ja(2);break}return g.x(W,e.j,3);case 3:f=W.u;case 2:return h=f,l=QTa(h),m=uIa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.CN(STa),p=g.vJ(b),q=(0,g.Q)(),r=!1,w="empty",y=0,a.Pc("psns"),z={Ww:c},g.x(W,g.JL(l,m,n,void 0,z),4);case 4:B=W.u;a.Pc("psnr");if(b.isDisposed())return W.return();B?"error"in B&&B.error?(r=!0,w="esf:"+B.error.message,y=
B.error.code):B.errorMetadata&&(r=!0,w="its",y=B.errorMetadata.status):r=!0;if(r)return D=0,G=((0,g.Q)()-q).toFixed(),E={backend:"op",rc:""+y,rt:G,reason:w,has_kpt:b.pc?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.uu("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.Ka?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Rh||"",token_eq:p===g.vJ(b)?"1":"0"},J="manifest.net.connect",429===y?(J="auth",D=2):200<y&&
(J="manifest.net.badstatus",400===y&&(D=2)),W.return(Promise.reject(new AH(J,E,D)));b.Oa=!1;g.JI(b,{raw_player_response:B},!0);if(b.errorCode)return M={ec:b.errorCode,ed:b.errorDetail,es:b.Dl||""},W.return(Promise.reject(new AH("auth",M,2)));if(!b.Oa&&!HI(b))return P=b.isAd()?"auth":"manifest.net.retryexhausted",X=b.isAd()?2:1,W.return(Promise.reject(new AH(P,{successButUnplayable:"1",hasMedia:hJ(b)?"1":"0"},X)));g.pa(W)}})};
KTa=function(a,b,c){function d(){return!0}
function e(y){y=CH(y);if(BH(y.severity))return Promise.reject(y);a.handleError(y);return!1}
var f,h,l,m,n,p,q,r,w;return g.A(function(y){switch(y.j){case 1:var z=a.V(),B=a.getPlayerSize(),D=a.getVisibilityState();a.isFullscreen();var G=window.location.search;if(38===b.Aa&&"books"===z.playerStyle)G=b.videoId.indexOf(":"),G=g.ti("//web.archive.org/web/20221116135136/https://play.google.com/books/volumes/"+b.videoId.slice(0,G)+"/content/media",{aid:b.videoId.slice(G+1),sig:b.MX});else if(30===b.Aa&&"docs"===z.playerStyle)G=g.ti("https://web.archive.org/web/20221116135136/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.authKey,eurl:z.Ac});
else if(33===b.Aa&&"google-live"===z.playerStyle)G=g.ti("//web.archive.org/web/20221116135136/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==z.Oa&&g.$z(Error("getVideoInfoUrl for invalid namespace: "+z.Oa));var E={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:z.Ac,ps:z.playerStyle,el:rJ(b),hl:z.Jg,list:b.playlistId,agcid:b.aN,aqi:b.adQueryId,sts:19310,lact:dy()};Object.assign(E,z.deviceParams);z.forcedExperiments&&(E.forced_experiments=z.forcedExperiments);b.Ka?(E.vvt=b.Ka,b.mdxEnvironment&&
(E.mdx_environment=b.mdxEnvironment)):g.vJ(b)&&(E.access_token=g.vJ(b));b.adFormat&&(E.adformat=b.adFormat);0<=b.slotPosition&&(E.slot_pos=b.slotPosition);b.breakType&&(E.break_type=b.breakType);null!==b.bM&&(E.ad_id=b.bM);null!==b.EM&&(E.ad_sys=b.EM);null!==b.aG&&(E.encoded_ad_playback_context=b.aG);b.GM&&(E.tpra="1");z.captionsLanguagePreference&&(E.cc_lang_pref=z.captionsLanguagePreference);z.ib&&2!==z.ib&&(E.cc_load_policy=z.ib);var J=g.Nv(g.Mv.getInstance(),65);g.pH(z)&&null!=J&&!J&&(E.device_captions_on=
"1");z.mute&&(E.mute=z.mute);b.annotationsLoadPolicy&&2!==z.annotationsLoadPolicy&&(E.iv_load_policy=b.annotationsLoadPolicy);b.Nu&&(E.endscreen_ad_tracking=b.Nu);(J=z.oa.get(b.videoId))&&J.uB&&(E.ic_track=J.uB);b.ya&&(E.itct=b.ya);uJ(b)&&(E.autoplay="1");b.mutedAutoplay&&(E.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(E.autonav="1");b.MG&&(E.noiba="1");b.isMdxPlayback&&(E.mdx="1",E.ytr=b.Bi);b.mdxControlMode&&(E.mdx_control_mode=b.mdxControlMode);b.Fo&&(E.ytrcc=b.Fo);b.SG&&(E.utpsa="1");b.isFling&&
(E.is_fling="1");b.isInlinePlaybackNoAd&&(E.mute="1");b.vnd&&(E.vnd=b.vnd);b.forceAdsUrl&&(J=3===b.forceAdsUrl.split("|").length,E.force_ad_params=J?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Mg&&(E.preload=b.Mg);B.width&&(E.width=B.width);B.height&&(E.height=B.height);b.Gj&&(E.splay="1");b.ypcPreview&&(E.ypc_preview="1");sJ(b)&&(E.content_v=sJ(b));b.Vb&&(E.livemonitor=1);z.authUser&&(E.authuser=z.authUser);z.pageId&&(E.pageid=z.pageId);z.Sa&&(E.ei=z.Sa);z.u&&(E.iframe="1");b.contentCheckOk&&(E.cco="1");
b.racyCheckOk&&(E.rco="1");z.D&&b.YG&&(E.live_start_walltime=b.YG);z.D&&b.al&&(E.live_manifest_duration=b.al);z.D&&b.playerParams&&(E.player_params=b.playerParams);z.D&&b.cycToken&&(E.cyc=b.cycToken);z.D&&b.IM&&(E.tkn=b.IM);0!==D&&(E.vis=D);z.enableSafetyMode&&(E.enable_safety_mode="1");b.pc&&(E.kpt=b.pc);b.Jm&&(E.kids_age_up_mode=b.Jm);b.kidsAppInfo&&(E.kids_app_info=b.kidsAppInfo);b.Ev&&(E.upg_content_filter_mode="1");z.widgetReferrer&&(E.widget_referrer=z.widgetReferrer.substring(0,128));b.oa?
(B=null!=b.oa.latitudeE7&&null!=b.oa.longitudeE7?b.oa.latitudeE7+","+b.oa.longitudeE7:",",B+=","+(b.oa.clientPermissionState||0)+","+(b.oa.locationRadiusMeters||"")+","+(b.oa.locationOverrideToken||"")):B=null;B&&(E.uloc=B);b.Hm&&(E.internalipoverride=b.Hm);z.embedConfig&&(E.embed_config=z.embedConfig);z.dk&&(E.co_rel="1");0<z.ancestorOrigins.length&&(E.ancestor_origins=Array.from(z.ancestorOrigins).join(","));void 0!==z.homeGroupInfo&&(E.home_group_info=z.homeGroupInfo);void 0!==z.livingRoomAppMode&&
(E.living_room_app_mode=z.livingRoomAppMode);z.enablePrivacyFilter&&(E.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(E.is_living_room_deeplink="1");b.Hu&&b.Iu&&(E.clip=b.Hu,E.clipt=b.Iu);b.Lu&&(E.disable_watch_next="1");b.Fm&&(E.forced_by_var="1");for(var M in E)!TTa.has(M)&&E[M]&&512<String(E[M]).length&&(g.aA(Error("GVI param too long: "+M)),E[M]="");M=z.ya;g.YG(z)&&(M=YA(M.replace(/\b(?:www|web)([.-])/,"tv$1"))||z.ya);z=g.ti(M+"get_video_info",E);G&&(z=Gma(z,G));G=z}f=G;l=(h=b.isAd())?1:
3;m=0;case 2:if(!(m<l)){y.Ja(4);break}n=f;if(!(0<m)){y.Ja(5);break}return g.x(y,Fh(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Ku(f,p);case 5:return g.x(y,UTa(b,n).then(d,e),7);case 7:if(q=y.u)return y.return();m++;y.Ja(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";w=h?2:1;if(!h&&1E-4>Math.random())try{g.aA(new g.Yv("b/152131571",btoa(f)))}catch(P){}return y.return(Promise.reject(new AH(r,{backend:"gvi"},w)))}})};
UTa=function(a,b){function c(B){if(!a.isDisposed()){B=B?B.status:-1;var D=0,G=((0,g.Q)()-p).toFixed();G={backend:"gvi",rc:""+B,rt:G};var E="manifest.net.connect";429===B?(E="auth",D=2):200<B&&(E="manifest.net.badstatus",400===B&&(D=2));return Promise.reject(new AH(E,G,D))}}
function d(B){return c(B.xhr)}
var e,f,h,l,m,n,p,q,r,w,y,z;return g.A(function(B){if(1==B.j){a.fetchType="gvi";e=a.V();var D={};a.UK&&(D.ytrext=a.UK);(l=g.sf(D)?void 0:D)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Ku(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b);m={};e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData);(n=OF(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.Q)();return g.x(B,tF(Yu,h,f).then(void 0,d),2)}q=B.u;if(!q||!q.responseText)return B.return(c(q));a.Oa=!1;r=Gu(q.responseText);g.JI(a,r,!0);if(a.errorCode)return w={ec:a.errorCode,ed:a.errorDetail,es:a.Dl||""},B.return(Promise.reject(new AH("auth",w,2)));if(!a.Oa&&!HI(a))return y=a.isAd()?"auth":"manifest.net.retryexhausted",z=a.isAd()?2:1,B.return(Promise.reject(new AH(y,{successButUnplayable:"1"},z)));g.pa(B)})};
SY=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.A(function(l){if(1==l.j){d=a.V();if(c&&(!g.sH(d)||"embedded"!==rJ(b))||b.Lu||"adunit"!==rJ(b)&&(g.fH(d)||gH(d)||g.ZG(d)||g.YG(d)||"WEB_CREATOR"===dH(d)))return l.return();e=g.yH(d,g.vJ(b));return e.j?g.x(l,e.j,3):(f=e.getValue(),l.Ja(2))}2!=l.j&&(f=l.u);h=f;return l.return(VTa(a,b,h))})};
VTa=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.j){g.qa(m,2);d=QTa(c);var n=b.V();g.Mv.getInstance();var p={context:g.gO(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===rJ(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.dk&&(p.showContentOwnerOnly=!0);b.QM&&(p.showShortsOnly=!0);g.Nv(0,141)&&(p.autonavState=g.Nv(0,140)?"STATE_OFF":"STATE_ON");if(g.pH(n)){n=g.Nv(0,65);n=
null!=n?!n:!1;var q=!!g.AA("yt-player-sticky-caption");p.captionsRequested=n&&q}e=p;f=g.CN(WTa);a.Pc("wn_s");return g.x(m,g.JL(d,e,f),4)}if(2!=m.j)return h=m.u,a.Pc("wn_r"),!h||"error"in h&&h.error||(l=h,b.V().N("embeds_web_enable_info_panel_preview")&&g.WG(b.V())&&l.trackingParams&&(p=l.trackingParams,yL(wL(),p)),g.JI(b,{raw_watch_next_response:h},!1)),g.ra(m,0);g.sa(m);g.pa(m)})};
XTa=function(a){a.Pc("vir");a.Pc("ps_s");ZB("vir",void 0,"video_to_ad");var b=PTa(a);b.then(function(){a.Pc("virc");ZB("virc",void 0,"video_to_ad");a.Pc("ps_r");ZB("ps_r",void 0,"video_to_ad")},function(){a.Pc("virc");
ZB("virc",void 0,"video_to_ad")});
return b};
g.VY=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.GI(a):m;n=void 0===n?!0:n;g.Mz.call(this);var p=this;this.Y=a;this.playerType=b;this.Ab=c;this.jB=d;this.getVisibilityState=f;this.visibility=h;this.Xh=l;this.videoData=m;this.yY=n;this.logger=new g.MU("VideoPlayer");this.Py=new TSa(this.Y);this.Me=null;this.bx=new AX;this.Ko=null;this.Oh=new PRa(this.Y,this.jB,this);this.AQ=!0;this.mediaSource=this.Ia=null;this.Zl=[];this.On=new IY;this.gf=this.IA=null;this.wp=new IY;this.FE=null;this.eJ=this.Uq=
!1;this.GE=NaN;this.playerState=new g.cL;this.IE=[];this.Mx=new g.WE;this.Cl=new FX(this);this.mediaElement=null;this.Et=new g.ho(this.b1,15E3,this);this.vL=this.lE=!1;this.Ut=NaN;this.oC=!1;this.rH=0;this.sH=new g.ho(this.AL,4500,this);this.Yz=!1;this.TD=NaN;this.WL=new QU(new Map([["bufferhealth",function(){var q=p.Wc;return q.mediaElement?$K(q.mediaElement):0}],
["bandwidth",function(){return p.wI()}],
["networkactivity",function(){return p.Y.schedule.Z}],
["livelatency",function(){return p.isAtLiveHead()&&p.Rc()?YTa(p):NaN}],
["rawlivelatency",function(){return YTa(p)}]]));
this.hA=0;this.loop=!1;this.playbackRate=1;this.dR=0;this.Wc=new AY(this);this.VO=!1;this.HE=[];this.CJ=this.KS=0;this.sL=this.wU=!1;this.fH=new g.ho(this.zZ,0,this);this.md=null;this.KR=new g.ho(this.BY,0,this);this.NE=new g.ho(this.gT,3E4,this);this.S_=[this.Mx,this.fH,this.Et,this.NE,this.sH,this.WL,this.KR];this.Lf=function(){var q=p.qc;q.provider.Y.Le||3===q.provider.xa.getVisibilityState()||(q.provider.Y.Le=!0);FSa(q);var r=q.B;r.D&&0>r.j&&3!==r.provider.xa.getVisibilityState()&&LX(r);q.qoe&&
(q=q.qoe,q.Ka&&0>q.u&&q.provider.Y.Le&&XX(q));p.Ia&&TY(p);p.Y.Jm&&!p.videoData.backgroundable&&p.mediaElement&&!p.Rg()&&(p.isBackground()&&p.mediaElement.bC()?(p.va("bgmobile",{suspend:1}),p.hm(!0,!0)):p.isBackground()||UY(p)&&p.va("bgmobile",{resume:1}))};
this.ai=new oY(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.eB("endcr")||g.U(p.playerState,32)||dU(p);
e(q,r,p.playerType)});
g.L(this,this.ai);g.L(this,this.Wc);ZTa(this,m);this.videoData.subscribe("dataupdated",this.Y2,this);this.videoData.subscribe("dataloaded",this.GH,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.va,this);this.videoData.subscribe("ctmpstr",this.jL,this);$Ta(this);PMa(this.Lf);this.visibility.subscribe("visibilitystatechange",this.Lf)};
WY=function(a){return a.N("html5_not_reset_media_source")&&!a.In()&&!a.videoData.isLivePlayback};
ZTa=function(a,b){if(2===a.playerType||a.Y.Lm)b.WO=!0;var c=OBa(b.Dd,b.Gv,a.Y.u,a.Y.D);c&&(b.adFormat=c);2===a.playerType&&(b.Nn=!0);if(a.isFullscreen()||a.Y.u)c=g.AA("yt-player-autonavstate"),b.autonavState=c||(a.Y.u?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&aUa(a,b.endSeconds)};
cUa=function(a){if(a.videoData.kb){var b=a.Xh.Lc();a.videoData.Kx=a.videoData.Kx||(null==b?void 0:b.zI());a.videoData.Qx=a.videoData.Qx||(null==b?void 0:b.BI())}if(IDa(a.videoData)||!yJ(a.videoData))b=a.videoData.errorDetail,a.wg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Dl||void 0);1===a.playerType&&XY.isActive()&&a.NE.start();a.videoData.Hh=a.getUserAudio51Preference();a.N("html5_generate_content_po_token")&&bUa(a)};
$Ta=function(a){!a.qc||a.qc.isDisposed();a.qc=new g.nY(new mY(a.videoData,a.Y,a,function(){return a.Xh.xj()}))};
sK=function(a){return a.mediaElement&&a.mediaElement.rs()?a.mediaElement.Ef():null};
YY=function(a){if(a.videoData.isValid())return!0;a.wg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.bU=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.qc;LX(c.B);c.qoe&&XX(c.qoe)}a.Uq=b;!YY(a)||a.On.started?g.fH(a.Y)&&a.videoData.isLivePlayback&&a.On.started&&!a.On.isFinished()&&!a.Uq&&a.GH():(a.On.start(),b=a.qc,g.cU(b.provider),b.qoe&&jSa(b.qoe),a.GH())};
dUa=function(a){var b=a.videoData;XTa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=CH(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.wg(c.errorCode,2,unescape(a.videoData.errorReason),zH(c.details),a.videoData.errorDetail,a.videoData.Dl||void 0):a.handleError(c))})};
UMa=function(a,b){a.md=b;a.Ia&&SQa(a.Ia,new g.nX(b))};
fUa=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Zl=g.ec(a.videoData.Ba)),hJ(a.videoData)){a.Ab.tick("bpd_s");ZY(a).then(function(){a.Ab.tick("bpd_c");if(!a.isDisposed()){a.Uq&&(a.Zb(eL(eL(a.playerState,512),1)),UY(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&aUa(a,c.endSeconds);a.On.finished=!0;$Y(a,"dataloaded");a.wp.started&&eUa(a);cSa(a.Oh,a.gf)}});
a.N("html5_log_media_perf_info")&&a.va("loudness",{v:a.videoData.We.toFixed(3)},!0);var b=SDa(a.videoData);b&&a.va("playerResponseExperiment",{id:b},!0);a.qH()}else $Y(a,"dataloaded")};
ZY=function(a){aZ(a);a.gf=null;var b=VSa(a.Y,a.videoData,a.Rg());a.IA=b;a.IA.then(function(c){gUa(a,c)},function(c){a.isDisposed()||(c=CH(c),a.visibility.isBackground()?(bZ(a,"vp_none_avail"),a.IA=null,a.On.reset()):(a.On.finished=!0,a.wg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",zH(c.details))))});
return b};
GX=function(a){ZY(a).then(function(){return UY(a)});
g.jL(a.playerState)&&a.playVideo()};
gUa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.gf=b;fTa(a.Wc,a.gf);if(a.videoData.isLivePlayback){var c=(a.N("html5_onesie_ads")?ANa(a.Xh.Ft,a.videoData.videoId):!!a.videoData.rl)||a.Ia&&!isNaN(a.Ia.ea);c=a.N("html5_onesie_live")&&c;0<a.videoData.Dc&&!QI(a.videoData)||c||a.seekTo(a.Sd(),{qe:"videoplayer_playbackData"})}a.videoData.C.j?a.Ia?g.aA(Error("Duplicated Loader")):(c=g.YF(a.Y.experiments,"html5_onesie_defer_content_loader_ms"),a.N("html5_onesie_ads")&&c&&g.Sb(a.Zl,"ad")&&
ANa(a.Xh.Ft,a.videoData.QX)?g.Ru(function(){a.isDisposed()||a.Ia||hUa(a)},c):hUa(a)):!a.videoData.C.j&&wJ(a.videoData)&&a.rE(new LV(a.videoData.videoId||"",4));
cZ(a);TRa(b).then(function(){a.Gx();TY(a)})}};
iUa=function(a){a.mediaElement&&a.mediaElement.Iv();g.bU(a);if(YY(a)&&!g.U(a.playerState,128)){a.wp.started||(a.wp.start(),a.videoData.Km?a.Zb(eL(a.playerState,4)):a.Zb(eL(eL(a.playerState,8),1)));var b=a.Xh.Lc();b=b&&2===b.getPlayerType();a.N("html5_suspend_for_preroll_join_latency")&&b&&1===a.getPlayerType()&&!g.U(a.playerState,512)&&a.Zb(eL(a.playerState,512));eUa(a)}};
eUa=function(a){a.isDisposed();if(!a.wp.isFinished()&&a.On.isFinished()&&!g.U(a.playerState,128)&&!a.Zl.length){if(!a.ai.started){var b=a.ai;b.started=!0;b.Am()}if(!a.zn()){a.Ia&&(b=a.Ia.timing,a.eJ=!!b.u&&!!b.D);a.wp.isFinished()||(a.wp.finished=!0);b=a.N("html5_onesie_live")&&a.Ia&&!isNaN(a.Ia.ea);!a.videoData.isLivePlayback||0<a.videoData.Dc&&!QI(a.videoData)||b||(a.seekTo(Infinity,{qe:"videoplayer_readying"}),a.isBackground()&&(a.vL=!0));b=a.qc;if(b.qoe){b=b.qoe;b.provider.videoData.Mm&&VX(b,
b.provider.videoData.Mm);if(b.provider.videoData.isLivePlayback){var c=b.provider.videoData.j;QI(b.provider.videoData)&&VX(b,"manifestless");c&&FF(c)&&VX(b,"live-segment-"+FF(c).toFixed(1))}"yt"!==b.provider.Y.Oa&&(b.j.len=[b.provider.videoData.lengthSeconds.toFixed(2)]);b.provider.videoData.cotn&&!wJ(b.provider.videoData)&&gSa(b,!0);b.provider.Y.C&&(c=yMa())&&b.va("cblt",{m:c})}a.ma("playbackready",a);YB("pl_c",a.Ab.timerName)||(a.Ab.tick("pl_c"),ZB("pl_c",void 0,"video_to_ad"));YB("pbr",a.Ab.timerName)||
(a.Ab.tick("pbr"),ZB("pbr",void 0,"video_to_ad"))}}};
dU=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Zb(b?new g.cL(14):new g.cL)};
aUa=function(a,b){a.Ko&&jUa(a);a.Ko=new g.cB(1E3*b,0x7ffffffffffff);a.Ko.namespace="endcr";a.addCueRange(a.Ko)};
jUa=function(a){a.removeCueRange(a.Ko);a.Ko=null};
kUa=function(a,b,c,d){a.videoData.B=c;d&&hX(a,b,d);d=g.dZ(a);a.qc.GA(new ORa(a.videoData,c,b,d?d.itag:""));c=a.Oh;c.B=0;c.j=0;a.ma("internalvideoformatchange",a.videoData,"m"===b)};
g.dZ=function(a){var b=eZ(a);return gC(b)||!a.gf?null:g.Qb(a.gf.j.videoInfos,function(c){return b.C(c)})};
hX=function(a,b,c){if(c!==a.videoData.I){var d=!a.videoData.I;a.videoData.I=c;"m"!==b&&(b=d?"i":"a");a.qc.xA(new ORa(a.videoData,c,b,""));d||a.ma("internalaudioformatchange",a.videoData,"m"===b)}};
iX=function(a,b){b&&a.Jd(new AH("qoe.restart",b));a.Zb(eL(a.playerState,2048));fZ(a);b=a.videoData.j&&pC(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Ia&&fX(a.Ia),EX(a)):(UY(a),g.jL(a.playerState)&&a.playVideo())};
eZ=function(a){if(a.gf){var b=a.Oh;var c=a.gf;a=a.Ts();if(b.xa.Jq().isInline())var d=FI;else b.N("html5_exponential_memory_for_sticky")?d=.5>KG(b.Y.ke,"sticky-lifetime")?"auto":hC[KF()]:d=hC[KF()],d=g.fC("auto",d,!1,"s");if(gC(d)){d=QRa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.t(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.j)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Rma()&&!g.fH(b.Y)&&wC(c.j.videoInfos[0])&&
(f=Math.min(f,g.eC.large));d=e.call(d,new dC(0,f,!1,"o"));e=d.compose;f=4320;!b.Y.isMobile||g.WG(b.Y)||ov()||b.Y.N("hls_for_vod")||b.Y.N("mweb_remove_360p_cap")||(f=g.eC.medium);(h=g.YF(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Rh&&!c.videoData.Gd&&(f=Math.min(f,h));h=g.YF(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.YF(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.t(l.videoInfos),
m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.YF(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=aSa(b,c,f);d=e.call(d,new dC(0,4320===f?0:f,!1,"d")).compose($Ra(b)).compose(bSa(b,c.videoData,c)).compose(ZRa(b,c)).compose(SRa(b,c)).compose(RRa(b,c))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(ZRa(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&(d=d.compose(SRa(b,c)));d=d.compose(RRa(b,
c));b=c.videoData.Fv.compose(d).compose(c.videoData.mO).compose(a)}else b=FI;return b};
HTa=function(a){var b=a.Oh;a=a.videoData;var c=$Ra(b);b.N("html5_disable_client_autonav_cap_for_onesie")||c.compose(bSa(b,a));return c};
g.lUa=function(a,b,c,d){a.videoData.Fv=b;if(a.gf&&c){c=a.Oh;var e=a.gf;if(e.j.j){var f=KF(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=JX(c,null==(l=e.j)?void 0:l.videoInfos);l=c.xa.getPlaybackRate();1<l&&f&&(l=zAa(c.Y.B,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.xa.setPlaybackRate(1));var m,n;e=(null==(m=e.videoData.B)?void 0:null==(n=m.video)?void 0:n.j)||0;g.zA("yt-player-quality",{quality:g.eC[iC(b)],previousQuality:e},31104E3);c.Y.schedule.policy.B=480<=KF();if(c.N("html5_exponential_memory_for_sticky")){b=
c.Y.ke;m=1;var p=void 0===p?!1:p;hBa(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.So["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.So["sticky-lifetime"]=0);p&&.0625<KG(b,"sticky-lifetime")&&(m=2*b.So["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/m);b.So["sticky-lifetime"]=m;b.C.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){p=LF();c=g.t(Object.keys(p));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(p[b]=0);
g.zA("yt-player-performance-cap",p,604800)}else g.BA("yt-player-performance-cap")}}}d&&a.Ia&&(a.Ia.ge.oa=d);cZ(a)};
bUa=function(a){a.videoData.videoId?a.Xh.uI(a.videoData.videoId).then(function(b){a.videoData.C2a=b}):a.va("pomvid",{})};
cZ=function(a){if(!a.isDisposed()&&!g.U(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)TY(a);else{var b=eZ(a),c=a.videoData;a:{var d=a.videoData.zd;if(b.j){for(var e=g.t(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Qg(),l=g.eC[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.qb=d;kUa(a,b.reason,mUa(a,a.videoData.qb))}if(a.N("html5_check_unstarted")?g.jL(a.playerState):a.Rc())a.Wc.Sa=!1,a.playVideo()}};
TY=function(a){if(a.videoData.C&&a.videoData.C.j){var b=eZ(a);if(a.Ia&&(a=a.Ia,!a.isDisposed()&&!fOa(a.ge,b)&&a.videoTrack)){var c=a.ge.B;MQa(a,gOa(a.ge,b));bX(a);var d=AV(a.ge)&&"m"===b.reason&&a.ge.ea,e=a.policy.Jj&&"l"===b.reason&&pW(a.videoTrack);b=c.j>b.j&&"b"===b.reason;c=a.ge.ib&&!mF();d||e||b||c?iX(a.xa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):jX(a)}}};
nUa=function(a){var b;return!!(a.N("html5_native_audio_track_switching")&&g.qw&&(null==(b=a.videoData.B)?0:QE(b)))};
oUa=function(a){if(!nUa(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
qUa=function(a){var b=pUa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Mc.getName()===b})};
pUa=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}};
hUa=function(a){for(var b=a.videoData.j,c=g.t(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.Y.deviceParams.c,cver:a.Y.deviceParams.cver})),d=c.next();!d.done;d=c.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;for(var f=g.t(Object.values(b.j)),h=f.next();!h.done;h=f.next())Jya(h.value.u,d,e);f=void 0;null==(f=b.ya)||Jya(f,d,e)}c=a.Y;d=a.videoData;b=new g.HP(c);e=tJa({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,Bn:d.Bn});b.C=e;b.J=d.maxReadAheadMediaTimeMs/1E3||b.J;e=c.schedule;
e.B.gi()===e.policy.u?b.Sa=10:b.Sa=d.minReadAheadMediaTimeMs/1E3||b.Sa;b.Xe=d.readAheadGrowthRateMs/1E3||b.Xe;Jl&&(b.ib=41943040);b.wc=!sF();g.fH(c)||!sF()?(e=c.experiments,b.T=8388608,b.oa=524288,b.Si=5,b.Yc=2097152,b.ya=1048576,b.Lm=1.5,b.Bm=!1,b.Tb=4587520,lv()&&(b.Tb=786432),b.B*=1.1,b.D*=1.1,b.pc=!0,b.ib=b.T,b.od=b.oa,b.Le=e.gb("persist_disable_player_preload_on_tv")||e.gb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.isMobile&&(b.B*=1.3,b.D*=1.3);g.ZE&&hv("crkey")&&(e="CHROMECAST/ANCHOVY"===
c.deviceParams.cmodel,b.T=20971520,b.oa=1572864,e&&(b.Tb=812500,b.Fd=1E3,b.cn=5,b.ya=2097152));g.XF&&(b.pc=!0);c.supportsGaplessAudio()||(b.Pk=!1);NG&&(b.Mb=!0);b.Dd=c.N("html5_peak_shave");"onesie"===d.fetchType&&c.N("html5_disable_peak_shave_for_onesie")&&(b.Dd=!1);var l;e=null==(l=d.j)?void 0:pC(l);if(QI(d)){b.Od=!0;b.al=!0;b.kb=!0;b.wl=!0;b.Om=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.N("html5_disable_low_pipeline"))b.il=2,b.ek=4;b.Io=d.defraggedFromSubfragments;d.Oe&&(b.Jm=
!0);g.jJ(d)&&(b.Vb=!1);b.Gj=g.rH(c)}b.C.j=b.useUmp;d.isAd()&&(b.zd=0,b.Sf=0,b.ql=g.YF(c.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));aJ&&(b.Ma=!0,c.N("html5_aggressive_timeout_for_streaming_xhr")&&(b.Fd=400,b.gk=10,b.Im=1,b.Cm=!0,b.Jg=5,b.dk=2,b.Tf=3,b.je=1.4),c.N("html5_streaming_xhr_expand_request_size")&&(b.ya=10485760,b.We=3));b.Dc=c.N("html5_enable_subsegment_readahead_v3")||c.N("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===d.latencyClass;b.rd=c.C;b.I=b.rd&&
(/^rq[a-f]/.test(d.clientPlaybackNonce)||c.C);uv()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.deviceParams.cmodel)&&!c.N("html5_disable_move_pssh_to_moov")&&e&&(b.pc=!1);f=0;c.N("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.YF(c.experiments,"ULTRALOW"===d.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":d.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||f));l=c.schedule;l.ya.j=QI(d)?
.5:0;if(!l.policy.C&&f&&(l=l.B,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.u?l.j:l.valueIndex),n=l.valueIndex-m;0>n&&(n+=l.j);for(var p=0;p<m;++p)h[p]=l.values[(n+p)%l.j];for(;p<f;++p)h[p]=Infinity;l.j=f;l.values=h;l.valueIndex=m%f;l.u=m===f;l.C=!0;l.D=aBa(l)}b.rl=d.isLivePlayback;switch(bJ(d)){case 21530001:b.Hh=c.N("html5_live_smoothly_extend_max_seekable_time");b.Dc=!0;"LOW"===d.latencyClass?b.qb=g.YF(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===
d.latencyClass&&(b.qb=g.YF(c.experiments,"html5_jumbo_ull_subsegment_readahead_target"));b.ul=!0;break;case 2153E4:b.Dc=!1}d.Ud()&&(b.Vo=1.3);b.Mb=b.Mb||d.TK;b.Oa=d.kb;c.C&&(b.Ka=!0);d.kb&&!e&&(b.Lg=!0);d.kb&&d.isAd()&&(b.B*=1.6,b.D*=1.6);wJ(d)&&(b.u=d.videoId,b.Qi=!0,b.Rm=4,d.ix&&0<d.ix.length&&(b.ke=d.ix));b.Jj=d.Vk;b.ea=NF(c,{},d.C||void 0);b.Ba=YI(d)&&g.ZG(c);d.tO&&(b.yb=!1);l=480<=KF();d=g.YF(c.experiments,"html5_deadzone_multiplier")||1;b.B*=d;b.D*=d;if(d=g.YF(c.experiments,"html5_request_sizing_multiplier"))b.Mm=
d;sC(c.B,tC.BITRATE)&&(b.Tb=NaN);c.B.B&&(b.Vk="; "+tC.EXPERIMENTAL.name+"=allowed");l&&(b.Mg=0);c.N("debug_html5_random_stun_format")&&(b.Kg=!0);c.N("html5_log_audio_abr")&&(b.fl=!0);c=a.getAudioTrack();c=c.Mc.isDefault?void 0:c;a.bx.Zf();if(a.N("html5_onesie_ads"))a:{l=a.Xh.Ft;if(d=a.videoData.videoId)if(e=l.j.get(d)){l.j.remove(d);l=e;break a}l=void 0}else l=a.videoData,d=l.rl,delete l.rl,l=d;a.Ia=new g.aX(a,a.Y.schedule,b,a.videoData.j,a.videoData.C,eZ(a),c,a.videoData.enableServerStitchedDai,
l,a.videoData.Sa);b=rUa(a)?!0:a.Uq&&g.fH(a.Y)&&a.videoData.isLivePlayback;a.Ia.initialize(a.getCurrentTime(),eZ(a),b);a.videoData.probeUrl&&(a.Ia.oa=a.videoData.probeUrl);!a.Zl.length&&!a.Uq||!a.N("woffle_disable_suspend_loader_killswitch")&&a.videoData.cotn||gZ(a,!1);EY(a.Wc,a.Ia);a.md&&SQa(a.Ia,new g.nX(a.md));g.xJ(a.videoData)&&(b=a.Ia,b.policy.Ye=b.policy.Ku,a.N("html5_offline_retry_index_db_read")&&(vCa=!0))};
aZ=function(a){a.Ia&&(a.Ia.dispose(),a.Ia=null,EY(a.Wc,null));WY(a)?sUa(a):fZ(a)};
sUa=function(a){if(a.mediaSource){a.ew();try{a.mediaSource.clear();var b;null!=(b=a.mediaElement)&&(b.u=a.mediaSource);a.mediaSource=null}catch(c){b=CH(c),a.handleError(b),fZ(a)}}};
fZ=function(a){a.mediaSource&&(a.ew(),a.mediaSource.dispose(),a.mediaSource=null)};
tUa=function(a){if(a.mediaSource)return a.mediaSource.B;a:{try{g.jv()&&a.videoData.uJ()&&XEa(a.mediaElement);var b=a.mediaElement.Fq(a.CI(),a.AI())}catch(d){if(HX(a.Cl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.wg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}XT(a,b)}var c;return(null==(c=a.Fq())?void 0:c.B)||null};
XT=function(a,b){function c(d){try{if(a.mediaSource&&(!d||a.mediaSource===d)){var e=a.getDuration();!e&&QI(a.videoData)&&(e=25200);a.mediaSource.isView?(d=e,d>a.mediaSource.getDuration()&&a.mediaSource.Rj(d)):a.mediaSource.Rj(e);var f=a.Ia,h=a.mediaSource;f.policy.Z&&(f.uj(),f.policy.Z=!1);LQa(f);if(!qF(h)){var l=nV(f.videoTrack),m=nV(f.audioTrack),n=(l?l.info.j:f.videoTrack.j).info,p=(m?m.info.j:f.audioTrack.j).info,q=f.policy.Vk,r=n.mimeType+(void 0===q?"":q),w=p.mimeType,y=n.Ib,z=p.Ib,B,D=null==
(B=h.mediaSource)?void 0:B.addSourceBuffer(w),G,E="fakesb"===r.split(";")[0]?void 0:null==(G=h.mediaSource)?void 0:G.addSourceBuffer(r);h.Yf&&(h.Yf.webkitSourceAddId("0",w),h.Yf.webkitSourceAddId("1",r));var J=new lF(D,h.Yf,"0",LE(w),z,!1),M=new lF(E,h.Yf,"1",LE(r),y,!0);h.j=J;h.u=M;g.L(h,J);g.L(h,M)}dW(f.videoTrack,h.u||null);dW(f.audioTrack,h.j||null);f.mediaSource=h;f.resume();g.Nz(h.j,f.ya,f);g.Nz(h.u,f.ya,f);try{f.rj()}catch(P){g.$z(P)}a.ma("mediasourceattached")}}catch(P){g.aA(P),a.handleError(new AH("fmt.unplayable",
{msi:"1",ename:P.name},1))}}
uUa(a);a.mediaSource=b;WY(a)&&"open"===rF(a.mediaSource)?c(a.mediaSource):Cza(a.mediaSource,c)};
uUa=function(a){a.Ia?a.Ia.seek(a.getCurrentTime()-a.Bd()).jj(function(){}):hUa(a)};
EX=function(a,b){b=void 0===b?!1:b;return g.A(function(c){if(1==c.j)return a.Ia&&a.Ia.Zs(),a.Ia&&a.Ia.isDisposed()&&aZ(a),a.Zb(eL(a.playerState,2048)),a.ma("newelementrequired"),b?g.x(c,ZY(a),2):c.Ja(2);g.U(a.playerState,8)&&a.playVideo();g.pa(c)})};
MMa=function(a,b){a.va("newelem",{r:b});EX(a)};
vUa=function(a){a.Ab.C.gK();g.U(a.playerState,32)||(a.Zb(eL(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.ma("beginseeking",a));a.jc()};
tU=function(a){g.U(a.playerState,32)?(a.Zb(gL(a.playerState,16,32)),a.ma("endseeking",a)):g.U(a.playerState,2)||a.Zb(eL(a.playerState,16));a.Ab.C.mK(a.videoData,g.iL(a.playerState))};
$Y=function(a,b){a.ma("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
wUa=function(a){for(var b=g.t("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.Mx.S(a.mediaElement,c.value,a.KK,a);a.Y.ll&&a.mediaElement.rs()&&(a.Mx.S(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.l0,a),a.Mx.S(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.m0,a))};
yUa=function(a){window.clearInterval(a.GE);xUa(a)||(a.GE=g.Su(function(){return xUa(a)},100))};
xUa=function(a){var b=a.mediaElement;b&&a.lE&&!a.videoData.Wa&&!YB("vfp",a.Ab.timerName)&&2<=b.qj()&&!b.kh()&&0<hF(b.jh())&&a.Ab.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Wa&&0<b.getDuration()&&(!YB("pbp",a.Ab.timerName)&&b.Co()&&2<=b.qj()&&0<hF(b.jh())&&a.Ab.tick("pbp"),b=b.getCurrentTime(),pY(a.Py,b))?(FMa(a),!0):!1};
FMa=function(a){window.clearInterval(a.GE);a.Et.stop();a.videoData.Wa=!0;a.Y.Bm=!0;a.Y.qb=0;var b=a.Cl;if(b.videoData.B){var c=b.j.B;c.u.delete(b.videoData.B.Ib);c.j=!0}b.u.stop();a.Y.Pk=a.videoData.dL;a.videoData.XM=!0;zUa(a);g.U(a.playerState,8)&&a.Zb(fL(a.playerState,65));a.Uq=!1;b=a.qc;b.j&&zSa(b.j);b=b.B;c=g.cU(b.provider);0>b.j&&(b.j=c,b.delay.start());b.u=c;b.C=c;g.io(a.sH);a.ma("playbackstarted");g.Wv()&&((a=g.Ga("yt.scheduler.instance.clearPriorityThreshold"))?a():Xv(0))};
zUa=function(a){var b=a.getCurrentTime(),c=a.Xh.ud();!YB("pbs",a.Ab.timerName)&&oB.measure&&oB.getEntriesByName&&(oB.getEntriesByName("mark_nr")[0]?Bua("mark_nr"):Bua());c.videoId&&a.Ab.info("docid",c.videoId);c.eventId&&a.Ab.info("ei",c.eventId);c.clientPlaybackNonce&&!a.N("web_player_early_cpn")&&a.Ab.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Ab.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Co())if(a.Y.experiments.gb("web_csi_via_jspb")){var d=new Pt;g.F(d,
6,!0);var e=new Rt;H(e,Pt,22,d);XB(e,a.Ab.timerName)}else a.Ab.info("paused",1);a.Y.experiments.gb("web_csi_via_jspb")?(d=new Pt,c.B?g.F(d,1,Number(c.B.itag)):g.F(d,1,-1),e=new Rt,H(e,Pt,22,d),XB(e,a.Ab.timerName)):c.B?a.Ab.info("fmt",c.B.itag):a.Ab.info("fmt","-1");c.Mg&&(e=a.eJ?2:1,a.Y.experiments.gb("web_csi_via_jspb")?(d=new Pt,g.F(d,8,e),e=new Rt,H(e,Pt,22,d),XB(e,a.Ab.timerName)):a.Ab.info("yt_pre",String(a.eJ?2:1)));a.isFullscreen()&&a.Ab.info("yt_fs","1");KB({liveStreamMode:AUa[fJ(c)]},a.Ab.timerName);
a.Ab.info("cmt",b.toFixed(3));if(a.Ia){b=a.Ia.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.D&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("fvb_r",c.responseStart),b.tick("vrc",c.responseEnd))),b.u&&(c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",
c.requestStart),b.tick("avb",c.responseStart),b.tick("fab_r",c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var f in b)b.hasOwnProperty(f)&&a.Ab.tick(f,b[f])}};
BUa=function(a){a.qc.pe();if(OI(a.videoData)&&Date.now()>a.dR+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&CF(a.videoData.j))){var b=a.qc;if(b.qoe){b=b.qoe;var c=b.provider.xa.Lz(),d=g.cU(b.provider);SX(b,d,c);c=c.D;isNaN(c)||g.PX(b,d,"e2el",[c.toFixed(3)])}}g.rH(a.Y)&&a.va("rawlat",{l:SU(a.WL,"rawlivelatency").toFixed(3)});a.dR=Date.now()}a.videoData.B&&QE(a.videoData.B)&&(b=sK(a))&&b.videoHeight!==a.CJ&&(a.CJ=b.videoHeight,kUa(a,"a",mUa(a,a.videoData.qb)))};
mUa=function(a,b){if("auto"===b.j.video.quality&&QE(b.Qg())&&a.videoData.zd)for(var c=g.t(a.videoData.zd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.CJ&&"auto"!==d.j.video.quality)return d.Qg();return b.Qg()};
YTa=function(a){if(!OI(a.videoData))return NaN;var b=0;a.Ia&&a.videoData.j&&(b=QI(a.videoData)?a.Ia.BC.gi()||0:a.videoData.j.T);return Date.now()/1E3-a.sf()-b};
DUa=function(a){a.mediaElement&&a.mediaElement.Rg()&&(a.TD=(0,g.Q)());a.Y.Qm?g.Ru(function(){CUa(a)},0):CUa(a)};
CUa=function(a){var b;if(null==(b=a.mediaSource)||!b.Hn()){if(a.mediaElement)try{a.FE=a.mediaElement.playVideo()}catch(d){bZ(a,"err."+d)}if(a.FE){var c=a.FE;c.then(void 0,function(d){if(!(g.U(a.playerState,4)||g.U(a.playerState,256)||a.FE!==c||d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))){var e="promise";d&&d.name&&(e+=";m."+d.name);bZ(a,e);a.VO=!0;a.videoData.hO=!0}})}}};
bZ=function(a,b){g.U(a.playerState,128)||(a.Zb(gL(a.playerState,1028,9)),a.va("dompaused",{r:b}),a.ma("onAutoplayBlocked"))};
UY=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=tUa(a);var d;null==(d=a.Ia)||d.resume()}else aZ(a),a.videoData.qb&&(c=a.videoData.qb.Ay());b=c;d=a.mediaElement.bC();c=!1;d&&d.equals(b)||(EUa(a,b),c=!0);g.U(a.playerState,2)||(b=a.Wc,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.C,{qe:"playbacktimeline_resumeTime"}));a:if(b=c,g.dJ(a.videoData)&&a.mediaElement)if((d=a.videoData.Z)&&a.mediaElement.rs()){var e=a.mediaElement.Ef();
if(a.Me)if(e!==a.Me.element)hZ(a);else if(b&&"fairplay"===d.flavor&&!kv())hZ(a);else break a;if(a.N("html5_report_error_for_unsupported_tvos_widevine")&&kv()&&"widevine"===d.flavor)a.wg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Me=new BX(e,a.videoData,a.Y);a.Me.subscribe("licenseerror",a.pE,a);a.Me.subscribe("qualitychange",a.Y0,a);a.Me.subscribe("heartbeatparams",a.BA,a);a.Me.subscribe("keystatuseschange",a.Ar,a);a.Me.subscribe("ctmp",a.va,a);b=g.t(a.bx.keys);
for(d=b.next();!d.done;d=b.next())d=a.bx.get(d.value),a.Me.Vw(d);a.N("html5_eme_loader_sync")||a.bx.Zf()}}else a.wg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
EUa=function(a,b){a.Ab.tick("vta");ZB("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&hTa(a.Wc,a.getCurrentTime());a.mediaElement.Iv(b);a.mediaSource&&Xv(4);!a.videoData.Wa&&g.jL(a.playerState)&&a.Et.start();if(nUa(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ma("internalaudioformatchange",a.videoData,!0)}}};
hZ=function(a){a.Me&&(a.Me.dispose(),a.Me=null)};
ZT=function(a,b){b=void 0===b?!1:b;return OI(a.videoData)&&(a.isAtLiveHead()&&!g.iL(a.playerState)||a.bp()||g.jJ(a.videoData))?a.getCurrentTime():a.Sd(b)};
FUa=function(a){a.mediaElement&&(a.mediaSource?(hZ(a),fZ(a),tUa(a)):(a.videoData.qb&&a.videoData.qb.xL(),a.mediaElement.stopVideo()),a.playVideo())};
GUa=function(a,b){a.Y.N("html5_log_rebuffer_reason")&&a.va("bufreason",{r:b,lact:dy()})};
oU=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){l=2===c.playerType?c:b;var m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.qc;if(p.qoe){p=p.qoe;var q=b.cpn,r=c.cpn,w=l.videoData.Dd,y=p.provider.videoData.clientPlaybackNonce,z=p.provider.videoData.videoId,B=r!==y&&n!==z;y=q!==y&&m!==z;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=y?q:"",p.T=y?m:"",p.adFormat=y?w:void 0,oSa(p,h?4:f?2:0,r,n,e),p.reportStats(),p.adCpn=B?r:"",p.T=B?n:"",p.adFormat=B?w:void 0,oSa(p,
h?5:f?3:1,q,m,d),p.reportStats())}d=a.qc;f=b.cpn;if(d.u.has(f)){if(h=d.u.get(f),kY(h,!0).send(),iY(h),f!==d.provider.videoData.clientPlaybackNonce){lY(h);var D;null==(D=d.j)||hY(D);d.u.delete(f)}}else d.Gh=d.provider.videoData.clientPlaybackNonce,d.Gh&&d.j&&(d.u.set(d.Gh,d.j),kY(d.j).send(),iY(d.j));D=a.qc;d=c.cpn;l=l.videoData;f=e-a.Qo();if(D.u.has(d)){l=D.u.get(d);var G=l.u&&isNaN(l.C)?fY(l):NaN;l=jY(l,!1);isNaN(G)||(l.D=G);l.send()}else l=JSa(D,D.provider,l,f),D.u.set(d,l),l.Vc(new g.vK(eL(new g.cL,
8),new g.cL)),zSa(l),null==(G=D.j)||iY(G);D.Gh=d;G=a.videoData.clientPlaybackNonce;a=c.videoData;b=(b.cpn===G?"video":"ad")+"_to_"+(c.cpn===G?"video":"ad");G={};a.J&&(G.cttAuthInfo={token:a.J,videoId:a.videoId});G.startTime=e;LB(b,G);KB({targetVideoId:a.videoId,targetCpn:c.cpn},b);JB("pbs",e,b)}}};
HUa=function(a,b){a.Jd(new AH("qoe.restart",b));EX(a,!0)};
IUa=function(a,b){if(a.Y.C){var c=g.YF(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.Yb();d.rt=(1E3*g.cU(a.qc.provider)).toFixed();d.e=b.substr(0,3);a.HE[a.KS++%c]=d}}};
JUa=function(a){if(a.Y.C){a.HE.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.t(a.HE),c=b.next();!c.done;c=b.next())c=c.value,a.va("vpe",Object.assign({t:c.rt},c));a.HE=[];a.KS=0}};
KUa=function(a){if(hv("cobalt")&&hv("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.va("nxdock",{d:b})}};
EMa=function(a,b,c,d,e){a.va("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
gZ=function(a,b){var c;null==(c=a.Ia)||cX(c,b||rUa(a))};
rUa=function(a){return a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.fH(a.Y)&&g.Sb(a.Zl,"ad")};
LUa=function(a,b){a=a.mediaElement?hF(a.mediaElement.jh()):0;return Math.floor(Math.max(a-b,0))+100};
g.iZ=function(a,b,c,d){g.K.call(this);var e=this;this.logger=new g.MU("App");this.pA=this.di=!1;this.yu={};this.Kv=new yIa;this.OE={};this.nx=[];this.NQ=!1;this.rJ=null;this.RQ=!1;this.vt=!0;this.NL=!1;this.gR=this.EJ=null;this.mR=!0;this.mediaElement=this.xb=null;this.HA=!1;this.ue=this.rT=this.QA=this.Eb=this.playlist=null;this.hB=void 0;this.Rr=0;this.Md=this.Px=this.bl=null;this.config=Usa(b||{});this.webPlayerContextConfig=c;lna();b=this.config.args||{};this.Y=new hH(b,c,c?c.canaryState:this.config.assets.player_canary_state,
d);g.L(this,this.Y);this.qH();this.Y.experiments.gb("web_player_all_payloads_via_jspb")&&(g.wu("migrate_events_to_ts")?(MUa||(MUa=!0),Ty=NUa,Uy=OUa):(PUa||(PUa=!0),Bz=NUa,Cz=OUa));this.Y.isMobile&&!QUa&&(window.addEventListener(MG?"touchstart":"click",zMa,{capture:!0,passive:!0}),QUa=!0);this.N("html5_onesie")&&(this.Mt=new KT(this.Y),g.L(this,this.Mt));this.GT=yv(SG(this.Y)&&!0,b.enablesizebutton);this.yJ=yv(!1,b.player_wide);this.visibility=new fU;g.L(this,this.visibility);this.setIsExternalPlaylist(b.external_list);
this.events=new g.WE(this);g.L(this,this.events);this.xp=new OU;g.L(this,this.xp);this.Lo=new OU;g.L(this,this.Lo);this.Qq=new INa;d=new iO;this.Ua=new g.OO(this,d);g.L(this,this.Ua);this.template=new WU(this);g.L(this,this.template);this.appState=1;this.Th=RUa(this);this.G=this.Y.D?new tO(this,d,!0,1):new kO(this,d,!0,1);g.L(this,this.G);g.L(this,d);d={};this.pH=(d.internalvideodatachange=this.q0,d.playbackready=this.s0,d.playbackstarted=this.t0,d.statechange=this.u0,d);this.kZ=new hJa(this.Ua);
g.L(this,this.kZ);this.Bc=SUa(this);this.N("html5_load_wasm")&&"WebAssembly"in window&&HJa(this.Bc).then(function(f){e.Y.vl=f},function(f){g.aA(f)});
this.I_=new g.WE(this);g.L(this,this.I_);this.Ab=new tP(this.Y,this.Bc);this.Ua.ma("csiinitialized");this.ub=TUa(this);this.ub.setPlaybackRate(this.Y.u?1:UUa(this,Number(g.AA("yt-player-playback-rate"))||1));g.Nz(this.ub,this.pH,this);cUa(this.ub);d={};this.OS=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.gK,d.endseeking=this.mK,d.internalAbandon=this.sK,d.internalaudioformatchange=this.xA,d.internalvideodatachange=
this.onVideoDataChange,d.internalvideoformatchange=this.GA,d.liveviewshift=this.Z0,d.playbackstalledatstart=this.E2,d.progresssync=this.O1,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.Xw,d.SEEK_TO=this.q2,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.playbackready=this.E1,d.statechange=this.CS,d.connectionissue=this.zA,d.newelementrequired=this.jS,d.heartbeatparams=this.BA,d.videoelementevent=this.KK,d.drmoutputrestricted=
this.onDrmOutputRestricted,d.signatureexpired=this.z2,d.nonfatalerror=this.t1,d);this.Zq=new g.WE(this);g.L(this,this.Zq);d=10;g.fH(this.Y)&&(d=3);qH(this.Y)&&(d=g.YF(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Ft=new NU;g.L(this,this.Ft);this.MA=new KU(d,function(f){f!==g.qO(e,f.getPlayerType())&&f.dispose()});
g.L(this,this.MA);this.nI=this.QC=-1;this.bF=new g.ho(this.template.resize,16,this.template);g.L(this,this.bF);VUa(this);this.md=new zU(this.Ua,this.Y,this.ub);this.Nx=new $T(this);g.L(this,this.Nx);wNa(this.Y.deviceParams.c);this.events.S(this.Ua,g.eB("appapi"),this.n0);this.events.S(this.Ua,g.fB("appapi"),this.o0);this.events.S(this.Ua,g.eB("appad"),this.NR);this.events.S(this.Ua,g.fB("appad"),this.NR);this.events.S(this.Ua,g.eB("appprogressboundary"),this.N1);this.events.S(this.Ua,g.fB("applooprange"),
this.dF);this.events.S(this.Ua,"presentingplayerstatechange",this.Nh);this.events.S(this.Ua,"resize",this.Z1);this.template.Ca(Ida(a));this.events.S(this.Ua,"offlineslatestatechange",this.v1);this.DM=WUa(this,this.template.element);g.L(this,this.DM);this.Bc.G.V().Lg&&NP(this.Bc,"offline");this.Y.Ye&&g.BP("ux",g.IT);this.PO=new g.ho(this.B3,g.YF(this.Y.experiments,"html5_defer_fetch_att_ms"),this);g.L(this,this.PO);this.ud().isValid()&&(g.CA()&&this.ud().Ba.push("remote"),XUa(this));this.Ab.tick("fs");
YUa(this);this.Y.Ye&&NP(this.Bc,"ux",!0);g.$G(this.Bc.G.V())&&NP(this.Bc,"music");g.QG(this.Bc.G.V())&&NP(this.Bc,"embed");this.N("web_player_sentinel_is_uniplayer")||g.aA(new g.Yv("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");d=g.wu("web_player_sentinel_yt_experiments_sync");a!==d&&g.aA(new g.Yv("b/195699950",{yt:a,player:d}));c||g.aA(new g.Yv("b/179532961"));this.qU=ZUa(this);if(c=g.YF(this.Y.experiments,"html5_block_pip_safari_delay"))this.sI=
new g.ho(this.bP,c,this),g.L(this,this.sI);cv=this.Y.Xa;c=g.YF(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.FS=new g.Dh(c),g.L(this,this.FS),this.events.S(this.FS,"tick",function(){e.GS&&$Ua.rq(e.GS);e.GS=$Ua.Nr("apit")}))};
ZUa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Eb||a.ub).qc.Jd("player.exception",zH({n:c.name,m:c.message}))}
bA.subscribe("handleError",b);Au.push(b);return function(){bA.unsubscribe("handleError",b);var c=Au.indexOf(b);-1!==c&&Au.splice(c,1)}};
TUa=function(a){var b=new g.GI(a.Y,a.config.args);if(a.Y.N("embeds_web_enable_info_panel_preview")){var c=wL();if(b.hh){var d,e=null==(d=b.hh)?void 0:d.trackingParams;e&&yL(c,e)}if(b.watchNextResponse){var f;(d=null==(f=b.watchNextResponse)?void 0:f.trackingParams)&&yL(c,d)}}return a.Zv(1,b)};
SUa=function(a){var b="",c=DNa(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.aA(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new KP(a.Ua,b);aVa(a,b);return b};
aVa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
bVa=function(a,b){var c=a.isVideoInfoVisible();a.bl||(a.bl=new dV(a.Ua),g.L(a,a.bl),g.VO(a.Ua,a.bl.element,4));g.kM(a.bl,b);jZ(a)&&c!==b&&RO(a.Bc).gM();a=a.Eb;b&&a&&a.va("sfn",{},!0)};
RUa=function(a){if(a.Y.storeUserVolume){a=g.AA("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.Ag(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.Y.mute};return a};
kZ=function(a){a.mediaElement=a.Y.deviceIsAudioOnly?new g.XP(g.bh("AUDIO")):ST.pop()||new g.XP(g.bh("VIDEO"));g.L(a,a.mediaElement);a.Eb&&a.Eb.setMediaElement(a.mediaElement);try{a.Y.Dc?(a.Px&&a.events.zc(a.Px),a.Px=a.events.S(a.mediaElement,"volumechange",a.l1)):(a.mediaElement.qx(a.Th.muted),a.mediaElement.setVolume(a.Th.volume/100))}catch(d){a.ag("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.Lz(a.Zq);cVa(a);var b=a.template;
b.Ob=a.mediaElement.Ef();b.BD=!1;b.Ob.parentNode||g.eh(b.Vy,b.Ob,0);b.ME=new g.Fl(0,0,0,0);HNa(b);XU(b);g.po(b.Ob,"video-stream");g.po(b.Ob,g.VU.MAIN_VIDEO);var c=b.app.V();c.Hh&&b.Ob.setAttribute("data-no-fullscreen","true");c.jl&&(b.Ob.setAttribute("webkit-playsinline",""),b.Ob.setAttribute("playsinline",""));c.Pm&&b.Ob&&b.S(b.Ob,"click",b.Ob.play,b.Ob);try{a.mediaElement.Iv()}catch(d){a.ag("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
eU=function(a,b,c){if(a.Eb!==b){var d=null;if(a.Eb){d=a.Eb.getPlayerState();PP(a.Bc,3);lZ(a,"cuerangesremoved",a.Eb.El());a.Nx&&!b.isGapless()&&a.Eb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=WY(b)&&WY(a.Eb);e=void 0===e?!0:e;var f;if(f=a.Md)f=a.mediaElement,f=!!f&&f===a.Md.mediaElement;f&&(a.Ci(),kZ(a));a.Eb&&(a.Eb.Ci(!e),Oz(a.Eb,a.OS,a),1!==a.Eb.getPlayerType()&&a.Eb.dispose());a.Eb=null}1===b.getPlayerType()&&a.ub!==b&&(b.getVideoData().autonavState=a.ub.getVideoData().autonavState,
Oz(a.ub,a.pH,a),e=a.ub.getPlaybackRate(),a.ub.dispose(),a.ub=b,a.ub.setPlaybackRate(e),g.Nz(b,a.pH,a),XUa(a));e=b.getPlayerType();if(b!==a.ub&&b!==a.yu[e]){var h;null==(h=a.yu[e])||h.dispose();a.yu[e]=b}a.Eb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.Nz(b,a.OS,a);if(b.QD())dVa(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.hL(d,b.getPlayerState())&&a.CS(new g.vK(b.getPlayerState(),d));c=c&&a.G.N("html5_player_preload_ad_fix");if(b.On.isFinished()&&!c)a.onVideoDataChange("dataloaded",
b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Qa("onPlaybackQualityChange",c.quality);lZ(a,"cuerangesadded",a.Eb.El());c=b.getPlayerState();g.U(c,2)?eVa(a):g.U(c,8)?b.playVideo():b.bA()&&b.pauseVideo();a.N("html5_load_ads_instead_of_cue")&&2===b.getPlayerType()&&!a.Oe()&&(b=b.getVideoData(),a.ub.Xt(b.clientPlaybackNonce,b.Dd||"",b.breakType||0,b.We))}}};
eVa=function(a){if(!fVa(a)){var b=a.ub.Zd();b&&(b=b.lz(),b instanceof Promise&&b.catch(function(){}));
mZ(a,mL(a.Db()))}};
cVa=function(a){var b=a.mediaElement;aF()?a.Zq.S(b,"webkitpresentationmodechanged",a.m2):window.document.pictureInPictureEnabled&&(a.Zq.S(b,"enterpictureinpicture",function(){a.tx(!0)}),a.Zq.S(b,"leavepictureinpicture",function(){a.tx(!1)}));
XG&&(a.Zq.S(b,"webkitbeginfullscreen",function(){a.Sk(3)}),a.Zq.S(b,"webkitendfullscreen",function(){a.Sk(0)}))};
g.qO=function(a,b){return b?1===b?a.ub:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.yu[2]||a.Eb:a.Eb:a.yu[b]||null:a.Eb};
gVa=function(a,b,c,d){a=a.Zv(b,c,d);cUa(a);return a};
nZ=function(a,b){return a.Oe(b)?a.ub:b};
oZ=function(a,b){var c=a.Eb;return c&&b===a.ub&&a.Oe(b)&&a.Oe(c)?c:b};
hVa=function(a){if(!jZ(a)){var b=QP(a.Bc);b&&!b.created&&MP(a.Bc)&&b.create()}};
iVa=function(a){var b=a.getVideoData(),c=a.Bc;OP(c)||c.SH();NP(c,"embed");NP(c,"inline_preview");NP(c,"kids");NP(c,"remote");NP(c,"miniplayer");NP(c,"music");NP(c,"offline");NP(c,"unplugged");NP(c,"ypc",!1,!0);NP(c,"ypc_clickwrap",!1,!0);NP(c,"yto",!1,!0);NP(c,"webgl",!1,!0);FJa(c)?0<c.B&&c.D&&c.D.start():(NP(c,"captions",!0),NP(c,"endscreen"),c.TH(),NP(c,"creatorendscreen",!0));c.sP();a.Ua.ma("videoready",b)};
jVa=function(a){a=a.ud();a.isValid();return tJ(a)};
YUa=function(a){a.YH();var b=a.config.args;kZ(a);var c=a.ud();a.Ua.Qa("onVolumeChange",a.Th);if(b&&wP(b)){var d=nH(a.Y);d&&!a.di&&(b.fetch=0);var e=g.QG(a.Y);e&&!a.di&&(b.fetch=0);pZ(a,b);g.QG(a.Y)&&a.Ab.tick("ep_pr_s");if(d&&!a.di)qZ(a);else if(e&&!a.di)kVa(a);else if(!c.isValid())a.playlist.onReady(function(){rZ(a)})}eU(a,a.ub);
g.U(a.ub.getPlayerState(),128)||(b=yza(!a.Y.deviceIsAudioOnly),"fmt.noneavailable"===b?a.ag("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.ag(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&jVa(a)&&(a.Y.hk||a.Y.Jj)?sZ(a):g.AA("yt-player-playback-on-reload")?(g.gw("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.authUser}),kAa(!1),sZ(a)):vH(a.Y)||lVa(a),g.pH(a.Y)||"MWEB"===dH(a.Y)?(g.Tv(g.Vv(),function(){tZ(a)}),g.Tv(g.Vv(),
function(){$Ha()})):(tZ(a),$Ha()))};
tZ=function(a){if(a.N("fetch_att_independently"))g.io(a.PO);else{var b=a.getVideoData().botguardData;b&&g.eO(b,a.Y,a.getVideoData().tj||"")}};
lVa=function(a){a.Ua.ma("initializingmode");a.Tn(2);NP(a.Bc,"remote");a.Y.N("player_cued_miniplayer_module_killswitch")||NP(a.Bc,"miniplayer")};
sZ=function(a){if(g.U(a.ub.getPlayerState(),128))return!1;jVa(a)&&a.Y.Jj&&(ST.length&&a.pA?(pO(a,{muted:!1,volume:a.Th.volume},!1),uZ(a,!1)):ST.length||a.Th.muted||(pO(a,{muted:!0,volume:a.Th.volume},!1),uZ(a,!0)));var b=a.ub.getVideoData();b.gO&&pO(a,{muted:!0,volume:a.Th.volume},!1);mVa(a,1,b,!1);a.Ua.ma("initializingmode");eU(a,a.ub);a.Tn(3);var c;if(!(c=!a.Y.ql)){if(c=a.Md)c=a.mediaElement,c=!!c&&c===a.Md.mediaElement;c=c&&a.NQ}c&&(a.Ci(),kZ(a),a.ub.setMediaElement(a.mediaElement));iUa(a.ub);
if(g.U(a.ub.getPlayerState(),128))return!1;b.Km||mZ(a,3);return a.NQ=!0};
jZ=function(a){a=RO(a.Bc);return!!a&&a.loaded};
nVa=function(a,b){if(!a.xb)return!1;var c=.001*a.xb.startTimeMs-1,d=.001*a.xb.endTimeMs;"repeatChapter"===a.xb.type&&d--;return Dg(b,c)||Dg(b,d)||b>=c&&b<=d};
oVa=function(a){if(!(g.U(a.ub.getPlayerState(),64)&&a.ud().isLivePlayback&&5E3>a.xb.startTimeMs)){if(a.N("web_repeating_chapters")&&"repeatChapter"===a.xb.type){var b,c=null==(b=rO(a.vb()))?void 0:b.mw(),d;b=null==(d=a.getVideoData())?void 0:d.Hj;c instanceof g.rQ&&b&&(d=b[fR(b,a.xb.startTimeMs)],c.kL(0,d.title));isNaN(Number(a.xb.loopCount))?a.xb.loopCount=0:a.xb.loopCount++;1===a.xb.loopCount&&a.G.Qa("innertubeCommand",a.getVideoData().UX)}a.ub.seekTo(.001*a.xb.startTimeMs,{qe:"application_loopRangeStart"})}};
UUa=function(a,b){var c=a.Ua.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
wZ=function(a,b,c){if(a.Oe(c)){c=c.getVideoData();if(vZ(a))c=b;else{a=a.md;for(var d=g.t(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Gc===e.Gc){b+=e.Jc/1E3;break}d=b;a=g.t(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Gc===e.Gc)break;var f=e.Jc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.wd/1E3;else break}c=d}return c}return b};
pVa=function(a,b){if(3===a.getPresentingPlayerType())return mL(RO(a.Bc).Id);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.ue)?0:c.isAdPlaying(a.getCurrentTime()))?a.QC:-1}return 2!==b||a.Oe()?a.QC:a.nI};
XUa=function(a){xZ(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Kv.Kv={};a.OE={};a.nx=[];kJa(a.Ab);if(a.ue){var b=a.ue,c=a.ub;c.getPlayerType();sU(b,!1);uU(b);aNa(b);b.xa=c}b=a.md;a=a.ub;1!==a.getPlayerType()&&AU(b,"invalidParentVideoPlayerType");FU(b,!1);HU(b);b.j=a};
qZ=function(a){var b=qVa();if(b)if(!b.list)a.Pv();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ua.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.xP(a.playlist).videoId||(b.index=a.playlist.index));zP(a.playlist,b);a.QA&&rVa(a,a.QA)}else a.QA=null};
kVa=function(a,b){var c=(b?b:a.ud()).sO;a.Ab.tick("ep_pr_r");if(null!=c&&(zP(a.playlist,c),a.NL))a.playlist.onReady(function(){rZ(a,b)})};
pZ=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Pv,a),g.Ze(a.playlist),a.playlist=null);b&&(a.di&&(b.fetch=0),a.playlist=new vP(a.Y,b),a.playlist.subscribe("error",a.Pv,a))};
vVa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.$n(c,d);d=void 0;d=void 0===d?!1:d;(d=WA(XA(c,sVa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=WA(XA(c,tVa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=WA(XA(c,uVa),c,d,"Nielsen OCR URL"));g.nx(c,void 0,d)}return!0};
mZ=function(a,b){if(a.Eb){var c=a.Eb.getPlayerType();if(2===c&&!a.Oe()){a.nI!==b&&(a.nI=b,a.Ua.Qa("onAdStateChange",b));return}if(2===c&&a.Oe()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}0===b&&a.xb||a.QC===b||(a.QC=b,a.Ua.Qa("onStateChange",b))};
wVa=function(a,b,c){return yZ(a,b,c.videoId,c.Gc,c.isAutonav,c.Dp)};
yZ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.Y.N("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
mVa=function(a,b,c,d){var e=a.Y.N("html5_autonav_autoplay_in_preload_key")?wVa(a,b,c):yZ(a,b,c.videoId,c.Gc);var f=a.MA.get(e);if(!f)return null;a.MA.remove(e);if(g.U(f.getPlayerState(),128))return f.dispose(),null;if(f===g.qO(a,b))return KB({isCacheHit:!0},a.Ab.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||eU(a,f,!0);KB({isCacheHit:!0},a.Ab.timerName);return f};
zZ=function(a,b,c){c=g.qO(a,c);b&&c===a.ub&&(c.getVideoData().Gj=!0)};
AZ=function(a,b,c){c=void 0===c?1:c;if(!b.isValid()||a.N("embeds_web_enable_cue_video_unplayable_fix")&&g.QG(a.Y)&&!yJ(b))b.dispose(),g.Ze(g.qO(a,c)),RDa(a.ud())&&2===c&&delete a.yu[2];else{var d=a.Zv(c,b);a.cancelPlayback(4,c);eU(a,d);cUa(d);2!==c||a.N("html5_load_ads_instead_of_cue")||a.ub.Xt(b.clientPlaybackNonce,b.Dd||"",b.breakType||0,b.We);1===c&&(a.Tn(1),lVa(a))}};
xVa=function(a,b,c,d,e){b=DIa(b,c,d,e);(c=g.QG(a.Y)&&!a.Y.Z)&&!a.di&&(b.fetch=0);pZ(a,b);g.QG(a.Y)&&a.Ab.tick("ep_a_pr_s");if(c&&!a.di)c=a.ud(),pJa(c,b).then(function(f){a.NL=!0;kVa(a,f)});
else a.playlist.onReady(function(){rZ(a)});
g.QG(a.Y)&&a.Ab.tick("ep_a_pr_r")};
rZ=function(a,b){var c=g.QG(a.Y)&&!a.Y.Z,d=c&&b?b:g.xP(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Nn&&(a.Y.hk||a.Y.Jj)||!a.vt?(b=b.Gj,d=a.Xq(d,1),b&&zZ(a,d)):AZ(a,d,1));g.QG(a.Y)&&a.Ab.tick("ep_p_l");a.NL=!1;a.Ua.Qa("onPlaylistUpdate")};
fVa=function(a){if(a.playlist&&g.WG(a.Y)&&a.sz()){var b=a.Y.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
rVa=function(a,b){var c=g.Ga(b);c?((b=qVa())&&b.list&&c(),a.QA=null):a.QA=b};
qVa=function(){var a=g.Ga("yt.www.watch.lists.getState");return a?a():null};
yVa=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=bB.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=bB.AD_MARKER:(b.style=bB.TIME_MARKER,b.color=e),b.visible=!0);a.Ky([new g.cB(1E3*c,1E3*d,b)],1);return!0};
zVa=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.sf();if(!h)return f&&a.getVideoData().isLivePlayback&&a.nx.push({id:b,T4:c,S4:d}),!1;f=h-a.getCurrentTime();return yVa(a,b,c-f,d-f,void 0,void 0,e)};
AVa=function(a,b){a.nx=g.Dm(a.nx,function(f){return f.id!==b});
for(var c=a.ub.El(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.ub.removeCueRange(e),lZ(a,"cuerangesremoved",[e]),!0}return!1};
BVa=function(a){var b=(0,g.Q)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
pO=function(a,b,c){a.Y.Ba&&(a.Th=b,b.muted||uZ(a,!1),c&&a.Y.storeUserVolume&&!a.Y.Dc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.zA("yt-player-volume",c),g.zA("yt-player-volume",c,2592E3))),CVa(a),c=g.ZE&&a.mediaElement&&!a.mediaElement.Vf(),a.Y.Dc&&!c||a.Ua.Qa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
CVa=function(a){var b=a.getVideoData();if(!b.Nk){b=a.Y.Dc?1:PDa(b);var c=a.mediaElement;c.qx(a.Th.muted);try{c.setVolume(a.Th.volume*b/100)}catch(d){g.aA(new g.Yv("b183742307","multiplier: "+b+", volume: "+a.Th.volume))}}};
uZ=function(a,b){b!==a.pA&&(a.pA=b,a.Ua.Qa("onMutedAutoplayChange",b))};
DVa=function(a){var b=Gz(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Ef())?b:null};
FVa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.N("lock_fullscreen2")||a.Y.J)&&c&&c.lock&&(!g.ZE||!EVa))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.HA||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.HA=!0}}else a.HA&&(a.HA=!1,c.unlock())};
lZ=function(a,b,c){a.Ua.ma(b,c);var d=g.fH(a.Y)||g.YG(a.Y)||g.ZG(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.Qa(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}}))}};
BZ=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.qO(a,e);if(!h||(2!==h.getPlayerType()||a.Oe(h)||f)&&!g.jJ(h.getVideoData()))3===a.getPresentingPlayerType()?RO(a.Bc).Mn("control_seek",b,c):(h===a.ub&&a.xb&&!nVa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
GVa=function(a){a.Ua.Qa("SIZE_CLICKED",!a.yJ)};
dVa=function(a,b,c){c&&(a.Ci(),kZ(a));c=g.qO(a);c.Jd(new AH("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?QI(d)&&g.rH(a.Y)&&(e.live_utc_start=c.sf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Ka&&(e.vvt=d.Ka);d.J&&(e.vss_credentials_token=d.J,e.vss_credentials_token_type=d.mj);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Fm&&(e.force_gvi=d.Fm);e.autoplay=1;e.reload_count=d.Ac+1;e.reload_reason=b;d.hL&&(e.unplugged_partner_opt_out=
d.hL);d.Sf&&(e.ypc_is_premiere_trailer=d.Sf);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.ue&&hVa(a)};
HVa=function(a,b){a.ud().autonavState=b;g.zA("yt-player-autonavstate",b);a.Ua.ma("autonavchange",b)};
IVa=function(a){var b=a.getVideoData().Nk,c=a.Y.zd,d=a.isInline()&&!a.getVideoData().YF,e=a.mediaElement;b||c||d?e.aI():(e.dI(),pO(a,a.Th))};
WUa=function(a,b){return a.Y.N("html5_enable_embedded_player_visibility_signals")&&g.QG(a.Y)?new UU(b):null};
xZ=function(a){(a=QP(a.vb()))&&a.created&&a.destroy()};
vZ=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.ue};
JVa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.t(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Ll(a,d);b.hidden=!!a.hidden};
VUa=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.N("embeds_enable_request_storage_access_safari_itp")&&g.qw&&d&&b.u?qv()||b.Xa?(g.gw("embedsStorageAccessNotChecked",{isIosWebview:qv(),isPemPlayer:b.Xa}),a.hB=!1):c.hasStorageAccess().then(function(e){g.gw("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.hB=!e},function(e){g.gw("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.aA(Error("Embeds ITP Error: "+e));a.hB=!1}):a.hB=!1};
KVa=function(a,b){return g.fH(a.Y)&&Nu(b)&&Mu(b)?g.yH(a.Y,g.vJ(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):bv()};
CZ=function(a,b){KVa(a,b).then(function(c){g.nx(b,void 0,void 0,c)})};
DZ=function(a,b){b.forEach(function(c){CZ(a,c)})};
DNa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
LVa=function(a,b,c,d){var e=1E3*a.getCurrentTime()<c?1:-1;b.kL(e,d);BZ(a,c/1E3)};
EZ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
KA=function(a,b){return a.j.has(b)};
FZ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
GZ=function(a){return Array.from(a.j.keys())};
NVa=function(a){var b;return(null==(b=MVa.get(a))?void 0:b.vu)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
PVa=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:OVa.get(b.eb)||"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=HZ(a);a=b.hc;c.debugData.fulfillmentTriggerData=[];a=g.t(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(HZ(d.value));b=b.lc;c.debugData.expirationTriggerData=
[];b=g.t(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(HZ(a.value))}return c};
QVa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:OVa.get(b.eb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
HZ=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Ch&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Ch);null!=a.Qf&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Qf);return c};
RVa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Vd(d||[],function(e){return PVa(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
JZ=function(a,b){return function(c){return SVa(IZ(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.eb,b.Pb,b.hc,b.lc,c.layoutId,c.layoutType,c.eb)}};
SVa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:PVa(a,{slotId:b,slotType:c,slotPhysicalPosition:d,eb:e,Pb:f,hc:h,lc:l,Ea:new EZ([])}),layoutData:QVa(a,{layoutId:m,layoutType:n,eb:p,Vd:[],bd:[],Tc:[],Uc:[],fd:[],Xb:new Map,Ea:new EZ([]),Fc:{}})}}};
TVa=function(){return!0};
KZ=function(a){this.u=TVa;this.Fa=a;a=Math.random();var b=this.Fa.get();b=g.YF(b.G.V().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
IZ=function(a){return a.j||a.Fa.get().G.V().N("html5_force_debug_data_for_client_tmp_logs")};
UVa=function(a,b){var c={slotId:SA(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:void 0,hc:[],lc:[],eb:"surface",Ea:new EZ([])},d=Object,e=d.assign;b=TA(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xb:new Map,Vd:[],bd:[],Tc:[],Uc:[],fd:[],eb:"surface",Ea:new EZ([]),Fc:SVa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.eb,c.Pb,c.hc,c.lc,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},
a,{h_:!0,slot:c,layout:b})};
LZ=function(a){this.Wy=a};
MZ=function(a){this.Wy=a};
NZ=function(a,b,c){this.Wy=a;this.Yi=b;this.Gk=c};
VVa=function(a,b,c){var d=a.Wy();switch(b.type){case "SKIP":mGa(d,a.Yi,a.Gk,c)}};
OZ=function(){};
PZ=function(){};
QZ=function(a,b,c){this.cm=a;this.KA=b;this.Ra=c};
WVa=function(a,b,c){c=Object.assign({},c);RZ(a.KA,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(a=a.cm.dg(2))&&(c.AD_CPN=a.clientPlaybackNonce);b=g.$n(b.url,c);"1"===(new g.Cj(b)).u.get("ase")?g.zN(b,void 0,void 0,b+"&asr=1"):g.zN(b)};
SZ=function(a,b){this.ys=a;this.Ra=b};
TZ=function(a){this.G=a};
UZ=function(a,b,c){this.Lk=a;this.Ra=b;this.KA=c};
YVa=function(a){g.K.call(this);this.j=a;this.wX=XVa(this)};
XVa=function(a){var b=new $L(a.j.pd);g.L(a,b);a=g.t([new LZ(a.j.iY),new SZ(a.j.ys,a.j.Ra),new TZ(a.j.G),new UZ(a.j.Lk,a.j.Ra,a.j.Ih),new NZ(a.j.Q_,a.j.Yi,a.j.Gk),new MZ(a.j.EY),new PZ,new QZ(a.j.cm,a.j.Ih,a.j.Ra),new OZ]);for(var c=a.next();!c.done;c=a.next())c=c.value,cGa(b,c),dGa(b,c);a=g.t(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())c=c.value,YL(b,c,function(){}),ZL(b,c,function(){});
return b};
VZ=function(a){this.value=a};
ZVa=function(a){this.value=a};
$Va=function(a){this.value=a};
WZ=function(a){this.value=a};
XZ=function(a){this.value=a};
aWa=function(){VZ.apply(this,arguments)};
bWa=function(a){this.value=a};
cWa=function(a){this.value=a};
YZ=function(a){this.value=a};
ZZ=function(a){this.value=a};
$Z=function(a){this.value=a};
a_=function(a){this.value=a};
b_=function(a){this.value=a};
c_=function(a){this.value=a};
d_=function(a){this.value=a};
e_=function(){VZ.apply(this,arguments)};
dWa=function(){VZ.apply(this,arguments)};
f_=function(a){this.value=a};
g_=function(a){this.value=a};
h_=function(a){this.value=a};
eWa=function(a){this.value=a};
fWa=function(a){this.value=a};
gWa=function(a){this.value=a};
hWa=function(a){this.value=a};
iWa=function(a){this.value=a};
jWa=function(a){this.value=a};
i_=function(a){this.value=a};
j_=function(a){this.value=a};
kWa=function(a){this.value=a};
lWa=function(a){this.value=a};
k_=function(a){this.value=a};
l_=function(a){this.value=a};
m_=function(a){this.value=a};
mWa=function(a){this.value=a};
n_=function(a){this.value=a};
o_=function(a){this.value=a};
nWa=function(a){this.value=a};
p_=function(a){this.value=a};
q_=function(a){this.value=a};
r_=function(a){this.value=a};
s_=function(a){this.value=a};
t_=function(a){this.value=a};
oWa=function(a){this.value=a};
pWa=function(a){this.value=a};
u_=function(a){this.value=a};
v_=function(a){this.value=a};
qWa=function(a){this.value=a};
rWa=function(a){this.value=a};
w_=function(a){this.value=a};
x_=function(a){this.value=a};
y_=function(a){this.value=a};
sWa=function(){VZ.apply(this,arguments)};
tWa=function(a){this.value=a};
z_=function(){VZ.apply(this,arguments)};
uWa=function(){VZ.apply(this,arguments)};
vWa=function(){VZ.apply(this,arguments)};
A_=function(){VZ.apply(this,arguments)};
wWa=function(a){this.value=a};
xWa=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}};
yWa=function(a,b,c,d){g.K.call(this);this.Qd=b;this.ac=c;this.Fa=d;this.j=a(this,this,this,this,this);g.L(this,this.j);a=g.t(b);for(b=a.next();!b.done;b=a.next())g.L(this,b.value)};
FEa=function(a,b){OK(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
GEa=function(a,b){OK(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.t(a.Qd);for(var c=a.next();!c.done;c=a.next())c.value.zi(b)};
HEa=function(a,b){OK(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.t(a.Qd);for(var c=a.next();!c.done;c=a.next())c.value.qg(b)};
yEa=function(a,b){OK(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.t(a.Qd);for(var c=a.next();!c.done;c=a.next())c.value.rg(b)};
zWa=function(a,b,c){PA(c,b,void 0,void 0,c.zs);B_(a,b,!0)};
DWa=function(a,b,c){if(C_(a.j,b))if(D_(a.j,b).C=c?"filled":"not_filled",null===c){E_(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.t(a.Qd);for(var d=c.next();!d.done;d=c.next())d.value.Ik(b);B_(a,b,!1)}else{E_(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);E_(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);if(d=FZ(c.Ea,"metadata_type_sub_layouts")){d=g.t(d);for(var e=d.next();!e.done;e=d.next())E_(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value)}e=g.t(a.Qd);for(d=e.next();!d.done;d=
e.next())d.value.Jk(b);if(C_(a.j,b))if(D_(a.j,b).D)B_(a,b,!1);else{E_(a.ac,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!D_(f,b))throw new F_("Unknown slotState for onLayout");if(!f.Te.hp.get(b.slotType))throw new F_("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType);if(g.Tb(c.Vd)&&g.Tb(c.bd)&&g.Tb(c.Tc)&&g.Tb(c.Uc)&&g.Tb(c.fd))throw new F_("Layout has no exit triggers.");G_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Vd);G_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.bd);G_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Tc);G_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Uc);G_(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.fd)}catch(n){a.Eg(b,c,n);B_(a,b,!0);return}D_(a.j,b).I=!0;try{var h=a.j,l=D_(h,b),m=h.Te.hp.get(b.slotType).get().Ze(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new F_("Already had LayoutRenderingAdapter registered for slot");l.B=m;H_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Vd);H_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",
c.bd);H_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Tc);H_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Uc);H_(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.fd)}catch(n){AWa(a,b);B_(a,b,!0);a.Eg(b,c,n);return}E_(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.t(a.Qd);for(d=f.next();!d.done;d=f.next())d.value.Lj(b,c);AWa(a,b);BWa(a,b)}else CWa(a.Fa.get())&&PA("slot is unscheduled after been fulfilled.",b,c)}};
EWa=function(a,b,c){"core"!==b.eb&&E_(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
FWa=function(a,b,c){E_(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.t(a.Qd);for(var d=a.next();!d.done;d=a.next())d.value.Lj(b,c)};
PK=function(a,b,c){a=g.t(a.Qd);for(var d=a.next();!d.done;d=a.next())d.value.Mh(b,c)};
I_=function(a,b,c){E_(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.t(a.Qd);for(var d=a.next();!d.done;d=a.next())d.value.Sc(b,c)};
JK=function(a,b,c,d){E_(a.ac,NVa(d),b,c);a=g.t(a.Qd);for(var e=a.next();!e.done;e=a.next())e.value.qd(b,c,d)};
AWa=function(a,b){if(C_(a.j,b)){D_(a.j,b).I=!1;var c=J_;b=D_(a.j,b);var d=[].concat(g.u(b.T));Paa(b.T);c(a,d)}};
J_=function(a,b){b.sort(function(f,h){function l(m){PA("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):xWa(f.category,l)-xWa(h.category,l)});
var c=new Map;b=g.t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,C_(a.j,d.slot))if(D_(a.j,d.slot).I)D_(a.j,d.slot).T.push(d);else{GWa(a.ac,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.t(HWa);for(d=b.next();!d.done;d=b.next())e=g.t(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&IWa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&JWa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&KWa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
LWa(a,c)};
IWa=function(a,b,c){b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&MWa(a.j,d.slot)&&NWa(a,d.slot,d.layout,c)};
JWa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())B_(a,c.value.slot,!1)};
KWa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(D_(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(OK(a.ac,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.pz(c.slot))}};
LWa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;OK(a.ac,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.t(a.Qd),e=d.next();!e.done;e=d.next())e.value.Nj(c.slot);try{var f=a.j,h=c.slot,l=D_(f,h);if(!l)throw new lB("Got enter request for unknown slot");if(!l.u)throw new lB("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.j)throw new lB("Tried to enter a slot from stage: "+l.j);if(K_(l))throw new lB("Got enter request for already active slot");
for(var m=g.t(L_(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&K_(p))throw new lB("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j});}}catch(q){PA(q,c.slot,M_(a.j,c.slot),void 0,q.zs);B_(a,c.slot,!0);continue}c=D_(a.j,c.slot);"scheduled"!==c.j&&N_(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.NC()}};
BWa=function(a,b){if(C_(a.j,b)&&K_(D_(a.j,b))&&M_(a.j,b)&&!MWa(a.j,b)){var c;E_(a.ac,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=M_(a.j,b))?c:void 0);a=D_(a.j,b);"entered"!==a.j&&N_(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
NWa=function(a,b,c,d){if(C_(a.j,b)){var e=a.ac,f;var h=(null==(f=MVa.get(d))?void 0:f.Yt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";E_(e,h,b,c);a=D_(a.j,b);"rendering"!==a.j&&N_(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.xg(c,d)}};
B_=function(a,b,c){if(C_(a.j,b)){a:switch(D_(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(D_(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(D_(a.j,b).D=!0,!c))return;if(K_(D_(a.j,b)))D_(a.j,b).D=!0,OWa(a,b,c);else{a:switch(D_(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)D_(a.j,b).D=!0,C_(a.j,b)&&(OK(a.ac,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=D_(a.j,b),b.C="fill_cancel_requested",b.J.BH());else{c=
M_(a.j,b);d=a.Fa.get().G.V().experiments.gb("h5_enable_layout_unscheduling_events");c&&d&&a.Mh(b,c);OK(a.ac,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=D_(a.j,b),f=b.Pb,h=e.ya.get(f.triggerId);h&&(h.Xk(f),e.ya.delete(f.triggerId));f=g.t(b.hc);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.ea.get(h.triggerId);l&&(l.Xk(h),e.ea.delete(h.triggerId))}f=g.t(b.lc);for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Z.get(h.triggerId))l.Xk(h),e.Z.delete(h.triggerId);null!=e.layout&&(f=
e.layout,O_(e,f.Vd),O_(e,f.bd),O_(e,f.Tc),O_(e,f.Uc),O_(e,f.fd));e.J=void 0;null!=e.u&&(e.u.release(),e.u=void 0);null!=e.B&&(e.B.release(),e.B=void 0);e=a.j;D_(e,b)&&(e=L_(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);OK(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.t(a.Qd);for(e=a.next();!e.done;e=a.next())e=e.value,e.Oj(b),c&&!d&&e.Mh(b,c)}}}};
OWa=function(a,b,c){if(C_(a.j,b)&&K_(D_(a.j,b))){var d=M_(a.j,b);if(d&&MWa(a.j,b))NWa(a,b,d,c?"error":"abandoned");else{OK(a.ac,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=D_(a.j,b);if(!e)throw new lB("Cannot exit slot it is unregistered");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&N_(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new lB("Cannot exit slot because adapter is not defined");e.u.PC()}catch(f){PA(f,b,void 0,void 0,f.zs)}}}};
PWa=function(a){this.slot=a;this.ya=new Map;this.ea=new Map;this.Z=new Map;this.oa=new Map;this.B=this.layout=this.u=this.J=void 0;this.I=this.D=!1;this.T=[];this.j="not_scheduled";this.C="not_filled"};
K_=function(a){return"enter_requested"===a.j||a.isActive()};
F_=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.zs=c;this.args=[];b&&this.args.push(b)};
QWa=function(a,b,c,d,e,f){g.K.call(this);this.Te=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Fa=f;this.j=new Map};
L_=function(a,b){return(a=a.j.get(b))?a:new Map};
D_=function(a,b){return L_(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
RWa=function(a){var b=[];a.j.forEach(function(c){c=g.t(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
C_=function(a,b){return null!=D_(a,b)};
MWa=function(a,b){a=D_(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};
M_=function(a,b){(a=D_(a,b))?null!=a.layout&&!a.layout&&PA("Unexpected empty layout",b):PA("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
TWa=function(a,b,c){if(g.Tb(c))throw new lB("No "+SWa.get(b)+" triggers found for slot.");c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Te.Xj.get(d.triggerType))throw new lB("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
G_=function(a,b,c){c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Te.Xj.get(d.triggerType))throw new F_("No trigger adapter registered for "+SWa.get(b)+" trigger of type: "+d.triggerType);};
H_=function(a,b,c,d){d=g.t(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Te.Xj.get(e.triggerType);f.Ok(c,e,b.slot,b.layout?b.layout:null);b.oa.set(e.triggerId,f)}};
O_=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.oa.get(c.triggerId);d&&(d.Xk(c),a.oa.delete(c.triggerId))}};
N_=function(a,b,c){PA("Slot stage was "+b+" when calling method "+c,a)};
UWa=function(a){return P_(a.Nt).concat(P_(a.Xj)).concat(P_(a.Mo)).concat(P_(a.Hp)).concat(P_(a.hp))};
P_=function(a){var b=[];a=g.t(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Dj&&b.push(c);return b};
WWa=function(a){g.K.call(this);this.j=a;this.u=VWa(this)};
VWa=function(a){var b=new yWa(function(c,d,e,f){return new QWa(a.j.Te,c,d,e,f,a.j.Fa)},new Set(UWa(a.j.Te).concat(a.j.listeners)),a.j.ac,a.j.Fa);
g.L(a,b);return b};
XWa=function(a){g.K.call(this);var b=this;this.j=a;this.instance=null;g.af(this,function(){g.Ze(b.instance);b.instance=null})};
Y=function(a){return new XWa(a)};
Q_=function(a){this.j=a};
PM=function(a,b,c,d){(a=a.j())||PA("Could not initiate a command router instance.");a.executeCommand(b,c,d)};
R_=function(a,b,c,d){(a=a.j())||PA("Could not initiate a command router instance.");aM(a,b,c,d)};
S_=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
YWa=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
ZWa=function(a){return null!=a.linearAds&&S_(a.adLayoutMetadata)};
$Wa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
bXa=function(a,b,c,d,e,f,h){b=gua(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof lB?b:aXa(a,d,e,b,c);return a instanceof lB?a:[a]};
cXa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
gXa=function(a,b,c,d,e){b=g.t(b);for(var f=b.next();!f.done;f=b.next())f=f.value,T_(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return dXa(p)});
b=[];f={};for(var h=g.t(a),l=h.next();!l.done;f={Lp:f.Lp},l=h.next()){f.Lp=l.value;l={};for(var m=g.t(f.Lp.kH),n=m.next();!n.done;l={bk:l.bk},n=m.next())l.bk=n.value,n=function(p,q){return function(r){return p.bk.UH(r,q.Lp.instreamVideoAdRenderer.elementId,p.bk.jH)}}(l,f),l.bk.isContentVideoCompanion?b.push(eXa(c,d,e,f.Lp.instreamVideoAdRenderer.elementId,l.bk.associatedCompositePlayerBytesLayoutId,l.bk.adSlotLoggingData,n)):1<a.length?b.push(fXa(c,d,e,f.Lp.instreamVideoAdRenderer.elementId,l.bk.adSlotLoggingData,
function(p,q){return function(r){return p.bk.UH(r,q.Lp.instreamVideoAdRenderer.elementId,p.bk.jH,p.bk.associatedCompositePlayerBytesLayoutId)}}(l,f))):b.push(fXa(c,d,e,f.Lp.instreamVideoAdRenderer.elementId,l.bk.adSlotLoggingData,n))}return b};
T_=function(a,b,c){if(b=hXa(b)){b=g.t(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=iXa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.HD=c)}else PA("InstreamVideoAdRenderer without externalVideoId")}};
hXa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.N(a.sandwichedLinearAdRenderer.linearAd,PL);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.t(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.N(c,PL)&&b.push(g.N(c,PL));return b}return null};
dXa=function(a){if(void 0===a.instreamVideoAdRenderer)return PA("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.t(a.kH),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.UH)return!1;if(void 0===c.jH)return PA("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.HD||void 0===c.jC||a.HD!==c.jC&&"AD_PLACEMENT_KIND_SELF_START"!==c.jC)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return PA("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.HD,"matching APSR kind":c.jC}),!1}return!0};
iXa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,HD:void 0,adVideoId:b,kH:[]});return a.get(b)};
U_=function(a,b,c,d,e,f,h,l,m){e?iXa(a,e).kH.push({t5a:b,jC:c,isContentVideoCompanion:d,jH:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,UH:m}):PA("Companion AdPlacementSupportedRenderer without adVideoId")};
kXa=function(a,b){var c;if(null==(c=a.questions)||!c.length||!a.playbackCommands||(void 0===b||!b)&&1!==a.questions.length)return!1;a=g.t(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.N(b,ZJ))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.N(b,YJ))?void 0:d.surveyAdQuestionCommon);if(!jXa(e))return!1}return!0};
lXa=function(a,b){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var c;if(a)if(a.playbackCommands&&a.questions&&1===a.questions.length)if(b){var d,e=(null==(c=g.N(a.questions[0],ZJ))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.N(a.questions[0],YJ))?void 0:d.surveyAdQuestionCommon);c=jXa(e)}else c=null==(e=g.N(a.questions[0],ZJ))?void 0:e.surveyAdQuestionCommon,c=jXa(c);else c=!1;else c=!1;return c};
jXa=function(a){if(!a)return!1;a=g.N(a.instreamAdPlayerOverlay,mXa);var b=g.N(null==a?void 0:a.skipOrPreviewRenderer,V_),c=g.N(null==a?void 0:a.adInfoRenderer,W_);return(g.N(null==a?void 0:a.skipOrPreviewRenderer,X_)||b)&&c?!0:!1};
nXa=function(a){var b=0;a=g.t(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.N(c,ZJ)||g.N(c,YJ)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
oXa=function(a){var b,c,d,e,f=(null==(c=g.N(null==(b=a.questions)?void 0:b[0],ZJ))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.N(null==(d=a.questions)?void 0:d[0],YJ))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.u((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.u((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,w,y,z,B,D,G,E,J,M,P,X,W,S,ca;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==(r=a.playbackCommands)?void 0:r.rewindCommands,resumeCommands:null==(w=a.playbackCommands)?void 0:w.resumeCommands,skipCommands:null==(y=a.playbackCommands)?void 0:y.skipCommands,progressCommands:null==(z=a.playbackCommands)?void 0:z.progressCommands,z5a:null==
(B=a.playbackCommands)?void 0:B.clickthroughCommands,fullscreenCommands:null==(D=a.playbackCommands)?void 0:D.fullscreenCommands,activeViewViewableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null==(E=a.playbackCommands)?void 0:E.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(J=a.playbackCommands)?void 0:J.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(M=a.playbackCommands)?
void 0:null==(P=M.activeViewTracking)?void 0:P.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(X=a.playbackCommands)?void 0:null==(W=X.activeViewTracking)?void 0:W.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(S=a.playbackCommands)?void 0:S.endFullscreenCommands,abandonCommands:null==(ca=a.playbackCommands)?void 0:ca.abandonCommands,completeCommands:b}};
rXa=function(a,b,c,d,e,f,h){return function(l,m){return pXa(a,m.slotId,l,f,function(n,p){n=h(n);return qXa(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new iWa(c),d],c.adLayoutLoggingData)})}};
uXa=function(a,b,c,d,e,f,h){if(!sXa(a))return new lB("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[tXa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=TA(e.Ya.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",eb:"core"},q=new Y_(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xb:new Map,Vd:[q],bd:[],
Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([new jWa(l)]),Fc:n(p)}})]};
sXa=function(a){a=g.N(null==a?void 0:a.additionalPlayerOverlay,vXa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
yXa=function(a,b,c,d,e,f){var h;if(null==(h=a.playerOverlay)||!h.instreamSurveyAdRenderer)return function(){return[]};
if(!lXa(a,f))return function(){return new lB("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var l=a.playerOverlay.instreamSurveyAdRenderer,m=nXa(l);return 0>=m?function(){return new lB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:l})}:function(n,p){var q=wXa(n,c,d,function(r){var w=p(r),y=r.slotId;
r=oXa(l);y=TA(e.Ya.get(),"LAYOUT_TYPE_SURVEY",y);var z={layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",eb:"core"},B=new Y_(e.j,d),D=new Z_(e.j,y),G=new $_(e.j,y),E=new xXa(e.j);return{layoutId:y,layoutType:"LAYOUT_TYPE_SURVEY",Xb:new Map,Vd:[B,E],bd:[D],Tc:[],Uc:[G],fd:[],eb:"core",Ea:new EZ([new hWa(l),new $Z(b),new x_(m/1E3),new z_(r)]),Fc:w(z),adLayoutLoggingData:l.adLayoutLoggingData}});
n=uXa(a,c,q.slotId,d,e,n,p);return n instanceof lB?n:[q].concat(g.u(n))}};
HXa=function(a,b,c,d,e,f,h){var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(z){z=zXa(z.slotId,c,b,e(z),d,f,h);m=z.p4;return z.SY};
else if(c.renderer.instreamVideoAdRenderer)n=function(z){var B=z.slotId;z=e(z);var D=c.config.adPlacementConfig,G=AXa(D),E=G.IP;G=G.LP;var J=c.renderer.instreamVideoAdRenderer,M;if(null==J?0:null==(M=J.playerOverlay)?0:M.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var P=BXa(J);M=Math.min(E+1E3*P.videoLengthSeconds,G);G=new MJ(0,[P.videoLengthSeconds],M);var X=P.videoLengthSeconds,W=P.playerVars,S=P.instreamAdPlayerOverlayRenderer,ca=P.adVideoId,
O=CXa(c),xa=P.Xb;P=P.KO;var la=null==J?void 0:J.adLayoutLoggingData;J=null==J?void 0:J.sodarExtensionData;B=TA(b.Ya.get(),"LAYOUT_TYPE_MEDIA",B);var ta={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",eb:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Xb:xa,Vd:[new DXa(b.j)],bd:[],Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([new f_(d),new n_(X),new o_(W),new q_(E),new r_(M),S&&new g_(S),new $Z(D),new e_(ca),new a_(G),new u_(O),J&&new p_(J),new k_({current:null}),new t_({}),new A_(P)].filter(EXa)),Fc:z(ta),
adLayoutLoggingData:la}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=FXa(a,d,n);l.push(p);for(var q=g.t(m),r=q.next();!r.done;r=q.next()){var w=r.value,y=w(a,e);if(y instanceof lB)return y;l.push.apply(l,g.u(y))}}catch(z){return new lB(z,{errorMessage:z.message,AdPlacementRenderer:c,numberOfSurveyRenderers:GXa(c)})}return l};
GXa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.N(b,PL))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
zXa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=AXa(l),n=m.IP,p=m.LP;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={OT:n,PT:0,m4:q};m=m.map(function(y){return IXa(a,y,r,c,d,l,e,p,h)}).map(function(y,z){z=new MJ(z,q,p);
return y(z)});
var w=m.map(function(y){return y.TY});
return{SY:JXa(c,a,n,w,l,CXa(b),d,p,f),p4:m.map(function(y){return y.o4})}};
IXa=function(a,b,c,d,e,f,h,l,m){var n=BXa(g.N(b,PL)),p=c.OT,q=c.PT,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.OT=r;c.PT++;c.m4.push(n.videoLengthSeconds);var w,y,z=null==(w=g.N(b,PL))?void 0:null==(y=w.playerOverlay)?void 0:y.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==z)throw new TypeError("Survey slate media has no survey overlay");return function(B){var D=n.playerVars;2<=B.u&&(D.slot_pos=B.j);D.autoplay="1";var G,E;D=n.videoLengthSeconds;var J=n.playerVars,M=n.Xb,P=n.KO,X=n.instreamAdPlayerOverlayRenderer,
W=n.adVideoId,S=null==(G=g.N(b,PL))?void 0:G.adLayoutLoggingData;G=null==(E=g.N(b,PL))?void 0:E.sodarExtensionData;E=TA(d.Ya.get(),"LAYOUT_TYPE_MEDIA",a);var ca={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};B={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA",Xb:M,Vd:[],bd:[],Tc:[],Uc:[],fd:[],eb:"adapter",Ea:new EZ([new f_(h),new n_(D),new o_(J),new q_(p),new r_(r),new s_(q),new k_({current:null}),X&&new g_(X),new $Z(f),new e_(W),new a_(B),G&&new p_(G),z&&new vWa(z),new t_({}),new A_(P)].filter(EXa)),
Fc:e(ca),adLayoutLoggingData:S};D=yXa(g.N(b,PL),f,h,B.layoutId,d,m);return{TY:B,o4:D}}};
BXa=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=Gu(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,Xb:a.pings?PJ(a.pings):new Map,KO:OJ(a.pings)}};
CXa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
AXa=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{IP:b,LP:a}};
LXa=function(a,b,c,d,e,f,h){var l=c.pings;return l?[KXa(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=TA(b.Ya.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",eb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xb:PJ(l),Vd:[new a0(b.j,f)],bd:[],Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([new $Z(d)]),Fc:m(q),adLayoutLoggingData:p}})]:new lB("VideoAdTrackingRenderer without VideoAdTracking pings filled.",
{videoAdTrackingRenderer:c})};
NXa=function(a,b,c,d,e,f,h,l){a=MXa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=TA(b.Ya.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",eb:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Xb:q,Vd:[new b0(b.j,n)],bd:[],Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([new pWa(e),new $Z(c)]),Fc:m(p)}});
return a instanceof lB?a:[a]};
SXa=function(a,b,c,d,e,f,h,l){a=OXa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=TA(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=PXa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,QXa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=TA(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=PXa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,QXa(b,n,p))):q.imageOverlayAdContentRenderer?(q=TA(b.Ya.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=QXa(b,n,p),n.push(new RXa(b.j,q)),n=PXa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new F_("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new F_("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof lB?a:[a]};
VXa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new lB("Expected valid duration for AdActionInterstitialRenderer."):function(p){return TXa(b,p.slotId,c,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return UXa(a,q,e,function(r,w){var y=r.slotId;r=h(r);y=TA(b.Ya.get(),"LAYOUT_TYPE_ENDCAP",
y);return qXa(b,y,w,c,r,"LAYOUT_TYPE_ENDCAP",[new fWa(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
WXa=function(a,b,c,d){if(!c.playerVars)return new lB("No playerVars available in AdIntroRenderer.");var e=Gu(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=TA(a.Ya.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};return{hj:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Xb:new Map,Vd:[],bd:[],Tc:[],Uc:[],fd:[],eb:"adapter",Ea:new EZ([new oWa({}),new $Z(b),new k_({current:null}),new o_(e)]),Fc:f(l)},wk:[new c0(a.j,h,["error"])],Ni:[],Uv:[],
Tv:[]}}};
YXa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=nXa(e);if(!kXa(e,n))return new lB("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new lB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=rXa(a,b,e,f,c,d,h);return q instanceof lB?q:function(r){return XXa(b,r.slotId,c,p,oXa(e),h(r),q,l,m)}};
ZXa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.N(a.ctaButton,g.SI)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.N(a.backgroundImage,d0)&&(null==(b=g.N(a.backgroundImage,d0))?0:b.landscape)?!0:!1};
aYa=function(a,b,c,d,e,f,h,l){function m(q){return UXa(a,q,d,n)}
function n(q,r){var w=q.slotId;q=h(q);w=TA(b.Ya.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return qXa(b,w,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new gWa(e),f],e.adLayoutLoggingData)}
if(!ZXa(e))return new lB("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},w=h(q);q=$Xa(b,q.slotId,c,p,r,new Map,w,m);r=new j_(q.AE);w=new b_(l);return{hj:{layoutId:q.layoutId,layoutType:q.layoutType,Xb:q.Xb,Vd:[],bd:[],Tc:[],Uc:[],fd:[],eb:q.eb,Ea:new EZ([].concat(g.u(q.Rv),[r,w])),Fc:q.Fc,adLayoutLoggingData:q.adLayoutLoggingData},
wk:[],Ni:q.Tc,Uv:q.Uc,Tv:q.fd,Mf:q.Mf}}};
dYa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){d=SA(d,"SLOT_TYPE_PLAYER_BYTES");a=bYa(e,a,h,c,d,m,n);if(a instanceof lB)return a;var y;h=null==(y=FZ(a.Ea,"metadata_type_fulfilled_layout"))?void 0:y.layoutId;if(!h)return new lB("Invalid adNotify layout");b=cYa(h,e,f,c,l,b,m,p,q,r,w);return b instanceof lB?b:[a].concat(g.u(b))};
cYa=function(a,b,c,d,e,f,h,l,m,n,p){c=eYa(c,d,f,h,l,m,n,p);if(c instanceof lB)return c;a=fYa(b,a,h,e,c);return a instanceof lB?a:[].concat(g.u(a.Qh),[a.Rt])};
hYa=function(a,b,c,d,e,f,h,l,m,n,p){b=eYa(b,c,e,f,l,m,n,p);if(b instanceof lB)return b;a=gYa(a,c,f,h,d,l.Ud,b);return a instanceof lB?a:a.Qh.concat(a.Rt)};
eYa=function(a,b,c,d,e,f,h,l){var m=e0(c);return m instanceof F_?new lB(m):function(n){var p=new MJ(0,[m.Jy]),q=iYa(m.playerVars,m.gL,e,l,p);n=f(n);var r=h.get(m.Sr.externalVideoId);p=jYa(a,"core",m.Sr,b,q,m.Jy,d,p,n,r);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,Xb:p.Xb,Vd:p.Vd,bd:p.bd,Tc:p.Tc,Uc:p.Uc,fd:p.fd,eb:p.eb,Ea:new EZ(p.nP),Fc:p.Fc,adLayoutLoggingData:p.adLayoutLoggingData},Qh:[]}}};
e0=function(a){if(!a.playerVars)return new F_("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 F_("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Gu(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,PA("Expected valid length seconds in player vars but got NaN"));
return{Sr:a,playerVars:b,gL:a.playerVars,Jy:c}};
iYa=function(a,b,c,d,e){a.iv_load_policy=d;b=Gu(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){PA(f)}c.Rh&&(a.ctrl=c.Rh);c.Bi&&(a.ytr=c.Bi);c.Fo&&(a.ytrcc=c.Fo);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.mj&&(a.vss_credentials_token_type=c.mj),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
lYa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y,z){a=SA(a,"SLOT_TYPE_PLAYER_BYTES");d=bYa(b,h,d,e,a,n,p);if(d instanceof lB)return d;var B;h=null==(B=FZ(d.Ea,"metadata_type_fulfilled_layout"))?void 0:B.layoutId;if(!h)return new lB("Invalid adNotify layout");b=kYa(h,b,c,e,f,m,l,n,q,r,w,y,z);return b instanceof lB?b:[d].concat(g.u(b))};
kYa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=mYa(b,c,d,f,h,l,m,n,p,q,r);nYa(f)?(d=oYa(b,a),a=SA(b.Ya.get(),"SLOT_TYPE_IN_PLAYER"),f=TA(b.Ya.get(),"LAYOUT_TYPE_SURVEY",a),l=pYa(b,d,l),b=[].concat(g.u(l.lc),[new f0(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,Pb:l.Pb,hc:l.hc,lc:b,eb:l.eb},{slotId:a,layoutId:f}),e=a instanceof lB?a:{Rt:Object.assign({},l,{lc:b,Ea:new EZ([new v_(a.layout)]),adSlotLoggingData:e}),Qh:a.Qh}):e=fYa(b,a,l,e,c);return e instanceof
lB?e:[].concat(g.u(e.Qh),[e.Rt])};
rYa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=mYa(a,b,c,e,f,h,m,n,p,q,r);nYa(e)?(c=qYa(a,c,h,l),c instanceof lB?d=c:(e=SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER"),h=TA(a.Ya.get(),"LAYOUT_TYPE_SURVEY",e),a=[].concat(g.u(c.lc),[new f0(a.j,h)]),e=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,eb:c.eb,Pb:c.Pb,hc:c.hc,lc:a},{slotId:e,layoutId:h}),d=e instanceof lB?e:{Rt:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,Pb:c.Pb,hc:c.hc,lc:a,eb:c.eb,
Ea:new EZ([new v_(e.layout)]),adSlotLoggingData:d},Qh:e.Qh})):d=gYa(a,c,h,l,d,m.Ud,b);return d instanceof lB?d:d.Qh.concat(d.Rt)};
nYa=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(g.N(b.value,g0))return!0;return!1};
mYa=function(a,b,c,d,e,f,h,l,m,n,p){return function(q,r){if(sYa(p)&&tYa(p))a:{var w=uYa(d);if(w instanceof lB)r=w;else{for(var y=0,z=[],B=[],D=[],G=[],E=[],J=[],M=new l_({current:null}),P=new d_({current:null}),X=!1,W=[],S=0,ca=[],O=g.t(d.entries()),xa=O.next();!xa.done;xa=O.next()){var la=g.t(xa.value);xa=la.next().value;la=la.next().value;var ta=g.N(la,PL);if(ta){ta=e0(ta);if(ta instanceof F_){r=new lB(ta);break a}var La=new MJ(S,w),cb=iYa(ta.playerVars,ta.gL,h,n,La);S++;ca[xa]={renderer:la,data:ta,
jY:La,QO:cb}}}S=-1;w=g.t(d.entries());for(O=w.next();!O.done;O=w.next())if(xa=g.t(O.value),O=xa.next().value,xa=xa.next().value,la=g.N(xa,RL)){O=WXa(b,c,la,l);if(O instanceof lB){r=O;break a}O=O(q);z.push(O.hj);B=[].concat(g.u(O.wk),g.u(B));D=[].concat(g.u(O.Ni),g.u(D));O.Mf&&(W=[O.Mf].concat(g.u(W)))}else if(g.N(xa,PL))la=ca[O],S=la.data,xa=la.jY,la=la.QO,O=ca[O+1],ta=void 0,O&&(ta=O.QO),O=vYa(b,S.Sr,c,la,S.Jy,f,xa,l(q),P,m.get(S.Sr.externalVideoId),ta),y++,z.push(O.hj),B=[].concat(g.u(O.wk),g.u(B)),
D=[].concat(g.u(O.Ni),g.u(D)),X||(J.push(P),X=!0),S=(S=S.Sr.adPodSkipTarget)&&0<S?S:-1;else if(O=g.N(xa,QL)){O=VXa(a,b,c,O,f,y,l,P,S);if(O instanceof lB){r=O;break a}O=O(q);z.push(O.hj);B=[].concat(g.u(O.wk),g.u(B));D=[].concat(g.u(O.Ni),g.u(D));O.Mf&&(W=[O.Mf].concat(g.u(W)))}else if(O=g.N(xa,g0)){if(void 0===r){r=new lB("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:O});break a}O=YXa(a,b,c,f,O,M,l,r,y,RZ(p,"supports_multi_step_on_desktop"));
if(O instanceof lB){r=O;break a}O=O(q);z.push(O.hj);O.Mf&&W.push(O.Mf);B=[].concat(g.u(O.wk),g.u(B));D=[].concat(g.u(O.Ni),g.u(D));G=[].concat(g.u(O.Uv),g.u(G));E=[].concat(g.u(O.Tv),g.u(E));J=[M].concat(g.u(J))}else if(O=g.N(xa,wYa)){O=aYa(a,b,c,f,O,M,l,y);if(O instanceof lB){r=O;break a}O=O(q);z.push(O.hj);O.Mf&&W.push(O.Mf);D=[].concat(g.u(O.Ni),g.u(D))}else{r=new lB("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}r={QT:z,bd:B,Uc:G,fd:E,Tc:D,Rv:J,Qh:W}}}else a:if(y=uYa(d),y instanceof
lB)r=y;else{z=0;B=[];D=[];G=[];E=[];J=[];M=[];P=new l_({current:null});X=new d_({current:null});W=!1;ca=[];S=-1;w=g.t(d);for(O=w.next();!O.done;O=w.next())if(O=O.value,g.N(O,RL)){O=WXa(b,c,g.N(O,RL),l);if(O instanceof lB){r=O;break a}O=O(q);B.push(O.hj);D=[].concat(g.u(O.wk),g.u(D));G=[].concat(g.u(O.Ni),g.u(G));O.Mf&&(ca=[O.Mf].concat(g.u(ca)))}else if(g.N(O,PL)){S=e0(g.N(O,PL));if(S instanceof F_){r=new lB(S);break a}O=new MJ(z,y);O=vYa(b,S.Sr,c,iYa(S.playerVars,S.gL,h,n,O),S.Jy,f,O,l(q),X,m.get(S.Sr.externalVideoId));
z++;B.push(O.hj);D=[].concat(g.u(O.wk),g.u(D));G=[].concat(g.u(O.Ni),g.u(G));W||(M.push(X),W=!0);S=(S=S.Sr.adPodSkipTarget)&&0<S?S:-1}else if(g.N(O,QL)){O=VXa(a,b,c,g.N(O,QL),f,z,l,X,S);if(O instanceof lB){r=O;break a}O=O(q);B.push(O.hj);D=[].concat(g.u(O.wk),g.u(D));G=[].concat(g.u(O.Ni),g.u(G));O.Mf&&(ca=[O.Mf].concat(g.u(ca)))}else if(g.N(O,g0)){if(void 0===r){r=new lB("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.N(O,g0)});break a}O=YXa(a,
b,c,f,g.N(O,g0),P,l,r,z,RZ(p,"supports_multi_step_on_desktop"));if(O instanceof lB){r=O;break a}O=O(q);B.push(O.hj);O.Mf&&ca.push(O.Mf);D=[].concat(g.u(O.wk),g.u(D));G=[].concat(g.u(O.Ni),g.u(G));E=[].concat(g.u(O.Uv),g.u(E));J=[].concat(g.u(O.Tv),g.u(J));M=[P].concat(g.u(M))}else if(g.N(O,wYa)){O=aYa(a,b,c,f,g.N(O,wYa),P,l,z);if(O instanceof lB){r=O;break a}O=O(q);B.push(O.hj);O.Mf&&ca.push(O.Mf);G=[].concat(g.u(O.Ni),g.u(G))}else{r=new lB("Unsupported linearAd found in LinearAdSequenceRenderer.");
break a}r={QT:B,bd:D,Uc:E,fd:J,Tc:G,Rv:M,Qh:ca}}r instanceof lB?q=r:(J=q.slotId,y=r.QT,z=r.bd,B=r.Tc,D=r.Uc,G=r.Rv,q=l(q),E=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",J=e?e.layoutId:TA(b.Ya.get(),E,J),M={layoutId:J,layoutType:E,eb:"core"},q={layout:{layoutId:J,layoutType:E,Xb:new Map,Vd:[new b0(b.j,J)],bd:z,Tc:B,Uc:D,fd:[],eb:"core",Ea:new EZ([new m_(y)].concat(g.u(G))),Fc:q(M)},Qh:r.Qh});return q}};
uYa=function(a){var b=[];a=g.t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,g.N(c,PL)){c=e0(g.N(c,PL));if(c instanceof F_)return new lB(c);b.push(c.Jy)}return b};
yYa=function(a,b,c,d,e,f,h,l){if(!kXa(c,void 0===l?!1:l))return new lB("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=nXa(c);if(0>=m)return new lB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new l_({current:null}),p=rXa(a,b,c,n,d,f,h);return xYa(a,d,f,m,e,function(q,r){var w=q.slotId,y=oXa(c);q=h(q);w=TA(b.Ya.get(),"LAYOUT_TYPE_MEDIA_BREAK",w);var z={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
eb:"core"},B=p(w,r);FZ(B.Ea,"metadata_type_fulfilled_layout")||PA("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");y=[new $Z(d),new y_(m),new z_(y),n];return{E_:{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xb:new Map,Vd:[new b0(b.j,w)],bd:[new Z_(b.j,r.layoutId)],Tc:[],Uc:[new $_(b.j,r.layoutId)],fd:[],eb:"core",Ea:new EZ(y),Fc:q(z)},c_:B}})};
zYa=function(a){if(!$Wa(a))return!1;var b=g.N(a.adVideoStart,OL);return b?g.N(a.linearAd,PL)&&GK(b)?!0:(PA("Invalid Sandwich with notify"),!1):!1};
AYa=function(a){if(null==a.linearAds)return!1;a=g.N(a.adStart,OL);return a?GK(a)?!0:(PA("Invalid LASR with notify"),!1):!1};
BYa=function(a){if(!ZWa(a))return!1;a=g.N(a.adStart,OL);return a?GK(a)?!0:(PA("Invalid LASR with notify"),!1):!1};
h0=function(a,b,c,d,e,f,h,l){this.Ya=a;this.Gb=b;this.zb=c;this.Fa=d;this.Hb=e;this.j=f;this.Pi=h;this.loadPolicy=void 0===l?1:l};
Kta=function(a,b,c,d,e,f,h,l){var m=[];if(0===b.length&&0===c.length)return m;b=b.filter(YWa);for(var n=c.filter(YWa),p=new Map,q=new Map,r=g.t(b),w=r.next();!w.done;w=r.next())(w=w.value.renderer.remoteSlotsRenderer)&&w.hostElementId&&q.set(w.hostElementId,w);r=g.t(b);for(w=r.next();!w.done;w=r.next()){w=w.value;var y=CYa(a,p,w,d,e,f,h,q,l);y instanceof lB?PA(y,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):m.push.apply(m,
g.u(y))}DYa(a.Fa.get())||(e=EYa(a,n,d,h,q,p),m.push.apply(m,g.u(e)));if(null===a.j||f&&!h.zP){var z,B,D;a=h.Ud&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(z=b[0].config)?void 0:null==(B=z.adPlacementConfig)?void 0:B.kind)&&(null==(D=b[0].renderer)?void 0:D.adBreakServiceRenderer);if(!m.length&&!a){var G,E,J,M;PA("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,"first APR kind":null==(G=b[0])?void 0:null==
(E=G.config)?void 0:null==(J=E.adPlacementConfig)?void 0:J.kind,renderer:null==(M=b[0])?void 0:M.renderer})}return m}z=c.filter(YWa);m.push.apply(m,g.u(gXa(p,z,a.Gb.get(),a.j,d)));if(!m.length){var P,X,W,S;PA("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f.toString(),"first APR kind":null==(P=b[0])?void 0:null==(X=P.config)?void 0:null==(W=X.adPlacementConfig)?void 0:W.kind,renderer:null==(S=b[0])?void 0:S.renderer})}return m};
EYa=function(a,b,c,d,e,f){function h(r){return JZ(a.Hb.get(),r)}
var l=[];b=g.t(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&&zYa(p)?(q=g.N(p.adVideoStart,OL),p=g.N(p.linearAd,PL),T_(f,n,m.config.adPlacementConfig.kind),n=void 0,q=cYa(null==(n=q)?void 0:n.layout.layoutId,a.Gb.get(),a.zb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Fa.get()),q instanceof lB?PA(q):l.push.apply(l,g.u(q))):q&&(!q.adLayoutMetadata&&AYa(q)||q.adLayoutMetadata&&BYa(q))&&
(T_(f,n,m.config.adPlacementConfig.kind),n=void 0,p=kYa(null==(n=g.N(q.adStart,OL))?void 0:n.layout.layoutId,a.Gb.get(),a.zb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,S_(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Fa.get()),p instanceof lB?PA(p):l.push.apply(l,g.u(p)))}return l};
CYa=function(a,b,c,d,e,f,h,l,m){function n(z){return JZ(a.Hb.get(),z)}
var p=c.renderer,q=c.config.adPlacementConfig,r=q.kind,w=c.adSlotLoggingData,y=h.zP&&"AD_PLACEMENT_KIND_START"===r;y=f&&!y;if(null!=p.adsEngagementPanelRenderer)return U_(b,c.elementId,r,p.adsEngagementPanelRenderer.isContentVideoEngagementPanel,p.adsEngagementPanelRenderer.adVideoId,p.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(z,B,D,G){var E=a.zb.get(),J=p.adsEngagementPanelRenderer,M=JZ(a.Hb.get(),z);return i0(E,z.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new $Va(J),B,D,J.impressionPings,M,p.adsEngagementPanelRenderer.adLayoutLoggingData,G)}),[];
if(null!=p.actionCompanionAdRenderer)U_(b,c.elementId,r,p.actionCompanionAdRenderer.isContentVideoCompanion,p.actionCompanionAdRenderer.adVideoId,p.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(z,B,D,G){var E=a.zb.get(),J=p.actionCompanionAdRenderer,M=JZ(a.Hb.get(),z);return i0(E,z.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new ZVa(J),B,D,J.impressionPings,M,p.actionCompanionAdRenderer.adLayoutLoggingData,G)});
else if(p.imageCompanionAdRenderer)U_(b,c.elementId,r,p.imageCompanionAdRenderer.isContentVideoCompanion,p.imageCompanionAdRenderer.adVideoId,p.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(z,B,D,G){var E=a.zb.get(),J=p.imageCompanionAdRenderer,M=JZ(a.Hb.get(),z);return i0(E,z.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new bWa(J),B,D,J.impressionPings,M,p.imageCompanionAdRenderer.adLayoutLoggingData,G)});
else if(p.shoppingCompanionCarouselRenderer)U_(b,c.elementId,r,p.shoppingCompanionCarouselRenderer.isContentVideoCompanion,p.shoppingCompanionCarouselRenderer.adVideoId,p.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,q,w,function(z,B,D,G){var E=a.zb.get(),J=p.shoppingCompanionCarouselRenderer,M=JZ(a.Hb.get(),z);return i0(E,z.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new cWa(J),B,D,J.impressionPings,M,p.shoppingCompanionCarouselRenderer.adLayoutLoggingData,G)});
else if(p.adBreakServiceRenderer){if(!cXa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==r)return bXa(a.Gb.get(),q,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Pi)return new lB("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.Ud||PA("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:r,adPlacementConfig:q,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.Ud),clientPlaybackNonce:h.clientPlaybackNonce});
FYa(a.Pi,{adPlacementRenderer:c,contentCpn:d,qP:e})}else{if(p.clientForecastingAdRenderer)return NXa(a.Gb.get(),a.zb.get(),q,w,p.clientForecastingAdRenderer,d,e,n);if(p.invideoOverlayAdRenderer)return SXa(a.Gb.get(),a.zb.get(),q,w,p.invideoOverlayAdRenderer,d,e,n);if((p.linearAdSequenceRenderer||p.instreamVideoAdRenderer)&&y)return HXa(a.Gb.get(),a.zb.get(),c,d,n,m,a.Fa.get().G.V().experiments.gb("html5_ytvlr_enable_single_select_survey"));if(p.linearAdSequenceRenderer&&!y){T_(b,p,r);if(p.linearAdSequenceRenderer.adLayoutMetadata){if(!ZWa(p.linearAdSequenceRenderer))return new lB("Received invalid LinearAdSequenceRenderer.")}else if(null==
p.linearAdSequenceRenderer.linearAds)return new lB("Received invalid LinearAdSequenceRenderer.");if(g.N(p.linearAdSequenceRenderer.adStart,OL)){b=g.N(p.linearAdSequenceRenderer.adStart,OL);if(!wEa(b))return new lB("Invalid AdMessageRenderer.");c=p.linearAdSequenceRenderer.linearAds;return lYa(a.Ya.get(),a.Gb.get(),a.zb.get(),a.Hb.get(),q,w,b,S_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,h,n,l,a.loadPolicy,a.Fa.get())}return rYa(a.Gb.get(),
a.zb.get(),q,w,p.linearAdSequenceRenderer.linearAds,S_(p.linearAdSequenceRenderer.adLayoutMetadata)?p.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,h,n,l,a.loadPolicy,a.Fa.get())}if(!p.remoteSlotsRenderer||f){if(p.instreamVideoAdRenderer&&!y)return T_(b,p,r),hYa(a.Gb.get(),a.zb.get(),q,w,p.instreamVideoAdRenderer,d,e,h,n,l,a.loadPolicy,a.Fa.get());if(p.instreamSurveyAdRenderer)return yYa(a.Gb.get(),a.zb.get(),p.instreamSurveyAdRenderer,q,w,d,n,RZ(a.Fa.get(),"supports_multi_step_on_desktop"));
if(null!=p.sandwichedLinearAdRenderer)return $Wa(p.sandwichedLinearAdRenderer)?g.N(p.sandwichedLinearAdRenderer.adVideoStart,OL)?(b=g.N(p.sandwichedLinearAdRenderer.adVideoStart,OL),wEa(b)?(c=g.N(p.sandwichedLinearAdRenderer.linearAd,PL))?dYa(b,c,q,a.Ya.get(),a.Gb.get(),a.zb.get(),a.Hb.get(),w,d,e,h,n,l,a.loadPolicy,a.Fa.get()):new lB("Missing IVAR from Sandwich"):new lB("Invalid AdMessageRenderer.")):rYa(a.Gb.get(),a.zb.get(),q,w,[p.sandwichedLinearAdRenderer.adVideoStart,p.sandwichedLinearAdRenderer.linearAd],
void 0,d,e,h,n,l,a.loadPolicy,a.Fa.get()):new lB("Received invalid SandwichedLinearAdRenderer.");if(null!=p.videoAdTrackingRenderer)return LXa(a.Gb.get(),a.zb.get(),p.videoAdTrackingRenderer,q,w,d,n)}}return[]};
j0=function(a){g.K.call(this);this.j=a};
JA=function(a,b,c,d){a.j().cj(b,d);c=c();a=a.j();k0(a.ac,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.t(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;OK(d.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);OK(d.ac,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.eb(c.slotId))throw new lB("Slot ID was empty");if(D_(e,c))throw new lB("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Pb.triggerType});if(!e.Te.Mo.has(c.slotType))throw new lB("No fulfillment adapter factory registered for slot of type: "+
c.slotType);if(!e.Te.Hp.has(c.slotType))throw new lB("No SlotAdapterFactory registered for slot of type: "+c.slotType);TWa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Pb?[c.Pb]:[]);TWa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.hc);TWa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.lc);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=L_(f,h);if(D_(f,c))throw new lB("Duplicate slots not supported");l.set(c.slotId,new PWa(c));f.j.set(h,l)}catch(W){PA(W,c,void 0,void 0,W.zs);break a}D_(d.j,c).I=!0;try{var m=d.j,n=D_(m,
c),p=c.Pb,q=m.Te.Xj.get(p.triggerType);q&&(q.Ok("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ya.set(p.triggerId,q));for(var r=g.t(c.hc),w=r.next();!w.done;w=r.next()){var y=w.value,z=m.Te.Xj.get(y.triggerType);z&&(z.Ok("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,c,null),n.ea.set(y.triggerId,z))}for(var B=g.t(c.lc),D=B.next();!D.done;D=B.next()){var G=D.value,E=m.Te.Xj.get(G.triggerType);E&&(E.Ok("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.Z.set(G.triggerId,E))}var J=m.Te.Mo.get(c.slotType).get().Ze(m.B,
c);n.J=J;var M=m.Te.Hp.get(c.slotType).get().Ze(m.D,c);M.init();n.u=M}catch(W){PA(W,c,void 0,void 0,W.zs);B_(d,c,!0);break a}OK(d.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.zi(c);for(var P=g.t(d.Qd),X=P.next();!X.done;X=P.next())X.value.zi(c);AWa(d,c)}};
l0=function(a,b,c,d){this.Jp=b;this.pm=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
m0=function(a,b,c,d){g.K.call(this);var e=this;this.Ub=a;this.Gb=b;this.dc=c;this.j=new Map;d.get().addListener(this);g.af(this,function(){d.get().removeListener(e)})};
Hta=function(a,b){var c=0x8000000000000;for(var d=0,e=g.t(b.hc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof l0?(c=Math.min(c,f.pm.start),d=Math.max(d,f.pm.end)):PA("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Ko(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.dc.get().addCueRange(d,c.start,c.end,!1,a)};
n0=function(){g.K.apply(this,arguments);this.Dj=!0;this.Tj=new Map;this.j=new Map};
GYa=function(a,b){a=g.t(a.Tj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
HYa=function(a,b){a=g.t(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.t(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}PA("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.eb(b)),layoutId:b})};
f0=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
c0=function(a,b,c){this.Qf=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
Y_=function(a,b){this.Qf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
DXa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
IYa=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)};
JYa=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)};
b0=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
a0=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
KYa=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)};
xXa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
LYa=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
o0=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
MYa=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
Z_=function(a,b){this.Qf=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
$_=function(a,b){this.Qf=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
RXa=function(a,b){this.durationMs=45E3;this.Qf=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
NYa=function(a){var b=[new i_(a.Dx),new g_(a.instreamAdPlayerOverlayRenderer),new lWa(a.JS),new $Z(a.adPlacementConfig),new n_(a.videoLengthSeconds),new x_(a.PJ)];a.MO&&b.push(new d_(a.MO));return b};
OYa=function(a,b,c,d,e,f){a=c.hJ?c.hJ:TA(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",eb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xb:new Map,Vd:[new Y_(function(l){return UA(f,l)},c.Dx)],
bd:[],Tc:[],Uc:[],fd:[],eb:b,Ea:d,Fc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
p0=function(a){var b=this;this.Ya=a;this.j=function(c){return UA(b.Ya.get(),c)}};
PYa=function(a,b,c,d,e,f){c=new EZ([new h_(c),new $Z(d)]);b=TA(a.Ya.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",eb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xb:new Map,Vd:[new Y_(function(h){return UA(a.Ya.get(),h)},e)],
bd:[],Tc:[],Uc:[],fd:[],eb:"core",Ea:c,Fc:f(d),adLayoutLoggingData:void 0}};
q0=function(a,b,c,d,e){var f=NYa(d);return OYa(b,c,d,new EZ(f),e,a.Ya.get())};
QYa=function(a,b,c,d,e){var f=NYa(d);f.push(new YZ(d.hY));f.push(new ZZ(d.kY));return OYa(b,c,d,new EZ(f),e,a.Ya.get())};
i0=function(a,b,c,d,e,f,h,l,m,n){b=TA(a.Ya.get(),c,b);var p={layoutId:b,layoutType:c,eb:"core"},q=new Map;h&&q.set("impression",h);h=[new IYa(a.j,e)];n&&h.push(new c0(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Xb:q,Vd:h,bd:[],Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([d,new $Z(f),new i_(e)]),Fc:l(p),adLayoutLoggingData:m}};
QXa=function(a,b,c){var d=[];d.push(new JYa(a.j,c));b&&d.push(b);return d};
PXa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,eb:"core"};return{layoutId:b,layoutType:c,Xb:new Map,Vd:h,bd:[new f0(a.j,b)],Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([new aWa(d),new $Z(e)]),Fc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
qXa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,eb:"core"};return{layoutId:b,layoutType:f,Xb:new Map,Vd:[new Y_(a.j,c)],bd:[],Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([new $Z(d)].concat(g.u(h))),Fc:e(m),adLayoutLoggingData:l}};
TXa=function(a,b,c,d,e,f,h,l,m,n,p,q){a=$Xa(a,b,c,d,e,f,h,l,p,q);b=a.Rv;c=new j_(a.AE);d=a.bd;0<m&&(b.push(c),b.push(new c_(m)),d=[]);b.push(new b_(n));return{hj:{layoutId:a.layoutId,layoutType:a.layoutType,Xb:a.Xb,Vd:[],bd:[],Tc:[],Uc:[],fd:[],eb:a.eb,Ea:new EZ(b),Fc:a.Fc,adLayoutLoggingData:a.adLayoutLoggingData},wk:d,Ni:a.Tc,Uv:a.Uc,Tv:a.fd,Mf:a.Mf}};
XXa=function(a,b,c,d,e,f,h,l,m){b=$Xa(a,b,c,d,e,new Map,f,function(n){return h(n,l)});
a=new $_(a.j,b.AE);c=new j_(b.AE);m=new b_(m);return{hj:{layoutId:b.layoutId,layoutType:b.layoutType,Xb:b.Xb,Vd:[],bd:[],Tc:[],Uc:[],fd:[],eb:b.eb,Ea:new EZ([].concat(g.u(b.Rv),[c,m])),Fc:b.Fc,adLayoutLoggingData:b.adLayoutLoggingData},wk:b.bd,Ni:b.Tc,Uv:[].concat(g.u(b.Uc),[a]),Tv:b.fd,Mf:b.Mf}};
$Xa=function(a,b,c,d,e,f,h,l,m,n){b=TA(a.Ya.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",eb:"adapter"};l=l(b);var q=FZ(l.Ea,"metadata_type_fulfilled_layout");q||PA("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new $Z(c),new y_(d),new z_(e)];n&&c.push(new s_(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xb:f,Vd:[],bd:[new Z_(a.j,q)],Tc:[],Uc:[],fd:[],eb:"adapter",
Rv:c,Fc:h(p),adLayoutLoggingData:m,Mf:l,AE:q}};
vYa=function(a,b,c,d,e,f,h,l,m,n,p){c=jYa(a,"adapter",b,c,d,e,f,h,l,n,p);d=c.bd;e=c.nP;b.adPodSkipTarget&&0<b.adPodSkipTarget&&(e.push(m),e.push(new c_(b.adPodSkipTarget)),d=[]);e.push(new b_(h.j));b.isCritical&&(d=[new c0(a.j,c.layoutId,["error"])].concat(g.u(d)));return{hj:{layoutId:c.layoutId,layoutType:c.layoutType,Xb:c.Xb,Vd:[],bd:[],Tc:[],Uc:[],fd:[],eb:c.eb,Ea:new EZ(e),Fc:c.Fc,adLayoutLoggingData:c.adLayoutLoggingData},wk:d,Ni:c.Tc,Uv:c.Uc,Tv:c.fd}};
jYa=function(a,b,c,d,e,f,h,l,m,n,p){var q=c.elementId,r={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",eb:b};d=[new $Z(d),new a_(l),new e_(c.externalVideoId),new f_(h),new g_(c.playerOverlay.instreamAdPlayerOverlayRenderer),new z_({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new o_(e),new k_({current:null}),new n_(f)];p&&d.push(new nWa(p));(p=c.playerUnderlay)&&d.push(new h_(p));p=SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");e=(e=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
e:TA(a.Ya.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);d.push(new j_(e));d.push(new kWa(p));d.push(new s_(l.j));c.adNextParams&&d.push(new WZ(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new eWa(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new XZ(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new sWa(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new p_(c.sodarExtensionData));n&&d.push(new w_(n));d.push(new A_(OJ(c.pings)));return{layoutId:q,
layoutType:"LAYOUT_TYPE_MEDIA",Xb:PJ(c.pings),Vd:[new b0(a.j,q)],bd:c.skipOffsetMilliseconds?[new Z_(a.j,e)]:[],Tc:[new Z_(a.j,e)],Uc:[],fd:[],eb:b,nP:d,Fc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
JXa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return FK(p,[],["LAYOUT_TYPE_MEDIA"])})||PA("Unexpect subLayout type for DAI composite layout");
b=TA(a.Ya.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",eb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xb:new Map,Vd:[new DXa(a.j)],bd:[],Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([new q_(c),new r_(l),new m_(d),new $Z(e),new u_(f),new t_({}),new wWa(m)]),Fc:h(n)}};
EXa=function(a){return null!=a};
RYa=function(a,b,c){this.Jp=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
r0=function(a,b,c){this.Qf=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
s0=function(a,b){this.Qf=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
SYa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
t0=function(a,b,c,d,e){this.Jp=b;this.pm=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
TYa=function(a,b,c){this.Jp=b;this.pm=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
u0=function(a,b){this.Ch=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
v0=function(a,b){this.Ch=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
w0=function(a,b){this.Ch=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
x0=function(a,b){this.Ch=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
y0=function(a,b){this.Ch=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
z0=function(a,b){this.Ch=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
A0=function(a,b,c){var d=this;this.Ya=a;this.zb=b;this.Fa=c;this.j=function(e){return UA(d.Ya.get(),e)}};
aXa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=SA(a.Ya.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.oq&&d.oq.start!==d.gm.start&&l.push(new l0(a.j,c,new Ko(d.oq.start,d.gm.start),!1));l.push(new l0(a.j,c,new Ko(d.gm.start,d.gm.end),d.SA));d={getAdBreakUrl:b.getAdBreakUrl,dT:d.gm.start,cT:d.gm.end};b=new x0(a.j,h);f=[new qWa(d)].concat(g.u(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Pb:b,hc:l,lc:[new a0(a.j,c),new v0(a.j,h),new w0(a.j,h)],eb:"core",Ea:new EZ(f),
adSlotLoggingData:e}};
VYa=function(a,b,c){var d=[];c=g.t(c);for(var e=c.next();!e.done;e=c.next())d.push(UYa(a,b,e.value));return d};
UYa=function(a,b,c){return null!=c.Ch&&c.Ch===a?c.clone(b):c};
pXa=function(a,b,c,d,e){return WYa(a,b,c,d,e)};
UXa=function(a,b,c,d){var e=SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");return WYa(a,e,b,c,d)};
WYa=function(a,b,c,d,e){var f=new s0(a.j,c),h=[new u0(a.j,b)];a=[new v0(a.j,b),new a0(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:f,hc:h,lc:a,eb:"core",Ea:new EZ([new v_(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",Pb:f,hc:h,lc:a},c))]),adSlotLoggingData:void 0}};
xYa=function(a,b,c,d,e,f){var h=SA(a.Ya.get(),"SLOT_TYPE_PLAYER_BYTES"),l=SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER"),m=TA(a.Ya.get(),"LAYOUT_TYPE_SURVEY",l);b=B0(a,b,c,d);d=[new u0(a.j,h)];a=[new v0(a.j,h),new a0(a.j,c),new f0(a.j,m)];if(b instanceof lB)return b;f=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,eb:"core",Pb:b,hc:d,lc:a},{slotId:l,layoutId:m});l=f.c_;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,hc:d,lc:a,eb:"core",Ea:new EZ([new v_(f.E_)]),
adSlotLoggingData:e},l]};
XYa=function(a,b,c,d,e){e=e?e:SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");c=new s0(a.j,c);var f=[new u0(a.j,e)];a=[new a0(a.j,b),new v0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,hc:f,lc:a,eb:"core",Ea:new EZ([new v_(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",Pb:c,hc:f,lc:a}))])}};
YYa=function(a,b,c,d){var e=SA(a.Ya.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new s0(a.j,c);var f=[new u0(a.j,e)];a=[new a0(a.j,b),new v0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Pb:c,hc:f,lc:a,eb:"core",Ea:new EZ([new v_(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,eb:"core",Pb:c,hc:f,lc:a}))])}};
bYa=function(a,b,c,d,e,f,h){var l=SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER"),m=TA(a.Ya.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=ZYa(a,d,f,h,m);if(d instanceof lB)return d;h=[new u0(a.j,l)];e=[new a0(a.j,f),new u0(a.j,e),new z0(a.j,e)];c=JZ(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",Pb:d,hc:h,lc:e});a=a.zb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",eb:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xb:new Map,Vd:[new LYa(a.j,m,
b.durationMs)],bd:[new MYa(a.j,m,b.durationMs)],fd:[new o0(a.j,m)],Tc:[],Uc:[],eb:"core",Ea:new EZ([new tWa(b)]),Fc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",Pb:d,hc:h,lc:e,Ea:new EZ([new v_(b)])}};
OXa=function(a,b,c,d,e,f){b=B0(a,b,c,d);if(b instanceof lB)return b;var h=b instanceof l0?new TYa(a.j,c,b.pm):null;d=SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");var l=[new u0(a.j,d)];a=[new a0(a.j,c),new v0(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",Pb:b,hc:l,lc:a},h);return f instanceof F_?new lB(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:b,hc:l,lc:a,eb:"core",Ea:new EZ([new v_(f)]),adSlotLoggingData:e}};
wXa=function(a,b,c,d){var e=SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");c=new s0(a.j,c);var f=[new u0(a.j,e)],h=[new v0(a.j,e),new a0(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",Pb:c,hc:f,lc:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,hc:[new u0(a.j,e)],lc:[new a0(a.j,b),new v0(a.j,e)],eb:"core",Ea:new EZ([new v_(d(f))])}};
tXa=function(a,b,c,d,e){var f=SA(a.Ya.get(),"SLOT_TYPE_IN_PLAYER");c=new r0(a.j,d,c);d=[new u0(a.j,f)];a=[new a0(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,hc:d,lc:a,eb:"core",Ea:new EZ([new v_(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,eb:"core",Pb:c,hc:d,lc:a}))])}};
fXa=function(a,b,c,d,e,f){var h=SA(a.Ya.get(),b);return $Ya(a,h,b,new s0(a.j,d),c,e,d,f)};
eXa=function(a,b,c,d,e,f,h){var l=SA(a.Ya.get(),b);return $Ya(a,l,b,new c0(a.j,e,["normal"]),c,f,d,h)};
KXa=function(a,b,c,d){var e=SA(a.Ya.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new MA(a.j,b);var f=[new u0(a.j,e)];a=[new v0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Pb:b,hc:f,lc:a,eb:"core",Ea:new EZ([new v_(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,eb:"core",Pb:b,hc:f,lc:a}))]),adSlotLoggingData:c}};
FXa=function(a,b,c){var d=SA(a.Ya.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new SYa(a.j),f=[new y0(a.j,d)];a=[new a0(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:e,hc:f,lc:a,eb:"core",Ea:new EZ([new v_(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,eb:"core",Pb:e,hc:f,lc:a})),new t_({})])}};
oYa=function(a,b){return DYa(a.Fa.get())?new c0(a.j,b,["normal","error","skipped"]):new c0(a.j,b,["normal"])};
fYa=function(a,b,c,d,e){b=oYa(a,b);a=pYa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,hc:a.hc,lc:a.lc,eb:a.eb});return e instanceof lB?e:{Rt:Object.assign({},a,{Ea:new EZ([new v_(e.layout)]),adSlotLoggingData:d}),Qh:e.Qh}};
gYa=function(a,b,c,d,e,f,h){a=qYa(a,b,c,d);if(a instanceof lB)return a;h=h({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,hc:a.hc,lc:a.lc,eb:a.eb});if(h instanceof lB)return h;b=[new v_(h.layout)];f&&b.push(new uWa({}));return{Rt:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,hc:a.hc,lc:a.lc,eb:a.eb,Ea:new EZ(b),adSlotLoggingData:e},Qh:h.Qh}};
pYa=function(a,b,c){var d=SA(a.Ya.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new u0(a.j,d)];a=[new v0(a.j,d),new a0(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,hc:e,lc:a,eb:"core"}};
qYa=function(a,b,c,d){b=B0(a,b,c,d);return b instanceof lB?b:pYa(a,b,c)};
MXa=function(a,b,c,d,e,f){var h=SA(a.Ya.get(),"SLOT_TYPE_FORECASTING");b=B0(a,b,c,d);if(b instanceof lB)return b;d=[new u0(a.j,h)];a=[new v0(a.j,h),new a0(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Pb:b,hc:d,lc:a,eb:"core",Ea:new EZ([new v_(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,eb:"core",Pb:b,hc:d,lc:a}))]),adSlotLoggingData:e}};
aZa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new MA(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=gua(b,d),a instanceof lB?a:e(a.gm,f);case "AD_PLACEMENT_KIND_END":return new RYa(a.j,c,f);default:return new lB("Cannot construct entry trigger",{kind:b.kind})}};
ZYa=function(a,b,c,d,e){return aZa(a,b,c,d,function(f,h){return new t0(a.j,c,f,h,e)})};
B0=function(a,b,c,d){return aZa(a,b,c,d,function(e,f){return new l0(a.j,c,e,f)})};
$Ya=function(a,b,c,d,e,f,h,l){var m=[new y0(a.j,b)];a=[new a0(a.j,e),new v0(a.j,b),new c0(a.j,h,["error"])];return{slotId:b,slotType:c,slotPhysicalPosition:1,Pb:d,hc:m,lc:a,eb:"core",Ea:new EZ([new v_(l({slotId:b,slotType:c,slotPhysicalPosition:1,eb:"core",Pb:d,hc:m,lc:a}))]),adSlotLoggingData:f}};
C0=function(a,b){g.K.call(this);this.Fa=a;this.j=b;this.eventCount=0};
OK=function(a,b,c){k0(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
E_=function(a,b,c,d){k0(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
GWa=function(a,b,c,d){IZ(a.j.get())&&k0(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)};
k0=function(a,b,c,d,e,f,h,l,m,n){try{if(bZa(a.Fa.get())){var p=g.YF(a.Fa.get().G.V().experiments,"H5_async_logging_delay_ms");g.Tv(g.Vv(),function(){return void cZa(a,b,c,d,e,f,h,l,m,n)},p)}else cZa(a,b,c,d,e,f,h,l,m,n)}catch(q){RZ(a.Fa.get(),"html5_log_pacf_logging_errors")&&g.Tv(g.Vv(),function(){PA(q instanceof Error?q:String(q),f,h,{pacf_message:"exception during pacf logging"})})}};
cZa=function(a,b,c,d,e,f,h,l,m,n){if(a.u()&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){b||PA("Empty PACF event type",f,h);var p=IZ(a.j.get());b={eventType:b,eventOrder:++a.eventCount};var q={};f&&(q.slotData=PVa(p,f));h&&(q.layoutData=QVa(p,h));l&&(q.triggerData=HZ(l.trigger,l.category));c&&(q.opportunityData=RVa(p,c,d,e));c={organicPlaybackContext:{contentCpn:a.Ta.get().dg(1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=a.Ta.get().dg(1).Ud;var r;c.organicPlaybackContext.isMdxPlayback=
null==(r=a.Ta.get().dg(1))?void 0:r.isMdxPlayback;var w;if(r=null==(w=a.Ta.get().dg(2))?void 0:w.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:r};c&&(q.externalContext=c);b.adClientData=q;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);m={adsClientEvent:b};RZ(a.Fa.get(),"tvh5_pacf_disable_gel_log_action")||g.gw("adsClientStateChange",m)}};
D0=function(a,b,c){C0.call(this,a,b);this.Fa=a;this.Ta=c};
E0=function(){this.j=new Map};
F0=function(a,b,c,d,e){g.K.call(this);this.G=a;this.u=b;this.Ha=c;this.Ta=d;this.bf=e;this.listeners=[];var f=new Jz(this);g.L(this,f);f.S(a,"internalAbandon",this.sK);g.af(this,function(){g.Lz(f)})};
G0=function(a){g.K.call(this);this.G=a;this.j=new Map;this.u=new Jz(this);g.L(this,this.u);this.u.S(this.G,g.eB("ad"),this.onCueRangeEnter,this);this.u.S(this.G,g.fB("ad"),this.onCueRangeExit,this)};
eZa=function(a,b){(b=a.j.get(b))&&dZa(a,b)};
dZa=function(a,b){a.G.yh([b.Yd],b.qm);a.j.delete(b.Yd.id)};
fZa=function(a,b,c,d,e){g.cB.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
H0=function(a){this.G=a};
I0=function(a){this.G=a;this.j=Math.random()<g.YF(this.G.V().experiments,"tv_pacf_logging_sample_rate")};
bZa=function(a){return g.fH(a.G.V())&&RZ(a,"H5_use_async_logging")};
RZ=function(a,b){return a.G.V().N(b)};
J0=function(a){var b,c,d;return(null==(b=a.G.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
gZa=function(a){return a.G.V().N("html5_enable_vod_lasr_with_notify_pacf")};
DYa=function(a){return a.G.V().N("html5_enable_vod_slar_with_notify_pacf")};
CWa=function(a){if(g.rH(a.G.V())||eH(a.G.V())||g.fH(a.G.V()))return!0;PA("Composite VOD on legacy path.");return!1};
hZa=function(a){return a.G.V().N("html5_recognize_predict_start_cue_point")};
iZa=function(a){return a.G.V().N("enable_lr_home_infeed_ads_inline_playback_progress_pings")};
jZa=function(a){return a.G.V().N("enable_player_logging_lr_home_infeed_ads")};
kZa=function(a){return a.G.V().experiments.gb("enable_desktop_player_underlay")};
sYa=function(a){return a.G.V().experiments.gb("html5_load_ads_instead_of_cue")};
tYa=function(a){return a.G.V().experiments.gb("html5_preload_ads")};
K0=function(a,b){this.Ha=a;this.G=b;this.j=new Map;LJ().subscribe("adactiveviewmeasurable",this.vA,this);LJ().subscribe("adfullyviewableaudiblehalfdurationimpression",this.uA,this);LJ().subscribe("adviewableimpression",this.wA,this);LJ().subscribe("adaudioaudible",this.sA,this);LJ().subscribe("adaudiomeasurable",this.tA,this)};
lZa=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?PA("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),e=a.G.V().N("av_fix_measurable_dispatch")?1:0,yk(Yk().featureSet,"fmd",e),Yn(Tk(Wn),c),XDa(LJ(),b,{zz:function(){return d?{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:d,Rc:2===a.Ha.get().getPresentingPlayerType()&&1===L0(a.Ha.get(),2),b6a:!1,d6a:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}}))};
mZa=function(a,b){a.j.has(b)?(a.j.delete(b),delete LJ().j[b]):PA("Unexpected unregistration of layout in LidarApi")};
M0=function(a,b){this.B=a;this.C=b};
N0=function(a,b,c,d){var e=void 0===e?new M0(function(){var f=a.V(),h=a.getVideoData(1);return g.yH(f,h?g.vJ(h):"")},function(){return a.V().pageId}):e;
this.G=a;this.u=b;this.Jb=c;this.Ta=d;this.ys=e;this.mF=null;this.j=new Map;this.Lk=new hK(e)};
oZa=function(a,b,c,d,e){d=void 0===d?[]:d;var f=HYa(a.u.get(),c);f?(c=O0(a,nZa(f),f,void 0,e),b.hasOwnProperty("baseUrl")?a.ys.send(b,c):a.Lk.send(b,c,{},d)):PA("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
P0=function(a,b){g.gw("adsClientStateChange",b)};
pZa=function(a,b){a.j.has(b.uw())?PA("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.uw(),b)};
qZa=function(a,b){a.j.delete(b.uw())||PA("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
nZa=function(a){var b=FZ(a.Ea,"metadata_type_ad_placement_config");a=FZ(a.Ea,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,tR:a}};
O0=function(a,b,c,d,e){var f=c?rZa(a):{};c=c?sZa(a,c.layoutId):{};var h=a.G.V().N("enable_macro_substitution_on_html5")?tZa(a):{},l={},m={};f=Object.assign({},cK(a.G,d),eEa(b.adPlacementConfig),(l.SLOT_POS=bK(function(){return(b.tR||0).toString()}),l),c,f,h,(m.FINAL=bK(function(){return"1"}),m.AD_CPN=bK(function(){var n;
return(null==(n=a.Ta.get().dg(2))?void 0:n.clientPlaybackNonce)||""}),m));
d={};e=Object.assign({},f,e);f=g.t(Object.values(uZa));for(c=f.next();!c.done;c=f.next())c=c.value,h=e[c],null!=h&&null!=h.toString()&&(d[c]=h.toString());return d};
rZa=function(a){var b={},c,d=null==(c=a.mF)?void 0:c.wm/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=bK(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=bK(function(){return Math.round(Date.now()/1E3).toString()});
return b};
sZa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.vI();if(!a)return{};b={};return b.YT_ERROR_CODE=a.BF.toString(),b.ERRORCODE=a.xB.toString(),b.ERROR_MSG=a.errorMessage,b};
tZa=function(a){var b={},c=a.G.getVideoData(1);b.ASR=bK(function(){var d;return null!=(d=null==c?void 0:c.ul)?d:null});
b.EI=bK(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
Q0=function(a,b,c){g.K.call(this);this.G=a;this.Ld=b;this.Fa=c;this.listeners=[];this.GJ=null;this.lH=new Map;b=new g.WE(this);g.L(this,b);b.S(a,"videodatachange",this.X2);b.S(a,"serverstitchedvideochange",this.s2);this.Ps=this.dg()};
wZa=function(a,b,c){var d=vZa(a,b,c);a.Ps=d;a.listeners.forEach(function(e){e.nS(d)})};
vZa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.Gc,l=b.title,m=b.Rh,n=b.Bi,p=b.isMdxPlayback,q=b.mj,r=b.mdxEnvironment,w=b.isAutonav,y=b.Dp,z=b.Nn,B=b.Gs,D=b.videoId||"",G=b.profilePicture||"",E=b.Zk||"";b=b.Fo||void 0;h=a.Ld.get().j.get(h)||{layoutId:null,slotId:null};var J=a.G.getVideoData(1),M=J.Ud();J=J.getPlayerResponse();c=1E3*a.G.getDuration(c);a=1E3*a.G.getDuration(1);var P,X,W=(null==J?void 0:null==(P=J.playerConfig)?void 0:null==(X=P.daiConfig)?void 0:X.enableDai)||
!1,S,ca;P=(null==J?void 0:null==(S=J.playerConfig)?void 0:null==(ca=S.daiConfig)?void 0:ca.enablePreroll)||!1;return Object.assign({},h,{videoId:D,author:d,clientPlaybackNonce:e,playbackDurationMs:c,qP:a,daiEnabled:W,zP:P,isListed:f,Ud:M,profilePicture:G,title:l,Zk:E,Rh:m,Bi:n,Fo:b,isMdxPlayback:p,mj:q,mdxEnvironment:r,isAutonav:w,Dp:y,Nn:z,Gs:B})};
R0=function(a,b,c){g.K.call(this);this.G=a;this.Ta=b;this.Fa=c;this.listeners=[];this.EC=[];this.Rs=function(){PA("Called 'doUnlockPreroll' before it's initialized.")};
b=new Jz(this);c=new g.WE(this);g.L(this,c);g.L(this,b);b.S(a,"progresssync",this.P1);b.S(a,"presentingplayerstatechange",this.G1);b.S(a,"fullscreentoggled",this.onFullscreenToggled);b.S(a,"onVolumeChange",this.onVolumeChange);b.S(a,"minimized",this.nh);b.S(a,"resize",this.Bb);c.S(a,g.eB("appad"),this.Hk)};
xZa=function(a,b){a.EC=a.EC.filter(function(c){return c!==b})};
yZa=function(a,b){var c;b=null!=(c=a.Ta.get().lH.get(b))?c:null;if(null===b)return PA("Expected ad video start time on playback timeline"),0;a=a.G.getCurrentTime(2,!0);return a<b?0:a-b};
L0=function(a,b){return a.G.Db(b)};
zZa=function(a){var b=a.G.fb().Wi();a=a.G.zj(!0,!0);return b.height-(a.height+a.top)};
AZa=function(a){a.G.cueVideoByPlayerVars({videoId:"empty_video"},2)};
BZa=function(a,b){var c=a.G.V();g.VG(c)||"3"!==c.controlsType||a.G.fb().cB(b)};
S0=function(a,b){g.po(a.G.getRootNode(),b)};
T0=function(a,b){g.ro(a.G.getRootNode(),b)};
CZa=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new RA});
g.L(this,this.Ya);this.zb=Y(function(){return new p0(f.Ya)});
g.L(this,this.zb);this.Hc=Y(function(){return new n0});
g.L(this,this.Hc);this.Ub=Y(function(){return new j0(a)});
g.L(this,this.Ub);this.Gb=Y(function(){return new A0(f.Ya,f.zb,f.Fa)});
g.L(this,this.Gb);this.Ld=Y(function(){return new E0});
g.L(this,this.Ld);this.Lb=Y(function(){return new Q_(e)});
this.dc=Y(function(){return new G0(b)});
g.L(this,this.dc);this.pd=Y(function(){return new H0(b)});
g.L(this,this.pd);this.Fa=Y(function(){return new I0(b)});
g.L(this,this.Fa);this.Hb=Y(function(){return new KZ(f.Fa)});
g.L(this,this.Hb);this.Pd=Y(function(){return new h0(f.Ya,f.Gb,f.zb,f.Fa,f.Hb,null,null)});
g.L(this,this.Pd);this.Ta=Y(function(){return new Q0(b,f.Ld,f.Fa)});
g.L(this,this.Ta);this.ac=new D0(this.Fa,this.Hb,this.Ta);g.L(this,this.ac);this.Ha=Y(function(){return new R0(b,f.Ta,f.Fa)});
g.L(this,this.Ha);this.Jb=Y(function(){return new K0(f.Ha,b)});
g.L(this,this.Jb);this.Ra=Y(function(){return new N0(b,f.Hc,f.Jb,f.Ta)});
g.L(this,this.Ra);this.Nc=new QA(this.Ub,this.Pd,c,this.Fa,a,this.Ta,this.Ha);g.L(this,this.Nc);var h=new F0(b,this.Nc,this.Ha,this.Ta);this.Ff=Y(function(){return h});
this.wr=h;this.Ue=new m0(this.Ub,this.Gb,this.dc,this.Ff);g.L(this,this.Ue);this.Qc=new IA(this.Ub,this.Gb,this.Pd,this.Ta,this.Ue,c);g.L(this,this.Qc);this.Te={Nt:new Map,Mo:new Map,Xj:new Map,Hp:new Map,hp:new Map};this.listeners=[];this.Bt={Qc:this.Qc,jp:null,Ih:this.Fa.get(),bb:this.Lb.get(),Dr:this.Ha.get(),Nc:this.Nc,Ml:this.Ya.get(),ip:null,Gk:{YI:function(){}},
Yi:this.Hc.get(),cm:this.Ta.get()}};
U0=function(){this.listeners=new Set};
V0=function(){};
DZa=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;b.siub&&b.scs&&(a||c)&&Rga(b.siub,b.scs,b.bgub,b.bgp,c)};
EZa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.zb=c;this.Hb=d;this.Fa=e;this.j=null};
FZa=function(a,b,c,d){a.j&&PA("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.Bx?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.zb.get(),l=a.slot.slotId,m=JZ(a.Hb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,eb:a.slot.eb,Pb:a.slot.Pb,hc:a.slot.hc,lc:a.slot.lc}),n=TA(h.Ya.get(),f,l),p={layoutId:n,layoutType:f,eb:"core"};e={layoutId:n,
layoutType:f,Xb:new Map,Vd:[new KYa(h.j,l)],bd:[],Tc:[],Uc:[],fd:[],eb:"core",Ea:new EZ([new rWa(e)]),Fc:m(p)};DWa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Ch||zWa(a.callback,a.slot,new lB(e,void 0,!0))});
RZ(a.Fa.get(),"fetch_bid_for_dclk_status")&&OA("abr fetch")};
GZa=function(a){if(null==a.j)a.callback.uE(a.slot);else try{a.j.cancel(),a.j=null,a.callback.uE(a.slot)}catch(b){a.j=null,zWa(a.callback,a.slot,new lB(b))}};
HZa=function(a,b,c,d,e,f,h){this.slot=b;this.lf=c;this.Se=h;this.j=new EZa(a,b,d,e,f)};
IZa=function(a){var b;null==(b=a.Se)||b.get().Br(FZ(a.slot.Ea,"metadata_type_cue_point").identifier)};
JZa=function(a,b,c,d,e,f){this.slot=b;this.lf=c;this.j=new EZa(a,b,d,e,f)};
KZa=function(a,b){this.callback=a;this.slot=b};
LZa=function(a,b){return LA(a,b.Fe,b.slotType)?!0:!1};
MZa=function(){};
W0=function(a,b,c,d,e){this.lf=a;this.zb=b;this.Hb=c;this.Fa=d;this.Se=e};
X0=function(){};
NZa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
Y0=function(a,b){return FK(a,b.Fe,b.Kf)?!0:!1};
Z0=function(a){this.j=a};
$0=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Ra=b;this.layoutId=d;this.C=0;this.D=null;this.j=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,tR:e}};
a1=function(){return["metadata_type_ad_placement_config"]};
b1=function(a){var b=a.Ra.get();return O0(b,a.I)};
c1=function(a,b,c){c=void 0===c?!1:c;if(!a.j.has(b)){var d=c&&QJ(b);d&&(c=!a.j.has(d));a.cg(b,c)}};
d1=function(a,b,c){for(c=void 0===c?!1:c;a.C<a.u.length;){var d=a.u[a.C];if(d.offsetMilliseconds<=b||c)OZa(a,"progress",[d]),a.C++;else break}};
e1=function(a,b){return a.j.has(b)};
PZa=function(a){return a.u.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
f1=function(a,b){var c;return!(null==(c=a.B.get(b))||!c.length)};
OZa=function(a,b,c){var d,e=a.Ra.get(),f=a.layoutId;a=null!=(d=a.D)?d:void 0;c=void 0===c?[]:c;if(d=HYa(e.u.get(),f))for(b=e.Jb.get().cg(f,b),f=O0(e,nZa(d),d,a),c=g.t(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.Lk.send(d.baseUrl,f,b,d.headers);else PA("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
QZa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.j=e;a=FZ(this.layout.Ea,"metadata_type_ad_placement_config");this.u=new $0(c.Xb,this.Ra,a,c.layoutId)};
RZa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];a1().forEach(function(b){a.push(b)});
return{Fe:a,Kf:["LAYOUT_TYPE_FORECASTING"]}};
g1=function(a,b,c){this.Ra=a;this.j=b;this.Jb=c};
SZa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
TZa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.Eg(a.slot,b,new F_("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType))):c()};
h1=function(a,b,c,d){g.Mz.call(this);this.callback=a;this.B=d;this.j=[];this.u=new SZa(a,b,c)};
i1=function(a,b,c,d,e,f,h){e=FZ(c.Ea,e);a=b1(a);var l=Yf(function(){d.Sc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Fc},function(){l()}))};
j1=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.t(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.G.sendVideoStatsEngageEvent(1,void 0,2):e?e():PA("Tried to call engagePingCallback but it is null",h,l)}}else PA("Companion AdUxClick received without a layoutId",h,l)};
UZa=function(a,b,c,d,e){HJ.call(this,"action-companion",a,b,c,d,e)};
VZa=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ra=e;this.yf=f;this.J=l;this.Dj=!0;this.C=null;this.D=FZ(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.yf().Qd.add(this);a=FZ(c.Ea,"metadata_type_ad_placement_config");this.I=new $0(c.Xb,this.Ra,a,c.layoutId)};
WZa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];a1().forEach(function(b){a.push(b)});
return{Fe:a,Kf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
k1=function(a,b,c,d,e){h1.call(this,a,b,c,d);a=FZ(c.Ea,"metadata_type_ad_placement_config");this.C=new $0(c.Xb,e,a,c.layoutId)};
XZa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];a1().forEach(function(b){a.push(b)});
return{Fe:a,Kf:["LAYOUT_TYPE_ENDCAP"]}};
l1=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ha=e;this.Ra=f;this.I=h;this.D=l;this.C=!1;this.J=FZ(this.layout.Ea,"metadata_type_linked_player_bytes_layout_id")};
YZa=function(){return{Fe:["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"],Kf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
m1=function(a,b,c,d,e,f){h1.call(this,c,a,b,d);this.Ha=e;this.Fa=f};
ZZa=function(){return{Fe:["metadata_type_valid_ad_message_renderer"],Kf:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
n1=function(a,b,c,d,e,f,h,l,m){return Y0(c,YZa())?new l1(a,b,c,d,e,f,h,l):Y0(c,XZa())?new k1(a,b,c,d,f):Y0(c,ZZa())?new m1(b,c,a,d,e,m):null};
$Za=function(a,b,c,d,e,f){this.kc=a;this.Ha=b;this.Ra=c;this.u=d;this.j=e;this.Fa=f};
o1=function(a,b,c,d,e,f){g.K.call(this);this.callback=a;this.ze=b;this.Ha=c;this.Xd=d;this.yf=e;this.Fa=f;this.Dj=!0;this.gJ=!1};
a_a=function(a,b,c,d,e,f,h,l,m,n){o1.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.I=l;this.u=[];this.j=-1;this.C=!1};
c_a=function(a,b,c){var d=a.u[a.j];if(c.layoutId!==p1(d,b,c))PA("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.kd(),d.Fb(),{requestingSlot:b,requestingLayout:c});else{var e=FZ(d.Fb().Ea,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.u.length){for(var f=e;f<a.u.length;){if(e===FZ(a.u[f].Fb().Ea,"metadata_type_ad_pod_skip_index")){b_a(a,d.kd(),d.Fb(),f);return}f++}PA("Skip-to-index was requested but target index was not found",d.kd(),d.Fb(),{requestingSlot:b,
requestingLayout:c})}else PA("Invalid ad pod skip target index",d.kd(),d.Fb(),{requestingSlot:b,requestingLayout:c})}};
p1=function(a,b,c){var d=FZ(a.Fb().Ea,"metadata_type_linked_in_player_layout_id");return d?d:(PA("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.kd(),a.Fb(),{requestingSlot:b,requestingLayout:c}),null)};
f_a=function(a,b,c,d){d_a(a,b,c,d,function(){e_a(a,a.j+1)})};
b_a=function(a,b,c,d){d_a(a,b,c,"skipped",function(){e_a(a,d)})};
d_a=function(a,b,c,d,e){if(!a.C){var f=a.u[a.j];f?(f.Fb().layoutId!==c.layoutId&&PA("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Fb().layoutId}),a.C=!0,f.xg(f.Fb(),d),JK(a.B,b,c,d),a.C=!1,a.D?(a.D(),a.Xd.get().yx()):e()):PA("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
e_a=function(a,b){if(a.j===a.u.length-1)a.j++,g_a(a.I,a.layout),a.Xd.get().yx();else{if(-1===a.j&&(a.callback.Sc(a.slot,a.layout),0<b)){PA("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;b=a.u[a.j];0<a.j&&a.Xd.get().UL();b.startRendering(b.Fb())}};
h_a=function(a){return!a.rr.Rc()&&a.state.Rc()};
q1=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
i_a=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)};
j_a=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))};
k_a=function(a,b,c,d){this.Lb=a;this.layoutId=c;this.D=d;this.u=[];this.j=[];this.B=this.C=0;a=g.t(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":i_a(b)?this.u.push(b):PA("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":j_a(b)?this.j.push(b):PA("Invalid AdVideoProgressMillisecondsCommand");break;default:PA("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
s1=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){g.K.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.Jb=e;this.Ha=f;this.Xd=h;this.xf=l;this.Lb=m;this.I=n;this.position=q;this.ya=r;this.Fa=w;this.Dj=!0;this.oa=!1;this.j="not_rendering";this.C=!1;a=FZ(this.layout.Ea,"metadata_type_ad_placement_config");this.u=new $0(c.Xb,this.Ra,a,c.layoutId);var z;a=(null==(z=r1(this))?void 0:z.progressCommands)||[];this.Ba=new k_a(m,a,c.layoutId,function(){return y.qw()});
this.ea=Yf(function(){y.callback.Sc(y.slot,y.layout)});
this.T=Yf(function(){"rendering_stop_requested"!==y.j&&p(y);y.Z?y.callback.qd(y.slot,y.layout,y.Z):PA("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
r1=function(a){return FZ(a.layout.Ea,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
u1=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.j){d1(a.u,1E3*b,c);a.C||d1(a.u,1E3*b,void 0===c?!1:c);var d=a.qw();if(d&&(d/=1E3,(b>=.25*d||c)&&t1(a,"first_quartile"),(b>=.5*d||c)&&t1(a,"midpoint"),(b>=.75*d||c)&&t1(a,"third_quartile"),a=a.Ba,b*=1E3,c=a.D())){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Lb.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.Lb.get().executeCommand(c.command,
a.layoutId),a.B++;else break}}};
t1=function(a,b){RZ(a.Fa.get(),"av_call_once_per_event_pair")?c1(a.u,b,!a.C):(c1(a.u,b),a.C||(b=QJ(b))&&c1(a.u,b))};
v1=function(a,b){if(RZ(a.Fa.get(),"av_call_every_user_event")){var c=a.u;a=!a.C;a=void 0===a?!1:a;c.j.has(b)?OZa(c,b,[]):c1(c,b,a)}else t1(a,b)};
l_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y){s1.call(this,a,b,c,d,e,f,h,m,n,p,q,r,w,y);var z=this;this.pd=l;this.MD=!0;this.B=this.wm=0;this.timer=new g.Dh(200);this.timer.Pa("tick",function(){z.jc()});
g.L(this,this.timer)};
m_a=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.t(a1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Fe:a,Kf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
o_a=function(a){a.B=Date.now();n_a(a,a.wm);a.timer.start()};
n_a=function(a,b){b={current:b/1E3,duration:a.qw()/1E3};a.pd.get().Qa("onAdPlaybackProgress",b)};
w1=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D,G,E){s1.call(this,a,b,c,d,e,m,p,r,w,z,B,D,G,E);var J=this;this.Je=f;this.ze=h;this.Ta=l;this.dc=n;this.pd=q;this.Cf=y;this.adCpn="";this.J=new g.ho(function(){J.qA("load_timeout",new F_("Media layout load timeout.",{},!0))},1E4);
a=sYa(this.Fa.get());E=tYa(E.get());a&&E&&(this.D=new g.ho(function(){var M=FZ(c.Ea,"metadata_type_preload_player_vars");M&&J.ze.get().G.preloadVideoByPlayerVars(M,2)}))};
p_a=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.t(a1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Fe:a,Kf:["LAYOUT_TYPE_MEDIA"]}};
q_a=function(a,b,c,d,e,f,h){o1.call(this,a,b,c,d,f,h);this.j=e};
s_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D,G){if(Y0(d,{Fe:["metadata_type_sub_layouts"],Kf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var E=FZ(d.Ea,"metadata_type_sub_layouts");a=new a_a(a,n,q,w,b,c,d,f,e,G);e=[];for(b={Wr:0};b.Wr<E.length;b={Wr:b.Wr},b.Wr++){var J=r_a({Sc:a.G2.bind(a),qd:a.I2.bind(a),Eg:a.H2.bind(a)},c,E[b.Wr],h,l,m,n,p,q,r,w,y,z,B,D,function(M){return function(P){P.xg(E[M.Wr],"normal")}}(b),b.Wr,E.length,G);
if(!J)return;e.push(J)}a.u=e;return a}if(Y0(d,{Fe:[],Kf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=r_a({Sc:a.Sc.bind(a),qd:a.qd.bind(a),Eg:a.Eg.bind(a)},c,d,h,l,m,n,p,q,r,w,y,z,B,D,function(){g_a(f,d)},0,1,G))?new q_a(a,n,q,w,c,e,G):c};
r_a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D,G){if(Y0(c,m_a()))return new l_a(a,b,c,d,e,m,p,q,r,w,function(){},z,B,D,G);
if(Y0(c,p_a()))return KA(c.Ea,"metadata_type_ad_intro")?new w1(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y,function(E){q.get().Qa("onAdIntroStateChange",E)},z,B,D,G):new w1(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y,function(E){q.get().Mk(E)},z,B,D,G)};
x1=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y){this.yf=a;this.j=b;this.Ra=c;this.Jb=d;this.Je=e;this.ze=f;this.Ta=h;this.Ha=l;this.dc=m;this.Xd=n;this.pd=p;this.xf=q;this.Lb=r;this.Cf=w;this.Fa=y};
y1=function(a,b,c,d,e,f,h,l){g.K.call(this);var m=this;this.Ub=a;this.Gb=b;this.bf=d;this.Ha=e;this.Fa=f;this.Ra=h;this.Se=l;this.j=null;c.get().addListener(this);g.af(this,function(){c.get().removeListener(m)});
d.get().addListener(this);g.af(this,function(){d.get().removeListener(m)})};
FYa=function(a,b){if(a.j)PA("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.t(a.bf.get().uF);for(var c=b.next();!c.done;c=b.next())t_a(a,a.j,c.value)}};
t_a=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Fa.get().G.V().experiments.gb("html5_high_res_logging")&&a.Ra.get().wi("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.durationSecs.toFixed(3));JA(a.Ub.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Gb.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=J0(a.Fa.get());if(e.Fa.get().G.V().experiments.gb("enable_smearing_expansion_dai")){var n=
g.YF(e.Fa.get().G.V().experiments,"max_prefetch_window_sec_for_livestream_optimization");var p=g.YF(e.Fa.get().G.V().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={gm:hua(c),SA:!1};var q=c.startSecs+c.durationSecs;if(0===d)m.oq=new Ko(0,1E3*q);else{p=c.startSecs-p;var r=p-d;m.oq=0>=r?new Ko(1E3*p,1E3*q):new Ko(1E3*Math.floor(d+Math.random()*Math.min(r,n)),1E3*q)}n=m}else n={gm:hua(c),SA:!1},q=c.startSecs+c.durationSecs,c.startSecs<=d?m=new Ko(1E3*(c.startSecs-4),1E3*q):(p=Math.max(0,
c.startSecs-d-10),m=new Ko(1E3*Math.floor(d+Math.random()*(m?0===d?0:Math.min(p,5):p)),1E3*q)),n.oq=m;return[aXa(e,f,h,n,l,[new mWa(c)])]})};
z1=function(a,b,c,d,e,f,h,l,m){g.K.call(this);this.j=a;this.B=b;this.u=c;this.Ub=d;this.Gb=e;this.zb=f;this.Hb=h;this.Fa=l;this.Ta=m;this.Dj=!0};
u_a=function(a,b,c){return YYa(a.Gb.get(),b.contentCpn,b.Dx,function(d){return PYa(a.zb.get(),d.slotId,c,b.adPlacementConfig,b.Dx,JZ(a.Hb.get(),d))})};
A1=function(a){var b,c=null==(b=FZ(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=FZ(a.Ea,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=FZ(a.Ea,"metadata_type_content_cpn"),f=FZ(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),h=FZ(a.Ea,"metadata_type_player_underlay_renderer"),l=FZ(a.Ea,"metadata_type_ad_placement_config"),m=FZ(a.Ea,"metadata_type_video_length_seconds");var n=KA(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?
FZ(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):KA(a.Ea,"metadata_type_layout_enter_ms")&&KA(a.Ea,"metadata_type_layout_exit_ms")?(FZ(a.Ea,"metadata_type_layout_exit_ms")-FZ(a.Ea,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Dx:d,contentCpn:e,JS:c,MO:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,PJ:n,hJ:FZ(a.Ea,"metadata_type_linked_in_player_layout_id"),KQ:FZ(a.Ea,"metadata_type_linked_in_player_slot_id")}};
w_a=function(a,b){return v_a(a,b)};
x_a=function(a,b){b=v_a(a,b);if(!b)return null;var c;b.PJ=null==(c=FZ(a.Ea,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
v_a=function(a,b){var c,d=null==(c=FZ(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;KA(a.Ea,"metadata_ad_video_is_listed")?c=FZ(a.Ea,"metadata_ad_video_is_listed"):b?c=b.isListed:(PA("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);KA(a.Ea,"metadata_type_ad_info_ad_metadata")?b=FZ(a.Ea,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Zk,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(PA("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{hY:b,adPlacementConfig:FZ(a.Ea,"metadata_type_ad_placement_config"),kY:c,contentCpn:FZ(a.Ea,"metadata_type_content_cpn"),hJ:FZ(a.Ea,"metadata_type_linked_in_player_layout_id"),KQ:FZ(a.Ea,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:FZ(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,PJ:void 0,JS:d,Dx:a.layoutId,videoLengthSeconds:FZ(a.Ea,"metadata_type_video_length_seconds")}};
y_a=function(a,b){this.callback=a;this.slot=b};
B1=function(){};
z_a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
A_a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.u=!1;this.j=0};
B_a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
C1=function(a){this.Ha=a};
D1=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
E1=function(a){g.K.call(this);this.dG=a;this.Rb=new Map};
C_a=function(a,b){for(var c=[],d=g.t(a.Rb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof $_&&f.Qf===b&&c.push(e)}c.length?J_(a.dG(),c):PA("Survey is submitted but no registered triggers can be activated.")};
F1=function(a,b){E1.call(this,a);var c=this;b.get().addListener(this);g.af(this,function(){b.get().removeListener(c)})};
G1=function(a){g.K.call(this);this.j=a;this.Dj=!0;this.Rb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
H1=function(a,b){g.K.call(this);var c=this;this.j=a;this.Rb=new Map;b.get().addListener(this);g.af(this,function(){b.get().removeListener(c)})};
D_a=function(a,b,c,d){var e=[];a=g.t(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof a0){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(PA("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
E_a=function(a){return a instanceof LYa||a instanceof MYa||a instanceof o0};
I1=function(a,b,c,d){g.K.call(this);var e=this;this.u=a;this.dc=b;this.Ha=c;this.Ta=d;this.Dj=!0;this.Rb=new Map;this.j=new Set;c.get().addListener(this);g.af(this,function(){c.get().removeListener(e)})};
F_a=function(a,b,c,d,e,f,h,l,m,n){if(a.Ta.get().dg(1).clientPlaybackNonce!==m)throw new lB("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Rb.set(c.triggerId,{bundle:new D1(b,c,d,e),Os:f});a.dc.get().addCueRange(f,h,l,n,a)};
G_a=function(a,b){a=g.t(a.Rb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;if(b===d.Os)return c}return""};
J1=function(a){g.K.call(this);this.j=a;this.Dj=!0;this.Rb=new Map};
g_a=function(a,b){b=b.layoutId;for(var c=[],d=g.t(a.Rb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof b0){var f;if(f=e.trigger.layoutId===b)f=(f=HWa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&J_(a.j(),c)};
K1=function(a){g.K.call(this);this.j=a;this.Dj=!0;this.Rb=new Map};
L1=function(a,b,c){g.K.call(this);this.j=a;this.Jn=b;this.Ya=c;this.Jn.get().addListener(this)};
M1=function(a,b,c,d,e,f){g.K.call(this);this.B=a;this.Qe=b;this.Hb=c;this.Ta=d;this.Ya=e;this.Fa=f;this.j=this.u=null;this.C=!1;this.Qe.get().addListener(this)};
EEa=function(a,b,c,d,e){var f=SA(a.Ya.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:void 0,hc:[],lc:[],eb:"surface",Ea:new EZ([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Xb:new Map,Vd:[],bd:[],Tc:[],Uc:[],fd:[],eb:"surface",Ea:new EZ(c),Fc:SVa(IZ(a.Hb.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};EWa(a.B(),a.u,a.j);d&&(FWa(a.B(),a.u,a.j),a.C=!0,I_(a.B(),a.u,a.j))};
N1=function(a){this.us=a};
H_a=function(a,b){if(!a)return{Do:[],Bx:!0,ssdaiAdsConfig:void 0};a.trackingParams&&yL(wL(),a.trackingParams);if(a.adThrottled)return{Do:[],Bx:!0,ssdaiAdsConfig:void 0};var c=a.playerAds;if(!c||!c.length)return{Do:[],Bx:!1,ssdaiAdsConfig:void 0};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{Do:[],Bx:!1,ssdaiAdsConfig:void 0};if(0<b.end){var d=b.end.toString();c.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===e.kind&&e.adTimeOffset&&"-1"===e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!==d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}return{Do:c,
Bx:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
O1=function(a){g.K.call(this);this.G=a;this.listeners=[];this.j=new Jz(this);g.L(this,this.j);this.j.S(this.G,"aduxclicked",this.onAdUxClicked);this.j.S(this.G,"aduxmouseover",this.dK);this.j.S(this.G,"aduxmouseout",this.cK);this.j.S(this.G,"muteadaccepted",this.j0)};
I_a=function(a,b,c){b=g.Vd(b,function(d){return new iB(d,c,d.id)});
a.G.Qa("onAdUxUpdate",b)};
P1=function(a,b){a=g.t(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
Q1=function(a,b,c){g.K.call(this);this.G=a;this.Fa=b;this.Ra=c;this.listeners=[];this.B=!1;this.uF=[];this.C=new SK(this,hZa(b.get()));this.u=new TK;this.j=null};
K_a=function(a,b){P0(a.Ra.get(),{cuepointTrigger:{event:J_a(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.durationSecs,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.G.getVideoData(1).clientPlaybackNonce}})};
J_a=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");}};
R1=function(a){this.G=a};
S1=function(a){this.G=a};
T1=function(){this.listeners=[]};
L_a=function(a){this.G=a};
M_a=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Ra=e;this.Fa=f;this.u=!1;a=FZ(c.Ea,"metadata_type_ad_placement_config");this.j=new $0(c.Xb,this.Ra,a,c.layoutId);this.u=!1};
N_a=function(a,b,c){this.Ha=a;this.Ra=b;this.Fa=c};
U1=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.Se=e;this.bf=f;this.Ha=h;this.j=l;this.Ra=m;this.D=n;this.driftRecoveryMs=FZ(this.layout.Ea,"metadata_type_drift_recovery_ms")||null};
O_a=function(a){var b=FZ(a.layout.Ea,"metadata_type_layout_enter_ms"),c=FZ(a.layout.Ea,"metadata_type_layout_exit_ms");a=a.bf.get();b=UK(a.u,b,c);return Math.min(c,null!==b?b:Infinity)};
P_a=function(a,b){var c;P0(a.Ra.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Ta.get().Ps)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Fc.adClientDataEntry},b)})};
Q_a=function(a,b,c,d,e,f,h,l,m,n,p){U1.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.u=null;a=g.t(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,KA(b.Fb().Ea,"metadata_type_survey_overlay")&&(this.B=b.Fb().layoutId)};
S_a=function(a,b){var c=R_a(a,b);a.u={pk:c};c?c.startRendering(c.Fb()):b===a.B&&PA("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
R_a=function(a,b){return null==b?null:a.C.find(function(c){return c.Fb().layoutId===b})||null};
T_a=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=KA(b.Ea,"metadata_type_survey_overlay"),r,w=(null==(r=FZ(a.Ea,"metadata_type_fulfilled_layout"))?void 0:FZ(r.Ea,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.Wz(c,w,2,f,d,e,a.slotId),n.wi("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.Jv(c,w,2,f,d,e,a.slotId);n.wi("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return PA("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&PA("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):PA("Invalid timeline playback ID");d+f>e&&h.Hx(p,e-d);return p};
U_a=function(a,b){var c=FZ(b.Ea,"metadata_type_sodar_extension_data");if(c)try{DZa(0,c)}catch(d){PA("Unexpected error when loading Sodar",a,b,{error:d})}};
W_a=function(a,b,c,d,e,f){V_a(a,b,new g.vK(c,new g.cL),d,e,!1,f)};
V_a=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;h_a(c)&&q1(e,0,null)&&(!e1(a,"impression")&&h&&h(),c1(a,"impression"));e1(a,"impression")&&(g.xK(c,4)&&!g.xK(c,2)&&a.cg("pause"),0>wK(c,4)&&!(0>wK(c,2))&&a.cg("resume"),g.xK(c,16)&&.5<=e&&a.cg("seek"),f&&g.xK(c,2)&&X_a(a,c.state,b,d,e))};
X_a=function(a,b,c,d,e,f){if(e1(a,"impression")){var h=1>=Math.abs(d-e);Y_a(a,b,h?d:e,c,d,f);h&&c1(a,"complete")}};
Y_a=function(a,b,c,d,e,f){d1(a,1E3*c);0>=e||0>=c||(null==b?0:g.U(b,16))||(null==b?0:g.U(b,32))||(q1(c,.25*e,d)&&(f&&!e1(a,"first_quartile")&&f("first"),c1(a,"first_quartile")),q1(c,.5*e,d)&&(f&&!e1(a,"midpoint")&&f("second"),c1(a,"midpoint")),q1(c,.75*e,d)&&(f&&!e1(a,"third_quartile")&&f("third"),c1(a,"third_quartile")))};
Z_a=function(a,b){e1(a,"impression")&&a.cg(b?"fullscreen":"end_fullscreen")};
$_a=function(a){e1(a,"impression")&&a.cg("clickthrough")};
a0a=function(a){a.cg("active_view_measurable")};
b0a=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.cg("active_view_fully_viewable_audible_half_duration")};
c0a=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.cg("active_view_viewable")};
d0a=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.cg("audio_audible")};
e0a=function(a){e1(a,"impression")&&!e1(a,"seek")&&a.cg("audio_measurable")};
f0a=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Se=d;this.j=e;this.Ha=f;this.Ld=h;this.Jb=l;this.Je=m;this.Fa=n;this.Ra=p;this.Ta=q;this.MD=!0;this.Gc=this.u=null};
g0a=function(a,b,c){var d;a.Ra.get().wi("ads_qua","cpn."+FZ(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ta.get().dg(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
h0a=function(a,b){var c,d;a.Ra.get().wi("ads_imp","cpn."+FZ(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ta.get().dg(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.N(null==(d=FZ(a.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,V_))};
i0a=function(a){return{enterMs:FZ(a.Ea,"metadata_type_layout_enter_ms"),exitMs:FZ(a.Ea,"metadata_type_layout_exit_ms")}};
j0a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w){U1.call(this,a,b,c,d,e,h,l,m,n,q);this.Ld=f;this.Je=p;this.Jb=r;this.Fa=w;this.Gc=this.u=null};
k0a=function(a,b){var c;a.Ra.get().wi("ads_imp","acpn."+(null==(c=a.Ta.get().dg(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
l0a=function(a,b,c){var d;a.Ra.get().wi("ads_qua","cpn."+FZ(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ta.get().dg(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
m0a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D,G){this.yf=a;this.u=b;this.Ta=c;this.Se=d;this.Ha=e;this.Ra=f;this.Ld=h;this.bf=l;this.Jb=m;this.Je=n;this.ze=p;this.dc=q;this.Xd=r;this.pd=w;this.xf=y;this.Lb=z;this.Cf=B;this.Fa=D;this.j=G};
V1=function(a){g.K.call(this);this.j=a;this.Rb=new Map};
W1=function(a,b){for(var c=[],d=g.t(a.Rb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&J_(a.j(),c)};
X1=function(a,b){g.K.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.af(this,function(){b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().Ps)?void 0:d.slotId)||null};
n0a=function(a,b){var c=[];a=g.t(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
o0a=function(a){this.G=a};
p0a=function(a,b,c,d,e){HJ.call(this,"image-companion",a,b,c,d,e)};
q0a=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ra=e;this.yf=f;this.J=l;this.Dj=!0;this.C=null;this.D=FZ(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.yf().Qd.add(this);a=FZ(c.Ea,"metadata_type_ad_placement_config");this.I=new $0(c.Xb,this.Ra,a,c.layoutId)};
r0a=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];a1().forEach(function(b){a.push(b)});
return{Fe:a,Kf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
s0a=function(a,b,c,d,e){HJ.call(this,"shopping-companion",a,b,c,d,e)};
t0a=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ra=e;this.yf=f;this.J=l;this.Dj=!0;this.C=null;this.D=FZ(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.yf().Qd.add(this);a=FZ(c.Ea,"metadata_type_ad_placement_config");this.I=new $0(c.Xb,this.Ra,a,c.layoutId)};
u0a=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];a1().forEach(function(b){a.push(b)});
return{Fe:a,Kf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
v0a=function(a,b,c,d,e){HJ.call(this,"ads-engagement-panel",a,b,c,d,e)};
w0a=function(a,b,c,d,e,f,h,l){h1.call(this,a,b,c,d);this.Ra=e;this.yf=f;this.J=l;this.Dj=!0;this.C=null;this.D=FZ(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.yf().Qd.add(this);a=FZ(c.Ea,"metadata_type_ad_placement_config");this.I=new $0(c.Xb,this.Ra,a,c.layoutId)};
x0a=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];a1().forEach(function(b){a.push(b)});
return{Fe:a,Kf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
y0a=function(a,b,c,d,e){this.kc=a;this.Ra=b;this.yf=c;this.j=d;this.Jb=e};
z0a=function(a,b,c){HJ.call(this,"player-underlay",a,{},b,c);this.j=c};
Y1=function(a,b,c,d){h1.call(this,a,b,c,d)};
A0a=function(a){this.kc=a};
B0a=function(a,b,c,d){HJ.call(this,"survey-interstitial",a,b,c,d)};
Z1=function(a,b,c,d,e){h1.call(this,c,a,b,d);this.Ra=e;a=FZ(b.Ea,"metadata_type_ad_placement_config");this.C=new $0(b.Xb,e,a,b.layoutId)};
$1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
D0a=function(a,b,c){c=void 0===c?C0a:c;c.width<C0a.width&&(c=C0a);if(a.width<c.width||a.height<c.height)return{BF:3,xB:501,errorMessage:"ad("+$1(c)+") larger than container("+$1(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{BF:3,xB:501,errorMessage:"ad("+$1(c)+") to container("+$1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{BF:3,xB:501,errorMessage:"ad("+$1(c)+") covers container("+$1(a)+") center."}};
E0a=function(a,b){var c=FZ(a.Ea,"metadata_type_ad_placement_config");return new $0(a.Xb,b,c,a.layoutId)};
a2=function(a){return FZ(a.Ea,"metadata_type_invideo_overlay_ad_renderer")};
F0a=function(a,b,c,d){HJ.call(this,"invideo-overlay",a,b,c,d);this.j=d};
b2=function(a,b,c,d,e,f,h,l,m,n,p,q){h1.call(this,f,a,b,e);this.Ra=c;this.C=h;this.Ha=l;this.Lb=m;this.Fa=n;this.I=p;this.D=q;this.T=E0a(b,c)};
G0a=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];a1().forEach(function(b){a.push(b)});
return{Fe:a,Kf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
c2=function(a,b,c,d,e,f,h,l,m,n,p,q,r){h1.call(this,f,a,b,e);this.Ra=c;this.C=h;this.T=l;this.Ha=m;this.Lb=n;this.Fa=p;this.I=q;this.D=r;this.Z=E0a(b,c)};
H0a=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.t(a1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Fe:a,Kf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
d2=function(a){this.Ha=a;this.j=!1};
I0a=function(a,b,c){HJ.call(this,"survey",a,{},b,c)};
J0a=function(a,b,c,d,e,f,h){h1.call(this,c,a,b,d);this.C=e;this.Ha=f;this.Fa=h};
K0a=function(a,b,c,d,e,f,h,l,m,n){this.kc=a;this.Ha=b;this.Ra=c;this.C=d;this.Jb=e;this.u=f;this.B=h;this.Lb=l;this.Fa=m;this.j=n};
e2=function(a){g.K.call(this);this.B=a;this.Dj=!0;this.Rb=new Map;this.j=new Map;this.u=new Map};
L0a=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.t(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
M0a=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new RA});
g.L(this,this.Ya);this.zb=Y(function(){return new p0(f.Ya)});
g.L(this,this.zb);this.Hc=Y(function(){return new n0});
g.L(this,this.Hc);this.Ub=Y(function(){return new j0(a)});
g.L(this,this.Ub);this.Gb=Y(function(){return new A0(f.Ya,f.zb,f.Fa)});
g.L(this,this.Gb);this.Ld=Y(function(){return new E0});
g.L(this,this.Ld);this.xf=Y(function(){return new IJ(b.V())});
g.L(this,this.xf);this.kc=Y(function(){return new O1(b)});
g.L(this,this.kc);this.Lb=Y(function(){return new Q_(e)});
g.L(this,this.Lb);this.Xd=Y(function(){return new XK(b)});
g.L(this,this.Xd);this.dc=Y(function(){return new G0(b)});
g.L(this,this.dc);this.ze=Y(function(){return new R1(b)});
g.L(this,this.ze);this.pd=Y(function(){return new H0(b)});
g.L(this,this.pd);this.Fa=Y(function(){return new I0(b)});
g.L(this,this.Fa);this.lf=Y(function(){return new N1(d)});
g.L(this,this.lf);this.Hb=Y(function(){return new KZ(f.Fa)});
g.L(this,this.Hb);this.Pd=Y(function(){return new h0(f.Ya,f.Gb,f.zb,f.Fa,f.Hb,"SLOT_TYPE_ABOVE_FEED",f.Pi)});
g.L(this,this.Pd);this.Cf=Y(function(){return new S1(b)});
g.L(this,this.Cf);this.Qe=Y(function(){return new T1});
g.L(this,this.Qe);this.Jn=Y(function(){return new U0});
g.L(this,this.Jn);this.Ta=Y(function(){return new Q0(b,f.Ld,f.Fa)});
g.L(this,this.Ta);this.ac=new D0(this.Fa,this.Hb,this.Ta);g.L(this,this.ac);this.bf=Y(function(){return new Q1(b,f.Fa,f.Ra)});
g.L(this,this.bf);this.Se=Y(function(){return new o0a(b)});
g.L(this,this.Se);this.Ha=Y(function(){return new R0(b,f.Ta,f.Fa)});
g.L(this,this.Ha);this.Je=Y(function(){return new V0});
this.Jb=Y(function(){return new K0(f.Ha,b)});
g.L(this,this.Jb);this.Ra=Y(function(){return new N0(b,f.Hc,f.Jb,f.Ta)});
g.L(this,this.Ra);this.qh=new z1(A1,f2,function(l,m,n,p){return q0(f.zb.get(),l,m,n,p)},this.Ub,this.Gb,this.zb,this.Hb,this.Fa,this.Ta);
g.L(this,this.qh);this.Nc=new QA(this.Ub,this.Pd,c,this.Fa,a,this.Ta,this.Ha);g.L(this,this.Nc);var h=new F0(b,this.Nc,this.Ha,this.Ta,this.bf);this.Ff=Y(function(){return h});
this.wr=h;this.Pi=new y1(this.Ub,this.Gb,this.Ff,this.bf,this.Ha,this.Fa,this.Ra,this.Se);g.L(this,this.Pi);this.Ue=new m0(this.Ub,this.Gb,this.dc,this.Ff);g.L(this,this.Ue);this.Qc=new IA(this.Ub,this.Gb,this.Pd,this.Ta,this.Ue,c);g.L(this,this.Qc);this.eh=Y(function(){return new W0(f.lf,f.zb,f.Hb,f.Fa,f.Se)});
g.L(this,this.eh);this.Hd=Y(function(){return new X0});
g.L(this,this.Hd);this.mf=new F1(a,this.kc);g.L(this,this.mf);this.Cb=new G1(a);g.L(this,this.Cb);this.Ks=new V1(a);g.L(this,this.Ks);this.zf=new H1(a,this.Ff);g.L(this,this.zf);this.ye=new I1(a,this.dc,this.Ha,this.Ta);g.L(this,this.ye);this.Dt=new X1(a,this.Ta);g.L(this,this.Dt);this.oe=new J1(a);g.L(this,this.oe);this.oh=new K1(a);g.L(this,this.oh);this.wu=new e2(a);g.L(this,this.wu);this.Ad=Y(function(){return new B1});
g.L(this,this.Ad);this.rh=Y(function(){return new C1(f.Ha)});
g.L(this,this.rh);this.JO=Y(function(){return new y0a(f.kc,f.Ra,a,f.Hc,f.Jb)});
g.L(this,this.JO);this.dh=Y(function(){return new Z0(f.Qc)});
g.L(this,this.dh);this.ih=Y(function(){return new g1(f.Ra,f.oe,f.Jb)});
g.L(this,this.ih);this.ph=Y(function(){return new m0a(a,f.oe,f.Ta,f.Se,f.Ha,f.Ra,f.Ld,f.bf,f.Jb,f.Je,f.ze,f.dc,f.Xd,f.pd,f.xf,f.Lb,f.Cf,f.Fa,f.Hc)});
g.L(this,this.ph);this.IS=Y(function(){return new N_a(f.Ha,f.Ra,f.Fa)});
g.L(this,this.IS);this.Nl=Y(function(){return new K0a(f.kc,f.Ha,f.Ra,f.Hc,f.Jb,f.Ks,f.wu,f.Lb,f.Fa,c)});
g.L(this,this.Nl);this.rU=Y(function(){return new A0a(f.kc)});
g.L(this,this.rU);this.iH=new L1(a,this.Jn,this.Ya);g.L(this,this.iH);this.fm=new M1(a,this.Qe,this.Hb,this.Ta,this.Ya,this.Fa);g.L(this,this.fm);this.Te={Nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Qc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Pi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ue]]),Mo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.eh],["SLOT_TYPE_ABOVE_FEED",this.Hd],["SLOT_TYPE_FORECASTING",this.Hd],["SLOT_TYPE_IN_PLAYER",this.Hd],["SLOT_TYPE_PLAYER_BYTES",this.Hd],["SLOT_TYPE_PLAYER_UNDERLAY",this.Hd],["SLOT_TYPE_PLAYBACK_TRACKING",this.Hd]]),Xj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mf],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cb],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Cb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Cb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ks],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.zf],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.ye],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.ye],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.ye],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.ye],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ye],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Dt],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Dt],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.zf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.oh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.wu]]),Hp:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ad],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ad],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.rh],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ad],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ad]]),hp:new Map([["SLOT_TYPE_ABOVE_FEED",this.JO],["SLOT_TYPE_AD_BREAK_REQUEST",
this.dh],["SLOT_TYPE_FORECASTING",this.ih],["SLOT_TYPE_PLAYER_BYTES",this.ph],["SLOT_TYPE_PLAYBACK_TRACKING",this.IS],["SLOT_TYPE_IN_PLAYER",this.Nl],["SLOT_TYPE_PLAYER_UNDERLAY",this.rU]])};this.listeners=[this.Hc.get()];this.Bt={Qc:this.Qc,jp:this.Qe.get(),Ih:this.Fa.get(),bb:this.Lb.get(),Dr:this.Ha.get(),Nc:this.Nc,Ml:this.Ya.get(),ip:this.Jn.get(),Gk:this.mf,Yi:this.Hc.get(),cm:this.Ta.get()}};
N0a=function(a,b,c,d,e,f,h,l,m,n){this.kc=a;this.Ha=b;this.Ra=c;this.C=d;this.Jb=e;this.u=f;this.B=h;this.Lb=l;this.Fa=m;this.j=n};
O0a=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new RA});
g.L(this,this.Ya);this.zb=Y(function(){return new p0(f.Ya)});
g.L(this,this.zb);this.Hc=Y(function(){return new n0});
g.L(this,this.Hc);this.Ub=Y(function(){return new j0(a)});
g.L(this,this.Ub);this.Gb=Y(function(){return new A0(f.Ya,f.zb,f.Fa)});
g.L(this,this.Gb);this.Ld=Y(function(){return new E0});
g.L(this,this.Ld);this.xf=Y(function(){return new IJ(b.V())});
g.L(this,this.xf);this.kc=Y(function(){return new O1(b)});
g.L(this,this.kc);this.Lb=Y(function(){return new Q_(e)});
g.L(this,this.Lb);this.Xd=Y(function(){return new XK(b)});
g.L(this,this.Xd);this.dc=Y(function(){return new G0(b)});
g.L(this,this.dc);this.ze=Y(function(){return new R1(b)});
g.L(this,this.ze);this.pd=Y(function(){return new H0(b)});
g.L(this,this.pd);this.Fa=Y(function(){return new I0(b)});
g.L(this,this.Fa);this.lf=Y(function(){return new N1(d)});
g.L(this,this.lf);this.Hb=Y(function(){return new KZ(f.Fa)});
g.L(this,this.Hb);this.Pd=Y(function(){return new h0(f.Ya,f.Gb,f.zb,f.Fa,f.Hb,null,f.Pi)});
g.L(this,this.Pd);this.Cf=Y(function(){return new S1(b)});
g.L(this,this.Cf);this.Qe=Y(function(){return new T1});
g.L(this,this.Qe);this.Jn=Y(function(){return new U0});
g.L(this,this.Jn);this.Ta=Y(function(){return new Q0(b,f.Ld,f.Fa)});
g.L(this,this.Ta);this.ac=new D0(this.Fa,this.Hb,this.Ta);g.L(this,this.ac);this.bf=Y(function(){return new Q1(b,f.Fa,f.Ra)});
this.Ha=Y(function(){return new R0(b,f.Ta,f.Fa)});
g.L(this,this.Ha);this.Jb=Y(function(){return new K0(f.Ha,b)});
g.L(this,this.Jb);this.Ra=Y(function(){return new N0(b,f.Hc,f.Jb,f.Ta)});
g.L(this,this.Ra);this.Je=Y(function(){return new V0});
g.L(this,this.Je);this.qh=new z1(A1,f2,function(l,m,n,p){return q0(f.zb.get(),l,m,n,p)},this.Ub,this.Gb,this.zb,this.Hb,this.Fa,this.Ta);
g.L(this,this.qh);this.Nc=new QA(this.Ub,this.Pd,c,this.Fa,a,this.Ta,this.Ha);g.L(this,this.Nc);var h=new F0(b,this.Nc,this.Ha,this.Ta,this.bf);this.Ff=Y(function(){return h});
this.wr=h;this.Pi=new y1(this.Ub,this.Gb,this.Ff,this.bf,this.Ha,this.Fa,this.Ra);g.L(this,this.Pi);this.Ue=new m0(this.Ub,this.Gb,this.dc,this.Ff);g.L(this,this.Ue);this.Qc=new IA(this.Ub,this.Gb,this.Pd,this.Ta,this.Ue,c);g.L(this,this.Qc);this.eh=Y(function(){return new W0(f.lf,f.zb,f.Hb,f.Fa)});
g.L(this,this.eh);this.Hd=Y(function(){return new X0});
g.L(this,this.Hd);this.mf=new F1(a,this.kc);g.L(this,this.mf);this.Cb=new G1(a);g.L(this,this.Cb);this.Ks=new V1(a);g.L(this,this.Ks);this.zf=new H1(a,this.Ff);g.L(this,this.zf);this.ye=new I1(a,this.dc,this.Ha,this.Ta);g.L(this,this.ye);this.oe=new J1(a);g.L(this,this.oe);this.oh=new K1(a);g.L(this,this.oh);this.wu=new e2(a);g.L(this,this.wu);this.Ad=Y(function(){return new B1});
g.L(this,this.Ad);this.rh=Y(function(){return new C1(f.Ha)});
g.L(this,this.rh);this.dh=Y(function(){return new Z0(f.Qc)});
g.L(this,this.dh);this.ih=Y(function(){return new g1(f.Ra,f.oe,f.Jb)});
g.L(this,this.ih);this.Nl=Y(function(){return new N0a(f.kc,f.Ha,f.Ra,f.Hc,f.Jb,f.Ks,f.wu,f.Lb,f.Fa,c)});
g.L(this,this.Nl);this.ph=Y(function(){return new x1(a,f.oe,f.Ra,f.Jb,f.Je,f.ze,f.Ta,f.Ha,f.dc,f.Xd,f.pd,f.xf,f.Lb,f.Cf,f.Fa)});
g.L(this,this.ph);this.iH=new L1(a,this.Jn,this.Ya);g.L(this,this.iH);this.fm=new M1(a,this.Qe,this.Hb,this.Ta,this.Ya,this.Fa);g.L(this,this.fm);this.Te={Nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Qc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Pi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ue]]),Mo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.eh],["SLOT_TYPE_FORECASTING",this.Hd],["SLOT_TYPE_IN_PLAYER",this.Hd],["SLOT_TYPE_PLAYER_BYTES",this.Hd]]),Xj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.Cb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Cb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ks],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.zf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ye],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ye],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.zf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.oh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.wu]]),Hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ad],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.rh]]),hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",this.ih],["SLOT_TYPE_IN_PLAYER",this.Nl],["SLOT_TYPE_PLAYER_BYTES",this.ph]])};this.listeners=[this.Hc.get()];this.Bt={Qc:this.Qc,jp:this.Qe.get(),Ih:this.Fa.get(),bb:this.Lb.get(),Dr:this.Ha.get(),Nc:this.Nc,
Ml:this.Ya.get(),ip:this.Jn.get(),Gk:this.mf,Yi:this.Hc.get(),cm:this.Ta.get()}};
P0a=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new RA});
g.L(this,this.Ya);this.zb=Y(function(){return new p0(f.Ya)});
g.L(this,this.zb);this.Hc=Y(function(){return new n0});
g.L(this,this.Hc);this.Ub=Y(function(){return new j0(a)});
g.L(this,this.Ub);this.Gb=Y(function(){return new A0(f.Ya,f.zb,f.Fa)});
g.L(this,this.Gb);this.Ld=Y(function(){return new E0});
g.L(this,this.Ld);this.xf=Y(function(){return new IJ(b.V())});
g.L(this,this.xf);this.kc=Y(function(){return new O1(b)});
g.L(this,this.kc);this.Lb=Y(function(){return new Q_(e)});
g.L(this,this.Lb);this.Xd=Y(function(){return new XK(b)});
g.L(this,this.Xd);this.dc=Y(function(){return new G0(b)});
g.L(this,this.dc);this.ze=Y(function(){return new R1(b)});
g.L(this,this.ze);this.pd=Y(function(){return new H0(b)});
g.L(this,this.pd);this.Fa=Y(function(){return new I0(b)});
g.L(this,this.Fa);this.lf=Y(function(){return new N1(d)});
g.L(this,this.lf);this.Hb=Y(function(){return new KZ(f.Fa)});
g.L(this,this.Hb);this.Pd=Y(function(){return new h0(f.Ya,f.Gb,f.zb,f.Fa,f.Hb,null,null)});
g.L(this,this.Pd);this.Cf=Y(function(){return new S1(b)});
g.L(this,this.Cf);this.Qe=Y(function(){return new T1});
g.L(this,this.Qe);this.Ta=Y(function(){return new Q0(b,f.Ld,f.Fa)});
g.L(this,this.Ta);this.ac=new D0(this.Fa,this.Hb,this.Ta);g.L(this,this.ac);this.Ha=Y(function(){return new R0(b,f.Ta,f.Fa)});
g.L(this,this.Ha);this.Jb=Y(function(){return new K0(f.Ha,b)});
g.L(this,this.Jb);this.Ra=Y(function(){return new N0(b,f.Hc,f.Jb,f.Ta)});
g.L(this,this.Ra);this.Je=Y(function(){return new V0});
g.L(this,this.Je);this.qh=new z1(A1,f2,function(l,m,n,p){return q0(f.zb.get(),l,m,n,p)},this.Ub,this.Gb,this.zb,this.Hb,this.Fa,this.Ta);
g.L(this,this.qh);this.Nc=new QA(this.Ub,this.Pd,c,this.Fa,a,this.Ta,this.Ha);g.L(this,this.Nc);var h=new F0(b,this.Nc,this.Ha,this.Ta);this.Ff=Y(function(){return h});
this.wr=h;this.Ue=new m0(this.Ub,this.Gb,this.dc,this.Ff);g.L(this,this.Ue);this.Qc=new IA(this.Ub,this.Gb,this.Pd,this.Ta,this.Ue,c);g.L(this,this.Qc);this.eh=Y(function(){return new W0(f.lf,f.zb,f.Hb,f.Fa)});
g.L(this,this.eh);this.Hd=Y(function(){return new X0});
g.L(this,this.Hd);this.mf=new F1(a,this.kc);g.L(this,this.mf);this.Cb=new G1(a);g.L(this,this.Cb);this.zf=new H1(a,this.Ff);g.L(this,this.zf);this.ye=new I1(a,this.dc,this.Ha,this.Ta);g.L(this,this.ye);this.oe=new J1(a);g.L(this,this.oe);this.oh=new K1(a);g.L(this,this.oh);this.Ad=Y(function(){return new B1});
g.L(this,this.Ad);this.rh=Y(function(){return new C1(f.Ha)});
g.L(this,this.rh);this.dh=Y(function(){return new Z0(f.Qc)});
g.L(this,this.dh);this.ih=Y(function(){return new g1(f.Ra,f.oe,f.Jb)});
g.L(this,this.ih);this.ES=Y(function(){return new $Za(f.kc,f.Ha,f.Ra,f.Hc,c,f.Fa)});
g.L(this,this.ES);this.ph=Y(function(){return new x1(a,f.oe,f.Ra,f.Jb,f.Je,f.ze,f.Ta,f.Ha,f.dc,f.Xd,f.pd,f.xf,f.Lb,f.Cf,f.Fa)});
g.L(this,this.ph);this.fm=new M1(a,this.Qe,this.Hb,this.Ta,this.Ya,this.Fa);g.L(this,this.fm);this.Te={Nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ue]]),Mo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eh],["SLOT_TYPE_FORECASTING",this.Hd],["SLOT_TYPE_IN_PLAYER",this.Hd],["SLOT_TYPE_PLAYER_BYTES",
this.Hd]]),Xj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.zf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ye],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.zf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.oh]]),Hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ad],["SLOT_TYPE_ABOVE_FEED",this.Ad],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.rh]]),hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.dh],["SLOT_TYPE_FORECASTING",this.ih],["SLOT_TYPE_IN_PLAYER",this.ES],["SLOT_TYPE_PLAYER_BYTES",this.ph]])};this.listeners=[this.Hc.get()];this.Bt={Qc:this.Qc,jp:this.Qe.get(),Ih:this.Fa.get(),bb:this.Lb.get(),Dr:this.Ha.get(),Nc:this.Nc,Ml:this.Ya.get(),ip:null,Gk:this.mf,Yi:this.Hc.get(),cm:this.Ta.get()}};
Q0a=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new RA});
g.L(this,this.Ya);this.zb=Y(function(){return new p0(f.Ya)});
g.L(this,this.zb);this.Hc=Y(function(){return new n0});
g.L(this,this.Hc);this.Ub=Y(function(){return new j0(a)});
g.L(this,this.Ub);this.Gb=Y(function(){return new A0(f.Ya,f.zb,f.Fa)});
g.L(this,this.Gb);this.Ld=Y(function(){return new E0});
g.L(this,this.Ld);this.xf=Y(function(){return new IJ(b.V())});
g.L(this,this.xf);this.kc=Y(function(){return new O1(b)});
g.L(this,this.kc);this.Lb=Y(function(){return new Q_(e)});
g.L(this,this.Lb);this.Xd=Y(function(){return new XK(b)});
g.L(this,this.Xd);this.dc=Y(function(){return new G0(b)});
g.L(this,this.dc);this.ze=Y(function(){return new R1(b)});
g.L(this,this.ze);this.pd=Y(function(){return new H0(b)});
g.L(this,this.pd);this.Fa=Y(function(){return new I0(b)});
g.L(this,this.Fa);this.lf=Y(function(){return new N1(d)});
g.L(this,this.lf);this.Hb=Y(function(){return new KZ(f.Fa)});
g.L(this,this.Hb);this.Pd=Y(function(){return new h0(f.Ya,f.Gb,f.zb,f.Fa,f.Hb,null,null)});
g.L(this,this.Pd);this.Cf=Y(function(){return new S1(b)});
g.L(this,this.Cf);this.Qe=Y(function(){return new T1});
g.L(this,this.Qe);this.Ta=Y(function(){return new Q0(b,f.Ld,f.Fa)});
g.L(this,this.Ta);this.ac=new D0(this.Fa,this.Hb,this.Ta);g.L(this,this.ac);this.Ha=Y(function(){return new R0(b,f.Ta,f.Fa)});
g.L(this,this.Ha);this.Jb=Y(function(){return new K0(f.Ha,b)});
g.L(this,this.Jb);this.Ra=Y(function(){return new N0(b,f.Hc,f.Jb,f.Ta)});
g.L(this,this.Ra);this.Je=Y(function(){return new V0});
g.L(this,this.Je);this.qh=new z1(A1,f2,function(l,m,n,p){return q0(f.zb.get(),l,m,n,p)},this.Ub,this.Gb,this.zb,this.Hb,this.Fa,this.Ta);
g.L(this,this.qh);this.Nc=new QA(this.Ub,this.Pd,c,this.Fa,a,this.Ta,this.Ha);g.L(this,this.Nc);var h=new F0(b,this.Nc,this.Ha,this.Ta);this.Ff=Y(function(){return h});
this.wr=h;this.Ue=new m0(this.Ub,this.Gb,this.dc,this.Ff);g.L(this,this.Ue);this.Qc=new IA(this.Ub,this.Gb,this.Pd,this.Ta,this.Ue,c);g.L(this,this.Qc);this.eh=Y(function(){return new W0(f.lf,f.zb,f.Hb,f.Fa)});
g.L(this,this.eh);this.Hd=Y(function(){return new X0});
g.L(this,this.Hd);this.mf=new F1(a,this.kc);g.L(this,this.mf);this.Cb=new G1(a);g.L(this,this.Cb);this.zf=new H1(a,this.Ff);g.L(this,this.zf);this.ye=new I1(a,this.dc,this.Ha,this.Ta);g.L(this,this.ye);this.oe=new J1(a);g.L(this,this.oe);this.oh=new K1(a);g.L(this,this.oh);this.Ad=Y(function(){return new B1});
g.L(this,this.Ad);this.rh=Y(function(){return new C1(f.Ha)});
g.L(this,this.rh);this.dh=Y(function(){return new Z0(f.Qc)});
g.L(this,this.dh);this.ih=Y(function(){return new g1(f.Ra,f.oe,f.Jb)});
g.L(this,this.ih);this.Nl=Y(function(){return new $Za(f.kc,f.Ha,f.Ra,f.Hc,c,f.Fa)});
g.L(this,this.Nl);this.ph=Y(function(){return new x1(a,f.oe,f.Ra,f.Jb,f.Je,f.ze,f.Ta,f.Ha,f.dc,f.Xd,f.pd,f.xf,f.Lb,f.Cf,f.Fa)});
g.L(this,this.ph);this.fm=new M1(a,this.Qe,this.Hb,this.Ta,this.Ya,this.Fa);g.L(this,this.fm);this.Te={Nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ue]]),Mo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eh],["SLOT_TYPE_FORECASTING",this.Hd],["SLOT_TYPE_IN_PLAYER",this.Hd],["SLOT_TYPE_PLAYER_BYTES",
this.Hd]]),Xj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ye],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.zf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.oh]]),Hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ad],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.rh]]),hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",this.ih],["SLOT_TYPE_IN_PLAYER",this.Nl],["SLOT_TYPE_PLAYER_BYTES",
this.ph]])};this.listeners=[this.Hc.get()];this.Bt={Qc:this.Qc,jp:this.Qe.get(),Ih:this.Fa.get(),bb:this.Lb.get(),Dr:this.Ha.get(),Nc:this.Nc,Ml:this.Ya.get(),ip:null,Gk:this.mf,Yi:this.Hc.get(),cm:this.Ta.get()}};
g2=function(a,b,c,d,e,f,h,l,m){l1.call(this,a,b,c,d,e,f,h,m);this.yl=l};
R0a=function(){var a=YZa();a.Fe.push("metadata_type_ad_info_ad_metadata");return a};
S0a=function(a,b,c,d,e,f){this.kc=a;this.Ha=b;this.Ra=c;this.u=d;this.yl=e;this.j=f};
T0a=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new RA});
g.L(this,this.Ya);this.zb=Y(function(){return new p0(f.Ya)});
g.L(this,this.zb);this.Hc=Y(function(){return new n0});
g.L(this,this.Hc);this.Ub=Y(function(){return new j0(a)});
g.L(this,this.Ub);this.Gb=Y(function(){return new A0(f.Ya,f.zb,f.Fa)});
g.L(this,this.Gb);this.Ld=Y(function(){return new E0});
g.L(this,this.Ld);this.yl=Y(function(){return new L_a(b)});
g.L(this,this.yl);this.xf=Y(function(){return new IJ(b.V())});
g.L(this,this.xf);this.kc=Y(function(){return new O1(b)});
g.L(this,this.kc);this.Lb=Y(function(){return new Q_(e)});
g.L(this,this.Lb);this.Xd=Y(function(){return new XK(b)});
g.L(this,this.Xd);this.dc=Y(function(){return new G0(b)});
g.L(this,this.dc);this.ze=Y(function(){return new R1(b)});
g.L(this,this.ze);this.pd=Y(function(){return new H0(b)});
g.L(this,this.pd);this.Fa=Y(function(){return new I0(b)});
g.L(this,this.Fa);this.lf=Y(function(){return new N1(d)});
g.L(this,this.lf);this.Hb=Y(function(){return new KZ(f.Fa)});
g.L(this,this.Hb);this.Pd=Y(function(){return new h0(f.Ya,f.Gb,f.zb,f.Fa,f.Hb,null,null)});
g.L(this,this.Pd);this.Cf=Y(function(){return new S1(b)});
g.L(this,this.Cf);this.Qe=Y(function(){return new T1});
g.L(this,this.Qe);this.Ta=Y(function(){return new Q0(b,f.Ld,f.Fa)});
g.L(this,this.Ta);this.ac=new D0(this.Fa,this.Hb,this.Ta);g.L(this,this.ac);this.Ha=Y(function(){return new R0(b,f.Ta,f.Fa)});
g.L(this,this.Ha);this.Jb=Y(function(){return new K0(f.Ha,b)});
g.L(this,this.Jb);this.Ra=Y(function(){return new N0(b,f.Hc,f.Jb,f.Ta)});
g.L(this,this.Ra);this.Je=Y(function(){return new V0});
g.L(this,this.Je);this.qh=new z1(w_a,f2,function(l,m,n,p){return QYa(f.zb.get(),l,m,n,p)},this.Ub,this.Gb,this.zb,this.Hb,this.Fa,this.Ta);
g.L(this,this.qh);this.Nc=new QA(this.Ub,this.Pd,c,this.Fa,a,this.Ta,this.Ha);g.L(this,this.Nc);var h=new F0(b,this.Nc,this.Ha,this.Ta);this.Ff=Y(function(){return h});
this.wr=h;this.Ue=new m0(this.Ub,this.Gb,this.dc,this.Ff);g.L(this,this.Ue);this.Qc=new IA(this.Ub,this.Gb,this.Pd,this.Ta,this.Ue,c);g.L(this,this.Qc);this.eh=Y(function(){return new W0(f.lf,f.zb,f.Hb,f.Fa)});
g.L(this,this.eh);this.Hd=Y(function(){return new X0});
g.L(this,this.Hd);this.mf=new F1(a,this.kc);g.L(this,this.mf);this.Cb=new G1(a);g.L(this,this.Cb);this.zf=new H1(a,this.Ff);g.L(this,this.zf);this.ye=new I1(a,this.dc,this.Ha,this.Ta);g.L(this,this.ye);this.oe=new J1(a);g.L(this,this.oe);this.oh=new K1(a);g.L(this,this.oh);this.Ad=Y(function(){return new B1});
g.L(this,this.Ad);this.rh=Y(function(){return new C1(f.Ha)});
g.L(this,this.rh);this.dh=Y(function(){return new Z0(f.Qc)});
g.L(this,this.dh);this.ih=Y(function(){return new g1(f.Ra,f.oe,f.Jb)});
g.L(this,this.ih);this.ph=Y(function(){return new x1(a,f.oe,f.Ra,f.Jb,f.Je,f.ze,f.Ta,f.Ha,f.dc,f.Xd,f.pd,f.xf,f.Lb,f.Cf,f.Fa)});
g.L(this,this.ph);this.MU=Y(function(){return new S0a(f.kc,f.Ha,f.Ra,f.Hc,f.yl,c)});
g.L(this,this.MU);this.fm=new M1(a,this.Qe,this.Hb,this.Ta,this.Ya,this.Fa);g.L(this,this.fm);this.Te={Nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ue]]),Mo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eh],["SLOT_TYPE_FORECASTING",this.Hd],["SLOT_TYPE_IN_PLAYER",this.Hd],["SLOT_TYPE_PLAYER_BYTES",
this.Hd]]),Xj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Cb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.zf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ye],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.zf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.oh]]),Hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ad],["SLOT_TYPE_FORECASTING",this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.rh]]),hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",
this.ih],["SLOT_TYPE_IN_PLAYER",this.MU],["SLOT_TYPE_PLAYER_BYTES",this.ph]])};this.listeners=[this.Hc.get()];this.Bt={Qc:this.Qc,jp:this.Qe.get(),Ih:this.Fa.get(),bb:this.Lb.get(),Dr:this.Ha.get(),Nc:this.Nc,Ml:this.Ya.get(),ip:null,Gk:this.mf,Yi:this.Hc.get(),cm:this.Ta.get()}};
U0a=function(a,b,c,d,e,f,h){this.kc=a;this.Ha=b;this.Ra=c;this.u=d;this.yl=e;this.j=f;this.Fa=h};
V0a=function(a,b,c,d,e){g.K.call(this);var f=this;this.Ya=Y(function(){return new RA});
g.L(this,this.Ya);this.zb=Y(function(){return new p0(f.Ya)});
g.L(this,this.zb);this.Hc=Y(function(){return new n0});
g.L(this,this.Hc);this.Ub=Y(function(){return new j0(a)});
g.L(this,this.Ub);this.Gb=Y(function(){return new A0(f.Ya,f.zb,f.Fa)});
g.L(this,this.Gb);this.Ld=Y(function(){return new E0});
g.L(this,this.Ld);this.yl=Y(function(){return new L_a(b)});
g.L(this,this.yl);this.xf=Y(function(){return new IJ(b.V())});
g.L(this,this.xf);this.kc=Y(function(){return new O1(b)});
g.L(this,this.kc);this.Lb=Y(function(){return new Q_(e)});
g.L(this,this.Lb);this.Xd=Y(function(){return new XK(b)});
g.L(this,this.Xd);this.dc=Y(function(){return new G0(b)});
g.L(this,this.dc);this.ze=Y(function(){return new R1(b)});
g.L(this,this.ze);this.pd=Y(function(){return new H0(b)});
g.L(this,this.pd);this.Fa=Y(function(){return new I0(b)});
g.L(this,this.Fa);this.lf=Y(function(){return new N1(d)});
g.L(this,this.lf);this.Hb=Y(function(){return new KZ(f.Fa)});
g.L(this,this.Hb);this.Pd=Y(function(){return new h0(f.Ya,f.Gb,f.zb,f.Fa,f.Hb,null,f.Pi,3)});
g.L(this,this.Pd);this.Cf=Y(function(){return new S1(b)});
g.L(this,this.Cf);this.Qe=Y(function(){return new T1});
g.L(this,this.Qe);this.Ta=Y(function(){return new Q0(b,f.Ld,f.Fa)});
g.L(this,this.Ta);this.ac=new D0(this.Fa,this.Hb,this.Ta);g.L(this,this.ac);this.bf=Y(function(){return new Q1(b,f.Fa,f.Ra)});
g.L(this,this.bf);this.Se=Y(function(){return new o0a(b)});
g.L(this,this.Se);this.Ha=Y(function(){return new R0(b,f.Ta,f.Fa)});
g.L(this,this.Ha);this.Je=Y(function(){return new V0});
this.Jb=Y(function(){return new K0(f.Ha,b)});
g.L(this,this.Jb);this.Ra=Y(function(){return new N0(b,f.Hc,f.Jb,f.Ta)});
g.L(this,this.Ra);this.Nc=new QA(this.Ub,this.Pd,c,this.Fa,a,this.Ta,this.Ha);g.L(this,this.Nc);var h=new F0(b,this.Nc,this.Ha,this.Ta,this.bf);this.Ff=Y(function(){return h});
this.wr=h;this.qh=new z1(x_a,f2,function(l,m,n,p){return QYa(f.zb.get(),l,m,n,p)},this.Ub,this.Gb,this.zb,this.Hb,this.Fa,this.Ta);
g.L(this,this.qh);this.Pi=new y1(this.Ub,this.Gb,this.Ff,this.bf,this.Ha,this.Fa,this.Ra,this.Se);g.L(this,this.Pi);this.Ue=new m0(this.Ub,this.Gb,this.dc,this.Ff);g.L(this,this.Ue);this.Qc=new IA(this.Ub,this.Gb,this.Pd,this.Ta,this.Ue,c);g.L(this,this.Qc);this.eh=Y(function(){return new W0(f.lf,f.zb,f.Hb,f.Fa,f.Se)});
g.L(this,this.eh);this.Hd=Y(function(){return new X0});
g.L(this,this.Hd);this.mf=new F1(a,this.kc);g.L(this,this.mf);this.Cb=new G1(a);g.L(this,this.Cb);this.zf=new H1(a,this.Ff);g.L(this,this.zf);this.ye=new I1(a,this.dc,this.Ha,this.Ta);g.L(this,this.ye);this.Dt=new X1(a,this.Ta);g.L(this,this.Dt);this.oe=new J1(a);g.L(this,this.oe);this.oh=new K1(a);g.L(this,this.oh);this.Ad=Y(function(){return new B1});
g.L(this,this.Ad);this.rh=Y(function(){return new C1(f.Ha)});
g.L(this,this.rh);this.dh=Y(function(){return new Z0(f.Qc)});
g.L(this,this.dh);this.ih=Y(function(){return new g1(f.Ra,f.oe,f.Jb)});
g.L(this,this.ih);this.ph=Y(function(){return new m0a(a,f.oe,f.Ta,f.Se,f.Ha,f.Ra,f.Ld,f.bf,f.Jb,f.Je,f.ze,f.dc,f.Xd,f.pd,f.xf,f.Lb,f.Cf,f.Fa,f.Hc)});
g.L(this,this.ph);this.Nl=Y(function(){return new U0a(f.kc,f.Ha,f.Ra,f.Hc,f.yl,c,f.Fa)});
g.L(this,this.Nl);this.fm=new M1(a,this.Qe,this.Hb,this.Ta,this.Ya,this.Fa);g.L(this,this.fm);this.Te={Nt:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Qc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Pi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ue]]),Mo:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eh],["SLOT_TYPE_FORECASTING",this.Hd],
["SLOT_TYPE_IN_PLAYER",this.Hd],["SLOT_TYPE_PLAYER_BYTES",this.Hd]]),Xj:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Cb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Cb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Cb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Cb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Cb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.zf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ye],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ye],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Dt],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Dt],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.zf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.oh]]),Hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ad],["SLOT_TYPE_FORECASTING",
this.Ad],["SLOT_TYPE_IN_PLAYER",this.Ad],["SLOT_TYPE_PLAYER_BYTES",this.rh]]),hp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",this.ih],["SLOT_TYPE_PLAYER_BYTES",this.ph],["SLOT_TYPE_IN_PLAYER",this.Nl]])};this.listeners=[this.Hc.get()];this.Bt={Qc:this.Qc,jp:this.Qe.get(),Ih:this.Fa.get(),bb:this.Lb.get(),Dr:this.Ha.get(),Nc:this.Nc,Ml:this.Ya.get(),ip:null,Gk:this.mf,Yi:this.Hc.get(),cm:this.Ta.get()}};
X0a=function(a,b,c,d){g.K.call(this);var e=this;this.j=W0a(function(){return e.u},a,b,c,d);
g.L(this,this.j);this.u=(new WWa(this.j)).B();g.L(this,this.u)};
h2=function(a){return a.j.Bt};
W0a=function(a,b,c,d,e){try{var f=b.V();if(g.pH(f))var h=new M0a(a,b,c,d,e);else if(g.sH(f))h=new O0a(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===dH(f))h=new Q0a(a,b,c,d,e);else if(gH(f))h=new P0a(a,b,c,d,e);else if(g.ZG(f))h=new T0a(a,b,c,d,e);else if(g.YG(f))h=new V0a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.V(),PA("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.deviceParams.cplatform,interface:h.deviceParams.c,
Y5a:h.deviceParams.cver,X5a:h.deviceParams.ctheme,W5a:h.deviceParams.cplayer,t6a:h.playerStyle}),new CZa(a,b,c,d,e)}};
Y0a=function(a){NM.call(this,a)};
Z0a=function(a,b,c,d,e,f){VM.call(this,a,b,{F:"div",K:"ytp-ad-timed-pie-countdown-container",W:[{F:"svg",K:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},W:[{F:"circle",K:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{F:"circle",K:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{F:"circle",K:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.Da("ytp-ad-timed-pie-countdown-inner");this.I=this.Da("ytp-ad-timed-pie-countdown-outer");
this.B=Math.ceil(10*Math.PI);this.hide()};
$0a=function(a,b,c,d,e,f,h){mM.call(this,a,b,{F:"div",K:"ytp-ad-action-interstitial",X:{tabindex:"0"},W:[{F:"div",K:"ytp-ad-action-interstitial-background-container"},{F:"div",K:"ytp-ad-action-interstitial-slot",W:[{F:"div",K:"ytp-ad-action-interstitial-card",W:[{F:"div",K:"ytp-ad-action-interstitial-image-container"},{F:"div",K:"ytp-ad-action-interstitial-headline-container"},{F:"div",K:"ytp-ad-action-interstitial-description-container"},{F:"div",K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d,e);this.OL=f;this.iF=h;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.ea=this.Da("ytp-ad-action-interstitial-image-container");this.T=new JM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-action-interstitial-image");g.L(this,this.T);this.T.Ca(this.ea);this.Ma=this.Da("ytp-ad-action-interstitial-headline-container");this.I=new TM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-action-interstitial-headline");g.L(this,this.I);
this.I.Ca(this.Ma);this.Ka=this.Da("ytp-ad-action-interstitial-description-container");this.D=new TM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-action-interstitial-description");g.L(this,this.D);this.D.Ca(this.Ka);this.Oa=this.Da("ytp-ad-action-interstitial-background-container");this.Ba=new JM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-action-interstitial-background",!0);g.L(this,this.Ba);this.Ba.Ca(this.Oa);this.Sa=this.Da("ytp-ad-action-interstitial-action-button-container");
this.slot=this.Da("ytp-ad-action-interstitial-slot");this.C=new Jz;g.L(this,this.C);this.hide()};
a1a=function(a){var b=g.Wg("html5-video-player");b&&g.to(b,"ytp-ad-display-override",a)};
e1a=function(a,b,c,d,e){mM.call(this,a,b,{F:"div",K:"ytp-ad-overlay-slot",W:[{F:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.T=[];this.ib=this.Ka=this.D=this.Oa=this.Ba=null;this.Sa=!1;this.I=null;this.ea=0;b=this.Da("ytp-ad-overlay-container");this.Ma=new dN(b,45E3,6E3,.3,.4);g.L(this,this.Ma);this.C=b1a(this);g.L(this,this.C);this.C.Ca(b);this.B=c1a(this);g.L(this,this.B);this.B.Ca(b);this.u=d1a(this);g.L(this,this.u);this.u.Ca(b);a.N("web_rounded_containers")&&g.po(b,"ytp-rounded-overlay-ad");
this.hide()};
b1a=function(a){var b=new g.lM({F:"div",K:"ytp-ad-text-overlay",W:[{F:"div",K:"ytp-ad-overlay-ad-info-button-container"},{F:"div",K:"ytp-ad-overlay-close-container",W:[{F:"button",K:"ytp-ad-overlay-close-button",W:[CM(f1a)]}]},{F:"div",K:"ytp-ad-overlay-title",qa:"{{title}}"},{F:"div",K:"ytp-ad-overlay-desc",qa:"{{description}}"},{F:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],qa:"{{displayUrl}}"}]});a.S(b.Da("ytp-ad-overlay-title"),"click",function(c){i2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-link"),"click",function(c){i2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Ln);b.hide();return b};
c1a=function(a){var b=new g.lM({F:"div",Ga:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{F:"div",K:"ytp-ad-overlay-ad-info-button-container"},{F:"div",K:"ytp-ad-overlay-close-container",W:[{F:"button",K:"ytp-ad-overlay-close-button",W:[CM(f1a)]}]},{F:"div",K:"ytp-ad-overlay-text-image",W:[{F:"img",X:{src:"{{imageUrl}}"}}]},{F:"div",K:"ytp-ad-overlay-title",qa:"{{title}}"},{F:"div",K:"ytp-ad-overlay-desc",qa:"{{description}}"},{F:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
qa:"{{displayUrl}}"}]});a.S(b.Da("ytp-ad-overlay-title"),"click",function(c){i2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-link"),"click",function(c){i2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Ln);a.S(b.Da("ytp-ad-overlay-text-image"),"click",a.L2);b.hide();return b};
d1a=function(a){var b=new g.lM({F:"div",K:"ytp-ad-image-overlay",W:[{F:"div",K:"ytp-ad-overlay-ad-info-button-container"},{F:"div",K:"ytp-ad-overlay-close-container",W:[{F:"button",K:"ytp-ad-overlay-close-button",W:[CM(f1a)]}]},{F:"div",K:"ytp-ad-overlay-image",W:[{F:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.S(b.Da("ytp-ad-overlay-image"),"click",function(c){i2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Ln);b.hide();return b};
g1a=function(a,b){if(b){var c=g.N(b,W_)||null;if(null==c)g.$z(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Wg("video-ads ytp-ad-module")||null,null==b)g.$z(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ka=new g.lM({F:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.L(a,a.Ka),a.Ka.Ca(b),b=new SM(a.api,a.jb,a.layoutId,a.j,a.bb,a.Ka.element,!1),g.L(a,b),b.init(GJ("ad-info-hover-text-button"),c,a.macros),a.I){b.Ca(a.I,
0);b.subscribe("f",a.Z_,a);b.subscribe("e",a.AK,a);a.S(a.I,"click",a.b0);var d=g.Wg("ytp-ad-button",b.element);a.S(d,"click",function(){var e;if(g.N(null==(e=g.N(c.button,g.SI))?void 0:e.serviceEndpoint,uHa))a.Sa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.ib=b}else g.$z(Error("Ad info button container within overlay ad was not present."))}else g.aA(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
i1a=function(a,b){if(h1a(a,j2)||a.api.Jf())return!1;var c=nM(b.title),d=nM(b.description);if(g.eb(c)||g.eb(d))return!1;a.yg(a.C.element,b.trackingParams||null);a.C.updateValue("title",nM(b.title));a.C.updateValue("description",nM(b.description));a.C.updateValue("displayUrl",nM(b.displayUrl));b.navigationEndpoint&&g.fc(a.T,b.navigationEndpoint);a.C.show();a.Ma.start();a.Va(a.C.element,!0);a.S(a.C.element,"mouseover",function(){a.ea++});
return!0};
j1a=function(a,b){if(h1a(a,j2)||a.api.Jf())return!1;var c=nM(b.title),d=nM(b.description);if(g.eb(c)||g.eb(d))return!1;a.yg(a.B.element,b.trackingParams||null);a.B.updateValue("title",nM(b.title));a.B.updateValue("description",nM(b.description));a.B.updateValue("displayUrl",nM(b.displayUrl));a.B.updateValue("imageUrl",NGa(b.image));b.navigationEndpoint&&g.fc(a.T,b.navigationEndpoint);a.Oa=b.imageNavigationEndpoint||null;a.B.show();a.Ma.start();a.Va(a.B.element,!0);a.S(a.B.element,"mouseover",function(){a.ea++});
return!0};
k1a=function(a,b){if(a.api.Jf())return!1;var c=OGa(b.image),d=c;c.width<j2.width&&(d=j2);if(0===c.width||0===c.height||h1a(a,d))return!1;a.yg(a.u.element,b.trackingParams||null);a.u.updateValue("imageUrl",NGa(b.image));a.u.updateValue("width",c.width);a.u.updateValue("height",c.height);b.navigationEndpoint&&g.fc(a.T,b.navigationEndpoint);b=a.u.Da("ytp-ad-image-overlay");g.Il(b,"max-width",c.width+"px");a.u.show();a.Va(a.u.element,!0);a.S(a.u.element,"mouseover",function(){a.ea++;a.api.dK("invideo-overlay",
a.layoutId)});
a.S(a.u.element,"mouseout",function(){a.api.cK("invideo-overlay",a.layoutId)});
return!0};
h1a=function(a,b){var c=a.api.fb().Wi(),d=a.api.zj(!0,!1);return(b=D0a(c,c.height-(d.height+d.top),b))?(a.Ba&&b&&(c=g.yf(a.macros),c.ERRORCODE=b.xB.toString(),c.ERROR_MSG=b.errorMessage,a.api.V().N("enable_macro_substitution_on_html5")?a.layoutId?R_(a.bb,a.Ba,a.layoutId,c):g.$z(Error("Missing layoutId for invideo_overlay_ad.")):PM(a.bb,a.Ba,c)),!0):!1};
i2=function(a,b,c){var d=g.yf(a.macros),e=g.Tl(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Rl(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.ea.toString()}};
b=g.t(a.T);for(c=b.next();!c.done;c=b.next())c=c.value,a.api.V().N("enable_macro_substitution_on_html5")?a.layoutId?R_(a.bb,c,a.layoutId,d):g.$z(Error("Missing layoutId for invideo_overlay_ad.")):PM(a.bb,c,d);a.api.pauseVideo()};
l1a=function(a,b){a=a.api.getRootNode();g.to(a,"ytp-ad-overlay-open",b);g.to(a,"ytp-ad-overlay-closed",!b)};
m1a=function(a,b,c,d,e,f){VM.call(this,a,b,{F:"div",K:"ytp-ad-message-overlay",W:[{F:"div",K:"ytp-ad-message-slot"}]},"ad-message",c,d,e,f);var h=this;this.ea=-1;this.C=0;this.T=!1;this.Ba=this.Da("ytp-ad-message-slot");this.B=new g.lM({F:"span",K:"ytp-ad-message-container"});this.B.Ca(this.Ba);g.L(this,this.B);this.messageText=new TM(this.api,this.jb,this.layoutId,this.j,e,"ytp-ad-message-text");g.L(this,this.messageText);this.messageText.Ca(this.B.element);this.I=new g.YM(this.B,400,!1,100,function(){h.hide()});
g.L(this,this.I);this.hide()};
n1a=function(a,b){a=a.api.getRootNode();g.to(a,"ytp-ad-overlay-open",b);g.to(a,"ytp-ad-overlay-closed",!b)};
o1a=function(a,b,c,d,e){mM.call(this,a,b,{F:"div",K:"ytp-ad-underlay-companion",W:[{F:"div",K:"ytp-ad-underlay-side-container",W:[{F:"div",K:"ytp-ad-underlay-image-container"},{F:"div",K:"ytp-ad-underlay-description-container"},{F:"div",K:"ytp-ad-underlay-headline-container"},{F:"div",K:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",c,d,e);this.actionButton=null;this.Ba=this.Da("ytp-ad-underlay-image-container");this.C=new JM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-underlay-image");
g.L(this,this.C);this.C.Ca(this.Ba);this.ea=this.Da("ytp-ad-underlay-headline-container");this.B=new TM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-underlay-headline");g.L(this,this.B);this.B.Ca(this.ea);this.T=this.Da("ytp-ad-underlay-description-container");this.D=new TM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-underlay-description");g.L(this,this.D);this.D.Ca(this.T);this.I=this.Da("ytp-ad-underlay-action-button-container");this.u=this.Da("ytp-ad-underlay-side-container");
this.hide()};
p1a=function(a){var b=g.Wg("html5-video-player");b&&g.to(b,"ytp-ad-display-override",a)};
k2=function(a,b,c,d,e,f){f=void 0===f?!1:f;mM.call(this,a,b,{F:"div",K:"ytp-ad-survey-answer"},"survey-answer",c,d,e);this.B=f;this.u=null;this.toggledLoggingParams="";this.answer=this.Da("ytp-ad-survey-answer");this.hide()};
q1a=function(a,b,c,d,e){mM.call(this,a,b,{F:"div",K:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d,e);this.button=null;this.u=this.Da("ytp-ad-survey-none-of-the-above");this.hide()};
l2=function(a,b,c,d,e){var f=["ytp-ad-survey-submit-button"];a.V().N("web_modern_buttons_bl_survey")&&f.push("ytp-ad-survey-submit-button-rounded");DM.call(this,a,b,c,d,e,f,"survey-submit")};
m2=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;mM.call(this,a,b,{F:"div",K:"ytp-ad-survey-player-overlay",W:[{F:"div",K:"ytp-ad-survey-player-overlay-instream-info"},{F:"div",K:"ytp-ad-survey-player-overlay-skip-preview-submit",W:[{F:"div",K:"ytp-ad-survey-player-overlay-skip-or-preview"},{F:"div",K:"ytp-ad-survey-player-overlay-submit"}]},{F:"div",K:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d,e);this.C=f;this.T=h;this.B=this.u=null;this.D=this.Da("ytp-ad-survey-player-overlay-instream-info");
this.I=this.Da("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Da("ytp-ad-survey-player-overlay-submit");g.L(this,this.C);this.hide()};
n2=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;mM.call(this,a,b,{F:"div",K:"ytp-ad-survey-question",W:[{F:"div",Ga:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{F:"div",Ga:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{F:"div",Ga:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{F:"div",K:"ytp-ad-survey-question-background"}]},f,c,d,e);this.I=h;this.D=null;this.B=[];this.u=null;this.question=this.Da("ytp-ad-survey-question");this.ea=
this.Da("ytp-ad-survey-question-background");this.questionText=this.Da("ytp-ad-survey-question-text");this.answers=this.Da("ytp-ad-survey-answers");this.playerOverlay=this.Da("ytp-ad-survey-question-player-overlay");this.C=g.Sa()};
r1a=function(a,b,c){var d=new k2(a.api,a.jb,a.layoutId,a.j,a.bb,a.I);d.Ca(a.answers);d.init(GJ("survey-answer"),b,c);a.B.push(d)};
t1a=function(a,b){if(b){var c=b.background;c&&g.N(c,s1a)&&(c=(c=g.N(c,s1a).image)&&IM(c)||"",g.eb(c)?g.aA(Error("Found ThumbnailDetails without valid image URL")):g.Il(a.ea,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.$z(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Sa();a.u=new kN(a.api,b.durationMilliseconds);g.L(a,a.u);if(a.u&&b.instreamAdPlayerOverlay&&g.N(b.instreamAdPlayerOverlay,
mXa))try{var d=new m2(a.api,a.jb,a.layoutId,a.j,a.bb,a.u,a.I);d.Ca(a.playerOverlay);d.init(GJ("survey-player-overlay"),g.N(b.instreamAdPlayerOverlay,mXa),a.macros);a.D=d;g.L(a,d);a.eT()}catch(e){g.$z(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.$z(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.u&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new uN(a.api,a.u),b.Ca(a.playerOverlay),
g.L(a,b)):g.$z(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.$z(Error("addCommonComponents() needs to be called before starting countdown."))};
u1a=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.Sa()-a.C).toString()})};
v1a=function(a,b,c,d,e,f){n2.call(this,a,b,c,d,e,"survey-question-multi-select",void 0===f?!1:f);this.noneOfTheAbove=null;this.submitEndpoints=[];this.T=null;this.hide()};
w1a=function(a,b,c){a.noneOfTheAbove=new q1a(a.api,a.jb,a.layoutId,a.j,a.bb);a.noneOfTheAbove.Ca(a.answers);a.noneOfTheAbove.init(GJ("survey-none-of-the-above"),b,c)};
y1a=function(a){a.B.forEach(function(b){b.u.toggleButton(!1)});
x1a(a,!0)};
x1a=function(a,b){var c=a.D;a=z1a(a);b=void 0===b?!1:b;c.u&&(a?c.u.hide():c.u.show(),b&&c.u instanceof gN&&!c.u.I&&zHa(c.u,!1));c.B&&(a?c.B.show():c.B.hide())};
z1a=function(a){return a.B.some(function(b){return b.u.isToggled()})||a.noneOfTheAbove.button.isToggled()};
o2=function(a,b,c,d,e,f){n2.call(this,a,b,c,d,e,"survey-question-single-select",void 0===f?!1:f);this.hide()};
p2=function(a,b,c,d,e){mM.call(this,a,b,{F:"div",K:"ytp-ad-survey",W:[{F:"div",K:"ytp-ad-survey-questions"}]},"survey",c,d,e);this.questions=[];this.B=this.Da("ytp-ad-survey-questions");this.api.V().N("supports_multi_step_on_desktop")&&this.S(a,"aduxclicked",this.eg);this.hide()};
C1a=function(a,b){var c;null==(c=a.u)||c.dispose();g.N(b,YJ)?A1a(a,g.N(b,YJ),a.macros):g.N(b,ZJ)&&B1a(a,g.N(b,ZJ),a.macros)};
A1a=function(a,b,c){var d=new o2(a.api,a.jb,a.layoutId,a.j,a.bb,!1);d.Ca(a.B);d.init(GJ("survey-question-single-select"),b,c);a.api.V().N("supports_multi_step_on_desktop")?a.u=d:a.questions.push(d);g.L(a,d)};
B1a=function(a,b,c){var d=new v1a(a.api,a.jb,a.layoutId,a.j,a.bb,!1);d.Ca(a.B);d.init(GJ("survey-question-multi-select"),b,c);a.api.V().N("supports_multi_step_on_desktop")?a.u=d:a.questions.push(d);g.L(a,d)};
q2=function(a,b,c,d,e){mM.call(this,a,b,{F:"div",K:"ytp-ad-survey-interstitial",W:[{F:"div",K:"ytp-ad-survey-interstitial-contents",W:[{F:"div",K:"ytp-ad-survey-interstitial-logo",W:[{F:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{F:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d,e);this.u=this.actionButton=null;this.interstitial=this.Da("ytp-ad-survey-interstitial");this.B=this.Da("ytp-ad-survey-interstitial-contents");this.text=this.Da("ytp-ad-survey-interstitial-text");
this.logoImage=this.Da("ytp-ad-survey-interstitial-logo-image");this.transition=new g.YM(this,500,!1,300);g.L(this,this.transition)};
D1a=function(a,b){b=b&&IM(b)||"";if(g.eb(b))g.aA(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Yg&&10>document.documentMode)c=ng;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.bh("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Qka(d.style)}b=nda(c,mda({"background-image":'url("'+b+'")'}));a.style.cssText=mg(b)}};
E1a=function(a){var b=g.Wg("html5-video-player");b&&g.to(b,"ytp-ad-display-override",a)};
r2=function(a,b,c,d){NM.call(this,a);this.api=a;this.bb=c;this.u={};this.I=b;a=new g.V({F:"div",Ga:["video-ads","ytp-ad-module"]});g.L(this,a);NG&&g.po(a.element,"ytp-ads-tiny-mode");this.D=new fM(a.element);g.L(this,this.D);g.VO(this.api,a.element,4);kZa(d)&&(d=new g.V({F:"div",Ga:["ytp-ad-underlay"]}),g.L(this,d),this.B=new fM(d.element),g.L(this,this.B),g.VO(this.api,d.element,0));g.L(this,fHa())};
F1a=function(a,b){a=g.uf(a.u,b.id,null);null==a&&g.aA(Error("Component not found for element id: "+b.id));return a||null};
G1a=function(a){g.CP.call(this,a);var b=this;this.u=this.jb=null;this.created=!1;this.us=new IL(this.player);this.B=function(){function d(){return b.jb}
if(null!=b.u)return b.u;var e=nGa({hq:a.getVideoData(1)});e=new YVa({iY:d,ys:e.pZ(),EY:d,Q_:d,Gk:h2(b.j).Gk,Lk:e.JI(),cm:h2(b.j).cm,G:b.player,Ih:h2(b.j).Ih,Ra:b.j.j.Ra,Yi:h2(b.j).Yi,pd:b.j.j.pd});b.u=e.wX;return b.u};
this.j=new X0a(this.player,this,this.us,this.B);g.L(this,this.j);var c=a.V();!eH(c)||g.YG(c)||gH(c)||(g.L(this,new r2(a,function(){return b.jb},h2(this.j).bb,h2(this.j).Ih)),g.L(this,new Y0a(a)))};
H1a=function(a){a.created!==a.loaded&&PA("Created and loaded are out of sync")};
I1a=function(a,b){b===a.Hv&&(a.Hv=void 0)};
J1a=function(a){a.jb?h2(a.j).Nc.dJ()||a.jb.dJ()||h2(a.j).Dr.Rs():PA("AdService is null when calling maybeUnlockPrerollIfReady")};
K1a=function(a){a=g.t(h2(a.j).Yi.Tj.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.eb)return!0;return!1};
L1a=function(a){a=g.t(h2(a.j).Yi.Tj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
Ita=function(a,b,c,d){c=void 0===c?"":c;d=void 0===d?"":d;var e=h2(a.j).Ih,f=a.player.getVideoData(1),h=f&&f.getPlayerResponse()||{};h=h&&h.playerConfig&&h.playerConfig.daiConfig&&h.playerConfig.daiConfig.enableDai||!1;f=f&&f.Ud()||!1;e=M1a(b,e,h,f,h2(a.j).Ml);Lta(h2(a.j).Qc,c,e.CE,b,d);a.jb&&0<e.Qy.length&&(a=a.jb,b=e.Qy,b=uGa(a,b),b=vGa(a,b),wGa(a,b))};
M1a=function(a,b,c,d,e){var f={Qy:[],CE:[]};a=g.t(a);for(var h=a.next();!h.done;h=a.next())if((h=h.value)&&null!=h.renderer){var l=h.renderer;if(!gZa(b)){var m=void 0,n=void 0,p=void 0,q=void 0,r=e;g.N(null==(q=l.sandwichedLinearAdRenderer)?void 0:q.adVideoStart,OL)?(m=g.N(null==(p=l.sandwichedLinearAdRenderer)?void 0:p.adVideoStart,OL),r=UVa(m,r),g.KK(l.sandwichedLinearAdRenderer.adVideoStart,OL,r)):g.N(null==(n=l.linearAdSequenceRenderer)?void 0:n.adStart,OL)&&(p=g.N(null==(m=l.linearAdSequenceRenderer)?
void 0:m.adStart,OL),r=UVa(p,r),g.KK(l.linearAdSequenceRenderer.adStart,OL,r))}r=b;m=d;c||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=g.N(l.sandwichedLinearAdRenderer.linearAd,g0)||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=m)||(g.rH(r.G.V())||eH(r.G.V())||g.fH(r.G.V())?l=!0:(PA("Single VOD on legacy path."),l=!1)):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?gZa(r):m||CWa(r):null!=l.sandwichedLinearAdRenderer?DYa(r):!1;l?f.CE.push(h):f.Qy.push(h)}return f};
N1a=function(){if(!g.Yg)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.P1a=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=vg(a);return b.parseFromString(g.ug(a),"application/xml")}if(O1a){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.s2=function(a){g.K.call(this);this.callback=a;this.j=new Io(0,0,.4,0,.2,1,1,1);this.delay=new g.fo(this.next,window,this);this.startTime=this.duration=this.to=this.from=NaN;g.L(this,this.delay)};
g.Q1a=function(a){var b=a.V();if(!b.Yc||b.j||!g.QG(b))return!1;a=g.sO(a);return a.Ce()?(a=a.zj(),315<=Math.min(a.width,a.height)):a.Ej()?!1:!a.Cg()};
g.t2=function(a,b){g.V.call(this,{F:"div",K:"ytp-more-videos-view",X:{tabIndex:"-1"}});var c=this;this.api=a;this.C=b;this.u=!0;this.B=new g.WE(this);this.D=[];this.suggestionData=[];this.containerWidth=this.T=this.tileWidth=this.j=0;this.title=new g.V({F:"h2",K:"ytp-related-title",qa:"{{title}}"});this.previous=new g.V({F:"button",Ga:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},W:[g.pM()]});this.J=new g.s2(function(d){c.suggestions.element.scrollLeft=-d});
this.next=new g.V({F:"button",Ga:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},W:[g.qM()]});g.L(this,this.B);this.I=a.V().u;g.L(this,this.title);this.title.Ca(this.element);this.suggestions=new g.V({F:"div",K:"ytp-suggestions"});g.L(this,this.suggestions);this.suggestions.Ca(this.element);g.L(this,this.previous);this.previous.Ca(this.element);this.previous.Pa("click",this.vV,this);g.L(this,this.J);R1a(this);g.L(this,this.next);this.next.Ca(this.element);this.next.Pa("click",
this.uV,this);this.B.S(this.api,"appresize",this.Bb);this.B.S(this.api,"fullscreentoggled",this.rp);this.B.S(this.api,"videodatachange",this.onVideoDataChange);this.Bb(this.api.fb().getPlayerSize());this.onVideoDataChange()};
R1a=function(a){for(var b={Cu:0};16>b.Cu;b={Cu:b.Cu},++b.Cu){var c=new g.V({F:"a",K:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.V().T,"aria-label":"{{aria_label}}"},W:[{F:"div",K:"ytp-suggestion-image"},{F:"div",K:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{F:"div",K:"ytp-suggestion-title",qa:"{{title}}"},{F:"div",K:"ytp-suggestion-author",qa:"{{author_and_views}}"},{F:"div",X:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration",
qa:"{{duration}}"}]}]});g.L(a,c);var d=c.Da("ytp-suggestion-link");g.Il(d,"transitionDelay",b.Cu/20+"s");a.B.S(d,"click",function(e){return function(f){if(a.u){var h=a.suggestionData[e.Cu],l=h.sessionData;g.cQ(f,a.api,a.I,l||void 0)&&a.api.tm(h.videoId,l,h.playlistId)}else g.Kx(f),document.activeElement.blur()}}(b));
c.Ca(a.suggestions.element);a.D.push(c)}};
g.u2=function(a){var b=a.C.If()?32:16;b=a.T/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.tileWidth+8);g.to(a.element,"ytp-scroll-min",0<=b);g.to(a.element,"ytp-scroll-max",b<=c)};
T1a=function(a){for(var b=a.suggestionData.length,c=0;c<b;++c){var d=void 0,e=void 0,f=void 0,h=a;d=h.suggestionData[c];var l=h.D[c];f=h.isShortsModeEnabled()?d.shortViewCount||"":d.shortViewCount?d.author+" \u2022 "+d.shortViewCount:d.author;l.element.style.display="";S1a.test(d.title)&&(l.Da("ytp-suggestion-title").dir="rtl");S1a.test(f)&&(l.Da("ytp-suggestion-author").dir="rtl");e=d.isLivePlayback?"Live":d.lengthSeconds?g.mN(d.lengthSeconds):"";var m=h.C.Ce(),n=d.vn(m);if(g.QG(h.api.V())){var p=
{},q=h.api.V();q.Aa&&g.dO(p,q.loaderUrl);g.oO(h.api,"addEmbedsConversionTrackingParams",[p]);n=g.ti(n,g.cO(p,"emb_rel_pause"))}l.update({author_and_views:f,duration:e,link:n,title:d.title,aria_label:d.ariaLabel||d.title,is_live:d.isLivePlayback,aria_hidden:!(!d.ariaLabel||h.api.V().N("embeds_rv_aria_hidden_killswitch")),blink_rendering_hack:g.ZE||g.OG?"will-change: opacity":void 0});e=l.Da("ytp-suggestion-image");d=m?d.Hf("hq2.jpg"):d.Hf();e.style.backgroundImage=d?"url("+d+")":""}g.u2(a)};
g.v2=function(a,b){g.V.call(this,{F:"button",Ga:["ytp-miniplayer-expand-watch-page-button","ytp-button","ytp-miniplayer-button-top-left"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button","aria-keyshortcuts":"i","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[{F:"svg",X:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},W:[{F:"g",X:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},W:[{F:"g",X:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},
W:[{F:"path",X:{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"}}]}]}]}]});this.G=a;this.Pa("click",this.onClick,this);this.updateValue("title",gQ(a,"Expand","i"));this.update({"data-title-no-tooltip":"Expand"});g.af(this,g.AQ(b.xc(),this.element))};
aaa=[];ea="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.da=caa(this);fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.j=f;ea(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=g.da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ea(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var U1a="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ia(d,e)&&(a[e]=d[e])}return a};
fa("Object.assign",function(a){return a||U1a});
var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},V1a=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),W1a;
if("function"==typeof Object.setPrototypeOf)W1a=Object.setPrototypeOf;else{var X1a;a:{var Y1a={a:!0},Z1a={};try{Z1a.__proto__=Y1a;X1a=Z1a.a;break a}catch(a){}X1a=!1}W1a=X1a?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ka=W1a;
ma.prototype.T=function(a){this.u=a};
ma.prototype.return=function(a){this.B={return:a};this.j=this.D};
ma.prototype.Ja=function(a){this.j=a};
fa("Reflect",function(a){return a?a:{}});
fa("Reflect.construct",function(){return V1a});
fa("Reflect.setPrototypeOf",function(a){return a?a:ka?function(b,c){try{return ka(b,c),!0}catch(d){return!1}}:null});
fa("Promise",function(a){function b(h){this.j=0;this.B=void 0;this.u=[];this.J=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(h)};
var e=g.da.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.j=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.ya),reject:h(this.D)}};
b.prototype.ya=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ba(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.oa(h):this.I(h)}};
b.prototype.oa=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ka(l,h):this.I(h)};
b.prototype.D=function(h){this.T(2,h)};
b.prototype.I=function(h){this.T(1,h)};
b.prototype.T=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.B=l;2===this.j&&this.Aa();this.Z()};
b.prototype.Aa=function(){var h=this;e(function(){if(h.ea()){var l=g.da.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.ea=function(){if(this.J)return!1;var h=g.da.CustomEvent,l=g.da.Event,m=g.da.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.da.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.Z=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Ba=function(h){var l=this.C();h.tC(l.resolve,l.reject)};
b.prototype.Ka=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(r,w){return"function"==typeof r?function(y){try{n(r(y))}catch(z){p(z)}}:w}
var n,p,q=new b(function(r,w){n=r;p=w});
this.tC(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.tC=function(h,l){function m(){switch(n.j){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.J=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.t(h),p=n.next();!p.done;p=n.next())d(p.value).tC(l,m)})};
b.all=function(h){var l=g.t(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(y){return function(z){r[y]=z;w--;0==w&&n(r)}}
var r=[],w=0;do r.push(void 0),w++,d(m.value).tC(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
fa("Array.prototype.find",function(a){return a?a:function(b,c){return maa(this,b,c).HU}});
fa("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.t(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!ia(m,h)){var n=new c;ea(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ia(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ia(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ia(m,h)&&ia(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ia(m,h)&&ia(m[h],this.j)?delete m[h][this.j]:!1};
return b});
fa("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return daa(function(){if(n){for(;n.head!=l.j;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&ia(l.data_,n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.j=b();this.size=0;if(l){l=g.t(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.t([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.j,previous:this.j.previous,head:this.j,key:l,value:m},n.list.push(n.entry),this.j.previous.next=n.entry,this.j.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.j=this.j.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
fa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
fa("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
fa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
fa("Array.prototype.entries",function(a){return a?a:function(){return za(this,function(b,c){return[b,c]})}});
fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
fa("Array.prototype.keys",function(a){return a?a:function(){return za(this,function(b){return b})}});
fa("Array.prototype.values",function(a){return a?a:function(){return za(this,function(b,c){return c})}});
fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
fa("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
fa("Int8Array.prototype.fill",Aa);fa("Uint8Array.prototype.fill",Aa);fa("Uint8ClampedArray.prototype.fill",Aa);fa("Int16Array.prototype.fill",Aa);fa("Uint16Array.prototype.fill",Aa);fa("Int32Array.prototype.fill",Aa);fa("Uint32Array.prototype.fill",Aa);fa("Float32Array.prototype.fill",Aa);fa("Float64Array.prototype.fill",Aa);fa("Object.setPrototypeOf",function(a){return a||ka});
fa("Set",function(a){function b(c){this.j=new Map;if(c){c=g.t(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.t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ia(b,d)&&c.push([d,b[d]]);return c}});
fa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ba(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ba(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ba(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ba(this,b,"includes").indexOf(b,c||0)}});
fa("globalThis",function(a){return a||g.da});
fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return maa(this,b,c).i}});
fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ia(b,d)&&c.push(b[d]);return c}});
fa("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
fa("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ba(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
fa("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
fa("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.j.set(c,!0);return this};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.delete=function(c){return this.j.delete(c)};
return b});
fa("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
fa("Int8Array.prototype.copyWithin",Da);fa("Uint8Array.prototype.copyWithin",Da);fa("Uint8ClampedArray.prototype.copyWithin",Da);fa("Int16Array.prototype.copyWithin",Da);fa("Uint16Array.prototype.copyWithin",Da);fa("Int32Array.prototype.copyWithin",Da);fa("Uint32Array.prototype.copyWithin",Da);fa("Float32Array.prototype.copyWithin",Da);fa("Float64Array.prototype.copyWithin",Da);fa("Number.parseInt",function(a){return a||parseInt});
Ai=Ai||{};g.C=this||self;Na="closure_uid_"+(1E9*Math.random()>>>0);naa=0;var fga={};g.Ta(Va,Error);Va.prototype.name="CustomError";var Hda;g.Ta(Xa,Va);Xa.prototype.name="AssertionError";var qe=void 0,pe,Rba="undefined"!==typeof TextDecoder,taa,saa="undefined"!==typeof TextEncoder;var lb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Aaa=/&/g,Baa=/</g,Caa=/>/g,Daa=/"/g,Eaa=/'/g,Faa=/\x00/g,zaa=/[\x00&<>"']/;var tb=!!g.Ga("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ub,$1a=g.C.navigator;ub=$1a?$1a.userAgentData||null:null;var Oaa,Sk,Xl;Oaa=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.a2a=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.rc=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.Dm=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Vd=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
Sk=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.rc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Xl=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.Rk=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};tc[" "]=function(){};var Jl,aV,EVa,b2a,c2a,d2a,MG,NG,e2a;g.OG=Ab();g.Yg=Cb();g.Qw=xb("Edge");g.tH=g.Qw||g.Yg;Jl=xb("Gecko")&&!(jb(g.sb(),"WebKit")&&!xb("Edge"))&&!(xb("Trident")||xb("MSIE"))&&!xb("Edge");g.df=jb(g.sb(),"WebKit")&&!xb("Edge");aV=Mb();EVa=Laa();g.rv=Kaa();b2a=Kb();c2a=xb("iPad");d2a=xb("iPod");MG=Lb();NG=jb(g.sb(),"KaiOS");
a:{var f2a="",g2a=function(){var a=g.sb();if(Jl)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Qw)return/Edge\/([\d\.]+)/.exec(a);if(g.Yg)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.df)return/WebKit\/(\S+)/.exec(a);if(g.OG)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
g2a&&(f2a=g2a?g2a[1]:"");if(g.Yg){var h2a=Yaa();if(null!=h2a&&h2a>parseFloat(f2a)){e2a=String(h2a);break a}}e2a=f2a}var wc=e2a,Zaa={},i2a;if(g.C.document&&g.Yg){var j2a=Yaa();i2a=j2a?j2a:parseInt(wc,10)||void 0}else i2a=void 0;var $aa=i2a;var XG,zJ;g.XF=Eb();XG=Kb()||xb("iPod");zJ=xb("iPad");g.PG=Haa();g.ZE=Gb();g.qw=Hb()&&!Lb();var bba={},Ec=null,cba=Jl||g.df||"function"==typeof g.C.btoa;var fba="undefined"!==typeof Uint8Array,gba,Hc={};var iba;Ic.prototype.isEmpty=function(){return null==this.yd};
Ic.prototype.sizeBytes=function(){var a=Kc(this);return a?a.length:0};var Mc="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;var gd={},k2a,sd,l2a=[];Vc(l2a,23);sd=Object.freeze(l2a);var hd;g.k=g.I.prototype;g.k.toArray=function(){return this.toJSON()};
g.k.toJSON=function(){var a=this.Be;return k2a?a:ld(a,pba,rba)};
g.k.Rk=function(){k2a=!0;try{return JSON.stringify(this.toJSON(),Eba)}finally{k2a=!1}};
g.k.clone=function(){var a=ld(this.Be,qba,$c);Zc(a);hd=a;a=new this.constructor(a);hd=void 0;Fba(a,this);return a};
g.k.isMutable=function(){return!g.Xc(this.Be)};
g.k.Yo=function(){return g.Xc(this.Be)};
g.k.eE=gd;g.k.toString=function(){return this.Be.toString()};var Nba,Kba;Nba="function"===typeof Uint8Array.prototype.slice;g.$d=0;g.ae=0;Kba="function"===typeof BigInt;g.k=g.ce.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.mC=void 0===d.mC?!1:d.mC;a&&(a=Zd(a),this.u=a.buffer,this.D=a.Yo,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.k.free=function(){this.clear();100>le.length&&le.push(this)};
g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.mC=!1};
g.k.reset=function(){this.j=this.C};
g.k.advance=function(a){de(this,this.j+a)};
g.k.WB=aa(0);var le=[];me.prototype.free=function(){this.j.clear();this.u=this.C=-1;100>KV.length&&KV.push(this)};
me.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
me.prototype.advance=function(a){this.j.advance(a)};
var KV=[];var Tba;te.prototype.length=function(){return this.j.length};
te.prototype.end=function(){var a=this.j;this.j=[];return a};var Ee,Ke,He,Ge,m2a,n2a,o2a,z2,p2a,q2a,A2,B2;Ee=Symbol();Ke=Symbol();He=Symbol();Ge=Symbol();m2a=g.Ne(function(a,b,c){if(1!==a.u)return!1;a=g.he(a.j);Bd(b,c,a,0);return!0},g.Oe);
n2a=g.Ne(function(a,b,c){if(0!==a.u)return!1;a=g.ee(a.j);Bd(b,c,a,0);return!0},g.Pe);
o2a=g.Ne(function(a,b,c){if(0!==a.u)return!1;a=g.fe(a.j);Bd(b,c,a,0);return!0},g.Qe);
g.w2=g.Ne(function(a,b,c){if(2!==a.u)return!1;g.F(b,c,g.re(a));return!0},g.tca);
g.x2=g.Ne(function(a,b,c,d,e){if(2!==a.u)return!1;g.oe(a,yba(b,c,d),e);return!0},function(a,b,c,d,e){b=Kd(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=Yba(a,c);e(b[d],a);Zba(a,f)}});
g.y2=g.Ne(function(a,b,c,d,e,f){if(2!==a.u)return!1;(f=Gd(b,f))&&f!==c&&g.F(b,f,void 0,!1);b=g.wba(b,d,c);g.oe(a,b,e);return!0},g.uca);
z2=g.Ne(function(a,b,c){if(2!==a.u)return!1;g.F(b,c,se(a));return!0},vca);
p2a=g.Ne(function(a,b,c){if(2!==a.u)return!1;a=se(a);g.Cd(b,c,cd(a,!1,!1));return!0},function(a,b,c){b=g.yd(b,c,vba);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&g.De(a,c,Zd(e).buffer)}});
q2a=g.Ne(function(a,b,c,d){if(2!==a.u)return!1;g.Hd(b,c,d,se(a));return!0},vca);
A2=g.Ne(function(a,b,c){if(0!==a.u)return!1;g.F(b,c,g.fe(a.j)>>>0);return!0},function(a,b,c){b=g.od(b,c);
null!=b&&null!=b&&(g.Ce(a,c,0),ze(a.j,b))});
B2=g.Ne(function(a,b,c){if(0!==a.u)return!1;g.F(b,c,g.fe(a.j));return!0},function(a,b,c){b=g.od(b,c);
null!=b&&(b=parseInt(b,10),g.Ce(a,c,0),Wba(a.j,b))});g.v(Re,g.I);Re.prototype.cf=function(){return zd(this,2)};
var r2a=[Re,1,B2,2,B2];g.v(xca,g.I);var s2a=[xca,1,z2,2,z2];g.v(yca,g.I);var t2a=[yca,1,z2,2,z2];g.v(Se,g.I);var u2a=[Se,1,z2,2,z2];g.v(Te,g.I);var C2=[1,2,7,3,4,5,6],v2a=[Te,1,g.y2,s2a,C2,2,g.y2,t2a,C2,7,g.y2,r2a,C2,3,g.y2,u2a,C2,4,q2a,C2,5,q2a,C2,6,q2a,C2];g.k=Ue.prototype;g.k.lY=function(a){var b=g.ya.apply(1,arguments),c=this.xI(b);c?c.push(new zca(a)):this.xT(a,b)};
g.k.xT=function(a){this.Ov.set(this.eQ(g.ya.apply(1,arguments)),[new zca(a)])};
g.k.xI=function(){var a=this.eQ(g.ya.apply(0,arguments));return this.Ov.has(a)?this.Ov.get(a):void 0};
g.k.sZ=function(){var a=this.xI(g.ya.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Ov.clear()};
g.k.eQ=function(){var a=g.ya.apply(0,arguments);return a?a.join(","):"key"};g.v(Ve,Ue);Ve.prototype.B=function(a){var b=g.ya.apply(1,arguments),c=0,d=this.sZ(b);d&&(c=d.hP);this.xT(c+a,b)};g.v(Ye,Ue);Ye.prototype.wh=function(a){this.lY(a,g.ya.apply(1,arguments))};g.K.prototype.Vo=!1;g.K.prototype.isDisposed=function(){return this.Vo};
g.K.prototype.dispose=function(){this.Vo||(this.Vo=!0,this.ra())};
g.K.prototype.ra=function(){if(this.wl)for(;this.wl.length;)this.wl.shift()()};g.bf.prototype.stopPropagation=function(){this.u=!0};
g.bf.prototype.preventDefault=function(){this.defaultPrevented=!0};var cf={};var Pca=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 kKa=Dca("AnimationEnd"),hP=Dca("TransitionEnd");g.Ta(ef,g.bf);var w2a={2:"touch",3:"pen",4:"mouse"};
ef.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)?Jl&&(vc(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:w2a[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&ef.hf.preventDefault.call(this)};
ef.prototype.stopPropagation=function(){ef.hf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
ef.prototype.preventDefault=function(){ef.hf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Eca="closure_listenable_"+(1E6*Math.random()|0);var Fca=0;var Lca="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Bf.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=Df(a,b,d,e);-1<h?(b=a[h],c||(b.sC=!1)):(b=new Gca(b,this.src,f,!!d,e),b.sC=c,a.push(b));return b};
Bf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Df(e,b,c,d);return-1<b?(gf(e[b]),g.Vb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
Bf.prototype.Zf=function(){var a=0,b;for(b in this.listeners){for(var c=this.listeners[b],d=0;d<c.length;d++)++a,gf(c[d]);delete this.listeners[b];this.j--}};
Bf.prototype.Dz=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Df(a,b,c,d));return-1<e?a[e]:null};var If="closure_lm_"+(1E6*Math.random()|0),Kf={},Rca=0,Lf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ta(g.Mf,g.K);g.Mf.prototype[Eca]=!0;g.k=g.Mf.prototype;g.k.addEventListener=function(a,b,c,d){g.Ff(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Tca(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.Ma;if(b){var c=[];for(var d=1;b;b=b.Ma)c.push(b),++d}b=this.yb;d=a.type||a;if("string"===typeof a)a=new g.bf(a,b);else if(a instanceof g.bf)a.target=a.target||b;else{var e=a;a=new g.bf(d,b);g.Af(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Nf(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Nf(h,d,!0,a)&&e,a.u||(e=Nf(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=Nf(h,d,!1,a)&&e;return e};
g.k.ra=function(){g.Mf.hf.ra.call(this);this.B&&this.B.Zf();this.Ma=null};
g.k.Pa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.VD=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.zc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.Dz=function(a,b,c,d){return this.B.Dz(String(a),b,c,d)};Of.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 Pda=g.Yg||g.df;var x2a={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 Zf;ag.prototype.Dn=!0;ag.prototype.Bk=function(){return this.j};
var Yca={},Xca={};g.cg("");var Zca={};dg.prototype.toString=function(){return this.j.toString()};
dg.prototype.Bk=function(){return this.j.toString()};eg.prototype.toString=function(){return this.j+""};
eg.prototype.Dn=!0;eg.prototype.Bk=function(){return this.j.toString()};
var dda=/%{(\w+)}/g,cda=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),ada={};gg.prototype.toString=function(){return this.j.toString()};
gg.prototype.Dn=!0;gg.prototype.Bk=function(){return this.j.toString()};
var ida=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,hda=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,fda={},jda=ig("about:invalid#zClosurez");var kg={};lg.prototype.Bk=function(){return this.j};
lg.prototype.toString=function(){return this.j.toString()};
var ng=new lg("",kg),qda=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),pda=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),oda=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)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),rda=/\/\*/;var og={};tg.prototype.Bk=function(){return this.j.toString()};
tg.prototype.toString=function(){return this.j.toString()};
var y2a=/^[a-zA-Z0-9-]+$/,z2a={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},A2a={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},vda=new tg(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",og);var zda=Rf(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.ug(vda);return!b.parentElement}),Bda=/^[\w+/_-]+[=]{0,2}$/;g.k=g.Eg.prototype;g.k.clone=function(){return new g.Eg(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.Eg&&Fg(this,a)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.Gg.prototype;g.k.clone=function(){return new g.Gg(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!Ig(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.B2a=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Jda={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=Qg.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Da=function(a){return g.Wg(a,this.j)};
g.k.createElement=function(a){return $g(this.j,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){Nda(Rg(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.fh;g.k.contains=g.hh;var nh;ph.prototype.add=function(a,b){var c=Vda.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
ph.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 Vda=new Of(function(){return new rh},function(a){return a.reset()});
rh.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
rh.prototype.reset=function(){this.next=this.scope=this.fn=null};var sh,th=!1,Tda=new ph;Wda.prototype.reset=function(){this.context=this.onRejected=this.u=this.j=null;this.B=!1};
var Xda=new Of(function(){return new Wda},function(a){a.reset()});
g.wh.prototype.then=function(a,b,c){return eea(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.wh.prototype.$goog_Thenable=!0;g.k=g.wh.prototype;g.k.jj=function(a,b){return eea(this,null,a,b)};
g.k.catch=g.wh.prototype.jj;g.k.cancel=function(a){if(0==this.j){var b=new Ch(a);g.uh(function(){aea(this,b)},this)}};
g.k.I4=function(a){this.j=0;vh(this,2,a)};
g.k.J4=function(a){this.j=0;vh(this,3,a)};
g.k.gZ=function(){for(var a;a=bea(this);)cea(this,a,this.j,this.J);this.I=!1};
var iea=vaa;g.Ta(Ch,Va);Ch.prototype.name="cancel";g.Ta(g.Dh,g.Mf);g.k=g.Dh.prototype;g.k.enabled=!1;g.k.yc=null;g.k.setInterval=function(a){this.Kh=a;this.yc&&this.enabled?(this.stop(),this.start()):this.yc&&this.stop()};
g.k.u4=function(){if(this.enabled){var a=g.Sa()-this.hR;0<a&&a<.8*this.Kh?this.yc=this.sB.setTimeout(this.YO,this.Kh-a):(this.yc&&(this.sB.clearTimeout(this.yc),this.yc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.yc||(this.yc=this.sB.setTimeout(this.YO,this.Kh),this.hR=g.Sa())};
g.k.stop=function(){this.enabled=!1;this.yc&&(this.sB.clearTimeout(this.yc),this.yc=null)};
g.k.ra=function(){g.Dh.hf.ra.call(this);this.stop();delete this.sB};g.k=g.Gh.prototype;g.k.CL=function(a){this.D=a;this.C=1};
g.k.tG=function(){var a=this.j.values();a=[].concat(g.u(a)).filter(function(b){return b.Ov.size});
a.length&&this.J.flush(a,this.D);lea(a);this.B=0;this.u.enabled&&this.u.stop()};
g.k.Tm=function(a){var b=g.ya.apply(1,arguments);this.j.has(a)||this.j.set(a,new Ve(a,b))};
g.k.kC=function(a){var b=g.ya.apply(1,arguments);this.j.has(a)||this.j.set(a,new Ye(a,b))};
g.k.Bo=function(a){this.sG.apply(this,[a,1].concat(g.u(g.ya.apply(1,arguments))))};
g.k.sG=function(a,b){var c=g.ya.apply(2,arguments),d=kea(this,a);d&&d instanceof Ve&&(d.B(b,c),jea(this))};
g.k.wh=function(a,b){var c=g.ya.apply(2,arguments),d=kea(this,a);d&&d instanceof Ye&&(d.wh(b,c),jea(this))};mea.prototype.wh=function(a,b,c,d,e){this.j.wh("/client_streamz/po/w/rl",a,b,c,d,e)};
nea.prototype.wh=function(a,b,c){this.j.wh("/client_streamz/po/w/el",a,b,c)};g.v(rea,g.I);var qea=[1,2,3,4];var sea,tea;g.v(g.Hh,g.I);g.v(g.Ih,g.I);g.v(g.Mh,g.I);g.v(g.Nh,g.I);sea=[3,6,4];tea=[1];g.Ph=[1,2,3];g.Oh=[1,2,3];g.v(vea,g.I);var uea=[1];var Cea={};g.k=Qh.prototype;g.k.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{ZD:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.B6a;d=c.R3||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.ZD}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=lb(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{ZD:0,path:b,domain:c});return d};
g.k.No=function(){return Rh(this).keys};
g.k.Ck=function(){return Rh(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=Rh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var dv=new Qh("undefined"==typeof document?null:document);g.v(Vh,g.I);var Fea=[2];g.Wh.prototype.u=0;g.Wh.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.Wh.prototype.getValue=function(){return this.B};Gea.prototype.Rk=function(a){var b=[];Zh(this,a,b);return b.join("")};
var Jea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Iea=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;$h.prototype.B=null;$h.prototype.getOptions=function(){return this.B||(this.B=this.C())};var C2a;g.Ta(ai,$h);ai.prototype.j=function(){var a=Lea(this);return a?new ActiveXObject(a):new XMLHttpRequest};
ai.prototype.C=function(){var a={};Lea(this)&&(a[0]=!0,a[1]=!0);return a};
C2a=new ai;var di=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Tea=/#|$/,Uea=/[?&]($|#)/;g.Ta(g.yi,g.Mf);var dfa=/^https?$/i,D2a=["POST","PUT"],Xea=[];g.k=g.yi.prototype;g.k.DY=function(){this.dispose();g.Wb(Xea,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.oa+"; newUri="+a);b=b?b.toUpperCase():"GET";this.oa=a;this.D="";this.u=0;this.Ba=!1;this.C=!0;this.j=this.Z?this.Z.j():C2a.j();this.Aa=this.Z?this.Z.getOptions():C2a.getOptions();this.j.onreadystatechange=(0,g.Pa)(this.tS,this);try{this.getStatus(),this.Ka=!0,this.j.open(b,String(a),!0),this.Ka=!1}catch(h){this.getStatus();afa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.t(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.C.FormData&&a instanceof g.C.FormData;!g.Sb(D2a,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.t(c);for(d=b.next();!d.done;d=b.next())c=g.t(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Oa&&(this.j.responseType=this.Oa);"withCredentials"in this.j&&this.j.withCredentials!==this.J&&(this.j.withCredentials=this.J);try{cfa(this),0<this.T&&(this.Sa=Zea(this.j),this.getStatus(),this.Sa?(this.j.timeout=this.T,this.j.ontimeout=(0,g.Pa)(this.MN,
this)):this.ya=g.Eh(this.MN,this.T,this)),this.getStatus(),this.ea=!0,this.j.send(a),this.ea=!1}catch(h){this.getStatus(),afa(this,h)}};
g.k.MN=function(){"undefined"!=typeof Ai&&this.j&&(this.D="Timed out after "+this.T+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.I=!0,this.j.abort(),this.I=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),zi(this))};
g.k.ra=function(){this.j&&(this.C&&(this.C=!1,this.I=!0,this.j.abort(),this.I=!1),zi(this,!0));g.yi.hf.ra.call(this)};
g.k.tS=function(){this.isDisposed()||(this.Ka||this.ea||this.I?bfa(this):this.R1())};
g.k.R1=function(){bfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.Bi(this)};
g.k.getStatus=function(){try{return 2<g.Bi(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};g.v(Gi,g.I);g.v(Hi,g.I);var ffa=[1];var vfa=["platform","platformVersion","architecture","model","uaFullVersion"];new Hi;g.v(Ii,g.I);g.v(hfa,g.I);var gfa=[1,2,3,4,5];g.v(Ji,g.I);Ji.prototype.N=function(){return rd(this,hfa,7)};
Ji.prototype.LH=function(){return g.F(this,16,void 0,!1)};
var ifa=[3,20,27];g.v(kfa,g.I);var jfa=[3,5];g.v(mfa,g.I);var lfa=[5];g.v(nfa,g.I);var E2a;E2a=new function(a,b,c){this.j=a;this.fieldName=b;this.Ns=c;this.isRepeated=0;this.u=wca}(175237375,{e6a:0},nfa);g.v(Li,g.Mf);g.k=Li.prototype;g.k.ra=function(){this.pI();g.Mf.prototype.ra.call(this)};
g.k.dispatch=function(a){if(a instanceof Ji)this.log(a);else{var b=new Ji;a=a.Rk();b=g.F(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Mb++;g.F(a,21,b);this.ea&&g.F(a,26,this.ea);if(!g.od(a,1)){b=a;var c=Date.now().toString();g.F(b,1,c)}null!=g.od(a,15,!1)||g.F(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),H(a,Vh,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.J;this.u.push(a);this.dispatchEvent(new ufa(a));this.Aa||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.Ba)tfa(this);else{var d=Date.now();if(this.kb>d&&this.Ka<d)b&&b("throttled");else{var e=this.I.Ze(this.u,this.J);d={};var f=this.Xa();f&&(d.Authorization=f);var h=qfa(this);this.Z&&(d["X-Goog-AuthUser"]=this.Z,h=ui(h,"authuser",this.Z));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=ui(h,"pageId",this.pageId));if(f&&this.ib===f)b&&b("stale-auth-token");else{this.u=[];this.j.enabled&&this.j.stop();this.J=0;var l=e.Rk(),m;this.T&&
this.T.isSupported(l.length)&&(m=this.T.compress(l));var n={url:h,body:l,xY:1,Zt:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(w){c.D.reset();c.j.setInterval(c.D.getValue());if(w){var y=null;try{var z=JSON.parse(w.replace(")]}'\n",""));y=new mfa(z)}catch(B){}y&&(w=Number(Sd(g.od(y,1),"-1")),0<w&&(c.Ka=Date.now(),c.kb=c.Ka+w),y=E2a.u(y))&&(y=Ud(y,1,-1),-1!=y&&(c.Wa||rfa(c,y)))}a&&a()},q=function(w,y){var z=Kd(e,Ji,3);
g.Xh(c.D);c.j.setInterval(c.D.getValue());401===w&&f&&(c.ib=f);void 0===y&&(y=500<=w&&600>w||401===w||0===w);y&&(c.u=z.concat(c.u),c.Aa||c.j.enabled||c.j.start());b&&b("net-send-failed",w)},r=function(){c.Sa?c.Sa.send(n,p,q):c.qb(n,p,q)};
m?m.then(function(w){n.Zt["Content-Encoding"]="gzip";n.Zt["Content-Type"]="application/binary";n.body=w;n.xY=2;r()},function(){r()}):r()}}}};
g.k.pI=function(){this.flush()};
g.v(ufa,g.bf);ofa.prototype.Ze=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.F(c,4,d);a=Nd(c,Ji,3,a);b&&g.F(a,14,b);return a};Ni.prototype.Ze=function(){var a=new Li(this.J,this.ya?this.ya:Th,"0",this.T,this.C,this.D,!1,this.Ka,void 0,void 0,this.Z?this.Z:void 0);this.ea&&Ki(a.I,this.ea);if(this.u){var b=this.u,c=Mi(a.I);g.F(c,7,b)}this.I&&(a.T=this.I);this.j&&(a.ea=this.j);this.B&&((b=this.B)?(a.C||(a.C=new Vh),b=b.Rk(),g.F(a.C,4,b)):a.C&&g.F(a.C,4,void 0,!1));this.Aa&&(b=this.Aa,a.C||(a.C=new Vh),xd(a.C,2,b));this.oa&&(b=this.oa,a.Wa=!0,rfa(a,b));this.Ba&&wfa(a.I,this.Ba);return a};Oi.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new vea,c=[],d=0;d<a.length;d++){var e=a[d],f=g.wea(e);c.push(f);e.clear()}Nd(b,g.Hh,1,c);this.j.dispatch(b);this.j.flush()}};g.v(Pi,Error);Pi.prototype.name="RpcError";Ri.prototype.done=function(){this.logger.oR(this.j,Qi()-this.startMillis)};
Si.prototype.iA=function(){};
Si.prototype.oR=function(){};
Si.prototype.KJ=function(a,b,c){return c};
Si.prototype.nR=function(){};
Ti.prototype.iA=function(a){this.clientError.j.Bo("/client_streamz/po/w/cec",a,this.vg)};
Ti.prototype.oR=function(a,b){this.u.wh(b,a,this.vg)};
Ti.prototype.KJ=function(a,b,c){function d(h){var l=Qi()-f;e.B.wh(l,a,b,h,e.vg)}
var e=this,f=Qi();c.then(function(){d(0)},function(h){h instanceof Pi?d(h.code):d(-1)});
return c};
Ti.prototype.nR=function(a){this.j.j.Bo("/client_streamz/po/w/csc",a,this.vg)};Afa.prototype.wh=function(a,b){this.j.wh("/client_streamz/bg/fil",a,b)};
Cfa.prototype.wh=function(a,b){this.j.wh("/client_streamz/bg/fsl",a,b)};g.v(Efa,g.I);g.v(Ffa,g.I);g.v(Vi,g.I);Vi.j="bfkj";Xi.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");var c=Ui(),d;null!=(d=this.cq)&&d.u.j.Bo("/client_streamz/bg/fsc",d.vg);return this.u.then(function(e){var f=e.uY;return new Promise(function(h){f(function(l){var m;null!=(m=b.cq)&&m.B.wh(Ui()-c,m.vg);h(l)},[a.Wv,
a.b4])})})};
Xi.prototype.HT=function(a){if(this.j)throw Error("Already disposed");var b=Ui(),c;null!=(c=this.cq)&&c.u.j.Bo("/client_streamz/bg/fsc",c.vg);a=this.B([a.Wv,a.b4]);var d;null!=(d=this.cq)&&d.B.wh(Ui()-b,d.vg);return a};
Xi.prototype.dispose=function(){var a;null!=(a=this.cq)&&a.j.tG();this.j=!0;this.u.then(function(b){(b=b.a4)&&b()})};
Xi.prototype.isDisposed=function(){return this.j};var Jfa={};g.v(Yi,Hfa);Yi.prototype.toString=function(){return this.j};var F2a;try{new URL("s://g"),F2a=!0}catch(a){F2a=!1}var Mfa=F2a;var Ofa=[$i("data"),$i("http"),$i("https"),$i("mailto"),$i("ftp"),new Zi(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.v(dj,g.I);g.v(ej,g.I);g.v(fj,g.I);Xfa.prototype.ping=function(a,b){var c=this,d,e;return g.A(function(f){d=c.j();e=b||new fj;var h=g.F(e,1,c.vg);g.F(h,2,a);return g.x(f,c.client.ping(e,d),0)})};g.da.Object.defineProperties(aga.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return this.u.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.u.b}}});g.v(kj,g.I);lj.prototype.kD=function(){return this.B};
lj.prototype.getMetadata=function(){return this.u};mj.prototype.getMetadata=function(){return this.j};
mj.prototype.kD=function(){return this.u};
mj.prototype.getStatus=function(){return null};nj.prototype.getName=function(){return this.name};
nj.prototype.getName=nj.prototype.getName;var G2a=new nj("/google.internal.waa.v1.Waa/Create",dj,kj,function(a){return a.Rk()},function(a){return Wd(kj,a)});g.v(oj,g.I);var Zfa=new nj("/google.internal.waa.v1.Waa/GenerateIT",ej,oj,function(a){return a.Rk()},function(a){return Wd(oj,a)});g.v(pj,g.I);var H2a=new nj("/google.internal.waa.v1.Waa/Ping",fj,pj,function(a){return a.Rk()},function(a){return Wd(pj,a)});var Bga=Promise;g.v(qj,g.I);qj.prototype.getValue=function(){if(Array.isArray(g.od(this,2)))throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Ad(this,2)};
qj.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=g.F(this,2,ld(a,qba,$c));else if("string"===typeof a||a instanceof Ic||Fc(a))dd(this),a=cd(a,!1,!0),null==a||a.isEmpty()?pd(this,2,void 0,!1):pd(this,2,a),a=this;else throw Error("invalid value in Any.value field: "+a+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");return a};g.v(rj,g.I);rj.prototype.getMessage=function(){return Td(this,2)};
var dga=[3];sj.prototype.on=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
sj.prototype.removeListener=function(a,b){"data"==a?wj(this.B,b):"metadata"==a?wj(this.D,b):"status"==a?wj(this.I,b):"end"==a?wj(this.C,b):"error"==a&&wj(this.u,b);return this};
sj.prototype.cancel=function(){this.j.abort()};
sj.prototype.cancel=sj.prototype.cancel;sj.prototype.removeListener=sj.prototype.removeListener;sj.prototype.on=sj.prototype.on;g.Ta(g.xj,$h);g.xj.prototype.j=function(){var a=new yj(this.I,this.D);this.u&&a.setCredentialsMode(this.u);return a};
g.xj.prototype.C=Pf({});g.xj.prototype.setCredentialsMode=function(a){this.u=a};
g.Ta(yj,g.Mf);g.k=yj.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.oa=a;this.ea=b;this.readyState=1;zj(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.oa,credentials:this.I,cache:void 0};a&&(b.body=a);(this.ya||g.C).fetch(new Request(this.ea,b)).then(this.MZ.bind(this),this.yD.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,Aj(this));this.readyState=0};
g.k.MZ=function(a){if(this.j&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,zj(this)),this.j&&(this.readyState=3,zj(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.KZ.bind(this),this.yD.bind(this));else if("undefined"!==typeof g.C.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.T=new TextDecoder;jga(this)}else a.text().then(this.LZ.bind(this),this.yD.bind(this))};
g.k.CZ=function(a){if(this.j){if(this.J&&a.value)this.response.push(a.value);else if(!this.J){var b=a.value?a.value:new Uint8Array(0);if(b=this.T.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Aj(this):zj(this);3==this.readyState&&jga(this)}};
g.k.LZ=function(a){this.j&&(this.response=this.responseText=a,Aj(this))};
g.k.KZ=function(a){this.j&&(this.response=a,Aj(this))};
g.k.yD=function(){this.j&&Aj(this)};
g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.I=a};
Object.defineProperty(yj.prototype,"withCredentials",{get:function(){return"include"===this.I},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Cj.prototype.toString=function(){var a=[],b=this.D;b&&a.push(Jj(b,I2a,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.T)&&a.push(Jj(b,I2a,!0),"@"),a.push(g.Jg(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.B)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Jj(c,"/"==c.charAt(0)?J2a:K2a,!0));(c=this.u.toString())&&a.push("?",c);(c=this.I)&&a.push("#",Jj(c,L2a));return a.join("")};
g.Cj.prototype.resolve=function(a){var b=this.clone(),c=!!a.D;c?g.Dj(b,a.D):c=!!a.T;c?b.T=a.T:c=!!a.j;c?g.Ej(b,a.j):c=null!=a.C;var d=a.B;if(c)g.Fj(b,a.C);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.ib(e,"./")||g.ib(e,"/.")){d=bb(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),
d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=""!==a.u.toString();c?Gj(b,a.u.clone()):c=!!a.I;c&&(b.I=a.I);return b};
g.Cj.prototype.clone=function(){return new g.Cj(this)};
var I2a=/[#\/\?@]/g,K2a=/[#\?:]/g,J2a=/[#\?]/g,nga=/[#\?@]/g,L2a=/#/g;g.k=Ij.prototype;g.k.add=function(a,b){Mj(this);this.B=null;a=Nj(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){Mj(this);a=Nj(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.B=null;this.u=0};
g.k.isEmpty=function(){Mj(this);return 0==this.u};
g.k.forEach=function(a,b){Mj(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.No=function(){Mj(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.Ck=function(a){Mj(this);var b=[];if("string"===typeof a)pga(this,a)&&(b=b.concat(this.j.get(Nj(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){Mj(this);this.B=null;a=Nj(this,a);pga(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.Ck(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Jg(d);d=this.Ck(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Jg(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Ij;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.Bj(arguments[b],function(c,d){this.add(d,c)},this)};g.Ta(g.Pj,g.K);var M2a=[];g.k=g.Pj.prototype;g.k.Pa=function(a,b,c,d){Array.isArray(b)||(b&&(M2a[0]=b.toString()),b=M2a);for(var e=0;e<b.length;e++){var f=g.Ff(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.k.VD=function(a,b,c,d){return sga(this,a,b,c,d)};
g.k.zc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.zc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Ma(d)?!!d.capture:!!d,e=e||this.u||this,c=Gf(c),d=!!d,b=ff(a)?a.Dz(b,c,d,e):a?(a=Hf(a))?a.Dz(b,c,d,e):null:null,b&&(Jf(b),delete this.j[b.key])};
g.k.Zf=function(){g.hf(this.j,function(a,b){this.j.hasOwnProperty(b)&&Jf(a)},this);
this.j={}};
g.k.ra=function(){g.Pj.hf.ra.call(this);this.Zf()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};tga.prototype.isInputValid=function(){return this.B};Qj.prototype.isInputValid=function(){return 3!=this.j};
Qj.prototype.rf=function(){return this.I};
Qj.prototype.iC=function(){return!0};
Qj.prototype.parse=function(a){function b(m){m&128&&Rj(f,h,l,"invalid tag");2!=(m&7)&&Rj(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Rj(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Rj(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.T=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.T++]=m;f.T==f.u&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.J.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:Rj(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.Z++;l++}a=f.J;f.J=[];return 0<a.length?a:null};Sj.prototype.isInputValid=function(){return null===this.j};
Sj.prototype.rf=function(){return this.j};
Sj.prototype.iC=function(){return!1};
Sj.prototype.parse=function(a){null!==this.j&&vga(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||uga(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=eba(c.j.slice(0,4*d))}catch(h){uga(c,c.j,h.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){vga(this,a,h.message)}this.u+=a.length;return b};var N2a={INIT:0,Fy:1,NG:2,uv:3,ey:4,by:5,STRING:6,HG:7,iO:8,wO:9,xO:10,yO:11,RM:12,SM:13,TM:14,UM:15,nO:16,oO:17,pO:18,HX:19,LG:20};g.k=Uj.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.rf=function(){return this.Z};
g.k.done=function(){return 2===this.D};
g.k.iC=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Tj(a[r]))r++,f.B++;else break;return r<n}
function c(){for(var y;;){y=a[r++];if(!y)break;f.B++;switch(f.j){case m.INIT:"{"===y?f.j=m.NG:"["===y?f.j=m.ey:Tj(y)||Yj(f,a,r);continue;case m.HG:case m.NG:if(Tj(y))continue;if(f.j===m.HG)h.push(m.iO);else if("}"===y){e("{}");f.j=d();continue}else h.push(m.uv);'"'===y?f.j=m.STRING:Yj(f,a,r);continue;case m.iO:case m.uv:if(Tj(y))continue;":"===y?(f.j===m.uv&&(h.push(m.uv),f.u++),f.j=m.Fy):"}"===y?(f.u--,e(),f.j=d()):","===y?(f.j===m.uv&&h.push(m.uv),f.j=m.HG):Yj(f,a,r);continue;case m.ey:case m.Fy:if(Tj(y))continue;
if(f.j===m.ey)if(f.u++,f.j=m.Fy,"]"===y){f.u--;if(0===f.u){f.j=m.by;return}e("[]");f.j=d();continue}else h.push(m.by);'"'===y?f.j=m.STRING:"{"===y?f.j=m.NG:"["===y?f.j=m.ey:"t"===y?f.j=m.wO:"f"===y?f.j=m.RM:"n"===y?f.j=m.nO:"-"!==y&&(-1!=="0123456789".indexOf(y)?f.j=m.LG:Yj(f,a,r));continue;case m.by:if(","===y)h.push(m.by),f.j=m.Fy,1===f.u&&(q=r);else if("]"===y){f.u--;if(0===f.u)return;e();f.j=d()}else if(Tj(y))continue;else Yj(f,a,r);continue;case m.STRING:var z=r;a:for(;;){for(;0<f.T;)if(y=a[r++],
4===f.T?f.T=0:f.T++,!y)break a;if('"'===y&&!f.J){f.j=d();break}if("\\"===y&&!f.J&&(f.J=!0,y=a[r++],!y))break;if(f.J)if(f.J=!1,"u"===y&&(f.T=1),y=a[r++])continue;else break;l.lastIndex=r;y=l.exec(a);if(!y){r=a.length+1;break}r=y.index+1;y=a[y.index];if(!y)break}f.B+=r-z;continue;case m.wO:if(!y)continue;"r"===y?f.j=m.xO:Yj(f,a,r);continue;case m.xO:if(!y)continue;"u"===y?f.j=m.yO:Yj(f,a,r);continue;case m.yO:if(!y)continue;"e"===y?f.j=d():Yj(f,a,r);continue;case m.RM:if(!y)continue;"a"===y?f.j=m.SM:
Yj(f,a,r);continue;case m.SM:if(!y)continue;"l"===y?f.j=m.TM:Yj(f,a,r);continue;case m.TM:if(!y)continue;"s"===y?f.j=m.UM:Yj(f,a,r);continue;case m.UM:if(!y)continue;"e"===y?f.j=d():Yj(f,a,r);continue;case m.nO:if(!y)continue;"u"===y?f.j=m.oO:Yj(f,a,r);continue;case m.oO:if(!y)continue;"l"===y?f.j=m.pO:Yj(f,a,r);continue;case m.pO:if(!y)continue;"l"===y?f.j=d():Yj(f,a,r);continue;case m.HX:"."===y?f.j=m.LG:Yj(f,a,r);continue;case m.LG:if(-1!=="0123456789.eE+-".indexOf(y))continue;else r--,f.B--,f.j=
d();continue;default:Yj(f,a,r)}}}
function d(){var y=h.pop();return null!=y?y:m.Fy}
function e(y){1<f.u||(y||(y=-1===q?f.C+a.substring(p,r):a.substring(q,r)),f.ea?f.I.push(y):f.I.push(JSON.parse(y)),q=r)}
for(var f=this,h=f.oa,l=f.ya,m=N2a,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.D){case 3:return Yj(f,a,r),null;case 2:return b()&&Yj(f,a,r),null;case 0:if(b()){var w=a[r++];f.B++;if("["===w){f.D=1;p=r;f.j=m.ey;continue}else Yj(f,a,r)}return null;case 1:return c(),0===f.u&&f.j==m.by?(f.D=2,f.C=a.substring(r)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.I.length?(w=f.I,f.I=[],w):null}return null};Zj.prototype.isInputValid=function(){return null===this.D};
Zj.prototype.rf=function(){return this.D};
Zj.prototype.iC=function(){return!1};
Zj.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new Uj({v5a:!0,UY:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!Tj(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.u=5,h++,f.j++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};ak.prototype.getStatus=function(){return this.C};
ak.prototype.ea=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Bi(this.j),c=this.j.u,d=this.j.getStatus(),e=g.Di(this.j);a=[];if(g.Ei(this.j)instanceof Array){var f=g.Ei(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.Z=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?bk(this,7):7==c?bk(this,8):d||bk(this,3)),this.u||(this.u=wga(this.j),null==this.u&&bk(this,5)),2<this.C)ck(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.iC())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){bk(this,5);ck(this);break a}}else if(e.length>this.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){bk(this,5);ck(this);break a}}4==b?(0!=e.length||
this.Z?bk(this,2):bk(this,4),ck(this)):bk(this,1)}}}catch(p){bk(this,6),ck(this)}};g.k=xga.prototype;g.k.on=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.on(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Wb(c,b);(a=this.j[a])&&g.Wb(a,b);return this};
g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.k.K0=function(a){var b=this.u.data;b&&yga(a,b);(b=this.j.data)&&yga(a,b);this.j.data=[]};
g.k.F2=function(){switch(this.B.getStatus()){case 1:dk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:dk(this,"error");break;case 8:dk(this,"close");break;case 2:dk(this,"end")}};zga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Aga(function(h){var l=h.kD(),m=h.getMetadata(),n=Dga(e,!1);m=Ega(e,m,n,f+l.getName());var p=Fga(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,cga(d,b,c))};ek.prototype.create=function(a,b){return jj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},G2a)};
ek.prototype.ping=function(a,b){return jj(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},H2a)};var Hga={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(hk,Error);g.v(ik,g.K);ik.prototype.nA=function(a){var b=this.gr(a);a=new Ri(this.logger,this.j);b=g.Bc(b,2);a.done();return b};
g.v(lk,ik);lk.prototype.gr=function(a){++this.I>=this.J&&this.C.resolve();var b=new Ri(this.logger,"C");a=this.D(a.Wv);b.done();if(void 0===a)throw new hk(17,Error("YNJ:Undefined"));if(a instanceof Uint8Array)return a;b=new aga(a);if(void 0===b.B||void 0===b.j)throw new hk(18,Error("ODM:Invalid"));a=this.B;a=Jd(a,Se,3===Gd(a,C2)?3:-1);if(!a){a=new Se;var c=Dc(b.B);Pd(a,2,c);Ld(this.B,Se,3,C2,a)}b=new Uint8Array(b.j);Pd(a,1,b);return g.Me(this.B,v2a)};
g.v(mk,ik);mk.prototype.gr=function(){return this.B};
g.v(nk,ik);nk.prototype.gr=function(){return Dc(this.B)};
nk.prototype.nA=function(){return this.B};
g.v(ok,ik);ok.prototype.gr=function(){if(this.B){var a=this.B;this.B=void 0;return a}return this.D};
g.v(pk,ik);pk.prototype.gr=function(a){var b;a=g.ab(null!=(b=a.Wv)?b:"");if(118<a.length)throw new hk(19,Error("DFO:Invalid"));var c=Date.now()/1E3|0;b=[255*Math.random()|0,255*Math.random()|0];a=b.concat([this.B&255,this.clientState],[c>>24&255,c>>16&255,c>>8&255,c&255],a);for(c=b=b.length;c<a.length;++c)a[c]^=a[c%b];this.logger.nR(this.clientState);b=new Uint8Array(a.length+2);b[0]=34;b[1]=a.length;for(c=2;c<b.length;++c)b[c]=a[c-2];return b};
g.k=Jga.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.A(function(b){return g.x(b,a.C.promise,0)})};
g.k.prefetch=function(){1===this.state&&(this.u=Mga(this))};
g.k.start=function(){if(1===this.state){this.state=2;var a=new Ri(this.logger,"r");this.ready().finally(function(){return void a.done()});
Oga(this)}};
g.k.gr=function(a){return Pga(this,a,!1)};
g.k.nA=function(a){return Pga(this,a,!0)};var wsa={cRa:0,ZQa:1,WQa:2,XQa:3,YQa:4,bRa:5,aRa:6};var jm;jm=["av.default","js","unreleased"].slice(-1)[0];var Zk=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");var Zl=document,Fk=window;var Vga={NONE:0,qna:1},Aha={hV:0,ZPa:1,YPa:2,aQa:3},$k={VU:"a",Uma:"d",VIDEO:"v"};rk.prototype.isVisible=function(){return this.ot?.3<=this.Rd:.5<=this.Rd};var Bk={Vga:0,zra:1},yha={NONE:0,swa:1,Lta:2};sk.prototype.getValue=function(){return this.yd};
g.v(tk,sk);tk.prototype.setValue=function(a){if(null!==this.yd||!g.qf(this.u,a))return!1;this.yd=a;return!0};
g.v(uk,sk);uk.prototype.setValue=function(a){if(null!==this.yd||"number"!==typeof a)return!1;this.yd=a;return!0};
g.v(vk,sk);vk.prototype.setValue=function(a){if(null!==this.yd||"string"!==typeof a)return!1;this.yd=a;return!0};wk.prototype.disable=function(){this.u=!1};
wk.prototype.enable=function(){this.u=!0};
wk.prototype.isEnabled=function(){return this.u};
wk.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var Cia=!g.Yg&&!Hb();Ck.prototype.now=function(){return 0};
Ck.prototype.u=function(){return 0};
Ck.prototype.B=function(){return 0};
Ck.prototype.j=function(){return 0};g.v(Ek,Ck);Ek.prototype.now=function(){return Dk()&&Fk.performance.now?Fk.performance.now():Ck.prototype.now.call(this)};
Ek.prototype.u=function(){return Dk()&&Fk.performance.memory?Fk.performance.memory.totalJSHeapSize||0:Ck.prototype.u.call(this)};
Ek.prototype.B=function(){return Dk()&&Fk.performance.memory?Fk.performance.memory.usedJSHeapSize||0:Ck.prototype.B.call(this)};
Ek.prototype.j=function(){return Dk()&&Fk.performance.memory?Fk.performance.memory.jsHeapSizeLimit||0:Ck.prototype.j.call(this)};var Yga=Rf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});Zga.prototype.isVisible=function(){return 1===Ik(Zl)};g.cg("csi.gstatic.com");g.cg("googleads.g.doubleclick.net");g.cg("partner.googleadservices.com");g.cg("pubads.g.doubleclick.net");g.cg("securepubads.g.doubleclick.net");g.cg("tpc.googlesyndication.com");var aha={d$:"allow-forms",e$:"allow-modals",f$:"allow-orientation-lock",g$:"allow-pointer-lock",h$:"allow-popups",i$:"allow-popups-to-escape-sandbox",j$:"allow-presentation",k$:"allow-same-origin",l$:"allow-scripts",m$:"allow-top-navigation",n$:"allow-top-navigation-by-user-activation"},eha=Rf(function(){return bha()});var iha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Nk.prototype.Ge=function(a,b,c){a=a+"//"+b+c;var d=mha(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.u[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=lha(h[l],this.B,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};Uk.prototype.setInterval=function(a,b){return Fk.setInterval(a,b)};
Uk.prototype.clearInterval=function(a){Fk.clearInterval(a)};
Uk.prototype.setTimeout=function(a,b){return Fk.setTimeout(a,b)};
Uk.prototype.clearTimeout=function(a){Fk.clearTimeout(a)};tha.prototype.getContext=function(){if(!this.j){if(!Fk)throw Error("Context has not been set and window is undefined.");this.j=Tk(Uk)}return this.j};g.v(Wk,g.I);var Cja=[Wk,1,m2a,2,n2a,3,n2a,4,n2a,5,o2a];var zha={hOa:1,bY:2,pGa:3};Bha.prototype.ZK=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 D2=null;var cl=g.C.performance,O2a=!!(cl&&cl.mark&&cl.measure&&cl.clearMarks),al=Rf(function(){var a;if(a=O2a){var b;if(null===D2){D2="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(D2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=D2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
bl.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(al()&&g.rc(this.events,Hha),this.events.length=0)};
bl.prototype.start=function(a,b){if(!this.j)return null;var c=Fha()||Eha();a=new Gha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";cl&&al()&&cl.mark(b);return a};
bl.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=Fha()||Eha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";cl&&al()&&cl.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};Iha.prototype.LJ=function(a,b,c,d,e){e=e||this.JP;try{var f=new Nk;f.j.push(1);f.u[1]=Ok("context",a);b.error&&b.meta&&b.id||(b=new ml(nl(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.u[2]=Ok("msg",h)}var l=b.meta||{};if(this.mH)try{this.mH(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=kha();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Ok("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Nea(m.j.url):""}];f.j.push(5);f.u[5]=p;Cha(this.j,e,f,c)}catch(q){try{Cha(this.j,
e,{context:"ecmserr",rctx:a,msg:nl(q),url:m&&m.j.url},c)}catch(r){}}return this.QL};
g.v(ml,Dha);var el,ll,dl=new bl;el=new function(){var a="https:";Fk&&Fk.location&&"http:"===Fk.location.protocol&&(a="http:");this.u=a;this.j=.01};
ll=new Iha;Fk&&Fk.document&&("complete"==Fk.document.readyState?Kha():dl.j&&Hk(Fk,"load",function(){Kha()}));var Nha=Date.now(),ul=-1,sl=-1,bja,vl=-1,tl=!1;g.k=yl.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new yl(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof yl?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Cl.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Al(this.j,a.j)&&!0};Dl.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.T==a.T&&Al(this.B,a.B)&&Al(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.J==a.J};var P2a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Ym={TX:"start",mV:"firstquartile",DX:"midpoint",VX:"thirdquartile",cV:"complete",ERROR:"error",CX:"metric",PAUSE:"pause",PX:"resume",RX:"skip",aY:"viewable_impression",FX:"mute",ZX:"unmute",nV:"fullscreen",jV:"exitfullscreen",bV:"bufferstart",aV:"bufferfinish",oV:"fully_viewable_audible_half_duration_impression",BX:"measurable_impression",SU:"abandon",iV:"engagedview",sV:"impression",eV:"creativeview",zX:"loaded",fPa:"progress",
CLOSE:"close",nga:"collapse",NLa:"overlay_resize",OLa:"overlay_unmeasurable_impression",PLa:"overlay_unviewable_impression",RLa:"overlay_viewable_immediate_impression",QLa:"overlay_viewable_end_of_session_impression",gV:"custom_metric_viewable",TKa:"verification_debug",WU:"audio_audible",YU:"audio_measurable",XU:"audio_impression"},oka="start firstquartile midpoint thirdquartile resume loaded".split(" "),pka=["start","firstquartile","midpoint","thirdquartile"],cja=["abandon"],sn={UNKNOWN:-1,TX:0,
mV:1,DX:2,VX:3,cV:4,CX:5,PAUSE:6,PX:7,RX:8,aY:9,FX:10,ZX:11,nV:12,jV:13,oV:14,BX:15,SU:16,iV:17,sV:18,eV:19,zX:20,gV:21,bV:22,aV:23,XU:27,YU:28,WU:29};var Pha={b6:"addEventListener",Nta:"getMaxSize",Ota:"getScreenSize",Pta:"getState",Qta:"getVersion",OPa:"removeEventListener",nxa:"isViewable"};g.k=g.Fl.prototype;g.k.clone=function(){return new g.Fl(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Eg?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.Gg(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Tha={};bia.prototype.update=function(a){a&&a.document&&(this.J=El(!1,a,this.isMobileDevice),this.j=El(!0,a,this.isMobileDevice),dia(this,a),cia(this,a))};am.prototype.cancel=function(){Vk().clearTimeout(this.j);this.j=null};
am.prototype.schedule=function(){var a=this,b=Vk(),c=Yk().j.j;this.j=b.setTimeout(Xk(c,pl(143,function(){a.u++;a.B.sample()})),Oha())};g.k=bm.prototype;g.k.uy=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.ow=function(){return this.j.Ba};
g.k.Tz=function(){return this.j.ea};
g.k.fail=function(a,b){if(!this.ea||(void 0===b?0:b))this.ea=!0,this.Ba=a,this.T=0,this.j!=this||dm(this)};
g.k.getName=function(){return this.j.Oa};
g.k.Dq=function(){return this.j.cQ()};
g.k.cQ=function(){return{}};
g.k.Ro=function(){return this.j.T};
g.k.NN=function(){var a=Yl();a.j=El(!0,this.B,a.isMobileDevice)};
g.k.ON=function(){cia(Yl(),this.B)};
g.k.kQ=function(){return this.C.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.I};
g.k.Cw=function(a){var b=this.j;this.j=a.Ro()>=this.T?a:this;b!==this.j?(this.I=this.j.I,dm(this)):this.I!==this.j.I&&(this.I=this.j.I,dm(this))};
g.k.Mq=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.Z);this.C=a;b&&gia(this)}};
g.k.Rn=function(){return this.Z};
g.k.dispose=function(){this.Aa=!0};
g.k.isDisposed=function(){return this.Aa};g.k=em.prototype;g.k.uG=function(){return!0};
g.k.vy=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Wb(a.D,this);a.Z&&this.Rn()&&fia(a);this.vy();this.ea=!0}};
g.k.isDisposed=function(){return this.ea};
g.k.Dq=function(){return this.u.Dq()};
g.k.Ro=function(){return this.u.Ro()};
g.k.ow=function(){return this.u.ow()};
g.k.Tz=function(){return this.u.Tz()};
g.k.Cw=function(){};
g.k.Mq=function(){this.Zp()};
g.k.Rn=function(){return this.oa};g.k=fm.prototype;g.k.Ro=function(){return this.j.Ro()};
g.k.ow=function(){return this.j.ow()};
g.k.Tz=function(){return this.j.Tz()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.XB(a,b,c),cm(this.j,d));return d};
g.k.PN=function(){return this.wy()};
g.k.wy=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(cm(this.j,this),this.C=a,!0):!1};
g.k.Cw=function(a){0==a.Ro()&&this.C(a.ow(),this)};
g.k.Mq=function(){};
g.k.Rn=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.Dq=function(){return{}};gm.prototype.add=function(a,b,c){++this.B;a=new hia(a,b,c);this.j.push(new hia(a.j,a.yd,a.u+this.B/4096));this.u=!0;return this};mia.prototype.toString=function(){var a="//web.archive.org/web/20221116135136/https://pagead2.googlesyndication.com//pagead/gen_204",b=im(this.j);0<b.length&&(a+="?"+b);return a};km.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 sia=[1,.75,.5,.3,0];lm.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};rm.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Rd):b.Rd;this.oa=Math.max(this.oa,b.Rd);this.ya=-1!=this.ya?Math.min(this.ya,b.gj):b.gj;this.Ba=Math.max(this.Ba,b.gj);this.ib.update(b.gj,c.gj,b.j,a,d);this.u.update(b.Rd,c.Rd,b.j,a,d);c=d||c.ot!=b.ot?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Oa.update(c,a,b)};
rm.prototype.fp=function(){return this.Oa.B>=this.Xa};if(Zl&&Zl.URL){var Q2a=Zl.URL,R2a;if(R2a=!!Q2a){var S2a;a:{if(Q2a){var T2a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var E2=T2a.exec(decodeURIComponent(Q2a));if(E2){S2a=E2[1]&&1<E2[1].length?E2[1].substring(1):"true";break a}}catch(a){}}S2a=""}R2a=0<S2a.length}ll.QL=!R2a};var U2a=new yl(0,0,0,0);var Aia=new yl(0,0,0,0);g.v(wm,g.K);g.k=wm.prototype;
g.k.ra=function(){if(this.Oi.j){if(this.Ls.YJ){var a=this.Oi.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Ls.YJ,Gk());this.Ls.YJ=null}this.Ls.WJ&&(a=this.Oi.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Ls.WJ,Gk()),this.Ls.WJ=null)}this.lB&&this.lB.dispose();this.Re&&this.Re.dispose();delete this.dE;delete this.OJ;delete this.sU;delete this.Oi.Yq;delete this.Oi.j;delete this.Ls;delete this.lB;delete this.Re;delete this.featureSet;g.K.prototype.ra.call(this)};
g.k.Hq=function(){return this.Re?this.Re.j:this.position};
g.k.ZK=function(a){Yk().ZK(a)};
g.k.Rn=function(){return!1};
g.k.nD=function(){return new rm};
g.k.ji=function(){return this.dE};
g.k.gQ=function(a){return Eia(this,a,1E4)};
g.k.La=function(a,b,c,d,e,f,h){this.Tq||(this.gz&&(a=this.wH(a,c,e,h),d=d&&this.Ug.Rd>=(this.ot()?.3:.5),this.zM(f,a,d),this.lastUpdateTime=b,0<a.Rd&&-1===this.ZT&&(this.ZT=b),-1==this.cU&&this.fp()&&(this.cU=b),-2==this.JJ&&(this.JJ=um(this.Hq())?a.Rd:-1),this.Ug=a),this.OJ(this))};
g.k.zM=function(a,b,c){this.ji().update(a,b,this.Ug,c)};
g.k.II=function(){return new rk};
g.k.wH=function(a,b,c,d){c=this.II();c.j=b;b=Vk().u;b=0===Ik(Zl)?-1:b.isVisible()?0:1;c.u=b;c.Rd=this.OH(a);c.ot=this.ot();c.gj=d;return c};
g.k.OH=function(a){return 0===this.opacity&&1===zk(this.featureSet,"opac")?0:a};
g.k.ot=function(){return!1};
g.k.jF=function(){return this.k_||this.n_};
g.k.jE=function(){rl()};
g.k.XJ=function(){rl()};
g.k.qn=function(){return 0};
g.k.fp=function(){return this.dE.fp()};
g.k.mQ=function(){var a=this.gz;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==Yk().u||this.D4;return this.Tq||b&&a?2:this.fp()?4:3};
g.k.cD=function(){return 0};g.ym.prototype.next=function(){return g.F2};
g.F2={done:!0,value:void 0};g.ym.prototype.sj=function(){return this};g.v(Kia,rk);var G2=Mia([void 0,1,2,3,4,8,16]),H2=Mia([void 0,4,8,16]),V2a={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Cm("p0",H2),p1:Cm("p1",H2),p2:Cm("p2",H2),p3:Cm("p3",H2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Bm("mtos1",[0,2,4],!1,H2),mtos2:Bm("mtos2",[0,2,4],!1,H2),mtos3:Bm("mtos3",[0,2,4],!1,H2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Cm("a0",H2),a1:Cm("a1",H2),a2:Cm("a2",H2),a3:Cm("a3",H2),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:Cm("c0",H2),c1:Cm("c1",H2),c2:Cm("c2",H2),c3:Cm("c3",H2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Cm("qmtos",G2),qnc:Cm("qnc",G2),qmv:Cm("qmv",G2),qnv:Cm("qnv",G2),
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:Cm("ss0",H2),ss1:Cm("ss1",H2),ss2:Cm("ss2",H2),ss3:Cm("ss3",H2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},
W2a=Object.assign({},V2a,{avid:Pf("audio"),avas:"avas",vs:"vs"}),X2a={atos:"atos",avt:Bm("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"};Jm.prototype.getValue=function(){return this.u};
Jm.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(Km,rm);
Km.prototype.update=function(a,b,c,d){if(!b.paused){rm.prototype.update.call(this,a,b,c,d);var e=Am(b)&&Am(c),f=.5<=(d?Math.min(b.Rd,c.Rd):c.Rd);Wl(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.Aa+=a,this.Z+=e?a:0);this.j.update(b.Rd,c.Rd,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.ea.update(c.fullscreen,a);this.kb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ka.update(a,b.isVisible());this.Wa.update(a,1<=b.Rd);this.Sa.update(a,
Am(b))}};Ria.prototype.u=function(a){this.B||(this.j(a)?(a=bka(this.Z,this.C,a),this.D|=a,a=0==a):a=!1,this.B=a)};g.v(Mm,Ria);Mm.prototype.j=function(){return!0};
Mm.prototype.I=function(){return!1};
Mm.prototype.getId=function(){var a=this,b=rf(Ym,function(c){return c==a.C});
return sn[b].toString()};
Mm.prototype.toString=function(){var a="";this.I()&&(a+="c");this.B&&(a+="s");0<this.D&&(a+=":"+this.D);return this.getId()+a};g.v(Nm,Mm);Nm.prototype.u=function(a,b){b=void 0===b?null:b;null!=b&&this.J.push(b);Mm.prototype.u.call(this,a)};g.v(Om,em);g.k=Om.prototype;g.k.zH=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Zha(a.getBoundingClientRect())}catch(n){c=new yl(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Wha(a,b),h=f.x,l=f.y;var m=new yl(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=U2a.clone()}this.j=m}};
g.k.ZO=function(){this.C=this.u.C.j};
g.k.WQ=function(a){var b=1==zk(this.featureSet,"od");return zia(a,this.C,this.element,b)};
g.k.aP=function(){this.timestamp=rl()};
g.k.Zp=function(){this.aP();this.zH();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Gg(a.videoWidth,a.videoHeight);a=this.j;var c=zl(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.ZO();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new yl(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 yl(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new yl(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.WQ(c)?c=new yl(0,0,0,0):(d=Yl().C,b=new yl(0,d.height,d.width,0),d=vm(c,this.j),e=vm(c,Yl().j),b=vm(c,b)));c=c.top>=c.bottom||c.left>=c.right?new yl(0,0,0,
0):Bl(c,-this.j.left,-this.j.top);$l()||(e=d=0);this.J=new Dl(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var Y2a=new yl(0,0,0,0);g.v(Pm,Om);g.k=Pm.prototype;g.k.uG=function(){this.B();return!0};
g.k.Mq=function(){Om.prototype.Zp.call(this)};
g.k.aP=function(){};
g.k.zH=function(){};
g.k.Zp=function(){this.B();Om.prototype.Zp.call(this)};
g.k.Cw=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Yl().j=new yl(0,0,0,0),this.j=new yl(0,0,0,0),this.C=new yl(0,0,0,0),this.timestamp=-1));this.I=a};var I2={},aja=(I2.firstquartile=0,I2.midpoint=1,I2.thirdquartile=2,I2.complete=3,I2);g.v(Rm,wm);g.k=Rm.prototype;g.k.Rn=function(){return!0};
g.k.ep=function(){return 2==this.Lh};
g.k.gQ=function(a){return Eia(this,a,Math.max(1E4,this.B/3))};
g.k.La=function(a,b,c,d,e,f,h){var l=this,m=this.J(this)||{};g.Af(m,e);this.B=m.duration||this.B;this.Z=m.isVpaid||this.Z;this.Ma=m.isYouTube||this.Ma;e=Tia(this,b);1===Sia(this)&&(f=e);wm.prototype.La.call(this,a,b,c,d,m,f,h);this.kp&&this.kp.B&&g.rc(this.I,function(n){n.u(l)})};
g.k.zM=function(a,b,c){wm.prototype.zM.call(this,a,b,c);Wm(this).update(a,b,this.Ug,c);this.ib=Am(this.Ug)&&Am(b);-1==this.Ba&&this.Xa&&(this.Ba=this.ji().B.j);this.Og.B=0;a=this.fp();b.isVisible()&&Im(this.Og,"vs");a&&Im(this.Og,"vw");Wl(b.volume)&&Im(this.Og,"am");Am(b)&&Im(this.Og,"a");this.Ew&&Im(this.Og,"f");-1!=b.u&&(Im(this.Og,"bm"),1==b.u&&Im(this.Og,"b"));Am(b)&&b.isVisible()&&Im(this.Og,"avs");this.ib&&a&&Im(this.Og,"avw");0<b.Rd&&Im(this.Og,"pv");Xm(this,this.ji().B.j,!0)&&Im(this.Og,"gdr");
2E3<=pm(this.ji().u,1)&&Im(this.Og,"pmx")};
g.k.nD=function(){return new Km};
g.k.ji=function(){return this.dE};
g.k.II=function(){return new Kia};
g.k.wH=function(a,b,c,d){a=wm.prototype.wH.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Ew;a.paused=this.ep();a.volume=c.volume;Wl(a.volume)||(this.qb++,b=this.Ug,Wl(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.OH=function(a){return Yl(),this.Ew?1:wm.prototype.OH.call(this,a)};
g.k.qn=function(){return 1};
g.k.getDuration=function(){return this.B};
g.k.mQ=function(){return this.Tq?2:Via(this)?5:this.fp()?4:3};
g.k.cD=function(){return this.kb?2E3<=this.ji().D.B?4:3:2};var Z2a=g.Sa();kja.prototype.reset=function(){this.j=[];this.u=[]};
var cn=Tk(kja);g.v(fn,fm);g.k=fn.prototype;g.k.getName=function(){return(this.u?this.u:this.j).getName()};
g.k.Dq=function(){return(this.u?this.u:this.j).Dq()};
g.k.Ro=function(){return(this.u?this.u:this.j).Ro()};
g.k.init=function(a){var b=!1;(0,g.rc)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,cm(this.j,this));return b};
g.k.dispose=function(){(0,g.rc)(this.B,function(a){a.dispose()});
fm.prototype.dispose.call(this)};
g.k.PN=function(){return Xl(this.B,function(a){return a.uy()})};
g.k.wy=function(){return Xl(this.B,function(a){return a.uy()})};
g.k.XB=function(a,b,c){return new Om(a,this.j,b,c)};
g.k.Mq=function(a){this.u=a.u};var tja={threshold:[0,.3,.5,.75,1]};g.v(gn,Om);g.k=gn.prototype;g.k.uG=function(){var a=this;this.Z||(this.Z=rl());if(Mha(298,function(){return uja(a)}))return!0;
this.u.fail("msf");return!1};
g.k.vy=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Zp=function(){var a=hn(this);0<a.length&&jn(this,a);Om.prototype.Zp.call(this)};
g.k.zH=function(){};
g.k.WQ=function(){return!1};
g.k.ZO=function(){};
g.k.Dq=function(){var a={};return Object.assign(this.u.Dq(),(a.niot_obs=this.Z,a.niot_cbk=this.T,a))};
g.k.getName=function(){return"nio"};g.v(kn,fm);kn.prototype.getName=function(){return"nio"};
kn.prototype.wy=function(){return!Yl().u&&null!=this.j.j.B.IntersectionObserver};
kn.prototype.XB=function(a,b,c){return new gn(a,this.j,b,c)};g.v(ln,bm);ln.prototype.kQ=function(){return Yl().j};
ln.prototype.uy=function(){var a=wja();this.T!==a&&(this.j!=this&&a>this.j.T&&(this.j=this,dm(this)),this.T=a);return 2==a};mn.prototype.sample=function(){pn(this,dn(),!1)};
mn.prototype.C=function(){var a=$l(),b=rl();a?(tl||(ul=b,g.rc(cn.j,function(c){var d=c.ji();d.Ma=Lm(d,b,1!=c.Lh)})),tl=!0):(this.J=Bja(this,b),tl=!1,bja=b,g.rc(cn.j,function(c){c.gz&&(c.ji().T=b)}));
pn(this,dn(),!a)};
var nn=Tk(mn);var Eja=null,Nn="",Mn=!1;var Hja=Gja().Xm,rn=Gja().Zm;var Kja={Bra:"visible",Rca:"audible",fYa:"time",jYa:"timetype"},Lja={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)}};
Jja.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.v(vn,Mm);vn.prototype.getId=function(){return this.J};
vn.prototype.I=function(){return!0};
vn.prototype.j=function(a){var b=a.ji(),c=a.getDuration();return Xl(this.T,function(d){if(void 0!=d.j)var e=Nja(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(wn,Oja);wn.prototype.u=function(){return null};
wn.prototype.B=function(){return[]};g.v(xn,Nia);xn.prototype.j=function(a){var b=new Gm;b.j=Hm(a,V2a);b.u=Hm(a,X2a);return b};g.v(yn,Mm);yn.prototype.j=function(a){return Via(a)};g.v(zn,Oja);g.v(An,Mm);An.prototype.j=function(a){return a.ji().fp()};g.v(Bn,Nm);Bn.prototype.j=function(a){var b=g.Sb(this.J,zk(Yk().featureSet,"ovms"));return!a.Tq&&(0!=a.Lh||b)};g.v(Cn,zn);Cn.prototype.u=function(){return new Bn(this.j)};
Cn.prototype.B=function(){return[new An("viewable_impression",this.j),new yn(this.j)]};g.v(Dn,Pm);Dn.prototype.B=function(){var a=g.Ga("ima.admob.getViewability"),b=zk(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
Dn.prototype.getName=function(){return"gsv"};g.v(En,fm);En.prototype.getName=function(){return"gsv"};
En.prototype.wy=function(){var a=Yl();Yk();return a.u&&!1};
En.prototype.XB=function(a,b,c){return new Dn(this.j,b,c)};g.v(Fn,Pm);Fn.prototype.B=function(){var a=this,b=g.Ga("ima.bridge.getNativeViewability"),c=zk(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=$ha(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?Y2a.clone():$ha(e);a.timestamp=d.opt_nativeTime||-1;Yl().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Fn.prototype.getName=function(){return"nis"};g.v(Gn,fm);Gn.prototype.getName=function(){return"nis"};
Gn.prototype.wy=function(){var a=Yl();Yk();return a.u&&!1};
Gn.prototype.XB=function(a,b,c){return new Fn(this.j,b,c)};g.v(Hn,bm);g.k=Hn.prototype;g.k.uy=function(){return null!=this.u.Tl};
g.k.cQ=function(){var a={};this.Ka&&(a.mraid=this.Ka);this.ya&&(a.mlc=1);a.mtop=this.u.d4;this.J&&(a.mse=this.J);this.Ma&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.Ir=function(a){var b=g.ya.apply(1,arguments);try{return this.u.Tl[a].apply(this.u.Tl,b)}catch(c){ql(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.Tz();this.isInitialized=!0;if(2===this.u.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.fail("w"),!1;Yl().T=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Sja(this):tm(this.B,"load",function(){Vk().setTimeout(pl(292,function(){return Sja(a)}),100)},292);
return!0};
g.k.NN=function(){var a=Yl(),b=Xja(this,"getMaxSize");a.j=new yl(0,b.width,b.height,0)};
g.k.ON=function(){Yl().C=Xja(this,"getScreenSize")};
g.k.dispose=function(){Uja(this);bm.prototype.dispose.call(this)};g.k=Jn.prototype;g.k.bz=function(a){xm(a,!1);oja(a)};
g.k.uD=function(){};
g.k.WA=function(a,b,c,d){var e=this;b=c?b:-1;c=this.tP();a=new Rm(Fk,a,b,7,this.VH(),c.u(),c.B());a.uh=d;Tga(a.featureSet);yk(a.featureSet,"queryid",a.uh);a.ZK("");Hia(a,function(){return e.tQ.apply(e,g.u(g.ya.apply(0,arguments)))},function(){return e.OZ.apply(e,g.u(g.ya.apply(0,arguments)))});
(d=Tk(en).j)&&Dia(a,d);a.Oi.Yq&&Tk(xja);return a};
g.k.Cw=function(a){switch(a.Ro()){case 0:if(a=Tk(en).j)a=a.j,g.Wb(a.D,this),a.Z&&this.Rn()&&fia(a);Ln();break;case 2:on()}};
g.k.Mq=function(){};
g.k.Rn=function(){return!1};
g.k.OZ=function(a,b){a.Tq=!0;switch(a.qn()){case 1:cka(a,b);break;case 2:this.mL(a)}this.DL()};
g.k.XZ=function(a){var b=a.J(a);b&&(b=b.volume,a.kb=Wl(b)&&0<b);Yia(a,0);return Zm(a,"start",$l())};
g.k.Fx=function(a,b,c){pn(nn,[a],!$l());return this.un(a,b,c)};
g.k.un=function(a,b,c){return Zm(a,c,$l())};
g.k.SZ=function(a){return Rn(a,"firstquartile",1)};
g.k.UZ=function(a){a.Xa=!0;return Rn(a,"midpoint",2)};
g.k.YZ=function(a){return Rn(a,"thirdquartile",3)};
g.k.PZ=function(a){var b=Rn(a,"complete",4);Sm(a);return b};
g.k.QZ=function(a){a.Lh=3;return Zm(a,"error",$l())};
g.k.lT=function(a,b,c){b=$l();if(a.ep()&&!b){var d=rl();a.ji().T=d}pn(nn,[a],!b);a.ep()&&(a.Lh=1);return Zm(a,c,b)};
g.k.WZ=function(a,b){b=this.Fx(a,b||{},"skip");Sm(a);return b};
g.k.TZ=function(a,b){xm(a,!0);return this.Fx(a,b||{},"fullscreen")};
g.k.RZ=function(a,b){xm(a,!1);return this.Fx(a,b||{},"exitfullscreen")};
g.k.RK=function(a,b,c){b=a.ji();var d=rl();b.Ma=Lm(b,d,1!=a.Lh);pn(nn,[a],!$l());1==a.Lh&&(a.Lh=2);return Zm(a,c,$l())};
g.k.VZ=function(a){pn(nn,[a],!$l());return a.u()};
g.k.aJ=function(a){pn(nn,[a],!$l());this.fT(a);Sm(a);return a.u()};
g.k.tQ=function(){};
g.k.mL=function(){};
g.k.fT=function(){};
g.k.QN=function(){};
g.k.DL=function(){};
g.k.WH=function(){};
g.k.tP=function(){this.j||(this.j=this.WH());return null==this.j?new wn:new Cn(this.j)};
g.k.VH=function(){return new xn};g.v(Sn,Mm);Sn.prototype.j=function(a){return 4==a.cD()};g.v(Tn,Nm);Tn.prototype.j=function(a){a=a.cD();return 3==a||4==a};g.v(Un,zn);Un.prototype.u=function(){return new Tn(this.j)};
Un.prototype.B=function(){return[new Sn(this.j)]};g.v(Vn,Nia);Vn.prototype.j=function(a){a&&(28===a.e&&(a=Object.assign({},a,{avas:3})),4===a.vs||5===a.vs)&&(a=Object.assign({},a,{vs:3}));var b=new Gm;b.j=Hm(a,W2a);b.u=Hm(a,X2a);return b};hka.prototype.u=function(){return g.Ga(this.j)};g.v(Wn,Jn);g.k=Wn.prototype;g.k.uD=function(a,b){var c=this,d=Tk(en);if(null!=d.j)switch(d.j.getName()){case "nis":var e=lka(this,a,b);break;case "gsv":e=kka(this,a,b);break;case "exc":e=mka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=eka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.qn()&&(e.J==g.Qf&&(e.J=function(f){return c.QN(f)}),jka(this,e,b));
return e};
g.k.QN=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){Yk();a.Wa&&(Yk(),"h"!=Pn(this)&&Pn(this));var b=g.Ga("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.uh)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ga("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.uh)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ga("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.uh)}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.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.T=0;for(var d in P2a)null==b[d]&&(a.T|=P2a[d]);gka(b,"currentTime");gka(b,"duration");Wl(c.volume)&&Wl()&&(c.volume*=NaN);return c};
g.k.WH=function(){Yk();"h"!=Pn(this)&&Pn(this);var a=nka(this);return null!=a?new hka(a):null};
g.k.mL=function(a){!a.j&&a.Tq&&Qn(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.fT=function(a){a.FT&&(a.fp()?Qn(this,a,"overlay_viewable_end_of_session_impression"):Qn(this,a,"overlay_unviewable_impression"),a.FT=!1)};
g.k.tQ=function(){};
g.k.DL=function(){};
g.k.WA=function(a,b,c,d){if(xha()){var e=zk(Yk().featureSet,"mm"),f={};(e=(f[$k.VU]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[$k.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Yn(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&ql(1044,Error())}a=Jn.prototype.WA.call(this,a,b,c,d);this.D&&(b=this.I,null==a.D&&(a.D=new Iia),b.j[a.uh]=a.D,a.D.D=Z2a);return a};
g.k.bz=function(a){a&&1==a.qn()&&this.D&&delete this.I.j[a.uh];return Jn.prototype.bz.call(this,a)};
g.k.tP=function(){this.j||(this.j=this.WH());return null==this.j?new wn:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Un(this.j):new Cn(this.j)};
g.k.VH=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Vn:new xn};
var Xn=new Gm;Xn.j="stopped";Xn.u="stopped";var $2a=ol(193,Zn,void 0,dka);g.Ea("Goog_AdSense_Lidar_sendVastEvent",$2a);var a3a=pl(194,function(a,b){b=void 0===b?{}:b;a=qka(Tk(Wn),a,b);return rka(a)});
g.Ea("Goog_AdSense_Lidar_getViewability",a3a);var b3a=ol(195,function(){return sha()});
g.Ea("Goog_AdSense_Lidar_getUrlSignalsArray",b3a);var c3a=pl(196,function(){return JSON.stringify(sha())});
g.Ea("Goog_AdSense_Lidar_getUrlSignalsList",c3a);var Ama=(new Date).getTime();var d3a="client_dev_domain client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(g.u(d3a),["client_dev_set_cookie"]);var tka="://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(" "),uka=/\bocr\b/;var wka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.v(bo,g.Mf);bo.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Rl.Bl(this.I);delete bo.instance};
bo.prototype.lh=function(){return this.j};eo.prototype.set=function(a,b){b=void 0===b?!0:b;Number.isInteger(a);0<=a&&52>a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)};
eo.prototype.get=function(a){return!!this.data_[a]};g.Ta(g.fo,g.K);g.k=g.fo.prototype;g.k.start=function(){this.stop();this.C=!1;var a=Aka(this),b=Bka(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.Ff(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(Vca(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=Aka(this),b=Bka(this);a&&!b&&this.u.mozRequestAnimationFrame?Jf(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.zW=function(){this.C&&this.j&&Jf(this.j);this.j=null;this.I.call(this.D,g.Sa())};
g.k.ra=function(){this.stop();g.fo.hf.ra.call(this)};g.Ta(g.ho,g.K);g.k=g.ho.prototype;g.k.yy=0;g.k.ra=function(){g.ho.hf.ra.call(this);this.stop();delete this.j;delete this.u};
g.k.start=function(a){this.stop();this.yy=g.Eh(this.B,void 0!==a?a:this.Kh)};
g.k.stop=function(){this.isActive()&&g.C.clearTimeout(this.yy);this.yy=0};
g.k.isActive=function(){return 0!=this.yy};
g.k.RN=function(){this.yy=0;this.j&&this.j.call(this.u)};lo.prototype[Symbol.iterator]=function(){return this};
lo.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};uo.prototype.sj=function(){return new vo(this.u())};
uo.prototype[Symbol.iterator]=function(){return new wo(this.u())};
uo.prototype.j=function(){return new wo(this.u())};
g.v(vo,g.ym);vo.prototype.next=function(){return this.u.next()};
vo.prototype[Symbol.iterator]=function(){return new wo(this.u)};
vo.prototype.j=function(){return new wo(this.u)};
g.v(wo,uo);wo.prototype.next=function(){return this.B.next()};g.k=g.Ao.prototype;g.k.Ck=function(){Co(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.k.No=function(){Co(this);return this.j.concat()};
g.k.has=function(a){return Bo(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||Fka;Co(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Tr=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return Bo(this.u,a)?(delete this.u[a],--this.size,this.Tr++,this.j.length>2*this.size&&Co(this),!0):!1};
g.k.get=function(a,b){return Bo(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){Bo(this.u,a)||(this.size+=1,this.j.push(a),this.Tr++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.No(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.Ao(this)};
g.k.transpose=function(){for(var a=new g.Ao,b=0;b<this.j.length;b++){var c=this.j[b];a.set(this.u[c],c)}return a};
g.k.keys=function(){return zo(this.sj(!0)).j()};
g.k.values=function(){return zo(this.sj(!1)).j()};
g.k.entries=function(){var a=this;return Cka(this.keys(),function(b){return[b,a.get(b)]})};
g.k.sj=function(a){Co(this);var b=0,c=this.Tr,d=this,e=new g.ym;e.next=function(){if(c!=d.Tr)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.F2;var f=d.j[b++];return g.zm(a?f:d.u[f])};
return e};g.Ta(g.Do,g.Mf);g.k=g.Do.prototype;g.k.Rc=function(){return 1==this.j};
g.k.oE=function(){this.yk("begin")};
g.k.AA=function(){this.yk("end")};
g.k.onFinish=function(){this.yk("finish")};
g.k.yk=function(a){this.dispatchEvent(a)};var e3a=Rf(function(){if(g.Yg)return!0;var a=g.bh("DIV"),b=g.df?"-webkit":Jl?"-moz":g.Yg?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!y2a.test("div"))throw Error("");if("DIV"in A2a)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!y2a.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof ag)e=bg(e);else if("style"==f.toLowerCase()){if(!g.Ma(e))throw Error("");e instanceof
lg||(e=mda(e));e=mg(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in z2a)if(e instanceof eg)e=bda(e).toString();else if(e instanceof gg)e=g.hg(e);else if("string"===typeof e)e=g.jg(e).Bk();else throw Error("");}e.Dn&&(e=e.Bk());f=f+'="'+fb(String(e))+'"';d+=" "+f}}var h="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===x2a.div?h+=">":(b=xda(b),h+=">"+g.ug(b).toString()+"</div>");h=vg(h);g.Ada(a,h);return""!=g.Kl(a.firstChild,"transition")});g.Ta(Eo,g.Do);g.k=Eo.prototype;g.k.play=function(){if(this.Rc())return!1;this.oE();this.yk("play");this.startTime=g.Sa();this.j=1;if(e3a())return g.Il(this.u,this.J),this.C=g.Eh(this.q3,void 0,this),!0;this.vG(!1);return!1};
g.k.q3=function(){g.Tl(this.u);Gka(this.u,this.T);g.Il(this.u,this.D);this.C=g.Eh((0,g.Pa)(this.vG,this,!1),1E3*this.I)};
g.k.stop=function(){this.Rc()&&this.vG(!0)};
g.k.vG=function(a){g.Il(this.u,"transition","");g.C.clearTimeout(this.C);g.Il(this.u,this.D);this.endTime=g.Sa();this.j=0;if(a)this.yk("stop");else this.onFinish();this.AA()};
g.k.ra=function(){this.stop();Eo.hf.ra.call(this)};
g.k.pause=function(){};var Ika={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};Fo("Element","attributes")||Fo("Node","attributes");Fo("Element","innerHTML")||Fo("HTMLElement","innerHTML");Fo("Node","nodeName");Fo("Node","nodeType");Fo("Node","parentNode");Fo("Node","childNodes");Fo("HTMLElement","style")||Fo("Element","style");Fo("HTMLStyleElement","sheet");var Oka=Kka("getPropertyValue"),Pka=Kka("setProperty");Fo("Element","namespaceURI")||Fo("Node","namespaceURI");var Nka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Tka,S1a,Ska,Rka,Uka;Tka=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]");S1a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.f3a=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.Go=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]");Ska=/^http:\/\/.*/;g.g3a=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Rka=/\s+/;Uka=/[\d\u06f0-\u06f9]/;Io.prototype.clone=function(){return new Io(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.T)};
Io.prototype.equals=function(a){return this.j==a.j&&this.J==a.J&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.T==a.T};Ko.prototype.clone=function(){return new Ko(this.start,this.end)};var h3a=new WeakMap;(function(){if(EVa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.sb()))?a[1]:"0"}return aV?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.sb()))?a[0].replace(/_/g,"."):"10"):g.rv?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.sb()))?a[1]:""):b2a||c2a||d2a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.sb()))?a[1].replace(/_/g,"."):""):""})();var Xka=function(){if(g.XF)return Lo(/Firefox\/([0-9.]+)/);if(g.Yg||g.Qw||g.OG)return wc;if(g.ZE){if(Lb()||Mb()){var a=Lo(/CriOS\/([0-9.]+)/);if(a)return a}return Lo(/Chrome\/([0-9.]+)/)}if(g.qw&&!Lb())return Lo(/Version\/([0-9.]+)/);if(XG||zJ){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.sb()))return a[1]+"."+a[2]}else if(g.PG)return(a=Lo(/Android\s+([0-9.]+)/))?a:Lo(/Version\/([0-9.]+)/);return""}();g.Ta(g.No,g.K);g.k=g.No.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.I=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Zg(a)}return!1};
g.k.Zg=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.Wb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.ma=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.J)for(e=0;e<c.length;e++){var h=c[e];Yka(this.j[h+1],this.j[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.Zg(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.Zg,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.k.ra=function(){g.No.hf.ra.call(this);this.clear();this.B.length=0};g.Oo.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Yh(b))};
g.Oo.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.Oo.prototype.remove=function(a){this.j.remove(a)};g.Ta(Po,g.Oo);Po.prototype.set=function(a,b){Po.hf.set.call(this,a,$ka(b))};
Po.prototype.u=function(a){a=Po.hf.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Po.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.Ta(Qo,Po);Qo.prototype.set=function(a,b,c){if(b=$ka(b)){if(c){if(c<g.Sa()){Qo.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Sa()}Qo.hf.set.call(this,a,b)};
Qo.prototype.u=function(a,b){var c=Qo.hf.u.call(this,a);if(c)if(!b&&g.ala(c))Qo.prototype.remove.call(this,a);else return c};g.Ta(g.Ro,Qo);g.Ta(So,bla);So.prototype[Symbol.iterator]=function(){return zo(this.sj(!0)).j()};
So.prototype.clear=function(){var a=Array.from(this);a=g.t(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Ta(To,So);g.k=To.prototype;g.k.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeItem(a)};
g.k.sj=function(a){var b=0,c=this.j,d=new g.ym;d.next=function(){if(b>=c.length)return g.F2;var e=c.key(b++);if(a)return g.zm(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.zm(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.Ta(Uo,To);g.Ta(dla,To);g.Ta(Wo,So);var ela={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Vo=null;g.k=Wo.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(Xo(a),b);Yo(this)};
g.k.get=function(a){a=this.j.getAttribute(Xo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(Xo(a));Yo(this)};
g.k.sj=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.ym;d.next=function(){if(b>=c.length)return g.F2;var e=c[b++];if(a)return g.zm(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.zm(e)};
return d};
g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Yo(this)};g.Ta(Zo,So);Zo.prototype.set=function(a,b){this.u.set(this.j+a,b)};
Zo.prototype.get=function(a){return this.u.get(this.j+a)};
Zo.prototype.remove=function(a){this.u.remove(this.j+a)};
Zo.prototype.sj=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.ym;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.zm(a?e.slice(c.j.length):c.u.get(e))};
return d};ap.prototype.getKey=function(){return this.j};
ap.prototype.getValue=function(){return this.yd};
ap.prototype.clone=function(){return new ap(this.j,this.yd)};g.k=bp.prototype;g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Ck=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.No=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new bp(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.v(gla,bp);Ia(cp);cp.prototype.j=0;var ep="@@redux/INIT"+dp(),lla="@@redux/REPLACE"+dp();var mla="function"===typeof Symbol&&Symbol.observable||"@@observable";g.v(fp,g.I);fp.prototype.getType=function(){return zd(this,11)};
g.v(gp,g.I);gp.prototype.getKey=function(){return wd(this,3)};
var nla=[2,13,14],wOa=[fp,2,p2a,4,z2,7,A2,9,A2,10,A2,11,B2,12,A2,13,p2a,14,g.x2,[gp,1,z2,2,z2,3,z2,4,z2,5,A2],15,g.w2,16,g.w2,17,A2,1,B2,3,g.w2,5,g.w2,6,g.w2,8,z2];var uHa=new g.hp("adInfoDialogEndpoint");var fGa=new g.hp("adPingingEndpoint");var QL=new g.hp("adActionInterstitialRenderer");var i3a=new g.hp("adDurationRemainingRenderer");var W_=new g.hp("adHoverTextButtonRenderer");var sHa=new g.hp("adInfoDialogRenderer");var OL=new g.hp("adMessageRenderer");var X_=new g.hp("adPreviewRenderer");var j3a=new g.hp("flyoutCtaRenderer");var k3a=new g.hp("instreamAdPlayerUnderlayRenderer");var s1a=new g.hp("instreamSurveyAdBackgroundImageRenderer");var mXa=new g.hp("instreamSurveyAdPlayerOverlayRenderer");var g0=new g.hp("instreamSurveyAdRenderer"),YJ=new g.hp("instreamSurveyAdSingleSelectQuestionRenderer"),ZJ=new g.hp("instreamSurveyAdMultiSelectQuestionRenderer"),J2=new g.hp("instreamSurveyAdAnswerRenderer"),l3a=new g.hp("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var PL=new g.hp("instreamVideoAdRenderer");var m3a=new g.hp("textOverlayAdContentRenderer"),n3a=new g.hp("enhancedTextOverlayAdContentRenderer"),o3a=new g.hp("imageOverlayAdContentRenderer");var RL=new g.hp("adIntroRenderer");var vXa=new g.hp("slidingTextPlayerOverlayRenderer");var wYa=new g.hp("surveyTextInterstitialRenderer");var p3a=new g.hp("simpleAdBadgeRenderer");var V_=new g.hp("skipAdRenderer"),q3a=new g.hp("skipButtonRenderer");var r3a=new g.hp("timedPieCountdownRenderer");var Zqa={x$:0,v$:1,w$:2};var $qa={B$:0,A$:1,z$:2,y$:3};var dra={Cca:0,Bca:1,Aca:2};var mz={Mea:0,Nea:1,Kea:2,Jea:3,Hea:4,Lea:5,Iea:6,Gea:7};var cra={xfa:0,wfa:1,sfa:2,ofa:3,vfa:4,yfa:5,rfa:6,nfa:7,qfa:8,ufa:9,tfa:10,zfa:11,pfa:12,Afa:13};var Gra={Pfa:0,Dfa:1,Gfa:2,Qfa:3,Efa:4,Ffa:5,Lfa:6,Nfa:7,Ifa:8,Cfa:9,Kfa:10,Ofa:11,Jfa:12,Hfa:13,Mfa:14};var bra={cna:0,ana:1,bna:2};var Fra={lQa:0,kQa:1,jQa:2,iQa:3};var Era={sQa:0,mQa:1,nQa:5,oQa:6,qQa:2,rQa:3,pQa:4};var Dra={vQa:0,wQa:1,uQa:2,tQa:3};var Cra={AQa:0,yQa:1,zQa:2};var Bra={X2a:0,M2a:1,T2a:2,N2a:3,U2a:4,Q2a:5,V2a:6,R2a:7,P2a:8,O2a:9,S2a:10,W2a:11,L2a:12};g.v(ip,g.I);ip.prototype.getType=function(){return g.od(this,1)};g.v(jp,g.I);g.v(kp,g.I);g.v(lp,g.I);g.v(mp,g.I);mp.prototype.j=function(a,b){return g.Cd(this,2,a,b)};
var pla=[2];g.v(np,g.I);np.prototype.j=function(a,b){return g.Cd(this,3,a,b)};
var qla=[3];g.v(op,g.I);g.v(pp,g.I);g.v(qp,g.I);g.v(rp,g.I);g.v(sp,g.I);g.v(tp,g.I);g.v(up,g.I);var kz=[2,3,4,5,6,7,8,9,10,11];var ira={Taa:0,daa:2,Vaa:3,eaa:4,caa:5,Jaa:6,Laa:58,saa:17,W$:18,Naa:15,Qaa:7,waa:8,K$:10,L$:26,Y$:45,aaa:11,raa:14,Xaa:16,G$:19,M$:20,H$:21,Zaa:22,N$:23,Yaa:24,baa:25,C$:27,D$:53,vaa:28,X$:30,Aaa:31,U$:32,O$:33,yaa:34,taa:35,oaa:36,I$:37,Haa:38,Gaa:39,iaa:41,paa:42,maa:43,jaa:44,J$:40,Caa:46,Daa:47,P$:48,Baa:49,Faa:50,naa:51,qaa:52,Waa:54,Oaa:55,Paa:56,Q$:57,Saa:59,Iaa:60,V$:67,Raa:61,Eaa:63,E$:64,Z$:65,Maa:66,R$:68,F$:69,xaa:70,haa:71,faa:72,T$:73,S$:75,Uaa:76,zaa:77,uaa:78,Kaa:79};var hra={pba:0,oba:1,nba:2};var jra={FBa:0,yBa:1,BBa:2,bBa:3,DBa:4,OAa:5,uBa:6,eBa:7,EBa:8,XAa:9,rBa:10,YAa:11,wBa:12,zAa:13,iBa:14,gBa:15,hBa:16,vBa:17,kBa:18,tBa:19,sBa:20,oBa:21,TAa:22,AAa:23,fBa:24,mBa:25,VAa:26,UAa:27,lBa:28,BAa:29,pBa:30,aBa:31,CBa:32,NAa:33,nBa:34,MAa:35,PAa:36,QAa:37,WAa:38,SAa:39,RAa:40,qBa:41,jBa:42,xBa:43,cBa:44,zBa:45,ABa:46,dBa:47,ZAa:70,JAa:48,GAa:49,LAa:50,KAa:51,IAa:52,FAa:53,CAa:54,HAa:55,EAa:56,DAa:57,xAa:58,wAa:59,vAa:60,pAa:61,uAa:62,qAa:63,rAa:64,oAa:65,sAa:66,yAa:67,tAa:68,nAa:69};var Yqa={Bea:0,yea:1,xea:18,uea:2,nea:3,tea:9,oea:10,rea:14,pea:4,mea:5,qea:6,Cea:11,sea:12,lea:13,jea:15,wea:16,zea:17,Aea:19,Dea:20,vea:7};var kra={lba:0,mba:1,eba:2,fba:3,hba:4,cba:5,dba:6,jba:7,kba:8};var lz={Kba:0,Aba:1,Jba:3,Hba:4,Gba:5,Lba:6,yba:7,rba:8,Cba:9,qba:12,Bba:22,Eba:23,Iba:24,Fba:13,Mba:14,Dba:15,tba:16,wba:17,uba:18,vba:19,xba:20,zba:21};g.v(vp,g.I);g.v(wp,g.I);wp.prototype.j=function(a,b){return Qd(this,1,vp,a,b)};
var rla=[1];g.v(xp,g.I);xp.prototype.j=function(a,b){return g.Cd(this,2,a,b)};
var sla=[2];g.v(yp,g.I);var lra=[1,2];var s3a=new g.hp("confirmDialogEndpoint");var Cpa=new g.hp("rawColdConfigGroup");var Bpa=new g.hp("rawHotConfigGroup");var Ira={fOa:0,eOa:1,aOa:2,YNa:3,bOa:4,ZNa:5,dOa:6,cOa:7};g.fN=new g.hp("commandExecutorCommand");g.v(zp,g.I);var pz=[1,2,3];g.v(Ap,g.I);g.v(Bp,g.I);g.v(Cp,g.I);g.v(Dp,g.I);var oz=[1,2,3];g.v(Ep,g.I);Ep.prototype.j=function(a,b){return Qd(this,1,Fp,a,b)};
g.v(Fp,g.I);var tla=[1];g.v(Gp,g.I);Gp.prototype.j=function(a,b){return g.Cd(this,1,a,b)};
var ula=[1];g.v(Hp,g.I);g.v(Ip,g.I);g.v(Jp,g.I);g.v(Kp,g.I);g.v(Lp,g.I);g.v(Mp,g.I);g.v(Np,g.I);g.v(Op,g.I);g.v(Pp,g.I);g.v(Qp,g.I);g.v(Rp,g.I);g.v(Sp,g.I);g.v(Tp,g.I);Tp.prototype.j=function(a,b){return Qd(this,1,Up,a,b)};
g.v(Up,g.I);g.v(Vp,g.I);g.v(Wp,g.I);g.v(Xp,g.I);Xp.prototype.j=function(a,b){return g.Cd(this,1,a,b)};
g.v(Yp,g.I);g.v(Zp,g.I);Zp.prototype.j=function(a,b){return Qd(this,2,fq,a,b)};
g.v($p,g.I);g.v(aq,g.I);g.v(bq,g.I);bq.prototype.getId=function(){return g.od(this,1)};
g.v(cq,g.I);cq.prototype.getType=function(){return g.od(this,1)};
g.v(dq,g.I);dq.prototype.getType=function(){return g.od(this,1)};
g.v(eq,g.I);g.v(fq,g.I);g.v(gq,g.I);g.v(hq,g.I);g.v(iq,g.I);g.v(jq,g.I);var vla=[1],rz=[1,2,3],wla=[1],xla=[2],vra=[3,4],tz=[1,2,3],sz=[1,2,3,4],xra=[1,2],qz=[3,4,5];g.v(kq,g.I);g.v(lq,g.I);lq.prototype.getKey=function(){return g.od(this,1)};
lq.prototype.getValue=function(){return Rd(this,2===Gd(this,t3a)?2:-1)};
lq.prototype.setValue=function(a){return g.Hd(this,2,t3a,a)};
var t3a=[2,3,4,5,6];g.v(mq,g.I);var oBa={C1a:0,J3a:1,V3a:32,a4a:61,f4a:67,c4a:86,U3a:42,W3a:60,N3a:62,Z3a:73,Y3a:76,d4a:88,e4a:90,g4a:41,h4a:69,i4a:70,j4a:71,iHa:2,DHa:27,ANDROID:3,Sba:54,Tba:14,aca:91,Uba:55,Vba:24,Wba:20,Xba:18,Zba:21,cca:30,fca:29,gca:28,hca:34,bca:36,Yba:38,IOS:5,zwa:15,Jwa:92,Awa:40,Cwa:25,Dwa:17,Ewa:19,Fwa:64,Gwa:66,Hwa:26,Lwa:22,Wwa:33,Xwa:68,Ywa:35,Iwa:53,Kwa:37,Bwa:39,L_a:7,E0a:57,T0a:43,f1a:59,U0a:93,eca:74,m1a:75,n1a:85,o1a:65,q1a:80,s1a:8,J_a:10,v1a:58,u1a:63,p1a:72,dca:23,y4a:11,z4a:13,dga:12,K_a:16,
T3a:56,b4a:31,NGa:77,Rta:84,X3a:87,Tta:89,Sta:94,BFa:95};var u3a={XX:0,CLASSIC:1,xX:2,tV:3,fV:4,EX:5,pV:6,AO:7};g.v(nq,g.I);g.v(oq,g.I);g.v(pq,g.I);g.v(qq,g.I);g.v(zla,g.I);var yla=[2];g.v(g.rq,g.I);g.rq.prototype.zq=aa(1);g.rq.prototype.getPlayerType=function(){return g.od(this,36)};
g.rq.prototype.setHomeGroupInfo=function(a){return H(this,zla,81,a)};
g.rq.prototype.clearLocationPlayabilityToken=function(){return g.F(this,89,void 0,!1)};
var Ala=[9,66,24,32,86,100,101];g.v(sq,g.I);var Bla=[15,26,28];g.v(tq,g.I);var Cla=[5];g.v(uq,g.I);uq.prototype.setToken=function(a){return g.F(this,2,a)};g.v(vq,g.I);vq.prototype.setSafetyMode=function(a){return g.F(this,5,a)};
var Dla=[12];g.v(xq,g.I);xq.prototype.C=function(a){return H(this,g.rq,1,a)};
var Ela=[12];var d0=new g.hp("thumbnailLandscapePortraitRenderer");var Ora={XVa:0,WVa:1,xVa:2,yVa:3,zVa:4,AVa:5,BVa:6,CVa:7,DVa:8,EVa:9,FVa:10,GVa:11,HVa:12,IVa:13,JVa:14,KVa:15,LVa:16,MVa:17,NVa:18,OVa:19,PVa:20,SVa:21,QVa:22,RVa:23,TVa:24,UVa:25,VVa:26};var Nra={hWa:0,YVa:1,ZVa:2,aWa:3,bWa:4,cWa:5,dWa:6,eWa:7,fWa:8,gWa:9,iWa:10};var yra={ffa:0,Tea:1,gfa:2,dfa:3,Qea:4,Rea:5,cfa:6,Sea:7,afa:8,bfa:13,Vea:9,Xea:10,Zea:11,ifa:12,Uea:14,Yea:15,Wea:16,efa:17};var zra={mfa:0,lfa:1,kfa:2,jfa:3};var Jra={zYa:0,xYa:1,yYa:2};var qra={Jca:0,Hca:4,Gca:2,Eca:5,Fca:8,Ica:9,Dca:3,Kca:6,Lca:7};var rra={Rga:0,Oga:1,Pga:2,Sga:3,Tga:4,Qga:5};var pra={wha:0,uha:8,sha:2,qha:5,rha:9,tha:3,pha:4,xha:6,yha:7,vha:10};var Hra={c3a:0,b3a:1,d3a:2};var v3a={f3a:0,e3a:1};var wqa={h5:0,f5:1,e5:2,g5:3};g.w3a=new g.hp("changeEngagementPanelVisibilityAction");var IHa=new g.hp("continuationCommand");g.x3a=new g.hp("openPopupAction");g.K2=new g.hp("webCommandMetadata");var mDa=new g.hp("metadataBadgeRenderer");var HHa=new g.hp("signalServiceEndpoint");var asa={V9:0,W9:1,R9:2,U9:3,S9:4,T9:5};var bsa={b$:0,Z9:1,X9:2,a$:3,c$:4,Y9:5};g.v(yq,g.I);yq.prototype.getType=function(){return zd(this,1)};var zz={uxa:0,vxa:1,txa:2,pxa:3,rxa:4,sxa:5,wxa:6,qxa:7};var y3a={CGa:0,uGa:1,vGa:2,BGa:3,wGa:4,AGa:6,zGa:7,xGa:8,yGa:9};var z3a={rIa:0,oIa:1,qIa:2,pIa:3,nIa:4};var A3a={JMa:0,uMa:1,KMa:2,IMa:3,HMa:4,GMa:5,FMa:6,xMa:7,vMa:8,BMa:9,OMa:10,wMa:11,DMa:12,MMa:13,NMa:14,EMa:15,AMa:16,zMa:17,CMa:18,yMa:19,LMa:20};var nra={aNa:0,ZMa:86};var Az={ZOa:0,YOa:1,ROa:2,OOa:3,QOa:4,aPa:5,XOa:6,MOa:7,bPa:8,KOa:9,VOa:10,cPa:11,WOa:12,NOa:13,JOa:14,POa:15,TOa:16,SOa:17,UOa:18,LOa:19};var ZIa=new g.hp("innertubeCommand");var Xma={wna:"EMBEDDED_PLAYER_MODE_UNKNOWN",tna:"EMBEDDED_PLAYER_MODE_DEFAULT",vna:"EMBEDDED_PLAYER_MODE_PFP",una:"EMBEDDED_PLAYER_MODE_PFL"};var KDa=new g.hp("channelThumbnailEndpoint");var JDa=new g.hp("embeddedPlayerErrorMessageRenderer");var FDa=new g.hp("embeddedPlayerOverlayVideoDetailsRenderer"),LDa=new g.hp("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),MDa=new g.hp("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var iDa=new g.hp("embedsInfoPanelRenderer");var Ara={ECa:0,sCa:1,BCa:2,DCa:3,tCa:4,wCa:5,yCa:6,uCa:7,vCa:8,ACa:9,CCa:10,xCa:11,zCa:12};var NKa=new g.hp("feedbackEndpoint");var B3a=new g.hp("callToActionButtonViewModel");var C3a={Kxa:0,Lxa:1,Jxa:2,Exa:3,Dxa:4,Fxa:5,Hxa:6,Gxa:7,Ixa:8};var D3a={Qxa:0,Nxa:1,Pxa:2,Oxa:3};var E3a={cva:0,Jua:1,dva:8,Uua:16,Vua:17,Yua:2,Wua:3,Xua:4,Mua:5,Kua:6,Lua:7,bva:9,Zua:10,ava:11,Tua:12,Qua:13,Sua:14,Rua:15,Pua:18,Nua:19,Oua:20,Iua:21};var F3a={YLa:0,ZLa:1,WLa:2};var G3a={lMa:0,hMa:1,jMa:2,gMa:3,iMa:4,kMa:5};var H3a={Lda:0,Jda:1,Kda:2};var I3a={Oda:0,Mda:1,Pda:2,Nda:3};var ooa={S3a:"WEB_DISPLAY_MODE_UNKNOWN",O3a:"WEB_DISPLAY_MODE_BROWSER",Q3a:"WEB_DISPLAY_MODE_MINIMAL_UI",R3a:"WEB_DISPLAY_MODE_STANDALONE",P3a:"WEB_DISPLAY_MODE_FULLSCREEN"};var xsa={O5:0,r5:1,A5:2,E5:3,K5:4,L5:5,P5:6,F5:7,q5:8,x5:9,w5:10,i5:11,z5:12,o5:14,t5:15,D5:16,C5:17,y5:18,s5:29,u5:19,l5:20,p5:21,N5:22,j5:23,Q5:24,v5:25,m5:26,H5:27,n5:28,I5:30,J5:31,B5:32,M5:33,k5:34,G5:35,R5:36};var J3a={Ega:0,Dga:1,Cga:2};g.v(zq,g.I);g.v(Aq,g.I);var K3a={S7:0,a7:1,K7:4,L7:14,O6:15,M7:17,C6:6,F6:7,H6:8,G6:9,M6:5,m7:16,J7:20,I7:26,A7:28,T7:50,H7:88,D7:89,F7:90,E7:91,S6:2,e7:92,f7:19,s6:25,E6:29,V6:93,X6:94,W6:95,Q7:30,k7:31,c7:3,Y6:82,U6:83,T6:84,b7:85,C7:11,U7:27,n7:10,n6:12,p6:13,o6:49,A6:18,j7:21,J6:22,m6:23,G7:24,h6:32,i7:33,j6:34,b8:35,x6:36,u7:37,Q6:38,P7:39,N7:40,O7:41,W7:42,B6:43,R7:44,P6:45,I6:46,o7:47,l7:48,Z6:51,N6:52,D6:53,B7:54,R6:55,r6:56,w6:57,y6:99,q6:58,r7:59,K6:60,s7:61,p7:62,h7:63,a8:64,X7:65,V7:66,Z7:67,Y7:68,g6:69,q7:70,
v7:71,w7:72,y7:73,z7:74,x7:75,u6:76,v6:77,k6:78,z6:79,d7:80,L6:81,t6:86,l6:87,i6:97,g7:98,t7:100};var L3a={q8:0,k8:1,m8:2,o8:3,i8:4,d8:5,f8:6,h8:7,n8:8,e8:9,g8:10,l8:13,p8:14,c8:11,j8:12};var M3a={n9:0,t8:1,u8:2,w8:3,D8:4,h9:42,Z8:9,i9:10,B8:11,f9:12,e9:13,L8:43,Y8:14,M8:15,l9:47,O8:46,U8:16,T8:17,x8:18,c9:19,A8:20,d9:21,m9:22,j9:23,k9:24,z8:25,v8:26,g9:27,Q8:28,W8:38,X8:39,V8:49,b9:5,N8:6,C8:7,H8:8,S8:29,a9:30,P8:31,r8:32,I8:33,G8:34,E8:35,p9:36,K8:37,o9:40,J8:41,s8:44,F8:45,y8:48};var Ura={t9:0,s9:1,q9:2,r9:3};var Sra={aha:0,Xga:1,Wga:2,Zga:3,Yga:4};var N3a={Qka:0,Oka:1,Lka:2,Pka:3,Mka:4,Nka:5};var O3a={Tka:0,Rka:1,Ska:2};var P3a={Zka:0,Yka:1,Wka:2,Xka:3,Vka:4};var Q3a={ela:0,ala:1,dla:2,fla:3};var R3a={lla:0,gla:1,kla:2,jla:3,ila:4,hla:5};var S3a={sla:0,rla:1,mla:2};var T3a={qla:0,nla:1,ola:2};var U3a={vla:0,tla:1,ula:2};var V3a={Jla:0,Fla:1,Ela:2,zla:3,Dla:4,xla:5,yla:6,Gla:7,Ala:8,Hla:9,Cla:10,wla:11,Bla:12,Ila:13};var W3a={Ola:0,Mla:1,Nla:2,Lla:3,Kla:4};var Rra={Iza:0,mza:1,nza:2,Cya:3,dza:4,oza:5,eza:6,Dya:7,pza:8,vya:9,wya:10,Jya:11,Bya:12,Eya:13,gza:14,Hya:15,uya:16,Aza:17,bza:18,Fya:19,jza:20,hza:21,iza:22,tya:23,Gza:25,yza:26,jAa:61,Uya:35,Mya:36,Kya:37,Qya:38,Pya:93,Sya:39,Rya:40,Yya:41,Vya:42,Tya:43,Zya:44,aza:45,yya:24,zya:27,Aya:28,cAa:29,eAa:75,dAa:30,Zza:89,fAa:31,gAa:86,aAa:32,bAa:91,Nza:51,Pza:52,Yza:62,Rza:70,Vza:63,Tza:64,Oza:65,Xza:66,Qza:71,Uza:67,Sza:68,Wza:69,iAa:33,Wya:46,Xya:47,Bza:49,Cza:50,Dza:94,wza:77,rza:78,qza:79,sza:80,
fza:53,Jza:54,Lza:55,Kza:56,xza:57,Mza:58,kza:59,lza:60,tza:72,vza:84,uza:92,Gya:73,Eza:74,xya:76,Hza:81,Lya:82,Fza:83,Nya:85,Oya:95,hAa:87,cza:88,Iya:90};var wz={dV:0,iga:1,rya:2,Mga:3,KX:4,LX:5,WPa:6,OQa:7,xNa:8,cY:9,jga:10,w9:11,y9:12,z3a:13,M9:14,O9:15,G9:16,H9:17,z9:18,Fda:19,moa:20,Gva:21,qwa:22,dY:23,iYa:24,v9:25,WFa:26,VFa:47,SX:27,Eda:28,VPa:29,Yra:30,Fva:31,Bga:32,B2a:33,u2a:34,r2a:35,z2a:36,A2a:37,w2a:38,x2a:39,y2a:40,t2a:41,s2a:42,Ida:43,yX:44,hda:45,UU:46,U5:48,qV:49,aYa:50,Zma:51,XBa:52,s5a:53};var X3a={iLa:0,XKa:1,cLa:2,aLa:3,bLa:4,WKa:5,gLa:6,hLa:7,VKa:8,eLa:9,YKa:10,ZKa:11,dLa:12,fLa:13};var Y3a={nLa:0,oLa:1,jLa:2,kLa:3,mLa:4,lLa:5};var Qra={KLa:0,GLa:1,CLa:2,DLa:3,yLa:4,tLa:5,vLa:6,uLa:7,xLa:8,JLa:9,sLa:10,ILa:11,HLa:12,FLa:13,ELa:20,zLa:14,BLa:15,ALa:16,rLa:17,qLa:19,wLa:18};var Vra={SUa:0,OUa:1,PUa:14,RUa:15,DUa:2,KUa:3,HUa:4,IUa:5,AUa:6,LUa:7,GUa:8,EUa:9,CUa:10,NUa:11,JUa:12,MUa:13,BUa:16,QUa:17,FUa:18};var Wra={vZa:0,sZa:1,uZa:2,tZa:3,mZa:4,qZa:5,pZa:6,oZa:8,nZa:9,rZa:7};var vz={F_a:0,wZa:1,WZa:2,z_a:3,u_a:4,EZa:5,g_a:6,MZa:7,j_a:8,d_a:9,t_a:10,w_a:11,l_a:12,FZa:13,e_a:14,KZa:15,CZa:16,b_a:17,k_a:18,v_a:19,IZa:20,PZa:21,D_a:22,C_a:57,OZa:23,HZa:24,DZa:25,E_a:26,ZZa:27,x_a:28,y_a:29,h_a:30,B_a:31,JZa:32,m_a:33,TZa:34,VZa:35,c_a:36,a_a:37,o_a:38,f_a:39,G_a:40,QZa:41,RZa:42,SZa:43,BZa:44,AZa:45,zZa:46,xZa:58,yZa:59,r_a:47,s_a:48,LZa:49,n_a:50,q_a:51,p_a:52,YZa:53,GZa:54,A_a:55,UZa:56,i_a:60,XZa:61,NZa:62};g.v(Bq,g.I);g.v(Cq,g.I);g.v(Dq,g.I);g.v(Eq,g.I);g.v(Fq,g.I);g.v(Gq,g.I);var Yra=[1,2];g.v(Hq,g.I);Hq.prototype.getType=function(){return g.od(this,1)};
var Xra=[3,4];g.v(Iq,g.I);Iq.prototype.getType=function(){return g.od(this,2)};
Iq.prototype.j=function(a,b){return g.Cd(this,5,a,b)};
g.v(Jq,g.I);g.k=Jq.prototype;g.k.uw=function(){return g.od(this,1)};
g.k.oY=function(a,b){return Qd(this,2,Hq,a,b)};
g.k.pY=function(a,b){return Qd(this,3,Hq,a,b)};
g.k.nY=function(a,b){return Qd(this,4,Hq,a,b)};
g.k.rY=function(a,b){return Qd(this,5,Hq,a,b)};
g.k.qY=function(a,b){return Qd(this,6,Hq,a,b)};
var Fla=[5],Gla=[2,3,4,5,6];g.v(Kq,g.I);Kq.prototype.getType=function(){return g.od(this,2)};
g.v(Lq,g.I);Lq.prototype.C=function(a,b){return g.Cd(this,2,a,b)};
Lq.prototype.j=function(a,b){return Qd(this,4,Hq,a,b)};
Lq.prototype.T=function(a,b){return Qd(this,5,Hq,a,b)};
Lq.prototype.J=function(a,b){return Qd(this,6,Hq,a,b)};
var Hla=[2,4,5,6];g.v(Mq,g.I);g.v(Nq,g.I);Nq.prototype.j=function(a,b){return Qd(this,1,Kq,a,b)};
var Ila=[1];g.v(Oq,g.I);Oq.prototype.j=function(a,b){return Qd(this,2,Pq,a,b)};
g.v(Pq,g.I);Pq.prototype.j=function(a,b){return g.Cd(this,1,a,b)};
g.v(Qq,g.I);Qq.prototype.j=function(a,b){return g.Cd(this,1,a,b)};
Qq.prototype.C=function(a,b){return g.Cd(this,2,a,b)};
var Jla=[2],Kla=[1],Lla=[1,2];g.v(Rq,g.I);g.v(Sq,g.I);Sq.prototype.j=function(a,b){return Qd(this,3,Tq,a,b)};
g.v(Tq,g.I);var Mla=[3];g.v(Uq,g.I);Uq.prototype.cf=function(){return g.od(this,1)};g.v(Vq,g.I);Vq.prototype.rf=function(){return g.od(this,2)};g.v(Wq,g.I);g.v(Xq,g.I);g.v(Yq,g.I);Yq.prototype.getType=function(){return g.od(this,1)};g.v(Zq,g.I);g.v($q,g.I);g.v(ar,g.I);g.v(br,g.I);br.prototype.aD=function(){return g.od(this,4)};g.v(cr,g.I);g.v(dr,g.I);g.v(er,g.I);g.v(fr,g.I);g.v(gr,g.I);g.v(hr,g.I);g.v(ir,g.I);var L2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];g.v(jr,g.I);g.v(kr,g.I);g.v(lr,g.I);g.v(mr,g.I);g.v(nr,g.I);nr.prototype.getState=function(){return zd(this,1)};
nr.prototype.Oc=function(a){g.F(this,1,a)};g.v(or,g.I);g.v(pr,g.I);pr.prototype.j=function(a,b){return Qd(this,1,or,a,b)};
var Nla=[1];g.v(qr,g.I);qr.prototype.j=function(a,b){return Qd(this,2,pr,a,b)};
qr.prototype.C=function(a,b){return Qd(this,3,mr,a,b)};
var Ola=[2,3];g.v(rr,g.I);rr.prototype.C=function(a,b){return Qd(this,1,qr,a,b)};
rr.prototype.j=function(a,b){return Qd(this,2,lr,a,b)};
var Pla=[1,2];g.v(sr,g.I);g.v(tr,g.I);g.v(ur,g.I);g.v(vr,g.I);g.v(wr,g.I);g.v(xr,g.I);xr.prototype.setConfig=function(a){return H(this,wr,2,a)};g.v(yr,g.I);g.v(zr,g.I);zr.prototype.j=function(a,b){return g.Cd(this,1,a,b)};
var Qla=[1];g.v(Ar,g.I);Ar.prototype.j=function(a,b){return Qd(this,4,Br,a,b)};
Ar.prototype.C=function(a,b){return g.Cd(this,5,a,b)};
g.v(Br,g.I);Br.prototype.getKey=function(){return Td(this,1)};
Br.prototype.getValue=function(){return Td(this,2)};
Br.prototype.setValue=function(a){return g.F(this,2,a)};
var Rla=[4,5];g.v(Cr,g.I);g.v(Dr,g.I);g.v(Er,g.I);g.v(Fr,g.I);var ez=[2,3,4];g.v(Gr,g.I);Gr.prototype.getMessage=function(){return Td(this,1)};g.v(Hr,g.I);g.v(Ir,g.I);g.v(Jr,g.I);g.v(Kr,g.I);Kr.prototype.Fh=function(a,b){return Qd(this,5,Jr,a,b)};
var Sla=[5];g.v(Lr,g.I);Lr.prototype.C=function(a,b){return Qd(this,19,pq,a,b)};
Lr.prototype.j=function(a,b){return Qd(this,20,oq,a,b)};
var Tla=[19,20];g.v(Mr,g.I);g.v(Nr,g.I);g.v(Or,g.I);Or.prototype.j=function(a,b){return Qd(this,2,Mr,a,b)};
Or.prototype.setConfig=function(a){return H(this,Nr,3,a)};
Or.prototype.C=function(a,b){return Qd(this,5,Mr,a,b)};
var Ula=[2,5];g.v(Pr,g.I);Pr.prototype.nw=function(){return Sd(g.od(this,2),0)};g.v(Qr,g.I);Qr.prototype.j=function(a,b){return Qd(this,9,Pr,a,b)};
var Vla=[9];g.v(Rr,g.I);g.v(Sr,g.I);g.v(Tr,g.I);g.v(Ur,g.I);g.v(Vr,g.I);Vr.prototype.getType=function(){return zd(this,2)};
Vr.prototype.j=function(a,b){return Qd(this,3,Ur,a,b)};
var Wla=[3];g.v(Wr,g.I);Wr.prototype.j=function(a,b){return Qd(this,10,sr,a,b)};
Wr.prototype.C=function(a,b){return Qd(this,17,Qr,a,b)};
var Xla=[10,17];g.v(Xr,g.I);var tqa={wca:0,vca:1,sca:2,tca:3,uca:4};g.v(Yr,g.I);Yr.prototype.Vf=function(){return Td(this,2)};var bqa={ioa:0,joa:3,koa:1,hoa:2};var Ypa={Zoa:0,soa:1,uoa:2,voa:3,woa:4,xoa:5,zoa:6,Aoa:7,Boa:8,Coa:9,Doa:10,Goa:11,Hoa:12,Ioa:13,Joa:14,Koa:15,Loa:16,Ooa:17,Poa:18,Qoa:19,Roa:20,Soa:21,Toa:22,Uoa:23,Voa:24,apa:25,bpa:26,Moa:27,Woa:28,Noa:29,Foa:30,yoa:31,Eoa:32,cpa:33,dpa:34,roa:35,toa:36,Xoa:37,Yoa:38};var aqa={jra:0,opa:1,vqa:2,fra:3,ura:4,rqa:5,wqa:6,spa:7,upa:8,tpa:9,Gqa:10,qqa:11,pqa:12,Oqa:13,Sqa:14,gra:15,sra:16,rpa:17,jpa:18,Jpa:19,zpa:20,uqa:21,Aqa:22,hra:23,kpa:24,lpa:25,Lqa:26,Bpa:116,Mpa:27,Npa:28,Fqa:29,ppa:30,Hpa:31,tqa:32,Eqa:33,hpa:34,ipa:35,fpa:36,gpa:37,xqa:38,yqa:39,Rqa:40,qpa:41,tra:42,Jqa:43,Dqa:44,Hqa:45,sqa:46,Iqa:47,Cpa:48,wpa:49,wra:50,Lpa:51,Kpa:52,xpa:53,ypa:54,cra:55,ara:56,Zqa:57,dra:58,Apa:59,Dpa:60,rra:61,Nqa:62,Kqa:63,Mqa:64,zqa:65,Vqa:66,Tqa:67,Uqa:117,Wqa:68,Ipa:69,
vra:70,Gpa:71,Xqa:72,Yqa:73,Pqa:74,Qqa:75,Fpa:76,Epa:77,Cqa:78,ira:79,Bqa:80,epa:81,npa:115,mpa:120,Qpa:82,Spa:83,hqa:84,Tpa:85,nqa:86,Rpa:87,Vpa:88,bqa:89,eqa:90,jqa:91,gqa:92,iqa:93,Ppa:94,Wpa:95,fqa:96,Ypa:97,Xpa:98,Opa:99,Upa:100,kqa:101,cqa:102,oqa:103,lqa:104,Zpa:105,mqa:106,dqa:107,aqa:118,lra:108,pra:109,ora:110,nra:111,qra:112,mra:113,kra:114};var Z3a={hga:0,gga:1,ega:2,fga:3};var Hsa={VSa:0,ATa:1,DTa:2,pTa:3,qTa:4,rTa:5,FTa:39,GTa:6,BTa:7,zTa:50,ETa:69,sTa:32,tTa:44,uTa:33,CTa:8,vTa:9,wTa:10,yTa:11,xTa:12,WSa:56,XSa:57,YSa:58,ZSa:59,aTa:60,bTa:61,aUa:13,bUa:14,cUa:15,kUa:16,fUa:17,mUa:18,lUa:19,hUa:20,iUa:21,dUa:34,jUa:35,gUa:36,eUa:49,fTa:37,gTa:38,iTa:40,kTa:41,jTa:42,lTa:43,mTa:51,hTa:52,eTa:67,cTa:22,dTa:23,KTa:24,PTa:25,QTa:62,OTa:26,MTa:27,JTa:48,HTa:53,ITa:63,RTa:66,LTa:54,NTa:68,oTa:64,nTa:65,STa:28,VTa:29,UTa:30,TTa:31,XTa:45,ZTa:46,YTa:47,WTa:55};var Esa={oUa:0,pUa:1,nUa:2};var Jsa={sUa:0,rUa:1,qUa:2};var Isa={zUa:0,xUa:1,vUa:2,yUa:3,tUa:4,uUa:5,wUa:6};var osa={TXa:0,SXa:1,RXa:2};var nsa={XXa:0,VXa:1,UXa:2,WXa:3};g.v(Zr,g.I);g.v($r,g.I);g.v(as,g.I);g.v(bs,g.I);g.v(cs,g.I);g.v(ds,g.I);ds.prototype.getFeature=function(){return zd(this,2)};
ds.prototype.hasFeature=function(){return null!=g.od(this,2,!1)};g.v(es,g.I);g.v(fs,g.I);g.v(gs,g.I);gs.prototype.j=function(a,b){return Qd(this,2,is,a,b)};
g.v(hs,g.I);hs.prototype.getScreen=function(){return Ud(this,11)};
hs.prototype.hasScreen=function(){return null!=g.od(this,11,!1)};
g.v(is,g.I);is.prototype.getName=function(){return zd(this,1)};
is.prototype.getStatus=function(){return zd(this,2)};
is.prototype.getState=function(){return zd(this,3)};
is.prototype.Oc=function(a){g.F(this,3,a)};
var Yla=[2];g.v(js,g.I);g.v(ks,g.I);ks.prototype.j=function(a,b){return Qd(this,1,gs,a,b)};
ks.prototype.C=function(a,b){return Qd(this,2,gs,a,b)};
var Zla=[1,2];var Dsa={mya:0,kya:1,lya:2};var lsa={WCa:0,QCa:1,TCa:2,XCa:3,RCa:4,SCa:5,UCa:6,VCa:7};var msa={aDa:0,ZCa:1,YCa:2};var ksa={kHa:0,lHa:1,jHa:2};var jsa={BHa:0,oHa:1,xHa:2,CHa:3,zHa:4,rHa:5,nHa:6,pHa:7,qHa:8,AHa:9,yHa:10,sHa:11,vHa:12,wHa:13,uHa:14,tHa:15,mHa:16};var gsa={CWa:0,yWa:1,BWa:2,AWa:3,zWa:4};var fsa={GWa:0,EWa:1,FWa:2,DWa:3};var hsa={NWa:0,JWa:1,LWa:2,HWa:3,MWa:4,IWa:5,KWa:6};var esa={UWa:0,WWa:1,VWa:2,QWa:3,OWa:4,PWa:5,XWa:6,RWa:7,YWa:8,SWa:9,TWa:10};var isa={bXa:0,aXa:1,ZWa:2};var ssa={V_a:0,T_a:1,S_a:2,N_a:3,P_a:4,Q_a:5,M_a:6,O_a:7,U_a:8,W_a:9,R_a:10};var rsa={Y_a:0,X_a:1};var zsa={u0a:0,Z_a:1,t0a:2,s0a:3,y0a:4,x0a:5,r0a:19,d0a:6,f0a:7,n0a:8,e0a:24,q0a:25,o0a:20,h0a:21,b0a:22,p0a:23,a0a:9,c0a:10,g0a:11,i0a:12,j0a:13,k0a:14,m0a:15,l0a:16,v0a:17,w0a:18};var tsa={C0a:0,B0a:1,D0a:2,z0a:3,A0a:4};var psa={S0a:0,L0a:1,G0a:2,P0a:3,K0a:4,R0a:5,F0a:6,H0a:7,M0a:8,I0a:9,N0a:10,O0a:11,J0a:12,Q0a:13};var vsa={Z0a:0,X0a:1,V0a:2,W0a:3,Y0a:4};var usa={e1a:0,a1a:1,b1a:2,d1a:3};var qsa={i1a:0,h1a:1,g1a:2};var Asa={l1a:0,j1a:1,k1a:2};var Bsa={X1a:0,W1a:1,V1a:2,T1a:3,U1a:4};var Csa={b2a:0,Z1a:1,Y1a:2,a2a:3};var $3a={yga:0,vga:1,wga:2,rga:3,xga:4,tga:5};var Opa={YX:0,Uva:1,Ita:2,Jta:3,nya:4,YHa:5,Qca:6};var fz={yma:0,cma:101,kma:102,Xla:103,ama:104,gma:105,hma:106,lma:107,mma:108,oma:109,pma:110,xma:111,jma:112,ema:113,nma:114,rma:115,zma:116,Zla:117,fma:118,Ama:119,tma:120,uma:121,bma:122,Yla:123,qma:124,wma:125,vma:126};var Eqa={Jma:0,Gma:1,Hma:2,Ema:3,Fma:4,Dma:5,Ima:6};var a4a={Bna:0,Ana:1,yna:2,zna:3};var b4a={Mna:0,Kna:1,Dna:2,Jna:3,Cna:4,Gna:5,Ina:6,Lna:7,Hna:8,Fna:9,Ena:10};var c4a={Ona:0,Pna:1,Nna:2};g.v(ls,g.I);g.v(ms,g.I);g.v(ns,g.I);ns.prototype.getState=function(){return Ud(this,1)};
ns.prototype.Oc=function(a){g.F(this,1,a)};g.v(os,g.I);g.v(ps,g.I);g.v(qs,g.I);g.v(rs,g.I);g.v(ts,g.I);ts.prototype.Ah=function(a){Pd(this,1,a)};g.v(us,g.I);us.prototype.Cj=function(){return rd(this,ts,2)};g.v(vs,g.I);vs.prototype.getFeature=function(){return zd(this,1)};
vs.prototype.hasFeature=function(){return null!=g.od(this,1,!1)};g.v(ws,g.I);g.v(xs,g.I);xs.prototype.Vf=function(){return zd(this,2)};
g.v(ys,g.I);var d4a=[1];g.v(zs,g.I);g.v(As,g.I);g.v(Bs,g.I);Bs.prototype.getVideoAspectRatio=function(){return Sd(tba(this,2),0)};g.v(Cs,g.I);g.v(Ds,g.I);Ds.prototype.setDescription=function(a){return g.F(this,1,a)};g.v(Es,g.I);g.v(Fs,g.I);g.v(Gs,g.I);Gs.prototype.setBroadcastConferenceType=function(a){return g.F(this,4,a)};g.v(Hs,g.I);g.v(Is,g.I);g.v(Js,g.I);g.v(Ks,g.I);g.v(Ls,g.I);Ls.prototype.getId=function(){return Td(this,1)};g.v(Ms,g.I);g.v(Ns,g.I);g.v(Os,g.I);Os.prototype.j=function(a,b){return Qd(this,5,Ns,a,b)};
var $la=[5];g.v(Ps,g.I);Ps.prototype.j=function(a,b){return Qd(this,27,Qs,a,b)};
g.v(Qs,g.I);g.v(Rs,g.I);var ama=[27];g.v(Ss,g.I);g.v(Ts,g.I);g.v(Us,g.I);g.v(Vs,g.I);var M2=[1,2,3,4];g.v(Ws,g.I);g.v(Xs,g.I);g.v(Ys,g.I);g.v(Zs,g.I);g.v($s,g.I);g.v(at,g.I);g.v(bt,g.I);bt.prototype.j=function(a,b){return g.Cd(this,1,a,b)};
var bma=[1];g.v(ct,g.I);ct.prototype.Vf=function(){return zd(this,3)};g.v(dt,g.I);g.v(et,g.I);g.v(ft,g.I);g.v(gt,g.I);gt.prototype.Wf=function(){return Jd(this,et,2===Gd(this,N2)?2:-1)};
gt.prototype.setVideoId=function(a){return Ld(this,et,2,N2,a)};
gt.prototype.getPlaylistId=function(){return Jd(this,dt,4===Gd(this,N2)?4:-1)};
var N2=[2,3,4,5];g.v(ht,g.I);ht.prototype.getType=function(){return zd(this,1)};
ht.prototype.Wf=function(){return Td(this,3)};
ht.prototype.setVideoId=function(a){return g.F(this,3,a)};g.v(jt,g.I);g.v(kt,g.I);g.v(lt,g.I);var csa=[3];g.v(mt,g.I);g.v(nt,g.I);g.v(ot,g.I);g.v(pt,g.I);g.v(qt,g.I);g.v(rt,g.I);g.v(tt,g.I);g.v(ut,g.I);g.v(vt,g.I);g.v(wt,g.I);wt.prototype.getStarted=function(){return Sd(g.uba(this,1),!1)};g.v(xt,g.I);g.v(zt,g.I);g.v(At,g.I);At.prototype.getDuration=function(){return Ud(this,2)};
At.prototype.Rj=function(a){g.F(this,2,a)};g.v(Bt,g.I);g.v(Ct,g.I);g.v(Dt,g.I);g.v(Et,g.I);Et.prototype.j=function(a){g.F(this,2,a)};
g.v(Ft,g.I);g.v(Jt,g.I);Jt.prototype.j=function(a){g.F(this,1,a)};
var ema=[3];g.v(Kt,g.I);Kt.prototype.j=function(a){g.F(this,1,a)};
Kt.prototype.Cj=function(){return rd(this,ts,2)};g.v(Lt,g.I);Lt.prototype.j=function(a){g.F(this,1,a)};
Lt.prototype.Cj=function(){return rd(this,ts,2)};g.v(Mt,g.I);Mt.prototype.j=function(a){g.F(this,1,a)};
Mt.prototype.Cj=function(){return rd(this,ts,2)};g.v(Nt,g.I);Nt.prototype.j=function(a){g.F(this,1,a)};
Nt.prototype.Cj=function(){return rd(this,ts,2)};g.v(Ot,g.I);g.v(Pt,g.I);Pt.prototype.getVisibilityState=function(){return zd(this,5)};
var gma=[16];g.v(Qt,g.I);g.v(Rt,g.I);Rt.prototype.getPlayerType=function(){return zd(this,7)};
Rt.prototype.Wf=function(){return Td(this,19)};
Rt.prototype.setVideoId=function(a){return g.F(this,19,a)};
g.v(St,g.I);St.prototype.getId=function(){return Td(this,2)};
var hma=[83,68];g.v(Ut,g.I);g.v(Vt,g.I);Vt.prototype.j=function(a,b){return Qd(this,3,Wt,a,b)};
g.v(Wt,g.I);Wt.prototype.Wf=function(){return Td(this,1)};
Wt.prototype.setVideoId=function(a){return g.F(this,1,a)};
Wt.prototype.j=function(a,b){return Qd(this,9,Xt,a,b)};
g.v(Xt,g.I);var ima=[3],jma=[9];g.v(Yt,g.I);Yt.prototype.Wf=function(){return Td(this,1)};
Yt.prototype.setVideoId=function(a){return g.F(this,1,a)};g.v(Zt,g.I);g.v($t,g.I);$t.prototype.j=function(a,b){return Qd(this,1,Yt,a,b)};
$t.prototype.C=function(a,b){return Qd(this,2,Zt,a,b)};
var kma=[1,2];g.v(au,g.I);g.v(bu,g.I);bu.prototype.getId=function(){return Td(this,1)};
bu.prototype.j=function(a,b){return g.Cd(this,2,a,b)};
var lma=[2];g.v(cu,g.I);g.v(du,g.I);g.v(eu,g.I);g.v(fu,g.I);fu.prototype.getId=function(){return Td(this,1)};
fu.prototype.j=function(a,b){return Qd(this,14,gu,a,b)};
fu.prototype.C=function(a,b){return Qd(this,17,du,a,b)};
g.v(gu,g.I);g.v(hu,g.I);var mma=[14,17];g.v(iu,g.I);iu.prototype.C=function(a,b){return Qd(this,1,fu,a,b)};
iu.prototype.j=function(a,b){return Qd(this,2,bu,a,b)};
var nma=[1,2];g.v(ju,g.I);g.v(ku,g.I);ku.prototype.getOrigin=function(){return Td(this,3)};g.v(lu,g.I);g.v(mu,g.I);g.v(nu,g.I);nu.prototype.getContext=function(){return Jd(this,mu,33)};
var $y=[23,24,11,6,7,5,2,3,13,20,21,22,28,32,37,229,241,45,59,225,288,72,73,78,208,156,202,215,74,76,79,80,111,85,91,97,100,102,105,119,126,127,136,146,148,151,157,158,159,163,164,168,444,176,222,383,177,178,179,411,184,188,189,190,191,193,194,195,196,197,198,199,200,201,402,320,203,204,205,206,258,259,260,261,327,209,219,226,227,232,233,234,240,244,247,248,249,251,256,257,266,254,255,270,272,278,291,293,300,304,308,309,310,311,313,314,319,321,323,324,328,330,331,332,334,337,338,340,344,348,350,351,
352,353,354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,388,389,403,410,412,429,413,414,415,416,417,418,430,423,424,425,426,427,431,117,439,441,448];var e4a={Esa:0,ssa:1,vsa:2,tsa:3,ysa:4,usa:5,gsa:6,Bsa:7,nsa:8,bsa:9,qsa:10,zsa:11,wsa:12,isa:13,esa:14,hsa:15,Dsa:16,csa:17,dsa:18,Csa:19,jsa:20,fsa:21,Asa:22,Jsa:23,Isa:24,Fsa:25,rsa:26,xsa:27,Ksa:28,ksa:29,Zra:30,Hsa:31,Gsa:32,msa:33,Lsa:34,lsa:35};var f4a={pta:0,bta:1,fta:2,dta:3,ita:4,eta:5,Tsa:6,lta:7,Ysa:8,Nsa:9,Zsa:10,jta:11,gta:12,Vsa:13,Rsa:14,Usa:15,nta:16,Psa:17,Qsa:18,mta:19,Wsa:20,Ssa:21,kta:22,tta:23,sta:24,qta:25,ata:26,hta:27,uta:28,Xsa:29,Msa:30,rta:31,Osa:32,vta:33};var g4a={wva:0,vva:1,xva:2};var h4a={uua:0,sua:1,oua:3,qua:4,rua:5,tua:6,pua:7};var i4a={Aua:0,xua:1,zua:2,yua:3,wua:4,vua:5};var j4a={qva:0,mva:1,nva:2,ova:3,pva:4};var k4a={Cva:0,Dva:1,Eva:2,Bva:3,zva:4,Ava:5};var sta={lwa:0,Vva:1,cwa:2,dwa:4,iwa:8,ewa:16,fwa:32,kwa:64,jwa:128,Xva:256,Zva:512,hwa:1024,Yva:2048,bwa:4096,Wva:8192,gwa:16384};var Dqa={Pwa:0,Owa:1,Nwa:2,Mwa:4};var Cqa={Uwa:0,Rwa:1,Swa:2,Vwa:3,Twa:4,Qwa:5};var l4a={Era:0,Dra:1,Cra:2};var m4a={fEa:0,eEa:1,dEa:2};var n4a={WEa:0,FEa:1,UEa:2,HEa:3,NEa:4,YEa:5,VEa:6,vEa:7,uEa:8,tEa:9,zEa:10,EEa:11,DEa:12,wEa:13,OEa:14,JEa:15,LEa:16,lEa:17,TEa:18,pEa:19,KEa:20,kEa:21,MEa:22,CEa:23,mEa:24,oEa:25,REa:26,XEa:27,SEa:28,IEa:29,xEa:30,AEa:31,BEa:32,sEa:33,ZEa:34,qEa:35,yEa:36,PEa:37,nEa:38,jEa:39,rEa:41,GEa:42,QEa:43};var o4a={iFa:0,hFa:1,gFa:2,fFa:3};var Mqa={pna:0,nna:1,ona:2,kna:3,lna:4,mna:5};var pqa={wKa:0,oKa:1,xKa:2,vKa:4,sKa:8,rKa:16,qKa:32,tKa:64,pKa:128,uKa:256};var Nqa={PKa:0,KKa:1,OKa:2,HKa:3,zKa:4,FKa:5,AKa:6,BKa:7,DKa:8,IKa:9,MKa:10,LKa:11,NKa:12,CKa:13,EKa:14,GKa:15,JKa:16,yKa:17};var nqa={ZJa:0,WJa:1,XJa:2,YJa:3};var sqa={iKa:0,kKa:1,hKa:2,dKa:3,jKa:4,eKa:5,fKa:6,gKa:7};var Spa={A1a:0,Gga:1,KCa:2,eIa:3,gIa:4,hIa:5,bIa:6,qYa:7,xIa:8,wIa:9,cIa:10,fIa:11,WYa:12,B9:13,J9:14,C9:15,uNa:16,PJa:17,yIa:18,CIa:19,mKa:20,AIa:21,cKa:22,QKa:23,LIa:24,bKa:25,dIa:26,nYa:27,rWa:28,fQa:29,Zda:30,q5a:31,aKa:32};var Rpa={E1a:0,V5:1,SKa:2,RKa:3,SUCCESS:4,YXa:5,Fra:6,NPa:7,nua:9,Hga:10,Ula:11,CANCELLED:12,eQa:13,sWa:14,xWa:15,v2a:16};var Qpa={kZa:0,bZa:1,gZa:2,fZa:3,cZa:4,dZa:5,XYa:6,jZa:7,iZa:8,aZa:9,ZYa:10,eZa:11,hZa:12,YYa:13};var $pa={jNa:0,gNa:1,iNa:2,hNa:3};var p4a={yOa:0,xOa:1,wOa:2};var q4a={BOa:0,zOa:1,AOa:2};var r4a={tRa:0,uRa:1};var s4a={WUa:0,UUa:1,VUa:2};var t4a={wXa:0,sXa:1,tXa:2,uXa:3,vXa:4};var rqa={ZUa:0,XUa:1,YUa:2};var Qqa={wVa:0,tVa:1,uVa:2,vVa:3};var jqa={Rba:0,Qba:1,Oba:2,Pba:3};var Hqa={Ada:0,uda:1,xda:2,yda:3,wda:4,zda:5,Bda:6,vda:7};var eqa={mha:0,lha:1,nha:2};var Vpa={y1a:0,Sfa:1,Tfa:2,Rfa:3,Ufa:4};var Upa={z1a:0,oOa:1,PMa:2};var Jqa={Ora:0,Kra:1,Gra:2,Nra:3,Ira:4,Lra:5,Jra:6,Hra:7,Mra:8};var Lqa={tva:0,sva:1,rva:2};var Gqa={JCa:0,ICa:1,HCa:2};var Iqa={KHa:0,JHa:1,IHa:2};var Fqa={KQa:0,IQa:1,JQa:2};var hqa={dYa:0,cYa:1,bYa:2};var u4a={eCa:0,aCa:1,bCa:2,cCa:3,dCa:4,fCa:5};var v4a={sNa:0,pNa:1,nNa:2,kNa:3,oNa:4,qNa:5,lNa:6,mNa:7,rNa:8,tNa:9};var w4a={GYa:0,FYa:1,HYa:2};var x4a={Y4a:0,K4a:1,Q4a:2,P4a:3,J4a:4,Z4a:5,W4a:6,L4a:7,M4a:8,O4a:9,N4a:12,G4a:10,X4a:11,S4a:13,T4a:14,a5a:15,R4a:16,U4a:17,H4a:18,V4a:19,I4a:20,b5a:21};g.v(ou,g.I);g.v(pu,g.I);pu.prototype.Wf=function(){return Rd(this,1===Gd(this,Jy)?1:-1)};
pu.prototype.setVideoId=function(a){return g.Hd(this,1,Jy,a)};
pu.prototype.getPlaylistId=function(){return Rd(this,2===Gd(this,Jy)?2:-1)};
var Jy=[1,2];g.v(qu,g.I);qu.prototype.getContext=function(){return Jd(this,xq,1)};
var oma=[3];var VI=new g.hp("changeKeyedMarkersVisibilityCommand");var y4a=new g.hp("changeMarkersVisibilityCommand");var oDa=new g.hp("loadMarkersCommand");var gDa=new g.hp("shoppingOverlayRenderer");var GDa=new g.hp("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var z4a=new g.hp("adFeedbackEndpoint");var zKa=new g.hp("phoneDialerEndpoint");var yKa=new g.hp("sendSmsEndpoint");var EDa=new g.hp("copyTextEndpoint");var A4a=new g.hp("webPlayerShareEntityServiceEndpoint");g.TI=new g.hp("urlEndpoint");g.VH=new g.hp("watchEndpoint");var B4a=new g.hp("watchPlaylistEndpoint");var iz={Yda:0,Xda:1,Wda:2,Uda:3,Vda:4};var oqa={vIa:0,tIa:1,uIa:2,sIa:3};var C4a={QIa:0,PIa:1,NIa:2,OIa:3};var D4a={UIa:0,RIa:1,SIa:2,TIa:3,VIa:4};var E4a={LJa:0,GJa:1,MJa:2,IJa:3,zJa:4,rJa:37,cJa:5,ZIa:36,eJa:38,mJa:39,nJa:40,iJa:41,KJa:42,fJa:27,wJa:31,yJa:6,AJa:7,BJa:8,CJa:9,DJa:10,EJa:11,HJa:29,gJa:30,xJa:32,qJa:12,pJa:13,bJa:14,vJa:15,WIa:16,YIa:35,dJa:43,hJa:28,tJa:17,sJa:18,uJa:19,JJa:20,lJa:25,aJa:33,NJa:21,oJa:22,kJa:26,FJa:23,XIa:24,jJa:34};var Sqa={TJa:0,RJa:1,QJa:2,SJa:3};var hz={wWa:0,tWa:1,vWa:2,uWa:3};var Tpa={VYa:0,KYa:1,JYa:2,OYa:3,UYa:4,LYa:5,RYa:6,PYa:7,QYa:8,MYa:9,SYa:10,NYa:11,TYa:12};var mqa={lKa:0,MIa:1,zIa:2,HIa:3,IIa:4,FIa:5,GIa:6};var F4a={kRa:0,jRa:1};var G4a={zXa:0,yXa:1,xXa:2,AXa:3};var H4a={EXa:0,DXa:1,CXa:2};var I4a={NXa:0,IXa:1,JXa:2,KXa:5,MXa:7,OXa:8,LXa:9};var J4a={HXa:0,GXa:1,FXa:2};var PCa=new g.hp("playerMutedAutoplayOverlayRenderer"),QCa=new g.hp("playerMutedAutoplayEndScreenRenderer");var VBa=new g.hp("unserializedPlayerResponse"),RCa=new g.hp("unserializedPlayerResponse");var K4a=new g.hp("playlistEditEndpoint");var O2;g.SI=new g.hp("buttonRenderer");O2=new g.hp("toggleButtonRenderer");var gz={B1a:0,kAa:4,MQa:1,hua:2,dda:3,lAa:5,PQa:6,iua:7,jua:8,kua:9};var L4a=new g.hp("resolveUrlCommandMetadata");var M4a=new g.hp("modifyChannelNotificationPreferenceEndpoint");var eGa=new g.hp("pingingEndpoint");var N4a=new g.hp("unsubscribeEndpoint");var O4a={pSa:0,qSa:1,jSa:2,bSa:3,nSa:4,oSa:5,rSa:6,WRa:7,XRa:8,aSa:9,kSa:10,cSa:11,gSa:12,eSa:13,fSa:14,hSa:15,iSa:19,YRa:16,mSa:17,lSa:18,ZRa:20,dSa:21};g.iJ=new g.hp("subscribeButtonRenderer");var P4a=new g.hp("subscribeEndpoint");var kqa={dVa:0,bVa:1,cVa:2};var YIa=new g.hp("buttonViewModel");var ysa={RSa:0,SSa:1,QSa:2,MSa:3,PSa:4,NSa:5,LSa:6,OSa:7};var qBa={oCa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",lCa:"LIVING_ROOM_APP_MODE_MAIN",kCa:"LIVING_ROOM_APP_MODE_KIDS",mCa:"LIVING_ROOM_APP_MODE_MUSIC",nCa:"LIVING_ROOM_APP_MODE_UNPLUGGED",jCa:"LIVING_ROOM_APP_MODE_GAMING"};var ZCa=new g.hp("autoplaySwitchButtonRenderer");var cDa,eDa,dDa,CLa;cDa=new g.hp("decoratedPlayerBarRenderer");eDa=new g.hp("chapteredPlayerBarRenderer");dDa=new g.hp("multiMarkersPlayerBarRenderer");CLa=new g.hp("chapterRenderer");g.xLa=new g.hp("markerRenderer");var kDa=new g.hp("desktopOverlayConfigRenderer");var hDa=new g.hp("gatedActionsOverlayViewModel");var ALa=new g.hp("heatMarkerRenderer");var zLa=new g.hp("heatmapRenderer");var nDa=new g.hp("watchToWatchTransitionRenderer");var HDa=new g.hp("playlistPanelRenderer");var bDa=new g.hp("suggestedActionTimeRangeTrigger"),$Ca=new g.hp("suggestedActionsRenderer"),aDa=new g.hp("suggestedActionRenderer");var BLa=new g.hp("timedMarkerDecorationRenderer");var Q4a={o4a:0,k4a:1,l4a:2,n4a:3,m4a:4};var nz={YX:0,USER:74,yca:459,TRACK:344,zca:493,Mca:419,kxa:494,Tda:337,YFa:237,eva:236,Sla:3,p4a:78,s4a:248,qGa:79,nPa:246,A4a:247,kIa:382,jIa:383,iIa:384,hYa:235,VIDEO:4,x4a:186,Uga:126,qXa:127,fha:117,hPa:125,EQa:151,Nga:6,Uta:132,Zta:154,Xta:222,Yta:155,Vta:221,Wta:156,pXa:209,oXa:210,o3a:7,CPa:124,aVa:96,THa:97,F3a:93,G3a:275,mda:110,lda:120,vOa:121,Iva:72,i3a:351,wSa:495,g3a:377,j3a:378,Tra:496,Ura:497,xSa:498,nda:381,h3a:386,H3a:387,rca:410,rwa:437,poa:338,kda:380,T5:352,dNa:113,eNa:114,AYa:82,
BYa:112,Tma:354,wYa:21,fna:375,D9:302,iha:136,Jva:85,Q9:22,B4a:23,EYa:252,DYa:253,jda:254,A9:165,nXa:304,ena:408,fxa:421,vYa:422,p3a:423,xQa:463,PLAYLIST:63,m3a:27,l3a:28,n3a:29,eXa:30,hXa:31,gXa:324,iXa:32,Dda:398,kXa:399,lXa:400,WHa:411,VHa:413,XHa:414,aIa:415,vPa:39,wPa:143,APa:144,rPa:40,sPa:145,uPa:146,zPa:325,JNa:262,LNa:263,KNa:264,ONa:355,PNa:249,RNa:250,QNa:251,oga:46,pRa:49,rRa:50,u9:62,DFa:105,gxa:242,qWa:397,EOa:83,cNa:135,oca:87,qca:153,pca:187,jca:89,ica:88,kca:139,mca:91,lca:104,nca:137,
Xfa:99,d2a:100,RHa:326,Lma:148,Kma:149,cXa:150,dXa:395,Sca:166,Xca:199,Wca:167,Tca:168,bda:169,cda:170,Uca:171,Vca:172,Yca:179,Zca:180,D2a:200,e2a:476,E2a:213,Oca:191,NNa:192,FNa:305,GNa:306,TNa:329,oVa:327,pVa:328,ANa:195,BNa:197,fNa:301,vNa:223,wNa:224,exa:227,ywa:396,lxa:356,ixa:490,mxa:394,bea:230,eda:297,J2a:298,dxa:342,Vma:346,xra:245,CYa:261,Mva:265,Rva:266,Nva:267,Kva:268,Lva:269,Qva:270,Ova:271,Pva:272,YBa:303,PBa:391,SBa:277,hCa:499,iCa:500,WBa:501,ZBa:278,QBa:489,Xna:332,Zna:333,Vna:334,
Yna:335,Wna:336,Wfa:340,axa:341,Z2a:349,Y2a:420,r$:388,q$:389,s$:390,yPa:281,tPa:282,qRa:286,fXa:288,xPa:291,BPa:292,MBa:295,jXa:296,LBa:299,F9:417,oxa:308,C4a:309,D4a:310,E4a:311,o$:350,G2a:418,fva:424,q2a:425,lIa:429,SHa:430,jxa:426,mWa:460,QHa:427,hQa:428,gQa:461,rVa:464,JFa:431,HFa:432,OFa:433,GFa:434,LFa:435,MFa:436,IFa:438,NFa:439,PFa:453,KFa:454,EFa:472,nOa:440,pOa:441,tOa:442,lOa:448,mOa:449,qOa:450,uOa:451,sOa:491,POST:445,iOa:446,rOa:447,HOa:456,mIa:483,GOa:458,vRa:480,wRa:502,yRa:481,xRa:482,
bxa:452,zSa:465,ASa:466,Vla:467,FOa:468,boa:469,lga:470,kga:471,hxa:474,Zwa:475,zha:477,cxa:478,gua:479,UNa:484,SNa:485,DNa:486,CNa:487,K9:488,sna:492};var Hua=new g.hp("cipher");var WBa=new g.hp("playerVars");var SCa=new g.hp("playerVars");var P2=g.C.window,R4a,S4a,ru=(null==P2?void 0:null==(R4a=P2.yt)?void 0:R4a.config_)||(null==P2?void 0:null==(S4a=P2.ytcfg)?void 0:S4a.data_)||{};g.Ea("yt.config_",ru);var Au=[];var xma=/^[\w.]*$/,vma={q:!0,search_query:!0},uma=String(Eu);var yma=new function(){var a=window.document;this.j=window;this.u=a};
g.Ea("yt.ads_.signals_.getAdSignalsString",function(a){return Fu(Ou(a))});g.Sa();var Bma="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var Dma={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"},Fma="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(d3a)),Kma=!1,wFa=Uu;g.v(Xu,Va);$u.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.u&&a?(a=a.call(c,this.yd))&&"function"===typeof a.then?a:bv(a):2===this.u&&b?(a=b.call(c,this.yd))&&"function"===typeof a.then?a:av(a):this};
$u.prototype.getValue=function(){return this.yd};
$u.prototype.$goog_Thenable=!0;var cv=!1;var pv=XG||zJ;var Vma=/^([0-9\.]+):([0-9\.]+)$/;g.v(Hv,Va);Hv.prototype.name="BiscottiError";g.v(Gv,Va);Gv.prototype.name="BiscottiMissingError";var Jv={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Iv=null;var Lv=g.Ga("ytglobal.prefsUserPrefsPrefs_")||{};g.Ea("ytglobal.prefsUserPrefsPrefs_",Lv);g.k=g.Mv.prototype;g.k.get=function(a,b){Qv(a);Pv(a);a=void 0!==Lv[a]?Lv[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Qv(a);Pv(a);if(null==b)throw Error("ExpectedNotNull");Lv[a]=b.toString()};
g.k.remove=function(a){Qv(a);Pv(a);delete Lv[a]};
g.k.save=function(){var a=!0;g.wu("web_secure_pref_cookie_killswitch")&&(a=!1);g.ev(this.j,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.Kca(Lv)};
g.k.dump=function(){var a=[],b;for(b in Lv)a.push(b+"="+encodeURIComponent(String(Lv[b])));return a.join("&")};
Ia(g.Mv);var gna={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"},poa={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},qoa={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},ina={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Rv.prototype.Wh=function(a,b){return Sv(a,1,b)};g.v(Uv,Rv);Uv.prototype.Bl=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ga("yt.scheduler.instance.cancelJob");b?b(a):g.Tu(a)}};
Uv.prototype.start=function(){var a=g.Ga("yt.scheduler.instance.start");a&&a()};
Uv.prototype.pause=function(){var a=g.Ga("yt.scheduler.instance.pause");a&&a()};
g.co=g.Vv();g.v(g.Yv,Error);aw.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.Yh(b))}catch(f){return}else e=escape(b);g.ev(a,e,c,this.u)};
aw.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.fv(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
aw.prototype.remove=function(a){this.j&&this.j.remove(a);g.gv(a,"/",this.u)};var bw=function(){var a;return function(){a||(a=new aw("ytidb"));return a}}();var hw=[],dw,iw=!1;var Q2={},mna=(Q2.AUTH_INVALID="No user identifier specified.",Q2.EXPLICIT_ABORT="Transaction was explicitly aborted.",Q2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Q2.MISSING_INDEX="Index not created.",Q2.MISSING_OBJECT_STORES="Object stores not created.",Q2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Q2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Q2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Q2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Q2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Q2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Q2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Q2),R2={},nna=(R2.AUTH_INVALID="ERROR",R2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",R2.EXPLICIT_ABORT="IGNORED",
R2.IDB_NOT_SUPPORTED="ERROR",R2.MISSING_INDEX="WARNING",R2.MISSING_OBJECT_STORES="ERROR",R2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",R2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",R2.QUOTA_EXCEEDED="WARNING",R2.QUOTA_MAYBE_EXCEEDED="WARNING",R2.UNKNOWN_ABORT="WARNING",R2.INCOMPATIBLE_DB_VERSION="WARNING",R2),S2={},ona=(S2.AUTH_INVALID=!1,S2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,S2.EXPLICIT_ABORT=!1,S2.IDB_NOT_SUPPORTED=!1,S2.MISSING_INDEX=!1,S2.MISSING_OBJECT_STORES=!1,S2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,S2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,S2.QUOTA_EXCEEDED=!1,S2.QUOTA_MAYBE_EXCEEDED=!0,S2.UNKNOWN_ABORT=!0,S2.INCOMPATIBLE_DB_VERSION=!1,S2);g.v(g.nw,g.Yv);g.v(ow,g.nw);g.v(pw,Error);var pna=["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.vw.all=function(a){return new g.vw(new uw(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Bu:0};f.Bu<a.length;f={Bu:f.Bu},++f.Bu)g.vw.resolve(a[f.Bu]).then(function(h){return function(l){d[h.Bu]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.vw.resolve=function(a){return new g.vw(new uw(function(b,c){a instanceof g.vw?a.then(b,c):b(a)}))};
g.vw.reject=function(a){return new g.vw(new uw(function(b,c){c(a)}))};
g.vw.prototype.then=function(a,b){var c=this,d=null!=a?a:rna,e=null!=b?b:qna;return new g.vw(new uw(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){sna(c,c,d,f,h)}),c.onRejected.push(function(){tna(c,c,e,f,h)})):"FULFILLED"===c.state.status?sna(c,c,d,f,h):"REJECTED"===c.state.status&&tna(c,c,e,f,h)}))};
g.vw.prototype.catch=function(a){return this.then(void 0,a)};g.k=wna.prototype;g.k.advance=function(a){this.cursor.advance(a);return zw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return zw(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return zw(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.pD=function(){return this.cursor.primaryKey};var T2;T2=window;g.Q=T2.ytcsi&&T2.ytcsi.now?T2.ytcsi.now:T2.performance&&T2.performance.timing&&T2.performance.now&&T2.performance.timing.navigationStart?function(){return T2.performance.timing.navigationStart+T2.performance.now()}:function(){return(new Date).getTime()};g.k=xna.prototype;g.k.add=function(a,b,c){return g.Dw(this,[a],{mode:"readwrite",Sb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.Dw(this,[a],{mode:"readwrite",Sb:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.Dw(this,[a],{mode:"readonly",Sb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.Dw(this,[a],{mode:"readwrite",Sb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.Dw(this,[a],{mode:"readonly",Sb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.Dw(this,[a],{mode:"readonly",Sb:!0},function(d){return d.objectStore(a).getAll(b,c)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=Aw.prototype;g.k.add=function(a,b){return xw(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return xw(this.j.clear()).then(function(){})};
g.k.count=function(a){return xw(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Bna(this,a):xw(this.j.delete(a))};
g.k.get=function(a){return xw(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?xw(this.j.getAll(a,b)):Cna(this,a,b)};
g.k.index=function(a){try{return new Gna(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new pw(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
Gw.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.nw("EXPLICIT_ABORT");};
Gw.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new Aw(a),this.B.set(a,b));return b};
g.k=Gna.prototype;g.k.count=function(a){return xw(this.j.count(a))};
g.k.delete=function(a){return g.Kw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return xw(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?xw(this.j.getAll(a,b)):Hna(this,a,b)};
g.k.getKey=function(a){return xw(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=Ina.prototype;g.k.advance=function(a){this.cursor.advance(a);return Jw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return Jw(this.request)};
g.k.delete=function(){return xw(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.pD=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return xw(this.cursor.update(a))};Mw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return Kna(a,b,c)};
Mw.prototype.delete=function(a){a=void 0===a?{}:a;return Lw(this.name,a)};
Mw.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,w,y;return g.A(function(z){switch(z.j){case 1:return h=null!=(f=Error().stack)?f:"",g.qa(z,2),g.x(z,c.B(c.name,c.options.version,e),4);case 4:l=z.u;for(var B=c.options,D=[],G=g.t(Object.keys(B.qp)),E=G.next();!E.done;E=G.next()){E=E.value;var J=B.qp[E],M=void 0===J.H3?Number.MAX_VALUE:J.H3;!(l.j.version>=J.zl)||l.j.version>=M||l.j.objectStoreNames.contains(E)||D.push(E)}m=D;if(0===m.length){z.Ja(5);break}n=Object.keys(c.options.qp);p=l.objectStoreNames();
if(c.I<g.xu("ytidb_reopen_db_retries",0))return c.I++,l.close(),jw(new g.nw("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),z.return(a());if(!(c.D<g.xu("ytidb_remake_db_retries",1))){z.Ja(6);break}c.D++;if(!g.wu("ytidb_remake_db_enable_backoff_delay")){z.Ja(7);break}return g.x(z,Lna(c.u),8);case 8:c.u*=2;case 7:return g.x(z,c.delete(),9);case 9:return jw(new g.nw("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),
z.return(a());case 6:throw new ow(p,n);case 5:return z.return(l);case 2:q=g.sa(z);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){z.Ja(10);break}return g.x(z,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),11);case 11:r=z.u;w=r.j.version;if(void 0!==c.options.version&&w>c.options.version+
1)throw r.close(),c.C=!1,Mna(c,w);return z.return(r);case 10:throw b(),q instanceof Error&&!g.wu("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),rw(q,c.name,"",null!=(y=c.options.version)?y:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw Mna(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,r4:b,upgrade:this.options.upgrade};return this.j=d=a()};var Ow=new Mw("YtIdbMeta",{qp:{databases:{zl:1}},upgrade:function(a,b){b(1)&&g.Bw(a,"databases",{keyPath:"actualName"})}});var Sw,Rw=new function(){}(new function(){});new g.Wi;g.v(Vw,Mw);Vw.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?Vna:Una)(a,b,Object.assign({},c))};
Vw.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?Zna:Wna)(this.name,a)};var T4a={},aoa=g.Ww("ytGcfConfig",{qp:(T4a.coldConfigStore={zl:1},T4a.hotConfigStore={zl:1},T4a),shared:!1,upgrade:function(a,b){b(1)&&(g.Hw(g.Bw(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Hw(g.Bw(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.k=ax.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if($w(this)&&this.Bf){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Dg.set(d,this.qf).then(function(e){d.id=e;c.pg.lh()&&bx(c,d)}).catch(function(e){bx(c,d);
cx(c,e)})}else this.Cp(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if($w(this)&&this.Bf){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.gb&&this.gb("nwl_skip_retry")&&(e.skipRetry=c);if(this.pg.lh()||this.gb&&this.gb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.A(function(m){if(1==m.j)return g.x(m,d.Dg.set(e,d.qf).catch(function(n){cx(d,n)}),2);
f(h,l);g.pa(m)})}}this.Cp(a,b,e.skipRetry)}else this.Dg.set(e,this.qf).catch(function(h){d.Cp(a,b,e.skipRetry);
cx(d,h)})}else this.Cp(a,b,this.gb&&this.gb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if($w(this)&&this.Bf){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.Dg.dw(d.id,c.qf):e=!0;c.pg.Ht&&c.gb&&c.gb("vss_network_hint")&&c.pg.Ht(!0);f(h,l)};
this.Cp(d.url,d.options);this.Dg.set(d,this.qf).then(function(h){d.id=h;e&&c.Dg.dw(d.id,c.qf)}).catch(function(h){cx(c,h)})}else this.Cp(a,b)};
g.k.qB=function(){var a=this;if(!$w(this))throw g.tw("throttleSend");this.j||(this.j=this.Rl.Wh(function(){var b;return g.A(function(c){if(1==c.j)return g.x(c,a.Dg.hQ("NEW",a.qf),2);if(3!=c.j)return b=c.u,b?g.x(c,bx(a,b),3):(a.cP(),c.return());a.j&&(a.j=0,a.qB());g.pa(c)})},this.XT))};
g.k.cP=function(){this.Rl.Bl(this.j);this.j=0};dx.prototype.Rk=function(){return{version:this.version,args:this.args}};ex.prototype.toString=function(){return this.topic};var U4a=g.Ga("ytPubsub2Pubsub2Instance")||new g.No;g.No.prototype.subscribe=g.No.prototype.subscribe;g.No.prototype.unsubscribeByKey=g.No.prototype.Zg;g.No.prototype.publish=g.No.prototype.ma;g.No.prototype.clear=g.No.prototype.clear;g.Ea("ytPubsub2Pubsub2Instance",U4a);var hx=g.Ga("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ea("ytPubsub2Pubsub2SubscribedKeys",hx);var ix=g.Ga("ytPubsub2Pubsub2TopicToKeys")||{};g.Ea("ytPubsub2Pubsub2TopicToKeys",ix);var xoa=g.Ga("ytPubsub2Pubsub2IsAsync")||{};
g.Ea("ytPubsub2Pubsub2IsAsync",xoa);g.Ea("ytPubsub2Pubsub2SkipSubKey",null);var lx;var V4a={},Ioa=g.Ww("ServiceWorkerLogsDatabase",{qp:(V4a.SWHealthLog={zl:1},V4a),shared:!0,upgrade:function(a,b){b(1)&&g.Hw(g.Bw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var ox={},Ooa=0;px.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
px.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
px.prototype.removeParams=function(a){return a.split("?")[0]};
px.prototype.removeParams=px.prototype.removeParams;px.prototype.isEndpointCFR=px.prototype.isEndpointCFR;px.prototype.requestComplete=px.prototype.requestComplete;px.getInstance=qx;var rx;g.v(tx,g.Mf);g.k=tx.prototype;g.k.lh=function(){return this.j.lh()};
g.k.Ht=function(a){this.j.j=a};
g.k.yZ=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.aZ=function(){this.u=!0};
g.k.Pa=function(a,b){return this.j.Pa(a,b)};
g.k.eF=function(a){a=ao(this.j,a);a.then(function(b){g.wu("use_cfr_monitor")&&qx().requestComplete("generate_204",b)});
return a};
tx.prototype.sendNetworkCheckRequest=tx.prototype.eF;tx.prototype.listen=tx.prototype.Pa;tx.prototype.enableErrorFlushing=tx.prototype.aZ;tx.prototype.getWindowStatus=tx.prototype.yZ;tx.prototype.networkStatusHint=tx.prototype.Ht;tx.prototype.isNetworkAvailable=tx.prototype.lh;tx.getInstance=Qoa;g.v(g.ux,g.Mf);g.ux.prototype.lh=function(){var a=g.Ga("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0};
g.ux.prototype.Ht=function(a){var b=g.Ga("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)};
g.ux.prototype.eF=function(a){var b=this,c;return g.A(function(d){c=g.Ga("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.wu("skip_network_check_if_cfr")&&qx().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Ht((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.lh())})):c?d.return(c(a)):d.return(!0)})};var vx;g.v(wx,ax);wx.prototype.writeThenSend=function(a,b){b||(b={});g.$v()||(this.Bf=!1);ax.prototype.writeThenSend.call(this,a,b)};
wx.prototype.sendThenWrite=function(a,b,c){b||(b={});g.$v()||(this.Bf=!1);ax.prototype.sendThenWrite.call(this,a,b,c)};
wx.prototype.sendAndWrite=function(a,b){b||(b={});g.$v()||(this.Bf=!1);ax.prototype.sendAndWrite.call(this,a,b)};
wx.prototype.awaitInitialization=function(){return this.u.promise};var Voa=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ea("ytNetworklessLoggingInitializationOptions",Voa);g.yx.prototype.isReady=function(){!this.config_&&goa()&&(this.config_=g.Yw());return!!this.config_};var W4a=0,Ax=g.df?"webkit":Jl?"moz":g.Yg?"ms":g.OG?"o":"",X4a=g.Ga("ytDomDomGetNextId")||function(){return++W4a};
g.Ea("ytDomDomGetNextId",X4a);var Xoa={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};Cx.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Cx.prototype.VQ=function(){return this.event?!1===this.event.returnValue:!1};
Cx.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Cx.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Dx=g.C.ytEventsEventsListeners||{};g.Ea("ytEventsEventsListeners",Dx);var $oa=g.C.ytEventsEventsCounter||{count:0};g.Ea("ytEventsEventsCounter",$oa);var Ssa=Rf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),apa=Rf(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var EG=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.Ta(Zx,g.K);Zx.prototype.Z=function(a){void 0===a.j&&Yoa(a);var b=a.j;void 0===a.u&&Yoa(a);this.j=new g.Eg(b,a.u)};
Zx.prototype.Hq=function(){return this.j||new g.Eg};
Zx.prototype.ea=function(){if(this.j){var a=EG();if(0!=this.C){var b=this.I,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.J();this.D=d}this.C=a;this.I=this.j;this.B=(this.B+1)%4}};
Zx.prototype.ra=function(){window.clearInterval(this.T);g.Fx(this.oa)};var cy={};var Y4a,fy,hy;Y4a=g.C.ytPubsubPubsubInstance||new g.No;fy=g.C.ytPubsubPubsubSubscribedKeys||{};hy=g.C.ytPubsubPubsubTopicToKeys||{};g.gy=g.C.ytPubsubPubsubIsSynchronous||{};g.No.prototype.subscribe=g.No.prototype.subscribe;g.No.prototype.unsubscribeByKey=g.No.prototype.Zg;g.No.prototype.publish=g.No.prototype.ma;g.No.prototype.clear=g.No.prototype.clear;g.Ea("ytPubsubPubsubInstance",Y4a);g.Ea("ytPubsubPubsubTopicToKeys",hy);g.Ea("ytPubsubPubsubIsSynchronous",g.gy);
g.Ea("ytPubsubPubsubSubscribedKeys",fy);var ny=Symbol("injectionDeps");ly.prototype.toString=function(){return"InjectionToken("+this.name+")"};
hpa.prototype.resolve=function(a){return a instanceof my?oy(this,a.key,[],!0):oy(this,a,[])};var py;qy.prototype.storePayload=function(a,b){a=ry(a);this.store[a]?this.store[a].push(b):(this.j={},this.store[a]=[b]);return a};
qy.prototype.extractMatchingEntries=function(a){a=kpa(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.u(this.store[a[c]])),delete this.store[a[c]]);return b};
qy.prototype.getSequenceCount=function(a){a=kpa(this,a);for(var b=0,c=0;c<a.length;c++)b+=this.store[a[c]].length||0;return b};
qy.prototype.getSequenceCount=qy.prototype.getSequenceCount;qy.prototype.extractMatchingEntries=qy.prototype.extractMatchingEntries;qy.prototype.storePayload=qy.prototype.storePayload;var rpa=g.xu("initial_gel_batch_timeout",2E3),Apa=Math.pow(2,16)-1,By=void 0,Dy=new lpa,Cy=new lpa,Ey,Ny=!0,zy=g.C.ytLoggingTransportGELQueue_||new Map;g.Ea("ytLoggingTransportGELQueue_",zy);var Ay=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ea("ytLoggingTransportGELProtoQueue_",Ay);var Ly=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Ea("ytLoggingTransportTokensToCttTargetIds_",Ly);var Ky=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{};
g.Ea("ytLoggingTransportTokensToJspbCttTargetIds_",Ky);var wy={};var Qy=g.C.ytLoggingGelSequenceIdObj_||{};g.Ea("ytLoggingGelSequenceIdObj_",Qy);var Ty,Uy,Epa=g.yx,MUa=!1,Wy=[];var Gpa=g.C.ytLoggingGelSequenceIdObj_||{};g.Ea("ytLoggingGelSequenceIdObj_",Gpa);var NUa={adNotify:function(a){var b=new Aq;try{return void 0!==a.adMediaTimeSec&&g.F(b,1,a.adMediaTimeSec),void 0!==a.adMediaTimeMs&&g.F(b,6,a.adMediaTimeMs),void 0!==a.timeToAdBreakSec&&g.F(b,2,a.timeToAdBreakSec),void 0!==a.clientScreenNonce&&g.F(b,3,a.clientScreenNonce),void 0!==a.clientPlaybackNonce&&g.F(b,4,a.clientPlaybackNonce),void 0!==a.videoAdBreakOffsetSec&&g.F(b,5,a.videoAdBreakOffsetSec),void 0!==a.videoAdBreakOffsetMs&&g.F(b,7,a.videoAdBreakOffsetMs),b}catch(c){R(c)}},
biscottiBasedDetection:function(a){var b=new Yr;try{return void 0!==a.detected&&g.F(b,1,a.detected),void 0!==a.source&&g.F(b,2,a.source),b}catch(c){R(c)}},
adNotifyFilled:function(a){var b=new zq;try{return void 0!==a.notifyCompositeType&&g.F(b,1,J3a[a.notifyCompositeType]),b}catch(c){R(c)}},
idbTransactionEnded:function(a){var b=new At;try{return void 0!==a.objectStoreNames&&g.F(b,1,a.objectStoreNames),void 0!==a.duration&&b.Rj(a.duration),void 0!==a.isSuccessful&&g.F(b,3,a.isSuccessful),void 0!==a.connectionHasUnknownAbortedTransaction&&g.F(b,4,a.connectionHasUnknownAbortedTransaction),void 0!==a.tryCount&&g.F(b,5,a.tryCount),void 0!==a.tag&&g.F(b,6,k4a[a.tag]),b}catch(c){R(c)}},
idbUnexpectedlyClosed:function(a){var b=new Bt;try{return void 0!==a.dbName&&g.F(b,1,a.dbName),void 0!==a.dbVersion&&g.F(b,2,a.dbVersion),b}catch(c){R(c)}},
flowEvent:function(a){var b=new rt;try{void 0!==a.flowNonce&&g.F(b,1,a.flowNonce);if(a.flowEventType){a:{var c=a.flowEventType,d=new qt;try{void 0!==c.flowEventNamespace&&g.F(d,1,e4a[c.flowEventNamespace]);void 0!==c.flowEventType&&g.F(d,2,c.flowEventType);var e=d;break a}catch(Ca){R(Ca)}e=void 0}H(b,qt,2,e)}if(a.flowMetadata){a:{var f=a.flowMetadata,h=new pt;try{if(f.notaireContext){b:{var l=f.notaireContext,m=new Ms;try{if(l.serverInfo){c:{var n=l.serverInfo,p=new Ls;try{void 0!==n.id&&g.F(p,1,
n.id);void 0!==n.forceLog&&g.F(p,2,n.forceLog);var q=p;break c}catch(Ca){R(Ca)}q=void 0}H(m,Ls,1,q)}if(l.clientInfo){c:{var r=l.clientInfo,w=new Ks;try{void 0!==r.timeSinceReceivedMs&&g.F(w,1,r.timeSinceReceivedMs);var y=w;break c}catch(Ca){R(Ca)}y=void 0}H(m,Ks,2,y)}var z=m;break b}catch(Ca){R(Ca)}z=void 0}H(h,Ms,1,z)}if(f.offlineTransferStatusChangedContext){b:{var B=f.offlineTransferStatusChangedContext,D=new Ss;try{if(B.offlineTransferStatusChanged){var G=uqa(B.offlineTransferStatusChanged);H(D,
Ps,1,G)}var E=D;break b}catch(Ca){R(Ca)}E=void 0}H(h,Ss,2,E)}if(f.offlineOrchestrationContext){b:{var J=f.offlineOrchestrationContext,M=new Os;try{void 0!==J.entityType&&g.F(M,1,J.entityType);void 0!==J.entityId&&g.F(M,7,J.entityId);void 0!==J.offlineOrchestrationActionType&&g.F(M,6,D4a[J.offlineOrchestrationActionType]);void 0!==J.offlineOrchestrationActionResult&&g.F(M,2,C4a[J.offlineOrchestrationActionResult]);void 0!==J.offlineOrchestrationFailureReason&&g.F(M,10,E4a[J.offlineOrchestrationFailureReason]);
void 0!==J.isRetryable&&g.F(M,3,J.isRetryable);if(J.orchestrationAction){var P=$ra(J.orchestrationAction);H(M,Ns,4,P)}J.additionalOrchestrationActions&&bz(M.j.bind(M),J.additionalOrchestrationActions,$ra);void 0!==J.intervalSinceEnqueuedMs&&g.F(M,8,J.intervalSinceEnqueuedMs);void 0!==J.executionIntervalMs&&g.F(M,9,J.executionIntervalMs);var X=M;break b}catch(Ca){R(Ca)}X=void 0}H(h,Os,3,X)}if(f.shortsCreationContext){b:{var W=f.shortsCreationContext,S=new bt;try{void 0!==W.shortsCreationSurfaces&&
cz(S.j.bind(S),W.shortsCreationSurfaces,O4a);var ca=S;break b}catch(Ca){R(Ca)}ca=void 0}H(h,bt,4,ca)}if(f.mdxConnectionContext){b:{var O=f.mdxConnectionContext,xa=new Hs;try{void 0!==O.isReconnection&&g.F(xa,1,O.isReconnection);void 0!==O.disconnectReason&&g.F(xa,2,n4a[O.disconnectReason]);void 0!==O.isRetry&&g.F(xa,3,O.isRetry);var la=xa;break b}catch(Ca){R(Ca)}la=void 0}H(h,Hs,5,la)}if(f.premiumMultiStepPurchaseContext){b:{var ta=f.premiumMultiStepPurchaseContext,La=new Zs;try{if(ta.selectedOption){c:{var cb=
ta.selectedOption,va=new Ys;try{void 0!==cb.offerType&&g.F(va,1,y3a[cb.offerType]);void 0!==cb.itemType&&g.F(va,2,zz[cb.itemType]);void 0!==cb.itemExternalId&&g.F(va,3,cb.itemExternalId);var Ha=va;break c}catch(Ca){R(Ca)}Ha=void 0}H(La,Ys,1,Ha)}void 0!==ta.itemType&&g.F(La,2,zz[ta.itemType]);void 0!==ta.productType&&g.F(La,3,Az[ta.productType]);void 0!==ta.landingPageVariantId&&g.F(La,4,ta.landingPageVariantId);void 0!==ta.experimentStatus&&g.F(La,5,p4a[ta.experimentStatus]);void 0!==ta.themeKey&&
g.F(La,6,ta.themeKey);void 0!==ta.signupType&&g.F(La,7,q4a[ta.signupType]);var Xb=La;break b}catch(Ca){R(Ca)}Xb=void 0}H(h,Zs,6,Xb)}if(f.mdxReceiverConnectionContext){b:{var kb=f.mdxReceiverConnectionContext,cc=new Is;try{void 0!==kb.isFromAppLaunch&&g.F(cc,1,kb.isFromAppLaunch);void 0!==kb.dialServerType&&g.F(cc,2,m4a[kb.dialServerType]);void 0!==kb.supportsSmoothPairing&&g.F(cc,3,kb.supportsSmoothPairing);void 0!==kb.hasManuallyPairedRemotesOnAppStartup&&g.F(cc,4,kb.hasManuallyPairedRemotesOnAppStartup);
void 0!==kb.mismatchedTheme&&g.F(cc,5,u3a[kb.mismatchedTheme]);void 0!==kb.mdxSenderConnectedCounter&&g.F(cc,6,kb.mdxSenderConnectedCounter);void 0!==kb.externalRouteSource&&g.F(cc,7,l4a[kb.externalRouteSource]);void 0!==kb.appReloadCount&&g.F(cc,8,kb.appReloadCount);var Nc=cc;break b}catch(Ca){R(Ca)}Nc=void 0}H(h,Is,7,Nc)}if(f.parentToolsOnboardingContext){b:{var Yb=f.parentToolsOnboardingContext,vb=new Us;try{void 0!==Yb.triggerPoint&&g.F(vb,1,G3a[Yb.triggerPoint]);if(Yb.kidsFlowInfo){c:{var Za=
Yb.kidsFlowInfo,qd=new Ts;try{void 0!==Za.kidsFlowVersion&&g.F(qd,1,D3a[Za.kidsFlowVersion]);void 0!==Za.flowLabel&&g.F(qd,2,Za.flowLabel);void 0!==Za.hostClientName&&g.F(qd,3,E3a[Za.hostClientName]);void 0!==Za.hostClientVersion&&g.F(qd,4,Za.hostClientVersion);var Rc=qd;break c}catch(Ca){R(Ca)}Rc=void 0}H(vb,Ts,2,Rc)}void 0!==Yb.kidsCorpusPreferenceNew&&g.F(vb,3,C3a[Yb.kidsCorpusPreferenceNew]);void 0!==Yb.appChoice&&g.F(vb,4,F3a[Yb.appChoice]);void 0!==Yb.isKidSignedIn&&g.F(vb,5,Yb.isKidSignedIn);
void 0!==Yb.alreadyOnboardedYtk&&g.F(vb,6,Yb.alreadyOnboardedYtk);void 0!==Yb.alreadyOnboardedSupex&&g.F(vb,7,Yb.alreadyOnboardedSupex);var $b=vb;break b}catch(Ca){R(Ca)}$b=void 0}H(h,Us,8,$b)}if(f.hashtagAutoCompleteContext){b:{var Bb=f.hashtagAutoCompleteContext,Dd=new ws;try{void 0!==Bb.suggestionSelected&&g.F(Dd,1,Bb.suggestionSelected);var id=Dd;break b}catch(Ca){R(Ca)}id=void 0}H(h,ws,9,id)}if(f.liveStreamingContext){b:{var hc=f.liveStreamingContext,ac=new Gs;try{void 0!==hc.broadcastSource&&
g.F(ac,1,I3a[hc.broadcastSource]);void 0!==hc.isAutoDashboard&&g.F(ac,2,hc.isAutoDashboard);void 0!==hc.externalVideoId&&g.F(ac,3,hc.externalVideoId);void 0!==hc.broadcastConferenceType&&ac.setBroadcastConferenceType(H3a[hc.broadcastConferenceType]);if(hc.eventData){c:{var ob=hc.eventData,Fb=new Fs;try{if(ob.webrtcHandshakeOffer){d:{var kc=ob.webrtcHandshakeOffer,Ra=new Es;try{void 0!==kc.localVideoSsrc&&g.F(Ra,1,kc.localVideoSsrc);void 0!==kc.localAudioSsrc&&g.F(Ra,2,kc.localAudioSsrc);void 0!==
kc.participantId&&g.F(Ra,3,kc.participantId);var Oc=Ra;break d}catch(Ca){R(Ca)}Oc=void 0}H(Fb,Es,1,Oc)}if(ob.webrtcHandshakeAnswer){d:{var pb=ob.webrtcHandshakeAnswer,Zb=new Cs;try{void 0!==pb.remoteVideoSsrc&&g.F(Zb,1,pb.remoteVideoSsrc);void 0!==pb.remoteAudioSsrc&&g.F(Zb,2,pb.remoteAudioSsrc);var Xd=Zb;break d}catch(Ca){R(Ca)}Xd=void 0}H(Fb,Cs,2,Xd)}if(ob.webrtcHandshakeError){d:{var Ed=ob.webrtcHandshakeError,qb=new Ds;try{void 0!==Ed.description&&qb.setDescription(Ed.description);var xc=qb;break d}catch(Ca){R(Ca)}xc=
void 0}H(Fb,Ds,3,xc)}if(ob.costreamStartNotification){d:{var Sc=ob.costreamStartNotification,uc=new zs;try{void 0!==Sc.broadcastStartTimeMs&&g.F(uc,1,Sc.broadcastStartTimeMs);var ud=uc;break d}catch(Ca){R(Ca)}ud=void 0}H(Fb,zs,4,ud)}if(ob.remoteParticipant){d:{var vd=ob.remoteParticipant,je=new As;try{void 0!==vd.videoSsrc&&g.F(je,1,vd.videoSsrc);void 0!==vd.audioSsrc&&g.F(je,2,vd.audioSsrc);var ue=je;break d}catch(Ca){R(Ca)}ue=void 0}H(Fb,As,5,ue)}if(ob.webcamEventData){d:{var gb=ob.webcamEventData,
Ub=new Bs;try{void 0!==gb.videoFrameRate&&g.F(Ub,1,gb.videoFrameRate);void 0!==gb.videoAspectRatio&&g.F(Ub,2,gb.videoAspectRatio);void 0!==gb.videoHeight&&g.F(Ub,3,gb.videoHeight);void 0!==gb.videoWidth&&g.F(Ub,4,gb.videoWidth);void 0!==gb.videoCaptureCursor&&g.F(Ub,5,gb.videoCaptureCursor);void 0!==gb.videoCaptureSurface&&g.F(Ub,6,gb.videoCaptureSurface);void 0!==gb.videoCaptureAudioEnabled&&g.F(Ub,7,gb.videoCaptureAudioEnabled);var ve=Ub;break d}catch(Ca){R(Ca)}ve=void 0}H(Fb,Bs,6,ve)}var $a=Fb;
break c}catch(Ca){R(Ca)}$a=void 0}H(ac,Fs,5,$a)}var yb=ac;break b}catch(Ca){R(Ca)}yb=void 0}H(h,Gs,10,yb)}if(f.touAppealContext){b:{var yc=f.touAppealContext,Md=new gt;try{void 0!==yc.scope&&g.F(Md,1,yc.scope);if(yc.videoId){var Ob=Md.setVideoId;c:{var we=yc.videoId,vf=new et;try{void 0!==we.externalVideoId&&g.F(vf,1,we.externalVideoId);var Fd=vf;break c}catch(Ca){R(Ca)}Fd=void 0}Ob.call(Md,Fd)}if(yc.videoThumbnailId){c:{var xe=yc.videoThumbnailId,Sf=new ft;try{void 0!==xe.externalVideoId&&g.F(Sf,
1,xe.externalVideoId);void 0!==xe.thumbnailVersion&&g.F(Sf,3,xe.thumbnailVersion);void 0!==xe.checksum&&g.F(Sf,4,xe.checksum);var lc=Sf;break c}catch(Ca){R(Ca)}lc=void 0}Ld(Md,ft,3,N2,lc)}if(yc.playlistId){c:{var We=yc.playlistId,Yc=new dt;try{void 0!==We.externalPlaylistId&&g.F(Yc,1,We.externalPlaylistId);var Ie=Yc;break c}catch(Ca){R(Ca)}Ie=void 0}Ld(Md,dt,4,N2,Ie)}void 0!==yc.urlHostname&&g.Hd(Md,5,N2,yc.urlHostname);void 0!==yc.encodedTouViolativeContentId&&g.F(Md,6,yc.encodedTouViolativeContentId);
void 0!==yc.encodedChannelTouViolativeContentId&&g.F(Md,7,yc.encodedChannelTouViolativeContentId);var Tf=Md;break b}catch(Ca){R(Ca)}Tf=void 0}H(h,gt,11,Tf)}if(f.dragAndDropContext){b:{var Xe=f.dragAndDropContext,pg=new us;try{if(Xe.rootVe){var Wa=jz(Xe.rootVe);H(pg,ts,1,Wa)}if(Xe.ve){var li=jz(Xe.ve);H(pg,ts,2,li)}var mi=pg;break b}catch(Ca){R(Ca)}mi=void 0}H(h,us,12,mi)}if(f.socialSuggestionsContext){b:{var qg=f.socialSuggestionsContext,Tc=new ct;try{void 0!==qg.socialSuggestionsType&&g.F(Tc,1,s4a[qg.socialSuggestionsType]);
void 0!==qg.suggestionSelected&&g.F(Tc,2,qg.suggestionSelected);void 0!==qg.source&&g.F(Tc,3,t4a[qg.source]);var jd=Tc;break b}catch(Ca){R(Ca)}jd=void 0}H(h,ct,13,jd)}if(f.featureEnablementContext){b:{var rg=f.featureEnablementContext,sg=new vs;try{void 0!==rg.feature&&g.F(sg,1,yra[rg.feature]);var ni=sg;break b}catch(Ca){R(Ca)}ni=void 0}H(h,vs,14,ni)}if(f.iapContext){b:{var Je=f.iapContext,kd=new xs;try{if(Je.playIapProduct){c:{var Uf=Je.playIapProduct,Jh=new ys;try{void 0!==Uf.packageId&&g.F(Jh,
1,Uf.packageId);void 0!==Uf.productId&&g.F(Jh,2,Uf.productId);var oi=Jh;break c}catch(Ca){R(Ca)}oi=void 0}Ld(kd,ys,1,d4a,oi)}void 0!==Je.source&&g.F(kd,2,g4a[Je.source]);void 0!==Je.attributionId&&g.F(kd,3,Je.attributionId);void 0!==Je.externalVideoId&&g.F(kd,4,Je.externalVideoId);void 0!==Je.externalChannelId&&g.F(kd,5,Je.externalChannelId);var Kh=kd;break b}catch(Ca){R(Ca)}Kh=void 0}H(h,xs,15,Kh)}if(f.shoppingCheckoutContext){b:{var pi=f.shoppingCheckoutContext,Vj=new at;try{if(pi.shoppingFlowParams){c:{var fl=
pi.shoppingFlowParams,gl=new $s;try{void 0!==fl.ypcCallerPage&&g.F(gl,1,x4a[fl.ypcCallerPage]);var hl=gl;break c}catch(Ca){R(Ca)}hl=void 0}H(Vj,$s,1,hl)}void 0!==pi.shoppingCheckoutErrorReason&&g.F(Vj,2,r4a[pi.shoppingCheckoutErrorReason]);var il=Vj;break b}catch(Ca){R(Ca)}il=void 0}H(h,at,16,il)}if(f.ypcCancellationContext){b:{var Wj=f.ypcCancellationContext,qi=new nt;try{void 0!==Wj.itemType&&g.F(qi,1,zz[Wj.itemType]);void 0!==Wj.productType&&g.F(qi,2,Az[Wj.productType]);var ri=qi;break b}catch(Ca){R(Ca)}ri=
void 0}H(h,nt,17,ri)}if(f.ypcBrowseOffersContext){b:{var Lh=f.ypcBrowseOffersContext,Vf=new mt;try{if(Lh.commerceFlowLoggingParams){var Wf=dsa(Lh.commerceFlowLoggingParams);H(Vf,lt,1,Wf)}void 0!==Lh.offerType&&g.F(Vf,2,z3a[Lh.offerType]);void 0!==Lh.entityType&&g.F(Vf,3,$3a[Lh.entityType]);var ke=Vf;break b}catch(Ca){R(Ca)}ke=void 0}H(h,mt,18,ke)}if(f.mdxStreamTransferContext){b:{var si=f.mdxStreamTransferContext,Em=new Js;try{void 0!==si.completedReason&&g.F(Em,1,o4a[si.completedReason]);var jl=
Em;break b}catch(Ca){R(Ca)}jl=void 0}H(h,Js,19,jl)}if(f.pdgBuyFlowContext){b:{var ye=f.pdgBuyFlowContext,Ng=new Xs;try{void 0!==ye.productType&&g.F(Ng,1,Az[ye.productType]);if(ye.entryPointClickedContext){c:{var lh=ye.entryPointClickedContext,Xf=new Vs;try{void 0!==lh.superVodBuyFlowEntryPoint&&g.Hd(Xf,1,M2,I4a[lh.superVodBuyFlowEntryPoint]);void 0!==lh.superChatBuyFlowEntryPoint&&g.Hd(Xf,2,M2,G4a[lh.superChatBuyFlowEntryPoint]);void 0!==lh.sharedPdgBuyFlowEntryPoint&&g.Hd(Xf,3,M2,F4a[lh.sharedPdgBuyFlowEntryPoint]);
void 0!==lh.superStickerBuyFlowEntryPoint&&g.Hd(Xf,4,M2,H4a[lh.superStickerBuyFlowEntryPoint]);var Xj=Xf;break c}catch(Ca){R(Ca)}Xj=void 0}H(Ng,Vs,2,Xj)}if(ye.itemSelectionPageDisplayedContext){c:{var gj=ye.itemSelectionPageDisplayedContext,kl=new Ws;try{void 0!==gj.superStickerBuyFlowType&&g.F(kl,1,J4a[gj.superStickerBuyFlowType]);var hj=kl;break c}catch(Ca){R(Ca)}hj=void 0}H(Ng,Ws,3,hj)}var Fm=Ng;break b}catch(Ca){R(Ca)}Fm=void 0}H(h,Xs,20,Fm)}if(f.ypcPurchaseContext){b:{var xf=f.ypcPurchaseContext,
ij=new ot;try{if(xf.commerceFlowLoggingParams){var Fa=dsa(xf.commerceFlowLoggingParams);H(ij,lt,1,Fa)}void 0!==xf.offerType&&g.F(ij,2,z3a[xf.offerType]);void 0!==xf.transactionType&&g.F(ij,3,w4a[xf.transactionType]);void 0!==xf.paymentProcessor&&g.F(ij,4,A3a[xf.paymentProcessor]);var mE=ij;break b}catch(Ca){R(Ca)}mE=void 0}H(h,ot,21,mE)}if(f.webViewContext){b:{var wl=f.webViewContext,wq=new jt;try{void 0!==wl.hostname&&g.F(wq,1,wl.hostname);void 0!==wl.webViewUseCase&&g.F(wq,2,Q4a[wl.webViewUseCase]);
void 0!==wl.isLoaded&&g.F(wq,3,wl.isLoaded);void 0!==wl.webViewEngagementSec&&g.F(wq,4,wl.webViewEngagementSec);var xo=wq;break b}catch(Ca){R(Ca)}xo=void 0}H(h,jt,22,xo)}if(f.videoSuggestionsContext){b:{var yo=f.videoSuggestionsContext,Gt=new ht;try{void 0!==yo.type&&g.F(Gt,1,v3a[yo.type]);void 0!==yo.serializedSuggestionData&&Pd(Gt,2,yo.serializedSuggestionData);void 0!==yo.videoId&&Gt.setVideoId(yo.videoId);var Lx=Gt;break b}catch(Ca){R(Ca)}Lx=void 0}H(h,ht,23,Lx)}if(f.actionSheetContext){b:{var nE=
f.actionSheetContext,oE=new rs;try{void 0!==nE.parentScreenUiType&&g.F(oE,1,nE.parentScreenUiType);var Mx=oE;break b}catch(Ca){R(Ca)}Mx=void 0}H(h,rs,24,Mx)}var pE=h;break a}catch(Ca){R(Ca)}pE=void 0}H(b,pt,3,pE)}void 0!==a.flowType&&g.F(b,4,f4a[a.flowType]);void 0!==a.flowEventStatus&&g.F(b,5,a.flowEventStatus);void 0!==a.csn&&g.F(b,6,a.csn);void 0!==a.can&&g.F(b,7,a.can);return b}catch(Ca){R(Ca)}},
idbQuotaExceeded:function(a){var b=new xt;try{return void 0!==a.deviceStorageUsageMbytes&&g.F(b,1,a.deviceStorageUsageMbytes),void 0!==a.deviceStorageQuotaMbytes&&g.F(b,2,a.deviceStorageQuotaMbytes),void 0!==a.isIframe&&g.F(b,3,a.isIframe),void 0!==a.isSw&&g.F(b,4,a.isSw),void 0!==a.dbName&&g.F(b,5,a.dbName),void 0!==a.objectStoreNames&&g.F(b,6,a.objectStoreNames),void 0!==a.transactionCount&&g.F(b,7,a.transactionCount),void 0!==a.transactionMode&&g.F(b,8,a.transactionMode),b}catch(c){R(c)}},
idbTransactionAborted:function(a){var b=new zt;try{return void 0!==a.objectStoreNames&&g.F(b,1,a.objectStoreNames),void 0!==a.hasWindowUnloaded&&g.F(b,2,a.hasWindowUnloaded),void 0!==a.transactionCount&&g.F(b,3,a.transactionCount),void 0!==a.transactionDuration&&g.F(b,4,a.transactionDuration),void 0!==a.dbDuration&&g.F(b,5,a.dbDuration),b}catch(c){R(c)}},
streamzIncremented:function(a){var b=new ju;try{return void 0!==a.serializedIncrementBatch&&Pd(b,1,a.serializedIncrementBatch),b}catch(c){R(c)}},
sliEventBatch:function(a){var b=new ks;try{a.loggedEvents&&bz(b.j.bind(b),a.loggedEvents,Gsa);a.unloggedEvents&&bz(b.C.bind(b),a.unloggedEvents,Gsa);void 0!==a.playerClientVersion&&g.F(b,3,a.playerClientVersion);void 0!==a.playerCanaryState&&g.F(b,4,Z3a[a.playerCanaryState]);if(a.dimensions){a:{var c=a.dimensions,d=new js;try{void 0!==c.playerClientVersion&&g.F(d,1,c.playerClientVersion);void 0!==c.playerCanaryState&&g.F(d,2,Z3a[c.playerCanaryState]);var e=d;break a}catch(f){R(f)}e=void 0}H(b,js,
5,e)}return b}catch(f){R(f)}},
playbackAssociated:function(a){var b=new Ct;try{void 0!==a.cpn&&g.F(b,1,a.cpn);if(a.playbackVe){var c=jz(a.playbackVe);H(b,ts,2,c)}void 0!==a.csn&&g.F(b,3,a.csn);if(a.queueInfo){a:{var d=a.queueInfo,e=new Dt;try{if(d.enqueueingVe){var f=jz(d.enqueueingVe);H(e,ts,1,f)}void 0!==d.enqueueingCsn&&g.F(e,2,d.enqueueingCsn);void 0!==d.clientEnqueueingTimeMs&&g.F(e,3,d.clientEnqueueingTimeMs);var h=e;break a}catch(l){R(l)}h=void 0}H(b,Dt,4,h)}return b}catch(l){R(l)}},
autoplayTriggered:function(a){var b=new ms;try{return void 0!==a.intentional&&g.F(b,1,a.intentional),b}catch(c){R(c)}},
webPlayerApiCalled:function(a){var b=new ku;try{return void 0!==a.callerUrl&&g.F(b,1,a.callerUrl),void 0!==a.methodName&&g.F(b,2,a.methodName),void 0!==a.origin&&g.F(b,3,a.origin),void 0!==a.playerStyle&&g.F(b,4,a.playerStyle),b}catch(c){R(c)}},
embedsAdEvent:function(a){var b=new ls;try{return void 0!==a.eventType&&g.F(b,1,b4a[a.eventType]),void 0!==a.breakType&&g.F(b,2,a4a[a.breakType]),void 0!==a.packageName&&g.F(b,3,a.packageName),void 0!==a.embedUrl&&g.F(b,4,a.embedUrl),void 0!==a.adSource&&g.F(b,5,c4a[a.adSource]),void 0!==a.youtubeHost&&g.F(b,6,a.youtubeHost),b}catch(c){R(c)}},
embedsShouldRequestStorageAccessResult:function(a){var b=new ps;try{return void 0!==a.result&&g.F(b,1,a.result),void 0!==a.returnsUndefined&&g.F(b,2,a.returnsUndefined),b}catch(c){R(c)}},
embedsRequestStorageAccessState:function(a){var b=new os;try{return void 0!==a.isCued&&g.F(b,1,a.isCued),void 0!==a.isAutoplayBlocked&&g.F(b,2,a.isAutoplayBlocked),b}catch(c){R(c)}},
embedsRequestStorageAccessFailedState:function(a){var b=new ns;try{return void 0!==a.state&&b.Oc(a.state),b}catch(c){R(c)}},
heartbeatActionPlayerHalted:function(a){var b=new ut;try{return void 0!==a.serializedServerContext&&Pd(b,1,a.serializedServerContext),void 0!==a.enforcedPolicyToHaltOnNetworkFailure&&g.F(b,2,a.enforcedPolicyToHaltOnNetworkFailure),b}catch(c){R(c)}},
heartbeatActionPlayerTransitioned:function(a){var b=new vt;try{return void 0!==a.reason&&g.F(b,1,h4a[a.reason]),void 0!==a.trigger&&g.F(b,2,i4a[a.trigger]),void 0!==a.serializedServerContext&&Pd(b,3,a.serializedServerContext),b}catch(c){R(c)}},
embedsItpWatchLaterResult:function(a){var b=new qs;try{return void 0!==a.accepted&&g.F(b,1,a.accepted),b}catch(c){R(c)}},
html5PlayerHealthEvent:function(a){var b=new wt;try{return void 0!==a.started&&g.F(b,1,a.started),void 0!==a.stateAtSend&&g.F(b,2,v4a[a.stateAtSend]),void 0!==a.joinLatencySecs&&g.F(b,4,a.joinLatencySecs),void 0!==a.playTimeSecs&&g.F(b,5,a.playTimeSecs),void 0!==a.rebufferTimeSecs&&g.F(b,6,a.rebufferTimeSecs),void 0!==a.playerCanaryType&&g.F(b,7,j4a[a.playerCanaryType]),void 0!==a.isAd&&g.F(b,8,a.isAd),void 0!==a.liveMode&&g.F(b,9,u4a[a.liveMode]),void 0!==a.isGapless&&g.F(b,10,a.isGapless),void 0!==
a.hasDrm&&g.F(b,11,a.hasDrm),void 0!==a.seekCount&&g.F(b,12,a.seekCount),void 0!==a.networkErrorCount&&g.F(b,13,a.networkErrorCount),void 0!==a.nonNetworkErrorCount&&g.F(b,14,a.nonNetworkErrorCount),void 0!==a.isServerStitchedDai&&g.F(b,15,a.isServerStitchedDai),b}catch(c){R(c)}},
adsClientStateChange:function(a){var b=new ir;try{if(a.cuepointTrigger){a:{var c=a.cuepointTrigger,d=new Yq;try{void 0!==c.type&&g.F(d,1,O3a[c.type]);void 0!==c.event&&g.F(d,2,N3a[c.event]);void 0!==c.cuepointId&&g.F(d,3,c.cuepointId);void 0!==c.totalCueDurationMs&&g.F(d,4,c.totalCueDurationMs);void 0!==c.playheadTimeMs&&g.F(d,5,c.playheadTimeMs);void 0!==c.cueStartTimeMs&&g.F(d,6,c.cueStartTimeMs);void 0!==c.cuepointReceivedTimeMs&&g.F(d,7,c.cuepointReceivedTimeMs);void 0!==c.contentCpn&&g.F(d,8,
c.contentCpn);void 0!==c.externalChannelId&&g.F(d,9,c.externalChannelId);var e=d;break a}catch(Ra){R(Ra)}e=void 0}Ld(b,Yq,1,L2,e)}if(a.daiStateTrigger){a:{var f=a.daiStateTrigger,h=new cr;try{void 0!==f.contentCpn&&g.F(h,1,f.contentCpn);void 0!==f.totalCueDurationMs&&g.F(h,2,f.totalCueDurationMs);void 0!==f.filledAdsDurationMs&&g.F(h,3,f.filledAdsDurationMs);void 0!==f.cueStartChange&&g.F(h,4,U3a[f.cueStartChange]);void 0!==f.cueDurationChange&&g.F(h,5,S3a[f.cueDurationChange]);void 0!==f.cueDurationChangeReason&&
g.F(h,6,T3a[f.cueDurationChangeReason]);void 0!==f.errorType&&g.F(h,7,V3a[f.errorType]);void 0!==f.externalChannelId&&g.F(h,8,f.externalChannelId);if(f.adClientData){var l=xz(f.adClientData);H(h,Rq,9,l)}var m=h;break a}catch(Ra){R(Ra)}m=void 0}Ld(b,cr,2,L2,m)}if(a.daiAdBreakCriticalError){a:{var n=a.daiAdBreakCriticalError,p=new Zq;try{void 0!==n.contentCpn&&g.F(p,1,n.contentCpn);void 0!==n.errorType&&g.F(p,2,V3a[n.errorType]);void 0!==n.externalChannelId&&g.F(p,3,n.externalChannelId);void 0!==n.msg&&
g.F(p,4,n.msg);void 0!==n.cueIdentifier&&g.F(p,5,n.cueIdentifier);var q=p;break a}catch(Ra){R(Ra)}q=void 0}Ld(b,Zq,3,L2,q)}if(a.daiAdBreakWarning){a:{var r=a.daiAdBreakWarning,w=new ar;try{void 0!==r.contentCpn&&g.F(w,1,r.contentCpn);void 0!==r.errorType&&g.F(w,2,V3a[r.errorType]);void 0!==r.externalChannelId&&g.F(w,3,r.externalChannelId);void 0!==r.msg&&g.F(w,4,r.msg);void 0!==r.cueIdentifier&&g.F(w,5,r.cueIdentifier);var y=w;break a}catch(Ra){R(Ra)}y=void 0}Ld(b,ar,4,L2,y)}if(a.daiAdBreakInfo){a:{var z=
a.daiAdBreakInfo,B=new $q;try{void 0!==z.contentCpn&&g.F(B,1,z.contentCpn);void 0!==z.totalCueDurationMs&&g.F(B,2,z.totalCueDurationMs);void 0!==z.filledAdsDurationMs&&g.F(B,3,z.filledAdsDurationMs);void 0!==z.cueStartChange&&g.F(B,4,U3a[z.cueStartChange]);void 0!==z.cueDurationChange&&g.F(B,5,S3a[z.cueDurationChange]);void 0!==z.cueDurationChangeReason&&g.F(B,6,T3a[z.cueDurationChangeReason]);void 0!==z.externalChannelId&&g.F(B,7,z.externalChannelId);void 0!==z.cueIdentifier&&g.F(B,8,z.cueIdentifier);
void 0!==z.infoType&&g.F(B,9,W3a[z.infoType]);void 0!==z.msg&&g.F(B,10,z.msg);void 0!==z.filledAdCount&&g.F(B,11,z.filledAdCount);var D=B;break a}catch(Ra){R(Ra)}D=void 0}Ld(b,$q,5,L2,D)}if(a.visibilityErrorDebugInfo){a:{var G=a.visibilityErrorDebugInfo,E=new hr;try{void 0!==G.elementName&&g.F(E,1,G.elementName);void 0!==G.contentVideoPlaybackEventId&&g.F(E,2,G.contentVideoPlaybackEventId);void 0!==G.errorList&&g.F(E,3,G.errorList);void 0!==G.htmlDump&&g.F(E,4,G.htmlDump);var J=E;break a}catch(Ra){R(Ra)}J=
void 0}Ld(b,hr,6,L2,J)}if(a.playbackTimelineAdBreakStateTrigger){a:{var M=a.playbackTimelineAdBreakStateTrigger,P=new gr;try{void 0!==M.cueIdentifier&&g.F(P,1,M.cueIdentifier);void 0!==M.timestampUnixEpochSec&&g.F(P,2,M.timestampUnixEpochSec);void 0!==M.adRequestState&&g.F(P,3,P3a[M.adRequestState]);void 0!==M.segmentState&&g.F(P,4,Q3a[M.segmentState]);void 0!==M.timestampUnixEpochMs&&g.F(P,5,M.timestampUnixEpochMs);var X=P;break a}catch(Ra){R(Ra)}X=void 0}Ld(b,gr,7,L2,X)}if(a.extraLongAdBreakDebugInfo){a:{var W=
a.extraLongAdBreakDebugInfo,S=new fr;try{void 0!==W.contentVideoPlaybackEventId&&g.F(S,1,W.contentVideoPlaybackEventId);if(W.adPlacementKindCuepointInitiatedCueRange){var ca=yz(W.adPlacementKindCuepointInitiatedCueRange);H(S,er,2,ca)}if(W.adPlacementConfigImpliedCueRange){var O=yz(W.adPlacementConfigImpliedCueRange);H(S,er,3,O)}if(W.adPlacementKindMillisecondsInitiatedCueRange){var xa=yz(W.adPlacementKindMillisecondsInitiatedCueRange);H(S,er,4,xa)}void 0!==W.cueIdentifier&&g.F(S,5,W.cueIdentifier);
var la=S;break a}catch(Ra){R(Ra)}la=void 0}Ld(b,fr,8,L2,la)}if(a.comparePyvAdTagInfo){a:{var ta=a.comparePyvAdTagInfo,La=new Xq;try{void 0!==ta.pyvAdTagUrlFromPlayer&&g.F(La,1,ta.pyvAdTagUrlFromPlayer);void 0!==ta.pyvAdTagUrlFromWatchNext&&g.F(La,2,ta.pyvAdTagUrlFromWatchNext);var cb=La;break a}catch(Ra){R(Ra)}cb=void 0}Ld(b,Xq,9,L2,cb)}if(a.driftRecoveryInfo){a:{var va=a.driftRecoveryInfo,Ha=new dr;try{void 0!==va.contentCpn&&g.F(Ha,1,va.contentCpn);void 0!==va.cueIdentifier&&g.F(Ha,2,va.cueIdentifier);
void 0!==va.driftRecoveryMs&&g.F(Ha,3,va.driftRecoveryMs);void 0!==va.breakDurationMs&&g.F(Ha,4,va.breakDurationMs);void 0!==va.driftFromHeadMs&&g.F(Ha,5,va.driftFromHeadMs);void 0!==va.appliedDriftRecoveryMs&&g.F(Ha,6,va.appliedDriftRecoveryMs);void 0!==va.destinationMs&&g.F(Ha,7,va.destinationMs);if(va.adClientData){var Xb=xz(va.adClientData);H(Ha,Rq,8,Xb)}var kb=Ha;break a}catch(Ra){R(Ra)}kb=void 0}Ld(b,dr,10,L2,kb)}if(a.adsClientEvent){a:{var cc=a.adsClientEvent,Nc=new Wq;try{void 0!==cc.eventType&&
g.F(Nc,1,M3a[cc.eventType]);if(cc.adClientData){var Yb=xz(cc.adClientData);H(Nc,Rq,3,Yb)}void 0!==cc.serializedAdServingData&&Pd(Nc,4,cc.serializedAdServingData);void 0!==cc.eventOrder&&g.F(Nc,5,cc.eventOrder);void 0!==cc.serializedSlotAdServingData&&Pd(Nc,6,cc.serializedSlotAdServingData);if(cc.errorInfo){b:{var vb=cc.errorInfo,Za=new Vq;try{void 0!==vb.errorType&&g.F(Za,1,L3a[vb.errorType]);void 0!==vb.errorMessage&&g.F(Za,2,K3a[vb.errorMessage]);var qd=Za;break b}catch(Ra){R(Ra)}qd=void 0}H(Nc,
Vq,7,qd)}var Rc=Nc;break a}catch(Ra){R(Ra)}Rc=void 0}Ld(b,Wq,11,L2,Rc)}if(a.daiAdStateTracking){a:{var $b=a.daiAdStateTracking,Bb=new br;try{void 0!==$b.eventType&&g.F(Bb,1,R3a[$b.eventType]);void 0!==$b.contentCpn&&g.F(Bb,2,$b.contentCpn);void 0!==$b.externalChannelId&&g.F(Bb,3,$b.externalChannelId);void 0!==$b.adCpn&&g.F(Bb,4,$b.adCpn);void 0!==$b.adCount&&g.F(Bb,5,$b.adCount);void 0!==$b.msg&&g.F(Bb,6,$b.msg);var Dd=Bb;break a}catch(Ra){R(Ra)}Dd=void 0}Ld(b,br,12,L2,Dd)}if(a.adTrimmingInfo){a:{var id=
a.adTrimmingInfo,hc=new Sq;try{void 0!==id.contentCpn&&g.F(hc,1,id.contentCpn);void 0!==id.cueIdentifier&&g.F(hc,2,id.cueIdentifier);id.adMediaInfo&&bz(hc.j.bind(hc),id.adMediaInfo,Zra);var ac=hc;break a}catch(Ra){R(Ra)}ac=void 0}Ld(b,Sq,13,L2,ac)}if(a.adsAttributionEvent){a:{var ob=a.adsAttributionEvent,Fb=new Uq;try{void 0!==ob.errorCode&&g.F(Fb,1,X3a[ob.errorCode]);void 0!==ob.attributionStep&&g.F(Fb,2,Y3a[ob.attributionStep]);void 0!==ob.innerErrorDomain&&g.F(Fb,3,ob.innerErrorDomain);void 0!==
ob.innerErrorCode&&g.F(Fb,4,ob.innerErrorCode);var kc=Fb;break a}catch(Ra){R(Ra)}kc=void 0}Ld(b,Uq,14,L2,kc)}return b}catch(Ra){R(Ra)}},
offlineTransferStatusChanged:uqa,offlineStateSnapshot:function(a){var b=new iu;try{a.offlineVideos&&bz(b.C.bind(b),a.offlineVideos,Rqa);a.offlinePlaylists&&bz(b.j.bind(b),a.offlinePlaylists,Tqa);void 0!==a.freeDiskSpaceBytes&&g.F(b,3,a.freeDiskSpaceBytes);void 0!==a.lastOfflineUsageTimeMs&&g.F(b,4,a.lastOfflineUsageTimeMs);void 0!==a.lastOfflinePlaybackTimeMs&&g.F(b,5,a.lastOfflinePlaybackTimeMs);void 0!==a.lastOfflineSaveTimeMs&&g.F(b,6,a.lastOfflineSaveTimeMs);void 0!==a.lastOfflineDownloadSuccessTimeMs&&
g.F(b,7,a.lastOfflineDownloadSuccessTimeMs);void 0!==a.isBatteryCharging&&g.F(b,8,a.isBatteryCharging);void 0!==a.detailedNetworkType&&g.F(b,9,fz[a.detailedNetworkType]);void 0!==a.batteryLevelPercentage&&g.F(b,10,a.batteryLevelPercentage);void 0!==a.isPostMigrationState&&g.F(b,11,a.isPostMigrationState);if(a.offlineCacheVerificationFailure){a:{var c=a.offlineCacheVerificationFailure,d=new Vt;try{void 0!==c.numUncachedVideos&&g.F(d,1,c.numUncachedVideos);void 0!==c.numTotalCompletedVideos&&g.F(d,
2,c.numTotalCompletedVideos);c.uncachedVideos&&bz(d.j.bind(d),c.uncachedVideos,Vqa);var e=d;break a}catch(q){R(q)}e=void 0}H(b,Vt,12,e)}if(a.additionalOfflineClientState){a:{var f=a.additionalOfflineClientState,h=new au;try{if(f.mainAppAdditionalOfflineClientState){b:{var l=f.mainAppAdditionalOfflineClientState,m=new $t;try{l.downloadRecsVideos&&bz(m.j.bind(m),l.downloadRecsVideos,Wqa);l.smartDownloadVideos&&bz(m.C.bind(m),l.smartDownloadVideos,Xqa);var n=m;break b}catch(q){R(q)}n=void 0}H(h,$t,1,
n)}var p=h;break a}catch(q){R(q)}p=void 0}H(b,au,13,p)}return b}catch(q){R(q)}}},OUa={adNotify:function(a,b,c){var d=new nu;
Ld(d,Aq,184,$y,a);c?Yy(d,c,b):Zy(d,b)},
biscottiBasedDetection:function(a,b,c){var d=new nu;Ld(d,Yr,439,$y,a);c?Yy(d,c,b):Zy(d,b)},
adNotifyFilled:function(a,b,c){var d=new nu;Ld(d,zq,300,$y,a);c?Yy(d,c,b):Zy(d,b)},
idbTransactionEnded:function(a,b,c){var d=new nu;Ld(d,At,352,$y,a);c?Yy(d,c,b):Zy(d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=new nu;Ld(d,Bt,348,$y,a);c?Yy(d,c,b):Zy(d,b)},
flowEvent:function(a,b,c){var d=new nu;Ld(d,rt,304,$y,a);c?Yy(d,c,b):Zy(d,b)},
idbQuotaExceeded:function(a,b,c){var d=new nu;Ld(d,xt,351,$y,a);c?Yy(d,c,b):Zy(d,b)},
idbTransactionAborted:function(a,b,c){var d=new nu;Ld(d,zt,353,$y,a);c?Yy(d,c,b):Zy(d,b)},
streamzIncremented:function(a,b,c){var d=new nu;Ld(d,ju,126,$y,a);c?Yy(d,c,b):Zy(d,b)},
sliEventBatch:function(a,b,c){var d=new nu;Ld(d,ks,344,$y,a);c?Yy(d,c,b):Zy(d,b)},
playbackAssociated:Lpa,autoplayTriggered:function(a,b,c){var d=new nu;Ld(d,ms,209,$y,a);c?Yy(d,c,b):Zy(d,b)},
webPlayerApiCalled:function(a,b,c){var d=new nu;Ld(d,ku,76,$y,a);c?Yy(d,c,b):Zy(d,b)},
embedsAdEvent:function(a,b,c){var d=new nu;Ld(d,ls,327,$y,a);c?Yy(d,c,b):Zy(d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=new nu;Ld(d,ps,251,$y,a);c?Yy(d,c,b):Zy(d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=new nu;Ld(d,os,256,$y,a);c?Yy(d,c,b):Zy(d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=new nu;Ld(d,ns,257,$y,a);c?Yy(d,c,b):Zy(d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=new nu;Ld(d,ut,332,$y,a);c?Yy(d,c,b):Zy(d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=new nu;Ld(d,vt,330,$y,a);c?Yy(d,c,b):Zy(d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=new nu;Ld(d,qs,266,$y,a);c?Yy(d,c,b):Zy(d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=new nu;Ld(d,wt,293,$y,a);c?Yy(d,c,b):Zy(d,b)},
adsClientStateChange:function(a,b,c){var d=new nu;Ld(d,ir,197,$y,a);c?Yy(d,c,b):Zy(d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=new nu;Ld(d,Ps,2,$y,a);c?Yy(d,c,b):Zy(d,b)},
offlineStateSnapshot:function(a,b,c){var d=new nu;Ld(d,iu,22,$y,a);c?Yy(d,c,b):Zy(d,b)}};var PUa=!1,Bz=void 0,Cz=void 0,Ksa=g.yx;var Lsa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Qsa={};g.v(Jz,g.K);Jz.prototype.S=function(a,b,c,d,e){c=Cu((0,g.Pa)(c,d||this.ib));c={target:a,name:b,callback:c};var f;e&&Ssa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.J.push(c);return c};
Jz.prototype.zc=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}};
Jz.prototype.ra=function(){g.Lz(this);g.K.prototype.ra.call(this)};g.Ta(g.Mz,g.K);g.Mz.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.gh.subscribe(a,b,c)};
g.Mz.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.gh.unsubscribe(a,b,c)};
g.Mz.prototype.Zg=function(a){return this.isDisposed()?!1:this.gh.Zg(a)};
g.Mz.prototype.ma=function(a,b){return this.isDisposed()?!1:this.gh.ma.apply(this.gh,arguments)};g.v(g.Qz,g.Mz);g.k=g.Qz.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.ma("dragend",0,0,null));this.u&&(this.u=!1,this.ma("hoverend",0,0,null),Sz(this),Pz(this))};
g.k.CR=function(a){Sz(this);Rz(this,Tz("move"),this.AR);Rz(this,Tz("out"),this.BR);Rz(this,"touchstart",this.nM);this.j&&Rz(this,Tz("down"),this.VJ);var b=g.Gx(a);a=Jx(a);this.u=!0;this.ma("hoverstart",a.x,a.y,b);this.ma("hovermove",a.x,a.y,b)};
g.k.AR=function(a){var b=g.Gx(a);a=Jx(a);if(this.D){var c=this.D;this.D=null;if(Ix(c)==b&&Fg(Jx(c),a))return}this.ma("hovermove",a.x,a.y,b)};
g.k.BR=function(a){var b=Jx(a),c=Ix(a);try{if(c&&g.hh(this.I,c)){this.D=a;this.ma("hovermove",b.x,b.y,c);return}}catch(d){}Sz(this);Pz(this);this.u=!1;this.ma("hoverend",b.x,b.y,c)};
g.k.K_=function(a){this.CR(a);this.VJ(a)};
g.k.VJ=function(a){if("number"!==typeof a.button||0==a.button){Sz(this);this.C.S(document,Tz("move"),this.J_);this.C.S(document,Tz("up"),this.O_);var b=g.Gx(a);if(g.df)Rz(this,"dragstart",this.WY);else if(g.Kx(a),(g.tH||Jl)&&b)a:{for(var c=b;c;){if(jh(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=Jx(a);this.ma("dragstart",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)}};
g.k.WY=function(a){g.Kx(a)};
g.k.J_=function(a){var b=g.Gx(a);b==document&&(b=null);a=Jx(a);this.ma("hovermove",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)};
g.k.O_=function(a){Sz(this);this.B=!1;var b=Hx(a),c=g.Gx(a);a=Jx(a);b&&g.hh(this.I,b)?(Rz(this,Tz("move"),this.AR),Rz(this,Tz("out"),this.BR),Rz(this,Tz("down"),this.VJ),Rz(this,"touchstart",this.nM),this.ma("dragend",a.x,a.y,c)):(Pz(this),this.u=!1,this.ma("dragend",a.x,a.y,c),this.ma("hoverend",a.x,a.y,c))};
g.k.nM=function(a){var b=a.changedTouches[0];b&&(Sz(this),Rz(this,"touchmove",this.z4),Rz(this,"touchend",this.eU),Rz(this,"touchcancel",this.eU),this.J=b.identifier,a=g.Gx(a),this.u||(this.u=!0,this.ma("hoverstart",b.pageX,b.pageY,a)),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.ma("dragstart",b.pageX,b.pageY,a),this.ma("dragmove",b.pageX,b.pageY,a)))};
g.k.z4=function(a){var b=Tsa(this,a);b&&(this.j&&g.Kx(a),a=g.Gx(a),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&this.ma("dragmove",b.pageX,b.pageY,a))};
g.k.eU=function(a){var b=Tsa(this,a);if(b){Sz(this);Pz(this);this.u=!1;var c=g.Gx(a);this.j&&(this.T||g.Kx(a),this.B=!1,this.ma("dragend",b.pageX,b.pageY,c));this.ma("hoverend",b.pageX,b.pageY,c)}};
g.k.ra=function(){this.j&&(g.df&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");Sz(this);g.Mz.prototype.ra.call(this)};Uz.prototype.clone=function(){var a=new Uz,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ja(c)?g.yf(c):c}return a};var vIa=["att/get"],oJa=["embedded_player"],Z4a=["share/get_web_player_share_panel"],$4a=["feedback"],a5a=["notification/modify_channel_preference"],STa=["player"],b5a=["browse/edit_playlist"],c5a=["subscription/subscribe"],d5a=["subscription/unsubscribe"],WTa=["next","unplugged/watch_next"];var jFa={Bfa:3611,b5:27686,d5:85013,S5:23462,X5:157557,Y5:42016,Z5:62407,a6:26926,W5:43781,c6:51236,d6:79148,e6:50160,f6:77504,t$:153587,aba:87907,bba:18630,xca:54445,Nca:80935,Pca:152172,oda:105675,pda:150723,qda:37521,rda:147285,sda:47786,Cda:98349,Gda:123695,Sda:6827,aea:29434,Oea:7282,Pea:124448,qga:32276,pga:76278,zga:147868,Aga:147869,Fga:93911,Iga:106531,Jga:27259,Kga:27262,Lga:27263,cha:21759,dha:27107,eha:62936,gha:160866,hha:49568,oha:160789,Aha:38408,Bha:80637,Cha:68727,Dha:68728,Eha:80353,
Fha:80356,Gha:74610,Hha:45707,Iha:83962,Jha:83970,Kha:46713,Lha:89711,Mha:74612,Nha:155792,Oha:93265,Pha:74611,Qha:131380,Sha:128979,Tha:139311,Uha:128978,Rha:131391,Vha:105350,Xha:139312,Yha:134800,Wha:131392,aia:113533,bia:93252,cia:99357,eia:94521,fia:114252,gia:113532,hia:94522,dia:94583,iia:88E3,jia:139580,kia:93253,lia:93254,mia:94387,oia:94388,pia:93255,qia:97424,Zha:72502,ria:110111,sia:76019,uia:117092,via:117093,tia:89431,wia:110466,xia:77240,yia:60508,zia:148123,Aia:148124,Bia:137401,Cia:137402,
Dia:137046,Eia:73393,Fia:113534,Gia:92098,Hia:131381,Iia:84517,Jia:83759,Kia:162711,Lia:162712,Mia:80357,Nia:86113,Oia:72598,Pia:72733,Qia:107349,Ria:124275,Sia:118203,Tia:133275,Uia:160157,Via:152569,Wia:156651,Xia:133274,Yia:160159,Zia:160158,aja:133272,bja:133273,cja:133276,dja:144507,eja:143247,fja:156652,gja:143248,hja:143249,ija:143250,jja:143251,kja:156653,lja:144401,nja:117431,mja:133797,oja:153964,pja:128572,qja:133405,rja:117429,sja:117430,tja:117432,uja:120080,vja:117259,wja:156655,xja:156654,
yja:121692,zja:145656,Aja:156656,Bja:145655,Cja:145653,Dja:145654,Eja:145657,Fja:132972,Gja:133051,Hja:133658,Ija:132971,Jja:97615,Lja:143359,Kja:143356,Nja:143361,Mja:143358,Pja:143360,Oja:143357,Qja:142303,Rja:143353,Sja:143354,Tja:144479,Uja:143355,Vja:31402,Xja:133624,Yja:146477,Zja:133623,aka:133622,Wja:133621,bka:84774,dka:160801,cka:95117,fka:150497,gka:98930,hka:98931,ika:98932,jka:153320,kka:153321,lka:43347,mka:129889,nka:149123,oka:45474,pka:100352,qka:84758,rka:98443,ska:117985,tka:74613,
uka:155911,vka:74614,wka:64502,xka:136032,yka:74615,zka:74616,Aka:122224,Bka:74617,Cka:77820,Dka:74618,Eka:93278,Fka:93274,Gka:93275,Hka:93276,Ika:22110,Jka:29433,Pla:133798,Tla:132295,Wla:120541,Nma:82047,Oma:113550,Pma:75836,Qma:75837,Wma:42352,gna:84512,hna:76065,jna:75989,Qna:51879,Rna:16623,Sna:32594,Tna:27240,aoa:32633,Ara:74858,Pra:156999,Rra:3945,Qra:16989,Sra:45520,Vra:25488,Wra:25492,Xra:25494,xta:55760,yta:14057,zta:18451,Ata:57204,Bta:57203,Cta:17897,Dta:57205,Eta:18198,Fta:17898,Gta:17909,
Hta:43980,Kta:46220,aua:11721,eua:147994,Bua:49954,Gua:96369,Hua:3854,uva:151633,Hva:56251,rV:159108,Sva:25624,Tva:152036,twa:16906,uwa:99999,wwa:68172,xwa:27068,xxa:47973,yxa:72773,zxa:26970,Axa:26971,Bxa:96805,Cxa:17752,Mxa:73233,Rxa:109512,Sxa:22256,Txa:14115,Uxa:22696,Vxa:89278,Wxa:89277,Xxa:109513,Yxa:43278,Zxa:43459,aya:43464,bya:89279,cya:43717,dya:55764,eya:22255,fya:147912,gya:89281,hya:40963,iya:43277,jya:43442,pya:91824,sya:120137,GBa:96367,HBa:36850,IBa:72694,JBa:37414,KBa:36851,OBa:124863,
NBa:121343,RBa:73491,TBa:54473,UBa:166861,VBa:43375,gCa:46674,LCa:143815,MCa:139095,NCa:144402,OCa:149968,PCa:149969,bDa:32473,cDa:72901,dDa:72906,eDa:50947,fDa:50612,gDa:50613,hDa:50942,iDa:84938,jDa:84943,kDa:84939,lDa:84941,mDa:84944,nDa:84940,oDa:84942,pDa:35585,qDa:51926,rDa:79983,sDa:63238,tDa:18921,uDa:63241,vDa:57893,wDa:41182,xDa:135732,yDa:33424,zDa:22207,ADa:42993,BDa:36229,CDa:22206,DDa:22205,EDa:18993,FDa:19001,GDa:18990,HDa:18991,IDa:18997,JDa:18725,KDa:19003,LDa:36874,MDa:44763,NDa:33427,
ODa:67793,PDa:22182,QDa:37091,RDa:34650,SDa:50617,TDa:47261,UDa:22287,VDa:25144,WDa:97917,YDa:62397,ZDa:150871,aEa:150874,bEa:125598,cEa:137935,gEa:36961,hEa:108035,iEa:27426,aFa:27857,bFa:27846,cFa:27854,dFa:69692,eFa:61411,jFa:39299,kFa:38696,lFa:62520,mFa:36382,nFa:108701,oFa:50663,pFa:36387,qFa:14908,rFa:37533,sFa:105443,tFa:61635,uFa:62274,vFa:161670,wFa:133818,xFa:65702,yFa:65703,zFa:65701,AFa:76256,FFa:166382,QFa:37671,RFa:49953,bGa:36216,cGa:28237,dGa:39553,eGa:29222,fGa:26107,gGa:38050,hGa:26108,
jGa:120745,iGa:26109,kGa:26110,lGa:66881,mGa:28236,nGa:14586,sGa:160598,DGa:57929,FGa:74723,GGa:44098,HGa:44099,KGa:23528,LGa:61699,IGa:134104,JGa:134103,MGa:59149,OGa:101951,PGa:97346,QGa:118051,RGa:95102,SGa:64882,TGa:119505,UGa:63595,VGa:63349,WGa:95101,XGa:75240,YGa:27039,ZGa:68823,aHa:21537,bHa:83464,cHa:75707,dHa:83113,eHa:101952,fHa:101953,hHa:79610,MHa:125755,NHa:24402,OHa:24400,PHa:32925,ZHa:57173,UHa:156421,BIa:122502,DIa:145268,EIa:138480,JIa:64423,KIa:64424,OJa:33986,UJa:100828,VJa:129089,
nKa:21409,VLa:135155,XLa:135156,aMa:135157,bMa:135158,cMa:158225,dMa:135159,eMa:135160,fMa:135161,nMa:135162,oMa:135163,mMa:158226,pMa:158227,qMa:135164,rMa:135165,sMa:135166,SLa:11070,TLa:11074,ULa:17880,tMa:14001,RMa:30709,SMa:30707,TMa:30711,UMa:30710,VMa:30708,QMa:26984,WMa:146143,XMa:63648,YMa:63649,ENa:111059,INa:5754,MNa:20445,WNa:151308,XNa:151152,kOa:130975,jOa:130976,COa:110386,IOa:113746,dPa:66557,lPa:17310,mPa:28631,qPa:21589,DPa:164817,EPa:154946,FPa:68012,GPa:162617,HPa:60480,IPa:138664,
JPa:141121,KPa:164502,LPa:31571,MPa:141978,RPa:150105,SPa:150106,TPa:150107,UPa:150108,XPa:76980,bQa:41577,cQa:45469,FQa:38669,GQa:13768,HQa:13777,QQa:141842,RQa:62985,SQa:4724,TQa:59369,UQa:43927,VQa:43928,fRa:12924,hRa:100355,mRa:56219,nRa:27669,oRa:10337,lRa:47896,sRa:122629,CRa:139723,BRa:139722,DRa:121258,ERa:107598,FRa:127991,GRa:96639,HRa:107536,IRa:130169,JRa:96661,KRa:145188,LRa:96658,MRa:116646,NRa:159428,ORa:121122,PRa:96660,QRa:127738,RRa:127083,SRa:155281,TRa:162959,URa:163566,VRa:147842,
sSa:104443,tSa:96659,uSa:147595,vSa:106442,BSa:162776,CSa:134840,HSa:63667,ISa:63668,JSa:63669,KSa:130686,TUa:147036,fVa:78314,gVa:147799,qVa:148649,jWa:55761,kWa:127098,lWa:134841,mXa:96368,rXa:67374,BXa:48992,ZXa:146176,eYa:49956,lYa:31961,mYa:26388,tYa:23811,uYa:5E4,IYa:126250,lZa:96370,H_a:47355,I_a:47356,t1a:37935,w1a:45521,x1a:21760,D1a:83769,F1a:49977,G1a:49974,H1a:93497,I1a:93498,J1a:34325,K1a:140759,L1a:115803,M1a:123707,N1a:100081,O1a:35309,P1a:68314,Q1a:25602,R1a:100339,S1a:143516,f2a:59018,
g2a:18248,h2a:50625,i2a:9729,j2a:37168,k2a:37169,l2a:21667,m2a:16749,n2a:18635,o2a:39305,p2a:18046,H2a:53969,I2a:8213,a3a:93926,r3a:102852,s3a:110099,t3a:22678,u3a:69076,v3a:137575,x3a:139224,y3a:100856,C3a:154430,D3a:17736,E3a:3832,I3a:147111,L3a:55759,M3a:64031,t4a:93044,v4a:93045,F4a:34388,c5a:17657,d5a:17655,e5a:39579,f5a:39578,g5a:77448,h5a:8196,i5a:11357,j5a:69877,k5a:8197,l5a:156512,m5a:161613,n5a:156509,o5a:161612,p5a:161614,r5a:82039};var cta=[{SJ:function(a){return"Cannot read property '"+a.key+"'"},
DE:{Error:[{Ai:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ai:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ai:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ai:/\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"]},{Ai:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ai:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ai:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{SJ:function(a){return"Cannot call '"+a.key+"'"},
DE:{TypeError:[{Ai:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ai:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ai:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ai:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ai:/\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"]},
{Ai:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{SJ:function(a){return a.key+" is not defined"},
DE:{ReferenceError:[{Ai:/(.*) is not defined/,groups:["key"]},{Ai:/Can't find variable: (.*)/,groups:["key"]}]}}];var Ysa={mp:[],aq:[{callback:Vsa,weight:500}]};var Vz;var bA=new g.No;var dta=new Set,ata=0,fta=0,eta=0,bta=[],hta=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var jta=1;cA.prototype.getAsJson=function(){var a={};void 0!==this.kf.trackingParams?a.trackingParams=this.kf.trackingParams:(a.veType=this.kf.veType,void 0!==this.kf.veCounter&&(a.veCounter=this.kf.veCounter),void 0!==this.kf.elementIndex&&(a.elementIndex=this.kf.elementIndex));void 0!==this.kf.dataElement&&(a.dataElement=this.kf.dataElement.getAsJson());void 0!==this.kf.youtubeData&&(a.youtubeData=this.kf.youtubeData);return a};
cA.prototype.getAsJspb=function(){var a=new ts;void 0!==this.kf.trackingParams?a.Ah(this.kf.trackingParams):(void 0!==this.kf.veType&&g.F(a,2,this.kf.veType),void 0!==this.kf.veCounter&&g.F(a,6,this.kf.veCounter),void 0!==this.kf.elementIndex&&g.F(a,3,this.kf.elementIndex));if(void 0!==this.kf.dataElement){var b=this.kf.dataElement.getAsJspb();H(a,ts,7,b)}void 0!==this.kf.youtubeData&&H(a,kq,8,this.kf.jspbYoutubeData);return a};
cA.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
cA.prototype.isClientVe=function(){return!this.kf.trackingParams&&!!this.kf.veType};var eA=Date.now().toString();var U2=g.C.ytLoggingDocDocumentNonce_;U2||(U2=g.gA(16),g.Ea("ytLoggingDocDocumentNonce_",U2));var pta=U2;var pFa={hV:0,Vfa:1,bha:2,XFa:3,Mma:4,w3a:5,gHa:6,iRa:7,kPa:8,BQa:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};g.Ea("yt_logging_screen.getRootVeType",mta);g.Ea("yt_logging_screen.getCurrentCsn",g.kA);g.Ea("yt_logging_screen.getCttAuthInfo",lA);g.Ea("yt_logging_screen.setCurrentScreen",qta);g.v(mA,dx);var tta=new ex("screen-created",mA),qA=[],rta=xta,rA=0;sA.prototype.C=function(a){this.client=a};
sA.prototype.u=function(){this.clear();this.csn=g.kA()};
sA.prototype.clear=function(){this.B.clear();this.j.clear();this.D.clear();this.csn=null};uA.prototype.C=function(a){g.wu("safe_logging_library_killswitch")?this.client=a:Cu(tA().C).bind(tA())(a)};
uA.prototype.clear=function(){g.wu("safe_logging_library_killswitch")?(this.u.clear(),this.j.clear(),this.B.clear(),this.csn=null):Cu(tA().clear).bind(tA())()};wA.prototype.C=function(a){g.wu("use_ts_visibilitylogger")&&vA().C(a)};
wA.prototype.clear=function(){g.wu("use_ts_visibilitylogger")?vA().clear():(this.u.clear(),this.j.clear(),this.B.clear())};
Ia(wA);var yA;g.xA=Rf(function(){var a=new Uo;return a.isAvailable()?new g.Ro(a):null});
yA=Rf(function(){var a=new dla;return a.isAvailable()?new g.Ro(a):null});var Ata=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Bta=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Eta={};g.v(IA,g.K);var Nta={adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}};var Pta=!1;g.v(QA,g.K);QA.prototype.dJ=function(){var a=this.j().LI("SLOT_TYPE_PLAYER_BYTES",1),b=this.Ta.get().dg(1).clientPlaybackNonce,c=!1;a=g.t(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 MA?d.Pb.Jp:void 0;e&&e===b&&(c&&PA("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
QA.prototype.bj=function(a,b,c,d,e,f){var h=this,l=this.Ta.get().dg(1);l.Gs?this.Ha.get().Rs():(JA(this.Ub.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Kta(h.Pd.get(),d,e,a,b,f,l,"")}),J1a(this.hH),RZ(this.Fa.get(),"fetch_bid_for_dclk_status")&&OA("video loaded"))};
QA.prototype.Wl=function(){};var V2={},bB=(V2.AD_MARKER="ytp-ad-progress",V2.CHAPTER_MARKER="ytp-chapter-marker",V2.TIME_MARKER="ytp-time-marker",V2);var sVa=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/)"),Sta=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
tVa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Zta=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
Xta=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)|$))"),Uta=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|(work\\.fife\\.usercontent\\.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/)"),
uVa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Vta=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)"),Tta=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|(work\\.fife\\.usercontent\\.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/.*$)"),
kBa=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)"),
jBa=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\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|stadia\\.google\\.com|artsandculture\\.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)"),
e5a=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|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.cB.prototype.getId=function(){return this.id};
g.cB.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+cua(this.start)+", "+cua(this.end)+"]"};
g.cB.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 bua=1;g.cB.prototype.getId=g.cB.prototype.getId;g.v(gB,g.cB);gB.prototype.deactivate=function(){this.B=!0};
gB.prototype.nw=function(){return this.end-this.start};var f5a;var g5a=g.sb(),h5a=g5a.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!h5a||2>h5a.length)f5a=void 0;else{var i5a=g5a.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);f5a=i5a&&6==i5a.length?Number(i5a[5].replace("_",".")):0}var AJ=f5a,$P=0<=AJ;$P&&0<=g.sb().search("Safari")&&g.sb().search("Version");g.v(lB,Va);g.v(mB,dx);g.v(iua,dx);var oua=new ex("aft-recorded",mB),j5a=new ex("timing-sent",iua);var W2=window,oB=W2.performance||W2.mozPerformance||W2.msPerformance||W2.webkitPerformance||new jua;var nua=!1,aC={'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"},
zua=(0,g.Pa)(oB.clearResourceTimings||oB.webkitClearResourceTimings||oB.mozClearResourceTimings||oB.msClearResourceTimings||oB.oClearResourceTimings||g.Qf,oB);var X2={},tua=(X2.auto_search="LATENCY_ACTION_AUTO_SEARCH",X2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",X2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",X2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",X2.app_startup="LATENCY_ACTION_APP_STARTUP",X2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",X2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",X2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",X2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",
X2.browse="LATENCY_ACTION_BROWSE",X2.cast_splash="LATENCY_ACTION_CAST_SPLASH",X2.channels="LATENCY_ACTION_CHANNELS",X2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",X2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",X2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",X2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",X2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",X2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",
X2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",X2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",X2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",X2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",X2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",X2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",X2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",X2["channel.live_streaming"]=
"LATENCY_ACTION_CREATOR_LIVE_STREAMING",X2.chips="LATENCY_ACTION_CHIPS",X2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",X2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",X2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",X2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",X2.embed="LATENCY_ACTION_EMBED",X2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",X2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",
X2.explore="LATENCY_ACTION_EXPLORE",X2.home="LATENCY_ACTION_HOME",X2.library="LATENCY_ACTION_LIBRARY",X2.live="LATENCY_ACTION_LIVE",X2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",X2.onboarding="LATENCY_ACTION_ONBOARDING",X2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",X2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",X2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",X2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",X2.player_att=
"LATENCY_ACTION_PLAYER_ATTESTATION",X2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",X2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",X2.prebuffer="LATENCY_ACTION_PREBUFFER",X2.prefetch="LATENCY_ACTION_PREFETCH",X2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",X2.profile_switcher="LATENCY_ACTION_LOGIN",X2.reel_watch="LATENCY_ACTION_REEL_WATCH",X2.results="LATENCY_ACTION_RESULTS",X2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",X2.search_ui="LATENCY_ACTION_SEARCH_UI",
X2.search_suggest="LATENCY_ACTION_SUGGEST",X2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",X2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",X2.seek="LATENCY_ACTION_PLAYER_SEEK",X2.settings="LATENCY_ACTION_SETTINGS",X2.store="LATENCY_ACTION_STORE",X2.tenx="LATENCY_ACTION_TENX",X2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",X2.watch="LATENCY_ACTION_WATCH",X2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",X2["watch,watch7"]="LATENCY_ACTION_WATCH",X2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",
X2["watch,watch7ad"]="LATENCY_ACTION_WATCH",X2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",X2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",X2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",X2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",X2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",X2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",X2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",X2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",X2["video.live_settings"]=
"LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",X2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",X2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",X2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",X2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",X2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",X2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",X2),Y2={},uua=(Y2.ad_allowed="adTypesAllowed",Y2.yt_abt=
"adBreakType",Y2.ad_cpn="adClientPlaybackNonce",Y2.ad_docid="adVideoId",Y2.yt_ad_an="adNetworks",Y2.ad_at="adType",Y2.aida="appInstallDataAgeMs",Y2.browse_id="browseId",Y2.p="httpProtocol",Y2.t="transportProtocol",Y2.cs="commandSource",Y2.cpn="clientPlaybackNonce",Y2.ccs="creatorInfo.creatorCanaryState",Y2.ctop="creatorInfo.topEntityType",Y2.csn="clientScreenNonce",Y2.docid="videoId",Y2.GetHome_rid="requestIds",Y2.GetSearch_rid="requestIds",Y2.GetPlayer_rid="requestIds",Y2.GetWatchNext_rid="requestIds",
Y2.GetBrowse_rid="requestIds",Y2.GetLibrary_rid="requestIds",Y2.is_continuation="isContinuation",Y2.is_nav="isNavigation",Y2.b_p="kabukiInfo.browseParams",Y2.is_prefetch="kabukiInfo.isPrefetch",Y2.is_secondary_nav="kabukiInfo.isSecondaryNav",Y2.nav_type="kabukiInfo.navigationType",Y2.prev_browse_id="kabukiInfo.prevBrowseId",Y2.query_source="kabukiInfo.querySource",Y2.voz_type="kabukiInfo.vozType",Y2.yt_lt="loadType",Y2.mver="creatorInfo.measurementVersion",Y2.yt_ad="isMonetized",Y2.nr="webInfo.navigationReason",
Y2.nrsu="navigationRequestedSameUrl",Y2.pnt="performanceNavigationTiming",Y2.prt="playbackRequiresTap",Y2.plt="playerInfo.playbackType",Y2.pis="playerInfo.playerInitializedState",Y2.paused="playerInfo.isPausedOnLoad",Y2.yt_pt="playerType",Y2.fmt="playerInfo.itag",Y2.yt_pl="watchInfo.isPlaylist",Y2.yt_pre="playerInfo.preloadType",Y2.yt_ad_pr="prerollAllowed",Y2.pa="previousAction",Y2.yt_red="isRedSubscriber",Y2.rce="mwebInfo.responseContentEncoding",Y2.rc="resourceInfo.resourceCache",Y2.scrh="screenHeight",
Y2.scrw="screenWidth",Y2.st="serverTimeMs",Y2.ssdm="shellStartupDurationMs",Y2.br_trs="tvInfo.bedrockTriggerState",Y2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",Y2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",Y2.label="tvInfo.label",Y2.is_mdx="tvInfo.isMdx",Y2.preloaded="tvInfo.isPreloaded",Y2.aac_type="tvInfo.authAccessCredentialType",Y2.upg_player_vis="playerInfo.visibilityState",Y2.query="unpluggedInfo.query",Y2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",Y2.yt_vst=
"videoStreamType",Y2.vph="viewportHeight",Y2.vpw="viewportWidth",Y2.yt_vis="isVisible",Y2.rcl="mwebInfo.responseContentLength",Y2.GetSettings_rid="requestIds",Y2.GetTrending_rid="requestIds",Y2.GetMusicSearchSuggestions_rid="requestIds",Y2.REQUEST_ID="requestIds",Y2),vua="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
Z2={},wua=(Z2.ccs="CANARY_STATE_",Z2.mver="MEASUREMENT_VERSION_",Z2.pis="PLAYER_INITIALIZED_STATE_",Z2.yt_pt="LATENCY_PLAYER_",Z2.pa="LATENCY_ACTION_",Z2.ctop="TOP_ENTITY_TYPE_",Z2.yt_vst="VIDEO_STREAM_TYPE_",Z2),xua="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var T={LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,
LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,
LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,
LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,
LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,
LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,
LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,
LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,
LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,
LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,
LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,
LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,
LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,
LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,
LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};T[T.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";T[T.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";T[T.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";T[T.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";T[T.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";
T[T.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";T[T.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";T[T.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";T[T.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";T[T.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";T[T.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";T[T.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";
T[T.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";T[T.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";T[T.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";T[T.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";T[T.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";T[T.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";
T[T.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";T[T.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";T[T.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";T[T.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";T[T.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";
T[T.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";T[T.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";T[T.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";T[T.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";T[T.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";T[T.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";T[T.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";
T[T.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";T[T.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";T[T.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";T[T.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";T[T.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";T[T.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";T[T.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";
T[T.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";T[T.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";T[T.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";T[T.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";T[T.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";T[T.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";
T[T.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";T[T.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";T[T.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";T[T.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";T[T.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";T[T.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";
T[T.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";T[T.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";T[T.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";T[T.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";T[T.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";T[T.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";T[T.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";
T[T.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";T[T.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";T[T.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";T[T.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";T[T.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";T[T.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";
T[T.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";T[T.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";T[T.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";T[T.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";T[T.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";T[T.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";T[T.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";
T[T.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";T[T.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";T[T.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";T[T.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";T[T.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";T[T.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";T[T.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";T[T.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";
T[T.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";T[T.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";T[T.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";T[T.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";T[T.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";T[T.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";T[T.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";
T[T.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";T[T.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";T[T.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";T[T.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";T[T.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";T[T.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";
T[T.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";T[T.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";T[T.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";T[T.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";T[T.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";T[T.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";T[T.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";
T[T.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";T[T.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";T[T.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";T[T.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";T[T.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";T[T.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";T[T.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";
T[T.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";T[T.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";T[T.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";T[T.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";T[T.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";T[T.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";T[T.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";T[T.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";
T[T.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";T[T.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";T[T.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";T[T.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";T[T.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";T[T.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
T[T.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";T[T.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";T[T.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";T[T.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";T[T.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";
T[T.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";T[T.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";T[T.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";T[T.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";
T[T.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";T[T.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";T[T.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";T[T.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";T[T.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";T[T.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";
T[T.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";T[T.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";T[T.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";
T[T.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";T[T.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";T[T.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";T[T.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";T[T.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";T[T.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";
T[T.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";T[T.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";T[T.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";T[T.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";T[T.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";T[T.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";
T[T.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";T[T.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";T[T.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";T[T.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";T[T.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";T[T.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";T[T.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";T[T.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";
T[T.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";T[T.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";T[T.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";T[T.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";T[T.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";T[T.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";T[T.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";
T[T.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";T[T.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";T[T.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";T[T.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";T[T.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";T[T.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";T[T.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";T[T.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";
T[T.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";T[T.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";T[T.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";T[T.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";T[T.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";T[T.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";T[T.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";T[T.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";
T[T.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";T[T.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";T[T.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";T[T.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";T[T.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";T[T.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";T[T.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";T[T.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";
var NB={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};NB[NB.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";NB[NB.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";NB[NB.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var OB={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};
OB[OB.CONN_INVALID]="CONN_INVALID";OB[OB.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";OB[OB.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";OB[OB.CONN_WIFI_METERED]="CONN_WIFI_METERED";OB[OB.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";OB[OB.CONN_DISCO]="CONN_DISCO";OB[OB.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";OB[OB.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";OB[OB.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";OB[OB.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";OB[OB.CONN_WIFI]="CONN_WIFI";OB[OB.CONN_NONE]="CONN_NONE";
OB[OB.CONN_UNKNOWN]="CONN_UNKNOWN";OB[OB.CONN_DEFAULT]="CONN_DEFAULT";
var PB={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};PB[PB.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
PB[PB.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";PB[PB.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";PB[PB.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";PB[PB.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";PB[PB.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";PB[PB.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
PB[PB.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";PB[PB.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";PB[PB.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";PB[PB.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";PB[PB.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";PB[PB.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";PB[PB.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";PB[PB.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
PB[PB.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";PB[PB.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";PB[PB.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";PB[PB.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";PB[PB.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";PB[PB.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";PB[PB.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";PB[PB.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
PB[PB.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";PB[PB.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";PB[PB.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";PB[PB.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var QB={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};
QB[QB.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";QB[QB.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";QB[QB.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";QB[QB.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";QB[QB.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";QB[QB.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";QB[QB.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";QB[QB.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var RB={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};RB[RB.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";RB[RB.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";RB[RB.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";RB[RB.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var SB={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
SB[SB.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";SB[SB.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var TB={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};TB[TB.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";TB[TB.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";TB[TB.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
TB[TB.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";TB[TB.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";TB[TB.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var UB={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};UB[UB.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";UB[UB.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";UB[UB.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";UB[UB.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var VB={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};VB[VB.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";VB[VB.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";VB[VB.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var WB={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};WB[WB.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
WB[WB.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";WB[WB.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var Aua="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var FB=g.C.ytLoggingLatencyUsageStats_||{};g.Ea("ytLoggingLatencyUsageStats_",FB);DB.prototype.tick=function(a,b,c,d){GB(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.wu("web_csi_via_jspb")?(d=new Ut,g.F(d,1,a),g.F(d,2,b),a=new nu,Ld(a,Ut,5,$y,d),Zy(a,c)):g.gw("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
DB.prototype.info=function(a,b,c){var d=Object.keys(a).join("");GB(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.gw("latencyActionInfo",a,{cttAuthInfo:c}))};
DB.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));GB(this,"info_"+d+"_"+b)||(g.F(a,2,b),b={cttAuthInfo:c},c=new nu,Ld(c,Rt,7,$y,a),Zy(c,b))};
DB.prototype.span=function(a,b,c){var d=Object.keys(a).join("");GB(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.gw("latencyActionSpan",a,{cttAuthInfo:c}))};var k5a=window;k5a.ytcsi&&(k5a.ytcsi.info=g.MB,k5a.ytcsi.tick=JB);var LCa={Rma:1,Una:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var aJ=Gua()?!0:"function"!==typeof window.fetch||!window.ReadableStream||!window.AbortController||g.Qw||g.XF?!1:!0;var $2={},xF=($2.FAIRPLAY="fairplay",$2.PLAYREADY="playready",$2.WIDEVINE="widevine",$2.CLEARKEY=null,$2.FLASHACCESS=null,$2.UNKNOWN=null,$2.WIDEVINE_CLASSIC=null,$2);var l5a=["h","H"],m5a=["9","("],n5a=["9h","(h"],o5a=["8","*"],p5a=["a","A"],q5a=["o","O"],r5a=["m","M"],s5a=["mac3","MAC3"],t5a=["meac3","MEAC3"],a3={},oAa=(a3.h=l5a,a3.H=l5a,a3["9"]=m5a,a3["("]=m5a,a3["9h"]=n5a,a3["(h"]=n5a,a3["8"]=o5a,a3["*"]=o5a,a3.a=p5a,a3.A=p5a,a3.o=q5a,a3.O=q5a,a3.m=r5a,a3.M=r5a,a3.mac3=s5a,a3.MAC3=s5a,a3.meac3=t5a,a3.MEAC3=t5a,a3);g.cC.prototype.getLanguageInfo=function(){return this.Mc};
g.cC.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.cC.prototype.toString=function(){return this.Mc.name};
g.cC.prototype.getLanguageInfo=g.cC.prototype.getLanguageInfo;var b3,hC;b3={};g.eC=(b3.auto=0,b3.tiny=144,b3.light=144,b3.small=240,b3.medium=360,b3.large=480,b3.hd720=720,b3.hd1080=1080,b3.hd1440=1440,b3.hd2160=2160,b3.hd2880=2880,b3.highres=4320,b3);hC={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};dC.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
dC.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
dC.prototype.compose=function(a){if(a.B&&gC(a))return FI;if(a.B||gC(this))return a;if(this.B||gC(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 dC(b,c,!1,c===this.j?this.reason:a.reason)};
dC.prototype.C=function(a){return a.video?Iua(this,a.video.quality):!1};
var u5a=g.fC("auto","hd1080",!1,"l"),ARa=g.fC("auto","large",!1,"l"),FI=g.fC("auto","auto",!1,"p");jC.prototype.xq=function(a){a=a||FI;for(var b=g.Dm(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
jC.prototype.vz=function(a){a=a||FI;return g.Dm(this.videoInfos,function(b){return a.C(b)})};
jC.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.v(kC,g.K);kC.prototype.ra=function(){g.K.prototype.ra.call(this)};var xC={TU:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
jy:function(a,b){a.splice(0,b)},
iK:function(a){a.reverse()}};g.yC.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.yC.prototype.get=function(a){zC(this);return this.j[a]||null};
g.yC.prototype.Ge=function(){this.url||(this.url=aya(this));return this.url};
g.yC.prototype.clone=function(){var a=new g.yC(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.yf(this.j);a.url=this.url;return a};
var $xa=[ola];g.k=g.FC.prototype;g.k.wG=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.hn(a))?a.duration:0};
g.k.YP=function(a){return this.getDuration(a)};
g.k.Gl=function(){return this.segments.length?this.segments[0].Na:-1};
g.k.sf=function(a){return(a=this.hn(a))?a.ingestionTime:NaN};
g.k.jd=function(){return this.segments.length?this.segments[this.segments.length-1].Na:-1};
g.k.wJ=function(a){return this.jd()===a&&!this.u&&0<=a};
g.k.Eq=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Td=function(){return this.segments[0].startTime};
g.k.zw=function(){return this.segments.length};
g.k.Oo=function(){return 0};
g.k.Jh=function(a){return(a=this.lw(a))?a.Na:-1};
g.k.rD=function(a){return(a=this.hn(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.hn(a))?a.startTime:0};
g.k.tD=aa(3);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.hn=function(a){if(this.j&&this.j.Na===a)return this.j;a=g.mc(this.segments,new EC(a,0,0,0,""),function(b,c){return b.Na-c.Na});
return this.j=0<=a?this.segments[a]:null};
g.k.lw=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.mc(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.ec(a),this.segments.length){var b=this.segments.length?g.Nb(this.segments).endTime:0,c=a[0].Na-this.jd();1<c&&Paa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.fQ=function(){return 0};GC.prototype.append=function(a){if(dya(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);JC(this)}else this.j.push(a);this.totalLength+=a.length};
GC.prototype.split=function(a){for(var b=new GC,c=new GC,d=g.t(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{Vz:b,Uj:c}};
GC.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
GC.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&JC(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 RC,PC,TC;g.EW=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}();
RC=Array(1024);PC=window.TextDecoder?new TextDecoder:void 0;TC=window.TextEncoder?new TextEncoder:void 0;VC.prototype.skip=function(a){this.j+=a};
VC.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var c3={},v5a=(c3.predictStart="predictStart",c3.start="start",c3["continue"]="continue",c3.stop="stop",c3),kya={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};dD.prototype.Uz=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
dD.prototype.toString=function(){for(var a="",b=g.t(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var d3={},Oza=(d3.STEREO_LAYOUT_UNKNOWN=0,d3.STEREO_LAYOUT_LEFT_RIGHT=1,d3.STEREO_LAYOUT_TOP_BOTTOM=2,d3);qD.prototype.Pl=function(){var a=this.pos;this.pos=0;var b=!1;try{uD(this,440786851)&&(this.pos=0,uD(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.aA(c);else throw c;}this.pos=a;return b};ED.prototype.set=function(a,b){this.Mi.get(a);this.j[a]=b;this.url=""};
ED.prototype.get=function(a){return this.j[a]||this.Mi.get(a)};
ED.prototype.Ge=function(){this.url||(this.url=Eya(this));return this.url};ID.prototype.Aj=function(a,b){a.Mi===this.j&&(this.j=FD(a,b));a.Mi===this.C&&(this.C=FD(a,b))};MD.prototype.Xf=function(){return!!this.j&&this.index.isLoaded()};
MD.prototype.Mw=function(){return!1};
MD.prototype.SN=function(a){return[a]};
MD.prototype.kx=function(a){return[a]};PD.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};TD.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
TD.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.Na!==this.Na||a.Kb!==this.Kb||a.u!==this.u)};
TD.prototype.isVideo=function(){return!!this.j.info.video};bE.prototype.jn=function(){return this.u?this.u.Ge():""};
bE.prototype.Ys=function(){return this.J};
bE.prototype.gq=function(){return VD(this.Za[0])};
bE.prototype.Aj=function(a,b){this.j.Aj(a,b);if(this.u){this.u=FD(a,b);b=g.t(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.u.set(c.value,null)}this.requestId=a.get("req_id")};g.v(fE,MD);g.k=fE.prototype;g.k.Ql=function(){return!1};
g.k.qt=function(){return w5a};
g.k.Iw=function(){return!1};
g.k.Mw=function(){return!this.I};
g.k.Gq=function(){return new bE([new TD(1,this,this.initRange,"getMetadataRequestInfo")],this.I)};
g.k.Yu=function(){return null};
g.k.zy=function(a){this.Sp(a);return this.qt()&&a.u&&!a.Pe?new bE([new TD(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Na,a.startTime,a.duration,a.Kb+a.u,NaN,!0)],this.index.rD(a.Na)):this.Tp(YD(a),!1)};
g.k.Po=function(a,b){b=void 0===b?!1:b;a=this.index.Jh(a);b&&(a=Math.min(this.index.jd(),a+1));return this.Tp(a,!0)};
g.k.XI=function(a){this.j=new Uint8Array(zE(a).buffer)};
g.k.Sp=function(a){return 0===a.u?!0:this.index.jd()>a.Na&&this.index.Gl()<=a.Na+1};
g.k.update=function(a,b,c){this.index.append(a);cya(this.index,c);this.index.u=b};
g.k.Xf=function(){return this.Mw()?!0:MD.prototype.Xf.call(this)};
g.k.Tp=function(a,b){var c=this.index.rD(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Tb?this.info.Tb*e:1E3;return new bE([new TD(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.HI=function(){return this.Mw()?0:this.initRange.length};
g.k.VK=function(){return!1};
var w5a=!1;iE.prototype.update=function(a){var b=void 0;this.u&&(b=this.u);var c=new iE,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+gE(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+gE(a,"startNumber")||0;c.C=f;var l=b?b.startSecs+b.durationSecs:0,m=Date.parse(Zya(gE(a,"yt:segmentIngestTime")))/1E3;c.D="SegmentTemplate"===a.parentElement.tagName;c.D&&(c.J=gE(a,"media"));a=b?h-b.Na:1;c.I=0<a?0:-a+1;a=g.t(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,
p=(+d.getAttribute("yt:sid")||0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Na)h++;else{var w=new Xya(h,l,n,m+p,f);c.j.push(w);var y=w.startSecs;w=d.getAttribute("yt:cuepointTimeOffset");var z=d.getAttribute("yt:cuepointDuration");if(w&&z){w=Number(w);y=-w/e+y;z=Number(z)/e;var B=d.getAttribute("yt:cuepointContext")||null,D=d.getAttribute("yt:cuepointIdentifier")||"",G=d.getAttribute("yt:cuepointEvent")||"";w=new VA(y,z,B,D,v5a[G]||"unknown",w)}else w=null;w&&c.B.push(w);h++;l+=n;f+=n;m+=
n+p}}c.j.length&&(c.u=g.Nb(c.j))}this.I=c.I;this.u=c.u||this.u;g.fc(this.j,c.j);g.fc(this.B,c.B);this.D=c.D;this.J=c.J;-1===this.C&&(this.C=c.getStreamTimeOffset())};
iE.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.v(jE,g.FC);g.k=jE.prototype;g.k.Gl=function(){return this.Al?this.segments.length?this.lw(this.Td()).Na:-1:g.FC.prototype.Gl.call(this)};
g.k.Td=function(){if(this.He)return 0;if(!this.Al)return g.FC.prototype.Td.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Nb(this.segments).endTime-this.dn,0);return 0<this.De&&this.lw(a).Na<this.De?this.hn(this.De).startTime:a};
g.k.Eq=function(){if(!this.segments.length)return g.FC.prototype.Eq.call(this);var a=this.jd();if(!this.Al||a<=this.segments[this.segments.length-1].Na)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new EC(a,Math.max(0,b.startTime-(b.Na-a)*this.Ei),this.Ei,0,"sq/"+a,void 0,void 0,!0)}return null!==this.B&&a.pending&&3===this.B?this.He?Math.min(this.dn,a.startTime):a.startTime:this.He?Math.min(this.dn,a.endTime):a.endTime};
g.k.zw=function(){return this.Al?this.segments.length?this.jd()-this.Gl()+1:0:g.FC.prototype.zw.call(this)};
g.k.jd=function(){var a=Math.min(this.jg,Math.max(g.FC.prototype.jd.call(this),this.Cn)),b=1E3*this.dn;b=0<this.Uo&&this.Uo<b;this.He&&0<this.dn&&0<this.Cn&&!b&&(b=this.lw(this.dn))&&(a=Math.min(b.Na-1,a));return a};
g.k.Ss=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.wG=function(a){var b=kE(this,a.Na);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Rw&&0===a.Na%(300/this.Ei)){var c=this.segments[0].Na,d=Math.floor(this.Rw/this.Ei);a=a.Na-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.hD=function(){return this.Cn};
g.k.lw=function(a){if(!this.Al)return g.FC.prototype.lw.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].Na-Math.ceil((this.segments[0].startTime-a)/this.Ei));else if(a>=b.endTime)b=b.Na+Math.floor((a-b.endTime)/this.Ei+1);else{b=nc(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.Na-b.Na-1))+1)+b.Na}return this.hn(b)};
g.k.hn=function(a){if(!this.Al)return g.FC.prototype.hn.call(this,a);if(!this.segments.length)return null;var b=kE(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Ei;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Na-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Na-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Na-d.Na-1),d=d.endTime+(a-d.Na-1)*b);return new EC(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.v(wE,fE);g.k=wE.prototype;g.k.Iw=function(){return!0};
g.k.Xf=function(){return!0};
g.k.Sp=function(a){return this.qt()&&a.u&&!a.Pe||!a.j.index.wJ(a.Na)};
g.k.Gq=function(){};
g.k.Po=function(a,b){return"number"!==typeof a||isFinite(a)?fE.prototype.Po.call(this,a,void 0===b?!1:b):new bE([new TD(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.ij,void 0,this.ij*this.info.Tb)],"")};
g.k.Tp=function(a,b){var c=void 0===c?!1:c;if(lE(this.index,a))return fE.prototype.Tp.call(this,a,b);var d=this.index.getStartTime(a);return new bE([new TD(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.ij*this.info.Tb,!b)],0<=a?"sq/"+a:"")};g.v(xE,MD);g.k=xE.prototype;g.k.Ql=function(){return!1};
g.k.qt=function(){return!1};
g.k.Iw=function(){return!1};
g.k.Gq=function(){return new bE([new TD(1,this,void 0,"otfInit")],this.I)};
g.k.Yu=function(){return null};
g.k.zy=function(a){this.Sp(a);return gza(this,YD(a),!1)};
g.k.Po=function(a,b){b=void 0===b?!1:b;a=this.index.Jh(a);b&&(a=Math.min(this.index.jd(),a+1));return gza(this,a,!0)};
g.k.XI=function(a){1===a.info.type&&(this.j||(this.j=gya(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&hza(this,a.u))};
g.k.Sp=function(a){return 0===a.u?!0:this.index.jd()>a.Na&&this.index.Gl()<=a.Na+1};
g.k.HI=function(){return 0};
g.k.VK=function(){return!1};yE.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=zE(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.Kb)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=zE(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Kb)return 524531317===c||440786851===c}return!0};g.k=g.CE.prototype;g.k.Oo=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.j[a]/this.u};
g.k.tD=aa(2);g.k.sf=function(){return NaN};
g.k.getDuration=function(a){a=this.YP(a);return 0<=a?a/this.u:-1};
g.k.YP=function(a){return a+1<this.count||this.B?this.j[a+1]-this.j[a]:-1};
g.k.Gl=function(){return 0};
g.k.jd=function(){return this.count-1};
g.k.wJ=function(a){return this.jd()===a&&0<=a};
g.k.Eq=function(){return this.B?this.j[this.count]/this.u:NaN};
g.k.Td=function(){return 0};
g.k.zw=function(){return this.count};
g.k.rD=function(){return""};
g.k.Jh=function(a){a=g.mc(this.j.subarray(0,this.count),a*this.u);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.jd()};
g.k.fQ=function(a,b){if(a>=this.jd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.jd()&&b>this.getStartTime(a);a++)c=Math.max(c,tza(this,a)/this.getDuration(a));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.j[a]=c[a]};
g.k.cap=function(a,b){DE(this);this.B=!0;this.j[this.count]=b;this.offsets[this.count]=a};g.v(EE,MD);g.k=EE.prototype;g.k.Gq=function(a){var b=new TD(2,this,this.indexRange,"indexInfo"),c=[new TD(1,this,this.initRange,"initInfo"),b];0<this.info.contentLength&&a&&(b=b.range.end+1,a=Math.min(a,this.info.contentLength-b),0<a&&c.push(new TD(4,this,RD(b,a),"tbdRange")));return new bE(c)};
g.k.XI=function(a){if(1===a.info.type){if(this.j)return;this.j=gya(a.j)}else if(2===a.info.type){if(this.I||0<=this.index.jd())return;if(g.AE(this.info)){var b=this.index,c=zE(a);a=a.info.range.start;var d=g.gD(c,0,1936286840);c=tya(d);b.u=c.fM;var e=c.ZY;b.offsets[0]=c.lZ+a+d.size;b.j[0]=e;b.B=!0;a=c.aM.length;for(d=0;d<a;d++){e=b;var f=c.A3[d],h=c.aM[d];e.count++;DE(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.j[e.count]=e.j[e.count-1]+h}}else this.I=zE(a)}if(this.info.me()&&this.j&&this.I){c=
new DataView(this.j.buffer);b=this.index;d=this.I;a=this.indexRange.end;e=new qD(c);c=e;e=c.pos;f={aU:1E6,bU:1E9,duration:0,tT:0,wL:0};if(uD(c,408125543))if(f.tT=vD(c,!0),f.wL=c.start+c.pos,uD(c,357149030)){for(h=tD(c);!rD(h);){var l=vD(h,!1);2807729===l?f.aU=xD(h):2807730===l?f.bU=xD(h):17545===l?f.duration=zD(h):yD(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.u=c.bU/c.aU;e=new qD(d);d=e;h=c.wL;e=d.pos;f=[];if(uD(d,475249515)){for(l=tD(d);uD(l,187);){var m=tD(l);if(uD(m,
179)){var n=xD(m);if(uD(m,183)){m=tD(m);for(var p=h;uD(m,241);)p=xD(m)+h;f.push({DC:p,QY:n})}}}if(0<f.length&&a===f[0].DC)for(a=0;a<f.length;a++)f[a].DC+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.t(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.DC,f=f.QY,DE(d),d.offsets[d.count]=e,d.j[d.count]=f,d.count++;b.cap(c.tT+c.wL,c.duration)}}this.I=null}};
g.k.SN=function(a){for(var b=this.kx(a.info),c=a.info.range.start+a.info.Kb,d=a.B,e=[],f=0;f<b.length;f++){var h=IC(a.j,b[f].range.start+b[f].Kb-c,b[f].u);e.push(new yE(b[f],h,d));d=void 0}return e};
g.k.kx=function(a){for(var b=a.range.start+a.Kb,c=0;c<this.index.jd()&&b>=this.index.Oo(c+1);)c++;return FE(this,c,b,a.u).Za};
g.k.Sp=function(a){UD(a);return this.Xf()?!0:a.range.end+1<this.info.contentLength};
g.k.Yu=function(a,b){this.Sp(a);if(!this.Xf())return b=RD(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new PD(b.start,this.info.contentLength-1)),new bE([new TD(4,a.j,b,"getNextRequestInfoByLength")]);4===a.type&&(a=this.kx(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Kb+a.u;3===a.type&&(UD(a),c=a.Na,d===a.range.end+1&&(c+=1));return FE(this,c,d,b)};
g.k.zy=function(){return null};
g.k.Po=function(a,b){b=void 0===b?!1:b;a=this.index.Jh(a);b&&(a=Math.min(this.index.jd(),a+1));return FE(this,a,this.index.Oo(a),0)};
g.k.Ql=function(){return!0};
g.k.qt=function(){return!0};
g.k.Iw=function(){return!1};
g.k.HI=function(){return this.indexRange.length+this.initRange.length};
g.k.VK=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};GE.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var e3={},Pza=(e3.COLOR_PRIMARIES_BT709="bt709",e3.COLOR_PRIMARIES_BT2020="bt2020",e3.COLOR_PRIMARIES_UNKNOWN=null,e3.COLOR_PRIMARIES_UNSPECIFIED=null,e3),f3={},vza=(f3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",f3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",f3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",f3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",f3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,f3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,f3);var g3={},tC=(g3.WIDTH={name:"width",video:!0,valid:640,invalid:99999},g3.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},g3.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},g3.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},g3.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},g3.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},g3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},g3.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},g3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},g3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},g3);var Z={},ME=(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["356"]="9",Z["271"]="9",Z["577"]="9",Z["313"]="9",Z["579"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]=
"so",Z["600"]="o",Z["250"]="o",Z["251"]="o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]=
"(h",Z["368"]="(h",Z["588"]="(h",Z["562"]="(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z["645"]="(",Z["646"]="(",Z["647"]="(",Z["648"]="(",Z["649"]="(",Z["650"]=
"(",Z["651"]="(",Z["652"]="(",Z["653"]="(",Z["654"]="(",Z["655"]="(",Z["656"]="(",Z["657"]="(",Z["658"]="(",Z["659"]="(",Z["660"]="(",Z["661"]="(",Z["662"]="(",Z["663"]="(",Z["664"]="(",Z["665"]="(",Z["666"]="(",Z["667"]="(",Z["668"]="(",Z["669"]="(",Z["670"]="(",Z["671"]="(",Z["672"]="(",Z["673"]="(",Z["674"]="(h",Z["675"]="(h",Z["676"]="(h",Z["677"]="(h",Z["678"]="(h",Z["679"]="(h",Z["680"]="(h",Z["681"]="(h",Z["682"]="(h",Z["683"]="(h",Z["684"]="(h",Z["685"]="(h",Z["686"]="(h",Z["687"]="(h",Z["688"]=
"A",Z["689"]="A",Z["690"]="A",Z["691"]="MEAC3",Z);var KE="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");JE.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};NE.prototype.me=function(){return 2===this.containerType};
NE.prototype.isEncrypted=function(){return!!this.Gd};
NE.prototype.Ol=function(){return!!this.audio};
NE.prototype.isVideo=function(){return!!this.video};g.VE.prototype.getName=function(){return this.name};
g.VE.prototype.getId=function(){return this.id};
g.VE.prototype.getIsDefault=function(){return this.isDefault};
g.VE.prototype.toString=function(){return this.name};
g.VE.prototype.getName=g.VE.prototype.getName;g.VE.prototype.getId=g.VE.prototype.getId;g.VE.prototype.getIsDefault=g.VE.prototype.getIsDefault;g.v(g.WE,Jz);g.WE.prototype.S=function(a,b,c,d,e){return Jz.prototype.S.call(this,a,b,c,d,e)};g.v(jF,g.Mz);g.k=jF.prototype;g.k.appendBuffer=function(a,b,c){if(this.xd.rz()!==this.appendWindowStart+this.start||this.xd.bD()!==this.appendWindowEnd+this.start||this.xd.Bd()!==this.timestampOffset+this.start)this.xd.supports(1),this.xd.EL(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.xd.gF(this.timestampOffset+this.start);this.xd.appendBuffer(a,b,c)};
g.k.abort=function(){this.xd.abort()};
g.k.remove=function(a,b){this.xd.remove(a+this.start,b+this.start)};
g.k.Zf=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.xd.clear()};
g.k.EL=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.OI=function(){return this.timestampOffset+this.start};
g.k.rz=function(){return this.appendWindowStart};
g.k.bD=function(){return this.appendWindowEnd};
g.k.gF=function(a){this.timestampOffset=a};
g.k.Bd=function(){return this.timestampOffset};
g.k.Bg=function(a){a=this.xd.Bg(void 0===a?!1:a);return iF(a,this.start,this.end)};
g.k.ri=function(){return this.xd.ri()};
g.k.Hn=function(){return this.xd.Hn()};
g.k.sJ=function(){return this.xd.sJ()};
g.k.KH=function(){this.xd.KH()};
g.k.Nw=function(a){return this.xd.Nw(a)};
g.k.Bq=function(){return this.xd.Bq()};
g.k.iD=function(){return this.xd.iD()};
g.k.wM=function(a,b){this.xd.wM(a,b)};
g.k.supports=function(a){return this.xd.supports(a)};
g.k.jD=function(){return this.xd.jD()};
g.k.isView=function(){return!0};
g.k.vF=function(a,b,c){return this.isActive?this.xd.vF(a,b,c):!1};
g.k.uC=function(){return this.xd.uC()?this.isActive:!1};
g.k.isLocked=function(){return this.BB&&!this.isActive};
g.k.Yb=function(a){a=this.xd.Yb(a);a.vw=this.start+"-"+this.end;return a};
g.k.Bz=function(){return this.xd.Bz()};
g.k.KI=function(){return this.xd.KI()};
g.k.ra=function(){Oz(this.xd,this.zQ);g.Mz.prototype.ra.call(this)};var VV=!1;g.v(lF,g.Mz);g.k=lF.prototype;g.k.appendBuffer=function(a,b,c){this.Sy=!1;c&&(this.fA=c);b&&(b.isEncrypted()&&(this.DJ=this.fA),3===b.type&&(this.df=b));if(a.length){this.lx&&(2<=this.lx.length||1048576<a.length?delete this.lx:this.lx.push(a));var d;(null==(d=this.vc)?0:d.appendBuffer)?this.vc.appendBuffer(a):this.vc?this.vc.append(a):this.Yf&&this.Yf.webkitSourceAppend(this.id,a)}};
g.k.abort=function(){try{this.vc?this.vc.abort():this.Yf&&this.Yf.webkitSourceAbort(this.id)}catch(a){}this.fA=this.df=null};
g.k.remove=function(a,b){this.Sy=!1;var c;(null==(c=this.vc)?0:c.remove)&&this.vc.remove(a,b)};
g.k.Zf=function(){this.remove(this.rz(),this.bD())};
g.k.clear=function(){this.Hn()||(this.abort(),this.zC=!0,this.Zf(),this.DJ=this.fA=this.df=null,this.appendWindowStart=this.timestampOffset=0,this.yH=cF([],[]),this.Sy=!1,this.lx=kF?[]:void 0)};
g.k.rz=function(){if(VV&&this.isVideo)return this.appendWindowStart;var a;return(null==(a=this.vc)?void 0:a.appendWindowStart)||0};
g.k.bD=function(){var a;return(null==(a=this.vc)?void 0:a.appendWindowEnd)||0};
g.k.EL=function(a,b){this.vc&&(VV&&this.isVideo?(this.appendWindowStart=a,this.vc.appendWindowEnd=b):a>this.rz()?(this.vc.appendWindowEnd=b,this.vc.appendWindowStart=a):(this.vc.appendWindowStart=a,this.vc.appendWindowEnd=b))};
g.k.OI=function(){return this.timestampOffset};
g.k.gF=function(a){VV?this.timestampOffset=a:this.supports(1)&&(this.vc.timestampOffset=a)};
g.k.Bd=function(){return VV?this.timestampOffset:this.supports(1)?this.vc.timestampOffset:0};
g.k.Bg=function(a){if(void 0===a?0:a)return this.Sy||this.ri()||(this.yH=this.Bg(!1),this.Sy=!0),this.yH;try{return this.vc?this.vc.buffered:this.Yf?this.Yf.webkitSourceBuffered(this.id):cF([0],[Infinity])}catch(b){return cF([],[])}};
g.k.ri=function(){var a;return(null==(a=this.vc)?void 0:a.updating)||!1};
g.k.Hn=function(){return this.zC};
g.k.sJ=function(){return!this.zC&&this.ri()};
g.k.KH=function(){this.zC=!1};
g.k.Nw=function(a){var b=null==a?void 0:a.Ib;a=null==a?void 0:a.containerType;return!b&&!a||b===this.Ib&&a===this.containerType};
g.k.Bq=function(){return this.fA};
g.k.iD=function(){return this.DJ};
g.k.wM=function(a,b){this.containerType!==a&&(this.supports(4),mF()&&this.vc.changeType(b));this.containerType=a};
g.k.jD=function(){return this.df};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.vc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.vc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.vc)||!d.remove);case 3:var e,f;return!!((null==(e=this.vc)?0:e.addEventListener)&&(null==(f=this.vc)?0:f.removeEventListener));case 4:return!(!this.vc||!this.vc.changeType);default:return!1}};
g.k.uC=function(){return!this.ri()};
g.k.isLocked=function(){return!1};
g.k.Yb=function(a){a.to=this.Bd();a.up=this.ri();var b,c=(null==(b=this.vc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.vc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=dF(this.Bg())}catch(e){}return a};
g.k.ra=function(){this.supports(3)&&(this.vc.removeEventListener("updateend",this.Zc),this.vc.removeEventListener("error",this.Zc));g.Mz.prototype.ra.call(this)};
g.k.vF=function(a,b,c){if(!this.supports(2)||this.ri())return!1;var d=this.Bg(),e=eF(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.k.Bz=function(){return this.containerType};
g.k.KI=function(){return this.lx};
var kF=!1;nF.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
nF.prototype.isDisposed=function(){return this.B};
nF.prototype.equals=function(a){return null!==a&&a.j===this.j};
nF.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.v(oF,g.K);g.k=oF.prototype;g.k.getDuration=function(){var a;return(null==(a=this.mediaSource)?void 0:a.duration)||this.C};
g.k.Rj=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.C=a,this.Yf.webkitSourceSetDuration(a))}catch(b){}};
g.k.hg=function(){try{return"closed"===rF(this)}catch(a){return!0}};
g.k.ri=function(){return!!(this.j&&this.j.ri()||this.u&&this.u.ri())};
g.k.D2=function(){!this.isDisposed()&&pF(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.C2=function(){this.dispose()};
g.k.clear=function(){Cza(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.u)||b.clear()};
g.k.Hn=function(){var a,b;return!!this.u&&(null==(a=this.u)?void 0:a.Hn())||!!this.j&&(null==(b=this.j)?void 0:b.Hn())};
g.k.Nw=function(a,b){return!!this.j&&!!this.u&&this.j.Nw(b)&&this.u.Nw(a)};var Gza=/action_display_post/;var Hza;g.v(uF,g.Mz);g.k=uF.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.isFailed=function(){return 3===this.state};
g.k.l3=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Ud=this.u=!0;this.timeline||(this.timeline=new aza);eza(this.timeline,a);this.ma("refresh");for(a=0;a<b.length;a++){var c=Wza(this,b[a]);if(!this.j[c.id]){var d=AF(hE(b[a],"BaseURL").textContent),e=hE(b[a],"Initialization"),f=gE(e,"sourceURL");e=QD(gE(e,"range"));this.j[c.id]=new fE(d,c,f,e)}c=this.j[c.id];d=gE(b[a],"id","AdaptationSet");
d=""!==d?d:gE(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.B[c.info.id]||f.u[d]||f.j||null;d=f.j;!this.D&&f.getStreamTimeOffset()&&(this.D=f.getStreamTimeOffset());if(f.D){e=[];d=g.t(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.Tb,n=h.Na;var p=h.startSecs;var q=f.J.split("$$");for(var r=0;r<q.length;r++)q[r]=q[r].replace("$RepresentationID$",l),q[r]=q[r].replace("$Number$",n.toString()),q[r]=q[r].replace("$Bandwidth$",m.toString()),q[r]=q[r].replace("$Time$",
p.toString());e.push(new EC(h.Na,h.startSecs,h.durationSecs,h.j,q.join("$"),null,h.u))}d=e}else{f=gc(hE(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.I);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;r=f[h];q=r.getAttribute("media");if(r=r.getAttribute("mediaRange")){var w=r.split("-");w[1]&&0<=Number(w[1])?p=QD(r):q=q+"?range="+r}m.call(l,new EC(n.Na,n.startSecs,n.durationSecs,n.j,q,p,n.u))}d=e}c.update(d,this.isLive,this.Ba)}fza(this.timeline);return!0}this.duration=Yya(gE(a,
"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){f=b[a];c=Wza(this,f);d=AF(hE(f,"BaseURL").textContent);e=hE(f,"SegmentBase");f=QD(e.attributes.getNamedItem("indexRange").value);e=QD(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new EE(d,c,e,f);if(!c){b=!1;break a}vF(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.isDisposed()){var a=g.ti(this.sourceUrl,{start_seq:$za(this).toString()});Yza(this,a).jj(function(){})}};
g.k.resume=function(){Xza(this)};
g.k.Sd=function(){if(this.isManifestless&&this.B&&DF(this))return DF(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.C&&(b=!0),h=h.Eq(),f.info.Ol()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Td=function(){if(this.isManifestless){if(EF(this))return EF(this);if(this.Fd){var a=this.sf(this.Sd());if(a&&(a-=this.Fd,0<a))return this.Sd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Td()}return 0};
g.k.getStreamTimeOffset=function(){return this.D};
g.k.sf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Jh(a),e=c.sf(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var IF=null,x5a,JF=!(null==(x5a=navigator.mediaCapabilities)||!x5a.decodingInfo),Vza={commentary:1,alternate:2,dub:3,main:4};PF.prototype.clone=function(a){return new PF(this.flavor,a,this.u,this.experiments)};
PF.prototype.Yb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
PF.prototype.Qg=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.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
var y5a={},$F=(y5a.playready=["com.youtube.playready","com.microsoft.playready"],y5a.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],y5a),h3={},pRa=(h3.widevine="DRM_SYSTEM_WIDEVINE",h3.fairplay="DRM_SYSTEM_FAIRPLAY",h3.playready="DRM_SYSTEM_PLAYREADY",h3),i3={},z5a=(i3.widevine=1,i3.fairplay=2,i3.playready=3,i3);g.v(aG,g.K);
aG.prototype.initialize=function(a,b){for(var c=this,d=g.t(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.t(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Gd)for(var h=g.t(Object.keys(f.Gd)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=$F[m];!m&&this.N("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.t(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new PF(l,n,f.Gd[l],this.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}kv()&&(this.B["com.youtube.fairplay"]=new PF("fairplay","com.youtube.fairplay","",this.experiments),this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0);this.u=pAa(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),this.N("html5_enable_vp9_fairplay")).filter(function(p){return!!c.B[p]})};
aG.prototype.N=function(a){return this.experiments.gb(a)};var AUa={"":"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 A5a={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},j3;a:{var k3=g.sb();k3=k3.toLowerCase();if(g.ib(k3,"android")){var B5a=k3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(B5a){var C5a=parseFloat(B5a[1]);if(100>C5a){j3=C5a;break a}}var D5a=k3.match("("+g.of(A5a).join("|")+")");j3=D5a?A5a[D5a[0]]:0}else j3=void 0}var UG=j3,TG=0<=UG;var nBa={RED:"red",u4a:"white"};var lBa={N9:"adunit",Bma:"detailpage",ina:"editpage",rna:"embedded",xna:"embedded_unbranded",mAa:"leanback",DOa:"previewpage",ePa:"profilepage",AO:"unplugged",HNa:"playlistoverview",hVa:"sponsorshipsoffer",ySa:"shortspage",cua:"handlesclaiming",rV:"immersivelivepage"};wAa.prototype.gb=function(a){return"true"===this.flags[a]};var xAa=Promise.resolve(),AAa=window.queueMicrotask?window.queueMicrotask.bind(window):yAa;cG.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;pv?a=a||E5a[b]:2.2===UG?a=a||F5a[b]:iv()&&(a=a||G5a[b]);return!!a};
cG.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):$E(a)};
var F5a={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},G5a={"application/x-mpegURL":"maybe"},E5a={"application/x-mpegURL":"maybe"};HAa.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Wu(a.url,a.options)}};g.v(fG,g.Mz);fG.prototype.add=function(a,b){!this.items[a]&&(b.Uy||b.xC||b.uB)&&(this.items[a]=Mca(b),this.ma("vast_info_card_add",a))};
fG.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
fG.prototype.get=function(a){return this.items[a]||null};
fG.prototype.isEmpty=function(){return g.sf(this.items)};var aH={pCa:1,qCa:2,rCa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var JAa=!1,hG,iG,jG,kG,lG;mG.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;)LAa(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(LAa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var nG=!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 oG;g.qG.prototype.encrypt=function(a,b){var c=this,d,e;return g.A(function(f){if(1==f.j){d=pG();if(!d)return f.return(c.j(a,b));g.qa(f,3);return g.x(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.sa(f);g.aA(e);nG=!0;return f.return(c.j(a,b))})};
g.qG.prototype.u=function(a,b,c){var d=this,e,f,h;return g.A(function(l){switch(l.j){case 1:if(d.D){l.Ja(2);break}e=d;return g.x(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.x(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
g.qG.prototype.j=function(a,b){this.B||(this.B=new mG(this.C));KAa(this.B,b);return this.B.encrypt(a)};
g.qG.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.rG.prototype.encrypt=function(a,b){this.j||(this.j=new mG(this.u));KAa(this.j,b);return this.j.encrypt(a)};
g.rG.prototype.decrypt=function(a,b){return this.encrypt(a,b)};sG.prototype.reset=function(){NAa(this);this.update(this.B)};
sG.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,MAa(this,this.I,0));for(;b+64<=c;b+=64)MAa(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var tG=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var H5a;H5a={};g.I5a=g.Ww("yt-idb-pref-storage",{qp:(H5a.prefs={zl:1},H5a),shared:!1,upgrade:function(a,b){b(1)&&g.Hw(g.Bw(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});vG.prototype.wh=function(a,b){var c=this;b=void 0===b?1:b;this.j+=b;this.B+=a;var d=a/b;uG.forEach(function(e,f){d<e||(c.u[f]+=b)})};
vG.prototype.toString=function(){return""};
var uG=[20,100,500,2E3];g.k=XAa.prototype;g.k.isActive=function(){return!0};
g.k.ID=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.HF=a.prototype[e],d.KF=b[e],a.prototype[e]=function(f){return function(){var h=g.ya.apply(0,arguments),l=(0,g.Q)();h=f.HF.apply(this,h);wG(c,f.KF,(0,g.Q)()-l);return h}}(d)),d={HF:d.HF,
KF:d.KF}}};
g.k.Nr=function(a){return new WAa(a)};
g.k.rq=function(a,b){b=void 0===b?1:b;a instanceof WAa&&(wG(this,a.name,(0,g.Q)()-a.startTimeMs,b),a.j=!0)};
g.k.iL=function(a,b){var c=void 0===c?1:c;var d=(0,g.Q)();b();wG(this,a,(0,g.Q)()-d,c)};
g.k.OP=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<uG.length;++e)if(0<c.u[e])d+="."+uG[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new VAa;return a};
g.k.toString=function(){return""};g.k=xG.prototype;g.k.isActive=function(){return!1};
g.k.ID=function(){};
g.k.Nr=function(){};
g.k.rq=function(){};
g.k.iL=function(a,b){b()};
g.k.OP=function(){return{}};
g.k.toString=function(){return""};var l3,XY,m3,BV,$Ua;l3=new xG;XY=vu("html5_enable_profiler")||vu("html5_onesie_enable_profiler")||vu("html5_offline_encryption_enable_profiler")||0<vu("html5_performance_impact_profiling_timer_ms")?new XAa:new xG;g.VT=vu("html5_enable_profiler")?XY:l3;m3=vu("html5_onesie_enable_profiler")?XY:l3;BV=vu("html5_offline_encryption_enable_profiler")?XY:l3;$Ua=vu("html5_performance_impact_profiling_timer_ms")?XY:l3;g.v(yG,g.qG);yG.prototype.j=function(a,b){var c=m3.Nr("oap");b=g.qG.prototype.j.call(this,a,b);m3.rq(c,Math.ceil(a.length/16));return b};
yG.prototype.u=function(a,b,c){var d=this,e,f;return g.A(function(h){if(1==h.j)return e=m3.Nr("oan2"),g.x(h,g.qG.prototype.u.call(d,a,b,c),2);f=h.u;m3.rq(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.v(zG,g.rG);zG.prototype.encrypt=function(a,b){var c=m3.Nr("oap");b=g.rG.prototype.encrypt.call(this,a,b);m3.rq(c,Math.ceil(a.byteLength/16));return b};BG.prototype.Fh=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
BG.prototype.gi=function(){return this.j/(1-Math.pow(this.alpha,this.u))};CG.prototype.Fh=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};
CG.prototype.gi=function(){return this.I?(DG(this,this.B-this.I)+DG(this,this.B)+DG(this,this.B+this.I))/3:DG(this,this.B)};g.v(gBa,g.K);LG.prototype.then=function(a,b){return this.promise.then(a,b)};
LG.prototype.resolve=function(a){this.u(a)};
LG.prototype.reject=function(a){this.j(a)};var mBa="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),sBa={Hda:"cbrand",Qda:"cbr",Rda:"cbrver",mwa:"c",pwa:"cver",owa:"ctheme",nwa:"cplayer",oGa:"cmodel",HHa:"cnetwork",LLa:"cos",MLa:"cosver",bNa:"cplatform"};g.v(hH,g.K);g.k=hH.prototype;g.k.N=function(a){return this.experiments.gb(a)};
g.k.getVideoUrl=function(a,b,c,d,e,f){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.lH(this);e="www.youtube.com"===c;f=f&&this.N("embeds_enable_shorts_links_for_eligible_shorts");!f&&d&&e?f="https://web.archive.org/web/20221116135136/https://youtu.be/"+a:g.YG(this)?(f="https://"+c+"/fire",b.v=a):(f&&e?(f=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(f=this.protocol+"://"+c+"/watch",b.v=a),pv&&(a=pma())&&(b.ebc=a));return g.ti(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.lH(this)+"/embed/"+b;d&&(b=g.ti(b,{list:d}));d=c.width;c=c.height;b=g.Lg(b);return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+((null!=a?a:"YouTube video player")+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.ZE&&!pv&&74<=Qma()||g.XF&&g.zc(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var uBa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],rBa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"];g.k=DH.prototype;g.k.Qg=function(){return this.j};
g.k.Ay=function(){return null};
g.k.TN=function(){var a=this.Ay();return a?(a=g.Iu(a.j),Number(a.expire)):NaN};
g.k.xL=function(){};
g.k.getHeight=function(){return this.j.video.height};vBa.prototype.Ze=function(){yBa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.t(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Mc){if(e.Mc.getIsDefault()){c=e.Mc.getId();break a}c||(c=e.Mc.getId())}}d=g.t(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Mc||e.Mc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.t(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.t(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Mc){p=f.Mc;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=FH(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(xBa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.t(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=J5a,d=(h=d.Mc)?'#EXT-X-MEDIA:URI="'+FH(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?J5a:void 0;d=g.t(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.j],l=void 0,0<(null==(l=h)?void 0:l.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(xBa(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.Ox&&(h+=",VIDEO-RANGE="+e.Ox),a.push(h),a.push(FH(this,e.url,"")));return a.join("\n")};
var J5a="text";g.v(GH,DH);GH.prototype.TN=function(){return this.expiration};
GH.prototype.Ay=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Ze();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new nF(a)}return this.u};g.v(HH,DH);HH.prototype.Ay=function(){return new nF(this.u.Ge())};
HH.prototype.xL=function(){this.u=DC(this.u)};g.v(IH,DH);IH.prototype.Ay=function(){return new nF(this.u)};var K5a={},JBa=(K5a.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",K5a.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",K5a);g.k=g.JH.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.Ge=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.KH(this)+" - "+this.vssId};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var LBa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},MBa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},NBa=/^(\d*)_((\d*)_?(\d*))$/;var PBa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},QBa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var n3={},OCa=(n3.ALWAYS=1,n3.BY_REQUEST=3,n3.UNKNOWN=void 0,n3),o3={},TCa=(o3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",o3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",o3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",o3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",o3);RH.prototype.toString=function(){return this.type+this.id};g.TH.prototype.Hf=function(a){a=a||"hqdefault.jpg";var b=this.ea[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return mH(this.u,this.j,a)};
g.TH.prototype.vn=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.UH.prototype.Hf=function(a){a||(a="hqdefault.jpg");var b=this.ea[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:mH(this.j,this.videoId,a)};
g.UH.prototype.vn=function(a){return this.watchUrl||this.j.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};WH.prototype.getState=function(){return this.store.getState()};
WH.prototype.dispatch=function(a){return this.store.dispatch(a)};
WH.prototype.subscribe=function(a){return this.store.subscribe(a)};
WH.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
WH.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var iCa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,flowStateEntity:252,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,refresh:148,settingEntity:297,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},hCa={},L5a=g.t(Object.entries(iCa)),
M5a=L5a.next();!M5a.done;M5a=L5a.next()){var N5a=g.t(M5a.value),O5a=N5a.next().value,P5a=N5a.next().value,Q5a=O5a,R5a=P5a;R5a&&(hCa[R5a]=Q5a)};var p3;p3={};g.$5a=(p3.INVALID_ENCODER_VERSION="Invalid encoder version",p3.KEY_CREATION_FAILED="Failed to create encoder key",p3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",p3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",p3.WRONG_DATA_TYPE="Encoder cannot process the data type",p3);var bCa;
bCa=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{jla(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],w=l[r],y=(0,c[r])(w,m);if("undefined"===typeof y)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+r+'" 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[r]=
y;n=n||y!==w}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return kCa(a,b)}});
g.WI=new WH;var lCa=["APP_STATE","PI"];var q3={},pCa=g.Ww("yt-player-local-media",{qp:(q3.index={zl:2},q3.media={zl:2},q3.captions={zl:5},q3),shared:!1,upgrade:function(a,b){b(2)&&(g.Bw(a,"index"),g.Bw(a,"media"));b(5)&&g.Bw(a,"captions");b(6)&&(Cw(a,"metadata"),Cw(a,"playerdata"))},
version:5});pI.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
pI.prototype.get=function(a){return this.j.get(a)};
pI.prototype.remove=function(a){this.j.remove(a)};var qI=void 0;mCa("LMS",function(){return g.A(function(a){return a.return(g.rI())})});var vI,vCa;vI=0;vCa=!1;g.yCa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;mCa("LMDB",function(){var a,b;return g.A(function(c){if(1==c.j)return g.x(c,g.Uw(),2);if(3!=c.j){a=c.u;if(!a)throw g.tw("edd");return g.x(c,g.uI(a),3)}b=c.u;return c.return(g.Dw(b,["index","media","captions"],{mode:"readonly",Sb:!0},function(d){var e={};d=[g.Iw(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
Ena(d.objectStore("media")),Ena(d.objectStore("captions"))];return g.vw.all(d).then(function(f){var h=g.t(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:zCa(f||[]),captions:h}})}))})});g.v(xI,g.Mz);xI.prototype.ra=function(){this.j&&(this.j=this.j.onload=null);g.Mz.prototype.ra.call(this)};g.k=g.BI.prototype;g.k.getHeight=function(){return this.height};
g.k.dQ=aa(4);g.k.YB=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Ge=function(a){var b=this.C;b=b.replace("$N",this.B);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.ti(b,{sigh:this.signature}));return aB(b)};
g.k.ZB=function(a){var b=this.YB()-1;return g.Ag(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.Zu=function(){return this.frameCount-1};
g.k.xG=function(){return this.frameCount?0:-1};
g.k.UN=function(){};g.v(CI,xI);CI.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.I(e-1,d,a[e],b);(this.T||180>f.getHeight())&&c.push(f)}return c};
CI.prototype.I=function(a,b,c,d){return new g.BI(a,b,c,d)};g.v(DI,g.BI);g.k=DI.prototype;g.k.YB=function(){return this.u.zw()};
g.k.ZB=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.jd();a=c.Jh(a);return a>d-b?-1:a};
g.k.Zu=function(){return this.u.jd()};
g.k.xG=function(){return this.u.Gl()};
g.k.UN=function(a){this.u=a};g.v(EI,CI);EI.prototype.u=function(a,b){return CI.prototype.u.call(this,"$N|"+a,b)};
EI.prototype.I=function(a,b,c){return new DI(a,b,c,this.isLive)};g.v(g.GI,g.Mz);g.k=g.GI.prototype;g.k.V=function(){return this.u};
g.k.N=function(a){return this.u.N(a)};
g.k.Sg=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Wk)||!a.Mb)};
g.k.bS=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.bS,this),this.kP(-1))};
g.k.kP=function(a){if(!this.isLivePlayback||!this.Z||"fairplay"!=this.Z.flavor){var b=Sza(this.j,this.WG);if(0<b.length){for(var c=g.t(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Td());this.ma("cuepointupdated",b,a);this.WG+=b.length;if(QI(this)&&this.u.C)for(b=g.t(b),d=b.next();!d.done;d=b.next())c=d.value,this.va("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.sM.start=this.ZJ,this.sM.end=
c+3)}}};
g.k.In=function(){return this.Gd?!0:!!this.j&&pC(this.j)};
g.k.xj=function(){var a={};this.B&&(a.fmt=this.B.itag,this.I&&this.I.itag!=this.B.itag&&(a.afmt=this.I.itag));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Nk&&(a.infringe=1);this.Gj&&(a.splay=1);var b=fJ(this);b&&(a.live=b);this.Dp&&(a.sautoplay=1);this.Nn&&(a.autoplay=1);this.Av&&(a.sdetail=this.Av);this.Aa&&(a.partnerid=this.Aa);this.osid&&(a.osid=this.osid);return a};
g.k.Vi=function(){if(this.cotn)return null;var a=g.rH(this.u)||this.N("web_l3_storyboard");if(!this.Pj)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Pj=new CI(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=Ica(this.j.j).index)&&(this.Pj=new EI(b.spec,this.j.isLive,c,a))}else this.Bv?this.Pj=new CI(this.Bv,this.lengthSeconds,void 0,!1,a):this.qv&&this.j&&
(b=Ica(this.j.j).index)&&(this.Pj=new EI(this.qv,this.j.isLive,b,a));return this.Pj};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Bv||this.qv};
g.k.Sd=function(){return this.j&&!isNaN(this.j.Sd())?this.j.Sd():QI(this)?0:this.lengthSeconds};
g.k.Td=function(){return this.j&&!isNaN(this.j.Td())?this.j.Td():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Jh(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.ll)};
g.k.isLoaded=function(){return HI(this)&&!this.Jg&&!this.Im};
g.k.Hf=function(a){if(30==this.Aa)return(a=this.ea["default.jpg"])?a:this.videoId?g.ti("//web.archive.org/web/20221116135136/https://docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.authKey}):"//web.archive.org/web/20221116135136/https://docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.ea[a];return b||this.u.Z||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:mH(this.u,this.videoId,a)};
g.k.Ud=function(){return this.isLivePlayback||this.He||this.Yc||!(!this.liveUtcStartSeconds||!this.al)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.He&&!this.isLivePlayback&&this.j.u)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.hv||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.I&&!QE(this.I))return g.Qb(this.getAvailableAudioTracks(),function(d){return d.id==a.I.id})||this.Cm;
if(this.hv){if(!this.Om)for(var b=g.t(this.hv),c=b.next();!c.done;c=b.next())if(c=c.value,c.Mc.getIsDefault()){this.Om=c;break}return this.Om||this.Cm}return this.Cm};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.vn=function(){return this.watchUrl?this.watchUrl:this.u.getVideoUrl(this.videoId)};
g.k.uJ=function(){return!!this.j&&(Jza(this.j)||Kza(this.j)||Lza(this.j))};
g.k.isAd=function(){return!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.ML=function(){return this.wt||this.Sf};
g.k.gB=function(){return this.Si||this.Sf};
g.k.nH=function(){return MI(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.va=function(a,b,c){this.ma("ctmp",a,b,c)};
g.k.jL=function(a,b,c){this.ma("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.ra=function(){g.Mz.prototype.ra.call(this);delete this.rl;this.Sx=null;delete this.GX;delete this.accountLinkingConfig;delete this.j;this.C=this.playerResponse=this.watchNextResponse=null;this.dk=this.adaptiveFormats="";delete this.botguardData;this.vv={};this.Le=this.suggestions=this.vl=null};CJ.prototype.Zz=function(){return!1};
CJ.prototype.Ba=function(){return function(){return null}};var KJ=null;g.v(JJ,g.Mz);JJ.prototype.zz=function(a){return this.j.hasOwnProperty(a)?this.j[a].zz():{}};
g.Ea("ytads.bulleit.getVideoMetadata",function(a){return LJ().zz(a)});
g.Ea("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=LJ();c=WDa(c);null!==c&&d.ma(c,{queryId:a,viewabilityString:b})});g.v(RJ,CJ);g.k=RJ.prototype;g.k.Hw=function(){return!0};
g.k.qs=function(){return!1};
g.k.isSkippable=function(){return null!=this.ya};
g.k.Wf=function(){return this.J};
g.k.getVideoUrl=function(){return null};
g.k.Zz=function(){return!0};g.v($J,CJ);$J.prototype.Hw=function(){return!0};
$J.prototype.qs=function(){return!1};
$J.prototype.Zz=function(){return!0};
$J.prototype.Ba=function(){return function(){return g.Wg("video-ads")}};bEa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var uZa={c5:"FINAL",UU:"AD_BREAK_LENGTH",x9:"AD_CPN",E9:"AH",I9:"AD_MT",L9:"ASR",P9:"AW",Zfa:"NM",aga:"NX",cga:"NY",dV:"CONN",jha:"CPN",dna:"DV_VIEWABILITY",eoa:"ERRORCODE",noa:"ERROR_MSG",qoa:"EI",qV:"GOOGLE_VIEWABILITY",yva:"IAS_VIEWABILITY",qya:"LACT",yX:"LIVE_TARGETING_CONTEXT",FCa:"I_X",GCa:"I_Y",CFa:"MT",TFa:"MIDROLL_POS",UFa:"MIDROLL_POS_MS",ZFa:"MOAT_INIT",aGa:"MOAT_VIEWABILITY",KX:"P_H",yNa:"PV_H",zNa:"PV_W",LX:"P_W",VNa:"TRIGGER_TYPE",NQa:"SDKV",SX:"SLOT_POS",QXa:"SURVEY_LOCAL_TIME_EPOCH_S",
PXa:"SURVEY_ELAPSED_MS",bY:"VIS",k3a:"VIEWABILITY",q3a:"VED",cY:"VOL",B3a:"WT",dY:"YT_ERROR_CODE"};var jEa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];fK.prototype.send=function(a,b,c){try{kEa(this,a,b,c)}catch(d){}};g.v(gK,fK);gK.prototype.j=function(){return this.hq?g.yH(this.hq.V(),g.vJ(this.hq)):bv("")};
gK.prototype.u=function(){return this.hq?this.hq.V().pageId:""};var Ifa=eaa(["attributionsrc"]);
hK.prototype.send=function(a,b,c){try{var d=new g.Cj(a);if("1"===d.u.get("ase")&&"video_10s_engaged_view"===d.u.get("label")){var e=document.createElement("img");Kfa(e,a+"&asr=1")}var f=a.match(di);if("https"===f[1])var h=a;else f[1]="https",h=bi("https",f[2],f[3],f[4],f[5],f[6],f[7]);a=h;var l=vka(a);d=[];Nu(a)&&(d.push({headerType:"USER_AUTH"}),d.push({headerType:"PLUS_PAGE_ID"}),d.push({headerType:"VISITOR_ID"}),d.push({headerType:"EOM_VISITOR_ID"}));this.ys.send({baseUrl:a,scrubReferrer:l,headers:d},
b,c)}catch(m){}};g.v(mEa,g.K);g.v(yK,g.Mz);g.k=yK.prototype;g.k.zz=function(){return{}};
g.k.kT=function(){};
g.k.Fg=function(a){this.Is();this.ma(a)};
g.k.Is=function(){sEa(this,this.ya,3);this.ya=[]};
g.k.getDuration=function(){return this.G.getDuration(2,!1)};
g.k.Pz=function(){var a=this.j;iK(a)||!rK(a,"impression")&&!rK(a,"start")||rK(a,"abandon")||rK(a,"complete")||rK(a,"skip")||uK(a,"pause");this.C||(a=this.j,iK(a)||!rK(a,"unmuted_impression")&&!rK(a,"unmuted_start")||rK(a,"unmuted_abandon")||rK(a,"unmuted_complete")||uK(a,"unmuted_pause"))};
g.k.Qz=function(){this.Aa||this.T||this.Ll()};
g.k.pj=function(){mK(this.j,this.getDuration());if(!this.C){var a=this.j;this.getDuration();iK(a)||(pEa(a,0,!0),qEa(a,0,0,!0),lK(a,"unmuted_complete"))}};
g.k.xn=function(){var a=this.j;!rK(a,"impression")||rK(a,"skip")||rK(a,"complete")||qK(a,"abandon");this.C||(a=this.j,rK(a,"unmuted_impression")&&!rK(a,"unmuted_complete")&&qK(a,"unmuted_abandon"))};
g.k.UI=function(){var a=this.j;jK(a)?lK(a,"skip"):!rK(a,"impression")||rK(a,"abandon")||rK(a,"complete")||lK(a,"skip")};
g.k.Ll=function(){if(!this.T){var a=this.aD();this.j.macros.AD_CPN=a;a=this.j;if(jK(a)){var b=a.j.getCurrentTime(2,!1);pK(a,"impression",b,0)}else lK(a,"impression");lK(a,"start");iK(a)||a.j.isFullscreen()&&qK(a,"fullscreen");this.T=!0;this.C=this.G.isMuted()||0==this.G.getVolume();this.C||(a=this.j,lK(a,"unmuted_impression"),lK(a,"unmuted_start"),iK(a)||a.j.isFullscreen()&&qK(a,"unmuted_fullscreen"))}};
g.k.yn=function(a){a=a||"";var b="",c="",d="";DJ(this.G)&&(b=this.G.Db(2).state,this.G.Zd()&&(c=this.G.Zd().qj(),null!=this.G.Zd().cf()&&(d=this.G.Zd().cf())));var e=this.j;e.macros=eK(e.macros,iEa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));lK(e,"error");this.C||(e=this.j,e.macros=eK(e.macros,iEa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),lK(e,"unmuted_error"))};
g.k.eg=function(){};
g.k.SS=function(){this.ma("adactiveviewmeasurable")};
g.k.US=function(){this.ma("adfullyviewableaudiblehalfdurationimpression")};
g.k.VS=function(){this.ma("adoverlaymeasurableimpression")};
g.k.WS=function(){this.ma("adoverlayunviewableimpression")};
g.k.XS=function(){this.ma("adoverlayviewableendofsessionimpression")};
g.k.YS=function(){this.ma("adoverlayviewableimmediateimpression")};
g.k.ZS=function(){this.ma("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.Is(),this.u.unsubscribe("adactiveviewmeasurable",this.SS,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.US,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.VS,this),this.u.unsubscribe("adoverlayunviewableimpression",this.WS,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.XS,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.YS,this),this.u.unsubscribe("adviewableimpression",
this.ZS,this),delete this.u.j[this.ad.I],g.Mz.prototype.dispose.call(this))};
g.k.aD=function(){var a=this.G.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.HP=function(){return""};g.v(zK,CJ);zK.prototype.Hw=function(){return!0};
zK.prototype.qs=function(){return!1};g.v(AK,HJ);g.v(BK,yK);g.k=BK.prototype;g.k.aC=function(){0<this.B&&this.Ll()};
g.k.Ll=function(){var a=this;this.yc=new g.ho(function(){a.pj();for(var b=g.t(a.D.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.I.executeCommand(c.value,a.macros);a.Fg("adended")},this.B,this);
g.L(this,this.yc);this.yc.start();tEa(this,[new AK(this.D.j,this.macros)]);yK.prototype.Ll.call(this)};
g.k.xn=function(){yK.prototype.xn.call(this);this.Fg("adabandoned")};
g.k.pj=function(){yK.prototype.pj.call(this)};
g.k.Fg=function(a){this.yc&&this.yc.stop();yK.prototype.Fg.call(this,a)};g.v(CK,CJ);CK.prototype.Hw=function(){return!0};
CK.prototype.qs=function(){return!1};g.v(DK,CJ);DK.prototype.Hw=function(){return!0};
DK.prototype.qs=function(){return!1};vEa.prototype.create=function(a,b){return a instanceof RJ?this.C.create(a,b):a instanceof zK?this.j.create(a,b):a instanceof DK?this.B.create(a,b):a instanceof CK?this.u.create(a,b):null};g.v(EK,yK);g.k=EK.prototype;g.k.xn=function(){yK.prototype.xn.call(this);this.Fg("adabandoned")};
g.k.Pz=function(){yK.prototype.Pz.call(this);this.ma("adpause",2)};
g.k.Qz=function(){yK.prototype.Qz.call(this);this.ma("adplay",1)};
g.k.Ll=function(){yK.prototype.Ll.call(this);this.B.stop();this.D.S(this.G,g.eB("bltplayback"),this.BW);var a=new g.cB(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.xe([a],2);this.ma("adplay",1)};
g.k.pj=function(){yK.prototype.pj.call(this);this.Fg("adended")};
g.k.yn=function(a){yK.prototype.yn.call(this,a);this.Fg("aderror")};
g.k.aC=function(){FJ(this.G,!1);var a=this.I.u||{};a.autoplay="1";this.G.cueVideoByPlayerVars(a,2);this.B.start();this.G.playVideo(2);this.G.Qa("onAdIntroStateChange",1)};
g.k.Fg=function(a){this.B.stop();FJ(this.G,!0);"adabandoned"!=a&&this.G.Qa("onAdComplete");this.G.Qa("onAdEnd");this.ma(a);this.G.Qa("onAdIntroStateChange",0)};
g.k.BW=function(a){"bltcompletion"==a.getId()&&(this.G.Df("bltplayback",2),mK(this.j,this.getDuration()))};var HWa=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(HK,HJ);g.v(IK,yK);g.k=IK.prototype;g.k.aC=function(){if(this.J){var a=this.B.j;if(!GK(a)){g.aA(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.t(this.J.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;FEa(d.j(),c);GEa(d.j(),c);d=d.j();d=g.t(d.Qd);for(var e=d.next();!e.done;e=d.next())e.value.Nj(c)}}0>=this.Z&&(g.$z(Error("durationMs was specified incorrectly with a value of: "+this.Z)),this.pj());this.Ll();this.G.addEventListener("progresssync",this.oa)};
g.k.xn=function(){yK.prototype.xn.call(this);this.Fg("adabandonedreset",!0)};
g.k.Ll=function(){var a=this.G.V();ZB("apbs",void 0,"video_to_ad");yK.prototype.Ll.call(this);this.D=a.N("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.I=this.D+this.Z/1E3;g.fH(a)?this.G.Qa("onAdMessageChange",{renderer:this.B.j,startTimeSecs:this.D}):tEa(this,[new HK(this.B.j)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.kA(),c=this.B.j.videoAdBreakOffsetMsInt64;b&&g.gw("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*
this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J){this.ea=!0;b=this.B.j;if(!GK(b)){g.aA(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.t(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;HEa(d.j(),e);I_(d.j(),e,f)}}g.U(this.G.Db(1),512)&&(g.aA(Error("player stuck during adNotify")),a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.kA(),c=this.B.j.videoAdBreakOffsetMsInt64,
b&&g.gw("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.I),timeToAdBreakSec:Math.ceil(this.I-this.D),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.pj())};
g.k.pj=function(){yK.prototype.pj.call(this);this.Fg("adended",!0)};
g.k.yn=function(a){g.aA(new g.Yv("Player error during adNotify.",{errorCode:a}));yK.prototype.yn.call(this,a);this.Fg("aderror",!0)};
g.k.Fg=function(a,b){(void 0===b?0:b)||g.aA(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.oa);this.Is();zEa(this,a);"adended"===a||"aderror"===a?this.ma("adnotifyexitednormalorerror"):this.ma(a)};
g.k.dispose=function(){this.G.removeEventListener("progresssync",this.oa);zEa(this);yK.prototype.dispose.call(this)};
g.k.Is=function(){g.fH(this.G.V())?this.G.Qa("onAdMessageChange",{renderer:null,startTimeSecs:this.D}):yK.prototype.Is.call(this)};MK.prototype.sendAdsPing=function(a){this.B.send(a,AEa(this),{})};
MK.prototype.Uf=function(a){var b=this;if(a){var c=AEa(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.v(NK,yK);g.k=NK.prototype;g.k.zz=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.B.u,isPlaying:UDa(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}};
g.k.aC=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Wf();a&&b&&this.G.V().oa.add(b,{Uy:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Rga(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.cg("//web.archive.org/web/20221116135136/https://tpc.googlesyndication.com/sodar/%{path}");g.aA(new g.Yv("Load Sodar Error.",d instanceof ag,d.constructor===ag,{Message:e.message,"Escaped injector basename":g.Lg(c.siub),"BG vm basename":c.bgub}));if(d.constructor===ag)throw e;}}catch(e){g.$z(e)}FJ(this.G,!1);
a=$Da(this.B);b=this.G.V();a.iv_load_policy=b.isMobile||g.fH(b)||g.rH(b)?3:1;b=this.G.getVideoData(1);b.Rh&&(a.ctrl=b.Rh);b.Bi&&(a.ytr=b.Bi);b.Fo&&(a.ytrcc=b.Fo);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.mj&&(a.vss_credentials_token_type=b.mj),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ma("adunstarted",-1);this.Z?this.I.start():(this.G.cueVideoByPlayerVars(a,2),this.I.start(),this.G.playVideo(2))};
g.k.Pz=function(){yK.prototype.Pz.call(this);this.ma("adpause",2)};
g.k.Qz=function(){yK.prototype.Qz.call(this);this.ma("adplay",1)};
g.k.Ll=function(){yK.prototype.Ll.call(this);this.I.stop();this.ea.S(this.G,g.eB("bltplayback"),this.DW);var a=new g.cB(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.xe([a],2);a=RK(this);this.D.Ba=a;if(this.G.isMuted()){a=this.j;var b=this.G.isMuted();jK(a)||lK(a,b?"mute":"unmute")}this.ma("adplay",1);if(null!==this.J){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=DEa(this);for(var c=this.B,d=CEa(this),e=g.t(this.J.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.Wf(),q=l.getVideoUrl();p&&n.push(new e_(p));q&&n.push(new dWa(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new g_(q)),(q=q.elementId)&&n.push(new j_(q))):PA("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new h_(p));l.j.adNextParams&&n.push(new WZ(l.j.adNextParams||""));(p=l.Aa)&&n.push(new XZ(p));(p=f.Ta.get().dg(2))?(n.push(new YZ({channelId:p.Zk,
channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new ZZ(p.isListed))):PA("Expected meaningful PlaybackData on ad started.");n.push(new a_(l.B));n.push(new n_(l.u));n.push(new f_(a));n.push(new k_({current:this}));p=l.Ma;null!=p.kind&&n.push(new $Z(p));(p=l.Ka)&&n.push(new w_(p));void 0!==m&&n.push(new x_(m));f.j?PA(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):EEa(f,h,n,!0,l.j.adLayoutLoggingData)}}this.G.Qa("onAdStart",
RK(this));a=g.t(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.DW=function(a){"bltcompletion"==a.getId()&&(this.G.Df("bltplayback",2),mK(this.j,this.getDuration()),QK(this,"adended"))};
g.k.pj=function(){yK.prototype.pj.call(this);this.Fg("adended");for(var a=g.t(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.xn=function(){yK.prototype.xn.call(this);this.Fg("adabandoned")};
g.k.XE=function(){var a=this.j;iK(a)||qK(a,"clickthrough");this.C||(a=this.j,iK(a)||qK(a,"unmuted_clickthrough"))};
g.k.FA=function(){this.UI()};
g.k.UI=function(){yK.prototype.UI.call(this);this.Fg("adended")};
g.k.yn=function(a){yK.prototype.yn.call(this,a);this.Fg("aderror")};
g.k.Fg=function(a){this.I.stop();FJ(this.G,!0);"adabandoned"!=a&&this.G.Qa("onAdComplete");QK(this,a);this.G.Qa("onAdEnd",RK(this));this.ma(a)};
g.k.Is=function(){var a=this.G.V();g.fH(a)&&(g.rH(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.fH(a))?this.G.Qa("onAdInfoChange",null):yK.prototype.Is.call(this)};
g.k.kT=function(){this.o_&&this.G.playVideo()};
g.k.o_=function(){return 2==this.G.getPlayerState(2)};
g.k.HP=function(a,b){if(!Number.isFinite(a))return g.$z(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.$z(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=$Da(this.B);d=this.G.Jv(d,"",2,c,a,b);a+c>b&&this.G.Hx(d,b-a);return d};
g.k.dispose=function(){UDa(this.G)&&!this.Z&&this.G.stopVideo(2);QK(this,"adabandoned");yK.prototype.dispose.call(this)};SK.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={Yy:null,iR:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.iR))if(b.iR=c,b.Yy){if(c<b.Yy.end){a:{c=b.Yy;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start||c.end<=a?null:a}null!==a&&(b.Yy.end=a,this.u.aS(a))}}else if(a=JEa(a,
this.B))c=a.g_,b.Yy=a.PY,this.u.BK(c)};
SK.prototype.updateTime=function(){};VK.prototype.yh=function(a){var b=this.j;g.uh(function(){return b.yh(a,1)})};g.k=XK.prototype;g.k.Nv=function(a,b,c,d,e){var f=this;REa(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.Bf=!1;f.u=!1;f.C=!b&&0===c})};
g.k.TL=function(){var a=this.G.getVideoData(1);if(!this.G.N("html5_no_video_to_ad_on_preroll")||null!=a&&a.Wa)this.u=!1,a={},this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId}),LB("video_to_ad",a)};
g.k.UL=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});LB("ad_to_ad",a)};
g.k.yx=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});LB("ad_to_video",a);this.G.N("send_csi_info_for_ad_to_video_killswitch")||QEa(this)};
g.k.BL=function(){if(this.Bf&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(this.G.N("html5_no_video_to_ad_on_preroll")?(ZB("apbs",void 0,this.actionType),ZB("pbs",void 0,this.actionType)):(JB("apbs",void 0,this.actionType),JB("pbs",void 0,this.actionType)),g.wu("finalize_all_timelines")))){var a=this.actionType;IB(a);BB(a);HB(a)}};
g.k.reset=function(){return new XK(this.G)};var o6a,r3,UEa;
o6a={p$:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",fda:"AUTHENTICATION_MALFORMED",gda:"AUTHENTICATION_MISSING",tda:"BAD_REQUEST",eea:"CAST_SESSION_DEVICE_MISMATCHED",fea:"CAST_SESSION_VIDEO_MISMATCHED",gea:"CAST_TOKEN_EXPIRED",hea:"CAST_TOKEN_FAILED",iea:"CAST_TOKEN_MALFORMED",Eea:"CGI_PARAMS_MALFORMED",Fea:"CGI_PARAMS_MISSING",Cma:"DEVICE_FALLBACK",foa:"GENERIC_WITH_LINK_AND_CPN",goa:"ERROR_HDCP",loa:"LICENSE",ooa:"VIDEO_UNAVAILABLE",wta:"FORMAT_UNAVAILABLE",Mta:"GEO_FAILURE",
gva:"HTML5_AUDIO_RENDERER_ERROR",hva:"GENERIC_WITHOUT_LINK",iva:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",jva:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",kva:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",vwa:"INVALID_DRM_MESSAGE",iPa:"PURCHASE_NOT_FOUND",jPa:"PURCHASE_REFUNDED",PPa:"RENTAL_EXPIRED",dQa:"RETRYABLE_ERROR",dRa:"SERVER_ERROR",sVa:"STOPPED_BY_ANOTHER_PLAYBACK",nWa:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",oWa:"STREAMING_NOT_ALLOWED",pWa:"STREAM_LICENSE_NOT_FOUND",oYa:"TOO_MANY_REQUESTS",
pYa:"TOO_MANY_REQUESTS_WITH_LINK",rYa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",sYa:"TOO_MANY_STREAMS_PER_USER",c2a:"UNSUPPORTED_DEVICE",F2a:"VIDEO_FORBIDDEN",K2a:"VIDEO_NOT_FOUND"};r3={};
g.jQ=(r3.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.",r3.DEVICE_FALLBACK="Sorry, this video is not available on this device.",r3.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",r3.LICENSE="Sorry, there was an error licensing this video.",r3.VIDEO_UNAVAILABLE=
"Video unavailable",r3.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",r3.GEO_FAILURE="This video isn't available in your country.",r3.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",r3.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",r3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",r3.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",
r3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",r3.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",r3.PURCHASE_NOT_FOUND="This video requires payment.",r3.PURCHASE_REFUNDED="This video's purchase has been refunded.",r3.RENTAL_EXPIRED="This video's rental has expired.",r3.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",r3.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
r3.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",r3.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",r3.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",r3.SERVER_ERROR="There was an internal server error. Please try again later.",r3.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",r3.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
r3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",r3.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",r3.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",r3.TOO_MANY_REQUESTS="Please log in to watch this video.",r3.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",r3.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
r3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",r3.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",r3.VIDEO_FORBIDDEN="Access to this video is forbidden.",r3.VIDEO_NOT_FOUND="This video can not be found.",r3);
UEa={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(YK,g.K);g.k=YK.prototype;g.k.bC=function(){return this.B};
g.k.Iv=function(a){var b="";a&&(ZEa(this,a),b=a.j);if(!this.Vf()||b)b&&this.Vf()!==b&&(this.fC(b),delete this.u,this.C&&(this.C.reject(),delete this.C)),a&&a.u||this.load(),this.T||(this.addEventListener("volumechange",this.mP),this.T=!0)};
g.k.Fq=function(a,b){if(this.u)if(p6a&&qF(this.u)&&!this.u.Nw(a,b))XEa(this),this.stopVideo();else return this.mediaSource=this.u,this.u=void 0,this.mediaSource;a=this.Ef();a=window.MediaSource?new oF(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new oF(new window.WebKitMediaSource,void 0,!1):new oF(void 0,a,!1);this.Iv(a.B);return this.mediaSource=a};
g.k.playVideo=function(){var a=this;this.kh()&&this.seekTo(0);!this.Vf()&&this.B&&(g.Bu(Error("playVideo without src")),this.fC(this.B.j),this.B.u||this.load());var b=this.play();!b&&$P&&7<=(AJ||0)&&g.dpa(this,"playing",function(){g.Ru(function(){YEa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.qj()&&($P&&4>AJ&&(a=Math.max(.1,a)),this.eC(a))};
g.k.hm=function(){if(!this.u&&this.mediaSource)try{this.mediaSource.clear(),this.u=this.mediaSource,this.mediaSource=void 0}catch(a){g.Bu(a),this.stopVideo()}};
g.k.stopVideo=function(){var a=this;if(!this.u)if(q6a){if(!this.C){var b=new LG;b.then(void 0,function(){});
this.C=b;r6a&&this.pause();g.Ru(function(){a.C===b&&(aL(a),b.resolve())},200)}}else aL(this)};
g.k.ww=function(){var a=this.jh();return 0<hF(a)&&this.getDuration()?gF(a,this.getCurrentTime()):0};
g.k.Us=function(){var a=this.getDuration();return Infinity===a?1:a?this.ww()/a:0};
g.k.Yb=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:dF(this.Ws(),",",3),vbu:dF(this.jh()),vpa:""+ +this.Co(),vsk:""+ +this.Tg(),ven:""+ +this.kh(),vpr:""+this.getPlaybackRate(),vrs:""+this.qj(),vns:""+this.mD(),vec:""+this.cf(),vemsg:this.rf(),vvol:""+this.getVolume(),vdom:""+ +this.tJ(),vsrc:""+ +!!this.Vf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Pa(a,b,!1,this);this.hI(a)};
g.k.removeEventListener=function(a,b){this.D.zc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.C&&"pause"===a.type?!1:this.D.dispatchEvent(a)};
g.k.dI=function(){this.J=!1};
g.k.aI=function(){this.J=!0;this.qx(!0)};
g.k.mP=function(){this.J&&!this.lD()&&this.qx(!0)};
g.k.equals=function(a){return!!a&&a.Ef()===this.Ef()};
g.k.ra=function(){this.T&&this.removeEventListener("volumechange",this.mP);q6a&&aL(this);g.K.prototype.ra.call(this)};
var q6a=!1,r6a=!1,p6a=!1;g.k=g.cL.prototype;g.k.getData=function(){return this.stateData};
g.k.Rc=function(){return g.U(this,8)&&!g.U(this,512)&&!g.U(this,64)&&!g.U(this,2)};
g.k.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)};
g.k.isError=function(){return g.U(this,128)};
g.k.isSuspended=function(){return g.U(this,512)};
g.k.bA=function(){return g.U(this,64)&&g.U(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var s3={},t3=(s3.BUFFERING="buffering-mode",s3.CUED="cued-mode",s3.ENDED="ended-mode",s3.PAUSED="paused-mode",s3.PLAYING="playing-mode",s3.SEEKING="seeking-mode",s3.UNSTARTED="unstarted-mode",s3);g.v(nL,g.Mz);g.k=nL.prototype;g.k.nt=function(){var a=this.u;return a.u instanceof RJ||a.u instanceof $J||a.u instanceof SJ};
g.k.qG=function(){return this.u.u.qs()};
g.k.JN=function(){return this.u.j};
g.k.rG=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.k.KN=function(){return aK(this.u)};
g.k.oQ=function(a){if(!hB(a)){this.Z&&(this.Aa=this.G.isAtLiveHead(),this.ya=Math.ceil(g.Sa()/1E3));var b=new VK(this.Eh);a=LEa(a);b.yh(a)}this.LN()};
g.k.YQ=function(){return!0};
g.k.eA=function(){return this.J instanceof RJ};
g.k.LN=function(){var a=this.Eh;this.YQ()&&(a.u&&qL(a,!1),a.u=this,this.nt()&&EGa(a));this.D.TL();this.HS()};
g.k.HS=function(){this.J?this.By(this.J):rL(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Mk(0);rL(this,b)};
g.k.LR=function(){this.onAdEnd()};
g.k.V_=function(){lK(this.j.j,"active_view_measurable")};
g.k.Y_=function(){var a=this.j.j;iK(a)||tK(a)||lK(a,"active_view_fully_viewable_audible_half_duration")};
g.k.d0=function(){};
g.k.e0=function(){};
g.k.f0=function(){};
g.k.g0=function(){};
g.k.k0=function(){var a=this.j.j;iK(a)||tK(a)||lK(a,"active_view_viewable")};
g.k.W_=function(){var a=this.j.j;iK(a)||tK(a)||lK(a,"audio_audible")};
g.k.X_=function(){var a=this.j.j;iK(a)||tK(a)||lK(a,"audio_measurable")};
g.k.VP=function(){return this.eA()?[this.oD()]:[]};
g.k.Vc=function(a){if(null!==this.j){this.oa||(a=new g.vK(a.state,new g.cL),this.oa=!0);var b=a.state;if(g.xK(a,2))this.j.pj();else{var c=a;(this.G.V().experiments.gb("html5_bulleit_handle_gained_playing_state")?c.state.Rc()&&!c.rr.Rc():c.state.Rc())?(this.D.BL(),this.j.Qz()):b.isError()?this.j.yn(b.getData().errorCode):g.xK(a,4)&&(this.ea||this.j.Pz())}if(null!==this.j){if(g.xK(a,16)&&(b=this.j.j,!(iK(b)||.5>b.j.getCurrentTime(2,!1)))){c=b.ad;if(c.Zz()){var d=b.B.G.V().N("html5_dai_enable_active_view_creating_completed_adblock");
ska(c.I,d)}b.ad.D.seek=!0}0>wK(a,4)&&!(0>wK(a,2))&&(b=this.j,c=b.j,iK(c)||uK(c,"resume"),b.C||(b=b.j,iK(b)||uK(b,"unmuted_resume")));!this.G.V().experiments.gb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.xK(a,512)&&!g.lL(a.state)&&this.D.yx()}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?bFa(this):!1};
g.k.resume=function(){this.j&&this.j.kT()};
g.k.jw=function(){this.j&&this.j.Fg("adended")};
g.k.mq=function(){this.jw()};
g.k.Mk=function(a){this.Eh.Mk(a)};
g.k.EW=function(a){this.Eh.j.Qa("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.j.eg(a)};
g.k.TP=function(){return 0};
g.k.UP=function(){return 1};
g.k.qM=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a<pL(this)&&this.G.Js(a,this.u.j.end)};
g.k.By=function(a){g.Ze(this.j);this.j=a=this.ws.create(a,dK(gEa(this.u)),this.u.j.j);this.IJ(a);a.Aa?a.yn("ui_unstable"):a.aC();cFa(this,!1)};
g.k.IJ=function(a){a.subscribe("adabandoned",g.Qa(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Qa(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.V_,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.LR,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.Y_,this);a.subscribe("adoverlaymeasurableimpression",this.d0,this);a.subscribe("adoverlayunviewableimpression",this.e0,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.f0,this);a.subscribe("adoverlayviewableimmediateimpression",this.g0,this);a.subscribe("adpause",this.ZI,this);a.subscribe("adplay",this.ZI,this);a.subscribe("adunstarted",this.ZI,this);a.subscribe("onAdUxUpdate",this.EW,this);a.subscribe("adviewableimpression",this.k0,this);a.subscribe("adaudioaudible",this.W_,this);a.subscribe("adaudiomeasurable",this.X_,this)};
g.k.ZI=function(a){this.Mk(a)};
g.k.oD=function(){return this.J};
g.k.isLiveStream=function(){return this.Z};
g.k.reset=function(){return new nL(this.Eh,this.G,this.D.reset(),this.u,this.Ho,this.cw,this.ws,this.daiEnabled)};
g.k.ra=function(){g.Ze(this.j);this.j=null;g.Mz.prototype.ra.call(this)};hFa.prototype.create=function(a){return(a.u instanceof SJ?this.B:""===a.D?this.j:this.u)(a)};vL.prototype.C=function(a){this.client=a};
vL.prototype.uP=function(a,b){b=void 0===b?{}:b;var c,d=null==(c=g.N(null==a?void 0:a.commandMetadata,g.K2))?void 0:c.rootVe;if(d){c=g.N(null==a?void 0:a.commandMetadata,L4a);if(null==c?0:c.parentTrackingParams){var e=g.dA(c.parentTrackingParams);if(c.parentCsn)var f=c.parentCsn}else b.GY?e=b.GY:a.clickTrackingParams&&(e=g.dA(a.clickTrackingParams));a:{c=g.N(a,g.VH);a=g.N(a,B4a);if(c){if(a=iFa(c,"VIDEO")){a={token:a,videoId:c.videoId};break a}}else if(a&&(c=iFa(a,"PLAYLIST"))){a={token:c,playlistId:a.playlistId};
break a}a=void 0}b=Object.assign({},{cttAuthInfo:a,parentCsn:f},b);mFa(this,d,e,b)}else g.aA(new g.Yv("Error: Trying to create a new screen without a rootVeType",a))};
vL.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.kA(void 0===c?0:c))?(wta(this.client,c,g.dA(a),b),b=!0):b=!1:b=!1;return b};
vL.prototype.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.u.has(c)?this.J.push([a,b]):oFa(this,a,b,c)};zL.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.En.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)};
zL.prototype.replace=function(a,b){a=g.t(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];qFa(this,b)};var s6a=window.location.hostname.split(".").slice(-2).join("."),u3;BL.getInstance=function(){u3=g.Ga("yt.clientLocationService.instance");u3||(u3=new BL,g.Ea("yt.clientLocationService.instance",u3));return u3};
g.k=BL.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.uu("INNERTUBE_CLIENT_NAME")?(this.localStorage=AL(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.ev("YT_CL",JSON.stringify({loctok:a}),15552E3,s6a,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=AL(this))&&this.localStorage.remove("yt-location-playability-token"):g.gv("YT_CL")};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.uu("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};DL.prototype.dD=function(a,b){a={};var c=Th([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.uu("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.wu("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c),"INNERTUBE_HOST_OVERRIDE"in ru||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in ru&&(a["X-Goog-PageId"]=g.uu("DELEGATED_SESSION_ID")));return a};var FL;g.v(EL,DL);EL.prototype.dD=function(a,b){a=DL.prototype.dD.call(this,a,b);return Object.assign({},a,this.Zt)};var DFa=/[&\?]action_proxy=1/,CFa=/[&\?]token=([\w-]*)/,EFa=/[&\?]video_id=([\w-]*)/,FFa=/[&\?]index=([\d-]*)/,GFa=/[&\?]m_pos_ms=([\d-]*)/,JFa=/[&\?]vvt=([\w-]*)/,xFa="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(" "),HFa="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(" "),zFa={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"},AFa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},IFa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};IL.prototype.Qw=function(a){this.player.vj().tick(a)};
IL.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return KL(this,a,b);var d=1===this.j;d&&this.Qw("a_bid_s");var e=sFa();if(null!==e)return d&&this.Qw("a_bid_f"),KL(this,a,b,e);e=tFa();d&&Bh(e,function(){c.Qw("a_bid_f")});
return e.then(function(f){return KL(c,a,b,f)})};
IL.prototype.reset=function(){this.u=this.j=1};g.v(LL,g.Mz);g.k=LL.prototype;g.k.JN=function(){return this.j.j};
g.k.rG=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.k.KN=function(){return aK(this.j)};
g.k.nt=function(){return!1};
g.k.qG=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.oQ=function(a){var b=this;PA("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.rG()||(c=LEa(a));this.j.B=1;Bh(this.C.fetch(this.j.D,{Xy:this.j.C||void 0,Yd:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=KFa(b,d);var f=b.B;f.j&&d.isEmpty&&PEa("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.ZQ||(b.j.B=2,(new VK(b.u)).yh(e),d.isEmpty||Ita(b.I,d.Do))}},function(){(new VK(b.u)).yh(c);
var d=b.B;d.j&&PEa("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.rG()&&dM(b.u)})}};
g.k.LN=function(){};
g.k.qM=function(){};g.v(ML,CJ);ML.prototype.Hw=function(){return!0};
ML.prototype.qs=function(){return!1};var NFa=Object.freeze([zK,CK,$J,ML,RJ]);g.v(NL,nL);g.k=NL.prototype;g.k.VP=function(){for(var a=this.B.j,b=g.t(a),c=b.next();!c.done;c=b.next());return a};
g.k.YQ=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Hw()})};
g.k.eA=function(){return this.I instanceof RJ||this.I instanceof CK};
g.k.HS=function(){this.daiEnabled?DJ(this.G)&&bFa(this):MFa(this)};
g.k.By=function(a){var b=LFa(a);this.I&&b&&this.T!==b&&(b?EGa(this.Eh):GGa(this.Eh),this.T=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
nL.prototype.By.call(this,a)};
g.k.IJ=function(a){var b=this;nL.prototype.IJ.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void rL(b)})};
g.k.mq=function(){this.C=this.B.j.length;this.j&&this.j.Fg("adended");rL(this)};
g.k.jw=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Mk(0),a?rL(this,b):MFa(this))};
g.k.LR=function(){if(1==this.B.u)this.I instanceof DK&&g.aA(Error("AdNotify error with FailureMode.TERMINATING")),rL(this);else this.onAdEnd()};
g.k.oD=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.k.nt=function(){return this.T};
g.k.qG=function(){return this.B.j.every(function(a){return a.qs()})};
g.k.reset=function(){return new NL(this.Eh,this.G,this.D.reset(),this.u,this.Ho,this.cw,this.ws,this.daiEnabled)};
g.k.TP=function(){return this.C};
g.k.UP=function(){return this.B.j.length};OFa.prototype.RP=function(){return this.j};g.v(PFa,SJ);g.v(RFa,SJ);SFa.prototype.create=function(a,b){function c(h){return new RJ(h,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new RFa(f,c,this.j):null!=a?new PFa(a,c):null};TFa.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.t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new Rta(h.B,h.u,h.daiEnabled,h.C),m=h.nf;m&&(l.nf=new VA(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.j));h.j&&(l.j=h.j);l.visible=h.visible;h=l;h.nf=f;e.push(UFa(this,a[0],c,h));c++}}else for(a=g.t(a),d=a.next();!d.done;d=a.next())e.push(UFa(this,d.value,c,b)),c++;return e};g.v(SL,g.K);SL.prototype.addEventListener=function(a,b){this.j=b};
SL.prototype.removeEventListener=function(){this.j=null};
g.v(TL,g.K);TL.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
TL.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.v(XFa,g.K);var UL=null,VL=null,WL=null,XL=null;g.Ea("yt.www.ads.eventcache.getLastCompanionData",function(){return UL});
g.Ea("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Ea("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return VL});
g.Ea("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return WL});
g.Ea("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return XL});var jGa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.v($L,g.K);$L.prototype.ra=function(){this.Te.clear();g.K.prototype.ra.call(this)};
$L.prototype.Uf=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.t(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
$L.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&kGa(this,"loggingUrls",a.loggingUrls,b,c);a=g.t(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?gGa(this,e):"confirmDialogEndpoint"===d?hGa(this,e):jGa.hasOwnProperty(d)||kGa(this,d,e,b,c)}};g.v(bM,XK);g.k=bM.prototype;g.k.Nv=function(){};
g.k.TL=function(){};
g.k.UL=function(){};
g.k.yx=function(){};
g.k.BL=function(){};
g.k.reset=function(){return new bM(this.G)};g.v(pGa,g.K);g.v(cM,g.Mz);g.k=cM.prototype;g.k.dJ=function(){return!yGa(this,CGa(this))};
g.k.aD=function(){return this.Ba};
g.k.ra=function(){this.oa=!0;g.Lz(this.C);if(EJ(this.j)){var a=sGa(this.j);a.removeEventListener("updateKevlarOrC3Companion",YFa);a.removeEventListener("updateEngagementPanelAction",ZFa);a.removeEventListener("changeEngagementPanelVisibility",$Fa);window.removeEventListener("yt-navigate-start",aGa);XL=WL=VL=UL=null}a=g.t(this.B.values());for(var b=a.next();!b.done;b=a.next())FGa(this,b.value);qL(this,!1);this.xs.clear();this.Z=[];this.J.clear();g.Ze(this.ea);this.ea=new Map;g.Ze(this.I);this.I=new Map;
this.B.clear();g.Mz.prototype.ra.call(this)};
g.k.lK=function(a){if(a instanceof gB&&!a.B&&(!eua(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.U(this.j.Db(1),32))this.J.add(a);else{var b=this.B.get(a);b&&((this.j.V().experiments.gb("enable_eviction_protection_for_bulleit")?this.u?this.u.qG():1:1)?b.oQ(a):a.deactivate())}};
g.k.J0=function(a){a instanceof gB&&(a.B&&(a.B=!1),this.J.delete(a))};
g.k.BK=function(){};
g.k.aS=function(a){var b=1E3*a;this.u&&this.u.qM(b);for(var c=g.t(this.B.values()),d=c.next();!d.done;d=c.next())d.value.qM(b);g.qc(this.Ma.j,1E3*a)};
g.k.Mn=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.eA()&&a.G.Lc().playVideo());break;case "control_pause":this.u&&(a=this.u,a.eA()&&a.G.Lc().pauseVideo())}};
g.k.GW=function(a){this.u&&this.u.Vc(a)};
g.k.v0=function(a){0>wK(a,16)&&(this.J.forEach(this.lK,this),this.J.clear())};
g.k.W2=function(){if(this.u)this.u.onVideoDataChange()};
g.k.Z2=function(){if(DJ(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&uEa(b.j,a)}};
g.k.T_=function(){this.Sa=!0;if(this.u){var a=this.u;a.j&&a.j.xn()}};
g.k.h0=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.b3=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.G.isMuted();jK(b)||lK(b,c?"mute":"unmute");a.C||(b=a.G.isMuted(),lK(a.j,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.R0=function(a){if(this.u){var b=this.u.j,c=b.j;iK(c)||qK(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,iK(b)||qK(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.yh=function(a,b){this.j.yh(a,b);a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.xs.delete(b),this.B.delete(b)};
g.k.O4=function(){for(var a=[],b=g.t(this.xs),c=b.next();!c.done;c=b.next())c=c.value,hB(c)||a.push(c);this.j.xM(a,1)};
g.k.Mk=function(a){this.j.Mk(a);switch(a){case 1:this.GD=1;break;case 0:this.GD=0}};
g.k.PL=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.T:!1};
g.k.jw=function(){this.u&&this.u.nt()&&this.u.jw()};
g.k.mq=function(){this.u&&this.u.nt()&&this.u.mq()};
g.k.jc=function(a){if(this.u){var b=this.u;b.j&&uEa(b.j,a)}};
g.k.executeCommand=function(a,b,c){this.qb.executeCommand(a,b,BGa(this,void 0===c?null:c))};
g.k.isDaiEnabled=function(){return!1};
g.k.RP=function(){return this.Aa};
g.k.SP=function(){return this.Ka};g.v(eM,g.K);eM.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)};
g.v(fM,eM);g.v(JGa,g.K);var $U=16/9,t6a=[.25,.5,.75,1,1.25,1.5,1.75,2],u6a=t6a.concat([3,4,5,6,7,8,9,10,15]);var LGa=1;g.v(g.hM,g.K);g.k=g.hM.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.F;var c=a.K,d=a.Ga;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.F);g.tH&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.bh(a.F);if(c){if(c=iM(this,e,"class",c))jM(this,e,"class",c),this.wc[c]=e}else if(d){c=g.t(d);for(var f=c.next();!f.done;f=c.next())this.wc[f.value]=e;jM(this,e,"class",d.join(" "))}d=a.qa;c=a.W;if(d)b=iM(this,e,"child",d),void 0!==b&&e.appendChild(g.ch(b));else if(c)for(d=0,c=g.t(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=iM(this,e,"child",f),null!=f&&e.appendChild(g.ch(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Qb&&(h=gM(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.eh(e,f,d++))}if(a=a.X)for(b=e,d=g.t(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],jM(this,b,c,"string"===typeof f?
iM(this,b,c,f):f);return e};
g.k.Da=function(a){return this.wc[a]};
g.k.Ca=function(a,b){"number"===typeof b?g.eh(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.fh(this.element)};
g.k.update=function(a){for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.updateValue(c,a[c])};
g.k.updateValue=function(a,b){(a=this.We["{{"+a+"}}"])&&jM(this,a[0],a[1],b)};
g.k.ra=function(){this.wc={};this.We={};this.detach();g.K.prototype.ra.call(this)};g.v(g.V,g.hM);g.k=g.V.prototype;g.k.Wd=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.sb||(g.Il(this.element,"display",""),this.sb=!0)};
g.k.hide=function(){this.sb&&(g.Il(this.element,"display","none"),this.sb=!1)};
g.k.Wb=function(a){this.ya=a};
g.k.Pa=function(a,b,c){return this.S(this.element,a,b,c)};
g.k.S=function(a,b,c,d){c=(0,g.Pa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.zc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;jh(a);a.focus()};
g.k.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.hM.prototype.ra.call(this)};g.v(g.lM,g.V);g.lM.prototype.subscribe=function(a,b,c){return this.Wa.subscribe(a,b,c)};
g.lM.prototype.unsubscribe=function(a,b,c){return this.Wa.unsubscribe(a,b,c)};
g.lM.prototype.Zg=function(a){return this.Wa.Zg(a)};
g.lM.prototype.ma=function(a){return this.Wa.ma.apply(this.Wa,[a].concat(g.u(g.ya.apply(1,arguments))))};var v6a=new WeakSet;g.v(mM,g.lM);g.k=mM.prototype;g.k.bind=function(a){if(!this.Xa&&a.renderer){var b=this.api.V().N("enable_macro_substitution_on_html5")?{}:Object.assign({},IGa(this.api),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Xa=a;this.element.setAttribute("id",this.Xa);this.qb&&g.po(this.element,this.qb);this.Z=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.yg(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.lM.prototype.hide.call(this);null!=this.J&&this.Va(this.element,!1)};
g.k.show=function(){g.lM.prototype.show.call(this);if(!this.yb){this.yb=!0;var a=this.Z&&this.Z.impressionCommand;a&&this.cF(a,null)}null!=this.J&&this.Va(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!v6a.has(a)){var b=this.element;this.api.Cj(b)&&this.sb&&this.api.tb(b,this.j);v6a.add(a)}if(a=this.Z&&this.Z.clickCommand)a=this.RS(a),this.cF(a,this.WP())};
g.k.RS=function(a){return a};
g.k.WP=function(){return null};
g.k.JW=function(a){var b=this.oa;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=KGa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.T=Infinity,b.Z=Infinity):(b.T=c.clientX,b.Z=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.IW=function(a){var b=this.oa;a=a.changedTouches.item(0);if(Lb()&&!(0<=g.rb(Maa(),8))||a&&Math.pow(a.clientX-b.T,2)+Math.pow(a.clientY-b.Z,2)>Math.pow(5,2))b.C=!0};
g.k.HW=function(a){if(this.oa){var b=this.oa,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&KGa(b,c)&&(b.ea=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.J=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.cF=function(a){this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(a,this.layoutId):g.$z(new g.Yv("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType})):PM(this.bb,a,this.macros)};
g.k.yg=function(a,b){this.api.yg(a,this);this.api.Ah(a,b)};
g.k.Va=function(a,b){this.api.Cj(a)&&this.api.Va(a,b,this.j)};
g.k.ra=function(){this.clear(null);this.zc(this.kb);for(var a=g.t(this.Aa),b=a.next();!b.done;b=a.next())this.zc(b.value);g.lM.prototype.ra.call(this)};g.v(DM,mM);
DM.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.aA(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.po(this.element,a);null!=b.text&&(a=g.jB(b.text),g.eb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.lM({F:"span",K:"ytp-ad-button-text",qa:a}),g.L(this,this.C),this.C.Ca(this.element)));this.api.V().N("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.eb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=CM(b.icon),null!=b&&(this.B=new g.lM({F:"span",K:"ytp-ad-button-icon",W:[b]}),g.L(this,this.B)),this.D?g.eh(this.element,this.B.element,0):this.B.Ca(this.element))}};
DM.prototype.clear=function(){this.hide()};
DM.prototype.onClick=function(a){mM.prototype.onClick.call(this,a);a=g.t(eHa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):g.$z(Error("Missing layoutId for button.")):PM(this.bb,b,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(EM,g.K);EM.prototype.ra=function(){this.u&&g.Fx(this.u);this.j.clear();FM=null;g.K.prototype.ra.call(this)};
EM.prototype.register=function(a,b){b&&this.j.set(a,b)};
var FM=null;g.v(HM,mM);
HM.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.N(b.button,g.SI)||null;null==b?g.$z(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new DM(this.api,this.jb,this.layoutId,this.j,this.bb),g.L(this,this.button),this.button.init(GJ("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.jB(a)),this.button.Ca(this.element),this.I&&!g.oo(this.button.element,"ytp-ad-clickable")&&g.po(this.button.element,"ytp-ad-clickable"),
a&&(this.B=new g.lM({F:"div",K:"ytp-ad-hover-text-container"}),this.D&&(b=new g.lM({F:"div",K:"ytp-ad-hover-text-callout"}),b.Ca(this.B.element),g.L(this,b)),g.L(this,this.B),this.B.Ca(this.element),b=GM(a),g.eh(this.B.element,b,0)),this.show())};
HM.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();mM.prototype.hide.call(this)};
HM.prototype.show=function(){this.button&&this.button.show();mM.prototype.show.call(this)};g.v(JM,mM);
JM.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&IM(a)||"";g.eb(c)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.aA(Error("Found AdImage without valid image URL")):(this.u?g.Il(this.element,"backgroundImage","url("+c+")"):Xg(this.element,{src:c}),Xg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),
this.show())};
JM.prototype.clear=function(){this.hide()};g.v(KM,mM);g.k=KM.prototype;g.k.hide=function(){mM.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;mM.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.$z(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.$z(Error("ConfirmDialogRenderer.cancelLabel was not set.")):iHa(this,b):g.$z(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Lz(this.u);this.hide()};
g.k.hK=function(){this.hide()};
g.k.yG=function(){var a=this.B.cancelEndpoint;a&&(this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(a,this.layoutId):g.$z(Error("Missing layoutId for confirm dialog.")):PM(this.bb,a,this.macros));this.hide()};
g.k.jK=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(a,this.layoutId):g.$z(Error("Missing layoutId for confirm dialog.")):PM(this.bb,a,this.macros));this.hide()};g.v(LM,mM);g.k=LM.prototype;
g.k.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.$z(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.$z(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.po(this.C,a)}a={};b.defaultText?
(c=g.jB(b.defaultText),g.eb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Ul(this.Ba,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.ea.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=CM(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.T=!0,c=CM(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Ul(this.I,!0),g.Ul(this.D,!1)),g.Ul(this.u,!1)):g.Ul(this.ea,!1);g.sf(a)||this.update(a);
b.isToggled&&(g.po(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));MM(this);this.S(this.element,"change",this.VN);this.show()}};
g.k.onClick=function(a){0<this.Aa.length&&(this.toggleButton(!this.isToggled()),this.VN());mM.prototype.onClick.call(this,a)};
g.k.VN=function(){g.to(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.t(jHa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):g.$z(Error("Missing layoutId for toggle button.")):PM(this.bb,b,this.macros);if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);MM(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.to(this.C,"ytp-ad-toggle-button-toggled",a);this.u.checked=a;MM(this)};
g.k.isToggled=function(){return this.u.checked};g.v(NM,Jz);NM.prototype.T=function(a){if(Array.isArray(a)){a=g.t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof iB&&this.C(b)}};g.v(OM,mM);g.k=OM.prototype;g.k.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.$z(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.aA(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.aA(Error("AdFeedbackRenderer.title was not set.")),nHa(this,b)):g.$z(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Yx(this.I);Yx(this.T);this.D.length=0;this.hide()};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();mM.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.u&&this.u.show();this.B&&this.B.show();this.C=document.activeElement;mM.prototype.show.call(this);this.I.focus()};
g.k.UR=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ma("a");this.hide()};
g.k.V2=function(){this.hide()};
oHa.prototype.isChecked=function(){return this.B.checked};g.v(QM,KM);QM.prototype.hK=function(a){KM.prototype.hK.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
QM.prototype.yG=function(a){KM.prototype.yG.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
QM.prototype.jK=function(a){KM.prototype.jK.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ma("b")};g.v(RM,mM);g.k=RM.prototype;
g.k.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.$z(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.aA(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.N(b.closeOverlayRenderer,g.SI)||null)this.u=new DM(this.api,this.jb,this.layoutId,this.j,this.bb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.L(this,this.u),
this.u.init(GJ("button"),a,this.macros),this.u.Ca(this.element);b.title&&(a=g.jB(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=GM(a[c]);if(!g.eb(d.textContent)){var e=ah("LI");e.appendChild(d);this.Ka.appendChild(e)}}else g.Ul(this.Ka,!1);b.dialogMessage&&(a=GM(b.dialogMessage,!0),this.Oa.appendChild(a));b.confirmLabel&&(a=g.jB(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.N(b.muteAdRenderer,g.SI)||null)&&(a=b.navigationEndpoint&&
g.N(b.navigationEndpoint,z4a)||null,c=b.navigationEndpoint&&g.N(b.navigationEndpoint,s3a)||null,null==a&&null==c?g.aA(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?pHa(this,a):c&&qHa(this,c),this.C=new DM(this.api,this.jb,this.layoutId,this.j,this.bb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.L(this,this.C),this.C.init(GJ("button"),b,this.macros),this.C.Pa("click",this.q1,this),this.C.Ca(this.Sa)));rHa(this)}};
g.k.clear=function(){Yx(this.T);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.u&&this.u.hide();this.C&&this.C.hide();mM.prototype.hide.call(this);this.ea&&this.ea.focus()};
g.k.show=function(){this.u&&this.u.show();this.C&&this.C.show();if(!this.Ma){for(var a=g.t(this.I&&this.I.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):g.$z(Error("Missing layoutId for ad info dialog.")):PM(this.bb,b,this.macros);this.Ma=!0}this.ea=document.activeElement;mM.prototype.show.call(this);this.T.focus()};
g.k.WN=function(){if(this.I&&this.I.confirmServiceEndpoint){var a=this.I.confirmServiceEndpoint;this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(a,this.layoutId):g.$z(Error("Missing layoutId for ad info dialog.")):PM(this.bb,a,this.macros)}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ma("d");this.hide()};
g.k.q1=function(){var a=this.B?this.B:this.D;a&&!a.sb&&(this.hide(),a.show())};g.v(SM,HM);SM.prototype.init=function(a,b,c){HM.prototype.init.call(this,a,b,c);a=b.button&&g.N(b.button,g.SI)||null;null!=a&&(wHa(this,a,c),this.show())};
SM.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();HM.prototype.hide.call(this)};
SM.prototype.show=function(){this.button&&this.button.show();HM.prototype.show.call(this)};
SM.prototype.clear=function(){this.hide()};g.v(TM,mM);
TM.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);this.u=b;this.isTemplated()||g.ih(this.element,nM(this.u));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?IM(a):"",c=(c=this.api.getVideoData(1))&&c.Qm,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(a=g.Mg(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
TM.prototype.isTemplated=function(){return this.u.isTemplated||!1};
TM.prototype.clear=function(){this.hide()};var AHa={seekableStart:0,seekableEnd:1,current:0};g.v(VM,mM);VM.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var h=g.t(f);f=h.next().value;h=ha(h);return a.apply(f,h)}
function d(f){f=g.t(f);f.next();f=ha(f);return b(e,f)}
b=void 0===b?Wka:b;var e=g.Oa(a);return function(){var f=g.ya.apply(0,arguments),h=this||g.C,l=h3a.get(h);l||(l={},h3a.set(h,l));return Xaa(l,[this].concat(g.u(f)),c,d)}})(function(a){var b=g.bh("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.bh("DIV");g.Sl(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.fh(b);return a});g.v(g.YM,g.K);g.k=g.YM.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.gC(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.sb||(ZM(this,!0),this.state=1,a?this.delay.start(a):this.gC()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.sb&&(ZM(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.gC=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:ZM(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();ZM(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.gC()};
g.k.ra=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.K.prototype.ra.call(this)};g.v($M,VM);g.k=$M.prototype;
g.k.init=function(a,b,c){VM.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.$z(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Sa&&g.po(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Ba=null==a||0===a?this.u.nw():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(GJ("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Qm&&b.thumbnail?this.I.init(GJ("ad-image"),b.thumbnail,c):this.T.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.I.hide();XM(this);VM.prototype.hide.call(this)};
g.k.show=function(){WM(this);this.B.show();this.C.show();this.I.show();VM.prototype.show.call(this)};
g.k.Tt=function(){this.hide()};
g.k.Er=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ma&&a>=this.Ba?(this.ea.hide(),this.Ma=!0,this.ma("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ba-a)/1E3)),a!=this.Oa&&(UM(this.C,{TIME_REMAINING:String(a)}),this.Oa=a)))}};g.v(bN,VM);g.k=bN.prototype;
g.k.init=function(a,b,c){VM.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.N(b.actionButton,g.SI))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&g.eb(g.Mg(e[0].url))&&(e[0].url=d.profilePicture)}else g.aA(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(GJ("ad-image"),b.image,c);this.ea.init(GJ("ad-text"),
b.headline,c);this.T.init(GJ("ad-text"),b.description,c);this.B.init(GJ("button"),a,c);this.I=a.navigationEndpoint;this.api.ND()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.XN.bind(this));this.Ba=b.startMs||0;WM(this)}else g.$z(Error("FlyoutCtaRenderer has no valid action button."));else g.$z(Error("FlyoutCtaRenderer has no description AdText."));else g.$z(Error("FlyoutCtaRenderer has no headline AdText."));else g.aA(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){VM.prototype.onClick.call(this,a);this.api.pauseVideo();!g.hh(this.B.element,a.target)&&this.I&&(this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(this.I,this.layoutId):g.$z(Error("Missing layoutId for flyout cta.")):PM(this.bb,this.I,this.macros))};
g.k.Er=function(){if(this.u){var a=this.u.getProgressState();a&&a.current&&1E3*a.current>=this.Ba&&(XM(this),g.ro(this.element,"ytp-flyout-cta-inactive"),this.api.V().N("disable_tabbing_before_flyout_ad_elements_appear")&&this.B.element.removeAttribute("tabIndex"))}};
g.k.Tt=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.XN.bind(this))};
g.k.show=function(){this.B&&this.B.show();VM.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();VM.prototype.hide.call(this)};
g.k.XN=function(a){"hidden"==a?this.show():this.hide()};g.v(cN,mM);g.k=cN.prototype;
g.k.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(a=this.u.likeButton&&g.N(this.u.likeButton,O2),b=this.u.dislikeButton&&g.N(this.u.dislikeButton,O2),this.C.init(GJ("toggle-button"),a,c),this.B.init(GJ("toggle-button"),b,c),this.S(this.element,"change",this.YN),this.D.show(100),this.show(),c=g.t(this.u&&this.u.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(a,
this.layoutId):g.$z(Error("Missing layoutId for instream user sentiment.")):PM(this.bb,a,this.macros)};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();mM.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();mM.prototype.show.call(this)};
g.k.YN=function(){Eka(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Qa("onYtShowToast",this.u.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Aa.length&&this.YN();mM.prototype.onClick.call(this,a)};g.v(dN,g.K);g.k=dN.prototype;g.k.ra=function(){this.reset();g.K.prototype.ra.call(this)};
g.k.reset=function(){g.Lz(this.C);this.I=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.J.play())};
g.k.start=function(){this.reset();this.C.S(this.B,"mouseover",this.LW,this);this.C.S(this.B,"mouseout",this.KW,this);this.j?this.j.start():(this.I=this.u=!0,g.Il(this.B,{opacity:this.Z}))};
g.k.LW=function(){this.u&&(this.u=!1,this.J.play());this.D.stop();this.j&&this.j.stop()};
g.k.KW=function(){this.I?this.D.start():this.j&&this.j.start()};
g.k.SO=function(){this.u||(this.u=!0,this.T.play(),this.I=!0)};g.v(eN,VM);g.k=eN.prototype;
g.k.init=function(a,b,c){VM.prototype.init.call(this,a,b,c);this.T=b;this.Ba=yHa(this);if(!b||g.sf(b))g.$z(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.sf(b.message))g.$z(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=CM(a);null==b?g.$z(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):(this.I=new g.lM({F:"button",Ga:["ytp-ad-skip-button","ytp-button"],W:[{F:"span",K:"ytp-ad-skip-button-icon",
W:[b]}]}),g.L(this,this.I),this.I.Ca(this.C.element),this.B=new TM(this.api,this.jb,this.layoutId,this.j,this.bb,"ytp-ad-skip-button-text"),this.B.init(GJ("ad-text"),this.T.message,c),g.L(this,this.B),g.eh(this.I.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.Aa.length)&&c.isMobile&&(NG?0:"ontouchstart"in document.documentElement&&($ga()||Jk()))&&(this.zc(this.kb),d&&this.zc(d),this.Aa=[this.S(this.element,"touchstart",this.JW,this),this.S(this.element,"touchmove",this.IW,
this),this.S(this.element,"touchend",this.HW,this)])}};
g.k.clear=function(){this.ea.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();XM(this);VM.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.Kx(a),VM.prototype.onClick.call(this,a),this.ma("j"),this.Ma||!this.Ba))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.RS=function(a){if(!this.Ma)return this.Ba&&PA("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.N(a,g.fN))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&xHa(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.WP=function(){return"skip"};
g.k.cF=function(a,b){b=BGa(this.jb,b);this.api.V().N("enable_macro_substitution_on_html5")?(b=fEa(this.macros,!1,b),this.layoutId?R_(this.bb,a,this.layoutId,b):g.$z(Error("Missing layoutId for skip button."))):PM(this.bb,a,this.macros,b)};
g.k.show=function(){this.ea.start();this.C.show();this.B&&this.B.show();WM(this);VM.prototype.show.call(this)};
g.k.Tt=function(){this.ma("k")};
g.k.Er=function(){};g.v(gN,VM);g.k=gN.prototype;
g.k.init=function(a,b,c){VM.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.N(b.preskipRenderer,X_)||{};(a=g.sf(a)?null:a)?(this.T=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new $M(this.api,this.jb,this.layoutId,this.j,this.bb,this.u,"countdown_next_to_thumbnail"==OF(this.api.V().experiments,"preskip_button_style_ads_backend")&&eH(this.api.V())),this.B.init(GJ("preskip-component"),a,c),aN(this.B),g.L(this,this.B),this.B.Ca(this.element)):
b.skipOffsetMilliseconds&&(this.T=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&g.N(b.skippableRenderer,q3a)||{};b=g.sf(b)?null:b;null==b?g.$z(Error("SkipButtonRenderer was not set in player response.")):(this.C=new eN(this.api,this.jb,this.layoutId,this.j,this.bb,this.u,this.ea),this.C.init(GJ("skip-button"),b,c),g.L(this,this.C),this.C.Ca(this.element),this.show())};
g.k.show=function(){this.I&&this.C?this.C.show():this.B&&this.B.show();WM(this);VM.prototype.show.call(this)};
g.k.Tt=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();XM(this);VM.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();XM(this);VM.prototype.hide.call(this)};
g.k.Er=function(){1E3*this.u.getProgressState().current>=this.T&&zHa(this,!0)};g.v(hN,DM);hN.prototype.init=function(a,b,c){DM.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.jB(b.text),a=!g.eb(a));a?null==b.navigationEndpoint?g.aA(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.aA(Error("Button style was not a link-style type in renderer,")):this.show():g.aA(Error("No visit advertiser text was present in the renderer."))};g.v(iN,mM);iN.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);a=b.text;g.eb(nM(a))?g.aA(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.targetId&&(b.targetId=a.targetId),a=new TM(this.api,this.jb,this.layoutId,this.j,this.bb),a.init(GJ("simple-ad-badge"),b,c),a.Ca(this.element),g.L(this,a)),this.show())};
iN.prototype.clear=function(){this.hide()};g.v(jN,HJ);g.v(kN,g.Mz);g.k=kN.prototype;g.k.nw=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Zc.zc(this.j)};
g.k.jc=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.Vc=function(a){g.xK(a,2)&&this.ma("g")};g.v(lN,g.Mz);g.k=lN.prototype;g.k.nw=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.timer.start())};
g.k.stop=function(){this.u&&(this.u=!1,this.timer.stop())};
g.k.jc=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.jb&&this.jb.jc(this.B.current);this.ma("h");a&&this.ma("g")};
g.k.getProgressState=function(){return this.B};g.v(oN,VM);g.k=oN.prototype;g.k.init=function(a,b,c){VM.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){Du(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new TM(this.api,this.jb,this.layoutId,this.j,this.bb);this.B.init(GJ("ad-text"),a,{});this.B.Ca(this.element);g.L(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){XM(this);VM.prototype.hide.call(this)};
g.k.Tt=function(){this.hide()};
g.k.Er=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.u instanceof kN?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof lN?a.seekableEnd:this.api.getDuration(2,!1))-a.current,UM(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.mN(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){WM(this);VM.prototype.show.call(this)};g.v(pN,TM);pN.prototype.onClick=function(a){TM.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(uN,g.lM);uN.prototype.jc=function(){var a=this.u.getProgressState();this.Cc.style.width=100*tN(new qN(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
uN.prototype.onStateChange=function(){g.YG(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.jc,this),this.jc()):-1!==this.j&&(this.hide(),this.u.Zg(this.j),this.j=-1))};g.v(vN,mM);
vN.prototype.init=function(a,b,c,d){mM.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.N(c,V_),c=g.N(c,X_),a?(c=new gN(this.api,this.jb,this.layoutId,this.j,this.bb,this.u,this.T),c.Ca(this.I),c.init(GJ("skip-button"),a,this.macros),g.L(this,c)):c&&(a=new $M(this.api,this.jb,this.layoutId,this.j,this.bb,this.u,!1),a.Ca(this.I),a.init(GJ("ad-preview"),c,this.macros),aN(a),g.L(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new cN(this.api,this.jb,this.layoutId,this.j,this.bb),c.Ca(this.ea),c.init(GJ("instream-user-sentiment"),a,this.macros),g.L(this,c));if(a=g.N(b,j3a))if(a=g.N(a,j3a))c=new bN(this.api,this.jb,this.layoutId,this.j,this.bb,this.u),g.L(this,c),c.Ca(this.D),c.init(GJ("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new iN(this.api,this.jb,this.layoutId,this.j,this.bb,!0),g.L(this,c),
c.Ca(this.B),c.init(GJ("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 oN(this.api,this.jb,this.layoutId,this.j,this.bb,this.u,d),g.L(this,d),d.Ca(this.B),d.init(GJ("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.N(b.adInfoRenderer,W_))&&(a=new SM(this.api,this.jb,this.layoutId,this.j,this.bb,this.element),
g.L(this,a),a.Ca(this.B),a.init(GJ("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(b=g.N(b.visitAdvertiserRenderer,g.SI))&&(d=BHa(this)&&this.C?this.C:this.B)&&(a=new hN(this.api,this.jb,this.layoutId,this.j,this.bb),g.L(this,a),a.Ca(d),a.init(GJ("visit-advertiser"),b,this.macros));(b=this.api.V())&&!g.VG(b)&&"3"==b.controlsType&&(b=new uN(this.api,this.u),b.Ca(this.Ba),g.L(this,b));this.api.V().N("enable_updated_html5_player_focus_style")&&g.po(this.element,"ytp-ad-player-overlay-updated-focus-style");
this.show()};
vN.prototype.clear=function(){this.hide()};g.Ea("yt.pubsub.publish",g.ky);var GN={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var v3={},LHa=(v3.WEB_UNPLUGGED="^unplugged/",v3.WEB_UNPLUGGED_ONBOARDING="^unplugged/",v3.WEB_UNPLUGGED_OPS="^unplugged/",v3.WEB_UNPLUGGED_PUBLIC="^unplugged/",v3.WEB_CREATOR="^creator/",v3.WEB_KIDS="^kids/",v3.WEB_EXPERIMENTS="^experiments/",v3.WEB_MUSIC="^music/",v3.WEB_REMIX="^music/",v3.WEB_MUSIC_EMBEDDED_PLAYER="^music/",v3.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",v3);DN.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?GN:c;var d={context:g.CL(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.CN(this.B());(e=null==(f=g.N(a.commandMetadata,g.K2))?void 0:f.apiUrl)&&(b=e);f=Uma(vv(b));a=Object.assign({},{command:a},void 0);d={input:f,Hr:wv(f),En:d,config:a};d.config.Cs?d.config.Cs.identity=c:d.config.Cs={identity:c};return d}g.$z(new g.Yv("Error: Failed to create Request from Command.",a))};
g.da.Object.defineProperties(DN.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(EN,DN);EN.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Hr:wv("/getDatasyncIdsEndpoint","GET"),En:{}}};
EN.prototype.B=function(){return[]};
EN.prototype.j=function(){};
EN.prototype.u=function(){};var w6a={},NHa=(w6a.GET_DATASYNC_IDS=BN(EN),w6a);var SHa="tokens consistency mss client_location entities response_received_commands store PLAYER_PRELOAD".split(" "),UHa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var XHa=new ly("INNERTUBE_TRANSPORT_TOKEN");g.v(IN,DN);IN.prototype.B=function(){return c5a};
IN.prototype.j=function(a){return g.N(a,P4a)||void 0};
IN.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.da.Object.defineProperties(IN.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(JN,DN);JN.prototype.B=function(){return d5a};
JN.prototype.j=function(a){return g.N(a,N4a)||void 0};
JN.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.da.Object.defineProperties(JN.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(KN,DN);KN.prototype.B=function(){return $4a};
KN.prototype.j=function(a){return g.N(a,NKa)||void 0};
KN.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.da.Object.defineProperties(KN.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(LN,DN);LN.prototype.B=function(){return a5a};
LN.prototype.j=function(a){return g.N(a,M4a)||void 0};
LN.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(MN,DN);MN.prototype.B=function(){return b5a};
MN.prototype.j=function(a){return g.N(a,K4a)||void 0};
MN.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(NN,DN);NN.prototype.B=function(){return Z4a};
NN.prototype.j=function(a){return g.N(a,A4a)};
NN.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var gpa=new ly("NETWORK_SLI_TOKEN");ON.prototype.fetch=function(a,b){var c=this,d,e;return g.A(function(f){c.j&&(d=ci(g.ei(5,xi(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.wu("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.aA(h)}))):f.return(fetch(e).then(function(h){return c.handleResponse(h)}).catch(function(h){g.aA(h)}))})};
ON.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.aA(new g.Yv("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
ON[ny]=[new my];var WHa=new ly("NETWORK_MANAGER_TOKEN");var PN;RN.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.Ww)f.onreadystatechange=function(p){c.Ww(f,p)};
var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.t(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.t(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
RN.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.aA(new g.Yv("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.aA(new g.Yv("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};g.nI("","downloadsPageViewConfigurationEntity");g.w3=g.nI("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.nI("SMART_DOWNLOADS_ENABLED","settingEntity");g.nI("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var ZHa=[],SN=!1;UN.getInstance=function(){var a=g.Ga("ytglobal.storage_");a||(a=new UN,g.Ea("ytglobal.storage_",a));return a};
UN.prototype.estimate=function(){var a,b,c;return g.A(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(aIa()):d.return()})};
g.Ea("ytglobal.storageClass_",UN);ew.prototype.jA=function(a){this.handleError(a)};
ew.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.wu("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.wu("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":cIa(this,b);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=g.xu("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.k=VN.prototype;
g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(e=a.interpreterSafeScript,g.cg("From proto message. b/166824318"),e=$ca(e.privateDoNotAccessOrElseSafeScriptWrappedValue||"").toString());a.interpreterSafeUrl&&(f=a.interpreterSafeUrl,g.cg("From proto message. b/166824318"),d=g.fg(f.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());eIa(this,e,d,a.program,b,c)}else g.aA(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.AB()};
g.k.getState=function(){return this.state};
g.k.isLoading=function(){return 2===this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;return this.AB()?this.LU({Wv:a}):null};
g.k.dispose=function(){this.ra()};
g.k.ra=function(){this.KL(null);this.Oc(8)};
g.k.AB=function(){return!!this.j};
g.k.KU=function(a){return this.j.snapshot(a)};
g.k.LU=function(a){return this.j.HT(a)};
g.k.KL=function(a){g.Ze(this.j);this.j=a};
g.k.Oc=function(a){this.state=a};g.v(YN,VN);g.k=YN.prototype;g.k.ra=function(){this.Oc(8)};
g.k.KL=function(a){var b;null==(b=XN())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.HT.bind(a)},g.Ea("yt.abuse.playerAttLoader",b),g.Ea("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Ea("yt.abuse.playerAttLoader",null),g.Ea("yt.abuse.playerAttLoaderRun",null))};
g.k.AB=function(){return!!XN()};
g.k.KU=function(a){return XN().bgvmb(a)};
g.k.LU=function(a){return XN().bgvmc(a)};var ZN,aO;g.WN=new YN;ZN=0;aO=[];var TTa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var rIa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},sIa={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"},tIa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},qIa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},oIa={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"},pIa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.v(iO,g.K);iO.prototype.ra=function(){this.T=this.u=this.B=this.I=this.j=this.J=this.D=this.C=void 0};var x3={},zIa=(x3["api.invalidparam"]=2,x3.auth=150,x3["drm.auth"]=150,x3["heartbeat.net"]=150,x3["heartbeat.servererror"]=150,x3["heartbeat.stop"]=150,x3["html5.unsupportedads"]=5,x3["fmt.noneavailable"]=5,x3["fmt.decode"]=5,x3["fmt.unplayable"]=5,x3["html5.missingapi"]=5,x3["html5.unsupportedlive"]=5,x3["drm.unavailable"]=5,x3["mrm.blocked"]=151,x3);var CIa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.v(kO,g.K);g.k=kO.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.J[a],f=d;if(e)if(c&&XA(c,e5a))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Dm&&!this.state.T.has(a)&&(this.state.T.add(a),g.gw("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.t(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.aA(Error('Dangerous call to "'+a+
'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.state.D[a]?!0:!!(this.state.J[a]&&b&&XA(b,e5a))};
g.k.getBandwidthEstimate=function(){return HG(this.app.V().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.qO(this.app);b&&(a={gpu:(0,g.WX)(),d:a},b.handleError(new AH("feedback",a)))};
g.k.getApiInterface=function(){return Array.from(this.state.C)};
g.k.getInternalApiInterface=function(){return g.of(this.state.j)};
g.k.mY=function(a,b){if("string"===typeof b){var c=function(){var d=g.ya.apply(0,arguments);g.Ga(b).apply(window,d)};
this.state.I[b]=c}else c=b;this.app.Lo.subscribe(a,c)};
g.k.E3=function(a,b){if("string"===typeof b){var c=this.state.I[b];g.tf(this.state.I,b);b=c}this.app.Lo.unsubscribe(a,b)};
g.k.getPlayerState=function(){return pVa(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.seekTo=function(a,b,c){var d=g.iH(this.app.V()),e=this.app.getVideoData().Pk;if(!g.Fv(d)||e)this.j&&zZ(this.app,!0,this.playerType),BZ(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.vj().C.j=(0,g.Q)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&zZ(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.qO(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Bd()&&(l=h.getStreamTimeOffset());BZ(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.qO(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.qO(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&BZ(this.app,Infinity,a,b,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.sf(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.Th.volume};
g.k.setVolume=function(a){IIa(this,a)};
g.k.syncVolume=function(){var a=RUa(this.app);pO(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.isMuted=function(){return this.app.Th.muted};
g.k.mute=function(){JIa(this)};
g.k.unMute=function(){KIa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().gh&&this.app.ud().allowImaMonetization,autoplay:tJ(this.app.ud()),mutedAutoplay:this.app.ud().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&zZ(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Oe()){var b=QP(this.app.vb());if(!K1a(b)){b.Mn("control_play");return}if(L1a(b))return}3===a?RO(this.app.vb()).Mn("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Oe()){var b=QP(this.app.vb());if(!K1a(b)){b.Mn("control_pause");return}}3===a?RO(this.app.vb()).Mn("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.Y.pc&&a.Ua.ma("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.qO(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.V();return a.Od?["https://web.archive.org/web/20221116135136/https://admin.youtube.com","https://web.archive.org/web/20221116135136/https://viacon.corp.google.com","https://web.archive.org/web/20221116135136/https://yurt.corp.google.com"].includes(a.u?a.ancestorOrigins[0]:window.location.origin)||a.Fm?u6a:t6a:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.qO(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.qO(this.app,this.playerType);return a?(a=g.Vd(a.xq(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.qO(this.app,this.playerType);return a?g.Vd(a.xq(),function(b){return b.qualityLabel}):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.getSize=function(){var a=this.app.fb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.fb().resize()};
g.k.channelSubscribed=function(){this.Qa("SUBSCRIBE",this.app.ud().Zk)};
g.k.channelUnsubscribed=function(){this.Qa("UNSUBSCRIBE",this.app.ud().Zk)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.qO(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.qO(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.qO(this.app,this.playerType);a&&a.Of("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.V().Em=a};
g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=zv("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,qBa)};
g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return this.app.ud().FM};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.LP(this.app.vb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.LP(this.app.vb()))&&a.loaded&&a.K4()};
g.k.loadVideoById=function(a,b,c){a&&(a=jO(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&zZ(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){a=jO(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=BIa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&zZ(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=BIa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.V();if(a.Z)return"";var b=this.app.ud(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.V();if(a.Z)return"";var b=this.app.ud();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.ud().videoId,this.app.fb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return yVa(this.app,a,b,c)};
g.k.addUtcCueRange=function(a,b,c,d,e){return zVa(this.app,a,b,c,d,e)};
g.k.removeCueRange=function(a){return AVa(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&zZ(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.j&&zZ(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&zZ(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&zZ(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.uZ=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.xP(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.vb();return"captions"===a?(a=g.LP(d))&&a.Pg(b,c):null};
g.k.getOption=function(a,b,c){var d=g.qO(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().u?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.vb();if("captions"===a){var c;return(null==(c=g.LP(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.LP(b)&&a.push("captions"),a)};
g.k.xZ=function(a){a=void 0===a?this.playerType:a;var b=this.lQ(a);if(a=g.qO(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.ya;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?Pg(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Pg(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.WX;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=CDa(a);b.paidContentOverlayDurationMs=eJ(a);a.j&&lC(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.lQ=function(a){a=void 0===a?this.playerType:a;var b=GIa(this,a);if(a=g.qO(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.Yc;b.isManifestless=QI(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.In()&&(b.isEncrypted=!0);if(a.C)for(var c=g.t(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==
(e=d.value.video)?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.I)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.showVideoInfo=function(){bVa(this.app,!0)};
g.k.hideVideoInfo=function(){bVa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.qO(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.U(a,128)&&5===AIa(b.errorCode))};
g.k.getSphericalProperties=function(){var a=g.TO(this.app.vb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.TO(this.app.vb());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.qO(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.k.updateDownloadState=function(a,b){return this.app.updateDownloadState(a,b)};
g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.A(function(l){return 1==l.j?(f=TP(e.app.vb()))?g.x(l,f.fL([a],b,c,d),3):l.Ja(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.k.resumeVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.k.refreshAllVideos=function(a){return this.app.refreshAllVideos(a)};
g.k.refreshAllStaleEntities=function(a){return this.app.refreshAllStaleEntities(a)};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a){if(this.N("web_player_autonav_use_server_provided_state")&&!this.N("web_player_force_local_autonav_state")){var b=this.app.ud();if(null==b?0:RI(b)){if(this.N("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.JM=b.autonavState);else if(void 0!==b.JM)a=b.JM,b.JM=void 0;else return}}HVa(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.qO(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.qO(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.qO(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.V().oa.add(a,{xC:b,uB:c})};
g.k.updateLastActiveTime=function(){$x()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.V().fl!==a&&(this.app.V().fl=a,(a=g.qO(this.app,this.playerType))&&cZ(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.LP(this.app.vb()).zU(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.LP(this.app.vb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.LP(this.app.vb());a&&a.dU()};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Oe()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.qO(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Vi();if(!c)return null;b=c.levels[b];return b?(a=g.AI(b,a))?{column:a.column,columns:a.columns,height:a.Gt,row:a.row,rows:a.rows,url:a.url,width:a.oA}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Vi();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Bd();return b.ZB(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Vi();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Zu(),minFrameIndex:b.xG()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Vi();return a?a.levels.length:0};
g.k.hZ=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.qO(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Cm};
g.k.setAudioTrack=function(a,b){3===this.getPresentingPlayerType()&&RO(this.app.vb()).Mn("control_set_audio_track",a);var c=g.qO(this.app,this.playerType);if(c&&!c.isDisposed()&&!g.U(c.playerState,128)){var d;if(null==(d=c.videoData.C)?0:d.j)if(b){b=c.getCurrentTime();d=b-c.Bd();var e=LUa(c,d);c.Ia.setAudioTrack(a,d,e)&&HY(c.Wc,b)}else c.Ia.setAudioTrack(a,NaN,NaN);else if(oUa(c)){a:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.Mc.getName()){if(e.enabled){b=!1;break a}b=
e.enabled=!0;break a}b=void 0}b&&c.va("hlsaudio",{id:a.id})}else{a:if(b=c.videoData,b.I&&!QE(b.I)||a==b.Om||!b.zd||0>=b.zd.length)b=!1;else{d=g.t(b.zd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof GH)){b=!1;break a}var f=a.Mc.getId();e.B&&(wBa(e.B,f),e.u=null)}b.Om=a;b=!0}b&&UY(c)&&(c.ma("internalaudioformatchange",c.videoData,!0),c.va("hlsaudio",{id:a.id}))}}};
g.k.iZ=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.qO(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.qO(this.app,this.playerType);return a&&a.getVideoData().B?iC(a.gf?IX(a.Oh,a.gf,a.Ts()):FI):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.qO(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.LP(this.app.vb());return a?a.wZ():null};
g.k.resetSubtitlesUserSettings=function(){g.LP(this.app.vb()).K3()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.fb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.Jf();return this.app.getVisibilityState(this.Rg(),this.isFullscreen()||g.VG(this.app.V()),a,this.isInline(),this.app.Kw(),this.app.Gw())};
g.k.isMutedByMutedAutoplay=function(){return this.app.pA};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.fb().setInternalSize(new g.Gg(a,b))};
g.k.Bd=function(){var a=g.qO(this.app);return a?a.Bd():0};
g.k.Jf=function(){return this.app.Jf()};
g.k.Rg=function(){var a=g.qO(this.app,this.playerType);return!!a&&a.Rg()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);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.xP(b).videoId||(a.index=b.index)):pZ(this.app,{list:a.list,index:a.index,playlist_length:d.length});zP(this.app.getPlaylist(),a);this.Qa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.qO(this.app,this.playerType||1);c&&g.JI(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){cH(this.app.V(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.UP(this.app.vb());d&&d.Li()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.fb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.qO(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.qO(this.app,this.playerType);d&&g.lUa(d,g.fC(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.ma("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)};
g.k.dispatchReduxAction=function(a){g.WI.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Le.includes(e)||(c.Le.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Wb(c.Le,e)&&(d=!0)});
d&&this.ma("updatemarkervisibility")};
g.k.highlightSettingsMenuItem=function(a){this.ma("highlightSettingsMenu",a)};
g.k.ma=function(a){var b=g.ya.apply(1,arguments);this.app.V().D&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Lo.ma.apply(this.app.Lo,[a].concat(g.u(b)));this.app.xp.ma.apply(this.app.xp,[a].concat(g.u(b)))};
g.k.Qa=function(a){var b=g.ya.apply(1,arguments);this.app.Lo.ma.apply(this.app.Lo,[a].concat(g.u(b)));this.app.xp.ma.apply(this.app.xp,[a].concat(g.u(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.logImaAdEvent=function(a,b){this.app.V().gh&&this.app.ud().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Mea(this.app.V().loaderUrl),eventType:a,youtubeHost:g.fi(this.app.V().ya)||""},g.gw("embedsAdEvent",a))};
g.k.N=function(a){return this.app.V().N(a)};
g.k.ra=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.K.prototype.ra.call(this)};g.v(tO,kO);g.k=tO.prototype;g.k.addCueRange=function(a,b,c,d,e){return yVa(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return pVa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){BZ(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){var e=g.iH(this.app.V()),f,h=null==(f=this.app.getVideoData())?void 0:f.Pk;g.Fv(e)&&!h||BZ(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):kO.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=RO(this.app.vb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):kO.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return RO(this.app.vb()).getProgressState();var b=this.app.getVideoData(),c=g.qO(this.app,a)||g.qO(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if(null==(f=e.progressBarStartPosition)?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=OIa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if(null==(h=f.progressBarEndPosition)?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(h)){h=OIa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.sf(d),m=this.app.isAtLiveHead(d),n=this.app.ww(),p=this.app.Td(d);var q=this.app;(d=g.qO(q,d))?(d=nZ(q,d),d=wZ(q,ZT(d),d)):d=0;c=c.Bd();return{airingStart:e,airingEnd:h,allowSeeking:this.app.Sg(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:d,offset:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.sO(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.sO(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.sO(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.sO(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.fb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.Fz();this.app.Sk(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.aA(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.sH(b))return this.isFullscreen()?Hz(window.document.documentElement):Ez(window.document.documentElement).catch(a)}else if(g.Fz()||b.J)return this.isFullscreen()?Hz(Gz()):"3"!==b.controlsType&&g.Fz()?Ez(this.app.fb().element).catch(a):(b=this.app.Zd().Ef())?Ez(b).catch(a):Promise.reject(Error("Media element missing"));this.Qa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=QP(this.app.vb());a&&a.created&&a.destroy();(a=g.qO(this.app))&&a.stopVideo();(a=this.app.vb().Ie.get("endscreen"))&&a.i_()&&g.QO(this.app.Ua,!0)};
g.k.stopVideo=function(){var a=this.app.V();!a.N("disable_new_pause_state3")&&nH(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():kO.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.qO(this.app,this.playerType).Yb(!0)};
g.k.toggleSubtitles=function(){var a=g.LP(this.app.vb());a&&a.x4()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.TO(this.app.vb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.TO(this.app.vb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){IIa(this,a,b)};
g.k.mute=function(a){JIa(this,a)};
g.k.unMute=function(a){KIa(this,a)};
g.k.mutedAutoplay=function(){this.N("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.UP(this.app.vb());b&&!b.loaded&&b.load()}kO.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.UP(this.app.vb());b&&b.loaded&&b.unload()}kO.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.vb();switch(a){case "ad":return(a=QP(d))&&a.Pg&&a.Pg(b,c);case "kids":return(a=RP(d))&&a.Pg(b,c);case "remote":return(a=RO(d))&&a.Pg(b,c);case "unplugged":return(a=g.SP(d))&&a.Pg(b,c);case "annotations_module":return(a=g.UP(d))&&a.Pg(b,c);case "creatorendscreen":return(a=VP(d))&&a.Pg(b,c)}return kO.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.vb();switch(a){case "ad":var c,d;return(null==(c=QP(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=RO(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.UP(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=VP(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.SP(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,w;return(null==(r=RP(b))?void 0:null==(w=r.getOptions)?void 0:w.call(r))||null}if(!a){a=kO.prototype.getOptions.call(this);if(!a)return a;QP(b)&&a.push("ad");RO(b)&&a.push("remote");g.UP(b)&&a.push("annotations_module");VP(b)&&a.push("creatorendscreen");g.SP(b)&&a.push("unplugged");RP(b)&&a.push("kids");return a}return kO.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.fb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.sO(this);a&&a.Wn()};
g.k.setCenterCrop=function(a){this.app.fb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var MIa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable player_response 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(" "),
NIa="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.OO,tO);g.k=g.OO.prototype;g.k.tm=function(a,b,c,d,e,f,h){return this.app.tm(a,b,c,d,e,f,h)};
g.k.sz=function(){return this.app.sz()};
g.k.wq=aa(6);g.k.vb=function(){return this.app.vb()};
g.k.tf=function(){var a=this.vb().Ie.get("endscreen");return!!a&&a.tf()};
g.k.getRootNode=function(){return this.fb().element};
g.k.V=function(){return this.app.V()};
g.k.xw=aa(8);g.k.Il=function(a){return this.app.Il(a)};
g.k.Jl=function(){return this.settingsMenu};
g.k.Jz=function(){return this.zG};
g.k.Db=function(a){return this.app.Db(a)};
g.k.fb=function(){return this.app.fb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.qO(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.ue))b=void 0;else{var d=a.getCurrentTime();b=b.kq?void 0:null==(c=rU(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.k.Vi=function(a){return this.app.Vi(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.qO(this.app);return a?a.isHdr():!1};
g.k.dA=function(){return this.app.dA()};
g.k.vx=function(a){this.app.vx(a)};
g.k.wg=function(a,b,c,d,e){this.app.ag(a,b,c,d,e)};
g.k.Gp=function(a,b){this.app.Gp(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){RO(this.app.vb()).Mn("control_play");return}if(2===this.getPresentingPlayerType()){var b=QP(this.app.vb());if(b&&L1a(b))return}}catch(c){g.$z(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.qO(this.app,a).stopVideo()};
g.k.hm=function(a){g.qO(this.app,a).hm()};
g.k.addEventListener=function(a,b){this.app.xp.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.xp.unsubscribe(a,b)};
g.k.ma=function(a){tO.prototype.ma.call.apply(tO.prototype.ma,[this,a].concat(g.u(g.ya.apply(1,arguments))))};
g.k.Mk=function(a){this.app.Mk(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.xq=function(){var a={},b=g.qO(this.app).xq();b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.vz=function(){return g.qO(this.app).vz()};
g.k.Fz=aa(12);g.k.ZE=function(a){this.app.ZE(a);a&&HVa(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.Gz=aa(14);g.k.Xl=aa(18);g.k.Qw=function(a,b){this.vb().Qw(a,b)};
g.k.Li=function(){var a=g.UP(this.vb());return!!a&&a.Li()};
g.k.Um=function(){var a=g.UP(this.vb());return!!a&&a.Um()};
g.k.setCardsVisible=function(a,b,c){var d=g.UP(this.vb());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.ox=aa(19);g.k.Au=function(){var a=g.qO(this.app);a&&a.Au()};
g.k.cB=function(a){this.Qa("onVideoAreaChange");this.Qa(a?"onShowControls":"onHideControls")};
g.k.zj=function(a,b){var c=g.sO(this);if(c)return c.zj(a,b);a=this.app.fb().Wi();return new g.Fl(0,0,a.width,a.height)};
g.k.Jq=function(){return this.app.Jq()};
g.k.aA=function(){var a=this.vb().Ie.get("heartbeat");return!!a&&a.aA()};
g.k.Sg=function(){var a=this.V();if(a.Ma||a.disableSeek)return!1;var b=g.qO(this.app);if(!b)return!1;var c=b.getVideoData();return!c.isValid()||g.jJ(c)||2===this.getPresentingPlayerType()&&!this.app.Oe()||b.zn()&&3!==this.getPresentingPlayerType()||g.Fv(g.iH(a))&&!c.Pk?!1:!0};
g.k.Yz=function(){var a;return(null==(a=g.qO(this.app))?void 0:a.Yz)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Lr=function(){var a=g.qO(this.app);a&&a.Lr()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.xe=function(a,b,c){this.app.Ky(a,b,c)};
g.k.yh=function(a,b){this.app.VE(a,b)};
g.k.Df=function(a,b){var c=this.app,d=g.qO(c,b);d&&(a=d.ai.Df(a),b&&c.getPresentingPlayerType()!==b||lZ(c,"cuerangesremoved",a))};
g.k.xM=function(a,b){var c=this.app;b&&c.getPresentingPlayerType()!==b||lZ(c,"cuerangemarkersupdated",a)};
g.k.Of=function(a,b){(b=g.qO(this.app,b))&&b.Of(a)};
g.k.zn=function(){var a=g.qO(this.app);return a?a.zn():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.Ag(a,0,100);pO(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){pO(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){pO(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.Zd=function(){return this.app.Zd()};
g.k.vj=function(){return this.app.vj()};
g.k.Ui=function(a){return this.app.Ui(a)};
g.k.getBandwidthEstimate=function(){return HG(this.V().schedule)};
g.k.rb=function(a,b,c,d){this.V().Wa&&this.app.Qq.rb(a,b,c,void 0===d?!1:d)};
g.k.yg=function(a,b,c){this.V().Wa&&this.app.Qq.yg(a,b,void 0===c?!1:c)};
g.k.Ah=function(a,b){this.V().Wa&&this.app.Qq.Ah(a,b)};
g.k.tb=function(a,b){this.V().Wa&&(this.app.Qq.click(a,b),this.ma("veClickLogged",a))};
g.k.Va=function(a,b,c){if(this.V().Wa){var d=this.app.Qq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.kA(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.sL(e,[f]):g.tL(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.pA(e,f,c),d.B.add(a))}};
g.k.Cj=function(a){return this.V().Wa?this.app.Qq.Cj(a):!1};
g.k.Lc=function(){return g.qO(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.yp=function(){this.app.yp()};
g.k.Zv=function(a,b){return this.app.Zv(a,b)};
g.k.Tn=function(a){this.app.Tn(a)};
g.k.YD=function(){this.app.YD()};
g.k.Jv=function(a,b,c,d,e,f,h){return this.app.Jv(a,b,c,d,e,f,h)};
g.k.Wz=function(a,b,c,d,e,f,h){return this.app.Wz(a,b,c,d,e,f,h)};
g.k.Br=function(a){this.app.Br(a)};
g.k.Js=function(a,b){b=void 0===b?Infinity:b;this.app.Js(void 0===a?-1:a,b)};
g.k.Hx=function(a,b,c){this.app.Hx(a,b,c)};
g.k.Cq=function(){return this.app.Cq()};
g.k.MC=function(a,b,c){this.app.MC(a,b,void 0===c?0:c)};
g.k.Lw=function(){return this.app.Lw()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Oe=function(){return this.app.Oe()};
g.k.Xq=function(a,b,c){return this.app.Xq(a,b,c)};
g.k.va=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.qO(this.app,d))||e.va(a,b,c)};
g.k.hF=function(){return this.app.hF()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.dK=function(a,b){this.ma("aduxmouseover",a,b)};
g.k.cK=function(a,b){this.ma("aduxmouseout",a,b)};
g.k.AK=function(a,b){this.ma("muteadaccepted",a,b)};
g.k.ND=function(){return this.app.fb().ND()};
g.k.wx=function(a){this.app.fb().wx(a)};
g.k.Un=function(){var a=g.qO(this.app);return a?a.Un():!1};
g.k.IL=function(a){this.app.IL(a)};g.v(g.XO,g.lM);g.k=g.XO.prototype;g.k.show=function(){var a=this.oi();g.lM.prototype.show.call(this);this.Ba&&(this.J.S(window,"blur",this.wb),this.J.S(document,"click",this.MW));a||this.ma("show",!0)};
g.k.hide=function(){var a=this.oi();g.lM.prototype.hide.call(this);SIa(this);a&&this.ma("show",!1)};
g.k.Kc=function(a,b){this.u=a;this.Z.show();b?(this.T||(this.T=this.J.S(this.G,"appresize",this.OO)),this.OO()):this.T&&(this.J.zc(this.T),this.T=void 0)};
g.k.PP=function(){this.u&&this.element&&(this.u.getAttribute("aria-haspopup"),this.u.setAttribute("aria-expanded","true"),this.focus())};
g.k.OO=function(){var a=g.sO(this.G);this.u&&a.St(this.element,this.u)};
g.k.wb=function(){var a=this.oi();SIa(this);this.Z.hide();a&&this.ma("show",!1)};
g.k.MW=function(a){var b=Hx(a);b&&(g.hh(this.element,b)||this.u&&g.hh(this.u,b)||!g.nN(a))||this.wb()};
g.k.oi=function(){return this.sb&&4!==this.Z.state};g.v(ZO,g.XO);ZO.prototype.Kc=function(){g.XO.prototype.Kc.call(this);this.dialog.focus()};g.v(g.$O,g.lM);g.$O.prototype.Xg=function(a){this.updateValue("label",a)};
g.$O.prototype.updateValue=function(a,b){g.lM.prototype.updateValue.call(this,a,b);this.ma("size-change")};g.v(cP,g.$O);cP.prototype.Wb=function(a){this.u&&this.G.Va(this.element,this.j&&a)};
cP.prototype.C=function(){var a,b,c=null==(a=this.G.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.G.getVideoData())?void 0:d.accountLinkingConfig;bP(this,tM());var e;this.Xg(dP(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new ZO(this.G,dP(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),dP(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),dP(null==a?void 0:null==
(l=a.menuData)?void 0:l.confirmButtonText));g.L(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.u=!!d)&&this.G.Ah(this.element,d);this.ob.Ec(this);this.j=!0}else!c&&this.j&&(this.ob.Nf(this),this.j=!1)};
cP.prototype.onClick=function(){this.u&&this.G.tb(this.element);this.ob.wb();this.B&&this.B.Kc()};g.v(eP,g.K);eP.prototype.N=function(a){return this.api.N(a)};g.v(fP,eP);fP.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.WM=b};
fP.prototype.setAccountLinkState=function(a){this.api.getVideoData().WM=a;this.api.Au()};
fP.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ma("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.v(TIa,eP);g.v(gP,g.$O);gP.prototype.onClick=function(){this.setValue(!this.checked);this.ma("select",this.checked)};
gP.prototype.getValue=function(){return this.checked};
gP.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(iP,gP);iP.prototype.La=function(a){a?this.j||(this.ob.Ec(this),this.j=!0):this.j&&(this.ob.Nf(this),this.j=!1);this.j&&this.setValue(UIa())};
iP.prototype.B=function(){g.ro(this.element,"ytp-menuitem-highlight-transition-enabled")};
iP.prototype.C=function(a){var b=UIa();a!==b&&(b=g.Mv.getInstance(),Ov(190,a),Ov(192,!0),b.save(),this.G.Qa("cinematicSettingsToggleChange",a))};
iP.prototype.ra=function(){this.j&&this.ob.Nf(this);gP.prototype.ra.call(this)};g.v(jP,eP);jP.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.La(a);this.api.ma("onCinematicSettingsVisibilityChange",a)};g.v(kP,eP);kP.prototype.u=function(a){return void 0!==a.embargo};
kP.prototype.ra=function(){eP.prototype.ra.call(this);this.j={}};g.v(lP,eP);lP.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.V(),c=b.widgetReferrer,d=b.Ac,e=this.j;0<c.length&&(a.embeds_widget_referrer=mP(c));0<d.length&&(a.embeds_loader_url_for_pings=mP(d));b.u&&window.location.host&&(a.embeds_origin=mP(window.location.protocol+"//"+window.location.host));0<e.length&&(a.source_ve_path=mP(e.join(",")));this.j.length=0};g.v(nP,g.V);nP.prototype.onClick=function(){this.Ua.tb(this.element);this.Ua.Qa("onFullerscreenEduClicked")};
nP.prototype.La=function(){this.Ua.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Ua.Va(this.element,this.Ua.isFullscreen()&&!this.u)};g.v(oP,eP);oP.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.to(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.af(b,g.AQ(b.B.xc(),b.element)),b.C=!0))};
oP.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.u=a,b.La())};g.v(XIa,g.V);g.v(aJa,eP);g.v(pP,eP);pP.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;c=new Map(((null==e?void 0:e.qualityDetails)||[]).map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.t(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=UE(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=ZI(a);mC(e);d=[];e=g.t(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===oC(a,f,this.api.V().B)&&d.push(f);b=b.concat(bJa(d,!1,c))}a=this.api.vz();b=b.concat(bJa(a,!0,c));c=[];if(this.api.N("web_player_enable_premium_hbr_playback_cap")){a={};b=g.t(b);for(e=b.next();!e.done;e=b.next())e=
e.value,d=e.qualityLabel,a[d]||(c.push(e),a[d]=!0);cJa(c)}else for(a={},b=g.t(b),e=b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(c.push(e),a[d]=!0);return c};g.v(qP,eP);qP.prototype.ra=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);eP.prototype.ra.call(this)};
qP.prototype.uI=function(a){var b=this;return g.A(function(c){return b.j?c.return(b.j.ready().then(function(){b.Ab.Fi("pot_if");return fJa(b,a)})):c.return(Promise.reject("web po not ready"))})};g.v(gJa,eP);g.v(hJa,g.K);rP.prototype.gK=function(){this.u=(0,g.Q)()};
rP.prototype.reset=function(){this.j=this.u=NaN};
rP.prototype.mK=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.J&&(c.cttAuthInfo={token:a.J,videoId:a.videoId});LB("seek",c);g.MB("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||JB("pl_ss",this.u,"seek");JB(b,(0,g.Q)(),"seek")}this.reset()}};tP.prototype.reset=function(){HB(this.timerName)};
tP.prototype.tick=function(a,b){JB(a,b,this.timerName)};
tP.prototype.Fi=function(a){var b=this.timerName;YB(a,b)?a=!1:(JB(a,void 0,b),a=!0);return a};
tP.prototype.info=function(a,b){g.MB(a,b,this.timerName)};g.v(vP,g.Mz);g.k=vP.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.An=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ma("shuffle")};
g.k.Hf=function(a){a=a||"hqdefault.jpg";var b=this.ea[a];if(b||this.u.Z||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return mH(this.u,this.C[0],a)};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.Ru(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.vn=function(){return this.u.getVideoUrl(g.xP(this).videoId,this.getPlaylistId())};
g.k.ra=function(){this.j=null;g.$e(this.items);g.Mz.prototype.ra.call(this)};var AP=new Map;g.v(g.CP,g.Mz);g.k=g.CP.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Pg=function(){};
g.k.Sj=function(){return!0};
g.k.ra=function(){this.loaded&&this.unload();g.Mz.prototype.ra.call(this)};
g.k.Yb=function(){return{}};
g.k.getOptions=function(){return[]};g.v(g.FP,g.K);g.k=g.FP.prototype;g.k.Wq=aa(22);g.k.Pw=function(){};
g.k.Kp=function(){};
g.k.Xs=function(){return""};
g.k.YK=aa(23);g.k.ra=function(){this.Kp();g.K.prototype.ra.call(this)};g.v(g.GP,g.FP);g.GP.prototype.Wq=aa(21);g.GP.prototype.Pw=function(a){if(this.audioTrack)for(var b=g.t(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.EP(this.j,c.value);a()};
g.GP.prototype.Xs=function(a,b){var c=a.Ge(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.jv()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.MH(a));Object.assign(d,this.Y.deviceParams);return Ju(c,d)};
g.GP.prototype.Kp=function(){this.u&&this.u.abort()};g.HP.prototype.override=function(a){a=g.t(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;Object.defineProperty(this,b,{value:c})}};g.x6a=new Map;g.v(g.JP,g.FP);g.JP.prototype.Wq=aa(20);
g.JP.prototype.Pw=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.LQ&&(d.asrs=1);c=Ju(c,d);this.Kp();this.u=g.Wu(c,{format:"RAW",onSuccess:function(e){b.u=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),r=l.getAttribute("id"),w="true"===l.getAttribute("lang_default"),y="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.EP(b.j,new g.JH({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:y,vss_id:l,is_default:w}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.JP.prototype.Xs=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.MH(a));Object.assign(b,this.Y.deviceParams);return c=Ju(c,b)};
g.JP.prototype.Kp=function(){this.u&&this.u.abort()};xJa.prototype.reload=function(){var a=this,b;return g.A(function(c){if(1==c.j)return b=a,g.x(c,WebAssembly.instantiate(a.module,a.j),2);b.instance=c.u;a.exports=a.instance.exports;g.pa(c)})};g.v(KP,g.K);g.k=KP.prototype;g.k.createSubtitlesModuleIfNeeded=function(){BJa(this)&&NP(this,"captions");return!!g.LP(this)};
g.k.GC=function(){OP(this)&&this.SH();FJa(this)&&(NP(this,"captions",!0),NP(this,"endscreen"),this.TH(),NP(this,"creatorendscreen",!0))};
g.k.gB=function(){return this.G.getVideoData().gB()};
g.k.ML=function(){return this.G.getVideoData().ML()};
g.k.sP=function(){var a=this.Ie.get("heartbeat");NP(this,"heartbeat",!1,!0,this.sP);!a&&this.Ie.has("heartbeat")&&this.G.ma("offlineslatestatechange")};
g.k.isShortsModeEnabled=function(){var a=this.G,b;return!(null==(b=g.sO(a))||!b.Ej())&&a.V().N("embeds_enable_shorts_branded_ui")};
g.k.TH=function(){NP(this,"annotations_module",!0,void 0,this.TH);var a=this.Ie.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.SH=function(){if(!this.Ie.get("ad"))try{MP(this)?NP(this,"ad",!1,!0,this.SH):this.G.Of("ad")}catch(a){this.G.Of("ad"),g.$z(a)}};
g.k.vj=function(){return this.j};
g.k.RI=function(){var a={},b=g.LP(this);b&&Object.assign(a,b.RI());return a};
g.k.Qw=function(a,b){Object.assign(this.j,a||null);Object.assign(this.HC,b||null)};
g.k.ra=function(){g.K.prototype.ra.call(this);PP(this,1,!0);for(var a=g.t(Object.entries(IJa)),b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;this.C.has(c)&&AP.delete(b)}this.C.clear()};
var y3={},IJa=(y3.ad="ad.js",y3.annotations_module="annotations_module.js",y3.creatorendscreen="annotations_module.js",y3.embed="embed.js",y3.endscreen="endscreen.js",y3.heartbeat="heartbeat.js",y3.inline_preview="inline_preview.js",y3.kids="kids.js",y3.remote="remote.js",y3.miniplayer="miniplayer.js",y3.music="music.js",y3.offline="offline.js",y3.captions="captions.js",y3.unplugged="unplugged.js",y3.ux="ux.js",y3.webgl="webgl.js",y3.ypc="ypc.js",y3.ypc_clickwrap="ypc_clickwrap.js",y3.yto="yto.js",
y3);g.v(WP,g.bf);WP.prototype.preventDefault=function(){g.bf.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
WP.prototype.stopPropagation=function(){g.bf.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.v(g.XP,YK);g.k=g.XP.prototype;g.k.rs=function(){return!0};
g.k.isView=function(){return!1};
g.k.oL=function(){return!1};
g.k.Ef=function(){return this.j};
g.k.Vf=function(){return this.j.src};
g.k.fC=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.WE=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.Vs=function(){return this.j.loop};
g.k.setLoop=function(a){this.j.loop=a};
g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.k.Co=function(){return this.j.paused};
g.k.Tg=function(){return this.j.seeking};
g.k.kh=function(){return this.j.ended};
g.k.lD=function(){return this.j.muted};
g.k.qx=function(a){bF();this.j.muted=a};
g.k.Ws=function(){return this.j.played||cF([],[])};
g.k.jh=function(){try{var a=this.j.buffered}catch(b){}return a||cF([],[])};
g.k.Kz=function(){return this.j.seekable||cF([],[])};
g.k.cC=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.j.currentTime};
g.k.eC=function(a){this.j.currentTime=a};
g.k.getDuration=function(){return this.j.duration};
g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.k.pause=function(){this.j.pause()};
g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.qj=function(){return this.j.readyState};
g.k.mD=function(){return this.j.networkState};
g.k.cf=function(){return this.j.error?this.j.error.code:null};
g.k.rf=function(){return this.j.error?this.j.error.message:""};
g.k.dC=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.Rg=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Lr=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():aF()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Hq=function(){var a=this.j;return new g.Eg(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Tl(this.j)};
g.k.setSize=function(a){g.Sl(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){bF();this.j.volume=a};
g.k.hI=function(a){this.I[a]||(this.j.addEventListener(a,this.listener),this.I[a]=this.listener)};
g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.k.Ly=aa(25);g.k.nB=aa(27);g.k.oB=aa(29);g.k.Qv=aa(31);g.k.lz=function(){return Hz(this.j)};
g.k.Vp=function(a){g.po(this.j,a)};
g.k.getStyle=function(a){return g.Kl(this.j,a)};
g.k.tJ=function(){return g.hh(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.ra=function(){for(var a=g.t(Object.keys(this.I)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.I[b]);YK.prototype.ra.call(this)};g.v(ZP,g.Mz);g.k=ZP.prototype;g.k.L_=function(a){a=Jx(a);if(!Fg(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;YP(this,b,!0)}};
g.k.M_=function(){this.I&&YP(this,8,!0);YP(this,2,!1)};
g.k.jE=function(a){var b=Jx(a);Fg(b,this.C)||(this.C=b,(a=g.Gx(a))&&this.vC(a)&&(YP(this,4,!0),this.j.zc(this.B),this.B=this.j.S(this.target,"mouseover",this.XJ),this.J=this.j.S(this.target,"mouseout",this.XJ)))};
g.k.XJ=function(a){a=Ix(a);a&&this.vC(a)||(this.C=new g.Eg(NaN,NaN),KJa(this))};
g.k.p_=function(){YP(this,1,!0)};
g.k.mZ=function(a){a=g.Gx(a);a instanceof Element&&!(0<a.tabIndex)||YP(this,1,!0)};
g.k.zR=function(){this.I=!0;this.j.zc(this.D);this.D=this.j.S(document,"mouseup",this.N_)};
g.k.N_=function(){this.I=!1;YP(this,8,!1);this.j.zc(this.D);this.D=this.j.S(this.target,"mousedown",this.zR)};
g.k.fU=function(a){if(a=(a=a.changedTouches)&&a[0])this.Aa=a.identifier,this.j.zc(this.T),this.T=this.j.S(this.target,"touchend",this.y4,void 0,!0),YP(this,1024,!0)};
g.k.y4=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Aa){var d=c;break}}d&&(this.j.zc(this.T),this.T=this.j.S(this.target,"touchstart",this.fU,void 0,!0),YP(this,1024,!1))};
g.k.Wn=function(){YP(this,2,!0)};
g.k.resize=function(){g.ZE&&KJa(this)};
g.k.toString=function(){return g.Mz.prototype.toString.call(this)};g.v(g.aQ,g.V);
g.aQ.prototype.La=function(){var a=this.api.getVideoData(),b=this.api.V(),c,d=!(null==(c=g.sO(this.api))||!c.Ej());g.to(this.element,"ytp-shorts-mode",d);d&&b.N("embeds_enable_shorts_branded_ui")?c=[{F:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},W:[{F:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",fill:"#f00",
"fill-rule":"evenodd"}},{F:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:a.D&&(a.ib||b.pfpChazalUi)?c=b.pfpChazalUi?[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{F:"path",K:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",
K:"ytp-dni-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.I?(g.to(this.element,"ytp-touch-device",b.isMobile),c=[b.I?
{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{F:"path",K:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{F:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",K:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{F:"path",K:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{F:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",c);a.D&&(a.ib||b.pfpChazalUi)&&(a=a.ib?a.ib:"#1f1f1f",this.Da("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.aQ.prototype.show=function(){g.V.prototype.show.call(this);this.api.V().N("embeds_web_enable_large_play_button_ve_logging")&&this.api.Va(this.element,!0)};
g.aQ.prototype.j=function(){this.api.YD();this.api.playVideo();this.api.getRootNode().focus()};
g.aQ.prototype.u=function(a){g.Kx(a)};g.v(g.bQ,g.V);g.k=g.bQ.prototype;g.k.show=function(){var a=this;this.sb||(this.B.S(this.api,"videodatachange",function(){g.io(a.j)}),this.B.S(this.api,"videoplayerreset",function(){g.io(a.j)}));
g.V.prototype.show.call(this)};
g.k.hide=function(){this.B&&g.Lz(this.B);g.V.prototype.hide.call(this)};
g.k.Bb=function(){g.io(this.j)};
g.k.onStateChange=function(a){var b=this.api.V();b.N("disable_new_pause_state3")&&nH(b)&&(a=a.state.isCued()&&!a.rr.isCued()||g.SO(this.api)&&g.U(a.state,2),g.Il(this.element,"transition-delay",a?"2s":""));g.io(this.j)};
g.k.h3=function(){g.io(this.j)};
g.k.NW=function(){this.u.stop();this.hide();g.io(this.j)};
g.k.La=function(){var a=this.api.Db();if(3===this.api.getPresentingPlayerType()&&(a.Rc()||g.iL(a)))var b=!0;else(b=this.api.vb().Ie.get("ypc"))&&b.BE?b=!0:(b=this.api.V(),b=g.U(a,2)&&g.PO(this.api)&&b.Sf?!0:!1);b?(b=!0,this.C.hide()):this.api.N("web_player_show_frame_zero_when_cued")&&LJa(this)?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().N("disable_new_pause_state3"),b=!(!g.U(a,2)||g.PO(this.api)||b&&this.api.sz())||g.U(a,1024)?!0:!1));
b?(this.u.show(),a=this.api.getVideoData(),this.P4(this.api.getPlaylist(),a)):(this.u.hide(),g.U(a,1)||this.u.stop())};
g.k.P4=function(){var a=g.ya.apply(0,arguments),b=this.api.V(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.N("web_player_show_frame_zero_when_cued")&&d&&LJa(this))var e="https://web.archive.org/web/20221116135136/https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.t(a),b=a.next();!b.done;b=a.next())if(b=b.value,!(!b||b instanceof g.GI&&!b.videoId)){e=this.api.fb().getPlayerSize();d=g.oH();c=e.width*d;d*=e.height;if(1280<c||720<d)if(e=b.Hf("maxresdefault.jpg"))break;if(640<c||480<d)if(e=b.Hf("maxresdefault.jpg"))break;if(320<
c||180<d)if(e=b.Hf("sddefault.jpg")||b.Hf("hqdefault.jpg")||b.Hf("mqdefault.jpg"))break;if(e=b.Hf("default.jpg"))break}this.D.style.backgroundImage=e?"url("+e+")":""};g.v(g.hQ,g.V);g.hQ.prototype.resize=function(){};
g.hQ.prototype.u=function(a){var b=this;QJa(this);var c=a.jI,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.I?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Wd(kQ(this,"TOO_MANY_REQUESTS_WITH_LINK",d.vn(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.I?this.Wd(g.iQ(a.errorMessage)):this.Wd(kQ(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20221116135136/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20221116135136/https://support.google.com/youtube/?p=player_error1",a&&(c=
g.ti(c,{hl:a})),this.Wd(kQ(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.pc&&!d.u&&PJa(this,function(e){if(g.cQ(e,b.api,!nH(b.api.V()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Qa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var OJa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.v(lQ,g.WE);lQ.prototype.Nh=function(){UJa(this)};
lQ.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.isValid()){var c=this.G.V(),d=[],e="";if(!c.Z){var f=SJa(this);c.N("enable_web_media_session_metadata_fix")&&g.ZG(c)&&f?(d=TJa(f.thumbnailDetails),f.album&&(e=g.jB(f.album))):d=[{src:b.Hf("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}UJa(this);RJa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.SO(this.G)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()});
mQ(this,"nexttrack",b);mQ(this,"previoustrack",c)}};
lQ.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.t(this.j),b=a.next();!b.done;b=a.next())mQ(this,b.value,null);g.WE.prototype.ra.call(this)};g.v(nQ,g.V);g.k=nQ.prototype;g.k.onClick=function(a){g.cQ(a,this.G,!0);this.G.tb(this.element)};
g.k.onVideoDataChange=function(a,b){WJa(this,b);this.Id&&XJa(this,this.Id)};
g.k.Vc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&WJa(this,b);this.j&&XJa(this,a.state);this.Id=a.state};
g.k.Kc=function(){this.C.show();this.G.ma("paidcontentoverlayvisibilitychange",!0);this.G.Va(this.element,!0)};
g.k.wb=function(){this.C.hide();this.G.ma("paidcontentoverlayvisibilitychange",!1);this.G.Va(this.element,!1)};g.v(oQ,g.V);oQ.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
oQ.prototype.onStateChange=function(a){this.Oc(a.state)};
oQ.prototype.Oc=function(a){if(g.U(a,128))var b=!1;else{var c;b=(null==(c=this.api.Lc())?0:c.Uq)?!1:g.U(a,16)||g.U(a,1)?!0:!1}b?this.j.start():this.hide()};
oQ.prototype.u=function(){this.message.style.display="block"};g.v(pQ,g.XO);pQ.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(YJa(this),this.Kc()):(this.j&&this.tb(),this.wb()))};
pQ.prototype.Nh=function(a){this.api.isMutedByMutedAutoplay()&&g.xK(a,2)&&this.wb()};
pQ.prototype.onClick=function(){this.api.unMute();this.tb()};
pQ.prototype.tb=function(){this.clicked||(this.clicked=!0,this.api.tb(this.element))};g.v(g.rQ,g.WE);g.k=g.rQ.prototype;g.k.init=function(){var a=this.api,b=a.Db();this.ED=a.getPlayerSize();this.Zb(b);this.Xn();this.Bb();this.api.ma("basechromeinitialized",this)};
g.k.onVideoDataChange=function(a,b){var c=this.gA!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.ED=a.getPlayerSize());c&&(this.gA=b.videoId,c=this.Ee,c.ya=b&&0<b.Tf.length?5E3:3E3,YP(c,512,!0),this.Xn())};
g.k.F1=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.Kr=function(){var a=this.api.Li()&&this.api.Um();return this.FC||a||this.fJ};
g.k.Zj=function(){var a=!this.Kr();g.to(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.vC=function(a){try{if(!g.hh(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!jh(a);)a=a===this.api.getRootNode()?null:g.gh(a);return!!a};
g.k.Vl=function(a){var b=this.api.getRootNode();g.to(b,"ytp-autohide",a);g.to(b,"ytp-autohide-active",!0);this.TO.start(a?250:100);a&&(this.sF=!1,g.ro(b,"ytp-touch-mode"));this.RH=!a;this.api.cB(!a)};
g.k.eK=function(){var a=this.api.getRootNode();g.to(a,"ytp-autohide-active",!1)};
g.k.l2=function(){this.lM=!0};
g.k.j2=function(a){if(this.api.V().N("player_doubletap_to_seek")||this.api.V().J)this.lM=!1,this.mM&&this.zc(this.mM),0===this.rA&&sQ(this,a)?(this.CD(),this.KC.start(),this.mM=this.S(this.api.fb(),"touchmove",this.l2,void 0,!0)):this.KC.stop();aKa(this)&&sQ(this,a)&&!this.api.V().J&&qQ(this);var b=this.uM.oi();if(MG&&bKa(this,a))b&&g.Kx(a);else if(this.sF=!0,g.po(this.api.getRootNode(),"ytp-touch-mode"),this.Ee.Wn(),this.api.V().N("player_doubletap_to_seek")&&(b=this.api.Db(),!(!this.api.Sg()||g.U(b,
2)&&g.PO(this.api)||g.U(b,64)))){b=Date.now()-this.fR;this.rA+=1;if(350>=b){this.ez=!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.rA-1);0<d&&d<b?(this.XA(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.XA(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Kx(a)}this.fR=Date.now();this.iT.start()}};
g.k.e2=function(a){if(!bKa(this,a)){if(!aKa(this)&&sQ(this,a)&&!this.KC.isActive()){if(g.sH(this.api.V())&&this.api.Db().isCued()){var b=void 0===b?{}:b;IB();BB();HB();rB(!1);b.cttAuthInfo&&(sB().cttAuthInfo=b.cttAuthInfo);tu("TIMING_AFT_KEYS",[]);b.a6a?KB({loadType:"hot"}):KB({loadType:"warm"});tu("TIMING_ACTION","");delete g.uu("TIMING_INFO",{}).yt_lt;JB("_start",b.startTime,void 0);b=["pbs","pbu"];AB("").info.actionType="watch";b&&tu("TIMING_AFT_KEYS",b);tu("TIMING_ACTION","watch");if(g.wu("web_csi_via_jspb")){b=
g.uu("TIMING_INFO",{});var c=new Rt;b=g.t(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":var f=new St;g.F(f,1,d);g.F(f,2,String(e));Tt(c,f);break;case "GetGuide_rid":f=new St;g.F(f,1,d);g.F(f,2,String(e));Tt(c,f);break;case "GetHome_rid":f=new St;g.F(f,1,d);g.F(f,2,String(e));Tt(c,f);break;case "GetPlayer_rid":f=new St;g.F(f,1,d);g.F(f,2,String(e));Tt(c,f);break;case "GetSearch_rid":f=new St;g.F(f,1,d);
g.F(f,2,String(e));Tt(c,f);break;case "GetSettings_rid":f=new St;g.F(f,1,d);g.F(f,2,String(e));Tt(c,f);break;case "GetTrending_rid":f=new St;g.F(f,1,d);g.F(f,2,String(e));Tt(c,f);break;case "GetWatchNext_rid":f=new St;g.F(f,1,d);g.F(f,2,String(e));Tt(c,f);break;case "yt_red":g.F(c,14,!!e);break;case "yt_ad":g.F(c,9,!!e)}}XB(c);c=new Rt;c=g.F(c,25,!0);c=g.F(c,1,T[CB(g.uu("TIMING_ACTION"))]);(b=g.uu("PREVIOUS_ACTION"))&&g.F(c,13,T[CB(b)]);(b=g.uu("CLIENT_PROTOCOL"))&&g.F(c,33,b);(b=g.uu("CLIENT_TRANSPORT"))&&
g.F(c,34,b);(b=g.kA())&&"UNDEFINED_CSN"!==b&&g.F(c,4,b);b=$B();1!==b&&-1!==b||g.F(c,6,!0);b=tB();if("cold"===b.yt_lt&&(g.F(c,3,"cold"),Dua(b),b=Fua(),0<b.length))for(b=g.t(b),d=b.next();!d.done;d=b.next())d=d.value,e=new Qt,g.F(e,1,d),Qd(c,83,Qt,e);XB(c)}else{b=g.uu("TIMING_INFO",{});for(c in b)b.hasOwnProperty(c)&&g.MB(c,b[c]);c={isNavigation:!0,actionType:CB(g.uu("TIMING_ACTION"))};if(b=g.uu("PREVIOUS_ACTION"))c.previousAction=CB(b);if(b=g.uu("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.uu("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.kA())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=$B();if(1===b||-1===b)c.isVisible=!0;if("cold"===tB().yt_lt&&(c.loadType="cold",Dua(tB()),b=Fua(),0<b.length))for(c.resourceInfo=[],b=g.t(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});KB(c)}c=tB();b=xB();if(!(g.wu("skip_setting_info_in_csi_data_object")&&"cold"!==uB().loadType||"cold"!==c.yt_lt&&"cold"!==b.loadType)){d=vB();e=wB();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)if(!(h in e))if("number"===
typeof d[h])JB(h,nB(h));else if(g.wu("log_repeated_ytcsi_ticks")){f=g.t(d[h]);for(var l=f.next();!l.done;l=f.next())JB(h.slice(1),l.value)}h={};d=!1;e=g.t(Object.keys(c));for(f=e.next();!f.done;f=e.next())f=f.value,(f=yua(f,c[f]))&&!qua(xB(),f)&&(GA(b,f),GA(h,f),d=!0);d&&KB(h)}rB(!0);h=g.uu("TIMING_ACTION");g.Ga("ytglobal.timingready_")&&h&&YB("_start")&&kua()&&pua()}qQ(this);g.Kx(a)}this.ez&&(this.ez=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.gw("embedsRequestStorageAccessResult",{resolved:!0});kAa(!0);Dz();window.location.reload()},function(){g.gw("embedsRequestStorageAccessResult",{resolved:!1});
a.Cx()})};
g.k.CD=function(){};
g.k.ou=function(){};
g.k.XA=function(){};
g.k.kL=function(){};
g.k.Cx=function(){var a=this.api.Db();g.U(a,2)&&g.PO(this.api)||(g.jL(a)?this.api.pauseVideo():(this.api.YD(),this.api.playVideo(),this.Go&&document.activeElement===this.Go.C.element&&this.api.getRootNode().focus()))};
g.k.f2=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!$Ja(this,Hx(a)))if(a=this.api.V(),this.api.V().N("player_doubletap_to_seek")&&this.ez)this.ez=!1;else if(a.kb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Sz(d)})}catch(d){this.Sz(d)}};
g.k.Sz=function(a){String(a).includes("fullscreen error")?g.aA(a):g.$z(a)};
g.k.g2=function(a){cKa(this,.3,a.scale);g.Kx(a)};
g.k.h2=function(a){cKa(this,.1,a.scale)};
g.k.Bb=function(){var a=this.api.fb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Ee.resize();g.to(b,"ytp-fullscreen",this.api.isFullscreen());g.to(b,"ytp-large-width-mode",c);g.to(b,"ytp-small-mode",this.Cg());g.to(b,"ytp-tiny-mode",this.PD());g.to(b,"ytp-big-mode",this.If());this.Gf&&this.Gf.resize(a)};
g.k.Nh=function(a){this.Zb(a.state);this.Xn()};
g.k.eB=aa(32);g.k.FI=function(){var a=!!this.gA&&!this.api.tf()&&!this.PK,b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(c2a&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=QP(this.api.vb());return a&&b.PL()}return a&&(c.ek||this.api.isFullscreen()||c.Mb)};
g.k.Xn=function(){var a=this.FI();this.Gn!==a&&(this.Gn=a,g.to(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Zb=function(a){var b=a.isCued()||this.api.zn()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.oM&&this.zc(this.oM),this.oM=this.S(this.api.fb(),"touchstart",this.j2,void 0,b));var c=a.Rc()&&!g.U(a,32)||this.api.aA();YP(this.Ee,128,!c);c=3===this.api.getPresentingPlayerType();YP(this.Ee,256,c);c=this.api.getRootNode();if(g.U(a,2))var d=[t3.ENDED];else d=[],g.U(a,8)?d.push(t3.PLAYING):g.U(a,4)&&d.push(t3.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(t3.BUFFERING),g.U(a,32)&&
d.push(t3.SEEKING),g.U(a,64)&&d.push(t3.UNSTARTED);g.pc(this.eH,d)||(g.so(c,this.eH),this.eH=d,g.qo(c,d));d=this.api.V();var e=g.U(a,2);a:{var f=this.api.V();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.U(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:L1a(QP(this.api.vb())))||g.QG(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.to(c,"ytp-hide-controls",!f);g.to(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.fJ);g.U(a,128)&&!g.QG(d)?(this.Gf||
(this.Gf=new g.hQ(this.api),g.L(this,this.Gf),g.VO(this.api,this.Gf.element,4)),this.Gf.u(a.getData()),this.Gf.show()):this.Gf&&(this.Gf.dispose(),this.Gf=null)};
g.k.zk=function(){return this.api.Li()&&this.api.Um()?(this.api.setCardsVisible(!1,!1),!0):this.api.tf()?(g.QO(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.fJ=a;this.Zj()};
g.k.If=function(){return!1};
g.k.Cg=function(){return!this.If()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.PD=function(){return this.Cg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Ej=function(){var a=this.api.V();if(!g.QG(a)||!a.N("embeds_enable_allow_watch_again_endscreen_for_eligible_shorts")||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.ea||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.ED;var b;return!(null==(b=this.api.getVideoData())||!b.isShortsEligible)&&a.width<=a.height};
g.k.Dk=function(){return this.sF};
g.k.Jl=function(){return null};
g.k.fD=function(){return null};
g.k.Jz=function(){return null};
g.k.zj=function(){var a=this.api.fb().getPlayerSize();return new g.Fl(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.St=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.fb().cB(a)};
g.k.Wn=function(){};g.v(tQ,g.Mz);g.k=tQ.prototype;g.k.nw=function(){return 1E3*this.api.getDuration(this.qm,!1)};
g.k.stop=function(){this.j&&this.Zc.zc(this.j)};
g.k.jc=function(){var a=this.api.getProgressState(this.qm);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.qm,!1)};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.Vc=function(a){g.xK(a,2)&&this.ma("g")};g.v(uQ,g.V);uQ.prototype.onClick=function(){this.G.Qa("BACK_CLICKED")};g.v(g.vQ,g.V);g.vQ.prototype.show=function(){g.V.prototype.show.call(this);g.io(this.j)};
g.vQ.prototype.hide=function(){this.u.stop();g.V.prototype.hide.call(this)};
g.vQ.prototype.ou=function(a){a?g.U(this.G.Db(),64)||wQ(this,xM(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?wQ(this,cHa(),"Stop live playback"):wQ(this,ZGa(),"Pause"))};g.v(zQ,g.V);g.k=zQ.prototype;g.k.Kc=function(){this.G.V().N("player_new_info_card_format")&&g.oo(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.QG(this.G.V())||(this.u.show(),g.ky("iv-button-shown"))};
g.k.wb=function(){g.ky("iv-button-hidden");this.u.hide()};
g.k.oi=function(){return this.sb&&4!==this.u.state};
g.k.ra=function(){this.j&&this.j();g.V.prototype.ra.call(this)};
g.k.W0=function(){g.ky("iv-button-mouseover")};
g.k.onClicked=function(a){this.G.Li();var b=g.oo(this.G.getRootNode(),"ytp-cards-teaser-shown");g.ky("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.G.setCardsVisible(!this.G.Um(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(BQ,g.V);g.k=BQ.prototype;g.k.tU=function(){this.G.Li()&&this.G.Um()&&this.oi()&&this.wb()};
g.k.cM=function(){this.wb();!this.G.Li()&&this.G.V().N("enable_error_corrections_infocards_icon_web")&&this.Yh.wb();g.ky("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.G.Qa("innertubeCommand",this.onClickCommand):this.G.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.OW=function(){g.ky("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.K2=function(a){this.G.V().N("player_new_info_card_format")&&!g.QG(this.G.V())?this.Yh.wb():this.G.V().N("enable_error_corrections_infocards_icon_web")&&this.Yh.Kc();this.j||!a||this.G.Um()||this.u&&this.u.isActive()||(this.Kc(a),g.ky("iv-teaser-shown"))};
g.k.Kc=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Ho(a.teaserText));this.C.show();this.u=new g.ho(function(){g.po(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.N("player_new_info_card_format")&&!g.QG(this.G.V())&&this.Yh.wb();this.AM()},0,this);
this.u.start();yQ(this.Yh,!1);this.j=new g.ho(this.wb,580+a.durationMs,this);this.j.start();this.D.push(this.Pa("mouseover",this.aO,this));this.D.push(this.Pa("mouseout",this.ZN,this))};
g.k.AM=function(){if(!this.G.V().N("player_new_info_card_format")&&g.QG(this.G.V())&&this.sb){var a=this.Yh.element.offsetLeft,b=g.Wg("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Yh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.FY=function(){g.QG(this.G.V())&&this.Z.Cg()&&this.sb&&this.T.start()};
g.k.aO=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()};
g.k.ZN=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()};
g.k.n1=function(){this.j&&this.j.stop()};
g.k.m1=function(){this.wb()};
g.k.Ln=function(){this.wb()};
g.k.wb=function(){!this.j||this.B&&this.B.isActive()||(g.ky("iv-teaser-hidden"),this.C.hide(),g.ro(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.ho(function(){for(var a=g.t(this.D),b=a.next();!b.done;b=a.next())this.zc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);yQ(this.Yh,!0);!this.G.Li()&&this.G.V().N("enable_error_corrections_infocards_icon_web")&&this.Yh.wb()},330,this),this.B.start())};
g.k.oi=function(){return this.sb&&4!==this.C.state};
g.k.ra=function(){var a=this.G.getRootNode();a&&g.ro(a,"ytp-cards-teaser-shown");g.$e(this.u,this.B,this.j);g.V.prototype.ra.call(this)};var z3={},CQ=(z3.BUTTON="ytp-button",z3.TITLE_NOTIFICATIONS="ytp-title-notifications",z3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",z3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",z3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",z3);g.v(DQ,g.V);DQ.prototype.onClick=function(){this.api.tb(this.element);var a=!this.j;this.updateValue("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",a);fKa(this,a)};g.v(g.FQ,g.V);g.FQ.prototype.C=function(){window.location.reload()};
g.FQ.prototype.j=function(){g.po(this.element,"ytp-sb-subscribed")};
g.FQ.prototype.u=function(){g.ro(this.element,"ytp-sb-subscribed")};g.v(HQ,g.V);g.k=HQ.prototype;g.k.pL=function(){lKa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.mI=function(){GQ(this);if(jKa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Va(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.jl&&a.subscribed&&(this.u.show(),this.api.Va(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");
this.channel.classList.add("ytp-title-show-expanded")}};
g.k.MH=function(){GQ(this);this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.B&&this.B.start()};
g.k.La=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.ke&&!!a.profilePicture:g.QG(b)&&(c=!!a.videoId&&!!a.ke&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.j&&!(b.J&&200>this.api.getPlayerSize().width));var d=g.xH(this.api.V())+a.ke;g.QG(b)&&(d=mKa(this,d));var e=a.ke,f=a.profilePicture;b=g.QG(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var h=this.api.V();e=
g.xH(h)+e;g.QG(h)&&(e=mKa(this,e));this.I!==f&&(this.j.style.backgroundImage="url("+f+")",this.I=f);this.updateValue("channelLink",e);this.updateValue("channelLogoLabel",g.LK("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.po(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.ro(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Va(this.j,c&&this.ya);this.subscribeButton&&(this.subscribeButton.channelId=a.Zk);this.updateValue("expandedTitle",a.expandedTitle);this.updateValue("channelTitleLink",
d);this.updateValue("expandedSubtitle",a.expandedSubtitle)};g.v(IQ,g.lM);IQ.prototype.WR=function(){this.ma("size-change")};
IQ.prototype.focus=function(){this.content.focus()};
IQ.prototype.QR=function(){this.ma("back")};g.v(g.JQ,IQ);g.k=g.JQ.prototype;g.k.Ec=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.mc(this.items,a,oKa);if(0<=b)return;b=~b;g.ic(this.items,b,0,a);g.eh(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.zK,this);this.menuItems.ma("size-change")};
g.k.Nf=function(a){a.unsubscribe("size-change",this.zK,this);this.isDisposed()||(g.Wb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ma("size-change"))};
g.k.zK=function(){this.menuItems.ma("size-change")};
g.k.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.k.Ti=function(){return this.items.length};g.v(LQ,g.$O);LQ.prototype.j=function(a){g.Wx(a)||39!==g.Xx(a)||(this.element.click(),g.Kx(a))};g.v(NQ,g.V);g.k=NQ.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.V.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.PW=function(a){var b=Hx(a),c=g.hh(this.closeButton.element,b),d=g.hh(this.element,b);a=this.j&&g.hh(this.j,b)&&g.nN(a);b&&(d||a)&&!c||this.hide()};
g.k.QW=function(){g.AN(function(){window.location.reload()},"user_info_panel",g.kH(this.Ua.V()))};
g.k.La=function(){var a=this.Ua.V();a={USER_NAME:a.userDisplayName,USER_EMAIL:a.Pj};this.updateValue("icon",$Ga());this.updateValue("watchingAsUsername",g.LK("Watching as $USER_NAME",a));this.updateValue("watchingAsEmail",g.LK("($USER_EMAIL)",a))};g.v(OQ,g.JQ);g.k=OQ.prototype;g.k.JY=function(){this.ob.wb()};
g.k.I0=function(){fQ(this.Xv.element)};
g.k.S0=function(){QQ(this,this.G.getDebugText(!0))&&wQ(this.Ic,oM())};
g.k.T0=function(){QQ(this,this.G.getVideoEmbedCode())&&wQ(this.Ic,UGa());this.G.tb(this.Fl.element);wN("EMBED",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.U0=function(){QQ(this,this.G.getVideoUrl(!0,!0))&&wQ(this.Ic,tM());this.G.tb(this.getVideoUrl.element);wN("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.V0=function(){QQ(this,this.G.getVideoUrl(!1,!0))&&wQ(this.Ic,tM());this.G.tb(this.Kl.element);wN("COPY_PASTE",this.G.getVideoData().videoId,this.G.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Fk)||b.setValue(a)};
g.k.e1=function(){this.G.setLoopVideo(this.Fk.getValue());this.ob.wb();this.G.tb(this.Fk.element)};
g.k.Y1=function(a){this.G.reportPlaybackIssue();if(g.cQ(a,this.G,!nH(this.G.V()))){a=this.G;var b=a.app.getFeedbackProductData();a.Qa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.ob.wb()};
g.k.w2=function(){this.G.isVideoInfoVisible()?this.G.hideVideoInfo():this.G.showVideoInfo();this.ob.wb()};
g.k.v2=function(){this.Uk&&(this.wB||(this.wB=new NQ(this.G,this.Uk.element),g.L(this,this.wB),g.VO(this.G,this.wB.element,4)),this.wB.show(),this.ob.wb(),this.G.tb(this.Uk.element))};
g.k.onVideoDataChange=function(a,b){this.AT(b)};
g.k.AT=function(a){var b=this.G.V(),c=2===this.G.getPresentingPlayerType(),d=!c||a.isListed;d=!b.Z&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://web.archive.org/web/20221116135136/https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Aa&&(b.partnerid=a.Aa),b=g.ti("//web.archive.org/web/20221116135136/https://support.google.com/googleplay/",b));g.kM(this.Fl,d&&a.allowEmbed);g.kM(this.getVideoUrl,d);g.kM(this.Kl,d&&!a.isLivePlayback);
this.YA.Wd(b,"href");var e;null==(e=this.Fk)||g.kM(e,!a.isLivePlayback&&!c);var f;null==(f=this.Uk)||g.kM(f,!c)};
g.k.Wb=function(a){g.JQ.prototype.Wb.call(this,a);this.G.Va(this.Fl.element,a);this.G.Va(this.getVideoUrl.element,a);this.G.Va(this.Kl.element,a);this.Fk&&this.G.Va(this.Fk.element,a);this.Uk&&this.G.Va(this.Uk.element,a)};g.v(g.RQ,g.XO);g.k=g.RQ.prototype;g.k.show=function(){g.XO.prototype.show.call(this);this.Jx()};
g.k.hide=function(){g.XO.prototype.hide.call(this);1<this.j.length&&g.TQ(this)};
g.k.Jx=function(){rKa(this);this.sb&&(qKa(this),g.Sl(this.element,this.size))};
g.k.ej=function(){var a=this.j.pop();SQ(this,a,this.j[this.j.length-1],!0)};
g.k.RW=function(a){if(!g.Wx(a))switch(g.Xx(a)){case 27:this.wb();g.Kx(a);break;case 37:1<this.j.length&&this.ej();g.Kx(a);break;case 39:g.Kx(a)}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.ra=function(){g.XO.prototype.ra.call(this);this.C&&this.C.dispose();this.I&&this.I.dispose()};g.v(g.UQ,g.RQ);g.k=g.UQ.prototype;g.k.TW=function(a){var b=Hx(a);if(!(b&&(mh(b,"a")||mh(b,null,"ytp-no-contextmenu"))||this.sb)){var c;this.oa=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Eg(a.clientX,a.clientY):new g.Eg(0,0);this.ea.start()}};
g.k.zS=function(){this.ea.stop()};
g.k.P2=function(){this.open(this.oa)};
g.k.PP=function(){this.element.tabIndex=-1;this.element.focus()};
g.k.show=function(){this.D||(this.D=new OQ(this.G,this.Aa,this,this.Ic),g.L(this,this.D),g.PQ(this,this.D));this.D.onLoopChange(this.G.getLoopVideo());g.RQ.prototype.show.call(this);this.G.Va(this.element,!0);this.D.Wb(!0)};
g.k.hide=function(){tKa(this);g.RQ.prototype.hide.call(this);this.G.Va(this.element,!1);this.D&&this.D.Wb(!1)};
g.k.G0=function(a){var b=Hx(a);this.sb||b&&(mh(b,"a")||mh(b,null,"ytp-no-contextmenu"))||(g.Kx(a),this.open(Jx(a)))};
g.k.Kc=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Eg(b.x,b.y))}g.RQ.prototype.Kc.call(this,a)};
g.k.open=function(a){uKa(this);var b=this.G.getVideoData();g.to(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.RQ.prototype.Kc.call(this);var c=document.body;b=new yl(0,Infinity,Infinity,0);var d=Sg(c);for(var e=d.j.body,f=d.j.documentElement,h=Lda(d.j);c=Uha(c);)if(!(g.Yg&&0==c.clientWidth||g.df&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Ml(c,"overflow")){var l=g.Ql(c),m=new g.Eg(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,
l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=Kda(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<
d.top||a.y>=d.bottom)&&(e&=-5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));
d=new g.Fl(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Ol(this.element,new g.Eg(d.left,d.top));g.Lz(this.B);this.B.S(document,"contextmenu",this.O0);this.B.S(this.G,"fullscreentoggled",this.onFullscreenToggled);this.B.S(this.G,"pageTransition",this.SW)};
g.k.O0=function(a){if(!g.Wx(a)){var b=Hx(a);g.hh(this.element,b)||this.wb();this.G.V().disableNativeContextMenu&&g.Kx(a)}};
g.k.onFullscreenToggled=function(){this.wb();uKa(this)};
g.k.SW=function(){this.wb()};g.v(g.VQ,g.V);g.VQ.prototype.onClick=function(){var a=this,b,c,d,e;return g.A(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.x(f,wKa(a,e),2);f.u&&vKa(a);a.api.tb(a.element);g.pa(f)})};
g.VQ.prototype.La=function(){var a=this.api.V(),b=this.api.getVideoData();this.updateValue("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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.updateValue("title-attr","Copy link");var c=this.api.fb().getPlayerSize().width;
this.visible=!!b.videoId&&c>=this.u&&b.Rm&&!(b.D&&a.pfpChazalUi);g.to(this.element,"ytp-copylink-button-visible",this.visible);g.kM(this,this.visible);XQ(this.tooltip);this.api.Va(this.element,this.visible&&this.ya)};
g.VQ.prototype.Wb=function(a){g.V.prototype.Wb.call(this,a);this.api.Va(this.element,this.visible&&a)};
g.VQ.prototype.ra=function(){g.V.prototype.ra.call(this);g.ro(this.element,"ytp-copylink-button-visible")};g.v(YQ,g.V);YQ.prototype.show=function(){g.V.prototype.show.call(this);g.io(this.u)};
YQ.prototype.hide=function(){this.B.stop();g.ro(this.element,"ytp-chapter-seek");g.ro(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)};
YQ.prototype.XA=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.G.tb(e);g.ko(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.fb().getPlayerSize().height;e=this.G.fb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.Da("ytp-doubletap-ripple");l.style.width=h+
"px";l.style.height=h+"px";1===a?(a=this.G.fb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Da("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");xKa(this,d)};g.v(aR,g.V);aR.prototype.onClick=function(){this.G.tb(this.element,this.u)};g.v(bR,g.XO);g.k=bR.prototype;g.k.show=function(){g.XO.prototype.show.call(this);this.G.ma("infopaneldetailvisibilitychange",!0);this.G.Va(this.element,!0);AKa(this,!0)};
g.k.hide=function(){g.XO.prototype.hide.call(this);this.G.ma("infopaneldetailvisibilitychange",!1);this.G.Va(this.element,!1);AKa(this,!1)};
g.k.getId=function(){return this.C};
g.k.Ti=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Gm)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Gm)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Gm)?void 0:h.trackingParams)||null;this.G.Ah(this.element,a);h=g.t(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.Gm)?0:l.ctaButtons)for(b=g.t(b.Gm.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.N(l.value,B3a))l=new aR(this.G,
l,this.j),l.isValid&&(this.itemData.push(l),l.Ca(this.items))}};
g.k.ra=function(){this.hide();g.XO.prototype.ra.call(this)};g.v(dR,g.V);g.k=dR.prototype;g.k.onVideoDataChange=function(a,b){cR(this,b);this.Id&&DKa(this,this.Id)};
g.k.Vc=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&cR(this,b);DKa(this,a.state);this.Id=a.state};
g.k.XR=function(a){(this.C=a)?this.hide():this.j&&this.show()};
g.k.VW=function(){this.u||this.Kc();this.showControls=!0};
g.k.UW=function(){this.u||this.wb();this.showControls=!1};
g.k.Kc=function(){this.j&&!this.C&&(this.B.show(),this.G.ma("infopanelpreviewvisibilitychange",!0),this.G.Va(this.element,!0))};
g.k.wb=function(){this.j&&!this.C&&(this.B.hide(),this.G.ma("infopanelpreviewvisibilitychange",!1),this.G.Va(this.element,!1))};
g.k.X3=function(){this.u=!1;this.showControls||this.wb()};var y6a={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(y6a).reduce(function(a,b){a[y6a[b]]=b;return a},{});
var z6a={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(z6a).reduce(function(a,b){a[z6a[b]]=b;return a},{});
var A6a={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(A6a).reduce(function(a,b){a[A6a[b]]=b;return a},{});var B6a,C6a;B6a=[{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"}];C6a=[{option:0,text:eR(0)},{option:.25,text:eR(.25)},{option:.5,text:eR(.5)},{option:.75,text:eR(.75)},{option:1,text:eR(1)}];
g.iR=[{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:B6a},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:eR(.5)},{option:-1,text:eR(.75)},{option:0,text:eR(1)},{option:1,text:eR(1.5)},{option:2,
text:eR(2)},{option:3,text:eR(3)},{option:4,text:eR(4)}]},{option:"background",text:"Background color",options:B6a},{option:"backgroundOpacity",text:"Background opacity",options:C6a},{option:"windowColor",text:"Window color",options:B6a},{option:"windowOpacity",text:"Window opacity",options:C6a},{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:eR(.25)},{option:.5,text:eR(.5)},{option:.75,text:eR(.75)},{option:1,text:eR(1)}]}];g.v(g.hR,g.WE);g.k=g.hR.prototype;
g.k.uQ=function(a){var b=!1,c=g.Xx(a),d=Hx(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.Wx(a)?(e=!1,h=!0):l.Ng&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),
d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);xQ(this.Ic,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);xQ(this.Ic,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Sg()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.Sg()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&gR(this,!0);(b||h)&&this.Ee.Wn();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Kx(a);l.D&&(a={keyCode:g.Xx(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Wx(a),fullscreen:this.api.isFullscreen()},this.api.Qa("onKeyPress",a))};
g.k.vQ=function(a){this.handleGlobalKeyUp(g.Xx(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.TO(this.api.vb());c&&(c=c.Mr)&&c.sb&&(c.qQ(a),b=!0);9===a&&(gR(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.Ng)return h;var l=g.TO(this.api.vb());if(l&&(l=l.Mr)&&l.sb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.pQ(a)}e.I||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&Eka(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){l=this.api.getVideoData();var m,n;f=null==(m=this.Cc)?void 0:null==
(n=m.u)?void 0:n.isEnabled;m=l?l.Hj:[];n=aV?d:c;switch(a){case 80:b&&!e.Ma&&(wQ(this.Ic,bHa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.Ma&&(wQ(this.Ic,uM(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.Sg()&&(this.api.startSeekCsiAction(),this.j?ZQ(this.j,-1,10):wQ(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),h=!0);break;case 76:this.api.Sg()&&(this.api.startSeekCsiAction(),this.j?ZQ(this.j,1,10):wQ(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),h=!0);break;case 37:this.api.Sg()&&(this.api.startSeekCsiAction(),n?(n=GKa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&($Q(this.j,-1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(this.j?ZQ(this.j,-1,5):wQ(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),h=!0));break;case 39:this.api.Sg()&&(this.api.startSeekCsiAction(),n?(n=FKa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&($Q(this.j,1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(null!=this.j?ZQ(this.j,1,5):wQ(this.Ic,{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),xQ(this.Ic,this.api.getVolume(),!1)):(this.api.mute(),xQ(this.Ic,0,!0));h=!0;break;case 32:case 75:e.Ma||(f?this.Cc.qI():(h=!g.jL(this.api.Db()),this.Ic.ou(h),h?this.api.playVideo():this.api.pauseVideo()),h=!0);break;case 190:b?e.Od&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),dKa(this.Ic,!1),h=!0):this.api.Sg()&&(JKa(this,1),h=!0);break;case 188:b?e.Od&&(h=this.api.getPlaybackRate(),
this.api.setPlaybackRate(h-.25,!0),dKa(this.Ic,!0),h=!0):this.api.Sg()&&(JKa(this,-1),h=!0);break;case 70:MJa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:f?(this.Cc.qq(),h=!0):this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.LP(this.api.vb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),eKa(this.Ic,!e||e&&!e.displayName),h=!0);break;case 79:jR(this,"textOpacity");break;case 87:jR(this,"windowOpacity");break;case 187:case 61:jR(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:jR(this,"fontSizeIncrement",!0,!0)}var p;b||c||d||(48<=a&&57>=a?p=a-48:96<=a&&105>=a&&(p=a-96));null!=p&&this.api.Sg()&&
(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(p/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.Ee.Wn()}return h};
g.k.ra=function(){g.ko(this.B);g.WE.prototype.ra.call(this)};g.v(kR,g.V);kR.prototype.La=function(){var a=this.G.V(),b=a.j,c=g.QG(a)&&g.SO(this.G)&&g.U(this.G.Db(),128),d=this.G.getPlayerSize();this.visible=this.j.Cg()&&!c&&240<=d.width&&!(this.G.getVideoData().D&&a.pfpChazalUi)&&!b;g.to(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&XQ(this.tooltip);this.G.Va(this.element,this.visible&&this.ya)};
kR.prototype.Wb=function(a){g.V.prototype.Wb.call(this,a);this.G.Va(this.element,this.visible&&a)};
kR.prototype.ra=function(){g.V.prototype.ra.call(this);g.ro(this.element,"ytp-overflow-button-visible")};g.v(lR,g.XO);g.k=lR.prototype;g.k.WW=function(a){a=Hx(a);g.hh(this.element,a)&&(g.hh(this.j,a)||g.hh(this.closeButton,a)||YO(this))};
g.k.wb=function(){g.XO.prototype.wb.call(this);this.tooltip.vk(this.element)};
g.k.show=function(){this.sb&&this.G.ma("OVERFLOW_PANEL_OPENED");g.XO.prototype.show.call(this);this.element.setAttribute("aria-modal","true");KKa(this,!0)};
g.k.hide=function(){g.XO.prototype.hide.call(this);this.element.removeAttribute("aria-modal");KKa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.oi()&&YO(this)};
g.k.focus=function(){for(var a=g.t(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.sb){b.focus();break}};g.v(nR,g.V);nR.prototype.onClick=function(a){g.cQ(a,this.api)&&this.api.playVideoAt(this.index)};g.v(oR,g.XO);g.k=oR.prototype;g.k.show=function(){g.XO.prototype.show.call(this);this.B.S(this.api,"videodatachange",this.AG);this.B.S(this.api,"onPlaylistUpdate",this.AG);this.AG()};
g.k.hide=function(){g.XO.prototype.hide.call(this);g.Lz(this.B);this.updatePlaylist(null)};
g.k.AG=function(){this.updatePlaylist(this.api.getPlaylist());this.api.V().j&&(this.Da("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.zc(this.C),this.C=null))};
g.k.aF=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.LK(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.t(this.j);for(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 nR(this.api,a,d);this.j.push(e);e.Ca(this.items)}this.selected=this.j[a.index];this.D=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.O2=function(a){var b=this.api.getVideoUrl(!0);g.dQ(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.aF,this),this.playlist=a,this.D=null,a?(a.subscribe("shuffle",this.aF,this),this.aF()):this.sb&&this.hide()):this.playlist&&this.aF()};
g.k.focus=function(){this.selected.focus()};
g.k.ra=function(){this.hide();g.XO.prototype.ra.call(this)};g.v(pR,g.V);
pR.prototype.La=function(){var a=g.QG(this.api.V());g.to(this.element,"ytp-playlist-menu-button-tiny",400>this.api.fb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.LK("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.LK("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.sb||(this.show(),XQ(this.tooltip)),this.visible=!0,this.Wb(!0)):
this.sb&&(this.hide(),this.Wb(!1),XQ(this.tooltip))};
pR.prototype.Wb=function(a){g.V.prototype.Wb.call(this,a);this.api.Va(this.element,this.visible&&a)};
pR.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.La,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.La,this);this.La()};g.v(qR,g.V);g.k=qR.prototype;g.k.YW=function(){this.C?tR(this):rR(this)};
g.k.XW=function(){this.C?(uR(this),this.I=!0):rR(this)};
g.k.U_=function(){this.D=!0;sR(this,1);this.G.ma("promotooltipacceptbuttonclicked",this.acceptButton);uR(this);this.u&&this.G.tb(this.acceptButton)};
g.k.N0=function(){this.D=!0;sR(this,2);uR(this);this.u&&this.G.tb(this.dismissButton)};
g.k.ZW=function(a){if(1===this.G.getPresentingPlayerType()||2===this.G.getPresentingPlayerType()&&this.T){var b=!0,c=g.Wg("ytp-ad-overlay-ad-info-dialog-container"),d=Hx(a);if(this.B&&d&&g.hh(this.B,d))this.B=null;else{1===this.G.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=OKa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.hh(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.hh(this.element,d))}this.j&&this.sb&&!c&&(!d||b&&g.nN(a))&&(this.D=!0,uR(this))}}};
g.k.Bb=function(){this.I||(this.j||(this.j=LKa(this)),tR(this))};
var MKa={"ytp-settings-button":g.zM()};g.v(vR,g.V);vR.prototype.onStateChange=function(a){this.Oc(a.state)};
vR.prototype.Oc=function(a){g.kM(this,g.U(a,2))};
vR.prototype.onClick=function(){this.G.Db();this.G.playVideo()};g.v(g.wR,g.V);g.wR.prototype.onClick=function(){var a=this,b=this.api.V(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){PKa(a,f)})}catch(f){f instanceof Error&&PKa(this,f)}else this.j.zk(),YO(this.u,this.element,!1);
this.api.tb(this.element)};
g.wR.prototype.La=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.QG(a)&&g.SO(this.api)&&g.U(this.api.Db(),128),d=this.j.Ce();this.j.If()&&d?(d=(this.api.fb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Il(this.element,"right",d+"px")):d&&g.Il(this.element,"right","0px");this.updateValue("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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.Rm||c||b.D&&a.pfpChazalUi;c=this.api.fb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.B&&!a;g.to(this.element,"ytp-share-button-visible",this.visible);g.kM(this,this.visible);XQ(this.tooltip);this.api.Va(this.element,this.visible&&this.ya)};
g.wR.prototype.Wb=function(a){g.V.prototype.Wb.call(this,a);this.api.Va(this.element,this.visible&&a)};
g.wR.prototype.ra=function(){g.V.prototype.ra.call(this);g.ro(this.element,"ytp-share-button-visible")};g.v(g.xR,g.XO);g.k=g.xR.prototype;g.k.aX=function(a){a=Hx(a);g.hh(this.D,a)||g.hh(this.closeButton,a)||YO(this)};
g.k.wb=function(){g.XO.prototype.wb.call(this);this.tooltip.vk(this.element);this.api.Va(this.j,!1);for(var a=g.t(this.B),b=a.next();!b.done;b=a.next())b=b.value,this.api.Cj(b.element)&&this.api.Va(b.element,!1)};
g.k.show=function(){var a=this.sb;g.XO.prototype.show.call(this);this.La();a||this.api.Qa("onSharePanelOpened")};
g.k.w_=function(){this.sb&&this.La()};
g.k.La=function(){var a=this;g.po(this.element,"ytp-share-panel-loading");g.ro(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&HN(this.api.Il(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.ro(a.element,"ytp-share-panel-loading"),RKa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.$G(this.api.V())&&(b=g.ti(b,g.cO({},"emb_share")));this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.LK("Share link $URL",{URL:b}));fQ(this.j);this.api.Va(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.oi()&&YO(this)};
g.k.focus=function(){this.j.focus()};
g.k.ra=function(){g.XO.prototype.ra.call(this);QKa(this)};g.v(AR,g.V);g.k=AR.prototype;g.k.fK=function(){};
g.k.nE=function(){};
g.k.iB=function(){return!0};
g.k.f4=function(){if(this.expanded){this.Aa.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.Aa.hide();this.Xa=34+a;g.to(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Xa)+"px";this.oa.start()};
g.k.dZ=function(){this.badge.element.style.width=(this.expanded?this.Xa:34)+"px";this.Ma.start()};
g.k.M4=function(){g.to(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Yk=function(){this.iB()?this.J.show():this.J.hide();SKa(this)};
g.k.bX=function(){this.enabled=!1;this.Yk()};
g.k.L4=function(){this.Yk()};
g.k.B0=function(a){this.Sa=1===a;this.Yk();g.to(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.Q0=function(){g.to(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.Yk()};g.v(BR,AR);g.k=BR.prototype;g.k.ra=function(){CR(this);AR.prototype.ra.call(this)};
g.k.fK=function(a){a.target!==this.dismissButton.element&&(UKa(this,!1),this.G.Qa("innertubeCommand",this.onClickCommand))};
g.k.nE=function(){this.ea=!0;UKa(this,!0);this.Yk()};
g.k.H1=function(a){this.Ka=a;this.Yk()};
g.k.A1=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.Ba&&(this.T=a,a||(a=3+this.G.getCurrentTime(),this.xe(a)))};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.ea=!1,this.j=!0,this.T=this.Ba=this.D=this.I=!1,CR(this);if(a||!b.videoId)this.B=this.u=!1;a=b.shoppingOverlayRenderer;this.Ka=this.enabled=!1;if(a){this.enabled=!0;if(!this.u){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.u=!!d)&&this.G.Ah(this.badge.element,d||null)}if(!this.B){var e;if(this.B=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.G.Ah(this.dismissButton.element,
(null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.jB(a.text);var h;if(c=null==(h=a.dismissButton)?void 0:h.a11yLabel)this.Wa=g.jB(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;eJ(b)?this.T=this.Ba=!0:this.xe()}TKa(this);zR(this);this.Yk()};
g.k.iB=function(){return!this.Ka&&this.enabled&&!this.ea&&!this.ib.Cg()&&!this.Sa&&!this.T&&(this.D||this.j)};
g.k.Lf=function(a){(this.D=a)?(yR(this),zR(this,!1)):(CR(this),this.Z.start());this.Yk()};
g.k.xe=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.cB(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.cB(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.G.xe(b)};g.v(DR,g.XO);DR.prototype.show=function(){g.XO.prototype.show.call(this);this.j.start()};
DR.prototype.hide=function(){g.XO.prototype.hide.call(this);this.j.stop()};
DR.prototype.Lq=function(a,b){"dataloaded"===a&&((this.Lg=b.Lg,this.Ve=b.Ve,isNaN(this.Lg)||isNaN(this.Ve))?this.B&&(this.G.Df("intro"),this.G.removeEventListener(g.eB("intro"),this.I),this.G.removeEventListener(g.fB("intro"),this.D),this.G.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.G.addEventListener(g.eB("intro"),this.I),this.G.addEventListener(g.fB("intro"),this.D),this.G.addEventListener("onShowControls",this.C),a=new g.cB(this.Lg,this.Ve,{priority:9,namespace:"intro"}),
this.G.xe([a]),this.B=!0))};g.v(ER,g.V);ER.prototype.onClick=function(){this.G.Lr()};
ER.prototype.La=function(){var a=!0;g.QG(this.G.V())&&(a=a&&480<=this.G.fb().getPlayerSize().width);g.kM(this,a);this.updateValue("icon",this.G.Rg()?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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 aw("yt.autonav");g.v(FR,g.V);g.k=FR.prototype;
g.k.Cy=function(){var a;if(a=3!==this.G.getPresentingPlayerType()&&g.WO(this.G)&&400<=this.G.fb().getPlayerSize().width)a=this.ud(),a=this.G.V().N("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.JX;if(a)this.j||(this.j=!0,g.kM(this,this.j),this.G.V().N("web_player_autonav_toggle_always_listen")||VKa(this),a=this.ud(),this.bO(a.autonavState),this.G.Va(this.element,this.j));else if(this.j=!1,g.kM(this,this.j),!this.G.V().N("web_player_autonav_toggle_always_listen")){this.G.V().N("web_player_autonav_toggle_always_listen");a=
g.t(this.u);for(var b=a.next();!b.done;b=a.next())this.zc(b.value)}};
g.k.bO=function(a){XKa(this)?this.isChecked=1!==a:((a=1!==a)||(g.Mv.getInstance(),a=g.wu("web_autonav_allow_off_by_default")&&!g.Nv(0,141)&&g.uu("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Nv(0,140)),this.isChecked=a);WKa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.G.ZE(this.isChecked?2:1);WKa(this);if(XKa(this)){var a=this.ud().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.G.Qa("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.G.Qa("innertubeCommand",a.onDisabledCommand)}this.G.tb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.Da("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};
g.k.ud=function(){return this.G.getVideoData(1)};g.v(g.HR,g.V);g.HR.prototype.ra=function(){this.ctx=null;g.V.prototype.ra.call(this)};g.v(IR,g.V);IR.prototype.onClick=function(){this.G.Qa("innertubeCommand",this.j)};
IR.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
IR.prototype.I=function(){this.B.disabled=null==this.j;g.to(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.jc()};g.v(JR,IR);JR.prototype.onClickCommand=function(a){g.N(a,VI)&&this.jc()};
JR.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.OX)?void 0:c.command;IR.prototype.I.call(this)};
JR.prototype.jc=function(){var a="",b=this.C.j,c=this.G.getLoopRange();c=!this.G.N("web_repeating_chapters")&&c||"clips"===(null==c?void 0:c.type);if(1<b.length&&!c){a=1E3*this.G.getProgressState().current;c=fR(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.u)this.G.Qa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.u=!1}else this.u=!0;IR.prototype.J.call(this,a)};g.v(g.KR,g.V);g.KR.prototype.Vc=function(a){g.U(a.state,32)?LR(this,this.api.Vi()):this.sb&&(g.U(a.state,16)||g.U(a.state,1))||this.j.hide()};
g.KR.prototype.pe=function(){var a=this.api.Db();(g.U(a,32)||g.U(a,16))&&MR(this)};
g.KR.prototype.D=function(){this.B=NaN;MR(this)};
g.KR.prototype.hide=function(){this.u&&LR(this,null);g.V.prototype.hide.call(this)};g.v(g.NR,g.V);g.k=g.NR.prototype;g.k.onClick=function(){var a=this;if(this.G.V().kb||this.G.V().J){this.G.tb(this.element);try{this.G.toggleFullscreen().catch(function(b){a.Sz(b)})}catch(b){this.Sz(b)}}else YO(this.message,this.element,!0)};
g.k.Sz=function(a){String(a).includes("fullscreen error")?g.aA(a):g.$z(a);this.qK()};
g.k.qK=function(){this.disable();this.message.Kc(this.element,!0)};
g.k.rp=function(){Gz()===this.G.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.AY=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.qK()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Bx(["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.XO(this.G,{F:"div",Ga:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},W:[b[0],{F:"a",X:{href:"https://web.archive.org/web/20221116135136/https://support.google.com/youtube/answer/6276924",
target:this.G.V().T},qa:b[2]},b[4]]},100,!0);this.message.hide();g.L(this,this.message);this.message.subscribe("show",function(c){a.u.hw(a.message,c)});
g.VO(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.La=function(){var a=MJa(this.G),b=this.G.V().J&&250>this.G.getPlayerSize().width;g.kM(this,a&&!b);this.G.Va(this.element,this.sb)};
g.k.Sk=function(a){if(a){var b={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"g",K:"ytp-fullscreen-button-corner-2",W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",K:"ytp-fullscreen-button-corner-3",W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{F:"g",K:"ytp-fullscreen-button-corner-0",W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{F:"g",
K:"ytp-fullscreen-button-corner-1",W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=gQ(this.G,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.G.getRootNode().focus()}else b={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"g",K:"ytp-fullscreen-button-corner-0",W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},
{F:"g",K:"ytp-fullscreen-button-corner-1",W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{F:"g",K:"ytp-fullscreen-button-corner-2",W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{F:"g",K:"ytp-fullscreen-button-corner-3",W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=gQ(this.G,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?
null:a;this.update({title:a,icon:b});XQ(this.u.xc())};
g.k.ra=function(){this.message||((0,this.j)(),this.j=null);g.V.prototype.ra.call(this)};g.v(OR,IR);OR.prototype.onClickCommand=function(a){g.N(a,y4a)&&this.jc()};
OR.prototype.updateVideoData=function(){var a,b;this.j=null==(a=ZKa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;IR.prototype.I.call(this)};
OR.prototype.jc=function(){var a="",b=this.C.T,c,d=null==(c=ZKa(this))?void 0:c.headerTitle;c=d?g.jB(d):"";d=this.G.getLoopRange();d=!this.G.N("web_repeating_chapters")&&d||"clips"===(null==d?void 0:d.type);1<b.length&&!d&&(a=1E3*this.G.getProgressState().current,d=EKa(b,a),a=null!=d?b[d].title:c,null!=d&&d!==this.currentIndex&&(this.G.Qa("innertubeCommand",b[d].onActiveCommand),this.currentIndex=d));IR.prototype.J.call(this,a)};g.v(PR,g.V);PR.prototype.onClick=function(){this.G.Qa("onCollapseMiniplayer");this.G.tb(this.element)};
PR.prototype.La=function(){this.visible=!this.G.isFullscreen();g.kM(this,this.visible);this.G.Va(this.element,this.visible&&this.ya)};
PR.prototype.Wb=function(a){g.V.prototype.Wb.call(this,a);this.G.Va(this.element,this.visible&&a)};g.v(QR,g.V);QR.prototype.onVideoDataChange=function(a){this.La("newdata"===a)};
QR.prototype.La=function(a){var b=this.G.getVideoData(),c=b.Tf,d=this.G.Db();d=(g.jL(d)||g.iL(d))&&0<c.length;g.kM(this,d);a&&(this.j=!0);if(d){this.j&&g.io(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.LK("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.Hf("default.jpg")});XQ(this.tooltip)}else this.u.stop()};
QR.prototype.B=function(){WQ(this.tooltip,this.element,"More cameras available");this.j=!1};g.v(RR,g.XO);g.k=RR.prototype;g.k.show=function(){var a=this.sb;g.XO.prototype.show.call(this);a||(this.B.S(this.api,"presentingplayerstatechange",this.La),this.B.S(this.api,"videodatachange",this.La),this.La())};
g.k.hide=function(){this.B&&(g.Lz(this.B),g.XO.prototype.hide.call(this))};
g.k.La=function(){var a=this,b=this.api.getVideoData(),c=b.Tf,d,e={};for(d=0;d<c.length;e={CF:e.CF},d++){var f=this.j[d];f||(f=new g.V({F:"button",Ga:["ytp-multicam-menu-item","ytp-button"],X:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},W:[{F:"div",K:"ytp-multicam-menu-item-title",qa:"{{cameraName}}"}]}),e.CF=d,f.Pa("click",function(n){return function(){var p=n.CF,q=a.api.getVideoData(),r=a.api,w=q.Tf[p];p=g.qO(r.app,1).getVideoData();q=r.getCurrentTime();w.id===p.videoId?(w=g.qO(r.app,
1),g.qO(r.app)!==w&&(r.app.yp(),p.isLivePlayback||r.seekTo(q))):r.app.loadVideoByPlayerVars({videoId:w.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.nQ}}}},4)}}(e)),f.Ca(this.items),this.j[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=mH(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.Db();b=c.length||!b.isLoaded();g.jL(d)||g.iL(d)||b||!this.oi()||YO(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Tf,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.ra=function(){g.$e(this.j);g.XO.prototype.ra.call(this)};g.v(SR,g.K);SR.prototype.j=function(){var a=(0,g.Q)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(Jo(D6a,a));1>a&&this.delay.start()};
var D6a=new Io(0,0,.4,0,.2,1,1,1),dLa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.UR,g.V);g.k=g.UR.prototype;g.k.cO=function(a){this.visible=300<=a.width;g.kM(this,this.visible);this.G.Va(this.element,this.visible&&this.ya)};
g.k.o1=function(){this.G.V().Ba?this.G.isMuted()?this.G.unMute():this.G.mute():YO(this.message,this.element,!0);this.G.tb(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.ea;isNaN(f)?gLa(this,a):TR(this.Aa,function(l){gLa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.T;isNaN(h)?hLa(this,d):TR(this.Z,function(l){hLa(c,h+(c.C-h)*l)},250);
this.C=d}e.Ba&&(e=gQ(this.G,"Mute","m"),d=gQ(this.G,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),XQ(this.tooltip))};
g.k.Wb=function(a){g.V.prototype.Wb.call(this,a);this.G.Va(this.element,this.visible&&a)};
var eLa=["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"],fLa=["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(VR,g.V);VR.prototype.onClick=function(){this.G.togglePictureInPicture()};g.v(g.WR,g.V);g.WR.prototype.onStateChange=function(a){this.Oc(a.state)};
g.WR.prototype.Oc=function(a){var b=g.jJ(this.G.getVideoData()),c=!1;g.jL(a)?a=b?4:2:g.U(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=gQ(this.G,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=gQ(this.G,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}3===a?this.update({title:b,
icon:iLa(a)}):(this.update({title:b}),(b=iLa(a))&&this.j&&3!==this.j?cLa(this.transition,this.element,b):this.updateValue("icon",b));XQ(this.tooltip);this.j=a}};
g.WR.prototype.onVideoDataChange=function(){g.to(this.element,"ytp-play-button-playlist",g.SO(this.G))};
g.WR.prototype.Cx=function(a){this.G.tb(this.element);if(g.jL(this.G.Db()))this.G.pauseVideo();else{if(this.G.Jf()&&this.G.Db().isCued()){var b={},c;if(null==(c=this.G.getVideoData())?0:c.J)b.cttAuthInfo={token:this.G.getVideoData().J,videoId:this.G.getVideoData().videoId};LB("direct_playback",b)}this.G.vj().timerName="direct_playback";this.G.playVideo()}this.G.Jf()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.v(g.ZR,g.V);g.k=g.ZR.prototype;g.k.onVideoDataChange=function(){jLa(this);this.C&&(this.zc(this.C),this.C=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.S(this.G,"progresssync",this.cX);this.B=kLa(this);YR(this);this.BG(this.G.fb().getPlayerSize())};
g.k.BG=function(a){a=void 0===a?this.G.fb().getPlayerSize():a;var b,c="clips"===(null==(b=this.G.getLoopRange())?void 0:b.type);a=(g.SO(this.G)||this.j&&g.WO(this.G)||lLa(this))&&!c&&(this.j||400<=a.width);g.kM(this,a);this.G.Va(this.element,a)};
g.k.onClick=function(a){this.G.tb(this.element);var b=!0;this.I?b=g.cQ(a,this.G):g.Kx(a);b&&(this.j&&5===this.G.getPresentingPlayerType()?this.G.ma("ytoprerollinternstitialnext"):this.j?this.G.nextVideo(!0):this.B?this.G.seekTo(0):this.G.previousVideo(!0))};
g.k.cX=function(){var a=kLa(this);a!==this.B&&(this.B=a,YR(this))};
g.k.ra=function(){this.u&&(this.u(),this.u=null);jLa(this);g.V.prototype.ra.call(this)};g.v($R,g.V);g.k=$R.prototype;g.k.eX=function(a){this.DG(a.pageX);this.CG(a.pageX+a.deltaX);aS(this)};
g.k.DG=function(a){this.T=a-this.Aa};
g.k.CG=function(a){a-=this.Aa;if(!isNaN(this.T)&&0<this.thumbnails.length&&(this.J=a-this.T,0<this.thumbnails.length&&0!==this.J))if(this.u=this.I+this.J,a=pLa(this,this.u),this.u<=this.C/2&&this.u>=oLa(this)){this.api.seekTo(a,!1);g.Il(this.B,"transform","translateX("+this.u+"px)");var b=g.mN(a),c=g.LK("Seek to $PROGRESS",{PROGRESS:g.mN(a,!0)});this.update({ariamin:0,ariamax:Math.floor(this.api.getDuration()),arianow:Math.floor(a),arianowtext:c,seekTime:b})}else this.u=this.I};
g.k.dX=function(){var a=300>(0,g.Q)()-this.Ba;if(5>Math.abs(this.J)&&!a){this.Ba=(0,g.Q)();a=this.T+this.J;var b=this.C/2-a;this.DG(a);this.CG(a+b);aS(this);this.api.tb(this.B)}aS(this)};
g.k.Xw=function(){bS(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(pLa(this,this.u));this.api.playVideo();a&&this.api.tb(this.playButton)};
g.k.Bb=function(a,b){this.Aa=a;this.C=b;bS(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ka=this.api.getCurrentTime(),g.to(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.oa=this.S(this.element,"wheel",this.eX),this.Va(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.to(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.oa&&this.zc(this.oa);this.Va(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.ea=!1};
g.k.Va=function(a){this.api.Va(this.element,a);this.api.Va(this.B,a);this.api.Va(this.dismissButton,a);this.api.Va(this.playButton,a)};
g.k.ra=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.V.prototype.ra.call(this)};
g.v(mLa,g.V);g.v(cS,g.V);g.v(sLa,g.V);g.v(dS,g.V);tLa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.C=d;this.j=b-c-d;this.position=g.Ag(a,c,c+this.j);this.B=this.position-c;this.fraction=this.B/this.j};g.v(hS,g.V);g.v(g.jS,g.lM);g.k=g.jS.prototype;
g.k.vU=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Df("timedMarkerCueRange");kS(this);for(var c=g.t(b.Le),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Yc[d])?void 0:e.markers;if(f){a=g.t(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new hS;var h=void 0;e.title=(null==(h=f.title)?void 0:h.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=h=void 0;e.onActiveCommand=null!=(l=null==(h=f.onActive)?void 0:
h.innertubeCommand)?l:void 0;yLa(this,e)}lS(this,this.T);a=this.T;e=this.Xe;f=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=HKa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.xe(f);this.Tf=this.Yc[d];a=!0}}b.YM=this.T;g.to(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Bb=function(){g.mS(this);qS(this);lS(this,this.T);if(this.u){var a=g.Ql(this.element).x||0;this.u.Bb(a,this.D)}};
g.k.onClickCommand=function(a){if(a=g.N(a,VI)){var b=a.key;a.isVisible&&b&&nS(this,b)}};
g.k.N2=function(a){this.api.Qa("innertubeCommand",this.Xe[a.id])};
g.k.jc=function(){qS(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.UE()};
g.k.gX=function(a){if(!g.Wx(a)){var b=!1;switch(g.Xx(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.Kx(a)}};
g.k.Lq=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.HZ=function(){this.Lq("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(BJ(a)||tS(this)?this.zd=!1:this.zd=a.allowLiveDvr,g.to(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!BJ(a))));OLa(this,this.api.Sg());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;xS(this);for(rS(this,this.oa,this.Mb);0<this.I.length;)this.I.pop().dispose();this.heatMarkersDecorations=[];this.pc={};var d;null==(d=this.u)||d.reset();DS(this);g.to(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
iS(this))}else this.UE();g.ET(this.tooltip)}if(a){b=a.watchNextResponse;var e;d=!this.api.N("web_repeating_chapters")&&this.xb||"clips"===(null==(e=this.xb)?void 0:e.type);if(e=!a.isLivePlayback&&b)e=this.api.getVideoData(),b=e.PF,e=null!=e.multiMarkersPlayerBarRenderer||null!=b&&0<b.length||0<e.ov.length;if(e&&!d){e=this.api.getVideoData();b=e.multiMarkersPlayerBarRenderer;d=!1;if(null==b?0:b.markersMap){d=this.api.getVideoData();var f;d.Ju=(null==(f=b.visibleOnLoad)?void 0:f.key)||d.Ju;f=g.t(b.markersMap);
for(b=f.next();!b.done;b=f.next())b=b.value,b.key&&b.value&&(this.pc[b.key]=b.value,b.value.onChapterRepeat&&(d.UX=b.value.onChapterRepeat));null!=d.Ju&&nS(this,d.Ju);d=!0}if(this.api.V().N("web_key_moments_markers")&&0<e.ov.length){f=g.WI.getState().entities;b=g.t(e.ov);for(c=b.next();!c.done;c=b.next()){c=c.value;var h=void 0,l=null==(h=f.macroMarkersListEntity?f.macroMarkersListEntity[c]||null:null)?void 0:h.markersList;h=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(h=l)?void 0:h.markerType)&&(this.Yc[c]=
l)}d=this.vU()||d}!d&&(f=e.PF)&&(wLa(this,f),e.Hj=this.j,vLa(this));GLa(this,null);a.BP&&0===this.I.length&&(a=a.BP,e=a.key,a.isVisible&&e&&nS(this,e))}else uLa(this),kS(this)}qS(this)};
g.k.fX=function(a){this.ea&&!g.U(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.ea.cancel();var b;(null==(b=this.u)?0:b.isEnabled)&&g.U(a.state,8)&&this.api.pauseVideo()};
g.k.dO=function(a){var b=!!this.xb!==!!a,c=this.xb;this.xb=a;GLa(this,c);this.api.N("web_repeating_chapters")&&"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",YGa()),this.updateValue("clipendicon",YGa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",TGa()),this.updateValue("clipendicon",SGa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.mS(this)),xS(this));rS(this,this.oa,this.Mb)};
g.k.K1=function(a,b,c){var d=g.Ql(this.element),e=pS(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=tN(this.B,Number(c.getAttribute("data-position")),0)*e+g.Ql(this.Cc).x);this.yb.x=a-d.x;this.yb.y=b-d.y;a=pS(this);c=vS(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:BJ(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.Ba,m=tN(this.B,m)*pS(this).j+b,a.position=m),
b=this.B.u;tS(this)&&(b=this.B.u);m=f||g.mN(this.zd?c-this.B.j:c-b);b=a.position+this.Mg;c-=this.api.Bd();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.Vi()){if(1<this.j.length){n=uS(this,this.yb.x,!0);if(!this.xb)for(d=0;d<this.j.length;)g.to(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.I.length)for(d=0;d<this.j.length;d++)g.to(this.I[d].element,"ytp-heatmap-hover",d===n)}if(0<this.T.length)for(n=this.yb.x,d=g.t(this.T),e=d.next();!e.done;e=d.next())e=e.value,h=oS(this,e.timeRangeStartMillis/
(1E3*this.B.j),pS(this)),g.to(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.N("web_key_moments_markers")?this.Tf?(n=EKa(this.T,1E3*c),n=null!=n?this.T[n].title:""):(n=fR(this.j,1E3*c),n=this.j[n].title):(n=fR(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=fR(this.j,1E3*c);this.ib=HLa(this,c,d)?d:HLa(this,c,d+1)?d+1:-1;g.to(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.ib&&1<this.j.length);d=!1;
e=g.t(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.mN(h.decorationTimeMillis/1E3),d=!0)}this.ke!==d&&(this.ke=d,this.api.Va(this.Od,this.ke));g.to(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.D-a.position&&(d=2);this.api.V().J&&(l-=10);
this.I.length&&this.I[0].isValid&&(l-=14*(this.C?2:1),this.Ma||(this.Ma=!0,this.api.Va(this.Aa,this.Ma)));var q;if(iS(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.Z)){var r;l-=(null==(r=this.u)?0:r.isEnabled)?zS(this):this.Z}q=void 0;iS(this)&&(q="Pull up for precise seeking",this.api.Va(this.Jg,!0));jMa(this.tooltip,b,c,m,!!f,l,n,d,q)}else jMa(this.tooltip,b,c,m,!!f,l);g.po(this.api.getRootNode(),"ytp-progress-bar-hover");FLa(this)};
g.k.J1=function(){g.ET(this.tooltip);g.ro(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ma&&(this.Ma=!1,this.api.Va(this.Aa,this.Ma))};
g.k.I1=function(a,b){iS(this)&&this.u&&(this.u.ea?bS(this.u,this.api.getCurrentTime()):nLa(this.u),this.u.show(),g.to(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.J&&(this.J.dispose(),this.J=null);this.Le=b;1<this.j.length&&-1!==this.ib?this.api.seekTo(this.j[this.ib].startTime/1E3,!1):this.api.seekTo(vS(this,pS(this)),!1);g.po(this.element,"ytp-drag");(this.Ye=g.jL(this.api.Db()))&&this.api.pauseVideo()};
g.k.L1=function(){var a=this;if(iS(this)&&this.u){var b=zS(this);this.Z>=.5*b?(this.u.enable(),bS(this.u,this.api.getCurrentTime()),NLa(this,b)):DS(this)}else if(this.od=0,g.ro(this.element,"ytp-pull-ui"),g.ro(this.element,"ytp-pulling"),this.J&&(this.J.dispose(),this.J=null),0<this.Z){var c=(0,g.Q)();this.J=new g.fo(function(){var f=a.Z,h=pS(a).position,l=1-Math.pow(1-((0,g.Q)()-c)/200,3);h+=l*(a.oa*a.D-h);if(0>l||1<l)l=1;ILa(a,(1-l)*f,h,a.oa);1>l&&a.J.start();a.Oa&&(a.Oa=!1,a.api.Va(a.kb,a.Oa))});
this.J.start()}if(g.U(this.api.Db(),32)||3===this.api.getPresentingPlayerType()){var d;if(null==(d=this.u)?0:d.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.ib)this.api.seekTo(this.j[this.ib].startTime/1E3);else{b=vS(this,pS(this));this.api.seekTo(b);d=g.t(this.heatMarkersDecorations);for(var e=d.next();!e.done;e=d.next())e=e.value,1E3*b>=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.tb(this.Od)}g.ro(this.element,"ytp-drag");
this.Ye&&!g.U(this.api.Db(),2)&&this.api.playVideo()}}};
g.k.M1=function(a,b){var c=this,d=!1,e=!1;a=pS(this);1===this.j.length&&!wS(this)&&3600<=rN(this.B)&&(ILa(this,this.Le-b-10,a.position,a.fraction),e=!0,d=this.Z>.1*(this.C?60:40),a=pS(this));g.to(this.element,"ytp-pull-ui",e);d&&g.po(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.C&&a.position>=a.width&&(d=1);if(this.od!==d&&(this.od=d,this.J&&(this.J.dispose(),this.J=null),d)){var f=(0,g.Q)();this.J=new g.fo(function(){var l=c.D*(c.Xa-1);c.Ba=g.Ag(c.Ba+c.od*((0,g.Q)()-f)*.3,0,l);sS(c);
c.api.seekTo(vS(c,pS(c)),!1);0<c.Ba&&c.Ba<l&&c.J.start()});
this.J.start()}a=vS(this,a);this.api.seekTo(a,!1);var h;iS(this)&&(null==(h=this.u)?0:h.ea)&&(bS(this.u,a),this.u.isEnabled||(this.Z=g.Ag(this.Le-b-10,0,zS(this)),NLa(this,this.Z)))};
g.k.TR=function(){this.xb||(this.updateValue("clipstarticon",RGa()),this.updateValue("clipendicon",RGa()),g.po(this.element,"ytp-clip-hover"))};
g.k.SR=function(){this.xb||(this.updateValue("clipstarticon",TGa()),this.updateValue("clipendicon",SGa()),g.ro(this.element,"ytp-clip-hover"))};
g.k.UE=function(){this.clipStart=0;this.clipEnd=Infinity;xS(this);rS(this,this.oa,this.Mb)};
g.k.xU=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Sa[c]){var d=g.bh("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Sa[c]=b;this.rd[c]=d;g.no(d,b.style);JLa(this,c);this.api.V().N("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else MLa(this,b)};
g.k.F3=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())MLa(this,b.value)};
g.k.qq=function(a){if(this.u){var b=this.u;a=null!=a;b.api.seekTo(b.Ka);b.api.playVideo();a&&b.api.tb(b.dismissButton);DS(this)}};
g.k.qI=function(a){this.u&&(this.u.play(null!=a),DS(this))};
g.k.ra=function(){OLa(this,!1);g.lM.prototype.ra.call(this)};g.v(ES,g.V);ES.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
ES.prototype.La=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.kM(this,a&&400<=this.G.fb().getPlayerSize().width);this.G.Va(this.element,this.sb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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.updateValue("icon",g.QGa())}g.to(this.element,"ytp-remote-button-active",this.isActive())}};
ES.prototype.u=function(){this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.ob.pF(this.element);this.G.tb(this.element)};g.v(FS,g.V);FS.prototype.j=function(a){g.kM(this,this.u&&400<=a.width)};
FS.prototype.B=function(){var a=this.ob;a.sb?a.wb():a.Kc(this.element)};g.v(GS,g.$O);GS.prototype.onClick=function(){this.ob.wb()};g.v(IS,GS);IS.prototype.onClick=function(){GS.prototype.onClick.call(this);this.G.Qa("onCollapseMiniplayer");this.G.tb(this.element)};
IS.prototype.La=function(){var a=!this.G.isFullscreen();HS(this,a);this.G.Va(this.element,this.j)};g.v(JS,GS);JS.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
JS.prototype.La=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);HS(this,a&&!this.G.isFullscreen());this.G.Va(this.element,this.j);var b=1;a&&this.isActive()&&(b=2);if(this.B!==b)switch(this.B=b,b){case 1:this.updateValue("icon",{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{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.updateValue("icon",{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{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"}}]})}};
JS.prototype.onClick=function(){GS.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.C.pF(this.element);this.G.tb(this.element)};g.v(KS,GS);KS.prototype.onClick=function(){GS.prototype.onClick.call(this);GVa(this.G.app);this.G.tb(this.element)};
KS.prototype.La=function(){var a=this.G.dA()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType();HS(this,a);this.j&&(a=this.G.isWidescreen(),this.isWidescreen!==a&&(bP(this,a?{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{F:"svg",X:{height:"24",version:"1.1",viewBox:"6 6 24 24",width:"24"},W:[{F:"path",Qb:!0,X:{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.updateValue("title",a?"Default view":"Theater mode")));this.G.Va(this.element,this.j)};g.v(LS,g.RQ);g.k=LS.prototype;g.k.FL=function(a){this.Ap=a;this.element.id=a.element.getAttribute("aria-owns")};
g.k.Kc=function(a){0<this.td.Ti()&&g.RQ.prototype.Kc.call(this,a)};
g.k.Ec=function(a){this.td.Ec(a);a=this.Ap;a.u=0<this.td.Ti();a.j(a.G.fb().getPlayerSize())};
g.k.Nf=function(a){this.sb&&1>=this.td.Ti()&&this.hide();this.td.Nf(a);a=this.Ap;a.u=0<this.td.Ti();a.j(a.G.fb().getPlayerSize())};
g.k.pF=function(){};g.v(MS,g.V);MS.prototype.j=function(a){var b=400;this.G.V().J&&(b=200);a=this.u&&a.width>=b;g.kM(this,a);this.G.Va(this.element,a)};
MS.prototype.B=function(){if(this.ob.sb)this.ob.wb();else{var a=g.LP(this.G.vb());a&&!a.loaded&&(a.Pg("tracklist",{includeAsr:!0}).length||a.load());this.G.tb(this.element);this.ob.Kc(this.element)}};
MS.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.UO(this.G),e=c&&!!g.TO(this.G.vb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.to(this.element,"ytp-hdr-quality-badge",a);g.to(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.to(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.to(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.to(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.to(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.to(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(OS,gP);OS.prototype.isLoaded=function(){var a=g.UP(this.G.vb());return void 0!==a&&a.loaded};
OS.prototype.La=function(){void 0!==g.UP(this.G.vb())&&3!==this.G.getPresentingPlayerType()?this.j||(this.ob.Ec(this),this.j=!0):this.j&&(this.ob.Nf(this),this.j=!1);this.setValue(this.isLoaded())};
OS.prototype.onSelect=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.ma("annotationvisibility",a)};
OS.prototype.ra=function(){this.j&&this.ob.Nf(this);gP.prototype.ra.call(this)};g.v(g.PS,g.$O);g.k=g.PS.prototype;g.k.open=function(){g.PQ(this.ob,this.B)};
g.k.Ji=function(a){QLa(this);this.options[a].element.setAttribute("aria-checked","true");this.Wd(this.nk(a));this.selectedKey=a};
g.k.xH=function(a,b,c){var d=this;b=new g.$O({F:"div",Ga:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},W:[{F:"div",Ga:["ytp-menuitem-label"],qa:"{{label}}"}]},b,this.nk(a,!0));b.Pa("click",function(){d.ah(a)});
return b};
g.k.enable=function(a){this.D?a||(this.D=!1,this.bv(!1)):a&&(this.D=!0,this.bv(!0))};
g.k.bv=function(a){a?this.ob.Ec(this):this.ob.Nf(this)};
g.k.ah=function(a){this.ma("select",a)};
g.k.nk=function(a){return a.toString()};
g.k.hX=function(a){g.Wx(a)||39!==g.Xx(a)||(this.open(),g.Kx(a))};
g.k.ra=function(){this.D&&this.ob.Nf(this);g.$O.prototype.ra.call(this);for(var a=g.t(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(RS,g.PS);RS.prototype.La=function(){var a=this.G.getAvailableAudioTracks();1<a.length?(g.QS(this,g.Vd(a,this.u)),this.tracks=g.sc(a,this.u,this),this.j.Wd(a.length?" ("+a.length+")":""),this.ma("size-change"),this.Ji(this.u(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)};
RS.prototype.ah=function(a){g.PS.prototype.ah.call(this,a);this.G.setAudioTrack(this.tracks[a]);this.ob.ej()};
RS.prototype.u=function(a){return a.toString()};g.v(SS,gP);
SS.prototype.u=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a&&g.WO(this.G))this.j||(this.ob.Ec(this),this.j=!0,this.B.push(this.S(this.G,"videodatachange",this.u)),this.B.push(this.S(this.G,"videoplayerreset",this.u)),this.B.push(this.S(this.G,"onPlaylistUpdate",this.u)),this.B.push(this.S(this.G,"autonavchange",this.C)),a=this.G.getVideoData(),this.C(a.autonavState),this.G.Va(this.element,this.j));else if(this.j){this.ob.Nf(this);this.j=!1;a=g.t(this.B);for(var b=a.next();!b.done;b=a.next())this.zc(b.value)}};
SS.prototype.C=function(a){this.setValue(1!==a)};
SS.prototype.onSelect=function(a){this.G.ZE(a?2:1);this.j&&(this.G.Va(this.element,this.j),this.G.tb(this.element))};
SS.prototype.ra=function(){this.j&&this.ob.Nf(this);gP.prototype.ra.call(this)};g.v(TS,g.$O);TS.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.sO(this.G))||null==(c=b.fD())||c.Kc(a.target);var d,e;null==(d=g.sO(this.G))||null==(e=d.Jl())||e.wb()};g.v(US,g.V);US.prototype.onClick=function(){this.ob.wb()};
US.prototype.Xg=function(a){this.updateValue("label",a);this.Ap.updateValue("title",a)};g.v(VS,US);VS.prototype.onClick=function(){US.prototype.onClick.call(this);this.G.Qa("onCollapseMiniplayer");this.G.tb(this.element)};
VS.prototype.La=function(){var a=!this.G.isFullscreen();g.kM(this,a);this.G.Va(this.element,a)};g.v(WS,g.PS);g.k=WS.prototype;
g.k.Dy=function(){var a=this.G.getPresentingPlayerType();if(2!==a&&3!==a){this.Z=this.G.xq();a=this.G.getAvailableQualityLevels();if(this.j){this.u={};var b=g.oO(this.G,"getAvailableQualityData",[]),c=[],d=g.t(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.u[b.formatId]=b,b.formatId&&c.push(b.formatId);"auto"===a[a.length-1]&&c.push("auto");a=c}else if(this.C){b=g.oO(this.G,"getAvailableQualityData",[]);c=[];d=g.t(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.J[b.quality]=b,b.quality&&
c.push(b.quality);"auto"===a[a.length-1]&&c.push("auto");a=c}g.PIa(this.G)&&g.QIa(this.G)&&a.unshift("missing-qualities");RIa(this.G)&&a.unshift("inline-survey");g.QS(this,a);c=this.G.getVideoData().cotn?!0:!1;b=!g.pH(this.G.V())||!(void 0===c?0:c);c=this.B;b=void 0===b?!1:b;b=void 0===b?!1:b;c.CQ&&(c=c.Da("ytp-panel-footer"),g.to(c,"ytp-panel-hide-footer",b));if(a.length){this.eO();this.enable(!0);return}}this.enable(!1)};
g.k.eO=function(){if(this.j){var a=this.G.getPreferredQuality();a:{for(c in this.u)if(this.u.hasOwnProperty(c)){var b=this.u[c];if(b&&b.quality===a&&b.isPlayable)break a}var c="auto"}this.options[c]&&(this.I=this.G.getPlaybackQuality(),c=(c=g.qO(this.G.app))?(c=c.getVideoData().B)&&c.id||"":"",this.T=c,"auto"===a?(this.Ji(a),this.Wd(this.nk(a))):this.Ji(this.T))}else a=this.G.getPreferredQuality(),this.options[a]&&(this.I=this.G.getPlaybackQuality(),this.Ji(a),"auto"===a&&this.Wd(this.nk(a)))};
g.k.ah=function(a){if("missing-qualities"!==a){g.PS.prototype.ah.call(this,a);var b=this.j?this.u[a]:this.J[a],c=b&&b.quality,d=b&&b.paygatedQualityDetails;b=d&&d.endpoint;if(d){var e;d=null==(e=this.options[a])?void 0:e.element;this.G.tb(d)}if(this.j){if(b){this.G.Qa("innertubeCommand",b);return}this.G.setPlaybackQuality(c,a)}else{if(this.C){var f,h;if(this.G.N("web_player_enable_early_warning_snackbar")&&(null==(f=g.N(b,g.x3a))?0:null==(h=f.popup)?0:h.notificationActionRenderer))this.G.Qa("innertubeCommand",
b);else if(b){this.G.Qa("innertubeCommand",b);return}}this.G.setPlaybackQuality(a)}this.ob.wb();this.Dy()}};
g.k.open=function(){for(var a=g.t(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.G.Cj(null==(c=b)?void 0:c.element)&&(c=void 0,this.G.Va(null==(c=b)?void 0:c.element,!0))}g.PS.prototype.open.call(this);this.G.tb(this.element)};
g.k.xH=function(a,b,c){var d=this;if("inline-survey"!==a){var e,f=null==(e=this.j?this.u[a]:this.J[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.PS.prototype.xH.call(this,a,b,c);f?(this.G.yg(b.element,this,!0),this.G.Ah(b.element,f)):e&&this.G.rb(b.element,this,e,!0);return b}a=[{F:"span",qa:"Looks good?"}];c={};e=g.t([!0,!1]);for(f=e.next();!f.done;c={IB:c.IB},f=e.next())c.IB=f.value,f=new g.V({F:"span",K:"ytp-menuitem-inline-survey-response",
W:[c.IB?g.sM():VGa()],X:{tabindex:"0",role:"button"}}),f.Pa("click",function(h){return function(){var l=h.IB,m=g.qO(d.G.app);m&&(m.va("iqsr",{tu:l}),m.getVideoData().DO=!0);d.ob.wb();d.Dy()}}(c)),a.push(f);
return new g.$O({F:"div",K:"ytp-menuitem",X:{"aria-disabled":"true"},W:[{F:"div",Ga:["ytp-menuitem-label"],W:a}]},b)};
g.k.nk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{F:"a",X:{href:"https://web.archive.org/web/20221116135136/https://support.google.com/youtube/?p=missing_quality",target:this.G.V().T},qa:"Missing options?"};if("inline-survey"===a)return"";var c=this.C||this.j?[XS(this,a,b)]:[SLa(this,a)];var d=this.G.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(XS(this,this.T,b,["ytp-menu-label-secondary"])):this.C?c.push(XS(this,this.I,b,["ytp-menu-label-secondary"])):c.push(SLa(this,this.I,["ytp-menu-label-secondary"])));
return{F:"div",W:c}};g.v(YS,US);YS.prototype.isActive=function(){return!!this.G.getOption("remote","casting")};
YS.prototype.La=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1<this.G.getOption("remote","receivers").length);g.kM(this,a);this.G.Va(this.element,this.sb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b)switch(this.j=b,b){case 1:this.updateValue("icon",PGa());break;case 2:this.updateValue("icon",{F:"svg",X:{"enable-background":"new 0 0 24 24",height:"48",viewBox:"0 0 24 24",width:"48"},W:[{F:"path",X:{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"}}]})}};
YS.prototype.onClick=function(){US.prototype.onClick.call(this);this.G.getOption("remote","quickCast")?this.G.setOption("remote","quickCast",!0):this.ob.pF(this.element);this.G.tb(this.element)};g.v(ZS,g.lM);ZS.prototype.addButton=function(a){this.element.appendChild(a.element)};
ZS.prototype.removeButton=function(a){this.element.removeChild(a.element)};g.v($S,US);$S.prototype.onClick=function(){US.prototype.onClick.call(this);GVa(this.G.app);this.G.tb(this.element)};
$S.prototype.La=function(){g.kM(this,this.G.dA()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.sb){var a=this.G.isWidescreen();this.isWidescreen!==a&&(this.Ap.updateValue("icon",a?{F:"svg",X:{height:"48px",version:"1.1",viewBox:"0 0 48 48",width:"48px",x:"0px",y:"0px"},W:[{F:"path",X:{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"}}]}:dHa()),this.Xg(gQ(this.G,a?"Default view":"Theater mode","t")),this.isWidescreen=a)}this.G.Va(this.element,this.sb)};g.v(aT,g.V);g.k=aT.prototype;g.k.init=function(){this.ju(this.j);this.updateValue("minvalue",this.minimumValue);this.updateValue("maxvalue",this.maximumValue)};
g.k.kX=function(a){if(!g.Wx(a)){switch(g.Xx(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.ju(this.j+b);g.Kx(a)}};
g.k.iX=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.ju(b);g.Kx(a)};
g.k.jX=function(a){a=(a-g.Ql(this.u).x)/this.J*this.range+this.minimumValue;this.ju(a)};
g.k.ju=function(a,b){b=void 0===b?"":b;a=g.Ag(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.T.style.left=(a-this.minimumValue)/this.range*(this.J-this.ea)+"px";this.j=a};
g.k.focus=function(){this.oa.focus()};g.v(cT,aT);cT.prototype.Z=function(){this.G.setPlaybackRate(this.j,!0)};
cT.prototype.ju=function(a){aT.prototype.ju.call(this,a,dT(this,a).toString());this.B&&(bT(this),this.Aa())};
cT.prototype.updateValues=function(){var a=this.G.getPlaybackRate();dT(this,this.j)!==a&&(this.ju(a),bT(this))};g.v(eT,g.lM);eT.prototype.focus=function(){this.j.focus()};g.v(TLa,IQ);g.v(fT,g.PS);g.k=fT.prototype;g.k.nk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.La=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);WLa(this)};
g.k.bv=function(a){g.PS.prototype.bv.call(this,a);a?(this.I=this.S(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),WLa(this),ULa(this,this.G.getPlaybackRate())):(this.zc(this.I),this.I=null)};
g.k.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.C.includes(b)||VLa(this,b);ULa(this,a)};
g.k.ah=function(a){g.PS.prototype.ah.call(this,a);a===this.j?this.G.setPlaybackRate(this.u,!0):this.G.setPlaybackRate(Number(a),!0);this.ob.ej()};g.v(hT,g.PS);g.k=hT.prototype;g.k.Ji=function(a){g.PS.prototype.Ji.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.nk=function(a){return this.getOption(a).text||""};
g.k.ah=function(a){g.PS.prototype.ah.call(this,a);this.ma("settingChange",this.setting,this.settings[a].option)};g.v(iT,g.JQ);iT.prototype.Yg=function(a){for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.er[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ji(e),c.u.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
iT.prototype.dj=function(a,b){this.ma("settingChange",a,b)};g.v(jT,g.PS);jT.prototype.getKey=function(a){return a.languageCode};
jT.prototype.nk=function(a){return this.languages[a].languageName||""};
jT.prototype.ah=function(a){this.ma("select",a);this.G.tb(this.element);g.TQ(this.ob)};g.v(kT,g.PS);g.k=kT.prototype;g.k.getKey=function(a){return g.sf(a)?"__off__":a.displayName};
g.k.nk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.ah=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.G.pauseVideo(),this.G.isFullscreen()&&this.G.toggleFullscreen(),a=g.bO(this.G.V(),this.G.getVideoData()),g.zN(a)):(this.G.tb(this.element),this.G.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.PS.prototype.ah.call(this,a),this.ob.ej())};
g.k.La=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData();b=b&&b.wC;var c,d=!(null==(c=this.G.getVideoData())||!g.xJ(c));c={};if(a||b){if(a){var e=this.G.getOption("captions","track");c=this.G.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.sc(c,this.getKey,this);d=g.Vd(c,this.getKey);if(f.length&&!g.sf(e)){var h=e.translationLanguage;if(h&&h.languageName){var l=h.languageName;
h=f.findIndex(function(m){return m.languageName===l});
Waa(f,h)}YLa(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.QS(this,d);this.Ji(f);e&&e.translationLanguage?this.j.Ji(this.j.getKey(e.translationLanguage)):QLa(this.j);a&&this.u.Yg(this.G.getSubtitlesUserSettings());this.I.Wd(c&&c.length?" ("+c.length+")":"");this.ma("size-change");this.G.Va(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.lX=function(a){var b=this.G.getOption("captions","track");b=g.yf(b);b.translationLanguage=this.j.languages[a];this.G.setOption("captions","track",b)};
g.k.dj=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}ZLa(this,!0);this.C.start();this.u.Yg(this.G.getSubtitlesUserSettings())};
g.k.u2=function(a){a||g.ko(this.C)};
g.k.ra=function(){g.ko(this.C);g.PS.prototype.ra.call(this)};g.v(lT,g.RQ);g.k=lT.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.G.V();this.isInitialized=!0;var b=new WS(this.G,this);g.L(this,b);b=new kT(this.G,this);g.L(this,b);a.j||(b=new OS(this.G,this),g.L(this,b));a.Od&&(b=new fT(this.G,this),g.L(this,b));this.G.N("embeds_web_enable_new_context_menu_triggering")&&g.QG(a)&&(a.isMobile||a.wc)&&(b=new TS(this.G,this),g.L(this,b));a.Dd&&!a.N("web_player_move_autonav_toggle")&&(a=new SS(this.G,this),g.L(this,a));a=new RS(this.G,this);g.L(this,a);this.G.ma("settingsMenuInitialized");
NS(this.settingsButton,this.td.Ti())}};
g.k.Ec=function(a){this.initialize();this.td.Ec(a);NS(this.settingsButton,this.td.Ti())};
g.k.Nf=function(a){this.sb&&1>=this.td.Ti()&&this.hide();this.td.Nf(a);NS(this.settingsButton,this.td.Ti())};
g.k.Kc=function(a){this.initialize();0<this.td.Ti()&&g.RQ.prototype.Kc.call(this,a)};
g.k.wb=function(){this.NK?this.NK=!1:g.RQ.prototype.wb.call(this)};
g.k.show=function(){g.RQ.prototype.show.call(this);g.po(this.G.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.RQ.prototype.hide.call(this);g.ro(this.G.getRootNode(),"ytp-settings-shown")};
g.k.Lf=function(a){this.G.Va(this.element,a);this.G.ma("settingsMenuVisibilityChanged",a)};
g.k.pF=function(a){if(this.oi())this.wb();else{this.initialize();a:{var b=g.t(this.td.items);for(var c=b.next();!c.done;c=b.next())if(c=c.value,1===c.priority){b=c;break a}b=null}b&&(b.open(),this.Kc(a));this.Kc(a)}};g.v(mT,g.V);mT.prototype.onClick=function(){GVa(this.G.app);this.G.tb(this.element)};
mT.prototype.La=function(){g.kM(this,this.G.dA()&&!this.G.isFullscreen()&&3!==this.G.getPresentingPlayerType());if(this.sb){var a=this.G.isWidescreen();if(this.isWidescreen!==a){var b=a?{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{F:"path",Qb:!0,X:{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.updateValue("icon",b):cLa(this.transition,this.element,b);this.isWidescreen=a;b=gQ(this.G,"Default view","t");var c=gQ(this.G,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});XQ(this.tooltip)}}this.G.Va(this.element,this.sb)};g.v(g.nT,g.V);g.nT.prototype.onClick=function(){if(null!=g.LP(this.G.vb())&&(this.G.toggleSubtitles(),this.G.tb(this.element),!this.isEnabled())){var a=!1,b=g.Nv(g.Mv.getInstance(),65);g.pH(this.G.V())&&null!=b&&(a=!b);a&&this.G.V().N("web_player_nitrate_promo_tooltip")&&this.G.ma("showpromotooltip",this.element)}};
g.nT.prototype.j=function(a){var b,c;null==(b=g.sO(this.G))||null==(c=b.Jl())||c.Kc(a)};
g.nT.prototype.isEnabled=function(){return!!this.G.getOption("captions","track").displayName};
g.nT.prototype.La=function(){var a=null!=g.LP(this.G.vb()),b=300;this.G.V().J&&(b=480);if(this.G.V().I){this.updateValue("title",gQ(this.G,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)null==(c=this.Da("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",gQ(this.G,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;null==(d=this.Da("ytp-subtitles-button-icon"))||
d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}XQ(this.tooltip);c=c&&this.G.fb().getPlayerSize().width>=b;g.kM(this,c);this.G.Va(this.element,c);a&&this.updateValue("pressed",this.isEnabled())};g.v(g.pT,g.V);g.k=g.pT.prototype;
g.k.jc=function(){var a=this.api.fb().getPlayerSize().width,b=this.J;this.api.V().J&&(b=400);b=a>=b&&(!rT(this)||!g.U(this.api.Db(),64));g.kM(this,b);g.to(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);qT(this)&&(c-=this.xb.startTimeMs/1E3);c=g.mN(c);this.B!==c&&(this.updateValue("currenttime",c),this.B=
c);b=qT(this)?g.mN((this.xb.endTimeMs-this.xb.startTimeMs)/1E3):g.mN(this.api.V().N("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.updateValue("duration",b),this.C=b)}a=a.isAtLiveHead;!rT(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.jc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Wd(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.AQ(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.xb!==a;this.xb=a;b&&oT(this)};
g.k.onLoopRangeChange=function(a){var b=this.xb!==a;this.xb=a;b&&(this.jc(),oT(this))};
g.k.d3=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().N("enable_topsoil_wta_for_halftime")||this.api.V().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.jc();oT(this)};
g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.Vb;this.u=BJ(a);this.isPremiere=a.isPremiere;g.to(this.element,"ytp-live",rT(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.ra=function(){this.j&&this.j();g.V.prototype.ra.call(this)};g.v(uT,g.V);g.k=uT.prototype;g.k.rp=function(){var a=this.j.If();this.C!==a&&(this.C=a,tT(this,this.api.getVolume(),this.api.isMuted()))};
g.k.fO=function(a){g.kM(this,350<=a.width)};
g.k.oX=function(a){if(!g.Wx(a)){var b=g.Xx(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.Ag(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Kx(a))}};
g.k.mX=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.Ag(b/10,-10,10));g.Kx(a)};
g.k.B2=function(){sT(this,this.u,!0,this.B,this.j.Dk());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.nX=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Ql(this.T).x;this.api.setVolume(100*g.Ag((a-c/2)/(b-c),0,1))};
g.k.A2=function(){sT(this,this.u,!1,this.B,this.j.Dk());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Z))};
g.k.onVolumeChange=function(a){tT(this,a.volume,a.muted)};
g.k.lP=function(){sT(this,this.u,this.isDragging,this.B,this.j.Dk())};
g.k.ra=function(){g.V.prototype.ra.call(this);g.ro(this.J,"ytp-volume-slider-active")};g.v(g.vT,g.V);
g.vT.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.kM(this,this.visible);this.api.Va(this.element,this.visible&&this.ya);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a));b.j&&(this.j&&(this.zc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.po(this.element,"no-link"))};
g.vT.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.nN(a),!1,!0,!0);if(g.QG(b)||g.$G(b)){var d={};b.Aa&&g.QG(b)&&g.dO(d,b.loaderUrl);g.QG(b)&&g.oO(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.ti(c,g.cO(d,"emb_logo"))}g.dQ(c,this.api,a);this.api.tb(this.element)};
g.vT.prototype.Bb=function(){var a={F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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.$G(this.api.V())){var b=this.Da("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{F:"svg",X:{fill:"none",height:"24",width:"24"},W:[{F:"circle",X:{cx:"12",cy:"12",fill:"red",r:"12"}},{F:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{F:"svg",X:{viewBox:"0 0 80 24"},W:[{F:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{F:"ellipse",X:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{F:"path",X:{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.to(b,"ytp-youtube-music-logo-icon-only",c)}else this.u.Ce()&&(a={F:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{F:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
fill:"#fff"}}]});a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a)};
g.vT.prototype.Wb=function(a){g.V.prototype.Wb.call(this,a);this.api.Va(this.element,this.visible&&a)};g.v(wT,g.WE);g.k=wT.prototype;g.k.pe=function(){this.Cc.jc();this.Gi.jc()};
g.k.Vl=function(){this.EG();if(this.Ee.u){this.pe();var a;null==(a=this.Xa)||a.show()}else{g.ET(this.Cc.tooltip);var b;null==(b=this.Xa)||b.hide()}};
g.k.It=function(){this.pe();this.Ne.start()};
g.k.EG=function(){var a=!this.G.V().isMobile&&300>g.PLa(this.Cc)&&this.G.Db().Rc()&&!!window.requestAnimationFrame,b=!a;this.Ee.u||(a=b=!1);b?this.T||(this.T=this.S(this.G,"progresssync",this.pe)):this.T&&(this.zc(this.T),this.T=null);a?this.Ne.isActive()||this.Ne.start():this.Ne.stop()};
g.k.Bb=function(){var a=this.u.If(),b=this.G.fb().getPlayerSize(),c=xT(this),d=Math.max(b.width-2*c,100);if(this.Sa!==b.width||this.Oa!==a){this.Sa=b.width;this.Oa=a;var e=dMa(this);this.B.element.style.width=e+"px";this.B.element.style.left=c+"px";g.CS(this.Cc,c,e,a);this.u.xc().FG=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-yT(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.hC=e;c.Jx();this.EG();!this.G.V().N("html5_player_bottom_linear_gradient")&&this.G.V().N("html5_player_dynamic_bottom_gradient")&&
g.GR(this.Wa,b.height)};
g.k.onVideoDataChange=function(){var a=this.G.getVideoData();this.ya.style.background=a.D?a.ib:"";g.kM(this.Z,a.eL)};g.v(zT,AR);g.k=zT.prototype;g.k.fK=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Qa("innertubeCommand",this.onClickCommand),this.nE())};
g.k.nE=function(){this.enabled=!1;this.J.hide()};
g.k.FL=function(a){this.text=a;TKa(this);this.onClickCommand=this.suggestedActions[a]};
g.k.onVideoDataChange=function(a,b){if(0!==b.suggestedActions.length){"dataloaded"===a&&eMa(this);a=[];b=g.t(b.suggestedActions);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=g.N(c.trigger,bDa);if(d){var e=c.title;e=e?g.jB(e):"View Chapters";var f=d.timeRangeStartMillis;d=d.timeRangeEndMillis;null!=f&&null!=d&&c.tapCommand&&(a.push(new g.cB(f,d,{priority:9,namespace:"suggested_action_button_visible",id:e})),this.suggestedActions[e]=c.tapCommand)}}this.G.xe(a)}};
g.k.iB=function(){return this.enabled};
g.k.Lf=function(){this.enabled?this.Z.start():yR(this);this.Yk()};
g.k.ra=function(){eMa(this);AR.prototype.ra.call(this)};var A3={},AT=(A3.CHANNEL_NAME="ytp-title-channel-name",A3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",A3.LINK="ytp-title-link",A3.SESSIONLINK="yt-uix-sessionlink",A3.SUBTEXT="ytp-title-subtext",A3.TEXT="ytp-title-text",A3.TITLE="ytp-title",A3);g.v(BT,g.V);
BT.prototype.onClick=function(a){this.api.tb(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.nN(a),!1,!0);if(g.QG(b)){var d={};b.Aa&&g.dO(d,b.loaderUrl);g.oO(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.ti(c,g.cO(d,"emb_title"))}g.dQ(c,this.api,a)};
BT.prototype.La=function(){var a=this.api.getVideoData(),b=this.api.V();this.updateValue("title",a.title);var c={F:"a",K:AT.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},qa:"{{channelName}}"};this.api.V().j&&(c={F:"span",K:AT.CHANNEL_NAME,qa:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);fMa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.ke&&c.profilePicture?(this.updateValue("channelLink",
c.ke),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):fMa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Mb;g.to(this.link,AT.FULLERSCREEN_LINK,c);b.Z||!a.videoId||c||a.D&&b.pfpChazalUi||b.j?this.j&&(this.updateValue("url",null),this.zc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.S(this.link,"click",this.onClick)));b.j&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.QG(b)?
a.expandedTitle:a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.v(g.CT,g.V);g.k=g.CT.prototype;g.k.dS=function(a,b){a<=this.C&&this.C<=b&&(a=this.C,this.C=NaN,hMa(this,a))};
g.k.s_=function(){DCa(this.u,this.C,160*this.scale)};
g.k.zm=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.Z);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.Z);a.addEventListener("focus",this.D);kMa(this);break;case 3:kMa(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.dS,this),this.u=null),this.api.removeEventListener("videoready",this.ea),this.oa.stop()}this.type=null;this.J&&this.I.hide()};
g.k.vk=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.hh(arguments[a],this.j)&&this.zm()};
g.k.ra=function(){null!=this.type&&this.zm();this.u&&this.u.dispose();g.V.prototype.ra.call(this)};g.v(g.FT,g.V);g.k=g.FT.prototype;g.k.Ey=function(){var a=this.G.getPlayerSize(),b=this.G.V(),c=this.G.getVideoData(),d=g.QG(b)&&g.SO(this.G)&&g.U(this.G.Db(),128);this.visible=b.Cm&&240<=a.width&&!c.isAd()&&c.Jj&&!d&&!(c.D&&b.pfpChazalUi)&&!this.u;g.kM(this,this.visible);this.icon&&oMa(this,this.icon);this.G.Va(this.element,this.visible&&this.ya)};
g.k.Wf=function(){return this.G.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.G.tb(this.element);var b=this.G.V(),c=this.Wf();b.authUser?lMa(this):this.G.hF()?this.G.requestStorageAccess(function(){g.gw("embedsItpWatchLaterResult",{accepted:!0});Dz();mMa(a,c)},function(){g.gw("embedsItpWatchLaterResult",{accepted:!1});
nMa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):mMa(this,c)};
g.k.pX=function(){this.isRequestPending=this.j=!1;this.La(2)};
g.k.La=function(a,b){var c=this.G.V();oMa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.LK("Added as $USER_NAME",a):g.LK("Watch later as $USER_NAME",a),image:wH(c)})):this.update({title:"Watch later",image:null});XQ(this.tooltip)};
g.k.Wb=function(a){g.V.prototype.Wb.call(this,a);this.G.Va(this.element,this.visible&&a)};
g.k.Fp=aa(34);g.v(g.GT,g.rQ);g.k=g.GT.prototype;g.k.xc=function(){return this.tooltip};
g.k.Jo=function(a,b){b?this.Ym=a:this.Ym=null;this.Zj()};
g.k.hw=function(a,b){if(b)this.jr.push(a);else for(b=this.jr.length;0<=b;b--)if(this.jr[b]===a){this.jr.splice(b,1);break}YP(this.Ee,64,0<this.jr.length)};
g.k.Kr=function(){this.api.Li()&&this.api.Um();return!!this.Ym||pMa(this)||g.rQ.prototype.Kr.call(this)};
g.k.sx=aa(35);g.k.Fp=aa(33);g.k.Zj=function(){var a=!this.Kr(),b=a&&this.api.Li()&&!g.U(this.api.Db(),2)&&!(this.api.getVideoData().D&&this.api.V().pfpChazalUi)&&!this.api.V().j,c=this.Sq&&g.SO(this.api)&&g.U(this.api.Db(),128);a||c?(this.jM.show(),this.kM.show()):(this.jM.hide(),this.kM.hide(),this.tooltip.vk(this.Gg.element));b?this.Yh.Kc():this.Yh.wb();this.Pf&&cMa(this.Pf,this.OK||!a);g.rQ.prototype.Zj.call(this)};
g.k.St=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Tl(a),h=d||this.Pf&&g.hh(this.Pf.B.element,b),l=d=null;null!=c&&h||(d=g.Tl(b),l=g.Rl(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Pf,d=xT(b),l=dMa(b),h=this.api.fb().getPlayerSize().height,c=g.Ag(c,d,d+l-f.width),f=h-yT(b)-f.height):g.hh(this.Gg.element,b)?(b=this.api.fb().getPlayerSize().width,c=g.Ag(c,12,b-f.width-12),f=this.If()?this.IH:this.HH,"gvn"===this.api.V().playerStyle&&(f+=
20),this.Sq&&(f-=this.If()?26:18)):(b=this.api.fb().getPlayerSize(),c=g.Ag(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.Vl=function(a){a&&(this.tooltip.vk(this.Gg.element),this.Pf&&this.tooltip.vk(this.Pf.B.element));this.JD&&(g.to(this.contextMenu.element,"ytp-autohide",a),g.to(this.contextMenu.element,"ytp-autohide-active",!0));g.rQ.prototype.Vl.call(this,a)};
g.k.eK=function(){g.rQ.prototype.eK.call(this);this.JD&&(g.to(this.contextMenu.element,"ytp-autohide-active",!1),this.JD&&(this.contextMenu.hide(),this.Ph&&this.Ph.hide()))};
g.k.Ce=function(){return this.Ej()&&this.api.N("embeds_enable_shorts_branded_ui")};
g.k.zj=function(a,b){var c=this.api.fb().getPlayerSize();c=new g.Fl(0,0,c.width,c.height);if(a||this.Ee.u&&!this.Kr()){if(this.api.V().ek||b)a=this.If()?this.IH:this.HH,c.top+=a,c.height-=a;this.Pf&&(c.height-=yT(this.Pf))}return c};
g.k.rp=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.VC.element,b),b.parentElement.insertBefore(this.UC.element,b.nextSibling))):g.Bu(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.VC.detach(),this.UC.detach());this.Bb();this.Xn()};
g.k.If=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.J||!1};
g.k.showControls=function(a){this.FC=!a;this.Zj()};
g.k.Bb=function(){var a=this.If();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.to(this.contextMenu.element,"ytp-big-mode",a);this.Zj();if(this.Cg()&&this.Ph)this.dl&&mR(this.Ph,this.dl),this.shareButton&&mR(this.Ph,this.shareButton),this.Zh&&mR(this.Ph,this.Zh);else{if(this.Ph){for(var b=this.Ph,c=g.t(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}this.dl&&!g.hh(this.Hi.element,this.dl.element)&&this.dl.Ca(this.Hi.element);this.shareButton&&!g.hh(this.Hi.element,
this.shareButton.element)&&this.shareButton.Ca(this.Hi.element);this.Zh&&!g.hh(this.Hi.element,this.Zh.element)&&this.Zh.Ca(this.Hi.element)}this.Xn();(b=this.Ce())&&a?(a=(this.api.fb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Il(this.Gg.element,"padding-left",a+"px"),g.Il(this.Gg.element,"padding-right",a+"px")):b&&(g.Il(this.Gg.element,"padding-left",""),g.Il(this.Gg.element,"padding-right",""));g.rQ.prototype.Bb.call(this)};
g.k.FI=function(){if(pMa(this)&&!g.SO(this.api))return!1;var a=this.api.getVideoData();return!g.QG(this.api.V())||2===this.api.getPresentingPlayerType()||!this.hh||((a=this.hh||a.hh)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.N(a.videoDetails,FDa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.rQ.prototype.FI.call(this):!1};
g.k.Xn=function(){g.rQ.prototype.Xn.call(this);this.api.Va(this.title.element,!!this.Gn);this.ex&&this.ex.Wb(!!this.Gn);this.channelAvatar.Wb(!!this.Gn);this.overflowButton&&this.overflowButton.Wb(this.Cg()&&!!this.Gn);this.shareButton&&this.shareButton.Wb(!this.Cg()&&!!this.Gn);this.dl&&this.dl.Wb(!this.Cg()&&!!this.Gn);this.Zh&&this.Zh.Wb(!this.Cg()&&!!this.Gn);if(!this.Gn){this.tooltip.vk(this.Gg.element);for(var a=0;a<this.tB.length;a++){var b=this.tB[a];b.oi()&&b.wb()}}};
g.k.Zb=function(a){this.Pf&&cMa(this.Pf,this.Kr());this.Zj();g.rQ.prototype.Zb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.gp?this.gp.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.gp?this.gp.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.zk=function(){if(this.contextMenu.sb)return this.contextMenu.wb(),!0;if(this.jr.length)return this.jr[this.jr.length-1].wb(),!0;if(this.Ym)return this.Ym.wb(),!0;this.Pf&&this.tooltip.vk(this.Pf.B.element);return g.rQ.prototype.zk.call(this)};
g.k.dB=function(a,b){this.RJ=b;this.hw(a,b);this.CU()};
g.k.CU=function(){var a=this.RJ||this.contextMenu.oi();this.vH!==a&&(this.vH=a,this.api.Qa("onAutonavPauseRequest",this.vH))};
g.k.nZ=function(){HT(this,this.api.getRootNode(),!0).focus()};
g.k.oZ=function(){HT(this,this.api.getRootNode(),!1).focus()};
g.k.Jl=function(){return this.Pf&&this.Pf.settingsMenu};
g.k.Jz=function(){return this.Pf&&this.Pf.C};
g.k.Wn=function(){this.Ee.Wn()};
g.k.CD=function(){this.Ic.hide()};
g.k.ou=function(a){this.Ic.ou(!g.jL(a))};
g.k.XA=function(a,b,c,d){this.fz.XA(a,b,c,d)};
g.k.kL=function(a,b){$Q(this.fz,a,b)};
g.k.H0=function(){qMa(this,!0)};
g.k.g1=function(a){qMa(this,!1,a)};
g.k.fD=function(){return this.contextMenu};
g.k.lC=function(a){var b;null!=(b=this.Pf)&&a.Ca(b.j.element)};
g.k.qq=function(){var a,b=null==(a=this.Pf)?void 0:a.Cc;if(b){var c;(null==(c=b.u)?0:c.isEnabled)&&b.qq()}};g.v(g.IT,g.CP);g.IT.prototype.Sj=function(){return!1};
g.IT.prototype.create=function(){var a=this.player.V();g.ZG(a)&&a.isMobile?this.chrome=new g.rQ(this.player):this.chrome=new g.GT(this.player);g.L(this,this.chrome);this.chrome.init();this.player.Of("ux")};
g.IT.prototype.mw=function(){return this.chrome};g.v(KT,g.K);KT.prototype.B=function(a,b){if(b){b=b instanceof g.yC?b:LT(this,b);var c;(null==(c=this.j.get(a))?void 0:AC(c.location))!==AC(b)&&this.j.set(a,new PT(b,a))}else this.j.delete(a)};
KT.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.A(function(q){switch(q.j){case 1:b=a.j.get(0);g.qa(q,2);var r;if(r=b&&!a.u)r=AC(b.location),r=a.u===NT(r);if(r){q.Ja(4);break}return g.x(q,OT(a,a.u?2:0),5);case 5:if(c=q.u)a.B(0,c),CC(c)&&a.B(1,DC(c));case 4:g.ra(q,3);break;case 2:d=g.sa(q);g.aA(d);if(!a.u){q.Ja(3);break}a.u=!1;return g.x(q,a.load(),7);case 7:return q.return();case 3:if(!a.Y.experiments.gb("html5_onesie_probe_ec_hosts")){q.Ja(0);break}g.qa(q,9);e=a;f=e.B;h=3;return g.x(q,
OT(a,1),11);case 11:return f.call(e,h,q.u),l=a,m=l.B,n=4,g.x(q,OT(a,2),12);case 12:m.call(l,n,q.u);g.ra(q,0);break;case 9:p=g.sa(q),g.aA(p),g.pa(q)}})};
KT.prototype.J=function(){var a=this,b,c,d,e,f,h,l;return g.A(function(m){if(1==m.j){g.io(a.T);b=g.YF(a.Y.experiments,"html5_onesie_prewarm_max_lact_ms");if(dy()>=b)return m.return();if(!a.Y.N("html5_onesie_host_racing_during_prewarming"))return(c=a.j.get(0))&&vMa(a,c),m.Ja(0);d=g.YF(a.Y.experiments,"html5_onesie_prewarm_cooldown_ms");e=a.j.values();f=g.t(e);h=f.next()}if(4!=m.j){if(h.done)return m.Ja(0);l=h.value;if(a.isDisposed())return m.return();vMa(a,l);return d?g.x(m,sMa(d),4):m.Ja(4)}h=f.next();
return m.Ja(3)})};
PT.prototype.start=function(){this.startTimestamp=(0,g.Q)()};
PT.prototype.end=function(){this.endTimestamp=(0,g.Q)()};var ST=[],QUa=!1;g.WX=Rf(function(){var a="";try{var b=g.bh("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.TT,YK);g.k=g.TT.prototype;g.k.isView=function(){return!0};
g.k.oL=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.jh(),c=gF(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Ws=function(){return iF(this.mediaElement.Ws(),this.start,this.end)};
g.k.jh=function(){return iF(this.mediaElement.jh(),this.start,this.end)};
g.k.Kz=function(){return iF(this.mediaElement.Kz(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.k.eC=function(a){this.mediaElement.eC(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.k.play=function(){if(this.oL()){this.mediaElement.getCurrentTime();try{this.mediaElement.eC(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.Yb=function(){var a=YK.prototype.Yb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
g.k.bC=function(){return this.mediaElement.bC()};
g.k.Iv=function(a){this.mediaElement.Iv(a)};
g.k.Fq=function(){return this.mediaElement.Fq()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.dI=function(){this.mediaElement.dI()};
g.k.aI=function(){this.mediaElement.aI()};
g.k.rs=function(){return this.mediaElement.rs()};
g.k.Ef=function(){return this.mediaElement.Ef()};
g.k.Vf=function(){return this.mediaElement.Vf()};
g.k.fC=function(a){this.mediaElement.fC(a)};
g.k.WE=function(){this.mediaElement.WE()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Vs=function(){return this.mediaElement.Vs()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.Co=function(){return this.mediaElement.Co()};
g.k.Tg=function(){return this.mediaElement.Tg()};
g.k.kh=function(){return this.mediaElement.kh()};
g.k.lD=function(){return this.mediaElement.lD()};
g.k.qx=function(a){this.mediaElement.qx(a)};
g.k.cC=function(){return this.mediaElement.cC()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.qj=function(){return this.mediaElement.qj()};
g.k.mD=function(){return this.mediaElement.mD()};
g.k.cf=function(){return this.mediaElement.cf()};
g.k.rf=function(){return this.mediaElement.rf()};
g.k.dC=function(){return this.mediaElement.dC()};
g.k.Rg=function(){return this.mediaElement.Rg()};
g.k.Lr=function(){return this.mediaElement.Lr()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Hq=function(){return this.mediaElement.Hq()};
g.k.getSize=function(){return this.mediaElement.getSize()};
g.k.setSize=function(a){this.mediaElement.setSize(a)};
g.k.getVolume=function(){return this.mediaElement.getVolume()};
g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
g.k.Ly=aa(24);g.k.nB=aa(26);g.k.oB=aa(28);g.k.Qv=aa(30);g.k.lz=function(){return this.mediaElement.lz()};
g.k.Vp=function(a){this.mediaElement.Vp(a)};
g.k.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.k.tJ=function(){return this.mediaElement.tJ()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.hI=function(a){this.mediaElement.hI(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.v(UT,g.K);g.k=UT.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.As=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.t(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.Zd()){f=BMa(this.j,this.u,this.mm);h=CMa(this);c=h.RY;e=h.HR;d=h.yP;h=h.GR;if(!this.I){var l=1E3*this.u.wj(),m=this.j.wj();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.VA(l,m,a);
this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.ag(b,f)):2===this.status.status?JMa(this):(a=this.j.Fq())&&qF(a)&&(!pF(a)&&g.jv()?this.ag("mse_closed"):b.j&&pC(b.j)&&a.u&&!a.u.iD()?this.ag("encr_upgrade"):(b=this.j.Zd(),b.kh()?this.ag("elem_ended"):0>e?this.ag("next_player_future"):(this.D=d,this.B=Dza(a,c,d,!0),this.C=Dza(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.va("gaplessPrep",{cpn:a}),XT(this.j,this.B),this.j.setMediaElement(DMa(b,c,d,!this.j.getVideoData().isAd())),
WT(this,2),JMa(this))))}else this.ag("no-elem")};
g.k.ev=function(a){var b=a===IMa(this).CT,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;fF(a.Bg(),d-.01)&&(WT(this,4),c.isActive=!1,c.BB=c.BB||c.isActive,this.u.va("sbh",{}),b.isActive=!0,b.BB=b.BB||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&WT(this,5)}};
g.k.iS=function(){4<=this.status.status&&6>this.status.status&&this.ag("player-reload-after-handoff")};
g.k.ag=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Jd(new AH("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.mm,msg:a})));a=this.j;a.videoData.kb=!1;c&&EX(a);a.Ia&&fX(a.Ia)}this.Vn.reject(void 0);this.dispose()}};
g.k.ra=function(){HMa(this);this.j.unsubscribe("newelementrequired",this.iS,this);if(this.B){var a=this.B.u;this.B.j.xd.unsubscribe("updateend",this.ev,this);a.xd.unsubscribe("updateend",this.ev,this)}g.K.prototype.ra.call(this)};
g.k.Vc=function(a){g.xK(a,128)&&this.ag("player-error-event")};g.v($T,g.K);$T.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");aU(this)};
$T.prototype.Lw=function(){return!this.j};
$T.prototype.ra=function(){aU(this);g.K.prototype.ra.call(this)};g.v(fU,g.Mz);g.k=fU.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:NMa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Sk=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Lf())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Lf())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Lf())};
g.k.tx=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Lf())};
g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Lf())};
g.k.Rg=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.pw=function(){return this.fullscreen};
g.k.Jf=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return NMa()};
g.k.Kw=function(){return this.pictureInPicture};
g.k.Gw=function(){return this.u};
g.k.Lf=function(){this.ma("visibilitychange");var a=this.getVisibilityState(this.Rg(),this.isFullscreen(),this.Jf(),this.isInline(),this.Kw(),this.Gw());a!==this.D&&this.ma("visibilitystatechange");this.D=a};
g.k.ra=function(){QMa(this.C);g.Mz.prototype.ra.call(this)};g.v(g.jU,g.K);g.k=g.jU.prototype;
g.k.onCueRangeEnter=function(a){this.Ka.push(a);var b=a.getId(),c=""===b;this.yb.add(a.u);c||this.xa.va("sdai",{enterAdCueRange:1});if(this.Xa&&!this.j){this.Xa=!1;if(!c){var d=this.u.get(b);d&&(c=this.xa.getCurrentTime(),pU(this,{Yd:a,isAd:!0,Xo:!0,Hg:c,adCpn:b},{isAd:!1,Xo:!1,Hg:c}),this.api.ma("serverstitchedvideochange",d.Gc,d.Up),this.xa.va("sdai",mU("midab",d)),this.xk=1)}this.D=!1}else if(this.j){if(this.j.Xo)this.xa.va("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Hg,
cpn:b,currentTime:this.xa.getCurrentTime()}),d=this.xa.getCurrentTime(),a={Yd:a,isAd:!c,Xo:!0,Hg:d,adCpn:b},b={Yd:this.j.Yd,isAd:this.j.isAd,Xo:!1,Hg:d,adCpn:this.j.adCpn},this.j.Yd&&this.yb.delete(this.j.Yd.u),pU(this,a,b);else{if(this.j.Yd===a){this.xa.va("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Hg,cpn:b,currentTime:this.xa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.xa.va("sdai",{dchtsc:b});
this.j=void 0;return}a={Yd:a,isAd:!c,Xo:!0,Hg:this.xa.getCurrentTime(),adCpn:b};pU(this,a,this.j)}this.j=void 0;this.D=!1}else this.j={Yd:a,isAd:!c,Xo:!0,Hg:this.xa.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.yb.has(a.u)){this.yb.delete(a.u);this.Ka=this.Ka.filter(function(d){return d!==a});
this.Xa&&(this.D=this.Xa=!1,this.xa.va("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Xo){if(this.j.Yd===a){this.xa.va("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.Hg,cpn:b,currentTime:this.xa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.xa.va("sdai",{dchtsc:b});this.j=void 0;return}c={Yd:a,isAd:!c,Xo:!1,Hg:this.xa.getCurrentTime(),adCpn:b};pU(this,this.j,c)}else this.xa.va("sdai",
{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Hg,upcomingCpn:b,contentCpn:this.xa.getVideoData().clientPlaybackNonce,currentTime:this.xa.getCurrentTime()});this.j=void 0;this.D=!1}else this.j={Yd:a,isAd:!c,Xo:!1,Hg:this.xa.getCurrentTime(),adCpn:b};this.Y.N("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.xa.getCurrentTime()<this.xa.Hl()&&gU(this,Infinity))}else this.xa.va("sdai",{ignore_single_exit:1})};
g.k.isAdPlaying=function(a){return this.kq?!1:iU(this)?!!this.ea:!!rU(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.D=!0;if(void 0===b?0:b)gU(this,a);else{b=this.api.Lc();var d=b===this.qb?this.Vb:null;sU(this,!1);this.wc=a;null!=c&&this.pc.start(c);b&&(this.Vb=d||b.getPlayerState(),vUa(b),this.qb=b)}};
g.k.ra=function(){sU(this,!1);uU(this);aNa(this);g.K.prototype.ra.call(this)};
g.k.LL=function(a){this.rd=a;this.xa.va("sdai",{swebm:a})};
g.k.Aj=function(a,b,c){if(c&&b){var d=this.Ma.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.yC(c);this.Oa&&this.xa.va("sdai",{hdlredir:1,itag:b,seg:a,hostport:AC(c)});d.locations.set(e,c)}}};
g.k.Ys=function(a,b,c,d,e){var f=3===d;a=cNa(this,a,b,d,c);if(!a)return yU(this,b,f),null;f=a.xl;var h;b=(null==(h=wU(this,b-1,d,e))?void 0:h.Qs)||"";h=AG(a.ssdaiAdsConfig||"")||void 0;d=this.xa.getVideoData();var l;e=(null==(l=d.B)?void 0:l.containerType)||0;l=d.qO[e];l={T3:{gH:f?fNa(this,f):[],sY:h,Qs:b,e4:a.kB,V4:Pg(l.split(";")[0]),W4:l.split(";")[1]||""}};return lI(l,SMa)};
g.k.jn=function(a,b,c,d,e){var f=Number(c.split(";")[0]),h=3===d;a=cNa(this,a,b,d,c);this.Oa&&this.xa.va("sdai",{gdu:1,seg:b,itag:f,pb:""+!!a});if(!a)return yU(this,b,h),null;a.locations||(a.locations=new Map);if(!a.locations.has(f)){var l,m,n=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!n)return this.xa.va("sdai",{gdu:"noadpfmts",seg:b,itag:f}),yU(this,b,h),null;l=n.find(function(z){return z.itag===f});
if(!l||!l.url){var p=a.videoData.videoId;a=[];d=g.t(n);for(var q=d.next();!q.done;q=d.next())a.push(q.value.itag);this.xa.va("sdai",{gdu:"nofmt",seg:b,vid:p,itag:f,fullitag:c,itags:a.join(",")});yU(this,b,h);return null}a.locations.set(f,new g.yC(l.url,!0))}n=a.locations.get(f);if(!n)return this.xa.va("sdai",{gdu:"nourl",seg:b,itag:f}),yU(this,b,h),null;n=new ED(n);this.rd&&(n.get("dvc")?this.xa.va("sdai",{dvc:n.get("dvc")||""}):n.set("dvc","webm"));var r;(e=null==(r=wU(this,b-1,d,e))?void 0:r.Qs)&&
n.set("daistate",e);a.kB&&b>=a.kB&&n.set("skipsq",""+a.kB);(e=this.xa.getVideoData().clientPlaybackNonce)&&n.set("cpn",e);r=[];a.xl&&(r=fNa(this,a.xl),0<r.length&&n.set("acpns",r.join(",")));h||this.Ma.set(b,a);h=null;h=n.get("aids");var w;if(((null==(q=h)?void 0:null==(w=q.split(","))?void 0:w.length)||0)!==r.length)if(a.xl){var y;this.xa.va("sdai",{acpns_aids_nm:1,ids:hNa(this,a.xl).join("_"),acpns:r.join("_"),aids:null==(y=h)?void 0:y.replace(/,/g,"_"),cpn:e,trackType:d})}else this.xa.va("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:e});d=n.Ge();2048<(null==d?void 0:d.length)&&this.xa.va("sdai",{urltoolong:1,sq:b,itag:f,len:d.length});this.Oa&&(d&&(w=a.cpn,q=a.xl,jNa(this,w,q),q&&!this.Fd.has(q)&&(w=gNa(this,w,q),y=iNa(this,q),this.xa.va("sdai",{iofa:w}),this.xa.va("sdai",{noawnzd:y-w}),this.xa.va("sdai",{acpns:r.join("."),aids:null==(p=h)?void 0:p.replace(/,/g,".")}),this.Fd.add(q))),this.xa.va("sdai",{gdu:"v",seg:b,itag:c,ast:a.Jc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.Ty=function(a,b){return(a=vU(this,a,b))?(a.Jc+a.durationMs)/1E3:0};
g.k.RL=function(a,b){if(a=vU(this,a,b)){var c=a.xl;if(c){this.xa.va("sdai",{skipadonsq:b,abid:c,acpn:a.cpn,avid:a.videoData.videoId});c=this.Z.get(c);if(!c)return;c=g.t(c);for(var d=c.next();!d.done;d=c.next())d.value.kB=b}this.I=a.cpn;dNa(this)}};
g.k.rL=function(){for(var a=g.t(this.T),b=a.next();!b.done;b=a.next())b.value.kB=NaN;dNa(this);this.I=""};
g.k.vB=aa(37);
g.k.HK=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Wa.set(a,{Qs:m,Iy:l}):this.Aa.set(a,{Qs:m,Iy:l}));if(h){if(d.length&&e.length)for(this.I&&this.I===d[0]&&this.xa.va("sdai",{skipfail:1,sq:a,acpn:this.I}),a=b+this.Qo(),h=g.t(d.entries()),l=h.next();!l.done;l=h.next()){m=g.t(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.Up=null!=n.Up?Math.min(n.Up,l):l}if(!iU(this))if(d.length&&e.length)for(b=1E3*(b+this.Qo()),d=g.t(d.entries()),c=d.next();!c.done;c=d.next())if(c=
g.t(c.value),f=c.next().value,c=c.next().value,f=1E3*e[f],c===this.xa.getVideoData().clientPlaybackNonce)xU(this,b,b+f,!1),b+=f;else if(this.zd.has(c)||(this.xa.va("sdai",{adCpnFromEmsg:1}),this.zd.add(c)),(a=this.C.get(c))&&a.start<=b&&a.end>=b+f)b=a.end;else{if(h=!1,a?b<a.start?a.start=b:a.end<b+f&&(a.end=b+f):(a=ZMa(b,b+f,c),this.C.set(c,a),this.xa.va("sdai",{newAdCR:1,cpn:c,startTime:a.start,endTime:a.end}),h=!0),b=a.end,xU(this,a.start,a.end,!0),h)for(this.xa.addCueRange(a),c=this.xa.nz("serverstitchedcuerange",
36E5),c=g.t(c),f=c.next();!f.done;f=c.next())this.C.delete(f.value.getId())}else 5!==c&&4!==c||xU(this,1E3*(b+this.Qo()),1E3*(b+this.Qo())+5E3,!1)}};
g.k.xz=aa(39);g.k.Qo=function(){return this.xa.Qo()};
g.k.jA=function(a){this.xa.va("timelineerror",{e:a})};
g.k.Rz=function(a){this.ya&&this.oa&&this.Sa.push(this.oa);!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.oa&&this.Dc.push(this.oa);this.oa=null;this.xa.Rz(a)};
g.k.vD=function(a){if(this.kq||a.identifier&&this.Od.has(a.identifier))this.Oa&&this.xa.va("sdai",{startnoad:a.identifier}),lU(this);else if(Xl(this.Sa,function(c){return c.identifier===a.identifier}))this.xa.va("sdai",{timedoutcp:1}),this.J.start(0);
else if(!this.Y.N("web_player_skip_fetched_cuepoint_killswitch")&&Xl(this.Dc,function(c){return c.identifier===a.identifier}))this.xa.va("sdai",{fetchedcp:1}),lU(this);
else if(this.J.isActive()){var b;this.xa.va("sdai",{racingcp:(null==(b=this.oa)?void 0:b.identifier)+"_"+a.identifier})}else this.Yc=(new Date).getTime()/1E3,this.Oa&&this.xa.va("sdai",{adf:1}),this.ya=!1,this.J.start(),this.oa=a,this.Aa.clear(),this.Wa.clear(),this.Ba.clear(),this.Y.N("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.Ma.clear(),this.Mb=[]};
g.k.Kq=function(a,b){a=vU(this,a,b);if(!this.Y.experiments.gb("disable_ssdai_on_errors")||!a||this.kq)return!1;this.kq=!0;0<this.xk&&(this.xk=0,this.ea=null,this.api.ma("serverstitchedvideochange"));this.xa.JC({reason:"disablessdai",sq:b});return!0};
g.k.Zs=function(){this.xa.va("sdai",{rstdaist:1});this.ib="";this.Aa.clear();this.Wa.clear();this.Ba.clear()};
g.k.Br=function(a){this.Od.add(a);var b;(null==(b=this.oa)?void 0:b.identifier)===a&&lU(this)};
g.k.GK=function(a,b,c,d){if(iU(this)){var e=this.xa.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?nU(this):this.u.get(a),h=b===e?nU(this):this.u.get(b);f&&h?(c=this.D?c:d,oU(this.xa,f,h,c,d,this.D,!!this.I),this.I="",b===e?(this.kb=1E3*c,this.xk=0,this.ea=null,this.xa.va("sdai",{adchg:this.xk}),this.api.ma("serverstitchedvideochange")):(this.kb=0,this.xk++,this.ea=h,this.xa.va("sdai",{adchg:this.xk,apid:this.ea.Gc,acpn:this.ea.cpn}),this.api.ma("serverstitchedvideochange",
h.Gc,h.Up))):this.xa.va("sdai",{unknowntrans:"1",old:a,"new":b});this.D=!1}}};
g.k.xr=function(a){var b=QP(this.api.vb());return b?b.xr(a):!1};
var XMa=0;g.v(zU,g.K);g.k=zU.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Lc()){var b=this.I.get(a);b?qNa(this,b.target,b.mm,a):this.Jd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.nq.Yd===a})){var c=b.nq,d=c.target;
c=c.mm;d?qNa(this,d,c,a):pNa(this,b.wd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.J;DU(this);if(a){if(!CU(this,a)){var b=this.api.Lc();this.Jd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Lc().addCueRange(a.nq.Yd)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)kNa(this,a);else{b=this.api.Lc();var d=b===this.C?this.D:null;FU(this,!1);this.Z=a;null!=c&&this.T.start(c);b&&(this.D=d||b.getPlayerState(),vUa(b),this.C=b)}};
g.k.Nh=function(a){g.xK(a,128)&&tNa(this)};
g.k.isManifestless=function(){return QI(this.j.getVideoData())};
g.k.ra=function(){FU(this,!1);HU(this);g.K.prototype.ra.call(this)};
g.k.Jd=function(a,b){this.j.Jd(new AH(a,b))};
var lNa=0;var vNa="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(KU,g.K);g.k=KU.prototype;g.k.get=function(a){IU(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
g.k.set=function(a,b,c){this.remove(a,!0);IU(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.Q)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&LU(this,c,!0);JU(this)};
g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(LU(this,c,b),g.bc(this.data,function(d){return d.key===a}),JU(this))};
g.k.Zf=function(){var a;if(a=void 0===a?!1:a)for(var b=g.t(this.data),c=b.next();!c.done;c=b.next())LU(this,c.value,a);this.data=[];JU(this)};
g.k.ra=function(){var a=this;g.K.prototype.ra.call(this);this.data.forEach(function(b){LU(a,b,!0)});
this.data=[]};g.MU.prototype.info=function(){};
var zNa=new Map;g.v(NU,g.K);NU.prototype.gD=function(a){if(a)return this.u.get(a)};
NU.prototype.ra=function(){this.j.Zf();this.u.Zf();g.K.prototype.ra.call(this)};g.v(OU,g.No);OU.prototype.ma=function(a){var b=g.ya.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.No.prototype.ma.call.apply(g.No.prototype.ma,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};PU.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
PU.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)};
PU.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(QU,g.K);QU.prototype.start=function(){this.u.start()};
QU.prototype.stop=function(){this.u.stop()};
QU.prototype.clear=function(){for(var a=g.t(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
QU.prototype.sample=function(){for(var a=g.t(this.B),b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new TU(E6a.has(b)));this.j.get(b).update(c())}this.u.start()};
var E6a=new Set(["networkactivity"]);TU.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
TU.prototype.clear=function(){this.buffer.clear();this.j=0};g.v(UU,g.K);UU.prototype.ra=function(){g.K.prototype.ra.call(this);this.j=null;this.u&&this.u.disconnect()};g.F6a=Rf(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var B3;B3={};g.VU=(B3.STOP_EVENT_PROPAGATION="html5-stop-propagation",B3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",B3.IV_DRAWER_OPEN="ytp-iv-drawer-open",B3.MAIN_VIDEO="html5-main-video",B3.VIDEO_CONTAINER="html5-video-container",B3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",B3.HOUSE_BRAND="house-brand",B3);g.v(WU,g.V);g.k=WU.prototype;g.k.Vp=function(){g.qo(this.element,g.ya.apply(0,arguments))};
g.k.Ci=function(){this.Ob&&(this.Ob.removeEventListener("focus",this.pK),g.fh(this.Ob),this.Ob=null)};
g.k.YH=function(){this.isDisposed();var a=this.app.V();a.ql||this.Vp("tag-pool-enabled");a.I&&this.Vp(g.VU.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Vp("ytp-gvn"),this.element.style.backgroundColor="transparent");a.pc&&(this.PH=g.iy("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)};
g.k.cB=function(a){this.BD=!a;XU(this)};
g.k.resize=function(){if(this.Ob){var a=this.Wi();if(!a.isEmpty()){var b=!g.Hg(a,this.gx.getSize()),c=HNa(this);b&&(this.gx.width=a.width,this.gx.height=a.height);a=this.app.V();(c||b||a.pc)&&this.app.Ua.ma("resize",this.getPlayerSize())}}};
g.k.Lq=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Ob){var b=this.app.V();pv&&(this.Ob.setAttribute("x-webkit-airplay","allow"),a.title?this.Ob.setAttribute("title",a.title):this.Ob.removeAttribute("title"));uDa(a)?this.Ob.setAttribute("disableremoteplayback",""):this.Ob.removeAttribute("disableremoteplayback");this.Ob.setAttribute("controlslist","nodownload");b.cn&&a.videoId&&(this.Ob.poster=a.Hf("default.jpg"))}b=g.gJ(a,"yt:bgcolor");this.Vy.style.backgroundColor=b?b:"";this.TJ=Cv(g.gJ(a,"yt:stretch"));this.UJ=
Cv(g.gJ(a,"yt:crop"),!0);g.to(this.element,"ytp-dni",a.D);this.resize()};
g.k.setGlobalCrop=function(a){this.SI=Cv(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.iP=a;this.resize()};
g.k.Sk=function(){};
g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ua.isFullscreen();if(b&&iv())return new g.Gg(window.outerWidth,window.outerHeight);if(b||a.Im){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.kA&&this.kA.media===a||(this.kA=window.matchMedia(a));var c=this.kA&&this.kA.matches}if(c)return new g.Gg(window.innerWidth,window.innerHeight)}else if(!isNaN(this.qz.width)&&!isNaN(this.qz.height))return this.qz.clone();return new g.Gg(this.element.clientWidth,
this.element.clientHeight)};
g.k.Wi=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.YF(this.app.V().experiments,"player_underlay_min_player_width");return a&&this.XK&&b.width>c?new g.Gg(b.width*g.YF(this.app.V().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.TJ)?FNa(this):this.TJ};
g.k.getVideoContentRect=function(a){var b=this.Wi();a=GNa(this,b,this.getVideoAspectRatio(),a);return new g.Fl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.wx=function(a){this.XK=a;this.resize()};
g.k.ND=function(){return this.JE};
g.k.onMutedAutoplayChange=function(){XU(this)};
g.k.setInternalSize=function(a){g.Hg(this.qz,a)||(this.qz=a,this.resize())};
g.k.ra=function(){this.PH&&g.jy(this.PH);this.Ci();g.V.prototype.ra.call(this)};g.k=INa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.kA();c&&a.visualElement&&g.uL(c,a.visualElement,b)};
g.k.rb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=kta(c);a.visualElement=c;var f=g.kA(),h=g.jA();f&&h&&g.oA(void 0,f,h,[c]);g.af(b,function(){JNa(e,a)});
d&&this.u.add(a)};
g.k.yg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.af(b,function(){JNa(d,a)});
c&&this.u.add(a)};
g.k.uP=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,mFa(wL(),a),KNa(this))};
g.k.Ah=function(a,b){this.elements.has(a);b&&(a.visualElement=g.dA(b))};
g.k.Cj=function(a){return this.elements.has(a)};g.v(bV,g.V);
bV.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(dV,g.V);g.k=dV.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.La()};
g.k.hide=function(){g.V.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.La()};
g.k.La=function(){var a=(0,g.Q)(),b=this.Ua.getStatsForNerds();cV(this.j,b.bandwidth_samples);cV(this.C,b.network_activity_samples);cV(this.B,b.live_latency_samples);cV(this.u,b.buffer_health_samples);var c={};b=g.t(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.t(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.Q)()-a?5E3:500;this.delay.start(a)};eV.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
eV.prototype.getPlaybackRate=function(){return this.playbackRate};iV.prototype.seek=function(a){a!==this.u&&(this.seekCount=0);this.u=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.vc,e=PNa(this.videoTrack,a,this.videoTrack.vc);d=PNa(this.audioTrack,this.policy.Ve?a:e,d);a=Math.max(a,e,d);this.D=!0;this.j.isManifestless&&(NNa(this.videoTrack,b),NNa(this.audioTrack,c));return a};
iV.prototype.Tg=function(){return this.D};
var ONa=2/24;UNa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.Q)()};g.v(oV,g.Mz);g.k=oV.prototype;
g.k.yK=function(a,b,c,d){if(this.D&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.Iy);this.D.HK(a.Na,a.startTime,this.u,d,e,f,c,l,h)}if(c){if(b&&!this.ya.has(a.Na)){c=a.startTime;d=[];e=g.t(b.j.entries());for(f=e.next();!f.done;f=e.next())h=g.t(f.value),f=h.next().value,h=h.next().value,l=c,c=l+b.u[f],d.push({startTime:l,endTime:c,adCpn:h});this.ya.set(a.Na,d)}this.policy.Od&&(c=this.oa&&a.Na===this.oa.Na+1,this.oa=a,d=this.j&&a.Na===this.j.Na+1,d=this.j&&c&&d&&"stop"!==this.j.nf.event&&
"predictStart"!==this.j.nf.event,e=a.nf||null,f=this.T.j.index.jd()<=a.Na,h=this.Aa.isManifestless&&this.policy.Jm,e?(this.j={nf:e,Na:a.Na,Uz:!!b},f?pV(this,e,a.Na):h&&(c?d?pV(this,e,a.Na):"continue"===e.event||"stop"===e.event?ZNa(this,a):pV(this,e,a.Na):pV(this,e,a.Na))):(d&&ZNa(this,a),this.policy.Xa&&4===this.u&&qV(this,5,"qend")))}};
g.k.xK=function(a,b,c){var d=this.T.j.index.jd()<=b;this.j={nf:a,Na:b,Uz:c};d&&pV(this,a,b)};
g.k.Zs=function(){this.D&&this.D.Zs()};
g.k.va=function(a,b){this.Ia.va(a,b)};
g.k.Un=function(a,b){var c=this.T.j.index.Jh(a),d;if(d=0<=c){var e;d=(null==(e=wU(b.md,c,2))?void 0:e.Qs)||""}if(d)return b.RL(a,c),dX(this.Ia,a,a,c),this.va("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.va("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};
g.k.Aw=function(a){var b="",c=this.T.j.index.Jh(a);if(c=this.ya.get(c)){c=g.t(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};$Na.prototype.Gx=function(a){var b=this.policy.ea;this.policy.ea=NF(a,{},this.I);if(b!==this.policy.ea){tV(this,this.B);vV(this);var c,d;b>this.policy.ea&&(null==(c=this.j)?0:PE(c.info))&&(null==(d=this.nextVideo)||!PE(d.info))&&(this.T=!0)}};CV.prototype.dispose=function(){this.oa=!0};
CV.prototype.isDisposed=function(){return this.oa};
g.v(IV,Error);MV.prototype.skip=function(a){this.offset+=a};
MV.prototype.Oo=function(){return this.offset};g.k=BOa.prototype;g.k.uj=function(){this.u=[];SV(this);PV(this)};
g.k.Jr=function(a){this.Oa=this.u.shift().info;a.info.equals(this.Oa)};
g.k.Bw=function(){return g.Vd(this.u,function(a){return a.info})};
g.k.Ol=function(){return!!this.I.info.audio};
g.k.getDuration=function(){return this.I.index.Eq()};g.k=XV.prototype;g.k.yI=function(){return 0};
g.k.hD=function(){return null};
g.k.bQ=function(){return null};
g.k.isComplete=function(){return 3<=this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.Oc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.lr=function(a){a&&this.state<a?this.Oc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.isDisposed()||(this.info.Za[0].j.D=!1,this.Oc(-1))};
g.k.MI=function(){return 0};YV.prototype.Tk=function(){if(!this.vf.length)return[];var a=this.vf;this.vf=[];this.C=g.Nb(a).info;return a};
YV.prototype.vp=function(){return this.vf};g.v(jV,XV);g.k=jV.prototype;g.k.onStateChange=function(){this.isDisposed()&&(UW(this.hd,this.formatId),this.j.dispose())};
g.k.Aq=function(){var a=VW(this.hd,this.formatId),b;var c=(null==(b=this.hd.Ed.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.hd.Ed.get(this.formatId))?void 0:d.qC)||0;var e;d=(null==(e=this.hd.Ed.get(this.formatId))?void 0:e.vf.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.hd.kh(this.formatId)}};
g.k.XP=function(){return 0};
g.k.ut=function(){return!0};
g.k.Tk=function(){if(this.policy.Aa)return this.hd.Tk(this.formatId);this.Xi();this.zD=!0;return this.Cd.Tk()};
g.k.vp=function(){if(this.policy.Aa)return[];this.Xi();return this.Cd.vp()};
g.k.Pn=function(){if(this.policy.Aa)return this.hd.Pn(this.formatId);var a,b;return!!(null==(a=this.Cd)?0:null==(b=a.vp())?0:b.length)||aW(this.hd,this.formatId)};
g.k.Xi=function(){for(;aW(this.hd,this.formatId);)ZV(this.Cd,this.hd.Jr(this.formatId),mQa(this.hd,this.formatId)&&bW(this.hd,this.formatId))};
g.k.cf=function(){return this.lastError};
g.k.yw=function(){return 0};cW.prototype.Jr=function(a){this.C.Jr(a);var b;null!=(b=this.Z)&&(b.j=mOa(b.Eo,b.j,a));this.Tb=Math.max(this.Tb,a.info.j.info.Tb||0)};
cW.prototype.getDuration=function(){return this.j.index.Eq()};
cW.prototype.uj=function(){kV(this);this.C.uj()};
cW.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.Za[0].Na:!1};var gPa=0;g.k=qW.prototype;g.k.yq=function(){this.oa||(this.oa=this.callbacks.yq?this.callbacks.yq():1);return this.oa};
g.k.OD=function(){return this.Ij?1!==this.yq():!1};
g.k.Lt=function(){this.Oa=this.now();this.callbacks.Lt()};
g.k.Cr=function(a,b){sW(this,a,b);50>a-this.C&&uW(this)||kPa(this,a,b);this.callbacks.Cr(a,b)};
g.k.tp=function(){this.callbacks.tp()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.k.ut=function(){return this.u>this.zE&&wW(this,this.u)};
g.k.now=function(){return(0,g.Q)()};zW.prototype.feed=function(a){HC(this.j,a);a:{if(this.C){if(!this.j.totalLength)break a;var b=this.j.split(this.B-this.u);a=b.Vz;b=b.Uj;this.callbacks.DK(this.C,a,this.u,this.B);this.u+=a.totalLength;this.j=b;this.u===this.B&&(this.C=this.B=this.u=void 0)}for(;;){var c=0;b=g.t(oPa(this.j,c));a=b.next().value;c=b.next().value;c=g.t(oPa(this.j,c));b=c.next().value;c=c.next().value;if(0>a||0>b)break;if(!(c+b<=this.j.totalLength)){if(!(this.callbacks.DK&&c+1<=this.j.totalLength))break;c=this.j.split(c).Uj;
this.callbacks.DK(a,c,0,b)&&(this.C=a,this.u=c.totalLength,this.B=b,this.j=new GC([]));break}b=this.j.split(c).Uj.split(b);c=b.Uj;this.callbacks.Yw(a,b.Vz);this.j=c}}};
zW.prototype.dispose=function(){this.j=new GC};g.k=pPa.prototype;g.k.Ww=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Lt()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.tp())};
g.k.gt=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.wz=function(){return+this.getResponseHeader("content-length")};
g.k.Ak=function(){return this.B};
g.k.TA=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Wo=function(){return 0<this.j.totalLength};
g.k.mu=function(){var a=this.j;this.j=new GC;return a};
g.k.EE=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Ax=function(){return!0};
g.k.RE=function(){return this.C};
g.k.rf=function(){return""};g.k=rPa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.gt=function(){return!0};
g.k.wz=function(){return this.range.length};
g.k.Ak=function(){return this.loaded};
g.k.TA=function(){return!!this.loaded};
g.k.Wo=function(){return!!this.u.totalLength};
g.k.mu=function(){var a=this.u;this.u=new GC;return a};
g.k.EE=function(){return this.u};
g.k.Ax=function(){return!0};
g.k.RE=function(){return!!this.error};
g.k.rf=function(){return this.error};g.k=tPa.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Z);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.oa,this.onError).then(void 0,fw)};
g.k.onDone=function(){this.isDisposed()||this.callbacks.tp()};
g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.k.gt=function(){return!!this.D};
g.k.Ak=function(){return this.u};
g.k.wz=function(){return+this.getResponseHeader("content-length")};
g.k.TA=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.Wo=function(){return!!this.j.totalLength};
g.k.mu=function(){var a=this.j;this.j=new GC;return a};
g.k.EE=function(){return this.j};
g.k.isDisposed=function(){return this.I};
g.k.abort=function(){this.Qn&&this.Qn.cancel().catch(function(){});
this.B&&this.B.abort();this.I=!0};
g.k.Ax=function(){return!0};
g.k.RE=function(){return this.J};
g.k.rf=function(){return this.errorMessage};g.k=uPa.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.tp()}};
g.k.Ww=function(){2===this.xhr.readyState&&this.callbacks.Lt()};
g.k.pe=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.Cr((0,g.Q)(),a.loaded))};
g.k.gt=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return Du(Error("Could not read XHR header "+a)),""}};
g.k.wz=function(){return+this.getResponseHeader("content-length")};
g.k.Ak=function(){return this.u};
g.k.TA=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.k.Wo=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.mu=function(){var a=this.response;this.response=void 0;return new GC([new Uint8Array(a)])};
g.k.EE=function(){return new GC([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Ax=function(){return!1};
g.k.RE=function(){return!1};
g.k.rf=function(){return""};g.v(BW,g.K);g.k=BW.prototype;g.k.I3=function(){if(!this.isDisposed()){var a=(0,g.Q)(),b=!1;uW(this.timing)?(a=this.timing.Z,iPa(this.timing),this.timing.Z-a>=.8*this.policy.Fd?(this.u++,b=this.u>=this.policy.gk):this.u=0):(b=this.timing,b.Ij&&yW(b,b.now()),a-=b.T,this.policy.Jg&&0<a&&(this.u+=1),b=Gya(CW(this),this.policy,!1)*this.policy.dk,b=a>1E3*b);0<this.u&&this.callbacks.xQ();b?this.tF(!1):this.j.start()}};
g.k.tF=function(a){a&&(a=CW(this),a.B+=1);this.callbacks.Gy();this.lastError="net.timeout";DW(this)};
g.k.canRetry=function(a){var b=CW(this);a=a?3:this.policy.Ye;return b.timedOut<this.policy.Rm&&b.j<a};
g.k.cf=function(){return this.lastError};
g.k.yw=function(){return this.u};
g.k.dispose=function(){this.j.dispose();g.K.prototype.dispose.call(this)};g.v(FW,XV);g.k=FW.prototype;g.k.qD=function(){return this.timing.requestNumber};
g.k.Ge=function(){return this.Ke.Ge()};
g.k.Aq=function(){var a=xPa(this.Kd);this.Vg&&(a.rc=this.Vg.toString());a.itag=this.info.Za[0].j.info.itag;a.ml=""+ +this.info.Za[0].j.Xf();a.sq=""+this.info.Za[0].Na;this.Ke&&(a.ifi=""+ +CC(this.info.j.B));410!==this.Vg&&500!==this.Vg&&503!==this.Vg||(a.fmt_unav="true");var b,c=this.errorMessage||(null==(b=this.xhr)?void 0:b.rf());c&&(a.msg=c);this.mB&&(a.smb="1");this.Cd&&(b=this.Cd.vp(),b.length&&iza(b[0],a));this.info.jn()&&(a.sdai="1");return a};
g.k.XP=function(){return nPa(this.timing)};
g.k.rf=function(){return this.xhr.rf()||""};
g.k.ut=function(){return this.isComplete()||this.timing.ut()};
g.k.Cr=function(){!this.isDisposed()&&this.xhr&&(this.Vg=this.xhr.status,this.Pn()?this.lr(2):!this.FQ&&this.ut()&&(this.lr(),this.FQ=!0))};
g.k.Lt=function(){if(!this.isDisposed()&&this.xhr){if(!this.Sv&&this.xhr.gt()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Sv=((0,g.Q)()-a)/1E3}this.xhr.gt()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.zv&&!jAa()&&g.zA("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.Cn=a||this.Cn;this.Uo=b||this.Uo}};
g.k.tp=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.policy.useUmp||this.Kd.j.stop(),this.Vg=a.status,a=this.bJ(a),5===a?DW(this.Kd):this.Oc(a),this.policy.useUmp&&this.Kd.j.stop())};
g.k.bJ=function(a){if(wPa(this.Kd,this.xhr))return 5;var b="";if(NPa(this)){var c=a.EE();c.totalLength<=this.policy.fk&&(b=LC(c),b=QC(b),b=ZA(b)?b:"")}if(b)return GD(CW(this.Kd)),this.info.Aj(this.Ke,b),3;b=a.Ak();if(this.Yj){if(this.Xi(!0),!this.oU){if(this.pU)return GD(CW(this.Kd)),3;this.Kd.lastError="net.closed";return 5}}else{if((c=this.info.B)&&c!==b||a.RE())return this.Kd.lastError="net.closed",5;this.Xi(!0);if(!c&&this.Cd&&(c=this.Cd.vp(),c.length&&!iza(c[0])))return this.Kd.lastError="net.closed",
5}c=POa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=POa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.wT=!0,this.policy.fv&&(c=a);a=this.Kd;c=c?Number(c):0;vW(a.timing,(0,g.Q)(),b,c);b=a.B;b.u=0;b.D=0;b.I=0;GD(CW(a));if(null!=(a=this.Mt)&&(b=this.Ke.Mi,!((0,g.Q)()<a.I+3E5||BC(b))&&(c=AC(b))&&wMa(c)&&a.u===NT(c))){var d;CC(b)&&(d=AC(DC(b)));g.zA("yt-player-bandaid-host",{primary:c,secondary:d},864E3);a.I=(0,g.Q)();tMa(a,{primary:c,secondary:d})}return 4};
g.k.canRetry=function(){this.isDisposed();return this.Kd.canRetry(!!this.info.jn())};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Wk?this.Gy():this.timing.deactivate())};
g.k.tF=function(a){this.Kd.tF(a)};
g.k.xQ=function(){this.callback&&this.callback(this,this.state)};
g.k.yw=function(){return this.Kd.yw()};
g.k.dispose=function(){XV.prototype.dispose.call(this);this.Kd.dispose();this.policy.Wk||this.Gy()};
g.k.Gy=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.k.Tk=function(){if(!this.vp().length)return[];this.zD=!0;return this.Cd.Tk()};
g.k.Pn=function(){if(1>this.state)return!1;if(this.Cd&&this.Cd.vf.length)return!0;var a;return(null==(a=this.xhr)?0:a.Wo())?!0:!1};
g.k.vp=function(){this.Xi(!1);return this.Cd?this.Cd.vp():[]};
g.k.Xi=function(a){try{if(a||this.xhr.gt()&&this.xhr.Wo()&&!NPa(this)&&!this.ax){if(!this.Cd){var b;this.xhr.Ax()||this.Yj?b=this.info.B:b=this.xhr.Ak();this.Cd=new YV(this.policy,this.info.Za,b)}for(;this.xhr.Wo()&&(this.Yj?this.Yj.feed(this.xhr.mu()):ZV(this.Cd,this.xhr.mu(),a&&!this.xhr.Wo()),!this.policy.Hj););}}catch(c){this.Yj?MPa(this,c):g.aA(c)}};
g.k.Yw=function(a,b){switch(a){case 21:a=b.split(1).Uj;ZV(this.Cd,a,!1);break;case 22:this.oU=!0;ZV(this.Cd,new GC([]),!0);break;case 43:if(a=cI(new YH(b),1))this.info.Aj(this.Ke,a),this.pU=!0}};
g.k.DK=function(a,b,c){if(21!==a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).Uj}ZV(this.Cd,b,!1);return!0};
g.k.Ak=function(){return this.xhr.Ak()};
g.k.yI=function(){return this.Sv};
g.k.yq=function(){return this.OD()?2:1};
g.k.OD=function(){if(!this.policy.C.lj||!isNaN(this.info.fg)&&0<this.info.fg)return!1;if(!this.xhr.gt())return!0;if(this.Yj)var a=!this.info.B;else this.xhr.wz()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);return!a||isNaN(this.info.fg)&&(a=this.xhr.getResponseHeader("x-head-seqnum"))&&Number(a)>this.info.Za[0].Na?!1:!0};
g.k.MI=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.hD=function(){this.xhr&&(this.Cn=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Cn};
g.k.bQ=function(){this.xhr&&(this.Uo=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Uo};
g.k.cf=function(){return this.Kd.cf()};g.v(GW,g.K);
GW.prototype.Kq=function(a){var b=a.info.Za[0].j,c=a.cf();if(BC(b.u.j)){var d=g.Cc(a.rf(),3);this.Ia.va("dldbrerr",{em:d||"none"})}d=a.info.Za[0].Na;var e=YNa(this.B,a.info.Za[0].C,d);"net.badstatus"===c&&(this.J+=1);if(a.canRetry()){if(!(3<=a.info.j.u&&this.u&&a.info.jn()&&"net.badstatus"===a.cf()&&this.u.Kq(e,d))){d=(b.info.video&&1<b.u.u||410===a.Vg||500===a.Vg||503===a.Vg)&&!yV(this.D)&&!BC(b.u.j);e=a.Aq();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.Ia.handleError(c,e);
this.isDisposed()||(d&&xV(this.D,b),oW(f,a),this.Ia.rj())}}else b=1,this.u&&a.info.jn()&&"net.badstatus"===a.cf()&&this.u.Kq(e,d)&&(b=0),this.j.isLive&&"net.badstatus"===a.cf()&&this.J<=2*this.policy.Ye?(cAa(this.j),this.j.He||this.j.isPremiere?this.Ia.xa.seekTo(0,{qe:"badStatusWorkaround"}):this.j.B?this.Ia.xa.seekTo(this.j.wc,{qe:"badStatusWorkaround",Wp:!0}):VQa(this.Ia)):this.Ia.handleError(c,a.Aq(),b)};
GW.prototype.ra=function(){g.K.prototype.ra.call(this)};
var JW=2/24;OW.prototype.Yw=function(a,b){switch(a){case 20:a=new YH(b);a={GQ:aI(a,1),videoId:cI(a,2),itag:aI(a,3),lmt:aI(a,4),xtags:cI(a,5),du:aI(a,6),Pl:cCa(a,8),Bp:aI(a,9),E5a:aI(a,10),startMs:aI(a,11),durationMs:aI(a,12),Sn:aI(a,14),n6a:aI(a,17)};this.wK(a);break;case 21:this.uK(b,!1);break;case 22:this.Uw(b);break;default:this.nK(a,b)}};
OW.prototype.wK=function(){};
OW.prototype.nK=function(){};var PW,G6a=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),C3={},sQa=(C3.a=1,C3.o=3,C3.meac3=5,C3.mac3=7,C3),D3={},rQa=(D3["1h"]=8,D3["9h"]=4,D3["1"]=8,D3["9"]=4,D3.h=2,D3),$Pa=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247","244"],["137","136"]],bQa=[["140"],["251"],["380"],["328"]],E3={},YPa=(E3["302"]=["409","410"],E3["298"]=["384","376"],E3["247"]="274 357 358 317 273 318 280 279".split(" "),
E3["136"]="145 224 225 144 222 223 143 142".split(" "),E3["140"]=["149"],E3["380"]=["381"],E3["328"]=["329"],E3),F3={},XPa=(F3["398"]=["397","396","395","394"],F3["247"]=["244","243","242"],F3["136"]=["135","134","133","160"],F3["251"]=["250"],F3),G3={},gQa=(G3["140"]={numChannels:2},G3["251"]={audioSampleRate:48E3,numChannels:2},G3["380"]={numChannels:6},G3["328"]={numChannels:6},G3),H3={},fQa=(H3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},H3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},
H3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},H3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},H3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},H3["700"]={width:2560,height:1440,bitrate:1E7,fps:60},H3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},H3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},H3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},H3["302"]={width:1280,height:720,bitrate:25E5,fps:60},H3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},H3["298"]={width:1280,
height:720,bitrate:35E5,fps:60},H3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},H3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},H3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},H3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},H3["398"]={width:1280,height:720,bitrate:1E6,fps:60},H3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},H3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},H3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},H3["247"]={width:1280,height:720,bitrate:15E5,
fps:30},H3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},H3["136"]={width:1280,height:720,bitrate:3E6,fps:30},H3),I3={},VPa=(I3["133"]=240,I3["134"]=360,I3["135"]=480,I3["136"]=720,I3["137"]=1080,I3["242"]=240,I3["243"]=360,I3["244"]=480,I3["247"]=720,I3["248"]=1080,I3["298"]=720,I3["299"]=1080,I3["302"]=720,I3["303"]=1080,I3["395"]=240,I3["396"]=360,I3["397"]=480,I3["398"]=720,I3["399"]=1080,I3),J3={},eQa=(J3["1"]='video/mp4; codecs="av01.0.08M.08"',J3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',
J3["9"]='video/webm; codecs="vp9"',J3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',J3.h='video/mp4; codecs="avc1.64001e"',J3.o='audio/webm; codecs="opus"',J3.a='audio/mp4; codecs="mp4a.40.2"',J3.mac3='audio/mp4; codecs="ac-3"; channels=6',J3.meac3='audio/mp4; codecs="ec-3"; channels=6',J3);g.v(RW,OW);g.k=RW.prototype;g.k.nK=function(a,b){switch(a){case 35:this.CA(b);break;case 44:this.EA(b);break;case 43:this.FK(b)}};
g.k.CA=function(a){a=new YH(a);a={targetAudioReadaheadMs:aI(a,1),targetVideoReadaheadMs:aI(a,2),backoffTimeMs:aI(a,4),playbackCookie:bI(a,7)};this.callbacks.CA(a)};
g.k.EA=function(a){a=new YH(a);a={x3:cI(a,1),action:aI(a,2)};this.callbacks.EA(a)};
g.k.FK=function(a){a={redirectUrl:cI(new YH(a),1)};this.callbacks.FK(a)};
g.k.uK=function(a){var b=MC(a,0);if(1!==a.totalLength&&(a=a.split(1).Uj,b=this.u[b]||null)){var c=this.callbacks;WW(c.hd,b,a);AQa(c.callbacks,c)}};
g.k.Uw=function(){};
g.k.wK=function(a){var b=a.GQ,c=a.Pl,d=a.du,e=a.Bp,f=a.startMs,h=a.durationMs,l=a.Sn,m=UPa(a,!0);a=G6a.has(ME[""+a.itag]);this.u[b]=m;this.callbacks.Jt(m,a,{Pl:!!c,du:null!=d?d:-1,Bp:null!=e?e:-1,startMs:null!=f?f:-1,durationMs:null!=h?h:-1,Sn:l})};g.v(SW,g.K);g.k=SW.prototype;g.k.eD=function(){return Array.from(this.Ed.keys())};
g.k.Jr=function(a){a=this.Ed.get(a);var b=a.vf;a.qC+=b.totalLength;a.vf=new GC;return b};
g.k.hg=function(a){return this.Ed.get(a).hg};
g.k.kh=function(a){return this.Ed.get(a).kh};
g.k.Jt=function(a,b,c){this.Ed.get(a)||this.Ed.set(a,{vf:new GC,qC:0,bytesReceived:0,MQ:0,aL:!1,hg:!1,kh:!1,Ol:b,sT:[],Za:[],lA:[]});b=this.Ed.get(a);this.j?(c=oQa(this,a,c),nQa(this,a,b,c)):(c.Pl?b.MQ=c.Sn:b.lA.push(c),b.sT.push(c))};
g.k.Bw=function(a){var b;return(null==(b=this.Ed.get(a))?void 0:b.Za)||[]};
g.k.lr=function(){for(var a=g.t(this.Ed.values()),b=a.next();!b.done;b=a.next())b=b.value,b.aL&&(b.pe&&b.pe(),b.aL=!1)};
g.k.Uw=function(a){(a=this.Ed.get(a))&&!a.kh&&(a.kh=!0)};
g.k.Tk=function(a){var b,c=null==(b=this.Ed.get(a))?void 0:b.Cd;if(!c)return[];this.Xi(a,c);return c.Tk()};
g.k.Pn=function(a){var b,c,d;return!!(null==(c=null==(b=this.Ed.get(a))?void 0:b.Cd)?0:null==(d=c.vp())?0:d.length)||aW(this,a)};
g.k.Xi=function(a,b){for(;aW(this,a);)ZV(b,this.Jr(a),mQa(this,a)&&bW(this,a))};
g.k.ra=function(){g.K.prototype.ra.call(this);for(var a=g.t(this.Ed.keys()),b=a.next();!b.done;b=a.next())TW(this,b.value);this.Ed.clear()};g.v(XW,g.K);g.k=XW.prototype;g.k.Cr=function(){!this.isDisposed()&&this.xhr&&this.Xi()};
g.k.Lt=function(){};
g.k.tp=function(){if(!this.isDisposed()&&this.xhr){var a=this.bJ();5===a?DW(this.Kd):this.Oc(a)}};
g.k.bJ=function(){if(wPa(this.Kd,this.xhr))return 5;this.Xi();if(this.qT)return 3;var a=this.Kd,b=this.xhr.Ak();vW(a.timing,(0,g.Q)(),b,0);b=a.B;b.u=0;b.D=0;b.I=0;GD(CW(a));this.Kd.j.stop();return 4};
g.k.Xi=function(){for(var a=this.xhr;a.Wo();){var b=a.mu();this.Yj.feed(b);if(this.policy.Hj)break}};
g.k.Yw=function(a,b){this.O3.Yw(a,b)};
g.k.CA=function(a){this.callbacks.CA(a)};
g.k.EA=function(a){this.callbacks.EA(a)};
g.k.FK=function(a){this.qT=!0;this.info.j.Aj(this.Ke,a.redirectUrl)};
g.k.canRetry=function(){this.isDisposed();return this.Kd.canRetry(!1)};
g.k.dispose=function(){this.isDisposed()||(this.Kd.dispose(),this.Oc(-1),g.K.prototype.dispose.call(this))};
g.k.Oc=function(a){this.state=a;AQa(this.callbacks,this)};
g.k.Jt=function(a,b,c){this.hd.Jt(a,b,c)};
g.k.Tk=function(a){return this.hd.Tk(a)};
g.k.Bw=function(a){return this.hd.Bw(a)};
g.k.Pn=function(a){return this.hd.Pn(a)};
g.k.eD=function(){return this.hd.eD()};
g.k.yq=function(){return 1};
g.k.qD=function(){return this.Qj.requestNumber};
g.k.OR=function(){this.Gy()};
g.k.Gy=function(){var a;null==(a=this.xhr)||a.abort();this.Qj.deactivate()};
g.k.xQ=function(){};
g.k.cf=function(){return this.Kd.cf()};
g.k.Aq=function(){var a=xPa(this.Kd);a.req="sabr";a.rn=this.qD();var b;if(null==(b=this.xhr)?0:b.status){var c;a.rc=null==(c=this.xhr)?void 0:c.status}var d;(b=null==(d=this.xhr)?void 0:d.rf())&&(a.msg=b);return a};g.v(ZW,g.K);ZW.prototype.Kq=function(a){var b=1;a.canRetry()&&(this.j.pop(),null==a||a.dispose(),b=0);this.Ia.handleError(a.cf(),a.Aq(),b)};
ZW.prototype.CA=function(a){this.u=a;this.C=(0,g.Q)()+(a.backoffTimeMs||0)};
ZW.prototype.EA=function(a){if(void 0!==a.action){var b={};b.reason=a.x3;b.action=a.action;1===a.action?this.Ia.JC(b):0===a.action&&this.Ia.bI(b)}};
ZW.prototype.ra=function(){g.K.prototype.ra.call(this);this.u=void 0;for(var a=g.t(this.j),b=a.next();!b.done;b=a.next())b.value.dispose()};CQa.prototype.clear=function(){this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};g.v(g.aX,g.K);g.k=g.aX.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.xa.qE(zV(this.ge));if(this.Nb.isManifestless){if(this.policy.Hh){b=Vxa(this.policy);for(var d in this.Nb.j)this.Nb.j.hasOwnProperty(d)&&(this.Nb.j[d].index.B=b)}TPa(this.u)}this.B&&EQa(this.B,this.videoTrack.j);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.Nb.isManifestless?d:a;this.J&&(KQa(this,this.videoTrack),KQa(this,this.audioTrack),lQa(this.J),delete this.J);c?(this.policy.Le?(this.Ka=c,cX(this,c)):cX(this,!1),g.io(this.XD)):(a=
0===this.currentTime,MW(this.u,this.videoTrack,this.videoTrack.j,a),MW(this.u,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).jj(function(){}),this.timing.tick("gv"));
(this.Nb.De||this.Nb.jg||this.Nb.wc||this.Nb.od||this.Nb.Fd)&&this.va("minMaxSq",{minSq:this.Nb.De,maxSq:this.Nb.jg,minDvrTime:this.Nb.wc,maxDvrTime:this.Nb.od,startWalltime:this.Nb.Fd})};
g.k.resume=function(){if(this.isSuspended||this.cA){this.IC=this.cA=this.isSuspended=!1;try{this.rj()}catch(a){g.$z(a)}}};
g.k.ew=function(a){a=void 0===a?!1:a;LQa(this);WY(this.xa)&&(this.C=NaN);a?this.policy.Z=!0:this.policy.Le?cX(this,this.Ka):cX(this,!1);this.uj()};
g.k.setAudioTrack=function(a,b,c){if(this.isDisposed())return!1;var d=this.ge;d.u=d.D.j[a.id];d.J=d.u;d=new sV(d.J,d.j,"m");hX(this.xa,d.reason,d.audio.info);if(!isNaN(c)&&(d=this.audioTrack.j.index.Jh(b)))return this.va("sdai",{stadio:a.id,sq:d,mt:b.toFixed(3)}),dX(this,b,b,d),mX(this,this.timestampOffset-c),jX(this),!0;iX(this.xa);return!1};
g.k.setPlaybackRate=function(a){a!==this.T.getPlaybackRate()&&this.T.setPlaybackRate(a)};
g.k.NI=function(){return this.xa.NI()};
g.k.Ez=function(){return this.xa.Ez()};
g.k.El=function(){return this.xa.El()};
g.k.JK=function(a){this.xa.JK(a)};
g.k.rj=function(){gX(this);if(this.mediaSource&&pF(this.mediaSource)&&!this.mediaSource.ri()){var a=eW(this.videoTrack);a=this.policy.Sx&&a&&UD(a);this.Nb.isManifestless&&this.Nb.B&&DF(this.Nb)?(this.C=DF(this.Nb),this.mediaSource.Rj(this.C)):HF(this.Nb)&&!a?isNaN(this.C)?(this.C=this.currentTime+3600,this.mediaSource.Rj(this.C)):this.C<=this.currentTime+1800&&(this.C=Math.max(this.C+1800,this.currentTime+3600),this.mediaSource.Rj(this.C)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.C)||this.C!==a)&&0<a&&(this.mediaSource.Rj(a),this.C=a))}if(!this.isDisposed())if(CF(this.Nb)&&this.Nb.isFailed())this.handleError("manifest.net.retryexhausted",{rc:this.Nb.Vg.toString()},1);else if(this.policy.yb){zQa(this.Ba);bX(this);a=this.Ba;if(a.Ia.IC||a.Ia.isSuspended||a.C&&(0,g.Q)()<a.C||0<a.j.length)var b=!1;else if(a.u){b=1E3*lW(a.audioTrack,!0);var c=1E3*lW(a.videoTrack,!0)>a.u.targetVideoReadaheadMs;b=!(b>a.u.targetAudioReadaheadMs)||!c}else b=
!0;b&&(b=TOa(a.audioTrack),c=TOa(a.videoTrack),b=[].concat(g.u(b),g.u(c)),b=new yQa(a.I,a.videoData,a.xa.getPlayerSize(),a.xa.getVisibilityState(),a.B,b,a.xa.getCurrentTime(),a.u,zV(a.D)),a.j.push(new XW(a.policy,b,a.B,a.J,a,{fh:a.fh})));this.mediaSource&&eX(this)}else if(!this.Nb.u||!aPa(this.videoTrack)&&!aPa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Vb?a=!1:(this.uj(),this.xa.seekTo(Infinity,{qe:"checkLoaderTracksSync",Wp:!0}),a=!0),!a){gX(this);try{gW(this.videoTrack);
if(this.isDisposed())return;gW(this.audioTrack);if(this.isDisposed())return}catch(e){SPa(this,e,{origin:"pollSlice"})}this.Nb.isManifestless&&(bPa(this.videoTrack),bPa(this.audioTrack),SNa(this.I),(a=nV(this.videoTrack))&&a.u&&(a=a.u.D&&!this.policy.Io,this.va(a===this.policy.C.lj?"strm":"strmbug",{strm:a,sfmp4:this.policy.C.lj,dfs:this.policy.Io},!0)));this.mediaSource?eX(this):this.policy.u&&((a=nV(this.videoTrack))&&this.videoTrack.Jr(a),(b=nV(this.audioTrack))&&this.audioTrack.Jr(b),jW(this.videoTrack)&&
jW(this.audioTrack)||(a||b)&&jX(this));bX(this);MW(this.u,this.videoTrack,this.videoTrack.j,!1);MW(this.u,this.audioTrack,this.audioTrack.j,!1);a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||pF(this.mediaSource)&&!this.policy.wc)&&!this.I.Tg()&&pW(a)&&a.j.Xf()&&this.ge.T)a:{if(b=this.currentTime,c=this.T,d=gV(c,a.j.info.Tb,d.j.info.Tb,0),c=FG(c.schedule)+d/HG(c.schedule),b+=Math.max(c,c+10-d/a.j.info.Tb),a.B.length){if(a.B[0].info.Za[0].startTime<=b)break a;kV(a)}c=a.C;for(d=c.u.length-
1;0<=d;d--)c.u[d].info.startTime>b&&c.u.pop();a.B.length?a.u=g.Nb(g.Nb(a.B).info.Za):a.C.u.length?a.u=QV(a.C).info:a.u=eW(a);a.u&&b<a.u.startTime&&(a.oa=0,a.j.Xf()?a.u=a.j.Po(b,!0).Za[0]:a.u=null)}OPa(this.u,this.videoTrack,this.audioTrack);OPa(this.u,this.audioTrack,this.videoTrack);this.policy.Bm&&this.oa&&!this.isSuspended&&dBa(this.schedule)&&(RQa(this,this.oa),this.oa="");this.B&&(a=this.B,a.C?(b=a.I+a.policy.Qm,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.gh)),a=Math.max(0,1E3*b-Date.now())):
a=NaN,isNaN(a)||g.io(this.Sa,a));g.io(this.Ma)}};
g.k.bI=function(a){this.xa.bI(a)};
g.k.JC=function(a){this.xa.JC(a)};
g.k.qX=function(a){var b=this;a.Hn()&&0===a.Bg().length&&(a.KH(),this.mediaSource&&!this.mediaSource.Hn()&&this.xa.rI());if(this.policy.Ka&&this.mediaSource){var c=a===this.mediaSource.j,d=a.jD();d&&(d.Kb&&!d.Pe||this.va("sbu",a.Yb({a:c})),d.Pe&&!a.ri()&&setTimeout(function(){var e=a.Bg(),f=eF(e,d.startTime+JW),h=eF(e,b.currentTime);(0>f||f!==h)&&b.va("sbu_mismatch",{b:dF(e),c:b.currentTime,s:$D(d)})},0))}this.rj()};
g.k.r0=function(a){if(this.mediaSource){var b=eW(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.KI())for(var c=0;c<a.length;c++)this.va("appendedbuffer",{i:c,b:g.Bc(a[c].subarray(0,4096),3)});a=void 0;b&&(a=ZD(b));this.handleError("fmt.unplayable",a,1)}};
g.k.Vw=function(a){this.xa.Vw(a)};
g.k.yK=function(a,b,c){this.Nb.isManifestless&&MOa(this,b,c,!!a.info.video,!0)};
g.k.xK=function(a,b,c,d){a.info.video&&this.j.xK(b,c,d)};
g.k.Mz=aa(10);g.k.seek=function(a){if(this.isDisposed())return zh();if(this.videoTrack.J||this.audioTrack.J)return zh("seeking to head");gX(this);this.u.T=(0,g.Q)();bX(this,a);this.mediaSource&&this.mediaSource.j&&this.mediaSource.u&&(this.mediaSource.j.isLocked()||this.mediaSource.u.isLocked())&&iX(this.xa,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.j.isLocked()});var b=this.currentTime;this.currentTime=this.I.seek(a);rV(this.j,a,b);jX(this);return yh(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.AI=function(){return this.audioTrack.j.info};
g.k.CI=function(){return this.videoTrack.j.info};
g.k.zI=function(){return this.audioTrack.j.info.Ib};
g.k.BI=function(){return this.videoTrack.j.info.Ib};
g.k.ra=function(){try{this.ew();kV(this.audioTrack);kV(this.videoTrack);var a;null!=(a=this.audioTrack.Z)&&(a.Eo=[],a.j=-1);var b;null!=(b=this.videoTrack.Z)&&(b.Eo=[],b.j=-1);g.K.prototype.ra.call(this)}catch(c){g.$z(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=BH(c);if("fmt.unplayable"===a&&this.Nb.isLive){this.policy.Ma=!1;var e=this.Nb;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new AH(a,b,c);g.Oa(this);zH(b.details);this.xa.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.Yb=function(){var a=eW(this.audioTrack),b=eW(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.I.Tg(),lmf:AV(this.ge),lbw:GG(this.schedule).toFixed(3),lhd:FG(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.gi()||0)).toFixed(3),laa:a?$D(a):"",lva:b?$D(b):"",lar:this.audioTrack.u?$D(this.audioTrack.u):"",lvr:this.videoTrack.u?$D(this.videoTrack.u):"",laq:""+kW(this.audioTrack),lvq:""+kW(this.videoTrack)};this.mediaSource&&!this.mediaSource.hg()&&this.mediaSource.j&&this.mediaSource.u&&
(a.lab=dF(this.mediaSource.j.Bg()),a.lvb=dF(this.mediaSource.u.Bg()));this.Z&&(a.lapt=((0,g.Q)()-this.Z).toFixed(0),a.lapr=NQa(this));return a};
g.k.uj=function(){try{this.audioTrack.uj(),this.videoTrack.uj()}catch(a){g.$z(a)}this.policy.u=""};
g.k.wI=function(){return fV(this.T)};
g.k.va=function(a,b,c){this.xa.va(a,b,void 0===c?!1:c)};
g.k.Wf=function(){return this.xa.Wf()};
g.k.Wp=function(a,b){a/=b;isNaN(this.timestampOffset)&&mX(this,a-Math.min(a,this.policy.Hu));return(a-this.timestampOffset)*b};
g.k.Tg=function(){return this.I.Tg()};
g.k.Zs=function(){this.j.Zs()};
g.k.Gx=function(a){this.ge.Gx(a)};
g.k.Ty=function(a){if(!this.D)return 0;var b=this.videoTrack.j.index.Jh(a);return this.D.Ty(a,b)};
g.k.Un=function(a,b){if(this.D&&this.j.Un(a,this.D))return mX(this,this.timestampOffset-b),jX(this),!0;b=this.videoTrack.j.index.Jh(a);this.handleError("ad.skipfailed",{dec:!!this.D,t:a.toFixed(3),sq:b});return!1};
g.k.Aw=function(a){return this.j.Aw(a)};g.k=g.nX.prototype;g.k.jn=function(a,b,c,d,e){return this.md.jn(a,b,c,d,e)};
g.k.Ys=function(a,b,c,d,e){return this.md.Ys(a,b,c,d,e)};
g.k.vD=function(a){this.md.vD(a)};
g.k.Kq=function(a,b){return this.md.Kq(a,b)};
g.k.Zs=function(){this.md.Zs()};
g.k.Ty=function(a,b){return this.md.Ty(a,b)};
g.k.RL=function(a,b){this.md.RL(a,b)};
g.k.rL=function(){this.md.rL()};
g.k.xz=aa(38);g.k.Aj=function(a,b,c){this.md.Aj(a,b,c)};
g.k.vB=aa(36);g.k.HK=function(a,b,c,d,e,f,h,l,m){this.md.HK(a,b,c,d,e,f,h,l,m)};
g.k.LL=function(a){this.md.LL(a)};
g.k.GK=function(a,b,c,d){this.md.GK(a,b,c,d)};
g.k.xr=function(a){return this.md.xr(a)};g.v(oX,g.Mz);g.v(pX,oX);pX.prototype.I=function(a,b){if(a&&b){var c=1*Number(wi(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.io(this.u))}};
pX.prototype.D=function(){for(var a=g.t(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ma;for(var d=this.B,e=this.j[c].match(di),f=[],h=g.t(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Jg(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 JV(d,"fairplay",!0))}this.j={}};
pX.prototype.ra=function(){this.j={};oX.prototype.ra.call(this)};var K3={},eRa=(K3.DRM_TRACK_TYPE_AUDIO="AUDIO",K3.DRM_TRACK_TYPE_SD="SD",K3.DRM_TRACK_TYPE_HD="HD",K3.DRM_TRACK_TYPE_UHD1="UHD1",K3);g.v(aRa,g.K);g.v(rX,g.Mz);g.k=rX.prototype;g.k.Ar=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=SF(b.u)?d:c;d=new Uint8Array(SF(b.u)?c:d);SF(b.u)&&sRa(d);c=g.Bc(d,4);sRa(d);d=g.Bc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),qRa(this,","),qX(this,{onkeystatuschange:1}),this.status="kc",this.ma("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ma("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.ma("ctmp","provf",{et:a.toFixed(3)})));BH(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ba&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ra=function(){this.j={};g.Mz.prototype.ra.call(this)};
g.k.Yb=function(){var a={ctype:this.T.contentType||"",length:this.T.initData.length,requestedKeyIds:this.Aa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.k.Qg=function(){var a=this.D.join();if(sX(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.Ge=function(){return this.url};g.v(vX,g.K);g.k=vX.prototype;g.k.rX=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.Ar=function(){this.J&&this.J(this.j.keyStatuses)};
g.k.qS=function(a){this.D&&this.D(a.message,"license-request")};
g.k.pS=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.oS=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,Cu(function(c){vRa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.T.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.T.keySystem,a,this.initData,this.sessionId);return bv()};
g.k.ra=function(){this.j&&this.j.close();this.element=null;g.K.prototype.ra.call(this)};g.v(wX,g.K);g.k=wX.prototype;g.k.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
RF(this.j)?this.B=new (QF())(this.j.keySystem):TF(this.j)?(this.B=new (QF())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(Kz(this.D,this.element,["keymessage","webkitkeymessage"],this.uX),Kz(this.D,this.element,["keyerror","webkitkeyerror"],this.tX),Kz(this.D,this.element,["keyadded","webkitkeyadded"],this.sX));return null};
g.k.setServerCertificate=function(){return this.u.setServerCertificate?"widevine"===this.j.flavor&&this.j.fk?this.u.setServerCertificate(this.j.fk):VF(this.j)&&this.j.Ma?this.u.setServerCertificate(this.j.Ma):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();UF(this.j)?c=wRa(c,this.j.Ma):VF(this.j)&&(c=XQa(c)||new Uint8Array(0));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new vX(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},Cu(function(f){vRa(e,"t.generateRequest",f)}));
return e}if(RF(this.j))return yRa(this,c);if(TF(this.j))return xRa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new vX(this.element,this.j,c,null,null)};
g.k.uX=function(a){var b=xX(this,a);b&&b.qS(a)};
g.k.tX=function(a){var b=xX(this,a);b&&b.pS(a)};
g.k.sX=function(a){var b=xX(this,a);b&&b.oS(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.ra=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.t(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.K.prototype.ra.call(this);delete this.element};g.v(yX,g.K);
yX.prototype.init=function(){var a=this,b,c;return g.A(function(d){if(1==d.j)return g.Il(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.B,document.body.appendChild(a.j),a.C.S(a.j,"encrypted",a.I),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.x(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new wX(a.j,
a.B);g.L(a,a.u);a.u.attach();g.pa(d)})};
yX.prototype.I=function(a){if(!this.isDisposed()){var b=new Uint8Array(a.initData);a=new JV(b,a.initDataType);var c=WQa(b).replace("skd://","https://"),d={},e=this.u.createSession(a,function(){});
e&&(g.L(this,e),this.D.push(e),hRa(e,function(f){tRa(f,e.j,c,d)},function(){},function(){},function(){}))}};
yX.prototype.ra=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.K.prototype.ra.call(this)};g.v(zX,oX);
zX.prototype.I=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.t(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.Q)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.t(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.ma("log_qoe",{wvagt:"delay."+
c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?zRa(this,a):(this.j.push({time:b+c,info:a}),g.io(this.u,c))}};
zX.prototype.ra=function(){this.j=[];oX.prototype.ra.call(this)};g.k=AX.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
g.k.Zf=function(){this.keys=[];this.values=[]};
g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
g.k.findIndex=function(a){return g.Rb(this.keys,function(b){return g.pc(a,b)})};g.v(BX,g.Mz);g.k=BX.prototype;g.k.vX=function(a){this.Ki({onecpt:1});a.initData&&ERa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.s1=function(a){this.Ki({onndky:1});ERa(this,a.initData,a.contentType)};
g.k.Vw=function(a){this.Ki({onneedkeyinfo:1});this.Y.N("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));DRa(this,a)};
g.k.NO=function(a){this.B.push(a);CX(this)};
g.k.createSession=function(a){var b=FRa(this)?yOa(a):g.Bc(a.initData);this.u.get(b);this.ya=!0;a=new rX(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.RR,this);a.subscribe("keystatuseschange",this.Ar,this);a.subscribe("licenseerror",this.pE,this);a.subscribe("newlicense",this.kS,this);a.subscribe("newsession",this.lS,this);a.subscribe("sessionready",this.xS,this);a.subscribe("fairplay_next_need_key_info",this.cS,this);jRa(a,this.C)};
g.k.kS=function(a){this.isDisposed()||(this.Ki({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ma("heartbeatparams",a)))};
g.k.lS=function(){this.isDisposed()||(this.Ki({newlcssn:1}),this.B.shift(),this.ya=!1,CX(this))};
g.k.xS=function(){if(RF(this.j)&&(this.Ki({onsnrdy:1}),this.Ka--,0===this.Ka)){var a=this.ea;a.element.msSetMediaKeys(a.B)}};
g.k.Ar=function(a){if(!this.isDisposed()){!this.Ba&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(GRa(this),this.Ba=!0);this.Ki({onksch:1});if(!sX(a)&&g.Qw&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(sX(a))for(var d=g.t(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(!sX(a)||c)b=a.D;b=g.Sb(b,"UHD2")||g.Sb(b,"UHD2HDR")?
"highres":g.Sb(b,"UHD1")||g.Sb(b,"UHD1HDR")?"hd2160":g.Sb(b,"HD")||g.Sb(b,"HDHDR")?"hd1080":g.Sb(b,"HD720")||g.Sb(b,"HD720HDR")?"hd720":"large"}a:{c=g.fC("auto",b,!1,"l");if(this.videoData.Vk){if(this.T.equals(c))break a}else if(Iua(this.T,b))break a;this.T=c;this.ma("qualitychange");this.Ki({updtlq:b})}this.ma("keystatuseschange",a)}};
g.k.RR=function(a,b){this.isDisposed()||this.ma("ctmp",a,b)};
g.k.cS=function(a,b){this.isDisposed()||this.ma("fairplay_next_need_key_info",a,b)};
g.k.pE=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&GRa(this),this.ma("licenseerror",a,b,c,d))};
g.k.Ts=function(){return this.T};
g.k.ra=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.t(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.RR,this),b.unsubscribe("keystatuseschange",this.Ar,this),b.unsubscribe("licenseerror",this.pE,this),b.unsubscribe("newlicense",this.kS,this),b.unsubscribe("newsession",this.lS,this),b.unsubscribe("sessionready",this.xS,this),b.unsubscribe("fairplay_next_need_key_info",this.cS,this),b.dispose();
this.u.clear();this.I.Zf();this.J.Zf();this.heartbeatParams=null;g.Mz.prototype.ra.call(this)};
g.k.Yb=function(){for(var a={systemInfo:this.j.Yb(),sessions:[]},b=g.t(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Yb());return a};
g.k.Qg=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.Qg()+(this.D?"/KR":"")};
g.k.Ki=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(zH(a),(this.Y.C||b)&&this.ma("ctmp","drmlog",a))};g.v(FX,g.K);FX.prototype.QD=function(){return this.B};
FX.prototype.handleError=function(a){var b=this;KRa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!HX(this,a.errorCode,a.details))&&!MRa(this,a))if(BH(a.severity)){var c,d=null==(c=this.xa.Ia)?void 0:c.ge.B;if("net.badstatus"===a.errorCode&&(1===a.severity||a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.j.I&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.xa.wg(a.errorCode,
a.severity,e,zH(a.details),f)}else this.xa.ma("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.Jd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20221116135136/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Q)(),JT(a,"manifest",function(h){b.I=!0;b.va("pathprobe",h)},function(h){b.Jd(h.errorCode,h.details)}))};
FX.prototype.va=function(a,b){this.xa.qc.va(a,b)};
FX.prototype.Jd=function(a,b){b=zH(b);this.xa.qc.Jd(a,b)};PRa.prototype.N=function(a){return this.Y.N(a)};g.v(KX,g.K);KX.prototype.Vc=function(a){dSa(this);this.playerState=a.state;0<=this.u&&g.xK(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
KX.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.N("html5_exception_to_health"))a.match(H6a)?this.networkErrorCount++:this.nonNetworkErrorCount++};
KX.prototype.send=function(){if(!(this.B||0>this.j)){dSa(this);var a=g.cU(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&
g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=AUa[fJ(this.provider.videoData)];a:switch(this.provider.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.u?a:this.u-this.j;a=this.provider.Y.We+36E5<(0,g.Q)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.dJ(this.provider.videoData),isGapless:this.provider.videoData.kb,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai};
a||g.gw("html5PlayerHealthEvent",b);this.provider.N("html5_health_to_qoe")&&(b.muted=a,this.I(b));this.B=!0;this.dispose()}};
KX.prototype.ra=function(){this.B||this.send();g.K.prototype.ra.call(this)};
var H6a=/\bnet\b/;var fSa=window;var eSa=/[?&]cpn=/;g.v(g.QX,g.K);g.k=g.QX.prototype;g.k.JZ=function(){var a=g.cU(this.provider);RX(this,a)};
g.k.Cz=function(){return this.Aa};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.cU(this.provider),-1<["PL","B","S"].indexOf(this.Id)&&(!g.sf(this.j)||a>=this.B+30)&&(g.PX(this,a,"vps",[this.Id]),this.B=a),!g.sf(this.j))){7E3===this.sequenceNumber&&g.aA(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){TX(this,a);var b=a,c=this.provider.xa.Oz(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.qb,h=e&&!this.Vb;d>c.totalVideoFrames||5E3<f?lSa(this,"html5.badframedropcount","df."+
d+";tf."+c.totalVideoFrames):(0<f||h)&&g.PX(this,b,"df",[f]);this.qb=d;this.Vb=e;!this.provider.Y.N("disable_webgl_reporting")&&0<this.J&&(g.PX(this,a,"glf",[this.J]),this.J=0);a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.I)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.T&&(a.addocid=this.T);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=rJ(this.provider.videoData);
a.content_v=sJ(this.provider.videoData);a.ns=this.provider.Y.Oa;a.fexp=this.provider.Y.experiments.experimentIds.toString();a.cl=(488224367).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=fJ(this.provider.videoData))&&(a.live=b);this.provider.videoData.In()&&(a.drm=1,this.provider.videoData.Z&&(a.drm_system=z5a[this.provider.videoData.Z.flavor]||0),this.provider.videoData.TF&&(a.drm_product=this.provider.videoData.TF));Mu()&&this.provider.videoData.J&&(a.ctt=this.provider.videoData.J,
a.cttype=this.provider.videoData.mj,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.FO&&(a.dai_fallback="1")):this.provider.videoData.Gc?a.dai="cs":this.provider.videoData.KG&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.lO){if(b=this.provider.videoData.lO,a&&b)for(c=g.t(Object.keys(b)),d=c.next();!d.done;d=
c.next())d=d.value,this.rd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;g.Af(a,this.provider.Y.deviceParams);a=g.ti("//"+this.provider.Y.ul+"/api/stats/qoe",a);c=b="";d=g.t(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.aA(new g.Yv("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);iSa(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.UA=function(a){0<a&&(this.j.aft=[a.toString()])};
g.k.yT=function(){if(this.provider.videoData.Z){var a=this.provider.videoData.Z;VX(this,"eme-"+(a.keySystemAccess?"final":RF(a)?"ms":UF(a)?"ytfp":TF(a)?"safarifp":"nonfinal"))}};
g.k.Vc=function(a){var b=a.state,c=g.cU(this.provider);a=this.getPlayerState(a.state);a!==this.Id&&(c<this.B||("PL"===this.Id?this.playTimeSecs+=c-this.B:"B"===this.Id&&this.oa&&(this.oa=!1,this.rebufferTimeSecs+=c-this.Xa,!this.Sa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.xa.zA(),this.j.qoealert=["1"],this.Sa=!0)),"B"!==a||"PL"!==this.Id&&"PB"!==this.Id||(this.oa=!0),this.B=c),"PL"===this.Id&&("B"===a||"S"===a)||this.provider.Y.C?TX(this,c):(this.Wa||"PL"!==a||(this.Wa=!0,
SX(this,c,this.provider.xa.Lz())),RX(this,c)),"PL"===a&&g.io(this.Ac),g.PX(this,c,"vps",[a]),this.Id=a,this.B=this.Xa=c,this.C=!0);a=b.getData();g.U(b,128)&&a&&(a.PE=a.PE||"",kSa(this,c,a.errorCode,a.OC,a.PE));(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.Rc()&&!this.D&&(0<=this.u&&(this.j.user_intent=[this.u.toString()]),this.D=!0);UX(this)};
g.k.GA=function(a){var b=g.cU(this.provider);g.PX(this,b,"vfs",[a.j.id,a.u,this.pc,a.reason]);this.pc=a.j.id;var c=this.provider.xa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.oH();1<d&&c.push(d);g.PX(this,b,"view",c)}this.Ma||(this.provider.Y.C&&VX(this,"rqs"),this.provider.videoData.j&&lC(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.Ma=!0;"m"===a.reason&&100===++this.Yc&&mSa(this,2);g.PX(this,b,"vps",[this.Id]);this.reportStats(b)};
g.k.xA=function(a){var b=g.cU(this.provider);a.j.id!==this.Ba&&(g.PX(this,b,"afs",[a.j.id,this.Ba,a.reason]),this.Ba=a.j.id)};
g.k.zr=aa(42);g.k.yr=aa(45);g.k.onPlaybackRateChange=function(a){var b=g.cU(this.provider);a&&a!==this.Mb&&(g.PX(this,b,"rate",[a]),this.Mb=a);this.reportStats(b)};
g.k.Xl=aa(17);g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,2048))return"B";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";if(g.jL(a)&&g.U(a,64))return"B";var b=I6a[mL(a)];g.fH(this.provider.Y)&&"B"===b&&3===this.provider.xa.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b};
g.k.ra=function(){g.K.prototype.ra.call(this);window.clearInterval(this.ib)};
g.k.va=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Dc.indexOf(a);e||this.Dc.push(a);if(!c||!e){b="string"!==typeof b?zH(b):b;b=nSa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.cU(this.provider);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.j.ctmp=d;UX(this);return f}};
g.k.VA=function(a,b,c){this.I={N3:Number(this.va("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),IR:a,D3:b,isAd:c}};
g.k.Xt=function(a,b,c){g.PX(this,g.cU(this.provider),"ad_playback",[a,b,c])};
var L3={},I6a=(L3[5]="N",L3[-1]="N",L3[3]="B",L3[0]="EN",L3[2]="PA",L3[1]="PL",L3);pSa.prototype.update=function(){if(this.J){var a=this.provider.xa.wj()||0,b=g.cU(this.provider);if(a!==this.j||sSa(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.lastUpdateTime+2||sSa(this,a,b))){var d=this.provider.xj();c=d.volume;var e=c!==this.Z;d=d.muted;d!==this.T?(this.T=d,c=!0):(!e||0<=this.C||(this.Z=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(ZX(this),this.u=a);this.lastUpdateTime=b;this.j=a}}};$X.prototype.send=function(a){var b=this;if(!this.Sa){var c=bY(this),d=g.ti(this.uri,c);this.Z&&!this.Y.N("html5_simplify_pings")?xSa(this,d):aY(this,a).then(function(e){b.Z&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});OX(d,e,{token:b.J,hM:b.ib,mdxEnvironment:b.mdxEnvironment},b.Y,a,b.oa,b.isFinal&&b.Ve||b.ya||b.B&&b.We)});
this.Sa=!0}};
$X.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var M3={},vSa=(M3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,M3.LIVING_ROOM_APP_MODE_MAIN=1,M3.LIVING_ROOM_APP_MODE_KIDS=2,M3.LIVING_ROOM_APP_MODE_MUSIC=3,M3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,M3.LIVING_ROOM_APP_MODE_GAMING=5,M3),N3={},uSa=(N3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,N3.EMBEDDED_PLAYER_MODE_DEFAULT=1,N3.EMBEDDED_PLAYER_MODE_PFP=2,N3.EMBEDDED_PLAYER_MODE_PFL=3,N3);g.v(dY,g.K);g.k=dY.prototype;g.k.pe=function(){this.j.update();var a;if(a=this.provider.videoData.isLoaded()&&this.provider.videoData.Mb&&this.u&&!this.ea)a=this.j,a=a.D+a.provider.xa.wj()-a.u>=this.provider.videoData.Mb;a&&(this.u&&this.provider.videoData.Mb&&(a=eY(this,"delayplay"),a.Od=!0,a.send(),this.ea=!0),ySa(this))};
g.k.Vc=function(a){if(!this.isDisposed())if(g.U(a.state,2)||g.U(a.state,512))this.currentPlayerState="paused",(g.xK(a,2)||g.xK(a,512))&&this.u&&(iY(this),kY(this).send(),this.D=NaN);else if(g.U(a.state,8)){this.currentPlayerState="playing";var b=this.u&&isNaN(this.C)?fY(this):NaN;!isNaN(b)&&(0>wK(a,64)||0>wK(a,512))&&(a=jY(this,!1),a.D=b,a.send())}else this.currentPlayerState="paused"};
g.k.ra=function(){g.K.prototype.ra.call(this);iY(this);qSa(this.j)};
g.k.Yb=function(){return bY(eY(this,"playback"))};
g.k.Ix=function(){this.provider.videoData.T.eventLabel=rJ(this.provider.videoData);this.provider.videoData.T.playerStyle=this.provider.Y.playerStyle;this.provider.videoData.Ng&&(this.provider.videoData.T.feature="pyv");this.provider.videoData.T.vid=this.provider.videoData.videoId;var a=this.provider.videoData.T;var b=this.provider.videoData;b=b.isAd()||!!b.Ng;a.isAd=b};
g.k.Ui=function(a){var b=eY(this,"engage");b.T=a;return tSa(b,DSa(this.provider))};CSa.prototype.isEmpty=function(){return this.endTime===this.startTime};mY.prototype.N=function(a){return this.Y.N(a)};
var ESa={other:1,none:2,wifi:3,cellular:7};g.v(g.nY,g.K);g.k=g.nY.prototype;g.k.Vc=function(a){if(g.xK(a,1024)||g.xK(a,512)||g.xK(a,4)){var b=this.B;0<=b.u||(b.j=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.D||(b.u=-1))}if(this.provider.videoData.enableServerStitchedDai&&this.Gh){var c;null==(c=this.u.get(this.Gh))||c.Vc(a)}else this.j&&this.j.Vc(a);this.qoe&&this.qoe.Vc(a);this.B.Vc(a)};
g.k.pe=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Gh){var a;null==(a=this.u.get(this.Gh))||a.pe()}else this.j&&this.j.pe()};
g.k.Jd=function(a,b){this.qoe&&lSa(this.qoe,a,b);this.B.onError(a)};
g.k.GA=function(a){this.qoe&&this.qoe.GA(a)};
g.k.xA=function(a){this.qoe&&this.qoe.xA(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.zr=aa(41);g.k.va=function(a,b,c){this.qoe&&this.qoe.va(a,b,c)};
g.k.VA=function(a,b,c){this.qoe&&this.qoe.VA(a,b,c)};
g.k.UA=function(a){this.qoe&&this.qoe.UA(a)};
g.k.Xt=function(a,b,c){this.qoe&&this.qoe.Xt(a,b,c)};
g.k.yr=aa(44);g.k.Xl=aa(16);g.k.Cz=function(){if(this.qoe)return this.qoe.Cz()};
g.k.Yb=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Gh){var a;null==(a=this.u.get(this.Gh))||a.Yb()}else if(this.j)return this.j.Yb();return{}};
g.k.Ui=function(a){return this.j?this.j.Ui(a):function(){}};
g.k.Ix=function(){this.j&&this.j.Ix()};g.v(oY,g.K);g.k=oY.prototype;g.k.xe=function(a,b){this.Am();b&&2E3<=this.j.array.length&&this.nz("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.qc(b.array,c,b.j)}this.u=NaN;this.Am()};
g.k.yh=function(a){1E4<a.length&&g.aA(new g.Yv("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)});
RSa(this.j,b);this.Am()}};
g.k.nz=function(a,b){var c=(isNaN(this.u)?g.U(this.D(),2)?0x8000000000000:1E3*this.T():this.u)-b;b=this.El().filter(function(d){return d.namespace===a&&d.end<c});
this.yh(b);return b};
g.k.El=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.C.stop();this.j.array=[];this.B=[];this.Am()};
g.k.Df=function(a){var b=this.El().filter(function(c){return c.namespace===a});
this.yh(b);return b};
g.k.Vc=function(a){this.started&&(this.Am(),g.U(a.rr,16)&&(a=QSa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.iI=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.lI=function(a){var b=[];if(!a.length)return b;a.sort(g.dB);a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.Am=function(){this.I=!0;if(!this.J){for(var a=3;this.I&&a;)this.I=!1,this.J=!0,this.SQ(),this.J=!1,a--;this.D().Rc()&&(a=QSa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.oa(),this.C.start(a)))}};
g.k.SQ=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.U(a,32)&&this.ea.start();for(var b=g.U(this.D(),2)?0x8000000000000:1E3*this.T(),c=g.U(a,2),d=[],e=[],f=g.t(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.lI(e));f=e=null;c?(a=OSa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=PSa(this.j)):a=this.u<=b&&kL(a)?NSa(this.j,this.u,b):OSa(this.j,b);
d=d.concat(this.iI(a));e&&(d=d.concat(this.lI(e)));f&&(d=d.concat(this.iI(f)));this.u=b;SSa(this,d)}};
g.k.ra=function(){this.B=[];this.j.array=[];g.K.prototype.ra.call(this)};
g.VT.ID(oY,{xe:"crmacr",iI:"crmncr",lI:"crmxcr",SQ:"crmis",yh:"crmrcr"});g.v(sY,g.Mz);sY.prototype.bp=function(){return this.J};
sY.prototype.Hl=function(){return Math.max(this.T()-YSa(this,!0),this.videoData.Td())};g.v(xY,g.K);xY.prototype.Vc=function(){g.io(this.B)};
xY.prototype.D=function(){var a=this,b=this.xa.Zd(),c=this.xa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.U(c,8)&&g.U(c,16),h=this.xa.Jq().isBackground()||c.isSuspended();yY(this,this.Ba,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);f=f&&l&&$Ea(b,this.j);l=!d||10<Math.abs(d-this.j);yY(this,this.Ka,f&&l&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var m=f&&fF(b.jh(),this.j);f=this.xa.Ia;l=!f||!f.policy.Oa;var n=function(){b.seekTo(a.j+.001)};
yY(this,this.oa,m&&l&&!h,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return EX(a.xa)};
yY(this,this.ya,m&&!h,e,"qoe.slowseek",l,"new_elem");var p=kL(c);m=g.lL(c);var q=b.jh(),r=eF(q,d);aTa(this,b,q,d,h,p,m);var w=0<=r&&q.end(r)>d+5;w=p&&m&&w;yY(this,this.J,w&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");yY(this,this.T,w&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var y=f.getCurrentTime();n=b.Ws();n=zza(n,y);n=!f.Tg()&&d===n;yY(this,this.Wa,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(y)},"seek_to_loader")}n={};
w=eF(q,Math.max(d-3.5,0));var z=0<=w&&d>q.end(w)-1.1,B=0<=w&&w+1<q.length?q.start(w+1)-q.end(w):9999;n.mindex=r;n.disIndex=w;n.isdisc=0<=w&&z&&11>B;n.close2edge=z;n.gapsize=B;n.buflen=q.length;yY(this,this.Z,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},"timeout",n);
q=c.isSuspended();q=g.Sb(this.xa.Zl,"ad")&&!q;yY(this,this.I,q,!q,"qoe.start15s",function(){a.xa.Of("ad")},"ads_preroll_timeout");
q=this.xa.getVideoData();r=.5>d-this.C;n=q.isAd()&&p&&!m&&r;p=function(){var D=a.xa,G=D.Xh.Lc();(!G||!D.videoData.isAd()||G.getVideoData().Gc!==D.getVideoData().Gc)&&D.videoData.Oe||D.wg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+D.videoData.videoId)};
yY(this,this.Ma,n,!n,"ad.rebuftimeout",p,"skip_slow_ad");m=q.isAd()&&m&&fF(b.jh(),d+5)&&r;yY(this,this.Oa,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");yY(this,this.Sa,g.jL(c)&&g.U(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
yY(this,this.ea,!!f&&!f.mediaSource&&g.jL(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
xY.prototype.Jd=function(a,b,c){b=this.Yb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.xa.Jd(new AH(a,b));this.u[a]=!0};
xY.prototype.Yb=function(a){a=Object.assign(this.xa.Yb(!0),a.Yb());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};
vY.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
vY.prototype.Yb=function(){var a={},b=(0,g.Q)();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(AY,g.K);g.k=AY.prototype;g.k.setMediaElement=function(a){g.Lz(this.Oa);(this.mediaElement=a)?(lTa(this),zY(this)):DY(this)};
g.k.Vc=function(a){this.ea.Vc(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Rc()?g.io(this.oa):this.oa.stop());if(this.mediaElement)if(8===a.rr.state&&kL(a.state)&&g.lL(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.jh();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?eF(b,Math.max(a-3.5,0)):eF(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.Wa-c)||(this.xa.va("seekover",{b:dF(b,
"_"),cmt:a}),this.Wa=c,this.seekTo(c,{kt:!0,qe:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.Wa&&0<this.videoData.limitedPlaybackDurationInSeconds&&aUa(this.xa,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds)};
g.k.getCurrentTime=function(){return!isNaN(this.u)&&isFinite(this.u)?this.u:this.mediaElement&&kTa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.wj=function(){return this.getCurrentTime()-this.Bd()};
g.k.Hl=function(){return this.j?this.j.Hl():Infinity};
g.k.isAtLiveHead=function(a){if(!this.j)return!1;void 0===a&&(a=this.getCurrentTime());return uY(this.j,a)};
g.k.bp=function(){return!!this.j&&this.j.bp()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.mU?!1:c.mU;var d=void 0===c.nU?0:c.nU,e=void 0===c.kt?!1:c.kt,f=void 0===c.iM?0:c.iM,h=void 0===c.qe?"":c.qe;if(void 0===c.Wp?0:c.Wp)a+=this.Bd();if(c=a<this.Aa&&!!this.Ia){this.xa.va("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.Aa.toFixed(3)});this.Aa=NaN;this.timestampOffset-=1E3;var l;if(null!=(l=this.Ia)){mX(l,l.timestampOffset-1E3);var m=l.Nb,n=new Set;for(r in m.j){var p=m.j[r].index,q=p.Ss();q&&!n.has(q)&&
(q.startTime+=1E3,q.endTime=q.startTime+q.duration,n.add(q));p.segments.length&&(q=p.segments[p.segments.length-1],p.segments=[],p.segments.push(q))}l.D&&l.D.rL();rV(l.j,0,0,!0)}}var r=a;(l=!isFinite(r)||(this.j?uY(this.j,r):r>=this.Sd())||!g.jJ(this.videoData))||this.xa.va("seeknotallowed",{st:r,mst:this.Sd()});if(!l)return this.B&&(this.B=null,FY(this)),yh(this.getCurrentTime());if(.005>Math.abs(a-this.u)&&this.T)return this.D;h&&(r=a,(this.Y.C||this.N("html5_log_seek_reasons"))&&this.xa.va("seekreason",
{reason:h,tgt:r}));this.T&&DY(this);this.D||(this.D=new LG);a&&!isFinite(a)&&CY(this,!1);if(h=!c)h=a,h=this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.qj()&&0<ZK(this.mediaElement))||QI(this.videoData)&&this.Td()===this.Sd(!1)?!1:isFinite(h)?!0:QI(this.videoData)?!1:!0;h&&(a=GY(this,a,e));a&&!isFinite(a)&&CY(this,!1);this.C=a;this.Ka=f;this.u=a;this.j&&(e=this.j,f=a,ZSa(e,f,!1),$Sa(e,f));e=this.xa;f=a;e.Wc.C=f;h=e.Py;h.mediaTime=f;h.j=
!0;b&&vUa(e);e.Ko&&f>e.videoData.endSeconds&&isFinite(f)&&jUa(e);f<e.Sd()-.01&&(h=fL(e.playerState,2),g.U(h,8)&&(h=fL(h,4)),e.Zb(h));e.ma("SEEK_TO",e,f);this.D&&(b?d&&this.Ma.start(d):(this.T=!0,eTa(this)));(b=this.xa.Ko)&&a>b.start&&jUa(this.xa);return this.D};
g.k.Sd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.Sd();var b;if(BJ(this.videoData)&&(null==(b=this.mediaElement)?0:b.Co())&&this.videoData.j)return a=this.getCurrentTime(),QDa(1E3*this.sf(a))+a;if(QI(this.videoData)&&this.videoData.Yc&&this.videoData.j)return this.videoData.j.Sd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.j)return this.j.Hl();a=this.videoData.Sd();this.policy.j&&this.mediaElement&&(a=Math.max(a,aFa(this.mediaElement)));return a+
this.timestampOffset}return this.mediaElement?kv()?QDa(this.mediaElement.cC().getTime()):ZK(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.Td=function(){var a=this.videoData?this.videoData.Td()+this.timestampOffset:this.timestampOffset;if(BJ(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.sf(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.k.rI=function(){this.D||this.seekTo(this.C,{qe:"playbacktimeline_forceResumeTime_singleMediaSourceTransition"})};
g.k.ra=function(){EY(this,null);this.ea.dispose();g.K.prototype.ra.call(this)};
g.k.Yb=function(){var a={};this.Ia&&Object.assign(a,this.Ia.Yb());this.mediaElement&&Object.assign(a,this.mediaElement.Yb());return a};
g.k.IK=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return QI(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Bd=function(){return this.timestampOffset};
g.k.sf=function(a){return this.videoData.j.sf(a-this.timestampOffset)};
g.k.Us=function(){if(!this.mediaElement)return 0;if(kJ(this.videoData)){var a=aFa(this.mediaElement)+this.timestampOffset-this.Td(),b=this.Sd()-this.Td();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Us()};
g.k.qE=function(a){this.I&&(this.I.j=a.audio.index)};
g.k.N=function(a){return this.Y&&this.Y.N(a)};IY.prototype.isFinished=function(){return this.finished};
IY.prototype.start=function(){this.started=!0};
IY.prototype.reset=function(){this.finished=this.started=!1};JY.prototype.encrypt=function(a){(0,g.Q)();return(new zG(this.j.j)).encrypt(a,this.iv)};
JY.prototype.decrypt=function(a,b){(0,g.Q)();return(new zG(this.j.j)).decrypt(a,b)};nTa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.Kk.Pc("omd_s");c=new Uint8Array(16);pG()?d=new yG(a):e=new zG(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ja(3);break}f=b.j.shift();if(!d){h=e.decrypt(LC(f.buffer),c);m.Ja(4);break}return g.x(m,d.decrypt(LC(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new GC([l]);var p=f.YL,
q;null==(q=KY(b.Kk.Nd,p))||WW(q,p,n);m.Ja(2);break;case 3:b.Kk.Pc("omdf"),b.Kk.Pc("omd_c"),LY(b),b.u=!1,b.Kk.vK(),g.pa(m)}})};var xTa=!!Uint8Array.prototype.copyWithin,MY=[],oTa=[],rTa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],OY=[],NY=[],PY=[],pTa=[];g.v(zTa,OW);g.k=zTa.prototype;g.k.vK=function(){this.Nd.vK()};
g.k.nK=function(a,b){switch(a){case 10:var c=dI(b,FPa);a=c.m3;var d=!1;switch(a){case 0:this.C=!c.LS.j_;this.iv=c.LS.iv;break;case 2:break;case 23:var e=this.Nd;c=c.F_;e.Pc("omp_r");c.videoId&&(e.Vt=c.videoId);e.Vt!==e.videoData.videoId&&(e.videoData.QX=e.Vt,e.va("ompp","vid."+e.Vt));e.QJ=!0;break;case 24:c=this.Nd;c.Pc("omp_c");c.QJ=!1;c.jx=!1;var f;null!=(f=c.hd||(null==(e=c.og)?void 0:e.get(c.Vt)))&&(f.B=!0);RY(c);break;default:d=!0}this.Nd.Bj&&this.Nd.va("ombup","id.10;pt."+a+";len."+b.totalLength+
(d?";ignored.1":""));this.B=a;break;case 11:BTa(this,b);break;case 12:this.uK(b,!0);break;case 37:b=dI(b,APa);(b.uH||b.CM)&&b.videoId&&this.Nd.QP.set(b.videoId,b);break;default:this.Nd.Bj&&this.Nd.va("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
g.k.wK=function(a){var b=a.GQ,c=a.itag,d=a.Pl,e=a.du,f=a.Bp,h=a.startMs,l=a.durationMs,m=a.Sn,n=UPa(a,this.Nd.N("html5_onesie_ads"));c=G6a.has(ME[""+c]);d&&this.Pc(c?"oais_r":"ovis_r");var p=void 0!==this.j[n];this.Nd.Bj&&this.Nd.va("ombup","id.20;hid."+b+";fid"+n);this.u[b]=n;p||(this.j[n]={BQ:!1,Ol:c,headers:[]});this.j[n].headers.push(a);this.Nd.Jt(n,c,{Pl:!!d,du:null!=e?e:-1,Bp:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Sn:null!=m?m:0})};
g.k.uK=function(a,b){var c=MC(a,0);this.Nd.Bj&&this.Nd.va("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(1!==a.totalLength&&(a=a.split(1).Uj,c=this.u[c]||null)){this.Fi(this.j[c].Ol?"oafs_r":"ovfs_r");var d=this.queue;d.j.push({YL:c,buffer:a,isEncrypted:b});d.u||LY(d)}};
g.k.Uw=function(a){var b=MC(a,0);this.Nd.Bj&&this.Nd.va("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.u[b]||null)&&this.Nd.Uw(a)};
g.k.CK=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D;return g.A(function(G){switch(G.j){case 1:c.Nd.CK();d=LC(a);if(!b){f=d;G.Ja(2);break}return g.x(G,FTa(c.Nd,d,c.iv),3);case 3:f=G.u;case 2:e=f;if(!c.Nd.enableCompression){G.Ja(4);break}h=c.Nd.V();m=null==(l=performance)?void 0:l.now();return g.x(G,yTa(e,h.vl),5);case 5:e=G.u,c.Nd.va("decompression",{ds:"DecompressionStream"in window,wasm:!!h.vl,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=dI(e,KPa)}catch(E){return q=E instanceof
Error?{name:E.name,message:E.message}:{},q.webcrypto=""+ +!!pG(),q.enc=""+ +c.C,r=new AH("onesie.response.parse",q),G.return(Promise.reject(r))}if(1!==p.onesieProxyStatus)return w={st:p.onesieProxyStatus,webcrypto:""+ +!!pG(),textencoder:""+ +!!g.C.TextEncoder},y=new AH("onesie.response.badproxystatus",w),G.return(Promise.reject(y));if(200!==p.httpStatus)return z={st:p.httpStatus},B=new AH("onesie.response.badstatus",z),G.return(Promise.reject(B));D=g.SC(p.body);return G.return(D)}})};
g.k.Pc=function(a){this.Nd.Pc(a)};
g.k.Fi=function(a){return this.Nd.Fi(a)};g.v(ETa,g.K);g.k=ETa.prototype;g.k.Pc=function(a){this.xa.Pc(a)};
g.k.Fi=function(a){return this.xa.Fi(a)};
g.k.Yw=function(a,b){this.Kk.Yw(a,b)};
g.k.oK=function(){this.Pc("orfb");this.LD=!0;if(GTa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Ak(),rt:(1E3*nPa(this.Qj)).toFixed(),shost:g.fi(this.LK),trigger:"o1"};this.va("pathprobe",zH(a))}};
g.k.CK=function(){this.Pc("orpr");this.Pc("opr_r");this.EQ=!0};
g.k.Jt=function(a,b,c){if(this.og){var d=a.split(";")[0];if(!this.og.has(d)){var e=new SW(this);this.og.set(d,e);g.L(this,e)}var f;null==(f=this.og.get(d))||f.Jt(a,b,c)}else null==(d=this.hd)||d.Jt(a,b,c);RY(this)};
g.k.vK=function(){if(this.og)for(var a=g.t(this.og.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.og.get(b.value))||c.lr()}else null==(a=this.hd)||a.lr()};
g.k.va=function(a,b,c){this.xa.va(a,b,void 0===c?!1:c)};
g.k.Uw=function(a){var b;null==(b=KY(this,a))||b.Uw(a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,w,y,z,B,D;return g.A(function(G){switch(G.j){case 1:a.Zw.start();a.Pc("ogpd");a.Pc("or_i");if(b=CTa(a.videoData,a.Nq)){G.Ja(2);break}return g.x(G,DTa(a.videoData,a.Nq),3);case 3:b=G.u;case 2:if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new AH("onesie.unavailable.hotconfig",c),a.fail(d),G.return(a.Vn);a.uT=AC(b);f=g.yH(a.Y,g.vJ(a.videoData));if(!f.j){h=f.getValue();G.Ja(4);break}return g.x(G,f.j,5);case 5:h=G.u;case 4:l=
h;var E=a.playerRequest,J=a.Y,M=a.videoData,P=NT(a.uT);P=void 0===P?!1:P;var X=J.Qi,W="https://web.archive.org/web/20221116135136/https://youtubei.googleapis.com/youtubei/"+X.innertubeApiVersion+"/player";X.pJ&&l||(W=W+"?key="+X.innertubeApiKey);X=[{name:"Content-Type",value:"application/json"}];l&&X.push({name:"Authorization",value:"Bearer "+l});X.push({name:"User-Agent",value:g.sb()});g.uu("EOM_VISITOR_DATA")?X.push({name:"X-Goog-EOM-Visitor-Id",value:g.uu("EOM_VISITOR_DATA")}):(M=M.visitorData||g.uu("VISITOR_DATA"))&&X.push({name:"X-Goog-Visitor-Id",
value:M});(J=OF(J.experiments,"debug_sherlog_username"))&&X.push({name:"X-Youtube-Sherlog-Username",value:J});E=iya(JSON.stringify(E));m={url:W,httpHeaders:X,postBody:E,proxiedByTrustedBandaid:P,skipResponseEncryption:P};g.qa(G,6);if(a.N("html5_onesie_sync_request_encryption")||m.skipResponseEncryption||!pG()){X=a.Y;J=a.videoData;M=a.xa.getPlayerSize();var S=a.xa.getVisibilityState();P=a.XH.onesieUstreamerConfig;W=null==(n=a.videoData.bR)?void 0:n.CB;var ca=a.xE,O=lI(m,JPa);E={encryptedClientKey:ca.j.encryptedClientKey,
serializeResponseAsJson:!0,enableAdPlacementsPreroll:X.N("html5_onesie_ads"),enableCompressionResponseOnly:vQa(X,!!m.skipResponseEncryption)};m.skipResponseEncryption?E.unencryptedOnesieInnertubeRequest=O:(O=ca.encrypt(O),E.encryptedOnesieInnertubeRequest=O,(0,g.Q)(),O=QAa(new PAa(ca.j.B),O,ca.iv),E.hmac=O,E.iv=ca.iv);X=YW(X,J,M,S);e={qJ:E,AC:X,onesieUstreamerConfig:P,CB:W};G.Ja(8);break}return g.x(G,xQa(m,a.xE,a.Y,a.videoData,a.xa.getPlayerSize(),a.xa.getVisibilityState(),a.XH.onesieUstreamerConfig,
null==(p=a.videoData.bR)?void 0:p.CB),9);case 9:e=G.u;case 8:g.ra(G,7);break;case 6:return q=g.sa(G),a.logger.info("Failed to create OnesieRequestProto."),a.fail(q),G.return(a.Vn);case 7:return a.enableCompression=e.qJ.enableCompressionResponseOnly,a.Pc("osor"),r=tJa(),w=lI(e,HPa),y={method:"POST",body:w,headers:{"Content-Type":"text/plain",Referer:location.origin}},z=a.N("html5_onesie_media_capabilities"),P=b,X=a.videoData,W=ITa(a),J=z,J=void 0===J?!1:J,P.set("cpn",X.clientPlaybackNonce),P.set("opr",
"1"),E=X.V(),E.N("html5_onesie_ads")||(P.set("oaad","0"),P.set("oavd","0")),P.set("por","1"),pG()||P.set("onem","1"),0<X.startSeconds&&(P.set("osts",""+X.startSeconds),P.set("osbr","1"),P.set("osnz","1")),J||(W?(X=W.audio,P.set("pvi",W.video.join(",")),E.N("html5_onesie_disable_audio_bytes")||P.set("pai",X.join(",")),aJ||P.set("osh","1")):(P.set("oad","0"),P.set("ovd","0"),P.set("oaad","0"),P.set("oavd","0"))),a.Bj&&a.va("ombrs","1"),B=a.xa.V().schedule,a.Qj=new qW(a,{fh:B,eI:a.Bj}),b.set("rn",""+
a.Qj.requestNumber),a.LK=b.Ge(),jPa(a.Qj,a.LK),a.Pc("ocs"),a.Pc("or_p"),a.xhr=AW(new ED(b),r,a.Qj,aJ,y),a.DS.start(),a.Bj&&(null==(D=a.Nq)?0:D.D)&&a.va("ombhr",a.Nq.D),G.return(a.Vn)}})};
g.k.Lt=function(){this.Pc("orh_r")};
g.k.Cr=function(){!this.LD&&this.xhr.Ak()&&this.oK();this.Xi()};
g.k.tp=function(){this.Xi();if(!this.isDisposed()){var a=JTa(this),b=this.xhr;a.rc=b.status;if(b.rf()){var c="onesie.net";a.msg=b.rf()}else 400<=b.status?c="onesie.net.badstatus":b.TA()?this.EQ||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new AH(c,a)):(this.Pc("orf"),this.Pc("or_fs"),vW(this.Qj,(0,g.Q)(),b.Ak(),0),this.Bj&&this.va("rqs",a));this.Bj&&this.va("ombre","ok."+ +!c);this.jx=!1;RY(this);ATa(this.Kk);this.Zw.stop();var d;
if(c=null==(d=this.Nq)?void 0:xMa(d))for(d=0;d<c.length;d++)this.va("pathprobe",c[d])}};
g.k.OR=function(){if(this.playerResponse){var a;null==(a=this.xhr)||a.abort()}};
g.k.V=function(){return this.Y};
g.k.N=function(a){return this.Y.N(a)};
g.k.C_=function(){if(GTa(this)&&this.Nq&&(!this.LD||this.N("html5_onesie_probe_ec_hosts"))){var a=this.Nq;if(a.Y.experiments.gb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:AC(b.location);c&&MT(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:AC(d.location))&&MT(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:AC(e.location))&&MT(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:AC(c.location))&&MT(a,d,"o3",this)}}};
g.k.yQ=function(){this.logger.info("Onesie request timed out");this.jx=!1;if(!RY(this)){var a=JTa(this);a.timeout="1";this.fail(new AH("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=CH(a);this.KD?this.xa.Jd(a):(this.Vn.reject(a),this.KD=!0);ATa(this.Kk);this.Zw.stop();this.Pc("ore");this.Pc("or_fe");var c,d;null==(c=this.Nq)||null==(d=xMa(c))||d.forEach(function(e){b.va("pathprobe",e)});
this.dispose()};
g.k.ra=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();ATa(this.Kk);this.Yj.dispose();g.K.prototype.ra.call(this)};
g.k.Xi=function(){try{var a=this.xhr;102400<a.Ak()&&!this.TQ&&(this.Pc("or100k"),this.TQ=!0);for(var b={};a.Wo();){var c=a.mu();b.FF=c.totalLength;this.Bj&&this.va("ombrss","len."+b.FF);this.Yj.feed(c);if(this.N("html5_xhr_clean_up_multi_slice_facade"))break;b={FF:b.FF}}if(this.og)for(var d=g.t(this.og.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.og.get(e.value))||a.lr();else{var f;null==(f=this.hd)||f.lr()}}catch(h){this.fail(h)}};var OTa=!1;g.v(g.VY,g.Mz);g.k=g.VY.prototype;g.k.ra=function(){this.gT();this.NE.stop();window.clearInterval(this.GE);QMa(this.Lf);this.visibility.unsubscribe("visibilitystatechange",this.Lf);GSa(this.qc);g.Ze(this.qc);aZ(this);g.co.Bl(this.Ut);this.Ci();this.gf=null;g.Ze(this.videoData);g.Ze(this.Cl);g.$e(this.S_);this.Ko=null;g.Mz.prototype.ra.call(this)};
g.k.UA=function(a){this.qc.UA(a)};
g.k.Xt=function(a,b,c,d){this.qc.Xt(a,b,c);this.N("html5_log_media_perf_info")&&this.va("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.zI=function(){var a;return null==(a=this.Ia)?void 0:a.zI()};
g.k.BI=function(){var a;return null==(a=this.Ia)?void 0:a.BI()};
g.k.CI=function(){var a;return null==(a=this.Ia)?void 0:a.CI()};
g.k.AI=function(){var a;return null==(a=this.Ia)?void 0:a.AI()};
g.k.In=function(){return this.videoData.In()};
g.k.getVideoData=function(){return this.videoData};
g.k.V=function(){return this.Y};
g.k.Jq=function(){return this.visibility};
g.k.Zd=function(){return this.mediaElement};
g.k.GH=function(){if(this.videoData.isLoaded()){var a=this.Cl;0<g.YF(a.j.experiments,"html5_player_min_build_cl")&&488224367<g.YF(a.j.experiments,"html5_player_min_build_cl")&&LRa(a,"oldplayer");fUa(this)}else this.videoData.Jg||this.videoData.Im?this.Uq&&g.fH(this.Y)&&this.videoData.isLivePlayback||(this.videoData.Jg?tDa(this.videoData):(a=this.qc,a.qoe&&(a=a.qoe,VX(a,"protected"),a.provider.videoData.Z?a.yT():a.provider.videoData.subscribe("dataloaded",a.yT,a)),qDa(this.videoData))):!this.videoData.Oa&&
this.yY&&dUa(this)};
g.k.xw=aa(7);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.ma("internalAbandon"),this.AL(!0),GSa(this.qc),g.Ze(this.qc),g.co.Bl(this.Ut));var a;null==(a=this.Y.Gj)||a.flush()};
g.k.Au=function(){FSa(this.qc)};
g.k.wg=function(a,b,c,d,e,f){var h,l;g.qf(o6a,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+TN());b={errorCode:a,errorDetail:e,errorMessage:l||g.jQ[h]||"",jI:h,Dl:f||"",PE:d,OC:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;$Y(this,"dataloaderror");this.Zb(dL(this.playerState,128,b));g.co.Bl(this.Ut);aZ(this);this.hm()};
g.k.Of=function(a){this.Zl=this.Zl.filter(function(b){return a!==b});
this.wp.started&&eUa(this)};
g.k.zn=function(){var a;(a=!!this.Zl.length)||(a=this.ai.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.bp=function(){return this.Wc.bp()};
g.k.Rc=function(){return this.playerState.Rc()};
g.k.bA=function(){return this.playerState.bA()&&this.videoData.Km};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.gf){var a=this.gf;a=a.videoData.Fv.compose(a.videoData.mO);a=iC(a)}else a="auto";return a};
g.k.Fz=aa(11);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.Ef()===this.mediaElement.Ef()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.Lz(this.Mx),this.mediaElement=a,wUa(this),this.Wc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ci();if(!this.playerState.isError()){var b=fL(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=eL(b,1));a.isView()&&(b=fL(b,64));this.Zb(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);
wUa(this);this.Wc.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.Cl.hA&&WEa(this.mediaElement)}};
g.k.Ci=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.Wc.C=c);this.Wc.setMediaElement(null);!a&&WY(this)?sUa(this):fZ(this);this.Ia&&(jX(this.Ia),gZ(this,b));this.Et.stop();if(this.mediaElement&&(!this.wp.started||this.playerState.isError()||g.U(this.playerState,2)||this.Zb(eL(this.playerState,512)),this.mediaElement)){g.Lz(this.Mx);if(a||!this.mediaElement.isView())this.mediaElement.stopVideo(),hZ(this);this.mediaElement=null}}};
g.k.playVideo=function(){var a=this,b,c,d,e,f;return g.A(function(h){if(1==h.j){var l=window.google_image_requests;l&&10<l.length&&(window.google_image_requests=l.slice(-10));if(g.U(a.playerState,128))return h.return();if(a.Cl.QD())return a.ma("signatureexpired"),h.return();a.mediaElement&&(l=a.qc,LX(l.B),l.qoe&&XX(l.qoe));iUa(a);g.U(a.playerState,64)&&a.Zb(eL(a.playerState,8));return a.wp.isFinished()&&a.mediaElement?a.gf||!a.IA?h.Ja(2):g.x(h,a.IA,3):h.return()}if(2!=h.j&&g.U(a.playerState,128))return h.return();
if(!a.videoData.C)return a.videoData.isLivePlayback&&!g.eG(a.Y.B,!0)?(b="html5.unsupportedlive",c=2):(b=a.videoData.In()?"fmt.unplayable":"fmt.noneavailable",c=1),g.aA(Error("selectableFormats")),a.wg(b,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),h.return();if(a.Rg()&&a.videoData.C.j)return h.return(ZY(a));if(OI(a.videoData)){d=a.getCurrentTime()<a.Td()-15;e=g.jJ(a.videoData)&&g.iL(a.playerState);(f=g.U(a.playerState,1024))||!d&&!e||(e?a.seekTo(Infinity,{qe:"videoplayer_unpauseLiveOnly"}):
a.seekTo(a.Td(),{qe:"videoplayer_outOfWindow"}));!a.isAtLiveHead(void 0,!0)&&a.bp()&&a.seekTo(Infinity,{qe:"videoplayer_peggedToLive"});if(l=g.U(a.playerState,256)&&a.videoData.Wa)l=a.Wc,l=l.T&&!isFinite(l.u);if(l)return a.Zb(gL(a.playerState,8,4)),h.return()}g.U(a.playerState,4)&&g.U(a.playerState,16)&&a.Zb(gL(a.playerState,9,4));if(UY(a))return DUa(a),h.return();CUa(a);g.pa(h)})};
g.k.xq=function(){if(!this.gf)return[];var a=IX(this.Oh,this.gf,this.Ts());return this.gf.j.xq(a)};
g.k.vz=function(){if(!this.gf)return[];var a=IX(this.Oh,this.gf,this.Ts());return this.gf.j.vz(a)};
g.k.Ts=function(){var a=this.Me?this.Me.Ts():XI(this.videoData)&&this.videoData.j&&pC(this.videoData.j)?this.videoData.Vk?FI:ARa:FI;this.sL&&(a=a.compose(u5a));return a};
g.k.gD=function(){var a=this.Wf(),b=this.Xh.ud().videoId;return this.Xh.Ft.gD(a)||this.Xh.Ft.gD(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?iC(this.videoData.Fv):hC[KF()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.Hh!==a&&(this.va("toggle51",{pref:a}),this.videoData.Hh=a,g.zA("yt-player-audio51",a,2592E3),GX(this))};
g.k.getUserAudio51Preference=function(){var a=1;qH(this.Y)&&this.N("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.AA("yt-player-audio51"))?b:a};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(oUa(this)){var a=qUa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.ew=function(){if(this.Ia){var a=QI(this.videoData)&&this.videoData.Oe&&!this.videoData.isAd();this.Ia.ew(a)}};
g.k.Fq=function(){return this.mediaSource};
g.k.Vw=function(a){this.bx.set(a.initData,a);this.Me&&(this.Me.Vw(a),this.N("html5_eme_loader_sync")||this.bx.remove(a.initData))};
g.k.JK=function(a){this.videoData.ek=g.fC("auto",a,!1,"u");TY(this)};
g.k.qE=function(a){kUa(this,a.reason,a.video.info,a.audio.info);this.Wc.qE(a)};
g.k.rE=function(a){this.ma("localmediachange",a)};
g.k.Gx=function(){var a;null==(a=this.Ia)||a.Gx(this.Y)};
g.k.QD=function(){return this.Cl.QD()};
g.k.handleError=function(a){this.Cl.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.U(this.playerState,64)||g.U(this.playerState,2))&&!a)if(g.U(this.playerState,8))this.Zb(gL(this.playerState,4,8));else if(this.bA())UY(this);else return;g.U(this.playerState,128)||(a?this.Zb(eL(this.playerState,256)):this.Zb(gL(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.jJ(this.videoData)&&this.Ia&&gZ(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Ia&&(gZ(this,!1),this.Ia.uj())};
g.k.hm=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(WY(this)&&b){var c;null==(c=this.mediaElement)||c.hm()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}hZ(this);aZ(this);g.U(this.playerState,128)||(a?this.Zb(fL(fL(eL(this.playerState,4),8),16)):this.Zb(dL(this.playerState)));this.videoData.videoId&&this.Y.oa.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.U(this.playerState,2)&&UY(this);if(this.md){var c=this.md;isFinite(a)&&a<c.xa.Hl()?c.isLiveNow=!1:c.isLiveNow=!0}this.Wc.seekTo(a,b);this.ai.Am()};
g.k.getCurrentTime=function(){return this.Wc.getCurrentTime()};
g.k.wj=function(){return this.Wc.wj()};
g.k.Hl=function(){return this.Wc.Hl()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Bd())};
g.k.ww=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.ww());return 0<=a?a:this.getCurrentTime()};
g.k.sf=function(){var a;return(null==(a=this.videoData.j)?0:a.sf)?this.videoData.j.sf(this.getCurrentTime()-this.Bd()):this.mediaElement&&(a=this.mediaElement.cC())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Bd():this.Sd()?this.Sd():0};
g.k.Lz=function(){var a=new KSa;if(this.Ia){var b=this.Y.schedule;a.j=b.Z;a.C=b.oa;a.bandwidthEstimate=HG(b);a.u={d:FG(b).toFixed(2),st:(1E9*(b.j.gi()||0)).toFixed(2),bw:b.B.gi().toFixed(0),abw:b.I.gi().toFixed(0),v50:DG(b.u,.5).toFixed(2),v92:DG(b.u,.92).toFixed(2),v96:DG(b.u,.96).toFixed(2),v98:DG(b.u,.98).toFixed(2)};b=this.Ia;if(b.mediaSource&&!b.mediaSource.hg()&&(a.Fs=lW(b.videoTrack),a.B=lW(b.audioTrack),b.policy.rd)){var c=kW(b.videoTrack),d=kW(b.audioTrack),e=dF(b.mediaSource.u.Bg(),"_",
5),f=dF(b.mediaSource.j.Bg(),"_",5);Object.assign(a.u,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=fV(b.T)}else this.mediaElement&&(a.Fs=$K(this.mediaElement));a.D=this.isAtLiveHead()&&this.Rc()?YTa(this):NaN;return a};
g.k.Us=function(){return this.mediaElement?g.jJ(this.videoData)?1:kJ(this.videoData)?this.isAtLiveHead()||this.bp()?1:this.Wc.Us():this.mediaElement.Us():0};
g.k.Yb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.qc.Yb());this.mediaElement&&(Object.assign(b,this.mediaElement.Yb()),Object.assign(b,this.Oz()));this.Ia&&Object.assign(b,this.Ia.Yb());this.Me&&(b.drm=JSON.stringify(this.Me.Yb()));b.state=this.playerState.state.toString(16);g.U(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.zn()&&(b.prerolls=this.Zl.join(","));this.videoData.rd&&(b.ismb=this.videoData.rd);"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.Xh.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&FF(this.videoData.j)&&(b.segduration=FF(this.videoData.j)),a=this.Wc,b.lat=a.I?BNa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.We.toFixed(3);if(a=g.dZ(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=KF();b.release_version="youtube.player.web_20221113_00_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Ky([a])};
g.k.removeCueRange=function(a){this.ai.yh([a])};
g.k.nz=function(a,b){return this.ai.nz(a,b)};
g.k.Ky=function(a,b){this.ai.xe(a,b)};
g.k.VE=function(a){this.ai.yh(a)};
g.k.El=function(){return this.ai.El()||[]};
g.k.Rg=function(){return this.visibility.Rg()};
g.k.Lr=function(){this.mediaElement&&this.mediaElement.Lr()};
g.k.Y2=function(){$Y(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.KK=function(a){var b=a.target.Vf();if(this.mediaElement&&this.mediaElement.Vf()&&this.mediaElement.Vf()===b){IUa(this,a.type);switch(a.type){case "error":var c=bL(this.mediaElement)||"";if("capability.changed"===c){ZY(this);return}if(0<this.mediaElement.cf()&&HX(this.Cl,c,{msg:this.mediaElement.rf()}))return;if(this.isBackground()&&4===this.mediaElement.cf()){this.hm();bZ(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.mediaSource||0<
c)&&1!==c&&this.Rj(c);break;case "ratechange":this.Ia&&this.Ia.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.ai;c.started=!0;c.Am();this.qc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":KUa(this);this.ma("onLoadedMetadata");yUa(this);break;case "loadstart":yUa(this);break;case "progress":case "suspend":this.jc();this.ma("onLoadProgress",this,this.Us());break;case "playing":uP(this.Ab,"plev");this.vL&&(this.vL=!1,this.isAtLiveHead()||this.seekTo(Infinity,{qe:"videoplayer_onPlaying"}));
break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.qj();if(c&&(!this.lE||d))return;this.lE=this.lE||!!this.mediaElement.getCurrentTime();xUa(this);this.jc();if(!this.mediaElement||this.mediaElement.Vf()!==b)return;this.ma("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Ws().length&&0===this.mediaElement.jh().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&
this.Ia)return;break;case "resize":KUa(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.ma("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.VO&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.qw){bZ(this,"safari_autoplay_disabled");return}break;case "ended":if(null==(c=this.mediaSource)?0:c.Hn())return}if(this.mediaElement&&this.mediaElement.Vf()===b){this.ma("videoelementevent",a);b=this.playerState;c=this.videoData.clientPlaybackNonce;
if(!g.U(b,128)){d=this.Py;var e=this.mediaElement,f=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.kh()||1<h&&1.1>Math.abs(h-e.getDuration()),m="pause"===a.type&&e.kh();h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!pY(d,h);if(m||l&&h)0<e.mD()&&e.Vf()&&(f=14);else switch(a.type){case "error":bL(e)&&(f|=128);break;case "pause":g.U(b,256)?(f^=256)||(f=64):g.U(b,32)||g.U(b,2)||g.U(b,4)||(f=4,g.U(b,1)&&g.U(b,8)&&(f|=
1));break;case "playing":f=(f|8)&-1093;pY(d,e.getCurrentTime())&&(f&=-2);g.U(b,1)&&qY(d,e.getCurrentTime(),(0,g.Q)(),$K(e))&&(f|=1);break;case "seeking":f|=16;g.U(b,8)&&(f|=1);f&=-3;break;case "seeked":f&=-17;break;case "waiting":g.U(b,2)||(f|=1);qY(d,e.getCurrentTime(),(0,g.Q)(),$K(e));break;case "timeupdate":l=g.U(b,16),m=g.U(b,4),(g.U(b,8)||l)&&!m&&pY(d,e.getCurrentTime())&&(f=8),qY(d,e.getCurrentTime(),(0,g.Q)(),$K(e))&&(f|=1)}}d=f;f=null;d&128&&(f=a.target,e=bL(f),l=1,e?("capability.changed"===
e&&(l=2),m="GENERIC_WITHOUT_LINK",h=f.Yb(),h.mediaElem="1",/AUDIO_RENDERER/.test(f.rf())&&(m="HTML5_AUDIO_RENDERER_ERROR"),f={errorCode:e,errorMessage:g.jQ[m]||"",jI:m,PE:zH(h),OC:l,cpn:b.stateData?b.stateData.cpn:""}):f=null,f&&(f.cpn=c));b=dL(b,d,f)}!g.U(this.playerState,1)&&g.U(b,1)&&GUa(this,"evt"+a.type);this.Zb(b)}}};
g.k.l0=function(a){a="available"===a.j.availability;a!==this.Yz&&(this.Yz=a,this.ma("airplayavailabilitychange"))};
g.k.m0=function(){var a=(0,g.Q)(),b=this.mediaElement.Rg();this.va("airplay",{ia:b});!b&&!isNaN(this.TD)&&2E3>a-this.TD||(this.TD=a,b!==this.Rg()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Lf()),this.va("airplay",{rbld:b}),GX(this)),this.ma("airplayactivechange"))};
g.k.Rz=function(a){if(this.Ia){var b=this.Ia,c=b.j,d=b.currentTime,e=Date.now()-c.Z;c.Z=NaN;c.va("sdai",{adfetchdone:a,d:e});c.policy.Xa?(a&&!isNaN(c.B)&&3!==c.u&&dX(c.Ia,d,c.B,c.C),c.J=NaN,qV(c,4,3===c.u?"adfps":"adf")):(a&&!isNaN(c.B)&&dX(c.Ia,d,c.B,c.C),qV(c,4,"adf"));jX(b)}};
g.k.jc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){gTa(this.Wc,this.Rc());var c=this.getCurrentTime();this.Ia&&(g.U(this.playerState,4)&&g.jJ(this.videoData)||TQa(this.Ia,c));5<c&&(this.Wc.C=c);var d=g.Wv();d?g.co.Bl(this.Ut):g.Tu(this.Ut);var e=this.mediaElement.Co();if((g.lL(this.playerState)||!e||BJ(this.videoData))&&!g.U(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.U(b.playerState,128)){b.Y.C&&g.YF(b.Y.experiments,"html5_log_rebuffer_events")&&
IUa(b,"pfx");var h=b.getCurrentTime(),l=$K(b.mediaElement),m=g.U(b.playerState,8),n=pY(b.Py,h),p=qY(b.Py,h,(0,g.Q)(),l);m&&n?b.Zb(fL(b.playerState,1)):m&&p?(m=b.getDuration(),n=OI(b.videoData),m&&1.1>Math.abs(m-h)?(b.va("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Vs()?b.seekTo(0,{qe:"videoplayer_loop"}):dU(b)):(g.lL(b.playerState)||GUa(b,"progress_fix"),b.Zb(eL(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.hA)/1E3,n=b.getDuration(),h>n-1&&b.va("misspg",{t:h.toFixed(2),d:n.toFixed(2),
r:m.toFixed(2),bh:l.toFixed(2)})),g.iL(b.playerState)&&g.lL(b.playerState)&&5<$K(b.mediaElement)&&b.Zb(fL(b.playerState,1)));b.jc()}};
0===this.mediaElement.Ws().length?this.Ut=d?g.co.Wh(f,100):g.Ru(f,100):this.Ut=d?g.co.Wh(f,500):g.Ru(f,500)}this.videoData.ZJ=c;!a&&this.Rc()&&BUa(this);XRa(this.Oh,this.gf,this.Zd(),this.isBackground())&&TY(this);YRa(this.Oh,this.videoData.B)&&(this.qc.Jd("qoe.restart","droprate."+this.Oh.J),DAa(this.Y.B),GX(this));this.ma("progresssync",this,a);e&&BJ(this.videoData)&&this.ma("onVideoProgress",this,this.getCurrentTime())}};
g.k.zZ=function(){this.wg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.Cz=function(){return this.qc.Cz()};
g.k.wI=function(){return this.Ia?this.Ia.wI():HG(this.Y.schedule,!0)};
g.k.BY=function(){g.lL(this.playerState)&&VRa(this.Oh,this.gf)&&TY(this)};
g.k.Zb=function(a){if(!g.hL(this.playerState,a)){var b=new g.vK(a,this.playerState);this.playerState=a;JUa(this);var c=!this.IE.length;this.IE.push(b);var d=this.mediaElement&&this.mediaElement.Tg();g.xK(b,1)&&!g.U(b.rr,16)&&!d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.Ia&&(this.Ia.cA=!0,this.mediaElement&&5<=$K(this.mediaElement)&&((d=g.YF(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.KR.start(d):VRa(this.Oh,this.gf)&&TY(this)));(d=g.YF(this.Y.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.fH.start(d):this.fH.stop();(0>wK(b,8)||g.xK(b,1024))&&this.Et.stop();!g.xK(b,8)||this.videoData.Wa||g.U(b.state,1024)||this.Et.start();g.U(b.state,8)&&0>wK(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&kJ(this.videoData)&&(this.Rj(this.getCurrentTime()),this.jc(!0));g.xK(b,2)&&this.AL(!0);g.xK(b,128)&&this.hm();this.videoData.j&&this.videoData.isLivePlayback&&!this.wU&&(0>wK(b,8)?(a=this.videoData.j,a.C&&a.C.stop()):
g.xK(b,8)&&this.videoData.j.resume());this.Wc.Vc(b);this.qc.Vc(b);if(c&&!this.isDisposed())try{for(var e=g.t(this.IE),f=e.next();!f.done;f=e.next()){var h=f.value;this.ai.Vc(h);this.ma("statechange",h)}}finally{this.IE.length=0}}};
g.k.zA=function(){this.videoData.isLivePlayback||this.N("html5_disable_connection_issue_event")||this.ma("connectionissue")};
g.k.EK=function(){this.Ab.tick("qoes")};
g.k.rI=function(){this.Wc.rI()};
g.k.pE=function(a,b,c,d){a:{var e=this.Cl;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=BH(b);"drm.keyerror"===a&&this.Me&&1<this.Me.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())NRa(e,a);else{if(e.xa.wg(a,b,d,c),HRa(e,{detail:c}))break a}else e.Jd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.va("retrydrm",{sessionLimitExhausted:1}),e.D++,FUa(e.xa))}};
g.k.Y0=function(){var a=this,b=g.YF(this.Y.experiments,"html5_license_constraint_delay"),c=uv();b&&c?(b=new g.ho(function(){cZ(a);$Y(a)},b),g.L(this,b),b.start()):(cZ(this),$Y(this))};
g.k.BA=function(a){this.ma("heartbeatparams",a)};
g.k.Ar=function(a){this.va("keystatuses",tX(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=rRa(b,c);d=sX(a)?uX(a,d):a.D.includes(d)}else{a:{b=rRa(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.oa&&d;c&&!b?NRa(this.Cl):d||uX(a,"AUDIO")&&uX(a,"SD")||(a=tX(a),this.sL?(this.ma("drmoutputrestricted"),
this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.wg("drm.keyerror",2,void 0,"info."+a)):(this.sL=!0,this.Jd(new AH("qoe.restart",Object.assign({},{retrydrm:1},a))),TY(this),FUa(this)))};
g.k.b1=function(){if(!this.videoData.Wa&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.qj()&&5<=$K(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Zb(eL(this.playerState,1)),GUa(this,"load_soft_timeout"),this.ma("playbackstalledatstart"),a="1");JUa(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!XI(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Gd)||this.Me),mfmtinfo:!this.videoData.B,prerolls:this.zn()?this.Zl.join(","):
"0"};if(this.Me){b=this.Me;if(0>=b.u.size){var c="ns;";b.Z||(c+="nr;");b=c+="ql."+b.B.length}else b=tX(b.u.values().next().value),b=zH(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Ia)?void 0:d.Yb())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.Yb())||{});this.qc.Jd("qoe.start15s",zH(a));this.ma("loadsofttimeout")}};
g.k.Rj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,$Y(this))};
g.k.AL=function(a){var b=this;a=void 0===a?!1:a;if(!this.oC){YB("att_s","player_att")||ZB("att_s",void 0,"player_att");var c=new g.kIa(this.videoData);if("c1a"in c.j&&!g.WN.isInitialized()&&(ZB("att_wb",void 0,"player_att"),2===this.rH&&.01>Math.random()&&g.aA(Error("Botguard not available after 2 attempts")),!a&&5>this.rH)){g.io(this.sH);this.rH++;return}if("c1b"in c.j){var d=ISa(this.qc);d&&nIa(c).then(function(e){e&&!b.oC&&d?(ZB("att_f",void 0,"player_att"),d(e),b.oC=!0):ZB("att_e",void 0,"player_att")},
function(){ZB("att_e",void 0,"player_att")})}else(a=g.lIa(c))?(ZB("att_f",void 0,"player_att"),HSa(this.qc,a),this.oC=!0):ZB("att_e",void 0,"player_att")}};
g.k.Sd=function(a){return this.Wc.Sd(void 0===a?!1:a)};
g.k.Td=function(){return this.Wc.Td()};
g.k.Bd=function(){return this.Wc?this.Wc.Bd():0};
g.k.getStreamTimeOffset=function(){return this.Wc?this.Wc.getStreamTimeOffset():0};
g.k.Qo=function(){var a=0;this.Y.N("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Bd():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&JX(this.Oh,null==(b=this.videoData.C)?void 0:b.videoInfos)&&TY(this);this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=sK(this);b&&0<b.videoHeight&&(a=IE(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
g.k.Ix=function(){this.qc.Ix()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.qc;c.j?(c=eY(c.j,"engage"),c.T=a,c.send(b)):b&&b()};
g.k.Ui=function(a){return this.qc.Ui(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return OI(this.videoData)&&(this.AQ||b)?this.Wc.isAtLiveHead(a):!1};
g.k.Cq=function(){var a=this.Sd(),b=this.getCurrentTime(),c;(c=!OI(this.videoData))||(c=this.Wc,c=!(c.j&&c.j.B));return c||this.bp()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Xl=aa(15);g.k.zr=aa(40);g.k.yr=aa(43);g.k.Oz=function(){return this.mediaElement?this.mediaElement.dC():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&this.mediaElement.setLoop(a);this.Ia&&this.N("html5_loop_skip_set_end_of_stream")&&(a?this.Ia.policy.Oa=!0:fX(this.Ia))};
g.k.Vs=function(){return this.mediaElement?this.mediaElement.Vs():this.loop};
g.k.IK=function(a){this.va("timestamp",{o:a.toString()});this.Wc.IK(a)};
g.k.Pc=function(a){this.Ab.tick(a)};
g.k.Fi=function(a){return this.Ab.Fi(a)};
g.k.va=function(a,b,c){this.qc.va(a,b,void 0===c?!1:c)};
g.k.jL=function(a,b,c){this.qc.va(a,b,void 0===c?!1:c)};
g.k.Jd=function(a){this.qc.Jd(a.errorCode,zH(a.details))};
g.k.VA=function(a,b,c){this.qc.VA(a,b,c)};
g.k.bI=function(a){this.videoData.tO=!0;HUa(this,a)};
g.k.JC=function(a){this.videoData.FO=!0;HUa(this,a)};
g.k.getPlayerSize=function(){return this.jB.getPlayerSize()};
g.k.Wi=function(){return this.jB.Wi()};
g.k.vj=function(){return this.Ab};
g.k.N=function(a){return this.Y.N(a)};
g.k.qH=function(){if(MI(this.videoData,"html5_set_debugging_opt_in")){var a=g.Mv.getInstance();g.Nv(0,183)||(Ov(183,!0),a.save())}};
g.k.gT=function(){if(g.jL(this.playerState)){var a=XY.OP();0!==Object.keys(a).length&&this.qc.va("profile",a)}this.NE.start()};
g.k.Un=function(){var a=this.getCurrentTime(),b=a-this.Bd(),c=LUa(this,b);if(this.N("html5_skippable_seek_if_behind_live_head")){var d,e=(null==(d=this.Ia)?void 0:d.Ty(b))||0;if(0<e){if(this.Sd()>e)return this.seekTo(e,{qe:"skipServerStitchedAd"}),this.va("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var f;if(null==(f=this.Ia)?0:f.Un(b,c))return HY(this.Wc,a),this.va("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),!0}}else if(null==(e=this.Ia)?0:e.Un(b,c))return this.va("sdai",{skipad:1,ct:b.toFixed(3),
adj:c.toFixed(3)}),HY(this.Wc,a),!0;return!1};
g.k.NI=function(){return this.Y.Xe||""};
g.k.Wf=function(){return this.videoData.videoId};
g.k.Aw=function(a){return this.Ia?this.Ia.Aw(a):""};
g.k.Ez=function(){return this.Xh.Mt};g.v(g.iZ,g.K);g.iZ.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.Oa(a),f=O3[e];if(f){try{f.dispose()}catch(l){g.$z(l)}O3[e]=null}var h=new g.iZ(a,b,c,d);g.af(h,function(){O3[e]=null;h.qU&&h.qU()});
return O3[e]=h}catch(l){throw g.$z(l),l.stack;}};
g.k=g.iZ.prototype;g.k.Jq=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Il=function(){this.rJ||(this.rJ=g.QN(GL(),YHa()));return this.rJ};
g.k.isVideoInfoVisible=function(){return!(!this.bl||!this.bl.sb)};
g.k.Ci=function(){if(this.mediaElement){this.Px&&(this.events.zc(this.Px),this.Px=null);g.Lz(this.Zq);this.Eb&&this.Eb.Ci(!0);this.template.Ci();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.WE()}catch(a){g.aA(a)}this.mediaElement=null}};
g.k.Lc=function(){return this.Eb};
g.k.yp=function(){this.Eb!==this.ub&&eU(this,this.ub)};
g.k.Zv=function(a,b,c){var d=this,e=this.Ab;2===a&&(e=new tP(this.Y));return new g.VY(this.Y,a,e,this.template,function(f){return d.xp.ma.apply(d.xp,[f].concat(g.u(g.ya.apply(1,arguments))))},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
g.k.setIsExternalPlaylist=function(a){this.di=yv(!1,a)};
g.k.s0=function(){jZ(this)||this.Tn(5)};
g.k.E1=function(a){if(!jZ(this)){CVa(this);var b=a.getPlayerState();a.bA()?this.pauseVideo():g.jL(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return YE(a)};
g.k.V=function(){return this.Y};
g.k.getVideoData=function(){return this.Eb.getVideoData()};
g.k.Mz=aa(9);g.k.ud=function(){return this.ub.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.qO(this,a);return a?g.xJ(a.getVideoData())?1:(a=a.Zd())?a.Us():0:0};
g.k.fb=function(){return this.template};
g.k.vb=function(){return this.Bc};
g.k.vj=function(){return this.Ab};
g.k.vx=function(a){var b=g.qO(this,1);b&&dU(b,a)};
g.k.xj=function(){var a=this.Bc.RI();a.fs=this.Ua.isFullscreen();a.volume=Math.round(this.Ua.getVolume());a.muted=this.Ua.isMuted()?1:0;a.mos=a.muted;if(this.Y.N("html5_enable_embedded_player_visibility_signals")&&g.QG(this.Y)){if(this.DM){var b=this.DM;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.oH();1<c&&b.push(c);a.size=b.join(":")}}this.Eb===this.ub&&this.xb&&(a.clipid=
this.xb.postId);return a};
g.k.B3=function(){var a=this;this.N("html5_att_oauth")&&g.fH(this.Y)?g.yH(this.Y,g.vJ(this.getVideoData())).then(function(b){HL(GL(),b);a.N("html5_skip_att_fetch_no_oauth")&&!b||xIa(a.getVideoData(),a.Y,a.Il())}):xIa(this.getVideoData(),this.Y,this.Il())};
g.k.addBgVersionChangeCallback=function(a){aO.push(a)};
g.k.uI=function(a){var b=this;return g.A(function(c){return b.MS?c.return(b.MS.uI(a)):c.return(Promise.reject("web po not available"))})};
g.k.IL=function(a){this.MS=a};
g.k.Mk=function(a){1===a&&(this.Ab.tick("vr"),this.Rr||(this.Rr=kx(j5a,this.YR,this)),zUa(this.Eb),jJa(this.Ab,this.Eb.getVideoData(),BVa(this)),this.Bc.GC());var b=this.Y;(vH(b)&&b.D||g.YG(b))&&(this.Oe()||this.Ua.Qa("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Eb===this.ub&&this.Eb.Vs()!==a&&(this.Eb.setLoop(a),this.Ua.Qa("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Eb.Vs()};
g.k.setLoopRange=function(a){var b=!1;!!this.xb!==!!a?b=!0:this.xb&&a&&(b=this.xb.startTimeMs!==a.startTimeMs||this.xb.endTimeMs!==a.endTimeMs||this.xb.postId!==a.postId||this.xb.type!==a.type);if(b){this.ub.ai.Df("applooprange");if(a)b=new g.cB(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.ub.addCueRange(b);else{this.ud().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.xb)?void 0:c.type)||isNaN(Number(null==(d=this.xb)?void 0:d.loopCount))||(b={loopCount:String(this.xb.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.gw("repeatChapterLoopEvent",b))}this.xb=a;this.Ua.Qa("onLoopRangeChange",a||void 0);this.Eb===this.ub&&(this.dF(),this.Eb.Au())}};
g.k.getLoopRange=function(){return this.xb};
g.k.dF=function(){this.xb&&this.Eb===this.ub&&(nVa(this,this.ub.getCurrentTime())?this.xb.loopCount=0:oVa(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=UUa(this,a),this.ub.getPlaybackRate()!==a&&(this.ub.setPlaybackRate(a),b&&!this.Y.u&&g.zA("yt-player-playback-rate",a),this.Ua.Qa("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return RO(this.Bc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.qO(this):g.qO(this,a);if(!a)return 0;if(b){if(c&&this.ue&&(b=this.ue.kb/1E3,0!==b))return b;a=oZ(this,a);return wZ(this,a.getCurrentTime(),a)}c&&this.ue?(b=this.ue,a=a.getCurrentTime(),iU(b)?(b=rU(b,1E3*a))&&b.Up&&(a-=b.Up):(b=$Ma(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.ww=function(){var a=g.qO(this);if(!a)return 0;a=oZ(this,a);return wZ(this,a.ww(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.qO(this):g.qO(this,a);if(!a)return 0;if(c.hasProgressBarBoundaries()&&!d){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),h;c=Number(null==(h=c.progressBarEndPosition)?void 0:h.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=nZ(this,a),wZ(this,b.getDuration(),b);d&&this.ue?(b=this.ue,d=a.getCurrentTime(),b=iU(b)?b.ea?b.ea.durationMs/1E3:
0:(b=rU(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.Td=function(a){a=g.qO(this,a);if(!a)return 0;a=nZ(this,a);return wZ(this,a.Td(),a)};
g.k.sf=function(a){var b=g.qO(this,a);return b?this.Oe(b)?(b=nZ(this,b),b.sf()-b.getCurrentTime()+this.getCurrentTime(a)):b.sf():0};
g.k.YH=function(){this.template.YH();var a=this.G;a.element=this.template.element;var b=a.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=Iz(this.template.element))&&this.events.S(this.template,a,this.onFullscreenChange);this.events.S(window,"resize",this.b2)};
g.k.getDebugText=function(a){var b=this.ub.Yb(a);if(this.Eb&&this.Eb!==this.ub){for(var c=this.Eb.Yb(a),d=g.t(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=Ida("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Wg("video-ads");f?(JVa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.Wg("videoAdUiSkipContainer"),l=g.Wg("ytp-ad-skip-button-container"),m=h||l;m?(JVa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,
videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+Ig(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.Hq().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.WX)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.Db().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(jZ(this))return 3;var b;return a&&(null==(b=this.ue)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.qO(this).getPlayerType()};
g.k.Db=function(a){return 3===this.getPresentingPlayerType()?RO(this.Bc).Id:g.qO(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.KK=function(a){switch(a.type){case "loadedmetadata":uP(this.Ab,"fvb");uP(this.Ab,"fvb_r");this.bF.start();a=g.t(this.nx);for(var b=a.next();!b.done;b=a.next())b=b.value,zVa(this,b.id,b.T4,b.S4,void 0,!1);this.nx=[];break;case "loadstart":uP(this.Ab,"gv");break;case "progress":case "timeupdate":2<=hF(a.target.jh())&&uP(this.Ab,"l2s");break;case "playing":g.tH&&this.bF.start();if(g.fH(this.Y))a=!1;else{b=g.TO(this.vb());a="none"===this.mediaElement.getStyle("display")||0===Ig(this.mediaElement.getSize());
var c=YU(this.template),d=this.Eb.getVideoData(),e=g.ZG(this.Y)||g.$G(this.Y);d=YI(d);b=!c||b||e||d||this.Y.zd;a=a&&!b}a&&(this.Eb.va("hidden",{},!0),this.getVideoData().Ac||(this.getVideoData().Ac=1,this.jS(null),this.Eb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Ua.Qa("onLoadProgress",b)};
g.k.E2=function(){this.Ua.ma("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=oZ(this,a);b=wZ(this,a.getCurrentTime(),a);this.Ua.Qa("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Ua.Qa("onAutoplayBlocked")};
g.k.O1=function(){this.Ua.ma("progresssync")};
g.k.u0=function(a){if(1===this.getPresentingPlayerType()){g.xK(a,1)&&!g.U(a.state,64)&&this.ud().isLivePlayback&&this.ub.isAtLiveHead()&&1<this.Ua.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.xK(a,2)){if(this.xb&&this.xb.endTimeMs>=1E3*(this.getDuration()-1)){oVa(this);return}eVa(this)}if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Qa("onError",AIa(b.errorCode));this.Ua.Qa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.jI,cpn:b.cpn});6048E5<(0,g.Q)()-this.Y.We&&this.Ua.Qa("onReloadRequired")}b={};if(a.state.Rc()&&!g.lL(a.state)&&!YB("pbresume","ad_to_video")&&YB("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);KB(b,"ad_to_video");JB("pbresume",void 0,"ad_to_video");this.Bc.GC()}this.Ua.ma("applicationplayerstatechange",a)}};
g.k.CS=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ma("presentingplayerstatechange",a)};
g.k.Nh=function(a){mZ(this,mL(a.state));g.U(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(pO(this,{muted:!1,volume:this.Th.volume},!1),uZ(this,!1))};
g.k.q0=function(a,b,c){"newdata"===a&&XUa(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.xA=function(){this.Ua.Qa("onPlaybackAudioChange",this.Ua.getAudioTrack().Mc.name)};
g.k.GA=function(a){var b=this.Eb.getVideoData();a===b&&this.Ua.Qa("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.ub&&(this.Y.Mg=c.oauthToken);b===this.ub&&(this.getVideoData().enableServerStitchedDai&&!this.ue?this.ue=new g.jU(this.Ua,this.Y,this.ub):!this.getVideoData().enableServerStitchedDai&&this.ue&&(this.ue.dispose(),this.ue=null));if("newdata"===a)PP(this.Bc,2),this.Ua.ma("videoplayerreset",b);else{if(!this.mediaElement)return;if("dataloaded"===a)if(this.Eb===this.ub){if(cH(c.u,c.JR),!this.ub.getPlayerState().isError()){var d=jZ(this);this.ud().isLoaded();
d&&this.Tn(6);iVa(this);OP(this.Bc)||hVa(this)}}else iVa(this);if(1===b.getPlayerType()&&(this.Y.Ba&&IVa(this),this.getVideoData().isLivePlayback&&!this.Y.Rm&&this.ag("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(DDa(c)||this.getVideoData().Sx){d=this.Kv;var e=this.getVideoData(),f=this.ub;hO(d,"part2viewed",1,0x8000000000000,f);hO(d,"engagedview",Math.max(1,1E3*e.Mb),0x8000000000000,f);e.isLivePlayback||(e=1E3*e.lengthSeconds,hO(d,"videoplaytime25",.25*e,e,f),hO(d,"videoplaytime50",
.5*e,e,f),hO(d,"videoplaytime75",.75*e,e,f),hO(d,"videoplaytime100",e,0x8000000000000,f),hO(d,"conversionview",e,0x8000000000000,f),hO(d,"videoplaybackstart",1,e,f),hO(d,"videoplayback2s",2E3,e,f),hO(d,"videoplayback10s",1E4,e,f))}if(c.hasProgressBarBoundaries()){var h;d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.sf())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.OE.progressEndBoundary,(null==d?void 0:d.start)!==h&&(d&&this.VE([d]),
h=new g.cB(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.ub.addCueRange(h),this.OE.progressEndBoundary=h))}}this.Ua.ma("videodatachange",a,c,b.getPlayerType())}this.Ua.Qa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.dF();(a=c.aB)?this.Qq.uP(a,c.clientPlaybackNonce):KNa(this.Qq)};
g.k.Pv=function(){pZ(this,null);this.Ua.Qa("onPlaylistUpdate")};
g.k.NR=function(a){var b=a.getId(),c=this.ud(),d=!this.isInline();if(!c.inlineMetricEnabled||d){if("part2viewed"===b){if(c.lU&&g.nx(c.lU),c.zJ&&CZ(this,c.zJ),c.Lm){for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.t(c.Lm),h=f.next();!h.done;h=f.next())CZ(this,g.$n(h.value,e));c.QG=!0}}else"conversionview"===b?this.ub.Ix():"engagedview"===b&&c.Ng&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.nx(g.$n(c.Ng,e)));c.IU&&(e=a.getId(),e=Ju(c.IU,{label:e}),g.nx(e));switch(b){case "videoplaytime25":c.HJ&&
CZ(this,c.HJ);c.yv&&DZ(this,c.yv);c.PU&&g.nx(c.PU);(c.HJ||c.yv)&&this.Y.experiments.gb("enable_lr_home_infeed_ads_inline_playback_progress_pings")&&(c.Lm||g.aA(new g.Yv("empty promotedPlaybackQuartile0Urls but 25% quartile url exist in application.ts")),c.QG||g.aA(new g.Yv("promotedPlaybackQuartile0Urls did not get fired when the 25% quartile url is fired in application.ts")));break;case "videoplaytime50":c.BT&&CZ(this,c.BT);c.NJ&&DZ(this,c.NJ);c.QU&&g.nx(c.QU);break;case "videoplaytime75":c.VT&&
CZ(this,c.VT);c.aK&&DZ(this,c.aK);c.RU&&g.nx(c.RU);break;case "videoplaytime100":c.pT&&CZ(this,c.pT),c.AJ&&DZ(this,c.AJ),c.NU&&g.nx(c.NU)}(e=this.getVideoData().Sx)&&vVa(this,e,a.getId())&&vVa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.zv)?void 0:l.j;m&&CZ(this,m);break;case "videoplayback2s":(l=null==(m=c.zv)?void 0:m.B)&&CZ(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.zv)?void 0:n.u)&&CZ(this,l)}this.ub.removeCueRange(a)};
g.k.N1=function(a){delete this.OE[a.getId()];this.ub.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.watchNextResponse)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.watchNextResponse)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.t(q),c=b.next();!c.done;c=
b.next())if(c=c.value,e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.N(c,g.VH),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.N(a,g.VH))&&this.Ua.Qa("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Tn=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(mZ(this,-1),mZ(this,5)),this.appState=a,this.Ua.ma("appstatechange",a))};
g.k.ag=function(a,b,c,d,e){this.ub.wg(a,b,c,d,e)};
g.k.Gp=function(a,b){this.ub.handleError(new AH(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.qO(this,a);if(!c)return!1;a=nZ(this,c);c=oZ(this,c);return a!==c?a.isAtLiveHead(wZ(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Cq=function(){var a=g.qO(this);return a?nZ(this,a).Cq():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.qO(this,d))2===this.appState&&sZ(this),this.Oe(d)?vZ(this)?this.ue.seekTo(a,b,c):this.md.seekTo(a,b,c):d.seekTo(a,{mU:!b,nU:c,qe:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.Xw=function(){this.Ua.Qa("SEEK_COMPLETE")};
g.k.q2=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.U(a.getPlayerState(),512)||sZ(this):this.Ua.Qa("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ua.ma("airplayactivechange");this.Y.N("html5_external_airplay_events")&&this.Ua.Qa("onAirPlayActiveChange",this.Ua.Rg())};
g.k.onAirPlayAvailabilityChange=function(){this.Ua.ma("airplayavailabilitychange");this.Y.N("html5_external_airplay_events")&&this.Ua.Qa("onAirPlayAvailabilityChange",this.Ua.Yz())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Eb)||a.Lr()};
g.k.gK=function(){this.Ua.ma("beginseeking")};
g.k.mK=function(){this.Ua.ma("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.qO(this,a))?nZ(this,a).getVideoData().getStoryboardFormat():null};
g.k.Vi=function(a){return(a=g.qO(this,a))?nZ(this,a).getVideoData().Vi():null};
g.k.Oe=function(a){a=a||this.Eb;var b=!1;if(a){a=a.getVideoData();if(vZ(this))a=a===this.ue.xa.getVideoData();else a:if(b=this.md,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.t(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Gc===c.value.Gc){a=!0;break a}a=!1}b=a}return b};
g.k.Jv=function(a,b,c,d,e,f,h){var l=vZ(this),m;null==(m=g.qO(this))||m.va("appattl",{sstm:this.ue?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?YMa(this.ue,a,b,c,d,e,f,h):oNa(this.md,a,c,d,e,f)};
g.k.Wz=function(a,b,c,d,e,f,h){vZ(this)&&YMa(this.ue,a,b,c,d,e,f,h);return""};
g.k.Br=function(a){var b;null==(b=this.ue)||b.Br(a)};
g.k.Js=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;vZ(this)||HU(this.md,a,b)};
g.k.Hx=function(a,b,c){if(vZ(this)){var d=this.ue,e=d.Ac.get(a);e?(void 0===c&&(c=e.wd),e.durationMs=b,e.wd=c):d.jA("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.md;e=null;for(var f=g.t(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Gc===a){e=h;break}e?(void 0===c&&(c=e.wd),uNa(d,e,b,c)):AU(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Oe();a=new g.GI(this.Y,a);d&&(a.Gc=d);c=void 0===c?Infinity:c;d=b||this.Eb.getPlayerType();(b=mVa(this,d,a,!0))||(b=gVa(this,d,a));2===d&&this.ub&&(a=b.getVideoData(),this.ub.Xt(a.clientPlaybackNonce,a.Dd||"",a.breakType||0,a.We));this.MC(b,c)};
g.k.MC=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.qO(this);e&&(nZ(this,e).wU=!0);LMa(this.Nx,a,b,c).then(function(){d.Ua.Qa("onQueuedVideoLoaded")},function(){})};
g.k.Lw=function(){return this.Nx.Lw()};
g.k.clearQueue=function(){this.Nx.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1;this.N("fetch_bid_for_dclk_status")&&g.Tv(g.Vv(),function(){OA("player")});
var h=new g.GI(this.Y,a),l;iJa(this.Ab,null!=(l=h.Sa)?l:"");this.Ab.Fi("pl_i");this.N("web_player_early_cpn")&&h.clientPlaybackNonce&&this.Ab.info("cpn",h.clientPlaybackNonce);if(e){for(;h.Ek.length&&h.Ek[0].isExpired();)h.Ek.shift();f=h.Ek.length-1;f=0<f&&e.u(h.Ek[f])&&e.u(h.Ek[f-1]);h.Ek.push(e)}c||(a&&wP(a)?(nH(this.Y)&&!this.di&&(a.fetch=0),pZ(this,a)):this.playlist&&pZ(this,null),a&&this.setIsExternalPlaylist(a.external_list),nH(this.Y)&&!this.di&&qZ(this));a=this.Xq(h,b,d);f&&this.ag("player.fatalexception",
1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+h.Ek.join()).replace(/[;:,]/g,"_"));return a};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;if(this.Y.N("html5_autonav_autoplay_in_preload_key")){d=b;var f=e,h=Dv(a);d=yZ(this,d,h,f,"1"===a.autonav||!0===a.autonav,"1"===a.autoplay||!0===a.autoplay||1===a.autoplay)}else d=Dv(a),d=yZ(this,b,d,e);if(!this.MA.get(d))a:{a=new g.GI(this.Y,a),e&&(a.Gc=e),e=this.Y.N("html5_autonav_autoplay_in_preload_key")?wVa(this,b,a):yZ(this,b,a.videoId,a.Gc);if(this.Eb&&(d=this.Y.N("html5_autonav_autoplay_in_preload_key")?
wVa(this,this.Eb.getPlayerType(),this.Eb.getVideoData()):yZ(this,this.Eb.getPlayerType(),this.Eb.getVideoData().videoId,this.Eb.getVideoData().Gc),e===d)){g.bU(this.Eb,!0);a.dispose();break a}a.Mg=!0;a=gVa(this,b,a);1===b&&qH(this.Y)||g.bU(a,!0);this.MA.set(e,a,c||3600)}};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Bc;a=a.G.V().showMiniplayerUiWhenMinimized?a.Ie.get("miniplayer"):void 0;a&&(this.Jf()?a.load():a.unload());this.Ua.ma("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Bc;a=a.G.V().showInlinePreviewUi?a.Ie.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.Qa("onInlinePreviewModeChange"))};
g.k.tx=function(a){var b=this.Y.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.Vk&&this.Y.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.sI&&b?this.sI.start():this.bP():this.visibility.tx(a)};
g.k.bP=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Ef();b&&Hz(b).catch(function(c){return g.aA(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.m2=function(){"picture-in-picture"===this.mediaElement.Ef().webkitPresentationMode?this.tx(!0):this.tx(!1)};
g.k.togglePictureInPicture=function(){var a=g.qO(this);a&&a.togglePictureInPicture()};
g.k.Xq=function(a,b,c){b=void 0===b?1:b;YB("_start",this.Ab.timerName)||(JB("_start",void 0,this.Ab.timerName),this.Ab.info("srt",0));var d=!1,e=mVa(this,b,a,!1);e?(d=!0,a.dispose()):(e=gVa(this,b,a,c),this.N("html5_onesie")&&YY(e)&&g.bU(e),this.bF.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),eU(this,e));e===this.ub&&(this.Y.Mg=a.oauthToken);if(!YY(e))return!1;if(e===this.ub){this.Tn(1);a=sZ(this);if(d&&this.G.N("html5_player_preload_ad_fix")&&
e.On.isFinished())this.onVideoDataChange("dataloaded",e,e.getVideoData());return a}iUa(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&wP(a))if(this.vt=!0,pZ(this,a),(a=g.xP(this.playlist))&&a.isValid())AZ(this,a,b);else this.playlist.onReady(function(){rZ(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Pv();var d=new g.GI(this.Y,a);!g.QG(this.Y)||this.Y.Z||1!==b||d.isAd()||d.Dd?AZ(this,d,b):(this.Lc().getVideoData().Oa=!0,pJa(d,a?a:{}).then(function(e){AZ(c,e,b)}),d.dispose())}};
g.k.tm=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(SG(this.Y)||g.rH(this.Y))return b=b||{},b.lact=dy(),b.vis=this.Ua.getVisibilityState(),this.Ua.Qa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;kJa(this.Ab);this.Ab.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.vt=!0;xVa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.vt=!1;xVa(this,a,b,c,d)};
g.k.sz=function(){if(this.Ua.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;nH(this.Y)&&!this.di&&qZ(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.wq=aa(5);
g.k.nextVideo=function(a,b){var c=g.UI(this.ub.getVideoData());g.WO(this.Ua)&&c?this.tm(c.videoId,b?c.jz:c.sessionData,c.playlistId,b,void 0,c.UO||void 0):this.di?this.Ua.Qa("onPlaylistNext"):3===this.getPresentingPlayerType()?RO(this.Bc).nextVideo():this.playlist&&(nH(this.Y)&&!this.Ua.isFullscreen()?rVa(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&yP(this.playlist,lJa(this.playlist)),this.playlist.loaded?(a=b&&this.Y.N("html5_player_autonav_logging"),this.Xq(g.xP(this.playlist,void 0,
b,a),1)):this.vt=!1))};
g.k.previousVideo=function(a){this.di?this.Ua.Qa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?RO(this.Bc).LE():this.playlist&&(nH(this.Y)&&!this.Ua.isFullscreen()?rVa(this,"yt.www.watch.lists.prev"):(this.playlist.An(a)&&yP(this.playlist,mJa(this.playlist)),this.playlist.loaded?this.Xq(g.xP(this.playlist),1):this.vt=!1))};
g.k.playVideoAt=function(a){this.di?this.Ua.Qa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Xq(g.xP(this.playlist,a),1):this.vt=!1,yP(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Gz=aa(13);g.k.n0=function(a){this.Ua.Qa("onCueRangeEnter",a.getId())};
g.k.o0=function(a){this.Ua.Qa("onCueRangeExit",a.getId())};
g.k.Ky=function(a,b,c){var d=g.qO(this,b);d&&(d.Ky(a,c),b&&this.getPresentingPlayerType()!==b||lZ(this,"cuerangesadded",a))};
g.k.VE=function(a,b){var c=g.qO(this,b);c&&(c.VE(a),b&&this.getPresentingPlayerType()!==b||lZ(this,"cuerangesremoved",a))};
g.k.t0=function(){var a=this;this.getPresentingPlayerType();this.Rr||(this.Rr=kx(j5a,this.YR,this));jJa(this.Ab,this.Eb.getVideoData(),BVa(this));jVa(this)&&this.Y.u&&"embedded"===rJ(this.ud())&&this.mR&&.01>Math.random()&&g.gw("autoplayTriggered",{intentional:this.RQ});this.mR=!1;this.Bc.GC();this.N("web_player_defer_ad")&&hVa(this);this.Ua.Qa("onPlaybackStartExternal");this.Y.N("mweb_client_log_screen_associated");(function(){var c=g.kA(a.rT||(a.Jf()?3:0));if(c&&"UNDEFINED_CSN"!==c){var d=a.Y.N("web_player_attach_player_response_ve"),
e=a.Y.N("web_playback_associated_ve");if(a.Y.N("il_via_jspb")){var f=new Ct;var h=a.getVideoData().clientPlaybackNonce;h=g.F(f,1,h);g.F(h,3,c);a.getVideoData().ya&&(d||e)&&(d=g.dA(a.getVideoData().ya),g.pA(c,d),e&&(c=d.getAsJspb(),H(f,ts,2,c)));if(a.getVideoData().queueInfo){c=a.getVideoData().queueInfo;e=new Dt;if(null==c?0:c.enqueueingVe)(null==c?0:c.enqueueingVe.trackingParams)?(d=g.dA(c.enqueueingVe.trackingParams),d=d.getAsJspb(),H(e,ts,1,d)):g.aA(new g.Yv("Cannot map enqueueingVe from a client VE "));
(null==c?0:c.enqueueingCsn)&&g.F(e,2,c.enqueueingCsn);(null==c?0:c.clientEnqueueingTimeMs)&&g.F(e,3,Number(c.clientEnqueueingTimeMs));H(f,Dt,4,e)}c={};a.N("web_playback_associated_log_ctt")&&a.getVideoData().J&&(c.cttAuthInfo={token:a.getVideoData().J,videoId:a.getVideoData().videoId});Lpa(f,c)}else f={cpn:a.getVideoData().clientPlaybackNonce,csn:c},a.getVideoData().ya&&(d||e)&&(d=g.dA(a.getVideoData().ya),g.pA(c,d),e&&(f.playbackVe=d.getAsJson())),a.getVideoData().queueInfo&&(f.queueInfo=a.getVideoData().queueInfo),
c={},a.N("web_playback_associated_log_ctt")&&a.getVideoData().J&&(c.cttAuthInfo={token:a.getVideoData().J,videoId:a.getVideoData().videoId}),g.gw("playbackAssociated",f,c)}else g.aA(new g.Yv("CSN Missing or undefined during playback association"))})();
var b={};this.getVideoData().J&&(b.cttAuthInfo={token:this.getVideoData().J,videoId:this.getVideoData().videoId});LB("player_att",b);if(this.getVideoData().botguardData||this.N("html5_att_oauth")&&this.N("fetch_att_independently"))g.pH(this.Y)||"MWEB"===dH(this.Y)?g.Tv(g.Vv(),function(){tZ(a)}):tZ(this);
this.dF()};
g.k.sK=function(){this.Ua.ma("internalAbandon");xZ(this)};
g.k.YR=function(a){a=a.j;!isNaN(a)&&0<a&&this.ub&&this.ub.UA(a)};
g.k.onApiChange=function(){this.Y.D&&this.Eb?this.Ua.Qa("onApiChange",this.Eb.getPlayerType()):this.Ua.Qa("onApiChange")};
g.k.l1=function(){var a=this.mediaElement;a={volume:g.Ag(Math.floor(100*a.getVolume()),0,100),muted:a.lD()};a.muted||uZ(this,!1);this.Th=g.yf(a);this.Ua.Qa("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ua.Qa("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=DVa(this);this.Sk(a?1:0);FVa(this,!!a)};
g.k.Sk=function(a){var b=!!a,c=!!this.pw()!==b;this.visibility.Sk(a);this.template.Sk(b);this.N("html5_media_fullscreen")&&!b&&this.mediaElement&&DVa(this)===this.mediaElement.Ef()&&this.mediaElement.lz();this.template.resize();c&&this.Ab.tick("fsc");c&&(this.Ua.ma("fullscreentoggled",b),a=this.ud(),b={fullscreen:b,videoId:a.ZF||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Qa("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.pw=function(){return this.visibility.pw()};
g.k.b2=function(){this.Eb&&(0!==this.pw()&&1!==this.pw()||this.Sk(DVa(this)?1:0),this.Y.Vk&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.lz())};
g.k.Z0=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ma("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.qO(this,a))2===this.appState?sZ(this):(null!=this.bl&&this.bl.sb&&this.bl.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.qO(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.ub.getVideoData(),b=new g.GI(this.Y,{video_id:a.ZF||a.videoId,oauth_token:a.oauthToken});b.ea=g.yf(a.ea);this.cancelPlayback(6);AZ(this,b,1);null!=this.bl&&this.bl.stop()};
g.k.cancelPlayback=function(a,b){jx(this.Rr);this.Rr=0;var c=g.qO(this,b);c&&(2===b&&1===c.getPlayerType()&&RDa(this.ud())?c.va("canclpb",{r:"no_adpb_ssdai"}):(this.Y.N("html5_high_res_logging")&&c.va("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Eb&&PP(this.Bc,a),1===b&&(c.stopVideo(),xZ(this)),c.hm(void 0,!0),lZ(this,"cuerangesremoved",c.El()),c.ai.reset(),this.Nx&&c.isGapless()&&(c.Ci(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.qO(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Ui=function(a){var b=g.qO(this);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.Ui(a):null};
g.k.updatePlaylist=function(){nH(this.Y)?qZ(this):g.QG(this.Y)&&kVa(this);this.Ua.Qa("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.GT=a;this.yJ=b;this.Ua.ma("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.yJ};
g.k.Jf=function(){return this.visibility.Jf()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Kw=function(){return this.visibility.Kw()};
g.k.Gw=function(){return this.visibility.Gw()};
g.k.dA=function(){return this.GT};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return RO(this.Bc).getAdState();if(!this.Oe()){var a=QP(this.vb());if(a)return a.getAdState()}return-1};
g.k.Z1=function(a){var b=this.template.getVideoContentRect();Gl(this.gR,b)||(this.gR=b,this.Eb&&cZ(this.Eb),this.ub&&this.ub!==this.Eb&&cZ(this.ub),1===this.pw()&&this.HA&&FVa(this,!0));this.EJ&&g.Hg(this.EJ,a)||(this.Ua.ma("appresize",a),this.EJ=a)};
g.k.Sg=function(){return this.Ua.Sg()};
g.k.z2=function(){2===this.getPresentingPlayerType()&&this.md.isManifestless()?tNa(this.md):(this.ue&&(uU(this.ue),xZ(this)),dVa(this,"signature"))};
g.k.jS=function(){this.Ci();kZ(this)};
g.k.t1=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ua.Qa("onPlayerRequestAuthFailed")};
g.k.zA=function(){this.Ua.Qa("CONNECTION_ISSUE")};
g.k.BA=function(a){this.Ua.ma("heartbeatparams",a)};
g.k.ZE=function(a){this.Ua.Qa("onAutonavChangeRequest",1!==a)};
g.k.Zd=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.Y.zd=a;this.Eb&&(this.Eb.Au(),this.Y.Ba&&IVa(this))};
g.k.v1=function(){var a=g.qO(this);if(a){var b=!this.Ua.aA();(a.AQ=b)||a.Et.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.C&&c.C.stop()}a.Ia&&(b?a.Ia.resume():gZ(a,!0));g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Zb(fL(a.playerState,512)):a.Zb(eL(a.playerState,512));a=a.qc;a.qoe&&(a=a.qoe,g.PX(a,g.cU(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ua.Qa("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ua.Qa("onDrmOutputRestricted")};
g.k.qH=function(){q6a=this.N("html5_use_async_stopVideo");r6a=this.N("html5_pause_for_async_stopVideo");p6a=this.N("html5_not_reset_media_source");kF=this.N("html5_retain_source_buffer_appends_for_debugging");this.N("html5_mediastream_applies_timestamp_offset")&&(VV=!0);var a=g.YF(this.Y.experiments,"html5_cobalt_override_quic");a&&RT("QUIC",+(0<a));this.N("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&RT("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.YF(this.Y.experiments,"html5_cobalt_min_processor_cnt_to_offload_algo"));
(a=this.N("html5_cobalt_async_redn"))&&RT("MediaSource.EnableAsynchronousReduction",+a);if(a=g.YF(this.Y.experiments,"html5_cobalt_max_size_for_immed_job"))RT("MediaSource.MaxSizeForImmediateJob",a),RT("MediaSource.MinSizeForImmediateJob",a);Error.stackTraceLimit=25;var b=g.YF(this.Y.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
w5a=this.N("html5_live_partial_response_resumable");BAa(this.Y.B)};
g.k.YD=function(){this.RQ=!0};
g.k.ra=function(){this.Bc.dispose();this.md.dispose();this.ue&&this.ue.dispose();this.ub.dispose();this.Ci();g.$e(nf(this.yu),this.playlist);jx(this.Rr);this.Rr=0;g.K.prototype.ra.call(this)};
g.k.N=function(a){return this.Y.N(a)};
g.k.hF=function(){return this.hB};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.rT=a};
g.k.seekToChapterWithAnimation=function(a){var b=this,c,d=null==(c=rO(this.vb()))?void 0:c.mw();if(d instanceof g.rQ&&!(0>a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.Hj)&&a<c.length)for(e=g.t(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.index===a){LVa(this,d,c.startTime,c.title);return}if(this.N("web_key_moments_markers")){var f;(e=null==(f=this.getVideoData())?void 0:f.YM)&&a<e.length&&e.forEach(function(h,l){l===a&&LVa(b,d,h.timeRangeStartMillis,h.title)})}}};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Bc.createSubtitlesModuleIfNeeded()};
g.k.downloadVideo=function(a,b){var c=this,d,e,f;return g.A(function(h){if(1==h.j){d=TP(c.Bc);if(!d)return h.return(Promise.reject());b&&(e={ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:b}});return g.x(h,d.fL([a],"mainVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",e),3)}f=h.u;return h.return(f[0])})};
g.k.updateDownloadState=function(a,b){var c=this,d;return g.A(function(e){return(d=TP(c.Bc))?e.return(d.updateDownloadState(a,b)):e.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){var b=TP(this.Bc);b&&b.QK(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.A(function(d){return(c=TP(b.Bc))?d.return(c.ZA(a)):d.return(Promise.reject())})};
g.k.refreshAllVideos=function(a){void 0===a&&(a=14400);var b=TP(this.Bc);return b?b.TE(a):Promise.reject()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=TP(this.Bc);return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.deleteVideos=function(a){var b=TP(this.Bc);return b?b.fL(a,"mainVideoEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"):Promise.reject()};
g.k.deleteAllVideos=function(){var a=TP(this.Bc);return a?a.deleteAll():Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=TP(this.Bc);return a?a.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Ua,b=g.qO(this),c=a.getVideoData(),d=a.Zd(),e=d.Ef(),f=b.Oz(),h=b.WL,l=8*SU(h,"bandwidth")/1024,m=SU(h,"networkactivity")/1024,n=SU(h,"bufferhealth");if(b.Me){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Me.j.Qg()+"/"+iC(b.Ts());p+="/"+b.Me.Qg()}else p="";var q=p,r=b.getPlayerState().state.toString(16),w=d.getCurrentTime().toFixed(2),y=dF(d.jh(),",",3);p="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(p+=c.KG?"DS":"SS");p+="DAI, ";a:{if(b.md){if(b.md.kq){var z=
"D,";break a}z=b.md.xk;if(0<z){z="AD"+z+", ";break a}}z=""}z&&(p+=z)}if(c.fetchType){switch(c.fetchType){case "onesie":z="o";break;case "gp":z="gp";break;default:z="gvi"}p+="vd:"+z+", "}p+="s:"+r+" t:"+w+" b:"+y+" ";d.Tg()&&(p+="S");d.Co()&&(p+="P");d.kh()&&(p+="E");a.isOrchestrationLeader()&&(p+=" L");(d=b.Cz())&&(p+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.sM;d&&d>r.start&&d<r.end&&(p+=" as");d=p;p=nB("_start");r=[];w=g.t(["pl_i","vir","or_p","orfb","pbs"]);for(y=w.next();!y.done;y=w.next())y=
y.value,(z=nB(y))&&p&&(z-=p,r.push(y+":"+Math.round(z)));p=r.join(" ");r=g.oH();w=g.UO(a).d_;y=c.C&&!c.C.j?"display:none":"";if((z=c.clientPlaybackNonce)&&16==z.length){for(var B=0,D="",G=0;10>G;G++)if(B=(B<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(z.charAt(G)),4==G%5){for(var E="",J=0;6>J;J++)E="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(B&31)+E,B>>=5;D+=E}z=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)}else z="";l={video_id_and_cpn:c.videoId+" / "+z,codecs:"",
dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:d,extra_debug_info:"",bandwidth_style:y,network_activity_style:y,network_activity_bytes:m.toFixed(0)+" KB",shader_info:w,shader_info_style:w?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<r?"*"+r.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);
l.dims_and_frames=m+" / "+n;a=a.getVolume();f=PDa(c);var M;m=(null==(M=c.I)?0:M.audio.j)?"DRC":Math.round(a*f)+"%";M=Math.round(a)+"% / "+m;a=c.We.toFixed(1);isFinite(Number(a))&&(M+=" (content loudness "+a+"dB)");l.volume=M;l.resolution=e.videoWidth+"x"+e.videoHeight;if(M=c.B)if(e=M.video)a=e.fps,1<a&&(l.resolution+="@"+a),(a=g.dZ(b))&&a.video&&(l.resolution+=" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(l.resolution+="@"+a.video.fps)),l.codecs=CNa(M),!c.I||M.audio&&M.video?M.ER&&(l.codecs+=
" / "+M.ER+"A"):l.codecs+=" / "+CNa(c.I),e.u||e.primaries?(M=e.u||"unknown","smpte2084"===M?M+=" (PQ)":"arib-std-b67"===M&&(M+=" (HLG)"),l.color=M+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;M=c.He;l.live_mode_style=e||M?"":"display:none";l.live_latency_style=e?"":"display:none";if(M)l.live_mode="Post-Live"+(QI(c)?" Manifestless":"");else if(e){M=SU(h,"livelatency");l.live_latency_secs=M.toFixed(2)+"s";e=QI(c)?"Manifestless, ":"";c.Yc&&(e+="Windowed, ");
a="Uncertain";if(0<=M&&120>M)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(M=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+M.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+=
"Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=RU(h,"bandwidth");l.network_activity_samples=RU(h,"networkactivity");l.live_latency_samples=RU(h,"livelatency");l.buffer_health_samples=RU(h,"bufferhealth");b=g.xJ(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";MI(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20221113_00_RC00",l.release_style=
""):l.release_style="display:none";l.debug_info&&0<p.length&&60>=l.debug_info.length+p.length?l.debug_info+=" "+p:l.extra_debug_info=p;l.extra_debug_info_style=l.extra_debug_info&&0<l.extra_debug_info.length?"":"display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.xb&&this.xb.postId)return a=this.Y.getVideoUrl(a),a=xi(a,"v"),a.replace("/watch","/clip/"+this.xb.postId);var f,h,l=null==(h=null==(f=rO(this.vb()))?void 0:f.mw())?void 0:h.Ej();return this.Y.getVideoUrl(a,b,c,d,e,l)};
var O3={};g.Ea("yt.player.Application.create",g.iZ.create);g.Ea("yt.player.Application.createAlternate",g.iZ.create);Xsa(Wz(),{mp:[{mA:/Unable to load player module/,weight:20},{mA:/Failed to fetch/,weight:500},{mA:/XHR API fetch failed/,weight:10},{mA:/JSON parsing failed after XHR fetch/,weight:10},{mA:/Retrying OnePlatform request/,weight:10}]});var J6a=g.Ga("ytcsi.tick");J6a&&J6a("pe");var OVa=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"]]),MVa=new Map([["normal",{Yt:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",vu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Yt:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",vu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Yt:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",vu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Yt:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",vu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Yt:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",vu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Yt:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",vu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Yt:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",vu:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var K6a={QPa:"replaceUrlMacros",UKa:"onAboutThisAdPopupClosed",yra:"executeCommand"};LZ.prototype.pn=function(){return"adLifecycleCommand"};
LZ.prototype.handle=function(a){var b=this.Wy();g.aA("Unexpected AdLifecycleCommand");switch(a.action){case "END_LINEAR_AD":g.uh(function(){b.jw()});
break;case "END_LINEAR_AD_PLACEMENT":g.uh(function(){b.mq()})}};
LZ.prototype.To=function(a){this.handle(a)};MZ.prototype.pn=function(){return"clearCueRangesCommand"};
MZ.prototype.handle=function(){var a=this.Wy();g.uh(function(){a.yh(Array.from(a.xs))})};
MZ.prototype.To=function(a){this.handle(a)};NZ.prototype.pn=function(){return"muteAdEndpoint"};
NZ.prototype.handle=function(a){VVa(this,a)};
NZ.prototype.To=function(a,b){VVa(this,a,b)};OZ.prototype.pn=function(){return"openPopupAction"};
OZ.prototype.handle=function(){};
OZ.prototype.To=function(a){this.handle(a)};PZ.prototype.pn=function(){return"pingingEndpoint"};
PZ.prototype.handle=function(){};
PZ.prototype.To=function(a){this.handle(a)};QZ.prototype.pn=function(){return"urlEndpoint"};
QZ.prototype.handle=function(a,b){RZ(this.KA,"enable_generic_debug_logging_on_html5")&&g.aA(Error("The handle method is called for url_endpoint_handler."));WVa(this,a,b)};
QZ.prototype.To=function(a,b,c){if(RZ(this.KA,"enable_macro_substitution_on_html5")){var d=this.Ra.get(),e=HYa(d.u.get(),b);e?b=O0(d,nZa(e),e,void 0,c):(PA("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});WVa(this,a,b)}else WVa(this,a,{})};SZ.prototype.pn=function(){return"adPingingEndpoint"};
SZ.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.ys.send(a,b,c)};
SZ.prototype.To=function(a,b,c){oZa(this.Ra.get(),a,b,void 0,c)};TZ.prototype.pn=function(){return"changeEngagementPanelVisibilityAction"};
TZ.prototype.handle=function(a){this.G.Qa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
TZ.prototype.To=function(a){this.handle(a)};UZ.prototype.pn=function(){return"loggingUrls"};
UZ.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Lk.send(d.baseUrl,b,c,d.headers)};
UZ.prototype.To=function(a,b,c){a=g.t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,RZ(this.KA,"enable_macro_substitution_on_html5")?oZa(this.Ra.get(),d.baseUrl,b,d.headers,c):oZa(this.Ra.get(),d.baseUrl,b,d.headers)};g.v(YVa,g.K);VZ.prototype.get=function(){return this.value};
g.v(ZVa,VZ);ZVa.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.v($Va,VZ);$Va.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.v(WZ,VZ);WZ.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.v(XZ,VZ);XZ.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.v(aWa,VZ);aWa.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.v(bWa,VZ);bWa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.v(cWa,VZ);cWa.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.v(YZ,VZ);YZ.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.v(ZZ,VZ);ZZ.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.v($Z,VZ);$Z.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.v(a_,VZ);a_.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.v(b_,VZ);b_.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.v(c_,VZ);c_.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.v(d_,VZ);d_.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.v(e_,VZ);e_.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.v(dWa,VZ);dWa.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.v(f_,VZ);f_.prototype.getType=function(){return"metadata_type_content_cpn"};
g.v(g_,VZ);g_.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.v(h_,VZ);h_.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.v(eWa,VZ);eWa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.v(fWa,VZ);fWa.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.v(gWa,VZ);gWa.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.v(hWa,VZ);hWa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.v(iWa,VZ);iWa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.v(jWa,VZ);jWa.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.v(i_,VZ);i_.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.v(j_,VZ);j_.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.v(kWa,VZ);kWa.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.v(lWa,VZ);lWa.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.v(k_,VZ);k_.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.v(l_,VZ);l_.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.v(m_,VZ);m_.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.v(mWa,VZ);mWa.prototype.getType=function(){return"metadata_type_cue_point"};
g.v(n_,VZ);n_.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.v(o_,VZ);o_.prototype.getType=function(){return"metadata_type_player_vars"};
g.v(nWa,VZ);nWa.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.v(p_,VZ);p_.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.v(q_,VZ);q_.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.v(r_,VZ);r_.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.v(s_,VZ);s_.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.v(t_,VZ);t_.prototype.getType=function(){return"metadata_type_dai"};
g.v(oWa,VZ);oWa.prototype.getType=function(){return"metadata_type_ad_intro"};
g.v(pWa,VZ);pWa.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.v(u_,VZ);u_.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.v(v_,VZ);v_.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.v(qWa,VZ);qWa.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.v(rWa,VZ);rWa.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.v(w_,VZ);w_.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.v(x_,VZ);x_.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.v(y_,VZ);y_.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.v(sWa,VZ);sWa.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.v(tWa,VZ);tWa.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.v(z_,VZ);z_.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.v(uWa,VZ);uWa.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.v(vWa,VZ);vWa.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.v(A_,VZ);A_.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.v(wWa,VZ);wWa.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};var SWa=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(yWa,g.K);g.k=yWa.prototype;g.k.LI=function(a,b){return this.j.LI(a,b)};
g.k.cj=function(a,b){k0(this.ac,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.t(this.Qd),d=c.next();!d.done;d=c.next())d.value.cj(a,b)};
g.k.qg=function(a){if(C_(this.j,a)){OK(this.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.qg(a);for(var b=g.t(this.Qd),c=b.next();!c.done;c=b.next())c.value.qg(a);BWa(this,a)}};
g.k.rg=function(a){if(C_(this.j,a)){OK(this.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.rg(a);for(var b=g.t(this.Qd),c=b.next();!c.done;c=b.next())c.value.rg(a);C_(this.j,a)&&D_(this.j,a).D&&B_(this,a,!1)}};
g.k.uE=function(a){OK(this.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);C_(this.j,a)&&(this.j.uE(a),B_(this,a,!1))};
g.k.Sc=function(a,b){if(C_(this.j,a)){E_(this.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.t(this.Qd),d=c.next();!d.done;d=c.next())d.value.Sc(a,b)}};
g.k.qd=function(a,b,c){if(C_(this.j,a)){E_(this.ac,NVa(c),a,b);this.j.qd(a,b);for(var d=g.t(this.Qd),e=d.next();!e.done;e=d.next())e.value.qd(a,b,c);(c=M_(this.j,a))&&b.layoutId===c.layoutId&&OWa(this,a,!1)}};
g.k.Eg=function(a,b,c){PA(c,a,b,void 0,c.zs);B_(this,a,!0)};
g.k.ra=function(){var a=RWa(this.j);a=g.t(a);for(var b=a.next();!b.done;b=a.next())B_(this,b.value,!1);g.K.prototype.ra.call(this)};
g.k.Mh=function(a,b){E_(this.ac,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);E_(this.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.t(this.Qd),d=c.next();!d.done;d=c.next())d=d.value,b&&d.Mh(a,b)};PWa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(F_,Va);g.v(QWa,g.K);g.k=QWa.prototype;g.k.LI=function(a,b){b=L_(this,a+"_"+b);a=[];b=g.t(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.zi=function(a){a=D_(this,a);"not_scheduled"!==a.j&&N_(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.pz=function(a){a=D_(this,a);a.C="fill_requested";a.J.pz()};
g.k.qg=function(a){a=D_(this,a);"enter_requested"!==a.j&&N_(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.uE=function(a){D_(this,a).C="fill_canceled"};
g.k.rg=function(a){a=D_(this,a);"exit_requested"!==a.j&&N_(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.qd=function(a,b){a=D_(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&N_(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.v(WWa,g.K);WWa.prototype.B=function(){return this.u};g.v(XWa,g.K);XWa.prototype.get=function(){this.isDisposed()&&PA("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};Q_.prototype.executeCommand=function(a,b){aM(this.j(),a,b)};
Q_.prototype.Uf=function(a,b){bGa(this.j(),a,b)};g.v(j0,g.K);g.v(m0,g.K);m0.prototype.onCueRangeEnter=function(){};
m0.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.dc.get().removeCueRange(a),JA(this.Ub.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Gb.get();d=SA(d.Ya.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Pb:c.Pb?UYa(c.slotId,d,c.Pb):void 0,hc:VYa(c.slotId,d,c.hc),lc:VYa(c.slotId,d,c.lc)})]},c.slotId))};
m0.prototype.bj=function(){for(var a=g.t(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.dc.get().removeCueRange(b);this.j.clear()};
m0.prototype.Wl=function(){};g.v(n0,g.K);g.k=n0.prototype;g.k.zi=function(){};
g.k.Oj=function(a){var b=this;g.Tv(g.Vv(),function(){var c=b.j.get(a);c&&PA("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.k.qg=function(){};
g.k.Nj=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Mh=function(a,b){this.Tj.has(a)&&this.Tj.get(a)===b&&PA("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)):PA("Trying to unscheduled a Layout that was not scheduled.",a,b)}else PA("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Sc=function(a,b){this.Tj.set(a,b)};
g.k.qd=function(a){this.Tj.delete(a)};
g.k.cj=function(){};u0.prototype.clone=function(a){var b=this;return new u0(function(){return b.triggerId},a)};v0.prototype.clone=function(a){var b=this;return new v0(function(){return b.triggerId},a)};w0.prototype.clone=function(a){var b=this;return new w0(function(){return b.triggerId},a)};x0.prototype.clone=function(a){var b=this;return new x0(function(){return b.triggerId},a)};y0.prototype.clone=function(a){var b=this;return new y0(function(){return b.triggerId},a)};z0.prototype.clone=function(a){var b=this;return new z0(function(){return b.triggerId},a)};g.v(C0,g.K);C0.prototype.logEvent=function(a){k0(this,a)};
C0.prototype.u=function(){return!this.Fa.get().G.V().N("html5_disable_client_tmp_logs")};g.v(D0,C0);D0.prototype.u=function(){var a=C0.prototype.u.call(this);if(RZ(this.Fa.get(),"H5_enable_full_pacf_logging"))return a;var b=this.j.get().u();var c=this.Fa.get();c=g.fH(c.G.V())?c.j:!0;return a&&b&&c};E0.prototype.clear=function(){this.j.clear()};g.v(F0,g.K);g.k=F0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.bj=function(a,b,c,d,e,f,h){if(""===a)PA("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.G.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().bj(a,b,c,d,e,f,h);this.Ta.get().bj(a,b,c,d,e,f,h);var l;null==(l=this.bf)||l.get().bj(a,b,c,d,e,f,h);this.u.bj(a,b,c,d,e,f,h);l=g.t(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.bj(a,b,c,d,e,f,h)}};
g.k.sK=function(){this.j&&this.Wl(this.j)};
g.k.Wl=function(a){this.j=void 0;for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Wl(a)};g.v(G0,g.K);G0.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?PA("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new fZa(a,b,c,d,f),this.j.set(a.id,{Yd:a,listener:e,qm:h}),this.G.xe([a],h))};
G0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?dZa(this,b):PA("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
G0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
G0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.v(fZa,g.cB);H0.prototype.Mk=function(a){this.G.Mk(a)};
H0.prototype.Qa=function(a){this.G.Qa.apply(this.G,[a].concat(g.u(g.ya.apply(1,arguments))))};g.k=K0.prototype;g.k.cg=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.G.V().N("html5_dai_enable_active_view_creating_completed_adblock"),ska(a,b),{};b=rEa(b);if(null===b||this.G.V().N("enable_server_stitched_dai")&&2!==this.G.getPresentingPlayerType(!0))return{};var c=this.G.Lc();c=c&&(this.G.V().N("enable_server_stitched_dai")||2===c.getPlayerType())&&sK(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ha.get().isFullscreen()};return Zn(b,a,c)};
g.k.vA=function(a){var b;null==(b=this.j.get(a.queryId))||b.vA()};
g.k.uA=function(a){var b;null==(b=this.j.get(a.queryId))||b.uA()};
g.k.wA=function(a){var b;null==(b=this.j.get(a.queryId))||b.wA()};
g.k.sA=function(a){var b;null==(b=this.j.get(a.queryId))||b.sA()};
g.k.tA=function(a){var b;null==(b=this.j.get(a.queryId))||b.tA()};g.v(M0,fK);M0.prototype.j=function(){return this.B()};
M0.prototype.u=function(){return this.C()};N0.prototype.Ui=function(){var a=this.G.Lc();return a&&(a=a.Ui(1))?a:null};
N0.prototype.wi=function(a,b){"string"===typeof b?this.G.getVideoData(1).jL(a,b):this.G.getVideoData(1).va(a,b)};g.v(Q0,g.K);g.k=Q0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.bj=function(){this.lH.clear();this.GJ=null;this.Ld.get().clear()};
g.k.Wl=function(){};
g.k.dg=function(a){var b=this.G.getVideoData(a);return b?vZa(this,b,a||this.G.getPresentingPlayerType(!0)):null};
g.k.X2=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.wi("ads_ssm_vdc_s",{pt:c,dvt:a});(J0(this.Fa.get())||this.Fa.get().G.V().N("html5_debug_client_stitched"))&&"dataloaded"!==a||wZa(this,b,c)};
g.k.s2=function(a,b){void 0!==a&&(this.GJ=a,void 0===b?PA("Expected ad video start time on SS video changed"):this.lH.set(a,b));var c=this.G.getPresentingPlayerType(!0),d=this.G.getVideoData(c);this.G.getVideoData(1).va("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:b});d?wZa(this,d,c):PA("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.ra=function(){this.listeners.length=0;this.Ps=null;g.K.prototype.ra.call(this)};
g.k.wi=function(a,b){this.G.getVideoData(1).va(a,b)};g.v(R0,g.K);g.k=R0.prototype;g.k.bj=function(){var a=this;this.Rs=Yf(function(){a.G.isDisposed()||a.G.Of("ad",1)})};
g.k.Wl=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.VR=function(){};
g.k.playVideo=function(){this.G.playVideo()};
g.k.pauseVideo=function(){this.G.pauseVideo()};
g.k.resumeVideo=function(a){this.ep(a)&&this.G.playVideo()};
g.k.ep=function(a){return 2===this.G.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Ta.get().GJ;return 2!==a||b||null===c?this.G.getCurrentTime(a,b):yZa(this,c)};
g.k.getVolume=function(){return this.G.getVolume()};
g.k.isMuted=function(){return this.G.isMuted()};
g.k.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.G.getPlayerState(a)};
g.k.isFullscreen=function(){return this.G.isFullscreen()};
g.k.isAtLiveHead=function(){return this.G.isAtLiveHead()};
g.k.wx=function(a){this.G.wx(a)};
g.k.P1=function(){var a=this.G.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.t(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.aj(b)}else if(1===a&&iZa(this.Fa.get()))for(c=g.t(this.EC),a=c.next();!a.done;a=c.next())a.value.VR(b)};
g.k.G1=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Mj(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.t(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.nh=function(){for(var a=this.G.Jf(),b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.nh(a)};
g.k.Bb=function(){for(var a=this.G.fb().Wi(),b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Kj(a)};
g.k.Hk=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Hk(a)};g.v(CZa,g.K);U0.prototype.addListener=function(a){this.listeners.add(a)};
U0.prototype.removeListener=function(a){this.listeners.delete(a)};HZa.prototype.pz=function(){var a=this;FZa(this.j,function(){var b=FZ(a.slot.Ea,"metadata_type_ad_break_request_data");return a.lf.get().fetch({DU:b.getAdBreakUrl,xP:new g.cB(b.dT,b.cT),Xy:FZ(a.slot.Ea,"metadata_type_cue_point")})},function(){IZa(a)},function(b){b=b.Do;
2<=b.length&&PA("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,h;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(h=c.renderer)||!h.instreamVideoAdRenderer)})||IZa(a)})};
HZa.prototype.BH=function(){GZa(this.j)};JZa.prototype.pz=function(){var a=this;FZa(this.j,function(){var b=FZ(a.slot.Ea,"metadata_type_ad_break_request_data");return a.lf.get().fetch({DU:b.getAdBreakUrl,xP:new g.cB(b.dT,b.cT)})})};
JZa.prototype.BH=function(){GZa(this.j)};KZa.prototype.pz=function(){DWa(this.callback,this.slot,FZ(this.slot.Ea,"metadata_type_fulfilled_layout"))};
KZa.prototype.BH=function(){zWa(this.callback,this.slot,new lB("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};MZa.prototype.Ze=function(a,b){return LZa(b,{Fe:["metadata_type_fulfilled_layout"]})?new KZa(a,b):this.j(a,b)};g.v(W0,MZa);
W0.prototype.j=function(a,b){if(LZa(b,{Fe:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new HZa(a,b,this.lf,this.zb,this.Hb,this.Fa,this.Se);if(LZa(b,{Fe:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new JZa(a,b,this.lf,this.zb,this.Hb,this.Fa);throw new lB("Unsupported slot with type: "+b.slotType+" and client metadata: "+GZ(b.Ea)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(X0,MZa);X0.prototype.j=function(a,b){throw new lB("Unsupported slot with type: "+b.slotType+" and client metadata: "+GZ(b.Ea)+" in DefaultFulfillmentAdapterFactory.");};g.k=NZa.prototype;g.k.kd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Eg(this.slot,a,new F_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=FZ(a.Ea,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Sc(this.slot,a),Jta(this.j,this.slot,b)):PA("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.xg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Eg(this.slot,a,new F_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.qd(this.slot,a,b)};Z0.prototype.Ze=function(a,b,c,d){if(Y0(d,{Fe:["metadata_type_ad_break_response_data"],Kf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new NZa(a,c,d,this.j);throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};$0.prototype.cg=function(a,b){b=void 0===b?!1:b;var c=(this.B.get(a)||[]).concat();if(b=b&&QJ(a)){var d=this.B.get(b);d&&c.push.apply(c,g.u(d))}OZa(this,a,c);this.j.add(a);b&&this.j.add(b)};g.k=QZa.prototype;g.k.kd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Eg(this.slot,a,new F_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Sc(this.slot,a),c1(this.u,"impression"),g_a(this.j,a))};
g.k.xg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Eg(this.slot,a,new F_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.qd(this.slot,a,b)};g1.prototype.Ze=function(a,b,c,d){if(Y0(d,RZa()))return new QZa(a,c,d,this.Ra,this.j);throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(h1,g.Mz);g.k=h1.prototype;g.k.kd=function(){return this.u.slot};
g.k.Fb=function(){return this.u.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.YI=function(){};
g.k.WI=function(){};
g.k.VI=function(){};
g.k.xD=function(){};
g.k.startRendering=function(a){var b=this;TZa(this.u,a,function(){return void b.kF()})};
g.k.kF=function(){this.B.get().kF(this.j)};
g.k.xg=function(a,b){var c=this;TZa(this.u,a,function(){var d=c.B.get();I_a(d,c.j,3);c.j=[];c.callback.qd(c.slot,a,b)})};
g.k.ra=function(){this.B.get().removeListener(this);g.Mz.prototype.ra.call(this)};
g.da.Object.defineProperties(h1.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.u.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.u.layout}}});g.v(UZa,HJ);g.v(VZa,h1);g.k=VZa.prototype;g.k.eg=function(a,b){j1("action-companion",a,this.J.get().Tj,this.Ra.get(),this.C,this.D,this.kd(),this.Fb(),b)};
g.k.startRendering=function(a){i1(this.I,this.kd(),this.Fb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new UZa(b,c,d,e,f)},this.j);
h1.prototype.startRendering.call(this,a)};
g.k.Sc=function(a,b){b.layoutId===this.layout.layoutId?c1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().Ui():PA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.qd=function(){};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.cj=function(){};
g.k.ra=function(){this.yf().Qd.delete(this);h1.prototype.ra.call(this)};g.v(k1,h1);k1.prototype.init=function(){h1.prototype.init.call(this);var a=FZ(this.layout.Ea,"metadata_type_ad_action_interstitial_renderer"),b=b1(this.C);this.j.push(new AK(a,b,this.layout.layoutId,{adsClientData:this.layout.Fc},!0,!0))};
k1.prototype.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Sc(this.slot,a)};
k1.prototype.eg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=FZ(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&c_a(a,this.kd(),this.layout)}};
k1.prototype.ra=function(){h1.prototype.ra.call(this)};g.v(l1,h1);g.k=l1.prototype;g.k.init=function(){h1.prototype.init.call(this);var a=FZ(this.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Fc},c=!FZ(this.layout.Ea,"metadata_type_player_bytes_callback").MD;this.j.push(new jN(a,this.layout.layoutId,FZ(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.vr=function(){this.C||this.Ha.get().resumeVideo(2)};
g.k.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Sc(this.slot,a);this.D.Hv=this};
g.k.xg=function(a,b){h1.prototype.xg.call(this,a,b);I1a(this.D,this)};
g.k.eg=function(a){if(GYa(this.I.get(),this.J))switch(a){case "visit-advertiser":this.Ra.get().G.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":(this.C=this.Ha.get().ep(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();FZ(this.layout.Ea,"metadata_type_player_bytes_callback").XE();
break;case "skip-button":if(a=FZ(this.layout.Ea,"metadata_type_player_bytes_callback"),a.MD)a.FA(this.kd(),this.layout);else{var b;(a=null==(b=FZ(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&c_a(a,this.kd(),this.layout)}}};
g.k.ra=function(){h1.prototype.ra.call(this)};g.v(m1,h1);g.k=m1.prototype;g.k.startRendering=function(a){var b=this;TZa(this.u,a,function(){b.j.push(new HK(FZ(b.layout.Ea,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Fc));b.kF();b.callback.Sc(b.slot,a);g.U(L0(b.Ha.get(),1),512)&&b.callback.Eg(b.kd(),b.Fb(),new F_("player is stuck during adNotify"))})};
g.k.aj=function(){};
g.k.Mj=function(a){if(a.state.isError()){var b;this.callback.Eg(this.kd(),this.Fb(),new F_("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.getData())?void 0:b.errorCode}))}};
g.k.onFullscreenToggled=function(){};
g.k.nh=function(){};
g.k.Kj=function(){};
g.k.onVolumeChange=function(){};
g.k.Hk=function(){};
g.k.eg=function(){};$Za.prototype.Ze=function(a,b,c,d){if(a=n1(a,c,d,this.kc,this.Ha,this.Ra,this.u,this.j,this.Fa))return a;throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(o1,g.K);g.k=o1.prototype;g.k.init=function(){var a=FZ(this.Fb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Pq()};
g.k.release=function(){var a=FZ(this.Fb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Gr()};
g.k.startRendering=function(a){a.layoutId!==this.Fb().layoutId?this.callback.Eg(this.kd(),a,new F_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Fb().layoutId+("and LayoutType: "+this.Fb().layoutType))):(this.Ha.get().addListener(this),this.yf().Qd.add(this),this.Fa.get().G.V().experiments.gb("html5_load_empty_player_in_media_break_sub_lra")||AZa(this.Ha.get()),this.Xd.get().TL(),this.Or(a))};
g.k.xg=function(a,b){this.gJ=!0;this.Pr(a,b);this.Ha.get().G.yp();this.ze.get().G.cueVideoByPlayerVars({},2);a=L0(this.Ha.get(),1);g.iL(a)&&!g.U(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.gJ&&this.sR()};
g.k.qd=function(a,b){b.layoutId===this.Fb().layoutId&&(this.gJ=!1,this.yf().Qd.delete(this))};
g.k.Mj=function(a,b){if(a.state.isError()){var c,d;this.Eg(null==(c=a.state.getData())?void 0:c.errorCode,new F_("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.rS(a)};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.cj=function(){};
g.k.Hk=function(){};g.v(a_a,o1);g.k=a_a.prototype;g.k.kd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.Pq=function(){if(1>this.u.length)throw new lB("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=FZ(this.Fb().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.t(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),EWa(this.B,this.slot,b.Fb()),FWa(this.B,this.slot,b.Fb())};
g.k.Gr=function(){var a=FZ(this.Fb().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.t(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,PK(this.B,this.slot,b.Fb()),b.release()};
g.k.Pt=function(a,b){var c=this.u[this.j];b.layoutId!==p1(c,a,b)?PA("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Pt()};
g.k.au=function(a,b){var c=this.u[this.j];b.layoutId!==p1(c,a,b)?PA("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.au()};
g.k.FA=function(a,b){var c=this.u[this.j];b.layoutId!==p1(c,a,b)?PA("onSkipRequested for a PlayerBytes layout that is not currently active",c.kd(),c.Fb(),{requestingSlot:a,requestingLayout:b}):f_a(this,c.kd(),c.Fb(),"skipped")};
g.k.Or=function(){-1===this.j&&e_a(this,this.j+1)};
g.k.G2=function(a,b){I_(this.B,a,b)};
g.k.Pr=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.xg(a.Fb(),b),this.D=function(){c.callback.qd(c.slot,c.layout,b)}):this.callback.qd(this.slot,this.layout,b)};
g.k.Sc=function(a,b){var c=this.u[this.j];c&&c.Sc(a,b)};
g.k.qd=function(a,b,c){o1.prototype.qd.call(this,a,b,c);var d=this.u[this.j];d&&d.qd(a,b,c)};
g.k.sR=function(){var a=this.u[this.j];a&&a.wD()};
g.k.aj=function(a){var b=this.u[this.j];b&&b.aj(a)};
g.k.rS=function(a){var b=this.u[this.j];b&&b.Mj(a)};
g.k.Eg=function(a,b){-1===this.j&&(this.callback.Sc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.qA(a,b):PA("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Fb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.k.nh=function(a){var b=this.u[this.j];b&&b.nh(a)};
g.k.Kj=function(a){var b=this.u[this.j];b&&b.Kj(a)};
g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.k.I2=function(a,b,c){f_a(this,a,b,c)};
g.k.H2=function(a,b){f_a(this,a,b,"error")};g.v(s1,g.K);g.k=s1.prototype;g.k.kd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){var a=FZ(this.layout.Ea,"metadata_type_video_length_seconds"),b=FZ(this.layout.Ea,"metadata_type_active_view_traffic_type");NJ(this.layout.Xb)&&lZa(this.Jb.get(),this.layout.layoutId,b,a,this);pZa(this.Ra.get(),this);this.Pq()};
g.k.release=function(){NJ(this.layout.Xb)&&mZa(this.Jb.get(),this.layout.layoutId);qZa(this.Ra.get(),this);this.Gr()};
g.k.Pt=function(){};
g.k.au=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Eg(this.slot,a,new F_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.j="rendering_start_requested",VDa(this.xf.get(),1)?(this.I(-1),this.Or(a),this.Nv(!1)):this.qA("ui_unstable",new F_("Failed to render media layout because ad ui unstable.")))};
g.k.Sc=function(a,b){if(b.layoutId===this.layout.layoutId){this.j="rendering";this.C=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();t1(this,"impression");t1(this,"start");if(this.Ha.get().isMuted()){v1(this,"mute");var c;a=(null==(c=r1(this))?void 0:c.muteCommands)||[];this.Lb.get().Uf(a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.cg("fullscreen");var d;c=(null==(d=r1(this))?void 0:d.fullscreenCommands)||[];this.Lb.get().Uf(c,this.layout.layoutId)}this.Xd.get().BL();this.I(1);
this.fS();var e;d=(null==(e=r1(this))?void 0:e.impressionCommands)||[];this.Lb.get().Uf(d,this.layout.layoutId)}};
g.k.qA=function(a,b){this.Aa={BF:3,xB:"load_timeout"===a?402:400,errorMessage:b.message};t1(this,"error");var c;a=(null==(c=r1(this))?void 0:c.errorCommands)||[];this.Lb.get().Uf(a,this.layout.layoutId);this.callback.Eg(this.slot,this.layout,b)};
g.k.wD=function(){this.T()};
g.k.rQ=function(){if("rendering"===this.j){v1(this,"pause");var a,b=(null==(a=r1(this))?void 0:a.pauseCommands)||[];this.Lb.get().Uf(b,this.layout.layoutId);this.I(2)}};
g.k.sQ=function(){if("rendering"===this.j){v1(this,"resume");var a,b=(null==(a=r1(this))?void 0:a.resumeCommands)||[];this.Lb.get().Uf(b,this.layout.layoutId)}};
g.k.xg=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Eg(this.slot,a,new F_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else if("rendering_stop_requested"!==this.j){this.j="rendering_stop_requested";this.Z=b;switch(b){case "normal":t1(this,"complete");break;case "skipped":t1(this,"skip");break;case "abandoned":e1(this.u,"impression")&&t1(this,"abandon")}this.Pr(a,b)}};
g.k.qd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.j="not_rendering",this.Z=void 0,(a="normal"!==c||this.position+1===this.ya)&&this.Nv(a),this.gS(c),this.I(0),c){case "abandoned":if(e1(this.u,"impression")){var d,e=(null==(d=r1(this))?void 0:d.abandonCommands)||[];this.Lb.get().Uf(e,this.layout.layoutId)}break;case "normal":d=(null==(e=r1(this))?void 0:e.completeCommands)||[];this.Lb.get().Uf(d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=r1(this))?void 0:f.skipCommands)||
[];this.Lb.get().Uf(d,this.layout.layoutId)}};
g.k.uw=function(){return this.layout.layoutId};
g.k.vI=function(){return this.Aa};
g.k.Mj=function(a){if("not_rendering"!==this.j){this.oa||(a=new g.vK(a.state,new g.cL),this.oa=!0);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.j?b&&h_a(a)&&this.ea():b?g.xK(a,2)?this.cN():(h_a(a)?this.I(1):g.xK(a,4)&&!g.xK(a,2)&&this.rQ(),0>wK(a,4)&&!(0>wK(a,2))&&this.sQ()):this.wD()}};
g.k.vA=function(){if("rendering"===this.j){c1(this.u,"active_view_measurable");var a,b=(null==(a=r1(this))?void 0:a.activeViewMeasurableCommands)||[];this.Lb.get().Uf(b,this.layout.layoutId)}};
g.k.uA=function(){if("rendering"===this.j){c1(this.u,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=r1(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Lb.get().Uf(b,this.layout.layoutId)}};
g.k.wA=function(){if("rendering"===this.j){c1(this.u,"active_view_viewable");var a,b=(null==(a=r1(this))?void 0:a.activeViewViewableCommands)||[];this.Lb.get().Uf(b,this.layout.layoutId)}};
g.k.sA=function(){if("rendering"===this.j){c1(this.u,"audio_audible");var a,b=(null==(a=r1(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Lb.get().Uf(b,this.layout.layoutId)}};
g.k.tA=function(){if("rendering"===this.j){c1(this.u,"audio_measurable");var a,b=(null==(a=r1(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Lb.get().Uf(b,this.layout.layoutId)}};
g.k.Nv=function(a){this.Xd.get().Nv(FZ(this.layout.Ea,"metadata_type_ad_placement_config").kind,a,this.position,this.ya,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.j)if(a){this.cg("fullscreen");var b,c=(null==(b=r1(this))?void 0:b.fullscreenCommands)||[];this.Lb.get().Uf(c,this.layout.layoutId)}else this.cg("end_fullscreen"),b=(null==(c=r1(this))?void 0:c.endFullscreenCommands)||[],this.Lb.get().Uf(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.j)if(this.Ha.get().isMuted()){v1(this,"mute");var a,b=(null==(a=r1(this))?void 0:a.muteCommands)||[];this.Lb.get().Uf(b,this.layout.layoutId)}else v1(this,"unmute"),a=(null==(b=r1(this))?void 0:b.unmuteCommands)||[],this.Lb.get().Uf(a,this.layout.layoutId)};
g.k.nh=function(){};
g.k.Kj=function(){};
g.k.Hk=function(){};
g.k.cg=function(a){RZ(this.Fa.get(),"av_call_once_per_event_pair")?this.u.cg(a,!this.C):(this.u.cg(a),this.C||(a=QJ(a))&&this.u.cg(a))};g.v(l_a,s1);g.k=l_a.prototype;g.k.Pq=function(){};
g.k.Gr=function(){var a=this.Ra.get();a.mF===this&&(a.mF=null);this.timer.stop()};
g.k.Or=function(){AZa(this.Ha.get());this.Ra.get().mF=this;YB("pbp")||YB("pbs")||ZB("pbp");YB("pbp","watch")||YB("pbs","watch")||ZB("pbp",void 0,"watch");this.ea()};
g.k.fS=function(){o_a(this)};
g.k.cN=function(){};
g.k.Pt=function(){this.timer.stop();s1.prototype.rQ.call(this)};
g.k.au=function(){o_a(this);s1.prototype.sQ.call(this)};
g.k.qw=function(){return FZ(this.Fb().Ea,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Pr=function(){this.timer.stop()};
g.k.jc=function(){var a=Date.now(),b=a-this.B;this.B=a;this.wm+=b;this.wm>=this.qw()?(this.wm=this.qw(),u1(this,this.wm/1E3,!0),n_a(this,this.wm),this.T()):(u1(this,this.wm/1E3),n_a(this,this.wm))};
g.k.gS=function(){};
g.k.aj=function(){};g.v(w1,s1);g.k=w1.prototype;g.k.Pq=function(){FZ(this.Fb().Ea,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=FZ(this.Fb().Ea,"metadata_type_shrunken_player_bytes_config")};
g.k.Gr=function(){FZ(this.Fb().Ea,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.dc.get().removeCueRange(this.B);this.B=void 0;this.J.dispose();this.D&&this.D.dispose()};
g.k.Or=function(a){var b=sYa(this.Fa.get()),c=tYa(this.Fa.get());if(b&&c){c=FZ(a.Ea,"metadata_type_preload_player_vars");var d=g.YF(this.Fa.get().G.V().experiments,"html5_preload_wait_time_secs");c&&this.D&&this.D.start(1E3*d)}c=FZ(a.Ea,"metadata_type_ad_video_id");d=FZ(a.Ea,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.Cf.get().G.V().oa.add(c,{Uy:d});(c=FZ(a.Ea,"metadata_type_sodar_extension_data"))&&DZa(this.Je.get(),c);BZa(this.Ha.get(),!1);b?(c=this.ze.get(),a=FZ(a.Ea,"metadata_type_player_vars"),
c.G.loadVideoByPlayerVars(a,!1,2)):(c=this.ze.get(),a=FZ(a.Ea,"metadata_type_player_vars"),c.G.cueVideoByPlayerVars(a,2));this.J.start();b||this.ze.get().G.playVideo(2)};
g.k.fS=function(){this.J.stop();this.B="adcompletioncuerange:"+this.Fb().layoutId;this.dc.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Ta.get().dg(2))?void 0:a.clientPlaybackNonce)||"")||PA("Media layout confirmed started, but ad CPN not set.");this.pd.get().Qa("onAdStart",this.adCpn)};
g.k.cN=function(){this.T()};
g.k.qw=function(){var a;return null==(a=this.Ta.get().dg(2))?void 0:a.playbackDurationMs};
g.k.XE=function(){this.u.cg("clickthrough")};
g.k.Pr=function(){this.J.stop();this.D&&this.D.stop();BZa(this.Ha.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ha.get().wx(!1)};
g.k.onCueRangeEnter=function(a){a!==this.B?PA("Received CueRangeEnter signal for unknown layout.",this.kd(),this.Fb(),{cueRangeId:a}):(this.dc.get().removeCueRange(this.B),this.B=void 0,a=FZ(this.Fb().Ea,"metadata_type_video_length_seconds"),u1(this,a,!0),t1(this,"complete"))};
g.k.gS=function(a){"abandoned"!==a&&this.pd.get().Qa("onAdComplete");this.pd.get().Qa("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.aj=function(a){"rendering"===this.j&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().wx(!0),u1(this,a))};g.v(q_a,o1);g.k=q_a.prototype;g.k.kd=function(){return this.j.kd()};
g.k.Fb=function(){return this.j.Fb()};
g.k.Pq=function(){this.j.init()};
g.k.Gr=function(){this.j.release()};
g.k.Pt=function(){this.j.Pt()};
g.k.au=function(){this.j.au()};
g.k.FA=function(a,b){PA("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.kd(),this.Fb(),{requestingSlot:a,requestingLayout:b})};
g.k.Or=function(a){this.j.startRendering(a)};
g.k.Pr=function(a,b){this.j.xg(a,b)};
g.k.Sc=function(a,b){this.j.Sc(a,b)};
g.k.qd=function(a,b,c){o1.prototype.qd.call(this,a,b,c);this.j.qd(a,b,c);b.layoutId===this.Fb().layoutId&&this.Xd.get().yx()};
g.k.sR=function(){this.j.wD()};
g.k.aj=function(a){this.j.aj(a)};
g.k.rS=function(a){this.j.Mj(a)};
g.k.Eg=function(a,b){this.j.qA(a,b)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.nh=function(a){this.j.nh(a)};
g.k.Kj=function(a){this.j.Kj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};x1.prototype.Ze=function(a,b,c,d){if(a=s_a(a,b,c,d,this.yf,this.j,this.Ra,this.Jb,this.Je,this.ze,this.Ta,this.Ha,this.dc,this.Xd,this.pd,this.xf,this.Lb,this.Cf,this.Fa))return a;throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(y1,g.K);g.k=y1.prototype;g.k.hS=function(a){if(!this.j){var b;null==(b=this.Se)||b.get().Br(a.identifier);return!1}t_a(this,this.j,a);return!0};
g.k.ZR=function(){};
g.k.bj=function(a){this.j&&this.j.contentCpn!==a&&(PA("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Wl=function(a){this.j&&this.j.contentCpn!==a&&PA("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
g.k.ra=function(){g.K.prototype.ra.call(this);this.j=null};g.v(z1,g.K);g.k=z1.prototype;g.k.Sc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&FK(b,this.B)){var d=this.Ta.get().dg(2),e=this.j(b,d||void 0,this.Fa.get().G.V().experiments.gb("enable_post_ad_perception_survey_in_tvhtml5"));e?JA(this.Ub.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[XYa(c.Gb.get(),e.contentCpn,e.Dx,function(h){return c.u(h.slotId,"core",e,JZ(c.Hb.get(),h))},e.KQ)];
e.instreamAdPlayerUnderlayRenderer&&kZa(c.Fa.get())&&f.push(u_a(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):PA("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.qg=function(){};
g.k.Nj=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.cj=function(){};
g.k.qd=function(){};var f2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=y_a.prototype;g.k.init=function(){};
g.k.kd=function(){return this.slot};
g.k.NC=function(){this.callback.qg(this.slot)};
g.k.PC=function(){this.callback.rg(this.slot)};
g.k.release=function(){};B1.prototype.Ze=function(a,b){return new y_a(a,b)};g.k=z_a.prototype;g.k.init=function(){};
g.k.kd=function(){return this.slot};
g.k.NC=function(){S0(this.Ha.get(),"ad-showing");this.callback.qg(this.slot)};
g.k.PC=function(){this.callback.rg(this.slot);T0(this.Ha.get(),"ad-showing")};
g.k.release=function(){};g.k=A_a.prototype;g.k.init=function(){};
g.k.kd=function(){return this.slot};
g.k.NC=function(){S0(this.Ha.get(),"ad-showing");S0(this.Ha.get(),"ad-interrupting");this.u=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.qg(this.slot)};
g.k.PC=function(){T0(this.Ha.get(),"ad-showing");T0(this.Ha.get(),"ad-interrupting");var a=this.u?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().G.seekTo(a,void 0,void 0,1);this.callback.rg(this.slot)};
g.k.release=function(){};g.k=B_a.prototype;g.k.init=function(){};
g.k.kd=function(){return this.slot};
g.k.NC=function(){S0(this.Ha.get(),"ad-showing");S0(this.Ha.get(),"ad-interrupting");this.callback.qg(this.slot)};
g.k.PC=function(){this.Ha.get().Rs();T0(this.Ha.get(),"ad-showing");T0(this.Ha.get(),"ad-interrupting");this.callback.rg(this.slot)};
g.k.release=function(){this.Ha.get().Rs()};C1.prototype.Ze=function(a,b){if(LA(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new z_a(a,b,this.Ha);if(b.Pb instanceof l0&&LA(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new A_a(a,b,this.Ha);if(LA(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new B_a(a,b,this.Ha);throw new lB("Unsupported slot with type "+b.slotType+" and client metadata: "+(GZ(b.Ea)+" in PlayerBytesSlotAdapterFactory."));};g.v(E1,g.K);E1.prototype.j=function(a){for(var b=[],c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof Z_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Qf===a&&b.push(d)}b.length?J_(this.dG(),b):PA("Mute requested but no registered triggers can be activated.")};g.v(F1,E1);g.k=F1.prototype;g.k.eg=function(a,b){if(b)if("survey-submit"===a)C_a(this,b);else if("skip-button"===a){a=[];for(var c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof Z_&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Qf===b&&a.push(d)}a.length&&J_(this.dG(),a)}else"survey-single-select-answer-button"===a&&C_a(this,b)};
g.k.YI=function(a){E1.prototype.j.call(this,a)};
g.k.Ok=function(a,b,c,d){if(this.Rb.has(b.triggerId))throw new lB("Tried to register duplicate trigger for slot.");if(!(b instanceof $_||b instanceof Z_))throw new lB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Rb.set(b.triggerId,new D1(a,b,c,d))};
g.k.Xk=function(a){this.Rb.delete(a.triggerId)};
g.k.WI=function(){};
g.k.VI=function(){};
g.k.xD=function(){};g.v(G1,g.K);g.k=G1.prototype;
g.k.Ok=function(a,b,c,d){if(this.Rb.has(b.triggerId))throw new lB("Tried to register duplicate trigger for slot.");if(!(b instanceof u0||b instanceof v0||b instanceof w0||b instanceof x0||b instanceof y0||b instanceof z0||b instanceof JYa||b instanceof s0||b instanceof Y_||b instanceof c0||b instanceof IYa||b instanceof r0))throw new lB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new D1(a,b,c,d);this.Rb.set(b.triggerId,a);b instanceof
y0&&this.D.has(b.Ch)&&J_(this.j(),[a]);b instanceof u0&&this.B.has(b.Ch)&&J_(this.j(),[a]);b instanceof s0&&this.u.has(b.Qf)&&J_(this.j(),[a])};
g.k.Xk=function(a){this.Rb.delete(a.triggerId)};
g.k.zi=function(a){this.D.add(a.slotId);for(var b=[],c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof y0&&a.slotId===d.trigger.Ch&&b.push(d);0<b.length&&J_(this.j(),b)};
g.k.Oj=function(a){this.D.delete(a.slotId);for(var b=[],c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof z0&&e.Ch===a.slotId&&b.push(d)}0<b.length&&J_(this.j(),b)};
g.k.Nj=function(a){for(var b=[],c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof JYa&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&J_(this.j(),b)};
g.k.qg=function(a){this.B.add(a.slotId);for(var b=[],c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof u0&&a.slotId===d.trigger.Ch&&b.push(d);0<b.length&&J_(this.j(),b)};
g.k.rg=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof v0)a.slotId===d.trigger.Ch&&b.push(d);else if(d.trigger instanceof r0){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.Qf)&&b.push(d)}0<b.length&&J_(this.j(),b)};
g.k.Ik=function(a){for(var b=[],c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof w0&&a.slotId===d.trigger.Ch&&b.push(d);0<b.length&&J_(this.j(),b)};
g.k.Jk=function(a){for(var b=[],c=g.t(this.Rb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof x0&&a.slotId===d.trigger.Ch&&b.push(d);0<b.length&&J_(this.j(),b)};
g.k.Lj=function(a,b){this.I.add(b.layoutId)};
g.k.Mh=function(a,b){this.I.delete(b.layoutId)};
g.k.Sc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.t(this.Rb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof s0)b.layoutId===e.trigger.Qf&&c.push(e);else if(e.trigger instanceof IYa){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof r0&&(f=e.trigger,b.layoutId===f.Qf&&this.C.has(f.slotId)&&c.push(e));0<c.length&&J_(this.j(),c)};
g.k.qd=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.t(this.Rb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof Y_&&b.layoutId===e.trigger.Qf&&a.push(e),e.trigger instanceof c0){var f=e.trigger;b.layoutId===f.Qf&&f.j.includes(c)&&a.push(e)}0<a.length&&J_(this.j(),a)};
g.k.cj=function(){};
g.k.bj=function(){this.C.clear()};
g.k.Wl=function(){};g.v(H1,g.K);H1.prototype.Ok=function(a,b,c,d){if(this.Rb.has(b.triggerId))throw new lB("Tried to register duplicate trigger for slot.");if(!(b instanceof MA||b instanceof a0))throw new lB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Rb.set(b.triggerId,new D1(a,b,c,d))};
H1.prototype.Xk=function(a){this.Rb.delete(a.triggerId)};
H1.prototype.bj=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.t(this.Rb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof MA&&l.trigger.Jp===a&&f.push(l);e.call(d,b,g.u(f));b.push.apply(b,g.u(D_a(this.Rb,a,!1,c)));b.length&&J_(this.j(),b)};
H1.prototype.Wl=function(a){var b=[];b.push.apply(b,g.u(D_a(this.Rb,a,!0,!1)));b.length&&J_(this.j(),b)};g.v(I1,g.K);g.k=I1.prototype;
g.k.Ok=function(a,b,c,d){if(this.Rb.has(b.triggerId))throw new lB("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(E_a(b))this.Rb.set(b.triggerId,{bundle:new D1(a,b,c,d),Os:e});else if(b instanceof l0||b instanceof t0)F_a(this,a,b,c,d,e,b.pm.start,b.pm.end,b.Jp,b.visible);else if(b instanceof TYa)F_a(this,a,b,c,d,e,b.pm.start,b.pm.end,b.Jp,!1);else if(b instanceof RYa)F_a(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Jp,b.visible);else throw new lB("Incorrect TriggerType: Tried to register trigger of type "+
b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Xk=function(a){var b=this.Rb.get(a.triggerId);b&&this.dc.get().removeCueRange(b.Os);this.Rb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=G_a(this,a))if(a=this.Rb.get(a))if(g.U(L0(this.Ha.get()),32))this.j.add(a.Os);else{var c=null==a?void 0:a.bundle.trigger;b=b?c instanceof MYa:c instanceof LYa;(c instanceof l0||c instanceof t0||c instanceof RYa||c instanceof o0||b)&&J_(this.u(),[a.bundle])}};
g.k.onCueRangeExit=function(a){if(a=G_a(this,a))if(a=this.Rb.get(a))this.j.delete(a.Os),a.bundle.trigger instanceof TYa&&J_(this.u(),[a.bundle])};
g.k.Mj=function(a){if(0>wK(a,16)){a=g.t(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.Sc=function(a,b){a=g.t(this.Rb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.bundle.trigger;c=c.Os;if(E_a(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ha.get().getCurrentTimeSec(1,!1);d instanceof o0?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.dc.get().addCueRange(c,d,e,!1,this)}}};
g.k.qd=function(a,b,c){var d=this;a={};for(var e=g.t(this.Rb.values()),f=e.next();!f.done;a={Wx:a.Wx,po:a.po},f=e.next())f=f.value,a.po=f.bundle.trigger,a.Wx=f.Os,E_a(a.po)&&a.po.layoutId===b.layoutId?eZa(this.dc.get(),a.Wx):a.po instanceof t0&&a.po.layoutId===b.layoutId&&"user_cancelled"===c&&(this.dc.get().removeCueRange(a.Wx),g.Tv(g.Vv(),function(h){return function(){d.dc.get().addCueRange(h.Wx,h.po.pm.start,h.po.pm.end,h.po.visible,d)}}(a)))};
g.k.cj=function(){};
g.k.aj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.nh=function(){};
g.k.Kj=function(){};
g.k.onVolumeChange=function(){};
g.k.Hk=function(){};g.v(J1,g.K);g.k=J1.prototype;g.k.Ok=function(a,b,c,d){if(this.Rb.has(b.triggerId))throw new lB("Tried to register duplicate trigger for slot.");if(!(b instanceof b0))throw new lB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Rb.set(b.triggerId,new D1(a,b,c,d))};
g.k.Xk=function(a){this.Rb.delete(a.triggerId)};
g.k.jw=function(){};
g.k.mq=function(){};
g.k.Sc=function(){};
g.k.qd=function(){};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.cj=function(){};g.v(K1,g.K);g.k=K1.prototype;g.k.cj=function(a,b){for(var c=[],d=g.t(this.Rb.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&&J_(this.j(),c)};
g.k.Ok=function(a,b,c,d){if(this.Rb.has(b.triggerId))throw new lB("Tried to register duplicate trigger for slot.");if(!(b instanceof KYa))throw new lB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Rb.set(b.triggerId,new D1(a,b,c,d))};
g.k.Xk=function(a){this.Rb.delete(a.triggerId)};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.Sc=function(){};
g.k.qd=function(){};g.v(L1,g.K);L1.prototype.ra=function(){this.Jn.get().removeListener(this);g.K.prototype.ra.call(this)};g.v(M1,g.K);M1.prototype.ra=function(){this.Qe.get().removeListener(this);g.K.prototype.ra.call(this)};N1.prototype.fetch=function(a){var b=a.xP;return this.us.fetch(a.DU,{Xy:void 0===a.Xy?void 0:a.Xy,Yd:b}).then(function(c){return H_a(c,b)})};g.v(O1,g.K);g.k=O1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.kF=function(a){I_a(this,a,1)};
g.k.onAdUxClicked=function(a,b){P1(this,function(c){c.eg(a,b)})};
g.k.dK=function(a){P1(this,function(b){b.WI(a)})};
g.k.cK=function(a){P1(this,function(b){b.VI(a)})};
g.k.j0=function(a){P1(this,function(b){b.xD(a)})};g.v(Q1,g.K);g.k=Q1.prototype;
g.k.bj=function(){this.C=new SK(this,hZa(this.Fa.get()));this.u=new TK;var a=this.G.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.G.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.kK,this),b.subscribe("cuepointupdated",this.kK,this),this.j=b)}this.uF.length=0;var d;b=(null==(d=a.j)?void 0:Sza(d,0))||[];d=g.t(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.xr(b)&&PA("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Wl=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.BK=function(a){this.uF.push(a);for(var b=!1,c=g.t(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.hS(a)||b;this.B=b};
g.k.aS=function(a){g.qc(this.u.j,1E3*a);for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.ZR(a)};
g.k.xr=function(a){K_a(this,a);this.C.reduce(a);a=this.B;this.B=!1;return a};
g.k.kK=function(a){var b=this.G.getVideoData(1).isDaiEnabled();if(b||!g.rH(this.G.V())){a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,K_a(this,c),b?this.C.reduce(c):0!==this.G.getCurrentTime(1)&&"start"===c.event&&this.BK(c)}};
g.k.ra=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.kK,this),this.j=null);this.listeners.length=0;this.uF.length=0;g.K.prototype.ra.call(this)};T1.prototype.addListener=function(a){this.listeners.push(a)};
T1.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=M_a.prototype;g.k.kd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().EC.push(this)};
g.k.release=function(){this.Ha.get().removeListener(this);xZa(this.Ha.get(),this)};
g.k.startRendering=function(a){this.callback.Sc(this.slot,a)};
g.k.xg=function(a,b){this.callback.qd(this.slot,a,b)};
g.k.Hk=function(a){switch(a.id){case "part2viewed":c1(this.j,"start");break;case "videoplaytime25":c1(this.j,"first_quartile");jZa(this.Fa.get())&&f1(this.j,"first_quartile")&&(f1(this.j,"progress")||PA("empty progresss_ping when the first quartile ping exists in discovery_layout_rendering_adapter.ts",this.slot,this.layout),this.u||PA("progress_pings did not get fired when the first quartile ping is fired",this.slot,this.layout));break;case "videoplaytime50":c1(this.j,"midpoint");break;case "videoplaytime75":c1(this.j,
"third_quartile");break;case "videoplaytime100":c1(this.j,"complete");break;case "engagedview":jZa(this.Fa.get())&&f1(this.j,"progress")&&(this.u=!0);if(!iZa(this.Fa.get())){c1(this.j,"progress");break}PZa(this.j)||c1(this.j,"progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:PA("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Kj=function(){};
g.k.nh=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Mj=function(){};
g.k.aj=function(){};
g.k.VR=function(a){iZa(this.Fa.get())&&PZa(this.j)&&d1(this.j,1E3*a,!1)};N_a.prototype.Ze=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.t(a1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(Y0(d,{Fe:b,Kf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new M_a(a,c,d,this.Ha,this.Ra,this.Fa);throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=U1.prototype;g.k.kd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){this.bf.get().addListener(this);this.Ha.get().addListener(this);this.Pq();var a=FZ(this.layout.Ea,"metadata_type_layout_enter_ms"),b=FZ(this.layout.Ea,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ta.get().Ps)?void 0:c.clientPlaybackNonce;c=this.layout.Fc.adClientDataEntry;P0(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.bf.get();e=UK(e.u,a,b);null!==e&&(P0(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Se.get().Js(e,b))};
g.k.release=function(){this.Gr();this.bf.get().removeListener(this);this.Ha.get().removeListener(this)};
g.k.startRendering=function(){this.Or();this.callback.Sc(this.slot,this.layout)};
g.k.xg=function(a,b){this.Pr(b);null!==this.driftRecoveryMs&&(P_a(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(O_a(this)-FZ(this.layout.Ea,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().G.Cq()).toString()}),this.driftRecoveryMs=null);this.callback.qd(this.slot,this.layout,b)};
g.k.hS=function(){return!1};
g.k.ZR=function(a){var b=FZ(this.layout.Ea,"metadata_type_layout_enter_ms"),c=FZ(this.layout.Ea,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;P0(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Ta.get().Ps)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Fc.adClientDataEntry}});this.Se.get().Js(a,c)}};
g.k.aj=function(a){this.MR(a);a=this.Ha.get().getCurrentTimeSec(2,!0);if(GYa(this.D.get(),this.layout.layoutId)){var b=FZ(this.layout.Ea,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=O_a(this),e=this.Ha.get().G.Cq(),f=Math.min(a+e,d/1E3);f<=a?P_a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(P_a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ha.get().G.seekTo(f,void 0,void 0,1))}}};
g.k.nh=function(){};
g.k.Kj=function(){};
g.k.onVolumeChange=function(){};
g.k.Hk=function(){};g.v(Q_a,U1);g.k=Q_a.prototype;g.k.Pq=function(){this.Ta.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Ra.get().wi("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.Gr=function(){this.Ta.get().removeListener(this);this.u=null;this.C.forEach(function(a){a.release()})};
g.k.Or=function(){if(this.u)PA("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Ta.get().Ps)?void 0:a.layoutId;S_a(this,b)}};
g.k.Pr=function(a){var b,c,d,e;null==(d=this.u)||null==(e=d.pk)||e.xg(null==(b=this.u)?void 0:null==(c=b.pk)?void 0:c.Fb(),a);this.u=null};
g.k.nS=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Ra.get().wi("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.u+";slrslid."+(null==(c=this.u)?void 0:null==(d=c.pk)?void 0:d.Fb().layoutId))}var e;if(this.u&&(null==(e=this.u.pk)?void 0:e.Fb().layoutId)!==a){var f,h;null==(h=this.u.pk)||h.xg(null==(f=this.u.pk)?void 0:f.Fb(),"normal");S_a(this,a)}};
g.k.MR=function(){};
g.k.Mj=function(){};
g.k.onFullscreenToggled=function(){};g.k=f0a.prototype;g.k.kd=function(){return this.slot};
g.k.Fb=function(){return this.layout};
g.k.init=function(){var a=this;FZ(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;this.Gc=T_a(this.slot,this.layout,FZ(this.layout.Ea,"metadata_type_player_vars"),FZ(this.layout.Ea,"metadata_type_layout_enter_ms"),FZ(this.layout.Ea,"metadata_type_layout_exit_ms"),1E3*FZ(this.layout.Ea,"metadata_type_video_length_seconds"),this.Se.get(),this.Ld.get(),function(){var e=Object,f=e.assign,h=i0a(a.layout);var l=FZ(a.slot.Ea,"metadata_type_fulfilled_layout");l=Object.assign({},i0a(l),
{adPlacementConfig:FZ(l.Ea,"metadata_type_ad_placement_config"),subLayouts:FZ(l.Ea,"metadata_type_sub_layouts").map(i0a)});return f.call(e,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},h,{compositeLayout:l,hasSurveyOverlay:KA(a.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:FZ(a.layout.Ea,"metadata_type_survey_overlay")})},this.Ra.get());
this.Ha.get().addListener(this);var b=FZ(this.layout.Ea,"metadata_type_video_length_seconds"),c=FZ(this.layout.Ea,"metadata_type_active_view_traffic_type"),d=NJ(this.layout.Xb);this.Fa.get().G.V().experiments.gb("html5_disable_lidar")&&this.Ra.get().wi("ads_av","lid."+this.layout.layoutId+";enab."+d);d&&lZa(this.Jb.get(),this.layout.layoutId,c,b,this);EWa(this.callback,this.slot,this.layout);FWa(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ha.get().removeListener(this);NJ(this.layout.Xb)&&mZa(this.Jb.get(),this.layout.layoutId);this.Fa.get().G.V().N("html5_unschedule_dai_media_sublayout_killswitch")||PK(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;KA(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ra.get().wi("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.u)PA("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:KA(this.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:FZ(this.layout.Ea,"metadata_type_survey_overlay")});else{this.u={Sl:null,bB:!1};this.Fa.get().G.V().experiments.gb("html5_disable_sodar_for_tvhtml5")||U_a(this.slot,this.layout,
this.Je.get());c1(this.j,"start");if(J0(this.Fa.get())){var b=L0(this.Ha.get()),c=FZ(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);W_a(this.j,this.u.Sl,b,c,d,function(){return void h0a(a,"teois")})}I_(this.callback,this.slot,this.layout);
KA(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ra.get().wi("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.xg=function(a,b){var c=this;if(this.u){if(J0(this.Fa.get()))if(null===this.Gc)PA("Unexpected media sub layout exited without a timeline playback ID");else{a=FZ(this.layout.Ea,"metadata_type_video_length_seconds");var d=yZa(this.Ha.get(),this.Gc);this.j.D=d;X_a(this.j,null,this.u.Sl,a,d,function(e){return void g0a(c,e,"fue")})}this.u=null;
JK(this.callback,this.slot,this.layout,b)}else PA("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.qA=function(){};
g.k.wD=function(){};
g.k.aj=function(a){var b=this;if(this.u){if(e1(this.j,"impression")){var c=L0(this.Ha.get()),d=FZ(this.layout.Ea,"metadata_type_video_length_seconds");Y_a(this.j,c,a,this.u.Sl,d,function(e){return void g0a(b,e,"tpaqe")})}this.u.Sl=a}};
g.k.Mj=function(a){var b=this;if(this.u){J0(this.Fa.get())||this.u.bB||(this.u.bB=!0,a=new g.vK(a.state,new g.cL));var c=FZ(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);V_a(this.j,this.u.Sl,a,c,d,!J0(this.Fa.get()),function(){return void h0a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){Z_a(this.j,a)};
g.k.nh=function(){};
g.k.Kj=function(){};
g.k.FA=function(a,b){var c;this.Ra.get().wi("ads_dsr","ti."+e1(this.j,"impression")+";ts."+e1(this.j,"skip")+";hp."+f1(this.j,"skip")+";cpn."+FZ(this.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Ta.get().dg(2))?void 0:c.clientPlaybackNonce)+";sl."+(FZ(b.Ea,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));e1(this.j,"impression")&&c1(this.j,"skip");this.Se.get().Un()||PA("Unexpected failure to skip a server stitched ad",this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Sc=function(){};
g.k.qd=function(){};
g.k.Pt=function(){};
g.k.au=function(){};
g.k.XE=function(){$_a(this.j)};
g.k.vA=function(){a0a(this.j)};
g.k.uA=function(){b0a(this.j)};
g.k.wA=function(){c0a(this.j)};
g.k.sA=function(){d0a(this.j)};
g.k.tA=function(){e0a(this.j)};
g.k.Hk=function(){};g.v(j0a,U1);g.k=j0a.prototype;
g.k.Pq=function(){var a=this;FZ(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;var b=FZ(this.layout.Ea,"metadata_type_layout_enter_ms"),c=FZ(this.layout.Ea,"metadata_type_layout_exit_ms");this.Gc=T_a(this.slot,this.layout,FZ(this.layout.Ea,"metadata_type_player_vars"),b,c,1E3*FZ(this.layout.Ea,"metadata_type_video_length_seconds"),this.Se.get(),this.Ld.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:FZ(a.layout.Ea,"metadata_type_ad_placement_config")}},
this.Ra.get());
var d=FZ(this.layout.Ea,"metadata_type_video_length_seconds"),e=FZ(this.layout.Ea,"metadata_type_active_view_traffic_type");NJ(this.layout.Xb)&&lZa(this.Jb.get(),this.layout.layoutId,e,d,this)};
g.k.Gr=function(){NJ(this.layout.Xb)&&mZa(this.Jb.get(),this.layout.layoutId)};
g.k.Or=function(){var a=this;if(this.u)PA("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={Sl:null,bB:!1},U_a(this.slot,this.layout,this.Je.get()),c1(this.j,"start"),J0(this.Fa.get())){var b=L0(this.Ha.get()),c=FZ(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);W_a(this.j,this.u.Sl,b,c,d,function(){return void k0a(a,"teois")})}};
g.k.Pr=function(){var a=this;if(this.u){if(J0(this.Fa.get()))if(null===this.Gc)PA("Unexpected single media layout exited without a timeline playback ID");else{var b=FZ(this.layout.Ea,"metadata_type_video_length_seconds"),c=yZa(this.Ha.get(),this.Gc);this.j.D=c;X_a(this.j,null,this.u.Sl,b,c,function(d){return void l0a(a,d,"fue")})}this.u=null}else PA("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.MR=function(a){var b=this;if(this.u){if(e1(this.j,"impression")){var c=L0(this.Ha.get()),d=FZ(this.layout.Ea,"metadata_type_video_length_seconds");Y_a(this.j,c,a,this.u.Sl,d,function(e){return void l0a(b,e,"tpaqe")})}this.u.Sl=a}};
g.k.Mj=function(a){var b=this;if(this.u){J0(this.Fa.get())||this.u.bB||(this.u.bB=!0,a=new g.vK(a.state,new g.cL));var c=FZ(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);V_a(this.j,this.u.Sl,a,c,d,!J0(this.Fa.get()),function(){return void k0a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){Z_a(this.j,a)};
g.k.XE=function(){$_a(this.j)};
g.k.vA=function(){a0a(this.j)};
g.k.uA=function(){b0a(this.j)};
g.k.wA=function(){c0a(this.j)};
g.k.sA=function(){d0a(this.j)};
g.k.tA=function(){e0a(this.j)};m0a.prototype.Ze=function(a,b,c,d){if(KA(c.Ea,"metadata_type_dai")){var e=FZ(d.Ea,"metadata_type_ad_placement_config");Y0(d,{Fe:"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(" "),Kf:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new $0(d.Xb,this.Ra,e,d.layoutId,null),e=new j0a(a,c,d,this.Ta,this.Se,this.Ld,this.bf,this.Ha,e,this.Ra,this.Je,this.j,this.Jb,this.Fa)):
e=null;if(e)return e;a:{var f=FZ(d.Ea,"metadata_type_sub_layouts"),h=FZ(d.Ea,"metadata_type_ad_placement_config");if(Y0(d,{Fe:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Kf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=FZ(l.Ea,"metadata_type_media_sub_layout_index");if(!Y0(l,{Fe:"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(" "),
Kf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new $0(l.Xb,this.Ra,h,l.layoutId,m);e.push(new f0a(b,c,l,this.Se,m,this.Ha,this.Ld,this.Jb,this.Je,this.Fa,this.Ra,this.Ta))}b=new $0(d.Xb,this.Ra,h,d.layoutId);a=new Q_a(a,c,d,this.Ta,this.Se,this.bf,this.Ha,b,this.Ra,this.j,e)}else a=null}if(a)return a}else if(a=s_a(a,b,c,d,this.yf,this.u,this.Ra,this.Jb,this.Je,this.ze,this.Ta,this.Ha,this.dc,this.Xd,this.pd,this.xf,this.Lb,this.Cf,this.Fa))return a;throw new F_("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+GZ(d.Ea)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(V1,g.K);V1.prototype.Ok=function(a,b,c,d){if(this.Rb.has(b.triggerId))throw new lB("Tried to register duplicate trigger for slot.");if(!(b instanceof f0))throw new lB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Rb.set(b.triggerId,new D1(a,b,c,d))};
V1.prototype.Xk=function(a){this.Rb.delete(a.triggerId)};g.v(X1,g.K);
X1.prototype.Ok=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new lB("Tried to re-register the trigger.");a=new D1(a,b,c,d);if(a.trigger instanceof SYa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof DXa)this.B.set(a.trigger.triggerId,a);else throw new lB("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&J_(this.C(),[a])};
X1.prototype.Xk=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
X1.prototype.nS=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.u(n0a(this.B,this.j)));null!=a&&b.push.apply(b,g.u(n0a(this.u,a)));this.j=a;b.length&&J_(this.C(),b)}};g.k=o0a.prototype;g.k.Jv=function(a,b,c,d,e,f,h){return this.G.Jv(a,b,c,d,e,f,h)};
g.k.Js=function(a,b){this.G.Js(a,b)};
g.k.Hx=function(a,b,c){this.G.Hx(a,b,c)};
g.k.Br=function(a){this.G.Br(a)};
g.k.Wz=function(a,b,c,d,e,f,h){this.G.Wz(a,b,c,d,e,f,h)};
g.k.Un=function(){return this.G.Un()};g.v(p0a,HJ);g.v(q0a,h1);g.k=q0a.prototype;g.k.eg=function(a,b){j1("image-companion",a,this.J.get().Tj,this.Ra.get(),this.C,this.D,this.kd(),this.Fb(),b)};
g.k.startRendering=function(a){i1(this.I,this.kd(),this.Fb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new p0a(b,c,d,e,f)},this.j);
h1.prototype.startRendering.call(this,a)};
g.k.Sc=function(a,b){b.layoutId===this.layout.layoutId?c1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().Ui():PA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.qd=function(){};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.cj=function(){};
g.k.ra=function(){this.yf().Qd.delete(this);h1.prototype.ra.call(this)};g.v(s0a,HJ);g.v(t0a,h1);g.k=t0a.prototype;g.k.eg=function(a,b){j1("shopping-companion",a,this.J.get().Tj,this.Ra.get(),this.C,this.D,this.kd(),this.Fb(),b)};
g.k.startRendering=function(a){i1(this.I,this.kd(),this.Fb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new s0a(b,c,d,e,f)},this.j);
h1.prototype.startRendering.call(this,a)};
g.k.Sc=function(a,b){b.layoutId===this.layout.layoutId?c1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().Ui():PA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.qd=function(){};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.cj=function(){};
g.k.ra=function(){this.yf().Qd.delete(this);h1.prototype.ra.call(this)};g.v(v0a,HJ);g.v(w0a,h1);g.k=w0a.prototype;g.k.eg=function(a,b){j1("ads-engagement-panel",a,this.J.get().Tj,this.Ra.get(),this.C,this.D,this.kd(),this.Fb(),b)};
g.k.startRendering=function(a){i1(this.I,this.kd(),this.Fb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new v0a(b,c,d,e,f)},this.j);
h1.prototype.startRendering.call(this,a)};
g.k.Sc=function(a,b){b.layoutId===this.layout.layoutId?c1(this.I,"impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().Ui():PA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.qd=function(){};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.cj=function(){};
g.k.ra=function(){this.yf().Qd.delete(this);h1.prototype.ra.call(this)};y0a.prototype.Ze=function(a,b,c,d){if(Y0(d,x0a()))return new w0a(a,c,d,this.kc,this.Ra,this.yf,this.Jb,this.j);if(Y0(d,WZa()))return new VZa(a,c,d,this.kc,this.Ra,this.yf,this.Jb,this.j);if(Y0(d,r0a()))return new q0a(a,c,d,this.kc,this.Ra,this.yf,this.Jb,this.j);if(Y0(d,u0a()))return new t0a(a,c,d,this.kc,this.Ra,this.yf,this.Jb,this.j);throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(z0a,HJ);g.v(Y1,h1);Y1.prototype.init=function(){h1.prototype.init.call(this);var a=FZ(this.layout.Ea,"metadata_type_player_underlay_renderer");this.j.push(new z0a(g.N(a,k3a),this.layout.layoutId,{adsClientData:this.layout.Fc}))};
Y1.prototype.eg=function(){};
Y1.prototype.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Sc(this.slot,a)};
Y1.prototype.ra=function(){h1.prototype.ra.call(this)};A0a.prototype.Ze=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.t(a1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(Y0(d,{Fe:b,Kf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new Y1(a,c,d,this.kc);throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.v(B0a,HJ);g.v(Z1,h1);Z1.prototype.startRendering=function(a){var b=b1(this.C),c={adsClientData:this.layout.Fc};this.j.push(new B0a(FZ(this.layout.Ea,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Fb().layoutId,c));h1.prototype.startRendering.call(this,a);this.callback.Sc(this.slot,a)};
Z1.prototype.eg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=FZ(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.FA(this.slot,this.layout):PA("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
Z1.prototype.ra=function(){h1.prototype.ra.call(this)};var C0a=new g.Gg(320,63);g.v(F0a,HJ);g.v(b2,h1);g.k=b2.prototype;g.k.aj=function(){};
g.k.Mj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.nh=function(a){a&&W1(this.C,this.layout)};
g.k.Kj=function(a){var b=a2(this.layout);if(this.J=D0a(a,zZa(this.Ha.get())))b.onErrorCommand&&this.Lb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),W1(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.uw=function(){return this.Fb().layoutId};
g.k.vI=function(){return this.J};
g.k.eg=function(a){this.D.eg(a);"in_video_overlay_close_button"===a&&W1(this.C,this.layout)};
g.k.xD=function(a){"invideo-overlay"===a&&W1(this.C,this.layout)};
g.k.vr=function(){this.D.vr()};
g.k.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Sc(this.slot,a);this.I.Hv=this};
g.k.xg=function(a,b){h1.prototype.xg.call(this,a,b);I1a(this.I,this)};
g.k.init=function(){h1.prototype.init.call(this);pZa(this.Ra.get(),this);this.Ha.get().addListener(this);this.j.push(new F0a(a2(this.layout),b1(this.T),this.layout.layoutId,{adsClientData:this.layout.Fc}))};
g.k.release=function(){h1.prototype.release.call(this);this.Ha.get().removeListener(this);qZa(this.Ra.get(),this)};
g.k.Hk=function(){};g.v(c2,h1);g.k=c2.prototype;g.k.init=function(){h1.prototype.init.call(this);pZa(this.Ra.get(),this);this.Ha.get().addListener(this);this.j.push(new F0a(a2(this.layout),b1(this.Z),this.layout.layoutId,{adsClientData:this.layout.Fc}))};
g.k.vr=function(){this.D.vr()};
g.k.startRendering=function(a){h1.prototype.startRendering.call(this,a);this.callback.Sc(this.slot,a);this.I.Hv=this};
g.k.xg=function(a,b){h1.prototype.xg.call(this,a,b);I1a(this.I,this)};
g.k.eg=function(a){this.D.eg(a);"in_video_overlay_close_button"===a&&W1(this.C,this.layout)};
g.k.WI=function(a){if("invideo-overlay"===a){a=L0a(this.T,this.layout);a=g.t(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.xD=function(a){"invideo-overlay"===a&&W1(this.C,this.layout)};
g.k.VI=function(a){if("invideo-overlay"===a){a=L0a(this.T,this.layout);a=g.t(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.aj=function(){};
g.k.Mj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.nh=function(a){a&&W1(this.C,this.layout)};
g.k.Kj=function(a){var b=a2(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=zZa(this.Ha.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.Tb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Gg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Gg(0,0)}if(this.J=D0a(a,d,c))b.onErrorCommand&&this.Lb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),W1(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.uw=function(){return this.Fb().layoutId};
g.k.vI=function(){return this.J};
g.k.release=function(){h1.prototype.release.call(this);this.Ha.get().removeListener(this);qZa(this.Ra.get(),this)};
g.k.Hk=function(){};d2.prototype.eg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ha.get().ep(1))||this.Ha.get().pauseVideo())};
d2.prototype.vr=function(){this.j||this.Ha.get().resumeVideo(1)};g.v(I0a,HJ);g.v(J0a,h1);g.k=J0a.prototype;g.k.init=function(){h1.prototype.init.call(this);this.Ha.get().addListener(this)};
g.k.startRendering=function(a){var b=FZ(this.layout.Ea,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new I0a(b,this.layout.layoutId,{adsClientData:this.layout.Fc}));h1.prototype.startRendering.call(this,a);this.callback.Sc(this.slot,a)};
g.k.Sc=function(){};
g.k.eg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=FZ(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Pt(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.au(this.slot,this.layout):PA("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.Kj=function(a){450>a.width&&W1(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.aj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.nh=function(){};
g.k.Mj=function(){};
g.k.Hk=function(){};
g.k.ra=function(){h1.prototype.ra.call(this)};
g.k.release=function(){h1.prototype.release.call(this);this.Ha.get().removeListener(this)};K0a.prototype.Ze=function(a,b,c,d){if(b=n1(a,c,d,this.kc,this.Ha,this.Ra,this.C,this.j,this.Fa))return b;if(Y0(d,H0a()))return new c2(c,d,this.Ra,this.Jb,this.kc,a,this.u,this.B,this.Ha,this.Lb,this.Fa,this.j,new d2(this.Ha));if(Y0(d,G0a()))return new b2(c,d,this.Ra,this.Jb,this.kc,a,this.u,this.Ha,this.Lb,this.Fa,this.j,new d2(this.Ha));if(Y0(d,{Fe:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Kf:["LAYOUT_TYPE_SURVEY"]}))return new J0a(c,d,a,this.kc,this.u,this.Ha,this.Fa);if(Y0(d,
{Fe:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Kf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new Z1(c,d,a,this.kc,this.Ra);if(Y0(d,ZZa()))return new m1(c,d,a,this.kc,this.Ha,this.Fa);throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(e2,g.K);g.k=e2.prototype;g.k.Ok=function(a,b,c,d){if(this.Rb.has(b.triggerId))throw new lB("Tried to register duplicate trigger for slot.");if(!(b instanceof RXa))throw new lB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Rb.set(b.triggerId,new D1(a,b,c,d));a=this.j.has(b.Qf)?this.j.get(b.Qf):new Set;a.add(b);this.j.set(b.Qf,a)};
g.k.Xk=function(a){this.Rb.delete(a.triggerId);if(!(a instanceof RXa))throw new lB("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.Qf))b.delete(a),0===b.size&&this.j.delete(a.Qf)};
g.k.zi=function(){};
g.k.Oj=function(){};
g.k.Nj=function(){};
g.k.qg=function(){};
g.k.rg=function(){};
g.k.Ik=function(){};
g.k.Jk=function(){};
g.k.Lj=function(){};
g.k.Mh=function(){};
g.k.cj=function(){};
g.k.Sc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.t(b);for(var d=b.next();!d.done;a={Yx:a.Yx},d=b.next())a.Yx=d.value,d=new g.ho(function(e){return function(){var f=c.Rb.get(e.Yx.triggerId);J_(c.B(),[f])}}(a),a.Yx.durationMs),d.start(),this.u.set(a.Yx.triggerId,d)}};
g.k.qd=function(){};g.v(M0a,g.K);N0a.prototype.Ze=function(a,b,c,d){if(b=n1(a,c,d,this.kc,this.Ha,this.Ra,this.C,this.j,this.Fa))return b;if(Y0(d,H0a()))return new c2(c,d,this.Ra,this.Jb,this.kc,a,this.u,this.B,this.Ha,this.Lb,this.Fa,this.j,new d2(this.Ha));if(Y0(d,G0a()))return new b2(c,d,this.Ra,this.Jb,this.kc,a,this.u,this.Ha,this.Lb,this.Fa,this.j,new d2(this.Ha));throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(O0a,g.K);g.v(P0a,g.K);g.v(Q0a,g.K);g.v(g2,l1);g2.prototype.startRendering=function(a){l1.prototype.startRendering.call(this,a);FZ(this.layout.Ea,"metadata_ad_video_is_listed")&&(a=FZ(this.layout.Ea,"metadata_type_ad_info_ad_metadata"),this.yl.get().G.Qa("onAdMetadataAvailable",a))};S0a.prototype.Ze=function(a,b,c,d){if(Y0(d,R0a()))return new g2(a,c,d,this.kc,this.Ha,this.Ra,this.u,this.yl,this.j);throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(T0a,g.K);U0a.prototype.Ze=function(a,b,c,d){if(Y0(d,R0a()))return new g2(a,c,d,this.kc,this.Ha,this.Ra,this.u,this.yl,this.j);if(a=n1(a,c,d,this.kc,this.Ha,this.Ra,this.u,this.j,this.Fa))return a;throw new F_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+GZ(d.Ea)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(V0a,g.K);g.v(X0a,g.K);X0a.prototype.B=function(){return this.u};g.v(Y0a,NM);
Y0a.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.Qa("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.Qa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Qa("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.Qa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Qa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Qa("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.Qa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Qa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Qa("updateEngagementPanelAction",b.addAction);this.j.Qa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Qa("changeEngagementPanelVisibility",b.hideAction),this.j.Qa("updateEngagementPanelAction",b.removeAction)}};g.v(Z0a,VM);g.k=Z0a.prototype;g.k.init=function(a,b,c){VM.prototype.init.call(this,a,b,c);g.Il(this.C,"stroke-dasharray","0 "+this.B);this.api.V().N("endcap_modernization_dark")&&(this.C.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.I.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){XM(this);VM.prototype.hide.call(this)};
g.k.show=function(){WM(this);VM.prototype.show.call(this)};
g.k.Tt=function(){this.hide()};
g.k.Er=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Il(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.v($0a,mM);g.k=$0a.prototype;
g.k.init=function(a,b,c){mM.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&&g.N(b.actionButton,g.SI))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.$z(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.eb(g.Mg(e[0].url))&&(e[0].url=d.profilePicture,g.eb(g.Mg(d.profilePicture))&&yNa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.eb(g.Mg(e[0].url))&&(e[0].url=d.Hf());e=b.headline;null!=e&&g.eb(g.Mg(e.text))&&(e.text=d.author)}(this.api.V().N("web_rounded_thumbnails")||this.api.V().N("endcap_modernization_dark"))&&this.ea.classList.add("ytp-ad-action-interstitial-image-container-circular");this.api.V().N("endcap_modernization_dark")&&
(this.Oa.classList.add("ytp-ad-action-interstitial-background-container-blur"),this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.I.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.D.element.classList.add("ytp-ad-action-interstitial-description-light"));this.T.init(GJ("ad-image"),b.image,c);this.I.init(GJ("ad-text"),b.headline,c);this.D.init(GJ("ad-text"),b.description,c);this.Ba.init(GJ("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button"];
(this.api.V().N("web_modern_buttons")||this.api.V().N("mweb_wil_modern_buttons")||this.api.V().N("endcap_modernization_dark"))&&d.push("ytp-ad-action-interstitial-action-button-rounded");this.api.V().N("endcap_modernization_dark")&&d.push("ytp-ad-action-interstitial-action-button-dark");this.actionButton=new DM(this.api,this.jb,this.layoutId,this.j,this.bb,d);g.L(this,this.actionButton);this.actionButton.Ca(this.Sa);this.actionButton.init(GJ("button"),g.N(b.actionButton,g.SI),c);this.navigationEndpoint=
b.navigationEndpoint;this.api.V().isMobile||(this.C.S(this.ea,"click",this.kI,this),this.C.S(this.Ma,"click",this.kI,this),this.C.S(this.Ka,"click",this.kI,this));this.u=this.OL?new kN(this.api,a):new lN(a);g.L(this,this.u);b.skipButton?(a=g.N(b.skipButton,q3a))&&this.u&&(this.skipButton=new eN(this.api,this.jb,this.layoutId,this.j,this.bb,this.u,this.iF),g.L(this,this.skipButton),this.skipButton.Ca(this.element),this.skipButton.init(GJ("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=g.N(b.nonskippableOverlayRenderer,
X_))&&this.u&&(this.B=new $M(this.api,this.jb,this.layoutId,this.j,this.bb,this.u,!1),g.L(this,this.B),this.B.Ca(this.element),this.B.init(GJ("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.N(b,r3a)&&this.u&&(c=new Z0a(this.api,this.jb,this.layoutId,this.j,this.bb,this.u),g.L(this,c),c.Ca(this.element),c.init(GJ("timed-pie-countdown"),g.N(b,r3a),this.macros)));this.show();this.element.focus()}else g.$z(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.$z(Error("AdActionInterstitialRenderer has no button."));
else g.$z(Error("AdActionInterstitialRenderer has no background AdImage."));else g.$z(Error("AdActionInterstitialRenderer has no description AdText."));else g.$z(Error("AdActionInterstitialRenderer has no headline AdText."));else g.$z(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.Lz(this.C);this.hide()};
g.k.show=function(){a1a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();mM.prototype.show.call(this)};
g.k.hide=function(){a1a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();mM.prototype.hide.call(this)};
g.k.kI=function(){this.navigationEndpoint&&(this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(this.navigationEndpoint,this.layoutId):g.$z(Error("Missing layoutId for ad action interstitial.")):PM(this.bb,this.navigationEndpoint,this.macros))};var f1a={iconType:"CLOSE"},j2=new g.Gg(320,63);g.v(e1a,mM);g.k=e1a.prototype;
g.k.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);this.D=b;this.T=g.ec(this.D.onClickCommands||[]);this.Ba=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.N(a,m3a)?(this.I=g.Wg("ytp-ad-overlay-ad-info-button-container",this.C.element),g1a(this,b),a=i1a(this,g.N(a,m3a))):g.N(a,n3a)?(this.I=g.Wg("ytp-ad-overlay-ad-info-button-container",this.B.element),g1a(this,b),a=j1a(this,g.N(a,n3a))):g.N(a,o3a)?(this.I=
g.Wg("ytp-ad-overlay-ad-info-button-container",this.u.element),g1a(this,b),a=k1a(this,g.N(a,o3a))):(g.$z(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),l1a(this,!0))};
g.k.clear=function(){l1a(this,!1);this.Ma.reset();this.ea=0;this.C.hide();this.Va(this.C.element,!1);this.B.hide();this.Va(this.B.element,!1);this.u.hide();this.Va(this.u.element,!1);this.hide();this.dispose()};
g.k.L2=function(){this.Oa&&(this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(this.Oa,this.layoutId):g.$z(Error("Missing layoutId for invideo_overlay_ad.")):PM(this.bb,this.Oa,this.macros));this.api.pauseVideo()};
g.k.Ln=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.t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?this.bb.executeCommand(b,this.layoutId):g.$z(Error("Missing layoutId for invideo_overlay_ad.")):PM(this.bb,b,this.macros);this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.Z_=function(){this.Sa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.AK=function(){this.Sa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.AK("invideo-overlay")};
g.k.b0=function(a){a.target===this.I&&g.Wg("ytp-ad-button",this.ib.element).click()};g.v(m1a,VM);g.k=m1a.prototype;g.k.init=function(a,b,c){VM.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(GJ("ad-text"),d,c);this.messageText.Ca(this.B.element);this.I.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){n1a(this,!1);VM.prototype.hide.call(this);this.B.hide();this.messageText.hide();XM(this)};
g.k.show=function(){n1a(this,!0);VM.prototype.show.call(this);WM(this);this.B.show();this.messageText.show()};
g.k.Tt=function(){this.hide()};
g.k.Er=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.T&&a>=this.C?(this.I.hide(),this.T=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.ea&&(UM(this.messageText,{TIME_REMAINING:String(a)}),this.ea=a)))}};g.v(o1a,mM);g.k=o1a.prototype;
g.k.init=function(a,b,c){mM.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.N(b.actionButton,g.SI)?(this.C.init(GJ("ad-image"),b.image,c),this.B.init(GJ("ad-text"),b.headline,c),this.D.init(GJ("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 DM(this.api,this.jb,this.layoutId,this.j,this.bb,a),b.backgroundColor&&
g.Il(this.element,"background-color",g.xN(b.backgroundColor)),g.L(this,this.actionButton),this.actionButton.Ca(this.I),this.actionButton.init(GJ("button"),g.N(b.actionButton,g.SI),c),b=g.YF(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().N("place_shrunken_video_on_left_of_player")?(c=this.u,g.ro(c,"ytp-ad-underlay-left-container"),g.po(c,"ytp-ad-underlay-right-container"),g.Il(this.u,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.u,g.ro(c,"ytp-ad-underlay-right-container"),
g.po(c,"ytp-ad-underlay-left-container")),g.Il(this.u,"width",Math.round(100*(1-b-.04))+"%"),this.api.ND()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.dN.bind(this)),this.api.addEventListener("resize",this.wQ.bind(this))):g.$z(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.$z(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.$z(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.$z(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){p1a(!0);this.actionButton&&this.actionButton.show();mM.prototype.show.call(this)};
g.k.hide=function(){p1a(!1);this.actionButton&&this.actionButton.hide();mM.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.dN.bind(this));this.api.removeEventListener("resize",this.wQ.bind(this));this.hide()};
g.k.onClick=function(a){mM.prototype.onClick.call(this,a);this.actionButton&&g.hh(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.dN=function(a){"transitioning"===a?(this.u.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.u.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.u.classList.remove("ytp-ad-underlay-clickable"))};
g.k.wQ=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.Il(this.B.element,"font-size",a.width/40+"px")};g.v(k2,mM);
k2.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.N(b.answer,g.SI)?(a=new DM(this.api,this.jb,this.layoutId,this.j,this.bb,["ytp-ad-survey-answer-button"],this.B?"multi-step-survey-answer-button":"survey-single-select-answer-button"),a.Ca(this.answer),a.init(GJ("ytp-ad-survey-answer-button"),g.N(b.answer,g.SI),c),a.show()):b.answer&&g.N(b.answer,O2)&&(this.u=new LM(this.api,this.jb,this.layoutId,
this.j,this.bb,["ytp-ad-survey-answer-toggle-button"]),this.u.Ca(this.answer),g.L(this,this.u),this.u.init(GJ("survey-answer-button"),g.N(b.answer,O2),c));this.show()};
k2.prototype.cF=function(a){this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?R_(this.bb,a,this.layoutId,this.macros):g.$z(new g.Yv("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType})):PM(this.bb,a,this.macros)};
k2.prototype.clear=function(){this.hide()};g.v(q1a,mM);q1a.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);b.answer&&g.N(b.answer,O2)&&(this.button=new LM(this.api,this.jb,this.layoutId,this.j,this.bb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ca(this.u),this.button.init(GJ("survey-none-of-the-above-button"),g.N(b.answer,O2),c));this.show()};g.v(l2,DM);l2.prototype.init=function(a,b,c){DM.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.jB(b.text),a=!g.eb(b));a||g.aA(Error("No submit text was present in the renderer."))};
l2.prototype.onClick=function(a){this.ma("l");DM.prototype.onClick.call(this,a)};g.v(m2,mM);
m2.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.N(a,V_)?(a=g.N(a,V_),c=new gN(this.api,this.jb,this.layoutId,this.j,this.bb,this.C,!0),c.Ca(this.I),c.init(GJ("skip-button"),a,this.macros),g.L(this,c),this.u=c):g.N(a,X_)&&(a=g.N(a,X_),c=new $M(this.api,this.jb,this.layoutId,this.j,this.bb,this.C,!1),c.Ca(this.I),c.init(GJ("ad-preview"),a,this.macros),aN(c),g.L(this,c),this.u=c);null==this.u&&g.$z(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,g.N(a,g.SI)&&(a=g.N(a,g.SI),c=new l2(this.api,this.jb,this.layoutId,this.j,this.bb),c.Ca(this.submitButton),c.init(GJ(this.T?"multi-step-survey-answer-button":"survey-submit"),a,this.macros),g.L(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.N(a,p3a),c=new iN(this.api,this.jb,this.layoutId,this.j,this.bb,!0),c.Ca(this.D),c.init(GJ("simple-ad-badge"),a,this.macros),g.L(this,c);if(a=b.adDurationRemaining)a=g.N(a,i3a),c=new oN(this.api,this.jb,this.layoutId,this.j,this.bb,
this.C,void 0),c.Ca(this.D),c.init(GJ("ad-duration-remaining"),a,this.macros),g.L(this,c);(b=b.adInfoRenderer)&&g.N(b,W_)&&(a=new SM(this.api,this.jb,this.layoutId,this.j,this.bb,this.element),g.L(this,a),a.Ca(this.D),a.init(GJ("ad-info-hover-text-button"),g.N(b,W_),this.macros));this.show()};
m2.prototype.clear=function(){this.hide()};g.v(n2,mM);n2.prototype.init=function(a,b,c){mM.prototype.init.call(this,a,b,c);u1a(this)};
n2.prototype.show=function(){this.C=g.Sa();mM.prototype.show.call(this)};
n2.prototype.eT=function(){};g.v(v1a,n2);g.k=v1a.prototype;g.k.init=function(a,b,c){var d=this;n2.prototype.init.call(this,a,b,c);b.questionText&&g.ih(this.questionText,g.jB(b.questionText));b.answers&&b.answers.forEach(function(e){g.N(e,J2)&&r1a(d,g.N(e,J2),c)});
this.T=new Set(this.B.map(function(e){return e.u.u}));
(a=b.noneOfTheAbove)&&(a=g.N(a,l3a))&&w1a(this,a,c);b.surveyAdQuestionCommon&&t1a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()};
g.k.eT=function(){x1a(this,!1);this.D.B.subscribe("l",this.J2,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.u?y1a(this):this.T.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),x1a(this,!0))};
g.k.J2=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.zf(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=ui(e.baseUrl,a));return e});
return d});
if(b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.api.V().N("enable_macro_substitution_on_html5")?this.layoutId?R_(this.bb,c,this.layoutId,this.macros):g.$z(Error("Missing layoutId for multi_select_question.")):PM(this.bb,c,this.macros)}};
g.k.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(o2,n2);o2.prototype.init=function(a,b,c){var d=this;n2.prototype.init.call(this,a,b,c);b.questionText&&g.ih(this.questionText,g.jB(b.questionText));b.answers&&b.answers.forEach(function(e){g.N(e,J2)&&r1a(d,g.N(e,J2),c)});
b.surveyAdQuestionCommon?t1a(this,b.surveyAdQuestionCommon):g.$z(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
o2.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(p2,mM);p2.prototype.eg=function(){};
p2.prototype.init=function(a,b,c){var d=this;mM.prototype.init.call(this,a,b,c);if(this.api.V().N("supports_multi_step_on_desktop")){this.conditioningRules=b.conditioningRules;var e;(null==(e=b.questions)?0:e.length)&&C1a(this,b.questions[0])}else(b.questions||[]).forEach(function(f){g.N(f,YJ)?A1a(d,g.N(f,YJ),c):g.N(f,ZJ)&&B1a(d,g.N(f,ZJ),c)});
this.show()};
p2.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(q2,mM);
q2.prototype.init=function(a,b,c){var d=this;mM.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.$z(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.N(b.ctaButton,g.SI))if(b.brandImage)if(b.backgroundImage&&g.N(b.backgroundImage,d0)&&g.N(b.backgroundImage,d0).landscape){this.layoutId||g.$z(Error("Missing layoutId for survey interstitial."));D1a(this.interstitial,g.N(b.backgroundImage,
d0).landscape);D1a(this.logoImage,b.brandImage);g.ih(this.text,g.jB(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.V().N("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new DM(this.api,this.jb,this.layoutId,this.j,this.bb,e);g.L(this,this.actionButton);this.actionButton.Ca(this.B);this.actionButton.init(GJ("button"),g.N(b.ctaButton,g.SI),c);this.actionButton.show();this.u=new kN(this.api,1E3*a);this.u.subscribe("g",
function(){d.transition.hide()});
g.L(this,this.u);this.S(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)});
this.transition.show(100)}else g.$z(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.$z(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.$z(Error("SurveyTextInterstitialRenderer has no button."));else g.$z(Error("SurveyTextInterstitialRenderer has no text."));else g.$z(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
q2.prototype.clear=function(){this.hide()};
q2.prototype.show=function(){E1a(!0);mM.prototype.show.call(this)};
q2.prototype.hide=function(){E1a(!1);mM.prototype.hide.call(this)};var L6a="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(r2,NM);
r2.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!L6a.includes(d))switch(a.actionType){case 1:a=this.I();var e=this.api,f=this.bb,h=c.layoutId,l=c.j,m=c instanceof AK?c.OL:!1,n=c instanceof AK||c instanceof jN?c.iF:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new e1a(e,a,h,l,f);break;case "player-overlay":a=new vN(e,a,h,l,f,new tQ(e),n);break;case "survey":a=new p2(e,a,h,l,f);break;case "ad-action-interstitial":a=new $0a(e,a,h,l,
f,m,n);break;case "survey-interstitial":a=new q2(e,a,h,l,f);break;case "ad-message":a=new m1a(e,a,h,l,f,new tQ(e,1));break;case "player-underlay":a=new o1a(e,a,h,l,f);break;default:a=null}if(!a){g.aA(Error("No UI component returned from ComponentFactory for type: "+d));break}g.pf(this.u,b)?g.aA(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof z0a?this.B?this.B.append(a.tL):g.$z(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.tL);
break;case 2:b=F1a(this,a);if(null==b)break;b.bind(c);break;case 3:c=F1a(this,a),null!=c&&(g.Ze(c),g.pf(this.u,b)?g.tf(this.u,b):g.aA(Error("Ad UI component does not exist: "+b)))}};
r2.prototype.ra=function(){g.$e(Object.values(this.u));this.u={};NM.prototype.ra.call(this)};g.v(G1a,g.CP);g.k=G1a.prototype;g.k.create=function(){try{H1a(this),this.load(),this.created=!0,H1a(this)}catch(a){PA(a instanceof Error?a:String(a))}};
g.k.load=function(){g.CP.prototype.load.call(this);var a=h2(this.j).Ih;Qta(a.G.V().N("html5_reduce_ecatcher_errors"));try{this.player.getRootNode().classList.add("ad-created")}catch(l){PA(l instanceof Error?l:String(l))}var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.Ud()||!1;a=M1a(f,a,e,h,h2(this.j).Ml);f=c&&c.clientPlaybackNonce||"";c=c&&c.Gs||!1;h=1E3*this.player.getDuration(1);this.jb=new cM(this,this.player,this.us,b,h2(this.j));xGa(this.jb,a.Qy);this.j.j.wr.bj(f,h,c,a.CE,a.CE.concat(a.Qy),e,d);dM(this.jb)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.wr.Wl(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.CP.prototype.unload.call(this);Qta(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){PA(b instanceof Error?b:String(b))}if(null!==this.jb){var a=this.jb;this.jb=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.us.reset()};
g.k.Sj=function(){return!1};
g.k.PL=function(){return null===this.jb?!1:this.jb.PL()};
g.k.Mn=function(a){null!==this.jb&&this.jb.Mn(a)};
g.k.getAdState=function(){return this.jb?this.jb.GD:-1};
g.k.getOptions=function(){return Object.values(K6a)};
g.k.Pg=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=cK(this.player),Object.assign(b,a.u5a),this.jb&&!b.AD_CPN&&(b.AD_CPN=this.jb.aD()),a=g.$n(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.vr(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}};
g.k.xr=function(a){var b;return!(null==(b=this.j.j.bf)||!b.get().xr(a))};
g.k.vr=function(a){a.isMuted&&mGa(this.jb,h2(this.j).Yi,h2(this.j).Gk,a.layoutId);this.Hv&&this.Hv.vr()};
g.k.executeCommand=function(a){h2(this.j).bb.executeCommand(a.command,a.layoutId)};g.BP("ad",G1a);var O1a=g.Yg&&N1a();g.v(g.s2,g.K);g.s2.prototype.start=function(a,b,c){this.from=a;this.to=b;this.duration=c;this.startTime=(0,g.Q)();this.next()};
g.s2.prototype.next=function(){var a=(0,g.Q)()-this.startTime;var b=this.j;a=Vka(b,a/this.duration);if(0==a)b=b.J;else if(1==a)b=b.T;else{var c=Cg(b.J,b.D,a),d=Cg(b.D,b.I,a);b=Cg(b.I,b.T,a);c=Cg(c,d,a);d=Cg(d,b,a);b=Cg(c,d,a)}b=g.Ag(b,0,1);this.callback((this.to-this.from)*b+this.from);1>b&&this.delay.start()};g.v(g.t2,g.V);g.k=g.t2.prototype;g.k.uV=function(){this.u&&this.scrollTo(this.j-this.containerWidth)};
g.k.vV=function(){this.u&&this.scrollTo(this.j+this.containerWidth)};
g.k.rp=function(){this.Bb(this.api.fb().getPlayerSize())};
g.k.isShortsModeEnabled=function(){return!!this.C.Ej()&&this.api.N("embeds_enable_shorts_branded_ui")};
g.k.Bb=function(a){var b=this.isShortsModeEnabled()?.5625:16/9,c=this.C.If();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));c=(a-8*c)/c;b=Math.floor(c/b);for(var d=g.t(this.D),e=d.next();!e.done;e=d.next())e=e.value.Da("ytp-suggestion-image"),e.style.width=c+"px",e.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.tileWidth=c;this.T=b;this.containerWidth=a;this.j=0;this.suggestions.element.scrollLeft=-0;g.u2(this)};
g.k.onVideoDataChange=function(){var a=this.api.V(),b=this.api.getVideoData();this.I=b.D?!1:a.u;this.suggestionData=b.suggestions?g.Dm(b.suggestions,function(c){return c&&!c.playlistId}):[];
T1a(this);b.D?this.title.update({title:g.LK("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.isShortsModeEnabled()?"More shorts":"More videos"})};
g.k.scrollTo=function(a){a=g.Ag(a,this.containerWidth-this.suggestionData.length*(this.tileWidth+8),0);this.J.start(this.j,a,1E3);this.j=a;g.u2(this)};g.v(g.v2,g.V);g.v2.prototype.onClick=function(){this.G.Qa("onExpandMiniplayer")};})(_yt_player);

}

/*
     FILE ARCHIVED ON 13:51:36 Nov 16, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:29:54 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: 1.971
  load_resource: 351.344 (2)
  PetaboxLoader3.resolve: 168.923 (2)
  PetaboxLoader3.datanode: 81.792 (2)
*/