var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var ca,ea,aaa,ia,ka,la,ma,ra,sa,ta,baa,caa,Ba,Ca,daa,eaa,Ea,Fa,Ga,Ia,Ja,Oa,Pa,gaa,haa,Za,$a,ab,bb,cb,db,iaa,eb,fb,kb,lb,ub,wb,yb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Nb,Lb,Ob,laa,maa,Pb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,naa,$b,fc,oaa,mc,paa,rc,oc,qaa,pc,raa,saa,taa,yc,zc,Ac,Cc,Mc,Oc,Lc,Hc,Rc,Qc,Vc,Xc,Yc,$c,ad,bd,hd,md,nd,rd,qd,sd,td,yd,zd,Bd,Cd,Dd,Fd,Gd,yaa,Id,Kd,Ld,zaa,Od,Pd,Qd,Rd,Sd,Yd,Zd,$d,ae,be,ce,ee,fe,de,ge,Aaa,ke,oe,pe,qe,se,we,xe,ye,ze,Ae,Be,Ce,De,Fe,He,Ke,Baa,Le,Me,Pe,Re,Ue,Caa,Daa,Ve,Ne,Oe,Eaa,Faa, Gaa,Haa,Ye,Iaa,Jaa,Kaa,Laa,Se,Te,Ze,jf,Maa,Naa,kf,lf,mf,Oaa,of,Paa,pf,Qaa,qf,Raa,vf,wf,xf,yf,Saa,Df,Ff,Hf,If,Kf,Uaa,Lf,Qf,Sf,Uf,Vf,Zf,$f,jg,kg,mg,qg,Vaa,ng,xg,yg,ug,Xaa,rg,pg,Cg,Dg,Eg,Fg,Yaa,Hg,Ig,Zaa,Kg,Ng,Og,Rg,Tg,Ug,bba,Vg,Zg,kh,lh,oh,dba,mh,eba,jba,kba,qh,th,mba,nba,sh,oba,pba,wh,xh,tba,Bh,Dh,Gh,Ih,Lh,Mh,uba,vba,wba,xba,Ph,zba,Wh,Bba,Dba,Cba,Xh,Zh,Eba,Yh,Fba,Oh,hi,Hba,ji,ii,Nh,li,Iba,Jba,mi,ni,Kba,Mba,ri,Oba,ui,vi,wi,Sba,yi,Tba,xi,Xba,si,Qba,Zba,Wba,Uba,Vba,$ba,Yba,zi,Ci,bca,cca,dca,eca,fca,gca, ica,lca,nca,oca,qca,pca,rca,Ji,Ki,Li,tca,uca,Mi,Ni,Oi,wca,Ri,xca,Aca,Ti,Ui,Bca,Vi,Wi,Dca,Eca,mj,Fca,Gca,nj,oj,Hca,qj,sj,Ica,tj,uj,Lca,Mca,Oca,Pca,Rca,Qca,Sca,wj,Tca,Aj,Vca,Wca,zj,Fj,Yca,Gj,Hj,ada,cda,dda,Jj,fda,gda,hda,jda,ida,kda,eda,Ij,lda,Kj,mda,nda,oda,pda,Lj,Mj,Nj,Oj,Pj,qda,rda,Qj,Sj,sda,tda,Tj,uda,Uj,vda,wda,xda,Wj,yda,Ada,zda,Bda,Cda,Dda,Yj,Zj,ak,Eda,Fda,Hda,Ida,ck,dk,ek,fk,Jda,gk,hk,ik,jk,kk,lk,Oda,Lda,ok,Nda,pk,Mda,nk,mk,rk,Pda,tk,sk,Qda,Rda,zk,Ak,Ck,Uda,Bk,Fk,Vda,Pk,Sda,Yda,Zda,$da,Vk,Wk, Xk,aea,Yk,Zk,$k,al,bea,bl,cl,dl,cea,dea,el,eea,bk,hea,iea,jea,kea,fea,fl,lea,hl,mea,gl,nea,oea,jl,kl,pea,ml,nl,ol,ll,pl,il,rea,sea,qea,tea,uea,vea,ql,rl,sl,tl,ul,vl,wl,wea,xl,yl,zl,xea,zea,Aea,Bl,Dl,Cl,Cea,Fl,Dea,Gl,Eea,Fea,Hl,Il,Jl,Hea,Jea,Mea,Kea,Nea,Rea,Kl,Qea,Oea,Ll,Ml,Sea,Nl,Uea,Tea,Ol,Wea,Vea,Xea,Yea,Sl,Yl,Zea,$ea,afa,Zl,bfa,efa,ffa,am,gfa,hfa,mfa,bm,cm,nfa,ofa,pfa,qfa,em,rfa,sfa,tfa,qm,jm,im,ufa,vfa,wfa,rm,sm,tm,yfa,ym,zm,Am,Bm,Cm,Dm,Afa,Bfa,Fm,Gm,Hm,Dfa,Im,Mm,Nm,Qm,Ffa,Hfa,Gfa,Ifa,Jfa,Wm, Kfa,Xm,Ym,Lfa,Mfa,Zm,Nfa,Ofa,Pfa,Qfa,cn,an,dn,en,fn,Rfa,Sfa,Tfa,gn,hn,jn,Ufa,Vfa,Wfa,kn,Xfa,ln,mn,Yfa,Zfa,$fa,aga,cga,dga,ega,on,pn,qn,sn,hga,tn,un,iga,gga,rn,jga,vn,wn,yn,xn,kga,lga,mga,zn,oga,An,qga,rga,sga,tga,uga,vga,wga,xga,Fn,Gn,Hn,zga,yga,Jn,Aga,Xn,Bga,Yn,Cga,Dga,Zn,$n,ao,Ega,bo,co,eo,fo,go,ho,io,jo,ko,Fga,Gga,Hga,Iga,lo,Jga,Lga,Kga,no,oo,Nga,Mga,Sga,Rga,po,Tga,Uga,Vga,Xga,Wga,Yga,qo,Zga,$ga,so,aha,bha,cha,dha,to,eha,uo,fha,vo,wo,hha,yo,iha,zo,Ao,jha,kha,Bo,Do,mha,Eo,lha,oha,nha,pha,qha,sha, Fo,tha,Io,Jo,vha,wha,zha,Aha,Ko,Bha,Lo,Mo,No,Oo,Po,Qo,Ro,So,To,Uo,Vo,Wo,Xo,Fha,Eha,Gha,Iha,Hha,Kha,Dha,Jha,Cha,Yo,Zo,Mha,Nha,Oha,cp,dp,ep,$o,Qha,fp,Lha,Sha,Tha,Uha,Rha,gp,hp,ip,jp,Vha,Pha,Wha,kp,Xha,Yha,Zha,$ha,aia,dia,eia,fia,mp,gia,jia,lia,qp,nia,mia,pp,sp,oia,pia,qia,yp,ria,sia,zp,tia,Ip,Fp,Gp,Hp,uia,Lp,Kp,via,Np,wia,yia,Aia,Pp,Bia,Cia,Hia,Dia,Up,Mia,Vp,Wp,Oia,Zp,Pia,Qia,$p,Sia,bq,cq,dq,Tia,fq,gq,hq,iq,kq,lq,Via,mq,nq,Wia,Xia,oq,Yia,Zia,qq,fja,tq,eja,gja,vq,wq,xq,yq,jja,Aq,Bq,Cq,nja,Dq,oja,pja, Eq,Fq,qja,sja,tja,Gq,uja,Hq,vja,wja,xja,Iq,zja,Jq,Kq,Lq,Aja,Mq,Nq,Oq,Qq,Pq,Dja,Eja,Rq,Sq,Fja,Tq,Uq,Hja,Ija,Vq,Wq,Xq,Yq,$q,ar,br,cr,er,Jja,fr,Kja,ir,jr,kr,lr,mr,nr,pr,qr,Oja,rr,sr,tr,Lja,ur,Rja,Uja,zr,Wja,Yja,Fr,Zja,$ja,aka,oma,mma,nma,Gr,Jr,Ir,xma,Lr,Mr,Nr,zma,Sr,Ama,Vr,Tr,Yr,Bma,Cma,$r,Dma,bs,cs,Ema,ds,es,fs,hs,js,ks,Zr,ls,ns,ms,Jma,Hma,Ima,Kma,Lma,Mma,ps,Oma,us,vs,Pma,Qma,Sma,Uma,Vma,ana,Wma,Xma,Yma,Zma,$ma,dna,ys,As,ena,Hs,Is,Ms,Ns,Ps,Qs,Ss,jna,kna,Us,lna,mna,Ws,nna,ona,Ys,pna,Zs,qna,bt,rna,tna, una,$s,vna,wna,zna,yna,et,sna,Bna,Cna,ht,Dna,Ena,kt,Fna,lt,Gna,Hna,ot,Ina,Jna,Kna,Lna,tt,Mna,Nna,Ona,Pna,Qna,Rna,Sna,Tna,vt,Una,wt,Xna,Wna,Vna,xt,Yna,zt,At,Ct,$na,Gt,Ft,Bt,Ht,aoa,boa,Kt,Lt,doa,eoa,Mt,Nt,foa,goa,coa,ioa,joa,koa,loa,moa,Qt,Rt,Tt,ooa,poa,Ut,soa,roa,qoa,toa,voa,Wt,Xt,yoa,xoa,woa,zoa,Aoa,du,eu,Boa,bu,Coa,Zt,cu,au,$t,Doa,Eoa,mu,nu,Goa,Hoa,Koa,tu,uu,vu,Loa,zu,Au,Noa,Cu,Bu,Eu,Poa,Ooa,Qoa,Soa,Toa,Roa,Voa,Woa,Mu,Su,Uoa,Tu,Uu,$oa,apa,Zoa,dpa,epa,Yoa,cpa,bpa,$u,ipa,kpa,mpa,npa,lpa,av,dv,ev,ppa, cv,fv,gv,kv,nv,ov,lv,rpa,pv,qv,spa,tv,vv,wv,Fv,vpa,wpa,xpa,ypa,zpa,Apa,Gv,Cpa,Iv,Jv,Dpa,Epa,Fpa,Mv,Hpa,Ipa,Jpa,Ov,Kpa,Mpa,Pv,Npa,Qv,Rv,Ds,Upa,Xpa,Uv,aqa,bqa,cqa,dqa,Vv,eqa,cw,fqa,iqa,lqa,jqa,mw,lw,mqa,kw,nw,ow,pqa,rqa,tw,uw,tqa,T,vw,ww,xw,yw,zw,Aw,uqa,Bw,Cw,Dw,yqa,Aqa,Cqa,Ew,Gqa,Iqa,Kqa,Mqa,Nqa,Gw,Pqa,Qqa,Mw,Nw,Rqa,Sqa,Ow,Rw,Tqa,Uqa,Vqa,Wqa,Vw,Uw,Ww,Xw,Yw,Sw,Zw,$w,Yqa,ax,Xqa,ara,bra,cra,bx,cx,dx,dra,ex,jra,fx,gx,ix,jx,nx,mx,zx,lx,mra,nra,Ax,Bx,Cx,kx,rra,pra,sra,qra,ora,Fx,Gx,Ix,Lx,Nx,tra,Ox,xra,Qx, wra,Ux,Rx,zra,Dra,Wx,vra,ura,Xx,Era,Fra,Gra,$x,by,cy,Ira,Jra,dy,ay,Hra,Kra,ey,Mra,fy,gy,Nra,hy,Ora,iy,jy,ky,ly,Pra,Qra,my,Rra,ny,Sra,oy,py,ry,vy,wy,yy,zy,Ay,By,Cy,Dy,Tra,Ey,Gy,Vra,Wra,Fy,Yra,Zra,Hy,$ra,Ky,asa,Ly,Ny,bsa,My,Oy,csa,Qy,fsa,Sy,Ty,Yy,hsa,Vy,Zy,az,isa,cz,Xy,$y,jsa,dz,ksa,ez,lsa,Uy,Wy,gsa,bz,fz,msa,nsa,hz,osa,psa,qsa,iz,rsa,kz,ssa,jz,tsa,lz,mz,nz,oz,pz,usa,rz,vsa,sz,xsa,tz,uz,vz,ysa,wz,zsa,qz,xz,Asa,Bsa,Csa,yz,zz,Az,Bz,Dsa,Esa,Fsa,Dz,Gsa,Ez,Fz,Hsa,Isa,Gz,Jsa,Ksa,Osa,Psa,Lsa,Msa,Nsa,Hz,Jz, Iz,Kz,Lz,Qsa,Rsa,Mz,Nz,Oz,Pz,Ssa,Tsa,Usa,Vsa,Xsa,Wsa,Rz,Ysa,Zsa,$sa,ata,Sz,Tz,Uz,bta,Wz,Vz,$z,aA,bA,cA,dA,cta,eA,Yz,dta,eta,hA,iA,fta,jA,lA,mA,nA,oA,pA,qA,rA,gta,sA,tA,hta,uA,vA,wA,xA,yA,zA,jta,kta,AA,BA,CA,lta,mta,DA,EA,Bra,Vx,qta,rta,sta,tta,uta,vta,Px,wta,FA,xta,yta,GA,Ata,Bta,HA,Fta,Cta,Dta,Hta,Ita,JA,Gta,Jta,KA,LA,MA,Kta,Lta,Mta,NA,IA,Nta,zta,Pta,Qta,PA,Rta,Sta,Tta,RA,QA,Uta,Vta,Wta,Xta,Yta,$ta,Cra,Ara,SA,UA,WA,XA,YA,ZA,VA,bB,bua,dB,dua,eB,fua,eua,cua,gua,hua,iua,fB,yra,gB,jua,Sx,kua,lua,mua, nua,pua,yB,sua,qua,zB,AB,CB,DB,EB,tua,GB,FB,vua,wua,HB,uua,xua,JB,yua,IB,KB,LB,MB,SB,Aua,Bua,UB,XB,Dua,Fua,Eua,$B,Gua,Hua,Iua,aC,bC,cC,dC,Jua,eC,Kua,fC,gC,Lua,hC,Mua,jC,Nua,kC,lC,mC,nC,Oua,Pua,Qua,Sua,oC,Tua,Rua,pC,qC,rC,sC,Uua,tC,uC,RC,NC,Yua,cva,SC,WC,XC,FC,jva,vC,dva,OC,QC,$C,dD,kva,$ua,lva,CC,gD,BC,eva,bva,hD,Wua,jD,TC,kD,lD,ova,pva,mD,qva,rva,sva,tva,nD,uva,zva,yva,vva,xva,wva,oD,Ava,pD,Bva,Cva,qD,sD,tD,Fva,Hva,wD,Iva,Jva,ED,Tva,Ova,Nva,Pva,Vva,Wva,$va,bwa,JD,KD,cwa,ewa,fwa,gwa,hwa,nwa,MD,owa, qwa,pwa,rwa,OD,QD,SD,swa,ND,TD,UD,twa,xwa,uwa,wwa,dE,eE,hE,Lwa,Fwa,aE,kE,Kwa,cE,Mwa,Nwa,lE,Dwa,Pwa,Owa,YD,bE,gE,Vwa,Rwa,Swa,Twa,Uwa,Wwa,mE,Xwa,Ywa,oE,pE,rE,XD,jE,Hwa,vwa,Gwa,Jwa,Iwa,tE,Qwa,AE,BE,CE,DE,bxa,fE,cxa,FE,Ewa,dxa,Zwa,iE,exa,Awa,$D,zwa,dwa,JE,KE,gxa,LE,ME,NE,PE,OE,QE,hxa,ixa,RE,TE,jxa,kxa,UE,VE,WE,lxa,XE,mxa,YE,ZE,$E,aF,bF,cF,nxa,dF,oxa,eF,gF,rxa,fF,sxa,pxa,qxa,txa,uxa,vxa,hF,iF,jF,kF,lF,yxa,qF,oF,Bxa,Axa,Cxa,tF,zxa,uF,pF,vF,sF,rF,nF,mF,xF,yF,AF,CF,DF,EF,Exa,FF,GF,HF,IF,JF,KF,Fxa,LF,MF,NF, Gxa,OF,Ixa,Hxa,SF,Jxa,Kxa,Lxa,Oxa,Mxa,Nxa,Pxa,TF,Qxa,Rxa,Sxa,Txa,Uxa,UF,VF,WF,XF,YF,ZF,$F,aG,bG,cG,dG,eG,fG,gG,hG,iG,jG,kG,lG,mG,nG,oG,pG,qG,rG,sG,tG,uG,vG,wG,xG,yG,zG,AG,BG,CG,DG,EG,FG,GG,HG,IG,JG,KG,LG,MG,NG,OG,PG,QG,RG,SG,TG,UG,Wxa,Xxa,Vxa,Zxa,$xa,Yxa,VG,aya,WG,XG,YG,ZG,$G,cya,bya,aH,bH,cH,dya,iH,jH,eya,gya,kH,hya,lH,mH,iya,nH,jya,kya,lya,mya,nya,oH,pH,pya,qya,rya,qH,oya,tya,sya,rH,sH,wya,xya,tH,yya,zya,uH,wH,xH,yH,zH,CH,EH,FH,Aya,Bya,GH,Cya,Dya,HH,Eya,JH,Fya,Gya,KH,LH,Hya,Iya,MH,Kya,Jya,NH,Mya, OH,Nya,QH,RH,TH,Oya,Pya,Qya,Rya,Sya,UH,WH,Wya,Zya,Tya,XH,hza,YH,jza,iza,lza,mza,oza,nza,pza,qza,rza,sza,ZH,$H,tza,uza,vza,xza,yza,zza,Aza,Bza,gI,Dza,Eza,eI,fI,Cza,Fza,Gza,hI,Jza,Hza,Lza,Kza,Mza,Dxa,Nza,xxa,Oza,Pza,Qza,iI,Wza,Sza,Tza,Uza,Xza,jI,$za,Yza,aAa,bAa,Zza,Vza,cAa,IH,eAa,fAa,dAa,kI,lI,gAa,hAa,iAa,mI,oI,kAa,pI,sI,tI,lAa,mAa,nAa,uI,pAa,qAa,rAa,sAa,tAa,uAa,vAa,zI,wAa,AI,xAa,yAa,zAa,CI,AAa,BAa,CAa,FI,GI,HI,DAa,II,EAa,KI,GAa,FAa,LI,MI,NI,OI,HAa,PI,QI,IAa,RI,SI,MAa,JAa,LAa,KAa,NAa,UI,VI,OAa,PAa, QAa,WI,RAa,TAa,SAa,XI,YI,ZI,$I,aJ,cJ,dJ,eJ,fJ,gJ,hJ,iJ,VAa,UAa,jJ,WAa,kJ,lJ,mJ,nJ,oJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,yJ,YAa,$Aa,ZAa,zJ,cBa,dBa,DJ,EJ,fBa,GJ,gBa,hBa,iBa,HJ,kBa,JJ,lBa,KJ,LJ,MJ,NJ,nBa,PJ,qBa,pBa,oBa,sBa,QJ,RJ,SJ,TJ,UJ,VJ,WJ,kK,uBa,wBa,xBa,mK,yBa,Cs,ABa,zBa,BBa,DBa,CBa,FBa,EBa,pK,GBa,HBa,JBa,KBa,OBa,NBa,VBa,XBa,YBa,xK,zK,AK,BK,CK,$Ba,DK,EK,aCa,FK,bCa,GK,HK,IK,JK,KK,LK,cCa,dCa,MK,eCa,PK,hCa,iCa,QK,jCa,TK,RK,UK,SK,Rza,kCa,lCa,mCa,nCa,ZK,YK,qCa,tCa,jL,kL,lL,uCa,vCa,mL,nL,wCa,xCa,pL,qL,ACa,yCa,BCa, CCa,DCa,ECa,GCa,AL,KCa,DL,MCa,EL,JCa,NCa,OCa,CL,LCa,FL,GL,HL,cL,WK,JL,LL,RCa,PCa,QCa,ML,PL,TCa,OL,RL,UCa,VCa,UL,VL,WL,$L,XCa,YCa,aM,bM,ZCa,$Ca,aDa,bDa,cM,dDa,cDa,eDa,dM,fDa,gDa,fM,gM,hDa,jM,jDa,lM,hM,kDa,lDa,iDa,mM,nM,qM,mDa,nDa,pM,sM,rM,uM,wM,oDa,zM,pDa,sDa,qDa,tDa,CM,DM,uDa,vDa,GM,HM,IM,JM,KM,MM,xDa,wDa,yDa,OM,ADa,zDa,BDa,CDa,DDa,EDa,UM,VM,FDa,WM,XM,GDa,HDa,IDa,JDa,YM,aN,LDa,KDa,bN,cN,dN,MDa,eN,fN,gN,hN,NDa,iN,jN,ODa,kN,PDa,RDa,QDa,pN,nN,oN,SDa,TDa,UDa,qN,rN,sN,tN,uN,VDa,WDa,XDa,xN,yN,zN,BN,CN, DN,FN,GN,HN,IN,JN,YDa,aEa,KN,ZDa,$Da,eEa,fEa,MN,hEa,gEa,iEa,jEa,kEa,ON,QN,mEa,RN,lEa,SN,nEa,pEa,oEa,TN,UN,VN,WN,qEa,XN,rEa,$N,sEa,cO,uEa,aO,tEa,wEa,eO,xEa,jO,zEa,AEa,gO,dO,lO,fO,mO,DEa,nO,iO,vEa,CEa,kO,yEa,BEa,EEa,YN,pO,FEa,GEa,hO,qO,rO,sO,tO,uO,vO,wO,xO,yO,zO,AO,IEa,DO,EO,FO,GO,HO,IO,JO,KO,JEa,LO,MO,NO,OO,QO,PO,RO,SO,KEa,TO,LEa,NEa,MEa,UO,VO,OEa,WO,XO,PEa,YO,QEa,ZO,REa,$O,bP,eP,dP,hP,gP,SEa,fP,jP,UEa,VEa,kP,lP,mP,nP,pP,WEa,xM,TEa,$Ea,SM,XEa,rP,ZEa,TM,YEa,aFa,cFa,bFa,dFa,eFa,uP,fFa,vP,gFa,hFa,iFa, jFa,kFa,lFa,mFa,zP,AP,rFa,uFa,sFa,oFa,CP,nFa,tFa,FP,wFa,vFa,GP,yFa,AFa,BFa,zFa,LP,CFa,GFa,RP,HFa,SP,UP,VP,WP,IFa,MP,XP,ZP,KFa,JFa,QP,$P,aQ,LFa,bQ,NFa,OFa,PFa,QFa,RFa,NP,EFa,cQ,OP,dQ,WFa,fQ,XFa,YFa,UFa,hQ,ZFa,iQ,SFa,kQ,VFa,$Fa,jQ,gQ,aGa,lQ,bGa,eQ,dGa,oQ,eGa,mQ,pQ,nQ,rQ,fGa,sQ,tQ,gGa,uQ,vQ,wQ,xQ,hGa,yQ,iGa,AQ,lGa,mGa,nGa,DQ,CQ,BQ,oGa,pGa,qGa,rGa,GQ,HQ,IQ,sGa,tGa,uGa,JQ,vGa,LQ,wGa,KQ,MQ,NQ,xGa,zGa,DGa,AGa,BGa,CGa,EGa,SQ,TQ,FGa,HGa,IGa,UQ,JGa,VQ,KGa,PGa,QGa,RGa,$Q,aR,SGa,OGa,TGa,WQ,LGa,UGa,XQ,YQ,MGa, NGa,ZQ,VGa,WGa,XGa,Mva,Sva,cR,dR,$Ga,YGa,ZGa,eR,aHa,fR,gR,bHa,cHa,dHa,hR,eHa,fHa,jR,gHa,kR,lR,hHa,nR,jHa,oR,nHa,rR,QQ,iHa,pHa,tR,lHa,mHa,kHa,sR,qR,pR,oHa,tHa,rHa,qHa,vR,uHa,wR,vHa,xR,yR,wHa,xHa,yHa,zHa,AHa,AR,BR,CR,DR,ER,FR,DHa,EHa,PQ,RQ,HHa,IR,JR,GGa,MR,HR,IHa,GR,FHa,GHa,NR,JHa,KHa,LR,OQ,KR,LHa,MHa,NHa,OR,PHa,OHa,PR,THa,QR,VHa,UHa,SR,RR,XHa,UR,TR,YHa,RHa,WR,WHa,SHa,VR,YR,ZHa,ZR,bS,$Ha,$R,dIa,aS,eIa,cS,bIa,aIa,fIa,dS,gIa,hIa,kIa,jIa,iIa,eS,lIa,pIa,qIa,jS,kS,lS,sIa,tIa,mS,nS,oS,vIa,rS,wIa,hS,rIa,xIa, yIa,AIa,sHa,vS,wS,zIa,mR,pS,uIa,BIa,CIa,DIa,EIa,FIa,mIa,gS,iS,GIa,yS,zS,HIa,IIa,JIa,LIa,KIa,AS,MIa,OIa,NIa,QIa,CS,UIa,RIa,TIa,VIa,DS,ZIa,XIa,YIa,aJa,bJa,cJa,ES,BS,dJa,WIa,fJa,GS,gJa,SIa,hJa,HS,jJa,kJa,IS,iJa,JS,KS,lJa,LS,MS,NS,nJa,qJa,pJa,oJa,PS,rJa,OS,sJa,RS,TS,tJa,wJa,uJa,vJa,xJa,zJa,yJa,AJa,BJa,US,DJa,EJa,FJa,CJa,GJa,IJa,KJa,LJa,HJa,MJa,NJa,PJa,OJa,QJa,JJa,VS,WS,RJa,XS,YS,ZS,bT,cT,WJa,dT,XJa,ZJa,YJa,gT,eT,UJa,aKa,$Ja,bKa,iT,cKa,eKa,dKa,fKa,jT,kT,gKa,lT,iKa,mT,nT,kKa,pT,oT,lKa,rT,jKa,sT,mKa,qT, nKa,tT,oKa,VJa,hT,qKa,rKa,sKa,tKa,uKa,vKa,wKa,yKa,zKa,AKa,xKa,BKa,CKa,vT,DKa,EKa,wT,xT,FKa,GKa,HKa,zT,JKa,BT,KKa,LKa,AT,yT,IKa,ET,DT,MKa,FT,CT,NKa,HT,RKa,KT,SKa,PKa,IT,TKa,LT,QKa,UKa,MT,WKa,GT,XKa,YKa,VKa,ZKa,JT,$Ka,aLa,OKa,NT,OT,bLa,PT,zR,nIa,CHa,RT,cLa,oIa,BHa,dLa,ST,QT,eLa,gLa,hLa,fLa,jLa,iLa,mLa,kLa,lLa,oLa,nLa,pLa,qLa,rLa,sLa,TT,VT,uLa,yLa,xLa,cU,eU,dU,BLa,DLa,GLa,LLa,ILa,KLa,PLa,QLa,RLa,SLa,TLa,hU,WLa,VLa,ULa,iU,UT,XLa,tLa,gU,ZLa,$La,fMa,cMa,gMa,dMa,aMa,hMa,iMa,bMa,kMa,jU,lMa,nMa,oMa,pMa,wF, pU,qMa,sMa,DFa,tMa,qU,SS,uMa,yU,sU,JP,oU,zU,BU,tS,uS,CU,YLa,wU,xU,sS,yMa,xMa,vU,tU,DU,AMa,DP,BMa,QS,xFa,FU,YP,rMa,rU,CMa,DMa,GU,qFa,EMa,GMa,wMa,kU,HMa,HU,uU,lU,IMa,IU,EP,JMa,JU,TP,KMa,LMa,MMa,pFa,EU,zMa,UMa,QMa,PMa,XMa,YMa,PU,KP,$Ma,ZMa,TU,UU,VU,bNa,KU,MU,TMa,aV,cNa,$U,OMa,dNa,OU,eNa,fNa,WMa,eV,gNa,hNa,LU,XU,YU,WU,hV,jNa,SU,cV,iV,jV,kNa,ZU,aNa,gV,iNa,kV,lNa,mNa,nNa,VK,oNa,bV,lV,qNa,QU,mV,nV,RU,rNa,sNa,SMa,fV,dV,tNa,RMa,oV,pV,kGa,uNa,qV,rw,X,rV,wNa,tV,yNa,sV,zNa,wV,uV,xV,vV,ANa,BNa,yV,zV,AV,CNa,BV, CV,DV,EV,FV,GV,ENa,DNa,FNa,HV,IV,dH,eH,GNa,fH,QF,KV,INa,TV,UV,hH,VV,PF,RV,WV,MNa,NNa,ONa,PNa,HNa,QNa,JV,RNa,SNa,ZV,OV,YV,dW,$V,MV,TNa,LV,JNa,XV,aW,fW,PV,QV,cW,bW,VNa,gW,hW,WNa,iW,Y,jW,TI,kW,XNa,$Na,aOa,eOa,lW,fOa,bOa,gOa,mW,nW,oW,iOa,lOa,jOa,oOa,wOa,vOa,pOa,xOa,rOa,sOa,qOa,AOa,COa,EOa,HOa,IOa,KOa,LOa,OOa,QOa,MOa,BW,ROa,UOa,WOa,TOa,YOa,ZOa,$Oa,DW,qqa,bPa,aPa,GW,pw,IW,JW,nqa,KW,dPa,ePa,CW,zW,qW,tW,LW,MW,vW,uW,fPa,nOa,rW,sW,yW,gPa,hPa,NW,iPa,OW,jPa,FW,xW,wW,pW,FOa,JOa,AW,SOa,yOa,tOa,PW,QW,RW,kPa,SW, TW,UW,VW,WW,XW,YW,YNa,ZW,ZNa,mPa,lPa,hOa,GOa,nPa,XOa,oPa,pPa,DOa,mOa,kOa,dOa,zOa,cOa,uOa,NOa,POa,rPa,VOa,BOa,sPa,$W,qPa,aX,gH,NV,KNa,HW,bX,cX,dX,eX,tPa,fX,gX,EW,hX,eW,SV,uPa,iX,vPa,wPa,jX,lX,mX,nX,oX,yPa,qX,rX,sX,xPa,pX,zPa,APa,tX,qw,EPa,DPa,uX,vX,kX,FPa,GPa,wX,xX,HPa,SX,bY,IPa,JPa,KPa,LPa,dY,MPa,eY,fY,gY,hY,iY,jY,NPa,kY,lY,mY,nY,oY,pY,qY,rY,OPa,PPa,QPa,sY,tY,uY,vY,RPa,wY,SPa,xY,TPa,yY,UPa,zY,AY,BY,CY,DY,EY,VPa,GY,HY,WPa,XPa,YPa,JY,IY,LY,MY,KY,OY,ZPa,$Pa,CPa,NY,PY,aQa,QY,cQa,bQa,RY,SY,cPa,dQa,TY, eQa,UY,gQa,hQa,fQa,iQa,VY,jQa,kQa,lQa,WY,XY,YY,mQa,ZY,$Y,aZ,nQa,bZ,cZ,oQa,dZ,FY,eZ,fZ,gZ,fya,hZ,pQa,iZ,qQa,jZ,kZ,rQa,lZ,mZ,nZ,sQa,oZ,tQa,pZ,qZ,vQa,uQa,wQa,xQa,yQa,rZ,sZ,tZ,zQa,AQa,BQa,CQa,DQa,EQa,FQa,GQa,HQa,IQa,uZ,vZ,JQa,KQa,wZ,xZ,yZ,zZ,LQa,AZ,MQa,BZ,NQa,OQa,CZ,PQa,QQa,DZ,RQa,SQa,EZ,FZ,TQa,UQa,VQa,GZ,HZ,JZ,WQa,KZ,LZ,MZ,XQa,NZ,YQa,OZ,PZ,ZQa,QZ,$Qa,aRa,bRa,cRa,dRa,eRa,SZ,fRa,gRa,hRa,iRa,jRa,TZ,UZ,kRa,VZ,WZ,XZ,YZ,lRa,ZZ,mRa,nRa,oRa,b_,pRa,qRa,rRa,c_,a_,sRa,e_,tRa,f_,uRa,g_,h_,i_,j_,k_,vRa,xRa,wRa,yRa, l_,zRa,ARa,m_,BRa,n_,o_,p_,CRa,DRa,q_,ERa,r_,FRa,s_,GRa,HRa,IRa,oqa,JRa,KRa,ba,ha,fa,xj,Sa,faa;ca=function(a){return function(){return ba[a].apply(this,arguments)}}; g.da=function(a,b){return ba[a]=b}; ea=function(a){var b=0;return function(){return b "+a)}; cb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,cb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.FT=b)}; db=function(a,b){var c=cb.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;ff)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e=k){f=1024*(f-55296)+k-56320+65536;d[c++]=f>> 18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=d.subarray(0,c)}return a}; g.jb=function(a){for(var b=[],c=0,d=0;de?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>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}; kb=function(a,b){return 0==a.lastIndexOf(b,0)}; lb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}; g.nb=function(a){return/^[\s\xa0]*$/.test(a)}; ub=function(a,b){if(b)a=a.replace(ob,"&").replace(pb,"<").replace(qb,">").replace(rb,""").replace(sb,"'").replace(tb,"�");else{if(!kaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ob,"&"));-1!=a.indexOf("<")&&(a=a.replace(pb,"<"));-1!=a.indexOf(">")&&(a=a.replace(qb,">"));-1!=a.indexOf('"')&&(a=a.replace(rb,"""));-1!=a.indexOf("'")&&(a=a.replace(sb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(tb,"�"))}return a}; g.vb=function(a,b){return-1!=a.indexOf(b)}; wb=function(a,b){return g.vb(a.toLowerCase(),b.toLowerCase())}; g.Ab=function(a,b){var c=0;a=xb(String(a)).split(".");b=xb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.Bb=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""}; Db=function(a){var b=Cb;return b?b.brands.some(function(c){return(c=c.brand)&&g.vb(c,a)}):!1}; Eb=function(a){return g.vb(g.Bb(),a)}; Fb=function(){var a=Cb;return!!a&&0b?null:"string"===typeof a?a.charAt(b):a[b]}; $b=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; paa=function(a){for(var b=0,c=0,d={};c>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0b?1:ac&&g.nc(a,-(c+1),0,b)}; g.xc=function(a,b,c){var d={};(0,g.wc)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; saa=function(a){for(var b=[],c=0;c=a}; g.Jc=function(a,b){void 0===b&&(b=0);Hc();b=Ic[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+k+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; g.Kc=function(a){for(var b=[],c=0,d=0;d>=8);b[c++]=e}return g.Jc(b,3)}; Mc=function(a){var b=[];Lc(a,function(c){b.push(c)}); return b}; Oc=function(a){!g.Nc||g.Fc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.vb("=.",a[b-1])&&(c=g.vb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Lc(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; Lc=function(a,b){function c(m){for(;d>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}}; Hc=function(){if(!Pc){Pc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Ic[c]=d;for(var e=0;ee&&128<=b;e++)b=a.u[a.j++],hd(a),c|=(b&127)<<7*e;128<=b&&(b=a.u[a.j++],hd(a),c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.j++],hd(a),d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}throw ab();}; hd=function(a){if(a.j>a.B)throw bb(a.B,a.j);}; g.jd=function(a){var b=a.u,c=b[a.j+0],d=c&127;if(128>c)return a.j+=1,hd(a),d;c=b[a.j+1];d|=(c&127)<<7;if(128>c)return a.j+=2,hd(a),d;c=b[a.j+2];d|=(c&127)<<14;if(128>c)return a.j+=3,hd(a),d;c=b[a.j+3];d|=(c&127)<<21;if(128>c)return a.j+=4,hd(a),d;c=b[a.j+4];a.j+=5;d|=(c&15)<<28;if(128>c)return hd(a),d;if(128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++])throw ab();hd(a);return d}; g.kd=function(a){var b=a.u[a.j+0],c=a.u[a.j+1],d=a.u[a.j+2],e=a.u[a.j+3];a.j+=4;hd(a);return(b<<0|c<<8|d<<16|e<<24)>>>0}; g.ld=function(a){for(var b=0,c=a.j,d=c+10;cb)throw Error("Tried to read a negative byte length: "+b);if(a.j+b>a.B)throw bb(b,a.B-a.j);}; nd=function(a,b){md(a,b);if(0==b)return $c();if(a.Az&&a.D)var c=a.u.subarray(a.j,a.j+b);else{c=a.u;var d=a.j,e=a.j+b;c=d===e?Vc():waa?c.slice(d,e):new Uint8Array(c.subarray(d,e))}a.j+=b;return 0==c.length?$c():new Yc(c,Wc)}; rd=function(a){if(od.length){var b=od.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.fd(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;qd(this)}; qd=function(a){var b={};a.IE=void 0===b.IE?!1:b.IE}; sd=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.jd(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw $a(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0}; td=function(a){switch(a.u){case 0:0!=a.u?td(a):g.ld(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)td(a);else{var b=g.jd(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!sd(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}td(a)}while(1);break;default:throw $a(a.u,a.B);}}; g.ud=function(a,b,c){var d=a.j.B,e=g.jd(a.j)>>>0,f=a.j.j+e,k=f-d;0>=k&&(a.j.B=f,c(b,a),k=f-a.j.j);if(k)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-k)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d}; g.vd=function(a){var b=a.j;a=g.kd(b);var c=g.kd(b);b=2*(c>>31)+1;var d=c>>>20&2047;a=4294967296*(c&1048575)+a;return 2047==d?a?NaN:Infinity*b:0==d?b*Math.pow(2,-1074)*a:b*Math.pow(2,d-1075)*(a+4503599627370496)}; g.xd=function(a){var b=g.jd(a.j)>>>0;a=a.j;md(a,b);var c=a.j;a.j+=b;a=a.u;var d;if(xaa)(d=wd)||(d=wd=new TextDecoder("utf-8",{fatal:!0})),d=d.decode(a.subarray(c,c+b));else{b=c+b;for(var e=[],f=null,k,l,m;ck?e.push(k):224>k?c>=b?eb():(l=a[c++],194>k||128!==(l&192)?(c--,eb()):e.push((k&31)<<6|l&63)):240>k?c>=b-1?eb():(l=a[c++],128!==(l&192)||224===k&&160>l||237===k&&160<=l||128!==((d=a[c++])&192)?(c--,eb()):e.push((k&15)<<12|(l&63)<<6|d&63)):244>=k?c>=b-2?eb():(l=a[c++],128!==(l&192)|| 0!==(k<<28)+(l-144)>>30||128!==((d=a[c++])&192)||128!==((m=a[c++])&192)?(c--,eb()):(k=(k&7)<<18|(l&63)<<12|(d&63)<<6|m&63,k-=65536,e.push((k>>10&1023)+55296,(k&1023)+56320))):eb(),8192<=e.length&&(f=fb(f,e),e.length=0);d=fb(f,e)}return d}; yd=function(a){var b=g.jd(a.j)>>>0;return nd(a.j,b)}; zd=function(a,b){this.u=a>>>0;this.j=b>>>0}; Bd=function(a){if(!a)return Ad||(Ad=new zd(0,0));if(!/^-?\d+$/.test(a))return null;g.ed(a);return new zd(g.dd,g.cd)}; Cd=function(){this.j=[]}; Dd=function(a,b,c){for(;0>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; Fd=function(a,b){for(;127>>=7;a.j.push(b)}; Gd=function(a,b){if(0<=b)Fd(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; g.Hd=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)}; yaa=function(){this.B=[];this.u=0;this.j=new Cd}; Id=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)}; Kd=function(a,b){g.Jd(a,b,2);b=a.j.end();Id(a,b);b.push(a.u);return b}; Ld=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127>>=7,a.u++;b.push(c);a.u++}; zaa=function(a,b){if(b=b.D){Id(a,a.j.end());for(var c=0;c=a.C?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&(c=a.u[b],null!=c)?c:a.me[b+a.B]}; g.D=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||ae(a);bd?-2147483648:0)?-d:d,1.7976931348623157E308>>0,g.dd=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.cd=(c|b/4294967296)>>>0,g.dd=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022>>0;g.dd=4503599627370496* d>>>0}g.Hd(a,g.dd);g.Hd(a,g.cd)}}; g.ef=function(a,b,c){b=g.he(b,c);if(null!=b&&("string"===typeof b&&Bd(b),null!=b))if(g.Jd(a,c,0),"number"===typeof b){a=a.j;var d=b;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295a.u&&(a.u++,b.next=a.j,a.j=b)}; Fg=function(a){return function(){return a}}; g.Gg=function(){}; Yaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; Hg=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; Ig=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; Zaa=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)}}; Kg=function(){if(void 0===Jg){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Za,createScript:Za,createScriptURL:Za})}catch(c){g.C.console&&g.C.console.error(c.message)}Jg=a}else Jg=a}return Jg}; Ng=function(a,b){this.j=a===Lg&&b||"";this.u=Mg}; Og=function(a){return a instanceof Ng&&a.constructor===Ng&&a.u===Mg?a.j:"type_error:Const"}; g.Pg=function(a){return new Ng(Lg,a)}; Rg=function(a,b){this.j=b===Qg?a:"";this.ol=!0}; Tg=function(a,b){this.j=b===Sg?a:""}; Ug=function(a){return a instanceof Tg&&a.constructor===Tg?a.j:"type_error:TrustedResourceUrl"}; bba=function(a,b){var c=Og(a);if(!$aa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(aba,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 Ng?Og(d):encodeURIComponent(String(d))}); return Vg(a)}; Vg=function(a){var b=Kg();a=b?b.createScriptURL(a):a;return new Tg(a,Sg)}; g.Xg=function(a,b){this.j=b===Wg?a:""}; g.Yg=function(a){return a instanceof g.Xg&&a.constructor===g.Xg?a.j:"type_error:SafeUrl"}; Zg=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(cba)?new g.Xg(a,Wg):null}; g.bh=function(a){a instanceof g.Xg||(a="object"==typeof a&&a.ol?a.Ph():String(a),a=$g.test(a)?new g.Xg(a,Wg):Zg(a));return a||ah}; g.ch=function(a,b){if(a instanceof g.Xg)return a;a="object"==typeof a&&a.ol?a.Ph():String(a);if(b&&/^data:/i.test(a)&&(b=Zg(a)||ah,b.Ph()==a))return b;$g.test(a)||(a="about:invalid#zClosurez");return new g.Xg(a,Wg)}; kh=function(a,b){this.j=b===jh?a:"";this.ol=!0}; lh=function(a){return a instanceof kh&&a.constructor===kh?a.j:"type_error:SafeStyle"}; oh=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(mh).join(" "):mh(d),b+=c+":"+d+";")}return b?new kh(b,jh):nh}; dba=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=lh(d)} var c="";Array.prototype.forEach.call(arguments,b);return c?new kh(c,jh):nh}; mh=function(a){if(a instanceof g.Xg)return'url("'+g.Yg(a).replace(/a*b?a+b:a}; g.Ah=function(a,b,c){return a+c*(b-a)}; Bh=function(a,b){return 1E-6>=Math.abs(a-b)}; g.Ch=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; Dh=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Eh=function(a,b){this.width=a;this.height=b}; g.Fh=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; Gh=function(a){return a.width*a.height}; g.Hh=function(a){return encodeURIComponent(String(a))}; Ih=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; g.Jh=function(a){return a=ub(a,void 0)}; g.Kh=function(a){return null==a?"":String(a)}; Lh=function(a){for(var b=0,c=0;c>>0;return b}; Mh=function(a){var b=Number(a);return 0==b&&g.nb(a)?NaN:b}; uba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; vba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; wba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; xba=function(a){var b=1;a=a.split(":");for(var c=[];0a}; ji=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return ii(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.dc(f.className.split(/\s+/),c))},!0,d)}; ii=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null}; Nh=function(a){this.j=a||g.C.document||document}; li=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Ib()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(ki||(ki=Iba()),ki(a)):g.C.setImmediate(a)}; Iba=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Eb("Presto")&&(a=function(){var e=g.$h("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Ua)(function(m){if(("*"==l||m.origin==l)&&m.data==k)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}}); if("undefined"!==typeof a&&!Hb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.mL;c.mL=null;e()}}; return function(e){d.next={mL:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}}; Jba=function(a){g.C.setTimeout(function(){throw a;},0)}; mi=function(){this.u=this.j=null}; ni=function(){this.next=this.scope=this.j=null}; g.qi=function(a,b){oi||Kba();pi||(oi(),pi=!0);Lba.add(a,b)}; Kba=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);oi=function(){a.then(Mba)}}else oi=function(){li(Mba)}}; Mba=function(){for(var a;a=Lba.remove();){try{a.j.call(a.scope)}catch(b){Jba(b)}Eg(Nba,a)}pi=!1}; ri=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}; g.ti=function(a){this.j=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.Na)try{var b=this;a.call(void 0,function(c){si(b,2,c)},function(c){si(b,3,c)})}catch(c){si(this,3,c)}}; Oba=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1}; ui=function(a,b,c){var d=Pba.get();d.u=a;d.onRejected=b;d.context=c;return d}; vi=function(a){if(a instanceof g.ti)return a;var b=new g.ti(g.Na);si(b,2,a);return b}; wi=function(a){return new g.ti(function(b,c){c(a)})}; g.Rba=function(a,b,c){Qba(a,b,c,null)||g.qi(g.Wa(b,a))}; Sba=function(a){return new g.ti(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.C&&a.PP()}; cca=function(a,b){return a.J.has(b)?void 0:a.j.get(b)}; dca=function(a){for(var b=0;bw;w+=4)t[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var I=z^x&(y^z);var J=1518500249}else I=x^y^z,J=1859775393;else 60>w?(I=x&y|z&(x|y),J=2400959708):(I=x^y^z,J=3395469782);I=((q<<5|q>>>27)&4294967295)+I+E+J+t[w]&4294967295;E=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=I}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]= e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+E&4294967295} function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],x=0,y=q.length;xn?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)q[t++]=e[w]>>x&255;return q} for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,dU:function(){for(var q=d(),t="",w=0;wb&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]}; Gca=function(a,b){return b?a?a+"&"+b:b:a}; nj=function(a,b){if(!b)return a;a=Fca(a);a[1]=Gca(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; oj=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Ih(a.substr(d,e-d))}; uj=function(a,b){for(var c=a.search(Jca),d=0,e,f=[];0<=(e=Ica(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Kca,"$1")}; Lca=function(a,b,c){return sj(uj(a,b),b,c)}; Mca=function(a,b){a=Fca(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)}); a[1]=Gca(d.join("&"),g.pj(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; g.vj=function(a){g.Bg.call(this);this.headers=new Map;this.Z=a||null;this.D=!1;this.ya=this.j=null;this.Sa=this.X="";this.u=0;this.C="";this.J=this.Ia=this.ma=this.Ea=!1;this.N=0;this.va=null;this.Ra="";this.xa=this.K=!1}; Oca=function(a,b,c,d,e,f,k){var l=new g.vj;Nca.push(l);b&&l.Pa("complete",b);l.WA("ready",l.KT);f&&(l.N=Math.max(0,f));k&&(l.K=k);l.send(a,c,d,e)}; Pca=function(a){return g.Nc&&g.Fc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; Rca=function(a,b){a.D=!1;a.j&&(a.J=!0,a.j.abort(),a.J=!1);a.C=b;a.u=5;Qca(a);wj(a)}; Qca=function(a){a.Ea||(a.Ea=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Sca=function(a){if(a.D&&"undefined"!=typeof xj)if(a.ya[1]&&4==g.yj(a)&&2==a.getStatus())zj(a,"Local request error detected and ignored");else if(a.ma&&4==g.yj(a))g.Bi(a.FO,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){zj(a,"Request complete");a.D=!1;try{if(Aj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2a.rb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.va}; hda=function(a,b){a.D=new g.Pi(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())}; jda=function(a){ida(a,function(b,c){b=sj(b,"format","json");b=Xh().navigator.sendBeacon(b,He(c));a.ya&&!b&&(a.ya=!1);return b})}; ida=function(a,b){if(0!==a.u.length){var c=uj(gda(a),"format");c=qj(c,"auth",a.Wa(),"authuser",a.X||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.J.ze(e,a.K);if(!b(c,f))break;a.K=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}}; kda=function(){g.Cf.call(this,"event-logged",void 0)}; eda=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new ada;g.D(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Ij(this,new Gj)}; Ij=function(a,b){ye(a.j,1,b);g.he(b,1)||g.D(b,1,1);a.B||(b=Kj(a),g.he(b,5)||g.D(b,5,a.locale));a.u&&(b=Kj(a),we(b,Yca,9)||ye(b,9,a.u))}; lda=function(a,b){b(Xh()).then(function(c){a.u=c;c=Kj(a);ye(c,9,a.u);return!0}).catch(function(){return!1})}; Kj=function(a){a=we(a.j,Gj,1);var b=we(a,Fj,11);b||(b=new Fj,ye(a,11,b));return b}; mda=function(a,b,c){Oca(a.url,function(d){d=d.target;Aj(d)?b(g.Cj(d)):c(d.getStatus())},a.requestType,a.body,a.ir,a.timeoutMillis,a.withCredentials)}; nda=function(){this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=mda;this.j=""}; oda=function(){var a="",b=!1,c="2";a=void 0===a?"":a;c=void 0===c?"":c;var d=new nda;d.j="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.j=d.ze()}; pda=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; Lj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c}; Mj=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()}; Nj=function(a,b){this.logger=a;this.j=b;this.startMillis=Mj()}; Oj=function(){}; Pj=function(a){this.dk=a;this.C=new oda;this.j=new g.Di(this.C);this.clientError=new gca(this.j);this.u=new fca(this.j);this.B=new eca(this.j)}; qda=function(a){g.F.call(this,a)}; rda=function(a){g.F.call(this,a)}; Qj=function(a){g.F.call(this,a)}; g.Rj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})}; Sj=function(a){this.j=!1;if(a.challenge instanceof Qj){var b=ke(a.challenge,4,"");a=ke(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new g.Rj;this.u=c.promise;this.B=g.r((0,g.C[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({AT:d,QZ:e})})},!0)).next().value; this.NZ=c.promise.then(function(){})}; sda=function(a){return pba(g.Pg("From proto message. b/12014412"),g.he(a,4)||"")}; tda=function(){}; Tj=function(a){this.j=a}; uda=function(){}; Uj=function(a){this.j=a}; vda=function(a){if(a instanceof uda)if(a instanceof Uj)a=a.j;else throw Error("");else a=g.Yg(a);return a}; wda=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)}; g.Vj=function(a,b){a.src=Ug(b);wda(a)}; xda=function(a,b){return a.parseFromString(g.rh(b),"text/xml")}; Wj=function(){this.j={};this.u=null}; yda=function(){Wj.j||(Wj.j=new Wj);return Wj.j}; Ada=function(a){var b=yda();return zda(b,we(a,qda,1),we(a,rda,2),ke(a,3,""))}; zda=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Bda(b,c);(e=a.j)[d]||(e[d]=new Promise(function(f,k){Bda(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d]; k(l)})})); return a.j[d]}; Bda=function(a,b){return b?Cda(b):a?Dda(a):Promise.resolve()}; Cda=function(a){return new Promise(function(b,c){var d=g.$h("SCRIPT"),e=sda(a);g.Vj(d,e);d.onload=function(){g.di(d);b()}; d.onerror=function(){g.di(d);c(Error("EWLS"))}; (g.Qh("HEAD")[0]||document.documentElement).appendChild(d)})}; Dda=function(a){return new Promise(function(b){var c=g.$h("SCRIPT");if(a){var d=g.he(a,6);if(null===d||void 0===d)var e=null;else{var f=null==(e=Kg())?void 0:e.createScript(d);e=new Tj(null!=f?f:d,Xj)}}else e=null;if(e instanceof tda)if(e instanceof Tj)e=e.j;else throw Error("");else e=e instanceof Rg&&e.constructor===Rg?e.j:"type_error:SafeScript";c.textContent=e;wda(c);(g.Qh("HEAD")[0]||document.documentElement).appendChild(c);g.di(c);b()})}; Yj=function(a){g.F.call(this,a)}; Zj=function(a){g.F.call(this,a)}; ak=function(a){g.F.call(this,a)}; Eda=function(a,b,c){this.client=a;this.dk=b;this.j=c}; Fda=function(a){var b=yda().u,c,d,e,f,k;return g.B(function(l){if(1==l.j)return c=new Yj,qe(c,1,a.dk,""),b&&qe(c,2,b,""),d=a.j(),g.A(l,a.client.create(c,d),2);e=l.u;lf(e);f=Rc($d(ke(e,2,"")));if(f.length){var m=l.return;var n=new Uint8Array(f.length);for(var p=0;p=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;qb)throw Error("Bad port number "+b);a.u=b}else a.u=null}; zk=function(a,b,c){b instanceof Bk?(a.B=b,Sda(a.B,a.J)):(c||(b=Ck(b,Tda)),a.B=new Bk(b,a.J))}; g.Dk=function(a,b,c){a.B.set(b,c)}; g.Ek=function(a){return a instanceof g.vk?a.clone():new g.vk(a,void 0)}; Ak=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; Ck=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Uda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; Uda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; Bk=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b}; Fk=function(a){a.j||(a.j=new Map,a.u=0,a.B&&mj(a.B,function(b,c){a.add(Ih(b),c)}))}; Vda=function(a,b){Fk(a);b=Pk(a,b);return a.j.has(b)}; g.Wda=function(a,b,c){a.remove(b);0>>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=mea(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,k=f,l=0;12<=k;k-=12,l+=12)c+=gl(a,l),d+=gl(a,l+4),e+=gl(a,l+8),b();e+=f;switch(k){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return lea(e)}; mea=function(a){for(var b=[],c=0;c=e)){E.Za(4);break}g.va(E,5);return g.A(E,pl(a.logger.hG("c",e,Fda(a.Zz)),function(){return Promise.reject(new jl(10,"JVZ:Timeout"))}),7); case 7:return f=E.u,k=new Nj(a.logger,"b"),g.A(E,Ada(f),8);case 8:return l=new Sj({challenge:f}),g.A(E,pl(l.snapshot({}),function(){return Promise.reject(new jl(15,"MDA:Timeout"))}),9); case 9:return m=E.u,k.done(),g.A(E,pl(a.logger.hG("g",e,Hda(a.Zz,m)),function(){return Promise.reject(new jl(10,"BWB:Timeout"))}),10); case 10:n=E.u;p=new Nj(a.logger,"i");if(De(n,3))var I=rea(a,n,l);else l.dispose(),I=new nl(hk(n),1E3*De(n,2));q=I;p.done();w=t=void 0;null==(w=(t=a).pO)||w.call(t,hk(n));return E.return(q);case 5:x=g.xa(E);b=x instanceof jl?x:x instanceof Lj?new jl(11,x):new jl(12,x);a.logger.jx(b.code);z=y=void 0;null==(z=(y=a).onError)||z.call(y,b);a:{if(x instanceof Lj)switch(x.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(!I)throw b;return g.A(E,ll(d.getValue()),11);case 11:g.Qi(d);case 3:e++; E.Za(2);break;case 4:throw b;}})}; qea=function(a){var b,c,d,e;g.B(function(f){switch(f.j){case 1:return b=void 0,g.va(f,4),g.A(f,sea(a),6);case 6:b=f.u;g.wa(f,5);break;case 4:if(c=g.xa(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.jx(13);f.Za(0);break}else a.logger.jx(14),b=new ol(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.A(f,a.j.B.promise,1)}})}; tea=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}}; uea=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.Jh(c)+".js";c=e.document;var k={};b&&(k._scs_=b);k._bgu_=f;k._bgp_=d;k._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(k);e=Ph(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=bba(g.Pg("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Jh(a)+".js"});g.Vj(e,a);c.getElementsByTagName("head")[0].appendChild(e)}; vea=function(a){var b={};g.wc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c}); oaa(a,function(c){return null===b[c.event]})}; ql=function(){this.pd=0;this.j=!1;this.u=-1;this.Aq=!1;this.Dh=0}; rl=function(){this.Vc=null;this.j=!1}; sl=function(a){rl.call(this);this.u=a}; tl=function(){rl.call(this)}; ul=function(){rl.call(this)}; vl=function(){this.j={};this.u=!0;this.B={}}; wl=function(a,b,c){a.j[b]||(a.j[b]=new sl(c));return a.j[b]}; wea=function(a){a.j.queryid||(a.j.queryid=new ul)}; xl=function(a,b,c){(a=a.j[b])&&a.setValue(c)}; yl=function(a,b){if(g.Xf(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()}; zl=function(a){var b={},c=g.Nf(a.j,function(d){return d.j}); g.Mf(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.Vc?String(d.Vc):"";0e?encodeURIComponent(Sea(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; Uea=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Tea(a)-c.length;if(0>d)return"";a.j.sort(function(p,q){return p-q}); c=null;for(var e="",f=0;f=n.length){d-=n.length;b+=n;e=a.B;break}c=null==c?k:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""}; Tea=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}; Ol=function(a,b){this.j=a;this.depth=b}; Wea=function(){function a(l,m){return null==l?m:l} var b=Kl(),c=Math.max(b.length-1,0),d=Rea(b);b=d.j;var e=d.u,f=d.B,k=[];f&&k.push(new Ol([f.url,f.TF?2:0],a(f.depth,1)));e&&e!=f&&k.push(new Ol([e.url,2],0));b.url&&b!=f&&k.push(new Ol([b.url,0],a(b.depth,c)));d=g.Pl(k,function(l,m){return k.slice(0,k.length-m)}); !b.url||(f||e)&&b!=f||(e=Jea(b.url))&&d.push([new Ol([e,1],a(b.depth,c))]);d.push([]);return g.Pl(d,function(l){return Vea(c,l)})}; Vea=function(a,b){g.Ql(b,function(e){return 0<=e.depth}); var c=Rl(b,function(e,f){return Math.max(e,f.depth)},-1),d=saa(c+2); d[0]=a;g.wc(b,function(e){return d[e.depth+1]=e.j}); return d}; Xea=function(){var a=Wea();return g.Pl(a,function(b){return Nl(b)})}; Yea=function(a){El.google_image_requests||(El.google_image_requests=[]);var b=Kea("IMG",El.document);b.src=a;El.google_image_requests.push(b)}; Sl=function(a){var b="Ze";if(a.Ze&&a.hasOwnProperty(b))return a.Ze;var c=new a;a.Ze=c;a.hasOwnProperty(b);return c}; Yl=function(){this.u=new Eea;this.j=Cl()?new Dl:new Bl}; Zea=function(){Zl();var a=El.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof El.setInterval&&"function"===typeof El.clearInterval&&"function"===typeof El.setTimeout&&"function"===typeof El.clearTimeout)}; $ea=function(){Zl();return Xea()}; afa=function(){}; Zl=function(){return Sl(afa).getContext()}; bfa=function(a){g.F.call(this,a)}; efa=function(){return[1,cfa,2,$l,3,$l,4,$l,5,dfa]}; ffa=function(a){this.B=a;this.j=-1;this.u=this.C=0}; am=function(a,b){return function(){var c=g.Da.apply(0,arguments);if(-1Math.random())}; rfa=function(a){a&&fm&&dm()&&(fm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),fm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; sfa=function(){var a=gm;this.j=hm;this.RL="jserror";this.VH=!0;this.ZD=null;this.u=this.jG;this.Sb=void 0===a?null:a}; tfa=function(a,b,c,d){return am(bm().j.j,function(){try{if(a.Sb&&a.Sb.j){var e=a.Sb.start(b.toString(),3);var f=c();a.Sb.end(e)}else f=c()}catch(l){var k=a.VH;try{rfa(e),k=a.u(b,new im(jm(l)),void 0,d)}catch(m){a.jG(217,m)}if(!k)throw l;}return f})()}; qm=function(a,b,c){var d=pm;return am(bm().j.j,function(){var e=g.Da.apply(0,arguments);return tfa(d,a,function(){return b.apply(void 0,e)},c)})}; jm=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}; im=function(a){nfa.call(this,Error(a),{message:a})}; ufa=function(){El&&"undefined"!=typeof El.google_measure_js_timing&&(El.google_measure_js_timing||gm.disable())}; vfa=function(a){pm.ZD=function(b){g.wc(a,function(c){c(b)})}}; wfa=function(a,b){return tfa(pm,a,b,void 0)}; rm=function(a,b){return qm(a,b,void 0)}; sm=function(a,b,c,d){pm.jG(a,b,c,d)}; tm=function(){return Date.now()-xfa}; yfa=function(){var a=bm().B,b=0<=um?tm()-um:-1,c=vm?tm()-wm:-1,d=0<=xm?tm()-xm:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];sm(637,Error(),.001);var f=b;-1!=c&&cd?500:k}; ym=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; zm=function(a){return a.right-a.left}; Am=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}; Bm=function(a,b,c){b instanceof g.Ch?(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}; Cm=function(a,b,c){var d=new ym(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c}; Dm=function(a,b,c,d,e,f,k,l){this.C=a;this.N=b;this.B=c;this.J=d;this.j=e;this.D=f;this.u=k;this.K=l}; Afa=function(a){var b=a!==a.top,c=a.top===Nea(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),Sf(zfa,function(k){return"function"===typeof f[k]})||(e=1)); return{Sj:f,compatibility:e,SZ:d}}; Bfa=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint}; g.Em=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; Fm=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}; Gm=function(a){this.isValid=a}; Hm=function(a){return new Gm(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}; Dfa=function(a,b){b=void 0===b?Cfa:b;for(var c=0;ca.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.Rm=function(a){var b=Oh(a),c=new g.Ch(0,0);var d=b?Oh(b):document;d=!g.Nc||g.Gc(9)||"CSS1Compat"==Ph(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Qm(a);b=Dba(Ph(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; Hfa=function(a,b){var c=new g.Ch(0,0),d=Xh(Oh(a));if(!zc(d,"parent"))return c;do{var e=d==b?g.Rm(a):Gfa(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.Sm=function(a,b){a=Ifa(a);b=Ifa(b);return new g.Ch(a.x-b.x,a.y-b.y)}; Gfa=function(a){a=Qm(a);return new g.Ch(a.left,a.top)}; Ifa=function(a){if(1==a.nodeType)return Gfa(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ch(a.clientX,a.clientY)}; g.Tm=function(a,b,c){if(b instanceof g.Eh)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Om(b,!0);a.style.height=g.Om(c,!0)}; g.Om=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.Um=function(a){var b=Jfa;if("none"!=Nm(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}; Jfa=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Gf&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Qm(a),new g.Eh(a.right-a.left,a.bottom-a.top)):new g.Eh(b,c)}; g.Vm=function(a,b){a.style.display=b?"":"none"}; Wm=function(a,b,c,d){var e=void 0===e?!1:e;c=qm(d,c,void 0);Fl(a,b,c,{capture:e})}; Kfa=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Eh(b.innerWidth,b.innerHeight)).round():Bba(b||window).round()}catch(d){return new g.Eh(-12245933,-12245933)}}; Xm=function(a,b,c){try{a&&(b=b.top);var d=Kfa(a,b,void 0===c?!1:c),e=Dba(Ph(b.document).j);if(-12245933==d.width){var f=d.width;var k=new ym(f,f,f,f)}else k=new ym(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new ym(-12245933,-12245933,-12245933,-12245933)}}; Ym=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; Lfa=function(a){return new ym(a.top,a.right,a.bottom,a.left)}; Mfa=function(a){var b=a.top||0,c=a.left||0;return new ym(b,c+(a.width||0),b+(a.height||0),c)}; Zm=function(a){return null!=a&&0<=a&&1>=a}; Nfa=function(){var a=g.Bb();return a?$m("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return wb(a,b)})||wb(a,"OMI/")&&!wb(a,"XiaoMi/")?!0:wb(a,"Presto")&&wb(a,"Linux")&&!wb(a,"X11")&&!wb(a,"Android")&&!wb(a,"Mobi"):!1}; Ofa=function(){this.B=!Il(El.top);this.isMobileDevice=Hl()||Fea();var a=Kl();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.u?!1:a.jb.j?!1:typeof a.Vctypeof b.Vc?!1:a.Vcc++;){if(a===b)return!0;try{if(a=g.ei(a)||a){var d=Oh(a),e=d&&Xh(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1}; lga=function(a,b,c){if(!a||!b)return!1;b=Bm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Il(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Bfa())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Oh(c))&&b.defaultView&&b.defaultView.frameElement)&&kga(b,a);var d=a===c;a=!d&&a&&ii(a,function(e){return e===c}); return!(b||d||a)}; mga=function(a,b,c,d){return an().B?!1:0>=zm(a)||0>=a.getHeight()?!0:c&&d?wfa(208,function(){return lga(a,b,c)}):!1}; zn=function(a,b,c){g.G.call(this);this.position=nga.clone();this.cB=this.sA();this.gG=-2;this.h_=Date.now();this.fQ=-1;this.lastUpdateTime=b;this.UA=null;this.Tz=!1;this.kB=null;this.opacity=-1;this.requestSource=c;this.lG=function(){}; this.sQ=function(){}; this.dh=new Aea;this.dh.Ro=a;this.dh.j=a;this.Oo=!1;this.fq={vG:null,tG:null};this.NP=!0;this.wy=null;this.Bt=this.uV=!1;bm().J++;this.Hf=this.lF();this.cQ=-1;this.Zd=null;this.rV=!1;this.featureSet=new vl;zea(this.featureSet);oga(this);1==this.requestSource?xl(this.featureSet,"od",1):xl(this.featureSet,"od",0)}; oga=function(a){a=a.dh.Ro;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:pga&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+vba()):!!a.getAttribute("data-"+vba());b&&(an().u=!0)}; An=function(a,b){b!=a.Bt&&(a.Bt=b,a=an(),b?a.J++:0c?0:a}; sga=function(a,b,c){if(a.Zd){a.Zd.Jn();var d=a.Zd.K,e=d.C,f=e.j;if(null!=d.J){var k=d.B;a.kB=new g.Ch(k.left-f.left,k.top-f.top)}f=a.fC()?Math.max(d.j,d.D):d.j;k={};null!==e.volume&&(k.volume=e.volume);e=a.mM(d);a.UA=d;a.Ka(f,b,c,!1,k,e,d.K)}}; tga=function(a){if(a.Tz&&a.wy){var b=1==yl(a.featureSet,"od"),c=an().j,d=a.wy,e=a.Zd?a.Zd.getName():"ns",f=new g.Eh(zm(c),c.getHeight());c=a.fC();a={VZ:e,kB:a.kB,J_:f,fC:c,pd:a.Hf.pd,D_:b};if(b=d.u){b.Jn();e=b.K;f=e.C.j;var k=null,l=null;null!=e.J&&f&&(k=e.B,k=new g.Ch(k.left-f.left,k.top-f.top),l=new g.Eh(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={VZ:b.getName(),kB:k,J_:l,fC:c,D_:!1,pd:e}}else c=null;c&&ega(d,a,c)}}; uga=function(a,b,c){b&&(a.lG=b);c&&(a.sQ=c)}; g.Bn=function(){}; g.Cn=function(a){return{value:a,done:!1}}; g.En=function(a){if(a.done)throw g.Dn;return a.value}; vga=function(){this.C=this.j=this.B=this.u=this.D=0}; wga=function(a){var b={};var c=g.Xa()-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}; xga=function(){ql.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Fn=function(a){return Zm(a.volume)&&0Math.max(1E4,a.B/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.ma+=b,a.Ea+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.Ja+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Ra&&0=a.B/2:0=a.ya:!1:!1}; Jga=function(a){var b=Ym(a.Hf.pd,2),c=a.yf.B,d=a.Hf,e=ko(a),f=jo(e.C),k=jo(e.J),l=jo(d.volume),m=Ym(e.K,2),n=Ym(e.ma,2),p=Ym(d.pd,2),q=Ym(e.va,2),t=Ym(e.ya,2);d=Ym(d.Dh,2);a=a.zo().clone();a.round();e=wn(e,!1);return{I_:b,Ww:c,dB:f,ZA:k,Tv:l,eB:m,aB:n,pd:p,fB:q,bB:t,Dh:d,position:a,iB:e}}; Lga=function(a,b){Kga(a.j,b,function(){return{I_:0,Ww:void 0,dB:-1,ZA:-1,Tv:-1,eB:-1,aB:-1,pd:-1,fB:-1,bB:-1,Dh:-1,position:void 0,iB:[]}}); a.j[b]=Jga(a)}; Kga=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; zo=function(a){a=void 0===a?El:a;jn.call(this,new en(a,2))}; Ao=function(){var a=jha();en.call(this,El.top,a,"geo")}; jha=function(){bm();var a=an();return a.B||a.u?0:2}; kha=function(){}; Bo=function(){this.done=!1;this.j={qT:0,RK:0,zha:0,ML:0,LF:-1,TT:0,ST:0,UT:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new dn(this)}; Do=function(){var a=Co;a.J||(a.J=!0,lha(a,function(){return a.C.apply(a,g.u(g.Da.apply(0,arguments)))}),a.C())}; mha=function(){Sl(kha);var a=Sl(to);null!=a.j&&a.j.j?Rfa(a.j.j):an().update(El)}; Eo=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{mha();var d=tm(),e=bm();e.D=d;if(null!=Sl(to).j)for(e=0;eg.Wf(xha).length?null:Rl(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===yha[d[0]]||!yha[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; Aha=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?tn(b.j,a.j):tn(b.u,a.j);case "tos":return a.u?sn(b.j,a.j):sn(b.u,a.j)}return 0}; Ko=function(a,b,c,d){bo.call(this,b,d);this.K=a;this.N=c}; Bha=function(){}; Lo=function(){}; Mo=function(){}; No=function(a){bo.call(this,"fully_viewable_audible_half_duration_impression",a)}; Oo=function(a){this.j=a}; Po=function(a,b){bo.call(this,a,b)}; Qo=function(a){co.call(this,"measurable_impression",a)}; Ro=function(){Oo.apply(this,arguments)}; So=function(a,b,c){fo.call(this,a,b,c)}; To=function(a){a=void 0===a?El:a;jn.call(this,new en(a,2))}; Uo=function(a,b,c){fo.call(this,a,b,c)}; Vo=function(a){a=void 0===a?El:a;jn.call(this,new en(a,2))}; Wo=function(){en.call(this,El,2,"mraid");this.Ea=0;this.ma=this.va=!1;this.K=null;this.u=Afa(this.B);this.C.j=new ym(0,0,0,0);this.Ia=!1}; Xo=function(a,b,c){a.kp("addEventListener",b,c)}; Fha=function(a){bm().C=!!a.kp("isViewable");Xo(a,"viewableChange",Cha);"loading"===a.kp("getState")?Xo(a,"ready",Dha):Eha(a)}; Eha=function(a){"string"===typeof a.u.Sj.AFMA_LIDAR?(a.va=!0,Gha(a)):(a.u.compatibility=3,a.K="nc",a.fail("w"))}; Gha=function(a){a.ma=!1;var b=1==yl(bm().featureSet,"rmmt"),c=!!a.kp("isViewable");(b?!c:1)&&Zl().setTimeout(rm(524,function(){a.ma||(Hha(a),sm(540,Error()),a.K="mt",a.fail("w"))}),500); Iha(a);Xo(a,a.u.Sj.AFMA_LIDAR,Jha)}; Iha=function(a){var b=1==yl(bm().featureSet,"sneio"),c=void 0!==a.u.Sj.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Sj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Sj.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Sj.AFMA_LIDAR_EXP_1=!b)}; Hha=function(a){a.kp("removeEventListener",a.u.Sj.AFMA_LIDAR,Jha);a.va=!1}; Kha=function(a,b){if("loading"===a.kp("getState"))return new g.Eh(-1,-1);b=a.kp(b);if(!b)return new g.Eh(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Eh(-1,-1):new g.Eh(a,b)}; Dha=function(){try{var a=Sl(Wo);a.kp("removeEventListener","ready",Dha);Eha(a)}catch(b){sm(541,b)}}; Jha=function(a,b){try{var c=Sl(Wo);c.ma=!0;var d=a?new ym(a.y,a.x+a.width,a.y+a.height,a.x):new ym(0,0,0,0);var e=tm(),f=cn();var k=new Cm(e,f,c);k.j=d;k.volume=b;c.Go(k)}catch(l){sm(542,l)}}; Cha=function(a){var b=bm(),c=Sl(Wo);a&&!b.C&&(b.C=!0,c.Ia=!0,c.K&&c.fail("w",!0))}; Yo=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.K=(a.start=this.cV,a.firstquartile=this.XU,a.midpoint=this.ZU,a.thirdquartile=this.dV,a.complete=this.VU,a.pause=this.fH,a.resume=this.yP,a.skip=this.bV,a.viewable_impression=this.fl,a.mute=this.Ju,a.unmute=this.Ju,a.fullscreen=this.YU,a.exitfullscreen=this.WU,a.fully_viewable_audible_half_duration_impression=this.fl,a.measurable_impression=this.fl,a.abandon=this.fH,a.engagedview=this.fl,a.impression=this.fl,a.creativeview=this.fl, a.progress=this.Ju,a.custom_metric_viewable=this.fl,a.bufferstart=this.fH,a.bufferfinish=this.yP,a.audio_measurable=this.fl,a.audio_audible=this.fl,a);a={};this.N=(a.overlay_resize=this.aV,a.abandon=this.BF,a.close=this.BF,a.collapse=this.BF,a.overlay_unmeasurable_impression=function(b){return no(b,"overlay_unmeasurable_impression",cn())},a.overlay_viewable_immediate_impression=function(b){return no(b,"overlay_viewable_immediate_impression",cn())},a.overlay_unviewable_impression=function(b){return no(b, "overlay_unviewable_impression",cn())},a.overlay_viewable_end_of_session_impression=function(b){return no(b,"overlay_viewable_end_of_session_impression",cn())},a); bm().u=3;Lha(this);this.B=!1}; Zo=function(a,b,c,d){b=a.Wx(null,d,!0,b);b.C=c;cha([b],a.B);return b}; Mha=function(a,b,c){vea(b);var d=a.j;g.wc(b,function(e){var f=g.Pl(e.criteria,function(k){var l=zha(k);if(null==l)k=null;else if(k=new wha,null!=l.visible&&(k.j=l.visible/100),null!=l.audible&&(k.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=lb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.B=l,k.C=-1):(k.B=-1,k.C=l);k.D=void 0===m?"tos":m}return k}); $m(f,function(k){return null==k})||Hga(c,new Ko(e.id,e.event,f,d))})}; Nha=function(){var a=[],b=bm();a.push(Sl(Ao));yl(b.featureSet,"mvp_lv")&&a.push(Sl(Wo));b=[new To,new Vo];b.push(new uo(a));b.push(new zo(El));return b}; Oha=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=tm(),c=bm(),d=an();um=b;c.B=79463069;"o"!==a.u&&(rha=Nea(El));if(Zea()){Co.j.RK=0;Co.j.LF=tm()-b;var e=Nha(),f=Sl(to);f.u=e;eha(f,function(){$o()})?Co.done||(oha(),fn(f.j.j,a),Do()):d.B?$o():Do()}else ap=!0}catch(k){throw ro.reset(),k; }}}; cp=function(a){Co.u.cancel();bp=a;Co.done=!0}; dp=function(a){if(a.u)return a.u;var b=Sl(to).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}; ep=function(a,b,c){if(null==a.j)return b.Ou|=4,!1;a=Pha(a.j,c,b);b.Ou|=a;return 0==a}; $o=function(){var a=[new zo(El)],b=Sl(to);b.u=a;eha(b,function(){cp("i")})?Co.done||(oha(),Do()):cp("i")}; Qha=function(a,b){if(!a.jb){var c=no(a,"start",cn());c=a.gH.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="922";null!==Go&&(d.v=Go);mj(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)}); b=sha();mj(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//pagead2.googlesyndication.com/pagead/gen_204?"+mn(ln(new kn,d));cga(b);a.jb=!0}}; fp=function(a,b,c){Eo(Co,[a],!cn());Lga(a,c);4!=c&&Kga(a.va,c,a.sA);return no(a,b,cn())}; Lha=function(a){qha(function(){var b=Rha();null!=a.u&&(b.sdk=a.u);var c=Sl(to);null!=c.j&&(b.avms=c.j.getName());return b})}; Sha=function(a,b,c,d){if(a.B)var e=qo(ro,b);else e=Zga(ro,c),null!==e&&e.Uf!==b&&(a.jw(e),e=null);e||(b=a.Wx(c,tm(),!1,b),0==ro.u.length&&(bm().B=79463069),dha([b]),e=b,e.C=dp(a),d&&(e.Sa=d));return e}; Tha=function(a){g.wc(ro.j,function(b){3==b.Jg&&a.jw(b)})}; Uha=function(a,b){var c=a[b];void 0!==c&&0document.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)}; Hia=function(a){if(!a)return nh;var b=document.createElement("div").style;Dia(a).forEach(function(c){var d=g.Gf&&c in Eia?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");kb(d,"--")||kb(d,"var")||(c=Cia(Fia,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Aia(c),null!=c&&Cia(Gia,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return oba(g.Pg("Output of CSS sanitizer"),b.cssText||"")}; Dia=function(a){g.Qa(a)?a=g.kc(a):(a=g.Wf(a),g.hc(a,"cssText"));return a}; g.Rp=function(a){var b,c=b=0,d=!1;a=a.split(Iia);for(var e=0;eg.Xa()}; g.aq=function(a){this.j=a}; Sia=function(){}; bq=function(){}; cq=function(a){this.j=a}; dq=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}; Tia=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}; fq=function(a,b){this.u=a;this.j=null;if(g.Nc&&!g.Gc(9)){eq||(eq=new g.Jp);this.j=eq.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)),eq.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}}; gq=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Uia[b]})}; hq=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}}; iq=function(a,b){this.u=a;this.j=b+"::"}; g.jq=function(a){var b=new dq;return b.isAvailable()?a?new iq(b,a):b:null}; kq=function(a,b){this.j=a;this.Vc=b}; lq=function(a){this.j=[];if(a)a:{if(a instanceof lq){var b=a.wm();a=a.Ki();if(0>=this.j.length){for(var c=this.j,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}; mq=function(){lq.call(this)}; nq=function(){}; Wia=function(){var a=g.Da.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.Da.apply(0,arguments))))}})}; Xia=function(){var a=g.Da.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} c=b(c,d);var f={getState:c.getState,dispatch:function(k){return e.apply(null,[k].concat(g.u(g.Da.apply(1,arguments))))}}; d=a.map(function(k){return k(f)}); e=Wia.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}}; oq=function(){return Math.random().toString(36).substring(7).split("").join(".")}; Yia=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:pq}))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"+oq()}))throw Error('Reducer "'+ b+"\" returned undefined when probed with a random type. Don't try to handle "+(pq+' 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.'));})}; Zia=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m} function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(w);return function(){if(x){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}} function k(w){if("object"!==typeof w||null===w)var x=!1;else{for(x=w;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(w)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}x=n=p;for(var y=0;ym.status,t=500<=m.status&&600>m.status;if(n||q||t)p=aka(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); if(b.onTimeout&&0=m||403===zr(p.xhr))return wi(new Ir("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0=f)tna(a,m,w,k,x,b.join(),e),l=x;z.Za(2);break;case 3:return z.return(Promise.reject(l))}})}; tna=function(a,b,c,d,e,f,k){b=c-b;e?(e instanceof g.Os&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Is("QUOTA_EXCEEDED",{dbName:Ns(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:k.mode}),e instanceof g.Os&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Is("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),una(a,!1,d,f,b,k.tag),Hs(e)):una(a,!0,d, f,b,k.tag)}; una=function(a,b,c,d,e,f){Is("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; $s=function(a){this.j=a}; g.ft=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; vna=function(a,b){return g.gt(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; g.xna=function(a,b,c){return"getAll"in IDBObjectStore.prototype?g.Xs(a.j.getAll(b,c)):wna(a,b,c)}; wna=function(a,b,c){var d=[];return g.gt(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; zna=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.Xs(a.j.getAllKeys(void 0,void 0)):yna(a)}; yna=function(a){var b=[];return g.Ana(a,{query:void 0},function(c){b.push(c.uA());return c.continue()}).then(function(){return b})}; g.dt=function(a,b,c){return g.Xs(a.j.put(b,c))}; g.gt=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return ht(a).then(function(d){return Ys(d,c)})}; g.Ana=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 Zs(a).then(function(e){return Ys(e,c)})}; et=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.Os;for(var f=b.j.objectStoreNames,k=[],l=0;l=z},y); y.done.catch(function(z){e(z)})}catch(z){e(z)}}); k.addEventListener("success",function(){var w=k.result;m&&w.addEventListener("versionchange",function(){m(f())}); w.addEventListener("close",function(){Is("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ns(a),dbVersion:w.version});n&&n()}); d(f())}); k.addEventListener("error",function(){e(k.error)}); l&&k.addEventListener("blocked",function(){l()})})}; Ena=function(a,b,c){c=void 0===c?{}:c;return Dna(a,b,c)}; kt=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.B(function(k){if(1==k.j)return g.va(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.A(k,ona(c),4); if(2!=k.j)return g.wa(k,0);f=g.xa(k);throw Ss(f,a,"",-1);})}; Fna=function(a){return new Promise(function(b){Ama(function(){b()},a)})}; lt=function(a,b){this.name=a;this.options=b;this.C=!0;this.J=this.D=0;this.u=500}; Gna=function(a,b){return new g.Os("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.mt=function(a,b){if(!b)throw g.Ts("openWithToken",Ns(a.name));return a.open()}; Hna=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,g.mt(nt,b),2);c=d.u;return d.return(g.ct(c,["databases"],{Kc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(k){if(k?a.actualName!==k.actualName||a.publicName!==k.publicName||a.userIdentifier!==k.userIdentifier:1)return g.dt(f,a).then(function(){})})}))})}; ot=function(a,b){var c;return g.B(function(d){if(1==d.j)return a?g.A(d,g.mt(nt,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})}; Ina=function(a,b){var c,d;return g.B(function(e){return 1==e.j?(c=[],g.A(e,g.mt(nt,b),2)):3!=e.j?(d=e.u,g.A(e,g.ct(d,["databases"],{Kc:!0,mode:"readonly"},function(f){c.length=0;return g.gt(f.objectStore("databases"),{},function(k){a(k.getValue())&&c.push(k.getValue());return k.continue()})}),3)):e.return(c)})}; Jna=function(a){return Ina(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)}; Kna=function(){var a,b,c,d;return g.B(function(e){switch(e.j){case 1:a=As();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(gs&&ds()&&!es()||g.pt)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.A(e,Hna(d,qt),4);case 4:return g.A(e,ot("yt-idb-test-do-not-use",qt),5);case 5:return e.return(!0);case 2:return g.xa(e),e.return(!1)}})}; Lna=function(){if(void 0!==rt)return rt;Gs=!0;return rt=Kna().then(function(a){Gs=!1;var b;if(null!=(b=zs())&&b.j){var c;b={hasSucceededOnce:(null==(c=As())?void 0:c.hasSucceededOnce)||a};var d;null==(d=zs())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; tt=function(){return g.La("ytglobal.idbToken_")||void 0}; g.ut=function(){var a=tt();return a?Promise.resolve(a):Lna().then(function(b){(b=b?qt:void 0)&&g.Ka("ytglobal.idbToken_",b,void 0);return b})}; Mna=function(a){if(!g.Ls())throw a=new g.Os("AUTH_INVALID",{dbName:a}),Hs(a),a;var b=g.Ks();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; Nna=function(a,b,c,d){var e,f,k,l,m,n;return g.B(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.A(p,g.ut(),2);case 2:k=p.u;if(!k)throw l=g.Ts("openDbImpl",a,b),g.Q("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Hs(l),l;Ms(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Mna(a);g.va(p,3);return g.A(p,Hna(m,k),5);case 5:return g.A(p,Ena(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.xa(p),g.va(p,7),g.A(p,ot(m.actualName, k),9);case 9:g.wa(p,8);break;case 7:g.xa(p);case 8:throw n;}})}; Ona=function(a,b,c){c=void 0===c?{}:c;return Nna(a,b,!1,c)}; Pna=function(a,b,c){c=void 0===c?{}:c;return Nna(a,b,!0,c)}; Qna=function(a,b){b=void 0===b?{}:b;var c,d;return g.B(function(e){if(1==e.j)return g.A(e,g.ut(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Ms(a);d=Mna(a);return g.A(e,kt(d.actualName,b),3)}return g.A(e,ot(d.actualName,c),0)})}; Rna=function(a,b,c){a=a.map(function(d){return g.B(function(e){return 1==e.j?g.A(e,kt(d.actualName,b),2):g.A(e,ot(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; Sna=function(){var a=void 0===a?{}:a;var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.ut(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Ms("LogsDatabaseV2");return g.A(d,Jna(b),3)}c=d.u;return g.A(d,Rna(c,a,b),0)})}; Tna=function(a,b){b=void 0===b?{}:b;var c;return g.B(function(d){if(1==d.j)return g.A(d,g.ut(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Ms(a);return g.A(d,kt(a,b),3)}return g.A(d,ot(a,c),0)})}; vt=function(a){this.Ae=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){}; this.zt=function(){}; this.now=Date.now;this.lw=!1;var b;this.bQ=null!=(b=a.bQ)?b:100;var c;this.BP=null!=(c=a.BP)?c:1;var d;this.uP=null!=(d=a.uP)?d:2592E6;var e;this.lP=null!=(e=a.lP)?e:12E4;var f;this.AP=null!=(f=a.AP)?f:5E3;var k;this.hd=null!=(k=a.hd)?k:void 0;this.Uz=!!a.Uz;var l;this.Jz=null!=(l=a.Jz)?l:.1;var m;this.IB=null!=(m=a.IB)?m:10;a.handleError&&(this.handleError=a.handleError);a.zt&&(this.zt=a.zt);a.lw&&(this.lw=a.lw);this.ob=a.ob;this.Pj=a.Pj;this.uf=a.uf;this.jf=a.jf;this.Zm=a.Zm;this.cH=a.cH;this.xG= a.xG;this.hd&&(!this.ob||this.ob("networkless_logging"))&&Una(this)}; Una=function(a){a.hd&&!a.lw&&(a.Ae=!0,a.Uz&&Math.random()<=a.Jz&&a.uf.JT(a.hd),Vna(a),a.jf.Ne()&&a.Cy(),a.jf.Pa(a.cH,a.Cy.bind(a)),a.jf.Pa(a.xG,a.kL.bind(a)))}; wt=function(a,b){var c,d;return g.B(function(e){switch(e.j){case 1:if(!a.hd)throw c=g.Ts("immediateSend"),c;if(void 0===b.id){e.Za(2);break}return g.A(e,a.uf.FV(b.id,a.hd),3);case 3:(d=e.u)?b=d:a.zt(Error("The request cannot be found in the database."));case 2:if(Wna(a,b,a.uP)){e.Za(4);break}a.zt(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Za(5);break}return g.A(e,a.uf.Rs(b.id,a.hd),5);case 5:return e.return();case 4:b.skipRetry||(b=Xna(a,b));if(!b){e.Za(0); break}if(!b.skipRetry||void 0===b.id){e.Za(8);break}return g.A(e,a.uf.Rs(b.id,a.hd),8);case 8:a.Zm(b.url,b.options,!!b.skipRetry),g.ua(e)}})}; Xna=function(a,b){if(!a.hd)throw g.Ts("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:k=Yna(f);if(!(a.ob&&a.ob("nwl_consider_error_code")&&k||a.ob&&!a.ob("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.IB)){n.Za(2);break}if(!a.jf.cn){n.Za(3);break}return g.A(n,a.jf.cn(),3);case 3:if(a.jf.Ne()){n.Za(2);break}c(e,f);if(!a.ob||!a.ob("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Za(6);break}return g.A(n,a.uf.BH(b.id,a.hd,!1),6);case 6:return n.return();case 2:if(a.ob&&a.ob("nwl_consider_error_code")&& !k&&a.potentialEsfErrorCounter>a.IB)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Za(8);break}return b.sendCount=c?!1:!0}; Vna=function(a){if(!a.hd)throw g.Ts("retryQueuedRequests");a.uf.nM("QUEUED",a.hd).then(function(b){b&&!Wna(a,b,a.lP)?a.Pj.dg(function(){return g.B(function(c){if(1==c.j)return void 0===b.id?c.Za(2):g.A(c,a.uf.BH(b.id,a.hd),2);Vna(a);g.ua(c)})}):a.jf.Ne()&&a.Cy()})}; xt=function(a,b){a.GQ&&!a.jf.Ne()?a.GQ(b):a.handleError(b)}; Yna=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0}; zt=function(a,b){this.version=a;this.args=b}; At=function(a,b){this.topic=a;this.j=b}; Ct=function(a,b){var c=Bt();c&&c.publish.call(c,a.toString(),a,b)}; $na=function(a,b,c){var d=Bt();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.La("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Dt[e])try{if(k&&a instanceof At&&a!=f)try{var m=a.j,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.zp){var p=new m;m.zp=p.version}var q=m.zp}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m, g.kc(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,k)}catch(t){g.hr(t)}},Zna[a.toString()]?g.Xr()?g.rp.dg(l):g.Br(l,0):l())}); Dt[e]=!0;Et[a.toString()]||(Et[a.toString()]=[]);Et[a.toString()].push(e);return e}; Gt=function(a,b,c){var d=$na(a,function(e){b.apply(c,arguments);Ft(d)},c); return d}; Ft=function(a){var b=Bt();b&&("number"===typeof a&&(a=[a]),g.wc(a,function(c){b.unsubscribeByKey(c);delete Dt[c]}))}; Bt=function(){return g.La("ytPubsub2Pubsub2Instance")}; Ht=function(a,b){lt.call(this,a,b);this.options=b;Ms(a)}; aoa=function(a,b){var c;return function(){c||(c=new Ht(a,b));return c}}; g.It=function(a,b){return aoa(a,b)}; boa=function(){if(Jt)return Jt();var a={};Jt=g.It("LogsDatabaseV2",{Nq:(a.LogsRequestsStore={Gn:2},a),oy:!1,upgrade:function(b,c,d){c(2)&&g.at(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.ft(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&bt(b,"sapisid");c(9)&&bt(b,"SWHealthLog")}, version:9});return Jt()}; Kt=function(a){return g.mt(boa(),a)}; Lt=function(a,b){var c,d,e,f;return g.B(function(k){if(1==k.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(k,Kt(b),2);if(3!=k.j)return d=k.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(k,rna(d,e),3);f=k.u;c.m_=(0,g.R)();coa(c);return k.return(f)})}; doa=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){if(1==n.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(n,Kt(b),2);if(3!=n.j)return d=n.u,e=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],k=[a,e,(0,g.R)()],l=IDBKeyRange.bound(f,k),m=void 0,g.A(n,g.ct(d,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(p){return g.jt(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.m_=(0,g.R)();coa(c);return n.return(m)})}; eoa=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Kt(b),2);c=d.u;return d.return(g.ct(c,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(k){if(k)return k.status="QUEUED",g.dt(f,k).then(function(){return k})})}))})}; Mt=function(a,b,c){c=void 0===c?!0:c;var d;return g.B(function(e){if(1==e.j)return g.A(e,Kt(b),2);d=e.u;return e.return(g.ct(d,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(f){var k=f.objectStore("LogsRequestsStore");return k.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.dt(k,l).then(function(){return l})):g.Vs.resolve(void 0)})}))})}; Nt=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Kt(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})}; foa=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,Kt(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.ct(b,["LogsRequestsStore"],{mode:"readwrite",Kc:!0},function(e){return g.gt(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; goa=function(){g.B(function(a){return g.A(a,Sna(),0)})}; coa=function(a){g.Q("nwl_csi_killswitch")||.01>=Math.random()&&Ct("nwl_transaction_latency_payload",a)}; ioa=function(a){return g.mt(hoa(),a)}; joa=function(a){var b,c;g.B(function(d){if(1==d.j)return g.A(d,ioa(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.ct(b,["SWHealthLog"],{mode:"readwrite",Kc:!0},function(e){return g.gt(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; koa=function(a){var b;return g.B(function(c){if(1==c.j)return g.A(c,ioa(a),2);b=c.u;return g.A(c,b.clear("SWHealthLog"),0)})}; g.Ot=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.as())a&&(a=g.Yg(g.bh(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.rh(th(a)).toString(),a=g.Hh(g.Si(a))),g.nb(a)||(a=Zh("IFRAME",{src:'javascript:""',style:"display:none"}),Oh(a).body.appendChild(a)));else if(e)Gr(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Gr(a,b,"GET","",d);else{b:{try{var f=new tea({url:a});if(f.B&&f.u||f.C){var k=Wi(g.Yi(5,a));var l=!(!k|| !k.endsWith("/aclk")||"1"!==tj(a,"ri"));break b}}catch(m){}l=!1}l?loa(a)?(b&&b(),c=!0):c=!1:c=!1;c||moa(a,b)}}; loa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; moa=function(a,b){var c=new Image,d=""+noa++;Pt[d]=c;c.onload=c.onerror=function(){b&&Pt[d]&&b();delete Pt[d]}; c.src=a}; Qt=function(){this.j=new Map;this.u=!1}; Rt=function(){if(!Qt.j){var a=g.La("yt.networkRequestMonitor.instance")||new Qt;g.Ka("yt.networkRequestMonitor.instance",a,void 0);Qt.j=a}return Qt.j}; Tt=function(){St||(St=new ys("yt.offline"));return St}; ooa=function(a){if(g.Q("offline_error_handling")){var b=Tt().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Tt().set("errors",b,2592E3,!0)}}; poa=function(){if(g.Q("offline_error_handling")){var a=Tt().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.Js(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.hr(c)}Tt().set("errors",{},2592E3,!0)}}}; Ut=function(){g.Bg.call(this);var a=this;this.N=0;this.J=this.C=!1;this.u=this.sF();g.Q("use_shared_nsm")?(this.j=nia(),g.Q("use_shared_nsm_and_keep_yt_online_updated")&&(this.j.Pa("networkstatus-online",function(){a.u=!0;a.J&&poa()}),this.j.Pa("networkstatus-offline",function(){a.u=!1}))):(qoa(this),roa(this))}; soa=function(){if(!Ut.j){var a=g.La("yt.networkStatusManager.instance")||new Ut;g.Ka("yt.networkStatusManager.instance",a,void 0);Ut.j=a}return Ut.j}; roa=function(a){window.addEventListener("online",function(){return g.B(function(b){if(1==b.j)return g.A(b,a.cn(),2);a.J&&poa();g.ua(b)})})}; qoa=function(a){window.addEventListener("offline",function(){return g.B(function(b){return g.A(b,a.cn(),0)})})}; toa=function(a){a.N=g.Ur(0,function(){return g.B(function(b){if(1==b.j)return a.u?a.sF()||!a.C?b.Za(3):g.A(b,a.cn(),3):g.A(b,a.cn(),3);toa(a);g.ua(b)})},uoa)}; g.Vt=function(a){a=void 0===a?{}:a;g.Bg.call(this);var b=this;this.u=this.K=0;this.C="ytnetworkstatus-offline";this.D="ytnetworkstatus-online";g.Q("use_shared_nsm")&&(this.C="networkstatus-offline",this.D="networkstatus-online");this.j=soa();var c=g.La("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.NL);a.yN&&(c=g.La("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=g.La("yt.networkStatusManager.instance.listen").bind(this.j))a.OB?(this.OB= a.OB,c(this.D,function(){voa(b,"publicytnetworkstatus-online")}),c(this.C,function(){voa(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online")}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))}; voa=function(a,b){a.OB?a.u?(g.rp.Ei(a.K),a.K=g.rp.dg(function(){a.J!==b&&(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)())},a.OB-((0,g.R)()-a.u))):(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)()):a.dispatchEvent(b)}; Wt=function(){vt.call(this,{uf:{JT:foa,Rs:Nt,nM:doa,FV:eoa,BH:Mt,set:Lt},jf:woa(),handleError:g.hr,zt:jr,Zm:xoa,now:g.R,GQ:ooa,Pj:g.Wr(),cH:"publicytnetworkstatus-online",xG:"publicytnetworkstatus-offline",Uz:!0,Jz:.1,IB:g.dr("potential_esf_error_limit",10),ob:g.Q,lw:!(g.Ls()&&(g.Q("embeds_web_nwl_disable_nocookie")?"www.youtube-nocookie.com"!==g.lj(document.location.toString()):1))});this.u=new g.Rj;g.Q("networkless_immediately_drop_all_requests")&&goa();Tna("LogsDatabaseV2")}; Xt=function(){var a=g.La("yt.networklessRequestController.instance");a||(a=new Wt,g.Ka("yt.networklessRequestController.instance",a,void 0),g.Q("networkless_logging")&&g.ut().then(function(b){a.hd=b;Una(a);a.u.resolve();a.Uz&&Math.random()<=a.Jz&&a.hd&&joa(a.hd);g.Q("networkless_immediately_drop_sw_health_store")&&yoa(a)})); return a}; yoa=function(a){var b;g.B(function(c){if(!a.hd)throw b=g.Ts("clearSWHealthLogsDb"),b;return c.return(koa(a.hd).catch(function(d){a.handleError(d)}))})}; xoa=function(a,b,c){g.Q("use_cfr_monitor")&&zoa(a,b);var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.R)());c&&0===Object.keys(b).length?g.Ot(a):g.Hr(a,b)}; woa=function(){Yt||(Yt=new g.Vt({yN:!0,NL:!0}));return Yt}; zoa=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Rt().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Rt().requestComplete(a,!0);d(e,f)}}; Aoa=function(a,b){function c(d){var e=Zt().Ne();if(!$t()||!d||e&&g.Q("vss_networkless_bypass_write"))au(a,b);else{var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};Lt(f,d).then(function(k){f.id=k;Zt().Ne()&&bu(f)}).catch(function(k){bu(f); cu(k)})}} b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.ut().then(function(d){c(d)}):c(tt())}; du=function(a,b,c){function d(e){if($t()&&e){var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};g.Q("nwl_skip_retry")&&(f.skipRetry=c);if(Zt().Ne()||g.Q("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var k=b.onError?b.onError:function(){}; b.onError=function(l,m){return g.B(function(n){if(1==n.j)return g.A(n,Lt(f,e).catch(function(p){cu(p)}),2); k(l,m);g.ua(n)})}}au(a,b,f.skipRetry)}else Lt(f,e).catch(function(l){au(a,b,g.Q("nwl_skip_retry")&&c); cu(l)})}else au(a,b,g.Q("nwl_skip_retry")&&c)} b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.ut().then(function(e){d(e)}):d(tt())}; eu=function(a,b){function c(d){if($t()&&d){var e={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0},f=!1,k=b.onSuccess?b.onSuccess:function(){}; e.options.onSuccess=function(m,n){g.Q("use_cfr_monitor")&&Rt().requestComplete(e.url,!0);void 0!==e.id?Nt(e.id,d):f=!0;g.Q("vss_network_hint")&&Zt().Pm(!0);k(m,n)}; if(g.Q("use_cfr_monitor")){var l=b.onError?b.onError:function(){}; e.options.onError=function(m,n){Rt().requestComplete(e.url,!1);l(m,n)}}au(e.url,e.options); Lt(e,d).then(function(m){e.id=m;f&&Nt(e.id,d)}).catch(function(m){cu(m)})}else au(a,b)} b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.ut().then(function(d){c(d)}):c(tt())}; Boa=function(){var a=tt();if(!a)throw g.Ts("throttleSend");fu||(fu=g.rp.dg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,doa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.A(c,bu(b),3):(g.rp.Ei(fu),fu=0,c.return());fu&&(fu=0,Boa());g.ua(c)})},100))}; bu=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:b=tt();if(!b)throw c=g.Ts("immediateSend"),c;if(void 0===a.id){e.Za(2);break}return g.A(e,eoa(a.id,b),3);case 3:(d=e.u)?a=d:jr(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.R)()-f)){e.Za(4);break}jr(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Za(5);break}return g.A(e,Nt(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=Coa(a)); f=a;var k,l;if(null==f?0:null==(k=f.options)?0:null==(l=k.postParams)?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.R)());a=f;if(!a){e.Za(0);break}if(!a.skipRetry||void 0===a.id){e.Za(8);break}return g.A(e,Nt(a.id,b),8);case 8:au(a.url,a.options,!!a.skipRetry),g.ua(e)}})}; Coa=function(a){var b=tt();if(!b)throw g.Ts("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){}; a.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:g.Q("use_cfr_monitor")&&Rt().requestComplete(a.url,!1);k=Yna(f);if(!(g.Q("nwl_consider_error_code")&&k||!g.Q("nwl_consider_error_code")&&Doa()<=g.dr("potential_esf_error_limit",10))){n.Za(2);break}if(g.Q("skip_checking_network_on_cfr_failure")&&(!g.Q("skip_checking_network_on_cfr_failure")||Rt().isEndpointCFR(a.url))){n.Za(3);break}return g.A(n,Zt().cn(),3);case 3:if(Zt().Ne()){n.Za(2);break}c(e,f);if(!g.Q("nwl_consider_error_code")|| void 0===(null==(l=a)?void 0:l.id)){n.Za(6);break}return g.A(n,Mt(a.id,b,!1),6);case 6:return n.return();case 2:if(g.Q("nwl_consider_error_code")&&!k&&Doa()>g.dr("potential_esf_error_limit",10))return n.return();g.La("ytNetworklessLoggingInitializationOptions")&&gu.potentialEsfErrorCounter++;hu++;if(void 0===(null==(m=a)?void 0:m.id)){n.Za(8);break}return 1>a.sendCount?g.A(n,Mt(a.id,b),12):g.A(n,Nt(a.id,b),8);case 12:g.rp.dg(function(){Zt().Ne()&&Boa()},5E3); case 8:c(e,f),g.ua(n)}})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return g.Q("use_cfr_monitor")&&Rt().requestComplete(a.url,!0),void 0===(null==(k=a)?void 0:k.id)?l.Za(2):g.A(l,Nt(a.id,b),2);g.Q("vss_network_hint")&&Zt().Pm(!0);d(e,f);g.ua(l)})}; return a}; Zt=function(){if(g.Q("use_new_nwl"))return woa();iu||(iu=new g.Vt({yN:!0,NL:!0}));return iu}; cu=function(a){Zt().Ne()?g.hr(a):ooa(a)}; au=function(a,b,c){c&&0===Object.keys(b).length?g.Ot(a):g.Hr(a,b)}; $t=function(){return g.La("ytNetworklessLoggingInitializationOptions")?gu.isNwlInitialized:!1}; Doa=function(){return g.La("ytNetworklessLoggingInitializationOptions")?gu.potentialEsfErrorCounter:hu}; g.ju=function(a){this.config_=null;a?this.config_=a:Vma()&&(this.config_=g.ws())}; g.ku=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.RN.bypassNetworkless?(f.method="POST",d.RN.writeThenSend?g.Q("use_new_nwl_wts")?Xt().writeThenSend(n,f):Aoa(n,f):g.Q("use_new_nwl_saw")?Xt().sendAndWrite(n,f):eu(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Hr(n,f))}catch(q){if("InvalidAccessError"==q.name)jr(Error("An extension is blocking network request."));else throw q;}} !g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&jr(new g.Js("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Js("innertube xhrclient not ready",b,c,d),g.hr(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, onError:function(p,q){if(d.onError)d.onError(q)}, onFetchError:function(p){if(d.onError)d.onError(p)}, timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var k=a.config_.SM;k&&(c=k);k=dna(a.config_.UM||!1,c,d);Object.assign(f.headers,k);(k=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.PF&&k;m=m&&k.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=pr(""+c+b,l);g.Q("use_new_nwl")&&Xt().Ae||!g.Q("use_new_nwl")&& $t()?Lna().then(function(p){e(p)}):e(!1)}; Eoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=lu+"VisibilityState";if(b in a)return a[b]}; mu=function(a,b){var c;$m(a,function(d){c=b[d];return!!c}); return c}; nu=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 Foa||(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){}}; Goa=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}}; Hoa=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 Zf(ou,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Ra(e[4])&&g.Ra(d)&&g.eg(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})}; g.pu=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Hoa(a,b,c,d);if(e)return e;e=++Ioa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new nu(l);if(!ii(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new nu(l); l.currentTarget=a;return c.call(a,l)}; k=ir(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Joa()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);ou[e]=[a,b,c,k,d];return e}; Koa=function(a,b){var c=document.body||document;return g.pu(c,"click",function(d){var e=ii(d.target,function(f){return f===c||b(f)},!0); e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; g.qu=function(a){a&&("string"==typeof a&&(a=[a]),g.wc(a,function(b){if(b in ou){var c=ou[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Joa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete ou[b]}}))}; g.ru=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}; tu=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.ru(a)}; uu=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}; vu=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.Ch(b,c)}; g.wu=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}; g.xu=function(a){a=a||window.event;return!1===a.returnValue||a.ZM&&a.ZM()}; g.yu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which}; Loa=function(a){return Koa(a,function(b){return g.Bp(b,"ytp-ad-has-logging-urls")})}; g.Moa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.pu(a,b,function(){g.qu(e);c.apply(a,arguments)},d)}; zu=function(a){for(var b in ou)ou[b][0]==a&&g.qu(b)}; Au=function(a){this.K=a;this.j=null;this.C=0;this.J=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.ma=g.pu(window,"mousemove",(0,g.Ua)(this.X,this));this.N=g.Cr((0,g.Ua)(this.Z,this),25)}; Noa=function(){var a={},b=void 0===a.mZ?!1:a.mZ;a=void 0===a.iU?!0:a.iU;if(null==g.La("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ka("_lact",c,window);g.Ka("_fact",c,window);-1==c&&Bu();g.pu(document,"keydown",Bu);g.pu(document,"keyup",Bu);g.pu(document,"mousedown",Bu);g.pu(document,"mouseup",Bu);b?g.pu(window,"touchmove",function(){Cu("touchmove",200)},{passive:!0}):(g.pu(window,"resize",function(){Cu("resize",200)}),a&&g.pu(window,"scroll",function(){Cu("scroll", 200)})); new Au(function(){Cu("mouse",100)}); g.pu(document,"touchstart",Bu,{passive:!0});g.pu(document,"touchend",Bu,{passive:!0})}}; Cu=function(a,b){Du[a]||(Du[a]=!0,g.rp.dg(function(){Bu();Du[a]=!1},b))}; Bu=function(){null==g.La("_lact",window)&&(Noa(),g.La("_lact",window));var a=Date.now();g.Ka("_lact",a,window);-1==g.La("_fact",window)&&g.Ka("_fact",a,window);(a=g.La("ytglobal.ytUtilActivityCallback_"))&&a()}; Eu=function(){var a=g.La("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b}; g.Ju=function(a,b,c){var d=g.Fu();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var k=function(){Gu[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; try{g.Hu[a]?k():g.Br(k,0)}catch(l){g.hr(l)}},c); Gu[e]=!0;Iu[a]||(Iu[a]=[]);Iu[a].push(e);return e}return 0}; g.Ku=function(a){var b=g.Fu();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.wc(a,function(c){b.unsubscribeByKey(c);delete Gu[c]}))}; g.Lu=function(a,b){var c=g.Fu();return c?c.publish.apply(c,arguments):!1}; Poa=function(a){var b=g.Fu();if(b)if(b.clear(a),a)Ooa(a);else for(var c in Iu)Ooa(c)}; g.Fu=function(){return g.C.ytPubsubPubsubInstance}; Ooa=function(a){Iu[a]&&(a=Iu[a],g.wc(a,function(b){Gu[b]&&delete Gu[b]}),a.length=0)}; Qoa=function(){this.B=this.j=this.u=0}; Soa=function(a,b){if("log_event"===a.endpoint){var c=Mu(a),d=Nu.get(c)||[];Nu.set(c,d);d.push(a.payload);Roa(b,d,c)}}; Toa=function(a,b){if("log_event"===a.endpoint){var c=Mu(a,!0),d=Ou.get(c)||[];Ou.set(c,d);a=He(a.payload);d.push(a);Roa(b,d,c,!0)}}; Roa=function(a,b,c,d){d=void 0===d?!1:d;a&&(Pu=new a);a=g.dr("tvhtml5_logging_max_batch")||g.dr("web_logging_max_batch")||100;var e=(0,g.R)(),f=d?Qu.B:Ru.B;b.length>=a?Su({writeThenSend:!0},g.Q("flush_only_full_queue")?c:void 0,d):10<=e-f&&(Uoa(d),d?Qu.B=e:Ru.B=e)}; Voa=function(a,b){if("log_event"===a.endpoint){var c=Mu(a),d=new Map;d.set(c,[a.payload]);b&&(Pu=new b);return new g.ti(function(e){Pu&&Pu.isReady()?Tu(d,e,{bypassNetworkless:!0},!0):e()})}}; Woa=function(a,b){if("log_event"===a.endpoint){var c=Mu(a,!0),d=new Map;d.set(c,[He(a.payload)]);b&&(Pu=new b);return new g.ti(function(e){Pu&&Pu.isReady()?Uu(d,e,{bypassNetworkless:!0},!0):e()})}}; Mu=function(a,b){var c="";if(a.hw)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Tq;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.ue(d,2,Vu,c.playlistId);Wu[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Xu[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; Su=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.ti(function(d){c?(g.Dr(Qu.u),g.Dr(Qu.j),Qu.j=0):(g.Dr(Ru.u),g.Dr(Ru.j),Ru.j=0);if(Pu&&Pu.isReady())if(void 0!==b)if(c){var e=new Map,f=Ou.get(b)||[];e.set(b,f);Uu(e,d,a);Ou.delete(b)}else e=new Map,f=Nu.get(b)||[],e.set(b,f),Tu(e,d,a),Nu.delete(b);else c?(Uu(Ou,d,a),Ou.clear()):(Tu(Nu,d,a),Nu.clear());else Uoa(c),d()})}; Uoa=function(a){a=void 0===a?!1:a;if(g.Q("web_gel_timeout_cap")&&(!a&&!Ru.j||a&&!Qu.j)){var b=g.Br(function(){Su({writeThenSend:!0},void 0,a)},6E4); a?Qu.j=b:Ru.j=b}g.Dr(a?Qu.u:Ru.u);b=g.P("LOGGING_BATCH_TIMEOUT",g.dr("web_gel_debounce_ms",1E4));g.Q("shorten_initial_gel_batch_timeout")&&Yu&&(b=Xoa);b=g.Br(function(){Su({writeThenSend:!0},void 0,a)},b); a?Qu.u=b:Ru.u=b}; Tu=function(a,b,c,d){var e=Pu;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=g.gg({context:g.xs(e.config_||g.ws())});m.events=n;(n=Xu[l])&&Yoa(m,l,n);delete Xu[l];l="visitorOnlyApprovedKey"===l;Zoa(m,f,l);$oa(c);g.ku(e,"log_event",m,apa(c,l,function(){k--;k||b()},function(){k--; k||b()},d)); Yu=!1}}; Uu=function(a,b,c,d){var e=Pu;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=new Uq;var p=ana(e.config_||g.ws());ye(m,1,p);n=bpa(n);for(p=0;pfpa&&(a=1);$q("BATCH_CLIENT_COUNTER",a);return a}; Yoa=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}]}; cpa=function(a,b,c){if(c.Gg())var d=1;else if(c.getPlaylistId())d=2;else return;ye(a,4,c);a=a.getContext()||new Cq;c=we(a,Bq,3)||new Bq;var e=new Aq;e.setToken(b);g.D(e,1,d);Ce(c,12,Aq,e);ye(a,3,c)}; bpa=function(a){for(var b=[],c=0;c>3;switch(e&7){case 0:e=Pv(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Pv(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)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}; Npa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;df&&(c=a.substring(f,e),c=c.replace(gqa,""),c=c.replace(hqa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else iqa(a,b,c)}; iqa=function(a,b,c){c=void 0===c?null:c;var d=jqa(a),e=document.getElementById(d),f=e&&npa(e),k=e&&!f;f?b&&b():(b&&(f=g.Ju(d,b),b=""+g.Ta(b),kqa[b]=f),k||(e=lqa(a,d,function(){npa(e)||(mpa(e,"loaded","true"),g.Lu(d),g.Br(g.Wa(Poa,d),0))},c)))}; lqa=function(a,b,c,d){d=void 0===d?null:d;var e=g.$h("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);g.Vj(e,g.Op(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; jqa=function(a){var b=document.createElement("a");g.vh(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Lh(a)}; mw=function(a){var b=g.Da.apply(1,arguments);if(!kw(a)||b.some(function(e){return!kw(e)}))throw Error("Only objects may be merged."); var c=a;b=g.r(b);for(var d=b.next();!d.done;d=b.next())lw(c,d.value);return c}; lw=function(a,b){for(var c in b)if(kw(b[c])){if(c in a&&!kw(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});lw(a[c],b[c])}else if(nw(b[c])){if(c in a&&!nw(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);mqa(a[c],b[c])}else a[c]=b[c];return a}; mqa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,kw(c)?a.push(lw({},c)):nw(c)?a.push(mqa([],c)):a.push(c);return a}; kw=function(a){return"object"===typeof a&&!Array.isArray(a)}; nw=function(a){return"object"===typeof a&&Array.isArray(a)}; ow=function(a,b,c,d,e,f){g.G.call(this);this.j=a;this.u=c;this.B=d;this.D=e;this.C=f}; pqa=function(a,b,c){c.Fu?(pw(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),nqa(a.D,b)):oqa(a.C,c.Zl,b.slotId)}; rqa=function(a,b,c,d){var e=qw(a.B.get(),1);pw(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return qqa(a.u.get(),c,d,e.clientPlaybackNonce,e.xL,e.daiEnabled,e)},b)}; tw=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!rw(a.Fa,c.value))return!1;return!0}; uw=function(a,b){this.yp=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)}; tqa=function(a){sqa=void 0===a?!1:a}; T=function(a,b,c,d,e){d=void 0===d?{}:d;sqa&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Js(a);if(a.args)for(var f=g.r(a.args),k=f.next();!k.done;k=f.next())k=k.value,k instanceof Object&&(d=Object.assign({},k,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Sv(a)}}; vw=function(a,b,c,d,e,f,k){g.G.call(this);this.B=a;this.u=b;this.WD=c;this.La=d;this.C=e;this.j=f;this.Ha=k}; ww=function(){this.u=new Map;this.j=new Map;this.B=new Map}; xw=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.uv(16)}; yw=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.uv(16)}; zw=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.uv(16)}; Aw=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.Gu=f}; uqa=function(a,b,c,d){this.B=a;this.Jd=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d}; Bw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Sv(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a}; Cw=function(a,b){return b&&b.test(a)?!0:!1}; Dw=function(a){var b=vqa&&vqa.exec(a);return b?b[0]:g.Q("allow_music_base_url")&&(a=wqa&&wqa.exec(a))?a[0]:""}; yqa=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,xqa),a,b,"Nielsen OCR URL")}; Aqa=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,zqa),a,b,"Active View 3rd Party Integration URL")}; Cqa=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,Bqa),a,b,"Google/YouTube Brand Lift URL")}; Ew=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,Dqa),a,b,"Trusted Stream URL")}; g.Fw=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,Eqa),a,b,"Trusted Image URL")}; Gqa=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,Fqa),a,b,"Trusted Ad Domain URL")}; Iqa=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,Hqa),a,b,"Trusted Promoted Video Domain URL")}; Kqa=function(a){var b=void 0===b?!1:b;return Bw(Cw(a,Jqa),a,b,"Drm Licensor URL")}; Mqa=function(a,b){b=void 0===b?!1:b;return Bw(Cw(a,Lqa),a,b,"Captions URL")}; Nqa=function(a){a=new g.vk(a);g.wk(a,document.location.protocol);g.xk(a,document.location.hostname);document.location.port&&g.yk(a,document.location.port);return a.toString()}; Gw=function(a){a=new g.vk(a);g.wk(a,document.location.protocol);return a.toString()}; g.Iw=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Oqa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||Hw.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Ql(d.thumbnails,function(e){return g.Fw(e.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; Pqa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()}; Qqa=function(a,b){switch(a.style){case Hw.CHAPTER_MARKER:return b?8:5;case Hw.AD_MARKER:return 6;case Hw.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.Jw=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u}; g.Kw=function(a){return"crn_"+a}; g.Lw=function(a){return"crx_"+a}; Mw=function(a,b,c,d,e){g.Iw.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null}; Nw=function(a){return"AD_PLACEMENT_KIND_START"==a.j}; Rqa=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j}; Sqa=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Up(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Up(Math.max(0,b.B-b.j),0x7ffffffffffff):new Up(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 Up(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= b.Jd;a=1E3*d.startSecs;if(c){if(a1E5*Math.random()&&(c=new g.Js("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Sv(c)),!0):!1}; jx=function(a){Xqa(a);kra();a||(g.P("TIMING_ACTION")&&$q("PREVIOUS_ACTION",g.P("TIMING_ACTION")),$q("TIMING_ACTION",""))}; nx=function(a,b,c){b=void 0===b?{}:b;c=c?c:a;kx(c);dx(c);jx(c);Xw(c).useGel=!0;cx(c||"").info.actionType=a;b.cttAuthInfo&&(Xw(c).cttAuthInfo=b.cttAuthInfo);$q(c+"TIMING_ACTION",a);lx("_start",b.startTime,c);a={actionType:ex(a)};(b=g.Lv())&&"UNDEFINED_CSN"!==b&&(a.clientScreenNonce=b);mx(a,c);Ww(!0,c)}; g.ox=function(a,b,c,d){null!==b&&(Yw(c)[a]=b,(a=jra(a,b,c))&&mx(a,c,d))}; mx=function(a,b,c){if(!g.Q("web_csi_via_jspb")||(void 0===c?0:c))c=cx(b||""),mw(c.info,a),mw($w(b),a),c=ax(b),b=Xw(b).cttAuthInfo,gx().info(a,c,b);else{c=new Oq;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=Vw()&&0c.duration?d:c},{duration:0}))&&0Cma()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)}; Gx=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length}; g.Hx=function(a,b){this.id=a;this.Fc=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"}; Ix=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0}; g.Kx=function(a,b,c,d){return new Ix(g.Jx[a]||0,g.Jx[b]||0,c,d)}; Lx=function(a){var b=g.Jx.auto;return a.u===b&&a.j===b}; Nx=function(a){return Mx[a.j||a.u]||"auto"}; tra=function(a,b){b=g.Jx[b];return a.u<=b&&(!a.j||a.j>=b)}; Ox=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Fc&&!a.has(c.Fc.id)){var d=new g.Hx(c.id,c.Fc);a.add(c.Fc.id);this.audioTracks.push(d)}}}; xra=function(a,b,c,d,e){var f={},k=new Set,l={};if(Px(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(a=c.j[m],l[a.info.j]=[a.info]);return l}for(var n in c.j)if(c.j.hasOwnProperty(n)){m=c.j[n];var p=m.info.Yb(),q=Qx(a,m.info,b,c.isLive,k);!0!==q?f[p]=q:(l[m.info.j]=l[m.info.j]||[],l[m.info.j].push(m.info))}e&&(d(f),d({bfflt:Rx(l)}));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=ura(a,l[c]),l[c]=vra(l[c])));c=g.r(k.values());for(k=c.next();!k.done;k=c.next())(k=b.u.get(k.value))&& --k.zP;b=g.Nf(l,function(w){return!!w.length}); e&&d({aftflt:Rx(l)});a.ib=wra(b,a);return b}; Qx=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?new Set:e;if(""===b.j)return"unkn";if(("304"===b.Yb()||"266"===b.Yb())&&a.Wa)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.N&&b.video&&b.video.jm&&(q=d));"9"===q&&l.h&&(d=Xx(l["9"]),Xx(l.h)>1.5*d&&(q="h"));a.jb&&c.isLive&&"("===q&&l.H&&1440>Xx(l["("])&&(q="H");k&&e({vfmly:Ux(q)});a=l[q];if(!a.length)return k&&e({novfmly:Ux(q)}),Mr();Wx(a, b);return Nr(new Ox(a,b))}; Wx=function(a,b,c){c=void 0===c?[]:c;g.tc(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0b&&(a=g.In(a,function(c){return 32a.getLastSegmentNumber())a.segments=[];else{var c=$b(a.segments,function(d){return d.Ma>=b},a); 0c&&(c=a.totalLength-b);a.focus(b);if(!ly(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,k=d;k<=a.u;k++)e.set(a.j[k],f),f+=a.j[k].length;a.j.splice(d,a.u-d+1,e);ky(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)}; my=function(a,b,c){a=Qra(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; Rra=function(a){a=my(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce&&bf)sy[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;sy[e++]=55296|f>>10;f=56320|f&1023}sy[e++]=f}}f=String.fromCharCode.apply(String,sy); 1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")}; vy=function(a,b){var c;if(null==(c=uy)?0:c.encodeInto)return b=uy.encodeInto(a,b),b.reade?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1>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}; wy=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}; yy=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; zy=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; Ay=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; By=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; Cy=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}; Dy=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;ca.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(97>d||122=a.u.byteLength}; Yy=function(a,b,c){var d=new Sy(c);if(!Uy(d,a))return!1;d=Vy(d);if(!Wy(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.j;var e=Xy(d,!0);d=a+(d.start+d.j-b)+e;d=9b;b++)c=256*c+cz(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+cz(a),d*=128;return b?c-d:c}; $y=function(a){var b=Xy(a,!0);a.j+=b}; jsa=function(a){if(!Wy(a,440786851,!0))return null;var b=a.j;Xy(a,!1);var c=Xy(a,!0)+a.j-b;a.j=b+c;if(!Wy(a,408125543,!1))return null;Xy(a,!0);if(!Wy(a,357149030,!0))return null;var d=a.j;Xy(a,!1);var e=Xy(a,!0)+a.j-d;a.j=d+e;if(!Wy(a,374648427,!0))return null;var f=a.j;Xy(a,!1);var k=Xy(a,!0)+a.j-f,l=new Uint8Array(c+12+e+k),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer, a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,k),c+12+e);return l}; dz=function(a){var b=a.j;a.j=0;var c=1E6;Uy(a,[408125543,357149030,2807729])&&(c=Zy(a));a.j=b;return c}; ksa=function(a,b){var c=a.j;a.j=0;if(160!==a.u.getUint8(a.j)&&!ez(a)||!Wy(a,160))return a.j=c,NaN;Xy(a,!0);var d=a.j;if(!Wy(a,161))return a.j=c,NaN;Xy(a,!0);cz(a);var e=cz(a)<<8|cz(a);a.j=d;if(!Wy(a,155))return a.j=c,NaN;d=Zy(a);a.j=c;return(e+d)*b/1E9}; ez=function(a){if(!lsa(a)||!Wy(a,524531317))return!1;Xy(a,!0);return!0}; lsa=function(a){if(a.Yw()){if(!Wy(a,408125543))return!1;Xy(a,!0)}return!0}; Uy=function(a,b){for(var c=0;cb.Rf?1E3*Math.pow(b.hh,c-b.Rf):0;return 0===b?!0:a.K+b<(0,g.R)()}; lz=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.J=!1;this.C=null;this.N=0;this.D=this.B=null;this.info=b;this.u=new rsa(a)}; mz=function(a,b,c,d){var e=g.r(a.info.id.split(";")),f=e.next().value;e=e.next().value;return(d?(c||"")+";":"")+f+";"+(b?0:a.info.lastModified)+";"+(void 0===e?"":e)}; nz=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; oz=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new nz(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0=b.range.start+b.Ab&&a.range.start+a.Ab+a.u<=b.range.start+b.Ab+b.u:a.Ma===b.Ma&&a.Ab>=b.Ab&&(a.Ab+a.u<=b.Ab+b.u||b.Yd)}; Bsa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.df()?(a=a.j.pu(a),$m(a,function(c){return Bsa(c,b)})):a.Ma===b.Ma&&!!b.u&&b.Ab+b.u>a.Ab&&b.Ab+b.u<=a.Ab+a.u}; Csa=function(a,b){var c=b.j;a.D="updateWithEmsg";a.Ma=c;b.C&&(a.N=b.C)}; yz=function(a,b){var c=b.Ma;a.D="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,vsa(a)}; zz=function(a,b){this.j=a;this.B=null;this.D=this.Ye=NaN;this.J=this.requestId=null;this.u=a[0].j.u;this.C=b||"";this.range=this.j[0].range&&0=k)if(k=b.shift(),f=(f=l.exec(k))?+f[1]/1E3:0)k=(k=m.exec(k))?+k[1]:0,k+=1;else return;c.push(new fy(n,e,f,NaN,"sq/"+(n+1)));e+=f;k--}a.index.append(c)}}; Mz=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)}; Nz=function(a){a.offsets.lengthe)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.j+d,b&255),b>>>=8;c.j=a;b=!0}else b=!1;return b}; Rz=function(a,b){b=void 0===b?!1:b;var c=Ysa(a);a=b?0:a.info.J;return c||a}; Ysa=function(a){g.Qz(a.info.j.info)||a.info.j.info.Ce();if(a.u&&6===a.info.type)return a.u.lj;if(g.Qz(a.info.j.info)){var b=Pz(a);var c=0;b=g.Ry(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=bsa(d.value),c+=d.dI[0]/d.iI;c=c||NaN;if(!(0<=c))a:{c=Pz(a);b=a.info.j.j;for(var e=d=0,f=0;My(c,d);){var k=Ny(c,d);if(1836476516===k.type)e=g.Jy(k);else if(1836019558===k.type){!e&&b&&(e=Ky(b));if(!e){c=NaN;break a}var l=Ly(k.data,k.dataOffset,1953653094),m=e,n=Ly(l.data,l.dataOffset,1952868452); l=Ly(l.data,l.dataOffset,1953658222);var p=Ay(n);Ay(n);p&2&&Ay(n);n=p&8?Ay(n):0;var q=Ay(l),t=q&1;p=q&4;var w=q&256,x=q&512,y=q&1024;q&=2048;var z=By(l);t&&Ay(l);p&&Ay(l);for(var E=t=0;E=c+d)break}e.length||g.S(new g.Js("b189619593",""+b,""+c,""+d));return new zz(e)}; Uz=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""}; bta=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; Wz=function(a,b,c,d,e,f,k,l,m){this.width=a;this.height=b;this.quality=f||Vz(a,b);this.j=g.Jx[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=k)||(a=g.Jx[this.quality],0===a?a="Autom\u00e1tica":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; $z=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; rA=function(a,b){return 0<=qA(a,b)}; gta=function(a,b){if(!a)return NaN;b=qA(a,b);return 0<=b?a.start(b):NaN}; sA=function(a,b){if(!a)return NaN;b=qA(a,b);return 0<=b?a.end(b):NaN}; tA=function(a){return a&&a.length?a.end(a.length-1):NaN}; hta=function(a,b){a=sA(a,b);return 0<=a?a-b:0}; uA=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return oA(d,e)}; vA=function(a,b,c,d){g.iv.call(this);var e=this;this.Hd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.EM={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)}, updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}}; g.jv(this.Hd,this.EM);this.My=this.isActive}; wA=function(a,b,c,d,e){g.iv.call(this);var f=this;this.jc=a;this.We=b;this.id=c;this.containerType=d;this.isVideo=e;this.lN=this.TA=this.Ue=null;this.appendWindowStart=this.timestampOffset=0;this.gL=oA([],[]);this.Cz=!1;this.by=ita?[]:void 0;this.Mc=function(l){return f.ea(l.type,f)}; var k;if(null==(k=this.jc)?0:k.addEventListener)this.jc.addEventListener("updateend",this.Mc),this.jc.addEventListener("error",this.Mc)}; xA=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; yA=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1}; zA=function(a,b,c){c=void 0===c?!1:c;g.G.call(this);this.mediaSource=a;this.We=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.gA(this);g.H(this,this.events);this.mx=new yA(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.We.webkitMediaSourceURL,!0);a=this.mediaSource||this.We;gv(this.events,a,["sourceopen","webkitsourceopen"],this.AY);gv(this.events,a,["sourceclose","webkitsourceclose"],this.zY)}; jta=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; kta=function(a,b){AA(a)?g.qi(function(){b(a)}):a.callback=b}; AA=function(a){try{return"open"===BA(a)}catch(b){return!1}}; BA=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.We.webkitSourceState){case a.We.SOURCE_OPEN:return"open";case a.We.SOURCE_ENDED:return"ended";default:return"closed"}}; CA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; lta=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Hd:a.j,f=a.u.isView()?a.u.Hd:a.u,k=new zA(a.mediaSource,a.We,!0);k.mx=a.mx;e=new vA(e,b,c,d);b=new vA(f,b,c,d);k.j=e;k.u=b;g.H(k,e);g.H(k,b);AA(a)||a.j.dC(a.j.rd());return k}; mta=function(a,b){return DA(function(c,d){return g.Kr(c,d,4,1E3)},a,b)}; g.nta=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=ry(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.X&&a.isLivePlayback;a.Ia=Number(Ez(c,IA(a,"earliestMediaSequence")))||0;if(d=Date.parse(Isa(Ez(c,IA(a,"mpdResponseTime")))))a.va=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Ql(c.getElementsByTagName("Period"),a.fZ,a);a.state=2;a.ea("loaded");Gta(a)}return a}).Eh(function(c){if(c instanceof Ir){var d=c.xhr; a.ma=d.status}a.state=3;a.ea("loaderror");return wi(d)})}; Ita=function(a,b,c){return Hta(new EA(a,b,c),a)}; JA=function(a){return a.isLive&&(0,g.R)()-a.ya>=a.X}; Gta=function(a){var b=a.X;isFinite(b)&&(JA(a)?a.refresh():(b=Math.max(0,a.ya+b-(0,g.R)()),a.B||(a.B=new g.L(a.refresh,b,a),g.H(a,a.B)),a.B.start(b)))}; Jta=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0}; KA=function(a){return a.C?a.C-(a.K||a.timestampOffset):0}; LA=function(a){return a.D?a.D-(a.K||a.timestampOffset):0}; MA=function(a){if(!isNaN(a.xa))return a.xa;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ra&&(a.xa=b);return b}if(a.isLive&&(d=b[c],d.lj))return d.lj}return NaN}; Kta=function(a,b){a=$f(a.j,function(d){return d.index.isLoaded()}); if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c(0,g.R)()-1E3*a))return 0;a=g.gw("yt-player-quality");if("string"===typeof a){if(a=g.Jx[a],0a.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Dma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(k){return cA(k)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1; c=c.videoInfos[0].video;e=Math.min(RA("1",c.fps),RA("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=RA("1",30),b.perfCap30=c,a=Math.min(a,c),c=RA("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a}; UA=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.j={};this.u=this.keySystemAccess=null;this.J=this.K=-1;this.B=null;this.D="";this.N=!!d&&d.ob("edge_nonprefixed_eme");this.D=d?g.TA(d,"html5_hdcp_probing_stream_url"):""}; WA=function(a){return a.N?!1:!a.keySystemAccess&&!!VA()&&"com.microsoft.playready"===a.keySystem}; XA=function(a){return"com.microsoft.playready"===a.keySystem}; YA=function(a){return!a.keySystemAccess&&!!VA()&&"com.apple.fps.1_0"===a.keySystem}; ZA=function(a){return"com.youtube.fairplay"===a.keySystem}; g.$A=function(a){return"fairplay"===a.flavor}; VA=function(){var a=window,b=a.MSMediaKeys;ds()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; bB=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.kA&&!g.as())return Wp("45");if(g.pt||g.Nc)return a.ob("edge_nonprefixed_eme");if(g.Ex)return Wp("47");if(g.Rs){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.aB(a,"html5_safari_desktop_eme_min_version"))return Wp(a)}return!0}; bua=function(a,b,c,d){var e=bs(),f=(c=e||c&&ds())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.u(f),g.u(cB.playready)):[].concat(g.u(cB.playready),g.u(f))}; dB=function(a,b,c,d,e){d=void 0===d?!1:d;g.G.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Aa=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.Qa()}; dua=function(a,b){a.callback=b;a.B=[];bB(a.experiments)?eB(a):cua(a)}; eB=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.B);else{var b=a.j[0],c=a.u[b],d=eua(a,c);a.Qa();navigator.requestMediaKeySystemAccess(b,d).then(ir(function(e){if(!a.isDisposed()){a.Qa();c.keySystemAccess=e;if(XA(c)){e=hA();for(var f=g.r(Object.keys(a.C[c.flavor])),k=f.next();!k.done;k=f.next())k=k.value,c.j[k]=!!e.canPlayType(k)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),k=f.next();!k.done;k=f.next())fua(a,c,k.value);if(e.videoCapabilities)for(e= g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())fua(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),eB(a)):a.callback(a.B)}}),ir(function(){a.Qa(); a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor;a.D||a.j.shift();eB(a)}))}}; fua=function(a,b,c){a.S("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; eua=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};XA(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),k=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.kA&&Zr("windows nt")&&!a.S("html5_drm_enable_moho")||k.push({contentType:e,robustness:"HW_SECURE_ALL"}), f=e,a.S("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),k.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.S("html5_query_sw_secure_crypto_for_android")&&(js()||$r())&&(a.Aa("swcrypto",{}),k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; cua=function(a){if(VA()&&g.Rs)a.Qa(),a.B.push(new UA("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=gua(),c=g.ac(a.j,function(d){var e=a.u[d],f=!1,k=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),k=k||0===l.indexOf("video/"));return f&&k}); c?(a.Qa(),a.B.push(a.u[c])):a.Qa();a.j=[]}a.callback(a.B)}; gua=function(){var a=VA();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=hA(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; hua=function(){this.j=0}; iua=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=kr(b||"","&");var c={};g.wc(this.experimentIds,function(d){c[d]=!0}); this.experiments=c}; g.aB=function(a,b){return Number(a.flags[b])||0}; g.TA=function(a,b){return(a=a.flags[b])?a.toString():""}; fB=function(a,b,c){this.experiments=a;this.ma=b;this.va=void 0===c?!1:c;this.K=!!g.La("cast.receiver.platform.canDisplayType");this.J={};this.X=!1;this.u=new Map;this.N=!0;this.D=!this.experiments.ob("html5_disable_protected_hdr");this.j=this.B=!1;this.Z=this.experiments.ob("html5_disable_vp9_encrypted");a=g.La("cast.receiver.platform.getValue");this.C=!this.K&&a&&a("max-video-resolution-vpx")||null}; yra=function(a,b,c){c=void 0===c?1:c;var d=b.Yb();if("0"===d)return!0;var e=b.mimeType;if(b.Ce()&&bs()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if(cA(b)&&a.X)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(Sx(a,Tx.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);NB=new Uint8Array(256);OB=MB(256);PB=MB(256);QB=MB(256);RB=MB(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;NB[f]=e;b=e<<1^(e>>7&&283);var k=b^e;OB[f]=b<<24|e<<16|e<<8|k;PB[f]=k<<24|OB[f]>>>8;QB[f]=e<<24|PB[f]>>>8;RB[f]=e<<24|QB[f]>>>8}zua=!0}e=MB(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=(NB[a>>16&255]^d)<<24|NB[a>>8&255]<<16|NB[a&255]<<8|NB[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; Aua=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}; Bua=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],k=3;0<=k&&!(a.counter[k]=-~a.counter[k]);k--);for(var l,m,n=4;40>n;)k=OB[c>>>24]^PB[d>>16&255]^QB[e>>8&255]^RB[f&255]^b[n++],l=OB[d>>>24]^PB[e>>16&255]^QB[f>>8&255]^RB[c&255]^b[n++],m=OB[e>>>24]^PB[f>>16&255]^QB[c>>8&255]^RB[d&255]^b[n++],f=OB[f>>>24]^PB[c>>16&255]^QB[d>>8&255]^RB[e&255]^b[n++],c=k,d=l,e=m;a=a.u;k=b[40];a[0]=NB[c>>>24]^k>>>24;a[1]=NB[d>>16&255]^k>>16&255;a[2]=NB[e>>8&255]^ k>>8&255;a[3]=NB[f&255]^k&255;k=b[41];a[4]=NB[d>>>24]^k>>>24;a[5]=NB[e>>16&255]^k>>16&255;a[6]=NB[f>>8&255]^k>>8&255;a[7]=NB[c&255]^k&255;k=b[42];a[8]=NB[e>>>24]^k>>>24;a[9]=NB[f>>16&255]^k>>16&255;a[10]=NB[c>>8&255]^k>>8&255;a[11]=NB[d&255]^k&255;k=b[43];a[12]=NB[f>>>24]^k>>>24;a[13]=NB[c>>16&255]^k>>16&255;a[14]=NB[d>>8&255]^k>>8&255;a[15]=NB[e&255]^k&255}; UB=function(){if(!Cua&&!g.pt){if(TB)return TB;var a;TB=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=TB)?0:b.importKey)&&(null==(c=TB)?0:c.sign)&&(null==(d=TB)?0:d.encrypt))return TB;TB=void 0}}; g.VB=function(a){this.C=a}; g.WB=function(a){this.u=a}; XB=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.J=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()}; Dua=function(a,b,c){for(var d=a.K,e=a.j[0],f=a.j[1],k=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],t,w,x,y=0;64>y;)16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],w=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[y]=x),t=q+YB[y]+x+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),w=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&k^f&k),q=t+w,l+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t= d[y-2],w=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[y]=x),t=p+YB[y]+x+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+w,k+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],w=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[y]=x),t=n+YB[y]+x+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&l^ ~k&m),w=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+w,f+=t,y++,16>y?(d[y]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[y-2],w=d[y-15],x=d[y-7]+d[y-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),d[y]=x),t=m+YB[y]+x+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&k^~f&l),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),x=q,q=l,l=x,x=p,p=k,k=x,x=n,n=f,f=x,m=e+t,e=t+w,y++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=k+a.j[2]|0;a.j[3]= l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0}; Fua=function(a){var b=new Uint8Array(32),c=64-a.u;55f;f++){var k=e%256;d[c-f]=k;e=(e-k)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Eua(a);return b}; Eua=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.K=[];a.K.length=64;a.C=0;a.u=0}; $B=function(){this.B=this.j=0;this.u=Array.from({length:ZB.length}).fill(0)}; Gua=function(){}; Hua=function(a){this.name=a;this.startTimeMs=(0,g.R)();this.j=!1}; Iua=function(){this.profiles=new Gua}; aC=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new $B),a.profiles[b].Bl(c,d))}; bC=function(){}; cC=function(){g.VB.apply(this,arguments)}; dC=function(){g.WB.apply(this,arguments)}; Jua=function(a,b){this.encryptedClientKey=b;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)}; eC=function(a){try{return Oc(a)}catch(b){return null}}; Kua=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?eC(b.clientKey):null;var c=b.encryptedClientKey?eC(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.R)():null;a&&c&&d&&(this.j=new Jua(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=eC(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; fC=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)}; gC=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=a*b?null:new g.Eh(a,b)}; tC=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Vua))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0=EC;d=b?b.useNativeControls: a.use_native_controls;this.D=(this.S("embeds_enable_mobile_custom_controls")||!1===d&&!this.S("embeds_use_native_controls_killswitch"))&&g.AC(this)&&this.isMobile;e=this.isMobile&&!this.D;d=FC(this)||!k&&pC(e,d)?"3":"1";e=b?b.controlsType:a.controls;this.controlsType="0"!==e&&0!==e?d:"0";this.Ke=this.isMobile;this.color=qC("red",b?b.progressBarColor:a.color,ava);this.Tl="3"===this.controlsType||pC(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Db=!this.j;this.vj=(d=!this.Db&& !CC(this)&&!this.N&&!this.C&&!BC(this))&&!this.Tl&&"1"===this.controlsType;this.Rb=g.GC(this)&&d&&"0"===this.controlsType&&!this.vj;this.Yl=this.Ul=k;this.Gb=("3"===this.controlsType||this.isMobile||pC(!1,a.use_media_volume))&&!this.D;this.xj=HC&&!g.Fc(601)?!1:!0;this.Ik=this.j||!1;this.od=CC(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=sC("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.B||pC(!0,l);k= !0;b&&b.disableMdxCast&&(k=!1);this.jb=this.S("enable_cast_for_web_unplugged")&&g.IC(this)&&k||this.S("enable_cast_on_music_web")&&g.JC(this)&&k||l&&k&&"1"===this.controlsType&&!this.isMobile&&(CC(this)||g.GC(this)||g.KC(this))&&!g.LC(this);this.Xl=lA()||mA();l=b?!!b.supportsAutoplayOverride:pC(!1,a.autoplayoverride);this.Sh=!this.isMobile&&!Zr("nintendo wiiu")&&!Zr("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:pC(!1,a.mutedautoplay);k=this.S("embeds_enable_muted_autoplay")&&g.AC(this);this.le=l&& k&&this.ma&&!FC(this);l=(CC(this)||BC(this))&&"blazer"===this.playerStyle;this.fh=b?!!b.disableFullscreen:!pC(!0,a.fs);this.Xa=!this.fh&&(l||g.bv());this.dj=this.S("uniplayer_block_pip")&&($r()&&Wp(58)&&!js()||gs);l=g.AC(this)&&!this.tj;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Lb=l||pC(!this.C,m);this.wk=pC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=js()&&0=EC?"_top":"_blank";this.Sd=g.KC(this);this.oh=pC("blazer"===this.playerStyle,b? b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.ya=m;this.authUser=sC("",b?b.authorizedUserIndex:a.authuser);this.bd=g.AC(this)&&(this.Sa||this.S("embeds_web_enable_hiding_login_buttons")&& (!zma()||js()||hs())||this.S("embeds_web_enable_always_hiding_login_buttons"));var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.zk=((m=!this.bd)||!!this.authUser&&m)&&pC(!this.N,this.B?n:void 0);this.fg=b?b.isMobileDevice||!!b.disableKeyboardControls:pC(!1,a.disablekb);this.loop=pC(!1,a.loop);this.pageId=sC("",!this.S("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Wl=pC(!0,a.canplaylive);this.qb=pC(!1,a.livemonitor);this.disableSharing= pC(this.C,b?b.disableSharing:a.ss);this.yj=Uua(b&&this.S("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:pC(!1,a.mute);this.storeUserVolume=!this.mute&&pC("0"!==this.controlsType,b&&!this.S("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:qC(void 0,n,MC);this.captionsLanguagePreference= b?b.captionsLanguagePreference||"":sC("",a.cc_lang_pref);n=qC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,MC);"3"===this.controlsType&&2===n&&(n=3);this.Wa=n;this.sf=b?b.hl||"en_US":sC("en_US",a.hl);this.region=b?b.contentRegion||"US":sC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":sC("en",a.host_language);this.Ak=!this.Sa&&Math.random()Math.random();this.Cd=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new Kua(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.S("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic; this.playerCanaryState=c;this.Pc=new Sua;g.H(this,this.Pc);this.mj=pC(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.Mk=g.P("LOGGED_IN",!1);this.ag=(null==b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=sC("",b?b.embedsRct:a.rct);this.bj=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;if(this.S("html5_onesie")||this.S("html5_host_selector"))this.Ah=new GB(this.experiments,function(){return Eu()},this.deviceParams.c,this.S("html5_onesie_prefer_trusted_host")), g.H(this,this.Ah); this.S("html5_high_res_logging")?this.X=2:1>4096*Math.random()&&(this.X=1);this.S("html5_ping_queue")&&(this.lh=new yB)}; NC=function(a,b,c){c=void 0===c?!1:c;a.Wb=sC(a.Wb,b.video_id);a.Ja=sC(a.Ja,b.eventid);a.Ja&&(rv=a.Ja);for(var d=[],e=g.r(Object.keys(gva)),f=e.next();!f.done;f=e.next()){f=gva[f.value];var k=b[f];null!=k&&(k!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=k)}!c&&0Number(c.get("dhmu",b.toString()))}; g.fD=function(a){return(a.deviceHasDisplay&&g.kA&&!gs&&"3"!==a.controlsType?g.is?a.j&&g.Fc(51):!0:!1)||(a.deviceHasDisplay&&g.Ex&&!gs&&"3"!==a.controlsType?g.is?a.j&&g.Fc(48):g.Fc(38):!1)||(a.deviceHasDisplay&&g.yC&&!gs&&"3"!==a.controlsType?g.is?a.j&&g.Fc(37):g.Fc(27):!1)||a.deviceHasDisplay&&g.eD&&!fs()&&g.Fc(11)||a.deviceHasDisplay&&g.Rs&&g.Fc("604.4")}; lva=function(a){if(g.GC(a)&&DC)return!1;if(g.Ex){if(!g.Fc(47)||!g.Fc(52)&&g.Fc(51))return!1}else if(g.Rs)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; CC=function(a){return"detailpage"===a.Ia}; g.GC=function(a){return"embedded"===a.Ia}; gD=function(a){return"leanback"===a.Ia}; BC=function(a){return"adunit"===a.Ia||"gvn"===a.playerStyle}; g.KC=function(a){return"profilepage"===a.Ia}; g.AC=function(a){return a.j&&g.GC(a)&&!BC(a)&&!a.C}; eva=function(a){var b=a.raw_embedded_player_response;b||(a=a.embedded_player_response)&&(b=JSON.parse(a));return b?qC("EMBEDDED_PLAYER_MODE_UNKNOWN",b.embeddedPlayerMode,mva):"EMBEDDED_PLAYER_MODE_UNKNOWN"}; bva=function(a,b){a.Kk?(b=b.vss_host||"s.youtube.com","s.youtube.com"===b&&(b=TC(a.Ea)||"www.youtube.com")):b="video.google.com";return b}; hD=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.Sv(new g.Js("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; g.iD=function(a){var b=g.VC(a);!a.S("yt_embeds_disable_new_error_lozenge_url")&&nva.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b}; Wua=function(a,b){b.brand&&(a.deviceParams.cbrand=b.brand);b.browser&&(a.deviceParams.cbr=b.browser);b.browserVersion&&(a.deviceParams.cbrver=b.browserVersion);a.deviceParams.c=b.interfaceName||"WEB";a.deviceParams.cver=b.interfaceVersion||"html5";b.interfaceTheme&&(a.deviceParams.ctheme=b.interfaceTheme);a.deviceParams.cplayer=b.interfacePlayerType||"UNIPLAYER";b.model&&(a.deviceParams.cmodel=b.model);b.network&&(a.deviceParams.cnetwork=b.network);b.os&&(a.deviceParams.cos=b.os);b.osVersion&&(a.deviceParams.cosver= b.osVersion);b.platform&&(a.deviceParams.cplatform=b.platform)}; jD=function(a){return 1<=a.X}; TC=function(a){var b=g.lj(a);return(a=Number(g.Yi(4,a))||null)?b+":"+a:b}; kD=function(a){this.j=a}; lD=function(a,b,c){if(c)return Mr();var d={};c=hA();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Bf().mimeType)){var f=e.j.video.quality;if(!d[f]||d[f].Bf().Ce())d[f]=e}var k=[];d.auto&&k.push(d.auto);g.wc(Xz,function(l){(l=d[l])&&k.push(l)}); return k.length?Nr(k):Mr()}; ova=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.J=e;this.C=0;this.j=""}; pva=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Fc)?void 0:d.getId())===b}); a.j=b}; mD=function(a,b,c){a.cpn&&(b=g.rj(b,{cpn:a.cpn}));c&&(b=g.rj(b,{qha:c}));return b}; qva=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a}; rva=function(a){for(var b=[],c=[],d=g.r(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,k){return k.bitrate-f.bitrate}); c.sort(function(f,k){return f.bitrate-k.bitrate}); a.u=b.concat(c)}; sva=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.Su=a.Su;this.Rd=a.Rd||"";this.Fc=a.Fc;this.audioChannels=a.audioChannels;this.j=""}; tva=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.r(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var k=f.type;f.audio_channels&&(k=k+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(k)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){k=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/); m=m?m[1]:"";f.audio_track_id&&(k=new g.fA(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new sva({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,Su:n?l[n]:void 0,Rd:f.drm_families,Fc:k,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e}; nD=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null}; uva=function(a,b){if(!(gs||ds()||bs()))return null;a=tva(b,a.S("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var k=f.value;k.Fc&&(f=k.Fc.getId(),c[f]||(k=new g.Hx(f,k.Fc),c[f]=k,b.push(k)))}}return 0x.width*x.height*x.fps)x=I}else t.push(I)}else l[E]="disdrmhfr";w.reduce(function(aa, K){return K.Bf().isEncrypted()&&aa},!0)&&(q=p); e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.S("html5_native_audio_track_switching");w.push(yva(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));Object.entries(l).length&&k(l);return lD(a.u,w,SC(a,b))}; yva=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w){for(var x=0,y="",z=g.r(a),E=z.next();!E.done;E=z.next())E=E.value,y||(y=E.itag),E.audioChannels&&E.audioChannels>x&&(x=E.audioChannels,y=E.itag);e=new $z(e,"application/x-mpegURL",{audio:new Uz(0,x,null,y),video:new Wz(f,k,l,null,void 0,n,void 0,t),Rd:q});a=new ova(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new nD(e,a,m)}; vva=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN}; xva=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Rd===b.Rd&&!e.audioChannels)return d}return""}; wva=function(a){for(var b=new Set,c=g.r(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.r(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]}; oD=function(a,b){this.j=a;this.u=b}; Ava=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var k=f.value;if(k.url){f=new g.Zx(k.url,!0);if(k.s){var l=k.sp,m=Gra(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);k=dta(k.type,k.quality,k.itag,k.width,k.height);e.push(new oD(k,f))}}return lD(a.u,e,SC(a,b))}; pD=function(a,b){this.j=a;this.u=b}; Bva=function(a){var b=[];g.wc(a,function(c){if(c&&c.url){var d=dta(c.type,"medium","0");b.push(new pD(d,c.url))}}); return b}; Cva=function(a,b,c){c=Bva(c);return lD(a.u,c,SC(a,b))}; qD=function(a,b){this.type=a||"";this.id=b||""}; g.rD=function(a){return new qD(a.substr(0,2),a.substr(2))}; sD=function(a,b){for(var c={},d=g.r(Object.keys(Dva)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.Fw(f)&&(c[Dva[e]]=f)}return c}; tD=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url}); a.sort(function(l,m){return l.width-m.width||l.height-m.height}); for(var c=g.r(Object.keys(Eva)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Eva[e];for(var f=g.r(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=Fva(k.url);g.Fw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Fva(a.url),g.Fw(a)&&(b["maxresdefault.jpg"]=a));return b}; Fva=function(a){return a.startsWith("//")?"https:"+a:a}; g.uD=function(a,b){this.u=a;this.author="";this.pw=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=kr(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=sD(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new qD("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.rD(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.vD=function(a,b){this.j=a;this.Hn=this.author="";this.pw=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Iq=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Hn=b.Hn||"";if(a=b.endscreen_autoplay_session_data)this.pw=kr(a,"&");this.qw=b.qw;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.Iq=b.Iq||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=kr(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=sD(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; Hva=function(a,b){var c=g.La("ytDebugData.callbacks");c||(c={},g.Ka("ytDebugData.callbacks",c,void 0));if(g.Q("web_dd_iu")||Gva.includes(a))c[a]=b}; wD=function(a){this.j=new $p(a)}; Iva=function(){try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.jq(g.Ks()+"::yt-player")))return new wD(a)}; Jva=function(){var a=g.xD;if(void 0===yD)if(a){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}yD=Iva()}else g.Sv(new g.Js("b215858349 yt-player-lv used",a)),(a=Iva())&&a.remove("yt-player-lv"),yD=g.jq();return yD}; g.zD=function(){var a=Jva();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.Kva=function(a){var b=Jva();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.AD=function(a){return g.zD()[a]||0}; g.BD=function(a,b){var c=g.zD();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.Kva(c))}; g.CD=function(a){return g.B(function(b){return b.return(g.mt(Lva(),a))})}; ED=function(a,b,c,d,e,f,k){var l,m,n,p,q,t,w;return g.B(function(x){switch(x.j){case 1:return l=g.AD(a),4===l?x.return(4):g.A(x,g.ut(),2);case 2:m=x.u;if(!m)throw g.Ts("wiac");if(!k||void 0===f){x.Za(3);break}return g.A(x,Mva(k,f),4);case 4:f=x.u;case 3:return n=c.lastModified||"0",Nva("Writing data to iDB: "+a+" "+b.id+" "+n+" "+e+" "+(null==(p=f)?void 0:p.length)),g.A(x,g.CD(m),5);case 5:return q=x.u,g.va(x,6),DD++,g.A(x,g.ct(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC", Kc:!0},function(y){if(void 0!==e&&void 0!==f){var z=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,"0");z=g.dt(y.objectStore("media"),f,z)}else z=g.Vs.resolve(void 0);var E=Ova(a,b.isVideo()),I=Ova(a,!b.isVideo()),J={fmts:Pva(d),format:c||{}};E=g.dt(y.objectStore("index"),J,E);var N=-1===d.downloadedEndTime;y=N?y.objectStore("index").get(I):g.Vs.resolve(void 0);return g.Vs.all([y,z,E]).then(function(aa){aa=g.r(aa).next().value;DD--;var K=g.AD(a);4!==K&&N&&void 0!==aa&&g.Qva(aa.fmts)&&(K=1,g.BD(a,K)); return K})}),8); case 8:return x.return(x.u);case 6:t=g.xa(x);DD--;w=g.AD(a);if(4===w)return x.return(w);g.BD(a,4);throw t;}})}; g.Rva=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.ut(),2);if(3!=d.j){b=d.u;if(!b)throw g.Ts("ri");return g.A(d,g.CD(b),3)}c=d.u;return d.return(g.ct(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.xna(e.objectStore("index"),f).then(function(k){return k.map(function(l){return l?l.format:{}})})}))})}; Tva=function(a,b,c,d,e){var f,k,l;return g.B(function(m){if(1==m.j)return g.A(m,g.ut(),2);if(3!=m.j){f=m.u;if(!f)throw g.Ts("rc");return g.A(m,g.CD(f),3)}k=m.u;l=g.ct(k,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); return e?m.return(l.then(function(n){return Sva(e,n)})):m.return(l)})}; g.Qva=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1}; Ova=function(a,b){return""+a+"|"+(b?"v":"a")}; Nva=function(){}; Pva=function(a){var b={};return lr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; Vva=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.Uva)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(k){return k.start+"-"+k.end}).join(","); return c}; Wva=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.II=eC(a.ustreamerConfig)||void 0)}; g.FD=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null}; g.HD=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.GD(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b}; g.ID=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.GD=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Subt\u00edtulos autom\u00e1ticos)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")}; $va=function(a,b,c,d){a||(a=b&&Xva.hasOwnProperty(b)&&Yva.hasOwnProperty(b)?Yva[b]+"_"+Xva[b]:void 0);b=a;if(!b)return null;a=b.match(Zva);if(!a||5!==a.length)return null;if(a=b.match(Zva)){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}; bwa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return awa[a];return null}; JD=function(a){return a&&a.baseUrl||""}; KD=function(a){a=g.or(a);for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; cwa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Sa=b)}; ewa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=dwa(d.baseUrl);if(!e)return;d=new g.FD({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Pw(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.RD=b.audioTracks||[];a.HQ=b.defaultAudioTrackIndex||0;a.SD=b.translationLanguages?g.Pl(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Pw(f.languageName)}}): []; a.Pp=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; fwa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(k){var l=k.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(k=k.playerVars)return Object.assign({is_yto_interstitial:!0},mr(k))}); d=g.r(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,pk:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,pk: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, pk:0===f?5:7})}}}; gwa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; hwa=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)}; nwa=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=a.cipher||a.signatureCipher)? (c=mr(c),b.sp=c.sp,b.s=c.s,b.url=c.url):b.url=a.url;c=a.width;d=a.height;null!=c&&null!=d&&(b.size=c+"x"+d);(c=a.fps)&&(b.fps=c);(c=a.type)&&(b.stream_type=iwa[c]);(c=a.projectionType)&&(b.projection_type=jwa[c]);(c=a.stereoLayout)&&(b.stereo_layout=kwa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=lwa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(LD[e.value]);b.drm_families=c.join(",")}(c=a.qualityLabel)&&(b.quality_label=c);(c=a.targetDurationSec)&&(b.target_duration_sec= c);(c=a.maxDvrDurationSec)&&(b.max_dvr_duration_sec=c);(c=a.audioSampleRate)&&(b.audio_sample_rate=c);(c=a.audioChannels)&&(b.audio_channels=c);(c=bwa(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=mwa[a])&&(b.primaries=a);return g.pj(b)}; MD=function(a){g.iv.call(this);this.j=null;this.B=new mq;this.j=null;this.K=new Set;this.D=a||""}; owa=function(a,b,c){for(c=ND(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(OD(d,b))&&(d=g.PD(d,b)))return d;c--}return g.PD(a.levels[0],b)}; qwa=function(a,b,c){c=ND(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=OD(d,b),!d.isLoaded(e)){d=a;var f=c,k=f+"-"+e;d.K.has(k)||(d.K.add(k),d.B.enqueue(f,{tN:f,KN:e}))}pwa(a)}; pwa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=rwa(a,b)}}; rwa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=QD(a.levels[b.tN],b.KN);c.onload=function(){var d=b.tN,e=b.KN;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);pwa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.dD()-1);e=[e,d];a.ea("l",e[0],e[1])}; return c}; g.RD=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}; OD=function(a,b){return Math.floor(b/(a.columns*a.rows))}; QD=function(a,b){var c=a.C;c=c.replace("$N",a.B);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.rj(c,{sigh:a.signature}));return Gw(c)}; g.PD=function(a,b){b>=a.eD()&&a.Hp();var c=OD(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Hp()+1-d*c;if(f=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1}; TD=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.RD.call(this,a,b,c,0);this.u=null;this.D=d?2:0}; UD=function(a,b,c,d){SD.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;ab&&(xA()||d.S("html5_format_hybridization"))&&(q.u.supportsChangeType= +xA(),q.X=b);2160<=b&&(q.va=!0);Yta()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.vb=!1);q.bE=m;m=g.pt||ks()&&!m?!1:!0;q.Ja=m;q.xa=d.S("html5_format_hybridization");q.jb=d.S("html5_disable_encrypted_vp9_live_non_2k_4k");bs()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.J=!0);a.Ea&&a.isAd()&&(a.Vl&&(q.Z=a.Vl),a.Ul&&(q.C=a.Ul));q.Ia=a.isLivePlayback&&gE(a)&&a.B.S("html5_drm_live_audio_51"); return a.Rb=q}; Lwa=function(a){lx("drm_pb_s",void 0,a.xa);a.Dc||a.j&&Vx(a.j);var b={};a.j&&(b=xra(hE(a),a.B.u,a.j,function(c){return a.ea("ctmp","fmtflt",c)},!0)); b=new dB(b,a.B.experiments,a.iN,Kwa(a),function(c,d){a.Aa(c,d)}); g.H(a,b);a.Aj=!1;a.Ia=!0;dua(b,function(c){lx("drm_pb_f",void 0,a.xa);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Dc;e.K=a.r_;e.J=a.f_;break;case "widevine":e.B=a.DN}a.Dp=c;if(0p&&(p=w.Bf().audio.numChannels)}2=a.C.videoInfos.length)&&(b=dA(a.C.videoInfos[0]),b!=("fairplay"==a.N.flavor)))for(c=g.r(a.Dp),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.N=d;break}}; mE=function(a,b){a.Db=b;Wwa(a,new Ox(g.Pl(a.Db,function(c){return c.Bf()})))}; Xwa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Gr&&(b.ptk=a.Gr,b.oid=a.uK,b.ptchn=a.tK,b.pltype=a.vK,a.Eq&&(b.m=a.Eq));return b}; g.nE=function(a){return aE(a)&&a.Dc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Rd||null}; Ywa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Pw(b.text):a.paidContentOverlayText}; oE=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Mh(b.durationMs):a.paidContentOverlayDurationMs}; pE=function(a){var b="";if(a.OC)return a.OC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.gf?"post":a.fh?"window":"live");return b}; g.qE=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; rE=function(a){return!!(a.jb||a.adaptiveFormats||a.aj||a.Th||a.hlsvp)}; XD=function(a){if(a.S("html5_onesie")&&a.errorCode)return!1;var b=g.dc(a.va,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ia&&(rE(a)||g.dc(a.va,"heartbeat")||b)}; jE=function(a,b){a=nr(a);var c={};if(b){b=g.r(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.r(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a}; Hwa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==b?void 0:null==(c=b.buttonRenderer)?void 0:c.navigationEndpoint)||(null==b?void 0:null==(d=b.buttonRenderer)?void 0:d.command);e&&(a.Hk=!!e.copyTextEndpoint)}; vwa=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.Bg=c);if(a.Bg){if(c=a.Bg.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Bg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Wa=d,a.D=!0):(a.Wa="",a.D=!1);if(d=c.defaultThumbnail)a.Z=tD(d),a.sampledThumbnailColor= d.sampledThumbnailColor;var e;(d=null==c?void 0:null==(e=c.videoDetails)?void 0:e.embeddedPlayerOverlayVideoDetailsRenderer)&&Iwa(a,b,d);var f;if(e=null==c?void 0:null==(f=c.videoDetails)?void 0:f.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.hH=e.title,a.wG=e.byline,e.musicVideoType&&(a.musicVideoType=e.musicVideoType);a.rf=!!c.addToWatchLaterButton;Hwa(a,c.shareButton);var k,l,m;if(f=null==c?void 0:null==(k=c.playButton)?void 0:null==(l=k.buttonRenderer)?void 0:null==(m=l.navigationEndpoint)? void 0:m.watchEndpoint)Gwa(a,f),a.videoId=f.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Mh(c.videoDurationSeconds));c.webPlayerActionsPorting&&hwa(a,c.webPlayerActionsPorting);var n;if(k=null==c?void 0:null==(n=c.playlist)?void 0:n.playlistPanelRenderer){n=[];l=Number(k.currentIndex);if(k.contents)for(m=0,f=k.contents.length;m(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.deviceParams.ctheme; !a.Sd&&(c||jva(a.B))&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.S("cast_prefer_audio_only_for_atv_and_uploads")||a.S("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Sd=!0);return!a.B.deviceHasDisplay||a.Sd&&a.B.B}; cxa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; FE=function(a){return!(!a.xj||!a.B.B)&&!!a.adaptiveFormats}; Ewa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.AD(b);return b&&!a.xj}; g.GE=function(a){if(!a.j||!a.u||!a.J)return!1;var b=a.j.j;return!!b[a.u.id]&&cy(b[a.u.id].u.j)&&!!b[a.J.id]&&cy(b[a.J.id].u.j)}; dxa=function(a){return a.Ir?["OK","LIVE_STREAM_OFFLINE"].includes(a.Ir.status):!0}; Zwa=function(a){return(a=a.yj)&&a.showError?a.showError:!1}; iE=function(a,b){return a.S(b)?!0:(a.fflags||"").includes(b+"=true")}; exa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; Awa=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.TC=b.quartile_0_url,a.CK=b.quartile_25_url,a.DK=b.quartile_50_url,a.FK=b.quartile_75_url,a.yK=b.quartile_100_url,a.zk=b.quartile_0_urls,a.VC=b.quartile_25_urls,a.WC=b.quartile_50_urls,a.AD=b.quartile_75_urls,a.UC=b.quartile_100_urls}; $D=function(a){return a?gB()?!0:HE&&5>IE?!1:!0:!1}; zwa=function(a){var b={};a=g.r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b}; dwa=function(a){if(a){if(Mqa(a))return a;a=Nqa(a);if(Mqa(a,!0))return a}return""}; g.fxa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.qE(a,"yt:cc_default_lang")||a.B.sf}; JE=function(a){return!!(a.S("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())}; KE=function(a,b){this.j=a;this.Z=b||{};this.J=String(Math.floor(1E9*Math.random()));this.D={};this.X=this.N=0}; gxa=function(a){return LE(a)&&1==a.getPlayerState(2)}; LE=function(a){a=a.Lc();return void 0!==a&&2==a.getPlayerType()}; ME=function(a){a=a.V();return OC(a)&&!g.aD(a)&&"desktop-polymer"==a.playerStyle}; NE=function(a,b){var c=a.V();FC(c)||"3"!=c.controlsType||a.eb().iy(b)}; PE=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=OE(a)}; OE=function(a){return a+(":"+(nq.getInstance().j++).toString(36))}; QE=function(a){this.Y=a}; hxa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.Rs?0:a.Y.isMobile||g.aD(a.Y)||g.PC(a.Y)||QC(a.Y)||!g.Rs))return!0;a=g.Vh("video-ads");return null!=a&&"none"!==Mm(a,"display")}; ixa=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}}; RE=function(){g.iv.call(this);var a=this;this.j={};g.Bf(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; TE=function(){if(null===SE){SE=new RE;Sl(kp).u="b";var a=Sl(kp),b="h"==dp(a)||"b"==dp(a),c=!(bm(),!1);b&&c&&(a.C=!0,a.D=new Sga)}return SE}; jxa=function(a,b,c){a.j[b]=c}; kxa=function(){}; UE=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=c*a.u.SC||d)&&pF(a,"first_quartile");(b>=c*a.u.SECOND||d)&&pF(a,"midpoint");(b>=c*a.u.ND||d)&&pF(a,"third_quartile")}; Cxa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.SC||d)&&pF(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&pF(a,"unmuted_midpoint");(b>=c*a.u.ND||d)&&pF(a,"unmuted_third_quartile")}; tF=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(cd||d>c)return;pF(a,b)}; zxa=function(a,b,c){if(0m.K&&m.Hh()}}; Ixa=function(a,b){if(a.B&&a.Z)if(a.Z=!1,a.I.V().experiments.ob("html5_externally_manage_ad_notify_layout")){var c=a.D.j;if(NF(c)){var d=c.slot;c=c.layout;b=Hxa(b);a=g.r(a.B.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,k=c,l=b;PF(e.j(),f,k,l);QF(e.j(),f)}}else g.Sv(Error("adMessageRenderer is not augmented on termination"))}else for(d=g.r(a.B.listeners),c=d.next();!c.done;c=d.next())c=c.value,c.B?(b=c.B,c.B=void 0,c.u=void 0,QF(c.j(),b)):T("Received AdNotify terminated event when no slot is active")}; Hxa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return"abandoned";default:return g.Sv(Error("Unexpected eventType for adNotify exit")),"abandoned"}}; g.RF=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={JC:c.JC},e=d.next())e=e.value,c.JC=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.JC}}(c)); return a}; SF=function(a){return a?g.Pw(a):null}; Jxa=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a}; Kxa=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null}; Lxa=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}}; Oxa=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(Mxa(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=SF(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&& Nxa(a,b,c,d))}}; Mxa=function(a,b,c){var d=SF(b.confirmLabel)||"",e=SF(b.title)||"",f=[];if(b.adReasons)for(var k=g.r(b.adReasons),l=k.next();!l.done;l=k.next())f.push(SF(l.value)||"");k=b.headerTitle?g.Pw(b.headerTitle):"";d={closeButton:d,menuTitle:k,targetingReasonHeader:e,targetingReasons:f,dialogMessage:SF(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints), n=m.next();!n.done;n=m.next())c(n.value)}; a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}}; Nxa=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:SF(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Jxa(b.navigationEndpoint);var k=Lxa(b[1]),l=[Lxa(b[0])];(b=Kxa(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(k)}; a.muteAd=function(){m||c(k);m=!1;for(var n=g.r(l),p=n.next();!p.done;p=n.next())c(p.value)}; Pxa(a,e,d)}}}; Pxa=function(a,b,c){a.muteAdInfo.goneText=SF(b.title)||"";a.muteAdInfo.questionText=SF(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=SF(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)}; a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=SF(e.reason)||"";e=Jxa(e.endpoint)[0];a.push({label:d,url:e})}}; TF=function(a,b,c,d,e,f){this.u=a;this.D=b;this.j=gF(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.j[b]=f[b];this.B=c;this.C=e}; Qxa=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.Kd(e):a.B.tq()}; b.skipShown=function(){a.Kd(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}}; Rxa=function(a,b,c){Oxa(b,c,function(d){a.Kd(d)},function(d){a.sendAdsPing(d)})}; Sxa=function(a){for(var b={},c=g.r(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.j[d].toString();return Object.assign(b,a.D)}; Txa=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){}, instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){}, muteAdClicked:function(){}, sendAdsPing:function(){}, skip:function(){}, endSurveyOnSubmitted:function(){}, skipShown:function(){}, whyThisAdClicked:function(){}, whyThisAdClosed:function(){}, daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null,adBreakEndSeconds:null}}; Uxa=function(a,b,c,d,e){new TF(a,b,c,d,e,void 0)}; UF=function(a){this.value=a}; VF=function(a){this.value=a}; WF=function(a){this.value=a}; XF=function(a){this.value=a}; YF=function(a){this.value=a}; ZF=function(){UF.apply(this,arguments)}; $F=function(a){this.value=a}; aG=function(a){this.value=a}; bG=function(a){this.value=a}; cG=function(a){this.value=a}; dG=function(a){this.value=a}; eG=function(a){this.value=a}; fG=function(){UF.apply(this,arguments)}; gG=function(){UF.apply(this,arguments)}; hG=function(a){this.value=a}; iG=function(a){this.value=a}; jG=function(a){this.value=a}; kG=function(a){this.value=a}; lG=function(a){this.value=a}; mG=function(a){this.value=a}; nG=function(a){this.value=a}; oG=function(a){this.value=a}; pG=function(a){this.value=a}; qG=function(a){this.value=a}; rG=function(a){this.value=a}; sG=function(a){this.value=a}; tG=function(a){this.value=a}; uG=function(a){this.value=a}; vG=function(a){this.value=a}; wG=function(a){this.value=a}; xG=function(a){this.value=a}; yG=function(a){this.value=a}; zG=function(a){this.value=a}; AG=function(a){this.value=a}; BG=function(a){this.value=a}; CG=function(a){this.value=a}; DG=function(a){this.value=a}; EG=function(a){this.value=a}; FG=function(a){this.value=a}; GG=function(a){this.value=a}; HG=function(a){this.value=a}; IG=function(a){this.value=a}; JG=function(a){this.value=a}; KG=function(a){this.value=a}; LG=function(a){this.value=a}; MG=function(a){this.value=a}; NG=function(a){this.value=a}; OG=function(a){this.value=a}; PG=function(){UF.apply(this,arguments)}; QG=function(){UF.apply(this,arguments)}; RG=function(){UF.apply(this,arguments)}; SG=function(){UF.apply(this,arguments)}; TG=function(){UF.apply(this,arguments)}; UG=function(){UF.apply(this,arguments)}; Wxa=function(a){if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var b,c,d=(null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon)||(null==(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon);return Vxa(d)?!0:!1}; Xxa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon,b=Vxa(a)):b=!1:b=!1;return b}; Vxa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null==b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null==b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1}; Zxa=function(a,b,c,d,e,f){this.j=new TF(a,b,c,d,e,Yxa(f))}; $xa=function(a,b){var c=Txa();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.j.Kd(d)}; b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Qxa(a.j,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Rxa(a.j, c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.j.sendAdsPing(d)}; return c}; Yxa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=fF(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())}); b.SURVEY_ELAPSED_MS=fF(a);return b}; VG=function(a,b,c){g.iv.call(this,!0);var d=this;this.J=b;this.D=c;this.u=a;this.Sb=new g.Ai(200);this.Sb.Pa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.j+=f;d.j>=d.u&&(d.j=d.u,d.Sb.stop());e=d.j/1E3;d.D&&d.D.Qb(e);aya(d,{current:e,duration:d.u/1E3})}); g.H(this,this.Sb);this.j=0;this.B=null;g.Bf(this,function(){d.B=null}); this.C=0}; aya=function(a,b){a.J.Oa("onAdPlaybackProgress",b);a.B=b}; WG=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;PE.call(this,"survey",a,{},b,c);this.Qg=d;this.ij=e}; XG=function(a,b,c){g.iv.call(this);var d=this;this.durationMs=a;this.C=b;this.D=c;this.u=!1;this.B=this.j=0;this.timer=new g.Ai(200);g.H(this,this.timer);this.timer.Pa("tick",function(){d.Qb()})}; YG=function(){Ax("pbp")||Ax("pbs")||Bx("pbp");Ax("pbp","watch")||Ax("pbs","watch")||Bx("pbp",void 0,"watch")}; ZG=function(a,b,c){Ax(a,c)||Bx(a,b,c);Ax(a,"video_to_ad")||Bx(a,b,"video_to_ad");Ax(a,"ad_to_video")||Bx(a,b,"ad_to_video");Ax(a,"ad_to_ad")||Bx(a,b,"ad_to_ad")}; $G=function(a,b,c,d,e,f,k){CF.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.J=new fv;g.H(this,this.J);this.J.T(this.I,"resize",function(){450>l.I.eb().Fg().width&&(g.hv(l.J),l.Hg())}); this.Z=0;this.K=null;this.X=k(this,function(){return""+(Date.now()-l.Z)}); if(this.B=g.PC(a.V())?new VG(1E3*b.u,a,f):null)g.H(this,this.B),this.J.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&bya(l)})}; cya=function(a,b){b=$xa(a.X,b);a.I.Oa("onAdInfoChange",b)}; bya=function(a){var b=a.D.j;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.X.Kd(b&&b.timeoutCommands)):g.S(Error("Expected a survey question in InstreamSurveyAdRenderer."))}; aH=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;PE.call(this,"survey-interstitial",a,b,c,d);this.Qg=e;this.TH=f}; bH=function(a,b,c,d,e){CF.call(this,a,b,c,d,e,1);this.B=b}; cH=function(a,b,c,d,e,f,k,l,m){CF.call(this,a,b,c,d,e,1);var n=this;this.NA=!0;this.K=m;this.B=b;this.D=f;this.Z=new fv(this);g.H(this,this.Z);this.J=new g.L(function(){n.kh("load_timeout")},1E4); g.H(this,this.J);this.X=k}; dya=function(a){if(a.X&&(a.I.V().experiments.ob("enable_topsoil_wta_for_halftime")||a.I.V().experiments.ob("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.S(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.S(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,k){return f+k},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}}; iH=function(a,b){if(null!==a.K){var c=eya(a);a=g.r(a.K.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,k=!1;d.j||"aderror"!==f||(fya(d,e,[],!1),dH(d.B(),d.u),eH(d.B(),d.u),fH(d.B(),d.u),k=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}PF(d.B(),d.u,d.j,e);if(k){e=d.B();k=d.u;gH(e.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);e=g.r(e.Td);for(f=e.next();!f.done;f=e.next())f.value.Xi(k);QF(d.B(), d.u)}d.La.get().I.V().S("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&hH(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}}; jH=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""}; eya=function(a){if(a=a.B.j.elementId)return a;g.S(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""}; gya=function(a){function b(l,m){l=a.lZ;var n=Object.assign({},{});n.FINAL=fF(Fg("1"));n.SLOT_POS=fF(Fg("0"));return iF(l,hF(n),m)} function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var q=b(m,n); n=a.qC(m,q);m=l(m,q,n,p);g.H(m,n);return m}}} var d=c(function(l,m,n){return new HF(a.I,l,m,n,a.kq,a.fb)}),e=c(function(l,m,n){return new bH(a.I,l,m,n,a.kq)}),f=c(function(l,m,n){return new OF(a.I,l,m,n,a.kq,a.fb,a.Mj,a.Lm)}),k=c(function(l,m,n){return new LF(a.I,l,m,n,a.kq,a.fb)}); this.rT=new Fxa({create:function(l,m){var n=iF(b(l,m),hF(uxa(l)));m=a.qC(l,n);l=new cH(a.I,l,n,m,a.kq,a.fb,a.daiEnabled,function(p){return new Uxa(a.fb,n,p,a.I,a.Yh)},a.Mm,a.Sf); g.H(l,m);return l}},{create:function(l,m){var n=a.qC(l,m); l=new $G(a.I,l,m,n,a.kq,a.fb,function(p,q){return new Zxa(a.fb,m,p,a.I,a.Yh,q)}); g.H(l,n);return l}},d,e,f,k)}; kH=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b}; hya=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{VT:new Up(b,c),nV:new Aw(b,c-b,a.context,a.identifier,a.event,a.Gu)}}; lH=function(){this.j=[]}; mH=function(a,b,c){var d=g.qc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; iya=function(){this.j=new lH}; nH=function(a){this.j=a}; jya=function(a){a=[a,a.C].filter(function(d){return!!d}); for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a}; kya=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()}; lya=function(a,b,c){a.j&&oH({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})}; mya=function(a,b){a.j&&oH({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.yT}})}; nya=function(a,b){oH({daiStateTrigger:{errorType:a,contentCpn:b}})}; oH=function(a){g.Es("adsClientStateChange",a)}; pH=function(a){this.I=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.Ae=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; pya=function(a,b,c,d,e,f){f();var k=a.I.getVideoData(1),l=a.I.getVideoData(2);k&&(a.contentCpn=k.clientPlaybackNonce,a.videoId=k.videoId,a.j=k.X);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.Ae=!0,(a.I.S("send_csi_info_for_ad_to_video_killswitch")||Ax("_start",a.actionType))&& oya(a)))}; qya=function(a){a.u=!1;var b={};!a.I.S("web_player_csi_ctt_killswitch")&&a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});nx("video_to_ad",b,void 0)}; rya=function(a){a.u=!1;var b={};!a.I.S("web_player_csi_ctt_killswitch")&&a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});nx("ad_to_ad",b,void 0)}; qH=function(a){a.u=!1;var b={};!a.I.S("web_player_csi_ctt_killswitch")&&a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});nx("ad_to_video",b,void 0);a.I.S("html5_csi_delay_pbresume")&&(a.I.Ji().u=a.I.getCurrentTime(1));a.I.S("send_csi_info_for_ad_to_video_killswitch")||oya(a)}; oya=function(a){if(a.Ae)if(a.I.S("web_csi_via_jspb")){var b=new Oq,c=sya(a.B);g.D(b,21,c);g.D(b,7,4);c=new Mq;g.D(c,8,2);ye(b,22,c);g.D(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.D(b,76,a.contentCpn),a.videoId&&g.D(b,78,a.videoId)):(a.adCpn&&g.D(b,76,a.adCpn),a.adVideoId&&g.D(b,78,a.adVideoId));c=nra(a.actionType);a.adFormat&&!c&&g.D(b,12,a.adFormat);a.contentCpn&&g.D(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.D(b,28,a.adCpn);a.adVideoId&&g.D(b,20,a.adVideoId); zx(b,a.actionType)}else b={adBreakType:sya(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),c=nra(a.actionType),a.adFormat&&!c&&(b.adType=a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId), a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),mx(b,a.actionType)}; tya=function(a){a.Ae&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&(lx("apbs",void 0,a.actionType),g.Q("finalize_all_timelines")&&(a=a.actionType,kx(a),dx(a),jx(a))))}; sya=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; g.vya=function(a){return(a=uya[a.toString()])?a:"LICENSE"}; rH=function(){g.G.call(this);this.u=null;this.K=this.J=!1;this.C=new g.Bg;g.H(this,this.C)}; sH=function(a){a=a.Nw();return 1>a.length?NaN:a.end(a.length-1)}; wya=function(a,b,c){a.Nl()||a.getCurrentTime()>b||10d.length||(d[0]in Xya&&(f.clientName=Xya[d[0]]),d[1]in Yya&&(f.platform=Yya[d[1]]),f.applicationState=k,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.qJ=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)}; rJ=function(a,b,c,d,e,f,k){ZI.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=k;this.B=null;this.hide()}; sJ=function(a,b,c,d,e){XI.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")}; tJ=function(a,b){this.u=a;this.j=b}; uJ=function(a){return a.j-a.u}; vJ=function(a,b){return a.u+b*uJ(a)}; wJ=function(a,b,c){return uJ(a)?g.yh((b-a.u)/uJ(a),0,1):null!=c?c:Infinity}; xJ=function(a,b){g.rI.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.H(this,this.u);this.Ic=this.Da("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; yJ=function(a,b,c,d,e,f,k){sI.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.J=k;this.N=this.Da("ytp-ad-player-overlay-flyout-cta");this.B=this.Da("ytp-ad-player-overlay-instream-info");this.C=null;YAa(this)&& (a=Zh("div"),g.M(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new sJ(this.api,this.fb,this.layoutId,this.j,this.kb),c.Ba(a),c.init(OE("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.C=a);this.D=this.Da("ytp-ad-player-overlay-skip-or-preview");this.ya=this.Da("ytp-ad-player-overlay-progress-bar");this.Z=this.Da("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.H(this,this.u); this.hide()}; YAa=function(a){a=a.api.V();return g.JC(a)&&a.isMobile}; $Aa=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.lj(window.location.href);e&&d.push(e);e=g.lj(a);if(g.dc(d,e)||!e&&kb(a,"/"))if(g.Q("autoescape_tempdata_url")&&(d=document.createElement("a"),g.vh(d,a),a=d.href),a&&(a=Eca(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Lv()},b)),f){var f=parseInt(f,10);isFinite(f)&&0a}; g.rK=function(a,b){var c=g.aB(b.experiments,"bg_vm_reinit_threshold");b.S("always_reinit_bg_vm")&&(c=0);a.program&&(2===g.nK.state?0:pK(c))&&(Bx("bg_i",void 0,"player_att"),g.nK.initialize(a,function(){var d=a.serverEnvironment;Bx("bg_l",void 0,"player_att");oK=(0,g.R)();for(var e=0;et.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:SBa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:TBa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]|| "",platform:UBa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(z){g.Sv(z)}w&&(t={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});k.mdxContext=m;m=b.width;0< m&&(k.playerWidthPixels=Math.round(m));if(b=b.height)k.playerHeightPixels=Math.round(b);0!==c&&(k.vis=c);if(c=f.widgetReferrer)k.widgetReferrer=c.substring(0,128);g.AC(f)&&!f.S("embeds_enable_sending_ancestor_origins_killswitch")&&k&&(k.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:k}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk= !0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.ts(g.rs.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.cD(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.IQ&&(d.captionParams.deviceCaptionsLangPref=a.IQ);a.LD.length?d.captionParams.viewerSelectedCaptionLangs=a.LD:g.ZC(e)&&e.S("web_player_i_see_captions_2")&&(f=g.Zta(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&& a.S("html5_onesie_attach_po_token");k="onesie"!==a.fetchType&&a.S("html5_non_onesie_attach_po_token");if(f||k)a=a.V(),a.Pd&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Pd);e.S("fetch_att_independently")?d.attestationRequest={omitBotguardData:!0}:e.S("html5_exclude_bg_vm_data")&&(a=g.aB(e.experiments,"bg_vm_reinit_threshold"),d.attestationRequest={omitBotguardData:!pK(a)});return d}; XBa=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j)return c={context:g.vK(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.IJ(WBa),g.A(f,g.VH(b,c,d,void 0,void 0),2);e=f.u;return f.return(e)})}; YBa=function(a,b,c){var d=g.aB(b.experiments,"bg_vm_reinit_threshold");pK(d)&&XBa(a,c).then(function(e){e.botguardData&&g.rK(e.botguardData,b)},function(e){a.isDisposed()||(e=DB(e),a.Aa("attf",{error:e.errorCode}))})}; xK=function(){var a=ZBa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Wia.apply(null,[Xia.apply(null,g.u(b))].concat(g.u(c)));this.store=Zia(a,void 0,b)}; g.yK=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===k)d[f]=l;else if(Array.isArray(l)&&Array.isArray(k))d[f]=c?[].concat(g.u(k),g.u(l)):l;else if(!Array.isArray(l)&&g.Ra(l)&&!Array.isArray(k)&&g.Ra(k))d[f]=g.yK(k,l,c);else if(typeof l===typeof k)d[f]=l;else return b=new g.Js("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,oha:k,Na:l}),g.S(b),a}return d}; zK=function(a){this.u=a;this.C=this.j=0;this.B=-1}; AK=function(a){var b=ny(a.u,a.j);++a.j;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=ny(a.u,a.j),++a.j,d*=128,c+=(b&127)*d;return c}; BK=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.j+1<=a.u.totalLength;){0>c&&(c=AK(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:AK(a);break;case 1:a.j+=8;break;case 2:d=AK(a);a.j+=d;break;case 5:a.j+=4}}return!1}; CK=function(a,b){if(BK(a,b))return AK(a)}; $Ba=function(a,b){if(BK(a,b))return!!AK(a)}; DK=function(a,b){if(BK(a,b)){b=AK(a);var c=my(a.u,a.j,b);a.j+=b;return c}}; EK=function(a,b){if(a=DK(a,b))return g.ty(a)}; aCa=function(a,b,c){if(a=DK(a,b))return c(new zK(new hy([a])))}; FK=function(a,b){a=a instanceof Uint8Array?new hy([a]):a;return b(new zK(a))}; bCa=function(){this.j=0;this.B=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)}; GK=function(a,b){b=a.j+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;cd;d++)a.view.setUint8(a.j,c&127|128),c>>=7,a.j+=1;b=Math.floor(b/268435456)}for(GK(a,4);127>=7,a.j+=1;a.view.setUint8(a.j,b);a.j+=1}; IK=function(a,b,c){void 0!==c&&(HK(a,b<<3|0),HK(a,c))}; JK=function(a,b,c){void 0!==c&&IK(a,b,c?1:0)}; KK=function(a,b,c){void 0!==c&&(HK(a,b<<3|2),b=c.length,HK(a,b),GK(a,b),a.u.set(c,a.j),a.j+=b)}; LK=function(a,b,c){void 0!==c&&(cCa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),GK(a,1.2*c.length),b=vy(c,a.u.subarray(a.j)),a.j+b>a.u.length&&(GK(a,b),b=vy(c,a.u.subarray(a.j))),a.j+=b,dCa(a))}; cCa=function(a,b,c){c=void 0===c?2:c;HK(a,b<<3|2);a.B.push(a.j);a.B.push(c);a.j+=c}; dCa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.j-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}}; MK=function(a,b,c,d,e){c&&(cCa(a,b,void 0===e?3:e),d(a,c),dCa(a))}; eCa=function(a,b){var c=new bCa;b(c,a);return new Uint8Array(c.u.buffer,0,c.j)}; g.NK=function(a){var b=new zK(new hy([Oc(decodeURIComponent(a))]));a=EK(b,2);b=CK(b,4);var c=fCa[b];if("undefined"===typeof c)throw a=new g.Js("Failed to recognize field number",{name:"EntityKeyHelperError",Sga:b}),g.S(a),a;return{nU:b,entityType:c,entityId:a}}; g.OK=function(a,b){var c=new bCa;LK(c,2,a);a=gCa[b];if("undefined"===typeof a)throw b=new g.Js("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.S(b),b;IK(c,4,a);IK(c,5,1);b=new Uint8Array(c.u.buffer,0,c.j);return encodeURIComponent(g.Jc(b))}; PK=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))}; hCa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.yK(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))}; iCa=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 QK(a)}; QK=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;dd&&(d=-(d+1));g.ci(a,b,d);b.setAttribute("data-layer",String(c))}; g.hL=function(a){var b=a.V();if(!b.Ub)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.S("allow_poltergust_autoplay"))&&!JE(c);d=c.isLivePlayback&&(!b.S("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.S("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.dc(c.va,"ypc")&&!a&&(!g.AC(b)||f)}; tCa=function(a){a=g.iL(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.TI)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Aa("iqss",{trigger:d},!0),!0):!1}; jL=function(a){this.Y=a;this.u=this.j=NaN;this.B=g.aB(this.Y.experiments,"h5_csi_seek_latency_action_sampling")||1}; kL=function(a,b){this.Y=a;this.timerName="";this.C=!1;this.u=this.B=NaN;this.D=new jL(a);this.j=b||null;this.C=!1}; lL=function(a,b){ZG(b,void 0,a.timerName)}; uCa=function(a,b,c){var d=g.GC(b.B)&&!b.B.C;if(b.B.oh&&(CC(b.B)||"shortspage"===b.B.Ia||gD(b.B)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.P("TIMING_ACTION")||$q("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&$q("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Ji();for(var e=g.r(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,lx(f,d[f],a.timerName);d=a.j.Qz;e=g.r(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.ox(f,d[f],a.timerName);d=a.j;d.j={};d.Qz={}}g.ox("yt_pvis", Cx(),a.timerName);g.ox("yt_pt","html5",a.timerName);a.J!==b.clientPlaybackNonce||Number.isNaN(a.B)||(Ax("_start",a.timerName)?c=Sw(a.timerName)._start+a.B:g.Sv(new g.Js("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!Ax("pbs",a.timerName)&&a.tick("pbs",c)}}; vCa=function(a){if(a.j){var b=a.j;b.j={};b.Qz={}}a.C=!1;a.J=void 0;a.B=NaN}; mL=function(a,b){g.iv.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=kr(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author= b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new qD("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.rD(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0=a.length?0:b}; xCa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; g.oL=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.WD(a.u,b),g.H(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; pL=function(a,b){a.index=g.yh(b,0,a.length-1);a.startSeconds=0}; qL=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.oL(a);a.items=[];for(var d=g.r(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; ACa=function(a,b){var c,d,e,f,k,l;return g.B(function(m){if(1==m.j){c=g.jK();var n=a.V(),p={context:g.wK(a)};n.S("embeds_enable_sending_ancestor_origins_killswitch")||(p.playbackContext={contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}});n=n.embedConfig;var q=b.docid||b.video_id||b.videoId||b.id;if(!q){q=b.raw_embedded_player_response;if(!q&&!g.Q("parse_video_id_from_serialized_embedded_player_response_killswitch")){var t=b.embedded_player_response;t&&(q=JSON.parse(t))}if(q){var w,x,y,z, E,I,J;q=(null==(w=q)?void 0:null==(x=w.embedPreview)?void 0:null==(y=x.thumbnailPreviewRenderer)?void 0:null==(z=y.playButton)?void 0:null==(E=z.buttonRenderer)?void 0:null==(I=E.navigationEndpoint)?void 0:null==(J=I.watchEndpoint)?void 0:J.videoId)||null}else q=null}w=(w=q)?w:void 0;x=a.playlistId?a.playlistId:b.list;y=b.listType;if(x){var N;"user_uploads"===y?N={username:x}:N={playlistId:x};yCa(n,w,b,N);p.playlistRequest=N}else b.playlist?(N={templistVideoIds:b.playlist.toString().split(",")},yCa(n, w,b,N),p.playlistRequest=N):w&&(N={videoId:w},n&&(N.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=N);d=p;e=g.IJ(zCa);g.va(m,2);return g.A(m,g.VH(c,d,e),4)}if(2!=m.j)return f=m.u,k=a.V(),b.raw_embedded_player_response=f,m.return(new g.WD(k,b));l=g.xa(m);g.S(l);return m.return(a)})}; yCa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.sL=function(a,b){rL.get(a);rL.set(a,b)}; g.tL=function(a){g.iv.call(this);this.loaded=!1;this.player=a}; BCa=function(){this.u=[];this.j=[]}; g.uL=function(a,b){return b?a.j.concat(a.u):a.j}; g.vL=function(a,b){switch(b.kind){case "asr":CCa(b,a.u);break;default:CCa(b,a.j)}}; CCa=function(a,b){g.ac(b,function(c){return a.equals(c)})||b.push(a)}; g.wL=function(a){g.G.call(this);this.Y=a;this.u=new BCa;this.C=[]}; g.xL=function(a,b,c){g.wL.call(this,a);this.audioTrack=c;this.j=null;this.C=b.SD}; DCa=function(){this.j=10;this.Fh=!1}; ECa=function(a,b){var c=void 0===b?{}:b,d=void 0===c.ll?!1:c.ll;b=new DCa;b.Fh=(void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4)||d;if(a=g.aB(a.experiments,"html5_time_based_consolidation_ms"))b.j=a;return b}; g.FCa=function(a){this.j=a;this.D=new DCa;this.Tl=this.Sl=!1;this.Hk=2;this.K=20971520;this.X=8388608;this.J=120;this.rb=3145728;this.ya=62914560;this.vb=10485760;this.Ik=g.aB(this.j.experiments,"html5_min_readbehind_secs");this.Gv=g.aB(this.j.experiments,"html5_min_readbehind_cap_secs");this.Fv=g.aB(this.j.experiments,"html5_max_readbehind_secs");this.Lv=this.j.S("html5_trim_future_discontiguous_ranges");this.Ob=NaN;this.oh=0;this.Qp=this.bj=this.Fp=2;this.Ia=2097152;this.Pp=1048576;this.Wa=!1;this.Zf= 1800;this.Fk=5;this.xa=15;this.Cd=1;this.B=1.15;this.C=1.05;this.mj=1;this.Lk=!0;this.Ja=!1;this.iq=.8;this.Rb=!1;this.Pv=this.j.S("html5_update_representation_init_boxes");this.zj=!1;this.Db=6;this.Z=this.jb=!1;this.Jk=this.Wb=0;this.Qr=this.j.S("html5_append_init_while_paused");this.Ul=g.aB(this.j.experiments,"html5_post_interrupt_readahead");this.Hb=5E3;this.Ep=100;this.xj=10;this.Br=g.aB(this.j.experiments,"html5_ssdai_failure_retry_limit")||3;this.rk=this.j.experiments.ob("html5_clone_original_for_fallback_location"); this.Kv=this.j.experiments.ob("html5_ssdai_reset_on_video_only_killswitch");this.Rf=1;this.hh=1.6;this.ib=!1;this.ma=.5;this.Dc=2;this.kc=this.Hr=0;this.Ir=1.5;this.Dp=this.lh=.5;this.Sd=15;this.Ak=1;this.Gq=this.Gb=!1;this.Gk=0;this.lm=this.Cr=this.yk=this.Wl=this.Mk=!1;this.Lb=2;this.Zq=this.tj=!1;this.Ke=0;this.ag=this.Gp=this.va=this.Gr=this.fg=!1;this.Sa=!0;this.bd=this.Ub=this.Vl=this.Ra=!1;this.vj=!0;this.fh=!1;this.u="";this.xs=1048576;this.Wc=[];this.ys=this.j.S("html5_woffle_resume");this.Od= !1;this.Xa=!0;this.Aj=this.Sh=this.od=!1;this.rf=46800;this.xk=this.Eq=this.pj=this.dj=this.Yl=this.Pd=this.qb=!1;this.N=0;this.wj="";this.Tr=this.j.S("html5_disable_codec_for_playback_on_error");this.Th=this.Pr=this.yj=this.eh=!1;this.Xg=0;this.Iv=es();this.Vq=this.zk=!1;this.Rr=this.j.S("html5_skip_buffer_check_seek_to_head");this.Pc=!1;this.wq=!this.j.S("html5_reset_media_stream_discontinuity_killswitch");this.aj=!1;this.sf=8192;this.Ea=this.Tb=!1;this.Dq=1;this.Nv=this.j.S("html5_update_readahead_from_real_byterates"); this.Mv=this.j.S("html5_onesie_live");this.Hv=g.aB(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Kk=g.aB(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.vk=this.j.experiments.ob("html5_onesie_consume_media_slices");this.Jv=this.j.S("html5_self_init_consolidation");this.Fr=this.j.S("html5_stream_metadata");this.Ya=this.j.S("html5_onesie_ads");this.wk=this.j.S("html5_create_source_buffer_with_pending_slice");this.zs=this.j.S("html5_match_smb_cuepoints_start_secs");this.Xl= this.j.S("html5_prepare_buffer_before_init_append");this.Sr=this.j.S("html5_live_partial_response_resumable");this.le=this.j.S("html5_ssdai_log_ad_transition_info")}; GCa=function(a,b){1080Math.random()){var z=new g.Js("Unable to load player module",b,document.location&&document.location.origin);g.S(z)}li(e);t&&t(y)}; var w=m,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":li(f)}x&&x(y)}; l&&((k=a.I.V().cspNonce)&&m.setAttribute("nonce",k),g.Vj(m,g.Op(b)),k=g.Qh("HEAD")[0]||document.body,k.insertBefore(m,k.firstChild),g.Bf(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))}; ML=function(a,b,c){g.Cf.call(this,b,a);this.j=c}; g.NL=function(a){rH.call(this);var b=this;this.j=a;this.D={};this.listener=function(c){b.dispatchEvent(new ML(b,c.type,c))}}; PL=function(a,b,c,d,e){g.iv.call(this);var f=this;this.target=a;this.Hz=b;this.u=0;this.J=!1;this.C=new g.Ch(NaN,NaN);this.j=new g.gA(this);this.xa=this.B=this.K=null;g.H(this,this.j);b=d||e?4E3:3E3;this.X=new g.L(function(){OL(f,1,!1)},b,this); g.H(this,this.X);this.Z=new g.L(function(){OL(f,2,!1)},b,this); g.H(this,this.Z);this.ma=new g.L(function(){OL(f,512,!1)},b,this); g.H(this,this.ma);this.va=c&&0=c.width||!c.height||0>=c.height||g.Fw(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; bDa=function(a){var b=a.I.zb();b=b.isCued()||b.isError()?"none":g.BH(b)?"playing":"paused";a.mediaSession.playbackState=b}; cM=function(a){g.W.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.B=!1;this.Ld=this.j=null;var b=a.V();a.S("enable_new_paid_product_placement")&&!g.bD(b)?(this.u=new g.W({G:"a",L:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},U:[{G:"div",L:"ytp-paid-content-overlay-icon",oa:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",oa:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",oa:"{{chevron}}"}]}), this.T(this.u.element,"click",this.onClick)):this.u=new g.W({G:"div",Ga:["ytp-button","ytp-paid-content-overlay-text"],oa:"{{text}}"});this.C=new g.bJ(this.u,250,!1,100);g.H(this,this.u);this.u.Ba(this.element);g.H(this,this.C);this.I.ah(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Tc)}; dDa=function(a,b){var c=Ywa(b),d=oE(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.xp(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&cDa(a,d,c,b)):c&&d&&cDa(a,d,c,b)}; cDa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.L(a.Eb,b,a);g.H(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var k;f=null==b?void 0:null==(k=b.icon)?void 0:k.iconType;var l;k=null==e?void 0:null==(l=e.urlEndpoint)?void 0:l.url;a.I.fk(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=k?k:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",W:{fill:"none",height:"100%", viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:k?g.wI():null})}; eDa=function(a,b){a.j&&(g.V(b,8)&&a.B?(a.B=!1,a.qd(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))}; dM=function(a){g.W.call(this,{G:"div",L:"ytp-spinner",U:[UL(),{G:"div",L:"ytp-spinner-message",oa:"Si la reproducci\u00f3n no comienza en breve, intenta reiniciar el dispositivo."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.j=new g.L(this.show,500,this);g.H(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.zb();fDa(a)?this.j.start():this.hide()}; fDa=function(a){return g.V(a,128)?!1:g.V(a,16)||g.V(a,1)?!0:!1}; g.eM=function(a,b,c,d){d=void 0===d?!1:d;g.rI.call(this,b);var e=this;this.I=a;this.ya=d;this.K=new g.gA(this);this.X=new g.bJ(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())}); g.H(this,this.K);g.H(this,this.X)}; gDa=function(a){a.u&&(document.activeElement&&g.fi(a.element,document.activeElement)&&(hi(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.hv(a.K);a.N=void 0}; fM=function(a,b,c){a.og()?a.Eb():a.qd(b,c)}; gM=function(a){var b=g.TA(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ga:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {G:"div",Ga:["ytp-unmute-text"],oa:"Activar sonido"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ga:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.eM.call(this,a,{G:"button",Ga:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.Bb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange", this.rg);this.Pa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.AC(this.api.V());g.qI(this,a);a&&hDa(this);this.B=a}; hDa=function(a){a.j||(a.j=!0,a.api.bb(a.element,!0))}; g.iM=function(a){g.gA.call(this);var b=this;this.api=a;this.oG=!1;this.rl=null;this.Pz=!1;this.Le=null;this.AE=this.pC=!1;this.pI=this.rI=null;this.oN=NaN;this.oI=this.mw=!1;this.tx=0;this.UD=[];var c=a.V(),d=a.eb();this.aL=new g.L(this.AG,0,this);g.H(this,this.aL);g.LC(c)||(this.Ps=new RL(a),g.H(this,this.Ps),g.gL(a,this.Ps.element,4));if(iDa(this)){var e=new dM(a);g.H(this,e);e=e.element;g.gL(a,e,4)}var f=a.getVideoData();this.Id=new PL(d,function(l){return b.Hz(l)},f,c.Ke,dD(c)); g.H(this,this.Id);this.Id.subscribe("autohideupdate",this.Vj,this);if(!c.disablePaidContentOverlay){var k=new cM(a);g.H(this,k);g.gL(a,k.element,4)}this.uC=new gM(a);g.H(this,this.uC);g.gL(this.api,this.uC.element,2);this.GF=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.lC=new g.L(this.Hu,200,this);g.H(this,this.lC);this.aG=f.videoId;this.vP=new g.L(function(){b.tx=0},350); g.H(this,this.vP);this.Sz=new g.L(function(){b.oI||hM(b)},350,this); g.H(this,this.Sz);f=a.getRootNode();f.setAttribute("aria-label","Reproductor de video de YouTube");switch(c.color){case "white":g.M(f,"ytp-color-white")}g.LC(c)&&g.M(f,"ytp-music-player");!a.S("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new aM(a),g.H(this,f));this.T(a,"appresize",this.yb);this.T(a,"presentingplayerstatechange",this.rg);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.JX);this.T(a, "autonavvisibility",function(){b.qn()}); this.T(a,"sizestylechange",function(){b.qn()}); this.T(d,"click",this.hY,this);this.T(d,"dblclick",this.iY,this);c.Xa&&(this.T(d,"gesturechange",this.jY,this),this.T(d,"gestureend",this.kY,this));this.Uo=[d.cw];this.Ps&&this.Uo.push(this.Ps.element);e&&this.Uo.push(e)}; jM=function(a,b){if(!b)return!1;var c=a.api.yd();if(c.Jp()&&(c=c.Je())&&g.fi(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()}; iDa=function(a){a=$r()&&67<=Bma()&&!a.api.V().D;return!Zr("tizen")&&!xC&&!a&&!0}; mM=function(a,b){b=void 0===b?2:b;g.iv.call(this);this.api=a;this.j=null;this.Mc=new fv(this);g.H(this,this.Mc);this.u=XAa;this.Mc.T(this.api,"presentingplayerstatechange",this.Tc);this.j=this.Mc.T(this.api,"progresssync",this.Qb);this.pk=b;1===this.pk&&this.Qb()}; nM=function(a){g.W.call(this,{G:"button",Ga:["ytp-button","ytp-back-button"],U:[{G:"div",L:"ytp-arrow-back-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Jb:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.qI(this,a.V().showBackButton);this.Pa("click",this.onClick)}; g.oM=function(a){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",oa:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.I=a;this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,500,this);g.H(this,this.u);g.H(this,this.j);this.hide()}; qM=function(a,b,c){if(0>=b){c=FI();b="silenciado";var d=0}else c=c?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volumen";pM(a,c,b,d+"%")}; mDa=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.I.getPlaybackRate(),d=g.RF("La velocidad es de $RATE",{RATE:String(c)});pM(a,b,d,c+"x")}; nDa=function(a,b){b=b?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";pM(a,VCa(),b)}; pM=function(a,b,c,d){d=void 0===d?"":d;a.Na("label",void 0===c?"":c);dD(a.I.V())?a.Na("icon",null):a.Na("icon",b);g.xp(a.j);a.u.start();a.Na("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)}; sM=function(a,b,c){g.W.call(this,{G:"button",Ga:["ytp-button","ytp-cards-button"],W:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.AC(a.V()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[a.V().S("player_new_info_card_format")?vAa():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {G:"div",L:"ytp-cards-button-title",oa:"Informaci\u00f3n"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", L:"ytp-cards-button-title",oa:"Compras"}]}]});this.I=a;this.B=b;this.C=c;this.j=null;this.u=new g.bJ(this,250,!0,100);g.H(this,this.u);g.O(this.C,"ytp-show-cards-title",g.AC(a.V()));this.hide();this.Pa("click",this.onClicked);this.Pa("mouseover",this.hX);rM(this,!0)}; rM=function(a,b){b?a.j=g.tM(a.B.pc(),a.element):(a.j=a.j,a.j(),a.j=null)}; uM=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:a.V().S("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},U:[vAa()]},{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Cerrar"},U:[g.xI()]}]:[{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.I= a;this.X=b;this.Fi=c;this.C=new g.bJ(this,250,!1,250);this.j=null;this.K=new g.L(this.vX,300,this);this.J=new g.L(this.uX,2E3,this);this.D=[];this.u=null;this.N=new g.L(function(){d.element.style.margin="0"},250); this.B=null;g.H(this,this.C);g.H(this,this.K);g.H(this,this.J);g.H(this,this.N);a.V().S("player_new_info_card_format")?(g.M(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Da("ytp-cards-teaser-close-button"),"click",this.Si),this.T(this.Da("ytp-cards-teaser-info-icon"),"click",this.fI),this.T(this.Da("ytp-cards-teaser-label"),"click",this.fI)):this.Pa("click",this.fI);this.T(c.element,"mouseover",this.BJ);this.T(c.element,"mouseout",this.AJ);this.T(a,"cardsteasershow",this.HY);this.T(a, "cardsteaserhide",this.Eb);this.T(a,"cardstatechange",this.tQ);this.T(a,"presentingplayerstatechange",this.tQ);this.T(a,"appresize",this.CI);this.T(a,"onShowControls",this.CI);this.T(a,"onHideControls",this.NT);this.Pa("mouseenter",this.OR)}; wM=function(a){g.W.call(this,{G:"button",Ga:[vM.BUTTON,vM.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:vM.TITLE_NOTIFICATIONS_ON,W:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},U:[g.BI()]},{G:"div",L:vM.TITLE_NOTIFICATIONS_OFF,W:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},U:[{G:"svg",W:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.j=!1;a.Bb(this.element,this,36927);this.Pa("click",this.onClick,this);this.Na("pressed",!1);this.Na("label","Recibir notificaciones sobre todos los videos nuevos")}; oDa=function(a,b){a.j=b;a.element.classList.toggle(vM.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.KD:c.JD)?(a=a.api.bl())?PJ(a,b):g.hr(Error("No innertube service available when updating notification preferences.")):g.hr(Error("No update preferences command available.")):g.hr(Error("No video data when updating notification preferences."))}; g.yM=function(a,b,c,d,e,f,k,l,m,n,p,q,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var w=q.V();if(p){c={href:p,"aria-label":"Suscribirse al canal"};if(g.GC(w)||g.KC(w))c.target=w.J;g.W.call(this,{G:"div",Ga:["ytp-button","ytp-sb"],U:[{G:"a",L:"ytp-sb-subscribe",W:c,U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",oa:b}:""]}]});f&&g.M(this.element, "ytp-sb-classic");this.channelId=k;this.j=t}else{p=w.userDisplayName&&g.GC(w)&&!w.S("subscribe_tooltipkillswitch");g.W.call(this,{G:"div",Ga:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.RF("Suscribirse como $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":hD(w),"data-tooltip-opaque":String(g.AC(w)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]}, b?{G:"div",L:"ytp-sb-count",oa:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.RF("Suscrito como $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":hD(w),"data-tooltip-opaque":String(g.AC(w)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",oa:d}:""]}]});var x=this;this.channelId=k;this.j=t;var y=this.Da("ytp-sb-subscribe"), z=this.Da("ytp-sb-unsubscribe");f&&g.M(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var E=function(){var J=x.channelId;if(m||n){var N={c:J};if(q.V().S("embeds_botguard_with_subscribe_killswitch"))N="";else{var aa;g.nK.isInitialized()&&(aa=GBa(N));N=aa||""}if(aa=q.getVideoData())if(aa=aa.subscribeCommand){var K=q.bl();K?(PJ(K,aa,{botguardResponse:N,feature:m}),q.Oa("SUBSCRIBE",J)):g.hr(Error("No innertube service available when updating subscriptions."))}else g.hr(Error("No subscribe command in videoData.")); else g.hr(Error("No video data available when updating subscription."))}z.focus();z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},I=function(){var J=x.channelId; if(m||n){var N=q.getVideoData();PJ(q.bl(),N.unsubscribeCommand,{feature:m});q.Oa("UNSUBSCRIBE",J)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")}; this.T(y,"click",E);this.T(z,"click",I);this.T(y,"keypress",function(J){13===J.keyCode&&E(J)}); this.T(z,"keypress",function(J){13===J.keyCode&&I(J)}); this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.pc(),xM(this.tooltip),g.Bf(this,g.tM(this.tooltip,y)),g.Bf(this,g.tM(this.tooltip,z)))}else g.M(y,"ytp-sb-disabled"),g.M(z,"ytp-sb-disabled")}}; zM=function(a,b){g.W.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.V().J,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",oa:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().J,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3", L:"ytp-title-expanded-subtitle",oa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.Da("ytp-title-channel");this.j=this.Da("ytp-title-channel-logo");this.C=this.Da("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.AC(this.api.V());a.Bb(this.j,this,36925);this.D&&pDa(this);this.T(a,"videodatachange",this.Ka);this.T(a,"videoplayerreset",this.Ka);this.Ka();g.AC(this.api.V())&&(this.api.V().S("embeds_web_enable_hiding_login_buttons")||this.api.V().S("embeds_web_enable_always_hiding_login_buttons"))&& g.M(this.element,"ytp-flyout-fix-experiment")}; pDa=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.bd){var d=b.authUser?null:dBa(),e=new g.yM("Suscribirse",null,"Suscrito/a",null,!0,!1,c.sj,c.subscribed,"channel_avatar",null,d,a.api,a.J);a.subscribeButton=e;g.H(a,e);e.Ba(a.C);a.api.Bb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.xb(e.element)}); var f=new wM(a.api);a.u=f;g.H(a,f);f.Ba(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Sh&&f.show()}); a.T(a.api,"UNSUBSCRIBE",function(){c.Sh&&(f.hide(),oDa(f,!1))})}a.Na("flyoutUnfocusable","true"); a.Na("channelTitleFocusable","-1");b.isMobile?a.T(a.j,"click",function(k){qDa(a)&&(k.preventDefault(),a.isExpanded()?a.uE():a.RE());a.api.xb(a.j)}):(a.T(a.channel,"mouseenter",a.RE),a.T(a.channel,"mouseleave",a.uE),a.T(a.channel,"focusin",a.RE),a.T(a.channel,"focusout",function(k){a.channel.contains(k.relatedTarget)||a.uE()}),a.T(a.j,"click",function(){a.api.xb(a.j)})); a.B=new g.L(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.bb(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.bb(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.H(a,a.B);a.T(a.channel,rDa,function(){sDa(a)}); a.T(a.api,"onHideControls",a.zH);a.T(a.api,"appresize",a.zH);a.T(a.api,"fullscreentoggled",a.zH)}; sDa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; qDa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width}; tDa=function(a,b){var c={};a.api.V().xa&&g.uK(c,a.api.V().loaderUrl);return g.rj(b,g.tK(c,"emb_ch_name_ex"))}; g.AM=function(a,b,c,d){g.rI.call(this,a);this.priority=b;c&&this.Lf(c);d&&this.Bd(d)}; g.BM=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Ga:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",oa:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",oa:"{{label}}"},{G:"div",L:"ytp-menuitem-content",oa:"{{content}}"}]}}; CM=function(a,b){a.Na("icon",b)}; DM=function(a,b,c,d,e,f){var k={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={G:"div",L:"ytp-panel-header",U:[{G:"div",Ga:["ytp-panel-back-button-container"],U:[{W:{"aria-label":"Back to previous menu"},G:"button",Ga:["ytp-button",l]}]},{W:{tabindex:"0"},G:"span",Ga:[m],U:[c]}]};if(e){var p="ytp-panel-options";n.U.push({G:"button",Ga:["ytp-button",p],U:[d]})}k.U=[n]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,k.U?k.U.push(f):k.U=[f]);g.rI.call(this, k);this.content=b;d&&k.U?b.Ba(this.element,k.U.length-1):b.Ba(this.element);this.HM=!1;this.eV=d;c&&(c=this.Da(l),m=this.Da(m),this.T(c,"click",this.cO),this.T(m,"click",this.cO),this.HM=!0,e&&(p=this.Da(p),this.T(p,"click",e)));b.subscribe("size-change",this.iO,this);this.T(a,"fullscreentoggled",this.iO);g.O(this.element,"ytp-panel-min-width-killswitch",a.V().S("player_panel_min_width_killswitch"));this.I=a}; uDa=function(a,b){var c=new g.rI({G:"div",L:"ytp-multi-item-panel"});a.content.Ba(c.element);b.Ba(c.element);a.content=c;c.Ba(a.element);g.H(a,c)}; g.EM=function(a,b,c,d,e,f){b=void 0===b?null:b;var k={role:"menu"};b&&(k.id=b);b=new g.rI({G:"div",L:"ytp-panel-menu",W:k});DM.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)}; g.FM=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.SG,a);a.items=[];g.bi(a.menuItems.element);a.menuItems.ea("size-change")}; vDa=function(a,b){return b.priority-a.priority}; GM=function(a){var b=g.BM({"aria-haspopup":"true"});g.AM.call(this,b,a);this.Pa("keydown",this.j)}; HM=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; IM=function(a,b){g.AM.call(this,g.BM({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Pa("click",this.onClick)}; JM=function(a,b){g.W.call(this,{G:"div",L:"ytp-user-info-panel",W:{"aria-label":"Informaci\u00f3n del usuario"},U:a.V().authUser&&!a.S("embeds_web_always_enable_signed_out_state")?[{G:"div",L:"ytp-user-info-panel-icon",oa:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},oa:"{{watchingAsUsername}}"},{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},oa:"{{watchingAsEmail}}"}]}]: [{G:"div",L:"ytp-user-info-panel-icon",oa:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",U:[{G:"text",W:{tabIndex:"{{userInfoFocusable}}"},oa:"Saliste de la cuenta"}]},{G:"div",L:"ytp-user-info-panel-login",U:[{G:"a",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},oa:a.V().bd?"":"Acceder a YouTube"}]}]}]});this.Ua=a;this.j=b;a.V().authUser||a.V().bd||(a=this.Da("ytp-user-info-panel-login"),this.T(a,"click",this.QR));this.T(window,"blur",this.hide);this.T(document,"click",this.PR); this.Ka()}; KM=function(a,b,c,d){g.EM.call(this,a);this.sb=c;this.yc=d;this.getVideoUrl=new GM(6);this.Kj=new GM(5);this.Gj=new GM(4);this.Nb=new GM(3);this.Yx=new g.AM(g.BM({href:"{{href}}",target:this.I.V().J},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.AM(g.BM(),1,"Estad\u00edsticas");this.Ns=new g.rI({G:"div",Ga:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},oa:"{{text}}"});this.yL=new DM(this.I,this.Ns);this.Iy=this.Jo=null;g.AC(this.I.V())&& this.I.S("embeds_web_enable_user_info_in_context_menu")&&(this.jj=new g.AM(g.BM(),8,"Informaci\u00f3n del usuario"),g.H(this,this.jj),this.xc(this.jj,!0),this.jj.Pa("click",this.uY,this),a.Bb(this.jj.element,this.jj,137682));this.I.V().wj&&(this.Pi=new IM("En bucle",7),g.H(this,this.Pi),this.xc(this.Pi,!0),this.Pi.Pa("click",this.oX,this),a.Bb(this.Pi.element,this.Pi,28661));g.H(this,this.getVideoUrl);this.xc(this.getVideoUrl,!0);this.getVideoUrl.Pa("click",this.eX,this);a.Bb(this.getVideoUrl.element, this.getVideoUrl,28659);g.H(this,this.Kj);this.xc(this.Kj,!0);this.Kj.Pa("click",this.fX,this);a.Bb(this.Kj.element,this.Kj,28660);g.H(this,this.Gj);this.xc(this.Gj,!0);this.Gj.Pa("click",this.dX,this);a.Bb(this.Gj.element,this.Gj,28658);g.H(this,this.Nb);this.xc(this.Nb,!0);this.Nb.Pa("click",this.cX,this);g.H(this,this.Yx);this.xc(this.Yx,!0);this.Yx.Pa("click",this.dY,this);g.H(this,this.showVideoInfo);this.xc(this.showVideoInfo,!0);this.showVideoInfo.Pa("click",this.vY,this);g.H(this,this.Ns); this.Ns.Pa("click",this.QW,this);g.H(this,this.yL);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Pb("Chromium")&&(b=!0);40>=Pb("Firefox")&&(b=!1);b&&(this.Jo=new g.W({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.H(this,this.Jo),this.Jo.Ba(this.element));var e;null==(e=this.jj)||CM(e,yAa());var f;null==(f=this.Pi)||CM(f,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z", fill:"white"}}]});CM(this.Nb,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});CM(this.Yx,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]});CM(this.showVideoInfo,uAa());this.T(a,"loopchange",this.sO);this.T(a,"videodatachange",this.onVideoDataChange);wDa(this);xDa(this,this.I.getVideoData())}; MM=function(a,b){var c=!1;if(a.Jo){var d=a.Jo.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.sb.Eb():(a.Ns.Bd(b,"text"),g.LM(a.sb,a.yL),VL(a.Ns.element),a.Jo&&(a.Jo=null,wDa(a)));return c}; xDa=function(a,b){var c=a.I.V(),d=2===a.I.getPresentingPlayerType(),e=!d||b.isListed;e=!c.N&&!!b.videoId&&e;"play"!==c.playerStyle?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.u&&(c.fmt=b.u.Yb()),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.ya&&(c.partnerid=b.ya),c=g.rj("//support.google.com/googleplay/",c));g.qI(a.Gj,e&&b.allowEmbed);g.qI(a.getVideoUrl,e);g.qI(a.Kj,e&&!b.isLivePlayback); a.Yx.Bd(c,"href");var f;null==(f=a.Pi)||g.qI(f,!b.isLivePlayback&&!d);var k;null==(k=a.jj)||g.qI(k,!d)}; wDa=function(a){var b=!!a.Jo;a.Nb.Lf(b?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");HM(a.Nb,!b);a.Gj.Lf(b?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");HM(a.Gj,!b);a.getVideoUrl.Lf(b?"Copiar URL del video":"Obtener la URL del video");HM(a.getVideoUrl,!b);a.Kj.Lf(b?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");HM(a.Kj,!b);CM(a.Gj,b?sAa():null);CM(a.getVideoUrl,b?zI(): null);CM(a.Kj,b?zI():null)}; g.NM=function(a,b){g.eM.call(this,a,{G:"div",Ga:["ytp-popup",b||""]},100,!0);this.j=[];this.J=this.C=null;this.fz=this.maxWidth=0;this.size=new g.Eh(0,0);this.Pa("keydown",this.RR)}; yDa=function(a){var b=a.j[a.j.length-1];if(b){g.Tm(a.element,a.maxWidth||"100%",a.fz||"100%");b.I.V().S("player_panel_min_width_killswitch")&&g.Jm(b.element,"minWidth","250px");g.Jm(b.element,"width","");g.Jm(b.element,"height","");g.Jm(b.element,"maxWidth","100%");g.Jm(b.element,"maxHeight","100%");g.Jm(b.content.element,"height","");var c=g.Um(b.element);c.width+=1;c.height+=1;g.Jm(b.element,"width",c.width+"px");g.Jm(b.element,"height",c.height+"px");g.Jm(b.element,"maxWidth","");g.Jm(b.element, "maxHeight","");var d=0;b.HM&&(d=b.Da("ytp-panel-header"),d=g.Um(d).height);var e=0;b.eV&&(e=b.Da("ytp-panel-footer"),g.Jm(e,"width",c.width+"px"),e=g.Um(e).height);g.Jm(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];OM(a,b,c,!0)}}; OM=function(a,b,c,d){zDa(a);b&&(b.unsubscribe("size-change",a.Nu,a),b.unsubscribe("back",a.Ch,a));c.subscribe("size-change",a.Nu,a);c.subscribe("back",a.Ch,a);if(a.ub){g.M(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ba(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;yDa(a);g.Tm(a.element,e);a.C=new g.L(function(){ADa(a,b,c,d)},20,a); a.C.start()}else c.Ba(a.element),b&&b.detach()}; ADa=function(a,b,c,d){a.C.dispose();a.C=null;g.M(a.element,"ytp-popup-animating");d?(g.M(b.element,"ytp-panel-animate-forward"),g.Dp(c.element,"ytp-panel-animate-back")):(g.M(b.element,"ytp-panel-animate-back"),g.Dp(c.element,"ytp-panel-animate-forward"));g.Tm(a.element,a.size);a.J=new g.L(function(){g.Dp(a.element,"ytp-popup-animating");b.detach();g.Ep(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a); a.J.start()}; zDa=function(a){a.C&&g.wp(a.C);a.J&&g.wp(a.J)}; g.QM=function(a,b,c){g.NM.call(this,a);this.xa=b;this.yc=c;this.B=new g.gA(this);this.Z=new g.L(this.MY,1E3,this);this.ma=this.D=null;g.H(this,this.B);g.H(this,this.Z);a.Bb(this.element,this,28656);g.M(this.element,"ytp-contextmenu");BDa(this);this.hide()}; BDa=function(a){g.hv(a.B);if("gvn"!==a.I.V().playerStyle){var b=a.I.eb();a.B.T(b,"contextmenu",a.NW);a.B.T(b,"touchstart",a.TR,null,!0);a.B.T(b,"touchmove",a.LO,null,!0);a.B.T(b,"touchend",a.LO,null,!0)}}; CDa=function(a){a.I.isFullscreen()?g.gL(a.I,a.element,10):a.Ba(document.body)}; g.RM=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{G:"button",Ga:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.AC(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",oa:"{{icon}}"},{G:"div",L:"ytp-copylink-title",oa:"Copiar v\u00ednculo",W:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.pc();b=a.V();xM(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.AC(b)&&!g.LC(b));a.Bb(this.element,this,86570);this.Pa("click", this.onClick);this.T(a,"videodatachange",this.Ka);this.T(a,"videoplayerreset",this.Ka);this.T(a,"appresize",this.Ka);this.Ka();g.Bf(this,g.tM(this.tooltip,this.element))}; DDa=function(a){a.Na("icon",uI());if(a.api.V().isMobile)SM(a.tooltip,a.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{a.Na("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");TM(a.tooltip);SM(a.tooltip,a.element);var b=a.Pa("mouseleave",function(){a.wc(b);a.Ka();a.tooltip.Dj()})}}; EDa=function(a,b){return g.B(function(c){if(1==c.j)return g.va(c,2),g.A(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.xa(c);var d=c.return,e=!1,f=g.$h("TEXTAREA");f.value=b;f.setAttribute("readonly","");var k=a.api.getRootNode();k.appendChild(f);if(gs){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}k.removeChild(f); return d.call(c,e)})}; UM=function(){g.W.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Ga:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{G:"div",L:"ytp-seek-arrows-container",U:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text",oa:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,700,this); g.H(this,this.u);g.H(this,this.j);this.hide()}; VM=function(a){g.W.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div", L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text-legacy",oa:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.L(this.show,10,this);this.u=new g.L(this.hide,700,this);this.j=this.Da("ytp-doubletap-static-circle");g.H(this,this.B);g.H(this,this.u);this.hide();this.C=this.Da("ytp-doubletap-fast-forward-ve");this.D=this.Da("ytp-doubletap-rewind-ve");this.I.Bb(this.C,this,28240);this.I.Bb(this.D,this,28239);this.I.bb(this.C,!0);this.I.bb(this.D, !0)}; FDa=function(a,b){b=g.RF("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:b.toString()});a.Na("seekTime",b)}; WM=function(a){var b=null;try{b=a.toLocaleString("es-419",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; XM=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1}; GDa=function(a,b){for(var c=0,d=g.r(a),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.j/2;if(b=e.timeRangeStartMillis-f&&bd;e={vn:e.vn},f++){e.vn=c[f];a:switch(e.vn.img||e.vn.iconId){case "facebook":var k={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":k={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:k=null}k&&(k=new g.W({G:"a",Ga:["ytp-share-panel-service-button","ytp-button"],W:{href:e.vn.url,target:"_blank",title:e.vn.sname||e.vn.serviceName},U:[k]}),k.Pa("click",function(m){return function(n){if(g.qJ(n)){var p=m.vn.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var t=q;t||(t={});q=window;var w=p instanceof g.Xg?p:g.bh("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.crossOriginIsolated, y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);var z="unsafe-url"===y;y=t.noreferrer;if(x&&y){if(z)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");y=!1}p=t.target||p.target;x=[];for(var E in t)switch(E){case "width":case "height":case "top":case "left":x.push(E+"="+t[E]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(E+"="+(t[E]?1:0))}E=x.join(",");Ub()&& q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(t=g.$h("A"),g.vh(t,w),t.setAttribute("target",p),y&&t.setAttribute("rel","noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,q,1),t.dispatchEvent(w),q={}):y?(q=wh("",q,p,E),w=g.Yg(w),q&&(g.eD&&g.vb(w,";")&&(w="'"+w.replace(/'/g,"%27")+"'"),q.opener=null,""===w&&(w="javascript:''"),w=g.uh(g.Pg("b/12014412, meta tag with sanitized URL"),''),(t=q.document)&&t.write&&(t.write(g.rh(w)),t.close()))):(q=wh(w,q,p,E))&&t.noopener&&(q.opener=null);q&&(q.opener||(q.opener=window),q.focus());g.wu(n)}}}(e)),g.Bf(k,g.tM(a.tooltip,k.element)),a.j.push(k),d++)}var l=b.more||b.moreLink; b=new g.W({G:"a",Ga:["ytp-share-panel-service-button","ytp-button"],U:[{G:"span",L:"ytp-share-panel-service-button-more",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],W:{href:l,target:"_blank",title:"M\u00e1s"}});b.Pa("click",function(m){g.TL(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")}); g.Bf(b,g.tM(a.tooltip,b.element));a.j.push(b);a.Na("buttons",a.j)}; QDa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.zf(c);a.j=[]}; pN=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.Xa=b;this.Ra=this.K=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ia=new g.L(function(){d.badge.element.style.width=""},200,this); this.Z=new g.L(function(){nN(d);oN(d)},200,this); this.dismissButton=new g.W({G:"button",Ga:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.J=new g.W({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",oa:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.J);this.badge=new g.W({G:"button",Ga:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}: "",this.J]});g.H(this,this.badge);this.badge.Ba(this.element);this.N=new g.bJ(this.badge,250,!1,100);g.H(this,this.N);this.xa=new g.bJ(this.J,250,!1,100);g.H(this,this.xa);this.Ja=new g.tp(this.TZ,null,this);g.H(this,this.Ja);this.ma=new g.tp(this.lU,null,this);g.H(this,this.ma);g.H(this,this.Ia);g.H(this,this.Z);this.I.ah(this.badge.element,this.badge,!0);this.I.ah(this.dismissButton.element,this.dismissButton,!0);this.T(this.I,"onHideControls",function(){d.j=!1;oN(d);nN(d);d.ri()}); this.T(this.I,"onShowControls",function(){d.j=!0;oN(d);nN(d);d.ri()}); this.T(this.badge.element,"click",this.BG);this.T(this.dismissButton.element,"click",this.CG);this.T(this.I,"pageTransition",this.XR);this.T(this.I,"appresize",this.ri);this.T(this.I,"fullscreentoggled",this.aX);this.T(this.I,"cardstatechange",this.HW);this.T(this.I,"annotationvisibility",this.v_,this);this.T(this.I,"offlineslatestatechange",this.w_,this)}; nN=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)}; oN=function(a,b){var c=a.K||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ja.stop(),a.ma.stop(),a.Ia.stop(),a.Ja.start()):(g.qI(a.J,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),SDa(a))}; SDa=function(a){a.C&&a.I.bb(a.badge.element,a.sy());a.D&&a.I.bb(a.dismissButton.element,a.sy()&&(a.K||a.j||!a.u))}; TDa=function(a){var b=a.text||"";g.gi(g.Vh("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Sa?a.Sa:"")}; UDa=function(a,b){b?a.D&&a.I.xb(a.dismissButton.element):a.C&&a.I.xb(a.badge.element)}; qN=function(a,b){pN.call(this,a,b);var c=this;this.X=this.ya=this.Ea=!1;this.T(this.I,g.Kw("shopping_overlay_visible"),function(){c.Oe(!0)}); this.T(this.I,g.Lw("shopping_overlay_visible"),function(){c.Oe(!1)}); this.T(this.I,g.Kw("shopping_overlay_expanded"),function(){c.K=!0;oN(c)}); this.T(this.I,g.Lw("shopping_overlay_expanded"),function(){c.K=!1;oN(c)}); this.T(this.I,"changeProductsInVideoVisibility",this.LX);this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,"paidcontentoverlayvisibilitychange",this.EX)}; rN=function(a){a.I.kf("shopping_overlay_visible");a.I.kf("shopping_overlay_expanded")}; sN=function(a){g.eM.call(this,a,{G:"button",Ga:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",oa:"Omitir introducci\u00f3n"}]},100);var b=this;this.D=!1;this.C=new g.L(function(){b.hide()},5E3); this.j=this.B=NaN;g.H(this,this.C);this.ma=function(){b.show()}; this.Z=function(){b.hide()}; this.J=function(){var c=b.I.getCurrentTime();c>b.B/1E3&&c=m&&(q-=1/n);p-=2/n;a=a.style;a.width=p+"px";a.height=q+"px";e||(d=(d-q)/2,c=(c-p)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+ ") "+t+"px "+w+"px/"+(null!=k?k:f)+"px "+l+"px"}; g.AN=function(a){g.W.call(this,{G:"div",L:"ytp-storyboard-framepreview",U:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Da("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.gA(this);this.j=new g.bJ(this,100);g.H(this,this.events);g.H(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Tc)}; BN=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){BN(a,a.api.jh())}),a.events.T(a.api,"progresssync",a.Gd),a.events.T(a.api,"appresize",a.D)),a.B=NaN,CN(a),a.j.show(200)):(c&&g.hv(a.events),a.j.hide(),a.j.stop())}; CN=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.eb().getPlayerSize(),e=ND(b,d.width);c=swa(b,e,c);c!==a.B&&(a.B=c,qwa(b,c,d.width),b=owa(b,c,d.width),zN(a.C,b,d.width,d.height))}; DN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Ga:["ytp-fullerscreen-edu-text"],oa:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{G:"div",Ga:["ytp-fullerscreen-edu-chevron"],U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ua=a;this.B=b;this.j=new g.bJ(this,250,void 0,100);this.C=this.u=!1;a.Bb(this.element, this,61214);this.B=b;g.H(this,this.j);this.T(a,"fullscreentoggled",this.Ka);this.T(a,"presentingplayerstatechange",this.Ka);this.Pa("click",this.onClick);this.Ka()}; g.EN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.j=g.tM(this.u.pc(),this.element);this.B=new g.L(this.HT,2E3,this);g.H(this,this.B);this.T(a,"fullscreentoggled",this.hj);this.T(a,"presentingplayerstatechange",this.Ka);this.Pa("click",this.onClick);g.bv()&&(b=this.I.eb(),this.T(b,ppa(),this.KG),this.T(b,ev(document),this.Rm));a.V().Xa||a.V().D||this.disable();a.Bb(this.element,this, 139117);this.Ka();this.hj(a.isFullscreen())}; FN=function(a,b,c){xN.call(this,a,b,c,"timedMarkerCueRange");this.T(a,g.Lw("timedMarkerCueRange"),this.Qb)}; GN=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[zAa()]});this.I=a;this.visible=!1;this.Pa("click",this.onClick);this.T(a,"fullscreentoggled",this.Ka);this.Na("title",WL(a,"Reproductor en miniatura","i"));g.Bf(this,g.tM(b.pc(),this.element));a.Bb(this.element,this,62946);this.Ka()}; HN=function(a,b,c){g.W.call(this,{G:"button",Ga:["ytp-multicam-button","ytp-button"],W:{title:"Cambiar la c\u00e1mara","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z", fill:"#fff"}}]}]});var d=this;this.I=a;this.j=!1;this.u=new g.L(this.B,400,this);this.tooltip=b.pc();xM(this.tooltip);g.H(this,this.u);this.Pa("click",function(){fM(c,d.element,!1)}); this.T(a,"presentingplayerstatechange",function(){d.Ka(!1)}); this.T(a,"videodatachange",this.onVideoDataChange);this.Ka(!0);g.Bf(this,g.tM(this.tooltip,this.element))}; IN=function(a){g.eM.call(this,a,{G:"div",L:"ytp-multicam-menu",W:{role:"dialog"},U:[{G:"div",L:"ytp-multicam-menu-header",U:[{G:"div",L:"ytp-multicam-menu-title",U:["Cambiar la c\u00e1mara",{G:"button",Ga:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Cerrar"},U:[g.xI()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.gA(this);this.items=this.Da("ytp-multicam-menu-items");this.j=[];g.H(this,this.B);a=this.Da("ytp-multicam-menu-close");this.T(a,"click",this.Eb); this.hide()}; JN=function(){g.G.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.tp(this.j,null,this);g.H(this,this.delay)}; YDa=function(a,b){if("path"===b.G)return b.W.d;if(b.U)for(var c=0;c=l)break}a.u=e}for(;a.thumbnails.length>a.u.length;)e=void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.lengthd.length;)c=void 0,null==(c=a.j.pop())||c.dispose();for(;a.j.length=f&&z<=k&&d.push(w)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,t=p.j[q-1];void 0!==t&&0a.qb&&(a.qb=m/f),d=!0)}c++}}return d}; eO=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.S("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:JE(d))&&b.airingStart&&b.airingEnd?xEa(a,b.airingStart,b.airingEnd):xEa(a,b.seekableStart,b.seekableEnd);d=wJ(c,b.loaded,0);b=wJ(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;fO(a,b,d);e&&gO(a);yEa(a)}}}; xEa=function(a,b,c){return hO(a)?new tJ(Math.max(b,a.Vb.startTimeMs/1E3),Math.min(c,a.Vb.endTimeMs/1E3)):new tJ(b,c)}; jO=function(a,b){var c=vJ(a.B,b.B);if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Ia)}; AEa=function(a,b,c,d){b=g.yh(b,0,a.C?60:40);a.N=b;var e=a.Xa;a.Xa=b/(a.C?60:40)*(Math.max(uJ(a.B)/a.D,1)-1)+1;b=a.D*a.Xa;a.ya=g.yh(d*b-c,0,b-a.D);e!==a.Xa&&gO(a)}; gO=function(a){if(1!==a.j.length||YN(a))a.Cd.style.removeProperty("height");else{var b=dO(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Fba(a.ib),f=0;if(a.N>.2*(a.C?60:40)){for(var k=uJ(a.B)/60*d,l=Math.ceil(uJ(a.B)/60*c);l=f;c--)g.di(e[c]);a.element.style.height=a.N+(a.C?8:5)+"px";a.ea("height-change",a.N);a.Cd.style.height=a.N+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Sa));for(f=e.next();!f.done;f=e.next())BEa(a,f.value);kO(a);fO(a,a.Z,a.jb)}; dO=function(a){var b=a.Lb.x,c=a.D*a.Xa;b=g.yh(b,0,a.D);a.Ke.update(b,a.D,-a.ya,-(c-a.ya-a.D));return a.Ke}; lO=function(a){return(a.C?135:90)-(a.C?54:48)}; fO=function(a,b,c){a.Z=b;a.jb=c;var d=dO(a),e=a.B.j,f=vJ(a.B,a.Z),k=g.RF("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.pJ(f,!0),DURATION:g.pJ(e,!0)}),l=XM(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+k:k});e=a.clipStart;f=a.clipEnd;a.Vb&&2!==a.api.getPresentingPlayerType()&&(e=a.Vb.startTimeMs/1E3,f=a.Vb.endTimeMs/1E3);e=wJ(a.B,e,0);l=wJ(a.B,f,1);k=a.api.getVideoData();f=g.yh(b,e,l);c=(null==k?0:g.GE(k))?1:g.yh(c,e, l);b=vEa(a,b,d);g.Jm(a.fg,"transform","translateX("+b+"px)");mO(a,d,e,f,"PLAY_PROGRESS");(null==k?0:JE(k))?(b=a.api.getProgressState().seekableEnd)&&mO(a,d,f,wJ(a.B,b),"LIVE_BUFFER"):mO(a,d,e,c,"LOAD_PROGRESS");if(a.api.S("web_player_heat_map_played_bar")){var m;null!=(m=a.J[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}}; mO=function(a,b,c,d,e){var f=a.j.length,k=b.j-a.Ia*(a.C?3:2),l=c*k;c=iO(a,l);var m=d*k;k=iO(a,m);"HOVER_PROGRESS"===e&&(k=iO(a,b.j*d,!0),m=b.j*d-CEa(a,b.j*d)*(a.C?3:2));b=Math.max(l-DEa(a,c),0);for(d=c;d=a.j.length)return a.D;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; vEa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),k=f.next();!k.done;k=f.next())k=k.value,d>k.startTime&&0e?0:e)+c.u}; CEa=function(a,b){for(var c=a.j.length,d=0,e=g.r(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d}; g.oO=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.sf=b;a.D=c;a.C=d;YN(a)&&null!=(b=a.u)&&(b.J=d);gO(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.bO(a);a.u&&(a.u.K=a.D,f&&YN(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.Ea.style.height=c+"px",g.Jm(a.xa,"transform","translateY("+-d+"px)"),g.Jm(a.Ic,"transform","translateY("+-d+"px)")),mEa(a.u)))}; kO=function(a){var b=!!a.Vb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Vb?(c=a.Vb.startTimeMs/1E3,d=a.Vb.endTimeMs/1E3):(e=c>a.B.u,f=0a.Z);g.O(a.Cd,"ytp-scrubber-button-hover",c===d&&1=this.settingsMenu.oC&&(c.showMiniplayerButton&&!a.V().S("web_player_pip")&&(this.D=new GN(a,b),g.H(this,this.D),this.D.Ba(e.element)),this.Z.Ba(e.element),l.DD||this.Z.hide(),c.vb||(l=new $O(a,b),g.H(this,l),l.Ba(e.element)),c.jb&&(l=new qO(a,b,this.settingsMenu),g.H(this,l),l.Ba(e.element)),c.vk&&(c=new tN(a,b),g.H(this, c),c.Ba(e.element)));g.H(this,this.Ia);this.Ia.Ba(e.element);g.H(this,this.Xd);this.T(a,"appresize",this.yb);this.T(a,"fullscreentoggled",this.yb);this.T(a,"presentingplayerstatechange",this.kD);this.T(a,"videodatachange",this.onVideoDataChange);this.yb()}; UEa=function(a,b){a.I.zb().isCued()||b?b&&(a.ma.hide(),a.va.hide(),a.muteButton&&a.muteButton.lc(!1),a.C&&a.C.lc(!1),a.D&&a.D.lc(!1),a.B.pc().Dj(a.u.element)):b||(a.ma.show(),a.va.show(),a.muteButton&&a.muteButton.lc(!0),a.C&&a.C.lc(!0),a.D&&a.D.lc(!0),a.Vj())}; VEa=function(a){var b=a.I.eb().getPlayerSize().width;return Math.max(b-2*kP(a),100)}; kP=function(a){var b=a.B.bf();return 12*(a.I.getVideoData().D?0:b?2:1)}; lP=function(a){var b=a.B.bf()?72:50;a=a.I.V();g.ZC(a)&&(b=54,kva(a)&&(b=62));return b}; mP=function(a,b){pN.call(this,a,b,!1);var c=this;this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,g.Kw("suggested_action_button_visible"),function(){c.Oe(!0)}); this.T(this.I,g.Lw("suggested_action_button_visible"),function(){c.Oe(!1)})}; nP=function(a){a.I.kf("suggested_action_button_visible")}; pP=function(a){g.W.call(this,{G:"div",L:oP.TITLE,U:[{G:"div",L:oP.TEXT,U:[{G:"a",Ga:[oP.LINK,oP.SESSIONLINK],W:{target:a.V().J,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},oa:"{{title}}"},{G:"div",L:oP.SUBTEXT,U:[{G:"a",L:oP.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},oa:"{{channelName}}"}]}]}]});this.api=a;this.j=null;this.link=this.Da(oP.LINK);a.Bb(this.element,this,23851);this.T(a,"videodatachange",this.Ka);this.T(a,"videoplayerreset", this.Ka);this.Ka()}; WEa=function(a){a.Na("channelLink","");a.Na("channelName","");a.Na("channelTitleFocusable","-1")}; g.qP=function(a,b){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-tooltip-text-wrapper",U:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"g",U:[{G:"rect",W:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",U:[{G:"g",U:[{G:"polygon",W:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",W:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path", W:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",oa:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",oa:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",oa:"{{duration}}"}]}]});var c=this;this.api=a;this.Ea=b;this.env=this.api.V();this.ya=this.env.isMobile;this.bg=this.Da("ytp-tooltip-bg");this.image=this.Da("ytp-tooltip-image");this.text=this.Da("ytp-tooltip-text"); this.title=this.Da("ytp-tooltip-title");this.X=function(d){(d=uu(d))&&g.fi(c.u,d)||c.Bk()}; this.C=function(d){3===c.type&&c.Bk();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.X),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.X),XEa(c,d,2))}; this.Z=function(){c.Bk()}; this.u=null;this.D=new g.bJ(this,100);this.type=null;this.N=!1;this.j=null;this.B=NaN;this.J="";this.lD=this.api.eb().getPlayerSize().width;this.K=!0;this.scale=1;this.ma=new g.L(this.zV,250,this);this.xa=new g.L(this.Bk,5E3,this);g.H(this,this.D);g.H(this,this.ma);g.H(this,this.xa);wC&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))}; xM=function(a){a.element.setAttribute("aria-live","polite")}; TEa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:rP(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.K=b}; $Ea=function(a,b,c,d,e,f,k,l){if(!a.ya||a.env.D){3===a.type&&a.Bk();1!==a.type&&(g.Ap(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.jh(),a.j&&a.j.subscribe("l",a.oO,a));a.update({text:d,title:null!=k?k:""});g.O(a.text,"ytp-tooltip-text-no-title",1===a.type&&!k);g.O(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=ND(a.j,160*a.scale),a.env.S("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=swa(a.j,d,c));YEa(a,d);if(l)switch(c=g.Um(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"}ZEa(a,!!e,b,f)}}; g.sP=function(a){1===a.type&&a.Bk()}; g.tM=function(a,b){if(a.ya)return function(){}; b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.Bk();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}}; SM=function(a,b,c){if(a.type)if(3===a.type)a.Bk();else return;XEa(a,b,3,c)}; XEa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Js("showElementTooltip called with non-element.",b.toString()),g.S(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.N=!!d;d?a.J=d:(a.J=b.getAttribute("title"),b.removeAttribute("title"));g.Ap(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.O(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.O(a.element,"ytp-tooltip-opaque",!!b);a.type= c;a.api.addEventListener("appresize",a.Z);a.K&&(rP(a),a.D.show(0))}}; rP=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.N){var c=a.u;a.Na("text",b);var d=c.getAttribute("data-duration");a.update({title:a.J,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,k=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=k+"px "+l+"px";g.Cp(a.element,["ytp-text-detail","ytp-preview"]); g.O(a.element,"ytp-has-duration",!!d)}else a.Na("text",a.J),g.Ep(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);ZEa(a,!!b)}; ZEa=function(a,b,c,d){var e=Math.min(a.lD,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ea.Wq(a.element,a.u,c,1===a.type,d);a.element.style.top?g.M(a.element,"ytp-bottom"):a.element.style.bottom&&g.M(a.element,"ytp-top");3===a.type&&a.xa.start()}; TM=function(a){a.u&&!a.N&&a.u.hasAttribute("title")&&(a.J=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&rP(a))}; YEa=function(a,b){g.O(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=owa(a.j,a.B,b);zN(a.bg,d,b,c,!0);a.ma.start()}}; aFa=function(a){var b=a.u;3===a.type&&a.xa.stop();a.api.removeEventListener("appresize",a.Z);a.N||b.setAttribute("title",a.J);a.J="";a.u=null}; g.tP=function(a,b){g.W.call(this,{G:"button",Ga:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.AC(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",oa:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",oa:"Ver m\u00e1s tarde"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.pc();xM(this.tooltip);a.Bb(this.element,this,28665);this.Pa("click",this.onClick,this);this.T(a,"videoplayerreset",this.kS); this.T(a,"appresize",this.gz);this.T(a,"videodatachange",this.gz);this.T(a,"presentingplayerstatechange",this.gz);this.gz();a=this.I.V();var c=g.gw("yt-player-watch-later-pending");a.j&&c?(Uta(),bFa(this)):this.Ka(2);g.O(this.element,"ytp-show-watch-later-title",g.AC(a));g.Bf(this,g.tM(b.pc(),this.element))}; cFa=function(a,b){g.CJ(function(){Uta({videoId:b});window.location.reload()},"wl_button",g.UC(a.I.V()))}; bFa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ka(3);var b=a.I.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.bl(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ka(2);a.I.V().B&&a.I.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Ka(1);a.I.V().isMobile&&SM(a.tooltip,a.element);a.I.V().B&&a.I.Oa("WATCH_LATER_VIDEO_ADDED")}; PJ(c,b).then(d,function(){a.isRequestPending=!1;dFa(a,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; dFa=function(a,b){a.Ka(4,b);a.I.V().B&&a.I.Oa("WATCH_LATER_ERROR",b)}; eFa=function(a,b){var c=a.I.V();if(b!==a.icon){switch(b){case 3:var d=UL();break;case 1:d=uI();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=c.S("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Na("icon",d);a.icon=b}}; uP=function(a){g.iM.call(this,a);var b=this;this.LA=(this.zq=g.AC(this.api.V()))&&(this.api.V().isMobile||js()||hs());this.sE=48;this.tE=69;this.Uk=null;this.Vo=[];this.yc=new g.oM(this.api);this.nw=this.api.S("web_player_deprecate_double_tap_ux")?new UM:new VM(this.api);this.gi=new g.W({G:"div",L:"ytp-chrome-top"});this.Fy=[];this.tooltip=new g.qP(this.api,this);this.backButton=this.Yt=null;this.channelAvatar=new zM(this.api,this);this.title=new pP(this.api,this);this.Tg=new g.nI({G:"div",L:"ytp-chrome-top-buttons"}); this.zg=this.shareButton=this.Gh=null;this.Fi=new sM(this.api,this,this.gi.element);this.overflowButton=this.vg=null;this.Nf="1"===this.api.V().controlsType?new jP(this.api,this,this.Id):null;this.contextMenu=new g.QM(this.api,this,this.yc);this.jE=!1;this.dA=new g.W({G:"div",W:{tabindex:"0"}});this.cA=new g.W({G:"div",W:{tabindex:"0"}});this.Px=null;this.oG=this.Pz=!1;var c=a.eb(),d=a.V(),e=a.getVideoData();this.zq&&(g.M(a.getRootNode(),"ytp-embed"),g.M(a.getRootNode(),"ytp-embed-playlist"),this.LA&& (g.M(a.getRootNode(),"ytp-embed-overlays-autohide"),g.M(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.sE=60,this.tE=89);this.api.V().isMobile&&(g.M(a.getRootNode(),"ytp-mobile"),this.api.V().D&&g.M(a.getRootNode(),"ytp-embed-mobile-exp"));this.Bg=e&&e.Bg;g.H(this,this.yc);g.gL(a,this.yc.element,4);g.H(this,this.nw);g.gL(a,this.nw.element,4);e=new g.W({G:"div",L:"ytp-gradient-top"});g.H(this,e);g.gL(a,e.element,1);this.nI=new g.bJ(e,250,!0,100);g.H(this,this.nI);g.H(this,this.gi);g.gL(a, this.gi.element,1);this.mI=new g.bJ(this.gi,250,!0,100);g.H(this,this.mI);g.H(this,this.tooltip);g.gL(a,this.tooltip.element,4);var f=new fN(a);g.H(this,f);g.gL(a,f.element,5);f.subscribe("show",function(l){b.Sn(f,l)}); this.Fy.push(f);this.Yt=new gN(a,this,f);g.H(this,this.Yt);d.showBackButton&&(this.backButton=new nM(a),g.H(this,this.backButton),this.backButton.Ba(this.gi.element));this.zq||this.Yt.Ba(this.gi.element);this.channelAvatar.Ba(this.gi.element);g.H(this,this.channelAvatar);g.H(this,this.title);this.title.Ba(this.gi.element);g.H(this,this.Tg);this.Tg.Ba(this.gi.element);d.K||(this.Gh=new g.tP(a,this),g.H(this,this.Gh),this.Gh.Ba(this.Tg.element));var k=new g.mN(a,this);g.H(this,k);g.gL(a,k.element,5); k.subscribe("show",function(l){b.Sn(k,l)}); this.Fy.push(k);d.K||(this.shareButton=new g.lN(a,this,k),g.H(this,this.shareButton),this.shareButton.Ba(this.Tg.element),this.zg=new g.RM(a,this),g.H(this,this.zg),this.zg.Ba(this.Tg.element));d.Hk&&(e=new sN(a),g.H(this,e),g.gL(a,e.element,4));this.zq&&this.Yt.Ba(this.Tg.element);g.H(this,this.Fi);this.Fi.Ba(this.Tg.element);d.K||(e=new uM(a,this,this.Fi),g.H(this,e),e.Ba(this.Tg.element));this.vg=new cN(a,this);g.H(this,this.vg);g.gL(a,this.vg.element,5);this.vg.subscribe("show",function(){b.Sn(b.vg, b.vg.og())}); this.Fy.push(this.vg);this.overflowButton=new bN(a,this,this.vg);g.H(this,this.overflowButton);this.overflowButton.Ba(this.Tg.element);this.Nf&&g.H(this,this.Nf);"3"===d.controlsType&&(e=new kN(a,this),g.H(this,e),g.gL(a,e.element,9));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.AQ,this);e=new xJ(a,new mM(a));g.H(this,e);g.gL(a,e.element,4);this.dA.Pa("focus",this.vU,this);g.H(this,this.dA);this.cA.Pa("focus",this.wU,this);g.H(this,this.cA);(this.Jm=d.Ke?null:new g.ZM(a,c,this.contextMenu, this.Id,this.yc,this.nw,function(){return b.Xk()}))&&g.H(this,this.Jm); this.zq||(this.LP=new qN(this.api,this),g.H(this,this.LP),g.gL(a,this.LP.element,4));this.XP=new mP(this.api,this);g.H(this,this.XP);g.gL(a,this.XP.element,4);this.Uo.push(this.yc.element);this.T(a,"fullscreentoggled",this.Rm);this.T(a,"offlineslatestatechange",function(){b.api.bx()&&OL(b.Id,128,!1)}); this.T(a,"cardstatechange",function(){b.rj()}); this.T(a,"resize",this.OW);this.T(a,"showpromotooltip",this.qX)}; fFa=function(a){var b=a.api.V(),c=g.V(a.api.zb(),128);return b.j&&c&&!a.api.isFullscreen()}; vP=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Mm(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=vP(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexa;a++){var b=g.$h("VIDEO");b.load();xP.push(new g.NL(b))}}; kFa=function(){this.u=200;this.j=12}; lFa=function(a){var b=new kFa;b.u=g.aB(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.j=g.aB(a.experiments,"html5_gapless_max_played_ranges");return b}; g.yP=function(a,b,c,d){d=void 0===d?!1:d;rH.call(this);this.qa=a;this.start=b;this.end=c;this.j=d}; mFa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Mh()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.j&&((b=b.yd())&&b.isView()&&(b=b.qa),b&&b.qq().length>a.j&&g.nE(e)))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.j||!c.j)return{msg:"non-dash"};if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.nE(f)&&g.nE(e))return{msg:"content-protection"}; a=c.j[0];e=e.C.j[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.kA?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.Yb(),cr:f.sampleRate,ni:e.Yb(),nr:b.sampleRate}}; zP=function(){var a=this;this.j=this.u=iaa;this.promise=new g.ti(function(b,c){a.u=b;a.j=c})}; AP=function(a,b,c,d){g.G.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Gl=new zP;this.jk=d-1E3*b.rd();this.Gl.then(void 0,function(){}); this.timeout=new g.L(function(){e.Xe("timeout")},1E4); g.H(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.Qa()}; rFa=function(a){var b,c,d,e,f,k,l,m,n;return g.B(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.Qa();a.timeout.start();b=g.BP.tp("gtfta");return g.A(p,a.Gl,2)}g.BP.Xn(b);c=a.j.yd();if(c.vl())return a.Xe("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!AA(a.C))return a.Xe("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.oq()!==a.C)return a.Xe("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error|| "")));d=nFa(a);e=d.TN;f=d.GL;k=d.SN;a.j.Og(!1,!0);l=oFa(c,e,k,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.K&&(a.u.seekTo(a.u.getCurrentTime()+.001,{xq:!0,lI:3,qe:"gapless_pseudo"}),l.play()||Nr());m=c.Nb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+k;a.u.Aa("gapless",m);a.j.Aa("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();pFa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);pFa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce); g.qi(function(){!a.u.getVideoData().ib&&g.BH(a.u.getPlayerState())&&qFa(a.u)}); CP(a,6);a.dispose();return p.return(Promise.resolve())})}; uFa=function(a){if(a.u.getVideoData().C){DP(a.u,a.C);CP(a,3);sFa(a);var b=tFa(a),c=b.KP;b=b.PZ;c.subscribe("updateend",a.Yr,a);b.subscribe("updateend",a.Yr,a);a.Yr(c);a.Yr(b)}}; sFa=function(a){a.j.unsubscribe("internalvideodatachange",a.Wp,a);a.u.unsubscribe("internalvideodatachange",a.Wp,a);a.j.unsubscribe("mediasourceattached",a.Wp,a);a.u.unsubscribe("statechange",a.Tc,a)}; oFa=function(a,b,c,d){a=a.isView()?a.qa:a;return new g.yP(a,b,c,d)}; CP=function(a,b){a.Qa();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Gl.resolve(void 0))}; nFa=function(a){var b=a.j.yd();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:EP(a.j,!0);c=Math.min(a.jk/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Mh()+d;return{ZT:b,TN:a,GL:c,SN:Infinity}}; tFa=function(a){return{KP:a.B.j.Hd,PZ:a.B.u.Hd}}; FP=function(a){g.G.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.K=!1;this.C=null;this.N=lFa(this.app.V());this.B=null;this.J=function(){g.qi(function(){vFa(b)})}}; wFa=function(a,b,c,d){d=void 0===d?0:d;a.Qa();a.Jt()||GP(a);a.C=new zP;a.j=b;var e=c,f=a.app.Lc(),k=f.getVideoData().isLivePlayback?Infinity:1E3*EP(f,!0);e>k&&(e=k-a.N.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.u=f,f=e,e=a.u,a.app.Ua.addEventListener(g.Kw("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.Iw(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){k=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/ 1E3,EP(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),k=Math.min(d,EP(b)+l));f=Kta(e,k)||d;f!==d&&a.j.Aa("qvaln",{st:d,at:f,rm:l,ct:k})}b=f;d=a.j;d.getVideoData().od=!0;d.getVideoData().Ea=!0;g.HP(d,!0);e={};a.u&&(e=g.IP(a.u.Zb.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.Aa("queued",e);0!==b&&d.seekTo(b+.01,{xq:!0,lI:3,qe:"videoqueuer_queued"});a.B=new AP(a.N,a.app.Lc(),a.j,c);c=a.B;c.Qa();Infinity!==c.status.status&&(CP(c,1),c.j.subscribe("internalvideodatachange", c.Wp,c),c.u.subscribe("internalvideodatachange",c.Wp,c),c.j.subscribe("mediasourceattached",c.Wp,c),c.u.subscribe("statechange",c.Tc,c),c.j.subscribe("newelementrequired",c.uO,c),c.Wp());return a.C}; vFa=function(a){var b,c,d;g.B(function(e){switch(e.j){case 1:if(a.isDisposed())return e.return();a.Qa();if(!a.C||!a.j)return a.Qa(),e.return();a.K&&JP(a.app.Lc(),!0,!1);b=null;if(!a.B){e.Za(2);break}g.va(e,3);return g.A(e,rFa(a.B),5);case 5:g.wa(e,2);break;case 3:b=c=g.xa(e);case 2:if(!a.j)return a.Qa(),e.return();g.BP.tH("vqsp",function(){KP(a.app,a.j)}); g.BP.tH("vqpv",function(){a.app.playVideo()}); b&&xFa(a.j,b.message);d=a.C;GP(a);return e.return(d.resolve(void 0))}})}; GP=function(a){if(a.u){var b=a.u;a.app.Ua.removeEventListener(g.Kw("vqueued"),a.J);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Xe("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.iL(a.app,1)&&a.j!==a.app.Lc()&&a.j.dispose();a.j=null;a.K=!1}; yFa=function(){var a=Eoa();return!(!a||"visible"===a)}; AFa=function(a){var b=zFa();b&&document.addEventListener(b,a,!1)}; BFa=function(a){var b=zFa();b&&document.removeEventListener(b,a,!1)}; zFa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[lu+"VisibilityState"])return"";a=lu+"visibilitychange"}return a}; LP=function(){g.iv.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.Oe()}; AFa(this.C);this.D=this.getVisibilityState(this.Ef(),this.isFullscreen(),this.Te(),this.isInline(),this.Ht(),this.Dt())}; CFa=function(a){this.end=this.start=a}; g.PP=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.Y=b;this.Ca=c;this.Ja=new Map;this.ib=new Map;this.Ra=new Map;this.D=new Map;this.B=[];this.J=[];this.u=new Map;this.vb=new Map;this.K=new Map;this.rb=NaN;this.jb=this.Ia=null;this.qb=new g.L(function(){MP(d,d.rb)}); this.events=new g.gA(this);this.isLiveNow=!0;this.Dc=g.aB(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.ma=new g.L(function(){d.Z=!0;d.Ca.Aa("sdai",{aftimeout:d.Dc});NP(d);d.Rw(!1)},this.Dc); this.Z=!1;this.ya=new Map;this.Ya=[];this.X=null;this.kc=new Set;this.xa=[];this.Db=[];this.Tb=[];this.Lb=[];this.j=void 0;this.Ea=0;this.Xa=!0;this.C=!1;this.Sa=[];this.Rb=new Set;this.Wb=new Set;this.Ub=new Set;this.Gi=0;this.N=null;this.Wa=new Set;this.Hb=0;this.Qn=this.Gb=!1;this.Ca.getPlayerType();DFa(this.Ca,this);this.va=jD(this.Y);g.H(this,this.qb);g.H(this,this.events);g.H(this,this.ma);OP(this)||(this.events.T(this.api,g.Kw("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api, g.Lw("serverstitchedcuerange"),this.onCueRangeExit))}; GFa=function(a,b,c,d,e,f,k){var l=EFa(a,e,e+d);a.Z&&a.Ca.Aa("sdai",{adaftto:1});var m=a.Y.S("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Ca;f=void 0===f?e+d:f;e===f&&!d&&a.Y.S("html5_allow_zero_duration_ads_on_timeline")&&a.Ca.Aa("sdai",{attl0d:1});if(e>f&&(a.Rj("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(en&&(a.Rj("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;if(m)for(m=g.r(a.J),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.Hc&&ep.Hc)return a.Rj("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_overlaps_existing_ChildPlayback_"+QP(p))),"";if(f===p.Hc)return a.Rj("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+ (b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+QP(p))),"";e===p.jd&&(n=p)}else m=g.qc(a.J,{jd:e},function(t,w){return t.jd-w.jd}),0<=m&&(n=a.J[m]); if(l&&n)for(m=g.r(a.xa.entries()),p=m.next();!p.done;p=m.next()){var q=g.r(p.value);p=q.next().value;q=q.next().value;if(q.identifier===l.identifier){a.xa.splice(p,1);break}}else if(l&&a.Y.S("web_player_ss_timeout_skip_ads"))return a.Ca.Aa("sdai",{rejectAttl:1}),k&&!$m(a.Lb,function(t){return t===k})&&(a.Ca.Aa("sdai",{rejectAdBreakAttl:1}),a.Lb.push(k)),""; l="ss_childplayback_"+FFa++;b.cpn||(b.cpn=g.uv(16));m=b.cpn;b=new g.WD(a.Y,b);b.Cc=l;c={Cc:l,playerType:c,durationMs:d,Hc:e,jd:f,cpn:m,videoData:b,errorCount:0};g.vc(a.J,c,function(t,w){return t.Hc-w.Hc}); a.u.set(m,c);a.vb.set(l,c);a.Ca.Aa("sdai",{attlDone:f-e});k?c.Nk=k:n?c.Nk=n.Nk:c.Nk=c.cpn;if(e=c.Nk)(d=a.K.get(e))?(d.push(c),g.tc(d,function(t,w){return t.Hc-w.Hc})):a.K.set(e,[c]); a.ma.isActive()&&(a.Z=!1,a.ma.stop(),NP(a),a.Rw(!0));a.Qa();return l}; RP=function(a,b,c){return a.Y.experiments.ob("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}}; HFa=function(a,b,c){return new g.Iw(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})}; SP=function(a){return{cpn:a.Ca.getVideoData().clientPlaybackNonce,durationMs:0,Hc:0,playerType:1,jd:0,videoData:a.Ca.getVideoData(),errorCount:0}}; UP=function(a,b,c){var d=a.C,e=SP(a),f=b.xf-c.xf;.5d?-1*(d+2):d;return 0<=d&&(a=a.J[d],a.jd>=c)?{gm:a,Oq:b}:{gm:void 0,Oq:b}}; WP=function(a,b){var c="";OP(a)?(c=b/1E3-a.zm(),c=a.Ca.qt(c)):(b=IFa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0}; IFa=function(a,b){a=g.r(a.D.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; MP=function(a,b){var c=a.jb||a.api.Lc().getPlayerState();XP(a,!0);var d=b;a.Y.S("web_player_ssdai_seek_without_offset_killswitch")&&(d=VP(a,b).Oq);a.Ca.seekTo(d);a=a.api.Lc();b=a.getPlayerState();g.BH(c)&&!g.BH(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()}; XP=function(a,b){a.rb=NaN;a.qb.stop();a.Ia&&b&&YP(a.Ia);a.jb=null;a.Ia=null}; ZP=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Qa();for(var d=b,e=c,f=[],k=g.r(a.J),l=k.next();!l.done;l=k.next())l=l.value,(l.Hce)&&f.push(l);a.J=f;d=b;e=c;f=g.r(a.D.values());for(k=f.next();!k.done;k=f.next())k=k.value,k.start>=d&&k.end<=e&&(a.Ca.removeCueRange(k),a.D.delete(k.getId()),a.Ca.Aa("sdai",{rmAdCR:1}));d=VP(a,b/1E3);b=d.gm;d=d.Oq;b&&(d=1E3*d-b.Hc,e=b.Hc+d,a.Qa(),b.durationMs=d,b.jd=e,JFa(a,b));(b=VP(a,c/1E3).gm)&&a.Rj("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+ QP(b)+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}; KFa=function(a){a.Y.S("web_player_ss_timeline_manager_reset_all_killswitch")||(a.Ja.clear(),a.ib.clear(),a.Ra.clear(),a.D.clear(),a.B=[],a.J=[],a.u.clear(),a.vb.clear(),a.K.clear(),a.ya.clear(),a.Ya=[],a.X=null,a.kc.clear(),a.xa=[],a.Db=[],a.Tb=[],a.Lb=[],a.Sa=[],a.Rb.clear(),a.Wb.clear(),a.Ub.clear(),a.Wa.clear(),a.isLiveNow=!0,a.Z=!1,a.j=void 0,a.Ea=0,a.Xa=!0,a.C=!1,a.Gi=0,a.N=null,a.Hb=0,a.Gb=!1,a.Qn=!1)}; JFa=function(a,b){var c=a.D.get(b.cpn);if(c){a=g.r(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Hc+b.durationMs:d.end===c.start&&(d.end=b.Hc);c.start=b.Hc;c.end=b.Hc+b.durationMs}}; QP=function(a){var b;return"playback_timelinePlaybackId_"+a.Cc+"_video_id_"+(null==(b=a.videoData)?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Hc+"_parentReturnTimeMs_"+a.jd}; $P=function(a,b,c){c=a.ya.get(c);c||(b+=a.zm(),c=VP(a,b,1).gm);return c}; aQ=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;LFa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.Ca.removeCueRange(e);if(a.Sa.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else LFa(a,b,c)}; LFa=function(a,b,c){b=HFa(b,c);c=!0;g.vc(a.B,b,function(k,l){return k.start-l.start}); for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Ca.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.Ca.addCueRange(b),b=a.Ca.ww("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())}; bQ=function(a,b,c){if(void 0===c||!c){c=g.r(a.Ya);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.Ya.push(new CFa(b))}}; g.MFa=function(a,b){a=g.r(a.Ya);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; NFa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; OFa=function(a,b,c){var d=0;a=a.K.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; PFa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c}; QFa=function(a,b){var c=0;a=a.K.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.jd!==b.Hc&&c++;return c}; RFa=function(a,b,c){var d=!1;if(c&&(c=a.K.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.jd!==e.Hc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Wb.has(e)&&(a.Ca.Aa("sdai",{decoratedAd:e}),a.Wb.add(e)))}}; NP=function(a){a.va&&a.Ca.Aa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Hb)+"_isTimeout_"+a.Z})}; EFa=function(a,b,c){if(a.xa.length)for(var d={},e=g.r(a.xa),f=e.next();!f.done;d={Ap:d.Ap},f=e.next()){d.Ap=f.value;f=1E3*d.Ap.startSecs;var k=1E3*d.Ap.durationSecs+f;if(b>f&&bf&&cf)return eQ(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),k,l),"";var n=1E3*m.getMinSeekableTime();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.rd(),eQ(a,m,k,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Hc&&eq.Hc)return eQ(a,"overlappingReturn",k,l),a.Qa(),"";if(f===q.Hc)return eQ(a,"outOfOrder",k,l),a.Qa(),"";e===q.jd&&(n=q)}k="cs_childplayback_"+TFa++;l={Dd:fQ(d,!0),jk:Infinity,target:null};var t={Cc:k,playerVars:b,playerType:c,durationMs:d,Hc:e,jd:f,Un:l};a.u=a.u.concat(t).sort(function(y,z){return y.Hc-z.Hc}); n?UFa(a,n,{Dd:fQ(n.durationMs,!0),jk:a.Y.S("timeline_manager_transition_killswitch")?Infinity:n.Un.jk,target:t}):(b={Dd:fQ(e,!1),jk:e,target:t},a.J.set(b.Dd,b),a.Qa(),m.addCueRange(b.Dd));b=a.Y.S("html5_gapless_preloading");if(a.j===a.api.Lc()&&(m=1E3*m.getCurrentTime(),m>=t.Hc&&mb)break;if(f>b)return{gm:d,Oq:b-e};c=f-d.jd/1E3}return{gm:null,Oq:b-c}}; SFa=function(a,b){var c=a.D||a.api.Lc().getPlayerState();jQ(a,!0);b=a.Y.S("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.Hj();var d=iQ(a,b);b=d.gm;d=d.Oq;var e=b&&!gQ(a,b)||!b&&a.j!==a.api.Lc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||hQ(a);a.Qa();b?(a.Qa(),VFa(a,b,d,c)):(a.Qa(),kQ(a,d,c))}; kQ=function(a,b,c){var d=a.j,e=a.api.Lc();d!==e&&a.api.Vm();d.seekTo(b,{qe:"application_timelinemanager"});$Fa(a,c)}; VFa=function(a,b,c,d){var e=gQ(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.WD(a.Y,b.playerVars);f.Cc=b.Cc;a.api.Qo(f,b.playerType)}f=a.api.Lc();e||(b=b.Un,a.Qa(),f.addCueRange(b.Dd));f.seekTo(c,{qe:"application_timelinemanager"});$Fa(a,d)}; $Fa=function(a,b){a=a.api.Lc();var c=a.getPlayerState();g.BH(b)&&!g.BH(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()}; jQ=function(a,b){a.X=NaN;a.N.stop();a.C&&b&&YP(a.C);a.D=null;a.C=null}; gQ=function(a,b){a=a.api.Lc();return!!a&&a.getVideoData().Cc===b.Cc}; aGa=function(a){var b=a.u.find(function(e){return gQ(a,e)}); if(b){var c=a.api.Lc();hQ(a);var d=new g.vH(8);b=ZFa(a,b)/1E3;kQ(a,b,d);c.Aa("forceParentTransition",{childPlayback:1});a.j.Aa("forceParentTransition",{parentPlayback:1})}}; lQ=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Qa();for(var d=b,e=c,f=g.r(a.J),k=f.next();!k.done;k=f.next()){var l=g.r(k.value);k=l.next().value;l=l.next().value;l.jk>=d&&l.target&&l.target.jd<=e&&(a.j.removeCueRange(k),a.J.delete(k))}d=b;e=c;f=[];k=g.r(a.u);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.Hc>=d&&l.jd<=e){var m=a;m.K===l&&hQ(m);gQ(m,l)&&m.api.Vm()}else f.push(l);a.u=f;d=iQ(a,b/1E3);b=d.gm;d=d.Oq;b&&(d*=1E3,bGa(a,b,d,b.jd===b.Hc+b.durationMs?b.Hc+d:b.jd));(b=iQ(a, c/1E3).gm)&&eQ(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Cc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Hc+" parentReturnTimeMs="+b.jd+"}.Child playbacks can only have duration updated not their start."))}; bGa=function(a,b,c,d){a.Qa();b.durationMs=c;b.jd=d;d={Dd:fQ(c,!0),jk:c,target:null};UFa(a,b,d);gQ(a,b)&&1E3*a.api.Lc().getCurrentTime()>c&&(b=ZFa(a,b)/1E3,c=a.api.Lc().getPlayerState(),kQ(a,b,c))}; eQ=function(a,b,c,d){a.j.Aa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; dGa=function(a){a&&"web"!==a&&cGa.includes(a)}; oQ=function(a,b){g.G.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.L(function(){mQ(c);nQ(c)}); g.H(this,this.j)}; eGa=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())pQ(a,d.value,b);a.data=[];nQ(a)}; mQ=function(a){var b=(0,g.R)();a.data.forEach(function(c){c.expire=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)}; iGa=function(a,b){mpa(a,"version",b)}; AQ=function(a){g.W.call(this,{G:"div",Ga:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.zQ.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.cw=this.Da(g.zQ.VIDEO_CONTAINER);this.au=new g.Em(0,0,0,0);this.Fb=null;this.KB=new g.Em(0,0,0,0);this.tF=this.rG=this.qG=NaN;this.CA=this.HB=this.kH=this.qL=!1;this.xE=NaN;this.UF=!1;this.kx=null;this.JG=function(){b.element.focus()}; this.vB=function(){b.app.Ua.ea("playerUnderlayVisibilityChange","visible");b.Fb.classList.remove(g.zQ.VIDEO_CONTAINER_TRANSITIONING);b.Fb.removeEventListener(jGa,b.vB);b.Fb.removeEventListener("transitioncancel",b.vB)}; var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,k,l){c.apply(b.element,[f,k,l])}; this.removeEventListener=function(f,k,l){d.apply(b.element,[f,k,l])}; var e=a.V();e.transparentBackground&&this.Fn("ytp-transparent");"0"===e.controlsType&&this.Fn("ytp-hide-controls");g.M(this.element,"ytp-exp-bottom-control-flexbox");e.S("html5_player_bottom_linear_gradient")&&g.M(this.element,"ytp-linear-gradient-bottom-experiment");kva(e)&&g.M(this.element,"ytp-larger-tap-buttons");e.S("enable_new_paid_product_placement")&&!g.bD(e)&&g.M(this.element,"ytp-exp-ppp-update");dD(e)&&g.M(this.element,"ytp-exp-hybrid-controls");iGa(this.element,kGa(a));this.MP=!1;this.yw= new g.Eh(NaN,NaN);lGa(this);this.T(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; lGa=function(a){function b(){a.Fb&&BQ(a);CQ(a)!==a.UF&&a.resize()} function c(k,l){a.wt(k,l)} function d(k){k.getVideoData()&&a.updateVideoData(k.getVideoData())} function e(){a.KB=new g.Em(0,0,0,0);a.au=new g.Em(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.Bf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; mGa=function(a){var b=g.iL(a.app);if(b=b?b.getVideoData():null){if(g.uE(b)||g.vE(b)||g.xE(b))return 16/9;if(eE(b)&&b.C.j)return a=b.C.videoInfos[0].video,DQ(a.width,a.height)}return(a=a.Fb)?DQ(a.videoWidth,a.videoHeight):16/9}; nGa=function(a,b,c,d){var e=c,f=DQ(b.width,b.height);a.qL?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(EQ*b-a)||1>Math.abs(EQ/a-b)?EQ:a/b}; CQ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.iL(a.app);if(!b||b.Dm())return!1;var c=a.app.Ua.zb();a=!g.V(c,2)||!a.app.V().S("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ea;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()}; BQ=function(a){var b="3"===a.app.V().controlsType&&!a.CA&&CQ(a)&&!a.app.qx||!1;a.Fb.controls=b;a.Fb.tabIndex=b?0:-1;b?a.Fb.removeEventListener("focus",a.JG):a.app.V().S("disable_focus_redirect")||a.Fb.addEventListener("focus",a.JG)}; oGa=function(a){var b=a.Fg(),c=1,d=!1,e=nGa(a,b,a.getVideoAspectRatio()),f=a.app.V().S("enable_desktop_player_underlay"),k=fs(),l=g.aB(a.app.V().experiments,"player_underlay_min_player_width");l=f&&a.kH&&a.getPlayerSize().width>l;if(CQ(a)){var m=mGa(a);var n=isNaN(m)||g.pt||FQ&&g.Rs||l;gs&&!g.Fc(601)?m=e.aspectRatio:n=n||"3"===a.app.V().controlsType;n?l?(n=a.app.V().S("place_shrunken_video_on_left_of_player"),m=.02*a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.Em(n,0,b.width, b.height)):n=new g.Em(0,0,b.width,b.height):(c=e.aspectRatio/m,n=new g.Em((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Rs&&(m=n.width-b.height*m,0b)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return b=k&&a.Ba.seekCount?(a.seekCount++,a.Qa(),a.Va.Aa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.B,actual:k,duration:l,isVideo:c}),a.seek(a.B)):(a.Qa(),a.Va.Aa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.B,actual:k}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Va.Ca.seekTo(k+.1,{xq:!0,qe:"chunkSelectorSynchronizeMedia", Xp:!0})))}})}; AGa=function(a,b,c){if(!a.u)return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.B);return(Jz(c,a.j.He)||b.Ma===a.j.He)&&dc||c===a.B)&&!isNaN(a.C)?a.C:b}; HGa=function(a,b,c,d){GGa(a.J,d,c,b);GGa(a.xa,d,c,b);NA(a.N,d,!0);NA(a.N,d,!1);a.Aa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})}; IGa=function(a,b){if(a.j){var c=a.j.Jd.durationSecs-(b.startTime+a.K-a.j.Jd.startSecs);0>=c||(c=new Aw(a.j.Jd.startSecs-(isNaN(a.K)?0:a.K),c,a.j.Jd.context,a.j.Jd.identifier,"stop",a.j.Jd.Gu+1E3*b.duration),a.Aa("cuepointdiscontinuity",{segNum:b.Ma}),TQ(a,c,b.Ma))}}; UQ=function(a,b,c){a.u!==b&&(a.Aa("sdai",{setsst:b,old:a.u,r:c}),a.u=b)}; JGa=function(a,b,c,d){(void 0===d?0:d)?UQ(a,1,"sk2h"):0b)return!0;a.ma.clear()}return!1}; SGa=function(a,b){return new VQ(a.K,a.u,b||a.j.reason)}; OGa=function(a){a.Ia?a.Ia=!1:a.X=(0,g.R)();a.N=!1;return new VQ(a.K,a.u,a.j.reason)}; TGa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],k=f&&cA(f)&&f.video.j>a.policy.N,l=e<=a.policy.N?cA(d):aA(d);if(!f||k||l)c[e]=d}return c}; WQ=function(a,b){a.j=b;var c=a.J.videoInfos;if(!a.j.isLocked()){var d=(0,g.R)();c=g.In(c,function(q){if(q.Ob>this.policy.Ob)return!1;var t=this.C.j[q.id],w=t.info.j;return this.policy.Tr&&this.Ra.has(w)||this.ma.get(q.id)>d||4=q.video.j}))}c.length||(c=a.J.videoInfos); var e=g.In(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.yj&&FQ&&g.Rs&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)})); if(0c.Oy.video.width?(g.gc(e,b),b--):ZQ(a,c.Ny)*a.policy.B>ZQ(a,c.Oy)&&(g.gc(e,b-1),b--);c=e[e.length-1];a.Wa=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;GCa(a.policy,c)}; LGa=function(a,b){b?a.B=a.C.j[b]:(b=(b=g.ac(a.J.j,function(c){return!!c.Fc&&c.Fc.isDefault}))||a.J.j[0],a.B=a.C.j[b.id]); XQ(a)}; UGa=function(a,b){for(var c=0;c+1d}; XQ=function(a){if(!a.B||!a.policy.u)if(!a.B||!a.B.info.Fc)if(a.B=a.C.j[a.J.j[0].id],1a.j.j:UGa(a,a.B);b&&(a.B=a.C.j[g.Zb(a.J.j).id])}}; YQ=function(a){a.policy.eh&&(a.Ea=a.Ea||new g.L(function(){a.policy.eh&&a.u&&!aR(a)&&1===Math.floor(10*Math.random())?($Q(a,a.u),a.N=!0):a.Ea.start()},6E4),g.vp(a.Ea)); if(!a.nextVideo||!a.policy.u)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.C.j[a.D[0].id]:a.C.j[g.Zb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=MQ(a.va),d=ZQ(a,a.B.info),e=c/a.policy.C-d;0=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var k=a.j;return"Adapt to: "+eta(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+ f.toFixed(0)+", constraint: ["+(k.u+"-"+k.j+", override: "+(k.B+", reason: "+k.reason+"]"))}); a.videoIndex=b}}; MGa=function(a){var b=a.policy.C,c=MQ(a.va),d=c/b-ZQ(a,a.B.info);b=g.bc(a.D,function(e){return ZQ(this,e)b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+eta(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})}; NGa=function(a){if(a.Xa.length){var b=a.Xa,c=function(d,e){if("f"===d.info.j||b.includes(mz(d,a.C.isLive,a.Va.Gg(),a.policy.Ya)))return d;for(var f={},k=0;ka.policy.Wb&&(c*=1.5);return c}; VGa=function(a,b){a=$f(a.C.j,function(c){return c.info.Yb()===b}); if(!a)throw Error("Itag "+b+" from server not known.");return a}; WGa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(vta(a.C)){for(var c=Math.max(0,a.videoIndex-2);c=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0iR.length&&iR.push(m)}t= void 0}m=t;if(null!==m){var w=m;break a}}catch(x){}}c+=e}w=null}catch(x){w=null}}if(null!=w){b=g.he(w,7);null==b||a.Ce||(a.cryptoPeriodIndex=b);b=g.he(w,10);null!=b&&0=a.j.totalLength)throw Error();return ny(a.j,a.offset++)}; hHa=function(a,b){b=void 0===b?!1:b;var c=lR(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=lR(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+lR(a),d*=128;return b?c:c-d}; nR=function(a,b,c){var d=this;this.Va=a;this.policy=b;this.J=c;this.logger=new g.qQ("dash");this.u=[];this.j=null;this.ma=-1;this.N=0;this.xa=NaN;this.X=0;this.B=NaN;this.Ea=this.Sa=0;this.Ra=-1;this.ya=this.C=this.K=this.va=null;this.Wa=this.Ja=NaN;this.D=this.Z=this.Ia=this.Xa=null;this.Ya=!1;this.timestampOffset=0;if(this.policy.u){var e=this.J,f=this.policy.u;this.D=new cR(this.policy,e,function(k,l,m){mR(a,new jR(d.policy.u,2,{Ox:new gHa(f,k,e.info,l,m)}))}); this.D.X.promise.then(function(k){d.D=null;1===k&&mR(a,new jR(d.policy.u,k))},function(k){var l=(k.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); d.logger.info(function(){return"Failed to write to disk: "+l}); d.Va.Aa("dldbwerr",{em:l});iHa(d);mR(a,new jR(d.policy.u,4,{EA:!0}))})}}; jHa=function(a){return a.u.length?a.u[0]:null}; oR=function(a){return a.u.length?a.u[a.u.length-1]:null}; nHa=function(a,b,c){if(a.C){var d=a.C.Ab+a.C.u;if(0=a.ma&&0===a.N){var f=a.j.j,k=-1;e=-1;if(c){for(var l= 0;l+8e&&(k=-1)}else{f=new kR(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=hHa(p,!0),t=hHa(p,!1);var w=q;var x=t}catch(z){x=w=-1}p=w;var y=x;if(!(0k&&(k=n),m))break;163===p&&(k=Math.max(0,k),e=f.getOffset()+y);if(160===p){0>k&&(e=k=f.getOffset()+y);break}f.skip(y)}}0>k&& (e=-1)}if(0>k)break;a.ma=k;a.N=e-k}if(a.ma>d)break;a.ma?(d=lHa(a,a.ma),d.D&&mHa(a,d),kHa(a,b,d),sR(a,d),a.ma=0):a.N&&(d=lHa(a,0>a.N?Infinity:a.N),a.N-=d.j.totalLength,sR(a,d))}}a.j&&a.j.info.Yd&&(sR(a,a.j),a.j=null)}; rR=function(a,b){!b.info.j.Nj()&&0===b.info.Ab&&(g.Qz(b.info.j.info)||b.info.j.info.Ce())&&$sa(b);if(1===b.info.type)try{mHa(a,b),oHa(a,b)}catch(d){g.S(d);var c=xz(b.info);c.hms="1";a.Va.handleError("fmt.unparseable",c||{},1)}b.info.j.yF(b);a.D&&$Ga(a.D,b)}; QQ=function(a){a.u=[];qR(a);iHa(a)}; iHa=function(a){var b;null==(b=a.D)||b.dispose();a.D=null}; pHa=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}; tR=function(a){return g.Pl(a.u,function(b){return b.info})}; lHa=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=Tsa(c,b);a.j=c[1];return c[0]}; mHa=function(a,b){var c=Pz(b);if(bA(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new Sy(c);Uy(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.j,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;aA(d)&&!bA(d)&&(d=Pz(b),(new Sy(d)).Yw(),Yy([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.Qz(d.info)?d.B=asa(c):d.info.Ce()&&(d.B=hsa(c))));b.info.j.info.Ce()&& b.info.isVideo()&&(c=Pz(b),(new Sy(c)).Yw(),Yy([408125543,374648427,174,224],30320,c)&&Yy([408125543,374648427,174,224],21432,c));if(a.policy.Iv&&b.info.j.info.Ce()){c=Pz(b);var e=new Sy(c);if(Uy(e,[408125543,374648427,174,29637])){d=Xy(e,!0);e=e.start+e.j;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=By(b),b.skip((m-1)*(4+(k?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.va&&!!a.va.J.D)if(b=c.info.isVideo())b=Zsa(c),k=a.va,uR?(l=1/b,b=vR(a,b)>=vR(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&qHa(c)&&(b=a.va,uR?(l=Zsa(c),k=1/l,l=vR(a,l),b=vR(b)+k-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,$ra(Pz(c),b))}else{k=!1;a.K||($sa(c),c.u&&(a.K=c.u,k=!0,Csa(c.info,c.u),l=c.info.j.info,f=Pz(c),g.Qz(l)?Qy(f,1701671783):l.Ce()&&Yy([408125543],307544935,f)));a:{if(f=l=Rz(c,a.policy.Ea))f=c.info.j.info.Ce()&&160===ny(c.j,0);if(f)a.X+=l,a.B=a.policy.Tb?a.B+l:NaN;else{if(a.policy.Zq){var n=a.Va.Xp(Vsa(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Tb&&isNaN(a.Ja)){g.Sv(new g.Js("Missing duration while processing previous chunk",qz(c.info)));pR(a,"m");break a}f= n-a.B;var p=f-a.Ea;d=c.info.Ma;var q=a.ya?a.ya.Ma:-1,t=a.Wa,w=a.Ja;m=a.policy.Ke&&f>a.policy.Ke;var x=a.policy.Xg&&p>a.policy.Xg;1E-4m&&d>a.Ra)&&p&&(d=Math.max(.95, Math.min(1.05,(l-(x-f))/l)),$ra(Pz(c),d),d=Rz(c,a.policy.Ea),n=l-d,l=d));a.Ea=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;Wsa(c,e)?(isNaN(a.xa)&&(a.xa=e),a.X+=l,a.B=e+l):(l=xz(c.info),l.smst="1",a.Va.handleError("fmt.unparseable",l||{},1))}}a.ya=c.info;a.Ja=Ysa(c);0<=c.C&&(a.Wa=c.C);if(k&&a.K){k=rHa(a,!0);yz(c.info,k);a.j&&yz(a.j.info,k);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())yz(l.value,k);(c.info.Yd||a.j&&a.j.info.Yd)&&6!==c.info.type||(a.Z=k,b=a.Va,b.j.isManifestless&&sHa(b,k,null, !!a.J.info.video,b.nk),a.policy.Pc||tHa(a))}}oHa(a,c);a.timestampOffset&&Xsa(c,a.timestampOffset)}; sR=function(a,b){if(b.info.Yd){a.Xa=b.info;if(a.K){var c=a.K,d=rHa(a,!1),e=null;if(a.K.Uw()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=c.data["Stitched-Video-Cpn"]?c.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],k=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())k.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m= g.r(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new dHa(e,f,k,l,g.Xra(c))}a.Va.QG(a.J,d,e);a.Z||a.policy.Pc||tHa(a);a.Z=null}qR(a)}a.D&&$Ga(a.D,b);if(c=oR(a))if(c=Usa(c,b,a.policy.dj)){a.u.pop();a.u.push(c);return}a.u.push(b)}; qR=function(a){a.j=null;a.ma=-1;a.N=0;a.K=null;a.xa=NaN;a.X=0;a.Z=null}; pR=function(a,b){b={rst4disc:b,cd:a.Ea.toFixed(3),sq:a.ya?a.ya.Ma:-1};a.B=NaN;a.Ea=0;a.Ra=-1;a.ya=null;a.Wa=NaN;a.Ja=NaN;a.Ia=null;a.Va.Aa("mdstm",b)}; oHa=function(a,b){if(a.J.info.Rd){if(b.info.j.info.Ce()){var c=new Sy(Pz(b));if(Uy(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Xy(c,!0);c=16!==d?null:bz(c,d)}else c=null;d="webm"}else b.info.K=bHa(Pz(b)),c=cHa(b.info.K),d="cenc";c&&c.length&&(c=new hR(c,d),c.Ce=b.info.j.info.Ce(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.xk&&b.u&&b.u.B&&(c.j=b.u.B),a.Va.St(c))}}; tHa=function(a){var b=a.K,c=Vra(b);c&&(c.startSecs+=a.xa,a.Va.PG(a.J,c,b.j,b.Uw()))}; rHa=function(a,b){var c,d=a.K;if(c=Vra(d))c.startSecs+=a.xa;return new fy(d.j,a.xa,b?d.lj:a.X,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)}; qHa=function(a){return a.info.j.Nj()&&a.info.Ma===a.info.j.index.getLastSegmentNumber()}; vR=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.J.D&&b&&(b+=a.J.D.j);return b+a.getDuration()}; uHa=function(a,b){0>b||(a.u.forEach(function(c){Xsa(c,b)}),a.timestampOffset=b)}; wR=function(a,b){this.info=a;this.callback=b;this.state=1;this.N=!1;this.C=0;this.D=!1;this.j=null}; vHa=function(a){return g.Ql(a.info.j,function(b){return 3===b.type})}; xR=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)}; yR=function(a,b){b&&a.state=b&&(e.u.pop(),e.B-=Rz(l,e.policy.Ea),f=l.info)}f&&(e.C=0c?RQ(a,d):a.u=a.j.zn(b-1,!1).j[0]}; MR=function(a,b){var c;for(c=0;c=a.X:c}; IHa=function(a){var b;return HR(a)||!(null==(b=oR(a.C))||!sz(b.info))}; GR=function(a){var b=[],c=DR(a);c&&b.push(c);b=g.jc(b,tR(a.C));g.wc(a.B,function(d){g.wc(d.info.j,function(e){d.N&&(b=g.In(b,function(f){return!Asa(f,e)})); (uz(e)||4===e.type)&&b.push(e)})}); a.u&&!xsa(a.u,g.Zb(b),a.u.j.Nj())&&b.push(a.u);return b}; FHa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:FHa(a,c?b:0)?a[b].startTime:NaN}; NR=function(a){return!(!a.u||a.u.j===a.j)}; JHa=function(a){return NR(a)&&a.j.df()&&a.u.j.info.Obb&&a.Ce.policy.j&&(e.callbacks.Rq(f,e.B),e.D=f)},function(){},d.body||null)}; PHa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=oz(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new hy;OHa(this).then(function(){c.callbacks.fp()},function(d){c.error=""+d||"unknown_err"; c.callbacks.fp()})}; OHa=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,w,x,y;return g.B(function(z){if(1==z.j){a.status=200;b=a.j.get("docid");c=Ih(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 XGa(a.j.get("ck"),a.j.get("civ")));k=a.range;l=Math.floor(k.start/e);m=Math.floor(k.end/e);n=l}if(5!=z.j)return n<=m?g.A(z,Tva(b,c,d,n,f),5):z.Za(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e; w=Math.max(0,k.start-q);x=Math.min(k.end+1,t)-(w+q);y=new Uint8Array(p.buffer,w,x);a.u.append(y);a.loaded+=x;a.loadede?(a.B+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=TR(a)?d+b:d+Math.max(b,c);a.X=d}; VR=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; YR=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.X=d;this.status=0;this.response=void 0;this.N=this.u=0;this.J=this.K=!1;this.errorMessage="";this.ma=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.Al=f.body.getReader(),e.isDisposed()?e.Al.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Ut(),ZHa(e)); else e.onDone()}; this.Z=function(f){var k=(0,g.R)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.Al=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.R)(),f-e.N>e.policy.j&&(e.N=f,e.callbacks.Rq(k,e.u)),ZHa(e)))}; this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()}; this.j=new hy;this.B=window.AbortController?new AbortController:void 0;this.start(a)}; ZHa=function(a){a.Al.read().then(a.Z,a.onError).then(void 0,Ds)}; ZR=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.Tt(f)}; a=ir(function(f){d.onDone(f)}); this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",ir(function(f){d.Gd(f)}),!1)}; bS=function(a,b,c,d,e,f){var k=void 0===f?{}:f;f=void 0===k.Kx?[]:k.Kx;var l=void 0===k.yy?!1:k.yy,m=void 0===k.aq?0:k.aq,n=void 0===k.poToken?"":k.poToken,p=void 0===k.Ah?void 0:k.Ah;k=void 0===k.Rx?"":k.Rx;wR.call(this,b,e);var q=this;this.policy=a;this.logger=new g.qQ("dash/request");this.lastError=null;this.Z=this.B=0;this.ya=!1;this.K=this.J=null;this.xa=!1;this.timing=new PR(this,c);this.ma=d;this.yy=l;this.u=g.Cz(this.info,this.policy,this.ma);this.u.set("rn",this.timing.requestNumber.toString()); this.u.set("rbuf",(1E3*m).toFixed().toString());this.yy&&this.u.set("smb","1");this.policy.aj&&n&&this.u.set("pot",n);k&&this.u.set("bbs",k);this.Kx=f||null;this.Ah=p;this.D=$Ha(this);this.va=1*this.policy.Zf;this.X=new g.L(this.zZ,this.va,this);this.info.u.K=(0,g.R)();psa($R(this));try{this.xhr=aIa(this),this.X.start()}catch(t){g.Sv(t),this.lastError="net.ssl",g.qi(function(){aS(q)})}}; $Ha=function(a){if(!(Bz(a.info)&&a.info.Tk()&&a.policy.Gb&&a.Kx)||2<=a.info.u.u||0a.policy.Gk||a.D&&!a.policy.Fr?0:Fx())?Gx()?new OR(b,a.policy.D,a.timing):new YR(b,a.policy.D,a.timing):new ZR(b,a.timing)}; fIa=function(a){if(!a.policy.D.Fh||!isNaN(a.info.Ye)&&0a.info.j[0].Ma?!1:!0}; dS=function(a,b,c,d,e){this.Va=a;this.policy=b;this.schedule=c;this.N=d;this.Z=e;this.ma=NaN;this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.X=NaN}; gIa=function(a,b,c,d,e){return b.ib&&b.va&&3===Fra(b)?new dS(a,b,c,d,e):null}; hIa=function(a,b){if(a.policy.Gr){var c=b.info.Ob,d=lC(a.schedule);b=b.index.Rg;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*b+a.policy.ma)/c,b-a.policy.Dc));a.Qa()}}; kIa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.lh,k=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e=a.policy.Dc&&!a.B;if(!f&&!c&&iIa(a,b))return NaN;c&&(a.B=!0,a.Qa());a:{d=k;c=Date.now()/1E3-(a.N.Dg()||0)-a.K.u-a.policy.ma;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.Qa();eS(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.kc;d1E3*a.policy.Hv){a.Aa("ombttl",{});return}}e=a.Gg();if(a.X&&zR(a.X,mz(c,d,e,a.policy.Ya))){d=mz(c,d,e,a.policy.Ya);e=nIa(a.X,d);if(a.j.isLive&&a.policy.Mv)var f=c.ym(Infinity);else{if(!c.indexRange||!c.initRange)return;var k=c.indexRange.length+c.initRange.length,l=oIa(a.X,d);if(!l){a.Aa("ombooo",{});return}k=l-k;if(a.policy.vk&&0(0,g.R)()-d.X;var e=d.nextVideo&&3*ZQ(d,d.nextVideo.info)=a.policy.Ak)return lS(a,"toomany"),!1;if(!a.policy.Mk&&0=a.policy.Hk)return lS(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.df()&&(b.u=g.Zb(d.j.pu(d)),d=b.u);if(!sz(d)&&!d.j.yn(d))return lS(a,"notready"),!1;var e=a.j.gf||a.j.N;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber(); e=Math.min(e,f);if(0=e)return b.X=e,c.X=e,lS(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return lS(a,"toomanyaudio"),!1;if(JHa(b)&&!a.policy.Wa)return lS(a,""),!0;if(sz(d))return lS(a,"eos"),!1;if(IR(b)&&IR(b)+IR(c)>a.policy.rb)return lS(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.C;f=!!(c.u&&!sz(c.u)&&c.u.C uIa(a,b))return lS(a,"maxtime;"+d.C.toFixed(3)+";"+uIa(a,b)),!1;if((b=b.jc)&&b.isLocked())return lS(a,"locked"),!1;lS(a,"");return!0}; vIa=function(a,b,c){if(oS(a,b,c)){if(b.K){if(a.j.isLive){var d=a.j.He&&a.j.N?b.j.zn(a.j.He,!1):b.j.ym(Infinity);d.Ye=a.Ye}else d=b.j.zn(0,!1);a.D?0===d.Ye&&(d.D=a.D.X):d.D=a.jb}else if(d=b.u,d.j.df()){var e=d.C-a.currentTime,f=!d.range||0===d.u&&0===d.Ab?0:d.range.length-(d.Ab+d.u),k=d.j;if(NR(b)&&b.j.df()){var l=Math.min(15,.5*pS(a,b,!0));l=JHa(b)||e<=l||a.u.N}else l=!1;l&&0===f&&(a.j.isManifestless?k=b.j:(k=d.startTime+qS,d.u&&(k+=d.duration),RQ(b,k),d=b.u,k=d.j));k.Nj()?(f=a.u,c=LQ(a.N,k.info.Ob, c.j.info.Ob,e,0k&&(c=d.j.Vr(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=xz(d),c.pr=""+b.B.length,a.J.u&&(c.sk="1"),c.snss=d.D,a.Aa("nosq",c)),d=k.ov(d));if(a.nk)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Nj()?(c=LQ(a.N,b.j.info.Ob,c.j.info.Ob,0),d=d.j.Vr(d,c)):d=d.j.ov(d);if(a.C&&(c=a.B,e=d.j[0].Ma, e=0>e&&!isNaN(c.B)?c.B:e,k=FGa(a.B,d.j[0].B,e),f=b===a.audioTrack?1:2,c=a.C.Zk(k,e,d.j[0].j.info.id,f),0>e&&(a.policy.Kv||2===f)&&JGa(a.B,0,0,!0),c)){k={decurl_itag:d.j[0].j.info.Yb(),sg:e,st:k.toFixed(3)};if(a.policy.Vq&&b.isRequestPending(e-1)){a.Aa("sdai",{wt_daistate_on_sg:e-1});return}a.Aa("sdai",k);e=d;c&&(e.B=new g.Zx(c))}a.policy.pj&&-1!==d.j[0].Ma&&d.j[0].Maf){if(a.policy.jb){var w=Object.assign(QR(e.timing),{rst:""+e.state,strm:""+e.xhr.Eu(),d:XHa(e.timing)});a.Aa("rqs",w)}e.ya&&a.Aa("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var x= a.timing,y=e.info.j[0].j,z=!x.D&&y.info.video,E=!x.u&&y.info.audio;3===e.state?z?x.tick("vrr"):E&&x.tick("arr"):4===e.state?z?(x.D=g.gz(e.u),g.Wr(),Yr(4)):E&&(x.u=g.gz(e.u)):e.yv()&&z&&(g.Wr(),Yr(4));if(3===e.state){MR(l,e);Bz(e.info)&&gS(a,l,k,!0);if(a.C){var I=e.info.Zk();I&&a.C.Lj(e.info.j[0].Ma,k.info.id,I)}a.Jh()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var J=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;J&&J instanceof bS&&J.C&&eIa(J,!0)}e.dispose()}else{if(!e.isFailed()&& e.D&&2<=e.state&&3!==e.state){var N=e.xhr.getResponseHeader("X-Response-Itag");if(N){var aa=VGa(a.u,N),K=e.info.range.length-aa.kF();aa.J=!0;e.info.j[0].j.J=!1;var oa=aa.xo(K);e.info=oa;if(e.j){var na=e.j,za=oa.j;na.j=za;var Va=za[0].range,Qb=new hy;for(f=0;fHa.B&&(Ha.B=NaN,Ha.C=NaN),Ha.j&&Ha.j.Ma===Ie.j[0].Ma){var Pf=Ha.j.Jd.event;if("start"===Pf||"continue"===Pf){if(1===Ha.u||5===Ha.u)Ha.j.Uw?UQ(Ha,4,"cue"):(Ha.B=Ie.j[0].Ma,Ha.C=Ie.j[0].B,Ha.Aa("sdai",{joinad:Ha.u,sg:Ha.B,st:Ha.C.toFixed(3)}), UQ(Ha,2,"join"),Of.vF(Ha.j.Jd))}else"stop"!==Pf||1!==Ha.u&&5!==Ha.u||Ha.Aa("sdai",{joinstop:1,st:Ha.u,sg:Ha.B}),UQ(Ha,5,"stop")}else 1===Ha.u&&UQ(Ha,5,"noad")}}else if(a.policy.Ja&&e.Zt()&&!e.isComplete()&&!hS(a,e)&&!e.isFailed())break a;e.isFailed()&&a.vt(e);a.Jh();if(a.policy.Hb&&e.isComplete()&&e.canRetry()&&kz(e.info.u,a.policy,a.ya)){var Rh=a.ya;var Ud=by(e.info.u.j);var Mb=iz(Rh,Ud);if(!(Mb.B+a.policy.Hb*qsa(Mb,a.policy,!0)>(0,g.R)())){var dh=Fsa(e.info,!1);dh&&rS(a,dh)}}}}}}}catch(Vd){e=CB(0), aa=DB(Vd,0),a.handleError(aa.errorCode,aa.details,aa.severity),e||iS(a)}},d)}; wIa=function(a,b){b&&a.Ca.oB(b);a.policy.zk&&a.u.Sa&&(b=SGa(a.u,"a"),tS(a.Ca,b.reason,b.audio.info))}; hS=function(a,b){try{var c=b.info.j[0].j.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.Zt(),c.K=!1);b.dF()&&a.Ia.Yg(1,b.dF());var d=b.KJ(),e=b.iM(),f=a.j,k;for(k in f.j){var l=f.j[k].index;l.Pk&&(d&&(l.qv=Math.max(l.qv,d)),e&&(l.B=Math.max(l.B||0,e)))}}if(b.info.Tk()&&!Az(b.info))for(var m=g.r(b.mD()),n=m.next();!n.done;n=m.next())rR(c.C,n.value);FR(c);return!!c.Jf()}catch(p){return p instanceof Error&&(b=b.Ws(),b.origin="hrhs",b.msg||(b.msg= ""+p.message),g.Sv(p),"WARNING"===p.level?uS(a.Ca,b):a.handleError("fmt.unplayable",b,1)),!1}}; rIa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=xIa(a);if(d){if(a.policy.Qr){if(!b.po()){var e=a.audioTrack.Jf();e&&(a.policy.Xl&&vS(a,a.audioTrack,b,e.info),wS(a,b,e))}!c.po()&&(b=a.videoTrack.Jf())&&(a.policy.Xl&&vS(a,a.videoTrack,c,b.info),wS(a,c,b))}a.va||(a.va=(0,g.R)(),a.policy.Z&&a.Aa("apdps",{r:d}))}else{if(a.va){d=(0,g.R)()-a.va;e=JR(a.audioTrack,a.currentTime);var f=JR(a.videoTrack,a.currentTime);a.policy.Z&&a.Aa("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(), vbuf:(1E3*f).toFixed()});a.va=0}if(a.D){d=a.D;e=a.audioTrack;f=tA(a.mediaSource.u.Af());if(d.C)d=kIa(d,f);else{if(f=e.Jf()){var k=f.u;k&&k.D&&k.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Ye&&(d.C=e,d.K=k,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.J=d.startTimeSecs,d.D=d.u.startTime,d.Qa())}d=NaN}d&&a.Ca.seekTo(d,{xq:!0,qe:"pollSubsegmentReadahead",Xp:!0})}d=!1;yIa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.R)(),ZG("vda",e.C,e.j),e.B&&(g.Wr(),Yr(4))));if(a.mediaSource&& !a.mediaSource.cf()&&(yIa(a,a.audioTrack,b)&&(d=a.timing,d.B||(d.B=(0,g.R)(),ZG("ada",d.B,d.j),d.C&&(g.Wr(),Yr(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Ub&&HR(a.videoTrack)&&HR(a.audioTrack)&&AA(a.mediaSource)&&!a.mediaSource.nh()&&(e=DR(a.audioTrack).j,e===a.j.j[e.info.id]&&(e=a.mediaSource,AA(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.We.webkitSourceEndOfStream(e.We.EOS_NO_ERROR)),e=a.schedule,Qta(mC(e)),e.D=iC(),e.N=!0));e=a.policy.Fv;f=a.policy.Lv;d||!(0c*(10-e)/MQ(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(e?e.Ma:-1);e=!!f}if(e)return!1;vS(a,b,c,d.info);if(a.j.u&&0===d.info.Ab&&(g.Qz(d.info.j.info)||a.policy.Gp)){if(null==c.po()){e=DR(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var k=0;ke)||(a.policy.qb&&(!d.info.Ab||d.info.Yd||10>d.info.B)&&a.Aa("sba",c.Nb({as:qz(d.info)})),e=d.D||d.B?d.info.j.j:null,f=my(d.j),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),c=zIa(a,c,f,d.info,e),"s"===c?(a.Ya=0,a=!0):("i"===c||"x"===c?AIa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy,e.K=Math.floor(.8*e.K), e.ya=Math.floor(.8*e.ya),e.J=Math.floor(.8*e.J)):(e=a.policy,e.X=Math.floor(.8*e.X),e.vb=Math.floor(.8*e.vb),e.J=Math.floor(.8*e.J)),$Q(a.u,d.info.j)),uS(a.Ca,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.Zh(d);return!0}; AIa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",d.j.C=e,d.j.info.video&&!aR(a.u)&&$Q(a.u,d.j)):"i"===c&&(15>a.Ya?(a.Ya++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=xz(d);var k;d.mrs=null==(k=a.mediaSource)?void 0:BA(k);d.origin=b;d.reason=c;a.handleError(e,d,f)}; sHa=function(a,b,c,d,e){var f=a.j,k=!1,l=-1;e=f.Xa&&e;for(var m in f.j){var n=eA(f.j[m].info.mimeType)||f.j[m].info.isVideo();if(d===n)if(k=f.j[m].index,Jz(k,b.Ma)){n=b;var p=k.Yk(n.Ma);p&&p.startTime!==n.startTime?(e||(k.segments=[],k.cD(n)),k=!0):k=!1;k&&(l=b.Ma)}else k.cD(b),k=!0}0<=l&&(m={},f.ea("clienttemp","resetMflIndex",(m[d?"v":"a"]=l,m.cfl=e,m),!1));DGa(a.J,b,d,k);a.B.QG(b,c,d)}; vS=function(a,b,c,d){b=DR(b);!b||b.Yd||vz(b,d)||c.abort();!c.Fw()||xA()?c.zI(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Fw()&&a.Aa("ctu",{ct:xA(),prev_c:c.Fw(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.vj&&b&&(d=0+b.duration,b=-b.j,0===c.jA()&&d===c.aF()||c.MH(0,d),b!==c.rd()&&(c.dC(b),uR&&uHa(a.audioTrack.C,c.pF())))}; wS=function(a,b,c){c.info.j.df();var d=c.info.j.j;if(!d||!b.Gz()||b.po()===d)return!1;var e=d,f=b.nA();if(a.policy.fh&&f&&b.isView()&&g.Qz(c.info.j.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=fsa(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Aa("fenc",{})}f=null;(k=c.info.j.xo(0))&&(f=k.j[0]);a.policy.qb&&a.Aa("sbi",b.Nb({as:qz(c.info)}));a.policy.Th&&b.abort();d=zIa(a,b,e,f,d);if("s"!==d)return AIa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.K||(a.K= (0,g.R)(),ZG("vis_a",a.K,a.j))):(a=a.timing,a.J||(a.J=(0,g.R)(),ZG("ais_a",a.J,a.j)));return b.nh()}; zIa=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:pA(b.Af()).replace(/,/g,"_"),message:g.Kc(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},lIa()),a.handleError("player.exception",b),"q";g.S(f)}return"u"}return a.mediaSource.cf()?"m":"s"}; mR=function(a,b){a.Ca.pB(b)}; pS=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.X:a.policy.K;!a.policy.Wa&&a.u.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.vb:a.policy.ya));c&&(d+=a.policy.rb);c=a.u.j.isLocked()?b.u?b.u.j.info.Ob:b.j.info.Ob:b.Ob*a.policy.mj;d/=c;0a.currentTime)return c.start/1E3;return Infinity}; CIa=function(a,b){EB(b,"cms",function(c){a.policy.Z&&a.Aa("pathprobe",c)},function(c){a.Ca.handleError(c)})}; DIa=function(a,b){a.C=b;a.B&&(a.B.D=b);a.C.QH(a.videoTrack.j.info.Ce())}; EIa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.B,d=b;if(0!==c.u&&c.D){var e=c.qt(d);e!==c.X&&(c.D.XG(c.X,e,c.va,d),c.X=e);c.va=d}a.currentTime!==b&&a.resume();a.J.u&&a.mediaSource&&!a.mediaSource.cf()&&(c=a.currentTime<=b&&b=b&&mIa(a,d.startTime,!1)}); return c&&c.startTimed;d++)c[2*d]=''.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new GS(null,null,null,null,a)}; IS=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c}; iJa=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=a&&(c=.75*a),b=.5*(a-c),c=new zS(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new KS(a.ob("disable_license_delay"),!a.ob("h5_widevine_keyrotationagent_optimization_killswitch"), b,this);break a;default:c=null}if(this.D=c)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.UK,this),this.D.subscribe("log_qoe",this.Vg,this);this.Qa("Created, key system "+this.j.keySystem+", final EME "+bB(this.Y.experiments));this.Vg({cks:this.j.Bf()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.Ja=new JS(this.videoData.Dc,this.Y.experiments),g.H(this,this.Ja))}; nJa=function(a){var b=a.C.attach();b?b.then(ir(function(){oJa(a)}),ir(function(c){if(!a.isDisposed()){a.Qa(); g.hr(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Qa(),a.Vg({mdkrdy:1}),a.X=!0); a.Z&&(b=a.Z.attach())}; qJa=function(a,b,c){a.Ia=!0;c=new hR(b,c);a.Y.S("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));pJa(a,c)}; pJa=function(a,b){if(!a.isDisposed()){a.Vg({onInitData:1});if(a.Y.S("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.Qa();a.Vg({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.xa&&!a.videoData.isLivePlayback)OS(a);else{if(!(a.Y.S("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ce)){a.xa=!0;c=b.cryptoPeriodIndex;var d=b.j;eHa(b);b.Ce||(d&&b.j!==d?a.ea("ctmp", "cpsmm",{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ea("widevine_set_need_key_info",b)}}else a.UK(b)}}; oJa=function(a){if(!a.isDisposed())if(a.Y.S("html5_drm_set_server_cert")&&!g.PC(a.Y)){var b=a.C.setServerCertificate();b?b.then(ir(function(c){jD(a.Y)&&a.ea("ctmp","ssc",{success:c})}),ir(function(c){a.ea("ctmp","ssce",{n:c.name, m:c.message})})).then(ir(function(){PS(a)})):PS(a)}else PS(a)}; PS=function(a){a.isDisposed()||(a.X=!0,a.Qa(),a.Vg({onmdkrdy:1}),OS(a))}; rJa=function(a){return"widevine"===a.j.flavor&&a.videoData.S("html5_drm_cpi_license_key")}; OS=function(a){if(a.Ia&&a.X&&!a.va){for(;a.B.length;){var b=a.B[0],c=rJa(a)?fHa(b):g.Jc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}eHa(b);break}a.B.length&&a.createSession(a.B[0])}}; sJa=function(a){var b;if(b=g.as()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.ty(b),a.ea("ctmp","drm",{metrics:b}))}; RS=function(a){g.G.call(this);var b=this;this.Ca=a;this.j=this.Ca.V();this.videoData=this.Ca.getVideoData();this.hx=0;this.J=this.B=!1;this.D=0;this.C=g.aB(this.j.experiments,"html5_delayed_retry_count");this.u=new g.L(function(){QS(b.Ca)},g.aB(this.j.experiments,"html5_delayed_retry_delay_ms")); g.H(this,this.u)}; TS=function(a,b,c){var d=a.videoData.u,e=a.videoData.J;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Ca.Lg.C&&d&&"22"===d.Yb())return a.Ca.Lg.C=!0,a.Nd("qoe.restart",{reason:"fmt.unplayable.22"}),SS(a.Ca),!0;var f=!1,k=a.hx+3E4<(0,g.R)()||a.u.isActive();if(a.j.S("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Nd("auth",c),!0;var l;if(l=!k)l=a.Ca.Co(),l=!!(l.Te()||l.isInline()||l.isBackground()|| l.Ht()||l.Dt());l&&(c.nonfg="paused",k=!0,a.Ca.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:"mac3"===e.j||"MAC3"===e.j||"meac3"===e.j||"MEAC3"===e.j||"m"===e.j||"M"===e.j)&&a.videoData.S("html5_disable_multichannel_codec_on_decoding_error")&&(nua(a.j.u,e.j),c.acfallexp=e.j,f=k=!0);!k&&0=a.j.ib)return!1;b.exiled=""+a.j.ib;a.Nd("qoe.start15s",b);a.Ca.ea("playbackstalledatstart");return!0}; wJa=function(a){if("GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(b){}}; uJa=function(a){return a.B?!0:"yt"!==a.j.ya?!1:a.videoData.ib?25>a.videoData.vb:!a.videoData.vb}; vJa=function(a){if(!a.B){a.B=!0;var b=a.Ca.getPlayerState();b=g.V(b,4)||b.isSuspended();a.Ca.Wm();b&&!FE(a.videoData)||a.Ca.ea("signatureexpired")}}; xJa=function(a,b){if((a=a.Ca.yd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Bj();b.details.merr=c?c.toString():"0";b.details.msg=a.Ge()}}; zJa=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="19067";if(uJa(a))return CB(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new g.BB("qoe.restart",b)),a.Nd(b.errorCode,b.details),vJa(a),!0;6048E5<(0,g.R)()-a.j.Od&&yJa(a,"signature");return!1}; yJa=function(a,b){try{window.location.reload();a.Nd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.j.S("tvhtml5_retire_old_players")&&g.PC(a.j)&&wJa(a)}; AJa=function(a,b){var c=a.j.u;c.D=!1;c.j=!0;a.Nd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});SS(a.Ca)}; BJa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d}; US=function(a,b,c){this.Y=a;this.uy=b;this.Ca=c;this.X=this.J=this.K=this.u=this.j=this.D=this.N=this.B=0;this.playbackRate=1;this.C=!1}; DJa=function(a,b,c){!a.Y.S("html5_tv_ignore_capable_constraint")&&g.PC(a.Y)&&(c=c.compose(CJa(a,b)));return c}; EJa=function(a,b){return 1(0,g.R)()-a.D?0:f||0k?a.u+1:0;if(!e||g.PC(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;HJa(a,b.videoData.u);a.Ca.Aa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},JJa()));return!0}; LJa=function(a,b){return 0>=g.aB(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32=e){d=e;break}return new Ix(0,d,!1,"b")}; NJa=function(a){a=a.Ca.Co();return a.isInline()?new Ix(0,480,!1,"v"):a.isBackground()&&60e?(c&&(d=OJa(a,c,d)),new Ix(0,d,!1,"e")):VD}; OJa=function(a,b,c){if(a.S("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;ba.B)){var b=g.IP(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.DH(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; XS=function(a,b){b?SJa.test(a):(a=g.or(a),Object.keys(a).includes("cpn"))}; YS=function(a,b,c,d,e,f,k){var l={format:"RAW"},m={};if(rr(a)&&sr()){if(k){var n;2!==(null==(n=TJa.uaChPolyfill)?void 0:n.state.type)?k=null:(k=TJa.uaChPolyfill.state.data.values,k={"Synth-Sec-CH-UA-Arch":k.architecture,"Synth-Sec-CH-UA-Model":k.model,"Synth-Sec-CH-UA-Platform":k.platform,"Synth-Sec-CH-UA-Platform-Version":k.platformVersion,"Synth-Sec-CH-UA-Full-Version":k.uaFullVersion});m=Object.assign(m,k);l.withCredentials=!0}k=g.P("EOM_VISITOR_DATA",void 0);b.S("enable_web_eom_visitor_data")&& k?m["X-Goog-EOM-Visitor-Id"]=k:d?m["X-Goog-Visitor-Id"]=d:b.S("enable_visitor_header_for_vss")&&!g.P("LOGGED_IN")&&g.P("VISITOR_DATA",void 0)&&(m["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);k||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.S("html5_send_cpn_with_options")&&SJa.test(a)&&(l.withCredentials=!0)}0a.K.UN+100&&a.K){var d=a.K,e=d.isAd;c=1E3*c-d.UN;a.ya=1E3*b-d.FZ-c-d.uZ;if(!a.j.videoData.S("web_player_dai_csi_killswitch")){c=(0,g.R)()-c;b=a.ya;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var k={};!d.S("web_player_csi_ctt_killswitch")&&d.X&&(k.cttAuthInfo={token:d.X,videoId:d.videoId});k.startTime=c-b;nx(f,k);mx({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, f);lx("pbs",c,f)}else c=a.j.Ca.Ji(),c.K!==d.clientPlaybackNonce?(c.J=d.clientPlaybackNonce,c.B=b):g.Sv(new g.Js("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.Aa("gllat",{l:a.ya.toFixed(),prev_ad:+e});delete a.K}}; cT=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.IP(a.j);var c=a.j.Ca.wA();if(!isNaN(a.ma)&&!isNaN(c.j)){var d=c.j-a.ma;0a.u)&&2=e&&(g.S(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.Y.S("html5_validate_yt_now")),c=b(); a.j=function(){return Math.round(b()-c)/1E3}; a.Ca.WG()}return a.j}; VJa=function(a){if(navigator.connection&&navigator.connection.type)return pKa[navigator.connection.type]||pKa.other;if(g.PC(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; hT=function(a){var b=new nKa;b.C=a.Nh().cc||"-";b.playbackRate=a.Ca.getPlaybackRate();var c=a.Ca.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Tb&&(b.u=1);c=a.Ca.getAudioTrack();c.Fc&&c.Fc.id&&"und"!==c.Fc.id&&(b.B=c.Fc.id);b.connectionType=VJa(a);b.volume=a.Nh().volume;b.muted=a.Nh().muted;b.clipId=a.Nh().clipid||"-";b.j=a.videoData.EK||"-";return b}; g.uT=function(a){g.G.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.gg=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.Th&&(this.j=new nT(this.u),g.H(this,this.j),this.qoe=new g.aT(this.u),g.H(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.gg=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.gg,this.j));this.C=new VS(this.u,function(c){b.Aa("h5h",c)}); g.H(this,this.C)}; qKa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.gg){var b;null!=(b=a.B.get(a.gg))&&iT(b.u)}else a.j&&iT(a.j.u)}; rKa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Ld&&(b.Ld="N");var c=g.IP(b.j);g.$S(b,c,"vps",[b.Ld]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);jD(b.j.Y)&&b.Aa("finalized",{});b.xa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())sT(c.value);else a.j&&sT(a.j);a.dispose()}; sKa=function(a,b){a.j&&mKa(a.j,b)}; tKa=function(a){if(!a.j)return null;var b=oT(a.j,"atr");return function(c){a.j&&mKa(a.j,c,b)}}; uKa=function(a,b,c,d){c.adFormat=c.Wb;var e=b.Ca;b=new nT(new tT(c,b.Y,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, Mh:function(){return e.Mh()}, wA:function(){return e.wA()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, Qw:function(){return e.Qw()}, getVisibilityState:function(){return e.getVisibilityState()}, Ji:function(){return e.Ji()}, WG:function(){e.WG()}, Cx:function(){e.Cx()}},b.Nh)); b.D=d;g.H(a,b);return b}; vKa=function(){this.aq=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN}; wKa=function(){this.u=g.Jw;this.j=[]}; yKa=function(a,b,c){var d=[];for(b=xKa(a,b);bc)break}return d}; zKa=function(a,b){var c=[];a=g.r(a.j);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; AKa=function(a){return a.j.slice(xKa(a,0x7ffffffffffff),a.j.length)}; xKa=function(a,b){a=rc(a.j,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; BKa=function(a,b){var c=NaN;a=g.r(a.j);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1}; FKa=function(a,b){this.videoData=a;this.j=b}; GKa=function(a,b,c){return Vwa(b,c).then(function(){return Nr(new FKa(b,b.C))},function(d){d instanceof Error&&jr(d); d=b.isLivePlayback&&!g.hB(a.u,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e=b.isLivePlayback&&!g.hB(a.u,!0)?2:1,f={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.jb,drm:""+ +gE(b),f18:""+ +(0<=b.aj.indexOf("itag=18")),c18:""+ +iA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.j&&(gE(b)?(f.f142=""+ +!!b.j.j["142"],f.f149=""+ +!!b.j.j["149"],f.f279=""+ +!!b.j.j["279"]):(f.f133=""+ +!!b.j.j["133"],f.f140=""+ +!!b.j.j["140"],f.f242=""+ +!!b.j.j["242"]),f.cAVC=""+ +jA('video/mp4; codecs="avc1.42001E"'), f.cAAC=""+ +jA('audio/mp4; codecs="mp4a.40.2"'),f.cVP9=""+ +jA('video/webm; codecs="vp9"'));if(b.N){f.drmsys=b.N.keySystem;var k=0;b.N.j&&(k=Object.keys(b.N.j).length);f.drmst=""+k}return new g.BB(d,f,e)})}; HKa=function(a){this.D=a;this.B=this.u=0;this.C=new tQ(50)}; zT=function(a,b,c){g.iv.call(this);this.videoData=a;this.experiments=b;this.N=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new IKa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.qb?c.u=3:g.sE(a)&&(c.u=2);b.ob("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.N=!0);var d=Nwa(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===lE(a)&&(c.J=g.aB(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Zr("trident/")||Zr("edge/"))d=g.aB(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B, d);g.aB(b,"html5_minimum_readahead_seconds")&&(c.B=g.aB(b,"html5_minimum_readahead_seconds"));g.aB(b,"html5_maximum_readahead_seconds")&&(c.X=g.aB(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.C=!0);g.aB(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.aB(b,"html5_allowable_liveness_drift_chunks"));g.aB(b,"html5_readahead_ratelimit")&&(c.Z=g.aB(b,"html5_readahead_ratelimit"));switch(lE(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.K=b.ob("html5_live_smoothly_extend_max_seekable_time")}this.policy= c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.qb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(lE(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=yT(this,b);this.Qa()}; JKa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.K&&3===Nwa(a.videoData)&&--c;return AT(a)*c}; BT=function(a,b){var c=a.Hj(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*AT(a);return b>=c-a}; KKa=function(a,b,c){b=BT(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B}; LKa=function(a,b){b=BT(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b}; AT=function(a){return a.videoData.j?MA(a.videoData.j)||5:5}; yT=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/AT(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.X/AT(a))),b)}; IKa=function(){this.ma=1;this.B=0;this.X=Infinity;this.Z=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.N=!1}; ET=function(a){g.G.call(this);this.Ca=a;this.Y=this.Ca.V();this.C=this.j=0;this.B=new g.L(this.D,1E3,this);this.ya=new CT({delayMs:g.aB(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.X=new CT({delayMs:g.aB(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Ea=DT(this,"html5_seek_set_cmt");this.ma=DT(this,"html5_seek_jiggle_cmt");this.va=DT(this,"html5_seek_new_elem");this.Sa=DT(this,"html5_unreported_seek_reseek");this.K=DT(this,"html5_long_rebuffer_jiggle_cmt");this.N=new CT({delayMs:2E4}); this.J=DT(this,"html5_ads_preroll_lock_timeout");this.Ia=new CT({delayMs:g.aB(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Os:!this.Y.S("html5_report_slow_ads_as_error")});this.Ja=new CT({delayMs:g.aB(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Os:!this.Y.S("html5_skip_slow_buffering_ad")});this.xa=DT(this,"html5_seek_over_discontinuities");this.Ra=new CT({delayMs:g.aB(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.Z=DT(this,"html5_slow_start_no_media_source"); this.u={};g.H(this,this.B)}; DT=function(a,b){var c=g.aB(a.Y.experiments,b+"_delay_ms");a=a.Y.S(b+"_cfl");return new CT({delayMs:c,Os:a})}; MKa=function(a,b,c,d,e,f,k){var l=qA(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1c.start(l+1)-c.end(l);m=f&&k&&m;var n=l+1b.WB,c=b.j&&c-b.j>b.vH||f?b.B=!0:!1):c=!1,c&&(c=Object.assign({},a.Nb(b)),c.wn=k,c.we=e,c.wsuc=d,a.Ca.Aa("workaroundReport",c),d&&(b.reset(),a.u[e]=!1)))}; CT=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.vH?1E3:b.vH,d=void 0===b.WB?3E4:b.WB;b=void 0===b.Os?!1:b.Os;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.vH=c;this.WB=d;this.Os=b}; NKa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.R)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1}; HT=function(a){g.G.call(this);var b=this;this.Ca=a;this.Y=this.Ca.V();this.videoData=this.Ca.getVideoData();this.policy=new OKa(this.Y);this.Z=new ET(this.Ca);this.playbackData=null;this.Ia=new g.gA;this.J=this.u=this.Va=this.qa=null;this.j=NaN;this.B=0;this.C=null;this.xa=NaN;this.D=this.K=null;this.X=this.N=!1;this.va=new g.L(function(){PKa(b,!1)},2E3); this.Sa=new g.L(function(){GT(b)}); this.Ea=new g.L(function(){b.Qa();b.N=!0;QKa(b)}); this.timestampOffset=0;this.Ja=!0;this.ya=0;this.Ra=NaN;this.ma=new g.L(function(){var c=b.Y.Pc;c.j+=1E4/36E5;c.j-c.B>1/6&&(Rua(c),c.B=c.j);b.ma.start()},1E4); g.H(this,this.Z);g.H(this,this.Ia);g.H(this,this.va);g.H(this,this.Ea);g.H(this,this.Sa);g.H(this,this.ma)}; RKa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new HKa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(cE(a.videoData)&&a.Va){var c=a.Va.Ia.Dg()||0;break a}if(a.videoData.j){c=a.videoData.j.va;break a}}c=0}return c}),a.u=new zT(a.videoData,a.Y.experiments,function(){return a.xd(!0)})); a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.u&&cd.C||g.Xa()-d.J=a.xd()-.1)a.j=a.xd(),a.C.resolve(a.xd()),JP(a.Ca);else try{var c=a.j-a.timestampOffset;a.Qa();a.qa.seekTo(c);a.Z.j=c;a.xa=c;a.B=a.j}catch(d){a.Qa()}}}; XKa=function(a){if(!a.qa||0===a.qa.Ih()||0>31));IK(a,16,b.xV);IK(a,18,b.QT);IK(a,19,b.PT);IK(a,21,b.UZ);IK(a,23,b.CT);IK(a,34,b.visibility);MK(a,38,b.mediaCapabilities,fLa,3);IK(a,39,b.i_);IK(a,40,b.jU)}; hLa=function(a){for(var b=[];BK(a,2);)b.push(AK(a));return{iE:b.length?b:void 0,GI:CK(a,4)}}; fLa=function(a,b){var c;if(b.FI)for(c=0;ca;a++)WT[a]=255>=a?9:7;XT.length=32;XT.fill(5);ZT.length=286;ZT.fill(0);for(a=261;285>a;a++)ZT[a]=Math.floor((a-261)/4);$T[257]=3;for(a=258;285>a;a++){var b=$T[a-1];b+=1<a;a++)aU[a]=3>=a?0:Math.floor((a-2)/2);for(a=bU[0]=1;30>a;a++)b=bU[a-1],b+=1<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}; yLa=function(a,b,c){b=dU(b);c=dU(c);for(var d=a.data,e=a.C,f=a.B,k=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}k|=(d[m+1]<<8)+d[m]<n)for(k>>=7;0>n;)n=b[(k&1)-n],k>>=1;else k>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=k,a.j=l,a.u=m,256a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<>4;for(eU(a,7);0>c;)c=b[cU(a,1)-c];return c>>4}; cU=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<>=b;a.j-=b;return c}; eU=function(a,b){a.j-=b;a.register>>=b}; dU=function(a){for(var b=[],c=g.r(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var k=1;k>m&1;l=f<<4|k;if(7>=k)for(m=1<<7-k;m--;)d[m<>=7;k--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; BLa=function(a){var b,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.zLa(new g.vLa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new hy([]);case 2:return g.A(m,d.read(),4);case 4:f=m.u;k=f.value;if(l=f.done){m.Za(3);break}e.append(k);m.Za(2);break;case 3:return m.return(my(e))}})}; DLa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=CLa[d]||0;a.j&&e>a.j||c.push(d)}return c}; GLa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.u(ELa[c]||[]));b.S("html5_early_media_for_drm")&&a.push.apply(a,g.u(FLa[c]||[]))}; LLa=function(a,b){var c=hE(a),d=a.V().u;if(fU&&!d.j)return fU;for(var e=[],f=[],k={},l=g.r(HLa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.r(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=ILa(p);!q||!q.video||cA(q)&&!c.va&&q.video.j>c.X||(n?e.push(p):(q=Qx(c,q,d),!0===q?(n=!0,e.push(p)):k[p]=q))}e&&GLa(e,a)}l=g.r(JLa);for(n=l.next();!n.done;n=l.next()){n=g.r(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=KLa(m))&&p.audio)if(p=Qx(c,p,d),!0===p){f.push(m);break}else k[m]= p;f&&GLa(f,a)}c.B&&b("orfmts",k);fU={video:e,audio:f};d.j=!1;return fU}; ILa=function(a){var b=MLa[Zz[a]],c=NLa[a];if(!c||!b)return null;var d=new Wz(c.width,c.height,c.fps);b=zta(b,d);return new $z(a,b,{video:d,Ob:c.bitrate/8})}; KLa=function(a){var b=MLa[Zz[a]],c=OLa[a];return c&&b?new $z(a,b,{audio:new Uz(c.audioSampleRate,c.numChannels)}):null}; PLa=function(a){this.md=a;this.logger=new g.qQ("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new TT(this)}; QLa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.r(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].GM||uLa(a.queue,c)}; RLa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.VG(b,a.C).then(function(e){var f=a.md;f.xe("oprr");f.playerResponse=e;f.nG||(f.ou=!1);gU(f)},function(e){a.md.fail(e)}); break;case 2:a.xe("ormk");b=my(b);a.queue.decrypt(b);break;default:d=!0}a.md.Qh&&a.md.Aa("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null}; SLa=function(a,b,c){var d=ny(b,0);a.md.Qh&&a.md.Aa("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).Ar,(d=a.B[d]||null)&&a.queue.enqueue(d,b,c))}; TLa=function(a,b){if(b+1<=a.totalLength){var c=ny(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=ny(a,b++);else if(2===c)c=ny(a,b++),a=ny(a,b++),a=(c&63)+64*a;else if(3===c){c=ny(a,b++);var d=ny(a,b++);a=ny(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=ny(a,b++);d=ny(a,b++);var e=ny(a,b++);a=ny(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),ly(a,c,4)?a=Pra(a).getUint32(c-a.B,!0):(d=ny(a,c+2)+256*ny(a,c+3),a=ny(a,c)+256*(ny(a,c+1)+ 256*d)),b+=5;return[a,b]}; hU=function(a){this.callbacks=a;this.j=new hy}; WLa=function(a){var b,c,d,e,f;return g.B(function(k){return 1==k.j?(b=a.V().Cd,null!=(c=b)&&c.baseUrl?g.A(k,ULa(),3):k.Za(2)):2!=k.j&&(d=k.u)?(e=""+d+b.baseUrl,f=new g.Zx(e),k.return(VLa(f,a))):k.return(null)})}; VLa=function(a,b){var c,d=null==(c=b.Fr)?void 0:c.urlQueryOverride;if(d)for(c=ey(d),c=g.r(Object.entries(c)),d=c.next();!d.done;d=c.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;a.set(d,e)}if(!a.get("id")){c=eC(b.videoId);b=[];if(c)for(c=g.r(c),d=c.next();!d.done;d=c.next())b.push(d.value.toString(16).padStart(2,"0"));b=b.join("");if(!b)return null;a.set("id",b)}return a}; ULa=function(){var a,b,c,d,e;return g.B(function(f){if(1==f.j)return a={format:"RAW",method:"GET",timeout:5E3},g.A(f,Jr("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",a),2);b=f.u;if(200!==b.xhr.status||!b.xhr.responseText)return f.return(null);c=b.xhr.responseText;d=/https:\/\/(.*)\.googlevideo.com/g;e=c.match(d);return f.return(e?e[0]:null)})}; iU=function(a,b){g.G.call(this);this.Ca=a;this.playerRequest=b;this.Y=this.Ca.V();this.videoData=this.Ca.getVideoData();this.logger=new g.qQ("onesie");this.Qh=2<=this.Y.X;this.EL=this.Y.Cd;this.bH=new OT(this.EL.j);this.xhr=null;this.Gl=new zP;this.IM=!1;this.playerResponse="";this.qQ=new hU(this);this.Nm=new PLa(this);this.xB=new g.L(this.DM,1E4,this);this.PO=new g.L(this.KV,2E3,this);this.fu="";this.MA=this.XM=!1;this.At=this.Y.Ah;this.Vt="";this.ou=this.S("html5_onesie_wait_for_media_availability"); this.enableCompression=this.nG=this.cN=!1;g.H(this.videoData,this);g.H(this,this.xB);g.H(this,this.PO);a=Fx();b=gB();this.S("html5_onesie_media_bytes")&&a&&b&&(this.S("html5_onesie_ads")?this.hf=new Map:(this.pe=new PT(this),g.H(this,this.pe)));this.Aa("sxhr",{s:""+ +a,a:""+ +(!!window.AbortController||Gx())},!0)}; UT=function(a,b){return a.hf?(b=b.split(";")[0],a.hf.get(b)):a.pe}; XLa=function(a){return a.S("html5_onesie_host_probing")||a.Qh}; tLa=function(a,b,c){null!=(a=UT(a,b))&&(b=a.ke.get(b))&&!b.cf&&(iy(b.re,c),b.bytesReceived+=c.totalLength,b.nH=!0)}; gU=function(a){if(!a.playerResponse)return!1;if(a.cN)return!0;var b=a.videoData.S("html5_onesie_audio_only_playback")&&fE(a.videoData);if(!a.hf&&a.ou&&a.pe&&!eLa(a.pe,b))return!1;if(a.hf&&a.ou){if(!a.hf.has(a.fu))return!1;var c=a.hf.get(a.fu);if(c&&!eLa(c,b))return!1}a.xe("ofr");a.Gl.resolve(a.playerResponse);a.xB.stop();return a.cN=!0}; ZLa=function(a){a.xe("ogsf_s");var b;if((null!=(b=a.hf)?b:a.pe)&&!a.S("html5_onesie_media_capabilities")){b=LLa(a.Ca.getVideoData(),function(d,e){a.Aa(d,e)}); var c=YLa(a.Ca);b.video=DLa(c,b.video);if(b.video.length)return a.xe("ogsf_c"),b;a.Aa("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}}; $La=function(a){if(!a.Cl)return{};var b=QR(a.Cl);b.d=XHa(a.Cl);b.shost=a.FP;b.ty="o";return b}; fMa=function(a){function b(e){return(d.eh&&!c.S("web_player_no_force_gvi")||!((c.mj?0:c.S("web_player_gvi_wexit")||(g.PC(c)?"TVHTML5"===c.deviceParams.c?jva(c)?c.S("web_player_gvi_wexit_living_room_pangea"):c.S("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.S("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||vC(c)?c.S("web_player_gvi_wexit_living_room_simply"):$C(c)||"TV_UNPLUGGED_CAST"===c.deviceParams.c?c.S("web_player_gvi_wexit_living_room_unplugged"): c.S("web_player_gvi_wexit_living_room_other"):1))||d.xj&&d.B.B)?0:"yt"!==c.ya?38===d.ya&&"books"===c.playerStyle||30===d.ya&&"docs"===c.playerStyle||33===d.ya&&"google-live"===c.playerStyle?0:c.S("web_player_gvi_wexit_all_player_styles"):"adunit"!==AE(d)||c.S("web_player_gvi_wexit_adunit"))?aMa(a,d).then(function(){jU(a,d)},function(f){jU(a,d,!0); throw f;}):bMa(a,d,e)} var c=a.V(),d=a.getVideoData();d.isDisposed();d.Ia=!0;return cMa(a)?dMa(a,d).then(function(){jU(a,d)},function(e){e=DB(e); if(CB(e.severity))return jU(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(eMa=!0);a.handleError(e);return b("onesie")}):b("gvi")}; cMa=function(a){var b=a.V();if(!b.S("html5_onesie"))return!1;var c=a.getVideoData();if(!b.S("html5_onesie_cast")&&(c.X||c.wg)||!b.S("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.ya||eMa)return!1;b=b.Cd;if(!b||!b.j)return a.handleError(new g.BB("onesie.unavailable.hotconfig",{key:"0"})),!1;b={};return 0Math.random())try{g.Sv(new g.Js("b/152131571",btoa(d)))}catch(y){}return x.return(Promise.reject(new g.BB(t,{backend:"gvi"},w)))}})}; kMa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,w,x,y;return g.B(function(z){if(1==z.j)return a.fetchType="gvi",c=a.V(),(f=KBa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=qr(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),k={},c.sendVisitorIdHeader&&a.visitorData&&(k["X-Goog-Visitor-Id"]=a.visitorData),(l=g.TA(c.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=l),0t.u&&3!==t.j.Ca.getVisibilityState()&&WS(t);q.qoe&&(q=q.qoe,q.Ia&&0>q.B&&q.j.Y.Wc&& gT(q));p.Va&&sS(p);p.Y.Jk&&!p.videoData.backgroundable&&p.qa&&!p.Ef()&&(p.isBackground()&&p.qa.Yy()?(p.Aa("bgmobile",{suspend:1}),p.Wm(!0)):p.isBackground()||lU(p)&&p.Aa("bgmobile",{resume:1}))}; this.Ag=new vT(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.Kw("endcr")||g.V(p.playerState,32)||JP(p); e(q,t,p.playerType)}); g.H(this,this.Ag);g.H(this,this.Uc);oMa(this,m);this.videoData.subscribe("dataupdated",this.WY,this);this.videoData.subscribe("dataloaded",this.rE,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Aa,this);this.videoData.subscribe("ctmpstr",this.uH,this);pMa(this);AFa(this.Oe);this.visibility.subscribe("visibilitystatechange",this.Oe);this.videoData.Ea&&qMa(this);!Zwa(this.videoData)&&dxa(this.videoData)||rMa(this);1===this.playerType&&mU.isActive()&& this.LB.start();this.videoData.Pd=this.getUserAudio51Preference()}; oMa=function(a,b){if(2===a.playerType||a.Y.Lk)b.bJ=!0;var c=$va(b.Wb,b.Qr,a.Y.j,a.Y.B);c&&(b.adFormat=c);2===a.playerType&&(b.yl=!0);if(a.isFullscreen()||a.Y.j)c=g.gw("yt-player-autonavstate"),b.autonavState=c||(a.Y.j?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&oU(a,b.endSeconds)}; pMa=function(a){!a.Zb||a.Zb.isDisposed();a.Zb=new g.uT(new tT(a.videoData,a.Y,a,function(){return a.cm.Nh()}))}; wF=function(a){return a.qa&&a.qa.Jp()?a.qa.Je():null}; pU=function(a){if(a.videoData.isValid())return!0;a.Wf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; qMa=function(a){var b=a.cm.Lc();a.videoData.Ul=a.videoData.Ul||(null==b?void 0:b.eF());a.videoData.Vl=a.videoData.Vl||(null==b?void 0:b.fF())}; g.HP=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.Zb;WS(c.C);c.qoe&&gT(c.qoe)}a.It=b;!pU(a)||a.Sm.started?g.PC(a.Y)&&a.videoData.isLivePlayback&&a.Sm.started&&!a.Sm.isFinished()&&!a.It&&a.rE():(a.Sm.start(),b=a.Zb,g.IP(b.u),b.qoe&&XJa(b.qoe),a.rE())}; sMa=function(a){var b=a.videoData;nMa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=DB(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Wf("auth",2,unescape(a.videoData.errorReason),AB(c.details),a.videoData.errorDetail,a.videoData.Ii||void 0):a.handleError(c))})}; DFa=function(a,b){a.ud=b;a.Va&&DIa(a.Va,new g.xS(b))}; tMa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Yi=g.kc(a.videoData.va)),rE(a.videoData)){a.Ib.tick("bpd_s");qU(a).then(function(){a.Ib.tick("bpd_c");if(!a.isDisposed()){a.It&&(a.hc(xH(xH(a.playerState,512),1)),lU(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&oU(a,c.endSeconds);a.Sm.finished=!0;rU(a,"dataloaded");a.Tm.started&&sU(a);QJa(a.Lg,a.Pe)}}); a.S("html5_log_media_perf_info")&&a.Aa("loudness",{v:a.videoData.Od.toFixed(3)},!0);var b=exa(a.videoData);b&&a.Aa("playerResponseExperiment",{id:b},!0);a.eE()}else rU(a,"dataloaded")}; qU=function(a){tU(a);a.Pe=null;var b=GKa(a.Y,a.videoData,a.Ef());a.Jx=b;a.Jx.then(function(c){uMa(a,c)},function(c){a.isDisposed()||(c=DB(c),a.visibility.isBackground()?(uU(a,"vp_none_avail"),a.Jx=null,a.Sm.reset()):(a.Sm.finished=!0,a.Wf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",AB(c.details))))}); return b}; SS=function(a){qU(a).then(function(){return lU(a)}); g.BH(a.playerState)&&a.playVideo()}; uMa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Pe=b;RKa(a.Uc,a.Pe);if(a.videoData.isLivePlayback){var c=(a.S("html5_onesie_ads")?fGa(a.cm.Pt,a.videoData.videoId):!!a.videoData.wk)||a.Va&&!isNaN(a.Va.Ea);c=a.S("html5_onesie_live")&&c;0oC(b.Y.Pc,"sticky-lifetime")?"auto":Mx[PA()]:d=Mx[PA()],d=g.Kx("auto",d,!1,"s");if(Lx(d)){d=CJa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var k=g.r(f.videoInfos),l=k.next();!l.done;l=k.next()){l=l.value;var m=void 0;if(null==(m=l.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Dma()&&!g.PC(b.Y)&&aA(c.j.videoInfos[0])&& (f=Math.min(f,g.Jx.large));f=new Ix(0,f,!1,"o");d=e.call(d,f);e=d.compose;f=4320;!b.Y.isMobile||g.GC(b.Y)||fs()||b.Y.S("hls_for_vod")||(f=b.Y.S("mweb_default_hd720")?g.Jx.hd720:g.Jx.medium);(k=g.aB(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.wg&&!c.videoData.Rd&&(f=Math.min(f,k));k=g.aB(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;k&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,k));if(l=k=g.aB(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l= g.r(l.videoInfos),m=l.next();!m.done;m=l.next())if(32f&&0!==f&&b.j===f)){1b.j&&"b"===b.reason;c=a.u.Wa&&!xA();d||e||b||c?uS(a.Ca,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.vp(a.ma)}}}; sS=function(a){a.S("html5_update_constraint")?xU(a):wU(a)}; yMa=function(a){var b=xMa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Fc.getName()===b})}; xMa=function(a){var b;if(a=null==(b=a.qa)?void 0:b.audioTracks())for(b=0;bn&&(n+=f.j);for(var p=0;pa.mediaSource.getDuration()&&a.mediaSource.ek(c)):a.mediaSource.ek(d);var e=a.Va,f=a.mediaSource;e.nk&&(iS(e),e.nk=!1);tIa(e);if(!f.j&&!f.u){var k=e.videoTrack.Jf(),l=e.policy.wk&&k?k.info.j:e.videoTrack.j,m=e.audioTrack.Jf(),n=l.info.mimeType+e.policy.wj,p=(e.policy.wk&&m?m.info.j:e.audioTrack.j).info.mimeType, q,t=null==(q=f.mediaSource)?void 0:q.addSourceBuffer(p),w,x="fakesb"===n.split(";")[0]?void 0:null==(w=f.mediaSource)?void 0:w.addSourceBuffer(n);f.We&&(f.We.webkitSourceAddId("0",p),f.We.webkitSourceAddId("1",n));var y=new wA(t,f.We,"0",Yz(p),!1),z=new wA(x,f.We,"1",Yz(n),!0);f.j=y;f.u=z;g.H(f,y);g.H(f,z)}CR(e.videoTrack,f.u||null);CR(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.jv(f.j,e.Wa,e);g.jv(f.u,e.Wa,e);try{e.Jh()}catch(E){g.S(E)}a.ea("mediasourceattached")}}catch(E){g.Sv(E),a.handleError(new g.BB("fmt.unplayable", {msi:"1",ename:E.name},1))}})}; BMa=function(a){a.Va?a.Va.seek(a.getCurrentTime()-a.rd()).Eh(function(){}):vU(a)}; QS=function(a,b){b=void 0===b?!1:b;return g.B(function(c){if(1==c.j)return a.Va&&a.Va.isDisposed()&&tU(a),a.ea("newelementrequired"),b?g.A(c,qU(a),2):c.Za(2);g.V(a.playerState,8)&&a.playVideo();g.ua(c)})}; xFa=function(a,b){a.Aa("newelem",{r:b});QS(a)}; FU=function(a){a.Ib.D.DG();g.V(a.playerState,32)||(a.hc(xH(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Qb()}; YP=function(a){g.V(a.playerState,32)?(a.hc(zH(a.playerState,16,32)),a.ea("endseeking",a)):g.V(a.playerState,2)||a.hc(xH(a.playerState,16));a.Ib.D.HG(a.videoData,g.V(a.playerState,4))}; rMa=function(a){var b=a.videoData.errorDetail;a.Wf("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Ii||void 0)}; rU=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)}; CMa=function(a){g.wc("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Pu.T(this.qa,b,this.aH,this)},a); a.Y.vk&&a.qa.Jp()&&(a.Pu.T(a.qa,"webkitplaybacktargetavailabilitychanged",a.rW,a),a.Pu.T(a.qa,"webkitcurrentplaybacktargetiswirelesschanged",a.sW,a))}; DMa=function(a){g.Er(a.EB);GU(a)||(a.EB=g.Cr(function(){return GU(a)},100))}; GU=function(a){var b=a.qa;b&&a.jB&&!a.videoData.ib&&!Ax("vfp",a.Ib.timerName)&&2<=b.Ih()&&!b.vl()&&0b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.vp(a.gE);a.ea("playbackstarted");g.Xr()&&((a=g.La("yt.scheduler.instance.clearPriorityThreshold"))?a():Yr(0))}; EMa=function(a){var b=a.getCurrentTime(),c=a.videoData;!Ax("pbs",a.Ib.timerName)&&Tw.measure&&Tw.getEntriesByName&&(Tw.getEntriesByName("mark_nr")[0]?mra("mark_nr"):mra());c.videoId&&a.Ib.info("docid",c.videoId);c.eventId&&a.Ib.info("ei",c.eventId);c.clientPlaybackNonce&&!a.S("web_player_early_cpn")&&a.Ib.info("cpn",c.clientPlaybackNonce);0a.mN+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&JA(a.videoData.j))){var b=a.Zb;if(b.qoe){b=b.qoe;var c=b.j.Ca.wA(),d=g.IP(b.j);WJa(b,d,c);c=c.D;isNaN(c)||g.$S(b,d,"e2el",[c.toFixed(3)])}}g.aD(a.Y)&&a.Aa("rawlat",{l:wQ(a.ZH,"rawlivelatency").toFixed(3)});a.mN=Date.now()}a.videoData.u&&dA(a.videoData.u)&&(b=wF(a))&&b.videoHeight!==a.ZF&&(a.ZF=b.videoHeight,BU(a,"a",wMa(a,a.videoData.Ya)))}; wMa=function(a,b){if("auto"===b.j.video.quality&&dA(b.Bf())&&a.videoData.Db)for(var c=g.r(a.videoData.Db),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.ZF&&"auto"!==d.j.video.quality)return d.Bf();return b.Bf()}; kU=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Va&&a.videoData.j&&(b=cE(a.videoData)?a.Va.Ia.Dg()||0:a.videoData.j.va);return Date.now()/1E3-a.getIngestionTime()-b}; HMa=function(a){!a.S("html5_ignore_airplay_events_on_new_video_killswitch")&&a.qa&&a.qa.Ef()&&(a.SA=(0,g.R)());a.Y.Vl?g.Br(function(){HU(a)},0):HU(a)}; HU=function(a){if(a.qa)try{a.DB=a.qa.playVideo()}catch(c){uU(a,"err."+c)}if(a.DB){var b=a.DB;b.then(void 0,function(c){if(!(g.V(a.playerState,4)||g.V(a.playerState,256)||a.DB!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);uU(a,d);a.cL=!0;a.videoData.kP=!0}})}}; uU=function(a,b){g.V(a.playerState,128)||(a.hc(zH(a.playerState,1028,9)),a.Aa("dompaused",{r:b}),a.ea("onAutoplayBlocked"))}; lU=function(a){if(!a.qa||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=AMa(a);var d;null==(d=a.Va)||d.resume()}else tU(a),a.videoData.Ya&&(c=a.videoData.Ya.tv());b=c;d=a.qa.Yy();c=!1;d&&d.equals(b)||(IMa(a,b),c=!0);g.V(a.playerState,2)||(b=a.Uc,b.D||!(0=c&&b<=a}; fNa=function(a){g.V(a.wb.getPlayerState(),64)&&KU(a).isLivePlayback&&5E3>a.Vb.startTimeMs||a.wb.seekTo(.001*a.Vb.startTimeMs,{qe:"application_loopRangeStart"})}; WMa=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}; eV=function(a,b,c){if(a.oe(c)){c=c.getVideoData();if(dV(a))c=b;else{a=a.ud;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Cc===e.Cc){b+=e.Hc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Cc===e.Cc)break;var f=e.Hc/1E3;if(fd?e=!0:1=b?b:0;this.j=a=l?function(){return new YV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k})}:function(m,n){var p=mOa(m,c,d,function(q){var t=n(q),w=q.slotId; q=oW(k);w=yw(e.u.get(),"LAYOUT_TYPE_SURVEY",w);var x={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new qW(e.j,d),z=new rW(e.j,w),E=new sW(e.j,w),I=new nOa(e.j);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",uc:new Map,zd:[y,I],Rc:[z],Oc:[],Sc:[E],Yc:[],gb:"core",Fa:new qV([new nG(k),new dG(b),new NG(l/1E3),new QG(q)]),zc:t(x),adLayoutLoggingData:k.adLayoutLoggingData}}); m=lOa(a,c,p.slotId,d,e,m,n);return m instanceof YV?m:[p].concat(g.u(m))}}; wOa=function(a,b,c,d,e){var f=[];try{var k=[];if(c.renderer.linearAdSequenceRenderer)var l=function(w){w=pOa(w.slotId,c,b,e(w),d);k=w.a_;return w.aU}; else if(c.renderer.instreamVideoAdRenderer)l=function(w){var x=w.slotId;w=e(w);var y=c.config.adPlacementConfig,z=qOa(y),E=z.QL;z=z.TL;var I=c.renderer.instreamVideoAdRenderer,J;if(null==I?0:null==(J=I.playerOverlay)?0:J.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var N=rOa(I);J=Math.min(E+1E3*N.videoLengthSeconds,z);z=new UE(0,[N.videoLengthSeconds],J);var aa=N.videoLengthSeconds,K=N.playerVars,oa=N.instreamAdPlayerOverlayRenderer,na=N.adVideoId, za=sOa(c),Va=N.uc;N=N.QK;var Qb=null==I?void 0:I.adLayoutLoggingData;I=null==I?void 0:I.sodarExtensionData;x=yw(b.u.get(),"LAYOUT_TYPE_MEDIA",x);var Ma={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",uc:Va,zd:[new tW(b.j)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new qV([new hG(d),new zG(aa),new AG(K),new CG(E),new DG(J),oa&&new iG(oa),new dG(y),new fG(na),new eG(z),new IG(za),I&&new BG(I),new vG({current:null}),new FG({}),new UG(N)].filter(tOa)), zc:w(Ma),adLayoutLoggingData:Qb}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=uOa(a,d,l);f.push(m);for(var n=g.r(k),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof YV)return t;f.push.apply(f,g.u(t))}}catch(w){return new YV(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:vOa(c)})}return f}; vOa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=b.instreamVideoAdRenderer)?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0}; pOa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,k=qOa(f),l=k.QL,m=k.TL;k=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==k||!k.length)throw new TypeError("Expected linear ads");var n=[],p={VP:l,WP:0,WZ:n};k=k.map(function(t){return xOa(a,t,p,c,d,f,e,m)}).map(function(t,w){w=new UE(w,n,m); return t(w)}); var q=k.map(function(t){return t.bU}); return{aU:yOa(c,a,l,q,f,sOa(b),d,m),a_:k.map(function(t){return t.ZZ})}}; xOa=function(a,b,c,d,e,f,k,l){var m=rOa(b.instreamVideoAdRenderer),n=c.VP,p=c.WP,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.VP=q;c.WP++;c.WZ.push(m.videoLengthSeconds);var t,w,x=null==(t=b.instreamVideoAdRenderer)?void 0:null==(w=t.playerOverlay)?void 0:w.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z=m.playerVars;2<=y.u&&(z.slot_pos=y.j);z.autoplay="1";var E,I;z=m.videoLengthSeconds;var J=m.playerVars, N=m.uc,aa=m.QK,K=m.instreamAdPlayerOverlayRenderer,oa=m.adVideoId,na=null==(E=b.instreamVideoAdRenderer)?void 0:E.adLayoutLoggingData;E=null==(I=b.instreamVideoAdRenderer)?void 0:I.sodarExtensionData;I=yw(d.u.get(),"LAYOUT_TYPE_MEDIA",a);var za={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};y={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",uc:N,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:"adapter",Fa:new qV([new hG(k),new zG(z),new AG(J),new CG(n),new DG(q),new EG(p),new vG({current:null}),K&&new iG(K), new dG(f),new fG(oa),new eG(y),E&&new BG(E),x&&new TG(x),new FG({}),new UG(aa)].filter(tOa)),zc:e(za),adLayoutLoggingData:na};z=oOa(b.instreamVideoAdRenderer,f,k,y.layoutId,d);return{bU:y,ZZ:z}}}; rOa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=mr(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e|| (e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,uc:a.pings?WE(a.pings):new Map,QK:VE(a.pings)}}; sOa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; qOa=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{QL:b,TL:a}}; AOa=function(a,b,c,d,e,f,k){var l=c.pings;return l?[zOa(a,f,e,function(m){var n=m.slotId;m=k(m);var p=c.adLayoutLoggingData;n=yw(b.u.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",gb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",uc:WE(l),zd:[new uW(b.j,f)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new qV([new dG(d)]),zc:m(q),adLayoutLoggingData:p}})]:new YV("VideoAdTrackingRenderer without VideoAdTracking pings filled.", {videoAdTrackingRenderer:c})}; COa=function(a,b,c,d,e,f,k,l){a=BOa(a,c,f,k,d,function(m){var n=m.slotId;m=l(m);n=yw(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",uc:q,zd:[new vW(b.j,n)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new qV([new HG(e),new dG(c)]),zc:m(p)}}); return a instanceof YV?a:[a]}; EOa=function(a,b,c,d,e,f,k,l){a=DOa(a,c,f,k,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=yw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=wW(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,xW(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=yw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=wW(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,xW(b,n,p))):q.imageOverlayAdContentRenderer?(q=yw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=xW(b,n,p),n.push(new yW(b.j,q)),n=wW(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new OV("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new OV("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof YV?a:[a]}; HOa=function(a,b,c,d,e,f,k){var l=Number(d.durationMilliseconds);return isNaN(l)?new YV("Expected valid duration for AdActionInterstitialRenderer."):function(m){return FOa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,k(m),function(n){return GOa(a,n,e,function(p,q){var t=p.slotId;p=k(p);t=yw(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return pW(b, t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new lG(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}}; IOa=function(a,b,c,d){if(!c.playerVars)return new YV("No playerVars available in AdIntroRenderer.");var e=mr(c.playerVars);e.autoplay="1";return function(f){var k=f.slotId;f=d(f);k=yw(a.u.get(),"LAYOUT_TYPE_MEDIA",k);var l={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{yr:{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",uc:new Map,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:"adapter",Fa:new qV([new GG({}),new dG(b),new vG({current:null}),new AG(e)]),zc:f(l)},Ls:[new zW(a.j,k,"error")],eq:[],Oz:[], Nz:[]}}}; KOa=function(a,b,c,d,e,f,k,l){var m=nW(e);if(!Wxa(e))return new YV("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new YV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=iOa(a,b,e,f,c,d,k);return n instanceof YV?n:function(p){return JOa(b,p.slotId,c,m,oW(e),k(p),n,l)}}; LOa=function(a,b,c,d,e,f,k){function l(p){return GOa(a,p,d,m)} function m(p,q){var t=p.slotId;p=k(p);t=yw(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return pW(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new mG(e),f],e.adLayoutLoggingData)} if(!(!isNaN(Number(e.timeoutSeconds))&&e.text&&e.ctaButton&&e.ctaButton.buttonRenderer&&e.brandImage&&e.backgroundImage&&e.backgroundImage.thumbnailLandscapePortraitRenderer&&e.backgroundImage.thumbnailLandscapePortraitRenderer.landscape))return new YV("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t= k(p);p=AW(b,p.slotId,c,n,q,new Map,t,l);q=new rG(p.dH);return{yr:{layoutId:p.layoutId,layoutType:p.layoutType,uc:p.uc,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:p.gb,Fa:new qV([].concat(g.u(p.Zv),[q])),zc:p.zc,adLayoutLoggingData:p.adLayoutLoggingData},Ls:[],eq:p.Oc,Oz:p.Sc,Nz:p.Yc,Bh:p.Bh}}}; OOa=function(a,b,c,d,e,f,k,l,m,n,p){c=MOa(c,d,f,k,l,m,n,p);if(c instanceof YV)return c;a=NOa(b,a,k,e,c);return a instanceof YV?a:[].concat(g.u(a.Xh),[a.Xt])}; QOa=function(a,b,c,d,e,f,k,l,m,n,p){b=MOa(b,c,e,f,l,m,n,p);if(b instanceof YV)return b;a=POa(a,c,f,k,d,l.Ff,b);return a instanceof YV?a:a.Xh.concat(a.Xt)}; MOa=function(a,b,c,d,e,f,k,l){var m=BW(c);return m instanceof OV?new YV(m):function(n){var p=new UE(0,[m.sz]),q=ROa(m.playerVars,m.oP,e,l,p);n=f(n);var t=k.get(m.yC.externalVideoId);p=SOa(a,"core",m.yC,b,q,m.sz,d,p,n,t);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,uc:p.uc,zd:p.zd,Rc:p.Rc,Oc:p.Oc,Sc:p.Sc,Yc:p.Yc,gb:p.gb,Fa:p.Fa,zc:p.zc,adLayoutLoggingData:p.adLayoutLoggingData},Xh:[]}}}; BW=function(a){if(!a.playerVars)return new OV("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 OV("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=mr(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,T("Expected valid length seconds in player vars but got NaN")); return{yC:a,playerVars:b,oP:a.playerVars,sz:c}}; ROa=function(a,b,c,d,e){a.iv_load_policy=d;b=mr(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){T(f)}c.wg&&(a.ctrl=c.wg);c.Ng&&(a.ytr=c.Ng);c.hm&&(a.ytrcc=c.hm);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.wi&&(a.vss_credentials_token_type=c.wi),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a}; UOa=function(a,b,c,d,e,f,k,l,m,n,p){a=NOa(b,a,k,e,TOa(b,c,d,f,k,l,m,n,p));return a instanceof YV?a:[].concat(g.u(a.Xh),[a.Xt])}; WOa=function(a,b,c,d,e,f,k,l,m,n,p){b=TOa(a,b,c,e,f,l,m,n,p);a:{e=g.r(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=VOa(a,c,f,k),c instanceof YV?d=c:(f=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER"),k=yw(a.u.get(),"LAYOUT_TYPE_SURVEY",f),a=[].concat(g.u(c.vc),[new CW(a.j,k)]),f=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Pb:c.Pb,qc:c.qc,vc:a},{slotId:f,layoutId:k}),d=f instanceof YV?f:{Xt:{slotId:c.slotId,slotType:c.slotType, slotPhysicalPosition:c.slotPhysicalPosition,Pb:c.Pb,qc:c.qc,vc:a,gb:c.gb,Fa:new qV([new JG(f.layout)]),adSlotLoggingData:d},Xh:f.Xh})):d=POa(a,c,f,k,d,l.Ff,b);return d instanceof YV?d:d.Xh.concat(d.Xt)}; TOa=function(a,b,c,d,e,f,k,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),w=t.next();!w.done;w=t.next())if(w=w.value,w.instreamVideoAdRenderer){w=BW(w.instreamVideoAdRenderer);if(w instanceof OV){q=new YV(w);break b}q.push(w.sz)}}if(q instanceof YV)p=q;else{t=0;w=[];for(var x=[],y=[],z=[],E=[],I=[],J=new wG({current:null}),N=[],aa=g.r(d),K=aa.next();!K.done;K=aa.next())if(K=K.value,K.adIntroRenderer){K=IOa(b,c,K.adIntroRenderer,k);if(K instanceof YV){p=K;break a}K=K(n);w.push(K.yr);x=[].concat(g.u(K.Ls), g.u(x));y=[].concat(g.u(K.eq),g.u(y));K.Bh&&(N=[K.Bh].concat(g.u(N)))}else if(K.instreamVideoAdRenderer){var oa=BW(K.instreamVideoAdRenderer);if(oa instanceof OV){p=new YV(oa);break a}var na=new UE(t,q);K=b;var za=oa.yC,Va=ROa(oa.playerVars,oa.oP,f,m,na),Qb=k(n),Ma=l.get(oa.yC.externalVideoId);oa=SOa(K,"adapter",za,c,Va,oa.sz,e,na,Qb,Ma);na=oa.Rc;za.isCritical&&(na=[new zW(K.j,oa.layoutId,"error")].concat(g.u(na)));K={layoutId:oa.layoutId,layoutType:oa.layoutType,uc:oa.uc,zd:[],Rc:[],Oc:[],Sc:[], Yc:[],gb:oa.gb,Fa:oa.Fa,zc:oa.zc,adLayoutLoggingData:oa.adLayoutLoggingData};za=na;oa=oa.Oc;t++;w.push(K);x=[].concat(g.u(za),g.u(x));y=[].concat(g.u(oa),g.u(y))}else if(K.adActionInterstitialRenderer){K=HOa(a,b,c,K.adActionInterstitialRenderer,e,t,k);if(K instanceof YV){p=K;break a}K=K(n);w.push(K.yr);x=[].concat(g.u(K.Ls),g.u(x));y=[].concat(g.u(K.eq),g.u(y));K.Bh&&(N=[K.Bh].concat(g.u(N)))}else if(K.instreamSurveyAdRenderer){if(void 0===p){p=new YV("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:K.instreamSurveyAdRenderer});break a}K=KOa(a,b,c,e,K.instreamSurveyAdRenderer,J,k,p);if(K instanceof YV){p=K;break a}K=K(n);w.push(K.yr);K.Bh&&N.push(K.Bh);x=[].concat(g.u(K.Ls),g.u(x));y=[].concat(g.u(K.eq),g.u(y));z=[].concat(g.u(K.Oz),g.u(z));E=[].concat(g.u(K.Nz),g.u(E));I=[J].concat(g.u(I))}else if(K.surveyTextInterstitialRenderer){K=LOa(a,b,c,e,K.surveyTextInterstitialRenderer,J,k);if(K instanceof YV){p=K;break a}K=K(n);w.push(K.yr);K.Bh&&N.push(K.Bh);y=[].concat(g.u(K.eq), g.u(y))}else{p=new YV("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={XZ:w,Rc:x,Sc:z,Yc:E,Oc:y,Zv:I,Xh:N}}}p instanceof YV?n=p:(z=n.slotId,q=p.XZ,t=p.Rc,w=p.Oc,x=p.Sc,y=p.Zv,n=k(n),z=yw(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),E={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uc:new Map,zd:[new vW(b.j,z)],Rc:t,Oc:w,Sc:x,Yc:[],gb:"core",Fa:new qV([new xG(q)].concat(g.u(y))),zc:n(E)}, Xh:p.Xh});return n}}; YOa=function(a,b,c,d,e,f,k){if(!Wxa(c))return new YV("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=nW(c);if(0>=l)return new YV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new wG({current:null}),n=iOa(a,b,c,m,d,f,k);return XOa(a,d,f,l,e,function(p,q){var t=p.slotId,w=oW(c);p=k(p);t=yw(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,q); X(y.Fa,"metadata_type_fulfilled_layout")||T("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new dG(d),new OG(l),new QG(w),new RG(!0),m,new sG("LAYOUT_TYPE_SURVEY")];return{MV:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uc:new Map,zd:[new vW(b.j,t)],Rc:[new rW(b.j,q.layoutId)],Oc:[],Sc:[new sW(b.j,q.layoutId)],Yc:[],gb:"core",Fa:new qV(w),zc:p(x)},jV:y}})}; ZOa=function(a){if(!XNa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&NF(b)?!0:(T("Invalid Sandwich with notify"),!1):!1}; $Oa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?NF(a)?!0:(T("Invalid LASR with notify"),!1):!1}; DW=function(a,b,c,d,e,f,k){this.u=a;this.j=b;this.La=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===k?1:k}; qqa=function(a,b,c,d,e,f,k){var l=[];if(EW(a.La.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")){if(0===b.length&&0===c.length)return l}else if(0===b.length)return l;b=b.filter(kW);for(var m=c.filter(kW),n=new Map,p=new Map,q=g.r(b),t=q.next();!t.done;t=q.next())(t=t.value.renderer.remoteSlotsRenderer)&&t.hostElementId&&p.set(t.hostElementId,t);q=g.r(b);for(t=q.next();!t.done;t=q.next()){t=t.value;var w=aPa(a,n,t,d,e,f,k,p);w instanceof YV?T(w,void 0,void 0,{renderer:t.renderer, config:t.config.adPlacementConfig,kind:t.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):l.push.apply(l,g.u(w))}EW(a.La.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")&&(e=bPa(a,m,d,k,p,n),l.push.apply(l,g.u(e)));if(null===a.D||f&&!k.HL){var x,y,z;a=k.Ff&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(x=b[0].config)?void 0:null==(y=x.adPlacementConfig)?void 0:y.kind)&&(null==(z=b[0].renderer)?void 0:z.adBreakServiceRenderer);if(!l.length&&!a){var E, I,J,N;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null==(E=b[0])?void 0:null==(I=E.config)?void 0:null==(J=I.adPlacementConfig)?void 0:J.kind,renderer:null==(N=b[0])?void 0:N.renderer})}return l}x=c.filter(kW);l.push.apply(l,g.u(eOa(n,x,a.u.get(),a.D,d,a.La.get())));if(!l.length){var aa,K,oa,na;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length, contentCpn:d,daiEnabled:f,"first APR kind":null==(aa=b[0])?void 0:null==(K=aa.config)?void 0:null==(oa=K.adPlacementConfig)?void 0:oa.kind,renderer:null==(na=b[0])?void 0:na.renderer})}return l}; bPa=function(a,b,c,d,e,f){function k(t){return wV(a.B.get(),t)} var l=[];b=g.r(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&ZOa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,lW(f,n,m.config.adPlacementConfig.kind),m=OOa(q.layout.layoutId,a.u.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,k,e,a.loadPolicy,a.La.get()),m instanceof YV?T(m):l.push.apply(l,g.u(m))):q&&$Oa(q)&&(lW(f,n,m.config.adPlacementConfig.kind),m=UOa(q.adStart.adMessageRenderer.layout.layoutId, a.u.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,c,d,k,e,a.loadPolicy,a.La.get()),m instanceof YV?T(m):l.push.apply(l,g.u(m)))}return l}; aPa=function(a,b,c,d,e,f,k,l){function m(x){return wV(a.B.get(),x)} var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,w=k.HL&&"AD_PLACEMENT_KIND_START"===q;w=f&&!w;if(null!=n.adsEngagementPanelRenderer)return mW(b,c.elementId,q,n.adsEngagementPanelRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.adsEngagementPanelRenderer,J=wV(a.B.get(),x);return FW(E,x.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new WF(I),y,z,I.impressionPings,J,n.adsEngagementPanelRenderer.adLayoutLoggingData)}),[]; if(null!=n.actionCompanionAdRenderer)mW(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.actionCompanionAdRenderer,J=wV(a.B.get(),x);return FW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new VF(I),y,z,I.impressionPings,J,n.actionCompanionAdRenderer.adLayoutLoggingData)}); else if(n.imageCompanionAdRenderer)mW(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.imageCompanionAdRenderer,J=wV(a.B.get(),x);return FW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new $F(I),y,z,I.impressionPings,J,n.imageCompanionAdRenderer.adLayoutLoggingData)}); else if(n.shoppingCompanionCarouselRenderer)mW(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.shoppingCompanionCarouselRenderer,J=wV(a.B.get(),x);return FW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new aG(I),y,z,I.impressionPings,J,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)}); else if(n.adBreakServiceRenderer){if(!aOa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return $Na(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.C)return new YV("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");k.Ff||T("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(k.Ff),clientPlaybackNonce:k.clientPlaybackNonce}); cPa(a.C,{adPlacementRenderer:c,contentCpn:d,xL:e})}else{if(n.clientForecastingAdRenderer)return COa(a.u.get(),a.j.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return EOa(a.u.get(),a.j.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&w)return wOa(a.u.get(),a.j.get(),c,d,m);if(n.linearAdSequenceRenderer&&!w)return lW(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?WOa(a.u.get(),a.j.get(),p,t,n.linearAdSequenceRenderer.linearAds, d,e,k,m,l,a.loadPolicy,a.La.get()):new YV("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!w)return lW(b,n,q),QOa(a.u.get(),a.j.get(),p,t,n.instreamVideoAdRenderer,d,e,k,m,l,a.loadPolicy,a.La.get());if(n.instreamSurveyAdRenderer)return YOa(a.u.get(),a.j.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return XNa(n.sandwichedLinearAdRenderer)?WOa(a.u.get(),a.j.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart, n.sandwichedLinearAdRenderer.linearAd],d,e,k,m,l,a.loadPolicy,a.La.get()):new YV("Received invalid SandwichedLinearAdRenderer.");if(null!=n.videoAdTrackingRenderer)return AOa(a.u.get(),a.j.get(),n.videoAdTrackingRenderer,p,t,d,m)}}return[]}; GW=function(a){g.G.call(this);this.j=a}; pw=function(a,b,c,d){a.j().Wh(b,d);c=c();a=a.j();HW(a.Xb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;gH(d.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);gH(d.Xb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.nb(c.slotId))throw new YV("Slot ID was empty");if(MV(e,c))throw new YV("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Pb.triggerType});if(!e.ge.qm.has(c.slotType))throw new YV("No fulfillment adapter factory registered for slot of type: "+ c.slotType);if(!e.ge.fn.has(c.slotType))throw new YV("No SlotAdapterFactory registered for slot of type: "+c.slotType);fW(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Pb?[c.Pb]:[]);fW(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.qc);fW(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.vc);var f=d.j,k=c.slotType+"_"+c.slotPhysicalPosition,l=$V(f,k);if(MV(f,c))throw new YV("Duplicate slots not supported");l.set(c.slotId,new SNa(c));f.j.set(k,l)}catch(na){T(na,c,void 0,void 0,na.Vp);break a}MV(d.j,c).J=!0;try{var m=d.j,n=MV(m, c),p=c.Pb,q=m.ge.oi.get(p.triggerType);q&&(q.cj("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.va.set(p.triggerId,q));for(var t=g.r(c.qc),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.ge.oi.get(x.triggerType);y&&(y.cj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Z.set(x.triggerId,y))}for(var z=g.r(c.vc),E=z.next();!E.done;E=z.next()){var I=E.value,J=m.ge.oi.get(I.triggerType);J&&(J.cj("TRIGGER_CATEGORY_SLOT_EXPIRATION",I,c,null),n.X.set(I.triggerId,J))}var N=m.ge.qm.get(c.slotType).get().ze(m.B, c);n.K=N;var aa=m.ge.fn.get(c.slotType).get().ze(m.D,c);aa.init();n.u=aa}catch(na){T(na,c,void 0,void 0,na.Vp);JV(d,c,!0);break a}gH(d.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.yh(c);for(var K=g.r(d.Td),oa=K.next();!oa.done;oa=K.next())oa.value.yh(c);RV(d,c,!1)}}; IW=function(a,b,c,d){this.yp=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; JW=function(a,b,c,d){g.G.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.j=new Map;d.get().addListener(this);g.Bf(this,function(){d.get().removeListener(e)})}; nqa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.qc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof IW?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Up(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)}; KW=function(){g.G.apply(this,arguments);this.Li=!0;this.di=new Map;this.j=new Map}; dPa=function(a,b){a=g.r(a.di.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; ePa=function(a,b){a=g.r(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}T("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.nb(b)),layoutId:b})}; CW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)}; zW=function(a,b,c){this.Qe=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)}; qW=function(a,b){this.Qe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)}; tW=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; LW=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)}; MW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; vW=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)}; uW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)}; fPa=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)}; nOa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; rW=function(a,b){this.Qe=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)}; sW=function(a,b){this.Qe=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)}; yW=function(a,b){this.durationMs=45E3;this.Qe=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; gPa=function(a){return[new qG(a.Iu),new iG(a.instreamAdPlayerOverlayRenderer),new uG(a.UO),new dG(a.adPlacementConfig),new zG(a.videoLengthSeconds),new NG(a.mG)]}; hPa=function(a,b,c,d,e,f){a=c.JF?c.JF:yw(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var k={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",uc:new Map,zd:[new qW(function(l){return zw(f,l)},c.Iu)], Rc:[],Oc:[],Sc:[],Yc:[],gb:b,Fa:d,zc:e(k),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; NW=function(a){var b=this;this.u=a;this.j=function(c){return zw(b.u.get(),c)}}; iPa=function(a,b,c,d,e,f){c=new qV([new jG(c),new dG(d)]);b=yw(a.u.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",uc:new Map,zd:[new qW(function(k){return zw(a.u.get(),k)},e)], Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:c,zc:f(d),adLayoutLoggingData:void 0}}; OW=function(a,b,c,d,e){return hPa(b,c,d,new qV(gPa(d)),e,a.u.get())}; jPa=function(a,b,c,d,e){var f=gPa(d);f.push(new bG(d.tT));f.push(new cG(d.vT));return hPa(b,c,d,new qV(f),e,a.u.get())}; FW=function(a,b,c,d,e,f,k,l,m){b=yw(a.u.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;k&&p.set("impression",k);return{layoutId:b,layoutType:c,uc:p,zd:[new vW(a.j,b),new LW(a.j,e)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new qV([d,new dG(f),new qG(e)]),zc:l(n),adLayoutLoggingData:m}}; xW=function(a,b,c){var d=[];d.push(new MW(a.j,c));b&&d.push(b);return d}; wW=function(a,b,c,d,e,f,k){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,uc:new Map,zd:k,Rc:[new CW(a.j,b)],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new qV([new ZF(d),new dG(e)]),zc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; pW=function(a,b,c,d,e,f,k,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,uc:new Map,zd:[new qW(a.j,c)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new qV([new dG(d)].concat(g.u(k))),zc:e(m),adLayoutLoggingData:l}}; FOa=function(a,b,c,d,e,f,k,l,m,n){a=AW(a,b,c,d,e,f,k,l,m,n);return{yr:{layoutId:a.layoutId,layoutType:a.layoutType,uc:a.uc,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:a.gb,Fa:new qV(a.Zv),zc:a.zc,adLayoutLoggingData:a.adLayoutLoggingData},Ls:a.Rc,eq:a.Oc,Oz:a.Sc,Nz:a.Yc,Bh:a.Bh}}; JOa=function(a,b,c,d,e,f,k,l){b=AW(a,b,c,d,e,new Map,f,function(m){return k(m,l)},void 0); a=new sW(a.j,b.dH);c=new rG(b.dH);d=new sG("LAYOUT_TYPE_SURVEY");return{yr:{layoutId:b.layoutId,layoutType:b.layoutType,uc:b.uc,zd:[],Rc:[],Oc:[],Sc:[],Yc:[],gb:b.gb,Fa:new qV([].concat(g.u(b.Zv),[c,d])),zc:b.zc,adLayoutLoggingData:b.adLayoutLoggingData},Ls:b.Rc,eq:b.Oc,Oz:[].concat(g.u(b.Sc),[a]),Nz:b.Yc,Bh:b.Bh}}; AW=function(a,b,c,d,e,f,k,l,m,n){b=yw(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var q=X(l.Fa,"metadata_type_fulfilled_layout");q||T("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new dG(c),new OG(d),new QG(e)];n&&c.push(new EG(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uc:f,zd:[],Rc:[new rW(a.j,q)],Oc:[],Sc:[],Yc:[],gb:"adapter", Zv:c,zc:k(p),adLayoutLoggingData:m,Bh:l,dH:q}}; SOa=function(a,b,c,d,e,f,k,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new dG(d),new eG(l),new fG(c.externalVideoId),new hG(k),new iG(c.playerOverlay.instreamAdPlayerOverlayRenderer),new QG({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new AG(e),new vG({current:null}),new zG(f)];(e=c.playerUnderlay)&&d.push(new jG(e));e=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)? f:yw(a.u.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new rG(f));d.push(new tG(e));d.push(new EG(l.j));c.adNextParams&&d.push(new XF(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new kG(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new YF(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new PG(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new BG(c.sodarExtensionData));n&&d.push(new MG(n));d.push(new UG(VE(c.pings)));return{layoutId:p, layoutType:"LAYOUT_TYPE_MEDIA",uc:WE(c.pings),zd:[new vW(a.j,p)],Rc:c.skipOffsetMilliseconds?[new rW(a.j,f)]:[],Oc:[new rW(a.j,f)],Sc:[],Yc:[],gb:b,Fa:new qV(d),zc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}}; yOa=function(a,b,c,d,e,f,k,l){d.every(function(n){return MF(n,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout"); b=yw(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uc:new Map,zd:[new tW(a.j)],Rc:[],Oc:[],Sc:[],Yc:[],gb:"core",Fa:new qV([new CG(c),new DG(l),new xG(d),new dG(e),new IG(f),new FG({})]),zc:k(m)}}; tOa=function(a){return null!=a}; PW=function(a,b,c){this.yp=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)}; QW=function(a,b,c){this.Qe=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)}; RW=function(a,b){this.Qe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; kPa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)}; SW=function(a,b,c){this.yp=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; TW=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; UW=function(a,b){this.Ug=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)}; VW=function(a,b){this.Ug=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)}; WW=function(a,b){this.Ug=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)}; XW=function(a,b){this.Ug=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)}; YW=function(a,b){this.Ug=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)}; YNa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={zl:new Up(-0x8000000000000,-0x8000000000000),NB:d},null!=c&&(d.Us=new Up(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={zl:new Up(0x7ffffffffffff,0x8000000000000),NB:d},null!=c&&(d.Us=new Up(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new YV("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={zl:new Up(a,e),NB:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Us=new Up(a,e)}return d;default:return new YV("AdPlacementKind not supported in convertToRange.", {kind:e,adPlacementConfig:a})}}; ZW=function(a){var b=this;this.u=a;this.j=function(c){return zw(b.u.get(),c)}}; ZNa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var k=xw(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Us&&d.Us.start!==d.zl.start&&l.push(new IW(a.j,c,new Up(d.Us.start,d.zl.start),!1));l.push(new IW(a.j,c,new Up(d.zl.start,d.zl.end),d.NB));d={getAdBreakUrl:b.getAdBreakUrl,nP:d.zl.start,mP:d.zl.end};b=new XW(a.j,k);f=[new KG(d)].concat(g.u(f));return{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Pb:b,qc:l,vc:[new uW(a.j,c),new VW(a.j,k),new WW(a.j,k)],gb:"core",Fa:new qV(f), adSlotLoggingData:e}}; mPa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(lPa(a,b,e.value));return d}; lPa=function(a,b,c){return null!=c.Ug&&c.Ug===a?c.clone(b):c}; hOa=function(a,b,c,d,e){return nPa(a,b,c,d,e)}; GOa=function(a,b,c,d){var e=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");return nPa(a,e,b,c,d)}; nPa=function(a,b,c,d,e){var f=new RW(a.j,c),k=[new UW(a.j,b)];a=[new VW(a.j,b),new uW(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:f,qc:k,vc:a,gb:"core",Fa:new qV([new JG(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:f,qc:k,vc:a},c))]),adSlotLoggingData:void 0}}; XOa=function(a,b,c,d,e,f){var k=xw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=yw(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=$W(a,b,c,d);d=[new UW(a.j,k)];a=[new VW(a.j,k),new uW(a.j,c),new CW(a.j,m)];if(b instanceof YV)return b;f=f({slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Pb:b,qc:d,vc:a},{slotId:l,layoutId:m});l=f.jV;return[{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,qc:d,vc:a,gb:"core",Fa:new qV([new JG(f.MV)]), adSlotLoggingData:e},l]}; oPa=function(a,b,c,d,e){e=e?e:xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new RW(a.j,c);var f=[new UW(a.j,e)];a=[new uW(a.j,b),new VW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,qc:f,vc:a,gb:"core",Fa:new qV([new JG(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,qc:f,vc:a}))])}}; pPa=function(a,b,c,d){var e=xw(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new RW(a.j,c);var f=[new UW(a.j,e)];a=[new uW(a.j,b),new VW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Pb:c,qc:f,vc:a,gb:"core",Fa:new qV([new JG(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,gb:"core",Pb:c,qc:f,vc:a}))])}}; DOa=function(a,b,c,d,e,f){b=$W(a,b,c,d);if(b instanceof YV)return b;var k=b instanceof IW?new SW(a.j,c,b.j):null;d=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new UW(a.j,d)];a=[new uW(a.j,c),new VW(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:b,qc:l,vc:a},k);return f instanceof OV?new YV(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:b,qc:l,vc:a,gb:"core",Fa:new qV([new JG(f)]),adSlotLoggingData:e}}; mOa=function(a,b,c,d){var e=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new RW(a.j,c);var f=[new UW(a.j,e)],k=[new VW(a.j,e),new uW(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,qc:f,vc:k};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,qc:[new UW(a.j,e)],vc:[new uW(a.j,b),new VW(a.j,e)],gb:"core",Fa:new qV([new JG(d(f))])}}; kOa=function(a,b,c,d,e){var f=xw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new QW(a.j,d,c);d=[new UW(a.j,f)];a=[new uW(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Pb:c,qc:d,vc:a,gb:"core",Fa:new qV([new JG(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Pb:c,qc:d,vc:a}))])}}; dOa=function(a,b,c,d,e,f){var k=xw(a.u.get(),b);return qPa(a,k,b,new RW(a.j,d),c,e,d,f)}; zOa=function(a,b,c,d){var e=xw(a.u.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new uw(a.j,b);var f=[new UW(a.j,e)];a=[new VW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Pb:b,qc:f,vc:a,gb:"core",Fa:new qV([new JG(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,gb:"core",Pb:b,qc:f,vc:a}))]),adSlotLoggingData:c}}; cOa=function(a,b,c,d,e,f,k){return qPa(a,c,b,new TW(a.j,c),d,f,e,k)}; uOa=function(a,b,c){var d=xw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new kPa(a.j),f=[new YW(a.j,d)];a=[new uW(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:e,qc:f,vc:a,gb:"core",Fa:new qV([new JG(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Pb:e,qc:f,vc:a})),new FG({})])}}; NOa=function(a,b,c,d,e){b=new zW(a.j,b,"normal");a=rPa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,qc:a.qc,vc:a.vc,gb:a.gb});return e instanceof YV?e:{Xt:Object.assign({},a,{Fa:new qV([new JG(e.layout)]),adSlotLoggingData:d}),Xh:e.Xh}}; POa=function(a,b,c,d,e,f,k){a=VOa(a,b,c,d);if(a instanceof YV)return a;k=k({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,qc:a.qc,vc:a.vc,gb:a.gb});if(k instanceof YV)return k;b=[new JG(k.layout)];f&&b.push(new SG({}));return{Xt:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Pb:a.Pb,qc:a.qc,vc:a.vc,gb:a.gb,Fa:new qV(b),adSlotLoggingData:e},Xh:k.Xh}}; rPa=function(a,b,c){var d=xw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new UW(a.j,d)];a=[new VW(a.j,d),new uW(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Pb:b,qc:e,vc:a,gb:"core"}}; VOa=function(a,b,c,d){b=$W(a,b,c,d);return b instanceof YV?b:rPa(a,b,c)}; BOa=function(a,b,c,d,e,f){var k=xw(a.u.get(),"SLOT_TYPE_FORECASTING");b=$W(a,b,c,d);if(b instanceof YV)return b;d=[new UW(a.j,k)];a=[new VW(a.j,k),new uW(a.j,c)];return{slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Pb:b,qc:d,vc:a,gb:"core",Fa:new qV([new JG(f({slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Pb:b,qc:d,vc:a}))]),adSlotLoggingData:e}}; sPa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new uw(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=YNa(b,d),a instanceof YV?a:e(a.zl,f);case "AD_PLACEMENT_KIND_END":return new PW(a.j,c,f);default:return new YV("Cannot construct entry trigger",{kind:b.kind})}}; $W=function(a,b,c,d){return sPa(a,b,c,d,function(e,f){return new IW(a.j,c,e,f)})}; qPa=function(a,b,c,d,e,f,k,l){var m=[new YW(a.j,b)];a=[new uW(a.j,e),new VW(a.j,b),new zW(a.j,k,"error")];return{slotId:b,slotType:c,slotPhysicalPosition:1,Pb:d,qc:m,vc:a,gb:"core",Fa:new qV([new JG(l({slotId:b,slotType:c,slotPhysicalPosition:1,gb:"core",Pb:d,qc:m,vc:a}))]),adSlotLoggingData:f}}; aX=function(a,b){g.G.call(this);this.La=a;this.u=b;this.eventCount=0}; gH=function(a,b,c){HW(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)}; NV=function(a,b,c,d){HW(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; KNa=function(a,b,c,d){var e=a.La.get();(e.I.V().S("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.I.V().S("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&HW(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)}; HW=function(a,b,c,d,e,f,k,l,m,n){var p=a.La.get();if((p.I.V().S("html5_enable_ads_client_monitoring_log_live_infra")||(g.PC(p.I.V())?p.I.V().S("html5_enable_ads_client_monitoring_log_tv"):p.I.V().S("html5_enable_ads_client_monitoring_log_web")))&&!a.La.get().I.V().S("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var q=vV(a.u.get());b={eventType:b,eventOrder:++a.eventCount};p={};f&&(p.slotData=tV(q,f));k&&(p.layoutData=yNa(q,k));l&&(p.triggerData=sV(l.trigger,l.category)); c&&(p.opportunityData=zNa(q,c,d,e));c={organicPlaybackContext:{contentCpn:qw(a.j.get(),1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=qw(a.j.get(),1).Ff;var t;c.organicPlaybackContext.isMdxPlayback=null==(t=qw(a.j.get(),1))?void 0:t.isMdxPlayback;var w;if(a=null==(w=qw(a.j.get(),2))?void 0:w.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:a};c&&(p.externalContext=c);b.adClientData=p;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData= n.serializedAdServingDataEntry);g.Es("adsClientStateChange",{adsClientEvent:b})}}; bX=function(a,b,c){aX.call(this,a,b);this.j=c}; cX=function(){this.j=new Map}; dX=function(a,b,c,d,e){g.G.call(this);this.I=a;this.B=b;this.Ha=c;this.C=d;this.u=e;this.listeners=[];var f=new fv(this);g.H(this,f);f.T(a,"internalAbandon",this.MG);g.Bf(this,function(){g.hv(f)})}; eX=function(a){g.G.call(this);this.I=a;this.j=new Map;this.u=new fv(this);g.H(this,this.u);this.u.T(this.I,g.Kw("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.Lw("ad"),this.onCueRangeExit,this)}; tPa=function(a,b,c,d,e){g.Iw.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; fX=function(a){this.I=a}; gX=function(a){this.I=a}; EW=function(a,b){return a.I.V().S(b)}; hX=function(a){var b,c,d;return(null==(b=a.I.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1}; eW=function(a){return a.I.V().S("html5_recover_from_non_fatal_errors_in_player_bytes")}; SV=function(a){return g.aD(a.I.V())?a.I.V().S("html5_enable_vod_lsar_ivar_pacf_unplugged"):OC(a.I.V())?a.I.V().S("html5_enable_non_notify_composite_vod_lsar_pacf"):g.PC(a.I.V())?!0:!1}; uPa=function(a){return a.I.V().S("html5_recognize_predict_start_cue_point")}; iX=function(a){return a.I.V().S("html5_enable_common_timer_for_survey_web")}; vPa=function(a){return a.I.V().experiments.ob("enable_desktop_player_underlay")}; wPa=function(a){return a.I.V().experiments.ob("html5_disable_lidar")}; jX=function(a,b){this.Ha=a;this.I=b;this.j=new Map;TE().subscribe("adactiveviewmeasurable",this.yx,this);TE().subscribe("adfullyviewableaudiblehalfdurationimpression",this.xx,this);TE().subscribe("adviewableimpression",this.zx,this);TE().subscribe("adaudioaudible",this.vx,this);TE().subscribe("adaudiomeasurable",this.wx,this)}; lX=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?T("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),eia(Sl(kp),c),jxa(TE(),b,{Ew:function(){return d?{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:d,Jc:2===a.Ha.get().getPresentingPlayerType()&&1===kX(a.Ha.get(),2),fha:!1,gha:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}}))}; mX=function(a,b){a.j.has(b)?(a.j.delete(b),delete TE().j[b]):T("Unexpected unregistration of layout in LidarApi")}; nX=function(a,b,c){this.B=c;this.C=a;this.D=b}; oX=function(a,b,c,d){var e=void 0===e?new nX(function(){var f=a.getVideoData(1);return f?g.EE(f):""},function(){return a.V().pageId},function(f){return a.V().S(f)}):e; this.I=a;this.u=b;this.B=c;this.C=d;this.Up=e;this.jC=null;this.j=new Map;this.Yh=new lF(e);this.D=a.V().experiments.ob("html5_disable_lidar")}; yPa=function(a,b,c,d){d=void 0===d?[]:d;var e=ePa(a.u.get(),c);e?(c=pX(a,xPa(e),e),b.hasOwnProperty("baseUrl")?a.Up.send(b,c):a.Yh.send(b,c,{},d)):T("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; qX=function(a,b){g.Es("adsClientStateChange",b)}; rX=function(a,b){a.j.has(b.Hw())?T("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Hw(),b)}; sX=function(a,b){a.j.delete(b.Hw())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; xPa=function(a){var b=X(a.Fa,"metadata_type_ad_placement_config");a=X(a.Fa,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,FN:a}}; pX=function(a,b,c,d){var e=c?zPa(a):{};c=c?APa(a,c.layoutId):{};var f={},k={};d=Object.assign({},gF(a.I,d),rxa(b.adPlacementConfig),(f.SLOT_POS=fF(function(){return(b.FN||0).toString()}),f),c,e,(k.FINAL=fF(function(){return"1"}),k.AD_CPN=fF(function(){var l; return(null==(l=qw(a.C.get(),2))?void 0:l.clientPlaybackNonce)||""}),k)); e={};c=g.r(Object.values(BPa));for(f=c.next();!f.done;f=c.next())f=f.value,k=d[f],null!=k&&(e[f]=k.toString());return e}; zPa=function(a){var b={},c,d=null==(c=a.jC)?void 0:CPa(c);null!=d&&(b.SURVEY_ELAPSED_MS=fF(function(){return Math.round(1E3*d).toString()})); b.SURVEY_LOCAL_TIME_EPOCH_S=fF(function(){return Math.round(Date.now()/1E3).toString()}); return b}; APa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.ZE();if(!a)return{};b={};return b.YT_ERROR_CODE=a.BC.toString(),b.ERRORCODE=a.Jy.toString(),b.ERROR_MSG=a.errorMessage,b}; tX=function(a,b,c){g.G.call(this);this.I=a;this.j=b;this.La=c;this.listeners=[];this.dG=null;this.YD=new Map;b=new g.gA(this);g.H(this,b);b.T(a,"videodatachange",this.VY);b.T(a,"serverstitchedvideochange",this.rY);this.hq=qw(this)}; qw=function(a,b){var c=a.I.getVideoData(b);return c?DPa(a,c,b||a.I.getPresentingPlayerType(!0)):null}; EPa=function(a,b,c){var d=DPa(a,b,c);a.hq=d;a.listeners.forEach(function(e){e.zO(d)})}; DPa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,k=b.Cc,l=b.title,m=b.wg,n=b.Ng,p=b.isMdxPlayback,q=b.wi,t=b.mdxEnvironment,w=b.ul,x=b.yl,y=b.bq,z=b.videoId||"",E=b.profilePicture||"",I=b.sj||"";b=b.hm||void 0;k=a.j.get().j.get(k)||{layoutId:null,slotId:null};var J=a.I.getVideoData(1),N=J.Ff();J=J.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var aa,K,oa=(null==J?void 0:null==(aa=J.playerConfig)?void 0:null==(K=aa.daiConfig)?void 0:K.enableDai)||!1,na, za;aa=(null==J?void 0:null==(na=J.playerConfig)?void 0:null==(za=na.daiConfig)?void 0:za.enablePreroll)||!1;return Object.assign({},k,{videoId:z,author:d,clientPlaybackNonce:e,playbackDurationMs:c,xL:a,daiEnabled:oa,HL:aa,isListed:f,Ff:N,profilePicture:E,title:l,sj:I,wg:m,Ng:n,hm:b,isMdxPlayback:p,wi:q,mdxEnvironment:t,ul:w,yl:x,bq:y})}; uX=function(a,b){g.G.call(this);this.I=a;this.j=b;this.listeners=[];this.jq=function(){T("Called 'doUnlockPreroll' before it's initialized.")}; b=new fv(this);var c=new g.gA(this);g.H(this,c);g.H(this,b);b.T(a,"progresssync",this.UX);b.T(a,"presentingplayerstatechange",this.KX);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.qg);b.T(a,"resize",this.yb);c.T(a,g.Kw("appad"),this.Uj)}; vX=function(a,b){var c;b=null!=(c=a.j.get().YD.get(b))?c:null;if(null===b)return T("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a=.25*d||c)pY(a.j,"first_quartile"),KY(a,"unmuted_first_quartile");if(b>=.5*d||c)pY(a.j,"midpoint"),KY(a,"unmuted_midpoint");if(b>=.75*d||c)pY(a.j,"third_quartile"),KY(a,"unmuted_third_quartile");a=a.Wa;b*=1E3;if(c=a.J()){for(;a.Ce&&k.Lu(c,e-d);return c}; xQa=function(a,b){var c=X(b.Fa,"metadata_type_sodar_extension_data");if(c)try{IPa(0,c)}catch(d){T("Unexpected error when loading Sodar",a,b,{error:d})}}; yQa=function(a,b,c,d,e,f){c=new g.zF(c,new g.vH);rZ(a,b,c,d,e,!1,f)}; rZ=function(a,b,c,d,e,f,k){f=void 0===f?!0:f;GY(c)&&HY(e,0,null)&&(!rY(a,"impression")&&k&&k(),pY(a,"impression"));rY(a,"impression")&&(g.BF(c,4)&&!g.BF(c,2)&&a.nf("pause"),0>AF(c,4)&&!(0>AF(c,2))&&a.nf("resume"),g.BF(c,16)&&.5<=e&&a.nf("seek"),f&&g.BF(c,2)&&sZ(a,c.state,b,d,e))}; sZ=function(a,b,c,d,e,f){if(rY(a,"impression")){var k=1>=Math.abs(d-e);tZ(a,b,k?d:e,c,d,f);k&&pY(a,"complete")}}; tZ=function(a,b,c,d,e,f){qY(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(HY(c,.25*e,d)&&(f&&!rY(a,"first_quartile")&&f("first"),pY(a,"first_quartile")),HY(c,.5*e,d)&&(f&&!rY(a,"midpoint")&&f("second"),pY(a,"midpoint")),HY(c,.75*e,d)&&(f&&!rY(a,"third_quartile")&&f("third"),pY(a,"third_quartile")))}; zQa=function(a,b){rY(a,"impression")&&a.nf(b?"fullscreen":"end_fullscreen")}; AQa=function(a){rY(a,"impression")&&a.nf("clickthrough")}; BQa=function(a){a.nf("active_view_measurable")}; CQa=function(a){rY(a,"impression")&&!rY(a,"seek")&&a.nf("active_view_fully_viewable_audible_half_duration")}; DQa=function(a){rY(a,"impression")&&!rY(a,"seek")&&a.nf("active_view_viewable")}; EQa=function(a){rY(a,"impression")&&!rY(a,"seek")&&a.nf("audio_audible")}; FQa=function(a){rY(a,"impression")&&!rY(a,"seek")&&a.nf("audio_measurable")}; GQa=function(a,b,c,d,e,f,k,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.j=e;this.Ha=f;this.K=k;this.B=l;this.J=m;this.La=n;this.Ta=p;this.C=q;this.NA=!0;this.Cc=this.u=null}; HQa=function(a,b,c){var d;a.Ta.get().Oi("ads_qua","cpn."+X(a.layout.Fa,"metadata_type_content_cpn")+";acpn."+(null==(d=qw(a.C.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; IQa=function(a,b){var c;a.Ta.get().Oi("ads_imp","cpn."+X(a.layout.Fa,"metadata_type_content_cpn")+";acpn."+(null==(c=qw(a.C.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; uZ=function(a){return{enterMs:X(a.Fa,"metadata_type_layout_enter_ms"),exitMs:X(a.Fa,"metadata_type_layout_exit_ms")}}; vZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w){oZ.call(this,a,b,c,d,e,k,l,m,n,q);this.X=f;this.J=p;this.C=t;this.La=w;this.Cc=this.u=null}; JQa=function(a,b){var c;a.Ta.get().Oi("ads_imp","acpn."+(null==(c=qw(a.B.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; KQa=function(a,b,c){var d;a.Ta.get().Oi("ads_qua","cpn."+X(a.layout.Fa,"metadata_type_content_cpn")+";acpn."+(null==(d=qw(a.B.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; wZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x,y,z,E,I){this.Fe=a;this.va=b;this.j=c;this.B=d;this.Ha=e;this.Ta=f;this.K=k;this.D=l;this.u=m;this.C=n;this.Vd=p;this.Z=q;this.wd=t;this.Qc=w;this.N=x;this.X=y;this.ma=z;this.La=E;this.J=I}; xZ=function(a){g.G.call(this);this.j=a;this.Mb=new Map}; yZ=function(a,b){for(var c=[],d=g.r(a.Mb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&WV(a.j(),c)}; zZ=function(a,b){g.G.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.Bf(this,function(){b.get().removeListener(c)}); var d;this.j=(null==(d=b.get().hq)?void 0:d.slotId)||null}; LQa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; AZ=function(a){this.I=a}; MQa=function(a,b,c,d,e){PE.call(this,"image-companion",a,b,c,d,e)}; BZ=function(a,b,c,d,e,f,k,l){tY.call(this,a,b,c,d);this.Ta=e;this.Fe=f;this.J=l;this.Li=!0;this.B=null;this.C=X(c.Fa,"metadata_type_linked_player_bytes_layout_id");IV(this.Fe(),this);a=X(c.Fa,"metadata_type_ad_placement_config");this.D=new mY(c.uc,this.Ta,a,c.layoutId)}; NQa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];nY().forEach(function(b){a.push(b)}); return{Ud:a,Ve:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; OQa=function(a,b,c,d,e){PE.call(this,"shopping-companion",a,b,c,d,e)}; CZ=function(a,b,c,d,e,f,k,l){tY.call(this,a,b,c,d);this.Ta=e;this.Fe=f;this.J=l;this.Li=!0;this.B=null;this.C=X(c.Fa,"metadata_type_linked_player_bytes_layout_id");IV(this.Fe(),this);a=X(c.Fa,"metadata_type_ad_placement_config");this.D=new mY(c.uc,this.Ta,a,c.layoutId)}; PQa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];nY().forEach(function(b){a.push(b)}); return{Ud:a,Ve:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; QQa=function(a,b,c,d,e){PE.call(this,"ads-engagement-panel",a,b,c,d,e)}; DZ=function(a,b,c,d,e,f,k,l){tY.call(this,a,b,c,d);this.Ta=e;this.Fe=f;this.J=l;this.Li=!0;this.B=null;this.C=X(c.Fa,"metadata_type_linked_player_bytes_layout_id");IV(this.Fe(),this);a=X(c.Fa,"metadata_type_ad_placement_config");this.D=new mY(c.uc,this.Ta,a,c.layoutId)}; RQa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];nY().forEach(function(b){a.push(b)}); return{Ud:a,Ve:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; SQa=function(a,b,c,d,e){this.j=a;this.Ta=b;this.Fe=c;this.u=d;this.B=e}; EZ=function(a,b,c){PE.call(this,"player-underlay",a,{},b,c);this.j=c}; FZ=function(a,b,c,d){tY.call(this,a,b,c,d)}; TQa=function(a){this.j=a}; UQa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Ta=e;a=X(c.Fa,"metadata_type_ad_placement_config");this.j=new mY(c.uc,this.Ta,a,c.layoutId)}; VQa=function(a,b){this.Ha=a;this.Ta=b}; GZ=function(a,b,c,d,e){tY.call(this,c,a,b,d);this.Ta=e;a=X(b.Fa,"metadata_type_ad_placement_config");this.B=new mY(b.uc,e,a,b.layoutId)}; HZ=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; JZ=function(a,b,c){c=void 0===c?IZ:c;c.widtha.width*a.height*.2)return{BC:3,Jy:501,errorMessage:"ad("+HZ(c)+") to container("+HZ(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{BC:3,Jy:501,errorMessage:"ad("+HZ(c)+") covers container("+HZ(a)+") center."}}; WQa=function(a,b){var c=X(a.Fa,"metadata_type_ad_placement_config");return new mY(a.uc,b,c,a.layoutId)}; KZ=function(a){return X(a.Fa,"metadata_type_invideo_overlay_ad_renderer")}; LZ=function(a,b,c,d){PE.call(this,"invideo-overlay",a,b,c,d);this.j=d}; MZ=function(a,b,c,d,e,f,k,l,m,n,p,q){tY.call(this,f,a,b,e);this.Ta=c;this.B=k;this.Ha=l;this.K=m;this.La=n;this.D=p;this.C=q;this.N=WQa(b,c)}; XQa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];nY().forEach(function(b){a.push(b)}); return{Ud:a,Ve:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; NZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t){tY.call(this,f,a,b,e);this.Ta=c;this.B=k;this.K=l;this.Ha=m;this.N=n;this.La=p;this.D=q;this.C=t;this.X=WQa(b,c)}; YQa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(nY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ud:a,Ve:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; OZ=function(a){this.Ha=a;this.j=!1}; PZ=function(a,b,c,d,e,f,k){tY.call(this,c,a,b,d);this.B=e;this.Ha=f;this.La=k}; ZQa=function(a,b,c,d,e,f,k,l,m,n){this.j=a;this.Ha=b;this.Ta=c;this.K=d;this.D=e;this.B=f;this.J=k;this.C=l;this.La=m;this.u=n}; QZ=function(a){g.G.call(this);this.B=a;this.Li=!0;this.Mb=new Map;this.j=new Map;this.u=new Map}; $Qa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c}; aRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.K=Y(function(){return new ww}); g.H(this,this.K);this.va=Y(function(){return new NW(f.K)}); g.H(this,this.va);this.D=Y(function(){return new KW}); g.H(this,this.D);this.X=Y(function(){return new GW(a)}); g.H(this,this.X);this.Z=Y(function(){return new ZW(f.K)}); g.H(this,this.Z);this.Hb=Y(function(){return new cX}); g.H(this,this.Hb);this.Ub=Y(function(){return new QE(b.V())}); g.H(this,this.Ub);this.ma=Y(function(){return new iZ(b)}); g.H(this,this.ma);this.Ea=Y(function(){return new jW(e)}); g.H(this,this.Ea);this.wd=Y(function(){return new pH(b)}); g.H(this,this.wd);this.Ja=Y(function(){return new eX(b)}); g.H(this,this.Ja);this.Vd=Y(function(){return new lZ(b)}); g.H(this,this.Vd);this.Qc=Y(function(){return new fX(b)}); g.H(this,this.Qc);this.La=Y(function(){return new gX(b)}); g.H(this,this.La);this.Lb=Y(function(){return new hZ(d)}); g.H(this,this.Lb);this.J=Y(function(){return new xV(f.La)}); g.H(this,this.J);this.Wa=Y(function(){return new DW(f.Z,f.va,f.La,f.J,"SLOT_TYPE_ABOVE_FEED",f.jb)}); g.H(this,this.Wa);this.Dc=Y(function(){return new mZ(b)}); g.H(this,this.Dc);this.rb=Y(function(){return new nZ}); g.H(this,this.rb);this.qb=Y(function(){return new SX}); g.H(this,this.qb);this.j=Y(function(){return new tX(b,f.Hb,f.La)}); g.H(this,this.j);this.Xb=new bX(this.La,this.J,this.j);g.H(this,this.Xb);this.Ia=Y(function(){return new kZ(b,f.j,f.La,f.Ta)}); g.H(this,this.Ia);this.Sa=Y(function(){return new AZ(b)}); g.H(this,this.Sa);this.Ha=Y(function(){return new uX(b,f.j)}); g.H(this,this.Ha);this.Ke=Y(function(){return new bY}); this.xa=Y(function(){return new jX(f.Ha,b)}); g.H(this,this.xa);this.Ta=Y(function(){return new oX(b,f.D,f.xa,f.j)}); g.H(this,this.Ta);this.bd=new TY(UY,RZ,function(l,m,n,p){return OW(f.va.get(),l,m,n,p)},this.X,this.Z,this.va,this.J,this.La,this.j); g.H(this,this.bd);this.Bc=new vw(this.X,this.Wa,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new dX(b,this.Bc,this.Ha,this.j,this.Ia);this.Ya=Y(function(){return k}); this.Yo=k;this.jb=new SY(this.X,this.Z,this.Ya,this.Ia,this.Ha,this.La,this.Sa);g.H(this,this.jb);this.Db=new JW(this.X,this.Z,this.Ja,this.Ya);g.H(this,this.Db);this.Ec=new ow(this.X,this.Z,this.Wa,this.j,this.Db,c);g.H(this,this.Ec);this.Tb=Y(function(){return new iY(f.Lb,f.va,f.J,f.Sa)}); g.H(this,this.Tb);this.B=Y(function(){return new jY}); g.H(this,this.B);this.ya=new ZY(a,this.ma);g.H(this,this.ya);this.u=new $Y(a);g.H(this,this.u);this.Xa=new xZ(a);g.H(this,this.Xa);this.ib=new aZ(a,this.Ya);g.H(this,this.ib);this.Ra=new bZ(a,this.Ja,this.Ha,this.j);g.H(this,this.Ra);this.vb=new zZ(a,this.j);g.H(this,this.vb);this.N=new dZ(a);g.H(this,this.N);this.Pc=new eZ(a);g.H(this,this.Pc);this.Gb=new QZ(a);g.H(this,this.Gb);this.C=Y(function(){return new VY}); g.H(this,this.C);this.od=Y(function(){return new WY(f.Ha)}); g.H(this,this.od);this.Cd=Y(function(){return new SQa(f.ma,f.Ta,a,f.D,f.xa)}); g.H(this,this.Cd);this.Rb=Y(function(){return new lY(f.Ec)}); g.H(this,this.Rb);this.Wb=Y(function(){return new sY(f.Ta,f.N)}); g.H(this,this.Wb);this.Wc=Y(function(){return new wZ(a,f.N,f.j,f.Sa,f.Ha,f.Ta,f.Hb,f.Ia,f.xa,f.Ke,f.Vd,f.Ja,f.wd,f.Qc,f.Ub,f.Ea,f.Dc,f.La,f.D)}); g.H(this,this.Wc);this.Od=Y(function(){return new VQa(f.Ha,f.Ta)}); g.H(this,this.Od);this.kc=Y(function(){return new ZQa(f.ma,f.Ha,f.Ta,f.D,f.xa,f.Xa,f.Gb,f.Ea,f.La,c)}); g.H(this,this.kc);this.Pd=Y(function(){return new TQa(f.ma)}); g.H(this,this.Pd);this.Sd=new fZ(a,this.qb,this.K);g.H(this,this.Sd);this.le=new gZ(a,this.rb,this.J,this.j,this.K,this.La);g.H(this,this.le);this.ge={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Db]]),qm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Tb],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.B],["SLOT_TYPE_PLAYER_UNDERLAY",this.B],["SLOT_TYPE_PLAYBACK_TRACKING",this.B]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ya],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.ya],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Xa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.ib],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ra],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ra],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ra],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED", this.vb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.vb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.ib],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Pc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Gb]]),fn:new Map([["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES", this.od],["SLOT_TYPE_PLAYER_UNDERLAY",this.C],["SLOT_TYPE_PLAYBACK_TRACKING",this.C]]),Km:new Map([["SLOT_TYPE_ABOVE_FEED",this.Cd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Rb],["SLOT_TYPE_FORECASTING",this.Wb],["SLOT_TYPE_PLAYER_BYTES",this.Wc],["SLOT_TYPE_PLAYBACK_TRACKING",this.Od],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_UNDERLAY",this.Pd]])};this.listeners=[this.D.get()];this.Hq={Ec:this.Ec,Ok:this.N,Mm:this.rb.get(),Sf:this.La.get(),kb:this.Ea.get(),gp:this.Ha.get(),Bc:this.Bc,Mj:this.K.get(), Lm:this.qb.get(),Qi:this.ya,ph:this.D.get(),bk:this.j.get()}}; bRa=function(a,b,c,d,e,f,k,l,m,n){this.u=a;this.Ha=b;this.Ta=c;this.K=d;this.D=e;this.B=f;this.J=k;this.C=l;this.La=m;this.j=n}; cRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new ww}); g.H(this,this.C);this.K=Y(function(){return new NW(f.C)}); g.H(this,this.K);this.N=Y(function(){return new KW}); g.H(this,this.N);this.D=Y(function(){return new GW(a)}); g.H(this,this.D);this.J=Y(function(){return new ZW(f.C)}); g.H(this,this.J);this.bd=Y(function(){return new cX}); g.H(this,this.bd);this.Hb=Y(function(){return new QE(b.V())}); g.H(this,this.Hb);this.Ja=Y(function(){return new iZ(b)}); g.H(this,this.Ja);this.Z=Y(function(){return new jW(e)}); g.H(this,this.Z);this.wd=Y(function(){return new pH(b)}); g.H(this,this.wd);this.ma=Y(function(){return new eX(b)}); g.H(this,this.ma);this.Vd=Y(function(){return new lZ(b)}); g.H(this,this.Vd);this.Qc=Y(function(){return new fX(b)}); g.H(this,this.Qc);this.La=Y(function(){return new gX(b)}); g.H(this,this.La);this.vb=Y(function(){return new hZ(d)}); g.H(this,this.vb);this.B=Y(function(){return new xV(f.La)}); g.H(this,this.B);this.Ia=Y(function(){return new DW(f.J,f.K,f.La,f.B,null,f.Ya)}); g.H(this,this.Ia);this.Ub=Y(function(){return new mZ(b)}); g.H(this,this.Ub);this.jb=Y(function(){return new nZ}); g.H(this,this.jb);this.ib=Y(function(){return new SX}); g.H(this,this.ib);this.j=Y(function(){return new tX(b,f.bd,f.La)}); g.H(this,this.j);this.Xb=new bX(this.La,this.B,this.j);g.H(this,this.Xb);this.Lb=Y(function(){return new kZ(b,f.j,f.La,f.Ta)}); this.Ha=Y(function(){return new uX(b,f.j)}); g.H(this,this.Ha);this.Ea=Y(function(){return new jX(f.Ha,b)}); g.H(this,this.Ea);this.Ta=Y(function(){return new oX(b,f.N,f.Ea,f.j)}); g.H(this,this.Ta);this.Wc=Y(function(){return new bY}); g.H(this,this.Wc);this.Dc=new TY(UY,RZ,function(l,m,n,p){return OW(f.K.get(),l,m,n,p)},this.D,this.J,this.K,this.B,this.La,this.j); g.H(this,this.Dc);this.Bc=new vw(this.D,this.Ia,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new dX(b,this.Bc,this.Ha,this.j,this.Lb);this.Wa=Y(function(){return k}); this.Yo=k;this.Ya=new SY(this.D,this.J,this.Wa,this.Lb,this.Ha,this.La);g.H(this,this.Ya);this.qb=new JW(this.D,this.J,this.ma,this.Wa);g.H(this,this.qb);this.Ec=new ow(this.D,this.J,this.Ia,this.j,this.qb,c);g.H(this,this.Ec);this.Gb=Y(function(){return new iY(f.vb,f.K,f.B)}); g.H(this,this.Gb);this.xa=Y(function(){return new jY}); g.H(this,this.xa);this.Ra=new ZY(a,this.Ja);g.H(this,this.Ra);this.u=new $Y(a);g.H(this,this.u);this.Sa=new xZ(a);g.H(this,this.Sa);this.Xa=new aZ(a,this.Wa);g.H(this,this.Xa);this.va=new bZ(a,this.ma,this.Ha,this.j);g.H(this,this.va);this.X=new dZ(a);g.H(this,this.X);this.Wb=new eZ(a);g.H(this,this.Wb);this.rb=new QZ(a);g.H(this,this.rb);this.ya=Y(function(){return new VY}); g.H(this,this.ya);this.Pc=Y(function(){return new WY(f.Ha)}); g.H(this,this.Pc);this.Db=Y(function(){return new lY(f.Ec)}); g.H(this,this.Db);this.Rb=Y(function(){return new sY(f.Ta,f.X)}); g.H(this,this.Rb);this.Tb=Y(function(){return new bRa(f.Ja,f.Ha,f.Ta,f.N,f.Ea,f.Sa,f.rb,f.Z,f.La,c)}); g.H(this,this.Tb);this.kc=Y(function(){return new RY(a,f.X,f.Ta,f.Ea,f.Wc,f.Vd,f.j,f.Ha,f.ma,f.wd,f.Qc,f.Hb,f.Z,f.Ub,f.La)}); g.H(this,this.kc);this.od=new fZ(a,this.ib,this.C);g.H(this,this.od);this.Cd=new gZ(a,this.jb,this.B,this.j,this.C,this.La);g.H(this,this.Cd);this.ge={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Dc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),qm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Gb],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.xa]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ra],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY", this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Sa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Xa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.va],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.va],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.va],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Xa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Wb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.rb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ya],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.Pc]]),Km:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.Rb],["SLOT_TYPE_IN_PLAYER",this.Tb],["SLOT_TYPE_PLAYER_BYTES",this.kc]])};this.listeners=[this.N.get()];this.Hq={Ec:this.Ec,Ok:null,Mm:this.jb.get(), Sf:this.La.get(),kb:this.Z.get(),gp:this.Ha.get(),Bc:this.Bc,Mj:this.C.get(),Lm:this.ib.get(),Qi:this.Ra,ph:this.N.get(),bk:this.j.get()}}; dRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.D=Y(function(){return new ww}); g.H(this,this.D);this.J=Y(function(){return new NW(f.D)}); g.H(this,this.J);this.K=Y(function(){return new KW}); g.H(this,this.K);this.X=Y(function(){return new GW(a)}); g.H(this,this.X);this.Z=Y(function(){return new ZW(f.D)}); g.H(this,this.Z);this.Ub=Y(function(){return new cX}); g.H(this,this.Ub);this.qb=Y(function(){return new QE(b.V())}); g.H(this,this.qb);this.ya=Y(function(){return new iZ(b)}); g.H(this,this.ya);this.Ia=Y(function(){return new jW(e)}); g.H(this,this.Ia);this.wd=Y(function(){return new pH(b)}); g.H(this,this.wd);this.ma=Y(function(){return new eX(b)}); g.H(this,this.ma);this.Vd=Y(function(){return new lZ(b)}); g.H(this,this.Vd);this.Qc=Y(function(){return new fX(b)}); g.H(this,this.Qc);this.La=Y(function(){return new gX(b)}); g.H(this,this.La);this.Ya=Y(function(){return new hZ(d)}); g.H(this,this.Ya);this.B=Y(function(){return new xV(f.La)}); g.H(this,this.B);this.xa=Y(function(){return new DW(f.Z,f.J,f.La,f.B,null,null)}); g.H(this,this.xa);this.Db=Y(function(){return new mZ(b)}); g.H(this,this.Db);this.Sa=Y(function(){return new nZ}); g.H(this,this.Sa);this.j=Y(function(){return new tX(b,f.Ub,f.La)}); g.H(this,this.j);this.Xb=new bX(this.La,this.B,this.j);g.H(this,this.Xb);this.Ha=Y(function(){return new uX(b,f.j)}); g.H(this,this.Ha);this.Wa=Y(function(){return new jX(f.Ha,b)}); g.H(this,this.Wa);this.Ta=Y(function(){return new oX(b,f.K,f.Wa,f.j)}); g.H(this,this.Ta);this.Tb=Y(function(){return new bY}); g.H(this,this.Tb);this.Lb=new TY(UY,RZ,function(l,m,n,p){return OW(f.J.get(),l,m,n,p)},this.X,this.Z,this.J,this.B,this.La,this.j); g.H(this,this.Lb);this.Bc=new vw(this.X,this.xa,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new dX(b,this.Bc,this.Ha,this.j);this.rb=Y(function(){return k}); this.Yo=k;this.Xa=new JW(this.X,this.Z,this.ma,this.rb);g.H(this,this.Xa);this.Ec=new ow(this.X,this.Z,this.xa,this.j,this.Xa,c);g.H(this,this.Ec);this.jb=Y(function(){return new iY(f.Ya,f.J,f.B)}); g.H(this,this.jb);this.va=Y(function(){return new jY}); g.H(this,this.va);this.Ea=new ZY(a,this.ya);g.H(this,this.Ea);this.u=new $Y(a);g.H(this,this.u);this.Ja=new aZ(a,this.rb);g.H(this,this.Ja);this.Ra=new bZ(a,this.ma,this.Ha,this.j);g.H(this,this.Ra);this.N=new dZ(a);g.H(this,this.N);this.Gb=new eZ(a);g.H(this,this.Gb);this.C=Y(function(){return new VY}); g.H(this,this.C);this.Rb=Y(function(){return new WY(f.Ha)}); g.H(this,this.Rb);this.ib=Y(function(){return new lY(f.Ec)}); g.H(this,this.ib);this.vb=Y(function(){return new sY(f.Ta,f.N)}); g.H(this,this.vb);this.Wb=Y(function(){return new AY(f.ya,f.Ha,f.Ta,f.K,c)}); g.H(this,this.Wb);this.Hb=Y(function(){return new RY(a,f.N,f.Ta,f.Wa,f.Tb,f.Vd,f.j,f.Ha,f.ma,f.wd,f.Qc,f.qb,f.Ia,f.Db,f.La)}); g.H(this,this.Hb);this.kc=new gZ(a,this.Sa,this.B,this.j,this.D,this.La);g.H(this,this.kc);this.ge={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Lb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Xa]]),qm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jb],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES", this.va]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ra],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ra],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.Rb]]), Km:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ib],["SLOT_TYPE_FORECASTING",this.vb],["SLOT_TYPE_IN_PLAYER",this.Wb],["SLOT_TYPE_PLAYER_BYTES",this.Hb]])};this.listeners=[this.K.get()];this.Hq={Ec:this.Ec,Ok:null,Mm:this.Sa.get(),Sf:this.La.get(),kb:this.Ia.get(),gp:this.Ha.get(),Bc:this.Bc,Mj:this.D.get(),Lm:null,Qi:this.Ea,ph:this.K.get(),bk:this.j.get()}}; eRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new ww}); g.H(this,this.C);this.D=Y(function(){return new NW(f.C)}); g.H(this,this.D);this.J=Y(function(){return new KW}); g.H(this,this.J);this.N=Y(function(){return new GW(a)}); g.H(this,this.N);this.X=Y(function(){return new ZW(f.C)}); g.H(this,this.X);this.Wb=Y(function(){return new cX}); g.H(this,this.Wb);this.jb=Y(function(){return new QE(b.V())}); g.H(this,this.jb);this.ya=Y(function(){return new iZ(b)}); g.H(this,this.ya);this.Ia=Y(function(){return new jW(e)}); g.H(this,this.Ia);this.wd=Y(function(){return new pH(b)}); g.H(this,this.wd);this.Z=Y(function(){return new eX(b)}); g.H(this,this.Z);this.Vd=Y(function(){return new lZ(b)}); g.H(this,this.Vd);this.Qc=Y(function(){return new fX(b)}); g.H(this,this.Qc);this.La=Y(function(){return new gX(b)}); g.H(this,this.La);this.Xa=Y(function(){return new hZ(d)}); g.H(this,this.Xa);this.B=Y(function(){return new xV(f.La)}); g.H(this,this.B);this.xa=Y(function(){return new DW(f.X,f.D,f.La,f.B,null,null)}); g.H(this,this.xa);this.Gb=Y(function(){return new mZ(b)}); g.H(this,this.Gb);this.Ra=Y(function(){return new nZ}); g.H(this,this.Ra);this.j=Y(function(){return new tX(b,f.Wb,f.La)}); g.H(this,this.j);this.Xb=new bX(this.La,this.B,this.j);g.H(this,this.Xb);this.Ha=Y(function(){return new uX(b,f.j)}); g.H(this,this.Ha);this.Sa=Y(function(){return new jX(f.Ha,b)}); g.H(this,this.Sa);this.Ta=Y(function(){return new oX(b,f.J,f.Sa,f.j)}); g.H(this,this.Ta);this.Ub=Y(function(){return new bY}); g.H(this,this.Ub);this.Rb=new TY(UY,RZ,function(l,m,n,p){return OW(f.D.get(),l,m,n,p)},this.N,this.X,this.D,this.B,this.La,this.j); g.H(this,this.Rb);this.Bc=new vw(this.N,this.xa,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new dX(b,this.Bc,this.Ha,this.j);this.qb=Y(function(){return k}); this.Yo=k;this.Wa=new JW(this.N,this.X,this.Z,this.qb);g.H(this,this.Wa);this.Ec=new ow(this.N,this.X,this.xa,this.j,this.Wa,c);g.H(this,this.Ec);this.ib=Y(function(){return new iY(f.Xa,f.D,f.B)}); g.H(this,this.ib);this.ma=Y(function(){return new jY}); g.H(this,this.ma);this.Ea=new ZY(a,this.ya);g.H(this,this.Ea);this.u=new $Y(a);g.H(this,this.u);this.Ja=new aZ(a,this.qb);g.H(this,this.Ja);this.rb=new bZ(a,this.Z,this.Ha,this.j);g.H(this,this.rb);this.K=new dZ(a);g.H(this,this.K);this.Hb=new eZ(a);g.H(this,this.Hb);this.va=Y(function(){return new VY}); g.H(this,this.va);this.Tb=Y(function(){return new WY(f.Ha)}); g.H(this,this.Tb);this.Ya=Y(function(){return new lY(f.Ec)}); g.H(this,this.Ya);this.vb=Y(function(){return new sY(f.Ta,f.K)}); g.H(this,this.vb);this.Db=Y(function(){return new AY(f.ya,f.Ha,f.Ta,f.J,c)}); g.H(this,this.Db);this.Lb=Y(function(){return new RY(a,f.K,f.Ta,f.Sa,f.Ub,f.Vd,f.j,f.Ha,f.Z,f.wd,f.Qc,f.jb,f.Ia,f.Gb,f.La)}); g.H(this,this.Lb);this.kc=new gZ(a,this.Ra,this.B,this.j,this.C,this.La);g.H(this,this.kc);this.ge={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),qm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ib],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES", this.ma]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ja],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.Tb]]),Km:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING", this.vb],["SLOT_TYPE_IN_PLAYER",this.Db],["SLOT_TYPE_PLAYER_BYTES",this.Lb]])};this.listeners=[this.J.get()];this.Hq={Ec:this.Ec,Ok:null,Mm:this.Ra.get(),Sf:this.La.get(),kb:this.Ia.get(),gp:this.Ha.get(),Bc:this.Bc,Mj:this.C.get(),Lm:null,Qi:this.Ea,ph:this.J.get(),bk:this.j.get()}}; SZ=function(a,b,c,d,e,f,k,l,m){yY.call(this,a,b,c,d,e,f,k,m);this.K=l}; fRa=function(){var a=UPa();a.Ud.push("metadata_type_ad_info_ad_metadata");return a}; gRa=function(a,b,c,d,e,f){this.B=a;this.Ha=b;this.Ta=c;this.C=d;this.u=e;this.j=f}; hRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new ww}); g.H(this,this.C);this.D=Y(function(){return new NW(f.C)}); g.H(this,this.D);this.J=Y(function(){return new KW}); g.H(this,this.J);this.N=Y(function(){return new GW(a)}); g.H(this,this.N);this.X=Y(function(){return new ZW(f.C)}); g.H(this,this.X);this.Wb=Y(function(){return new cX}); g.H(this,this.Wb);this.qb=Y(function(){return new sQa(b)}); g.H(this,this.qb);this.rb=Y(function(){return new QE(b.V())}); g.H(this,this.rb);this.ya=Y(function(){return new iZ(b)}); g.H(this,this.ya);this.Ia=Y(function(){return new jW(e)}); g.H(this,this.Ia);this.wd=Y(function(){return new pH(b)}); g.H(this,this.wd);this.Z=Y(function(){return new eX(b)}); g.H(this,this.Z);this.Vd=Y(function(){return new lZ(b)}); g.H(this,this.Vd);this.Qc=Y(function(){return new fX(b)}); g.H(this,this.Qc);this.La=Y(function(){return new gX(b)}); g.H(this,this.La);this.Ya=Y(function(){return new hZ(d)}); g.H(this,this.Ya);this.B=Y(function(){return new xV(f.La)}); g.H(this,this.B);this.xa=Y(function(){return new DW(f.X,f.D,f.La,f.B,null,null)}); g.H(this,this.xa);this.Gb=Y(function(){return new mZ(b)}); g.H(this,this.Gb);this.Sa=Y(function(){return new nZ}); g.H(this,this.Sa);this.j=Y(function(){return new tX(b,f.Wb,f.La)}); g.H(this,this.j);this.Xb=new bX(this.La,this.B,this.j);g.H(this,this.Xb);this.Ha=Y(function(){return new uX(b,f.j)}); g.H(this,this.Ha);this.Wa=Y(function(){return new jX(f.Ha,b)}); g.H(this,this.Wa);this.Ta=Y(function(){return new oX(b,f.J,f.Wa,f.j)}); g.H(this,this.Ta);this.Ub=Y(function(){return new bY}); g.H(this,this.Ub);this.Rb=new TY(gQa,RZ,function(l,m,n,p){return jPa(f.D.get(),l,m,n,p)},this.N,this.X,this.D,this.B,this.La,this.j); g.H(this,this.Rb);this.Bc=new vw(this.N,this.xa,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new dX(b,this.Bc,this.Ha,this.j);this.vb=Y(function(){return k}); this.Yo=k;this.Xa=new JW(this.N,this.X,this.Z,this.vb);g.H(this,this.Xa);this.Ec=new ow(this.N,this.X,this.xa,this.j,this.Xa,c);g.H(this,this.Ec);this.jb=Y(function(){return new iY(f.Ya,f.D,f.B)}); g.H(this,this.jb);this.ma=Y(function(){return new jY}); g.H(this,this.ma);this.Ea=new ZY(a,this.ya);g.H(this,this.Ea);this.u=new $Y(a);g.H(this,this.u);this.Ja=new aZ(a,this.vb);g.H(this,this.Ja);this.Ra=new bZ(a,this.Z,this.Ha,this.j);g.H(this,this.Ra);this.K=new dZ(a);g.H(this,this.K);this.Hb=new eZ(a);g.H(this,this.Hb);this.va=Y(function(){return new VY}); g.H(this,this.va);this.Tb=Y(function(){return new WY(f.Ha)}); g.H(this,this.Tb);this.ib=Y(function(){return new lY(f.Ec)}); g.H(this,this.ib);this.Db=Y(function(){return new sY(f.Ta,f.K)}); g.H(this,this.Db);this.Lb=Y(function(){return new RY(a,f.K,f.Ta,f.Wa,f.Ub,f.Vd,f.j,f.Ha,f.Z,f.wd,f.Qc,f.rb,f.Ia,f.Gb,f.La)}); g.H(this,this.Lb);this.kc=Y(function(){return new gRa(f.ya,f.Ha,f.Ta,f.J,f.qb,c)}); g.H(this,this.kc);this.Dc=new gZ(a,this.Sa,this.B,this.j,this.C,this.La);g.H(this,this.Dc);this.ge={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Xa]]),qm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES", this.ma]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ra],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ra],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hb]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.Tb]]),Km:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.ib],["SLOT_TYPE_FORECASTING",this.Db],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.Lb]])};this.listeners=[this.J.get()];this.Hq={Ec:this.Ec,Ok:null,Mm:this.Sa.get(),Sf:this.La.get(),kb:this.Ia.get(),gp:this.Ha.get(),Bc:this.Bc,Mj:this.C.get(),Lm:null,Qi:this.Ea,ph:this.J.get(),bk:this.j.get()}}; iRa=function(a,b,c,d,e,f){this.u=a;this.Ha=b;this.Ta=c;this.B=d;this.C=e;this.j=f}; jRa=function(a,b,c,d,e){g.G.call(this);var f=this;this.K=Y(function(){return new ww}); g.H(this,this.K);this.N=Y(function(){return new NW(f.K)}); g.H(this,this.N);this.C=Y(function(){return new KW}); g.H(this,this.C);this.D=Y(function(){return new GW(a)}); g.H(this,this.D);this.J=Y(function(){return new ZW(f.K)}); g.H(this,this.J);this.vb=Y(function(){return new cX}); g.H(this,this.vb);this.Lb=Y(function(){return new sQa(b)}); g.H(this,this.Lb);this.Rb=Y(function(){return new QE(b.V())}); g.H(this,this.Rb);this.Ia=Y(function(){return new iZ(b)}); g.H(this,this.Ia);this.Ra=Y(function(){return new jW(e)}); g.H(this,this.Ra);this.wd=Y(function(){return new pH(b)}); g.H(this,this.wd);this.ma=Y(function(){return new eX(b)}); g.H(this,this.ma);this.Vd=Y(function(){return new lZ(b)}); g.H(this,this.Vd);this.Qc=Y(function(){return new fX(b)}); g.H(this,this.Qc);this.La=Y(function(){return new gX(b)}); g.H(this,this.La);this.Db=Y(function(){return new hZ(d)}); g.H(this,this.Db);this.B=Y(function(){return new xV(f.La)}); g.H(this,this.B);this.Ea=Y(function(){return new DW(f.J,f.N,f.La,f.B,null,f.Xa,3)}); g.H(this,this.Ea);this.Wb=Y(function(){return new mZ(b)}); g.H(this,this.Wb);this.ib=Y(function(){return new nZ}); g.H(this,this.ib);this.j=Y(function(){return new tX(b,f.vb,f.La)}); g.H(this,this.j);this.Xb=new bX(this.La,this.B,this.j);g.H(this,this.Xb);this.Z=Y(function(){return new kZ(b,f.j,f.La,f.Ta)}); g.H(this,this.Z);this.ya=Y(function(){return new AZ(b)}); g.H(this,this.ya);this.Ha=Y(function(){return new uX(b,f.j)}); g.H(this,this.Ha);this.od=Y(function(){return new bY}); this.jb=Y(function(){return new jX(f.Ha,b)}); g.H(this,this.jb);this.Ta=Y(function(){return new oX(b,f.C,f.jb,f.j)}); g.H(this,this.Ta);this.Bc=new vw(this.D,this.Ea,c,this.La,a,this.j,this.Ha);g.H(this,this.Bc);var k=new dX(b,this.Bc,this.Ha,this.j,this.Z);this.Sa=Y(function(){return k}); this.Yo=k;this.Pc=new TY(hQa,RZ,function(l,m,n,p){return jPa(f.N.get(),l,m,n,p)},this.D,this.J,this.N,this.B,this.La,this.j); g.H(this,this.Pc);this.Xa=new SY(this.D,this.J,this.Sa,this.Z,this.Ha,this.La,this.ya);g.H(this,this.Xa);this.rb=new JW(this.D,this.J,this.ma,this.Sa);g.H(this,this.rb);this.Ec=new ow(this.D,this.J,this.Ea,this.j,this.rb,c);g.H(this,this.Ec);this.Hb=Y(function(){return new iY(f.Db,f.N,f.B,f.ya)}); g.H(this,this.Hb);this.va=Y(function(){return new jY}); g.H(this,this.va);this.Ja=new ZY(a,this.Ia);g.H(this,this.Ja);this.u=new $Y(a);g.H(this,this.u);this.Wa=new aZ(a,this.Sa);g.H(this,this.Wa);this.Ya=new bZ(a,this.ma,this.Ha,this.j);g.H(this,this.Ya);this.qb=new zZ(a,this.j);g.H(this,this.qb);this.X=new dZ(a);g.H(this,this.X);this.kc=new eZ(a);g.H(this,this.kc);this.xa=Y(function(){return new VY}); g.H(this,this.xa);this.Wc=Y(function(){return new WY(f.Ha)}); g.H(this,this.Wc);this.Gb=Y(function(){return new lY(f.Ec)}); g.H(this,this.Gb);this.Tb=Y(function(){return new sY(f.Ta,f.X)}); g.H(this,this.Tb);this.Dc=Y(function(){return new wZ(a,f.X,f.j,f.ya,f.Ha,f.Ta,f.vb,f.Z,f.jb,f.od,f.Vd,f.ma,f.wd,f.Qc,f.Rb,f.Ra,f.Wb,f.La,f.C)}); g.H(this,this.Dc);this.Ub=Y(function(){return new iRa(f.Ia,f.Ha,f.Ta,f.C,f.Lb,c)}); g.H(this,this.Ub);this.bd=new gZ(a,this.ib,this.B,this.j,this.K,this.La);g.H(this,this.bd);this.ge={Sq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ec],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Pc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Bc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.rb]]),qm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hb],["SLOT_TYPE_FORECASTING",this.va], ["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.va]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ja],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Wa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ya],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ya],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.qb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.qb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Wa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kc]]),fn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.xa],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.Wc]]),Km:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gb],["SLOT_TYPE_FORECASTING",this.Tb],["SLOT_TYPE_PLAYER_BYTES",this.Dc],["SLOT_TYPE_IN_PLAYER",this.Ub]])};this.listeners=[this.C.get()];this.Hq={Ec:this.Ec,Ok:null,Mm:this.ib.get(),Sf:this.La.get(),kb:this.Ra.get(),gp:this.Ha.get(),Bc:this.Bc,Mj:this.K.get(),Lm:null,Qi:this.Ja,ph:this.C.get(),bk:this.j.get()}}; TZ=function(a,b,c,d){g.G.call(this);var e=this;this.j=kRa(function(){return e.u},a,b,c,d); g.H(this,this.j);this.u=(new hW(this.j)).B();g.H(this,this.u)}; UZ=function(a){return a.j.Hq}; kRa=function(a,b,c,d,e){try{var f=b.V();if(g.ZC(f))var k=new aRa(a,b,c,d,e);else if(g.bD(f))k=new cRa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)k=new eRa(a,b,c,d,e);else if(QC(f))k=new dRa(a,b,c,d,e);else if(g.JC(f))k=new hRa(a,b,c,d,e);else if(g.IC(f))k=new jRa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return k}catch(l){return k=b.V(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:k.deviceParams.cplatform,interface:k.deviceParams.c, cha:k.deviceParams.cver,bha:k.deviceParams.ctheme,aha:k.deviceParams.cplayer,tha:k.playerStyle}),new HPa(a,b,c,d,e)}}; VZ=function(a,b){this.j=a;this.Ok=b}; WZ=function(a){RI.call(this,a)}; XZ=function(a,b,c,d,e,f){ZI.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.Da("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10* Math.PI);this.hide()}; YZ=function(a,b,c,d,e,f,k){sI.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",c,d,e);this.Qg=f;this.ij=k;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.Ia=this.Da("ytp-ad-action-interstitial-image-container");this.D=new NI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-action-interstitial-image");g.H(this,this.D);this.D.Ba(this.Ia);this.Ea=this.Da("ytp-ad-action-interstitial-headline-container");this.N=new XI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-action-interstitial-headline");g.H(this,this.N); this.N.Ba(this.Ea);this.ya=this.Da("ytp-ad-action-interstitial-description-container");this.J=new XI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-action-interstitial-description");g.H(this,this.J);this.J.Ba(this.ya);this.Sa=this.Da("ytp-ad-action-interstitial-background-container");this.Z=new NI(this.api,this.fb,this.layoutId,this.j,this.kb,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Z);this.Z.Ba(this.Sa);this.Ja=this.Da("ytp-ad-action-interstitial-action-button-container"); this.C=new fv;g.H(this,this.C);this.hide()}; lRa=function(a){var b=g.Vh("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)}; ZZ=function(a,b,c,d,e){sI.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.N=[];this.Xa=this.ya=this.D=this.Sa=this.Ia=null;this.Ja=!1;this.J=null;this.Z=0;a=this.Da("ytp-ad-overlay-container");this.Ea=new hJ(a,45E3,6E3,.3,.4);g.H(this,this.Ea);this.C=mRa(this);g.H(this,this.C);this.C.Ba(a);this.B=nRa(this);g.H(this,this.B);this.B.Ba(a);this.u=oRa(this);g.H(this,this.u);this.u.Ba(a);this.hide()}; mRa=function(a){var b=new g.rI({G:"div",L:"ytp-ad-text-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[GI($Z)]}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){return a_(a,b.element, c)}); a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){return a_(a,b.element,c)}); a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.Si);b.hide();return b}; nRa=function(a){var b=new g.rI({G:"div",Ga:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[GI($Z)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], oa:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){return a_(a,b.element,c)}); a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){return a_(a,b.element,c)}); a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.Si);a.T(b.Da("ytp-ad-overlay-text-image"),"click",a.IY);b.hide();return b}; oRa=function(a){var b=new g.rI({G:"div",L:"ytp-ad-image-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[GI($Z)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Da("ytp-ad-overlay-image"),"click",function(c){return a_(a,b.element,c)}); a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.Si);b.hide();return b}; b_=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.S(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Vh("video-ads ytp-ad-module")||null,null==b)g.S(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.ya=new g.rI({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.ya),a.ya.Ba(b),b=new WI(a.api,a.fb,a.layoutId,a.j,a.kb,a.ya.element,!1),g.H(a,b),b.init(OE("ad-info-hover-text-button"), c,a.macros),a.J){b.Ba(a.J,0);b.subscribe("f",a.iW,a);b.subscribe("e",a.TG,a);a.T(a.J,"click",a.jW);var d=g.Vh("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f,k;if(null==(e=c.button)?0:null==(f=e.buttonRenderer)?0:null==(k=f.serviceEndpoint)?0:k.adInfoDialogEndpoint)a.Ja=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.Xa=b}else g.S(Error("Ad info button container within overlay ad was not present."))}else g.Sv(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; pRa=function(a,b){if(c_(a,d_)||a.api.Te())return!1;var c=tI(b.title),d=tI(b.description);if(g.nb(c)||g.nb(d))return!1;a.ah(a.C.element,b.trackingParams||null);a.C.Na("title",tI(b.title));a.C.Na("description",tI(b.description));a.C.Na("displayUrl",tI(b.displayUrl));b.navigationEndpoint&&g.lc(a.N,b.navigationEndpoint);a.C.show();a.Ea.start();a.bb(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.Z++}); return!0}; qRa=function(a,b){if(c_(a,d_)||a.api.Te())return!1;var c=tI(b.title),d=tI(b.description);if(g.nb(c)||g.nb(d))return!1;a.ah(a.B.element,b.trackingParams||null);a.B.Na("title",tI(b.title));a.B.Na("description",tI(b.description));a.B.Na("displayUrl",tI(b.displayUrl));a.B.Na("imageUrl",lAa(b.image));b.navigationEndpoint&&g.lc(a.N,b.navigationEndpoint);a.Sa=b.imageNavigationEndpoint||null;a.B.show();a.Ea.start();a.bb(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Z++}); return!0}; rRa=function(a,b){if(a.api.Te())return!1;var c=mAa(b.image),d=c;c.widthdocument.documentMode)c=nh;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.$h("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Hia(d.style)}b=dba(c,oh({"background-image":'url("'+b+'")'}));a.style.cssText=lh(b)}}; DRa=function(a){var b=g.Vh("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)}; q_=function(a,b,c,d){RI.call(this,a);this.api=a;this.kb=c;this.u={};this.K=b;a=new g.W({G:"div",Ga:["video-ads","ytp-ad-module"]});g.H(this,a);xC&&g.M(a.element,"ytp-ads-tiny-mode");this.D=new lI(a.element);g.H(this,this.D);g.gL(this.api,a.element,4);vPa(d)&&(d=new g.W({G:"div",Ga:["ytp-ad-underlay"]}),g.H(this,d),this.B=new lI(d.element),g.H(this,this.B),g.gL(this.api,d.element,0));g.H(this,EAa())}; ERa=function(a,b){a=g.dg(a.u,b.id,null);null==a&&g.Sv(Error("Component not found for element id: "+b.id));return a||null}; r_=function(a){g.tL.call(this,a);var b=this;this.u=this.fb=null;this.created=!1;this.Rp=new UH(this.player);this.B=function(){function d(){return b.fb} if(null!=b.u)return b.u;var e=Mza({im:a.getVideoData(1)});e=new ENa({uT:new VZ(function(){return b.fb},UZ(b.j).Ok), Up:e.xU(),LT:d,ZV:d,Qi:UZ(b.j).Qi,Yh:e.mF(),bk:UZ(b.j).bk,I:b.player,Sf:UZ(b.j).Sf,Ta:b.j.j.Ta,ph:UZ(b.j).ph,Qc:b.j.j.Qc});b.u=e.rS;return b.u}; this.j=new TZ(this.player,this,this.Rp,this.B);g.H(this,this.j);var c=a.V();!OC(c)||g.IC(c)||QC(c)||(g.H(this,new q_(a,function(){return b.fb},UZ(this.j).kb,UZ(this.j).Sf)),g.H(this,new WZ(a)))}; FRa=function(a){a.created!==a.loaded&&T("Created and loaded are out of sync")}; s_=function(a,b){b===a.Bs&&(a.Bs=void 0)}; GRa=function(a){a.fb?UZ(a.j).Bc.CF()||a.fb.CF()||UZ(a.j).gp.jq():T("AdService is null when calling maybeUnlockPrerollIfReady")}; HRa=function(a){a=g.r(UZ(a.j).ph.di.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.gb)return!0;return!1}; IRa=function(a){a=g.r(UZ(a.j).ph.di.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; oqa=function(a,b,c){c=void 0===c?"":c;var d=UZ(a.j).Sf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.Ff()||!1;d=JRa(b,d,f,e,UZ(a.j).Mj);rqa(UZ(a.j).Ec,c,d.BB,b);a.fb&&0>>0)+"_",e=0;return b}); ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}}); ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ga(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k=f}}); ia("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Ga(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ia("Set",function(a){function b(c){this.j=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a; b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this}; b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; b.prototype.clear=function(){this.j.clear();this.size=0}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.entries=function(){return this.j.entries()}; b.prototype.values=function(){return this.j.values()}; b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; return b}); ia("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}}); ia("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l}; var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;kb?-c:c}}); ia("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); ia("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));cc&&(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);cc?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(cd;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); ia("Int8Array.prototype.copyWithin",Ja);ia("Uint8Array.prototype.copyWithin",Ja);ia("Uint8ClampedArray.prototype.copyWithin",Ja);ia("Int16Array.prototype.copyWithin",Ja);ia("Uint16Array.prototype.copyWithin",Ja);ia("Int32Array.prototype.copyWithin",Ja);ia("Uint32Array.prototype.copyWithin",Ja);ia("Float32Array.prototype.copyWithin",Ja);ia("Float64Array.prototype.copyWithin",Ja);ia("Number.parseInt",function(a){return a||parseInt}); xj=xj||{};g.C=this||self;Sa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Ya(cb,Error);cb.prototype.name="CustomError";var yba;g.Ya(db,cb);db.prototype.name="AssertionError";var wd,xaa="undefined"!==typeof TextDecoder,gb,jaa="undefined"!==typeof TextEncoder;var xb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ob=/&/g,pb=//g,rb=/"/g,sb=/'/g,tb=/\x00/g,kaa=/[\x00&<>"']/;var QRa=g.La("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Cb;if(null!=QRa&&QRa){var RRa=g.C.navigator;Cb=RRa?RRa.userAgentData||null:null}else Cb=null;var cc,Rl,$m;cc=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;cc&&(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.wc=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;fparseFloat(y_)){x_=String(A_);break a}}x_=y_}var Ec=x_,uaa={},B_;if(g.C.document&&g.Nc){var WRa=Cc();B_=WRa?WRa:parseInt(Ec,10)||void 0}else B_=void 0;var vaa=B_;var HC,HE;g.Ex=Kb();HC=Tb()||Eb("iPod");HE=Eb("iPad");g.zC=Ob();g.kA=Lb();g.Rs=Nb()&&!Ub();var Ic={},Pc=null;var Tc="undefined"!==typeof Uint8Array,Uc,Wc={};var Zc;Yc.prototype.isEmpty=function(){return null==this.Vc};var waa;waa="function"===typeof Uint8Array.prototype.slice;g.dd=0;g.cd=0;g.h=g.fd.prototype;g.h.init=function(a,b,c,d){d=void 0===d?{}:d;this.Az=void 0===d.Az?!1:d.Az;a&&(a=bd(a),this.u=a.buffer,this.D=a.Et,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)}; g.h.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.Az=!1}; g.h.reset=function(){this.j=this.C}; g.h.advance=function(a){this.j+=a;hd(this)}; g.h.Vy=ca(0);var od=[];rd.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1}; rd.prototype.advance=function(a){this.j.advance(a)}; var iR=[];var Ad;Cd.prototype.length=function(){return this.j.length}; Cd.prototype.end=function(){var a=this.j;this.j=[];return a};var Nd="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Ge,ie=Object.freeze(Qd([])),op="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;Fe.prototype.toJSON=function(){var a=this.me;return Ge?a:ee(a,ge)}; Fe.prototype.J=function(a){return a.B(this)}; Fe.prototype.clone=function(){var a=ee(this.me);Ee=a;a=new this.constructor(a);Ee=null;Le(a,this);return a}; Fe.prototype.toString=function(){return this.me.toString()}; var Ee;g.v(Me,Fe);if(op){var XRa={};Object.defineProperties(Me,(XRa[Symbol.hasInstance]=be(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),XRa))};var Qe,We,$e,af,cfa,$l,dfa,nf,cja,rq,dja;Qe=Symbol();We=Symbol();$e=Symbol();af=Symbol();cfa=g.cf(function(a,b,c){if(1!==a.u)return!1;a=g.vd(a);qe(b,c,a,0);return!0},g.df); $l=g.cf(function(a,b,c){if(0!==a.u)return!1;a=g.id(a.j);qe(b,c,a,0);return!0},g.ef); dfa=g.cf(function(a,b,c){if(0!==a.u)return!1;a=g.jd(a.j);qe(b,c,a,0);return!0},g.ff); g.uq=g.cf(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,g.xd(a));return!0},g.gf); g.sq=g.cf(function(a,b,c,d,e){if(2!==a.u)return!1;g.ud(a,Be(b,c,d),e);return!0},function(a,b,c,d,e){b=xe(b,d,c); if(null!=b)for(d=0;d>>0;g.D(b,c,a);return!0},function(a,b,c){b=g.he(b,c); null!=b&&null!=b&&(g.Jd(a,c,0),Fd(a.j,b))}); dja=g.cf(function(a,b,c){if(0!==a.u)return!1;a=g.jd(a.j);g.D(b,c,a);return!0},function(a,b,c){b=g.he(b,c); null!=b&&(b=parseInt(b,10),g.Jd(a,c,0),Gd(a.j,b))});g.v(g.F,Me);if(op){var YRa={};Object.defineProperties(g.F,(YRa[Symbol.hasInstance]=be(Object[Symbol.hasInstance]),YRa))};g.v(mf,g.F);g.v(of,g.F);g.v(pf,g.F);g.v(qf,g.F);var uf=[1,2,3];g.h=wf.prototype;g.h.wT=function(a){var b=g.Da.apply(1,arguments),c=this.cF(b);c?c.push(new vf(a)):this.HP(a,b)}; g.h.HP=function(a){this.Is.set(this.lM(g.Da.apply(1,arguments)),[new vf(a)])}; g.h.cF=function(){var a=this.lM(g.Da.apply(0,arguments));return this.Is.has(a)?this.Is.get(a):void 0}; g.h.AU=function(){var a=this.cF(g.Da.apply(0,arguments));return a&&a.length?a[0]:void 0}; g.h.clear=function(){this.Is.clear()}; g.h.lM=function(){var a=g.Da.apply(0,arguments);return a?a.join(","):"key"};g.v(xf,wf);xf.prototype.B=function(a){var b=g.Da.apply(1,arguments),c=0,d=this.AU(b);d&&(c=d.pL);this.HP(c+a,b)};g.v(yf,wf);yf.prototype.Bl=function(a){this.wT(a,g.Da.apply(1,arguments))};g.G.prototype.Xg=!1;g.G.prototype.isDisposed=function(){return this.Xg}; g.G.prototype.dispose=function(){this.Xg||(this.Xg=!0,this.ra())}; g.G.prototype.ra=function(){if(this.Zf)for(;this.Zf.length;)this.Zf.shift()()};g.Cf.prototype.stopPropagation=function(){this.u=!0}; g.Cf.prototype.preventDefault=function(){this.defaultPrevented=!0};var Ef={};var Waa=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",g.Na,b),g.C.removeEventListener("test",g.Na,b)}catch(c){}return a}();var rDa=Hf("AnimationEnd"),jGa=Hf("TransitionEnd");g.Ya(If,g.Cf);var ZRa={2:"touch",3:"pen",4:"mouse"}; If.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)?Km&&(zc(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:ZRa[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&If.ue.preventDefault.call(this)}; If.prototype.stopPropagation=function(){If.ue.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0}; If.prototype.preventDefault=function(){If.ue.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Jf="closure_listenable_"+(1E6*Math.random()|0);var Taa=0;var hg="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");kg.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var k=mg(a,b,d,e);-1>>0);g.Ya(g.Bg,g.G);g.Bg.prototype[Jf]=!0;g.h=g.Bg.prototype;g.h.addEventListener=function(a,b,c,d){g.og(this,a,b,c,d)}; g.h.removeEventListener=function(a,b,c,d){xg(this,a,b,c,d)}; g.h.dispatchEvent=function(a){var b=this.Ja;if(b){var c=[];for(var d=1;b;b=b.Ja)c.push(b),++d}b=this.jb;d=a.type||a;if("string"===typeof a)a=new g.Cf(a,b);else if(a instanceof g.Cf)a.target=a.target||b;else{var e=a;a=new g.Cf(d,b);g.ig(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var k=a.currentTarget=c[f];e=Cg(k,d,!0,a)&&e}a.u||(k=a.currentTarget=b,e=Cg(k,d,!0,a)&&e,a.u||(e=Cg(k,d,!1,a)&&e));if(c)for(f=0;!a.u&&fl?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+k+l+d+(null!=e?";samesite="+ e:"")}; g.h.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;ed&&this.Eaw||401===w||0===w)c.u=x.concat(c.u),c.xa||c.j.enabled||c.j.start();b&&b("net-send-failed",w)},t=function(){c.Ra?c.Ra.send(n,p,q):c.ib(n,p,q)}; m?m.then(function(w){n.ir["Content-Encoding"]="gzip";n.ir["Content-Type"]="application/binary";n.body=w;n.DT=2;t()},function(){t()}):t()}}}}; g.h.VE=function(){this.flush()}; g.v(kda,g.Cf);eda.prototype.ze=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.D(c,4,d);a=Ae(c,3,a);b&&g.D(a,14,b);return a};nda.prototype.ze=function(){var a=new Jj(1654,this.ma?this.ma:Mi,"0",this.J,this.B,this.C,!1,this.ya,void 0,void 0,this.K?this.K:void 0);this.X&&Ij(a.J,this.X);if(this.u){var b=this.u,c=Kj(a.J);g.D(c,7,b)}this.D&&(a.N=this.D);this.j&&(a.Z=this.j);this.N&&((b=this.N)?(a.C||(a.C=new Ni),b=He(b),g.D(a.C,4,b)):a.C&&pe(a.C,4));this.va&&(b=this.va,a.C||(a.C=new Ni),oe(a.C,2,b));this.Z&&(b=this.Z,a.Sa=!0,hda(a,b));this.xa&&lda(a.J,this.xa);return a};oda.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new lca,c=[],d=0;d>>3;1!=f.B&&2!=f.B&&15!=f.B&&Wk(f,k,l,"unexpected tag");f.j=1;f.u=0;f.C=0} function c(m){f.C++;5==f.C&&m&240&&Wk(f,k,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.N=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())} function d(m){f.D[f.N++]=m;f.N==f.u&&e()} function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.j=0} for(var f=this,k=a instanceof Array?a:new Uint8Array(a),l=0;lb||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?cl(this,7):7==c?cl(this,8):d||cl(this,3)),this.u||(this.u=bea(this.j),null==this.u&&cl(this,5)),2this.B){var k=a.length;c=[];try{if(this.u.rz())for(var l=0;lthis.B){l=e.substr(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){cl(this,5);dl(this);break a}}4==b?(0!=e.length|| this.X?cl(this,2):cl(this,4),dl(this)):cl(this,1)}}}catch(p){cl(this,6),dl(this)}};g.h=cea.prototype;g.h.Qm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this}; g.h.addListener=function(a,b){this.Qm(a,b);return this}; g.h.removeListener=function(a,b){var c=this.u[a];c&&g.hc(c,b);(a=this.j[a])&&g.hc(a,b);return this}; g.h.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this}; g.h.SW=function(a){var b=this.u.data;b&&dea(a,b);(b=this.j.data)&&dea(a,b);this.j.data=[]}; g.h.CY=function(){switch(this.B.getStatus()){case 1:el(this,"readable");break;case 5:case 6:case 4:case 7:case 3:el(this,"error");break;case 8:el(this,"close");break;case 2:el(this,"end")}};eea.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return fea(function(k){var l=k.pA(),m=k.getMetadata(),n=iea(e,!1);m=jea(e,m,n,f+l.getName());var p=kea(n,l.u,!0);k=l.j(k.j);n.send(m,"POST",k);return p},this.C).call(this,Jda(d,b,c))};fl.prototype.create=function(a,b){return bk(this.j,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},jSa)}; fl.prototype.ping=function(a,b){return bk(this.j,"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},kSa)};g.v(jl,Error);g.v(kl,g.G);g.v(ml,kl);ml.prototype.Qt=function(a){++this.D>=this.J&&this.B.resolve();var b=new Nj(this.logger,"C");a=new Ida(this.C(a.dw));b.done();b=a.u;var c=this.j;c=we(c,pf,3===se(c,uf)?3:-1);c||(c=new pf,a=Oc(a.B),g.D(c,2,a),ze(this.j,3,uf,c));g.D(c,1,b);return g.bf(this.j,Raa)}; g.v(nl,kl);nl.prototype.Qt=function(){return this.j}; g.v(ol,kl);ol.prototype.Qt=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C}; il.prototype.isReady=function(){return!!this.j}; il.prototype.ready=function(){var a=this;return g.B(function(b){return g.A(b,a.u.promise,0)})}; il.prototype.Qt=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Nj(this.logger,this.j.u);try{return this.j.Qt(a)}catch(e){b=new Nj(this.logger,"e");var c=new jl(5,e);this.logger.jx(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new ol(c)).Qt()}finally{b.done()}};var nn;nn=["av.default","js","unreleased"].slice(-1)[0];var bn=document,El=window;var yea={NONE:0,C5:1},lfa={YQ:0,uca:1,tca:2,vca:3},kfa={V0:"a",t5:"d",VIDEO:"v"};ql.prototype.isVisible=function(){return this.Aq?.3<=this.pd:.5<=this.pd};var Al={W1:0,V5:1},ifa={NONE:0,m7:1,s6:2};rl.prototype.getValue=function(){return this.Vc}; g.v(sl,rl);sl.prototype.setValue=function(a){if(null!==this.Vc||!g.Yf(this.u,a))return!1;this.Vc=a;return!0}; g.v(tl,rl);tl.prototype.setValue=function(a){if(null!==this.Vc||"number"!==typeof a)return!1;this.Vc=a;return!0}; g.v(ul,rl);ul.prototype.setValue=function(a){if(null!==this.Vc||"string"!==typeof a)return!1;this.Vc=a;return!0};vl.prototype.disable=function(){this.u=!1}; vl.prototype.enable=function(){this.u=!0}; vl.prototype.isEnabled=function(){return this.u}; vl.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var pga=!g.Nc&&!Nb();Bl.prototype.now=function(){return 0}; Bl.prototype.u=function(){return 0}; Bl.prototype.B=function(){return 0}; Bl.prototype.j=function(){return 0};g.v(Dl,Bl);Dl.prototype.now=function(){return Cl()&&El.performance.now?El.performance.now():Bl.prototype.now.call(this)}; Dl.prototype.u=function(){return Cl()&&El.performance.memory?El.performance.memory.totalJSHeapSize||0:Bl.prototype.u.call(this)}; Dl.prototype.B=function(){return Cl()&&El.performance.memory?El.performance.memory.usedJSHeapSize||0:Bl.prototype.B.call(this)}; Dl.prototype.j=function(){return Cl()&&El.performance.memory?El.performance.memory.jsHeapSizeLimit||0:Bl.prototype.j.call(this)};var Bea=Hg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.C.addEventListener("test",null,b)}catch(c){}return a});Eea.prototype.isVisible=function(){return 1===Gl(bn)};g.Pg("csi.gstatic.com");g.Pg("googleads.g.doubleclick.net");g.Pg("partner.googleadservices.com");g.Pg("pubads.g.doubleclick.net");g.Pg("securepubads.g.doubleclick.net");g.Pg("tpc.googlesyndication.com");var Iea=/https?:\/\/[^\/]+/,Gea={n0:"allow-forms",o0:"allow-modals",q0:"allow-orientation-lock",r0:"allow-pointer-lock",s0:"allow-popups",t0:"allow-popups-to-escape-sandbox",u0:"allow-presentation",v0:"allow-same-origin",w0:"allow-scripts",x0:"allow-top-navigation",y0:"allow-top-navigation-by-user-activation"},Lea=Hg(function(){return Hea()});var Pea=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Yl.prototype.setInterval=function(a,b){return El.setInterval(a,b)}; Yl.prototype.clearInterval=function(a){El.clearInterval(a)}; Yl.prototype.setTimeout=function(a,b){return El.setTimeout(a,b)}; Yl.prototype.clearTimeout=function(a){El.clearTimeout(a)};afa.prototype.getContext=function(){if(!this.j){if(!El)throw Error("Context has not been set and window is undefined.");this.j=Sl(Yl)}return this.j};g.v(bfa,g.F);var jfa={Sba:1,pT:2,N$:3};Vg(Og(g.Pg("https://pagead2.googlesyndication.com/pagead/osd.js")));mfa.prototype.mH=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=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Cm.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Am(this.j,a.j)&&!0};Dm.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.N==a.N&&Am(this.B,a.B)&&Am(this.J,a.J)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.K==a.K};var sSa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},mo={lT:"start",cR:"firstquartile",gT:"midpoint",mT:"thirdquartile",UQ:"complete",fT:"metric",PAUSE:"pause",jT:"resume",kT:"skip",oT:"viewable_impression",hT:"mute",nT:"unmute",dR:"fullscreen",bR:"exitfullscreen",SQ:"bufferstart",RQ:"bufferfinish",eR:"fully_viewable_audible_half_duration_impression",eT:"measurable_impression",LQ:"abandon",aR:"engagedview",fR:"impression",VQ:"creativeview",dT:"loaded",aca:"progress",CLOSE:"close", N1:"collapse",Yaa:"overlay_resize",Zaa:"overlay_unmeasurable_impression",aba:"overlay_unviewable_impression",cba:"overlay_viewable_immediate_impression",bba:"overlay_viewable_end_of_session_impression",WQ:"custom_metric_viewable",Taa:"verification_debug",MQ:"audio_audible",OQ:"audio_measurable",NQ:"audio_impression"},bia="start firstquartile midpoint thirdquartile resume loaded".split(" "),cia=["start","firstquartile","midpoint","thirdquartile"],Qga=["abandon"],Ho={UNKNOWN:-1,lT:0,cR:1,gT:2,mT:3, UQ:4,fT:5,PAUSE:6,jT:7,kT:8,oT:9,hT:10,nT:11,dR:12,bR:13,eR:14,eT:15,LQ:16,aR:17,fR:18,VQ:19,dT:20,WQ:21,SQ:22,RQ:23,NQ:24,OQ:25,MQ:26};var zfa={Y_:"addEventListener",u6:"getMaxSize",v6:"getScreenSize",w6:"getState",x6:"getVersion",pca:"removeEventListener",I7:"isViewable"};g.h=g.Em.prototype;g.h.clone=function(){return new g.Em(this.left,this.top,this.width,this.height)}; g.h.contains=function(a){return a instanceof g.Ch?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; g.h.distance=function(a){var b=a.x=this.N?a:this;b!==this.j?(this.J=this.j.J,gn(this)):this.J!==this.j.J&&(this.J=this.j.J,gn(this))}; g.h.Go=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.X);this.C=a;b&&Tfa(this)}}; g.h.Dl=function(){return this.X}; g.h.dispose=function(){this.xa=!0}; g.h.isDisposed=function(){return this.xa};g.h=hn.prototype;g.h.aD=function(){return!0}; g.h.ev=function(){}; g.h.dispose=function(){if(!this.isDisposed()){var a=this.u;g.hc(a.D,this);a.X&&this.Dl()&&Sfa(a);this.ev();this.Z=!0}}; g.h.isDisposed=function(){return this.Z}; g.h.uo=function(){return this.u.uo()}; g.h.Am=function(){return this.u.Am()}; g.h.Xs=function(){return this.u.Xs()}; g.h.Tw=function(){return this.u.Tw()}; g.h.xt=function(){}; g.h.Go=function(){this.Jn()}; g.h.Dl=function(){return this.ma};g.h=jn.prototype;g.h.Am=function(){return this.j.Am()}; g.h.Xs=function(){return this.j.Xs()}; g.h.Tw=function(){return this.j.Tw()}; g.h.create=function(a,b,c){var d=null;this.j&&(d=this.Wy(a,b,c),fn(this.j,d));return d}; g.h.qJ=function(){return this.fv()}; g.h.fv=function(){return!1}; g.h.init=function(a){return this.j.initialize()?(fn(this.j,this),this.C=a,!0):!1}; g.h.xt=function(a){0==a.Am()&&this.C(a.Xs(),this)}; g.h.Go=function(){}; g.h.Dl=function(){return!1}; g.h.dispose=function(){this.D=!0}; g.h.isDisposed=function(){return this.D}; g.h.uo=function(){return{}};kn.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.j,f=e.push;a=new Ufa(a,b,c);d=new Ufa(a.j,a.Vc,a.u+d);f.call(e,d);this.u=!0;return this};Zfa.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=mn(this.j);0=k;k=!(0=k)||c;this.j[e].update(f&&l,d,!f||k)}};vn.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.pd):b.pd;this.ma=Math.max(this.ma,b.pd);this.va=-1!=this.va?Math.min(this.va,b.Dh):b.Dh;this.ya=Math.max(this.ya,b.Dh);this.Xa.update(b.Dh,c.Dh,b.j,a,d);this.u.update(b.pd,c.pd,b.j,a,d);c=d||c.Aq!=b.Aq?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ja.update(c,a,b)}; vn.prototype.Im=function(){return this.Ja.B>=this.Wa};var uSa=new ym(0,0,0,0);var nga=new ym(0,0,0,0);g.v(zn,g.G);g.h=zn.prototype;g.h.ra=function(){this.dh.j&&(this.fq.vG&&(Dea(this.dh.j,"mouseover",this.fq.vG),this.fq.vG=null),this.fq.tG&&(Dea(this.dh.j,"mouseout",this.fq.tG),this.fq.tG=null));this.wy&&this.wy.dispose();this.Zd&&this.Zd.dispose();delete this.cB;delete this.lG;delete this.sQ;delete this.dh.Ro;delete this.dh.j;delete this.fq;delete this.wy;delete this.Zd;delete this.featureSet;g.G.prototype.ra.call(this)}; g.h.zo=function(){return this.Zd?this.Zd.j:this.position}; g.h.mH=function(a){bm().mH(a)}; g.h.Dl=function(){return!1}; g.h.sA=function(){return new vn}; g.h.Eg=function(){return this.cB}; g.h.mM=function(a){return rga(this,a,1E4)}; g.h.Ka=function(a,b,c,d,e,f,k){this.Oo||(this.Tz&&(a=this.lE(a,c,e,k),d=d&&this.Hf.pd>=(this.Aq()?.3:.5),this.BI(f,a,d),this.lastUpdateTime=b,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=a.bottom||a.left>=a.right?new ym(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.aN(c)?c=new ym(0,0,0,0):(d=an().C,b=new ym(0,d.height,d.width,0),d=yn(c,this.j),e=yn(c,an().j),b=yn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new ym(0,0,0, 0):Bm(c,-this.j.left,-this.j.top);cn()||(e=d=0);this.K=new Dm(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.h.getName=function(){return this.u.getName()};var ySa=new ym(0,0,0,0);g.v(fo,eo);g.h=fo.prototype;g.h.aD=function(){this.B();return!0}; g.h.Go=function(){eo.prototype.Jn.call(this)}; g.h.iL=function(){}; g.h.nE=function(){}; g.h.Jn=function(){this.B();eo.prototype.Jn.call(this)}; g.h.xt=function(a){a=a.isActive();a!==this.J&&(a?this.B():(an().j=new ym(0,0,0,0),this.j=new ym(0,0,0,0),this.C=new ym(0,0,0,0),this.timestamp=-1));this.J=a};var L_={},Oga=(L_.firstquartile=0,L_.midpoint=1,L_.thirdquartile=2,L_.complete=3,L_);g.v(ho,zn);g.h=ho.prototype;g.h.Dl=function(){return!0}; g.h.Hm=function(){return 2==this.Jg}; g.h.mM=function(a){return rga(this,a,Math.max(1E4,this.B/3))}; g.h.Ka=function(a,b,c,d,e,f,k){var l=this,m=this.K(this)||{};g.ig(m,e);this.B=m.duration||this.B;this.X=m.isVpaid||this.X;this.Ia=m.isYouTube||this.Ia;e=Gga(this,b);1===Fga(this)&&(f=e);zn.prototype.Ka.call(this,a,b,c,d,m,f,k);this.Lq&&this.Lq.u&&g.wc(this.J,function(n){n.D(l)})}; g.h.BI=function(a,b,c){zn.prototype.BI.call(this,a,b,c);ko(this).update(a,b,this.Hf,c);this.Xa=Fn(this.Hf)&&Fn(b);-1==this.ya&&this.Wa&&(this.ya=this.Eg().B.j);this.yf.B=0;a=this.Im();b.isVisible()&&Yn(this.yf,"vs");a&&Yn(this.yf,"vw");Zm(b.volume)&&Yn(this.yf,"am");Fn(b)&&Yn(this.yf,"a");this.Bt&&Yn(this.yf,"f");-1!=b.u&&(Yn(this.yf,"bm"),1==b.u&&Yn(this.yf,"b"));Fn(b)&&b.isVisible()&&Yn(this.yf,"avs");this.Xa&&a&&Yn(this.yf,"avw");0this.j.N&&(this.j=this,gn(this)),this.N=a);return 2==a};Bo.prototype.sample=function(){Eo(this,so(),!1)}; Bo.prototype.C=function(){var a=cn(),b=tm();a?(vm||(wm=b,g.wc(ro.j,function(c){var d=c.Eg();d.Ia=ao(d,b,1!=c.Jg)})),vm=!0):(this.K=pha(this,b),vm=!1,Pga=b,g.wc(ro.j,function(c){c.Tz&&(c.Eg().N=b)})); Eo(this,so(),!a)}; var Co=Sl(Bo);var rha=null,bp="",ap=!1;var uha=tha().Sk,Go=tha().Vk;var xha={X5:"visible",W0:"audible",Wda:"time",Xda:"timetype"},yha={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, audible:function(a){return"0"==a||"1"==a}, timetype:function(a){return"mtos"==a||"tos"==a}, time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.v(Ko,bo);Ko.prototype.getId=function(){return this.K}; Ko.prototype.J=function(){return!0}; Ko.prototype.j=function(a){var b=a.Eg(),c=a.getDuration();return $m(this.N,function(d){if(void 0!=d.j)var e=Aha(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=d);return d})};g.v(Lo,Bha);Lo.prototype.u=function(){return null}; Lo.prototype.B=function(){return[]};g.v(Mo,Aga);Mo.prototype.j=function(a){var b=new Jn;b.j=Xn(a,vSa);b.u=Xn(a,xSa);return b};g.v(No,bo);No.prototype.j=function(a){return Iga(a)};g.v(Oo,Bha);g.v(Po,bo);Po.prototype.j=function(a){return a.Eg().Im()};g.v(Qo,co);Qo.prototype.j=function(a){var b=g.dc(this.K,yl(bm().featureSet,"ovms"));return!a.Oo&&(0!=a.Jg||b)};g.v(Ro,Oo);Ro.prototype.u=function(){return new Qo(this.j)}; Ro.prototype.B=function(){return[new Po("viewable_impression",this.j),new No(this.j)]};g.v(So,fo);So.prototype.B=function(){var a=g.La("ima.admob.getViewability"),b=yl(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)}; So.prototype.getName=function(){return"gsv"};g.v(To,jn);To.prototype.getName=function(){return"gsv"}; To.prototype.fv=function(){var a=an();bm();return a.u&&!1}; To.prototype.Wy=function(a,b,c){return new So(this.j,b,c)};g.v(Uo,fo);Uo.prototype.B=function(){var a=this,b=g.La("ima.bridge.getNativeViewability"),c=yl(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.ag(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Mfa(d.opt_nativeViewBounds||{});var k=a.u.C;k.j=f?ySa.clone():Mfa(e);a.timestamp=d.opt_nativeTime||-1;an().j=k.j;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})}; Uo.prototype.getName=function(){return"nis"};g.v(Vo,jn);Vo.prototype.getName=function(){return"nis"}; Vo.prototype.fv=function(){var a=an();bm();return a.u&&!1}; Vo.prototype.Wy=function(a,b,c){return new Uo(this.j,b,c)};g.v(Wo,en);g.h=Wo.prototype;g.h.bv=function(){return null!=this.u.Sj}; g.h.jM=function(){var a={};this.Ea&&(a.mraid=this.Ea);this.va&&(a.mlc=1);a.mtop=this.u.SZ;this.K&&(a.mse=this.K);this.Ia&&(a.msc=1);a.mcp=this.u.compatibility;return a}; g.h.kp=function(a){var b=g.Da.apply(1,arguments);try{return this.u.Sj[a].apply(this.u.Sj,b)}catch(c){sm(538,c,.01,function(d){d.method=a})}}; g.h.initialize=function(){var a=this;if(this.isInitialized)return!this.Tw();this.isInitialized=!0;if(2===this.u.compatibility)return this.K="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.K="mm",this.fail("w"),!1;an().N=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Fha(this):Wm(this.B,"load",function(){Zl().setTimeout(rm(292,function(){return Fha(a)}),100)},292); return!0}; g.h.oJ=function(){var a=an(),b=Kha(this,"getMaxSize");a.j=new ym(0,b.width,b.height,0)}; g.h.pJ=function(){an().C=Kha(this,"getScreenSize")}; g.h.dispose=function(){Hha(this);en.prototype.dispose.call(this)};g.h=Yo.prototype;g.h.jw=function(a){An(a,!1);bha(a)}; g.h.xA=function(){}; g.h.Wx=function(a,b,c,d){var e=this;b=c?b:-1;c=this.BL();a=new ho(El,a,b,7,this.DE(),c.u(),c.B());a.Uf=d;wea(a.featureSet);xl(a.featureSet,"queryid",a.Uf);a.mH("");uga(a,function(){return e.zM.apply(e,g.u(g.Da.apply(0,arguments)))},function(){return e.UU.apply(e,g.u(g.Da.apply(0,arguments)))}); (d=Sl(to).j)&&qga(a,d);a.dh.Ro&&Sl(kha);return a}; g.h.xt=function(a){switch(a.Am()){case 0:if(a=Sl(to).j)a=a.j,g.hc(a.D,this),a.X&&this.Dl()&&Sfa(a);$o();break;case 2:Do()}}; g.h.Go=function(){}; g.h.Dl=function(){return!1}; g.h.UU=function(a,b){a.Oo=!0;switch(a.dl()){case 1:Qha(a,b);break;case 2:this.wH(a)}this.KH()}; g.h.cV=function(a){var b=a.K(a);b&&(b=b.volume,a.Ya=Zm(b)&&0a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.j=-1)}; sp.prototype.get=function(a){return!!this.data_[a]};g.Ya(g.tp,g.G);g.h=g.tp.prototype;g.h.start=function(){this.stop();this.C=!1;var a=pia(this),b=qia(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.og(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(Yaa(this.B),20)}; g.h.stop=function(){if(this.isActive()){var a=pia(this),b=qia(this);a&&!b&&this.u.mozRequestAnimationFrame?yg(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null}; g.h.isActive=function(){return null!=this.j}; g.h.BR=function(){this.C&&this.j&&yg(this.j);this.j=null;this.J.call(this.D,g.Xa())}; g.h.ra=function(){this.stop();g.tp.ue.ra.call(this)};g.Ya(g.L,g.G);g.h=g.L.prototype;g.h.hv=0;g.h.ra=function(){g.L.ue.ra.call(this);this.stop();delete this.j;delete this.u}; g.h.start=function(a){this.stop();this.hv=g.Bi(this.B,void 0!==a?a:this.jg)}; g.h.stop=function(){this.isActive()&&g.C.clearTimeout(this.hv);this.hv=0}; g.h.isActive=function(){return 0!=this.hv}; g.h.sJ=function(){this.hv=0;this.j&&this.j.call(this.u)};yp.prototype[Symbol.iterator]=function(){return this}; yp.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};Fp.prototype.Kh=function(){return new Gp(this.j())}; Fp.prototype[Symbol.iterator]=function(){return new Hp(this.j())}; Fp.prototype.B=function(){return new Hp(this.j())}; g.v(Gp,g.Bn);Gp.prototype.j=function(){var a=this.u.next();if(a.done)throw g.Dn;return a.value}; Gp.prototype.next=function(){return this.u.next()}; Gp.prototype[Symbol.iterator]=function(){return new Hp(this.u)}; Gp.prototype.B=function(){return new Hp(this.u)}; g.v(Hp,Fp);Hp.prototype.next=function(){return this.u.next()};g.h=g.Jp.prototype;g.h.Ki=function(){Lp(this);for(var a=[],b=0;b2*this.size&&Lp(this),!0):!1}; g.h.get=function(a,b){return Kp(this.u,a)?this.u[a]:b}; g.h.set=function(a,b){Kp(this.u,a)||(this.size+=1,this.j.push(a),this.zp++);this.u[a]=b}; g.h.forEach=function(a,b){for(var c=this.wm(),d=0;d=d.j.length)return g.I_;var k=d.j[b++];return g.Cn(a?k:d.u[k])}; var f=e.next;e.j=function(){return g.En(f.call(e))}; return e};g.Ya(g.Mp,g.Bg);g.h=g.Mp.prototype;g.h.Jc=function(){return 1==this.j}; g.h.lB=function(){this.Hi("begin")}; g.h.Dx=function(){this.Hi("end")}; g.h.onFinish=function(){this.Hi("finish")}; g.h.Hi=function(a){this.dispatchEvent(a)};var ESa=Hg(function(){if(g.Nc)return g.Fc("10.0");var a=g.$h("DIV"),b=g.Gf?"-webkit":Km?"-moz":g.Nc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!dSa.test("div"))throw Error("");if("DIV"in fSa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!dSa.test(l))throw Error("");var f=b[l];if(null!=f){var k=l;if(f instanceof Ng)f=Og(f);else if("style"==k.toLowerCase()){if(!g.Ra(f))throw Error(""); f instanceof kh||(f=oh(f));f=lh(f)}else{if(/^on/i.test(k))throw Error("");if(k.toLowerCase()in eSa)if(f instanceof Tg)f=Ug(f).toString();else if(f instanceof g.Xg)f=g.Yg(f);else if("string"===typeof f)f=g.bh(f).Ph();else throw Error("");}f.ol&&(f=f.Ph());k=k+'="'+ub(String(f))+'"';e+=" "+k}}var l="":(c=nba(d),l+=">"+g.rh(c).toString()+"",c=c.Ur());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=sh(l,c);g.rba(a,b);return""!= g.Lm(a.firstChild,"transition")});g.Ya(Np,g.Mp);g.h=Np.prototype;g.h.play=function(){if(this.Jc())return!1;this.lB();this.Hi("play");this.startTime=g.Xa();this.j=1;if(ESa())return g.Jm(this.u,this.K),this.C=g.Bi(this.jZ,void 0,this),!0;this.bD(!1);return!1}; g.h.jZ=function(){g.Um(this.u);via(this.u,this.N);g.Jm(this.u,this.D);this.C=g.Bi((0,g.Ua)(this.bD,this,!1),1E3*this.J)}; g.h.stop=function(){this.Jc()&&this.bD(!0)}; g.h.bD=function(a){g.Jm(this.u,"transition","");g.C.clearTimeout(this.C);g.Jm(this.u,this.D);this.endTime=g.Xa();this.j=0;if(a)this.Hi("stop");else this.onFinish();this.Dx()}; g.h.ra=function(){this.stop();Np.ue.ra.call(this)}; g.h.pause=function(){};var xia=g.Na;var zia={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};Pp("Element","attributes")||Pp("Node","attributes");Pp("Element","innerHTML")||Pp("HTMLElement","innerHTML");Pp("Node","nodeName");Pp("Node","nodeType");Pp("Node","parentNode");Pp("Node","childNodes");Pp("HTMLElement","style")||Pp("Element","style");Pp("HTMLStyleElement","sheet");var Fia=Bia("getPropertyValue"),Gia=Bia("setProperty");Pp("Element","namespaceURI")||Pp("Node","namespaceURI");var Eia={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Sp.prototype.clone=function(){return new g.Sp(this.j,this.K,this.B,this.D,this.C,this.J,this.u,this.N)}; g.Sp.prototype.equals=function(a){return this.j==a.j&&this.K==a.K&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.J==a.J&&this.u==a.u&&this.N==a.N};Up.prototype.clone=function(){return new Up(this.start,this.end)};var FSa=new WeakMap;(function(){if(pNa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Bb()))?a[1]:"0"}return FQ?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Bb()))?a[0].replace(/_/g,"."):"10"):g.is?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Bb()))?a[1]:""):TRa||URa||VRa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Bb()))?a[1].replace(/_/g,"."):""):""})();var Nia=function(){if(g.Ex)return Vp(/Firefox\/([0-9.]+)/);if(g.Nc||g.pt||g.yC)return Ec;if(g.kA){if(Ub()||Vb()){var a=Vp(/CriOS\/([0-9.]+)/);if(a)return a}return Vp(/Chrome\/([0-9.]+)/)}if(g.Rs&&!Ub())return Vp(/Version\/([0-9.]+)/);if(HC||HE){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Bb()))return a[1]+"."+a[2]}else if(g.zC)return(a=Vp(/Android\s+([0-9.]+)/))?a:Vp(/Version\/([0-9.]+)/);return""}();g.Ya(g.Xp,g.G);g.h=g.Xp.prototype;g.h.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.J=e+3;d.push(e);return e}; g.h.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Of(a)}return!1}; g.h.Of=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]=g.Na):(c&&g.hc(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; g.h.ea=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)return g.I_;var f=c.key(b++);if(a)return g.Cn(f);f=c.getItem(f);if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.Cn(f)}; var e=d.next;d.j=function(){return g.En(e.call(d))}; return d}; g.h.clear=function(){this.j.clear()}; g.h.key=function(a){return this.j.key(a)};g.Ya(dq,cq);g.Ya(Tia,cq);g.Ya(fq,bq);var Uia={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},eq=null;g.h=fq.prototype;g.h.isAvailable=function(){return!!this.j}; g.h.set=function(a,b){this.j.setAttribute(gq(a),b);hq(this)}; g.h.get=function(a){a=this.j.getAttribute(gq(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.h.remove=function(a){this.j.removeAttribute(gq(a));hq(this)}; g.h.Kh=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.Bn;d.next=function(){if(b>=c.length)return g.I_;var f=c[b++];if(a)return g.Cn(decodeURIComponent(f.nodeName.replace(/\./g,"%")).substr(1));f=f.nodeValue;if("string"!==typeof f)throw"Storage mechanism: Invalid value was encountered";return g.Cn(f)}; var e=d.next;d.j=function(){return g.En(e.call(d))}; return d}; g.h.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)fc(a);else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,k=2*a+2;f=ke.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.h.Ki=function(){for(var a=this.j,b=[],c=a.length,d=0;d=N.Gn)||l.j.version>=aa||l.j.objectStoreNames.contains(J)||E.push(J)}m=E;if(0===m.length){y.Za(5);break}n=Object.keys(c.options.Nq);p= l.objectStoreNames();if(c.Jc.options.version+1)throw t.close(),c.C=!1,Gna(c,w);return y.return(t);case 10:throw b(),q instanceof Error&&!g.Q("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+k.substring(k.indexOf("\n")+1)),Ss(q,c.name,"",null!=(x=c.options.version)?x:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.C)throw Gna(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,c_:b,upgrade:this.options.upgrade};return this.j=d=a()};var nt=new lt("YtIdbMeta",{Nq:{databases:{Gn:1}},upgrade:function(a,b){b(1)&&g.at(a,"databases",{keyPath:"actualName"})}});var rt,qt=new function(){}(new function(){});new g.Rj;g.h=vt.prototype;g.h.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.hd&&this.Ae){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.uf.set(d,this.hd).then(function(e){d.id=e;c.jf.Ne()&&wt(c,d)}).catch(function(e){wt(c,d); xt(c,e)})}else this.Zm(a,b)}; g.h.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.hd&&this.Ae){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.jf.Ne()||this.ob&&this.ob("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(k,l){return g.B(function(m){if(1==m.j)return g.A(m,d.uf.set(e,d.hd).catch(function(n){xt(d,n)}),2); f(k,l);g.ua(m)})}}this.Zm(a,b,e.skipRetry)}else this.uf.set(e,this.hd).catch(function(k){d.Zm(a,b,e.skipRetry); xt(d,k)})}else c=this.ob&&this.ob("nwl_skip_retry")&&c,this.Zm(a,b,c)}; g.h.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.hd&&this.Ae){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(k,l){void 0!==d.id?c.uf.Rs(d.id,c.hd):e=!0;c.jf.Pm&&c.ob&&c.ob("vss_network_hint")&&c.jf.Pm(!0);f(k,l)}; this.Zm(d.url,d.options);this.uf.set(d,this.hd).then(function(k){d.id=k;e&&c.uf.Rs(d.id,c.hd)}).catch(function(k){xt(c,k)})}else this.Zm(a,b)}; g.h.Cy=function(){var a=this;if(!this.hd)throw g.Ts("throttleSend");this.j||(this.j=this.Pj.dg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,a.uf.nM("NEW",a.hd),2);if(3!=c.j)return b=c.u,b?g.A(c,wt(a,b),3):(a.kL(),c.return());a.j&&(a.j=0,a.Cy());g.ua(c)})},this.bQ))}; g.h.kL=function(){this.Pj.Ei(this.j);this.j=0};At.prototype.toString=function(){return this.topic};var PSa=g.La("ytPubsub2Pubsub2Instance")||new g.Xp;g.Xp.prototype.subscribe=g.Xp.prototype.subscribe;g.Xp.prototype.unsubscribeByKey=g.Xp.prototype.Of;g.Xp.prototype.publish=g.Xp.prototype.ea;g.Xp.prototype.clear=g.Xp.prototype.clear;g.Ka("ytPubsub2Pubsub2Instance",PSa,void 0);var Dt=g.La("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ka("ytPubsub2Pubsub2SubscribedKeys",Dt,void 0);var Et=g.La("ytPubsub2Pubsub2TopicToKeys")||{};g.Ka("ytPubsub2Pubsub2TopicToKeys",Et,void 0); var Zna=g.La("ytPubsub2Pubsub2IsAsync")||{};g.Ka("ytPubsub2Pubsub2IsAsync",Zna,void 0);g.Ka("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.v(Ht,lt);Ht.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.oy?Pna:Ona)(a,b,Object.assign({},c))}; Ht.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.oy?Tna:Qna)(this.name,a)};var Jt;var QSa={},hoa=g.It("ServiceWorkerLogsDatabase",{Nq:(QSa.SWHealthLog={Gn:1},QSa),oy:!0,upgrade:function(a,b){b(1)&&g.ft(g.at(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Pt={},noa=0;Qt.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; Qt.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null}; Qt.prototype.removeParams=function(a){return a.split("?")[0]}; Qt.prototype.removeParams=Qt.prototype.removeParams;Qt.prototype.isEndpointCFR=Qt.prototype.isEndpointCFR;Qt.prototype.requestComplete=Qt.prototype.requestComplete;Qt.getInstance=Rt;var St;var uoa=g.dr("network_polling_interval",3E4);g.v(Ut,g.Bg);g.h=Ut.prototype;g.h.Ne=function(){if(g.Q("use_shared_nsm")&&this.j){var a;return null==(a=this.j)?void 0:a.Ne()}return this.u}; g.h.Pm=function(a){if(g.Q("use_shared_nsm")&&this.j){var b;null!=(b=this.j)&&(b.j=a)}else a!==this.u&&(this.u=a)}; g.h.RV=function(a){!g.Q("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.N||toa(this))}; g.h.sF=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.h.hU=function(){this.J=!0}; g.h.Pa=function(a,b){return g.Q("use_shared_nsm")&&this.j?this.j.Pa(a,b):g.Bg.prototype.Pa.call(this,a,b)}; g.h.cn=function(a){var b=this;if(g.Q("use_shared_nsm")&&this.j){var c=pp(this.j,a);c.then(function(d){g.Q("use_cfr_monitor")&&Rt().requestComplete("generate_204",d)}); return c}return this.D?this.D:this.D=new Promise(function(d){var e,f,k,l;return g.B(function(m){switch(m.j){case 1:return e=window.AbortController?new window.AbortController:void 0,k=null==(f=e)?void 0:f.signal,l=!1,g.va(m,2,3),e&&(b.K=g.rp.dg(function(){e.abort()},a||2E4)),g.A(m,fetch("/generate_204",{method:"HEAD", signal:k}),5);case 5:l=!0;case 3:g.ya(m);g.Q("use_cfr_monitor")&&Rt().requestComplete("generate_204",l);b.D=void 0;b.K&&g.rp.Ei(b.K);l!==b.u&&(b.u=l,b.u&&b.C?b.dispatchEvent("ytnetworkstatus-online"):b.C&&b.dispatchEvent("ytnetworkstatus-offline"));d(l);g.Aa(m,0);break;case 2:g.xa(m),l=!1,m.Za(3)}})})}; Ut.prototype.sendNetworkCheckRequest=Ut.prototype.cn;Ut.prototype.listen=Ut.prototype.Pa;Ut.prototype.enableErrorFlushing=Ut.prototype.hU;Ut.prototype.getWindowStatus=Ut.prototype.sF;Ut.prototype.monitorNetworkStatusChange=Ut.prototype.RV;Ut.prototype.networkStatusHint=Ut.prototype.Pm;Ut.prototype.isNetworkAvailable=Ut.prototype.Ne;Ut.getInstance=soa;g.v(g.Vt,g.Bg);g.Vt.prototype.Ne=function(){var a=g.La("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; g.Vt.prototype.Pm=function(a){var b=g.La("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; g.Vt.prototype.cn=function(a){var b=this,c;return g.B(function(d){c=g.La("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return g.Q("skip_network_check_if_cfr")&&Rt().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Pm((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Ne())})):c?d.return(c(a)):d.return(!0)})};var Yt;g.v(Wt,vt);Wt.prototype.writeThenSend=function(a,b){b||(b={});g.Ls()||(this.Ae=!1);vt.prototype.writeThenSend.call(this,a,b)}; Wt.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Ls()||(this.Ae=!1);vt.prototype.sendThenWrite.call(this,a,b,c)}; Wt.prototype.sendAndWrite=function(a,b){b||(b={});g.Ls()||(this.Ae=!1);vt.prototype.sendAndWrite.call(this,a,b)}; Wt.prototype.awaitInitialization=function(){return this.u.promise};var fu=0,hu=0,iu,gu=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:hu};g.Ka("ytNetworklessLoggingInitializationOptions",gu,void 0);g.ju.prototype.isReady=function(){!this.config_&&Vma()&&(this.config_=g.ws());return!!this.config_};var hpa={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},gpa={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0, adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,tvhtml5ApiTest:!0};var RSa=0,lu=g.Gf?"webkit":Km?"moz":g.Nc?"ms":g.yC?"o":"",SSa=g.La("ytDomDomGetNextId")||function(){return++RSa}; g.Ka("ytDomDomGetNextId",SSa,void 0);var Foa={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};nu.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; nu.prototype.ZM=function(){return this.event?!1===this.event.returnValue:!1}; nu.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; nu.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ou=g.C.ytEventsEventsListeners||{};g.Ka("ytEventsEventsListeners",ou,void 0);var Ioa=g.C.ytEventsEventsCounter||{count:0};g.Ka("ytEventsEventsCounter",Ioa,void 0);var qpa=Hg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a}),Joa=Hg(function(){var a=!1; try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});var iC=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.Ya(Au,g.G);Au.prototype.X=function(a){void 0===a.j&&Goa(a);var b=a.j;void 0===a.u&&Goa(a);this.j=new g.Ch(b,a.u)}; Au.prototype.zo=function(){return this.j||new g.Ch}; Au.prototype.Z=function(){if(this.j){var a=iC();if(0!=this.C){var b=this.J,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5c;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.j;this.B=(this.B+1)%4}}; Au.prototype.ra=function(){g.Er(this.N);g.qu(this.ma)};var Du={};var TSa,Gu,Iu;TSa=g.C.ytPubsubPubsubInstance||new g.Xp;Gu=g.C.ytPubsubPubsubSubscribedKeys||{};Iu=g.C.ytPubsubPubsubTopicToKeys||{};g.Hu=g.C.ytPubsubPubsubIsSynchronous||{};g.Xp.prototype.subscribe=g.Xp.prototype.subscribe;g.Xp.prototype.unsubscribeByKey=g.Xp.prototype.Of;g.Xp.prototype.publish=g.Xp.prototype.ea;g.Xp.prototype.clear=g.Xp.prototype.clear;g.Ka("ytPubsubPubsubInstance",TSa,void 0);g.Ka("ytPubsubPubsubTopicToKeys",Iu,void 0);g.Ka("ytPubsubPubsubIsSynchronous",g.Hu,void 0); g.Ka("ytPubsubPubsubSubscribedKeys",Gu,void 0);var Xoa=g.dr("initial_gel_batch_timeout",2E3),fpa=Math.pow(2,16)-1,Pu=void 0,Ru=new Qoa,Qu=new Qoa,Yu=!0,Nu=g.C.ytLoggingTransportGELQueue_||new Map;g.Ka("ytLoggingTransportGELQueue_",Nu,void 0);var Ou=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ka("ytLoggingTransportGELProtoQueue_",Ou,void 0);var Xu=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Ka("ytLoggingTransportTokensToCttTargetIds_",Xu,void 0);var Wu=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{}; g.Ka("ytLoggingTransportTokensToJspbCttTargetIds_",Wu,void 0);var Zu=g.C.ytLoggingGelSequenceIdObj_||{};g.Ka("ytLoggingGelSequenceIdObj_",Zu,void 0);var jpa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var opa={};g.v(fv,g.G);fv.prototype.T=function(a,b,c,d,e){c=ir((0,g.Ua)(c,d||this.Wa));c={target:a,name:b,callback:c};var f;e&&qpa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.J.push(c);return c}; fv.prototype.wc=function(a){for(var b=0;b=this.start&&(acTa.length)T_=void 0;else{var U_=bTa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);T_=U_&&6==U_.length?Number(U_[5].replace("_",".")):0}var IE=T_,kM=0<=IE;kM&&0<=g.Bb().search("Safari")&&g.Bb().search("Version");g.v(Rw,zt);g.v(Tqa,zt);var $qa=new At("aft-recorded",Rw),dTa=new At("timing-sent",Tqa);var V_=window,Tw=V_.performance||V_.mozPerformance||V_.msPerformance||V_.webkitPerformance||new Uqa;var Zqa=!1,Dx={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc", 'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"}, kra=(0,g.Ua)(Tw.clearResourceTimings||Tw.webkitClearResourceTimings||Tw.mozClearResourceTimings||Tw.msClearResourceTimings||Tw.oClearResourceTimings||g.Gg,Tw);var W_={},era=(W_.auto_search="LATENCY_ACTION_AUTO_SEARCH",W_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",W_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",W_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",W_.app_startup="LATENCY_ACTION_APP_STARTUP",W_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",W_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",W_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",W_.browse="LATENCY_ACTION_BROWSE",W_.cast_splash="LATENCY_ACTION_CAST_SPLASH", W_.channels="LATENCY_ACTION_CHANNELS",W_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",W_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",W_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",W_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",W_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",W_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",W_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION", W_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",W_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",W_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",W_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",W_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",W_.chips="LATENCY_ACTION_CHIPS",W_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",W_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS", W_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",W_.embed="LATENCY_ACTION_EMBED",W_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",W_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",W_.explore="LATENCY_ACTION_EXPLORE",W_.home="LATENCY_ACTION_HOME",W_.library="LATENCY_ACTION_LIBRARY",W_.live="LATENCY_ACTION_LIVE",W_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",W_.onboarding="LATENCY_ACTION_ONBOARDING",W_.parent_profile_settings= "LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",W_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",W_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",W_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",W_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",W_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",W_.prebuffer="LATENCY_ACTION_PREBUFFER",W_.prefetch="LATENCY_ACTION_PREFETCH",W_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",W_.profile_switcher="LATENCY_ACTION_LOGIN", W_.reel_watch="LATENCY_ACTION_REEL_WATCH",W_.results="LATENCY_ACTION_RESULTS",W_.search_ui="LATENCY_ACTION_SEARCH_UI",W_.search_suggest="LATENCY_ACTION_SUGGEST",W_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",W_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",W_.seek="LATENCY_ACTION_PLAYER_SEEK",W_.settings="LATENCY_ACTION_SETTINGS",W_.tenx="LATENCY_ACTION_TENX",W_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",W_.watch="LATENCY_ACTION_WATCH",W_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", W_["watch,watch7"]="LATENCY_ACTION_WATCH",W_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",W_["watch,watch7ad"]="LATENCY_ACTION_WATCH",W_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",W_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",W_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",W_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",W_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",W_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",W_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR", W_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",W_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",W_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",W_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",W_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",W_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",W_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",W_.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",W_),X_={},fra=(X_.ad_allowed="adTypesAllowed",X_.yt_abt="adBreakType",X_.ad_cpn="adClientPlaybackNonce",X_.ad_docid="adVideoId",X_.yt_ad_an="adNetworks",X_.ad_at="adType",X_.aida="appInstallDataAgeMs",X_.browse_id="browseId",X_.p="httpProtocol",X_.t="transportProtocol",X_.cs="commandSource",X_.cpn="clientPlaybackNonce",X_.ccs="creatorInfo.creatorCanaryState",X_.ctop="creatorInfo.topEntityType",X_.csn="clientScreenNonce",X_.docid="videoId",X_.GetHome_rid="requestIds", X_.GetSearch_rid="requestIds",X_.GetPlayer_rid="requestIds",X_.GetWatchNext_rid="requestIds",X_.GetBrowse_rid="requestIds",X_.GetLibrary_rid="requestIds",X_.is_continuation="isContinuation",X_.is_nav="isNavigation",X_.b_p="kabukiInfo.browseParams",X_.is_prefetch="kabukiInfo.isPrefetch",X_.is_secondary_nav="kabukiInfo.isSecondaryNav",X_.nav_type="kabukiInfo.navigationType",X_.prev_browse_id="kabukiInfo.prevBrowseId",X_.query_source="kabukiInfo.querySource",X_.voz_type="kabukiInfo.vozType",X_.yt_lt= "loadType",X_.mver="creatorInfo.measurementVersion",X_.yt_ad="isMonetized",X_.nr="webInfo.navigationReason",X_.nrsu="navigationRequestedSameUrl",X_.pnt="performanceNavigationTiming",X_.prt="playbackRequiresTap",X_.plt="playerInfo.playbackType",X_.pis="playerInfo.playerInitializedState",X_.paused="playerInfo.isPausedOnLoad",X_.yt_pt="playerType",X_.fmt="playerInfo.itag",X_.yt_pl="watchInfo.isPlaylist",X_.yt_pre="playerInfo.preloadType",X_.yt_ad_pr="prerollAllowed",X_.pa="previousAction",X_.yt_red= "isRedSubscriber",X_.rce="mwebInfo.responseContentEncoding",X_.rc="resourceInfo.resourceCache",X_.scrh="screenHeight",X_.scrw="screenWidth",X_.st="serverTimeMs",X_.ssdm="shellStartupDurationMs",X_.br_trs="tvInfo.bedrockTriggerState",X_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",X_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",X_.label="tvInfo.label",X_.is_mdx="tvInfo.isMdx",X_.preloaded="tvInfo.isPreloaded",X_.aac_type="tvInfo.authAccessCredentialType",X_.upg_player_vis="playerInfo.visibilityState", X_.query="unpluggedInfo.query",X_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",X_.yt_vst="videoStreamType",X_.vph="viewportHeight",X_.vpw="viewportWidth",X_.yt_vis="isVisible",X_.rcl="mwebInfo.responseContentLength",X_.GetSettings_rid="requestIds",X_.GetTrending_rid="requestIds",X_.GetMusicSearchSuggestions_rid="requestIds",X_.REQUEST_ID="requestIds",X_),gra="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "), Y_={},hra=(Y_.ccs="CANARY_STATE_",Y_.mver="MEASUREMENT_VERSION_",Y_.pis="PLAYER_INITIALIZED_STATE_",Y_.yt_pt="LATENCY_PLAYER_",Y_.pa="LATENCY_ACTION_",Y_.ctop="TOP_ENTITY_TYPE_",Y_.yt_vst="VIDEO_STREAM_TYPE_",Y_),ira="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var U={LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_SHOPPING_IN_APP:124, LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131, LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65, LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CAST:120, LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101, LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89, LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33, LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113, LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35, LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_PREBUFFER_VIDEO:144, LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_HOME:1,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER"; U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS"; U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP"; U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF"; U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM"; U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH"; U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION"; U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH"; U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH"; U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER"; U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM"; U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS"; U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX"; U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH"; U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS"; U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST"; U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS"; U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD"; U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS"; U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST"; U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD"; U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO"; U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN"; U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var px={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};px[px.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE"; px[px.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";px[px.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var qx={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};qx[qx.CONN_INVALID]="CONN_INVALID";qx[qx.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";qx[qx.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA"; qx[qx.CONN_WIFI_METERED]="CONN_WIFI_METERED";qx[qx.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";qx[qx.CONN_DISCO]="CONN_DISCO";qx[qx.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";qx[qx.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";qx[qx.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";qx[qx.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";qx[qx.CONN_WIFI]="CONN_WIFI";qx[qx.CONN_NONE]="CONN_NONE";qx[qx.CONN_UNKNOWN]="CONN_UNKNOWN";qx[qx.CONN_DEFAULT]="CONN_DEFAULT"; var rx={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113, DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};rx[rx.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA"; rx[rx.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";rx[rx.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";rx[rx.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";rx[rx.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";rx[rx.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";rx[rx.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN"; rx[rx.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";rx[rx.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";rx[rx.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";rx[rx.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";rx[rx.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";rx[rx.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";rx[rx.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";rx[rx.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B"; rx[rx.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";rx[rx.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";rx[rx.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";rx[rx.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";rx[rx.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";rx[rx.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";rx[rx.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";rx[rx.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA"; rx[rx.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";rx[rx.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";rx[rx.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";rx[rx.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var sx={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0}; sx[sx.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";sx[sx.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";sx[sx.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";sx[sx.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";sx[sx.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";sx[sx.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";sx[sx.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";sx[sx.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN"; var tx={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};tx[tx.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";tx[tx.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";tx[tx.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";tx[tx.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var ux={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0}; ux[ux.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";ux[ux.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var vx={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};vx[vx.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";vx[vx.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";vx[vx.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP"; vx[vx.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";vx[vx.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";vx[vx.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var wx={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};wx[wx.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";wx[wx.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";wx[wx.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";wx[wx.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED"; var xx={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};xx[xx.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";xx[xx.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";xx[xx.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var yx={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};yx[yx.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN"; yx[yx.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";yx[yx.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var lra="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo prefetchInfo accelerationSession webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var hx=g.C.ytLoggingLatencyUsageStats_||{};g.Ka("ytLoggingLatencyUsageStats_",hx,void 0);fx.prototype.tick=function(a,b,c,d){ix(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.Q("web_csi_via_jspb")?(d=new Dja,g.D(d,1,a),g.D(d,2,b),a=new Sq,ze(a,5,xv,d),wv(a,c)):g.Es("latencyActionTicked",{tickName:a,clientActionNonce:b},c))}; fx.prototype.info=function(a,b,c){var d=Object.keys(a).join("");ix(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Es("latencyActionInfo",a,{cttAuthInfo:c}))}; fx.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=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{FF:b,Ar:c}}; hy.prototype.isFocused=function(a){return a>=this.B&&aa.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1}; g.h.update=function(a,b,c){this.index.append(a);Nra(this.index,c);this.index.u=b}; g.h.df=function(){return this.Kt()?!0:lz.prototype.df.call(this)}; g.h.zn=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0c&&(this.segments=this.segments.slice(b))}}; g.h.Vs=function(a){if(!this.Pk)return gy.prototype.Vs.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Rg+1);else{b=rc(this.segments,function(d){return a=d.endTime?1:0}); if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ma-b.Ma-1))+1)+b.Ma}return this.Yk(b)}; g.h.Yk=function(a){if(!this.Pk)return gy.prototype.Yk.call(this,a);if(!this.segments.length)return null;var b=Iz(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Rg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new fy(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.v(Kz,Dz);g.h=Kz.prototype;g.h.ax=function(){return!0}; g.h.df=function(){return!0}; g.h.yn=function(a){return!sz(a)}; g.h.xo=function(){}; g.h.ym=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?Dz.prototype.ym.call(this,a,b):(a=new rz(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.lj,void 0,this.lj*this.info.Ob),new zz([a],""))}; g.h.zn=function(a,b){var c=void 0===c?!1:c;if(Jz(this.index,a))return Dz.prototype.zn.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.lj*this.info.Ob;b=!b;c=new rz(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.index.u&&0a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1}; g.h.kF=function(){return 0}; g.h.iH=function(){return!1};g.h=Mz.prototype;g.h.getOffset=function(a){return this.offsets[a]}; g.h.getStartTime=function(a){return this.j[a]/this.B}; g.h.getStartTimeInPeriod=function(){return 0}; g.h.getIngestionTime=function(){return NaN}; g.h.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1}; g.h.getDurationTicks=function(a){return a+1=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c}; g.h.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;athis.info.u||4===this.info.type)return!0;var b=Pz(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.Ab)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=Pz(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Ab)return 524531317===c||440786851===c}return!0};g.v(Sz,lz);g.h=Sz.prototype;g.h.xo=function(a){var b=new rz(1,this,this.initRange,"initInfo"),c=new rz(2,this,this.indexRange,"indexInfo");b=[b,c];0=this.index.getOffset(c+1);)c++;return Tz(this,c,b,a.u).j}; g.h.yn=function(a){sz(a);return this.df()?!0:a.range.end+1this.info.contentLength&&(b=new nz(b.start,this.info.contentLength-1)),a=[new rz(4,a.j,b,"getNextRequestInfoByLength")],new zz(a);4===a.type&&(a=this.pu(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ab+a.u;3===a.type&&(sz(a),c=a.Ma,d===a.range.end+1&&(c+=1));return Tz(this,c,d,b)}; g.h.ov=function(){return null}; g.h.ym=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Tz(this,a,this.index.getOffset(a),0)}; g.h.Nj=function(){return!0}; g.h.Gt=function(){return!0}; g.h.ax=function(){return!1}; g.h.kF=function(){return this.indexRange.length+this.initRange.length}; g.h.iH=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};Uz.prototype.isMultiChannelAudio=function(){return 2this.jA()?(this.jc.appendWindowEnd=b,this.jc.appendWindowStart=a):(this.jc.appendWindowStart=a,this.jc.appendWindowEnd=b))}; g.h.pF=function(){return this.timestampOffset}; g.h.dC=function(a){uR?this.timestampOffset=a:this.supports(1)&&(this.jc.timestampOffset=a)}; g.h.rd=function(){return uR?this.timestampOffset:this.supports(1)?this.jc.timestampOffset:0}; g.h.Af=function(a){if(void 0===a?0:a)return this.Cz||this.nh()||(this.gL=this.Af(!1),this.Cz=!0),this.gL;try{return this.jc?this.jc.buffered:this.We?this.We.webkitSourceBuffered(this.id):oA([0],[Infinity])}catch(b){return oA([],[])}}; g.h.nh=function(){var a;return(null==(a=this.jc)?void 0:a.updating)||!1}; g.h.po=function(){return this.TA}; g.h.nA=function(){return this.lN}; g.h.zI=function(a,b){this.containerType!==a&&(this.supports(4),xA()&&this.jc.changeType(b));this.containerType=a}; g.h.oA=function(){return this.Ue}; g.h.isView=function(){return!1}; g.h.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.jc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.jc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.jc)||!d.remove);case 3:var e,f;return!!((null==(e=this.jc)?0:e.addEventListener)&&(null==(f=this.jc)?0:f.removeEventListener));case 4:return!(!this.jc||!this.jc.changeType);default:return!1}}; g.h.Gz=function(){return!this.nh()}; g.h.isLocked=function(){return!1}; g.h.Nb=function(a){a.to=this.rd();a.up=this.nh();var b,c=(null==(b=this.jc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.jc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=pA(this.Af())}catch(e){}return a}; g.h.ra=function(){this.supports(3)&&(this.jc.removeEventListener("updateend",this.Mc),this.jc.removeEventListener("error",this.Mc));g.iv.prototype.ra.call(this)}; g.h.sC=function(a,b,c){if(!this.supports(2)||this.nh())return!1;var d=this.Af(),e=qA(d,a);if(0>e)return!1;try{if(b&&e+1vTa){g0=vTa;break a}}var wTa=h0.match("("+g.Wf(tTa).join("|")+")");g0=wTa?tTa[wTa[0]]:0}else g0=void 0}var EC=g0,DC=0<=EC;var ava={RED:"red",gga:"white"};var hva={l0:"adunit",k5:"detailpage",A5:"editpage",D5:"embedded",I5:"embedded_unbranded",m8:"leanback",Wba:"previewpage",Zba:"profilepage",Mea:"unplugged",Nba:"playlistoverview",Hda:"sponsorshipsoffer",tda:"shortspage"};iua.prototype.ob=function(a){return"true"===this.flags[a]};fB.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;gs?a=a||xTa[b]:2.2===EC?a=a||yTa[b]:$r()&&(a=a||zTa[b]);return!!a}; fB.prototype.isTypeSupported=function(a){this.Qa();return this.K?window.cast.receiver.platform.canDisplayType(a):jA(a)}; fB.prototype.Qa=function(){}; var yTa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},zTa={"application/x-mpegURL":"maybe"},xTa={"application/x-mpegURL":"maybe"};var oua=Promise.resolve(),rua=window.queueMicrotask?window.queueMicrotask.bind(window):pua;yB.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});sua(this)}; yB.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Hr(a.url,a.options)}};g.v(zB,g.iv);zB.prototype.add=function(a,b){!this.items[a]&&(b.Yv||b.Iz||b.Gy)&&(this.items[a]=jg(b),this.ea("vast_info_card_add",a))}; zB.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; zB.prototype.get=function(a){return this.items[a]||null}; zB.prototype.isEmpty=function(){return g.ag(this.items)};var MC={F8:1,G8:2,H8:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.v(GB,g.G);GB.prototype.B=function(a,b){if(b){var c;(null==(c=this.j.get(a))?void 0:c.Io)!==b&&this.j.set(a,new KB(b,a))}else this.j.delete(a)}; GB.prototype.load=function(){var a=this,b,c,d,e,f,k,l,m,n,p;return g.B(function(q){switch(q.j){case 1:b=a.j.get(0);g.va(q,2);if(b&&a.u===IB(b.Io)){q.Za(4);break}return g.A(q,JB(a.u?2:0),5);case 5:if(c=q.u)Wta(c,void 0),FB(a,{primary:c,secondary:void 0});case 4:g.wa(q,3);break;case 2:d=g.xa(q);g.Sv(d);if(!a.u){q.Za(3);break}a.u=!1;return g.A(q,a.load(),7);case 7:return q.return();case 3:if(!a.experiments.ob("html5_onesie_probe_ec_hosts")){q.Za(0);break}g.va(q,9);e=a;f=e.B;k=3;return g.A(q,JB(1),11); case 11:return f.call(e,k,q.u),l=a,m=l.B,n=4,g.A(q,JB(2),12);case 12:m.call(l,n,q.u);g.wa(q,0);break;case 9:p=g.xa(q),g.Sv(p),g.ua(q)}})}; GB.prototype.ra=function(){this.D&&(g.Er(this.D),this.D=void 0);g.G.prototype.ra.call(this)}; KB.prototype.start=function(){this.startTimestamp=(0,g.R)()}; KB.prototype.end=function(){this.endTimestamp=(0,g.R)()};var zua=!1,NB,OB,PB,QB,RB;SB.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;dthis.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0}; gC.prototype.Dg=function(){return this.D?(hC(this,this.B-this.D)+hC(this,this.B)+hC(this,this.B+this.D))/3:hC(this,this.B)};g.v(Sua,g.G);var Vua=/^([0-9\.]+):([0-9\.]+)$/;var Zua="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),gva={l1:"cbrand",m1:"cbr",n1:"cbrver",i7:"c",l7:"cver",k7:"ctheme",j7:"cplayer",M$:"cmodel",Aaa:"cnetwork",Waa:"cos",Xaa:"cosver",Fba:"cplatform"};g.v(RC,g.G);g.h=RC.prototype;g.h.S=function(a){return this.experiments.ob(a)}; g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.VC(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.IC(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,gs&&(a=Hja())&&(b.ebc=a));return g.rj(d,b)}; g.h.getVideoEmbedCode=function(a,b,c){a="https://"+g.VC(this)+"/embed/"+a;c&&(a=g.rj(a,{list:c}));c=b.width;b=b.height;a=g.Jh(a);return''}; g.h.supportsGaplessAudio=function(){return g.kA&&!gs&&74<=Bma()||g.Ex&&g.Fc(68)?!0:!1}; g.h.getPlayerType=function(){return this.deviceParams.cplayer}; var nva=["www.youtube-nocookie.com","youtube.googleapis.com"];g.h=kD.prototype;g.h.Bf=function(){return this.j}; g.h.tv=function(){return null}; g.h.uJ=function(){var a=this.tv();return a?(a=g.or(a.j),Number(a.expire)):NaN}; g.h.HH=function(){}; g.h.Yb=function(){return this.j.Yb()}; g.h.getHeight=function(){return this.j.video.height};ova.prototype.ze=function(){rva(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Fc){if(e.Fc.getIsDefault()){c=e.Fc.getId();break a}c||(c=e.Fc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Fc||e.Fc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.r(e),f=e.next();!f.done;f= e.next()){var k=a,l=k.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Fc){p=f.Fc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=mD(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(qva(f,d)+'",URI="'+(q+'"'));l.call(k,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=ATa,d=(k=d.Fc)?'#EXT-X-MEDIA:URI="'+mD(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+k.getId()+'",NAME="'+k.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0f.getHeight())&&c.push(f)}return c}; SD.prototype.J=function(a,b,c,d){return new g.RD(a,b,c,d)};g.v(TD,g.RD);g.h=TD.prototype;g.h.dD=function(){return this.u.getNumberOfSegments()}; g.h.Xy=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a}; g.h.Hp=function(){return this.u.getLastSegmentNumber()}; g.h.eD=function(){return this.u.getFirstSegmentNumber()}; g.h.vJ=function(a){this.u=a};g.v(UD,SD);UD.prototype.u=function(a,b){return SD.prototype.u.call(this,"$N|"+a,b)}; UD.prototype.J=function(a,b,c){return new TD(a,b,c,this.isLive)};g.v(g.WD,g.iv);g.h=g.WD.prototype;g.h.V=function(){return this.B}; g.h.S=function(a){return this.B.S(a)}; g.h.tf=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Rb)||!a.ib)}; g.h.mO=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.mO,this),this.sL(-1))}; g.h.sL=function(a){if(!this.isLivePlayback||!this.N||"fairplay"!=this.N.flavor){var b=Bta(this.j,this.NC);if(0=this.X&&(g.S(Error("durationMs was specified incorrectly with a value of: "+this.X)), this.Hh());this.Tf();this.I.addEventListener("progresssync",this.ma)}; g.h.Hg=function(){CF.prototype.Hg.call(this);this.je("adabandonedreset",!0)}; g.h.Tf=function(){var a=this.I.V();Bx("apbs",void 0,"video_to_ad");g.ox("ad_at","0_0","video_to_ad");CF.prototype.Tf.call(this);this.J=a.S("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.K=this.J+this.X/1E3;g.PC(a)?this.I.Oa("onAdMessageChange",{renderer:this.D.j,startTimeSecs:this.J}):DF(this,[new Gxa(this.D.j)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Lv(),c=this.D.j.videoAdBreakOffsetMsInt64;b&&g.Es("adNotify",{clientScreenNonce:b, adMediaTimeMs:Math.floor(1E3*this.K),timeToAdBreakSec:Math.ceil(this.K-this.J),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.B)if(this.Z=!0,this.I.V().experiments.ob("html5_externally_manage_ad_notify_layout")){b=this.D.j;if(!NF(b)){g.Sv(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.r(this.B.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;fH(d.j(),e);VV(d.j(),e,f)}}else for(a=g.r(this.B.listeners),b=a.next();!b.done;b= a.next())b=b.value,b.u?b.B?T("Received AdNotify started event before another one exited"):(b.B=b.u,fH(b.j(),b.B)):T("Received AdNotify started event without start requested event");g.V(this.I.zb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Lv(),c=this.D.j.videoAdBreakOffsetMsInt64,b&&g.Es("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.K),timeToAdBreakSec:Math.ceil(this.K-this.J),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Hh())}; g.h.Hh=function(){CF.prototype.Hh.call(this);this.je("adended",!0)}; g.h.kh=function(a){g.Sv(Error("Player error during adNotify."));CF.prototype.kh.call(this,a);this.je("aderror",!0)}; g.h.je=function(a,b){(void 0===b?0:b)||g.Sv(Error("TerminateAd directly called from other class during adNotify."));this.I.removeEventListener("progresssync",this.ma);this.Rk();Ixa(this,a);b="adended"===a||"aderror"===a;this.I.V().experiments.ob("html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")&&b?this.ea("adnotifyexitednormalorerror"):this.ea(a)}; g.h.dispose=function(){this.I.removeEventListener("progresssync",this.ma);Ixa(this,void 0);CF.prototype.dispose.call(this)}; g.h.Rk=function(){g.PC(this.I.V())?this.I.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.J}):CF.prototype.Rk.call(this)};TF.prototype.sendAdsPing=function(a){this.C.send(a,Sxa(this),{})}; TF.prototype.Kd=function(a){var b=this;if(a){var c=Sxa(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};UF.prototype.get=function(){return this.value}; g.v(VF,UF);VF.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.v(WF,UF);WF.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"}; g.v(XF,UF);XF.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.v(YF,UF);YF.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.v(ZF,UF);ZF.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.v($F,UF);$F.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.v(aG,UF);aG.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.v(bG,UF);bG.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.v(cG,UF);cG.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.v(dG,UF);dG.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.v(eG,UF);eG.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.v(fG,UF);fG.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.v(gG,UF);gG.prototype.getType=function(){return"metadata_type_ad_video_url"}; g.v(hG,UF);hG.prototype.getType=function(){return"metadata_type_content_cpn"}; g.v(iG,UF);iG.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.v(jG,UF);jG.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; g.v(kG,UF);kG.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"}; g.v(lG,UF);lG.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.v(mG,UF);mG.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.v(nG,UF);nG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.v(oG,UF);oG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.v(pG,UF);pG.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.v(qG,UF);qG.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.v(rG,UF);rG.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.v(sG,UF);sG.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; g.v(tG,UF);tG.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.v(uG,UF);uG.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.v(vG,UF);vG.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.v(wG,UF);wG.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.v(xG,UF);xG.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.v(yG,UF);yG.prototype.getType=function(){return"metadata_type_cue_point"}; g.v(zG,UF);zG.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.v(AG,UF);AG.prototype.getType=function(){return"metadata_type_player_vars"}; g.v(BG,UF);BG.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.v(CG,UF);CG.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.v(DG,UF);DG.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.v(EG,UF);EG.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.v(FG,UF);FG.prototype.getType=function(){return"metadata_type_dai"}; g.v(GG,UF);GG.prototype.getType=function(){return"metadata_type_ad_intro"}; g.v(HG,UF);HG.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.v(IG,UF);IG.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.v(JG,UF);JG.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.v(KG,UF);KG.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.v(LG,UF);LG.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.v(MG,UF);MG.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.v(NG,UF);NG.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.v(OG,UF);OG.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.v(PG,UF);PG.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.v(QG,UF);QG.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.v(RG,UF);RG.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"}; g.v(SG,UF);SG.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.v(TG,UF);TG.prototype.getType=function(){return"metadata_type_survey_overlay"}; g.v(UG,UF);UG.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};Zxa.prototype.Kd=function(a){this.j.Kd(a)};g.v(VG,g.iv);VG.prototype.getProgressState=function(){return this.B}; VG.prototype.start=function(){this.C=Date.now();aya(this,{current:this.j/1E3,duration:this.u/1E3});this.Sb.start()}; VG.prototype.stop=function(){this.Sb.stop()};g.v(WG,PE);g.v(XG,g.iv);XG.prototype.start=function(){this.u||(this.u=!0,this.timer.start(),this.B=Date.now())}; XG.prototype.stop=function(){this.u&&(this.u=!1,this.timer.stop())}; XG.prototype.Qb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.j+=b;this.j>=this.durationMs?(this.j=this.durationMs,this.timer.stop(),this.C(this.j),this.D()):this.C(this.j)};g.v($G,CF);g.h=$G.prototype;g.h.Wr=function(){this.Tf()}; g.h.Tf=function(){var a=this,b=this.D.j;if(g.PC(this.I.V()))cya(this,b),this.Z=Date.now(),this.B&&this.B.start();else if(DF(this,[new WG(b)]),this.D.j.controlWithFixEnabled){var c=1E3*this.D.u;this.K=new XG(c,function(d){var e={current:d/1E3,duration:c/1E3};EF(a,d/1E3);a.I.Oa("onAdPlaybackProgress",e)},function(){var d={current:c/1E3, duration:c/1E3};bya(a);a.I.Oa("onAdPlaybackProgress",d)}); g.H(this,this.K);this.K.start()}YG();CF.prototype.Tf.call(this)}; g.h.getDuration=function(){return this.D.u}; g.h.Do=function(){CF.prototype.Do.call(this);this.B&&this.B.stop()}; g.h.Eo=function(){CF.prototype.Eo.call(this);this.B&&this.B.start()}; g.h.Hg=function(){CF.prototype.Hg.call(this);this.je("adabandoned")}; g.h.tq=function(){CF.prototype.tq.call(this);this.je("adended")}; g.h.kh=function(a){this.I.V().experiments.ob("html5_block_player_errors_while_survey_active")?T("Unexpected Player Error while the Survey is playing."):(CF.prototype.kh.call(this,a),this.je("aderror"))}; g.h.je=function(a){this.Rk();this.ea(a)}; g.h.Df=function(a){switch(a){case "skip-button":this.tq();break;case "survey-submit":this.je("adended")}}; g.h.Rk=function(){g.PC(this.I.V())?(this.B&&this.B.stop(),this.I.Oa("onAdInfoChange",null)):CF.prototype.Rk.call(this)};g.v(aH,PE);g.v(bH,CF);bH.prototype.Wr=function(){this.Tf()}; bH.prototype.Tf=function(){YG();DF(this,[new aH(this.B.j,this.macros)]);CF.prototype.Tf.call(this)}; bH.prototype.Hg=function(){CF.prototype.Hg.call(this);this.je("adabandoned")}; bH.prototype.kh=function(a){CF.prototype.kh.call(this,a);this.je("aderror")};g.v(cH,CF);g.h=cH.prototype;g.h.Ew=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:gxa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}}; g.h.Wr=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Gg();a&&b&&this.I.V().Z.add(b,{Yv:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{uea(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Pg("//tpc.googlesyndication.com/sodar/%{path}");g.Sv(new g.Js("Load Sodar Error.",d instanceof Ng,d.constructor===Ng,{Message:e.message,"Escaped injector basename":g.Jh(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Ng)throw e;}}catch(e){g.S(e)}NE(this.I,!1);a= mxa(this.B);b=this.I.V();a.iv_load_policy=b.isMobile||g.PC(b)||g.aD(b)?3:1;b=this.I.getVideoData(1);b.wg&&(a.ctrl=b.wg);b.Ng&&(a.ytr=b.Ng);b.hm&&(a.ytrcc=b.hm);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.wi&&(a.vss_credentials_token_type=b.wi),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.X?this.J.start():(this.I.cueVideoByPlayerVars(a,2),this.J.start(),this.I.playVideo(2))}; g.h.Do=function(){CF.prototype.Do.call(this);this.ea("adpause",2)}; g.h.Eo=function(){CF.prototype.Eo.call(this);this.ea("adplay",1)}; g.h.Tf=function(){CF.prototype.Tf.call(this);this.J.stop();this.Z.T(this.I,g.Kw("bltplayback"),this.DR);var a=new g.Iw(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Qd([a],2);a=jH(this);this.D.ya=a;if(this.I.isMuted()){a=this.j;var b=this.I.isMuted();nF(a)||pF(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.K){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=eya(this);for(var c=this.B,d=dya(this),e=g.r(this.K.listeners), f=e.next();!f.done;f=e.next()){f=f.value;var k=b,l=c,m=d,n=[],p=l.Gg(),q=l.getVideoUrl();p&&n.push(new fG(p));q&&n.push(new gG(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new iG(q)),(q=q.elementId)&&n.push(new rG(q))):T("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new jG(p));l.j.adNextParams&&n.push(new XF(l.j.adNextParams||""));(p=l.xa)&&n.push(new YF(p));(p=qw(f.N.get(),2))?(n.push(new bG({channelId:p.sj, channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new cG(p.isListed))):T("Expected meaningful PlaybackData on ad started.");n.push(new eG(l.B));n.push(new zG(l.u));n.push(new hG(a));n.push(new vG({current:this}));p=l.Ia;null!=p.kind&&n.push(new dG(p));(p=l.Ea)&&n.push(new MG(p));void 0!==m&&n.push(new NG(m));f.j?T(f.j.layoutId===k?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):fya(f,k,n,!0,l.j.adLayoutLoggingData)}}this.I.Oa("onAdStart", jH(this));a=g.r(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; g.h.DR=function(a){"bltcompletion"==a.getId()&&(this.I.kf("bltplayback",2),qF(this.j,this.getDuration()),iH(this,"adended"))}; g.h.Hh=function(){CF.prototype.Hh.call(this);this.je("adended");for(var a=g.r(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; g.h.Hg=function(){CF.prototype.Hg.call(this);this.je("adabandoned")}; g.h.VB=function(){var a=this.j;mF(a)||uF(a,"clickthrough");this.C||(a=this.j,mF(a)||uF(a,"unmuted_clickthrough"))}; g.h.Gx=function(){this.tq()}; g.h.tq=function(){CF.prototype.tq.call(this);this.je("adended")}; g.h.kh=function(a){CF.prototype.kh.call(this,a);this.je("aderror")}; g.h.je=function(a){this.J.stop();NE(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");iH(this,a);this.I.Oa("onAdEnd",jH(this));this.ea(a)}; g.h.Rk=function(){var a=this.I.V();g.PC(a)&&(g.aD(a)||a.S("enable_topsoil_wta_for_halftime")||a.S("enable_topsoil_wta_for_halftime_live_infra")||g.PC(a))?this.I.Oa("onAdInfoChange",null):CF.prototype.Rk.call(this)}; g.h.xP=function(){this.vV&&this.I.playVideo()}; g.h.vV=function(){return 2==this.I.getPlayerState(2)}; g.h.PL=function(a,b){if(!Number.isFinite(a))return g.S(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.S(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=mxa(this.B);d=this.I.Es(d,2,c,a,b);a+c>b&&this.I.Lu(d,b-a);return d}; g.h.dispose=function(){gxa(this.I)&&!this.X&&this.I.stopVideo(2);iH(this,"adabandoned");CF.prototype.dispose.call(this)};kH.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={gw:null,rN:-Infinity},b=this.j[b]=c);c=a.startSecs+a.Gu/1E3;if(!(cIE&&(a=Math.max(.1,a)),this.cz(a))}; g.h.stopVideo=function(){!this.B&&this.Cf()&&(FTa&&gs&&0b.j.getCurrentTime(2,!1)&&!b.j.V().S("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad; if(c.Zw()){var d=b.B.I.V().S("html5_dai_enable_active_view_creating_completed_adblock");gia(c.J,d)}b.ad.D.seek=!0}0>AF(a,4)&&!(0>AF(a,2))&&(b=this.j,c=b.j,mF(c)||yF(c,"resume"),b.C||(b=b.j,mF(b)||yF(b,"unmuted_resume")));!this.I.V().experiments.ob("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.BF(a,512)&&!g.DH(a.state)&&qH(this.D)}}}; g.h.onVideoDataChange=function(){return this.daiEnabled?Aya(this):!1}; g.h.resume=function(){this.j&&this.j.xP()}; g.h.Tn=function(){this.j&&this.j.je("adended")}; g.h.Wk=function(){this.Tn()}; g.h.Zi=function(a){this.cg.Zi(a)}; g.h.ER=function(a){this.cg.j.Oa("onAdUxUpdate",a)}; g.h.onAdUxClicked=function(a){this.j.Df(a)}; g.h.bM=function(){return 0}; g.h.cM=function(){return 1}; g.h.sI=function(a){this.daiEnabled&&this.u.J&&this.u.j.start<=a&&a=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Ft()})}; g.h.No=function(){return this.J instanceof dF||this.J instanceof KF}; g.h.gx=function(){return this.J instanceof XE||this.J instanceof IF}; g.h.TO=function(){this.daiEnabled?LE(this.I)&&Aya(this):jza(this)}; g.h.vv=function(a){var b=iza(a);this.J&&b&&this.N!==b&&(b?cAa(this.cg):eAa(this.cg),this.N=b);this.J=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a})); FH.prototype.vv.call(this,a)}; g.h.fG=function(a){var b=this;FH.prototype.fG.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void JH(b)})}; g.h.Wk=function(){this.C=this.B.j.length;this.j&&this.j.je("adended");JH(this)}; g.h.Tn=function(){this.onAdEnd()}; g.h.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Zi(0),a?JH(this,b):jza(this))}; g.h.YN=function(){if(1==this.B.u)this.J instanceof JF&&g.Sv(Error("AdNotify error with FailureMode.TERMINATING")),JH(this);else this.onAdEnd()}; g.h.tA=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0AF(a,16)&&(this.K.forEach(this.GG,this),this.K.clear())}; g.h.UY=function(){if(this.u)this.u.onVideoDataChange()}; g.h.XY=function(){if(LE(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&EF(b.j,a)}}; g.h.cW=function(){this.Ra=!0;if(this.u){var a=this.u;a.j&&a.j.Hg()}}; g.h.oW=function(a){if(this.u)this.u.onAdUxClicked(a)}; g.h.YY=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.I.isMuted();nF(b)||pF(b,c?"mute":"unmute");a.C||(b=a.I.isMuted(),pF(a.j,b?"unmuted_mute":"unmuted_unmute"))}}; g.h.bX=function(a){if(this.u){var b=this.u.j,c=b.j;mF(c)||uF(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,mF(b)||uF(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}}; g.h.Vf=function(a,b){this.j.Vf(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Tp.delete(b),this.B.delete(b)}; g.h.y_=function(){for(var a=[],b=g.r(this.Tp),c=b.next();!c.done;c=b.next())c=c.value,Nw(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||QU(b,"cuerangemarkersupdated",a)}; g.h.Zi=function(a){this.j.Zi(a);switch(a){case 1:this.HA=1;break;case 0:this.HA=0}}; g.h.UH=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.N:!1}; g.h.Tn=function(){this.u&&this.u.yq()&&this.u.Tn()}; g.h.Wk=function(){this.u&&this.u.yq()&&this.u.Wk()}; g.h.aA=function(){}; g.h.Kz=function(){}; g.h.Qb=function(a){if(this.u){var b=this.u;b.j&&EF(b.j,a)}}; g.h.No=function(){return LE(this.j)&&!!this.u&&this.u.No()}; g.h.executeCommand=function(a,b,c){this.ib.executeCommand(a,b,$za(this,void 0===c?null:c))}; g.h.isDaiEnabled=function(){return!1}; g.h.ZL=function(){return this.xa}; g.h.aM=function(){return this.Ea};g.v(kI,g.G);kI.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)}; g.v(lI,kI);g.v(hAa,g.G);var jAa=1;g.v(g.nI,g.G);g.h=g.nI.prototype; g.h.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ga;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.eD&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.$h(a.G);if(c){if(c=oI(this,e,"class",c))pI(this,e,"class",c),this.vb[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.vb[f.value]=e;pI(this,e,"class",d.join(" "))}d=a.oa;c=a.U;if(d)b=oI(this,e,"child",d),void 0!==b&&e.appendChild(g.ai(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f= f.value)if("string"===typeof f)f=oI(this,e,"child",f),null!=f&&e.appendChild(g.ai(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Jb&&(k=mI(),f.id=k,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+k),g.ci(e,f,d++))}if(a=a.W)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],pI(this,b,c,"string"===typeof f? oI(this,b,c,f):f);return e}; g.h.Da=function(a){return this.vb[a]}; g.h.Ba=function(a,b){"number"===typeof b?g.ci(a,this.element,b):a.appendChild(this.element)}; g.h.detach=function(){g.di(this.element)}; g.h.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Na(c,a[c])}; g.h.Na=function(a,b){(a=this.Od["{{"+a+"}}"])&&pI(this,a[0],a[1],b)}; g.h.ra=function(){this.vb={};this.Od={};this.detach();g.G.prototype.ra.call(this)};g.v(g.W,g.nI);g.h=g.W.prototype;g.h.Bd=function(a,b){this.Na(b||"content",a)}; g.h.show=function(){this.ub||(g.Jm(this.element,"display",""),this.ub=!0)}; g.h.hide=function(){this.ub&&(g.Jm(this.element,"display","none"),this.ub=!1)}; g.h.lc=function(a){this.va=a}; g.h.Pa=function(a,b,c){return this.T(this.element,a,b,c)}; g.h.T=function(a,b,c,d){c=(0,g.Ua)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d}; g.h.wc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})}; g.h.focus=function(){var a=this.element;hi(a);a.focus()}; g.h.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.nI.prototype.ra.call(this)};g.v(g.rI,g.W);g.rI.prototype.subscribe=function(a,b,c){return this.Wa.subscribe(a,b,c)}; g.rI.prototype.unsubscribe=function(a,b,c){return this.Wa.unsubscribe(a,b,c)}; g.rI.prototype.Of=function(a){return this.Wa.Of(a)}; g.rI.prototype.ea=function(a){return this.Wa.ea.apply(this.Wa,[a].concat(g.u(g.Da.apply(1,arguments))))};var HTa=new WeakSet;g.v(sI,g.rI);g.h=sI.prototype;g.h.bind=function(a){if(!this.Ra&&a.renderer){var b=Object.assign({},gAa(this.api,this.fb),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()}; g.h.init=function(a,b,c){this.Ra=a;this.element.setAttribute("id",this.Ra);this.ib&&g.M(this.element,this.ib);this.X=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&this.ah(this.element,this.K)}; g.h.clear=function(){}; g.h.hide=function(){g.rI.prototype.hide.call(this);null!=this.K&&this.bb(this.element,!1)}; g.h.show=function(){g.rI.prototype.show.call(this);if(!this.jb){this.jb=!0;var a=this.X&&this.X.impressionCommand;a&&this.EH(a,null)}null!=this.K&&this.bb(this.element,!0)}; g.h.onClick=function(a){if(this.K&&!HTa.has(a)){var b=this.element;this.api.Ho(b)&&this.ub&&this.api.xb(b,this.j);HTa.add(a)}if(a=this.X&&this.X.clickCommand)a=this.bP(a),this.EH(a,this.eM())}; g.h.bP=function(a){return a}; g.h.eM=function(){return null}; g.h.JR=function(a){var b=this.ma;b.K=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.J=iAa(b,a)||1!=a.length;var c=a.item(0);b.J||!c?(b.N=Infinity,b.X=Infinity):(b.N=c.clientX,b.X=c.clientY);for(c=b.B.length=0;cMath.pow(5,2))b.C=!0}; g.h.HR=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&iAa(b,c)&&(b.Z=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}}; g.h.EH=function(a){TI(this.kb,a,this.macros)}; g.h.ah=function(a,b){this.api.ah(a,this);this.api.fk(a,b)}; g.h.bb=function(a,b){this.api.Ho(a)&&this.api.bb(a,b,this.j)}; g.h.ra=function(){this.clear(null);this.wc(this.Ya);for(var a=g.r(this.xa),b=a.next();!b.done;b=a.next())this.wc(b.value);g.rI.prototype.ra.call(this)};g.v(HI,sI); HI.prototype.init=function(a,b,c){sI.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.Sv(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.M(this.element,a);null!=b.text&&(a=g.Pw(b.text),g.nb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.rI({G:"span",L:"ytp-ad-button-text",oa:a}),g.H(this,this.C),this.C.Ba(this.element)));null!=b.icon&&(b=GI(b.icon), null!=b&&(this.B=new g.rI({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.H(this,this.B)),this.D?g.ci(this.element,this.B.element,0):this.B.Ba(this.element))}}; HI.prototype.clear=function(){this.hide()}; HI.prototype.onClick=function(a){sI.prototype.onClick.call(this,a);a=g.r(DAa(this));for(var b=a.next();!b.done;b=a.next())TI(this.kb,b.value,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(II,g.G);II.prototype.ra=function(){this.u&&g.qu(this.u);this.j.clear();JI=null;g.G.prototype.ra.call(this)}; II.prototype.register=function(a,b){b&&this.j.set(a,b)}; var JI=null;g.v(LI,sI); LI.prototype.init=function(a,b,c){sI.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.S(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new HI(this.api,this.fb,this.layoutId,this.j,this.kb),g.H(this,this.button),this.button.init(OE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Pw(a)),this.button.Ba(this.element),this.J&&!g.Bp(this.button.element,"ytp-ad-clickable")&&g.M(this.button.element,"ytp-ad-clickable"), a&&(this.B=new g.rI({G:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.rI({G:"div",L:"ytp-ad-hover-text-callout"}),b.Ba(this.B.element),g.H(this,b)),g.H(this,this.B),this.B.Ba(this.element),b=KI(a),g.ci(this.B.element,b,0)),this.show())}; LI.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();sI.prototype.hide.call(this)}; LI.prototype.show=function(){this.button&&this.button.show();sI.prototype.show.call(this)};g.v(NI,sI);NI.prototype.init=function(a,b,c){sI.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&MI(a)||"";g.nb(b)?(this.api.V().S("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Sv(Error("Found AdImage without valid image URL")):(this.u?g.Jm(this.element,"backgroundImage","url("+b+")"):Wh(this.element,{src:b}),Wh(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())}; NI.prototype.clear=function(){this.hide()};g.v(OI,sI);g.h=OI.prototype;g.h.hide=function(){sI.prototype.hide.call(this);this.C&&this.C.focus()}; g.h.show=function(){this.C=document.activeElement;sI.prototype.show.call(this);this.D.focus()}; g.h.init=function(a,b,c){sI.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.S(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.S(Error("ConfirmDialogRenderer.cancelLabel was not set.")):HAa(this,b):g.S(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.h.clear=function(){g.hv(this.u);this.hide()}; g.h.EG=function(){this.hide()}; g.h.fD=function(){var a=this.B.cancelEndpoint;a&&TI(this.kb,a,this.macros);this.hide()}; g.h.FG=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&TI(this.kb,a,this.macros);this.hide()};g.v(PI,sI);g.h=PI.prototype; g.h.init=function(a,b,c){sI.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.S(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.S(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.M(this.C,a)}a={};b.defaultText? (c=g.Pw(b.defaultText),g.nb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Vm(this.ya,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=GI(b.defaultIcon),this.Na("untoggledIconTemplateSpec",c),b.toggledIcon?(this.N=!0,c=GI(b.toggledIcon),this.Na("toggledIconTemplateSpec",c)):(g.Vm(this.J,!0),g.Vm(this.D,!1)),g.Vm(this.u,!1)):g.Vm(this.Z,!1);g.ag(a)||this.update(a);b.isToggled&& (g.M(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));QI(this);this.T(this.element,"change",this.wJ);this.show()}}; g.h.onClick=function(a){0a&&g.S(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Sa&&g.M(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.ya=null==a||0===a?this.u.Dw():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(OE("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.Gk&&b.thumbnail?this.J.init(OE("ad-image"),b.thumbnail,c):this.N.hide()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.B.hide();this.C.hide();this.J.hide();aJ(this);ZI.prototype.hide.call(this)}; g.h.show=function(){$I(this);this.B.show();this.C.show();this.J.show();ZI.prototype.show.call(this)}; g.h.Xq=function(){this.hide()}; g.h.hp=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ia&&a>=this.ya?(this.Z.hide(),this.Ia=!0,this.ea("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.ya-a)/1E3)),a!=this.Ja&&(YI(this.C,{TIME_REMAINING:String(a)}),this.Ja=a)))}};g.v(fJ,ZI);g.h=fJ.prototype; g.h.init=function(a,b,c){ZI.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0=this.ya&&(aJ(this),g.Dp(this.element,"ytp-flyout-cta-inactive"))}}; g.h.Xq=function(){this.clear()}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.yJ.bind(this))}; g.h.show=function(){this.B&&this.B.show();ZI.prototype.show.call(this)}; g.h.hide=function(){this.B&&this.B.hide();ZI.prototype.hide.call(this)}; g.h.yJ=function(a){"hidden"==a?this.show():this.hide()};g.v(gJ,sI);g.h=gJ.prototype;g.h.init=function(a,b,c){sI.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(OE("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(OE("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.T(this.element,"change",this.zJ),this.D.show(100),this.show(),a=g.r(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())TI(this.kb,b.value,this.macros)}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.C.hide();this.B.hide();sI.prototype.hide.call(this)}; g.h.show=function(){this.C.show();this.B.show();sI.prototype.show.call(this)}; g.h.zJ=function(){tia(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Oa("onYtShowToast",this.u.postMessageAction);this.D.hide()}; g.h.onClick=function(a){0=this.N&&WAa(this,!0)};g.v(kJ,HI);kJ.prototype.init=function(a,b,c){HI.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Pw(b.text),a=!g.nb(a));a?null==b.navigationEndpoint?g.Sv(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Sv(Error("Button style was not a link-style type in renderer,")):this.show():g.Sv(Error("No visit advertiser text was present in the renderer."))};g.v(lJ,sI);lJ.prototype.init=function(a,b,c){sI.prototype.init.call(this,a,b,c);a=b.text;g.nb(tI(a))?g.Sv(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new XI(this.api,this.fb,this.layoutId,this.j,this.kb),a.init(OE("simple-ad-badge"),b,c),a.Ba(this.element),g.H(this,a)),this.show())}; lJ.prototype.clear=function(){this.hide()};g.v(mJ,PE);g.v(nJ,g.iv);g.h=nJ.prototype;g.h.Dw=function(){return this.durationMs}; g.h.stop=function(){this.j&&this.Mc.wc(this.j)}; g.h.Qb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")}; g.h.getProgressState=function(){return this.u}; g.h.Tc=function(a){g.BF(a,2)&&this.ea("g")};g.v(oJ,g.iv);g.h=oJ.prototype;g.h.Dw=function(){return this.durationMs}; g.h.start=function(){this.u||(this.u=!0,this.timer.start())}; g.h.stop=function(){this.u&&(this.u=!1,this.timer.stop())}; g.h.Qb=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.fb&&this.fb.Qb(this.B.current);this.ea("h");a&&this.ea("g")}; g.h.getProgressState=function(){return this.B};g.v(rJ,ZI);g.h=rJ.prototype;g.h.init=function(a,b,c){ZI.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){jr(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new XI(this.api,this.fb,this.layoutId,this.j,this.kb);this.B.init(OE("ad-text"),a,{});this.B.Ba(this.element);g.H(this,this.B)}this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){aJ(this);ZI.prototype.hide.call(this)}; g.h.Xq=function(){this.hide()}; g.h.hp=function(){if(null!=this.u){var a=this.u.getProgressState();if(null!=a&&null!=a.current&&this.B){a=(this.u instanceof nJ?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof oJ?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.pJ(a);YI(this.B,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}}; g.h.show=function(){$I(this);ZI.prototype.show.call(this)};g.v(sJ,XI);sJ.prototype.onClick=function(a){XI.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(xJ,g.rI);xJ.prototype.Qb=function(){var a=this.u.getProgressState();this.Ic.style.width=100*wJ(new tJ(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; xJ.prototype.onStateChange=function(){g.IC(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Qb,this),this.Qb()):-1!==this.j&&(this.hide(),this.u.Of(this.j),this.j=-1))};g.v(yJ,sI); yJ.prototype.init=function(a,b,c,d){sI.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new jJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,this.J),c.Ba(this.D),c.init(OE("skip-button"),a.skipAdRenderer,this.macros),g.H(this,c)):a.adPreviewRenderer&&(c=new dJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,!1),c.Ba(this.D),c.init(OE("ad-preview"),a.adPreviewRenderer,this.macros),eJ(c),g.H(this,c)));b.brandInteractionRenderer&&(a= b.brandInteractionRenderer.brandInteractionRenderer,c=new gJ(this.api,this.fb,this.layoutId,this.j,this.kb),c.Ba(this.Z),c.init(OE("instream-user-sentiment"),a,this.macros),g.H(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new fJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u),g.H(this,c),c.Ba(this.N),c.init(OE("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a= {text:{text:"Anuncio",isTemplated:!1}}),c=new lJ(this.api,this.fb,this.layoutId,this.j,this.kb,!0),g.H(this,c),c.Ba(this.B),c.init(OE("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 rJ(this.api,this.fb,this.layoutId,this.j,this.kb,this.u,d),g.H(this,d),d.Ba(this.B),d.init(OE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&& (d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new WI(this.api,this.fb,this.layoutId,this.j,this.kb,this.element),g.H(this,a),a.Ba(this.B),a.init(OE("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=YAa(this)&&this.C?this.C:this.B))&&(a=new kJ(this.api,this.fb,this.layoutId,this.j,this.kb),g.H(this,a),a.Ba(d),a.init(OE("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!FC(b)&& "3"==b.controlsType&&(b=new xJ(this.api,this.u),b.Ba(this.ya),g.H(this,b));this.api.V().S("enable_updated_html5_player_focus_style")&&g.M(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; yJ.prototype.clear=function(){this.hide()};g.Ka("yt.pubsub.publish",g.Lu,void 0);var FJ=Symbol("injectionDeps");DJ.prototype.toString=function(){return"InjectionToken("+this.name+")"}; fBa.prototype.resolve=function(a){return a instanceof EJ?GJ(this,a.key,[],!0):GJ(this,a,[])};var YJ;var OJ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var y0={},jBa=(y0.WEB_UNPLUGGED="^unplugged/",y0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",y0.WEB_UNPLUGGED_OPS="^unplugged/",y0.WEB_UNPLUGGED_PUBLIC="^unplugged/",y0.WEB_CREATOR="^creator/",y0.WEB_KIDS="^kids/",y0.WEB_EXPERIMENTS="^experiments/",y0.WEB_MUSIC="^music/",y0.WEB_REMIX="^music/",y0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",y0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",y0);LJ.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?OJ:c;var d={context:g.PH(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.IJ(this.B());var k;(a=null==(f=a.commandMetadata)?void 0:null==(k=f.webCommandMetadata)?void 0:k.apiUrl)&&(b=a);f=lBa(JJ(b),void 0);d={input:f,jr:KJ(f),ql:d,config:Object.assign({},void 0)};d.config.Yp?d.config.Yp.identity=c:d.config.Yp={identity:c};return d}g.S(new g.Js("Error: Failed to create Request from Command.",a))}; fa.Object.defineProperties(LJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(MJ,LJ);MJ.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",jr:KJ("/getDatasyncIdsEndpoint","GET"),ql:{}}}; MJ.prototype.B=function(){return[]}; MJ.prototype.j=function(){}; MJ.prototype.u=function(){};var ITa={},mBa=(ITa.GET_DATASYNC_IDS=HJ(MJ),ITa);var rBa=["consistency","mss","client_location","entities","store"];g.v(QJ,LJ);QJ.prototype.B=function(){return YSa}; QJ.prototype.j=function(a){return a.subscribeEndpoint}; QJ.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; fa.Object.defineProperties(QJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(RJ,LJ);RJ.prototype.B=function(){return ZSa}; RJ.prototype.j=function(a){return a.unsubscribeEndpoint}; RJ.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; fa.Object.defineProperties(RJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(SJ,LJ);SJ.prototype.B=function(){return VSa}; SJ.prototype.j=function(a){return a.feedbackEndpoint}; SJ.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; fa.Object.defineProperties(SJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(TJ,LJ);TJ.prototype.B=function(){return WSa}; TJ.prototype.j=function(a){return a.modifyChannelNotificationPreferenceEndpoint}; TJ.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(UJ,LJ);UJ.prototype.B=function(){return XSa}; UJ.prototype.j=function(a){return a.playlistEditEndpoint}; UJ.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(VJ,LJ);VJ.prototype.B=function(){return USa}; VJ.prototype.j=function(a){return a.webPlayerShareEntityServiceEndpoint}; VJ.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var eBa=new DJ("NETWORK_SLI_TOKEN");WJ.prototype.fetch=function(a,b){var c=this,d,e;return g.B(function(f){c.j&&(d=Wi(g.Yi(5,uj(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.Q("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Sv(k)}))):f.return(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Sv(k)}))})}; WJ.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}); a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.failure(),b=b.then(function(c){g.Sv(new g.Js("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})})); return b}; WJ[FJ]=[new EJ];var tBa=new DJ("NETWORK_MANAGER_TOKEN");var XJ;kK.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.Tt)f.onreadystatechange=function(p){c.Tt(f,p)}; var k;f.open(null!=(k=b.method)?k:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){k=g.r(Object.entries(b.headers));for(var l=k.next();!l.done;l=k.next()){var m=g.r(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})}; kK.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Sv(new g.Js("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.Sv(new g.Js("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var vBa=[],lK=!1;mK.getInstance=function(){var a=g.La("ytglobal.storage_");a||(a=new mK,g.Ka("ytglobal.storage_",a,void 0));return a}; mK.prototype.estimate=function(){var a,b,c;return g.B(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(yBa()):d.return()})}; g.Ka("ytglobal.storageClass_",mK,void 0);Cs.prototype.Rj=function(a){this.handleError(a)}; Cs.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Q("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Q("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":ABa(this,b);break;case "TRANSACTION_ENDED":this.B&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({}, b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.h=BBa.prototype; g.h.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(f=a.interpreterSafeScript,e=g.Pg("From proto message. b/166824318"),f=f.privateDoNotAccessOrElseSafeScriptWrappedValue||"",Og(e),Og(e),e=(e=Kg())?e.createScript(f):f,e=(new Rg(e,Qg)).toString());a.interpreterSafeUrl&&(d=a.interpreterSafeUrl,d=pba(g.Pg("From proto message. b/166824318"),d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString()); DBa(this,e,d,a.program,b,c)}else g.Sv(Error("Cannot initialize botguard without program"))}; g.h.isInitialized=function(){return!!this.j}; g.h.getState=function(){return this.state}; g.h.invoke=function(a){a=void 0===a?{}:a;if(this.j){var b=this.j;a={dw:a};if(b.j)throw Error("Already disposed");b=b.B([a.dw,a.RZ])}else b=null;return b}; g.h.dispose=function(){EBa(this,null);this.state=8};var oK,qK;g.nK=new BBa;oK=0;qK=[];var IBa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var SBa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},TBa={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"},UBa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},RBa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},PBa={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"},QBa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};xK.prototype.getState=function(){return this.store.getState()}; xK.prototype.dispatch=function(a){return this.store.dispatch(a)}; xK.prototype.subscribe=function(a){return this.store.subscribe(a)}; xK.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)}; xK.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var gCa={captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,mainPlaylistEntity:306,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersVisibilityOverrideEntity:312,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242, pinnedProductEntity:273,playbackData:119,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},fCa={},JTa=g.r(Object.entries(gCa)),z0=JTa.next();!z0.done;z0=JTa.next()){var KTa=g.r(z0.value),LTa=KTa.next().value,MTa=KTa.next().value,NTa=LTa,OTa=MTa;OTa&&(fCa[OTa]=NTa)};var A0;A0={};g.PTa=(A0.INVALID_ENCODER_VERSION="Invalid encoder version",A0.KEY_CREATION_FAILED="Failed to create encoder key",A0.UNKNOWN_DECODE_ERROR="Failed to decode PES data",A0.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",A0.WRONG_DATA_TYPE="Encoder cannot process the data type",A0);var ZBa; ZBa=function(a){for(var b=Object.keys(a),c={},d=0;d=c.Db.length)c=!1;else{d=g.r(c.Db);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof nD)){c=!1;break a}var f=a.Fc.getId();e.B&&(pva(e.B,f),e.u=null)}c.Fk=a;c=!0}c&&lU(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.Aa("hlsaudio",{id:a.id}))}}}}; g.h.rU=function(){return this.getAvailableAudioTracks()}; g.h.getAvailableAudioTracks=function(){return g.iL(this.app,this.playerType).getAvailableAudioTracks()}; g.h.getMaxPlaybackQuality=function(){var a=g.iL(this.app,this.playerType);return a&&a.getVideoData().u?Nx(a.Pe?DJa(a.Lg,a.Pe,a.jt()):VD):"unknown"}; g.h.getUserPlaybackQualityPreference=function(){var a=g.iL(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.h.getSubtitlesUserSettings=function(){var a=g.BL(this.app.tb());return a?a.EU():null}; g.h.resetSubtitlesUserSettings=function(){g.BL(this.app.tb()).BZ()}; g.h.setMinimized=function(a){this.app.setMinimized(a)}; g.h.setInlinePreview=function(a){this.app.setInlinePreview(a)}; g.h.setGlobalCrop=function(a){this.app.eb().setGlobalCrop(a)}; g.h.getVisibilityState=function(){var a=this.Te();return this.app.getVisibilityState(this.Ef(),this.isFullscreen()||FC(this.app.V()),a,this.isInline(),this.app.Ht(),this.app.Dt())}; g.h.isMutedByMutedAutoplay=function(){return this.app.qx}; g.h.isInline=function(){return this.app.isInline()}; g.h.setInternalSize=function(a,b){this.app.eb().setInternalSize(new g.Eh(a,b))}; g.h.rd=function(){var a=g.iL(this.app,void 0);return a?a.rd():0}; g.h.Te=function(){return this.app.Te()}; g.h.Ef=function(){var a=g.iL(this.app,this.playerType);return!!a&&a.Ef()}; g.h.isFullscreen=function(){return this.app.isFullscreen()}; g.h.setSafetyMode=function(a){this.app.V().enableSafetyMode=a}; g.h.canPlayType=function(a){return this.app.canPlayType(a)}; g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.S("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.oL(b).videoId||(a.index=b.index)):WU(this.app,{list:a.list,index:a.index,playlist_length:d.length});qL(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.h.updateVideoData=function(a,b){var c=g.iL(this.app,this.playerType||1);c&&g.ZD(c.getVideoData(),a,b)}; g.h.updateEnvironmentData=function(a){NC(this.app.V(),a,!1)}; g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; g.h.setCardsVisible=function(a,b,c){var d=g.KL(this.app.tb());d&&d.Lh()&&d.setCardsVisible(a,b,c)}; g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)}; g.h.setInline=function(a){this.app.setInline(a)}; g.h.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.h.getVideoAspectRatio=function(){return this.app.eb().getVideoAspectRatio()}; g.h.getPreferredQuality=function(){var a=g.iL(this.app);return a?a.getPreferredQuality():"unknown"}; g.h.setPlaybackQualityRange=function(a,b){var c=g.iL(this.app,this.playerType);c&&(a=g.Kx(a,b||a,!0,"m"),g.vMa(c,a,!0))}; g.h.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)}; g.h.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.h.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)}; g.h.dispatchReduxAction=function(a){g.B0.dispatch(a)}; g.h.ea=function(a){var b=g.Da.apply(1,arguments);this.app.V().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.pm.ea.apply(this.app.pm,[a].concat(g.u(b)));this.app.Um.ea.apply(this.app.Um,[a].concat(g.u(b)))}; g.h.Oa=function(a){var b=g.Da.apply(1,arguments);this.app.pm.ea.apply(this.app.pm,[a].concat(g.u(b)));this.app.Um.ea.apply(this.app.Um,[a].concat(g.u(b)))}; g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.h.logImaAdEvent=function(a,b){this.app.V().eh&&KU(this.app).allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Cca(this.app.V().loaderUrl),eventType:a},g.Es("embedsAdEvent",a))}; g.h.S=function(a){return this.app.V().S(a)}; g.h.Qa=function(){}; g.h.ra=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.J={};g.G.prototype.ra.call(this)};g.v(ZK,TK);g.h=ZK.prototype;g.h.addCueRange=function(a,b,c,d,e){return kV(this.app,a,b,c,d,e)}; g.h.getPlayerState=function(a){return gNa(this.app,a)}; g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)}; g.h.previousVideo=function(a){this.app.previousVideo(a)}; g.h.seekBy=function(a,b,c){mV(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)}; g.h.seekTo=function(a,b,c,d){mV(this.app,a,b,c,d||this.playerType)}; g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.h.yA=function(a){a=void 0===a?this.playerType:a;var b=TK.prototype.yA.call(this,a)||{};if(a=g.iL(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isLive=a.isLivePlayback;b.isPremiere=a.isPremiere;b.isWindowedLive=a.fh;b.isManifestless=cE(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;b.itct=a.Xa;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)? 0:c.utcTimeMillis)?Mh(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Mh(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.ZQ;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=Ywa(a);b.paidContentOverlayDurationMs=oE(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.j&&Px(a.j)&&(b.usingLocalMedia= "true");gE(a)&&(b.isEncrypted=!0);if(a.C)for(e=g.r(a.C.videoInfos),c=e.next();!c.done;c=e.next())if(d=void 0,null==(d=c.value.video)?0:d.isHdr()){b.isHdr=!0;break}var f,k;b.isMultiChannelAudio=!!(null==(f=a.J)?0:null==(k=f.audio)?0:k.isMultiChannelAudio())}return b}; g.h.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):TK.prototype.getCurrentTime.call(this)}; g.h.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=cL(this.app.tb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):TK.prototype.getDuration.call(this)}; g.h.getProgressState=function(a){if(3===this.getPresentingPlayerType())return cL(this.app.tb()).getProgressState();var b=this.app.getVideoData(),c=(g.iL(this.app,a)||g.iL(this.app)).getPlayerType();a:{var d=this.app.getVideoData();var e;if(null==(e=d.progressBarStartPosition)?0:e.utcTimeMillis)if(d=Number(d.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=qCa(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null==(f=e.progressBarEndPosition)?0:f.utcTimeMillis)if(f=Number(e.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(f)){f=qCa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var k=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.kt(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.iL(p,c))?(c=TU(p,c),c=eV(p,EP(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.tf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:k,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}}; g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; g.h.getCurrentBroadcastId=function(){return null}; g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.XK(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,k)}; g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.XK(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)}; g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)}; g.h.showControls=function(){var a=g.XK(this);a&&a.showControls(!0)}; g.h.hideControls=function(){var a=g.XK(this);a&&a.showControls(!1)}; g.h.getVideoContentRect=function(a){a=this.app.eb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}}; g.h.setFauxFullscreen=function(a){g.bv();this.app.hj(a?2:0)}; g.h.toggleFullscreen=function(){function a(c){g.Sv(c)} var b=this.app.V();if(b.externalFullscreen){if(!g.bD(b))return this.isFullscreen()?dv(window.document.documentElement):av(window.document.documentElement).catch(a)}else if(g.bv()||b.D)return this.isFullscreen()?dv(cv()):"3"!==b.controlsType&&g.bv()?av(this.app.eb().element).catch(a):(b=this.app.yd().Je())?av(b).catch(a):Promise.reject(Error("Media element missing"));this.Oa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.h.cancelPlayback=function(){var a=GL(this.app.tb());a&&a.created&&a.destroy();(a=g.iL(this.app))&&a.stopVideo();(a=this.app.tb().Md.get("endscreen"))&&a.pV()&&g.bL(this.app.Ua,!0)}; g.h.stopVideo=function(){var a=this.app.V();!a.S("disable_new_pause_state3")&&XC(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():TK.prototype.stopVideo.call(this)}; g.h.getVideoStats=function(){return g.iL(this.app,this.playerType).Nb(!0)}; g.h.toggleSubtitles=function(){var a=g.BL(this.app.tb());a&&a.j_()}; g.h.getDebugText=function(a){return this.app.getDebugText(a)}; g.h.setSphericalProperties=function(a){if(a){var b=g.eL(this.app.tb());b&&b.setSphericalProperties(a,!0)}}; g.h.getSphericalProperties=function(){var a=g.eL(this.app.tb());return a?a.getSphericalProperties():{}}; g.h.setVolume=function(a,b){lCa(this,a,b)}; g.h.mute=function(a){mCa(this,a)}; g.h.unMute=function(a){nCa(this,a)}; g.h.mutedAutoplay=function(){this.S("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()}; g.h.loadModule=function(a){if("annotations_module"===a){var b=g.KL(this.app.tb());b&&!b.loaded&&b.load()}TK.prototype.loadModule.call(this,a)}; g.h.unloadModule=function(a){if("annotations_module"===a){var b=g.KL(this.app.tb());b&&b.loaded&&b.unload()}TK.prototype.unloadModule.call(this,a)}; g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.tb();switch(a){case "ad":return(a=GL(d))&&a.zf&&a.zf(b,c);case "kids":return(a=HL(d))&&a.zf(b,c);case "remote":return(a=cL(d))&&a.zf(b,c);case "unplugged":return(a=g.IL(d))&&a.zf(b,c);case "annotations_module":return(a=g.KL(d))&&a.zf(b,c);case "creatorendscreen":return(a=LL(d))&&a.zf(b,c)}return TK.prototype.setOption.call(this,a,b,c)}; g.h.getOptions=function(a){var b=this.app.tb();switch(a){case "ad":return(b=GL(b))&&b.getOptions&&b.getOptions();case "remote":return(b=cL(b))&&b.getOptions();case "annotations_module":return(b=g.KL(b))&&b.getOptions();case "creatorendscreen":return(b=LL(b))&&b.getOptions();case "unplugged":return(b=g.IL(b))&&b.getOptions();case "kids":return(b=HL(b))&&b.getOptions()}if(!a){a=TK.prototype.getOptions.call(this);if(!a)return a;GL(b)&&a.push("ad");cL(b)&&a.push("remote");g.KL(b)&&a.push("annotations_module"); LL(b)&&a.push("creatorendscreen");g.IL(b)&&a.push("unplugged");HL(b)&&a.push("kids");return a}return TK.prototype.getOptions.call(this,a)}; g.h.getPlayerSize=function(){var a=this.app.eb().getPlayerSize();return{width:a.width,height:a.height}}; g.h.wakeUpControls=function(){var a=g.XK(this);a&&a.Hl()}; g.h.setCenterCrop=function(a){this.app.eb().setCenterCrop(a)}; g.h.getLoopVideo=function(){return this.app.getLoopVideo()}; g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)}; var oCa="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), pCa="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.$K,ZK);g.h=g.$K.prototype;g.h.qk=function(a,b,c,d,e,f){return this.app.qk(a,b,c,d,e,f)}; g.h.zw=function(){return this.app.zw()}; g.h.lq=ca(4);g.h.tb=function(){return this.app.tb()}; g.h.Be=function(){var a=this.tb().Md.get("endscreen");return!!a&&a.Be()}; g.h.getRootNode=function(){return this.eb().element}; g.h.V=function(){return this.app.V()}; g.h.nt=ca(6);g.h.bl=function(a){return this.app.bl(a)}; g.h.Bo=function(){return this.settingsMenu}; g.h.Mw=function(){return this.gD}; g.h.zb=function(a){return this.app.zb(a)}; g.h.eb=function(){return this.app.eb()}; g.h.getPlaylist=function(){return this.app.getPlaylist()}; g.h.getVideoData=function(a){var b=g.iL(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Ad))b=void 0;else{var d=a.getCurrentTime();b=b.Qn?void 0:null==(c=WP(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c}; g.h.jh=function(a){return this.app.jh(a)}; g.h.isWidescreen=function(){return this.app.isWidescreen()}; g.h.isHdr=function(){var a=g.iL(this.app);return a?a.isHdr():!1}; g.h.ex=function(){return this.app.ex()}; g.h.Au=function(a){this.app.Au(a)}; g.h.Wf=function(a,b,c,d,e){this.app.Xe(a,b,c,d,e)}; g.h.Fl=ca(10);g.h.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){cL(this.app.tb()).xl("control_play");return}if(2===this.getPresentingPlayerType()){var b=GL(this.app.tb());if(b&&(b.No()||IRa(b)))return}}catch(c){g.S(c)}this.app.playVideo(a)}; g.h.stopVideo=function(a){g.iL(this.app,a).stopVideo()}; g.h.Wm=function(a){g.iL(this.app,a).Wm()}; g.h.addEventListener=function(a,b){this.app.Um.subscribe(a,b)}; g.h.removeEventListener=function(a,b){this.app.Um.unsubscribe(a,b)}; g.h.ea=function(a){ZK.prototype.ea.call.apply(ZK.prototype.ea,[this,a].concat(g.u(g.Da.apply(1,arguments))))}; g.h.Zi=function(a){this.app.Zi(a)}; g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)}; g.h.ao=function(){var a={},b=g.iL(this.app).ao();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a}; g.h.Jw=ca(12);g.h.XB=function(a){this.app.XB(a);a&&rNa(this.app,a)}; g.h.getDebugText=function(a){return this.app.getDebugText(a)}; g.h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.isLivePlayback||(k=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,k,b,c)}; g.h.Kw=ca(14);g.h.Xj=ca(18);g.h.Nt=function(a,b){this.tb().Nt(a,b)}; g.h.Lh=function(){var a=g.KL(this.tb());return!!a&&a.Lh()}; g.h.Qk=function(){var a=g.KL(this.tb());return!!a&&a.Qk()}; g.h.setCardsVisible=function(a,b,c){var d=g.KL(this.tb());d&&d.setCardsVisible(a,b,c)}; g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)}; g.h.wu=ca(19);g.h.Er=function(){var a=g.iL(this.app);a&&a.Er()}; g.h.iy=function(a){this.Oa("onVideoAreaChange");this.Oa(a?"onShowControls":"onHideControls")}; g.h.Jj=function(a,b){var c=g.XK(this);if(c)return c.Jj(a,b);a=this.app.eb().Fg();return new g.Em(0,0,a.width,a.height)}; g.h.Co=function(){return this.app.Co()}; g.h.bx=function(){var a=this.tb().Md.get("heartbeat");return!!a&&a.bx()}; g.h.tf=function(){var a=this.V();if(a.va||a.disableSeek)return!1;a=g.iL(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.sE(b)||2===this.getPresentingPlayerType()&&!this.app.oe()||a.Dm()&&3!==this.getPresentingPlayerType()?!1:!0}; g.h.Xw=function(){var a;return(null==(a=g.iL(this.app))?void 0:a.Xw)||!1}; g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.h.qp=function(){var a=g.iL(this.app);a&&a.qp()}; g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)}; g.h.Qd=function(a,b,c){this.app.Rv(a,b,c)}; g.h.Vf=function(a,b){this.app.SB(a,b)}; g.h.kf=function(a,b){var c=this.app,d=g.iL(c,b);d&&(a=d.Ag.kf(a),b&&c.getPresentingPlayerType()!==b||QU(c,"cuerangesremoved",a))}; g.h.Ie=function(a,b){(b=g.iL(this.app,b))&&b.Ie(a)}; g.h.Dm=function(){var a=g.iL(this.app,void 0);return a?a.Dm():!0}; g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)}; g.h.setVolume=function(a){a=g.yh(a,0,100);VK(this.app,{volume:a,muted:this.isMuted()},!0)}; g.h.mute=function(){VK(this.app,{muted:!0,volume:this.getVolume()},!0)}; g.h.unMute=function(){VK(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)}; g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)}; g.h.getLoopVideo=function(){return this.app.getLoopVideo()}; g.h.yd=function(){return this.app.yd()}; g.h.Ji=function(){return this.app.Ji()}; g.h.ih=function(a){return this.app.ih(a)}; g.h.getBandwidthEstimate=function(){return lC(this.V().schedule)}; g.h.Bb=function(a,b,c,d){this.V().Ra&&this.app.Lo.Bb(a,b,c,void 0===d?!1:d)}; g.h.ah=function(a,b,c){this.V().Ra&&this.app.Lo.ah(a,b,void 0===c?!1:c)}; g.h.fk=function(a,b){this.V().Ra&&this.app.Lo.fk(a,b)}; g.h.xb=function(a,b){this.V().Ra&&this.app.Lo.click(a,b)}; g.h.bb=function(a,b,c){if(this.V().Ra){var d=this.app.Lo;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Lv(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.$v(e,[f]):g.aw(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Xv(e,f,c),d.B.add(a))}}; g.h.Ho=function(a){return this.V().Ra?this.app.Lo.Ho(a):!1}; g.h.Lc=function(){return g.iL(this.app)}; g.h.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)}; g.h.Vm=function(){this.app.Vm()}; g.h.Nn=function(a,b){return this.app.Nn(a,b)}; g.h.El=function(a){this.app.El(a)}; g.h.iG=function(){this.app.iG()}; g.h.Es=function(a,b,c,d,e,f){return this.app.Es(a,b,c,d,e,f)}; g.h.Vw=function(a,b,c,d,e,f){return this.app.Vw(a,b,c,d,e,f)}; g.h.ep=function(a){this.app.ep(a)}; g.h.cq=function(a,b){b=void 0===b?Infinity:b;this.app.cq(void 0===a?-1:a,b)}; g.h.Lu=function(a,b,c){this.app.Lu(a,b,c)}; g.h.qo=function(){return this.app.qo()}; g.h.Vz=function(a,b,c){this.app.Vz(a,b,void 0===c?0:c)}; g.h.Jt=function(){return this.app.Jt()}; g.h.clearQueue=function(){this.app.clearQueue()}; g.h.oe=function(){return this.app.oe()}; g.h.Qo=function(a,b,c){return this.app.Qo(a,b,c)}; g.h.Aa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.iL(this.app,d))||e.Aa(a,b,c)}; g.h.eC=function(){return this.app.eC()}; g.h.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)}; g.h.zG=function(a,b){this.ea("aduxmouseover",a,b)}; g.h.yG=function(a,b){this.ea("aduxmouseout",a,b)}; g.h.TG=function(a,b){this.ea("muteadaccepted",a,b)}; g.h.OA=function(){return this.app.eb().OA()}; g.h.Bu=function(a){this.app.eb().Bu(a)};jL.prototype.DG=function(){this.u=(0,g.R)()}; jL.prototype.reset=function(){this.j=this.u=NaN}; jL.prototype.HG=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()([^<>]+)<\/a>/;g.v(aM,g.gA);aM.prototype.rg=function(){bDa(this)}; aM.prototype.onVideoDataChange=function(){var a=this,b=this.I.getVideoData();if(b.isValid()){var c=this.I.V(),d=[],e="";if(!c.N){var f=$Ca(this);c.S("enable_web_media_session_metadata_fix")&&g.JC(c)&&f?(d=aDa(f.thumbnailDetails),f.album&&(e=g.Pw(f.album))):d=[{src:b.Se("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}bDa(this);ZCa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.dL(this.I)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"), b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()}); bM(this,"nexttrack",b);bM(this,"previoustrack",c)}}; aM.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.j),b=a.next();!b.done;b=a.next())bM(this,b.value,null);g.gA.prototype.ra.call(this)};g.v(cM,g.W);g.h=cM.prototype;g.h.onClick=function(a){g.SL(a,this.I,!0);this.I.xb(this.element)}; g.h.onVideoDataChange=function(a,b){dDa(this,b);this.Ld&&eDa(this,this.Ld)}; g.h.Tc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&dDa(this,b);this.j&&eDa(this,a.state);this.Ld=a.state}; g.h.qd=function(){this.C.show();this.I.ea("paidcontentoverlayvisibilitychange",!0);this.I.bb(this.element,!0)}; g.h.Eb=function(){this.C.hide();this.I.ea("paidcontentoverlayvisibilitychange",!1);this.I.bb(this.element,!1)};g.v(dM,g.W);dM.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)}; dM.prototype.onStateChange=function(a){fDa(a.state)?this.j.start():this.hide()}; dM.prototype.u=function(){this.message.style.display="block"};g.v(g.eM,g.rI);g.h=g.eM.prototype;g.h.show=function(){var a=this.og();g.rI.prototype.show.call(this);this.ya&&(this.K.T(window,"blur",this.Eb),this.K.T(document,"click",this.NR));a||this.ea("show",!0)}; g.h.hide=function(){var a=this.og();g.rI.prototype.hide.call(this);gDa(this);a&&this.ea("show",!1)}; g.h.qd=function(a,b){this.u=a;this.X.show();b?(this.N||(this.N=this.K.T(this.I,"appresize",this.WK)),this.WK()):this.N&&(this.K.wc(this.N),this.N=void 0)}; g.h.WK=function(){var a=g.XK(this.I);this.u&&a.Wq(this.element,this.u)}; g.h.Eb=function(){var a=this.og();gDa(this);this.X.hide();a&&this.ea("show",!1)}; g.h.NR=function(a){var b=tu(a);b&&(g.fi(this.element,b)||this.u&&g.fi(this.u,b)||!g.qJ(a))||this.Eb()}; g.h.og=function(){return this.ub&&4!==this.X.state};g.v(gM,g.eM);gM.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(hDa(this),this.qd()):(this.j&&this.xb(),this.Eb()))}; gM.prototype.rg=function(a){this.api.isMutedByMutedAutoplay()&&g.BF(a,2)&&this.Eb()}; gM.prototype.onClick=function(){this.api.unMute();this.xb()}; gM.prototype.xb=function(){this.clicked||(this.clicked=!0,this.api.xb(this.element))};g.v(g.iM,g.gA);g.h=g.iM.prototype;g.h.init=function(){var a=this.api.zb();this.hc(a);this.qn();this.yb()}; g.h.onVideoDataChange=function(a,b){this.aG!==b.videoId&&(this.aG=b.videoId,a=this.Id,a.va=b&&0=b){this.mw=!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.tx-1);02*b&&d<3*b&&(this.mu(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.wu(a)}this.oN=Date.now();this.vP.start()}}; g.h.hY=function(a){if(!kDa(this,a)){if(!jDa(this)&&lM(this,a)&&!this.Sz.isActive()){if(g.bD(this.api.V())&&this.api.zb().isCued()){var b=void 0===b?{}:b;kx();dx();jx();Ww(!1);b.cttAuthInfo&&(Xw().cttAuthInfo=b.cttAuthInfo);$q("TIMING_AFT_KEYS",[]);b.eha?mx({loadType:"hot"}):mx({loadType:"warm"});$q("TIMING_ACTION","");delete g.P("TIMING_INFO",{}).yt_lt;lx("_start",b.startTime,void 0);b=["pbs","pbu"];cx("").info.actionType="watch";b&&$q("TIMING_AFT_KEYS",b);$q("TIMING_ACTION","watch");rra();b=Yw(); var c=$w();if("cold"===b.yt_lt||"cold"===c.loadType){var d=Sw(),e=Zw();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)f in e||lx(f,d[f]);f={};d=!1;e=g.r(Object.keys(b));for(var k=e.next();!k.done;k=e.next())k=k.value,(k=jra(k,b[k]))&&!bra($w(void 0),k)&&(mw(c,k),mw(f,k),d=!0);d&&mx(f)}Ww(!0);b=g.P("TIMING_ACTION",void 0);g.La("ytglobal.timingready_")&&b&&Ax("_start")&&Vqa()&&ara()}hM(this);g.wu(a)}this.mw&&(this.mw=!1)}}; g.h.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Es("embedsRequestStorageAccessResult",{resolved:!0});Xta(!0);Su();window.location.reload()},function(){g.Es("embedsRequestStorageAccessResult",{resolved:!1}); a.Hu()})}; g.h.DA=function(){}; g.h.wr=function(){}; g.h.mu=function(){}; g.h.rP=function(){}; g.h.Hu=function(){var a=this.api.zb();g.V(a,2)&&g.aL(this.api)||(g.BH(a)?this.api.pauseVideo():(this.api.iG(),this.api.playVideo(),this.Ps&&document.activeElement===this.Ps.C.element&&this.api.getRootNode().focus()))}; g.h.iY=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!jM(this,tu(a)))if(a=this.api.V(),this.api.V().S("player_doubletap_to_seek")&&this.mw)this.mw=!1;else if(a.Xa&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Sw(d)})}catch(d){this.Sw(d)}}; g.h.Sw=function(a){String(a).includes("fullscreen error")?g.Sv(a):g.S(a)}; g.h.jY=function(a){lDa(this,.3,a.scale);g.wu(a)}; g.h.kY=function(a){lDa(this,.1,a.scale)}; g.h.yb=function(){var a=this.api.eb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Id.resize();g.O(b,"ytp-fullscreen",this.api.isFullscreen());g.O(b,"ytp-large-width-mode",c);g.O(b,"ytp-small-mode",this.Gf());g.O(b,"ytp-tiny-mode",this.PA());g.O(b,"ytp-big-mode",this.bf());this.Le&&this.Le.resize(a)}; g.h.rg=function(a){this.hc(a.state);this.qn()}; g.h.iF=function(){var a=!!this.aG&&!this.api.Be(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(URa&&c.S("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=GL(this.api.tb());return a&&b.UH()}return a&&(c.xk||this.api.isFullscreen()||c.vb)}; g.h.qn=function(){var a=this.iF();this.rl!==a&&(this.rl=a,g.O(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.h.hc=function(a){var b=a.isCued()||this.api.Dm()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.rI&&this.wc(this.rI),this.rI=this.T(this.api.eb(),"touchstart",this.lY,void 0,b));var c=a.Jc()&&!g.V(a,32)||this.api.bx();OL(this.Id,128,!c);c=3===this.api.getPresentingPlayerType();OL(this.Id,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[v0.ENDED];else d=[],g.V(a,8)?d.push(v0.PLAYING):g.V(a,4)&&d.push(v0.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(v0.BUFFERING),g.V(a,32)&& d.push(v0.SEEKING),g.V(a,64)&&d.push(v0.UNSTARTED);g.uc(this.UD,d)||(g.Ep(c,this.UD),this.UD=d,g.Cp(c,d));d=this.api.V();var e=g.V(a,2);g.O(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.O(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.GF);g.V(a,128)&&!g.AC(d)?(this.Le||(this.Le=new g.XL(this.api),g.H(this,this.Le),g.gL(this.api,this.Le.element,4)),this.Le.u(a.getData()),this.Le.show()):this.Le&&(this.Le.dispose(),this.Le=null)}; g.h.Xk=function(){return this.api.Lh()&&this.api.Qk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Be()?(g.bL(this.api,!0),!0):!1}; g.h.onMutedAutoplayChange=function(a){this.GF=a;this.rj()}; g.h.bf=function(){return!1}; g.h.Gf=function(){return!this.bf()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.h.PA=function(){return this.Gf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.h.Mi=function(){return this.pC}; g.h.Bo=function(){return null}; g.h.Mw=function(){return null}; g.h.Jj=function(){var a=this.api.eb().getPlayerSize();return new g.Em(0,0,a.width,a.height)}; g.h.handleGlobalKeyDown=function(){return!1}; g.h.handleGlobalKeyUp=function(){return!1}; g.h.Wq=function(){}; g.h.showControls=function(a){void 0!==a&&this.api.eb().iy(a)}; g.h.Hl=function(){}; g.h.qM=function(){return null};g.v(mM,g.iv);g.h=mM.prototype;g.h.Dw=function(){return 1E3*this.api.getDuration(this.pk,!1)}; g.h.stop=function(){this.j&&this.Mc.wc(this.j)}; g.h.Qb=function(){var a=this.api.getProgressState(this.pk);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().S("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.pk,!1)};this.ea("h")}; g.h.getProgressState=function(){return this.u}; g.h.Tc=function(a){g.BF(a,2)&&this.ea("g")};g.v(nM,g.W);nM.prototype.onClick=function(){this.I.Oa("BACK_CLICKED")};g.v(g.oM,g.W);g.oM.prototype.show=function(){g.W.prototype.show.call(this);g.vp(this.j)}; g.oM.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)}; g.oM.prototype.wr=function(a){a?g.V(this.I.zb(),64)||pM(this,CI(),"Reproducir"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?pM(this,BAa(),"Detener la reproducci\u00f3n en vivo"):pM(this,xAa(),"Pausa"))};g.v(sM,g.W);g.h=sM.prototype;g.h.qd=function(){this.I.V().S("player_new_info_card_format")&&g.Bp(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.AC(this.I.V())||(this.u.show(),g.Lu("iv-button-shown"))}; g.h.Eb=function(){g.Lu("iv-button-hidden");this.u.hide()}; g.h.og=function(){return this.ub&&4!==this.u.state}; g.h.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)}; g.h.hX=function(){g.Lu("iv-button-mouseover")}; g.h.onClicked=function(a){this.I.Lh();var b=g.Bp(this.I.getRootNode(),"ytp-cards-teaser-shown");g.Lu("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.Qk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(uM,g.W);g.h=uM.prototype;g.h.tQ=function(){this.I.Lh()&&this.I.Qk()&&this.og()&&this.Eb()}; g.h.fI=function(){this.Eb();g.Lu("iv-teaser-clicked",null!=this.j);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; g.h.OR=function(){g.Lu("iv-teaser-mouseover");this.j&&this.j.stop()}; g.h.HY=function(a){this.I.V().S("player_new_info_card_format")&&!g.AC(this.I.V())&&this.Fi.Eb();this.j||!a||this.I.Qk()||this.u&&this.u.isActive()||(this.qd(a),g.Lu("iv-teaser-shown"))}; g.h.qd=function(a){this.Na("text",a.teaserText);this.element.setAttribute("dir",g.Rp(a.teaserText));this.C.show();this.u=new g.L(function(){g.M(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.S("player_new_info_card_format")&&!g.AC(this.I.V())&&this.Fi.Eb();this.CI()},0,this); this.u.start();rM(this.Fi,!1);this.j=new g.L(this.Eb,580+a.durationMs,this);this.j.start();this.D.push(this.Pa("mouseover",this.BJ,this));this.D.push(this.Pa("mouseout",this.AJ,this))}; g.h.CI=function(){if(!this.I.V().S("player_new_info_card_format")&&g.AC(this.I.V())&&this.ub){var a=this.Fi.element.offsetLeft,b=g.Vh("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Fi.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.h.NT=function(){g.AC(this.I.V())&&this.X.Gf()&&this.ub&&this.N.start()}; g.h.BJ=function(){this.J.stop();this.j&&this.j.isActive()&&this.K.start()}; g.h.AJ=function(){this.K.stop();this.j&&!this.j.isActive()&&this.J.start()}; g.h.vX=function(){this.j&&this.j.stop()}; g.h.uX=function(){this.Eb()}; g.h.Si=function(){this.Eb()}; g.h.Eb=function(){!this.j||this.B&&this.B.isActive()||(g.Lu("iv-teaser-hidden"),this.C.hide(),g.Dp(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.L(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.wc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);rM(this.Fi,!0)},330,this),this.B.start())}; g.h.og=function(){return this.ub&&4!==this.C.state}; g.h.ra=function(){var a=this.I.getRootNode();a&&g.Dp(a,"ytp-cards-teaser-shown");g.Af(this.u,this.B,this.j);g.W.prototype.ra.call(this)};var E0={},vM=(E0.BUTTON="ytp-button",E0.TITLE_NOTIFICATIONS="ytp-title-notifications",E0.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",E0.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",E0.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",E0);g.v(wM,g.W); wM.prototype.onClick=function(){this.api.xb(this.element);var a=!this.j;this.Na("label",a?"Dejar de recibir notificaciones sobre todos los videos nuevos":"Recibir notificaciones sobre todos los videos nuevos");this.Na("pressed",a);oDa(this,a)};g.v(g.yM,g.W);g.yM.prototype.u=function(){g.M(this.element,"ytp-sb-subscribed")}; g.yM.prototype.B=function(){g.Dp(this.element,"ytp-sb-subscribed")};g.v(zM,g.W);g.h=zM.prototype;g.h.zH=function(){sDa(this);this.channel.classList.remove("ytp-title-expanded")}; g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.h.RE=function(){if(qDa(this)&&!this.isExpanded()){this.Na("flyoutUnfocusable","false");this.Na("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.bb(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Sh&&a.subscribed&&(this.u.show(),this.api.bb(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.h.uE=function(){this.Na("flyoutUnfocusable","true");this.Na("channelTitleFocusable","-1");this.B&&this.B.start()}; g.h.Ka=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Lb&&!!a.profilePicture:g.AC(b)&&(c=!!a.videoId&&!!a.Lb&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.K&&!(b.D&&200>this.api.getPlayerSize().width));var d=g.iD(this.api.V())+a.Lb;g.AC(b)&&(d=tDa(this,d));var e=a.Lb,f=a.profilePicture;b=g.AC(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var k=this.api.V();e= g.iD(k)+e;g.AC(k)&&(e=tDa(this,e));this.K!==f&&(this.j.style.backgroundImage="url("+f+")",this.K=f);this.Na("channelLink",e);this.Na("channelLogoLabel",g.RF("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:b}));g.M(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.Dp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.bb(this.j,c&&this.va);this.subscribeButton&&(this.subscribeButton.channelId=a.sj);this.Na("expandedTitle",a.expandedTitle);this.Na("channelTitleLink",d);this.Na("expandedSubtitle", a.expandedSubtitle)};g.v(g.AM,g.rI);g.AM.prototype.Lf=function(a){this.Na("label",a)}; g.AM.prototype.Na=function(a,b){g.rI.prototype.Na.call(this,a,b);this.ea("size-change")};g.v(DM,g.rI);DM.prototype.iO=function(){this.ea("size-change")}; DM.prototype.focus=function(){this.content.focus()}; DM.prototype.cO=function(){this.ea("back")};g.v(g.EM,DM);g.EM.prototype.xc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.qc(this.items,a,vDa);if(0<=b)return;b=~b;g.nc(this.items,b,0,a);g.ci(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.SG,this);this.menuItems.ea("size-change")}; g.EM.prototype.lf=function(a){a.unsubscribe("size-change",this.SG,this);this.isDisposed()||(g.hc(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))}; g.EM.prototype.SG=function(){this.menuItems.ea("size-change")}; g.EM.prototype.focus=function(){for(var a=0,b=0;bb.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(k=a,e=b,f=5,65==(f&65)&&(k.x=d.right)&&(f&=-2),132==(f&132)&&(k.y=d.bottom)&& (f&=-5),k.xd.right&&(e.width=Math.min(d.right-k.x,c+e.width-d.left),e.width=Math.max(e.width,0))),k.x+e.width>d.right&&f&1&&(k.x=Math.max(d.right-e.width,d.left)),k.yd.bottom&&(e.height=Math.min(d.bottom-k.y,c+e.height-d.top),e.height=Math.max(e.height,0))),k.y+e.height>d.bottom&&f&4&&(k.y=Math.max(d.bottom-e.height,d.top)));d=new g.Em(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Pm(this.element,new g.Ch(d.left,d.top));g.hv(this.B);this.B.T(document,"contextmenu",this.WW);this.B.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.I,"pageTransition",this.SR)}; g.h.WW=function(a){if(!g.xu(a)){var b=tu(a);g.fi(this.element,b)||this.Eb();this.I.V().disableNativeContextMenu&&g.wu(a)}}; g.h.onFullscreenToggled=function(){this.Eb();CDa(this)}; g.h.SR=function(){this.Eb()};g.v(g.RM,g.W);g.RM.prototype.onClick=function(){var a=this,b,c,d,e;return g.B(function(f){if(1==f.j)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.A(f,EDa(a,e),2);f.u&&DDa(a);a.api.xb(a.element);g.ua(f)})}; g.RM.prototype.Ka=function(){var a=this.api.V(),b=this.api.getVideoData();this.Na("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.Na("title-attr","Copiar v\u00ednculo");var c=this.api.eb().getPlayerSize().width; this.visible=!!b.videoId&&c>=this.u&&b.Hk&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.qI(this,this.visible);TM(this.tooltip);this.api.bb(this.element,this.visible&&this.va)}; g.RM.prototype.lc=function(a){g.W.prototype.lc.call(this,a);this.api.bb(this.element,this.visible&&a)}; g.RM.prototype.ra=function(){g.W.prototype.ra.call(this);g.Dp(this.element,"ytp-copylink-button-visible")};g.v(UM,g.W);g.h=UM.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.vp(this.j)}; g.h.hide=function(){this.u.stop();g.Dp(this.element,"ytp-chapter-seek");g.Dp(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; g.h.mu=function(a,b,c,d){this.nu(a,d)}; g.h.nu=function(a,b){g.xp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.Dp(this.element,"ytp-chapter-seek");this.Na("chapterSeekText","");a=g.RF("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:b.toString()});this.Na("seekTime",a)}; g.h.UB=function(a,b){g.xp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.M(this.element,"ytp-chapter-seek");this.Na("chapterSeekText",b);this.Na("seekTime","")};g.v(VM,g.W);g.h=VM.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.vp(this.u)}; g.h.hide=function(){this.B.stop();g.Dp(this.element,"ytp-chapter-seek");g.Dp(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; g.h.mu=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.xb(e);g.xp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.eb().getPlayerSize().height;e=this.I.eb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var k=2.5*f;f=k/2;var l=this.Da("ytp-doubletap-ripple");l.style.width=k+"px";l.style.height= k+"px";1===a?(a=this.I.eb().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");FDa(this,d)}; g.h.nu=function(a,b){var c=this.I.eb().getPlayerSize();g.xp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.M(this.element,"ytp-time-seeking");this.j.style.width="110px";this.j.style.height="110px";1===a?(this.j.style.right="",this.j.style.left=.8*c.width-30+"px"):-1===a&&(this.j.style.right="",this.j.style.left=.1*c.width-15+"px");this.j.style.top=.5*c.height+15+"px";FDa(this,b)}; g.h.UB=function(a,b){g.xp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.j.style.width="0";this.j.style.height="0";g.M(this.element,"ytp-chapter-seek");this.Na("seekText",b);this.Na("seekTime","")};var STa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(STa).reduce(function(a,b){a[STa[b]]=b;return a},{}); var TTa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(TTa).reduce(function(a,b){a[TTa[b]]=b;return a},{}); var UTa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(UTa).reduce(function(a,b){a[UTa[b]]=b;return a},{});var F0,VTa;F0=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];VTa=[{option:0,text:WM(0)},{option:.25,text:WM(.25)},{option:.5,text:WM(.5)},{option:.75,text:WM(.75)},{option:1,text:WM(1)}]; g.$M=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:F0},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:WM(.5)},{option:-1,text:WM(.75)},{option:0,text:WM(1)},{option:1, text:WM(1.5)},{option:2,text:WM(2)},{option:3,text:WM(3)},{option:4,text:WM(4)}]},{option:"background",text:"Color de fondo",options:F0},{option:"backgroundOpacity",text:"Opacidad de fondo",options:VTa},{option:"windowColor",text:"Color de la ventana",options:F0},{option:"windowOpacity",text:"Opacidad de la ventana",options:VTa},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"Levantado"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:WM(.25)},{option:.5,text:WM(.5)},{option:.75,text:WM(.75)},{option:1,text:WM(1)}]}];g.v(g.ZM,g.gA);g.h=g.ZM.prototype; g.h.AM=function(a){var b=!1,c=g.yu(a),d=tu(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.api.V();g.xu(a)?(e=!1,k=!0):l.fg&&(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);qM(this.yc,f,!1);this.api.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);qM(this.yc,f,!0);this.api.setVolume(f);k=f=!0;break;case 36:this.api.tf()&&(this.api.startSeekCsiAction(), this.api.seekTo(0),k=f=!0);break;case 35:this.api.tf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),k=f=!0)}}b&&YM(this,!0);(b||k)&&this.Id.Hl();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.wu(a);l.B&&(a={keyCode:g.yu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.xu(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))}; g.h.BM=function(a){this.handleGlobalKeyUp(g.yu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.eL(this.api.tb());c&&(c=c.rp)&&c.ub&&(c.wM(a),b=!0);9===a&&(YM(this,!0),b=!0);return b}; g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){var k=!1;e=this.api.V();if(e.fg)return k;var l=g.eL(this.api.tb());if(l&&(l=l.rp)&&l.ub)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=l.vM(a)}e.C||k||(k=f||String.fromCharCode(a).toLowerCase(),this.u+=k,0==="awesome".indexOf(this.u)?(k=!0,7===this.u.length&&tia(this.api.getRootNode(),"ytp-color-party")):(this.u=k,k=0==="awesome".indexOf(this.u)));if(!k){f=(f=this.api.getVideoData())?f.xk:[];l=FQ?d:c;switch(a){case 80:b&& !e.va&&(pM(this.yc,AAa(),"Anterior"),this.api.previousVideo(),k=!0);break;case 78:b&&!e.va&&(pM(this.yc,AI(),"Siguiente"),this.api.nextVideo(),k=!0);break;case 74:this.api.tf()&&(this.api.startSeekCsiAction(),this.j?this.j.nu(-1,10):pM(this.yc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate()),k=!0);break;case 76:this.api.tf()&&(this.api.startSeekCsiAction(),this.j?this.j.nu(1,10):pM(this.yc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate()),k=!0);break;case 37:this.api.tf()&&(this.api.startSeekCsiAction(),l?(l=IDa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.UB(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(this.j?this.j.nu(-1,5):pM(this.yc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate()),k=!0));break;case 39:this.api.tf()&&(this.api.startSeekCsiAction(),l?(l=HDa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.UB(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(null!=this.j?this.j.nu(1,5):pM(this.yc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate()),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),qM(this.yc,this.api.getVolume(),!1)):(this.api.mute(),qM(this.yc,0,!0));k=!0;break;case 32:case 75:e.va||(k=!g.BH(this.api.zb()),this.yc.wr(k),k?this.api.playVideo():this.api.pauseVideo(),k=!0);break;case 190:b?e.Dc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),mDa(this.yc,!1),k=!0):this.api.tf()&&(LDa(this,1),k=!0);break;case 188:b?e.Dc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k- .25,!0),mDa(this.yc,!0),k=!0):this.api.tf()&&(LDa(this,-1),k=!0);break;case 70:UCa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),k=!0); break;case 27:this.C()&&(k=!0)}if("3"!==e.controlsType)switch(a){case 67:g.BL(this.api.tb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),nDa(this.yc,!e||e&&!e.displayName),k=!0);break;case 79:aN(this,"textOpacity");break;case 87:aN(this,"windowOpacity");break;case 187:case 61:aN(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:aN(this,"fontSizeIncrement",!0,!0)}var m;b||c||d||(48<=a&&57>=a?m=a-48:96<=a&&105>=a&&(m=a-96));null!=m&&this.api.tf()&&(this.api.startSeekCsiAction(), a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),k=!0);k&&this.Id.Hl()}return k}; g.h.ra=function(){g.xp(this.B);g.gA.prototype.ra.call(this)};g.v(bN,g.W);bN.prototype.Ka=function(){var a=g.AC(this.I.V())&&g.dL(this.I)&&g.V(this.I.zb(),128),b=this.I.getPlayerSize();this.visible=this.j.Gf()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.V().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&TM(this.tooltip);this.I.bb(this.element,this.visible&&this.va)}; bN.prototype.lc=function(a){g.W.prototype.lc.call(this,a);this.I.bb(this.element,this.visible&&a)}; bN.prototype.ra=function(){g.W.prototype.ra.call(this);g.Dp(this.element,"ytp-overflow-button-visible")};g.v(cN,g.eM);g.h=cN.prototype;g.h.UR=function(a){a=tu(a);g.fi(this.element,a)&&(g.fi(this.j,a)||g.fi(this.closeButton,a)||fM(this))}; g.h.Eb=function(){g.eM.prototype.Eb.call(this);this.tooltip.Dj(this.element)}; g.h.show=function(){this.ub&&this.I.ea("OVERFLOW_PANEL_OPENED");g.eM.prototype.show.call(this);this.element.setAttribute("aria-modal","true");MDa(this,!0)}; g.h.hide=function(){g.eM.prototype.hide.call(this);this.element.removeAttribute("aria-modal");MDa(this,!1)}; g.h.onFullscreenToggled=function(a){!a&&this.og()&&fM(this)}; g.h.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.ub){b.focus();break}};g.v(eN,g.W);eN.prototype.onClick=function(a){g.SL(a,this.api)&&this.api.playVideoAt(this.index)};g.v(fN,g.eM);g.h=fN.prototype;g.h.show=function(){g.eM.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.hD);this.B.T(this.api,"onPlaylistUpdate",this.hD);this.hD()}; g.h.hide=function(){g.eM.prototype.hide.call(this);g.hv(this.B);this.updatePlaylist(null)}; g.h.hD=function(){this.updatePlaylist(this.api.getPlaylist())}; g.h.YB=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.j=[];for(d=0;dthis.api.eb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.RF("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.RF("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.ub||(this.show(),TM(this.tooltip)),this.visible= !0,this.lc(!0)):this.ub&&(this.hide(),this.lc(!1),TM(this.tooltip))}; gN.prototype.lc=function(a){g.W.prototype.lc.call(this,a);this.api.bb(this.element,this.visible&&a)}; gN.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ka,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ka,this);this.Ka()};g.v(hN,g.W);g.h=hN.prototype; g.h.iD=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;a=this.tooltipRenderer.text;var c=!1,d;(null==a?0:null==(d=a.runs)?0:d.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),c=!0);g.Vm(this.title,c);a=this.tooltipRenderer.detailsText;d=!1;var e;if((null==a?0:null==(e=a.runs)?0:e.length)&&a.runs[0].text){c=a.runs[0].text.toString();e=c.indexOf("$TARGET_ICON");if(-1=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.qI(this,this.visible);TM(this.tooltip);this.api.bb(this.element,this.visible&&this.va)}; g.lN.prototype.lc=function(a){g.W.prototype.lc.call(this,a);this.api.bb(this.element,this.visible&&a)}; g.lN.prototype.ra=function(){g.W.prototype.ra.call(this);g.Dp(this.element,"ytp-share-button-visible")};g.v(g.mN,g.eM);g.h=g.mN.prototype;g.h.WR=function(a){a=tu(a);g.fi(this.D,a)||g.fi(this.closeButton,a)||fM(this)}; g.h.Eb=function(){g.eM.prototype.Eb.call(this);this.tooltip.Dj(this.element)}; g.h.show=function(){var a=this.ub;g.eM.prototype.show.call(this);this.Ka();a||this.api.Oa("onSharePanelOpened")}; g.h.EV=function(){this.ub&&this.Ka()}; g.h.Ka=function(){var a=this;g.M(this.element,"ytp-share-panel-loading");g.Dp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&PJ(this.api.bl(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Dp(a.element,"ytp-share-panel-loading"),RDa(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);g.LC(this.api.V())&&(b=g.rj(b,g.tK({},"emb_share")));this.Na("link",b);this.Na("linkText",b);this.Na("shareLinkWithUrl",g.RF("Compartir v\u00ednculo $URL",{URL:b}));VL(this.B)}; g.h.onFullscreenToggled=function(a){!a&&this.og()&&fM(this)}; g.h.focus=function(){this.B.focus()}; g.h.ra=function(){g.eM.prototype.ra.call(this);QDa(this)};g.v(pN,g.W);g.h=pN.prototype;g.h.BG=function(){}; g.h.CG=function(){}; g.h.sy=function(){return!0}; g.h.TZ=function(){if(this.expanded){this.xa.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.xa.hide();this.Wa=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Wa)+"px";this.ma.start()}; g.h.lU=function(){this.badge.element.style.width=(this.expanded?this.Wa:34)+"px";this.Ia.start()}; g.h.w_=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.h.ri=function(){this.sy()?this.N.show():this.N.hide();SDa(this)}; g.h.XR=function(){this.enabled=!1;this.ri()}; g.h.v_=function(){this.ri()}; g.h.HW=function(a){this.Ra=1===a;this.ri();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.h.aX=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.ri()};g.v(qN,pN);g.h=qN.prototype;g.h.ra=function(){rN(this);pN.prototype.ra.call(this)}; g.h.BG=function(a){a.target!==this.dismissButton.element&&(UDa(this,!1),this.I.Oa("innertubeCommand",this.onClickCommand))}; g.h.CG=function(){this.B=!0;UDa(this,!0);this.ri()}; g.h.LX=function(a){this.Ea=a;this.ri()}; g.h.EX=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.ya&&(this.X=a,a||(a=3+this.I.getCurrentTime(),this.Qd(a)))}; g.h.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.X=this.ya=this.u=this.K=!1,rN(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ea=this.enabled=!1;if(a){this.enabled=!0;if(!this.C){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.C=!!d)&&this.I.fk(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.I.fk(this.dismissButton.element, (null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.Pw(a.text);var k;if(c=null==(k=a.dismissButton)?void 0:k.a11yLabel)this.Sa=g.Pw(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;oE(b)?this.X=this.ya=!0:this.Qd()}TDa(this);oN(this);this.ri()}; g.h.sy=function(){return!this.Ea&&this.enabled&&!this.B&&!this.Xa.Gf()&&!this.Ra&&!this.X&&(this.u||this.j)}; g.h.Oe=function(a){(this.u=a)?(nN(this),oN(this,!1)):(rN(this),this.Z.start());this.ri()}; g.h.Qd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Iw(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Iw(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.I.Qd(b)};g.v(sN,g.eM);sN.prototype.show=function(){g.eM.prototype.show.call(this);this.C.start()}; sN.prototype.hide=function(){g.eM.prototype.hide.call(this);this.C.stop()}; sN.prototype.wt=function(a,b){"dataloaded"===a&&((this.B=b.KK,this.j=b.IK,isNaN(this.B)||isNaN(this.j))?this.D&&(this.I.kf("intro"),this.I.removeEventListener(g.Kw("intro"),this.ma),this.I.removeEventListener(g.Lw("intro"),this.Z),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.Kw("intro"),this.ma),this.I.addEventListener(g.Lw("intro"),this.Z),this.I.addEventListener("onShowControls",this.J),a=new g.Iw(this.B,this.j,{priority:9,namespace:"intro"}), this.I.Qd([a]),this.D=!0))};g.v(tN,g.W);tN.prototype.onClick=function(){this.I.qp()}; tN.prototype.Ka=function(){var a=!0,b=this.I.V();(b.S("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.S("embeds_use_native_controls_killswitch")&&b.isMobile)&&g.AC(b)&&(a=a&&480<=this.I.eb().getPlayerSize().width);g.qI(this,a);this.Na("icon",this.I.Ef()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z", fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};new ys("yt.autonav");g.v(uN,g.W);g.h=uN.prototype; g.h.wv=function(){var a;if(a=3!==this.I.getPresentingPlayerType()&&g.hL(this.I)&&400<=this.I.eb().getPlayerSize().width)a=this.I.getVideoData(),a=this.I.V().S("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.P_;if(a)this.j||(this.j=!0,g.qI(this,this.j),this.I.V().S("web_player_autonav_toggle_always_listen")||VDa(this),a=this.I.getVideoData(),this.CJ(a.autonavState),this.I.bb(this.element,this.j));else if(this.j=!1,g.qI(this,this.j),!this.I.V().S("web_player_autonav_toggle_always_listen")){this.I.V().S("web_player_autonav_toggle_always_listen"); a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.wc(b.value)}}; g.h.CJ=function(a){XDa(this)?this.isChecked=1!==a:((a=1!==a)||(g.rs.getInstance(),a=g.Q("web_autonav_allow_off_by_default")&&!g.ts(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.ts(0,140)),this.isChecked=a);WDa(this)}; g.h.onClick=function(){this.isChecked=!this.isChecked;this.I.XB(this.isChecked?2:1);WDa(this);if(XDa(this)){var a=this.I.getVideoData().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.I.Oa("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.I.Oa("innertubeCommand",a.onDisabledCommand)}this.I.xb(this.element)}; g.h.getValue=function(){return this.isChecked}; g.h.setValue=function(a){this.isChecked=a;this.Da("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.v(g.wN,g.W);g.wN.prototype.ra=function(){this.ctx=null;g.W.prototype.ra.call(this)};g.v(xN,g.W);xN.prototype.onClick=function(){this.I.Oa("innertubeCommand",this.j)}; xN.prototype.K=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()}; xN.prototype.J=function(){this.C.disabled=null==this.j;g.O(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.Qb()};g.v(yN,xN);yN.prototype.onClickCommand=function(a){(null==a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Qb()}; yN.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.TQ)?void 0:c.command;xN.prototype.J.call(this)}; yN.prototype.Qb=function(){var a="",b=this.u.j,c=!!this.I.getLoopRange();if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.KG()}}; g.h.disable=function(){var a=this;if(!this.message){var b=(null!=mu(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.eM(this.I,{G:"div",Ga:["ytp-popup","ytp-generic-popup"], W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://support.google.com/youtube/answer/6276924",target:this.I.V().J},oa:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.u.Ts(a.message,c)}); g.gL(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.h.Ka=function(){var a=UCa(this.I),b=this.I.V().D&&250>this.I.getPlayerSize().width;g.qI(this,a&&!b);this.I.bb(this.element,this.ub)}; g.h.hj=function(a){if(a){var b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g", L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=WL(this.I,"Salir de pantalla completa","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",U:[{G:"path", Jb:!0,L:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=WL(this.I,"Pantalla completa","f");a=this.message?null:a;this.update({title:a,icon:b});TM(this.u.pc())}; g.h.ra=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.ra.call(this)};g.v(FN,xN);FN.prototype.onClickCommand=function(a){(null==a?0:a.changeMarkersVisibilityCommand)&&this.Qb()}; FN.prototype.updateVideoData=function(){var a,b;this.j=null==(a=this.u.Hb)?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;xN.prototype.J.call(this)}; FN.prototype.Qb=function(){var a="",b=this.u.ma,c,d=null==(c=this.u.Hb)?void 0:c.headerTitle;c=d?g.Pw(d):"";d=!!this.I.getLoopRange();1a&&this.delay.start()}; var XTa=new g.Sp(0,0,.4,0,.2,1,1,1),bEa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.LN,g.W);g.h=g.LN.prototype;g.h.DJ=function(a){this.visible=300<=a.width;g.qI(this,this.visible);this.I.bb(this.element,this.visible&&this.va)}; g.h.wX=function(){this.I.V().ma?this.I.isMuted()?this.I.unMute():this.I.mute():fM(this.message,this.element,!0);this.I.xb(this.element)}; g.h.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.I.V();a=0===d?1:50this.clipEnd)&&this.RB()}; g.h.ZW=function(a){if(!g.xu(a)){var b=!1;switch(g.yu(a)){case 32:var c;(null==(c=this.u)?0:c.isEnabled)&&this.WE();b=!0;break;case 27:var d;(null==(d=this.u)?0:d.isEnabled)&&this.UL();b=!0}b&&g.wu(a)}}; g.h.bS=function(a){if(!g.xu(a)){var b=!1;switch(g.yu(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.wu(a)}}; g.h.wt=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.h.NU=function(){this.wt("newdata",this.api.getVideoData())}; g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(JE(a)||hO(this)?this.Ub=!1:this.Ub=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!JE(a))));GEa(this,this.api.tf());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;kO(this);for(fO(this,this.Z,this.jb);0p&&(p=Math.min(l.end,n),l.end=p);n=JDa(p,n+q);k.push(n);l=n;f[n.id]=c[m].onActiveCommand}}this.api.Qd(k);this.Hb=this.bd[b];c=!0}e=c}!e&&(e=d.TD)&&(tEa(this,e),d.xk=this.j,sEa(this))}a.nK&&0===this.J.length&&(a=a.nK,d=a.key,a.isVisible&&d&&cO(this,d))}}eO(this)}; g.h.aS=function(a){this.X&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.X.cancel()}; g.h.HJ=function(a){var b=!!this.Vb!==!!a;(this.Vb=a)?(this.Na("clipstarticon",wAa()),this.Na("clipendicon",wAa()),this.Na("clipstarttitle",null),this.Na("clipendtitle",null)):(this.Na("clipstarticon",rAa()),this.Na("clipendicon",qAa()),this.Na("clipstarttitle","Mirar video completo"),this.Na("clipendtitle","Mirar video completo"));kO(this);fO(this,this.Z,this.jb);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.bO(this))}; g.h.PX=function(a,b,c){var d=g.Rm(this.element),e=dO(this).j,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;k&&(a=wJ(this.B,Number(c.getAttribute("data-position")),0)*e+g.Rm(this.Ic).x);this.Lb.x=a-d.x;this.Lb.y=b-d.y;a=dO(this);c=jO(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:JE(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.ya,m=wJ(this.B,m)*dO(this).j+b,a.position=m), b=this.B.u;hO(this)&&(b=this.B.u);m=f||g.pJ(this.Ub?c-this.B.j:c-b);b=a.position+this.sf;c-=this.api.rd();if(this.api.jh()){if(1=e&&p.timeRangeStartMillis=n.visibleTimeRangeStartMillis&&p<=n.visibleTimeRangeEndMillis&&(d=n.label,m=g.pJ(n.decorationTimeMillis/1E3),e=!0);this.Wc!==e&&(this.Wc=e,this.api.bb(this.Pc,this.Wc));g.O(this.api.getRootNode(),"ytp-progress-bar-decoration",e);e=320*this.tooltip.scale;k=d.length*(this.C?8.55:5.7);e=k<=e?k:e;k=e<160*this.tooltip.scale;n=3;!k&&e/2>a.position&&(n=1);!k&&e/2>this.D-a.position&&(n=2);this.api.V().D&&(l-=10);this.J.length&&this.J[0].isValid&&(l-= 14*(this.C?2:1),this.Ja||(this.Ja=!0,this.api.bb(this.xa,this.Ja)));var q;if(YN(this)&&((null==(q=this.u)?0:q.isEnabled)||0=.5*b?(this.u.enable(),RN(this.u,this.api.getCurrentTime()),FEa(this,b)):pO(this);g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled)}else if(this.Tb=0,g.Dp(this.element,"ytp-pull-ui"),g.Dp(this.element,"ytp-pulling"),this.K&&(this.K.dispose(),this.K=null),0l||1l&&a.K.start()}); this.K.start();this.Ra&&(this.Ra=!1,this.api.bb(this.ib,this.Ra))}if(g.V(this.api.zb(),32)||3===this.api.getPresentingPlayerType()){this.api.startSeekCsiAction();if(1=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.xb(this.Pc)}g.Dp(this.element,"ytp-drag");this.Sd&& !g.V(this.api.zb(),2)&&this.api.playVideo()}}; g.h.RX=function(a,b){var c=this,d=!1,e=!1;a=dO(this);1===this.j.length&&!YN(this)&&3600<=uJ(this.B)&&(AEa(this,this.od-b-10,a.position,a.B),e=!0,d=this.N>.1*(this.C?60:40),a=dO(this));g.O(this.element,"ytp-pull-ui",e);d&&g.M(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Tb!==d&&(this.Tb=d,this.K&&(this.K.dispose(),this.K=null),d)){var f=(0,g.R)();this.K=new g.tp(function(){var l=c.D*(c.Xa-1);c.ya=g.yh(c.ya+c.Tb*((0,g.R)()-f)*.3,0,l);gO(c);c.api.seekTo(jO(c, dO(c)),!1);0=this.Xc.items.length&&this.hide();this.Xc.lf(a);a=this.Ym;a.u=0=b;g.qI(this,a);this.I.bb(this.element,a)}; yO.prototype.B=function(){if(this.sb.ub)this.sb.Eb();else{var a=g.BL(this.I.tb());a&&!a.loaded&&(a.zf("tracklist",{includeAsr:!0}).length||a.load());this.I.xb(this.element);this.sb.qd(this.element)}}; yO.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.fL(this.I),e=c&&!!g.eL(this.I.tb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(AO,IM);AO.prototype.isLoaded=function(){var a=g.KL(this.I.tb());return void 0!==a&&a.loaded}; AO.prototype.Ka=function(){void 0!==g.KL(this.I.tb())&&3!==this.I.getPresentingPlayerType()?this.j||(this.sb.xc(this),this.j=!0):this.j&&(this.sb.lf(this),this.j=!1);this.setValue(this.isLoaded())}; AO.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ea("annotationvisibility",a)}; AO.prototype.ra=function(){this.j&&this.sb.lf(this);IM.prototype.ra.call(this)};g.v(g.BO,g.AM);g.h=g.BO.prototype;g.h.open=function(){g.LM(this.sb,this.B)}; g.h.zi=function(a){IEa(this);this.options[a].element.setAttribute("aria-checked","true");this.Bd(this.Cj(a));this.u=a}; g.h.mE=function(a,b,c){var d=this;b=new g.AM({G:"div",Ga:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Ga:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.Cj(a,!0));b.Pa("click",function(){d.Pf(a)}); return b}; g.h.enable=function(a){this.C?a||(this.C=!1,this.Xr(!1)):a&&(this.C=!0,this.Xr(!0))}; g.h.Xr=function(a){a?this.sb.xc(this):this.sb.lf(this)}; g.h.Pf=function(a){this.ea("select",a)}; g.h.Cj=function(a){return a.toString()}; g.h.cS=function(a){g.xu(a)||39!==g.yu(a)||(this.open(),g.wu(a))}; g.h.ra=function(){this.C&&this.sb.lf(this);g.AM.prototype.ra.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(DO,g.BO);DO.prototype.Ka=function(){var a=this.I.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.D:this.D;this.rr(b);g.wu(a)}; g.h.eS=function(a){a=(a-g.Rm(this.u).x)/this.K*this.range+this.minimumValue;this.rr(a)}; g.h.rr=function(a,b){b=void 0===b?"":b;a=g.yh(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Na("valuenow",a);this.Na("valuetext",b);this.N.style.left=(a-this.minimumValue)/this.range*(this.K-this.Z)+"px";this.j=a}; g.h.focus=function(){this.ma.focus()};g.v(QO,OO);QO.prototype.X=function(){this.I.setPlaybackRate(this.j,!0)}; QO.prototype.rr=function(a){OO.prototype.rr.call(this,a,RO(this,a).toString());this.B&&(PO(this),this.xa())}; QO.prototype.ya=function(){var a=this.I.getPlaybackRate();RO(this,this.j)!==a&&(this.rr(a),PO(this))};g.v(SO,g.rI);SO.prototype.focus=function(){this.j.focus()};g.v(KEa,DM);g.v(TO,g.BO);g.h=TO.prototype;g.h.Cj=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.h.Ka=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);NEa(this)}; g.h.Xr=function(a){g.BO.prototype.Xr.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),NEa(this),LEa(this,this.I.getPlaybackRate())):(this.wc(this.K),this.K=null)}; g.h.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||MEa(this,b);LEa(this,a)}; g.h.Pf=function(a){g.BO.prototype.Pf.call(this,a);a===this.j?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.sb.Ch()};g.v(VO,g.BO);g.h=VO.prototype;g.h.zi=function(a){g.BO.prototype.zi.call(this,a)}; g.h.getKey=function(a){return a.option.toString()}; g.h.getOption=function(a){return this.settings[a]}; g.h.Cj=function(a){return this.getOption(a).text||""}; g.h.Pf=function(a){g.BO.prototype.Pf.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.v(WO,g.EM);WO.prototype.Mf=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.To[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.zi(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; WO.prototype.wh=function(a,b){this.ea("settingChange",a,b)};g.v(XO,g.BO);XO.prototype.getKey=function(a){return a.languageCode}; XO.prototype.Cj=function(a){return this.languages[a].languageName||""}; XO.prototype.Pf=function(a){this.ea("select",a);this.I.xb(this.element);g.PM(this.sb)};g.v(YO,g.BO);g.h=YO.prototype;g.h.getKey=function(a){return g.ag(a)?"__off__":a.displayName}; g.h.Cj=function(a){return"__off__"===a?"Desactivar":"__translate__"===a?"Traducci\u00f3n autom\u00e1tica":"__contribute__"===a?"Agregar subt\u00edtulos":("__off__"===a?{}:this.tracks[a]).displayName}; g.h.Pf=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.sK(this.I.V(),this.I.getVideoData()),g.BJ(a)):(this.I.xb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.BO.prototype.Pf.call(this,a),this.sb.Ch())}; g.h.Ka=function(){var a=this.I.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.I.getVideoData();b=b&&b.Pp;var c,d=!(null==(c=this.I.getVideoData())||!g.GE(c));c={};if(a||b){if(a){var e=this.I.getOption("captions","track");c=this.I.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.xc(c,this.getKey,this);d=g.Pl(c,this.getKey);if(f.length&&!g.ag(e)){var k=e.translationLanguage;if(k&&k.languageName){var l=k.languageName; k=f.findIndex(function(m){return m.languageName===l}); taa(f,k)}PEa(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.CO(this,d);this.zi(f);e&&e.translationLanguage?this.j.zi(this.j.getKey(e.translationLanguage)):IEa(this.j);a&&this.D.Mf(this.I.getSubtitlesUserSettings());this.K.Bd(c&&c.length?" ("+c.length+")":"");this.ea("size-change");this.I.bb(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.h.gS=function(a){var b=this.I.getOption("captions","track");b=g.fg(b);b.translationLanguage=this.j.languages[a];this.I.setOption("captions","track",b)}; g.h.wh=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}QEa(this,!0);this.J.start();this.D.Mf(this.I.getSubtitlesUserSettings())}; g.h.tY=function(a){a||g.xp(this.J)}; g.h.ra=function(){g.xp(this.J);g.BO.prototype.ra.call(this)};g.v(ZO,g.NM);g.h=ZO.prototype;g.h.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.eG=new GO(this.I,this);g.H(this,this.eG);var a=new KO(this.I,this);g.H(this,a);a=new YO(this.I,this);g.H(this,a);this.I.V().K||(a=new AO(this.I,this),g.H(this,a));this.I.V().Dc&&(a=new TO(this.I,this),g.H(this,a));this.I.V().Ub&&!this.I.V().S("web_player_move_autonav_toggle")&&(a=new EO(this.I,this),g.H(this,a));a=new DO(this.I,this);g.H(this,a);zO(this.settingsButton,this.Xc.items.length)}}; g.h.xc=function(a){this.initialize();this.Xc.xc(a);zO(this.settingsButton,this.Xc.items.length)}; g.h.lf=function(a){this.ub&&1>=this.Xc.items.length&&this.hide();this.Xc.lf(a);zO(this.settingsButton,this.Xc.items.length)}; g.h.qd=function(a){this.initialize();0=b;g.qI(this,c);this.I.bb(this.element,c);a&&this.Na("pressed",this.isEnabled())};g.v(g.cP,g.W);g.h=g.cP.prototype; g.h.Qb=function(){var a=this.api.eb().getPlayerSize().width,b=this.K;this.api.V().D&&(b=400);b=a>=b&&(!eP(this)||!g.V(this.api.zb(),64));g.qI(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().S("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);dP(this)&&(c-=this.Vb.startTimeMs/1E3);c=g.pJ(c);this.B!==c&&(this.Na("currenttime",c),this.B=c);b=dP(this)? g.pJ((this.Vb.endTimeMs-this.Vb.startTimeMs)/1E3):g.pJ(this.api.V().S("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Na("duration",b),this.C=b)}a=a.isAtLiveHead;!eP(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Qb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Bd(this.isPremiere?"Estreno":"En vivo"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Sigue adelante hasta alcanzar la transmisi\u00f3n en directo.", this.j=g.tM(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Vb!==a;this.Vb=a;b&&bP(this)}; g.h.onLoopRangeChange=function(a){var b=this.Vb!==a;this.Vb=a;b&&(this.Qb(),bP(this))}; g.h.ZY=function(){this.api.setLoopRange(null)}; g.h.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().S("enable_topsoil_wta_for_halftime")||this.api.V().S("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Qb();bP(this)}; g.h.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.qb;this.u=JE(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",eP(this))}; g.h.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; g.h.ra=function(){this.j&&this.j();g.W.prototype.ra.call(this)};g.v(hP,g.W);g.h=hP.prototype;g.h.Rm=function(){var a=this.j.bf();this.C!==a&&(this.C=a,gP(this,this.api.getVolume(),this.api.isMuted()))}; g.h.JJ=function(a){g.qI(this,350<=a.width)}; g.h.jS=function(a){if(!g.xu(a)){var b=g.yu(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.yh(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.wu(a))}}; g.h.hS=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.yh(b/10,-10,10));g.wu(a)}; g.h.yY=function(){fP(this,this.u,!0,this.B,this.j.Mi());this.X=this.volume;this.api.isMuted()&&this.api.unMute()}; g.h.iS=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Rm(this.N).x;this.api.setVolume(100*g.yh((a-c/2)/(b-c),0,1))}; g.h.xY=function(){fP(this,this.u,!1,this.B,this.j.Mi());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))}; g.h.onVolumeChange=function(a){gP(this,a.volume,a.muted)}; g.h.tL=function(){fP(this,this.u,this.isDragging,this.B,this.j.Mi())}; g.h.ra=function(){g.W.prototype.ra.call(this);g.Dp(this.K,"ytp-volume-slider-active")};g.v(g.iP,g.W);g.iP.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.qI(this,this.visible);this.api.bb(this.element,this.visible&&this.va);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Na("url",a))}; g.iP.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.qJ(a),!1,!0,!0);if(g.AC(b)||g.LC(b)){var d={};b.xa&&g.AC(b)&&g.uK(d,b.loaderUrl);c=g.rj(c,g.tK(d,"emb_logo"))}g.TL(c,this.api,a);this.api.xb(this.element)}; g.iP.prototype.yb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Jb:!0,L:"ytp-svg-fill",W:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}; if(g.LC(this.api.V())){var b=this.Da("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",W:{fill:"none",height:"24",width:"24"},U:[{G:"circle",W:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",W:{viewBox:"0 0 80 24"},U:[{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",W:{cx:"12.18", cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z", fill:"#fff"}}]};g.O(b,"ytp-youtube-music-logo-icon-only",c)}this.Na("logoSvg",a)}; g.iP.prototype.lc=function(a){g.W.prototype.lc.call(this,a);this.api.bb(this.element,this.visible&&a)};g.v(jP,g.gA);g.h=jP.prototype;g.h.Gd=function(){this.Ic.Qb();this.Sg.Qb()}; g.h.Vj=function(){this.kD();if(this.Id.u){this.Gd();var a;null==(a=this.N)||a.show()}else{g.sP(this.Ic.tooltip);var b;null==(b=this.N)||b.hide()}}; g.h.Pq=function(){this.Gd();this.Xd.start()}; g.h.kD=function(){var a=!this.I.V().isMobile&&300>g.HEa(this.Ic)&&this.I.zb().Jc()&&!!window.requestAnimationFrame,b=!a;this.Id.u||(a=b=!1);b?this.K||(this.K=this.T(this.I,"progresssync",this.Gd)):this.K&&(this.wc(this.K),this.K=null);a?this.Xd.isActive()||this.Xd.start():this.Xd.stop()}; g.h.yb=function(){var a=this.B.bf(),b=this.I.eb().getPlayerSize(),c=kP(this),d=Math.max(b.width-2*c,100);if(this.Ra!==b.width||this.Ja!==a){this.Ra=b.width;this.Ja=a;var e=VEa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.oO(this.Ic,c,e,a);this.B.pc().lD=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-lP(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.fz=e;c.Nu();this.kD();!this.I.V().S("html5_player_bottom_linear_gradient")&&this.I.V().S("html5_player_dynamic_bottom_gradient")&& g.vN(this.Sa,b.height)}; g.h.onVideoDataChange=function(){var a=this.I.getVideoData();this.xa.style.background=a.D?a.Wa:"";g.qI(this.Z,a.DD)};g.v(mP,pN);g.h=mP.prototype;g.h.BG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Oa("innertubeCommand",this.onClickCommand),this.B=!0,this.N.hide())}; g.h.CG=function(){this.B=!0;this.N.hide()}; g.h.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,nP(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.K=this.enabled=!0;this.text=(b=a.title)?g.Pw(b):"View Chapters";var c;if(b=null==(c=a.trigger)?void 0:c.suggestedActionTimeRangeTrigger){c=[];var d=b.timeRangeStartMillis;b=b.timeRangeEndMillis;null!=d&&null!=b&&c.push(new g.Iw(d,b,{priority:9,namespace:"suggested_action_button_visible"}));this.I.Qd(c)}this.onClickCommand=a.tapCommand;TDa(this);oN(this); this.ri()}}; g.h.sy=function(){return!this.B&&this.enabled&&(this.u||this.j)}; g.h.Oe=function(a){this.B||((this.u=a)?nN(this):(nP(this),this.Z.start()),this.ri())}; g.h.ra=function(){nP(this);pN.prototype.ra.call(this)};var G0={},oP=(G0.CHANNEL_NAME="ytp-title-channel-name",G0.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",G0.LINK="ytp-title-link",G0.SESSIONLINK="yt-uix-sessionlink",G0.SUBTEXT="ytp-title-subtext",G0.TEXT="ytp-title-text",G0.TITLE="ytp-title",G0);g.v(pP,g.W);pP.prototype.onClick=function(a){this.api.xb(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.qJ(a),!1,!0);if(g.AC(b)){var d={};b.xa&&g.uK(d,b.loaderUrl);c=g.rj(c,g.tK(d,"emb_title"))}g.TL(c,this.api,a)}; pP.prototype.Ka=function(){var a=this.api.getVideoData(),b=this.api.V();this.Na("title",a.title);WEa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Lb&&c.profilePicture?(this.Na("channelLink",c.Lb),this.Na("channelName",c.author),this.Na("channelTitleFocusable","0")):WEa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.vb;g.O(this.link,oP.FULLERSCREEN_LINK,c);b.N||!a.videoId||c||a.D&&b.pfpChazalUi||b.K?this.j&&(this.Na("url", null),this.wc(this.j),this.j=null):(this.Na("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)))};g.v(g.qP,g.W);g.h=g.qP.prototype;g.h.oO=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,YEa(this,a))}; g.h.zV=function(){qwa(this.j,this.B,160*this.scale)}; g.h.Bk=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.X);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.X);a.addEventListener("focus",this.C);aFa(this);break;case 3:aFa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.oO,this),this.j=null),this.api.removeEventListener("videoready",this.Z),this.ma.stop()}this.type=null;this.K&&this.D.hide()}; g.h.Dj=function(){if(this.u)for(var a=0;a(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"}; g.h.Vj=function(a){a&&(this.tooltip.Dj(this.gi.element),this.Nf&&this.tooltip.Dj(this.Nf.u.element));this.LA&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.iM.prototype.Vj.call(this,a)}; g.h.AG=function(){g.iM.prototype.AG.call(this);this.LA&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.LA&&(this.contextMenu.hide(),this.vg&&this.vg.hide()))}; g.h.Jj=function(a,b){var c=this.api.eb().getPlayerSize();c=new g.Em(0,0,c.width,c.height);if(a||this.Id.u&&!this.mp()){if(this.api.V().xk||b)a=this.bf()?this.tE:this.sE,c.top+=a,c.height-=a;this.Nf&&(c.height-=lP(this.Nf))}return c}; g.h.Rm=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.dA.element,b),b.parentElement.insertBefore(this.cA.element,b.nextSibling))):g.hr(Error("Player not in DOM.")):(b.setAttribute("aria-label","Reproductor de video de YouTube"),this.dA.detach(),this.cA.detach());this.yb();this.qn()}; g.h.bf=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.D||!1}; g.h.showControls=function(a){this.Pz=!a;this.rj()}; g.h.yb=function(){var a=this.bf();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.rj();if(this.Gf()&&this.vg)this.Gh&&dN(this.vg,this.Gh),this.shareButton&&dN(this.vg,this.shareButton),this.zg&&dN(this.vg,this.zg);else{if(this.vg){a=this.vg;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Gh&&!g.fi(this.Tg.element,this.Gh.element)&&this.Gh.Ba(this.Tg.element);this.shareButton&&!g.fi(this.Tg.element, this.shareButton.element)&&this.shareButton.Ba(this.Tg.element);this.zg&&!g.fi(this.Tg.element,this.zg.element)&&this.zg.Ba(this.Tg.element)}this.qn();g.iM.prototype.yb.call(this)}; g.h.iF=function(){if(fFa(this)&&!g.dL(this.api))return!1;var a=this.api.getVideoData();return!g.AC(this.api.V())||2===this.api.getPresentingPlayerType()||!this.Bg||((a=this.Bg||a.Bg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.iM.prototype.iF.call(this):!1}; g.h.qn=function(){g.iM.prototype.qn.call(this);this.api.bb(this.title.element,!!this.rl);this.Yt&&this.Yt.lc(!!this.rl);this.channelAvatar.lc(!!this.rl);this.overflowButton&&this.overflowButton.lc(this.Gf()&&!!this.rl);this.shareButton&&this.shareButton.lc(!this.Gf()&&!!this.rl);this.Gh&&this.Gh.lc(!this.Gf()&&!!this.rl);this.zg&&this.zg.lc(!this.Gf()&&!!this.rl);if(!this.rl){this.tooltip.Dj(this.gi.element);for(var a=0;ae?this.Xe("next_player_future"):(this.D=d,this.B=lta(a,c,d,!0),this.C=lta(a,e,k,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.Aa("gaplessPrep",{cpn:a}),DP(this.j,this.B),this.j.setMediaElement(oFa(b,c,d,!this.j.getVideoData().isAd())), CP(this,2),uFa(this))):this.Qa():this.Qa()}else this.Xe("no-elem")}else this.Qa()}; g.h.Yr=function(a){var b=tFa(this).KP,c=a===b;b=c?this.B.j:this.B.u;c=c?this.C.j:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;rA(a.Af(),d-.01)&&(CP(this,4),b.isActive=!1,b.My=b.My||b.isActive,this.u.Aa("sbh",{}),c.isActive=!0,c.My=c.My||c.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&CP(this,5)}}; g.h.uO=function(){4<=this.status.status&&6>this.status.status&&this.Xe("player-reload-after-handoff")}; g.h.Xe=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){this.Qa();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.Nd(new g.BB("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.jk,msg:a})));a=this.j;a.videoData.Ea=!1;c&&QS(a);a.Va&&sIa(a.Va)}this.Gl.reject(void 0);this.dispose()}}; g.h.ra=function(){sFa(this);this.j.unsubscribe("newelementrequired",this.uO,this);if(this.B){var a=this.B.u;this.B.j.Hd.unsubscribe("updateend",this.Yr,this);a.Hd.unsubscribe("updateend",this.Yr,this)}g.G.prototype.ra.call(this)}; g.h.Tc=function(a){g.BF(a,128)&&this.Xe("player-error-event")}; g.h.Qa=function(){};g.v(FP,g.G);FP.prototype.clearQueue=function(){this.Qa();this.C&&this.C.reject("Queue cleared");GP(this)}; FP.prototype.Jt=function(){return!this.j}; FP.prototype.ra=function(){GP(this);g.G.prototype.ra.call(this)}; FP.prototype.Qa=function(){};g.v(LP,g.iv);g.h=LP.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:yFa()?3:b?2:c?1:d?5:e?7:f?8:0}; g.h.hj=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Oe())}; g.h.setMinimized=function(a){this.B!==a&&(this.B=a,this.Oe())}; g.h.setInline=function(a){this.inline!==a&&(this.inline=a,this.Oe())}; g.h.yu=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Oe())}; g.h.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Oe())}; g.h.Ef=function(){return this.j}; g.h.isFullscreen=function(){return 0!==this.fullscreen}; g.h.Zs=function(){return this.fullscreen}; g.h.Te=function(){return this.B}; g.h.isInline=function(){return this.inline}; g.h.isBackground=function(){return yFa()}; g.h.Ht=function(){return this.pictureInPicture}; g.h.Dt=function(){return this.u}; g.h.Oe=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.Ef(),this.isFullscreen(),this.Te(),this.isInline(),this.Ht(),this.Dt());a!==this.D&&this.ea("visibilitystatechange");this.D=a}; g.h.ra=function(){BFa(this.C);g.iv.prototype.ra.call(this)};g.v(g.PP,g.G);g.h=g.PP.prototype; g.h.onCueRangeEnter=function(a){this.Sa.push(a);var b=a.getId(),c=""===b;this.Wa.add(a.u);c||this.Ca.Aa("sdai",{enterAdCueRange:1});if(this.Xa){this.Xa=!1;if(!c){var d=this.u.get(b);d&&(this.Y.S("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.Ca.getCurrentTime(),UP(this,{Dd:a,isAd:!0,Em:!0,xf:c,adCpn:b},{isAd:!1,Em:!1,xf:c})),this.api.ea("serverstitchedvideochange",d.Cc,d.En),a=RP(this,"midab",d),this.Ca.Aa("sdai",a),this.Gi=1)}this.C=!1}else if(this.j){if(this.j.Em)this.Ca.Aa("sdai",{a_pair_of_same_transition_occurs_enter:1, acpn:this.j.adCpn,transitionTime:this.j.xf,cpn:b,currentTime:this.Ca.getCurrentTime()}),this.Y.S("web_player_same_transition_fallback_killswitch")||(d=this.Ca.getCurrentTime(),a={Dd:a,isAd:!c,Em:!0,xf:d,adCpn:b},b={Dd:this.j.Dd,isAd:this.j.isAd,Em:!1,xf:d,adCpn:this.j.adCpn},this.j.Dd&&this.Wa.delete(this.j.Dd.u),UP(this,a,b));else{if(this.j.Dd===a){this.Ca.Aa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.xf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.j=void 0; return}if(this.j.adCpn===b){b&&this.Ca.Aa("sdai",{dchtsc:b});this.j=void 0;return}a={Dd:a,isAd:!c,Em:!0,xf:this.Ca.getCurrentTime(),adCpn:b};UP(this,a,this.j)}this.j=void 0;this.C=!1}else this.j={Dd:a,isAd:!c,Em:!0,xf:this.Ca.getCurrentTime(),adCpn:b}}; g.h.onCueRangeExit=function(a){if(this.Y.S("web_player_same_transition_fallback_killswitch")||this.Wa.has(a.u)){this.Wa.delete(a.u);this.Sa=this.Sa.filter(function(d){return d!==a}); this.Xa&&(this.C=this.Xa=!1,this.Ca.Aa("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Em){if(this.j.Dd===a){this.Ca.Aa("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.xf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.j=void 0;return}if(this.j.adCpn===b){b&&this.Ca.Aa("sdai",{dchtsc:b});this.j=void 0;return}c={Dd:a,isAd:!c,Em:!1,xf:this.Ca.getCurrentTime(),adCpn:b};UP(this,this.j,c)}else this.Ca.Aa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn, transitionTime:this.j.xf,upcomingCpn:b,contentCpn:this.Ca.getVideoData().clientPlaybackNonce,currentTime:this.Ca.getCurrentTime()});this.j=void 0;this.C=!1}else this.j={Dd:a,isAd:!c,Em:!1,xf:this.Ca.getCurrentTime(),adCpn:b};this.Y.S("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.Ca.getCurrentTime()=a.XH&&k.set("skipsq",""+a.XH);(l=this.Ca.getVideoData().clientPlaybackNonce)&&k.set("cpn",l);m=[];a.Nk&&(m=NFa(this,a.Nk),0=b+f)b=a.end;else{if(k=!1,a?bthis.B;)(c=this.data.shift())&&pQ(this,c,!0);nQ(this)}; oQ.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(pQ(this,c,b),g.ic(this.data,function(d){return d.key===a}),nQ(this))}; oQ.prototype.ra=function(){var a=this;g.G.prototype.ra.call(this);this.data.forEach(function(b){pQ(a,b,!0)}); this.data=[]};g.qQ.prototype.info=function(){};g.v(rQ,g.G);rQ.prototype.ra=function(){eGa(this.j);g.G.prototype.ra.call(this)};g.v(sQ,g.Xp);sQ.prototype.ea=function(a){var b=g.Da.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.Xp.prototype.ea.call.apply(g.Xp.prototype.ea,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};tQ.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a}; tQ.prototype.forEach=function(a){for(var b=this.j+1;bc?(a=g.aB(this.app.V().experiments,"player_underlay_video_width_fraction"),new g.Eh(b.width*a,b.height)):b}; g.h.getVideoAspectRatio=function(){return isNaN(this.qG)?mGa(this):this.qG}; g.h.getVideoContentRect=function(a){var b=this.Fg();a=nGa(this,b,this.getVideoAspectRatio(),a);return new g.Em((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.h.Bu=function(a){this.kH=a;this.resize()}; g.h.OA=function(){return this.HB}; g.h.onMutedAutoplayChange=function(){BQ(this)}; g.h.setInternalSize=function(a){g.Fh(this.yw,a)||(this.yw=a,this.resize())}; g.h.ra=function(){this.xE&&g.Ku(this.xE);this.Og();g.W.prototype.ra.call(this)};g.h=pGa.prototype;g.h.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Lv();c&&a.visualElement&&g.bw(c,a.visualElement,b)}; g.h.Bb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Cpa(c);a.visualElement=c;var f=g.Lv(),k=g.Kv();f&&k&&g.Wv(void 0,f,k,[c]);g.Bf(b,function(){qGa(e,a)}); d&&this.u.add(a)}; g.h.ah=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.Bf(b,function(){qGa(d,a)}); c&&this.u.add(a)}; g.h.fk=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Hv(b))}; g.h.Ho=function(a){return this.elements.has(a)};g.v(GQ,g.W); GQ.prototype.setValue=function(a,b){for(var c=0;c+2this.policy.N&&(null==(c=this.u)?0:cA(c.info))&&(null==(d=this.nextVideo)||!cA(d.info))&&(this.N=!0)}};cR.prototype.dispose=function(){this.ma=!0}; cR.prototype.isDisposed=function(){return this.ma};kR.prototype.skip=function(a){this.offset+=a}; kR.prototype.getOffset=function(){return this.offset};nR.prototype.Zh=function(a){this.Ia=this.u.shift().info;a.info.equals(this.Ia)}; nR.prototype.Mo=function(){return!!this.J.info.audio}; nR.prototype.getDuration=function(){return this.J.index.getMaxKnownEndTime()};g.h=wR.prototype;g.h.dF=function(){return 0}; g.h.KJ=function(){return null}; g.h.iM=function(){return null}; g.h.isComplete=function(){return 3<=this.state}; g.h.isFailed=function(){return 5===this.state}; g.h.onStateChange=function(){}; g.h.isDisposed=function(){return-1===this.state}; g.h.dispose=function(){this.info.j[0].j.J=!1;xR(this,-1)}; g.h.Ow=function(){return 0};g.v(AR,wR);g.h=AR.prototype;g.h.onStateChange=function(){this.isDisposed()&&(RT(this.pe,this.u),this.B.dispose())}; g.h.Ws=function(){var a=oIa(this.pe,this.u),b;var c=(null==(b=this.pe.ke.get(this.u))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.pe.ke.get(this.u))?void 0:d.Bz)||0;var e;d=(null==(e=this.pe.ke.get(this.u))?void 0:e.re.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d}}; g.h.fM=function(){return 0}; g.h.yv=function(){return!0}; g.h.mD=function(){this.Fo();this.N=!0;return zHa(this.j)}; g.h.LJ=function(){this.Fo();return this.j.re}; g.h.Zt=function(){var a,b;return!!(null==(a=this.j)?0:null==(b=a.re)?0:b.length)||this.pe.pg(this.u)}; g.h.Fo=function(){for(;this.pe.pg(this.u);){var a=this.j,b=this.pe.Zh(this.u),c=this.pe.ke.get(this.u);yHa(a,b,c.cf&&!c.re.totalLength&&BHa(this.pe,this.u))}};BR.prototype.Jf=function(){return jHa(this.C)}; BR.prototype.Zh=function(a){this.C.Zh(a);a=a.info;var b=a.j.info.Ob;this.policy.Nv&&a.Yd&&a.duration&&(b=Math.max(b,(a.Ab+a.u)/a.duration));this.Ob=Math.max(this.Ob,b||0)}; BR.prototype.getDuration=function(){return this.j.index.getMaxKnownEndTime()}; BR.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Ma:!1};g.h=OR.prototype;g.h.Tt=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Ut()}; g.h.onError=function(){this.C=!0;this.onDone()}; g.h.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.fp())}; g.h.uq=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; g.h.Bw=function(){return+this.getResponseHeader("content-length")}; g.h.Ij=function(){return this.B}; g.h.Sx=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.h.pg=function(){return 0a-this.C&&TR(this)||UHa(this,a,b);this.callbacks.Rq(a,b)}; g.h.fp=function(){this.callbacks.fp()}; g.h.deactivate=function(){this.isActive&&(this.isActive=!1)}; g.h.now=function(){return(0,g.R)()};g.h=YR.prototype;g.h.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.X);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.ma,this.onError).then(void 0,Ds)}; g.h.onDone=function(){this.isDisposed()||this.callbacks.fp()}; g.h.getResponseHeader=function(a){return this.D?this.D.get(a):null}; g.h.uq=function(){return!!this.D}; g.h.Ij=function(){return this.u}; g.h.Bw=function(){return+this.getResponseHeader("content-length")}; g.h.Sx=function(){return 200<=this.status&&300>this.status&&!!this.u}; g.h.pg=function(){return!!this.j.totalLength}; g.h.Zh=function(){this.pg();var a=this.j;this.j=new hy;return a}; g.h.Jf=function(){this.pg();return this.j}; g.h.isDisposed=function(){return this.J}; g.h.abort=function(){this.Al&&this.Al.cancel().catch(function(){}); this.B&&this.B.abort();this.J=!0}; g.h.Eu=function(){return!0}; g.h.PB=function(){return this.K}; g.h.Ge=function(){return this.errorMessage};g.h=ZR.prototype;g.h.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.fp()}}; g.h.Tt=function(){2===this.xhr.readyState&&this.callbacks.Ut()}; g.h.Gd=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.Rq((0,g.R)(),a.loaded))}; g.h.uq=function(){return 2<=this.xhr.readyState}; g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return jr(Error("Could not read XHR header "+a)),""}}; g.h.Bw=function(){return+this.getResponseHeader("content-length")}; g.h.Ij=function(){return this.u}; g.h.Sx=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u}; g.h.pg=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.h.Zh=function(){this.pg();var a=this.response;this.response=void 0;return new hy([new Uint8Array(a)])}; g.h.Jf=function(){this.pg();return new hy([new Uint8Array(this.response)])}; g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()}; g.h.Eu=function(){return!1}; g.h.PB=function(){return!1}; g.h.Ge=function(){return""};g.v(bS,wR);g.h=bS.prototype;g.h.Ws=function(){var a=QR(this.timing);a.shost=by(this.u.eg);this.B&&(a.rc=this.B.toString());a.itag=this.info.j[0].j.info.Yb();a.ml=""+ +this.info.j[0].j.df();a.sq=""+this.info.j[0].Ma;this.u&&(a.ifi=""+ +Jra(this.info.u.C));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.Ge()&&(a.msg=this.xhr.Ge());this.yy&&(a.smb="1");if(this.j){var b=this.j.re;b.length&&Ssa(b[0],a)}this.info.Zk()&&(a.sdai="1");return a}; g.h.fM=function(){return YHa(this.timing)}; g.h.Ge=function(){return this.xhr.Ge()||""}; g.h.yv=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.zB&&UR(a,a.u));return a}; g.h.Rq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.Zt()?yR(this,2):!this.xa&&this.yv()&&(yR(this),this.xa=!0))}; g.h.Ut=function(){if(!this.isDisposed()&&this.xhr){if(!this.Z&&this.xhr.uq()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Z=((0,g.R)()-a)/1E3}this.xhr.uq()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Cr&&!Vta()&&g.fw("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.J=a||this.J;this.K=b||this.K}}; g.h.fp=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.X.stop(),this.B=a.status,a=dIa(this,a),5===a?aS(this):xR(this,a))}; g.h.canRetry=function(){this.isDisposed();var a=$R(this),b=this.info.Zk()?this.policy.Br:this.policy.xj;return a.timedOut=.8*this.va?(this.C++,b=5<=this.C):this.C=0):(b=this.timing,b.rh&&WR(b,b.now()),a-=b.N,this.policy.Lb&&01E3*b);this.C&&this.callback&&this.callback(this,this.state);b?eIa(this,!1):this.X.start()}}; g.h.dispose=function(){wR.prototype.dispose.call(this);this.X.dispose();this.policy.Pd||cS(this)}; g.h.mD=function(){if(!this.LJ().length)return[];this.N=!0;return zHa(this.j)}; g.h.Zt=function(){if(1>this.state)return!1;if(this.j&&this.j.re.length)return!0;var a;return(null==(a=this.xhr)?0:a.pg())?!0:!1}; g.h.LJ=function(){this.Fo(!1);return this.j?this.j.re:[]}; g.h.Fo=function(a){if(a||this.xhr.uq()&&this.xhr.pg()&&!bIa(this)&&!this.D){if(!this.j){if(this.xhr.Eu())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Ij();this.j=new xHa(this.info.j,b)}for(;this.xhr.pg();)yHa(this.j,this.xhr.Zh(),a&&!this.xhr.pg())}}; g.h.Ij=function(){return this.xhr.Ij()}; g.h.dF=function(){return this.Z}; g.h.jo=function(){return fIa(this)?2:1}; g.h.Ow=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.h.KJ=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J}; g.h.iM=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K}; var cIa=-1;dS.prototype.clear=function(){this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1}; dS.prototype.Qa=function(){};g.v(g.fS,g.G);g.h=g.fS.prototype; g.h.initialize=function(a,b,c){a=a||0;this.Ca.oB(SGa(this.u));if(this.j.isManifestless){if(this.policy.Sh){b=Fra(this.policy);for(var d in this.j.j)this.j.j.hasOwnProperty(d)&&(this.j.j[d].index.C=b)}qIa(this)}this.D&&hIa(this.D,this.videoTrack.j);this.policy.Ja&&Fx()&&this.Aa("streaming",{ac:!!window.AbortController||Gx()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.j.isManifestless?d:a;this.X&&(pIa(this,this.videoTrack),pIa(this,this.audioTrack),cLa(this.X),delete this.X); c?(this.policy.bd?(this.qb=c,kS(this,c)):kS(this,!1),g.vp(this.Sa)):(a=0===this.currentTime,gS(this,this.videoTrack,this.videoTrack.j,a),gS(this,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).Eh(function(){}),this.timing.tick("gv")); (this.j.He||this.j.Ig||this.j.D||this.j.C||this.j.J)&&this.Aa("minMaxSq",{minSq:this.j.He,maxSq:this.j.Ig,minDvrTime:this.j.D,maxDvrTime:this.j.C,startWalltime:this.j.J})}; g.h.resume=function(){if(this.isSuspended||this.xa){this.Xa=this.xa=this.isSuspended=!1;try{this.Jh()}catch(a){g.S(a)}}}; g.h.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.B=b.C.j[a.id];b.K=b.B;a=new VQ(b.K,b.u,"m");tS(this.Ca,a.reason,a.audio.info);uS(this.Ca)}}; g.h.setPlaybackRate=function(a){a!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(a)}; g.h.vt=function(a){var b=a.info.j[0].j,c=a.lastError;if(cy(b.u.j)){var d=g.Kc(a.Ge());this.Aa("dldbrerr",{em:d||"none"})}d=a.info.j[0].Ma;var e=FGa(this.B,a.info.j[0].B,d);if(a.canRetry()){if(!(a.info.u.u>=this.policy.Br&&this.C&&a.info.Zk()&&"net.badstatus"===a.lastError&&this.C.vt(e,d))){d=(b.info.video&&1b&&c.u.pop();a.B.length?a.u=g.Zb(g.Zb(a.B).info.j):a.C.u.length?a.u=oR(a.C).info:a.u=DR(a);a.u&&bb||b!==d)&&this.Aa("sbu_mismatch",{b:pA(a),c:this.currentTime,s:qz(c)})}}this.Jh()}; g.h.wW=function(a){if(this.mediaSource){var b=DR(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.nF())for(var c=0;c=c||cthis.B&&(this.B=c,g.ag(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.vp(this.u))}}; zS.prototype.D=function(){for(var a=g.r(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,e=this.j[c].match(Xi),f=[],k=g.r(e[6].split("&")),l=k.next();!l.done;l=k.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Hh(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=a.size||(a.forEach(function(c,d){var e=XA(b.u)?d:c;d=new Uint8Array(XA(b.u)?c:d);XA(b.u)&&dJa(d);c=g.Jc(d,4);dJa(d);d=g.Jc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),this.Qa("Key statuses changed: "+aJa(this,",")),BS(this,{onkeystatuschange:1}),this.status="kc",this.ea("keystatuseschange",this))}; g.h.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.ea("ctmp","provf",{et:a.toFixed(3)})));CB(b)&&this.dispose()}; g.h.shouldRetry=function(a,b){return this.ya&&this.K?!1:!a&&this.requestNumber===b.requestNumber}; g.h.ra=function(){this.j={};g.iv.prototype.ra.call(this)}; g.h.Nb=function(){var a={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.xa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a}; g.h.Bf=function(){var a=this.D.join();if(DS(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; g.h.Qa=function(){};g.v(GS,g.G);g.h=GS.prototype;g.h.mS=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}}; g.h.bp=function(){this.K&&this.K(this.j.keyStatuses)}; g.h.CO=function(a){this.D&&this.D(a.message,"license-request")}; g.h.BO=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; g.h.AO=function(){this.J&&this.J()}; g.h.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,ir(function(c){hJa(b,"t.update",c)})); this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.N.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,a,this.initData,this.sessionId);return Nr()}; g.h.ra=function(){this.j&&this.j.close();this.element=null;g.G.prototype.ra.call(this)};g.v(HS,g.G);g.h=HS.prototype;g.h.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))}); WA(this.j)?this.B=new (VA())(this.j.keySystem):YA(this.j)?(this.B=new (VA())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(gv(this.D,this.element,["keymessage","webkitkeymessage"],this.pS),gv(this.D,this.element,["keyerror","webkitkeyerror"],this.oS),gv(this.D,this.element,["keyadded","webkitkeyadded"],this.nS));return null}; g.h.setServerCertificate=function(){return"widevine"===this.j.flavor&&this.j.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.j.B):null}; g.h.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();ZA(this.j)&&(c=iJa(c,this.j.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new GS(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},ir(function(f){hJa(e,"t.generateRequest",f)})); return e}if(WA(this.j))return kJa(this,c);if(YA(this.j))return jJa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new GS(this.element,this.j,c,null,null)}; g.h.pS=function(a){var b=IS(this,a);b&&b.CO(a)}; g.h.oS=function(a){var b=IS(this,a);b&&b.BO(a)}; g.h.nS=function(a){var b=IS(this,a);b&&b.AO(a)}; g.h.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a}; g.h.ra=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.r(Object.values(this.J));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.J={};g.G.prototype.ra.call(this);delete this.element};g.v(JS,g.G); JS.prototype.init=function(){var a=this,b,c;return g.B(function(d){if(1==d.j)return g.Jm(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.D,document.body.appendChild(a.j),a.C.T(a.j,"encrypted",a.J),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new HS(a.j, a.B);g.H(a,a.u);a.u.attach();g.ua(d)})}; JS.prototype.J=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new hR(c,a.initDataType);var d=HIa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.Qa()}); f&&(g.H(this,f),this.D.push(f),SIa(f,function(k){fJa(k,f.j,d,e)},function(){b.Qa()},function(){},function(){}))}}; JS.prototype.Qa=function(){}; JS.prototype.ra=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.G.prototype.ra.call(this)};g.v(KS,yS); KS.prototype.J=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ea("log_qoe",{wvagt:"delay."+ c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?lJa(this,a):(this.j.push({time:b+c,info:a}),g.vp(this.u,c))}}; KS.prototype.ra=function(){this.j=[];yS.prototype.ra.call(this)};LS.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null}; LS.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; LS.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; LS.prototype.findIndex=function(a){return g.bc(this.keys,function(b){return g.uc(a,b)})};g.v(NS,g.iv);g.h=NS.prototype;g.h.qS=function(a){this.Vg({onecpt:1});a.initData&&qJa(this,new Uint8Array(a.initData),a.initDataType)}; g.h.yX=function(a){this.Vg({onndky:1});qJa(this,a.initData,a.contentType)}; g.h.St=function(a){this.Vg({onneedkeyinfo:1});this.Y.S("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));pJa(this,a)}; g.h.UK=function(a){this.B.push(a);OS(this)}; g.h.createSession=function(a){var b=rJa(this)?fHa(a):g.Jc(a.initData);this.u.get(b);this.va=!0;a=new CS(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.dO,this);a.subscribe("keystatuseschange",this.bp,this);a.subscribe("licenseerror",this.nB,this);a.subscribe("newlicense",this.wO,this);a.subscribe("newsession",this.xO,this);a.subscribe("sessionready",this.JO,this);a.subscribe("fairplay_next_need_key_info",this.nO,this);UIa(a,this.C)}; g.h.wO=function(a){this.isDisposed()||(this.Qa(),this.Vg({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))}; g.h.xO=function(){this.isDisposed()||(this.Qa(),this.Vg({newlcssn:1}),this.B.shift(),this.va=!1,OS(this))}; g.h.JO=function(){if(WA(this.j)&&(this.Qa(),this.Vg({onsnrdy:1}),this.Ea--,0===this.Ea)){var a=this.Z;a.element.msSetMediaKeys(a.B)}}; g.h.bp=function(a){if(!this.isDisposed()){!this.ya&&this.videoData.S("html5_log_drm_metrics_on_key_statuses")&&(sJa(this),this.ya=!0);this.Qa();this.Vg({onksch:1});if(!DS(a)&&g.pt&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(DS(a))for(var d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.j[e].status&&b.push(a.j[e].type),"unknown"!==a.j[e].status&&(c=!1);if(!DS(a)||c)b=a.D;b=g.dc(b,"UHD2")||g.dc(b,"UHD2HDR")? "highres":g.dc(b,"UHD1")||g.dc(b,"UHD1HDR")?"hd2160":g.dc(b,"HD")||g.dc(b,"HDHDR")?"hd1080":g.dc(b,"HD720")||g.dc(b,"HD720HDR")?"hd720":"large"}a:{c=g.Kx("auto",b,!1,"l");if(this.videoData.ag){if(this.N.equals(c))break a}else if(tra(this.N,b))break a;this.N=c;this.ea("qualitychange");this.Qa();this.Vg({updtlq:b})}this.ea("keystatuseschange",a)}}; g.h.dO=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)}; g.h.nO=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)}; g.h.nB=function(a,b,c,d){this.isDisposed()||(this.videoData.S("html5_log_drm_metrics_on_error")&&sJa(this),this.ea("licenseerror",a,b,c,d))}; g.h.jt=function(){return this.N}; g.h.ra=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.dO,this),b.unsubscribe("keystatuseschange",this.bp,this),b.unsubscribe("licenseerror",this.nB,this),b.unsubscribe("newlicense",this.wO,this),b.unsubscribe("newsession",this.xO,this),b.unsubscribe("sessionready",this.JO,this),b.unsubscribe("fairplay_next_need_key_info",this.nO,this),b.dispose(); this.u.clear();MS(this.J);MS(this.K);this.heartbeatParams=null;g.iv.prototype.ra.call(this)}; g.h.Nb=function(){for(var a={systemInfo:this.j.Nb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Nb());return a}; g.h.Bf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.Bf()+(this.D?"/KR":"")}; g.h.Vg=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.Qa(AB(a)),(jD(this.Y)||b)&&this.ea("ctmp","drmlog",a))}; g.h.Qa=function(){};g.v(RS,g.G);RS.prototype.QA=function(){return this.B}; RS.prototype.handleError=function(a){var b=this;xJa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!TS(this,a.errorCode,a.details))&&!zJa(this,a))if(CB(a.severity)){var c,d=null==(c=this.Ca.Va)?void 0:c.u.j;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.j.C&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.Ca.Wf(a.errorCode, a.severity,e,AB(a.details),f)}else this.Ca.ea("nonfatalerror",a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.Nd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.R)(),EB(a,"manifest",function(k){b.J=!0;b.Aa("pathprobe",k)},function(k){b.Nd(k.errorCode,k.details)}))}; RS.prototype.Aa=function(a,b){this.Ca.Zb.Aa(a,b)}; RS.prototype.Nd=function(a,b){b=AB(b);this.Ca.Zb.Nd(a,b)};US.prototype.setPlaybackRate=function(a){this.playbackRate=a}; US.prototype.S=function(a){return this.Y.S(a)};g.v(VS,g.G);VS.prototype.Tc=function(a){RJa(this);this.playerState=a.state;0<=this.B&&g.BF(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; VS.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match($Ta)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; VS.prototype.send=function(){if(!(this.C||0>this.u)){RJa(this);var a=g.IP(this.j)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=FMa[pE(this.j.videoData)];a:switch(this.j.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=0>this.B?a:this.B-this.u;a=this.j.Y.Od+ 36E5<(0,g.R)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.j.videoData.isAd(),liveMode:c,hasDrm:!!g.nE(this.j.videoData),isGapless:this.j.videoData.Ea,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.Es("html5PlayerHealthEvent",b);this.j.S("html5_health_to_qoe")&& (b.muted=a,this.K(b));this.C=!0;this.dispose()}}; VS.prototype.ra=function(){this.C||this.send();g.G.prototype.ra.call(this)}; var $Ta=/\bnet\b/;var TJa=window;var SJa=/[?&]cpn=/;g.v(g.aT,g.G);g.h=g.aT.prototype;g.h.PU=function(){var a=g.IP(this.j);bT(this,a)}; g.h.Gw=function(){return this.ya}; g.h.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.IP(this.j),-1<["PL","B","S"].indexOf(this.Ld)&&(!g.ag(this.u)||a>=this.C+30)&&(g.$S(this,a,"vps",[this.Ld]),this.C=a),!g.ag(this.u))){7E3===this.sequenceNumber&&g.Sv(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){cT(this,a);var b=a,c=this.j.Ca.Qw(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Ya,k=e&&!this.qb;d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.j.Ca.Cx(),this.u.qoealert=["1"],this.Ra=!0)}"B"!==a||"PL"!==this.Ld&&"PB"!==this.Ld||(this.va=!0);this.C=c}"PL"===this.Ld&&("B"=== a||"S"===a)||jD(this.j.Y)?cT(this,c):bT(this,c);"PL"===a&&g.vp(this.Db);g.$S(this,c,"vps",[a]);this.Ld=a;this.C=this.Sa=c;this.D=!0}a=b.getData();g.V(b,128)&&a&&YJa(this,c,a.errorCode,a.OE,a.qH);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Jc()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);dT(this)}; g.h.Hx=function(a){var b=g.IP(this.j);g.$S(this,b,"vfs",[a.j.id,a.u,this.rb,a.reason]);this.rb=a.j.id;var c=this.j.Ca.getPlayerSize();if(0b-this.lastUpdateTime+2||fKa(this,a,b))){var d=this.j.Nh();c=d.volume;var e=c!==this.Z;d=d.muted;d!==this.X?(this.X=d,c=!0):(!e||0<=this.D||(this.Z=c,this.D=b),c=b-this.D,0<=this.D&&2=this.j.videoData.Gb;a&&(this.C&&this.j.videoData.Gb&&(a=oT(this,"delayplay"),a.Od=!0,a.send(),this.Z=!0),jKa(this))}; g.h.Tc=function(a){this.isDisposed()||(g.V(a.state,2)?(this.currentPlayerState="paused",g.BF(a,2)&&this.C&&rT(this).send()):g.V(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&pT(this,!1)):this.currentPlayerState="paused")}; g.h.ra=function(){g.G.prototype.ra.call(this);g.Dr(this.B);this.B=NaN;dKa(this.u)}; g.h.Nb=function(){return lT(oT(this,"playback"))}; g.h.Mu=function(){this.j.videoData.K.eventLabel=AE(this.j.videoData);this.j.videoData.K.playerStyle=this.j.Y.playerStyle;this.j.videoData.Ub&&(this.j.videoData.K.feature="pyv");this.j.videoData.K.vid=this.j.videoData.videoId;var a=this.j.videoData.K;var b=this.j.videoData;b=b.isAd()||!!b.Ub;a.isAd=b}; g.h.ih=function(a){var b=oT(this,"engage");b.X=a;return gKa(b,oKa(this.j))};nKa.prototype.isEmpty=function(){return this.endTime===this.startTime};tT.prototype.S=function(a){return this.Y.S(a)}; var pKa={other:1,none:2,wifi:3,cellular:7};g.v(g.uT,g.G);g.h=g.uT.prototype;g.h.Tc=function(a){if(g.BF(a,1024)||g.BF(a,512)||g.BF(a,4)){var b=this.C;0<=b.B||(b.u=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.J||(b.B=-1))}if(this.u.videoData.enableServerStitchedDai&&this.gg){var c;null==(c=this.B.get(this.gg))||c.Tc(a)}else this.j&&this.j.Tc(a);this.qoe&&this.qoe.Tc(a);this.C.Tc(a)}; g.h.Gd=function(){if(this.u.videoData.enableServerStitchedDai&&this.gg){var a;null==(a=this.B.get(this.gg))||a.Gd()}else this.j&&this.j.Gd()}; g.h.Nd=function(a,b){this.qoe&&ZJa(this.qoe,a,b);this.C.onError(a)}; g.h.Hx=function(a){this.qoe&&this.qoe.Hx(a)}; g.h.Ax=function(a){this.qoe&&this.qoe.Ax(a)}; g.h.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)}; g.h.ap=ca(37);g.h.Aa=function(a,b,c){this.qoe&&this.qoe.Aa(a,b,c)}; g.h.Ux=function(a,b,c){this.qoe&&this.qoe.Ux(a,b,c)}; g.h.Tx=function(a){this.qoe&&this.qoe.Tx(a)}; g.h.ju=function(a,b,c){this.qoe&&this.qoe.ju(a,b,c)}; g.h.Zo=ca(40);g.h.Xj=ca(16);g.h.Gw=function(){if(this.qoe)return this.qoe.Gw()}; g.h.Nb=function(){if(this.u.videoData.enableServerStitchedDai&&this.gg){var a;null==(a=this.B.get(this.gg))||a.Nb()}else if(this.j)return this.j.Nb();return{}}; g.h.ih=function(a){return this.j?this.j.ih(a):function(){}}; g.h.Mu=function(){this.j&&this.j.Mu()};g.v(vT,g.G);g.h=vT.prototype;g.h.Qd=function(a,b){this.Ck();b&&2E3<=this.j.j.length&&this.ww("captions",1E4);b=this.j;if(1b.j.length)b.j=b.j.concat(a),b.j.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.j.length||0a&&this.C.start()))}; g.h.ME=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.u)/this.ma(),this.C.start(a)))}}; g.h.WM=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.V(a,32)&&this.Z.start();for(var b=g.V(this.D(),2)?0x8000000000000:1E3*this.N(),c=g.V(a,2),d=[],e=[],f=g.r(this.B),k=f.next();!k.done;k=f.next())k=k.value,k.active&&(c?0x8000000000000>k.end:!k.contains(b))&&e.push(k);d=d.concat(this.QE(e));f=e=null;c?(a=zKa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=AKa(this.j)):a=this.u<=b&&CH(a)?yKa(this.j,this.u,b):zKa(this.j,b); d=d.concat(this.ME(a));e&&(d=d.concat(this.QE(e)));f&&(d=d.concat(this.ME(f)));this.u=b;DKa(this,d)}}; g.h.ra=function(){this.B=[];this.j.j=[];g.G.prototype.ra.call(this)}; g.BP.JA(vT,{Qd:"crmacr",ME:"crmncr",QE:"crmxcr",WM:"crmis",Vf:"crmrcr"});g.v(zT,g.iv);zT.prototype.Gm=function(){return this.K}; zT.prototype.Hj=function(){return Math.max(this.N()-JKa(this,!0),this.videoData.getMinSeekableTime())}; zT.prototype.Qa=function(){};g.v(ET,g.G);ET.prototype.Tc=function(){g.vp(this.B)}; ET.prototype.D=function(){var a=this,b=this.Ca.yd(),c=this.Ca.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.V(c,8)&&g.V(c,16),k=this.Ca.Co().isBackground()||c.isSuspended();FT(this,this.ya,f&&!k,e,"qoe.slowseek",function(){},"timeout"); f=f&&isFinite(this.j)&&0d+5;q=p&&m&&q;FT(this,this.K,q&&!k,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");FT(this,this.N,q&&!k,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var w=f.getCurrentTime();n=b.qq();n=gta(n,w);n=!f.J.u&&d===n;FT(this,this.Sa,p&&m&&n&&!k,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(w)},"seek_to_loader")}FT(this,this.X,p&&m&&!k,p&&!m,"qoe.longrebuffer",function(){}, "timeout"); n=c.isSuspended();n=g.dc(this.Ca.Yi,"ad")&&!n;FT(this,this.J,n,!n,"qoe.start15s",function(){a.Ca.Ie("ad")},"ads_preroll_timeout"); n=this.Ca.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.Ca,y=x.cm.Lc();(!y||!x.videoData.isAd()||y.getVideoData().Cc!==x.getVideoData().Cc)&&x.videoData.oe||x.Wf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)}; FT(this,this.Ia,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&rA(b.hg(),d+5)&&q;FT(this,this.Ja,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");FT(this,this.Ra,g.BH(c)&&g.V(c,64)&&!k,e,"qoe.start15s",function(){},"timeout"); FT(this,this.Z,!!f&&!f.mediaSource&&g.BH(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}}; ET.prototype.Nd=function(a,b,c){b=this.Nb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Ca.Nd(new g.BB(a,b));this.u[a]=!0}; ET.prototype.Nb=function(a){a=Object.assign(this.Ca.Nb(!0),a.Nb());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; CT.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1}; CT.prototype.Nb=function(){var a={},b=(0,g.R)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.v(HT,g.G);g.h=HT.prototype;g.h.setMediaElement=function(a){g.hv(this.Ia);(this.qa=a)?($Ka(this),GT(this)):JT(this)}; g.h.Tc=function(a){this.Z.Tc(a);this.S("html5_exponential_memory_for_sticky")&&(a.state.Jc()?g.vp(this.ma):this.ma.stop());if(this.qa)if(8===a.Wo.state&&CH(a.state)&&g.DH(a.state)){if(this.policy.B){a=this.qa.getCurrentTime();var b=this.qa.hg();var c=this.S("manifestless_post_live_ufph")||this.S("manifestless_post_live")?qA(b,Math.max(a-3.5,0)):qA(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Ra-c)||(this.Ca.Aa("seekover",{b:pA(b,"_"),cmt:a}), this.Ra=c,this.seekTo(c,{xq:!0,qe:"playbacktimeline_postLiveDisc"})))}}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.ib&&0=this.xd())||!g.sE(this.videoData);l||this.Ca.Aa("seeknotallowed",{st:c,mst:this.xd()});if(!l)return this.C&&(this.C=null,MT(this)),vi(this.getCurrentTime());this.Qa();if(.005>Math.abs(a-this.j)&&this.N)return this.Qa(),this.D;k&&(c=a,(2<=this.Y.X|| this.S("html5_log_seek_reasons"))&&this.Ca.Aa("seekreason",{reason:k,tgt:c}));this.N&&JT(this);this.D||(this.D=new zP);a&&!isFinite(a)&&IT(this,!1);k=a;(LT(this)&&!(this.qa&&0e.videoData.endSeconds&& isFinite(f)&&zU(e);fb.start&&zU(this.Ca);return this.D}; g.h.xd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.xd();var b;if(!this.S("html5_linear_live_max_seekable_killswitch")&&JE(this.videoData)&&(null==(b=this.qa)?0:b.Nl())&&this.videoData.j)return a=this.getCurrentTime(),cxa(1E3*this.getIngestionTime(a))+a;if(cE(this.videoData)&&this.videoData.fh&&this.videoData.j)return this.videoData.j.xd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.Hj();a=this.videoData.xd();this.policy.j&&this.qa&& (a=Math.max(a,zya(this.qa)));return a+this.timestampOffset}return this.qa?bs()?cxa(this.qa.Zy().getTime()):sH(this.qa)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.h.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(JE(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.getIngestionTime(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a}; g.h.ra=function(){KT(this,null);this.Z.dispose();g.G.prototype.ra.call(this)}; g.h.Nb=function(){var a={};this.Va&&Object.assign(a,this.Va.Nb());this.qa&&Object.assign(a,this.qa.Nb());return a}; g.h.ZG=function(a){this.timestampOffset=a}; g.h.getStreamTimeOffset=function(){return cE(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.h.rd=function(){return this.timestampOffset}; g.h.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)}; g.h.mq=function(){if(!this.qa)return 0;if(tE(this.videoData)){var a=zya(this.qa)+this.timestampOffset-this.getMinSeekableTime(),b=this.xd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.qa.mq()}; g.h.oB=function(a){this.J&&(this.J.j=a.audio.index)}; g.h.S=function(a){return this.Y&&this.Y.S(a)}; g.h.Qa=function(){};NT.prototype.isFinished=function(){return this.finished}; NT.prototype.start=function(){this.started=!0}; NT.prototype.reset=function(){this.finished=this.started=!1};OT.prototype.encrypt=function(a){return(new dC(this.j.j)).encrypt(a,this.iv)}; OT.prototype.decrypt=function(a,b){return(new dC(this.j.j)).decrypt(a,b)};g.v(PT,g.G);PT.prototype.pg=function(a){var b;return!(null==(b=this.ke.get(a))||!b.re.totalLength)}; PT.prototype.Zh=function(a){a=this.ke.get(a);var b=a.re;a.Bz+=b.totalLength;a.re=new hy;return b}; PT.prototype.cf=function(a){return this.ke.get(a).cf}; PT.prototype.ra=function(){g.G.prototype.ra.call(this);for(var a=g.r(this.ke.keys()),b=a.next();!b.done;b=a.next())QT(this,b.value);this.ke.clear()};TT.prototype.decrypt=function(a){var b=this,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;c=new Uint8Array(16);UB()?d=new cC(a):e=new dC(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Za(3);break}f=b.j.shift();if(!d){k=e.decrypt(my(f.buffer),c);m.Za(4);break}return g.A(m,d.decrypt(my(f.buffer),c),5);case 5:k=m.u;case 4:l=k;for(var n=0;na||0>c||!(b+c<=this.j.totalLength))break;b=this.j.split(b).Ar.split(c);c=b.Ar;this.callbacks.Nm.feed(a,b.FF);this.j=c}}; hU.prototype.dispose=function(){this.j=new hy};g.v(iU,g.G);g.h=iU.prototype;g.h.xe=function(a){this.Ca.xe(a)}; g.h.IG=function(){this.xe("orfb");this.MA=!0;if(XLa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Ij(),rt:(1E3*YHa(this.Cl)).toFixed(),shost:g.lj(this.Vt),trigger:"o1"};this.Aa("pathprobe",AB(a))}}; g.h.VG=function(){this.xe("orpr");this.IM=!0}; g.h.uB=function(a,b,c){var d;if(null!=(d=UT(this,a))){var e=d.ke.get(a);e.Fj=b;c&&d.j.S("html5_onesie_consume_media_slices")&&(0>=c.zz||0>=c.bC||0>=c.durationMs||0>c.startTimeMs?RT(d,a):e.EN.push(c))}gU(this)}; g.h.OG=function(){if(this.hf)for(var a=g.r(this.hf.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.hf.get(b.value))||ST(c)}else null==(a=this.pe)||ST(a)}; g.h.Aa=function(a,b,c){this.Ca.Aa(a,b,void 0===c?!1:c)}; g.h.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,q,t,w;return g.B(function(x){if(1==x.j){a.xB.start();a.xe("ogpd");var y=a.videoData,z,E=y.V(),I=E.Cd;if(null==I?0:I.baseUrl){var J;if(!(J=g.TA(E.experiments,"debug_bandaid_hostname"))){if(null==(E=E.Ah))E=void 0;else if(J=E.j.get(0)){var N=J;if(E.experiments.ob("html5_onesie_host_racing_during_prewarming")){var aa=E.j.values();aa=g.r(aa);for(var K=aa.next();!K.done;K=aa.next())K=K.value,LB(K)Ma&&(Va=Va.subarray(0,Ma)),za=Va);oa=oa.S("html5_onesie_prefer_trusted_host");f={url:z,httpHeaders:Qb,postBody:za,proxiedByTrustedBandaid:oa&&na,skipResponseEncryption:oa&&na};try{var zb=a.Y,sc=a.videoData,Td=a.Ca.getPlayerSize(), le=a.Ca.getVisibilityState();y=a.EL.onesieUstreamerConfig;I=null==(k=a.videoData.Fr)?void 0:k.II;var Ha=a.bH,Ie=eCa(f,qLa),Of=Ha.encrypt(Ie),Pf=Ha.j.encryptedClientKey,Rh=Ha.iv,Ud=Ha.iv,Mb=new XB(Ha.j.B);Mb.update(Of);Mb.update(Ud);var dh=Fua(Mb);Mb.update(Mb.D);Mb.update(dh);var Vd=Fua(Mb);Mb.reset();var Gk=zb.S("html5_onesie_ads"),Zi=!!f.skipResponseEncryption,Hk=lC(zb.schedule,!0),Ed=Zi&&zb.S("html5_onesie_disable_js_cleartext_compression")||!!UB()&&1572864=a.start);return a}; g.h.Gm=function(){return this.Uc.Gm()}; g.h.Jc=function(){return this.playerState.Jc()}; g.h.getPlayerState=function(){return this.playerState}; g.h.getPlayerType=function(){return this.playerType}; g.h.getPreferredQuality=function(){if(this.Pe){var a=this.Pe;a=a.videoData.Pr.compose(a.videoData.nQ);a=Nx(a)}else a="auto";return a}; g.h.Jw=ca(11);g.h.isGapless=function(){return!!this.qa&&this.qa.isView()}; g.h.setMediaElement=function(a){if(this.qa&&a.Je()===this.qa.Je()&&(a.isView()||this.qa.isView())){if(a.isView()||!this.qa.isView())g.hv(this.Pu),this.qa=a,CMa(this),this.Uc.setMediaElement(this.qa)}else{this.qa&&this.Og();if(!this.playerState.isError()){var b=yH(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=xH(b,1));a.isView()&&(b=yH(b,64));this.hc(b)}this.qa=a;this.qa.setLoop(this.loop);this.qa.setPlaybackRate(this.playbackRate);CMa(this);this.Uc.setMediaElement(this.qa);this.S("html5_prewarm_media_source")&& !this.Ej.hx&&(a=this.qa,a.B||a.Cf()||!jta()||(a.B=a.oq()))}}; g.h.Og=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.qa){var c=this.getCurrentTime();0this.qa.getCurrentTime()&&this.Va)return;break;case "resize":MMa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.cL&&g.V(this.playerState, 8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.Rs){uU(this,"safari_autoplay_disabled");return}}if(this.qa&&this.qa.Cf()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.Wv;var e=this.qa,f=this.Y.experiments;d=b.state;e=e?e:a.target;var k=e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.vl()||1Math.abs(k-e.getDuration());k="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!wT(c,k);if("pause"===a.type&& e.vl()||l&&k)0a-this.SA))this.SA=a,b!==this.Ef()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Oe()),this.Aa("airplay",{rbld:b}),SS(this)),this.ea("airplayactivechange")}; g.h.Rw=function(a){if(this.Va){var b=this.Va,c=b.B,d=b.currentTime;c.Aa("sdai",{adfetchdone:a});a&&!isNaN(c.C)&&HGa(c,d,c.C,c.B);UQ(c,4,"adf");g.vp(b.ma)}}; g.h.Qb=function(a){var b=this;a=void 0===a?!1:a;if(this.qa&&this.videoData){SKa(this.Uc,this.Jc());var c=this.getCurrentTime();this.Va&&(g.V(this.playerState,4)&&g.sE(this.videoData)||EIa(this.Va,c));5Math.abs(m-k)?(b.Aa("setended",{ct:k,bh:l,dur:m,live:n}),n&&b.S("html5_set_ended_in_pfx_live_cfl")||(b.qa.nq()?b.seekTo(0,{qe:"videoplayer_loop"}):JP(b))):(g.DH(b.playerState)||JU(b,"progress_fix"),b.hc(xH(b.playerState,1)))):(m&&!n&&!p&&0n-1&&b.Aa("misspg", {t:k.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.V(b.playerState,4)&&g.DH(b.playerState)&&5AF(b,8)||g.BF(b,1024))&&this.Jq.stop();!g.BF(b,8)||this.videoData.ib||g.V(b.state,1024)||this.Jq.start();g.V(b.state,8)&&0>AF(b,16)&&!g.V(b.state,32)&&!g.V(b.state,2)&&this.playVideo();g.V(b.state, 2)&&tE(this.videoData)&&(this.ek(this.getCurrentTime()),this.Qb(!0));g.BF(b,2)&&this.IH(!0);g.BF(b,128)&&this.Wm();this.videoData.j&&this.videoData.isLivePlayback&&!this.vQ&&(0>AF(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.BF(b,8)&&this.videoData.j.resume());this.Uc.Tc(b);this.Zb.Tc(b);if(c&&!this.isDisposed())try{for(var k=g.r(this.GB),l=k.next();!l.done;l=k.next()){var m=l.value;this.Ag.Tc(m);this.ea("statechange",m)}}finally{this.GB.length=0}}}; g.h.Cx=function(){this.videoData.isLivePlayback||this.ea("connectionissue")}; g.h.WG=function(){this.Ib.tick("qoes")}; g.h.nB=function(a,b,c,d){a:{var e=this.Ej;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=CB(b);"drm.keyerror"===a&&this.Wd&&1e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())AJa(e,a);else{if(e.Ca.Wf(a,b,d,c),e.videoData.S("html5_exile_on_drm_fatal")&&tJa(e,{detail:c}))break a}else e.Nd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.Aa("retrydrm",{sessionLimitExhausted:1}),e.D++,JMa(e.Ca))}}; g.h.jX=function(){var a=this,b=g.aB(this.Y.experiments,"html5_license_constraint_delay"),c=ks();b&&c?(b=new g.L(function(){wU(a);rU(a)},b),g.H(this,b),b.start()):(wU(this),rU(this))}; g.h.Ex=function(a){this.ea("heartbeatparams",a)}; g.h.bp=function(a){this.Aa("keystatuses",bJa(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.S("html5_drm_check_all_key_error_states")){var d=cJa(b,c);d=DS(a)?ES(a,d):a.D.includes(d)}else{a:{b=cJa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.ma&&d;c&&!b?AJa(this.Ej):d||ES(a,"AUDIO")&&ES(a,"SD")||(this.CH?this.ea("drmoutputrestricted"):(this.CH= !0,this.Aa("retrydrm",{o:1}),xU(this),JMa(this)))}; g.h.mX=function(){if(!this.videoData.ib&&this.qa&&!this.isBackground()){var a="0";0=c.u.size){var d="ns;";c.X||(d+="nr;");c=d+="ql."+c.B.length}else c=bJa(c.u.values().next().value),c=AB(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Va)?void 0:e.Nb())||{});var f;Object.assign(a,(null==(f=this.qa)?void 0:f.Nb())||{})}this.Zb.Nd("qoe.start15s",AB(a));this.ea("loadsofttimeout")}}; g.h.ek=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,rU(this))}; g.h.IH=function(a){var b=this;a=void 0===a?!1:a;if(!this.xz){Ax("att_s","player_att")||Bx("att_s",void 0,"player_att");var c=new g.LBa(this.videoData);if("c1a"in c.j&&!g.nK.isInitialized()&&(Bx("att_wb",void 0,"player_att"),2===this.fE&&.01>Math.random()&&g.Sv(Error("Botguard not available after 2 attempts")),!a&&5>this.fE)){g.vp(this.gE);this.fE++;return}if("c1b"in c.j){var d=tKa(this.Zb);d&&OBa(c).then(function(e){e&&!b.xz&&d?(Bx("att_f",void 0,"player_att"),d(e),b.xz=!0):Bx("att_e",void 0,"player_att")}, function(){Bx("att_e",void 0,"player_att")})}else(a=g.MBa(c))?(Bx("att_f",void 0,"player_att"),sKa(this.Zb,a),this.xz=!0):Bx("att_e",void 0,"player_att")}}; g.h.xd=function(a){return this.Uc.xd(void 0===a?!1:a)}; g.h.getMinSeekableTime=function(){return this.Uc.getMinSeekableTime()}; g.h.rd=function(){return this.Uc?this.Uc.rd():0}; g.h.getStreamTimeOffset=function(){return this.Uc?this.Uc.getStreamTimeOffset():0}; g.h.zm=function(){var a=0;this.Y.S("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.rd():this.getStreamTimeOffset());return a}; g.h.setPlaybackRate=function(a){var b=this.videoData.C&&this.videoData.C.videoInfos&&32=+c),b.dis=this.qa.getStyle("display"));(a=a?(0,g.fT)():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.h.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.zb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.h.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(OU(this))return 3;var b;return a&&(null==(b=this.Ad)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.iL(this).getPlayerType()}; g.h.zb=function(a){return 3===this.getPresentingPlayerType()?cL(this.Ac).Ld:g.iL(this,a).getPlayerState()}; g.h.getAppState=function(){return this.appState}; g.h.aH=function(a){var b=this;switch(a.type){case "loadedmetadata":lL(this.Ib,"fvb");this.ZB.start();g.wc(this.vu,function(c){lNa(b,c.id,c.F_,c.E_,!1)}); this.vu=[];break;case "loadstart":lL(this.Ib,"gv");break;case "progress":case "timeupdate":2<=tA(a.target.hg())&&lL(this.Ib,"l2s");break;case "playing":g.eD&&this.ZB.start(),hNa(this)&&(this.Cb.Aa("hidden",{},!0),this.getVideoData().vb||(this.S("html5_new_elem_on_hidden")?(this.getVideoData().vb=1,this.vO(null),this.Cb.playVideo()):RU(this,"hidden",!0)))}}; g.h.onLoadProgress=function(a,b){this.Ua.Oa("onLoadProgress",b)}; g.h.BY=function(){this.Ua.ea("playbackstalledatstart")}; g.h.onVideoProgress=function(a,b){a=UU(this,a);b=eV(this,a.getCurrentTime(),a);this.Ua.Oa("onVideoProgress",b)}; g.h.onAutoplayBlocked=function(){this.Ua.Oa("onAutoplayBlocked")}; g.h.TX=function(){this.Ua.ea("progresssync")}; g.h.zW=function(a){if(1===this.getPresentingPlayerType()){g.BF(a,1)&&!g.V(a.state,64)&&KU(this).isLivePlayback&&this.wb.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){fNa(this);return}$Ma(this)}if(g.V(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Oa("onError",QTa[b.errorCode]||5);this.Ua.Oa("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.NE});6048E5<(0,g.R)()-this.Y.Od&&this.Ua.Oa("onReloadRequired")}b={};if(a.state.Jc()&&!g.DH(a.state)&&!Ax("pbresume","ad_to_video")&&Ax("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);mx(b,"ad_to_video");if(this.S("html5_csi_delay_pbresume")){if(Ax("plev","ad_to_video")&&!isNaN(this.Ib.u))if(b=1E3*(this.getCurrentTime()-this.Ib.u),0>b){var d;null==(d=g.iL(this))|| d.Aa("csir",{ossms:b})}else if(1E5Math.random()&&g.Es("autoplayTriggered",{intentional:this.VM});this.wN=!1;MCa(this.Ac);this.S("web_player_defer_ad")&&VU(this);this.Ua.Oa("onPlaybackStartExternal");this.Y.S("mweb_client_log_screen_associated");(function(){var c=g.Lv(a.DP||(a.Te()?3:0));if(c&&"UNDEFINED_CSN"!==c){var d={cpn:a.getVideoData().clientPlaybackNonce, csn:c};if(a.Y.S("web_playback_associated_ve")&&a.getVideoData().Xa){var e=g.Hv(a.getVideoData().Xa);g.Xv(c,e,void 0);d.playbackVe=e.getAsJson()}a.Y.S("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.S("web_playback_associated_log_ctt")&&a.getVideoData().X&&(c.cttAuthInfo={token:a.getVideoData().X,videoId:a.getVideoData().videoId});g.Es("playbackAssociated",d,c)}else g.Sv(new g.Js("CSN Missing or undefined during playback association"))})(); var b={};!this.S("web_player_csi_ctt_killswitch")&&this.getVideoData().X&&(b.cttAuthInfo={token:this.getVideoData().X,videoId:this.getVideoData().videoId});nx("player_att",b);this.getVideoData().botguardData&&(g.ZC(this.Y)||"MWEB"===this.Y.deviceParams.c?g.Ur(g.Wr(),function(){aV(a)}):aV(this)); this.aC()}; g.h.MG=function(){this.Ua.ea("internalAbandon");this.S("html5_ad_module_cleanup_killswitch")||fV(this)}; g.h.jO=function(a){a=a.j;!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.qa.uw())}; g.h.lX=function(a){3!==this.getPresentingPlayerType()&&this.Ua.ea("liveviewshift",a)}; g.h.playVideo=function(a){if(a=g.iL(this,a))2===this.appState?$U(this):(null!=this.uj&&this.uj.ub&&this.uj.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; g.h.pauseVideo=function(a){(a=g.iL(this,a))&&a.pauseVideo()}; g.h.stopVideo=function(){var a=this.wb.getVideoData(),b=new g.WD(this.Y,{video_id:a.PD||a.videoId,oauth_token:a.oauthToken});b.Z=g.fg(a.Z);this.cancelPlayback(6);jV(this,b,1);null!=this.uj&&this.uj.stop()}; g.h.cancelPlayback=function(a,b){Ft(this.xp);this.xp=0;var c=g.iL(this,b);c&&(this.Y.S("html5_high_res_logging")&&c.Aa("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Cb&&FL(this.Ac,a),1===b&&(c.stopVideo(),fV(this)),c.Wm(),QU(this,"cuerangesremoved",c.tm()),c.Ag.reset(),this.Ru&&c.isGapless()&&(c.Og(!0),c.setMediaElement(this.qa))))}; g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.iL(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.h.ih=function(a){var b=g.iL(this,void 0);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.ih(a):null}; g.h.updatePlaylist=function(){XC(this.Y)?XU(this):g.AC(this.Y)&&YU(this);this.Ua.Oa("onPlaylistUpdate")}; g.h.setSizeStyle=function(a,b){this.OP=a;this.VF=b;this.Ua.ea("sizestylechange",a,b);this.template.resize()}; g.h.isWidescreen=function(){return this.VF}; g.h.Te=function(){return this.visibility.Te()}; g.h.isInline=function(){return this.visibility.isInline()}; g.h.Ht=function(){return this.visibility.Ht()}; g.h.Dt=function(){return this.visibility.Dt()}; g.h.ex=function(){return this.OP}; g.h.getAdState=function(){if(3===this.getPresentingPlayerType())return cL(this.Ac).getAdState();if(!this.oe()){var a=GL(this.tb());if(a)return a.getAdState()}return-1}; g.h.eY=function(a){var b=this.template.getVideoContentRect();Fm(this.pN,b)||(this.pN=b,this.Cb&&wU(this.Cb),this.wb&&this.wb!==this.Cb&&wU(this.wb),1===this.Zs()&&this.Ix&&qNa(this,!0));this.bG&&g.Fh(this.bG,a)||(this.Ua.ea("appresize",a),this.bG=a)}; g.h.tf=function(){return this.Ua.tf()}; g.h.wY=function(){2===this.getPresentingPlayerType()&&this.ud.isManifestless()&&!this.S("web_player_manifestless_ad_signature_expiration_killswitch")?aGa(this.ud):(this.Ad&&(ZP(this.Ad),fV(this)),RU(this,"signature",void 0,!0))}; g.h.vO=function(){this.Og();PU(this)}; g.h.zX=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ua.Oa("onPlayerRequestAuthFailed")}; g.h.Cx=function(){this.Ua.Oa("CONNECTION_ISSUE")}; g.h.Ex=function(a){this.Ua.ea("heartbeatparams",a)}; g.h.XB=function(a){this.Ua.Oa("onAutonavChangeRequest",1!==a)}; g.h.yd=function(){return this.qa}; g.h.setBlackout=function(a){this.Y.Tb=a;this.Cb&&(this.Cb.Er(),this.Y.ma&&sNa(this))}; g.h.setAccountLinkState=function(a){var b=g.iL(this);b&&(b.getVideoData().EK=a,b.Er())}; g.h.updateAccountLinkingConfig=function(a){var b=g.iL(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ua.ea("videodatachange","dataupdated",c,b.getPlayerType())}}; g.h.BX=function(){var a=g.iL(this);if(a){var b=!this.Ua.bx();(a.FM=b)||a.Jq.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.Y.S("html5_suspend_loader")&&a.Va&&(b?a.Va.resume():EU(a,!0));a.Y.S("html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.hc(yH(a.playerState,512)):a.hc(xH(a.playerState,512)));a=a.Zb;a.qoe&&(a=a.qoe,g.$S(a,g.IP(a.j),"stream",[b?"A":"I"]))}}; g.h.onLoadedMetadata=function(){this.Ua.Oa("onLoadedMetadata")}; g.h.onDrmOutputRestricted=function(){this.Ua.Oa("onDrmOutputRestricted")}; g.h.eE=function(){this.S("html5_skip_empty_load")&&(CTa=!0);FTa=this.S("html5_ios_force_seek_to_zero_on_stop");DTa=this.S("html5_ios7_force_play_on_stall");ETa=this.S("html5_ios4_seek_above_zero");ita=this.S("html5_retain_source_buffer_appends_for_debugging");this.S("html5_mediastream_applies_timestamp_offset")&&(uR=!0);this.S("html5_dont_override_default_sample_desc_index")&&(esa=!0);var a=g.aB(this.Y.experiments,"html5_cobalt_override_quic");a&&hFa(0q.start&&dE;E++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),4==E%5){for(var I="",J=0;6>J;J++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+I,y>>=5;z+=I}w=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else w="";l={video_id_and_cpn:c.videoId+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:p?"":"display:none",drm:p,debug_info:d, bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f= "Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=vQ(k,"bandwidth");l.network_activity_samples=vQ(k,"networkactivity");l.live_latency_samples=vQ(k, "livelatency");l.buffer_health_samples=vQ(k,"bufferhealth");b=g.GE(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";iE(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220315_01_RC00",l.release_style=""):l.release_style="display:none";return l}; g.h.getVideoUrl=function(a,b,c,d,e){return this.Vb&&this.Vb.postId?(a=this.Y.getVideoUrl(a),a=uj(a,"v"),a.replace("/watch","/clip/"+this.Vb.postId)):this.Y.getVideoUrl(a,b,c,d,e)}; var T0={};g.Ka("yt.player.Application.create",g.NU.create,void 0);g.Ka("yt.player.Application.createAlternate",g.NU.create,void 0);Kpa(Ov(),{Om:[{nx:/Unable to load player module/,weight:20},{nx:/Failed to fetch/,weight:500},{nx:/XHR API fetch failed/,weight:10},{nx:/JSON parsing failed after XHR fetch/,weight:10},{nx:/Retrying OnePlatform request/,weight:10}]});var eUa=g.La("ytcsi.tick");eUa&&eUa("pe");var xNa=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"]]),vNa=new Map([["normal",{gr:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",zr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{gr:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",zr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{gr:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",zr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{gr:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",zr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{gr:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",zr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{gr:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",zr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{gr:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",zr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var fUa={rca:"replaceUrlMacros",Uaa:"onAboutThisAdPopupClosed"};yV.prototype.al=function(){return"adLifecycleCommand"}; yV.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.qi(function(){b.controller.Tn()}); break;case "END_LINEAR_AD_PLACEMENT":g.qi(function(){b.controller.Wk()}); break;case "FILL_ABOVE_FEED_SLOT":g.qi(function(){a.elementId&&b.controller.aA(a.elementId)}); break;case "CLEAR_ABOVE_FEED_SLOT":g.qi(function(){b.controller.Kz()})}}; yV.prototype.Cm=function(a){this.handle(a)};zV.prototype.al=function(){return"clearCueRangesCommand"}; zV.prototype.handle=function(){var a=this.zE();g.qi(function(){a.Vf(Array.from(a.Tp))})}; zV.prototype.Cm=function(a){this.handle(a)};AV.prototype.al=function(){return"muteAdEndpoint"}; AV.prototype.handle=function(a){CNa(this,a)}; AV.prototype.Cm=function(a,b){CNa(this,a,b)};BV.prototype.al=function(){return"openPopupAction"}; BV.prototype.handle=function(){}; BV.prototype.Cm=function(a){this.handle(a)};CV.prototype.al=function(){return"pingingEndpoint"}; CV.prototype.handle=function(){}; CV.prototype.Cm=function(a){this.handle(a)};DV.prototype.al=function(){return"urlEndpoint"}; DV.prototype.handle=function(a,b){b=Object.assign({},b);if(EW(this.kZ,"h5_enable_adcpn_macro_substitution_for_click_pings")){var c=qw(this.bk,2);c&&(b.AD_CPN=c.clientPlaybackNonce)}b=g.np(a.url,b);var d,e;if((null==(d=a.browserConversionApiData)?0:d.impressiondata)&&(null==(e=a.browserConversionApiData)?0:e.conversiondestination)){var f;if(null==(f=a.browserConversionApiData)?0:f.originTrialToken)d=document.createElement("meta"),d.setAttribute("http-equiv","origin-trial"),d.setAttribute("content", a.browserConversionApiData.originTrialToken),document.head.appendChild(d);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.BJ(b,void 0,void 0,a)}; DV.prototype.Cm=function(){T("Trying to handle UrlEndpoint with no macro in controlflow")};EV.prototype.al=function(){return"adPingingEndpoint"}; EV.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Up.send(a,b,c)}; EV.prototype.Cm=function(a,b){yPa(this.Ta.get(),a,b,void 0)};FV.prototype.al=function(){return"changeEngagementPanelVisibilityAction"}; FV.prototype.handle=function(a){this.I.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})}; FV.prototype.Cm=function(a){this.handle(a)};GV.prototype.al=function(){return"loggingUrls"}; GV.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Yh.send(d.baseUrl,b,c,d.headers)}; GV.prototype.Cm=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,yPa(this.Ta.get(),c.baseUrl,b,c.headers)};g.v(ENa,g.G);var UNa=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(HV,g.G);g.h=HV.prototype;g.h.oF=function(a,b){return this.j.oF(a,b)}; g.h.Wh=function(a,b){HW(this.Xb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.r(this.Td),d=c.next();!d.done;d=c.next())d.value.Wh(a,b)}; g.h.vf=function(a){if(LV(this.j,a)){gH(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.vf(a);for(var b=g.r(this.Td),c=b.next();!c.done;c=b.next())c.value.vf(a);HNa(this,a)}}; g.h.wf=function(a){if(LV(this.j,a)){gH(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.wf(a);for(var b=g.r(this.Td),c=b.next();!c.done;c=b.next())c.value.wf(a);LV(this.j,a)&&MV(this.j,a).D&&JV(this,a,!1)}}; g.h.tB=function(a){gH(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);LV(this.j,a)&&(this.j.tB(a),JV(this,a,!1))}; g.h.Nc=function(a,b){if(LV(this.j,a)){NV(this.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Td),d=c.next();!d.done;d=c.next())d.value.Nc(a,b)}}; g.h.Zc=function(a,b,c){if(LV(this.j,a)){NV(this.Xb,wNa(c),a,b);this.j.Zc(a,b);for(var d=g.r(this.Td),e=d.next();!e.done;e=d.next())e.value.Zc(a,b,c);(c=aW(this.j,a))&&b.layoutId===c.layoutId&&RNa(this,a,!1)}}; g.h.If=function(a,b,c){T(c,a,b,void 0,c.Vp);JV(this,a,!0)}; g.h.ra=function(){var a=TNa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())JV(this,b.value,!1);g.G.prototype.ra.call(this)};SNa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(OV,cb);g.v(YV,cb);g.v(dW,g.G);g.h=dW.prototype;g.h.oF=function(a,b){b=$V(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a}; g.h.yh=function(a){a=MV(this,a);"not_scheduled"!==a.j&&bW(a.slot,a.j,"onSlotScheduled");a.j="scheduled"}; g.h.xw=function(a){a=MV(this,a);a.C="fill_requested";a.K.xw()}; g.h.vf=function(a){a=MV(this,a);"enter_requested"!==a.j&&bW(a.slot,a.j,"onSlotEntered");a.j="entered"}; g.h.tB=function(a){MV(this,a).C="fill_canceled"}; g.h.wf=function(a){a=MV(this,a);"exit_requested"!==a.j&&bW(a.slot,a.j,"onSlotExited");a.j="scheduled"}; g.h.Zc=function(a,b){a=MV(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&bW(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.v(hW,g.G);hW.prototype.B=function(){return this.u};g.v(iW,g.G);iW.prototype.get=function(){this.isDisposed()&&T("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};jW.prototype.executeCommand=function(a,b){hI(this.j(),a,b)}; jW.prototype.Kd=function(a,b){Cza(this.j(),a,b)};g.v(GW,g.G);g.v(JW,g.G);JW.prototype.onCueRangeEnter=function(){}; JW.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.u.get().removeCueRange(a),pw(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=xw(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Pb:c.Pb?lPa(c.slotId,d,c.Pb):void 0,qc:mPa(c.slotId,d,c.qc),vc:mPa(c.slotId,d,c.vc)})]},c.slotId))}; JW.prototype.uh=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.j.clear()}; JW.prototype.Wj=function(){};g.v(KW,g.G);g.h=KW.prototype;g.h.yh=function(){}; g.h.Xi=function(a){var b=this;g.Ur(g.Wr(),function(){var c=b.j.get(a);c&&T("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.u(c)).map(function(d){return d.layoutType})})},0)}; g.h.vf=function(){}; g.h.Wi=function(){}; g.h.wf=function(){}; g.h.Yj=function(){}; g.h.Zj=function(){}; g.h.Ti=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)}; g.h.Ui=function(a,b){this.di.has(a)&&this.di.get(a)===b&&T("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):T("Trying to unscheduled a Layout that was not scheduled.",a,b)}else T("Trying to unscheduled a Layout that was not scheduled.",a,b)}; g.h.Nc=function(a,b){this.di.set(a,b)}; g.h.Zc=function(a){this.di.delete(a)}; g.h.Wh=function(){};UW.prototype.clone=function(a){var b=this;return new UW(function(){return b.triggerId},a)};VW.prototype.clone=function(a){var b=this;return new VW(function(){return b.triggerId},a)};WW.prototype.clone=function(a){var b=this;return new WW(function(){return b.triggerId},a)};XW.prototype.clone=function(a){var b=this;return new XW(function(){return b.triggerId},a)};YW.prototype.clone=function(a){var b=this;return new YW(function(){return b.triggerId},a)};g.v(aX,g.G);aX.prototype.logEvent=function(a){HW(this,a)};g.v(bX,aX);cX.prototype.clear=function(){this.j.clear()};g.v(dX,g.G);g.h=dX.prototype;g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.uh=function(a,b,c,d,e,f,k){if(""===a)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.V().S("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().uh(a,b,c,d,e,f,k);this.C.get().uh(a,b,c,d,e,f,k);var l;null==(l=this.u)||l.get().uh(a,b,c,d,e,f,k);this.B.uh(a,b,c,d,e,f,k);l=g.r(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.uh(a,b,c,d,e,f,k)}}; g.h.MG=function(){this.j&&this.Wj(this.j)}; g.h.Wj=function(a){this.j=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Wj(a)};g.v(eX,g.G);eX.prototype.addCueRange=function(a,b,c,d,e,f,k){f=void 0===f?3:f;k=void 0===k?1:k;this.j.has(a)?T("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new tPa(a,b,c,d,f),this.j.set(a.id,{Dd:a,listener:e,pk:k}),this.I.Qd([a],k))}; eX.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.I.Vf([b.Dd],b.pk),this.j.delete(a)):T("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; eX.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)}; eX.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)}; g.v(tPa,g.Iw);fX.prototype.Zi=function(a){this.I.Zi(a)}; fX.prototype.Oa=function(a){this.I.Oa.apply(this.I,[a].concat(g.u(g.Da.apply(1,arguments))))};g.h=jX.prototype;g.h.nf=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.I.V().S("html5_dai_enable_active_view_creating_completed_adblock"),gia(a,b),{};b=Dxa(b);if(null===b||this.I.V().S("enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return{};var c=this.I.Lc();c=c&&(this.I.V().S("enable_server_stitched_dai")||2===c.getPlayerType())&&wF(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ha.get().isFullscreen()};return mp(b,a,c)}; g.h.yx=function(a){var b;null==(b=this.j.get(a.queryId))||b.yx()}; g.h.xx=function(a){var b;null==(b=this.j.get(a.queryId))||b.xx()}; g.h.zx=function(a){var b;null==(b=this.j.get(a.queryId))||b.zx()}; g.h.vx=function(a){var b;null==(b=this.j.get(a.queryId))||b.vx()}; g.h.wx=function(a){var b;null==(b=this.j.get(a.queryId))||b.wx()};g.v(nX,jF);nX.prototype.j=function(){return this.C()}; nX.prototype.u=function(){return this.D()}; nX.prototype.S=function(a){return this.B(a)};oX.prototype.ih=function(){var a=this.I.Lc();return a&&(a=a.ih(1))?a:null}; oX.prototype.Oi=function(a,b){"string"===typeof b?this.I.getVideoData(1).uH(a,b):this.I.getVideoData(1).Aa(a,b)};g.v(tX,g.G);g.h=tX.prototype;g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.uh=function(){this.YD.clear();this.dG=null;this.I.V().S("html5_clear_timeline_storage_killswitch")||this.j.get().clear()}; g.h.Wj=function(){}; g.h.VY=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Oi("ads_ssm_vdc_s",{pt:c,dvt:a});(hX(this.La.get())||this.La.get().I.V().S("html5_debug_client_stitched"))&&"dataloaded"!==a||EPa(this,b,c)}; g.h.rY=function(a,b){void 0!==a&&(this.dG=a,void 0===b?T("Expected ad video start time on SS video changed"):this.YD.set(a,b));b=this.I.getPresentingPlayerType(!0);var c=this.I.getVideoData(b);this.I.getVideoData(1).Aa("ads_ssvc",{pt:b,cpn:""+(null==c?void 0:c.clientPlaybackNonce)});c?EPa(this,c,b):T("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})}; g.h.ra=function(){this.listeners.length=0;this.hq=null;g.G.prototype.ra.call(this)}; g.h.Oi=function(a,b){this.I.getVideoData(1).Aa(a,b)};g.v(uX,g.G);g.h=uX.prototype;g.h.uh=function(){var a=this;this.jq=Ig(function(){a.I.isDisposed()||a.I.Ie("ad",1)})}; g.h.Wj=function(){}; g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.playVideo=function(){this.I.playVideo()}; g.h.pauseVideo=function(){this.I.pauseVideo()}; g.h.resumeVideo=function(a){this.Hm(a)&&this.I.playVideo()}; g.h.Hm=function(a){return 2===this.I.getPlayerState(a)}; g.h.getCurrentTimeSec=function(a,b){var c=this.j.get().dG;return 2!==a||b||null===c?this.I.getCurrentTime(a,b):vX(this,c)}; g.h.getVolume=function(){return this.I.getVolume()}; g.h.isMuted=function(){return this.I.isMuted()}; g.h.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)}; g.h.getPlayerState=function(a){return this.I.getPlayerState(a)}; g.h.isFullscreen=function(){return this.I.isFullscreen()}; g.h.isAtLiveHead=function(){return this.I.isAtLiveHead()}; g.h.Bu=function(a){this.I.Bu(a)}; g.h.UX=function(){if(2===this.I.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Uh(a)}; g.h.KX=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Vi(a,this.getPresentingPlayerType())}; g.h.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)}; g.h.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()}; g.h.qg=function(){for(var a=this.I.Te(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.qg(a)}; g.h.yb=function(){for(var a=this.I.eb().Fg(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ri(a)}; g.h.Uj=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Uj(a)};g.v(HPa,g.G);SX.prototype.addListener=function(a){this.listeners.add(a)}; SX.prototype.removeListener=function(a){this.listeners.delete(a)};dY.prototype.xw=function(){var a=this;KPa(this.j,function(){var b=X(a.slot.Fa,"metadata_type_ad_break_request_data");return a.u.get().fetch({BQ:b.getAdBreakUrl,FL:new g.Iw(b.nP,b.mP),ew:X(a.slot.Fa,"metadata_type_cue_point")})},function(){MPa(a)},function(b){b=b.Zl; 2<=b.length&&T("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,k;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(k=c.renderer)||!k.instreamVideoAdRenderer)})||MPa(a)})}; dY.prototype.oE=function(){LPa(this.j)};eY.prototype.xw=function(){var a=this;KPa(this.j,function(){var b=X(a.slot.Fa,"metadata_type_ad_break_request_data");return a.u.get().fetch({BQ:b.getAdBreakUrl,FL:new g.Iw(b.nP,b.mP)})})}; eY.prototype.oE=function(){LPa(this.j)};fY.prototype.xw=function(){INa(this.callback,this.slot,X(this.slot.Fa,"metadata_type_fulfilled_layout"))}; fY.prototype.oE=function(){KV(this.callback,this.slot,new YV("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};hY.prototype.ze=function(a,b){return gY(b,{Ud:["metadata_type_fulfilled_layout"]})?new fY(a,b):this.C(a,b)};g.v(iY,hY);iY.prototype.C=function(a,b){if(gY(b,{Ud:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new dY(a,b,this.j,this.B,this.u,this.D);if(gY(b,{Ud:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new eY(a,b,this.j,this.B,this.u);throw new YV("Unsupported slot with type: "+b.slotType+" and client metadata: "+rV(b.Fa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(jY,hY);jY.prototype.C=function(a,b){throw new YV("Unsupported slot with type: "+b.slotType+" and client metadata: "+rV(b.Fa)+" in DefaultFulfillmentAdapterFactory.");};g.h=NPa.prototype;g.h.Fd=function(){return this.slot}; g.h.Kb=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.If(this.slot,a,new OV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Fa,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Nc(this.slot,a),pqa(this.j,this.slot,b)):T("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen", this.slot,a)}}; g.h.mf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new OV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Zc(this.slot,a,b)};lY.prototype.ze=function(a,b,c,d){if(kY(d,{Ud:["metadata_type_ad_break_response_data"],Ve:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new NPa(a,c,d,this.j);throw new OV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+rV(d.Fa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};mY.prototype.nf=function(a){var b=this.D.get(a)||[];OPa(this,a,b);this.C.add(a)};g.h=PPa.prototype;g.h.Fd=function(){return this.slot}; g.h.Kb=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new OV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Nc(this.slot,a),pY(this.u,"impression"),FY(this.j,a.layoutId))}; g.h.mf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new OV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Zc(this.slot,a,b)};sY.prototype.ze=function(a,b,c,d){if(kY(d,QPa()))return new PPa(a,c,d,this.Ta,this.j);throw new OV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+rV(d.Fa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(tY,g.iv);g.h=tY.prototype;g.h.Fd=function(){return this.slot}; g.h.Kb=function(){return this.layout}; g.h.init=function(){this.u.get().addListener(this)}; g.h.release=function(){this.u.get().removeListener(this);this.dispose()}; g.h.zF=function(){}; g.h.xF=function(){}; g.h.wF=function(){}; g.h.AA=function(){}; g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new OV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),qQa(a,this.j,1))}; g.h.mf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.If(this.slot,a,new OV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.u.get();qQa(c,this.j,3);this.j=[];this.callback.Zc(this.slot,a,b)}}; g.h.ra=function(){this.u.get().removeListener(this);g.iv.prototype.ra.call(this)};g.v(RPa,PE);g.v(wY,tY);g.h=wY.prototype;g.h.Df=function(a,b){vY("action-companion",a,this.J.get().di,this.Ta.get(),this.B,this.C,this.Fd(),this.Kb(),b)}; g.h.startRendering=function(a){uY(this.D,this.Fd(),this.Kb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new RPa(b,c,d,e,f)},this.j); tY.prototype.startRendering.call(this,a)}; g.h.Nc=function(a,b){b.layoutId===this.layout.layoutId?pY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Ta.get().ih():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Zc=function(){}; g.h.yh=function(){}; g.h.Xi=function(){}; g.h.Wi=function(){}; g.h.vf=function(){}; g.h.wf=function(){}; g.h.Yj=function(){}; g.h.Zj=function(){}; g.h.Ti=function(){}; g.h.Ui=function(){}; g.h.Wh=function(){}; g.h.ra=function(){this.Fe().Td.delete(this);tY.prototype.ra.call(this)};g.v(xY,tY);xY.prototype.init=function(){tY.prototype.init.call(this);var a=X(this.layout.Fa,"metadata_type_ad_action_interstitial_renderer"),b=oY(this.B);this.j.push(new GF(a,b,this.layout.layoutId,{adsClientData:this.layout.zc},!0,!0))}; xY.prototype.startRendering=function(a){tY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a)}; xY.prototype.Df=function(){}; xY.prototype.ra=function(){tY.prototype.ra.call(this)};g.v(yY,tY);g.h=yY.prototype;g.h.init=function(){tY.prototype.init.call(this);var a=X(this.layout.Fa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.zc},c=!X(this.layout.Fa,"metadata_type_player_bytes_callback").NA;this.j.push(new mJ(a,this.layout.layoutId,X(this.layout.Fa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))}; g.h.Xo=function(){this.B||this.Ha.get().resumeVideo(2)}; g.h.startRendering=function(a){tY.prototype.startRendering.call(this,a);this.callback.Nc(this.slot,a);this.C.Bs=this}; g.h.mf=function(a,b){tY.prototype.mf.call(this,a,b);s_(this.C,this)}; g.h.Df=function(a){if(dPa(this.D.get(),this.J))switch(a){case "visit-advertiser":this.Ta.get().I.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Ha.get().Hm(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();X(this.layout.Fa,"metadata_type_player_bytes_callback").VB(); break;case "skip-button":a=X(this.layout.Fa,"metadata_type_player_bytes_callback"),a.NA&&a.Gx(this.Fd(),this.layout)}}; g.h.ra=function(){tY.prototype.ra.call(this)};AY.prototype.ze=function(a,b,c,d){if(a=zY(a,c,d,this.u,this.Ha,this.Ta,this.B,this.j))return a;throw new OV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+rV(d.Fa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(BY,g.G);g.h=BY.prototype;g.h.init=function(){var a=X(this.Kb().Fa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ko()}; g.h.release=function(){var a=X(this.Kb().Fa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.jp()}; g.h.startRendering=function(a){a.layoutId!==this.Kb().layoutId?this.callback.If(this.Fd(),a,new OV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Kb().layoutId+("and LayoutType: "+this.Kb().layoutType))):(this.Ha.get().addListener(this),IV(this.Fe(),this),this.Ha.get().I.cueVideoByPlayerVars({videoId:"empty_video"},2),qya(this.wd.get()),this.hn(a))}; g.h.mf=function(a,b){this.IF=!0;this.vp(a,b);this.Ha.get().I.Vm();this.Vd.get().I.cueVideoByPlayerVars({},2);a=kX(this.Ha.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.IF&&this.CN()}; g.h.Zc=function(a,b){b.layoutId===this.Kb().layoutId&&(this.IF=!1,this.Fe().Td.delete(this))}; g.h.Vi=function(a,b){if(a.state.isError()){var c,d;this.If(null==(c=a.state.getData())?void 0:c.errorCode,new OV("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.DO(a)}; g.h.yh=function(){}; g.h.Xi=function(){}; g.h.Wi=function(){}; g.h.vf=function(){}; g.h.wf=function(){}; g.h.Yj=function(){}; g.h.Zj=function(){}; g.h.Ti=function(){}; g.h.Ui=function(){}; g.h.Wh=function(){}; g.h.Uj=function(){};g.v(CY,BY);g.h=CY.prototype;g.h.Fd=function(){return this.slot}; g.h.Kb=function(){return this.layout}; g.h.Ko=function(){if(1>=this.u.length)throw new YV("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),TV(this.B,this.slot,b.Kb()),UV(this.B,this.slot,b.Kb())}; g.h.jp=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,hH(this.B,this.slot,b.Kb()),b.release()}; g.h.Uq=function(a,b){var c=this.u[this.j];b.layoutId!==DY(c,a,b)?T("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Uq()}; g.h.lr=function(a,b){var c=this.u[this.j];b.layoutId!==DY(c,a,b)?T("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.lr()}; g.h.Gx=function(a,b){var c=this.u[this.j];b.layoutId!==DY(c,a,b)?T("onSkipRequested for a PlayerBytes layout that is not currently active",c.Fd(),c.Kb(),{requestingSlot:a,requestingLayout:b}):EY(this,c.Fd(),c.Kb(),"skipped")}; g.h.hn=function(){-1===this.j&&VPa(this)}; g.h.DY=function(a,b){VV(this.B,a,b)}; g.h.vp=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.mf(a.Kb(),b),this.D=function(){c.callback.Zc(c.slot,c.layout,b)}):this.callback.Zc(this.slot,this.layout,b)}; g.h.Nc=function(a,b){var c=this.u[this.j];c&&c.Nc(a,b)}; g.h.Zc=function(a,b,c){BY.prototype.Zc.call(this,a,b,c);var d=this.u[this.j];d&&d.Zc(a,b,c)}; g.h.CN=function(){var a=this.u[this.j];a&&a.zA()}; g.h.Uh=function(a){var b=this.u[this.j];b&&b.Uh(a)}; g.h.DO=function(a){var b=this.u[this.j];b&&b.Vi(a)}; g.h.If=function(a,b){-1===this.j&&(this.callback.Nc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.sx(a,b):T("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Kb().layoutId})}; g.h.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)}; g.h.qg=function(a){var b=this.u[this.j];b&&b.qg(a)}; g.h.Ri=function(a){var b=this.u[this.j];b&&b.Ri(a)}; g.h.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()}; g.h.FY=function(a,b,c){EY(this,a,b,c)}; g.h.EY=function(a,b){EY(this,a,b,"error")};g.v(JY,g.G);g.h=JY.prototype;g.h.Fd=function(){return this.slot}; g.h.Kb=function(){return this.layout}; g.h.init=function(){var a=X(this.layout.Fa,"metadata_type_video_length_seconds"),b=X(this.layout.Fa,"metadata_type_active_view_traffic_type");lX(this.ma.get(),this.layout.layoutId,b,a,this);rX(this.Ta.get(),this);this.Ko()}; g.h.release=function(){mX(this.ma.get(),this.layout.layoutId);sX(this.Ta.get(),this);this.jp()}; g.h.Uq=function(){}; g.h.lr=function(){}; g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new OV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",hxa(this.Ja.get(),1)?EW(this.La.get(),"html5_fix_csi_event_order_in_pacf")?(this.J(-1),this.hn(a),this.Hs(!1)):(this.Hs(!1),this.J(-1),this.hn(a)):this.sx("ui_unstable",new OV("Failed to render media layout because ad ui unstable.")))}; g.h.Nc=function(a,b){if(b.layoutId===this.layout.layoutId){this.u="rendering";pY(this.j,"impression");pY(this.j,"start");if(this.Ha.get().isMuted()){pY(this.j,"mute");var c;a=(null==(c=IY(this))?void 0:c.muteCommands)||[];this.B.get().Kd(a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.j.nf("fullscreen");var d;c=(null==(d=IY(this))?void 0:d.fullscreenCommands)||[];this.B.get().Kd(c,this.layout.layoutId)}this.N=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();KY(this,"unmuted_impression"); KY(this,"unmuted_start");this.Ha.get().isFullscreen()&&MY(this,"unmuted_fullscreen");tya(this.wd.get());this.J(1);this.qO();var e;d=(null==(e=IY(this))?void 0:e.impressionCommands)||[];this.B.get().Kd(d,this.layout.layoutId)}}; g.h.sx=function(a,b,c){this.Ia={BC:3,Jy:"load_timeout"===a?402:400,errorMessage:b.message};X(this.layout.Fa,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&T("There is a player error in this survey ads",this.Fd(),this.Kb(),{playerType:String(c)});pY(this.j,"error");KY(this,"unmuted_error");var d;a=(null==(d=IY(this))?void 0:d.errorCommands)||[];this.B.get().Kd(a,this.layout.layoutId);this.callback.If(this.slot,this.layout,b)}; g.h.zA=function(){this.K()}; g.h.xM=function(){if("rendering"===this.u){EW(this.La.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")?pY(this.j,"pause"):this.j.nf("pause");MY(this,"unmuted_pause");var a,b=(null==(a=IY(this))?void 0:a.pauseCommands)||[];this.B.get().Kd(b,this.layout.layoutId);this.J(2)}}; g.h.yM=function(){if("rendering"===this.u){EW(this.La.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")?pY(this.j,"resume"):this.j.nf("resume");MY(this,"unmuted_resume");var a,b=(null==(a=IY(this))?void 0:a.resumeCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.mf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new OV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.X=b,this.vp(a,b))}; g.h.Zc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.X=void 0,(a="normal"!==c||this.position+1===this.Ea)&&this.Hs(a),this.rO(c),this.J(0),c){case "abandoned":if(rY(this.j,"impression")){pY(this.j,"abandon");KY(this,"unmuted_abandon");var d,e=(null==(d=IY(this))?void 0:d.abandonCommands)||[];this.B.get().Kd(e,this.layout.layoutId)}break;case "normal":pY(this.j,"complete");KY(this,"unmuted_complete");d=(null==(e=IY(this))?void 0:e.completeCommands)||[];this.B.get().Kd(d, this.layout.layoutId);break;case "skipped":pY(this.j,"skip");var f;d=(null==(f=IY(this))?void 0:f.skipCommands)||[];this.B.get().Kd(d,this.layout.layoutId)}}; g.h.Hw=function(){return this.layout.layoutId}; g.h.ZE=function(){return this.Ia}; g.h.Vi=function(a){if("not_rendering"!==this.u){this.ya||(a=new g.zF(a.state,new g.vH),this.ya=!0);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&GY(a)&&this.xa():b?g.BF(a,2)?this.MJ():(GY(a)?this.J(1):g.BF(a,4)&&!g.BF(a,2)&&this.xM(),0>AF(a,4)&&!(0>AF(a,2))&&this.yM()):this.zA()}}; g.h.yx=function(){if("rendering"===this.u){pY(this.j,"active_view_measurable");var a,b=(null==(a=IY(this))?void 0:a.activeViewMeasurableCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.xx=function(){if("rendering"===this.u){pY(this.j,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=IY(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.zx=function(){if("rendering"===this.u){pY(this.j,"active_view_viewable");var a,b=(null==(a=IY(this))?void 0:a.activeViewViewableCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.vx=function(){if("rendering"===this.u){pY(this.j,"audio_audible");var a,b=(null==(a=IY(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.wx=function(){if("rendering"===this.u){pY(this.j,"audio_measurable");var a,b=(null==(a=IY(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.Hs=function(a){this.wd.get().Hs(X(this.layout.Fa,"metadata_type_ad_placement_config").kind,a,this.position,this.Ea,!1)}; g.h.onFullscreenToggled=function(a){if("rendering"===this.u)if(a){this.j.nf("fullscreen");MY(this,"unmuted_fullscreen");var b,c=(null==(b=IY(this))?void 0:b.fullscreenCommands)||[];this.B.get().Kd(c,this.layout.layoutId)}else this.j.nf("end_fullscreen"),MY(this,"unmuted_end_fullscreen"),b=(null==(c=IY(this))?void 0:c.endFullscreenCommands)||[],this.B.get().Kd(b,this.layout.layoutId)}; g.h.onVolumeChange=function(){if("rendering"===this.u)if(this.Ha.get().isMuted()){pY(this.j,"mute");KY(this,"unmuted_mute");var a,b=(null==(a=IY(this))?void 0:a.muteCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}else pY(this.j,"unmute"),KY(this,"unmuted_unmute"),a=(null==(b=IY(this))?void 0:b.unmuteCommands)||[],this.B.get().Kd(a,this.layout.layoutId)}; g.h.qg=function(){}; g.h.Ri=function(){}; g.h.Uj=function(){};g.v(OY,JY);g.h=OY.prototype;g.h.Ko=function(){}; g.h.jp=function(){var a=this.Ta.get();a.jC===this&&(a.jC=null);iX(this.La.get())?this.D.stop():this.timer.stop()}; g.h.hn=function(){this.Ta.get().jC=this;YG();this.xa()}; g.h.qO=function(){$Pa(this)}; g.h.MJ=function(){}; g.h.Uq=function(){iX(this.La.get())?this.D.stop():this.timer.stop();JY.prototype.xM.call(this)}; g.h.lr=function(){$Pa(this);JY.prototype.yM.call(this)}; g.h.xm=function(){return X(this.Kb().Fa,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.h.vp=function(){iX(this.La.get())?this.D.stop():this.timer.stop()}; g.h.Qb=function(){var a=Date.now(),b=a-this.Z;this.Z=a;this.C+=b;this.C>=this.xm()?(this.C=this.xm(),LY(this,this.C/1E3,!0),NY(this,this.C),this.K()):(LY(this,this.C/1E3),NY(this,this.C))}; g.h.rO=function(){}; g.h.Uh=function(){};g.v(PY,JY);g.h=PY.prototype;g.h.Ko=function(){X(this.Kb().Fa,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=X(this.Kb().Fa,"metadata_type_shrunken_player_bytes_config")}; g.h.jp=function(){X(this.Kb().Fa,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.Z.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()}; g.h.hn=function(a){var b=X(a.Fa,"metadata_type_ad_video_id"),c=X(a.Fa,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Ra.get().I.V().Z.add(b,{Yv:c});(b=X(a.Fa,"metadata_type_sodar_extension_data"))&&IPa(this.Sa.get(),b);GPa(this.Ha.get(),!1);b=this.Vd.get();a=X(a.Fa,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.D.start();this.Vd.get().I.playVideo(2)}; g.h.qO=function(){this.D.stop();this.C="adcompletioncuerange:"+this.Kb().layoutId;this.Z.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=qw(this.va.get(),2))?void 0:a.clientPlaybackNonce)||"")||T("Media layout confirmed started, but ad CPN not set.");this.Qc.get().Oa("onAdStart",this.adCpn)}; g.h.MJ=function(){this.K()}; g.h.xm=function(){var a;return null==(a=qw(this.va.get(),2))?void 0:a.playbackDurationMs}; g.h.VB=function(){this.j.nf("clickthrough")}; g.h.vp=function(){this.D.stop();GPa(this.Ha.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ha.get().Bu(!1)}; g.h.onCueRangeEnter=function(a){a!==this.C?T("Received CueRangeEnter signal for unknown layout.",this.Fd(),this.Kb(),{cueRangeId:a}):(this.Z.get().removeCueRange(this.C),this.C=void 0,a=X(this.Kb().Fa,"metadata_type_video_length_seconds"),LY(this,a,!0),pY(this.j,"complete"))}; g.h.rO=function(a){"abandoned"!==a&&this.Qc.get().Oa("onAdComplete");this.Qc.get().Oa("onAdEnd",this.adCpn)}; g.h.onCueRangeExit=function(){}; g.h.Uh=function(a){"rendering"===this.u&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().Bu(!0),LY(this,a))};g.v(QY,BY);g.h=QY.prototype;g.h.Fd=function(){return this.j.Fd()}; g.h.Kb=function(){return this.j.Kb()}; g.h.Ko=function(){this.j.init()}; g.h.jp=function(){this.j.release()}; g.h.Uq=function(){this.j.Uq()}; g.h.lr=function(){this.j.lr()}; g.h.Gx=function(a,b){T("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Fd(),this.Kb(),{requestingSlot:a,requestingLayout:b})}; g.h.hn=function(a){this.j.startRendering(a)}; g.h.vp=function(a,b){this.j.mf(a,b)}; g.h.Nc=function(a,b){this.j.Nc(a,b)}; g.h.Zc=function(a,b,c){BY.prototype.Zc.call(this,a,b,c);this.j.Zc(a,b,c);b.layoutId===this.Kb().layoutId&&qH(this.wd.get())}; g.h.CN=function(){this.j.zA()}; g.h.Uh=function(a){this.j.Uh(a)}; g.h.DO=function(a){this.j.Vi(a)}; g.h.If=function(a,b,c){this.j.sx(a,b,c)}; g.h.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)}; g.h.qg=function(a){this.j.qg(a)}; g.h.Ri=function(a){this.j.Ri(a)}; g.h.onVolumeChange=function(){this.j.onVolumeChange()};RY.prototype.ze=function(a,b,c,d){if(a=cQa(a,b,c,d,this.Fe,this.J,this.Ta,this.D,this.N,this.Vd,this.K,this.Ha,this.B,this.wd,this.Qc,this.j,this.u,this.C,this.La))return a;throw new OV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+rV(d.Fa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(SY,g.G);g.h=SY.prototype;g.h.tO=function(a){if(this.j)dQa(this,this.j,a);else{var b;null==(b=this.B)||b.get().ep(a.identifier)}}; g.h.kO=function(){}; g.h.uh=function(a){this.j&&this.j.contentCpn!==a&&(T("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)}; g.h.Wj=function(a){this.j&&this.j.contentCpn!==a&&T("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null}; g.h.ra=function(){g.G.prototype.ra.call(this);this.j=null};g.v(TY,g.G);g.h=TY.prototype;g.h.Nc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&MF(b,this.N)){var d=qw(this.C.get(),2),e=this.J(b,d);e?pw(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[oPa(c.u.get(),e.contentCpn,e.Iu,function(k){return c.K(k.slotId,"core",e,wV(c.j.get(),k))},e.OM)]; e.instreamAdPlayerUnderlayRenderer&&vPa(c.La.get())&&f.push(eQa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):T("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.h.yh=function(){}; g.h.Xi=function(){}; g.h.vf=function(){}; g.h.Wi=function(){}; g.h.wf=function(){}; g.h.Yj=function(){}; g.h.Zj=function(){}; g.h.Ti=function(){}; g.h.Ui=function(){}; g.h.Wh=function(){}; g.h.Zc=function(){};var RZ=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.h=iQa.prototype;g.h.init=function(){}; g.h.Fd=function(){return this.slot}; g.h.Wz=function(){this.callback.vf(this.slot)}; g.h.Xz=function(){this.callback.wf(this.slot)}; g.h.release=function(){};VY.prototype.ze=function(a,b){return new iQa(a,b)};g.h=jQa.prototype;g.h.init=function(){}; g.h.Fd=function(){return this.slot}; g.h.Wz=function(){wX(this.Ha.get(),"ad-showing");this.callback.vf(this.slot)}; g.h.Xz=function(){this.callback.wf(this.slot);xX(this.Ha.get(),"ad-showing")}; g.h.release=function(){};g.h=kQa.prototype;g.h.init=function(){}; g.h.Fd=function(){return this.slot}; g.h.Wz=function(){wX(this.Ha.get(),"ad-showing");wX(this.Ha.get(),"ad-interrupting");this.u=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.vf(this.slot)}; g.h.Xz=function(){xX(this.Ha.get(),"ad-showing");xX(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().I.seekTo(a,void 0,void 0,1);this.callback.wf(this.slot)}; g.h.release=function(){};g.h=lQa.prototype;g.h.init=function(){}; g.h.Fd=function(){return this.slot}; g.h.Wz=function(){wX(this.Ha.get(),"ad-showing");wX(this.Ha.get(),"ad-interrupting");this.callback.vf(this.slot)}; g.h.Xz=function(){this.Ha.get().jq();xX(this.Ha.get(),"ad-showing");xX(this.Ha.get(),"ad-interrupting");this.callback.wf(this.slot)}; g.h.release=function(){this.Ha.get().jq()};WY.prototype.ze=function(a,b){if(tw(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new jQa(a,b,this.Ha);if(b.Pb instanceof IW&&tw(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new kQa(a,b,this.Ha);if(tw(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new lQa(a,b,this.Ha);throw new YV("Unsupported slot with type "+b.slotType+" and client metadata: "+(rV(b.Fa)+" in PlayerBytesSlotAdapterFactory."));};g.v(YY,g.G);YY.prototype.j=function(a){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof rW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Qe===a&&b.push(d)}b.length?WV(this.nD(),b):T("Mute requested but no registered triggers can be activated.")};g.v(ZY,YY);g.h=ZY.prototype;g.h.Df=function(a,b){if(b)if("survey-submit"===a)mQa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof rW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Qe===b&&a.push(d)}a.length&&WV(this.nD(),a)}else"survey-single-select-answer-button"===a&&mQa(this,b)}; g.h.zF=function(a){YY.prototype.j.call(this,a)}; g.h.cj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new YV("Tried to register duplicate trigger for slot.");if(!(b instanceof sW||b instanceof rW))throw new YV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Mb.set(b.triggerId,new XY(a,b,c,d))}; g.h.qj=function(a){this.Mb.delete(a.triggerId)}; g.h.xF=function(){}; g.h.wF=function(){}; g.h.AA=function(){};g.v($Y,g.G);g.h=$Y.prototype; g.h.cj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new YV("Tried to register duplicate trigger for slot.");if(!(b instanceof UW||b instanceof VW||b instanceof WW||b instanceof XW||b instanceof YW||b instanceof MW||b instanceof RW||b instanceof qW||b instanceof zW||b instanceof LW||b instanceof QW))throw new YV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new XY(a,b,c,d);this.Mb.set(b.triggerId,a);b instanceof YW&&this.D.has(b.Ug)&& WV(this.j(),[a]);b instanceof UW&&this.B.has(b.Ug)&&WV(this.j(),[a]);b instanceof RW&&this.u.has(b.Qe)&&WV(this.j(),[a])}; g.h.qj=function(a){this.Mb.delete(a.triggerId)}; g.h.yh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof YW&&a.slotId===d.trigger.Ug&&b.push(d);0AF(a,16)){a=g.r(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.j.clear()}}; g.h.Uh=function(){}; g.h.onFullscreenToggled=function(){}; g.h.qg=function(){}; g.h.Ri=function(){}; g.h.onVolumeChange=function(){}; g.h.Uj=function(){};g.v(dZ,g.G);g.h=dZ.prototype;g.h.cj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new YV("Tried to register duplicate trigger for slot.");if(!(b instanceof vW||b instanceof TW))throw new YV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Mb.set(b.triggerId,new XY(a,b,c,d))}; g.h.qj=function(a){this.Mb.delete(a.triggerId)}; g.h.Tn=function(){}; g.h.Wk=function(){}; g.h.Nc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?T("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)}; g.h.Zc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)}; g.h.yh=function(){}; g.h.Xi=function(){}; g.h.Wi=function(){}; g.h.vf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?T("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)}; g.h.wf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?T("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)}; g.h.Yj=function(){}; g.h.Zj=function(){}; g.h.Ti=function(){}; g.h.Ui=function(){}; g.h.Wh=function(){}; g.h.Kz=function(){null!=this.j&&FY(this,this.j)}; g.h.aA=function(a){if(null===this.u){for(var b=[],c=g.r(this.Mb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof TW&&d.trigger.slotId===a&&b.push(d);b.length&&WV(this.B(),b)}};g.v(eZ,g.G);g.h=eZ.prototype;g.h.Wh=function(a,b){for(var c=[],d=g.r(this.Mb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&WV(this.j(),c)}; g.h.cj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new YV("Tried to register duplicate trigger for slot.");if(!(b instanceof fPa))throw new YV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Mb.set(b.triggerId,new XY(a,b,c,d))}; g.h.qj=function(a){this.Mb.delete(a.triggerId)}; g.h.yh=function(){}; g.h.Xi=function(){}; g.h.Wi=function(){}; g.h.vf=function(){}; g.h.wf=function(){}; g.h.Yj=function(){}; g.h.Zj=function(){}; g.h.Ti=function(){}; g.h.Ui=function(){}; g.h.Nc=function(){}; g.h.Zc=function(){};g.v(fZ,g.G);fZ.prototype.ra=function(){this.C.get().removeListener(this);g.G.prototype.ra.call(this)};g.v(gZ,g.G);gZ.prototype.ra=function(){this.D.get().removeListener(this);g.G.prototype.ra.call(this)};hZ.prototype.fetch=function(a){var b=a.FL;return this.Rp.fetch(a.BQ,{ew:void 0===a.ew?void 0:a.ew,Dd:b}).then(function(c){return pQa(c,b)})};g.v(iZ,g.G);g.h=iZ.prototype;g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.onAdUxClicked=function(a,b){jZ(this,function(c){c.Df(a,b)})}; g.h.zG=function(a){jZ(this,function(b){b.xF(a)})}; g.h.yG=function(a){jZ(this,function(b){b.wF(a)})}; g.h.pW=function(a){jZ(this,function(b){b.AA(a)})};g.v(kZ,g.G);g.h=kZ.prototype;g.h.uh=function(){this.C=new kH(this,uPa(this.La.get()));this.u=new lH;var a=this.I.getVideoData(1),b;if((null==(b=this.j)?void 0:b.clientPlaybackNonce)!==a.clientPlaybackNonce){null!=this.j&&this.j.unsubscribe("cuepointupdated",this.mB,this);a.subscribe("cuepointupdated",this.mB,this);this.j=a;this.B.clear();this.rC.length=0;var c;a=(null==(c=a.j)?void 0:Bta(c,0))||[];this.mB(a)}}; g.h.Wj=function(){}; g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.UG=function(a){this.rC.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.tO(a)}; g.h.lO=function(a){g.vc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.kO(a)}; g.h.mB=function(a){var b=qw(this.D.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,!b&&g.aD(this.I.V())||qX(this.Ta.get(),{cuepointTrigger:{event:rQa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.Gu,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.B.add(e),b?this.C.reduce(e):g.aD(this.I.V())||0===this.I.getCurrentTime(1)||"start"!==e.event||this.UG(e)}; g.h.ra=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.mB,this),this.j=null);this.listeners.length=0;this.B.clear();this.rC.length=0;g.G.prototype.ra.call(this)};nZ.prototype.addListener=function(a){this.listeners.push(a)}; nZ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.h=oZ.prototype;g.h.Fd=function(){return this.slot}; g.h.Kb=function(){return this.layout}; g.h.init=function(){this.D.get().addListener(this);this.Ha.get().addListener(this);this.Ko();var a=X(this.layout.Fa,"metadata_type_layout_enter_ms"),b=X(this.layout.Fa,"metadata_type_layout_exit_ms"),c,d=null==(c=this.B.get().hq)?void 0:c.clientPlaybackNonce;c=this.layout.zc.adClientDataEntry;qX(this.Ta.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.D.get();e=mH(e.u,a,b);null!==e&&(qX(this.Ta.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER", adClientData:c}}),this.K.get().cq(e,b))}; g.h.release=function(){this.jp();this.D.get().removeListener(this);this.Ha.get().removeListener(this)}; g.h.startRendering=function(){this.hn();this.callback.Nc(this.slot,this.layout)}; g.h.mf=function(a,b){this.vp(b);null!==this.driftRecoveryMs&&(pZ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(tQa(this)-X(this.layout.Fa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().I.qo()).toString()}),this.driftRecoveryMs=null);this.callback.Zc(this.slot,this.layout,b)}; g.h.tO=function(){}; g.h.kO=function(a){var b=X(this.layout.Fa,"metadata_type_layout_enter_ms"),c=X(this.layout.Fa,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&aa.width&&yZ(this.B,this.layout)}; g.h.onVolumeChange=function(){}; g.h.Uh=function(){}; g.h.onFullscreenToggled=function(){}; g.h.qg=function(){}; g.h.Vi=function(){}; g.h.Uj=function(){}; g.h.ra=function(){tY.prototype.ra.call(this)}; g.h.release=function(){tY.prototype.release.call(this);this.Ha.get().removeListener(this)};ZQa.prototype.ze=function(a,b,c,d){if(b=zY(a,c,d,this.j,this.Ha,this.Ta,this.K,this.u))return b;if(kY(d,YQa()))return new NZ(c,d,this.Ta,this.D,this.j,a,this.B,this.J,this.Ha,this.C,this.La,this.u,new OZ(this.Ha));if(kY(d,XQa()))return new MZ(c,d,this.Ta,this.D,this.j,a,this.B,this.Ha,this.C,this.La,this.u,new OZ(this.Ha));if(kY(d,{Ud:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ve:["LAYOUT_TYPE_SURVEY"]}))return new PZ(c,d,a,this.j,this.B,this.Ha,this.La);if(kY(d,{Ud:["metadata_type_player_bytes_layout_controls_callback_ref", "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ve:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new GZ(c,d,a,this.j,this.Ta);throw new OV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+rV(d.Fa)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(QZ,g.G);g.h=QZ.prototype;g.h.cj=function(a,b,c,d){if(this.Mb.has(b.triggerId))throw new YV("Tried to register duplicate trigger for slot.");if(!(b instanceof yW))throw new YV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Mb.set(b.triggerId,new XY(a,b,c,d));a=this.j.has(b.Qe)?this.j.get(b.Qe):new Set;a.add(b);this.j.set(b.Qe,a)}; g.h.qj=function(a){this.Mb.delete(a.triggerId);if(!(a instanceof yW))throw new YV("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.Qe))b.delete(a),0===b.size&&this.j.delete(a.Qe)}; g.h.yh=function(){}; g.h.Xi=function(){}; g.h.Wi=function(){}; g.h.vf=function(){}; g.h.wf=function(){}; g.h.Yj=function(){}; g.h.Zj=function(){}; g.h.Ti=function(){}; g.h.Ui=function(){}; g.h.Wh=function(){}; g.h.Nc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={Vu:a.Vu},d=b.next())a.Vu=d.value,d=new g.L(function(e){return function(){var f=c.Mb.get(e.Vu.triggerId);WV(c.B(),[f])}}(a),a.Vu.durationMs),d.start(),this.u.set(a.Vu.triggerId,d)}}; g.h.Zc=function(){};g.v(aRa,g.G);bRa.prototype.ze=function(a,b,c,d){if(b=zY(a,c,d,this.u,this.Ha,this.Ta,this.K,this.j))return b;if(kY(d,YQa()))return new NZ(c,d,this.Ta,this.D,this.u,a,this.B,this.J,this.Ha,this.C,this.La,this.j,new OZ(this.Ha));if(kY(d,XQa()))return new MZ(c,d,this.Ta,this.D,this.u,a,this.B,this.Ha,this.C,this.La,this.j,new OZ(this.Ha));throw new OV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+rV(d.Fa)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(cRa,g.G);g.v(dRa,g.G);g.v(eRa,g.G);g.v(SZ,yY);SZ.prototype.startRendering=function(a){yY.prototype.startRendering.call(this,a);X(this.layout.Fa,"metadata_ad_video_is_listed")&&(a=X(this.layout.Fa,"metadata_type_ad_info_ad_metadata"),this.K.get().I.Oa("onAdMetadataAvailable",a))};gRa.prototype.ze=function(a,b,c,d){if(kY(d,fRa()))return new SZ(a,c,d,this.B,this.Ha,this.Ta,this.C,this.u,this.j);throw new OV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+rV(d.Fa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(hRa,g.G);iRa.prototype.ze=function(a,b,c,d){if(kY(d,fRa()))return new SZ(a,c,d,this.u,this.Ha,this.Ta,this.B,this.C,this.j);if(a=zY(a,c,d,this.u,this.Ha,this.Ta,this.B,this.j))return a;throw new OV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+rV(d.Fa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(jRa,g.G);g.v(TZ,g.G);TZ.prototype.B=function(){return this.u};VZ.prototype.aA=function(a){this.Ok.aA(a)}; VZ.prototype.Kz=function(){try{this.Ok.Kz()}catch(a){}}; VZ.prototype.Tn=function(){this.j().Tn()}; VZ.prototype.Wk=function(){this.j().Wk()};g.v(WZ,RI); WZ.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:this.j.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Oa("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b=this.j.getVideoData(1),this.j.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Oa("updateEngagementPanelAction",b.addAction);this.j.Oa("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.Oa("changeEngagementPanelVisibility",b.hideAction),this.j.Oa("updateEngagementPanelAction",b.removeAction)}};g.v(XZ,ZI);g.h=XZ.prototype;g.h.init=function(a,b,c){ZI.prototype.init.call(this,a,b,c);g.Jm(this.C,"stroke-dasharray","0 "+this.B);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){aJ(this);ZI.prototype.hide.call(this)}; g.h.show=function(){$I(this);ZI.prototype.show.call(this)}; g.h.Xq=function(){this.hide()}; g.h.hp=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Jm(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.v(YZ,sI);g.h=YZ.prototype; g.h.init=function(a,b,c){sI.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.S(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!= e&&0=this.C?(this.J.hide(),this.N=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.Z&&(YI(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.v(f_,sI);g.h=f_.prototype; g.h.init=function(a,b,c){sI.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.C.init(OE("ad-image"),b.image,c),this.u.init(OE("ad-text"),b.headline,c),this.D.init(OE("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().S("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new HI(this.api,this.fb,this.layoutId,this.j,this.kb,a),g.H(this, this.actionButton),this.actionButton.Ba(this.J),this.actionButton.init(OE("button"),b.actionButton.buttonRenderer,c),b=g.aB(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().S("place_shrunken_video_on_left_of_player")?(c=this.B,g.Dp(c,"ytp-ad-underlay-left-container"),g.M(c,"ytp-ad-underlay-right-container"),g.Jm(this.B,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.B,g.Dp(c,"ytp-ad-underlay-right-container"),g.M(c,"ytp-ad-underlay-left-container")),g.Jm(this.B,"width", Math.round(100*(1-b-.04))+"%"),this.api.OA()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.NJ.bind(this)),this.api.addEventListener("resize",this.CM.bind(this))):g.S(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.h.show=function(){uRa(!0);this.actionButton&&this.actionButton.show();sI.prototype.show.call(this)}; g.h.hide=function(){uRa(!1);this.actionButton&&this.actionButton.hide();sI.prototype.hide.call(this)}; g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.NJ.bind(this));this.api.removeEventListener("resize",this.CM.bind(this));this.hide()}; g.h.onClick=function(a){sI.prototype.onClick.call(this,a);this.actionButton&&g.fi(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.h.NJ=function(a){"transitioning"===a?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-transition"),this.show()):"visible"===a?this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"):"hidden"===a&&(this.hide(),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"))}; g.h.CM=function(a){1200a)g.S(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){CRa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape); CRa(this.logoImage,b.brandImage);g.gi(this.text,g.Pw(b.text));this.actionButton=new HI(this.api,this.fb,this.layoutId,this.j,this.kb,["ytp-ad-survey-interstitial-action-button"]);g.H(this,this.actionButton);this.actionButton.Ba(this.B);this.actionButton.init(OE("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.u=this.Qg?new nJ(this.api,1E3*a):new oJ(1E3*a,void 0);this.u.subscribe("g",function(){d.transition.hide();if(!d.Qg){for(var k=g.r(e),l=k.next();!l.done;l= k.next())TI(d.kb,l.value,c);TI(d.kb,{adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}}); g.H(this,this.u);this.T(this.element,"click",function(k){var l=b.dismissCommands,m=k.target===d.interstitial;k=d.actionButton.element.contains(k.target);if(m||k)if(d.transition.hide(),m)if(d.TH)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())TI(d.kb,m.value,d.macros)}); this.transition.show(100);if(!this.Qg&&b.impressionCommands){a=g.r(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())TI(this.kb,f.value,c)}}else g.S(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.S(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.S(Error("SurveyTextInterstitialRenderer has no button."));else g.S(Error("SurveyTextInterstitialRenderer has no text."));else g.S(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; p_.prototype.clear=function(){this.hide()}; p_.prototype.show=function(){DRa(!0);sI.prototype.show.call(this)}; p_.prototype.hide=function(){DRa(!1);sI.prototype.hide.call(this)};var gUa="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(q_,RI); q_.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!gUa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.api,f=this.kb,k=c.layoutId,l=c.j,m=c instanceof GF||c instanceof WG||c instanceof aH?c.Qg:!1,n=c instanceof GF||c instanceof mJ||c instanceof WG?c.ij:!1,p=c instanceof aH?c.TH:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;p=void 0===p?!1:p;switch(d){case "invideo-overlay":a=new ZZ(e,a,k,l,f);break;case "player-overlay":a=new yJ(e,a,k,l,f,new mM(e),n); break;case "survey":a=new o_(e,a,k,l,f,m,n);break;case "ad-action-interstitial":a=new YZ(e,a,k,l,f,m,n);break;case "survey-interstitial":a=new p_(e,a,k,l,f,m,p);break;case "ad-message":a=new e_(e,a,k,l,f,new mM(e,1));break;case "player-underlay":a=new f_(e,a,k,l,f);break;default:a=null}if(!a){g.Sv(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Xf(this.u,b)?g.Sv(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof EZ?this.B?this.B.append(a.DH): g.S(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.DH);break;case 2:b=ERa(this,a);if(null==b)break;b.bind(c);break;case 3:c=ERa(this,a),null!=c&&(g.zf(c),g.Xf(this.u,b)?g.cg(this.u,b):g.Sv(Error("Ad UI component does not exist: "+b)))}}; q_.prototype.ra=function(){g.Af(Object.values(this.u));this.u={};RI.prototype.ra.call(this)};g.v(r_,g.tL);g.h=r_.prototype;g.h.create=function(){if(eW(UZ(this.j).Sf))try{FRa(this),this.load(),this.created=!0,FRa(this)}catch(a){T(a instanceof Error?a:String(a))}else this.load(),this.created=!0}; g.h.load=function(){g.tL.prototype.load.call(this);var a=UZ(this.j).Sf;tqa(a.I.V().S("html5_reduce_ecatcher_errors"));if(eW(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){T(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var k=c&&c.Ff()||!1;a=JRa(f,a,e,k,UZ(this.j).Mj);f=c&&c.clientPlaybackNonce||"";c=c&&c.bq||!1;k=1E3*this.player.getDuration(1);this.fb=new iI(this,this.player,this.Rp,b,UZ(this.j));Wza(this.fb,a.Xv);this.j.j.Yo.uh(f,k,c,a.BB,a.BB.concat(a.Xv),e,d);jI(this.fb)}; g.h.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Yo.Wj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.h.unload=function(){g.tL.prototype.unload.call(this);tqa(!1);if(eW(UZ(this.j).Sf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){T(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.fb){var a=this.fb;this.fb=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Rp.reset()}; g.h.ai=function(){return!1}; g.h.UH=function(){return null===this.fb?!1:this.fb.UH()}; g.h.xl=function(a){null!==this.fb&&this.fb.xl(a)}; g.h.getAdState=function(){return this.fb?this.fb.HA:-1}; g.h.getOptions=function(){return Object.values(fUa)}; g.h.zf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=gF(this.player),Object.assign(b,a.Bga),this.fb&&!b.AD_CPN&&(b.AD_CPN=this.fb.iA()),a=g.np(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Xo(b);break;default:return null}}; g.h.Xo=function(a){a.isMuted&&Lza(this.fb,UZ(this.j).ph,UZ(this.j).Qi,a.layoutId);this.Bs&&this.Bs.Xo()}; g.h.No=function(){return null===this.fb?!1:this.fb.No()};g.sL("ad",r_);var LRa=g.Nc&&KRa();g.v(g.u_,g.W);g.u_.prototype.onClick=function(){this.I.Oa("onExpandMiniplayer")};})(_yt_player);