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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var ba,ea,aaa,ia,ka,la,pa,qa,ra,ta,ua,va,wa,xa,baa,caa,ya,Aa,daa,Ca,Da,Ea,Fa,Ga,La,faa,gaa,Ua,Va,Wa,haa,Ya,iaa,ab,bb,cb,db,jaa,kaa,fb,lb,laa,sb,tb,maa,yb,vb,naa,wb,oaa,paa,qaa,Gb,Ib,Jb,Kb,Lb,Nb,Pb,Qb,Tb,Zb,ac,dc,ec,hc,kc,lc,taa,mc,nc,qc,yc,zc,Bc,Gc,Mc,Nc,Qc,Oc,xaa,Aaa,Baa,Caa,Uc,Vc,Xc,Wc,Zc,bd,Daa,Eaa,ad,Faa,id,ld,md,nd,od,pd,sd,td,ud,vd,Iaa,Jaa,wd,yd,Ad,Cd,zd,Dd,Ed,Gd,Hd,Id,Kd,Ld,Md,Nd,Od,Pd,Qd,Rd,Sd,Td,Ud,ee,ae,Yd,he,ie,le,me,ne,Maa,re,pe,se,te,ue,ze,xe,Ae,Be,Ce,De,Fe,Ge,ye,He,Ie,Ke,
Le,Je,Me,Oaa,Ne,Qaa,Pe,Raa,Qe,Saa,Re,Taa,Te,Ue,$e,af,bf,cf,df,Uaa,jf,lf,mf,of,Waa,pf,qf,rf,sf,uf,zf,Xaa,tf,Ef,Ff,Cf,Zaa,Af,yf,Jf,Kf,Lf,$aa,Pf,Rf,Uf,Yf,Zf,eg,fg,hg,gg,jg,mg,lg,kg,cba,Wf,xg,vg,wg,zg,yg,Vf,Bg,eba,Cg,Dg,Eg,mda,Jg,Lg,Ng,Og,Sg,Tg,Ug,Wg,nda,Xg,Zg,bh,Yg,$g,Mg,Vg,uda,eh,ch,dh,gh,oda,fh,kh,lh,mh,nh,vda,oh,ph,wda,qh,rh,th,vh,wh,xh,Ada,yh,Bda,zh,Ah,Bh,Ch,Dh,Eh,Fh,Gh,Lh,Eda,Mh,Oh,Gda,Qh,Rh,Sh,Th,Hda,Zh,Yh,Vh,Wh,Xh,di,ai,ci,Ida,Jda,Kda,ei,fi,ji,ki,li,mi,ni,oi,pi,qi,si,ui,vi,xi,yi,zi,Mda,Nda,Oda,
Ei,Ci,Oi,Di,Pi,Ni,Ri,Qda,Hi,Si,Rda,Ti,Ui,Vi,Wi,Xi,Yi,Zi,$i,ej,dj,fj,gj,Wda,Vda,hj,Xda,ij,jj,kj,lj,mj,nj,oj,pj,qj,sj,tj,Yda,vj,wj,xj,yj,zj,Aj,Cj,Zda,Dj,$da,aea,Ej,Fj,bea,Gj,Hj,Ij,Jj,Kj,Lj,cea,dea,Mj,Nj,Oj,Pj,gea,fea,Rj,Uj,Vj,Sj,Qj,Tj,Wj,Xj,Yj,ak,Zj,fk,gk,ok,jea,nk,rk,tk,sk,hea,kea,wk,yk,zk,Ak,Bk,Ck,Dk,Ek,Fk,Gk,Hk,lea,Ik,Jk,Kk,Lk,Mk,Nk,Ok,Qk,nea,Rk,Sk,Tk,Pk,Vk,oea,pea,Xk,Yk,Zk,Wk,al,bl,rea,tea,uea,$k,wea,cl,dl,el,fl,gl,il,hl,jl,kl,zea,Bea,Cea,Eea,ml,nl,ol,ql,rl,sl,ul,wl,yl,Dl,El,Hl,Fea,Kl,Jl,Ll,Gea,
Tl,Ul,Vl,Hea,Wl,bm,cm,dm,em,fm,gm,Iea,hm,im,jm,Jea,Kea,km,mm,lm,om,pm,sm,qm,Mea,rm,tm,um,wm,vm,Oea,Nea,xm,Qea,Pea,Rea,Bm,Sea,Dm,Em,Fm,Cm,Gm,Tea,Hm,Uea,Vea,Jm,Km,Zea,Lm,Mm,Nm,$ea,Pm,Rm,Um,Xm,Zm,Wm,Vm,$m,afa,an,bn,cn,dn,cfa,jn,kn,ln,mn,efa,nn,on,pn,qn,rn,ffa,tn,un,vn,xn,wn,yn,zn,Bn,Cn,Dn,En,Fn,An,Gn,Hn,In,gfa,Jn,Kn,hfa,Ln,Mn,ifa,On,jfa,Pn,Qn,kfa,lfa,Rn,Sn,Un,Wn,Xn,Yn,Zn,$n,Tn,Vn,nfa,ao,bo,eo,co,ofa,pfa,qfa,fo,go,ho,io,ufa,vfa,wfa,xfa,yfa,jo,ko,zfa,lo,Afa,Bfa,mo,no,oo,Cfa,po,ro,so,to,uo,vo,wo,xo,yo,
zo,Dfa,Efa,Ao,Ffa,Ko,Bo,No,Oo,Mo,Gfa,Kfa,Jfa,Ro,Lfa,Mfa,Nfa,Pfa,Ofa,So,To,Uo,Qfa,Wo,Xo,Rfa,Sfa,Yo,Zo,$o,ap,Tfa,bp,cp,Vfa,dp,Wfa,ep,gp,fp,hp,ip,kp,Yfa,lp,Xfa,mp,Zfa,np,$fa,aga,pp,rp,sp,tp,up,qp,yp,zp,wp,cga,ega,fga,Bp,Cp,Dp,Ep,gga,Fp,Gp,Hp,Ip,Jp,Kp,Lp,Mp,Pp,Op,iga,jga,Qp,Sp,Np,Rp,hga,Tp,Up,lga,mga,nga,oga,Yp,Zp,$p,Vp,aq,bq,kga,pga,qga,dq,cq,eq,gq,vga,rga,kq,lq,mq,nq,oq,pq,qo,wga,qq,xga,yga,zga,Aga,Bga,sq,tq,uq,vq,xq,zq,Gga,Cq,Dq,Hq,Iq,Jq,Kq,Qq,Hga,Sq,Tq,Jga,Uq,Vq,Oga,Kga,$q,Tga,ar,br,cr,Vga,fr,gr,
hr,ir,Wga,lr,mr,nr,or,qr,rr,sr,tr,vr,wr,xr,yr,zr,Ar,Yga,Br,Zga,Dr,Fr,Gr,bha,cha,Hr,Ir,Kr,Lr,Or,Pr,Mr,Qr,dha,Tr,Ur,Wr,Xr,Yr,Zr,bs,cs,as,ds,es,fs,Vr,is,hs,iha,ks,ns,jha,rs,qs,lha,mha,nha,Rs,oha,pha,Os,Ts,Ss,qha,Vs,Ws,Xs,ct,dt,et,gt,ht,jt,kt,lt,nt,ot,pt,rt,ut,vt,ft,wt,zt,xt,rha,Ct,Dt,Et,Ft,Ht,It,Jt,Kt,tha,uha,Rt,St,Tt,vha,Yt,Zt,$t,bu,du,eu,au,hu,ku,ju,iu,mu,pu,nu,wha,Au,zu,yha,zha,Fu,Hu,Iu,Cha,Bha,Cu,Tu,Uu,Vu,$u,av,Yu,bv,dv,fv,gv,Dha,hv,iv,jv,lv,Eha,qv,pv,kv,rv,tv,uv,wv,xv,Fha,Ev,Fv,Iv,Hv,Jv,Kv,Mv,Nv,
Jha,Kha,Lha,Ov,Pv,Rv,Sv,Qv,Tv,Mha,Uv,Vv,Wv,Xv,Yv,$v,Nha,aw,ew,fw,Zv,gw,Pha,Qha,bw,hw,Rha,dw,Oha,cw,jw,Sha,kw,lw,iw,Tha,mw,nw,ow,qw,rw,Uha,Vha,Wha,vw,ww,xw,Xha,Yha,Zha,$ha,aia,bia,yw,cia,zw,Bw,Ew,dia,eia,fia,Fw,Cw,Dw,Iw,Jw,Kw,hia,gia,Mw,Lw,Ow,Nw,Vw,Ww,Xw,Zw,Sw,jia,Pw,Tw,Rw,Qw,Uw,mia,kia,ex,fx,dx,hx,kx,lx,oia,ix,jx,mx,nx,px,qx,tx,rx,vx,ux,wx,pia,yx,zx,Bx,ria,Dx,Ex,Fx,Hx,sia,Jx,Lx,tia,uia,Ox,Nx,wia,Px,Sx,Qx,Rx,Av,Bia,Zx,cy,dy,Cia,$x,Dia,Uy,Zy,Gia,Hia,cz,gz,fz,iz,ez,hz,jz,Jia,Kia,oz,pz,R,qz,rz,sz,tz,
vz,xz,yz,Qia,Az,Tia,Bz,Cz,Dz,Gz,Xia,Kz,Lz,Mz,Nz,Oz,Rz,Sz,Yia,Uz,Xz,Yz,Wz,Zz,$z,aA,cA,dA,Tz,eA,bA,gA,$ia,hA,jA,kA,iA,lA,mA,oA,pA,rA,uA,qA,vA,xA,yA,CA,AA,FA,EA,GA,HA,IA,JA,BA,LA,KA,zA,dja,eja,NA,OA,PA,QA,RA,TA,UA,WA,XA,YA,bB,cB,aB,hja,jja,jB,iB,gja,fja,hB,lB,mB,oB,qB,sB,tB,uB,vB,rB,kja,wB,xB,yB,zB,AB,BB,CB,DB,EB,FB,lja,GB,IB,JB,KB,HB,nja,LB,MB,OB,QB,oja,RB,TB,WB,SB,UB,XB,YB,pja,aC,bC,hC,qja,dC,jC,lC,nC,fC,kC,iC,rja,oC,sja,pC,qC,cC,eC,gC,mC,rC,sC,tja,uC,uja,vja,vC,wC,xC,zC,wja,yC,AC,BC,CC,DC,EC,FC,GC,
JC,HC,xja,KC,LC,MC,NC,yja,IC,OC,PC,QC,RC,SC,TC,UC,WC,XC,YC,zja,ZC,$C,aD,bD,cD,Aja,Bja,Fja,Gja,Cja,Dja,Eja,dD,fD,eD,gD,hD,iD,Hja,jD,kD,lD,mD,nD,oD,pD,qD,rD,sD,tD,uD,vD,wD,xD,yD,zD,AD,CD,ED,DD,FD,GD,HD,ID,JD,KD,Ija,MD,LD,QD,RD,SD,TD,UD,VD,OD,WD,XD,YD,ZD,Jja,$D,aE,bE,cE,dE,eE,fE,gE,Kja,hE,iE,jE,kE,lE,oE,pE,qE,rE,sE,Lja,uE,vE,tE,wE,xE,yE,Mja,zE,CE,ija,fB,Oja,DE,EE,FE,Pja,Qja,ZA,Rja,GE,JE,Uja,Tja,HE,Sja,ME,IE,Yja,Vja,Wja,$ja,aka,OE,Zja,bka,QE,PE,RE,SE,cka,dka,eka,TE,NE,fka,gka,VE,hka,ika,jka,WE,XE,kka,
lka,mka,kB,gB,ZE,aF,cF,dF,eF,fF,gF,bF,iF,oka,kF,qka,lF,ska,rka,pka,tka,uka,vka,mF,$A,nF,wka,dB,xka,pF,yka,qF,zka,rF,sF,Aka,tF,Cka,vF,Dka,wF,xF,yF,zF,Fka,Gka,Hka,Jka,BF,Kka,Ika,CF,DF,EF,FF,Nka,GF,HF,uG,$F,Ska,Xka,vG,yG,zG,RF,YF,dla,IF,Yka,aG,cG,CG,DG,ela,HG,Uka,fla,OF,KG,NF,Wka,LG,Pka,tG,bla,NG,OG,hla,ila,jla,kla,lla,mla,PG,nla,sla,rla,ola,qla,pla,QG,tla,RG,ula,vla,TG,UG,wla,VG,WG,xla,yla,Ala,Dla,Ela,YG,Hla,Ila,Jla,Kla,Bla,Fla,Gla,Lla,Pla,dH,Qla,eH,Sla,Ula,fH,gH,Vla,Xla,Yla,Zla,$la,fma,iH,gma,ima,
hma,jma,kma,mH,lma,jH,nH,oH,mma,nma,pH,rma,oma,qma,xH,BH,Ema,Gma,zma,wH,FH,Dma,Fma,GH,Hma,Ima,HH,xma,Kma,Jma,tH,EH,AH,Qma,Mma,Rma,Nma,Oma,Pma,Sma,IH,Tma,Uma,KH,LH,Vma,NH,sH,DH,Ama,pma,Cma,Bma,PH,Lma,Xma,WH,XH,YH,ZH,$ma,yH,ana,aI,$H,yma,Wma,zH,bna,uma,vH,tma,Wla,eI,dna,fI,hI,ena,fna,hna,gna,iI,jI,ina,kI,jna,lI,mI,nI,oI,pI,qI,rI,kna,sI,lna,tI,vI,ona,uI,pna,mna,qna,nna,rna,sna,tna,wI,xI,vna,yI,zI,AI,wna,xna,BI,CI,DI,yna,Bna,II,FI,Ana,LI,zna,MI,HI,NI,KI,JI,GI,EI,Cna,QI,PI,RI,Dna,TI,VI,WI,Fna,Ena,XI,YI,
ZI,$I,aJ,bJ,Gna,cJ,Hna,dJ,Jna,Kna,fJ,Lna,Mna,Nna,Qna,Ona,Pna,Rna,Sna,gJ,Tna,Una,Vna,Wna,Xna,Yna,hJ,iJ,jJ,kJ,lJ,mJ,nJ,oJ,pJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,yJ,zJ,AJ,BJ,CJ,DJ,EJ,FJ,GJ,HJ,IJ,JJ,KJ,LJ,MJ,NJ,OJ,PJ,QJ,RJ,SJ,TJ,UJ,VJ,WJ,XJ,YJ,ZJ,$J,aK,bK,$na,Zna,boa,coa,aoa,cK,doa,dK,eK,fK,gK,foa,eoa,ioa,joa,koa,jK,loa,moa,kK,noa,nK,oK,ooa,pK,soa,toa,uoa,qK,voa,rK,woa,xoa,sK,yoa,zoa,Boa,Coa,Doa,uK,tK,Aoa,vK,Eoa,Foa,Hoa,Goa,Ioa,Joa,wK,xK,Moa,Noa,yK,Ooa,Poa,zK,AK,CK,DK,EK,FK,IK,Qoa,KK,LK,Roa,Soa,Toa,MK,Voa,Woa,NK,
Xoa,PK,Yoa,Zoa,QK,RK,$oa,apa,SK,cpa,bpa,TK,fpa,UK,gpa,VK,WK,hpa,ipa,jpa,kpa,lpa,mpa,YK,$K,qpa,tpa,npa,aL,Dpa,Cpa,bL,Fpa,Epa,Hpa,Ipa,Kpa,Jpa,Lpa,Mpa,Npa,Opa,Ppa,Qpa,Rpa,cL,dL,Spa,Tpa,Upa,Wpa,Xpa,Ypa,Zpa,$pa,kL,bqa,cqa,iL,jL,aqa,dqa,eqa,lL,hqa,fqa,jqa,iqa,kqa,mL,pqa,mqa,nqa,oqa,qqa,nL,rqa,tqa,uqa,sqa,oL,vqa,OK,xqa,yqa,Uoa,wqa,qL,rL,zqa,Aqa,Bqa,sL,uL,Dqa,vL,yL,Eqa,zL,Fqa,Gqa,AL,Iqa,Jqa,Kqa,Lqa,Mqa,Nqa,Oqa,Pqa,FL,Qqa,GL,Rqa,Sqa,Tqa,Uqa,Vqa,KL,LL,ML,Wqa,NL,Xqa,PL,Zqa,Yqa,QL,RL,SL,TL,$qa,UL,VL,ara,WL,XL,
era,bra,dra,cra,fra,YL,ZL,gra,hra,ira,jra,$L,kra,mra,lra,aM,bM,cM,dM,eM,gM,hM,iM,jM,kM,nra,lM,mM,pra,ora,nM,oM,pM,qM,rM,sM,vM,wM,xM,yM,zM,AM,BM,CM,rra,DM,sra,vra,FM,wra,GM,HM,IM,JM,KM,Ara,Bra,zra,Dra,Cra,yra,LM,MM,NM,OM,PM,QM,RM,Fra,Gra,Ira,Hra,zv,Kra,Jra,VM,Mra,Lra,Ora,Nra,Pra,Qra,Rra,Tra,Ura,Wra,YM,Xra,aN,ZM,bN,$M,lqa,Yra,Zra,$ra,asa,gN,fN,iN,fsa,gsa,rN,hsa,uN,isa,jsa,vN,wN,ksa,yN,tsa,wsa,usa,xsa,ysa,zsa,Asa,Csa,GN,Gsa,JN,Isa,Fsa,Jsa,Ksa,IN,Hsa,MN,NN,ON,PN,dN,RN,Lsa,LN,SN,VN,Msa,UN,XN,Nsa,$N,aO,
bO,fO,Psa,Qsa,hO,gO,Rsa,Ssa,iO,Tsa,Usa,jO,Vsa,Wsa,lO,mO,Xsa,pO,Zsa,rO,nO,$sa,ata,Ysa,sO,tO,wO,bta,vO,yO,xO,AO,dta,eta,EO,fta,HO,gta,jta,hta,LO,MO,kta,PO,QO,RO,SO,UO,lta,mta,WO,ota,nta,pta,qta,rta,sta,bP,cP,dP,tta,eP,fP,uta,vta,iP,xta,wta,jP,kP,lP,yta,mP,nP,oP,pP,zta,qP,rP,Ata,sP,Bta,Dta,Cta,xP,vP,wP,Eta,Fta,Gta,yP,zP,AP,BP,CP,Hta,FP,Ita,HP,IP,JP,LP,Jta,Mta,MP,Kta,Lta,Pta,Ota,OP,Qta,PP,QP,RP,Tta,Uta,TP,Vta,Wta,Xta,VP,Yta,Zta,bua,$ta,aua,cua,XP,YP,ZP,$P,dua,eua,fua,gua,hua,iua,lua,kua,jua,oua,nua,dQ,
hQ,qua,rua,fQ,bQ,eQ,jQ,uua,kQ,gQ,mua,tua,iQ,pua,sua,vua,wua,mQ,nQ,oQ,pQ,yua,sQ,tQ,uQ,vQ,wQ,xQ,zua,yQ,AQ,zQ,BQ,CQ,Aua,DQ,Bua,Dua,Cua,EQ,FQ,Eua,GQ,HQ,Fua,IQ,Gua,JQ,Hua,KQ,PQ,OQ,Iua,NQ,SQ,Jua,Kua,TQ,UQ,VQ,WQ,YQ,Lua,FO,Pua,$O,Mua,RQ,Oua,aP,Nua,Qua,Uua,Tua,Vua,Wua,bR,Xua,cR,Yua,eR,fR,gR,hR,iR,jR,$ua,kR,lR,mR,nR,pR,ava,bva,qR,rR,eva,sR,fva,tR,uR,wR,xR,yR,gva,vR,zR,AR,BR,CR,jva,kva,DR,ER,iva,GR,ova,nva,pva,qva,HR,IR,JR,KR,rva,OR,sva,tva,uva,PR,vva,QR,RR,SR,zva,Bva,xva,yva,TR,wva,UR,VR,WR,Eva,Fva,Cva,Dva,
YR,ZR,Iva,Jva,Hva,Lva,$R,Ova,Pva,Qva,Mva,Rva,Nva,Uva,aS,bS,Vva,Wva,Xva,Yva,Zva,dS,$va,awa,bwa,cwa,eS,gwa,fwa,fS,hwa,CS,dwa,jwa,iwa,ewa,lwa,mwa,nwa,owa,qwa,pwa,rwa,NS,swa,PS,twa,QS,uwa,vwa,wwa,RS,xwa,SS,Awa,zwa,ywa,US,Fwa,Gwa,Hwa,XS,WS,Iwa,TS,Bwa,Dwa,Ewa,Kwa,Jwa,Lwa,Mwa,Nwa,Pwa,Qwa,Rwa,Owa,Swa,Uwa,Vwa,Wwa,Xwa,Ywa,aT,bT,cxa,fxa,dxa,$wa,eT,Zwa,exa,hT,hxa,gxa,iT,jxa,lxa,mxa,kxa,lT,nxa,rxa,sxa,txa,rT,sT,uxa,mT,tT,vT,vxa,pT,wxa,xxa,wT,yxa,xT,Axa,Bxa,pxa,nT,zT,Hxa,AT,Ixa,Jxa,Fxa,CT,Kxa,DT,Dxa,GT,Gxa,Lxa,
ET,BT,Mxa,HT,Nxa,Pxa,KT,IT,LT,JT,MT,Qxa,NT,OT,PT,QT,Rxa,RT,Sxa,TT,Uxa,Vxa,Wxa,WT,VT,UT,Xxa,Yxa,Zxa,$xa,$T,aU,bU,aya,bya,cya,dya,cU,eya,hya,dU,jya,fU,hU,eU,iU,fya,jU,iya,gya,gU,kU,lU,kya,mU,nU,oU,lya,nya,rya,oya,pya,qya,tU,uU,vU,wU,Cxa,xU,tya,yT,yU,uya,zya,Aya,Bya,DU,EU,Cya,FU,yya,Dya,Eya,zU,vya,Fya,AU,BU,wya,xya,Gya,CU,Hya,Iya,Jya,Kya,JU,Mya,Lya,GU,HU,IU,Nya,Oya,Pya,Qya,KU,Rya,LU,Sya,MU,Tya,OU,Uya,PU,Yya,RU,$ya,UU,Wya,Xya,Vya,SU,QU,Zya,eza,cza,aza,WU,fza,XU,gza,YU,ZU,hza,iza,jza,kza,lza,$U,nza,aV,
bV,cV,dV,eV,oza,pza,qU,sU,sza,hV,iV,rU,sya,lV,gV,tza,fV,qza,rza,mV,nV,uza,kV,pU,jV,vza,wza,xza,oV,zza,yza,pV,Aza,Bza,qV,tV,Fza,rV,Nza,sV,Oza,uV,Jza,Gza,Kza,Dza,vV,Pza,Qza,Tza,Sza,Rza,wV,Uza,Yza,Zza,BV,CV,$za,EV,FV,HV,cAa,dAa,IV,eAa,zV,KV,fAa,gAa,iAa,dza,JV,hAa,Wza,NU,GV,aAa,jAa,kAa,lAa,Vza,AV,yV,TU,DV,mAa,bza,MV,NV,nAa,oAa,pAa,rAa,qAa,OV,sAa,uAa,tAa,wAa,QV,BAa,xAa,CAa,zAa,DAa,AAa,RV,HAa,FAa,GAa,MAa,JAa,NAa,OAa,SV,PV,IAa,LAa,EAa,PAa,TV,QAa,yAa,RAa,UV,VV,SAa,UAa,VAa,WV,TAa,XV,YV,ZV,$V,aW,cW,XAa,ZAa,
aBa,$Aa,dW,YAa,fW,eW,bBa,bW,cBa,gW,jW,dBa,fBa,eBa,iW,gBa,hBa,jBa,iBa,kBa,kW,hW,lBa,lW,nBa,qBa,oBa,rBa,sBa,mBa,tBa,uBa,wBa,yBa,zBa,vBa,BBa,CBa,pBa,DBa,EBa,xBa,nW,FBa,GBa,HBa,IBa,oW,pW,sW,tW,MBa,uW,NBa,OBa,PBa,vW,KBa,QBa,RBa,yW,SBa,UBa,TBa,VBa,zW,AW,WBa,BW,CW,DW,ZBa,FW,EW,$Ba,HW,YBa,bCa,cCa,aCa,GW,dCa,IW,eCa,LBa,xW,gCa,hCa,iCa,jCa,kCa,lCa,mCa,oCa,pCa,qCa,nCa,rCa,sCa,KW,tCa,uCa,vCa,LW,MW,wCa,xCa,yCa,OW,ACa,RW,QW,BCa,CCa,PW,NW,zCa,UW,TW,DCa,VW,SW,ECa,XW,ICa,$W,bX,cX,KCa,GCa,YW,aX,dX,HCa,LCa,eX,NCa,WW,
OCa,PCa,MCa,QCa,ZW,JCa,RCa,FCa,fX,gX,mX,TCa,UCa,nX,WCa,YCa,XCa,ZCa,aDa,bDa,$Ca,cDa,dDa,oX,qX,eDa,rX,Xza,fDa,mza,gDa,sX,hDa,iDa,jDa,kDa,mDa,nDa,oDa,pDa,qDa,tX,sDa,uX,uDa,vDa,tDa,wX,xX,yX,zX,AX,BX,CX,wDa,xDa,yDa,CDa,EDa,GDa,HDa,rDa,vX,IDa,NDa,LDa,ODa,MDa,JDa,PDa,KDa,RDa,DX,TDa,UDa,VDa,MX,OI,NX,VS,YDa,oxa,aEa,OX,LX,bEa,UX,QX,kT,ZDa,WX,dEa,dT,XX,YX,Cwa,TX,ZX,FX,cEa,WDa,JX,bY,cY,fT,kEa,IX,ixa,aY,uT,FT,PX,eEa,mEa,lEa,nEa,dY,bxa,oEa,pEa,iEa,EX,qEa,eY,RX,GX,KX,gT,SX,rEa,XDa,fY,qT,sEa,tEa,uEa,axa,$X,jEa,$Da,
IEa,FEa,CEa,MEa,BEa,NEa,OEa,jY,nY,REa,PEa,lY,QEa,hY,pY,qY,TEa,rY,sY,GEa,HEa,yY,WEa,xY,iY,XEa,JEa,BY,YEa,LEa,uY,vY,tY,EY,cFa,oY,dFa,eFa,FY,AY,GY,HY,fFa,wY,SEa,DY,ZEa,gFa,hFa,cN,jFa,zY,IY,lFa,kY,JY,mY,nFa,oFa,EEa,CY,pFa,DEa,KY,LY,Txa,qFa,MY,NY,OY,rFa,PY,QY,RY,SY,TY,UY,tFa,sFa,VY,uFa,WY,X,XY,wFa,ZY,yFa,YY,zFa,aZ,AFa,bZ,$Y,cZ,dZ,qoa,roa,Ina,fZ,DFa,nZ,oZ,lK,mZ,pZ,GFa,HFa,IFa,JFa,CFa,KFa,eZ,LFa,MFa,sZ,jZ,rZ,xZ,tZ,hZ,NFa,gZ,qZ,uZ,yZ,kZ,lZ,wZ,vZ,PFa,zZ,AZ,QFa,BZ,Y,RFa,SFa,VFa,WFa,$Fa,CZ,aGa,XFa,bGa,DZ,EZ,
FZ,dGa,gGa,eGa,jGa,mGa,lGa,nGa,qGa,pGa,tGa,vGa,yGa,zGa,BGa,CGa,GGa,RZ,DGa,JGa,HGa,LGa,UZ,nz,MGa,WZ,kz,YZ,ZZ,Iia,$Z,OGa,a_,SZ,HZ,b_,TZ,PZ,IZ,PGa,c_,d_,LZ,QGa,iGa,JZ,KZ,OZ,RGa,SGa,e_,f_,TGa,VZ,NZ,MZ,GZ,wGa,AGa,QZ,EGa,oGa,rGa,g_,h_,i_,UGa,j_,k_,l_,m_,n_,o_,p_,q_,TFa,r_,UFa,WGa,VGa,cGa,xGa,XGa,KGa,YGa,uGa,hGa,fGa,ZFa,YFa,kGa,FGa,IGa,sGa,$Ga,s_,ZGa,t_,mK,iZ,EFa,XZ,u_,v_,w_,aHa,x_,y_,z_,A_,pL,bHa,BFa,cHa,B_,C_,dHa,eHa,E_,F_,gHa,hHa,H_,I_,J_,fHa,G_,iHa,jHa,K_,mz,mHa,lHa,L_,D_,nHa,oHa,pHa,M_,N_,qHa,rHa,sHa,
tHa,O_,P_,Q_,R_,S_,T_,U_,uHa,V_,W_,X_,Y_,Z_,$_,vHa,wHa,xHa,a0,b0,c0,d0,yHa,e0,zHa,f0,AHa,g0,BHa,h0,i0,j0,k0,l0,m0,CHa,o0,p0,DHa,EHa,FHa,r0,q0,s0,t0,GHa,HHa,u0,v0,IHa,w0,KHa,JHa,x0,y0,LHa,z0,NHa,OHa,MHa,PHa,A0,QHa,RHa,B0,C0,D0,SHa,E0,F0,G0,THa,H0,I0,UHa,J0,n0,K0,L0,poa,M0,VHa,N0,WHa,O0,P0,Q0,R0,XHa,YHa,$Ha,bIa,ZHa,S0,cIa,eIa,dIa,fIa,T0,U0,V0,NGa,gIa,W0,X0,Y0,hIa,Z0,aIa,iIa,jIa,$0,a1,kIa,b1,lIa,mIa,c1,nIa,oIa,d1,e1,g1,pIa,h1,i1,j1,qIa,k1,rIa,l1,m1,sIa,n1,tIa,o1,uIa,vIa,wIa,xIa,yIa,q1,zIa,AIa,BIa,CIa,
DIa,r1,EIa,s1,t1,u1,v1,FIa,w1,GIa,HIa,IIa,z1,JIa,KIa,LIa,MIa,A1,y1,NIa,C1,OIa,D1,E1,F1,G1,H1,PIa,RIa,QIa,SIa,I1,TIa,UIa,J1,VIa,K1,L1,M1,WIa,XIa,N1,YIa,O1,P1,ZIa,$Ia,aJa,lz,bJa,cJa,aa,ha,fa,Fi,Oa,eaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
ea=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ia=function(a,b){if(b)a:{var c=fa;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ha(c,a,{configurable:!0,writable:!0,value:b})}};
ka=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ea(a)}};
la=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.ma=function(a){return a instanceof Array?a:la(g.q(a))};
g.v=function(a,b){a.prototype=na(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Rd=b.prototype};
pa=function(){this.J=!1;this.C=null;this.l=void 0;this.i=1;this.B=this.G=0;this.U=this.u=null};
qa=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
ra=function(a,b){a.u={MG:b,SH:!0};a.i=a.G||a.B};
g.w=function(a,b,c){a.i=c;return{value:b}};
g.sa=function(a){a.i=0};
ta=function(a,b,c){a.G=b;void 0!=c&&(a.B=c)};
ua=function(a,b){a.i=b;a.G=0};
va=function(a){a.G=0;var b=a.u.MG;a.u=null;return b};
wa=function(a){a.U=[a.u];a.G=0;a.B=0};
xa=function(a,b){var c=a.U.splice(0)[0];(c=a.u=a.u||c)?c.SH?a.i=a.G||a.B:void 0!=c.ub&&a.B<c.ub?(a.i=c.ub,a.u=null):a.i=a.B:a.i=b};
baa=function(a){this.i=new pa;this.l=a};
caa=function(a,b){qa(a.i);var c=a.i.C;if(c)return ya(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i.return);
a.i.return(b);return Aa(a)};
ya=function(a,b,c,d){try{var e=b.call(a.i.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.i.J=!1,e;var f=e.value}catch(h){return a.i.C=null,ra(a.i,h),Aa(a)}a.i.C=null;d.call(a.i,f);return Aa(a)};
Aa=function(a){for(;a.i.i;)try{var b=a.l(a.i);if(b)return a.i.J=!1,{value:b.value,done:!1}}catch(c){a.i.l=void 0,ra(a.i,c)}a.i.J=!1;if(a.i.u){b=a.i.u;a.i.u=null;if(b.SH)throw b.MG;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){qa(a.i);a.i.C?b=ya(a,a.i.C.next,b,a.i.K):(a.i.K(b),b=Aa(a));return b};
this.throw=function(b){qa(a.i);a.i.C?b=ya(a,a.i.C["throw"],b,a.i.K):(ra(a.i,b),b=Aa(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
g.z=function(a,b){b=new daa(new baa(b));oa&&a.prototype&&oa(b,a.prototype);return b};
Ca=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Da=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ea=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{DH:e,aL:f}}return{DH:-1,aL:void 0}};
Fa=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
Ga=function(a){return a?a:Array.prototype.fill};
g.Ha=function(a,b,c){a=a.split(".");c=c||g.A;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
g.Ia=function(a,b){a=a.split(".");b=b||g.A;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
g.Ja=function(){};
La=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ma=function(a){var b=La(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Na=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Pa=function(a){return Object.prototype.hasOwnProperty.call(a,Oa)&&a[Oa]||(a[Oa]=++eaa)};
faa=function(a,b,c){return a.call.apply(a.bind,arguments)};
gaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.C=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.C=faa:g.C=gaa;return g.C.apply(null,arguments)};
g.Qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ra=function(a,b){for(var c in b)a[c]=b[c]};
g.Sa=function(){return Date.now()};
g.Ta=function(a,b){function c(){}
c.prototype=b.prototype;a.Rd=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.ih=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Ua=function(a){return a};
Va=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Va);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b&&(this.cO=b)};
Wa=function(a,b){var c=Va.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(Va,this,d+a[e])};
haa=function(){};
g.Xa=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return b};
Ya=function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,Array.prototype.slice.call(a,c,c+8192));return b};
iaa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Za=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
g.$a=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
ab=function(a){return function(){return a}};
bb=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
cb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
db=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
jaa=function(a,b){var c=0;return function(d){g.A.clearTimeout(c);var e=arguments;c=g.A.setTimeout(function(){a.apply(b,e)},50)}};
g.eb=function(a){return a[a.length-1]};
kaa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.gb=function(a,b,c){b=fb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
fb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.ib=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.kb=function(a,b){return 0<=jb(a,b)};
lb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.ob=function(a,b){b=jb(a,b);var c;(c=0<=b)&&g.nb(a,b);return c};
g.nb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.pb=function(a,b){b=fb(a,b,void 0);0<=b&&g.nb(a,b)};
laa=function(a,b){var c=0;kaa(a,function(d,e){b.call(void 0,d,e,a)&&g.nb(a,e)&&c++})};
g.qb=function(a){return Array.prototype.concat.apply([],arguments)};
g.rb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
sb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ma(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.ub=function(a,b,c,d){Array.prototype.splice.apply(a,tb(arguments,1))};
tb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
maa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Na(e)?"o"+g.Pa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.xb=function(a,b,c){return vb(a,c||wb,!1,b)};
yb=function(a,b){return vb(a,b,!0,void 0,void 0)};
vb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
g.zb=function(a,b){a.sort(b||wb)};
naa=function(a,b){var c=wb;g.zb(a,function(d,e){return c(b(d),b(e))})};
g.Ab=function(a,b){if(!g.Ma(a)||!g.Ma(b)||a.length!=b.length)return!1;for(var c=a.length,d=oaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
wb=function(a,b){return a>b?1:a<b?-1:0};
oaa=function(a,b){return a===b};
g.Bb=function(a,b,c){c=g.xb(a,b,c);0>c&&g.ub(a,-(c+1),0,b)};
g.Db=function(a,b,c){var d={};(0,g.Cb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
paa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
qaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
g.Eb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Fb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Gb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Hb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Ib=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Jb=function(a){for(var b in a)return b};
Kb=function(a){for(var b in a)return a[b]};
Lb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Mb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Nb=function(a,b){return null!==a&&b in a};
g.Ob=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Pb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Qb=function(a,b){return(b=Pb(a,b,void 0))&&a[b]};
g.Rb=function(a){for(var b in a)return!1;return!0};
g.Sb=function(a){for(var b in a)delete a[b]};
Tb=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Ub=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.Vb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Wb=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Wb(a[c]);return b};
g.Yb=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Xb.length;f++)c=Xb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Zb=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
ac=function(){if(void 0===$b){var a=null,b=g.A.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ua,createScript:Ua,createScriptURL:Ua})}catch(c){g.A.console&&g.A.console.error(c.message)}$b=a}else $b=a}return $b};
dc=function(a,b){this.i=a===bc&&b||"";this.l=cc};
ec=function(a){return a instanceof dc&&a.constructor===dc&&a.l===cc?a.i:"type_error:Const"};
g.fc=function(a){return new dc(bc,a)};
hc=function(a,b){this.i=b===gc?a:"";this.Xj=!0};
kc=function(a,b){this.i=b===ic?a:""};
lc=function(a){return a instanceof kc&&a.constructor===kc?a.i:"type_error:TrustedResourceUrl"};
taa=function(a,b){var c=ec(a);if(!raa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(saa,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 dc?ec(d):encodeURIComponent(String(d))});
return mc(a)};
mc=function(a){var b=ac();a=b?b.createScriptURL(a):a;return new kc(a,ic)};
nc=function(a,b){return 0==a.lastIndexOf(b,0)};
qc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.rc=function(a){return/^[\s\xa0]*$/.test(a)};
yc=function(a,b){if(b)a=a.replace(sc,"&amp;").replace(tc,"&lt;").replace(uc,"&gt;").replace(vc,"&quot;").replace(wc,"&#39;").replace(xc,"&#0;");else{if(!uaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(sc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(tc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(uc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(vc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(wc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(xc,"&#0;"))}return a};
zc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Cc=function(a,b){var c=0;a=Ac(String(a)).split(".");b=Ac(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=Bc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||Bc(0==f[2].length,0==h[2].length)||Bc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
Bc=function(a,b){return a<b?-1:a>b?1:0};
g.Ec=function(a,b){this.i=b===Dc?a:""};
g.Fc=function(a){return a instanceof g.Ec&&a.constructor===g.Ec?a.i:"type_error:SafeUrl"};
Gc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(vaa);return b&&waa.test(b[1])?new g.Ec(a,Dc):null};
g.Jc=function(a){a instanceof g.Ec||(a="object"==typeof a&&a.Xj?a.ph():String(a),a=Hc.test(a)?new g.Ec(a,Dc):Gc(a));return a||Ic};
g.Kc=function(a,b){if(a instanceof g.Ec)return a;a="object"==typeof a&&a.Xj?a.ph():String(a);if(b&&/^data:/i.test(a)&&(b=Gc(a)||Ic,b.ph()==a))return b;Hc.test(a)||(a="about:invalid#zClosurez");return new g.Ec(a,Dc)};
Mc=function(a,b){this.i=b===Lc?a:""};
Nc=function(a){return a instanceof Mc&&a.constructor===Mc?a.i:"type_error:SafeStyle"};
Qc=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(Oc).join(" "):Oc(d),b+=c+":"+d+";")}return b?new Mc(b,Lc):Pc};
Oc=function(a){if(a instanceof g.Ec)return'url("'+g.Fc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof dc?ec(a):xaa(String(a));if(/[{;}]/.test(a))throw new Wa("Value does not allow [{;}], got: %s.",[a]);return a};
xaa=function(a){var b=a.replace(Rc,"$1").replace(Rc,"$1").replace(Sc,"url");if(yaa.test(b)){if(zaa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Aaa(a))return"zClosurez"}else return"zClosurez";return Baa(a)};
Aaa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Baa=function(a){return a.replace(Sc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Jc(d).ph();return c+f+b+f+e})};
Caa=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Nc(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new Mc(c,Lc):Pc};
Uc=function(a){return-1!=g.Tc.indexOf(a)};
Vc=function(){return Uc("Firefox")||Uc("FxiOS")};
Xc=function(){return Uc("Safari")&&!(Wc()||Uc("Coast")||Uc("Opera")||Uc("Edge")||Uc("Edg/")||Uc("OPR")||Vc()||Uc("Silk")||Uc("Android"))};
Wc=function(){return(Uc("Chrome")||Uc("CriOS"))&&!Uc("Edge")};
Zc=function(a,b,c){this.i=c===Yc?a:"";this.l=b};
g.$c=function(a){return a instanceof Zc&&a.constructor===Zc?a.i:"type_error:SafeHtml"};
bd=function(a){if(a instanceof Zc)return a;var b="object"==typeof a,c=null;b&&a.DB&&(c=a.Bq());return ad(yc(b&&a.Xj?a.ph():String(a)),c)};
Daa=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=bd(f),e.push(g.$c(f).toString()),f=f.Bq(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=bd(cd),d=c.Bq(),e=[];a.forEach(b);return ad(e.join(g.$c(c).toString()),d)};
Eaa=function(a){return Daa(Array.prototype.slice.call(arguments))};
ad=function(a,b){var c=ac();a=c?c.createHTML(a):a;return new Zc(a,b,Yc)};
g.dd=function(a,b){ec(a);ec(a);return ad(b,null)};
Faa=function(a){var b=g.fc("Output of CSS sanitizer");ec(b);ec(b);return new Mc(a,Lc)};
id=function(a,b){ec(a);ec(a);return mc(b)};
g.jd=function(a,b){if(Gaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.$c(b)};
g.kd=function(a,b){b=b instanceof g.Ec?b:g.Kc(b);a.href=g.Fc(b)};
ld=function(a,b,c,d){a=a instanceof g.Ec?a:g.Kc(a);b=b||g.A;c=c instanceof dc?ec(c):c||"";return void 0!==d?b.open(g.Fc(a),c,d,void 0):b.open(g.Fc(a),c)};
md=function(a,b,c){return a.parseFromString(g.$c(b),c)};
nd=function(){a:{var a=g.A.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Haa.test(a))break a;a=""}return a};
od=function(a){return encodeURIComponent(String(a))};
pd=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.qd=function(a){return a=yc(a,void 0)};
g.rd=function(a){return null==a?"":String(a)};
sd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
td=function(a){var b=Number(a);return 0==b&&g.rc(a)?NaN:b};
ud=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
vd=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Iaa=function(a){return a.replace(/(^|[\s]+)([a-z])/g,function(b,c,d){return c+d.toUpperCase()})};
Jaa=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
wd=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a};
yd=function(a){return a.constructor===Uint8Array?a:a.constructor===ArrayBuffer?new Uint8Array(a):a.constructor===Array?new Uint8Array(a):a.constructor===String?g.xd(a):a instanceof Uint8Array?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(0)};
Ad=function(a,b,c){this.l=null;this.i=this.u=this.B=0;this.C=!1;a&&zd(this,a,b,c)};
Cd=function(a,b,c){if(Bd.length){var d=Bd.pop();a&&zd(d,a,b,c);return d}return new Ad(a,b,c)};
zd=function(a,b,c,d){a.l=yd(b);a.B=void 0!==c?c:0;a.u=void 0!==d?a.B+d:a.l.length;a.i=a.B};
Dd=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.l[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.l[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.l[a.i++],d|=(b&127)<<7*e+3;if(128>b)return wd(c>>>0,d>>>0);a.C=!0};
Ed=function(a){var b=a.l;var c=b[a.i+0];var d=c&127;if(128>c)return a.i+=1,d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,d>>>0;a.i+=5;128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&a.i++;return d};
Gd=function(a){this.i=Cd(a,void 0,void 0);this.C=this.i.i;this.l=this.u=-1;this.B=!1};
Hd=function(a){var b=a.i;(b=b.i==b.u)||(b=a.B)||(b=a.i,b=b.C||0>b.i||b.i>b.u);if(b)return!1;a.C=a.i.i;b=Ed(a.i);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.u=b>>>3;a.l=c;return!0};
Id=function(a){switch(a.l){case 0:if(0!=a.l)Id(a);else{for(a=a.i;a.l[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.l?Id(a):a.i.advance(8);break;case 2:if(2!=a.l)Id(a);else{var b=Ed(a.i);a.i.advance(b)}break;case 5:5!=a.l?Id(a):a.i.advance(4);break;case 3:b=a.u;do{if(!Hd(a)){a.B=!0;break}if(4==a.l){a.u!=b&&(a.B=!0);break}Id(a)}while(1);break;default:a.B=!0}};
Kd=function(a){var b=Ed(a.i);a=a.i;if(0>b||a.i+b>a.l.length)a.C=!0,b=new Uint8Array(0);else{var c=a.l;var d=a.i,e=a.i+b;c=Jd?c.slice(d,e):new Uint8Array(c.subarray(d,e));a.i+=b;b=c}return b};
Ld=function(){this.i=new Uint8Array(64);this.l=0};
Md=function(a,b){for(;127<b;)a.push(b&127|128),b>>>=7;a.push(b)};
Nd=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};
Od=function(){return Uc("iPhone")&&!Uc("iPod")&&!Uc("iPad")};
Pd=function(){return Od()||Uc("iPad")||Uc("iPod")};
Qd=function(){var a=g.Tc,b="";Uc("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Pd()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Uc("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):zc(g.Tc,"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):Uc("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):Uc("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||
""};
Rd=function(a){Rd[" "](a);return a};
Sd=function(a,b){try{return Rd(a[b]),!0}catch(c){}return!1};
Td=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Ud=function(){var a=g.A.document;return a?a.documentMode:void 0};
g.Wd=function(a){return Td(Kaa,a,function(){return 0<=g.Cc(Vd,a)})};
g.Xd=function(a){return Number(Laa)>=a};
g.$d=function(a,b){void 0===b&&(b=0);Yd();b=Zd[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
ee=function(a){var b=[];ae(a,function(c){b.push(c)});
return b};
g.xd=function(a){!g.fe||g.Wd("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;ae(a,function(f){d[e++]=f});
return d.subarray(0,e)};
ae=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=ge[n];if(null!=p)return p;if(!g.rc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Yd();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
Yd=function(){if(!ge){ge={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Zd[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===ge[f]&&(ge[f]=e)}}}};
he=function(){this.u=[];this.l=0;this.i=new Ld};
ie=function(a){var b=a.l+a.i.length();if(0===b)return new Uint8Array(0);b=new Uint8Array(b);for(var c=a.u,d=c.length,e=0,f=0;f<d;f++){var h=c[f];0!==h.length&&(b.set(h,e),e+=h.length)}c=a.i;d=c.l;0!==d&&(b.set(c.i.subarray(0,d),e),c.l=0);a.u=[b];return b};
le=function(a,b,c){if(null!=c&&null!=c){Md(a.i,8*b);a=a.i;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));je=b;ke=d;c=je;for(b=ke;0<b||127<c;)a.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.push(c)}};
me=function(a,b,c){null!=c&&(c=yd(c),Md(a.i,8*b+2),Md(a.i,c.length),b=a.i.end(),a.u.push(b),a.u.push(c),a.l+=b.length+c.length)};
ne=function(a,b,c,d){if(null!=c){Md(a.i,8*b+2);b=a.i.end();a.u.push(b);a.l+=b.length;var e=a.l;b=a.u.length-1;d(c,a);c=a.i.end();a.u.push(c);a.l+=c.length;Md(a.i,a.l+a.i.length()-e);c=a.i.end();a.l+=c.length;a.u.splice(1+b,0,c)}};
Maa=function(a){return pe(a,function(b){return b},function(b){return new Uint8Array(b)})};
re=function(a,b,c){return"object"===typeof a?qe&&!Array.isArray(a)&&a instanceof Uint8Array?c(a):pe(a,b,c):b(a)};
pe=function(a,b,c){if(Array.isArray(a)){for(var d=Array(a.length),e=0;e<a.length;e++){var f=a[e];null!=f&&(d[e]=re(f,b,c))}Array.isArray(a)&&a.MP&&se(d);return d}d={};for(e in a)f=a[e],null!=f&&(d[e]=re(f,b,c));return d};
se=function(a){Array.isArray(a)&&!Object.isFrozen(a)&&Object.defineProperties(a,Naa);return a};
te=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.xd(a):null};
ue=function(){};
ze=function(a,b,c,d,e){a.i=null;ve&&(b||(b=ve),ve=null);var f=a.constructor.bQ;b||(b=f?[f]:[]);a.B=f?0:-1;a.u=b;a:{f=a.u.length;b=-1;if(f&&(b=f-1,f=a.u[b],!(null===f||"object"!=typeof f||Array.isArray(f)||qe&&f instanceof Uint8Array))){a.C=b-a.B;a.l=f;break a}-1<c?(a.C=Math.max(c,b+1-a.B),a.l=null):a.C=Number.MAX_VALUE}a.G={};if(d)for(c=0;c<d.length;c++)b=d[c],b<a.C?(b+=a.B,(f=a.u[b])?se(f):a.u[b]=we):(xe(a),(f=a.l[b])?se(f):a.l[b]=we);if(e&&e.length)for(d=0;d<e.length;d++)ye(a,e[d])};
xe=function(a){var b=a.C+a.B;a.u[b]||(a.l=a.u[b]={})};
Ae=function(a,b){if(b<a.C){b+=a.B;var c=a.u[b];return c!==we?c:a.u[b]=se([])}if(a.l)return c=a.l[b],c!==we?c:a.l[b]=se([])};
Be=function(a,b,c){a=Ae(a,b);return null==a?c:a};
Ce=function(a,b,c){return Be(a,b,void 0===c?0:c)};
De=function(a,b,c){b<a.C?a.u[b+a.B]=c:(xe(a),a.l[b]=c);return a};
Fe=function(a,b,c,d){c!==d?De(a,b,c):b<a.C?a.u[b+a.B]=null:(xe(a),delete a.l[b]);return a};
Ge=function(a,b,c,d){(c=ye(a,c))&&c!==b&&void 0!==d&&(a.i&&c in a.i&&(a.i[c]=void 0),De(a,c,void 0));return De(a,b,d)};
ye=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=Ae(a,f);null!=h&&(c=f,d=h,De(a,f,void 0))}return c?(De(a,c,d),c):0};
He=function(a,b,c){a.i||(a.i={});if(!a.i[c]){var d=Ae(a,c);d&&(a.i[c]=new b(d))}return a.i[c]};
Ie=function(a,b,c){a.i||(a.i={});if(!a.i[c]){for(var d=Ae(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.i[c]=e}b=a.i[c];b==we&&(b=a.i[c]=[]);return b};
Ke=function(a,b,c){a.i||(a.i={});var d=c?Je(c):c;a.i[b]=c;return De(a,b,d)};
Le=function(a,b,c){a.i||(a.i={});c=c||[];for(var d=se([]),e=0;e<c.length;e++)d[e]=Je(c[e]);a.i[b]=c;return De(a,b,d)};
Je=function(a){if(a.i)for(var b in a.i){var c=a.i[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&Je(c[d]);else c&&Je(c)}return a.u};
Me=function(a){return JSON.stringify(a.u&&Je(a),Oaa)};
Oaa=function(a,b){switch(typeof b){case "number":return isNaN(b)||Infinity===b||-Infinity===b?String(b):b;case "object":if(qe&&null!=b&&b instanceof Uint8Array)return g.$d(b)}return b};
Ne=function(a,b){ve=b=b?JSON.parse(b):null;a=new a(b);ve=null;return a};
Qaa=function(a){var b=Paa;xe(a);a.i||(a.i={});return b.isRepeated?b.i?(a.i[175237375]||(a.i[175237375]=g.Oe(a.l[175237375]||[],function(c){return new b.i(c)})),a.i[175237375]):a.l[175237375]=a.l[175237375]||se([]):b.i?(!a.i[175237375]&&a.l[175237375]&&(a.i[175237375]=new b.i(a.l[175237375])),a.i[175237375]):a.l[175237375]};
Pe=function(a){ze(this,a,-1,null,null)};
Raa=function(a,b){var c=Ae(a,1);null!=c&&me(b,1,c);c=Ae(a,2);null!=c&&me(b,2,c)};
Qe=function(a){ze(this,a,-1,null,null)};
Saa=function(a,b){var c=Ae(a,1);null!=c&&me(b,1,c);c=Ae(a,2);null!=c&&me(b,2,c)};
Re=function(a){ze(this,a,-1,null,null)};
Taa=function(a,b){var c=Ae(a,1);null!=c&&me(b,1,c);c=Ae(a,2);null!=c&&me(b,2,c)};
Te=function(a){ze(this,a,-1,null,Se)};
g.D=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
function h(m){try{l(b["throw"](m))}catch(n){e(n)}}
function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)}
l((b=b.apply(a,void 0)).next())})};
Ue=function(a,b){var c;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b instanceof Error?(this.message=b.message,this.stack=null!==(c=b.stack)&&void 0!==c?c:""):(this.message=String(b),this.stack="");Object.setPrototypeOf(this,Ue.prototype)};
g.Ve=function(a,b,c){this.B=a;this.C=b;this.i=this.u=a;this.G=c||0};
g.Ze=function(a){a.i=Math.min(a.C,2*a.i);a.u=Math.min(a.C,a.i+(a.G?Math.round(a.G*(Math.random()-.5)*2*a.i):0));a.l++};
$e=function(a,b){return g.D(this,function d(){var e,f,h,l;return g.z(d,function(m){switch(m.i){case 1:e=new g.Ve(b.HH,b.oI),h=0;case 2:if(!(h<b.cK)){m.ub(4);break}ta(m,5);return g.w(m,a(),7);case 7:return m.return(m.l);case 5:return f=l=va(m),g.w(m,new Promise(function(n){setTimeout(n,e.getValue())}),8);
case 8:g.Ze(e);case 3:h++;m.ub(2);break;case 4:throw f;}})})};
af=function(a){this.mG=a};
bf=function(a,b,c){this.l=a;this.B=b;this.i=c||[];this.lq=new Map};
cf=function(a,b){bf.call(this,a,3,b)};
df=function(a,b){bf.call(this,a,2,b)};
g.ef=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.ff=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ma(d)?g.ff.apply(null,d):g.ef(d)}};
g.E=function(){this.Jh=this.Jh;this.gh=this.gh};
g.F=function(a,b){g.gf(a,g.Qa(g.ef,b))};
g.gf=function(a,b){a.Jh?b():(a.gh||(a.gh=[]),a.gh.push(b))};
g.hf=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.l=!1};
Uaa=function(a){var b=g.Ia("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.A.$googDebugFname||b}catch(h){e="Not available",c=!0}b=jf(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,kf[c])c=kf[c];else{c=String(c);if(!kf[c]){var f=/function\s+([^\(]+)/m.exec(c);kf[c]=f?f[1]:"[Anonymous]"}c=kf[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
jf=function(a,b){b||(b={});b[lf(a)]=!0;var c=a.stack||"";(a=a.cO)&&!b[lf(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=jf(a,b));return c};
lf=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
mf=function(a,b){g.hf.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.i=null;a&&this.init(a,b)};
of=function(a){return!(!a||!a[nf])};
Waa=function(a,b,c,d,e){this.listener=a;this.i=null;this.src=b;this.type=c;this.capture=!!d;this.Zd=e;this.key=++Vaa;this.xu=this.Lv=!1};
pf=function(a){a.xu=!0;a.listener=null;a.i=null;a.src=null;a.Zd=null};
qf=function(a){this.src=a;this.listeners={};this.i=0};
rf=function(a,b){var c=b.type;c in a.listeners&&g.ob(a.listeners[c],b)&&(pf(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
sf=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.xu&&f.listener==b&&f.capture==!!c&&f.Zd==d)return e}return-1};
uf=function(a,b,c,d,e){if(d&&d.once)return tf(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)uf(a,b[f],c,d,e);return null}c=yf(c);return of(a)?a.Ra(b,c,g.Na(d)?!!d.capture:!!d,e):zf(a,b,c,!1,d,e)};
zf=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Na(e)?!!e.capture:!!e,l=Af(a);l||(a[Bf]=l=new qf(a));c=l.add(b,c,d,h,f);if(c.i)return c;d=Xaa();c.i=d;d.src=a;d.listener=c;if(a.addEventListener)Yaa||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Cf(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Df++;return c};
Xaa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Zaa;return a};
tf=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)tf(a,b[f],c,d,e);return null}c=yf(c);return of(a)?a.Zw(b,c,g.Na(d)?!!d.capture:!!d,e):zf(a,b,c,!0,d,e)};
Ef=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Ef(a,b[f],c,d,e);else d=g.Na(d)?!!d.capture:!!d,c=yf(c),of(a)?a.fc(b,c,d,e):a&&(a=Af(a))&&(b=a.jt(b,c,d,e))&&Ff(b)};
Ff=function(a){if("number"!==typeof a&&a&&!a.xu){var b=a.src;if(of(b))rf(b.B,a);else{var c=a.type,d=a.i;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Cf(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Df--;(c=Af(b))?(rf(c,a),0==c.i&&(c.src=null,b[Bf]=null)):pf(a)}}};
Cf=function(a){return a in Gf?Gf[a]:Gf[a]="on"+a};
Zaa=function(a,b){if(a.xu)a=!0;else{b=new mf(b,this);var c=a.listener,d=a.Zd||a.src;a.Lv&&Ff(a);a=c.call(d,b)}return a};
Af=function(a){a=a[Bf];return a instanceof qf?a:null};
yf=function(a){if("function"===typeof a)return a;a[Hf]||(a[Hf]=function(b){return a.handleEvent(b)});
return a[Hf]};
g.If=function(){g.E.call(this);this.B=new qf(this);this.qb=this;this.Da=null};
Jf=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.xu&&h.capture==c){var l=h.listener,m=h.Zd||h.src;h.Lv&&rf(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Kf=function(a,b){this.u=a;this.B=b;this.l=0;this.i=null};
Lf=function(a,b){a.B(b);100>a.l&&(a.l++,b.next=a.i,a.i=b)};
$aa=function(a,b){return a+Math.random()*(b-a)};
g.Mf=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Nf=function(a,b){a%=b;return 0>a*b?a+b:a};
g.Of=function(a,b,c){return a+c*(b-a)};
Pf=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Qf=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Rf=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Sf=function(a,b){this.width=a;this.height=b};
g.Tf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Uf=function(a){return a.width*a.height};
Yf=function(a){return a?new Vf(Wf(a)):Xf||(Xf=new Vf)};
Zf=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.$f=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.bg=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ag(document,"*",a,b)};
g.cg=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.ag(c,"*",a,b)[0]||null}return a||null};
g.ag=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.kb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
eg=function(a,b){g.Eb(b,function(c,d){c&&"object"==typeof c&&c.Xj&&(c=c.ph());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:dg.hasOwnProperty(d)?a.setAttribute(dg[d],c):nc(d,"aria-")||nc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
fg=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Sf(a.clientWidth,a.clientHeight)};
hg=function(a){var b=gg(a);a=a.parentWindow||a.defaultView;return g.fe&&g.Wd("10")&&a.pageYOffset!=b.scrollTop?new g.Qf(b.scrollLeft,b.scrollTop):new g.Qf(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
gg=function(a){return a.scrollingElement?a.scrollingElement:g.ig||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
jg=function(a){return a?a.parentWindow||a.defaultView:window};
mg=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!aba&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.qd(h.name),'"');if(h.type){f.push(' type="',g.qd(h.type),'"');var l={};g.Yb(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=kg(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):eg(f,h));2<d.length&&lg(e,f,d,2);return f};
lg=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Ma(f)||g.Na(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Na(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Cb(h?g.rb(f):f,e)}}};
g.ng=function(a){return kg(document,a)};
kg=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.og=function(a){return document.createTextNode(String(a))};
g.pg=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.qg=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.rg=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
cba=function(a){return bba&&void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.sg=function(a){var b;if(dba&&!(g.fe&&g.Wd("9")&&!g.Wd("10")&&g.A.SVGElement&&a instanceof g.A.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Na(b)&&1==b.nodeType?b:null};
g.tg=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
Wf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.ug=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{g.pg(a);var c=Wf(a);a.appendChild(c.createTextNode(String(b)))}};
xg=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!vg(a)||wg(a)):b=vg(a)&&wg(a);if(b&&g.fe){var c;"function"!==typeof a.getBoundingClientRect||g.fe&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
vg=function(a){return g.fe&&!g.Wd("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
wg=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
zg=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return yg(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.kb(f.className.split(/\s+/),c))},!0,d)};
yg=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};
Vf=function(a){this.i=a||g.A.document||document};
Bg=function(a){"function"!==typeof g.A.setImmediate||g.A.Window&&g.A.Window.prototype&&!Uc("Edge")&&g.A.Window.prototype.setImmediate==g.A.setImmediate?(Ag||(Ag=eba()),Ag(a)):g.A.setImmediate(a)};
eba=function(){var a=g.A.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Uc("Presto")&&(a=function(){var e=g.ng("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.C)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!Uc("Trident")&&!Uc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.jG;c.jG=null;e()}};
return function(e){d.next={jG:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.A.setTimeout(e,0)}};
Cg=function(a){g.A.setTimeout(function(){throw a;},0)};
Dg=function(){this.l=this.i=null};
Eg=function(){this.next=this.scope=this.i=null};
g.Ig=function(a,b){Fg||mda();Gg||(Fg(),Gg=!0);Hg.add(a,b)};
mda=function(){if(g.A.Promise&&g.A.Promise.resolve){var a=g.A.Promise.resolve(void 0);Fg=function(){a.then(Jg)}}else Fg=function(){Bg(Jg)}};
Jg=function(){for(var a;a=Hg.remove();){try{a.i.call(a.scope)}catch(b){Cg(b)}Lf(Kg,a)}Gg=!1};
Lg=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Ng=function(a){this.Oa=0;this.Od=void 0;this.kq=this.hm=this.ip=null;this.Fw=this.VA=!1;if(a!=g.Ja)try{var b=this;a.call(void 0,function(c){Mg(b,2,c)},function(c){Mg(b,3,c)})}catch(c){Mg(this,3,c)}};
Og=function(){this.next=this.context=this.onRejected=this.l=this.i=null;this.u=!1};
Sg=function(a,b,c){var d=Rg.get();d.l=a;d.onRejected=b;d.context=c;return d};
Tg=function(a){if(a instanceof Ng)return a;var b=new Ng(g.Ja);Mg(b,2,a);return b};
Ug=function(a){return new Ng(function(b,c){c(a)})};
Wg=function(a,b,c){Vg(a,b,c,null)||g.Ig(g.Qa(b,a))};
nda=function(a){return new Ng(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Wg(e,b,c)})};
Xg=function(a){return new Ng(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},h=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],Wg(m,g.Qa(f,l),h);
else b(e)})};
Zg=function(a,b){b=Sg(b,b,void 0);b.u=!0;Yg(a,b);return a};
g.ah=function(a,b){return $g(a,null,b,void 0)};
bh=function(a,b){if(0==a.Oa)if(a.ip){var c=a.ip;if(c.hm){for(var d=0,e=null,f=null,h=c.hm;h&&(h.u||(d++,h.i==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Oa&&1==d?bh(c,b):(f?(d=f,d.next==c.kq&&(c.kq=d),d.next=d.next.next):ch(c),dh(c,e,3,b)))}a.ip=null}else Mg(a,3,b)};
Yg=function(a,b){a.hm||2!=a.Oa&&3!=a.Oa||eh(a);a.kq?a.kq.next=b:a.hm=b;a.kq=b};
$g=function(a,b,c,d){var e=Sg(null,null,null);e.i=new Ng(function(f,h){e.l=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof fh?h(l):f(m)}catch(n){h(n)}}:h});
e.i.ip=a;Yg(a,e);return e.i};
Mg=function(a,b,c){0==a.Oa&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Oa=1,Vg(c,a.PU,a.QU,a)||(a.Od=c,a.Oa=b,a.ip=null,eh(a),3!=b||c instanceof fh||oda(a,c)))};
Vg=function(a,b,c,d){if(a instanceof Ng)return Yg(a,Sg(b||g.Ja,c||null,d)),!0;if(Lg(a))return a.then(b,c,d),!0;if(g.Na(a))try{var e=a.then;if("function"===typeof e)return uda(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
uda=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
eh=function(a){a.VA||(a.VA=!0,g.Ig(a.GO,a))};
ch=function(a){var b=null;a.hm&&(b=a.hm,a.hm=b.next,b.next=null);a.hm||(a.kq=null);return b};
dh=function(a,b,c,d){if(3==c&&b.onRejected&&!b.u)for(;a&&a.Fw;a=a.ip)a.Fw=!1;if(b.i)b.i.ip=null,gh(b,c,d);else try{b.u?b.l.call(b.context):gh(b,c,d)}catch(e){hh.call(null,e)}Lf(Rg,b)};
gh=function(a,b,c){2==b?a.l.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
oda=function(a,b){a.Fw=!0;g.Ig(function(){a.Fw&&hh.call(null,b)})};
fh=function(a){Va.call(this,a)};
g.ih=function(a,b){g.If.call(this);this.Of=a||1;this.Su=b||g.A;this.eG=(0,g.C)(this.DU,this);this.eI=g.Sa()};
g.jh=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.C)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.C)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.A.setTimeout(a,b||0)};
kh=function(a,b){var c=null;return g.ah(new Ng(function(d,e){c=g.jh(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.A.clearTimeout(c);
throw d;})};
lh=function(a){this.J=a;this.i=new Map;this.G=new Set;this.u=0;this.B=100;this.flushInterval=3E4;this.l=new g.ih(this.flushInterval);this.l.Ra("tick",this.oK,!1,this);this.C=!1};
mh=function(a){a.l.enabled||a.l.start();a.u++;a.u>=a.B&&a.oK()};
nh=function(a,b){return a.G.has(b)?void 0:a.i.get(b)};
vda=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
oh=function(a){this.i=a;this.i.VF("/client_streamz/po/w/rl",{Do:3,Co:"mn"},{Do:2,Co:"sc"},{Do:3,Co:"rk"})};
ph=function(a){this.i=a;this.i.VF("/client_streamz/po/w/el",{Do:3,Co:"en"},{Do:3,Co:"rk"})};
wda=function(a){this.i=a;this.i.ZN("/client_streamz/po/w/cec",{Do:2,Co:"ec"},{Do:3,Co:"rk"})};
qh=function(a){ze(this,a,-1,xda,null)};
rh=function(a){ze(this,a,-1,yda,null)};
th=function(a){ze(this,a,-1,null,sh)};
vh=function(a){ze(this,a,-1,null,uh)};
wh=function(a){ze(this,a,-1,zda,null)};
xh=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==
c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
Ada=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var t=h,u=0;64>u;u+=4)t[u/4]=r[u]<<24|r[u+1]<<16|r[u+2]<<8|r[u+3];for(u=16;80>u;u++)r=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],B=e[3],G=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var H=B^x&(y^B);var I=1518500249}else H=x^y^B,I=1859775393;else 60>u?(H=x&y|B&(x|y),I=2400959708):(H=x^y^B,I=3395469782);H=((r<<5|r>>>27)&4294967295)+H+G+I+t[u]&4294967295;G=B;B=y;y=(x<<30|x>>>2)&4294967295;x=r;r=H}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+G&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var u=[],x=0,y=r.length;x<y;++x)u.push(r.charCodeAt(x));r=u}t||(t=r.length);u=0;if(0==n)for(;u+64<t;)b(r.slice(u,u+64)),u+=64,p+=64;for(;u<t;)if(f[n++]=r[u++],p++,64==n)for(n=0,b(f);u+64<t;)b(r.slice(u,u+64)),u+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var x=24;0<=x;x-=8)r[t++]=e[u]>>x&255;return r}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,vO:function(){for(var r=d(),t="",u=0;u<r.length;u++)t+="0123456789ABCDEF".charAt(Math.floor(r[u]/16))+"0123456789ABCDEF".charAt(r[u]%16);return t}}};
yh=function(a,b,c){var d=String(g.A.location.href);return d&&a&&b?[b,Bda(xh(d),a,c||null)].join(" "):null};
Bda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Cb(d,function(l){e.push(l)}),zh(e.join(" "));
var f=[],h=[];g.Cb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];g.Cb(d,function(l){e.push(l)});
a=zh(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")};
zh=function(a){var b=Ada();b.update(a);return b.vO().toLowerCase()};
Ah=function(a){this.i=a||{cookie:""}};
Bh=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Ac(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Ch=function(a){return!!Cda.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Dh=function(a){a=void 0===a?!1:a;var b=g.A.__SAPISID||g.A.__APISID||g.A.__3PSAPISID||g.A.__OVERRIDE_SID;Ch(a)&&(b=b||g.A.__1PSAPISID);if(b)return!0;var c=new Ah(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Ch(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
Eh=function(a,b,c,d){(a=g.A[a])||(a=(new Ah(document)).get(b));return a?yh(a,c,d):null};
Fh=function(a,b){b=void 0===b?!1:b;var c=xh(String(g.A.location.href)),d=[];if(Dh(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.A.__SAPISID:g.A.__APISID;e||(e=new Ah(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?yh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Ch(b)&&((b=Eh("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Eh("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return 0==
d.length?null:d.join(" ")};
Gh=function(a){ze(this,a,-1,Dda,null)};
Lh=function(){};
g.Nh=function(a){var b=[];Mh(new Eda,a,b);return b.join("")};
Eda=function(){};
Mh=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Mh(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Oh(d,c),c.push(":"),Mh(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Oh(b,c);break;case "number":c.push(isFinite(b)&&
!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
Oh=function(a,b){b.push('"',a.replace(Fda,function(c){var d=Ph[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Ph[c]=d);return d}),'"')};
Gda=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
Qh=function(){};
Rh=function(){};
Sh=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
Th=function(a,b){this.i=a[g.A.Symbol.iterator]();this.l=b;this.u=0};
Hda=function(a,b){return new Th(a,b)};
g.Uh=function(){};
Zh=function(a){if(a instanceof Vh||a instanceof Wh||a instanceof Xh)return a;if("function"==typeof a.next)return new Vh(function(){return Yh(a)});
if("function"==typeof a[Symbol.iterator])return new Vh(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Eg)return new Vh(function(){return Yh(a.Eg())});
throw Error("Not an iterator or iterable.");};
Yh=function(a){if(!(a instanceof g.Uh))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.next();break}catch(d){if(d!==g.$h)throw d;b=!0}return{value:c,done:b}}}};
Vh=function(a){this.i=a};
Wh=function(a){this.u=a};
Xh=function(a){Vh.call(this,function(){return a});
this.u=a};
g.bi=function(a,b){this.l={};this.i=[];this.An=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&ai(this,a)};
di=function(a){if(a.size!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];ci(a.l,d)&&(a.i[c++]=d);b++}a.i.length=c}if(a.size!=a.i.length){var e={};for(c=b=0;b<a.i.length;)d=a.i[b],ci(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
ai=function(a,b){if(b instanceof g.bi)for(var c=b.Rh(),d=0;d<c.length;d++)a.set(c[d],b.get(c[d]));else for(c in b)a.set(c,b[c])};
ci=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ida=function(a){if(a.Ng&&"function"==typeof a.Ng)return a.Ng();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.Ma(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Lb(a)};
Jda=function(a){if(a.Rh&&"function"==typeof a.Rh)return a.Rh();if(!a.Ng||"function"!=typeof a.Ng){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Ma(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Mb(a)}}};
Kda=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(g.Ma(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,void 0);else for(var c=Jda(a),d=Ida(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
ei=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
fi=function(a){return a?decodeURI(a):a};
g.hi=function(a,b){return b.match(gi)[a]||null};
g.ii=function(a){return fi(g.hi(3,a))};
ji=function(a){a=a.match(gi);return ei(a[1],null,a[3],a[4])};
ki=function(a){a=a.match(gi);return ei(null,null,null,null,a[5],a[6],a[7])};
li=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?pd(e):"")}}};
mi=function(a){var b=a.indexOf("#");0>b&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]};
ni=function(a,b){return b?a?a+"&"+b:b:a};
oi=function(a,b){if(!b)return a;a=mi(a);a[1]=ni(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
pi=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)pi(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+od(b)))};
qi=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)pi(a[b],a[b+1],c);return c.join("&")};
g.ri=function(a){var b=[],c;for(c in a)pi(c,a[c],b);return b.join("&")};
si=function(a,b){var c=2==arguments.length?qi(arguments[1],0):qi(arguments,1);return oi(a,c)};
g.ti=function(a,b){b=g.ri(b);return oi(a,b)};
ui=function(a,b,c){c=null!=c?"="+od(c):"";return oi(a,b+c)};
vi=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
xi=function(a,b){var c=a.search(wi),d=vi(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return pd(a.substr(d,e-d))};
yi=function(a,b){for(var c=a.search(wi),d=0,e,f=[];0<=(e=vi(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Lda,"$1")};
zi=function(a,b,c){return ui(yi(a,b),b,c)};
Mda=function(a,b){a=mi(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)});
a[1]=ni(d.join("&"),g.ri(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.Ai=function(a){g.If.call(this);this.headers=new g.bi;this.xa=a||null;this.C=!1;this.va=this.i=null;this.La=this.U="";this.l=0;this.u="";this.G=this.Ea=this.Y=this.Aa=!1;this.J=0;this.X=null;this.Ga="";this.ma=this.K=!1};
Nda=function(a,b,c,d,e,f,h){var l=new g.Ai;Bi.push(l);b&&l.Ra("complete",b);l.Zw("ready",l.hO);f&&(l.J=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
Oda=function(a){return g.fe&&g.Wd(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Ei=function(a,b){a.C=!1;a.i&&(a.G=!0,a.i.abort(),a.G=!1);a.u=b;a.l=5;Ci(a);Di(a)};
Ci=function(a){a.Aa||(a.Aa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Oi=function(a){if(a.C&&"undefined"!=typeof Fi)if(a.va[1]&&4==g.Gi(a)&&2==a.getStatus())Hi(a,"Local request error detected and ignored");else if(a.Y&&4==g.Gi(a))g.jh(a.oJ,0,a);else if(a.dispatchEvent("readystatechange"),4==g.Gi(a)){Hi(a,"Request complete");a.C=!1;try{if(Ni(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.l=6;try{var b=2<g.Gi(a)?a.i.statusText:""}catch(c){b=""}a.u=b+" ["+a.getStatus()+"]";Ci(a)}}finally{Di(a)}}};
Di=function(a,b){if(a.i){Pi(a);var c=a.i,d=a.va[0]?g.Ja:null;a.i=null;a.va=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Pi=function(a){a.i&&a.ma&&(a.i.ontimeout=null);a.X&&(g.A.clearTimeout(a.X),a.X=null)};
Ni=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.hi(1,String(a.U)),!a&&g.A.self&&g.A.self.location&&(a=g.A.self.location.protocol,a=a.substr(0,a.length-1)),b=!Pda.test(a?a.toLowerCase():"");c=b}return c};
g.Gi=function(a){return a.i?a.i.readyState:0};
g.Qi=function(a){try{return a.i?a.i.responseText:""}catch(b){return""}};
Ri=function(a){try{if(!a.i)return null;if("response"in a.i)return a.i.response;switch(a.Ga){case "":case "text":return a.i.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.i)return a.i.mozResponseArrayBuffer}return null}catch(b){return null}};
Qda=function(a){var b={};a=(a.i&&4==g.Gi(a)?a.i.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.rc(a[c])){var d=Jaa(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Gb(b,function(h){return h.join(", ")})};
Hi=function(a,b){return b+" ["+a.La+" "+a.U+" "+a.getStatus()+"]"};
Si=function(a){ze(this,a,-1,null,null)};
Rda=function(){var a=new Si,b=document.documentElement.getAttribute("lang");return De(a,5,b)};
Ti=function(a){ze(this,a,-1,null,null)};
Ui=function(a){ze(this,a,31,Sda,null)};
Vi=function(a){ze(this,a,17,Tda,null)};
Wi=function(a){var b=Date.now().toString();return De(a,4,b)};
Xi=function(a,b){return Le(a,3,b)};
Yi=function(a,b){return De(a,14,b)};
Zi=function(a){ze(this,a,6,Uda,null)};
$i=function(a){ze(this,a,-1,null,null)};
ej=function(a,b,c,d,e,f,h,l,m,n,p){g.If.call(this);var r=this;this.Y="";this.l=[];this.Va="";this.Ya=this.Aa=-1;this.Pa=!1;this.K=this.u=null;this.J=0;this.wb=1;this.Ea=!1;g.If.call(this);this.bb=a;this.Ga=b||g.Ja;this.C=new Vi;this.eb=d;this.La=p;this.yb=g.Qa($aa,0,1);this.va=e||null;this.U=c||null;this.X=h||!1;this.xa=m||null;this.jb=!l;this.Ua=f||!1;!this.Ua&&(g.aj&&g.Wd(65)||g.bj&&g.Wd(45)||g.cj&&g.Wd(12)||Pd()&&g.Cc(Qd(),12));a=De(new Ti,1,1);f||(f=Rda(),Ke(a,11,f));Ke(this.C,1,a);De(this.C,
2,this.bb);this.G=new g.Ve(1E4,3E5,.1);this.i=new g.ih(this.G.getValue());g.F(this,this.i);uf(this.i,"tick",bb(dj(this,n)),!1,this);this.ma=new g.ih(6E5);g.F(this,this.ma);uf(this.ma,"tick",bb(dj(this,n)),!1,this);this.X||this.ma.start();this.Ua||(uf(jg(),"beforeunload",this.Rs,!1,this),uf(jg(),"unload",this.Rs,!1,this),uf(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.Rs()}),uf(document,"pagehide",this.Rs,!1,this))};
dj=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};
fj=function(a){a.va||(a.va=.01>a.yb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.va};
gj=function(a,b){a.G=new g.Ve(1>b?1:b,3E5,.1);a.i.setInterval(a.G.getValue())};
Wda=function(a){Vda(a,function(b,c){b=ui(b,"format","json");b=jg().navigator.sendBeacon(b,Me(c));a.Ea&&!b&&(a.Ea=!1);return b})};
Vda=function(a,b){if(0!==a.l.length){var c=yi(fj(a),"format");c=si(c,"auth",a.Ga(),"authuser",a.U||"0");for(var d=0;10>d&&a.l.length;++d){var e=a.l.slice(0,32),f=Xi(Wi(a.C.clone()),e);0===d&&Yi(f,a.J);if(!b(c,f))break;a.l=a.l.slice(e.length)}a.i.enabled&&a.i.stop();a.J=0}};
hj=function(){g.hf.call(this,"event-logged",void 0)};
Xda=function(a,b,c){Nda(a.url,function(d){d=d.target;Ni(d)?b(g.Qi(d)):c(d.getStatus())},a.requestType,a.body,a.rp,a.timeoutMillis,a.withCredentials)};
ij=function(){this.u="https://play.google.com/log?format=json&hasfast=true";this.B=!1;this.J=Xda;this.i=""};
jj=function(){var a="",b=!1,c="1";a=void 0===a?"":a;c=void 0===c?"":c;var d=new ij;d.i="";""!=a&&(d.u=a);if(void 0===b?0:b)d.B=!0;c&&(d.l=c);this.i=d.He()};
kj=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(){};
mj=function(a){this.Kl=a;this.B=new jj;this.i=new lh(this.B);this.clientError=new wda(this.i);this.l=new ph(this.i);this.u=new oh(this.i)};
nj=function(a){ze(this,a,-1,null,null)};
oj=function(a){ze(this,a,-1,null,null)};
pj=function(a){ze(this,a,-1,null,null)};
qj=function(a){var b=this;this.l=this.u=this.C=null;this.i=!1;if(a.challenge instanceof pj){var c=Be(a.challenge,4,"");var d=Be(a.challenge,5,"")}else c=a.program,d=a.globalName;this.B=new Promise(function(e){var f=g.q((0,g.A[d].a)(c,function(h,l){Promise.resolve().then(function(){b.u=h;b.l=l||null;e(void 0)})},!0)).next().value;
b.C=f})};
sj=function(a){if(a!==rj)throw Error("Bad secret");};
tj=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null};
Yda=function(){var a,b;void 0===uj&&(uj=null!==(b=null===(a=tj())||void 0===a?void 0:a.createPolicy("google#safe",{createHTML:function(c){return c},
createScript:function(c){return c},
createScriptURL:function(c){return c}}))&&void 0!==b?b:null);
return uj};
vj=function(){};
wj=function(a,b){sj(b);this.i=a};
xj=function(){};
yj=function(a,b){sj(b);this.i=a};
zj=function(a){if(a instanceof xj)if(a instanceof yj)a=a.i;else throw Error("wrong type");else a=g.Fc(a);return a};
Aj=function(a){var b,c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document;(b=(c=null===(b=c.querySelector)||void 0===b?void 0:b.call(c,"script[nonce]"))?c.nonce||c.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.Bj=function(a,b){a.src=lc(b);Aj(a)};
Cj=function(){this.i={};this.l=null};
Zda=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Dj(b,c);(e=a.i)[d]||(e[d]=new Promise(function(f,h){Dj(b,c).then(function(){a.l=d;f()},function(l){delete a.i[d];
h(l)})}));
return a.i[d]};
Dj=function(a,b){return b?$da(b):a?aea(a):Promise.resolve()};
$da=function(a){return new Promise(function(b,c){var d=g.ng("SCRIPT"),e=id(g.fc("From proto message. b/12014412"),Ae(a,4)||"");g.Bj(d,e);d.onload=function(){g.rg(d);b()};
d.onerror=function(){g.rg(d);c(Error("EWLS"))};
(g.$f("HEAD")[0]||document.documentElement).appendChild(d)})};
aea=function(a){return new Promise(function(b){var c=g.ng("SCRIPT"),d;if(a){var e=Ae(a,6);if(e){var f=null===(d=Yda())||void 0===d?void 0:d.createScript(e);d=new wj(null!==f&&void 0!==f?f:e,rj)}else d=null}else d=null;var h;if(d instanceof vj)if(null===(h=tj())||void 0===h?0:h.isScript(d))h=d;else if(d instanceof wj)h=d.i;else throw Error("wrong type");else h=d instanceof hc&&d.constructor===hc?d.i:"type_error:SafeScript";c.textContent=h;Aj(c);(g.$f("HEAD")[0]||document.documentElement).appendChild(c);
g.rg(c);b()})};
Ej=function(a){this.i=a};
Fj=function(a){ze(this,a,-1,null,null)};
bea=function(a,b){return Fe(a,1,b,"")};
Gj=function(a){ze(this,a,-1,null,null)};
Hj=function(a,b,c){this.i=a;this.u=b;this.l=c};
Ij=function(a,b,c){c=void 0===c?{}:c;this.eU=a;this.i=c;this.l=b};
Jj=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.l=e};
Kj=function(a,b,c){c=void 0===c?{}:c;return new Hj(b,a,c)};
Lj=function(a){ze(this,a,-1,null,null)};
cea=function(a,b){return Fe(a,1,b,"")};
dea=function(a,b){return Fe(a,2,b,"")};
Mj=function(a){ze(this,a,-1,null,null)};
Nj=function(a){ze(this,a,-1,null,null)};
Oj=function(a){ze(this,a,-1,eea,null)};
Pj=function(a,b){this.J=a.pQ;this.K=b;this.i=a.xhr;this.u=[];this.C=[];this.G=[];this.B=[];this.l=[];this.J&&fea(this)};
gea=function(a,b){uf(a.i,"complete",function(){if(Ni(a.i)){var c=g.Qi(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}var d=a.K(c),e=kj(a.i.getStatus());Qj(a,Rj(a));0==e?Sj(a,d):Tj(a,{code:e,message:c})}else c=g.Qi(a.i),e={},c?(e=Uj(a,c),c=e.code,d=e.details,e=e.metadata):(c=2,d="Rpc failed due to xhr error. error code: "+a.i.l+", error: "+a.i.getLastError()),Qj(a,Rj(a)),Tj(a,{code:c,message:d,metadata:e})})};
fea=function(a){a.J.Cl("data",function(b){if("1"in b){var c=a.K(b["1"]);Sj(a,c)}if("2"in b)for(b=Uj(a,b["2"]),c=0;c<a.G.length;c++)a.G[c](b)});
a.J.Cl("end",function(){Qj(a,Rj(a));for(var b=0;b<a.B.length;b++)a.B[b]()});
a.J.Cl("error",function(){if(0!=a.l.length){var b=a.i.l;0!==b||Ni(a.i)||(b=6);switch(b){case 0:var c=2;break;case 7:c=10;break;case 8:c=4;break;case 6:c=kj(a.i.getStatus());break;default:c=14}Qj(a,Rj(a));Tj(a,{code:c,message:Gda(b)+", error: "+a.i.getLastError()})}})};
Rj=function(a){var b={},c=Qda(a.i);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Uj=function(a,b){var c={};try{var d=Ne(Oj,b);var e=Ce(d,1);var f=Be(d,2,"");Ie(d,Nj,3).length&&(c["grpc-web-status-details-bin"]=b)}catch(h){a.i&&404===a.i.getStatus()?(e=5,f="Not Found: "+String(a.i.U)):(e=14,f="Unable to parse RpcStatus: "+h)}return{code:e,details:f,metadata:c}};
Vj=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Sj=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
Qj=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
Tj=function(a,b){for(var c=0;c<a.l.length;c++)a.l[c](b)};
Wj=function(a){this.C=a.cV||null;this.u=a.uU||!1};
Xj=function(a,b){g.If.call(this);this.ma=a;this.J=b;this.G=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.U=new Headers;this.l=null;this.X="GET";this.Y="";this.i=!1;this.K=this.u=this.C=null};
Yj=function(a){a.u.read().then(a.bP.bind(a)).catch(a.Iw.bind(a))};
ak=function(a){a.readyState=4;a.C=null;a.u=null;a.K=null;Zj(a)};
Zj=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.bk=function(a,b){this.i=this.K=this.B="";this.u=null;this.C=this.J="";this.G=!1;var c;a instanceof g.bk?(this.G=void 0!==b?b:a.G,g.ck(this,a.B),this.K=a.K,g.dk(this,a.i),g.ek(this,a.u),this.J=a.getPath(),fk(this,a.l.clone()),this.C=a.C):a&&(c=String(a).match(gi))?(this.G=!!b,g.ck(this,c[1]||"",!0),this.K=gk(c[2]||""),g.dk(this,c[3]||"",!0),g.ek(this,c[4]),this.J=gk(c[5]||"",!0),fk(this,c[6]||"",!0),this.C=gk(c[7]||"")):(this.G=!!b,this.l=new nk(null,this.G))};
g.ck=function(a,b,c){a.B=c?gk(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.dk=function(a,b,c){a.i=c?gk(b,!0):b};
g.ek=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.u=b}else a.u=null};
fk=function(a,b,c){b instanceof nk?(a.l=b,hea(a.l,a.G)):(c||(b=ok(b,iea)),a.l=new nk(b,a.G))};
g.pk=function(a,b,c){a.l.set(b,c)};
g.qk=function(a){return a instanceof g.bk?a.clone():new g.bk(a,void 0)};
gk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
ok=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,jea),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
jea=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
nk=function(a,b){this.l=this.i=null;this.u=a||null;this.B=!!b};
rk=function(a){a.i||(a.i=new g.bi,a.l=0,a.u&&li(a.u,function(b,c){a.add(pd(b),c)}))};
tk=function(a,b){rk(a);b=sk(a,b);return a.i.has(b)};
g.uk=function(a,b,c){a.remove(b);0<c.length&&(a.u=null,a.i.set(sk(a,b),g.rb(c)),a.l=a.l+c.length)};
sk=function(a,b){b=String(b);a.B&&(b=b.toLowerCase());return b};
hea=function(a,b){b&&!a.B&&(rk(a),a.u=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.uk(this,e,c))},a));
a.B=b};
kea=function(a){var b="";g.Eb(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.vk=function(a){g.E.call(this);this.l=a;this.i={}};
wk=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)wk(a,b,c[h],d,e,f);else{b=tf(b,c,d||a.handleEvent,e,f||a.l||a);if(!b)return a;a.i[b.key]=b}return a};
g.xk=function(a){g.Eb(a.i,function(b,c){this.i.hasOwnProperty(c)&&Ff(b)},a);
a.i={}};
yk=function(){this.u=!0;this.l=0;this.i=""};
zk=function(a,b,c){a.u=!1;throw Error("The stream is broken @"+a.l+". Error: "+c+". With input:\n"+b);};
Ak=function(){this.C=null;this.Od=[];this.u=this.i=this.l=this.Oa=this.J=0;this.B=null;this.G=0};
Bk=function(a,b,c,d){a.Oa=3;a.C="The stream is broken @"+a.J+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.C);};
Ck=function(){this.i=null;this.l=0;this.u=new yk;this.B=new Ak};
Dk=function(a,b,c){a.i="The stream is broken @"+a.l+". Error: "+c+". With input:\n"+b;throw Error(a.i);};
Ek=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Fk=function(a){this.J=null;this.Od=[];this.u="";this.U=[];this.l=this.i=0;this.C=!1;this.G=0;this.Y=/[\\"]/g;this.Oa=this.B=0;this.K=!(!a||!a.tO)};
Gk=function(a,b,c){a.B=3;a.J="The stream is broken @"+a.l+"/"+c+". With input:\n"+b;throw Error(a.J);};
Hk=function(){this.u=this.l=null;this.Oa=this.i=0;this.Od=[];this.B=!1};
lea=function(a){var b=a.i?a.i.getResponseHeader("Content-Type"):null;if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Hk:new Fk:b.startsWith("application/x-protobuf")?(a=a.i?a.i.getResponseHeader("Content-Transfer-Encoding"):null)?"base64"==a.toLowerCase()?new Ck:null:new Ak:null};
Ik=function(a){this.i=a;this.l=null;this.B=this.u=0;this.U=!1;this.C=this.J=this.G=null;this.K=new g.vk(this);this.K.Ra(this.i,"readystatechange",this.Y)};
Jk=function(a,b){a.B!=b&&(a.B=b,a.J&&a.J())};
Kk=function(a){g.xk(a.K);if(a.i){var b=a.i;a.i=null;b.abort();b.dispose()}};
Lk=function(a){this.u=a;a=(0,g.C)(this.jR,this);this.u.C=a;a=(0,g.C)(this.fT,this);this.u.J=a;this.l={};this.i={}};
Mk=function(a,b){for(var c={},d=0;d<a.length;c={Qy:c.Qy},d++)c.Qy=a[d],b.forEach(function(e){return function(f){try{f(e.Qy)}catch(h){}}}(c))};
Nk=function(a,b){var c=a.l[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.i[b])&&c.forEach(function(d){d()});
a.i[b]=[]};
Ok=function(){var a={};a=void 0===a?{}:a;this.C=a.k8||g.Ia("suppressCorsPreflight",a)||!1;this.l=a.withCredentials||g.Ia("withCredentials",a)||!1;this.B=a.j8||[];this.G=a.m8||[];this.i=a.p8;this.u=a.n8||!1};
Qk=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Pk(function(h){return new mea(function(l,m){var n={},p=nea(a,h,f);p.Cl("error",function(r){return m(r)});
p.Cl("metadata",function(r){n=r});
p.Cl("data",function(r){var t=n;t=void 0===t?{}:t;l(new Ij(r,h.ww(),t))})})},a.G).call(a,Kj(e,c,d)).then(function(h){return h.eU})};
nea=function(a,b,c){var d=b.ww(),e=b.getMetadata(),f=Rk(a,!0);a=Sk(a,e,f,c+d.getName());c=Tk(f,d.l,!1);gea(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.i(b.i);f.send(a,"POST",b);return c};
Rk=function(a,b){b=a.u&&!b;return a.i||b?new g.Ai(new Wj({cV:a.i,uU:b})):new g.Ai};
Sk=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.l)c.K=!0;a.C?(a=d,g.Rb(b)?d=a:(b=kea(b),"string"===typeof a?d=ui(a,od("$httpHeaders"),b):(g.pk(a,"$httpHeaders",b),d=a))):ai(c.headers,b);return d};
Tk=function(a,b,c){if(c)if(a.isActive(),g.fe&&!g.Xd(10)||g.ig&&!g.Wd("420+")||g.Uk&&!g.ig)var d=null;else c=new Ik(a),d=new Lk(c);return new Pj({xhr:a,pQ:d},b)};
Pk=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.i(f,e)}});
return c};
Vk=function(){this.i=new Ok};
oea=function(a){a.Ky=new Vk;a.bV="AIzaSyBydTmf06EmN2pis9ljY6qe2XY0Rn8uK0k";a.XI=function(){};
a.onError=function(){};
return new Wk(a)};
pea=function(a,b,c){this.content=a;this.i=b;this.l=c};
Xk=function(){g.E.apply(this,arguments);this.l=!1};
Yk=function(a,b,c){Xk.call(this);this.C=a;this.G=b;this.B=c;this.i=0};
Zk=function(a){Xk.call(this);this.i=a};
Wk=function(a){var b=this;this.B={};this.u=!1;this.i=void 0;this.Kl=a.Kl;this.Ky=a.Ky;this.B={"X-Goog-Api-Key":a.bV};this.XI=a.XI;this.onError=a.onError;this.logger=a.b8?new lj:new mj(this.Kl);this.l=new g.ih;this.l.Ra("tick",function(){b.refresh()});
this.C=$k(this);this.C.then(function(c){b.i=c}).catch(function(c){b.onError(c,"Init failed")})};
al=function(a,b,c){a.logger.ax(b);return new Ue(b,c)};
bl=function(a,b,c){return g.D(a,function e(){var f=this,h;return g.z(e,function(l){h=f;return l.return($e(function(){return g.D(h,function n(){var p,r=this;return g.z(n,function(t){p=b();r.logger.jI(c,p);return t.return(p)})})},qea))})})};
rea=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m;return g.z(c,function(n){switch(n.i){case 1:return e=d,f=bea(new Fj,d.Kl),g.w(n,bl(d,function(){return e.Ky.create(f,e.B)},"c"),2);
case 2:h=n.l;ta(n,3);l=He(h,pj,1);Cj.i||(Cj.i=new Cj);var p=Zda(Cj.i,He(l,nj,1),He(l,oj,2),Be(l,3,""));return g.w(n,p,5);case 5:return n.return(new qj({challenge:l}));case 3:throw m=va(n),al(d,2,m);}})})};
tea=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n;return g.z(d,function(p){switch(p.i){case 1:return f=e,ta(p,2),g.w(p,b.snapshot({}),4);case 4:h=p.l;ua(p,3);break;case 2:throw l=va(p),al(e,3,l);case 3:return m=dea(cea(new Lj,e.Kl),h),g.w(p,bl(e,function(){return g.D(f,function t(){var u=this;return g.z(t,function(x){var y=x.return;var B=Qk(u.Ky.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",m,u.B||{},sea);return y.call(x,B)})})},"g"),5);
case 5:return n=p.l,p.return(new pea(te(Be(n,1,"")),Ce(n,3),Ce(n,2)))}})})};
uea=function(a,b){return g.D(a,function d(){var e,f=this,h,l;return g.z(d,function(m){if(1==m.i)return e=Date.now(),f.l.stop(),g.w(m,tea(f,b),2);h=m.l;if(h.i){var n=window.webpocb;if(void 0===n)throw al(f,4,Error(""));n=n(h.content);n=new Yk(b,n,h.i)}else n=new Zk(h.content);l=n;f.l.setInterval(1E3*h.l);f.l.start();f.logger.bx("g",Date.now()-e);return m.return(l)})})};
$k=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){e=d;return f.return($e(function(){return g.D(e,function l(){var m,n,p=this,r,t;return g.z(l,function(u){switch(u.i){case 1:return m=Date.now(),g.w(u,rea(p),2);case 2:return r=u.l,p.logger.bx("c",Date.now()-m),ta(u,3),g.w(u,uea(p,r),5);case 5:n=u.l;ua(u,4);break;case 3:throw t=va(u),r.dispose(),t;case 4:return u.return(n)}})})},vea))})})};
wea=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.u=!b&&/[?&]ae=1(&|$)/.test(a);this.B=!b&&/[?&]ae=2(&|$)/.test(a);if((this.i=/[?&]adurl=([^&]*)/.exec(a))&&this.i[1]){try{var c=decodeURIComponent(this.i[1])}catch(d){c=null}this.l=c}};
cl=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.qd(c)+".js";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=Yf(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=taa(g.fc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.qd(a)+".js"});g.Bj(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
dl=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
el=function(a){return a?a.passive&&xea()?a:a.capture||!1:!1};
fl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,el(d)),!0):!1};
gl=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,el(void 0))};
il=function(){return!hl()&&(Uc("iPod")||Uc("iPhone")||Uc("Android")||Uc("IEMobile"))};
hl=function(){return Uc("iPad")||Uc("Android")&&!Uc("Mobile")||Uc("Silk")};
jl=function(a){try{return!!a&&null!=a.location.href&&Sd(a,"foo")}catch(b){return!1}};
kl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
zea=function(){var a=[];kl(yea,function(b){a.push(b)});
return a};
Bea=function(a){return(a=Aea.exec(a))&&a[0]||""};
Cea=function(){var a=ll;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
Eea=function(){var a=g.ng("IFRAME"),b={};g.Cb(Dea(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
ml=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
nl=function(a){return a.right-a.left};
ol=function(a,b,c){b instanceof g.Qf?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
g.pl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
ql=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
rl=function(a){this.isValid=a};
sl=function(a){return new rl(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
ul=function(a,b){b=void 0===b?tl:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof rl&&d.isValid(a))return new yj(a,rj)}};
wl=function(a){vl();return ad(a,null)};
g.xl=function(a){vl();return mc(a)};
g.zl=function(a,b,c){if("string"===typeof b)(b=yl(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=yl(c,d);f&&(c.style[f]=e)}};
yl=function(a,b){var c=Al[b];if(!c){var d=ud(b);c=d;void 0===a.style[d]&&(d=(g.ig?"Webkit":Bl?"Moz":g.fe?"ms":g.Uk?"O":null)+Iaa(d),void 0!==a.style[d]&&(c=d));Al[b]=c}return c};
g.Cl=function(a,b){var c=a.style[ud(b)];return"undefined"!==typeof c?c:a.style[yl(a,b)]||""};
Dl=function(a,b){var c=Wf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
El=function(a,b){return Dl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Gl=function(a,b,c){if(b instanceof g.Qf){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Fl(d,!1);a.style.top=g.Fl(b,!1)};
Hl=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Fea=function(a){if(g.fe&&!g.Xd(8))return a.offsetParent;var b=Wf(a),c=El(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=El(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.Il=function(a){var b=Wf(a),c=new g.Qf(0,0);var d=b?Wf(b):document;d=!g.fe||g.Xd(9)||"CSS1Compat"==Yf(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=Hl(a);b=hg(Yf(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Kl=function(a,b){var c=new g.Qf(0,0),d=jg(Wf(a));if(!Sd(d,"parent"))return c;do{var e=d==b?g.Il(a):Jl(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.Ml=function(a,b){a=Ll(a);b=Ll(b);return new g.Qf(a.x-b.x,a.y-b.y)};
Jl=function(a){a=Hl(a);return new g.Qf(a.left,a.top)};
Ll=function(a){if(1==a.nodeType)return Jl(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Qf(a.clientX,a.clientY)};
g.Nl=function(a,b,c){if(b instanceof g.Sf)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Fl(b,!0);a.style.height=g.Fl(c,!0)};
g.Fl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Ol=function(a){var b=Gea;if("none"!=El(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};
Gea=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ig&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Hl(a),new g.Sf(a.right-a.left,a.bottom-a.top)):new g.Sf(b,c)};
g.Pl=function(a,b){a.style.display=b?"":"none"};
Tl=function(){if(Ql&&!jl(Rl)){var a="."+Sl.domain;try{for(;2<a.split(".").length&&!jl(Rl);)Sl.domain=a=a.substr(a.indexOf(".")+1),Rl=window.parent}catch(b){}jl(Rl)||(Rl=window)}return Rl};
Ul=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Sf(b.innerWidth,b.innerHeight)).round():fg(b||window).round()}catch(d){return new g.Sf(-12245933,-12245933)}};
Vl=function(a,b,c){try{a&&(b=b.top);var d=Ul(a,b,void 0===c?!1:c),e=hg(Yf(b.document).i);if(-12245933==d.width){var f=d.width;var h=new ml(f,f,f,f)}else h=new ml(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new ml(-12245933,-12245933,-12245933,-12245933)}};
Hea=function(a){var b={};g.Cb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.i(e)||(b[d]=null)):b[d]=c});
laa(a,function(c){return null===b[c.event]})};
Wl=function(){this.Pc=0;this.i=!1;this.l=-1;this.Ro=!1;this.Yg=0};
bm=function(){this.l=null;this.i=!1};
cm=function(a){bm.call(this);this.u=a};
dm=function(){bm.call(this)};
em=function(){bm.call(this)};
fm=function(){this.i={};this.l=!0;this.u={}};
gm=function(a,b,c){a.i[b]||(a.i[b]=new cm(c));return a.i[b]};
Iea=function(a){a.i.queryid||(a.i.queryid=new em)};
hm=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
im=function(a,b){if(Nb(a.u,b))return a.u[b];if(a=a.i[b])return a.getValue()};
jm=function(a){var b={},c=g.Fb(a.i,function(d){return d.i});
g.Eb(c,function(d,e){d=void 0!==a.u[e]?String(a.u[e]):d.i&&null!==d.l?String(d.l):"";0<d.length&&(b[e]=d)},a);
return b};
Jea=function(a){a=jm(a);var b=[];g.Eb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
Kea=function(){this.i=this.Um=null};
km=function(){};
mm=function(){if(!lm())throw Error();};
lm=function(){return!(!nm||!nm.performance)};
om=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
pm=function(){};
sm=function(a){a=a||qm();for(var b=new rm(g.A.location.href,g.A,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Lea.test(f.url)&&(c=f);if(f.url&&!f.KB){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Mea(b,e,c)};
qm=function(){var a=g.A,b=[],c=null;do{var d=a;if(jl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new rm(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.A;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.KB=!0);return b};
Mea=function(a,b,c){this.i=a;this.l=b;this.u=c};
rm=function(a,b,c){this.url=a;this.Vf=b;this.KB=!!c;this.depth=null};
tm=function(){this.u="&";this.l={};this.B=0;this.i=[]};
um=function(a,b){var c={};c[a]=b;return[c]};
wm=function(a,b,c,d,e){var f=[];kl(a,function(h,l){(h=vm(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
vm=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(vm(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(wm(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Oea=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=Nea(a)-c.length;if(0>d)return"";a.i.sort(function(p,r){return p-r});
c=null;for(var e="",f=0;f<a.i.length;f++)for(var h=a.i[f],l=a.l[h],m=0;m<l.length;m++){if(!d){c=null==c?h:c;break}var n=wm(l[m],a.u,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.u;break}c=null==c?h:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
Nea=function(a){var b=1,c;for(c in a.l)b=c.length>b?c.length:b;return 3997-b-a.u.length-1};
xm=function(a,b){this.i=a;this.depth=b};
Qea=function(){function a(l,m){return null==l?m:l}
var b=qm(),c=Math.max(b.length-1,0),d=sm(b);b=d.i;var e=d.l,f=d.u,h=[];f&&h.push(new xm([f.url,f.KB?2:0],a(f.depth,1)));e&&e!=f&&h.push(new xm([e.url,2],0));b.url&&b!=f&&h.push(new xm([b.url,0],a(b.depth,c)));d=g.Oe(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Bea(b.url))&&d.push([new xm([e,1],a(b.depth,c))]);d.push([]);return g.Oe(d,function(l){return Pea(c,l)})};
Pea=function(a,b){g.ym(b,function(e){return 0<=e.depth});
var c=zm(b,function(e,f){return Math.max(e,f.depth)},-1),d=paa(c+2);
d[0]=a;g.Cb(b,function(e){return d[e.depth+1]=e.i});
return d};
Rea=function(){var a=Qea();return g.Oe(a,function(b){return vm(b)})};
g.Am=function(a){if(a.ze&&a.hasOwnProperty("ze"))return a.ze;var b=new a;return a.ze=b};
Bm=function(){this.l=new pm;this.i=lm()?new mm:new km};
Sea=function(){Cm();var a=nm.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof nm.setInterval&&"function"===typeof nm.clearInterval&&"function"===typeof nm.setTimeout&&"function"===typeof nm.clearTimeout)};
Dm=function(a){Cm();var b=Tl()||nm;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
Em=function(){Cm();return Rea()};
Fm=function(){};
Cm=function(){return g.Am(Fm).getContext()};
Gm=function(a){ze(this,a,-1,null,null)};
Tea=function(a){this.u=a;this.i=-1;this.l=this.B=0};
Hm=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.i)return b.apply(null,g.ma(d));try{return a.i=a.u.i.now(),b.apply(null,g.ma(d))}finally{a.B+=a.u.i.now()-a.i,a.i=-1,a.l+=1}}};
Uea=function(a,b){this.l=a;this.u=b;this.i=new Tea(a)};
Vea=function(){};
Jm=function(){this.u=void 0;this.l=this.G=0;this.C=-1;this.featureSet=new fm;gm(this.featureSet,"mv",Wea).i=!0;gm(this.featureSet,"omid",Im);gm(this.featureSet,"epoh",Im).i=!0;gm(this.featureSet,"epph",Im).i=!0;gm(this.featureSet,"umt",Im).i=!0;gm(this.featureSet,"phel",Im).i=!0;gm(this.featureSet,"phell",Im).i=!0;gm(this.featureSet,"oseid",Xea).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new dm);a.i.sloi.i=!0;gm(this.featureSet,"ovms",Yea).i=!0;gm(this.featureSet,"xdi",Im).i=!0;gm(this.featureSet,
"amp",Im).i=!0;gm(this.featureSet,"prf",Im).i=!0;gm(this.featureSet,"gtx",Im).i=!0;gm(this.featureSet,"mvp_lv",Im).i=!0;gm(this.featureSet,"ssmol",Im).i=!0;this.i=new Uea(Cm(),this.featureSet);this.B=!1;this.flags=new Vea};
Km=function(){return g.Am(Jm)};
Zea=function(){var a="https:";nm&&nm.location&&"http:"===nm.location.protocol&&(a="http:");this.l=a;this.i=.01;this.u=Math.random()};
Lm=function(a,b,c,d,e){if((d?a.u:Math.random())<(e||a.i))try{if(c instanceof tm)var f=c;else f=new tm,kl(c,function(l,m){var n=f,p=n.B++;l=um(m,l);n.i.push(p);n.l[p]=l});
var h=Oea(f,a.l,"/pagead/gen_204?id="+b+"&");h&&Dm(h)}catch(l){}};
Mm=function(){var a=g.A.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Sa()};
Nm=function(){var a=void 0===a?g.A:a;return(a=a.performance)&&a.now?a.now():null};
$ea=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Pm=function(){var a=Tl();this.events=[];this.l=a||g.A;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.i=Om()||(null!=b?b:1>Math.random())};
Rm=function(a){a&&Qm&&Om()&&(Qm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Qm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Um=function(){var a=Sm;this.i=Tm;this.LG="jserror";this.lD=!0;this.iA=null;this.l=this.WB;this.Gb=void 0===a?null:a};
Xm=function(a,b,c,d){return Hm(Km().i.i,function(){try{if(a.Gb&&a.Gb.i){var e=a.Gb.start(b.toString(),3);var f=c();a.Gb.end(e)}else f=c()}catch(m){var h=a.lD;try{Rm(e);var l=new Vm(Wm(m));h=a.l(b,l,void 0,d)}catch(n){a.WB(217,n)}if(!h)throw m;}return f})()};
Zm=function(a,b,c){var d=Ym;return Hm(Km().i.i,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Xm(d,a,function(){return b.apply(void 0,f)},c)})};
Wm=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};
Vm=function(a){dl.call(this,Error(a),{message:a})};
$m=function(){var a=Tl();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Sm.disable())};
afa=function(a){Ym.iA=function(b){g.Cb(a,function(c){c(b)})}};
an=function(a,b){return Xm(Ym,a,b,void 0)};
bn=function(a,b){return Zm(a,b,void 0)};
cn=function(a,b,c,d){Ym.WB(a,b,c,d)};
dn=function(){return Date.now()-bfa};
cfa=function(){var a=Km().u,b=0<=en?dn()-en:-1,c=fn?dn()-gn:-1,d=0<=hn?dn()-hn:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];cn(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
jn=function(a,b,c){var d=new ml(0,0,0,0);this.time=a;this.volume=null;this.u=b;this.i=d;this.l=c};
kn=function(a,b,c,d,e,f,h){this.B=a;this.u=b;this.G=c;this.i=d;this.C=e;this.l=f;this.J=h};
ln=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,jl(a)&&(c=a,b=d);return{Vf:c,level:b}};
mn=function(a){var b=a!==a.top,c=a.top===ln(a).Vf,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),Ib(dfa,function(h){return"function"===typeof f[h]})||(e=1));
return{Yi:f,compatibility:e,rU:d}};
efa=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
nn=function(a,b,c,d){var e=void 0===e?!1:e;c=Zm(d,c,void 0);fl(a,b,c,{capture:e})};
on=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
pn=function(a){return new ml(a.top,a.right,a.bottom,a.left)};
qn=function(a){var b=a.top||0,c=a.left||0;return new ml(b,c+(a.width||0),b+(a.height||0),c)};
rn=function(a){return null!=a&&0<=a&&1>=a};
ffa=function(){var a=g.Tc;return a?sn("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return zc(a,b)})||zc(a,"OMI/")&&!zc(a,"XiaoMi/")?!0:zc(a,"Presto")&&zc(a,"Linux")&&!zc(a,"X11")&&!zc(a,"Android")&&!zc(a,"Mobi"):!1};
tn=function(){this.u=!jl(nm.top);this.isMobileDevice=hl()||il();var a=qm();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.ii(a[a.length-1].url)||"":"";this.i=new ml(0,0,0,0);this.B=new g.Sf(0,0);this.C=new g.Sf(0,0);this.J=new ml(0,0,0,0);this.G=0;this.K=!1;this.l=!(!nm||!mn(nm).Yi);this.update(nm)};
un=function(a,b){b&&b.screen&&(a.B=new g.Sf(b.screen.width,b.screen.height))};
vn=function(a,b){var c=a.i?new g.Sf(nl(a.i),a.i.getHeight()):new g.Sf(0,0);b=void 0===b?nm:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,r=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,r=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=r):m<p?(d=m,e=n):(d=p,e=r)}var t=new g.Sf(e,d)}catch(u){t=new g.Sf(-12245933,-12245933)}a.C=t};
xn=function(){var a=wn();if(0<a.G||a.K)return!0;a=Cm().l.isVisible();var b=0===om(Sl);return a||b};
wn=function(){return g.Am(tn)};
yn=function(a){this.u=a;this.l=0;this.i=null};
zn=function(a,b,c){this.Vf=a;this.Ea=void 0===c?"na":c;this.B=[];this.Ud=!1;this.u=new jn(-1,!0,this);this.i=this;this.J=b;this.U=this.K=!1;this.va="uk";this.ma=!1;this.C=!0};
Bn=function(a,b,c){if(!a.U||(void 0===c?0:c))a.U=!0,a.va=b,a.J=0,a.i!=a||An(a)};
Cn=function(a,b){g.kb(a.B,b)||(a.B.push(b),b.Hq(a.i),b.Mm(a.u),b.wk()&&(a.K=!0))};
Dn=function(a){a=a.i;a.qE();a.pE();var b=wn();b.J=Vl(!1,a.Vf,b.isMobileDevice);vn(wn(),a.Vf);a.u.i=a.pH()};
En=function(a){a.K=a.B.length?sn(a.B,function(b){return b.wk()}):!1};
Fn=function(a){var b=g.rb(a.B);g.Cb(b,function(c){c.Mm(a.u)})};
An=function(a){var b=g.rb(a.B);g.Cb(b,function(c){c.Hq(a.i)});
a.i!=a||Fn(a)};
Gn=function(a,b,c,d){this.element=a;this.i=new ml(0,0,0,0);this.B=new ml(0,0,0,0);this.l=b;this.featureSet=c;this.X=d;this.Y=!1;this.timestamp=-1;this.J=new kn(b.u,this.i,new ml(0,0,0,0),0,0,dn(),0)};
Hn=function(a){this.C=!1;this.i=a;this.B=g.Ja};
In=function(a,b,c){this.u=void 0===c?0:c;this.l=a;this.i=null==b?"":b};
gfa=function(a){switch(Math.trunc(a.u)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Jn=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.l<b.l?!0:a.l>b.l?!1:typeof a.i<typeof b.i?!0:typeof a.i>typeof b.i?!1:a.i<b.i};
Kn=function(){this.u=0;this.i=[];this.l=!1};
hfa=function(a,b){(0,g.Cb)(b.i,function(c){a.add(c.l,c.i,gfa(c))})};
Ln=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;kl(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Mn=function(a){var b=ifa;a.l&&(g.zb(a.i,function(c,d){return Jn(d,c)?1:Jn(c,d)?-1:0}),a.l=!1);
return zm(a.i,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
ifa=function(a){var b=a.l;a=a.i;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.kb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
On=function(a){var b=void 0===b?!0:b;this.i=new Kn;void 0!==a&&hfa(this.i,a);b&&this.i.add("v",Nn,-16)};
jfa=function(a){var b=[],c=[];g.Eb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
Pn=function(){if(Nn&&"unreleased"!==Nn)return Nn};
Qn=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Pn();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);Dm(a)};
kfa=function(){this.i=0};
lfa=function(a,b,c){(0,g.Cb)(a.u,function(d){var e=a.i;if(!d.i&&(d.u(b,c),d.B())){d.i=!0;var f=d.l(),h=new Kn;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.C);d=g.Am(kfa);h.add("i",d.i++);h.add("adk",e);Ln(h,f);e=new On(h);Qn(e)}})};
Rn=function(){this.l=this.u=this.B=this.i=0};
Sn=function(a){this.l=a=void 0===a?mfa:a;this.i=g.Oe(this.l,function(){return new Rn})};
Un=function(a,b){return Tn(a,function(c){return c.i},void 0===b?!0:b)};
Wn=function(a,b){return Vn(a,b,function(c){return c.i})};
Xn=function(a,b){return Tn(a,function(c){return c.u},void 0===b?!0:b)};
Yn=function(a,b){return Vn(a,b,function(c){return c.u})};
Zn=function(a,b){return Vn(a,b,function(c){return c.l})};
$n=function(a){g.Cb(a.i,function(b){b.l=0})};
Tn=function(a,b,c){a=g.Oe(a.i,function(d){return b(d)});
return c?a:nfa(a)};
Vn=function(a,b,c){var d=g.ib(a.l,function(e){return b<=e});
return-1==d?0:c(a.i[d])};
nfa=function(a){return g.Oe(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
ao=function(){this.l=new Sn;this.Da=new Rn;this.X=this.J=-1;this.Pa=1E3;this.Ua=new Sn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.xa=this.ma=-1};
bo=function(a,b){return Xn(a.l,void 0===b?!0:b)};
eo=function(a,b){b=co(b);return 0===b?0:co(a)/b};
co=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
ofa=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.sg(a)||a){var d=Wf(a),e=d&&jg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
pfa=function(a,b,c){if(!a||!b)return!1;b=ol(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Tl();jl(d.top)&&d.top&&d.top.document&&(d=d.top);if(!efa(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Wf(c))&&b.defaultView&&b.defaultView.frameElement)&&ofa(b,a);d=a===c;a=!d&&a&&yg(a,function(e){return e===c});
return!(b||d||a)};
qfa=function(a,b,c,d){return wn().u?!1:0>=nl(a)||0>=a.getHeight()?!0:c&&d?an(208,function(){return pfa(a,b,c)}):!1};
fo=function(a,b,c){g.E.call(this);this.position=rfa.clone();this.jx=this.zw();this.UB=-2;this.EU=Date.now();this.EK=-1;this.lastUpdateTime=b;this.Ww=null;this.Yv=!1;this.xx=null;this.opacity=-1;this.requestSource=c;this.PK=this.YB=g.Ja;this.Jg=new Kea;this.Jg.Um=a;this.Jg.i=a;this.Nq=!1;this.po={gC:null,eC:null};this.nK=!0;this.Mu=null;this.Iq=this.KP=!1;Km().G++;this.Ze=this.jB();this.zK=-1;this.xd=null;this.HP=!1;a=this.featureSet=new fm;gm(a,"od",sfa);gm(a,"opac",Im).i=!0;gm(a,"sbeos",Im).i=!0;
gm(a,"prf",Im).i=!0;gm(a,"mwt",Im).i=!0;gm(a,"iogeo",Im);(a=this.Jg.Um)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(tfa&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+vd()):a.getAttribute("data-"+vd()))&&(wn().l=!0);1==this.requestSource?hm(this.featureSet,"od",1):hm(this.featureSet,"od",0)};
go=function(a,b){b!=a.Iq&&(a.Iq=b,a=wn(),b?a.G++:0<a.G&&a.G--)};
ho=function(a,b){if(a.xd){if(b.getName()===a.xd.getName())return;a.xd.dispose();a.xd=null}b=b.create(a.Jg.i,a.featureSet,a.wk());if(b=null!=b&&b.gz()?b:null)a.xd=b};
io=function(a,b,c){if(!a.Ww||-1==a.lastUpdateTime||-1===b.l||-1===a.Ww.l)return 0;a=b.l-a.Ww.l;return a>c?0:a};
ufa=function(a,b,c){if(a.xd){a.xd.gm();var d=a.xd.J,e=d.B,f=e.i;if(null!=d.G){var h=d.u;a.xx=new g.Qf(h.left-f.left,h.top-f.top)}f=a.ly()?Math.max(d.i,d.C):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.kH(d);a.Ww=d;a.Ma(f,b,c,!1,h,e,d.J)}};
vfa=function(a){if(a.Yv&&a.Mu){var b=1==im(a.featureSet,"od"),c=wn().i,d=a.Mu,e=a.xd?a.xd.getName():"ns",f=new g.Sf(nl(c),c.getHeight());c=a.ly();a={tU:e,xx:a.xx,aV:f,ly:c,Pc:a.Ze.Pc,YU:b};if(b=d.l){b.gm();e=b.J;f=e.B.i;var h=null,l=null;null!=e.G&&f&&(h=e.u,h=new g.Qf(h.left-f.left,h.top-f.top),l=new g.Sf(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.C):e.i;c={tU:b.getName(),xx:h,aV:l,ly:c,YU:!1,Pc:e}}else c=null;c&&lfa(d,a,c)}};
wfa=function(a,b,c){b&&(a.YB=b);c&&(a.PK=c)};
xfa=function(){this.B=this.i=this.u=this.l=this.C=0};
yfa=function(a){var b={};var c=g.Sa()-a.C;b=(b.ptlt=c,b);(c=a.l)&&(b.pnk=c);(c=a.u)&&(b.pnc=c);(c=a.B)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
jo=function(){Wl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
ko=function(a){return rn(a.volume)&&0<a.volume};
zfa=function(){var a={};this.l=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.i={};for(var b in this.l)0<this.l[b][1]&&(this.i[b]=0);this.u=0};
lo=function(a,b){var c=a.l[b],d=c[1];a.u+=c[0];0<d&&0==a.i[b]&&(a.i[b]=1)};
Afa=function(a){var b=g.Mb(a.l),c=0,d;for(d in a.i)g.kb(b,d)&&1==a.i[d]&&(c+=a.l[d][1],a.i[d]=2);return c};
Bfa=function(a){var b=0,c;for(c in a.i){var d=a.i[c];if(1==d||2==d)b+=a.l[c][1]}return b};
mo=function(){this.i=this.l=0};
no=function(){ao.call(this);this.u=new Rn;this.Ea=this.U=this.va=0;this.K=-1;this.Va=new Rn;this.C=new Rn;this.i=new Sn;this.G=this.B=-1;this.Y=new Rn;this.Pa=2E3;this.Aa=new mo;this.La=new mo;this.Ga=new mo};
oo=function(a,b,c){var d=a.Ea;fn||c||-1==a.K||(d+=b-a.K);return d};
Cfa=function(){this.i=!1};
po=function(a,b){this.i=!1;this.l=a;this.K=b;this.u=0};
ro=function(a,b){return a.B(b)?(b=qo(a.K,a.l,b),a.u|=b,0==b):!1};
so=function(a,b,c,d){Gn.call(this,a,b,c,d)};
to=function(a,b,c){Gn.call(this,null,a,b,c);this.G=a.isActive();this.C=0};
uo=function(a){return[a.top,a.left,a.bottom,a.right]};
vo=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;fo.call(this,b,c,d);this.LA=0;this.gf={};this.Re=new zfa;this.bL={};this.Ef="";this.La=null;this.Ya=!1;this.i=[];this.Yo=e;this.G=f;this.B=null;this.u=-1;this.Ea=this.U=void 0;this.X=this.Y=0;this.xa=-1;this.Ua=this.Pa=!1;this.va=this.J=this.l=this.Er=this.Va=0;new Sn;this.Aa=this.Da=0;this.Ga=-1;this.hg=0;this.K=g.Ja;this.ma=[this.zw()];this.bb=2;this.Ip={};this.Ip.pause="p";this.Ip.resume="r";this.Ip.skip="s";this.Ip.mute="m";this.Ip.unmute=
"um";this.Ip.exitfullscreen="ef";this.C=null};
wo=function(a){0!=a.hg&&(a.hg=3)};
xo=function(a){return void 0===a?a:Number(a)?on(a,3):0};
yo=function(a,b){return a.ma[null!=b&&b<a.ma.length?b:a.ma.length-1]};
zo=function(a){var b=!!im(Km().featureSet,"umt");return a.U||!b&&!a.Ea?0:1};
Dfa=function(a,b){a.wl()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.u/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Y;var d=c-a.Y,e=0;0<=d?(a.X+=b,a.Aa+=Math.max(b-d,0),e=Math.min(d,a.X)):a.Da+=Math.abs(d);0!=d&&(a.X=0);-1==a.Ga&&0<d&&(a.Ga=0<=hn?dn()-hn:-1);a.Y=c;return e};
Efa=function(a,b){sn(a.G,function(c){return c.l==b.l})||a.G.push(b)};
Ao=function(a,b,c){return 15E3<=b?!0:a.Pa?(void 0===c?0:c)?!0:0<a.u?b>=a.u/2:0<a.xa?b>=a.xa:!1:!1};
Ffa=function(a){var b=on(a.Ze.Pc,2),c=a.Re.u,d=a.Ze,e=yo(a),f=xo(e.B),h=xo(e.G),l=xo(d.volume),m=on(e.J,2),n=on(e.X,2),p=on(d.Pc,2),r=on(e.ma,2),t=on(e.xa,2);d=on(d.Yg,2);a=a.Em().clone();a.round();e=bo(e,!1);return{ZU:b,Gt:c,kx:f,gx:h,ws:l,lx:m,hx:n,Pc:p,nx:r,ix:t,Yg:d,position:a,wx:e}};
Ko=function(a,b){Bo(a.i,b,function(){return{ZU:0,Gt:void 0,kx:-1,gx:-1,ws:-1,lx:-1,hx:-1,Pc:-1,nx:-1,ix:-1,Yg:-1,position:void 0,wx:[]}});
a.i[b]=Ffa(a)};
Bo=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
No=function(a,b,c){var d=a.bL[b];if(null!=d)return d;d=Gfa(a,b);var e=Pb(Lo,function(f){return f==b});
a=Mo(a,d,d,c,Hfa[Lo[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Oo=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Mo=function(a,b,c,d,e){if(a.Nq)return{"if":0};var f=a.Em().clone();f.round();var h=wn(),l=Km(),m=a.Mg(),n=a.xd?a.xd.getName():"ns",p={};p["if"]=h.u?1:void 0;p.sdk=a.B?a.B:void 0;p.t=a.EU;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Un(m.l,!1);p.mtos=bo(m);p.mcvt=m.Da.u;p.ps=void 0;f=oo(m,dn(),a.wl());p.vht=f;p.mut=m.Va.u;p.a=xo(a.Ze.volume);p.mv=xo(m.G);p.fs=a.Iq?1:0;p.ft=m.Y.i;p.at=m.C.i;p.as=0<m.B?1:0;p.atos=Un(m.i);p.ssb=Un(m.Ua,!1);p.amtos=Xn(m.i,!1);p.uac=a.Va;p.vpt=m.u.i;"nio"==n&&(p.nio=1,p.avms=
"nio");p.gmm="4";p.gdr=Ao(a,m.u.i,!0)?1:0;p.efpf=a.bb;if("gsv"==n||"nis"==n)n=a.xd,0<n.C&&(p.nnut=n.C);p.tcm=zo(a);p.nmt=a.Da;p.bt=a.Aa;p.pst=a.Ga;p.vpaid=a.U;p.dur=a.u;p.vmtime=a.Y;p.is=a.Re.u;1<=a.i.length&&(p.i0=a.i[0].Gt,p.a0=[a.i[0].ws],p.c0=[a.i[0].Pc],p.ss0=[a.i[0].Yg],n=a.i[0].position,p.p0=n?uo(n):void 0);2<=a.i.length&&(p.i1=a.i[1].Gt,p.a1=Oo(a.i[1].kx,a.i[1].ws,a.i[1].gx),p.c1=Oo(a.i[1].lx,a.i[1].Pc,a.i[1].hx),p.ss1=Oo(a.i[1].nx,a.i[1].Yg,a.i[1].ix),n=a.i[1].position,p.p1=n?uo(n):void 0,
p.mtos1=a.i[1].wx);3<=a.i.length&&(p.i2=a.i[2].Gt,p.a2=Oo(a.i[2].kx,a.i[2].ws,a.i[2].gx),p.c2=Oo(a.i[2].lx,a.i[2].Pc,a.i[2].hx),p.ss2=Oo(a.i[2].nx,a.i[2].Yg,a.i[2].ix),n=a.i[2].position,p.p2=n?uo(n):void 0,p.mtos2=a.i[2].wx);4<=a.i.length&&(p.i3=a.i[3].Gt,p.a3=Oo(a.i[3].kx,a.i[3].ws,a.i[3].gx),p.c3=Oo(a.i[3].lx,a.i[3].Pc,a.i[3].hx),p.ss3=Oo(a.i[3].nx,a.i[3].Yg,a.i[3].ix),n=a.i[3].position,p.p3=n?uo(n):void 0,p.mtos3=a.i[3].wx);p.cs=Bfa(a.Re);b&&(p.ic=Afa(a.Re),p.dvpt=m.u.l,p.dvs=Zn(m.l,.5),p.dfvs=
Zn(m.l,1),p.davs=Zn(m.i,.5),p.dafvs=Zn(m.i,1),c&&(m.u.l=0,$n(m.l),$n(m.i)),a.To()&&(p.dtos=m.va,p.dav=m.U,p.dtoss=a.LA+1,c&&(m.va=0,m.U=0,a.LA++)),p.dat=m.C.l,p.dft=m.Y.l,c&&(m.C.l=0,m.Y.l=0));p.ps=[h.C.width,h.C.height];p.bs=[nl(h.i),h.i.getHeight()];p.scs=[h.B.width,h.B.height];p.dom=h.domain;a.Er&&(p.vds=a.Er);if(0<a.G.length||a.Yo)b=g.rb(a.G),a.Yo&&b.push(a.Yo),p.pings=g.Oe(b,function(r){return r.toString()});
b=g.Oe(g.Po(a.G,function(r){return r.C()}),function(r){return r.getId()});
maa(b);p.ces=b;a.l&&(p.vmer=a.l);a.J&&(p.vmmk=a.J);a.va&&(p.vmiec=a.va);p.avms=a.xd?a.xd.getName():"ns";a.xd&&g.Yb(p,a.xd.Dm());d?(p.c=on(a.Ze.Pc,2),p.ss=on(a.Ze.Yg,2)):p.tth=dn()-Qo;p.mc=on(m.X,2);p.nc=on(m.J,2);p.mv=xo(m.G);p.nv=xo(m.B);p.lte=on(a.UB,2);d=yo(a,e);bo(m);p.qmtos=bo(d);p.qnc=on(d.J,2);p.qmv=xo(d.G);p.qnv=xo(d.B);p.qas=0<d.B?1:0;p.qi=a.Ef;p.avms||(p.avms="geo");p.psm=m.Aa.i;p.psv=m.Aa.getValue();p.psfv=m.La.getValue();p.psa=m.Ga.getValue();l=Jea(l.featureSet);l.length&&(p.veid=l);a.C&&
g.Yb(p,yfa(a.C));return p};
Gfa=function(a,b){if(g.kb(Ifa,b))return!0;var c=a.gf[b];return void 0!==c?(a.gf[b]=!0,!c):!1};
Kfa=function(){this.i={};var a=jg();Ro(this,a,document);var b=Jfa();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Ro(this,c,c.document);Ro(this,a.top,a.top.document)}}catch(d){}};
Jfa=function(){var a=document.documentElement;try{if(!jl(jg().top))return"2";var b=[],c=jg(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
Ro=function(a,b,c){nn(c,"mousedown",function(){return Lfa(a)},301);
nn(b,"scroll",function(){return Mfa(a)},302);
nn(c,"touchmove",function(){return Nfa(a)},303);
nn(c,"mousemove",function(){return Ofa(a)},304);
nn(c,"keydown",function(){return Pfa(a)},305)};
Lfa=function(a){g.Eb(a.i,function(b){1E5<b.u||++b.u})};
Mfa=function(a){g.Eb(a.i,function(b){1E5<b.i||++b.i})};
Nfa=function(a){g.Eb(a.i,function(b){1E5<b.i||++b.i})};
Pfa=function(a){g.Eb(a.i,function(b){1E5<b.l||++b.l})};
Ofa=function(a){g.Eb(a.i,function(b){1E5<b.B||++b.B})};
So=function(){this.i=[];this.l=[]};
To=function(a,b){return g.gb(a.i,function(c){return c.Ef==b})};
Uo=function(a,b){return b?g.gb(a.i,function(c){return c.Jg.Um==b}):null};
Qfa=function(a,b){return g.gb(a.l,function(c){return 2==c.Uj()&&c.Ef==b})};
Wo=function(){var a=Vo;return 0==a.i.length?a.l:0==a.l.length?a.i:g.qb(a.l,a.i)};
Xo=function(a,b){a=1==b.Uj()?a.i:a.l;var c=fb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.xd&&b.xd.Lr(),b.dispose(),!0):!1};
Rfa=function(a){var b=Vo;if(Xo(b,a)){switch(a.Uj()){case 0:var c=function(){return null};
case 2:c=function(){return Qfa(b,a.Ef)};
break;case 1:c=function(){return To(b,a.Ef)}}for(var d=c();d;d=c())Xo(b,d)}};
Sfa=function(a,b){var c=Vo;a=g.Po(a,(void 0===b?0:b)?function(d){return!To(c,d.Ef)}:function(d){return!Uo(c,d.Jg.Um)});
c.i.push.apply(c.i,g.ma(a))};
Yo=function(a){var b=Vo,c=[];g.Cb(a,function(d){sn(b.i,function(e){return e.Jg.Um===d.Jg.Um&&e.Ef===d.Ef})||(b.i.push(d),c.push(d))})};
Zo=function(){this.i=this.l=null};
$o=function(a,b){function c(d,e){b(d,e)}
if(null==a.l)return!1;a.i=g.gb(a.l,function(d){return null!=d&&d.rE()});
a.i&&(a.i.init(c)?Dn(a.i.i):b(a.i.i.Cq(),a.i));return null!=a.i};
ap=function(a){a=Tfa(a);Hn.call(this,a.length?a[a.length-1]:new zn(nm,0));this.u=a;this.l=null};
Tfa=function(a){if(!a.length)return[];a=(0,g.Po)(a,function(c){return null!=c&&c.Kr()});
for(var b=1;b<a.length;b++)Cn(a[b-1],a[b]);return a};
bp=function(a,b,c,d){Gn.call(this,a,b,c,d);this.U=this.K=this.C=this.G=this.u=null};
cp=function(a){return a.u&&a.u.takeRecords?a.u.takeRecords():[]};
Vfa=function(a){if(!a.element)return!1;var b=a.element,c=a.l.i.Vf,d=Km().i.i;a.u=new c.IntersectionObserver(Hm(d,function(e){return dp(a,e)}),Ufa);
d=Hm(d,function(){a.u.unobserve(b);a.u.observe(b);dp(a,cp(a))});
c.ResizeObserver?(a.G=new c.ResizeObserver(d),a.G.observe(b)):c.MutationObserver&&(a.C=new g.A.MutationObserver(d),a.C.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.u.observe(b);dp(a,cp(a));return!0};
dp=function(a,b){try{if(b.length){a.K||(a.K=dn());var c=Wfa(b),d=Kl(a.element,a.l.i.Vf),e=d.x,f=d.y;a.i=new ml(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=pn(c.intersectionRect);a.B=ol(h,a.i.left-h.left,a.i.top-h.top)}}catch(l){a.Lr(),cn(299,l)}};
Wfa=function(a){return zm(a,function(b,c){return b.time>c.time?b:c},a[0])};
ep=function(a){a=void 0===a?nm:a;Hn.call(this,new zn(a,2))};
gp=function(){var a=fp();zn.call(this,nm.top,a,"geo")};
fp=function(){Km();var a=wn();return a.u||a.l?0:2};
hp=function(){};
ip=function(){this.done=!1;this.i={RN:0,RF:0,d8:0,JG:0,HB:-1,mO:0,lO:0,nO:0};this.C=null;this.G=!1;this.u=null;this.J=0;this.l=new yn(this)};
kp=function(){var a=jp;a.G||(a.G=!0,Xfa(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.B.apply(a,g.ma(c))}),a.B())};
Yfa=function(){g.Am(hp);var a=g.Am(Zo);null!=a.i&&a.i.i?Dn(a.i.i):wn().update(nm)};
lp=function(a,b,c){if(!a.done&&(a.l.cancel(),0!=b.length)){a.u=null;try{Yfa();var d=dn(),e=Km();e.C=d;if(null!=g.Am(Zo).i)for(e=0;e<b.length;e++)ufa(b[e],d,c);else Lm(Tm,"",{strategy_not_selected:1,bin:e.l},!0,void 0);for(d=0;d<b.length;d++)vfa(b[d]);++a.i.JG;Zfa()}finally{c?g.Cb(b,function(f){f.Ze.Pc=0}):a.l.schedule()}}};
Xfa=function(a,b){if(!a.C){b=Zm(142,b,void 0);Cm();var c;Sl.visibilityState?c="visibilitychange":Sl.mozVisibilityState?c="mozvisibilitychange":Sl.webkitVisibilityState&&(c="webkitvisibilitychange");c&&fl(Sl,c,b,{capture:!1})&&(a.C=b)}};
mp=function(){var a=g.Am(Zo);if(null!=a.i){var b=a.i;g.Cb(Wo(),function(c){return ho(c,b)})}};
Zfa=function(){var a=Km();im(a.featureSet,"llp")};
np=function(a,b){a=a.J;fn&&(a+=b-gn);return a};
$fa=function(a){var b=jp;a=void 0===a?function(){return{}}:a;
Ym.LG="av-js";Tm.i=.01;afa([function(c){var d=Km(),e={};e=(e.bin=d.l,e.type="error",e);d=jm(d.featureSet);if(!b.u){var f=nm.document,h=0<=en?dn()-en:-1,l=dn();-1==b.i.HB&&(h=l);var m=wn(),n=Km(),p=jm(n.featureSet),r=Wo();try{if(0<r.length){var t=m.i;t&&(p.bs=[nl(t),t.getHeight()]);var u=m.C;u&&(p.ps=[u.width,u.height]);nm.screen&&(p.scs=[nm.screen.width,nm.screen.height])}else p.url=encodeURIComponent(nm.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=en;p.bin=n.l;void 0!==nm.google_osd_load_pub_page_exp&&(p.olpp=nm.google_osd_load_pub_page_exp);p.deb=[1,b.i.RN,b.i.RF,b.i.JG,b.i.HB,0,b.l.l,b.i.mO,b.i.lO,b.i.nO].join("-");p.tvt=np(b,l);m.l&&(p.inapp=1);if(null!==nm&&nm!=nm.top){0<r.length&&(p.iframe_loc=encodeURIComponent(nm.location.href.substring(0,512)));var x=m.J;p.is=[nl(x),x.getHeight()]}}catch(B){p.error=1}b.u=p}t=g.Vb(b.u);u=Km().i;if(1==im(u.u,"prf")){x=new Gm;f=u.i;h=0;-1<f.i&&(h=f.u.i.now()-f.i);x=Fe(x,1,f.B+h,0);f=
u.i;x=Fe(x,5,-1<f.i?f.l+1:f.l,0);x=Fe(x,2,u.l.i.u(),0);x=Fe(x,3,u.l.i.l(),0);f=Fe(x,4,u.l.i.i(),0);u={};x=new he;var y=void 0===y?0:y;h=Ae(f,1);h=null==h?h:+h;y=null==h?y:h;if(0!==y&&(h=y,null!=h)){Md(x.i,9);y=x.i;m=h;m=(h=0>m?1:0)?-m:m;if(0===m)ke=0<1/m?0:2147483648,je=0;else if(isNaN(m))ke=2147483647,je=4294967295;else if(1.7976931348623157E308<m)ke=(h<<31|2146435072)>>>0,je=0;else if(2.2250738585072014E-308>m)m/=Math.pow(2,-1074),ke=(h<<31|m/4294967296)>>>0,je=m>>>0;else{n=m;l=0;if(2<=n)for(;2<=
n&&1023>l;)l++,n/=2;else for(;1>n&&-1022<l;)n*=2,l--;m*=Math.pow(2,-l);ke=(h<<31|l+1023<<20|1048576*m&1048575)>>>0;je=4503599627370496*m>>>0}Nd(y,je);Nd(y,ke)}y=Ce(f,2);0!==y&&le(x,2,y);y=Ce(f,3);0!==y&&le(x,3,y);y=Ce(f,4);0!==y&&le(x,4,y);y=Ce(f,5);if(0!==y&&(f=y,null!=f&&null!=f))if(Md(x.i,40),y=x.i,0<=f)Md(y,f);else{for(h=0;9>h;h++)y.push(f&127|128),f>>=7;y.push(1)}y=ie(x);y=(u.pf=g.$d(y),u)}else y={};g.Yb(t,y);g.Yb(c,e,d,t,a());if(e=Pn())d={},g.Yb(c,(d.v=encodeURIComponent(e),d))}])};
aga=function(){var a=op||nm;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
pp=function(a){return function(b){return void 0===b[a]?0:b[a]}};
rp=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?qp(c,a):c}}};
sp=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return qp(f,b,c)}};
tp=function(a,b){return function(c){return b(c)?c[a]:void 0}};
up=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
qp=function(a,b,c){return void 0===c||c?g.Po(a,function(d,e){return g.kb(b,e)}):g.Oe(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
yp=function(a,b){var c={sv:"899",cb:vp};c.nas=Vo.i.length;c.msg=a;void 0!==b&&(a=wp(b))&&(c.e=xp[a]);return c};
zp=function(a){return nc(a,"custom_metric_viewable")};
wp=function(a){var b=zp(a)?"custom_metric_viewable":a.toLowerCase();return Pb(Lo,function(c){return c==b})};
cga=function(){this.i=void 0;this.l=!1;this.u=0;this.B=-1;this.C="tos"};
ega=function(a){try{var b=a.split(",");return b.length>g.Mb(dga).length?null:zm(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Ap[d[0]]||!Ap[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
fga=function(a,b){if(void 0==a.i)return 0;switch(a.C){case "mtos":return a.l?Yn(b.i,a.i):Yn(b.l,a.i);case "tos":return a.l?Wn(b.i,a.i):Wn(b.l,a.i)}return 0};
Bp=function(a,b,c,d){po.call(this,b,d);this.G=a;this.J=c};
Cp=function(a){po.call(this,"fully_viewable_audible_half_duration_impression",a)};
Dp=function(a,b){po.call(this,a,b)};
Ep=function(){this.l=this.B=this.G=this.C=this.u=this.i=""};
gga=function(){};
Fp=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.Yb(f,a);void 0!==c&&g.Yb(f,c);a=Mn(Ln(new Kn,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Gp=function(){};
Hp=function(a,b,c){to.call(this,a,b,c)};
Ip=function(a){a=void 0===a?nm:a;Hn.call(this,new zn(a,2))};
Jp=function(a,b,c){to.call(this,a,b,c)};
Kp=function(a){a=void 0===a?nm:a;Hn.call(this,new zn(a,2))};
Lp=function(){zn.call(this,nm,2,"mraid");this.xa=0;this.Y=this.X=!1;this.G=null;this.l=mn(this.Vf);this.u.i=new ml(0,0,0,0);this.Aa=!1};
Mp=function(a,b,c){a.qn("addEventListener",b,c)};
Pp=function(a){Km().B=!!a.qn("isViewable");Mp(a,"viewableChange",hga);"loading"===a.qn("getState")?Mp(a,"ready",Np):Op(a)};
Op=function(a){"string"===typeof a.l.Yi.AFMA_LIDAR?(a.X=!0,iga(a)):(a.l.compatibility=3,a.G="nc",Bn(a,"w"))};
iga=function(a){a.Y=!1;var b=1==im(Km().featureSet,"rmmt"),c=!!a.qn("isViewable");(b?!c:1)&&Cm().setTimeout(bn(524,function(){a.Y||(Qp(a),cn(540,Error()),a.G="mt",Bn(a,"w"))}),500);
jga(a);Mp(a,a.l.Yi.AFMA_LIDAR,Rp)};
jga=function(a){var b=1==im(Km().featureSet,"sneio"),c=void 0!==a.l.Yi.AFMA_LIDAR_EXP_1,d=void 0!==a.l.Yi.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.l.Yi.AFMA_LIDAR_EXP_2=!0);c&&(a.l.Yi.AFMA_LIDAR_EXP_1=!b)};
Qp=function(a){a.qn("removeEventListener",a.l.Yi.AFMA_LIDAR,Rp);a.X=!1};
Sp=function(a,b){if("loading"===a.qn("getState"))return new g.Sf(-1,-1);b=a.qn(b);if(!b)return new g.Sf(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Sf(-1,-1):new g.Sf(a,b)};
Np=function(){try{var a=g.Am(Lp);a.qn("removeEventListener","ready",Np);Op(a)}catch(b){cn(541,b)}};
Rp=function(a,b){try{var c=g.Am(Lp);c.Y=!0;var d=a?new ml(a.y,a.x+a.width,a.y+a.height,a.x):new ml(0,0,0,0);var e=dn(),f=xn();var h=new jn(e,f,c);h.i=d;h.volume=b;c.Mm(h)}catch(l){cn(542,l)}};
hga=function(a){var b=Km(),c=g.Am(Lp);a&&!b.B&&(b.B=!0,c.Aa=!0,c.G&&Bn(c,"w",!0))};
Tp=function(){this.Ud=!1;this.i=null;this.B=new Gp;this.l=null;var a={};this.J=(a.start=this.wP,a.firstquartile=this.rP,a.midpoint=this.tP,a.thirdquartile=this.xP,a.complete=this.pP,a.pause=this.DC,a.resume=this.bK,a.skip=this.vP,a.viewable_impression=this.Hm,a.mute=this.Br,a.unmute=this.Br,a.fullscreen=this.sP,a.exitfullscreen=this.qP,a.fully_viewable_audible_half_duration_impression=this.Hm,a.measurable_impression=this.Hm,a.abandon=this.DC,a.engagedview=this.Hm,a.impression=this.Hm,a.creativeview=
this.Hm,a.progress=this.Br,a.custom_metric_viewable=this.Hm,a.bufferstart=this.DC,a.bufferfinish=this.bK,a);a={};this.K=(a.overlay_resize=this.uP,a.abandon=this.zB,a.close=this.zB,a.collapse=this.zB,a.overlay_unmeasurable_impression=function(b){return No(b,"overlay_unmeasurable_impression",xn())},a.overlay_viewable_immediate_impression=function(b){return No(b,"overlay_viewable_immediate_impression",xn())},a.overlay_unviewable_impression=function(b){return No(b,"overlay_unviewable_impression",xn())},
a.overlay_viewable_end_of_session_impression=function(b){return No(b,"overlay_viewable_end_of_session_impression",xn())},a);
Km().l=3;kga(this);this.u=!1};
Up=function(a,b,c,d){b=a.vu(null,d,!0,b);b.B=c;Sfa([b],a.u);return b};
lga=function(a,b,c){Hea(b);var d=a.l;g.Cb(b,function(e){var f=g.Oe(e.l,function(h){var l=ega(h);if(null==l)h=null;else if(h=new cga,null!=l.visible&&(h.i=l.visible/100),null!=l.audible&&(h.l=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=qc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.u=l,h.B=-1):(h.u=-1,h.B=l);h.C=void 0===m?"tos":m}return h});
sn(f,function(h){return null==h})||Efa(c,new Bp(e.id,e.event,f,d))})};
mga=function(a){a=a.l;return[new Dp("viewable_impression",a),new Cp(a)]};
nga=function(){var a=[],b=Km();a.push(g.Am(gp));im(b.featureSet,"mvp_lv")&&a.push(g.Am(Lp));b=[new Ip,new Kp];b.push(new ap(a));b.push(new ep(nm));return b};
oga=function(a){if(!a.Ud){a.Ud=!0;try{var b=dn(),c=Km(),d=wn();en=b;c.u=79463069;"o"!==a.i&&(op=ln(nm).Vf);if(Sea()){jp.i.RF=0;jp.i.HB=dn()-b;var e=nga(),f=g.Am(Zo);f.l=e;$o(f,function(){Vp()})?jp.done||(mp(),Cn(f.i.i,a),kp()):d.u?Vp():kp()}else Wp=!0}catch(h){throw Vo.reset(),h;
}}};
Yp=function(a){jp.l.cancel();Xp=a;jp.done=!0};
Zp=function(a){if(a.i)return a.i;var b=g.Am(Zo).i;if(b)switch(b.getName()){case "nis":a.i="n";break;case "gsv":a.i="m"}a.i||(a.i="h");return a.i};
$p=function(a,b,c){if(null==a.l)return b.Er|=4,!1;a=qo(a.l,c,b);b.Er|=a;return 0==a};
Vp=function(){var a=[new ep(nm)],b=g.Am(Zo);b.l=a;$o(b,function(){Yp("i")})?jp.done||(mp(),kp()):Yp("i")};
aq=function(a,b,c){if(!b.Ya){var d=No(b,"start",xn());a=a.B.i(d).i;var e={id:"lidarv"};e.r=c;e.v="899v";li(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=aga();li(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+Mn(Ln(new Kn,e));Qn(c);b.Ya=!0}};
bq=function(a,b,c){lp(jp,[a],!xn());Ko(a,c);4!=c&&Bo(a.ma,c,a.zw);return No(a,b,xn())};
kga=function(a){$fa(function(){var b=cq();null!=a.i&&(b.sdk=a.i);var c=g.Am(Zo);null!=c.i&&(b.avms=c.i.getName());return b})};
pga=function(a,b,c,d){if(a.u)var e=To(Vo,b);else e=Uo(Vo,c),null!==e&&e.Ef!==b&&(a.Js(e),e=null);e||(b=a.vu(c,dn(),!1,b),0==Vo.l.length&&(Km().u=79463069),Yo([b]),e=b,e.B=Zp(a),d&&(e.La=d));return e};
qga=function(a){g.Cb(Vo.i,function(b){3==b.hg&&a.Js(b)})};
dq=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
cq=function(){var a=wn(),b={};return b.sv="899",b["if"]=a.u?"1":"0",b.nas=String(Vo.i.length),b};
eq=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
gq=function(a){return!!(1<<a&fq)};
vga=function(){try{rga()}catch(d){}var a="a=1&b="+fq+"&",b=[],c=99;g.Cb(sga,function(d,e){var f=!1;try{f=d(nm)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Cb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Cb(tga,function(d){var e="false";try{e=d(nm)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Cb(uga,function(d){var e="";try{e=g.$d(g.Xa(d(nm)),3)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
rga=function(){if(!hq){var a=function(){iq=!0;nm.document.removeEventListener("webdriver-evaluate",a,!0)};
nm.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){jq=!0;nm.document.removeEventListener("webdriver-evaluate-response",b,!0)};
nm.document.addEventListener("webdriver-evaluate-response",b,!0);hq=!0}};
kq=function(){this.blockSize=-1};
lq=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.B=Array(this.blockSize);this.u=this.l=0;this.reset()};
mq=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.i[0];c=a.i[1];e=a.i[2];var f=a.i[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15);
h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.i[2]=a.i[2]+e&4294967295;a.i[3]=a.i[3]+f&4294967295};
nq=function(){this.l=null};
oq=function(a){return function(b){var c=new lq;c.update(b+a);return iaa(c.digest()).slice(-8)}};
pq=function(a,b){this.i=a;this.u=b};
qo=function(a,b,c){var d=a.l();if("function"===typeof d){var e={};e=(e.sv="899",e.cb=vp,e.e=wga(b),e);var f=No(c,b,xn());g.Yb(e,f);c.bL[b]=f;a=2==c.Uj()?jfa(e).join("&"):a.u.i(e).i;try{return d(c.Ef,a,b),0}catch(h){return 2}}else return 1};
wga=function(a){var b=zp(a)?"custom_metric_viewable":a;a=Pb(Lo,function(c){return c==b});
return xp[a]};
qq=function(){Tp.call(this);this.G=null;this.C=!1;this.B=new nq};
xga=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.l&&Array.isArray(c)&&lga(a,c,b)};
yga=function(a,b,c){var d=To(Vo,b);d||(d=c.opt_nativeTime||-1,d=Up(a,b,Zp(a),d),c.opt_osdId&&(d.La=c.opt_osdId));return d};
zga=function(a,b,c){var d=To(Vo,b);d||(d=Up(a,b,"n",c.opt_nativeTime||-1));return d};
Aga=function(a,b){var c=To(Vo,b);c||(c=Up(a,b,"h",-1));return c};
Bga=function(a){Km();switch(Zp(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
sq=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Yb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.B.i(yp("ol",d));if(void 0!==d)if(void 0!==wp(d))if(Wp)b=yp("ue",d);else if(oga(a),"i"==Xp)b=yp("i",d),b["if"]=0;else if(b=a.Dw(b,e))if(a.u&&3==b.hg)b="stopped";else{b:{"i"==Xp&&(b.Nq=!0,a.bD());c=e.opt_fullscreen;void 0!==c&&go(b,!!c);var f;if(c=!wn().l)(c=zc(g.Tc,"CrKey")||zc(g.Tc,"PlayStation")||zc(g.Tc,"Roku")||ffa()||zc(g.Tc,"Xbox"))||(c=g.Tc,c=zc(c,"AppleTV")||zc(c,
"Apple TV")||zc(c,"CFNetwork")||zc(c,"tvOS")),c||(c=g.Tc,c=zc(c,"sdk_google_atv_x86")||zc(c,"Android TV")),c=!c;c&&(Cm(),c=0===om(Sl));if(f=c){switch(b.Uj()){case 1:aq(a,b,"pv");break;case 2:a.TC(b)}Yp("pv")}c=d.toLowerCase();if(f=!f)f=im(Km().featureSet,"ssmol")&&"loaded"===c?!1:g.kb(Cga,c);if(f&&0==b.hg){"i"!=Xp&&(jp.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;hn=f="number"===typeof f?f:dn();b.Yv=!0;var h=xn();b.hg=1;b.gf={};b.gf.start=!1;b.gf.firstquartile=!1;b.gf.midpoint=!1;b.gf.thirdquartile=
!1;b.gf.complete=!1;b.gf.resume=!1;b.gf.pause=!1;b.gf.skip=!1;b.gf.mute=!1;b.gf.unmute=!1;b.gf.viewable_impression=!1;b.gf.measurable_impression=!1;b.gf.fully_viewable_audible_half_duration_impression=!1;b.gf.fullscreen=!1;b.gf.exitfullscreen=!1;b.LA=0;h||(b.Mg().K=f);lp(jp,[b],!h)}(f=b.Ip[c])&&lo(b.Re,f);g.kb(Dga,c)&&!b.Nq&&b.Yo&&0!=b.hg&&(f=b.Yo,f.i||(f.i=ro(f,b)));switch(b.Uj()){case 1:var l=zp(c)?a.J.custom_metric_viewable:a.J[c];break;case 2:l=a.K[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=yp(void 0,
c);g.Yb(e,d);d=e;break b}d=void 0}3==b.hg&&(a.u?b.xd&&b.xd.Lr():a.Js(b));b=d}else b=yp("nf",d);else b=void 0;else Wp?b=yp("ue"):(b=a.Dw(b,e))?(d=yp(),g.Yb(d,Mo(b,!0,!1,!1)),b=d):b=yp("nf");return"string"===typeof b?a.u&&"stopped"===b?rq:a.B.i(void 0):a.B.i(b)};
tq=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.u,b.moatInit=a.C,b.moatViewability=a.G,b.integralAdsViewability=a.B,b.doubleVerifyViewability=a.l,b};
uq=function(a,b,c){c=void 0===c?{}:c;a=sq(g.Am(qq),b,c,a);return tq(a)};
vq=function(a,b){b=void 0===b?!1:b;var c=g.Am(qq).Dw(a,{});c?wo(c):b&&(a=g.Am(qq).vu(null,dn(),!1,a),a.hg=3,Yo([a]))};
xq=function(a){if(g.rc(g.rd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.bk(a)}catch(c){return null!=g.gb(wq,function(d){return 0<a.search(d)})}return b.C.match(Ega)?!0:null!=g.gb(wq,function(c){return null!=a.match(c)})};
g.yq=function(a,b){return a.replace(Fga,function(c,d){try{var e=Tb(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.rc(g.rd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
zq=function(){this.data_=[];this.i=-1};
Gga=function(a){-1==a.i&&(a.i=zm(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.i};
g.Aq=function(a,b,c){g.E.call(this);this.i=null;this.B=!1;this.G=a;this.C=c;this.l=b||window;this.u=(0,g.C)(this.wL,this)};
g.Bq=function(a){a.isActive()||a.start()};
Cq=function(a){a=a.l;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Dq=function(a){a=a.l;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.J=function(a,b,c){g.E.call(this);this.i=a;this.Of=b||0;this.l=c;this.u=(0,g.C)(this.uE,this)};
g.Eq=function(a,b){a.isActive()||a.start(b)};
g.Fq=function(a){a.stop();a.uE()};
g.Gq=function(a){a.isActive()&&g.Fq(a)};
Hq=function(){this.blockSize=-1;this.blockSize=64;this.i=[];this.C=[];this.G=[];this.B=[];this.B[0]=128;for(var a=1;a<this.blockSize;++a)this.B[a]=0;this.u=this.l=0;this.reset()};
Iq=function(a,b,c){c||(c=0);var d=a.G;if("string"===typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.i[0];c=a.i[1];var h=a.i[2],l=a.i[3],m=a.i[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=l^c&(h^l);var n=1518500249}else f=c^h^l,n=1859775393;else 60>e?(f=c&h|l&(c|h),n=2400959708):
(f=c^h^l,n=3395469782);f=(b<<5|b>>>27)+f+m+n+d[e]&4294967295;m=l;l=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+c&4294967295;a.i[2]=a.i[2]+h&4294967295;a.i[3]=a.i[3]+l&4294967295;a.i[4]=a.i[4]+m&4294967295};
Jq=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Kq=function(a){return a.classList?a.classList:Jq(a).match(/\S+/g)||[]};
g.Lq=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Mq=function(a,b){return a.classList?a.classList.contains(b):g.kb(Kq(a),b)};
g.K=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Mq(a,b)){var c=Jq(a);g.Lq(a,c+(0<c.length?" "+b:b))}};
g.Nq=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.K(a,e)});
else{var c={};Array.prototype.forEach.call(Kq(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.Lq(a,b)}};
g.Oq=function(a,b){a.classList?a.classList.remove(b):g.Mq(a,b)&&g.Lq(a,Array.prototype.filter.call(Kq(a),function(c){return c!=b}).join(" "))};
g.Pq=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Oq(a,c)}):g.Lq(a,Array.prototype.filter.call(Kq(a),function(c){return!g.kb(b,c)}).join(" "))};
g.N=function(a,b,c){c?g.K(a,b):g.Oq(a,b)};
Qq=function(a,b){var c=!g.Mq(a,b);g.N(a,b,c)};
g.Rq=function(){g.If.call(this);this.Oa=0;this.endTime=this.startTime=null};
Hga=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.zl(a,"transition",b.join(","))};
Sq=function(a,b,c,d,e){g.Rq.call(this);this.i=a;this.C=b;this.G=c;this.u=d;this.J=Array.isArray(e)?e:[e]};
Tq=function(a,b,c,d){return new Sq(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Jga=function(a){a=Ac(a);if(""==a)return null;var b=String(a.substr(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Iga))return null}return a};
Uq=function(a){var b=g.A.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Vq=function(a,b,c,d){if(a)return a.apply(b,d);if(g.fe&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
Oga=function(a){if(!a)return Pc;var b=document.createElement("div").style;Kga(a).forEach(function(c){var d=g.ig&&c in Lga?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");nc(d,"--")||nc(d,"var")||(c=Vq(Mga,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Jga(c),null!=c&&Vq(Nga,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return Faa(b.cssText||"")};
Kga=function(a){g.Ma(a)?a=g.rb(a):(a=g.Mb(a),g.ob(a,"cssText"));return a};
g.Xq=function(a){var b,c=b=0,d=!1;a=a.split(Pga);for(var e=0;e<a.length;e++){var f=a[e];g.Wq.test(f)?(b++,c++):Qga.test(f)?d=!0:Rga.test(f)?c++:Sga.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Yq=function(a,b,c,d,e,f,h,l){this.i=a;this.C=b;this.u=c;this.G=d;this.B=e;this.J=f;this.l=h;this.K=l};
g.Zq=function(a,b){if(0==b)return a.i;if(1==b)return a.l;var c=g.Of(a.i,a.u,b),d=g.Of(a.u,a.B,b);a=g.Of(a.B,a.l,b);c=g.Of(c,d,b);d=g.Of(d,a,b);return g.Of(c,d,b)};
$q=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Tga=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};
ar=function(a){return(a=a.exec(g.Tc))?a[1]:""};
br=function(a){return 0<=g.Cc(Uga,a)};
cr=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
g.dr=function(a){g.E.call(this);this.C=1;this.u=[];this.B=0;this.i=[];this.l={};this.G=!!a};
Vga=function(a,b,c){g.Ig(function(){a.apply(b,c)})};
g.er=function(a){this.i=a};
fr=function(a){this.i=a};
gr=function(a){this.data=a};
hr=function(a){return void 0===a||a instanceof gr?a:new gr(a)};
ir=function(a){this.i=a};
g.jr=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Sa()||!!b&&b>g.Sa()};
g.kr=function(a){this.i=a};
Wga=function(){};
lr=function(){};
mr=function(a){this.i=a};
nr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
or=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
qr=function(a,b){this.l=a;this.i=null;if(g.fe&&!g.Xd(9)){pr||(pr=new g.bi);this.i=pr.get(a);this.i||(b?this.i=document.getElementById(b):(this.i=document.createElement("userdata"),this.i.addBehavior("#default#userData"),document.body.appendChild(this.i)),pr.set(a,this.i));try{this.i.load(this.l)}catch(c){this.i=null}}};
rr=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Xga[b]})};
sr=function(a){try{a.i.save(a.l)}catch(b){throw"Storage mechanism: Quota exceeded";}};
tr=function(a,b){this.l=a;this.i=b+"::"};
g.ur=function(a){var b=new nr;return b.isAvailable()?a?new tr(b,a):b:null};
vr=function(a,b){this.i=a;this.l=b};
wr=function(a){this.i=[];if(a)a:{if(a instanceof wr){var b=a.Rh();a=a.Ng();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new vr(b[d],a[d]));break a}}else b=g.Mb(a),a=Lb(a);for(d=0;d<b.length;d++)xr(this,b[d],a[d])}};
xr=function(a,b,c){var d=a.i;d.push(new vr(b,c));b=d.length-1;a=a.i;for(c=a[b];0<b;)if(d=b-1>>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};
yr=function(){wr.call(this)};
zr=function(){};
Ar=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 0===b.length?function(d){return d}:1===b.length?b[0]:b.reduce(function(d,e){return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return d(e.apply(null,g.ma(h)))}})};
Yga=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return function(d){return function(e,f){function h(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
e=d(e,f);var l={getState:e.getState,dispatch:function(m,n){for(var p=[],r=1;r<arguments.length;++r)p[r-1]=arguments[r];return h.apply(null,[m].concat(g.ma(p)))}};
f=b.map(function(m){return m(l)});
h=Ar.apply(null,g.ma(f))(e.dispatch);return Object.assign(Object.assign({},e),{dispatch:h})}}};
Br=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Zga=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Cr}))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"+Br()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(Cr+' 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.'));})};
Dr=function(a,b,c,d){function e(){if(r)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(u){if("function"!==typeof u)throw Error("Expected the listener to be a function.");if(r)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(u);return function(){if(x){if(r)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(u),1);n=null}}}
function h(u){if("object"!==typeof u||null===u)var x=!1;else{for(x=u;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(u)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof u.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(r)throw Error("Reducers may not dispatch actions.");try{r=!0,m=l(m,u)}finally{r=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
return u}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function.");return c(Dr)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,r=!1;h({type:Cr});a={};var t=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(u){if("function"!==typeof u)throw Error("Expected the nextReducer to be a function.");l=u;h({type:$ga});return t},a[Er]=function(){var u={};
return u.subscribe=function(x){function y(){x.next&&x.next(e())}
if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object.");y();return{unsubscribe:f(y)}},u[Er]=function(){return this},u},a);
return t};
Fr=function(a){ze(this,a,-1,aha,null)};
Gr=function(a){ze(this,a,-1,null,null)};
bha=function(a,b){for(;Hd(b)&&4!=b.l;)switch(b.u){case 1:var c=Kd(b);De(a,1,c);break;case 2:c=Kd(b);De(a,2,c);break;case 3:c=Kd(b);De(a,3,c);break;case 4:c=Kd(b);De(a,4,c);break;case 5:c=b.Fc();De(a,5,c);break;default:Id(b)}return a};
cha=function(a){var b=a.split(""),c=[142389785,-1062889771,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
b,1966130824,-388933535,952987009,-152323794,-646774959,-1835069559,null,-1891128459,2069343819,264462757,null,-1827754172,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
null,b,function(d){d.reverse()},
1468427690,b,"pop",416624305,86884804,function(d,e){d.push(e)},
1815184233,1319603020,function(d,e){for(var f=64,h=[];++f-h.length-32;){switch(f){case 58:f-=14;case 91:case 92:case 93:continue;case 123:f=47;case 94:case 95:case 96:continue;case 46:f=95}h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
1823083268,1134033916,-646774959,-2126127395,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
1845050767,1965266158,1132026013,-294807870,-508492140,-2000244778,52788620,2012640407,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
-2021094533,1012922155,-1870404083,-161415485,1496545176,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
1247337884,1584781061,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
416358396,-410621770,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)}];
c[10]=c;c[14]=c;c[17]=c;try{c[16](c[3],c[24]),c[16](c[18],c[35]),c[16](c[21],c[43]),c[16](c[14],c[7]),c[54](c[3],c[8]),c[16](c[18],c[53]),c[16](c[3],c[5]),c[33](c[3],c[0]),c[33](c[17],c[39]),c[40](c[21],c[22]),c[53](c[8],c[41]),c[38](c[22],c[28]),c[27](c[42],c[37]),c[22](c[50],c[15]),c[54](c[46],c[14]),c[28](c[32],c[12]),c[22](c[46],c[23]),c[22](c[39],c[42]),c[2](c[50],c[51]),c[28](c[47],c[35]),c[28](c[47],c[44]),c[31](c[50],c[26]),c[45](c[50],c[3]),c[22](c[39],c[24]),c[28](c[47],c[49]),c[16](c[46],
c[11]),c[42](c[25],c[43]),c[14](c[0],c[5]),c[2](c[25],c[26]),c[55](c[53],c[38]),c[46](c[53],c[3]),c[11](c[30],c[4]),c[8](c[22]),c[24](c[26]),c[39](c[26],c[1]),c[46](c[29],c[16]),c[55](c[26],c[13]),c[43](c[55],c[50]),c[13](c[43],c[1]),c[49](c[23],c[39]),c[29](c[41],c[6])}catch(d){return"enhanced_except_8pIBje3-_w8_"+a}return b.join("")};
Hr=function(){return g.Ia("yt.ads.biscotti.lastId_")||""};
Ir=function(a){g.Ha("yt.ads.biscotti.lastId_",a,void 0)};
Kr=function(a){for(var b=0;b<arguments.length;++b);b=arguments;1<b.length?Jr[b[0]]=b[1]:1===b.length&&Object.assign(Jr,b[0])};
g.O=function(a,b){return a in Jr?Jr[a]:b};
Lr=function(a){var b=Jr.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.Nr=function(a){a=Mr(a);return"string"===typeof a&&"false"===a?!1:!!a};
Or=function(a,b){a=Mr(a);return void 0===a&&void 0!==b?b:Number(a||0)};
Pr=function(a){a=Mr(a);return Array.isArray(a)?g.Oe(a,function(b){return String(b||"")}):[String(a||"")]};
Mr=function(a){var b=g.O("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.O("EXPERIMENT_FLAGS",{})[a]};
Qr=function(){var a=[],b=g.O("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.O("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
dha=function(a){Rr.forEach(function(b){return b(a)})};
Tr=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Sr(b)}}:a};
g.Sr=function(a){var b=g.Ia("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0):(b=g.O("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0]),Kr("ERRORS",b));dha(a)};
Ur=function(a){var b=g.Ia("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=g.O("ERRORS",[]),b.push([a,"WARNING",void 0,void 0,void 0]),Kr("ERRORS",b))};
Wr=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=Vr(f[0]||""),l=Vr(f[1]||"");h in c?Array.isArray(c[h])?sb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(r){var m=r,n=f[0],p=String(Wr);m.args=[{key:n,value:f[1],query:a,method:eha==p?"unchanged":p}];fha.hasOwnProperty(n)||Ur(m)}}return c};
Xr=function(a){var b=[];g.Eb(a,function(c,d){var e=od(d),f;Array.isArray(c)?f=c:f=[c];g.Cb(f,function(h){""==h?b.push(e):b.push(e+"="+od(h))})});
return b.join("&")};
Yr=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Wr(a,"&")};
Zr=function(a){a=a.split(",");return a=a.map(function(b){return Yr(b)})};
g.$r=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Yr(1<a.length?a[1]:a[0])):{}};
bs=function(a,b){return as(a,b||{},!0)};
cs=function(a,b){return as(a,b||{},!1)};
as=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Yr(e[1]||"");for(var f in b)if(c||!Nb(e,f))e[f]=b[f];return g.ti(a,e)+d};
ds=function(a){if(!b)var b=window.location.href;var c=g.hi(1,a),d=g.ii(a);c&&d?(a=a.match(gi),b=b.match(gi),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.ii(b)==d&&(Number(g.hi(4,b))||null)==(Number(g.hi(4,a))||null):!0;return a};
es=function(a){a||(a=document.location.href);a=g.hi(1,a);return null!==a&&"https"==a};
fs=function(a){a=g.ii(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Vr=function(a){return a&&a.match(gha)?a:pd(a)};
is=function(a){var b=gs;a=void 0===a?Hr():a;var c=Object,d=c.assign,e=hs(b);var f=b.i;try{var h=f.screenX;var l=f.screenY}catch(B){}try{var m=f.outerWidth;var n=f.outerHeight}catch(B){}try{var p=f.innerWidth;var r=f.innerHeight}catch(B){}try{var t=f.screenLeft;var u=f.screenTop}catch(B){}try{p=f.innerWidth,r=f.innerHeight}catch(B){}try{var x=f.screen.availWidth;var y=f.screen.availTop}catch(B){}f=[t,u,h,l,x,y,m,n,p,r];h=Ul(!1,b.i.top);l={};m=new zq;g.A.SVGElement&&g.A.document.createElementNS&&m.set(0);
n=Eea();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);g.A.crypto&&g.A.crypto.subtle&&m.set(3);g.A.TextDecoder&&g.A.TextEncoder&&m.set(4);m=Gga(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=om(b.l),l.wgl=!!nm.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
hs=function(a){var b={};b.dt=hha;b.flash="0";a:{try{var c=a.i.top.location.href}catch(f){a=2;break a}a=c?c===a.l.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?nm:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!nm.navigator&&"unknown"!==typeof nm.navigator.javaEnabled&&!!nm.navigator.javaEnabled&&nm.navigator.javaEnabled();nm.screen&&(b.u_h=nm.screen.height,b.u_w=nm.screen.width,b.u_ah=nm.screen.availHeight,b.u_aw=nm.screen.availWidth,b.u_cd=
nm.screen.colorDepth);nm.navigator&&nm.navigator.plugins&&(b.u_nplug=nm.navigator.plugins.length);nm.navigator&&nm.navigator.mimeTypes&&(b.u_nmime=nm.navigator.mimeTypes.length);return b};
iha=function(){if(!js)return null;var a=js();return"open"in a?a:null};
g.ls=function(a){switch(ks(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
ks=function(a){return a&&"status"in a?a.status:-1};
g.ms=function(a,b){"function"===typeof a&&(a=Tr(a));return window.setTimeout(a,b)};
ns=function(a,b){"function"===typeof a&&(a=Tr(a));return window.setInterval(a,b)};
g.os=function(a){window.clearTimeout(a)};
jha=function(a,b){b=void 0===b?{}:b;var c=ds(a),d=g.Nr("web_ajax_ignore_global_headers_if_set"),e;for(e in ps){var f=g.O(ps[e]);!f||!c&&!qs(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||qs(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||qs(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}if(c||qs(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Xr(is(void 0));return b};
rs=function(a,b){var c=g.ii(a);g.Nr("debug_handle_relative_url_for_query_forward_killswitch")||c||!ds(a)||(c=document.location.hostname);var d=fi(g.hi(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Yr(b),f={};g.Cb(kha,function(h){e[h]&&(f[h]=e[h])});
return cs(a,f)};
qs=function(a){return g.ii(a)?!1:!0};
g.Ps=function(a,b){var c=b.format||"JSON";a=lha(a,b);var d=mha(a,b),e=!1,f=Os(a,function(m){if(!e){e=!0;l&&g.os(l);var n=g.ls(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=nha(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||{};r=b.context||g.A;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.onFinish&&b.onFinish.call(r,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
if(b.onTimeout&&0<b.timeout){var h=b.onTimeout;var l=g.ms(function(){e||(e=!0,f.abort(),g.os(l),h.call(b.context||g.A,f))},b.timeout)}return f};
lha=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.O("XSRF_FIELD_NAME",void 0);if(b=b.urlParams)b[c]&&delete b[c],a=bs(a,b);return a};
mha=function(a,b){var c=g.O("XSRF_FIELD_NAME",void 0),d=g.O("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.postParams,h=g.O("XSRF_FIELD_NAME",void 0),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.ii(a)&&!b.withCredentials&&g.ii(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=Yr(e),g.Yb(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.ri(e));f=e||f&&
!g.Rb(f);!Qs&&f&&"POST"!=b.method&&(Qs=!0,g.Sr(Error("AJAX request with postData should use POST")));return e};
nha=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,Ur(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?oha(a):null)e={},g.Cb(a.getElementsByTagName("*"),function(h){e[h.tagName]=pha(h)})}d&&Rs(e);
return e};
Rs=function(a){if(g.Na(a))for(var b in a)"html_content"==b||qc(b,"_html")?a[b]=g.dd(g.fc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Rs(a[b])};
oha=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
pha=function(a){var b="";g.Cb(a.childNodes,function(c){b+=c.nodeValue});
return b};
Os=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Tr(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=iha();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.Nr("debug_forward_web_query_parameters")&&(a=rs(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=jha(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
Ts=function(a,b){var c=g.Vb(b),d;return g.ah(new Ng(function(e,f){c.onSuccess=function(h){g.ls(h)?e(new qha(h)):f(new Ss("Request failed, status="+ks(h),"net.badstatus",h))};
c.onError=function(h){f(new Ss("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Ss("Request timed out","net.timeout",h))};
d=g.Ps(a,c)}),function(e){e instanceof fh&&d.abort();
return Ug(e)})};
g.Us=function(a,b,c,d){function e(l,m,n){return g.ah(l,function(p){if(0>=m||403===ks(p.xhr))return Ug(new Ss("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var r=0<h?Math.min(h,p):p;return f(n).then(function(){return e(Ts(a,b),m-1,r)})})}
function f(l){return new Ng(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(Ts(a,b),c-1,d)};
Ss=function(a,b,c){Va.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
qha=function(a){this.xhr=a};
Vs=function(){this.Oa=0;this.i=null};
Ws=function(a){var b=new Vs;a=void 0===a?null:a;b.Oa=2;b.i=void 0===a?null:a;return b};
Xs=function(a){var b=new Vs;a=void 0===a?null:a;b.Oa=1;b.i=void 0===a?null:a;return b};
g.$s=function(a,b,c,d,e){Ys||Zs.set(""+a,b,{fx:c,path:"/",domain:void 0===d?"youtube.com":d,jU:void 0===e?!1:e})};
g.at=function(a,b){if(!Ys)return Zs.get(""+a,b)};
g.bt=function(a,b,c){Ys||Zs.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
ct=function(){if(!Zs.isEnabled())return!1;if(!Zs.isEmpty())return!0;Zs.set("TESTCOOKIESENABLED","1",{fx:60});if("1"!==Zs.get("TESTCOOKIESENABLED"))return!1;Zs.remove("TESTCOOKIESENABLED");return!0};
dt=function(){var a=/Chrome\/(\d+)/.exec(g.Tc);return a?parseFloat(a[1]):NaN};
et=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Tc);if(!a)return NaN;var b=[];a=g.q(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
gt=function(){return ft("android")&&ft("chrome")&&!(ft("trident/")||ft("edge/"))&&!ft("cobalt")};
ht=function(){return ft("armv7")||ft("aarch64")||ft("android")};
g.it=function(){return ft("cobalt")};
jt=function(){return ft("cobalt")&&ft("appletv")};
kt=function(){return ft("(ps3; leanback shell)")||ft("ps3")&&g.it()};
lt=function(){return ft("(ps4; leanback shell)")||ft("ps4")&&g.it()};
g.mt=function(){return g.it()&&(ft("ps4 vr")||ft("ps4 pro vr"))};
nt=function(){var a=/WebKit\/([0-9]+)/.exec(g.Tc);return!!(a&&600<=parseInt(a[1],10))};
ot=function(){var a=/WebKit\/([0-9]+)/.exec(g.Tc);return!!(a&&602<=parseInt(a[1],10))};
pt=function(){return ft("iemobile")||ft("windows phone")&&ft("edge")};
rt=function(){return qt&&ft("applewebkit")&&!ft("version")&&(!ft("safari")||ft("gsa/"))};
ut=function(){return g.tt&&ft("version/")};
vt=function(){return ft("smart-tv")&&ft("samsung")};
ft=function(a){var b=g.Tc;return b?0<=b.toLowerCase().indexOf(a):!1};
wt=function(){if(Dh())return!0;var a=g.O("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a||rt()||ut()?!0:(a=g.at("CONSENT"))?a.startsWith("YES+"):!0};
zt=function(a){Va.call(this,a.message||a.description||a.name);this.isMissing=a instanceof xt;this.isTimeout=a instanceof Ss&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof fh};
xt=function(){Va.call(this,"Biscotti ID is missing from server")};
rha=function(){if(g.Nr("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!wt())return Ug(Error("User has not consented - not fetching biscotti id."));if("1"==Tb(g.O("PLAYER_VARS",{}),"privembed",!1))return Ug(Error("Biscotti ID is not available in private embed mode"));At||(At=g.ah(Ts("//googleads.g.doubleclick.net/pagead/id",Bt).then(Ct),function(a){return Dt(2,a)}));
return At};
Ct=function(a){a=a.xhr.responseText;if(!nc(a,")]}'"))throw new xt;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new xt;a=a.id;Ir(a);At=Xs(a);Et(18E5,2);return a};
Dt=function(a,b){b=new zt(b);Ir("");At=Ws(b);0<a&&Et(12E4,a-1);throw b;};
Et=function(a,b){g.ms(function(){g.ah(Ts("//googleads.g.doubleclick.net/pagead/id",Bt).then(Ct,function(c){return Dt(b,c)}),g.Ja)},a)};
Ft=function(){try{var a=g.Ia("yt.ads.biscotti.getId_");return a?a():rha()}catch(b){return Ug(b)}};
Ht=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Gt+"VisibilityState";if(b in a)return a[b]};
It=function(a,b){var c;sn(a,function(d){c=b[d];return!!c});
return c};
Jt=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 sha||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.i=a.pageX;this.l=a.pageY}}catch(e){}};
Kt=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.i=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.l=a.clientY+b}};
tha=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 Pb(Lt,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Na(e[4])&&g.Na(d)&&g.Ub(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Ot=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=tha(a,b,c,d);if(e)return e;e=++Mt.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Jt(l);if(!yg(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Jt(l);
l.currentTarget=a;return c.call(a,l)};
h=Tr(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Nt()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Lt[e]=[a,b,c,h,d];return e};
uha=function(a,b){var c=document.body||document;return g.Ot(c,"click",function(d){var e=yg(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Pt=function(a){a&&("string"==typeof a&&(a=[a]),g.Cb(a,function(b){if(b in Lt){var c=Lt[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Nt()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Lt[b]}}))};
g.Qt=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Rt=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.Qt(a)};
St=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};
Tt=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.Qf(b,c)};
g.Ut=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Vt=function(a){a=a||window.event;return!1===a.returnValue||a.QH&&a.QH()};
g.Wt=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
vha=function(a){return uha(a,function(b){return g.Mq(b,"ytp-ad-has-logging-urls")})};
g.Xt=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ot(a,b,function(){g.Pt(e);c.apply(a,arguments)},d)};
Yt=function(a){for(var b in Lt)Lt[b][0]==a&&g.Pt(b)};
Zt=function(a){this.J=a;this.i=null;this.B=0;this.G=null;this.C=0;this.l=[];for(a=0;4>a;a++)this.l.push(0);this.u=0;this.X=g.Ot(window,"mousemove",(0,g.C)(this.U,this));this.K=ns((0,g.C)(this.Y,this),25)};
$t=function(){};
bu=function(a,b,c){return au(b,0,c)};
g.cu=function(a,b){return au(a,1,b)};
du=function(){$t.apply(this,arguments)};
eu=function(){du.i||(du.i=new du);return du.i};
g.fu=function(){return!!g.Ia("yt.scheduler.instance")};
au=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ia("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.ms(a,c||0)};
g.gu=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ia("yt.scheduler.instance.cancelJob");b?b(a):g.os(a)}};
hu=function(a){var b=g.Ia("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
ku=function(){var a={},b=void 0===a.NT?!1:a.NT;a=void 0===a.BO?!0:a.BO;if(null==g.Ia("_lact",window)){var c=parseInt(g.O("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ha("_lact",c,window);g.Ha("_fact",c,window);-1==c&&iu();g.Ot(document,"keydown",iu);g.Ot(document,"keyup",iu);g.Ot(document,"mousedown",iu);g.Ot(document,"mouseup",iu);b?g.Ot(window,"touchmove",function(){ju("touchmove",200)},{passive:!0}):(g.Ot(window,"resize",function(){ju("resize",200)}),a&&g.Ot(window,"scroll",function(){ju("scroll",
200)}));
new Zt(function(){ju("mouse",100)});
g.Ot(document,"touchstart",iu,{passive:!0});g.Ot(document,"touchend",iu,{passive:!0})}};
ju=function(a,b){lu[a]||(lu[a]=!0,g.cu(function(){iu();lu[a]=!1},b))};
iu=function(){null==g.Ia("_lact",window)&&(ku(),g.Ia("_lact",window));var a=Date.now();g.Ha("_lact",a,window);-1==g.Ia("_fact",window)&&g.Ha("_fact",a,window);(a=g.Ia("ytglobal.ytUtilActivityCallback_"))&&a()};
mu=function(){var a=g.Ia("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
g.ou=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.it())a&&(a=g.Fc(g.Jc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.$c(bd(a)).toString(),a=od(g.Nh(a))),g.rc(a)||(a=mg("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Wf(a).body.appendChild(a)));else if(e)Os(a,b,"POST",e,d);else if(g.O("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Os(a,b,"GET","",d);else{b:{try{var f=new wea({url:a});if(f.u&&f.l||f.B){var h=fi(g.hi(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==xi(a,"ri"));break b}}catch(m){}l=!1}l?nu(a)?(b&&b(),c=!0):c=!1:c=!1;c||wha(a,b)}};
pu=function(a,b,c){c=void 0===c?"":c;nu(a,c)?b&&b():g.ou(a,b,void 0,void 0,c)};
nu=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
wha=function(a,b){var c=new Image,d=""+xha++;qu[d]=c;c.onload=c.onerror=function(){b&&qu[d]&&b();delete qu[d]};
c.src=a};
g.wu=function(a,b,c){var d=g.ru();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){tu[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.uu[a]?h():g.ms(h,0)}catch(l){g.Sr(l)}},c);
tu[e]=!0;vu[a]||(vu[a]=[]);vu[a].push(e);return e}return 0};
g.xu=function(a){var b=g.ru();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Cb(a,function(c){b.unsubscribeByKey(c);delete tu[c]}))};
g.yu=function(a,b){var c=g.ru();return c?c.publish.apply(c,arguments):!1};
Au=function(a){var b=g.ru();if(b)if(b.clear(a),a)zu(a);else for(var c in vu)zu(c)};
g.ru=function(){return g.A.ytPubsubPubsubInstance};
zu=function(a){vu[a]&&(a=vu[a],g.Cb(a,function(b){tu[b]&&delete tu[b]}),a.length=0)};
yha=function(a,b){if("log_event"===a.endpoint){var c="";a.Wv?c="visitorOnlyApprovedKey":a.Ie&&(Bu[a.Ie.token]=Cu(a.Ie),c=a.Ie.token);var d=Du.get(c)||[];Du.set(c,d);d.push(a.payload);b&&(Eu=new b);a=Or("tvhtml5_logging_max_batch")||Or("web_logging_max_batch")||100;b=(0,g.P)();d.length>=a?Fu({writeThenSend:!0}):10<=b-Gu&&(Hu(),Gu=b)}};
zha=function(a,b){if("log_event"===a.endpoint){var c="";a.Wv?c="visitorOnlyApprovedKey":a.Ie&&(Bu[a.Ie.token]=Cu(a.Ie),c=a.Ie.token);var d=new Map;d.set(c,[a.payload]);b&&(Eu=new b);return new Ng(function(e){Eu&&Eu.isReady()?Iu(d,e,{bypassNetworkless:!0}):e()})}};
Fu=function(a){a=void 0===a?{}:a;new Ng(function(b){g.os(Ju);g.os(Ku);Ku=0;Eu&&Eu.isReady()?(Iu(Du,b,a),Du.clear()):(Hu(),b())})};
Hu=function(){g.Nr("web_gel_timeout_cap")&&!Ku&&(Ku=g.ms(function(){Fu({writeThenSend:!0})},6E4));
g.os(Ju);var a=g.O("LOGGING_BATCH_TIMEOUT",Or("web_gel_debounce_ms",1E4));g.Nr("shorten_initial_gel_batch_timeout")&&Lu&&(a=Aha);Ju=g.ms(function(){Fu({writeThenSend:!0})},a)};
Iu=function(a,b,c){var d=Eu;c=void 0===c?{}:c;var e=Math.round((0,g.P)()),f=a.size;a=g.q(a);for(var h=a.next();!h.done;h=a.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.Wb({context:g.Mu(d.config_||g.Nu())});l.events=m;(m=Bu[h])&&Bha(l,h,m);delete Bu[h];h="visitorOnlyApprovedKey"===h;Cha(l,e,h);g.Nr("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&pu("/generate_204");g.Ou(d,"log_event",l,{retry:!0,onSuccess:function(){f--;f||b();Pu=
Math.round((0,g.P)()-e)},
onError:function(){f--;f||b()},
zI:c,Wv:h});Lu=!1}};
Cha=function(a,b,c){a.requestTimeMs=String(b);g.Nr("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.O("EVENT_ID",void 0))&&((c=g.O("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*Qu/2)),c++,c>Qu&&(c=1),Kr("BATCH_CLIENT_COUNTER",c),b={serializedEventId:b,clientCounter:String(c)},a.serializedClientEventId=b,Ru&&Pu&&g.Nr("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Ru,roundtripMs:String(Pu)}),Ru=b,Pu=0)};
Bha=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}]};
Cu=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b};
Tu=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.P)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=mu();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.Nr("log_sequence_info_on_gel_web")&&d.Ml&&(a=e.context,b=d.Ml,Su[b]=b in Su?Su[b]+1:0,a.sequence={index:Su[b],groupKey:b},d.CO&&delete Su[d.Ml]);(d.lU?zha:yha)({endpoint:"log_event",payload:e,Ie:d.Ie,Wv:d.Wv},c)};
Uu=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
Vu=function(){if(!g.A.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.A.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.A.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.A.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.A.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
g.Xu=function(){this.i=g.O("ALT_PREF_COOKIE_NAME","PREF");this.l=g.O("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.at(this.i);if(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Wu[d]=c.toString())}}};
g.Zu=function(a,b){return!!((Yu("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
$u=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
av=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Yu=function(a){a=void 0!==Wu[a]?Wu[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
bv=function(){var a=g.A.navigator;return a?a.connection:void 0};
dv=function(){var a=bv();if(a){var b=cv[a.type||"unknown"]||"CONN_UNKNOWN";a=cv[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
fv=function(){var a=bv();if(null!==a&&void 0!==a&&a.effectiveType)return ev.hasOwnProperty(a.effectiveType)?ev[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
gv=function(){return"INNERTUBE_API_KEY"in Jr&&"INNERTUBE_API_VERSION"in Jr};
g.Nu=function(){return{innertubeApiKey:g.O("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.O("INNERTUBE_API_VERSION",void 0),IH:g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),JH:g.O("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),LH:g.O("INNERTUBE_CONTEXT_HL",void 0),KH:g.O("INNERTUBE_CONTEXT_GL",void 0),MH:g.O("INNERTUBE_HOST_OVERRIDE",void 0)||"",OH:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),NH:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.O("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.Mu=function(a){var b={client:{hl:a.LH,gl:a.KH,clientName:a.JH,clientVersion:a.innertubeContextClientVersion,configInfo:a.IH}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.A.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.O("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=Qr();0<c.length&&(b.request={internalExperimentFlags:c});c=b.client.clientName;if("WEB"===c||"MWEB"===c||1===c||2===c){if(!g.Nr("web_include_display_mode_killswitch")){var d;
b.client.mainAppWebInfo=null!=(d=b.client.mainAppWebInfo)?d:{};b.client.mainAppWebInfo.webDisplayMode=Vu()}}else if(d=b.client.clientName,("WEB_REMIX"===d||76===d)&&!g.Nr("music_web_display_mode_killswitch")){var e;b.client.xI=null!=(e=b.client.xI)?e:{};b.client.xI.webDisplayMode=Vu()}a.appInstallData&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.O("DELEGATED_SESSION_ID")&&!g.Nr("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.O("DELEGATED_SESSION_ID")});
if(a=dv())b.client.connectionType=a;g.Nr("web_log_effective_connection_type")&&(a=fv())&&(b.client.effectiveConnectionType=a);a=Object;e=a.assign;d=b.client;c={};for(var f=g.q(Object.entries(Yr(g.O("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?c.deviceMake=l:"cmodel"===h?c.deviceModel=l:"cbr"===h?c.browserName=l:"cbrver"===h?c.browserVersion=l:"cos"===h?c.osName=l:"cosver"===h?c.osVersion=l:"cplatform"===h&&(c.platform=l)}b.client=
e.call(a,d,c);return b};
Dha=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.O("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.XF||g.O("AUTHORIZATION"))||(a?b="Bearer "+g.Ia("gapi.auth.getToken")().x7:b=Fh([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.O("SESSION_INDEX",0),g.Nr("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return d};
hv=function(a){var b;(b=g.ur(a))||(a=new qr(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new ir(a):null;this.l=document.domain||window.location.hostname};
iv=function(a,b){this.version=a;this.args=b};
jv=function(a,b){this.topic=a;this.i=b};
lv=function(a,b){var c=kv();c&&c.publish.call(c,a.toString(),a,b)};
Eha=function(a,b,c){var d=kv();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ia("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(mv[e])try{if(h&&a instanceof jv&&a!=f)try{var m=a.i,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.An){var p=new m;m.An=p.version}var r=m.An}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.rb(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){g.Sr(t)}},nv[a.toString()]?g.fu()?g.cu(l):g.ms(l,0):l())});
mv[e]=!0;ov[a.toString()]||(ov[a.toString()]=[]);ov[a.toString()].push(e);return e};
qv=function(a,b,c){var d=Eha(a,function(e){b.apply(c,arguments);pv(d)},c);
return d};
pv=function(a){var b=kv();b&&("number"===typeof a&&(a=[a]),g.Cb(a,function(c){b.unsubscribeByKey(c);delete mv[c]}))};
kv=function(){return g.Ia("ytPubsub2Pubsub2Instance")};
rv=function(){this.zU=!0};
tv=function(){rv.i||(rv.i=new rv);return rv.i};
uv=function(a,b,c){return Tg(a.pw(b,c))};
wv=function(){var a;return null===(a=vv())||void 0===a?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
xv=function(a){this.i=void 0===a?!1:a;(a=wv())||(a={hasSucceededOnce:this.i});this.l=a;var b,c;null!==(b=vv())&&void 0!==b&&b.i&&(b={hasSucceededOnce:this.l.hasSucceededOnce||this.i},null===(c=vv())||void 0===c?void 0:c.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0))};
Fha=function(){var a={};for(yv=new zv(void 0===a.handleError?Av:a.handleError,void 0===a.logEvent?g.Bv:a.logEvent);0<Cv.length;)switch(a=Cv.shift(),a.type){case "ERROR":yv.wd(a.payload);break;case "EVENT":yv.logEvent(a.eventType,a.payload)}};
Ev=function(a){Dv||(yv?yv.wd(a):(Cv.push({type:"ERROR",payload:a}),10<Cv.length&&Cv.shift()))};
Fv=function(a,b){Dv||(yv?yv.logEvent(a,b):(Cv.push({type:"EVENT",eventType:a,payload:b}),10<Cv.length&&Cv.shift()))};
g.Gv=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.ma(c))};
Iv=function(){try{return Hv(),!0}catch(a){return!1}};
Hv=function(a){if(void 0!==g.O("DATASYNC_ID",void 0))return g.O("DATASYNC_ID",void 0);throw new g.Gv("Datasync ID not set",void 0===a?"unknown":a);};
Jv=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
Kv=function(a){return a.substr(0,a.indexOf(":"))||a};
Mv=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Lv[a]:c;d=void 0===d?Gha[a]:d;e=void 0===e?Hha[a]:e;g.Gv.call(this,c,Object.assign({name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.i=e;Object.setPrototypeOf(this,Mv.prototype)};
Nv=function(a){Mv.call(this,"MISSING_OBJECT_STORE",{dQ:a},Lv.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,Nv.prototype)};
Jha=function(a,b,c){b=Kv(b);var d=a instanceof Error?a:Error("Unexpected error: "+a);if(d instanceof Mv)return d;if("QuotaExceededError"===d.name)return new Mv("QUOTA_EXCEEDED",{objectStoreNames:c,dbName:b});if(g.cj&&"UnknownError"===d.name)return new Mv("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:c,dbName:b});if("InvalidStateError"===d.name&&Iha.some(function(e){return d.message.includes(e)}))return new Mv("EXECUTE_TRANSACTION_ON_CLOSED_DB",{objectStoreNames:c,
dbName:b});if("AbortError"===d.name)return new Mv("UNKNOWN_ABORT",{objectStoreNames:c,dbName:b},d.message);d.args=[{name:"IdbError",BC:d.name,dbName:b,objectStoreNames:c}];d.level="WARNING";return d};
Kha=function(a){if(!a)throw Error();throw a;};
Lha=function(a){return a};
Ov=function(a){this.i=a};
Pv=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.q(d.onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.q(d.i);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.i=[];this.onRejected=[];a=a.i;try{a(c,b)}catch(e){b(e)}};
Rv=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof Pv?Qv(a,b,f,d,e):d(f)}catch(h){e(h)}};
Sv=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof Pv?Qv(a,b,f,d,e):d(f)}catch(h){e(h)}};
Qv=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Pv?Qv(a,b,f,d,e):d(f)},function(f){e(f)})};
Tv=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
Mha=function(a){return new Promise(function(b,c){Tv(a,b,c)})};
Uv=function(a){return new Pv(new Ov(function(b,c){Tv(a,b,c)}))};
Vv=function(a,b){return new Pv(new Ov(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Wv=function(a,b){this.request=a;this.cursor=b};
Xv=function(a){return Uv(a).then(function(b){return null===b?null:new Wv(a,b)})};
Yv=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.u=Math.round((0,g.P)());this.l=!1};
$v=function(a,b,c){a=a.i.createObjectStore(b,c);return new Zv(a)};
Nha=function(a,b){return aw(a,["LogsRequestsStore"],{mode:"readwrite",jh:!0},function(c){return bw(cw(c,"LogsRequestsStore"),b,void 0)})};
aw=function(a,b,c,d){return g.D(a,function f(){var h=this,l,m,n,p,r,t,u,x,y,B,G,H;return g.z(f,function(I){switch(I.i){case 1:var M={mode:"readonly",jh:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?M.mode=c:Object.assign(M,c);l=M;h.transactionCount++;m=l.jh?3:1;n=0;case 2:if(p){I.ub(3);break}n++;r=Math.round((0,g.P)());ta(I,4);t=h.i.transaction(b,l.mode);M=new dw(t);M=Oha(M,d);return g.w(I,M,6);case 6:return u=I.l,x=Math.round((0,g.P)()),ew(h,r,x,n,void 0,b.join(),l),I.return(u);case 4:y=
va(I);B=Math.round((0,g.P)());G=Jha(y,h.i.name,b.join());if((H=G instanceof Mv&&!G.i)||n>=m)ew(h,r,B,n,G,b.join(),l),p=G;I.ub(2);break;case 3:return I.return(Promise.reject(p))}})})};
ew=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof Mv&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Fv("QUOTA_EXCEEDED",{dbName:Kv(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof Mv&&"UNKNOWN_ABORT"===e.type&&(c-=a.u,0>c&&c>=Math.pow(2,31)&&(c=0),Fv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.l=!0),fw(a,!1,d,f,b,h.tag),Ev(e)):fw(a,!0,d,f,b,h.tag)};
fw=function(a,b,c,d,e,f){Fv("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.l,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Zv=function(a){this.i=a};
gw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})};
Pha=function(a,b){return hw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
Qha=function(a,b,c){var d=[];return hw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
bw=function(a,b,c){return Uv(a.i.put(b,c))};
hw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return iw(a).then(function(d){return Vv(d,c)})};
Rha=function(a,b){var c={},d=c.query;c=c.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,c):a.i.openCursor(d,c);return Xv(a).then(function(e){return Vv(e,b)})};
dw=function(a){var b=this;this.i=a;this.u=new Map;this.l=!1;this.done=new Promise(function(c,d){b.i.addEventListener("complete",function(){c()});
b.i.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.i.error)});
b.i.addEventListener("abort",function(){var e=b.i.error;if(e)d(e);else if(!b.l){e=Mv;for(var f=b.i.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.i.db.name,mode:b.i.mode});d(e)}})})};
Oha=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.q(d).next().value})};
cw=function(a,b){b=a.i.objectStore(b);var c=a.u.get(b);c||(c=new Zv(b),a.u.set(b,c));return c};
jw=function(a){this.i=a};
Sha=function(a,b,c){var d=[];return kw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
kw=function(a,b,c){a=a.i.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return iw(a).then(function(d){return Vv(d,c)})};
lw=function(a,b){this.request=a;this.cursor=b};
iw=function(a){return Uv(a).then(function(b){return null===b?null:new lw(a,b)})};
Tha=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new Yv(h.result,{closed:r}));return t}
var h=self.indexedDB.open(a,b),l=c.blocked,m=c.blocking,n=c.BU,p=c.upgrade,r=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&Fv("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:Kv(a)});var x=f(),y=new dw(h.transaction);p&&p(x,function(B){return u.oldVersion<
B&&u.newVersion>=B},y);
y.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())});
u.addEventListener("close",function(){Fv("IDB_UNEXPECTEDLY_CLOSED",{dbName:Kv(a),dbVersion:u.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
mw=function(a,b,c){c=void 0===c?{}:c;return Tha(a,b,c)};
nw=function(a,b){b=void 0===b?{}:b;return g.D(this,function d(){var e,f,h;return g.z(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
return g.w(l,Mha(e),0)})})};
ow=function(a,b){this.name=a;this.options=b;this.u=!1};
qw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,pw.open(),2);d=e.l;return e.return(aw(d,["databases"],{jh:!0,mode:"readwrite"},function(f){var h=cw(f,"databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier:1)return bw(h,a).then(function(){})})}))})})};
rw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,pw.open(),2);d=e.l;return e.return(d.delete("databases",a))})})};
Uha=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){return 1==f.i?(d=[],g.w(f,pw.open(),2)):3!=f.i?(e=f.l,g.w(f,aw(e,["databases"],{jh:!0,mode:"readonly"},function(h){d.length=0;return hw(cw(h,"databases"),{},function(l){a(l.getValue())&&d.push(l.getValue());return l.continue()})}),3)):f.return(d)})})};
Vha=function(){return g.D(this,function b(){var c,d;return g.z(b,function(e){if(1==e.i)return c=Hv("YtIdbMeta"),g.w(e,Uha(function(f){return"yt-player-local-media"===f.publicName&&f.userIdentifier===c}),2);
d=e.l;return e.return(0<d.length)})})};
Wha=function(){return g.D(this,function b(){var c,d,e;return g.z(b,function(f){switch(f.i){case 1:c=wv();if(null===c||void 0===c?0:c.hasSucceededOnce)return f.return(new xv(!0));if(qt&&nt()&&!ot()||g.tw)return f.return(new xv(!1));try{if(d=self,!(d.indexedDB&&d.IDBIndex&&d.IDBKeyRange&&d.IDBObjectStore))return f.return(new xv(!1))}catch(h){return f.return(new xv(!1))}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return f.return(new xv(!1));ta(f,2);e={actualName:"yt-idb-test-do-not-use",
publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return g.w(f,qw(e),4);case 4:return g.w(f,rw("yt-idb-test-do-not-use"),5);case 5:return f.return(new xv(!0));case 2:return va(f),f.return(new xv(!1))}})})};
vw=function(){if(void 0!==uw)return uw;Dv=!0;return uw=Wha().then(function(a){Dv=!1;return a.isSupported()})};
ww=function(a){if(!Iv())throw a=new Mv("AUTH_INVALID"),Ev(a),a;var b=Hv();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
xw=function(a,b,c,d){return g.D(this,function f(){var h,l;return g.z(f,function(m){switch(m.i){case 1:return g.w(m,Xha({caller:"openDbImpl",publicName:a,version:b}),2);case 2:return Jv(a),h=c?{actualName:a,publicName:a,userIdentifier:void 0}:ww(a),ta(m,3),g.w(m,qw(h),5);case 5:return g.w(m,mw(h.actualName,b,d),6);case 6:return m.return(m.l);case 3:return l=va(m),ta(m,7),g.w(m,rw(h.actualName),9);case 9:ua(m,8);break;case 7:va(m);case 8:throw l;}})})};
Xha=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,vw(),2);if(!e.l)throw d=new Mv("IDB_NOT_SUPPORTED",{context:a}),Ev(d),d;g.sa(e)})})};
Yha=function(a,b,c){c=void 0===c?{}:c;return xw(a,b,!1,c)};
Zha=function(a,b,c){c=void 0===c?{}:c;return xw(a,b,!0,c)};
$ha=function(a,b){b=void 0===b?{}:b;return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return g.w(f,vw(),2);if(3!=f.i){if(!f.l)return f.return();Jv(a);e=ww(a);return g.w(f,nw(e.actualName,b),3)}return g.w(f,rw(e.actualName),0)})})};
aia=function(a,b){b=void 0===b?{}:b;return g.D(this,function d(){return g.z(d,function(e){if(1==e.i)return g.w(e,vw(),2);if(3!=e.i){if(!e.l)return e.return();Jv(a);return g.w(e,nw(a,b),3)}return g.w(e,rw(a),0)})})};
bia=function(){return g.D(this,function b(){return g.z(b,function(c){return 1==c.i?g.w(c,vw(),2):c.l?c.return(Vha()):c.return(!1)})})};
yw=function(a,b){ow.call(this,a,b);this.options=b;Jv(a)};
cia=function(a,b){var c;return function(){c||(c=new yw(a,b));return c}};
zw=function(a,b){return cia(a,b)};
Bw=function(){if(Aw)return Aw();var a={};Aw=zw("LogsDatabaseV2",{Vt:(a.LogsRequestsStore=!0,a.sapisid=!0,a.SWHealthLog=!0,a),iy:!1,upgrade:function(b,c){c(2)&&(gw($v(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0}),"newRequest",["status","authHash","interface","timestamp"]),$v(b,"sapisid"));c(3)&&gw($v(b,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:4});return Aw()};
Ew=function(a){return g.D(this,function c(){var d,e,f,h,l;return g.z(c,function(m){switch(m.i){case 1:return d={startTime:(0,g.P)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.w(m,Bw().open(),2);case 2:e=m.l;if(5<=e.i.version){f=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0)});m.ub(3);break}return g.w(m,Cw(),4);case 4:h=m.l,f=Object.assign(Object.assign({},a),{authHash:h,options:JSON.parse(JSON.stringify(a.options)),
interface:g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0)});case 3:return g.w(m,Nha(e,f),5);case 5:return l=m.l,d.IU=(0,g.P)(),Dw(d),m.return(l)}})})};
dia=function(){return g.D(this,function b(){var c,d,e,f,h,l,m,n,p;return g.z(b,function(r){switch(r.i){case 1:return c={startTime:(0,g.P)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.w(r,Bw().open(),2);case 2:d=r.l;e=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",0);if(5<=d.i.version){f=["NEW",e,0];h=["NEW",e,(0,g.P)()];r.ub(3);break}return g.w(r,Cw(),4);case 4:l=r.l,f=["NEW",l,e,0],h=["NEW",l,e,(0,g.P)()];case 3:return m=IDBKeyRange.bound(f,h),n=void 0,p=5<=d.i.version?"newRequestV2":"newRequest",g.w(r,
aw(d,["LogsRequestsStore"],{mode:"readwrite",jh:!0},function(t){return kw(cw(t,"LogsRequestsStore").index(p),{query:m,direction:"prev"},function(u){u.getValue()&&(n=u.getValue(),n.status="QUEUED",u.update(n))})}),5);
case 5:return c.IU=(0,g.P)(),Dw(c),r.return(n)}})})};
eia=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Bw().open(),2);d=e.l;return e.return(aw(d,["LogsRequestsStore"],{mode:"readwrite",jh:!0},function(f){var h=cw(f,"LogsRequestsStore");return h.get(a).then(function(l){if(l)return l.status="QUEUED",bw(h,l).then(function(){return l})})}))})})};
fia=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Bw().open(),2);d=e.l;return e.return(aw(d,["LogsRequestsStore"],{mode:"readwrite",jh:!0},function(f){var h=cw(f,"LogsRequestsStore");return h.get(a).then(function(l){return l?(l.status="NEW",l.sendCount+=1,bw(h,l).then(function(){return l})):Pv.resolve(void 0)})}))})})};
Fw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,Bw().open(),2);d=e.l;return e.return(d.delete("LogsRequestsStore",a))})})};
Cw=function(){return g.D(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,uv(tv(),Gw),2);c=d.l;var e=d.return,f=Object.assign({},c);delete f.Authorization;var h=Fh();if(h){var l=new Hq;l.update(g.O("INNERTUBE_API_KEY",void 0));l.update(h);f.hash=g.$d(l.digest(),3)}h=new Hq;h.update(JSON.stringify(f,Object.keys(f).sort()));f=h.digest();h="";for(l=0;l<f.length;l++)h+="0123456789ABCDEF".charAt(Math.floor(f[l]/16))+"0123456789ABCDEF".charAt(f[l]%16);return e.call(d,h)})})};
Dw=function(a){var b=Or("nwl_latency_sampling_rate",.01);.02<b||Math.random()<=b&&lv("nwl_transaction_latency_payload",a)};
Iw=function(){Hw||(Hw=new hv("yt.offline"));return Hw};
Jw=function(){g.If.call(this);this.K=0;this.C=this.l=!1;this.J=0;this.U=!1;this.i=this.qB();gia(this);hia(this)};
Kw=function(){if(!Jw.i){var a=g.Ia("yt.networkStatusManager.instance")||new Jw;g.Ha("yt.networkStatusManager.instance",a,void 0);Jw.i=a}return Jw.i};
hia=function(a){window.addEventListener("online",function(){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return g.w(e,d.wp(),2);Lw(d);if(d.U&&g.Nr("offline_error_handling")){var f=Iw().get("errors",!0);if(f){for(var h in f)if(f[h]){var l=new g.Gv(h,"sent via offline_errors");l.name=f[h].name;l.stack=f[h].stack;l.level=f[h].level;g.Sr(l)}Iw().set("errors",{},2592E3,!0)}}g.sa(e)})})})};
gia=function(a){window.addEventListener("offline",function(){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return g.w(e,d.wp(),2);Lw(d);g.sa(e)})})})};
Mw=function(a){a.K=bu(0,function(){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i){if(!d.i)return g.w(e,d.wp(),3);if(d.qB())return e.ub(3);d.C=!0;d.J=(0,g.P)();return d.l?g.w(e,d.wp(),3):e.ub(3)}Mw(d);g.sa(e)})})},iia)};
Lw=function(a){a.C&&(Ur(new g.Gv("NetworkStatusManager state did not match poll",(0,g.P)()-a.J)),a.C=!1)};
Ow=function(a){a=void 0===a?{}:a;g.If.call(this);var b=this;this.l=this.C=0;this.i=Kw();var c=g.Ia("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.AO);a.UP&&(c=g.Ia("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ia("yt.networkStatusManager.instance.listen").bind(this.i))a.Ox?(this.Ox=a.Ox,c("ytnetworkstatus-online",function(){Nw(b,"publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){Nw(b,"publicytnetworkstatus-offline")})):
(c("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
Nw=function(a,b){a.Ox?a.l?(g.gu(a.C),a.C=g.cu(function(){a.u!==b&&(a.dispatchEvent(b),a.u=b,a.l=(0,g.P)())},a.Ox-((0,g.P)()-a.l))):(a.dispatchEvent(b),a.u=b,a.l=(0,g.P)()):a.dispatchEvent(b)};
Vw=function(a,b){function c(d){var e=Pw().Vi();if(!Qw()||!d||e&&g.Nr("vss_networkless_bypass_write"))Rw(a,b);else{var f={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0};Ew(f).then(function(h){f.id=h;(Pw().Vi()||g.Nr("networkless_always_online"))&&Sw(f)}).catch(function(h){Sw(f);
Tw(h)})}}
b=void 0===b?{}:b;g.Nr("skip_is_supported_killswitch")?vw().then(function(d){c(d)}):c(Uw())};
Ww=function(a,b){function c(e){if(Qw()&&e){var f={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0};if(Pw().Vi()){var h=b.onError?b.onError:function(){};
b.onError=function(l,m){return g.D(d,function p(){return g.z(p,function(r){if(1==r.i)return g.w(r,Ew(f).catch(function(t){Tw(t)}),2);
h(l,m);g.sa(r)})})};
Rw(a,b)}else Ew(f).catch(function(l){Tw(l)})}else Rw(a,b)}
var d=this;b=void 0===b?{}:b;g.Nr("skip_is_supported_killswitch")?vw().then(function(e){c(e)}):c(Uw())};
Xw=function(a,b){function c(d){if(Qw()&&d){var e={url:a,options:b,timestamp:(0,g.P)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(l,m){void 0!==e.id?Fw(e.id):f=!0;h(l,m)};
Rw(e.url,e.options);Ew(e).then(function(l){e.id=l;f&&Fw(e.id)}).catch(function(l){Tw(l)})}else Rw(a,b)}
b=void 0===b?{}:b;g.Nr("skip_is_supported_killswitch")?vw().then(function(d){c(d)}):c(Uw())};
Zw=function(){var a=this;Yw||(Yw=g.cu(function(){return g.D(a,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,dia(),2);if(3!=e.i)return d=e.l,d?g.w(e,Sw(d),3):(g.gu(Yw),Yw=0,e.return());Yw&&(Yw=0,Zw());g.sa(e)})})},100))};
Sw=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){switch(e.i){case 1:if(void 0===a.id){e.ub(2);break}return g.w(e,eia(a.id),3);case 3:(d=e.l)?a=d:Ur(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.P)()-f)){e.ub(4);break}Ur(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.ub(5);break}return g.w(e,Fw(a.id),5);case 5:return e.return();case 4:f=a=jia(a);var h,l;if(null===(l=null===(h=null===
f||void 0===f?void 0:f.options)||void 0===h?void 0:h.postParams)||void 0===l?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.P)());(a=f)&&Rw(a.url,a.options);g.sa(e)}})})};
jia=function(a){var b=this,c=a.options.onError?a.options.onError:function(){};
a.options.onError=function(e,f){return g.D(b,function l(){return g.z(l,function(m){switch(m.i){case 1:if(!((g.Ia("ytNetworklessLoggingInitializationOptions")?$w.potentialEsfErrorCounter:ax)<=Or("potential_esf_error_limit",10))){m.ub(2);break}return g.w(m,Pw().wp(),3);case 3:if(Pw().Vi())g.Ia("ytNetworklessLoggingInitializationOptions")&&$w.potentialEsfErrorCounter++,ax++;else return c(e,f),m.return();case 2:if(void 0===(null===a||void 0===a?void 0:a.id)){m.ub(4);break}return 1>a.sendCount?g.w(m,fia(a.id),
8):g.w(m,Fw(a.id),4);case 8:g.cu(function(){Pw().Vi()&&Zw()},5E3);
case 4:c(e,f),g.sa(m)}})})};
var d=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(e,f){return g.D(b,function l(){return g.z(l,function(m){if(1==m.i)return void 0===(null===a||void 0===a?void 0:a.id)?m.ub(2):g.w(m,Fw(a.id),2);d(e,f);g.sa(m)})})};
return a};
Pw=function(){bx||(bx=new Ow({UP:!0,AO:!0}));return bx};
Tw=function(a){if(Pw().Vi())g.Sr(a);else if(g.Nr("offline_error_handling")){var b=Iw().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Iw().set("errors",b,2592E3,!0)}};
Rw=function(a,b){if(g.Nr("networkless_with_beacon")){var c=["method","postBody"];if(Object.keys(b).length>c.length)var d=!0;else{d=0;c=g.q(c);for(var e=c.next();!e.done;e=c.next())b.hasOwnProperty(e.value)&&d++;d=Object.keys(b).length!==d}d?g.Ps(a,b):g.Nr("networkless_with_ping_send")&&1===Object.keys(b).length&&b.allowPingSend?g.ou(a):pu(a,void 0,b.postBody)}else g.Nr("networkless_with_ping_send")&&1===Object.keys(b).length&&b.allowPingSend?g.ou(a):g.Ps(a,b)};
Qw=function(){return g.Ia("ytNetworklessLoggingInitializationOptions")?$w.isNwlInitialized:!1};
Uw=function(){return g.Ia("ytNetworklessLoggingInitializationOptions")?$w.isIdbSupported:!1};
g.cx=function(a){this.config_=null;a?this.config_=a:gv()&&(this.config_=g.Nu())};
g.Ou=function(a,b,c,d){function e(m){try{(void 0===m?0:m)&&d.retry&&!d.zI.bypassNetworkless?(f.method="POST",!d.zI.writeThenSend&&g.Nr("nwl_send_fast_on_unload")?Xw(l,f):Vw(l,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Ps(l,f))}catch(n){if("InvalidAccessError"==n.name)Ur(Error("An extension is blocking network request."));else throw n;}}
!g.O("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Ur(new g.Gv("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Gv("innertube xhrclient not ready",b,c,d),g.Sr(a),a;var f={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(m,n){if(d.onSuccess)d.onSuccess(n)},
onFetchSuccess:function(m){if(d.onSuccess)d.onSuccess(m)},
onError:function(m,n){if(d.onError)d.onError(n)},
onFetchError:function(m){if(d.onError)d.onError(m)},
timeout:d.timeout,withCredentials:!0};c="";var h=a.config_.MH;h&&(c=h);h=Dha(a.config_.OH||!1,c,d);Object.assign(f.headers,h);f.headers.Authorization&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;h={alt:"json"};a.config_.NH&&f.headers.Authorization||(h.key=a.config_.innertubeApiKey);var l=bs(""+c+b,h);Qw()?vw().then(function(m){e(m)}):e(!1)};
g.Bv=function(a,b,c){c=void 0===c?{}:c;var d=g.cx;g.O("ytLoggingEventsDefaultDisabled",!1)&&g.cx==g.cx&&(d=null);Tu(a,b,d,c)};
mia=function(){var a=void 0===a?window.location.href:a;if(g.Nr("kevlar_disable_theme_param"))return null;var b=fi(g.hi(5,a));if(kia(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.$r(a).theme;return lia.get(c)||null}catch(d){}return null};
kia=function(a){var b=nia.map(function(c){return c.toLowerCase()});
return!g.Nr("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
ex=function(a,b,c){a&&(a.dataset?a.dataset[dx(b)]=String(c):a.setAttribute("data-"+b,c))};
fx=function(a){return a?a.dataset?a.dataset[dx("loaded")]:a.getAttribute("data-loaded"):null};
dx=function(a){return gx[a]||(gx[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
hx=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()};
kx=function(a){var b;ix()?jx()==a&&(b=document):b=a;return b&&(a=It(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
lx=function(a){return g.gb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
oia=function(){var a=document;return g.gb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
ix=function(){return!!It(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
jx=function(a){a=void 0===a?!1:a;var b=It(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
mx=function(a){g.E.call(this);this.G=[];this.Ga=a||this};
nx=function(a,b,c,d){for(var e=0;e<c.length;e++)a.N(b,c[e],d)};
g.ox=function(a){for(;a.G.length;){var b=a.G.pop();b.target.removeEventListener(b.name,b.callback)}};
g.Q=function(a){a=void 0===a?!1:a;g.E.call(this);this.bd=new g.dr(a);g.F(this,this.bd)};
px=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
qx=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.sx=function(a,b,c,d){g.Q.call(this);this.u=!!b;this.G=a;this.U=c||a;this.K=!!d;this.i=new mx(this);g.F(this,this.i);this.C=this.J=null;this.B=this.l=!1;b&&(g.ig&&a.setAttribute("draggable","true"),a.style.touchAction="none");rx(this)};
tx=function(a,b,c){a.i.N(a.U,b,c,void 0,!a.u)};
rx=function(a){a.C=null;a.J=null;tx(a,ux("over"),a.wI);tx(a,"touchstart",a.GD);a.u&&tx(a,ux("down"),a.gQ)};
vx=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.J)return d}return null};
ux=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
wx=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Vb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Vb(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
pia=function(a){a instanceof wx||(a=new wx(a));return a};
yx=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(xx)for(c=1,d=0;d<xx.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^xx.charCodeAt(d),c++;return b};
zx=function(){for(var a=yx(16),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Ax=function(){return g.Oe(yx(16),function(a){return(a&15).toString(16)}).join("")};
Bx=function(a){this.i=a};
g.Cx=function(a){return new Bx({trackingParams:a})};
ria=function(a){var b=qia++;return new Bx({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
Dx=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Ex=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Fx=function(a){return g.O(Ex(void 0===a?0:a),void 0)};
g.Gx=function(a){return(a=Fx(void 0===a?0:a))?new Bx({veType:a,youtubeData:void 0}):null};
Hx=function(){var a=g.O("csn-to-ctt-auth-info");a||(a={},Kr("csn-to-ctt-auth-info",a));return a};
g.Ix=function(a){a=void 0===a?0:a;var b=g.O(Dx(a));if(!b&&!g.O("USE_CSN_FALLBACK",!0))return null;b||0!=a||(b="UNDEFINED_CSN");return b?b:null};
sia=function(a,b,c){var d=Hx();(c=g.Ix(c))&&delete d[c];b&&(d[a]=b)};
Jx=function(a){return Hx()[a]};
Lx=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.O(Dx(c))||b!==g.O(Ex(c)))sia(a,d,c),Kr(Dx(c),a),Kr(Ex(c),b),b=function(){setTimeout(function(){a&&Tu("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Kx,clientScreenNonce:a},g.cx)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
tia=function(a){a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
uia=function(){this.im=[];this.Bl=[]};
Ox=function(){if(!Mx){var a=Mx=new uia;a.Bl.length=0;a.im.length=0;Nx(a,via)}return Mx};
Nx=function(a,b){b.Bl&&a.Bl.push.apply(a.Bl,b.Bl);b.im&&a.im.push.apply(a.im,b.im)};
wia=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Px(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Px(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Px(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
Px=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
Sx=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Qx(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f="string"!==typeof h||"clickTrackingParams"!==f&&"trackingParams"!==f?0:(h=wia(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?Qx(f+".ve",h,l,m):0;d+=f;d+=Qx(e,a[e],b,c);if(500<d)break}}else c[b]=Rx(a),d+=c[b].length;else c[b]=Rx(a),d+=c[b].length;return d};
Qx=function(a,b,c,d){c+="."+a;a=Rx(b);d[c]=a;return c.length+a.length};
Rx=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Av=function(a){g.Tx(a)};
g.Ux=function(a){g.Tx(a,"WARNING")};
g.Tx=function(a,b){var c=void 0===c?{}:c;c.name=g.O("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=c||{};b=void 0===b?"ERROR":b;b=void 0===b?"ERROR":b;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.Nr("console_log_js_exceptions")){var d=[];d.push("Name: "+a.name);d.push("Message: "+a.message);a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(a.args));
d.push("File name: "+a.fileName);d.push("Stacktrace: "+a.stack);window.console.log(d.join("\n"),a)}if(!(5<=Vx)){d=xia;var e=Uaa(a),f=e.message||"Unknown Error",h=e.name||"UnknownError",l=e.stack||a.l||"Not available";if(l.startsWith(h+": "+f)){var m=l.split("\n");m.shift();l=m.join("\n")}m=e.lineNumber||"Not available";e=e.fileName||"Not available";var n=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var p=0;p<a.args.length&&!(n=Sx(a.args[p],"params."+p,c,n),500<=n);p++);else if(a.hasOwnProperty("params")&&
a.params){var r=a.params;if("object"===typeof a.params)for(p in r){if(r[p]){var t="params."+p,u=Rx(r[p]);c[t]=u;n+=t.length+u.length;if(500<n)break}}else c.params=Rx(r)}if(d.length)for(p=0;p<d.length&&!(n=Sx(d[p],"params.context."+p,c,n),500<=n);p++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:f,name:h,lineNumber:m,fileName:e,stack:l,params:c,sampleWeight:1};p=Number(a.columnNumber);isNaN(p)||(c.lineNumber=c.lineNumber+":"+p);if("IGNORED"===a.level)a=
0;else a:{a=Ox();p=g.q(a.Bl);for(d=p.next();!d.done;d=p.next())if(d=d.value,c.message&&c.message.match(d.Qt)){a=d.weight;break a}a=g.q(a.im);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.callback(c)){a=p.weight;break a}a=1}c.sampleWeight=a;a=g.q(yia);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.Kx[c.name])for(f=g.q(p.Kx[c.name]),d=f.next();!d.done;d=f.next())if(h=d.value,d=c.message.match(h.wg)){c.params["params.error.original"]=d[0];f=h.groups;h={};for(m=0;m<f.length;m++)h[f[m]]=d[m+1],c.params["params.error."+
f[m]]=d[m+1];c.message=p.aC(h);break}c.params||(c.params={});a=Ox();c.params["params.errorServiceSignature"]="msg="+a.Bl.length+"&cb="+a.im.length;c.params["params.serviceWorker"]="false";g.A.document&&g.A.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!Wx.has(c.message)){"ERROR"===b?(Xx.W("handleError",c),g.Nr("record_app_crashed_web")&&
0===Yx&&1===c.sampleWeight&&(Yx++,g.Bv("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"})),zia++):"WARNING"===b&&Xx.W("handleWarning",c);if(g.Nr("kevlar_gel_error_routing")){a=b;b:{p=g.q(Aia);for(d=p.next();!d.done;d=p.next())if(ft(d.value.toLowerCase())){p=!0;break b}p=!1}if(p)p=void 0;else{d={stackTrace:c.stack};c.fileName&&(d.filename=c.fileName);p=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==p.length&&(1!==p.length||isNaN(Number(p[0]))?2!==p.length||isNaN(Number(p[0]))||
isNaN(Number(p[1]))||(d.lineNumber=Number(p[0]),d.columnNumber=Number(p[1])):d.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===a?p.level="ERROR_LEVEL_ERROR":"WARNING"===a&&(p.level="ERROR_LEVEL_WARNNING");d={isObfuscated:!0,browserStackInfo:d};f={pageUrl:window.location.href,kvPairs:[]};g.O("FEXP_EXPERIMENTS")&&(f.experimentIds=g.O("FEXP_EXPERIMENTS"));if(h=c.params)for(m=g.q(Object.keys(h)),e=m.next();!e.done;e=
m.next())e=e.value,f.kvPairs.push({key:"client."+e,value:String(h[e])});h=g.O("SERVER_NAME",void 0);m=g.O("SERVER_VERSION",void 0);h&&m&&(f.kvPairs.push({key:"server.name",value:h}),f.kvPairs.push({key:"server.version",value:m}));p={errorMetadata:f,stackTrace:d,logMessage:p}}p&&(g.Bv("clientError",p),("ERROR"===a||g.Nr("errors_flush_gel_always_killswitch"))&&Fu())}if(!g.Nr("suppress_error_204_logging")){a=c.params||{};b={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),
line:c.lineNumber,level:b,"client.name":a.name},postParams:{url:g.O("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};a.version&&(b["client.version"]=a.version);if(b.postParams){c.stack&&(b.postParams.stack=c.stack);p=g.q(Object.keys(a));for(d=p.next();!d.done;d=p.next())d=d.value,b.postParams["client."+d]=a[d];if(a=g.O("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(p=g.q(Object.keys(a)),d=p.next();!d.done;d=p.next())d=d.value,b.postParams[d]=a[d];a=g.O("SERVER_NAME",void 0);
p=g.O("SERVER_VERSION",void 0);a&&p&&(b.postParams["server.name"]=a,b.postParams["server.version"]=p)}g.Ps(g.O("ECATCHER_REPORT_HOST","")+"/error_204",b)}Wx.add(c.message);Vx++}}}};
Bia=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.ma(c))};
Zx=function(a){iv.call(this,1,arguments);this.csn=a};
g.ay=function(a,b,c,d){var e=d.filter(function(f){f.csn!==b?(f.csn=b,f=!0):f=!1;return f});
c={csn:b,parentVe:c.getAsJson(),childVes:g.Oe(e,function(f){return f.getAsJson()})};
d=g.q(d);for(e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Rb(e)||!e.trackingParams&&!e.veType)&&g.Ux(Error("Child VE logged with no data"));d={Ie:Jx(b),Ml:b};"UNDEFINED_CSN"==b?$x("visualElementAttached",c,d):a?Tu("visualElementAttached",c,a,d):g.Bv("visualElementAttached",c,d)};
g.by=function(a,b,c){var d=g.Nr("use_default_events_client")?void 0:g.cx;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={Ie:Jx(a),Ml:a};"UNDEFINED_CSN"==a?$x("visualElementShown",b,c):d?Tu("visualElementShown",b,d,c):g.Bv("visualElementShown",b,c)};
cy=function(a,b,c,d,e){var f=(d=void 0===d?!1:d)?16:8;c={csn:b,ve:c.getAsJson(),eventType:f};e&&(c.clientData=e);d={Ie:Jx(b),Ml:b,CO:d};"UNDEFINED_CSN"==b?$x("visualElementHidden",c,d):a?Tu("visualElementHidden",c,a,d):g.Bv("visualElementHidden",c,d)};
dy=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);d={Ie:Jx(b),Ml:b};"UNDEFINED_CSN"==b?$x("visualElementGestured",c,d):a?Tu("visualElementGestured",c,a,d):g.Bv("visualElementGestured",c,d)};
Cia=function(){return g.$d(g.Xa(Math.random()+""),3)};
$x=function(a,b,c){ey.push({payloadName:a,payload:b,options:c});fy||(fy=qv(gy,Dia))};
Dia=function(a){if(ey){for(var b=g.q(ey),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Tu(c.payloadName,c.payload,null,c.options));ey.length=0}fy=0};
g.hy=function(a,b,c){g.ay(g.Nr("use_default_events_client")?void 0:g.cx,a,b,[c])};
g.iy=function(a,b){var c=g.Nr("use_default_events_client")?void 0:g.cx;g.Cb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={Ie:Jx(a),Ml:a};"UNDEFINED_CSN"==a?$x("visualElementShown",d,e):c?Tu("visualElementShown",d,c,e):g.Bv("visualElementShown",d,e)})};
g.jy=function(a,b){var c=g.Nr("use_default_events_client")?void 0:g.cx;g.Cb(b,function(d){cy(c,a,d,void 0,void 0)})};
g.Ty=function(a,b,c){dy(g.Nr("use_default_events_client")?void 0:g.cx,a,b,c)};
Uy=function(){this.l=new Set;this.i=new Set;this.u=new Map};
g.Xy=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.Vy)():Wy())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Yy=function(a){var b=Wy(),c=(0,g.Vy)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
Zy=function(){var a=(0,g.Vy)();if(a&&(a=a.l("yt-player-quality")))return a.creation};
g.$y=function(a){try{var b=Wy(),c=(0,g.Vy)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.az=function(){return g.Yy("yt-remote-session-screen-id")};
g.bz=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(Eia,""),c=c.replace(Fia,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Gia(a,b,c)};
Gia=function(a,b,c){c=void 0===c?null:c;var d=cz(a),e=document.getElementById(d),f=e&&fx(e),h=e&&!f;f?b&&b():(b&&(f=g.wu(d,b),b=""+g.Pa(b),dz[b]=f),h||(e=Hia(a,d,function(){fx(e)||(ex(e,"loaded","true"),g.yu(d),g.ms(g.Qa(Au,d),0))},c)))};
Hia=function(a,b,c,d){d=void 0===d?null:d;var e=g.ng("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);g.Bj(e,g.xl(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
cz=function(a){var b=document.createElement("a");g.kd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+sd(a)};
gz=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!ez(a)||c.some(function(e){return!ez(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())fz(a,d.value);return a};
fz=function(a,b){for(var c in b)if(ez(b[c])){if(c in a&&!ez(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});fz(a[c],b[c])}else if(hz(b[c])){if(c in a&&!hz(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);iz(a[c],b[c])}else a[c]=b[c];return a};
iz=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ez(c)?a.push(fz({},c)):hz(c)?a.push(iz([],c)):a.push(c);return a};
ez=function(a){return"object"===typeof a&&!Array.isArray(a)};
hz=function(a){return"object"===typeof a&&Array.isArray(a)};
jz=function(a,b,c,d,e,f){g.E.call(this);this.i=a;this.l=c;this.u=d;this.C=e;this.B=f};
Jia=function(a,b,c){c.yr?(kz(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Iia(a.C,b)):lz(a.B,c.Uk,b.slotId)};
Kia=function(a,b,c,d){var e=mz(a.u.get(),1);kz(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return nz(a.l.get(),c,d,e.clientPlaybackNonce,e.wG,e.daiEnabled,e)},b)};
oz=function(a,b,c){if(c&&c!==a.ob)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Ia.i.has(c.value))return!1;return!0};
pz=function(a,b){this.zn=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
R=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Gv(a);if(a.args)for(var f=g.q(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.ob:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Ux(a)}};
qz=function(a,b,c,d,e,f,h){g.E.call(this);this.u=a;this.l=b;this.gA=c;this.Qa=d;this.B=e;this.i=f;this.Fa=h};
rz=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f};
sz=function(a,b,c,d){this.u=a;this.Fd=null;this.l=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d};
tz=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Ux(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
vz=function(a,b,c){return b&&b.test(a)||uz&&c&&c.test(a)?!0:!1};
xz=function(a){return(a=wz&&wz.exec(a))?a[0]:""};
yz=function(a){var b=void 0===b?!1:b;return tz(vz(a,Lia,Mia),a,b,"Trusted Stream URL")};
g.zz=function(a){var b=void 0===b?!1:b;return tz(vz(a,Nia,Oia),a,b,"Trusted Image URL")};
Qia=function(a){var b=void 0===b?!1:b;return tz(vz(a,Pia,null),a,b,"Trusted Ad Domain URL")};
Az=function(a){var b=void 0===b?!1:b;return tz(vz(a,Ria,null),a,b,"Trusted Promoted Video Domain URL")};
Tia=function(a){var b=void 0===b?!1:b;return tz(vz(a,Sia,null),a,b,"Drm Licensor URL")};
Bz=function(a,b){b=void 0===b?!1:b;return tz(vz(a,Uia,Via),a,b,"Captions URL")};
Cz=function(a){a=new g.bk(a);g.ck(a,document.location.protocol);g.dk(a,document.location.hostname);document.location.port&&g.ek(a,document.location.port);return a.toString()};
Dz=function(a){a=new g.bk(a);g.ck(a,document.location.protocol);return a.toString()};
g.Fz=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.B=Wia++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||Ez.AD_MARKER;this.namespace=a.namespace||"";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return g.ym(d.thumbnails,function(e){return g.zz(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Gz=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Xia=function(a,b){switch(a.style){case Ez.CHAPTER_MARKER:return b?8:5;case Ez.AD_MARKER:return 6;case Ez.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Hz=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.Iz=function(a){return"crn_"+a};
g.Jz=function(a){return"crx_"+a};
Kz=function(a,b,c,d,e){g.Fz.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.l=!1;this.u=null};
Lz=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
Mz=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
Nz=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new $q(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new $q(Math.max(0,b.u-b.i),0x7ffffffffffff):new $q(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.u);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new $q(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Fd;a=1E3*d.startSecs;if(c){if(a<b.l)return new $q(a-4E3,a);c=Math.max(0,a-b.l-1E4);return new $q(b.B?b.l:Math.floor(b.l+Math.random()*c),a)}return new $q(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
Oz=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.Pz=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.Qz=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=mg("B",null,h||l));d.italics&&(h=mg("I",null,h||l));d.strikethrough&&(h=mg("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=mg("A",null,h||l),g.kd(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||mg("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:mg("SPAN",null,b)};
Rz=function(a,b){iv.call(this,1,arguments)};
Sz=function(a,b){iv.call(this,1,arguments);this.i=a};
Yia=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Uz=function(a){var b=Tz(a);if(b.aft)return b.aft;a=g.O((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return NaN};
Xz=function(){var a;if(g.Nr("csi_use_performance_navigation_timing")){var b,c,d,e=null===(d=null===(c=null===(b=null===(a=null===Vz||void 0===Vz?void 0:Vz.getEntriesByType)||void 0===a?void 0:a.call(Vz,"navigation"))||void 0===b?void 0:b[0])||void 0===c?void 0:c.toJSON)||void 0===d?void 0:d.call(c);e?(e.requestStart=Wz(e.requestStart),e.responseEnd=Wz(e.responseEnd),e.redirectStart=Wz(e.redirectStart),e.redirectEnd=Wz(e.redirectEnd),e.domainLookupEnd=Wz(e.domainLookupEnd),e.connectStart=Wz(e.connectStart),
e.connectEnd=Wz(e.connectEnd),e.responseStart=Wz(e.responseStart),e.secureConnectionStart=Wz(e.secureConnectionStart),e.domainLookupStart=Wz(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Vz.timing}else a=Vz.timing;return a};
Yz=function(){return g.Nr("csi_use_time_origin")&&Vz.timeOrigin?Math.floor(Vz.timeOrigin):Vz.timing.navigationStart};
Wz=function(a){return Math.round(Yz()+a)};
Zz=function(a,b){g.Ha("ytglobal.timing"+(b||"")+"ready_",a,void 0)};
$z=function(a){return!!g.Ia("yt.timing."+(a||"")+"pingSent_")};
aA=function(a,b){g.Ha("yt.timing."+(b||"")+"pingSent_",a,void 0)};
cA=function(a){return g.Ia("ytcsi."+(a||"")+"data_")||bA(a)};
dA=function(a){a=cA(a);a.info||(a.info={});return a.info};
Tz=function(a){a=cA(a);a.tick||(a.tick={});return a.tick};
eA=function(a){var b=cA(a).nonce;b||(b=zx(),cA(a).nonce=b);return b};
bA=function(a){var b={tick:{},info:{}};g.Ha("ytcsi."+(a||"")+"data_",b,void 0);return b};
gA=function(a){var b=Tz(a||""),c=Uz(a);c&&!fA&&(lv(Zia,new Rz(Math.round(c-b._start),a)),fA=!0)};
$ia=function(){if(Vz.getEntriesByType){var a=Vz.getEntriesByType("paint");if(a=g.gb(a,function(b){return"first-paint"===b.name}))return Wz(a.startTime)}a=Vz.timing;
return a.lQ?Math.max(0,a.lQ):0};
hA=function(){var a=g.Ia("ytcsi.debug");a||(a=[],g.Ha("ytcsi.debug",a,void 0),g.Ha("ytcsi.reference",{},void 0));return a};
jA=function(a){a=a||"";var b=iA();if(b[a])return b[a];var c=hA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
kA=function(a){a=a||"";var b=iA();b[a]&&delete b[a];var c=hA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d};
iA=function(){var a=g.Ia("ytcsi.reference");if(a)return a;hA();return g.Ia("ytcsi.reference")};
lA=function(){this.i=0};
mA=function(){lA.i||(lA.i=new lA);return lA.i};
oA=function(a,b){nA[b]=nA[b]||{count:0};var c=nA[b];c.count++;c.time=(0,g.P)();a.i||(a.i=bu(0,function(){var d=(0,g.P)(),e;for(e in nA)nA[e]&&6E4<d-nA[e].time&&delete nA[e];a&&(a.i=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.Gv("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Ux(c)),!0):!1};
pA=function(a){return!!g.O("FORCE_CSI_ON_GEL",!1)||g.Nr("csi_on_gel")||g.Nr("enable_csi_on_gel")||!!cA(a).useGel};
rA=function(a,b,c){var d=qA(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.P)();return pA(c)?(jA(c||"").tick[a]=b||(0,g.P)(),d=eA(c),"_start"===a?(a=mA(),oA(a,"baseline_"+d)||g.Bv("latencyActionBaselined",{clientActionNonce:d},{timestamp:b})):mA().tick(a,d,b),gA(c),!0):!1};
uA=function(a,b,c){c=qA(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in sA){c=sA[a];g.kb(aja,c)&&(b=!!b);a in tA&&"string"===typeof b&&(b=tA[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return gz({},d)}g.kb(bja,a)||g.Ux(new g.Gv("Unknown label logged with GEL CSI",a))};
qA=function(a){a=cA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
vA=function(a){a=qA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
xA=function(a){if(pA(a)){var b={actionType:wA[g.O((a||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:wA[g.O("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},c=g.Ix();c&&(b.clientScreenNonce=c);a=eA(a);mA().info(b,a)}};
yA=function(a){bA(a);cja();aA(!1,a);a||(g.O("TIMING_ACTION")&&Kr("PREVIOUS_ACTION",g.O("TIMING_ACTION")),Kr("TIMING_ACTION",""))};
CA=function(a,b,c,d){d=d?d:a;zA("c",d);kA(d);yA(d);cA(d).useGel=!0;jA(d||"").info.actionType=a;Kr(d+"TIMING_AFT_KEYS",b);Kr(d+"TIMING_ACTION",a);AA("c",c,d);xA(d);Zz(!0,d);BA(d)};
AA=function(a,b,c){g.DA("yt_sts",a,c);EA("_start",b,c)};
g.DA=function(a,b,c){null!==b&&(dA(c)[a]=b,pA(c)?(a=uA(a,b,c))&&FA(a,c):jA(c||"").info[a]=b)};
FA=function(a,b){if(pA(b)){var c=jA(b||"");gz(c.info,a);gz(vA(b),a);b=eA(b);mA().info(a,b)}};
EA=function(a,b,c){var d=Tz(c);if(!b&&"_"!==a[0]){var e=a;Vz.mark&&(nc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),Vz.mark(e))}e=b||(0,g.P)();d[a]=e;rA(a,b,c)||(BA(c),jA(c||"").tick[a]=b||(0,g.P)());return d[a]};
GA=function(a,b){if(pA(void 0)){var c=qA(void 0);if(c.gelSpans)c.gelSpans[a]=!0;else{var d={};c.gelSpans=(d[a]=!0,d)}a={spanName:a,spanLengthUsec:String(Math.round(1E3*b))};jA("").span[String(a.spanName)]=a;b=qA(void 0);b.gelSpans||(b.gelSpans={});gz(b.gelSpans,a);b=eA(void 0);mA().span(a,b)}};
HA=function(a){var b="above_the_fold";Vz&&Vz.measure&&(nc(b,"measure_")||(b="measure_"+b),a?Vz.measure(b,a):Vz.measure(b))};
IA=function(a,b){b=Tz(b);return a in b};
JA=function(a,b){IA("_start",b)&&!IA(a,b)&&EA(a,void 0,b)};
BA=function(a){if(!$z(a)){var b=g.O((a||"")+"TIMING_ACTION",void 0),c=Tz(a);if(g.Ia("ytglobal.timing"+(a||"")+"ready_")&&b&&IA("_start")&&Uz(a))if(gA(a),a)KA(a);else{b=!0;var d=g.O("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&KA(a)}}};
LA=function(){switch(Ht()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
KA=function(a){if(!pA(a)){var b=Tz(a),c=dA(a),d=b._start,e=g.O("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.O((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=Uz(a);var l=Tz(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&dA(a).yt_pvis&&"youtube"===e&&(g.DA("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.P)();p={};e=[];for(var r in b)"_"!==r.charAt(0)&&(m=Math.round(b[r]-d),p[r]=m,e.push(r+
"."+m));f.rt=e.join(",");b=!!c.ap;c="";for(var t in f)f.hasOwnProperty(t)&&(c+="&"+t+"="+f[t]);f="/csi_204?"+c.substring(1);window.navigator&&window.navigator.sendBeacon&&(b||g.Nr("always_send_csi_204_with_beacon"))?pu(f):g.ou(f);aA(!0,a);lv(MA,new Sz(p.aft+(Number(h)||0),a))}};
zA=function(a,b){if(pA(b))IA("_start",b)&&EA("aa",void 0,b);else if(!$z(b)){var c=g.O("CSI_SERVICE_NAME","youtube");g.O((b||"")+"TIMING_ACTION",void 0)&&c&&(EA("aa",void 0,b),g.DA("ap",1,b),g.DA("yt_fss",a,b),KA(b))}};
dja=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);nd()&&a.setAttribute("nonce",nd());return c?(a=Vz.getEntriesByName(c))&&a[0]&&(a=a[0],c=Yz(),EA("rsf_"+b,c+Math.round(a.fetchStart)),EA("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&(b=dA(void 0),c=vA(void 0),"rc"in b||"rc"in c||g.DA("rc",""),0===a.transferSize))?!0:!1:!1};
eja=function(){var a=window.location.protocol,b=Vz.getEntriesByType("resource");b=g.Po(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=zm(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(EA("wffs",Wz(b.startTime)),EA("wffe",Wz(b.responseEnd)))};
NA=function(){if(g.tw)return!1;if(g.it()){var a=et();if(16<=a&&17>a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)};
OA=function(a){if(a.Ws())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
PA=function(a,b){this.id=a;this.Jc=b;this.captionTracks=[];this.i=this.u=this.B=null;this.l="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
QA=function(a,b,c,d){this.u=c;this.reason=d;this.l=a||0;this.i=b||0};
RA=function(a,b){return a.l===b.l&&a.i===b.i&&a.u===b.u&&a.reason===b.reason};
TA=function(a,b,c,d){return new QA(g.SA[a]||0,g.SA[b]||0,c,d)};
UA=function(a){var b=g.SA.auto;return a.l===b&&a.i===b};
WA=function(a){return VA[a.i||a.l]||"auto"};
XA=function(a,b){b=g.SA[b];return a.l<=b&&(!a.i||a.i>=b)};
YA=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.i=b||null;this.l=c||null;if(this.i)for(a=new Set,b=g.q(this.i),c=b.next();!c.done;c=b.next())if(c=c.value,c.Jc&&!a.has(c.Jc.id)){var d=new PA(c.id,c.Jc);a.add(c.Jc.id);this.audioTracks.push(d)}};
bB=function(a,b,c,d){var e=[],f=new Set,h=a.X||a.Ya,l={};if(ZA(c)){for(var m in c.i)c.i.hasOwnProperty(m)&&(d=c.i[m],l[d.info.i]=[d.info]);return l}for(var n in c.i)if(c.i.hasOwnProperty(n)){m=c.i[n];var p=m.info.kc();if(""===m.info.i)e.push(p),e.push("unkn");else if("304"!==p&&"266"!==p||!a.Pa)if(a.C&&m.info.video&&m.info.video.i>a.C)e.push(p),e.push("max"+a.C);else if(a.G&&m.info.video&&m.info.video.i<a.G)e.push(p),e.push("min"+a.G);else if(a.Va&&"h"===m.info.i&&m.info.video&&1080<m.info.video.i)e.push(p),
e.push("blkhigh264");else if(a.Ua&&m.info.video&&4320<=m.info.video.i&&32<m.info.video.fps)e.push(p),e.push("blk8khfr");else{var r=b.i.get(m.info.i);r=r&&0<r.XC;h&&r?(f.add(m.info.i),e.push(p),e.push("byerr")):(r=$A(b,m.info),!0!==r?(e.push(p),e.push(r)):"(h"!==m.info.i||b.B?(r="MAC3"===m.info.i||"MEAC3"===m.info.i||"M"===m.info.i,c.isLive&&r&&!a.Ea?(e.push(p),e.push("blk51live")):(l[m.info.i]=l[m.info.i]||[],l[m.info.i].push(m.info))):(e.push(p),e.push("enchdr")))}else e.push(p),e.push("blk2khfr")}a.i&&
(d(e.join(".")),c="bfflt."+aB(l),d(c));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=fja(a,l[c]),l[c]=gja(b,l[c])));if(h)for(f=g.q(f.values()),h=f.next();!h.done;h=f.next())(h=b.i.get(h.value))&&--h.XC;b=g.Fb(l,function(u){return!!u.length});
a.i&&(l="aftflt."+aB(l),d(l));return b};
cB=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
aB=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(cB(d));d=g.q(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.kc())}return b.join(".")};
hja=function(a,b,c){var d={};g.Eb(b,function(e,f){e=e.filter(function(h){if(!h.Jd)return!1;if("("===h.i||"(h"===h.i){if(a.l&&c&&"widevine"===c.flavor){var l=h.mimeType+"; experimental=allowed";return!!h.Jd[c.flavor]&&!!c.i[l]}if(!dB(a,eB.CRYPTOBLOCKFORMAT)&&!a.X||a.U)return!1}return c&&h.Jd[c.flavor]&&c.i[h.mimeType]?!0:!1});
e.length&&(d[f]=e)});
return d};
jja=function(a,b,c,d,e,f){function h(G){return!!l[G]}
f=void 0===f?!1:f;var l=bB(a,b,c,e);fB(c)&&(l=hja(b,l,d),a.i&&(b="enflt."+aB(l),e(b)));if(ZA(c))return e=g.gb(Object.values(l),function(G){return!!G.length&&!!G[0].audio}),a=g.gb(Object.values(l),function(G){return!!G.length&&!!G[0].video}),e&&a||Ws(),Xs(new YA(a,e));
b=gB(a);b=g.gb(b,h);if(!b)return a.i&&e("noaudio"),Ws();d=l[b];l["9"]&&l.h&&c.Sh&&!a.Da&&(a.i&&e("dltvp9"),delete l["9"]);var m=l["1h"]?"1h":"1",n=l["9h"]?"9h":"9",p=l[m],r=l[n];p&&p.length&&(a.l.highestAv1Resolution=p[p.length-1].fb().i);r&&r.length&&(a.l.highestVp9Resolution=r[r.length-1].fb().i);var t=[],u=[];if(a.ma&&!a.u)for(u=ija(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],a.i&&e("newhybpref."+u.join(".")),c=g.q(u),f=c.next();!f.done;f=c.next())t=t.concat(l[f.value]).filter(function(G){return G});
else if(0<a.J&&r&&p){if(!f){var x=Math.min(a.J,hB(p)),y=hB(r),B=function(G){return G<=x||G>y};
a.i&&e("lth."+x+".uth."+y);p=p.filter(function(G){return B(G.fb().i)});
r=r.filter(function(G){return!B(G.fb().i)})}u=[m,
n];t=p.concat(r).filter(function(G){return G})}if(t.length&&!a.u){iB(t,d,u);
if(a.i){a=[];m=g.q(t);for(n=m.next();!n.done;n=m.next())a.push(n.value.kc());e("hbdfmt."+a.join("."))}return Xs(new YA(t,d,jB(l,"",b)))}t=kB(a);t=g.gb(t,h);if(!t){if(l[m]&&a.eb)return e=l[m],iB(e,d),Xs(new YA(e,d,jB(l,m,b)));a.i&&e("novideo");return Ws()}a.wb&&("1"===t||"1h"===t)&&l[n]&&(m=hB(l[t]),hB(l[n])>m&&(t=n));"9"===t&&l.h&&(m=hB(l["9"]),hB(l.h)>1.5*m&&(t="h"));a.i&&e("vfmly."+cB(t));m=l[t];if(!m.length)return a.i&&e("novfmly."+cB(t)),Ws();iB(m,d);return Xs(new YA(m,d,jB(l,t,b)))};
jB=function(a,b,c){var d=a.h;"f"===b&&(d=a[b]);var e=a.a;b=a[b]!==d;a=a[c]!==e;return d&&e&&(b||a)?(iB(d,e),new YA(d,e)):null};
iB=function(a,b,c){c=void 0===c?[]:c;g.zb(a,function(d,e){var f=e.fb().height*e.fb().width-d.fb().height*d.fb().width;if(!f&&c&&0<c.length){f=c.indexOf(d.i)+1;var h=c.indexOf(e.i)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.Ib-d.Ib);return f});
g.zb(b,function(d,e){return e.Ib-d.Ib})};
gja=function(a,b){var c=zm(b,function(d,e){return 32<e.fb().fps?Math.min(d,e.fb().width):d},Infinity);
Infinity>c&&(b=a.J&&(a.Y||dB(a,eB.FRAMERATE))?g.Po(b,function(d){return 32<d.fb().fps||d.fb().width<c}):g.Po(b,function(d){return!(32<d.fb().fps)}));
kt()&&(b=g.Po(b,function(d){return"299"!==d.kc()}));
return b};
fja=function(a,b){return b=g.Po(b,function(c){return c.fb().i<=a.bb})};
hB=function(a){return zm(a,function(b,c){return Math.max(b,c.fb().i)},0)};
lB=function(a){a=void 0===a?{}:a;var b=void 0===a.Wj?!1:a.Wj,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.sD?!1:a.sD;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&NA()?3:2:c&&d?-1:1};
mB=function(a){return lB({hasSubfragmentedFmp4:a.B.Jf,Wj:a.B.Jf,defraggedFromSubfragments:a.al,isManifestless:!0,sD:a.Ea})};
oB=function(a){a=a.split("");nB.UE(a,19);nB.Cz(a,15);nB.mx(a,3);nB.Cz(a,17);return a.join("")};
g.pB=function(a,b){this.l=a;this.C=void 0===b?!1:b;this.B=this.path=this.u="";this.i={};this.url=""};
qB=function(a){a.url||(a.url=kja(a));return a.url};
sB=function(a){rB(a);return a.B};
tB=function(a){return a.l?nc(a.l,"local"):"local"===a.u};
uB=function(a){rB(a);return g.Hb(a.i,function(b){return null!==b})};
vB=function(a){rB(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=qB(a);b=new g.bk(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.i.replace(/^[^.]*/,""),g.dk(b,"r"+d+"---"+a[1]+c),b=new g.pB(b.toString()),b.set("fallback_count","1"),b;d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.dk(b,"redirector.googlevideo.com"),c=b.toString()):b.i.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.dk(b,"www.youtube.com"),c=b.toString()):c=Cz(c);b=new g.pB(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
rB=function(a){if(a.l){if(!yz(a.l)&&!a.l.startsWith("local"))throw Error("Untrusted URL: "+a.l);var b=g.qk(a.l);a.u=b.B;a.B=b.i+(null!=b.u?":"+b.u:"");var c=b.getPath();if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.i;a.i=wB(c);
g.Ra(a.i,xB(b.l.toString()));g.Ra(a.i,d);"index.m3u8"===a.i.file&&(delete a.i.file,a.path+="/file/index.m3u8");a.l="";a.url="";a.C&&(b=a.get("n"))&&(b=cha(b),a.set("n",b))}};
kja=function(a){rB(a);var b=a.u+(a.u?"://":"//")+a.B+a.path;if(uB(a)){var c=[];g.Eb(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
wB=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&yB(c,a[b],a[b+1]);return c};
xB=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?yB(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
yB=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
zB=function(a,b,c,d,e,f,h,l,m,n){this.Ka=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.i=void 0===m?null:m;this.Fd=n;this.endTime=b+c;this.l=h||0;this.range=f||null;this.pending=l||!1;this.Fd=n||null};
AB=function(){this.segments=[]};
BB=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=fb(a.segments,function(d){return d.Ka>=b},a);
0<c&&a.segments.splice(0,c)}};
CB=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
DB=function(a){return String.fromCharCode.apply(null,a)};
EB=function(a){return window.TextDecoder?(new TextDecoder).decode(a):DB(a)};
FB=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.Yb=(this.NG=e)?0:8;this.dataOffset=this.offset+this.Yb};
lja=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
GB=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
IB=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.i=HB(this,"Sequence-Number");this.G=HB(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=HB(this,"Ingestion-Walltime-Us")/1E6;this.l=(HB(this,"First-Frame-Time-Us")+HB(this,"First-Frame-Uncertainty-Us"))/1E6;this.zi=HB(this,"Target-Duration-Us")/1E6;this.B="T"===this.data["Stream-Finished"];this.C="T"===this.data.Streamable;this.cryptoPeriodIndex=HB(this,"Crypto-Period-Index");
this.u=HB(this,"Crypto-Period-Seconds")};
JB=function(a){var b;a.data["Cuepoint-Type"]?b=new rz(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",mja[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
KB=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
HB=function(a,b){return Number(a.data[b])||0};
nja=function(a,b){this.i=a;this.duration=b};
LB=function(a,b,c,d,e){this.l=e;this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
MB=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
OB=function(a,b){var c=g.NB(a,0,1952868452);a=g.NB(a,0,1953658222);if(c&&a){c.skip(1);var d=c.vg()<<16|c.rk();c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.Yb;var e=c.Fc();c.setUint32(d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=a.vg()<<16|a.rk();if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=a.Fc();d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.Yb,h=a.Fc(),a.setUint32(f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
QB=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.NB(a,0,1836476516))?g.PB(a):NaN};
oja=function(a){var b=g.NB(a,0,1937011556);if(!b)return null;b=RB(a,b.dataOffset+8,1635148593);if(!b)return null;var c=RB(a,b.dataOffset+78,1936995172),d=RB(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),c.vg()){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=RB(a,d.dataOffset,1886547818)){var h=RB(a,d.dataOffset,1886546020),l=RB(a,d.dataOffset,2037673328);if(!l&&(l=RB(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),
c=h.Ne()/65536,f=h.Ne()/65536,e=h.Ne()/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new LB(b,c,f,e,a)}return null};
RB=function(a,b,c){for(;SB(a,b);){var d=TB(a,b);if(d.type===c)return d;b+=d.size}return null};
g.NB=function(a,b,c){for(;SB(a,b);){var d=TB(a,b);if(d.type===c)return d;b=UB(d.type)?b+8:b+d.size}return null};
g.VB=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;return 4294967296*b.getUint32(a)+b.getUint32(a+4)}return a.data.getUint32(a.dataOffset+4)};
TB=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new FB(a,b,c,d)};
g.PB=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
WB=function(a){a=new FB(a.data,a.offset,a.size,a.type,a.NG);var b=a.vg();a.skip(7);var c=a.Fc();if(0===b){b=a.Fc();var d=a.Fc()}else b=a.dr(),d=a.dr();a.skip(2);for(var e=a.rk(),f=[],h=[],l=0;l<e;l++){var m=a.Fc();f.push(m);h.push(a.Fc());a.skip(4)}return{yD:c,yO:b,JO:d,ST:f,tD:h}};
SB=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593===c||1635148611===c||1937126244===c||1936995172===c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
UB=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
XB=function(a){a.skip(4);return{iU:a.Oe(0),value:a.Oe(0),yD:a.Fc(),Y7:a.Fc(),H7:a.Fc(),id:a.Fc(),rI:a.Oe(),offset:a.offset}};
YB=function(a,b){for(var c=RB(a,0,b);c;)c.markAsSkip(),c=RB(a,c.offset+c.size,b)};
g.ZB=function(a,b){for(var c=0,d=[];SB(a,c);){var e=TB(a,c);e.type===b&&d.push(e);c=UB(e.type)?c+8:c+e.size}return d};
pja=function(a,b){var c=g.NB(a,0,1937011556),d=g.NB(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.NB(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new lja(a.byteLength+b);GB(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;GB(d,a,c.offset+16,c.size-16);GB(d,e,e.byteOffset+f.dataOffset+8,b);GB(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.q([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.NB(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if($B)return d.data;a=g.NB(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
aC=function(a,b){this.l=a;this.i=0;this.start=b||0};
bC=function(a){return a.i>=a.l.byteLength};
hC=function(a,b,c){var d=new aC(c);if(!cC(d,a))return!1;d=dC(d);if(!eC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=fC(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?gC(d-9,8):gC(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
qja=function(a){var b=new aC(a);iC(b);if(cC(b,[408125543,374648427,174,224]))b=dC(b);else return null;for(var c=a=null;!bC(b);){var d=fC(b,!1);if(21432===d)switch(jC(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=dC(b):kC(b)}if(!c)return null;for(var e,f=d=b=null;!bC(c);)switch(fC(c,!1)){case 30321:if(3!==jC(c))return null;break;case 30324:b=lC(c);break;case 30323:f=lC(c);break;case 30325:d=lC(c);break;case 30322:e=fC(c,!0);e=mC(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:kC(c)}return e?new LB(a,b,f,d,e):null};
dC=function(a){var b=fC(a,!0),c=a.l.byteOffset+a.i;c=new DataView(a.l.buffer,c,Math.min(b,a.l.buffer.byteLength-c));c=new aC(c,a.start+a.i);a.i+=b;return c};
jC=function(a){for(var b=fC(a,!0),c=nC(a),d=1;d<b;d++)c=256*c+nC(a);return c};
lC=function(a){var b=fC(a,!0),c=0;4===b?c=a.l.getFloat32(a.i):8===b&&(c=a.l.getFloat64(a.i));a.i+=b;return c};
nC=function(a){return a.l.getUint8(a.i++)};
fC=function(a,b){var c=nC(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+nC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+nC(a),d*=128;return b?c-d:c};
kC=function(a){var b=fC(a,!0);a.i+=b};
iC=function(a){var b=a.i;a.i=0;var c=!1;try{eC(a,440786851)&&(a.i=0,eC(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.Ux(d);else throw d;}a.i=b;return c};
rja=function(a){if(!eC(a,440786851,!0))return null;var b=a.i;fC(a,!1);var c=fC(a,!0)+a.i-b;a.i=b+c;if(!eC(a,408125543,!1))return null;fC(a,!0);if(!eC(a,357149030,!0))return null;var d=a.i;fC(a,!1);var e=fC(a,!0)+a.i-d;a.i=d+e;if(!eC(a,374648427,!0))return null;var f=a.i;fC(a,!1);var h=fC(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.l.buffer,a.l.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.l.buffer,
a.l.byteOffset+d,e),c+12);l.set(new Uint8Array(a.l.buffer,a.l.byteOffset+f,h),c+12+e);return l};
oC=function(a){var b=a.i;a.i=0;var c=1E6;cC(a,[408125543,357149030,2807729])&&(c=jC(a));a.i=b;return c};
sja=function(a,b){var c=a.i;a.i=0;if(160!==a.l.getUint8(a.i)&&!pC(a)||!eC(a,160))return a.i=c,NaN;fC(a,!0);var d=a.i;if(!eC(a,161))return a.i=c,NaN;fC(a,!0);nC(a);var e=nC(a)<<8|nC(a);a.i=d;if(!eC(a,155))return a.i=c,NaN;d=jC(a);a.i=c;return(e+d)*b/1E9};
pC=function(a){if(!qC(a)||!eC(a,524531317))return!1;fC(a,!0);return!0};
qC=function(a){if(iC(a)){if(!eC(a,408125543))return!1;fC(a,!0)}return!0};
cC=function(a,b){for(var c=0;c<b.length;c++){if(!eC(a,b[c]))return!1;c!==b.length-1&&fC(a,!0)}return!0};
eC=function(a,b,c){c=void 0===c?!1:c;if(bC(a))return!1;for(var d=a.i;fC(a,!1)!==b;)if(kC(a),d=a.i,bC(a))return!1;c&&(a.i=d);return!0};
gC=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
mC=function(a,b){var c=new Uint8Array(a.l.buffer,a.l.byteOffset+a.i,b);a.i+=b;return c};
rC=function(a){this.ih=a;this.i={};this.url=""};
sC=function(a,b){var c=b.indexOf("?");if(0<c){var d=xB(b.substr(c+1));g.Eb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=wB(b);g.Eb(b,function(e,f){this.set(f,e)},a)};
g.tC=function(a){a.url||(a.url=tja(a));return a.url};
tja=function(a){var b=qB(a.ih),c=[];g.Eb(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=uB(a.ih)?"&":"?";return b+a+d};
uC=function(a,b){var c=new g.pB(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Eb(a.i,function(d,e){c.set(e,null)});
return c};
uja=function(){this.l=this.i=this.timedOut=this.started=this.u=0};
vja=function(a){a.u=(0,g.P)();a.started+=1};
vC=function(a,b,c){var d=a.started+4*a.i;c&&(d+=a.l);return Math.pow(b.rh,d)};
wC=function(a,b){a[b]||(a[b]=new uja);return a[b]};
xC=function(a){this.u=null;this.C=this.l=0;this.i=a;this.B=a.clone()};
zC=function(a,b){var c=wC(b,sB(a.i));if(1<=c.timedOut||1<=c.i)if(a=yC(a),b=wC(b,sB(a)),b.timedOut+b.i<=c.timedOut+c.i)return!0;return!1};
wja=function(a,b){a=b?yC(a):a.i;return new rC(a)};
yC=function(a){a.u||(a.u=vB(a.B));return a.u};
AC=function(a,b){return a.l>b.lf?a.C+1E3*Math.pow(b.rh,a.l-b.lf)<(0,g.P)():!0};
BC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.B=!1;this.C=null;this.K=0;this.G=this.u=null;this.info=b;this.l=new xC(a)};
CC=function(a){var b=g.q(a.info.id.split(";")),c=b.next().value;b=b.next().value;return c+";"+a.info.lastModified+";"+(void 0===b?"":b)};
DC=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
EC=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new DC(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
FC=function(a,b){return new DC(a,a+b-1)};
GC=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
JC=function(a,b,c,d,e,f,h,l,m,n,p){this.type=a;this.i=b;this.range=c;this.K=[];this.G="";this.Ka=-1;this.G=void 0===d?"":d;this.Ka=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.zb=l||0;this.l=0<=m?m:this.range?this.range.length:NaN;this.u=!!n;a=this.range?this.zb+this.l===this.range.length:void 0===p?!!this.l:p;this.Nd=a;this.range?(this.C=this.startTime+this.duration*this.zb/this.range.length,this.J=this.duration*this.l/this.range.length,this.B=this.C+this.J):HC(this);3!==this.type||0<=this.Ka||
!this.i.Gg()||g.Ux(new g.Gv("b168859904",IC(this)))};
HC=function(a){a.C=a.startTime;a.J=a.duration;a.B=a.C+a.J};
xja=function(a,b,c){var d=!(!b||b.i!==a.i||b.type!==a.type||b.Ka!==a.Ka);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.zb+b.l===a.zb+a.l:d};
KC=function(a){return 1===a.type||2===a.type};
LC=function(a){return 3===a.type||6===a.type};
MC=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.zb+a.l===b.range.start+b.zb:a.Ka===b.Ka?a.zb+a.l===b.zb:a.Ka+1===b.Ka&&0===b.zb&&a.Nd:!1};
NC=function(a,b){return MC(a,b)||Pf(a.B,b.C)||a.Ka+1===b.Ka&&0===b.zb&&a.Nd?!0:!1};
yja=function(a){1===a.length||g.ym(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new DC(a[0].range.start+a[0].zb,b.range.start+b.zb+b.l-1)};
IC=function(a){a=OC(a);var b="";g.Eb(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
OC=function(a){var b={};b.itag=a.i.info.kc();b.type=""+a.type;b.seg=String(a.Ka);a.range&&(b.range=""+(a.range.start+a.zb)+"-"+(a.range.start+a.zb+a.l-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.J).toFixed(1);b.off=String(a.zb);b.len=String(a.l);a.Nd&&(b.end="1");a.u&&(b.eos="1");return b};
PC=function(a,b){return a.i!==b.i?!1:4===a.type&&3===b.type&&a.i.Be()?(a=a.i.Bu(a),sn(a,function(c){return PC(c,b)})):a.Ka===b.Ka&&!!b.l&&b.zb+b.l>a.zb&&b.zb+b.l<=a.zb+a.l};
QC=function(a,b){var c=b.i;a.G="updateWithEmsg";a.Ka=c;b.B&&(a.u=b.B)};
RC=function(a,b){var c=b.Ka;a.G="updateWithSegmentInfo";a.Ka=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,HC(a)};
SC=function(a,b){this.i=a;this.u=null;this.C=this.ye=NaN;this.G=this.requestId=null;this.l=a[0].i.l;this.B=b||"";this.range=this.i[0].range&&0<this.i[0].l?yja(this.i):null};
TC=function(a){return!KC(a.i[a.i.length-1])};
UC=function(a){return 4===a.i[a.i.length-1].type};
g.VC=function(a,b,c){if(a.u){var d=new rC(a.u);b.Dn||d.get("alr")||d.set("alr","yes");a.B&&sC(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new rC(new g.pB(a.B)):(b=null===a.G?zC(a.l,c):a.G,d=wja(a.l,b),a.B&&sC(d,a.B));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.ye)||d.set("headm",a.ye.toString());isNaN(a.C)||d.set("mffa",a.C+"ms");a.urlParams&&g.Eb(a.urlParams,function(e,f){d.set(f,e)});
return d};
WC=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.J*a.i.info.Ib)};
XC=function(a,b){var c=a.i[0];if(a.range)var d=FC(a.range.start,Math.min(4096,a.range.length));else{if(a.B&&0<=a.B.indexOf("/range/")||"1"===a.l.B.get("defrag")||"1"===a.l.B.get("otf"))return null;d=FC(0,4096)}d=new JC(5,c.i,d,"createProbeRequestInfo"+c.G,c.Ka);a=new SC([d],a.B);a.G=b;return a};
YC=function(a,b,c,d,e,f){f=void 0===f?0:f;BC.call(this,a,b,d,void 0);this.U=c;this.zi=f;this.J=!0;this.index=e||new AB;this.Pr()&&(this.B=!0)};
zja=function(a,b,c,d,e){this.Ka=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.l=e||NaN};
ZC=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""};
$C=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
aD=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
bD=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
cD=function(){this.i=[];this.l=null;this.G=0;this.u=[];this.C=!1;this.J="";this.B=-1};
Aja=function(a){var b=a.u;a.u=[];return b};
Bja=function(){this.B=[];this.i=null;this.l={};this.u={}};
Fja=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,h=null;"Period"===f.nodeName?h=Cja(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=Dja(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=Eja(a,f));if(null==h)return;h.update(e,c);sb(d,Aja(h))}sb(a.B,d);naa(a.B,function(l){return 1E3*l.startSecs+l.i})};
Gja=function(a){a.i&&(a.i.i=[]);g.Eb(a.l,function(b){b.i=[]});
g.Eb(a.u,function(b){b.i=[]})};
Cja=function(a){a.i||(a.i=new cD);return a.i};
Dja=function(a,b){a.l[b]||(a.l[b]=new cD);return a.l[b]};
Eja=function(a,b){a.u[b]||(a.u[b]=new cD);return a.u[b]};
dD=function(a){var b=void 0===a?{}:a;a=void 0===b.zi?0:b.zi;var c=void 0===b.Mj?!1:b.Mj,d=void 0===b.dl?0:b.dl,e=void 0===b.Vd?0:b.Vd,f=void 0===b.gg?Infinity:b.gg,h=void 0===b.Ot?0:b.Ot;b=void 0===b.Le?!1:b.Le;this.segments=[];this.i=this.Qr=-1;this.l=null;this.Ag=a;this.dl=d;this.Mj=c;this.Vd=e;this.gg=f;this.Ot=h;this.Le=b};
fD=function(a,b,c){b=eD(a,b);return 0<=b&&(c||!a.segments[b].pending)};
eD=function(a,b){return yb(a.segments,function(c){return b-c.Ka})};
gD=function(a,b,c){c=void 0===c?{}:c;YC.call(this,a,b,"",void 0,void 0,c.zi||0);this.index=new dD(c)};
hD=function(a,b,c){BC.call(this,a,b);this.J=c;this.index=new AB};
iD=function(a,b,c){var d=a.index.getSegmentURL(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Ib*f;var h=b===a.index.getLastSegmentNumber()&&0<c;a=new JC(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,h);return new SC([a],d)};
Hja=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.G;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new zB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
jD=function(){this.count=0;this.u=1;this.l=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
kD=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
lD=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.u=this.l=0;this.B=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
mD=function(a,b){return 0===a.i.length?!1:(a=a.i[a.i.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
nD=function(a,b){b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
oD=function(a){a.B=void 0;a.l=0;a.u=0};
pD=function(a,b,c){a.isFocused(b);return b-a.u+c<=a.i[a.l].length};
qD=function(a){if(!a.B){var b=a.i[a.l];a.B=new DataView(b.buffer,b.byteOffset,b.length)}return a.B};
rD=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!pD(a,b,c)){var d=a.l,e=a.u;a.focus(b+c-1);e=new Uint8Array(a.u+a.i[a.l].length-e);for(var f=0,h=d;h<=a.l;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.l-d+1,e);oD(a);a.focus(b)}d=a.i[a.l];return new DataView(d.buffer,d.byteOffset+b-a.u,c)};
sD=function(a,b,c){a=rD(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
tD=function(a){a=sD(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
uD=function(a,b){a.focus(b);return a.i[a.l][b-a.u]};
vD=function(a,b){a.focus(b);return pD(a,b,4)?qD(a).getUint32(b-a.u):256*(256*(256*uD(a,b)+uD(a,b+1))+uD(a,b+2))+uD(a,b+3)};
wD=function(a,b,c){this.info=a;this.u=c;this.l=null;this.B=-1;this.timestampOffset=0;this.i=b instanceof lD?b:new lD([b])};
xD=function(a){return rD(a.i)};
yD=function(a,b){if(1!==a.info.i.info.containerType||a.info.zb||!a.info.Nd)return!0;a=xD(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
zD=function(a,b){b=Math.min(b,a.info.l);var c=a.i.split(b),d=c.Jw;c=c.Fp;var e=new JC(a.info.type,a.info.i,a.info.range,a.info.G,a.info.Ka,a.info.startTime,a.info.duration,a.info.zb,b,!1,!1);d=new wD(e,d,a.u);a=new JC(a.info.type,a.info.i,a.info.range,a.info.G,a.info.Ka,a.info.startTime,a.info.duration,a.info.zb+b,a.info.l-b,a.info.u,a.info.Nd);a=new wD(a,c,!1);return[d,a]};
AD=function(a,b,c){var d;if(!(d=!MC(a.info,b.info)||a.info.Nd)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?mD(a.i,c.i[0]):1);d=c}if(d)return null;c=new JC(a.info.type,a.info.i,a.info.range,a.info.G,a.info.Ka,a.info.startTime,a.info.duration,a.info.zb,a.info.l,a.info.u,a.info.Nd);d=b.info;c.l+=d.l;c.range&&(c.J+=d.J);c.B=d.B;c.Nd=d.Nd;c.u=c.u||d.u;d=new lD;nD(d,a.i);nD(d,b.i);c=new wD(c,d,a.u);c.l=b.l||a.l;if(a=c.info.range)a=c.i,a=!(1===a.i.length&&0<a.i[0].byteOffset);a&&(c.u=!1);return c};
CD=function(a){g.BD(a.info.i.info)||a.info.i.info.De();if(-1!==a.B)return a.B;if(a.l&&KB(a.l))return a.B=KB(a.l),a.B;if(g.BD(a.info.i.info)){var b=xD(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;SB(b,f);){var h=TB(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.PB(h):1952867444===h.type&&isNaN(d)&&(d=g.VB(h));f=UB(h.type)?f+8:f+h.size}!e&&c&&(e=QB(c));b=d/e}else b=new aC(xD(a)),c=a.u?b:new aC(new DataView(a.info.i.i.buffer)),d=oC(c),c=b.i,b.i=0,pC(b)?eC(b,231)?(d=jC(b)*
d/1E9,b.i=c,b=d):(b.i=c,b=NaN):(b.i=c,b=NaN);a.B=b||a.info.C;return a.B};
ED=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=CD(a)+b;DD(a,c);a.timestampOffset=b};
DD=function(a,b){g.BD(a.info.i.info)||a.info.i.info.De();a.B=b;if(g.BD(a.info.i.info)){var c=xD(a);a=a.info.i.i;for(var d=NaN,e=NaN,f=0;SB(c,f);){var h=TB(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.PB(h)));if(1952867444===h.type){!d&&a&&(d=QB(a));var l=g.VB(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=UB(h.type)?f+8:f+h.size}return!0}c=new aC(xD(a));a=a.u?c:new aC(new DataView(a.info.i.i.buffer));d=oC(a);a=c.i;c.i=0;if(pC(c)&&eC(c,231))if(e=fC(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.l.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b};
FD=function(a){g.BD(a.info.i.info)||a.info.i.info.De();if(a.l&&6===a.info.type)return a.l.zi;if(g.BD(a.info.i.info)){var b=xD(a);var c=0;b=g.ZB(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=WB(d.value),c+=d.tD[0]/d.yD;c=c||NaN;if(!(0<=c))a:{c=xD(a);b=a.info.i.i;for(var e=d=0,f=0;SB(c,d);){var h=TB(c,d);if(1836476516===h.type)e=g.PB(h);else if(1836019558===h.type){!e&&b&&(e=QB(b));if(!e){c=NaN;break a}var l=RB(h.data,h.dataOffset,1953653094),m=e,n=RB(l.data,l.dataOffset,1952868452);
l=RB(l.data,l.dataOffset,1953658222);var p=n.Ne();n.Ne();p&2&&n.Ne();n=p&8?n.Ne():0;var r=l.Ne(),t=r&1;p=r&4;var u=r&256,x=r&512,y=r&1024;r&=2048;var B=l.Fc();t&&l.Ne();p&&l.Ne();for(var G=t=0;G<B;G++){var H=u?l.Ne():n;x&&l.Ne();p&&0===G||!y||l.Ne();r&&l.Ne();t+=H}f+=t/m}d=UB(h.type)?d+8:d+h.size}c=f||NaN}}else c=new aC(xD(a)),b=a.u?c:new aC(new DataView(a.info.i.i.buffer)),c=sja(c,oC(b));return c||a.info.J};
GD=function(a){var b=xD(a);var c=(c=g.NB(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.NB(b,0,1836476516))?g.PB(b):a?QB(a):NaN);return c};
HD=function(a){if(!a.l){g.BD(a.info.i.info)||a.info.i.info.De();if(g.BD(a.info.i.info)){var b=xD(a),c=RB(b,0,1701671783);if(c){var d=XB(c);var e=d.iU;d=MB(d.rI);if(b=RB(b,c.offset+c.size,1701671783))if(b=XB(b),b=MB(b.rI),d&&b){c=g.q(Object.keys(b));for(var f=c.next();!f.done;f=c.next())f=f.value,d[f]=b[f]}e=d?new IB(d,e):null}else e=null}else{e=new aC(xD(a));d=e.i;e.i=0;c=b=null;if(cC(e,[408125543,307544935,29555,26568]))for(f=dC(e);!bC(f);){var h=fC(f,!1);17543===h?c=MB(f.Oe()):17827===h?b=f.Oe():
kC(f)}e.i=d;e=c?new IB(c,b):null}a.l=e}};
ID=function(a,b,c,d,e){BC.call(this,a,b,c,d);this.J=null;this.index=e?new e.NativeSegmentIndex:new jD};
JD=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=FC(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+n),r=f===a.index.getLastSegmentNumber()&&n+p===h.length;e.push(new JC(3,a,h,"getRequestInfoForRange",f,l,m,n,p,r));if(h.start+n+p>=c+d)break}e.length||g.Tx(new g.Gv("b189619593",""+b,""+c,""+d));return new SC(e)};
KD=function(a,b,c,d){this.sampleRate=a||0;this.i=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Ija=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
MD=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||LD(a,b);this.i=g.SA[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=h)||(a=g.SA[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.l=l||"";this.primaries=m||""};
LD=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=ND[0];for(var d=0;d<ND.length;d++){var e=ND[d],f=g.SA[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
QD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;this.u=!0;this.isSupported=this.l=null;0<c.Ib||(c.Ib=16E3);Object.assign(this,c);this.containerType=OD(b);this.i=PD[this.kc()]||""};
RD=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
SD=function(a){return"9h"===a.i||"(h"===a.i};
TD=function(a){return"1"===a.i||"1h"===a.i};
g.BD=function(a){return 1===a.containerType};
UD=function(a){return"application/x-mpegURL"===a.mimeType};
VD=function(a){return a.includes("vtt")||a.includes("text/mp4")};
OD=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
WD=function(a,b,c,d,e){var f=new KD;b in g.SA||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.SA[b],d=Math.round(16*e/9));d=new MD(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new QD(c,a,{audio:f,video:d})};
XD=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
YD=function(){var a=g.Ia("yt.player.utils.videoElement_");a||(a=g.ng("VIDEO"),g.Ha("yt.player.utils.videoElement_",a,void 0));return a};
ZD=function(a){var b=YD();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Jja=function(a){try{var b=$D('video/mp4; codecs="avc1.42001E"')||$D('video/webm; codecs="vp9"');return($D('audio/mp4; codecs="mp4a.40.2"')||$D('audio/webm; codecs="opus"'))&&(b||!a)||ZD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
$D=function(a){if(/opus/.test(a)&&(g.aj&&!br("38")||g.aj&&ft("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!lt())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!ZD(a)};
aE=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
bE=function(){var a=YD();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
cE=function(){var a=YD();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
dE=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
eE=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
fE=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
gE=function(a,b){return 0<=fE(a,b)};
Kja=function(a,b){if(!a)return NaN;b=fE(a,b);return 0<=b?a.start(b):NaN};
hE=function(a,b){if(!a)return NaN;b=fE(a,b);return 0<=b?a.end(b):NaN};
iE=function(a){return a&&a.length?a.end(a.length-1):NaN};
jE=function(a,b){a=hE(a,b);return 0<=a?a-b:0};
kE=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return dE(d,e)};
lE=function(a,b,c,d){g.Q.call(this);var e=this;this.jd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.yH={error:function(){!e.Ha()&&e.isActive&&e.W("error",e)},
updateend:function(){!e.Ha()&&e.isActive&&e.W("updateend",e)}};
px(this.jd,this.yH);this.Zu=this.isActive};
g.mE=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c};
g.nE=function(a){var b;for(b in a)if(a.hasOwnProperty(b)&&void 0!==a[b]){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
oE=function(a){var b=void 0===b?!1:b;if(a instanceof g.mE)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Tx(a):g.Ux(a);return new g.mE(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
pE=function(a,b,c,d,e){var f;g.Q.call(this);var h=this;this.Qb=a;this.qe=b;this.id=c;this.containerType=d;this.isVideo=e;this.ZH=this.Vw=this.Ee=null;this.appendWindowStart=this.timestampOffset=0;this.fG=dE([],[]);this.Jv=!1;this.Zd=function(l){return h.W(l.type,h)};
if(null===(f=this.Qb)||void 0===f?0:f.addEventListener)this.Qb.addEventListener("updateend",this.Zd),this.Qb.addEventListener("error",this.Zd)};
qE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
rE=function(a,b){this.i=a;this.l=void 0===b?!1:b;this.u=!1};
sE=function(a,b,c){c=void 0===c?!1:c;g.E.call(this);this.mediaSource=a;this.qe=b;this.isView=c;this.u=0;this.callback=null;this.events=new mx(this);g.F(this,this.events);this.Pt=new rE(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.qe.webkitMediaSourceURL,!0);a=this.mediaSource||this.qe;nx(this.events,a,["sourceopen","webkitsourceopen"],this.dT);nx(this.events,a,["sourceclose","webkitsourceclose"],this.cT)};
Lja=function(a,b){tE(a)?g.Ig(function(){b(a)}):a.callback=b};
uE=function(a,b){try{a.mediaSource?a.mediaSource.duration=b:(a.u=b,a.qe.webkitSourceSetDuration(b))}catch(c){}};
vE=function(a){return!!a.i||!!a.l};
tE=function(a){try{return"open"===wE(a)}catch(b){return!1}};
wE=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.qe.webkitSourceState){case a.qe.SOURCE_OPEN:return"open";case a.qe.SOURCE_ENDED:return"ended";default:return"closed"}};
xE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
yE=function(a,b,c,d){if(!a.i||!a.l)return null;var e=a.i.isView()?a.i.jd:a.i,f=a.l.isView()?a.l.jd:a.l,h=new sE(a.mediaSource,a.qe,!0);h.Pt=a.Pt;e=new lE(e,b,c,d);b=new lE(f,b,c,d);h.i=e;h.l=b;g.F(h,e);g.F(h,b);tE(a)||a.i.rr(a.i.Lc());return h};
Mja=function(a,b){return zE(function(c,d){return g.Us(c,d,4,1E3)},a,b)};
g.AE=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=EB(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
zE=function(a,b,c){b.match(Nja);return a(b,c).then(function(d){var e=g.AE(d.xhr);return e?zE(a,e,c):d.xhr})};
CE=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.Q.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.Da=this.duration=0;this.Le=this.K=this.isLive=this.u=!1;this.gg=this.Vd=0;this.isOtf=this.Sh=!1;this.xa=(0,g.P)();this.U=Infinity;this.i={};this.state=this.X=0;this.timeline=null;this.isManifestless=!1;this.Y=[];this.B=null;this.ma=0;this.Ga="";this.va=NaN;this.J=this.G=this.C=this.timestampOffset=this.l=0;this.Pa=!!b&&g.S(b,"html5_live_nonzero_first_segment_start_time");
this.Va=!!b&&g.S(b,"html5_live_self_init_segments");this.withCredentials=!b||!g.S(b,"html5_manifest_without_credentials");this.Ea=!!b&&g.S(b,"disable_html5_manifest_namespace_redux");this.La=b&&g.S(b,"disable_html5_duration_caching")?Infinity:10;this.Ua=!!b&&g.S(b,"html5_reset_index_on_mismatch");BE=!!b&&g.S(b,"html5_modern_vp9_mime_type");this.Aa=!!b&&g.S(b,"html5_unrewrite_timestamps")};
ija=function(a){return g.Hb(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
fB=function(a){return g.Hb(a.i,function(b){return!!b.info.Jd})};
Oja=function(a){return g.Hb(a.i,function(b){return VD(b.info.mimeType)})};
DE=function(a){return g.Hb(a.i,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
EE=function(a){return g.Hb(a.i,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
FE=function(a){return g.Hb(a.i,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
Pja=function(a){return g.Hb(a.i,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Qja=function(a){return Ib(a.i,function(b){return b.info.video?b.FC():!0})};
ZA=function(a){return g.Hb(a.i,function(b){return tB(b.l.i)})};
Rja=function(a){return g.Hb(a.i,function(b){return!(b.index instanceof jD)})};
GE=function(a,b){a.i[b.info.id]=b};
JE=function(a,b,c,d,e,f){var h=Sja(a);if(d||e){c=new CE("",null===f||void 0===f?void 0:f.experiments,!0);a=g.q(a);for(d=a.next();!d.done;d=a.next()){var l=d.value;d=HE(l,b);f=IE(l.url,l.sp,l.s);h=Number(l.target_duration_sec)||5;l=Number(l.max_dvr_duration_sec)||14400;var m=Number(f.get("mindsq")||f.get("min_sq")||"0"),n=Number(f.get("maxdsq")||f.get("max_sq")||"0")||Infinity;c.Vd=c.Vd||m;c.gg=c.gg||n;var p=!VD(d.mimeType);f&&GE(c,new gD(f,d,{zi:h,Mj:p,dl:l,Vd:m,gg:n,Ot:300,Le:e}))}c.u=!e;c.Sh=!0;
c.isManifestless=!0;c.isLive=!e;c.Le=e;c.K=!!c.Vd&&!!c.gg&&isFinite(c.gg);b=c}else b=3===h?Tja(a,b,c,null===f||void 0===f?void 0:f.experiments):Uja(a,b,c,f);return b};
Uja=function(a,b,c,d){c=void 0===c?0:c;var e=new CE("",null===d||void 0===d?void 0:d.experiments,!1);e.duration=c||0;g.Cb(a,function(f){var h=HE(f,b,e.duration),l=EC(f.init),m=EC(f.index);(f=IE(f.url,f.sp,f.s))&&GE(e,new ID(f,h,l,m,null===d||void 0===d?void 0:d.Ji))});
return e};
Tja=function(a,b,c,d){c=void 0===c?0:c;var e=new CE("",d,!1);e.duration=c||0;g.Cb(a,function(f){var h=HE(f,b,e.duration),l=IE(f.url,f.sp,f.s);if(l)if(3===h.streamType)GE(e,new hD(l,h,"sq/0"));else{var m=EC(f.init);f=EC(f.index);GE(e,new ID(l,h,m,f))}});
e.isOtf=!0;return e};
HE=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var h=(a.size||"640x360").split("x");h=new MD(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);f=h;null===KE&&(KE=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));
if(BE&&window.MediaSource&&MediaSource.isTypeSupported)!KE&&0<d.indexOf("vp09.00")?d='video/webm; codecs="vp9"':!KE&&0<d.indexOf("vp09.02")&&(d='video/webm; codecs="vp9.2"');else if((KE||LE)&&('video/webm; codecs="vp9"'===d||'video/webm; codecs="vp9.2"'===d)){var l="00",m="08",n="01",p="01",r="01";'video/webm; codecs="vp9.2"'===d&&(l="02",m="10","bt2020"===f.primaries&&(r=n="09"),"smpte2084"===f.l&&(p="16"),"arib-std-b67"===f.l&&(p="18"));d='video/webm; codecs="'+["vp09",l,"51",m,"01",n,p,r,"00"].join(".")+
'"'}}var t;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var u=new KD(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(t=new XD(a.name,a.audio_track_id,"1"===a.isDefault))}var x;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(x=new Ija(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;l=Number(a.clen);m=Number(a.lmt);c=c&&l?l/c:0;if(b&&a.drm_families){var y={};n=g.q(a.drm_families.split(","));for(p=
n.next();!p.done;p=n.next())p=p.value,y[p]=b[p]}return new QD(e,d,{audio:u,video:h,Jc:t,Jd:y,Ib:f,zs:c,contentLength:l,lastModified:m,captionTrack:x,streamType:+a.stream_type})};
Sja=function(a){return sn(a,function(b){return 3===+b.stream_type})?3:0};
ME=function(a,b){return a.timeline?tb(a.timeline.B,b):a.Y.length?tb(a.Y,b):[]};
IE=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.pB(a,!0);a.set("alr","yes");c&&(c=oB(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Yja=function(a,b){var c=ZC(b,"id");c=c.replace(":",";");var d=ZC(b,"mimeType"),e=ZC(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(ZC(b,"bandwidth"))/8;var f=Number($C(b,"BaseURL").getAttribute(NE(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(ZC(b,"width"));var m=Number(ZC(b,"height")),n=Number(ZC(b,"frameRate")),p=Vja(ZC(b,NE(a,"projectionType")));a:switch(ZC(b,NE(a,"stereoLayout"))){case "layout_left_right":var r=1;break a;case "layout_top_bottom":r=
2;break a;default:r=0}l=new MD(l,m,n,p,r)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(ZC(b,"audioSamplingRate"));var u=Number(ZC(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Wja(ZC(b,NE(a,"spatialAudioType")));t=new KD(t,u,m);a:{u=ZC(b,"lang")||"und";if(m=$C(b,"Role"))if(p=ZC(m,"value")||"",Nb(Xja,p)){m=u+"."+Xja[p];n="main"===p;a=ZC(b,NE(a,"langName"))||u+" - "+p;u=new XD(a,m,n);break a}u=void 0}}if(b=$C(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===
b.getAttribute("schemeIdUri")){var x={};for(b=b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(x[a]=m.trim()))}else x=void 0;return new QD(c,d,{audio:t,video:l,Jc:u,Jd:x,Ib:e,zs:h,contentLength:f})};
Vja=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
Wja=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return 1;case "spatial_audio_type_ambisonics_quad":return 2;case "spatial_audio_type_foa_with_non_diegetic":return 3;default:return 0}};
$ja=function(a,b){b=void 0===b?"":b;a.state=1;a.xa=(0,g.P)();return g.ah(Mja(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.Ha()){a.X=c.status;c=c.responseText;var d=new DOMParser;c=md(d,wl(c),"text/xml").getElementsByTagName("MPD")[0];a.U=1E3*aD(ZC(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ea){b:{if(c.attributes){d=g.q(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.Ga=d}a.isLive=Infinity>a.U&&a.isLivePlayback;a.Da=Number(ZC(c,NE(a,"earliestMediaSequence")))||0;if(d=Date.parse(bD(ZC(c,NE(a,"mpdResponseTime")))))a.ma=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.ym(c.getElementsByTagName("Period"),a.IT,a);a.state=2;a.W("loaded");Zja(a)}return a}),function(c){if(c instanceof Ss){var d=c.xhr;
a.X=d.status}a.state=3;a.W("loaderror");return Ug(d)})};
aka=function(a,b,c){return $ja(new CE(a,b,c),a)};
OE=function(a){return a.isLive&&(0,g.P)()-a.xa>=a.U};
Zja=function(a){var b=a.U;isFinite(b)&&(OE(a)?a.refresh():(b=Math.max(0,a.xa+b-(0,g.P)()),a.B||(a.B=new g.J(a.refresh,b,a),g.F(a,a.B)),a.B.start(b)))};
bka=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
QE=function(a){if(a.isManifestless&&a.K&&PE(a))return PE(a);a=a.i;var b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.G&&(b=!0),h=h.getMaxKnownEndTime(),f.info.Qm()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
PE=function(a){return a.C&&(a.l||a.Aa)?a.C-(a.l||a.timestampOffset):0};
RE=function(a){return a.G&&(a.l||a.Aa)?a.G-(a.l||a.timestampOffset):0};
SE=function(a){if(!isNaN(a.va))return a.va;var b=a.i,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.La&&(a.va=b);return b}if(a.isLive&&(d=b[c],d.zi))return d.zi}return NaN};
cka=function(a,b){a=Qb(a.i,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c<a.getLastSegmentNumber()?a.getStartTime(c+1):NaN};
dka=function(a,b){g.Eb(a.i,function(c){g.Eb(b,function(d,e){var f=c.l;f.i.set(e,d);f.B.set(e,d);f.u&&f.u.set(e,d)})})};
eka=function(a,b){if(!a.i["0"]){var c=new QD("0","fakesb",{video:new MD(0,0,0,void 0,void 0,"auto")});a.i["0"]=b?new YC(new g.pB("http://www.youtube.com/videoplayback"),c,"fake"):new ID(new g.pB("http://www.youtube.com/videoplayback"),c,new DC(0,0),new DC(0,0))}};
TE=function(a,b,c){for(var d in a.i){var e=VD(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c===e){e=a.i[d].index;var f=eD(e,b);0<=f&&e.segments.splice(f,1)}}};
NE=function(a,b){return a.Ea?"yt:"+b:a.Ga+":"+b};
fka=function(a){return g.gb(Object.values(a.i),function(b){return b.info.Jd&&b.info.video?480<b.info.video.i&&"H"===b.info.i:!1})};
gka=function(a){a.G=0;a.C=0;a.J=0};
VE=function(){this.u=this.i=0;this.l=Array.from({length:UE.length}).fill(0)};
hka=function(){};
ika=function(a){this.name=a;this.startTimeMs=(0,g.P)();this.i=!1};
jka=function(){this.profiles=new hka};
WE=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new VE),a.profiles[b].vk(c,d))};
XE=function(){};
kka=function(){var a=g.Yy("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
lka=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
mka=function(){this.qb=this.u=this.Aa=this.Y=this.U=this.va=this.xa=this.La=this.Ga=!1;this.G=this.C=0;this.Va=!1;this.Pa=!0;this.Ua=!1;this.J=0;this.jb=!1;this.bb=Infinity;this.yb=!1;this.wb=!0;this.Da=this.Ea=!1;this.l={};this.eb=this.i=this.ma=!1;this.B=this.K=null;this.Ya=this.X=!1};
kB=function(a){if(a.La)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.jb&&(b.unshift("1"),b.unshift("1h"));a.u&&b.unshift("h");a.K&&b.unshift(a.K);return b};
gB=function(a){var b=["o","a","A"];a.va&&(b=["m","M"].concat(b));a.U&&(b=["mac3","MAC3"].concat(b));a.Y&&(b=["meac3","MEAC3"].concat(b));a.Ga&&(b=["so","sa"].concat(b));!a.qb||a.Aa||a.B||b.unshift("a");a.xa&&b.unshift("ah");a.B&&b.unshift(a.B);return b};
ZE=function(a,b,c){b=void 0===b?{}:b;if(dB(a.B,eB.AV1_CODECS)&&dB(a.B,eB.HEIGHT)&&dB(a.B,eB.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=nka();if(d)return b.localPref=d}catch(f){}d=g.T(a.experiments,"html5_av1_thresh");var e=g.T(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.T(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.T(a.experiments,"html5_av1_thresh_arm"))&&ht()&&(b.isArm=
1,d=a);if(c){if((a=c.videoInfos.find(function(f){return TD(f)}))&&a.l)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(YE("1",c.fps),YE("1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&(b.hdr=1,d*=.75)}else c=YE("1",30),b.perfCap30=c,d=Math.min(d,c),c=YE("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
aF=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.i={};this.l=this.keySystemAccess=null;this.G=this.J=-1;this.B=null;this.C="";this.K=!!d&&g.S(d,"edge_nonprefixed_eme");this.C=d?g.$E(d,"html5_hdcp_probing_stream_url"):""};
cF=function(a){return a.K?!1:!a.keySystemAccess&&!!bF()&&"com.microsoft.playready"===a.keySystem};
dF=function(a){return"com.microsoft.playready"===a.keySystem};
eF=function(a){return g.tw&&"com.microsoft.playready"===a.keySystem&&!!navigator.requestMediaKeySystemAccess};
fF=function(a){return!a.keySystemAccess&&!!bF()&&"com.apple.fps.1_0"===a.keySystem};
gF=function(a){return"com.youtube.fairplay"===a.keySystem};
g.hF=function(a){return"fairplay"===a.flavor};
bF=function(){var a=window,b=a.MSMediaKeys;nt()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
iF=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.aj&&!g.it())return br("45");if(g.tw||g.fe)return g.S(a,"edge_nonprefixed_eme");if(g.bj)return br("47");if(g.cj){if(g.S(a,"html5_enable_safari_fairplay"))return!1;if(a=g.T(a,"html5_safari_desktop_eme_min_version"))return br(a)}return!0};
oka=function(a,b,c,d){var e=jt(),f=(c=e||c&&nt())?["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.ma(f),g.ma(jF.playready)):[].concat(g.ma(jF.playready),g.ma(f))};
kF=function(a,b,c,d,e){d=void 0===d?!1:d;g.E.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ja=e;this.i=[];this.l={};this.B={};this.callback=null;this.C=!1;this.u=[];this.initialize(a,!c);this.ea()};
qka=function(a,b){a.callback=b;a.u=[];iF(a.experiments)?lF(a):pka(a)};
lF=function(a){if(!a.Ha())if(0===a.i.length)a.callback(a.u);else{var b=a.i[0],c=a.l[b],d=rka(a,c);a.ea();navigator.requestMediaKeySystemAccess(b,d).then(Tr(function(e){if(!a.Ha()){a.ea();c.keySystemAccess=e;if(dF(c)){e=YD();for(var f=g.q(Object.keys(a.B[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.i[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.q(e.audioCapabilities),h=f.next();!h.done;h=f.next())ska(a,c,h.value);if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())ska(a,c,f.value)}a.u.push(c);a.Z("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.i.shift(),lF(a)):a.callback(a.u)}}),Tr(function(){a.ea();
a.C=!a.C&&"widevine"===a.l[a.i[0]].flavor;a.C||a.i.shift();lF(a)}))}};
ska=function(a,b,c){a.Z("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
rka=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};dF(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.B[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.C?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.Z("html5_enable_cobalt_experimental_vp9_decoder")&&
e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.Z("html5_query_sw_secure_crypto_for_android")&&(ut()||gt())&&(a.Ja("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
pka=function(a){if(bF()&&g.cj)a.ea(),a.u.push(new aF("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=tka(),c=g.gb(a.i,function(d){var e=a.l[d],f=!1,h=!1,l;for(l in a.B[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c?(a.ea(),a.u.push(a.l[c])):a.ea();a.i=[]}a.callback(a.u)};
tka=function(){var a=bF();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=YD();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
uka=function(){this.i=0};
vka=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Wr(b||"","&");var c={};g.Cb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.S=function(a,b){return"true"===a.flags[b]};
g.T=function(a,b){return Number(a.flags[b])||0};
g.$E=function(a,b){return(a=a.flags[b])?a.toString():""};
mF=function(a,b,c){this.experiments=a;this.Y=b;this.X=void 0===c?!1:c;this.G=!!g.Ia("cast.receiver.platform.canDisplayType");this.C={};this.K=!1;this.i=new Map;this.J=!0;this.B=!g.S(this.experiments,"html5_disable_protected_hdr");this.l=!1;this.U=g.S(this.experiments,"html5_disable_vp9_encrypted");a=g.Ia("cast.receiver.platform.getValue");this.u=!this.G&&a&&a("max-video-resolution-vpx")||null};
$A=function(a,b,c){c=void 0===c?1:c;var d=b.kc();if("0"===d||g.S(a.experiments,"html5_use_media_capability")&&b.isSupported)return!0;var e=b.mimeType;if(TD(b)&&a.K)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(dB(a,eB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.aj?br(53):g.bj&&br(64)))return"dopus";var f=c;f=void 0===f?1:f;c=
{};b.video&&(b.video.width&&(c[eB.WIDTH.name]=b.video.width),b.video.height&&(c[eB.HEIGHT.name]=b.video.height),b.video.fps&&(c[eB.FRAMERATE.name]=b.video.fps*f),b.video.l&&(c[eB.EOTF.name]=b.video.l),b.Ib&&(c[eB.BITRATE.name]=8*b.Ib*f),"("===b.i&&(c[eB.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[eB.DECODETOTEXTURE.name]="true");b.audio&&b.audio.i&&(c[eB.CHANNELS.name]=b.audio.i);a.l&&RD(b)&&(c[eB.EXPERIMENTAL.name]=
"allowed");f=g.q(Object.keys(eB));for(var h=f.next();!h.done;h=f.next()){h=eB[h.value];var l;if(l=c[h.name])(l=h===eB.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.S(a.experiments,"html5_ignore_h264_framerate_cap")&&h===eB.FRAMERATE&&("H"===l.i||"h"===l.i)),l=!(l||h===eB.DECODETOTEXTURE&&!g.S(a.experiments,"html5_decode_to_texture_cap"));if(l)if(dB(a,h))if(a.u){if(a.u[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(SD(b)&&h===eB.EOTF)return"dvp92"}!g.S(a.experiments,
"disable_html5_cast_hdcp_filter2")&&a.G&&b.video&&1080<b.video.i&&b.Jd&&(e+="; hdcp=2.2");return"227"!==d||g.S(a.experiments,"html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||g.S(a.experiments,"html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
nF=function(){var a=gt()&&!br(29),b=ft("google tv")&&ft("chrome")&&!br(30),c=jt();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
wka=function(a,b,c){var d=480;b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.i)&&$A(a,e,c)){d=e.video.i;break}return d};
g.oF=function(a,b){b=void 0===b?!1:b;return nF()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(YD(),"application/x-mpegURL")?!0:!1};
dB=function(a,b){b.name in a.C||(a.C[b.name]=xka(a,b));return a.C[b.name]};
xka=function(a,b){if(a.u)return!!a.u[b.name];if(b===eB.BITRATE&&g.S(a.experiments,"html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===eB.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c=
'audio/webm; codecs="opus"',a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)};
pF=function(){g.Q.call(this);this.items={}};
yka=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.l=new Uint8Array(a.buffer,16)};
qF=function(a){try{return g.xd(a)}catch(b){return null}};
zka=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?qF(b.clientKey):null;var c=b.encryptedClientKey?qF(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.P)():null;a&&c&&d&&(this.i=new yka(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=qF(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
rF=function(a){this.i=this.l=0;this.alpha=Math.exp(Math.log(.5)/a)};
sF=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.l=!1;this.B=!0;this.i=Math.round(a*this.resolution);this.values=Array(this.i);for(a=0;a<this.i;a++)this.values[a]=Infinity;this.G=Aka(this);this.u=c;this.C=d};
Aka=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
tF=function(a,b){if(!a.l&&0===a.valueIndex)return 0;a.B&&(g.zb(a.G,function(c,d){return a.values[c]-a.values[d]}),a.B=!1);
return a.values[a.G[Math.round(b*((a.l?a.i:a.valueIndex)-1))]]||0};
Cka=function(a){var b=new uka;this.policy=a;this.Y=b;this.U=this.X=0;this.C=-1;this.K=this.B=uF();this.J=new sF(4,1,.6,.4);this.i=new sF(10,1,.5,.4);this.u=a.i?new rF(a.l):new sF(a.l,20,.5,.4);this.G=new sF(5,1,.25);this.l=new sF(30,1,.5);a=Bka();this.u.Fg(this.policy.C,0<a.byterate?a.byterate:this.policy.u);0<a.delay&&this.J.Fg(1,Math.min(a.delay,2));0<a.stall&&this.i.Fg(1,a.stall);0<a.init&&(this.K=Math.min(a.init,this.K));this.C=uF()};
vF=function(a){a=a.J.Yf();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Dka=function(a,b,c){isNaN(c)||(a.U+=c);isNaN(b)||(a.X+=b)};
wF=function(a){a=a.u.Yf();return 0<a?a:1};
xF=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=wF(a);d=1/((a.i.Yf()||0)+1/d);var e=a.G.Yf();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+vF(a);c=d*Math.min(1,c/(d*b));a.policy.B||(a=((tF(a.l,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
yF=function(a){return{delay:vF(a),stall:a.i.Yf()||0,byterate:wF(a),init:a.K}};
zF=function(a){-1<a.C&&3E4<uF()-a.C&&(Eka(yF(a)),a.C=uF())};
Fka=function(a){return 4E3<=uF()-a.B};
Gka=function(){this.l=17;this.u=13E4;this.C=.5;this.B=this.i=!1};
Hka=function(a,b,c){var d=new Gka;a&&(d.i=!0,d.C=.1);g.S(c,"html5_pctile_bandwidth_estimator")&&(d.i=!1);b&&(d.u=b/8);d.B=480<=AF();return d};
Jka=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.E.call(this);var c=this;this.values=a;this.ql=b;this.l={};this.u=this.i=0;this.B=new g.J(function(){Ika(c)},1E4);
g.F(this,this.B)};
BF=function(a,b){Kka(a,b);return a.values[b]&&a.ql[b]?a.values[b]/Math.pow(2,a.i/a.ql[b]):0};
Kka=function(a,b){a.values[b]||(b=Lka(),a.values=b.values||{},a.ql=b.halfLives||{},a.l=b.values?Object.assign({},b.values):{})};
Ika=function(a){var b=Lka();if(b.values){b=b.values;for(var c={},d=g.q(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.l[e]&&(a.values[e]+=b[e]-a.l[e]),c[e]=BF(a,e);a.l=c}Mka(a.l,a.ql)};
CF=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
DF=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
EF=function(a,b){return void 0===b||null===b?a:Number(b)};
FF=function(a,b){return void 0===b||null===b?a:b.toString()};
Nka=function(a){if(!a)return null;var b=a.split("x");if(2!==b.length)return null;a=Number(b[0]);b=Number(b[1]);return isNaN(a)||isNaN(b)||0>=a*b?null:new g.Sf(a,b)};
GF=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Oka))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
HF=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.Nr("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
uG=function(a,b,c){var d,e,f;g.E.call(this);var h=this;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.dd=this.Hb=this.xa=this.cd=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.bd=NaN;this.yb=!1;this.Ua=0;this.Bh=this.yj=!1;this.Fi=!0;this.uh=this.Ob=!1;this.Ji=null;this.Hk=yx(4);a=a?g.Vb(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new vka(b?b.serializedExperimentIds:
a.fexp,b?b.serializedExperimentFlags:a.fflags);this.Va=b?b.serializedForcedExperimentIds:FF("",a.forced_experiments)||void 0;this.cspNonce=(null===b||void 0===b?0:b.cspNonce)&&!this.Z("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:FF("",a.csp_nonce);uz=this.Z("web_player_deprecated_uvr_killswitch");try{var l=document.location.toString()}catch(G){l=""}this.Jb=l;this.Gc=(l=window.location.ancestorOrigins)?Array.from(l):[];l=!this.Z("web_player_context_config_embeds_fields_killswitch");this.l=CF(!1,
b&&l?b.isEmbed:a.is_embed);b&&b.device?Pka(this,b.device):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.Z("wpcc_loader_url_killswitch")?this.loaderUrl=this.l||IF(this)&&b.loaderUrl?b.loaderUrl||"":this.Jb:this.loaderUrl=this.l||IF(this)&&a.loaderUrl?FF("",a.loaderUrl):this.Jb;this.Z("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=FF("",a.embedsTokenValue));this.u=vz(this.loaderUrl,Qka,Rka);this.Kk=Qia(this.loaderUrl);
this.Ga=CF(!1,a.privembed);this.protocol=0===this.Jb.indexOf("http:")?"http":"https";this.Aa=xz((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||xz(this.Jb)||this.protocol+"://www.youtube.com/";this.Ea=Ska(this,b?b.eventLabel:a.el);ku();var m=null,n=b?b.playerStyle:a.ps,p=g.kb(Tka,n);!n||p&&!this.u||(m=n);this.playerStyle=m;this.K=(this.C=g.kb(Tka,this.playerStyle))&&"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Jk=!this.K;this.ma=CF(!1,a.disableplaybackui);
this.Kb=this.Z("variable_playback_rate")?!0:YD().defaultPlaybackRate?JF||g.tt||KF?g.bj&&br("20")||g.aj&&br("4")||g.Uk&&br("11")||ot():!(g.Uk&&!ft("chrome")||JF||ft("android")||ft("silk")):!1;this.Ij=CF(!1,a.enable_faster_speeds);this.i=CF("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Ik=Uka(this);this.eb="3"===this.controlsType||this.i||CF(!1,a.use_media_volume);this.X=cE();this.Qk=g.LF;this.gi=CF(!1,b&&l?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=
CF(!1,(b&&l?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.Z("embeds_pfp_chazal_ui_killswitch"));var r;b?void 0!==b.hideInfo&&(r=!b.hideInfo):r=a.showinfo;this.wj=g.MF(this)&&!this.gi||CF(!NF(this)&&!OF(this)&&!this.C,r);this.Ai=b?!!b.mobileIphoneSupportsInlinePlayback:CF(!1,a.playsinline);r=this.i&&PF&&null!=QF&&0<QF&&2.3>=QF;m=b?b.useNativeControls:a.use_native_controls;n=this.i&&!this.Z("embeds_enable_mobile_custom_controls");m=RF(this)||!r&&CF(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType=
"0"!==n&&0!==n?m:"0";this.J=(this.Z("embeds_enable_mobile_custom_controls")||"1"===this.controlsType&&!this.Z("embeds_use_native_controls_killswitch"))&&g.MF(this)&&this.i;this.Ac=this.i;this.color=DF("red",b&&l?b.progressBarColor:a.color,Vka);this.Nk="3"===this.controlsType||CF(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Ya=!this.l;this.xj=(m=!this.Ya&&!OF(this)&&!this.K&&!this.C&&!NF(this))&&!this.Nk&&"1"===this.controlsType;this.wb=g.SF(this)&&m&&"0"===this.controlsType&&
!this.xj;this.Tk=this.Ok=r;this.Gi=TF&&!g.Wd(601)?!1:!0;this.Kj=this.l||!1;this.Vb=OF(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=FF("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.u||CF(!0,t);r=!0;b&&b.disableMdxCast&&(r=!1);this.lf=this.Z("enable_cast_for_web_unplugged")&&g.UF(this)&&r||this.Z("enable_mdx_module_for_music_web")&&g.VF(this)&&r||t&&r&&"1"===this.controlsType&&!this.i&&(OF(this)||
g.SF(this)||g.WF(this))&&!g.XF(this)&&!YF(this);this.Sk=aE()||bE();t=b?!!b.supportsAutoplayOverride:CF(!1,a.autoplayoverride);this.uf=!this.i&&!ft("nintendo wiiu")&&!ft("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:CF(!1,a.mutedautoplay);r=this.Z("embeds_enable_muted_autoplay")&&g.MF(this);this.xc=t&&r&&this.X&&!RF(this);t=(OF(this)||NF(this))&&"blazer"===this.playerStyle;this.mf=b?!!b.disableFullscreen:!CF(!0,a.fs);this.Pa=!this.mf&&(t||ix());this.rh=this.Z("uniplayer_block_pip")&&(gt()&&br(58)&&
!ut()||qt);t=g.MF(this)&&!this.gi;var u;b?void 0!==b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.qb=t||CF(!this.C,u);this.vj=CF(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.G=ut()&&0<QF&&4.4>=QF?"_top":"_blank";this.wc=g.WF(this);this.sf=CF("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":u="bl";break;case "gmail":u="gm";break;case "books":u="gb";break;case "docs":u="gd";break;case "duo":u="gu";break;case "google-live":u=
"gl";break;case "google-one":u="go";break;case "play":u="gp";break;case "chat":u="hc";break;case "hangouts-meet":u="hm";break;case "photos-edu":case "picasaweb":u="pw";break;default:u="yt"}this.va=u;this.Y=FF("",b&&l?b.authorizedUserIndex:a.authuser);this.Ah=g.MF(this)&&(this.Ga||g.S(this.experiments,"embeds_web_enable_hiding_login_buttons")&&(!ct()||ut()||rt()));var x;b?void 0!==b.disableWatchLater&&(x=!b.disableWatchLater):x=a.showwatchlater;this.Aj=(!this.Ah||!!this.Y)&&CF(!this.K,this.u?x:void 0);
this.Id=b?!!b.disableKeyboardControls:CF(!1,a.disablekb);this.loop=CF(!1,a.loop);this.pageId=FF("",!this.Z("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.Rk=CF(!0,a.canplaylive);this.zj=CF(!1,a.livemonitor);this.disableSharing=CF(this.C,b?b.disableSharing:a.ss);this.Hi=Nka(b&&this.Z("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:CF(!1,a.mute);this.tf=!this.mute&&CF("0"!==this.controlsType,a.store_user_volume);
x=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:DF(void 0,x,ZF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":FF("",a.cc_lang_pref);x=DF(2,b&&l?b.captionsLanguageLoadPolicy:a.cc_load_policy,ZF);"3"===this.controlsType&&2===x&&(x=3);this.La=x;this.Tc=b?b.hl||"en_US":FF("en_US",a.hl);this.region=b?b.contentRegion||"US":FF("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":FF("en",a.host_language);this.Gj=!this.Ga&&Math.random()<
g.T(this.experiments,"web_player_api_logging_fraction");this.Da=!this.Ga;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:CF(!0,a.deviceHasDisplay);this.bd=EF(this.bd,a.ismb);this.Ii=Wka(this,a);$F(this,a,!0);this.U=new pF;g.F(this,this.U);this.qf=Xka(this,a,b);this.uj=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.B=new mF(this.experiments,this.Z("html5_force_hfr_support")?!0:aG(this)||kt()||lt()||Yka(this),g.aj&&g.Wd(56)||g.bj&&g.Wd(54)||Yka(this));this.schedule=
new Cka(Hka(g.bG(this),this.bd,this.experiments));this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:CF(!1,a.enable_safety_mode);x=this.ma?!1:OF(this)&&"blazer"!==this.playerStyle;var y;b&&l?null!=b.disableAutonav&&(y=!b.disableAutonav):y=a.allow_autonav;this.Bb=CF(x,!this.K&&y);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:CF(!1,a.send_visitor_id_header);this.bb=(0,g.P)();var B;"docs"===this.playerStyle&&(b&&l?B=b.disableNativeContextMenu:B=
a.disable_native_context_menu);this.disableNativeContextMenu=CF(!1,B);this.Jj=aG(this)&&this.Z("enable_skip_intro_button");this.embedConfig=FF("",b&&l?b.serializedEmbedConfig:a.embed_config);this.nf=CF(!1,a.full_window);this.jb=!g.UF(this)&&!cG(this)&&!g.XF(this)&&!YF(this)&&!0;this.livingRoomAppMode=DF("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,Zka);this.transparentBackground=b?!!b.transparentBackground:CF(!1,a.transparent_background);
this.useFastSizingOnWatchDefault=CF(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:CF(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:CF(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:CF(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=CF(!1,a.showbackbutton);this.Fi=null!==(f=a.show_loop_video_toggle)&&
void 0!==f?f:!0;this.Mk=1E-4>Math.random();this.rf=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new zka(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.Z("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.Pk=c;this.Nb=new Jka;g.F(this,this.Nb);this.uh=CF(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.O("DATASYNC_ID",void 0);this.Lk=g.O("LOGGED_IN",!1);this.Bj=(null===b||void 0===
b?void 0:b.allowWoffleManagement)||!1;this.fg=0;if(this.Z("html5_generate_session_po_token")){a={Kl:"O43z0dpjhgX20SCx4KAo"};try{this.yf=oea(a),tG(this),this.rj=ns(function(){tG(h)},g.T(this.experiments,"html5_session_po_token_interval_time"))}catch(G){G instanceof Error&&g.Ux(G)}}};
$F=function(a,b,c){c=void 0===c?!1:c;a.Hb=FF(a.Hb,b.video_id);a.xa=FF(a.xa,b.eventid);a.xa&&(xx=a.xa);for(var d=[],e=g.q(Object.keys($ka)),f=e.next();!f.done;f=e.next()){f=$ka[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.Mk&&(d.sort(),g.Ux(new g.Gv("Player client parameters changed after startup",d)));a.userAge=EF(a.userAge,b.user_age);a.userDisplayImage=FF(a.userDisplayImage,b.user_display_image);g.zz(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=FF(a.userDisplayName,b.user_display_name);a.cd=FF(a.cd,b.user_gender);a.csiPageType=FF(a.csiPageType,b.csi_page_type);a.csiServiceName=FF(a.csiServiceName,b.csi_service_name);a.sf=CF(a.sf,b.enablecsi);a.pageId=FF(a.pageId,b.pageid);if(b=b.enabled_engage_types)a.enabledEngageTypes=new Set(b.split(","))};
Ska=function(a,b){var c="detailpage";"adunit"===b?c=a.l?"embedded":"detailpage":"embedded"===b||a.u?c=DF(c,b,ala):b&&(c="embedded");return c};
Xka=function(a,b,c){var d=c?c.innertubeApiKey:FF("",b.innertube_api_key),e=c?c.innertubeApiVersion:FF("",b.innertube_api_version);b=c?c.innertubeContextClientVersion:FF("",b.innertube_context_client_version);return{innertubeApiKey:g.O("INNERTUBE_API_KEY",void 0)||d,innertubeApiVersion:g.O("INNERTUBE_API_VERSION",void 0)||e,IH:g.O("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),JH:a.deviceParams.c,innertubeContextClientVersion:g.O("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||b,LH:a.hostLanguage,KH:a.region,
MH:g.O("INNERTUBE_HOST_OVERRIDE",void 0)||"",OH:!!g.O("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),NH:!!g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}};
vG=function(a,b){return!a.C&&gt()&&br(55)&&"3"===a.controlsType&&!b};
g.wG=function(a){a=bla(a.Aa);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.xG=function(a){return g.XF(a)?"music.youtube.com":g.wG(a)};
yG=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
zG=function(a){return OF(a)&&!g.UF(a)};
RF=function(a){return TF&&!a.Ai||ft("nintendo wiiu")||ft("nintendo 3ds")?!0:!1};
YF=function(a){return"area120-boutique"===a.playerStyle};
g.XF=function(a){return"music-embed"===a.playerStyle};
g.bG=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
dla=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
IF=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
Yka=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.AG=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
aG=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.BG=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
cG=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.UF=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
CG=function(a){return"TV_UNPLUGGED_CAST"===a.deviceParams.c};
DG=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.EG=function(a){return g.UF(a)||CG(a)||DG(a)};
g.VF=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.FG=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
ela=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.GG=function(a){return g.BG(a)&&a.Z("web_player_i_see_captions")};
HG=function(a){return a.Z("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.BG(a)};
Uka=function(a){if(a.i)return!a.C;var b=Number(Date.now()/1E3),c=g.Am(g.Xu);return a.Z("block_desktop_background_playback_with_mobile_cookie")&&c&&b>Number(c.get("dhmu",b.toString()))};
g.JG=function(a){return(a.deviceHasDisplay&&g.aj&&!qt&&"3"!==a.controlsType?g.tt?a.l&&g.Wd(51):!0:!1)||(a.deviceHasDisplay&&g.bj&&!qt&&"3"!==a.controlsType?g.tt?a.l&&g.Wd(48):g.Wd(38):!1)||(a.deviceHasDisplay&&g.Uk&&!qt&&"3"!==a.controlsType?g.tt?a.l&&g.Wd(37):g.Wd(27):!1)||a.deviceHasDisplay&&g.IG&&!pt()&&g.Wd(11)||a.deviceHasDisplay&&g.cj&&g.Wd("604.4")};
fla=function(a){if(g.SF(a)&&PF)return!1;if(g.bj){if(!g.Wd(47)||!g.Wd(52)&&g.Wd(51))return!1}else if(g.cj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
OF=function(a){return"detailpage"===a.Ea};
g.SF=function(a){return"embedded"===a.Ea};
KG=function(a){return"leanback"===a.Ea};
NF=function(a){return"adunit"===a.Ea||"gvn"===a.playerStyle};
g.WF=function(a){return"profilepage"===a.Ea};
g.MF=function(a){return a.l&&g.SF(a)&&!NF(a)&&!a.C};
Wka=function(a,b){if(g.$E(a.experiments,"html5_qoe_intercept"))return g.$E(a.experiments,"html5_qoe_intercept");a.Jk?(b=b.vss_host||"s.youtube.com",a.Z("www_for_videostats")&&"s.youtube.com"===b&&(b=bla(a.Aa)||"www.youtube.com")):b="video.google.com";return b};
LG=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.Ux(new g.Gv("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.MG=function(a){var b=g.xG(a);!a.Z("yt_embeds_disable_new_error_lozenge_url")&&gla.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
Pka=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)};
tG=function(a){if(!a.yf)g.Ux(new g.Gv("Failed to update session PO token","webPo not initialized"));else if(a.yf.isReady()){var b=g.O("VISITOR_DATA",void 0);a.Ci=Ya(a.yf.qx({vG:a.Lk?a.datasyncId:b}))}};
bla=function(a){var b=g.ii(a);return(a=Number(g.hi(4,a))||null)?b+":"+a:b};
NG=function(a){this.i=a};
OG=function(a,b,c){if(c)return Ws();var d={};c=YD();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Ue().mimeType)){var f=e.i.fb().quality;if(!d[f]||d[f].Ue().De())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Cb(ND,function(l){(l=d[l])&&h.push(l)});
return h.length?Xs(h):Ws()};
hla=function(a,b,c){this.u=a;this.l=b;this.cpn=c;this.B=0;this.i=""};
ila=function(a,b,c){a.cpn&&(b=g.ti(b,{cpn:a.cpn}));c&&(b=g.ti(b,{T7:c}));return b};
jla=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
kla=function(a){for(var b=[],c=[],d=g.q(a.l),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.B?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.l=b.concat(c)};
lla=function(a,b,c,d,e,f,h,l,m,n,p,r){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.fps=f;this.bitrate=h;this.Jc=void 0===p?null:p;this.audioChannels=r;this.u=(null===l||void 0===l?void 0:l.split(","))||[];this.l=m||null;this.Jd=n||"";this.i=""};
mla=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.q(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d.push(f.itag);d.push("tpus");continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var l=f.type.match(/codecs="([^"]*)"/);
l=l?l[1]:"";var m=null;f.audio_track_id&&(m=new XD(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new lla(f.itag,f.url,l,+f.width,+f.height,+f.fps,+f.bitrate,f.audio_itag,n?h[n]:void 0,f.drm_families,m,+f.audio_channels);e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e};
PG=function(a,b,c){this.i=a;this.u=b;this.expiration=c;this.l=null};
nla=function(a,b){if(!(qt||nt()||jt()))return null;a=mla(b,g.S(a.experiments,"html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Jc&&(f=h.Jc.getId(),c[f]||(h=new PA(f,h.Jc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
sla=function(a,b,c,d,e,f){if(!(qt||nt()||jt()))return Ws();var h=[],l=ola(c);c=mla(c,g.S(a.experiments,"html5_filter_fmp4_in_hls"),a.B.B,h);if(!c)return f("noplst"),Ws();pla(c);var m={},n=(m.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",m),p;m=[];for(var r=[],t=[],u=null,x="",y=g.q(Object.keys(c)),B=y.next();!B.done;B=y.next())if(B=B.value,!g.S(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==B&&"373"!==B){B=g.q(c[B]);for(var G=B.next();!G.done;G=B.next())if(G=G.value,G.width){for(var H=
g.q(G.u),I=H.next();!I.done;I=H.next())if(I=I.value,c[I]){G.i=I;break}G.i||(G.i=qla(c,G));if(H=c[G.i])if(m.push(G),"fairplay"===G.Jd&&(p=n),I="","PQ"===G.l?I="smpte2084":"HLG"===G.l&&(I="arib-std-b67"),I&&(x=I),t.push(rla(H,[G],e,G.itag,G.width,G.height,G.fps,l,void 0,void 0,p,I)),!u||G.width*G.height*G.fps>u.width*u.height*u.fps)u=G}else r.push(G)}else h.push(B),h.push("disdrmhfr");t.reduce(function(M,L){return L.Ue().bk()&&M},!0)&&(p=n);
c=u||{};t.push(rla(r,m,e,"93",void 0===c.width?0:c.width,void 0===c.height?0:c.height,void 0===c.fps?0:c.fps,l,"auto",Math.max(d,0),p,x));h.length&&f(h.join("."));return OG(a.B,t,vG(a,b))};
rla=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,u="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,u||(u=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,u=y.itag);d=new QD(d,"application/x-mpegURL",{audio:new KD(0,t,null,u),video:new MD(e,f,h,null,void 0,m,void 0,r),Jd:p});a=new hla(a,b,c);a.B=n?n:1369843;return new PG(d,a,l)};
ola=function(a){a=g.q(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};
qla=function(a,b){for(var c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Jd===b.Jd&&!e.audioChannels)return d}return""};
pla=function(a){for(var b=new Set,c=g.q(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.q(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.q(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
QG=function(a,b){this.i=a;this.l=b};
tla=function(a,b,c,d){var e=[];c=g.q(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.pB(h.url,!0);if(h.s){var l=h.sp,m=oB(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.q(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=WD(h.type,h.quality,h.itag,h.width,h.height);e.push(new QG(h,f))}}return OG(a.B,e,vG(a,b))};
RG=function(a,b){this.i=a;this.l=b};
ula=function(a){var b=[];g.Cb(a,function(c){if(c&&c.url){var d=WD(c.type,"medium","0");b.push(new RG(d,c.url))}});
return b};
vla=function(a,b,c){c=ula(c);return OG(a.B,c,vG(a,b))};
TG=function(){void 0===SG&&(SG=g.ur());return SG};
UG=function(){var a=TG();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
wla=function(a){var b=TG();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
VG=function(a){return UG()[a]||0};
WG=function(a,b){var c=UG();b!==c[a]&&(0!==b?c[a]=b:delete c[a],wla(c))};
xla=function(a){var b=UG();b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):2!==b[c]&&(b[c]=4);Object.assign(b,a);wla(b);JSON.stringify(b);return b};
yla=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(bia())})})};
g.XG=function(){return g.D(this,function b(){return g.z(b,function(c){return c.return(zla().open())})})};
Ala=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,(0,g.XG)(),2);d=e.l;return e.return(aw(d,["index","media","captions"],"readwrite",function(f){var h=IDBKeyRange.bound(a+"|",a+"~");f=[cw(f,"index").delete(h),cw(f,"media").delete(h),cw(f,"captions").delete(h)];return Pv.all(f).then(function(){})}))})})};
Dla=function(){return g.D(this,function b(){var c;return g.z(b,function(d){if(1==d.i)return g.w(d,(0,g.XG)(),2);c=d.l;return d.return(aw(c,["index","media"],"readwrite",function(e){var f={};return hw(cw(e,"index"),{},function(h){var l,m=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),n=Pv.resolve(void 0);if(m){var p=m[1];m=m[2];f[p]=f[p]||{};f[p][m]=Bla(null===(l=h.getValue())||void 0===l?void 0:l.fmts)}else n=h.delete().then(function(){});
return Pv.all([h.continue(),n]).then(function(r){return g.q(r).next().value})}).then(function(){for(var h={},l=g.q(Object.keys(f)),m=l.next();!m.done;m=l.next()){m=m.value;
var n=f[m].v;h[m]=f[m].a&&n?1:2}var p=xla(h);return Rha(cw(e,"media"),function(r){var t=r.getKey().match(Cla);t&&h[t[1]]||cw(e,"media").delete(r.getKey());return r.continue()}).then(function(){return p})})}))})})};
Ela=function(a,b){return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return g.w(f,(0,g.XG)(),2);e=f.l;return g.w(f,aw(e,["captions"],"readwrite",function(h){var l=[];h=cw(h,"captions");for(var m=0;m<b.length;m++){var n=bw(h,b[m],a+"|"+b[m].metadata.vss_id);l.push(n)}return Pv.all(l)}),0)})})};
YG=function(a,b,c,d,e,f){return g.D(this,function l(){var m,n,p,r,t;return g.z(l,function(u){switch(u.i){case 1:m=VG(a);if(4===m)return u.return(Promise.resolve(4));n=c.lastModified||"0";return g.w(u,(0,g.XG)(),2);case 2:return p=u.l,ta(u,3),g.w(u,aw(p,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC"},function(x){if(void 0!==e&&void 0!==f){var y=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,"0");y=bw(cw(x,"media"),f,y)}else y=Pv.resolve(void 0);var B=Fla(a,b.isVideo()),G=Fla(a,!b.isVideo()),
H={fmts:Gla(d),format:c||{}};B=bw(cw(x,"index"),H,B);var I=-1===d.downloadedEndTime;x=I?cw(x,"index").get(G):Pv.resolve(void 0);return Pv.all([x,y,B]).then(function(M){M=g.q(M).next().value;var L=VG(a);4!==L&&I&&void 0!==M&&Bla(M.fmts)&&(L=1,WG(a,L));return L})}),5);
case 5:return u.return(u.l);case 3:r=va(u);t=VG(a);if(4===t)return u.return(t);WG(a,4);throw r;}})})};
Hla=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){if(1==e.i)return g.w(e,(0,g.XG)(),2);d=e.l;return e.return(aw(d,["index"],"readonly",function(f){var h=IDBKeyRange.bound(a+"|",a+"~");return cw(f,"index").getAll(h).then(function(l){return l.map(function(m){return m?m.format:{}})})}))})})};
Ila=function(a,b,c,d){return g.D(this,function f(){var h;return g.z(f,function(l){if(1==l.i)return g.w(l,(0,g.XG)(),2);h=l.l;return l.return(aw(h,["media"],"readonly",function(m){var n=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return cw(m,"media").get(n)}))})})};
Jla=function(a){return g.D(this,function c(){return g.z(c,function(d){WG(a,0);return d.return(Ala(a))})})};
Kla=function(){return g.D(this,function b(){return g.z(b,function(c){var d=TG();d&&d.remove("yt-player-lv");return g.w(c,zla().delete(),0)})})};
Bla=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
Fla=function(a,b){return""+a+"|"+(b?"v":"a")};
Gla=function(a){var b={};return Xr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
Lla=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=qF(a.ustreamerConfig))};
g.ZG=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.i=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null};
g.aH=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.$G(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.i,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.bH=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.$G=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
Pla=function(a,b,c,d){a||(a=b&&Mla.hasOwnProperty(b)&&Nla.hasOwnProperty(b)?Nla[b]+"_"+Mla[b]:void 0);b=a;if(!b)return null;a=b.match(Ola);if(!a||5!==a.length)return null;if(a=b.match(Ola)){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};
dH=function(a){for(var b={},c=g.q(Object.keys(cH)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[cH[d]];e&&(b[d]=e)}return b};
Qla=function(a,b){for(var c={},d=g.q(Object.keys(cH)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.zz(f)&&(c[cH[e]]=f)}return c};
eH=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.q(Object.keys(Rla)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Rla[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Sla(h.url);g.zz(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Sla(a.url),g.zz(a)&&(b["maxresdefault.jpg"]=a));return b};
Sla=function(a){return a.startsWith("//")?"https:"+a:a};
Ula=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Tla[a];return null};
fH=function(a){return a&&a.baseUrl||""};
gH=function(a){a=g.$r(a);for(var b=g.q(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};
Vla=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Ea=b)};
Xla=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Wla(d.baseUrl);if(!e)return;d=new g.ZG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Pz(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.aA=b.audioTracks||[];a.XH=b.defaultAudioTrackIndex||0;a.bA=b.translationLanguages?g.Oe(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Pz(f.languageName)}}):
[];
a.Nk=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Yla=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=h.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=h.playerVars)return Object.assign({is_yto_interstitial:!0},Yr(h))});
d=g.q(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,sj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,sj: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,
sj:0===f?5:7})}}};
Zla=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
$la=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)};
fma=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=Yr(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=ama[c]);(c=a.projectionType)&&(b.projection_type=bma[c]);(c=a.stereoLayout)&&(b.stereo_layout=cma[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=dma[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(hH[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=Ula(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=ema[a])&&(b.primaries=a);return g.ri(b)};
iH=function(a){g.Q.call(this);this.i=null;this.u=new yr;this.i=null;this.J=new Set;this.C=a||""};
gma=function(a,b,c){for(c=jH(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.kH(d,b)))return d;c--}return g.kH(a.levels[0],b)};
ima=function(a,b,c){c=jH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),xr(d.u,f,{hI:f,sI:e}))}hma(a)};
hma=function(a){if(!a.i&&!a.u.isEmpty()){var b=a.u.remove();a.i=jma(a,b)}};
jma=function(a,b){var c=document.createElement("img");a.C&&(c.crossOrigin=a.C);c.src=kma(a.levels[b.hI],b.sI);c.onload=function(){var d=b.hI,e=b.sI;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);hma(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.fB()-1);e=[e,d];a.W("l",e[0],e[1])};
return c};
g.lH=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.u=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.i=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d};
kma=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.ti(c,{sigh:a.signature}));return Dz(c)};
g.kH=function(a,b){b>=a.kz()&&a.Sr();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Sr()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:kma(a,c),column:b,columns:h,row:e,rows:d,tx:a.width*h,sx:a.height*d}};
mH=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;iH.call(this,c);this.isLive=d;this.K=!!e;this.levels=this.l(a,b);this.B=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
lma=function(a,b,c){return(a=a.levels[b])?a.hv(c):-1};
jH=function(a,b){var c=a.B.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.B.set(b,d),d;a.B.set(b,c-1);return c-1};
nH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.lH.call(this,a,b,c,0);this.l=null;this.G=d?2:0};
oH=function(a,b,c,d){mH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].wE(c)};
mma=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.ti(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
nma=function(a){navigator.mediaCapabilities?pH(a.videoInfos).then(function(){return a},function(){return a}):Xs(a)};
pH=function(a){var b=navigator.mediaCapabilities;if(!b)return Xs(a);var c=a.map(function(d){var e;if(e=b)d.video?(e=d.video,d={type:"media-source",video:{contentType:d.mimeType,width:e.width||640,height:e.height||360,bitrate:8*d.Ib||1E6,framerate:e.fps||30}}):d.audio?(e=d.audio,d={type:"media-source",audio:{contentType:d.mimeType,channels:e.i||2,bitrate:8*d.Ib||128E3,samplerate:e.sampleRate||44100}}):d=null,e=b.decodingInfo(d);return e});
return Xg(c).then(function(d){for(var e=0;e<d.length;e++)a[e].u=d[e].smooth,a[e].l=d[e].powerEfficient,a[e].isSupported=d[e].supported;return a},function(){return a})};
g.rH=function(a,b){g.Q.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.JF=this.Lk=this.adQueryId=this.Kk=null;this.Wz={start:NaN,end:NaN};this.us="";this.Jd=null;this.dA=this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Aa="";this.Zz=this.Mk=!1;this.fL=null;this.gi=this.dd=this.Ai=this.EC=!1;this.J=null;this.LF=this.nf=!1;this.Ji=NaN;this.yj=!1;this.Oz=0;this.GF=!1;this.Wo={};this.cz=this.cycToken=null;this.author="";this.Sp=0;this.uj=
!1;this.Rp=null;this.Jz=[];this.Xn=this.gI=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Hb=this.Ac="";this.contentCheckOk=!1;this.endSeconds=this.wb=0;this.HF=this.Ob=this.l=this.OA=null;this.BB="";this.ma=!1;this.rj=this.Hk=0;this.Yz=this.pipable=this.Zj=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.yb=this.isPrivate=this.isListed=this.OB=this.OF=this.mutedAutoplay=this.pk=!1;this.NC="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=
this.isLiveDefaultBroadcast=this.XB=this.Fi=this.Le=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.Md=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.jb=0;this.reloadReason="";this.hC=this.eL=this.Id=!1;this.keywords={};this.eb="";this.Hi=0;this.Kp=!1;this.liveChunkReadahead=NaN;this.uf=null;this.cq=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.Vh=[];this.Y=[];this.racyCheckOk=!1;this.kE=
{};this.Du=0;this.u=null;this.autonavState=1;this.aG=null;this.shortDescription="";this.Ya=this.Yy=!1;this.Hp=this.Jb=this.startSeconds=0;this.Lp=this.UG=this.Mp=qH;this.suggestions=null;this.Rz=this.Tz=void 0;this.Ah=null;this.bz=!1;this.expandedSubtitle=this.Tk=this.subtitle=this.title="";this.qf=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.cA=void 0;this.Jk=[];this.hlsFormats=this.Bh="";this.Oo=this.Gp=this.mf=this.qb=this.La=this.zj=this.Bo=null;this.Gh="vvt";this.Vb=!1;this.Nz=
null;this.dG="";this.Kj=NaN;this.Jn=this.Gn=this.Fn=this.En=this.Dn=this.Jj=this.Hj=this.In=this.Ij=this.Hn="";this.Ci=null;this.CF=!1;this.K={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.BJ=this.DI=NaN;this.Kb=this.Gi=this.xc=this.MK=this.PJ=!1;this.Aj=!0;this.Bb={};this.captionTracks=[];this.aA=[];this.XH=0;this.bA=[];this.Nk=!1;this.vj=new PA("und",new XD("Default","und",!0));this.MC=0;this.G=null;this.yf=[];this.uA=!1;this.wc=[];this.Np=this.Tc="";this.slotPosition=-1;
this.breakType=0;this.watchNextResponse=this.playerResponse=this.pI=this.lp=this.wj=this.Kg=this.lA=this.Xz=this.Vz=null;this.Qk=!1;this.U=null;this.isInlinePlaybackNoAd=this.rf=this.useCobaltWidevine=this.EF=this.So=this.X=!1;this.pF=this.rF=NaN;this.defraggedFromSubfragments=this.Wj=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.gs=this.Lz=this.cd=!1;this.interstitials=[];this.C=this.SB=!1;this.Ii=this.bE=this.Da="";this.Uo=null;this.Wc="";this.Ua=this.UJ=!1;this.aE=this.Gj=
"";this.WD=this.ND=this.NB=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Bj=!1;this.uh=this.lf=!0;this.errorDetail=this.userGenderAge="";this.ez=this.fz=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Qh=this.errorReason=this.errorCode=null;this.Pk=this.Ok="";this.Rk=!1;this.FF=this.vF=this.tF=this.gg=this.Vd=0;this.fetchType=
null;this.lE=!0;this.KF=void 0;this.NF=-1;this.rh=this.Nb=!1;this.Gc=null;this.bb="";this.tf=!1;this.Z("web_player_ux_module_wait")&&this.B.jb&&this.Y.push("ux");this.Nb=this.Z("web_new_autonav_countdown");this.rh=this.Z("web_new_big_thumbnail_endscreen");oma(this,b)};
g.uH=function(a,b,c,d){b&&b.cpn&&g.Ux(new g.Gv("CPN provided in VideoData update",{S7:b.cpn,Mf:a.clientPlaybackNonce,I7:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.Qh=null);c?(HF(b),oma(a,b),sH(a)&&tH(a)):(b=b||{},pma(a,b),qma(a,b),rma(a,b),a.W("dataupdated"))};
rma=function(a,b){a.fflags=FF(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Aa=Dz(c));a.Mk=CF(a.Mk,b.iv_ads_only);a.Zz=CF(a.Zz,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.cQ=c;a.isPharma=CF(a.isPharma,b.is_pharma);a.author=FF(a.author,b.author);a.Ac=Wla(b.ttsurl)||a.Ac;a.uj=CF(a.uj,b.cc_asr);a.Hb=FF(a.Hb,b.channel_path);a.channelBanner=FF(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.rg=FF(a.rg,c);a.videoCountText=FF(a.videoCountText,b.video_count_text);a.autonavState=
DF(a.autonavState,b.autonav_state,sma);a.clientPlaybackNonce=FF(a.clientPlaybackNonce,b.cpn);a.subscribed=CF(a.subscribed,b.subscribed);a.rawViewCount=EF(a.rawViewCount,b.view_count);a.shortViewCount=FF(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=FF(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=FF(a.lengthText||"",b.lengthText);a.Yw=FF(a.Yw||"",b.Yw);a.ys=FF(a.ys||"",b.ys);a.title=FF(a.title,b.title);a.subtitle=FF(a.subtitle,b.subtitle);a.Tk=FF(a.Tk,b.expanded_title);
a.expandedSubtitle=FF(a.expandedSubtitle,b.expanded_subtitle);a.us=FF(a.us,b.aria_label);a.ypcPreview=FF(a.ypcPreview,b.ypc_preview);a.Pz=FF(a.Pz,b.ypc_origin);a.Vb=CF(a.Vb,b.ypc_is_premiere_trailer);a.Gj=FF(a.Gj,b.ypc_clickwrap_message);a.paygated=CF(a.paygated,b.paygated);a.CF=CF(a.CF,b.requires_purchase);a.showShareButton=!CF(!a.showShareButton,b.ss);a.lf=CF(a.lf,b.showwatchlater);a.uh=CF(a.uh,b.shownotifybutton);a.Bj=CF(a.Bj,b.copy_share);if(c=b.keywords)a.keywords=tma(c.split(","));if(c=b.rvs)a.suggestions=
Zr(c);a.contentCheckOk=CF(a.contentCheckOk,b.cco);a.racyCheckOk=CF(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=CF(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=FF(a.oauthToken,b.oauth_token);a.eb=FF(a.eb,b.kpt);a.visitorData=FF(a.visitorData,b.visitor_data);if(c=b.session_data)a.Qd=Wr(c,"&");if(c=b.endscreen_autoplay_session_data)a.OA=Wr(c,"&");a.Sk=FF(a.Sk,b.endscreen_ad_tracking_data);a.MF=CF(a.MF,b.wait_for_vast_info_cards_xml);a.Zy=CF(a.Zy,b.suppress_creator_endscreen);a.cL=CF(a.cL,
b.is_trueview_action);a.IF=FF(a.IF,b.tracking_list);a.Ok=FF(a.Ok,b.clip);a.Pk=FF(a.Pk,b.clipt);uma(a,b)};
oma=function(a,b){var c,d,e,f;b=b||{};var h=b.errordetail;null!=h&&(a.errorDetail=h);var l=b.errorcode;null!=l?a.errorCode=l:"fail"==b.status&&(a.errorCode="150");var m=b.reason;null!=m&&(a.errorReason=m);var n=b.subreason;null!=n&&(a.Qh=n);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||zx());a.yb=CF(a.B.zj,b.livemonitor);pma(a,b);var p=b.raw_player_response;if(!p){var r=b.player_response;r&&(p=JSON.parse(r))}p&&(a.playerResponse=p);if(a.playerResponse){var t=a.playerResponse.annotations;if(t)for(var u=
g.q(t),x=u.next();!x.done;x=u.next()){var y=x.value.playerAnnotationsUrlsRenderer;if(y){y.adsOnly&&(a.Mk=!0);y.allowInPlaceSwitch&&(a.Zz=!0);var B=y.loadPolicy;B&&(a.annotationsLoadPolicy=vma[B]);var G=y.invideoUrl;G&&(a.Aa=Dz(G));a.EC=!0;break}}var H=a.playerResponse.attestation;H&&Vla(a,H);var I=a.playerResponse.cotn;I&&(a.cotn=I);var M=a.playerResponse.heartbeatParams;if(M){var L,da=M.heartbeatToken;da&&(a.drmSessionId=M.drmSessionId||"",a.heartbeatToken=da,a.DI=Number(M.intervalMilliseconds),
a.BJ=Number(M.maxRetries),a.PJ=!!M.softFailOnError,a.MK=!!M.useInnertubeHeartbeatsForDrm,a.Ai=!0);a.heartbeatServerData=M.heartbeatServerData;a.Z("heartbeat_iff_heartbeat_params_filled")&&(a.Ai=!0);a.yj=!(null===(L=M.heartbeatAttestationConfig)||void 0===L||!L.requiresAttestation)}var Ba=a.playerResponse.messages;Ba&&Zla(a,Ba);var za=a.playerResponse.multicamera;if(za){var ed=za.playerLegacyMulticameraRenderer;if(ed){var We=ed.metadataList;We&&(a.aE=We,a.wc=Zr(We))}}var oc=a.playerResponse.overlay;
if(oc){var Ee=oc.playerControlsOverlayRenderer;if(Ee){var Fd=Ee.controlBgHtml;null!=Fd?(a.Da=Fd,a.C=!0):(a.Da="",a.C=!1);if(Ee.mutedAutoplay){var Hh=Ee.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(Hh&&Hh.endScreen){var Pg=Hh.endScreen.playerMutedAutoplayEndScreenRenderer;Pg&&Pg.text&&(a.bE=g.Pz(Pg.text))}}else a.mutedAutoplay=!1}}var jc=a.playerResponse.playabilityStatus;if(jc){var Xl=jc.backgroundability;Xl&&Xl.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Yl=jc.offlineability;
Yl&&Yl.offlineabilityRenderer.offlineable&&(a.offlineable=!0);var Zl=jc.contextParams;Zl&&(a.contextParams=Zl);var vf=jc.pictureInPicture;vf&&vf.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);jc.playableInEmbed&&(a.allowEmbed=!0);var Ka=jc.ypcClickwrap;if(Ka){var wf=Ka.playerLegacyDesktopYpcClickwrapRenderer,be=Ka.ypcRentalActivationRenderer;if(wf)a.Gj=wf.durationMessage||"",a.gi=!0;else if(be){var ky=be.durationMessage;a.Gj=ky?g.Pz(ky):"";a.gi=!0}}var Ih=jc.errorScreen;if(Ih){if(Ih.playerLegacyDesktopYpcTrailerRenderer){var fd=
Ih.playerLegacyDesktopYpcTrailerRenderer;a.Jn=fd.trailerVideoId||"";var ts=Ih.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var $l=ts&&ts.ypcTrailerRenderer}else if(Ih.playerLegacyDesktopYpcOfferRenderer)fd=Ih.playerLegacyDesktopYpcOfferRenderer;else if(Ih.ypcTrailerRenderer){$l=Ih.ypcTrailerRenderer;var us=$l.fullVideoMessage;a.Hj=us?g.Pz(us):""}fd&&(a.Fn=fd.itemTitle||"",fd.itemUrl&&(a.Gn=fd.itemUrl),fd.itemBuyUrl&&(a.Dn=fd.itemBuyUrl),a.En=fd.itemThumbnail||"",a.In=fd.offerHeadline||"",a.Ij=
fd.offerDescription||"",a.Jj=fd.offerId||"",a.Hn=fd.offerButtonText||"",a.Nz=fd.offerButtonFormattedText||null,a.Kj=fd.overlayDurationMsec||NaN,a.Hj=fd.fullVideoMessage||"",a.dd=!0);if($l){var ly=$l.unserializedPlayerResponse;if(ly)a.Ci={raw_player_response:ly};else{var my=$l.playerVars;a.Ci=my?Yr(my):null}a.dd=!0}}}var Xe=a.playerResponse.playbackTracking;if(Xe){var ny=b,oy=fH(Xe.googleRemarketingUrl);oy&&(a.googleRemarketingUrl=oy);var py=fH(Xe.youtubeRemarketingUrl);py&&(a.youtubeRemarketingUrl=
py);var vs=fH(Xe.ptrackingUrl);if(vs){var Co=gH(vs),Do=Co.oid;Do&&(a.dE=Do);var qy=Co.pltype;qy&&(a.eE=qy);var ry=Co.ptchn;ry&&(a.cE=ry);var Jh=Co.ptk;Jh&&(a.Vo=encodeURIComponent(Jh))}var sy=fH(Xe.ppvRemarketingUrl);sy&&(a.ppvRemarketingUrl=sy);var ws=fH(Xe.qoeUrl);if(ws){for(var hk=g.$r(ws),dG=g.q(Object.keys(hk)),ty=dG.next();!ty.done;ty=dG.next()){var xs=ty.value,ys=hk[xs];hk[xs]=Array.isArray(ys)?ys.join(","):ys}var uy=hk.cat;uy&&(a.Ii=uy);var zs=hk.live;zs&&(a.NC=zs);var Eo=hk.drm_product;Eo&&
(a.dA=Eo)}var ik=fH(Xe.remarketingUrl);if(ik){a.remarketingUrl=ik;var gd=gH(ik);gd.foc_id&&(a.K.focEnabled=!0);var Qg=gd.data;Qg&&(a.K.rmktEnabled=!0,Qg.engaged&&(a.K.engaged="1"));a.K.baseUrl=ji(ik)+fi(g.hi(5,ik))}var As=fH(Xe.videostatsPlaybackUrl);if(As){var hd=gH(As),Bs=hd.adformat;if(Bs&&(ny.adformat=Bs,!a.Z("process_video_data_ad_format_in_player_tracking_killswitch"))){var vy=a.T(),wy=Pla(Bs,a.Np,vy.l,vy.u);wy&&(a.adFormat=wy)}var Cs=hd.aqi;Cs&&(ny.ad_query_id=Cs);var Ds=hd.autoplay;Ds&&(a.pk=
"1"==Ds);var yy=hd.autonav;yy&&(a.Zj="1"==yy);var zy=hd.delay;zy&&(a.wb=td(zy));var Ay=hd.ei;Ay&&(a.eventId=Ay);"adunit"===hd.el&&(a.pk=!0);var Es=hd.feature;Es&&(a.DF=Es);var Fs=hd.list;Fs&&(a.playlistId=Fs);var eG=hd.of;eG&&(a.PP=eG);var am=hd.osid;am&&(a.osid=am);var jk=hd.referrer;jk&&(a.referrer=jk);var Gs=hd.sdetail;Gs&&(a.BF=Gs);var By=hd.sourceid;By&&(a.e8=By);var Cy=hd.ssrt;Cy&&(a.Mz="1"==Cy);var Hs=hd.subscribed;Hs&&(a.subscribed="1"==Hs,a.K.subscribed=Hs);var Dy=hd.uga;Dy&&(a.userGenderAge=
Dy);var fG=hd.upt;fG&&(a.QP=fG);var Ye=hd.vm;Ye&&(a.videoMetadata=Ye)}var Is=fH(Xe.videostatsWatchtimeUrl);if(Is){var gG=gH(Is).ald;gG&&(a.dO=gG)}if(Xe.promotedPlaybackTracking){var oe=Xe.promotedPlaybackTracking;oe.startUrls&&(a.qp=oe.startUrls);oe.firstQuartileUrls&&(a.ZD=oe.firstQuartileUrls);oe.secondQuartileUrls&&(a.Vy=oe.secondQuartileUrls);oe.thirdQuartileUrls&&(a.Wy=oe.thirdQuartileUrls);oe.completeUrls&&(a.YD=oe.completeUrls);oe.engagedViewUrls&&(1<oe.engagedViewUrls.length&&g.Ux(new g.Gv("There are more than one engaged_view_urls.")),
a.fg=oe.engagedViewUrls[0])}}var Js=a.playerResponse.playerAds;if(Js)for(var ce=b,Ey=g.q(Js),Fo=Ey.next();!Fo.done;Fo=Ey.next()){var Fy=Fo.value;if(Fy){var Ks=Fy.playerLegacyDesktopWatchAdsRenderer;if(Ks){var kk=Ks.playerAdParams;if(kk){"1"==kk.autoplay&&(a.pk=!0);a.Lk=kk.encodedAdSafetyReason||null;void 0!==kk.showContentThumbnail&&(a.Aj=!!kk.showContentThumbnail);ce.enabled_engage_types=kk.enabledEngageTypes;break}}}}var de=a.playerResponse.playerConfig;if(de){var lk=de.manifestlessWindowedLiveConfig;
if(lk){var Gy=Number(lk.minDvrSequence),Hy=Number(lk.maxDvrSequence),Ls=Number(lk.minDvrMediaTimeMs),Ii=Number(lk.maxDvrMediaTimeMs),Iy=Number(lk.startWalltimeMs);Gy&&(a.Vd=Gy);Ls&&(a.vF=Ls/1E3);Hy&&(a.gg=Hy);Ii&&(a.tF=Ii/1E3);Iy&&(a.FF=Iy/1E3)}var Go=de.daiConfig;if(Go&&Go.enableDai){a.Md=!0;var hG=Go.enableServerStitchedDai;hG&&(a.enableServerStitchedDai=hG)}var Ji=de.audioConfig;if(Ji){var Jy=Ji.loudnessDb;null!=Jy&&(a.Ji=Jy);Ji.audioMuted&&(a.nf=!0);Ji.muteOnStart&&(a.LF=!0)}var Ky=de.playbackEndConfig;
if(Ky){var Ly=Ky.endSeconds;Ly&&a.mutedAutoplay&&(a.endSeconds=Ly)}var Ho=de.fairPlayConfig;if(Ho){var My=Ho.certificate;My&&(a.Ob=qF(My));var Ny=Number(Ho.keyRotationPeriodMs);0<Ny&&(a.WO=Ny);var Oy=Number(Ho.keyPrefetchMarginMs);0<Oy&&(a.uO=Oy)}var Ki=de.playbackStartConfig;if(Ki){a.WD=Number(Ki.startSeconds);var Io=Ki.liveUtcStartSeconds,gS=!1;a.Z("html5_start_seconds_priority")&&(gS=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);Io&&!gS&&(a.liveUtcStartSeconds=Number(Io));var hS=Ki.startPosition;
if(hS){var fba=hS.utcTimeMillis;fba&&!gS&&(a.liveUtcStartSeconds=.001*Number(fba));var gba=hS.streamTimeMillis;gba&&(a.Hp=.001*Number(gba))}a.progressBarStartPosition=Ki.progressBarStartPosition;a.progressBarEndPosition=Ki.progressBarEndPosition}else{var iS=de.skippableSegmentsConfig;if(iS){var hba=iS.introSkipDurationMs;hba&&(a.NB=Number(hba)/1E3);var iba=iS.outroSkipDurationMs;iba&&(a.ND=Number(iba)/1E3)}}var jS=de.skippableIntroConfig;if(jS){var jba=Number(jS.startMs),kba=Number(jS.endMs);isNaN(jba)||
isNaN(kba)||(a.rF=jba,a.pF=kba)}var lba=de.streamSelectionConfig;lba&&(a.rj=Number(lba.maxBitrate));var mba=de.vrConfig;mba&&(a.So="1"==mba.partialSpherical);var Py=de.webDrmConfig;if(Py){Py.skipWidevine&&(a.EF=!0);var nba=Py.widevineServiceCert;nba&&(a.HF=qF(nba));Py.useCobaltWidevine&&(a.useCobaltWidevine=!0);Py.startWithNoQualityConstraint&&(a.rf=!0)}var oba=de.mediaCommonConfig;if(oba){var iG=oba.dynamicReadaheadConfig;iG&&(a.maxReadAheadMediaTimeMs=iG.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=
iG.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=iG.readAheadGrowthRateMs||NaN)}}var mk=a.playerResponse.streamingData;if(mk){var pba=mk.adaptiveFormats;if(pba){for(var qba=[],rba=g.q(pba),Kh=rba.next();!Kh.done;Kh=rba.next()){var jG=Kh.value;qba.push(fma(jG));var sba=jG.loudnessDb;jG.itag&&null!=sba&&(a.Wo[jG.itag.toString()]=sba)}a.adaptiveFormats=qba.join(",")}var kS=mk.formats;if(kS){var Qy=[],tba=g.q(kS);for(Kh=tba.next();!Kh.done;Kh=tba.next()){var lS=Kh.value;Qy.push(lS.itag+"/"+lS.width+
"x"+lS.height)}a.BB=Qy.join(",");Qy=[];var uba=g.q(kS);for(Kh=uba.next();!Kh.done;Kh=uba.next()){var Ms=Kh.value,Ry={itag:Ms.itag,type:Ms.mimeType,quality:Ms.quality},vba=Ms.url;vba&&(Ry.url=vba);var wba=Ms.cipher||Ms.signatureCipher;if(wba){var mS=Yr(wba);Ry.sp=mS.sp;Ry.s=mS.s;Ry.url=mS.url}Qy.push(g.ri(Ry))}a.Bh=Qy.join(",")}var nS=mk.hlsFormats;if(nS){var xba=de||null,kG={};if(xba){var oS=xba.audioPairingConfig;if(oS&&oS.pairs)for(var yba=g.q(oS.pairs),pS=yba.next();!pS.done;pS=yba.next()){var zba=
pS.value,qS=zba.videoItag;kG[qS]||(kG[qS]=[]);kG[qS].push(zba.audioItag)}}for(var Aba={},Bba=g.q(nS),Jo=Bba.next();!Jo.done;Jo=Bba.next()){var Cba=Jo.value;Aba[Cba.itag]=Cba.bitrate}var Dba=[],Eba=g.q(nS);for(Jo=Eba.next();!Jo.done;Jo=Eba.next()){var xf=Jo.value,Li={itag:xf.itag,type:xf.mimeType,url:xf.url,bitrate:xf.bitrate,width:xf.width,height:xf.height,fps:xf.fps},lG=xf.audioTrack;if(lG){var Fba=lG.displayName;Fba&&(Li.name=Fba,Li.audio_track_id=lG.id,lG.audioIsDefault&&(Li.is_default="1"))}if(xf.drmFamilies){for(var Gba=
[],Hba=g.q(xf.drmFamilies),rS=Hba.next();!rS.done;rS=Hba.next())Gba.push(hH[rS.value]);Li.drm_families=Gba.join(",")}var mG=kG[xf.itag];if(mG&&mG.length){Li.audio_itag=mG.join(",");var Iba=Aba[mG[0]];Iba&&(Li.bitrate+=Iba)}var Jba=Ula(xf);Jba&&(Li.eotf=Jba);xf.audioChannels&&(Li.audio_channels=xf.audioChannels);Dba.push(g.ri(Li))}a.hlsFormats=Dba.join(",")}var sS=mk.licenseInfos;if(sS&&0<sS.length){for(var Kba={},Lba=g.q(sS),tS=Lba.next();!tS.done;tS=Lba.next()){var Mba=tS.value,Nba=Mba.drmFamily,
Oba=Mba.url;Nba&&Oba&&(Kba[hH[Nba]]=Oba)}a.Jd=Kba}var Pba=mk.drmParams;Pba&&(a.drmParams=Pba);var Qba=mk.dashManifestUrl;Qba&&(a.Pa=g.ti(Qba,{cpn:a.clientPlaybackNonce}));var Rba=mk.hlsManifestUrl;Rba&&(a.hlsvp=Rba);var Sba=mk.probeUrl;Sba&&(a.probeUrl=Dz(g.ti(Sba,{cpn:a.clientPlaybackNonce})))}var Tba=a.playerResponse.trackingParams;Tba&&(a.Ga=Tba);var pc=a.playerResponse.videoDetails;if(pc){var Mi=b,uS=pc.videoId;uS&&(a.videoId=uS,Mi.video_id||(Mi.video_id=uS));var Uba=pc.channelId;Uba&&(a.K.uid=
Uba.substr(2));var vS=pc.title;vS&&(a.title=vS,Mi.title||(Mi.title=vS));var wS=pc.lengthSeconds;wS&&(a.lengthSeconds=Number(wS),Mi.length_seconds||(Mi.length_seconds=wS));var Vba=pc.keywords;Vba&&(a.keywords=tma(Vba));var xS=pc.channelId;xS&&(a.Fh=xS,Mi.ucid||(Mi.ucid=xS));var Wba=pc.viewCount;Wba&&(a.rawViewCount=Number(Wba));var yS=pc.author;yS&&(a.author=yS,Mi.author||(Mi.author=yS));var Xba=pc.shortDescription;Xba&&(a.shortDescription=Xba);var Yba=pc.isCrawlable;Yba&&(a.isListed=Yba);var Zba=
pc.musicVideoType;Zba&&(a.musicVideoType=Zba);var zS=pc.isLive;null!=zS&&(a.isLivePlayback=zS);if(zS||pc.isUpcoming)a.isPremiere=!pc.isLiveContent;var $ba=pc.thumbnail;$ba&&(a.Bb=eH($ba));var aca=de||null,AS=b;pc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);pc.isUpcoming&&(a.isUpcoming=!0);if(pc.isPostLiveDvr)a.Le=!0;else{var BS=!1;if(a.yb)a.allowLiveDvr=vH(!0),a.isLivePlayback=!0;else if(pc.isLive){AS.livestream="1";a.allowLiveDvr=vH(!!pc.isLiveDvrEnabled);a.va=27;pc.isLowLatencyLiveStream&&
(a.isLowLatencyLiveStream=!0);var bca=pc.latencyClass;bca&&(a.latencyClass=wma[bca]||"UNKNOWN");var cca=pc.liveChunkReadahead;cca&&(a.liveChunkReadahead=cca);var Sy=aca&&aca.livePlayerConfig;if(Sy){Sy.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Sy.hasSubfragmentedWebm&&(a.Wj=!0);Sy.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var dca=Sy.liveExperimentalContentId;dca&&(a.liveExperimentalContentId=Number(dca))}BS=!0}else pc.isUpcoming&&(BS=!0);BS&&(a.isLivePlayback=!0,AS.adformat&&
"8"!==AS.adformat.split("_")[1]||a.Y.push("heartbeat"),a.Z("heartbeat_iff_heartbeat_params_filled")||(a.Ai=!0))}var eca=pc.isPrivate;eca&&(a.isPrivate=CF(a.isPrivate,eca))}if(jc){var fca=pc||null,gca=!1,Ns=jc.errorScreen;gca=Ns&&(Ns.playerLegacyDesktopYpcOfferRenderer||Ns.playerLegacyDesktopYpcTrailerRenderer||Ns.ypcTrailerRenderer)?!0:fca&&fca.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(jc.status);if(!gca){a.errorCode="150";var nG=Ns&&Ns.playerErrorMessageRenderer;if(nG){a.playerErrorMessageRenderer=
nG;var hca=nG.reason;hca&&(a.errorReason=g.Pz(hca));var DS=nG.subreason;DS&&(a.Qh=g.Pz(DS),a.xo=DS)}else a.errorReason=jc.reason||null;var ES=jc.status;if("LOGIN_REQUIRED"===ES)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===ES)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===ES){var ica=jc.errorScreen,jca=ica&&ica.playerKavRenderer;a.errorDetail=jca&&jca.kavUrl?"4":"3"}else a.errorDetail=jc.isBlockedInRestrictedMode?"5":"0"}}var kca=a.playerResponse.interstitialPods;kca&&Yla(a,kca);a.Aa&&a.eventId&&
(a.Aa=cs(a.Aa,{ei:a.eventId}));if(a.Z("web_player_force_premiere_to_use_live_caption")&&g.SF(a.B)&&qt&&a.isPremiere&&!CF(!1,b.mdx))a.Ja("cc","ignoreVodTrack");else{a.Ja("cc","useVodTrack");var GS=a.playerResponse.captions;GS&&GS.playerCaptionsTracklistRenderer&&Xla(a,GS.playerCaptionsTracklistRenderer)}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.WD=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&
a.accountLinkingConfig.alsParam&&(a.lF=a.accountLinkingConfig.alsParam);a.Z("web_player_include_innertube_commands")&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&$la(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}qma(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var lca=b.hlsdvr;null!=lca&&(a.allowLiveDvr=vH("1"==lca));a.adQueryId=b.ad_query_id||null;
a.Lk||(a.Lk=b.encoded_ad_safety_reason||null);a.JF=b.agcid||null;a.Vz=b.ad_id||null;a.Xz=b.ad_sys||null;a.lA=b.encoded_ad_playback_context||null;a.nf=CF(a.nf,b.infringe||b.muted);a.authKey=b.authkey;a.nF=b.authuser;a.aG=b.autonav_watch_endpoint||null;a.mutedAutoplay=CF(a.mutedAutoplay,b&&b.playmuted)&&a.Z("embeds_enable_muted_autoplay");a.endSeconds=EF(a.endSeconds,a.ND||b.end||b.endSeconds);a.Ga=FF(a.Ga,b.itct);a.OB=CF(a.OB,b.noiba);a.XB=CF(a.XB,b.is_live_destination);a.isLivePlayback=CF(a.isLivePlayback,
b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=CF(a.isUpcoming,b.isUpcoming));a.Le=CF(a.Le,b.post_live_playback);a.isMdxPlayback=CF(a.isMdxPlayback,b.mdx);var oG=b.mdx_control_mode;oG&&(a.mdxControlMode="number"===typeof oG?oG:td(oG));a.isInlinePlaybackNoAd=CF(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.jb=EF(a.jb,b.reload_count);a.reloadReason=FF(a.reloadReason,b.reload_reason);a.Aj=CF(a.Aj,b.show_content_thumbnail);a.hC=
CF(a.hC,b.utpsa);a.bz=CF(a.bz,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.cz=b.tkn||null;var mca=Qla(b);0<Object.keys(mca).length&&(a.Bb=mca);a.xa=FF(a.xa,b.vvt);a.mdxEnvironment=FF(a.mdxEnvironment,b.mdx_environment);a.oQ=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=FF(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?EF(0,b.index):EF(a.playlistIndex,b.index));a.gF=b.pyv_view_beacon_url;a.oF=b.pyv_quartile25_beacon_url;a.qF=b.pyv_quartile50_beacon_url;
a.sF=b.pyv_quartile75_beacon_url;a.mF=b.pyv_quartile100_beacon_url;var nca=b.remarketing_url;nca&&(a.remarketingUrl=nca);var oca=b.ppv_remarketing_url;oca&&(a.ppvRemarketingUrl=oca);var pca=b.session_data;!a.uF&&pca&&(a.uF=Wr(pca,"&").feature);a.isFling=1==EF(a.isFling?1:0,b.is_fling);a.vnd=EF(a.vnd,b.vnd);a.sf=FF(a.sf,b.force_ads_url);a.xg=FF(a.xg,b.ctrl);a.Ff=FF(a.Ff,b.ytr);a.Yk=b.ytrcc;a.wF=b.ytrexp;a.Xy=b.ytrext;a.Tc=FF(a.Tc,b.adformat);a.Np=FF(a.Np,b.attrib);a.slotPosition=EF(a.slotPosition,
b.slot_pos);a.breakType=b.break_type;a.Mz=CF(a.Mz,b.ssrt);a.videoId=HF(b)||a.videoId;a.Va=FF(a.Va,b.vss_credentials_token);a.Gh=FF(a.Gh,b.vss_credentials_token_type);a.cd=CF(a.cd,b.audio_only);a.Lz=CF(a.Lz,b.aac_high);a.gs=CF(a.gs,b.prefer_low_quality_audio);a.Ii=FF(a.Ii,b.qoe_cat);a.Rk=CF(a.Rk,b.download_media);a.Ua=CF(a.Ua,b.prefer_gapless);a:{var HS=a.playerResponse;if(HS&&HS.adPlacements)for(var qca=g.q(HS.adPlacements),IS=qca.next();!IS.done;IS=qca.next()){var pG=IS.value.adPlacementRenderer;
if(null!=pG&&"AD_PLACEMENT_KIND_START"==(pG.config&&pG.config.adPlacementConfig&&pG.config.adPlacementConfig.kind)){var rca=!0;break a}}rca=!1}rca&&(a.adModule=!0,a.Y.push("ad"));var sca=b.adaptive_fmts;sca&&(a.adaptiveFormats=sca);var tca=b.allow_embed;tca&&(a.allowEmbed="1"==tca);var uca=b.backgroundable;uca&&(a.backgroundable="1"==uca);var vca=b.autonav;vca&&(a.Zj="1"==vca);var wca=b.autoplay;wca&&(a.pk="1"==wca);var xca=b.iv_load_policy;xca&&(a.annotationsLoadPolicy=DF(a.annotationsLoadPolicy,
xca,ZF));var yca=b.cc_lang_pref;yca&&(a.captionsLanguagePreference=FF(yca,a.captionsLanguagePreference));var zca=b.cc_load_policy;zca&&(a.Rp=DF(a.Rp,zca,ZF));a.deviceCaptionsOn=null!==(c=b.device_captions_on)&&void 0!==c?c:void 0;a.YH=null!==(d=b.device_captions_lang_pref)&&void 0!==d?d:"";a.Jz=null!==(e=b.viewer_selected_caption_langs)&&void 0!==e?e:[];var Aca=b.cached_load;Aca&&(a.Xn=CF(a.Xn,Aca));"0"==b.dash&&(a.gI=!0);var Bca=b.dashmpd;Bca&&(a.Pa=g.ti(Bca,{cpn:a.clientPlaybackNonce}));var Cca=
b.delay;Cca&&(a.wb=td(Cca));var Dca=a.ND||b.end;void 0!=Dca&&(a.clipEnd=EF(a.clipEnd,Dca));var Eca=b.fmt_list;Eca&&(a.BB=Eca);b.heartbeat_preroll&&a.Y.push("heartbeat");a.Hk=-Math.floor(10*Math.random());a.cq=-Math.floor(40*Math.random());var Fca=b.is_listed;Fca&&(a.isListed=CF(a.isListed,Fca));var Gca=b.is_private;Gca&&(a.isPrivate=CF(a.isPrivate,Gca));var Hca=b.is_dni;Hca&&(a.C=CF(a.C,Hca));var Ica=b.dni_color;Ica&&(a.Da=FF(a.Da,Ica));var Jca=b.pipable;Jca&&(a.pipable=CF(a.pipable,Jca));a.Yz=a.pipable&&
a.B.Sk;a.Yy=a.Yz&&(!a.B.showMiniplayerButton||a.Z("web_player_pip"));var Kca=b.paid_content_overlay_duration_ms;Kca&&(a.paidContentOverlayDurationMs=td(Kca));var Lca=b.paid_content_overlay_text;Lca&&(a.paidContentOverlayText=Lca);var Mca=b.url_encoded_fmt_stream_map;Mca&&(a.Bh=Mca);var Nca=b.hls_formats;Nca&&(a.hlsFormats=Nca);var Oca=b.hlsvp;Oca&&(a.hlsvp=Oca);var qG=b.length_seconds;qG&&(a.lengthSeconds="string"===typeof qG?td(qG):qG);var rG=b.live_start_walltime;rG&&(a.uD="number"===typeof rG?
rG:td(rG));var sG=b.live_manifest_duration;sG&&(a.uf="number"===typeof sG?sG:td(sG));var Pca=b.player_params;Pca&&(a.playerParams=Pca);var Qca=b.partnerid;Qca&&(a.va=EF(a.va,Qca));var Rca=b.probe_url;Rca&&(a.probeUrl=Dz(g.ti(Rca,{cpn:a.clientPlaybackNonce})));var JS=b.pyv_billable_url;JS&&Az(JS)&&(a.fg=JS);var KS=b.pyv_conv_url;KS&&Az(KS)&&(a.hF=KS);uma(a,b);0<a.startSeconds||(a.startSeconds=EF(a.startSeconds,a.WD||a.NB||b.start||b.startSeconds),a.Jb=a.startSeconds);if(a.Z("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&
0<a.liveUtcStartSeconds)){var Sca=b.live_utc_start;if(null!=Sca)a.liveUtcStartSeconds=Number(Sca);else{var LS=a.startSeconds;LS&&isFinite(LS)&&1E9<LS&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Tca=b.utc_start_millis;Tca&&(a.liveUtcStartSeconds=.001*Number(Tca))}}else{var Uca=b.live_utc_start;null!=Uca&&(a.liveUtcStartSeconds=Number(Uca));var Vca=b.utc_start_millis;Vca&&(a.liveUtcStartSeconds=.001*Number(Vca))}var Wca=b.stream_time_start_millis;
Wca&&(a.Hp=.001*Number(Wca));var Xca=a.NB||b.start;void 0==Xca||"1"==b.resume||a.isLivePlayback||(a.clipStart=EF(a.clipStart,Xca));var Yca=b.url_encoded_third_party_media;Yca&&(a.Ah=Zr(Yca));var MS=b.ypc_offer_button_formatted_text;if(MS){var Zca=JSON.parse(MS);a.Nz=null!=Zca?Zca:null;a.dG=MS}var $ca=b.ypc_offer_button_text;$ca&&(a.Hn=$ca);var ada=b.ypc_offer_description;ada&&(a.Ij=ada);var bda=b.ypc_offer_headline;bda&&(a.In=bda);var cda=b.ypc_full_video_message;cda&&(a.Hj=cda);var dda=b.ypc_offer_id;
dda&&(a.Jj=dda);var eda=b.ypc_buy_url;eda&&(a.Dn=eda);var fda=b.ypc_item_thumbnail;fda&&(a.En=fda);var gda=b.ypc_item_title;gda&&(a.Fn=gda);var hda=b.ypc_item_url;hda&&(a.Gn=hda);var ida=b.ypc_vid;ida&&(a.Jn=ida);b.ypc_overlay_timeout&&(a.Kj=Number(b.ypc_overlay_timeout));var jda=b.ypc_trailer_player_vars;jda&&(a.Ci=Yr(jda));var kda=b.ypc_original_itct;kda&&(a.fU=kda);a.Fh=FF(a.Fh,b.ucid);b.baseUrl&&(a.K.baseUrl=b.baseUrl);b.uid&&(a.K.uid=b.uid);b.oeid&&(a.K.oeid=b.oeid);b.ieid&&(a.K.ieid=b.ieid);
b.ppe&&(a.K.ppe=b.ppe);b.engaged&&(a.K.engaged=b.engaged);b.subscribed&&(a.K.subscribed=b.subscribed);a.K.focEnabled=CF(a.K.focEnabled,b.focEnabled);a.K.rmktEnabled=CF(a.K.rmktEnabled,b.rmktEnabled);a.Gp=b.storyboard_spec||null;a.Oo=b.live_storyboard_spec||null;a.fL=b.iv_endscreen_url||null;a.EC=CF(a.EC,b.iv3_module);a.Ai=CF(a.Ai,b.ypc_license_checker_module);a.dd=CF(a.dd,b.ypc_module);a.gi=CF(a.gi,b.ypc_clickwrap_module);a.dd&&a.Y.push("ypc");a.gi&&a.Y.push("ypc_clickwrap");a.kE={video_id:b.video_id,
eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};rma(a,b);var lda=b.cotn;lda&&(a.cotn=lda);xma(a)?
wH(a)&&(a.isLivePlayback&&a.Pa?a.xc=!0:a.Ob&&(a.Gi=!0)):yma(a)?a.xc=!0:!zma(a,a.adaptiveFormats)&&a.Pa&&(a.xc=!0);var OS=b.adpings;OS&&(a.Kk=OS?Yr(OS):null);var pda=b.feature;pda&&(a.DF=pda);var qda=b.referrer;qda&&(a.referrer=qda);a.clientScreenNonce=FF(a.clientScreenNonce,b.csn);a.Du=EF(a.Du,b.root_ve_type);a.Hi=EF(a.Hi,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Kp=CF(a.Kp,b.upg_content_filter_mode);var rda=b.unplugged_location_info;rda&&(a.U=rda);var sda=b.unplugged_partner_opt_out;
sda&&(a.Uz=FF("",sda));a.Qk=CF(a.Qk,b.disable_watch_next);a.xj=FF(a.xj,b.internal_ip_override);a.SB=!!b.is_yto_interstitial;(a.interstitials.length||a.SB)&&a.Y.push("yto");var tda=b.Vh;tda&&(a.Vh=tda);b.oy&&(a.oy=b.oy);a.bb=null!==(f=b.csi_timer)&&void 0!==f?f:"";a.tf=!!b.force_gvi};
qma=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I,M,L=b.raw_watch_next_response;if(!L){var da=b.watch_next_response;da&&(L=JSON.parse(da))}if(L){a.watchNextResponse=L;var Ba=a.watchNextResponse.contents;if(Ba){var za=Ba.singleColumnWatchNextResults;if(za){var ed=EF(0,b.autoplay_count);if(za.autoplay&&za.autoplay.autoplay&&!za.playlist){var We=za.autoplay.autoplay.sets,oc={},Ee={},Fd=null;if(We){for(var Hh=g.q(We),Pg=Hh.next();!Pg.done;Pg=Hh.next()){var jc=Pg.value.autoplayVideoRenderer;if(jc&&
jc.compactVideoRenderer){Fd=jc.compactVideoRenderer;break}}var Xl=We[0].autoplayVideo;if(Xl){var Yl=Xl.clickTrackingParams;Yl&&(oc.itct=Yl);oc.autonav="1";oc.playnext=String(ed)}}else oc.feature="related-auto";if(Fd){Ee.autonav="1";Ee.video_id=Fd.videoId;var Zl=Fd.shortBylineText;Zl&&(Ee.author=g.Pz(Zl));var vf=Fd.title;vf&&(Ee.title=g.Pz(vf))}Ee.endscreen_autoplay_session_data=g.ri(oc);a.suggestions=[Ee]}}var Ka=Ba.twoColumnWatchNextResults}a.NP=!(null===(c=null===Ka||void 0===Ka?void 0:Ka.autoplay)||
void 0===c||!c.autoplay);var wf=a.watchNextResponse.playerOverlays;if(wf){var be=wf.playerOverlayRenderer;if(be){var ky=be.endScreen;if(ky){var Ih=ky.watchNextEndScreenRenderer;if(Ih)var fd=Ih.results}var ts=be.videoDetails;if(ts){var $l=ts.embeddedPlayerOverlayVideoDetailsRenderer;var us=ts.musicEmbeddedPlayerOverlayVideoDetailsRenderer;us&&(a.ZA=us.title,a.JA=us.byline)}var ly=be.actions;if(ly)for(var my=g.q(ly),Xe=my.next();!Xe.done;Xe=my.next()){var ny=Xe.value;ny.likeButtonRenderer&&(a.likeButtonRenderer=
ny.likeButtonRenderer)}var oy=null===(e=null===(d=be.suggestedActionsRenderer)||void 0===d?void 0:d.suggestedActionsRenderer)||void 0===e?void 0:e.suggestedActions;if(oy)for(var py=g.q(oy),vs=py.next();!vs.done;vs=py.next()){var Co=vs.value;if(null===(h=null===(f=Co.suggestedActionRenderer)||void 0===f?void 0:f.trigger)||void 0===h?0:h.suggestedActionTimeRangeTrigger)a.suggestedAction=Co.suggestedActionRenderer}var Do=null===(l=be.decoratedPlayerBarRenderer)||void 0===l?void 0:l.decoratedPlayerBarRenderer;
Do&&(a.multiMarkersPlayerBarRenderer=null===(m=Do.playerBar)||void 0===m?void 0:m.multiMarkersPlayerBarRenderer,a.cA=null===(p=null===(n=Do.playerBar)||void 0===n?void 0:n.chapteredPlayerBarRenderer)||void 0===p?void 0:p.chapters,a.RT=null===(r=Do.playerBarActionButton)||void 0===r?void 0:r.buttonRenderer);g.SF(a.B)&&(a.lf=!!be.addToMenu);Ama(a,be.shareButton);var qy=be.productsInVideoOverlayRenderer;qy&&(a.shoppingOverlayRenderer=qy.shoppingOverlayRenderer);var ry=be.autoplay;if(ry)var Jh=ry.playerOverlayAutoplayRenderer;
a.progressBarStartPosition=be.startPosition;a.progressBarEndPosition=be.endPosition}}if(!fd&&Ka){var sy=Ka.endScreen&&Ka.endScreen.endScreen;sy&&(fd=sy.results)}if(Ka){var ws=Ka.desktopOverlay&&Ka.desktopOverlay.desktopOverlayConfigRenderer;ws&&(ws.suppressShareButton&&(a.showShareButton=!1),ws.suppressWatchLaterButton&&(a.lf=!1))}$l&&Bma(a,b,$l);var hk=EF(0,b.autoplay_count);if(fd){for(var dG=Ka||null,ty=Jh||null,xs=[],ys=!0,uy=g.q(fd),zs=uy.next();!zs.done;zs=uy.next()){var Eo=zs.value,ik=void 0,
gd=null;if(Eo.endScreenVideoRenderer){var Qg=Eo.endScreenVideoRenderer,As=Qg.title;gd={id:Qg.videoId,length_seconds:Qg.lengthInSeconds};var hd=Qg.publishedTimeText;hd&&(gd.publishedTimeText=g.Pz(hd));var Bs=Qg.shortBylineText;Bs&&(gd.author=g.Pz(Bs));var vy=Qg.shortViewCountText;vy&&(gd.short_view_count_text=g.Pz(vy));if(As){gd.title=g.Pz(As);var wy=As.accessibility;if(wy){var Cs=wy.accessibilityData;Cs&&Cs.label&&(gd.aria_label=Cs.label)}}var Ds=Qg.navigationEndpoint;if(Ds){ik=Ds.clickTrackingParams;
var yy=Ds.watchEndpoint;yy&&(gd.PA=yy)}var zy=Qg.thumbnailOverlays;if(zy)for(var Ay=g.q(zy),Es=Ay.next();!Es.done;Es=Ay.next()){var Fs=Es.value.thumbnailOverlayTimeStatusRenderer;if(Fs)if("LIVE"===Fs.style){gd.live_playback="1";break}else if("UPCOMING"===Fs.style){gd.isUpcoming=!0;break}}var eG=eH(Qg.thumbnail),am=dH(eG);am.iurlmq&&(am={iurlmq:am.iurlmq,iurlhq:am.iurlmq});Object.assign(gd,am)}else if(Eo.endScreenPlaylistRenderer){var jk=Eo.endScreenPlaylistRenderer,Gs=jk.navigationEndpoint;if(!Gs)continue;
var By=Gs.watchEndpoint;if(!By)continue;var Cy=By.videoId;gd={list:jk.playlistId,video_id:Cy,playlist_length:jk.videoCount,thumbnail_ids:Cy};var Hs=jk.title;Hs&&(gd.playlist_title=g.Pz(Hs));var Dy=jk.shortBylineText;Dy&&(gd.playlist_author=g.Pz(Dy));ik=Gs.clickTrackingParams;var fG=eH(jk.thumbnail);Object.assign(gd,dH(fG))}gd&&(gd.session_data=g.ri({itct:ik}),ys?(Cma(gd,dG,ty,hk),xs.splice(0,0,gd),ys=!1):xs.push(gd))}a.suggestions=xs}if(Jh){a.lE=!!Jh.preferImmediateRedirect;a.Nb=a.Nb||!!Jh.webShowNewAutonavCountdown;
a.rh=a.rh||!!Jh.webShowBigThumbnailEndscreen;if(a.Nb||a.rh){var Ye=Jh,Is=fd||null,gG=Ka||null,oe,Js,ce={id:Ye.videoId},Ey=null===(Js=null===(oe=null===Is||void 0===Is?void 0:Is[0])||void 0===oe?void 0:oe.endScreenVideoRenderer)||void 0===Js?void 0:Js.navigationEndpoint;Ey&&(ce.session_data=g.ri({itct:Ey.clickTrackingParams}));var Fo=Ye.videoTitle;if(Fo){ce.title=g.Pz(Fo);var Fy=Fo.accessibility;if(Fy){var Ks=Fy.accessibilityData;Ks&&Ks.label&&(ce.aria_label=Ks.label)}}var kk=Ye.byline;kk&&(ce.author=
g.Pz(kk));var de=Ye.publishedTimeText;de&&(ce.publishedTimeText=g.Pz(de));var lk=Ye.shortViewCountText;lk&&(ce.short_view_count_text=g.Pz(lk));var Gy=Ye.thumbnailOverlays;if(Gy)for(var Hy=g.q(Gy),Ls=Hy.next();!Ls.done;Ls=Hy.next()){var Ii=Ls.value.thumbnailOverlayTimeStatusRenderer;if(Ii)if("LIVE"===Ii.style){ce.live_playback="1";break}else if("UPCOMING"===Ii.style){ce.isUpcoming=!0;break}else if("DEFAULT"===Ii.style&&Ii.text){ce.lengthText=g.Pz(Ii.text);var Iy=Ii.text.accessibility;if(Iy){var Go=
Iy.accessibilityData;Go&&Go.label&&(ce.Yw=Go.label)}break}}var hG=eH(Ye.background),Ji=dH(hG);Ji.iurlmq&&(Ji={iurlmq:Ji.iurlmq,iurlhq:Ji.iurlmq});Object.assign(ce,Ji);var Jy=Ye.nextButton;if(Jy){var Ky=Jy.buttonRenderer;if(Ky){var Ly=Ky.navigationEndpoint;if(Ly){var Ho=Ly.watchEndpoint;Ho&&(ce.PA=Ho)}}}if(Ye.topBadges){var My=Ye.topBadges[0];if(My){var Ny=My.metadataBadgeRenderer;Ny&&"BADGE_STYLE_TYPE_PREMIUM"==Ny.style&&(ce.oy=!0)}}var Oy=Ye.alternativeTitle;Oy&&(ce.ys=g.Pz(Oy));Cma(ce,gG,Ye,hk);
a.suggestions||(a.suggestions=[]);a.suggestions[0]=ce}null!=Jh.countDownSecs&&(a.NF=1E3*Jh.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&(a.Bb=eH(a.watchNextResponse.currentVideoThumbnail));if(!a.Z("player_parse_profile_picture_from_watch_next_killswitch")){var Ki=null===(B=null===(y=null===(x=null===(u=null===(t=a.watchNextResponse)||void 0===t?void 0:t.contents)||void 0===u?void 0:u.twoColumnWatchNextResults)||void 0===x?void 0:x.results)||void 0===y?void 0:y.results)||void 0===B?void 0:
B.contents;if(Ki&&Ki[1]){var Io=null===(M=null===(I=null===(H=null===(G=Ki[1].videoSecondaryInfoRenderer)||void 0===G?void 0:G.owner)||void 0===H?void 0:H.videoOwnerRenderer)||void 0===I?void 0:I.thumbnail)||void 0===M?void 0:M.thumbnails;Io&&Io.length&&(a.rg=Io[Io.length-1].url)}}}};
xH=function(a){return!!(a.u&&a.u.videoInfos&&a.u.videoInfos.length)};
BH=function(a){if(a.Z("html5_single_format_policy")&&a.Gc)return a.Gc;var b=a.Ua,c=!!a.i&&(DE(a.i)||EE(a.i)||FE(a.i)),d=a.B,e=!!a.i&&a.i.Sh,f=yH(a),h=a.Lz;a.isAd();var l=a.isOtf(),m=zH(a,"html5_samsung_vp9_live"),n=new mka;if(a.X||g.S(d.experiments,"html5_logging_format_selection"))n.i=!0;n.La=f;n.xa=h&&d.u;ft("windows nt 5.1")&&!g.bj&&(n.u=!0);if(f=c)f=d.Z("disable_html5_ambisonic_audio")||!(g.JG(d)||d.Z("html5_enable_spherical")||d.Z("html5_enable_spherical3d"))?!1:fla(d);f&&(n.Ga=!0);b&&(n.u=!0,
n.qb=!0);l&&!g.S(d.experiments,"html5_otf_prefer_vp9")&&(n.u=!0);dB(d.B,eB.CHANNELS)&&(g.S(d.experiments,"html5_enable_aac51")&&(n.va=!0),g.S(d.experiments,"html5_enable_ac3")&&(n.U=!0),g.S(d.experiments,"html5_enable_eac3")&&(n.Y=!0),g.S(d.experiments,"html5_enable_ac3_gapless")&&(n.Aa=!0));g.S(d.experiments,"html5_block_8k_hfr")&&(n.Ua=!0);n.C=g.T(d.experiments,"html5_max_selectable_quality_ordinal");n.G=g.T(d.experiments,"html5_min_selectable_quality_ordinal");!g.S(d.experiments,"html5_kaios_hd_killswitch")&&
KF&&(n.bb=480);if(e||c)n.Pa=!1;n.Va=!1;b=ZE(d,n.l);0<b&&2160>b&&(qE()||g.S(d.experiments,"html5_format_hybridization"))&&(n.l.supportsChangeType=+qE(),n.J=b);2160<=b&&(n.jb=!0);nka()&&(n.l.serveVp9OverAv1IfHigherRes=0,n.wb=!1);n.yb=m;m=g.tw||vt()&&!m?!1:!0;n.Da=m;n.ma=g.S(d.experiments,"html5_format_hybridization");n.eb=g.S(d.experiments,"html5_offline_av1_fallback");n.X=g.S(d.experiments,"html5_disable_codec_on_errors_with_exp_backoff");n.Ya=g.S(d.experiments,"html5_disable_codec_on_platform_errors");
jt()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.U=!0,n.Y=!0);a.Tz&&(n.K=a.Tz);a.Rz&&(n.B=a.Rz);n.Ea=a.isLivePlayback&&AH(a)&&a.B.Z("html5_drm_live_audio_51");return a.Gc=n};
Ema=function(a){a.Ob||a.i&&fB(a.i);var b={};a.i&&(b=bB(BH(a),a.B.B,a.i,function(c){return a.W("ctmp","fmtflt",c)}));
b=new kF(b,a.B.experiments,a.EF,Dma(a),function(c,d){a.Ja(c,d)});
g.F(a,b);a.Gi=!1;a.ma=!0;qka(b,function(c){for(var d=g.q(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.l=a.Ob;e.J=a.WO;e.G=a.uO;break;case "widevine":e.B=a.HF}a.yf=c;if(0<a.yf.length&&(a.G=a.yf[0],g.CH(a))){c=[];d=g.q(Object.entries(a.G.i));for(e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c.push(h+"_"+f)}a.Ja("drmProbe",c.join("."))}tH(a)})};
Gma=function(a,b){var c;(c=!b)||(c=!(!wH(a)&&a.adaptiveFormats));if(c)return null;zH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(LE=!0);c=DH(b);var d=Date.now();b=JE(c,a.Jd,a.lengthSeconds,a.isLivePlayback,a.Le,a.B);d=Date.now()-d;if(a.Z("html5_log_manifest_performance")){var e=Rja(b)?1:0;a.Ja("mfsp","wasm."+e+";t."+d)}0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=IE(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.Fi=!0)));if(c=b.isManifestless)c=!(a.Z("html5_manifestless_vp9")||
a.Z("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!Fma(b));return c?(b.dispose(),null):b};
zma=function(a,b){b=Gma(a,b);if(!b)return!1;EH(a,b);return!0};
wH=function(a){return jt()?!FH(a):nt()?!(!a.Ob||!a.Z("html5_enable_safari_fairplay")):!1};
FH=function(a){return zH(a,"html5_enable_tvos_dash_dogfood")||a.Z("html5_enable_tvos_dash")&&(a.Z("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
Dma=function(a){return a.useCobaltWidevine?jt()?FH(a):!1:!1};
Fma=function(a){return a.isManifestless&&$D('video/webm; codecs="vp9"')&&g.Hb(a.i,function(b){return RD(b.info)})};
GH=function(a){return!(!a.i||!a.i.isManifestless)};
Hma=function(a){return NA()?a.Z("html5_streaming_debug")||GH(a)&&("ULTRALOW"==a.latencyClass||21530001==HH(a))?!0:window.AbortController?a.Z("html5_streaming_xhr")||a.Z("html5_streaming_xhr_manifestless")&&GH(a)?!0:!1:!1:!1};
Ima=function(a){return lB({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Wj:a.Wj,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:GH(a),sD:Hma(a)})};
HH=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=SE(a.i)?21530001:a.liveExperimentalContentId};
xma=function(a){return jt()&&FH(a)?!1:!nF()||a.gI?!0:!1};
Kma=function(a){a.ma=!0;a.xc=!1;if(yma(a))Hla(a.videoId).then(function(d){Jma(a,d)}).then(function(){tH(a)});
else{yz(a.Pa)||g.Ux(new g.Gv("DASH MPD Origin invalid: ",a.Pa));var b=a.Pa,c=g.T(a.B.experiments,"dash_manifest_version")||4;b=g.ti(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.ti(b,{pacing:0}));aka(b,a.B.experiments,a.isLivePlayback).then(function(d){a.Ha()||(EH(a,d,!0),EA("mrc",void 0,a.bb),tH(a))},function(d){a.Ha()||(a.ma=!1,a.W("dataloaderror",new g.mE("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
EA("mrs",void 0,a.bb)}};
Jma=function(a,b){var c=b.map(function(e){return e.itag}),d=a.playerResponse.streamingData.adaptiveFormats.filter(function(e){return c.includes(e.itag)}).map(function(e){e=Object.assign({},e);
e.url=b.find(function(f){return f.itag===e.itag}).url;
e.signatureCipher="";return fma(e)}).join(",");
d=Gma(a,d);EH(a,d);a.Ja("dlr","")};
tH=function(a){a.Ha()||(a.ma=!1,a.W("dataloaded"))};
EH=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.F(a,b);b.Vd=a.Vd;b.gg=a.gg;b.G=a.vF;b.C=a.tF;g.S(a.B.experiments,"html5_start_walltime_min_seekable_killswitch")||(b.J=a.FF);Lma(a)&&a.Y.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.uf=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.Ja,a),c?b.subscribe("refresh",a.TI,a):b.subscribe("cuepointsadded",a.rG,a));fB(b)&&(a.Gi=!0)};
AH=function(a){return a.Jd?!0:!!a.i&&fB(a.i)};
Qma=function(a,b){if(a.Ha())return Ws();a.u=null;a.La=null;a.qb=null;var c=a.B.deviceParams.c;if(!a.Z("disable_rqs")){c=/UNPLUGGED/.test(c)?256:16;var d=a.B.Hk;a.X=g.CH(a)||1==d[0]&&d[1]<c}return Mma(a,b).then(void 0,function(){return Nma(a,b)}).then(void 0,function(){return Oma(a)}).then(void 0,function(){return Pma(a)})};
Mma=function(a,b){b=b||xma(a);return a.i&&!b?(yH(a)&&eka(a.i,a.isLivePlayback),zH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.B.B.l=!0),Rma(a).then(function(){return jja(BH(a),a.B.B,a.i,a.G,function(c){return a.W("ctmp","fmtflt",c)},a.Z("html5_dynamic_av1_hybrid_threshold")).then(function(c){Sma(a,c);
/^av/.test(a.clientPlaybackNonce)&&a.Gc&&a.Ja("av1",g.nE(a.Gc.l))})})):Ws()};
Rma=function(a){if(!a.i||!a.i.i||!a.Z("html5_use_media_capability"))return Xs();for(var b=[],c=g.q(Object.keys(a.i.i)),d=c.next();!d.done;d=c.next())(d=a.i.i[d.value])&&d.info&&b.push(d.info);return pH(b)};
Nma=function(a,b){var c;if(b&&a.hlsvp)return Ws();if(a.hlsFormats){b=DH(a.hlsFormats);if((null===(c=a.Gc)||void 0===c?0:c.i)&&b){for(var d=[],e=g.q(b),f=e.next();!f.done;f=e.next())d.push(f.value.itag);a.Ja("hlsfmt",d.join("."))}a.Bo=nla(a.B,b);d=a.clientPlaybackNonce;return sla(a.B,a.isAd(),b,a.rj,d,function(h){return a.W("ctmp","hlsflt",h)}).then(function(h){for(var l,m,n,p,r=0,t=[],u=g.q(h),x=u.next();!x.done;x=u.next())x=x.value,t.push(null===(l=x.Ue())||void 0===l?void 0:l.kc()),(null===(n=null===
(m=x.Ue())||void 0===m?void 0:m.audio)||void 0===n?void 0:n.i)>r&&(r=x.Ue().audio.i);
2<r&&a.Ja("hlschl",""+r);(null===(p=a.Gc)||void 0===p?0:p.i)&&a.Ja("hlsfmtaf",t.join("."));IH(a,h)})}return Ws()};
Oma=function(a){return a.Ah&&a.eL?vla(a.B,a.isAd(),a.Ah).then(function(b){IH(a,b)}):Ws()};
Pma=function(a){var b=DH(a.Bh,a.BB);if(a.hlsvp){var c=mma(a.hlsvp,a.clientPlaybackNonce,a.rj);b.push(c)}return tla(a.B,a.isAd(),b,Tma(a)).then(function(d){IH(a,d)})};
Sma=function(a,b){a.u=b;b=a.getAvailableAudioTracks();b=b.concat(a.vj);for(var c=0;c<a.aA.length;c++)for(var d=a.aA[c],e=0;e<b.length;e++){var f=b[e],h=f.Jc.id==d.audioTrackId;if(f.Jc.isDefault&&c==a.XH||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.u=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.i=a.captionTracks[d.forcedCaptionTrackIndex]);
f.l=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.G&&a.u&&a.u.videoInfos&&!(0>=a.u.videoInfos.length)&&(b=UD(a.u.videoInfos[0]),b!=("fairplay"==a.G.flavor)))for(c=g.q(a.yf),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.G=d;break}};
IH=function(a,b){a.qb=b;Sma(a,new YA(g.Oe(a.qb,function(c){return c.Ue()})))};
Tma=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Vo&&(b.ptk=a.Vo,b.oid=a.dE,b.ptchn=a.cE,b.pltype=a.eE);return b};
g.JH=function(a){return wH(a)&&a.Ob?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.l&&a.l.Jd||null};
Uma=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Pz(b.text):a.paidContentOverlayText};
KH=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?td(b.durationMs):a.paidContentOverlayDurationMs};
LH=function(a){var b="";if(a.NC)return a.NC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.MH=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
Vma=function(a){return a.i&&!isNaN(QE(a.i))?QE(a.i):GH(a)?0:a.lengthSeconds};
NH=function(a){return!!(a.Pa||a.adaptiveFormats||a.Bh||a.Ah||a.hlsvp)};
sH=function(a){var b=g.kb(a.Y,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.ma&&(NH(a)||g.kb(a.Y,"heartbeat")||b)};
DH=function(a,b){a=Zr(a);var c={};if(b){b=g.q(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.q(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};
Ama=function(a,b){var c,d;a.showShareButton=!!b;if(b=(null===(c=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.navigationEndpoint)||(null===(d=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===d?void 0:d.command))a.Bj=!!b.copyTextEndpoint};
pma=function(a,b){var c,d,e,f,h,l,m=b.raw_embedded_player_response;if(!m){var n=b.embedded_player_response;n&&(m=JSON.parse(n))}m&&(a.Kg=m);if(a.Kg){if(m=a.Kg.videoFlags)m.playableInEmbed&&(a.allowEmbed=!0),m.isPrivate&&(a.isPrivate=!0),m.userDisplayName&&(b.user_display_name=m.userDisplayName),m.userDisplayImage&&(b.user_display_image=m.userDisplayImage);if(m=a.Kg.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Da=n,a.C=!0):(a.Da="",a.C=!1);if(n=m.defaultThumbnail)a.Bb=eH(n),
a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&Bma(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.ZA=n.title,a.JA=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.lf=!!m.addToWatchLaterButton;Ama(a,m.shareButton);if(n=null===(h=null===(f=null===(e=null===m||void 0===m?void 0:
m.playButton)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.navigationEndpoint)||void 0===h?void 0:h.watchEndpoint){var p,r=null===(p=null===n||void 0===n?void 0:n.watchEndpointSupportedOnesieConfig)||void 0===p?void 0:p.html5PlaybackOnesieConfig;r&&(a.Uo=new Lla(r));a.videoId=n.videoId||a.videoId}m.videoDurationSeconds&&(a.lengthSeconds=td(m.videoDurationSeconds));a.Z("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&$la(a,m.webPlayerActionsPorting);if(p=null===(l=
null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){m=[];n=Number(p.currentIndex);if(p.contents){r=0;for(var t=p.contents.length;r<t;r++){var u=p.contents[r].playlistPanelVideoRenderer;if(u){var x=u.shortBylineText?g.Pz(u.shortBylineText):"",y=u.title?g.Pz(u.title):"";m.push({author:x,encrypted_id:u.videoId,title:y,channel_path:r===n?b.channel_path:"",profile_picture:r===n?b.profile_picture:"",is_private:r===n?a.isPrivate:!1,is_dni:r===n?a.C:!1,dni_color:r===n?a.Da:
""})}}}b={index:p.currentIndex,list:p.playlistId,playlist_length:p.totalVideos,video:m};p.titleText&&(b.title=g.Pz(p.titleText));p.shortBylineText&&(b.author=g.Pz(p.shortBylineText));a.pI=b}}if(a.Z("embeds_enable_playability_on_web_preview")&&a.Kg.previewPlayabilityStatus){a.lp=a.Kg.previewPlayabilityStatus;b=a.lp;var B;if(!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){p=b.errorScreen;if(m=null===p||void 0===p?void 0:p.playerErrorMessageRenderer){a.eA=m;if(n=m.reason)a.errorReason=g.Pz(n);if(m=
m.subreason)a.Qh=g.Pz(m)}else a.errorReason=b.reason||null;switch(b.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":(null===(B=null===p||void 0===p?void 0:p.playerKavRenderer)||void 0===B?0:B.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.Kg.playabilityStatus&&(a.wj=a.Kg.playabilityStatus,Wma(a)&&(a.errorDetail="0",a.wj&&(B=a.wj.embeddedPlayerErrorMessageRenderer)))&&
(a.eA=B.embeddedPlayerErrorMessageRenderer);(B=a.Kg.attestation)&&Vla(a,B)}};
Cma=function(a,b,c,d){d={autonav:1,playnext:d};a.list&&(d.autoplay="1");if(b){if(b=b.autoplay)if(b=b.autoplay)if(b=b.sets)if(b=b[0])if(b=b.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.autonav_watch_endpoint=b}else c&&(b=c.nextButton)&&(b=b.buttonRenderer)&&(b=b.navigationEndpoint)&&b.clickTrackingParams&&(d.itct=b.clickTrackingParams);d.itct||(d.feature="related-auto");a.endscreen_autoplay_session_data=g.ri(d)};
Bma=function(a,b,c){var d,e,f,h=c.channelThumbnail;h&&(h=h.thumbnails)&&(h=h[0])&&(b.profile_picture=h.url);if(h=null===(f=null===(e=null===(d=null===c||void 0===c?void 0:c.channelThumbnailEndpoint)||void 0===d?void 0:d.channelThumbnailEndpoint)||void 0===e?void 0:e.urlEndpoint)||void 0===f?void 0:f.urlEndpoint)b.channel_path=h.url;if(h=c.collapsedRenderer)if(h=h.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var l=h.title;l&&(b.title=g.Pz(l));if(h=h.subtitle)b.subtitle=g.Pz(h)}if(c=c.expandedRenderer)if(c=
c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(h=c.title)b.expanded_title=g.Pz(h);if(h=c.subtitle)b.expanded_subtitle=g.Pz(h);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.uh=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.fz=b.toggledServiceEndpoint||null,a.ez=b.defaultServiceEndpoint||
null):(a.fz=b.defaultServiceEndpoint||null,a.ez=b.toggledServiceEndpoint||null))}};
g.OH=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
PH=function(a){return a.isLivePlayback&&a.allowLiveDvr};
g.QH=function(a){return!!a.i&&DE(a.i)};
g.RH=function(a){return!!a.i&&EE(a.i)};
Lma=function(a){return g.RH(a)||g.QH(a)||g.SH(a)||g.TH(a)};
g.TH=function(a){return!!a.i&&FE(a.i)};
g.SH=function(a){return!!a.i&&Pja(a.i)};
Xma=function(a){a.u=a.u.l};
g.Yma=function(a){if(a.Zy)return null;var b=a.fL;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.Zma=function(a){return a.Zy?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.UH=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.VH=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.q(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
WH=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.B.Ea};
XH=function(a){if(a.isAd()&&a.videoId!=a.B.Hb)return a.B.Hb};
YH=function(a){return a.pk||"detailpage"==WH(a)||"shortspage"==WH(a)||a.mutedAutoplay};
ZH=function(a){if(YH(a)){if("detailpage"==WH(a))return a.Zj||0<a.jb;if(!("17_8"===a.adFormat&&!a.Zj||g.S(a.B.experiments,"embeds_enable_autoplayblocked_ping_fix")&&a.OF||"adunit"==WH(a)&&a.fg))return!0}return!1};
$ma=function(a){var b=1,c=g.T(a.B.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Ji;a.u&&a.u.i&&a.u.i[0]&&a.Wo[a.u.i[0].id]&&(c=a.Wo[a.u.i[0].id]);if(a.Z("html5_stateful_audio_normalization")&&null!=c){if(a.GF)return Math.min(1,Math.pow(10,-a.Oz/20))||b;var d=0;g.S(a.B.experiments,"html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.B.fg,g.T(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.Oz=c}return Math.min(1,Math.pow(10,-c/20))||b};
yH=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.B.deviceParams.c&&"MUSIC"===a.B.deviceParams.ctheme;!a.cd&&(g.VF(a.B)||c)&&b.includes(a.musicVideoType)&&(a.cd=!0);if(b=g.it())b=/Starboard\/([0-9]+)/.exec(g.Tc),b=10>(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.cd&&(c||dla(a.B))&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.Z("cast_prefer_audio_only_for_atv_and_uploads")||a.Z("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.cd=!0);return!a.B.deviceHasDisplay||a.cd&&a.B.u};
ana=function(a){return!!(a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.daiConfig&&a.playerResponse.playerConfig.daiConfig.enableDai)};
aI=function(a){return $H(a)&&!!a.adaptiveFormats};
$H=function(a){return!!(a.Z("woffle_orchestration")&&a.Rk&&a.B.u)};
yma=function(a){if(a.Z("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===VG(b);a=b&&!a.Rk}else a=!1;return a};
g.bI=function(a){if(!a.i||!a.l||!a.J)return!1;var b=a.i.i;return!!b[a.l.id]&&tB(b[a.l.id].l.i)&&!!b[a.J.id]&&tB(b[a.J.id].l.i)};
Wma=function(a){return(a=a.wj)&&a.showError?a.showError:!1};
g.CH=function(a){return a.Z("disable_rqs")?!1:zH(a,"html5_high_res_logging")};
zH=function(a,b){return a.Z(b)?!0:(a.fflags||"").includes(b+"=true")};
bna=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
uma=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.XD=b.quartile_0_url,a.nE=b.quartile_25_url,a.dF=b.quartile_50_url,a.fF=b.quartile_75_url,a.mE=b.quartile_100_url,a.qp=b.quartile_0_urls,a.ZD=b.quartile_25_urls,a.Vy=b.quartile_50_urls,a.Wy=b.quartile_75_urls,a.YD=b.quartile_100_urls};
vH=function(a){return a?nF()?!0:cI&&5>dI?!1:!0:!1};
tma=function(a){var b={};a=g.q(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};
Wla=function(a){if(a){if(Bz(a))return a;a=Cz(a);if(Bz(a,!0))return a}return""};
g.cna=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.MH(a,"yt:cc_default_lang")||a.B.Tc};
eI=function(a,b){this.i=a;this.Ga=b||{};this.K=String(Math.floor(1E9*Math.random()));this.J={};this.U=0};
dna=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";
case "viewable_impression":return"adviewableimpression";default:return null}};
fI=function(){g.Q.call(this);var a=this;this.i={};g.gf(this,function(){return Object.keys(a.i).forEach(function(b){return delete a.i[b]})})};
hI=function(){if(null===gI){gI=new fI;g.Am(qq).i="b";var a=g.Am(qq),b="h"==Zp(a)||"b"==Zp(a),c=!(Km(),!1);b&&c&&(a.C=!0,a.G=new Kfa)}return gI};
ena=function(a,b,c){a.i[b]=c};
fna=function(a){this.u=a;this.l={};this.i=il()?500:g.bG(a.T())?1E3:2500};
hna=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.l||(a.l[c.mimeType]=a.u.canPlayType(c.mimeType));return a.l[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1});
return gna(a,b)};
gna=function(a,b){for(var c=null,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.i||h<a.i||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,h=e.minBitrate,f>a.i||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<c.minBitrate&&(c=e));if(!c)for(c=null,b=g.q(b),d=b.next();!d.done;d=b.next())d=d.value,e=d.minBitrate,f=d.maxBitrate,e<a.i||(!c||e<c.minBitrate?c=d:c&&e==c.minBitrate&&f>c.maxBitrate&&(c=d));return c};
iI=function(a,b,c){this.i=a;this.C=b;this.u=c;this.l=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
jI=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]]])};
ina=function(a){return(a=a.pings)?Object.fromEntries(jI(a)):{}};
kI=function(a,b,c,d,e){eI.call(this,a,ina(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.La=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.u=new iI(0,[]);this.G=this.Aa=null;this.Pa=b;this.Da=[];this.C={};this.xa=null;this.l=0;this.Y=this.ma=this.B=null;this.va=e;this.X=null;b=this.i.skipOffsetMilliseconds||0;0<b&&(this.xa=b);this.C=Yr(this.i.playerVars||"");if(b=this.i.external)this.Da=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.l=b/1E3,this.C.length_seconds=
this.l.toString()),(b=hna(this.Pa,this.Da))?(this.ma=b.uri,b=b.mimeType,this.C.url_encoded_third_party_media="url="+encodeURIComponent(this.ma)+"&type="+encodeURIComponent(b)):this.Y=Error("Nonplayable third party ad media file.");else if(this.B=this.i.externalVideoId||null,this.Aa=this.C.ucid||null,this.l=EF(this.l,this.C.length_seconds),this.va&&this.B&&(this.X=this.va(this.B)),this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=JSON.parse(this.C.cta_conversion_urls)}catch(f){g.Sr(f)}this.G=
this.i.clickthroughEndpoint||null;this.u=new iI(0,[this.l])};
jna=function(a){var b=a.C||{};1<a.u.l&&(b.slot_pos=a.u.i);b.autoplay="1";return b};
lI=function(a){return 0<a.l&&7.05>=a.l};
mI=function(){this.i=[];this.l=0};
nI=function(a,b){b&&a.i.push(b)};
oI=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
pI=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
qI=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
rI=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
kna=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=oI(a.impressionCommands)||[];b.error=oI(a.errorCommands)||[];b.mute=oI(a.muteCommands)||[];b.unmute=oI(a.unmuteCommands)||[];b.pause=oI(a.pauseCommands)||[];b.rewind=oI(a.rewindCommands)||[];b.resume=oI(a.resumeCommands)||[];b.skip=oI(a.skipCommands)||[];b.close=oI(a.closeCommands)||[];b.clickthrough=oI(a.clickthroughCommands)||[];b.fullscreen=oI(a.fullscreenCommands)||[];b.active_view_viewable=oI(a.activeViewViewableCommands)||
[];b.active_view_measurable=oI(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=oI(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=oI(a.endFullscreenCommands)||[];b.channel_clickthrough=oI(a.channelClickthroughCommands)||[];b.abandon=oI(a.abandonCommands)||[];b.progress=pI(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),0)}));
b.first_quartile=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),.25)}));
b.midpoint=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),.5)}));
b.third_quartile=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),.75)}));
b.complete=pI(a.progressCommands.filter(function(c){return rI(c)&&Pf(qI(c),1)}));
return b};
sI=function(a){eI.call(this,a,kna(a));this.l=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
lna=function(a,b,c,d){this.id=b;this.X=a.placementStartPings||[];this.Y=a.placementEndPings||[];this.B=d.Fd;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.u=(this.G=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Nz(b,d);if(null==f)d=new Kz(b,new $q(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(zr.getInstance().i++).toString(36);var h=d.daiEnabled||d.Fd;f=new Kz(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.Fd||0<d.i)if(d=Nz(b,d,!0))h=new Kz(b,d,!1,"prefetch:"+e,3),f.u=h,h.u=f;d=[h,f]}this.ma=d[0];this.i=d[1];this.l=c;this.J=!1;this.C={};this.U={};this.K=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
tI=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
vI=function(a){var b={};mna(a,b);nna(b);b.LACT=uI(function(){return mu().toString()});
b.VIS=uI(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=uI(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
ona=function(a){var b={};if(!a.kind)return g.Tx(Error("AdPlacementConfig without kind")),b;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.Tx(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=uI(ab(Math.round(td(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=uI(ab("0"));return b};
uI=function(a){return{toString:function(){return a()}}};
pna=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.Rb(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
mna=function(a,b){b.CPN=uI(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.Ux(Error("Video data is null.")),c=null);return c});
b.AD_MT=uI(function(){return qna(a,2)});
b.MT=uI(function(){return qna(a,1)});
b.P_H=uI(function(){return a.Za().Zf().height.toString()});
b.P_W=uI(function(){return a.Za().Zf().width.toString()});
b.PV_H=uI(function(){return a.Za().getVideoContentRect().height.toString()});
b.PV_W=uI(function(){return a.Za().getVideoContentRect().width.toString()})};
qna=function(a,b){a=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,a)).toString()};
nna=function(a){a.CONN=uI(ab("0"));a.WT=uI(function(){return Date.now().toString()})};
rna=function(a){var b=Object.assign({},{});b.MIDROLL_POS=tI(a)?uI(ab(Math.round(a.i.start/1E3).toString())):uI(ab("0"));return b};
sna=function(a){var b={};b.SLOT_POS=uI(ab(a.u.i.toString()));return b};
tna=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
wI=function(a){for(var b={},c=g.q(una),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
xI=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.ma(b)));return c};
vna=function(a){return yI(a)&&1==a.getPlayerState(2)};
yI=function(a){a=a.Kc();return void 0!==a&&2==a.getPlayerType()};
zI=function(a){a=a.T();return aG(a)&&!g.EG(a)&&"desktop-polymer"==a.playerStyle};
AI=function(a,b){var c=a.T();RF(c)||"3"!=c.controlsType||a.Za().Eu(b)};
wna=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute"}return null};
xna=function(a){this.i=a;var b=g.Am(qq),c=a.Md();b.u!==c&&((b.u=c)||qga(b));g.S(a.T().experiments,"active_view_stop_starting_measurement_on_loaded")&&hm(Km().featureSet,"ssmol",1)};
BI=function(){};
CI=function(a){this.oo=a};
DI=function(a){this.Qn=a};
yna=function(a,b,c,d,e,f){e=void 0===e?new DI(new CI(d.getVideoData(1))):e;f=void 0===f?!1:f;g.E.call(this);this.l=a;this.J=b;this.u=c;this.i=d;this.U=e;this.G=Array.from(this.l.Ga.progress||[]);this.G.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.B={jE:.25,SECOND:.5,xF:.75};this.C=null;this.K=f};
Bna=function(a,b,c){!EI(a)&&0<c&&(FI(a,b),GI(a)?zna(a,b,c):Ana(a,b,c))};
II=function(a,b){EI(a)||(GI(a)?(FI(a,0,!0),zna(a,b,b)):(FI(a,0,!0),Ana(a,0,0,!0)),HI(a,"complete"))};
FI=function(a,b,c){for(c=void 0===c?!1:c;a.l.U<a.G.length;){var d=JI(a,"progress"),e=a.G[a.l.U];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&KI(a,f,d,e.headers||[]);a.l.U++}else break}};
Ana=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.B.jE||d)&&HI(a,"first_quartile");(b>=c*a.B.SECOND||d)&&HI(a,"midpoint");(b>=c*a.B.xF||d)&&HI(a,"third_quartile")};
LI=function(a,b,c,d){if(null==a.C){if(c<d||1<c-d)return}else if(a.C>d||d>c)return;HI(a,b)};
zna=function(a,b,c){if(0<c&&0<b){var d=a.i.sb(a.i.getPresentingPlayerType());g.U(d,16)||g.U(d,32)||(LI(a,"first_quartile",b,c*a.B.jE),LI(a,"midpoint",b,c*a.B.SECOND),LI(a,"third_quartile",b,c*a.B.xF))}a.C=b};
MI=function(a,b){for(var c=JI(a,b),d=g.q(a.l.Ga[b]||[]),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.baseUrl;f&&KI(a,f,c,e.headers||[])}a.l.J[b]=!0};
HI=function(a,b){a.l.J.hasOwnProperty(b)||MI(a,b)};
NI=function(a,b){return a.l.J.hasOwnProperty(b)};
KI=function(a,b,c,d){for(var e=a.U,f=e.send,h={},l=vI(a.i),m=g.q(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();a=Object.assign(h,a.u);f.call(e,b,a,c,d)};
JI=function(a,b){var c=a.J;a=a.l;if(a.It())if(b=wna(b),null==b)c={};else{var d;(d=a.Ea()())||(d=(d=c.i)&&d.Kc?(d=d.Kc())&&2==d.getPlayerType()?OI(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.i.isFullscreen()},c=uq(b,a.K,c)):c={}}else c={};return c?Object.assign({},c):{}};
GI=function(a){return!g.S(a.i.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.K};
EI=function(a){return GI(a)&&!NI(a,"impression")};
Cna=function(a){return GI(a)&&NI(a,"seek")};
QI=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.i=e;this.l=f;this.id=PI(a)};
PI=function(a){return a+(":"+(zr.getInstance().i++).toString(36))};
RI=function(a){this.i=a};
Dna=function(a,b){var c;if(!(c=0===b)){if(b=1===b)b=g.S(a.i.experiments,"check_ad_ui_status_for_mweb_safari")&&a.i.i&&g.cj?!1:a.i.i||g.EG(a.i)||g.bG(a.i)||cG(a.i)||!g.cj;c=b}if(c)return!0;a=g.cg("video-ads");return null!=a&&"none"!==Dl(a,"display")};
g.SI=function(a,b){this.state=a;this.Zm=b};
TI=function(a,b){return g.U(a.state,b)&&!g.U(a.Zm,b)?1:!g.U(a.state,b)&&g.U(a.Zm,b)?-1:0};
g.UI=function(a,b){return 0<TI(a,b)};
VI=function(a,b,c,d,e,f){f=void 0===f?0:f;g.Q.call(this);this.I=a;this.l=d;this.u=e;this.u.i[b.K]=this;this.u.subscribe("adactiveviewmeasurable",this.IJ,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.JJ,this);this.u.subscribe("adoverlaymeasurableimpression",this.KJ,this);this.u.subscribe("adoverlayunviewableimpression",this.LJ,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.MJ,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.NJ,this);
this.u.subscribe("adviewableimpression",this.OJ,this);this.ad=b;this.ma=[];this.macros=c;this.G=!1;this.xa=!Dna(new RI(this.I.T()),f)};
WI=function(a,b){sb(a.ma,b);Ena(a,b,1)};
Fna=function(a){a=a.l;a.u=xI(a.u,tna(0,"No playable media files can be selected"));HI(a,"error")};
Ena=function(a,b,c){0!=b.length&&(b=g.Oe(b,function(d){return new Oz(d,c,d.id)}),a.W("onAdUxUpdate",b))};
XI=function(a){var b={};b.abandon=a.abandonCommands&&oI(a.abandonCommands.commands)||[];eI.call(this,a,b)};
YI=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;QI.call(this,"ad-action-interstitial",a,b,c,d);this.i=d;this.Zg=e;this.wi=f};
ZI=function(a,b,c,d,e,f){VI.call(this,a,b,c,d,e,1);this.B=b;this.i=b.i.durationMilliseconds||0;this.Gb=null;this.C=f};
$I=function(a){eI.call(this,a);this.l=Yr(this.i.playerVars||"")};
aJ=function(){eI.apply(this,arguments)};
bJ=function(){eI.apply(this,arguments)};
Gna=function(a,b,c,d,e,f){this.G=a;this.B=b;this.i=c;this.C=d;this.u=e;this.l=f};
cJ=function(a,b,c,d,e){VI.call(this,a,b,c,d,e);var f=this;this.C=b;this.i=new g.J(function(){f.Og("load_timeout")},1E4);
g.F(this,this.i);this.B=new mx(this);g.F(this,this.B)};
Hna=function(a){QI.call(this,"ad-message",a)};
dJ=function(a,b,c,d,e,f,h){VI.call(this,a,b,c,d,e);var l=this;this.J=b;this.K=b.i.durationMs||0;this.C=h;this.U=!1;this.B=this.i=0;this.Y=function(){var m=l.I.getProgressState().current;m<l.i?l.ag():m>l.B&&l.dh()}};
Jna=function(a){if(a.C&&a.U){a.U=!1;a=g.q(a.C.listeners);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.i){var c=b.i;b.i=void 0;b.l=void 0;Ina(b.u(),c)}else R("Received AdNotify terminated event when no slot is active")}};
Kna=function(){QI.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adBreakEndSeconds=null;this.adVideoId=""};
g.eJ=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Sy:c.Sy},e=d.next())e=e.value,c.Sy=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Sy}}(c));
return a};
fJ=function(a){return a?g.Pz(a):null};
Lna=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.q(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};
Mna=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
Nna=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
Qna=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&&(Ona(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=fJ(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
Pna(a,b,c,d))}};
Ona=function(a,b,c){var d=fJ(b.confirmLabel)||"",e=fJ(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(fJ(l.value)||"");h=b.headerTitle?g.Pz(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:fJ(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.q(b.impressionEndpoints),
n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
Pna=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:fJ(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Lna(b.navigationEndpoint);var h=Nna(b[1]),l=[Nna(b[0])];(b=Mna(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)};
a.muteAd=function(){m||c(h);m=!1;for(var n=g.q(l),p=n.next();!p.done;p=n.next())c(p.value)};
Rna(a,e,d)}}};
Rna=function(a,b,c){a.muteAdInfo.goneText=fJ(b.title)||"";a.muteAdInfo.questionText=fJ(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=fJ(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.q(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=fJ(e.reason)||"";e=Lna(e.endpoint)[0];a.push({label:d,url:e})}};
Sna=function(a,b){var c=new Kna;c.adBadgeText="Ad";1<a.l&&(c.adPodPositionInfoString=g.eJ("$AD_INDEX of $ADS_COUNT",{AD_INDEX:String(a.i+1),ADS_COUNT:String(a.l)}));c.adBreakLengthSeconds=a.adBreakLengthSeconds;c.adBreakRemainingLengthSeconds=a.adBreakRemainingLengthSeconds;c.adPodPosition=a.i+1;c.adPodLength=a.l;null!=a.u&&(c.adBreakEndSeconds=a.u/1E3);b&&(c.adVideoId=b);return c};
gJ=function(a,b,c,d,e,f){this.l=a;this.u=b;this.i=vI(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.B=c;this.G=d;this.C=e};
Tna=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.ld(e):a.B.Lm()};
b.skipShown=function(){a.ld(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
Una=function(a,b,c){Qna(b,c,function(d){a.ld(d)},function(d){a.sendAdsPing(d)})};
Vna=function(a){if(g.S(a.G.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.u;for(var b={},c=g.q(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.u)};
Wna=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}};
Xna=function(a,b,c,d,e,f,h){this.i=c;this.l=new gJ(a,b,d,e,f,void 0);this.u=h};
Yna=function(a,b,c){var d=Wna();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){a.l.ld(e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Tna(a.l,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Una(a.l,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=lI(a.i)&&!d.isSkippable;d.isPostroll=a.i.isPostroll;a.i.isSkippable();b=a.i.B;c=a.i.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.i.G)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.l.sendAdsPing(e)};
d.daiEnabled=a.u;d.remoteSlotsData=a.i.X;return d};
hJ=function(a){this.value=a};
iJ=function(a){this.value=a};
jJ=function(a){this.value=a};
kJ=function(a){this.value=a};
lJ=function(){hJ.apply(this,arguments)};
mJ=function(a){this.value=a};
nJ=function(a){this.value=a};
oJ=function(a){this.value=a};
pJ=function(a){this.value=a};
qJ=function(a){this.value=a};
rJ=function(a){this.value=a};
sJ=function(){hJ.apply(this,arguments)};
tJ=function(){hJ.apply(this,arguments)};
uJ=function(a){this.value=a};
vJ=function(a){this.value=a};
wJ=function(a){this.value=a};
xJ=function(a){this.value=a};
yJ=function(a){this.value=a};
zJ=function(a){this.value=a};
AJ=function(a){this.value=a};
BJ=function(a){this.value=a};
CJ=function(a){this.value=a};
DJ=function(a){this.value=a};
EJ=function(a){this.value=a};
FJ=function(a){this.value=a};
GJ=function(a){this.value=a};
HJ=function(a){this.value=a};
IJ=function(a){this.value=a};
JJ=function(a){this.value=a};
KJ=function(a){this.value=a};
LJ=function(a){this.value=a};
MJ=function(a){this.value=a};
NJ=function(a){this.value=a};
OJ=function(a){this.value=a};
PJ=function(a){this.value=a};
QJ=function(a){this.value=a};
RJ=function(a){this.value=a};
SJ=function(a){this.value=a};
TJ=function(a){this.value=a};
UJ=function(a){this.value=a};
VJ=function(a){this.value=a};
WJ=function(a){this.value=a};
XJ=function(a){this.value=a};
YJ=function(a){this.value=a};
ZJ=function(){hJ.apply(this,arguments)};
$J=function(){hJ.apply(this,arguments)};
aK=function(){hJ.apply(this,arguments)};
bK=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;a=(null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon)||(null===(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon);return Zna(a)?!0:!1};
$na=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon,b=Zna(a)):b=!1:b=!1;return b};
Zna=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null===b||void 0===b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null===b||void 0===b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
boa=function(a,b,c,d,e,f){this.i=new gJ(a,b,c,d,e,aoa(f))};
coa=function(a,b){var c=Wna();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.ld(d)};
b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":Tna(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Una(a.i,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)};
return c};
aoa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=uI(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=uI(a);return b};
cK=function(a,b,c){g.Q.call(this,!0);var d=this;this.G=b;this.C=c;this.l=a;this.Gb=new g.ih(200);this.Gb.Ra("tick",function(){var e=Date.now(),f=e-d.B;d.B=e;d.i+=f;d.i>=d.l&&(d.i=d.l,d.Gb.stop());e=d.i/1E3;d.C&&d.C.Rb(e);doa(d,{current:e,duration:d.l/1E3})});
g.F(this,this.Gb);this.i=0;this.u=null;g.gf(this,function(){d.u=null});
this.B=0};
doa=function(a,b){a.G.Na("onAdPlaybackProgress",b);a.u=b};
dK=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;QI.call(this,"survey",a,{},b,c);this.Zg=d;this.wi=e};
eK=function(a,b,c,d,e,f,h){VI.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.B=new mx;g.F(this,this.B);this.B.N(this.I,"resize",function(){450>l.I.Za().Zf().width&&(g.ox(l.B),l.ag())});
this.K=0;this.J=h(this,function(){return""+(Date.now()-l.K)});
if(this.i=g.bG(a.T())?new cK(1E3*b.l,a,f):null)g.F(this,this.i),this.B.N(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.C.i,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,l.J.ld(m&&m.timeoutCommands)):g.Tx(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
fK=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;QI.call(this,"survey-interstitial",a,b,c,d);this.Zg=e;this.jD=f};
gK=function(a,b,c,d,e){VI.call(this,a,b,c,d,e,1);this.i=b};
foa=function(a,b){var c=void 0===c?!0:c;var d=g.O("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.ii(window.location.href);e&&d.push(e);e=g.ii(a);if(g.kb(d,e)||!e&&nc(a,"/"))if(g.Nr("autoescape_tempdata_url")&&(d=document.createElement("a"),g.kd(d,a),a=d.href),a&&(a=ki(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Ix()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&eoa(a,b,f)}else eoa(a,b)};
eoa=function(a,b,c){a="ST-"+sd(a).toString(36);b=b?g.ri(b):"";c=c||5;g.Nr("drop_st_cookie_before_cb")&&!wt()||g.$s(a,b,c)};
g.hoa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.ti(a,b)+c;var e=void 0===e?tl:e;e=ul(a,e)||goa;d.href=zj(e)};
g.hK=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.O("EVENT_ID");d&&(b.ei||(b.ei=d));b&&foa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.hoa(a))};
g.iK=function(a,b,c,d){c&&foa(a,c);c=g.Jc(a);c=g.Fc(c);a!=c&&Ur(Error("Unsafe window.open URL: "+a));a=c;b=b||sd(a).toString(36);var e,f;if(d&&"function"===typeof(null==(e=document.featurePolicy)?void 0:e.features)&&(null==(f=document.featurePolicy)?0:f.features().includes("attribution-reporting")))try{var h=Object.keys(d).map(function(l){return l.toLowerCase()+"="+d[l]}).join(",");
window.open(a,b,h);return}catch(l){}window.open(a,b)};
ioa=function(a){a=void 0===a?null:a;QI.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
joa=function(a){a=void 0===a?null:a;QI.call(this,"ad-title");this.videoTitle=a};
koa=function(a){a=void 0===a?null:a;QI.call(this,"advertiser-name");this.channelName=a};
jK=function(a,b,c,d,e){e=void 0===e?!1:e;QI.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.i=d;this.wi=e};
loa=function(a){QI.call(this,"skip-button",a)};
moa=function(a){QI.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Vb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Visit advertiser's site"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
kK=function(a,b,c,d,e,f,h,l,m,n,p){VI.call(this,a,b,c,d,e,1);var r=this;this.Rw=!0;this.X=m;this.i=b;this.B=f;this.va=new mx(this);g.F(this,this.va);this.C=new g.J(function(){r.Og("load_timeout")},1E4);
g.F(this,this.C);this.Y=!1;this.Aa=l(this);this.J=h;this.K=n;this.U=p};
noa=function(a){if(a.J&&(g.S(a.I.T().experiments,"enable_topsoil_wta_for_halftime")||g.S(a.I.T().experiments,"enable_topsoil_wta_for_halftime_live_infra"))){var b=a.i.u,c=b.B,d=b.u,e=b.i;b=b.C;if(void 0===c)g.Tx(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Tx(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.i.l)}};
nK=function(a,b){if(null!==a.X){var c=ooa(a);a=g.q(a.X.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.i||"aderror"!==f||(poa(d,e,[],!1),qoa(d.u(),d.l),roa(d.u(),d.l),h=!0);if(d.i&&d.i.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}lK(d.u(),d.l,d.i,e);if(h){e=d.u();h=d.l;mK(e.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.q(e.Ed);for(f=e.next();!f.done;f=e.next())f.value.hj(h);Ina(d.u(),d.l)}d.l=
null;d.i=null}}}};
oK=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""};
ooa=function(a){if(a=a.i.i.elementId)return a;g.Tx(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
pK=function(a){var b=a.i.i,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.I.T();if(g.EG(d)&&!c.skipOrPreviewRenderer){var e=a.I.getDuration(2);isFinite(e)&&33<e&&!a.i.isSkippable()&&!g.EG(d)&&g.Tx(new g.Gv("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.i.isSkippable()&&!lI(a.i)?d.skipAdRenderer=soa(a):d.adPreviewRenderer=toa(a,!1,lI(a.i));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Rb(c.skipOrPreviewRenderer)&&
g.Tx(new g.Gv("IAPOR.skipOrPreview was filled, but empty.",b));return c};
soa=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=toa(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
toa=function(a,b,c){var d=a.I.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.eJ("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.eJ("You can skip to video in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});h.text=c;h.isTemplated=!0;f.templatedAdText=h;e.templatedCountdown=f}else f={},h=g.eJ("Video will play after ad",{NEW_LINE:"\n"}),f.text=h,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;
f={};f.url=yG(a.I.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
uoa=function(a){function b(l,m){l=a.KT;var n=Object.assign({},{});n.FINAL=uI(ab("1"));n.SLOT_POS=uI(ab("0"));return xI(l,wI(n),m)}
function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var r=b(m,n);
n=a.yy(m,r);m=l(m,r,n,p);g.F(m,n);return m}}}
var d=c(function(l,m,n){return new ZI(a.I,l,m,n,a.Ao,a.Ta)}),e=c(function(l,m,n){return new gK(a.I,l,m,n,a.Ao)}),f=c(function(l,m,n){return new dJ(a.I,l,m,n,a.Ao,a.Ta,a.zl)}),h=c(function(l,m,n){return new cJ(a.I,l,m,n,a.Ao,a.Ta)});
this.SN=new Gna({create:function(l,m){var n=xI(b(l,m),wI(sna(l)));m=a.yy(l,n);var p=new kK(a.I,l,n,m,a.Ao,a.Ta,a.daiEnabled,function(r){return new Xna(a.Ta,n,l,r,a.I,a.ij,a.daiEnabled)},a.Al,a.kh,a.Cd);
g.F(p,m);return p}},{create:function(l,m){var n=a.yy(l,m);
l=new eK(a.I,l,m,n,a.Ao,a.Ta,function(p,r){return new boa(a.Ta,m,p,a.I,a.ij,r)});
g.F(l,n);return l}},d,e,f,h)};
qK=function(a,b){this.l=a;this.i={};this.u=void 0===b?!1:b};
voa=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{oO:new $q(b,c),FP:new rz(b,c-b,a.context,a.identifier,a.event,a.i)}};
rK=function(){this.i=[]};
woa=function(a,b,c){var d=g.xb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
xoa=function(){this.i=new rK};
sK=function(a){this.i=a};
yoa=function(a){a=[a,a.u].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
zoa=function(a,b,c){this.u=a;this.i=b;this.l=c;this.B=a.getCurrentTime()};
Boa=function(a,b){var c=void 0===c?Date.now():c;b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;tK({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Aoa(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.l&&("unknown"===d.event&&uK("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.B&&a.u.getCurrentTime()>d&&uK("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.i))}};
Coa=function(a,b,c){a.l&&tK({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
Doa=function(a,b){a.l&&tK({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.bO}})};
uK=function(a,b){tK({daiStateTrigger:{errorType:a,contentCpn:b}})};
tK=function(a){g.Bv("adsClientStateChange",a)};
Aoa=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START"}};
vK=function(a){this.I=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.u=!0;this.B=this.i=this.cg=!1;this.adFormat=null;this.l="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Eoa=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.l="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.cg=!1;a.i=!1};
Foa=function(a){a.i=!1;CA("video_to_ad",["apbs"],void 0,void 0)};
Hoa=function(a){a.B?Goa(a):(a.i=!1,CA("ad_to_ad",["apbs"],void 0,void 0))};
Goa=function(a){a.i=!1;CA("ad_to_video",["pbresume"],void 0,void 0)};
Ioa=function(a){a.cg&&!a.i&&(a.u=!1,a.i=!0,"ad_to_video"!==a.actionType&&(EA("apbs",void 0,a.actionType),g.Nr("finalize_all_timelines")&&(a=a.actionType,zA("c",a),kA(a),yA(a))))};
Joa=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.Loa=function(a){return(a=Koa[a.toString()])?a:"LICENSE"};
wK=function(){g.E.call(this);this.l=null;this.G=this.C=!1;this.u=new g.If;g.F(this,this.u)};
xK=function(a){a=a.ut();return 1>a.length?NaN:a.end(a.length-1)};
Moa=function(a,b,c){a.Xl()||a.getCurrentTime()>b||10<c||(a.play(),g.ms(function(){Moa(a,a.getCurrentTime(),c+1)},500))};
Noa=function(a,b){a.l&&null!==b&&b.i===a.l.i||(a.l&&a.l.dispose(),a.l=b)};
yK=function(a){return jE(a.Nf(),a.getCurrentTime())};
Ooa=function(a,b){if(0===a.eh()||0<a.Ki())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.ut(),a.length||!c)?gE(a,b):c};
Poa=function(a){var b=a.Nf();return 0<iE(b)&&a.getDuration()?b.end(b.length-1):0};
zK=function(a){var b=a.getDuration();return Infinity===b?1:b?a.Fq()/b:0};
AK=function(a){switch(a.Ki()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.BK=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
CK=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.BK(b,c)};
DK=function(a,b){return CK(a,a.state|b)};
EK=function(a,b){return CK(a,a.state&~b)};
FK=function(a,b,c){return CK(a,(a.state|b)&~c)};
g.U=function(a,b){return!!(a.state&b)};
g.GK=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.HK=function(a){return g.U(a,8)&&!g.U(a,2)&&!g.U(a,1024)};
IK=function(a){return a.tc()&&!g.U(a,16)&&!g.U(a,32)};
Qoa=function(a){return g.U(a,8)&&g.U(a,16)};
g.JK=function(a){return g.U(a,1)&&!g.U(a,2)};
KK=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1};
LK=function(a,b,c,d,e,f,h,l){g.Q.call(this);this.Lf=a;this.I=b;this.i=d;this.J=this.i.l instanceof eI?this.i.l:null;this.l=null;this.Y=!1;this.C=c;this.U=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ma=0;this.va=!1;this.Zk=e;this.tq=f;this.On=h;this.X=!1;this.daiEnabled=l};
Roa=function(a){if(yI(a.I)){var b=a.I.getVideoData(2);b=a.i.U[b.Wc]||null;if(!b)return a.Rj(),!0;(!a.l||a.l&&a.l.ad!==b)&&a.Ur(b)}else if(1===a.I.getPresentingPlayerType()&&a.l)return a.Rj(),!0;return!1};
Soa=function(a){(a=a.baseUrl)&&g.ou(a,void 0,xq(a))};
Toa=function(a,b){a.C.Bs(a.i.i.i,b,a.XG(),a.ZG(),a.isLiveStream())};
MK=function(a){Uoa(a.Lf,a.i.i,a);a.daiEnabled&&!a.i.J&&(Voa(a,a.aH()),a.i.J=!0)};
Voa=function(a,b){for(var c=NK(a),d=a.i.i.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=Woa(h);e.push({externalVideoId:h.B,originalMediaDurationMs:(1E3*h.l).toString(),trimmedMediaDurationMs:(parseInt(h.i.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.u.B=a.i.i.start;h.u.u=c;if(!Xoa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+Woa(p)},0);
Coa(a.Zk,a.i.i.Ys(),b);Doa(a.Zk,{cueIdentifier:a.i.B&&a.i.B.identifier,bO:e})};
Woa=function(a){var b=1E3*a.l;return 0<parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10):b};
NK=function(a){var b=a.i.i.end;a=woa(a.tq,a.i.i.start,b);return Math.min(b,null===a?Infinity:a)};
Xoa=function(a,b,c,d){var e=a.On.create(b,wI(rna(a.i)),a.i.i.i);c=e.KG(c,d);g.ef(e);if(!c)return!1;a.i.U[c]=b;return!0};
PK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;a.Y=!0;g.ef(a.l);Hoa(a.C);b?b=!1:a.daiEnabled?(b=a.I.getCurrentTime(2,!0),b=1>=Math.abs(b-a.i.i.end/1E3)):b=!0;if(b&&!a.i.C.hasOwnProperty("ad_placement_end")){b=g.q(a.i.Y);for(var d=b.next();!d.done;d=b.next())Soa(d.value);a.i.C.ad_placement_end=!0}b=a.i.K;if(null!==b){d=a.Zk;var e=a.i.B&&a.i.B.identifier,f=a.i.i.start,h=NK(a);d.l&&tK({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(h-
f).toString(),driftFromHeadMs:Math.round(1E3*d.u.Cm()).toString()}});a.i.K=null}c||a.daiEnabled?OK(a.Lf,!0):a.U&&a.bF()&&a.Lt()?OK(a.Lf,!1,Yoa(a)):OK(a.Lf,!1);Toa(a,!0)};
Yoa=function(a){if(a.va)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Sa()/1E3)-a.ma;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
Zoa=function(a,b,c){this.i=a;this.l=b;this.u=c};
QK=function(){this.B=[];this.C=[];this.i=[];this.l=new Set;this.G=new Map};
RK=function(){QK.i||(QK.i=new QK);return QK.i};
$oa=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.l.has(c)&&a.u&&a.u();var h=g.Ix(c),l=g.Gx(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.ay(a.client,h,l,[g.Cx(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.ay(a.client,h,l,[g.Cx(d.playerResponse.trackingParams)]))})};
apa=function(a,b){SK(a,g.Cx(b),void 0,void 0)};
SK=function(a,b,c,d){d=void 0===d?0:d;if(a.l.has(d))a.B.push([b,c]);else{var e=g.Ix(d);c=c||g.Gx(d);e&&c&&g.ay(a.client,e,c,[b])}};
cpa=function(a,b,c){c=void 0===c?{}:c;a.l.add(c.layer||0);a.u=function(){bpa(a,b,c);var f=g.Gx(c.layer);if(f){for(var h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,SK(a,l[0],l[1]||f,c.layer);f=g.q(a.C);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.Ix(h);var n=m[0]||g.Gx(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={Ie:Jx(l),Ml:l},"UNDEFINED_CSN"==l?$x("visualElementStateChanged",m,n):h?Tu("visualElementStateChanged",m,h,n):g.Bv("visualElementStateChanged",
m,n))}}};
g.Ix(c.layer)||a.u();if(c.GG)for(var d=g.q(c.GG),e=d.next();!e.done;e=d.next())$oa(a,e.value,c.layer);else g.Tx(Error("Delayed screen needs a data promise."))};
bpa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.HT?c.HT:c.layer;var e=g.Ix(d);d=g.Gx(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var h,l=g.O("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.DG,p=c.Ie,r=dpa(),t={csn:r,pageVe:(new Bx({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement?t.implicitGesture=
{parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.Ux(new g.Gv("newScreen() parent element does not have a VE - rootVe",b));n&&(t.cloneCsn=n);n={Ie:p,Ml:r};m?Tu("screenCreated",t,m,n):g.Bv("screenCreated",t,n);lv(gy,new Zx(r));var u=r}catch(x){Bia(x,{Du:b,rootVe:d,parentVisualElement:void 0,E7:e,U7:f,DG:c.DG});g.Tx(x);return}Lx(u,b,c.layer,c.Ie);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.Nr("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(epa));for(f=b.next();!f.done;f=
b.next())if(g.Ix(f.value)==e){b=!0;break a}b=!1}b=!b}b&&cy(a.client,e,d,!0);a.i[a.i.length-1]&&!a.i[a.i.length-1].csn&&(a.i[a.i.length-1].csn=u||"");g.DA("csn",u);g.Am(Uy).clear();d=g.Gx(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Nr("web_mark_root_visible")||g.Nr("music_web_mark_root_visible"))&&g.by(u,d,void 0);a.l.delete(c.layer||0);a.u=void 0;e=g.q(a.G);for(u=e.next();!u.done;u=e.next())u=g.q(u.value),b=u.next().value,u.next().value.has(c.layer)&&d&&SK(a,b,d,c.layer)};
TK=function(){this.i={};if(this.l=ct()){var a=g.at("CONSISTENCY");a&&fpa(this,{encryptedTokenJarContents:a})}};
fpa=function(a,b){if(b.encryptedTokenJarContents&&(a.i[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.i[b.encryptedTokenJarContents]},1E3*c);
a.l&&g.$s("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
UK=function(){var a=g.O("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")&&(this.localStorage=gpa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
gpa=function(a){return void 0===a.localStorage?new hv("yt-client-location"):a.localStorage};
VK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.O("INNERTUBE_CONTEXT");if(!d)return g.Tx(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Wb(d);g.Nr("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.O("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.Am(g.Xu);var h="USER_INTERFACE_THEME_LIGHT";g.Zu(0,165)?h="USER_INTERFACE_THEME_DARK":g.Zu(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Nr("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:mia()||h;e.userInterfaceTheme=f;
if(g.Nr("web_log_connection")&&!b){if(f=dv())e.connectionType=f;g.Nr("web_log_effective_connection_type")&&(f=fv())&&(d.client.effectiveConnectionType=f)}f=g.$r(g.A.location.href);!g.Nr("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(e.internalGeo=f.internalcountrycode);if("MWEB"===e.clientName||"WEB"===e.clientName)e.mainAppWebInfo={graftUrl:g.A.location.href},g.Nr("kevlar_woffle")&&Uu.i&&(e.mainAppWebInfo.pwaInstallabilityStatus=Uu.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),g.Nr("web_include_display_mode_killswitch")||(e.mainAppWebInfo.webDisplayMode=Vu()),g.Nr("kevlar_share_panel_more_button")&&(e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share);if(!g.Nr("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(B){}l=void 0}l&&(e.timeZone=l)}(l=g.O("EXPERIMENTS_TOKEN",""))?e.experimentsToken=l:delete e.experimentsToken;
l=Qr();TK.i||(TK.i=new TK);e=Lb(TK.i.i);d.request=Object.assign(Object.assign({},d.request),{internalExperimentFlags:l,consistencyTokenJars:e});e=g.Am(g.Xu);l=g.Zu(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);l&&(d.user.enableSafetyMode=l);e&&(d.user.lockedSafetyMode=!0);(l=g.O("DELEGATED_SESSION_ID"))&&!g.Nr("pageid_as_header_web")&&(d.user.onBehalfOfUser=l);g.Nr("warm_op_csn_cleanup")?c&&(b=g.Ix())&&(d.clientScreenNonce=b):!b&&(b=g.Ix())&&(d.clientScreenNonce=b);a&&(d.clickTracking=
{clickTrackingParams:a});g.Nr("web_enable_client_location_service")&&UK.getInstance().setLocationOnInnerTubeContext(d);var m;try{var n=is(void 0),p=n.bid;delete n.bid;d.adSignalsInfo={params:[],bid:p};for(var r=g.q(Object.entries(n)),t=r.next();!t.done;t=r.next()){var u=g.q(t.value),x=u.next().value,y=u.next().value;null===(m=d.adSignalsInfo.params)||void 0===m?void 0:m.push({key:x,value:""+y})}}catch(B){g.Tx(B)}return d};
WK=function(){rv.apply(this,arguments);this.rp={}};
hpa=function(){XK||(XK=new WK);return XK};
ipa=function(a,b){b?a.rp.Authorization="Bearer "+b:delete a.rp.Authorization};
jpa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
kpa=function(){var a=null;Ft().then(function(b){return a=b},function(b){return a=jpa(b)});
return a};
lpa=function(){var a=kh(1E3,"NO_BID");return Zg(g.ah(nda([Ft(),a]),jpa),function(){return a.cancel()})};
mpa=function(a){return a.Bb?g.Zu(g.Am(g.Xu),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
YK=function(a){this.player=a;this.l=this.i=1};
$K=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Hs,f=c.Td;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.T().Hj,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:mpa(a.player.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Cm(),LACT:mu(),LIVE_INDEX:e?a.l++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.Za().Zf().height,
P_W:a.player.Za().Zf().width,YT_REMOTE:h?h.join(","):""},m=hs(gs);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};fs(b)&&(d.sts="18802",(e=a.player.T().Va)&&(d.forced_experiments=e));b=cs(g.yq(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return Ug(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&es()){var n=hpa();ipa(n,d)}n=a.player.ll(n);a=npa(a,b,l,c.isMdxPlayback);return g.ZK(n,a,"/youtubei/v1/player/ad_break")};
qpa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=ds(b),f=opa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=opa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Xr(is(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];ppa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
tpa=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in rpa&&(f.clientName=rpa[d[0]]),d[1]in spa&&(f.platform=spa[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
npa=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=upa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=vpa.test(b),l=wpa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=xpa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=ypa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.wG(a.player.T()),r=VK(a.player.getVideoData(1).Ga,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";qpa(r,b,t.toString(),a.player.T());a={splay:!1,
lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:18802,autonavState:mpa(a.player.T())};d&&(d={},tpa(d,c.YT_REMOTE)&&(a.mdxContext=d));if(d=zpa.includes(p)?void 0:g.at("PREF")){for(var u=d.split(/[:&]/),x=0,y=u.length;x<y;x++){var B=u[x].split("=");if(("SML"===B[0].toUpperCase()||"GSML"===B[0].toUpperCase())&&1<B.length&&"TRUE"===B[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
Apa)for(d=d.split(/[:&]/),x=Apa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,u="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,B=d.length;y<B;y++){var G=d[y].split("=");if(G[0]===u&&parseInt("0x"+G[1],16)&x){d=!0;break a}}d=!1}a.autoCaptionsDefaultOn=d}b=Bpa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(r.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:a};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,
isProxyAdTagRequest:h,context:r,adSignalsInfoString:Xr(is(t.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());return f};
aL=function(a,b,c,d,e,f){g.Q.call(this);this.G=a;this.l=b;this.u=c;this.C=d;this.i=e;this.B=f;g.S(this.u.T().experiments,"html5_pacf_enable_non_dai_live_video_ads")||Cpa(this)};
Dpa=function(a,b){var c={isEmpty:!0,UH:!1,Uk:[]};if(!b)return c;b&&b.trackingParams&&apa(RK(),b.trackingParams);if(b&&b.adThrottled)return c.UH=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(e){return e.adPlacementRenderer}).filter(function(e){return e&&null!=e.renderer});
if(0==b.length)return c;if(0<a.i.i.end){var d=a.i.i.end.toString();b.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==e.kind&&"-1"==e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!=d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}c.Uk=b;
c.isEmpty=!1;return c};
Cpa=function(a){[a.i.ma,a.i.i].filter(function(b){return null!=b}).forEach(function(b){Uoa(a.l,b,a)})};
bL=function(a,b,c,d,e,f,h,l){LK.call(this,a,b,c,d,e,f,h,l);this.u=d.l;this.B=-1;this.G=null;this.K=Epa(this.Aw())};
Fpa=function(a){a.B++;var b=a.Aw();b?a.Ur(b):PK(a)};
Epa=function(a){return a?Gpa.some(function(b){return a instanceof b}):!1};
Hpa=function(a){this.i=new Zoa(function(b){b=new LK(a.Lf,a.I,a.CG(),b,a.Zk,a.tq,a.On,a.daiEnabled);MK(b);return b},function(b){return new aL(a.gA,a.Lf,a.I,a.cm,b,a.Zk)},function(b){b=new bL(a.Lf,a.I,a.CG(),b,a.Zk,a.tq,a.On,a.daiEnabled);
MK(b);return b})};
Ipa=function(a,b){mI.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Bv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),nI(this,new aJ(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.q(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);nI(this,e);c.push(e.l);d.instreamVideoAdRenderer.isCritical&&(this.l=1)}else d.adActionInterstitialRenderer?(d=new XI(d.adActionInterstitialRenderer),
nI(this,d)):d.adIntroRenderer&&(d=new $I(d.adIntroRenderer),nI(this,d),this.l=1);this.i.filter(function(f){return f instanceof kI}).forEach(function(f,h){f instanceof kI&&(h=new iI(h,c),f.u=h)})}}};
Kpa=function(a,b){mI.call(this);nI(this,Jpa(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new sI(c.instreamSurveyAdRenderer);break a}}b=null}nI(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.l=1,a=new XI(a.adActionInterstitialRenderer)):a=null:a=null;nI(this,a)};
Jpa=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.l=1,new XI(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Bv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new aJ(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new bJ(b.surveyTextInterstitialRenderer):null};
Lpa=function(a,b,c){this.u=a;this.i=b;this.l=c};
Mpa=function(a){this.i=a};
Npa=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.i.create(e,f):null;return new lna(b,c,h,d)}catch(l){g.Sr(l)}};
Opa=function(a){var b=new Mpa(a.TN);return{WG:function(){return b}}};
Ppa=function(a){g.E.call(this);this.i=a;this.l=new xna(a.I)};
Qpa=function(a){return function(){return new vK(a.i.I)}};
Rpa=function(a){return function(b,c){return new yna(b,a.l,c,a.i.I,a.i.ij,a.i.daiEnabled)}};
cL=function(a){g.E.call(this);var b=this;this.l=a;this.i=null;g.gf(this,function(){return b.i=null});
var c=lx(a);if(c){var d=function(){b.i&&b.i(!!jx())};
this.l.addEventListener(c,d);g.gf(this,function(){b.l.removeEventListener(c,d)})}};
dL=function(a){g.E.call(this);this.i=a};
Spa=function(a){var b=window.document;return g.EG(a.T())?new cL(b):new dL(a)};
Tpa=function(a){g.E.call(this);this.AL=new zoa(a.I,a.contentCpn,a.daiEnabled)};
Upa=function(a){eL=a&&a.data};
Wpa=function(a){Vpa=a&&a.data};
Xpa=function(a){fL=a&&a.data};
Ypa=function(a){gL=a&&a.data};
Zpa=function(a){hL=a&&a.data};
$pa=function(){hL=gL=fL=eL=null};
kL=function(a){g.E.call(this);var b=this;this.Cc=a;this.zd=new Map;this.i=new Map;iL(this,"commandExecutorCommand",function(c,d,e){b.ld(c.commands,d,e)});
jL(this,"commandExecutorCommand",function(c,d){aqa(b,c.commands,d)});
iL(this,"clickTrackingParams",function(){});
jL(this,"clickTrackingParams",function(){})};
bqa=function(a,b){iL(a,b.Tj(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
cqa=function(a,b){jL(a,b.Tj(),function(c,d){b.rl(c,d)})};
iL=function(a,b,c){a.Ha();a.zd.get(b)&&g.Tx(Error("Extension name "+b+" already registered"));a.zd.set(b,c)};
jL=function(a,b,c){a.Ha();a.i.get(b)&&g.Tx(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
aqa=function(a,b,c){b=void 0===b?[]:b;a.Ha();var d=[],e=[],f=g.q(b);for(b=f.next();!b.done;b=f.next())b=b.value,b.hasOwnProperty("pingingEndpoint")||b.hasOwnProperty("adPingingEndpoint")?d.push(b):e.push(b);d=g.q(d);for(b=d.next();!b.done;b=d.next())lL(a,b.value,c);e=g.q(e);for(b=e.next();!b.done;b=e.next())lL(a,b.value,c)};
dqa=function(a,b){a.Cc.get().Na("innertubeCommand",{openPopupAction:b})};
eqa=function(a,b){a.Cc.get().Na("innertubeCommand",{confirmDialogEndpoint:b})};
lL=function(a,b,c){a.Ha();b.loggingUrls&&fqa(a,"loggingUrls",b.loggingUrls,c);b=g.q(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?dqa(a,e):"confirmDialogEndpoint"===d?eqa(a,e):gqa.hasOwnProperty(d)||fqa(a,d,e,c)}};
hqa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.zd.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.Tx(f)}else b=new g.Gv("Unhandled field",b),g.Ux(b)};
fqa=function(a,b,c,d){(a=a.i.get(b))||new g.Gv("Unhandled field",b);try{a(c,d)}catch(e){g.Tx(e)}};
jqa=function(a,b,c,d){for(var e=!1,f=g.q(b.xi.entries()),h=f.next();!h.done;h=f.next())h=g.q(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.ob&&"core"===h.gb&&(e=!0);e?(d=iqa(b,d))?c.xB(d):R("No triggering layout ID available when attempting to mute."):g.Ig(function(){a.Rj()})};
iqa=function(a,b){if(b)return b;a=g.q(a.xi.entries());for(b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.ob&&"core"===b.gb)return c.layoutId}};
kqa=function(a){var b=new CI(a.oo),c=new DI(b);return{NO:function(){return b},
lB:function(){return c}}};
mL=function(a,b,c,d,e,f){g.Q.call(this);var h=this;this.i=c;this.Ga=null;this.Ya=d;this.X=f.kh;this.Y=f.cn;this.l=null;this.u=new Map;d=this.i.T().experiments;var l=kqa({oo:c.getVideoData(1)}),m=new Ppa({ij:l.lB(),I:c,daiEnabled:!1});g.F(this,m);this.Pn=new Set;this.Mw=-1;this.ma=[];this.G=null;this.va=new Map;this.J=new Map;this.K=new Set;this.B=new mx(this);g.F(this,this.B);this.C=new mx(this);g.F(this,this.C);this.xa=this.Va=this.Aa=!1;this.U=g.EG(c.T());this.bb=e;e=new Tpa({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
C7:this,daiEnabled:!1,I:this.i});g.F(this,e);this.Da=e.AL;this.Pa=(new xoa({D7:this,a8:g.S(d,"html5_recognize_predict_start_cue_point"),W7:g.S(d,"html5_persist_cue_range_killswitch")})).i;var n=Zb(wI(vI(this.i)));b=new uoa({Ta:this,Ao:hI(),ij:l.lB(),I:this.i,KT:n,yy:Rpa(m),daiEnabled:!1,Al:f.Al,kh:this.X,zl:f.zl,Cd:b});this.Ea=(new Hpa({cm:this.Ya,On:b.SN,gA:a,Lf:this,Ao:hI(),CG:Qpa(m),Zk:this.Da,tq:this.Pa,I:this.i,i8:n,yy:function(p){return Rpa(m)(p,n)},
daiEnabled:!1})).VG();this.La=Opa({TN:new Lpa(new fna(c),d,function(p){return h.J.has(p)?h.J.get(p):null})}).WG();
this.Ua=Spa(this.i);g.F(this,this.Ua);this.eb=KG(this.i.T())?g.S(this.i.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.S(this.i.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
pqa=function(a,b,c){var d=a.i.getVideoData(1);if(d.Xn||g.O("SERVED_VIA_SPF_HISTORY"))g.S(a.i.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.Y.Qj():nL(a,c);else{if(zI(a.i)){var e=lqa(a.i);e.addEventListener("updateKevlarOrC3Companion",Upa);e.addEventListener("onPlaShelfInfoCardsReady",Wpa);e.addEventListener("updateEngagementPanelAction",Xpa);e.addEventListener("changeEngagementPanelVisibility",Ypa);e.addEventListener("scrollToEngagementPanel",Zpa);window.addEventListener("yt-navigate-start",
$pa)}a.B.N(a.i,"applicationplayerstatechange",a.OQ);a.B.N(a.i,g.Iz("ad"),a.qC,a);a.B.N(a.i,g.Jz("ad"),a.iR,a);a.B.N(a.i,"aduxclicked",a.AQ);a.B.N(a.i,"videodatachange",a.xT);b=mqa(a,b);b=nqa(a,b);b=oqa(a,b);0<b.length&&oL(a,b);a.G&&d.subscribe("cuepointupdated",a.RI,a);pL(a.X,c)||nL(a,c);g.Ig(a.VU,a)}};
mqa=function(a,b){return b.filter(function(c){if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)){if(g.S(a.i.T().experiments,"html5_pacf_enable_non_dai_live_video_ads"))return R("Tries to extract CuePoint triggered AdPlacementRenderer."),!1;g.EG(a.i.T())&&a.i.getVideoData(1).Sh()||(a.G=c);return!1}return!0})};
nqa=function(a,b){a.va=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.va.set(c.elementId,c),!1):!0})};
oqa=function(a,b){a.J=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.J.set(c.hostElementId,c),!1):!0})};
qqa=function(a,b){return b.every(function(c){c=a.u.get(c);return null==c?(g.Sr(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof aL?!1:c instanceof LK?!c.Po():!0})};
nL=function(a,b){var c=rqa(a);0<c.length?(pL(a.X,b)||qqa(a,c)&&a.Y.Qj(),b=g.T(a.i.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms"),0<b&&!a.U&&g.bG(a.i.T())?(b=new g.J(function(){sqa(a,c)},b),g.F(a,b),b.start()):g.Ig(function(){sqa(a,c)})):pL(a.X,b)||a.Y.Qj()};
rqa=function(a){for(var b=tqa(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.Pn.delete(d.value);return b};
tqa=function(a){var b=[];a=g.q(a.Pn);for(var c=a.next();!c.done;c=a.next())c=c.value,Lz(c)&&b.push(c);return b};
uqa=function(a,b,c){c=void 0===c?null:c;var d=a.La,e=d.create;var f=1E3*a.i.getDuration(1);f=new sz(f,1E3*a.i.getCurrentTime(1)||0,!1,g.S(a.i.T().experiments,"html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.ma.length,c);a.ma=a.ma.concat(b);return b};
sqa=function(a,b){if(!a.Ha()){b=g.q(b);for(var c=b.next();!c.done;c=b.next())a.qC(c.value)}};
oL=function(a,b,c){b=uqa(a,b,void 0===c?null:c);0==b.length||b.map(function(d){return a.Ea.create(d)})};
vqa=function(a){a.Aa||(a.C.N(a.i,"presentingplayerstatechange",a.BL),a.C.N(a.i,"internalAbandon",a.qQ),a.C.N(a.i,"progresssync",a.AT),a.C.N(a.i,"onVolumeChange",a.BT),a.C.N(a.Ua,"fullscreentoggled",a.uR),a.Aa=!0);g.K(a.i.getRootNode(),"ad-showing");g.K(a.i.getRootNode(),"ad-interrupting");g.S(a.i.T().experiments,"enable_html5_teal_ad_badge")&&zI(a.i)&&g.K(a.i.getRootNode(),"ad-teal-design");a.i.jj(2)};
OK=function(a,b,c){var d=!!a.l&&a.l||null,e=d&&d.Po()&&(yI(a.i)||!1);d=b&&d&&d.reset()||null;a.l&&wqa(a,a.l);a.l=null;a.Mw=-1;e&&xqa(a,c);a.xa||a.Y.Qj();b&&d&&(d.aF().l=!1,MK(d))};
xqa=function(a,b){g.ox(a.C);a.Aa=!1;g.Oq(a.i.getRootNode(),"ad-showing");a.eb?(a.xa||a.Y.Qj(),yqa(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),yqa(a));g.Oq(a.i.getRootNode(),"ad-interrupting");g.S(a.i.T().experiments,"enable_html5_teal_ad_badge")&&g.Oq(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
yqa=function(a){if(a.Va)!a.U&&g.bG(a.i.T())&&(g.S(a.i.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.S(a.i.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&a.i.jn(2);else if(a.i.jn(2),!a.U){var b=a.i.sb(1);g.U(b,4)&&!g.U(b,2)&&a.i.playVideo()}};
Uoa=function(a,b,c){if(b instanceof Kz){if(a.U&&Mz(b)&&g.U(a.i.sb(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.u.has(b)?g.Sr(Error(b.toString()+" has already been seen")):(a.Pn.add(b),a.u.set(b,c),Lz(b)||a.i.Dd([b],1))}else g.Sr(Error("Should use AdCueRange instead of CueRange"))};
wqa=function(a,b){a=a.u;for(var c=g.q(a),d=c.next();!d.done;d=c.next()){d=g.q(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.ef(b)};
qL=function(a){g.E.call(this);this.l=a};
rL=function(a){qL.call(this,!0);this.i=a};
zqa=function(a,b){function c(f){return{toString:f}}
var d={},e=a.getVideoData(1);d.CPN=c(function(){return e&&e.clientPlaybackNonce||null});
d.ASR=c(function(){return e&&e.Lk||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.nw()});
d.AD_MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(2))).toString()});
d.MT=c(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1))).toString()});
d.P_H=c(function(){return a.getPlayerSize().height.toString()});
d.PV_H=d.P_H;d.P_W=c(function(){return a.getPlayerSize().width.toString()});
d.PV_W=d.P_W;d.CONN="0";d.WT=c(function(){return Date.now().toString()});
d.LACT=c(function(){return mu().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
Aqa=function(a,b){g.E.call(this);var c=this;this.u=[];this.J=!1;this.l=0;this.C=this.G=this.B=!1;this.Y=null;var d=(0,g.C)(a,b);this.i=new g.J(function(){return d(c.Y)},300);
g.F(this,this.i);this.U=this.K=Infinity};
Bqa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.u.includes(d.identifier))return!0}return!1};
sL=function(){var a="ytp-id-"+Cqa.toString();Cqa++;return a};
g.tL=function(a){g.E.call(this);this.Ua={};this.Hb={};this.element=this.createElement(a)};
uL=function(a,b,c,d){if("{{"===d.substr(0,2))a.Hb[d]=[b,c];else return d};
Dqa=function(a,b){var c=[];if(!b)return c;b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.D?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.ng("BR"));c.push(g.og(f))}):c.push(g.og(d))}return c};
vL=function(a,b,c,d){if("child"===c){g.pg(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.D?[d]:d;c=Dqa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.zl(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Fc(g.Jc(a))),b.setAttribute(c,a))};
g.V=function(a){g.tL.call(this,a);this.vb=!0;this.Y=!1;this.listeners=[]};
g.wL=function(a,b){b?a.show():a.hide()};
g.xL=function(a){g.V.call(this,a);this.Ea=new g.Q;g.F(this,this.Ea)};
yL=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.xL.call(this,c);this.api=a;this.Ta=b;this.macros={};this.componentType=d;this.J=null;this.bb=h;this.layoutId=e;this.i=f;this.La=null;this.dK=new rL(this.element);g.F(this,this.dK);this.Ya=this.N(this.element,"click",this.onClick);this.va=[];this.ma=new Aqa(this.onClick,this);g.F(this,this.ma);this.eb=!1;this.U=null};
Eqa=function(a,b,c){a.Ta?a.Ta.executeCommand(b,a.macros,c):g.Sr(Error("null or undefined adService"))};
zL=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return Ur(Error("Got null or undefined adText object")),"";var c=g.rd(a.text);if(!a.isTemplated)return c;if(null==b)return Ur(Error("Missing required parameters for a templated message")),c;a=g.q(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.q(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
Fqa=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].url)?g.rd(a.thumbnails[0].url):""};
Gqa=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].width&&null!=a.thumbnails[0].height)?new g.Sf(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Sf(0,0)};
g.Hqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
AL=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",V:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.BL=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{D:"path",V:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.CL=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{D:"path",V:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
Iqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",V:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{D:"path",V:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
Jqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Kqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.DL=function(){return{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
Lqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}};
Mqa=function(){return{D:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",V:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
Nqa=function(){return{D:"svg",V:{viewBox:"0 0 24 24"},S:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",V:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
Oqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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"}}]}};
Pqa=function(){return{D:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{D:"path",V:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",V:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
g.EL=function(){return{D:"svg",V:{viewBox:"0 0 24 24"},S:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",V:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
FL=function(){return{D:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",V:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
Qqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
GL=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.HL=function(){return{D:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{D:"path",V:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
Rqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Sqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
Tqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
Uqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.IL=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.JL=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
Vqa=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
KL=function(){return{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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"}}]}};
LL=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{D:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{D:"path",V:{d:"M0 0h48v48H0z",fill:"none"}},{D:"path",V:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},
{D:"path",V:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.DL();case "INFO_OUTLINE":return Pqa();case "REMOVE_CIRCLE":return{D:"svg",
V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",V:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return GL();case "LIKE":return g.EL();case "DISLIKE":return Nqa();default:return g.Ux(new g.Gv("Unexpected icon:",a)),null}};
ML=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={D:"button",Ca:["ytp-ad-button"].concat(e)};null!=l&&(e.V={tabindex:l});yL.call(this,a,b,e,void 0===f?"button":f,c,d);this.l=this.u=this.B=null;this.C=h;this.hide()};
Wqa=function(a){var b=null;null!=a.l&&(b=[a.l.serviceEndpoint,a.l.navigationEndpoint].filter(function(c){return null!=c}),a.l.command&&(b=b.concat(a.l.command)));
return b||[]};
NL=function(){g.E.call(this);var a=this;this.i=new Map;this.l=vha(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.ou(b[c],void 0,void 0)})};
Xqa=function(){null==OL&&(OL=new NL);return OL};
PL=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Yqa(a))){b=mg("SPAN",null,b);break a}b=g.og(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Zqa(e,b))}return 1==c.length?c[0]:mg("SPAN",null,c)};
Zqa=function(a,b){var c=null,d=a.text;b&&(d=Yqa(d)||d);a.bold&&(c=mg("B",null,c||d));a.italics&&(c=mg("I",null,c||d));a.strikethrough&&(c=mg("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=mg("A",null,c||d),g.kd(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Xqa().register(c,a),g.K(c,"ytp-ad-has-logging-urls"));
return c||mg("SPAN",null,d)};
Yqa=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(mg("BR")),b.push(a[c]);return b}return null};
QL=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;yL.call(this,a,b,{D:"span",Ca:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.u=null;this.G=f;this.C=e;this.hide()};
RL=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.rd(a.thumbnails[0].url):""};
SL=function(a,b,c,d,e,f){f=void 0===f?!1:f;yL.call(this,a,b,{D:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.l=f;this.hide()};
TL=function(a,b,c,d,e,f){e=void 0===e?[]:e;yL.call(this,a,b,{D:"div",Ca:["ytp-ad-confirm-dialog-background"],S:[{D:"div",L:"ytp-ad-confirm-dialog-container",S:[{D:"div",Ca:["ytp-ad-confirm-dialog"].concat(e),V:{role:"dialog",tabindex:"-1"},S:[{D:"div",L:"ytp-ad-confirm-dialog-title",oa:"{{title}}"},{D:"div",L:"ytp-ad-confirm-dialog-messages"},{D:"div",L:"ytp-ad-confirm-dialog-confirm-container",S:[{D:"button",L:"ytp-ad-confirm-dialog-cancel-button",oa:"{{cancelLabel}}"},{D:"button",L:"ytp-ad-confirm-dialog-confirm-button",
oa:"{{confirmLabel}}"}]}]}]},{D:"button",Ca:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{D:"span",L:"ytp-ad-button-icon",S:[g.DL()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.K=this.Ba("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Ba("ytp-ad-confirm-dialog-cancel-button");this.G=this.Ba("ytp-ad-confirm-dialog-confirm-button");this.X=this.Ba("ytp-ad-confirm-dialog-messages");this.B=null;this.l=new mx;g.F(this,this.l);this.u=null;this.hide()};
$qa=function(a,b){if(b.title){var c=g.Pz(b.title);a.Sa("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=PL(d.value),a.X.appendChild(d)}b.cancelLabel&&(c=g.Pz(b.cancelLabel),a.Sa("cancelLabel",c),a.l.N(a.C,"click",function(e){return a.lz(e)}));
b.confirmLabel&&(b=g.Pz(b.confirmLabel),a.Sa("confirmLabel",b),a.l.N(a.G,"click",function(e){return a.oC(e)}));
a.l.N(a.K,"click",function(e){return a.nC(e)})};
UL=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=PI("ytp-ad-toggle-button-input");yL.call(this,a,b,{D:"div",Ca:["ytp-ad-toggle-button"].concat(e),S:[{D:"label",L:"ytp-ad-toggle-button-label",V:{"for":h},S:[{D:"span",L:"ytp-ad-toggle-button-icon",V:{role:"button","aria-label":"{{tooltipText}}"},S:[{D:"span",L:"ytp-ad-toggle-button-untoggled-icon",oa:"{{untoggledIconTemplateSpec}}"},{D:"span",L:"ytp-ad-toggle-button-toggled-icon",oa:"{{toggledIconTemplateSpec}}"}]},{D:"input",
L:"ytp-ad-toggle-button-input",V:{id:h,type:"checkbox"}},{D:"span",L:"ytp-ad-toggle-button-text",oa:"{{buttonText}}"},{D:"span",L:"ytp-ad-toggle-button-tooltip",oa:"{{tooltipText}}"}]}]},f,c,d);this.B=this.Ba("ytp-ad-toggle-button");this.l=this.Ba("ytp-ad-toggle-button-input");this.Ba("ytp-ad-toggle-button-label");this.X=this.Ba("ytp-ad-toggle-button-icon");this.G=this.Ba("ytp-ad-toggle-button-untoggled-icon");this.C=this.Ba("ytp-ad-toggle-button-toggled-icon");this.xa=this.Ba("ytp-ad-toggle-button-text");
this.u=null;this.K=!1;this.hide()};
VL=function(a){a.K&&(a.isToggled()?(g.Pl(a.G,!1),g.Pl(a.C,!0)):(g.Pl(a.G,!0),g.Pl(a.C,!1)))};
ara=function(a,b){var c=null;a.u&&(c=(b?[a.u.defaultServiceEndpoint,a.u.defaultNavigationEndpoint]:[a.u.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
WL=function(a){mx.call(this);this.i=a;this.N(this.i,"onAdUxUpdate",this.J)};
XL=function(a,b,c,d){yL.call(this,a,b,{D:"div",L:"ytp-ad-feedback-dialog-background",S:[{D:"div",L:"ytp-ad-feedback-dialog-container",S:[{D:"div",L:"ytp-ad-feedback-dialog-form",V:{role:"dialog",tabindex:"-1"},S:[{D:"div",L:"ytp-ad-feedback-dialog-title",S:[{D:"span",oa:"{{title}}"}]},{D:"span",L:"ytp-ad-info-dialog-feedback-options-title",oa:"{{reasonsTitle}}"},{D:"div",L:"ytp-ad-info-dialog-feedback-options"},{D:"div",L:"ytp-ad-feedback-dialog-confirm-container",S:[{D:"button",L:"ytp-ad-feedback-dialog-cancel-button",
oa:"{{cancelLabel}}"},{D:"button",L:"ytp-ad-feedback-dialog-confirm-button",oa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.C=[];this.l=null;this.G=this.Ba("ytp-ad-feedback-dialog-cancel-button");this.K=this.Ba("ytp-ad-feedback-dialog-confirm-button");this.X=this.Ba("ytp-ad-info-dialog-feedback-options");this.xa=this.Ba("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
era=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.l=new ML(a.api,a.Ta,a.layoutId,a.i,["ytp-ad-feedback-dialog-close-button"],"button"),g.F(a,a.l),a.l.init(PI("button"),c,a.macros),a.l.Ra("click",a.LI,a),a.l.ya(a.element));b.title&&(c=g.Pz(b.title),a.Sa("title",c));b.reasonsTitle&&(c=g.Pz(b.reasonsTitle),a.Sa("reasonsTitle",c));b.reasons&&bra(a,b.reasons);b.cancelLabel&&(c=g.Pz(b.cancelLabel),a.Sa("cancelLabel",c),g.Ot(a.G,"click",function(){return a.LI()}));
b.confirmLabel&&(c=g.Pz(b.confirmLabel),a.Sa("confirmLabel",c),g.Ot(a.K,"click",function(){return cra(a)}));
b.undoRenderer&&dra(a,b.undoRenderer)};
bra=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?Ur(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?Ur(Error("AdFeedbackReason.endpoint was not set.")):(c=new fra(c,d),g.F(a,c),a.X.appendChild(c.i.element),a.C.push(c)))}};
dra=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new ML(a.api,a.Ta,a.layoutId,a.i,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.F(a,a.u),a.u.init(PI("ad-feedback-undo-mute-button"),b,a.macros),a.u.Ra("click",a.vT,a),a.u.ya(a.xa)):Ur(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
cra=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Ta.executeCommand(b[0].l,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.W("a"),a.hide())};
fra=function(a,b){this.l=b;this.i=new g.xL({D:"label",L:"ytp-ad-feedback-dialog-reason-label",S:[{D:"input",L:"ytp-ad-feedback-dialog-reason-input",V:{type:"radio",name:"feedback-reason-group"}},{D:"span",L:"ytp-ad-feedback-dialog-reason-text",oa:g.Pz(a)}]});this.u=this.i.Ba("ytp-ad-feedback-dialog-reason-input")};
YL=function(a,b,c,d){TL.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
ZL=function(a,b,c,d,e){yL.call(this,a,b,{D:"div",L:"ytp-ad-info-dialog-background",S:[{D:"div",L:"ytp-ad-info-dialog-container",S:[{D:"div",L:"ytp-ad-info-dialog-form",V:{role:"dialog",tabindex:"-1"},S:[{D:"div",L:"ytp-ad-info-dialog-title",oa:"{{title}}"},{D:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{D:"div",L:"ytp-ad-info-dialog-message"},{D:"div",L:"ytp-ad-info-dialog-mute-container"},{D:"div",L:"ytp-ad-info-dialog-confirm-container",S:[{D:"button",L:"ytp-ad-info-dialog-confirm-button",oa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.l=this.u=null;this.K=this.Ba("ytp-ad-info-dialog-confirm-button");this.Pa=this.Ba("ytp-ad-info-dialog-mute-container");this.Ga=this.Ba("ytp-ad-info-dialog-message");this.Aa=this.Ba("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.xa=e;this.G=null;this.Da=!1;this.X=null;this.hide()};
gra=function(a){(a.G&&a.G.impressionEndpoints||[]).forEach(function(b){return a.Ta.executeCommand(b,a.macros)})};
hra=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new XL(a.api,a.Ta,a.layoutId,a.i),g.F(a,a.u),a.u.init(PI("ad-feedback-dialog"),b,a.macros),a.u.ya(a.xa),a.u.subscribe("a",function(){return a.W("c")})};
ira=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new YL(a.api,a.Ta,a.layoutId,a.i),g.F(a,a.C),a.C.init(PI("ad-mute-confirm-dialog"),b,a.macros),a.C.ya(a.xa),a.C.subscribe("b",function(){return a.W("c")})};
jra=function(a){a.l&&a.l.Ra("click",a.yE,a);g.Ot(a.K,"click",function(){return a.yE()})};
$L=function(a,b,c,d,e,f){QL.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.l=null;this.B=e;this.hide()};
kra=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.Sr(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.l=new ZL(a.api,a.Ta,a.layoutId,a.i,a.B),g.F(a,a.l),a.l.init(PI("ad-info-dialog"),b,c),a.l.ya(a.B),a.l.subscribe("d",function(){return a.W("f")}),a.l.subscribe("c",function(){return a.W("e")}))};
mra=function(a,b,c){null==a.button?g.Sr(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.K(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(kra(a,b,c),a.button.Ra("click",function(){a.l&&!a.l.vb&&(a.l.show(),lra(a))})):a.button.Ra("click",function(){return lra(a)}))};
lra=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
aM=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.l=null;this.hide()};
bM=function(a,b){b&&g.ug(a.element,zL(a.l,b))};
cM=function(a,b,c,d,e,f,h){yL.call(this,a,b,c,d,e,f);this.l=h;g.F(this,this.l);this.Aa=this.C=-1};
dM=function(a){a.l&&-1===a.C&&(a.C=a.l.subscribe("h",a.fn,a),a.Aa=a.l.subscribe("g",a.pp,a),a.fn())};
eM=function(a){null!=a.l&&-1!==a.C&&(a.l.Tf(a.C),a.l.Tf(a.Aa),a.Aa=-1,a.C=-1)};
g.fM=function(a,b,c,d,e,f){g.E.call(this);this.element=a;this.state=null;c||a.hide();this.u=b;this.B=void 0===d?b:d;this.i=f;this.l=e;this.delay=new g.J(this.Ey,0,this);g.F(this,this.delay)};
gM=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
hM=function(a,b,c,d,e,f){cM.call(this,a,b,{D:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.Ga=-1;this.u=new g.xL({D:"span",L:"ytp-ad-preview-container"});g.F(this,this.u);this.B=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-preview-text");g.F(this,this.B);this.B.ya(this.u.element);this.K=new g.xL({D:"span",L:"ytp-ad-preview-image"});g.F(this,this.K);this.G=new SL(this.api,this.Ta,this.layoutId,this.i);g.F(this,this.G);this.G.ya(this.K.element);this.K.ya(this.u.element);
this.u.ya(this.element);this.X=new g.fM(this.u,400,!1,100,function(){return h.hide()});
g.F(this,this.X);this.xa=0;this.Da=!1;this.Pa=f;this.hide()};
iM=function(a){a.X.show(100);a.show()};
jM=function(a,b,c,d,e){cM.call(this,a,b,{D:"div",Ca:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{D:"div",L:"ytp-flyout-cta-icon-container"},{D:"div",L:"ytp-flyout-cta-body",S:[{D:"div",L:"ytp-flyout-cta-text-container",S:[{D:"div",L:"ytp-flyout-cta-headline-container"},{D:"div",L:"ytp-flyout-cta-description-container"}]},{D:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.K=new SL(this.api,this.Ta,this.layoutId,this.i,"ytp-flyout-cta-icon");g.F(this,this.K);this.K.ya(this.Ba("ytp-flyout-cta-icon-container"));
this.G=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-flyout-cta-headline");g.F(this,this.G);this.G.ya(this.Ba("ytp-flyout-cta-headline-container"));this.B=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-flyout-cta-description");g.F(this,this.B);this.B.ya(this.Ba("ytp-flyout-cta-description-container"));this.u=new ML(this.api,this.Ta,this.layoutId,this.i,["ytp-flyout-cta-action-button"]);g.F(this,this.u);this.u.ya(this.Ba("ytp-flyout-cta-action-button-container"));this.X=null;this.xa=0;this.hide()};
kM=function(a,b,c,d,e){yL.call(this,a,b,{D:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.l=null;this.B=new UL(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-like-button"]);g.F(this,this.B);this.B.ya(this.element);this.u=new UL(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-instream-user-sentiment-dislike-button"]);g.F(this,this.u);this.u.ya(this.element);this.C=new g.fM(this,400,!1,500,function(){return f.hide()});
g.F(this,this.C);this.hide()};
nra=function(a,b){a.B.init(PI("toggle-button"),a.l.likeButton.toggleButtonRenderer,b);a.u.init(PI("toggle-button"),a.l.dislikeButton.toggleButtonRenderer,b);a.N(a.element,"change",a.zE)};
lM=function(a,b,c,d,e){e=void 0===e?0:e;g.E.call(this);this.u=a;this.l=!1;this.U=d;this.G=!1;this.i=null;0<b&&(this.i=new g.J(this.YF,b,this),g.F(this,this.i));this.C=new g.J(this.YF,c,this);g.F(this,this.C);this.K=Tq(this.u,e,1,d);g.F(this,this.K);this.J=Tq(this.u,0,d,1);g.F(this,this.J);this.B=new mx;g.F(this,this.B)};
mM=function(a,b,c,d,e,f){cM.call(this,a,b,{D:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var h=this;this.K=null;this.xa=!1;this.Da=f;this.B=new g.xL({D:"span",Ca:["ytp-ad-skip-button-container"]});g.F(this,this.B);this.B.ya(this.element);this.u=this.G=null;this.Ga=new g.fM(this.B,500,!1,100,function(){return h.hide()});
g.F(this,this.Ga);this.X=new lM(this.B.element,15E3,5E3,.5,.5);g.F(this,this.X);this.hide()};
pra=function(a){var b=a.K&&a.K.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return g.S(a.api.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?ora(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
ora=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
nM=function(a,b,c,d,e,f){cM.call(this,a,b,{D:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.X=f;this.K=!1;this.G=0;this.B=this.u=null;this.hide()};
oM=function(a,b){a.K||(a.K=!0,a.u&&(b?a.u.X.hide():a.u.hide()),b?(a=a.B,a.Ga.show(),a.show()):a.B.show())};
pM=function(a,b,c,d){ML.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
qM=function(a,b,c,d,e){e=void 0===e?!1:e;yL.call(this,a,b,{D:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.l=e;this.hide()};
rM=function(a,b){g.Q.call(this);this.api=a;this.durationMs=b;this.i=null;this.Zd=new mx(this);g.F(this,this.Zd);this.l=qra;this.Zd.N(this.api,"presentingplayerstatechange",this.Dc);this.i=this.Zd.N(this.api,"onAdPlaybackProgress",this.Rb)};
sM=function(a,b,c){c=void 0===c?!1:c;g.Q.call(this);var d=this;this.Ta=b;this.G=c;this.u=!1;this.B=this.i=0;this.Zd=new mx(this);g.F(this,this.Zd);this.durationMs=a;this.l=new g.ih(100);g.F(this,this.l);this.G?this.l.Ra("tick",function(){d.Rb()}):this.Zd.N(this.l,"tick",this.Rb);
this.C={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.tM=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";d=(b+(" "+f+" Minutes ")+(c+" Seconds")).trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.uM=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)};
vM=function(a,b,c,d,e,f){cM.call(this,a,b,{D:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()};
wM=function(a,b,c,d){aM.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
xM=function(a,b){this.l=a;this.i=b};
yM=function(a){return a.i-a.l};
zM=function(a,b){return a.l+b*yM(a)};
AM=function(a,b,c){return yM(a)?g.Mf((b-a.l)/yM(a),0,1):null!=c?c:Infinity};
BM=function(a,b){g.xL.call(this,{D:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{D:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.l=b;g.F(this,this.l);this.Ec=this.Ba("ytp-ad-persistent-progress-bar");this.i=-1;this.N(a,"presentingplayerstatechange",this.u);this.hide();this.u()};
CM=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",L:"ytp-ad-player-overlay",S:[{D:"div",L:"ytp-ad-player-overlay-flyout-cta"},{D:"div",L:"ytp-ad-player-overlay-instream-info"},{D:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",L:"ytp-ad-player-overlay-progress-bar"},{D:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.G=f;this.K=this.Ba("ytp-ad-player-overlay-flyout-cta");this.u=this.Ba("ytp-ad-player-overlay-instream-info");this.B=null;rra(this)&&(a=
mg("div"),g.K(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new wM(this.api,this.Ta,this.layoutId,this.i),c.ya(a),c.init(PI("ad-title"),{text:b.title},this.macros),g.F(this,c)),this.B=a);this.C=this.Ba("ytp-ad-player-overlay-skip-or-preview");this.xa=this.Ba("ytp-ad-player-overlay-progress-bar");this.X=this.Ba("ytp-ad-player-overlay-instream-user-sentiment");this.l=e;g.F(this,this.l);this.hide()};
rra=function(a){a=a.api.T();return g.VF(a)&&a.i};
DM=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.ti("/sharing_services",a);g.ou(d)};
g.tra=function(a,b,c){b=sra(null,b,c);if(b=ld(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.wu("LOGGED_IN",function(d){g.xu(g.O("LOGGED_IN_PUBSUB_KEY",void 0));Kr("LOGGED_IN",!0);a(d)}),Kr("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
sra=function(a,b,c){var d="/signin?context=popup";c&&(d=document.location.protocol+"//"+c+d);c=document.location.protocol+"//"+document.domain+"/post_login";a&&(c=si(c,"mode",a));a=si(d,"next",c);b&&(a=si(a,"feature",b));return a};
vra=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=ura[b];if(c){var d=new RegExp(c),e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(ura).forEach(function(h){var l=g.q(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.EM=function(a){return"/youtubei/v1/"+vra(a)};
FM=function(a){var b=g.O("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(ki(a)));return a};
wra=function(a,b){g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=cs(a,{key:g.O("INNERTUBE_API_KEY")}));return a};
GM=function(a,b){return{method:void 0===b?"POST":b,mode:ds(a)?"same-origin":"cors",credentials:ds(a)?"same-origin":"include"}};
HM=function(){};
IM=function(){};
JM=function(a,b,c,d){var e=Av;this.i=a;this.B=b;this.l=c;this.handleError=e;this.u=d;a.Dp||(a.Dp={});a.Dp=Object.assign(Object.assign({},xra),a.Dp)};
KM=function(a,b,c){var d=void 0===d?Gw:d;var e=yra(a,b);if(!e)return g.Nr("web_innertube_transport_errors_reject_killswitch")?(a.handleError(new g.Gv("Error: No request builder found for command.",b)),Tg({})):Ug(new g.Gv("Error: No request builder found for command.",b));var f=e.C(b,c,d);return f?new Ng(function(h){return g.D(a,function m(){var n,p,r=this,t;return g.z(m,function(u){if(1==u.i)return p="cors"===(null===(n=f.tp)||void 0===n?void 0:n.mode)?"cors":void 0,g.w(u,zra(r,f.config,p),2);t=u.l;
h(Ara(r,f,t));g.sa(u)})})}):g.Nr("web_innertube_transport_errors_reject_killswitch")?(a.handleError(new g.Gv("Error: Failed to build request for command.",b)),Tg({})):Ug(new g.Gv("Error: Failed to build request for command.",b))};
g.ZK=function(a,b,c){var d=void 0===d?{Tn:{identity:Gw}}:d;var e=void 0===e?!0:e;b.context||(b.context=VK(void 0,e));return new Ng(function(f){return g.D(a,function l(){var m,n,p=this,r,t,u;return g.z(l,function(x){if(1==x.i)return m=FM(c),n=ds(m)?"same-origin":"cors",g.w(x,zra(p,d,n),2);r=x.l;t=wra(FM(c),r);u={input:t,tp:GM(t),Et:b,config:d};f(Ara(p,u,r));g.sa(x)})})})};
Ara=function(a,b,c){return g.D(a,function e(){var f=this,h,l,m,n,p,r,t,u,x;return g.z(e,function(y){switch(y.i){case 1:y.ub(2);break;case 3:if((h=y.l)&&!h.isExpired())return y.return(Promise.resolve(h.i()));case 2:l=g.q([]);for(m=l.next();!m.done;m=l.next())n=m.value,n.Z7(b.Et.context);p=JSON.stringify(b.Et);b.tp=Object.assign(Object.assign({},b.tp),{headers:c});r=Object.assign({},b.tp);"POST"===b.tp.method&&(r=Object.assign(Object.assign({},r),{body:p}));return g.w(y,f.B.fetch(b.input,r),4);case 4:if((t=
y.l)&&f.u)for(u=g.q(f.u),m=u.next();!m.done;m=u.next())x=m.value,x.handleResponse(t,b);return y.return(t)}})})};
Bra=function(a,b){var c,d;if(!b)return!1;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.Dp)return Pr("web_op_signal_type_banlist").includes(b.signalServiceEndpoint.signal)?!1:!!a.i.Dp[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.EA)return Pr("web_op_continuation_type_banlist").includes(b.continuationCommand.request)?!1:!!a.i.EA[b.continuationCommand.request];for(var e in b)if(a.i.BA[e]){if(Pr("web_op_endpoint_banlist").includes(e))break;
return!0}return!1};
zra=function(a,b,c){return g.D(a,function e(){var f=this;return g.z(e,function(h){if(f.l.zU){var l=h.return,m,n,p=(null===(n=null===b||void 0===b?void 0:b.Tn)||void 0===n?void 0:n.identity)||Gw;n=null===(m=null===b||void 0===b?void 0:b.Tn)||void 0===m?void 0:m.sessionIndex;m=f.l.pw(p,{sessionIndex:n});m=Object.assign(Object.assign({},Cra(c)),m);h=l.call(h,m)}else h=h.return(Dra(f,b,c));return h})})};
Dra=function(a,b,c){var d,e,f=(null===(d=null===b||void 0===b?void 0:b.Tn)||void 0===d?void 0:d.identity)||Gw;b=null===(e=null===b||void 0===b?void 0:b.Tn)||void 0===e?void 0:e.sessionIndex;return uv(a.l,f,{sessionIndex:b}).then(function(h){return Promise.resolve(Object.assign(Object.assign({},Cra(c)),h))})};
Cra=function(a){var b={"Content-Type":"application/json"},c=g.O("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"cors"!==a&&((a=g.O("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.O("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.O("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a));return b};
yra=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.i.Dp){var e=a.i.Dp[b.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.i.EA&&(e=a.i.EA[b.continuationCommand.request]))return new e;for(var f in b)if(a.i.BA[f]&&(b=a.i.BA[f]))return new b};
LM=function(){};
MM=function(){};
NM=function(){};
OM=function(){};
PM=function(){};
QM=function(){};
RM=function(){this.i=this.l=void 0};
g.TM=function(a,b){if(!SM){var c={BA:{feedbackEndpoint:NM,modifyChannelNotificationPreferenceEndpoint:OM,playlistEditEndpoint:PM,subscribeEndpoint:LM,unsubscribeEndpoint:MM,webPlayerShareEntityServiceEndpoint:QM}},d=g.Nr("web_enable_client_location_service")?UK.getInstance():void 0,e=[];d&&e.push(d);void 0===a&&(a=tv());void 0===b&&(RM.i||(RM.i=new RM),b=RM.i);JM.i=new JM(c,b,a,e);SM=JM.i}return SM};
Fra=function(){if((!g.Nr("condition_ad_status_fetch_on_consent_cookie_html5_clients")||wt())&&"1"!=Tb(g.O("PLAYER_VARS",{}),"privembed",!1)){var a=function(){UM=!0;"google_ad_status"in window?Kr("DCLKSTAT",1):Kr("DCLKSTAT",2)};
try{g.bz("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Era.push(g.cu(function(){if(!(UM||"google_ad_status"in window)){try{if(a){var b=""+g.Pa(a),c=dz[b];c&&g.xu(c)}}catch(d){}UM=!0;Kr("DCLKSTAT",3)}},5E3))}};
Gra=function(){var a=Number(g.O("DCLKSTAT",0));return isNaN(a)?0:a};
Ira=function(){var a,b;return g.D(this,function d(){var e;return g.z(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f.return(e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.queryUsageAndQuota)?f.return(Hra()):f.return()})})};
Hra=function(){var a=navigator;return new Promise(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
zv=function(a,b){var c=this;this.handleError=a;this.i=b;this.l=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.l=!0})};
Kra=function(a,b){Ira().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Jra(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Jra(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
Jra=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
VM=function(){this.l=!1;this.i=null};
Mra=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.l=!0,g.bz(c,function(){a.l=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)Lra(a,d,!!h,l,e);else{l=cz(c);var m=document.getElementById(l);m&&(Au(l),m.parentNode.removeChild(m));g.Ux(new g.Gv("Unable to load Botguard","from "+c))}},f)):b&&(f=g.ng("SCRIPT"),f.textContent=b,f.nonce=nd(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?Lra(a,d,!!h,b,e):g.Ux(Error("Unable to load Botguard from JS")))};
Lra=function(a,b,c,d,e){var f,h;if(d=d?null===(f=window.trayride)||void 0===f?void 0:f.ad:null===(h=window.botguard)||void 0===h?void 0:h.bg)if(c)try{Nra(a,new d(b,e?function(){return e(b)}:g.Ja))}catch(l){l instanceof Error&&g.Ux(l)}else{try{Nra(a,new d(b))}catch(l){l instanceof Error&&g.Ux(l)}e&&e(b)}else g.Ux(Error("Failed to finish initializing VM"))};
Ora=function(a,b){var c=WM;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.i?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){c.i?c.i.hasOwnProperty("hot")?c.i.hot(d,!0,a):c.i.invoke(d,!0,a):d(null)})]):Promise.resolve(null)};
Nra=function(a,b){a.i=b};
Pra=function(){JA("bg_l","player_att");XM=(0,g.P)()};
Qra=function(a){a=void 0===a?{}:a;return WM.invoke(a)};
Rra=function(a){var b=Or("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return Ora(a,b)};
g.Sra=function(a){var b=this;this.videoData=a;a={};this.l=(a.c1a=function(){if(WM.Ud()){var c="";b.videoData&&b.videoData.Ea&&(c=b.videoData.Ea+("&r1b="+b.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);JA("bg_v","player_att");c=Qra(c);JA("bg_s","player_att");c=c?"r1a="+c:"r1c=2"}else JA("bg_e","player_att"),c=window.trayride||window.botguard?"r1c=1":"r1c=4";return c},a.c3a=function(c){return"r3a="+Math.floor(b.videoData.lengthSeconds%Number(c.c3a)).toString()},a.c6a=function(c){return"r6a="+
(Number(c.c)^Gra())},a);
this.videoData&&this.videoData.Ea?this.i=Yr(this.videoData.Ea):this.i={}};
Tra=function(a){if(a.videoData&&a.videoData.Ea){for(var b=[a.videoData.Ea],c=g.q(Object.keys(a.l)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.l[d]&&(d=a.l[d](a.i))&&b.push(d);return b.join("&")}return null};
g.Vra=function(a){var b={};Object.assign(b,a.l);"c1b"in a.i&&(b.c1a=function(){return Ura(a)});
if(a.videoData&&a.videoData.Ea){for(var c=[a.videoData.Ea],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.i[e]&&b[e]&&(e=b[e](a.i))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
Ura=function(a){if(!WM.Ud())return JA("bg_e","player_att"),window.trayride||window.botguard?Promise.resolve("r1c=1"):Promise.resolve("r1c=4");var b="";a.videoData&&a.videoData.Ea&&(b=a.videoData.Ea+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){JA("bg_v","player_att");Rra(c).then(function(e){e?(JA("bg_s","player_att"),d("r1a="+e)):(JA("bg_e","player_att"),d("r1c=2"))},function(){JA("bg_e","player_att");
d("r1c=3")})})};
Wra=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 YM(a)};
YM=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c};
Xra=function(a,b,c,d){if(g.Na(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
aN=function(a,b){g.E.call(this);var c=this;this.app=a;this.playerType=b;this.i=!0;this.element=null;this.C={};this.J={};this.l={};this.K=[];this.G={};this.B={};this.u=null;this.U=new Set;ZM(this,"cueVideoById",this.cueVideoById);ZM(this,"loadVideoById",this.loadVideoById);ZM(this,"cueVideoByUrl",this.cueVideoByUrl);ZM(this,"loadVideoByUrl",this.loadVideoByUrl);ZM(this,"playVideo",this.playVideo);ZM(this,"pauseVideo",this.pauseVideo);ZM(this,"stopVideo",this.stopVideo);ZM(this,"clearVideo",this.clearVideo);
ZM(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);ZM(this,"getVideoBytesTotal",this.getVideoBytesTotal);ZM(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);ZM(this,"getVideoStartBytes",this.getVideoStartBytes);ZM(this,"cuePlaylist",this.cuePlaylist);ZM(this,"loadPlaylist",this.loadPlaylist);ZM(this,"nextVideo",this.nextVideo);ZM(this,"previousVideo",this.previousVideo);ZM(this,"playVideoAt",this.playVideoAt);ZM(this,"setShuffle",this.setShuffle);ZM(this,"setLoop",this.setLoop);ZM(this,
"getPlaylist",this.SO);ZM(this,"getPlaylistIndex",this.getPlaylistIndex);ZM(this,"getPlaylistId",this.getPlaylistId);ZM(this,"loadModule",this.loadModule);ZM(this,"unloadModule",this.unloadModule);ZM(this,"setOption",this.setOption);ZM(this,"getOption",this.getOption);ZM(this,"getOptions",this.getOptions);ZM(this,"mute",this.mute);ZM(this,"unMute",this.unMute);ZM(this,"isMuted",this.isMuted);ZM(this,"setVolume",this.setVolume);ZM(this,"getVolume",this.getVolume);ZM(this,"seekTo",this.seekTo);ZM(this,
"getPlayerState",this.getPlayerState);ZM(this,"getPlaybackRate",this.getPlaybackRate);ZM(this,"setPlaybackRate",this.setPlaybackRate);ZM(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);ZM(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
ZM(this,"setPlaybackQuality",this.setPlaybackQuality);ZM(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);ZM(this,"getCurrentTime",this.getCurrentTime);ZM(this,"getDuration",this.getDuration);ZM(this,"addEventListener",this.YN);ZM(this,"removeEventListener",this.UT);ZM(this,"getDebugText",this.getDebugText);ZM(this,"getVideoData",function(){return c.Ew()});
ZM(this,"addCueRange",this.addCueRange);ZM(this,"removeCueRange",this.removeCueRange);ZM(this,"setSize",this.setSize);ZM(this,"getApiInterface",this.getApiInterface);ZM(this,"destroy",this.destroy);ZM(this,"showVideoInfo",this.showVideoInfo);ZM(this,"hideVideoInfo",this.hideVideoInfo);ZM(this,"isVideoInfoVisible",this.isVideoInfoVisible);ZM(this,"getSphericalProperties",this.getSphericalProperties);ZM(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().C||(ZM(this,"getVideoEmbedCode",
this.getVideoEmbedCode),ZM(this,"getVideoUrl",this.getVideoUrl));ZM(this,"getMediaReferenceTime",this.getMediaReferenceTime);$M(this,"getInternalApiInterface",this.getInternalApiInterface);$M(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);$M(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);$M(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);$M(this,"getAdState",this.getAdState);$M(this,"sendAbandonmentPing",this.sendAbandonmentPing);$M(this,"setLoopRange",this.setLoopRange);
$M(this,"getLoopRange",this.getLoopRange);$M(this,"setAutonavState",this.setAutonavState);$M(this,"seekToLiveHead",this.seekToLiveHead);$M(this,"seekToStreamTime",this.seekToStreamTime);$M(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);$M(this,"startSeekCsiAction",this.startSeekCsiAction);$M(this,"getStreamTimeOffset",this.getStreamTimeOffset);$M(this,"getVideoData",this.Ew);$M(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);$M(this,"downloadVideo",this.downloadVideo);
$M(this,"refreshAllVideos",this.refreshAllVideos);$M(this,"deleteVideos",this.deleteVideos);$M(this,"deleteAllVideos",this.deleteAllVideos);$M(this,"isOrchestrationLeader",this.isOrchestrationLeader);$M(this,"getAppState",this.getAppState);$M(this,"addInfoCardXml",this.addInfoCardXml);$M(this,"updateLastActiveTime",this.updateLastActiveTime);$M(this,"setBlackout",this.setBlackout);$M(this,"setAccountLinkState",this.setAccountLinkState);$M(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);
$M(this,"setUserEngagement",this.setUserEngagement);$M(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);$M(this,"setFauxFullscreen",this.setFauxFullscreen);$M(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);$M(this,"getPresentingPlayerType",this.getPresentingPlayerType);$M(this,"canPlayType",this.canPlayType);$M(this,"updatePlaylist",this.updatePlaylist);$M(this,"updateVideoData",this.updateVideoData);$M(this,"updateEnvironmentData",this.updateEnvironmentData);$M(this,
"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);$M(this,"setCardsVisible",this.setCardsVisible);$M(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);$M(this,"setSafetyMode",this.setSafetyMode);$M(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
$M(this,"getVideoAspectRatio",this.getVideoAspectRatio);$M(this,"getPreferredQuality",this.getPreferredQuality);$M(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);$M(this,"onAdUxClicked",this.onAdUxClicked);$M(this,"getFeedbackProductData",this.getFeedbackProductData);$M(this,"getStoryboardFrame",this.getStoryboardFrame);$M(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);$M(this,"getStoryboardLevel",this.getStoryboardLevel);$M(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
$M(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);$M(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);$M(this,"setAutonav",this.setAutonav);$M(this,"isNotServable",this.isNotServable);$M(this,"channelSubscribed",this.channelSubscribed);$M(this,"channelUnsubscribed",this.channelUnsubscribed);$M(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);$M(this,"togglePictureInPicture",this.togglePictureInPicture);$M(this,"supportsGaplessAudio",this.supportsGaplessAudio);
$M(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
$M(this,"clearQueue",this.clearQueue);$M(this,"isFastLoad",function(){return!1});
$M(this,"getPlayerResponse",this.getPlayerResponse);$M(this,"getAudioTrack",this.HO);$M(this,"setAudioTrack",this.setAudioTrack);$M(this,"getAvailableAudioTracks",this.IO);$M(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);$M(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);$M(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);$M(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);$M(this,"setMinimized",this.setMinimized);$M(this,"confirmYpcRental",
this.confirmYpcRental);$M(this,"setInlinePreview",this.setInlinePreview);$M(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);$M(this,"handleExternalCall",this.handleExternalCall);$M(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);$M(this,"getStatsForNerds",this.getStatsForNerds);$M(this,"setScreenLayer",this.setScreenLayer);$M(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);$M(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);$M(this,"shouldSendVisibilityState",
this.shouldSendVisibilityState);$M(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);$M(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);$M(this,"setGlobalCrop",this.setGlobalCrop);$M(this,"getVisibilityState",this.getVisibilityState);$M(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);$M(this,"setInternalSize",this.setInternalSize)};
ZM=function(a,b,c){a.C[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ea();return c.apply(a,e)};
a.l.hasOwnProperty(b)||$M(a,b,c);a.K.push(b)};
bN=function(a,b,c){a.J[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ea();return c.apply(a,e)};
a.l.hasOwnProperty(b)||$M(a,b,c);a.K.push(b)};
$M=function(a,b,c){a.l[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ea();return c.apply(a,e)}};
lqa=function(a){a.u||(a.u={},g.Ra(a.u,a.C),g.Ra(a.u,a.J),a.u.addEventListener=function(b,c){Yra(a,b,c)},a.u.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Pa(c));
var d=a.B[c];d&&(a.app.fl.unsubscribe(b,d),b=a.B,c in b&&delete b[c])});
return a.u};
Yra=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Pa(c));if(!a.B[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Ia(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.u,data:h})};
a.B[d]=f;a.app.fl.subscribe(b,f)}};
Zra=function(a,b,c){b=g.Mf(Math.floor(b),0,100);isFinite(b)&&cN(a.app,{volume:b,muted:a.isMuted()},c)};
$ra=function(a,b){cN(a.app,{muted:!0,volume:a.getVolume()},b)};
asa=function(a,b){cN(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.eN=function(a){var b=dN(a.app.rb());if(b)return b.Vs();a=a.app.rb();a=g.XF(a.I.T())?a.od.get("music"):void 0;return a?a.Vs():null};
gN=function(a,b){aN.call(this,a,b);var c=this;this.i=!1;bN(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(fN(c,d),e)});
bN(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(fN(c,d),e,f,h)});
bN(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(fN(c,d),e,f,h)});
bN(this,"seekBy",this.seekBy);bN(this,"mutedAutoplay",this.mutedAutoplay);bN(this,"showControls",this.showControls);bN(this,"hideControls",this.hideControls);bN(this,"cancelPlayback",this.cancelPlayback);bN(this,"getProgressState",this.getProgressState);bN(this,"isInline",this.isInline);bN(this,"setInline",this.setInline);bN(this,"setLoopVideo",this.setLoopVideo);bN(this,"getLoopVideo",this.getLoopVideo);bN(this,"getStoryboardFormat",this.getStoryboardFormat);bN(this,"getVideoContentRect",this.getVideoContentRect);
bN(this,"toggleFullscreen",this.toggleFullscreen);bN(this,"isFullscreen",this.isFullscreen);bN(this,"getVideoStats",this.getVideoStats);bN(this,"getPlayerSize",this.getPlayerSize);bN(this,"toggleSubtitles",this.toggleSubtitles);bN(this,"setCenterCrop",this.setCenterCrop);bN(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);bN(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);bN(this,"setSizeStyle",this.setSizeStyle);bN(this,"wakeUpControls",this.wakeUpControls)};
fN=function(a,b){var c={};if(a.app.T().K){a=g.q(bsa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.q(csa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
g.hN=function(a){gN.call(this,a);this.mz=null};
iN=function(a){a=a.rb();var b=a.od.get("endscreen");return b&&b.Ap()?!0:a.Gu()||g.XF(a.I.T())};
g.jN=function(a,b){3===a.getPresentingPlayerType()?a.W("mdxautoplaycancel"):a.W("autonavcancel",b)};
g.lN=function(a){var b=g.kN(a.rb());return a.app.Xf&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Vj()||!!a.getPlaylist()};
g.nN=function(a){return(a=g.mN(a.rb()))?a.Bw():{}};
g.dsa=function(a){a=(a=a.getVideoData())&&a.l;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.esa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.Pa)};
g.oN=function(a,b,c){a=a.Za().element;var d=yb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.qg(a,b,d);b.setAttribute("data-layer",String(c))};
g.pN=function(a){var b=a.T();if(!b.Bb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.S(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.S(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.S(b.experiments,"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.C&&f;return!c.ypcPreview&&(!d||e)&&!g.kb(c.Y,"ypc")&&!a&&(!g.MF(b)||f)};
fsa=function(a){a=g.W(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.l||!b.l.video||1080>b.l.video.i||b.UJ)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.l.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ja("iqss",d,!0),!0):!1};
g.qN=function(){mx.apply(this,arguments)};
gsa=function(){this.l=this.i=NaN};
rN=function(a,b){this.u=a;this.timerName="";this.l=!1;this.B=new gsa;this.i=b||null;this.l=!1};
hsa=function(a,b,c){var d=g.SF(b.B)&&!b.B.C;if(b.B.sf&&(OF(b.B)||KG(b.B)||d)&&!a.l){a.l=!0;g.O("TIMING_ACTION")||Kr("TIMING_ACTION",a.u.csiPageType);a.u.csiServiceName&&Kr("CSI_SERVICE_NAME",a.u.csiServiceName);if(a.i){b=a.i.Fo();d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,EA(e,b[e],a.timerName);b=a.i.Gs;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.DA(e,b[e],a.timerName);b=a.i;b.i={};b.Gs={}}g.DA("yt_pvis",LA(),a.timerName);g.DA("yt_pt","html5",a.timerName);
c&&!IA("pbs",a.timerName)&&a.tick("pbs",c);c=a.u;!KG(c)&&!OF(c)&&IA("_start",a.timerName)&&KA(a.timerName)}};
g.sN=function(a,b){this.type=a||"";this.id=b||""};
g.tN=function(a,b){g.Q.call(this);this.l=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.Qd=this.OA=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.u=0;if(a=b.session_data)this.Qd=Wr(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 g.sN("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=new g.sN(a.substr(0,2),a.substr(2));if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.q(a);for(c=a.next();!c.done;c=
a.next())(c=c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.B=Qla(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
uN=function(a){return!!(a.playlist||a.list||a.api)};
isa=function(a){var b=a.index+1;return b>=a.length?0:b};
jsa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
vN=function(a,b){a.index=g.Mf(b,0,a.length-1);a.startSeconds=0};
wN=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=a.fb();a.items=[];for(var d=g.q(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;if(b=b.index)a.index=b;else if(c&&(b=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==b))for(c=0;c<a.items.length;c++)if(a.items[c].video_id===b){a.index=
c;break}a.setShuffle(!1);a.loaded=!0;a.u++;a.i&&a.i()}};
g.xN=function(a){var b=a.T(),c=ksa(b),d=a.Ga;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=WH(a);"leanback"===f?e="WATCH":b.Z("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.yb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Hi)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:lsa[e]}});a.Kp&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.U)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Kb&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=msa[b];c.request=d;d=c.user||{};if(b=a.xa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.eb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
ksa=function(a){var b=VK(),c=b.client||{};a.Z("web_player_unset_default_csn_killswitch")||delete b.clientScreenNonce;if(a.Va){var d=a.Va.split(","),e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo={livingRoomAppMode:e};b.client=c;c=b.user||{};a.enableSafetyMode&&(c.enableSafetyMode=!0);b.user=
c;if(a=a.Vb)b.thirdParty={embedUrl:a};return b};
yN=function(a,b,c){var d=a.videoId,e=g.xN(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(mu()),referer:document.location.toString(),signatureTimestamp:18802};g.Am(g.Xu);a.Zj&&(h.autonav=!0);g.Zu(0,141)&&(h.autonavState=g.Zu(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Zu(0,66);ZH(a)&&(h.autoplay=!0);f.u&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.sf;if(l){var m={},n=l.split("|");3===n.length?
(m.breakType=nsa[n[0]],m.offset={kind:"OFFSET_MILLISECONDS",value:String(Number(n[1])||0)},m.url=n[2]):m.url=l;h.forceAdParameters={videoAds:[m]}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);l=a.uD;if(null!=l){l={startWalltime:String(l)};if(m=a.uf)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Id&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);l={};if((m=a.isMdxPlayback)||g.S(f.experiments,"send_mdx_remote_data_if_present"))l.triggeredByMdx=
m;if(m=a.Yk)l.skippableAdsSupported=m.split(",").includes("ska");var p=a.Ff;if(p){m=a.Xy;n=[];p=g.q(p.split(","));for(var r=p.next();!r.done;r=p.next()){var t=r.value;if(t&&((r=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length))){r={applicationState:r?"INACTIVE":"ACTIVE",clientFormFactor:osa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:psa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:qsa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(m){var u=void 0;try{u=JSON.parse(m)}catch(x){g.Ux(x)}u&&
(t={params:[{key:"ms",value:u.ms}]},r.osName=u.os_name,r.userAgent=u.user_agent,r.windowHeightPoints=u.window_height_points,r.windowWidthPoints=u.window_width_points)}n.push({adSignalsInfo:t,remoteClient:r})}}l.remoteContexts=n}h.mdxContext=l;l=b.width;0<l&&(h.playerWidthPixels=Math.round(l));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&
(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.T();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.Zu(g.Am(g.Xu),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.GG(e)&&(d.captionParams.deviceCaptionsOn=null!=h?!h:!1);a.YH&&(d.captionParams.deviceCaptionsLangPref=a.YH);a.Jz.length?d.captionParams.viewerSelectedCaptionLangs=
a.Jz:g.BG(e)&&e.Z("web_player_i_see_captions_2")&&(e=(0,g.rsa)(),null===e||void 0===e?0:e.length)&&(d.captionParams.viewerSelectedCaptionLangs=e);e="onesie"===a.fetchType&&a.Z("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.Z("html5_non_onesie_attach_po_token");if(e||h)a=a.T(),a.Ci&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Ci),tG(a);return d};
tsa=function(a){var b=a.T();g.Am(g.Xu);var c={context:g.xN(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===WH(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.vj&&(c.showContentOwnerOnly=!0);g.Zu(0,141)&&(c.autonavState=g.Zu(0,140)?"STATE_OFF":"STATE_ON");g.GG(b)&&(a=g.Zu(0,65),a=null!=a?!a:!1,b=!!(0,g.ssa)(),c.captionsRequested=a&&b);return c};
wsa=function(a,b){return g.D(this,function d(){var e,f,h,l,m;return g.z(d,function(n){if(1==n.i){e=g.TM();var p=a.T(),r={context:g.xN(a)};p=p.embedConfig;var t,u,x,y,B,G;var H=b.docid||b.video_id||b.videoId||b.id;if(!H){H=b.raw_embedded_player_response;if(!H&&!g.Nr("parse_video_id_from_serialized_embedded_player_response_killswitch")){var I=b.embedded_player_response;I&&(H=JSON.parse(I))}H=H?(null===(G=null===(B=null===(y=null===(x=null===(u=null===(t=null===H||void 0===H?void 0:H.embedPreview)||
void 0===t?void 0:t.thumbnailPreviewRenderer)||void 0===u?void 0:u.playButton)||void 0===x?void 0:x.buttonRenderer)||void 0===y?void 0:y.navigationEndpoint)||void 0===B?void 0:B.watchEndpoint)||void 0===G?void 0:G.videoId)||null:null}t=(t=H)?t:void 0;u=a.playlistId?a.playlistId:b.list;x=b.listType;if(u){var M;"user_uploads"===x?M={username:u}:M={playlistId:u};usa(p,t,b,M);r.playlistRequest=M}else b.playlist?(M={templistVideoIds:b.playlist.toString().split(",")},usa(p,t,b,M),r.playlistRequest=M):t&&
(M={videoId:t},p&&(M.serializedThirdPartyEmbedConfig=p),r.singleVideoRequest=M);f=r;h=g.EM(vsa);return g.w(n,g.ZK(e,f,h),2)}l=n.l;m=a.T();return n.return(new g.rH(m,{raw_embedded_player_response:l}))})})};
usa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.zN=function(a){g.Q.call(this);this.loaded=!1;this.player=a};
xsa=function(){this.l=[];this.i=[]};
g.AN=function(a,b){return b?a.i.concat(a.l):a.i};
g.BN=function(a,b){switch(b.kind){case "asr":ysa(b,a.l);break;default:ysa(b,a.i)}};
ysa=function(a,b){g.gb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.CN=function(){g.E.call(this);this.l=new xsa;this.B=[]};
g.DN=function(a,b,c){g.CN.call(this,a);this.audioTrack=c;this.i=null;this.B=b.bA};
zsa=function(){this.i=.125;this.l=!1;this.u=0;this.Jf=!1};
Asa=function(a,b){var c=void 0===b?{}:b;b=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Wj?!1:c.Wj;var d=new zsa;d.l=a.Z("html5_streaming_xhr_no_mp4_holdback_chunk");d.u=g.T(a.experiments,"html5_time_based_consolidation_ms");a.Z("html5_resume_streaming_requests")&&(d.i=0);d.Jf=b||c;return d};
g.Bsa=function(){this.B=new zsa;this.Bo=this.xo=!1;this.Ok=2;this.G=20971520;this.J=8388608;this.C=120;this.bb=3145728;this.X=62914560;this.eb=10485760;this.Pk=this.Qk=this.mf=0;this.Rp=!1;this.Ib=NaN;this.Bh=0;this.vj=this.Sp=2;this.yf=3;this.qp=2;this.ma=2097152;this.lp=1048576;this.Ua=!1;this.xc=1800;this.Mk=5;this.U=15;this.Gc=1;this.l=1.15;this.u=1.05;this.Sk=!0;this.Ea=!1;this.Gp=.8;this.Hk=this.Hb=!1;this.jb=6;this.Y=this.Ya=!1;this.Jb=0;this.Kb=!1;this.Rk=0;this.rj=!1;this.sf=this.Id=0;this.qb=
5E3;this.Jj=6;this.lf=1;this.rh=1.6;this.Va=!1;this.K=.5;this.Ob=2;this.Nb=this.Hn=0;this.In=1.5;this.Jn=this.Ah=.5;this.bd=15;this.Lk=1;this.Kp=this.rf=!1;this.Nk=0;this.Gj=this.al=this.Fn=this.Vo=this.Jk=this.Uo=this.Tk=!1;this.wb=2;this.Lp=this.En=this.Hi=!1;this.dd=0;this.Vb=this.nf=this.cq=this.uf=this.Pa=this.Gn=this.qf=this.Mp=!1;this.La=!0;this.wc=this.xa=this.Oo=this.Ga=!1;this.Bj=!0;this.fg=!1;this.i="";this.gs=1048576;this.Ik=this.Ai=this.Ac=!1;this.Jh=46800;this.Aj=this.Ii=this.Wo=this.Hp=
this.Gi=this.wj=this.yb=this.zj=this.uj=this.gh=this.Tc=!1;this.Da=0;this.Hj="";this.Ci=this.gi=this.Kj=this.tf=this.va=this.yj=this.Fi=!1;this.cd=0;this.Dn=this.Aa=this.xj=this.Np=this.Kk=this.uh=!1;this.Ji=!0;this.Bb=this.Ij=!1};
Csa=function(a,b){1080<b.fb().i&&!a.xo&&(a.G=36700160,a.J=5242880,a.bb=10485760,a.ma=4194304,a.xo=!0);2160<b.fb().i&&!a.Bo&&(a.G=104857600,a.Ib=13107200,a.Bo=!0);b.Ib&&(a.lp=Math.max(65536,Math.min(a.ma,5*b.Ib)))};
g.EN=function(a,b){return VD(a.info.mimeType)?b?a.info.kc()===b:!0:!1};
g.Dsa=function(a,b){if(null!=a.i&&g.EG(b.T())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.Sh())return!1;b=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(c){return g.EN(c,"386")});
a=!!a.i&&!a.i.isManifestless&&Oja(a.i);return b||a};
g.FN=function(a,b,c,d,e){g.CN.call(this,e||null);this.videoId=b;this.GH=d;this.C={};this.i=null;b=c||g.$r(a).hl||"";b=b.split("_").join("-");this.u=bs(a,{hl:b})};
GN=function(a,b){g.E.call(this);this.I=a;this.l=b;this.Gs={};this.i={};this.u=null;this.od=new Map;this.B=g.S(a.T().experiments,"web_player_defer_modules")};
g.HN=function(a){return a.od.get("captions")};
Gsa=function(a,b){switch(b){case "ad":return IN(a);case "annotations_module":return b=a.I.T(),YF(b)?a=!1:(a=a.I.getVideoData(),a=a.cL||"3"===b.controlsType?!1:b.U.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Aa||!!g.UH(a)||!!g.VH(a):!0),a;case "attribution":return a=a.I.T(),g.S(a.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.I.T(),"3"===b.controlsType?a=!1:"creator-endscreen-editor"===
b.playerStyle?a=!0:(a=a.I.getVideoData(),a=!!a&&(!!g.Yma(a)||!!g.Zma(a))),a;case "embed":return g.MF(a.I.T());case "endscreen":return g.Esa(a);case "heartbeat":return a.iD();case "inline_preview":return a.I.T().showInlinePreviewUi;case "kids":return cG(a.I.T());case "remote":return a.I.T().lf;case "miniplayer":return a.I.T().showMiniplayerUiWhenMinimized;case "music":return g.XF(a.I.T());case "captions":return b=a.I.getVideoData(),!!b.Ac||!!b.captionTracks.length||g.Dsa(b,a.I);case "unplugged":return g.UF(a.I.T());
case "ux":return a.I.T().jb;case "webgl":return Fsa(a);case "ypc":return a.Gu();case "ypc_clickwrap":return a=a.I.getVideoData(),a.gi&&!a.SB;case "yto":return!!a.I.getVideoData().Y.includes("yto");default:return g.Tx(Error("Module descriptor "+b+" does not match")),!1}};
JN=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.od.get(b);if(!f||e)if(c||(c=function(){JN(a,b,void 0,d,e)}),f=f||Hsa(a,b,c,Gsa(a,b)))a.od.set(b,f),f.create(),d&&a.I.Na("onApiChange")};
Isa=function(a){a.B&&(JN(a,"endscreen"),a.HA(),JN(a,"creatorendscreen",void 0,!0))};
g.Esa=function(a){var b=a.I.T();if(KG(b)||b.C||!b.qb&&!b.wc)return!1;var c=a.I.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.S(b.experiments,"desktop_enable_autoplay");a=a.I.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.S(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.S(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.S(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.mN=function(a){return a.od.get("webgl")};
Fsa=function(a){var b=a.I.getVideoData(),c=a.I.T().experiments,d=g.mt(),e=g.S(c,"enable_spherical_kabuki");a=g.JG(a.I.T());if(g.TH(b))return d||e||a||g.S(c,"html5_enable_spherical");if(g.QH(b))return a||d||e||g.S(c,"html5_enable_spherical");if(g.RH(b))return a||d||g.S(c,"html5_enable_spherical3d");if(g.SH(b))return a||!1;d=b.l&&b.l.video&&b.l.video.isHdr();return a&&!g.JH(b)&&!d&&(g.S(c,"enable_webgl_noop")||g.S(c,"html5_enable_bicubicsharp")||g.S(c,"html5_enable_smartsharp"))};
Jsa=function(a){g.S(a.I.T().experiments,"web_player_ux_module_wait")&&a.od.get("ux")&&a.I.Ad("ux")};
Ksa=function(a){Jsa(a);JN(a,"ux",void 0,!0)};
IN=function(a){if(a=a.I.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
Hsa=function(a,b,c,d){try{if(d){var e=g.KN[b];if(e)return new e(a.I);"creatorendscreen"===b?a.l&&LN(a,a.l+"annotations_module.js","annotations_module",c):a.l&&LN(a,a.l+b+".js",b,c)}else a.I.Ad(b)}catch(f){a.I.Ad(b),g.Tx(f)}return null};
MN=function(a,b,c){for(var d=g.q(a.od),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.ri(b))&&(g.ef(f),a.od.delete(e))}};
NN=function(a){return a.od.get("ad")};
ON=function(a){if(cG(a.I.T()))return a.od.get("kids")};
g.kN=function(a){if(a.I.T().lf)return a.od.get("remote")};
PN=function(a){if(g.UF(a.I.T()))return a.od.get("unplugged")};
dN=function(a){if(a.I.T().jb)return a.od.get("ux")};
g.QN=function(a){return a.od.get("annotations_module")};
RN=function(a){return a.od.get("creatorendscreen")};
Lsa=function(a){var b=a.l.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){LN(a,b,null,function(){return g.D(a,function f(){var h,l;return g.z(f,function(m){if(1==m.i)return h=g.A.loadWasm,"function"!==typeof h?(d("noloadwasm"),m.ub(0)):g.w(m,h(),3);l=m.l;c(l);g.sa(m)})})})})};
LN=function(a,b,c,d){function e(){!a.Ha()&&c&&a.I.Ad(c)}
function f(){a.Ha()||d.call(a)}
for(var h=g.$f("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.ng("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var r=m.onload;m.onload=function(y){Bg(f);r&&r.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var B=new g.Gv("Unable to load player module",(c||"lib")+".js from "+b+" on "+(document.location&&document.location.origin)+".");g.Tx(B)}Bg(e);t&&t(y)};
var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Bg(f)}x&&x(y)};
l&&((h=a.I.T().cspNonce)&&m.setAttribute("nonce",h),g.Bj(m,g.xl(b)),h=g.$f("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.gf(a,function(){m.parentNode&&m.parentNode.removeChild(m);c&&(g.KN[c]=null);"annotations_module"===c&&(g.KN.creatorendscreen=null)}))};
SN=function(a,b,c){g.hf.call(this,b,a);this.i=c};
g.TN=function(a){wK.call(this);var b=this;this.i=a;this.B={};this.listener=function(c){b.dispatchEvent(new SN(b,c.type,c))}};
VN=function(a,b,c,d){g.Q.call(this);var e=this;this.target=a;this.Nv=b;this.l=0;this.G=!1;this.B=new g.Qf(NaN,NaN);this.i=new g.qN(this);this.va=this.u=this.J=null;g.F(this,this.i);b=d?4E3:3E3;this.U=new g.J(function(){UN(e,1,!1)},b,this);
g.F(this,this.U);this.Y=new g.J(function(){UN(e,2,!1)},b,this);
g.F(this,this.Y);this.X=new g.J(function(){UN(e,512,!1)},b,this);
g.F(this,this.X);this.ma=c&&0<c.wc.length?5E3:3E3;d||(this.u=this.i.N(a,"mouseover",this.vx),this.i.N(a,"mousemove",this.hQ),this.i.N(a,"mouseleave",this.iQ));Bl?this.i.N(a,"keypress",this.OP):this.i.N(a,"focusin",this.KO);this.C=this.i.N(a,"mousedown",this.tI);this.K=this.i.N(a,"touchstart",this.HK,void 0,!0);UN(this,640,!0)};
Msa=function(a){UN(a,4,!1);a.J&&(a.i.fc(a.J),a.J=null,a.u=a.i.N(a.target,"mouseover",a.vx));a.u&&(a.i.fc(a.u),a.u=a.i.N(a.target,"mouseover",a.vx))};
UN=function(a,b,c){a.Ha();var d=!a.l;c?(a.l|=b,b&1&&a.U.start(),b&2&&a.Y.start()):(a.l&=~b,b&1&&a.U.stop(),b&2&&a.Y.stop(),b&512&&a.X.stop());a.l&512&&!(a.l&128)&&g.Eq(a.X,a.ma);b=!a.l;d!==b&&a.W("autohideupdate",b)};
g.WN=function(a){g.V.call(this,{D:"button",Ca:["ytp-large-play-button","ytp-button"],V:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.N(a,"videodatachange",this.Ma);this.Ma()};
XN=function(a){var b=["ytp-cued-thumbnail-overlay"];a.T().C&&b.push("ytp-exp-contain-thumbnail");g.V.call(this,{D:"div",Ca:b,S:[{D:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ba("ytp-cued-thumbnail-overlay");var c=new g.WN(a);g.F(this,c);c.ya(b);this.u=new g.qN(this);g.F(this,this.u);this.api=a;this.C=this.Ba("ytp-cued-thumbnail-overlay-image");this.B=c;this.l=new g.fM(this,250);g.F(this,this.l);this.i=new g.J(this.Ma,0,this);g.F(this,this.i);this.Ma();this.N(a,"appresize",this.tb);this.N(a,
"presentingplayerstatechange",this.IL);this.N(a,"ypcStateChanged",this.GT);OF(a.T())&&this.N(a,"videoplayerreset",this.HL)};
Nsa=function(a){var b=!a.T().mf&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.YN=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.uM(a))return g.Ut(a),!0;b.pauseVideo();a=e.getAttribute("href");g.hK(a,d,!0);return!1};
g.ZN=function(a,b,c){if(zG(b.T())&&2!==b.getPresentingPlayerType()){if(g.uM(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.Ut(c),!0}else if(b.T().Z("embeds_enable_webview_nonjs_navigation")&&g.MF(b.T())&&(ut()||rt()))b=c.target,b instanceof HTMLAnchorElement&&(a=ul(a),b.href=zj(a));else{var d=g.uM(c);d&&b.pauseVideo();g.hK(a,void 0,!0);d&&(g.iK(a),g.Ut(c))}return!1};
$N=function(){return{D:"div",L:"ytp-spinner-container",S:[{D:"div",L:"ytp-spinner-rotator",S:[{D:"div",L:"ytp-spinner-left",S:[{D:"div",L:"ytp-spinner-circle"}]},{D:"div",L:"ytp-spinner-right",S:[{D:"div",L:"ytp-spinner-circle"}]}]}]}};
aO=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
bO=function(a,b,c){a=a.T();return g.S(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.Id?g.eJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.cO=function(a){g.V.call(this,{D:"div",Ca:["ytp-error"],V:{role:"alert"},S:[{D:"div",L:"ytp-error-content",S:[{D:"div",L:"ytp-error-icon-container",S:[{D:"svg",V:{fill:"#fff",viewBox:"0 0 48 48"},S:[{D:"path",V:{d:"M0 0h48v48H0V0z",fill:"none"}},{D:"path",V:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{D:"div",L:"ytp-error-content-wrap",
S:[{D:"div",L:"ytp-error-content-wrap-reason",oa:"{{content}}"},{D:"div",L:"ytp-error-content-wrap-subreason",oa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.dO=function(a){a=a.split(Osa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({D:"br"}),b.push(d[e]);c<a.length&&b.push({D:"a",V:{href:a[c],target:a[c+1]},oa:a[c+2]})}return{D:"span",S:b}};
fO=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.T().l);a=a.api.getVideoData();b=g.eJ(g.eO[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({D:"h2",oa:f});d.push(b[0]);h&&d.push({D:"br"});d.push({D:"a",V:{href:c,target:e?"_blank":null},oa:b[2]});d.push(b[4]);return{D:"span",S:d}};
Psa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.N(c[d],"click",b);a.keys.push(e)}};
Qsa=function(a){for(var b=0;b<a.keys.length;b++)a.fc(a.keys[b]);a.keys=[]};
hO=function(a){g.qN.call(this);this.I=a;this.i=new Set;this.mediaSession=navigator.mediaSession;gO(this,"play",function(){a.playVideo()});
gO(this,"pause",function(){a.pauseVideo()});
gO(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
gO(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.N(a,"videodatachange",this.kb);this.N(a,"presentingplayerstatechange",this.Tg);this.kb()};
gO=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.i.add(b)};
Rsa=function(a){var b,c;a=a.I.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null===(c=null===(b=null===a||void 0===a?void 0:a.playerOverlayRenderer)||void 0===b?void 0:b.browserMediaSession)||void 0===c?void 0:c.browserMediaSessionRenderer};
Ssa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.zz(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
iO=function(a){g.V.call(this,{D:"div",L:"ytp-paid-content-overlay",V:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.B=!1;this.hd=this.i=null;var b=a.T();a.Z("enable_new_paid_product_placement")&&!g.FG(b)?(this.l=new g.V({D:"a",L:"ytp-paid-content-overlay-link",V:{href:"{{href}}",target:"_blank"},S:[{D:"div",L:"ytp-paid-content-overlay-icon",oa:"{{icon}}"},{D:"div",L:"ytp-paid-content-overlay-text",oa:"{{text}}"},{D:"div",L:"ytp-paid-content-overlay-chevron",oa:"{{chevron}}"}]}),
this.N(this.l.element,"click",this.onClick)):this.l=new g.V({D:"div",Ca:["ytp-button","ytp-paid-content-overlay-text"],oa:"{{text}}"});this.u=new g.fM(this.l,250,!1,100);g.F(this,this.l);this.l.ya(this.element);g.F(this,this.u);this.I.Ig(this.element,this);this.N(a,"videodatachange",this.kb);this.N(a,"presentingplayerstatechange",this.Dc)};
Tsa=function(a,b){var c=Uma(b),d=KH(b);if(a.i)b.videoId&&b.videoId!==a.videoId&&(g.Gq(a.i),a.videoId=b.videoId,a.B=!!d);else if(c&&d){var e,f,h,l;a.i=new g.J(a.Ab,d,a);g.F(a,a.i);b=null===(f=null===(e=b.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;e=null===b||void 0===b?void 0:b.navigationEndpoint;f=null===(h=null===b||void 0===b?void 0:b.icon)||void 0===h?void 0:h.iconType;h=null===(l=null===e||void 0===e?void 0:e.urlEndpoint)||void 0===
l?void 0:l.url;a.I.Nl(a.element,(null===e||void 0===e?void 0:e.clickTrackingParams)||null);a.l.update({href:null!==h&&void 0!==h?h:"#",text:c,icon:"MONEY_HAND"===f?{D:"svg",V:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.CL():null})}};
Usa=function(a,b){a.i&&(g.U(b,8)&&a.B?(a.B=!1,a.Uc(),a.i.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))};
jO=function(a){g.V.call(this,{D:"div",L:"ytp-spinner",S:[$N(),{D:"div",L:"ytp-spinner-message",oa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ba("ytp-spinner-message");this.i=new g.J(this.show,500,this);g.F(this,this.i);this.N(a,"presentingplayerstatechange",this.l);this.N(a,"playbackstalledatstart",this.u);a=a.sb();Vsa(a)?this.i.start():this.hide()};
Vsa=function(a){return g.U(a,128)?!1:g.U(a,16)||g.U(a,1)?!0:!1};
g.kO=function(a,b,c,d){d=void 0===d?!1:d;g.xL.call(this,b);var e=this;this.I=a;this.xa=d;this.J=new g.qN(this);this.U=new g.fM(this,c,!0,void 0,void 0,function(){e.l&&e.element&&(e.l.getAttribute("aria-haspopup"),e.l.setAttribute("aria-expanded","true"),e.focus())});
g.F(this,this.J);g.F(this,this.U)};
Wsa=function(a){a.l&&(document.activeElement&&g.tg(a.element,document.activeElement)&&(xg(a.l),a.l.focus()),a.l.removeAttribute("aria-expanded"),a.l=void 0);g.ox(a.J);a.K=void 0};
lO=function(a,b,c){a.Pf()?a.Ab():a.Uc(b,c)};
mO=function(a){var b=g.$E(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{D:"div",Ca:["ytp-unmute-icon"],S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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"}}]}]},
{D:"div",Ca:["ytp-unmute-text"],oa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({D:"div",Ca:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.kO.call(this,a,{D:"button",Ca:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{D:"div",L:"ytp-unmute-inner",S:d}]},100);this.i=this.u=!1;this.api=a;this.api.Xb(this.element,this,51663);this.N(a,"onMutedAutoplayChange",this.au,this);this.N(a,"presentingplayerstatechange",
this.Tg);this.Ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.MF(this.api.T());g.wL(this,a);a&&Xsa(this);this.B=a};
Xsa=function(a){a.i||(a.i=!0,a.api.ib(a.element,!0))};
g.oO=function(a){g.qN.call(this);var b=this;this.api=a;this.hD=!1;this.Yj=null;this.Uv=!1;this.Xd=null;this.GA=this.wy=!1;this.FD=this.HD=null;this.dI=NaN;this.ED=this.Ks=!1;this.Ut=0;this.fA=[];var c=a.T(),d=a.Za();this.ZF=new g.J(this.kC,0,this);g.F(this,this.ZF);g.XF(c)||(this.rq=new XN(a),g.F(this,this.rq),g.oN(a,this.rq.element,4));if(Ysa()){var e=new jO(a);g.F(this,e);e=e.element;g.oN(a,e,4)}var f=a.getVideoData();this.fd=new VN(d,function(l){return b.Nv(l)},f,c.Ac);
g.F(this,this.fd);this.fd.subscribe("autohideupdate",this.bj,this);var h=new iO(a);g.F(this,h);g.oN(a,h.element,4);this.Cy=new mO(a);g.F(this,this.Cy);g.oN(this.api,this.Cy.element,2);this.CB=this.api.isMutedByMutedAutoplay();this.N(a,"onMutedAutoplayChange",this.au);this.vy=new g.J(this.zr,200,this);g.F(this,this.vy);this.QB=f.videoId;this.ZJ=new g.J(function(){b.Ut=0},350);
g.F(this,this.ZJ);this.Xv=new g.J(function(){b.ED||nO(b)},350,this);
g.F(this,this.Xv);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.K(f,"ytp-color-white")}g.XF(c)&&g.K(f,"ytp-music-player");!g.S(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new hO(a),g.F(this,f));this.N(a,"appresize",this.tb);this.N(a,"presentingplayerstatechange",this.Tg);this.N(a,"videodatachange",this.kb);this.N(a,"videoplayerreset",this.iS);
this.N(a,"autonavvisibility",function(){b.Sl()});
this.N(a,"sizestylechange",function(){b.Sl()});
this.N(d,"click",this.JS,this);this.N(d,"dblclick",this.KS,this);c.Pa&&(this.N(d,"gesturechange",this.LS,this),this.N(d,"gestureend",this.MS,this));this.Xm=[d.Fs];this.rq&&this.Xm.push(this.rq.element);e&&this.Xm.push(e)};
pO=function(a,b){if(!b)return!1;var c=a.api.md();if(c.Ln()&&(c=c.ue())&&g.tg(c,b))return c.controls;for(c=0;c<a.Xm.length;c++)if(g.tg(a.Xm[c],b))return!1;return g.Mq(b,"ytp-player-content")||g.Mq(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
Zsa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.Za().Kw||!1)&&a.api.T().i&&qO&&11<=dI;a=a.api.T().J&&qO;return!(!b&&!a)};
rO=function(a,b){return!pO(a,Rt(b))&&g.uM(b)};
nO=function(a){a.fd.zk();if(g.S(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.wy&&a.GA)a.GA=!1;else if(!a.api.T().ma&&!a.Sj()){var b=a.api.sb();g.U(b,2)&&iN(a.api)||a.Cp(b);if(!a.api.T().Pa||b.isCued()||g.U(b,1024)){var c=a.api.jy();g.Bv("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.U(b,1024);c&&(b.isCued()||d)?(g.Bv("embedsRequestStorageAccessState",{isCued:b.isCued(),M7:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Bv("embedsRequestStorageAccessFailedState",
{state:b.state}),a.zr())}else a.vy.isActive()?(a.Lw(),a.vy.stop()):a.vy.start()}};
$sa=function(a,b){return g.uM(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.sb(),!g.U(b,4)||g.U(b,8)||g.U(b,2)||a.zr(),!0):!1};
ata=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
Ysa=function(){var a=gt()&&67<=dt();return!ft("tizen")&&!KF&&!a&&!0};
sO=function(a,b){b=void 0===b?2:b;g.Q.call(this);this.api=a;this.i=null;this.Zd=new mx(this);g.F(this,this.Zd);this.l=qra;this.Zd.N(this.api,"presentingplayerstatechange",this.Dc);this.i=this.Zd.N(this.api,"progresssync",this.Rb);this.sj=b;1===this.sj&&this.Rb()};
tO=function(a){g.V.call(this,{D:"button",Ca:["ytp-button","ytp-back-button"],S:[{D:"div",L:"ytp-arrow-back-icon",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{D:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{D:"path",Mb:!0,V:{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.wL(this,a.T().showBackButton);this.Ra("click",this.onClick)};
g.uO=function(a){g.V.call(this,{D:"div",S:[{D:"div",L:"ytp-bezel-text-wrapper",S:[{D:"div",L:"ytp-bezel-text",oa:"{{title}}"}]},{D:"div",L:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},S:[{D:"div",L:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.I=a;this.l=new g.J(this.show,10,this);this.i=new g.J(this.hide,500,this);g.F(this,this.l);g.F(this,this.i);this.hide()};
wO=function(a,b,c){if(0>=b){c=KL();b="muted";var d=0}else c=c?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";vO(a,c,b,d+"%")};
bta=function(a,b){b=b?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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.eJ("Speed is $RATE",{RATE:String(c)});vO(a,b,d,c+"x")};
vO=function(a,b,c,d){d=void 0===d?"":d;a.Sa("label",void 0===c?"":c);a.Sa("icon",b);g.Gq(a.i);a.l.start();a.Sa("title",d);g.N(a.element,"ytp-bezel-text-hide",!d)};
yO=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-button","ytp-cards-button"],V:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.MF(a.T()))},S:[{D:"span",L:"ytp-cards-button-icon-default",S:[{D:"div",L:"ytp-cards-button-icon",S:[Oqa()]},{D:"div",L:"ytp-cards-button-title",oa:"Info"}]},{D:"span",L:"ytp-cards-button-icon-shopping",S:[{D:"div",L:"ytp-cards-button-icon",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},
S:[{D:"path",L:"ytp-svg-shadow",V:{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"}},{D:"path",L:"ytp-svg-fill",V:{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"}},{D:"path",L:"ytp-svg-shadow-fill",V:{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"}}]}]},{D:"div",
L:"ytp-cards-button-title",oa:"Shopping"}]}]});this.I=a;this.u=b;this.B=c;this.i=null;this.l=new g.fM(this,250,!0,100);g.F(this,this.l);g.N(this.B,"ytp-show-cards-title",g.MF(a.T()));this.hide();this.Ra("click",this.onClicked);this.Ra("mouseover",this.AR);xO(this,!0)};
xO=function(a,b){b?a.i=g.zO(a.u.ac(),a.element):(a.i=a.i,a.i(),a.i=null)};
AO=function(a,b,c){g.V.call(this,{D:"div",L:"ytp-cards-teaser",S:[{D:"div",L:"ytp-cards-teaser-box"},{D:"div",L:"ytp-cards-teaser-text",S:a.T().Z("player_new_info_card_format")?[{D:"button",L:"ytp-cards-teaser-info-icon",V:{"aria-label":"Show cards","aria-haspopup":"true"},S:[Oqa()]},{D:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"},{D:"button",L:"ytp-cards-teaser-close-button",V:{"aria-label":"Close"},S:[g.DL()]}]:[{D:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.I=a;this.U=
b;this.Nh=c;this.B=new g.fM(this,250,!1,250);this.i=null;this.J=new g.J(this.SR,300,this);this.G=new g.J(this.RR,2E3,this);this.C=[];this.l=null;this.K=new g.J(function(){d.element.style.margin="0"},250);
this.u=null;g.F(this,this.B);g.F(this,this.J);g.F(this,this.G);g.F(this,this.K);g.S(a.T().experiments,"player_new_info_card_format")?(g.K(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.Ba("ytp-cards-teaser-close-button"),"click",this.Zh),this.N(this.Ba("ytp-cards-teaser-info-icon"),"click",this.vD),this.N(this.Ba("ytp-cards-teaser-label"),"click",this.vD)):this.Ra("click",this.vD);this.N(c.element,"mouseover",this.CE);this.N(c.element,"mouseout",this.BE);this.N(a,"cardsteasershow",this.kT);
this.N(a,"cardsteaserhide",this.Ab);this.N(a,"cardstatechange",this.QK);this.N(a,"presentingplayerstatechange",this.QK);this.N(a,"appresize",this.SD);this.N(a,"onShowControls",this.SD);this.N(a,"onHideControls",this.jO);this.Ra("mouseenter",this.KL)};
dta=function(a,b,c,d){var e=window.location.search;if(38===b.va&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.ti("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.oQ});if(30===b.va&&"docs"===a.playerStyle)return g.ti("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.nF,authkey:b.authKey,eurl:a.Vb});if(33===b.va&&"google-live"===a.playerStyle)return g.ti("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.va&&g.Tx(Error("getVideoInfoUrl for invalid namespace: "+a.va));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Vb,ps:a.playerStyle,el:WH(b),hl:a.Tc,list:b.playlistId,agcid:b.JF,aqi:b.adQueryId,sts:18802,lact:mu()};g.Ra(f,a.deviceParams);a.Va&&(f.forced_experiments=a.Va);b.xa?(f.vvt=b.xa,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.Ve()&&(f.access_token=b.Ve());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.Vz&&(f.ad_id=b.Vz);null!==b.Xz&&(f.ad_sys=b.Xz);null!==b.lA&&(f.encoded_ad_playback_context=b.lA);b.bz&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.La&&2!==a.La&&(f.cc_load_policy=a.La);var h=g.Zu(g.Am(g.Xu),65);g.GG(a)&&null!=h&&!h&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Sk&&(f.endscreen_ad_tracking=b.Sk);
(h=a.U.get(b.videoId))&&h.Uu&&(f.ic_track=h.Uu);b.Ga&&(f.itct=b.Ga);ZH(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Zj&&(f.autonav="1");b.OB&&(f.noiba="1");g.S(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Ff&&(f.ytr=b.Ff)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Ff);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Yk&&(f.ytrcc=b.Yk);b.hC&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=
b.vnd);b.sf&&(h=3===b.sf.split("|").length,f.force_ad_params=h?b.sf:"||"+b.sf);b.Kb&&(f.preload=b.Kb);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Id&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");XH(b)&&(f.content_v=XH(b));b.yb&&(f.livemonitor=1);a.Y&&(f.authuser=a.Y);a.pageId&&(f.pageid=a.pageId);a.xa&&(f.ei=a.xa);a.l&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.u&&b.uD&&(f.live_start_walltime=b.uD);a.u&&b.uf&&(f.live_manifest_duration=b.uf);a.u&&b.playerParams&&
(f.player_params=b.playerParams);a.u&&b.cycToken&&(f.cyc=b.cycToken);a.u&&b.cz&&(f.tkn=b.cz);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.eb&&(f.kpt=b.eb);b.Hi&&(f.kids_age_up_mode=b.Hi);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Kp&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.U?(h=null!=b.U.latitudeE7&&null!=b.U.longitudeE7?b.U.latitudeE7+","+b.U.longitudeE7:",",h+=","+(b.U.clientPermissionState||0)+","+(b.U.locationRadiusMeters||
"")+","+(b.U.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.xj&&(f.internalipoverride=b.xj);a.embedConfig&&(f.embed_config=a.embedConfig);a.vj&&(f.co_rel="1");0<a.Gc.length&&(f.ancestor_origins=Array.from(a.Gc).join(","));void 0!==a.homeGroupInfo&&(f.home_group_info=a.homeGroupInfo);void 0!==a.livingRoomAppMode&&(f.living_room_app_mode=a.livingRoomAppMode);a.enablePrivacyFilter&&(f.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(f.is_living_room_deeplink="1");b.Ok&&b.Pk&&(f.clip=b.Ok,f.clipt=
b.Pk);b.Qk&&(f.disable_watch_next="1");a.Z("web_player_gvi_wexit_diff")&&(f.player_request=JSON.stringify(yN(b,c,d)));a.Z("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(tsa(b)));b.tf&&(f.forced_by_var="1");for(var l in f)!cta.has(l)&&f[l]&&512<String(f[l]).length&&(g.Ux(Error("GVI param too long: "+l)),f[l]="");b=a.Aa;g.UF(a)&&(b=xz(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Aa);a=g.ti(b+"get_video_info",f);e&&(a=rs(a,e));return a};
g.BO=function(a,b){return a.Aa+"timedtext_video?ref=player&v="+b.videoId};
g.CO=function(a){var b={};b.feature=a;return b};
eta=function(a){var b={};a.Xy&&(b.ytrext=a.Xy);return g.Rb(b)?void 0:b};
EO=function(a){g.V.call(this,{D:"button",Ca:[DO.BUTTON,DO.TITLE_NOTIFICATIONS],V:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{D:"div",L:DO.TITLE_NOTIFICATIONS_ON,V:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.HL()]},{D:"div",L:DO.TITLE_NOTIFICATIONS_OFF,V:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{D:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{D:"path",V:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=a;this.i=!1;a.Xb(this.element,this,36927);this.Ra("click",this.onClick,this);this.Sa("pressed",!1);this.Sa("label","Get notified about every new video")};
fta=function(a,b){a.i=b;a.element.classList.toggle(DO.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.fz:c.ez)?(a=a.api.ll())?KM(a,b):g.Sr(Error("No innertube service available when updating notification preferences.")):g.Sr(Error("No update preferences command available.")):g.Sr(Error("No video data when updating notification preferences."))};
g.GO=function(a,b,c,d,e,f,h,l,m,n,p,r,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var u=r.T();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.SF(u)||g.WF(u))c.target=u.G;g.V.call(this,{D:"div",Ca:["ytp-button","ytp-sb"],S:[{D:"a",L:"ytp-sb-subscribe",V:c,S:[{D:"div",L:"ytp-sb-text",S:[{D:"div",L:"ytp-sb-icon"},a]},b?{D:"div",L:"ytp-sb-count",oa:b}:""]}]});f&&g.K(this.element,
"ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.SF(u)&&!g.S(u.experiments,"subscribe_tooltipkillswitch");g.V.call(this,{D:"div",Ca:["ytp-button","ytp-sb"],S:[{D:"div",L:"ytp-sb-subscribe",V:p?{title:g.eJ("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":LG(u),"data-tooltip-opaque":String(g.MF(u)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{D:"div",L:"ytp-sb-text",S:[{D:"div",L:"ytp-sb-icon"},
a]},b?{D:"div",L:"ytp-sb-count",oa:b}:""]},{D:"div",L:"ytp-sb-unsubscribe",V:p?{title:g.eJ("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":LG(u),"data-tooltip-opaque":String(g.MF(u)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{D:"div",L:"ytp-sb-text",S:[{D:"div",L:"ytp-sb-icon"},c]},d?{D:"div",L:"ytp-sb-count",oa:d}:""]}]});var x=this;this.channelId=h;this.i=t;var y=this.Ba("ytp-sb-subscribe"),B=this.Ba("ytp-sb-unsubscribe");
f&&g.K(this.element,"ytp-sb-classic");if(e){l?this.l():this.u();var G=function(){var I=x.channelId;if(m||n){var M={c:I};if(g.S(r.T().experiments,"embeds_botguard_with_subscribe_killswitch"))M="";else{var L;WM.Ud()&&(L=Qra(M));M=L||""}if(L=r.getVideoData())if(L=L.subscribeCommand){var da=r.ll();da?(KM(da,L,{botguardResponse:M,feature:m}),r.Na("SUBSCRIBE",I)):g.Sr(Error("No innertube service available when updating subscriptions."))}else g.Sr(Error("No subscribe command in videoData."));else g.Sr(Error("No video data available when updating subscription."))}B.focus();
B.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},H=function(){var I=x.channelId;
if(m||n){var M=r.getVideoData();KM(r.ll(),M.unsubscribeCommand,{feature:m});r.Na("UNSUBSCRIBE",I)}y.focus();y.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.N(y,"click",G);this.N(B,"click",H);this.N(y,"keypress",function(I){13===I.keyCode&&G(I)});
this.N(B,"keypress",function(I){13===I.keyCode&&H(I)});
this.N(r,"SUBSCRIBE",this.l);this.N(r,"UNSUBSCRIBE",this.u);this.i&&p&&(this.tooltip=this.i.ac(),FO(this.tooltip),g.gf(this,g.zO(this.tooltip,y)),g.gf(this,g.zO(this.tooltip,B)))}else g.K(y,"ytp-sb-disabled"),g.K(B,"ytp-sb-disabled")}};
HO=function(a,b){g.V.call(this,{D:"div",L:"ytp-title-channel",S:[{D:"div",L:"ytp-title-beacon"},{D:"a",L:"ytp-title-channel-logo",V:{href:"{{channelLink}}",target:a.T().G,"aria-label":"{{channelLogoLabel}}"}},{D:"div",L:"ytp-title-expanded-overlay",V:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{D:"div",L:"ytp-title-expanded-heading",S:[{D:"h2",L:"ytp-title-expanded-title",S:[{D:"a",oa:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:a.T().G,tabIndex:"{{channelTitleFocusable}}"}}]},{D:"h3",
L:"ytp-title-expanded-subtitle",oa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.G=b;this.channel=this.Ba("ytp-title-channel");this.i=this.Ba("ytp-title-channel-logo");this.B=this.Ba("ytp-title-expanded-overlay");this.u=this.l=this.subscribeButton=null;this.C=g.MF(this.api.T());a.Xb(this.i,this,36925);this.C&&gta(this);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",this.Ma);this.Ma()};
gta=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.Ah){var d=b.Y?null:sra(),e=new g.GO("Subscribe",null,"Subscribed",null,!0,!1,c.Fh,c.subscribed,"channel_avatar",null,d,a.api,a.G);a.subscribeButton=e;g.F(a,e);e.ya(a.B);a.api.Xb(e.element,a,36926);e.hide();a.N(e.element,"click",function(){a.api.Fb(e.element)});
var f=new EO(a.api);a.l=f;g.F(a,f);f.ya(a.B);f.hide();a.N(a.api,"SUBSCRIBE",function(){c.uh&&f.show()});
a.N(a.api,"UNSUBSCRIBE",function(){c.uh&&(f.hide(),fta(f,!1))})}a.Sa("flyoutUnfocusable","true");
a.Sa("channelTitleFocusable","-1");b.i?a.N(a.i,"click",function(h){hta(a)&&(h.preventDefault(),a.isExpanded()?a.AA():a.YA());a.api.Fb(a.i)}):(a.N(a.channel,"mouseenter",a.YA),a.N(a.channel,"mouseleave",a.AA),a.N(a.channel,"focusin",a.YA),a.N(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.AA()}),a.N(a.i,"click",function(){a.api.Fb(a.i)}));
a.u=new g.J(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.ib(a.subscribeButton.element,!1)),a.l&&(a.l.hide(),a.api.ib(a.l.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.F(a,a.u);a.N(a.channel,ita,function(){jta(a)});
a.N(a.api,"onHideControls",a.WC);a.N(a.api,"appresize",a.WC);a.N(a.api,"fullscreentoggled",a.WC)};
jta=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
hta=function(a){var b=a.api.getPlayerSize();return a.C&&524<=b.width};
g.JO=function(a,b,c,d){g.xL.call(this,a);this.priority=b;c&&g.IO(this,c);d&&this.Vc(d)};
g.KO=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{D:c?"a":"div",Ca:b,V:a,S:[{D:"div",L:"ytp-menuitem-icon",oa:"{{icon}}"},{D:"div",L:"ytp-menuitem-label",oa:"{{label}}"},{D:"div",L:"ytp-menuitem-content",oa:"{{content}}"}]}};
LO=function(a,b){a.Sa("icon",b)};
g.IO=function(a,b){a.Sa("label",b)};
MO=function(a,b,c,d,e,f){var h={D:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={D:"div",L:"ytp-panel-header",S:[{D:"button",Ca:["ytp-button",l],S:[c]}]};if(e){var n="ytp-panel-options";m.S.unshift({D:"button",Ca:["ytp-button",n],S:[d]})}h.S=[m]}d=!1;f&&(f={D:"div",L:"ytp-panel-footer",S:[f]},d=!0,h.S?h.S.push(f):h.S=[f]);g.xL.call(this,h);this.content=b;d&&h.S?b.ya(this.element,h.S.length-1):b.ya(this.element);this.BH=!1;this.yP=d;c&&(c=this.Ba(l),this.N(c,"click",this.RQ),this.BH=!0,
e&&(n=this.Ba(n),this.N(n,"click",e)));b.subscribe("size-change",this.NI,this);this.N(a,"fullscreentoggled",this.NI)};
g.NO=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.xL({D:"div",L:"ytp-panel-menu",V:h});MO.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.F(this,this.menuItems)};
g.OO=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.vC,a);a.items=[];g.pg(a.menuItems.element);a.menuItems.W("size-change")};
kta=function(a,b){return b.priority-a.priority};
PO=function(a){var b=g.KO({"aria-haspopup":"true"});g.JO.call(this,b,a);this.Ra("keydown",this.i)};
QO=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
RO=function(a,b){g.JO.call(this,g.KO({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{D:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ra("click",this.onClick)};
SO=function(a,b,c,d){var e;g.NO.call(this,a);this.I=a;this.xb=c;this.jc=d;this.getVideoUrl=new PO(6);this.Si=new PO(5);this.Qi=new PO(4);this.Cb=new PO(3);this.Au=new g.JO(g.KO({href:"{{href}}",target:this.I.T().G},void 0,!0),2,"Troubleshoot playback issue");this.oq=new g.xL({D:"div",Ca:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:"false",tabindex:"1"},oa:"{{text}}"});this.xG=new MO(this.I,this.oq);this.Om=null;this.I.T().Fi&&(this.Wh=new RO("Loop",7),g.F(this,this.Wh),this.yc(this.Wh,!0),this.Wh.Ra("click",
this.MR,this),a.Xb(this.Wh.element,this.Wh,28661));g.F(this,this.getVideoUrl);this.yc(this.getVideoUrl,!0);this.getVideoUrl.Ra("click",this.xR,this);a.Xb(this.getVideoUrl.element,this.getVideoUrl,28659);g.F(this,this.Si);this.yc(this.Si,!0);this.Si.Ra("click",this.yR,this);a.Xb(this.Si.element,this.Si,28660);g.F(this,this.Qi);this.yc(this.Qi,!0);this.Qi.Ra("click",this.wR,this);a.Xb(this.Qi.element,this.Qi,28658);g.F(this,this.Cb);this.yc(this.Cb,!0);this.Cb.Ra("click",this.vR,this);g.F(this,this.Au);
this.yc(this.Au,!0);this.Au.Ra("click",this.DS,this);b=new g.JO(g.KO(),1,"Stats for nerds");g.F(this,b);this.yc(b,!0);b.Ra("click",this.XS,this);g.F(this,this.oq);this.oq.Ra("click",this.hR,this);g.F(this,this.xG);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.aj&&g.Wd(43)&&(c=!0);g.bj&&!g.Wd(41)&&(c=!1);c&&(this.Om=new g.V({D:"textarea",L:"ytp-html5-clipboard",V:{readonly:""}}),g.F(this,this.Om),this.Om.ya(this.element));null===(e=this.Wh)||void 0===e?void 0:LO(e,{D:"svg",
V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{D:"path",V:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});LO(this.Cb,{D:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{D:"path",V:{"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"}}]});LO(this.Au,{D:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{D:"path",V:{"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"}}]});LO(b,Pqa());this.N(a,"loopchange",this.aJ);this.N(a,"videodatachange",this.kb);lta(this);this.ni(this.I.getVideoData())};
UO=function(a,b){var c=!1;if(a.Om){var d=a.Om.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.xb.Ab():(a.oq.Vc(b,"text"),g.TO(a.xb,a.xG),aO(a.oq.element),a.Om&&(a.Om=null,lta(a)));return c};
lta=function(a){var b=!!a.Om;g.IO(a.Cb,b?"Copy debug info":"Get debug info");QO(a.Cb,!b);g.IO(a.Qi,b?"Copy embed code":"Get embed code");QO(a.Qi,!b);g.IO(a.getVideoUrl,b?"Copy video URL":"Get video URL");QO(a.getVideoUrl,!b);g.IO(a.Si,b?"Copy video URL at current time":"Get video URL at current time");QO(a.Si,!b);LO(a.Qi,b?Mqa():null);LO(a.getVideoUrl,b?FL():null);LO(a.Si,b?FL():null)};
g.VO=function(a,b){g.kO.call(this,a,{D:"div",Ca:["ytp-popup",b||""]},100,!0);this.i=[];this.G=this.B=null;this.xv=this.maxWidth=0;this.size=new g.Sf(0,0);this.Ra("keydown",this.LL)};
mta=function(a){var b=a.i[a.i.length-1];if(b){g.Nl(a.element,a.maxWidth||"100%",a.xv||"100%");g.zl(b.element,"minWidth","250px");g.zl(b.element,"width","");g.zl(b.element,"height","");g.zl(b.element,"maxWidth","100%");g.zl(b.element,"maxHeight","100%");g.zl(b.content.element,"height","");var c=g.Ol(b.element);c.width+=1;c.height+=1;g.zl(b.element,"width",c.width+"px");g.zl(b.element,"height",c.height+"px");g.zl(b.element,"maxWidth","");g.zl(b.element,"maxHeight","");var d=0;b.BH&&(d=b.Ba("ytp-panel-header"),
d=g.Ol(d).height);var e=0;b.yP&&(e=b.Ba("ytp-panel-footer"),g.zl(e,"width",c.width+"px"),e=g.Ol(e).height);g.zl(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.zl(b.element,"width",c.width+"px")));a.size=c}};
g.TO=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);WO(a,c,b)};
g.XO=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];WO(a,b,c,!0)}};
WO=function(a,b,c,d){nta(a);b&&(b.unsubscribe("size-change",a.Dr,a),b.unsubscribe("back",a.Wg,a));c.subscribe("size-change",a.Dr,a);c.subscribe("back",a.Wg,a);if(a.vb){g.K(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ya(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;mta(a);g.Nl(a.element,e);a.B=new g.J(function(){ota(a,b,c,d)},20,a);
a.B.start()}else c.ya(a.element),b&&b.detach()};
ota=function(a,b,c,d){a.B.dispose();a.B=null;g.K(a.element,"ytp-popup-animating");d?(g.K(b.element,"ytp-panel-animate-forward"),g.Oq(c.element,"ytp-panel-animate-back")):(g.K(b.element,"ytp-panel-animate-back"),g.Oq(c.element,"ytp-panel-animate-forward"));g.Nl(a.element,a.size);a.G=new g.J(function(){g.Oq(a.element,"ytp-popup-animating");b.detach();g.Pq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.G.dispose();a.G=null},250,a);
a.G.start()};
nta=function(a){a.B&&g.Fq(a.B);a.G&&g.Fq(a.G)};
g.YO=function(a,b,c){g.VO.call(this,a);this.va=b;this.jc=c;this.u=new g.qN(this);this.X=new g.J(this.pT,1E3,this);this.ma=this.C=null;g.F(this,this.u);g.F(this,this.X);a.Xb(this.element,this,28656);g.K(this.element,"ytp-contextmenu");pta(this);this.hide()};
pta=function(a){g.ox(a.u);if("gvn"!==a.I.T().playerStyle){var b=a.I.Za();a.u.N(b,"contextmenu",a.eR);a.u.N(b,"touchstart",a.NL,null,!0);a.u.N(b,"touchmove",a.xJ,null,!0);a.u.N(b,"touchend",a.xJ,null,!0)}};
qta=function(a){a.I.isFullscreen()?g.oN(a.I,a.element,9):a.ya(document.body)};
g.ZO=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{D:"button",Ca:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.MF(a.T()))},S:[{D:"div",L:"ytp-copylink-icon",oa:"{{icon}}"},{D:"div",L:"ytp-copylink-title",oa:"Copy link",V:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.l=c;this.visible=!1;this.tooltip=this.i.ac();b=a.T();FO(this.tooltip);g.N(this.element,"ytp-show-copylink-title",g.MF(b)&&!g.XF(b));a.Xb(this.element,this,86570);this.Ra("click",
this.onClick);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",this.Ma);this.N(a,"appresize",this.Ma);this.Ma();g.gf(this,g.zO(this.tooltip,this.element))};
rta=function(a){a.Sa("icon",AL());if(a.api.T().i)$O(a.tooltip,a.element,"Link copied to clipboard");else{a.Sa("title-attr","Link copied to clipboard");aP(a.tooltip);$O(a.tooltip,a.element);var b=a.Ra("mouseleave",function(){a.fc(b);a.Ma();a.tooltip.Ni()})}};
sta=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return ta(f,2),g.w(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);va(f);var h=f.return,l=!1,m=g.ng("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(qt){var p=window.getSelection();p.removeAllRanges();var r=document.createRange();r.selectNodeContents(m);p.addRange(r);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m);
return h.call(f,l)})})};
bP=function(a){g.V.call(this,{D:"div",L:"ytp-doubletap-ui",S:[{D:"div",L:"ytp-doubletap-fast-forward-ve"},{D:"div",L:"ytp-doubletap-rewind-ve"},{D:"div",L:"ytp-doubletap-static-circle",S:[{D:"div",L:"ytp-doubletap-ripple"}]},{D:"div",L:"ytp-doubletap-overlay-a11y"},{D:"div",L:"ytp-doubletap-seek-info-container",S:[{D:"div",L:"ytp-doubletap-arrows-container",S:[{D:"span",L:"ytp-doubletap-base-arrow"},{D:"span",L:"ytp-doubletap-base-arrow"},{D:"span",L:"ytp-doubletap-base-arrow"}]},{D:"div",L:"ytp-doubletap-tooltip",
S:[{D:"div",L:"ytp-chapter-seek-text",oa:"{{seekText}}"},{D:"div",L:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.I=a;this.u=new g.J(this.show,10,this);this.l=new g.J(this.hide,700,this);this.i=this.Ba("ytp-doubletap-static-circle");g.F(this,this.u);g.F(this,this.l);this.hide();this.B=this.Ba("ytp-doubletap-fast-forward-ve");this.C=this.Ba("ytp-doubletap-rewind-ve");this.I.Xb(this.B,this,28240);this.I.Xb(this.C,this,28239);this.I.ib(this.B,!0);this.I.ib(this.C,!0)};
cP=function(a,b,c){var d=a.I.Za().getPlayerSize();g.Gq(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.K(a.element,"ytp-time-seeking");a.i.style.width="110px";a.i.style.height="110px";1===b?(a.i.style.right="",a.i.style.left=.8*d.width-30+"px"):-1===b&&(a.i.style.right="",a.i.style.left=.1*d.width-15+"px");a.i.style.top=.5*d.height+15+"px";tta(a,c)};
dP=function(a,b,c){g.Gq(a.l);a.u.start();a.element.setAttribute("data-side",-1===b?"back":"forward");a.i.style.width="0";a.i.style.height="0";g.K(a.element,"ytp-chapter-seek");a.Sa("seekText",c);a.Sa("seekTime","")};
tta=function(a,b){b=g.eJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Sa("seekTime",b)};
eP=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
fP=function(a,b){var c=0;a=g.q(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
uta=function(a,b){b=fP(a,b)+1;return b<a.length?b:-1};
vta=function(a,b){return fP(a,b)-1};
g.gP=function(a,b,c,d,e,f,h){g.qN.call(this);var l=this;this.api=a;this.contextMenu=c;this.fd=d;this.jc=e;this.i=f;this.B=h;this.u=new g.J(function(){wta(l,!1)},1E3);
this.l="";g.F(this,this.u);a=g.Qa(this.fD,!1);this.N(b,"mousedown",a);this.N(c.element,"mousedown",a);this.N(b,"keydown",this.wH);this.N(c.element,"keydown",this.wH);this.N(b,"keyup",this.xH);this.N(c.element,"keyup",this.xH)};
iP=function(a,b,c,d){var e=g.HN(a.api.rb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.hP.length;h++){var l=g.hP[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);wta(a,!0);a.u.start()}};
xta=function(a,b){a.api.Xe();if(g.U(a.api.sb(),4)){var c=a.api.getVideoData().l;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
wta=function(a,b){g.HN(a.api.rb())&&a.api.setOption("captions","sampleSubtitles",b)};
jP=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-button","ytp-overflow-button"],V:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},S:[{D:"div",L:"ytp-overflow-icon",S:[{D:"svg",V:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{D:"path",V:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.I=a;this.i=b;this.visible=!1;this.tooltip=this.i.ac();
a.Xb(this.element,this,16499);this.N(a,"appresize",this.Ma);this.N(a,"fullscreentoggled",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ma();g.gf(this,g.zO(this.tooltip,this.element));this.Ra("click",function(){a.Fb(d.element);lO(c,d.element,!1)})};
kP=function(a,b){g.kO.call(this,a,{D:"div",L:"ytp-overflow-panel",V:{id:sL(),role:"dialog"},S:[{D:"div",L:"ytp-overflow-panel-content",S:[{D:"div",L:"ytp-overflow-panel-action-buttons",oa:"{{buttons}}"}]},{D:"button",Ca:["ytp-overflow-panel-close","ytp-button"],V:{title:"Close"},S:[g.DL()]}]},250);this.actionButtons=[];this.tooltip=b.ac();this.i=this.Ba("ytp-overflow-panel-content");this.closeButton=this.Ba("ytp-overflow-panel-close");this.N(this.closeButton,"click",this.Ab);g.gf(this,g.zO(this.tooltip,
this.closeButton));this.Ra("click",this.OL);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.Me);this.hide()};
lP=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Sa("buttons",a.actionButtons))};
yta=function(a,b){a=g.q(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Ub(b)};
mP=function(a,b,c){var d=b.fb(c),e=a.T(),f=d.Ke("default.jpg");g.V.call(this,{D:"a",Ca:["ytp-video-menu-item","ytp-button"],V:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},S:[{D:"div",L:"ytp-video-menu-item-index",oa:String(c+1)},{D:"div",L:"ytp-video-menu-item-now-playing",oa:"\u25b6"},{D:"div",L:"ytp-video-menu-item-thumbnail",V:{style:f?"background-image: url("+f+");":void 0}},{D:"div",L:"ytp-video-menu-item-title",oa:d.title},{D:"div",
L:"ytp-video-menu-item-author",oa:d.author}]});this.api=a;this.index=c;this.Ra("click",this.onClick)};
nP=function(a){g.kO.call(this,a,{D:"div",L:"ytp-playlist-menu",V:{role:"dialog",id:sL()},S:[{D:"div",L:"ytp-playlist-menu-header",S:[{D:"div",L:"ytp-playlist-menu-title",S:[{D:"a",L:"ytp-playlist-menu-title-name",V:{href:"{{playlisturl}}"},oa:"{{title}}"},{D:"button",Ca:["ytp-playlist-menu-close","ytp-button"],V:{"aria-label":"Close"},S:[g.DL()]}]},{D:"div",L:"ytp-playlist-menu-subtitle",oa:"{{subtitle}}"}]},{D:"div",L:"ytp-playlist-menu-items",V:{role:"menu"}}]},250);this.api=a;this.selected=this.B=
this.playlist=null;this.items=this.Ba("ytp-playlist-menu-items");this.u=new g.qN(this);this.i=[];a=this.Ba("ytp-playlist-menu-close");this.N(a,"click",this.Ab);a=this.Ba("ytp-playlist-menu-title-name");this.N(a,"click",this.oT);g.F(this,this.u);this.hide()};
oP=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-playlist-menu-button","ytp-button"],V:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},S:[{D:"div",L:"ytp-playlist-menu-button-icon",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{D:"div",L:"ytp-playlist-menu-button-text",oa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.ac();a.Xb(this.element,this,70344);this.N(a,"videodatachange",this.i);this.N(a,"onPlaylistUpdate",this.i);this.N(a,"presentingplayerstatechange",this.Ma);this.N(a,"appresize",this.Ma);this.hide();this.i();g.gf(this,g.zO(this.tooltip,this.element));this.Ra("click",function(){a.Fb(d.element);lO(c,d.element,!1)})};
pP=function(a,b,c){g.V.call(this,{D:"div",L:"ytp-promotooltip-wrapper",S:[{D:"div",L:"ytp-promotooltip-container",S:[{D:"div",L:"ytp-promotooltip-content",S:[{D:"div",L:"ytp-promotooltip-title",oa:"{{title}}"},{D:"div",L:"ytp-promotooltip-details",oa:"{{details}}"}]},{D:"div",L:"ytp-promotooltip-buttons",S:[{D:"div",L:"ytp-promotooltip-dismiss-button",oa:"{{dismissButtonText}}",V:{tabindex:"0"}},{D:"div",L:"ytp-promotooltip-accept-button",oa:"{{acceptButtonText}}",V:{tabindex:"0","aria-haspopup":"true"}}]}]},
{D:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.I=c;this.i=this.u=null;this.title=this.Ba("ytp-promotooltip-title");this.details=this.Ba("ytp-promotooltip-details");this.acceptButton=this.Ba("ytp-promotooltip-accept-button");this.dismissButton=this.Ba("ytp-promotooltip-dismiss-button");this.G=this.C=this.l=this.B=!1;g.wL(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.l=!!a)this.I.Ig(this.element,this,!0),this.I.Nl(this.element,a);this.N(c,"onShowControls",
this.oz);this.N(c,"onHideControls",this.gR);this.N(c,"resize",this.tb);this.N(this.acceptButton,"click",this.rQ);this.N(this.dismissButton,"click",this.mR);this.N(document,"click",this.PL)};
zta=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
qP=function(a){g.wL(a,!1);a.l&&a.I.ib(a.element,a.vb)};
rP=function(a,b){var c,d,e=a.tooltipRenderer.promoConfig;if(e){switch(b){case 0:if(null===(c=e.impressionEndpoints)||void 0===c?0:c.length)var f=e.impressionEndpoints[0];break;case 1:f=e.acceptCommand;break;case 2:f=e.dismissCommand}if(null===(d=null===f||void 0===f?void 0:f.feedbackEndpoint)||void 0===d?0:d.feedbackToken)b={feedbackTokens:[f.feedbackEndpoint.feedbackToken]},a=a.I.ll(),(null===a||void 0===a?0:Bra(a,f))&&KM(a,f,b)}};
Ata=function(a){var b,c,d,e,f,h,l,m,n,p,r=(null===(e=null===(d=null===(c=null===(b=a.acceptButton)||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.text)||void 0===d?void 0:d.runs)||void 0===e?void 0:e.length)&&!(null===(f=a.acceptButton)||void 0===f||!f.buttonRenderer.text.runs[0].text);a=(null===(n=null===(m=null===(l=null===(h=a.dismissButton)||void 0===h?void 0:h.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?void 0:n.length)&&!(null===(p=a.dismissButton)||
void 0===p||!p.buttonRenderer.text.runs[0].text);return r||a};
sP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-replay-button","ytp-button"],V:{title:"Replay"},S:[g.IL()]});this.I=a;this.N(a,"presentingplayerstatechange",this.i);this.Ra("click",this.onClick,this);a=a.sb();g.wL(this,g.U(a,2));g.zO(b.ac(),this.element)};
g.tP=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{D:"button",Ca:["ytp-button","ytp-share-button"],V:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.MF(a.T()))},S:[{D:"div",L:"ytp-share-icon",oa:"{{icon}}"},{D:"div",L:"ytp-share-title",oa:"Share"}]});this.api=a;this.i=b;this.u=c;this.l=d;this.visible=!1;this.tooltip=this.i.ac();b=a.T();a.Xb(this.element,this,28664);this.Ra("click",this.onClick);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",
this.Ma);this.N(a,"appresize",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ma();g.N(this.element,"ytp-show-share-title",g.MF(b)&&!g.XF(b));g.gf(this,g.zO(this.tooltip,this.element))};
Bta=function(a){"InvalidStateError"!==a.name&&g.Tx(a)};
g.uP=function(a,b){var c=sL(),d=a.T();c={D:"div",L:"ytp-share-panel",V:{id:sL(),role:"dialog","aria-labelledby":c},S:[{D:"div",L:"ytp-share-panel-inner-content",S:[{D:"div",L:"ytp-share-panel-title",V:{id:c},oa:"Share"},{D:"a",Ca:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:d.G,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},oa:"{{linkText}}"},{D:"label",L:"ytp-share-panel-include-playlist",S:[{D:"input",L:"ytp-share-panel-include-playlist-checkbox",V:{type:"checkbox",
checked:!0}},"Include playlist"]},{D:"div",L:"ytp-share-panel-loading-spinner",S:[$N()]},{D:"div",L:"ytp-share-panel-service-buttons",oa:"{{buttons}}"},{D:"div",L:"ytp-share-panel-error",oa:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",Ca:["ytp-share-panel-close","ytp-button"],V:{title:"Close"},S:[g.DL()]}]};g.kO.call(this,a,c,250);this.api=a;this.tooltip=b.ac();this.i=[];this.C=this.Ba("ytp-share-panel-inner-content");this.closeButton=this.Ba("ytp-share-panel-close");
this.N(this.closeButton,"click",this.Ab);g.gf(this,g.zO(this.tooltip,this.closeButton));this.B=this.Ba("ytp-share-panel-include-playlist-checkbox");this.N(this.B,"click",this.Ma);this.u=this.Ba("ytp-share-panel-link");g.gf(this,g.zO(this.tooltip,this.u));this.Ra("click",this.QL);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.Me);this.N(a,"onLoopRangeChange",this.XP);this.hide()};
Dta=function(a,b){Cta(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Ul:e.Ul},f++){e.Ul=c[f];a:switch(e.Ul.img||e.Ul.iconId){case "facebook":var h={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.V({D:"a",Ca:["ytp-share-panel-service-button","ytp-button"],V:{href:e.Ul.url,target:"_blank",title:e.Ul.sname||e.Ul.serviceName},S:[h]}),h.Ra("click",function(m){return function(n){if(g.uM(n)){var p=m.Ul.url;var r=void 0===r?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";r||(r={});var t=window;var u=p instanceof g.Ec?p:g.Jc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+
"="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Pd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.ng("A"),g.kd(y,u),y.setAttribute("target",p),r.noreferrer&&y.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(r),t={}):r.noreferrer?(t=ld("",t,p,y),r=g.Fc(u),t&&(g.IG&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.dd(g.fc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.qd(r)+'">'),(u=t.document)&&u.write&&(u.write(g.$c(r)),u.close()))):(t=ld(u,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.Ut(n)}}}(e)),g.gf(h,g.zO(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink;
b=new g.V({D:"a",Ca:["ytp-share-panel-service-button","ytp-button"],S:[{D:"span",L:"ytp-share-panel-service-button-more",S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{D:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",V:{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"}}]}]}],V:{href:l,target:"_blank",title:"More"}});b.Ra("click",function(m){g.ZN(l,a.api,m)&&a.api.Na("SHARE_CLICKED")});
g.gf(b,g.zO(a.tooltip,b.element));a.i.push(b);a.Sa("buttons",a.i)};
Cta=function(a){for(var b=g.q(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ef(c);a.i=[]};
xP=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{D:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.Ya=b;this.Ga=this.J=this.i=this.C=this.B=this.l=this.expanded=this.enabled=this.u=!1;this.Va=!0;this.Ea=new g.J(function(){d.badge.element.style.width=""},200,this);
this.X=new g.J(function(){vP(d);wP(d)},200,this);
this.dismissButton=new g.V({D:"button",Ca:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.F(this,this.dismissButton);this.G=new g.V({D:"div",L:"ytp-suggested-action-badge-expanded-content-container",S:[{D:"label",L:"ytp-suggested-action-badge-title",oa:"{{badgeLabel}}"},this.dismissButton]});g.F(this,this.G);this.badge=new g.V({D:"button",Ca:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],S:[c?{D:"div",L:"ytp-suggested-action-badge-icon"}:
"",this.G]});g.F(this,this.badge);this.badge.ya(this.element);this.K=new g.fM(this.badge,250,!1,100);g.F(this,this.K);this.va=new g.fM(this.G,250,!1,100);g.F(this,this.va);this.Da=new g.Aq(this.sU,null,this);g.F(this,this.Da);this.ma=new g.Aq(this.DO,null,this);g.F(this,this.ma);g.F(this,this.Ea);g.F(this,this.X);this.I.Ig(this.badge.element,this.badge,!0);this.I.Ig(this.dismissButton.element,this.dismissButton,!0);this.N(this.I,"onHideControls",function(){d.i=!1;wP(d);vP(d);d.Eh()});
this.N(this.I,"onShowControls",function(){d.i=!0;wP(d);vP(d);d.Eh()});
this.N(this.badge.element,"click",this.lC);this.N(this.dismissButton.element,"click",this.mC);this.N(this.I,"pageTransition",this.RL);this.N(this.I,"appresize",this.Eh);this.N(this.I,"fullscreentoggled",this.tR);this.N(this.I,"cardstatechange",this.UQ);this.N(this.I,"annotationvisibility",this.SU,this);this.N(this.I,"offlineslatestatechange",this.TU,this)};
vP=function(a){g.N(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.l)};
wP=function(a,b){var c=a.J||a.i||!a.l;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Da.stop(),a.ma.stop(),a.Ea.stop(),a.Da.start()):(g.wL(a.G,a.expanded),g.N(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Eta(a))};
Eta=function(a){a.B&&a.I.ib(a.badge.element,a.Hu());a.C&&a.I.ib(a.dismissButton.element,a.Hu()&&(a.J||a.i||!a.l))};
Fta=function(a){var b=a.text||"";g.ug(g.cg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.La?a.La:"")};
Gta=function(a,b){b?a.C&&a.I.Fb(a.dismissButton.element):a.B&&a.I.Fb(a.badge.element)};
yP=function(a,b){xP.call(this,a,b);var c=this;this.U=this.xa=this.Aa=!1;this.N(this.I,g.Iz("shopping_overlay_visible"),function(){c.Fe(!0)});
this.N(this.I,g.Jz("shopping_overlay_visible"),function(){c.Fe(!1)});
this.N(this.I,g.Iz("shopping_overlay_expanded"),function(){c.J=!0;wP(c)});
this.N(this.I,g.Jz("shopping_overlay_expanded"),function(){c.J=!1;wP(c)});
this.N(this.I,"changeProductsInVideoVisibility",this.mS);this.N(this.I,"videodatachange",this.kb);this.N(this.I,"paidcontentoverlayvisibilitychange",this.dS)};
zP=function(a){a.I.df("shopping_overlay_visible");a.I.df("shopping_overlay_expanded")};
AP=function(a){g.kO.call(this,a,{D:"button",Ca:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{D:"div",L:"ytp-skip-intro-button-text",oa:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.J(function(){b.hide()},5E3);
this.i=this.u=NaN;g.F(this,this.B);this.ma=function(){b.show()};
this.X=function(){b.hide()};
this.G=function(){var c=b.I.getCurrentTime();c>b.u/1E3&&c<b.i/1E3&&b.show()};
this.N(this.I,"videodatachange",function(c,d){b.Gq(c,d)});
this.N(this.element,"click",function(){b.I.seekTo(b.i/1E3)});
this.hide()};
BP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-airplay-button","ytp-button"],V:{title:"AirPlay"},oa:"{{icon}}"});this.I=a;this.Ra("click",this.onClick);this.N(a,"airplayactivechange",this.Ma);this.N(a,"airplayavailabilitychange",this.Ma);this.Ma();g.gf(this,g.zO(b.ac(),this.element))};
CP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-button"],V:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{D:"div",L:"ytp-autonav-toggle-button-container",S:[{D:"div",L:"ytp-autonav-toggle-button",V:{"aria-checked":"true"}}]}]});this.I=a;this.l=[];this.i=!1;this.isChecked=!0;a.Xb(this.element,this,113681);this.N(a,"presentingplayerstatechange",this.Vr);this.Ra("click",this.onClick);this.tooltip=b.ac();g.gf(this,g.zO(b.ac(),this.element));this.Vr()};
Hta=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Sa("title",b);a.Sa("label",b);aP(a.tooltip)};
g.EP=function(a){g.V.call(this,{D:"div",L:"ytp-gradient-bottom"});this.i=g.ng("CANVAS");this.ctx=this.i.getContext("2d");this.u=NaN;this.i.width=1;this.l=g.XF(a.T());g.DP(this,a.Za().getPlayerSize().height)};
g.DP=function(a,b){if(a.ctx){b=Math.floor(b*(a.l?1:.4));b=Math.max(b,47);var c=b+2;if(a.u!==c){a.u=c;a.i.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.l)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.i.toDataURL()+")"}catch(f){}}}};
FP=function(a,b){g.V.call(this,{D:"div",L:"ytp-chapter-container",S:[{D:"button",Ca:["ytp-chapter-title","ytp-button"],V:{title:"View chapter","aria-label":"View chapter"},S:[{D:"span",V:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",oa:"\u2022"},{D:"div",L:"ytp-chapter-title-content",oa:"{{title}}"},{D:"div",L:"ytp-chapter-title-chevron",S:[{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.I=a;this.G=b;this.B="";this.currentIndex=0;this.u=void 0;this.i=!0;this.C=this.Ba("ytp-chapter-container");this.l=this.Ba("ytp-chapter-title");this.updateVideoData("newdata",this.I.getVideoData());this.N(a,"videodatachange",this.updateVideoData);this.N(this.C,"click",this.onClick);this.N(a,"onVideoProgress",this.Rb);this.N(a,"SEEK_TO",this.Rb);this.N(a,"innertubeCommand",this.onClickCommand)};
Ita=function(a,b,c,d,e){var f=b.sx/b.rows,h=Math.min(c/(b.tx/b.columns),d/f),l=b.tx*h,m=b.sx*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,r=-b.column*n,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+t+"px/"+l+"px "+m+"px"};
g.GP=function(a){g.V.call(this,{D:"div",L:"ytp-storyboard-framepreview",S:[{D:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.B=this.Ba("ytp-storyboard-framepreview-img");this.l=null;this.u=NaN;this.events=new g.qN(this);this.i=new g.fM(this,100);g.F(this,this.events);g.F(this,this.i);this.N(this.api,"presentingplayerstatechange",this.Dc)};
HP=function(a,b){var c=!!a.l;a.l=b;a.l?(c||(a.events.N(a.api,"videodatachange",function(){HP(a,a.api.oh())}),a.events.N(a.api,"progresssync",a.Yc),a.events.N(a.api,"appresize",a.C)),a.u=NaN,IP(a),a.i.show(200)):(c&&g.ox(a.events),a.i.hide(),a.i.stop())};
IP=function(a){var b=a.l,c=a.api.getCurrentTime(),d=a.api.Za().getPlayerSize(),e=jH(b,d.width);c=lma(b,e,c);c!==a.u&&(a.u=c,ima(b,c,d.width),b=gma(b,c,d.width),Ita(a.B,b,d.width,d.height))};
JP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-fullerscreen-edu-button","ytp-button"],S:[{D:"div",Ca:["ytp-fullerscreen-edu-text"],oa:"Scroll for details"},{D:"div",Ca:["ytp-fullerscreen-edu-chevron"],S:[{D:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{D:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.i=a;this.B=b;this.l=new g.fM(this,250,void 0,100);this.C=this.u=!1;a.Xb(this.element,this,61214);this.B=b;g.F(this,this.l);this.N(a,
"fullscreentoggled",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ra("click",this.onClick);this.Ma()};
g.KP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-fullscreen-button","ytp-button"],V:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.l=b;this.message=null;this.i=g.zO(this.l.ac(),this.element);this.u=new g.J(this.fO,2E3,this);g.F(this,this.u);this.N(a,"fullscreentoggled",this.ji);this.N(a,"presentingplayerstatechange",this.Ma);this.Ra("click",this.onClick);ix()&&(b=this.I.Za(),this.N(b,oia(),this.sC),this.N(b,lx(document),this.Fl));a.T().Pa||a.T().J||this.disable();this.Ma();this.ji(a.isFullscreen())};
LP=function(){g.E.call(this);this.l=null;this.startTime=this.duration=0;this.delay=new g.Aq(this.i,null,this);g.F(this,this.delay)};
Jta=function(a,b){if("path"===b.D)return b.V.d;if(b.S)for(var c=0;c<b.S.length;c++){var d=b.S[c];if(d&&"string"!==typeof d&&(d=Jta(a,d)))return d}};
Mta=function(a,b,c){c=Jta(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=sL();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=Kta(e),m=Kta(c);MP(a,function(n){d.setAttribute("d",Lta(l,m,n))},200)};
MP=function(a,b,c){a.l=b;a.startTime=(0,g.P)();a.duration=c;a.i()};
Kta=function(a){var b=[];a=a.match(Nta);for(var c=0;c<a.length;c++){var d=" "===a[c]?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
Lta=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
g.NP=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-play-button","ytp-button"],V:{title:"{{title}}","aria-label":"{{label}}"},oa:"{{icon}}"});this.I=a;this.i=null;this.transition=new LP;this.tooltip=b.ac();g.F(this,this.transition);this.u=!!c;this.N(a,"fullscreentoggled",this.kb);this.N(a,"presentingplayerstatechange",this.l);this.N(a,"videodatachange",this.kb);Ota(this,a.sb());this.Ra("click",this.zr,this);g.gf(this,g.zO(b.ac(),this.element))};
Pta=function(a){switch(a){case 1:return Tqa();case 2:return Rqa();case 3:return g.IL();case 4:return Vqa();default:return null}};
Ota=function(a,b){var c=g.OH(a.I.getVideoData()),d=!1;g.HK(b)?b=c?4:2:g.U(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.i!==b){c=null;switch(b){case 2:c=bO(a.I,"Pause","k");break;case 3:c="Replay";break;case 1:c=bO(a.I,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,label:null,icon:Pta(b)}):(a.update({title:c,label:c}),(c=Pta(b))&&a.i&&3!==a.i?Mta(a.transition,a.element,c):a.Sa("icon",c));aP(a.tooltip);a.i=b}};
OP=function(a,b){g.V.call(this,{D:"div",L:"ytp-hybrid-controls"});this.I=a;b=new g.NP(a,b,!0);g.F(this,b);b.ya(this.element);this.N(a,"presentingplayerstatechange",this.i);Qta(this,a.sb())};
Qta=function(a,b){b=g.U(b,2);HG(a.I.T())&&(b?a.hide():a.show())};
PP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-miniplayer-button","ytp-button"],V:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[Sqa()]});this.I=a;this.visible=!1;this.Ra("click",this.onClick);this.N(a,"fullscreentoggled",this.Ma);this.Sa("title",bO(a,"Miniplayer","i"));g.gf(this,g.zO(b.ac(),this.element));a.Xb(this.element,this,62946);this.Ma()};
QP=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-multicam-button","ytp-button"],V:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.I=a;this.i=!1;this.l=new g.J(this.u,400,this);this.tooltip=b.ac();FO(this.tooltip);g.F(this,this.l);this.Ra("click",function(){lO(c,d.element,!1)});
this.N(a,"presentingplayerstatechange",function(){d.Ma(!1)});
this.N(a,"videodatachange",this.kb);this.Ma(!0);g.gf(this,g.zO(this.tooltip,this.element))};
RP=function(a){g.kO.call(this,a,{D:"div",L:"ytp-multicam-menu",V:{role:"dialog"},S:[{D:"div",L:"ytp-multicam-menu-header",S:[{D:"div",L:"ytp-multicam-menu-title",S:["Switch camera",{D:"button",Ca:["ytp-multicam-menu-close","ytp-button"],V:{"aria-label":"Close"},S:[g.DL()]}]}]},{D:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.u=new g.qN(this);this.items=this.Ba("ytp-multicam-menu-items");this.i=[];g.F(this,this.u);a=this.Ba("ytp-multicam-menu-close");this.N(a,"click",this.Ab);this.hide()};
g.SP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-mute-button","ytp-button"],V:a.T().X?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},oa:"{{icon}}"});this.I=a;this.i=null;this.B=this.K=this.C=this.X=NaN;this.ma=this.G=null;this.u=[];this.l=[];this.visible=!1;this.J=null;var c=this.I.T();this.Sa("icon",KL());this.tooltip=b.ac();this.i=new g.tL({D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"defs",S:[{D:"clipPath",V:{id:"ytp-svg-volume-animation-mask"},
S:[{D:"path",V:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",V:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",L:"ytp-svg-volume-animation-mover",V:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",V:{id:"ytp-svg-volume-animation-slash-mask"},S:[{D:"path",L:"ytp-svg-volume-animation-mover",V:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",Mb:!0,Ca:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],V:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{D:"path",Mb:!0,Ca:["ytp-svg-fill","ytp-svg-volume-animation-hider"],V:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.F(this,this.i);this.G=this.i.Ba("ytp-svg-volume-animation-speaker");this.ma=this.G.getAttribute("d");this.u=g.bg("ytp-svg-volume-animation-mover",this.i.element);
this.l=g.bg("ytp-svg-volume-animation-hider",this.i.element);this.va=new LP;g.F(this,this.va);this.U=new LP;g.F(this,this.U);this.Ra("click",this.TR);this.N(a,"appresize",this.EE);this.N(a,"onVolumeChange",this.Df);var d=null;if(c.X)g.gf(this,g.zO(b.ac(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=new g.kO(a,{D:"span",Ca:["ytp-popup","ytp-generic-popup"],V:{tabindex:"0"},S:[e[0],{D:"a",V:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.G},oa:e[2]},e[4]]},100,!0);g.F(this,d);d.hide();d.subscribe("show",function(f){b.wq(d,f)});
g.oN(a,d.element,4)}this.message=d;a.Xb(this.element,this,28662);this.EE(a.Za().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Tta=function(a,b){a.X=b;var c=a.ma;b&&(c+=Lta(Rta,Sta,b));a.G.setAttribute("d",c)};
Uta=function(a,b){a.K=b;for(var c=20*b,d=0;d<a.u.length;d++)a.u[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=KL():e=a.i;for(c=0;c<a.l.length;c++)if(d=a.l[c],null===d||void 0===d?0:d.style)d.style.display=0===b?"none":"";e!==a.J&&(a.Sa("icon",e),a.J=e)};
TP=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-pip-button","ytp-button"],V:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[Sqa()]});this.I=a;this.Sa("title","Picture in Picture");this.Ra("click",this.onClick);g.gf(this,g.zO(b.ac(),this.element))};
g.UP=function(a,b){return uN(b)?(b.fetch=0,new g.tN(a,b)):new g.rH(a,b)};
g.WP=function(a,b,c){g.V.call(this,{D:"a",Ca:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],V:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},S:[c?GL():Uqa()]});var d=this;this.I=a;this.i=c;this.playlist=this.videoData=null;this.G=!1;this.B=this.C=this.l=null;this.u=!1;this.tooltip=b.ac();this.N(a,"fullscreentoggled",this.kb);
this.N(a,"videodatachange",this.kb);this.N(a,"onPlaylistUpdate",this.kb);this.i||this.N(a,"appresize",this.pz);this.N(a,"mdxpreviousnextchange",function(){VP(d);d.pz()});
this.kb()};
Vta=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.kb,a)};
Wta=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.I.getCurrentTime()&&2!==a.I.getPresentingPlayerType()};
Xta=function(a){var b=g.kN(a.I.rb());return b?a.i?b.hasNext():b.Vj():!1};
VP=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.lN(a.I)&&(!a.i||c);var d=a.i&&g.pN(a.I),e=Xta(a),f=a.i&&5===a.I.getPresentingPlayerType(),h=bO(a.I,"Next","SHIFT+n"),l=bO(a.I,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.u)b.title="Replay";else if(c){var m=null;a.playlist&&(m=a.playlist.fb(a.i?isa(a.playlist):jsa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.I.T().getVideoUrl(m.videoId,n?n.toString():
void 0)}b.text=m.title;b.duration=m.lengthSeconds?g.tM(m.lengthSeconds):null;b.preview=m.Ke("mqdefault.jpg")}b.title=a.i?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.UP(a.I.T(),a.videoData.suggestions[0]),b.url=l.Im(),b.text=l.title,b.duration=l instanceof g.rH?g.tM(l.lengthSeconds):null,b.preview=l.Ke("mqdefault.jpg"),l.dispose()),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.G=!!b.url;d||c||a.u||e||f?a.l||(a.l=g.zO(a.tooltip,a.element),a.C=a.Ra("click",
a.onClick,a)):a.l&&(a.l(),a.l=null,a.fc(a.C),a.C=null);aP(a.tooltip)};
Yta=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
Zta=function(a){g.V.call(this,{D:"div",L:"ytp-heat-map-chapter",S:[{D:"svg",V:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{D:"defs",S:[{D:"clipPath",V:{id:"{{id}}"},S:[{D:"path",L:"ytp-heat-map-path",V:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{D:"rect",L:"ytp-heat-map-graph",V:{"clip-path":"",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",L:"ytp-heat-map-hover",V:{"clip-path":"",height:"100%",x:"0",y:"0"}},
{D:"rect",L:"ytp-heat-map-play",V:{"clip-path":"",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.B=this.Ba("ytp-heat-map-path");this.u=this.Ba("ytp-heat-map-graph");this.l=this.Ba("ytp-heat-map-play");this.i=this.Ba("ytp-heat-map-hover")};
bua=function(a,b,c){c=$ta(b,void 0===c?!0:c);if(0===b.length)c="";else{b="";for(var d=g.q(c.entries()),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;if(0===e)e="M "+f.x+","+f.y;else{var h=aua(c[e-1],c[e-2],f);e=aua(f,c[e-1],c[e+1],!0);e=" C "+(h.x+","+h.y+" "+e.x+","+e.y+" "+f.x+","+f.y)}b+=e}c=b}a.B.setAttribute("d",c);g.N(a.api.getRootNode(),"ytp-heat-map",a.api.Z("web_player_heat_map")&&""!==c)};
$ta=function(a,b){b=void 0===b?!0:b;var c,d=Math.max.apply(Math,g.ma(a.map(function(n){var p;return(null===(p=n.markerRenderer)||void 0===p?void 0:p.heatmapIntensityScoreNormalized)||1})));
b=b?1/d:1;d=1E3/a.length;var e=[];e.push({x:0,y:100});for(var f=g.q(a.entries()),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;var m=(null===(c=l.next().value.markerRenderer)||void 0===c?void 0:c.heatmapIntensityScoreNormalized)||0;l=(h+.5)*d;m=100-100*m*b;0===h&&e.push({x:0,y:m});e.push({x:l,y:m});h===a.length-1&&e.push({x:1E3,y:m})}e.push({x:1E3,y:100});return e};
aua=function(a,b,c,d){d=void 0===d?!1:d;b=new cua(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.i:b.i),y:a.y+.2*((void 0===d?0:d)?-1*b.l:b.l)}};
cua=function(a,b){this.l=this.i=0;this.i=b.x-a.x;this.l=b.y-a.y};
XP=function(){g.V.call(this,{D:"div",L:"ytp-chapter-hover-container",S:[{D:"div",L:"ytp-progress-bar-padding"},{D:"div",L:"ytp-progress-list",S:[{D:"div",Ca:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",L:"ytp-load-progress"},{D:"div",L:"ytp-hover-progress"},{D:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.u=this.Ba("ytp-ad-progress-list");this.B=this.Ba("ytp-load-progress");this.C=this.Ba("ytp-play-progress");this.l=this.Ba("ytp-hover-progress");
this.i=this.Ba("ytp-chapter-hover-container")};
YP=function(a,b){g.zl(a.i,"width",b)};
ZP=function(a,b){g.zl(a.i,"margin-right",b+"px")};
$P=function(a,b){return"PLAY_PROGRESS"===b?a.C:"LOAD_PROGRESS"===b?a.B:a.l};
dua=function(){this.u=this.position=this.B=this.i=this.C=this.l=this.width=NaN};
eua=function(){g.V.call(this,{D:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.aQ=function(a,b){g.xL.call(this,{D:"div",L:"ytp-progress-bar-container",V:{"aria-disabled":"true"},S:[{D:"div",Ca:["ytp-heat-map-container"]},{D:"div",Ca:["ytp-progress-bar"],V:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{D:"div",L:"ytp-chapters-container"},{D:"div",L:"ytp-marker-crenellation-list"},{D:"div",L:"ytp-timed-markers-container"},{D:"div",L:"ytp-clip-start-exclude"},
{D:"div",L:"ytp-clip-end-exclude"},{D:"div",L:"ytp-scrubber-container",S:[{D:"div",Ca:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{D:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{D:"div",L:"ytp-bound-time-left",oa:"{{boundTimeLeft}}"},{D:"div",L:"ytp-bound-time-right",oa:"{{boundTimeRight}}"},{D:"div",L:"ytp-clip-start",V:{title:"{{clipstarttitle}}"},oa:"{{clipstarticon}}"},{D:"div",L:"ytp-clip-end",V:{title:"{{clipendtitle}}"},oa:"{{clipendicon}}"}]});this.api=a;this.Kb=!1;this.C=this.xc=
0;this.Da=1;this.Ac=this.X=0;this.G=null;this.ma=this.qb=0;this.Ob=this.Ba("ytp-marker-crenellation-list");this.Aa={};this.eb={};this.clipEnd=Infinity;this.Va=this.Ba("ytp-clip-end");this.yb=new g.sx(this.Va,!0);this.Nb=this.Ba("ytp-clip-end-exclude");this.cd=this.Ba("ytp-clip-start-exclude");this.clipStart=0;this.Ya=this.Ba("ytp-clip-start");this.Bb=new g.sx(this.Ya,!0);this.U=this.La=0;this.Ec=this.Ba("ytp-progress-bar");this.jb={};this.wb=this.Ba("ytp-chapters-container");this.Tc=this.Ba("ytp-timed-markers-container");
this.i=[];this.va=[];this.bd={};this.Ga=-1;this.Pa=this.xa=0;this.K=null;this.Gc=this.Ba("ytp-scrubber-button");this.Id=this.Ba("ytp-scrubber-container");this.bb=new g.Qf;this.Vb=new dua;this.l=new xM(0,0);this.B=null;this.u=this.Jb=!1;this.wc=null;this.dd=this.Ba("ytp-heat-map-container");this.J=[];this.tooltip=b.ac();g.gf(this,g.zO(this.tooltip,this.Va));g.F(this,this.yb);this.yb.subscribe("hoverstart",this.KI,this);this.yb.subscribe("hoverend",this.JI,this);this.N(this.Va,"click",this.Sx);g.gf(this,
g.zO(this.tooltip,this.Ya));g.F(this,this.Bb);this.Bb.subscribe("hoverstart",this.KI,this);this.Bb.subscribe("hoverend",this.JI,this);this.N(this.Ya,"click",this.Sx);fua(this);gua(this);this.N(a,"resize",this.tb);this.N(a,"presentingplayerstatechange",this.TL);this.N(a,"videodatachange",this.Gq);this.N(a,"videoplayerreset",this.gP);this.N(a,"cuerangesadded",this.TK);this.N(a,"cuerangesremoved",this.VT);this.N(a,"cuerangemarkersupdated",this.TK);this.N(a,"onLoopRangeChange",this.SK);this.N(a,"innertubeCommand",
this.onClickCommand);this.N(a,g.Iz("timedMarkerCueRange"),this.yd);this.updateVideoData(a.getVideoData(),!0);this.SK(a.getLoopRange())};
fua=function(a){if(0===a.i.length){var b=new XP;a.i.push(b);g.F(a,b);b.ya(a.wb,0)}for(;1<a.i.length;)a.i.pop().dispose();YP(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
gua=function(a){if(a.api.Z("web_player_heat_map")){for(0===a.J.length&&hua(a);1<a.J.length;)a.J.pop().dispose();bua(a.J[0],[])}};
hua=function(a,b){b=void 0===b?NaN:b;var c=new Zta(a.api);a.J.push(c);g.F(a,c);c.ya(a.dd);a="hm_"+a.J.length;c.update({id:a});a="url(#"+a+")";c.u.setAttribute("clip-path",a);c.l.setAttribute("clip-path",a);c.i.setAttribute("clip-path",a);0<=b&&(c.element.style.width=b+"px")};
iua=function(a){for(;a.va.length;)a.va.pop().dispose()};
lua=function(a,b){var c,d,e=null===(c=a.jb[b])||void 0===c?void 0:c.chapters;e&&(jua(a,e),a.api.getVideoData().Jk=a.i);if((e=null===(d=a.jb[b])||void 0===d?void 0:d.markers)&&"HEATSEEKER"!==b){var f;iua(a);b=g.q(e);for(e=b.next();!e.done;e=b.next()){var h=e.value;e=new eua;if(h=h.markerRenderer)e.title=(null===(f=h.title)||void 0===f?void 0:f.simpleText)||"",e.timeRangeStartMillis=h.timeRangeStartMillis||NaN,e.thumbnailUrl=h.thumbnailUrl||"",e.onActiveCommand=(null===h||void 0===h?void 0:h.onActiveCommand)||
void 0,a.va.push(e),g.F(a,e),e.ya(a.Tc,a.Tc.children.length)}kua(a,a.va);f=a.va;b=a.bd;e=[];for(h=0;h<f.length;h++)if(!isNaN(f[h].timeRangeStartMillis)&&f[h].onActiveCommand){var l=f[h].timeRangeStartMillis;l=new g.Fz(l,h===f.length-1?Infinity:f[h+1].timeRangeStartMillis,{namespace:"timedMarkerCueRange",priority:7,id:"tm_"+l});e.push(l);b[l.id]=f[h].onActiveCommand}a.api.Dd(e)}};
kua=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=mua(a,c.timeRangeStartMillis/(1E3*a.l.i),bQ(a));g.zl(c.element,"transform","translateX("+d+"px)")}};
jua=function(a,b){var c=0;b=g.q(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(d.chapterRenderer){d=d.chapterRenderer;var e={startTime:NaN,title:null,onActiveCommand:void 0};e.title=Yta(d.title);var f=d.timeRangeStartMillis;null!=f&&(e.startTime=f);e.onActiveCommand=d.onActiveCommand;d=e;0===c&&0!==d.startTime&&(a.i[c].startTime=0,a.i[c].title="",a.i[c].onActiveCommand=d.onActiveCommand,c++);a.i.length<=c&&(e=new XP,a.i.push(e),g.F(a,e),e.ya(a.wb,a.wb.children.length));a.i[c].startTime=d.startTime;
a.i[c].title=d.title?d.title:"";a.i[c].onActiveCommand=d.onActiveCommand}c++}for(;c<a.i.length;)a.i.pop().dispose();g.cQ(a);dQ(a)};
g.cQ=function(a){a.xa=a.i.length-1;a.Pa=0;nua(a,!0)&&nua(a,!1);for(var b=0,c=0;c<a.i.length;c++)if(0===a.i[c].width){if(c===a.i.length-1)for(var d=a.i.length-1;0<=d;d--)if(0<a.i[d].width){ZP(a.i[d],0);YP(a.i[d],Math.floor(a.i[d].width)+"px");break}YP(a.i[c],"0")}else c===a.i.length-1?YP(a.i[c],Math.floor(a.i[c].width+b)+"px"):(b=a.i[c].width+b,d=Math.round(b),b-=d,YP(a.i[c],d+"px"));oua(a)};
oua=function(a){var b,c,d=null===(b=a.api.getVideoData())||void 0===b?void 0:b.qf;if(d=d?null===(c=a.jb[d])||void 0===c?void 0:c.markers:void 0)for(var e=0,f=a.i.length,h={},l=0;l<f;h={Uy:h.Uy,My:h.My},l++){var m=a.i[l].width;h.Uy=a.i[l].startTime;h.My=l===f-1?Infinity:a.i[l+1].startTime;l<a.J.length?a.J[l].element.style.width=m+"px":l===a.J.length&&hua(a,m);a.J[l].element.style.left=e+"px";var n=d.filter(function(p){return function(r){var t;r=(null===(t=null===r||void 0===r?void 0:r.markerRenderer)||
void 0===t?void 0:t.timeRangeStartMillis)||-1;return r>=p.Uy&&r<=p.My}}(h));
bua(a.J[l],n,1===a.J.length);e+=m+(a.u?3:2)}};
nua=function(a,b){var c=0,d=!1,e=a.i.length,f=1E3*a.l.i;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.u?3:2)*a.xa,l=0===a.Pa?3:h*a.Pa,m=g.q(a.i),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.i[c].startTime;c<e-1&&(m=a.i[c+1].startTime-a.i[c].startTime,ZP(a.i[c],a.u?3:2));g.N(a.i[c].i,"ytp-exp-chapter-hover-container",1<a.i.length);n=(0===f?0:m/f*h)+a.i[c].width;if(n>l)a.i[c].width=n;else{a.i[c].width=0;var p=a,r=c,t=p.i[r-1];void 0!==t&&0<t.width?
t.width+=n:r<p.i.length-1&&(p.i[r+1].width+=n);ZP(p.i[r],0);b&&(a.xa--,m/f>a.Pa&&(a.Pa=m/f),d=!0)}c++}}return d};
dQ=function(a){if(a.C){var b=a.api.getProgressState();var c=b.seekableStart;var d=b.seekableEnd,e=!!a.B&&a.B.postId&&2!==a.api.getPresentingPlayerType(),f=g.S(a.api.T().experiments,"enable_fully_expanded_clip_range_in_progress_bar"),h=g.S(a.api.T().experiments,"enable_expanded_clip_range_in_progress_bar");e&&f?c=new xM(Math.max(c,a.B.startTimeMs/1E3),Math.min(d,a.B.endTimeMs/1E3)):e&&h?(e=a.B.startTimeMs/1E3,f=a.B.endTimeMs/1E3,h=(f-e)/20,c=new xM(Math.max(c,e-h),Math.min(d,f+h))):c=new xM(c,d);d=
AM(c,b.loaded,0);b=AM(c,b.current,0);e=a.l.l!==c.l||a.l.i!==c.i;a.l=c;eQ(a,b,d);e&&fQ(a);pua(a)}};
hQ=function(a,b){var c=zM(a.l,b.u);if(1<a.i.length){c=gQ(a,b.B,!0);for(var d=0,e=0;e<c;e++)0<a.i[e].width&&(d+=a.i[e].width,d+=a.u?3:2);c=(a.i[c].startTime+(b.B-d)/a.i[c].width*((c===a.i.length-1?1E3*a.l.i:a.i[c+1].startTime)-a.i[c].startTime))/1E3||0}return c};
qua=function(a,b,c){return c>=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.l.i*(a.C-(a.u?3:2)*a.xa)};
rua=function(a,b,c,d){b=g.Mf(b,0,a.u?60:40);a.X=b;var e=a.Da;a.Da=b/(a.u?60:40)*(Math.max(yM(a.l)/a.C,1)-1)+1;b=a.C*a.Da;a.ma=g.Mf(d*b-c,0,b-a.C);e!==a.Da&&fQ(a)};
fQ=function(a){var b=bQ(a),c=-b.l/b.i,d=(-b.l+b.width)/b.i,e=cba(a.Ob),f=0;if(a.X>.2*(a.u?60:40)&&1===a.i.length)for(var h=yM(a.l)/60*d,l=Math.ceil(yM(a.l)/60*c);l<h;l++){var m=e[f];m||(m=g.ng("DIV"),a.Ob.appendChild(m));f++;0===l%60?g.Lq(m,"ytp-60m-progress"):0===l%30?g.Lq(m,"ytp-30m-progress"):0===l%15?g.Lq(m,"ytp-15m-progress"):g.Lq(m,"ytp-1m-progress");m.style.left=(60*l/yM(a.l)-c)*b.i+"px"}b=a.Jb?a.l.i:0;a.update({boundTimeLeft:g.tM(zM(a.l,c)-b),boundTimeRight:g.tM(zM(a.l,d)-b)});for(c=e.length-
1;c>=f;c--)g.rg(e[c]);a.element.style.height=a.X+(a.u?8:5)+"px";a.W("height-change",a.X);a.Gc.style.height=a.X+(a.u?20:13)+"px";e=g.q(Object.keys(a.Aa));for(f=e.next();!f.done;f=e.next())sua(a,f.value);iQ(a);eQ(a,a.U,a.La)};
bQ=function(a){var b=a.bb.x,c=a.C*a.Da;b=g.Mf(b,0,a.C);a.Vb.update(b,a.C,-a.ma,-(c-a.ma-a.C));return a.Vb};
eQ=function(a,b,c){var d,e;a.U=b;a.La=c;var f=bQ(a),h=a.l.i,l=zM(a.l,a.U),m=g.eJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.tM(l,!0),DURATION:g.tM(h,!0)}),n=fP(a.i,1E3*l);n=a.i[n].title;a.update({ariamin:Math.floor(a.l.l),ariamax:Math.floor(h),arianow:Math.floor(l),arianowtext:n?n+" "+m:m});h=a.clipStart;l=a.clipEnd;a.B&&2!==a.api.getPresentingPlayerType()&&(h=a.B.startTimeMs/1E3,l=a.B.endTimeMs/1E3);h=AM(a.l,h,0);m=AM(a.l,l,1);n=!(null===(d=a.api.getVideoData())||void 0===d||!g.bI(d));l=g.Mf(b,
h,m);c=n?1:g.Mf(c,h,m);b=mua(a,b,f);g.zl(a.Id,"transform","translateX("+b+"px)");jQ(a,f,h,l,"PLAY_PROGRESS");jQ(a,f,h,c,"LOAD_PROGRESS");a.api.Z("web_player_heat_map")&&(null===(e=a.J[0])||void 0===e?void 0:e.l.setAttribute("width",(100*l).toFixed(2)+"%"))};
jQ=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.xa*(a.u?3:2),l=c*h;c=gQ(a,l);var m=d*h;h=gQ(a,m);"HOVER_PROGRESS"===e&&(h=gQ(a,b.i*d,!0),m=b.i*d-tua(a,b.i*d)*(a.u?3:2));b=Math.max(l-uua(a,c),0);for(d=c;d<f;d++)$P(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.i[f].width,kQ(a,$P(a.i[f],e),f===c?d-b:d,d);f=a.i[h].width;m=g.Mf(m-uua(a,h),0,f);c===h&&(m-=b);kQ(a,$P(a.i[h],e),m,f);m=a.i.length;for(h+=1;h<m;h++)kQ(a,$P(a.i[h],e),0,a.i[h].width);for(h=0;h<c;h++)kQ(a,$P(a.i[h],e),0,a.i[h].width)};
uua=function(a,b){if(b>=a.i.length)return a.C;for(var c=0,d=0;d<b;)c+=a.i[d].width,d++;return c};
kQ=function(a,b,c,d,e){e||a.api.T().i?b.style.width=c+"px":g.zl(b,"transform","scalex("+(d?c/d:0)+")")};
gQ=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=tua(a,b)*(a.u?3:2));c=g.q(a.i);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.i.length?d-1:d};
mua=function(a,b,c){for(var d=b*a.l.i*1E3,e=-1,f=g.q(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.i-(a.u?3:2)*a.xa)+(a.u?3:2)*(0>e?0:e)+c.l};
tua=function(a,b){for(var c=a.i.length,d=0,e=g.q(a.i),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.u?3:2,d++;else break;return d===c?c-1:d};
g.lQ=function(a,b,c,d){var e=a.C!==c;a.xc=b;a.C=c;a.u=d;fQ(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.cQ(a)};
iQ=function(a){var b=!!a.B&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.B?(c=a.B.startTimeMs/1E3,d=a.B.endTimeMs/1E3):(e=c>a.l.l,f=0<a.l.i&&d<a.l.i);g.N(a.element,"ytp-loop-range-enabled",b);g.N(a.element,"ytp-clip-start-enabled",e);g.N(a.element,"ytp-clip-end-enabled",f);b=e?AM(a.l,c,0):0;d=f?AM(a.l,d,1):1;a.Ya.style.left=Math.round(1E3*b)/10+"%";a.Va.style.left=Math.round(1E3*d)/10+"%";a.cd.style.width=Math.round(1E3*b)/10+"%";a.Nb.style.left=Math.round(1E3*d)/10+
"%";a.Nb.style.width=Math.round(1E3*(1-d))/10+"%"};
pua=function(a){var b,c=bQ(a);jQ(a,c,a.U,Math.max(c.u,a.U),"HOVER_PROGRESS");for(var d=gQ(a,c.i*a.U,!0),e=gQ(a,c.B,!0),f=d;f<=e;f++)g.N(a.i[f].l,"ytp-hover-progress-light",c.u>a.U);g.N(a.Gc,"ytp-scrubber-button-hover",d===e&&1<a.i.length);a.api.Z("web_player_heat_map")&&(null===(b=a.J[0])||void 0===b?void 0:b.i.setAttribute("width",(100*c.u).toFixed(2)+"%"))};
sua=function(a,b){var c=a.Aa[b];b=a.eb[b];var d=bQ(a),e=AM(a.l,c.start/1E3,0),f=Xia(c,a.u)/d.width;var h=AM(a.l,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Mf(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.i+d.l,0)+"px";kQ(a,b,g.Mf((h-c)*d.i+d.l,0,d.width),d.width,void 0===e?!1:e)};
vua=function(a,b){var c=b.getId();a.Aa[c]===b&&(g.rg(a.eb[c]),delete a.Aa[c],delete a.eb[c])};
wua=function(a,b){b?a.K||(a.element.removeAttribute("aria-disabled"),a.K=new g.sx(a.Ec,!0),a.K.subscribe("hovermove",a.pS,a),a.K.subscribe("hoverend",a.oS,a),a.K.subscribe("dragstart",a.nS,a),a.K.subscribe("dragmove",a.rS,a),a.K.subscribe("dragend",a.qS,a),a.wc=a.Ra("keydown",a.UL)):a.K&&(a.element.setAttribute("aria-disabled","true"),a.fc(a.wc),a.K.cancel(),a.K.dispose(),a.K=null)};
g.xua=function(a){var b=2*a.C*g.AG();return 1E3*yM(a.l)/a.api.getPlaybackRate()/b};
mQ=function(a,b,c){g.V.call(this,{D:"button",L:"ytp-button",V:{title:"Play on TV","aria-haspopup":"true"},oa:"{{icon}}"});this.I=a;this.xb=c;this.i=null;this.N(a,"onMdxReceiversChange",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.N(a,"appresize",this.Ma);this.Ma();this.Ra("click",this.l,this);g.gf(this,g.zO(b.ac(),this.element))};
nQ=function(a,b,c){g.V.call(this,{D:"button",Ca:["ytp-button","ytp-settings-button"],V:{"aria-haspopup":"true","aria-owns":sL(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.JL()]});this.I=a;this.xb=c;this.l=!0;this.Ra("click",this.u);this.N(a,"onPlaybackQualityChange",this.updateBadge);this.N(a,"videodatachange",this.updateBadge);this.N(a,"webglsettingschanged",this.updateBadge);this.N(a,"appresize",this.i);g.gf(this,g.zO(b.ac(),this.element));this.I.Xb(this.element,this,
28663);this.updateBadge();this.i(a.Za().getPlayerSize())};
oQ=function(a,b){a.l=!!b;a.i(a.I.Za().getPlayerSize())};
pQ=function(a,b){RO.call(this,"Annotations",6);this.I=a;this.xb=b;this.i=!1;this.N(a,"videodatachange",this.Ma);this.N(a,"onApiChange",this.Ma);this.subscribe("select",this.l,this);this.Ma()};
g.qQ=function(a,b,c,d,e,f,h){g.JO.call(this,g.KO({"aria-haspopup":"true"}),b,a);this.xb=d;this.B=!1;this.l=null;this.options={};this.u=new g.NO(c,void 0,a,e,f,h);g.F(this,this.u);this.Ra("keydown",this.VL);this.Ra("click",this.open)};
yua=function(a){if(a.l){var b=a.options[a.l];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.l=null}};
g.rQ=function(a,b){g.OO(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.l;l&&(d=!0);h&&h.priority===-e?(l=a,g.IO(l.options[f],l.Li(f,!0)),delete a.options[f]):h=a.nA(f,-e,l);c[f]=h;a.u.yc(h,!0)}d||(a.l=null);b=g.q(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
sQ=function(a,b){g.qQ.call(this,"Audio track",3,a,b);this.I=a;this.tracks={};this.i=new g.V({D:"div",S:[{D:"span",oa:"Audio track"},{D:"span",L:"ytp-menuitem-label-count",oa:"{{content}}"}]});g.F(this,this.i);g.IO(this,this.i);this.N(a,"videodatachange",this.Ma);this.N(a,"onPlaybackAudioChange",this.Ma);this.Ma()};
tQ=function(a,b){RO.call(this,"Autoplay",7);this.I=a;this.xb=b;this.i=!1;this.u=[];this.N(a,"presentingplayerstatechange",this.l);this.subscribe("select",this.C,this);a.Xb(this.element,this,113682);this.l()};
uQ=function(a,b,c,d){d=new g.V({D:"div",Ca:["ytp-linked-account-popup-button"],oa:d,V:{role:"button",tabindex:"0"}});b=new g.V({D:"div",L:"ytp-linked-account-popup",V:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{D:"div",L:"ytp-linked-account-popup-title",oa:b},{D:"div",L:"ytp-linked-account-popup-description",oa:c},{D:"div",L:"ytp-linked-account-popup-buttons",S:[d]}]});g.kO.call(this,a,{D:"div",L:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.F(this,this.dialog);
d.Ra("click",function(){e.Ab()});
g.F(this,d);g.oN(this.I,this.element,4);this.hide()};
vQ=function(a,b){g.JO.call(this,g.KO({"aria-haspopup":"true"}),1);this.I=a;this.xb=b;this.l=this.i=!1;this.N(this.I,"videodatachange",this.B);this.Ra("click",this.onClick);this.B()};
wQ=function(a){return a?g.Pz(a):""};
xQ=function(a,b){g.qQ.call(this,"Quality",2,a,b);this.I=a;this.C={};this.i="unknown";g.K(this.u.element,"ytp-quality-menu");this.N(a,"videodatachange",this.Wr);this.N(a,"videoplayerreset",this.Wr);this.N(a,"onPlaybackQualityChange",this.FE);this.Wr()};
zua=function(a,b,c){a=a.C[b];var d=g.SA[b];c={D:"span",Ca:c,S:[a?a.qualityLabel:d?d+"p":"Auto"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.S.push(" "),c.S.push({D:"sup",L:"ytp-swatch-color",oa:e}));return c};
yQ=function(a,b,c,d,e,f,h){g.V.call(this,{D:"div",L:"ytp-slider-section",V:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{D:"div",L:"ytp-slider",S:[{D:"div",L:"ytp-slider-handle"}]}]});this.G=a;this.C=b;this.minimumValue=c;this.maximumValue=d;this.J=e;this.X=f;this.range=this.maximumValue-this.minimumValue;this.ma=this.Ba("ytp-slider-section");this.l=this.Ba("ytp-slider");this.K=this.Ba("ytp-slider-handle");
this.B=new g.sx(this.l,!0);this.i=h?h:c;g.F(this,this.B);this.B.subscribe("dragmove",this.XL,this);this.N(this.element,"keydown",this.YL);this.N(this.element,"wheel",this.WL);this.init()};
AQ=function(a){yQ.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.I=a;this.u=g.ng("P");this.va=jaa(this.U,this);g.K(this.l,"ytp-speedslider");g.K(this.u,"ytp-speedslider-text");a=this.u;var b=this.l;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);zQ(this);this.N(this.I,"onPlaybackRateChange",this.xa)};
zQ=function(a){a.u.textContent=BQ(a,a.i)+"x"};
BQ=function(a,b){a=Number(g.Mf(b,a.minimumValue,a.maximumValue).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
CQ=function(a){g.xL.call(this,{D:"div",L:"ytp-speedslider-component"});this.i=new AQ(a);g.F(this,this.i);this.element.appendChild(this.i.element)};
Aua=function(a){var b=new CQ(a);MO.call(this,a,b,"Custom");g.F(this,b)};
DQ=function(a,b){var c=new Aua(a);g.qQ.call(this,"Playback speed",5,a,b,"Custom",function(){g.TO(b,c)});
g.F(this,c);this.I=a;this.C=this.i=this.J=null;this.G=this.I.getAvailablePlaybackRates();this.N(a,"presentingplayerstatechange",this.Ma);this.Ma()};
Bua=function(a,b){var c=EQ(b);a.options[c]?a.Hh(c):b===a.C&&a.i&&(a.Hh(a.i),a.Vc(b.toString()))};
Dua=function(a){g.rQ(a,a.G.map(EQ));a.i=null;a.C=null;var b=a.I.getPlaybackRate();a.G.includes(b)||(Cua(a,b),g.qQ.prototype.kf.call(a,a.i))};
Cua=function(a,b){a.C=b;a.i=g.eJ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(EQ);b.unshift(a.i);g.rQ(a,b)};
EQ=function(a){return a.toString()};
FQ=function(a,b,c,d){var e=new g.NO(b,void 0,"Video Override");g.qQ.call(this,d.text||"",a,b,c,"Video Override",function(){g.TO(c,e)});
var f=this;g.K(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Db(a,this.getKey,this);this.G=e;g.F(this,this.G);b=new g.JO({D:"div",L:"ytp-menuitemtitle",oa:"Allow for a different caption style if specified by the video."},0);g.F(this,b);this.G.yc(b,!0);this.C=new g.JO({D:"div",L:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},S:[{D:"div",L:"ytp-menuitem-label",oa:"On"}]},-1);g.F(this,this.C);this.G.yc(this.C,!0);this.N(this.C.element,
"click",function(){Eua(f,!0)});
this.i=new g.JO({D:"div",L:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},S:[{D:"div",L:"ytp-menuitem-label",oa:"Off"}]},-2);g.F(this,this.i);this.G.yc(this.i,!0);this.N(this.i.element,"click",function(){Eua(f,!1)});
g.rQ(this,g.Oe(a,this.getKey))};
Eua=function(a,b){a.W("settingChange",a.setting+"Override",!b);a.xb.Wg()};
GQ=function(a,b){g.NO.call(this,a,void 0,"Options");var c=this;this.Vm={};for(var d=0;d<g.hP.length;d++){var e=g.hP[d],f=new FQ(-d,a,b,e);g.F(this,f);f.subscribe("settingChange",this.Ug,this);this.Vm[e.option.toString()]=f;this.yc(f,!0)}a=new g.JO(g.KO(),-g.hP.length,"Reset");g.F(this,a);a.Ra("click",function(){c.Ug("reset",!0)});
this.yc(a,!0)};
HQ=function(a,b){g.qQ.call(this,"Auto-translate",0,a,b);this.I=a;this.languages={};a.Xb(this.element,this,127301);a.ib(this.element,!0)};
Fua=function(a,b){a.languages=g.Db(b,a.getKey,a);g.rQ(a,g.Oe(b,a.getKey))};
IQ=function(a,b){var c=new GQ(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.GG(a.T())&&(e={D:"div",L:"ytp-panel-footer-content",S:[{D:"span",oa:d[0]},{D:"a",L:"ytp-panel-footer-content-link",oa:"Settings",V:{href:"/account_playback"}},{D:"span",oa:d[1]}]});g.qQ.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.TO(b,c)},e);
var f=this;this.I=a;this.xb=b;this.tracks={};this.G=new g.J(function(){Gua(f,!1)},3E3);
g.F(this,this.G);this.J=new g.V({D:"div",S:[{D:"span",oa:"Subtitles/CC"},{D:"span",L:"ytp-menuitem-label-count",oa:"{{content}}"}]});g.F(this,this.J);g.IO(this,this.J);this.i=new HQ(a,b);g.F(this,this.i);this.i.subscribe("select",this.aM,this);this.C=c;g.F(this,this.C);this.C.subscribe("settingChange",this.Ug,this);b.subscribe("show",this.WS,this);this.N(a,"videodatachange",this.Ma);this.N(a,"onApiChange",this.Ma);this.N(a,"onCaptionsTrackListChanged",this.Ma);this.N(a,"captionschanged",this.Ma);
a.Xb(this.element,this,127300);this.Ma()};
Gua=function(a,b){a.I.setOption("captions","sampleSubtitles",b)};
JQ=function(a){g.VO.call(this,a,"ytp-settings-menu");var b=this;this.Kd=new g.NO(this.I);this.TB=this.settingsButton=null;this.Ud=!1;g.F(this,this.Kd);this.hide();g.TO(this,this.Kd);a.Xb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Fe(c)})};
Hua=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
KQ=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-size-button","ytp-button"],V:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.isWidescreen=null;this.transition=new LP;this.tooltip=b.ac();g.F(this,this.transition);this.N(a,"sizestylechange",this.Ma);this.N(a,"fullscreentoggled",this.Ma);this.N(a,"presentingplayerstatechange",this.Ma);this.Ma();this.Ra("click",this.onClick);g.gf(this,g.zO(this.tooltip,this.element))};
g.LQ=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-subtitles-button","ytp-button"],V:{"aria-pressed":"{{pressed}}",title:bO(a,"Subtitles/closed captions","c")},S:[Lqa()]});this.I=a;this.N(a,"videodatachange",this.Ma);this.N(a,"appresize",this.Ma);this.N(a,"promotooltipacceptbuttonclicked",this.i);this.N(a,"onApiChange",this.Ma);this.N(a,"onCaptionsTrackListChanged",this.Ma);this.N(a,"captionschanged",this.Ma);this.I.Xb(this.element,this,127299);this.Ma();this.Ra("click",this.onClick);g.gf(this,
g.zO(b.ac(),this.element))};
g.MQ=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{D:"div",Ca:["ytp-time-display","notranslate"],S:[{D:"span",L:"ytp-time-current",oa:"{{currenttime}}"},{D:"span",L:"ytp-time-separator",oa:" / "},{D:"span",L:"ytp-time-duration",oa:"{{duration}}"}]});this.api=a;this.J=c;this.liveBadge=new g.V({D:"button",Ca:["ytp-live-badge","ytp-button"],V:{disabled:"true"},oa:"{{content}}"});this.i=null;this.l=!1;this.G=this.C=null;this.isPremiere=!1;this.B=this.u=null;this.liveBadge.Vc("Live");g.F(this,this.liveBadge);
this.liveBadge.ya(this.element);this.tooltip=b.ac();this.Ra("click",this.onClick);this.N(a,"presentingplayerstatechange",this.Rb);this.N(a,"appresize",this.Rb);this.N(a,"videodatachange",this.kb);(a=a.getVideoData())&&this.updateVideoData(a);this.Rb()};
PQ=function(a,b,c){g.V.call(this,{D:"div",L:"ytp-volume-panel",V:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{D:"div",L:"ytp-volume-slider",S:[{D:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.i=b;this.G=c;this.Th=!1;this.K=this.volume=0;this.C=null;this.hasFocus=this.l=this.isDragging=!1;this.i=b;this.G=c;this.u=b.Ae();this.J=this.Ba("ytp-volume-slider");this.U=this.Ba("ytp-volume-slider-handle");
this.B=new g.sx(this.J,!0);g.F(this,this.B);this.B.subscribe("dragstart",this.aT,this);this.B.subscribe("dragmove",this.cM,this);this.B.subscribe("dragend",this.ZS,this);this.N(a,"onVolumeChange",this.Df);this.N(a,"appresize",this.GE);this.N(a,"fullscreentoggled",this.Fl);this.N(a,"onShowControls",this.sG);this.N(a,"onHideControls",this.sG);this.N(this.element,"keydown",this.dM);this.N(this.element,"focus",function(){NQ(d,d.l,d.isDragging,!0,d.i.Th())});
this.N(this.element,"blur",function(){NQ(d,d.l,d.isDragging,!1,d.i.Th())});
this.GE(a.Za().getPlayerSize());OQ(this,a.getVolume(),a.isMuted())};
OQ=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Sa("valuenow",d);a.Sa("valuetext",e);a.U.style.left=(a.u?60:40)*c+"px";a.volume=b};
Iua=function(a,b){g.N(a.element,"ytp-volume-control-hover",b);NQ(a,b,a.isDragging,a.hasFocus,a.i.Th())};
NQ=function(a,b,c,d,e){var f=a.l||a.isDragging||a.hasFocus||a.Th;a.l=b;a.isDragging=c;a.hasFocus=d;a.Th=e;b=a.l||a.isDragging||a.hasFocus||a.Th;f!==b&&(b?a.C=a.N(a.element,"wheel",a.bM):(a.fc(a.C),a.C=null),g.N(a.G,"ytp-volume-slider-active",b))};
g.QQ=function(a,b){var c=a.T(),d=g.xG(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.XF(c)&&e.push("ytp-youtube-music-button");g.V.call(this,{D:"a",Ca:e,V:{href:"{{url}}",target:c.G,title:g.eJ("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},oa:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Xb(this.element,this,28666);this.Ra("click",this.onClick);this.N(a,"videodatachange",this.kb);this.N(a,"onLoopRangeChange",
this.kb);this.N(a,"appresize",this.tb);this.kb();g.gf(this,g.zO(b.ac(),this.element));this.tb()};
SQ=function(a,b,c){g.qN.call(this);var d=this;this.I=a;this.u=b;this.fd=c;this.Ea=NaN;this.Da=this.Aa=null;this.i=new JQ(this.I);this.Ec=new g.aQ(this.I,this.u);this.muteButton=null;this.Bg=new g.MQ(this.I,this.u);this.C=this.B=this.K=this.va=null;this.U=new TP(this.I,this.u);this.xa=new g.KP(this.I,this.u);this.td=new g.Aq(this.ep,null,this);this.J=null;c=a.T();this.fd.subscribe("autohideupdate",this.bj,this);var e=!a.sb().isCued(),f=this.I.T().Z("html5_player_bottom_linear_gradient");f||!g.XF(c)&&
!g.S(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.V({D:"div",L:"ytp-gradient-bottom-container",S:[{D:"div",L:"ytp-gradient-bottom-extension"},{D:"div",L:"ytp-gradient-bottom"}]}):new g.V({D:"div",L:"ytp-gradient-bottom"}):this.Da=f=new g.EP(a);g.F(this,f);g.oN(a,f.element,8);this.X=new g.fM(f,250,e,100);g.F(this,this.X);this.l=new g.V({D:"div",L:"ytp-chrome-bottom",S:[{D:"div",L:"ytp-chrome-controls"}]});g.F(this,this.l);g.oN(a,this.l.element,8);this.Y=new g.fM(this.l,250,e,
100);g.F(this,this.Y);this.ma=this.l.element.children[0];g.gf(this.i,function(){a.Gm()===d.i&&(a.mz=null)});
g.F(this,this.i);a.mz=this.i;g.oN(a,this.i.element,6);this.i.subscribe("show",function(m){var n=d.u.ac(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:RQ(n);n.B.show();break;default:n.B.show()}else n.B.hide();n.G=p;b.ey(d.i,m)});
g.F(this,this.Ec);this.Ec.ya(this.l.element,0);e=new g.GP(a);g.F(this,e);g.oN(a,e.element,4);f=new g.tL({D:"div",L:"ytp-left-controls"});g.F(this,f);f.ya(this.ma);e=new g.WP(a,b,!1);g.F(this,e);e.ya(f.element);c.ma||(e=new g.NP(a,b),g.F(this,e),e.ya(f.element),HG(c)&&(e=new OP(a,b),g.F(this,e),g.oN(a,e.element,4)));e=new g.WP(a,b,!0);g.F(this,e);e.ya(f.element);e=new g.V({D:"span",L:"ytp-volume-area"});g.F(this,e);e.ya(f.element);if(!c.eb&&(this.muteButton=new g.SP(a,b),g.F(this,this.muteButton),
this.muteButton.ya(e.element),c.X)){var h=new PQ(a,b,this.l.element);g.F(this,h);h.ya(e.element);e=new g.sx(e.element);g.F(this,e);e.subscribe("hoverstart",function(){Iua(h,!0)});
e=new g.sx(f.element);g.F(this,e);e.subscribe("hoverend",function(){Iua(h,!1)})}g.F(this,this.Bg);
this.Bg.ya(f.element);e=new g.tL({D:"div",L:"ytp-right-controls"});g.F(this,e);this.va=new FP(a,this.Ec);g.F(this,this.va);this.va.ya(f.element);e.ya(this.ma);a.T().Bb&&g.S(c.experiments,"web_player_move_autonav_toggle")&&(f=new CP(a,b),g.F(this,f),f.ya(e.element));g.S(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&zG(c)&&(this.K=new JP(a,b),g.F(this,this.K),this.K.ya(e.element));f=new g.LQ(a,b);g.F(this,f);f.ya(e.element);f=new nQ(a,b,this.i);g.F(this,f);Hua(this.i,f);f.ya(e.element);
var l=new RP(a);g.F(this,l);g.oN(a,l.element,5);l.subscribe("show",function(m){b.qm(l,m)});
f=new QP(a,b,l);g.F(this,f);f.ya(e.element);f=a.getVideoData();if(c.xj||f.C&&"1"===c.controlsType)this.B=new g.QQ(a,b),g.F(this,this.B),this.B.ya(e.element);c.showMiniplayerButton&&!g.S(a.T().experiments,"web_player_pip")&&(this.C=new PP(a,b),g.F(this,this.C),this.C.ya(e.element));g.F(this,this.U);this.U.ya(e.element);f.Yy||this.U.hide();c.nf||(f=new KQ(a,b),g.F(this,f),f.ya(e.element));c.lf&&(f=new mQ(a,b,this.i),g.F(this,f),f.ya(e.element));c.uj&&(c=new BP(a,b),g.F(this,c),c.ya(e.element));g.F(this,
this.xa);this.xa.ya(e.element);g.F(this,this.td);this.N(a,"appresize",this.tb);this.N(a,"fullscreentoggled",this.tb);this.N(a,"presentingplayerstatechange",this.qz);this.N(a,"videodatachange",this.kb);this.tb()};
Jua=function(a,b){a.I.sb().isCued()||b?b&&(a.Y.hide(),a.X.hide(),a.muteButton&&a.muteButton.Ub(!1),a.B&&a.B.Ub(!1),a.C&&a.C.Ub(!1),a.u.ac().Ni(a.l.element)):b||(a.Y.show(),a.X.show(),a.muteButton&&a.muteButton.Ub(!0),a.B&&a.B.Ub(!0),a.C&&a.C.Ub(!0),a.bj())};
Kua=function(a){var b=a.I.Za().getPlayerSize().width;return Math.max(b-2*TQ(a),100)};
TQ=function(a){var b=a.u.Ae();return 12*(a.I.getVideoData().C?0:b?2:1)};
UQ=function(a){var b=a.u.Ae()?72:50;a=a.I.T();g.BG(a)&&(b=54,g.S(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
VQ=function(a,b){xP.call(this,a,b,!1);var c=this;this.N(this.I,"videodatachange",this.kb);this.N(this.I,g.Iz("suggested_action_button_visible"),function(){c.Fe(!0)});
this.N(this.I,g.Jz("suggested_action_button_visible"),function(){c.Fe(!1)})};
WQ=function(a){a.I.df("suggested_action_button_visible")};
YQ=function(a){g.V.call(this,{D:"div",L:XQ.TITLE,S:[{D:"div",L:XQ.TEXT,S:[{D:"a",Ca:[XQ.LINK,XQ.SESSIONLINK],V:{target:a.T().G,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},oa:"{{title}}"},{D:"div",L:XQ.SUBTEXT,S:[{D:"a",L:XQ.CHANNEL_NAME,V:{href:"{{channelLink}}",target:"_blank"},oa:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.Ba(XQ.LINK);a.Xb(this.element,this,23851);this.N(a,"videodatachange",this.Ma);this.N(a,"videoplayerreset",
this.Ma);this.Ma()};
Lua=function(a){a.Sa("channelLink","");a.Sa("channelName","");a.Sa("channelTitleFocusable","-1")};
g.ZQ=function(a,b){g.V.call(this,{D:"div",S:[{D:"div",L:"ytp-tooltip-text-wrapper",S:[{D:"div",L:"ytp-tooltip-image"},{D:"div",L:"ytp-tooltip-title",oa:"{{title}}"},{D:"span",L:"ytp-tooltip-text",oa:"{{text}}"}]},{D:"div",L:"ytp-tooltip-bg",S:[{D:"div",L:"ytp-tooltip-duration",oa:"{{duration}}"}]}]});var c=this;this.api=a;this.xa=b;this.env=this.api.T();this.va=this.env.i;this.bg=this.Ba("ytp-tooltip-bg");this.image=this.Ba("ytp-tooltip-image");this.text=this.Ba("ytp-tooltip-text");this.title=this.Ba("ytp-tooltip-title");
this.K=function(d){(d=St(d))&&g.tg(c.activeElement,d)||c.Cj()};
this.u=function(d){3===c.type&&c.Cj();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.u),d.addEventListener("mouseout",c.K),d.removeEventListener("focus",c.u),d.addEventListener("blur",c.K),Mua(c,d,2))};
this.U=function(){c.Cj()};
this.activeElement=null;this.B=new g.fM(this,100);this.type=null;this.J=!1;this.i=null;this.l=NaN;this.C="";this.rz=this.api.Za().getPlayerSize().width;this.G=!0;this.scale=1;this.X=new g.J(this.RP,250,this);this.ma=new g.J(this.Cj,5E3,this);g.F(this,this.B);g.F(this,this.X);g.F(this,this.ma);JF&&(a=this.Ba("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
FO=function(a){a.element.setAttribute("aria-live","polite")};
Pua=function(a,b,c,d,e,f,h,l){if(!a.va){3===a.type&&a.Cj();1!==a.type&&(g.Lq(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.G&&a.B.show(),a.i&&a.i.dispose(),a.i=a.api.oh(),a.i&&a.i.subscribe("l",a.VI,a));a.update({text:d,title:h?h:""});g.N(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.N(a.element,"ytp-text-detail",!!e);d=-1;a.i&&(d=jH(a.i,160*a.scale),g.S(a.env.experiments,"web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=lma(a.i,d,c));Nua(a,d);if(l)switch(c=g.Ol(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"}Oua(a,!!e,b,f)}};
g.$Q=function(a){1===a.type&&a.Cj()};
g.zO=function(a,b){if(a.va)return g.Ja;b.addEventListener("mouseover",a.u);b.addEventListener("focus",a.u);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.activeElement===b&&a.Cj();b.removeEventListener("mouseover",a.u);b.removeEventListener("focus",a.u)}};
$O=function(a,b,c){if(a.type)if(3===a.type)a.Cj();else return;Mua(a,b,3,c)};
Mua=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Gv("showElementTooltip called with non-element.",b.toString()),g.Tx(a);else{isNaN(a.l)||(a.l=NaN,a.bg.style.background="");a.activeElement=b;a.J=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.Lq(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.N(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.N(a.element,"ytp-tooltip-opaque",
!!b);a.type=c;a.api.addEventListener("appresize",a.U);a.G&&(RQ(a),a.B.show(0))}};
RQ=function(a){var b;a.activeElement&&(b=a.activeElement.getAttribute("data-tooltip-text"));if(b&&!a.J){var c=a.activeElement;a.Sa("text",b);var d=c.getAttribute("data-duration");a.update({title:a.C,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.Nq(a.element,
["ytp-text-detail","ytp-preview"]);g.N(a.element,"ytp-has-duration",!!d)}else a.Sa("text",a.C),g.Pq(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Oua(a,!!b)};
Oua=function(a,b,c,d){var e=Math.min(a.rz,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.xa.mp(a.element,a.activeElement,c,1===a.type,d);a.element.style.top?g.K(a.element,"ytp-bottom"):a.element.style.bottom&&g.K(a.element,"ytp-top");3===a.type&&a.ma.start()};
aP=function(a){a.activeElement&&!a.J&&a.activeElement.hasAttribute("title")&&(a.C=a.activeElement.getAttribute("title")||"",a.activeElement.removeAttribute("title"),a.G&&RQ(a))};
Nua=function(a,b){g.N(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.l)){a.l=b;b=160*a.scale;var c=160*a.scale,d=gma(a.i,a.l,b);Ita(a.bg,d,b,c,!0);a.X.start()}};
Qua=function(a){var b=a.activeElement;3===a.type&&a.ma.stop();a.api.removeEventListener("appresize",a.U);a.J||b.setAttribute("title",a.C);a.C="";a.activeElement=null};
g.aR=function(a,b){g.V.call(this,{D:"button",Ca:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.MF(a.T()))},S:[{D:"div",L:"ytp-watch-later-icon",oa:"{{icon}}"},{D:"div",L:"ytp-watch-later-title",oa:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.ac();FO(this.tooltip);a.Xb(this.element,this,28665);this.Ra("click",this.onClick,this);this.N(a,"videoplayerreset",this.eM);
this.N(a,"appresize",this.yv);this.N(a,"videodatachange",this.yv);this.N(a,"presentingplayerstatechange",this.yv);this.yv();a=this.I.T();var c=Rua();a.l&&c?(Sua(),Tua(this)):this.Ma(2);g.N(this.element,"ytp-show-watch-later-title",g.MF(a));g.gf(this,g.zO(b.ac(),this.element))};
Uua=function(a,b){g.tra(function(){Sua({videoId:b});window.location.reload()},"wl_button",g.wG(a.I.T()))};
Tua=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ma(3);var b=a.I.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.ll(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Ma(2);a.I.T().u&&a.I.Na("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0;
a.isRequestPending=!1;a.Ma(1);a.I.T().i&&$O(a.tooltip,a.element);a.I.T().u&&a.I.Na("WATCH_LATER_VIDEO_ADDED")};
KM(c,b).then(d,function(){a.isRequestPending=!1;Vua(a,"An error occurred. Please try again later.")})}};
Vua=function(a,b){a.Ma(4,b);a.I.T().u&&a.I.Na("WATCH_LATER_ERROR",b)};
Wua=function(a,b){var c=a.I.T();if(b!==a.icon){switch(b){case 3:var d=$N();break;case 1:d=AL();break;case 2:d={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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=g.S(c.experiments,"watch_later_iconchange_killswitch")?{D:"svg",V:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Sa("icon",d);
a.icon=b}};
bR=function(a){g.oO.call(this,a);var b=this;this.Qw=(this.Qo=g.MF(this.api.T()))&&(this.api.T().i||ut()||rt());this.yA=48;this.zA=69;this.Oj=null;this.Ym=[];this.jc=new g.uO(this.api);this.Ls=new bP(this.api);this.Ch=new g.V({D:"div",L:"ytp-chrome-top"});this.Tu=[];this.tooltip=new g.ZQ(this.api,this);this.backButton=this.Vq=null;this.channelAvatar=new HO(this.api,this);this.title=new YQ(this.api,this);this.Cg=new g.tL({D:"div",L:"ytp-chrome-top-buttons"});this.bh=null;this.Nh=new yO(this.api,this,
this.Ch.element);this.overflowButton=this.Qf=null;this.Sf="1"===this.api.T().controlsType?new SQ(this.api,this,this.fd):null;this.contextMenu=new g.YO(this.api,this,this.jc);this.kA=!1;this.gw=new g.V({D:"div",V:{tabindex:"0"}});this.ew=new g.V({D:"div",V:{tabindex:"0"}});this.tu=null;this.hD=this.Uv=!1;var c=a.Za(),d=a.T(),e=a.getVideoData();this.Qo&&(g.K(a.getRootNode(),"ytp-embed"),g.K(a.getRootNode(),"ytp-embed-playlist"),g.S(d.experiments,"embeds_enable_player_overlays_autohide")&&this.Qw&&(g.K(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.K(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.yA=60,this.zA=89);this.api.T().i&&(g.K(a.getRootNode(),"ytp-mobile"),this.api.T().J&&g.K(a.getRootNode(),"ytp-embed-mobile-exp"));this.Kg=e&&e.Kg;g.F(this,this.jc);HG(d)||g.oN(a,this.jc.element,4);g.F(this,this.Ls);g.oN(a,this.Ls.element,4);e=new g.V({D:"div",L:"ytp-gradient-top"});g.F(this,e);g.oN(a,e.element,1);this.DD=new g.fM(e,250,!0,100);g.F(this,this.DD);g.F(this,this.Ch);g.oN(a,this.Ch.element,
1);this.CD=new g.fM(this.Ch,250,!0,100);g.F(this,this.CD);g.F(this,this.tooltip);g.oN(a,this.tooltip.element,4);var f=new nP(a);g.F(this,f);g.oN(a,f.element,5);f.subscribe("show",function(l){b.qm(f,l)});
this.Tu.push(f);this.Vq=new oP(a,this,f);g.F(this,this.Vq);d.showBackButton&&(this.backButton=new tO(a),g.F(this,this.backButton),this.backButton.ya(this.Ch.element));this.Qo||this.Vq.ya(this.Ch.element);this.channelAvatar.ya(this.Ch.element);g.F(this,this.channelAvatar);g.F(this,this.title);this.title.ya(this.Ch.element);g.F(this,this.Cg);this.Cg.ya(this.Ch.element);this.bh=new g.aR(a,this);g.F(this,this.bh);this.bh.ya(this.Cg.element);var h=new g.uP(a,this);g.F(this,h);g.oN(a,h.element,5);h.subscribe("show",
function(l){b.qm(h,l)});
this.Tu.push(h);this.shareButton=new g.tP(a,this,h);g.F(this,this.shareButton);this.shareButton.ya(this.Cg.element);this.Hg=new g.ZO(a,this);g.F(this,this.Hg);this.Hg.ya(this.Cg.element);d.Jj&&(e=new AP(a),g.F(this,e),g.oN(a,e.element,4));this.Qo&&this.Vq.ya(this.Cg.element);g.F(this,this.Nh);this.Nh.ya(this.Cg.element);e=new AO(a,this,this.Nh);g.F(this,e);e.ya(this.Cg.element);this.Qf=new kP(a,this);g.F(this,this.Qf);g.oN(a,this.Qf.element,5);this.Qf.subscribe("show",function(){b.qm(b.Qf,b.Qf.Pf())});
this.Tu.push(this.Qf);this.overflowButton=new jP(a,this,this.Qf);g.F(this,this.overflowButton);this.overflowButton.ya(this.Cg.element);this.Sf&&g.F(this,this.Sf);"3"===d.controlsType&&(e=new sP(a,this),g.F(this,e),g.oN(a,e.element,8));g.F(this,this.contextMenu);this.contextMenu.subscribe("show",this.YK,this);e=new BM(a,new sO(a));g.F(this,e);g.oN(a,e.element,4);this.gw.Ra("focus",this.LO,this);g.F(this,this.gw);this.ew.Ra("focus",this.MO,this);g.F(this,this.ew);(this.xl=d.Ac?null:new g.gP(a,c,this.contextMenu,
this.fd,this.jc,this.Ls,function(){return b.Sj()}))&&g.F(this,this.xl);
this.Qo||(this.lK=new yP(this.api,this),g.F(this,this.lK),g.oN(a,this.lK.element,4));this.wK=new VQ(this.api,this);g.F(this,this.wK);g.oN(a,this.wK.element,4);this.Xm.push(this.jc.element);this.N(a,"fullscreentoggled",this.Fl);this.N(a,"offlineslatestatechange",function(){b.api.Kt()&&UN(b.fd,128,!1)});
this.N(a,"cardstatechange",function(){b.Ei()});
this.N(a,"resize",this.fR);this.N(a,"showpromotooltip",this.NR)};
Xua=function(a){var b=a.api.T(),c=g.U(a.api.sb(),128);return b.l&&c&&!a.api.isFullscreen()};
cR=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Dl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=cR(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
Yua=function(a,b,c){var d;if(g.S(a.api.T().experiments,"web_player_nitrate_promo_tooltip")){var e=a.api.getVideoData();if(null===e||void 0===e?0:e.tooltipRenderer){e=e.tooltipRenderer;var f;if(f=!a.tu){if(!(b=!b)){var h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null===(h=e.tooltipDisplayStrategy)||void 0===h?void 0:h.type)&&"dtip-edu-player-iseecaptions"!==(null===(l=e.promoConfig)||void 0===l?void 0:l.promoId)}f=b}f&&(a.tu=new pP(e,a,a.api),g.F(a,a.tu),g.oN(a.api,a.tu.element,8));null===
(d=a.tu)||void 0===d?void 0:d.oz(e,c)}}};
g.dR=function(a){g.zN.call(this,a);this.chrome=null;this.load()};
eR=function(){var a=Zua;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Ar.apply(null,[Yga.apply(null,g.ma(b))].concat(g.ma(c)));this.store=Dr(a,void 0,b)};
fR=function(a){this.l=a;this.B=this.i=0;this.u=-1};
gR=function(a){var b=uD(a.l,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=uD(a.l,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
hR=function(a,b){a.B=b;var c=a.u;for(a.u=-1;a.i+1<=a.l.totalLength;){0>c&&(c=gR(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:gR(a);break;case 1:a.i+=8;break;case 2:d=gR(a);a.i+=d;break;case 5:a.i+=4}}return!1};
iR=function(a,b,c){c=void 0===c?0:c;return hR(a,b)?gR(a):c};
jR=function(a,b){var c=void 0===c?null:c;if(!hR(a,b))return c;b=gR(a);c=sD(a.l,a.i,b);a.i+=b;return c};
$ua=function(){this.i=0;this.u=void 0;this.B=[];this.l=new Uint8Array(4096);this.view=new DataView(this.l.buffer);g.A.TextEncoder&&(this.u=new TextEncoder)};
kR=function(a,b){b=a.i+b;if(!(a.l.length>=b)){for(var c=2*a.l.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.l);a.l=b;a.view=new DataView(a.l.buffer)}};
lR=function(a,b){if(268435455<b){kR(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(kR(a,4);127<b;)a.view.setUint8(a.i,b&127|128),b>>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1};
mR=function(a,b,c){lR(a,b<<3|0);lR(a,c)};
nR=function(a,b,c){lR(a,b<<3|2);b=c.length;lR(a,b);kR(a,b);a.l.set(c,a.i);a.i+=b};
pR=function(a,b,c){c=a.u?a.u.encode(c):new Uint8Array(oR(g.Za(c)).buffer);nR(a,b,c)};
ava=function(a){lR(a,18);a.B.push(a.i);a.i+=2};
bva=function(a){var b=a.B.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)};
qR=function(a){var b=new fR(new lD([g.xd(decodeURIComponent(a))]));a=b.Oe(2);b=iR(b,4);return{FO:b,entityType:cva[b],entityId:a}};
rR=function(a,b){var c=new $ua;pR(c,2,a);mR(c,4,dva[b]);mR(c,5,1);a=new Uint8Array(c.l.buffer,0,c.i);return encodeURIComponent(g.$d(a))};
eva=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a};
sR=function(a,b,c,d){if(void 0===d){d=a[b]||{};var e=["symbol"===typeof c?c:c+""];c={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&0>e.indexOf(f)&&(c[f]=d[f]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var h=0;for(f=Object.getOwnPropertySymbols(d);h<f.length;h++)0>e.indexOf(f[h])&&(c[f[h]]=d[f[h]])}f={};return Object.assign(Object.assign({},a),(f[b]=c,f))}f={};e={};return Object.assign(Object.assign({},a),(e[b]=Object.assign(Object.assign({},a[b]),(f[c]=d,f)),e))};
fva=function(a){this.i=a;this.l={}};
tR=function(a,b,c){return cw(a.i,"EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return d.data}})};
uR=function(a,b,c){return c?(c=c.map(function(d){return tR(a,d,b)}),Pv.all(c)):cw(a.i,"EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return e.data})})};
wR=function(a,b,c){function d(){return bw(cw(a.i,"EntityStore"),f).then(function(h){vR(a,h,c);return h})}
var e=eva(b),f={key:e,entityType:c,data:b};return c?cw(a.i,"EntityStore").get(e).then(function(h){if(h&&c&&h.entityType!==c)throw Error("Incorrect entity type");}).then(d):d()};
xR=function(a,b,c){b=b.map(function(d){return wR(a,d,c)});
return Pv.all(b)};
yR=function(a,b){var c=qR(b).entityType;return cw(a.i,"EntityStore").delete(b).then(function(){vR(a,b,c)})};
gva=function(a,b){return kw(cw(a.i,"EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return c.delete().then(function(){vR(a,c.mH(),b);return c.continue()})})};
vR=function(a,b,c){var d=a.l[c];d||(d=new Set,a.l[c]=d);d.add(b)};
zR=function(){g.E.apply(this,arguments);this.i=[];if(!Iv())throw Error("Datasync ID is missing");if("undefined"===typeof BroadcastChannel)var a=null;else a=new BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+Hv()),a.onmessage=this.l.bind(this);this.channel=a};
AR=function(a,b,c){return g.D(a,function e(){var f,h,l,m,n=this;return g.z(e,function(p){if(1==p.i)return g.w(p,hva().open(),2);if(3!=p.i)return f=p.l,g.w(p,aw(f,["EntityStore"],b,function(r){h=new fva(r);return c(h)}),3);
l=p.l;h&&(m=h.l,0<Object.keys(m).length&&(n.channel&&n.channel.postMessage(m),iva(n,m)));return p.return(l)})})};
BR=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
CR=function(a,b,c){return AR(a,"readwrite",function(d){return wR(d,b,c)})};
jva=function(a,b){return AR(a,"readwrite",function(c){return xR(c,b,"offlineOrchestrationActionWrapperEntity")})};
kva=function(a,b){return AR(a,"readwrite",function(c){return yR(c,b)})};
DR=function(a,b,c){return AR(a,"readonly",function(d){return tR(d,b,c)})};
ER=function(a,b,c){return AR(a,"readonly",function(d){return uR(d,b,c)})};
iva=function(a,b){a=g.q(a.i);for(var c=a.next();!c.done;c=a.next())c=c.value,c=c(b),lva&&c&&lva.push(c)};
GR=function(){return g.D(this,function b(){return g.z(b,function(c){if(1==c.i)return g.w(c,vw(),2);if(!c.l||!Iv())return c.return();if(FR)return c.return(FR);FR=new zR;return c.return(FR)})})};
ova=function(a){var b=mva;return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i){e=a.mutations;if(!e||0>=e.length)return f.return();if(b){var h=e,l={type:"ENTITY_LOADED"};void 0!==h&&(l.payload=h);b.dispatch(l)}return g.w(f,nva(e),2)}e.length=0;g.sa(f)})})};
nva=function(a){return g.D(this,function c(){var d;return g.z(c,function(e){return 1==e.i?g.w(e,GR(),2):(d=e.l)?g.w(e,AR(d,"readwrite",function(f){for(var h=[],l=g.q(a),m=l.next();!m.done;m=l.next()){m=m.value;var n;if(n=m.entityKey){n=void 0;var p=null===(n=m.options)||void 0===n?void 0:n.persistenceOption;n="ENTITY_PERSISTENCE_OPTION_PERSIST"===p||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===p}n&&(n=Jb(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(wR(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"===
m.type&&h.push(yR(f,m.entityKey)))}return Pv.all(h)}),0):e.return()})})};
pva=function(a){return void 0!==a};
qva=function(a,b){var c={};c=void 0===c?{}:c;g.D(this,function e(){return g.z(e,function(f){if("locks"in navigator)return f.return(navigator.locks.request(a,c,function(h){return b(h)}));
throw Error("Web lock is not supported.");})})};
HR=function(a,b){g.Ux(Error("Woffle: "+a));b instanceof Error&&g.Ux(b)};
IR=function(){};
JR=function(){};
KR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+Hv("CacheStorage get")};
rva=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){d=c;if(void 0!==LR)return e.return(LR);LR=new Promise(function(f){return g.D(d,function l(){var m;return g.z(l,function(n){switch(n.i){case 1:return ta(n,2),g.w(n,MR.open("test-only"),4);case 4:return g.w(n,MR.delete("test-only"),5);case 5:ua(n,3);break;case 2:if(m=va(n),m instanceof Error&&"SecurityError"===m.name)return f(!1),n.return();case 3:f("caches"in window),g.sa(n)}})})});
return e.return(LR)})})};
OR=function(){return g.D(this,function b(){return g.z(b,function(c){if(1==c.i)return g.w(c,rva(),2);if(!c.l)return c.return(void 0);NR||(NR=new JR);return c.return(NR)})})};
sva=function(){return g.D(this,function b(){var c;return g.z(b,function(d){return 1==d.i?g.w(d,OR(),2):(c=d.l)?d.return(c.delete("yt-player-local-img")):d.return(!0)})})};
tva=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){if(1==f.i)return g.w(f,OR(),2);if(3!=f.i){d=f.l;if(!d)throw Error("Cache API not supported");return a.length?g.w(f,d.open("yt-player-local-img"),3):f.return()}e=f.l;return g.w(f,Promise.all(a.map(function(h){return e.delete(h)})),0)})})};
uva=function(a){return g.D(this,function c(){var d,e;return g.z(c,function(f){if(1==f.i)return g.w(f,OR(),2);if(3!=f.i){d=f.l;if(!d)throw Error("Cache API not supported");return a.length?g.w(f,d.open("yt-player-local-img"),3):f.return()}e=f.l;return g.w(f,e.addAll(a),0)})})};
PR=function(a){g.Bv("offlineTransferStatusChanged",a)};
vva=function(a){switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":return"OFFLINE_DATABASE_ERROR";case "TRANSFER_FAILURE_REASON_PLAYABILITY":return"NOT_PLAYABLE";case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":return"TOO_MANY_RETRIES";case "TRANSFER_FAILURE_REASON_INTERNAL":return"OFFLINE_DOWNLOAD_CONTROLLER_ERROR";case "TRANSFER_FAILURE_REASON_STREAM_MISSING":return"STREAM_VERIFICATION_FAILED";case "TRANSFER_FAILURE_REASON_SERVER":case "TRANSFER_FAILURE_REASON_SERVER_PROPERTY_MISSING":return"OFFLINE_REQUEST_FAILURE";
case "TRANSFER_FAILURE_REASON_NETWORK":return"OFFLINE_NETWORK_ERROR";default:return"UNKNOWN_FAILURE_REASON"}};
QR=function(a){var b,c,d;return 0<(null!==(d=null===(c=null===(b=a.actionMetadata)||void 0===b?void 0:b.retryScheduleIntervalsInSeconds)||void 0===c?void 0:c.length)&&void 0!==d?d:0)};
RR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
SR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
zva=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n,p,r,t,u,x,y,B,G,H,I,M,L,da;return g.z(e,function(Ba){switch(Ba.i){case 1:return f=rR(a,"ytMainVideoEntity"),h=rR(a,"ytMainChannelEntity"),l=rR(a,"transfer"),g.w(Ba,AR(b,"readonly",function(za){return Pv.all([tR(za,f,"ytMainVideoEntity"),tR(za,h,"ytMainChannelEntity"),tR(za,l,"transfer"),uR(za,"ytMainChannelEntity"),uR(za,"offlineOrchestrationActionWrapperEntity")])}),2);
case 2:m=Ba.l;n=g.q(m);p=n.next().value;r=n.next().value;t=n.next().value;u=n.next().value;x=n.next().value;if(!p&&!r){Ba.ub(3);break}y=p?TR(p.thumbnail):[];if(!r){B=[];Ba.ub(4);break}return g.w(Ba,wva(r,u),5);case 5:B=Ba.l;case 4:return G=B,g.w(Ba,tva(y.concat(G)),3);case 3:H=[rR(a,"ytMainDownloadedVideoEntity"),f,h,rR(a,"playbackData"),l,rR(a,"offlineVideoPolicy"),rR(a,"offlineVideoStreams")];I=g.q(x);for(M=I.next();!M.done;M=I.next())L=M.value,da=qR(L.key).entityId,da!==a||xva(c,L.actionProto)||
H.push(L.key);return g.w(Ba,AR(b,"readwrite",function(za){return Pv.all(H.map(function(ed){return yR(za,ed)})).then(function(){return m})}),7);
case 7:yva(t),g.sa(Ba)}})})};
Bva=function(a,b){return g.D(this,function d(){var e,f,h,l;return g.z(d,function(m){if(1==m.i)return g.w(m,AR(a,"readwrite",function(n){var p=uR(n,"transfer"),r=uR(n,"offlineOrchestrationActionWrapperEntity");return Pv.all([p,r]).then(function(t){t=g.q(t);var u=t.next().value,x=t.next().value;t=Ava.map(function(H){return gva(n,H)});
x=g.q(x);for(var y=x.next();!y.done;y=x.next()){y=y.value;var B="ytMainDownloadedVideoEntity"===qR(y.actionProto.entityKey).entityType,G="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===y.actionProto.actionType;xva(b,y.actionProto)||B&&(!B||G)||t.push(yR(n,y.key))}return Pv.all(t).then(function(){return u})})}),2);
e=m.l;f=g.q(e);for(h=f.next();!h.done;h=f.next())l=h.value,yva(l);return g.w(m,sva(),0)})})};
xva=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey};
yva=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=qR(a.key).entityId;PR({encryptedVideoId:b,cotn:a.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"})}};
TR=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
wva=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r;return g.z(d,function(t){e=TR(a.avatar);f=g.q(b);for(h=f.next();!h.done;h=f.next())if(l=h.value,l.id!==a.id)for(m=g.q(TR(l.avatar)),n=m.next();!n.done;n=m.next())p=n.value,r=e.indexOf(p),-1!==r&&e.splice(r,1);return t.return(e)})})};
UR=function(a){this.i=a};
VR=function(a,b,c){this.status=a;this.i=b;this.l=c};
WR=function(a,b){this.i=a;this.u=b};
Eva=function(a,b){var c,d;return g.D(a,function f(){var h,l,m=this,n;return g.z(f,function(p){switch(p.i){case 1:return h=b.entityKey,l=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch,ta(p,2),g.w(p,Cva(m,h,{isEnqueuedForExpiredStreamUrlRefetch:l}),4);case 4:return(n=p.l)?g.w(p,Dva(m,n,b),5):p.return(YR(b,!1));case 5:return p.return(YR(b,!0,n.orchestrationActions));case 2:return va(p),HR("PDE handleAdd error"),
p.return(YR(b,!1))}})})};
Fva=function(a,b){return g.D(a,function d(){var e,f=this,h,l,m,n,p,r;return g.z(d,function(t){switch(t.i){case 1:return e=b.entityKey,g.w(t,AR(f.i,"readonly",function(u){var x=tR(u,e,"playbackData");u=tR(u,rR(qR(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");return Pv.all([x,u])}),2);
case 2:h=t.l;l=g.q(h);m=l.next().value;n=l.next().value;if(!m||!n)return t.return(YR(b,!0));p={lastPlayerResponseTimestampSeconds:m.playerResponseTimestamp,offlineToken:n.offlineToken};ta(t,3);return g.w(t,Cva(f,e,{refreshData:p}),5);case 5:return(r=t.l)?g.w(t,Dva(f,r,b),6):t.return(YR(b,!1));case 6:return t.return(YR(b,!0,r.orchestrationActions));case 3:return va(t),t.return(YR(b,!1))}})})};
Cva=function(a,b,c){return g.D(a,function e(){var f,h=this,l,m;return g.z(e,function(n){f=g.TM();var p=h.u,r=c.refreshData,t=c.isEnqueuedForExpiredStreamUrlRefetch,u={entityKey:b};r&&(u.refreshData=r);t&&(u.isExpiredStreamUrlRefetch=t);l={context:ksa(p),signatureTimestamp:18802,videos:[u]};m=g.EM(Gva);return n.return(g.ZK(f,l,m))})})};
Dva=function(a,b,c){return g.D(a,function e(){var f,h=this;return g.z(e,function(l){if(1==l.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return l.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0<b.frameworkUpdates.entityBatchUpdate.mutations.length&&"ENTITY_MUTATION_TYPE_DELETE"===b.frameworkUpdates.entityBatchUpdate.mutations[0].type))return l.ub(2);f=qR(b.frameworkUpdates.entityBatchUpdate.mutations[0].entityKey).entityId;return g.w(l,zva(f,h.i,c),2)}return g.w(l,
ova(b.frameworkUpdates.entityBatchUpdate),0)})})};
YR=function(a,b,c){return new VR(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",QR(a),c)};
ZR=function(){UR.apply(this,arguments)};
Iva=function(a,b){return g.D(a,function d(){var e,f=this,h;return g.z(d,function(l){switch(l.i){case 1:return e=QR(b),g.w(l,DR(f.i,b.entityKey,"transfer"),2);case 2:if(h=l.l)return l.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(l,3);return g.w(l,Hva(f,b),5);case 5:ua(l,4);break;case 3:return va(l),l.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return l.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
Jva=function(a,b){return g.D(a,function d(){var e,f=this,h;return g.z(d,function(l){switch(l.i){case 1:return e=QR(b),g.w(l,DR(f.i,b.entityKey,"transfer"),2);case 2:h=l.l;if(!h||"TRANSFER_STATE_COMPLETE"!==h.transferState)return l.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(l,3);return g.w(l,Hva(f,b),5);case 5:ua(l,4);break;case 3:return va(l),l.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return l.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
e))}})})};
Hva=function(a,b){var c;return g.D(a,function e(){var f,h,l=this,m;return g.z(e,function(n){if(1==n.i)return f=null===(c=b.actionMetadata)||void 0===c?void 0:c.transferEntityActionMetadata,h={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:zx(),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null===f||void 0===f?void 0:f.maximumDownloadQuality,preferredAudioTrack:null===f||void 0===f?void 0:f.preferredAudioTrack,transferRetryCount:0},g.w(n,CR(l.i,h,"transfer"),
2);m=qR(h.key).entityId;PR({encryptedVideoId:m,cotn:h.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_ENQUEUED",statusType:"ADDED_TO_QUEUE"});g.sa(n)})})};
Lva=function(a){var b,c;return g.D(this,function e(){var f,h,l,m,n;return g.z(e,function(p){if(1==p.i)return f=g.TM(),h={context:VK(),videoIds:[a]},l=g.EM(Kva),g.w(p,g.ZK(f,h,l),2);m=p.l;if(!m)throw Error("Network request failed");if(!m.videos||1!==m.videos.length)throw Error("Failed request: "+(null!==(c=null===(b=m.error)||void 0===b?void 0:b.code)&&void 0!==c?c:"?"));n=m.videos[0].offlineVideoData;if(!n)throw Error("No data");return p.return(n)})})};
$R=function(){UR.apply(this,arguments)};
Ova=function(a,b){return g.D(a,function d(){var e,f,h,l=this,m;return g.z(d,function(n){switch(n.i){case 1:return e=QR(b),f=qR(b.entityKey),h=f.entityId,ta(n,2),g.w(n,Mva(l,h),4);case 4:ua(n,3);break;case 2:return va(n),n.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 3:return m=Nva("OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",h),n.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[m]))}})})};
Pva=function(a,b){return g.D(a,function d(){var e,f,h,l=this,m,n;return g.z(d,function(p){switch(p.i){case 1:return e=QR(b),f=qR(b.entityKey),h=f.entityId,g.w(p,DR(l.i,b.entityKey,"ytMainDownloadedVideoEntity"),2);case 2:m=p.l;if(!m)return p.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(p,3);return g.w(p,Mva(l,h,m.addedTimestampMillis),5);case 5:ua(p,4);break;case 3:return va(p),p.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 4:return n=Nva("OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
h),p.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[n]))}})})};
Qva=function(a,b){return g.D(a,function d(){var e,f,h=this;return g.z(d,function(l){switch(l.i){case 1:return e=QR(b),ta(l,2),f=qR(b.entityKey).entityId,"!*$_ALL_VIDEOS_!*$"===f?g.w(l,Bva(h.i,b),5):g.w(l,zva(f,h.i,b),5);case 5:ua(l,3);break;case 2:return va(l),l.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e));case 3:return l.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
Mva=function(a,b,c){return g.D(a,function e(){var f=this,h,l,m,n;return g.z(e,function(p){if(1==p.i)return g.w(p,Lva(b),2);if(3!=p.i)return h=p.l,g.w(p,Rva(f,h,c),3);l=p.l;m=l.videoEntity;n=l.channelEntity;var r=TR(m.thumbnail),t=TR(n.avatar);return g.w(p,uva(r.concat(t)),0)})})};
Rva=function(a,b,c){var d;return g.D(a,function f(){var h,l,m,n,p=this;return g.z(f,function(r){if(1==r.i){if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");c||(c=Date.now().toString());h=null===(d=b.channel)||void 0===d?void 0:d.offlineChannelData;l={id:rR(b.videoId,"ytMainChannelEntity"),channelId:h.channelId,title:h.title,avatar:h.thumbnail};m={id:rR(b.videoId,"ytMainVideoEntity"),videoId:b.videoId,title:b.title,thumbnail:b.thumbnail,localizedStrings:{viewCount:b.shortViewCountText},
lengthSeconds:b.lengthSeconds?Number(b.lengthSeconds):void 0,publishedTimestampMillis:b.publishedTimestamp?(1E3*Number(b.publishedTimestamp)).toString():void 0,formattedDescription:b.description,channelOwner:l.id};n={id:rR(b.videoId,"ytMainDownloadedVideoEntity"),video:m.id,playbackData:rR(b.videoId,"playbackData"),offlineVideoPolicy:rR(b.videoId,"offlineVideoPolicy"),addedTimestampMillis:c};return g.w(r,AR(p.i,"readwrite",function(t){var u=wR(t,l,"ytMainChannelEntity"),x=wR(t,m,"ytMainVideoEntity");
t=wR(t,n,"ytMainDownloadedVideoEntity");return Pv.all([u,x,t])}),2)}return r.return({videoEntity:m,
channelEntity:l,F7:n})})})};
Nva=function(a,b){b=rR(b,"playbackData");return{actionType:a,entityKey:b,actionMetadata:{priority:0,retryScheduleIntervalsInSeconds:Sva}}};
Uva=function(){return{priority:0,retryScheduleIntervalsInSeconds:Tva}};
aS=function(a,b,c,d,e,f,h,l,m,n,p){this.entityType=a;this.actionId=b;this.action=c;this.parentActionId=d;this.rootActionId=void 0===e?b:e;this.childActionIds=f;this.prereqActionId=h;this.postreqActionIds=l;this.hasChildActionFailed=n;this.retryScheduleIndex=0;this.i=p||Date.now();this.retryScheduleIndex=m||0};
bS=function(a){return{key:rR(a.actionId,"offlineOrchestrationActionWrapperEntity"),actionProto:a.action,parentActionId:a.parentActionId,rootActionId:a.rootActionId,childActionIds:a.childActionIds,prereqActionId:a.prereqActionId,postreqActionIds:a.postreqActionIds,retryScheduleIndex:a.retryScheduleIndex,hasChildActionFailed:a.hasChildActionFailed,enqueueTimeSec:(a.i/1E3).toFixed()}};
Vva=function(){this.i=new Map};
Wva=function(){cS||(cS=new Vva);return cS};
Xva=function(a,b){return{eventType:{flowEventNamespace:"FLOW_EVENT_NAMESPACE_OFFLINE_ORCHESTRATION",flowEventType:a},metadata:b,statusCode:void 0}};
Yva=function(a,b,c){if(!c){var d=void 0===d?!1:d;c=a.i.get("FLOW_TYPE_OFFLINE_ORCHESTRATION");if(!c||d)c=zx(),a.i.set("FLOW_TYPE_OFFLINE_ORCHESTRATION",c)}a={flowNonce:c,flowType:"FLOW_TYPE_OFFLINE_ORCHESTRATION",flowEventType:b.eventType};b.metadata&&(a.flowMetadata=b.metadata);void 0!==b.statusCode&&(a.flowEventStatus=b.statusCode);g.Bv("flowEvent",a,void 0)};
Zva=function(a,b,c){if(!a.action.entityKey)throw Error("entityKey is missing.");var d=qR(a.action.entityKey);a={entityType:d.FO,entityId:d.entityId,offlineOrchestrationActionType:a.action.actionType,orchestrationAction:{orchestrationActionId:a.actionId}};b&&(a.offlineOrchestrationActionResult=b.status,a.isRetryable=b.i);c&&(a.additionalOrchestrationActions=c.map(function(e){return{orchestrationActionId:e.actionId}}));
return a};
dS=function(a,b){var c={offlineOrchestrationContext:Zva(a)};b=Xva(b,c);Yva(Wva(),b,a.rootActionId)};
$va=function(a,b,c){c=void 0===c?[]:c;b={offlineOrchestrationContext:Zva(a,b,c)};b=Xva(3,b);Yva(Wva(),b,a.rootActionId)};
awa=function(){this.actions=[]};
bwa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,dS(c,1),a.actions.push(c);a.actions.sort(a.i)};
cwa=function(a,b){a=g.q(a.actions);for(var c=a.next();!c.done;c=a.next())if(c.value.actionId===b)return!0;return!1};
eS=function(a,b){g.E.call(this);var c=this;this.i=a;this.U=b;this.l=new awa;this.J=new Ow;this.u=new g.J(function(){dwa(c)});
this.C=NaN;g.F(this,this.u);this.G=BR(this.i,this.K.bind(this))};
gwa=function(a,b){return g.D(this,function d(){var e;return g.z(d,function(f){if(1==f.i)return e=new eS(a,b),g.w(f,ewa(e),2);fwa(e);return f.return(e)})})};
fwa=function(a){return a.B?Promise.resolve():fS(a)};
fS=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m;return g.z(c,function(n){switch(n.i){case 1:if(d.B)throw Error("Already processing an action");if(d.Ha())return n.return();e=d.l.actions.shift();if(void 0===e)return n.return();d.B=e;if(f=d.U[e.entityType]){n.ub(2);break}d.B=void 0;return g.w(n,fS(d),3);case 3:return n.return();case 2:return ta(n,4,5),dS(e,2),g.w(n,f.l(e.action),7);case 7:return h=n.l,g.w(n,hwa(d,e,h),5);case 5:wa(n);d.B=void 0;xa(n,6);break;case 4:return l=va(n),HR("Orchestration error",
l),ta(n,9),g.w(n,iwa(d,e),11);case 11:ua(n,5);break;case 9:m=va(n);HR("Orchestration retry error",m);3>e.retryScheduleIndex&&bwa(d.l,[e]);n.ub(5);break;case 6:return g.w(n,fS(d),0)}})})};
hwa=function(a,b,c){var d;return g.D(a,function f(){var h=this,l,m;return g.z(f,function(n){if(1==n.i){l=h;if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status)return m=null===(d=c.l)||void 0===d?void 0:d.map(function(p){return l.createAction(p,b)}),$va(b,c,m),g.w(n,AR(h.i,"readwrite",function(p){var r=[];
if(m){var t=m.map(function(u){return bS(u)});
r.push(xR(p,t,"offlineOrchestrationActionWrapperEntity"))}t=bS(b);r.push(yR(p,t.key));return Pv.all(r)}),9);
if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return n.ub(0);$va(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.w(n,iwa(h,b),0);HR("Orchestration result is not retryable, deleting action");return g.w(n,kva(h.i,bS(b).key),0)}dS(b,4);g.sa(n)})})};
CS=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n,p,r,t,u,x,y,B;return g.z(d,function(G){f=[];h=Infinity;l=4E3;m=g.q(b);for(n=m.next();!n.done;n=m.next())p=n.value,r=Number(p.enqueueTimeSec),t=jwa(r),u=p.retryScheduleIndex,x=null!=u&&0<u,0<t&&x?(h=Math.min(h,r),l=Math.min(t,l)):f.push(p);isFinite(h)&&(!e.u.isActive()||h<e.C)&&(e.C=h,e.u.start(l));e.J.Vi()||(y=f.length,f=f.filter(function(H){var I;H=(null===(I=H.actionProto)||void 0===I?void 0:I.actionType)||"OFFLINE_ORCHESTRATION_ACTION_TYPE_UNKNOWN";
return!kwa.includes(H)}),B=f.length<y,!e.u.isActive()&&B&&e.u.start(1));
lwa(e,f);return g.w(G,fwa(e),0)})})};
dwa=function(a){g.D(a,function c(){var d=this,e,f,h,l,m,n,p;return g.z(c,function(r){if(1==r.i)return g.w(r,mwa(d),2);e=r.l;f=[];h=g.q(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=qR(m.key),p=n.entityId,cwa(d.l,p)||f.push(m);return g.w(r,CS(d,f),0)})})};
jwa=function(a){a=1E3*a-Date.now();return 4E3<a?4E3:a};
iwa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){var h,l,m=(null===(l=null===(h=b.action)||void 0===h?void 0:h.actionMetadata)||void 0===l?void 0:l.retryScheduleIntervalsInSeconds)||Tva;h=1;b.retryScheduleIndex<m.length&&(h=m[b.retryScheduleIndex]);b.i=1E3*h+Date.now();b.retryScheduleIndex++;return g.w(f,nwa(e,[b]),0)})})};
ewa=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return g.w(f,ER(d.i,"offlineOrchestrationActionWrapperEntity"),2);e=f.l;return g.w(f,CS(d,e),0)})})};
lwa=function(a,b){0!==b.length&&b.forEach(function(c){if(!c.key)throw Error("Entity key is required.");if(!c.actionProto)throw Error("OfflineOrchestrationAction is required.");var d=qR(c.key),e=qR(c.actionProto.entityKey);c=new aS(e.entityType,d.entityId,c.actionProto,c.parentActionId,c.rootActionId,c.childActionIds,c.prereqActionId,c.postreqActionIds,c.retryScheduleIndex,c.hasChildActionFailed,1E3*Number(c.enqueueTimeSec));3>c.retryScheduleIndex&&bwa(a.l,[c])})};
mwa=function(a,b){return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,ER(e.i,"offlineOrchestrationActionWrapperEntity",b),2);f=h.l;return h.return(f.filter(pva))})})};
nwa=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return bS(c)});
return jva(a.i,b)};
owa=function(a){this.api=a;this.i=void 0};
qwa=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n;return g.z(d,function(p){f=e;h=b.videoId;l=e.api.T();m=!0;if(b.captionTracks.length)e.i=new g.DN(e.api.T(),b,e.api.getAudioTrack());else if(b.Ac)n=g.cna(b),e.i=new g.FN(b.Ac,h,n,b.uj,l),m=b.uj;else return p.return();return p.return(new Promise(function(r){var t;null===(t=f.i)||void 0===t?void 0:t.Qq(function(){return g.D(f,function x(){var y=this;return g.z(x,function(B){if(1==B.i)return g.w(B,pwa(y,h,m),2);r();g.sa(B)})})})}))})})};
pwa=function(a,b,c){c=void 0===c?!0:c;return g.D(a,function e(){var f=this,h,l,m,n,p,r,t,u,x,y,B,G;return g.z(e,function(H){switch(H.i){case 1:if(!f.i)return H.return();h=[];l=g.AN(f.i.l,c);m=[];n={};p=g.q(l.entries());for(r=p.next();!r.done;n={Oy:n.Oy},r=p.next())t=r.value,u=g.q(t),n.Oy=u.next().value,x=u.next().value,y=f.i.Mo(x,"json3"),B=g.ah(g.Us(y,{withCredentials:!0},3,500).then(function(I){return function(M){M={metadata:g.aH(l[I.Oy]),trackData:M.xhr.responseText};m.push(M)}}(n)),function(I){HR("Caption fetch error",
I)}),h.push(B);
return g.w(H,Xg(h),2);case 2:return ta(H,3),g.w(H,Ela(b,m),5);case 5:ua(H,0);break;case 3:G=va(H),HR("Caption DB transaction error",G),g.sa(H)}})})};
rwa=function(){this.tag="woffle"};
NS=function(a,b,c,d){this.api=a;this.player=b;this.B=c;this.i=d;this.logger=new rwa;this.l=!1;a={};px(this.player,(a.localmediachange=this.G,a.signatureexpired=this.tC,a.statechange=this.C,a),this)};
swa=function(a){return g.D(this,function c(){return g.z(c,function(d){return d.return(Jla(a))})})};
PS=function(a,b){var c=VG(b);if(1===c||0===c)return Promise.resolve();(c=a.player.getVideoData().videoId===b?a.player:null)&&c.l&&(c=c.l,c.audioTrack.B.u=null,c.videoTrack.B.u=null,c.policy.i="");a.u=0;return swa(b)};
twa=function(){switch(g.Am(g.Xu).get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
QS=function(a){g.E.call(this);this.i=a;this.l=BR(this.i,this.u.bind(this))};
uwa=function(a,b){return g.D(a,function d(){var e,f=this,h,l,m,n,p,r;return g.z(d,function(t){switch(t.i){case 1:if(0===b.length)return t.return([]);e=b.map(function(u){return rR(u,"transfer")});
return g.w(t,ER(f.i,"transfer",e),2);case 2:h=t.l;l=h.filter(pva).map(function(u){return qR(u.key).entityId});
m=b.filter(function(u){return-1===l.indexOf(u)});
if(0===m.length)return t.return([]);n=g.q(m);p=n.next();case 3:if(p.done){t.ub(5);break}r=p.value;return g.w(t,swa(r),4);case 4:p=n.next();t.ub(3);break;case 5:return t.return(m)}})})};
vwa=function(a,b,c,d,e,f){return g.D(this,function l(){var m,n,p;return g.z(l,function(r){m="STREAM_TYPE_UNKNOWN";c.video&&c.audio?(m="STREAM_TYPE_AUDIO_AND_VIDEO",HR("unexpected stream type")):c.video&&!c.audio?m="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(m="STREAM_TYPE_AUDIO");n=rR(b,"offlineVideoStreams");p={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:m,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"===
m?Number(c.kc()):void 0};return g.w(r,AR(a,"readwrite",function(t){return tR(t,n,"offlineVideoStreams").then(function(u){if(u&&u.streamsProgress){var x=u;a:{var y=d.itag+";"+d.xtags;for(var B=u.streamsProgress,G=0;G<B.length;G++){var H=JSON.parse(B[G].formatStreamBytes);if(H.itag+";"+H.xtags===y){B[G]=p;y=B;break a}}B.push(p);y=B}x.streamsProgress=y}else u={key:n,streamsProgress:[p]};return u}).then(function(u){u=wR(t,u,"offlineVideoStreams");
var x=tR(t,rR(b,"transfer"),"transfer");return Pv.all([u,x]).then(function(y){y=g.q(y);y.next();y=y.next().value;if(!y)return yR(t,n).then(function(){});
y.offlineVideoStreams||(y.offlineVideoStreams=[]);return-1===y.offlineVideoStreams.indexOf(n)?(y.offlineVideoStreams.push(n),wR(t,y,"transfer")):Pv.resolve(void 0)})})}),0)})})};
wwa=function(a,b){return g.D(this,function d(){var e,f,h,l,m;return g.z(d,function(n){if(1==n.i)return e=rR(b,"offlineVideoStreams"),g.w(n,DR(a,e,"offlineVideoStreams"),2);f=n.l;if(!f||!f.streamsProgress)return n.return();h=g.q(f.streamsProgress);for(l=h.next();!l.done;l=h.next())m=l.value,m.streamState="DOWNLOAD_STREAM_STATE_COMPLETE",m.numTotalBytes!==m.numBytesDownloaded&&(m.numBytesDownloaded=m.numTotalBytes);return g.w(n,CR(a,f,"offlineVideoStreams"),0)})})};
RS=function(a,b,c,d){g.E.call(this);this.l=a;this.player=c;this.G=0;this.B=BR(this.l,this.K.bind(this));this.J=new NS(b,c,d,this);this.U=new owa(b);this.C=new QS(this.l)};
xwa=function(a){g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return g.w(e,Dla(),2);var f=d.C;var h=UG();h=Object.keys(h);f=uwa(f,h);return g.w(e,f,0)})})};
SS=function(a,b){b=void 0===b?!1:b;return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i){if(e.i)throw Error("Already downloading a video");return g.w(h,ywa(e),2)}return 4!=h.i?(f=h.l)?b?g.w(h,new Promise(function(l){g.ms(l,1E3)}),4):h.ub(4):h.ub(0):g.w(h,zwa(e,f),0)})})};
Awa=function(a){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i)return d.u?g.w(e,PS(d.J,d.u.videoDetails.videoId),3):e.ub(0);TS(d);g.sa(e)})})};
zwa=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m;return g.z(d,function(n){switch(n.i){case 1:return e.i=b,g.w(n,US(e),2);case 2:return f=null,ta(n,3),g.w(n,Bwa(e,b),5);case 5:f=n.l;e.u=f;ua(n,4);break;case 3:return h=va(n),HR("error getting player response",h),g.w(n,e.ju("TRANSFER_FAILURE_REASON_INTERNAL"),6);case 6:return n.return();case 4:return l=new g.rH(e.player.T(),{cotn:b.cotn,raw_player_response:f,download_media:!0,start:Infinity,disable_watch_next:!0}),ta(n,7),g.w(n,qwa(e.U,
l),9);case 9:ua(n,8);break;case 7:m=va(n),HR("Caption downloading error",m);case 8:var p=e.J;l.getPlayerResponse()&&$H(l);WG(l.videoId,2);p.u=2;p.l=!1;p.player.ni(l,p.B);var r=twa();g.S(p.player.T().experiments,"hoffle_lmqf_killswitch")||(r=TA(r,r,!0,"m"),Cwa(p.player,r,!1));VS(p.player,!1);g.sa(n)}})})};
ywa=function(a){return g.D(a,function c(){var d=this,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,ER(d.l,"transfer"),2);e=h.l;f=e.filter(Dwa).sort(Ewa);return 0===f.length?h.return():h.return(f[0])})})};
US=function(a){return g.D(a,function c(){var d=this;return g.z(c,function(e){return g.w(e,WS(d,"TRANSFER_STATE_TRANSFERRING"),0)})})};
Fwa=function(a){g.D(a,function c(){var d=this,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,WS(d,"TRANSFER_STATE_COMPLETE","DOWNLOAD_STREAM_STATE_COMPLETE"),2);if(3!=h.i)return e=qR(d.i.key),f=e.entityId,g.w(h,wwa(d.l,f),3);PR({encryptedVideoId:f,cotn:d.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_COMPLETED",statusType:"SUCCESS"});TS(d);SS(d);g.sa(h)})})};
Gwa=function(a,b,c){g.D(a,function e(){var f=this,h;return g.z(e,function(l){if(1==l.i)return"TRANSFER_STATE_TRANSFERRING"===f.i.transferState?l.ub(2):g.w(l,US(f),2);if(5!=l.i){h=Date.now();if(!(1E3<h-f.G))return l.ub(0);f.G=h;return g.w(l,vwa(f.l,c.videoId,c.l,c.formatStream,c.bytesDownloaded,c.i),5)}var m=Math.floor(c.bytesDownloaded/1024).toFixed();PR({encryptedVideoId:b,cotn:f.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_PROCESSING",statusType:"OFFLINING_STARTED",alreadyDownloadedKbytes:m,
totalFetchedKbytes:m,totalContentKbytes:Math.floor(c.i/1024).toFixed()});g.sa(l)})})};
Hwa=function(a){a=a.i;var b=3>(a.transferRetryCount||0);b&&(a.transferRetryCount=(a.transferRetryCount||0)+1);return b};
XS=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i)return g.w(h,WS(e,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);f=qR(e.i.key).entityId;var l=b,m={encryptedVideoId:f,cotn:e.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};l&&(m.transferFailureReason=l,m.failureReason=vva(l));PR(m);g.sa(h)})})};
WS=function(a,b,c,d){return g.D(a,function f(){var h=this,l;return g.z(f,function(m){l=h;h.i.transferState=b;h.i.failureReason=d;return g.w(m,Iwa(h,function(n){return c?uR(n,"offlineVideoStreams",l.i.offlineVideoStreams).then(function(p){for(var r=g.q(p),t=r.next();!t.done;t=r.next())if((t=t.value)&&t.streamsProgress){t=g.q(t.streamsProgress);for(var u=t.next();!u.done;u=t.next())u.value.streamState=c}return xR(n,p.filter(function(x){return!!x}),"offlineVideoStreams")}):Pv.resolve(void 0)}),0)})})};
Iwa=function(a,b){return g.D(a,function d(){var e=this,f;return g.z(d,function(h){if(!e.i)return h.return();f=e.i;return g.w(h,AR(e.l,"readwrite",function(l){var m=[wR(l,f,"transfer")];b&&m.push(b(l));return Pv.all(m)}),0)})})};
TS=function(a){a.i=void 0;a.u=void 0};
Bwa=function(a,b){return g.D(a,function d(){var e,f,h,l=this,m;return g.z(d,function(n){if(1==n.i)return e=qR(b.key),f=e.entityId,h=rR(f,"playbackData"),g.w(n,DR(l.l,h,"playbackData"),2);m=n.l;if(null===m||void 0===m?0:m.playerResponseJson)return n.return(JSON.parse(m.playerResponseJson));throw Error("No PlayerResponse found");})})};
Dwa=function(a){return void 0!==YS[a.transferState]};
Ewa=function(a,b){var c=YS[a.transferState],d=YS[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
Kwa=function(a,b,c,d){this.C=a;this.api=b;this.player=c;this.G=d;this.u=new Ow;this.B=!1;this.l=new cr;Jwa(this)};
Jwa=function(a){var b=Hv("OfflineManager");qva("woffle_orchestration_leader:"+b,function(){return Lwa(a)})};
Lwa=function(a){return g.D(a,function c(){var d=this;return g.z(c,function(e){if(1==e.i){d.J=new cr;d.B=!0;d.api.Na("onOrchestrationBecameLeader");d.i&&d.K||Mwa(d).then(d.l.resolve).catch(d.l.reject);var f=d.l.promise;return g.w(e,f,2)}return g.w(e,d.J.promise,0)})})};
Mwa=function(a){return g.D(a,function c(){var d,e=this,f,h;return g.z(c,function(l){if(1==l.i)return g.w(l,GR(),2);if(3!=l.i){d=l.l;if(!d)return HR("PES is undefined"),l.return();e.i=new RS(d,e.api,e.player,e.G);f={};h=(f.ytMainDownloadedVideoEntity=new $R(d),f.playbackData=new WR(d,e.C),f.transfer=new ZR(d),f);return g.w(l,gwa(d,h),3)}e.K=l.l;return g.w(l,Nwa(e),0)})})};
Nwa=function(a){return g.D(a,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return e=d,d.i?g.w(f,SS(d.i),2):(HR("transferManager is undefined"),f.return());if(3!=f.i)return g.w(f,Owa(d),3);d.U=ns(function(){Owa(e)},9E5);
bu(eu(),function(){e.i&&xwa(e.i)});
g.sa(f)})})};
Pwa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.uu(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"))})})};
Qwa=function(a,b){return g.D(a,function d(){var e=this;return g.z(d,function(f){return f.return(e.uu(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
Rwa=function(a){return g.D(a,function c(){var d,e,f;return g.z(c,function(h){if(1==h.i)return g.w(h,GR(),2);if(3!=h.i)return(d=h.l)?g.w(h,ER(d,"transfer"),3):h.return([]);e=h.l;f=e.map(function(l){return qR(l.key).entityId});
return h.return(f)})})};
Owa=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r;return g.z(c,function(t){if(1==t.i)return d.u.Vi()?g.w(t,GR(),2):t.return(Swa(d));if(3!=t.i){e=t.l;if(!e)return t.return();f=Date.now()/1E3;return g.w(t,ER(e,"offlineVideoPolicy"),3)}h=t.l;l=[];m=g.q(h);for(n=m.next();!n.done;n=m.next())p=n.value,Number(p.lastUpdatedTimestampSeconds)+43200<=f&&(r=qR(p.key).entityId,l.push(r));return l.length?g.w(t,Qwa(d,l),0):t.ub(0)})})};
Swa=function(a){return g.D(a,function c(){var d,e,f,h,l,m;return g.z(c,function(n){switch(n.i){case 1:return g.w(n,GR(),2);case 2:d=n.l;if(!d)return n.return();e=Date.now()/1E3;return g.w(n,ER(d,"offlineVideoPolicy"),3);case 3:f=n.l,h=g.q(f),l=h.next();case 4:if(l.done){n.ub(0);break}m=l.value;if(!(m.expirationTimestamp&&Number(m.expirationTimestamp)<e)){n.ub(5);break}m.action="OFFLINE_VIDEO_POLICY_ACTION_DISABLE";return g.w(n,CR(d,m,"offlineVideoPolicy"),5);case 5:l=h.next(),n.ub(4)}})})};
Uwa=function(){g.D(this,function b(){var c,d;return g.z(b,function(e){if(1==e.i)return c=[],g.w(e,GR(),2);(d=e.l)&&c.push(AR(d,"readwrite",function(f){var h=Twa.map(function(l){return gva(f,l)});
return Pv.all(h)}));
c.push(sva(),yla().then(function(f){return f?Kla():Promise.resolve()}));
return g.w(e,Promise.all(c),0)})})};
Vwa=function(){for(var a=ZS.length;4>a;a++){var b=g.ng("VIDEO");b.load();ZS.push(new g.TN(b))}};
Wwa=function(){this.l=200;this.i=12};
Xwa=function(a){var b=new Wwa;b.l=g.T(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.T(a.experiments,"html5_gapless_max_played_ranges");return b};
g.$S=function(a,b,c,d){d=void 0===d?!1:d;wK.call(this);this.i=a;this.start=b;this.end=c;this.B=d};
Ywa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.u;if(b.jl()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.md())&&b.isView()&&(b=b.i),b&&b.Ko().length>a.i&&g.JH(e)))return"played-ranges";if(!e.u)return null;if(!e.u.i||!c.i)return"non-dash";if(e.u.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.JH(f)&&g.JH(e))return"content-protection";a=c.i[0].audio;
e=e.u.i[0].audio;return a.sampleRate===e.sampleRate||g.aj?(a.i||2)!==(e.i||2)?"channel-count":null:"sample-rate"};
aT=function(){var a=this;this.i=this.l=haa;this.promise=new Ng(function(b,c){a.l=b;a.i=c})};
bT=function(a,b,c,d){g.E.call(this);var e=this;this.policy=a;this.i=b;this.l=c;this.B=this.u=null;this.G=-1;this.J=!1;this.C=new aT;this.pj=d-1E3*b.Lc();this.C.then(void 0,function(){});
this.timeout=new g.J(function(){e.re("timeout")},1E4);
g.F(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.ea()};
cxa=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,u;return g.z(c,function(x){if(1==x.i){e=d;if(d.Ha())return x.return(Promise.reject(Error(d.status.error||"disposed")));d.ea();d.timeout.start();f=g.cT.Ju("gtfta");return g.w(x,d.C,2)}g.cT.Ss(f);h=d.i.md();if(h.ck())return d.re("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.B||!tE(d.B))return d.re("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.l.mediaSource!==
d.B)return d.re("next_mse_mismatch"),x.return(Promise.reject(Error(d.status.error||"")));l=Zwa(d);m=l.BI;n=l.FG;p=l.AI;d.i.yg(!1,!0);r=$wa(h,m,p,!d.l.getVideoData().isAd());dT(d.l,r);d.K&&(d.l.seekTo(d.l.getCurrentTime()+.001,{Ct:!0,BD:3,ke:"gapless_pseudo"}),r.play()||Xs());t=h.Cb();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.l.Ja("gapless",g.nE(t));d.i.Ja("gaplessTo",d.l.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.l.getPlayerType();axa(d.i,n,!1,u,d.l.getVideoData().clientPlaybackNonce);
axa(d.l,d.l.getCurrentTime(),!0,u,d.i.getVideoData().clientPlaybackNonce);g.Ig(function(){!e.l.getVideoData().Ya&&g.HK(e.l.getPlayerState())&&bxa(e.l)});
eT(d,6);d.dispose();return x.return(Promise.resolve())})})};
fxa=function(a){if(a.l.getVideoData().u){fT(a.l,a.B);eT(a,3);dxa(a);var b=exa(a),c=b.kK;b=b.qU;c.subscribe("updateend",a.Xp,a);b.subscribe("updateend",a.Xp,a);a.Xp(c);a.Xp(b)}};
dxa=function(a){a.i.unsubscribe("internalvideodatachange",a.Sn,a);a.l.unsubscribe("internalvideodatachange",a.Sn,a);a.i.unsubscribe("mediasourceattached",a.Sn,a);a.l.unsubscribe("statechange",a.Dc,a)};
$wa=function(a,b,c,d){a=a.isView()?a.i:a;return new g.$S(a,b,c,d)};
eT=function(a,b){a.ea();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.C.resolve(void 0))};
Zwa=function(a){var b=a.i.md();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:gT(a.i,!0);c=Math.min(a.pj/1E3,c)+b;var d=a.K?100:0;a=c-a.l.jl()+d;return{qO:b,BI:a,FG:c,AI:Infinity}};
exa=function(a){return{kK:a.u.i.jd,qU:a.u.l.jd}};
hT=function(a){g.E.call(this);var b=this;this.api=a;this.C=this.i=this.l=null;this.J=!1;this.B=null;this.K=Xwa(this.api.T());this.u=null;this.G=function(){g.Ig(function(){gxa(b)})}};
hxa=function(a,b,c,d){d=void 0===d?0:d;a.ea();a.Mq()||iT(a);a.B=new aT;a.l=b;var e=c,f=a.api.Kc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*gT(f,!0);e>h&&(e=h-a.K.l,a.J=!0);f.getCurrentTime()>=e/1E3?a.G():(a.i=f,f=e,e=a.i,a.api.addEventListener(g.Iz("vqueued"),a.G),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.C=new g.Fz(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.C));f=d/=1E3;e=b.getVideoData().i;if(d&&e&&a.i){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
1E3,gT(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,gT(b)+l));f=cka(e,h)||d;f!==d&&a.l.Ja("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.l;if(e=a.api.Kc())d.Jb=e;d.getVideoData().Kb=!0;d.getVideoData().Ua=!0;VS(d,!0);e="";a.i&&(e=g.jT(a.i.C.l),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ja("queued",e);0!==b&&d.seekTo(b+.01,{Ct:!0,BD:3,ke:"videoqueuer_queued"});a.u=new bT(a.K,a.api.Kc(),a.l,c);c=a.u;c.ea();Infinity!==c.status.status&&(eT(c,
1),c.i.subscribe("internalvideodatachange",c.Sn,c),c.l.subscribe("internalvideodatachange",c.Sn,c),c.i.subscribe("mediasourceattached",c.Sn,c),c.l.subscribe("statechange",c.Dc,c),c.i.subscribe("newelementrequired",c.dJ,c),c.Sn());return a.B};
gxa=function(a){g.D(a,function c(){var d=this,e,f,h,l;return g.z(c,function(m){switch(m.i){case 1:e=d;if(d.Ha())return m.return();d.ea();if(!d.B||!d.l)return d.ea(),m.return();d.J&&kT(d.api.Kc(),!0,!1);f=null;if(!d.u){m.ub(2);break}ta(m,3);return g.w(m,cxa(d.u),5);case 5:ua(m,2);break;case 3:f=h=va(m);case 2:return d.api.Pv(d.l),g.cT.PC("vqsp",function(){e.api.jj(e.l.getPlayerType())}),g.cT.PC("vqpv",function(){e.api.playVideo()}),f&&ixa(d.l,f.message),l=d.B,iT(d),m.return(l.resolve(void 0))}})})};
iT=function(a){if(a.i){var b=a.i;a.api.removeEventListener(g.Iz("vqueued"),a.G);b.removeCueRange(a.C);a.i=null;a.C=null}a.u&&(a.u.isFinished()||(b=a.u,Infinity!==b.status.status&&b.re("Canceled")),a.u=null);a.B=null;a.l=null;a.J=!1};
jxa=function(){var a=Ht();return!(!a||"visible"===a)};
lxa=function(a){var b=kxa();b&&document.addEventListener(b,a,!1)};
mxa=function(a){var b=kxa();b&&document.removeEventListener(b,a,!1)};
kxa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Gt+"VisibilityState"])return"";a=Gt+"visibilitychange"}return a};
lT=function(){g.Q.call(this);var a=this;this.fullscreen=0;this.l=this.pictureInPicture=this.i=this.u=this.inline=!1;this.B=function(){a.Fe()};
lxa(this.B);this.C=this.getVisibilityState(this.zf(),this.isFullscreen(),this.Ce(),this.isInline(),this.Lq(),this.Jq())};
nxa=function(a){this.end=this.start=a};
g.oT=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.l=b;this.i=c;this.Ea=new Map;this.Pa=new Map;this.C=new Map;this.G=[];this.B=[];this.Va=NaN;this.Aa=this.ma=null;this.Ua=new g.J(function(){mT(d,d.Va)});
this.events=new g.qN(this);this.isLiveNow=!0;this.bb=g.T(this.l.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.J=new g.J(function(){d.K=!0;d.i.Ja("sdai","aftimeout."+d.bb.toString());nT(d,!1);d.xa=!1},this.bb);
this.K=!1;this.va=new Map;this.La=[];this.Y=null;this.X=[];this.jb=[];this.eb=[];this.u=void 0;this.Ya=0;this.Ga=!0;this.xa=this.U=!1;this.Da=[];this.i.getPlayerType();oxa(this.i,this);g.F(this,this.Ua);g.F(this,this.events);g.F(this,this.J);this.events.N(this.api,g.Iz("serverstitchedcuerange"),this.yd);this.events.N(this.api,g.Jz("serverstitchedcuerange"),this.bf)};
rxa=function(a,b,c,d,e,f,h){var l=pxa(a,e,e+d);a.K&&a.i.Ja("sdai","adaftto");var m=g.S(a.l.experiments,"web_player_ssdai_reject_invalid_ads_killswitch"),n=a.i;f=void 0===f?e+d:f;e===f&&!d&&a.l.Z("html5_allow_zero_duration_ads_on_timeline")&&a.i.Ja("sdai","attl0d");if(e>f&&(a.wd("Invalid playback enterTimeMs="+e+" is greater than parentReturnTimeMs="+f),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&(a.wd("Invalid playback enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+p),m))return"";
n=1E3*n.getDuration();if(f>n&&(a.wd("Invalid playback parentReturnTimeMs="+f+" is greater than parentDurationMs="+n),m))return"";n=null;p=g.q(a.B);for(var r=p.next();!r.done;r=p.next()){r=r.value;if(e>=r.Ic&&e<r.pd&&(a.wd("Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} overlaps existing ChildPlayback "+pT(r))),m)||f<=r.pd&&f>r.Ic&&(a.wd("Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+
e+" parentReturnTimeMs="+f+"} overlaps existing ChildPlayback "+pT(r))),m)||f===r.Ic&&(a.wd("Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+e+" parentReturnTimeMs="+f+"} added after existing ChildPlayback "+pT(r))),m))return"";e===r.pd&&(n=r)}if(l&&n)for(m=g.q(a.X.entries()),p=m.next();!p.done;p=m.next()){if(p=g.q(p.value),r=p.next().value,p.next().value.identifier===l.identifier){a.X.splice(r,1);break}}else if(l&&g.S(a.l.experiments,"web_player_ss_timeout_skip_ads"))return a.i.Ja("sdai",
"rejectAttl"),h&&!sn(a.eb,function(t){return t===h})&&(a.i.Ja("sdai","rejectAdBreakAttl"),a.eb.push(h)),"";
l="childplayback_"+qxa++;m=b.raw_player_response;m||g.S(a.l.experiments,"web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=zx());p=b.cpn;b=new g.rH(a.l,b);b.Wc=l;c={Wc:l,playerType:c,durationMs:d,Ic:e,pd:f,playerResponse:m,cpn:p,videoData:b};a.B=a.B.concat(c).sort(function(t,u){return t.Ic-u.Ic});
h?c.Mi=h:n?c.Mi=n.Mi:c.Mi=c.cpn;a.J.isActive()&&(a.K=!1,a.J.stop(),nT(a,!0));a.ea();return l};
sxa=function(a,b){return new g.Fz(a,b,{namespace:"serverstitchedcuerange",priority:7})};
txa=function(a,b,c){var d=a.U,e={cpn:a.i.getVideoData().clientPlaybackNonce,durationMs:0,Ic:0,playerType:1,pd:0,videoData:a.i.getVideoData()};if(b.isAd&&c.isAd){e=a.B.find(function(h){return h.cpn===b.adCpn});
var f=a.B.find(function(h){return h.cpn===c.adCpn});
f&&e&&(a.api.W("serverstitchedvideochange",e.Wc),qT(a.i,f,e,c.Ql,b.Ql,d))}else!b.isAd&&c.isAd?(a.api.W("serverstitchedvideochange"),f=c.Td,a.Ya=f.end-f.start,(f=a.B.find(function(h){return h.cpn===c.adCpn}))&&qT(a.i,f,e,c.Ql,b.Ql,d)):b.isAd&&!c.isAd&&(f=a.B.find(function(h){return h.cpn===b.adCpn}))&&(a.api.W("serverstitchedvideochange",f.Wc),a.Ya=0,qT(a.i,e,f,c.Ql,b.Ql,d))};
rT=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.B);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Ic/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{Xk:e,Zo:b-d};d=h-e.pd/1E3}return{Xk:void 0,Zo:b-d}};
sT=function(a,b){var c=uxa(a,b);if(c)return a.B.find(function(d){return d.cpn===a.C.get(c)})};
uxa=function(a,b){a=g.q(a.C.keys());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
mT=function(a,b){var c=a.Aa||a.api.Kc().getPlayerState();tT(a,!0);var d=b;g.S(a.l.experiments,"web_player_ssdai_seek_without_offset_killswitch")&&(d=rT(a,b).Zo);a.i.seekTo(d);a=a.api.Kc();b=a.getPlayerState();g.HK(c)&&!g.HK(b)?a.playVideo():g.U(c,4)&&!g.U(b,4)&&a.pauseVideo()};
tT=function(a,b){a.Va=NaN;a.Ua.stop();a.ma&&b&&uT(a.ma);a.Aa=null;a.ma=null};
vT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ea();for(var d=b,e=c,f=[],h=g.q(a.B),l=h.next();!l.done;l=h.next())l=l.value,(l.Ic<d||l.pd>e)&&f.push(l);a.B=f;d=b;e=c;f=g.q(a.C.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.i.removeCueRange(h),a.C.delete(h));d=rT(a,b/1E3);b=d.Xk;d=d.Zo;b&&(d=1E3*d-b.Ic,e=b.Ic+d,a.ea(),b.durationMs=d,b.pd=e,vxa(a,b));(b=rT(a,c/1E3).Xk)&&a.wd("Invalid clearEndTimeMs="+c+" that falls during "+pT(b)+".Child playbacks can only have duration updated not their start.")};
vxa=function(a,b){for(var c=null,d=g.q(a.C),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value===b.cpn&&(c=f)}if(c){a=g.q(a.G);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Ic+b.durationMs:d.end===c.start&&(d.end=b.Ic);c.start=b.Ic;c.end=b.Ic+b.durationMs}};
pT=function(a){var b;return"playback={timelinePlaybackId="+a.Wc+" video_id="+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+" durationMs="+a.durationMs+" enterTimeMs="+a.Ic+" parentReturnTimeMs="+a.pd+"}"};
wxa=function(a,b,c){c=a.va.get(c);c||(c=0,a.l.Z("web_player_ss_media_time_offset")&&(c=0===a.i.getStreamTimeOffset()?a.i.Lc():a.i.getStreamTimeOffset()),c=rT(a,b+c,1).Xk);return c};
xxa=function(a,b,c,d){var e,f;if(3===d)return"";if(!g.S(a.l.experiments,"html5_ssdai_use_cached_daistate_killswitch")){if(1===d&&a.Ea.has(b))return a.Ea.get(b);if(2===d&&a.Pa.has(b))return a.Pa.get(b)}d=null===(f=null===(e=a.i.getVideoData().i.i[c])||void 0===e?void 0:e.index)||void 0===f?void 0:f.getStitchedVideoInfo(b);return d?d.i:(a.i.Ja("sdai","gdu.nodaist.seg."+b+".itag."+c),"")};
wT=function(a,b,c,d){if(d)for(d=0;d<a.G.length;){var e=a.G[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;yxa(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.i.removeCueRange(e);a.Da.includes(e)&&a.bf(e);a.G.splice(d,1);continue}d++}else yxa(a,b,c)};
yxa=function(a,b,c){b=sxa(b,c);c=!0;g.Bb(a.G,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.G.length;){if(0<d){var e=a.G[d],f=a.G[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.i.removeCueRange(e):c=!1;a.G.splice(d,1);continue}}d++}c&&a.i.addCueRange(b)};
xT=function(a,b,c){if(void 0===c||!c){c=g.q(a.La);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.La.push(new nxa(b))}};
g.zxa=function(a,b){a=g.q(a.La);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
Axa=function(a,b){var c=[];a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.Mi===b&&d.cpn&&c.push(d.cpn);return c};
Bxa=function(a,b){var c,d=[];a=g.q(a.B);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=null===(c=e.videoData)||void 0===c?void 0:c.videoId;e.Mi===b&&f&&d.push(f)}return d};
pxa=function(a,b,c){if(a.X.length)for(var d={},e=g.q(a.X),f=e.next();!f.done;d={Bn:d.Bn},f=e.next()){d.Bn=f.value;f=1E3*d.Bn.startSecs;var h=1E3*d.Bn.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return sn(a.jb,function(l){return function(m){return m.identifier===l.Bn.identifier}}(d))||(a.i.Ja("sdai","adskip_"+b),a.jb.push(d.Bn)),d.Bn}};
nT=function(a,b){g.S(a.l.experiments,"html5_high_res_logging")&&a.i.Ja("sdai","adf.0");a.K&&a.Y&&a.X.push(a.Y);a.Y=null;a=a.i;if(a.l){a=a.l;var c=a.u,d=a.currentTime;yT(c,"sdai","adfetchdone_"+b);b&&!isNaN(c.C)&&Cxa(c,d,c.C,c.B);c.l=4;g.Eq(a.Y)}};
zT=function(a,b,c){g.E.call(this);var d=this;this.api=a;this.C=b;this.l=c;this.J=new Map;this.i=[];this.u=this.K=null;this.Y=NaN;this.G=this.B=null;this.U=new g.J(function(){Dxa(d,d.Y)});
this.X=[];this.ma=new g.J(function(){var e=d.X.pop();if(e){var f=e.Wc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.X.length&&g.Eq(d.ma,4500))}});
this.events=new g.qN(this);c.getPlayerType();g.F(this,this.U);g.F(this,this.ma);g.F(this,this.events);this.events.N(this.api,g.Iz("childplayback"),this.yd);this.events.N(this.api,"onQueuedVideoLoaded",this.vS);this.events.N(this.api,"presentingplayerstatechange",this.Tg)};
Hxa=function(a,b,c,d,e,f){var h=a.l;f=void 0===f?e+d:f;if(e>f)return a.wd("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.getMinSeekableTime();if(e<l)return a.wd("e.enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+l),"";l=1E3*h.getDuration();if(f>l)return h="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+h.Lc(),a.wd(h),"";l=null;
for(var m=g.q(a.i),n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Ic&&e<n.pd)return a.wd("e.overlappingEnter"),a.ea(),"";if(f<=n.pd&&f>n.Ic)return a.wd("e.overlappingReturn"),a.ea(),"";if(f===n.Ic)return a.wd("e.outOfOrder"),a.ea(),"";e===n.pd&&(l=n)}m="childplayback_"+Exa++;n={Td:AT(d,!0),pj:Infinity,target:null};var p={Wc:m,playerVars:b,playerType:c,durationMs:d,Ic:e,pd:f,wm:n};a.i=a.i.concat(p).sort(function(u,x){return u.Ic-x.Ic});
l?Fxa(a,l,{Td:AT(l.durationMs,!0),pj:a.C.Z("timeline_manager_transition_killswitch")?Infinity:l.wm.pj,target:p}):(b={Td:AT(e,!1),pj:e,target:p},a.J.set(b.Td,b),a.ea(),h.addCueRange(b.Td));b=g.S(a.C.experiments,"html5_gapless_preloading");if(a.l===a.api.Kc()&&(h=1E3*h.getCurrentTime(),h>=p.Ic&&h<p.pd)){var r=a.api.Kc().getPlayerState(),t=h-p.Ic;Bg(function(){Gxa(a,p,t/1E3,r)});
b=!1}b&&(a.X.unshift(p),g.Eq(a.ma,0));a.ea();return m};
AT=function(a,b){return new g.Fz(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
Ixa=function(a,b,c,d){a.ea();a.u=d;a.api.Zv(a.l,c,b)};
Jxa=function(a,b,c,d){a.ea();a.u=d;d=b.Wc;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
Fxa=function(a,b,c){var d=b.wm;b.wm=c;BT(a,b)&&(c=a.api.Kc(),d.Td===a.u&&CT(a),a.ea(),c.removeCueRange(d.Td),b=b.wm,a.ea(),c.addCueRange(b.Td))};
CT=function(a){a.K=null;a.u=null;a.api.Mq()||a.api.clearQueue()};
Kxa=function(a,b){BT(a,b)||a.wd("e.childPlaybackIsNotPresenting");return b.pd===b.Ic+b.durationMs?(a=a.api.Kc(),b.Ic+1E3*a.getCurrentTime()):b.pd};
DT=function(a,b){var c=0;a=g.q(a.i);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Ic/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Xk:d,Zo:b-e};c=f-d.pd/1E3}return{Xk:null,Zo:b-c}};
Dxa=function(a,b){var c=a.G||a.api.Kc().getPlayerState();ET(a,!0);b=g.S(a.C.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:FT(a.l);var d=DT(a,b);b=d.Xk;d=d.Zo;var e=b&&!BT(a,b)||!b&&a.l!==a.api.Kc(),f=1E3*d;f=a.u&&a.u.start<=f&&f<=a.u.end;!e&&f||CT(a);a.ea();b?(a.ea(),Gxa(a,b,d,c)):(a.ea(),GT(a,d,c))};
GT=function(a,b,c){var d=a.l,e=a.api.Kc();d!==e&&a.api.jj(d.getPlayerType());d.seekTo(b,{ke:"application_timelinemanager"});Lxa(a,c)};
Gxa=function(a,b,c,d){var e=BT(a,b);if(!e){a.api.jj(b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.rH(a.C,b.playerVars);f.Wc=b.Wc;a.api.Tm(f,b.playerType)}f=a.api.Kc();e||(b=b.wm,a.ea(),f.addCueRange(b.Td));f.seekTo(c,{ke:"application_timelinemanager"});Lxa(a,d)};
Lxa=function(a,b){a=a.api.Kc();var c=a.getPlayerState();g.HK(b)&&!g.HK(c)?a.playVideo():g.U(b,4)&&!g.U(c,4)&&a.pauseVideo()};
ET=function(a,b){a.Y=NaN;a.U.stop();a.B&&b&&uT(a.B);a.G=null;a.B=null};
BT=function(a,b){a=a.api.Kc();return!!a&&a.getVideoData().Wc===b.Wc};
Mxa=function(a){var b=a.i.find(function(d){return BT(a,d)});
if(b){CT(a);var c=new g.BK(8);b=Kxa(a,b)/1E3;GT(a,b,c);a.l.Ja("forceParentTransition","presentingPlaybackError")}};
HT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ea();for(var d=b,e=c,f=g.q(a.J),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.pj>=d&&l.target&&l.target.pd<=e&&(a.l.removeCueRange(h),a.J.delete(h))}d=b;e=c;f=[];h=g.q(a.i);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ic>=d&&l.pd<=e){var m=a;m.K===l&&CT(m);BT(m,l)&&m.api.jn(l.playerType)}else f.push(l);a.i=f;d=DT(a,b/1E3);b=d.Xk;d=d.Zo;b&&(d*=1E3,Nxa(a,b,d,b.pd===b.Ic+b.durationMs?b.Ic+d:b.pd));
(b=DT(a,c/1E3).Xk)&&a.wd("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Wc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ic+" parentReturnTimeMs="+b.pd+"}.Child playbacks can only have duration updated not their start."))};
Nxa=function(a,b,c,d){a.ea();b.durationMs=c;b.pd=d;d={Td:AT(c,!0),pj:c,target:null};Fxa(a,b,d);BT(a,b)&&1E3*a.api.Kc().getCurrentTime()>c&&(b=Kxa(a,b)/1E3,c=a.api.Kc().getPlayerState(),GT(a,b,c))};
Pxa=function(a){a&&"web"!==a&&Oxa.includes(a)};
KT=function(a,b){g.E.call(this);var c=this;this.data=[];this.u=a||NaN;this.l=b||null;this.i=new g.J(function(){IT(c);JT(c)});
g.F(this,this.i)};
IT=function(a){var b=(0,g.P)();a.data.forEach(function(c){c.expire<b&&LT(a,c,!0)});
a.data=g.Po(a.data,function(c){return!(c.expire<b)})};
LT=function(a,b,c){c&&a.l&&a.l(b.value)};
JT=function(a){a.i.stop();var b=Infinity;for(var c=g.q(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.i.start(b))};
MT=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.l=this.i=a-1};
Qxa=function(a){return a.data[a.i]||0};
NT=function(a){g.E.call(this);this.B=a;this.i=new Map;this.l=new g.J(this.u,250,this);g.F(this,this.l);this.start()};
OT=function(a,b){var c;if(null===(c=a.i.get(b))||void 0===c)a=void 0;else{a=c.buffer;for(b=[];a.l!==a.i;)a.l=(a.l+1)%a.data.length,b.push(a.data[a.l]);a=b}return a||[]};
PT=function(a,b){var c;return(null===(c=a.i.get(b))||void 0===c?void 0:Qxa(c.buffer))||0};
QT=function(a){this.l=a;this.i=NaN;this.buffer=new MT(100)};
Rxa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.kc()+")":a.kc()};
RT=function(a,b){g.E.call(this);var c=this;this.i=null;for(var d=[],e=0;100>=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.l=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.i=null:c.i=f.isVisible?f.intersectionRatio:0:c.i=f.intersectionRatio},e):null)&&this.l.observe(a)};
Sxa=function(a,b){ex(a,"version",b)};
TT=function(a){g.V.call(this,{D:"div",Ca:["html5-video-player"],V:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{D:"div",L:g.ST.VIDEO_CONTAINER,V:{"data-layer":"0"}}]});var b=this;this.app=a;this.Fs=this.Ba(g.ST.VIDEO_CONTAINER);this.Yq=new g.pl(0,0,0,0);this.Eb=null;this.Mx=new g.pl(0,0,0,0);this.rB=this.cC=this.bC=NaN;this.Kw=this.nG=!1;this.DA=NaN;this.MB=!1;this.Nt=null;this.dispatchEvent=function(){};
this.rC=function(){b.element.focus()};
this.Jy=null;var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.T();e.transparentBackground&&this.dm("ytp-transparent");"0"===e.controlsType&&this.dm("ytp-hide-controls");g.K(this.element,"ytp-exp-bottom-control-flexbox");e.Z("html5_player_bottom_linear_gradient")&&g.K(this.element,"ytp-linear-gradient-bottom-experiment");e.Z("web_player_bigger_buttons_like_mobile")&&g.K(this.element,"ytp-exp-bigger-button-like-mobile");e.Z("enable_new_paid_product_placement")&&!g.FG(e)&&g.K(this.element,"ytp-exp-ppp-update");Sxa(this.element,Txa(a));this.mK=!1;zG(e)&&
"blazer"!==e.playerStyle&&window.matchMedia&&(this.Jy="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.Sf(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.Sf(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.Sf(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Sf(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Sf(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.Sf(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.Sf(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Sf(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Sf(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.Sf(640,360)}]);this.UD=e.useFastSizingOnWatchDefault;this.Ts=new g.Sf(NaN,NaN);Uxa(this);this.N(a.Wa,"onMutedAutoplayChange",this.au)};
Uxa=function(a){function b(){a.Eb&&UT(a);VT(a)!==a.MB&&a.resize()}
function c(h,l){a.Gq(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.Mx=new g.pl(0,0,0,0);a.Yq=new g.pl(0,0,0,0)}
var f=a.app.Wa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.gf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
Vxa=function(a){var b=g.W(a.app);if(b=b?b.getVideoData():null){if(g.QH(b)||g.RH(b)||g.TH(b))return 16/9;if(xH(b)&&b.u.i)return a=b.u.videoInfos[0].video,WT(a.width,a.height)}return(a=a.Eb)?WT(a.videoWidth,a.videoHeight):16/9};
Wxa=function(a,b,c,d){var e=c,f=WT(b.width,b.height);a.nG?e=c<f?Infinity:0:isNaN(a.rB)?isNaN(a.cC)||(e=a.cC):e=a.rB;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
WT=function(a,b){return 1>Math.abs(XT*b-a)||1>Math.abs(XT/a-b)?XT:a/b};
VT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.W(a.app);if(!b||b.vl())return!1;var c=a.app.Wa.sb();a=!g.U(c,2)||!g.S(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ua;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()};
UT=function(a){var b="3"===a.app.T().controlsType&&!a.Kw&&VT(a)&&!a.app.Rt||!1;a.Eb.controls=b;a.Eb.tabIndex=b?0:-1;b?a.Eb.removeEventListener("focus",a.rC):g.S(a.app.T().experiments,"disable_focus_redirect")||a.Eb.addEventListener("focus",a.rC)};
Xxa=function(a){var b=a.Zf(),c=1,d=!1,e=Wxa(a,b,a.getVideoAspectRatio()),f=pt();if(VT(a)){var h=Vxa(a);var l=isNaN(h)||g.tw||ZT&&g.cj;qt&&!g.Wd(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.pl(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.pl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.cj&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));if(f||a.mK)a.Eb.style.display="";a.MB=!0}else{l=-b.height;qt?l*=window.devicePixelRatio:g.IG&&(l-=window.screen.height);
l=new g.pl(0,l,b.width,b.height);if(f||a.mK)a.Eb.style.display="none";a.MB=!1}ql(a.Mx,l)||(a.Mx=l,g.UF(a.app.T())?(a.Eb.style.setProperty("width",l.width+"px","important"),a.Eb.style.setProperty("height",l.height+"px","important")):g.Nl(a.Eb,new g.Sf(l.width,l.height)),d=new g.Qf(l.left,l.top),g.Gl(a.Eb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.pl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);ql(a.Yq,b)||(a.Yq=b,d=!0);g.zl(a.Eb,"transform",1===c?"":"scaleX("+c+")");return d};
Yxa=function(){this.csn=g.Ix();this.clientPlaybackNonce=null;this.elements=new Set;this.u=new Set;this.i=new Set;this.l=new Set};
Zxa=function(a,b){a.elements.has(b);a.elements.delete(b);a.u.delete(b);a.i.delete(b);a.l.delete(b)};
$xa=function(a){if(a.csn!==g.Ix())if("UNDEFINED_CSN"===a.csn)a.csn=g.Ix();else{var b=g.Ix(),c=g.Gx();if(b&&c){a.csn=b;for(var d=g.q(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.hy(b,c,e)}if(b)for(a=g.q(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.by(b,c,void 0)}};
$T=function(a,b,c,d,e){g.V.call(this,{D:"div",L:"ytp-horizonchart"});this.C=b;this.sampleCount=c;this.u=d;this.B=e;this.index=0;this.heightPx=-1;this.l=this.ctx=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.C+"em"};
aU=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.ng("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.i*a.sampleCount;a.l=c;a.l.width=d;a.l.style.width=d+"px";a.element.appendChild(a.l)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.i*=4,c=0;c<a.sampleCount;c++)d=g.ng("SPAN"),d.style.width=a.i+"px",d.style.left=a.i*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.ctx&&(c=1<(window.devicePixelRatio||1)?2:1,a.l.height=a.heightPx*
c,a.l.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.q(b);for(c=b.next();!c.done;c=b.next())a.setValue(a.index,c.value),a.index=(a.index+1)%a.sampleCount;b=a.index;a.ctx?a.ctx.clearRect(b*a.i,0,a.i,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
bU=function(a){var b=null;b={D:"button",Ca:["html5-video-info-panel-close","ytp-button"],V:{title:"close"},oa:"[x]"};g.V.call(this,{D:"div",L:"html5-video-info-panel",S:[b,{D:"div",L:"html5-video-info-panel-content",S:[{D:"div",S:[{D:"div",oa:"Video ID / sCPN"},{D:"span",oa:"{{video_id_and_cpn}}"}]},{D:"div",S:[{D:"div",oa:"Viewport / Frames"},{D:"span",oa:"{{dims_and_frames}}"}]},{D:"div",S:[{D:"div",oa:"Current / Optimal Res"},{D:"span",oa:"{{resolution}}"}]},{D:"div",S:[{D:"div",oa:"Volume / Normalized"},
{D:"span",oa:"{{volume}}"}]},{D:"div",S:[{D:"div",oa:"Codecs"},{D:"span",oa:"{{codecs}}"}]},{D:"div",V:{style:"{{shader_info_style}}"},S:[{D:"div",oa:"Shader Info"},{D:"span",oa:"{{shader_info}}"}]},{D:"div",V:{style:"{{color_style}}"},S:[{D:"div",oa:"Color"},{D:"span",oa:"{{color}}"}]},{D:"div",V:{style:"{{drm_style}}"},S:[{D:"div",oa:"Protected"},{D:"span",oa:"{{drm}}"}]},{D:"div",V:{style:"{{bandwidth_style}}"},S:[{D:"div",oa:"Connection Speed"},{D:"span",S:[{D:"span",oa:"{{bandwidth_chart}}"},
{D:"span",oa:"{{bandwidth_kbps}}"}]}]},{D:"div",V:{style:"{{network_activity_style}}"},S:[{D:"div",oa:"Network Activity"},{D:"span",S:[{D:"span",oa:"{{network_activity_chart}}"},{D:"span",oa:"{{network_activity_bytes}}"}]}]},{D:"div",S:[{D:"div",oa:"Buffer Health"},{D:"span",S:[{D:"span",oa:"{{buffer_health_chart}}"},{D:"span",oa:"{{buffer_health_seconds}}"}]}]},{D:"div",V:{style:"{{live_latency_style}}"},S:[{D:"div",oa:"Live Latency"},{D:"span",S:[{D:"span",oa:"{{live_latency_chart}}"},{D:"span",
oa:"{{live_latency_secs}}"}]}]},{D:"div",V:{style:"{{live_mode_style}}"},S:[{D:"div",oa:"Live Mode"},{D:"span",oa:"{{live_mode}}"}]},{D:"div",V:{style:"{{playback_categories_style}}"},S:[{D:"div",oa:"Playback Categories"},{D:"span",oa:"{{playback_categories}}"}]},{D:"div",S:[{D:"div",oa:"Mystery Text"},{D:"span",oa:"{{debug_info}}"}]},{D:"div",V:{style:"{{cotn_and_local_media_style}}"},S:[{D:"div",oa:"COTN / Local Media"},{D:"span",oa:"{{cotn_and_local_media}}"}]},{D:"div",V:{style:"{{release_style}}"},
S:[{D:"div",oa:"Player Release"},{D:"span",oa:"{{release_name}}"}]}]}]});b&&(b=this.Ba("html5-video-info-panel-close"),this.N(b,"click",this.hide));b=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.i=new $T(300,1,150,b,c);g.F(this,this.i);this.Sa("bandwidth_chart",this.i);this.u=new $T(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.F(this,this.u);this.Sa("live_latency_chart",this.u);this.l=new $T(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.F(this,this.l);this.Sa("buffer_health_chart",this.l);this.B=new $T(300,1,150,d,c);g.F(this,this.B);this.Sa("network_activity_chart",this.B);this.delay=new g.J(this.Ma,
500,this);g.F(this,this.delay);this.C=a};
aya=function(a){a=void 0===a?{}:a;var b=a.Jf,c=a.Ag,d=a.getLastSegmentNumber,e=a.Dq;this.al=a.al;this.Jf=b;this.Ag=c;this.getLastSegmentNumber=d;this.Dq=e};
bya=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.al||b===c&&(a=a.Dq())&&b===a.Ka?!0:!1};
cya=function(a,b,c){if(!bya(a,b))return 0;if(!a.Jf||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.Dq())&&b===a.Ka&&!a.pending?2:1};
dya=function(a){this.schedule=a;this.i=NaN;this.l=[];this.totalBytes=0};
cU=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.Oh?!1:e.Oh;var f=void 0===e.dk?!1:e.dk,h=e.Rg,l=e.Ka;e=e.ye;this.schedule=a;this.Os=b;this.Ua=c;this.Aa=null;this.xa=this.i=NaN;this.Pa=0;this.ma=this.Ea=this.l=this.B=NaN;this.Ga=this.va=this.isActive=!1;this.u=0;this.Y=NaN;this.K=this.G=Infinity;this.X=NaN;this.La=!1;this.J=this.U=NaN;this.C=this.Da=void 0;this.Oh=d;this.dk=f;this.Rg=h;this.Ka=l;this.ye=e;this.snapshot=yF(this.schedule)};
eya=function(a){return{rt:(a.now()-a.i).toFixed(),lb:a.l.toFixed(),pt:(1E3*a.Y).toFixed(),pb:a.Os.toFixed(),stall:(1E3*a.u).toFixed(),elbowTime:(a.xa-a.i).toFixed(),elbowBytes:a.Pa.toFixed()}};
hya=function(a){a.i=a.now();a.B=a.i;a.l=0;a.Ea=a.i;a.ma=0;a.C&&(a.C=[]);a.va=!1;a.Ga=!1;a.u=0;a.snapshot=yF(a.schedule);a.G=Infinity;a.K=Infinity;fya(a);gya(a,a.i);a.Y=(a.U-a.i)/1E3;a.J=NaN;a.Da=void 0};
dU=function(a){!a.J&&a.Aa&&(a.J=a.Aa(),3===a.J&&(a.Da=new dya(a.schedule)));return a.J};
jya=function(a,b,c){var d=(b-a.B)/1E3,e=c-a.l,f=dU(a);if(3===f&&e){var h=a.Da;h.l.push({Q7:e,l8:isNaN(h.i)?NaN:b-h.i,V7:b});h.i=b}a.isActive?1===f&&0<e&&(.2<d||1024>e?(a.u+=d,.2<d&&fU(a,.05,e)):fU(a,d,e),a.Ga=!0):eU(a,c)&&(1===f&&(f=(b-a.i)/1E3,iya(a)||a.dk||(h=a.schedule,h.J.Fg(1,f),zF(h))),a.xa=b,a.Pa=c,a.isActive=!0);a.dk||Dka(a.schedule,d,e);a.B=b;a.l=c};
fU=function(a,b,c){if(!a.dk){b=Math.max(b,.05);a=a.schedule;var d=b;a.u.Fg(void 0===b?d:b,c/d);a.B=uF()}};
hU=function(a,b,c){c=Math.round(c/1024);a.C&&a.C.push(gU(b-a.Ea,c-a.ma));a.Ea=b;a.ma=c};
eU=function(a,b){return b?a.Rg&&1!==dU(a)?!0:2048<=b:!1};
iU=function(a){return eU(a,a.l)};
fya=function(a){a.X=a.i+1E3*a.snapshot.delay;a.La=!1};
jU=function(a,b){if(a.Rg&&void 0!==a.Ka&&void 0!==a.ye){var c=Math,d=c.min,e=a.G;var f=a.Rg;var h=a.i;if(bya(f,a.Ka))f=b;else{var l=0;f.Jf&&(l=.2);f=h+1E3*(f.Ag+l)}a.G=d.call(c,e,f);c=Math;d=c.min;e=a.K;f=a.Rg;h=a.i;l=cya(f,a.Ka,a.ye);2!==l&&(b=l?b:h+1E3*f.Ag,f.Jf&&(b+=1E3*f.Ag));a.K=d.call(c,e,b);a.G<=a.i?fya(a):(a.X=a.G,a.La=!0)}};
iya=function(a){a.Rg&&jU(a,a.now());return a.La};
gya=function(a,b){b=void 0===b?a.now():b;if(a.Rg){jU(a,b);var c=a.J?a.Rg?1!==dU(a):!1:a.G!==a.K;if(c){if(c=a.K,b<c){a.U=a.K;return}}else c=a.G;c=Math.max(c,a.X)}else c=a.X;var d=a.Os-a.l;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=iU(a)?d+b:d+Math.max(b,c);a.U=d};
gU=function(a,b){for(var c="";4095<a;)c+=gU(4095,0),a-=4095;for(;4095<b;)c+=gU(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
kU=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
lU=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Ac&&(d=Math.abs(d));d/=a.playbackRate;var f=1/xF(a.schedule);var h=.9*(d-a.policy.yf);h=Math.max(h,vF(a.schedule)+2048*f);c=h/f*a.policy.Gp/(b+c);c=Math.min(c,d);a.policy.bd&&e&&(c=Math.max(c,a.policy.bd));return kya(a,c,b)};
kya=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.qp*c),Math.min(Math.min(a.policy.ma,31*c),Math.ceil(b*c))))||65536};
mU=function(a){return xF(a.schedule,!a.policy.Hk,a.policy.lp)};
nU=function(a){return mU(a)/a.playbackRate};
oU=function(a,b,c,d,e){g.Q.call(this);this.l=a;this.videoTrack=b;this.audioTrack=c;this.policy=d;this.G=e;this.seekCount=this.u=0;this.i=!1;this.C=null;this.B=this.l.isManifestless&&!this.l.Le};
lya=function(a,b,c){var d=b.i.index,e=b.l.Ka;fD(d,e)||c&&c.Ka===e?(a.ea(),b.C=!fD(d,e),b.K=!fD(d,e)):(a.ea(),b.C=!0,b.K=!0)};
nya=function(a,b,c,d){a.ea();if(!b.i.Be())return 0!==c&&pU(b),c;var e=qU(b,c);if(!isNaN(e))return a.ea(),e;rU(b);return d&&(a=hE(d.Te(),c),!isNaN(a))?(sU(b,a+mya),c):sU(b,c)};
rya=function(a,b,c,d){if(a.i&&a.u){var e=oya(a,b,c);if(-1!==e){a.videoTrack.C=!1;a.audioTrack.C=!1;a.B=!0;g.Ig(function(){tU(a,"seekreason","reason.behindMinSq;tgt."+e);pya(a,e)});
return}}c?a.videoTrack.K=!1:a.audioTrack.K=!1;var f=a.policy.xj||!a.B;if(0<=qU(a.videoTrack,a.u)&&0<=qU(a.audioTrack,a.u)&&f){if(a.videoTrack.C||a.audioTrack.C)a.ea(),tU(a,"iterativeSeeking","done;count."+a.seekCount,!1);a.videoTrack.C=!1;a.audioTrack.C=!1}else d&&g.Ig(function(){if(a.B||!a.policy.La)qya(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.C:a.audioTrack.C;m=!a.Ha()&&m;var n=-1!==a.videoTrack.G&&-1!==a.audioTrack.G,p=!a.videoTrack.K&&!a.audioTrack.K;m&&n&&p&&(a.u>=h&&a.u<h+l+.1?
((c?a.videoTrack:a.audioTrack).C=!1,a.videoTrack.C||a.audioTrack.C||(a.ea(),tU(a,"iterativeSeeking","done;count."+a.seekCount,!1),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.ea(),tU(a,"iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.u+";actual."+h+";duration."+l+";isVideo."+c,!1),a.seek(a.u)):(a.ea(),tU(a,"iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.u+";actual."+h,!1),a.seekCount=0,a.videoTrack.C=!1,a.audioTrack.C=!1,a.W("seekplayerrequired",h+.1,!0)))}})};
oya=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.u);return(fD(c,a.l.Vd)||b.Ka===a.l.Vd)&&d<a.l.Vd?(a.ea(),a.l.getMinSeekableTime()):-1};
pya=function(a,b){!a.Ha()&&a.B&&-1!==a.videoTrack.G&&-1!==a.audioTrack.G&&(a.B=!1,a.ea(),a.W("seekplayerrequired",b+.1,!0))};
qya=function(a){var b=-1!==a.videoTrack.G,c=-1!==a.audioTrack.G;if(!b||!c)if(b=!b&&a.videoTrack.qg(),c=!c&&a.audioTrack.qg(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.G=c.qg().info.Ka,-1!==b.G){var d=Math.max(b.i.index.getStartTime(b.G),c.i.index.getStartTime(c.G));a.policy.Ji&&RE(a.l)&&432E3<Math.abs(d-RE(a.l))&&gka(a.l);tU(a,"seekreason","reason.initManifestlessSync;tgt."+d);g.Ig(function(){return pya(a,d)});
a.C&&(a.C.resolve(d+.1),a.C=null)}};
tU=function(a,b,c,d){a.W("ctmp",b,c,void 0===d?!1:d)};
uU=function(){this.u=this.B=0;this.ticks={}};
vU=function(a,b,c,d,e){g.Q.call(this);this.U=a;this.policy=b;this.J=c;this.ma=d;this.u=this.X=this.i=null;this.G=!1;this.B=this.C=NaN;this.K=0;this.Y=null;this.l=e?1:0};
wU=function(a,b,c){a.policy.Vb&&(b.startSecs+=isNaN(a.K)?0:a.K);a=a.U;a.Y.push(b);a.W("cuepointsadded",c)};
Cxa=function(a,b,c,d){sya(a.J,d,c,b);sya(a.ma,d,c,b);TE(a.U,d,!0);TE(a.U,d,!1);yT(a,"sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))};
xU=function(a,b){if(a.i){a.u=null;a.G=!1;var c=a.i.Fd.durationSecs-(b.startTime+a.K-a.i.Fd.startSecs);0>=c||(c=new rz(a.i.Fd.startSecs-(a.policy.Vb&&!isNaN(a.K)?a.K:0),c,a.i.Fd.context,a.i.Fd.identifier,"stop",a.i.Fd.i+1E3*b.duration),yT(a,"cuepointdiscontinuity","segNum."+b.Ka),a.policy.Aa?wU(a,c,b.Ka):a.Cx(c,b.Ka))}};
tya=function(a,b,c,d){(void 0===d?0:d)?(a.l=1,yT(a,"sdai","rststate_skth")):0<b&&5<=Math.abs(b-c)&&4===a.l&&(yT(a,"sdai","rststate_skt_"+b.toFixed(2)+"_ct_"+c.toFixed(2)),a.l=5)};
yT=function(a,b,c){a.W("ctmp",b,c,!1)};
yU=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
uya=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.La=a;this.ma=b;this.policy=c;this.C=d;this.G=e;this.Va=f;this.u=qH;this.i=this.J=null;this.U=-1;this.Ea=!1;this.nextVideo=this.l=null;this.B=[];this.xa={};this.videoIndex=0;this.Pa=this.Y=this.K=!1;this.va=0;this.Ga=new Set;this.Ua=!1;this.X=new Map;this.Da=0;this.Ya=!1;this.Aa=null};
zya=function(a,b,c){zU(a,b);vya(a,c);a.J=a.l;wya(a);xya(a);a.i=a.nextVideo;a.J=a.l;return yya(a)};
Aya=function(a,b){if(RA(a.u,b))return null;if("m"===b.reason&&b.isLocked())return a.ea(),zU(a,b),a.videoIndex=a.B.length-1,AU(a),BU(a),a.Y=a.Y||a.i!==a.nextVideo,a.i=a.nextVideo,new yU(a.l,a.i,b.reason);"r"===b.reason&&(a.U=-1);zU(a,b);BU(a);if("r"===b.reason&&a.nextVideo===a.i)return new yU(a.l,a.nextVideo,b.reason);a.i&&a.nextVideo&&CU(a,a.i.info)<CU(a,a.nextVideo.info)&&(b=a.u.reason,a.K=a.K||"r"===b||"u"===b||"v"===b);return null};
Bya=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,yya(a)}else a.Pa=a.J!==b,a.J=b;return null};
DU=function(a,b,c){a.Da+=1;if(void 0===c?0:c)a.Ya=!0;c=6E4;a.policy.Bb&&(c*=Math.pow(2,a.Da));a.X.set(b.info.id,(0,g.P)()+c);a.U=-1;zU(a,a.u)};
EU=function(a){if(a.X.size){for(var b=(0,g.P)(),c=g.q(a.X.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.X.clear()}return!1};
Cya=function(a,b){return new yU(a.J,a.i,b||a.u.reason)};
FU=function(a){return a.u.isLocked()};
yya=function(a){a.Ea?a.Ea=!1:a.U=(0,g.P)();a.K=!1;return new yU(a.J,a.i,a.u.reason)};
Dya=function(a){var b=!FU(a)&&-1<a.U&&8E3>(0,g.P)()-a.U,c=a.nextVideo&&3*CU(a,a.nextVideo.info)<nU(a.ma);if(!b||c)AU(a),BU(a),a.Y=a.Y||a.nextVideo!==a.i};
Eya=function(a,b){var c={};b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.i,f=c[e],h=f&&TD(f)&&f.video.i>a.policy.Da,l=e<=a.policy.Da?TD(d):RD(d);if(!f||h||l)c[e]=d}return c};
zU=function(a,b){a.u=b;var c=a.G.videoInfos;if(!FU(a)){var d=(0,g.P)();c=g.Po(c,function(n){if(n.Ib>this.policy.Ib)return this.ea(),!1;var p=this.C.i[n.id],r=p.info.i;return this.policy.yj&&this.Ga.has(r)||this.X.get(n.id)>d?!1:4<p.l.l||4<p.K?(this.ea(),!1):p.C?!1:!0},a);
if(a.policy.Bb)a.Ya&&EU(a)&&(c=g.Po(c,function(n){return 480>=n.video.i}));
else if(EU(a)){var e=g.Po(c,function(n){n=n.kc();return"140"===n||"134"===n||"243"===n});
e.length&&(c=e)}}c.length||(c=a.G.videoInfos);e=g.Po(c,b.B,b);if(a.policy.Aj||a.policy.gi){var f="m"===b.reason||"s"===b.reason;a.policy.Kj&&ZT&&g.cj&&(!f||1080>b.i)&&(e=e.filter(function(n){return!!n&&!!n.video&&!!n.l}));
if(!qE()&&0<e.length){var h=(b=e[0])&&b.video&&b.video.i;if(h){b=e.filter(function(n){return!!n&&!!n.video&&n.video.i===h});
var l=Eya(a,b)[h].i;e=e.filter(function(n){return!!n&&!!n.video&&n.i===l})}}var m=Eya(a,e);
e=e.filter(function(n){return!!n&&!!n.video&&n.i===m[n.video.i].i})}e.length||(e=[c[0]]);
e.sort(function(n,p){return CU(a,n)-CU(a,p)});
for(c=1;c<e.length;c++)b=e[c-1],f=e[c],b.video.width>f.video.width?(a.ea(),g.nb(e,c),c--):CU(a,b)*a.policy.l>CU(a,f)&&(a.ea(),g.nb(e,c-1),c--);c=e[e.length-1];a.Ua=!!a.i&&!!a.i.info&&a.i.info.i!==c.i;a.ea();a.B=e;Csa(a.policy,c)};
vya=function(a,b){b?a.l=a.C.i[b]:(b=(b=g.gb(a.G.i,function(c){return!!c.Jc&&c.Jc.isDefault}))||a.G.i[0],a.l=a.C.i[b.id]);
AU(a)};
Fya=function(a,b){for(var c=0;c+1<a.B.length&&"tiny"===a.B[c].fb().quality;)c++;var d=nU(a.ma)/a.policy.l;return CU(a,b.info)+CU(a,a.B[c])>d};
AU=function(a){if(!a.l||!a.policy.i)if(!a.l||!a.l.info.Jc)if(a.l=a.C.i[a.G.i[0].id],1<a.G.i.length){var b=!1;if(a.policy.Ga){if(b=!0,a.policy.Oo){var c=fb(a.G.i,function(d){return"250"===d.kc()});
0<=c&&(a.l=a.C.i[a.G.i[c].id],b=Fya(a,a.l))}}else b=a.u.isLocked()?240>a.u.i:Fya(a,a.l);b&&(a.l=a.C.i[g.eb(a.G.i).id])}};
BU=function(a){a.policy.tf&&(a.Aa=a.Aa||new g.J(function(){a.policy.tf&&a.i&&!EU(a)&&1===Math.floor(10*Math.random())?(DU(a,a.i),a.K=!0):a.Aa.start()},6E4),g.Eq(a.Aa));
if(!a.nextVideo||!a.policy.i)if(FU(a))a.nextVideo=360>=a.u.i?a.C.i[a.B[0].id]:a.C.i[g.eb(a.B).id],a.ea();else{for(var b=Math.min(a.videoIndex,a.B.length-1),c=nU(a.ma),d=CU(a,a.l.info),e=c/a.policy.u-d;0<b&&!(CU(a,a.B[b])<=e);b--);for(c=c/a.policy.l-d;b<a.B.length-1&&!(CU(a,a.B[b+1])>=c);b++);a.nextVideo=a.C.i[a.B[b].id];a.videoIndex!==b&&a.ea();a.videoIndex=b}};
wya=function(a){var b=a.policy.u,c=nU(a.ma)/b-CU(a,a.l.info);b=g.ib(a.B,function(d){return CU(this,d)<c},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.i[a.B[b].id];a.ea()};
xya=function(a){if(a.Va.length){var b=a.Va,c=function(d,e){if(b.includes(CC(d)))return d;for(var f=0;f<e.length;f++){var h=a.C.i[e[f].id],l=CC(h);if(b.includes(l))return d=d.info.kc(),e=h.info.kc(),a.La.Ja("ombifa","f."+d+";t."+e),a.ea(),a.Ea=!0,h}a.La.Ja("ombifa","mismatch."+b.join("."));return d};
a.nextVideo=c(a.nextVideo,a.G.videoInfos);a.l=c(a.l,a.G.i)}};
Gya=function(a,b){a.policy.Da=ZE(b,{},a.G);zU(a,a.u);Dya(a);a.K=a.nextVideo!==a.i};
CU=function(a,b){if(!a.xa[b.id]){var c=a.C.i[b.id].index.getLocalMaxByterate(a.va,15);c=b.zs&&a.i&&a.i.index.isLoaded()?c||b.zs:c||b.Ib;a.xa[b.id]=c}c=a.xa[b.id];a.policy.Jb&&b.video&&b.video.i>a.policy.Jb&&(c*=1.5);return c};
Hya=function(a,b){a=Qb(a.C.i,function(c){return c.info.kc()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
Iya=function(a){var b=[];if("m"===a.u.reason||"s"===a.u.reason)return b;if(Qja(a.C)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.B.length;c++){var d=a.B[c].kc();b.push(d)}b.reverse()}return b};
Jya=function(a,b,c){this.policy=a;this.i=b;this.J=c;this.u=this.l=0;this.Ee=null;this.C=[];this.indexRange=this.initRange=null;this.chunkSize=a.gs;this.B=new Uint8Array(this.chunkSize);this.G=new aT};
Kya=function(a){var b=GU(a);b=YG(a.policy.i,a.i.info,HU(a),b);IU(a,b)};
JU=function(a){return!!a.Ee&&a.Ee.u};
Mya=function(a,b){if(!JU(a)){if(1===b.info.type)a.initRange=FC(0,b.i.totalLength);else if(2===b.info.type){if(!a.Ee||1!==a.Ee.type)return;a.indexRange=FC(a.u*a.chunkSize+a.l,b.i.totalLength)}else if(3===b.info.type){if(3===a.Ee.type&&!MC(a.Ee,b.info)){a.C=[];var c=a.Ee;if(b.info.Ka!==c.Ka+(c.Nd?1:0)||0!==b.info.zb)return}if(b.info.Nd){c=g.q(a.C);for(var d=c.next();!d.done;d=c.next())Lya(a,d.value);a.C=[]}else{a.C.push(b);a.Ee=b.info;return}}a.Ee=b.info;Lya(a,b);JU(a)&&(b=new Uint8Array(a.B.buffer,
0,a.l),c={downloadedEndTime:-1,maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.zs)},b=YG(a.policy.i,a.Ee.i.info,HU(a),c,a.u,b),IU(a,b,!0))}};
Lya=function(a,b){for(var c=0,d=sD(b.i);c<d.length;){var e=Math.min(d.length-c,a.B.byteLength-a.l),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.B.set(f,a.l);a.l+=e;c+=e;if(a.l===a.B.length){if(b.info===a.Ee&&JU(a)&&c===d.length)break;e=GU(a);e=YG(a.policy.i,a.i.info,HU(a),e,a.u,a.B);IU(a,e);e=GU(a);a.J(HU(a),void 0!==e?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate);a.B=new Uint8Array(a.chunkSize);a.l=0;a.u+=1}}};
GU=function(a){return{downloadedEndTime:Math.round(a.Ee?a.Ee.B:0),maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.zs)}};
HU=function(a){var b,c,d={lmt:a.i.info.lastModified,docid:a.policy.i,fmtid:a.i.info.id,type:a.i.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.u*a.chunkSize+a.l};d="local://localhost/videoplayback?"+Xr(d);d={itag:+a.i.info.kc(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.Ib,lastModified:String(a.i.info.lastModified),initRange:null===(b=a.initRange)||void 0===b?void 0:GC(b),indexRange:null===(c=a.indexRange)||void 0===c?void 0:GC(c),url:d};var e=a.i.info;if(e=0<e.id.indexOf(";")?e.id.split(";")[1]:
null)d.xtags=e;if(e=a.i.info.video)if(d.quality=e.quality,d.qualityLabel=e.qualityLabel,d.width=e.width,d.height=e.height,e=e.fps)d.fps=e;if(a=a.i.info.audio){if(e=a.sampleRate)d.audioSampleRate=String(e);if(a=a.i)d.audioChannels=a}return d};
IU=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.G.resolve(d)},function(d){a.G.reject(d)})};
Nya=function(a){for(var b=new Uint8Array(0),c=new DataView(a.buffer,a.byteOffset,a.length),d=0;d<a.length-8;){var e=c.getUint32(d);if(1>=e)break;var f=c.getUint32(d+4);if(1836019574===f)d+=8;else{if(1886614376===f){f=a.subarray(d,d+e);var h=new Uint8Array(b.length+f.length);h.set(b);h.set(f,b.length);b=h}d+=e}}return b};
Oya=function(a){a=g.ZB(a,1886614376);g.Cb(a,function(b){return!b.NG});
return g.Oe(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
Pya=function(a){var b=zm(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Cb(a,function(e){c.set(e,d);d+=e.length});
return c};
Qya=function(a,b,c,d){this.ids=a;this.l=b;this.u=c;this.i=d};
KU=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.l=[];this.De=!1};
Rya=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{for(var m=b.subarray(c+f,c+f+l),n=new Fr,p=new Gd(m);Hd(p)&&4!=p.l;){var r;switch(p.u){case 2:f=r=Kd(p);Ae(n,2).push(f);break;case 4:r=Kd(p);De(n,4,r);break;case 7:r=p.Fc();De(n,7,r);break;case 9:r=p.Fc();De(n,9,r);break;case 10:r=p.Fc();De(n,
10,r);break;case 11:r=Dd(p.i);De(n,11,r);break;case 12:r=p.Fc();De(n,12,r);break;case 13:f=r=Kd(p);Ae(n,13).push(f);break;case 14:r=new Gr;f=p;var t=r,u=bha,x=f.i.u,y=Ed(f.i),B=f.i.i+y;f.i.u=B;u(t,f);f.i.i=B;f.i.u=x;f=n;t=r;u=Gr;var G=Ie(f,u,14),H=t?t:new u,I=Ae(f,14);G.push(H);I.push(Je(H));break;case 15:r=p.Oe();De(n,15,r);break;case 16:r=p.Oe();De(n,16,r);break;case 17:r=p.Fc();De(n,17,r);break;case 1:r=Dd(p.i);De(n,1,r);break;case 3:r=p.Oe();De(n,3,r);break;case 5:r=p.Oe();De(n,5,r);break;case 6:r=
p.Oe();De(n,6,r);break;case 8:r=Kd(p);De(n,8,r);break;default:Id(p)}}f=n;if(null!==f){var M=f;break a}}catch(L){}}c+=e}M=null}catch(L){M=null}}if(null!=M)for(b=Ae(M,7),null==b||a.De||(a.cryptoPeriodIndex=b),b=Ae(M,10),null!=b&&0<b&&!a.De&&(a.i=b),M=Ae(M,2),M=!M.length||M[0]instanceof Uint8Array?M:g.Oe(M,te),M=g.q(M),b=M.next();!b.done;b=M.next())a.l.push(g.$d(b.value,4))};
LU=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.IC?!1:d.IC;var e=void 0===d.videoDuration?0:d.videoDuration;d=void 0===d.pu?void 0:d.pu;this.videoId=a;this.status=b;this.IC=c;this.videoDuration=e;this.pu=d};
Sya=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.l=c;this.bytesDownloaded=d;this.i=e};
MU=function(a){this.i=a;this.offset=0};
Tya=function(a,b){b=void 0===b?!1:b;var c=a.vg();if(1===c){b=-1;for(c=0;7>c;c++){var d=a.vg();-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+a.vg(),d*=128;return b?c:c-d};
OU=function(a,b,c){var d=this;this.K=a;this.policy=b;this.C=c;this.l=[];this.i=null;this.ma=-1;this.U=0;this.xa=NaN;this.Y=0;this.B=NaN;this.Aa=0;this.Ea=-1;this.u=this.X=this.Pa=this.Ga=this.Da=this.La=this.G=this.J=this.va=null;this.Ua=!1;this.timestampOffset=0;if(this.policy.i){var e=this.C,f=this.policy.i;this.u=new Jya(this.policy,e,function(h,l,m){NU(a,new LU(d.policy.i,2,{pu:new Sya(f,h,e.info,l,m)}))});
this.u.G.promise.then(function(h){d.u=null;1===h&&NU(a,new LU(d.policy.i,h))},function(){d.u=null;
NU(a,new LU(d.policy.i,4))});
Kya(this.u)}};
Uya=function(a){return a.l.length?a.l[0]:null};
PU=function(a){return a.l.length?a.l[a.l.length-1]:null};
Yya=function(a,b,c){if(a.G){var d=a.G.zb+a.G.l;if(0<c.info.zb)if(c.info.Ka===a.G.Ka&&c.info.zb<d){if(c.info.zb+c.info.l<=d)return;c=zD(c,d-c.info.zb)[1]}else if(0<=c.info.Ka&&0<=a.G.Ka&&!MC(a.G,c.info))throw new g.Gv("improper_continuation",IC(a.G),IC(c.info));if(a.policy.Fi){d=a.G;var e=c.info;d=d.Ka!==e.Ka&&e.Ka!==d.Ka+1||d.type!==e.type||Pf(d.C,e.C)&&d.Ka===e.Ka?!1:NC(d,e)}else d=NC(a.G,c.info);d||(a.B=NaN,a.Aa=0,a.Ea=-1)}else if(0<c.info.zb)throw new g.Gv("continuation_of_null",IC(c.info));a.G=
c.info;a.C=c.info.i;0===c.info.zb?QU(a):!c.info.i.Gg()&&a.J&&QC(c.info,a.J);if(a.i){d=AD(a.i,c);if(!d)throw new g.Gv("failed_to_merge",IC(a.i.info),IC(c.info));a.i=d}else a.i=c;a:{c=g.BD(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.Nd)break a;6===a.i.info.type?Vya(a,b,a.i):RU(a,a.i);a.i=null}for(;a.i;){d=a.i.i.totalLength;if(0>=a.ma&&0===a.U){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=vD(f,l),n=vD(f,l+4);l+=m||1;if(1836019558===n)h=l;else if(1835295092===n){e=l;break}}0>
e&&(h=-1)}else{f=new MU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var r=Tya(p,!0),t=Tya(p,!1);var u=r;var x=t}catch(B){x=u=-1}p=u;var y=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.getOffset()+y,m=!0);else{if(l&&(160===p||163===p)&&(0>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.ma=h;a.U=e-h}if(a.ma>d)break;a.ma?(d=Wya(a,a.ma),d.u&&!d.info.i.Gg()&&Xya(a,d),Vya(a,b,d),SU(a,
d),a.ma=0):a.U&&(d=Wya(a,0>a.U?Infinity:a.U),a.U-=d.i.totalLength,SU(a,d))}}a.i&&a.i.info.Nd&&(SU(a,a.i),a.i=null)};
RU=function(a,b){!b.info.i.Gg()&&0===b.info.zb&&(g.BD(b.info.i.info)||b.info.i.info.De())&&HD(b);if(1===b.info.type)try{Xya(a,b),Zya(a,b)}catch(d){g.Tx(d);var c=OC(b.info);c.hms="1";TU(a.K,!0,"fmt.unparseable",c||{})}b.info.i.wB(b);a.u&&Mya(a.u,b)};
$ya=function(a){var b=a.l.reduce(function(c,d){return c+d.i.totalLength},0);
a.i&&(b+=a.i.i.totalLength);return b};
UU=function(a){return g.Oe(a.l,function(b){return b.info})};
Wya=function(a,b){var c=a.i;b=Math.min(b,c.i.totalLength);if(b===c.i.totalLength)return a.i=null,c;c=zD(c,b);a.i=c[1];return c[0]};
Xya=function(a,b){var c=xD(b);if(!a.policy.Vo&&SD(b.info.i.info)&&"bt2020"===b.info.i.info.fb().primaries){var d=new aC(c);cC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.i,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.i.info;RD(d)&&!SD(d)&&(d=xD(b),iC(new aC(d)),hC([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.u&&(g.BD(d.info)?d.u=oja(c):d.info.De()&&(d.u=qja(c))));b.info.i.info.De()&&
b.info.isVideo()&&(c=xD(b),iC(new aC(c)),hC([408125543,374648427,174,224],30320,c)&&hC([408125543,374648427,174,224],21432,c));if(a.policy.uh&&b.info.i.info.De()){c=xD(b);var e=new aC(c);if(cC(e,[408125543,374648427,174,29637])){d=fC(e,!0);e=e.start+e.i;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Qm()&&g.BD(b.info.i.info)){d=xD(b);c=g.NB(d,0,1701606260);f=g.NB(d,0,1836476516);if(c&&f){c.skip(2);var h=c.rk(),l=c.Fc();d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(c.dr()),
e.push(c.dr()),m.push(c.rk()),n.push(c.rk());else for(h=0;h<l;++h)d.push(c.Ne()),e.push(c.Ne()),m.push(c.rk()),n.push(c.rk());c=g.PB(f);c=new nja(e[0]/c,d[0]/c)}else c=null;if(c){if(g.BD(b.info.i.info))for(d=xD(b),e=g.NB(d,0,1701082227);e;)e.markAsSkip(),e=g.NB(d,e.offset+e.size,1701082227);a.Ua=!0;b.info.i.G=c}}b.info.i.Gg()||b.info.i.i||b.info.i.indexRange||(g.BD(b.info.i.info)?(a=xD(b),(c=RB(a,0,1836019574))?(c=c.offset+c.size,d=new Uint8Array(c),d.set(new Uint8Array(a.buffer,a.byteOffset,c)),
a=d):a=null):a=rja(new aC(xD(b))),a&&(b.info.i.i=a))};
Vya=function(a,b,c){if(c.info.i.Gg()){if(a.Ua&&aza(c)&&(b=xD(c),b=g.NB(b,0,1953658222))){b.skip(1);var d=b.vg()<<16|b.rk(),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=b.Fc();2>m||(e&&b.skip(4),f&&b.skip(4),e=b.Fc(),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.setUint32(b.Yb,e))}}if(b=a.va&&!!a.va.C.G)if(b=c.info.isVideo())b=GD(c),h=a.va,VU?(l=1/b,b=WU(a,b)>=WU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&aza(c)&&(b=a.va,VU?(l=GD(c),h=1/l,l=WU(a,l),b=WU(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,OB(xD(c),b))}else{h=!1;a.J||(HD(c),c.l&&(a.J=c.l,h=!0,QC(c.info,c.l),l=c.info.i.info,f=xD(c),g.BD(l)?YB(f,1701671783):l.De()&&hC([408125543],307544935,f)));if(f=l=FD(c))f=c.info.i.info.De()&&160===uD(c.i,0);if(f)a.Y+=l,a.B=NaN;else{if(a.policy.En){var n;e=a.K;f=CD(c)/1;isNaN(e.timestampOffset)&&bza(e,f-Math.min(f,e.policy.Jh));e=n=f-e.timestampOffset;if(0<=a.B&&6!==c.info.type){f=n-a.B;var p=f-a.Aa;d=c.info.Ka;var r=a.La?a.La.Ka:-1,t=a.Ga?a.Ga:-1,u=a.Da?a.Da:
-1;m=a.policy.dd&&f>a.policy.dd;var x=a.policy.cd&&p>a.policy.cd;1E-4<Math.abs(p)&&(n={audio:""+ +a.Qm(),sq:d.toFixed(),sliceStart:n,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},TU(a.K,!1,"qoe.avsync",n),a.Ea=d);n=0;a.policy.Lp&&(m||x||(e=a.B),a.policy.Mp&&a.va&&!a.Qm()&&g.BD(c.info.i.info)&&(x=a.va,m=x.Ea,x=x.Aa,p=.02<Math.abs(x-f),(d===m||d>m&&d>a.Ea)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),OB(xD(c),
d),d=FD(c),n=l-d,l=d)));a.Aa=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;DD(c,e)?(isNaN(a.xa)&&(a.xa=e),a.Y+=l,a.B=e+l):(l=OC(c.info),l.smst="1",TU(a.K,!0,"fmt.unparseable",l||{}))}a.La=c.info;a.Da=FD(c);c.B&&(a.Ga=c.B);if(h&&a.J){h=cza(a,!0);RC(c.info,h);a.i&&RC(a.i.info,h);b=g.q(b.info.i);for(l=b.next();!l.done;l=b.next())RC(l.value,h);(c.info.Nd||a.i&&a.i.info.Nd)&&6!==c.info.type||(a.X=h,b=a.K,b.i.isManifestless&&dza(b,h,!!a.C.info.video),a.policy.Aa||eza(a))}}Zya(a,c);a.timestampOffset&&ED(c,
a.timestampOffset)};
SU=function(a,b){if(b.info.Nd){a.Pa=b.info;if(a.J){var c=cza(a,!1);a.K.uC(a.C,c);a.X||a.policy.Aa||eza(a);a.X=null}QU(a)}a.u&&Mya(a.u,b);if(c=PU(a))if(c=AD(c,b,a.policy.wj)){a.l.pop();a.l.push(c);return}a.l.push(b)};
QU=function(a){a.i=null;a.ma=-1;a.U=0;a.J=null;a.xa=NaN;a.Y=0;a.X=null};
Zya=function(a,b){if(a.C.info.Jd){if(b.info.i.info.De()){var c=new aC(xD(b));if(cC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=fC(c,!0);c=16!==d?null:mC(c,d)}else c=null;d="webm"}else b.info.K=Oya(xD(b)),c=Pya(b.info.K),d="cenc";c&&c.length&&(c=new KU(c,d),c.De=b.info.i.info.De(),b.l&&b.l.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.l.cryptoPeriodIndex),a.policy.Ii&&b.l&&b.l.u&&(c.i=b.l.u),a.K.fp(c))}};
eza=function(a){var b=a.J,c=JB(b);c&&(c.startSecs+=a.xa,a.K.Cx(a.C,c,b.i))};
cza=function(a,b){var c,d=a.J;if(c=JB(d))c.startSecs+=a.xa;if(d.data["Stitched-Video-Id"]||d.data["Stitched-Video-Cpn"]||d.data["Stitched-Video-Duration-Us"]||d.data["Stitched-Video-Start-Frame-Index"]||d.data["Serialized-State"]){var e=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(d.data["Stitched-Video-Duration-Us"])for(var l=g.q(d.data["Stitched-Video-Duration-Us"].split(",").slice(0,
-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(d.data["Stitched-Video-Start-Frame-Index"]){m=g.q(d.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}e=new Qya(e,f,h,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new zB(d.i,a.xa,b?d.zi:a.Y,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)};
aza=function(a){return a.info.i.Gg()&&a.info.Ka===a.info.i.index.getLastSegmentNumber()};
WU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.C.G&&b&&(b+=a.C.G.i);return b+a.getDuration()};
fza=function(a,b){0>b||(a.l.forEach(function(c){ED(c,b)}),a.timestampOffset=b)};
XU=function(a,b){this.info=a;this.callback=b;this.state=1;this.K=!1;this.B=0;this.C=!1;this.i=null};
gza=function(a){return g.ym(a.info.i,function(b){return 3===b.type})};
YU=function(a,b){var c=a.state;a.state=b;a.sz();a.callback&&a.callback(a,c)};
ZU=function(a,b){b&&a.state<b?YU(a,b):a.callback&&a.callback(a,a.state)};
hza=function(a){a.i&&a.i.B?(a=a.i.B,a=new JC(a.type,a.i,a.range,"getEmptyStubAfter"+a.G,a.Ka,a.startTime+a.duration,0,a.zb+a.l,0,!1)):(a=a.info.i[0],a=new JC(a.type,a.i,a.range,"getEmptyStubBefore"+a.G,a.Ka,a.startTime,0,a.zb,0,!1));return a};
iza=function(a,b){this.i=a;this.l=0;this.u=null;this.Gd=[];this.B=null;(this.length=b?b:0)?1!==this.i.length||this.i[0].l||(this.i[0].l=this.length):1===this.i.length||g.ym(this.i,function(c){return!!c.range})};
jza=function(a,b,c){a.u&&(nD(a.u,b),b=a.u,a.u=null);for(var d=!1,e=!1,f=0,h=0,l=g.q(a.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.l<=a.l)f+=m.l;else{if(KC(m)&&!c&&a.l+b.totalLength-h<f+m.l){a.u=b.split(h).Fp;break}var n=3===m.type||4===m.type,p=a.l-f,r=a,t=h,u=b,x=m.i.Pr()&&!p||n&&d&&!e&&1===b.i.length,y=!!c,B=u.totalLength-t;m.range&&(B=Math.min(m.l-p,B));y=m.range?m.zb+p+B===m.range.length:y;p=new JC(m.type,m.i,m.range,"reslice"+m.G,m.Ka,m.startTime,m.duration,m.zb+p,B,y&&m.u,y);
y=B;t=u.split(t).Fp.split(y).Jw;r.Gd.push(new wD(p,t,x));r=B;a.l+=r;h+=r;f+=m.l;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
kza=function(a){if(!a.Gd.length)return[];var b=a.Gd;a.Gd=[];a.B=g.eb(b).info;return b};
lza=function(a){return a.length-a.l+a.Gd.reduce(function(b,c){return b+c.i.totalLength},0)};
$U=function(a,b,c,d){XU.call(this,b,d);var e=this;this.l=a;this.u=c;this.Yc=function(){e.Ha()||(e.u.dg(e.l)&&ZU(e,2),e.u.We(e.l)&&(mza(e.u,e.l)?YU(e,4):YU(e,5)))};
this.i=new iza(this.info.i,this.info.range.length);this.u.me[this.l].Yc=this.Yc;g.Ig(this.Yc)};
nza=function(a){for(;a.u.dg(a.l);){var b=a.i,c=a.u.oi(a.l),d=a.u.me[a.l];jza(b,c,d.We&&!d.Gd.totalLength&&mza(a.u,a.l))}};
aV=function(a,b,c){this.ma=a;this.policy=b;this.i=c;this.u=[];this.l=this.Qb=null;this.Y=this.X=0;this.G=-1;this.K=!1;this.U=-1;this.B=new OU(a,b,c);this.Ib=c.info.Ib;this.J=c.Jt();this.isManifestless=c.Jt();this.C=this.J};
bV=function(a,b){b&&VU&&fza(a.B,b.nB());a.Qb=b};
cV=function(a){return a.Qb&&a.Qb.uw()};
dV=function(a,b){a.u.push(b);a.l=g.eb(b.info.i)};
eV=function(a){for(;a.u.length&&4===a.u[0].state;){var b=a.u.shift();oza(a,b);a.X=b.cH()}a.u.length&&(b=a.u[0],b.Xq()&&(!b.info.Oh()||b instanceof $U)&&oza(a,b))};
oza=function(a,b){if(b.Xq()){var c=b.vz();c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Y&&b instanceof $U&&a.ma.Ja("omblss","s."+IC(d.info)),pza(a,b,d)}};
pza=function(a,b,c){switch(c.info.type){case 1:case 2:RU(a.B,c);break;case 4:var d=c.info.i.vE(c);c=c.info;var e=a.l;e&&e.i===c.i&&e.type===c.type&&(c.range&&e.range?e.range.start===c.range.start&&e.range.end===c.range.end:e.range===c.range)&&e.Ka===c.Ka&&e.zb===c.zb&&e.l===c.l&&(a.l=g.eb(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())pza(a,b,c.value);break;case 3:Yya(a.B,b,c);break;case 6:Yya(a.B,b,c),a.l=c.info}};
qU=function(a,b,c){c=void 0===c?!1:c;if(a.Qb){var d=a.Qb.Te(),e=hE(d,b),f=NaN,h=cV(a);h&&(f=hE(d,h.i.index.getStartTime(h.Ka)));if(e===f&&a.l&&a.l.l&&qza(fV(a),0))return b}a=rza(a,b,c);return 0<=a?a:NaN};
sU=function(a,b){a.i.Be();var c=rza(a,b);if(0<=c)return c;c=a.B;c.u?(c=c.u,c=c.Ee&&3===c.Ee.type?c.Ee.startTime:0):c=Infinity;b=Math.min(b,c);a.l=a.i.Fm(b).i[0];gV(a)&&a.Qb&&a.Qb.abort();a.Y=0;return a.l.startTime};
sza=function(a){a.J=!0;a.C=!0;a.G=-1;sU(a,Infinity)};
hV=function(a){var b=0;g.Cb(a.u,function(c){var d=b;c=c.i&&c.i.length?lza(c.i):WC(c.info);b=d+c},a);
return b+=$ya(a.B)};
iV=function(a,b){if(!a.Qb)return 0;var c=cV(a);if(c&&c.u)return c.B;a=a.Qb.Te(!0);return jE(a,b)};
rU=function(a){pU(a);a=a.B;a.l=[];QU(a)};
sya=function(a,b,c,d){pU(a);for(var e=a.B,f=!1,h=e.l.length-1;0<=h;h--){var l=e.l[h];l.info.Ka>=b&&(e.l.pop(),e.B-=FD(l),f=!0)}f&&(e.G=0<e.l.length?e.l[e.l.length-1].info:null);d>c?sU(a,d):a.l=a.i.Wl(b-1,!1).i[0]};
lV=function(a,b){var c;for(c=0;c<a.u.length&&b!==a.u[c];c++);if(c===a.u.length)jV(a,b);else{for(;c<a.u.length;)jV(a,a.u.pop());var d=kV(a);a.policy.va&&d&&d.i.Gg()&&sn(b.info.i,function(e){return PC(e,d)})?a.l=d:LC(b.info.i[0])?a.l=hza(b):a.l=null}};
gV=function(a){var b;!(b=!a.policy.uj&&"f"===a.i.info.i)&&(b=a.policy.i)&&(b=a.B,b=!!b.u&&JU(b.u));if(b)return!0;b=cV(a);if(!b)return!1;var c=b.u&&b.Nd;return a.isManifestless&&0<a.U?c||b.Ka>=a.U:c};
tza=function(a){var b;return gV(a)||!(null===(b=PU(a.B))||void 0===b||!b.info.u)};
fV=function(a){var b=[],c=cV(a);c&&b.push(c);b=g.qb(b,UU(a.B));g.Cb(a.u,function(d){g.Cb(d.info.i,function(e){d.K&&(b=g.Po(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.zb>=e.range.start+e.zb&&f.range.start+f.zb+f.l<=e.range.start+e.zb+e.l:f.Ka===e.Ka&&f.zb>=e.zb&&(f.zb+f.l<=e.zb+e.l||e.Nd))}));
(LC(e)||4===e.type)&&b.push(e)})});
a.l&&!xja(a.l,g.eb(b),a.l.i.Gg())&&b.push(a.l);return b};
qza=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!NC(a[b-1],a[b]))return!1;return!0};
rza=function(a,b,c){c=void 0===c?!1:c;if(!a.l||!a.l.l)return NaN;a=fV(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:qza(a,c?b:0)?a[b].startTime:NaN};
mV=function(a){return!(!a.l||a.l.i===a.i)};
nV=function(a){return mV(a)&&a.i.Be()&&a.l.i.info.Ib<a.i.info.Ib};
uza=function(a,b,c){return(a=kV(a))&&!a.u?a.B>b&&a.B<b+c:!1};
kV=function(a){var b=PU(a.B);return b?b.info:cV(a)};
pU=function(a){g.Cb(a.u,function(b){jV(this,b)},a);
a.u=[];a.l=null};
jV=function(a,b){var c=a.policy.va&&b.info.i[0].i.Gg();b.K&&!c&&(a=a.B,a.ea(),a.X&&!a.policy.qf&&(c=a.K,c.i.isManifestless&&TE(c.i,a.X.Ka,!!a.C.info.video)),a.X=null,a.J=null,a.G=a.Pa,a.B-=a.Y,QU(a));b.dispose()};
vza=function(a){return!!a.l&&-1!==a.l.Ka&&a.l.Ka<a.i.index.getFirstSegmentNumber()};
wza=function(a){var b=a.l;b&&-1===b.Ka&&(a=PU(a.B))&&LC(a.info)&&(a=a.info.Ka,b.G="updateLastSliceRequested",b.Ka=a)};
xza=function(a){return sn(a.u,function(b){return b.C})};
oV=function(a,b,c,d){this.target=a;this.trigger=b;this.l=c;this.u=d;this.i=0};
zza=function(a,b){var c=this;this.i=a;this.u=b;this.loaded=this.status=0;this.error="";a=EC(this.i.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.l=new lD;yza(this).then(function(){c.u.mu()},function(d){c.error=""+d||"unknown_err";
c.u.mu()})};
yza=function(a){return g.D(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,u,x,y,B,G;return g.z(c,function(H){if(1==H.i){d.status=200;e=d.i.get("docid");f=pd(d.i.get("fmtid")||"");h=d.i.get("lmt")||"0";l=+(d.i.get("csz")||0);if(!e||!f||!l)throw Error("Invalid local URL");m=d.range;n=Math.floor(m.start/l);p=Math.floor(m.end/l);r=n}if(5!=H.i)return r<=p?g.w(H,Ila(e,f,h,r),5):H.ub(0);t=H.l;if(void 0===t)throw Error("invariant: data is undefined");u=r*l;x=(r+1)*l;y=Math.max(0,m.start-u);B=Math.min(m.end+
1,x)-(y+u);G=new Uint8Array(t.buffer,y,B);d.l.append(G);d.loaded+=B;d.loaded<m.length&&d.u.Ix((0,g.P)(),d.loaded);r++;return H.ub(2)})})};
pV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.C=c;this.va=d;this.status=0;this.response=void 0;this.ma=!1;this.l=0;this.X=NaN;this.U=this.G=this.Y=!1;this.errorMessage="";this.Aa=function(f){e.status=f.status;if(f.ok&&f.body)e.status=e.status||242,e.u=f.body.getReader(),e.Ha()?e.u.cancel().catch(function(){}):(e.K=f.headers,e.C.AC(),Aza(e));
else e.onDone()};
this.xa=function(f){var h=(0,g.P)();if(!e.Ha()){var l=f.value?f.value:void 0;e.J&&(e.i.append(e.J),e.J=void 0);f.done?(e.u=void 0,e.onDone()):(e.l+=l.length,Bza(e)?e.i.append(l):e.J=l,e.C.Ix(h,e.l),Aza(e))}};
this.onError=function(f){e.ea();e.errorMessage=String(f);e.G=!0;e.onDone()};
this.i=new lD;this.id=Cza++;this.B=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
Aza=function(a){a.u.read().then(a.xa,a.onError).then(void 0,Av)};
Bza=function(a){var b=a.getResponseHeader("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.l&&a.policy.Jf&&OA(a)&&b};
qV=function(a,b,c){var d=this;c=void 0===c?{}:c;this.u=b;this.l=this.status=0;this.Ha=this.i=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.q(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(){2===d.xhr.readyState&&d.u.AC()};
a=Tr(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",Tr(function(f){d.Yc(f)}),!1)};
tV=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.nu?[]:h.nu;var l=void 0===h.Nu?!1:h.Nu;h=void 0===h.Vn?0:h.Vn;XU.call(this,b,e);var m=this;this.policy=a;this.timing=c;this.lastError=null;this.Y=this.u=0;this.va=!1;this.J=this.G=null;this.timing.Aa=function(){var n;if(Dza(m)){if(n=m.policy.Gj&&!(!window.performance||!window.performance.now)&&m.xhr.Nm()&&m.xhr.xr())n=m.xhr,n=n.policy.Jf&&OA(n);n=n?m.info.i[0].i.info.video?3:4:2}else n=1;return n};
this.X=d;this.Nu=l;this.requestNumber=++Eza;this.l=g.VC(this.info,this.policy,this.X);this.l.set("rn",this.requestNumber.toString());this.l.set("rbuf",(1E3*h).toFixed().toString());this.Nu&&this.l.set("smb","1");this.nu=f||null;this.C=Fza(this);this.ma=1*this.policy.xc;this.U=new g.J(this.aU,this.ma,this);this.info.l.C=(0,g.P)();vja(rV(this));hya(this.timing);try{this.xhr=Gza(this),this.U.start(),this.ea("Sent, itag="+this.l.get("itag")+(" seg="+this.info.i[0].Ka)+(" range="+this.l.get("range"))+
(" time="+Math.round(this.info.i[0].C)+"-"+Math.round(g.eb(this.info.i).B))+(" rtp="+(this.timing.U-Date.now()).toFixed(0)))}catch(n){g.Ux(n),this.lastError="net.ssl",g.Ig(function(){sV(m)})}};
Fza=function(a){if(!(UC(a.info)&&a.info.Oh()&&a.policy.rf&&a.nu)||2<=a.info.l.l||Hza()||!Iza())return!1;var b=a.l.get("aitags");if(!b)return!1;b=pd(b).split(",");for(var c=[],d=g.q(a.nu),e=d.next();!e.done;e=d.next())e=e.value,g.kb(b,e)&&c.push(e);if(!c.length)return!1;a.l.set("altitags",od(c.join(",")));return!0};
rV=function(a){return wC(a.X,sB(a.l.ih))};
Nza=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.Rx())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(Jza(a)){var d=b.qg();2048>=d.totalLength&&(c=sD(d),c=EB(c),yz(c)?a.ea():c="")}if(c)return b=rV(a),(0,g.P)(),b.started=0,b.timedOut=0,b.i=0,a.info.Ti(a.l,c),3;c=b.Jo();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.OC())return a.lastError="net.closed",5;Kza(a,!0);if(!d&&a.i&&(d=a.i.Gd,d.length&&!yD(d[0])))return a.lastError="net.closed",
5;var e=gza(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=gza(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.va=!0,a.policy.Uo&&(e=b);b=a.timing;d=(0,g.P)();e=e?Number(e):0;if(!b.va){b.va=!0;if(!b.dk){hU(b,d,c);jya(b,d,c);var f=dU(b);if(2===f&&e)fU(b,b.l/e,b.l);else if(2===f||1===f)e=(d-b.i)/1E3,(e<=b.schedule.Y.i||!b.schedule.Y.i)&&!b.Ga&&iU(b)&&fU(b,e,c),iU(b)&&(e=b.schedule,c=Math.max(c,2048),e.i.Fg(1,b.u/c),zF(e));c=b.schedule;d=(d-b.i)/1E3||.05;e=b.Y;f=b.Oh;c.G.Fg(d,b.l/d);c.B=uF();f||c.l.Fg(1,
d-e)}b.deactivate()}b=rV(a);(0,g.P)();b.started=0;b.timedOut=0;b.i=0;a.info.l.l=0;(0,g.P)()<Lza+3E5||!a.l||tB(a.l.ih)||!(b=sB(a.l.ih))||0>b.indexOf("googlevideo.com")||(Mza({primary:b}),Lza=(0,g.P)());b=a.timing;a.ea("Succeeded, rtpd="+(1E3*b.Y+b.i-Date.now()).toFixed(0));return 4};
sV=function(a){var b;a.ea("Request failed, itag="+a.l.get("itag")+(" seg="+a.info.i[0].Ka)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.l))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.P)();if(!c.dk){hU(c,d,1024*c.ma);var e=(d-c.i)/1E3;if(2!==dU(c))if(iU(c)){c.u+=(d-c.B)/1E3;var f=c.schedule,h=c.l;h=Math.max(h,2048);f.i.Fg(1,c.u/h);zF(f)}else iya(c)||c.dk||(f=c.schedule,f.J.Fg(1,e),zF(f)),c.xa=d;f=c.schedule;h=c.Y;var l=c.Oh;f.G.Fg(e,c.l/e);f.B=uF();l||f.l.Fg(1,
e-h);Dka(c.schedule,(d-c.B)/1E3,0)}}else(0,g.P)();"net.nocontent"!==a.lastError&&("net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError?(c=rV(a),c.timedOut+=1):(c=rV(a),c.i+=1),a.timing.l||a.info.l.l++);YU(a,5)};
Oza=function(a,b){b&&(b=rV(a),b.l+=1);uV(a);a.lastError="net.timeout";sV(a)};
uV=function(a){a.ea();a.xhr&&a.xhr.abort();a.timing.deactivate()};
Jza=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Ws();return(!a.xhr.xr()||!b||-1!==b.indexOf("text/plain"))&&(!c||2048>=c)};
Gza=function(a){if(tB(a.l.ih))return new zza(a.l,a);var b=g.tC(a.l);return a.policy.Ea&&(a.policy.Kp&&!isNaN(a.info.ye)&&a.info.ye>a.policy.Nk||a.C?0:NA())?new pV(b,a.policy.B,a):new qV(b,a)};
Kza=function(a,b){if(b||a.xhr.Nm()&&a.xhr.dg()&&!Jza(a)&&!a.C){if(!a.i){if(a.xhr.xr())a.info.range&&(c=a.info.range.length);else var c=a.xhr.Jo();a.i=new iza(a.info.i,c)}for(;a.xhr.dg();)jza(a.i,a.xhr.oi(),b&&!a.xhr.dg())}};
Dza=function(a){if(!a.policy.B.Jf||!isNaN(a.info.ye)&&0<a.info.ye)return!1;if(!a.xhr.Nm())return a.ea(),!0;if(!OA(a.xhr))return!1;if(isNaN(a.info.ye)){var b=a.xhr.getResponseHeader("x-head-seqnum");if(!b)a.ea();else if(Number(b)>a.info.i[0].Ka)return!1}return!0};
vV=function(a,b,c,d,e){this.ma=a;this.policy=b;this.schedule=c;this.K=d;this.Y=e;this.X=NaN;this.l=this.J=this.B=null;this.i=this.C=this.G=this.startTimeSecs=NaN;this.u=!1;this.U=NaN};
Pza=function(a,b,c,d,e){return b.Va&&b.Pa&&3===mB(b)?new vV(a,b,c,d,e):null};
Qza=function(a,b){if(a.policy.Gn){var c=b.info.Ib,d=xF(a.schedule);b=b.index.Ag;c=Math.max(1,d/c);a.U=Math.round(1E3*Math.max(((c-1)*b+a.policy.K)/c,b-a.policy.Ob));a.ea()}};
Tza=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.G,f=e>=a.policy.Ah,h=!1;if(f){var l=0;!isNaN(b)&&b>a.C&&(l=b-a.C,a.C=b);l/e<a.policy.In&&(h=!0);a.ea();a.G=c}c=d>=a.policy.Ob&&!a.u;if(!f&&!c&&Rza(a,b))return NaN;c&&(a.u=!0,a.ea());a:{d=h;c=Date.now()/1E3-(a.K.Yf()||0)-a.J.l-a.policy.K;f=a.l.startTime;c=f+c;if(d){if(isNaN(b)){a.ea();wV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Nb;d<c&&(a.ea(),c=d)}else a.u&&(d=c+a.policy.K-a.X+a.policy.Jn,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Nb))),
c=d);c=Math.max(c,f);a.ea();f=c}a.i=f;if(isNaN(a.i))return a.ea(),a.clear(),NaN;if(!h&&Rza(a,b))return Sza(a,b),NaN;if(a.i<=a.l.startTime)return wV(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.i,!1))return!Sza(a,b)&&h&&(wV(a,NaN,"t",b),a.clear()),NaN;a.ea();h=a.i;wV(a,h,"s",b);a.clear();return h};
Sza=function(a,b){return a.Y(a.i,!0)?!1:(wV(a,NaN,"ns",b),a.ea(),a.clear(),!0)};
Rza=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.u?a.policy.Nb:a.policy.Hn)};
wV=function(a,b,c,d){var e=a.B.Xr();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.i).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.J.l).toFixed(0);e.ssr_fa=a.u?"1":"0";e.ssr_o=(1E3*a.K.Yf()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.l.i.index;fD(b,a.l.Ka,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.l.Ka)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.l.Ka)).toFixed(0));a.ma.Ja("ssr",g.nE(e))};
Uza=function(){if(!window.performance)return{};var a=window.performance.memory;return a?{jsTotal:a.totalJSHeapSize,jsUsed:a.usedJSHeapSize,msUsed:a.usedMediaSourceMemorySize}:{}};
g.xV=function(a,b,c,d,e,f,h,l,m){l=void 0===l?!1:l;g.Q.call(this);var n=this;this.Ga=a;this.schedule=b;this.policy=c;this.i=d;this.X=m;this.timing=new uU;this.mediaSource=null;this.J=this.currentTime=NaN;this.ma=this.Ua=0;this.va=this.La=this.isSuspended=!1;this.Ea="";this.xa={};this.Ya=this.ye=NaN;this.Rg=null;this.timestampOffset=NaN;this.bb=!1;this.Pa=0;this.U=!1;this.K=null;this.G=new kU(b,c);a=m&&Object.keys(m.me);this.l=new uya(this,this.G,c,this.i,e,a);c=zya(this.l,f,h&&h.id);this.audioTrack=
new aV(this,this.policy,c.audio);this.videoTrack=new aV(this,this.policy,c.video);this.videoTrack.B.va=this.audioTrack.B;this.Da={updateend:this.fM,error:this.KQ};this.Y=new g.J(this.fh,0,this);g.F(this,this.Y);this.Va=new g.J(this.fh,1E3,this);g.F(this,this.Va);this.jb=new g.J(this.fh,void 0,this);g.F(this,this.jb);this.eb=new g.J(this.fh,1E4,this);g.F(this,this.eb);this.Aa=new rF(5);this.C=Pza(this,this.policy,this.schedule,this.Aa,function(p,r){return Vza(n,p,r)});
this.u=new vU(this.i,this.policy,this.videoTrack,this.audioTrack,l);g.F(this,this.u);this.u.subscribe("ctmp",this.Ja,this);this.B=new oU(this.i,this.videoTrack,this.audioTrack,this.policy,this.u);g.F(this,this.B);Wza(this,this.B);this.ea()};
Yza=function(a,b){var c=b.i;if(a.X&&Xza(a.X,CC(c))&&c.indexRange&&c.initRange){var d=CC(c),e=c.indexRange.length+c.initRange.length,f=a.X.me[d].Os||0;if(f){if(e=c.Io(f-e))f=function(h){h.isFailed()?(a.Ja("ombf","1"),lV(b,h),UC(h.info)&&yV(a,b,c,!0),a.fh()):zV(a,h)&&a.fh()},c.B=!0,TC(e)&&dV(b,new $U(d,e,a.X,f))}else a.Ja("ombooo","1")}};
Zza=function(a){var b=a.videoTrack.i.index;a.Rg=new aya({al:a.policy.al,Jf:a.policy.B.Jf,Ag:b.Ag,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
Dq:function(){return b.Dq()}})};
BV=function(a,b){b=b||a.videoTrack&&a.videoTrack.l&&a.videoTrack.l.startTime||a.currentTime;var c=a.videoTrack,d=a.l;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.va!==b&&(d.xa={},d.va=b,zU(d,d.u));Dya(d);d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.va=-1);AV(a,c,d.nextVideo);AV(a,a.audioTrack,a.l.l)};
CV=function(a,b){a.La=b;a.U||(a.ea(),a.isSuspended=!0)};
$za=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.l&&(qx(a.mediaSource.i,a.Da,a),qx(a.mediaSource.l,a.Da,a));bV(a.audioTrack,null);bV(a.videoTrack,null);a.mediaSource=null};
EV=function(a,b){b=void 0===b?!1:b;a.ea();$za(a);b?(a.ea(),a.U=!0):a.policy.wc?CV(a,a.bb):CV(a,!1);DV(a)};
FV=function(a){a.mediaSource&&a.mediaSource.We()&&(EV(a),a.policy.Hp&&TU(a,!0,"fmt.unplayable",{unexpected:1}))};
HV=function(a,b,c){var d=a.u;if(2===d.l||3===d.l||a.isSuspended&&(!Fka(a.schedule)||a.La))return!1;if(a.i.isManifestless){if(0<b.u.length&&b.l&&-1===b.l.Ka||b.u.length>=a.policy.Lk&&!a.policy.Kb||!a.policy.Tk&&0<b.u.length&&!a.policy.B.Jf)return!1;if(b.J)return!a.i.isLive||!isNaN(a.ye)}if(xza(b))return a.ea(),!1;if(!(b.l||a.i.isManifestless&&a.policy.Kb&&b.J)){if(!b.i.Be())return!1;sU(b,a.currentTime)}d=b.u.length+c.u.length;(b.u.length&&b.u[0].Yp()||c.u.length&&c.u[0].Yp()||a.i.isLive&&(!a.policy.Kb||
!b.u.length))&&--d;if(d+1>=a.policy.Ok)return!1;if(!b.l)return!0;d=b.l;if(!AC(d.i.l,a.policy))return!1;4===d.type&&d.i.Be()&&(b.l=g.eb(d.i.Bu(d)),d=b.l);if(!d.u&&!d.i.Vl(d))return!1;var e=a.i.Le||a.i.K;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0<b.i.index.Qr&&0<e&&d.Ka>=e)return b.U=e,c.U=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(nV(b)&&!a.policy.Ua)return!0;if(d.u||hV(b)&&hV(b)+hV(c)>a.policy.bb)return!1;e=!b.C&&!c.C;
f=b===a.videoTrack&&a.U;if(!(c=!!(c.l&&!c.l.u&&c.l.B<d.B)&&(!a.i.isManifestless||c.l&&c.l.B&&d.B)&&e&&!f||a.policy.La&&!b.C&&c.C)&&(c=LC(d))){c=d.B;a:if(d=a.u,d=d.i?d.i.Fd:null,a.U&&d)a=d.startSecs+d.durationSecs+(a.policy.Ij?15:0);else{d=GV(a,b,!0);!FU(a.l)&&0<a.policy.U&&(e=((0,g.P)()-a.Ua)/1E3,d=Math.min(d,a.policy.U+a.policy.Gc*e));d=a.currentTime+d;if(a.policy.sf&&(e=aAa(a)+a.policy.sf,e<d)){a.Ja("mrl","ori."+d+";mod."+e,!0);a.policy.Ik&&(a.Ua=(0,g.P)());a=e;break a}a=d}c=c>a}return c?!1:(b=
b.Qb)&&b.isLocked()?!1:!0};
cAa=function(a,b,c){if(HV(a,b,c)){if(b.J){if(a.i.isLive){var d=a.i.Vd&&a.i.K?b.i.Wl(a.i.Vd,!1):b.i.Fm(Infinity);d.ye=a.ye}else d=b.i.Wl(0,!1);a.C?0===d.ye&&(d.C=a.C.U):d.C=a.Ya}else if(d=b.l,d.i.Be()){var e=d.B-a.currentTime,f=!d.range||0===d.l&&0===d.zb?0:d.range.length-(d.zb+d.l),h=d.i;if(mV(b)&&b.i.Be()){var l=Math.min(15,.5*GV(a,b,!0));var m=nV(b)||e<=l||a.l.K;a.ea("ready to adapt: "+m+", upgrade pending: "+nV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h=
b.i:(h=d.startTime+bAa,d.l&&(h+=d.duration),sU(b,h),d=b.l,h=d.i));h.Gg()?(f=a.l,c=lU(a.G,h.info.Ib,c.i.info.Ib,e,0<f.B.length&&0===f.videoIndex&&a.va),e=mV(b),c=d.i.Tp(d,c),c.range&&1<c.i.length&&(e||c.l.l||c.i[0].i!==d.i?c=d.i.Tp(d,c.i[0].l):(e=c.i[c.i.length-1],h=e.l/c.range.length,!e.Nd&&.4>h&&(c=d.i.Tp(d,c.range.length-e.l)))),d=c):(0>d.Ka&&(c=OC(d),c.pr=""+b.u.length,a.B.i&&(c.sk="1"),a.Ja("nosq",d.G+";"+g.nE(c))),d=h.Or(d));if(a.U)for(c=g.q(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Gg()?
(c=lU(a.G,b.i.info.Ib,c.i.info.Ib,0),d=d.i.Tp(d,c)):d=d.i.Or(d);if(a.K&&(c=a.u,e=d.i[0].Ka,c=0>e&&!isNaN(c.B)?c.B:e,e=a.u,h=(0>c||c===e.B)&&!isNaN(e.C)?e.C:d.i[0].C,e=a.K.Aq(h,c,d.i[0].i.info.id,b===a.audioTrack?1:2),0>c&&tya(a.u,0,0,!0),e)){h="decurl_itag"+d.i[0].i.info.kc()+"_sg"+c+"_st"+h.toFixed(3)+".";if(a.policy.Np&&b.isRequestPending(c-1)){a.Ja("sdai","wt_daistate_on_sg"+(c-1));return}a.Ja("sdai",h);c=d;e&&(c.u=new g.pB(e))}a.policy.Gi&&-1!==d.i[0].Ka&&d.i[0].Ka<a.i.Vd&&(d=b.i.Wl(a.i.Vd,!1));
dV(b,IV(a,d))}};
dAa=function(a,b){var c=WC(b),d=a.G,e=Math.min(2.5,vF(d.schedule));d=mU(d);var f=KC(b.i[0]),h=tB(b.l.i),l;a.Rg?l={Oh:f,dk:h,Rg:a.Rg,Ka:b.i[0].Ka,ye:b.ye}:l={Oh:f,dk:h};return new cU(a.schedule,c,c-e*d,l)};
IV=function(a,b){LC(b.i[b.i.length-1])&&eAa(a,Bya(a.l,b.i[0].i));var c=dAa(a,b);a.policy.Y&&(c.C=[]);var d={Vn:Math.max(0,b.i[0].C-a.currentTime),nu:a.policy.rf&&UC(b)&&b.i[0].i.info.video?Iya(a.l):void 0,Nu:a.U};return new tV(a.policy,b,c,a.xa,function(e,f){a:{var h=e.info.i[0].i,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||3<=e.state||e.B||!(!a.mediaSource||a.isSuspended||3<iV(l,a.currentTime))){var m=a.policy.wb;if(!(!m||3<=e.state||e.B<m||zC(e.info.l,a.xa))){m=a.xa;var n=sB(yC(e.info.l));
m=wC(m,n);m.i||m.timedOut||m.started||(m=XC(e.info,!0))&&IV(a,m)}if(3<=e.state||e.Ha()&&3>f)a.policy.Ya&&(f=eya(e.timing),m=e.timing,a.Ja("rqs",g.nE({rn:e.requestNumber.toString(),rt:f.rt,pt:f.pt,stall:f.stall,elt:f.elbowTime,elb:f.elbowBytes,rst:""+e.state,strm:""+e.xhr.xr(),d:m.C?m.C.join(""):""}))),e.va&&a.Ja("sbwe3","1",!0);if(!a.Ha()&&2<=e.state)if(f=a.timing,n=e.info.i[0].i,m=!f.l&&n.info.video,n=!f.i&&n.info.audio,3===e.state?m?f.tick("vrr"):n&&f.tick("arr"):4===e.state?m?(f.l=g.tC(e.l),eu(),
hu(4)):n&&(f.i=g.tC(e.l)):e.Yp()&&m&&(eu(),hu(4)),3===e.state)lV(l,e),UC(e.info)&&yV(a,l,h,!0),a.K&&(l=e.info.Aq())&&a.K.Ti(e.info.i[0].Ka,h.info.id,l),a.fh();else if(3<=e.state&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).u[0]||null)&&h instanceof tV&&h.B&&Oza(h,!0),e.dispose();else{if(!e.isFailed()&&e.C&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.ea();h=Hya(a.l,h);l=e.info.range.length-h.iB();h.B=!0;e.info.i[0].i.B=!1;
f=h.Io(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=sD(l.Gd[0].i);sD(g.eb(l.Gd).i);for(var p=0;p<l.Gd.length;p++){l.Gd[p].info=f[p];var r=f[p].range;l.Gd[p].i=new lD([new Uint8Array(n.buffer,r.start-m.start,r.length)])}}e.C=!1;AV(a,a.videoTrack,h);l=a.videoTrack;l.l&&(l.l.i=h);a.W("constraint",h.info.fb().quality);(l=e.xhr.getResponseHeader("X-Segment-Lmt"))&&h.info.lastModified&&h.info.lastModified!==+l&&lV(a.videoTrack,e)}else e.C=!1;if(4===e.state){if(zV(a,e),a.u&&(h=a.u,l=e.info,f=a.K,
0!==h.l&&f&&l.i[0].isVideo()))if(l.i[0].Ka>h.B&&(h.B=NaN,h.C=NaN),h.i&&h.i.Ka===l.i[0].Ka)if(m=h.i.Fd.event,"start"===m||"continue"===m){if(1===h.l||5===h.l)h.B=l.i[0].Ka,h.C=l.i[0].C,yT(h,"sdai","joinad"+h.l+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.l=2,f.tB(h.i.Fd)}else h.l=5;else 1===h.l&&(h.l=5)}else if(a.policy.Ea&&e.Xq()&&!(3<=e.state)&&!zV(a,e)&&!e.isFailed())break a;e.isFailed()&&(h=e.info.i[0].i,l=e.lastError,tB(h.l.i)&&(f=g.$d(g.Xa(e.Yd()),3),a.Ja("dldbrerr",f||"none")),e.canRetry()?(f=(h.info.video&&
1<h.l.l||410===e.u||500===e.u||503===e.u)&&!EU(a.l),m=e.Xr(),n=h.info.video?a.videoTrack:a.audioTrack,f&&(m.stun="1"),TU(a,!1,l,m),a.Ha()||(f&&(a.ea(),DU(a.l,h)),a.policy.uf&&1===e.info.i.length&&0<e.info.i[0].zb&&h!==n.i&&a.va?a.W("reattachrequired"):(lV(n,e),a.fh()))):tB(h.l.i)?(a.W("localplaybackfailed"),TU(a,!1,"net.closed",{err:e.lastError||"",rn:e.requestNumber.toString()})):(TU(a,!1,l,e.Xr()),e.info.Oh()&&!a.policy.i?(h.C=l,a.fh()):TU(a,!0,"net.retryexhausted",{err:l,rn:e.requestNumber.toString()})));
a.fh();a.policy.qb&&3<=e.state&&e.canRetry()&&zC(e.info.l,a.xa)&&(h=a.xa,l=sB(e.info.l.i),h=wC(h,l),h.u+a.policy.qb*vC(h,a.policy,!0)>(0,g.P)()||(e=XC(e.info,!1))&&IV(a,e))}}}},d)};
eAa=function(a,b){b&&(a.ea(),a.W("videoformatchange",b));a.policy.Kk&&a.l.Pa&&a.W("audioformatchange",Cya(a.l,"a"))};
zV=function(a,b){try{var c=b.info.i[0].i,d=c.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&d){d.J&&(b.Ha(),3<=b.state||b.Xq(),d.J=!1);b.dB()&&a.Aa.Fg(1,b.dB());var e=b.IE(),f=b.gH(),h=a.i,l;for(l in h.i){var m=h.i[l].index;m.Mj&&(e&&(m.Qr=Math.max(m.Qr,e)),f&&(m.i=Math.max(m.i||0,f)))}}if(b.info.Oh()&&!TC(b.info)){for(var n=g.q(b.vz()),p=n.next();!p.done;p=n.next())RU(d.B,p.value);a.W("metadata",c)}eV(d);return!!d.qg()}catch(r){return r instanceof Error&&(g.Tx(r),b=b.Xr(),b.origin="hrhs",
TU(a,!0,"fmt.unplayable",b)),!1}};
KV=function(a){var b=a.mediaSource.i,c=a.mediaSource.l,d=fAa(a);if(d){if(a.policy.rj){if(!b.Ho()){var e=a.audioTrack.qg();e&&JV(a,b,e)}c.Ho()||(b=a.videoTrack.qg())&&JV(a,c,b)}a.ma||(a.ma=(0,g.P)(),a.ea(),a.policy.Y&&a.Ja("apdps","r."+d))}else{if(a.ma){d=(0,g.P)()-a.ma;e=iV(a.audioTrack,a.currentTime);var f=iV(a.videoTrack,a.currentTime);a.ea();a.policy.Y&&a.Ja("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.ma=0}if(a.C){d=a.C;e=a.audioTrack;f=iE(a.mediaSource.l.Te());
if(d.B)d=Tza(d,f);else{if(f=e.qg()){var h=f.l;h&&h.C&&h.l&&(e=e.u.length?e.u[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.ye&&(d.B=e,d.J=h,d.l=f.info,d.startTimeSecs=Date.now()/1E3,d.G=d.startTimeSecs,d.C=d.l.startTime,d.ea())}d=NaN}d&&a.W("seekplayerrequired",d,!0)}d=!1;gAa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.B||(e.B=Date.now(),e.tick("vda"),JA("vda","video_to_ad"),e.u&&(eu(),hu(4))));if(a.mediaSource&&!a.mediaSource.We()&&(gAa(a,a.audioTrack,b)&&(d=a.timing,d.u||(d.u=Date.now(),d.tick("ada"),
JA("ada","video_to_ad"),d.B&&(eu(),hu(4))),d=!0),!a.Ha()&&a.mediaSource)){!a.policy.xa&&gV(a.videoTrack)&&gV(a.audioTrack)&&tE(a.mediaSource)&&!a.mediaSource.eg()&&(e=cV(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.ea(),e=a.mediaSource,tE(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.qe.webkitSourceEndOfStream(e.qe.EOS_NO_ERROR)),e=a.schedule,Eka(yF(e)),e.C=uF()));e=a.policy.Pk;f=a.policy.Rp;d||!(0<e||f)||!tE(a.mediaSource)||gV(a.videoTrack)||gV(a.audioTrack)||(b.Vu(a.currentTime,f,e),c.Vu(a.currentTime,
f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):xE());c&&g.Eq(a.Y)}}};
fAa=function(a){if(xza(a.videoTrack))return a.ea(),"ssf";var b=a.u;if(1===b.l||2===b.l||3===b.l)return"cpm";if(a.policy.nf||tza(a.videoTrack)||tza(a.audioTrack))return"";if(a.B.i){b=a.G;var c=a.videoTrack,d=a.audioTrack;if(c.u.length||d.u.length){var e=0,f=UU(c.B).concat(UU(d.B));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.l;c=c.i.info.Ib+d.i.info.Ib;e/=c;b=e<b.policy.Rk?!1:10<e?!0:10>c*(10-e)/nU(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.u.length&&1===b.B.l.length&&Uya(b.B).info.J<
b.X)return"seek"}if(!a.va||!a.policy.jb||10>a.currentTime||360<a.videoTrack.i.info.fb().i)return"";b=uza(a.videoTrack,a.currentTime,a.policy.jb)||uza(a.audioTrack,a.currentTime,a.policy.jb);return(0<a.videoTrack.u.length||0<a.audioTrack.u.length||HV(a,a.videoTrack,a.audioTrack)||HV(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
gAa=function(a,b,c){if(c.eg())return!0;if(!c.qA())return!1;var d=b.qg(),e;if(!(e=!d||6===d.info.type)&&(e=a.u)){e=a.u;var f;if(f=0!==e.l&&b===e.ma)e=kV(e.J),f=d.info.Ka>(e?e.Ka:-1);e=!!f}if(e)return!1;e=d.info;f=cV(b);!f||f.Nd||MC(f,e)||c.abort();!c.ct()||qE()?c.PD(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.ct()&&a.Ja("ctu","ct."+qE()+";prev_c."+c.ct()+";curr_c."+e.i.info.containerType);f=e.i.G;a.policy.Bj&&f&&(e=0+f.duration,f=-f.i,0===c.ow()&&e===c.bB()||c.cD(0,e),f!==
c.Lc()&&(c.rr(f),VU&&fza(a.audioTrack.B,c.nB())));if(a.i.u&&0===d.info.zb&&(g.BD(d.info.i.info)||a.policy.cq)){if(null==c.Ho()){e=cV(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Ab(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Ho(),f=d.info.i.i,e=e!==f&&!g.Ab(e,f);e&&a.Ja("initchg","it."+d.info.i.info.id+".ty."+d.info.type+".seg."+d.info.Ka);a.policy.Hb&&!e&&(g.BD(d.info.i.info)?(YB(xD(d),1836019574),YB(xD(d),1718909296)):(e=
new aC(xD(d)),qC(e),eC(e,524531317,!0),d.i=d.i.split(e.start+e.i).Fp),d.u=!1)}a.policy.fg&&d.u&&(d.u=!1);e=a.C&&!!a.C.B&&b.i.info.audio;f=a.i.isManifestless||d.u;if(!(a.i.u&&0!==d.info.zb||f&&!e)&&JV(a,c,d))return!0;if(e)return!1;e=a.currentTime+GV(a,b,!1);if(!(e=d.info.C>e)){a:if(a.policy.Tc&&(!d.info.zb||d.info.Nd||10>d.info.C)&&a.Ja("sba",c.Cb({as:IC(d.info)})),e=d.u?d.info.i.i:null,f=sD(d.i),d.u&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=hAa(a,c,f,d.info,e),"s"===e)a.Pa=0,e=!0;else{a.policy.zj||
(c.abort(),rU(b));if("i"===e||"x"===e)iAa(a,"checked",e,d.info);else{if("q"===e)if(d.info.isVideo()?(e=a.policy,e.G=Math.floor(.8*e.G),e.X=Math.floor(.8*e.X),e.C=Math.floor(.8*e.C)):(e=a.policy,e.J=Math.floor(.8*e.J),e.eb=Math.floor(.8*e.eb),e.C=Math.floor(.8*e.C)),a.policy.Bb)DU(a.l,d.info.i);else if(!c.eg()&&!a.mediaSource.isView&&c.Vu(Math.min(a.currentTime,d.info.startTime),!0,5)){e=!1;break a}a.W("reattachrequired")}e=!1}e=!e}if(e)return!1;b.oi(d);a.ea("Appended "+IC(d.info)+", buffered: "+eE(c.Te()));
return!0};
iAa=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.C=e,d.i.info.video&&!EU(a.l)&&DU(a.l,d.i)):"i"===c&&(15>a.Pa?(a.Pa++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=OC(d);d.mrs=wE(a.mediaSource);d.origin=b;d.reason=c;TU(a,f,e,d)};
dza=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=VD(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!fD(l,b.Ka))l.jz(b),e=!0;else if(d.Ua){e=b;var m=l.Pi(e.Ka);m&&m.startTime!==e.startTime?(l.segments=[],l.jz(e),e=!0):e=!1;e&&(f=b.Ka)}}0<=f&&d.W("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);rya(a.B,b,c,e);a.u.uC(b,c)};
JV=function(a,b,c){c.info.i.Be();var d=c.info.i.i;if(null==d||b.Ho()===d)return!1;var e=d,f=b.qw();if(a.policy.fg&&f&&b.isView()&&g.BD(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=pja(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ja("fenc","1")}f=null;(h=c.info.i.Io(0))&&(f=h.i[0]);a.policy.Ci&&b.abort();d=hAa(a,b,e,f,d);if("s"!==d)return iAa(a,"sepInit",d,c.info),!0;a.ea();return b.eg()};
hAa=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:eE(b.Te()).replace(/,/g,"_"),message:g.$d(g.Xa(f.message),3),track:a.mediaSource?b===a.mediaSource.l?"v":"a":"u"},Uza()),TU(a,!1,"player.exception",b),"q";g.Tx(f)}return"u"}return a.mediaSource.We()?"m":"s"};
Wza=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.U||a.W("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.Ja(c,d,!1)});
b.subscribe("error",function(c,d,e){TU(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.currentTime=c})};
NU=function(a,b){a.W("localmediachange",b)};
GV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.J:a.policy.G;!a.policy.Ua&&FU(a.l)&&(d=Math.max(d,b.i.info.audio?a.policy.eb:a.policy.X));c&&(d+=a.policy.bb);var e=FU(a.l)?b.l?b.l.i.info.Ib:b.i.info.Ib:b.Ib;d/=e;0<a.policy.mf&&a.mediaSource&&tE(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.l:a.mediaSource.i)&&!b.eg()&&(b=b.Te(),e=fE(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.mf,a.policy.Qk))));0<a.policy.C&&(d=Math.min(d,a.policy.C));
a.policy.Id&&c&&!FU(a.l)&&(c=a.l,c=CU(c,g.eb(c.B))+CU(c,c.G.i[0]),c=a.policy.Id*(c/mU(a.G)),c<d&&15>c&&a.Ja("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
aAa=function(a){var b=g.Po(a.Ga.Bm(),function(d){return"ad"===d.namespace});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
jAa=function(a,b){(new oV(b,"cms",null,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.W.apply(a,["error"].concat(g.ma(d)))})).send()};
kAa=function(a,b){if(a.mediaSource&&a.mediaSource.l){b-=!isNaN(a.timestampOffset)&&a.policy.Vb?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.B.i&&!a.mediaSource.We()){var c=a.currentTime<=b&&b<a.currentTime+10,d=gE(a.mediaSource.l.Te(),a.currentTime+bAa);c&&d&&(a.B.i=!1)}a.B.i||(a.currentTime=b);g.Eq(a.Va)}};
lAa=function(a,b){var c=fV(a.videoTrack).find(function(d){return d.startTime>=b&&Vza(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
Vza=function(a,b,c){if(!(a.videoTrack.i.Be()&&a.audioTrack.i.Be()&&a.mediaSource&&a.mediaSource.l&&a.mediaSource.i))return!1;if(c&&a.i.isManifestless&&(-1===a.videoTrack.G||-1===a.audioTrack.G))return!0;var d=qU(a.videoTrack,b,c);if(isNaN(d))return!1;a=qU(a.audioTrack,a.policy.Pa?b:d,c);return isNaN(a)?!1:!0};
AV=function(a,b,c){b.i!==c&&(a.ea(),b.i=c)};
yV=function(a,b,c,d){if(!c.Be()&&!c.B&&AC(c.l,a.policy)&&"f"!==c.info.i){if(d){d=a.G;var e=c.info,f=kya(d,e.video?d.policy.Sp:d.policy.vj,e.Ib);d=d.policy.Bh&&e.video?Math.max(f,d.policy.Bh):f}else d=0;d=c.Io(d);a=IV(a,d);TC(d)&&dV(b,a);c.B=!0}};
TU=function(a,b,c,d){a.Ha()||(d=new g.mE(c,b,d),g.Pa(a),g.nE(d.details),a.W("error",d),"html5.invalidstate"!==c&&"fmt.unplayable"!==d.errorCode&&"fmt.unparseable"!==c&&b&&a.dispose())};
DV=function(a){rU(a.audioTrack);rU(a.videoTrack)};
mAa=function(a,b){var c=b.info.video?a.videoTrack:a.audioTrack;null!=c&&yV(a,c,b,!1)};
bza=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.ea(),a.u.K=a.timestampOffset,a.W("timestamp",a.timestampOffset),a.i.isManifestless&&(b=a.i,a=a.timestampOffset,b.Aa?b.timestampOffset=a:b.l=a))};
g.LV=function(a){this.i=a};
MV=function(){g.Q.apply(this,arguments)};
NV=function(a,b,c,d){MV.call(this);var e=this;this.u=-1;this.i={};this.B=new g.J(this.C,0,this);g.F(this,this.B);this.l=new g.J(function(){e.Ha()||(e.B.start(Math.random()*c),e.l.start(b))},a,this);
g.F(this,this.l);d.subscribe("fairplay_next_need_key_info",this.G,this)};
nAa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
oAa=function(a){var b=a.interval,c=a.Cu;this.url=a.url;this.interval=b;this.Cu=c};
pAa=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.l={};this.nextFairplayKeyId=null};
rAa=function(a){var b=DB(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=MB(b.slice(d+2));if(null==b)return null;a=new pAa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.Loa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new oAa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Cu:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.l=qAa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
qAa=function(a){if(!a)return{};a=a.split(";");var b={};g.Cb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
OV=function(a,b,c){c=void 0===c?"":c;g.E.call(this);this.message=a;this.requestNumber=b;this.l=c;this.onError=this.onSuccess=null;this.i=new g.Ve(5E3,2E4,.2)};
sAa=function(a,b,c){a.onSuccess=b;a.onError=c};
uAa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Ha())if(a.ea(),0!==e.status&&e.response)if(EA("drm_net_r",void 0,a.l),e=new Uint8Array(e.response),e=rAa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else tAa(a,e)},
onError:function(e){tAa(a,e)}};
c&&(b=zi(b,"access_token",c));g.Ps(b,d);a.ea()};
tAa=function(a,b){if(!a.Ha())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
wAa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Ha()){a.ea();EA("drm_net_r",void 0,a.l);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.xd(f.license)}catch(x){g.Tx(x)}if(0!==h||l){l=new pAa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.q(f.authorizedFormats),r=p.next();!r.done;r=p.next())if(r=r.value,r.trackType&&r.keyId){var t=vAa[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");r.isHdr&&(t+="HDR");
h[t]||(m.push(t),h[t]=!0);var u=null;try{u=g.xd(r.keyId)}catch(x){g.Tx(x)}u&&(n[g.$d(u,4)]=t)}}l.i=m;l.l=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.Ha())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.XF="Bearer "+d);g.Ou(c,"player/get_drm_license",b,e)};
QV=function(a,b,c,d){g.Q.call(this);this.videoData=a;this.u=b;this.Aa=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.Y=!1;this.B=null;this.va=[];this.G=[];this.X=!1;this.i={};this.ma=NaN;this.status="";this.J=NaN;this.l=a.G;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.u.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.xa&&(a.vvt=this.videoData.xa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.u.Y&&(a.authuser=this.u.Y);this.u.pageId&&(a.pageid=this.u.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.Z("html5_send_drm_atv_device_type")){var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Tc))?e[1]:"";"ATV"===e&&(a.cdt=e)}this.C=a;this.C.session_id=d;this.U=!0;"widevine"===this.l.flavor&&(this.C.hdr="1");"playready"===this.l.flavor&&(b=Number(g.$E(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.U=
!1,this.videoData.Z("html5_playready_enable_non_persist_license")&&(this.C.pst="0"));this.baseUrl=g.hF(this.l)?nAa(c.initData).replace("skd://","https://"):this.l.u;this.fairplayKeyId=xi(this.baseUrl,"ek")||"";if(b=xi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.xa=this.videoData.Z("html5_use_drm_retry");this.va=c.l;this.ea();PV(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
BAa=function(a,b){PV(a,"createkeysession");a.status="gr";EA("drm_gk_s",void 0,a.videoData.bb);a.url=xAa(a);try{a.B=b.createSession(a.Aa,function(c){PV(a,c)})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.W("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(yAa(a.B,function(c,d){zAa(a,c,d)},function(c){a.Ha()||(a.ea(),a.error("drm.keyerror",!0,c))},function(){a.Ha()||(a.ea(),PV(a,"onkyadd"),a.K||(a.W("sessionready"),a.K=!0))},function(c){AAa(a,c)}),g.F(a,a.B))};
xAa=function(a){var b=a.baseUrl;Tia(b)||a.error("drm.net",!0,"t.x");if(!xi(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.u.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.q(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=zi(b,d,a.C[d]);return b};
CAa=function(a){var b={};Object.assign(b,a.C);return b};
zAa=function(a,b,c){if(!a.Ha())if(b){a.ea();PV(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":DAa(a,b);return;default:a.W("ctmp","message_type","t."+c+";l."+b.byteLength)}a.Y||(EA("drm_gk_f",void 0,a.videoData.bb),a.Y=!0,a.W("newsession",a));if(dF(a.l)&&(b=EAa(b),!b))return;g.hF(a.l)&&!a.videoData.useInnertubeDrmService()&&(b=CB(g.$d(b)));b=new OV(b,++a.requestNumber,a.videoData.bb);sAa(b,function(d,
e){FAa(a,d,e)},function(d,e,f){if(!a.Ha()){var h=!1,l;
(l=3<=d.i.l)||(l=a.xa&&36E4<(0,g.P)()-a.ma);l&&(h=!0,e="drm.net.retryexhausted");a.ea();PV(a,"onlcsrqerr."+e+";"+f);a.error(e,h,f);a.shouldRetry(h,d)&&GAa(a,d)}});
g.F(a,b);HAa(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
DAa=function(a,b){a.ea();PV(a,"sdpvrq");a.J=Date.now();if("widevine"!==a.l.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.l.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.u.deviceParams);c=g.ti("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:DB(b)}),responseType:"arraybuffer"};
g.Us(c,b,3,500).then(Tr(function(d){d=d.xhr;if(!a.Ha()){d=new Uint8Array(d.response);var e=DB(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.W("ctmp","drminfo","provisioning"),f=(Date.now()-a.J)/1E3,a.J=NaN,a.W("ctmp","provs",""+f.toFixed(3)),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",!0,d))}}),Tr(function(d){a.Ha()||a.error("drm.provision",!0,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
AAa=function(a,b){a.Ha()||0>=b.size||(b.forEach(function(c,d){var e=dF(a.l)?d:c;d=new Uint8Array(dF(a.l)?c:d);dF(a.l)&&IAa(d);c=g.$d(d,4);IAa(d);d=g.$d(d,4);a.i[c]?a.i[c].status=e:a.i[d]?a.i[d].status=e:a.i[c]={type:"",status:e}}),a.ea("Key statuses changed: "+JAa(a,",")),PV(a,"onkeystatuschange"),a.status="kc",a.W("keystatuseschange",a))};
RV=function(a){var b;if(b=a.U&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b};
HAa=function(a,b){var c,d;a.status="km";EA("drm_net_s",void 0,a.videoData.bb);if(a.videoData.useInnertubeDrmService()){var e=new g.cx(a.u.qf),f={context:g.Mu(e.config_||g.Nu())};f.drmSystem=KAa[a.l.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.$d(b.message);f.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=a.cryptoPeriodIndex);var h=!(null===(d=null===(c=a.videoData.l)||void 0===
c?void 0:c.fb())||void 0===d||!d.isHdr());a.videoData.Z("html5_request_only_hdr_or_sdr_keys")&&(f.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR");if(!f.context||!f.context.client){a.ea();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.u.deviceParams)f.context.client.deviceMake=h.cbrand,f.context.client.deviceModel=h.cmodel,f.context.client.browserName=h.cbr,f.context.client.browserVersion=h.cbrver,f.context.client.osName=h.cos,f.context.client.osVersion=h.cosver;f.context.user=
f.context.user||{};f.context.request=f.context.request||{};a.videoData.xa&&(f.context.user.credentialTransferTokens=[{token:a.videoData.xa,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.eb&&(f.context.user.kidsParent={oauthToken:a.videoData.eb});if(g.hF(a.l)){h=a.fairplayKeyId;for(var l=[],m=0;m<h.length;m+=2)l.push(parseInt(h.substring(m,m+2),16));f.fairplayKeyId=g.$d(l)}wAa(b,f,e,a.videoData.Ve())}else uAa(b,a.url,a.videoData.oauthToken);
a.status="rs"};
FAa=function(a,b,c){if(!a.Ha()){if(a.requestNumber!==c&&"widevine"===a.l.flavor&&((a.u.Z("html5_drm_ignore_out_of_order_responses")||a.u.Z("html5_drm_ignore_out_of_order_responses_cfl"))&&PV(a,"drmOOO."+a.requestNumber+"."+c,!0),a.u.Z("html5_drm_ignore_out_of_order_responses")))return;PV(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(EA("drm_kr_s",void 0,a.videoData.bb),b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.Z("outertube_streaming_data_always_use_staging_license_service")&&
(c=a.l.u.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.W("newlicense",b.heartbeatParams),b.i&&(a.G=b.i,g.S(a.u.experiments,"html5_heartbeat_wait_for_drm_killswitch")||(a.videoData.useInnertubeDrmService()&&!a.videoData.uA&&a.W("newlicense",new oAa({})),a.videoData.uA=!0),a.X=sn(a.G,function(d){return d.includes("HDR")})),b.l&&(a.i=Gb(b.l,function(d){return{type:d,
status:"unknown"}})),fF(a.l)&&!a.videoData.useInnertubeDrmService()?b.message=g.xd(DB(b.message)):gF(a.l)&&a.videoData.useInnertubeDrmService()&&(b.message=CB(g.$d(b.message))),a.B&&(a.ea(),PV(a,"updtks"),a.status="ku",a.B.update(b.message).then(function(){EA("drm_kr_f",void 0,a.videoData.bb);
if(!RV(a))if(PV(a,"ksApiUnsup"),eF(a.l)){var d=LAa(a.G);480<g.SA[d]&&a.W("hdentitled",a)}else a.W("keystatuseschange",a)},function(d){d="msuf.req."+a.requestNumber+";msg."+g.$d(g.Xa(d.message),3);
a.error("drm.keyerror",!0,d)})),a.K&&(a.ma=(0,g.P)()),g.hF(a.l)&&a.W("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
GAa=function(a,b){var c=b.i.getValue();c=new g.J(function(){HAa(a,b)},c);
g.F(a,c);c.start();g.Ze(b.i);a.ea();PV(a,"rtyrq")};
MAa=function(a,b){if(!RV(a)&&eF(a.l)&&!b)return"large";b=[];var c=!0;if(RV(a))for(var d=g.q(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.i[e].status&&b.push(a.i[e].type),"unknown"!==a.i[e].status&&(c=!1);if(!RV(a)||c)b=a.G;return LAa(b)};
JAa=function(a,b){for(var c=[],d=g.q(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.i[e].type+"_"+a.i[e].status);return c.join(b)};
NAa=function(a){var b=a.status+".";return RV(a)?b+JAa(a,"."):b+a.G.join(".")};
OAa=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
SV=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
PV=function(a,b,c){c=void 0===c?!1:c;a.ea();(c||a.videoData.X||"playready"===a.l.flavor&&a.videoData.Z("html5_log_playready_high_res"))&&a.W("ctmp","drmlog",b)};
IAa=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
LAa=function(a){return g.kb(a,"UHD2")||g.kb(a,"UHD2HDR")?"highres":g.kb(a,"UHD1")||g.kb(a,"UHD1HDR")?"hd2160":g.kb(a,"HD")||g.kb(a,"HDHDR")?"hd1080":g.kb(a,"HD720")||g.kb(a,"HD720HDR")?"hd720":"large"};
EAa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=md(new DOMParser,g.dd(g.fc("Uses only text content."),b),"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(oR(ee(a.childNodes[0].nodeValue)).buffer):null:null};
PAa=function(a,b,c,d,e){var f;"playready"===e?f=EAa(a):"fairplay"===e&&(f=CB(g.$d(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Mda(c,d),g.Us(c,a,3,500).then(function(h){h=new Uint8Array(h.xhr.response);(h=rAa(h))&&h.message&&b.update(h.message)}))};
TV=function(a,b,c,d,e){g.E.call(this);this.element=a;this.K=b;this.initData=c;this.i=d;this.l=e;this.sessionId="";this.J=this.G=this.u=this.C=null;this.B=new mx(this);g.F(this,this.B);QAa(this)};
QAa=function(a){a.i?(a.B.N(a.i,"message",a.gM),a.B.N(a.i,"keystatuseschange",a.hM),a.i.closed&&a.i.closed.then(Tr(function(){a.Ha()||ft("xboxone")&&a.u&&a.u("closed")}),null)):a.l&&(nx(a.B,a.l,["mskeymessage",
"webkitkeymessage"],a.lJ),nx(a.B,a.l,["mskeyerror","webkitkeyerror"],a.kJ),nx(a.B,a.l,["mskeyadded","webkitkeyadded"],a.jJ))};
yAa=function(a,b,c,d,e){a.C=b;a.u=c;a.G=d;a.J=e};
RAa=function(a,b,c){g.Sr(c);a.u&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.u(b))};
UV=function(a,b){g.E.call(this);this.element=a;this.i=b;this.G={};this.B=null;this.C=new mx(this);this.u=this.l=null;g.F(this,this.C)};
VV=function(a){if(a.i.keySystemAccess)return a.i.keySystemAccess.createMediaKeys().then(function(b){a.Ha()||(a.l=b,a.element.setMediaKeys(b))});
cF(a.i)?a.u=new (bF())(a.i.keySystem):fF(a.i)?(a.u=new (bF())(a.i.keySystem),a.element.webkitSetMediaKeys(a.u)):SAa(a);return null};
SAa=function(a){nx(a.C,a.element,["keymessage","webkitkeymessage"],a.kM);nx(a.C,a.element,["keyerror","webkitkeyerror"],a.jM);nx(a.C,a.element,["keyadded","webkitkeyadded"],a.iM)};
UAa=function(a,b){b=TAa(b,a.i.l);a=a.u.createSession("video/mp4",b);return new TV(null,null,null,null,a)};
VAa=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.u.createSession("video/mp4",b,c);return new TV(null,null,null,null,a)};
WV=function(a,b){var c=a.G[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.G[b.sessionId]=c);return c};
TAa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
XV=function(a,b){g.E.call(this);this.i=g.ng("video");this.l=null;this.C=[];this.B=new mx(this);this.u=new aF("fairplay","com.youtube.fairplay","",b);this.u.l=a;g.F(this,this.B);this.init()};
YV=function(a,b,c){MV.call(this);var d=this;this.B=a;this.u=b;this.i=[];this.l=new g.J(function(){if(d.i){if(0<d.i.length){var e=d.i.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.u.values.length)f=!0;else{for(var h=g.q(d.u.values),l=h.next();!l.done;l=h.next())if(l.value.cryptoPeriodIndex===f){f=!0;break a}f=!1}}f||d.W("rotated_need_key_info_ready",e)}0<d.i.length&&(e=d.i[0].time-(0,g.P)(),d.l.start(Math.max(0,e)))}},0);
g.F(this,this.l);c.subscribe("widevine_set_need_key_info",this.C,this)};
ZV=function(){this.keys=[];this.values=[]};
$V=function(a){a.keys=[];a.values=[]};
aW=function(a,b){return g.ib(a.keys,function(c){return g.Ab(b,c)})};
cW=function(a,b,c){g.Q.call(this);this.element=a;this.videoData=b;this.u=c;this.i=this.videoData.G;this.drmSessionId=this.videoData.drmSessionId||g.Ax();this.l=new ZV;this.G=new ZV;this.K=new ZV;this.B=[];this.La=2;this.ma=new mx(this);this.Pa=this.Ea=!1;this.heartbeatParams=null;this.va=this.Aa=this.xa=this.Y=!1;this.J=null;this.Da=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||bF()||iF(c.experiments);c=this.videoData.rf;this.U="fairplay"===this.i.flavor||c?qH:WAa;this.C=new UV(this.element,this.i);
g.F(this,this.C);cF(this.i)&&(this.X=new UV(this.element,this.i),g.F(this,this.X));g.F(this,this.ma);c=this.element;this.i.keySystemAccess?this.ma.N(c,"encrypted",this.lM):nx(this.ma,c,cF(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.WR);XAa(this);a:switch(c=this.i,a=this.u.experiments,b=this.l,c.flavor){case "fairplay":19.2999<et()?(a=c.J,c=c.G,c>=a&&(c=.75*a),b=.5*(a-c),c=new NV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new YV(g.S(a,"disable_license_delay"),b,this);break a;default:c=
null}if(this.J=c)g.F(this,this.J),this.J.subscribe("rotated_need_key_info_ready",this.UF,this);this.ea("Created, key system "+this.i.keySystem+", final EME "+iF(this.u.experiments));bW(this,"cks"+this.i.Ue());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.C&&(this.Ua=new XV(this.videoData.Ob,this.u.experiments),g.F(this,this.Ua))};
XAa=function(a){var b=VV(a.C);b?b.then(Tr(function(){YAa(a)}),Tr(function(c){if(!a.Ha()){a.ea();
g.Sr(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.W("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ea(),bW(a,"mdkrdy"),a.Y=!0);
a.X&&(b=VV(a.X))};
ZAa=function(a,b,c){a.Pa=!0;c=new KU(b,c);a.u.Z("html5_eme_loader_sync")&&(a.G.get(b)||a.G.set(b,c));a.u.Z("html5_process_all_encrypted_events")?dW(a,c):a.u.Z("html5_eme_loader_sync")?dW(a,c):0!==a.B.length&&a.videoData.u&&a.videoData.u.i?eW(a):dW(a,c)};
aBa=function(a,b){if(cF(a.i)&&!a.xa&&(b=Nya(b),0!==b.length)){var c=new KU(b);a.xa=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(d){d.createMediaKeys().then(function(e){$Aa(a,e,c)})},null)}};
$Aa=function(a,b,c){var d=b.createSession(),e=a.l.values[0],f=CAa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);PAa(h,d,a.i.u,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.Aa=!0,bBa(a,MAa(e,a.Aa)))});
d.generateRequest("cenc",c.initData)};
dW=function(a,b){if(!a.Ha()){bW(a,"onInitData");if(g.S(a.u.experiments,"html5_eme_loader_sync")&&a.videoData.u&&a.videoData.u.i){var c=a.K.get(b.initData);b=a.G.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.G.remove(c);a.K.remove(c)}a.ea();bW(a,"initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Ea&&!a.videoData.isLivePlayback)a.u.Z("html5_process_all_encrypted_events")&&eW(a);else{if(!(g.S(a.u.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.De)){a.Ea=
!0;c=b.cryptoPeriodIndex;var d=b.i;Rya(b);b.De||(d&&b.i!==d?a.W("ctmp","cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.W("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.W("widevine_set_need_key_info",b)}}else a.UF(b)}};
YAa=function(a){if(!a.Ha())if(g.S(a.u.experiments,"html5_drm_set_server_cert")&&!g.bG(a.u)){var b=a.C.setServerCertificate();b?b.then(Tr(function(c){a.videoData.X&&a.W("ctmp","ssc",c)}),Tr(function(c){a.W("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Tr(function(){fW(a)})):fW(a)}else fW(a)};
fW=function(a){a.Ha()||(a.Y=!0,a.ea(),bW(a,"onmdkrdy"),eW(a))};
eW=function(a){if(a.Pa&&a.Y&&!a.va){for(;a.B.length;){var b=a.B[0];if(a.l.get(b.initData))if("fairplay"===a.i.flavor)a.l.remove(b.initData);else{a.B.shift();continue}Rya(b);break}a.B.length&&a.createSession(a.B[0])}};
bBa=function(a,b){var c=TA("auto",b,!1,"l");if(a.videoData.rf){if(RA(a.U,c))return}else if(XA(a.U,b))return;a.U=c;a.W("qualitychange");a.ea();bW(a,"updtlq"+b)};
bW=function(a,b){var c=void 0===c?!1:c;a.Ha()||(a.ea(),(a.videoData.X||c)&&a.W("ctmp","drmlog",b))};
cBa=function(a){var b;if(b=g.it()){var c;b=!(null===(c=a.C.l)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.A.TextDecoder?(new TextDecoder).decode(b):g.$a(b),a.W("ctmp","drm",b))};
gW=function(a,b,c){g.Q.call(this);var d=this;this.videoData=a;this.i=b;this.playerVisibility=c;this.K=0;this.u=this.l=null;this.ma=this.J=this.G=this.B=!1;this.X=this.Y=0;this.U=g.T(this.i.experiments,"html5_delayed_retry_count");this.C=new g.J(function(){return d.W("newelementrequired",!1)},g.T(this.i.experiments,"html5_delayed_retry_delay_ms"));
g.F(this,this.C)};
jW=function(a,b,c){var d=!1,e=a.K+3E4<(0,g.P)()||a.C.isActive(),f;if(f=!e)f=a.playerVisibility,f=!!(f.Ce()||f.isInline()||f.isBackground()||f.Lq()||f.Jq());f&&(c.nonfg="paused",e=!0,a.W("pausevideo"));!e&&0<a.U&&(a.C.start(),e=!0,c.delayed="1",--a.U);f=a.videoData.l;if(!e&&!a.videoData.Z("html5_disable_codec_on_platform_errors_cfl")&&((null===f||void 0===f?0:TD(f))||(null===f||void 0===f?0:RD(f)))){if(a.videoData.Z("html5_disable_codec_on_platform_errors")){a.i.B.i.set(f.i,{OG:1,XC:Number.MAX_SAFE_INTEGER});
var h="cfalls"}else if(a.videoData.Z("html5_disable_codec_on_errors_with_exp_backoff")){h=a.i.B;var l=f.i,m=0;h.i.has(l)&&(m=h.i.get(l).OG);h.i.set(l,{OG:m+1,XC:Math.pow(2,m+1)});h="cfallexp"}else a.videoData.Z("html5_disable_codec_for_playback_on_error")&&a.l&&(l=a.l.l,m=f.i,l.Ga.has(m)?l=!1:(l.Ga.add(m),l.U=-1,zU(l,l.u),l=!0),l&&(h="cfallp"));h&&(d=e=!0,c[h]=f.i)}if(!e)return dBa(a,c);a.K=(0,g.P)();e=a.videoData;e.La?(e=e.La.dH(),h=Date.now()/1E3+1800,e=e<h):e=!1;c.e=b;e&&(c.staleprog="1");hW(a,
"qoe.restart",c);if(e&&eBa(a))return iW(a),!0;ft("philips")&&fBa(a);!a.videoData.Z("html5_disable_codec_on_platform_errors")&&f&&TD(f)?(a.i.B.disableAv1(),d=!0):a.l?(b=a.l,c=(c=cV(b.videoTrack)||b.videoTrack.l)?c.i:b.videoTrack.i,c.K+=1,DU(b.l,c,!0)):a.videoData.La&&a.videoData.La.ZC();a.C.isActive()||a.W("newelementrequired",d);return!0};
dBa=function(a,b){if(a.videoData.Ya)return!1;a.i.Ua+=1;if(10>=a.i.Ua)return!1;b.exiled=""+a.i.Ua;hW(a,"qoe.start15s",b);a.W("playbackstalledatstart");return!0};
fBa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
eBa=function(a){return a.B?!0:a.G||"yt"!==a.i.va?!1:a.videoData.Ya?25>a.videoData.jb:!a.videoData.jb};
iW=function(a,b){b=void 0===b?!1:b;aI(a.videoData)?a.W("signatureexpiredreloadrequired"):a.i.Z("html5_signature_reload_refactor")?a.B||(a.B=!0,a.W("releasevideo"),b||a.W("signatureexpiredreloadrequired")):a.G||a.W("signatureexpiredreloadrequired")};
gBa=function(a,b){if(a.u&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.u.Ki();b.details.merr=c?c.toString():"0";b.details.msg=a.u.Yd()}};
hBa=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
jBa=function(a,b,c){if("403"===b.details.rc){var d=b.errorCode;d="net.badstatus"===d||"manifest.net.retryexhausted"===d}else d=!1;if(!d&&!a.B)return!1;b.details.sts="18802";if(eBa(a))return!c||$H(a.videoData)||a.i.Z("html5_signature_reload_refactor")?(b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.mE("qoe.restart",!1,b)),hW(a,b.errorCode,b.details),iW(a,c)):(a.J=!0,a.W("releaseloader")),!0;6048E5<(0,g.P)()-a.i.bb&&iBa(a,"signature");return!1};
iBa=function(a,b){try{window.location.reload();hW(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.Z("tvhtml5_retire_old_players")&&g.bG(a.i)&&fBa(a)};
kBa=function(a,b){a.i.B.B=!1;hW(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.W("formatupdaterequested")};
kW=function(a,b,c,d){a.W("clienttemp",b,c,(void 0===d?{mD:!1}:d).mD)};
hW=function(a,b,c){a.W("qoeerror",b,c)};
lBa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.l=d};
lW=function(a,b,c){this.i=a;this.X=b;this.l=c;this.Y=this.J=this.K=this.B=this.u=this.G=this.U=this.C=0;this.playbackRate=1};
nBa=function(a,b,c){!g.S(a.i.experiments,"html5_tv_ignore_capable_constraint")&&g.bG(a.i)&&(c=c.compose(mBa(a,b)));return c};
qBa=function(a,b){return oBa(a).compose(pBa(a,b))};
oBa=function(a){a=rBa(a);return TA("auto",a,!1,"s")};
rBa=function(a){var b;a.Z("html5_exponential_memory_for_sticky")?b=.5>BF(a.i.Nb,"sticky-lifetime")?"auto":VA[AF()]:b=VA[AF()];return b};
sBa=function(a,b){return 1<a.playbackRate?(a=wka(a.i.B,b.i.videoInfos,a.playbackRate),new QA(0,a,!0,"o")):new QA(0,0,!1,"o")};
mBa=function(a,b){if(g.bG(a.i)&&dB(a.i.B,eB.HEIGHT))var c=b.i.videoInfos[0].fb().i;else{var d=!!b.i.i;var e;RF(a.i)&&(e=window.screen&&window.screen.width?new g.Sf(window.screen.width,window.screen.height):null);e||(e=a.i.Hi?a.i.Hi.clone():a.X.Zf());(TF||ZT||d)&&e.scale(g.AG());d=e;yH(b.videoData)||aI(b.videoData);b=b.i.videoInfos;if(b.length){e=.85;var f=b[0].fb();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||PF||(e=.45);a=g.T(a.i.experiments,"html5_viewport_undersend_maximum");
for(f=0;f<b.length;f++){c=b[f];var h=c.fb();if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.fb();c="93"===c.kc()?g.SA[LD(d.width,d.height)]:d.i;c=new QA(0,c,!1,"r")}else c=qH;c=c.i}c&&(c=Math.max(c,360));return new QA(0,c,!1,"r")};
tBa=function(a,b){return g.D(a,function d(){var e;return g.z(d,function(f){if(!b.i.i)return f.return(void 0);e=b.i.videoInfos;return f.return(pH(e))})})};
uBa=function(a,b){return g.D(a,function d(){var e,f,h,l,m=this;return g.z(d,function(n){if(1==n.i)return(e=b.i.videoInfos.find(function(p){return TD(p)}))?null!==e.l?n.ub(2):g.w(n,pH([e]),2):n.return(!1);
f=e.l||!1;h=b.i.videoInfos[0].video;l=Math.min(YE("1",h.fps),YE("1",30));m.l.Ja("mcrsp","itag."+e.id+";smooth."+ +e.u+";efficient."+ +f+";perf."+l);return n.return(f)})})};
wBa=function(a,b){if(!b.videoData.l||a.Z("html5_disable_performance_downgrade"))return!1;6E4<g.Sa()-a.U&&(a.C=0);a.C++;a.U=g.Sa();if(4!==a.C)return!1;vBa(a,b.videoData.l);return!0};
yBa=function(a,b,c,d){if(!b||!c||!b.videoData.l)return!1;var e=g.T(a.i.experiments,"html5_df_downgrade_thresh"),f=a.Z("html5_log_media_perf_info"),h=g.T(a.i.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.P)()-a.G?0:f||0<e||0<h))return!1;a.G=(0,g.P)();c=c.vv();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.Y;a.J=c.droppedVideoFrames;a.Y=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&b.videoData.X&&a.l.Ja("ddf",
"dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";comp."+n);if(d)return a.u=0,a.B=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.B=0<h&&60*d>h?a.B+1:0;if(!e||g.bG(a.i))return!1;a.u=d>e?a.u+1:0;if(3!==a.u)return!1;vBa(a,b.videoData.l);a.l.Ja("dfd",xBa());return!0};
zBa=function(a,b){return 0>=g.T(a.i.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.fb()&&32<b.fb().fps)?!1:3<=a.B?(a.B=0,!0):!1};
vBa=function(a,b){var c=b.fb().i-1;ABa(b.i,b.fb().fps,c);a=a.l;a.l&&Gya(a.l.l,a.u)};
BBa=function(a,b){if(!b.i.i)return qH;var c=a.i.Z("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.T(a.i.experiments,"html5_performance_cap_floor");a=a.i.i?240:e;b=g.q(b.i.videoInfos);for(e=b.next();!e.done;e=b.next()){var f=e.value;if(!c||!TD(f))if(e=YE(f.i,f.fb().fps),f=f.fb().i,Math.max(e,a)>=f){d=f;break}}return new QA(0,d,!1,"b")};
CBa=function(a,b){var c=g.T(a.i.experiments,"html5_background_quality_cap"),d=g.T(a.i.experiments,"html5_background_cap_idle_secs");return!c||"auto"!==rBa(a)||mu()/1E3<d?qH:b.isBackground()?new QA(0,c,!1,"v"):b.isInline()?(a=g.T(a.i.experiments,"html5_inline_quality_cap"),new QA(0,a,!1,"v")):qH};
pBa=function(a,b,c){if(g.bG(a.i)&&(1080<=AF(-1)||b.osid))return qH;var d=g.T(a.i.experiments,"html5_autonav_quality_cap"),e=g.T(a.i.experiments,"html5_autonav_cap_idle_secs");return d&&b.Zj&&mu()/1E3>e?(c&&(d=DBa(a,c,d)),new QA(0,d,!1,"e")):qH};
DBa=function(a,b,c){if(a.Z("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;b<a.length;b++)if(a[b].video.i<c)return a[b-1].video.i;return c};
EBa=function(a,b){a.Z("html5_log_media_perf_info")&&(a.l.Ja("perfdb",xBa()),a.l.Ja("hwc",""+navigator.hardwareConcurrency,!0),b&&a.l.Ja("mcdb",b.i.videoInfos.filter(function(c){return!1===c.u}).map(function(c){return c.kc()}).join("-")))};
xBa=function(){var a=Gb(mW(),function(b){return""+b});
return g.nE(a)};
nW=function(a,b){g.E.call(this);this.i=a;this.J=b;this.l=-1;this.G=!1;this.u=-1;this.playerState=new g.BK;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.delay=new g.J(this.send,6E4,this);this.B=!1;g.F(this,this.delay)};
FBa=function(a){0<=a.l||(3===a.i.l.getVisibilityState()?a.G=!0:(a.l=g.jT(a.i),a.delay.start()))};
GBa=function(a){if(!(0>a.u)){var b=g.jT(a.i),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.JK(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
HBa=function(a){switch(a.i.Pk){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
IBa=function(a){return(!a.Z("html5_health_to_gel")||a.i.bb+36E5<(0,g.P)())&&(a.Z("html5_health_to_gel_canary_killswitch")||a.i.bb+36E5<(0,g.P)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===HBa(a))?a.Z("html5_health_to_qoe"):!0};
oW=function(a,b,c,d,e,f){var h={format:"RAW"},l={};if(ds(a)&&es()){if(f){var m;2!==(null===(m=JBa.uaChPolyfill)||void 0===m?void 0:m.state.type)?a=null:(a=JBa.uaChPolyfill.state.data.values,a={"Synth-Sec-CH-UA-Arch":a.architecture,"Synth-Sec-CH-UA-Model":a.model,"Synth-Sec-CH-UA-Platform":a.platform,"Synth-Sec-CH-UA-Platform-Version":a.platformVersion,"Synth-Sec-CH-UA-Full-Version":a.uaFullVersion});l=Object.assign(l,a);h.withCredentials=!0}c&&(l["X-Goog-Visitor-Id"]=c);b&&(l["X-Goog-PageId"]=b);
d&&(l.Authorization="Bearer "+d);if(c||d||b)h.withCredentials=!0}0<Object.keys(l).length&&(h.headers=l);e&&(h.onFinish=e);return 1<Object.keys(h).length?h:null};
pW=function(a,b,c,d,e,f,h){es()&&c.token&&(a=g.ti(a,{ctt:c.token,cttype:c.AD,mdx_environment:c.mdxEnvironment}));e?(null==b?b={allowPingSend:!0}:(c=g.$r(a),Object.keys(c).includes("cpn")),h?Xw(a,b):f?Ww(a,b):Vw(a,b)):b?(f=g.$r(a),Object.keys(f).includes("cpn"),g.Ps(a,b)):g.ou(a,d)};
g.rW=function(a){g.E.call(this);var b=this;this.i=a;this.l={};this.sequenceNumber=1;this.Pa=NaN;this.hd="N";this.K=this.eb=this.Va=this.La=this.B=0;this.xa=this.jb="";this.Ya=this.X=NaN;this.Ua=0;this.qb=-1;this.bb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Da=this.va=this.isOffline=this.ma=!1;this.yb=[];this.Y=null;this.C=this.Ea=this.G=!1;this.u=-1;this.Aa=!1;this.wb=new g.J(this.iP,750,this);this.U=this.adCpn="";this.adFormat=void 0;this.Bb=0;g.F(this,this.wb);(a="function"===typeof navigator.getBattery?
navigator.getBattery():null)&&a.then&&a.then(function(c){b.Y=c});
g.qW(this,0,"vps",["N"])};
g.qW=function(a,b,c,d){var e=a.l[c];e||(e=[],a.l[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
sW=function(a,b){var c=a.i.l.getCurrentTime();g.qW(a,b,"cmt",[c.toFixed(3)]);c=a.i.l.jl();if(a.J&&1E3*c>a.J.CI+100&&a.J){var d=a.J,e=d.isAd;a.Ga=1E3*b-d.gU-(1E3*c-d.CI)-d.TT;a.Ja("gllat","l."+a.Ga.toFixed()+";prev_ad."+ +e);delete a.J}};
tW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.jT(a.i);var c=a.i.l.Cw();if(!isNaN(a.X)&&!isNaN(c.l)){var d=c.l-a.X;0<d&&g.qW(a,b,"bwm",[d,(c.B-a.Ya).toFixed(3)])}isNaN(a.X)&&c.l&&a.isOffline&&KBa(a,!1);a.X=c.l;a.Ya=c.B;isNaN(c.bandwidthEstimate)||g.qW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.i.videoData.X&&(c.i&&a.Ja("bwinfo",c.i),(d=g.nE(Uza()))&&a.Ja("meminfo",d));a.Y&&g.qW(a,b,"bat",[a.Y.level,a.Y.charging?"1":"0"]);d=a.i.l.getVisibilityState();a.qb!==d&&(g.qW(a,b,"vis",[d]),a.qb=d);sW(a,
b);(d=LBa(a.i))&&d!==a.Ua&&(g.qW(a,b,"conn",[d]),a.Ua=d);MBa(a,b,c)};
MBa=function(a,b,c){if(!isNaN(c.Vn)){var d=c.Vn;c.u<d&&(d=c.u);g.qW(a,b,"bh",[d.toFixed(3)])}};
uW=function(a){for(var b=0,c=g.q(Object.keys(a.l)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(zm(a.l[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.J(a.reportStats,0,a)).start()};
NBa=function(a){a.i.videoData.Kb&&vW(a,"prefetch");a.i.videoData.jb&&a.Ja("reload","r."+a.i.videoData.reloadReason+";ct."+a.i.videoData.jb);a.i.videoData.yb&&vW(a,"monitor");a.i.videoData.isLivePlayback&&vW(a,"live");ana(a.i.videoData)&&vW(a,a.i.videoData.enableServerStitchedDai?"ssdai":"csdai");a.i.videoData.xg&&a.Ja("ctrl",a.i.videoData.xg,!0);if(a.i.videoData.Ff){var b=a.i.videoData.Ff.replace(/,/g,"_");a.Ja("ytp",b,!0)}a.i.videoData.wF&&(b=a.i.videoData.wF.replace(/,/g,"."),a.Ja("ytrexp",b,!0));
if(!g.S(a.i.i.experiments,"html5_disable_gpu_reporting")){var c=a.i.i.experiments;b=a.i.videoData;c=g.S(c,"enable_white_noise")||g.S(c,"enable_webgl_noop")||g.S(c,"enable_gpu_logging");var d=g.SH(b)||g.QH(b)||g.RH(b)||g.TH(b),e=b.u&&TD(g.eb(b.u.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.wW)())&&(a.l.gpu=[b])}aI(a.i.videoData)&&g.qW(a,g.jT(a.i),"dt",["1"]);if(a.i.videoData.X||a.i.Z("html5_log_all_playback_attempts"))a.C=!0;a.Pa=ns(function(){a.reportStats()},
1E4)};
OBa=function(a,b,c,d){var e=a.i.l.getCurrentTime();c=[c,e.toFixed(3)];d&&c.push(d);g.qW(a,b,"error",c);a.C=!0};
PBa=function(a){0<=a.u||(a.i.i.Ob||3!==a.i.l.getVisibilityState()?a.u=g.jT(a.i):a.Aa=!0)};
vW=function(a,b){var c=a.l.cat||[];c.push(b);a.l.cat=c};
KBa=function(a,b){a.isOffline=b;g.qW(a,g.jT(a.i),"is_offline",[a.isOffline?"1":"0"])};
QBa=function(a,b,c,d,e){var f=g.jT(a.i);1===b&&g.qW(a,f,"vps",[a.hd]);var h=a.l.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.l.xvt=h};
RBa=function(a){this.l=a;this.K=!1;this.i=0;this.C=-1;this.lastUpdateTime=NaN;this.u=0;this.segments=[];this.J=this.G=0;this.Y=this.l.Je().volume;this.U=this.l.Je().muted;this.B=xW(this.l)};
yW=function(a){a.B.startTime=a.u;a.B.endTime=a.i;a.segments.length&&g.eb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.B:a.segments.length&&a.B.isEmpty()||a.segments.push(a.B);a.G+=a.i-a.u;a.B=xW(a.l);a.u=a.i};
SBa=function(a){a.segments.length&&a.i===a.u||yW(a);var b=a.segments;a.segments=[];return b};
UBa=function(a){TBa(a);a.J=ns(function(){a.update()},100);
a.lastUpdateTime=g.jT(a.l);a.B=xW(a.l)};
TBa=function(a){window.clearInterval(a.J);a.J=NaN};
VBa=function(a,b,c){c-=a.lastUpdateTime;return b===a.i&&.5<c};
zW=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.xa=this.eb=this.isFinal=this.Ac=this.Va=this.autoplay=this.autonav=!1;this.wb="yt";this.B=this.G=null;this.sendVisitorIdHeader=this.Aa=!1;this.pageId="";this.u="watchtime"===c;this.C="playback"===c;this.bb="delayplay"===c;this.Ya="atr"===c;this.Gc="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.Ya?"/api/stats/"+c:"//"+b.Ii+"/api/stats/"+c;this.Jh=!b.Z("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&b.pfpChazalUi&&
a.C;this.Hb=b.Z("embeds_enable_intersection_observer_v2");d&&(this.eb=d.fs,d.rtn&&(this.B=d.rtn),this.u?(this.playerState=d.state,0<d.rti&&(this.G=d.rti)):(this.gh=d.mos,this.cd=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Bb=d.inview),d.size&&(this.yb=d.size));this.deviceParams=g.Vb(b.deviceParams);this.xc=b.Vb;b.Z("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;
this.va=b.Tc;this.wb=b.va;this.region=b.region;this.userAge=b.userAge;this.La=b.cd;this.Id=mu();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.U=g.S(b.experiments,"vss_pings_using_networkless");this.Y=g.S(b.experiments,"vss_send_then_write");this.bd=g.S(b.experiments,"vss_final_ping_send_and_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Vb=b.l&&g.S(b.experiments,"embeds_append_synth_ch_headers");this.accessToken=a.Ve();this.adFormat=a.adFormat;
this.adQueryId=a.adQueryId;this.autoplay=ZH(a);this.autonav=a.Zj||this.autonav;this.wc=XH(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Va=a.C;a.Va&&(this.J=a.Va,this.Ua=a.Gh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.i=a.Sp;this.ma=a.wb;a.l&&(this.videoFormat=a.l.kc(),a.J&&a.J.kc()!==this.videoFormat&&(this.Pa=a.J.kc()));a.i&&ZA(a.i)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Jh?"embedded_unbranded":WH(a);this.xa=a.Id;this.Jb=a.Hk;if(b=LH(a))this.Tc=b;
this.Kb=a.cq;this.eventId=a.eventId;this.playlistId=a.IF||a.playlistId;this.xg=a.xg;this.Ff=a.Ff;this.Ob=a.Mz;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Nb=a.PP;this.referrer=a.referrer;this.Ea=a.uF||a.DF;this.Da=a.Uz;this.Ga=a.QP;this.userGenderAge=a.userGenderAge;this.X=a.dO};
AW=function(a,b){return oW(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b,a.Vb)};
WBa=function(a,b){return function(){var c=a.uri,d=BW(a),e=AW(a),f=a.U,h=a.Y;d.cmt=d.len;d.lact="0";var l=b().toFixed(3);d.rt=Number(l).toString();c=g.ti(c,d);f?(null==e&&(e={}),h?Ww(c,e):Vw(c,e)):e?g.Ps(c,e):g.ou(c)}};
BW=function(a){var b={ns:a.wb,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.l(a.i),ei:a.eventId,fmt:a.videoFormat,fs:a.eb?"1":"0",rt:a.l(a.dd),of:a.Nb,adformat:a.adFormat,content_v:a.wc,etv:a.embedsTokenValue,euri:a.xc,lact:a.Id,live:a.Tc,cl:(381124074).toString(),mos:a.gh,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.cd};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ra(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&
(b.autoplay="1");a.Va&&(b.dni="1");a.isFinal&&(b["final"]="1");a.xa&&(b.splay="1");a.ma&&(b.delay=a.ma);a.va&&(b.hl=a.va);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.La&&(b.uga=a.La+a.userAge);void 0!==a.qb&&(b.len=a.l(a.qb));!a.u&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.B&&(b.rtn=a.l(a.B));a.Ea&&(b.feature=a.Ea);a.playlistId&&(b.list=a.playlistId);a.xg&&(b.ctrl=a.xg);a.Ff&&(b.ytr=a.Ff);a.Ob&&(b.ssrt="1");a.Pa&&(b.afmt=a.Pa);
a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.jb&&(b.lio=a.l(a.jb));a.u?(b.idpj=a.Jb,b.ldpj=a.Kb,null!=a.G&&(b.rti=a.l(a.G)),a.X&&(b.ald=a.X)):void 0!==a.adType&&(b.at=a.adType);a.yb&&(a.C||a.bb||a.u&&a.Hb)&&(b.size=a.yb);null!=a.Bb&&(a.C||a.bb||a.u&&a.Hb)&&(b.inview=a.l(a.Bb));a.u&&(b.volume=CW(a,g.Oe(a.segments,function(d){return d.volume})),b.st=CW(a,g.Oe(a.segments,function(d){return d.startTime})),b.et=CW(a,g.Oe(a.segments,function(d){return d.endTime})),sn(a.segments,function(d){return 1!==
d.playbackRate})&&(b.rate=CW(a,g.Oe(a.segments,function(d){return d.playbackRate}))),sn(a.segments,function(d){return"-"!==d.i})&&(b.als=g.Oe(a.segments,function(d){return d.i}).join(",")));
b.muted=CW(a,g.Oe(a.segments,function(d){return d.muted?1:0}));
sn(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=CW(a,g.Oe(a.segments,function(d){return d.visibilityState})));
sn(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=CW(a,g.Oe(a.segments,function(d){return d.connectionType})));
sn(a.segments,function(d){return 0!==d.l})&&(b.blo=CW(a,g.Oe(a.segments,function(d){return d.l})));
sn(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Oe(a.segments,function(d){return d.B}).join(","));
sn(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Oe(a.segments,function(d){return d.clipId}).join(","));
if(sn(a.segments,function(d){return!!d.u})){var c="au";
a.C&&(c="au_d");b[c]=g.Oe(a.segments,function(d){return d.u}).join(",")}es()&&a.J&&(b.ctt=a.J,b.cttype=a.Ua,b.mdx_environment=a.mdxEnvironment);
a.Gc&&(b.etype=void 0!==a.K?a.K:0);a.Da&&(b.uoo=a.Da);a.Ga&&(b.upt=a.Ga);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=XBa[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
CW=function(a,b){return g.Oe(b,a.l).join(",")};
DW=function(a){g.E.call(this);this.i=a;this.currentPlayerState="paused";this.u=NaN;this.G=[10,10,10,40];this.K=this.J=0;this.ma=this.X=this.xa=this.va=this.Y=this.U=this.B=!1;this.C=NaN;this.l=new RBa(a)};
ZBa=function(a){if(!a.B){g.S(a.i.i.experiments,"disable_embedpage_playback_logging")||16623!==a.i.videoData.Du||g.Ux(Error("Playback for EmbedPage"));var b=EW(a,"playback");a.G=[10+a.i.videoData.Hk,10,10,40+a.i.videoData.cq-a.i.videoData.Hk,40];UBa(a.l);b.B=FW(a,!0);0<a.C&&(b.i-=a.C);b.send();if(a.i.videoData.Vo){b=a.i.i;var c=a.i.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.Vo,oid:c.dE,ptchn:c.cE,pltype:c.eE,content_v:XH(c)};b=g.ti(b.Aa+"ptracking",c);GW(a,
b)}a.i.videoData.wb||YBa(a);a.B=!0;a=a.l;a.i=a.l.l.getCurrentTime();a.lastUpdateTime=g.jT(a.l);!(0===a.u&&5>a.i)&&2<a.i-a.u&&(a.u=a.i);a.K=!0}};
FW=function(a,b,c){c=void 0===c?NaN:c;var d=g.jT(a.i);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.G[a.J];a.J+1<a.G.length&&a.J++;var f=c+e;a.u=g.ms(function(){if(!a.Ha()){a.u=NaN;a.l.update();var h=SBa(a.l),l=$Ba(a,h);b&&(l.G=f);var m=1E3<a.K;!(1<h.length)&&h[0].isEmpty()||m||(l.B=FW(a,!0,f));l.send();a.K++}},1E3*(f-d));
return f};
EW=function(a,b){var c=a.i;c=Object.assign(c.Je(),c.videoData.Je());g.Ra(c,{state:a.currentPlayerState});b=new zW(a.i.videoData,a.i.i,b,c);b.i=a.i.l.getCurrentTime();a.i.videoData.isLivePlayback||(b.qb=a.i.l.getDuration());a.i.videoData.i&&(c=a.i.videoData.i.getIngestionTime(b.i))&&(b.jb=c-b.i);b.dd=g.jT(a.i);b.segments=[xW(a.i)];return b};
$Ba=function(a,b){var c=EW(a,"watchtime");if(0<a.C){for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.C,e.endTime-=a.C;c.i-=a.C}else c.i=a.l.i;c.segments=b;return c};
HW=function(a){a.l.update();return $Ba(a,SBa(a.l))};
YBa=function(a){a.i.videoData.remarketingUrl&&!a.va&&(GW(a,a.i.videoData.remarketingUrl),a.va=!0);a.i.videoData.youtubeRemarketingUrl&&!a.xa&&(GW(a,a.i.videoData.youtubeRemarketingUrl),a.xa=!0);a.i.videoData.googleRemarketingUrl&&!a.X&&(GW(a,a.i.videoData.googleRemarketingUrl),a.X=!0);a.i.videoData.ppvRemarketingUrl&&!a.ma&&(GW(a,a.i.videoData.ppvRemarketingUrl),a.ma=!0);aCa(a)};
bCa=function(a){if(!a.Ha()&&a.B){a.currentPlayerState="paused";var b=HW(a);b.isFinal=!0;b.send();a.dispose()}};
cCa=function(a,b,c){if(!a.U){c||(c=EW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.U=!0}};
aCa=function(a){a.i.videoData.K.eventLabel=WH(a.i.videoData);a.i.videoData.K.playerStyle=a.i.i.playerStyle;a.i.videoData.fg&&(a.i.videoData.K.feature="pyv");a.i.videoData.K.vid=a.i.videoData.videoId;var b=a.i.videoData.K;a=a.i.videoData;a=a.isAd()||!!a.fg;b.isAd=a};
GW=function(a,b){var c=a.i.videoData.Ve(),d=a.i.Z("web_player_vss_pageid_header")?a.i.i.pageId:void 0,e=a.i.i.sendVisitorIdHeader?a.i.videoData.visitorData:void 0,f=g.S(a.i.i.experiments,"vss_pings_using_networkless"),h=g.S(a.i.i.experiments,"vss_send_then_write");c=oW(b,d,e,c,void 0);pW(b,c,{token:a.i.videoData.Va,AD:a.i.videoData.Gh,mdxEnvironment:a.i.videoData.mdxEnvironment},void 0,f,h)};
dCa=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.l=0;this.muted=!1;this.i=this.clipId="-"};
IW=function(a,b,c,d){this.videoData=a;this.i=b;this.l=c;this.Je=d;this.u=void 0};
g.jT=function(a){return eCa(a)()};
eCa=function(a){if(!a.u){var b=g.Qa(function(d){var e=(0,g.P)();d&&631152E6>=e&&(g.Tx(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.S(a.i.experiments,"html5_validate_yt_now")),c=b();
a.u=function(){return Math.round(b()-c)/1E3};
a.l.yC()}return a.u};
LBa=function(a){if(navigator.connection&&navigator.connection.type)return fCa[navigator.connection.type]||fCa.other;if(g.bG(a.i)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
xW=function(a){var b=new dCa;b.B=a.Je().cc||"-";b.playbackRate=a.l.getPlaybackRate();var c=a.l.getVisibilityState();0!==c&&(b.visibilityState=c);a.i.yb&&(b.l=1);c=a.l.getAudioTrack();c.Jc&&c.Jc.id&&"und"!==c.Jc.id&&(b.u=c.Jc.id);b.connectionType=LBa(a);b.volume=a.Je().volume;b.muted=a.Je().muted;b.clipId=a.Je().clipid||"-";b.i=a.videoData.lF||"-";return b};
g.JW=function(a){g.E.call(this);var b=this;this.l=a;this.u=this.qoe=this.i=null;this.Mf=void 0;this.B=new Map;this.l.videoData.isValid()&&!this.l.videoData.Ah&&(this.i=new DW(this.l),g.F(this,this.i),this.qoe=new g.rW(this.l),g.F(this,this.qoe),this.l.videoData.enableServerStitchedDai&&(this.Mf=this.l.videoData.clientPlaybackNonce)&&this.B.set(this.Mf,this.i));IBa(this.l)&&(this.u=new nW(this.l,function(c){b.Ja("h5h",c)}),g.F(this,this.u))};
gCa=function(a){var b;a.l.videoData.enableServerStitchedDai&&a.Mf?null===(b=a.B.get(a.Mf))||void 0===b?void 0:yW(b.l):a.i&&yW(a.i.l)};
hCa=function(a,b,c,d){a.qoe&&(a=a.qoe,g.qW(a,g.jT(a.i),"ad_playback",[b,c,d]))};
iCa=function(a,b){a.i&&cCa(a.i,b)};
jCa=function(a){if(!a.i)return null;var b=EW(a.i,"atr");return function(c){a.i&&cCa(a.i,c,b)}};
kCa=function(a,b,c,d){c.adFormat=c.Tc;var e=b.l;b=new DW(new IW(c,b.i,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
jl:function(){return e.jl()},
Cw:function(){return e.Cw()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
xt:function(){return e.xt()},
getVisibilityState:function(){return e.getVisibilityState()},
yC:function(){e.yC()},
Xt:function(){e.Xt()}},b.Je));
b.C=d;g.F(a,b);return b};
lCa=function(){this.Vn=0;this.C=this.B=this.l=this.u=NaN;this.i="";this.bandwidthEstimate=NaN};
mCa=function(){this.l=g.Hz;this.i=[]};
oCa=function(a,b,c){var d=[];for(b=nCa(a,b);b<a.i.length;++b){var e=a.i[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
pCa=function(a,b){var c=[];a=g.q(a.i);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
qCa=function(a){return a.i.slice(nCa(a,0x7ffffffffffff),a.i.length)};
nCa=function(a,b){a=yb(a.i,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
rCa=function(a,b){var c=NaN;a=g.q(a.i);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
sCa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
KW=function(a,b,c,d){g.E.call(this);this.Y=a;this.X=b;this.J=c;this.K=d;this.u=NaN;this.C=this.G=this.started=!1;this.l=[];this.U=new g.J(this.Ek,250,this);g.F(this,this.U);this.B=new g.J(this.Ek,0,this);g.F(this,this.B);this.i=new mCa};
tCa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.K(g.Iz(d.namespace),d):a.K(g.Jz(d.namespace),d)}};
uCa=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.ma(new Uint8Array(c))));a.close()}return b};
vCa=function(a){this.l=this.mediaTime=NaN;this.u=this.i=!1;this.B=.001;g.bG(a)&&g.T(a.experiments,"tvhtml5_min_has_advanced_secs_float")&&(this.B=g.T(a.experiments,"tvhtml5_min_has_advanced_secs_float"))};
LW=function(a,b){return b>a.mediaTime+a.B&&b<a.mediaTime+5};
MW=function(a,b,c,d){if(d=1<d)a.u=!0;if(a.i)b!==a.mediaTime&&(a.i=!1);else if(0<b&&a.mediaTime===b)return c-a.l>(d||!a.u?1500:400);a.mediaTime=b;a.l=c;return!1};
wCa=function(a,b){this.videoData=a;this.i=b};
xCa=function(a,b,c){return Qma(b,c).then(function(){return Xs(new wCa(b,b.u))},function(d){d instanceof Error&&Ur(d);
d=b.isLivePlayback&&!g.oF(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Pa,drm:""+ +AH(b),f18:""+ +(0<=b.Bh.indexOf("itag=18")),c18:""+ +ZD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(AH(b)?(e.f142=""+ +!!b.i.i["142"],e.f149=""+ +!!b.i.i["149"],e.f279=""+ +!!b.i.i["279"]):(e.f133=""+ +!!b.i.i["133"],e.f140=""+ +!!b.i.i["140"],e.f242=""+ +!!b.i.i["242"]),e.cAVC=""+ +$D('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +$D('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +$D('video/webm; codecs="vp9"'));if(b.G){e.drmsys=b.G.keySystem;var f=0;b.G.i&&(f=Object.keys(b.G.i).length);e.drmst=""+f}return new g.mE(d,!0,e)})};
yCa=function(a){this.C=a;this.u=this.l=0;this.B=new MT(50)};
OW=function(a,b,c){g.Q.call(this);this.videoData=a;this.experiments=b;this.K=c;this.l=[];this.B=0;this.u=!0;this.G=!1;this.J=0;c=new zCa;"ULTRALOW"===a.latencyClass&&(c.B=!1);a.yb?c.l=3:g.OH(a)&&(c.l=2);g.S(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.K=!0);var d=Ima(a);c.C=2===d||-1===d;c.C&&(c.X++,21530001===HH(a)&&(c.G=g.T(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(ft("trident/")||ft("edge/"))d=g.T(b,"html5_platform_minimum_readahead_seconds")||3,c.u=Math.max(c.u,
d);g.T(b,"html5_minimum_readahead_seconds")&&(c.u=g.T(b,"html5_minimum_readahead_seconds"));g.T(b,"html5_maximum_readahead_seconds")&&(c.U=g.T(b,"html5_maximum_readahead_seconds"));g.S(b,"html5_force_adaptive_readahead")&&(c.B=!0);g.T(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.T(b,"html5_allowable_liveness_drift_chunks"));g.T(b,"html5_readahead_ratelimit")&&(c.Y=g.T(b,"html5_readahead_ratelimit"));switch(HH(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.J=g.S(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.C=1!==this.policy.l;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.yb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(HH(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.C&&b++;this.i=NW(this,b);this.ea()};
ACa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.J&&3===Ima(a.videoData)&&--c;return PW(a)*c};
RW=function(a,b){var c=QW(a),d=a.policy.i;a.G||(d=Math.max(d-1,0));a=d*PW(a);return b>=c-a};
QW=function(a){return Math.max(a.K()-ACa(a,!0),a.videoData.getMinSeekableTime())};
BCa=function(a,b,c){b=RW(a,b);c||b?b&&(a.u=!0):a.u=!1;a.C=2===a.policy.l||3===a.policy.l&&a.u};
CCa=function(a,b){b=RW(a,b);a.G!==b&&a.W("livestatusshift",b);a.G=b};
PW=function(a){return a.videoData.i?SE(a.videoData.i)||5:5};
NW=function(a,b){b=Math.max(Math.max(a.policy.X,Math.ceil(a.policy.u/PW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.U/PW(a))),b)};
zCa=function(){this.X=1;this.u=0;this.U=Infinity;this.Y=0;this.B=!0;this.i=2;this.l=1;this.C=!1;this.G=NaN;this.J=this.K=!1};
UW=function(a,b,c,d,e){g.E.call(this);this.u=a;this.videoData=b;this.W=c;this.visibility=d;this.K=e;this.l=this.B=null;this.J=this.i=0;this.G={};this.playerState=new g.BK;this.C=new g.J(this.U,1E3,this);g.F(this,this.C);this.Da=new SW({delayMs:g.T(this.u.experiments,"html5_seek_timeout_delay_ms")});this.va=new SW({delayMs:g.T(this.u.experiments,"html5_long_rebuffer_threshold_ms")});this.Ga=TW(this,"html5_seek_set_cmt");this.xa=TW(this,"html5_seek_jiggle_cmt");this.Aa=TW(this,"html5_seek_new_elem");
this.Ua=TW(this,"html5_unreported_seek_reseek");this.X=TW(this,"html5_long_rebuffer_jiggle_cmt");this.ma=TW(this,"html5_reload_element_long_rebuffer");this.Y=TW(this,"html5_ads_preroll_lock_timeout");this.La=new SW({delayMs:g.T(this.u.experiments,"html5_skip_slow_ad_delay_ms")||5E3,qq:!g.S(this.u.experiments,"html5_report_slow_ads_as_error")});this.Pa=new SW({delayMs:g.T(this.u.experiments,"html5_skip_slow_ad_delay_ms")||5E3,qq:!g.S(this.u.experiments,"html5_skip_slow_buffering_ad")});this.Ea=TW(this,
"html5_seek_over_discontinuities")};
TW=function(a,b){var c=g.T(a.u.experiments,b+"_delay_ms");a=g.S(a.u.experiments,b+"_cfl");return new SW({delayMs:c,qq:a})};
DCa=function(a,b,c,d,e,f,h){var l=fE(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1<c.length?c.start(l+1):d;VW(a,a.Ea,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
VW=function(a,b,c,d,e,f,h){ECa(b,c)?(a.wd(e,b,h),b.qq||f()):(b.Ux&&b.triggerTimestamp&&!b.u?(c=(0,g.P)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.triggerTimestamp>b.Ux,c=b.i&&c-b.i>b.SC||f?b.u=!0:!1):c=!1,c&&(c=a.Cb(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.nE(c),a.W("ctmp","workaroundReport",h),d&&(b.reset(),a.G[e]=!1)))};
SW=function(a){a=void 0===a?{}:a;var b=void 0===a.SC?1E3:a.SC,c=void 0===a.Ux?3E4:a.Ux,d=void 0===a.qq?!1:a.qq;this.B=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.SC=b;this.Ux=c;this.qq=d;this.i=this.triggerTimestamp=this.l=this.startTimestamp=0;this.u=!1};
ECa=function(a,b){if(!a.B||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.P)();if(!a.startTimestamp)a.startTimestamp=b,a.l=0;else if(a.l>=a.B)return a.triggerTimestamp=b,!0;a.l+=1;return!1};
XW=function(a,b,c,d){g.Q.call(this);var e=this;this.videoData=a;this.Y=b;this.visibility=c;this.Ya=d;this.policy=new FCa(this.Y);this.K=new UW(this.Y,this.videoData,(0,g.C)(this.W,this),this.visibility,this.Ya);a={};this.Ea=(a.seekplayerrequired=this.kU,a.videoformatchange=this.mM,a);this.playbackData=null;this.Va=new mx;this.U=this.u=this.B=this.i=null;this.l=NaN;this.C=0;this.G=null;this.Da=NaN;this.J=this.X=null;this.va=this.ma=!1;this.Aa=new g.J(function(){GCa(e,!1)},2E3);
this.eb=new g.J(function(){WW(e)});
this.Ua=new g.J(function(){e.ea();e.ma=!0;HCa(e)});
this.Pa=this.timestampOffset=0;this.Ga=!0;this.La=0;this.bb=NaN;this.xa=new g.J(function(){var f=e.Y.Nb;f.i+=1E4/36E5;f.i-f.u>1/6&&(Ika(f),f.u=f.i);e.xa.start()},1E4);
this.Z("html5_unrewrite_timestamps")?this.Ea.timestamp=this.rr:this.Ea.timestamp=this.nM;g.F(this,this.Va);g.F(this,this.Aa);g.F(this,this.Ua);g.F(this,this.eb);g.F(this,this.xa)};
ICa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.U=new yCa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(GH(a.videoData)&&a.B){var c=a.B.Aa.Yf()||0;break a}if(a.videoData.i){c=a.videoData.i.ma;break a}}c=0}return c}),a.u=new OW(a.videoData,a.Y.experiments,function(){return YW(a,!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.C=a.C||a.videoData.startSeconds||0)};
$W=function(a,b){g.ox(a.Va);(a.i=b)?(JCa(a),WW(a)):ZW(a);a=a.K;(a.B=b)&&g.Eq(a.C)};
bX=function(a,b){a.B&&qx(a.B,a.Ea,a);(a.B=b)?(px(b,a.Ea,a),aX(a,!0)):ZW(a);a.K.l=b};
cX=function(a){return!!a.u&&a.u.C};
KCa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.U&&d){var e=a.U;if(e.i&&!(c>=e.l&&c<e.u)){var f=e.i.getSegmentNumberForTime(c);-1!==f&&(e.l=e.i.getStartTime(f),e.u=e.l+e.i.getDuration(f),f=Date.now()/1E3-e.i.getIngestionTime(f),f-=e.C(),e.B.add(f))}}a.u&&(d&&(d=a.u,e=a.i?yK(a.i):0,d.B++,3>d.B||g.Sa()-d.J<d.policy.Y||(d.J=g.Sa(),d.l.push(e),50<d.l.length&&d.l.shift(),d.ea())),d=a.u,BCa(d,c,void 0===b?!0:b),CCa(d,c),b&&GCa(a,!0))};
GCa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!RW(c,d)&&c.C?(c.ea(),c.policy.K&&(c.policy.i=Math.max(c.policy.i+1,10)),c=Infinity):d<c.videoData.getMinSeekableTime()?(c.ea(),c=Math.min(c.videoData.getMinSeekableTime()+10,QW(c))):c=NaN;if(!isNaN(c)){if(a.B&&b&&(b=a.Aa.isActive(),d=QW(a.u),(d=lAa(a.B,d-a.Lc()))&&!b)){a.Aa.start();a.W("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(d+a.Lc()));a.seekTo(d+a.Lc(),{ke:"playbacktimeline_inBufferSeek"});return}a.Z("html5_peg_to_live_logging")&&
a.W("ctmp","ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.Lc()));a.seekTo(c,{ke:"playbacktimeline_pegToLive"})}}};
YW=function(a,b){if(!a.videoData.isLivePlayback)return Vma(a.videoData);if(GH(a.videoData)&&a.videoData.Fi&&a.videoData.i)return QE(a.videoData.i)+a.timestampOffset;if(a.videoData.u&&a.videoData.u.i){if(!b&&a.u)return QW(a.u);b=Vma(a.videoData);a.policy.i&&a.i&&(b=Math.max(b,Poa(a.i)));return b+a.timestampOffset}a.i?jt()?(a=a.i.uv().getTime(),a=isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)):a=xK(a.i)+a.timestampOffset||a.timestampOffset:a=a.timestampOffset;return a};
aX=function(a,b){if(a.u&&a.B){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.l.length){c=b.i;b:{if(b.l.length){if(1<Math.min.apply(null,b.l)){b.ea();var d=NW(b,b.i-1);break b}if(b.policy.B){b.ea();d=NW(b,b.i+1);break b}}d=b.i}b.i=d;if(c=c!==b.i)b.ea(),b.l=[],b.B=0}else c=!1;c&&a.W("livereadaheadchanged",ACa(a.u));b=a.B;c=a.u.i;d=a.u;d=(d.i-1+d.policy.i)*PW(d);a=a.u.policy.G;b.ye=Math.max(c-1,0);b.C&&
(b.C.X=d);b.Ya=a}};
dX=function(a){return a.videoData.isLivePlayback&&!!a.videoData.u&&!a.videoData.u.i};
HCa=function(a){LCa(a).then(void 0,function(){ZW(a)});
eX(a).then(function(c){MCa(a,c)},function(){ZW(a)});
a.W("seekstart");if(g.CH(a.videoData)){var b=a.Cb();b["native"]=""+ +a.va;b.tgt=""+a.l;a.W(g.nE(b))}};
LCa=function(a){if(!a.X)if(a.B)if(isFinite(a.l))a.ea(),a.X=a.B.seek(a.l-a.timestampOffset);else{a.ea();var b=a.B;DV(b);b.B.i&&b.ea();b.C&&Qza(b.C,b.videoTrack.i);g.Eq(b.Y);b=b.B;var c=Math.max(b.videoTrack.B.B||0,b.audioTrack.B.B||0);sza(b.videoTrack);sza(b.audioTrack);var d=b.l,e;for(e in d.i)BB(d.i[e].index,Infinity);b.l.isManifestless&&(b.B=!0);b.W("setcurrenttime",c);b.i=!0;b.C=new aT;a.X=b.C;a.l=a.B.getCurrentTime()+a.timestampOffset}else a.X=Tg(a.l-a.timestampOffset);return a.X};
eX=function(a){var b=a.G;b||(a.G=new aT,b=a.G,WW(a));return b};
NCa=function(a,b,c){return isNaN(b)?NaN:g.Mf(b,a.getMinSeekableTime(),YW(a,c))};
WW=function(a){if(a.G)if(!a.Z("html5_nondash_live_seek_killswitch")&&dX(a)&&a.i&&0<a.i.eh()&&0<xK(a.i)&&(a.l=NCa(a,a.l,!1)),!a.i||!OCa(a))a.eb.start(750);else if(!isNaN(a.l)&&isFinite(a.l)&&a.Da!==a.l-a.timestampOffset){var b=a.i.getCurrentTime()-a.l;if(Math.abs(b)<=a.La)PCa(a);else if(!a.videoData.isLivePlayback&&a.l>=YW(a)-.1)a.l=YW(a),a.G.resolve(YW(a)),a.W("ended");else try{var c=a.l-a.timestampOffset;a.ea();a.i.seekTo(c);a.K.i=c;a.Da=c;a.C=a.l}catch(d){a.ea()}}};
OCa=function(a){if(!a.i||0===a.i.eh()||0<a.i.Ki())return!1;var b=0<a.i.getCurrentTime();if(!(a.Z("html5_nondash_mediaelementready_killswitch")||a.videoData.u&&a.videoData.u.i||a.videoData.isLivePlayback)&&AH(a.videoData))return b;if(0<=a.l){var c=a.i.ut();if(c.length||!b)return gE(c,a.l-a.timestampOffset)}return b};
PCa=function(a){a.G?a.G.resolve(a.i.getCurrentTime()):a.ea()};
MCa=function(a,b){a.ea();a.J&&(a.J.resolve(b),a.W("seekend"),g.CH(a.videoData)&&(b=a.Cb(),b["native"]=""+ +a.va,a.W("ctmp","seekEnd",g.nE(b))));QCa(a)};
QCa=function(a){a.l=NaN;a.Da=NaN;a.G=null;a.X=null;a.J=null;a.ma=!1;a.va=!1;a.La=0;a.Aa.stop();a.Ua.stop()};
ZW=function(a){a.J&&a.ea();QCa(a)};
JCa=function(a){if(a.i){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Va.N(a.i,c.value,function(d){var e=a.i;d=d.type;a.ea();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.G||a.va&&d!==a.l)a.G=new aT,a.Da=d,e=e.getCurrentTime(),a.K.i=e,a.seekTo(d,{ke:"playbacktimeline_mediaElementEvent"}),a.va=!0;break;case "seeked":PCa(a);break;case "loadedmetadata":a.Ga?(e="ss.",d=0,(PH(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.i?(d=a.videoData.liveUtcStartSeconds||a.videoData.Jb,e="utc.",d=YW(a)-a.getIngestionTime(YW(a))+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.Jb?(e="mss.",d=a.videoData.Jb+a.Lc()):a.Z("html5_unrewrite_timestamps")&&a.videoData.Hp&&(e="stss.",d=a.videoData.Hp),d?(a.seekTo(d,{ke:"playbacktimeline_startSeconds"}),a.W("ctmp","startSeconds",e+String(d)),a.Ga=!1):a.videoData.Jb&&a.W("ctmp",
"startSeconds",""+e+(a.videoData.Jb+a.Lc())),e=!!d):e=!1;a.Z("html5_nondash_live_seek_killswitch")&&!e&&dX(a)&&(a.l=isFinite(a.l)?g.Mf(a.l,a.getMinSeekableTime(),YW(a)):YW(a));WW(a);break;case "progress":WW(a)}});
a.J||a.C||a.policy.l||!a.i.VC()||a.seekTo(.01,{ke:"playbacktimeline_setupMediaElement"})}};
RCa=function(a,b){a.l=b;a.C=b;eX(a).then(function(c){MCa(a,c)},function(){ZW(a)})};
FCa=function(a){this.i=g.S(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.u=a.Z("html5_seek_over_discontinuities");this.l=a.Z("html5_requires_seek_for_playback_at_zero_killswitch")};
fX=function(){this.i=this.started=!1};
gX=function(){this.i=this.l=void 0};
mX=function(a){this.counter=[0,0,0,0];this.l=new Uint8Array(16);this.i=16;if(!SCa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);hX=new Uint8Array(256);iX=[];jX=[];kX=[];lX=[];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;hX[f]=e;b=e<<1^(e>>7&&283);var h=b^e;iX.push(b<<24|e<<16|e<<8|h);jX.push(h<<24|iX[f]>>>8);kX.push(e<<24|jX[f]>>>8);lX.push(e<<24|kX[f]>>>8)}SCa=!0}e=[];for(c=0;4>c;c++)e.push(a[4*c]<<
24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3]);for(d=1;44>c;c++)a=e[c-1],c%4||(a=(hX[a>>16&255]^d)<<24|hX[a>>8&255]<<16|hX[a&255]<<8|hX[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e};
TCa=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.i=16};
UCa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(h=4;40>h;){var l=iX[c>>>24]^jX[d>>16&255]^kX[e>>8&255]^lX[f&255]^b[h++];var m=iX[d>>>24]^jX[e>>16&255]^kX[f>>8&255]^lX[c&255]^b[h++];var n=iX[e>>>24]^jX[f>>16&255]^kX[c>>8&255]^lX[d&255]^b[h++];f=iX[f>>>24]^jX[c>>16&255]^kX[d>>8&255]^lX[e&255]^b[h++];c=l;d=m;e=n}a=a.l;c=[c,d,e,f];for(d=0;16>d;)a[d++]=hX[c[0]>>>24]^b[h]>>>24,a[d++]=hX[c[1]>>
16&255]^b[h]>>16&255,a[d++]=hX[c[2]>>8&255]^b[h]>>8&255,a[d++]=hX[c[3]&255]^b[h++]&255,c.push(c.shift())};
nX=function(a){this.C=new Uint8Array(64);this.u=new Uint8Array(64);this.B=0;this.G=new Uint8Array(64);this.l=0;this.C.set(a);this.u.set(a);for(a=0;64>a;a++)this.C[a]^=92,this.u[a]^=54;this.reset()};
WCa=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.i[0];c=a.i[1];e=a.i[2];for(var f=a.i[3],h=a.i[4],l=a.i[5],m=a.i[6],n=a.i[7],p,r,t=0;64>t;t++)p=n+VCa[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b=
p+r;a.i[0]=b+a.i[0]|0;a.i[1]=c+a.i[1]|0;a.i[2]=e+a.i[2]|0;a.i[3]=f+a.i[3]|0;a.i[4]=h+a.i[4]|0;a.i[5]=l+a.i[5]|0;a.i[6]=m+a.i[6]|0;a.i[7]=n+a.i[7]|0};
YCa=function(a){var b=new Uint8Array(32),c=64-a.l;55<a.l&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.B,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.i[c]>>>24,b[4*c+1]=a.i[c]>>>16&255,b[4*c+2]=a.i[c]>>>8&255,b[4*c+3]=a.i[c]&255;XCa(a);return b};
XCa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.B=0;a.l=0};
ZCa=function(a,b,c){a=new mX(a);TCa(a,c);return a.encrypt(b)};
aDa=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n;return g.z(e,function(p){if(1==p.i)return f=oX(),h={name:"AES-CTR",counter:c,length:128},g.w(p,$Ca(a),2);if(3!=p.i)return l=p.l,m=pX.Ju("oan2"),g.w(p,f.encrypt(h,l,b),3);n=p.l;pX.Ss(m,Math.ceil(b.byteLength/16));return p.return(new Uint8Array(n))})})};
bDa=function(a){var b=new mX(a);return function(c,d){TCa(b,d);return new Uint8Array(b.encrypt(c))}};
$Ca=function(a){return oX().importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
cDa=function(a){return g.D(this,function c(){var d=this,e,f,h;return g.z(c,function(l){if(1==l.i)return e=d,f=oX(),g.w(l,$Ca(a),2);h=l.l;return l.return(function(m,n){return g.D(e,function r(){var t,u,x;return g.z(r,function(y){if(1==y.i)return t={name:"AES-CTR",counter:n,length:128},u=pX.Ju("oan2"),g.w(y,f.encrypt(t,h,m),2);x=y.l;pX.Ss(u,Math.ceil(m.byteLength/16));return y.return(new Uint8Array(x))})})})})})};
dDa=function(){if(g.tw)return!1;var a=oX();return a?!!a.importKey&&!!a.sign&&!!a.encrypt:!1};
oX=function(){var a;return null===(a=window.crypto)||void 0===a?void 0:a.subtle};
qX=function(a){this.i=a;this.iv=oR(yx(16))};
eDa=function(a,b,c){return g.D(a,function e(){var f=this;return g.z(e,function(h){return h.return(aDa(f.i.i,b,c))})})};
rX=function(a){this.i=a;this.me={}};
Xza=function(a,b){return b in a.me};
fDa=function(a){for(var b=g.q(Object.keys(a.me)),c=b.next();!c.done;c=b.next())if(c=c.value,!a.me[c].Yc){var d=a;d.me[c].Gd=new lD;sX(d,c)}};
mza=function(a,b){a=a.me[b];return a.bytesReceived===a.Os&&a.oA+a.Gd.totalLength===a.bytesReceived};
gDa=function(a,b){var c=new g.J(function(){sX(a,b)},3E3);
c.start();a.me[b]={Gd:new lD,oA:0,bytesReceived:0,PG:c,We:!1};a.ea()};
sX=function(a,b){a.ea();b=a.me[b];if(!b.We&&(b.PG.stop(),b.We=!0,b.Yc&&b.Yc(),hDa(a))){a=a.i;var c;a.Y&&(null===(c=a.xhr)||void 0===c?void 0:c.abort())}};
hDa=function(a){return Object.values(a.me).every(function(b){return b.We})};
iDa=function(a){this.iv=jR(new fR(a),5)};
jDa=function(a){a=jR(new fR(a),4);this.i=new iDa(new lD([a]))};
kDa=function(a){this.i=[];for(a=new fR(a);;){var b=iR(a,2);if(!b)break;this.i.push(b)}};
mDa=function(a){a=new fR(a);this.u=iR(a,1);this.itag=iR(a,3);this.lastModifiedTime=iR(a,4);this.xtags=a.Oe(5);iR(a,6);iR(a,8);iR(a,9,-1);iR(a,10);this.i=iR(a,14);this.l=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.Qm="audio"===lDa[PD[""+this.itag]]};
nDa=function(a){this.body=null;a=new fR(a);this.onesieProxyStatus=iR(a,1,-1);this.httpStatus=iR(a,2,-1);this.body=jR(a,4)};
oDa=function(a){a=new fR(a);this.startTimeMs=iR(a,1);this.endTimeMs=iR(a,2)};
pDa=function(a){var b=new fR(a);a=b.Oe(3);var c=iR(b,5);this.l=iR(b,7);var d=jR(b,14);new oDa(new lD([d]));b=b.Oe(15);this.i=a+";"+c+";"+b};
qDa=function(a){this.u=a;this.l=!1;this.i=[]};
tX=function(a){for(;a.i.length&&!a.i[0].bk;){var b=a.i.shift(),c=b.rD;if(b=b.buffer)rDa(a.u.Bd,c,b);else{b=a.u;b.i[c].zH=!0;var d=void 0;null===(d=b.Bd.Zp)||void 0===d?void 0:sX(d,c)}}};
sDa=function(a,b){a.i.push({rD:b,bk:!1});a.l||tX(a)};
uX=function(a){this.Bd=a;this.u={};this.i={};this.l=this.iv=null;this.queue=new qDa(this)};
uDa=function(a,b){var c=b.totalLength;a.ea();var d=!1;switch(a.l){case 0:tDa(a,b).then(function(e){var f=a.Bd;f.jf("oprr");f.u.resolve(e);f.Y=!0;f.C.stop()},function(e){vX(a.Bd,e)});
break;case 2:a.Bd.jf("ormk");b=sD(b);a.queue.decrypt(b);a.ea();break;default:d=!0,a.ea()}a.Bd.ul&&a.Bd.Ja("ombup","id.11;pt."+a.l+";len."+c+(d?";ignored.1":""));a.l=null};
vDa=function(a,b,c){var d=uD(b,0);a.Bd.ul&&a.Bd.Ja("ombup","id.21;enc."+ +c+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=sD(b,1),d=a.u[d]||null,a.ea(),d&&(a=a.queue,a.i.push({rD:d,buffer:b,bk:c}),a.l||tX(a)))};
tDa=function(a,b){return g.D(a,function d(){var e=this,f,h,l,m,n,p,r,t,u;return g.z(d,function(x){if(1==x.i){e.Bd.jf("orpr");f=sD(b);var y=e.Bd;var B=e.iv;y=dDa()?eDa(y.B,f,B):Promise.resolve(y.B.decrypt(f,B));return g.w(x,y,2)}h=x.l;l=new nDa(new lD([h]));if(1!==l.onesieProxyStatus)return m={st:l.onesieProxyStatus},n=new g.mE("onesie.response.badproxystatus",!1,m),x.return(Promise.reject(n));if(200!==l.httpStatus)return p={st:l.httpStatus},r=new g.mE("onesie.response.badstatus",!1,p),x.return(Promise.reject(r));
t=l.body;u=g.A.TextDecoder?(new TextDecoder).decode(t):g.$a(t);e.ea();e.ea();return x.return(u)})})};
wX=function(){};
xX=function(a){var b=new $ua;a.l(b);return new Uint8Array(b.l.buffer,0,b.i)};
yX=function(a){var b=a.value;this.name=a.name;this.value=b};
zX=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
AX=function(a){this.i=a};
BX=function(a,b,c,d){this.i=a;this.encryptedClientKey=b;this.iv=c;this.hmac=d;this.serializeResponseAsJson=!0};
CX=function(a,b,c){this.u=a;this.i=b;this.onesieUstreamerConfig=c};
wDa=function(a,b){if(b+1<=a.totalLength){var c=uD(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=uD(a,b++);else if(2===c)c=uD(a,b++),a=uD(a,b++),a=(c&63)+64*a;else if(3===c){c=uD(a,b++);var d=uD(a,b++);a=uD(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=uD(a,b++);d=uD(a,b++);var e=uD(a,b++);a=uD(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),pD(a,c,4)?a=qD(a).getUint32(c-a.u,!0):(d=uD(a,c+2)+256*uD(a,c+3),a=uD(a,c)+256*(uD(a,c+1)+
256*d)),b+=5;return[a,b]};
xDa=function(a){this.l=a;this.i=new lD};
yDa=function(a){var b=g.q(wDa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.q(wDa(a.i,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.i.totalLength&&(d=a.i.split(d).Fp.split(b),b=d.Jw,d=d.Fp,a.l(c,b),a.i=d,yDa(a))};
CDa=function(a,b,c){var d=a.getVideoData().isAd()?.5:.9;c=c*d-16E3;a=qBa(a.pg,a.videoData);d=[];b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=zDa[e]||0;if(!(f&&f>c)){var h=ADa[e]||0;a.i&&h>a.i||d.push({itag:e,byterate:f})}}return d.sort(function(l,m){return BDa.indexOf(PD[l.itag])-BDa.indexOf(PD[m.itag])||m.byterate-l.byterate}).map(function(l){return l.itag})};
EDa=function(a){return[a].concat(g.ma(DDa[a]||[]))};
GDa=function(a){function b(h){return h.id}
function c(h){return f[h]||[]}
var d=JE(FDa,null,0,!1,!1,void 0),e=a.T().B;a=BH(a);var f=bB(a,e,d,function(){return!0});
d=gB(a).map(c).flat();return{video:kB(a).map(c).flat().map(b),audio:d.map(b)}};
HDa=function(a,b){var c=this;this.i=a;this.playerRequest=b;this.xhr=null;this.u=new aT;this.Y=this.K=!1;this.C=new g.J(this.nP,1E4,this);this.U=!1;this.l=this.i.T();this.videoData=this.i.getVideoData();this.ul=g.CH(this.i.getVideoData());this.J=this.l.rf;this.B=new qX(this.J.i);this.X=new xDa(function(d,e){c.G.feed(d,e)});
g.S(this.l.experiments,"html5_onesie_media_bytes")&&NA()&&(this.Zp=new rX(this));this.G=new uX(this)};
rDa=function(a,b,c){var d;null===(d=a.Zp)||void 0===d?void 0:(d.ea(),a=d.me[b],a.We||(a.PG.start(),a.Gd.append(c),a.bytesReceived+=c.length,a.Yc&&a.Yc()))};
vX=function(a,b){var c;a.u.reject(b);a.C.stop();a.jf("ore");null===(c=a.xhr)||void 0===c?void 0:c.abort()};
IDa=function(a){var b=a.xhr;102400<b.Jo()&&!a.U&&(a.jf("or100k"),a.U=!0);for(;b.dg();){var c=b.oi(),d=c.totalLength;a.ea();a.ul&&a.Ja("ombrss","len."+d);a.X.feed(c)}};
NDa=function(a){function b(e){return(d.tf||!(c.uh?0:c.Z("web_player_gvi_wexit")||(g.bG(c)?"TVHTML5"===c.deviceParams.c?dla(c)?c.Z("web_player_gvi_wexit_living_room_pangea"):c.Z("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.Z("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||IF(c)?c.Z("web_player_gvi_wexit_living_room_simply"):DG(c)||CG(c)?c.Z("web_player_gvi_wexit_living_room_unplugged"):c.Z("web_player_gvi_wexit_living_room_other"):1))&&
!$H(d)?0:"yt"!==c.va?38===d.va&&"books"===c.playerStyle||30===d.va&&"docs"===c.playerStyle||33===d.va&&"google-live"===c.playerStyle?0:g.S(c.experiments,"web_player_gvi_wexit_all_player_styles"):"adunit"!==WH(d)||g.S(c.experiments,"web_player_gvi_wexit_adunit"))?JDa(a,d).then(function(){DX(a,d)},function(f){DX(a,d,!0);
throw f;}):KDa(a,d,e)}
var c=a.T(),d=a.getVideoData();d.Ha();d.ma=!0;return LDa(a)?MDa(a,d).then(function(){DX(a,d)},function(e){e=oE(e);
if(e.i)return DX(a,d,!0),Promise.reject(e);a.handleError(e);return b("onesie")}):b("gvi")};
LDa=function(a){var b=a.T();if(!g.S(b.experiments,"html5_onesie")||"yt"!==b.va)return!1;b=b.rf;if(!b||!b.i)return a.handleError(new g.mE("onesie.unavailable.hotconfig",!1,{key:"0"})),!1;b={};window.Uint8Array||(b.uint8="0");return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.mE("html5.missingapi",!1,b)),!1):!0};
ODa=function(a){var b=hpa();ipa(b,a.Ve());gX.i||(gX.i=new gX);return g.TM(b,gX.i)};
MDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r;return g.z(d,function(t){if(1==t.i)return b.fetchType="onesie",e=yN(b,a.getPlayerSize(),a.getVisibilityState()),f=new HDa(a,e),g.w(t,f.fetch(),2);h=t.l;l={player_response:h};b.ma=!1;b.Ik=f.Zp;b.zP=f.oM;g.uH(b,l,!0);if(b.ma||sH(b))return t.return(Promise.resolve());b.Ik=void 0;m={};n="onesie.response";p=!1;b.errorCode?(n="auth",m.ec=b.errorCode,m.ed=b.errorDetail,m.es=b.Qh||"",p=!0):(m.successButUnplayable="1",m.disposed=""+ +b.Ha(),
m.afmts=""+ +/adaptiveFormats/.test(h),m.cpn=b.clientPlaybackNonce);r=new g.mE(n,p,m);return t.return(Promise.reject(r))})})};
JDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r,t;return g.z(d,function(u){switch(u.i){case 1:e=b.isAd(),f=!e,h=e?1:3,l=0;case 2:if(!(l<h)){u.ub(4);break}if(!(0<l)){u.ub(5);break}return g.w(u,kh(5E3),6);case 6:m=new g.Gv("Retrying OnePlatform request",{attempt:l}),g.Ux(m);case 5:return ta(u,7),g.w(u,PDa(a,b),9);case 9:return u.return();case 7:n=va(u);p=oE(n);r=p.errorCode;f&&"manifest.net.badstatus"===r&&"401"===p.details.rc&&(f=!1,l===h-1&&(h+=1));if("auth"===r||"manifest.net.retryexhausted"===
r)return u.return(Promise.reject(p));a.handleError(p);if(p.i){u.ub(4);break}case 3:l++;u.ub(2);break;case 4:return t=e?"auth":"manifest.net.retryexhausted",u.return(Promise.reject(new g.mE(t,!0,{backend:"op"})))}})})};
PDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I;return g.z(d,function(M){if(1==M.i)return b.fetchType="gp",e=ODa(b),f=yN(b,a.getPlayerSize(),a.getVisibilityState()),h=g.EM(QDa),l=b.Ve(),m=(0,g.P)(),n=!1,p="empty",r=0,a.jf("ps_s"),g.w(M,g.ZK(e,f,h),2);t=M.l;a.jf("ps_r");if(b.Ha())return M.return();t?t.error?(n=!0,p="esf:"+t.error.message,r=t.error.code):t.errorMetadata&&(n=!0,p="its",r=t.errorMetadata.status):n=!0;if(n)return u=a.T(),x=400===r||429===r,y=((0,g.P)()-
m).toFixed(),B={backend:"op",rc:""+r,rt:y,reason:p,has_kpt:b.eb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.O("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:u.pageId?"1":"0",has_token:l?"1":"0",has_vvt:b.xa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.xg||"",token_eq:l===b.Ve()?"1":"0"},G="manifest.net.connect",429===r?G="auth":200<r&&(G="manifest.net.badstatus"),M.return(Promise.reject(new g.mE(G,x,B)));b.ma=!1;g.uH(b,{raw_player_response:t},!0);
if(b.errorCode)return H={ec:b.errorCode,ed:b.errorDetail,es:b.Qh||""},M.return(Promise.reject(new g.mE("auth",!0,H)));if(!b.ma&&!sH(b))return I=b.isAd()?"auth":"manifest.net.retryexhausted",M.return(Promise.reject(new g.mE(I,!0,{successButUnplayable:"1",hasMedia:NH(b)?"1":"0"})));g.sa(M)})})};
KDa=function(a,b,c){return g.D(this,function e(){var f,h,l,m,n,p,r,t,u,x;return g.z(e,function(y){switch(y.i){case 1:f=dta(a.T(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),h=function(){return!0},l=function(B){B=oE(B);
if(B.i)return Promise.reject(B);a.handleError(B);return!1},n=(m=b.isAd())?1:3,p=0;
case 2:if(!(p<n)){y.ub(4);break}r=f;if(!(0<p)){y.ub(5);break}return g.w(y,kh(5E3),6);case 6:t={playerretry:p,playerretrysrc:c},m||(t.recover="embedded"),r=cs(f,t);case 5:return g.w(y,RDa(b,r).then(h,l),7);case 7:if(u=y.l)return y.return();p++;y.ub(2);break;case 4:x=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.Ux(new g.Gv("b/152131571",btoa(f)))}catch(B){}return y.return(Promise.reject(new g.mE(x,!0,{backend:"gvi"})))}})})};
RDa=function(a,b){return g.D(this,function d(){var e,f,h,l,m,n,p,r,t,u,x,y,B;return g.z(d,function(G){if(1==G.i)return a.fetchType="gvi",e=a.T(),(l=eta(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=cs(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b),m={},e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData),(n=g.$E(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0<
Object.keys(m).length&&(f.headers=m),p=(0,g.P)(),r=function(H){if(!a.Ha()){H=H?H.status:-1;var I=400===H||429===H,M=((0,g.P)()-p).toFixed();M={backend:"gvi",rc:""+H,rt:M};var L="manifest.net.connect";429===H?L="auth":200<H&&(L="manifest.net.badstatus");return Promise.reject(new g.mE(L,I,M))}},t=function(H){return r(H.xhr)},g.w(G,zE(Ts,h,f).then(void 0,t),2);
u=G.l;if(!u||!u.responseText)return G.return(r(u));a.ma=!1;x=Yr(u.responseText);g.uH(a,x,!0,void 0);if(a.errorCode)return y={ec:a.errorCode,ed:a.errorDetail,es:a.Qh||""},G.return(Promise.reject(new g.mE("auth",!0,y)));if(!a.ma&&!sH(a))return B=a.isAd()?"auth":"manifest.net.retryexhausted",G.return(Promise.reject(new g.mE(B,!0,{successButUnplayable:"1"})));g.sa(G)})})};
DX=function(a,b,c){c=void 0===c?!1:c;g.D(this,function e(){var f,h,l,m,n;return g.z(e,function(p){if(1==p.i){f=a.T();if(c&&(!g.FG(f)||"embedded"!==WH(b))||b.Qk||"adunit"!==WH(b)&&(g.bG(f)||cG(f)||g.VF(f)||g.UF(f)||"WEB_CREATOR"===f.deviceParams.c))return p.return();ta(p,2);h=ODa(b);l=tsa(b);m=g.EM(SDa);a.jf("wn_s");return g.w(p,g.ZK(h,l,m),4)}if(2!=p.i)return n=p.l,a.jf("wn_r"),n&&!n.error&&g.uH(b,{raw_watch_next_response:n},!1),ua(p,0);va(p);g.sa(p)})})};
TDa=function(a){function b(){a.jf("virc");JA("virc","video_to_ad")}
a.jf("vir");JA("vir","video_to_ad");var c=NDa(a);c.then(b,b);return c};
g.HX=function(a,b,c,d,e,f,h){g.Q.call(this);var l=this;this.u=a;this.playerType=b;this.K=c;this.Vb=d;this.getVisibilityState=f;this.visibility=h;this.eb=new vCa(this.u);this.J=null;this.Ua=new ZV;this.va=null;this.pg=new lW(this.u,this.Vb,this);this.Gc=!0;this.mediaSource=this.l=null;this.X=[];this.ma=new fX;this.U=this.Pa=null;this.xa=new fX;this.qb=null;this.nf=this.Da=!1;this.yb=NaN;this.Ob=new g.J(this.nT,500,this);this.playerState=new g.BK;this.Hb=[];this.Va=new mx;this.videoData=new g.rH(this.u);
this.i=null;this.Ga=new g.J(this.HR,15E3,this);this.Id=new g.J(this.bT,g.T(this.u.experiments,"html5_source_buffer_attach_delay_time")||15E3,this);this.uf=0;this.dd=this.jb=!1;this.Ea=NaN;this.La=!1;this.bb=0;this.xc=new g.J(this.aD,4500,this);this.Pw=!1;this.wb=NaN;this.Nb=new NT(new Map([["bufferhealth",function(){var m=l.B;return m.i?yK(m.i):0}],
["bandwidth",function(){return l.l?mU(l.l.G):xF(l.u.schedule,!0)}],
["networkactivity",function(){return l.u.schedule.U}],
["livelatency",function(){return l.isAtLiveHead()&&l.tc()?EX(l):NaN}],
["rawlivelatency",function(){return EX(l)}]]));
this.Ac=!0;this.lf=0;this.loop=!1;this.playbackRate=1;this.rf=0;this.Aa=null;this.mf=!1;this.Bb=[];this.Tc=this.tf=0;this.cd=this.yf=!1;this.wc=new g.J(this.XO,0,this);this.Ya=null;this.Jb=void 0;this.qf=0;this.sf=new g.J(this.gO,0,this);this.Kb=new g.J(this.YJ,3E4,this);this.fg=[this.Ob,this.Va,this.wc,this.Ga,this.Kb,this.Ob,this.xc,this.Nb,this.sf,this.Id];this.Fe=function(){var m=l.C;m.l.i.Ob||3===m.l.l.getVisibilityState()||(m.l.i.Ob=!0);gCa(m);if(m.u){var n=m.u;n.G&&0>n.l&&3!==n.i.l.getVisibilityState()&&
FBa(n)}m.qoe&&(m=m.qoe,m.Aa&&0>m.u&&m.i.i.Ob&&PBa(m));g.T(l.u.experiments,"html5_background_quality_cap")&&l.l&&FX(l);l.u.Ik&&!l.videoData.backgroundable&&l.i&&!l.zf()&&(l.isBackground()&&l.i.tv()?(l.Ja("bgmobile","suspend"),l.Jl(!0)):l.isBackground()||GX(l)&&l.Ja("bgmobile","resume"))};
this.ea();this.Y=new KW(function(){return l.getCurrentTime()},function(){return l.getPlaybackRate()},function(){return l.getPlayerState()},function(m,n){m!==g.Iz("endcr")||g.U(l.playerState,32)||kT(l);
e(m,n,l.playerType)});
g.F(this,this.Y);UDa(this,function(){return{}});
VDa(this);lxa(this.Fe);this.visibility.subscribe("visibilitystatechange",this.Fe);WDa(this);!this.Z("html5_log_coat_killswitch")&&this.Z("html5_high_res_logging")&&(a=uCa())&&this.Ja("cblt",a)};
UDa=function(a,b){!a.C||a.C.Ha();a.C=new g.JW(new IW(a.videoData,a.u,a,b))};
VDa=function(a){!a.G||a.G.Ha();a.G=new gW(a.videoData,a.u,a.visibility);a.G.subscribe("newelementrequired",function(b){return IX(a,b)});
a.G.subscribe("qoeerror",a.wz,a);a.G.subscribe("playbackstalledatstart",function(){return a.W("playbackstalledatstart")});
a.G.subscribe("signatureexpiredreloadrequired",function(){return a.W("signatureexpired")});
a.G.subscribe("releaseloader",function(){JX(a)});
a.G.subscribe("releasevideo",function(){a.Jl()});
a.G.subscribe("pausevideo",function(){a.pauseVideo()});
a.G.subscribe("clienttemp",a.Ja,a);a.G.subscribe("highrepfallback",a.rR,a);a.G.subscribe("playererror",a.Hf,a);a.G.subscribe("nonfatalerror",function(b){a.W("nonfatalerror",b)});
a.G.subscribe("removedrmplaybackmanager",function(){KX(a)});
a.G.subscribe("formatupdaterequested",function(){LX(a)});
a.G.subscribe("reattachvideosourcerequired",function(){XDa(a)})};
MX=function(a){var b=a.C;b.u&&b.u.send();if(b.qoe){var c=b.qoe;if(c.C){"PL"===c.hd&&(c.hd="N");var d=g.jT(c.i);g.qW(c,d,"vps",[c.hd]);c.G||(0<=c.u&&(c.l.user_intent=[c.u.toString()]),c.G=!0);c.va=!0;c.reportStats(d)}}if(b.l.videoData.enableServerStitchedDai)for(c=g.q(b.B.values()),d=c.next();!d.done;d=c.next())bCa(d.value);else b.i&&bCa(b.i);b.dispose();g.ef(a.C)};
OI=function(a){return a.i&&a.i.Ln()?a.i.ue():null};
NX=function(a){if(a.videoData.isValid())return!0;a.Hf("api.invalidparam",void 0,"invalidVideodata.1");return!1};
VS=function(a,b){b=void 0===b?!1:b;if(a.Jb&&a.Z("html5_match_codecs_for_gapless")){a.videoData.Ua=!0;a.videoData.Kb=!0;var c;var d=null===(c=a.Jb.l)||void 0===c?void 0:c.audioTrack.i.info.i;a.videoData.Rz=d;var e;d=null===(e=a.Jb.l)||void 0===e?void 0:e.videoTrack.i.info.i;a.videoData.Tz=d}a.Da=b;!NX(a)||a.ma.started?g.bG(a.u)&&a.videoData.isLivePlayback&&a.ma.started&&!a.ma.isFinished()&&!a.Da&&a.xA():(a.ma.start(),b=a.C,g.jT(b.l),b.qoe&&NBa(b.qoe),a.xA())};
YDa=function(a){var b=a.videoData;TDa(a).then(void 0,function(c){a.videoData!==b||b.Ha()||(c=oE(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Hf("auth",unescape(a.videoData.errorReason),g.nE(c.details),a.videoData.errorDetail,a.videoData.Qh||void 0):a.handleError(c))})};
oxa=function(a,b){a.Ya=b;a.l&&(a=a.l,b=new g.LV(b),a.K=b,a.u&&(a.u.Y=b))};
aEa=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),a.Ac=!0,a.ea(),4!==a.playerType&&(a.X=g.rb(a.videoData.Y)),NH(a.videoData)){OX(a).then(function(){a.Ha()||(a.Da&&(a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Lb(DK(DK(a.playerState,512),1)),GX(a)),ZDa(a,a.videoData),a.ma.i=!0,PX(a,"dataloaded"),a.xa.started?QX(a):a.Da&&!a.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&a.Lb(DK(DK(a.playerState,512),1)),EBa(a.pg,a.U))});
a.Z("html5_log_media_perf_info")&&a.Ja("loudness",""+a.videoData.Ji.toFixed(3),!0);var b=bna(a.videoData);b&&a.Ja("playerResponseExperiment",b,!0);$Da(a)}else PX(a,"dataloaded")};
OX=function(a){JX(a);a.U=null;var b=xCa(a.u,a.videoData,a.zf());a.Pa=b;a.Pa.then(function(c){bEa(a,c)},function(c){a.Ha()||(c=oE(c),a.visibility.isBackground()?(RX(a,"vp_none_avail"),a.Pa=null,a.ma.reset()):(a.ma.i=!0,a.Hf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.nE(c.details))))});
return b};
LX=function(a){a.ea();OX(a).then(function(){return GX(a)});
g.HK(a.playerState)&&a.playVideo()};
bEa=function(a,b){if(!a.Ha()&&!b.videoData.Ha()&&(a.ea(),a.U=b,ICa(a.B,a.U),a.videoData.isLivePlayback&&(0<a.videoData.Jb&&!GH(a.videoData)||a.seekTo(SX(a),{ke:"videoplayer_playbackData"})),a.videoData.u.i&&(a.l?g.Ux(Error("Duplicated Loader")):cEa(a)),TX(a),a.Z("html5_nonblocking_media_capabilities"))){var c=Date.now();tBa(a.pg,b).then(function(){var d=Date.now();a.Ja("mclatency",(d-c).toString())})}};
UX=function(a){a.ea();a.i&&a.i.fq();VS(a);NX(a)&&!g.U(a.playerState,128)&&(a.xa.started||(a.xa.start(),a.Lb(DK(DK(a.playerState,8),1))),QX(a))};
QX=function(a){a.Ha();a.ea();if(a.xa.isFinished())a.ea();else if(a.ma.isFinished())if(g.U(a.playerState,128))a.ea();else if(a.X.length)a.ea();else{if(!a.Y.started){var b=a.Y;b.started=!0;b.Ek()}if(a.vl())a.ea();else{a.l&&(b=a.l.timing,a.nf=!!b.i&&!!b.l);a.xa.isFinished()||(a.xa.i=!0);!a.videoData.isLivePlayback||0<a.videoData.Jb&&!GH(a.videoData)||(a.ea(),a.seekTo(Infinity,{ke:"videoplayer_readying"}),a.isBackground()&&(a.dd=!0));b=a.C;if(b.qoe){b=b.qoe;b.i.videoData.Ii&&vW(b,b.i.videoData.Ii);if(b.i.videoData.isLivePlayback){var c=
b.i.videoData.i;GH(b.i.videoData)&&vW(b,"manifestless");c&&SE(c)&&vW(b,"live-segment-"+SE(c).toFixed(1))}"yt"!==b.i.i.va&&(b.l.len=[b.i.videoData.lengthSeconds.toFixed(2)]);b.i.videoData.cotn&&!aI(b.i.videoData)&&KBa(b,!0)}a.ea();a.W("playbackready",a);IA("pbr",a.K.timerName)||(a.K.tick("pbr"),JA("pbr","video_to_ad"))}}else a.ea()};
kT=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.i&&a.i.pause();b=b?new g.BK(14):new g.BK;a.Lb(b)};
ZDa=function(a,b){b.endSeconds&&b.endSeconds>b.startSeconds&&(b=b.endSeconds,a.va&&(a.removeCueRange(a.va),a.va=null),a.va=new g.Fz(1E3*b,0x7ffffffffffff),a.va.namespace="endcr",a.addCueRange(a.va))};
WX=function(a,b,c,d){a.videoData.l=c;d&&dEa(a,b,d);var e=(d=g.VX(a))?d.kc():"";d=a.C;c=new lBa(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.jT(d.i);g.qW(d,e,"vfs",[c.i.id,c.l,d.jb,c.reason]);d.jb=c.i.id;var f=d.i.l.getPlayerSize();if(0<f.width&&0<f.height){f=[Math.round(f.width),Math.round(f.height)];var h=g.AG();1<h&&f.push(h);g.qW(d,e,"view",f)}d.Ea||(d.i.videoData.X&&vW(d,"rqs"),d.i.videoData.i&&ZA(d.i.videoData.i)&&(d.l.preload=["1"]));d.Ea=!0;d.C=!0;"m"===c.reason&&100===++d.Bb&&(c=d.l.fcnz,c||(c=
[],d.l.fcnz=c),c.push("2"));g.qW(d,e,"vps",[d.hd]);d.reportStats(e)}c=a.pg;c.C=0;c.u=0;a.W("internalvideoformatchange",a.videoData,"m"===b)};
g.VX=function(a){var b=XX(a);return UA(b)||!a.U?null:g.gb(a.U.i.videoInfos,function(c){return b.B(c)})};
dEa=function(a,b,c){if(c!==a.videoData.J){var d=!a.videoData.J;a.videoData.J=c;"m"!==b&&(b=d?"i":"a");var e=a.C;c=new lBa(a.videoData,c,b,"");if(e.qoe){e=e.qoe;var f=g.jT(e.i);c.i.id!==e.xa&&(g.qW(e,f,"afs",[c.i.id,e.xa,c.reason]),e.xa=c.i.id)}d||a.W("internalaudioformatchange",a.videoData,"m"===b)}};
dT=function(a,b){a.ea();if(a.i&&b.ue()===a.i.ue()&&(b.isView()||a.i.isView())){if(b.isView()||!a.i.isView())g.ox(a.Va),a.i=b,eEa(a),$W(a.B,a.i),a.G.u=a.i}else{a.i&&a.yg();if(!a.playerState.isError()){var c=EK(a.playerState,512);g.U(c,8)&&!g.U(c,2)&&(c=DK(c,1));b.isView()&&(c=EK(c,64));a.Lb(c)}a.i=b;a.i.setLoop(a.loop);a.i.setPlaybackRate(a.playbackRate);eEa(a);$W(a.B,a.i);a.G.u=a.i}};
XX=function(a){if(a.U){var b=a.pg;var c=a.U,d=YX(a),e=a.visibility;a=oBa(b);if(UA(a)){a=sBa(b,c);var f=BBa(b,c),h=pBa(b,c.videoData,c);e=CBa(b,e);var l=4320;!b.i.i||g.SF(b.i)||pt()||g.S(b.i.experiments,"hls_for_vod")||(l=g.SA.medium);var m=g.T(b.i.experiments,"html5_default_quality_cap");if(m){var n=!!c.i.i&&!c.videoData.xg&&!c.videoData.Jd,p=g.T(b.i.experiments,"html5_quality_cap_min_age_secs");n&&p&&(n=b.i.schedule.K,n=(0,g.P)()-n>1E3*p);n&&(l=Math.min(l,m))}m=g.T(b.i.experiments,"html5_random_playback_cap");
p=/[a-h]$/;m&&p.test(c.videoData.clientPlaybackNonce)&&(l=Math.min(l,m));(m=g.T(b.i.experiments,"html5_not_vp9_supported_quality_cap"))&&!$D('video/webm; codecs="vp9"')&&(l=Math.min(l,m));if(p=m=g.T(b.i.experiments,"html5_hfr_quality_cap"))a:{p=c.i;if(p.i)for(p=g.q(p.videoInfos),n=p.next();!n.done;n=p.next())if(32<n.value.fb().fps){p=!0;break a}p=!1}p&&(l=Math.min(l,m));(m=g.T(b.i.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(l=Math.min(l,m));l=DBa(b,c,l);l=new QA(0,4320===
l?0:l,!1,"d");m=mBa(b,c);p=m.compose;a:if((n=c.i)&&n.videoInfos.length){for(var r=g.q(n.videoInfos),t=r.next();!t.done;t=r.next())if(t=t.value,t.u){n=t.fb().i;break a}n=n.videoInfos[0].fb().i}else n=0;ht()&&!g.bG(b.i)&&RD(c.i.videoInfos[0])&&(n=Math.min(n,g.SA.large));n=new QA(0,n,!1,"o");f=p.call(m,n).compose(l).compose(e).compose(h).compose(f);h=f.compose;if((m=c.videoData.zP)&&m.i.length&&UA(c.videoData.Mp)){e=new Map;l=g.q(c.i.videoInfos);for(p=l.next();!p.done;p=l.next())p=p.value,e.set(+p.kc(),
p.video.i);l=[];m=g.q(m.i);for(p=m.next();!p.done;p=m.next())(p=e.get(p.value))&&l.push(p);e=Math.min.apply(Math,g.ma(l));l=Math.max.apply(Math,g.ma(l));c.videoData.Mp=new QA(e,l,!1,"u")}a=h.call(f,c.videoData.Mp).compose(a)}else b.Z("html5_perf_cap_override_sticky")&&(a=a.compose(BBa(b,c)));b.Z("html5_varispeed_playback_rate")&&(a=a.compose(sBa(b,c)));b=c.videoData.Lp.compose(a).compose(c.videoData.UG).compose(d)}else b=qH;return b};
YX=function(a,b){if(a.J){var c=a.J;b=void 0===b?!1:b;c=(void 0===b?0:b)&&c.Ga?c.Ga:c.U}else c=xH(a.videoData)&&a.videoData.i&&fB(a.videoData.i)?a.videoData.rf?qH:WAa:qH;a.cd&&(c=c.compose(fEa));return c};
Cwa=function(a,b,c){a.videoData.Lp=b;if(a.U&&c){c=a.pg;var d=a.U,e,f;if(d.i.i){var h=AF(),l=d.i.videoInfos[0].fb().i;if(!(h>l&&0!==l&&b.i===l)){1<c.playbackRate&&c.Z("html5_varispeed_playback_rate")&&(h=wka(c.i.B,d.i.videoInfos,c.playbackRate),0!==b.i&&h<b.i&&c.l.setPlaybackRate(1));gEa(g.SA[WA(b)],(null===(f=null===(e=d.videoData.l)||void 0===e?void 0:e.video)||void 0===f?void 0:f.i)||0);c.i.schedule.policy.B=480<=AF();if(c.Z("html5_exponential_memory_for_sticky")){b=c.i.Nb;e=1;var m=void 0===m?
!1:m;Kka(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.ql["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.ql["sticky-lifetime"]=0);m&&.0625<BF(b,"sticky-lifetime")&&(e=2*b.ql["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.i/e);b.ql["sticky-lifetime"]=e;b.B.start()}c.Z("html5_perf_cap_override_sticky")&&hEa(c.Z("html5_perserve_av1_perf_cap"))}}}TX(a)};
TX=function(a){if(!a.Ha()&&!g.U(a.playerState,128)&&a.videoData.u){if(a.videoData.u.i)ZX(a);else{var b=XX(a),c=a.videoData;a:{var d=a.videoData.qb;if(b.i){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Ue(),l=g.SA[h.fb().quality];if((!b.u||"auto"!==h.fb().quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.La=d;WX(a,b.reason,iEa(a,a.videoData.La))}if(a.Z("html5_check_unstarted")?g.HK(a.playerState):a.tc())a.B.Ga=!1,a.playVideo()}};
ZX=function(a){if(a.videoData.u&&a.videoData.u.i){var b=XX(a),c=a.videoData.l;if(!a.Z("html5_dynamic_av1_hybrid_threshold")&&c&&TD(c)){var d=ZE(a.u);if(d&&d<c.fb().i&&d!==a.qf){a.qf=d;OX(a);return}}if(a.l&&(a=a.l,!a.Ha()&&!RA(a.l.u,b)&&a.videoTrack)){a.ea();var e=a.l.u;eAa(a,Aya(a.l,b));BV(a);c=FU(a.l)&&"m"===b.reason&&a.l.Y;d=a.policy.Hi&&"l"===b.reason&&mV(a.videoTrack);b=("b"===b.reason||"o"===b.reason)&&e.i>b.i;e=a.l.Ua&&!qE();c||d||b||e?(a.Ja("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),
a.W("reattachrequired")):g.Eq(a.Y)}}};
FX=function(a){a.Z("html5_nonblocking_media_capabilities")?ZX(a):TX(a)};
cEa=function(a){a.Z("html5_probe_media_capabilities")&&nma(a.videoData.u);dka(a.videoData.i,{cpn:a.videoData.clientPlaybackNonce,c:a.u.deviceParams.c,cver:a.u.deviceParams.cver});var b=a.u,c=a.videoData,d=new g.Bsa,e=Asa(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Wj:c.Wj});d.B=e;d.yj=b.Z("html5_disable_codec_for_playback_on_error");d.Fi=b.Z("html5_max_drift_per_track_secs")||b.Z("html5_rewrite_manifestless_for_sync")||b.Z("html5_check_segnum_discontinuity");d.Vb=b.Z("html5_unrewrite_timestamps");
d.Kb=b.Z("html5_stop_overlapping_requests");d.mf=g.T(b.experiments,"html5_min_readbehind_secs");d.Qk=g.T(b.experiments,"html5_min_readbehind_cap_secs");d.Pk=g.T(b.experiments,"html5_max_readbehind_secs");d.Rp=g.S(b.experiments,"html5_trim_future_discontiguous_ranges");d.rj=b.Z("html5_append_init_while_paused");d.Id=g.T(b.experiments,"html5_max_readahead_bandwidth_cap");d.sf=g.T(b.experiments,"html5_post_interrupt_readahead");d.K=g.T(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.Ob=g.T(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Hn=g.T(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Nb=g.T(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.In=g.T(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Ah=g.T(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Jn=g.T(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.rf=b.Z("html5_peak_shave");d.Kp=b.Z("html5_restrict_streaming_xhr_on_sqless_requests");
d.Nk=g.T(b.experiments,"html5_max_headm_for_streaming_xhr");d.Tk=b.Z("html5_pipeline_manifestless_allow_nonstreaming");d.Uo=b.Z("html5_prefer_server_bwe3");d.Bh=1024*g.T(b.experiments,"html5_video_tbd_min_kb");d.Jk=b.Z("html5_last_slice_transition");d.Fn=b.Z("html5_store_xhr_headers_readable");d.Gj=b.Z("html5_enable_packet_train_response_rate");d.qb=g.T(b.experiments,"html5_probe_primary_delay_base_ms")||d.qb;d.qf=b.Z("html5_no_placeholder_rollbacks");d.Gn=b.Z("html5_subsegment_readahead_enable_mffa");
b.Z("html5_allow_video_keyframe_without_audio")&&(d.Pa=!0);d.uf=b.Z("html5_reattach_on_stuck");d.cq=b.Z("html5_webm_init_skipping");d.yf=g.T(b.experiments,"html5_request_size_padding_secs")||d.yf;d.Ac=b.Z("html5_abs_buffer_health");d.Ik=b.Z("html5_interruption_resets_seeked_time");d.Jh=g.T(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Jh;d.gh=b.Z("html5_explicitly_dispose_xhr");d.Hp=b.Z("html5_restart_on_unexpected_detach");d.Lp=b.Z("html5_rewrite_manifestless_for_continuity");d.cd=
g.T(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.dd=g.T(b.experiments,"html5_max_drift_per_track_secs");d.Mp=b.Z("html5_rewrite_manifestless_for_sync");d.Jb=g.T(b.experiments,"html5_static_abr_resolution_shelf");d.wj=!b.Z("html5_encourage_array_coalescing");d.Ii=b.Z("html5_crypto_period_secs_from_emsg");d.zj=b.Z("html5_disable_reset_on_append_error");d.Kj=b.Z("html5_filter_non_efficient_formats_for_safari");d.gi=b.Z("html5_format_hybridization");d.Ci=b.Z("html5_abort_before_separate_init");
d.Np=b.Z("html5_serialize_server_stitched_ad_request");d.va=b.Z("html5_resume_streaming_requests");d.nf=b.Z("html5_never_pause_appends");d.Rk=g.T(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Ij=b.Z("html5_mfl_extend_max_request_time");d.Bb=b.Z("html5_reattach_on_quota_exceeded");b.Z("html5_media_common_config_killswitch")||(d.C=c.maxReadAheadMediaTimeMs/1E3||d.C,e=b.schedule,e.u.Yf()===e.policy.u?d.U=10:d.U=c.minReadAheadMediaTimeMs/1E3||d.U,d.Gc=c.readAheadGrowthRateMs/1E3||
d.Gc);Bl&&(d.X=41943040);d.Ua=!xE();g.bG(b)||!xE()?(e=b.experiments,d.G=8388608,d.J=524288,d.vj=5,d.bb=2097152,d.ma=1048576,d.qp=1.5,d.Sk=!1,d.Ib=4587520,kt()&&(d.Ib=786432),d.l*=1.1,d.u*=1.1,d.Hb=!0,d.X=d.G,d.eb=d.J,d.wc=g.S(e,"persist_disable_player_preload_on_tv")||g.S(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.i&&(d.l*=1.3,d.u*=1.3);g.aj&&ft("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.G=20971520,d.J=1572864,e&&(d.Ib=812500,d.xc=1E3,d.Sp=5,d.ma=2097152));!b.Z("html5_disable_firefox_init_skipping")&&
g.bj&&(d.Hb=!0);b.supportsGaplessAudio()||(d.Bj=!1);KF&&(d.Ga=!0);ot()&&(d.uh=!0);var f;e=null===(f=c.i)||void 0===f?void 0:fB(f);if(GH(c)){d.Aa=b.Z("html5_used_segment_info_cuepoint");d.Hk=!0;d.En=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.Z("html5_disable_low_pipeline"))d.Lk=2,d.Ok=4;d.al=c.defraggedFromSubfragments;c.Md&&(d.yb=!0);g.OH(c)&&(d.La=!1);d.Gi=g.EG(b)}c.isAd()&&(d.jb=0,d.bd=0);Hma(c)&&(d.Ea=!0,d.va&&b.Z("html5_aggressive_timeout_for_streaming_xhr")&&(d.xc=400,d.wb*=
3,d.Mk=2,d.lf=3,d.rh=1.4));d.Va=b.Z("html5_enable_subsegment_readahead_v3")||b.Z("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.Ya=c.X;d.Y=d.Ya&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.CH(c));vt()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.Z("html5_disable_move_pssh_to_moov")&&e&&(d.Hb=!1);e&&(d.uf=!1);var h=0;b.Z("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.l,c.isLivePlayback&&(h=g.T(b.experiments,"ULTRALOW"===c.latencyClass?
"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||h));f=b.schedule;f.Y.i=GH(c)?.5:0;if(!f.policy.i&&h&&(f=f.u,h=Math.round(h*f.resolution),h!==f.i)){var l=Array(h),m=Math.min(h,f.l?f.i:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.i);for(var p=0;p<m;++p)l[p]=f.values[(n+p)%f.i];for(;p<h;++p)l[p]=Infinity;f.i=h;f.values=l;f.valueIndex=m%h;f.l=m===h;f.B=!0;f.G=Aka(f)}d.nf=c.isLivePlayback;switch(HH(c)){case 21530001:d.Ai=
b.Z("html5_live_smoothly_extend_max_seekable_time");d.Va=!0;"LOW"===c.latencyClass?d.K=g.T(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.K=g.T(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.qf=!0;break;case 2153E4:d.Va=!1}d.Ga=d.Ga||c.gs;d.xa=c.Ua;g.CH(c)&&(d.Tc=!0);c.Ua&&!e&&b.Z("html5_hack_gapless_init")&&(d.fg=!0);(e=g.T(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Ua&&c.isAd()&&(d.l*=e,d.u*=e);aI(c)&&(d.i=c.videoId,
d.Ac=!0);d.Hi=c.rf;b.Z("html5_dynamic_av1_hybrid_threshold")&&(d.Aj=!0,d.Da=ZE(b,{},c.u||void 0));c=480<=AF();e=g.T(b.experiments,"html5_deadzone_multiplier")||1;(f=g.T(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.l*=e;d.u*=e;if(e=g.T(b.experiments,"html5_request_sizing_multiplier"))d.Gp=e;dB(b.B,eB.BITRATE)&&(d.Ib=NaN);b.B.l&&(d.Hj="; "+eB.EXPERIMENTAL.name+"=allowed");c&&(d.Jb=0);d.Vo=b.Z("html5_rec_2020_matrix_correction_killswitch");g.S(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&
KF&&(d.Oo=!0);g.S(b.experiments,"debug_html5_random_stun_format")&&(d.tf=!0);g.S(b.experiments,"html5_log_audio_abr")&&(d.Kk=!0);b=b.experiments;g.S(b,"html5_audio_only_eos_fix_killswitch")&&(d.uj=!0);g.S(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.Wo=!0);g.S(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.uh=!1);g.S(b,"html5_skip_buffer_check_seek_to_head")&&(d.xj=!0);g.S(b,"html5_mfl_config_fallback_killswitch")&&(d.Ji=!1);g.S(b,"html5_ssdai_alr_killswitch")&&(d.Dn=!0);b=a.getAudioTrack();
b=b.Jc.isDefault?void 0:b;$V(a.Ua);c=a.u.schedule;e=a.videoData.i;f=a.videoData.u;h=XX(a);l=a.videoData.enableServerStitchedDai;m=a.videoData;n=m.Ik;delete m.Ik;a.l=new g.xV(a,c,d,e,f,h,b,l,n);a.l.subscribe("newDrmInfo",a.XR,a);a.l.subscribe("videoformatchange",a.sM,a);a.l.subscribe("audioformatchange",a.JR,a);a.l.subscribe("error",a.handleError,a);a.l.subscribe("reattachrequired",a.cU,a);a.l.subscribe("metadata",a.bJ,a);a.l.subscribe("constraint",a.wT,a);a.l.subscribe("timestamp",a.WP,a);a.l.subscribe("localmediachange",
a.KR,a);a.l.subscribe("localplaybackfailed",a.QN,a);d=jEa(a)?!0:a.Da&&g.bG(a.u)&&a.videoData.isLivePlayback;a.l.initialize(a.getCurrentTime(),XX(a),d);a.videoData.probeUrl&&(a.l.Ea=a.videoData.probeUrl);(a.X.length||a.Da)&&$X(a,!1);bX(a.B,a.l);a.G.l=a.l;a.Ya&&(d=a.l,b=new g.LV(a.Ya),d.K=b,d.u&&(d.u.Y=b));g.bI(a.videoData)&&(a.l.policy.Jj=2)};
WDa=function(a){a.B=new XW(a.videoData,a.u,a.visibility,function(){return g.kb(a.X,"ad")});
g.F(a,a.B);a.B.subscribe("seekto",function(b,c){a.B.C=b;var d=a.eb;d.mediaTime=b;d.i=!0;c||aY(a);a.va&&b>a.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.va),a.va=null);b<SX(a)-.01&&(c=EK(a.playerState,2),g.U(c,8)&&(c=EK(c,4)),a.Lb(c));a.W("SEEK_TO",a,b)});
a.B.subscribe("seekstart",function(){uT(a)});
a.B.subscribe("seekend",function(){return a.W("SEEK_COMPLETE")});
a.B.subscribe("newmediaelementrequired",function(){return IX(a)});
a.B.subscribe("ended",function(){kT(a)});
a.B.subscribe("ctmp",a.Ja,a);a.B.subscribe("qoeerror",a.wz,a);a.B.subscribe("livereadaheadchanged",function(b){var c=a.C;c.qoe&&(c=c.qoe,g.qW(c,g.jT(c.i),"lra",[b]),c.Ja("live-readahead-seconds",b.toString()))});
a.B.subscribe("releaseadsprerolllock",function(){a.Ad("ad")});
a.B.subscribe("skipslowad",function(){a.Hf("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+a.videoData.videoId)})};
JX=function(a){a.l&&(a.l.dispose(),a.l=null,bX(a.B,null),a.G.l=null);bY(a)};
bY=function(a){if(a.mediaSource){a.ea();if(a.l){var b=GH(a.videoData)&&a.videoData.Md&&!a.videoData.isAd();EV(a.l,b)}a.mediaSource.dispose();a.mediaSource=null}};
cY=function(a){if(a.mediaSource)return a.mediaSource.Pt;a.ea();a:if(a.Z("html5_application_media_source"))a.W("requestmediasource",a);else{var b=g.T(a.u.experiments,"html5_source_buffer_attach_retry_limit")||0;a.uf<b&&a.Id.start();try{var c=a.i.qv()}catch(d){if(jW(a.G,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Hf("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}fT(a,c)}return a.mediaSource?a.mediaSource.Pt:
null};
fT=function(a,b){kEa(a);a.mediaSource=b;Lja(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.ea();var d=a.getDuration();!d&&GH(a.videoData)&&(d=g.T(a.u.experiments,"html5_manifestless_media_source_duration")||3600);a.mediaSource.isView?(c=d,a.ea(),c>a.mediaSource.getDuration()&&uE(a.mediaSource,c)):uE(a.mediaSource,d);var e=a.l,f=a.mediaSource;e.U&&(e.ea(),DV(e),e.U=!1);e.ea();$za(e);if(!vE(f)){var h=e.videoTrack.i.info.mimeType+e.policy.Hj,l=e.audioTrack.i.info.mimeType,
m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l),r="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.qe&&(f.qe.webkitSourceAddId("0",l),f.qe.webkitSourceAddId("1",h));var t=new pE(p,f.qe,"0",OD(l),!1),u=new pE(r,f.qe,"1",OD(h),!0);f.i=t;f.l=u;g.F(f,t);g.F(f,u)}bV(e.videoTrack,f.l||null);bV(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();px(f.i,e.Da,e);px(f.l,e.Da,e);e.fh();a.W("mediasourceattached");a.Id.stop()}}catch(x){g.Ux(x),
a.handleError(new g.mE("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})};
kEa=function(a){a.l?g.ah(a.l.seek(a.getCurrentTime()-a.Lc()),function(){}):cEa(a)};
IX=function(a,b){b=void 0===b?!1:b;return g.D(a,function d(){var e=this;return g.z(d,function(f){if(1==f.i)return e.l&&e.l.Ha()&&JX(e),e.W("newelementrequired"),b?g.w(f,OX(e),2):f.ub(2);g.U(e.playerState,8)&&e.playVideo();g.sa(f)})})};
ixa=function(a,b){a.Ja("newelem",b);IX(a)};
aY=function(a){a.K.B.l=(0,g.P)();g.U(a.playerState,32)||(a.Lb(DK(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.W("beginseeking",a));a.Rb()};
uT=function(a){g.U(a.playerState,32)?(a.Lb(FK(a.playerState,16,32)),a.W("endseeking",a)):g.U(a.playerState,2)||a.Lb(DK(a.playerState,16));var b=a.K.B,c=a.videoData.clientPlaybackNonce;c&&!isNaN(b.i)&&(a=g.U(a.playerState,4)?"pbp":"pbs",CA("seek",["pbp","pbs"],b.i),g.DA("cpn",c,"seek"),isNaN(b.l)||EA("pl_ss",b.l,"seek"),EA(a,(0,g.P)(),"seek"),b.reset())};
FT=function(a){a=a.B;return a.u?QW(a.u):Infinity};
PX=function(a,b){a.W("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
eEa=function(a){g.Cb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Va.N(this.i,b,this.tM,this)},a);
a.u.uj&&a.i.Ln()&&(a.Va.N(a.i,"webkitplaybacktargetavailabilitychanged",a.FQ,a),a.Va.N(a.i,"webkitcurrentplaybacktargetiswirelesschanged",a.GQ,a))};
mEa=function(a){a.Z("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&lEa(a)&&a.Ob.start()};
lEa=function(a){if(!a.i)return!1;var b=a.i.getCurrentTime();a=a.i.getDuration();return!!(1<b&&b>a-.3)};
nEa=function(a){window.clearInterval(a.yb);dY(a)||(a.yb=ns(function(){return dY(a)},100))};
dY=function(a){var b=a.i;b&&a.jb&&!a.videoData.Ya&&!IA("vfp",a.K.timerName)&&2<=b.eh()&&!b.ck()&&0<iE(b.Nf())&&a.K.tick("vfp");return(b=a.i)&&!a.videoData.Ya&&0<b.getDuration()&&(!IA("pbp",a.K.timerName)&&b.Xl()&&2<=b.eh()&&0<iE(b.Nf())&&a.K.tick("pbp"),b=b.getCurrentTime(),LW(a.eb,b))?(bxa(a),!0):!1};
bxa=function(a){window.clearInterval(a.yb);a.Ga.stop();a.videoData.Ya=!0;a.u.yj=!0;a.u.Ua=0;var b=a.G,c=b.videoData.l;c&&b.videoData.Z("html5_disable_codec_on_errors_with_exp_backoff")&&b.i.B.i.delete(c.i);b.C.stop();a.u.fg=a.videoData.Oz;a.videoData.GF=!0;oEa(a);g.U(a.playerState,8)&&a.Lb(EK(a.playerState,65));b=a.C;b.i&&ZBa(b.i);b.u&&(b=b.u,c=g.jT(b.i),0>b.l&&(b.l=c,b.delay.start()),b.u=c,b.C=c);g.Eq(a.xc);a.W("playbackstarted");g.fu()&&((a=g.Ia("yt.scheduler.instance.clearPriorityThreshold"))?
a():hu(0))};
oEa=function(a){var b=a.getCurrentTime(),c=a.videoData;!IA("pbs",a.K.timerName)&&Vz.measure&&Vz.getEntriesByName&&(Vz.getEntriesByName("mark_nr")[0]?HA("mark_nr"):HA());c.videoId&&a.K.info("docid",c.videoId);c.eventId&&a.K.info("ei",c.eventId);c.clientPlaybackNonce&&a.K.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.K.info("start",c.startSeconds.toString());a.i&&a.i.Xl()&&a.K.info("paused",1);c.l?a.K.info("fmt",c.l.kc()):a.K.info("fmt","-1");c.Kb&&a.K.info("yt_pre",a.nf?"2":"1");a.isFullscreen()&&
a.K.info("yt_fs","1");a.K.info("cmt",b.toFixed(3));if(a.l){b=a.l.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.l&&(c=window.performance.getEntriesByName(b.l),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("fvb",c.responseStart),b.tick("vrc",c.responseEnd))),b.i&&(c=window.performance.getEntriesByName(b.i),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),
b.tick("avb",c.responseStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var d in b)b.hasOwnProperty(d)&&a.K.tick(d,b[d])}};
pEa=function(a){a.C.Yc();if(a.videoData.isLivePlayback&&Date.now()>a.rf+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&OE(a.videoData.i))){var b=a.C;if(b.qoe){b=b.qoe;var c=b.i.l.Cw(),d=g.jT(b.i);MBa(b,d,c);c=c.C;isNaN(c)||g.qW(b,d,"e2el",[c.toFixed(3)])}}g.EG(a.u)&&a.Ja("rawlat","l."+PT(a.Nb,"rawlivelatency").toFixed(3));a.rf=Date.now()}a.videoData.l&&UD(a.videoData.l)&&(b=OI(a))&&b.videoHeight!==a.Tc&&(a.Tc=b.videoHeight,WX(a,"a",iEa(a,a.videoData.La)))};
iEa=function(a,b){if("auto"===b.i.fb().quality&&UD(b.Ue())&&a.videoData.qb)for(var c=g.q(a.videoData.qb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.Tc&&"auto"!==d.i.fb().quality)return d.Ue();return b.Ue()};
EX=function(a){if(!a.videoData.isLivePlayback||!a.videoData.i||!a.l)return NaN;var b=GH(a.videoData)?a.l.Aa.Yf()||0:a.videoData.i.ma;return Date.now()/1E3-a.getIngestionTime()-b};
qEa=function(a){!a.Z("html5_ignore_airplay_events_on_new_video_killswitch")&&a.i&&a.i.zf()&&(a.wb=(0,g.P)());a.u.Qk?g.ms(function(){eY(a)},0):eY(a)};
eY=function(a){if(a.i)try{a.qb=a.i.playVideo()}catch(c){RX(a,"err."+c)}if(a.qb){var b=a.qb;b.then(void 0,function(c){a.ea();if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.qb===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.ea();else{var d="promise";c&&c.name&&(d+=";m."+c.name);RX(a,d);a.mf=!0;a.u.Z("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.OF=!0)}})}};
RX=function(a,b){g.U(a.playerState,128)||(a.Lb(FK(a.playerState,1028,9)),a.Ja("dompaused",b),a.W("onDompaused"))};
GX=function(a){if(!a.i||!a.videoData.u)return!1;var b,c,d=null;(null===(c=a.videoData.u)||void 0===c?0:c.i)?(d=cY(a),null===(b=a.l)||void 0===b?void 0:b.resume()):(JX(a),a.videoData.La&&(d=a.videoData.La.Rr()));b=d;d=a.i.tv();c=!1;d&&null!==b&&b.i===d.i||(a.K.tick("vta"),JA("vta","video_to_ad"),0<a.getCurrentTime()&&(c=a.getCurrentTime(),a.B.C=c),a.i.fq(b),a.mediaSource&&hu(4),!a.videoData.Ya&&g.HK(a.playerState)&&a.Ga.start(),c=!0);g.U(a.playerState,2)||(b=a.B,b.J||!(0<b.C)||b.i&&0<b.i.getCurrentTime()||
b.seekTo(b.C,{ke:"playbacktimeline_resumeTime"}));a:if(b=c,g.JH(a.videoData)&&a.i)if((d=a.videoData.G)&&a.i.Ln()){var e=a.i.ue();if(a.J)if(e!==a.J.element)KX(a);else if(b&&"fairplay"===d.flavor&&!jt())KX(a);else break a;a.J=new cW(e,a.videoData,a.u);a.J.subscribe("licenseerror",a.rM,a);a.J.subscribe("qualitychange",a.DR,a);a.J.subscribe("heartbeatparams",a.pM,a);a.J.subscribe("keystatuseschange",a.qM,a);a.J.subscribe("hdproberequired",a.CR,a);a.J.subscribe("ctmp",a.Ja,a);b=g.q(a.Ua.keys);for(d=b.next();!d.done;d=
b.next())d=a.Ua.get(d.value),a.J.fp(d);a.Z("html5_eme_loader_sync")||$V(a.Ua)}else a.Hf("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
KX=function(a){a.J&&(a.J.dispose(),a.J=null)};
gT=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.Z("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.U(a.playerState,4))||cX(a.B)||g.OH(a.videoData))?a.getCurrentTime():SX(a,b)};
SX=function(a,b){return YW(a.B,void 0===b?!1:b)};
rEa=function(a){return a.i?a.i.ov():a.loop};
XDa=function(a){a.ea();a.i&&(a.mediaSource?(KX(a),bY(a),cY(a)):(a.videoData.La&&a.videoData.La.ZC(),a.i.stopVideo()),a.playVideo())};
fY=function(a,b){g.S(a.u.experiments,"html5_log_rebuffer_reason")&&a.Ja("bufreason","r."+b+";lact."+mu())};
qT=function(a,b,c,d,e,f){var h;if(null===(h=a.videoData.i)||void 0===h?0:h.isLive){var l=2===c.playerType?c:b,m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.C;if(p.qoe){p=p.qoe;var r=b.cpn,t=c.cpn,u=l.videoData.Tc,x=p.i.videoData.clientPlaybackNonce,y=p.i.videoData.videoId,B=t!==x&&n!==y;x=r!==x&&m!==y;p.reportStats();p.adCpn&&p.adCpn!==r||(p.adCpn=x?r:"",p.U=x?m:"",p.adFormat=x?u:void 0,QBa(p,f?2:0,t,n,e),p.reportStats(),p.adCpn=B?t:"",p.U=B?n:"",p.adFormat=B?u:void 0,QBa(p,f?3:1,r,
m,d),p.reportStats())}d=a.C;b=b.cpn;d.B.has(b)?(b=d.B.get(b),HW(b).send(),g.os(b.u),b.u=NaN):(d.Mf=d.l.videoData.clientPlaybackNonce,d.Mf&&d.i&&d.B.set(d.Mf,d.i));a=a.C;c=c.cpn;l=l.videoData;var G;a.B.has(c)?null===(G=a.B.get(c))||void 0===G?void 0:G.B&&isNaN(G.u)&&FW(G,!1):(e=kCa(a,a.l,l,e),a.B.set(c,e),ZBa(e));a.Mf=c}}};
sEa=function(a,b){if(a.videoData.X){var c=g.T(a.u.experiments,"html5_log_rebuffer_events");if(c&&a.i){var d=a.i.Cb();d.rt=(1E3*g.jT(a.C.l)).toFixed();d.e=b.substr(0,3);a.Bb[a.tf++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.ea()};
tEa=function(a){if(a.videoData.X){a.Bb.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.Bb),c=b.next();!c.done;c=b.next())c=c.value,a.Ja("vpe","t."+c.rt+";"+g.nE(c));a.Bb=[];a.tf=0}};
uEa=function(a){if(ft("cobalt")&&ft("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ja("nxdock",""+ +b)}};
axa=function(a,b,c,d,e){a.Ja("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
$X=function(a,b){CV(a.l,b||jEa(a))};
jEa=function(a){var b=a.Z("disable_prefetch_when_ad_pending_for_living_room")&&g.bG(a.u),c=a.Z("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.kb(a.X,"ad")};
$Da=function(a){if(zH(a.videoData,"html5_set_debugging_opt_in")&&(a=g.Am(g.Xu),!g.Zu(0,183))){var b="f"+(Math.floor(183/31)+1),c=Yu(b)||0;c|=268435456;0==c?delete Wu[b]:(c=c.toString(16),Wu[b]=c.toString());a.save()}};
g.gY=function(a,b,c){g.E.call(this);var d=this;this.Rt=this.Xf=!1;this.Ob={};this.jb={};this.wc=!1;this.Bb=null;this.xc=!1;this.Ea=!0;this.Nb=!1;this.Ac=this.Jb=null;this.Gc=!0;this.B=this.K=null;this.eb=this.La=!1;this.Tc=this.Ua=this.u=this.playlist=null;this.Ya=void 0;this.Aa=0;this.ma=this.Ga=this.U=null;this.ea();this.config=pia(b||{});this.webPlayerContextConfig=c;Fha();b=this.config.args||{};this.i=new uG(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.F(this,this.i);void 0!==
navigator.mediaCapabilities&&(LE=!0);this.Z("html5_skip_empty_load")&&(vEa=!0);wEa=this.Z("html5_ios_force_seek_to_zero_on_stop");xEa=this.Z("html5_ios7_force_play_on_stall");yEa=this.Z("html5_ios4_seek_above_zero");this.Z("html5_mediastream_applies_timestamp_offset")&&(VU=!0);this.Z("html5_dont_override_default_sample_desc_index")&&($B=!0);this.i.i&&!zEa&&(window.addEventListener(JF?"touchstart":"click",Vwa,{capture:!0,passive:!0}),zEa=!0);this.cd=CF(OF(this.i)&&!0,b.enablesizebutton);this.Hb=CF(!1,
b.player_wide);this.visibility=new lT;g.F(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.qN(this);g.F(this,this.events);this.Il=new g.dr;g.F(this,this.Il);this.fl=new g.dr;g.F(this,this.fl);this.Pm=new Yxa;this.Wa=new g.hN(this);g.F(this,this.Wa);this.template=new TT(this);g.F(this,this.template);this.Y=1;this.Uf=this.i.tf?AEa():{volume:100,muted:this.i.mute};this.I=this.i.u?new gN(this,1):new aN(this,1);g.F(this,this.I);c={};this.qb=(c.internalvideodatachange=
this.JQ,c.playbackready=this.LQ,c.playbackstarted=this.MQ,c.statechange=this.NQ,c);this.G=BEa(this);this.Kb=new g.qN(this);g.F(this,this.Kb);this.Z("html5_enable_web_assembly")&&this.G&&Lsa(this.G).then(function(e){d.i.Ji=e});
this.J=new rN(this.i,this.G);this.l=CEa(this);c={};this.bd=(c.airplayactivechange=this.DQ,c.airplayavailabilitychange=this.EQ,c.beginseeking=this.vM,c.endseeking=this.wM,c.internalAbandon=this.yM,c.internalaudioformatchange=this.uM,c.internalvideodatachange=this.kb,c.internalvideoformatchange=this.BM,c.liveviewshift=this.FR,c.playbackstalledatstart=this.eT,c.progresssync=this.sS,c.onLoadProgress=this.GR,c.SEEK_COMPLETE=this.zM,c.SEEK_TO=this.SS,c.onVideoProgress=this.CM,c.onLoadedMetadata=this.IR,
c.onDompaused=this.oR,c.playbackready=this.hS,c.statechange=this.AJ,c.connectionissue=this.Xt,c.newelementrequired=this.eJ,c.heartbeatparams=this.xM,c.videoelementevent=this.AM,c.drmoutputrestricted=this.pR,c.requestmediasource=this.ES,c.signatureexpired=this.YS,c.nonfatalerror=this.YR,c);this.xa=new g.qN(this);g.F(this,this.xa);c=10;g.bG(this.i)&&(c=3);DG(this.i)&&(c=g.T(this.i.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Pa=new KT(c,function(e){e!==g.W(d,e.getPlayerType())&&e.dispose()});
g.F(this,this.Pa);this.wb=this.bb=-1;this.Va=new g.J(this.template.resize,16,this.template);g.F(this,this.Va);DEa(this);this.X=new zT(this.Wa,this.i,this.l);this.Da=new hT(this.Wa);g.F(this,this.Da);Pxa(this.i.deviceParams.c);this.events.N(this.Wa,g.Iz("appapi"),this.HQ);this.events.N(this.Wa,g.Jz("appapi"),this.IQ);this.events.N(this.Wa,g.Iz("appad"),this.GI);this.events.N(this.Wa,g.Jz("appad"),this.GI);this.events.N(this.Wa,g.Jz("applooprange"),this.Zx);this.events.N(this.Wa,"presentingplayerstatechange",
this.Tg);this.events.N(this.Wa,"resize",this.GS);this.template.ya(Zf(a));this.events.N(this.Wa,"offlineslatestatechange",this.aS);this.Vb=EEa(this,this.template.element);g.F(this,this.Vb);this.i.Bj&&(this.Z("woffle_orchestration")?this.va=FEa(this):Uwa());this.i.jb&&(g.KN.ux=g.dR);GEa(this);this.J.tick("fs");HEa(this);this.C=null;this.i.jb&&Ksa(this.G);g.XF(this.G.I.T())&&JN(this.G,"music");g.MF(this.G.I.T())&&JN(this.G,"embed");this.Z("web_player_sentinel_is_uniplayer")||g.Ux(Error("Player flag missing: web_player_sentinel_is_uniplayer"));
this.dd=IEa(this);if(a=g.T(this.i.experiments,"html5_block_pip_safari_delay"))this.yb=new g.J(this.iG,a,this),g.F(this,this.yb);this.i.Z("embeds_enable_pem_cookie_blocking_killswitch")||(Ys=this.i.Ga);this.ea()};
IEa=function(a){function b(c){if(c.stack&&-1!==c.stack.indexOf("player"))(a.u||a.l).C.onError("player.exception",g.nE({n:c.name,m:c.message}))}
Xx.subscribe("handleError",b);Rr.push(b);return function(){Xx.unsubscribe("handleError",b);var c=Rr.indexOf(b);-1!==c&&Rr.splice(c,1)}};
FEa=function(a){return new Kwa(a.i,a.Wa,hY(a,9),function(){return a.Je()})};
CEa=function(a){var b=hY(a,1);b.setPlaybackRate(a.i.l?1:JEa(a,KEa()));px(b,a.qb,a);return b};
MEa=function(a,b){qx(a.l,a.qb,a);var c=a.l.getPlaybackRate();a.l.dispose();a.l=b;a.l.setPlaybackRate(c);px(b,a.qb,a);LEa(a)};
BEa=function(a){var b="",c=Txa(a);0===c.indexOf("//")&&(c=a.i.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Ux(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new GN(a.Wa,b);NEa(a,b);return b};
NEa=function(a,b){var c={};c=(c.destroyed=function(){a.i.u&&a.u?a.Wa.Na("onApiChange",a.u.getPlayerType()):a.Wa.Na("onApiChange")},c);
b.u=c};
OEa=function(a,b){var c=a.isVideoInfoVisible();a.U||(a.U=new bU(a.Wa),g.F(a,a.U),g.oN(a.Wa,a.U.element,4));g.wL(a.U,b);iY(a)&&c!==b&&g.kN(a.G).zD();a=a.u;b&&a&&a.Ja("sfn","1",!0)};
jY=function(a){a.B=a.i.deviceHasDisplay?ZS.pop()||new g.TN(g.ng("VIDEO")):new g.TN(g.ng("AUDIO"));g.F(a,a.B);a.u&&dT(a.u,a.B);try{a.i.eb?(a.Ga&&a.events.fc(a.Ga),a.Ga=a.events.N(a.B,"volumechange",a.QR)):(a.B.jr(a.Uf.muted),a.B.setVolume(a.Uf.volume/100))}catch(d){a.re("html5.missingapi","UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.ox(a.xa);PEa(a);var b=a.template;b.Eb=a.B.ue();b.Kw=!1;b.Eb.parentNode||g.qg(b.Fs,b.Eb,0);b.Mx=new g.pl(0,0,0,0);Xxa(b);
UT(b);g.K(b.Eb,"video-stream");g.K(b.Eb,g.ST.MAIN_VIDEO);var c=b.app.T();c.mf&&b.Eb.setAttribute("data-no-fullscreen","true");c.Ai&&(b.Eb.setAttribute("webkit-playsinline",""),b.Eb.setAttribute("playsinline",""));c.Ok&&b.Eb&&b.N(b.Eb,"click",b.Eb.play,b.Eb);try{a.B.fq()}catch(d){a.re("html5.missingapi","UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
nY=function(a,b){if(a.u!==b){a.ea("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.u&&(c=a.u.getPlayerState(),a.ea(),MN(a.G,3),kY(a,"cuerangesremoved",a.u.Bm()),a.Da&&!b.isGapless()&&a.u.isGapless()&&a.B&&a.B.stopVideo(),QEa(a));lY(a,b);a.u=b;a.B&&dT(b,a.B);px(b,a.bd,a);b.G.B?mY(a,"setPresenting",!1,!0):(a.kb("newdata",b,b.getVideoData()),c&&!g.GK(c,b.getPlayerState())&&a.AJ(new g.SI(b.getPlayerState(),c)),b.ma.isFinished()&&a.kb("dataloaded",
b,b.getVideoData()),(c=(c=b.getVideoData().l)&&c.video)&&a.Wa.Na("onPlaybackQualityChange",c.quality),kY(a,"cuerangesadded",a.u.Bm()),c=b.getPlayerState(),g.U(c,2)?REa(a):g.U(c,8)&&b.playVideo(),a.ea())}};
REa=function(a){if(!SEa(a)){var b=a.l.md();b&&(b=b.Ns(),b instanceof Promise&&b.catch(function(){}));
oY(a,KK(a.sb()))}};
PEa=function(a){var b=a.B;bE()?a.xa.N(b,"webkitpresentationmodechanged",a.PS):aE()&&(a.xa.N(b,"enterpictureinpicture",function(){a.lr(!0)}),a.xa.N(b,"leavepictureinpicture",function(){a.lr(!1)}));
TF&&(a.xa.N(b,"webkitbeginfullscreen",function(){a.ji(3)}),a.xa.N(b,"webkitendfullscreen",function(){a.ji(0)}))};
lY=function(a,b){if(b!==a.l){var c=b.getPlayerType();a.Ob[c]=b}};
QEa=function(a){a.ea();var b;if(b=a.ma)b=a.B,b=!!b&&b===a.ma.l;b&&(a.yg(),jY(a));a.u&&(a.u.yg(),qx(a.u,a.bd,a));a.u=null;a.ea()};
g.W=function(a,b){return b?1===b?a.l:a.getVideoData().enableServerStitchedDai&&2===b?a.u:a.Ob[b]||null:a.u};
hY=function(a,b){var c=a.J;2===b&&(c=new rN(a.i));return new g.HX(a.i,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.Il.W.apply(a.Il,[d].concat(g.ma(f)))},function(){return a.Wa.getVisibilityState()},a.visibility)};
pY=function(a,b){return a.Md(b)?a.l:b};
qY=function(a,b){var c=a.u;return c&&b===a.l&&a.Md(b)&&a.Md(c)?c:b};
TEa=function(a){a.ea();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.G;d.yG();JN(d,"attribution",void 0,!1,!0);JN(d,"embed");JN(d,"inline_preview");JN(d,"kids");JN(d,"remote");JN(d,"miniplayer");JN(d,"music");JN(d,"captions",void 0,!0);JN(d,"unplugged");JN(d,"ypc",void 0,!1,!0);JN(d,"ypc_clickwrap",void 0,!1,!0);JN(d,"yto",void 0,!1,!0);JN(d,"webgl",void 0,!1,!0);d.B&&c?d.I.Ad("endscreen"):JN(d,"endscreen");d.B&&c?(d.I.Ad("annotations_module"),d.I.Ad("creatorendscreen")):(d.HA(),JN(d,"creatorendscreen",
void 0,!0));d.zG();Jsa(d);c&&YH(b)?a.Kb.N(a.Wa,"presentingplayerstatechange",a.jS):Isa(a.G);a.Wa.W("videoready",b)};
rY=function(a){return a.l.getVideoData()};
sY=function(a){a=rY(a);a.isValid();return YH(a)};
GEa=function(a){var b=new g.rH(a.i,a.config.args);g.az()&&b.Y.push("remote");b.isValid()&&(a.l.ni(b,function(){return a.Je()}),a.Z("html5_androidtv_quic")&&(b=window,"h5vcc"in b&&"settings"in b.h5vcc&&b.h5vcc.settings.set("QUIC",1)),!g.S(a.i.experiments,"html5_delay_initial_loading")&&sY(a)&&(a.i.uf||a.i.xc)&&VS(a.l))};
HEa=function(a){a.ea();a.KA();var b=a.config.args;jY(a);var c=rY(a);a.Wa.Na("onVolumeChange",a.Uf);if(b&&uN(b)){var d=zG(a.i);d&&!a.Xf&&(b.fetch=0);var e=g.MF(a.i);e&&!a.Xf&&(b.fetch=0);tY(a,b);g.MF(a.i)&&a.J.tick("ep_pr_s");if(d&&!a.Xf)uY(a);else if(e&&!a.Xf)vY(a);else if(!c.isValid())a.playlist.onReady(function(){wY(a)})}nY(a,a.l);
g.U(a.l.getPlayerState(),128)||(b=Jja(a.i.deviceHasDisplay),"fmt.noneavailable"===b?a.re("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.re(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&sY(a)&&(a.i.uf||a.i.xc)?xY(a):UEa()?(g.Bv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.i.Y}),VEa(!1),xY(a)):KG(a.i)||WEa(a),g.BG(a.i)?(bu(eu(),function(){yY(a)}),bu(eu(),function(){Fra()})):(yY(a),Fra()),a.ea())};
yY=function(a){var b=a.getVideoData().botguardData;if(b){var c=a.getVideoData().Ea||"";a=a.i.cspNonce;c=c?"c1b"in Yr(c):!1;b.program&&(WM.l?0:!XM||72E5<(0,g.P)()-XM)&&(JA("bg_i","player_att"),WM.initialize(b,Pra,a,c))}};
WEa=function(a){a.ea();a.Wa.W("initializingmode");a.xk(2);JN(a.G,"remote");g.S(a.i.experiments,"player_cued_miniplayer_module_killswitch")||JN(a.G,"miniplayer");a.ea()};
xY=function(a){a.ea();if(g.U(a.l.getPlayerState(),128))return!1;sY(a)&&a.i.xc&&(ZS.length&&a.Rt?(cN(a,{muted:!1,volume:a.Uf.volume},!1),zY(a,!1)):ZS.length||a.Uf.muted||(cN(a,{muted:!0,volume:a.Uf.volume},!1),zY(a,!0)));var b=a.l.getVideoData();b.LF&&cN(a,{muted:!0,volume:a.Uf.volume},!1);AY(a,1,b,!1);a.Wa.W("initializingmode");nY(a,a.l);a.xk(3);if(!(b=!a.i.Gi)){if(b=a.ma)b=a.B,b=!!b&&b===a.ma.l;b=b&&a.wc}b&&(a.yg(),jY(a),dT(a.l,a.B));UX(a.l);if(g.U(a.l.getPlayerState(),128))return!1;oY(a,3);return a.wc=
!0};
iY=function(a){a=g.kN(a.G);return!!a&&a.loaded};
XEa=function(a,b){if(!a.K)return!1;var c=.001*a.K.startTimeMs-1;a=.001*a.K.endTimeMs;return Pf(b,c)||Pf(b,a)||b>=c&&b<=a};
JEa=function(a,b){var c=a.Wa.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};
BY=function(a,b,c){if(a.Md(c)){c=c.getVideoData();if(a.C)c=b;else{a=a.X;for(var d=g.q(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.Wc===e.Wc){b+=e.Ic/1E3;break}d=b;a=g.q(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Wc===e.Wc)break;var f=e.Ic/1E3;if(f<b)d+=e.durationMs/1E3+f-e.pd/1E3;else break}c=d}return c}return b};
YEa=function(a,b){var c;return 3===a.getPresentingPlayerType()?KK(g.kN(a.G).hd):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.C)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.bb:-1:2!==b||a.Md()?a.bb:a.wb};
LEa=function(a){a.ea();CY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.jb={};var b=a.J;if(b.i){var c=b.i;c.i={};c.Gs={}}b.l=!1;a.C?(b=a.C,a=a.l,a.getPlayerType(),b.ea(),tT(b,!1),vT(b),b.i=a):(b=a.X,a=a.l,1!==a.getPlayerType()&&b.wd("e.invalidParentVideoPlayerType"),b.ea(),ET(b,!1),HT(b),b.l=a)};
uY=function(a){var b=ZEa();if(b)if(!b.list)a.zv();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Wa.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==a.playlist.fb().videoId||(b.index=a.playlist.index));wN(a.playlist,b);a.Ua&&DY(a,a.Ua)}else a.Ua=null};
vY=function(a,b){var c=(b?b:rY(a)).pI;a.J.tick("ep_pr_r");if(null!=c&&(wN(a.playlist,c),a.Nb))a.playlist.onReady(function(){wY(a,b)})};
tY=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.zv,a),g.ef(a.playlist),a.playlist=null);b&&(a.Xf&&(b.fetch=0),a.playlist=new g.tN(a.i,b),a.playlist.subscribe("error",a.zv,a))};
EY=function(a,b,c,d){b in a.jb||(c=new g.Fz(c,d,{id:b,priority:1,namespace:"appad"}),a.l.addCueRange(c),a.jb[b]=c)};
cFa=function(a,b){if(!(b in a))return!1;a=a[b];Array.isArray(a)||(a=[a]);a.forEach(function(c){var d=void 0===d?!1:d;if(!(d=tz(vz(c,$Ea,null),c,d,"Active View 3rd Party Integration URL"))){var e=void 0===e?!1:e;d=tz(vz(c,aFa,null),c,e,"Google/YouTube Brand Lift URL")}if(!(e=d)){var f=void 0===f?!1:f;e=tz(vz(c,bFa,null),c,f,"Nielsen OCR URL")}g.ou(c,void 0,e)});
return!0};
oY=function(a,b){a.ea();if(a.u){var c=a.u.getPlayerType();if(2===c&&!a.Md()){a.wb!==b&&(a.wb=b,a.Wa.Na("onAdStateChange",b));return}if(2===c&&a.Md()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.bb!==b&&(a.bb=b,a.Wa.Na("onStateChange",b))};
dFa=function(a,b,c,d){d=void 0===d?Infinity:d;a.ea();c=c||a.u.getPlayerType();var e;g.S(a.i.experiments,"html5_gapless_preloading")&&(e=AY(a,c,b,!0));e||(e=hY(a,c),e.ni(b,function(){return a.Je()}));
a.Zv(e,d)};
eFa=function(a,b,c,d){var e=FY(c,b.videoId,b.Wc);a.ea();b.Kb=!0;var f=a.u&&e===FY(a.u.getPlayerType(),a.u.getVideoData().videoId,a.u.getVideoData().Wc)?a.u:hY(a,c);f.ni(b,function(){return a.Je()});
1===c&&DG(a.i)||VS(f,!0);a.Pa.set(e,f,d||3600)};
FY=function(a,b,c){return a+"_"+b+"_"+c};
AY=function(a,b,c,d){if(!f){var e=FY(b,c.videoId,c.Wc);var f=a.Pa.get(e);if(!f)return null;a.Pa.remove(e);if(g.U(f.getPlayerState(),128))return f.dispose(),null}if(f===g.W(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.Pv(f);return f};
GY=function(a,b,c){c=g.W(a,c);b&&c===a.l&&(c.getVideoData().Id=!0)};
HY=function(a,b,c){a.ea();var d=g.W(a,c);d&&(a.cancelPlayback(4,c),d.ni(b,function(){return a.Je()}),2===c&&a.l&&hCa(a.l.C,b.clientPlaybackNonce,b.Tc||"",b.breakType||0),d===a.l&&(a.xk(1),WEa(a)));
a.ea()};
fFa=function(a,b,c,d,e){b=Xra(b,c,d,e);(c=g.MF(a.i)&&!a.i.K)&&!a.Xf&&(b.fetch=0);tY(a,b);g.MF(a.i)&&a.J.tick("ep_a_pr_s");if(c&&!a.Xf)c=rY(a),wsa(c,b).then(function(f){a.Nb=!0;vY(a,f)});
else a.playlist.onReady(function(){wY(a)});
g.MF(a.i)&&a.J.tick("ep_a_pr_r")};
wY=function(a,b){var c=g.MF(a.i)&&!a.i.K,d=c&&b?b:a.playlist.fb();b=c&&b?b:a.getVideoData();d&&(b.pk&&(a.i.uf||a.i.xc)||!a.Ea?(b=b.Id,d=a.Tm(d,1),b&&GY(a,d)):HY(a,d));g.MF(a.i)&&a.J.tick("ep_p_l");a.Nb=!1;a.Wa.Na("onPlaylistUpdate")};
SEa=function(a){if(a.playlist&&g.SF(a.i)&&a.Us()){var b=g.S(a.i.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
DY=function(a,b){var c=g.Ia(b);c?((b=ZEa())&&b.list&&c(),a.Ua=null):a.Ua=b};
ZEa=function(){var a=g.Ia("yt.www.watch.lists.getState");return a?a():null};
gFa=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=Ez.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=Ez.AD_MARKER:(b.style=Ez.TIME_MARKER,b.color=e),b.visible=!0);a.qs([new g.Fz(1E3*c,1E3*d,b)],1);return!0};
hFa=function(a){var b=(0,g.P)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
cN=function(a,b,c){a.i.X&&(a.Uf=b,b.muted||zY(a,!1),c&&a.i.tf&&!a.i.eb&&iFa({volume:Math.floor(b.volume),muted:b.muted}),jFa(a),c=g.aj&&a.B&&!a.B.vf(),!a.i.eb||c)&&(b=g.Vb(b),a.i.tf||(b.unstorable=!0),a.Wa.Na("onVolumeChange",b))};
jFa=function(a){var b=a.getVideoData();if(!b.nf){b=a.i.eb?1:$ma(b);var c=a.B;c.jr(a.Uf.muted);try{c.setVolume(a.Uf.volume*b/100)}catch(d){g.Ux(new g.Gv("b183742307","multiplier: "+b+", volume: "+a.Uf.volume))}}};
zY=function(a,b){b!==a.Rt&&(a.Rt=b,a.Wa.Na("onMutedAutoplayChange",b))};
IY=function(a){var b=jx(!0);return b&&(b===a.template.element||a.B&&b===a.B.ue())?b:null};
lFa=function(a,b){var c=window.screen&&window.screen.orientation;if((g.S(a.i.experiments,"lock_fullscreen2")||a.i.J)&&c&&c.lock&&(!g.aj||!kFa))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.La||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](g.Ja);a.La=!0}}else a.La&&(a.La=!1,c.unlock())};
kY=function(a,b,c){a.Wa.W(b,c);var d=g.bG(a.i)||g.UF(a.i)||g.VF(a.i);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Wa.Na(e,c)}};
JY=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.W(a,e);if(!h||(2!==h.getPlayerType()||a.Md(h)||f)&&!g.OH(h.getVideoData()))3===a.getPresentingPlayerType()?g.kN(a.G).fk("control_seek",b,c):(h===a.l&&a.K&&!XEa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
mY=function(a,b,c,d){if(!a.eb){c&&(a.yg(),jY(a));a.Z("html5_signature_reload_refactor")||(a.eb=!0);c=g.W(a);c.G.G=!0;c.wz("staleconfig",{reason:b});var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;a.Z("propagate_aqi_on_player_reload")&&e.adQueryId&&(f.ad_query_id=e.adQueryId);e.isLivePlayback?GH(e)&&g.EG(a.i)&&(f.live_utc_start=c.getIngestionTime(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.xa&&(f.vvt=e.xa);e.Va&&(f.vss_credentials_token=e.Va,f.vss_credentials_token_type=
e.Gh);e.oauthToken&&(f.oauth_token=e.oauthToken);e.tf&&(f.force_gvi=e.tf);f.autoplay=1;f.reload_count=e.jb+1;f.reload_reason=b;e.Uz&&(f.unplugged_partner_opt_out=e.Uz);e.Vb&&(f.ypc_is_premiere_trailer=e.Vb);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d)}};
nFa=function(a,b){rY(a).autonavState=b;mFa(b);a.Wa.W("autonavchange",b)};
oFa=function(a){var b=a.getVideoData().nf,c=a.i.yb,d=a.B;b||c?d.MA():(d.NA(),cN(a,a.Uf))};
EEa=function(a,b){return g.S(a.i.experiments,"html5_enable_embedded_player_visibility_signals")&&g.MF(a.i)?new RT(b,a.i.Z("embeds_enable_intersection_observer_v2")):null};
CY=function(a){var b=NN(a.rb());b&&b.created&&(a.ea(),b.destroy())};
pFa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.q(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Dl(a,d);b.hidden=!!a.hidden};
DEa=function(a){var b=a.i,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;g.S(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.cj&&d&&b.l?rt()||b.Ga?(g.Bv("embedsStorageAccessNotChecked",{isIosWebview:rt(),isPemPlayer:b.Ga}),a.Ya=!1):c.hasStorageAccess().then(function(e){g.Bv("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Ya=!e},function(e){g.Bv("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Ux(Error("Embeds ITP Error: "+e));a.Ya=!1}):a.Ya=!1};
KY=function(a,b){var c=void 0;g.bG(a.i)&&fs(b)&&es(b)&&(a=a.getVideoData().Ve())&&(c={Authorization:"Bearer "+a});g.ou(b,void 0,void 0,c)};
LY=function(a,b){b.forEach(function(c){KY(a,c)})};
Txa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
qFa=function(a){var b;a=null===(b=dN(a.rb()))||void 0===b?void 0:b.Vs();if(!(a instanceof g.oO))return null;a=a.oH();return(null===a||void 0===a?void 0:a.K)||null};
MY=function(a){this.controller=a};
NY=function(a){this.FA=a};
OY=function(a,b,c){this.FA=a;this.Pg=b;this.Xh=c};
rFa=function(a,b,c){var d=a.FA();switch(b.type){case "SKIP":jqa(d,a.Pg,a.Xh,c)}};
PY=function(){};
QY=function(){};
RY=function(){};
SY=function(a,b){this.Qn=a;this.Xa=b};
TY=function(a){this.I=a};
UY=function(a,b){this.ij=a;this.Xa=b};
tFa=function(a){g.E.call(this);this.i=a;this.DM=sFa(this)};
sFa=function(a){var b=new kL(a.i.Cc);g.F(a,b);a=g.q([new MY(a.i.VN),new SY(a.i.Qn,a.i.Xa),new TY(a.i.I),new UY(a.i.ij,a.i.Xa),new OY(a.i.mQ,a.i.Pg,a.i.Xh),new NY(a.i.iO),new QY,new RY,new PY]);for(var c=a.next();!c.done;c=a.next())c=c.value,bqa(b,c),cqa(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())iL(b,c.value,function(){});
return b};
VY=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Ia.i.has(c.value))return!1;return!0};
uFa=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}};
WY=function(a){var b=new Map;a.forEach(function(c){b.set(c.Tb(),c)});
this.i=b};
X=function(a,b){a=a.i.get(b);if(void 0!==a)return a.get()};
XY=function(a){return Array.from(a.i.keys())};
wFa=function(a){var b;return(null===(b=vFa.get(a))||void 0===b?void 0:b.wr)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
ZY=function(a,b){var c={type:b.ob,controlFlowManagerLayer:xFa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Wb&&(c.entryTriggerType=b.Wb.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Wb)c.debugData.slotEntryTriggerData=YY(a);a=b.uc;c.debugData.fulfillmentTriggerData=[];a=g.q(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(YY(d.value));b=b.pc;c.debugData.expirationTriggerData=
[];b=g.q(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(YY(a.value))}return c};
yFa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:xFa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
YY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Dg&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Dg);null!=a.le&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.le);return c};
zFa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Oe(d||[],function(e){return ZY(a,e)}),b.debugData=Object.assign(Object.assign({},c&&0<c.length?{associatedSlotId:c}:{}),0<d.length?{slots:d}:{}));
return b};
aZ=function(a,b){return function(c){return AFa($Y(a),b.slotId,b.ob,b.slotPhysicalPosition,b.gb,b.Wb,b.uc,b.pc,c.layoutId,c.layoutType,c.gb)}};
AFa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:ZY(a,{slotId:b,ob:c,slotPhysicalPosition:d,gb:e,Wb:f,uc:h,pc:l,Ia:new WY([])}),layoutData:yFa(a,{layoutId:m,layoutType:n,gb:p,ud:[],Qc:[],Nc:[],Rc:[],Bc:new Map,Ia:new WY([]),zc:{}})}}};
bZ=function(a){this.Qa=a;this.i=.1>Math.random()};
$Y=function(a){var b;(b=a.i)||(a=a.Qa.get(),b=g.S(a.I.T().experiments,"html5_force_debug_data_for_client_tmp_logs")||g.S(a.I.T().experiments,"html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
cZ=function(a,b,c,d){g.E.call(this);this.Ed=b;this.Zb=c;this.Qa=d;this.i=a(this,this,this,this,this);g.F(this,this.i);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.F(this,b.value)};
dZ=function(a,b){a.Ed.add(b);g.F(a,b)};
qoa=function(a,b){mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.q(a.Ed);for(var c=a.next();!c.done;c=a.next())c.value.yh(b)};
roa=function(a,b){mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.q(a.Ed);for(var c=a.next();!c.done;c=a.next())c.value.Bf(b)};
Ina=function(a,b){mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.q(a.Ed);for(var c=a.next();!c.done;c=a.next())c.value.Cf(b)};
fZ=function(a,b,c){R(c,b,void 0,void 0,c.Rn);eZ(a,b,!0)};
DFa=function(a,b,c){if(gZ(a.i,b))if(hZ(a.i,b).B=c?"filled":"not_filled",null===c){iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.Ed);for(var d=c.next();!d.done;d=c.next())d.value.jk(b);eZ(a,b,!1)}else{iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.Ed);for(d=e.next();!d.done;d=e.next())d.value.lk(b);if(!BFa(a.Qa.get())||gZ(a.i,b))if(hZ(a.i,b).C)eZ(a,b,!1);else{iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!hZ(f,b))throw new jZ("Unknown slotState for onLayout");
if(!f.zd.yl.get(b.ob))throw new jZ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.ob);if(0==c.ud.length&&0==c.Qc.length&&0==c.Nc.length&&0==c.Rc.length)throw new jZ("Layout has no exit triggers.");kZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.ud);kZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);kZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Nc);kZ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc)}catch(n){a.cf(b,c,n);eZ(a,b,!0);return}hZ(a.i,b).G=!0;try{var h=
a.i,l=hZ(h,b),m=h.zd.yl.get(b.ob).get().He(h.B,h.l,b,c);m.init();l.layout=c;if(l.u)throw new jZ("Already had LayoutRenderingAdapter registered for slot");l.u=m;lZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.ud);lZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);lZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Nc);lZ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc)}catch(n){mZ(a,b,!0);eZ(a,b,!0);a.cf(b,c,n);return}iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.Ed);
for(d=e.next();!d.done;d=e.next())d.value.dj(b,c);mZ(a,b,!1);CFa(a,b)}}};
nZ=function(a,b,c){iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.Ed);for(var d=a.next();!d.done;d=a.next())d.value.dj(b,c)};
oZ=function(a,b,c){iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.Ed);for(var d=a.next();!d.done;d=a.next())d.value.Hc(b,c)};
lK=function(a,b,c,d){iZ(a.Zb,wFa(d),b,c);a=g.q(a.Ed);for(var e=a.next();!e.done;e=a.next())e.value.Oc(b,c,d)};
mZ=function(a,b,c){if(gZ(a.i,b)&&(hZ(a.i,b).G=!1,!BFa(a.Qa.get())||!c)){c=pZ;b=hZ(a.i,b);var d=[].concat(g.ma(b.K));lb(b.K);c(a,d)}};
pZ=function(a,b){b.sort(function(f,h){function l(m){R("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):uFa(f.category,l)-uFa(h.category,l)});
var c=new Map;b=g.q(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,gZ(a.i,d.slot))if(hZ(a.i,d.slot).G)hZ(a.i,d.slot).K.push(d);else{EFa(a.Zb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.q(FFa);for(d=b.next();!d.done;d=b.next())e=g.q(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&GFa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&HFa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&IFa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
JFa(a,c)};
GFa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&qZ(a.i,d.slot)&&KFa(a,d.slot,d.layout,c)};
HFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next())eZ(a,c.value.slot,!1)};
IFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(hZ(a.i,c.slot).B){case "not_filled":var d=!0;break a;default:d=!1}d&&(mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.Qs(c.slot))}};
JFa=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.q(a.Ed),e=d.next();!e.done;e=d.next())e.value.gj(c.slot);try{var f=a.i,h=c.slot,l=hZ(f,h);if(!l)throw new rZ("Got enter request for unknown slot");if(!l.l)throw new rZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new rZ("Tried to enter a slot from stage: "+l.i);if(sZ(l))throw new rZ("Got enter request for already active slot");
for(var m=g.q(tZ(f,h.ob+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&sZ(p))throw new rZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(r){R(r,c.slot,uZ(a.i,c.slot),void 0,r.Rn);eZ(a,c.slot,!0);continue}c=hZ(a.i,c.slot);"scheduled"!==c.i&&vZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.l.RA()}};
CFa=function(a,b){var c;gZ(a.i,b)&&sZ(hZ(a.i,b))&&uZ(a.i,b)&&!qZ(a.i,b)&&(iZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=uZ(a.i,b))&&void 0!==c?c:void 0),a=hZ(a.i,b),"entered"!==a.i&&vZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.u.startRendering(a.layout))};
KFa=function(a,b,c,d){if(gZ(a.i,b)){var e=a.Zb,f;var h=(null===(f=vFa.get(d))||void 0===f?void 0:f.er)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";iZ(e,h,b,c);a=hZ(a.i,b);"rendering"!==a.i&&vZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.u.Pe(c,d)}};
eZ=function(a,b,c){if(gZ(a.i,b)){a:switch(hZ(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(hZ(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(hZ(a.i,b).C=!0,!c))return;if(sZ(hZ(a.i,b)))hZ(a.i,b).C=!0,LFa(a,b,c);else{a:switch(hZ(a.i,b).B){case "fill_requested":c=!0;break a;default:c=!1}if(c)hZ(a.i,b).C=!0,gZ(a.i,b)&&(mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=hZ(a.i,b),b.B="fill_cancel_requested",b.J.rA());else{c=
uZ(a.i,b);mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=hZ(a.i,b);var e=b.Wb,f=d.ma.get(e.triggerId);f&&(f.Di(e),d.ma.delete(e.triggerId));e=g.q(b.uc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.Y.get(f.triggerId);h&&(h.Di(f),d.Y.delete(f.triggerId))}e=g.q(b.pc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.U.get(f.triggerId))h.Di(f),d.U.delete(f.triggerId);null!=d.layout&&(e=d.layout,wZ(d,e.ud),wZ(d,e.Qc),wZ(d,e.Nc),wZ(d,e.Rc));d.J=void 0;null!=d.l&&(d.l.release(),
d.l=void 0);null!=d.u&&(d.u.release(),d.u=void 0);d=a.i;hZ(d,b)&&(d=tZ(d,b.ob+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.Ed);for(d=a.next();!d.done;d=a.next())d=d.value,d.hj(b),c&&d.gk(b,c)}}}};
LFa=function(a,b,c){if(gZ(a.i,b)&&sZ(hZ(a.i,b))){var d=uZ(a.i,b);if(d&&qZ(a.i,b))KFa(a,b,d,c?"error":"abandoned");else{mK(a.Zb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=hZ(a.i,b);if(!e)throw new rZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&vZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.l)throw e.i="scheduled",new rZ("Cannot exit slot because adapter is not defined");e.l.WA()}catch(f){R(f,b,void 0,void 0,f.Rn)}}}};
MFa=function(a){this.slot=a;this.ma=new Map;this.Y=new Map;this.U=new Map;this.X=new Map;this.u=this.layout=this.l=this.J=void 0;this.G=this.C=!1;this.K=[];this.i="not_scheduled";this.B="not_filled"};
sZ=function(a){return"enter_requested"===a.i||a.isActive()};
jZ=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.Rn=c;this.args=[];b&&this.args.push(b)};
rZ=function(a,b,c){c=void 0===c?!1:c;Va.call(this,a);this.Rn=c;this.args=[];b&&this.args.push(b)};
xZ=function(a,b,c,d,e){g.E.call(this);this.zd=a;this.u=b;this.C=c;this.B=d;this.l=e;this.i=new Map};
tZ=function(a,b){return(a=a.i.get(b))?a:new Map};
hZ=function(a,b){return tZ(a,b.ob+"_"+b.slotPhysicalPosition).get(b.slotId)};
NFa=function(a){var b=[];a.i.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
gZ=function(a,b){return null!=hZ(a,b)};
qZ=function(a,b){a=hZ(a,b);if(b=null!=a.layout)a:switch(a.i){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
uZ=function(a,b){a=hZ(a,b);return null!=a.layout?a.layout:null};
yZ=function(a,b,c){if(0==c.length)throw new rZ("No "+OFa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.zd.Dh.get(d.triggerType))throw new rZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
kZ=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.zd.Dh.get(d.triggerType))throw new jZ("No trigger adapter registered for "+OFa.get(b)+" trigger of type: "+d.triggerType);};
lZ=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.zd.Dh.get(e.triggerType);f.di(c,e,b.slot,b.layout?b.layout:null);b.X.set(e.triggerId,f)}};
wZ=function(a,b){b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.X.get(c.triggerId);d&&(d.Di(c),a.X.delete(c.triggerId))}};
vZ=function(a,b,c){R("Slot stage was "+b+" when calling method "+c,a)};
PFa=function(a){return zZ(a.hp).concat(zZ(a.Dh)).concat(zZ(a.il)).concat(zZ(a.Ol)).concat(zZ(a.yl))};
zZ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Ui&&b.push(c);return b};
AZ=function(a){g.E.call(this);this.i=a;this.l=QFa(this)};
QFa=function(a){var b=new cZ(function(c,d,e,f){return new xZ(a.i.zd,c,d,e,f)},new Set(PFa(a.i.zd).concat(a.i.listeners)),a.i.Zb,a.i.Qa);
g.F(a,b);return b};
BZ=function(a){g.E.call(this);var b=this;this.l=a;this.i=null;g.gf(this,function(){g.ef(b.i);b.i=null})};
Y=function(a){return new BZ(a)};
RFa=function(a){var b,c=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
SFa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
VFa=function(a,b,c,d,e,f,h){b=TFa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof rZ?b:UFa(a,d,e,b,c);return a instanceof rZ?a:[a]};
WFa=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)};
$Fa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,CZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return XFa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={Op:b.Op},h=f.next()){b.Op=h.value;h={};for(var l=g.q(b.Op.hA),m=l.next();!m.done;h={Tl:h.Tl},m=l.next())h.Tl=m.value,m=function(n,p){return function(r){return n.Tl.AG(r,p.Op.instreamVideoAdRenderer.elementId,n.Tl.SF)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Tl.gq?a.push(YFa(c,d,h.Tl.TF,e,b.Op.instreamVideoAdRenderer.elementId,h.Tl.adSlotLoggingData,m)):a.push(ZFa(c,d,e,b.Op.instreamVideoAdRenderer.elementId,h.Tl.adSlotLoggingData,m))}return a};
CZ=function(a,b,c){if(b=aGa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=bGa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Nw=c)}else R("InstreamVideoAdRenderer without externalVideoId")}};
aGa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.q(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null};
XFa=function(a){if(void 0===a.instreamVideoAdRenderer)return R("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.hA),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.AG)return!1;if(void 0===c.SF)return R("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Nw||void 0===c.gq||a.Nw!==c.gq&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.gq)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return R("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Nw,"matching APSR kind":c.gq}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.gq&&void 0===c.TF)return R("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
bGa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Nw:void 0,adVideoId:b,hA:[]});return a.get(b)};
DZ=function(a,b,c,d,e,f,h){d?bGa(a,d).hA.push({TF:b,gq:c,SF:e,adSlotLoggingData:f,AG:h}):R("Companion AdPlacementSupportedRenderer without adVideoId")};
EZ=function(a){var b,c=0;a=g.q(a.questions);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d=d.instreamSurveyAdMultiSelectQuestionRenderer||d.instreamSurveyAdSingleSelectQuestionRenderer)c+=(null===(b=d.surveyAdQuestionCommon)||void 0===b?void 0:b.durationMilliseconds)||0;return c};
FZ=function(a){var b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I,M,L,da=(null===(c=null===(b=a.questions)||void 0===b?void 0:b[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon)||(null===(e=null===(d=a.questions)||void 0===d?void 0:d[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===e?void 0:e.surveyAdQuestionCommon);da=[].concat(g.ma((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.ma((null===da||void 0===da?void 0:
da.timeoutCommands)||[]));return{impressionCommands:null===(h=a.playbackCommands)||void 0===h?void 0:h.impressionCommands,errorCommands:null===(l=a.playbackCommands)||void 0===l?void 0:l.errorCommands,muteCommands:null===(m=a.playbackCommands)||void 0===m?void 0:m.muteCommands,unmuteCommands:null===(n=a.playbackCommands)||void 0===n?void 0:n.unmuteCommands,pauseCommands:null===(p=a.playbackCommands)||void 0===p?void 0:p.pauseCommands,rewindCommands:null===(r=a.playbackCommands)||void 0===r?void 0:
r.rewindCommands,resumeCommands:null===(t=a.playbackCommands)||void 0===t?void 0:t.resumeCommands,skipCommands:null===(u=a.playbackCommands)||void 0===u?void 0:u.skipCommands,progressCommands:null===(x=a.playbackCommands)||void 0===x?void 0:x.progressCommands,A7:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(B=a.playbackCommands)||void 0===B?void 0:B.fullscreenCommands,activeViewViewableCommands:null===(G=a.playbackCommands)||void 0===G?void 0:G.activeViewViewableCommands,
activeViewMeasurableCommands:null===(H=a.playbackCommands)||void 0===H?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(I=a.playbackCommands)||void 0===I?void 0:I.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(M=a.playbackCommands)||void 0===M?void 0:M.endFullscreenCommands,abandonCommands:null===(L=a.playbackCommands)||void 0===L?void 0:L.abandonCommands,completeCommands:da}};
dGa=function(a,b,c,d,e,f,h){return function(l,m){return cGa(a,m.slotId,l,f,function(n,p){n=h(n);return GZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new zJ(c),d],c.adLayoutLoggingData)})}};
gGa=function(a,b,c,d,e,f,h){if(!eGa(a))return new rZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[fGa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=HZ(e.l.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},r=new IZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Bc:new Map,ud:[r],Qc:[],
Nc:[],Rc:[],gb:"core",Ia:new WY([new AJ(l)]),zc:n(p)}})]};
eGa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
jGa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!$na(a))return function(){return new rZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=EZ(h);return 0>=l?function(){return new rZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=hGa(m,c,d,function(r){var t=n(r),u=r.slotId;
r=FZ(h);u=HZ(e.l.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new IZ(e.i,d),B=new JZ(e.i,u),G=new KZ(e.i,u),H=new iGa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Bc:new Map,ud:[y,H],Qc:[B],Nc:[],Rc:[G],gb:"core",Ia:new WY([new yJ(h),new qJ(b),new XJ(l/1E3),new $J(r)]),zc:t(x),adLayoutLoggingData:h.adLayoutLoggingData}});
m=gGa(a,c,p.slotId,d,e,m,n);return m instanceof rZ?m:[p].concat(g.ma(m))}};
mGa=function(a,b,c,d,e){var f=[];try{var h=[],l=kGa(a,d,function(t){t=lGa(t.slotId,c,b,e(t),d);h=t.yU;return t.rO});
f.push(l);for(var m=g.q(h),n=m.next();!n.done;n=m.next()){var p=n.value,r=p(a,e);if(r instanceof rZ)return r;f.push.apply(f,g.ma(r))}}catch(t){return new rZ(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
lGa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=f.adTimeOffset||{},l=h.offsetEndMilliseconds;h=Number(h.offsetStartMilliseconds);if(isNaN(h))throw new TypeError("Expected valid start offset");var m=Number(l);if(isNaN(m))throw new TypeError("Expected valid end offset");l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===l||void 0===l||!l.length)throw new TypeError("Expected linear ads");var n=[],p={uK:h,vK:0,vU:n};l=l.map(function(t){return nGa(a,t,p,c,d,f,e,m)}).map(function(t,
u){u=new iI(u,n,m);
return t(u)});
var r=l.map(function(t){return t.sO});
return{rO:oGa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),pGa(b),d,m),yU:l.map(function(t){return t.xU})}};
nGa=function(a,b,c,d,e,f,h,l){var m=b.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=Yr(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=qGa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.uK,t=c.vK,u=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(u)?b:Math.min(b,
u/1E3),y=Math.min(r+1E3*x,l);c.uK=y;c.vK++;c.vU.push(x);var B=m.pings?jI(m.pings):new Map;c=m.playerOverlay||{};var G=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(H){2<=H.l&&(n.slot_pos=H.i);n.autoplay="1";var I=m.adLayoutLoggingData,M=m.sodarExtensionData,L=HZ(d.l.get(),"LAYOUT_TYPE_MEDIA",a),da={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};H={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Bc:B,ud:[],Qc:[],Nc:[],Rc:[],gb:"adapter",Ia:new WY([new uJ(h),
new JJ(x),new KJ(n),new MJ(r),new NJ(y),new OJ(t),new FJ({current:null}),G&&new vJ(G),new qJ(f),new sJ(p),new rJ(H),M&&new LJ(M)].filter(rGa)),zc:e(da),adLayoutLoggingData:I};I=jGa(m,f,h,H.layoutId,d);return{sO:H,xU:I}}};
qGa=function(a,b){if(a=a.video_id)return a;if(b=b.externalVideoId)return b};
pGa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
tGa=function(a,b,c,d,e,f,h,l){a=sGa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=HZ(b.l.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Bc:r,ud:[new LZ(b.i,n)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([new RJ(e),new qJ(c)]),zc:m(p)}});
return a instanceof rZ?a:[a]};
vGa=function(a,b,c,d,e,f,h,l){a=uGa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var r=e.contentSupportedRenderer;r?r.textOverlayAdContentRenderer?(r=HZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=MZ(b,r,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,NZ(b,n,p))):r.enhancedTextOverlayAdContentRenderer?(r=HZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=MZ(b,r,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,NZ(b,n,p))):r.imageOverlayAdContentRenderer?(r=HZ(b.l.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=NZ(b,n,p),n.push(new OZ(b.i,r)),n=MZ(b,r,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new jZ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new jZ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof rZ?a:[a]};
yGa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new rZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return wGa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(m),function(n){return xGa(a,n,e,function(p,r){var t=p.slotId;p=h(p);t=HZ(b.l.get(),"LAYOUT_TYPE_ENDCAP",t);return GZ(b,
t,r,c,p,"LAYOUT_TYPE_ENDCAP",[new wJ(d)])})},d.adLayoutLoggingData,f)}};
zGa=function(a,b,c,d){if(!c.playerVars)return new rZ("No playerVars available in AdIntroRenderer.");var e=Yr(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=HZ(a.l.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{Ep:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Bc:new Map,ud:[],Qc:[],Nc:[],Rc:[],gb:"adapter",Ia:new WY([new QJ({}),new qJ(b),new FJ({current:null}),new KJ(e)]),zc:f(l)},mq:[new PZ(a.i,h)],jo:[],Tv:[]}}};
BGa=function(a,b,c,d,e,f,h,l){var m=EZ(e);if(!bK(e))return new rZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new rZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=dGa(a,b,e,f,c,d,h);return n instanceof rZ?n:function(p){return AGa(b,p.slotId,c,m,FZ(e),h(p),n,l)}};
CGa=function(a,b,c,d,e,f,h){function l(p){return xGa(a,p,d,m)}
function m(p,r){var t=p.slotId;p=h(p);t=HZ(b.l.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return GZ(b,t,r,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new xJ(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 rZ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
h(p);p=QZ(b,p.slotId,c,n,r,new Map,t,l);r=new CJ(p.CC);return{Ep:{layoutId:p.layoutId,layoutType:p.layoutType,Bc:p.Bc,ud:[],Qc:[],Nc:[],Rc:[],gb:p.gb,Ia:new WY([].concat(g.ma(p.Es),[r])),zc:p.zc,adLayoutLoggingData:p.adLayoutLoggingData},mq:[],jo:p.Nc,Tv:p.Rc,Vg:p.Vg}}};
GGa=function(a,b,c,d,e,f,h,l,m,n,p){function r(u){var x=new iI(0,[t.Gv]),y=DGa(t.playerVars,t.TJ,l,p,x);u=m(u);var B=n.get(t.Gy.externalVideoId);x=EGa(b,"core",t.Gy,c,y,t.Gv,f,x,u,B);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,Bc:x.Bc,ud:x.ud,Qc:x.Qc,Nc:x.Nc,Rc:x.Rc,gb:x.gb,Ia:x.Ia,zc:x.zc,adLayoutLoggingData:x.adLayoutLoggingData},Gl:[],pc:[]}}
var t=RZ(e);if(t instanceof jZ)return new rZ(t);if(r instanceof rZ)return r;a=FGa(a,c,f,h,d,r);return a instanceof rZ?a:a.Gl.concat(a.GC)};
RZ=function(a){if(!a.playerVars)return new jZ("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null===(b=a.playerOverlay)||void 0===b?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new jZ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Yr(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new jZ("Expected valid length seconds in player vars"):
{Gy:a,playerVars:b,TJ:a.playerVars,Gv:c}};
DGa=function(a,b,c,d,e){a.iv_load_policy=d;b=Yr(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){R(f)}c.xg&&(a.ctrl=c.xg);c.Ff&&(a.ytr=c.Ff);c.Yk&&(a.ytrcc=c.Yk);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Gh&&(a.vss_credentials_token_type=c.Gh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.l&&(a.slot_pos=e.i);a.autoplay="1";return a};
JGa=function(a,b,c,d,e,f,h,l,m,n,p){b=HGa(a,b,c,e,f,l,m,n,p);a:{e=g.q(e);for(l=e.next();!l.done;l=e.next())if(l.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=IGa(a,c,f,h),c instanceof rZ?d=c:(f=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER"),h=HZ(a.l.get(),"LAYOUT_TYPE_SURVEY",f),c.pc.push(new TZ(a.i,h)),a=b({slotId:c.slotId,ob:c.ob,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Wb:c.Wb,uc:c.uc,pc:c.pc},{slotId:f,layoutId:h}),d=a instanceof rZ?a:{GC:{slotId:c.slotId,ob:c.ob,slotPhysicalPosition:c.slotPhysicalPosition,
Wb:c.Wb,uc:c.uc,pc:c.pc,gb:c.gb,Ia:new WY([new TJ(a.layout)]),adSlotLoggingData:d},Gl:a.Gl})):d=FGa(a,c,f,h,d,b);return d instanceof rZ?d:d.Gl.concat(d.GC)};
HGa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var r=[];for(var t=g.q(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=RZ(u.instreamVideoAdRenderer);if(u instanceof jZ){r=new rZ(u);break b}r.push(u.Gv)}}if(r instanceof rZ)p=r;else{t=0;u=[];for(var x=[],y=[],B=[],G=[],H=new GJ({current:null}),I=[],M=g.q(d),L=M.next();!L.done;L=M.next())if(L=L.value,L.adIntroRenderer){L=zGa(b,c,L.adIntroRenderer,h);if(L instanceof rZ){p=L;break a}L=L(n);u.push(L.Ep);x=[].concat(g.ma(L.mq),
g.ma(x));y=[].concat(g.ma(L.jo),g.ma(y));L.Vg&&(I=[L.Vg].concat(g.ma(I)))}else if(L.instreamVideoAdRenderer){var da=RZ(L.instreamVideoAdRenderer);if(da instanceof jZ){p=new rZ(da);break a}var Ba=new iI(t,r);L=b;var za=da.Gy,ed=DGa(da.playerVars,da.TJ,f,m,Ba),We=h(n),oc=l.get(da.Gy.externalVideoId);da=EGa(L,"adapter",za,c,ed,da.Gv,e,Ba,We,oc);Ba=da.Qc;za.isCritical&&(Ba=[new PZ(L.i,da.layoutId)].concat(g.ma(Ba)));L={layoutId:da.layoutId,layoutType:da.layoutType,Bc:da.Bc,ud:[],Qc:[],Nc:[],Rc:[],gb:da.gb,
Ia:da.Ia,zc:da.zc,adLayoutLoggingData:da.adLayoutLoggingData};za=Ba;da=da.Nc;t++;u.push(L);x=[].concat(g.ma(za),g.ma(x));y=[].concat(g.ma(da),g.ma(y))}else if(L.adActionInterstitialRenderer){L=yGa(a,b,c,L.adActionInterstitialRenderer,e,t,h);if(L instanceof rZ){p=L;break a}L=L(n);u.push(L.Ep);x=[].concat(g.ma(L.mq),g.ma(x));y=[].concat(g.ma(L.jo),g.ma(y));L.Vg&&(I=[L.Vg].concat(g.ma(I)))}else if(L.instreamSurveyAdRenderer){if(void 0===p){p=new rZ("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:L.instreamSurveyAdRenderer});break a}L=BGa(a,b,c,e,L.instreamSurveyAdRenderer,H,h,p);if(L instanceof rZ){p=L;break a}L=L(n);u.push(L.Ep);L.Vg&&I.push(L.Vg);x=[].concat(g.ma(L.mq),g.ma(x));y=[].concat(g.ma(L.jo),g.ma(y));B=[].concat(g.ma(L.Tv),g.ma(B));G=[H].concat(g.ma(G))}else if(L.surveyTextInterstitialRenderer){L=CGa(a,b,c,e,L.surveyTextInterstitialRenderer,H,h);if(L instanceof rZ){p=L;break a}L=L(n);u.push(L.Ep);L.Vg&&I.push(L.Vg);y=[].concat(g.ma(L.jo),g.ma(y))}else{p=
new rZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={wU:u,Qc:x,Rc:B,Nc:y,Es:G,Gl:I}}}p instanceof rZ?n=p:(B=n.slotId,r=p.wU,t=p.Qc,u=p.Nc,x=p.Rc,y=p.Es,n=h(n),B=HZ(b.l.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",B),G={layoutId:B,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:B,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Bc:new Map,ud:[new LZ(b.i,B)],Qc:t,Nc:u,Rc:x,gb:"core",Ia:new WY([new HJ(r)].concat(g.ma(y))),zc:n(G)},Gl:p.Gl});return n}};
LGa=function(a,b,c,d,e,f,h){if(!bK(c))return new rZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=EZ(c);if(0>=l)return new rZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new GJ({current:null}),n=dGa(a,b,c,m,d,f,h);return KGa(a,d,f,l,e,function(p,r){var t=p.slotId,u=FZ(c);p=h(p);t=HZ(b.l.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,r);
X(y.Ia,"metadata_type_fulfilled_layout")||R("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new qJ(d),new YJ(l),new $J(u),new aK(!0),m];return{aQ:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bc:new Map,ud:[new LZ(b.i,t)],Qc:[new JZ(b.i,r.layoutId)],Nc:[],Rc:[new KZ(b.i,r.layoutId)],gb:"core",Ia:new WY(u),zc:p(x)},CP:y}})};
UZ=function(a,b,c,d,e,f,h){this.l=a;this.i=b;this.Qa=c;this.u=d;this.C=e;this.B=f;this.loadPolicy=void 0===h?1:h};
nz=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,u,x,y,B,G,H=[];if(0===b.length)return H;b=b.filter(RFa);for(var I=new Map,M=new Map,L=g.q(b),da=L.next();!da.done;da=L.next())(da=da.value.renderer.remoteSlotsRenderer)&&da.hostElementId&&M.set(da.hostElementId,da);L=g.q(b);for(da=L.next();!da.done;da=L.next()){da=da.value;var Ba=MGa(a,I,da,d,e,f,h,M);Ba instanceof rZ?R(Ba,void 0,void 0,{renderer:da.renderer,config:da.config.adPlacementConfig,kind:da.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):
H.push.apply(H,g.ma(Ba))}if(null===a.C||f)return a=f&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),H.length||a||R("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(r=null===(p=b[0])||void 0===p?void 0:p.config)||
void 0===r?void 0:r.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(u=b[0])||void 0===u?void 0:u.renderer}),H;c=c.filter(RFa);H.push.apply(H,g.ma($Fa(I,c,a.l.get(),a.C,d,a.Qa.get())));H.length||R("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(B=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===B?void 0:B.kind,renderer:null===
(G=b[0])||void 0===G?void 0:G.renderer});return H};
MGa=function(a,b,c,d,e,f,h,l){function m(u){return aZ(a.u.get(),u)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)DZ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.actionCompanionAdRenderer,H=aZ(a.u.get(),u);return VZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new iJ(G),x,y,G.impressionPings,H,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)DZ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.imageCompanionAdRenderer,H=aZ(a.u.get(),u);return VZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new mJ(G),x,y,G.impressionPings,H,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)DZ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(u,x,y){var B=a.i.get(),G=n.shoppingCompanionCarouselRenderer,H=aZ(a.u.get(),u);return VZ(B,u.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new nJ(G),x,y,G.impressionPings,H,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!WFa(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.B)return new rZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");NGa(a.B,{adPlacementRenderer:c,contentCpn:d,wG:e});return[]}return VFa(a.l.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return tGa(a.l.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return vGa(a.l.get(),
a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return mGa(a.l.get(),a.i.get(),c,d,m);CZ(b,n,r);return null!=n.linearAdSequenceRenderer.linearAds?JGa(a.l.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new rZ("Received invalid LinearAdSequenceRenderer.")}if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!f)return CZ(b,n,r),GGa(a.l.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return LGa(a.l.get(),
a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return SFa(n.sandwichedLinearAdRenderer)?JGa(a.l.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new rZ("Received invalid SandwichedLinearAdRenderer.")}}return[]};
WZ=function(a){g.E.call(this);this.i=a};
kz=function(a,b,c,d){a.i().ai(b,d);c=c();a=a.i();XZ(a.Zb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.q(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;mK(d.Zb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.rc(c.slotId))throw new rZ("Slot ID was empty");if(hZ(e,c))throw new rZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Wb.triggerType});if(!e.zd.il.has(c.ob))throw new rZ("No fulfillment adapter factory registered for slot of type: "+
c.ob);if(!e.zd.Ol.has(c.ob))throw new rZ("No SlotAdapterFactory registered for slot of type: "+c.ob);yZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Wb?[c.Wb]:[]);yZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.uc);yZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.pc);var f=d.i,h=c.ob+"_"+c.slotPhysicalPosition,l=tZ(f,h);if(hZ(f,c))throw new rZ("Duplicate slots not supported");l.set(c.slotId,new MFa(c));f.i.set(h,l)}catch(za){R(za,c,void 0,void 0,za.Rn);break a}hZ(d.i,c).G=!0;try{var m=d.i,n=hZ(m,c),p=c.Wb,r=m.zd.Dh.get(p.triggerType);
r&&(r.di("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ma.set(p.triggerId,r));for(var t=g.q(c.uc),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.zd.Dh.get(x.triggerType);y&&(y.di("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Y.set(x.triggerId,y))}for(var B=g.q(c.pc),G=B.next();!G.done;G=B.next()){var H=G.value,I=m.zd.Dh.get(H.triggerType);I&&(I.di("TRIGGER_CATEGORY_SLOT_EXPIRATION",H,c,null),n.U.set(H.triggerId,I))}var M=m.zd.il.get(c.ob).get().He(m.u,c);n.J=M;var L=m.zd.Ol.get(c.ob).get().He(m.C,
c);L.init();n.l=L}catch(za){R(za,c,void 0,void 0,za.Rn);eZ(d,c,!0);break a}mK(d.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.yh(c);for(var da=g.q(d.Ed),Ba=da.next();!Ba.done;Ba=da.next())Ba.value.yh(c);mZ(d,c,!1)}};
YZ=function(a,b,c,d){this.zn=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
ZZ=function(a,b,c,d){g.E.call(this);var e=this;this.u=a;this.B=b;this.l=c;this.i=new Map;d.get().addListener(this);g.gf(this,function(){d.get().removeListener(e)})};
Iia=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.uc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof YZ?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):R("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new $q(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.l.get().addCueRange(d,c.start,c.end,!1,a)};
$Z=function(){g.E.apply(this,arguments);this.Ui=!0;this.xi=new Map;this.i=new Map};
OGa=function(a,b){a=g.q(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.q(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}R("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.rc(b)),layoutId:b})};
a_=function(){this.l=new Map;this.i=new Map;this.u=new Map};
SZ=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.l.get(b)||0;c++;a.l.set(b,c);return b+"_"+c}return zx()};
HZ=function(a,b,c){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return zx()};
b_=function(a,b){if(g.O("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return zx()};
TZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
PZ=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
IZ=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
PGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
c_=function(a,b){this.i=b;this.ob="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
d_=function(a,b){this.i=b;this.ob="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
LZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
QGa=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)};
iGa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
JZ=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
KZ=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
OZ=function(a,b){this.durationMs=45E3;this.le=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
RGa=function(a){return[new BJ(a.Ay),new vJ(a.instreamAdPlayerOverlayRenderer),new EJ(a.DJ),new qJ(a.adPlacementConfig),new JJ(a.videoLengthSeconds),new XJ(a.ZB)]};
SGa=function(a,b,c,d,e,f){a=c.FB?c.FB:HZ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Bc:new Map,ud:[new IZ(function(l){return b_(f,l)},c.Ay)],
Qc:[],Nc:[],Rc:[],gb:b,Ia:d,zc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
e_=function(a){var b=this;this.l=a;this.i=function(c){return b_(b.l.get(),c)}};
f_=function(a,b,c,d,e){return SGa(b,c,d,new WY(RGa(d)),e,a.l.get())};
TGa=function(a,b,c,d,e){var f=RGa(d);f.push(new oJ(d.UN));f.push(new pJ(d.WN));return SGa(b,c,d,new WY(f),e,a.l.get())};
VZ=function(a,b,c,d,e,f,h,l,m){b=HZ(a.l.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,Bc:p,ud:[new LZ(a.i,b),new c_(a.i,e)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([d,new qJ(f),new BJ(e)]),zc:l(n),adLayoutLoggingData:m}};
NZ=function(a,b,c){var d=[];d.push(new d_(a.i,c));b&&d.push(b);return d};
MZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,Bc:new Map,ud:h,Qc:[new TZ(a.i,b)],Nc:[],Rc:[],gb:"core",Ia:new WY([new lJ(d),new qJ(e)]),zc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
GZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,Bc:new Map,ud:[new IZ(a.i,c)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([new qJ(d)].concat(g.ma(h))),zc:e(m),adLayoutLoggingData:l}};
wGa=function(a,b,c,d,e,f,h,l,m,n){a=QZ(a,b,c,d,e,f,h,l,m,n);return{Ep:{layoutId:a.layoutId,layoutType:a.layoutType,Bc:a.Bc,ud:[],Qc:[],Nc:[],Rc:[],gb:a.gb,Ia:new WY(a.Es),zc:a.zc,adLayoutLoggingData:a.adLayoutLoggingData},mq:a.Qc,jo:a.Nc,Tv:a.Rc,Vg:a.Vg}};
AGa=function(a,b,c,d,e,f,h,l){b=QZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0);
a=new KZ(a.i,b.CC);c=new CJ(b.CC);return{Ep:{layoutId:b.layoutId,layoutType:b.layoutType,Bc:b.Bc,ud:[],Qc:[],Nc:[],Rc:[],gb:b.gb,Ia:new WY([].concat(g.ma(b.Es),[c])),zc:b.zc,adLayoutLoggingData:b.adLayoutLoggingData},mq:b.Qc,jo:b.Nc,Tv:[].concat(g.ma(b.Rc),[a]),Vg:b.Vg}};
QZ=function(a,b,c,d,e,f,h,l,m,n){b=HZ(a.l.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var r=X(l.Ia,"metadata_type_fulfilled_layout");r||R("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");r=r?r.layoutId:"";c=[new qJ(c),new YJ(d),new $J(e)];n&&c.push(new OJ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bc:f,ud:[],Qc:[new JZ(a.i,r)],Nc:[],Rc:[],gb:"adapter",Es:c,
zc:h(p),adLayoutLoggingData:m,Vg:l,CC:r}};
EGa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new qJ(d),new rJ(l),new sJ(c.externalVideoId),new uJ(h),new vJ(c.playerOverlay.instreamAdPlayerOverlayRenderer),new $J({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new KJ(e),new FJ({current:null}),new JJ(f)];e=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:HZ(a.l.get(),
"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new CJ(f));d.push(new DJ(e));d.push(new OJ(l.i));c.adNextParams&&d.push(new jJ(c.adNextParams));c.clickthroughEndpoint&&d.push(new kJ(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new ZJ(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new LJ(c.sodarExtensionData));n&&d.push(new WJ(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Bc:jI(c.pings),ud:[new LZ(a.i,p)],Qc:c.skipOffsetMilliseconds?[new JZ(a.i,f)]:[],Nc:[new JZ(a.i,
f)],Rc:[],gb:b,Ia:new WY(d),zc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
oGa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return VY(p,[],["LAYOUT_TYPE_MEDIA"])})||R("Unexpect subLayout type for DAI composite layout");
b=HZ(a.l.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Bc:f,ud:[new PGa(a.i)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([new MJ(c),new NJ(m),new HJ(d),new qJ(e),new SJ(h)]),zc:l(n)}};
rGa=function(a){return null!=a};
g_=function(a,b,c){this.zn=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
h_=function(a,b,c){this.le=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
i_=function(a,b){this.le=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
UGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
j_=function(a,b,c){this.zn=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
k_=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
l_=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
m_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
n_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
o_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
p_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
q_=function(a,b){this.Dg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
TFa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={qk:new $q(-0x8000000000000,-0x8000000000000),Nx:d},null!=c&&(d.xq=new $q(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={qk:new $q(0x7ffffffffffff,0x8000000000000),Nx:d},null!=c&&(d.xq=new $q(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||R("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||R("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 rZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={qk:new $q(a,e),Nx:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.xq=new $q(a,e)}return d;default:return new rZ("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
r_=function(a){var b=this;this.l=a;this.i=function(c){return b_(b.l.get(),c)}};
UFa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=SZ(a.l.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.xq&&d.xq.start!==d.qk.start&&l.push(new YZ(a.i,c,new $q(d.xq.start,d.qk.start),!1));l.push(new YZ(a.i,c,new $q(d.qk.start,d.qk.end),d.Nx));d={getAdBreakUrl:b.getAdBreakUrl,SJ:d.qk.start,RJ:d.qk.end};b=new p_(a.i,h);f=[new UJ(d)].concat(g.ma(f));return{slotId:h,ob:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Wb:b,uc:l,pc:[new k_(a.i,c),new n_(a.i,h),new o_(a.i,h)],gb:"core",Ia:new WY(f),adSlotLoggingData:e}};
WGa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(VGa(a,b,e.value));return d};
VGa=function(a,b,c){return null!=c.Dg&&c.Dg===a?c.clone(b):c};
cGa=function(a,b,c,d,e){return XGa(a,b,c,d,e)};
xGa=function(a,b,c,d){var e=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");return XGa(a,e,b,c,d)};
XGa=function(a,b,c,d,e){var f=new i_(a.i,c),h=[new m_(a.i,b)];a=[new n_(a.i,b),new k_(a.i,d)];return{slotId:b,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:f,uc:h,pc:a,gb:"core",Ia:new WY([new TJ(e({slotId:b,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:f,uc:h,pc:a},c))]),adSlotLoggingData:void 0}};
KGa=function(a,b,c,d,e,f){var h=SZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES"),l=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER"),m=HZ(a.l.get(),"LAYOUT_TYPE_SURVEY",l);b=s_(a,b,c,d);d=[new m_(a.i,h)];a=[new n_(a.i,h),new k_(a.i,c),new TZ(a.i,m)];if(b instanceof rZ)return b;f=f({slotId:h,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Wb:b,uc:d,pc:a},{slotId:l,layoutId:m});l=f.CP;return[{slotId:h,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:b,uc:d,pc:a,gb:"core",Ia:new WY([new TJ(f.aQ)]),adSlotLoggingData:e},
l]};
YGa=function(a,b,c,d,e){e=e?e:SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new i_(a.i,c);var f=[new m_(a.i,e)];a=[new k_(a.i,b),new n_(a.i,e)];return{slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,uc:f,pc:a,gb:"core",Ia:new WY([new TJ(d({slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,uc:f,pc:a}))])}};
uGa=function(a,b,c,d,e,f){b=s_(a,b,c,d);if(b instanceof rZ)return b;var h=b instanceof YZ?new j_(a.i,c,b.i):null;d=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");var l=[new m_(a.i,d)];a=[new k_(a.i,c),new n_(a.i,d)];f=f({slotId:d,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:b,uc:l,pc:a},h);return f instanceof jZ?new rZ(f):{slotId:d,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:b,uc:l,pc:a,gb:"core",Ia:new WY([new TJ(f)]),adSlotLoggingData:e}};
hGa=function(a,b,c,d){var e=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new i_(a.i,c);var f=[new m_(a.i,e)],h=[new n_(a.i,e),new k_(a.i,b)];f={slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,uc:f,pc:h};return{slotId:e,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,uc:[new m_(a.i,e)],pc:[new k_(a.i,b),new n_(a.i,e)],gb:"core",Ia:new WY([new TJ(d(f))])}};
fGa=function(a,b,c,d,e){var f=SZ(a.l.get(),"SLOT_TYPE_IN_PLAYER");c=new h_(a.i,d,c);d=[new m_(a.i,f)];a=[new k_(a.i,b)];return{slotId:f,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:c,uc:d,pc:a,gb:"core",Ia:new WY([new TJ(e({slotId:f,ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Wb:c,uc:d,pc:a}))])}};
ZFa=function(a,b,c,d,e,f){var h=SZ(a.l.get(),b);return ZGa(a,h,b,new i_(a.i,d),c,e,d,f)};
YFa=function(a,b,c,d,e,f,h){return ZGa(a,c,b,new l_(a.i,c),d,f,e,h)};
kGa=function(a,b,c){var d=SZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new UGa(a.i),f=[new q_(a.i,d)];a=[new k_(a.i,b)];return{slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:e,uc:f,pc:a,gb:"core",Ia:new WY([new TJ(c({slotId:d,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Wb:e,uc:f,pc:a})),new PJ({})])}};
FGa=function(a,b,c,d,e,f){a=IGa(a,b,c,d);if(a instanceof rZ)return a;f=f({slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Wb:a.Wb,uc:a.uc,pc:a.pc,gb:a.gb});return f instanceof rZ?f:{GC:{slotId:a.slotId,ob:a.ob,slotPhysicalPosition:a.slotPhysicalPosition,Wb:a.Wb,uc:a.uc,pc:a.pc,gb:a.gb,Ia:new WY([new TJ(f.layout)]),adSlotLoggingData:e},Gl:f.Gl}};
IGa=function(a,b,c,d){var e=SZ(a.l.get(),"SLOT_TYPE_PLAYER_BYTES");b=s_(a,b,c,d);if(b instanceof rZ)return b;d=[new m_(a.i,e)];a=[new n_(a.i,e),new k_(a.i,c)];return{slotId:e,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:b,uc:d,pc:a,gb:"core"}};
sGa=function(a,b,c,d,e,f){var h=SZ(a.l.get(),"SLOT_TYPE_FORECASTING");b=s_(a,b,c,d);if(b instanceof rZ)return b;d=[new m_(a.i,h)];a=[new n_(a.i,h),new k_(a.i,c)];return{slotId:h,ob:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Wb:b,uc:d,pc:a,gb:"core",Ia:new WY([new TJ(f({slotId:h,ob:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Wb:b,uc:d,pc:a}))]),adSlotLoggingData:e}};
$Ga=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new pz(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=TFa(b,d),a instanceof rZ?a:e(a.qk,f);case "AD_PLACEMENT_KIND_END":return new g_(a.i,c,f);default:return new rZ("Cannot construct entry trigger",{kind:b.kind})}};
s_=function(a,b,c,d){return $Ga(a,b,c,d,function(e,f){return new YZ(a.i,c,e,f)})};
ZGa=function(a,b,c,d,e,f,h,l){var m=[new q_(a.i,b)];a=[new k_(a.i,e),new n_(a.i,b),new PZ(a.i,h)];return{slotId:b,ob:c,slotPhysicalPosition:1,Wb:d,uc:m,pc:a,gb:"core",Ia:new WY([new TJ(l({slotId:b,ob:c,slotPhysicalPosition:1,gb:"core",Wb:d,uc:m,pc:a}))]),adSlotLoggingData:f}};
t_=function(a,b,c){g.E.call(this);this.Qa=a;this.l=b;this.i=c;this.eventCount=0};
mK=function(a,b,c){XZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
iZ=function(a,b,c,d){XZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
EFa=function(a,b,c,d){var e=a.Qa.get();(g.S(e.I.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")||g.S(e.I.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&XZ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,void 0,d?d.adLayoutLoggingData:void 0)};
XZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Qa.get();if((g.S(p.I.T().experiments,"html5_enable_ads_client_monitoring_log")||g.S(p.I.T().experiments,"html5_enable_ads_client_monitoring_log_live_infra"))&&!g.S(a.Qa.get().I.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){p=$Y(a.l.get());b={eventType:b,eventOrder:++a.eventCount};var r,t={organicPlaybackContext:{contentCpn:mz(a.i.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=mz(a.i.get(),
1).Sh;var u=null===(r=mz(a.i.get(),2))||void 0===r?void 0:r.clientPlaybackNonce;u&&(t.adVideoPlaybackContext={adVideoCpn:u});a=a.Qa.get();a=g.T(a.I.T().experiments,"html5_experiment_id_label")||g.T(a.I.T().experiments,"html5_experiment_id_label_live_infra");0<a&&(t.html5ExperimentContext={ytExperimentId:a});a={};f&&(a.slotData=ZY(p,f));h&&(a.layoutData=yFa(p,h));l&&(a.triggerData=YY(l.trigger,l.category));c&&(a.opportunityData=zFa(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=
m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Bv("adsClientStateChange",{adsClientEvent:b})}};
u_=function(){this.i=new Map};
v_=function(a,b,c,d){g.E.call(this);this.I=a;this.u=b;this.Fa=c;this.l=d;this.listeners=[];var e=new mx(this);g.F(this,e);e.N(a,"internalAbandon",this.EM);g.gf(this,function(){g.ox(e)})};
w_=function(a){g.E.call(this);this.I=a;this.i=new Map;this.l=new mx(this);g.F(this,this.l);this.l.N(this.I,g.Iz("ad"),this.yd,this);this.l.N(this.I,g.Jz("ad"),this.bf,this)};
aHa=function(a,b,c,d,e){g.Fz.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
x_=function(a){this.I=a};
y_=function(a){this.I=a};
z_=function(a){return DG(a.I.T())||CG(a.I.T())?g.S(a.I.T().experiments,"tvhtml5_unplugged_pacf_enable_video_overlay_on_inplayer_slot"):g.BG(a.I.T())||a.I.T().i||g.FG(a.I.T())||ela(a.I.T())||cG(a.I.T())||g.VF(a.I.T())||g.bG(a.I.T())?!0:g.S(a.I.T().experiments,"web_unplugged_pacf_enable_video_overlay_on_inplayer_slot")};
A_=function(a){return g.S(a.I.T().experiments,"enable_server_stitched_dai")};
pL=function(a,b){var c,d,e,f,h,l;b=g.q(b);for(var m=b.next();!m.done;m=b.next())if(m=m.value,(null===(d=null===(c=m.renderer)||void 0===c?void 0:c.instreamSurveyAdRenderer)||void 0===d?0:d.controlflowEnabled)||(null===(l=null===(h=null===(f=null===(e=m.renderer)||void 0===e?void 0:e.sandwichedLinearAdRenderer)||void 0===f?void 0:f.linearAd)||void 0===h?void 0:h.instreamSurveyAdRenderer)||void 0===l?0:l.controlflowEnabled))return!0;return g.S(a.I.T().experiments,"html5_handle_preroll_lock_in_pacf")};
bHa=function(a){return g.S(a.I.T().experiments,"html5_recognize_predict_start_cue_point")};
BFa=function(a){return g.S(a.I.T().experiments,"html5_enable_deferred_trigger_fix")};
cHa=function(a){return g.S(a.I.T().experiments,"html5_unlisten_to_control_flow_events_on_layout_exited")};
B_=function(a){return g.S(a.I.T().experiments,"html5_pacf_enable_non_dai_live_video_ads")};
C_=function(a,b){this.Fa=a;this.I=b;this.i=new Map;hI().subscribe("adactiveviewmeasurable",this.zx,this);hI().subscribe("adfullyviewableaudiblehalfdurationimpression",this.yx,this);hI().subscribe("adviewableimpression",this.Ax,this)};
dHa=function(a,b,c,d){d=void 0===d?null:d;a.i.has(b)?R("Unexpected registration of layout in LidarApi"):(a.i.set(b,d),ena(hI(),b,{Zs:function(){return c?{currentTime:a.Fa.get().getCurrentTimeSec(2,!1),duration:c,tc:2===a.Fa.get().getPresentingPlayerType()&&1===D_(a.Fa.get(),2),N7:!1,O7:!0,volume:a.Fa.get().isMuted()?0:a.Fa.get().getVolume()/100}:{}}}))};
eHa=function(a,b){a.i.has(b)?(a.i.delete(b),delete hI().i[b]):R("Unexpected unregistration of layout in LidarApi")};
E_=function(a,b){this.l=a;this.u=b};
F_=function(a,b,c,d){var e=void 0===e?new E_(function(){var f=a.getVideoData(1);return f?f.Ve():""},function(){return a.T().pageId}):e;
this.I=a;this.l=b;this.u=c;this.B=d;this.Qn=e;this.sy=null;this.i=new Map;this.ij=new DI(e)};
gHa=function(a,b,c,d){d=void 0===d?[]:d;var e=OGa(a.l.get(),c);e?(c=G_(a,fHa(e),e),b.hasOwnProperty("baseUrl")?a.Qn.send(b,c):a.ij.send(b,c,{},d)):R("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
hHa=function(a,b,c,d){d=void 0===d?[]:d;var e=OGa(a.l.get(),b);if(e)for(b=a.u.get().Ge(b,c),e=G_(a,fHa(e),e),d=g.q(d),c=d.next();!c.done;c=d.next())c=c.value,c.baseUrl&&a.ij.send(c.baseUrl,e,b,c.headers);else R("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,trackingType:c})};
H_=function(a,b){g.Bv("adsClientStateChange",b)};
I_=function(a,b){a.i.has(b.gt())?R("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.gt(),b)};
J_=function(a,b){a.i.delete(b.gt())||R("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
fHa=function(a){var b=X(a.Ia,"metadata_type_ad_placement_config");a=X(a.Ia,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,qI:a}};
G_=function(a,b,c){var d=c?iHa(a):{};c=c?jHa(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vI(a.I)),ona(b.adPlacementConfig)),(e.SLOT_POS=uI(function(){return(b.qI||0).toString()}),e)),c),d),(f.FINAL=uI(function(){return"1"}),f.AD_CPN=uI(function(){var l;
return(null===(l=mz(a.B.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(kHa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
iHa=function(a){var b,c={},d=null===(b=a.sy)||void 0===b?void 0:b.Dj/1E3;null!=d&&(c.SURVEY_ELAPSED_MS=uI(function(){return Math.round(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=uI(function(){return Math.round(Date.now()/1E3).toString()});
return c};
jHa=function(a,b){a=a.i.get(b);if(!a)return{};a=a.aB();if(!a)return{};b={};return b.YT_ERROR_CODE=a.Ly.toString(),b.ERRORCODE=a.Wu.toString(),b.ERROR_MSG=a.errorMessage,b};
K_=function(a,b,c){g.E.call(this);this.I=a;this.i=b;this.Qa=c;this.listeners=[];b=new g.qN(this);g.F(this,b);b.N(a,"videodatachange",this.yT);b.N(a,"serverstitchedvideochange",this.US);this.uo=mz(this);this.contentCpn=mz(this,1).clientPlaybackNonce};
mz=function(a,b){var c=a.I.getVideoData(b);return c?lHa(a,c,b||a.I.getPresentingPlayerType(!0)):null};
mHa=function(a,b,c){var d=lHa(a,b,c);a.uo=d;a.listeners.forEach(function(e){e.iJ(d)});
b=mz(a,1);b.clientPlaybackNonce!==a.contentCpn&&(a.contentCpn=b.clientPlaybackNonce,a.listeners.forEach(function(){}))};
lHa=function(a,b,c){var d,e,f=b.author,h=b.clientPlaybackNonce,l=b.isListed,m=b.Wc,n=b.title,p=b.xg,r=b.Ff,t=b.isMdxPlayback,u=b.Gh,x=b.mdxEnvironment,y=b.Zj,B=b.pk,G=b.Xn,H=b.videoId||"",I=b.rg||"",M=b.Fh||"";b=b.Yk||void 0;m=a.i.get().i.get(m)||{layoutId:null,slotId:null};var L=a.I.getVideoData(1),da=L.Sh();L=L.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);L=(null===(e=null===(d=null===L||void 0===L?void 0:L.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===e?void 0:
e.enableDai)||!1;return Object.assign(Object.assign({},m),{videoId:H,author:f,clientPlaybackNonce:h,playbackDurationMs:c,wG:a,daiEnabled:L,isListed:l,Sh:da,rg:I,title:n,Fh:M,xg:p,Ff:r,Yk:b,isMdxPlayback:t,Gh:u,mdxEnvironment:x,Zj:y,pk:B,Xn:G})};
L_=function(a){g.E.call(this);this.I=a;this.listeners=[];this.Qj=function(){R("Called 'doUnlockPreroll' before it's initialized.")};
var b=new mx(this);g.F(this,b);b.N(a,"progresssync",this.tS);b.N(a,"presentingplayerstatechange",this.kS);b.N(a,"fullscreentoggled",this.Me);b.N(a,"onVolumeChange",this.Df);b.N(a,"minimized",this.jg);b.N(a,"resize",this.tb)};
D_=function(a,b){return a.I.sb(b)};
nHa=function(a){var b=a.I.Za().Zf();a=a.I.Ri(!0,!0);return b.height-(a.height+a.top)};
oHa=function(a,b){var c=a.I.T();RF(c)||"3"!==c.controlsType||a.I.Za().Eu(b)};
pHa=function(a,b,c){g.E.call(this);var d=this;this.G=Y(function(){return new a_});
g.F(this,this.G);this.U=Y(function(){return new e_(d.G)});
g.F(this,this.U);this.J=Y(function(){return new $Z});
g.F(this,this.J);this.l=Y(function(){return new WZ(a)});
g.F(this,this.l);this.u=Y(function(){return new r_(d.G)});
g.F(this,this.u);this.ma=Y(function(){return new u_});
g.F(this,this.ma);this.K=Y(function(){return new w_(b)});
g.F(this,this.K);this.Cc=Y(function(){return new x_(b)});
g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)});
g.F(this,this.Qa);this.B=Y(function(){return new bZ(d.Qa)});
g.F(this,this.B);this.C=Y(function(){return new UZ(d.u,d.U,d.Qa,d.B,null,null)});
g.F(this,this.C);this.i=Y(function(){return new K_(b,d.ma,d.Qa)});
g.F(this,this.i);this.Zb=new t_(this.Qa,this.B,this.i);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)});
g.F(this,this.Fa);this.Y=Y(function(){return new C_(d.Fa,b)});
g.F(this,this.Y);this.Xa=Y(function(){return new F_(b,d.J,d.Y,d.i)});
g.F(this,this.Xa);this.lc=new qz(this.l,this.C,c,this.Qa,a,this.i,this.Fa);g.F(this,this.lc);var e=new v_(b,this.lc,this.Fa);this.va=Y(function(){return e});
this.El=e;this.X=new ZZ(this.l,this.u,this.K,this.va);g.F(this,this.X);this.qc=new jz(this.l,this.u,this.C,this.i,this.X,c);g.F(this,this.qc);this.zd={hp:new Map,il:new Map,Dh:new Map,Ol:new Map,yl:new Map};this.listeners=[];this.pe={qc:this.qc,Lj:null,Al:null,kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:{xB:function(){}},
Pg:this.J.get()}};
M_=function(a){this.i=a};
N_=function(){};
qHa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&cl(b.siub,b.scs,b.bgub,b.bgp)};
rHa=function(a,b,c,d){this.callback=a;this.slot=b;this.u=c;this.l=d;this.i=null};
sHa=function(a,b,c){a.i&&R("Currently active request ongoing for slot. This should never happen",a.slot);a.i=b();a.i.then(function(d){a.i=null;c&&c(d);var e=d.yr?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",f=a.u.get(),h=a.slot.slotId,l=aZ(a.l.get(),{slotId:a.slot.slotId,ob:a.slot.ob,slotPhysicalPosition:a.slot.slotPhysicalPosition,gb:a.slot.gb,Wb:a.slot.Wb,uc:a.slot.uc,pc:a.slot.pc}),m=HZ(f.l.get(),e,h),n={layoutId:m,layoutType:e,gb:"core"};d={layoutId:m,layoutType:e,
Bc:new Map,ud:[new QGa(f.i,h)],Qc:[],Nc:[],Rc:[],gb:"core",Ia:new WY([new VJ(d)]),zc:l(n)};DFa(a.callback,a.slot,d)},function(d){a.i=null;
d instanceof fh||fZ(a.callback,a.slot,new rZ(d,void 0,!0))})};
tHa=function(a){if(null==a.i)a.callback.Fx(a.slot);else try{a.i.cancel(),a.i=null,a.callback.Fx(a.slot)}catch(b){a.i=null,fZ(a.callback,a.slot,new rZ(b))}};
O_=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.l=c;this.u=f;this.i=new rHa(a,b,d,e)};
P_=function(a,b,c,d,e){this.callback=a;this.slot=b;this.l=c;this.i=new rHa(a,b,d,e)};
Q_=function(a,b){this.callback=a;this.slot=b};
R_=function(a,b){return oz(a,b.Wd,b.ob)?!0:!1};
S_=function(){};
T_=function(a,b,c,d){this.i=a;this.u=b;this.l=c;this.C=d};
U_=function(){};
uHa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
V_=function(a,b){return VY(a,b.Wd,b.Af)?!0:!1};
W_=function(a){this.i=a};
X_=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Xa=b;this.layoutId=d;this.l=0;this.i=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.C={adPlacementConfig:c,qI:e}};
Y_=function(){return["metadata_type_ad_placement_config"]};
Z_=function(a){var b=a.Xa.get();return G_(b,a.C)};
$_=function(a,b){a.i.has(b)||a.Ge(b)};
vHa=function(a,b,c){for(c=void 0===c?!1:c;a.l<a.u.length;){var d=a.u[a.l];if(d.offsetMilliseconds<=b||c){var e=a;d=[d];hHa(e.Xa.get(),e.layoutId,"progress",d);a.l++}else break}};
wHa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Xa=d;this.i=e;a=X(this.layout.Ia,"metadata_type_ad_placement_config");this.l=new X_(c.Bc,this.Xa,a,c.layoutId)};
xHa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];Y_().forEach(function(b){a.push(b)});
return{Wd:a,Af:["LAYOUT_TYPE_FORECASTING"]}};
a0=function(a,b){this.Xa=a;this.i=b};
b0=function(a,b,c,d){g.Q.call(this);this.callback=a;this.slot=b;this.layout=c;this.l=d;this.i=[]};
c0=function(a,b,c,d,e,f,h){e=X(c.Ia,e);a=Z_(a);var l=db(function(){d.Hc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.zc},function(){l()}))};
d0=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.ob&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.I.sendVideoStatsEngageEvent(1,void 0,2):e?e():R("Tried to call engagePingCallback but it is null",h,l)}}else R("Companion AdUxClick received without a layoutId",h,l)};
yHa=function(a,b,c,d,e){QI.call(this,"action-companion",a,b,c,d,e)};
e0=function(a,b,c,d,e,f,h,l){b0.call(this,a,b,c,d);this.Xa=e;this.xe=f;this.G=l;this.Ui=!0;this.u=null;this.B=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");dZ(this.xe(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.C=new X_(c.Bc,this.Xa,a,c.layoutId)};
zHa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Y_().forEach(function(b){a.push(b)});
return{Wd:a,Af:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
f0=function(a,b,c,d,e){b0.call(this,a,b,c,d);a=X(c.Ia,"metadata_type_ad_placement_config");this.u=new X_(c.Bc,e,a,c.layoutId)};
AHa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];Y_().forEach(function(b){a.push(b)});
return{Wd:a,Af:["LAYOUT_TYPE_ENDCAP"]}};
g0=function(a,b,c,d,e,f,h,l){b0.call(this,a,b,c,d);this.Fa=e;this.Xa=f;this.B=h;this.Cd=l;this.u=!1;this.C=X(this.layout.Ia,"metadata_type_linked_player_bytes_layout_id")};
BHa=function(){return{Wd:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Af:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
h0=function(a,b,c,d,e,f,h,l){return V_(c,BHa())?new g0(a,b,c,d,e,f,h,l):V_(c,AHa())?new f0(a,b,c,d,f):null};
i0=function(a,b,c,d,e){this.i=a;this.Fa=b;this.Xa=c;this.l=d;this.Cd=e};
j0=function(a,b,c,d,e,f){g.E.call(this);this.callback=a;this.qd=b;this.Fa=c;this.kd=d;this.xe=e;this.Qa=f;this.Ui=!0;this.EB=!1};
k0=function(a,b,c,d,e,f,h,l,m,n){j0.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.G=l;this.l=[];this.i=-1;this.u=!1};
l0=function(a,b,c){var d=X(a.Sb().Ia,"metadata_type_linked_in_player_layout_id");return d?d:(R("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.rd(),a.Sb(),{requestingSlot:b,requestingLayout:c}),null)};
m0=function(a,b,c,d){if(!a.u){var e=a.l[a.i];e?(e.Sb().layoutId!==c.layoutId&&R("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Sb().layoutId}),a.u=!0,e.Pe(e.Sb(),d),lK(a.B,b,c,d),a.u=!1,a.C?a.C():CHa(a)):R("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
CHa=function(a){a.i===a.l.length-1?(a.i++,n0(a.G,a.layout.layoutId)):(-1===a.i&&a.callback.Hc(a.slot,a.layout),a.i++,a=a.l[a.i],a.startRendering(a.Sb()))};
o0=function(a){return!a.Zm.tc()&&a.state.tc()};
p0=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
DHa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.percent)};
EHa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
FHa=function(a,b,c,d){var e;this.C=a;this.layoutId=c;this.G=d;this.l=[];this.i=[];this.u=this.B=0;a=g.q(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,null===(e=b.adVideoOffset)||void 0===e?void 0:e.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":DHa(b)?this.l.push(b):R("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":EHa(b)?this.i.push(b):R("Invalid AdVideoProgressMillisecondsCommand");break;default:R("Unknown or invalid AdVideoProgressOffSet kind")}this.l.sort(function(f,
h){return f.adVideoOffset.percent-h.adVideoOffset.percent});
this.i.sort(function(f,h){return Number(f.adVideoOffset.milliseconds)-Number(h.adVideoOffset.milliseconds)})};
r0=function(a,b,c,d,e,f,h,l,m,n,p,r,t){var u;g.E.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Xa=d;this.Y=e;this.Fa=f;this.kd=h;this.Aa=l;this.u=m;this.C=n;this.position=r;this.La=t;this.Ui=!0;this.va=!1;this.l="not_rendering";a=X(this.layout.Ia,"metadata_type_ad_placement_config");this.i=new X_(c.Bc,this.Xa,a,c.layoutId);a=(null===(u=q0(this))||void 0===u?void 0:u.progressCommands)||[];this.Ga=new FHa(m,a,c.layoutId,function(){return x.Eq()});
this.ma=db(function(){x.callback.Hc(x.slot,x.layout)});
this.U=db(function(){"rendering_stop_requested"!==x.l&&p(x);x.J?x.callback.Oc(x.slot,x.layout,x.J):R("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
q0=function(a){return X(a.layout.Ia,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
s0=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.l){vHa(a.i,1E3*b,c);var d=a.Eq();if(d&&(d/=1E3,(b>=.25*d||c)&&$_(a.i,"first_quartile"),(b>=.5*d||c)&&$_(a.i,"midpoint"),(b>=.75*d||c)&&$_(a.i,"third_quartile"),a=a.Ga,b*=1E3,c=a.G())){for(;a.B<a.l.length;)if(d=a.l[a.B],d.adVideoOffset.percent*c<=b)a.C.get().executeCommand(d.command,a.layoutId),a.B++;else break;for(;a.u<a.i.length;)if(c=a.i[a.u],Number(c.adVideoOffset.milliseconds)<=b)a.C.get().executeCommand(c.command,a.layoutId),a.u++;else break}}};
t0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x){r0.call(this,a,b,c,d,e,f,h,m,n,p,r,t,u,x);var y=this;this.Cc=l;this.Rw=!0;this.G=this.Dj=0;this.B=new g.ih(200);this.B.Ra("tick",function(){y.Rb()});
g.F(this,this.B)};
GHa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.q(Y_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Wd:a,Af:["LAYOUT_TYPE_MEDIA_BREAK"]}};
HHa=function(a){a.G=Date.now();u0(a,a.Dj);a.B.start()};
u0=function(a,b){b={current:b/1E3,duration:a.Eq()/1E3};a.Cc.get().Na("onAdPlaybackProgress",b)};
v0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H,I){r0.call(this,a,b,c,d,e,m,p,t,u,y,B,G,H,I);var M=this;this.Da=f;this.qd=h;this.X=l;this.K=n;this.Cc=r;this.Ea=x;this.adCpn="";this.G=new g.J(function(){M.Tt("load_timeout",new jZ("Media layout load timeout.",{},!0))},1E4)};
IHa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.q(Y_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Wd:a,Af:["LAYOUT_TYPE_MEDIA"]}};
w0=function(a,b,c,d,e,f,h){j0.call(this,a,b,c,d,f,h);this.i=e};
KHa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H){if(V_(d,{Wd:["metadata_type_sub_layouts"],Af:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var I=X(d.Ia,"metadata_type_sub_layouts");a=new k0(a,n,r,u,b,c,d,f,e,H);e=[];for(b={Cn:0};b.Cn<I.length;b={Cn:b.Cn},b.Cn++){var M=JHa({Hc:a.gT.bind(a),Oc:a.iT.bind(a),cf:a.hT.bind(a)},c,I[b.Cn],h,l,m,n,p,r,t,u,x,y,B,G,function(L){return function(da){da.Pe(I[L.Cn],"normal")}}(b),b.Cn,I.length,H);
if(!M)return;e.push(M)}a.l=e;return a}if(V_(d,{Wd:[],Af:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=JHa({Hc:a.Hc.bind(a),Oc:a.Oc.bind(a),cf:a.cf.bind(a)},c,d,h,l,m,n,p,r,t,u,x,y,B,G,function(){n0(f,d.layoutId)},0,1,H))?new w0(a,n,r,u,c,e,H):c};
JHa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G,H){if(V_(c,GHa()))return new t0(a,b,c,d,e,m,p,r,t,u,function(){},y,B,G,H);
if(V_(c,IHa()))return c.Ia.i.has("metadata_type_ad_intro")?new v0(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,function(I){r.get().Na("onAdIntroStateChange",I)},y,B,G,H):new v0(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,function(I){r.get().ci(I)},y,B,G,H)};
x0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x){this.xe=a;this.G=b;this.Xa=c;this.C=d;this.K=e;this.qd=f;this.J=h;this.Fa=l;this.u=m;this.kd=n;this.Cc=p;this.i=r;this.l=t;this.B=u;this.Qa=x};
y0=function(a,b,c,d,e,f,h,l){g.E.call(this);this.C=a;this.J=b;this.G=c;this.u=d;this.B=e;this.l=f;this.Qa=h;this.i=l;this.Ui=!0};
LHa=function(a){var b;return z_(a.Qa.get())?!0:!(null===(b=mz(a.i.get()))||void 0===b||!b.daiEnabled)};
z0=function(a){var b,c=null===(b=X(a.Ia,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=X(a.Ia,"metadata_type_content_cpn"),f=X(a.Ia,"metadata_type_instream_ad_player_overlay_renderer"),h=X(a.Ia,"metadata_type_ad_placement_config"),l=X(a.Ia,"metadata_type_video_length_seconds");var m=a.Ia.i.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?X(a.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.Ia.i.has("metadata_type_layout_enter_ms")&&a.Ia.i.has("metadata_type_layout_exit_ms")?
(X(a.Ia,"metadata_type_layout_exit_ms")-X(a.Ia,"metadata_type_layout_enter_ms"))/1E3:void 0;a={Ay:d,contentCpn:e,DJ:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,ZB:m,FB:X(a.Ia,"metadata_type_linked_in_player_layout_id"),FH:X(a.Ia,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
NHa=function(a,b){return MHa(a,b)};
OHa=function(a,b){var c;b=MHa(a,b);if(!b)return null;b.ZB=null===(c=X(a.Ia,"metadata_type_ad_pod_info"))||void 0===c?void 0:c.adBreakRemainingLengthSeconds;return b};
MHa=function(a,b){var c,d=null===(c=X(a.Ia,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(a.Ia.i.has("metadata_ad_video_is_listed"))var e=X(a.Ia,"metadata_ad_video_is_listed");else b?e=b.isListed:(R("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);a.Ia.i.has("metadata_type_ad_info_ad_metadata")?b=X(a.Ia,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Fh,channelThumbnailUrl:b.rg,channelTitle:b.author,videoTitle:b.title}:
(R("No layout metadata nor AdPlayback specified for AdMetaData"),b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{UN:b,adPlacementConfig:X(a.Ia,"metadata_type_ad_placement_config"),WN:e,contentCpn:X(a.Ia,"metadata_type_content_cpn"),FB:X(a.Ia,"metadata_type_linked_in_player_layout_id"),FH:X(a.Ia,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:X(a.Ia,"metadata_type_instream_ad_player_overlay_renderer"),ZB:void 0,DJ:d,Ay:a.layoutId,videoLengthSeconds:X(a.Ia,
"metadata_type_video_length_seconds")}};
PHa=function(a,b){this.callback=a;this.slot=b};
A0=function(){};
QHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
RHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
B0=function(a){this.Fa=a};
C0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
D0=function(a){g.E.call(this);this.xz=a;this.Db=new Map};
SHa=function(a,b){for(var c=[],d=g.q(a.Db.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof KZ&&f.le===b&&c.push(e)}c.length?pZ(a.xz(),c):R("Survey is submitted but no registered triggers can be activated.")};
E0=function(a,b){D0.call(this,a);var c=this;b.get().addListener(this);g.gf(this,function(){b.get().removeListener(c)})};
F0=function(a){g.E.call(this);this.i=a;this.Ui=!0;this.Db=new Map;this.C=new Set;this.u=new Set;this.B=new Set;this.G=new Set;this.l=new Set};
G0=function(a,b,c){g.E.call(this);var d=this;this.i=a;this.Qa=c;this.Db=new Map;b.get().addListener(this);g.gf(this,function(){b.get().removeListener(d)})};
THa=function(a,b,c,d,e,f){var h=[];a=pL(a.get(),b);c=g.q(c.values());for(b=c.next();!b.done;b=c.next())if(b=b.value,b.trigger instanceof k_){var l=b.trigger.i===d;l===e?h.push(b):a&&f&&l&&(R("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:d}),h.push(b))}return h};
H0=function(a,b,c,d){g.E.call(this);var e=this;this.l=a;this.u=b;this.Fa=c;this.B=d;this.Db=new Map;this.i=new Set;c.get().addListener(this);g.gf(this,function(){c.get().removeListener(e)})};
I0=function(a,b,c,d,e,f,h,l,m,n){if(mz(a.B.get(),1).clientPlaybackNonce!==m)throw new rZ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Db.set(c.triggerId,{bundle:new C0(b,c,d,e),Vv:f});a.u.get().addCueRange(f,h,l,n,a)};
UHa=function(a,b){a=g.q(a.Db.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;if(b===d.Vv)return c}return""};
J0=function(a){g.E.call(this);this.u=a;this.Ui=!0;this.Db=new Map;this.l=this.i=null};
n0=function(a,b){for(var c=[],d=g.q(a.Db.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof LZ){var f;if(f=e.trigger.layoutId===b)f=(f=FFa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&pZ(a.u(),c)};
K0=function(a){g.E.call(this);this.i=a;this.Ui=!0;this.Db=new Map};
L0=function(a,b,c,d,e,f){g.E.call(this);this.u=a;this.B=b;this.C=c;this.J=d;this.Qa=e;this.G=f;this.i=this.l=null;this.B.get().addListener(this)};
poa=function(a,b,c,d,e){var f=SZ(a.G.get(),"SLOT_TYPE_PLAYER_BYTES");a.l={slotId:f,ob:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Wb:void 0,uc:[],pc:[],gb:"surface",Ia:new WY([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Bc:new Map,ud:[],Qc:[],Nc:[],Rc:[],gb:"surface",Ia:new WY(c),zc:AFa($Y(a.C.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};d&&(nZ(a.u(),a.l,a.i),oZ(a.u(),a.l,a.i))};
M0=function(a){this.cm=a};
VHa=function(a,b){if(!a)return{Uk:[],yr:!0};a.trackingParams&&apa(RK(),a.trackingParams);if(a.adThrottled)return{Uk:[],yr:!0};a=a.playerAds;if(!a||!a.length)return{Uk:[],yr:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{Uk:[],yr:!1};if(0<b.end){var c=b.end.toString();a.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===d.kind&&d.adTimeOffset&&"-1"===d.adTimeOffset.offsetEndMilliseconds&&d.adTimeOffset.offsetEndMilliseconds!==c&&(d.adTimeOffset.offsetEndMilliseconds=c)})}return{Uk:a,
yr:!1}};
N0=function(a){g.E.call(this);this.I=a;this.listeners=[];this.i=new mx(this);g.F(this,this.i);this.i.N(this.I,"aduxclicked",this.onAdUxClicked);this.i.N(this.I,"aduxmouseover",this.jC);this.i.N(this.I,"aduxmouseout",this.iC);this.i.N(this.I,"muteadaccepted",this.BQ)};
WHa=function(a,b,c){b=g.Oe(b,function(d){return new Oz(d,c,d.id)});
a.I.Na("onAdUxUpdate",b)};
O0=function(a,b){a=g.q(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
P0=function(a){this.I=a};
Q0=function(a){this.I=a};
R0=function(){this.listeners=[]};
XHa=function(a){this.I=a};
YHa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.l=d;this.C=e;this.u=f;this.Fa=h;this.G=l;this.Xa=m;this.B=n;this.i=null;this.driftRecoveryMs=X(c.Ia,"metadata_type_drift_recovery_ms")||null};
$Ha=function(a,b){b=ZHa(a,b);a.i={Kh:b};b&&b.startRendering(b.Sb())};
bIa=function(a){var b=X(a.layout.Ia,"metadata_type_layout_enter_ms"),c=X(a.layout.Ia,"metadata_type_layout_exit_ms");a=aIa(a.u.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
ZHa=function(a,b){return null==b?null:a.B.find(function(c){return c.Sb().layoutId===b})||null};
S0=function(a,b){var c;H_(a.Xa.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.l.get().uo)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.zc.adClientDataEntry},b)})};
cIa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.u=d;this.i=e;this.Fa=f;this.G=h;this.B=l;this.C=m;this.Qa=n;this.Rw=!0;this.l=null};
eIa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(2,!1);o0(c)&&p0(d,0,null)&&$_(a.i,"impression");a.i.i.has("impression")&&(g.UI(c,4)&&!g.UI(c,2)&&a.i.Ge("pause"),0>TI(c,4)&&!(0>TI(c,2))&&a.i.Ge("resume"),g.UI(c,16)&&.5<=a.Fa.get().getCurrentTimeSec(2,!1)&&a.i.Ge("seek"),g.UI(c,2)&&dIa(a,c.state,b))};
dIa=function(a,b,c){var d,e=X(a.layout.Ia,"metadata_type_video_length_seconds"),f=A_(a.Qa.get())?null!==(d=c.Xw)&&void 0!==d?d:0:a.Fa.get().getCurrentTimeSec(2,!1),h=1>=Math.abs(e-f);fIa(a,b,h?e:f,c.Xw);h&&$_(a.i,"complete")};
fIa=function(a,b,c,d){vHa(a.i,1E3*c);var e=X(a.layout.Ia,"metadata_type_video_length_seconds");0>=e||0>=c||(null===b||void 0===b?0:g.U(b,16))||(null===b||void 0===b?0:g.U(b,32))||(p0(c,.25*e,d)&&$_(a.i,"first_quartile"),p0(c,.5*e,d)&&$_(a.i,"midpoint"),p0(c,.75*e,d)&&$_(a.i,"third_quartile"))};
T0=function(a){return{enterMs:X(a.Ia,"metadata_type_layout_enter_ms"),exitMs:X(a.Ia,"metadata_type_layout_exit_ms")}};
U0=function(a,b,c,d,e,f,h,l,m,n,p,r,t,u,x,y,B,G){this.xe=a;this.Y=b;this.l=c;this.u=d;this.Fa=e;this.Xa=f;this.X=h;this.J=l;this.i=m;this.B=n;this.qd=p;this.K=r;this.kd=t;this.Cc=u;this.C=x;this.G=y;this.U=B;this.Qa=G};
V0=function(a,b,c,d,e,f,h){g.E.call(this);var l=this;this.B=a;this.C=b;this.u=c;this.l=e;this.Fa=f;this.Qa=h;this.i=null;d.get().addListener(this);g.gf(this,function(){d.get().removeListener(l)});
e.get().addListener(this);g.gf(this,function(){e.get().removeListener(l)})};
NGa=function(a,b){if(mz(a.u.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.i)R("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.q(a.l.get().zy);for(var c=b.next();!c.done;c=b.next())gIa(a,a.i,c.value)}};
gIa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(1,!1);kz(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=A_(a.Qa.get());var h=1E3*c.startSecs;h={qk:new $q(h,h+1E3*c.durationSecs),Nx:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new $q(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new $q(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.xq=f;return[UFa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new IJ(c)])]})};
W0=function(a){g.E.call(this);this.i=a;this.Db=new Map};
X0=function(a,b){for(var c=[],d=g.q(a.Db.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&pZ(a.i(),c)};
Y0=function(a,b){var c;g.E.call(this);var d=this;this.B=a;this.l=new Map;this.u=new Map;this.i=null;b.get().addListener(this);g.gf(this,function(){b.get().removeListener(d)});
this.i=(null===(c=b.get().uo)||void 0===c?void 0:c.slotId)||null};
hIa=function(a,b){var c=[];a=g.q(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
Z0=function(a,b,c,d){g.E.call(this);this.I=a;this.B=b;this.Qa=c;this.Xa=d;this.listeners=[];this.i=new Set;this.zy=[];this.u=new qK(this,bHa(c.get()));this.l=new rK;iIa(this)};
aIa=function(a,b,c){return woa(a.l,b,c)};
iIa=function(a){var b,c=a.I.getVideoData(1);c.subscribe("cuepointupdated",a.pC,a);a.i.clear();a.zy.length=0;c=(null===(b=c.i)||void 0===b?void 0:ME(b,0))||[];a.pC(c)};
jIa=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:throw Error("Unexpected cuepoint event");}};
$0=function(a){this.I=a};
a1=function(){this.listeners=new Set};
kIa=function(a,b,c,d,e){QI.call(this,"image-companion",a,b,c,d,e)};
b1=function(a,b,c,d,e,f,h,l){b0.call(this,a,b,c,d);this.Xa=e;this.xe=f;this.G=l;this.Ui=!0;this.u=null;this.B=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");dZ(this.xe(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.C=new X_(c.Bc,this.Xa,a,c.layoutId)};
lIa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Y_().forEach(function(b){a.push(b)});
return{Wd:a,Af:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
mIa=function(a,b,c,d,e){QI.call(this,"shopping-companion",a,b,c,d,e)};
c1=function(a,b,c,d,e,f,h,l){b0.call(this,a,b,c,d);this.Xa=e;this.xe=f;this.G=l;this.Ui=!0;this.u=null;this.B=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");dZ(this.xe(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.C=new X_(c.Bc,this.Xa,a,c.layoutId)};
nIa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];Y_().forEach(function(b){a.push(b)});
return{Wd:a,Af:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
oIa=function(a,b,c,d,e){this.i=a;this.Xa=b;this.xe=c;this.l=d;this.u=e};
d1=function(a,b,c,d,e){b0.call(this,c,a,b,d);this.Xa=e;a=X(b.Ia,"metadata_type_ad_placement_config");this.u=new X_(b.Bc,e,a,b.layoutId)};
e1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
g1=function(a,b,c){c=void 0===c?f1:c;c.width<f1.width&&(c=f1);if(a.width<c.width||a.height<c.height)return{Ly:3,Wu:501,errorMessage:"ad("+e1(c)+") larger than container("+e1(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Ly:3,Wu:501,errorMessage:"ad("+e1(c)+") to container("+e1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Ly:3,Wu:501,errorMessage:"ad("+e1(c)+") covers container("+e1(a)+") center."}};
pIa=function(a,b){var c=X(a.Ia,"metadata_type_ad_placement_config");return new X_(a.Bc,b,c,a.layoutId)};
h1=function(a){return X(a.Ia,"metadata_type_invideo_overlay_ad_renderer")};
i1=function(a,b,c,d){QI.call(this,"invideo-overlay",a,b,c,d);this.i=d};
j1=function(a,b,c,d,e,f,h,l,m,n,p,r){b0.call(this,f,a,b,e);this.Xa=c;this.u=h;this.Fa=l;this.G=m;this.Qa=n;this.Cd=p;this.B=r;this.J=pIa(b,c)};
qIa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];Y_().forEach(function(b){a.push(b)});
return{Wd:a,Af:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
k1=function(a,b,c,d,e,f,h,l,m,n,p,r,t){b0.call(this,f,a,b,e);this.Xa=c;this.u=h;this.G=l;this.Fa=m;this.J=n;this.Qa=p;this.Cd=r;this.B=t;this.K=pIa(b,c)};
rIa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.q(Y_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Wd:a,Af:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
l1=function(a){this.Fa=a;this.i=!1};
m1=function(a,b,c,d,e,f){b0.call(this,c,a,b,d);this.u=e;this.Fa=f};
sIa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Fa=b;this.Xa=c;this.G=d;this.B=e;this.l=f;this.C=h;this.u=l;this.Qa=m;this.Cd=n};
n1=function(a){g.E.call(this);this.u=a;this.Ui=!0;this.Db=new Map;this.i=new Map;this.l=new Map};
tIa=function(a,b){var c=[];if(b=a.i.get(b.layoutId)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())(d=a.l.get(d.value.triggerId))&&c.push(d)}return c};
o1=function(a,b,c){g.E.call(this);this.u=a;this.B=b;this.C=c;this.i=this.l=void 0;this.B.get().addListener(this)};
uIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.Y=Y(function(){return new a_});
g.F(this,this.Y);this.Da=Y(function(){return new e_(f.Y)});
g.F(this,this.Da);this.B=Y(function(){return new $Z});
g.F(this,this.B);this.G=Y(function(){return new WZ(a)});
g.F(this,this.G);this.J=Y(function(){return new r_(f.Y)});
g.F(this,this.J);this.Bb=Y(function(){return new u_});
g.F(this,this.Bb);this.Nb=Y(function(){return new RI(b.T())});
g.F(this,this.Nb);this.ma=Y(function(){return new N0(b)});
g.F(this,this.ma);this.Pa=Y(function(){return new M_(e)});
g.F(this,this.Pa);this.kd=Y(function(){return new vK(b)});
g.F(this,this.kd);this.Aa=Y(function(){return new w_(b)});
g.F(this,this.Aa);this.qd=Y(function(){return new P0(b)});
g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)});
g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)});
g.F(this,this.Qa);this.Hb=Y(function(){return new M0(d)});
g.F(this,this.Hb);this.u=Y(function(){return new bZ(f.Qa)});
g.F(this,this.u);this.Ga=Y(function(){return new UZ(f.J,f.Da,f.Qa,f.u,"SLOT_TYPE_ABOVE_FEED",f.Ya)});
g.F(this,this.Ga);this.wc=Y(function(){return new Q0(b)});
g.F(this,this.wc);this.eb=Y(function(){return new R0});
g.F(this,this.eb);this.bb=Y(function(){return new a1});
g.F(this,this.bb);this.i=Y(function(){return new K_(b,f.Bb,f.Qa)});
g.F(this,this.i);this.Zb=new t_(this.Qa,this.u,this.i);g.F(this,this.Zb);this.xa=Y(function(){return new Z0(b,f.i,f.Qa,f.Xa)});
g.F(this,this.xa);this.qb=Y(function(){return new $0(b)});
g.F(this,this.qb);this.Fa=Y(function(){return new L_(b)});
g.F(this,this.Fa);this.Id=Y(function(){return new N_});
this.X=Y(function(){return new C_(f.Fa,b)});
g.F(this,this.X);this.Xa=Y(function(){return new F_(b,f.B,f.X,f.i)});
g.F(this,this.Xa);this.Gc=new y0(z0,p1,function(l,m,n,p){return f_(f.Da.get(),l,m,n,p)},this.G,this.J,this.u,this.Qa,this.i);
g.F(this,this.Gc);this.lc=new qz(this.G,this.Ga,c,this.Qa,a,this.i,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa,this.xa);this.Ua=Y(function(){return h});
this.El=h;this.Ya=new V0(this.G,this.J,this.i,this.Ua,this.xa,this.Fa,this.Qa);g.F(this,this.Ya);this.wb=new ZZ(this.G,this.J,this.Aa,this.Ua);g.F(this,this.wb);this.qc=new jz(this.G,this.J,this.Ga,this.i,this.wb,c);g.F(this,this.qc);this.Kb=Y(function(){return new T_(f.Hb,f.Da,f.u,f.qb)});
g.F(this,this.Kb);this.K=Y(function(){return new U_});
g.F(this,this.K);this.va=new E0(a,this.ma);g.F(this,this.va);this.l=new F0(a);g.F(this,this.l);this.La=new W0(a);g.F(this,this.La);this.Va=new G0(a,this.Ua,this.Qa);g.F(this,this.Va);this.Ea=new H0(a,this.Aa,this.Fa,this.i);g.F(this,this.Ea);this.jb=new Y0(a,this.i);g.F(this,this.jb);this.C=new J0(a);g.F(this,this.C);this.xc=new K0(a);g.F(this,this.xc);this.yb=new n1(a);g.F(this,this.yb);this.U=Y(function(){return new A0});
g.F(this,this.U);this.bd=Y(function(){return new B0(f.Fa)});
g.F(this,this.bd);this.Tc=Y(function(){return new oIa(f.ma,f.Xa,a,f.B,f.X)});
g.F(this,this.Tc);this.Jb=Y(function(){return new W_(f.qc)});
g.F(this,this.Jb);this.Ob=Y(function(){return new a0(f.Xa,f.C)});
g.F(this,this.Ob);this.Ac=Y(function(){return new U0(a,f.C,f.i,f.qb,f.Fa,f.Xa,f.Bb,f.xa,f.X,f.Id,f.qd,f.Aa,f.kd,f.Cc,f.Nb,f.Pa,f.wc,f.Qa)});
g.F(this,this.Ac);this.Vb=Y(function(){return new sIa(f.ma,f.Fa,f.Xa,f.B,f.X,f.La,f.yb,f.Pa,f.Qa,c)});
g.F(this,this.Vb);this.cd=new o1(a,this.bb,this.Y);g.F(this,this.cd);this.dd=new L0(a,this.eb,this.u,this.i,this.Qa,this.Y);g.F(this,this.dd);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.wb]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Kb],["SLOT_TYPE_ABOVE_FEED",this.K],["SLOT_TYPE_FORECASTING",this.K],["SLOT_TYPE_IN_PLAYER",this.K],["SLOT_TYPE_PLAYER_BYTES",this.K]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.va],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.va],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l],
["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.l],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.l],["TRIGGER_TYPE_CLOSE_REQUESTED",this.La],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Va],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ea],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ea],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ea],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Va],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.yb]]),Ol:new Map([["SLOT_TYPE_ABOVE_FEED",this.U],["SLOT_TYPE_AD_BREAK_REQUEST",this.U],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES",this.bd]]),yl:new Map([["SLOT_TYPE_ABOVE_FEED",
this.Tc],["SLOT_TYPE_AD_BREAK_REQUEST",this.Jb],["SLOT_TYPE_FORECASTING",this.Ob],["SLOT_TYPE_PLAYER_BYTES",this.Ac],["SLOT_TYPE_IN_PLAYER",this.Vb]])};this.listeners=[this.B.get()];this.pe={qc:this.qc,Lj:this.C,Al:this.eb.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:this.bb.get(),Xh:this.va,Pg:this.B.get()}};
vIa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Fa=b;this.Xa=c;this.G=d;this.B=e;this.l=f;this.C=h;this.u=l;this.Qa=m;this.Cd=n};
wIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.B=Y(function(){return new a_});
g.F(this,this.B);this.va=Y(function(){return new e_(f.B)});
g.F(this,this.va);this.C=Y(function(){return new $Z});
g.F(this,this.C);this.J=Y(function(){return new WZ(a)});
g.F(this,this.J);this.K=Y(function(){return new r_(f.B)});
g.F(this,this.K);this.xc=Y(function(){return new u_});
g.F(this,this.xc);this.wb=Y(function(){return new RI(b.T())});
g.F(this,this.wb);this.Ea=Y(function(){return new N0(b)});
g.F(this,this.Ea);this.La=Y(function(){return new M_(e)});
g.F(this,this.La);this.kd=Y(function(){return new vK(b)});
g.F(this,this.kd);this.U=Y(function(){return new w_(b)});
g.F(this,this.U);this.qd=Y(function(){return new P0(b)});
g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)});
g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)});
g.F(this,this.Qa);this.eb=Y(function(){return new M0(d)});
g.F(this,this.eb);this.u=Y(function(){return new bZ(f.Qa)});
g.F(this,this.u);this.Aa=Y(function(){return new UZ(f.K,f.va,f.Qa,f.u,null,null)});
g.F(this,this.Aa);this.Jb=Y(function(){return new Q0(b)});
g.F(this,this.Jb);this.Va=Y(function(){return new R0});
g.F(this,this.Va);this.Ua=Y(function(){return new a1});
g.F(this,this.Ua);this.l=Y(function(){return new K_(b,f.xc,f.Qa)});
g.F(this,this.l);this.Zb=new t_(this.Qa,this.u,this.l);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)});
g.F(this,this.Fa);this.xa=Y(function(){return new C_(f.Fa,b)});
g.F(this,this.xa);this.Xa=Y(function(){return new F_(b,f.C,f.xa,f.l)});
g.F(this,this.Xa);this.wc=Y(function(){return new N_});
g.F(this,this.wc);this.Ob=new y0(z0,p1,function(l,m,n,p){return f_(f.va.get(),l,m,n,p)},this.J,this.K,this.u,this.Qa,this.l);
g.F(this,this.Ob);this.lc=new qz(this.J,this.Aa,c,this.Qa,a,this.l,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa);this.yb=Y(function(){return h});
this.El=h;this.Ya=new ZZ(this.J,this.K,this.U,this.yb);g.F(this,this.Ya);this.qc=new jz(this.J,this.K,this.Aa,this.l,this.Ya,c);g.F(this,this.qc);this.qb=Y(function(){return new T_(f.eb,f.va,f.u)});
g.F(this,this.qb);this.X=Y(function(){return new U_});
g.F(this,this.X);this.Da=new E0(a,this.Ea);g.F(this,this.Da);this.i=new F0(a);g.F(this,this.i);this.Ga=new W0(a);g.F(this,this.Ga);this.Pa=new G0(a,this.yb,this.Qa);g.F(this,this.Pa);this.Y=new H0(a,this.U,this.Fa,this.l);g.F(this,this.Y);this.G=new J0(a);g.F(this,this.G);this.Kb=new K0(a);g.F(this,this.Kb);this.bb=new n1(a);g.F(this,this.bb);this.ma=Y(function(){return new A0});
g.F(this,this.ma);this.Vb=Y(function(){return new B0(f.Fa)});
g.F(this,this.Vb);this.jb=Y(function(){return new W_(f.qc)});
g.F(this,this.jb);this.Bb=Y(function(){return new a0(f.Xa,f.G)});
g.F(this,this.Bb);this.Hb=Y(function(){return new vIa(f.Ea,f.Fa,f.Xa,f.C,f.xa,f.Ga,f.bb,f.La,f.Qa,c)});
g.F(this,this.Hb);this.Nb=Y(function(){return new x0(a,f.G,f.Xa,f.xa,f.wc,f.qd,f.l,f.Fa,f.U,f.kd,f.Cc,f.wb,f.La,f.Jb,f.Qa)});
g.F(this,this.Nb);this.Ac=new o1(a,this.Ua,this.B);g.F(this,this.Ac);this.Gc=new L0(a,this.Va,this.u,this.l,this.Qa,this.B);g.F(this,this.Gc);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ob],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qb],["SLOT_TYPE_FORECASTING",this.X],["SLOT_TYPE_IN_PLAYER",
this.X],["SLOT_TYPE_PLAYER_BYTES",this.X]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.i],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ga],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Pa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Y],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Y],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Y],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.G],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.G],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Pa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.Kb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.bb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ma],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.Vb]]),yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jb],["SLOT_TYPE_FORECASTING",this.Bb],["SLOT_TYPE_IN_PLAYER",this.Hb],["SLOT_TYPE_PLAYER_BYTES",this.Nb]])};this.listeners=[this.C.get()];this.pe={qc:this.qc,Lj:null,Al:this.Va.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:this.Ua.get(),
Xh:this.Da,Pg:this.C.get()}};
xIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.X=Y(function(){return new a_});
g.F(this,this.X);this.ma=Y(function(){return new e_(f.X)});
g.F(this,this.ma);this.C=Y(function(){return new $Z});
g.F(this,this.C);this.J=Y(function(){return new WZ(a)});
g.F(this,this.J);this.K=Y(function(){return new r_(f.X)});
g.F(this,this.K);this.Nb=Y(function(){return new u_});
g.F(this,this.Nb);this.bb=Y(function(){return new RI(b.T())});
g.F(this,this.bb);this.xa=Y(function(){return new N0(b)});
g.F(this,this.xa);this.eb=Y(function(){return new M_(e)});
g.F(this,this.eb);this.kd=Y(function(){return new vK(b)});
g.F(this,this.kd);this.U=Y(function(){return new w_(b)});
g.F(this,this.U);this.qd=Y(function(){return new P0(b)});
g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)});
g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)});
g.F(this,this.Qa);this.Ua=Y(function(){return new M0(d)});
g.F(this,this.Ua);this.u=Y(function(){return new bZ(f.Qa)});
g.F(this,this.u);this.va=Y(function(){return new UZ(f.K,f.ma,f.Qa,f.u,null,null)});
g.F(this,this.va);this.wb=Y(function(){return new Q0(b)});
g.F(this,this.wb);this.Ga=Y(function(){return new R0});
g.F(this,this.Ga);this.l=Y(function(){return new K_(b,f.Nb,f.Qa)});
g.F(this,this.l);this.Zb=new t_(this.Qa,this.u,this.l);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)});
g.F(this,this.Fa);this.La=Y(function(){return new C_(f.Fa,b)});
g.F(this,this.La);this.Xa=Y(function(){return new F_(b,f.C,f.La,f.l)});
g.F(this,this.Xa);this.Kb=Y(function(){return new N_});
g.F(this,this.Kb);this.Hb=new y0(z0,p1,function(l,m,n,p){return f_(f.ma.get(),l,m,n,p)},this.J,this.K,this.u,this.Qa,this.l);
g.F(this,this.Hb);this.lc=new qz(this.J,this.va,c,this.Qa,a,this.l,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa);this.jb=Y(function(){return h});
this.El=h;this.Pa=new ZZ(this.J,this.K,this.U,this.jb);g.F(this,this.Pa);this.qc=new jz(this.J,this.K,this.va,this.l,this.Pa,c);g.F(this,this.qc);this.Ya=Y(function(){return new T_(f.Ua,f.ma,f.u)});
g.F(this,this.Ya);this.Y=Y(function(){return new U_});
g.F(this,this.Y);this.Aa=new E0(a,this.xa);g.F(this,this.Aa);this.i=new F0(a);g.F(this,this.i);this.Ea=new G0(a,this.jb,this.Qa);g.F(this,this.Ea);this.Da=new H0(a,this.U,this.Fa,this.l);g.F(this,this.Da);this.G=new J0(a);g.F(this,this.G);this.yb=new K0(a);g.F(this,this.yb);this.B=Y(function(){return new A0});
g.F(this,this.B);this.Jb=Y(function(){return new B0(f.Fa)});
g.F(this,this.Jb);this.Va=Y(function(){return new W_(f.qc)});
g.F(this,this.Va);this.qb=Y(function(){return new a0(f.Xa,f.G)});
g.F(this,this.qb);this.Ob=Y(function(){return new i0(f.xa,f.Fa,f.Xa,f.C,c)});
g.F(this,this.Ob);this.Bb=Y(function(){return new x0(a,f.G,f.Xa,f.La,f.Kb,f.qd,f.l,f.Fa,f.U,f.kd,f.Cc,f.bb,f.eb,f.wb,f.Qa)});
g.F(this,this.Bb);this.Vb=new L0(a,this.Ga,this.u,this.l,this.Qa,this.X);g.F(this,this.Vb);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Pa]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",
this.Y]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ea],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Da],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Da],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.G],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.G],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ea],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.yb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.Jb]]),
yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Va],["SLOT_TYPE_FORECASTING",this.qb],["SLOT_TYPE_IN_PLAYER",this.Ob],["SLOT_TYPE_PLAYER_BYTES",this.Bb]])};this.listeners=[this.C.get()];this.pe={qc:this.qc,Lj:null,Al:this.Ga.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:this.Aa,Pg:this.C.get()}};
yIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.X=Y(function(){return new a_});
g.F(this,this.X);this.ma=Y(function(){return new e_(f.X)});
g.F(this,this.ma);this.B=Y(function(){return new $Z});
g.F(this,this.B);this.G=Y(function(){return new WZ(a)});
g.F(this,this.G);this.J=Y(function(){return new r_(f.X)});
g.F(this,this.J);this.Ob=Y(function(){return new u_});
g.F(this,this.Ob);this.Ya=Y(function(){return new RI(b.T())});
g.F(this,this.Ya);this.xa=Y(function(){return new N0(b)});
g.F(this,this.xa);this.bb=Y(function(){return new M_(e)});
g.F(this,this.bb);this.kd=Y(function(){return new vK(b)});
g.F(this,this.kd);this.K=Y(function(){return new w_(b)});
g.F(this,this.K);this.qd=Y(function(){return new P0(b)});
g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)});
g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)});
g.F(this,this.Qa);this.Pa=Y(function(){return new M0(d)});
g.F(this,this.Pa);this.u=Y(function(){return new bZ(f.Qa)});
g.F(this,this.u);this.va=Y(function(){return new UZ(f.J,f.ma,f.Qa,f.u,null,null)});
g.F(this,this.va);this.yb=Y(function(){return new Q0(b)});
g.F(this,this.yb);this.Da=Y(function(){return new R0});
g.F(this,this.Da);this.l=Y(function(){return new K_(b,f.Ob,f.Qa)});
g.F(this,this.l);this.Zb=new t_(this.Qa,this.u,this.l);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)});
g.F(this,this.Fa);this.Ga=Y(function(){return new C_(f.Fa,b)});
g.F(this,this.Ga);this.Xa=Y(function(){return new F_(b,f.B,f.Ga,f.l)});
g.F(this,this.Xa);this.Nb=Y(function(){return new N_});
g.F(this,this.Nb);this.Jb=new y0(z0,p1,function(l,m,n,p){return f_(f.ma.get(),l,m,n,p)},this.G,this.J,this.u,this.Qa,this.l);
g.F(this,this.Jb);this.lc=new qz(this.G,this.va,c,this.Qa,a,this.l,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa);this.eb=Y(function(){return h});
this.El=h;this.La=new ZZ(this.G,this.J,this.K,this.eb);g.F(this,this.La);this.qc=new jz(this.G,this.J,this.va,this.l,this.La,c);g.F(this,this.qc);this.Va=Y(function(){return new T_(f.Pa,f.ma,f.u)});
g.F(this,this.Va);this.U=Y(function(){return new U_});
g.F(this,this.U);this.Aa=new E0(a,this.xa);g.F(this,this.Aa);this.i=new F0(a);g.F(this,this.i);this.Ea=new G0(a,this.eb,this.Qa);g.F(this,this.Ea);this.jb=new H0(a,this.K,this.Fa,this.l);g.F(this,this.jb);this.C=new J0(a);g.F(this,this.C);this.Bb=new K0(a);g.F(this,this.Bb);this.Y=Y(function(){return new A0});
g.F(this,this.Y);this.Kb=Y(function(){return new B0(f.Fa)});
g.F(this,this.Kb);this.Ua=Y(function(){return new W_(f.qc)});
g.F(this,this.Ua);this.qb=Y(function(){return new a0(f.Xa,f.C)});
g.F(this,this.qb);this.wb=Y(function(){return new i0(f.xa,f.Fa,f.Xa,f.B,c)});
g.F(this,this.wb);this.Hb=Y(function(){return new x0(a,f.C,f.Xa,f.Ga,f.Nb,f.qd,f.l,f.Fa,f.K,f.kd,f.Cc,f.Ya,f.bb,f.yb,f.Qa)});
g.F(this,this.Hb);this.Vb=new L0(a,this.Da,this.u,this.l,this.Qa,this.X);g.F(this,this.Vb);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.La]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Va],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES",
this.U]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ea],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ea],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Bb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Kb]]),yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ua],["SLOT_TYPE_FORECASTING",
this.qb],["SLOT_TYPE_IN_PLAYER",this.wb],["SLOT_TYPE_PLAYER_BYTES",this.Hb]])};this.listeners=[this.B.get()];this.pe={qc:this.qc,Lj:null,Al:this.Da.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:this.Aa,Pg:this.B.get()}};
q1=function(a,b,c,d,e,f,h,l,m){g0.call(this,a,b,c,d,e,f,h,m);this.G=l};
zIa=function(){var a=BHa();a.Wd.push("metadata_type_ad_info_ad_metadata");return a};
AIa=function(a,b,c,d,e,f){this.l=a;this.Fa=b;this.Xa=c;this.u=d;this.i=e;this.Cd=f};
BIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.X=Y(function(){return new a_});
g.F(this,this.X);this.ma=Y(function(){return new e_(f.X)});
g.F(this,this.ma);this.B=Y(function(){return new $Z});
g.F(this,this.B);this.G=Y(function(){return new WZ(a)});
g.F(this,this.G);this.J=Y(function(){return new r_(f.X)});
g.F(this,this.J);this.Ob=Y(function(){return new u_});
g.F(this,this.Ob);this.bb=Y(function(){return new XHa(b)});
g.F(this,this.bb);this.eb=Y(function(){return new RI(b.T())});
g.F(this,this.eb);this.xa=Y(function(){return new N0(b)});
g.F(this,this.xa);this.jb=Y(function(){return new M_(e)});
g.F(this,this.jb);this.kd=Y(function(){return new vK(b)});
g.F(this,this.kd);this.K=Y(function(){return new w_(b)});
g.F(this,this.K);this.qd=Y(function(){return new P0(b)});
g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)});
g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)});
g.F(this,this.Qa);this.Ua=Y(function(){return new M0(d)});
g.F(this,this.Ua);this.u=Y(function(){return new bZ(f.Qa)});
g.F(this,this.u);this.va=Y(function(){return new UZ(f.J,f.ma,f.Qa,f.u,null,null)});
g.F(this,this.va);this.yb=Y(function(){return new Q0(b)});
g.F(this,this.yb);this.Ga=Y(function(){return new R0});
g.F(this,this.Ga);this.l=Y(function(){return new K_(b,f.Ob,f.Qa)});
g.F(this,this.l);this.Zb=new t_(this.Qa,this.u,this.l);g.F(this,this.Zb);this.Fa=Y(function(){return new L_(b)});
g.F(this,this.Fa);this.La=Y(function(){return new C_(f.Fa,b)});
g.F(this,this.La);this.Xa=Y(function(){return new F_(b,f.B,f.La,f.l)});
g.F(this,this.Xa);this.Nb=Y(function(){return new N_});
g.F(this,this.Nb);this.Jb=new y0(NHa,p1,function(l,m,n,p){return TGa(f.ma.get(),l,m,n,p)},this.G,this.J,this.u,this.Qa,this.l);
g.F(this,this.Jb);this.lc=new qz(this.G,this.va,c,this.Qa,a,this.l,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa);this.qb=Y(function(){return h});
this.El=h;this.Pa=new ZZ(this.G,this.J,this.K,this.qb);g.F(this,this.Pa);this.qc=new jz(this.G,this.J,this.va,this.l,this.Pa,c);g.F(this,this.qc);this.Ya=Y(function(){return new T_(f.Ua,f.ma,f.u)});
g.F(this,this.Ya);this.U=Y(function(){return new U_});
g.F(this,this.U);this.Aa=new E0(a,this.xa);g.F(this,this.Aa);this.i=new F0(a);g.F(this,this.i);this.Ea=new G0(a,this.qb,this.Qa);g.F(this,this.Ea);this.Da=new H0(a,this.K,this.Fa,this.l);g.F(this,this.Da);this.C=new J0(a);g.F(this,this.C);this.Bb=new K0(a);g.F(this,this.Bb);this.Y=Y(function(){return new A0});
g.F(this,this.Y);this.Kb=Y(function(){return new B0(f.Fa)});
g.F(this,this.Kb);this.Va=Y(function(){return new W_(f.qc)});
g.F(this,this.Va);this.wb=Y(function(){return new a0(f.Xa,f.C)});
g.F(this,this.wb);this.Hb=Y(function(){return new x0(a,f.C,f.Xa,f.La,f.Nb,f.qd,f.l,f.Fa,f.K,f.kd,f.Cc,f.eb,f.jb,f.yb,f.Qa)});
g.F(this,this.Hb);this.Vb=Y(function(){return new AIa(f.xa,f.Fa,f.Xa,f.B,f.bb,c)});
g.F(this,this.Vb);this.wc=new L0(a,this.Ga,this.u,this.l,this.Qa,this.X);g.F(this,this.wc);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Jb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Pa]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ya],["SLOT_TYPE_FORECASTING",this.U],["SLOT_TYPE_IN_PLAYER",this.U],["SLOT_TYPE_PLAYER_BYTES",
this.U]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Aa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.i],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.i],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.i],["TRIGGER_TYPE_SLOT_ID_EXITED",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.i],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.i],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ea],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Da],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Da],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.C],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.C],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ea],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Bb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Y],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Kb]]),yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Va],["SLOT_TYPE_FORECASTING",this.wb],["SLOT_TYPE_IN_PLAYER",this.Vb],["SLOT_TYPE_PLAYER_BYTES",this.Hb]])};this.listeners=[this.B.get()];this.pe={qc:this.qc,Lj:null,Al:this.Ga.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:this.Aa,Pg:this.B.get()}};
CIa=function(a,b,c,d,e,f,h){this.i=a;this.Fa=b;this.Xa=c;this.l=d;this.u=e;this.Cd=f;this.Qa=h};
DIa=function(a,b,c,d,e){g.E.call(this);var f=this;this.ma=Y(function(){return new a_});
g.F(this,this.ma);this.va=Y(function(){return new e_(f.ma)});
g.F(this,this.va);this.G=Y(function(){return new $Z});
g.F(this,this.G);this.B=Y(function(){return new WZ(a)});
g.F(this,this.B);this.C=Y(function(){return new r_(f.ma)});
g.F(this,this.C);this.jb=Y(function(){return new u_});
g.F(this,this.jb);this.Bb=Y(function(){return new XHa(b)});
g.F(this,this.Bb);this.Hb=Y(function(){return new RI(b.T())});
g.F(this,this.Hb);this.Aa=Y(function(){return new N0(b)});
g.F(this,this.Aa);this.Jb=Y(function(){return new M_(e)});
g.F(this,this.Jb);this.kd=Y(function(){return new vK(b)});
g.F(this,this.kd);this.U=Y(function(){return new w_(b)});
g.F(this,this.U);this.qd=Y(function(){return new P0(b)});
g.F(this,this.qd);this.Cc=Y(function(){return new x_(b)});
g.F(this,this.Cc);this.Qa=Y(function(){return new y_(b)});
g.F(this,this.Qa);this.qb=Y(function(){return new M0(d)});
g.F(this,this.qb);this.u=Y(function(){return new bZ(f.Qa)});
g.F(this,this.u);this.xa=Y(function(){return new UZ(f.C,f.va,f.Qa,f.u,null,f.La,3)});
g.F(this,this.xa);this.Ob=Y(function(){return new Q0(b)});
g.F(this,this.Ob);this.Ua=Y(function(){return new R0});
g.F(this,this.Ua);this.i=Y(function(){return new K_(b,f.jb,f.Qa)});
g.F(this,this.i);this.Zb=new t_(this.Qa,this.u,this.i);g.F(this,this.Zb);this.K=Y(function(){return new Z0(b,f.i,f.Qa,f.Xa)});
g.F(this,this.K);this.bb=Y(function(){return new $0(b)});
g.F(this,this.bb);this.Fa=Y(function(){return new L_(b)});
g.F(this,this.Fa);this.bd=Y(function(){return new N_});
this.Va=Y(function(){return new C_(f.Fa,b)});
g.F(this,this.Va);this.Xa=Y(function(){return new F_(b,f.G,f.Va,f.i)});
g.F(this,this.Xa);this.lc=new qz(this.B,this.xa,c,this.Qa,a,this.i,this.Fa);g.F(this,this.lc);var h=new v_(b,this.lc,this.Fa,this.K);this.Da=Y(function(){return h});
this.El=h;this.xc=new y0(OHa,p1,function(l,m,n,p){return TGa(f.va.get(),l,m,n,p)},this.B,this.C,this.u,this.Qa,this.i);
g.F(this,this.xc);this.La=new V0(this.B,this.C,this.i,this.Da,this.K,this.Fa,this.Qa);g.F(this,this.La);this.eb=new ZZ(this.B,this.C,this.U,this.Da);g.F(this,this.eb);this.qc=new jz(this.B,this.C,this.xa,this.i,this.eb,c);g.F(this,this.qc);this.yb=Y(function(){return new T_(f.qb,f.va,f.u,f.bb)});
g.F(this,this.yb);this.Y=Y(function(){return new U_});
g.F(this,this.Y);this.Ea=new E0(a,this.Aa);g.F(this,this.Ea);this.l=new F0(a);g.F(this,this.l);this.Ga=new G0(a,this.Da,this.Qa);g.F(this,this.Ga);this.Pa=new H0(a,this.U,this.Fa,this.i);g.F(this,this.Pa);this.Ya=new Y0(a,this.i);g.F(this,this.Ya);this.J=new J0(a);g.F(this,this.J);this.Vb=new K0(a);g.F(this,this.Vb);this.X=Y(function(){return new A0});
g.F(this,this.X);this.Ac=Y(function(){return new B0(f.Fa)});
g.F(this,this.Ac);this.wb=Y(function(){return new W_(f.qc)});
g.F(this,this.wb);this.Kb=Y(function(){return new a0(f.Xa,f.J)});
g.F(this,this.Kb);this.wc=Y(function(){return new U0(a,f.J,f.i,f.bb,f.Fa,f.Xa,f.jb,f.K,f.Va,f.bd,f.qd,f.U,f.kd,f.Cc,f.Hb,f.Jb,f.Ob,f.Qa)});
g.F(this,this.wc);this.Nb=Y(function(){return new CIa(f.Aa,f.Fa,f.Xa,f.G,f.Bb,c,f.Qa)});
g.F(this,this.Nb);this.Gc=new L0(a,this.Ua,this.u,this.i,this.Qa,this.ma);g.F(this,this.Gc);this.zd={hp:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.La],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.eb]]),il:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.yb],["SLOT_TYPE_FORECASTING",this.Y],
["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",this.Y]]),Dh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.l],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.l],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.l],["TRIGGER_TYPE_SLOT_ID_EXITED",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.l],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.l],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ga],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Pa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Pa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ya],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ya],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.J],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.J],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ga],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vb]]),Ol:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.X],["SLOT_TYPE_FORECASTING",this.X],["SLOT_TYPE_IN_PLAYER",this.X],["SLOT_TYPE_PLAYER_BYTES",this.Ac]]),yl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wb],["SLOT_TYPE_FORECASTING",this.Kb],["SLOT_TYPE_PLAYER_BYTES",this.wc],["SLOT_TYPE_IN_PLAYER",this.Nb]])};this.listeners=[this.G.get()];this.pe={qc:this.qc,Lj:null,Al:this.Ua.get(),kh:this.Qa.get(),cn:this.Fa.get(),lc:this.lc,zl:null,Xh:this.Ea,Pg:this.G.get()}};
r1=function(a,b,c,d){g.E.call(this);var e=this;this.i=EIa(function(){return e.l},a,b,c,d);
g.F(this,this.i);this.l=(new AZ(this.i)).u();g.F(this,this.l)};
EIa=function(a,b,c,d,e){try{var f=b.T();if(g.BG(f))var h=new uIa(a,b,c,d,e);else if(g.FG(f))h=new wIa(a,b,c,d,e);else if(ela(f))h=new yIa(a,b,c,d,e);else if(cG(f))h=new xIa(a,b,c,d,e);else if(g.VF(f))h=new BIa(a,b,c,d,e);else if(g.UF(f))h=new DIa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),R("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,L7:e.deviceParams.cver,K7:e.deviceParams.ctheme,
J7:e.deviceParams.cplayer,X7:e.playerStyle}),new pHa(a,b,c,d)}};
s1=function(a,b){this.i=a;this.Lj=b};
t1=function(a){WL.call(this,a)};
u1=function(a,b,c,d,e){cM.call(this,a,b,{D:"div",L:"ytp-ad-timed-pie-countdown-container",S:[{D:"svg",L:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},S:[{D:"circle",L:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{D:"circle",L:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{D:"circle",L:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.Ba("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI);
this.hide()};
v1=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",L:"ytp-ad-action-interstitial",V:{tabindex:"0"},S:[{D:"div",L:"ytp-ad-action-interstitial-background-container"},{D:"div",L:"ytp-ad-action-interstitial-slot",S:[{D:"div",L:"ytp-ad-action-interstitial-card",S:[{D:"div",L:"ytp-ad-action-interstitial-image-container"},{D:"div",L:"ytp-ad-action-interstitial-headline-container"},{D:"div",L:"ytp-ad-action-interstitial-description-container"},{D:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.Zg=e;this.wi=f;this.navigationEndpoint=this.l=this.skipButton=this.u=this.actionButton=null;this.Da=this.Ba("ytp-ad-action-interstitial-image-container");this.C=new SL(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-image");g.F(this,this.C);this.C.ya(this.Da);this.Aa=this.Ba("ytp-ad-action-interstitial-headline-container");this.X=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-headline");g.F(this,this.X);this.X.ya(this.Aa);
this.xa=this.Ba("ytp-ad-action-interstitial-description-container");this.K=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-description");g.F(this,this.K);this.K.ya(this.xa);this.Pa=this.Ba("ytp-ad-action-interstitial-background-container");this.G=new SL(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-action-interstitial-background",!0);g.F(this,this.G);this.G.ya(this.Pa);this.Ga=this.Ba("ytp-ad-action-interstitial-action-button-container");this.B=new mx;g.F(this,this.B);this.hide()};
FIa=function(a){var b=g.cg("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)};
w1=function(a,b,c,d){yL.call(this,a,b,{D:"div",L:"ytp-ad-overlay-slot",S:[{D:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.K=[];this.Va=this.xa=this.C=this.Pa=this.Da=null;this.Ga=!1;this.G=null;this.X=0;a=this.Ba("ytp-ad-overlay-container");this.Aa=new lM(a,45E3,6E3,.3,.4);g.F(this,this.Aa);this.B=GIa(this);g.F(this,this.B);this.B.ya(a);this.u=HIa(this);g.F(this,this.u);this.u.ya(a);this.l=IIa(this);g.F(this,this.l);this.l.ya(a);this.hide()};
GIa=function(a){var b=new g.xL({D:"div",L:"ytp-ad-text-overlay",S:[{D:"div",L:"ytp-ad-overlay-ad-info-button-container"},{D:"div",L:"ytp-ad-overlay-close-container",S:[{D:"button",L:"ytp-ad-overlay-close-button",S:[LL(x1)]}]},{D:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{D:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{D:"div",Ca:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.N(b.Ba("ytp-ad-overlay-title"),"click",function(c){return y1(a,b.element,
c)});
a.N(b.Ba("ytp-ad-overlay-link"),"click",function(c){return y1(a,b.element,c)});
a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Zh);b.hide();return b};
HIa=function(a){var b=new g.xL({D:"div",Ca:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{D:"div",L:"ytp-ad-overlay-ad-info-button-container"},{D:"div",L:"ytp-ad-overlay-close-container",S:[{D:"button",L:"ytp-ad-overlay-close-button",S:[LL(x1)]}]},{D:"div",L:"ytp-ad-overlay-text-image",S:[{D:"img",V:{src:"{{imageUrl}}"}}]},{D:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{D:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{D:"div",Ca:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
oa:"{{displayUrl}}"}]});a.N(b.Ba("ytp-ad-overlay-title"),"click",function(c){return y1(a,b.element,c)});
a.N(b.Ba("ytp-ad-overlay-link"),"click",function(c){return y1(a,b.element,c)});
a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Zh);a.N(b.Ba("ytp-ad-overlay-text-image"),"click",a.lT);b.hide();return b};
IIa=function(a){var b=new g.xL({D:"div",L:"ytp-ad-image-overlay",S:[{D:"div",L:"ytp-ad-overlay-ad-info-button-container"},{D:"div",L:"ytp-ad-overlay-close-container",S:[{D:"button",L:"ytp-ad-overlay-close-button",S:[LL(x1)]}]},{D:"div",L:"ytp-ad-overlay-image",S:[{D:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.Ba("ytp-ad-overlay-image"),"click",function(c){return y1(a,b.element,c)});
a.N(b.Ba("ytp-ad-overlay-close-container"),"click",a.Zh);b.hide();return b};
z1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.Tx(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.cg("video-ads ytp-ad-module")||null,null==b)g.Tx(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.xa=new g.xL({D:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.F(a,a.xa),a.xa.ya(b),b=new $L(a.api,a.Ta,a.layoutId,a.i,a.xa.element,!1),g.F(a,b),b.init(PI("ad-info-hover-text-button"),c,
a.macros),a.G){b.ya(a.G,0);b.subscribe("f",a.uQ,a);b.subscribe("e",a.wC,a);a.N(a.G,"click",a.vQ);var d=g.cg("ytp-ad-button",b.element);a.N(d,"click",function(){var e,f,h;if(null===(h=null===(f=null===(e=c.button)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.serviceEndpoint)||void 0===h?0:h.adInfoDialogEndpoint)a.Ga=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.Va=b}else g.Tx(Error("Ad info button container within overlay ad was not present."))}else g.Ux(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
JIa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
KIa=function(a,b){if(A1(a,B1)||a.api.Ce())return!1;var c=zL(b.title),d=zL(b.description);if(g.rc(c)||g.rc(d))return!1;a.Ig(a.B.element,b.trackingParams||null);a.B.Sa("title",zL(b.title));a.B.Sa("description",zL(b.description));a.B.Sa("displayUrl",zL(b.displayUrl));b.navigationEndpoint&&sb(a.K,b.navigationEndpoint);a.B.show();a.Aa.start();a.ib(a.B.element,!0);a.N(a.B.element,"mouseover",function(){a.X++});
return!0};
LIa=function(a,b){if(A1(a,B1)||a.api.Ce())return!1;var c=zL(b.title),d=zL(b.description);if(g.rc(c)||g.rc(d))return!1;a.Ig(a.u.element,b.trackingParams||null);a.u.Sa("title",zL(b.title));a.u.Sa("description",zL(b.description));a.u.Sa("displayUrl",zL(b.displayUrl));a.u.Sa("imageUrl",Fqa(b.image));b.navigationEndpoint&&sb(a.K,b.navigationEndpoint);a.Pa=b.imageNavigationEndpoint||null;a.u.show();a.Aa.start();a.ib(a.u.element,!0);a.N(a.u.element,"mouseover",function(){a.X++});
return!0};
MIa=function(a,b){if(a.api.Ce())return!1;var c=Gqa(b.image),d=c;c.width<B1.width&&(d=B1);if(0===c.width||0===c.height||A1(a,d))return!1;a.Ig(a.l.element,b.trackingParams||null);a.l.Sa("imageUrl",Fqa(b.image));a.l.Sa("width",c.width);a.l.Sa("height",c.height);b.navigationEndpoint&&sb(a.K,b.navigationEndpoint);b=a.l.Ba("ytp-ad-image-overlay");g.zl(b,"max-width",c.width+"px");a.l.show();a.ib(a.l.element,!0);a.N(a.l.element,"mouseover",function(){a.X++;a.api.jC("invideo-overlay",a.layoutId)});
a.N(a.l.element,"mouseout",function(){a.api.iC("invideo-overlay",a.layoutId)});
return!0};
A1=function(a,b){var c=a.api.Za().Zf(),d=a.api.Ri(!0,!1);return(b=g1(c,c.height-(d.height+d.top),b))?(a.Da&&b&&(c=g.Vb(a.macros),c.ERRORCODE=b.Wu.toString(),c.ERROR_MSG=b.errorMessage,a.Ta.executeCommand(a.Da,c)),!0):!1};
y1=function(a,b,c){var d=g.Vb(a.macros),e=g.Ol(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Ml(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.X.toString()}};
a.K.forEach(function(h){return a.Ta.executeCommand(h,d)});
a.api.pauseVideo()};
NIa=function(a,b){a=a.api.getRootNode();g.N(a,"ytp-ad-overlay-open",b);g.N(a,"ytp-ad-overlay-closed",!b)};
C1=function(a,b,c,d,e){cM.call(this,a,b,{D:"div",L:"ytp-ad-message-overlay",S:[{D:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.X=-1;this.B=0;this.K=!1;this.xa=this.Ba("ytp-ad-message-slot");this.u=new g.xL({D:"span",L:"ytp-ad-message-container"});this.u.ya(this.xa);g.F(this,this.u);this.messageText=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-message-text");g.F(this,this.messageText);this.messageText.ya(this.u.element);this.G=new g.fM(this.u,400,!1,100,function(){return f.hide()});
g.F(this,this.G);this.hide()};
OIa=function(a,b){a=a.api.getRootNode();g.N(a,"ytp-ad-overlay-open",b);g.N(a,"ytp-ad-overlay-closed",!b)};
D1=function(a,b,c,d){yL.call(this,a,b,{D:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.l=null;this.toggledLoggingParams="";this.answer=this.Ba("ytp-ad-survey-answer");this.hide()};
E1=function(a,b,c,d){yL.call(this,a,b,{D:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.button=null;this.l=this.Ba("ytp-ad-survey-none-of-the-above");this.hide()};
F1=function(a,b,c,d){ML.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
G1=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",L:"ytp-ad-survey-player-overlay",S:[{D:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{D:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{D:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{D:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{D:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.B=e;this.wi=f;this.u=this.l=null;this.C=this.Ba("ytp-ad-survey-player-overlay-instream-info");
this.G=this.Ba("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ba("ytp-ad-survey-player-overlay-submit");g.F(this,this.B);this.hide()};
H1=function(a,b,c,d,e,f,h){yL.call(this,a,b,{D:"div",L:"ytp-ad-survey-question",S:[{D:"div",Ca:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{D:"div",Ca:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{D:"div",Ca:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{D:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.Zg=f;this.wi=h;this.C=null;this.u=[];this.l=null;this.question=this.Ba("ytp-ad-survey-question");this.K=this.Ba("ytp-ad-survey-question-background");
this.questionText=this.Ba("ytp-ad-survey-question-text");this.answers=this.Ba("ytp-ad-survey-answers");this.playerOverlay=this.Ba("ytp-ad-survey-question-player-overlay");this.B=g.Sa()};
PIa=function(a,b,c){var d=new D1(a.api,a.Ta,a.layoutId,a.i);d.ya(a.answers);d.init(PI("survey-answer"),b,c);a.u.push(d)};
RIa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&RL(c)||"",g.rc(c)?g.Ux(Error("Found ThumbnailDetails without valid image URL")):g.zl(a.K,"backgroundImage","url("+c+")"));QIa(a,b)}else g.Tx(Error("addCommonComponents() needs to be called before starting countdown."))};
QIa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.Tx(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=g.Sa();var c=g.S(a.api.T().experiments,"html5_use_normal_timer_for_survey");a.l=a.Zg?new rM(a.api,b.durationMilliseconds):new sM(b.durationMilliseconds,a.Ta,c);g.F(a,a.l);if(b.timeoutCommands){var d=b.timeoutCommands;a.l.subscribe("g",function(){d.forEach(function(f){return a.Ta.executeCommand(f,
a.macros)})})}if(a.l&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var e=new G1(a.api,a.Ta,a.layoutId,a.i,a.l,a.wi);
e.ya(a.playerOverlay);e.init(PI("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.C=e;g.F(a,e);a.VJ()}catch(f){g.Tx(Error("ISAPOR had an error when initializing. Error: "+(f+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.Tx(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.l&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new BM(a.api,a.l),b.ya(a.playerOverlay),g.F(a,b)):g.Tx(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
SIa=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Sa()-a.B).toString()})};
I1=function(a,b,c,d,e,f){H1.call(this,a,b,c,d,"survey-question-multi-select",e,f);this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
TIa=function(a,b,c){a.noneOfTheAbove=new E1(a.api,a.Ta,a.layoutId,a.i);a.noneOfTheAbove.ya(a.answers);a.noneOfTheAbove.init(PI("survey-none-of-the-above"),b,c)};
UIa=function(a){a.u.forEach(function(b){b.l.toggleButton(!1)});
J1(a,!0)};
J1=function(a,b){var c=a.C;a=VIa(a);b=void 0===b?!1:b;c.l&&(a?c.l.hide():c.l.show(),b&&c.l instanceof nM&&!c.l.K&&oM(c.l,!1));c.u&&(a?c.u.show():c.u.hide())};
VIa=function(a){return a.u.some(function(b){return b.l.isToggled()})||a.noneOfTheAbove.button.isToggled()};
K1=function(a,b,c,d,e,f){H1.call(this,a,b,c,d,"survey-question-single-select",e,f);this.hide()};
L1=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",L:"ytp-ad-survey",S:[{D:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.Zg=e;this.wi=f;this.questions=[];this.l=this.Ba("ytp-ad-survey-questions");this.hide()};
M1=function(a,b,c,d,e,f){yL.call(this,a,b,{D:"div",L:"ytp-ad-survey-interstitial",S:[{D:"div",L:"ytp-ad-survey-interstitial-contents",S:[{D:"div",L:"ytp-ad-survey-interstitial-logo",S:[{D:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.Zg=e;this.jD=f;this.l=this.actionButton=null;this.interstitial=this.Ba("ytp-ad-survey-interstitial");this.u=this.Ba("ytp-ad-survey-interstitial-contents");this.text=this.Ba("ytp-ad-survey-interstitial-text");
this.logoImage=this.Ba("ytp-ad-survey-interstitial-logo-image");this.transition=new g.fM(this,500,!1,300);g.F(this,this.transition)};
WIa=function(a,b){b=b&&RL(b)||"";if(g.rc(b))g.Ux(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.fe&&10>document.documentMode)c=Pc;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.ng("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Oga(d.style)}b=Caa(c,Qc({"background-image":'url("'+b+'")'}));a.style.cssText=Nc(b)}};
XIa=function(a){var b=g.cg("html5-video-player");b&&g.N(b,"ytp-ad-display-override",a)};
N1=function(a,b){WL.call(this,a);this.api=a;this.l={};this.C=b;a=new g.V({D:"div",Ca:["video-ads","ytp-ad-module"]});g.F(this,a);KF&&g.K(a.element,"ytp-ads-tiny-mode");this.B=new rL(a.element);g.F(this,this.B);g.oN(this.api,a.element,4);g.F(this,Xqa())};
YIa=function(a,b){a=Tb(a.l,b.id,null);null==a&&g.Ux(Error("Component not found for element id: "+b.id));return a||null};
O1=function(a){g.zN.call(this,a);var b=this;this.l=this.Ta=null;this.created=!1;this.cm=new YK(this.player);this.u=function(){function d(){return b.Ta}
if(null!=b.l)return b.l;var e=kqa({oo:a.getVideoData(1)});e=new tFa({VN:new s1(function(){return b.Ta},b.i.i.pe.Lj),
Qn:e.NO(),iO:d,mQ:d,Xh:b.i.i.pe.Xh,ij:e.lB(),I:b.player,kh:b.i.i.pe.kh,Xa:b.i.i.Xa,Pg:b.i.i.pe.Pg,Cc:b.i.i.Cc});b.l=e.DM;return b.l};
this.i=new r1(this.player,this,this.cm,this.u);g.F(this,this.i);var c=a.T();!aG(c)||g.UF(c)||cG(c)||(g.F(this,new N1(a,function(){return b.Ta})),g.F(this,new t1(a)))};
P1=function(a,b){b===a.Nn&&(a.Nn=void 0)};
ZIa=function(a){a.Ta?a.i.i.pe.lc.AB()||a.Ta.AB()||a.i.i.pe.cn.Qj():R("AdService is null when calling maybeUnlockPrerollIfReady")};
$Ia=function(a){a=g.q(a.i.i.pe.Pg.xi.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.ob&&"core"===b.gb)return!0;return!1};
aJa=function(a){a=g.q(a.i.i.pe.Pg.xi.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
lz=function(a,b,c){c=void 0===c?"":c;var d=a.i.i.pe.kh,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.Sh()||!1;d=bJa(b,d,f,e);Kia(a.i.i.pe.qc,c,d.nk,b);a.Ta&&0<d.Wn.length&&(a=a.Ta,b=d.Wn,b=nqa(a,b),b=oqa(a,b),oL(a,b))};
bJa=function(a,b,c,d){var e={Wn:[],nk:[]};a=g.q(a);for(var f=a.next();!f.done;f=a.next())if((f=f.value)&&null!=f.renderer){var h=f.renderer,l=f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind,m=b;c?h=!0:d&&!B_(m)?h=!1:null!=h.clientForecastingAdRenderer||null!=h.actionCompanionAdRenderer||null!=h.imageCompanionAdRenderer||null!=h.shoppingCompanionCarouselRenderer||null!=h.invideoOverlayAdRenderer||null!=h.adBreakServiceRenderer&&("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==l||B_(m))?
h=!0:null!=h.instreamVideoAdRenderer||null!=h.remoteSlotsRenderer?(h=m,h=g.EG(h.I.T())?!1:aG(h.I.T())?g.S(h.I.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf"):g.bG(h.I.T())?g.S(h.I.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf_tv"):!1):h.linearAdSequenceRenderer&&h.linearAdSequenceRenderer.linearAds?h.linearAdSequenceRenderer.adStart?h=g.S(m.I.T().experiments,"html5_enable_vod_lasr_with_notify_pacf"):(h=m,h=g.EG(h.I.T())?!1:aG(h.I.T())?g.S(h.I.T().experiments,"html5_enable_non_notify_composite_vod_lsar_pacf"):
g.bG(h.I.T())?g.S(h.I.T().experiments,"html5_enable_non_notify_composite_vod_lsar_pacf_tv"):!1):h=null!=h.instreamSurveyAdRenderer?!!h.instreamSurveyAdRenderer.controlflowEnabled:null!=h.sandwichedLinearAdRenderer?null!=h.sandwichedLinearAdRenderer.linearAd&&null!=h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer?!!h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer.controlflowEnabled:g.S(m.I.T().experiments,"html5_enable_vod_slar_with_notify_pacf"):!1;h?e.nk.push(f):e.Wn.push(f)}return e};
cJa=function(){if(!g.fe)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.Q1=function(a){if("undefined"!=typeof DOMParser)return md(new DOMParser,wl(a),"application/xml");if(dJa){var b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.R1=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={D:"svg",V:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},S:[{D:"g",V:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},S:[{D:"g",V:{transform:"translate(-1.000000, -3.000000)"},S:[{D:"polygon",V:{points:"0 0 24 0 24 24 0 24"}},{D:"path",V:{d:"M19,7 L5,7 L5,17 L19,17 L19,7 Z M23,19 L23,4.98 C23,3.88 22.1,3 21,3 L3,3 C1.9,3 1,3.88 1,4.98 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 Z M21,19.02 L3,19.02 L3,4.97 L21,4.97 L21,19.02 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Open video page";a.T().Z("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={D:"svg",V:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},S:[{D:"g",V:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},S:[{D:"g",V:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},S:[{D:"path",V:{d:"M19,19 L5,19 L5,5 L12,5 L12,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.1,21 21,20.1 21,19 L21,12 L19,12 L19,19 Z M14,3 L14,5 L17.59,5 L7.76,14.83 L9.17,16.24 L19,6.41 L19,10 L21,10 L21,3 L14,3 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Expand");g.V.call(this,{D:"button",Ca:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],V:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},S:[d]});this.I=a;this.Ra("click",this.onClick,this);this.Sa("title",bO(a,e,"i"));g.gf(this,g.zO(b.ac(),this.element))};
aa=[];ha="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
fa=aaa(this);ia("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.i=f;ha(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.i};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=fa[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ha(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ka(ea(this))}})}return a});
var na="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},eJa=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=na(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),S1;
if("function"==typeof Object.setPrototypeOf)S1=Object.setPrototypeOf;else{var T1;a:{var fJa={a:!0},gJa={};try{gJa.__proto__=fJa;T1=gJa.a;break a}catch(a){}T1=!1}S1=T1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=S1;
pa.prototype.K=function(a){this.l=a};
pa.prototype.return=function(a){this.u={return:a};this.i=this.B};
pa.prototype.ub=function(a){this.i=a};
ia("Reflect",function(a){return a?a:{}});
ia("Reflect.construct",function(){return eJa});
ia("Reflect.setPrototypeOf",function(a){return a?a:oa?function(b,c){try{return oa(b,c),!0}catch(d){return!1}}:null});
ia("WeakMap",function(a){function b(m){this.i=(l+=Math.random()+1).toString();if(m){m=g.q(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!Ca(m,h)){var n=new c;ha(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(r){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!Ca(m,h))throw Error("WeakMap key fail: "+m);m[h][this.i]=n;return this};
b.prototype.get=function(m){return d(m)&&Ca(m,h)?m[h][this.i]:void 0};
b.prototype.has=function(m){return d(m)&&Ca(m,h)&&Ca(m[h],this.i)};
b.prototype.delete=function(m){return d(m)&&Ca(m,h)&&Ca(m[h],this.i)?delete m[h][this.i]:!1};
return b});
ia("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.i;return ka(function(){if(n){for(;n.head!=l.i;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&Ca(l.data_,n))for(l=0;l<p.length;l++){var r=p[l];if(m!==m&&r.key!==r.key||m===r.key)return{id:n,list:p,index:l,Wf:r}}return{id:n,list:p,index:-1,Wf:void 0}}
function e(l){this.data_={};this.i=b();this.size=0;if(l){l=g.q(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.q([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(r){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.Wf?n.Wf.value=m:(n.Wf={next:this.i,previous:this.i.previous,head:this.i,key:l,value:m},n.list.push(n.Wf),this.i.previous.next=n.Wf,this.i.previous=n.Wf,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.Wf&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.Wf.previous.next=l.Wf.next,l.Wf.next.previous=l.Wf.previous,l.Wf.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.i=this.i.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).Wf};
e.prototype.get=function(l){return(l=d(this,l).Wf)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ia("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ia("Array.prototype.find",function(a){return a?a:function(b,c){return Ea(this,b,c).aL}});
ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Da(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ia("Array.prototype.entries",function(a){return a?a:function(){return Fa(this,function(b,c){return[b,c]})}});
ia("Object.setPrototypeOf",function(a){return a||oa});
var hJa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ca(d,e)&&(a[e]=d[e])}return a};
ia("Object.assign",function(a){return a||hJa});
ia("Promise",function(a){function b(h){this.Oa=0;this.Od=void 0;this.i=[];this.C=!1;var l=this.l();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.i=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.l=function(h){if(null==this.i){this.i=[];var l=this;this.u(function(){l.C()})}this.i.push(h)};
var e=fa.setTimeout;c.prototype.u=function(h){e(h,0)};
c.prototype.C=function(){for(;this.i&&this.i.length;){var h=this.i;this.i=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.B(n)}}}this.i=null};
c.prototype.B=function(h){this.u(function(){throw h;})};
b.prototype.l=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.Y),reject:h(this.u)}};
b.prototype.Y=function(h){if(h===this)this.u(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.ma(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.U(h):this.B(h)}};
b.prototype.U=function(h){var l=void 0;try{l=h.then}catch(m){this.u(m);return}"function"==typeof l?this.va(l,h):this.B(h)};
b.prototype.u=function(h){this.G(2,h)};
b.prototype.B=function(h){this.G(1,h)};
b.prototype.G=function(h,l){if(0!=this.Oa)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.Oa);this.Oa=h;this.Od=l;2===this.Oa&&this.X();this.J()};
b.prototype.X=function(){var h=this;e(function(){if(h.K()){var l=fa.console;"undefined"!==typeof l&&l.error(h.Od)}},1)};
b.prototype.K=function(){if(this.C)return!1;var h=fa.CustomEvent,l=fa.Event,m=fa.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=fa.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.Od;return m(h)};
b.prototype.J=function(){if(null!=this.i){for(var h=0;h<this.i.length;++h)f.l(this.i[h]);this.i=null}};
var f=new c;b.prototype.ma=function(h){var l=this.l();h.Mv(l.resolve,l.reject)};
b.prototype.va=function(h,l){var m=this.l();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,u){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:u}
var n,p,r=new b(function(t,u){n=t;p=u});
this.Mv(m(h,n),m(l,p));return r};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.Mv=function(h,l){function m(){switch(n.Oa){case 1:h(n.Od);break;case 2:l(n.Od);break;default:throw Error("Unexpected state: "+n.Oa);}}
var n=this;null==this.i?f.l(m):this.i.push(m);this.C=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.q(h),p=n.next();!p.done;p=n.next())d(p.value).Mv(l,m)})};
b.all=function(h){var l=g.q(h),m=l.next();return m.done?d([]):new b(function(n,p){function r(x){return function(y){t[x]=y;u--;0==u&&n(t)}}
var t=[],u=0;do t.push(void 0),u++,d(m.value).Mv(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ia("Array.prototype.keys",function(a){return a?a:function(){return Fa(this,function(b){return b})}});
ia("Set",function(a){function b(c){this.i=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.i.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.q([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.i.set(c,c);this.size=this.i.size;return this};
b.prototype.delete=function(c){c=this.i.delete(c);this.size=this.i.size;return c};
b.prototype.clear=function(){this.i.clear();this.size=0};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.entries=function(){return this.i.entries()};
b.prototype.values=function(){return this.i.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.i.forEach(function(f){return c.call(d,f,f,e)})};
return b});
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 h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ia("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ea(this,b,c).DH}});
ia("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ca(b,d)&&c.push([d,b[d]]);return c}});
ia("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ia("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ia("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
ia("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Da(this,b,"includes").indexOf(b,c||0)}});
ia("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ia("Int8Array.prototype.fill",Ga);ia("Uint8Array.prototype.fill",Ga);ia("Uint8ClampedArray.prototype.fill",Ga);ia("Int16Array.prototype.fill",Ga);ia("Uint16Array.prototype.fill",Ga);ia("Int32Array.prototype.fill",Ga);ia("Uint32Array.prototype.fill",Ga);ia("Float32Array.prototype.fill",Ga);ia("Float64Array.prototype.fill",Ga);
ia("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
ia("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ia("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ia("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ca(b,d)&&c.push(b[d]);return c}});
ia("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Da(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ia("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ia("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ia("WeakSet",function(a){function b(c){this.i=new WeakMap;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.i.set(c,!0);return this};
b.prototype.has=function(c){return this.i.has(c)};
b.prototype.delete=function(c){return this.i.delete(c)};
return b});
ia("Number.parseInt",function(a){return a||parseInt});
ia("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
Fi=Fi||{};g.A=this||self;Oa="closure_uid_"+(1E9*Math.random()>>>0);eaa=0;g.Ta(Va,Error);Va.prototype.name="CustomError";var Xf;g.Ta(Wa,Va);Wa.prototype.name="AssertionError";var jb,zm,sn;jb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.iJa=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.Cb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Po=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Oe=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
zm=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Cb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
sn=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.ym=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var Xb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var jJa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var $b;dc.prototype.Xj=!0;dc.prototype.ph=function(){return this.i};
var cc={},bc={};var gc={};hc.prototype.ph=function(){return this.i.toString()};
hc.prototype.toString=function(){return this.i.toString()};var Rga,Qga,Pga,Sga;Rga=/[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/;g.Wq=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]/;Qga=/^http:\/\/.*/;Pga=/\s+/;Sga=/[\d\u06f0-\u06f9]/;g.k=kc.prototype;g.k.Xj=!0;g.k.ph=function(){return this.i.toString()};
g.k.DB=!0;g.k.Bq=function(){return 1};
g.k.toString=function(){return this.i+""};
var saa=/%{(\w+)}/g,raa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,ic={};var Ac=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},sc=/&/g,tc=/</g,uc=/>/g,vc=/"/g,wc=/'/g,xc=/\x00/g,uaa=/[\x00&<>"']/;g.k=g.Ec.prototype;g.k.Xj=!0;g.k.ph=function(){return this.i.toString()};
g.k.DB=!0;g.k.Bq=function(){return 1};
g.k.toString=function(){return this.i.toString()};
var waa=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,vaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Hc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Dc={},Ic=new g.Ec("about:invalid#zClosurez",Dc);Mc.prototype.Xj=!0;Mc.prototype.ph=function(){return this.i};
Mc.prototype.toString=function(){return this.i.toString()};
var Lc={},Pc=new Mc("",Lc),yaa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Sc=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,Rc=/\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,zaa=/\/\*/;a:{var kJa=g.A.navigator;if(kJa){var lJa=kJa.userAgent;if(lJa){g.Tc=lJa;break a}}g.Tc=""};g.k=Zc.prototype;g.k.DB=!0;g.k.Bq=function(){return this.l};
g.k.Xj=!0;g.k.ph=function(){return this.i.toString()};
g.k.toString=function(){return this.i.toString()};
var mJa=/^[a-zA-Z0-9-]+$/,nJa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},oJa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Yc={},cd=new Zc(g.A.trustedTypes&&g.A.trustedTypes.emptyHTML||"",0,Yc);var Gaa=cb(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.$c(cd);return!b.parentElement}),Haa=/^[\w+/_-]+[=]{0,2}$/;g.pJa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Jd="function"===typeof Uint8Array.prototype.slice,je=0,ke=0;g.k=Ad.prototype;g.k.clone=function(){return Cd(this.l,this.B,this.u-this.B)};
g.k.clear=function(){this.l=null;this.i=this.u=this.B=0;this.C=!1};
g.k.reset=function(){this.i=this.B};
g.k.advance=function(a){this.i+=a};
g.k.vg=function(){var a=this.l[this.i+0];this.i+=1;return a};
g.k.rk=function(){var a=this.l[this.i+0],b=this.l[this.i+1];this.i+=2;return a<<0|b<<8};
g.k.Fc=function(){var a=this.l[this.i+0],b=this.l[this.i+1],c=this.l[this.i+2],d=this.l[this.i+3];this.i+=4;return(a<<0|b<<8|c<<16|d<<24)>>>0};
g.k.Ne=function(){var a=this.l[this.i+0],b=this.l[this.i+1],c=this.l[this.i+2],d=this.l[this.i+3];this.i+=4;return a<<0|b<<8|c<<16|d<<24};
g.k.dr=function(){var a=this.Fc(),b=this.Fc();return wd(a,b)};
g.k.Oe=function(a){var b=this.l,c=this.i;a=c+a;for(var d=[],e="";c<a;){var f=b[c++];if(128>f)d.push(f);else if(192>f)continue;else if(224>f){var h=b[c++];d.push((f&31)<<6|h&63)}else if(240>f){h=b[c++];var l=b[c++];d.push((f&15)<<12|(h&63)<<6|l&63)}else if(248>f){h=b[c++];l=b[c++];var m=b[c++];f=(f&7)<<18|(h&63)<<12|(l&63)<<6|m&63;f-=65536;d.push((f>>10&1023)+55296,(f&1023)+56320)}8192<=d.length&&(e+=String.fromCharCode.apply(null,d),d.length=0)}e+=Ya(d);this.i=c;return e};
var Bd=[];g.k=Gd.prototype;g.k.reset=function(){this.i.reset();this.l=this.u=-1};
g.k.advance=function(a){this.i.advance(a)};
g.k.Ne=function(){return Ed(this.i)};
g.k.dr=function(){return Dd(this.i)};
g.k.Fc=function(){return Ed(this.i)};
g.k.Oe=function(){var a=Ed(this.i);return this.i.Oe(a)};Ld.prototype.push=function(a){if(!(this.l+1<this.i.length)){var b=this.i;this.i=new Uint8Array(Math.ceil(1+2*this.i.length));this.i.set(b)}this.i[this.l++]=a};
Ld.prototype.length=function(){return this.l};
Ld.prototype.end=function(){var a=this.i,b=this.l;this.l=0;return Jd?a.slice(0,b):new Uint8Array(a.subarray(0,b))};Rd[" "]=g.Ja;var Bl,ZT,kFa,qJa,rJa,sJa,JF,KF,U1;g.Uk=Uc("Opera");g.fe=Uc("Trident")||Uc("MSIE");g.tw=Uc("Edge");g.IG=g.tw||g.fe;Bl=Uc("Gecko")&&!(zc(g.Tc,"WebKit")&&!Uc("Edge"))&&!(Uc("Trident")||Uc("MSIE"))&&!Uc("Edge");g.ig=zc(g.Tc,"WebKit")&&!Uc("Edge");ZT=Uc("Macintosh");kFa=Uc("Windows");g.tt=Uc("Android");qJa=Od();rJa=Uc("iPad");sJa=Uc("iPod");JF=Pd();KF=zc(g.Tc,"KaiOS");
a:{var V1="",W1=function(){var a=g.Tc;if(Bl)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.tw)return/Edge\/([\d\.]+)/.exec(a);if(g.fe)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ig)return/WebKit\/(\S+)/.exec(a);if(g.Uk)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
W1&&(V1=W1?W1[1]:"");if(g.fe){var X1=Ud();if(null!=X1&&X1>parseFloat(V1)){U1=String(X1);break a}}U1=V1}var Vd=U1,Kaa={},Y1;if(g.A.document&&g.fe){var tJa=Ud();Y1=tJa?tJa:parseInt(Vd,10)||void 0}else Y1=void 0;var Laa=Y1;var TF,cI;g.bj=Vc();TF=Od()||Uc("iPod");cI=Uc("iPad");g.LF=Uc("Android")&&!(Wc()||Vc()||Uc("Opera")||Uc("Silk"));g.aj=Wc();g.cj=Xc()&&!Pd();var Zd={},ge=null;var qe="function"===typeof Uint8Array,Naa={MP:{value:!0,configurable:!0}};var ve,we=Object.freeze(se([]));ue.prototype.toString=function(){return Je(this).toString()};
ue.prototype.clone=function(){var a=Maa(Je(this));ve=a;a=new this.constructor(a);ve=null;return a};g.v(Pe,ue);g.v(Qe,ue);g.v(Re,ue);g.v(Te,ue);var Se=[[1,2,3]];var vea={cK:5,HH:100,oI:6E5},qea={cK:10,HH:500,oI:6E5};g.v(Ue,Error);g.Ve.prototype.l=0;g.Ve.prototype.reset=function(){this.i=this.u=this.B;this.l=0};
g.Ve.prototype.getValue=function(){return this.u};g.k=bf.prototype;g.k.XN=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];(d=this.cB(c))?d.push(new af(a)):this.hK(a,c)};
g.k.hK=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.lq.set(this.jH(c),[new af(a)])};
g.k.cB=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.jH(b);return this.lq.has(b)?this.lq.get(b):void 0};
g.k.QO=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.cB(b))&&b.length?b[0]:void 0};
g.k.clear=function(){this.lq.clear()};
g.k.jH=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.v(cf,bf);cf.prototype.u=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.QO(c);e&&(d=e.mG);this.hK(d+a,c)};g.v(df,bf);df.prototype.vk=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.XN(a,c)};g.E.prototype.Jh=!1;g.E.prototype.Ha=function(){return this.Jh};
g.E.prototype.dispose=function(){this.Jh||(this.Jh=!0,this.ra())};
g.E.prototype.ra=function(){if(this.gh)for(;this.gh.length;)this.gh.shift()()};g.hf.prototype.stopPropagation=function(){this.l=!0};
g.hf.prototype.preventDefault=function(){this.defaultPrevented=!0};var kf={};var Yaa=function(){if(!g.A.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.A.addEventListener("test",g.Ja,b),g.A.removeEventListener("test",g.Ja,b)}catch(c){}return a}();var ita;ita=g.ig?"webkitAnimationEnd":g.Uk?"oanimationend":"animationend";g.Ta(mf,g.hf);var uJa={2:"touch",3:"pen",4:"mouse"};
mf.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)?Bl&&(Sd(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:uJa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&mf.Rd.preventDefault.call(this)};
mf.prototype.stopPropagation=function(){mf.Rd.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
mf.prototype.preventDefault=function(){mf.Rd.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var nf="closure_listenable_"+(1E6*Math.random()|0);var Vaa=0;qf.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.i++);var h=sf(a,b,d,e);-1<h?(b=a[h],c||(b.Lv=!1)):(b=new Waa(b,this.src,f,!!d,e),b.Lv=c,a.push(b));return b};
qf.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=sf(e,b,c,d);return-1<b?(pf(e[b]),g.nb(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
qf.prototype.jt=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=sf(a,b,c,d));return-1<e?a[e]:null};var Bf="closure_lm_"+(1E6*Math.random()|0),Gf={},Df=0,Hf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ta(g.If,g.E);g.If.prototype[nf]=!0;g.k=g.If.prototype;g.k.addEventListener=function(a,b,c,d){uf(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Ef(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.Da;if(b){var c=[];for(var d=1;b;b=b.Da)c.push(b),++d}b=this.qb;d=a.type||a;if("string"===typeof a)a=new g.hf(a,b);else if(a instanceof g.hf)a.target=a.target||b;else{var e=a;a=new g.hf(d,b);g.Yb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.l&&0<=f;f--){var h=a.currentTarget=c[f];e=Jf(h,d,!0,a)&&e}a.l||(h=a.currentTarget=b,e=Jf(h,d,!0,a)&&e,a.l||(e=Jf(h,d,!1,a)&&e));if(c)for(f=0;!a.l&&f<c.length;f++)h=a.currentTarget=c[f],e=Jf(h,d,!1,a)&&e;return e};
g.k.ra=function(){g.If.Rd.ra.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,pf(d[e]);delete a.listeners[c];a.i--}}this.Da=null};
g.k.Ra=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.Zw=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.fc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.jt=function(a,b,c,d){return this.B.jt(String(a),b,c,d)};Kf.prototype.get=function(){if(0<this.l){this.l--;var a=this.i;this.i=a.next;a.next=null}else a=this.u();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var aba=!g.fe||g.Xd(9),bba=!Bl&&!g.fe||g.fe&&g.Xd(9)||Bl&&g.Wd("1.9.1");g.fe&&g.Wd("9");var dba=g.fe||g.Uk||g.ig;g.k=g.Qf.prototype;g.k.clone=function(){return new g.Qf(this.x,this.y)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.Sf.prototype;g.k.clone=function(){return new g.Sf(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!Uf(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};var dg={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=Vf.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
g.k.Ba=function(a){return g.cg(a,this.i)};
g.k.createElement=function(a){return kg(this.i,a)};
g.k.createTextNode=function(a){return this.i.createTextNode(String(a))};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){lg(Wf(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.rg;g.k.contains=g.tg;var Ag;Dg.prototype.add=function(a,b){var c=Kg.get();c.set(a,b);this.l?this.l.next=c:this.i=c;this.l=c};
Dg.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.l=null),a.next=null);return a};
var Kg=new Kf(function(){return new Eg},function(a){return a.reset()});
Eg.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
Eg.prototype.reset=function(){this.next=this.scope=this.i=null};var Fg,Gg=!1,Hg=new Dg;Og.prototype.reset=function(){this.context=this.onRejected=this.l=this.i=null;this.u=!1};
var Rg=new Kf(function(){return new Og},function(a){a.reset()});
Ng.prototype.then=function(a,b,c){return $g(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
Ng.prototype.$goog_Thenable=!0;Ng.prototype.cancel=function(a){if(0==this.Oa){var b=new fh(a);g.Ig(function(){bh(this,b)},this)}};
Ng.prototype.PU=function(a){this.Oa=0;Mg(this,2,a)};
Ng.prototype.QU=function(a){this.Oa=0;Mg(this,3,a)};
Ng.prototype.GO=function(){for(var a;a=ch(this);)dh(this,a,this.Oa,this.Od);this.VA=!1};
var hh=Cg;g.Ta(fh,Va);fh.prototype.name="cancel";g.Ta(g.ih,g.If);g.k=g.ih.prototype;g.k.enabled=!1;g.k.Gb=null;g.k.setInterval=function(a){this.Of=a;this.Gb&&this.enabled?(this.stop(),this.start()):this.Gb&&this.stop()};
g.k.DU=function(){if(this.enabled){var a=g.Sa()-this.eI;0<a&&a<.8*this.Of?this.Gb=this.Su.setTimeout(this.eG,this.Of-a):(this.Gb&&(this.Su.clearTimeout(this.Gb),this.Gb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Gb||(this.Gb=this.Su.setTimeout(this.eG,this.Of),this.eI=g.Sa())};
g.k.stop=function(){this.enabled=!1;this.Gb&&(this.Su.clearTimeout(this.Gb),this.Gb=null)};
g.k.ra=function(){g.ih.Rd.ra.call(this);this.stop();delete this.Su};g.k=lh.prototype;g.k.lU=function(a){this.C=a;this.B=1};
g.k.oK=function(){var a=this.i.values();a=[].concat(g.ma(a)).filter(function(b){return b.lq.size});
a.length&&this.J.flush(a,this.C);vda(a);this.u=0;this.l.enabled&&this.l.stop()};
g.k.ZN=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new cf(a,c))};
g.k.VF=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new df(a,c))};
g.k.uL=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.vL.apply(this,[a,1].concat(g.ma(c)))};
g.k.vL=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=nh(this,a))&&e instanceof cf&&(e.u(b,d),mh(this))};
g.k.vk=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=nh(this,a))&&e instanceof df&&(e.vk(b,d),mh(this))};oh.prototype.vk=function(a,b,c,d){this.i.vk("/client_streamz/po/w/rl",a,b,c,d)};
ph.prototype.vk=function(a,b,c){this.i.vk("/client_streamz/po/w/el",a,b,c)};g.v(qh,ue);g.v(rh,ue);g.v(th,ue);g.v(vh,ue);var xda=[3,6,4],yda=[1],sh=[[1,2,3]],uh=[[1,2,3]];g.v(wh,ue);var zda=[1];var Cda={};g.k=Ah.prototype;g.k.isEnabled=function(){if(!g.A.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{fx:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.c8;d=c.jU||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.fx}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.i.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Ac(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{fx:0,path:b,domain:c});return d};
g.k.Rh=function(){return Bh(this).keys};
g.k.Ng=function(){return Bh(this).values};
g.k.isEmpty=function(){return!this.i.cookie};
g.k.clear=function(){for(var a=Bh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Zs=new Ah("undefined"==typeof document?null:document);g.v(Gh,ue);var Dda=[2];var Ph={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Fda=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Qh.prototype.l=null;Qh.prototype.getOptions=function(){return this.l||(this.l=this.B())};var Z1;g.Ta(Rh,Qh);Rh.prototype.i=function(){var a=Sh(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Rh.prototype.B=function(){var a={};Sh(this)&&(a[0]=!0,a[1]=!0);return a};
Z1=new Rh;Th.prototype[Symbol.iterator]=function(){return this};
Th.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.l.call(void 0,a.value,this.u++),done:a.done}};g.$h="StopIteration"in g.A?g.A.StopIteration:{message:"StopIteration",stack:""};g.Uh.prototype.next=function(){return g.Uh.prototype.i.call(this)};
g.Uh.prototype.i=function(){throw g.$h;};
g.Uh.prototype.Eg=function(){return this};Vh.prototype.Eg=function(){return new Wh(this.i())};
Vh.prototype[Symbol.iterator]=function(){return new Xh(this.i())};
Vh.prototype.l=function(){return new Xh(this.i())};
g.v(Wh,g.Uh);Wh.prototype.i=function(){var a=this.u.next();if(a.done)throw g.$h;return a.value};
Wh.prototype.next=function(){return Wh.prototype.i.call(this)};
Wh.prototype[Symbol.iterator]=function(){return new Xh(this.u)};
Wh.prototype.l=function(){return new Xh(this.u)};
g.v(Xh,Vh);Xh.prototype.next=function(){return this.u.next()};g.k=g.bi.prototype;g.k.Ng=function(){di(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.l[this.i[b]]);return a};
g.k.Rh=function(){di(this);return this.i.concat()};
g.k.has=function(a){return ci(this.l,a)};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.l={};this.An=this.size=this.i.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return ci(this.l,a)?(delete this.l[a],--this.size,this.An++,this.i.length>2*this.size&&di(this),!0):!1};
g.k.get=function(a,b){return ci(this.l,a)?this.l[a]:b};
g.k.set=function(a,b){ci(this.l,a)||(this.size+=1,this.i.push(a),this.An++);this.l[a]=b};
g.k.forEach=function(a,b){for(var c=this.Rh(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.bi(this)};
g.k.keys=function(){return Zh(this.Eg(!0)).l()};
g.k.values=function(){return Zh(this.Eg(!1)).l()};
g.k.entries=function(){var a=this;return Hda(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Eg=function(a){di(this);var b=0,c=this.An,d=this,e=new g.Uh;e.i=function(){if(c!=d.An)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)throw g.$h;var f=d.i[b++];return a?f:d.l[f]};
e.next=e.i.bind(e);return e};var gi=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,wi=/#|$/,Lda=/[?&]($|#)/;g.Ta(g.Ai,g.If);var Pda=/^https?$/i,vJa=["POST","PUT"],Bi=[];g.k=g.Ai.prototype;g.k.hO=function(){this.dispose();g.ob(Bi,this)};
g.k.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.U+"; newUri="+a);b=b?b.toUpperCase():"GET";this.U=a;this.u="";this.l=0;this.La=b;this.Aa=!1;this.C=!0;this.i=this.xa?this.xa.i():Z1.i();this.va=this.xa?this.xa.getOptions():Z1.getOptions();this.i.onreadystatechange=(0,g.C)(this.oJ,this);try{Lh(Hi(this,"Opening Xhr")),this.Ea=!0,this.i.open(b,String(a),!0),this.Ea=!1}catch(f){Lh(Hi(this,"Error opening Xhr: "+f.message));Ei(this,f);return}a=
c||"";var e=this.headers.clone();d&&Kda(d,function(f,h){e.set(h,f)});
d=e.Rh().find(function(f){return"content-type"==f.toLowerCase()});
c=g.A.FormData&&a instanceof g.A.FormData;!g.kb(vJa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(f,h){this.i.setRequestHeader(h,f)},this);
this.Ga&&(this.i.responseType=this.Ga);"withCredentials"in this.i&&this.i.withCredentials!==this.K&&(this.i.withCredentials=this.K);try{Pi(this),0<this.J&&(this.ma=Oda(this.i),Lh(Hi(this,"Will abort after "+this.J+"ms if incomplete, xhr2 "+this.ma)),this.ma?(this.i.timeout=this.J,this.i.ontimeout=(0,g.C)(this.oE,this)):this.X=g.jh(this.oE,this.J,this)),Lh(Hi(this,"Sending request")),this.Y=!0,this.i.send(a),this.Y=!1}catch(f){Lh(Hi(this,"Send error: "+f.message)),Ei(this,f)}};
g.k.oE=function(){"undefined"!=typeof Fi&&this.i&&(this.u="Timed out after "+this.J+"ms, aborting",this.l=8,Hi(this,this.u),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.i&&this.C&&(Hi(this,"Aborting"),this.C=!1,this.G=!0,this.i.abort(),this.G=!1,this.l=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Di(this))};
g.k.ra=function(){this.i&&(this.C&&(this.C=!1,this.G=!0,this.i.abort(),this.G=!1),Di(this,!0));g.Ai.Rd.ra.call(this)};
g.k.oJ=function(){this.Ha()||(this.Ea||this.Y||this.G?Oi(this):this.wS())};
g.k.wS=function(){Oi(this)};
g.k.isActive=function(){return!!this.i};
g.k.getStatus=function(){try{return 2<g.Gi(this)?this.i.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.i&&4==g.Gi(this))return a=this.i.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.u?this.u:String(this.u)};g.v(Si,ue);g.v(Ti,ue);g.v(Ui,ue);Ui.prototype.Z=function(){return null!=Ae(this,7)};
var Sda=[3,20,27];g.v(Vi,ue);var Tda=[3,5];g.v(Zi,ue);var Uda=[5];g.v($i,ue);var Paa=new function(){this.fieldName={P7:0};this.i=$i;this.isRepeated=0};g.v(ej,g.If);g.k=ej.prototype;g.k.ra=function(){this.Rs();g.If.prototype.ra.call(this)};
g.k.dispatch=function(a){if(a instanceof Ui)this.log(a);else{var b=new Ui;a=Me(a);b=De(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.wb++;De(a,21,b);this.Y&&De(a,26,this.Y);if(!Ae(a,1)){b=a;var c=Date.now().toString();De(b,1,c)}null!=Ae(a,15)||De(a,15,60*(new Date).getTimezoneOffset());this.u&&(b=this.u.clone(),Ke(a,16,b));for(;1E3<=this.l.length;)this.l.shift(),++this.J;this.l.push(a);this.dispatchEvent(new hj(a));this.X||this.i.enabled||this.i.start()};
g.k.flush=function(a,b){var c=this;if(0===this.l.length)a&&a();else if(this.Ea)Wda(this);else{var d=Date.now();if(this.Ya>d&&this.Aa<d)b&&b("throttled");else{var e=Yi(Xi(Wi(this.C.clone()),this.l),this.J);d={};var f=this.Ga();f&&(d.Authorization=f);var h=fj(this);this.U&&(d["X-Goog-AuthUser"]=this.U,h=ui(h,"authuser",this.U));this.xa&&(d["X-Goog-PageId"]=this.xa,h=ui(h,"pageId",this.xa));if(f&&this.Va===f)b&&b("stale-auth-token");else{this.l=[];this.i.enabled&&this.i.stop();this.J=0;var l=Me(e),m;
this.K&&this.K.isSupported(l.length)&&(m=this.K.B7(l));var n={url:h,body:l,i:1,rp:d,requestType:"POST",withCredentials:this.jb,timeoutMillis:0},p=function(u){c.G.reset();c.i.setInterval(c.G.getValue());if(u){var x=null;try{var y=JSON.parse(u.replace(")]}'\n",""));x=new Zi(y)}catch(B){}x&&(u=Number(Be(x,1,"-1")),0<u&&(c.Aa=Date.now(),c.Ya=c.Aa+u),x=Qaa(x))&&(x=Ce(x,1,-1),-1!=x&&(c.Pa||gj(c,x)))}a&&a()},r=function(u){var x=Ie(e,Ui,3);
g.Ze(c.G);c.i.setInterval(c.G.getValue());401===u&&f&&(c.Va=f);if(500<=u&&600>u||401===u||0===u)c.l=x.concat(c.l),c.X||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.La?c.La.send(n,p,r):c.eb(n,p,r)};
m?m.then(function(u){n.rp["Content-Encoding"]="gzip";n.rp["Content-Type"]="application/binary";n.body=u;n.i=2;t()},function(){t()}):t()}}}};
g.k.Rs=function(){this.flush()};
g.v(hj,g.hf);ij.prototype.He=function(){var a=new ej(1654,this.C?this.C:Fh,"0",this.J,this.u,this.B,!1,void 0,void 0,void 0,this.K?this.K:void 0);if(this.Y){var b=this.Y;Ae(b,1)||De(b,1,1);Ke(a.C,1,b)}if(this.l){b=this.l;var c=He(a.C,Ti,1),d=He(c,Si,11);d||(d=new Si);De(d,7,b);Ke(c,11,d);Ae(c,1)||De(c,1,1);Ke(a.C,1,c)}this.G&&(a.K=this.G);this.i&&(a.Y=this.i);this.U&&((b=this.U)?(a.u||(a.u=new Gh),b=Me(b),De(a.u,4,b)):a.u&&De(a.u,4,void 0));this.ma&&(b=this.ma,a.u||(a.u=new Gh),De(a.u,2,se(b||[])));this.X&&(b=
this.X,a.Pa=!0,gj(a,b));return a};jj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new wh,c=[],d=0;d<a.length;d++){var e=a[d],f=e;var h=new qh;h=De(h,1,f.l);for(var l=f,m=[],n=0;n<l.i.length;n++)m.push(l.i[n].Co);h=De(h,3,se(m||[]));l=[];m=[];n=g.q(f.lq.keys());for(var p=n.next();!p.done;p=n.next())m.push(p.value.split(","));for(n=0;n<m.length;n++){p=m[n];var r=f.B;for(var t=f.cB(p)||[],u=[],x=0;x<t.length;x++){var y=t[x];y=y&&y.mG;var B=new vh;switch(r){case 3:Ge(B,1,uh[0],Number(y));break;case 2:Ge(B,2,uh[0],Number(y))}u.push(B)}r=
u;for(t=0;t<r.length;t++){u=r[t];x=new rh;u=Ke(x,2,u);x=p;y=[];B=f;for(var G=[],H=0;H<B.i.length;H++)G.push(B.i[H].Do);B=G;for(G=0;G<B.length;G++){H=B[G];var I=x[G],M=new th;switch(H){case 3:Ge(M,1,sh[0],String(I));break;case 2:Ge(M,2,sh[0],Number(I));break;case 1:Ge(M,3,sh[0],"true"==I)}y.push(M)}Le(u,1,y);l.push(u)}}Le(h,4,l);c.push(h);e.clear()}Le(b,1,c);this.i.dispatch(b);this.i.flush()}};lj.prototype.ax=function(){};
lj.prototype.bx=function(){};
lj.prototype.jI=function(){};
mj.prototype.ax=function(a){this.clientError.i.uL("/client_streamz/po/w/cec",a,this.Kl)};
mj.prototype.bx=function(a,b){this.l.vk(b,a,this.Kl)};
mj.prototype.jI=function(a,b){var c=this,d=Date.now();(function(){return g.D(c,function f(){var h,l,m=this,n;return g.z(f,function(p){if(1==p.i)return h=0,ta(p,2,3),g.w(p,b,3);if(2!=p.i)return wa(p),l=Date.now()-d,m.u.vk(l,a,h,m.Kl),xa(p,0);n=va(p);void 0!==n.code&&void 0!==n.code?h=n.code:(h=-1,m.ax(1));return p.ub(3)})})})()};g.v(nj,ue);g.v(oj,ue);g.v(pj,ue);pj.bQ="bfkj";qj.prototype.snapshot=function(a){var b=this;if(this.i)throw Error("Already disposed");return this.B.then(function(){return new Promise(function(c){b.u(function(d){c(d)},[a.vG])})})};
qj.prototype.dispose=function(){var a=this;this.i=!0;this.B.then(function(){a.l&&a.l()})};
qj.prototype.Ha=function(){return this.i};var rj={};var uj;g.v(wj,vj);wj.prototype.toString=function(){return this.i.toString()};g.v(yj,xj);yj.prototype.toString=function(){return this.i};
var goa=new yj("about:invalid#zTSz",rj);fa.Object.defineProperties(Ej.prototype,{l:{configurable:!0,enumerable:!0,get:function(){return this.i.a}},
u:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.v(Fj,ue);g.v(Gj,ue);Hj.prototype.ww=function(){return this.u};
Hj.prototype.getMetadata=function(){return this.l};Ij.prototype.getMetadata=function(){return this.i};
Ij.prototype.ww=function(){return this.l};
Ij.prototype.getStatus=function(){return null};Jj.prototype.getName=function(){return this.name};var wJa=new Jj("/google.internal.waa.v1.Waa/Create",Fj,Gj,function(a){return Me(a)},function(a){return Ne(Gj,a)});g.v(Lj,ue);g.v(Mj,ue);var sea=new Jj("/google.internal.waa.v1.Waa/GenerateIT",Lj,Mj,function(a){return Me(a)},function(a){return Ne(Mj,a)});var mea=Promise;g.v(Nj,ue);Nj.prototype.getValue=function(){return Be(this,2,"")};
Nj.prototype.setValue=function(a){return Fe(this,2,a,"")};g.v(Oj,ue);var eea=[3];Pj.prototype.Cl=function(a,b){"data"==a?this.u.push(b):"metadata"==a?this.C.push(b):"status"==a?this.G.push(b):"end"==a?this.B.push(b):"error"==a&&this.l.push(b);return this};
Pj.prototype.removeListener=function(a,b){"data"==a?Vj(this.u,b):"metadata"==a?Vj(this.C,b):"status"==a?Vj(this.G,b):"end"==a?Vj(this.B,b):"error"==a&&Vj(this.l,b);return this};
Pj.prototype.cancel=function(){this.i.abort()};
Pj.prototype.cancel=Pj.prototype.cancel;Pj.prototype.removeListener=Pj.prototype.removeListener;Pj.prototype.on=Pj.prototype.Cl;g.Ta(Wj,Qh);Wj.prototype.i=function(){return new Xj(this.C,this.u)};
Wj.prototype.B=ab({});g.Ta(Xj,g.If);g.k=Xj.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.X=a;this.Y=b;this.readyState=1;Zj(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.i=!0;var b={headers:this.U,method:this.X,credentials:this.G,cache:void 0};a&&(b.body=a);(this.ma||g.A).fetch(new Request(this.Y,b)).then(this.lP.bind(this),this.Iw.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.U=new Headers;this.status=0;this.u&&this.u.cancel("Request was aborted.");1<=this.readyState&&this.i&&4!=this.readyState&&(this.i=!1,ak(this));this.readyState=0};
g.k.lP=function(a){if(this.i&&(this.C=a,this.l||(this.status=this.C.status,this.statusText=this.C.statusText,this.l=a.headers,this.readyState=2,Zj(this)),this.i&&(this.readyState=3,Zj(this),this.i)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.jP.bind(this),this.Iw.bind(this));else if("undefined"!==typeof g.A.ReadableStream&&"body"in a){this.u=a.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.K=new TextDecoder;Yj(this)}else a.text().then(this.kP.bind(this),this.Iw.bind(this))};
g.k.bP=function(a){if(this.i){if(this.J&&a.value)this.response.push(a.value);else if(!this.J){var b=a.value?a.value:new Uint8Array(0);if(b=this.K.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?ak(this):Zj(this);3==this.readyState&&Yj(this)}};
g.k.kP=function(a){this.i&&(this.response=this.responseText=a,ak(this))};
g.k.jP=function(a){this.i&&(this.response=a,ak(this))};
g.k.Iw=function(){this.i&&ak(this)};
g.k.setRequestHeader=function(a,b){this.U.append(a,b)};
g.k.getResponseHeader=function(a){return this.l?this.l.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.l)return"";for(var a=[],b=this.l.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
Object.defineProperty(Xj.prototype,"withCredentials",{get:function(){return"include"===this.G},
set:function(a){this.G=a?"include":"same-origin"}});g.bk.prototype.toString=function(){var a=[],b=this.B;b&&a.push(ok(b,xJa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.K)&&a.push(ok(b,xJa,!0),"@"),a.push(od(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.u,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(ok(c,"/"==c.charAt(0)?yJa:zJa,!0));(c=this.l.toString())&&a.push("?",c);(c=this.C)&&a.push("#",ok(c,AJa));return a.join("")};
g.bk.prototype.resolve=function(a){var b=this.clone(),c=!!a.B;c?g.ck(b,a.B):c=!!a.K;c?b.K=a.K:c=!!a.i;c?g.dk(b,a.i):c=null!=a.u;var d=a.getPath();if(c)g.ek(b,a.u);else if(c=!!a.J){if("/"!=d.charAt(0))if(this.i&&!this.J)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=nc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||
1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.J=d:c=""!==a.l.toString();c?fk(b,a.l.clone()):c=!!a.C;c&&(b.C=a.C);return b};
g.bk.prototype.clone=function(){return new g.bk(this)};
g.bk.prototype.getPath=function(){return this.J};
var xJa=/[#\/\?@]/g,zJa=/[#\?:]/g,yJa=/[#\?]/g,iea=/[#\?@]/g,AJa=/#/g;g.k=nk.prototype;g.k.add=function(a,b){rk(this);this.u=null;a=sk(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.l=this.l+1;return this};
g.k.remove=function(a){rk(this);a=sk(this,a);return this.i.has(a)?(this.u=null,this.l=this.l-this.i.get(a).length,this.i.remove(a)):!1};
g.k.clear=function(){this.i=this.u=null;this.l=0};
g.k.isEmpty=function(){rk(this);return 0==this.l};
g.k.forEach=function(a,b){rk(this);this.i.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Rh=function(){rk(this);for(var a=this.i.Ng(),b=this.i.Rh(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.Ng=function(a){rk(this);var b=[];if("string"===typeof a)tk(this,a)&&(b=b.concat(this.i.get(sk(this,a))));else{a=this.i.Ng();for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){rk(this);this.u=null;a=sk(this,a);tk(this,a)&&(this.l=this.l-this.i.get(a).length);this.i.set(a,[b]);this.l=this.l+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.Ng(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.u)return this.u;if(!this.i)return"";for(var a=[],b=this.i.Rh(),c=0;c<b.length;c++){var d=b[c],e=od(d);d=this.Ng(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+od(d[f]));a.push(h)}}return this.u=a.join("&")};
g.k.clone=function(){var a=new nk;a.u=this.u;this.i&&(a.i=this.i.clone(),a.l=this.l);return a};g.Ta(g.vk,g.E);var BJa=[];g.k=g.vk.prototype;g.k.Ra=function(a,b,c,d){Array.isArray(b)||(b&&(BJa[0]=b.toString()),b=BJa);for(var e=0;e<b.length;e++){var f=uf(a,b[e],c||this.handleEvent,d||!1,this.l||this);if(!f)break;this.i[f.key]=f}return this};
g.k.Zw=function(a,b,c,d){return wk(this,a,b,c,d)};
g.k.fc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.fc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Na(d)?!!d.capture:!!d,e=e||this.l||this,c=yf(c),d=!!d,b=of(a)?a.jt(b,c,d,e):a?(a=Af(a))?a.jt(b,c,d,e):null:null,b&&(Ff(b),delete this.i[b.key])};
g.k.ra=function(){g.vk.Rd.ra.call(this);g.xk(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};yk.prototype.isInputValid=function(){return this.u};Ak.prototype.isInputValid=function(){return 3!=this.Oa};
Ak.prototype.Yd=function(){return this.C};
Ak.prototype.Fv=function(){return!0};
Ak.prototype.parse=function(a){function b(m){m&128&&Bk(f,h,l,"invalid tag");2!=(m&7)&&Bk(f,h,l,"invalid wire type");f.l=m>>>3;1!=f.l&&2!=f.l&&15!=f.l&&Bk(f,h,l,"unexpected tag");f.Oa=1;f.i=0;f.u=0}
function c(m){f.u++;5==f.u&&m&240&&Bk(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.u-1);m&128||(f.Oa=2,f.G=0,"undefined"!==typeof Uint8Array?f.B=new Uint8Array(f.i):f.B=Array(f.i),0==f.i&&e())}
function d(m){f.B[f.G++]=m;f.G==f.i&&e()}
function e(){if(15>f.l){var m={};m[f.l]=f.B;f.Od.push(m)}f.Oa=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.Oa){case 3:Bk(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.Oa);}f.J++;l++}a=f.Od;f.Od=[];return 0<a.length?a:null};Ck.prototype.isInputValid=function(){return null===this.i};
Ck.prototype.Yd=function(){return this.i};
Ck.prototype.Fv=function(){return!1};
Ck.prototype.parse=function(a){null!==this.i&&Dk(this,a,"stream already broken");var b=null;try{var c=this.u;c.u||zk(c,a,"stream already broken");c.i+=a;var d=Math.floor(c.i.length/4);if(0==d)var e=null;else{try{var f=ee(c.i.substr(0,4*d))}catch(h){zk(c,c.i,h.message)}c.l+=4*d;c.i=c.i.substr(4*d);e=f}b=null===e?null:this.B.parse(e)}catch(h){Dk(this,a,h.message)}this.l+=a.length;return b};var CJa={INIT:0,hs:1,Sz:2,eq:3,Ir:4,Hr:5,STRING:6,Kz:7,eF:8,yF:9,zF:10,AF:11,fE:12,gE:13,hE:14,iE:15,iF:16,jF:17,kF:18,GN:19,Qz:20};g.k=Fk.prototype;g.k.isInputValid=function(){return 3!=this.B};
g.k.Yd=function(){return this.J};
g.k.done=function(){return 2===this.B};
g.k.Fv=function(){return!1};
g.k.parse=function(a){function b(){for(;t<a.length;)if(Ek(a[t]))t++,f.l++;else break;return t<n}
function c(){for(var x;;){x=a[t++];if(!x)break;f.l++;switch(f.Oa){case m.INIT:"{"===x?f.Oa=m.Sz:"["===x?f.Oa=m.Ir:Ek(x)||Gk(f,a,t);continue;case m.Kz:case m.Sz:if(Ek(x))continue;if(f.Oa===m.Kz)h.push(m.eF);else if("}"===x){e("{}");f.Oa=d();continue}else h.push(m.eq);'"'===x?f.Oa=m.STRING:Gk(f,a,t);continue;case m.eF:case m.eq:if(Ek(x))continue;":"===x?(f.Oa===m.eq&&(h.push(m.eq),f.i++),f.Oa=m.hs):"}"===x?(f.i--,e(),f.Oa=d()):","===x?(f.Oa===m.eq&&h.push(m.eq),f.Oa=m.Kz):Gk(f,a,t);continue;case m.Ir:case m.hs:if(Ek(x))continue;
if(f.Oa===m.Ir)if(f.i++,f.Oa=m.hs,"]"===x){f.i--;if(0===f.i){f.Oa=m.Hr;return}e("[]");f.Oa=d();continue}else h.push(m.Hr);'"'===x?f.Oa=m.STRING:"{"===x?f.Oa=m.Sz:"["===x?f.Oa=m.Ir:"t"===x?f.Oa=m.yF:"f"===x?f.Oa=m.fE:"n"===x?f.Oa=m.iF:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.Oa=m.Qz:Gk(f,a,t));continue;case m.Hr:if(","===x)h.push(m.Hr),f.Oa=m.hs,1===f.i&&(r=t);else if("]"===x){f.i--;if(0===f.i)return;e();f.Oa=d()}else if(Ek(x))continue;else Gk(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<
f.G;)if(x=a[t++],4===f.G?f.G=0:f.G++,!x)break a;if('"'===x&&!f.C){f.Oa=d();break}if("\\"===x&&!f.C&&(f.C=!0,x=a[t++],!x))break;if(f.C)if(f.C=!1,"u"===x&&(f.G=1),x=a[t++])continue;else break;l.lastIndex=t;x=l.exec(a);if(!x){t=a.length+1;break}t=x.index+1;x=a[x.index];if(!x)break}f.l+=t-y;continue;case m.yF:if(!x)continue;"r"===x?f.Oa=m.zF:Gk(f,a,t);continue;case m.zF:if(!x)continue;"u"===x?f.Oa=m.AF:Gk(f,a,t);continue;case m.AF:if(!x)continue;"e"===x?f.Oa=d():Gk(f,a,t);continue;case m.fE:if(!x)continue;
"a"===x?f.Oa=m.gE:Gk(f,a,t);continue;case m.gE:if(!x)continue;"l"===x?f.Oa=m.hE:Gk(f,a,t);continue;case m.hE:if(!x)continue;"s"===x?f.Oa=m.iE:Gk(f,a,t);continue;case m.iE:if(!x)continue;"e"===x?f.Oa=d():Gk(f,a,t);continue;case m.iF:if(!x)continue;"u"===x?f.Oa=m.jF:Gk(f,a,t);continue;case m.jF:if(!x)continue;"l"===x?f.Oa=m.kF:Gk(f,a,t);continue;case m.kF:if(!x)continue;"l"===x?f.Oa=d():Gk(f,a,t);continue;case m.GN:"."===x?f.Oa=m.Qz:Gk(f,a,t);continue;case m.Qz:if(-1!=="0123456789.eE+-".indexOf(x))continue;
else t--,f.l--,f.Oa=d();continue;default:Gk(f,a,t)}}}
function d(){var x=h.pop();return null!=x?x:m.hs}
function e(x){1<f.i||(x||(x=-1===r?f.u+a.substring(p,t):a.substring(r,t)),f.K?f.Od.push(x):f.Od.push(JSON.parse(x)),r=t)}
for(var f=this,h=f.U,l=f.Y,m=CJa,n=a.length,p=0,r=-1,t=0;t<n;)switch(f.B){case 3:return Gk(f,a,t),null;case 2:return b()&&Gk(f,a,t),null;case 0:if(b()){var u=a[t++];f.l++;if("["===u){f.B=1;p=t;f.Oa=m.Ir;continue}else Gk(f,a,t)}return null;case 1:return c(),0===f.i&&f.Oa==m.Hr?(f.B=2,f.u=a.substring(t)):f.u=-1===r?f.u+a.substring(p):a.substring(r),0<f.Od.length?(u=f.Od,f.Od=[],u):null}return null};Hk.prototype.isInputValid=function(){return null===this.u};
Hk.prototype.Yd=function(){return this.u};
Hk.prototype.Fv=function(){return!1};
Hk.prototype.parse=function(a){function b(m){f.Oa=6;f.u="The stream is broken @"+f.i+"/"+h+". Error: "+m+". With input:\n";throw Error(f.u);}
function c(){f.l=new Fk({z7:!0,tO:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.Od.push(p)}}
function e(m){if(m){(f.B||1<m.length)&&b("extra status: "+m);f.B=!0;var n={};n[2]=m[0];f.Od.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.Oa){a:{for(;h<a.length;){if(!Ek(a[h])){l=!0;break a}h++;f.i++}l=!1}l=!l}if(l)return null;switch(f.Oa){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.Oa=1,h++,f.i++):b("unexpected input token");break;case 1:"["===a[h]?(f.Oa=2,c()):","===a[h]||"null,"==a.substr(h,5)?f.Oa=3:"]"===a[h]?(f.Oa=5,h++,f.i++):b("unexpected input token");break;case 2:l=f.l.parse(a.substring(h));d(l);f.l.done()?(f.Oa=3,l=f.l.u,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=
a.length-h,h=a.length);break;case 3:","===a[h]||"null,"==a.substr(h,5)?(f.Oa=4,c(),f.l.parse("["),h+=","===a[h]?1:5,f.i++):"]"===a[h]&&(f.Oa=5,h++,f.i++);break;case 4:l=f.l.parse(a.substring(h));e(l);f.l.done()?(f.Oa=5,l=f.l.u,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.Od.length?(a=f.Od,f.Od=[],a):null};Ik.prototype.getStatus=function(){return this.B};
Ik.prototype.Y=function(a){a=a.target;try{if(a==this.i)a:{var b=g.Gi(this.i),c=this.i.l,d=this.i.getStatus(),e=g.Qi(this.i);a=[];if(Ri(this.i)instanceof Array){var f=Ri(this.i);0<f.length&&f[0]instanceof Uint8Array&&(this.U=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Jk(this,7):7==c?Jk(this,8):d||Jk(this,3)),this.l||(this.l=lea(this.i),null==this.l&&Jk(this,5)),2<this.B)Kk(this);else{if(a.length>this.u){var h=a.length;c=[];try{if(this.l.Fv())for(var l=0;l<h;l++){var m=
this.l.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.G){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.G=new TextDecoder}for(l=0;l<h;l++)m+=this.G.decode(a[l],{stream:4==b&&l==h-1});c=this.l.parse(m)}a.splice(0,h);c&&this.C(c)}catch(p){Jk(this,5);Kk(this);break a}}else if(e.length>this.u){l=e.substr(this.u);this.u=e.length;try{var n=this.l.parse(l);null!=n&&this.C&&this.C(n)}catch(p){Jk(this,5);Kk(this);break a}}4==b?(0!=e.length||
this.U?Jk(this,2):Jk(this,4),Kk(this)):Jk(this,1)}}}catch(p){Jk(this,6),Kk(this)}};g.k=Lk.prototype;g.k.Cl=function(a,b){var c=this.l[a];c||(c=[],this.l[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.Cl(a,b);return this};
g.k.removeListener=function(a,b){var c=this.l[a];c&&g.ob(c,b);(a=this.i[a])&&g.ob(a,b);return this};
g.k.once=function(a,b){var c=this.i[a];c||(c=[],this.i[a]=c);c.push(b);return this};
g.k.jR=function(a){var b=this.l.data;b&&Mk(a,b);(b=this.i.data)&&Mk(a,b);this.i.data=[]};
g.k.fT=function(){switch(this.u.getStatus()){case 1:Nk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Nk(this,"error");break;case 8:Nk(this,"close");break;case 2:Nk(this,"end")}};Ok.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Pk(function(h){var l=h.ww(),m=h.getMetadata(),n=Rk(e,!1);m=Sk(e,m,n,f+l.getName());var p=Tk(n,l.l,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.B).call(this,Kj(d,b,c))};Vk.prototype.create=function(a,b){return Qk(this.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},wJa)};g.v(Xk,g.E);g.v(Yk,Xk);Yk.prototype.qx=function(a){this.i+=1;var b=new Ej(this.G(a.vG));a=b.l;b=g.xd(b.u);var c=new Re;a=De(c,1,a);a=De(a,2,b);b=new Te;c=Se[0];b.i||(b.i={});var d=a?Je(a):a;b.i[3]=a;a=Ge(b,3,c,d);b=new he;c=He(a,Pe,1);null!=c&&ne(b,1,c,Raa);c=He(a,Qe,2);null!=c&&ne(b,2,c,Saa);c=He(a,Re,3);null!=c&&ne(b,3,c,Taa);return ie(b)};
Yk.prototype.u=function(){return this.i>=this.B};
Yk.prototype.dispose=function(){this.C.dispose()};
g.v(Zk,Xk);Zk.prototype.qx=function(){return this.i};
Zk.prototype.u=function(){return!1};
Wk.prototype.isReady=function(){return!!this.i};
Wk.prototype.ready=function(){return g.D(this,function b(){var c=this;return g.z(b,function(d){return g.w(d,c.C,0)})})};
Wk.prototype.refresh=function(){return g.D(this,function b(){var c=this,d,e;return g.z(b,function(f){if(1==f.i){if(c.u)return f.return();c.u=!0;f.G=0;f.B=2;d=c.i;d.l=!0;e=$k(c);return g.w(f,e,4)}2!=f.i&&(c.i=f.l,d.dispose());wa(f);c.u=!1;return xa(f,0)})})};
Wk.prototype.qx=function(a){if(!this.isReady())throw Error("Not ready");try{var b=this.i,c=Date.now();b.l&&this.logger.ax(6);try{var d=b.qx(a)}catch(e){throw al(this,5,e);}b.u()&&this.refresh();this.logger.bx("m",Date.now()-c);return d}catch(e){return this.onError(e instanceof Error?e:Error(String(e)),"Could not mint"),a="WE:",a=e instanceof Ue?a+(e.code+":"+e.message+":"+e.stack):e instanceof Error?a+(e.message+":"+e.stack):a+(""+e),new Uint8Array(g.Xa(a.substring(0,2048)))}};var Nn;Nn=["av.key","js","unreleased"].slice(-1)[0];var Sl=document,nm=window;var xea=cb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.A.addEventListener("test",null,b)}catch(c){}return a});var Aea=/https?:\/\/[^\/]+/,yea={xV:"allow-forms",yV:"allow-modals",zV:"allow-orientation-lock",AV:"allow-pointer-lock",BV:"allow-popups",CV:"allow-popups-to-escape-sandbox",EV:"allow-presentation",FV:"allow-same-origin",GV:"allow-scripts",HV:"allow-top-navigation",IV:"allow-top-navigation-by-user-activation"},Dea=cb(function(){return zea()});g.k=ml.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new ml(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof ml?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};g.k=g.pl.prototype;g.k.clone=function(){return new g.pl(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Qf?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var tl=[sl("data"),sl("http"),sl("https"),sl("mailto"),sl("ftp"),new rl(function(a){return/^[^:]*([/?#]|$)/.test(a)})];var vl=g.Ja;var Al={};var Ql=!!window.google_async_iframe_id,Rl=Ql&&window.parent||window;var sfa={NONE:0,WY:1},Yea={nL:0,F4:1,E4:2,G4:3};Wl.prototype.isVisible=function(){return this.Ro?.3<=this.Pc:.5<=this.Pc};var Im={HW:0,kZ:1},Wea={NONE:0,i_:1,GZ:2};bm.prototype.getValue=function(){return this.l};
g.v(cm,bm);cm.prototype.setValue=function(a){if(null!==this.l||!g.Ob(this.u,a))return!1;this.l=a;return!0};
g.v(dm,bm);dm.prototype.setValue=function(a){if(null!==this.l||"number"!==typeof a)return!1;this.l=a;return!0};
g.v(em,bm);em.prototype.setValue=function(a){if(null!==this.l||"string"!==typeof a)return!1;this.l=a;return!0};fm.prototype.disable=function(){this.l=!1};
fm.prototype.enable=function(){this.l=!0};
fm.prototype.isEnabled=function(){return this.l};
fm.prototype.reset=function(){this.i={};this.l=!0;this.u={}};var tfa=!g.fe&&!Xc();km.prototype.now=function(){return 0};
km.prototype.l=function(){return 0};
km.prototype.u=function(){return 0};
km.prototype.i=function(){return 0};g.v(mm,km);mm.prototype.now=function(){return lm()&&nm.performance.now?nm.performance.now():km.prototype.now.call(this)};
mm.prototype.l=function(){return lm()&&nm.performance.memory?nm.performance.memory.totalJSHeapSize||0:km.prototype.l.call(this)};
mm.prototype.u=function(){return lm()&&nm.performance.memory?nm.performance.memory.usedJSHeapSize||0:km.prototype.u.call(this)};
mm.prototype.i=function(){return lm()&&nm.performance.memory?nm.performance.memory.jsHeapSizeLimit||0:km.prototype.i.call(this)};pm.prototype.isVisible=function(){return 1===om(Sl)};var Lea=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;Bm.prototype.setInterval=function(a,b){return nm.setInterval(a,b)};
Bm.prototype.clearInterval=function(a){nm.clearInterval(a)};
Bm.prototype.setTimeout=function(a,b){return nm.setTimeout(a,b)};
Bm.prototype.clearTimeout=function(a){nm.clearTimeout(a)};Fm.prototype.getContext=function(){if(!this.i){if(!nm)throw Error("Context has not been set and window is undefined.");this.i=g.Am(Bm)}return this.i};g.v(Gm,ue);var Xea={j4:1,ON:2,A2:3};mc(ec(g.fc("https://pagead2.googlesyndication.com/pagead/osd.js")));Jm.prototype.KC=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.l){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(e=b.i[e])&&e.setValue(d)}}}};var $1=null;var Qm=g.A.performance,DJa=!!(Qm&&Qm.mark&&Qm.measure&&Qm.clearMarks),Om=cb(function(){var a;if(a=DJa){var b;if(null===$1){$1="";try{a="";try{a=g.A.top.location.hash}catch(c){a=g.A.location.hash}a&&($1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=$1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Pm.prototype.disable=function(){this.i=!1;this.events!=this.l.google_js_reporting_queue&&(Om()&&g.Cb(this.events,Rm),this.events.length=0)};
Pm.prototype.start=function(a,b){if(!this.i)return null;var c=Nm()||Mm();a=new $ea(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Qm&&Om()&&Qm.mark(b);return a};
Pm.prototype.end=function(a){if(this.i&&"number"===typeof a.value){var b=Nm()||Mm();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Qm&&Om()&&Qm.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};Um.prototype.WB=function(a,b,c,d,e){e=e||this.LG;try{var f=new tm;f.i.push(1);f.l[1]=um("context",a);b.error&&b.meta&&b.id||(b=new Vm(Wm(b)));if(b.msg){var h=b.msg.substring(0,512);f.i.push(2);f.l[2]=um("msg",h)}var l=b.meta||{};if(this.iA)try{this.iA(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.i.push(3);f.l[3]=b;var m=sm();if(m.l){var n=m.l.url||"";f.i.push(4);f.l[4]=um("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?ji(m.i.url):""}];f.i.push(5);f.l[5]=p;Lm(this.i,e,f,!1,c)}catch(r){try{Lm(this.i,
e,{context:"ecmserr",rctx:a,msg:Wm(r),url:m&&m.i.url},!1,c)}catch(t){}}return this.lD};
g.v(Vm,dl);var Tm,Ym,Sm=new Pm;(function(){Tm=new Zea;Ym=new Um;var a=Tl();a&&a.document&&("complete"==a.document.readyState?$m():Sm.i&&fl(a,"load",function(){$m()}))})();var bfa=Date.now(),gn=-1,en=-1,Qo,hn=-1,fn=!1;var EJa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Lo={JN:"start",qL:"firstquartile",EN:"midpoint",LN:"thirdquartile",kL:"complete",DN:"metric",PAUSE:"pause",HN:"resume",IN:"skip",NN:"viewable_impression",FN:"mute",MN:"unmute",rL:"fullscreen",pL:"exitfullscreen",jL:"bufferstart",iL:"bufferfinish",sL:"fully_viewable_audible_half_duration_impression",CN:"measurable_impression",gL:"abandon",oL:"engagedview",tL:"impression",lL:"creativeview",BN:"loaded",p4:"progress",CLOSE:"close",
wW:"collapse",E3:"overlay_resize",F3:"overlay_unmeasurable_impression",G3:"overlay_unviewable_impression",I3:"overlay_viewable_immediate_impression",H3:"overlay_viewable_end_of_session_impression",mL:"custom_metric_viewable",z3:"verification_debug"},Cga="start firstquartile midpoint thirdquartile resume loaded".split(" "),Dga=["start","firstquartile","midpoint","thirdquartile"],Ifa=["abandon"],xp={UNKNOWN:-1,JN:0,qL:1,EN:2,LN:3,kL:4,DN:5,PAUSE:6,HN:7,IN:8,NN:9,FN:10,MN:11,rL:12,pL:13,sL:14,CN:15,
gL:16,oL:17,tL:18,lL:19,BN:20,mL:21,jL:22,iL:23};var dfa={lV:"addEventListener",IZ:"getMaxSize",JZ:"getScreenSize",KZ:"getState",LZ:"getVersion",A4:"removeEventListener",p_:"isViewable"};if(Sl&&Sl.URL){var FJa,ll=Sl.URL;FJa=!!ll&&0<Cea().length;Ym.lD=!FJa};tn.prototype.update=function(a){a&&a.document&&(this.J=Vl(!1,a,this.isMobileDevice),this.i=Vl(!0,a,this.isMobileDevice),vn(this,a),un(this,a))};yn.prototype.cancel=function(){Cm().clearTimeout(this.i);this.i=null};
yn.prototype.schedule=function(){var a=this;this.i=Cm().setTimeout(Hm(Km().i.i,bn(143,function(){a.l++;a.u.sE()})),cfa())};g.k=zn.prototype;g.k.Kr=function(){return!1};
g.k.initialize=function(){return this.Ud=!0};
g.k.Cq=function(){return this.i.va};
g.k.At=function(){return this.i.U};
g.k.getName=function(){return this.i.Ea};
g.k.Dm=function(){return this.i.hH()};
g.k.hH=function(){return{}};
g.k.ol=function(){return this.i.J};
g.k.pE=function(){var a=wn();a.i=Vl(!0,this.Vf,a.isMobileDevice)};
g.k.qE=function(){un(wn(),this.Vf)};
g.k.pH=function(){return this.u.i};
g.k.sE=function(){};
g.k.isActive=function(){return this.i.C};
g.k.Hq=function(a){var b=this.i;this.i=a.ol()>=this.J?a:this;b!==this.i?(this.C=this.i.C,An(this)):this.C!==this.i.C&&(this.C=this.i.C,An(this))};
g.k.Mm=function(a){if(a.l===this.i){var b=this.u,c=this.K;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.u==a.u)b=b.i,c=a.i,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.u=a;!c&&Fn(this)}};
g.k.wk=function(){return this.K};
g.k.dispose=function(){this.ma=!0};
g.k.Ha=function(){return this.ma};g.k=Gn.prototype;g.k.gz=function(){return!0};
g.k.Lr=function(){};
g.k.dispose=function(){if(!this.Ha()){var a=this.l;g.ob(a.B,this);a.K&&this.wk()&&En(a);this.Lr();this.Y=!0}};
g.k.Ha=function(){return this.Y};
g.k.Dm=function(){return this.l.Dm()};
g.k.ol=function(){return this.l.ol()};
g.k.Cq=function(){return this.l.Cq()};
g.k.At=function(){return this.l.At()};
g.k.Hq=function(){};
g.k.Mm=function(){this.gm()};
g.k.wk=function(){return this.X};g.k=Hn.prototype;g.k.ol=function(){return this.i.ol()};
g.k.Cq=function(){return this.i.Cq()};
g.k.At=function(){return this.i.At()};
g.k.create=function(a,b,c){var d=null;this.i&&(d=this.fv(a,b,c),Cn(this.i,d));return d};
g.k.rE=function(){return this.Mr()};
g.k.Mr=function(){return!1};
g.k.init=function(a){return this.i.initialize()?(Cn(this.i,this),this.B=a,!0):!1};
g.k.Hq=function(a){0==a.ol()&&this.B(a.Cq(),this)};
g.k.Mm=function(){};
g.k.wk=function(){return!1};
g.k.dispose=function(){this.C=!0};
g.k.Ha=function(){return this.C};
g.k.Dm=function(){return{}};Kn.prototype.add=function(a,b,c){++this.u;var d=this.u/4096,e=this.i,f=e.push;a=new In(a,b,c);d=new In(a.l,a.i,a.u+d);f.call(e,d);this.l=!0;return this};On.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Mn(this.i);0<b.length&&(a+="?"+b);return a};Rn.prototype.update=function(a,b,c){a&&(this.i+=b,this.l+=b,this.B+=b,this.u=Math.max(this.u,this.B));if(void 0===c?!a:c)this.B=0};var mfa=[1,.75,.5,.3,0];Sn.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.l.length;e++){var h=this.l[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.i[e].update(f&&l,d,!f||h)}};ao.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Pc):b.Pc;this.X=Math.max(this.X,b.Pc);this.ma=-1!=this.ma?Math.min(this.ma,b.Yg):b.Yg;this.xa=Math.max(this.xa,b.Yg);this.Ua.update(b.Yg,c.Yg,b.i,a,d);this.l.update(b.Pc,c.Pc,b.i,a,d);c=d||c.Ro!=b.Ro?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.Da.update(c,a,b)};
ao.prototype.To=function(){return this.Da.u>=this.Pa};var GJa=new ml(0,0,0,0);var rfa=new ml(0,0,0,0);g.v(fo,g.E);g.k=fo.prototype;g.k.ra=function(){this.Jg.i&&(this.po.gC&&(gl(this.Jg.i,"mouseover",this.po.gC),this.po.gC=null),this.po.eC&&(gl(this.Jg.i,"mouseout",this.po.eC),this.po.eC=null));this.Mu&&this.Mu.dispose();this.xd&&this.xd.dispose();delete this.jx;delete this.YB;delete this.PK;delete this.Jg.Um;delete this.Jg.i;delete this.po;delete this.Mu;delete this.xd;delete this.featureSet;g.E.prototype.ra.call(this)};
g.k.Em=function(){return this.xd?this.xd.i:this.position};
g.k.KC=function(a){Km().KC(a)};
g.k.wk=function(){return!1};
g.k.zw=function(){return new ao};
g.k.Mg=function(){return this.jx};
g.k.kH=function(a){return io(this,a,1E4)};
g.k.Ma=function(a,b,c,d,e,f,h){this.Nq||(this.Yv&&(a=this.mA(a,c,e,h),d=d&&this.Ze.Pc>=(this.Ro()?.3:.5),this.RD(f,a,d),this.lastUpdateTime=b,0<a.Pc&&-1===this.zK&&(this.zK=b),-1==this.EK&&this.To()&&(this.EK=b),-2==this.UB&&(this.UB=co(this.Em())?a.Pc:-1),this.Ze=a),this.YB(this))};
g.k.RD=function(a,b,c){this.Mg().update(a,b,this.Ze,c)};
g.k.jB=function(){return new Wl};
g.k.mA=function(a,b,c,d){c=this.jB();c.i=b;b=Cm().l;b=0===om(Sl)?-1:b.isVisible()?0:1;c.l=b;c.Pc=this.CA(a);c.Ro=this.Ro();c.Yg=d;return c};
g.k.CA=function(a){return 0===this.opacity&&1===im(this.featureSet,"opac")?0:a};
g.k.Ro=function(){return!1};
g.k.ly=function(){return this.HP||this.KP};
g.k.vx=function(){dn()};
g.k.fC=function(){dn()};
g.k.Uj=function(){return 0};
g.k.To=function(){return this.jx.To()};g.v(jo,Wl);mo.prototype.getValue=function(){return this.l};
mo.prototype.update=function(a,b){32<=a||(this.i&1<<a&&!b?this.l&=~(1<<a):this.i&1<<a||!b||(this.l|=1<<a),this.i|=1<<a)};g.v(no,ao);
no.prototype.update=function(a,b,c,d){if(!b.paused){ao.prototype.update.call(this,a,b,c,d);var e=ko(b)&&ko(c),f=.5<=(d?Math.min(b.Pc,c.Pc):c.Pc);rn(b.volume)&&(this.B=-1!=this.B?Math.min(this.B,b.volume):b.volume,this.G=Math.max(this.G,b.volume));f&&(this.va+=a,this.U+=e?a:0);this.i.update(b.Pc,c.Pc,b.i,a,d,e);this.u.update(!0,a);this.C.update(e,a);this.Y.update(c.fullscreen,a);this.Va.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Aa.update(a,b.isVisible());this.La.update(a,1<=b.Pc);this.Ga.update(a,
ko(b))}};g.v(po,Cfa);po.prototype.B=function(){return!0};
po.prototype.C=function(){return!1};
po.prototype.getId=function(){var a=this,b=Pb(Lo,function(c){return c==a.l});
return xp[b].toString()};
po.prototype.toString=function(){var a="";this.C()&&(a+="c");this.i&&(a+="s");0<this.u&&(a+=":"+this.u);return this.getId()+a};g.v(so,Gn);g.k=so.prototype;g.k.pA=function(){if(this.element){var a=this.element,b=this.l.i.Vf;try{try{var c=pn(a.getBoundingClientRect())}catch(n){c=new ml(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Kl(a,b),h=f.x,l=f.y;var m=new ml(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=GJa.clone()}this.i=m}};
g.k.gG=function(){this.B=this.l.u.i};
g.k.RH=function(a){var b=1==im(this.featureSet,"od");return qfa(a,this.B,this.element,b)};
g.k.hG=function(){this.timestamp=dn()};
g.k.gm=function(){this.hG();this.pA();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Sf(a.videoWidth,a.videoHeight);a=this.i;var c=nl(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.i=a}this.gG();
a=this.i;c=this.B;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new ml(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new ml(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new ml(0,0,0,0):a;a=this.l.u;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.RH(c)?c=new ml(0,0,0,0):(d=wn().B,b=new ml(0,d.height,d.width,0),d=eo(c,this.i),e=eo(c,wn().i),b=eo(c,b)));c=c.top>=c.bottom||c.left>=c.right?new ml(0,0,0,
0):ol(c,-this.i.left,-this.i.top);xn()||(e=d=0);this.J=new kn(a,this.i,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.l.getName()};var HJa=new ml(0,0,0,0);g.v(to,so);g.k=to.prototype;g.k.gz=function(){this.u();return!0};
g.k.Mm=function(){so.prototype.gm.call(this)};
g.k.hG=function(){};
g.k.pA=function(){};
g.k.gm=function(){this.u();so.prototype.gm.call(this)};
g.k.Hq=function(a){a=a.isActive();a!==this.G&&(a?this.u():(wn().i=new ml(0,0,0,0),this.i=new ml(0,0,0,0),this.B=new ml(0,0,0,0),this.timestamp=-1));this.G=a};var a2={},Hfa=(a2.firstquartile=0,a2.midpoint=1,a2.thirdquartile=2,a2.complete=3,a2);g.v(vo,fo);g.k=vo.prototype;g.k.wk=function(){return!0};
g.k.wl=function(){return 2==this.hg};
g.k.kH=function(a){return io(this,a,Math.max(1E4,this.u/3))};
g.k.Ma=function(a,b,c,d,e,f,h){var l=this,m=this.K(this)||{};g.Yb(m,e);this.u=m.duration||this.u;this.U=m.isVpaid||this.U;this.Ea=m.isYouTube||this.Ea;e=Dfa(this,b);1===zo(this)&&(f=e);fo.prototype.Ma.call(this,a,b,c,d,m,f,h);this.Yo&&this.Yo.i&&g.Cb(this.G,function(n){n.i||(n.i=ro(n,l))})};
g.k.RD=function(a,b,c){fo.prototype.RD.call(this,a,b,c);yo(this).update(a,b,this.Ze,c);this.Ua=ko(this.Ze)&&ko(b);-1==this.xa&&this.Pa&&(this.xa=this.Mg().u.i);this.Re.u=0;a=this.To();b.isVisible()&&lo(this.Re,"vs");a&&lo(this.Re,"vw");rn(b.volume)&&lo(this.Re,"am");ko(b)&&lo(this.Re,"a");this.Iq&&lo(this.Re,"f");-1!=b.l&&(lo(this.Re,"bm"),1==b.l&&lo(this.Re,"b"));ko(b)&&b.isVisible()&&lo(this.Re,"avs");this.Ua&&a&&lo(this.Re,"avw");0<b.Pc&&lo(this.Re,"pv");Ao(this,this.Mg().u.i,!0)&&lo(this.Re,"gdr");
2E3<=Yn(this.Mg().l,1)&&lo(this.Re,"pmx")};
g.k.zw=function(){return new no};
g.k.Mg=function(){return this.jx};
g.k.jB=function(){return new jo};
g.k.mA=function(a,b,c,d){a=fo.prototype.mA.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Iq;a.paused=this.wl();a.volume=c.volume;rn(a.volume)||(this.Va++,b=this.Ze,rn(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.CA=function(a){return wn(),this.Iq?1:fo.prototype.CA.call(this,a)};
g.k.Uj=function(){return 1};
g.k.getDuration=function(){return this.u};var IJa=g.Sa();So.prototype.reset=function(){this.i=[];this.l=[]};
var Vo=g.Am(So);g.v(ap,Hn);g.k=ap.prototype;g.k.getName=function(){return(this.l?this.l:this.i).getName()};
g.k.Dm=function(){return(this.l?this.l:this.i).Dm()};
g.k.ol=function(){return(this.l?this.l:this.i).ol()};
g.k.init=function(a){var b=!1;(0,g.Cb)(this.u,function(c){c.initialize()&&(b=!0)});
b&&(this.B=a,Cn(this.i,this));return b};
g.k.dispose=function(){(0,g.Cb)(this.u,function(a){a.dispose()});
Hn.prototype.dispose.call(this)};
g.k.rE=function(){return sn(this.u,function(a){return a.Kr()})};
g.k.Mr=function(){return sn(this.u,function(a){return a.Kr()})};
g.k.fv=function(a,b,c){return new so(a,this.i,b,c)};
g.k.Mm=function(a){this.l=a.l};var Ufa={threshold:[0,.3,.5,.75,1]};g.v(bp,so);g.k=bp.prototype;g.k.gz=function(){var a=this;this.U||(this.U=dn());if(an(298,function(){return Vfa(a)}))return!0;
Bn(this.l,"msf");return!1};
g.k.Lr=function(){if(this.u&&this.element)try{this.u.unobserve(this.element),this.G?(this.G.unobserve(this.element),this.G=null):this.C&&(this.C.disconnect(),this.C=null)}catch(a){}};
g.k.gm=function(){var a=cp(this);0<a.length&&dp(this,a);so.prototype.gm.call(this)};
g.k.pA=function(){};
g.k.RH=function(){return!1};
g.k.gG=function(){};
g.k.Dm=function(){var a={};return Object.assign(this.l.Dm(),(a.niot_obs=this.U,a.niot_cbk=this.K,a))};
g.k.getName=function(){return"nio"};g.v(ep,Hn);ep.prototype.getName=function(){return"nio"};
ep.prototype.Mr=function(){return!wn().l&&null!=this.i.i.Vf.IntersectionObserver};
ep.prototype.fv=function(a,b,c){return new bp(a,this.i,b,c)};g.v(gp,zn);gp.prototype.pH=function(){return wn().i};
gp.prototype.Kr=function(){var a=fp();this.J!==a&&(this.i!=this&&a>this.i.J&&(this.i=this,An(this)),this.J=a);return 2==a};ip.prototype.sE=function(){lp(this,Wo(),!1)};
ip.prototype.B=function(){var a=xn(),b=dn();a?(fn||(gn=b,g.Cb(Vo.i,function(c){var d=c.Mg();d.Ea=oo(d,b,1!=c.hg)})),fn=!0):(this.J=np(this,b),fn=!1,Qo=b,g.Cb(Vo.i,function(c){c.Yv&&(c.Mg().K=b)}));
lp(this,Wo(),!a)};
var jp=g.Am(ip);var op=null,Xp="",Wp=!1;var b2=up([void 0,1,2,3,4,8,16]),c2=up([void 0,4,8,16]),JJa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:tp("p0",c2),p1:tp("p1",c2),p2:tp("p2",c2),p3:tp("p3",c2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:sp("mtos1",[0,2,4],!1,c2),mtos2:sp("mtos2",[0,2,4],!1,c2),mtos3:sp("mtos3",[0,2,4],!1,c2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:tp("a0",c2),a1:tp("a1",c2),a2:tp("a2",c2),a3:tp("a3",c2),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",vpt:"vpt",
gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:tp("c0",c2),c1:tp("c1",c2),c2:tp("c2",c2),c3:tp("c3",c2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:tp("qmtos",b2),qnc:tp("qnc",b2),qmv:tp("qmv",b2),qnv:tp("qnv",b2),raf:"raf",
rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:tp("ss0",c2),ss1:tp("ss1",c2),ss2:tp("ss2",c2),ss3:tp("ss3",c2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},KJa={c:pp("c"),
at:"at",atos:sp("atos",[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:rp(),j:"dom",mtos:sp("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:pp("ss"),vsv:ab("w2"),t:"t"},LJa={atos:"atos",avt:sp("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:pp("ss"),t:"t"},MJa={a:"a",tos:rp(),at:"at",c:pp("c"),mtos:sp("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:ab("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},NJa={tos:rp(),at:"at",c:pp("c"),mtos:sp("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:ab("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:sp("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Oe(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var vp="goog.define.default".includes("outstream")?"out":"goog.define.default".includes("drx_rewarded_web")?"r":"goog.define.default".includes("gam_native_web_video")?"n":"goog.define.default".includes("admob_interstitial_video")?"int":"j";var dga={mZ:"visible",PV:"audible",U5:"time",V5:"timetype"},Ap={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(Bp,po);Bp.prototype.getId=function(){return this.G};
Bp.prototype.C=function(){return!0};
Bp.prototype.B=function(a){var b=a.Mg(),c=a.getDuration();return sn(this.J,function(d){if(void 0!=d.i)var e=fga(d,b);else b:{switch(d.C){case "mtos":e=d.l?b.C.u:b.u.i;break b;case "tos":e=d.l?b.C.i:b.u.i;break b}e=0}0==e?d=!1:(d=-1!=d.u?d.u:void 0!==c&&0<c?d.B*c:-1,d=-1!=d&&e>=d);return d})};g.v(Cp,po);Cp.prototype.B=function(a){var b=Wn(a.Mg().i,1);return Ao(a,b)};g.v(Dp,po);Dp.prototype.B=function(a){return a.Mg().To()};g.v(Gp,gga);Gp.prototype.i=function(a){var b=new Ep;b.i=Fp(a,JJa);b.u=Fp(a,LJa);return b};g.v(Hp,to);Hp.prototype.u=function(){var a=g.Ia("ima.admob.getViewability"),b=im(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
Hp.prototype.getName=function(){return"gsv"};g.v(Ip,Hn);Ip.prototype.getName=function(){return"gsv"};
Ip.prototype.Mr=function(){var a=wn();Km();return a.l&&!1};
Ip.prototype.fv=function(a,b,c){return new Hp(this.i,b,c)};g.v(Jp,to);Jp.prototype.u=function(){var a=this,b=g.Ia("ima.bridge.getNativeViewability"),c=im(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Rb(d)&&a.C++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=qn(d.opt_nativeViewBounds||{});var h=a.l.u;h.i=f?HJa.clone():qn(e);a.timestamp=d.opt_nativeTime||-1;wn().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Jp.prototype.getName=function(){return"nis"};g.v(Kp,Hn);Kp.prototype.getName=function(){return"nis"};
Kp.prototype.Mr=function(){var a=wn();Km();return a.l&&!1};
Kp.prototype.fv=function(a,b,c){return new Jp(this.i,b,c)};g.v(Lp,zn);g.k=Lp.prototype;g.k.Kr=function(){return null!=this.l.Yi};
g.k.hH=function(){var a={};this.xa&&(a.mraid=this.xa);this.X&&(a.mlc=1);a.mtop=this.l.rU;this.G&&(a.mse=this.G);this.Aa&&(a.msc=1);a.mcp=this.l.compatibility;return a};
g.k.qn=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.l.Yi[a].apply(this.l.Yi,c)}catch(e){cn(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.Ud)return!this.At();this.Ud=!0;if(2===this.l.compatibility)return this.G="ng",Bn(this,"w"),!1;if(1===this.l.compatibility)return this.G="mm",Bn(this,"w"),!1;wn().K=!0;this.Vf.document.readyState&&"complete"==this.Vf.document.readyState?Pp(this):nn(this.Vf,"load",function(){Cm().setTimeout(bn(292,function(){return Pp(a)}),100)},292);
return!0};
g.k.pE=function(){var a=wn(),b=Sp(this,"getMaxSize");a.i=new ml(0,b.width,b.height,0)};
g.k.qE=function(){wn().B=Sp(this,"getScreenSize")};
g.k.dispose=function(){Qp(this);zn.prototype.dispose.call(this)};g.k=Tp.prototype;g.k.Js=function(a){go(a,!1);Rfa(a)};
g.k.Dw=function(){};
g.k.vu=function(a,b,c,d){var e=this;this.l||(this.l=this.BG());b=c?b:-1;a=null==this.l?new vo(nm,a,b,7):new vo(nm,a,b,7,new po("measurable_impression",this.l),mga(this));a.Ef=d;Iea(a.featureSet);hm(a.featureSet,"queryid",a.Ef);a.KC("");wfa(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.vH.apply(e,g.ma(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.oP.apply(e,g.ma(h))});
(d=g.Am(Zo).i)&&ho(a,d);a.Jg.Um&&g.Am(hp);return a};
g.k.Hq=function(a){switch(a.ol()){case 0:if(a=g.Am(Zo).i)a=a.i,g.ob(a.B,this),a.K&&this.wk()&&En(a);Vp();break;case 2:kp()}};
g.k.Mm=function(){};
g.k.wk=function(){return!1};
g.k.oP=function(a,b){a.Nq=!0;switch(a.Uj()){case 1:aq(this,a,b);break;case 2:this.TC(a)}this.bD()};
g.k.wP=function(a){Ko(a,0);return No(a,"start",xn())};
g.k.Br=function(a,b,c){lp(jp,[a],!xn());return this.Hm(a,b,c)};
g.k.Hm=function(a,b,c){return No(a,c,xn())};
g.k.rP=function(a){return bq(a,"firstquartile",1)};
g.k.tP=function(a){a.Pa=!0;return bq(a,"midpoint",2)};
g.k.xP=function(a){return bq(a,"thirdquartile",3)};
g.k.pP=function(a){var b=bq(a,"complete",4);wo(a);return b};
g.k.bK=function(a,b,c){b=xn();if(a.wl()&&!b){var d=dn();a.Mg().K=d}lp(jp,[a],!b);a.wl()&&(a.hg=1);return No(a,c,b)};
g.k.vP=function(a,b){b=this.Br(a,b||{},"skip");wo(a);return b};
g.k.sP=function(a,b){go(a,!0);return this.Br(a,b||{},"fullscreen")};
g.k.qP=function(a,b){go(a,!1);return this.Br(a,b||{},"exitfullscreen")};
g.k.DC=function(a,b,c){b=a.Mg();var d=dn();b.Ea=oo(b,d,1!=a.hg);lp(jp,[a],!xn());1==a.hg&&(a.hg=2);return No(a,c,xn())};
g.k.uP=function(a){lp(jp,[a],!xn());return a.l()};
g.k.zB=function(a){lp(jp,[a],!xn());this.XJ(a);wo(a);return a.l()};
g.k.vH=function(){};
g.k.TC=function(){};
g.k.XJ=function(){};
g.k.tE=function(){};
g.k.bD=function(){};
g.k.BG=function(){};var fq=g.Sa(),hq=!1,iq=!1,jq=!1,sga=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return gq(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return gq(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return gq(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return gq(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return gq(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return iq},
function(){return jq},
function(){return gq(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
function(){return!1},
function(){return gq(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||eq(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return eq(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return gq(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return eq(a.CSS.supports)},
function(){return eq(Intl.Collator)},
function(a){return eq(a.document.createElement("dialog").show)},
function(){return gq(8)},
function(a){return eq(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
function(a){return eq(a.document.createElement("div").animate)},
function(a){return eq(a.document.documentElement.webkitRequestFullScreen)},
function(a){return eq(a.navigator.getBattery)},
function(a){return eq(a.navigator.permissions.query)},
function(){return!1},
function(){return gq(9)},
function(){return eq(webkitRequestAnimationFrame)},
function(a){return eq(a.BroadcastChannel.call)},
function(a){return eq(a.FontFace)},
function(a){return eq(a.Gamepad)},
function(){return gq(10)},
function(a){return eq(a.MutationEvent)},
function(a){return eq(a.MutationObserver)},
function(a){return eq(a.crypto.getRandomValues)},
function(a){return eq(a.document.body.createShadowRoot)},
function(a){return eq(a.document.body.webkitCreateShadowRoot)},
function(a){return eq(a.fetch)},
function(){return gq(11)},
function(a){return eq(a.navigator.serviceWorker.register)},
function(a){return eq(a.navigator.webkitGetGamepads)},
function(a){return eq(a.speechSynthesis.speak)},
function(a){return eq(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return gq(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return gq(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof InstallTrigger},
function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return gq(14)},
function(a){return"undefined"==typeof a.navigator.o8},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],tga=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],uga=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ta(lq,kq);lq.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.u=this.l=0};
lq.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.B,e=this.l,f=0;f<b;){if(0==e)for(;f<=c;)mq(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){mq(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){mq(this,d);e=0;break}}this.l=e;this.u+=b};
lq.prototype.digest=function(){var a=Array((56>this.l?this.blockSize:2*this.blockSize)-this.l);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.u;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.v(nq,Gp);nq.prototype.i=function(a){var b=Gp.prototype.i.call(this,a);var c=fq=g.Sa();var d=gq(5);c=(iq?!d:d)?c|2:c&-3;d=gq(2);c=(jq?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.l||(this.l=vga());b.C=this.l;b.G=Fp(a,KJa,c,"h",oq("kArwaWEsTs"));b.B=Fp(a,MJa,{},"h",oq("b96YPMzfnx"));b.l=Fp(a,NJa,{},"h",oq("yb8Wev6QDg"));return b};pq.prototype.l=function(){return g.Ia(this.i)};g.v(qq,Tp);g.k=qq.prototype;g.k.Dw=function(a,b){var c=this,d=g.Am(Zo);if(null!=d.i)switch(d.i.getName()){case "nis":var e=zga(this,a,b);break;case "gsv":e=yga(this,a,b);break;case "exc":e=Aga(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=pga(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Uj()&&(e.K==g.Ja&&(e.K=function(f){return c.tE(f)}),xga(this,e,b));
return e};
g.k.tE=function(a){a.l=0;a.va=0;if("h"==a.B||"n"==a.B){Km();a.La&&(Km(),"h"!=Zp(this)&&Zp(this));var b=g.Ia("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Ef)}catch(e){a.l|=4}else a.l|=2}else if("b"==a.B)if(b=g.Ia("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ef)}catch(e){a.l|=4}else a.l|=2;else if("ml"==a.B)if(b=g.Ia("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ef)}catch(e){a.l|=4}else a.l|=2;else a.l|=1;a.l||(void 0===c?a.l|=8:null===
c?a.l|=16:g.Rb(c)?a.l|=32:null!=c.errorCode&&(a.va=c.errorCode,a.l|=64));null==c&&(c={});b=c;a.J=0;for(var d in EJa)null==b[d]&&(a.J|=EJa[d]);dq(b,"currentTime");dq(b,"duration");rn(c.volume)&&rn(void 0)&&(c.volume*=NaN);return c};
g.k.BG=function(){Km();"h"!=Zp(this)&&Zp(this);var a=Bga(this);return null!=a?new pq(a,this.B):null};
g.k.TC=function(a){!a.i&&a.Nq&&$p(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
g.k.XJ=function(a){a.nK&&(a.To()?$p(this,a,"overlay_viewable_end_of_session_impression"):$p(this,a,"overlay_unviewable_impression"),a.nK=!1)};
g.k.vH=function(){};
g.k.bD=function(){};
g.k.vu=function(a,b,c,d){a=Tp.prototype.vu.call(this,a,b,c,d);this.C&&(b=this.G,null==a.C&&(a.C=new xfa),b.i[a.Ef]=a.C,a.C.C=IJa);return a};
g.k.Js=function(a){a&&1==a.Uj()&&this.C&&delete this.G.i[a.Ef];return Tp.prototype.Js.call(this,a)};
var rq=new Ep;rq.C="stopped";rq.i="stopped";rq.u="stopped";rq.G="stopped";rq.B="stopped";rq.l="stopped";Object.freeze(rq);var OJa=Zm(193,uq,cq);g.Ha("Goog_AdSense_Lidar_sendVastEvent",OJa,void 0);var PJa=bn(194,function(a,b){b=void 0===b?{}:b;a=sq(g.Am(qq),a,b);return tq(a)});
g.Ha("Goog_AdSense_Lidar_getViewability",PJa,void 0);var QJa=Zm(195,function(){return Em()},void 0);
g.Ha("Goog_AdSense_Lidar_getUrlSignalsArray",QJa,void 0);var RJa=bn(196,function(){return JSON.stringify(Em())});
g.Ha("Goog_AdSense_Lidar_getUrlSignalsList",RJa,void 0);var hha=(new Date).getTime();var wq="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),Ega=/\bocr\b/;var Fga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Zka={o0:"LIVING_ROOM_APP_MODE_UNSPECIFIED",l0:"LIVING_ROOM_APP_MODE_MAIN",k0:"LIVING_ROOM_APP_MODE_KIDS",m0:"LIVING_ROOM_APP_MODE_MUSIC",n0:"LIVING_ROOM_APP_MODE_UNPLUGGED",j0:"LIVING_ROOM_APP_MODE_GAMING"};zq.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.i=-1)};
zq.prototype.get=function(a){return!!this.data_[a]};g.Ta(g.Aq,g.E);g.k=g.Aq.prototype;g.k.start=function(){this.stop();this.B=!1;var a=Cq(this),b=Dq(this);a&&!b&&this.l.mozRequestAnimationFrame?(this.i=uf(this.l,"MozBeforePaint",this.u),this.l.mozRequestAnimationFrame(null),this.B=!0):this.i=a&&b?a.call(this.l,this.u):this.l.setTimeout(bb(this.u),20)};
g.k.stop=function(){if(this.isActive()){var a=Cq(this),b=Dq(this);a&&!b&&this.l.mozRequestAnimationFrame?Ff(this.i):a&&b?b.call(this.l,this.i):this.l.clearTimeout(this.i)}this.i=null};
g.k.isActive=function(){return null!=this.i};
g.k.wL=function(){this.B&&this.i&&Ff(this.i);this.i=null;this.G.call(this.C,g.Sa())};
g.k.ra=function(){this.stop();g.Aq.Rd.ra.call(this)};g.Ta(g.J,g.E);g.k=g.J.prototype;g.k.Nr=0;g.k.ra=function(){g.J.Rd.ra.call(this);this.stop();delete this.i;delete this.l};
g.k.start=function(a){this.stop();this.Nr=g.jh(this.u,void 0!==a?a:this.Of)};
g.k.stop=function(){this.isActive()&&g.A.clearTimeout(this.Nr);this.Nr=0};
g.k.isActive=function(){return 0!=this.Nr};
g.k.uE=function(){this.Nr=0;this.i&&this.i.call(this.l)};g.Ta(Hq,kq);Hq.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.i[4]=3285377520;this.u=this.l=0};
Hq.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.C,f=this.l;d<b;){if(0==f)for(;d<=c;)Iq(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){Iq(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){Iq(this,e);f=0;break}}this.l=f;this.u+=b}};
Hq.prototype.digest=function(){var a=[],b=8*this.u;56>this.l?this.update(this.B,56-this.l):this.update(this.B,this.blockSize-(this.l-56));for(var c=this.blockSize-1;56<=c;c--)this.C[c]=b&255,b/=256;Iq(this,this.C);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.i[c]>>d&255,++b;return a};g.Ta(g.Rq,g.If);g.k=g.Rq.prototype;g.k.tc=function(){return 1==this.Oa};
g.k.Bx=function(){this.Ph("begin")};
g.k.Yt=function(){this.Ph("end")};
g.k.onFinish=function(){this.Ph("finish")};
g.k.Ph=function(a){this.dispatchEvent(a)};var SJa=cb(function(){if(g.fe)return g.Wd("10.0");var a=g.ng("DIV"),b=g.ig?"-webkit":Bl?"-moz":g.fe?"-ms":g.Uk?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!mJa.test("div"))throw Error("");if("DIV"in oJa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!mJa.test(h))throw Error("");var e=b[h];if(null!=e){var f=h;if(e instanceof dc)e=ec(e);else if("style"==f.toLowerCase()){if(!g.Na(e))throw Error("");
e instanceof Mc||(e=Qc(e));e=Nc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in nJa)if(e instanceof kc)e=lc(e).toString();else if(e instanceof g.Ec)e=g.Fc(e);else if("string"===typeof e)e=g.Jc(e).ph();else throw Error("");}e.Xj&&(e=e.ph());f=f+'="'+yc(String(e))+'"';d+=" "+f}}var h="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===jJa.div?h+=">":(c=Eaa(d),h+=">"+g.$c(c).toString()+"</div>",c=c.Bq());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=ad(h,c);g.jd(a,
b);return""!=g.Cl(a.firstChild,"transition")});g.Ta(Sq,g.Rq);g.k=Sq.prototype;g.k.play=function(){if(this.tc())return!1;this.Bx();this.Ph("play");this.startTime=g.Sa();this.Oa=1;if(SJa())return g.zl(this.i,this.G),this.l=g.jh(this.JT,void 0,this),!0;this.iz(!1);return!1};
g.k.JT=function(){g.Ol(this.i);Hga(this.i,this.J);g.zl(this.i,this.u);this.l=g.jh((0,g.C)(this.iz,this,!1),1E3*this.C)};
g.k.stop=function(){this.tc()&&this.iz(!0)};
g.k.iz=function(a){g.zl(this.i,"transition","");g.A.clearTimeout(this.l);g.zl(this.i,this.u);this.endTime=g.Sa();this.Oa=0;if(a)this.Ph("stop");else this.onFinish();this.Yt()};
g.k.ra=function(){this.stop();Sq.Rd.ra.call(this)};
g.k.pause=function(){};var Iga={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};var Mga=Uq("getPropertyValue"),Nga=Uq("setProperty");var Lga={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Yq.prototype.clone=function(){return new g.Yq(this.i,this.C,this.u,this.G,this.B,this.J,this.l,this.K)};$q.prototype.clone=function(){return new $q(this.start,this.end)};var TJa=new WeakMap;(function(){if(kFa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Tc))?a[1]:"0"}return ZT?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Tc))?a[0].replace(/_/g,"."):"10"):g.tt?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Tc))?a[1]:""):qJa||rJa||sJa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Tc))?a[1].replace(/_/g,"."):""):""})();var Uga=function(){if(g.bj)return ar(/Firefox\/([0-9.]+)/);if(g.fe||g.tw||g.Uk)return Vd;if(g.aj)return Pd()?ar(/CriOS\/([0-9.]+)/):ar(/Chrome\/([0-9.]+)/);if(g.cj&&!Pd())return ar(/Version\/([0-9.]+)/);if(TF||cI){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Tc);if(a)return a[1]+"."+a[2]}else if(g.LF)return(a=ar(/Android\s+([0-9.]+)/))?a:ar(/Version\/([0-9.]+)/);return""}();g.Ta(g.dr,g.E);g.k=g.dr.prototype;g.k.subscribe=function(a,b,c){var d=this.l[a];d||(d=this.l[a]=[]);var e=this.C;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.C=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.l[a]){var d=this.i;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Tf(a)}return!1};
g.k.Tf=function(a){var b=this.i[a];if(b){var c=this.l[b];0!=this.B?(this.u.push(a),this.i[a+1]=g.Ja):(c&&g.ob(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
g.k.W=function(a,b){var c=this.l[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.G)for(e=0;e<c.length;e++){var h=c[e];Vga(this.i[h+1],this.i[h+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f&&!this.Ha();e++)h=c[e],this.i[h+1].apply(this.i[h+2],d)}finally{if(this.B--,0<this.u.length&&0==this.B)for(;c=this.u.pop();)this.Tf(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.l[a];b&&(b.forEach(this.Tf,this),delete this.l[a])}else this.i.length=0,this.l={}};
g.k.ra=function(){g.dr.Rd.ra.call(this);this.clear();this.u.length=0};g.er.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.Nh(b))};
g.er.prototype.get=function(a){try{var b=this.i.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.er.prototype.remove=function(a){this.i.remove(a)};g.Ta(fr,g.er);fr.prototype.set=function(a,b){fr.Rd.set.call(this,a,hr(b))};
fr.prototype.l=function(a){a=fr.Rd.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
fr.prototype.get=function(a){if(a=this.l(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ta(ir,fr);ir.prototype.set=function(a,b,c){if(b=hr(b)){if(c){if(c<g.Sa()){ir.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Sa()}ir.Rd.set.call(this,a,b)};
ir.prototype.l=function(a,b){var c=ir.Rd.l.call(this,a);if(c)if(!b&&g.jr(c))ir.prototype.remove.call(this,a);else return c};g.Ta(g.kr,ir);g.Ta(lr,Wga);lr.prototype[Symbol.iterator]=function(){return Zh(this.Eg(!0)).l()};
lr.prototype.clear=function(){var a=Array.from(this);a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Ta(mr,lr);g.k=mr.prototype;g.k.isAvailable=function(){if(!this.i)return!1;try{return this.i.setItem("__sak","1"),this.i.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.i.setItem(a,b)}catch(c){if(0==this.i.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.i.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeItem(a)};
g.k.Eg=function(a){var b=0,c=this.i,d=new g.Uh;d.i=function(){if(b>=c.length)throw g.$h;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
d.next=d.i.bind(d);return d};
g.k.clear=function(){this.i.clear()};
g.k.key=function(a){return this.i.key(a)};g.Ta(nr,mr);g.Ta(or,mr);g.Ta(qr,lr);var Xga={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},pr=null;g.k=qr.prototype;g.k.isAvailable=function(){return!!this.i};
g.k.set=function(a,b){this.i.setAttribute(rr(a),b);sr(this)};
g.k.get=function(a){a=this.i.getAttribute(rr(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeAttribute(rr(a));sr(this)};
g.k.Eg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.Uh;d.i=function(){if(b>=c.length)throw g.$h;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
d.next=d.i.bind(d);return d};
g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);sr(this)};g.Ta(tr,lr);tr.prototype.set=function(a,b){this.l.set(this.i+a,b)};
tr.prototype.get=function(a){return this.l.get(this.i+a)};
tr.prototype.remove=function(a){this.l.remove(this.i+a)};
tr.prototype.Eg=function(a){var b=this.l.Eg(!0),c=this,d=new g.Uh;d.i=function(){for(var e=b.next();e.substr(0,c.i.length)!=c.i;)e=b.next();return a?e.substr(c.i.length):c.l.get(e)};
d.next=d.i.bind(d);return d};vr.prototype.getKey=function(){return this.i};
vr.prototype.getValue=function(){return this.l};
vr.prototype.clone=function(){return new vr(this.i,this.l)};g.k=wr.prototype;g.k.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)lb(a);else{a[0]=a.pop();a=0;b=this.i;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Ng=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Rh=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new wr(this)};
g.k.isEmpty=function(){return 0===this.i.length};
g.k.clear=function(){lb(this.i)};g.Ta(yr,wr);zr.ze=void 0;zr.getInstance=function(){return zr.ze?zr.ze:zr.ze=new zr};
zr.prototype.i=0;/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var Cr="@@redux/INIT"+Br(),$ga="@@redux/REPLACE"+Br();var Er="function"===typeof Symbol&&Symbol.observable||"@@observable";g.v(Fr,ue);Fr.prototype.Tb=function(){return Be(this,11,0)};
g.v(Gr,ue);Gr.prototype.getKey=function(){return Ae(this,3)};
var aha=[2,13,14];var d2,e2,f2=g.A.window,Jr=(null===(d2=null===f2||void 0===f2?void 0:f2.yt)||void 0===d2?void 0:d2.config_)||(null===(e2=null===f2||void 0===f2?void 0:f2.ytcfg)||void 0===e2?void 0:e2.data_)||{};g.Ha("yt.config_",Jr,void 0);var Rr=[];var gha=/^[\w.]*$/,fha={q:!0,search_query:!0},eha=String(Wr);var gs=new function(){var a=window.document;this.i=window;this.l=a};
g.Ha("yt.ads_.signals_.getAdSignalsString",function(a){return Xr(is(a))},void 0);g.Sa();var js="XMLHttpRequest"in g.A?function(){return new XMLHttpRequest}:null;var ps={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"},
kha="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.ma(["client_dev_css_mss_url","client_dev_js_mss_url","client_dev_root_url","client_dev_regex_map","expflag"])),Qs=!1,opa=qs;g.v(Ss,Va);Vs.prototype.then=function(a,b,c){return 1===this.Oa&&a?(a=a.call(c,this.i),Lg(a)?a:Xs(a)):2===this.Oa&&b?(a=b.call(c,this.i),Lg(a)?a:Ws(a)):this};
Vs.prototype.getValue=function(){return this.i};
Vs.prototype.$goog_Thenable=!0;var Ys=!1;var qt=TF||cI;g.v(zt,Va);zt.prototype.name="BiscottiError";g.v(xt,Va);xt.prototype.name="BiscottiMissingError";var Bt={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},At=null;var UJa=0,Gt=g.ig?"webkit":Bl?"moz":g.fe?"ms":g.Uk?"o":"",VJa=g.Ia("ytDomDomGetNextId")||function(){return++UJa};
g.Ha("ytDomDomGetNextId",VJa,void 0);var sha={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};Jt.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Jt.prototype.QH=function(){return this.event?!1===this.event.returnValue:!1};
Jt.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Jt.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Lt=g.A.ytEventsEventsListeners||{};g.Ha("ytEventsEventsListeners",Lt,void 0);var Mt=g.A.ytEventsEventsCounter||{count:0};g.Ha("ytEventsEventsCounter",Mt,void 0);var WJa=cb(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Nt=cb(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var uF=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Ta(Zt,g.E);Zt.prototype.U=function(a){void 0===a.i&&Kt(a);var b=a.i;void 0===a.l&&Kt(a);this.i=new g.Qf(b,a.l)};
Zt.prototype.Em=function(){return this.i||new g.Qf};
Zt.prototype.Y=function(){if(this.i){var a=uF();if(0!=this.B){var b=this.G,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.B);this.l[this.u]=.5<Math.abs((d-this.C)/this.C)?1:0;for(c=b=0;4>c;c++)b+=this.l[c]||0;3<=b&&this.J();this.C=d}this.B=a;this.G=this.i;this.u=(this.u+1)%4}};
Zt.prototype.ra=function(){window.clearInterval(this.K);g.Pt(this.X)};g.v(du,$t);du.prototype.start=function(){var a=g.Ia("yt.scheduler.instance.start");a&&a()};
du.prototype.pause=function(){var a=g.Ia("yt.scheduler.instance.pause");a&&a()};eu();var lu={};var qu={},xha=0;var XJa,tu,vu;XJa=g.A.ytPubsubPubsubInstance||new g.dr;tu=g.A.ytPubsubPubsubSubscribedKeys||{};vu=g.A.ytPubsubPubsubTopicToKeys||{};g.uu=g.A.ytPubsubPubsubIsSynchronous||{};g.dr.prototype.subscribe=g.dr.prototype.subscribe;g.dr.prototype.unsubscribeByKey=g.dr.prototype.Tf;g.dr.prototype.publish=g.dr.prototype.W;g.dr.prototype.clear=g.dr.prototype.clear;g.Ha("ytPubsubPubsubInstance",XJa,void 0);g.Ha("ytPubsubPubsubTopicToKeys",vu,void 0);g.Ha("ytPubsubPubsubIsSynchronous",g.uu,void 0);
g.Ha("ytPubsubPubsubSubscribedKeys",tu,void 0);var g2;g2=window;g.P=g2.ytcsi&&g2.ytcsi.now?g2.ytcsi.now:g2.performance&&g2.performance.timing&&g2.performance.now&&g2.performance.timing.navigationStart?function(){return g2.performance.timing.navigationStart+g2.performance.now()}:function(){return(new Date).getTime()};var Aha=Or("initial_gel_batch_timeout",2E3),Qu=Math.pow(2,16)-1,Ru=null,Pu=0,Eu=void 0,Ju=0,Ku=0,Gu=0,Lu=!0,Du=g.A.ytLoggingTransportGELQueue_||new Map;g.Ha("ytLoggingTransportGELQueue_",Du,void 0);var Bu=g.A.ytLoggingTransportTokensToCttTargetIds_||{};g.Ha("ytLoggingTransportTokensToCttTargetIds_",Bu,void 0);var Su=g.A.ytLoggingGelSequenceIdObj_||{};g.Ha("ytLoggingGelSequenceIdObj_",Su,void 0);var Wu=g.Ia("ytglobal.prefsUserPrefsPrefs_")||{};g.Ha("ytglobal.prefsUserPrefsPrefs_",Wu,void 0);g.k=g.Xu.prototype;g.k.get=function(a,b){av(a);$u(a);a=void 0!==Wu[a]?Wu[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){av(a);$u(a);if(null==b)throw Error("ExpectedNotNull");Wu[a]=b.toString()};
g.k.remove=function(a){av(a);$u(a);delete Wu[a]};
g.k.save=function(){var a=!0;g.Nr("web_secure_pref_cookie_killswitch")&&(a=!1);g.$s(this.i,this.dump(),63072E3,this.l,a)};
g.k.clear=function(){g.Sb(Wu)};
g.k.dump=function(){var a=[],b;for(b in Wu)a.push(b+"="+encodeURIComponent(String(Wu[b])));return a.join("&")};var cv={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},ev={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};hv.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Nh(b))}catch(f){return}else e=escape(b);g.$s(a,e,c,this.l)};
hv.prototype.get=function(a,b){var c=void 0,d=!this.i;if(!d)try{c=this.i.get(a)}catch(e){d=!0}if(d&&(c=g.at(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
hv.prototype.remove=function(a){this.i&&this.i.remove(a);g.bt(a,"/",this.l)};jv.prototype.toString=function(){return this.topic};var YJa=g.Ia("ytPubsub2Pubsub2Instance")||new g.dr;g.dr.prototype.subscribe=g.dr.prototype.subscribe;g.dr.prototype.unsubscribeByKey=g.dr.prototype.Tf;g.dr.prototype.publish=g.dr.prototype.W;g.dr.prototype.clear=g.dr.prototype.clear;g.Ha("ytPubsub2Pubsub2Instance",YJa,void 0);var mv=g.Ia("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ha("ytPubsub2Pubsub2SubscribedKeys",mv,void 0);var ov=g.Ia("ytPubsub2Pubsub2TopicToKeys")||{};g.Ha("ytPubsub2Pubsub2TopicToKeys",ov,void 0);
var nv=g.Ia("ytPubsub2Pubsub2IsAsync")||{};g.Ha("ytPubsub2Pubsub2IsAsync",nv,void 0);g.Ha("ytPubsub2Pubsub2SkipSubKey",null,void 0);rv.prototype.pw=function(a,b){a={};var c=Fh([]);c&&(a.Authorization=c,c=b=null===b||void 0===b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.O("SESSION_INDEX",0)),c=isNaN(c)?0:c),a["X-Goog-AuthUser"]=c,"INNERTUBE_HOST_OVERRIDE"in Jr||(a["X-Origin"]=window.location.origin),g.Nr("pageid_as_header_web")&&void 0===b&&"DELEGATED_SESSION_ID"in Jr&&(a["X-Goog-PageId"]=g.O("DELEGATED_SESSION_ID")));return a};var Gw={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var vv=function(){var a;return function(){a||(a=new hv("ytidb"));return a}}();
xv.prototype.isSupported=function(){return this.i};var Cv=[],yv,Dv=!1;g.v(g.Gv,Error);var h2={},Lv=(h2.AUTH_INVALID="No user identifier specified.",h2.EXPLICIT_ABORT="Transaction was explicitly aborted.",h2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",h2.MISSING_OBJECT_STORE="Object store not created.",h2.DB_DELETED_BY_MISSING_OBJECT_STORE="Database is deleted because an expected object store was not created.",h2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",h2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",h2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",
h2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",h2),i2={},Gha=(i2.AUTH_INVALID="ERROR",i2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",i2.EXPLICIT_ABORT="IGNORED",i2.IDB_NOT_SUPPORTED="ERROR",i2.MISSING_OBJECT_STORE="ERROR",i2.DB_DELETED_BY_MISSING_OBJECT_STORE="WARNING",i2.QUOTA_EXCEEDED="WARNING",i2.QUOTA_MAYBE_EXCEEDED="WARNING",i2.UNKNOWN_ABORT="WARNING",i2),j2={},Hha=(j2.AUTH_INVALID=!1,j2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,j2.EXPLICIT_ABORT=!1,j2.IDB_NOT_SUPPORTED=
!1,j2.MISSING_OBJECT_STORE=!1,j2.DB_DELETED_BY_MISSING_OBJECT_STORE=!1,j2.QUOTA_EXCEEDED=!1,j2.QUOTA_MAYBE_EXCEEDED=!0,j2.UNKNOWN_ABORT=!0,j2);g.v(Mv,g.Gv);g.v(Nv,Mv);var Iha=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];Pv.all=function(a){return new Pv(new Ov(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Pp:0};f.Pp<a.length;f={Pp:f.Pp},++f.Pp)Pv.resolve(a[f.Pp]).then(function(h){return function(l){d[h.Pp]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
Pv.resolve=function(a){return new Pv(new Ov(function(b,c){a instanceof Pv?a.then(b,c):b(a)}))};
Pv.reject=function(a){return new Pv(new Ov(function(b,c){c(a)}))};
Pv.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:Lha,e=null!==b&&void 0!==b?b:Kha;return new Pv(new Ov(function(f,h){"PENDING"===c.state.status?(c.i.push(function(){Rv(c,c,d,f,h)}),c.onRejected.push(function(){Sv(c,c,e,f,h)})):"FULFILLED"===c.state.status?Rv(c,c,d,f,h):"REJECTED"===c.state.status&&Sv(c,c,e,f,h)}))};
Pv.prototype.catch=function(a){return this.then(void 0,a)};g.k=Wv.prototype;g.k.advance=function(a){this.cursor.advance(a);return Xv(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return Xv(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return Xv(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.mH=function(){return this.cursor.primaryKey};g.k=Yv.prototype;g.k.add=function(a,b,c){return aw(this,[a],{mode:"readwrite",jh:!0},function(d){return cw(d,a).add(b,c)})};
g.k.clear=function(a){return aw(this,[a],{mode:"readwrite",jh:!0},function(b){return cw(b,a).clear()})};
g.k.close=function(){var a;this.i.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return aw(this,[a],{mode:"readonly",jh:!0},function(c){return cw(c,a).count(b)})};
g.k.delete=function(a,b){return aw(this,[a],{mode:"readwrite",jh:!0},function(c){return cw(c,a).delete(b)})};
g.k.get=function(a,b){return aw(this,[a],{mode:"readonly",jh:!0},function(c){return cw(c,a).get(b)})};
g.k.getAll=function(a,b,c){return aw(this,[a],{mode:"readonly",jh:!0},function(d){return cw(d,a).getAll(b,c)})};
g.k.objectStoreNames=function(){return Array.from(this.i.objectStoreNames)};
g.k.getName=function(){return this.i.name};
g.k=Zv.prototype;g.k.add=function(a,b){return Uv(this.i.add(a,b))};
g.k.autoIncrement=function(){return this.i.autoIncrement};
g.k.clear=function(){return Uv(this.i.clear()).then(function(){})};
g.k.count=function(a){return Uv(this.i.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Pha(this,a):Uv(this.i.delete(a))};
g.k.get=function(a){return Uv(this.i.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?Uv(this.i.getAll(a,b)):Qha(this,a,b)};
g.k.index=function(a){return new jw(this.i.index(a))};
g.k.getName=function(){return this.i.name};
g.k.keyPath=function(){return this.i.keyPath};
dw.prototype.abort=function(){this.i.abort();this.l=!0;throw new Mv("EXPLICIT_ABORT");};
g.k=jw.prototype;g.k.count=function(a){return Uv(this.i.count(a))};
g.k.delete=function(a){return kw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return Uv(this.i.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?Uv(this.i.getAll(a,b)):Sha(this,a,b)};
g.k.getKey=function(a){return Uv(this.i.getKey(a))};
g.k.keyPath=function(){return this.i.keyPath};
g.k.unique=function(){return this.i.unique};
g.k=lw.prototype;g.k.advance=function(a){this.cursor.advance(a);return iw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return iw(this.request)};
g.k.delete=function(){return Uv(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.mH=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return Uv(this.cursor.update(a))};ow.prototype.l=function(a,b,c){c=void 0===c?{}:c;return mw(a,b,c)};
ow.prototype.delete=function(a){a=void 0===a?{}:a;return nw(this.name,a)};
ow.prototype.open=function(){var a=this;if(!this.i){var b,c=function(){a.i===b&&(a.i=void 0)},d={blocking:function(f){f.close()},
closed:c,BU:c,upgrade:this.options.upgrade},e=function(){return g.D(a,function h(){var l=this,m,n,p;return g.z(h,function(r){switch(r.i){case 1:return ta(r,2),g.w(r,l.l(l.name,l.options.version,d),4);case 4:m=r.l;a:{var t=l.options;for(var u=g.q(Object.keys(t.Vt)),x=u.next();!x.done;x=u.next()){x=x.value;var y=t.Vt[x];if("boolean"===typeof y){if(!m.i.objectStoreNames.contains(x)){t=x;break a}}else{var B=void 0===y.ZT?Number.MAX_VALUE:y.ZT;if(m.i.version>=y.aO&&!(m.i.version>=B)&&!m.i.objectStoreNames.contains(x)){t=
x;break a}}}t=void 0}n=t;if(void 0===n){r.ub(5);break}if(l.u){r.ub(6);break}l.u=!0;return g.w(r,l.delete(),7);case 7:return Ev(new Mv("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:l.name,dQ:n})),r.return(e());case 6:throw new Nv(n);case 5:return r.return(m);case 2:p=va(r);if(p instanceof DOMException?"VersionError"===p.name:"DOMError"in self&&p instanceof DOMError?"VersionError"===p.name:p instanceof Object&&"message"in p&&"An attempt was made to open a database using a lower version than the existing version."===
p.message)return r.return(l.l(l.name,void 0,Object.assign(Object.assign({},d),{upgrade:void 0})));c();throw p;}})})};
this.i=b=e()}return this.i};var pw=new ow("YtIdbMeta",{Vt:{databases:!0},upgrade:function(a,b){b(1)&&$v(a,"databases",{keyPath:"actualName"})}});var uw;g.v(yw,ow);yw.prototype.l=function(a,b,c){c=void 0===c?{}:c;return(this.options.iy?Zha:Yha)(a,b,Object.assign({},c))};
yw.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.iy?aia:$ha)(this.name,a)};var Aw;var Hw;var iia=Or("network_polling_interval",3E4);g.v(Jw,g.If);g.k=Jw.prototype;g.k.Vi=function(){return this.i};
g.k.eQ=function(a){this.l=!0;if(void 0===a?0:a)this.K||Mw(this)};
g.k.qB=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.zO=function(){this.U=!0};
g.k.Ra=function(a,b){return g.If.prototype.Ra.call(this,a,b)};
g.k.wp=function(a){var b=this;return this.u?this.u:this.u=new Promise(function(c){return g.D(b,function e(){var f,h,l,m=this;return g.z(e,function(n){switch(n.i){case 1:return f=window.AbortController?new window.AbortController:void 0,h=null===f||void 0===f?void 0:f.signal,l=!1,ta(n,2,3),f&&(m.G=g.cu(function(){f.abort()},a||2E4)),g.w(n,fetch("/generate_204",{method:"HEAD",
signal:h}),5);case 5:l=!0;case 3:wa(n);m.u=void 0;m.G&&g.gu(m.G);l!==m.i&&(m.i=l,m.i&&m.l?m.dispatchEvent("ytnetworkstatus-online"):m.l&&m.dispatchEvent("ytnetworkstatus-offline"));c(l);xa(n,0);break;case 2:va(n),l=!1,n.ub(3)}})})})};
Jw.prototype.sendNetworkCheckRequest=Jw.prototype.wp;Jw.prototype.listen=Jw.prototype.Ra;Jw.prototype.enableErrorFlushing=Jw.prototype.zO;Jw.prototype.getWindowStatus=Jw.prototype.qB;Jw.prototype.monitorNetworkStatusChange=Jw.prototype.eQ;Jw.prototype.isNetworkAvailable=Jw.prototype.Vi;Jw.getInstance=Kw;g.v(Ow,g.If);Ow.prototype.Vi=function(){var a=g.Ia("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0};
Ow.prototype.wp=function(a){return g.D(this,function c(){var d=this,e;return g.z(c,function(f){return(e=g.Ia("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.i))?f.return(e(a)):f.return(!0)})})};var Yw=0,ax=0,bx,$w=g.A.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,isIdbSupported:!1,potentialEsfErrorCounter:ax};g.Nr("export_networkless_options")&&g.Ha("ytNetworklessLoggingInitializationOptions",$w,void 0);g.cx.prototype.isReady=function(){!this.config_&&gv()&&(this.config_=g.Nu());return!!this.config_};var lia=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),nia=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var gx={};g.v(mx,g.E);mx.prototype.N=function(a,b,c,d,e){c=Tr((0,g.C)(c,d||this.Ga));c={target:a,name:b,callback:c};var f;e&&WJa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.G.push(c);return c};
mx.prototype.fc=function(a){for(var b=0;b<this.G.length;b++)if(this.G[b]==a){this.G.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
mx.prototype.ra=function(){g.ox(this);g.E.prototype.ra.call(this)};g.Ta(g.Q,g.E);g.Q.prototype.subscribe=function(a,b,c){return this.Ha()?0:this.bd.subscribe(a,b,c)};
g.Q.prototype.unsubscribe=function(a,b,c){return this.Ha()?!1:this.bd.unsubscribe(a,b,c)};
g.Q.prototype.Tf=function(a){return this.Ha()?!1:this.bd.Tf(a)};
g.Q.prototype.W=function(a,b){return this.Ha()?!1:this.bd.W.apply(this.bd,arguments)};g.v(g.sx,g.Q);g.k=g.sx.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.W("dragend",0,0,null));this.l&&(this.l=!1,this.W("hoverend",0,0,null),g.ox(this.i),rx(this))};
g.k.wI=function(a){g.ox(this.i);tx(this,ux("move"),this.uI);tx(this,ux("out"),this.vI);tx(this,"touchstart",this.GD);this.u&&tx(this,ux("down"),this.dC);var b=g.Qt(a);a=Tt(a);this.l=!0;this.W("hoverstart",a.x,a.y,b);this.W("hovermove",a.x,a.y,b)};
g.k.uI=function(a){var b=g.Qt(a);a=Tt(a);if(this.C){var c=this.C;this.C=null;if(St(c)==b&&Rf(Tt(c),a))return}this.W("hovermove",a.x,a.y,b)};
g.k.vI=function(a){var b=Tt(a),c=St(a);try{if(c&&g.tg(this.G,c)){this.C=a;this.W("hovermove",b.x,b.y,c);return}}catch(d){}g.ox(this.i);rx(this);this.l=!1;this.W("hoverend",b.x,b.y,c)};
g.k.gQ=function(a){this.wI(a);this.dC(a)};
g.k.dC=function(a){if("number"!==typeof a.button||0==a.button){g.ox(this.i);this.i.N(document,ux("move"),this.fQ);this.i.N(document,ux("up"),this.kQ);var b=g.Qt(a);if(g.ig)tx(this,"dragstart",this.wO);else if(g.Ut(a),(g.IG||Bl)&&b)a:{for(var c=b;c;){if(xg(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=Tt(a);this.W("dragstart",a.x,a.y,b);this.W("dragmove",a.x,a.y,b)}};
g.k.wO=function(a){g.Ut(a)};
g.k.fQ=function(a){var b=g.Qt(a);b==document&&(b=null);a=Tt(a);this.W("hovermove",a.x,a.y,b);this.W("dragmove",a.x,a.y,b)};
g.k.kQ=function(a){g.ox(this.i);this.B=!1;var b=Rt(a),c=g.Qt(a);a=Tt(a);b&&g.tg(this.G,b)?(tx(this,ux("move"),this.uI),tx(this,ux("out"),this.vI),tx(this,ux("down"),this.dC),tx(this,"touchstart",this.GD),this.W("dragend",a.x,a.y,c)):(rx(this),this.l=!1,this.W("dragend",a.x,a.y,c),this.W("hoverend",a.x,a.y,c))};
g.k.GD=function(a){var b=a.changedTouches[0];b&&(g.ox(this.i),tx(this,"touchmove",this.HU),tx(this,"touchend",this.GK),tx(this,"touchcancel",this.GK),this.J=b.identifier,a=g.Qt(a),this.l||(this.l=!0,this.W("hoverstart",b.pageX,b.pageY,a)),this.W("hovermove",b.pageX,b.pageY,a),this.u&&(this.B=!0,this.W("dragstart",b.pageX,b.pageY,a),this.W("dragmove",b.pageX,b.pageY,a)))};
g.k.HU=function(a){var b=vx(this,a);b&&(this.u&&g.Ut(a),a=g.Qt(a),this.W("hovermove",b.pageX,b.pageY,a),this.u&&this.W("dragmove",b.pageX,b.pageY,a))};
g.k.GK=function(a){var b=vx(this,a);if(b){g.ox(this.i);rx(this);this.l=!1;var c=g.Qt(a);this.u&&(this.K||g.Ut(a),this.B=!1,this.W("dragend",b.pageX,b.pageY,c));this.W("hoverend",b.pageX,b.pageY,c)}};
g.k.ra=function(){this.u&&(g.ig&&this.G.removeAttribute("draggable"),this.G.style.touchAction="");g.ox(this.i);g.Q.prototype.ra.call(this)};wx.prototype.clone=function(){var a=new wx,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==La(c)?g.Vb(c):c}return a};var vsa=["embedded_player"],ZJa=["share/get_web_player_share_panel"],$Ja=["feedback"],aKa=["notification/modify_channel_preference"],Kva=["offline"],Gva=["offline/get_playback_data_entity"],QDa=["player"],bKa=["browse/edit_playlist"],cKa=["subscription/subscribe"],dKa=["subscription/unsubscribe"],SDa=["next","unplugged/watch_next"];var xx=Date.now().toString();var Kx,k2=g.A.ytLoggingDocDocumentNonce_;k2||(k2=zx(),g.Ha("ytLoggingDocDocumentNonce_",k2,void 0));Kx=k2;var epa={nL:0,rW:1,IW:2,h2:3,HY:4,Z6:5,e3:6,b5:7,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE"};var qia=1;Bx.prototype.getAsJson=function(){var a={};void 0!==this.i.trackingParams?a.trackingParams=this.i.trackingParams:(a.veType=this.i.veType,void 0!==this.i.veCounter&&(a.veCounter=this.i.veCounter),void 0!==this.i.elementIndex&&(a.elementIndex=this.i.elementIndex));void 0!==this.i.dataElement&&(a.dataElement=this.i.dataElement.getAsJson());void 0!==this.i.youtubeData&&(a.youtubeData=this.i.youtubeData);return a};
Bx.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
Bx.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Ha("yt_logging_screen.getRootVeType",Fx,void 0);g.Ha("yt_logging_screen.getCurrentCsn",g.Ix,void 0);g.Ha("yt_logging_screen.getCttAuthInfo",Jx,void 0);g.Ha("yt_logging_screen.setCurrentScreen",Lx,void 0);var yia=[{aC:function(a){return"Cannot read property '"+a.key+"'"},
Kx:{Error:[{wg:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{wg:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{wg:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{wg:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{wg:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{wg:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{wg:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{aC:function(a){return"Cannot call '"+a.key+"'"},
Kx:{TypeError:[{wg:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{wg:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{wg:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{wg:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{wg:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{wg:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{aC:function(a){return a.key+" is not defined"},
Kx:{ReferenceError:[{wg:/(.*) is not defined/,groups:["key"]},{wg:/Can't find variable: (.*)/,groups:["key"]}]}}];var via={Bl:[],im:[{callback:tia,weight:500}]};var Mx;var Xx=new g.dr;var Wx=new Set,Vx=0,zia=0,Yx=0,xia=[],Aia=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.v(Zx,iv);var gy=new jv("screen-created",Zx),ey=[],dpa=Cia,fy=0;var eKa={qW:3611,dV:27686,fV:85013,gV:23462,iV:42016,jV:62407,kV:26926,hV:43781,mV:51236,nV:79148,oV:50160,pV:77504,KV:87907,LV:18630,NV:54445,OV:80935,TV:105675,UV:37521,VV:47786,XV:98349,YV:123695,cW:6827,dW:29434,oW:7282,pW:124448,yW:32276,xW:76278,zW:93911,DW:106531,EW:27259,FW:27262,GW:27263,JW:21759,KW:27107,LW:62936,MW:49568,OW:38408,PW:80637,QW:68727,RW:68728,SW:80353,TW:80356,UW:74610,VW:45707,WW:83962,XW:83970,YW:46713,ZW:89711,aX:74612,bX:93265,cX:74611,dX:128979,eX:128978,gX:113533,hX:93252,
iX:99357,kX:94521,lX:114252,mX:113532,nX:94522,jX:94583,oX:88E3,pX:93253,qX:93254,rX:94387,sX:94388,tX:93255,uX:97424,fX:72502,vX:110111,wX:76019,yX:117092,zX:117093,xX:89431,AX:110466,BX:77240,CX:60508,DX:105350,EX:73393,FX:113534,GX:92098,HX:84517,IX:83759,JX:80357,KX:86113,LX:72598,MX:72733,OX:107349,PX:124275,QX:118203,RX:117431,SX:117429,TX:117430,UX:117432,VX:120080,WX:117259,XX:121692,YX:97615,ZX:31402,aY:84774,bY:95117,cY:98930,dY:98931,eY:98932,fY:43347,gY:129889,hY:45474,iY:100352,jY:84758,
kY:98443,lY:117985,mY:74613,nY:74614,oY:64502,pY:74615,qY:74616,rY:122224,sY:74617,tY:77820,uY:74618,vY:93278,wY:93274,xY:93275,yY:93276,zY:22110,AY:29433,EY:120541,IY:82047,JY:113550,KY:75836,LY:75837,OY:42352,SY:84512,TY:76065,VY:75989,ZY:16623,aZ:32594,bZ:27240,dZ:32633,lZ:74858,oZ:3945,nZ:16989,pZ:45520,qZ:25488,rZ:25492,sZ:25494,uZ:55760,vZ:14057,wZ:18451,xZ:57204,yZ:57203,zZ:17897,AZ:57205,BZ:18198,CZ:17898,DZ:17909,EZ:43980,FZ:46220,NZ:11721,PZ:49954,UZ:96369,VZ:3854,c_:56251,d_:25624,j_:16906,
k_:99999,m_:68172,n_:27068,q_:47973,r_:72773,s_:26970,t_:26971,u_:96805,v_:17752,w_:73233,x_:109512,y_:22256,z_:14115,A_:22696,B_:89278,C_:89277,D_:109513,E_:43278,F_:43459,G_:43464,H_:89279,I_:43717,J_:55764,K_:22255,L_:89281,M_:40963,N_:43277,O_:43442,Q_:91824,S_:120137,U_:96367,V_:36850,W_:72694,X_:37414,Y_:36851,b0:124863,Z_:121343,d0:73491,e0:54473,f0:43375,g0:46674,v0:32473,z0:72901,A0:72906,B0:50947,C0:50612,D0:50613,E0:50942,F0:84938,G0:84943,H0:84939,I0:84941,J0:84944,K0:84940,L0:84942,M0:35585,
N0:51926,O0:79983,P0:63238,Q0:18921,R0:63241,S0:57893,T0:41182,U0:33424,V0:22207,W0:42993,X0:36229,Y0:22206,Z0:22205,b1:18993,d1:19001,e1:18990,f1:18991,g1:18997,h1:18725,j1:19003,k1:36874,l1:44763,m1:33427,n1:67793,o1:22182,q1:37091,r1:34650,t1:50617,u1:47261,v1:22287,w1:25144,x1:97917,z1:62397,A1:125598,B1:36961,C1:108035,D1:27426,E1:27857,F1:27846,G1:27854,H1:69692,I1:61411,J1:39299,K1:38696,L1:62520,M1:36382,N1:108701,O1:50663,P1:36387,Q1:14908,R1:37533,S1:105443,T1:61635,U1:62274,V1:65702,W1:65703,
X1:65701,Y1:76256,b2:37671,d2:49953,l2:36216,m2:28237,n2:39553,o2:29222,q2:26107,r2:38050,s2:26108,u2:120745,t2:26109,v2:26110,w2:66881,x2:28236,y2:14586,C2:57929,E2:74723,F2:44098,G2:44099,H2:23528,I2:61699,J2:59149,K2:101951,L2:97346,M2:118051,N2:95102,O2:64882,P2:119505,Q2:63595,R2:63349,S2:95101,T2:75240,U2:27039,V2:68823,W2:21537,X2:83464,Y2:75707,Z2:83113,b3:101952,d3:101953,f3:79610,j3:125755,k3:24402,l3:24400,m3:32925,n3:57173,q3:122502,r3:64423,s3:64424,t3:33986,u3:100828,v3:129089,w3:21409,
J3:11070,K3:11074,L3:17880,M3:14001,O3:30709,P3:30707,Q3:30711,R3:30710,S3:30708,N3:26984,T3:63648,U3:63649,X3:51879,d4:111059,f4:5754,g4:20445,k4:110386,m4:113746,n4:66557,t4:17310,u4:28631,w4:21589,x4:68012,y4:60480,z4:31571,D4:76980,H4:41577,I4:45469,M4:38669,N4:13768,O4:13777,R4:62985,S4:4724,T4:59369,U4:43927,V4:43928,Y4:12924,a5:100355,d5:56219,e5:27669,f5:10337,c5:47896,g5:122629,h5:121258,i5:107598,j5:127991,k5:96639,l5:107536,m5:96661,n5:96658,o5:116646,p5:121122,q5:96660,r5:127738,s5:127083,
t5:104443,u5:96659,v5:106442,z5:63667,A5:63668,B5:63669,G5:78314,J5:55761,K5:127098,O5:96368,P5:67374,Q5:48992,T5:49956,X5:31961,Y5:26388,d6:23811,e6:5E4,f6:126250,h6:96370,i6:47355,j6:47356,k6:37935,l6:45521,m6:21760,n6:83769,o6:49977,p6:49974,q6:93497,r6:93498,s6:34325,u6:115803,v6:123707,w6:100081,x6:35309,y6:68314,z6:25602,A6:100339,C6:59018,D6:18248,E6:50625,F6:9729,G6:37168,H6:37169,I6:21667,J6:16749,K6:18635,L6:39305,M6:18046,O6:53969,P6:8213,R6:93926,U6:102852,V6:110099,W6:22678,X6:69076,
a7:100856,c7:17736,d7:3832,f7:55759,g7:64031,h7:93044,j7:93045,l7:34388,m7:17657,n7:17655,o7:39579,p7:39578,q7:77448,r7:8196,s7:11357,t7:69877,u7:8197,w7:82039};Uy.prototype.clear=function(){this.l.clear();this.i.clear();this.u.clear()};var Wy;g.Vy=cb(function(){var a=new nr;return a.isAvailable()?new g.kr(a):null});
Wy=cb(function(){var a=new or;return a.isAvailable()?new g.kr(a):null});var Eia=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Fia=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,dz={};g.v(jz,g.E);g.v(qz,g.E);qz.prototype.AB=function(){var a=this.B().mB("SLOT_TYPE_PLAYER_BYTES",1),b=mz(this.i.get(),1).clientPlaybackNonce,c=!1;a=g.q(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.ob&&d.Wb instanceof pz?d.Wb.zn:void 0;e&&e===b&&(c&&R("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
qz.prototype.wh=function(a,b,c,d,e,f){var h=this,l=mz(this.i.get(),1);pL(this.Qa.get(),d)&&l.Xn?this.Fa.get().Qj():(kz(this.u.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return nz(h.l.get(),d,e,a,b,f,l)}),pL(this.Qa.get(),d)&&ZIa(this.gA))};
qz.prototype.ek=function(){};var l2={},Ez=(l2.AD_MARKER="ytp-ad-progress",l2.CHAPTER_MARKER="ytp-chapter-marker",l2.TIME_MARKER="ytp-time-marker",l2);var $Ea=/^https?:\/\/([^.]*\.moatads\.com\/|e[0-9]+\.yt\.srs\.doubleverify\.com|pagead2\.googlesyndication\.com\/pagead\/gen_204\?id=yt3p&sr=1&|pm\.adsafeprotected\.com\/youtube|pm\.test-adsafeprotected\.com\/youtube|youtube[0-9]+\.moatpixel\.com\/)/,wz=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https:\/\/([a-z]+\.)?[0-9a-f]{1,63}\.sslproxy\.corp\.google\.com\/|^https:\/\/([a-z]+\.)?[a-z0-9\-]{1,63}\.demos\.corp\.google\.com\/|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com\/|^https?:\/\/((?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+(corp\.)?youtube(-nocookie|kids)?\.com\/|([A-Za-z0-9-]{1,63}\.)*(youtube\.googleapis\.com)[.]?(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.c\.googlers\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|(tv|tv-green-qa|tv-release-qa)\.youtube\.com\/|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/)/,
aFa=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,Uia=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|proxy\.googlers\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|youtube\-nocookie\.com|youtubekids\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/,
Via=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,Sia=/^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|proxy\.googlers\.com|borg\.google\.com|prod\.google\.com|youtube\.com|youtubekids\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$))/,Nia=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)|(sandbox\.google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|proxy\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|currents\.google\.com|video\.google\.com|youtube\.com|ytimg\.com|ytimg\.sandbox\.google\.com|chat\.google\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/,
Oia=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,bFa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,Ria=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|www\.youtube\.com\/pagead\/conversion)/,Lia=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)|(sandbox\.google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|(ccp-lh\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(play-(ti-)?lh\.googleusercontent)|(gz0\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|proxy\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|prod\.google\.com|lh3\.photos\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com|shopping\.google\.com|cdn\.shoploop\.tv)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|([A-Za-z0-9-]{1,63}\.)*c\.lh3(-d[a-gz]|-testonly)?\.(googleusercontent|photos\.google)\.com\/.*$)/,
Mia=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?\//,Pia=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|proxy\.googlers\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubekids\.com|ytimg\.com|ytimg\.sandbox\.google\.com)[.]?(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/,
Qka=/^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com\/|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com(\/(?!url\b)|$)|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com(\/|$)|^https:\/\/canvastester-3fd0b\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-d\.appspot\.com(\/|$)|^https:\/\/narrative-news-cast-receiver-f\.appspot\.com(\/|$)|^https:\/\/one\.google\.com(\/|$)|^https:\/\/www\.gstatic\.com\/aog_howto|^https:\/\/www\.gstatic\.com\/narrative_cast_receiver\/news|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|proxy\.googleprod\.com|c\.googlers\.com|proxy\.googlers\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|photos\.google\.com|get\.google\.com|class\.photos\.google\.com|currents\.google\.com|books\.googleusercontent\.com|play\-books\-autopush\-sandbox\.googleusercontent\.com|play\-books\-canary\-sandbox\.googleusercontent\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|play\-books\-staging\-sandbox\.googleusercontent\.com|blogger\.com|mail\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|yt\-web\-embedded\-player\.appspot\.com|youtubekids\.com|vevo\.com|chat\.google\.com|meet\.google\.com|stadia\.google\.com|shoploop\.area120\.google\.com|shopping\.google\.com)[.]?(:[0-9]+)?(\/|$)|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(search|webhp)\?|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/?$|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/,
Rka=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(plus\.google\.com)[.]?(:[0-9]+)?(\/|$)/,fKa=/^(https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/currents\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/yt\-web\-embedded\-player\.appspot\.com|http\:\/\/yt\-web\-embedded\-player\.appspot\.com|https\:\/\/chat\.google\.com|https\:\/\/stadia\.google\.com|https\:\/\/one\.google\.com|https\:\/\/shoploop\.area120\.google\.com|https\:\/\/shopping\.google\.com)$|^http:\/\/[0-9]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?$|^https:\/\/((staging|stream|today)\.)?meet\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*(crowdsource|datacompute)\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)*(youtube|youtubekids)\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+demos\.corp\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sandbox\.google\.com$|^https:\/\/([A-Za-z0-9-]{1,63}\.)+sslproxy\.corp\.google\.com$|^https:\/\/(books|play-books-(autopush|canary|internal|staging)-sandbox)\.googleusercontent\.com$|^https:\/\/(draft|www|(www\.)?dev\.sandbox|(www\.)?autopush\.sandbox|(www\.)?restore\.sandbox)\.blogger\.com$|^https:\/\/[0-9a-f]{1,63}\.proxy\.googleprod\.com$|^https?:\/\/(((docs|m|sing|ss|sss|www)\.)?drive\.google\.com$|([A-Za-z0-9-]{1,63}\.)*c\.googlers\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*corp\.google\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*googleplex\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\.)*proxy\.googlers\.com(:[0-9]+)?$|(www\.|encrypted\.)google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/?$|[A-Za-z0-9-]+\.prod\.google\.com(:[0-9]+)?$|docs\.google\.com$)/,
gKa=/^(https\:\/\/plus\.google\.com)$/;var uz=!1;g.Fz.prototype.getId=function(){return this.id};
g.Fz.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Gz(this.start)+", "+Gz(this.end)+"]"};
g.Fz.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var Wia=1;g.Fz.prototype.getId=g.Fz.prototype.getId;g.v(Kz,g.Fz);Kz.prototype.deactivate=function(){this.l=!0};
Kz.prototype.Ys=function(){return this.end-this.start};var m2;var hKa=g.Tc,iKa=hKa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!iKa||2>iKa.length)m2=void 0;else{var n2=hKa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);m2=n2&&6==n2.length?Number(n2[5].replace("_",".")):0}var dI=m2,qO=0<=dI;qO&&0<=g.Tc.search("Safari")&&g.Tc.search("Version");g.v(Rz,iv);g.v(Sz,iv);var Zia=new jv("aft-recorded",Rz),MA=new jv("timing-sent",Sz);var o2=window,Vz=o2.performance||o2.mozPerformance||o2.msPerformance||o2.webkitPerformance||new Yia;var fA=!1,p2={'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/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"},cja=(0,g.C)(Vz.clearResourceTimings||Vz.webkitClearResourceTimings||Vz.mozClearResourceTimings||Vz.msClearResourceTimings||Vz.oClearResourceTimings||g.Ja,Vz);var nA=g.A.ytLoggingLatencyUsageStats_||{};g.Ha("ytLoggingLatencyUsageStats_",nA,void 0);lA.prototype.tick=function(a,b,c){oA(this,"tick_"+a+"_"+b)||g.Bv("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
lA.prototype.info=function(a,b){var c=Object.keys(a).join("");oA(this,"info_"+c+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Bv("latencyActionInfo",a))};
lA.prototype.span=function(a,b){var c=Object.keys(a).join("");oA(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Bv("latencyActionSpan",a))};var q2={},wA=(q2.auto_search="LATENCY_ACTION_AUTO_SEARCH",q2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",q2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",q2.app_startup="LATENCY_ACTION_APP_STARTUP",q2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",q2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",q2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",q2.browse="LATENCY_ACTION_BROWSE",q2.channels="LATENCY_ACTION_CHANNELS",q2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",
q2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",q2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",q2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",q2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",q2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",q2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",q2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",q2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",
q2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",q2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",q2.chips="LATENCY_ACTION_CHIPS",q2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",q2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",q2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",q2.embed="LATENCY_ACTION_EMBED",q2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",q2.entity_key_deserialization_perf=
"LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",q2.home="LATENCY_ACTION_HOME",q2.library="LATENCY_ACTION_LIBRARY",q2.live="LATENCY_ACTION_LIVE",q2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",q2.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",q2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",q2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",q2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",q2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
q2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",q2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",q2.prebuffer="LATENCY_ACTION_PREBUFFER",q2.prefetch="LATENCY_ACTION_PREFETCH",q2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",q2.profile_switcher="LATENCY_ACTION_LOGIN",q2.reel_watch="LATENCY_ACTION_REEL_WATCH",q2.results="LATENCY_ACTION_RESULTS",q2.search_ui="LATENCY_ACTION_SEARCH_UI",q2.search_suggest="LATENCY_ACTION_SUGGEST",q2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",
q2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",q2.seek="LATENCY_ACTION_PLAYER_SEEK",q2.settings="LATENCY_ACTION_SETTINGS",q2.tenx="LATENCY_ACTION_TENX",q2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",q2.watch="LATENCY_ACTION_WATCH",q2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",q2["watch,watch7"]="LATENCY_ACTION_WATCH",q2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",q2["watch,watch7ad"]="LATENCY_ACTION_WATCH",q2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",q2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
q2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",q2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",q2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",q2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",q2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",q2["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",q2["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",q2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",
q2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",q2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",q2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",q2),r2={},sA=(r2.ad_allowed="adTypesAllowed",r2.yt_abt="adBreakType",r2.ad_cpn="adClientPlaybackNonce",r2.ad_docid="adVideoId",r2.yt_ad_an="adNetworks",r2.ad_at="adType",r2.aida="appInstallDataAgeMs",r2.browse_id="browseId",r2.p="httpProtocol",r2.t="transportProtocol",r2.cpn="clientPlaybackNonce",r2.ccs=
"creatorInfo.creatorCanaryState",r2.csn="clientScreenNonce",r2.docid="videoId",r2.GetHome_rid="requestIds",r2.GetSearch_rid="requestIds",r2.GetPlayer_rid="requestIds",r2.GetWatchNext_rid="requestIds",r2.GetBrowse_rid="requestIds",r2.GetLibrary_rid="requestIds",r2.is_continuation="isContinuation",r2.is_nav="isNavigation",r2.b_p="kabukiInfo.browseParams",r2.is_prefetch="kabukiInfo.isPrefetch",r2.is_secondary_nav="kabukiInfo.isSecondaryNav",r2.prev_browse_id="kabukiInfo.prevBrowseId",r2.query_source=
"kabukiInfo.querySource",r2.voz_type="kabukiInfo.vozType",r2.yt_lt="loadType",r2.mver="creatorInfo.measurementVersion",r2.yt_ad="isMonetized",r2.nr="webInfo.navigationReason",r2.nrsu="navigationRequestedSameUrl",r2.ncnp="webInfo.nonPreloadedNodeCount",r2.pnt="performanceNavigationTiming",r2.prt="playbackRequiresTap",r2.plt="playerInfo.playbackType",r2.pis="playerInfo.playerInitializedState",r2.paused="playerInfo.isPausedOnLoad",r2.yt_pt="playerType",r2.fmt="playerInfo.itag",r2.yt_pl="watchInfo.isPlaylist",
r2.yt_pre="playerInfo.preloadType",r2.yt_ad_pr="prerollAllowed",r2.pa="previousAction",r2.yt_red="isRedSubscriber",r2.rce="mwebInfo.responseContentEncoding",r2.scrh="screenHeight",r2.scrw="screenWidth",r2.st="serverTimeMs",r2.ssdm="shellStartupDurationMs",r2.br_trs="tvInfo.bedrockTriggerState",r2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",r2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",r2.label="tvInfo.label",r2.is_mdx="tvInfo.isMdx",r2.preloaded="tvInfo.isPreloaded",r2.upg_player_vis=
"playerInfo.visibilityState",r2.query="unpluggedInfo.query",r2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",r2.yt_vst="videoStreamType",r2.vph="viewportHeight",r2.vpw="viewportWidth",r2.yt_vis="isVisible",r2.rcl="mwebInfo.responseContentLength",r2.GetSettings_rid="requestIds",r2.GetTrending_rid="requestIds",r2.GetMusicSearchSuggestions_rid="requestIds",r2.REQUEST_ID="requestIds",r2),aja="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(" "),
s2={},tA=(s2.ccs="CANARY_STATE_",s2.mver="MEASUREMENT_VERSION_",s2.pis="PLAYER_INITIALIZED_STATE_",s2.yt_pt="LATENCY_PLAYER_",s2.pa="LATENCY_ACTION_",s2.yt_vst="VIDEO_STREAM_TYPE_",s2),bja="all_vc ap aq c cver cbrand cmodel cplatform ctheme 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 t2=window;t2.ytcsi&&(t2.ytcsi.info=g.DA,t2.ytcsi.tick=EA);var sma={MY:1,cZ:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var XT=16/9,jKa=[.25,.5,.75,1,1.25,1.5,1.75,2],kKa=jKa.concat([3,4,5,6,7,8,9,10,15]);PA.prototype.getLanguageInfo=function(){return this.Jc};
PA.prototype.toString=function(){return this.Jc.name};
PA.prototype.getLanguageInfo=PA.prototype.getLanguageInfo;var u2,VA;u2={};g.SA=(u2.auto=0,u2.tiny=144,u2.light=144,u2.small=240,u2.medium=360,u2.large=480,u2.hd720=720,u2.hd1080=1080,u2.hd1440=1440,u2.hd2160=2160,u2.hd2880=2880,u2.highres=4320,u2);VA={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};QA.prototype.isLocked=function(){return this.u&&!!this.l&&this.l===this.i};
QA.prototype.compose=function(a){if(a.u&&UA(a))return qH;if(a.u||UA(this))return a;if(this.u||UA(a))return this;var b=this.l&&a.l?Math.max(this.l,a.l):this.l||a.l,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.l&&c===this.i?this:new QA(b,c,!1,c===this.i?this.reason:a.reason)};
QA.prototype.B=function(a){return a.video?XA(this,a.video.quality):!1};
var fEa=TA("auto","hd1080",!1,"l"),WAa=TA("auto","large",!1,"l"),qH=TA("auto","auto",!1,"p");TA("small","auto",!1,"p");YA.prototype.Am=function(a){a=a||qH;for(var b=g.Po(this.videoInfos,function(h){return a.B(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].fb();
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
YA.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var nB={mx:function(a,b){a.splice(0,b)},
UE:function(a){a.reverse()},
Cz:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};g.pB.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
g.pB.prototype.get=function(a){rB(this);return this.i[a]||null};
g.pB.prototype.clone=function(){var a=new g.pB(this.l,this.C);a.u=this.u;a.path=this.path;a.B=this.B;a.i=g.Vb(this.i);a.url=this.url;return a};g.k=AB.prototype;g.k.jz=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Pi(a))?a.duration:0};
g.k.getDurationTicks=function(a){return this.getDuration(a)};
g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ka:-1};
g.k.getIngestionTime=function(a){return(a=this.Pi(a))?a.ingestionTime:NaN};
g.k.getStitchedVideoInfo=function(a){return(a=this.Pi(a))?a.i:null};
g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ka:-1};
g.k.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.getMinSeekableTime=function(){return this.segments[0].startTime};
g.k.getNumberOfSegments=function(){return this.segments.length};
g.k.getOffset=function(){return 0};
g.k.getSegmentNumberForTime=function(a){return(a=this.yq(a))?a.Ka:-1};
g.k.getSegmentURL=function(a){return(a=this.Pi(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Pi(a))?a.startTime:0};
g.k.getStartTimeInPeriod=function(a){return(a=this.Pi(a))?a.l:0};
g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Pi=function(a){a=g.xb(this.segments,new zB(a,0,0,0,""),function(b,c){return b.Ka-c.Ka});
return 0<=a?this.segments[a]:null};
g.k.yq=function(a){a=g.xb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.rb(a),this.segments.length){var b=this.segments.length?g.eb(this.segments).endTime:0,c=a[0].Ka-this.getLastSegmentNumber();1<c&&lb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.getLocalMaxByterate=function(){return 0};var oR=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();g.k=FB.prototype;g.k.vg=function(){var a=this.data.getUint8(this.offset+this.Yb);this.Yb+=1;return a};
g.k.rk=function(){var a=this.data.getUint16(this.offset+this.Yb);this.Yb+=2;return a};
g.k.Ne=function(){var a=this.data.getInt32(this.offset+this.Yb);this.Yb+=4;return a};
g.k.Fc=function(){var a=this.data.getUint32(this.offset+this.Yb);this.Yb+=4;return a};
g.k.dr=function(){var a=this.data;var b=this.offset+this.Yb;a=4294967296*a.getUint32(b)+a.getUint32(b+4);this.Yb+=8;return a};
g.k.Oe=function(a){a=void 0===a?NaN:a;if(isNaN(a))var b=this.size;else for(b=this.Yb;b<this.size&&this.data.getUint8(this.offset+b)!==a;)++b;a=new Uint8Array(this.data.buffer,this.offset+this.Yb+this.data.byteOffset,b-this.Yb);this.Yb=Math.min(b+1,this.size);return EB(a)};
g.k.skip=function(a){this.Yb+=a};
g.k.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};
g.k.setUint32=function(a,b){this.data.setUint32(this.offset+a,b)};var v2={},lKa=(v2.predictStart="predictStart",v2.start="start",v2["continue"]="continue",v2.stop="stop",v2),mja={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var $B=!1;aC.prototype.Oe=function(){var a=fC(this,!0);return EB(mC(this,a))};rC.prototype.set=function(a,b){this.ih.get(a);this.i[a]=b;this.url=""};
rC.prototype.get=function(a){return this.i[a]||this.ih.get(a)};xC.prototype.Ti=function(a,b){a.ih===this.i&&(this.i=uC(a,b));a.ih===this.u&&(this.u=uC(a,b))};BC.prototype.Be=function(){return!!this.i&&this.index.isLoaded()};
BC.prototype.Pr=function(){return!1};
BC.prototype.vE=function(a){return[a]};
BC.prototype.Bu=function(a){return[a]};DC.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};JC.prototype.bk=function(){return this.i.info.bk()};
JC.prototype.isVideo=function(){return!!this.i.info.video};SC.prototype.Aq=function(){return this.u?qB(this.u):""};
SC.prototype.Oh=function(){return KC(this.i[0])};
SC.prototype.Ti=function(a,b){this.l.Ti(a,b);if(this.u){this.u=uC(a,b);b=g.q(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.u.set(c.value,null)}this.requestId=a.get("req_id")};g.v(YC,BC);g.k=YC.prototype;g.k.Gg=function(){return!1};
g.k.Jt=function(){return!1};
g.k.Pr=function(){return!this.U};
g.k.Io=function(){var a=new JC(1,this,this.initRange,"getMetadataRequestInfo");return new SC([a],this.U)};
g.k.Tp=function(){return null};
g.k.Or=function(a){this.Vl(a);return this.Wl(a.Nd?a.Ka+1:a.Ka,!1)};
g.k.Fm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.kc()||this.info.kc();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.Wl(a,!0)};
g.k.wB=function(a){this.i=new Uint8Array(xD(a).buffer)};
g.k.Vl=function(a){return 0===a.l?!0:this.index.getLastSegmentNumber()>a.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1};
g.k.update=function(a,b,c){this.index.append(a);BB(this.index,c);this.J=b};
g.k.Be=function(){return this.Pr()?!0:BC.prototype.Be.call(this)};
g.k.Wl=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Ib?this.info.Ib*e:1E3;b=!b;var h=f;f=a===this.index.getLastSegmentNumber()&&!this.J&&0<f;a=new JC(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,h,f,b);return new SC([a],c)};
g.k.iB=function(){return this.Pr()?0:this.initRange.length};
g.k.FC=function(){return!1};cD.prototype.update=function(a,b){var c=void 0;this.l&&(c=this.l);var d=new cD,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+ZC(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+ZC(a,"startNumber")||0;d.B=h;var m=h,n=+ZC(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(bD(ZC(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"===a.parentElement.tagName;d.C&&(d.J=ZC(a,"media"));a=c?l-c.Ka:1;d.G=0<a?0:-a+1;a=g.q(e);for(e=a.next();!e.done;e=a.next()){e=
e.value;n=+e.getAttribute("d")/f;for(var p=(+e.getAttribute("yt:sid")||0)/f,r=+e.getAttribute("r")||0,t=0;t<=r;t++)if(c&&l<=c.Ka)l++;else{var u=new zja(l,b,n,m+p,h);d.i.push(u);var x=u.startSecs;u=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(u&&y){u=Number(u);x=-u/f+x;y=Number(y)/f;var B=e.getAttribute("yt:cuepointContext")||null,G=e.getAttribute("yt:cuepointIdentifier")||"";var H=e.getAttribute("yt:cuepointEvent")||"";H=lKa[H]||"unknown";u=new rz(x,y,B,G,
H,u)}else u=null;u&&d.u.push(u);l++;b+=n;h+=n;m+=n+p}}d.i.length&&(d.l=g.eb(d.i))}this.G=d.G;this.l=d.l||this.l;sb(this.i,d.i);sb(this.u,d.u);this.C=d.C;this.J=d.J;-1===this.B&&(this.B=d.getStreamTimeOffset())};
cD.prototype.getStreamTimeOffset=function(){return-1===this.B?0:this.B};g.v(dD,AB);g.k=dD.prototype;g.k.getFirstSegmentNumber=function(){return this.Mj?this.segments.length?this.yq(this.getMinSeekableTime()).Ka:-1:AB.prototype.getFirstSegmentNumber.call(this)};
g.k.getMinSeekableTime=function(){if(this.Le)return 0;if(!this.Mj)return AB.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.eb(this.segments).endTime-this.dl,0);return 0<this.Vd&&this.yq(a).Ka<this.Vd?this.Pi(this.Vd).startTime:a};
g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return AB.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.Mj||a<=this.segments[this.segments.length-1].Ka)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new zB(a,Math.max(0,b.startTime-(b.Ka-a)*this.Ag),this.Ag,0,"sq/"+a,void 0,void 0,!0)}return null!==this.l&&a.pending&&3===this.l?this.Le?Math.min(this.dl,a.startTime):a.startTime:this.Le?Math.min(this.dl,a.endTime):
a.endTime};
g.k.getNumberOfSegments=function(){return this.Mj?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:AB.prototype.getNumberOfSegments.call(this)};
g.k.getLastSegmentNumber=function(){var a=Math.min(this.gg,Math.max(AB.prototype.getLastSegmentNumber.call(this),this.Qr)),b=1E3*this.dl;b=0<this.i&&this.i<b;this.Le&&0<this.dl&&0<this.Qr&&!b&&(b=this.yq(this.dl))&&(a=Math.min(b.Ka-1,a));return a};
g.k.Dq=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.jz=function(a){var b=eD(this,a.Ka);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Ot&&0===a.Ka%(300/this.Ag)){var c=this.segments[0].Ka,d=Math.floor(this.Ot/this.Ag);a=a.Ka-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.yq=function(a){if(!this.Mj)return AB.prototype.yq.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ka-Math.ceil((this.segments[0].startTime-a)/this.Ag));else if(a>=b.endTime)b=b.Ka+Math.floor((a-b.endTime)/this.Ag+1);else{b=yb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ka-b.Ka-1))+1)+b.Ka}return this.Pi(b)};
g.k.Pi=function(a){if(!this.Mj)return AB.prototype.Pi.call(this,a);if(!this.segments.length)return null;var b=eD(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Ag;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ka-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ka-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ka-d.Ka-1),d=d.endTime+(a-d.Ka-1)*b);return new zB(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.v(gD,YC);g.k=gD.prototype;g.k.Jt=function(){return!0};
g.k.Be=function(){return!0};
g.k.Vl=function(a){return!a.u};
g.k.Io=function(){};
g.k.Fm=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?YC.prototype.Fm.call(this,a,b):(a=new JC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.zi,void 0,this.zi*this.info.Ib),new SC([a],""))};
g.k.Wl=function(a,b){var c=void 0===c?!1:c;if(fD(this.index,a))return YC.prototype.Wl.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.zi*this.info.Ib;b=!b;c=new JC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.J&&0<e,b);return new SC([c],0<=a?"sq/"+a:"")};g.v(hD,BC);g.k=hD.prototype;g.k.Gg=function(){return!1};
g.k.Jt=function(){return!1};
g.k.Io=function(){var a=new JC(1,this,void 0,"otfInit");return new SC([a],this.J)};
g.k.Tp=function(){return null};
g.k.Or=function(a){this.Vl(a);return iD(this,a.Ka+(a.Nd?1:0),!1)};
g.k.Fm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return iD(this,a,!0)};
g.k.wB=function(a){1===a.info.type&&(this.i||(this.i=tD(a.i)),a.l&&"http://youtube.com/streaming/otf/durations/112015"===a.l.uri&&Hja(this,a.l))};
g.k.Vl=function(a){return 0===a.l?!0:this.index.getLastSegmentNumber()>a.Ka&&this.index.getFirstSegmentNumber()<=a.Ka+1};
g.k.iB=function(){return 0};
g.k.FC=function(){return!1};g.k=jD.prototype;g.k.getOffset=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.i[a]/this.u};
g.k.getStartTimeInPeriod=function(){return 0};
g.k.getIngestionTime=function(){return NaN};
g.k.getStitchedVideoInfo=function(){return null};
g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.u:-1};
g.k.getDurationTicks=function(a){return a+1<this.count||this.l?this.i[a+1]-this.i[a]:-1};
g.k.getByteLength=function(a){return a+1<this.count||this.l?this.offsets[a+1]-this.offsets[a]:-1};
g.k.getFirstSegmentNumber=function(){return 0};
g.k.getLastSegmentNumber=function(){return this.count-1};
g.k.getMaxKnownEndTime=function(){return this.l?this.i[this.count]/this.u:NaN};
g.k.getMinSeekableTime=function(){return 0};
g.k.getNumberOfSegments=function(){return this.count};
g.k.getTotalByteLength=function(){return this.l?this.offsets[this.count]:-1};
g.k.getSegmentURL=function(){return""};
g.k.getSegmentNumberForTime=function(a){a=g.xb(this.i.subarray(0,this.count),a*this.u);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.k.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.i;this.i=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.i[a]=c[a]};
g.k.setTimebase=function(a){this.u=a};
g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.i[0]=b;this.l=!0};
g.k.addSegmentBySize=function(a,b){this.count++;kD(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.i[this.count]=this.i[this.count-1]+b};
g.k.addSegmentByStart=function(a,b){kD(this);this.offsets[this.count]=a;this.i[this.count]=b;this.count++};
g.k.cap=function(a,b){kD(this);this.l=!0;this.i[this.count]=b;this.offsets[this.count]=a};lD.prototype.append=function(a){if(mD(this,a)){var b=this.i[this.i.length-1];this.i[this.i.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);oD(this)}else this.i.push(a);this.totalLength+=a.length};
lD.prototype.split=function(a){for(var b=new lD,c=new lD,d=g.q(this.i),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{Jw:b,Fp:c}};
lD.prototype.isFocused=function(a){return a>=this.u&&a<this.u+this.i[this.l].length};
lD.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.u&&oD(this);this.u+this.i[this.l].length<=a&&this.l<this.i.length;)this.u+=this.i[this.l].length,this.l+=1;this.B=void 0}};wD.prototype.verify=function(a){if(this.info.l!==this.i.totalLength)return a.slength=this.info.l.toString(),a.range=this.i.totalLength.toString(),!1;if(1===this.info.i.info.containerType){if(8>this.info.l||4===this.info.type)return!0;var b=xD(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.l&&1936286840===b;if(3===this.info.type&&0===this.info.zb)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.i.info.containerType){if(4>this.info.l||4===this.info.type)return!0;c=xD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.zb)return 524531317===c||440786851===c}return!0};g.v(ID,BC);g.k=ID.prototype;g.k.Io=function(a){var b=new JC(1,this,this.initRange,"initInfo"),c=new JC(2,this,this.indexRange,"indexInfo");b=[b,c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&(a=FC(c,a),b.push(new JC(4,this,a,"tbdRange"))));return new SC(b)};
g.k.wB=function(a){if(1===a.info.type){if(this.i)return;this.i=tD(a.i)}else if(2===a.info.type){if(this.J||0<=this.index.getLastSegmentNumber())return;if(g.BD(this.info)){var b=this.index,c=xD(a);a=a.info.range.start;var d=g.NB(c,0,1936286840);c=WB(d);b.setTimebase(c.yD);b.setFirstSegmentStart(c.JO+a+d.size,c.yO);a=c.tD.length;for(d=0;d<a;d++)b.addSegmentBySize(c.ST[d],c.tD[d])}else this.J=xD(a)}if(this.info.De()&&this.i&&this.J){a=new DataView(this.i.buffer);b=this.index;d=this.J;c=this.indexRange.end;
var e=new aC(a);a=e;e=a.i;var f={CK:1E6,DK:1E9,duration:0,fK:0,YC:0};if(eC(a,408125543))if(f.fK=fC(a,!0),f.YC=a.start+a.i,eC(a,357149030)){for(var h=dC(a);!bC(h);){var l=fC(h,!1);2807729===l?f.CK=jC(h):2807730===l?f.DK=jC(h):17545===l?f.duration=lC(h):kC(h)}a.i=e;a=f}else a.i=e,a=null;else a.i=e,a=null;if(null!==a){b.setTimebase(a.DK/a.CK);e=new aC(d);d=e;h=a.YC;e=d.i;f=[];if(eC(d,475249515)){for(l=dC(d);eC(l,187);){var m=dC(l);if(eC(m,179)){var n=jC(m);if(eC(m,183)){m=dC(m);for(var p=h;eC(m,241);)p=
jC(m)+h;f.push({Sv:p,pO:n})}}}if(0<f.length&&c===f[0].Sv)for(c=0;c<f.length;c++)f[c].Sv+=1;d.i=e;c=f}else d.i=e,c=null;if(null!==c){c=g.q(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.Sv,d.pO);b.cap(a.fK+a.YC,a.duration)}}this.J=null}};
g.k.vE=function(a){for(var b=this.Bu(a.info),c=a.info.range.start+a.info.zb,d=a.u,e=[],f=0;f<b.length;f++){var h=b[f].l;h=a.i.split(b[f].range.start+b[f].zb-c).Fp.split(h).Jw;e.push(new wD(b[f],h,d));d=!1}return e};
g.k.Bu=function(a){for(var b=a.range.start+a.zb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return JD(this,c,b,a.l).i};
g.k.Vl=function(a){return this.Be()?!0:a.range.end+1<this.info.contentLength};
g.k.Tp=function(a,b){this.Vl(a);if(!this.Be())return b=FC(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new DC(b.start,this.info.contentLength-1)),a=[new JC(4,a.i,b,"getNextRequestInfoByLength")],new SC(a);4===a.type&&(a=this.Bu(a),a=a[a.length-1]);var c=0,d=a.range.start+a.zb+a.l;3===a.type&&(c=a.Ka,d===a.range.end+1&&(c+=1));return JD(this,c,d,b)};
g.k.Or=function(){return null};
g.k.Fm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return JD(this,a,this.index.getOffset(a),0)};
g.k.Gg=function(){return!0};
g.k.Jt=function(){return!1};
g.k.iB=function(){return this.indexRange.length+this.initRange.length};
g.k.FC=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var w2={},eB=(w2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},w2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},w2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},w2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},w2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},w2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},w2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},w2.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},w2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},w2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},w2);var Z={},PD=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",
Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["271"]="9",Z["313"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]="o",Z["250"]="o",Z["251"]=
"o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]="(h",Z["588"]="(h",Z["562"]=
"(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z);var ND="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");MD.prototype.isHdr=function(){return"smpte2084"===this.l||"arib-std-b67"===this.l};g.k=QD.prototype;g.k.fb=function(){return this.video};
g.k.kc=function(){return this.id.split(";",1)[0]};
g.k.De=function(){return 2===this.containerType};
g.k.bk=function(){return!!this.Jd};
g.k.Qm=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};XD.prototype.getName=function(){return this.name};
XD.prototype.getId=function(){return this.id};
XD.prototype.getIsDefault=function(){return this.isDefault};
XD.prototype.toString=function(){return this.name};
XD.prototype.getName=XD.prototype.getName;XD.prototype.getId=XD.prototype.getId;XD.prototype.getIsDefault=XD.prototype.getIsDefault;g.v(lE,g.Q);g.k=lE.prototype;g.k.appendBuffer=function(a,b,c){if(this.jd.ow()!==this.appendWindowStart+this.start||this.jd.bB()!==this.appendWindowEnd+this.start||this.jd.Lc()!==this.timestampOffset+this.start)this.jd.supports(1),this.jd.cD(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.jd.rr(this.timestampOffset+this.start);this.jd.appendBuffer(a,b,c)};
g.k.abort=function(){this.jd.abort()};
g.k.remove=function(a,b){this.jd.remove(a+this.start,b+this.start)};
g.k.cD=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.nB=function(){return this.timestampOffset+this.start};
g.k.ow=function(){return this.appendWindowStart};
g.k.bB=function(){return this.appendWindowEnd};
g.k.rr=function(a){this.timestampOffset=a};
g.k.Lc=function(){return this.timestampOffset};
g.k.Te=function(a){a=this.jd.Te(void 0===a?!1:a);return kE(a,this.start,this.end)};
g.k.eg=function(){return this.jd.eg()};
g.k.Ho=function(){return this.jd.Ho()};
g.k.qw=function(){return this.jd.qw()};
g.k.PD=function(a,b){this.jd.PD(a,b)};
g.k.supports=function(a){return this.jd.supports(a)};
g.k.uw=function(){return this.jd.uw()};
g.k.isView=function(){return!0};
g.k.Vu=function(a,b,c){return this.isActive?this.jd.Vu(a,b,c):!1};
g.k.qA=function(){return this.jd.qA()?this.isActive:!1};
g.k.isLocked=function(){return this.Zu&&!this.isActive};
g.k.Cb=function(a){return this.jd.Cb(a)+(";vw."+this.start+"-"+this.end)};
g.k.ct=function(){return this.jd.ct()};
g.k.ra=function(){qx(this.jd,this.yH);g.Q.prototype.ra.call(this)};var VU=!1;g.v(pE,g.Q);g.k=pE.prototype;g.k.appendBuffer=function(a,b,c){var d;this.Jv=!1;c&&(this.Vw=c);b&&(b.bk()&&(this.ZH=this.Vw),3===b.type&&(this.Ee=b));(null===(d=this.Qb)||void 0===d?0:d.appendBuffer)?this.Qb.appendBuffer(a):this.Qb?this.Qb.append(a):this.qe&&this.qe.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.Qb?this.Qb.abort():this.qe&&this.qe.webkitSourceAbort(this.id)}catch(a){}this.Vw=this.Ee=null};
g.k.remove=function(a,b){var c;this.Jv=!1;(null===(c=this.Qb)||void 0===c?0:c.remove)&&this.Qb.remove(a,b)};
g.k.ow=function(){var a;return VU&&this.isVideo?this.appendWindowStart:(null===(a=this.Qb)||void 0===a?void 0:a.appendWindowStart)||0};
g.k.bB=function(){var a;return(null===(a=this.Qb)||void 0===a?void 0:a.appendWindowEnd)||0};
g.k.cD=function(a,b){this.Qb&&(VU&&this.isVideo?(this.appendWindowStart=a,this.Qb.appendWindowEnd=b):a>this.ow()?(this.Qb.appendWindowEnd=b,this.Qb.appendWindowStart=a):(this.Qb.appendWindowStart=a,this.Qb.appendWindowEnd=b))};
g.k.nB=function(){return this.timestampOffset};
g.k.rr=function(a){VU?this.timestampOffset=a:this.supports(1)&&(this.Qb.timestampOffset=a)};
g.k.Lc=function(){return VU?this.timestampOffset:this.supports(1)?this.Qb.timestampOffset:0};
g.k.Te=function(a){if(void 0===a?0:a)return this.Jv||this.eg()||(this.fG=this.Te(!1),this.Jv=!0),this.fG;try{return this.Qb?this.Qb.buffered:this.qe?this.qe.webkitSourceBuffered(this.id):dE([0],[Infinity])}catch(b){return dE([],[])}};
g.k.eg=function(){var a;return(null===(a=this.Qb)||void 0===a?void 0:a.updating)||!1};
g.k.Ho=function(){return this.Vw};
g.k.qw=function(){return this.ZH};
g.k.PD=function(a,b){this.containerType!==a&&(this.supports(4),qE()&&this.Qb.changeType(b));this.containerType=a};
g.k.uw=function(){return this.Ee};
g.k.isView=function(){return!1};
g.k.supports=function(a){var b,c,d,e,f;switch(a){case 1:return void 0!==(null===(b=this.Qb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Qb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Qb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Qb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Qb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Qb||!this.Qb.changeType);default:return!1}};
g.k.qA=function(){return!this.eg()};
g.k.isLocked=function(){return!1};
g.k.Cb=function(a){var b,c;a.to=""+this.Lc();a.up=""+ +this.eg();var d=(null===(b=this.Qb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Qb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=eE(this.Te())}catch(f){}return g.nE(a)};
g.k.ra=function(){this.supports(3)&&(this.Qb.removeEventListener("updateend",this.Zd),this.Qb.removeEventListener("error",this.Zd));g.Q.prototype.ra.call(this)};
g.k.Vu=function(a,b,c){if(!this.supports(2)||this.eg())return!1;var d=this.Te(),e=fE(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.ea();this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.ea(),this.remove(0,l),!0}catch(m){}return!1};
g.k.ea=function(){};
g.k.ct=function(){return this.containerType};rE.prototype.dispose=function(){if(!this.Ha){if(this.l)try{URL.revokeObjectURL(this.i)}catch(a){}this.u=!0}};
rE.prototype.Ha=function(){return this.u};
rE.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.v(sE,g.E);g.k=sE.prototype;g.k.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.u};
g.k.We=function(){try{return"closed"===wE(this)}catch(a){return!0}};
g.k.eg=function(){return!!(this.i&&this.i.eg()||this.l&&this.l.eg())};
g.k.dT=function(){!this.Ha()&&tE(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.cT=function(){this.dispose()};var Nja=/action_display_post/;var BE;g.v(CE,g.Q);g.k=CE.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.IT=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Sh=this.u=!0;this.timeline||(this.timeline=new Bja);Fja(this.timeline,a,this.Pa);this.W("refresh");for(a=0;a<c.length;a++){var d=Yja(this,c[a]),e=this.isLive&&g.BD(d)&&this.Va;if(!this.i[d.id]){var f=IE($C(c[a],"BaseURL").textContent),h=$C(c[a],"Initialization"),l=ZC(h,"sourceURL");h=EC(ZC(h,"range"));e&&(l="",h=void 0);this.i[d.id]=
new YC(f,d,l,h)}d=this.i[d.id];f=ZC(c[a],"id","AdaptationSet");f=""!==f?f:ZC(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.u[d.info.id]||l.l[f]||l.i||null;f=l.i;!this.l&&l.getStreamTimeOffset()&&(this.l=l.getStreamTimeOffset());if(l.C)for(e=[],f=g.q(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.Ib,p=h.Ka,r=h.startSecs;var t=l.J.split("$$");for(b=0;b<t.length;b++)t[b]=t[b].replace("$RepresentationID$",m),t[b]=t[b].replace("$Number$",p.toString()),t[b]=t[b].replace("$Bandwidth$",
n.toString()),t[b]=t[b].replace("$Time$",r.toString());e.push(new zB(h.Ka,h.startSecs,h.durationSecs,h.i,t.join("$"),null,h.l))}else{l=tb($C(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.G);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;r=f[m];t=void 0;var u=l[m];b=u.getAttribute("media");if(!e&&(u=u.getAttribute("mediaRange"))){var x=u.split("-");x[1]&&0<=Number(x[1])?t=EC(u):b=b+"?range="+u}p.call(n,new zB(r.Ka,r.startSecs,r.durationSecs,r.i,b,t,r.l))}e=h}d.update(e,this.isLive,this.Da)}Gja(this.timeline);
return!0}this.duration=aD(ZC(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=Yja(this,f);e=IE($C(f,"BaseURL").textContent);l=$C(f,"SegmentBase");f=EC(l.attributes.getNamedItem("indexRange").value);l=EC(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new ID(e,d,l,f);if(!d){c=!1;break a}GE(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.Ha()){var a=g.ti(this.sourceUrl,{start_seq:bka(this).toString()});g.ah($ja(this,a),function(){})}};
g.k.resume=function(){Zja(this)};
g.k.getMinSeekableTime=function(){if(this.isManifestless){if(RE(this))return RE(this);if(this.J){var a=this.getIngestionTime(QE(this));if(a&&(a-=this.J,0<a))return QE(this)-a}}a=this.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.k.getStreamTimeOffset=function(){return this.l};
g.k.getIngestionTime=function(a){for(var b in this.i){var c=this.i[b].index;if(c.isLoaded()){var d=c.getSegmentNumberForTime(a),e=c.getIngestionTime(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var KE=null,LE=!1,Xja={commentary:1,alternate:2,dub:3,main:4};VE.prototype.vk=function(a,b){var c=this;b=void 0===b?1:b;this.i+=b;this.u+=a;var d=a/b;UE.forEach(function(e,f){d<e||(c.l[f]+=b)})};
VE.prototype.toString=function(){return""};
var UE=[20,100,500,2E3];g.k=jka.prototype;g.k.isActive=function(){return!0};
g.k.Ow=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.Ry=a.prototype[e],d.Ty=b[e],a.prototype[e]=function(f){return function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];m=(0,g.P)();l=f.Ry.apply(this,l);WE(c,f.Ty,(0,g.P)()-m);return l}}(d)),d={Ry:d.Ry,
Ty:d.Ty}}};
g.k.Sc=function(a,b){var c=this;return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=(0,g.P)();e=b.apply(null,e);WE(c,a,(0,g.P)()-f);return e}};
g.k.Ju=function(a){return new ika(a)};
g.k.Ss=function(a,b){b=void 0===b?1:b;a instanceof ika&&(WE(this,a.name,(0,g.P)()-a.startTimeMs,b),a.i=!0)};
g.k.PC=function(a,b){var c=void 0===c?1:c;var d=(0,g.P)();b();WE(this,a,(0,g.P)()-d,c)};
g.k.TG=function(){var a="",b;for(b in this.profiles)if(this.profiles.hasOwnProperty(b)){var c=this.profiles[b];if(0===c.i)c=null;else{for(var d=c.i.toString()+"."+Math.round(c.u).toString(),e=0;e<UE.length;++e)if(0<c.l[e])d+="."+UE[e].toString()+"_"+Math.round(c.l[e]).toString();else break;c=d}c&&(a+=b+"."+c+";")}this.profiles=new hka;return a};
g.k.toString=function(){return""};g.k=XE.prototype;g.k.isActive=function(){return!1};
g.k.Ow=function(){};
g.k.Sc=function(a,b){return b};
g.k.Ju=function(){};
g.k.Ss=function(){};
g.k.PC=function(a,b){b()};
g.k.TG=function(){return""};
g.k.toString=function(){return""};var mKa,x2,pX;mKa=new XE;x2=Lr("html5_enable_profiler")||Lr("html5_onesie_enable_profiler")?new jka:new XE;g.cT=Lr("html5_enable_profiler")?x2:mKa;pX=Lr("html5_onesie_enable_profiler")?x2:mKa;var iFa,AEa,Eka,Bka,Mka,gEa,AF,Hza,Lka,ABa,YE,mW,hEa,nKa,KEa,Sua,Rua,mFa,oKa,pKa,Iza,Mza,qKa,VEa,UEa,nka;iFa=g.cT.Sc("plssv",function(a){a.unstorable||(g.Xy("yt-player-volume",a),g.Xy("yt-player-volume",a,2592E3))});
AEa=g.cT.Sc("plsgv",function(){var a=g.Yy("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Mf(Math.floor(b),0,100),muted:!!a.muted}});
Eka=g.cT.Sc("plssbs",function(a){g.Xy("yt-player-bandwidth",a,2592E3)});
Bka=g.cT.Sc("plsgbs",function(){return g.Yy("yt-player-bandwidth")||{}});
Mka=g.cT.Sc("plswm",function(a,b){var c={};c.values=a;c.halfLives=b;g.Xy("yt-player-memory",c,2592E3)});
gEa=g.cT.Sc("plssq",function(a,b){g.Xy("yt-player-quality",{quality:a,previousQuality:b},31104E3)});
AF=g.cT.Sc("plsgq",function(a){a=void 0===a?2592E3:a;if(0<a&&!(Zy()>(0,g.P)()-1E3*a))return 0;a=g.Yy("yt-player-quality");if("string"===typeof a){if(a=g.SA[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0});
Hza=g.cT.Sc("plshsq",function(){return 0<AF()});
Lka=g.cT.Sc("plslm",function(){var a={values:{},ql:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a});
ABa=g.cT.Sc("plsspc",function(a,b,c){var d=mW();a=lka(a,b);0<+d[a]&&(c=Math.min(+d[a],c));d[a]!==c&&(d[a]=c,g.Xy("yt-player-performance-cap",d,604800))});
YE=g.cT.Sc("plsgpc",function(a,b){return+mW()[lka(a,b)]||8192});
mW=g.cT.Sc("plsgrpd",function(){return g.Yy("yt-player-performance-cap")||{}});
hEa=g.cT.Sc("plscpc",function(a){if(a){a=mW();for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,0!==c.indexOf("1")&&(a[c]=0);g.Xy("yt-player-performance-cap",a,604800)}else g.$y("yt-player-performance-cap")});
nKa=g.cT.Sc("plsspr",function(a){g.Xy("yt-player-playback-rate",a)});
KEa=g.cT.Sc("plsgpr",function(){return Number(g.Yy("yt-player-playback-rate"))||1});
Sua=g.cT.Sc("plsswlp",function(a){g.Xy("yt-player-watch-later-pending",a)});
Rua=g.cT.Sc("plsgwlp",function(){return g.Yy("yt-player-watch-later-pending")});
mFa=g.cT.Sc("plssas",function(a){g.Xy("yt-player-autonavstate",a)});
oKa=g.cT.Sc("plsgas",function(){return g.Yy("yt-player-autonavstate")});
pKa=g.cT.Sc("plsshr",function(a){g.Xy("yt-player-headers-readable",a,2592E3)});
Iza=g.cT.Sc("plsghr",function(){return!!g.Yy("yt-player-headers-readable")});
Mza=g.cT.Sc("plssrbh",function(a){g.Xy("yt-player-bandaid-host",a,432E3)});
qKa=g.cT.Sc("plsgrbh",function(){return g.Yy("yt-player-bandaid-host")});
VEa=g.cT.Sc("plsspor",function(a){g.Xy("yt-player-playback-on-reload",a)});
UEa=g.cT.Sc("plsgpor",function(){return g.Yy("yt-player-playback-on-reload")});
nka=g.cT.Sc("plsgaup",function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}});
g.rKa=g.cT.Sc("plssscp",function(a){g.Xy("yt-player-sticky-caption",a,2592E3)});
g.ssa=g.cT.Sc("plssscp",function(){return g.Yy("yt-player-sticky-caption")});
g.sKa=g.cT.Sc("plssclp",function(a){g.Xy("yt-player-caption-language-preferences",a)});
g.rsa=g.cT.Sc("plsgclp",function(){var a=g.Yy("yt-player-caption-language-preferences");return a?a:[]});aF.prototype.clone=function(a){return new aF(this.flavor,a,this.u,this.experiments)};
aF.prototype.Cb=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
aF.prototype.Ue=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.widevine.forcehdcp":return"WVYF";case "com.youtube.fairplay":return"FPY";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
var y2={},jF=(y2.playready=["com.youtube.playready","com.microsoft.playready"],y2.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],y2),z2={},KAa=(z2.widevine="DRM_SYSTEM_WIDEVINE",z2.fairplay="DRM_SYSTEM_FAIRPLAY",z2.playready="DRM_SYSTEM_PLAYREADY",z2),A2={},tKa=(A2.widevine=1,A2.fairplay=2,A2.playready=3,A2);g.v(kF,g.E);
kF.prototype.initialize=function(a,b){for(var c=this,d=g.q(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.q(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Jd)for(var h=g.q(Object.keys(f.Jd)),l=h.next();!l.done;l=h.next())if(l=l.value,jF[l])for(var m=g.q(jF[l]),n=m.next();!n.done;n=m.next())n=n.value,this.l[n]=this.l[n]||new aF(l,n,f.Jd[l],this.experiments),this.B[l]=this.B[l]||{},this.B[l][f.mimeType]=!0}jt()&&(this.l["com.youtube.fairplay"]=new aF("fairplay","com.youtube.fairplay","",
this.experiments),this.B.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=oka(b,this.useCobaltWidevine,g.S(this.experiments,"html5_enable_safari_fairplay"),g.$E(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.l[p]})};
kF.prototype.ea=function(){};
kF.prototype.Z=function(a){return g.S(this.experiments,a)};var uKa={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},B2;a:{var C2=g.Tc;C2=C2.toLowerCase();if(-1!=C2.indexOf("android")){var vKa=C2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(vKa){var wKa=parseFloat(vKa[1]);if(100>wKa){B2=wKa;break a}}var xKa=C2.match("("+g.Mb(uKa).join("|")+")");B2=xKa?uKa[xKa[0]]:0}else B2=void 0}var QF=B2,PF=0<=QF;var Vka={RED:"red",i7:"white"};var ala={vV:"adunit",FY:"detailpage",UY:"editpage",XY:"embedded",YY:"embedded_unbranded",T_:"leanback",l4:"previewpage",o4:"profilepage",t6:"unplugged",e4:"playlistoverview",H5:"sponsorshipsoffer",w5:"shortspage"};mF.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;qt?a=a||yKa[b]:2.2===QF?a=a||zKa[b]:gt()&&(a=a||AKa[b]);return!!a};
mF.prototype.isTypeSupported=function(a){this.ea();return this.G?window.cast.receiver.platform.canDisplayType(a):$D(a)};
mF.prototype.disableAv1=function(){this.K=!0};
mF.prototype.ea=function(){};
var zKa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},AKa={"application/x-mpegURL":"maybe"},yKa={"application/x-mpegURL":"maybe"};g.v(pF,g.Q);pF.prototype.add=function(a,b){!this.items[a]&&(b.Cs||b.Ov||b.Uu)&&(this.items[a]=Zb(b),this.W("vast_info_card_add",a))};
pF.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
pF.prototype.get=function(a){return this.items[a]||null};
pF.prototype.isEmpty=function(){return g.Rb(this.items)};var ZF={q0:1,r0:2,s0:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};rF.prototype.Fg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.l+=a};
rF.prototype.Yf=function(){return this.i/(1-Math.pow(this.alpha,this.l))};sF.prototype.Fg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.l=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.B=!0};
sF.prototype.Yf=function(){return this.C?(tF(this,this.u-this.C)+tF(this,this.u)+tF(this,this.u+this.C))/3:tF(this,this.u)};g.v(Jka,g.E);var Oka=/^([0-9\.]+):([0-9\.]+)$/;var Tka="area120-boutique blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),$ka={ZV:"cbrand",aW:"cbr",bW:"cbrver",e_:"c",h_:"cver",g_:"ctheme",f_:"cplayer",z2:"cmodel",g3:"cnetwork",C3:"cos",D3:"cosver",V3:"cplatform"};g.v(uG,g.E);g.k=uG.prototype;g.k.Z=function(a){return g.S(this.experiments,a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.xG(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.UF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,qt&&(a=Hr())&&(b.ebc=a));return g.ti(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.xG(this)+"/embed/"+a;c&&(a=g.ti(a,{list:c}));c=b.width;b=b.height;a=g.qd(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.k.supportsGaplessAudio=function(){return g.aj&&!qt&&74<=dt()||g.bj&&g.Wd(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
g.k.ra=function(){this.rj&&window.clearInterval(this.rj);g.E.prototype.ra.call(this)};
var gla=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=NG.prototype;g.k.Ue=function(){return this.i};
g.k.Rr=function(){return null};
g.k.dH=function(){var a=this.Rr();return a?(a=g.$r(a.i),Number(a.expire)):NaN};
g.k.ZC=function(){};
g.k.kc=function(){return this.i.kc()};
g.k.getHeight=function(){return this.i.fb().height};hla.prototype.He=function(){kla(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.q(this.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.Jc){if(e.Jc.getIsDefault()){c=e.Jc.getId();break a}c||(c=e.Jc.getId())}}d=g.q(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,e.Jc&&e.Jc.getId()!==c||(b[e.itag]=e);c=g.q(this.l);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.i]){var f=a,h=f.push,l="#EXT-X-MEDIA:TYPE=AUDIO,",m="YES",n="audio";if(e.Jc){n=
e.Jc;var p=n.getId().split(".")[0];p&&(l+='LANGUAGE="'+p+'",');this.i||n.getIsDefault()||(m="NO");n=n.getName()}p="";null!==d&&(p=d.itag.toString());p=ila(this,e.url,p);l=l+('NAME="'+n+'",DEFAULT='+(m+',AUTOSELECT=YES,GROUP-ID="'))+(jla(e,d)+'",URI="'+(p+'"'));h.call(f,l)}c=g.q(this.l);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.i])e="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+e.bitrate)+',CODECS="'+(d.codecs+","+e.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(jla(e,d)+'",CLOSED-CAPTIONS=NONE'),
1<d.fps&&(e+=",FRAME-RATE="+d.fps),d.l&&(e+=",VIDEO-RANGE="+d.l),a.push(e),a.push(ila(this,d.url,""));return a.join("\n")};g.v(PG,NG);PG.prototype.dH=function(){return this.expiration};
PG.prototype.Rr=function(){if(!this.l||this.l.Ha()){var a=this.u.He();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.l=new rE(a)}return this.l};g.v(QG,NG);QG.prototype.Rr=function(){return new rE(qB(this.l))};
QG.prototype.ZC=function(){this.l=vB(this.l)};g.v(RG,NG);RG.prototype.Rr=function(){return new rE(this.l)};var D2={},zla=zw("yt-player-local-media",{Vt:(D2.index=!0,D2.media=!0,D2.captions=!0,D2),iy:!1,upgrade:function(a,b){b(2)&&($v(a,"index"),$v(a,"media"));b(5)&&$v(a,"captions");b(6)&&(a.i.objectStoreNames.contains("metadata")&&a.i.deleteObjectStore("metadata"),a.i.objectStoreNames.contains("playerdata")&&a.i.deleteObjectStore("playerdata"))},
version:5});var SG=void 0;var Cla=/^([\w\-_]+)\|(\d+)\|(\d+)\|(\d+)$/;g.k=g.ZG.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.i};
g.k.toString=function(){return this.languageCode+": "+g.$G(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Mla={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Nla={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Ola=/^(\d*)_((\d*)_?(\d*))$/;var cH={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Rla={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var E2={},vma=(E2.ALWAYS=1,E2.BY_REQUEST=3,E2.UNKNOWN=void 0,E2),F2={},ema=(F2.COLOR_PRIMARIES_BT709="bt709",F2.COLOR_PRIMARIES_BT2020="bt2020",F2.COLOR_PRIMARIES_UNKNOWN=null,F2.COLOR_PRIMARIES_UNSPECIFIED=null,F2),G2={},Tla=(G2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",G2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",G2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",G2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",G2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,G2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,G2),H2={},hH=(H2.FAIRPLAY="fairplay",H2.PLAYREADY="playready",H2.WIDEVINE="widevine",H2.CLEARKEY=null,H2.FLASHACCESS=null,H2.UNKNOWN=null,H2.WIDEVINE_CLASSIC=null,H2),I2={},wma=(I2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",I2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",I2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",I2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",I2),J2={},bma=(J2.UNKNOWN=0,J2.RECTANGULAR=1,J2.EQUIRECTANGULAR=2,J2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,J2.MESH=4,J2),K2={},dma=(K2.SPATIAL_AUDIO_TYPE_NONE=0,K2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,K2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,K2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,K2),L2={},cma=(L2.STEREO_LAYOUT_UNKNOWN=0,L2.STEREO_LAYOUT_LEFT_RIGHT=1,L2.STEREO_LAYOUT_TOP_BOTTOM=2,L2),M2={},ama=(M2.FORMAT_STREAM_TYPE_UNKNOWN=0,M2.FORMAT_STREAM_TYPE_OTF=3,M2);g.v(iH,g.Q);iH.prototype.ra=function(){this.i&&(this.i=this.i.onload=null);g.Q.prototype.ra.call(this)};g.k=g.lH.prototype;g.k.getHeight=function(){return this.height};
g.k.iH=ba(0);g.k.fB=function(){return this.u};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.hv=function(a){var b=this.fB()-1;return g.Mf(0===this.i?Math.round(a*this.u/this.videoLength):Math.round(1E3*a/this.i),0,b)};
g.k.Sr=function(){return this.u-1};
g.k.kz=function(){return this.u?0:-1};
g.k.wE=function(){};g.v(mH,iH);mH.prototype.l=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.G(e-1,d,a[e],b);(this.K||180>f.getHeight())&&c.push(f)}return c};
mH.prototype.G=function(a,b,c,d){return new g.lH(a,b,c,d)};g.v(nH,g.lH);g.k=nH.prototype;g.k.fB=function(){return this.l.getNumberOfSegments()};
g.k.hv=function(a){var b=this.rows*this.columns*this.G,c=this.l,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.k.Sr=function(){return this.l.getLastSegmentNumber()};
g.k.kz=function(){return this.l.getFirstSegmentNumber()};
g.k.wE=function(a){this.l=a};g.v(oH,mH);oH.prototype.l=function(a,b){return mH.prototype.l.call(this,"$N|"+a,b)};
oH.prototype.G=function(a,b,c){return new nH(a,b,c,this.isLive)};g.v(g.rH,g.Q);g.k=g.rH.prototype;g.k.T=function(){return this.B};
g.k.Z=function(a){return g.S(this.B.experiments,a)};
g.k.Xe=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.TI=function(){this.Ha()||(this.i.u||this.i.unsubscribe("refresh",this.TI,this),this.rG(-1))};
g.k.rG=function(a){if(!this.isLivePlayback||!this.G||"fairplay"!=this.G.flavor){var b=ME(this.i,this.MC);if(0<b.length&&(this.W("cuepointupdated",b,a),this.MC+=b.length,GH(this)&&g.CH(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Ja("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs),"start"===c.event&&(c=c.startSecs,this.Wz.start=this.Sp,this.Wz.end=c+3)}}};
g.k.Je=function(){var a={};this.l&&(a.fmt=this.l.kc(),this.J&&this.J.kc()!=this.l.kc()&&(a.afmt=this.J.kc()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.nf&&(a.infringe=1);this.Id&&(a.splay=1);var b=LH(this);b&&(a.live=b);this.pk&&(a.autoplay=1);this.BF&&(a.sdetail=this.BF);this.va&&(a.partnerid=this.va);this.osid&&(a.osid=this.osid);return a};
g.k.oh=function(){if(this.cotn)return null;var a=g.EG(this.B)||this.Z("web_l3_storyboard");if(!this.mf)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.mf=new mH(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=Kb(this.i.i).index)&&(this.mf=new oH(b.spec,this.i.isLive,c,a))}else this.Gp?this.mf=new mH(this.Gp,this.lengthSeconds,void 0,!1,a):this.Oo&&this.i&&
(b=Kb(this.i.i).index)&&(this.mf=new oH(this.Oo,this.i.isLive,b,a));return this.mf};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Gp||this.Oo};
g.k.getMinSeekableTime=function(){return this.i&&!isNaN(this.i.getMinSeekableTime())?this.i.getMinSeekableTime():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.i&&this.l){var b=this.i.i[this.l.id];if(!b)return null;var c=b.index.getSegmentNumberForTime(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.Ha()&&!(!this.videoId&&!this.Ah)};
g.k.isLoaded=function(){return sH(this)&&!this.xc&&!this.Gi};
g.k.Ke=function(a){if(30==this.va)return(a=this.Bb["default.jpg"])?a:this.videoId?g.ti("//docs.google.com/vt",{id:this.videoId,authuser:this.nF,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Bb[a];return b||this.B.K||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:yG(this.B,this.videoId,a)};
g.k.Sh=function(){return this.isLivePlayback||this.Le||this.Fi||!(!this.liveUtcStartSeconds||!this.uf)};
g.k.isOtf=function(){return!!this.i&&(this.i.isOtf||!this.Le&&!this.isLivePlayback&&this.i.u)};
g.k.getAvailableAudioTracks=function(){return this.u?0<this.u.getAvailableAudioTracks().length?this.u.getAvailableAudioTracks():this.Bo||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.J&&!UD(this.J))return g.gb(this.getAvailableAudioTracks(),function(d){return d.id==a.J.id})||this.vj;
if(this.Bo){if(!this.zj)for(var b=g.q(this.Bo),c=b.next();!c.done;c=b.next())if(c=c.value,c.Jc.getIsDefault()){this.zj=c;break}return this.zj||this.vj}return this.vj};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getPlaylistId=function(){return null};
g.k.fb=function(){return this};
g.k.Im=function(){return this.B.getVideoUrl(this.videoId)};
g.k.isAd=function(){return!!this.adFormat};
g.k.Ve=function(){return this.oauthToken||this.B.dd};
g.k.iD=function(){return this.Ai||this.Vb};
g.k.Gu=function(){return this.dd||this.Vb};
g.k.useInnertubeDrmService=function(){if(!(this.G&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.G.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.G.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.G.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForWidevine||a||b)};
g.k.Ja=function(a,b,c){this.W("ctmp",a,b,c)};
g.k.ra=function(){g.Q.prototype.ra.call(this);delete this.Ik;this.Kk=null;delete this.cQ;delete this.accountLinkingConfig;delete this.i;this.u=this.playerResponse=this.watchNextResponse=null;this.Bh=this.adaptiveFormats="";delete this.botguardData;this.Wo={};this.suggestions=null};eI.prototype.It=function(){return!1};
eI.prototype.Ea=function(){return function(){return null}};var gI=null;g.v(fI,g.Q);fI.prototype.Zs=function(a){return this.i.hasOwnProperty(a)?this.i[a].Zs():{}};
g.Ha("ytads.bulleit.getVideoMetadata",function(a){return hI().Zs(a)},void 0);
g.Ha("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=hI();c=dna(c);null!==c&&d.W(c,{queryId:a,viewabilityString:b})},void 0);g.v(kI,eI);g.k=kI.prototype;g.k.Kq=function(){return!0};
g.k.Kn=function(){return!1};
g.k.isSkippable=function(){return null!=this.xa};
g.k.getVideoUrl=function(){return this.ma};
g.k.It=function(){return!0};g.v(sI,eI);sI.prototype.Kq=function(){return!0};
sI.prototype.Kn=function(){return!1};
sI.prototype.It=function(){return!0};
sI.prototype.Ea=function(){return function(){return g.cg("video-ads")}};lna.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var kHa={eV:"FINAL",qV:"AD_BREAK_LENGTH",rV:"AD_CPN",sV:"AH",tV:"AD_MT",uV:"ASR",wV:"AW",tW:"NM",uW:"NX",vW:"NY",BW:"CONN",NW:"CPN",RY:"DV_VIEWABILITY",eZ:"ERRORCODE",hZ:"ERROR_MSG",jZ:"EI",MZ:"GOOGLE_VIEWABILITY",b_:"IAS_VIEWABILITY",R_:"LACT",h0:"LIVE_TARGETING_CONTEXT",t0:"I_X",u0:"I_Y",Z1:"MT",f2:"MIDROLL_POS",g2:"MIDROLL_POS_MS",j2:"MOAT_INIT",k2:"MOAT_VIEWABILITY",Y3:"P_H",Z3:"PV_H",a4:"PV_W",b4:"P_W",h4:"TRIGGER_TYPE",Q4:"SDKV",E5:"SLOT_POS",S5:"SURVEY_LOCAL_TIME_EPOCH_S",R5:"SURVEY_ELAPSED_MS",
ON:"VIS",S6:"VIEWABILITY",T6:"VED",Y6:"VOL",b7:"WT",v7:"YT_ERROR_CODE"};var una=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];BI.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.yq(a.baseUrl,pna(b,d,c)),f;if(a.headers)for(var h=g.q(a.headers),l=h.next();!l.done;l=h.next())switch(l.value.headerType){case "USER_AUTH":var m=this.Ve();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.i();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.ou(e,void 0,d,f)}catch(p){}};g.v(CI,BI);CI.prototype.Ve=function(){return this.oo?this.oo.Ve():""};
CI.prototype.i=function(){return this.oo?this.oo.T().pageId:""};DI.prototype.send=function(a,b,c){try{var d=a.match(gi);if("https"===d[1])var e=a;else d[1]="https",e=ei("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=xq(a);e=[];fs(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}));this.Qn.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(h){}};g.v(yna,g.E);g.v(VI,g.Q);g.k=VI.prototype;g.k.Zs=function(){return{}};
g.k.Xx=function(){};
g.k.Zc=function(a){this.Oi();this.W(a)};
g.k.Oi=function(){Ena(this,this.ma,3);this.ma=[]};
g.k.getDuration=function(){return this.I.getDuration(2,!1)};
g.k.Jm=function(){var a=this.l;EI(a)||!NI(a,"impression")&&!NI(a,"start")||NI(a,"abandon")||NI(a,"complete")||NI(a,"skip")||(GI(a)?MI(a,"pause"):HI(a,"pause"))};
g.k.Km=function(){this.xa||this.G||this.wf()};
g.k.dh=function(){II(this.l,this.getDuration())};
g.k.ag=function(){var a=this.l;!NI(a,"impression")||NI(a,"skip")||NI(a,"complete")||MI(a,"abandon")};
g.k.Lm=function(){var a=this.l;GI(a)?HI(a,"skip"):!NI(a,"impression")||NI(a,"abandon")||NI(a,"complete")||HI(a,"skip")};
g.k.wf=function(){if(!this.G){var a=this.nw();this.l.u.AD_CPN=a;a=this.l;if(GI(a)){var b=a.i.getCurrentTime(2,!1);LI(a,"impression",b,0)}else HI(a,"impression");HI(a,"start");EI(a)||a.i.isFullscreen()&&MI(a,"fullscreen");this.G=!0}};
g.k.Og=function(a){a=a||"";var b="",c="",d="";yI(this.I)&&(b=this.I.sb(2).state,this.I.md()&&(c=this.I.md().eh(),null!=this.I.md().Ki()&&(d=this.I.md().Ki())));var e=this.l;e.u=xI(e.u,tna(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));HI(e,"error")};
g.k.xf=function(){};
g.k.IJ=function(){this.W("adactiveviewmeasurable")};
g.k.JJ=function(){this.W("adfullyviewableaudiblehalfdurationimpression")};
g.k.KJ=function(){this.W("adoverlaymeasurableimpression")};
g.k.LJ=function(){this.W("adoverlayunviewableimpression")};
g.k.MJ=function(){this.W("adoverlayviewableendofsessionimpression")};
g.k.NJ=function(){this.W("adoverlayviewableimmediateimpression")};
g.k.OJ=function(){this.W("adviewableimpression")};
g.k.dispose=function(){this.Ha()||(this.Oi(),this.u.unsubscribe("adactiveviewmeasurable",this.IJ,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.JJ,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.KJ,this),this.u.unsubscribe("adoverlayunviewableimpression",this.LJ,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.MJ,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.NJ,this),this.u.unsubscribe("adviewableimpression",
this.OJ,this),delete this.u.i[this.ad.K],g.Q.prototype.dispose.call(this))};
g.k.nw=function(){var a=this.I.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.KG=function(){return""};g.v(XI,eI);XI.prototype.Kq=function(){return!0};
XI.prototype.Kn=function(){return!1};g.v(YI,QI);g.v(ZI,VI);g.k=ZI.prototype;g.k.Up=function(){0<this.i&&this.wf()};
g.k.wf=function(){var a=this;this.Gb=new g.J(function(){a.dh();for(var b=g.q(a.B.i.completionCommands||[]),c=b.next();!c.done;c=b.next())a.C.executeCommand(c.value,a.macros);a.Zc("adended")},this.i,this);
g.F(this,this.Gb);this.Gb.start();WI(this,[new YI(this.B.i,this.macros)]);VI.prototype.wf.call(this)};
g.k.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandoned")};
g.k.dh=function(){VI.prototype.dh.call(this)};
g.k.Zc=function(a){this.Gb&&this.Gb.stop();VI.prototype.Zc.call(this,a)};g.v($I,eI);$I.prototype.Kq=function(){return!0};
$I.prototype.Kn=function(){return!1};g.v(aJ,eI);aJ.prototype.Kq=function(){return!0};
aJ.prototype.Kn=function(){return!1};g.v(bJ,eI);bJ.prototype.Kq=function(){return!0};
bJ.prototype.Kn=function(){return!1};Gna.prototype.create=function(a,b){return a instanceof kI?this.G.create(a,b):a instanceof sI?this.B.create(a,b):a instanceof XI?this.i.create(a,b):a instanceof bJ?this.C.create(a,b):a instanceof aJ?this.u.create(a,b):a instanceof $I?this.l.create(a,b):null};g.v(cJ,VI);g.k=cJ.prototype;g.k.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandoned")};
g.k.Jm=function(){VI.prototype.Jm.call(this);this.W("adpause",2)};
g.k.Km=function(){VI.prototype.Km.call(this);this.W("adplay",1)};
g.k.wf=function(){VI.prototype.wf.call(this);this.i.stop();this.B.N(this.I,g.Iz("bltplayback"),this.xL);var a=new g.Fz(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.I.Dd([a],2);this.W("adplay",1)};
g.k.dh=function(){VI.prototype.dh.call(this);this.Zc("adended")};
g.k.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")};
g.k.Up=function(){AI(this.I,!1);var a=this.C.l||{};a.autoplay="1";this.I.cueVideoByPlayerVars(a,2);this.i.start();this.I.playVideo(2);this.I.Na("onAdIntroStateChange",1)};
g.k.Zc=function(a){this.i.stop();AI(this.I,!0);"adabandoned"!=a&&this.I.Na("onAdComplete");this.I.Na("onAdEnd");this.W(a);this.I.Na("onAdIntroStateChange",0)};
g.k.xL=function(a){"bltcompletion"==a.getId()&&(this.I.df("bltplayback",2),II(this.l,this.getDuration()))};g.v(Hna,QI);g.v(dJ,VI);g.k=dJ.prototype;
g.k.Up=function(){if(this.C)for(var a=g.q(this.C.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.l={slotId:SZ(b.C.get(),"SLOT_TYPE_IN_PLAYER"),ob:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Wb:void 0,uc:[],pc:[],gb:"surface",Ia:new WY([])};qoa(b.u(),b.l);var c=b.u();b=b.l;c=g.q(c.Ed);for(var d=c.next();!d.done;d=c.next())d.value.gj(b)}0>=this.K&&(g.Sr(Error("durationMs was specified incorrectly with a value of: "+this.K)),this.dh());this.wf();this.I.addEventListener("progresssync",this.Y)};
g.k.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandonedreset")};
g.k.wf=function(){var a=this.I.T();VI.prototype.wf.call(this);this.i=g.S(this.I.T().experiments,"disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.B=this.i+this.K/1E3;g.bG(a)?this.I.Na("onAdMessageChange",{renderer:this.J.i,startTimeSecs:this.i}):WI(this,[new Hna(this.J.i)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Ix(),c=this.J.i.videoAdBreakOffsetMsInt64;b&&g.Bv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.B),
timeToAdBreakSec:Math.ceil(this.B-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.C)for(this.U=!0,a=g.q(this.C.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.l?b.i?R("Received AdNotify started event before another one exited"):(b.i=b.l,roa(b.u(),b.i)):R("Received AdNotify started event without start requested event");g.U(this.I.sb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Ix(),c=this.J.i.videoAdBreakOffsetMsInt64,b&&g.Bv("adNotifyFailure",{clientScreenNonce:b,
adMediaTimeMs:Math.floor(1E3*this.B),timeToAdBreakSec:Math.ceil(this.B-this.i),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.dh())};
g.k.dh=function(){VI.prototype.dh.call(this);this.Zc("adended")};
g.k.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")};
g.k.Zc=function(a){this.I.removeEventListener("progresssync",this.Y);this.Oi();this.W(a);Jna(this)};
g.k.dispose=function(){this.I.removeEventListener("progresssync",this.Y);Jna(this);VI.prototype.dispose.call(this)};
g.k.Oi=function(){g.bG(this.I.T())?this.I.Na("onAdMessageChange",{renderer:null,startTimeSecs:this.i}):VI.prototype.Oi.call(this)};g.v(Kna,QI);gJ.prototype.sendAdsPing=function(a){this.C.send(a,Vna(this),{})};
gJ.prototype.ld=function(a){var b=this;if(a){var c=Vna(this);Array.isArray(a)?a.forEach(function(d){return b.l.executeCommand(d,c)}):this.l.executeCommand(a,c)}};hJ.prototype.get=function(){return this.value};
g.v(iJ,hJ);iJ.prototype.Tb=function(){return"metadata_type_action_companion_ad_renderer"};
g.v(jJ,hJ);jJ.prototype.Tb=function(){return"metadata_type_ad_next_params"};
g.v(kJ,hJ);kJ.prototype.Tb=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.v(lJ,hJ);lJ.prototype.Tb=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.v(mJ,hJ);mJ.prototype.Tb=function(){return"metadata_type_image_companion_ad_renderer"};
g.v(nJ,hJ);nJ.prototype.Tb=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.v(oJ,hJ);oJ.prototype.Tb=function(){return"metadata_type_ad_info_ad_metadata"};
g.v(pJ,hJ);pJ.prototype.Tb=function(){return"metadata_ad_video_is_listed"};
g.v(qJ,hJ);qJ.prototype.Tb=function(){return"metadata_type_ad_placement_config"};
g.v(rJ,hJ);rJ.prototype.Tb=function(){return"metadata_type_ad_pod_info"};
g.v(sJ,hJ);sJ.prototype.Tb=function(){return"metadata_type_ad_video_id"};
g.v(tJ,hJ);tJ.prototype.Tb=function(){return"metadata_type_ad_video_url"};
g.v(uJ,hJ);uJ.prototype.Tb=function(){return"metadata_type_content_cpn"};
g.v(vJ,hJ);vJ.prototype.Tb=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.v(wJ,hJ);wJ.prototype.Tb=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.v(xJ,hJ);xJ.prototype.Tb=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.v(yJ,hJ);yJ.prototype.Tb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.v(zJ,hJ);zJ.prototype.Tb=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.v(AJ,hJ);AJ.prototype.Tb=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.v(BJ,hJ);BJ.prototype.Tb=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.v(CJ,hJ);CJ.prototype.Tb=function(){return"metadata_type_linked_in_player_layout_id"};
g.v(DJ,hJ);DJ.prototype.Tb=function(){return"metadata_type_linked_in_player_slot_id"};
g.v(EJ,hJ);EJ.prototype.Tb=function(){return"metadata_type_player_bytes_callback"};
g.v(FJ,hJ);FJ.prototype.Tb=function(){return"metadata_type_player_bytes_callback_ref"};
g.v(GJ,hJ);GJ.prototype.Tb=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.v(HJ,hJ);HJ.prototype.Tb=function(){return"metadata_type_sub_layouts"};
g.v(IJ,hJ);IJ.prototype.Tb=function(){return"metadata_type_cue_point"};
g.v(JJ,hJ);JJ.prototype.Tb=function(){return"metadata_type_video_length_seconds"};
g.v(KJ,hJ);KJ.prototype.Tb=function(){return"metadata_type_player_vars"};
g.v(LJ,hJ);LJ.prototype.Tb=function(){return"metadata_type_sodar_extension_data"};
g.v(MJ,hJ);MJ.prototype.Tb=function(){return"metadata_type_layout_enter_ms"};
g.v(NJ,hJ);NJ.prototype.Tb=function(){return"metadata_type_layout_exit_ms"};
g.v(OJ,hJ);OJ.prototype.Tb=function(){return"metadata_type_media_sub_layout_index"};
g.v(PJ,hJ);PJ.prototype.Tb=function(){return"metadata_type_dai"};
g.v(QJ,hJ);QJ.prototype.Tb=function(){return"metadata_type_ad_intro"};
g.v(RJ,hJ);RJ.prototype.Tb=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.v(SJ,hJ);SJ.prototype.Tb=function(){return"metadata_type_drift_recovery_ms"};
g.v(TJ,hJ);TJ.prototype.Tb=function(){return"metadata_type_fulfilled_layout"};
g.v(UJ,hJ);UJ.prototype.Tb=function(){return"metadata_type_ad_break_request_data"};
g.v(VJ,hJ);VJ.prototype.Tb=function(){return"metadata_type_ad_break_response_data"};
g.v(WJ,hJ);WJ.prototype.Tb=function(){return"metadata_type_remote_slots_data"};
g.v(XJ,hJ);XJ.prototype.Tb=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.v(YJ,hJ);YJ.prototype.Tb=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.v(ZJ,hJ);ZJ.prototype.Tb=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.v($J,hJ);$J.prototype.Tb=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.v(aK,hJ);aK.prototype.Tb=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};boa.prototype.ld=function(a){this.i.ld(a)};g.v(cK,g.Q);cK.prototype.getProgressState=function(){return this.u};
cK.prototype.start=function(){this.B=Date.now();doa(this,{current:this.i/1E3,duration:this.l/1E3});this.Gb.start()};
cK.prototype.stop=function(){this.Gb.stop()};g.v(dK,QI);g.v(eK,VI);g.k=eK.prototype;g.k.Up=function(){this.wf()};
g.k.wf=function(){var a=this.C.i;g.bG(this.I.T())?(g.S(this.I.T().experiments,"validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!bK(a)?(g.Tx(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),this.Zc("aderror")):(a=coa(this.J,a),this.I.Na("onAdInfoChange",a)),this.K=Date.now(),this.i&&this.i.start()):WI(this,[new dK(a)]);VI.prototype.wf.call(this)};
g.k.getDuration=function(){return this.C.l};
g.k.Jm=function(){VI.prototype.Jm.call(this);this.i&&this.i.stop()};
g.k.Km=function(){VI.prototype.Km.call(this);this.i&&this.i.start()};
g.k.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandoned")};
g.k.Lm=function(){VI.prototype.Lm.call(this);this.Zc("adended")};
g.k.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")};
g.k.Zc=function(a){this.Oi();this.W(a)};
g.k.xf=function(a){switch(a){case "skip-button":this.Lm();break;case "survey-submit":this.Zc("adended")}};
g.k.Oi=function(){g.bG(this.I.T())?(this.i&&this.i.stop(),this.I.Na("onAdInfoChange",null)):VI.prototype.Oi.call(this)};g.v(fK,QI);g.v(gK,VI);gK.prototype.Up=function(){this.wf()};
gK.prototype.wf=function(){WI(this,[new fK(this.i.i,this.macros)]);VI.prototype.wf.call(this)};
gK.prototype.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandoned")};
gK.prototype.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")};g.v(ioa,QI);g.v(joa,QI);g.v(koa,QI);g.v(jK,QI);g.v(loa,QI);g.v(moa,QI);g.v(kK,VI);g.k=kK.prototype;g.k.Zs=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.i.l,isPlaying:vna(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}};
g.k.Up=function(){if(this.i.Y)Fna(this),this.Zc("aderror");else{var a=this.i.i.legacyInfoCardVastExtension,b=this.i.B;a&&b&&this.I.T().U.add(b,{Cs:a});try{var c=this.i.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{cl(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.fc("//tpc.googlesyndication.com/sodar/%{path}");g.Ux(new g.Gv("Load Sodar Error.",d instanceof dc,d.constructor===dc,{Message:e.message,"Escaped injector basename":g.qd(c.siub),"BG vm basename":c.bgub}));if(d.constructor===dc)throw e;
}}catch(e){g.Tx(e)}AI(this.I,!1);a=jna(this.i);b=this.I.T();g.S(this.I.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.i||g.bG(b)||g.EG(b)?3:1);c=this.I.getVideoData(1);c.xg&&(a.ctrl=c.xg);c.Ff&&(a.ytr=c.Ff);c.Yk&&(a.ytrcc=c.Yk);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Gh&&(a.vss_credentials_token_type=c.Gh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.W("adunstarted",-1);!z_(this.K)&&g.bG(b)&&(b=pK(this),b=Yna(this.Aa,b,
this.i.i.adNextParams||""),b.attributionInfo=Sna(this.i.u,this.i.B||""),this.I.Na("onAdInfoChange",b));this.J?this.C.start():(this.I.cueVideoByPlayerVars(a,2),this.C.start(),this.I.playVideo(2))}};
g.k.Jm=function(){VI.prototype.Jm.call(this);this.W("adpause",2)};
g.k.Km=function(){VI.prototype.Km.call(this);this.W("adplay",1)};
g.k.wf=function(){VI.prototype.wf.call(this);this.C.stop();this.va.N(this.I,g.Iz("bltplayback"),this.yL);var a=new g.Fz(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});this.I.Dd([a],2);a=oK(this);this.B.Ga=a;if(!z_(this.K)){a=[];var b=this.I.T(),c=this.I.getVideoData(2);if(g.VF(b)||g.bG(b)){var d;(d=c&&c.isListed?{channelId:c.Fh,channelThumbnailUrl:c.rg||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null)&&this.I.Na("onAdMetadataAvailable",d)}g.bG(b)||(g.EG(b)&&!this.J&&(c&&c.videoId&&c.isListed&&c.videoId==this.i.B&&(b=c.title,d=c.author,c=c.rg,b&&d&&c?c=[new joa(b),new ioa(c),new koa(d)]:(g.Ux(new g.Gv("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),WI(this,c)),a.push(Sna(this.i.u,this.i.B||"")),c=this.i.G,null==c?c=null:(b={},c.urlEndpoint&&(b.url=c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new moa({navigationEndpoint:{urlEndpoint:b}})),
c&&a.push(c),this.i.isSkippable()&&!lI(this.i)&&(c=pK(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=soa(this)),a.push(new loa(c)))),c=pK(this),a.push(new jK(c)),WI(this,a))}this.I.isMuted()&&(a=this.l,c=this.I.isMuted(),GI(a)||HI(a,c?"mute":"unmute"));this.W("adplay",1);if(null!==this.X){a=null!==this.B.i.getVideoData(1)?this.B.i.getVideoData(1).clientPlaybackNonce:"";c=ooa(this);b=this.i;d=noa(this);for(var e=g.q(this.X.listeners),f=e.next();!f.done;f=e.next()){f=
f.value;var h=c,l=b,m=d,n=[],p=l.B,r=l.getVideoUrl();p&&n.push(new sJ(p));r&&n.push(new tJ(r));(p=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new vJ(p)),(p=p.elementId)&&n.push(new CJ(p))):R("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");l.i.adNextParams&&n.push(new jJ(l.i.adNextParams||""));(p=l.G)&&n.push(new kJ(p));(p=mz(f.J.get(),2))?(n.push(new oJ({channelId:p.Fh,channelThumbnailUrl:p.rg,channelTitle:p.author,videoTitle:p.title})),n.push(new pJ(p.isListed))):
R("Expected meaningful PlaybackData on ad started.");n.push(new rJ(l.u));n.push(new JJ(l.l));n.push(new uJ(a));n.push(new FJ({current:this}));p=l.La;null!=p.kind&&n.push(new qJ(p));(p=l.X)&&n.push(new WJ(p));void 0!==m&&n.push(new XJ(m));f.i?R(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):poa(f,h,n,!0,l.i.adLayoutLoggingData)}}this.U.Nn=this;this.I.Na("onAdStart",oK(this));a=g.q(this.i.i.impressionCommands||[]);for(c=a.next();!c.done;c=
a.next())this.B.executeCommand(c.value,this.macros)};
g.k.yL=function(a){"bltcompletion"==a.getId()&&(this.I.df("bltplayback",2),II(this.l,this.getDuration()),nK(this,"adended"),P1(this.U,this))};
g.k.dh=function(){VI.prototype.dh.call(this);this.Zc("adended");for(var a=g.q(this.i.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.B.executeCommand(b.value,this.macros)};
g.k.ag=function(){VI.prototype.ag.call(this);this.Zc("adabandoned")};
g.k.RC=function(){var a=this.l;EI(a)||MI(a,"clickthrough")};
g.k.fu=function(){this.Lm()};
g.k.Lm=function(){VI.prototype.Lm.call(this);this.Zc("adended")};
g.k.Og=function(a){VI.prototype.Og.call(this,a);this.Zc("aderror")};
g.k.Zc=function(a){this.C.stop();z_(this.K)||this.Oi();AI(this.I,!0);"adabandoned"!=a&&this.I.Na("onAdComplete");nK(this,a);P1(this.U,this);this.I.Na("onAdEnd",oK(this));this.W(a)};
g.k.Oi=function(){var a=this.I.T();g.bG(a)&&(g.EG(a)||g.S(a.experiments,"enable_topsoil_wta_for_halftime")||g.S(a.experiments,"enable_topsoil_wta_for_halftime_live_infra")||g.bG(a))?this.I.Na("onAdInfoChange",null):VI.prototype.Oi.call(this)};
g.k.Dl=function(){this.Y||this.Xx()};
g.k.Xx=function(){this.WH&&this.I.playVideo()};
g.k.WH=function(){return 2==this.I.getPlayerState(2)};
g.k.xf=function(a){if(!z_(this.K)){var b=this.l;if(yI(b.i))switch(a){case "ad-title":b.i.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.i.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.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.Y||this.Xx();break;case "ad-info-icon-button":(this.Y=this.WH())||this.I.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.I.T().protocol+"://"+g.wG(this.I.T())+"/channel/"+this.i.Aa;g.iK(a);break;case "ad-title":this.I.pauseVideo();g.iK(this.I.getVideoUrl());break;case "visit-advertiser":this.I.pauseVideo();if(g.EG(this.I.T())&&(a=this.i.G)){b=this.l;var c=a.loggingUrls||null;if(c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&KI(b,d.baseUrl,{},d.headers||[])}a.urlEndpoint&&a.urlEndpoint.url&&g.iK(a.urlEndpoint.url)}a=this.l;EI(a)||
MI(a,"clickthrough");break;case "skip-button":this.Lm()}}};
g.k.KG=function(a,b){if(this.i.Y)return Fna(this),this.Zc("aderror"),"";if(!Number.isFinite(a))return g.Tx(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Tx(Error("Start time is not earlier than end time")),"";var c=1E3*this.i.l,d=jna(this.i);d=this.I.hq(d,2,c,a,b);a+c>b&&this.I.Cr(d,b-a);return d};
g.k.dispose=function(){vna(this.I)&&!this.J&&this.I.stopVideo(2);nK(this,"adabandoned");P1(this.U,this);VI.prototype.dispose.call(this)};qK.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.i[b];c?b=c:(c={Is:null,fI:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.fI))if(b.fI=c,b.Is){if(c<b.Is.end){a:{c=b.Is;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.durationSecs;a=a<c.start?null:c.end<=a?null:a}null!==a&&(b.Is.end=a,this.l.SI(a))}}else if(a=
voa(a,this.u))c=a.FP,b.Is=a.oO,this.l.xC(c)};
qK.prototype.updateTime=function(){};sK.prototype.Rf=function(a){var b=this.i;g.Ig(function(){return b.Rf(a,1)})};vK.prototype.Bs=function(a,b,c,d,e){Eoa(this);var f=this.I.getVideoData(1),h=this.I.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.l=a;if(0>=d)Eoa(this);else if(this.actionType=this.u?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.B=c+1===d,"unknown_type"!==this.actionType)this.cg=!0,
a={adBreakType:Joa(this.l),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:this.videoStreamType},"ad_to_video"===this.actionType?(this.contentCpn&&(a.targetCpn=this.contentCpn),this.videoId&&(a.targetVideoId=this.videoId)):(this.adCpn&&(a.targetCpn=this.adCpn),this.adVideoId&&(a.targetVideoId=this.adVideoId)),this.adFormat&&(a.adType=this.adFormat),this.contentCpn&&(a.clientPlaybackNonce=this.contentCpn),this.videoId&&(a.videoId=this.videoId),
this.adCpn&&(a.adClientPlaybackNonce=this.adCpn),this.adVideoId&&(a.adVideoId=this.adVideoId),FA(a,this.actionType)};
vK.prototype.reset=function(){return new vK(this.I)};var N2={},O2=(N2.BUFFERING="buffering-mode",N2.CUED="cued-mode",N2.ENDED="ended-mode",N2.PAUSED="paused-mode",N2.PLAYING="playing-mode",N2.SEEKING="seeking-mode",N2.UNSTARTED="unstarted-mode",N2);var BKa,P2,Koa;
BKa={JV:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",QV:"AUTHENTICATION_MALFORMED",RV:"AUTHENTICATION_MISSING",WV:"BAD_REQUEST",hW:"CAST_SESSION_DEVICE_MISMATCHED",iW:"CAST_SESSION_VIDEO_MISMATCHED",jW:"CAST_TOKEN_EXPIRED",kW:"CAST_TOKEN_FAILED",lW:"CAST_TOKEN_MALFORMED",mW:"CGI_PARAMS_MALFORMED",nW:"CGI_PARAMS_MISSING",GY:"DEVICE_FALLBACK",fZ:"GENERIC_WITH_LINK_AND_CPN",gZ:"LICENSE",iZ:"VIDEO_UNAVAILABLE",tZ:"FORMAT_UNAVAILABLE",HZ:"GEO_FAILURE",WZ:"HTML5_AUDIO_RENDERER_ERROR",XZ:"GENERIC_WITHOUT_LINK",
YZ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",ZZ:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",a_:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",l_:"INVALID_DRM_MESSAGE",r4:"PURCHASE_NOT_FOUND",s4:"PURCHASE_REFUNDED",B4:"RENTAL_EXPIRED",J4:"RETRYABLE_ERROR",W4:"SERVER_ERROR",I5:"STOPPED_BY_ANOTHER_PLAYBACK",L5:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",M5:"STREAMING_NOT_ALLOWED",N5:"STREAM_LICENSE_NOT_FOUND",Z5:"TOO_MANY_REQUESTS",a6:"TOO_MANY_REQUESTS_WITH_LINK",b6:"TOO_MANY_STREAMS_PER_ENTITLEMENT",
c6:"TOO_MANY_STREAMS_PER_USER",B6:"UNSUPPORTED_DEVICE",N6:"VIDEO_FORBIDDEN",Q6:"VIDEO_NOT_FOUND"};P2={};
g.eO=(P2.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",P2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",P2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",P2.LICENSE="Sorry, there was an error licensing this video.",P2.VIDEO_UNAVAILABLE=
"Video unavailable",P2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",P2.GEO_FAILURE="This video isn't available in your country.",P2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",P2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",P2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",P2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
P2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",P2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",P2.PURCHASE_NOT_FOUND="This video requires payment.",P2.PURCHASE_REFUNDED="This video's purchase has been refunded.",P2.RENTAL_EXPIRED="This video's rental has expired.",P2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",P2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
P2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",P2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",P2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",P2.SERVER_ERROR="There was an internal server error. Please try again later.",P2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",P2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
P2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",P2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",P2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",P2.TOO_MANY_REQUESTS="Please log in to watch this video.",P2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",P2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
P2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",P2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",P2.VIDEO_FORBIDDEN="Access to this video is forbidden.",P2.VIDEO_NOT_FOUND="This video can not be found.",P2);
Koa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.v(wK,g.E);g.k=wK.prototype;g.k.tv=function(){return this.l};
g.k.fq=function(a){var b="";a&&(Noa(this,a),b=a.i);if(!this.vf()||b)b&&this.vf()!==b&&this.wv(b),vEa||a&&a.l||this.load(),this.G||(this.addEventListener("volumechange",this.tG),this.G=!0)};
g.k.qv=function(){var a=this.ue();a=window.MediaSource?new sE(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new sE(new window.WebKitMediaSource,void 0,!1):new sE(void 0,a,!1);this.fq(a.Pt);return a};
g.k.playVideo=function(){var a=this;this.ck()&&this.seekTo(0);!this.vf()&&this.l&&(g.Sr(Error("playVideo without src")),this.wv(this.l.i),this.l.l||this.load());var b=this.play();!b&&xEa&&qO&&7<=(dI||0)&&g.Xt(this,"playing",function(){g.ms(function(){Moa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.eh()&&(yEa&&qO&&4>dI&&(a=Math.max(.1,a)),this.by(a))};
g.k.stopVideo=function(){this.vf()&&(wEa&&qt&&0<this.getCurrentTime()&&this.seekTo(0),this.Tx(),this.load(),Noa(this,null))};
g.k.Fq=function(){var a=this.Nf();return 0<iE(a)&&this.getDuration()?hE(a,this.getCurrentTime()):0};
g.k.Cb=function(){try{var a=this.Vp();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:eE(this.Ko(),",",3),vbu:eE(this.Nf()),vpa:""+ +this.Xl(),vsk:""+ +this.Tr(),ven:""+ +this.ck(),vpr:""+this.getPlaybackRate(),vrs:""+this.eh(),vns:""+this.yw(),vec:""+this.Ki(),vemsg:this.Yd(),vvol:""+this.getVolume(),vdom:""+ +this.JB(),vsrc:""+ +!!this.vf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.u.Ra(a,b,!1,this);this.QA(a)};
g.k.removeEventListener=function(a,b){this.u.fc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.u.dispatchEvent(a)};
g.k.NA=function(){this.C=!1};
g.k.MA=function(){this.C=!0;this.jr(!0)};
g.k.tG=function(){this.C&&!this.xw()&&this.jr(!0)};
g.k.ra=function(){this.G&&this.removeEventListener("volumechange",this.tG);g.E.prototype.ra.call(this)};
var vEa=!1,wEa=!0,xEa=!0,yEa=!0;g.k=g.BK.prototype;g.k.getData=function(){return this.stateData};
g.k.tc=function(){return g.U(this,8)&&!g.U(this,512)&&!g.U(this,64)&&!g.U(this,2)};
g.k.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)};
g.k.isError=function(){return g.U(this,128)};
g.k.isSuspended=function(){return g.U(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.v(LK,g.Q);g.k=LK.prototype;g.k.Po=function(){var a=this.i;return a.l instanceof kI||a.l instanceof sI||a.l instanceof mI};
g.k.Hz=function(){return this.i.l.Kn()};
g.k.aF=function(){return this.i.i};
g.k.Iz=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.bF=function(){return tI(this.i)};
g.k.qH=function(a){if(!Lz(a)){this.U&&(this.va=this.I.isAtLiveHead(),this.ma=Math.ceil(g.Sa()/1E3));var b=new sK(this.Lf);a=yoa(a);b.Rf(a)}this.cF()};
g.k.TH=function(){return!0};
g.k.Rm=function(){return this.J instanceof sI};
g.k.Lt=function(){return this.J instanceof kI};
g.k.cF=function(){var a=this.Lf;this.TH()&&(a.l&&OK(a,!1),a.l=this,this.Po()&&vqa(a));if(!this.i.C.hasOwnProperty("ad_placement_start")){a=g.q(this.i.X);for(var b=a.next();!b.done;b=a.next())Soa(b.value);this.i.C.ad_placement_start=!0}Foa(this.C);this.CJ()};
g.k.CJ=function(){this.J?this.Ur(this.J):PK(this)};
g.k.bp=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ci(0);PK(this,a,b)};
g.k.FI=function(){this.bp()};
g.k.sQ=function(){HI(this.l.l,"active_view_measurable")};
g.k.tQ=function(){var a=this.l.l;EI(a)||Cna(a)||HI(a,"active_view_fully_viewable_audible_half_duration")};
g.k.wQ=function(){};
g.k.xQ=function(){};
g.k.yQ=function(){};
g.k.zQ=function(){};
g.k.CQ=function(){var a=this.l.l;EI(a)||Cna(a)||HI(a,"active_view_viewable")};
g.k.aH=function(){return this.Lt()?[this.Aw()]:[]};
g.k.Dc=function(a){if(null!==this.l){this.X||(a=new g.SI(a.state,new g.BK),this.X=!0);var b=a.state;if(g.UI(a,2))this.l.dh();else{var c=a;(g.S(this.I.T().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.tc()&&!c.Zm.tc():c.state.tc())?(Ioa(this.C),this.l.Km()):b.isError()?this.l.Og(b.getData().errorCode):g.UI(a,4)&&(this.Y||this.l.Jm())}if(null!==this.l){if(g.UI(a,16)&&(b=this.l.l,!(EI(b)||.5>b.i.getCurrentTime(2,!1)&&!g.S(b.i.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=
b.l;if(c.It()){var d=g.S(b.J.i.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");vq(c.K,d)}b.l.J.seek=!0}0>TI(a,4)&&!(0>TI(a,2))&&(b=this.l.l,EI(b)||(GI(b)?MI(b,"resume"):HI(b,"resume")));!g.S(this.I.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.UI(a,512)&&!g.JK(a.state)&&Goa(this.C)}}};
g.k.kb=function(){return this.daiEnabled?Roa(this):!1};
g.k.resume=function(){this.l&&this.l.Xx()};
g.k.tm=function(){this.l&&this.l.Zc("adended")};
g.k.Rj=function(){this.tm()};
g.k.ci=function(a){this.Lf.ci(a)};
g.k.zL=function(a){this.Lf.i.Na("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.l.xf(a)};
g.k.XG=function(){return 0};
g.k.ZG=function(){return 1};
g.k.ID=function(a){this.daiEnabled&&this.i.J&&this.i.i.start<=a&&a<NK(this)&&this.I.ao(a,this.i.i.end)};
g.k.Ur=function(a){g.ef(this.l);this.l=a=this.On.create(a,wI(rna(this.i)),this.i.i.i);a.subscribe("adabandoned",g.Qa(this.bp,!0),this);a.subscribe("adabandonedreset",g.Qa(this.bp,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.sQ,this);a.subscribe("adended",this.bp,this);a.subscribe("aderror",this.FI,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.tQ,this);a.subscribe("adoverlaymeasurableimpression",this.wQ,this);a.subscribe("adoverlayunviewableimpression",this.xQ,this);
a.subscribe("adoverlayviewableendofsessionimpression",this.yQ,this);a.subscribe("adoverlayviewableimmediateimpression",this.zQ,this);a.subscribe("adpause",this.yB,this);a.subscribe("adplay",this.yB,this);a.subscribe("adunstarted",this.yB,this);a.subscribe("onAdUxUpdate",this.zL,this);a.subscribe("adviewableimpression",this.CQ,this);a.xa?a.Og("ui_unstable"):a.Up();Toa(this,!1)};
g.k.yB=function(a){this.ci(a)};
g.k.Aw=function(){return this.J};
g.k.isLiveStream=function(){return this.U};
g.k.reset=function(){return new LK(this.Lf,this.I,this.C.reset(),this.i,this.Zk,this.tq,this.On,this.daiEnabled)};
g.k.ra=function(){g.ef(this.l);this.l=null;g.Q.prototype.ra.call(this)};Zoa.prototype.create=function(a){return(a.l instanceof mI?this.u:""===a.G?this.i:this.l)(a)};QK.prototype.clickCommand=function(a,b,c){c=g.Ix(void 0===c?0:c);if(!a.clickTrackingParams||!c)return!1;dy(this.client,c,g.Cx(a.clickTrackingParams),b);return!0};TK.prototype.handleResponse=function(a,b){var c,d,e;b=(null===(d=null===(c=b.Et.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars)||[];(a=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
TK.prototype.replace=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())delete this.i[c.value.encryptedTokenJarContents];fpa(this,b)};var Q2;UK.getInstance=function(){Q2=g.Ia("yt.clientLocationService.instance");Q2||(Q2=new UK,g.Ha("yt.clientLocationService.instance",Q2,void 0));return Q2};
UK.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.i?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=1E7*this.i.coords.latitude,a.client.locationInfo.longitudeE7=1E7*this.i.coords.longitude,a.client.locationInfo.horizontalAccuracyMeters=this.i.coords.accuracy,a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
UK.prototype.handleResponse=function(a){var b;a=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.i=void 0,"TVHTML5"===g.O("INNERTUBE_CLIENT_NAME")?(this.localStorage=gpa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.$s("YT_CL",JSON.stringify({R7:a}),15552E3,void 0,!0))};
UK.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.Nr("web_enable_browser_geolocation_api")&&!g.Nr("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Nr("enable_handoff_location_2fa_on_mweb")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.i=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
UK.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null===a||void 0===a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null===a||void 0===a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null===a||void 0===a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};var XK;g.v(WK,rv);WK.prototype.pw=function(a,b){a=rv.prototype.pw.call(this,a,b);return Object.assign(Object.assign({},a),this.rp)};var vpa=/[&\?]action_proxy=1/,upa=/[&\?]token=([\w-]*)/,wpa=/[&\?]video_id=([\w-]*)/,xpa=/[&\?]index=([\d-]*)/,ypa=/[&\?]m_pos_ms=([\d-]*)/,Bpa=/[&\?]vvt=([\w-]*)/,ppa="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),zpa="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),rpa={android:"ANDROID",
"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},spa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Apa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};YK.prototype.Rq=function(a){this.player.Fo().tick(a)};
YK.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return $K(this,a,b);var d=1===this.i;d&&this.Rq("a_bid_s");var e=kpa();if(null!==e)return d&&this.Rq("a_bid_f"),$K(this,a,b,e);e=lpa();d&&Zg(e,function(){c.Rq("a_bid_f")});
return e.then(function(f){return $K(c,a,b,f)})};
YK.prototype.reset=function(){this.l=this.i=1};g.v(aL,g.Q);g.k=aL.prototype;g.k.aF=function(){return this.i.i};
g.k.Iz=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.bF=function(){return tI(this.i)};
g.k.Po=function(){return!1};
g.k.Hz=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.qH=function(a){var b=this;g.S(this.u.T().experiments,"html5_pacf_enable_non_dai_live_video_ads")&&R("Fetching logic is still in use while live midroll is on PACF");if(1!==this.i.u&&2!==this.i.u){var c=[];this.Iz()||(c=yoa(a));this.i.u=1;Zg(this.C.fetch(this.i.G,{Hs:this.i.B||void 0,Td:this.i.i}).then(function(d){if(!b.Ha()){var e=c;b.u.isFullscreen();d=Dpa(b,d);var f=b.B;f.l&&d.isEmpty&&uK("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.i);d.UH||(b.i.u=2,(new sK(b.l)).Rf(e),d.isEmpty||lz(b.G,d.Uk))}},
function(){(new sK(b.l)).Rf(c);
var d=b.B;d.l&&uK("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.u&&(b.i.u=0);
b.Iz()&&nL(b.l,[])})}};
g.k.cF=function(){};
g.k.ID=function(){};var Gpa=Object.freeze([XI,$I,sI,bJ,kI]);g.v(bL,LK);g.k=bL.prototype;g.k.aH=function(){for(var a=this.u.i,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.TH=function(){return(0>=this.B?this.u.i:this.u.i.slice(this.B)).some(function(a){return a.Kq()})};
g.k.Rm=function(){return this.G instanceof sI||this.G instanceof bJ};
g.k.Lt=function(){return this.G instanceof kI||this.G instanceof $I};
g.k.CJ=function(){this.daiEnabled?yI(this.I)&&Roa(this):Fpa(this)};
g.k.Ur=function(a){var b=Epa(a);this.G&&b&&this.K!==b&&(b?vqa(this.Lf):xqa(this.Lf),this.K=b);this.G=a;this.daiEnabled&&(this.B=this.u.i.findIndex(function(c){return c===a}));
LK.prototype.Ur.call(this,a)};
g.k.Rj=function(){this.B=this.u.i.length;this.l&&this.l.Zc("adended");PK(this)};
g.k.tm=function(){this.bp()};
g.k.bp=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.ci(0),a?PK(this,a,b):Fpa(this))};
g.k.FI=function(){1==this.u.l?PK(this):this.bp()};
g.k.Aw=function(){var a=0>=this.B?this.u.i:this.u.i.slice(this.B);return 0<a.length?a[0]:null};
g.k.Po=function(){return this.K};
g.k.Hz=function(){return this.u.i.every(function(a){return a.Kn()})};
g.k.reset=function(){return new bL(this.Lf,this.I,this.C.reset(),this.i,this.Zk,this.tq,this.On,this.daiEnabled)};
g.k.XG=function(){return this.B};
g.k.ZG=function(){return this.u.i.length};Hpa.prototype.VG=function(){return this.i};g.v(Ipa,mI);g.v(Kpa,mI);Lpa.prototype.create=function(a,b){function c(l){return new kI(l,d.u,b,d.i,d.l)}
var d=this,e=a.instreamVideoAdRenderer,f=a.instreamSurveyAdRenderer,h=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new sI(f):null!=h?new Kpa(h,c,this.i):null!=a?new Ipa(a,c):null};Mpa.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new sz(h.u,h.l,h.daiEnabled,h.B),m=h.Fd;m&&(l.Fd=new rz(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.i));h.i&&(l.i=h.i);l.visible=h.visible;h=l;h.Fd=f;e.push(Npa(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(Npa(this,d.value,c,b)),c++;return e};g.v(Ppa,g.E);g.v(cL,g.E);cL.prototype.addEventListener=function(a,b){this.i=b};
cL.prototype.removeEventListener=function(){this.i=null};
g.v(dL,g.E);dL.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
dL.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.v(Tpa,g.E);var eL=null,Vpa=null,fL=null,gL=null,hL=null;g.Ha("yt.www.ads.eventcache.getLastCompanionData",function(){return eL},void 0);
g.Ha("yt.www.ads.eventcache.getLastPlaShelfData",function(){return Vpa},void 0);
g.Ha("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return fL},void 0);
g.Ha("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return gL},void 0);
g.Ha("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return hL},void 0);var gqa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.v(kL,g.E);kL.prototype.ra=function(){this.zd.clear();g.E.prototype.ra.call(this)};
kL.prototype.ld=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ha();a=g.q(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
kL.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Ha();a.loggingUrls&&hqa(this,"loggingUrls",a.loggingUrls,b,c);a=g.q(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?dqa(this,e):"confirmDialogEndpoint"===d?eqa(this,e):gqa.hasOwnProperty(d)||hqa(this,d,e,b,c)}};g.v(mL,g.Q);g.k=mL.prototype;g.k.AB=function(){return!qqa(this,tqa(this))};
g.k.nw=function(){return this.Ga};
g.k.ra=function(){this.xa=!0;g.ox(this.B);this.G&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.RI,this);if(zI(this.i)){var a=lqa(this.i);a.removeEventListener("updateKevlarOrC3Companion",Upa);a.removeEventListener("onPlaShelfInfoCardsReady",Wpa);a.removeEventListener("updateEngagementPanelAction",Xpa);a.removeEventListener("changeEngagementPanelVisibility",Ypa);a.removeEventListener("scrollToEngagementPanel",Zpa);window.removeEventListener("yt-navigate-start",$pa);hL=gL=fL=eL=null}a=
g.q(this.u.values());for(var b=a.next();!b.done;b=a.next())wqa(this,b.value);OK(this,!1);this.Pn.clear();this.ma=[];this.K.clear();g.ef(this.va);this.va=new Map;g.ef(this.J);this.J=new Map;this.u.clear();g.Q.prototype.ra.call(this)};
g.k.qC=function(a){if(a instanceof Kz&&!a.l&&(!Mz(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.U(this.i.sb(1),32))this.K.add(a);else{var b=this.u.get(a);b&&((g.S(this.i.T().experiments,"enable_eviction_protection_for_bulleit")?this.l?this.l.Hz():1:1)?b.qH(a):a.deactivate())}};
g.k.iR=function(a){a instanceof Kz&&(a.l&&(a.l=!1),this.K.delete(a))};
g.k.RI=function(a){Boa(this.Da,a);null==this.G?g.Sr(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request.")):0!=(this.i.getCurrentTime(1)||0)&&(a=a.filter(function(b){return"start"==b.event}),oL(this,[this.G],a))};
g.k.xC=function(a){oL(this,[this.G],[a])};
g.k.SI=function(a){var b=1E3*a;this.l&&this.l.ID(b);for(var c=g.q(this.u.values()),d=c.next();!d.done;d=c.next())d.value.ID(b);g.Bb(this.Pa.i,1E3*a)};
g.k.fk=function(a){switch(a){case "control_play":this.l&&(a=this.l,a.Lt()?a.I.Kc().playVideo():a.Rm()&&a.l.Km());break;case "control_pause":this.l&&(a=this.l,a.Lt()?a.I.Kc().pauseVideo():a.Rm()&&a.l.Jm())}};
g.k.BL=function(a){this.l&&this.l.Dc(a)};
g.k.OQ=function(a){0>TI(a,16)&&(this.K.forEach(this.qC,this),this.K.clear())};
g.k.xT=function(){this.l&&this.l.kb()};
g.k.AT=function(){if(yI(this.i)&&this.l){var a=this.i.getCurrentTime(2,!1),b=this.l;b.l&&(b=b.l,b.G&&Bna(b.l,a,b.getDuration()))}};
g.k.qQ=function(){this.Va=!0;if(this.l){var a=this.l;a.l&&a.l.ag()}};
g.k.AQ=function(a){if(this.l)this.l.onAdUxClicked(a)};
g.k.BT=function(){if(2==this.i.getPresentingPlayerType()&&this.l){var a=this.l.l,b=a.l;a=a.I.isMuted();GI(b)||HI(b,a?"mute":"unmute")}};
g.k.uR=function(a){if(this.l){var b=this.l.l.l;EI(b)||MI(b,a?"fullscreen":"end_fullscreen")}};
g.k.Rf=function(a,b){this.i.Rf(a,b);a=g.q(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Pn.delete(b),this.u.delete(b)};
g.k.VU=function(){for(var a=[],b=g.q(this.Pn),c=b.next();!c.done;c=b.next())c=c.value,Lz(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||kY(b,"cuerangemarkersupdated",a)};
g.k.ci=function(a){this.i.ci(a);switch(a){case 1:this.Mw=1;break;case 0:this.Mw=0}};
g.k.kD=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.U:!1};
g.k.tm=function(){this.l&&this.l.Po()&&this.l.tm()};
g.k.Rj=function(){this.l&&this.l.Po()&&this.l.Rj()};
g.k.bw=function(){};
g.k.Qv=function(){};
g.k.Rb=function(a){if(this.l){var b=this.l;b.l&&(b=b.l,b.G&&Bna(b.l,a,b.getDuration()))}};
g.k.Rm=function(){return yI(this.i)&&!!this.l&&this.l.Rm()};
g.k.executeCommand=function(a,b,c){var d=this.bb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.l&&this.l||null;f?(f=f.l,c=f.ad.It()?JI(f.l,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.VG=function(){return this.Ea};
g.k.WG=function(){return this.La};g.v(qL,g.E);qL.prototype.append=function(a){if(!this.l)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
g.v(rL,qL);g.v(Aqa,g.E);var Cqa=1;g.v(g.tL,g.E);g.k=g.tL.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.D;var c=a.L,d=a.Ca;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.D);g.IG&&(a.V||(a.V={}),a.V.focusable="false")}else e=g.ng(a.D);if(c){if(c=uL(this,e,"class",c))vL(this,e,"class",c),this.Ua[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.Ua[f.value]=e;vL(this,e,"class",d.join(" "))}d=a.oa;c=a.S;if(d)b=uL(this,e,"child",d),void 0!==b&&e.appendChild(g.og(b));else if(c)for(d=0,c=g.q(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=uL(this,e,"child",f),null!=f&&e.appendChild(g.og(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Mb&&(h=sL(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.qg(e,f,d++))}if(a=a.V)for(b=e,d=g.q(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],vL(this,b,c,"string"===typeof f?
uL(this,b,c,f):f);return e};
g.k.Ba=function(a){return this.Ua[a]};
g.k.ya=function(a,b){"number"===typeof b?g.qg(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.rg(this.element)};
g.k.update=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Sa(c,a[c])};
g.k.Sa=function(a,b){(a=this.Hb["{{"+a+"}}"])&&vL(this,a[0],a[1],b)};
g.k.ra=function(){this.Ua={};this.Hb={};this.detach();g.E.prototype.ra.call(this)};g.v(g.V,g.tL);g.k=g.V.prototype;g.k.Vc=function(a,b){this.Sa(b||"content",a)};
g.k.show=function(){this.vb||(g.zl(this.element,"display",""),this.vb=!0)};
g.k.hide=function(){this.vb&&(g.zl(this.element,"display","none"),this.vb=!1)};
g.k.Ub=function(a){this.Y=a};
g.k.Ra=function(a,b,c){return this.N(this.element,a,b,c)};
g.k.N=function(a,b,c,d){c=(0,g.C)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.fc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;xg(a);a.focus()};
g.k.ra=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.tL.prototype.ra.call(this)};g.v(g.xL,g.V);g.xL.prototype.subscribe=function(a,b,c){return this.Ea.subscribe(a,b,c)};
g.xL.prototype.unsubscribe=function(a,b,c){return this.Ea.unsubscribe(a,b,c)};
g.xL.prototype.Tf=function(a){return this.Ea.Tf(a)};
g.xL.prototype.W=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.Ea.W.apply(this.Ea,[a].concat(g.ma(c)))};var CKa=new WeakSet;g.v(yL,g.xL);g.k=yL.prototype;g.k.bind=function(a){if(!this.La&&a.renderer){var b=Object.assign({},zqa(this.api,this.Ta),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.La=a;this.element.setAttribute("id",this.La);this.bb&&g.K(this.element,this.bb);this.U=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Ig(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.xL.prototype.hide.call(this);null!=this.J&&this.ib(this.element,!1)};
g.k.show=function(){g.xL.prototype.show.call(this);if(!this.eb){this.eb=!0;var a=this.U&&this.U.impressionCommand;a&&Eqa(this,a,null)}null!=this.J&&this.ib(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!CKa.has(a)){var b=this.element;this.api.Bt(b)&&this.vb&&this.api.Fb(b,this.i);CKa.add(a)}if(a=this.U&&this.U.clickCommand)a=this.HJ(a),Eqa(this,a,this.bH())};
g.k.HJ=function(a){return a};
g.k.bH=function(){return null};
g.k.EL=function(a){var b=this.ma;b.J=!0;b.l=a.touches.length;b.i.isActive()&&(b.i.stop(),b.C=!0);a=a.touches;b.G=Bqa(b,a)||1!=a.length;var c=a.item(0);b.G||!c?(b.K=Infinity,b.U=Infinity):(b.K=c.clientX,b.U=c.clientY);for(c=b.u.length=0;c<a.length;c++){var d=a.item(c);b.u.push(d.identifier)}};
g.k.DL=function(a){var b=this.ma;a=a.changedTouches.item(0);if(Pd()&&!(0<=g.Cc(Qd(),8))||a&&Math.pow(a.clientX-b.K,2)+Math.pow(a.clientY-b.U,2)>Math.pow(5,2))b.B=!0};
g.k.CL=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.J&&1==b.l&&!b.B&&!b.C&&!b.G&&Bqa(b,c)&&(b.Y=a,b.i.start());b.l=a.touches.length;0===b.l&&(b.J=!1,b.B=!1,b.u.length=0);b.C=!1}};
g.k.Ig=function(a,b){this.api.Ig(a,this);this.api.Nl(a,b)};
g.k.ib=function(a,b){this.api.Bt(a)&&this.api.ib(a,b,this.i)};
g.k.ra=function(){this.clear(null);this.fc(this.Ya);for(var a=g.q(this.va),b=a.next();!b.done;b=a.next())this.fc(b.value);g.xL.prototype.ra.call(this)};g.v(ML,yL);
ML.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.l=b;if(null==b.text&&null==b.icon)Ur(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.K(this.element,a);null!=b.text&&(a=g.Pz(b.text),g.rc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.xL({D:"span",L:"ytp-ad-button-text",oa:a}),g.F(this,this.B),this.B.ya(this.element)));null!=b.icon&&(b=LL(b.icon),null!=
b&&(this.u=new g.xL({D:"span",L:"ytp-ad-button-icon",S:[b]}),g.F(this,this.u)),this.C?g.qg(this.element,this.u.element,0):this.u.ya(this.element))}};
ML.prototype.clear=function(){this.hide()};
ML.prototype.onClick=function(a){var b=this;yL.prototype.onClick.call(this,a);Wqa(this).forEach(function(c){return b.Ta.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(NL,g.E);NL.prototype.ra=function(){this.l&&g.Pt(this.l);this.i.clear();OL=null;g.E.prototype.ra.call(this)};
NL.prototype.register=function(a,b){b&&this.i.set(a,b)};
var OL=null;g.v(QL,yL);
QL.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.Sr(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new ML(this.api,this.Ta,this.layoutId,this.i),g.F(this,this.button),this.button.init(PI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Pz(a)),this.button.ya(this.element),this.G&&!g.Mq(this.button.element,"ytp-ad-clickable")&&g.K(this.button.element,"ytp-ad-clickable"),
a&&(this.u=new g.xL({D:"div",L:"ytp-ad-hover-text-container"}),this.C&&(b=new g.xL({D:"div",L:"ytp-ad-hover-text-callout"}),b.ya(this.u.element),g.F(this,b)),g.F(this,this.u),this.u.ya(this.element),b=PL(a),g.qg(this.u.element,b,0)),this.show())};
QL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();yL.prototype.hide.call(this)};
QL.prototype.show=function(){this.button&&this.button.show();yL.prototype.show.call(this)};g.v(SL,yL);SL.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&RL(a)||"";g.rc(b)?(g.S(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&Ur(Error("Found AdImage without valid image URL")):(this.l?g.zl(this.element,"backgroundImage","url("+b+")"):eg(this.element,{src:b}),eg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
SL.prototype.clear=function(){this.hide()};g.v(TL,yL);g.k=TL.prototype;g.k.hide=function(){yL.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.B=document.activeElement;yL.prototype.show.call(this);this.C.focus()};
g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.Sr(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.Sr(Error("ConfirmDialogRenderer.cancelLabel was not set.")):$qa(this,b):g.Sr(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.ox(this.l);this.hide()};
g.k.nC=function(){this.hide()};
g.k.lz=function(){var a=this.u.cancelEndpoint;a&&this.Ta.executeCommand(a,this.macros);this.hide()};
g.k.oC=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Ta.executeCommand(a,this.macros);this.hide()};g.v(UL,yL);g.k=UL.prototype;
g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.Sr(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.Sr(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.K(this.B,a)}a={};b.defaultText?
(c=g.Pz(b.defaultText),g.rc(c)||(a.buttonText=c,this.l.setAttribute("aria-label",c))):g.Pl(this.xa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.l.hasAttribute("aria-label")||this.X.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=LL(b.defaultIcon),this.Sa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.K=!0,c=LL(b.toggledIcon),this.Sa("toggledIconTemplateSpec",c)):(g.Pl(this.G,!0),g.Pl(this.C,!1)),g.Pl(this.l,!1)):g.Pl(this.X,!1);g.Rb(a)||this.update(a);b.isToggled&&
(g.K(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));VL(this);this.N(this.element,"change",this.xE);this.show()}};
g.k.onClick=function(a){0<this.va.length&&(this.toggleButton(!this.isToggled()),this.xE());yL.prototype.onClick.call(this,a)};
g.k.xE=function(){var a=this;g.N(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());ara(this,this.isToggled()).forEach(function(b){return a.Ta.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);VL(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.N(this.B,"ytp-ad-toggle-button-toggled",a);this.l.checked=a;VL(this)};
g.k.isToggled=function(){return this.l.checked};g.v(WL,mx);WL.prototype.J=function(a){if(Array.isArray(a)){a=g.q(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Oz&&this.u(b)}};g.v(XL,yL);g.k=XL.prototype;g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.Sr(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&Ur(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&Ur(Error("AdFeedbackRenderer.title was not set.")),era(this,b)):g.Sr(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Yt(this.G);Yt(this.K);this.C.length=0;this.hide()};
g.k.hide=function(){this.l&&this.l.hide();this.u&&this.u.hide();yL.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.l&&this.l.show();this.u&&this.u.show();this.B=document.activeElement;yL.prototype.show.call(this);this.G.focus()};
g.k.LI=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.W("a");this.hide()};
g.k.vT=function(){this.hide()};
fra.prototype.isChecked=function(){return this.u.checked};g.v(YL,TL);YL.prototype.nC=function(a){TL.prototype.nC.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
YL.prototype.lz=function(a){TL.prototype.lz.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
YL.prototype.oC=function(a){TL.prototype.oC.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.W("b")};g.v(ZL,yL);g.k=ZL.prototype;
g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.G=b;if(null==b.dialogMessage&&null==b.title)g.Sr(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&Ur(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.l=new ML(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.F(this,this.l),
this.l.init(PI("button"),a,this.macros),this.l.ya(this.element);b.title&&(a=g.Pz(b.title),this.Sa("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=PL(a[c]);if(!g.rc(d.textContent)){var e=mg("LI");e.appendChild(d);this.Aa.appendChild(e)}}else g.Pl(this.Aa,!1);b.dialogMessage&&(a=PL(b.dialogMessage,!0),this.Ga.appendChild(a));b.confirmLabel&&(a=g.Pz(b.confirmLabel),this.Sa("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&
b.navigationEndpoint.adFeedbackEndpoint||null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?Ur(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?hra(this,a):c&&ira(this,c),this.B=new ML(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-info-dialog-mute-button"],"button",!0),g.F(this,this.B),this.B.init(PI("button"),b,this.macros),this.B.Ra("click",this.UR,this),this.B.ya(this.Pa)));
jra(this)}};
g.k.clear=function(){Yt(this.K);this.hide()};
g.k.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.l&&this.l.hide();this.B&&this.B.hide();yL.prototype.hide.call(this);this.X&&this.X.focus()};
g.k.show=function(){this.l&&this.l.show();this.B&&this.B.show();this.Da||(gra(this),this.Da=!0);this.X=document.activeElement;yL.prototype.show.call(this);this.K.focus()};
g.k.yE=function(){this.G&&this.G.confirmServiceEndpoint&&this.Ta.executeCommand(this.G.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.W("d");this.hide()};
g.k.UR=function(){var a=this.u?this.u:this.C;a&&!a.vb&&(this.hide(),a.show())};g.v($L,QL);$L.prototype.init=function(a,b,c){QL.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(mra(this,a,c),this.show())};
$L.prototype.hide=function(){this.button&&this.button.hide();this.l&&this.l.hide();QL.prototype.hide.call(this)};
$L.prototype.show=function(){this.button&&this.button.show();QL.prototype.show.call(this)};
$L.prototype.clear=function(){this.hide()};g.v(aM,yL);aM.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.l=b;this.isTemplated()||g.ug(this.element,zL(this.l));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?RL(a):"",c=(c=this.api.getVideoData(1))&&c.Aj,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}this.show()};
aM.prototype.isTemplated=function(){return this.l.isTemplated||!1};
aM.prototype.clear=function(){this.hide()};var qra={seekableStart:0,seekableEnd:1,current:0};g.v(cM,yL);cM.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var h=g.q(f);f=h.next().value;h=la(h);return a.apply(f,h)}
function d(f){f=g.q(f);f.next();f=la(f);return b(e,f)}
b=void 0===b?Tga:b;var e=g.Pa(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.A;var m=TJa.get(l);m||(m={},TJa.set(l,m));return Td(m,[this].concat(g.ma(h)),c,d)}})(function(a){var b=g.ng("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.ng("DIV");g.Nl(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.rg(b);return a});g.v(g.fM,g.E);g.k=g.fM.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.Ey(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.vb||(gM(this,!0),this.state=1,a?this.delay.start(a):this.Ey()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.vb&&(gM(this,!0),this.state=4,this.delay.start(this.B)))};
g.k.Ey=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:gM(this,!1);this.state=3;this.delay.start(this.u);break;case 3:this.state=null;this.i&&this.i();break;case 4:this.element.hide();gM(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.l&&this.l()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.Ey()};
g.k.ra=function(){this.element.Ha()||this.element.element.removeAttribute("aria-hidden");g.E.prototype.ra.call(this)};g.v(hM,cM);g.k=hM.prototype;
g.k.init=function(a,b,c){cM.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.Sr(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Pa&&g.K(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.xa=null==a||0===a?this.l.Ys():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(PI("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Aj&&b.thumbnail?this.G.init(PI("ad-image"),b.thumbnail,c):this.K.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.u.hide();this.B.hide();this.G.hide();eM(this);cM.prototype.hide.call(this)};
g.k.show=function(){dM(this);this.u.show();this.B.show();this.G.show();cM.prototype.show.call(this)};
g.k.pp=function(){this.hide()};
g.k.fn=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Da&&a>=this.xa?(g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.X.hide(),this.Da=!0,this.W("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.xa-a)/1E3)),a!=this.Ga&&(bM(this.B,{TIME_REMAINING:String(a)}),this.Ga=a)))}};g.v(jM,cM);g.k=jM.prototype;
g.k.init=function(a,b,c){cM.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0<d.length&&g.rc(g.rd(d[0].url))&&(d[0].url=a.rg)}else g.Ux(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.K.init(PI("ad-image"),b.image,c);this.G.init(PI("ad-text"),
b.headline,c);this.B.init(PI("ad-text"),b.description,c);this.u.init(PI("button"),b.actionButton.buttonRenderer,c);this.X=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.xa=b.startMs||0;dM(this)}else g.Tx(Error("FlyoutCtaRenderer has no valid action button."));else g.Tx(Error("FlyoutCtaRenderer has no description AdText."));else g.Tx(Error("FlyoutCtaRenderer has no headline AdText."));else g.Ux(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){cM.prototype.onClick.call(this,a);this.api.pauseVideo();!g.tg(this.u.element,a.target)&&this.X&&this.Ta.executeCommand(this.X,this.macros)};
g.k.fn=function(){if(this.l){var a=this.l.getProgressState();a&&a.current&&1E3*a.current>=this.xa&&(eM(this),g.Oq(this.element,"ytp-flyout-cta-inactive"))}};
g.k.pp=function(){this.clear()};
g.k.clear=function(){this.hide()};
g.k.show=function(){this.u&&this.u.show();cM.prototype.show.call(this)};
g.k.hide=function(){this.u&&this.u.hide();cM.prototype.hide.call(this)};g.v(kM,yL);g.k=kM.prototype;g.k.init=function(a,b,c){var d=this;yL.prototype.init.call(this,a,b,c);this.l=b;this.l.rectangle&&(nra(this,c),this.C.show(100),this.show(),(this.l&&this.l.impressionCommands||[]).forEach(function(e){return d.Ta.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.u.hide();yL.prototype.hide.call(this)};
g.k.show=function(){this.B.show();this.u.show();yL.prototype.show.call(this)};
g.k.zE=function(){Qq(this.element,"ytp-ad-instream-user-sentiment-selected");this.l.postMessageAction&&this.api.Na("onYtShowToast",this.l.postMessageAction);this.C.hide()};
g.k.onClick=function(a){0<this.va.length&&this.zE();yL.prototype.onClick.call(this,a)};g.v(lM,g.E);g.k=lM.prototype;g.k.ra=function(){this.reset();g.E.prototype.ra.call(this)};
g.k.reset=function(){g.ox(this.B);this.G=!1;this.i&&this.i.stop();this.C.stop();this.l&&(this.l=!1,this.J.play())};
g.k.start=function(){this.reset();this.B.N(this.u,"mouseover",this.GL,this);this.B.N(this.u,"mouseout",this.FL,this);this.i?this.i.start():(this.G=this.l=!0,g.zl(this.u,{opacity:this.U}))};
g.k.GL=function(){this.l&&(this.l=!1,this.J.play());this.C.stop();this.i&&this.i.stop()};
g.k.FL=function(){this.G?this.C.start():this.i&&this.i.start()};
g.k.YF=function(){this.l||(this.l=!0,this.K.play(),this.G=!0)};g.v(mM,cM);g.k=mM.prototype;
g.k.init=function(a,b,c){cM.prototype.init.call(this,a,b,c);this.K=b;this.xa=pra(this);if(!b||g.Rb(b))g.Sr(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Rb(b.message))g.Sr(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=LL(a);null==b?g.Sr(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.G=new g.xL({D:"button",Ca:["ytp-ad-skip-button","ytp-button"],S:[{D:"span",
L:"ytp-ad-skip-button-icon",S:[b]}]}),g.F(this,this.G),this.G.ya(this.B.element),this.u=new aM(this.api,this.Ta,this.layoutId,this.i,"ytp-ad-skip-button-text"),this.u.init(PI("ad-text"),this.K.message,c),g.F(this,this.u),g.qg(this.G.element,this.u.element,0));var d=void 0===d?null:d;c=this.api.T();!(0<this.va.length)&&c.i&&(KF?0:"ontouchstart"in document.documentElement&&(il()||hl()))&&(this.fc(this.Ya),d&&this.fc(d),this.va=[this.N(this.element,"touchstart",this.EL,this),this.N(this.element,"touchmove",
this.DL,this),this.N(this.element,"touchend",this.CL,this)])}};
g.k.clear=function(){this.X.reset();this.hide()};
g.k.hide=function(){this.B.hide();this.u&&this.u.hide();eM(this);cM.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.G&&(a&&g.Ut(a),cM.prototype.onClick.call(this,a),this.W("j"),this.Da||!this.xa))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.HJ=function(a){if(!g.S(this.api.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")||!this.Da)return a;var b,c=null==(b=a.commandExecutorCommand)?void 0:b.commands;if(!c)return a;b=[];for(var d=0;d<c.length;d++){var e=a.commandExecutorCommand.commands[d];e.adLifecycleCommand&&ora(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.bH=function(){return"skip"};
g.k.show=function(){this.X.start();this.B.show();this.u&&this.u.show();dM(this);cM.prototype.show.call(this)};
g.k.pp=function(){this.W("k")};
g.k.fn=function(){};g.v(nM,cM);g.k=nM.prototype;
g.k.init=function(a,b,c){cM.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Rb(a)?null:a){this.G=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.$E(this.api.T().experiments,"preskip_button_style_ads_backend")&&aG(this.api.T());this.u=new hM(this.api,this.Ta,this.layoutId,this.i,this.l,d);this.u.init(PI("preskip-component"),a,c);iM(this.u);g.F(this,this.u);this.u.ya(this.element);
g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.u.subscribe("i",this.lS,this)}else b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Rb(b)?null:b;null==b?g.Sr(Error("SkipButtonRenderer was not set in player response.")):(this.B=new mM(this.api,this.Ta,this.layoutId,this.i,this.l,this.X),this.B.init(PI("skip-button"),b,c),g.F(this,this.B),this.B.ya(this.element),this.show())};
g.k.show=function(){this.K&&this.B?this.B.show():this.u&&this.u.show();dM(this);cM.prototype.show.call(this)};
g.k.pp=function(){};
g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();eM(this);cM.prototype.hide.call(this)};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();eM(this);cM.prototype.hide.call(this)};
g.k.lS=function(){oM(this,!0)};
g.k.fn=function(){g.S(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.u||1E3*this.l.getProgressState().current>=this.G&&oM(this,!0):1E3*this.l.getProgressState().current>=this.G&&oM(this,!0)};g.v(pM,ML);pM.prototype.init=function(a,b,c){ML.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Pz(b.text),a=!g.rc(a));a?null==b.navigationEndpoint?Ur(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?Ur(Error("Button style was not a link-style type in renderer,")):this.show():Ur(Error("No visit advertiser text was present in the renderer."))};g.v(qM,yL);qM.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);a=b.text;g.rc(zL(a))?Ur(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.l&&(b=this.api.T(),b=a.text+" "+(b&&b.i?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new aM(this.api,this.Ta,this.layoutId,this.i),a.init(PI("simple-ad-badge"),b,c),a.ya(this.element),g.F(this,a)),this.show())};
qM.prototype.clear=function(){this.hide()};g.v(rM,g.Q);g.k=rM.prototype;g.k.Ys=function(){return this.durationMs};
g.k.stop=function(){this.i&&this.Zd.fc(this.i)};
g.k.Rb=function(a){this.l={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.W("h")};
g.k.getProgressState=function(){return this.l};
g.k.Dc=function(a){g.UI(a,2)&&this.W("g")};g.v(sM,g.Q);g.k=sM.prototype;g.k.Ys=function(){return this.durationMs};
g.k.start=function(){this.u||(this.u=!0,this.l.start(),this.B=Date.now())};
g.k.stop=function(){this.u&&(this.u=!1,this.l.stop())};
g.k.Rb=function(){if(this.G){var a=Date.now(),b=a-this.B;this.B=a;this.i+=b}else this.i+=100;a=!1;this.i>this.durationMs&&(this.i=this.durationMs,this.l.stop(),a=!0);this.C={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.i/1E3};this.Ta&&this.Ta.Rb(this.C.current);this.W("h");a&&this.W("g")};
g.k.getProgressState=function(){return this.C};g.v(vM,cM);g.k=vM.prototype;g.k.init=function(a,b,c){var d;cM.prototype.init.call(this,a,b,c);if(null===(d=null===b||void 0===b?void 0:b.templatedCountdown)||void 0===d?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){Ur(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new aM(this.api,this.Ta,this.layoutId,this.i);this.u.init(PI("ad-text"),a,{});this.u.ya(this.element);g.F(this,this.u)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){eM(this);cM.prototype.hide.call(this)};
g.k.pp=function(){this.hide()};
g.k.fn=function(){if(null!=this.l){var a=this.l.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.l instanceof rM?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.l instanceof sM?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.tM(a);bM(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){dM(this);cM.prototype.show.call(this)};g.v(wM,aM);wM.prototype.onClick=function(a){aM.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(BM,g.xL);BM.prototype.Rb=function(){var a=this.l.getProgressState();this.Ec.style.width=100*AM(new xM(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
BM.prototype.u=function(){g.UF(this.api.T())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.l.subscribe("h",this.Rb,this),this.Rb()):-1!==this.i&&(this.hide(),this.l.Tf(this.i),this.i=-1))};g.v(CM,yL);
CM.prototype.init=function(a,b,c,d){yL.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new nM(this.api,this.Ta,this.layoutId,this.i,this.l,this.G),c.ya(this.C),c.init(PI("skip-button"),a.skipAdRenderer,this.macros),g.F(this,c)):a.adPreviewRenderer&&(c=new hM(this.api,this.Ta,this.layoutId,this.i,this.l,!1),c.ya(this.C),c.init(PI("ad-preview"),a.adPreviewRenderer,this.macros),iM(c),g.F(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new kM(this.api,this.Ta,this.layoutId,this.i),c.ya(this.X),c.init(PI("instream-user-sentiment"),a,this.macros),g.F(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new jM(this.api,this.Ta,this.layoutId,this.i,this.l),g.F(this,c),c.ya(this.K),c.init(PI("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new qM(this.api,this.Ta,this.layoutId,
this.i,!0),g.F(this,c),c.ya(this.u),c.init(PI("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 vM(this.api,this.Ta,this.layoutId,this.i,this.l,d),g.F(this,d),d.ya(this.u),d.init(PI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new $L(this.api,this.Ta,this.layoutId,
this.i,this.element),g.F(this,a),a.ya(this.u),a.init(PI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=rra(this)&&this.B?this.B:this.u))&&(a=new pM(this.api,this.Ta,this.layoutId,this.i),g.F(this,a),a.ya(d),a.init(PI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!RF(b)&&"3"==b.controlsType&&(b=new BM(this.api,this.l),b.ya(this.xa),g.F(this,b));g.S(this.api.T().experiments,"enable_updated_html5_player_focus_style")&&
g.K(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
CM.prototype.clear=function(){this.hide()};g.Ha("yt.pubsub.publish",g.yu,void 0);var R2={},ura=(R2.WEB_UNPLUGGED="^unplugged/",R2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",R2.WEB_UNPLUGGED_OPS="^unplugged/",R2.WEB_UNPLUGGED_PUBLIC="^unplugged/",R2.WEB_CREATOR="^creator/",R2.WEB_KIDS="^kids/",R2.WEB_EXPERIMENTS="^experiments/",R2.WEB_MUSIC="^music/",R2.WEB_REMIX="^music/",R2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",R2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",R2);HM.prototype.C=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?Gw:c;var d={context:VK(a.clickTrackingParams,!1,this.B)};var e=this.i(a);if(e){this.l(d,e,b);var f,h;b=g.EM(this.u());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=wra(FM(b),void 0);d={input:f,tp:GM(f),Et:d,config:Object.assign({},void 0)};d.config.Tn?d.config.Tn.identity=c:d.config.Tn={identity:c};return d}g.Tx(new g.Gv("Error: Failed to create Request from Command.",
a))};
fa.Object.defineProperties(HM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(IM,HM);IM.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",tp:GM("/getDatasyncIdsEndpoint","GET"),Et:{}}};
IM.prototype.u=function(){return[]};
IM.prototype.i=function(){};
IM.prototype.l=function(){};var DKa={},xra=(DKa.GET_DATASYNC_IDS=IM,DKa);g.v(LM,HM);LM.prototype.u=function(){return cKa};
LM.prototype.i=function(a){return a.subscribeEndpoint};
LM.prototype.l=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(LM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(MM,HM);MM.prototype.u=function(){return dKa};
MM.prototype.i=function(a){return a.unsubscribeEndpoint};
MM.prototype.l=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
fa.Object.defineProperties(MM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(NM,HM);NM.prototype.u=function(){return $Ja};
NM.prototype.i=function(a){return a.feedbackEndpoint};
NM.prototype.l=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(NM.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(OM,HM);OM.prototype.u=function(){return aKa};
OM.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
OM.prototype.l=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(PM,HM);PM.prototype.u=function(){return bKa};
PM.prototype.i=function(a){return a.playlistEditEndpoint};
PM.prototype.l=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(QM,HM);QM.prototype.u=function(){return ZJa};
QM.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
QM.prototype.l=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};RM.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return Promise.resolve(this.l.u(a,b).catch(function(f){g.Ux(f)}));
if(this.i){var e=fi(g.hi(5,yi(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}e=new window.Request(a,b);return Promise.resolve(fetch(e).then(function(f){return c.handleResponse(f)}).catch(function(f){var h,l;
if(null===(h=c.l)||void 0===h?0:h.i(a,b))return f=c.l.l(a,b),null===(l=c.i)||void 0===l?void 0:l.success(),f;g.Ux(f)}))};
RM.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.i&&this.i.success():(this.i&&this.i.failure(),b=b.then(function(c){g.Ux(new g.Gv("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
return b};var SM;var Era=[],UM=!1;zv.prototype.wd=function(a){this.handleError(a)};
zv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Nr("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Nr("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Kra(this,b);break;case "TRANSACTION_ENDED":Math.random()<=Or("ytidb_transaction_ended_event_rate_limit",.02)&&this.i("idbTransactionEnded",b);break;
case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({},b),{hasWindowUnloaded:this.l}),this.i("idbTransactionAborted",a)}};VM.prototype.initialize=function(a,b,c,d){d=void 0===d?!1:d;var e,f;if(a.program){var h=null!==(e=a.interpreterScript)&&void 0!==e?e:null,l=null!==(f=a.interpreterUrl)&&void 0!==f?f:null;if(a.interpreterSafeScript){h=a.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"";var m=g.fc("From proto message. b/166824318");ec(m);ec(m);h=(m=ac())?m.createScript(h):h;h=(new hc(h,gc)).toString()}a.interpreterSafeUrl&&(l=id(g.fc("From proto message. b/166824318"),a.interpreterSafeUrl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||
"").toString());Mra(this,h,l,a.program,b,c,d)}else g.Ux(Error("Cannot initialize botguard without program"))};
VM.prototype.Ud=function(){return!!this.i};
VM.prototype.invoke=function(a){a=void 0===a?{}:a;return this.i?this.i.hasOwnProperty("hot")?this.i.hot(void 0,void 0,a):this.i.invoke(void 0,void 0,a):null};
VM.prototype.dispose=function(){this.i=null};var WM=new VM,XM=0;var S2={},EKa=(S2["api.invalidparam"]=2,S2.auth=150,S2["drm.auth"]=150,S2["heartbeat.net"]=150,S2["heartbeat.servererror"]=150,S2["heartbeat.stop"]=150,S2["html5.unsupportedads"]=5,S2["fmt.noneavailable"]=5,S2["fmt.decode"]=5,S2["fmt.unplayable"]=5,S2["html5.missingapi"]=5,S2["html5.unsupportedlive"]=5,S2["drm.unavailable"]=5,S2);g.v(aN,g.E);g.k=aN.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.C[a],e=this.J[a],f=d;if(e)if(c&&vz(c,fKa,gKa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.Gj&&!this.U.has(a)&&(this.U.add(a),g.Bv("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.q(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Ux(Error('Dangerous call to "'+a+'" with ['+b+"]."));
return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.C[a]?!0:!!(this.J[a]&&b&&vz(b,fKa,gKa))};
g.k.getBandwidthEstimate=function(){return xF(this.app.T().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.W(this.app);b&&(a={gpu:(0,g.wW)(),d:a},b.handleError(new g.mE("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.K.slice()};
g.k.getInternalApiInterface=function(){return g.Mb(this.l)};
g.k.YN=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];g.Ia(b).apply(window,e)};
this.G[b]=c}else c=b;this.app.fl.subscribe(a,c)};
g.k.UT=function(a,b){if("string"===typeof b){var c=this.G[b],d=this.G;b in d&&delete d[b];b=c}this.app.fl.unsubscribe(a,b)};
g.k.getPlayerState=function(){return YEa(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.seekTo=function(a,b,c){this.i&&GY(this.app,!0,this.playerType);JY(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.startSeekCsiAction=function(){this.Z("h5_csi_seek_latency_action")&&(this.app.Fo().B.i=(0,g.P)())};
g.k.seekToStreamTime=function(a,b,c){this.i&&GY(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.W(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Lc()&&(l=h.getStreamTimeOffset());JY(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.W(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.W(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&JY(this.app,Infinity,a,b,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.Uf.volume};
g.k.setVolume=function(a){Zra(this,a)};
g.k.isMuted=function(){return this.app.Uf.muted};
g.k.mute=function(){$ra(this)};
g.k.unMute=function(){asa(this)};
g.k.playVideo=function(){this.i&&GY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Md()){var b=NN(this.app.rb());if(!$Ia(b)){b.fk("control_play");return}if(aJa(b))return}3===a?g.kN(this.app.rb()).fk("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Md()){var b=NN(this.app.rb());if(!$Ia(b)){b.fk("control_pause");return}}3===a?g.kN(this.app.rb()).fk("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.i.Ya&&a.Wa.W("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.W(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.T();if(a.Kb){var b=a.l||a.Z("web_player_admin_origin_killswitch")?a.Gc[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.Ij?kKa:jKa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.W(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.W(this.app,this.playerType);return a?(a=g.Oe(a.Am(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.W(this.app,this.playerType);return a?g.Oe(a.Am(),function(b){return b.qualityLabel}):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.setSize=function(){this.app.Za().resize()};
g.k.channelSubscribed=function(){this.Na("SUBSCRIBE",rY(this.app).Fh)};
g.k.channelUnsubscribed=function(){this.Na("UNSUBSCRIBE",rY(this.app).Fh)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.W(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.W(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=qFa(this.app);b&&(b.u=a,b.Ma())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=qFa(this.app);b&&(g.N(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.gf(b,g.zO(b.B.ac(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.W(this.app,this.playerType);a&&a.Ad("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().Hj=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=DF("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,Zka)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return rY(this.app).Yz};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.HN(this.app.rb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.HN(this.app.rb()))&&a.loaded&&a.RU()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(YM(a,b,c),this.playerType),this.i&&GY(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(YM(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=Wra(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&GY(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=Wra(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.K)return"";var b=rY(this.app),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.T();return a.K?"":a.getVideoEmbedCode(rY(this.app).videoId,this.app.Za().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return gFa(this.app,a,b,c)};
g.k.removeCueRange=function(a){a:{for(var b=this.app,c=b.l.Bm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===a){b.l.removeCueRange(e);kY(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.i&&GY(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.i&&GY(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.i&&GY(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&GY(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.SO=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=a.fb(c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.rb();return"captions"===a?(a=g.HN(d))&&a.Se(b,c):null};
g.k.getOption=function(a,b,c){var d=g.W(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.T().l?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.rb();if("captions"===a)return(b=g.HN(b))&&b.getOptions();if(!a)return a=[],g.HN(b)&&a.push("captions"),a};
g.k.Ew=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.W(this.app,a)){a=a.getVideoData();if(a.isPrivate)return{};b.video_id=a.videoId;b.author=a.author;b.title=a.title;if(a.l&&a.l.video){b.video_quality=a.l.video.quality;a=a.l.video;var c=[];32<a.fps&&c.push("hfr");a.isHdr()&&c.push("hdr");"bt2020"===a.primaries&&c.push("wcg");b.video_quality_features=c}}if(a=this.getPlaylistId())b.list=a;return b};
g.k.showVideoInfo=function(){OEa(this.app,!0)};
g.k.hideVideoInfo=function(){OEa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.W(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.U(a,128)&&5===EKa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.mN(this.app.rb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.mN(this.app.rb());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.T().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.W(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a){return this.app.downloadVideo(a)};
g.k.refreshAllVideos=function(){return this.app.refreshAllVideos()};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a){nFa(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.T().U.add(a,{Ov:b,Uu:c})};
g.k.updateLastActiveTime=function(){iu()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.k.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.k.setUserEngagement=function(a){this.app.T().Bh!==a&&(this.app.T().Bh=a,(a=g.W(this.app,this.playerType))&&TX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.HN(this.app.rb()).WK(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.HN(this.app.rb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.HN(this.app.rb());a&&a.FK()};
g.k.setFauxFullscreen=function(a){ix();this.app.ji(a?2:0)};
g.k.setUseFastSizingOnWatch=function(a){this.app.Za().setUseFastSizingOnWatch(a)};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Md()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.W(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.oh();if(!c)return null;b=c.levels[b];return b?(a=g.kH(b,a))?{column:a.column,columns:a.columns,height:a.sx,row:a.row,rows:a.rows,url:a.url,width:a.tx}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.oh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Lc();return b.hv(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.oh();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.Sr(),minFrameIndex:b.kz()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.oh();return a?a.levels.length:0};
g.k.HO=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.W(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().vj};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&g.kN(this.app.rb()).fk("control_set_audio_track",a);var b=g.W(this.app,this.playerType);if(b){var c;if(!b.Ha()&&!g.U(b.playerState,128))if(null===(c=b.videoData.u)||void 0===c?0:c.i)b.l.setAudioTrack(a);else{a:if(c=b.videoData,c.J&&!UD(c.J)||a==c.zj||!c.qb||0>=c.qb.length)c=!1;else{for(var d=g.q(c.qb),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof PG)){c=!1;break a}var f=a.Jc.getId();e.u&&(e.u.i=f,e.l=null)}c.zj=a;c=!0}c&&
(b.W("internalaudioformatchange",b.videoData,!0),GX(b)&&b.Ja("hlsaudio",a.id))}}};
g.k.IO=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.W(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.W(this.app,this.playerType);return a&&a.getVideoData().l?WA(a.U?nBa(a.pg,a.U,YX(a)):qH):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.W(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.HN(this.app.rb());return a?a.VO():null};
g.k.resetSubtitlesUserSettings=function(){g.HN(this.app.rb()).dU()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.Za().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.Ce();return this.app.getVisibilityState(this.zf(),this.isFullscreen()||RF(this.app.T()),a,this.isInline(),this.app.Lq(),this.app.Jq())};
g.k.isMutedByMutedAutoplay=function(){return this.app.Rt};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.Za().setInternalSize(new g.Sf(a,b))};
g.k.Lc=function(){var a=g.W(this.app,void 0);return a?a.Lc():0};
g.k.Ce=function(){return this.app.Ce()};
g.k.zf=function(){var a=g.W(this.app,this.playerType);return!!a&&a.zf()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.T().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.Z("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!==b.fb().videoId||(a.index=b.index)):tY(this.app,{list:a.list,index:a.index,playlist_length:d.length});wN(this.app.getPlaylist(),a);this.Na("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.W(this.app,this.playerType||1);c&&g.uH(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){$F(this.app.T(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.QN(this.app.rb());d&&d.hh()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.W("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.Za().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.W(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.W(this.app,this.playerType);c&&(a=TA(a,b||a,!0,"m"),Cwa(c,a,!0))};
g.k.onAdUxClicked=function(a,b){this.W("aduxclicked",a,b)};
g.k.W=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.T().u&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.fl.W.apply(this.app.fl,[a].concat(g.ma(c)));this.app.Il.W.apply(this.app.Il,[a].concat(g.ma(c)))};
g.k.Na=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.fl.W.apply(this.app.fl,[a].concat(g.ma(c)));this.app.Il.W.apply(this.app.Il,[a].concat(g.ma(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.Z=function(a){return g.S(this.app.T().experiments,a)};
g.k.ea=function(){};
g.k.ra=function(){if(this.element){var a=this.element,b;for(b in this.l)this.l.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.B={};this.G={};g.E.prototype.ra.call(this)};g.v(gN,aN);g.k=gN.prototype;g.k.addCueRange=function(a,b,c,d,e){return gFa(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return YEa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){JY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){JY(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.Ew=function(a){a=void 0===a?this.playerType:a;var b=aN.prototype.Ew.call(this,a)||{};if(a=g.W(this.app,a))a=a.getVideoData(),b.backgroundable=a.backgroundable,b.eventId=a.eventId,b.cpn=a.clientPlaybackNonce,b.isLive=a.isLivePlayback,b.isWindowedLive=a.Fi,b.isManifestless=GH(a),b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.Ga,b.ypcOriginalItct=a.fU,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=Uma(a),b.paidContentOverlayDurationMs=KH(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=
a.liveUtcStartSeconds),a.i&&ZA(a.i)&&(b.usingLocalMedia="true");return b};
g.k.getCurrentTime=function(a,b){var c;return 2===this.app.getAppState()&&5===this.getPlayerState()?(null===(c=this.app.getVideoData())||void 0===c?void 0:c.startSeconds)||0:a?this.app.getCurrentTime(a,b):aN.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return 3===this.getPresentingPlayerType()?(a=g.kN(this.app.rb()).getProgressState(),(null===a||void 0===a?void 0:a.duration)||0):a?this.app.getDuration(a,b):aN.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return g.kN(this.app.rb()).getProgressState();var b=this.app.getVideoData(),c=(g.W(this.app,a)||g.W(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=this.app.getIngestionTime(c),f=this.app.isAtLiveHead(c),h=this.app.Fq(),l=this.app.getMinSeekableTime(c);var m=this.app;(c=g.W(m,c))?(c=pY(m,c),m=BY(m,gT(c),c)):m=0;return{allowSeeking:this.app.Xe(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,
duration:a,ingestionTime:e,isAtLiveHead:f,loaded:h,seekableStart:l,seekableEnd:m}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.eN(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.eN(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.eN(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.eN(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.Za().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){function a(c){g.Ux(c)}
var b=this.app.T();if(b.externalFullscreen)return this.isFullscreen()?kx(window.document.documentElement):hx(window.document.documentElement).catch(a);if(ix()||b.J)return this.isFullscreen()?kx(jx()):"3"!==b.controlsType&&ix()?hx(this.app.Za().element).catch(a):(b=this.app.md().ue())?hx(b).catch(a):Promise.reject(Error("Media element missing"));this.Na("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=NN(this.app.rb());a&&a.created&&a.destroy();(a=g.W(this.app))&&a.stopVideo();(a=this.app.rb().od.get("endscreen"))&&a.GP()&&g.jN(this.app.Wa,!0)};
g.k.stopVideo=function(){var a=this.app.T();!g.S(a.experiments,"disable_new_pause_state3")&&zG(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():aN.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.W(this.app,this.playerType).Cb(!0)};
g.k.toggleSubtitles=function(){var a=g.HN(this.app.rb());a&&a.FU()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.mN(this.app.rb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.mN(this.app.rb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){Zra(this,a,b)};
g.k.mute=function(a){$ra(this,a)};
g.k.unMute=function(a){asa(this,a)};
g.k.mutedAutoplay=function(){this.Z("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.QN(this.app.rb());b&&!b.loaded&&b.load()}aN.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.QN(this.app.rb());b&&b.loaded&&b.unload()}aN.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.rb();switch(a){case "ad":return(a=NN(d))&&a.Se&&a.Se(b,c);case "kids":return(a=ON(d))&&a.Se(b,c);case "remote":return(a=g.kN(d))&&a.Se(b,c);case "unplugged":return(a=PN(d))&&a.Se(b,c);case "annotations_module":return(a=g.QN(d))&&a.Se(b,c);case "creatorendscreen":return(a=RN(d))&&a.Se(b,c)}return aN.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.rb();switch(a){case "ad":return(b=NN(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.kN(b))&&b.getOptions();case "annotations_module":return(b=g.QN(b))&&b.getOptions();case "creatorendscreen":return(b=RN(b))&&b.getOptions();case "unplugged":return(b=PN(b))&&b.getOptions();case "kids":return(b=ON(b))&&b.getOptions()}if(!a){a=aN.prototype.getOptions.call(this);if(!a)return a;NN(b)&&a.push("ad");g.kN(b)&&a.push("remote");g.QN(b)&&a.push("annotations_module");
RN(b)&&a.push("creatorendscreen");PN(b)&&a.push("unplugged");ON(b)&&a.push("kids");return a}return aN.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.Za().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.eN(this);a&&a.zk()};
g.k.setCenterCrop=function(a){this.app.Za().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var bsa="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 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(" "),
csa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.v(g.hN,gN);g.k=g.hN.prototype;g.k.tj=function(a,b,c,d,e,f){return this.app.tj(a,b,c,d,e,f)};
g.k.Us=function(){return this.app.Us()};
g.k.Eo=ba(2);g.k.rb=function(){return this.app.rb()};
g.k.Ld=function(){var a=this.rb().od.get("endscreen");return!!a&&a.Ld()};
g.k.getRootNode=function(){return this.Za().element};
g.k.T=function(){return this.app.T()};
g.k.kt=ba(4);g.k.ll=function(a){return this.app.ll(a)};
g.k.Gm=function(){return this.mz};
g.k.sb=function(a){return this.app.sb(a)};
g.k.Za=function(){return this.app.Za()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.W(this.app,a);if(!b)return null;b=b.getVideoData();var c;b.enableServerStitchedDai&&2===a?(a=this.app,null===(c=a.C)||void 0===c?c=void 0:(b=a.getCurrentTime(),c=sT(c,1E3*b),c=null===c||void 0===c?void 0:c.videoData),c=c||a.getVideoData()):c=b;return c};
g.k.oh=function(a){return this.app.oh(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.W(this.app);return a?a.isHdr():!1};
g.k.LB=function(){return this.app.LB()};
g.k.xp=function(a){this.app.xp(a)};
g.k.Hf=function(a,b,c,d){this.app.re(a,b,c,d)};
g.k.yk=ba(8);g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){g.kN(this.app.rb()).fk("control_play");return}if(2===this.getPresentingPlayerType()){var b=NN(this.app.rb());if(b&&(b.Rm()||aJa(b)))return}}catch(c){g.Tx(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.W(this.app,a).stopVideo()};
g.k.Jl=function(a){g.W(this.app,a).Jl()};
g.k.addEventListener=function(a,b){this.app.Il.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Il.unsubscribe(a,b)};
g.k.ci=function(a){this.app.ci(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.Am=function(){var a={},b=g.W(this.app).Am();b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.nt=ba(10);g.k.Vx=function(a){this.app.Vx(a);a&&nFa(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.ot=ba(12);g.k.cj=ba(16);g.k.Rq=function(a,b){this.rb().Rq(a,b)};
g.k.hh=function(){var a=g.QN(this.rb());return!!a&&a.hh()};
g.k.Nj=function(){var a=g.QN(this.rb());return!!a&&a.Nj()};
g.k.setCardsVisible=function(a,b,c){var d=g.QN(this.rb());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.W("changeProductsInVideoVisibility",a)};
g.k.ir=ba(17);g.k.Jp=function(){var a=g.W(this.app);a&&a.Jp()};
g.k.Eu=function(a){this.Na("onVideoAreaChange");this.Na(a?"onShowControls":"onHideControls")};
g.k.Ri=function(a,b){var c=g.eN(this);if(c)return c.Ri(a,b);a=this.app.Za().Zf();return new g.pl(0,0,a.width,a.height)};
g.k.Kt=function(){var a=this.rb().od.get("heartbeat");return!!a&&a.Kt()};
g.k.Xe=function(){if(this.T().ma)return!1;var a=g.W(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.OH(b)||2===this.getPresentingPlayerType()&&!this.app.Md()||a.vl()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.Pw=function(){var a;return(null===(a=g.W(this.app))||void 0===a?void 0:a.Pw)||!1};
g.k.Bp=function(){var a=g.W(this.app);a&&a.Bp()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Dd=function(a,b){this.app.qs(a,b)};
g.k.Rf=function(a,b){this.app.QC(a,b)};
g.k.df=function(a,b){var c=this.app,d=g.W(c,b);d&&(a=d.Y.df(a),b&&c.getPresentingPlayerType()!==b||kY(c,"cuerangesremoved",a))};
g.k.Ad=function(a,b){(b=g.W(this.app,b))&&b.Ad(a)};
g.k.vl=function(){var a=g.W(this.app,void 0);return a?a.vl():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.Mf(a,0,100);cN(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){cN(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){cN(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.md=function(){return this.app.md()};
g.k.Fo=function(){return this.app.Fo()};
g.k.lh=function(a){return this.app.lh(a)};
g.k.getBandwidthEstimate=function(){return xF(this.T().schedule)};
g.k.Xb=function(a,b,c,d){this.T().Da&&this.app.Pm.Xb(a,b,c,void 0===d?!1:d)};
g.k.Ig=function(a,b,c){this.T().Da&&this.app.Pm.Ig(a,b,void 0===c?!1:c)};
g.k.Nl=function(a,b){this.T().Da&&this.app.Pm.Nl(a,b)};
g.k.Fb=function(a,b){this.T().Da&&this.app.Pm.click(a,b)};
g.k.ib=function(a,b,c){if(this.T().Da){var d=this.app.Pm;d.elements.has(a);b?d.i.add(a):d.i.delete(a);var e=g.Ix(),f=a.visualElement;d.l.has(a)?e&&f&&(b?g.iy(e,[f]):g.jy(e,[f])):b&&!d.u.has(a)&&(e&&f&&g.by(e,f,c),d.u.add(a))}};
g.k.Bt=function(a){return this.T().Da?this.app.Pm.Bt(a):!1};
g.k.Kc=function(){return g.W(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.jj=function(a){this.app.jj(a)};
g.k.Pv=function(a){this.app.Pv(a)};
g.k.jn=function(a){this.app.getPresentingPlayerType()===a&&this.app.jn(a)};
g.k.kB=function(a){return this.app.kB(a)};
g.k.xk=function(a){this.app.xk(a)};
g.k.VB=function(){this.app.VB()};
g.k.hq=function(a,b,c,d,e,f){return this.app.hq(a,b,c,d,e,f)};
g.k.Ft=function(a,b,c,d,e,f){return this.app.Ft(a,b,c,d,e,f)};
g.k.gp=function(a){this.app.gp(a)};
g.k.ao=function(a,b){b=void 0===b?Infinity:b;this.app.ao(void 0===a?-1:a,b)};
g.k.Cr=function(a,b,c){this.app.Cr(a,b,c)};
g.k.Cm=function(){return this.app.Cm()};
g.k.Zv=function(a,b,c){this.app.Zv(a,b,void 0===c?0:c)};
g.k.Mq=function(){return this.app.Mq()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Md=function(){return this.app.Md()};
g.k.Tm=function(a,b,c){return this.app.Tm(a,b,c)};
g.k.Ja=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.W(this.app,d))||void 0===e?void 0:e.Ja(a,b,c)};
g.k.jy=function(){return this.app.jy()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.jC=function(a,b){this.W("aduxmouseover",a,b)};
g.k.iC=function(a,b){this.W("aduxmouseout",a,b)};
g.k.wC=function(a,b){this.W("muteadaccepted",a,b)};g.v(g.qN,mx);g.qN.prototype.N=function(a,b,c,d,e){return mx.prototype.N.call(this,a,b,c,d,e)};gsa.prototype.reset=function(){this.i=this.l=NaN};rN.prototype.reset=function(){yA(this.timerName)};
rN.prototype.tick=function(a,b){EA(a,b,this.timerName)};
rN.prototype.info=function(a,b){g.DA(a,b,this.timerName)};g.sN.prototype.toString=function(){return this.type+this.id};g.v(g.tN,g.Q);g.k=g.tN.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Vj=function(a){return this.loop||!!a||0<=this.index-1};
g.k.fb=function(a,b,c){a=void 0!==a?a:this.index;a=this.items&&a in this.items?this.items[this.order[a]]:null;var d=null;a&&(b&&(a.autoplay="1"),c&&(a.autonav="1"),d=new g.rH(this.l,a),g.F(this,d),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.u++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.u++}this.W("shuffle")};
g.k.Ke=function(a){a=a||"hqdefault.jpg";var b=this.B[a];if(b||this.l.K||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return yG(this.l,this.C[0],a)};
g.k.onReady=function(a){this.i=a;this.loaded&&g.ms(this.i,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Im=function(){return this.l.getVideoUrl(this.fb().videoId,this.getPlaylistId())};
g.k.ra=function(){this.i=null;g.ff(this.items);g.Q.prototype.ra.call(this)};var osa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},psa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},qsa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},nsa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},lsa={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"},msa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.v(g.zN,g.Q);g.k=g.zN.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Se=function(){};
g.k.ri=function(){return!0};
g.k.ra=function(){this.loaded&&this.unload();g.Q.prototype.ra.call(this)};
g.k.Cb=function(){return{}};
g.k.getOptions=function(){return[]};g.v(g.CN,g.E);g.k=g.CN.prototype;g.k.Sm=ba(20);g.k.Qq=function(){};
g.k.Rl=function(){};
g.k.Mo=function(){return""};
g.k.JC=ba(21);g.k.ra=function(){this.Rl();g.E.prototype.ra.call(this)};g.v(g.DN,g.CN);g.DN.prototype.Sm=ba(19);g.DN.prototype.Qq=function(a){if(this.audioTrack)for(var b=g.q(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.BN(this.l,c.value);a()};
g.DN.prototype.Mo=function(a,b){var c=a.url,d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.it()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.bH(a));return bs(c,d)};
g.DN.prototype.Rl=function(){this.i&&this.i.abort()};g.FKa=new Map;g.v(g.FN,g.CN);g.FN.prototype.Sm=ba(18);
g.FN.prototype.Qq=function(a){var b=this,c=this.u,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.GH&&(d.asrs=1);c=bs(c,d);this.Rl();this.i=g.Ps(c,{format:"RAW",onSuccess:function(e){b.i=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),r=l.getAttribute("kind"),t=l.getAttribute("id"),u="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.BN(b.l,new g.ZG({languageCode:m,languageName:n,name:p,kind:r,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:u}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.C[m.languageCode]=m.languageName,b.B.push(m)}a()},
withCredentials:!0})};
g.FN.prototype.Mo=function(a,b){var c=this.u;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.bH(a));return c=bs(c,b)};
g.FN.prototype.Rl=function(){this.i&&this.i.abort()};g.KN={};g.v(GN,g.E);g.k=GN.prototype;g.k.Gu=function(){return this.I.getVideoData().Gu()};
g.k.iD=function(){return this.I.getVideoData().iD()};
g.k.zG=function(){var a=this.od.get("heartbeat");JN(this,"heartbeat",this.zG,!1,!0);!a&&this.od.has("heartbeat")&&this.I.W("offlineslatestatechange")};
g.k.HA=function(){JN(this,"annotations_module",this.HA,!0);var a=this.od.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.yG=function(){if(!this.od.get("ad"))try{IN(this)?JN(this,"ad",this.yG,!1,!0):this.I.Ad("ad")}catch(a){this.I.Ad("ad"),g.Tx(a)}};
g.k.Fo=function(){return this.i};
g.k.pB=function(){var a={},b=g.HN(this);b&&g.Ra(a,b.pB());return a};
g.k.Rq=function(a,b){g.Ra(this.i,a||null);g.Ra(this.Gs,b||null)};
g.k.ra=function(){g.E.prototype.ra.call(this);MN(this,1,!0)};g.v(SN,g.hf);SN.prototype.preventDefault=function(){g.hf.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
SN.prototype.stopPropagation=function(){g.hf.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.v(g.TN,wK);g.k=g.TN.prototype;g.k.Ln=function(){return!0};
g.k.isView=function(){return!1};
g.k.VC=function(){return!1};
g.k.ue=function(){return this.i};
g.k.vf=function(){return this.i.src};
g.k.wv=function(a){this.ea();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
g.k.Tx=function(){this.ea();this.i.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.i.playbackRate?this.i.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.ea();this.getPlaybackRate()!==a&&(this.i.playbackRate=a);return a};
g.k.ov=function(){return this.i.loop};
g.k.setLoop=function(a){this.ea();this.i.loop=a};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.Xl=function(){return this.i.paused};
g.k.Tr=function(){return this.i.seeking};
g.k.ck=function(){return this.i.ended};
g.k.xw=function(){return this.i.muted};
g.k.jr=function(a){cE();this.ea();this.i.muted=a};
g.k.Ko=function(){return this.i.played||dE([],[])};
g.k.Nf=function(){try{var a=this.i.buffered}catch(b){}return a||dE([],[])};
g.k.ut=function(){return this.i.seekable||dE([],[])};
g.k.uv=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.i.currentTime};
g.k.by=function(a){this.ea();this.i.currentTime=a};
g.k.getDuration=function(){return this.i.duration};
g.k.load=function(){this.ea();var a=this.i.playbackRate;try{this.i.load()}catch(b){}this.i.playbackRate=a};
g.k.pause=function(){this.ea();this.i.pause()};
g.k.play=function(){this.ea();var a=this.i.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.eh=function(){return this.i.readyState};
g.k.yw=function(){return this.i.networkState};
g.k.Ki=function(){return this.i.error?this.i.error.code:null};
g.k.Yd=function(){return this.i.error?this.i.error.message:""};
g.k.vv=function(){if(window.HTMLVideoElement&&this.i instanceof window.HTMLVideoElement&&this.i.getVideoPlaybackQuality)return this.i.getVideoPlaybackQuality();if(this.i){var a=this.i,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.zf=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
g.k.Bp=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.i,b=window.document;aE()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():bE()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Em=function(){var a=this.i;return new g.Qf(a.offsetLeft,a.offsetTop)};
g.k.Vp=function(){return g.Ol(this.i)};
g.k.setSize=function(a){g.Nl(this.i,a)};
g.k.getVolume=function(){return this.i.volume};
g.k.setVolume=function(a){cE();this.ea();this.i.volume=a};
g.k.QA=function(a){this.B[a]||(this.i.addEventListener(a,this.listener),this.B[a]=this.listener)};
g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.k.rs=ba(23);g.k.Ou=ba(25);g.k.Pu=ba(27);g.k.Ds=ba(29);g.k.Ns=function(){return kx(this.i)};
g.k.dm=function(a){g.K(this.i,a)};
g.k.vt=function(a){return g.Cl(this.i,a)};
g.k.JB=function(){return g.tg(document.body,this.i)};
g.k.ra=function(){for(var a=g.q(Object.keys(this.B)),b=a.next();!b.done;b=a.next())b=b.value,this.i.removeEventListener(b,this.B[b]);wK.prototype.ra.call(this)};
g.k.ea=function(){};g.v(VN,g.Q);g.k=VN.prototype;g.k.hQ=function(a){a=Tt(a);if(!Rf(a,this.B)){var b=2;this.G&&(b|=8);this.B=a;UN(this,b,!0)}};
g.k.iQ=function(){this.G&&UN(this,8,!0);UN(this,2,!1)};
g.k.vx=function(a){var b=Tt(a);Rf(b,this.B)||(this.B=b,(a=g.Qt(a))&&this.Nv(a)&&(UN(this,4,!0),this.i.fc(this.u),this.u=this.i.N(this.target,"mouseover",this.fC),this.J=this.i.N(this.target,"mouseout",this.fC)))};
g.k.fC=function(a){a=St(a);a&&this.Nv(a)||(this.B=new g.Qf(NaN,NaN),Msa(this))};
g.k.OP=function(){UN(this,1,!0)};
g.k.KO=function(a){a=g.Qt(a);a instanceof Element&&!(0<a.tabIndex)||UN(this,1,!0)};
g.k.tI=function(){this.G=!0;this.i.fc(this.C);this.C=this.i.N(document,"mouseup",this.jQ)};
g.k.jQ=function(){this.G=!1;UN(this,8,!1);this.i.fc(this.C);this.C=this.i.N(this.target,"mousedown",this.tI)};
g.k.HK=function(a){if(a=(a=a.changedTouches)&&a[0])this.va=a.identifier,this.i.fc(this.K),this.K=this.i.N(this.target,"touchend",this.GU,void 0,!0),UN(this,1024,!0)};
g.k.GU=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.va){var d=c;break}}d&&(this.i.fc(this.K),this.K=this.i.N(this.target,"touchstart",this.HK,void 0,!0),UN(this,1024,!1))};
g.k.zk=function(){UN(this,2,!0)};
g.k.resize=function(){g.aj&&Msa(this)};
g.k.toString=function(){return g.Q.prototype.toString.call(this)};g.v(g.WN,g.V);
g.WN.prototype.Ma=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.C&&(a.Da||b.pfpChazalUi))var c=b.pfpChazalUi?[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{D:"path",L:"ytp-dni-large-play-button-bg",V:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",V:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",L:"ytp-dni-large-play-button-bg",V:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{D:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.C?(g.N(this.element,"ytp-touch-device",b.i),c=[b.C?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{D:"path",L:"ytp-large-play-button-bg",V:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{D:"path",V:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",L:"ytp-large-play-button-bg",
V:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{D:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{D:"path",L:"ytp-large-play-button-bg",
V:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{D:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Sa("largePlayButtonChildren",c);a.C&&(a.Da||b.pfpChazalUi)&&(a=a.Da?a.Da:"#1f1f1f",this.Ba("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.v(XN,g.V);g.k=XN.prototype;g.k.show=function(){var a=this;this.vb||(this.u.N(this.api,"videodatachange",function(){g.Eq(a.i)}),this.u.N(this.api,"videoplayerreset",function(){g.Eq(a.i)}));
g.V.prototype.show.call(this)};
g.k.hide=function(){this.u&&g.ox(this.u);g.V.prototype.hide.call(this)};
g.k.tb=function(){g.Eq(this.i)};
g.k.IL=function(a){var b=this.api.T();g.S(b.experiments,"disable_new_pause_state3")&&zG(b)&&(a=a.state.isCued()&&!a.Zm.isCued()||g.lN(this.api)&&g.U(a.state,2),g.zl(this.element,"transition-delay",a?"2s":""));g.Eq(this.i)};
g.k.GT=function(){g.Eq(this.i)};
g.k.HL=function(){this.l.stop();this.hide();g.Eq(this.i)};
g.k.Ma=function(){var a=this.api.sb();if(3===this.api.getPresentingPlayerType()&&(a.tc()||g.U(a,4)))var b=!0;else(b=this.api.rb().od.get("ypc"))&&b.Jx?b=!0:(b=this.api.T(),b=g.U(a,2)&&iN(this.api)&&b.wc?!0:!1);b?(b=!0,this.B.hide()):(this.B.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!g.S(this.api.T().experiments,"disable_new_pause_state3"),b=!(!g.U(a,2)||iN(this.api)||b&&this.api.Us())||g.U(a,1024)?!0:!1));b?(this.l.show(),a=this.api.getVideoData(),this.WU(this.api.getPlaylist(),
a)):(this.l.hide(),g.U(a,1)||this.l.stop())};
g.k.WU=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=g.q(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof g.rH&&!c.videoId)){var d=this.api.Za().getPlayerSize();var e=g.AG(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.Ke("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.Ke("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.Ke("sddefault.jpg")||c.Ke("hqdefault.jpg")||c.Ke("mqdefault.jpg"))break;if(d=c.Ke("default.jpg"))break}this.C.style.backgroundImage=
d?"url("+d+")":""};g.v(g.cO,g.V);g.cO.prototype.resize=function(){};
g.cO.prototype.l=function(a){var b=this;Qsa(this);var c=a.TA,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.C?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Vc(fO(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Im(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.C?this.Vc(g.dO(a.errorMessage)):this.Vc(fO(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=
g.ti(c,{hl:a})),this.Vc(fO(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Ya&&!d.l&&Psa(this,function(e){if(g.YN(e,b.api,!zG(b.api.T()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Na("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var Osa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.v(hO,g.qN);
hO.prototype.kb=function(){var a=this;this.Tg();var b=this.I.getVideoData();if(b.isValid()){var c=this.I.T(),d=[],e="";if(!c.K){var f=Rsa(this);g.S(c.experiments,"enable_web_media_session_metadata_fix")&&g.VF(c)&&f?(d=Ssa(f.thumbnailDetails),f.album&&(e=g.Pz(f.album))):d=[{src:b.Ke("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.lN(this.I)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),b=
function(){a.I.nextVideo()},c=function(){a.I.previousVideo()});
gO(this,"nexttrack",b);gO(this,"previoustrack",c)}};
hO.prototype.Tg=function(){var a=this.I.sb();a=a.isError()?"none":g.HK(a)?"playing":"paused";this.mediaSession.playbackState=a};
hO.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.i),b=a.next();!b.done;b=a.next())gO(this,b.value,null);g.qN.prototype.ra.call(this)};g.v(iO,g.V);g.k=iO.prototype;g.k.onClick=function(a){g.YN(a,this.I,!0);this.I.Fb(this.element)};
g.k.kb=function(a,b){Tsa(this,b);this.hd&&Usa(this,this.hd)};
g.k.Dc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&Tsa(this,b);this.i&&Usa(this,a.state);this.hd=a.state};
g.k.Uc=function(){this.u.show();this.I.W("paidcontentoverlayvisibilitychange",!0);this.I.ib(this.element,!0)};
g.k.Ab=function(){this.u.hide();this.I.W("paidcontentoverlayvisibilitychange",!1);this.I.ib(this.element,!1)};g.v(jO,g.V);jO.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
jO.prototype.l=function(a){Vsa(a.state)?this.i.start():this.hide()};
jO.prototype.u=function(){this.message.style.display="block"};g.v(g.kO,g.xL);g.k=g.kO.prototype;g.k.show=function(){var a=this.Pf();g.xL.prototype.show.call(this);this.xa&&(this.J.N(window,"blur",this.Ab),this.J.N(document,"click",this.JL));a||this.W("show",!0)};
g.k.hide=function(){var a=this.Pf();g.xL.prototype.hide.call(this);Wsa(this);a&&this.W("show",!1)};
g.k.Uc=function(a,b){this.l=a;this.U.show();b?(this.K||(this.K=this.J.N(this.I,"appresize",this.WF)),this.WF()):this.K&&(this.J.fc(this.K),this.K=void 0)};
g.k.WF=function(){var a=g.eN(this.I);this.l&&a.mp(this.element,this.l)};
g.k.Ab=function(){var a=this.Pf();Wsa(this);this.U.hide();a&&this.W("show",!1)};
g.k.JL=function(a){var b=Rt(a);b&&(g.tg(this.element,b)||this.l&&g.tg(this.l,b)||!g.uM(a))||this.Ab()};
g.k.Pf=function(){return this.vb&&4!==this.U.state};g.v(mO,g.kO);mO.prototype.au=function(a){this.B&&(a?(Xsa(this),this.Uc()):(this.i&&this.Fb(),this.Ab()))};
mO.prototype.Tg=function(a){this.api.isMutedByMutedAutoplay()&&g.UI(a,2)&&this.Ab()};
mO.prototype.onClick=function(){this.api.unMute();this.Fb()};
mO.prototype.Fb=function(){this.u||(this.u=!0,this.api.Fb(this.element))};g.v(g.oO,g.qN);g.k=g.oO.prototype;g.k.init=function(){var a=this.api.sb();this.Lb(a);this.Sl();this.tb()};
g.k.kb=function(a,b){this.QB!==b.videoId&&(this.QB=b.videoId,a=this.fd,a.ma=b&&0<b.wc.length?5E3:3E3,UN(a,512,!0),this.Sl())};
g.k.iS=function(){this.kb("newdata",this.api.getVideoData())};
g.k.vn=function(){var a=this.api.hh()&&this.api.Nj();return this.Uv||a||this.CB};
g.k.Ei=function(){var a=!this.vn();g.N(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.Nv=function(a){try{if(!g.tg(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!xg(a);)a=a===this.api.getRootNode()?null:g.sg(a);return!!a};
g.k.bj=function(a){var b=this.api.getRootNode();g.N(b,"ytp-autohide",a);g.N(b,"ytp-autohide-active",!0);this.ZF.start(a?250:100);a&&(this.wy=!1,g.Oq(b,"ytp-touch-mode"));this.GA=!a;this.api.Eu(!a)};
g.k.kC=function(){var a=this.api.getRootNode();g.N(a,"ytp-autohide-active",!1)};
g.k.OS=function(){this.ED=!0};
g.k.NS=function(a){if(g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().J)this.ED=!1,this.FD&&this.fc(this.FD),0===this.Ut&&rO(this,a)?(this.Lw(),this.api.T().Z("embeds_enable_mobile_dtts")&&this.api.T().J&&qO&&12>=dI&&this.api.sb().isCued()?nO(this):this.Xv.start(),this.FD=this.N(this.api.Za(),"touchmove",this.OS,void 0,!0)):this.Xv.stop();!Zsa(this)||!rO(this,a)||this.api.T().J&&this.api.T().Z("embeds_enable_mobile_dtts")||
nO(this);var b=this.Cy.Pf();if(JF&&$sa(this,a))b&&g.Ut(a);else if(this.fd.l||pO(this,Rt(a))||this.Cy.Pf()||(this.api.sb().isCued(),g.Ut(a)),this.wy=!0,g.K(this.api.getRootNode(),"ytp-touch-mode"),this.fd.zk(),g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().J)if(b=this.api.sb(),!(!this.api.Xe()||g.U(b,2)&&iN(this.api)||g.U(b,64))){b=Date.now()-this.dI;this.Ut+=1;if(350>=b){this.Ks=!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.Ut-1);0<d&&d<b?(this.yu(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.yu(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Ut(a)}else this.api.T().J&&this.api.T().Z("embeds_enable_mobile_dtts")&&qO&&rO(this,a)&&g.Ut(a);this.dI=Date.now();this.ZJ.start()}};
g.k.JS=function(a){if(!$sa(this,a)){if(!Zsa(this)&&rO(this,a)&&!this.Xv.isActive()){if(g.FG(this.api.T())&&this.api.sb().isCued()){zA("warm");kA();yA();Zz(!1);Kr("TIMING_AFT_KEYS",[]);g.DA("yt_lt","warm");Kr("TIMING_ACTION","");Kr("TIMING_WAIT",[]);delete g.O("TIMING_INFO",{}).yt_lt;AA("warm",void 0);var b=["pbs","pbu"];jA("").info.actionType="watch";b&&Kr("TIMING_AFT_KEYS",b);Kr("TIMING_ACTION","watch");b=g.O("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.DA(c,b[c]);g.DA("is_nav",1);(c=
g.Ix())&&g.DA("csn",c);(c=g.O("PREVIOUS_ACTION",void 0))&&!pA()&&g.DA("pa",c);c=dA();b=g.O("CLIENT_PROTOCOL");var d=g.O("CLIENT_TRANSPORT");b&&g.DA("p",b);d&&g.DA("t",d);g.DA("yt_vis",LA());if("cold"===c.yt_lt){g.DA("yt_lt","cold");b=Xz();if(d=Yz())EA("srt",b.responseStart),1!==c.prerender&&AA("n",d);c=$ia();0<c&&EA("fpt",c);if(!g.Nr("log_deltas_killswitch")){var e,f,h,l;Vz&&Vz.timing&&(Vz.timeOrigin&&Vz.timing.navigationStart&&GA("startTimeDelta",Math.floor(Vz.timeOrigin)-Vz.timing.navigationStart),
(c=null===(l=null===(h=null===(f=null===(e=Vz.getEntriesByType)||void 0===e?void 0:e.call(Vz,"navigation"))||void 0===f?void 0:f[0])||void 0===h?void 0:h.toJSON)||void 0===l?void 0:l.call(h))&&c.responseEnd&&Vz.timing.responseEnd&&GA("responseEndDelta",Wz(c.responseEnd)-Vz.timing.responseEnd))}e=Xz();e.isPerformanceNavigationTiming&&g.DA("pnt",1,void 0);EA("nreqs",e.requestStart,void 0);EA("nress",e.responseStart,void 0);EA("nrese",e.responseEnd,void 0);0<e.redirectEnd-e.redirectStart&&(EA("nrs",
e.redirectStart,void 0),EA("nre",e.redirectEnd,void 0));0<e.domainLookupEnd-e.domainLookupStart&&(EA("ndnss",e.domainLookupStart,void 0),EA("ndnse",e.domainLookupEnd,void 0));0<e.connectEnd-e.connectStart&&(EA("ntcps",e.connectStart,void 0),EA("ntcpe",e.connectEnd,void 0));e.secureConnectionStart>=Yz()&&0<e.connectEnd-e.secureConnectionStart&&(EA("nstcps",e.secureConnectionStart,void 0),EA("ntcpe",e.connectEnd,void 0));Vz&&Vz.getEntriesByType&&eja();e=[];if(document.querySelector&&Vz&&Vz.getEntriesByName)for(var m in p2)p2.hasOwnProperty(m)&&
(f=p2[m],dja(m,f)&&e.push(f));e.length&&g.DA("rc",e.join(","))}xA();m=dA();f=Tz();if("cold"===m.yt_lt&&(e=qA(),h=e.gelTicks?e.gelTicks:e.gelTicks={},e=e.gelInfos?e.gelInfos:e.gelInfos={},pA())){for(var n in f)"tick_"+n in h||rA(n,f[n]);n=vA();f=eA();h={};for(var p in m)"info_"+p in e||!(l=uA(p,m[p]))||(gz(n,l),gz(h,l));mA().info(h,f)}Zz(!0);BA()}nO(this);g.Ut(a)}this.Ks&&(this.Ks=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Bv("embedsRequestStorageAccessResult",{resolved:!0});VEa(!0);Fu();window.location.reload()},function(){g.Bv("embedsRequestStorageAccessResult",{resolved:!1});
a.zr()})};
g.k.Lw=function(){};
g.k.Cp=function(){};
g.k.yu=function(){};
g.k.WJ=function(){};
g.k.zr=function(){var a=this.api.sb();g.U(a,2)&&iN(this.api)||(g.HK(a)?this.api.pauseVideo():(this.api.VB(),this.api.playVideo(),this.rq&&document.activeElement===this.rq.B.element&&this.api.getRootNode().focus()))};
g.k.KS=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!pO(this,Rt(a)))if(a=this.api.T(),(g.S(this.api.T().experiments,"player_doubletap_to_seek")||g.S(this.api.T().experiments,"embeds_enable_mobile_dtts")&&this.api.T().J)&&this.Ks)this.Ks=!1;else if(a.Pa&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.zt(d)})}catch(d){this.zt(d)}};
g.k.zt=function(a){String(a).includes("fullscreen error")?g.Ux(a):g.Tx(a)};
g.k.LS=function(a){ata(this,.3,a.scale);g.Ut(a)};
g.k.MS=function(a){ata(this,.1,a.scale)};
g.k.tb=function(){var a=this.api.Za().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.fd.resize();g.N(b,"ytp-fullscreen",this.api.isFullscreen());g.N(b,"ytp-large-width-mode",c);g.N(b,"ytp-small-mode",this.Ye());g.N(b,"ytp-tiny-mode",this.Sw());g.N(b,"ytp-big-mode",this.Ae());this.Xd&&this.Xd.resize(a)};
g.k.Tg=function(a){this.Lb(a.state);this.Sl()};
g.k.gB=function(){var a=!!this.QB&&!this.api.Ld(),b=2===this.api.getPresentingPlayerType(),c=this.api.T();if(b){if(rJa&&g.S(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=NN(this.api.rb());return a&&b.kD()}return a&&(c.wj||this.api.isFullscreen()||c.nf)};
g.k.Sl=function(){var a=this.gB();this.Yj!==a&&(this.Yj=a,g.N(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Lb=function(a){var b=a.isCued()||this.api.vl()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.HD&&this.fc(this.HD),this.HD=this.N(this.api.Za(),"touchstart",this.NS,void 0,b));var c=a.tc()&&!g.U(a,32)||this.api.Kt();UN(this.fd,128,!c);c=3===this.api.getPresentingPlayerType();UN(this.fd,256,c);c=this.api.getRootNode();if(g.U(a,2))var d=[O2.ENDED];else d=[],g.U(a,8)?d.push(O2.PLAYING):g.U(a,4)&&d.push(O2.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(O2.BUFFERING),g.U(a,32)&&
d.push(O2.SEEKING),g.U(a,64)&&d.push(O2.UNSTARTED);g.Ab(this.fA,d)||(g.Pq(c,this.fA),this.fA=d,g.Nq(c,d));d=this.api.T();var e=g.U(a,2);g.N(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.N(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.CB);g.U(a,128)&&!g.MF(d)?(this.Xd||(this.Xd=new g.cO(this.api),g.F(this,this.Xd),g.oN(this.api,this.Xd.element,4)),this.Xd.l(a.getData()),this.Xd.show()):this.Xd&&(this.Xd.dispose(),this.Xd=null)};
g.k.Sj=function(){return this.api.hh()&&this.api.Nj()?(this.api.setCardsVisible(!1,!1),!0):this.api.Ld()?(g.jN(this.api,!0),!0):!1};
g.k.au=function(a){this.CB=a;this.Ei()};
g.k.Ae=function(){return!1};
g.k.Ye=function(){return!this.Ae()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.Sw=function(){return this.Ye()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Th=function(){return this.wy};
g.k.Gm=function(){return null};
g.k.Ri=function(){var a=this.api.Za().getPlayerSize();return new g.pl(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.mp=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.Za().Eu(a)};
g.k.zk=function(){};
g.k.oH=function(){return null};g.v(sO,g.Q);g.k=sO.prototype;g.k.Ys=function(){return 1E3*this.api.getDuration(this.sj,!1)};
g.k.stop=function(){this.i&&this.Zd.fc(this.i)};
g.k.Rb=function(){var a=this.api.getProgressState(this.sj);this.l={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.sj,!1)};this.W("h")};
g.k.getProgressState=function(){return this.l};
g.k.Dc=function(a){g.UI(a,2)&&this.W("g")};g.v(tO,g.V);tO.prototype.onClick=function(){this.I.Na("BACK_CLICKED")};g.v(g.uO,g.V);g.uO.prototype.show=function(){g.V.prototype.show.call(this);g.Eq(this.i)};
g.uO.prototype.hide=function(){this.l.stop();g.V.prototype.hide.call(this)};
g.uO.prototype.Cp=function(a){a?g.U(this.I.sb(),64)||vO(this,Tqa(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?vO(this,Vqa(),"Stop live playback"):vO(this,Rqa(),"Pause"))};g.v(yO,g.V);g.k=yO.prototype;g.k.Uc=function(){this.I.T().Z("player_new_info_card_format")&&g.Mq(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.MF(this.I.T())||(this.l.show(),g.yu("iv-button-shown"))};
g.k.Ab=function(){g.yu("iv-button-hidden");this.l.hide()};
g.k.Pf=function(){return this.vb&&4!==this.l.state};
g.k.ra=function(){this.i&&this.i();g.V.prototype.ra.call(this)};
g.k.AR=function(){g.yu("iv-button-mouseover")};
g.k.onClicked=function(a){this.I.hh();var b=g.Mq(this.I.getRootNode(),"ytp-cards-teaser-shown");g.yu("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.Nj(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(AO,g.V);g.k=AO.prototype;g.k.QK=function(){this.I.hh()&&this.I.Nj()&&this.Pf()&&this.Ab()};
g.k.vD=function(){this.Ab();g.yu("iv-teaser-clicked",null!=this.i);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.KL=function(){g.yu("iv-teaser-mouseover");this.i&&this.i.stop()};
g.k.kT=function(a){g.S(this.I.T().experiments,"player_new_info_card_format")&&!g.MF(this.I.T())&&this.Nh.Ab();this.i||!a||this.I.Nj()||this.l&&this.l.isActive()||(this.Uc(a),g.yu("iv-teaser-shown"))};
g.k.Uc=function(a){this.Sa("text",a.teaserText);this.element.setAttribute("dir",g.Xq(a.teaserText));this.B.show();this.l=new g.J(function(){g.K(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.Z("player_new_info_card_format")&&!g.MF(this.I.T())&&this.Nh.Ab();this.SD()},0,this);
this.l.start();xO(this.Nh,!1);this.i=new g.J(this.Ab,580+a.durationMs,this);this.i.start();this.C.push(this.Ra("mouseover",this.CE,this));this.C.push(this.Ra("mouseout",this.BE,this))};
g.k.SD=function(){if(!g.S(this.I.T().experiments,"player_new_info_card_format")&&g.MF(this.I.T())&&this.vb){var a=this.Nh.element.offsetLeft,b=g.cg("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Nh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.jO=function(){g.MF(this.I.T())&&this.U.Ye()&&this.vb&&this.K.start()};
g.k.CE=function(){this.G.stop();this.i&&this.i.isActive()&&this.J.start()};
g.k.BE=function(){this.J.stop();this.i&&!this.i.isActive()&&this.G.start()};
g.k.SR=function(){this.i&&this.i.stop()};
g.k.RR=function(){this.Ab()};
g.k.Zh=function(){this.Ab()};
g.k.Ab=function(){!this.i||this.u&&this.u.isActive()||(g.yu("iv-teaser-hidden"),this.B.hide(),g.Oq(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.u=new g.J(function(){for(var a=g.q(this.C),b=a.next();!b.done;b=a.next())this.fc(b.value);this.C=[];this.i&&(this.i.dispose(),this.i=null);xO(this.Nh,!0)},330,this),this.u.start())};
g.k.Pf=function(){return this.vb&&4!==this.B.state};
g.k.ra=function(){var a=this.I.getRootNode();a&&g.Oq(a,"ytp-cards-teaser-shown");g.ff(this.l,this.u,this.i);g.V.prototype.ra.call(this)};var cta=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));var T2={},DO=(T2.BUTTON="ytp-button",T2.TITLE_NOTIFICATIONS="ytp-title-notifications",T2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",T2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",T2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",T2);g.v(EO,g.V);EO.prototype.onClick=function(){this.api.Fb(this.element);var a=!this.i;this.Sa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Sa("pressed",a);fta(this,a)};g.v(g.GO,g.V);g.GO.prototype.l=function(){g.K(this.element,"ytp-sb-subscribed")};
g.GO.prototype.u=function(){g.Oq(this.element,"ytp-sb-subscribed")};g.v(HO,g.V);g.k=HO.prototype;g.k.WC=function(){jta(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.YA=function(){if(hta(this)&&!this.isExpanded()){this.Sa("flyoutUnfocusable","false");this.Sa("channelTitleFocusable","0");this.u&&this.u.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.ib(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.l&&a.uh&&a.subscribed&&(this.l.show(),this.api.ib(this.l.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.AA=function(){this.Sa("flyoutUnfocusable","true");this.Sa("channelTitleFocusable","-1");this.u&&this.u.start()};
g.k.Ma=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Hb&&!!a.rg:g.MF(b)&&(c=!!a.videoId&&!!a.Hb&&!!a.rg&&!(a.C&&b.pfpChazalUi));var d=g.MG(this.api.T())+a.Hb;g.MF(this.api.T())&&(d=g.ti(d,g.CO("emb_ch_name_ex")));var e=a.Hb,f=a.rg;b=g.MF(b)?a.Tk:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.MG(this.api.T())+e,this.J!==f&&(this.i.style.backgroundImage="url("+f+")",this.J=f),this.Sa("channelLink",
e),this.Sa("channelLogoLabel",g.eJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.K(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Oq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.ib(this.i,c&&this.Y);this.subscribeButton&&(this.subscribeButton.channelId=a.Fh);this.Sa("expandedTitle",a.Tk);this.Sa("channelTitleLink",d);this.Sa("expandedSubtitle",a.expandedSubtitle)};g.v(g.JO,g.xL);g.JO.prototype.Sa=function(a,b){g.xL.prototype.Sa.call(this,a,b);this.W("size-change")};g.v(MO,g.xL);MO.prototype.NI=function(){this.W("size-change")};
MO.prototype.focus=function(){this.content.focus()};
MO.prototype.RQ=function(){this.W("back")};g.v(g.NO,MO);g.NO.prototype.yc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.xb(this.items,a,kta);if(0<=b)return;b=~b;g.ub(this.items,b,0,a);g.qg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.vC,this);this.menuItems.W("size-change")};
g.NO.prototype.Gf=function(a){a.unsubscribe("size-change",this.vC,this);this.Ha()||(g.ob(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.W("size-change"))};
g.NO.prototype.vC=function(){this.menuItems.W("size-change")};
g.NO.prototype.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};g.v(PO,g.JO);PO.prototype.i=function(a){g.Vt(a)||39!==g.Wt(a)||(this.element.click(),g.Ut(a))};g.v(RO,g.JO);RO.prototype.onClick=function(){this.setValue(!this.checked);this.W("select",this.checked)};
RO.prototype.getValue=function(){return this.checked};
RO.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.v(SO,g.NO);g.k=SO.prototype;g.k.hR=function(){aO(this.oq.element)};
g.k.vR=function(){UO(this,this.I.getDebugText(!0))&&vO(this.jc,AL())};
g.k.wR=function(){UO(this,this.I.getVideoEmbedCode())&&vO(this.jc,Mqa());this.I.Fb(this.Qi.element);DM("EMBED",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.xR=function(){UO(this,this.I.getVideoUrl(!0,!0))&&vO(this.jc,FL());this.I.Fb(this.getVideoUrl.element);DM("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.yR=function(){UO(this,this.I.getVideoUrl(!1,!0))&&vO(this.jc,FL());this.I.Fb(this.Si.element);DM("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.aJ=function(a){var b;null===(b=this.Wh)||void 0===b?void 0:b.setValue(a)};
g.k.MR=function(){this.I.setLoopVideo(this.Wh.getValue());this.xb.Ab();this.I.Fb(this.Wh.element)};
g.k.DS=function(a){this.I.reportPlaybackIssue();if(g.YN(a,this.I,!zG(this.I.T()))){a=this.I;var b=a.app.getFeedbackProductData();a.Na("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.xb.Ab()};
g.k.XS=function(){this.I.showVideoInfo();this.xb.Ab()};
g.k.kb=function(a,b){this.ni(b)};
g.k.ni=function(a){var b,c=this.I.T(),d=2===this.I.getPresentingPlayerType(),e=!d||a.isListed;e=!c.K&&!!a.videoId&&e;"play"!==c.playerStyle?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.l&&(c.fmt=a.l.kc()),a.clientPlaybackNonce&&(c.cpn=a.clientPlaybackNonce),a.va&&(c.partnerid=a.va),c=g.ti("//support.google.com/googleplay/",c));g.wL(this.Qi,e&&a.allowEmbed);g.wL(this.getVideoUrl,e);g.wL(this.Si,e&&
!a.isLivePlayback);this.Au.Vc(c,"href");null===(b=this.Wh)||void 0===b?void 0:g.wL(b,!a.isLivePlayback&&!d)};
g.k.Ub=function(a){g.NO.prototype.Ub.call(this,a);this.I.ib(this.Qi.element,a);this.I.ib(this.getVideoUrl.element,a);this.I.ib(this.Si.element,a);this.Wh&&this.I.ib(this.Wh.element,a)};g.v(g.VO,g.kO);g.k=g.VO.prototype;g.k.show=function(){g.kO.prototype.show.call(this);this.Dr()};
g.k.hide=function(){g.kO.prototype.hide.call(this);1<this.i.length&&g.XO(this)};
g.k.Dr=function(){nta(this);this.vb&&(mta(this),g.Nl(this.element,this.size))};
g.k.Wg=function(){var a=this.i.pop();WO(this,a,this.i[this.i.length-1],!0)};
g.k.LL=function(a){if(!g.Vt(a))switch(g.Wt(a)){case 27:this.Ab();g.Ut(a);break;case 37:1<this.i.length&&this.Wg();g.Ut(a);break;case 39:g.Ut(a)}};
g.k.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
g.k.ra=function(){g.kO.prototype.ra.call(this);this.B&&this.B.dispose();this.G&&this.G.dispose()};g.v(g.YO,g.VO);g.k=g.YO.prototype;g.k.NL=function(a){var b,c=Rt(a);c&&(zg(c,"a")||zg(c,null,"ytp-no-contextmenu",void 0))||this.vb||(this.ma=(a=null===(b=a.touches)||void 0===b?void 0:b.item(0))?new g.Qf(a.clientX,a.clientY):new g.Qf(0,0),this.X.start())};
g.k.xJ=function(){this.X.stop()};
g.k.pT=function(){this.open(this.ma)};
g.k.show=function(){this.C||(this.C=new SO(this.I,this.va,this,this.jc),g.F(this,this.C),g.TO(this,this.C));this.C.aJ(this.I.getLoopVideo());g.VO.prototype.show.call(this);this.I.ib(this.element,!0);this.C.Ub(!0)};
g.k.hide=function(){pta(this);g.VO.prototype.hide.call(this);this.I.ib(this.element,!1);this.C&&this.C.Ub(!1)};
g.k.eR=function(a){var b=Rt(a);this.vb||b&&(zg(b,"a")||zg(b,null,"ytp-no-contextmenu",void 0))||(g.Ut(a),this.open(Tt(a)))};
g.k.open=function(a){qta(this);var b=this.I.getVideoData();g.N(this.element,"ytp-dni",b.C);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.Uc();var c=document.body;b=new ml(0,Infinity,Infinity,0);var d=Yf(c);for(var e=d.i.body,f=d.i.documentElement,h=gg(d.i);c=Fea(c);)if(!(g.fe&&0==c.clientWidth||g.ig&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=El(c,"overflow")){var l=g.Il(c),m=new g.Qf(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,
l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.i;d=fg(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=a,e=b,f=5,65==(f&65)&&(h.x<d.left||h.x>=d.right)&&(f&=-2),132==(f&132)&&(h.y<d.top||h.y>=d.bottom)&&
(f&=-5),h.x<d.left&&f&1&&(h.x=d.left),f&16&&(c=h.x,h.x<d.left&&(h.x=d.left),h.x+e.width>d.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.y<d.top&&f&4&&(h.y=d.top),f&32&&(c=h.y,h.y<d.top&&(h.y=d.top),h.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height,0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.pl(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Gl(this.element,new g.Qf(d.left,d.top));g.ox(this.u);this.u.N(document,"contextmenu",this.nR);this.u.N(this.I,"fullscreentoggled",this.Me);this.u.N(this.I,"pageTransition",this.ML)};
g.k.nR=function(a){if(!g.Vt(a)){var b=Rt(a);g.tg(this.element,b)||this.Ab();this.I.T().disableNativeContextMenu&&g.Ut(a)}};
g.k.Me=function(){this.Ab();qta(this)};
g.k.ML=function(){this.Ab()};g.v(g.ZO,g.V);g.ZO.prototype.onClick=function(){return g.D(this,function b(){var c=this,d,e,f,h;return g.z(b,function(l){if(1==l.i)return d=c.api.T(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.w(l,sta(c,h),2);l.l&&rta(c);c.api.Fb(c.element);g.sa(l)})})};
g.ZO.prototype.Ma=function(){var a=this.api.T(),b=this.api.getVideoData();this.Sa("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.Sa("title-attr","Copy link");var c=this.api.Za().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.l&&b.Bj&&!(b.C&&a.pfpChazalUi);g.N(this.element,"ytp-copylink-button-visible",this.visible);g.wL(this,this.visible);aP(this.tooltip);this.api.ib(this.element,this.visible&&this.Y)};
g.ZO.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.api.ib(this.element,this.visible&&a)};
g.ZO.prototype.ra=function(){g.V.prototype.ra.call(this);g.Oq(this.element,"ytp-copylink-button-visible")};g.v(bP,g.V);bP.prototype.show=function(){g.V.prototype.show.call(this);g.Eq(this.l)};
bP.prototype.hide=function(){this.u.stop();g.Oq(this.element,"ytp-chapter-seek");g.Oq(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)};
bP.prototype.yu=function(a,b,c,d){var e=-1===a?this.C:this.B;e&&this.I.Fb(e);g.Gq(this.l);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.Za().getPlayerSize().height;e=this.I.Za().getPlayerSize();e=e.width/3-3*e.height;this.i.style.width=f+"px";this.i.style.height=f+"px";1===a?(this.i.style.left="",this.i.style.right=e+"px"):-1===a&&(this.i.style.right="",this.i.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.Ba("ytp-doubletap-ripple");l.style.width=h+
"px";l.style.height=h+"px";1===a?(a=this.I.Za().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.Ba("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");tta(this,d)};var GKa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(GKa).reduce(function(a,b){a[GKa[b]]=b;return a},{});
var HKa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(HKa).reduce(function(a,b){a[HKa[b]]=b;return a},{});
var IKa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(IKa).reduce(function(a,b){a[IKa[b]]=b;return a},{});var U2,JKa;U2=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];JKa=[{option:0,text:eP(0)},{option:.25,text:eP(.25)},{option:.5,text:eP(.5)},{option:.75,text:eP(.75)},{option:1,text:eP(1)}];
g.hP=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:U2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:eP(.5)},{option:-1,text:eP(.75)},{option:0,text:eP(1)},{option:1,text:eP(1.5)},{option:2,text:eP(2)},
{option:3,text:eP(3)},{option:4,text:eP(4)}]},{option:"background",text:"Background color",options:U2},{option:"backgroundOpacity",text:"Background opacity",options:JKa},{option:"windowColor",text:"Window color",options:U2},{option:"windowOpacity",text:"Window opacity",options:JKa},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",text:"Font opacity",
options:[{option:.25,text:eP(.25)},{option:.5,text:eP(.5)},{option:.75,text:eP(.75)},{option:1,text:eP(1)}]}];g.v(g.gP,g.qN);g.k=g.gP.prototype;
g.k.wH=function(a){var b=!1,c=g.Wt(a),d=Rt(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.Vt(a)?(e=!1,h=!0):l.Id&&(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);wO(this.jc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);wO(this.jc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Xe()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.Xe()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&this.fD(!0);(b||h)&&this.fd.zk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Ut(a);l.u&&(a={keyCode:g.Wt(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Vt(a),fullscreen:this.api.isFullscreen()},this.api.Na("onKeyPress",a))};
g.k.xH=function(a){this.handleGlobalKeyUp(g.Wt(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.mN(this.api.rb());c&&(c=c.xn)&&c.vb&&(c.sH(a),b=!0);9===a&&(this.fD(!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.T();if(e.Id)return h;var l=g.mN(this.api.rb());if(l&&(l=l.xn)&&l.vb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.rH(a)}e.C||h||(h=f||String.fromCharCode(a).toLowerCase(),this.l+=h,0==="awesome".indexOf(this.l)?(h=!0,7===this.l.length&&Qq(this.api.getRootNode(),"ytp-color-party")):(this.l=h,h=0==="awesome".indexOf(this.l)));if(!h){f=(f=this.api.getVideoData())?f.Jk:[];l=ZT?d:c;switch(a){case 80:b&&
!e.ma&&(vO(this.jc,Uqa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.ma&&(vO(this.jc,GL(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.Xe()&&(this.api.startSeekCsiAction(),e.Z("web_player_seek_chapters_by_shortcut")&&this.i?cP(this.i,-1,10):vO(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),h=!0);break;case 76:this.api.Xe()&&(this.api.startSeekCsiAction(),e.Z("web_player_seek_chapters_by_shortcut")&&this.i?cP(this.i,1,10):vO(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),h=!0);break;case 37:this.api.Xe()&&(this.api.startSeekCsiAction(),l&&e.Z("web_player_seek_chapters_by_shortcut")?(l=vta(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(dP(this.i,-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&this.i?cP(this.i,-1,5):vO(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),h=!0));break;case 39:this.api.Xe()&&(this.api.startSeekCsiAction(),l&&e.Z("web_player_seek_chapters_by_shortcut")?(l=uta(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(dP(this.i,1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.Z("web_player_seek_chapters_by_shortcut")&&null!=this.i?cP(this.i,1,5):vO(this.jc,{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),wO(this.jc,this.api.getVolume(),!1)):(this.api.mute(),wO(this.jc,0,!0));h=!0;break;case 32:case 75:e.ma||(h=!g.HK(this.api.sb()),this.jc.Cp(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.Kb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),bta(this.jc,!1),h=!0):this.api.Xe()&&(xta(this,1),h=!0);break;case 188:b?e.Kb&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-
.25,!0),bta(this.jc,!0),h=!0):this.api.Xe()&&(xta(this,-1),h=!0);break;case 70:Nsa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:this.B()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.HN(this.api.rb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),vO(this.jc,Lqa(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:iP(this,"textOpacity");break;case 87:iP(this,"windowOpacity");break;case 187:case 61:iP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:iP(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.Xe()&&(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.fd.zk()}return h};
g.k.fD=function(a){g.N(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.N(this.contextMenu.element,"ytp-probably-keyboard-focus",a)};
g.k.ra=function(){g.Gq(this.u);g.qN.prototype.ra.call(this)};g.v(jP,g.V);jP.prototype.Ma=function(){var a=g.MF(this.I.T())&&g.lN(this.I)&&g.U(this.I.sb(),128),b=this.I.getPlayerSize();this.visible=this.i.Ye()&&!a&&240<=b.width&&!(this.I.getVideoData().C&&this.I.T().pfpChazalUi);g.N(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&aP(this.tooltip);this.I.ib(this.element,this.visible&&this.Y)};
jP.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.I.ib(this.element,this.visible&&a)};
jP.prototype.ra=function(){g.V.prototype.ra.call(this);g.Oq(this.element,"ytp-overflow-button-visible")};g.v(kP,g.kO);g.k=kP.prototype;g.k.OL=function(a){a=Rt(a);g.tg(this.element,a)&&(g.tg(this.i,a)||g.tg(this.closeButton,a)||lO(this))};
g.k.Ab=function(){g.kO.prototype.Ab.call(this);this.tooltip.Ni(this.element)};
g.k.show=function(){this.vb&&this.I.W("OVERFLOW_PANEL_OPENED");g.kO.prototype.show.call(this);this.element.setAttribute("aria-modal","true");yta(this,!0)};
g.k.hide=function(){g.kO.prototype.hide.call(this);this.element.removeAttribute("aria-modal");yta(this,!1)};
g.k.Me=function(a){!a&&this.Pf()&&lO(this)};
g.k.focus=function(){for(var a=g.q(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.vb){b.focus();break}};g.v(mP,g.V);mP.prototype.onClick=function(a){g.YN(a,this.api)&&this.api.playVideoAt(this.index)};g.v(nP,g.kO);g.k=nP.prototype;g.k.show=function(){g.kO.prototype.show.call(this);this.u.N(this.api,"videodatachange",this.nz);this.u.N(this.api,"onPlaylistUpdate",this.nz);this.nz()};
g.k.hide=function(){g.kO.prototype.hide.call(this);g.ox(this.u);this.updatePlaylist(null)};
g.k.nz=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.Wx=function(){var a=this.playlist,b=a.u;if(b===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.q(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;d<c;d++){var e=new mP(this.api,a,d);this.i.push(e);e.ya(this.items)}this.selected=this.i[a.index];this.B=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.oT=function(a){var b=this.api.getVideoUrl(!0);g.ZN(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.Wx,this),this.playlist=a,this.B=null,a){a.subscribe("shuffle",this.Wx,this);var b=a.author,c={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(c.AUTHOR=b);this.update({title:a.title,subtitle:g.eJ(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.Wx()}else this.vb&&this.hide();
else this.playlist&&this.Wx()};
g.k.focus=function(){this.selected.focus()};
g.k.ra=function(){this.hide();g.kO.prototype.ra.call(this)};g.v(oP,g.V);
oP.prototype.Ma=function(){var a=g.MF(this.api.T());g.N(this.element,"ytp-playlist-menu-button-tiny",400>this.api.Za().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.eJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.eJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.vb||(this.show(),aP(this.tooltip)),this.visible=!0,this.Ub(!0)):
this.vb&&(this.hide(),this.Ub(!1),aP(this.tooltip))};
oP.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.api.ib(this.element,this.visible&&a)};
oP.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ma,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ma,this);this.Ma()};g.v(pP,g.V);g.k=pP.prototype;
g.k.oz=function(a,b){if(!this.B){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n;a=this.tooltipRenderer.text;var p=!1;(null===(c=null===a||void 0===a?void 0:a.runs)||void 0===c?0:c.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),p=!0);g.Pl(this.title,p);a=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===a||void 0===a?void 0:a.runs)||void 0===d?0:d.length)&&a.runs[0].text){p=a.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(-1<d)if(this.tooltipRenderer.targetId){a=
[];p=p.split("$TARGET_ICON");var r=new g.tL({D:"span",L:"ytp-promotooltip-details-icon",S:[KKa[this.tooltipRenderer.targetId]]});g.F(this,r);for(var t=[],u=g.q(p),x=u.next();!x.done;x=u.next())x=new g.tL({D:"span",L:"ytp-promotooltip-details-component",oa:x.value}),g.F(this,x),t.push(x);2===p.length?(a.push(t[0].element),a.push(r.element),a.push(t[1].element)):1===p.length&&(0===d?(a.push(r.element),a.push(t[0].element)):(a.push(t[0].element),a.push(r.element)));d=a.length?a:null}else d=null;else d=
p;if(d){if("string"!==typeof d)for(g.pg(this.details),c=g.q(d),d=c.next();!d.done;d=c.next())this.details.appendChild(d.value);else this.update({details:d});c=!0}}g.Pl(this.details,c);c=this.tooltipRenderer.acceptButton;d=!1;(null===(h=null===(f=null===(e=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===e?void 0:e.text)||void 0===f?void 0:f.runs)||void 0===h?0:h.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),d=!0);
g.Pl(this.acceptButton,d);e=this.tooltipRenderer.dismissButton;f=!1;(null===(n=null===(m=null===(l=null===e||void 0===e?void 0:e.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?0:n.length)&&e.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.Pl(this.dismissButton,f)}b&&(this.u=b);this.i=zta(this);this.C=!1;this.I.T().Z("web_player_hide_nitrate_promo_tooltip")||g.wL(this,!0);(b=!this.i)||(b=this.i,
l=window.getComputedStyle(b),b="none"===l.display||"hidden"===l.visibility||"true"===b.getAttribute("aria-hidden"));b||this.I.Ce()?g.wL(this,!1):(b=g.Ol(this.i),b.width&&b.height?(this.J.mp(this.element,this.i),l=this.I.Za().getPlayerSize().height-g.Ol(this.element).height-b.height-12,this.element.style.top=l+"px",l=this.Ba("ytp-promotooltip-pointer"),m=g.Ml(this.i,this.I.getRootNode()),n=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.I.isFullscreen()?18:12,l.style.left=m.x-n+b.width/
2-e+"px"):g.wL(this,!1));this.G||(this.G=!0,rP(this,0));this.l&&this.I.ib(this.element,this.vb)}};
g.k.gR=function(){qP(this);this.C=!0};
g.k.rQ=function(){this.B=!0;rP(this,1);this.I.W("promotooltipacceptbuttonclicked",this.acceptButton);qP(this);this.l&&this.I.Fb(this.acceptButton)};
g.k.mR=function(){this.B=!0;rP(this,2);qP(this);this.l&&this.I.Fb(this.dismissButton)};
g.k.PL=function(a){var b,c;if(1===this.I.getPresentingPlayerType()){var d=!0,e=g.cg("ytp-ad-overlay-ad-info-dialog-container"),f=Rt(a);if(this.u&&f&&g.tg(this.u,f))this.u=null;else{1===this.I.getPresentingPlayerType()&&f&&Array.from(f.classList).forEach(function(l){l.startsWith("ytp-ad")&&(d=!1)});
var h=Ata(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.tg(this.element,f)):"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null===(c=this.tooltipRenderer.dismissStrategy)||void 0===c?void 0:c.type)&&(d=h?!1:d&&g.tg(this.element,f));this.i&&this.vb&&!e&&(!f||d&&g.uM(a))&&(this.B=!0,qP(this))}}};
g.k.tb=function(){this.C||(this.i||(this.i=zta(this)),this.oz())};
var KKa={"ytp-settings-button":g.JL()};g.v(sP,g.V);sP.prototype.i=function(a){g.wL(this,g.U(a.state,2))};
sP.prototype.onClick=function(){this.I.sb();this.I.playVideo()};g.v(g.tP,g.V);g.tP.prototype.onClick=function(){var a=this.api.T(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d.catch(Bta)}catch(e){e instanceof Error&&Bta(e)}else this.i.Sj(),lO(this.u,this.element,!1);this.api.Fb(this.element)};
g.tP.prototype.Ma=function(){var a=this.api.T(),b=this.api.getVideoData(),c=g.MF(a)&&g.lN(this.api)&&g.U(this.api.sb(),128);this.Sa("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});a=a.disableSharing&&2!==this.api.getPresentingPlayerType()||
!b.showShareButton||b.Bj||c||b.C&&a.pfpChazalUi;c=this.api.Za().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.l&&!a;g.N(this.element,"ytp-share-button-visible",this.visible);g.wL(this,this.visible);aP(this.tooltip);this.api.ib(this.element,this.visible&&this.Y)};
g.tP.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.api.ib(this.element,this.visible&&a)};
g.tP.prototype.ra=function(){g.V.prototype.ra.call(this);g.Oq(this.element,"ytp-share-button-visible")};g.v(g.uP,g.kO);g.k=g.uP.prototype;g.k.QL=function(a){a=Rt(a);g.tg(this.C,a)||g.tg(this.closeButton,a)||lO(this)};
g.k.Ab=function(){g.kO.prototype.Ab.call(this);this.tooltip.Ni(this.element)};
g.k.show=function(){var a=this.vb;g.kO.prototype.show.call(this);this.Ma();a||this.api.Na("onSharePanelOpened")};
g.k.XP=function(){this.vb&&this.Ma()};
g.k.Ma=function(){var a=this;g.K(this.element,"ytp-share-panel-loading");g.Oq(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.B.checked;b.getSharePanelCommand&&KM(this.api.ll(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ha()||(g.Oq(a.element,"ytp-share-panel-loading"),Dta(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.XF(this.api.T())&&(b=g.ti(b,g.CO("emb_share")));this.Sa("link",b);this.Sa("linkText",b);this.Sa("shareLinkWithUrl",g.eJ("Share link $URL",{URL:b}));aO(this.u)};
g.k.Me=function(a){!a&&this.Pf()&&lO(this)};
g.k.focus=function(){this.u.focus()};
g.k.ra=function(){g.kO.prototype.ra.call(this);Cta(this)};g.v(xP,g.V);g.k=xP.prototype;g.k.lC=function(){};
g.k.mC=function(){};
g.k.Hu=function(){return!0};
g.k.sU=function(){if(this.expanded){this.va.show();var a=this.G.element.scrollWidth}else a=this.G.element.scrollWidth,this.va.hide();this.Pa=34+a;g.N(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Pa)+"px";this.ma.start()};
g.k.DO=function(){this.badge.element.style.width=(this.expanded?this.Pa:34)+"px";this.Ea.start()};
g.k.TU=function(){g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Eh=function(){this.Hu()?this.K.show():this.K.hide();Eta(this)};
g.k.RL=function(){this.enabled=!1;this.Eh()};
g.k.SU=function(a){this.Va=a;this.Eh()};
g.k.UQ=function(a){this.Ga=1===a;this.Eh();g.N(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.tR=function(){g.N(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.Eh()};g.v(yP,xP);g.k=yP.prototype;g.k.ra=function(){zP(this);xP.prototype.ra.call(this)};
g.k.lC=function(a){a.target!==this.dismissButton.element&&(Gta(this,!1),this.I.Na("innertubeCommand",this.onClickCommand))};
g.k.mC=function(){this.u=!0;Gta(this,!0);this.Eh()};
g.k.mS=function(a){this.Aa=a;this.Eh()};
g.k.dS=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.xa&&(this.U=a,a||(a=3+this.I.getCurrentTime(),this.Dd(a)))};
g.k.kb=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.u=!1,this.i=!0,this.U=this.xa=this.l=this.J=!1,zP(this);if(a||!b.videoId)this.C=this.B=!1;a=b.shoppingOverlayRenderer;this.Aa=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.B){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.B=!!h)&&this.I.Nl(this.badge.element,h||null)}this.C||(this.C=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&this.I.Nl(this.dismissButton.element,
(null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.Pz(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.La=g.Pz(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;KH(b)?this.U=this.xa=!0:this.Dd()}Fta(this);wP(this);this.Eh()};
g.k.Hu=function(){return this.Va&&!this.Aa&&this.enabled&&!this.u&&!this.Ya.Ye()&&!this.Ga&&!this.U&&(this.l||this.i)};
g.k.Fe=function(a){(this.l=a)?(vP(this),wP(this,!1)):(zP(this),this.X.start());this.Eh()};
g.k.Dd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Fz(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:7,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Fz(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:7,namespace:"shopping_overlay_expanded"}));this.I.Dd(b)};g.v(AP,g.kO);AP.prototype.show=function(){g.kO.prototype.show.call(this);this.B.start()};
AP.prototype.hide=function(){g.kO.prototype.hide.call(this);this.B.stop()};
AP.prototype.Gq=function(a,b){"dataloaded"===a&&((this.u=b.rF,this.i=b.pF,isNaN(this.u)||isNaN(this.i))?this.C&&(this.I.df("intro"),this.I.removeEventListener(g.Iz("intro"),this.ma),this.I.removeEventListener(g.Jz("intro"),this.X),this.I.removeEventListener("onShowControls",this.G),this.hide(),this.C=!1):(this.I.addEventListener(g.Iz("intro"),this.ma),this.I.addEventListener(g.Jz("intro"),this.X),this.I.addEventListener("onShowControls",this.G),a=new g.Fz(this.u,this.i,{priority:7,namespace:"intro"}),
this.I.Dd([a]),this.C=!0))};g.v(BP,g.V);BP.prototype.onClick=function(){this.I.Bp()};
BP.prototype.Ma=function(){var a=!0,b=this.I.T();(b.Z("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.Z("embeds_use_native_controls_killswitch")&&b.i)&&g.MF(b)&&(a=a&&480<=this.I.Za().getPlayerSize().width);g.wL(this,a);this.Sa("icon",this.I.zf()?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{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"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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 hv("yt.autonav");g.v(CP,g.V);g.k=CP.prototype;
g.k.Vr=function(){if(3!==this.I.getPresentingPlayerType()&&g.pN(this.I)&&400<=this.I.Za().getPlayerSize().width&&!1!==this.I.getVideoData().NP){if(!this.i){this.i=!0;g.wL(this,this.i);this.l.push(this.N(this.I,"videodatachange",this.Vr));this.l.push(this.N(this.I,"videoplayerreset",this.Vr));this.l.push(this.N(this.I,"onPlaylistUpdate",this.Vr));this.l.push(this.N(this.I,"autonavchange",this.DE));var a=this.I.getVideoData();this.DE(a.autonavState);this.I.ib(this.element,this.i)}}else{this.i=!1;g.wL(this,
this.i);a=g.q(this.l);for(var b=a.next();!b.done;b=a.next())this.fc(b.value)}};
g.k.DE=function(a){(a=1!==a)||(g.Am(g.Xu),a=g.Nr("web_autonav_allow_off_by_default")&&!g.Zu(0,141)&&g.O("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Zu(0,140));this.isChecked=a;Hta(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.I.Vx(this.isChecked?2:1);Hta(this);this.I.Fb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.Ba("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.v(g.EP,g.V);g.EP.prototype.ra=function(){this.ctx=null;g.V.prototype.ra.call(this)};g.v(FP,g.V);FP.prototype.onClick=function(){this.I.Na("innertubeCommand",this.u)};
FP.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Rb()};
FP.prototype.updateVideoData=function(a,b){a=b.RT;this.u=null===a||void 0===a?void 0:a.command;this.l.disabled=null==this.u;g.N(this.l,"ytp-chapter-container-disabled",this.l.disabled);this.Rb()};
FP.prototype.Rb=function(){var a="",b=this.G.i;if(1<b.length){a=1E3*this.I.getProgressState().current;var c=fP(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.i)this.I.Na("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.i=!1}else this.i=!0;a!==this.B&&(this.update({title:a}),this.B=a);a?this.show():this.hide()};g.v(g.GP,g.V);g.GP.prototype.Dc=function(a){g.U(a.state,32)?HP(this,this.api.oh()):this.vb&&(g.U(a.state,16)||g.U(a.state,1))||this.i.hide()};
g.GP.prototype.Yc=function(){var a=this.api.sb();(g.U(a,32)||g.U(a,16))&&IP(this)};
g.GP.prototype.C=function(){this.u=NaN;IP(this)};
g.GP.prototype.hide=function(){this.l&&HP(this,null);g.V.prototype.hide.call(this)};g.v(JP,g.V);JP.prototype.onClick=function(){this.i.Fb(this.element);this.i.Na("onFullerscreenEduClicked")};
JP.prototype.Ma=function(){this.i.isFullscreen()?this.u?this.l.hide():this.l.show():this.hide();this.i.ib(this.element,this.i.isFullscreen()&&!this.u)};g.v(g.KP,g.V);g.k=g.KP.prototype;g.k.onClick=function(){var a=this;if(this.I.T().Pa||this.I.T().J)try{this.I.toggleFullscreen().catch(function(b){a.zt(b)})}catch(b){this.zt(b)}else lO(this.message,this.element,!0)};
g.k.zt=function(a){String(a).includes("fullscreen error")?g.Ux(a):g.Tx(a);this.sC()};
g.k.sC=function(){this.disable();this.message.Uc(this.element,!0)};
g.k.Fl=function(){jx()===this.I.getRootNode()?this.u.start():(this.u.stop(),this.message&&this.message.hide())};
g.k.fO=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.sC()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=It(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.kO(this.I,{D:"div",Ca:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"},S:[b[0],{D:"a",V:{href:"https://support.google.com/youtube/answer/6276924",
target:this.I.T().G},oa:b[2]},b[4]]},100,!0);this.message.hide();g.F(this,this.message);this.message.subscribe("show",function(c){a.l.wq(a.message,c)});
g.oN(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}};
g.k.Ma=function(){g.wL(this,Nsa(this.I))};
g.k.ji=function(a){if(a){var b={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",L:"ytp-fullscreen-button-corner-2",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-3",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-0",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g",
L:"ytp-fullscreen-button-corner-1",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=bO(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"g",L:"ytp-fullscreen-button-corner-0",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-1",S:[{D:"path",
Mb:!0,L:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-2",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",L:"ytp-fullscreen-button-corner-3",S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=bO(this.I,"Full screen","f");this.Sa("icon",b);this.Sa("title",this.message?null:a);aP(this.l.ac())};
g.k.ra=function(){this.message||((0,this.i)(),this.i=null);g.V.prototype.ra.call(this)};g.v(LP,g.E);LP.prototype.i=function(){var a=(0,g.P)()-this.startTime;a=a<this.duration?a/this.duration:1;this.l(g.Zq(LKa,a));1>a&&this.delay.start()};
var LKa=new g.Yq(0,0,.4,0,.2,1,1,1),Nta=/[0-9.-]+|[^0-9.-]+/g;g.v(g.NP,g.V);g.NP.prototype.l=function(a){Ota(this,a.state);a=g.U(a.state,2);HG(this.I.T())&&(this.u||a?this.show():this.hide())};
g.NP.prototype.kb=function(){g.N(this.element,"ytp-play-button-playlist",g.lN(this.I))};
g.NP.prototype.zr=function(){g.HK(this.I.sb())?this.I.pauseVideo():(this.I.Ce()&&this.I.sb().isCued()&&CA("direct_playback",["pbs","pbu","pbp"]),this.I.Fo().timerName="direct_playback",this.I.playVideo())};g.v(OP,g.V);OP.prototype.i=function(a){Qta(this,a.state)};g.v(PP,g.V);PP.prototype.onClick=function(){this.I.Na("onCollapseMiniplayer");this.I.Fb(this.element)};
PP.prototype.Ma=function(){this.visible=!this.I.isFullscreen();g.wL(this,this.visible);this.I.ib(this.element,this.visible&&this.Y)};
PP.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.I.ib(this.element,this.visible&&a)};g.v(QP,g.V);QP.prototype.kb=function(a){this.Ma("newdata"===a)};
QP.prototype.Ma=function(a){var b=this.I.getVideoData(),c=b.wc,d=this.I.sb();d=(g.HK(d)||g.U(d,4))&&0<c.length;g.wL(this,d);a&&(this.i=!0);if(d){this.i&&g.Eq(this.l);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.eJ("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Ke("default.jpg")});aP(this.tooltip)}else this.l.stop()};
QP.prototype.u=function(){$O(this.tooltip,this.element,"More cameras available");this.i=!1};g.v(RP,g.kO);g.k=RP.prototype;g.k.show=function(){var a=this.vb;g.kO.prototype.show.call(this);a||(this.u.N(this.api,"presentingplayerstatechange",this.Ma),this.u.N(this.api,"videodatachange",this.Ma),this.Ma())};
g.k.hide=function(){this.u&&(g.ox(this.u),g.kO.prototype.hide.call(this))};
g.k.Ma=function(){var a=this,b=this.api.getVideoData(),c=b.wc,d,e={};for(d=0;d<c.length;e={Ny:e.Ny},d++){var f=this.i[d];f||(f=new g.V({D:"button",Ca:["ytp-multicam-menu-item","ytp-button"],V:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{D:"div",L:"ytp-multicam-menu-item-title",oa:"{{cameraName}}"}]}),e.Ny=d,f.Ra("click",function(n){return function(){var p=n.Ny,r=a.api.getVideoData(),t=a.api,u=r.wc[p];p=g.W(t.app,1).getVideoData();r=t.getCurrentTime();u.id===p.videoId?(u=g.W(t.app,1),
g.W(t.app)!==u&&(t.app.jj(1),p.isLivePlayback||t.seekTo(r))):(t.app.jj(4),t.app.loadVideoByPlayerVars({videoId:u.id,title:p.title,start:p.isLivePlayback?null:r,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.aE}}}},4))}}(e)),f.ya(this.items),this.i[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=yG(this.api.T(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.i.length;)this.i.pop().dispose();d=this.api.sb();b=c.length||!b.isLoaded();g.HK(d)||g.U(d,4)||b||!this.Pf()||lO(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.wc,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
g.k.ra=function(){g.ff(this.i);g.kO.prototype.ra.call(this)};g.v(g.SP,g.V);g.k=g.SP.prototype;g.k.EE=function(a){this.visible=300<=a.width;g.wL(this,this.visible);this.I.ib(this.element,this.visible&&this.Y)};
g.k.TR=function(){this.I.T().X?this.I.isMuted()?this.I.unMute():this.I.mute():lO(this.message,this.element,!0);this.I.Fb(this.element)};
g.k.Df=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.I.T();a=0===d?1:50<a?1:0;if(this.C!==a){var f=this.X;isNaN(f)?Tta(this,a):MP(this.va,function(l){Tta(c,f+(c.C-f)*l)},250);
this.C=a}d=0===d?1:0;if(this.B!==d){var h=this.K;isNaN(h)?Uta(this,d):MP(this.U,function(l){Uta(c,h+(c.B-h)*l)},250);
this.B=d}e.X&&(e=bO(this.I,"Mute","m"),d=bO(this.I,"Unmute","m"),b=b?d:e,this.Sa("title",b),this.Sa("label",b),aP(this.tooltip))};
g.k.Ub=function(a){g.V.prototype.Ub.call(this,a);this.I.ib(this.element,this.visible&&a)};
var Rta=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],Sta=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.v(TP,g.V);TP.prototype.onClick=function(){this.I.togglePictureInPicture()};g.v(g.WP,g.V);g.k=g.WP.prototype;g.k.kb=function(){Vta(this);this.B&&(this.fc(this.B),this.B=null);this.videoData=this.I.getVideoData(1);if(this.playlist=this.I.getPlaylist())this.playlist.subscribe("shuffle",this.kb,this),this.B=this.N(this.I,"progresssync",this.SL);this.u=Wta(this);VP(this);this.pz(this.I.Za().getPlayerSize())};
g.k.pz=function(a){a=void 0===a?this.I.Za().getPlayerSize():a;var b=g.lN(this.I)||this.i&&g.pN(this.I)||Xta(this);g.wL(this,b&&(this.i||400<=a.width))};
g.k.onClick=function(a){var b=!0;this.G?b=g.YN(a,this.I):g.Ut(a);b&&(this.i&&5===this.I.getPresentingPlayerType()?this.I.W("ytoprerollinternstitialnext"):this.i?this.I.nextVideo(!0):this.u?this.I.seekTo(0):this.I.previousVideo(!0))};
g.k.SL=function(){var a=Wta(this);a!==this.u&&(this.u=a,VP(this))};
g.k.ra=function(){this.l&&(this.l(),this.l=null);Vta(this);g.V.prototype.ra.call(this)};g.v(Zta,g.V);g.v(XP,g.V);dua.prototype.update=function(a,b,c,d){this.width=b;this.l=c;this.C=d;this.i=b-c-d;this.position=g.Mf(a,c,c+this.i);this.B=this.position-c;this.u=this.B/this.i};g.v(eua,g.V);g.v(g.aQ,g.xL);g.k=g.aQ.prototype;g.k.tb=function(){g.cQ(this);dQ(this);kua(this,this.va)};
g.k.onClickCommand=function(a){if(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand){var b=a.changeKeyedMarkersVisibilityCommand.key;a.changeKeyedMarkersVisibilityCommand.isVisible&&b&&(this.api.getVideoData().qf=b,lua(this,b))}};
g.k.yd=function(a){this.api.Na("innertubeCommand",this.bd[a.id])};
g.k.Rb=function(){dQ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.Sx()};
g.k.UL=function(a){if(!g.Vt(a)){var b=!1;switch(g.Wt(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.Ut(a)}};
g.k.Gq=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.gP=function(){this.Gq("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Jb=c&&a.allowLiveDvr;wua(this,this.api.Xe());b&&(c?(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,iQ(this),eQ(this,this.U,this.La)):this.Sx(),g.$Q(this.tooltip));if(a){b=a.watchNextResponse;if(a=!a.isLivePlayback&&b)a=this.api.getVideoData(),b=a.cA,a=null!=a.multiMarkersPlayerBarRenderer||null!=b&&0<b.length;if(!a||this.B||this.B)fua(this),iua(this),gua(this);else if(a=this.api.getVideoData(),b=a.multiMarkersPlayerBarRenderer){var d;
a=this.api.getVideoData();a.qf=(null===(d=b.visibleOnLoad)||void 0===d?void 0:d.key)||a.qf;d=g.q(b.markersMap);for(b=d.next();!b.done;b=d.next())b=b.value,b.key&&b.value&&(this.jb[b.key]=b.value);null!=a.qf&&lua(this,a.qf)}else if(d=a.cA)jua(this,d),a.Jk=this.i}dQ(this)};
g.k.TL=function(a){this.K&&!g.U(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.K.cancel()};
g.k.SK=function(a){var b=!!this.B!==!!a;(this.B=a)?(this.Sa("clipstarticon",Qqa()),this.Sa("clipendicon",Qqa()),this.Sa("clipstarttitle",null),this.Sa("clipendtitle",null)):(this.Sa("clipstarticon",Kqa()),this.Sa("clipendicon",Jqa()),this.Sa("clipstarttitle","Watch entire video"),this.Sa("clipendtitle","Watch entire video"));iQ(this);eQ(this,this.U,this.La);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.cQ(this))};
g.k.pS=function(a,b,c){var d=g.Il(this.element),e=bQ(this).i,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=AM(this.l,Number(c.getAttribute("data-position")),0)*e+g.Il(this.Ec).x);this.bb.x=a-d.x;this.bb.y=b-d.y;a=bQ(this);d=hQ(this,a);b=f||g.tM(this.Jb?d-this.l.i:d);c=a.position+this.xc;d-=this.api.Lc();if(this.api.oh()){if(1<this.i.length){h=gQ(this,this.bb.x,!0);for(e=0;e<this.i.length;)g.N(this.i[e].i,
"ytp-exp-chapter-hover-effect",e===h),e++;e=this.i[h].startTime;h=h===this.i.length-1?Infinity:this.i[h+1].startTime;for(var m=g.q(this.va),n=m.next();!n.done;n=m.next())n=n.value,g.N(n.element,"ytp-timed-marker-hover",n.timeRangeStartMillis>=e&&n.timeRangeStartMillis<h)}h=this.tooltip.scale;l=(isNaN(l)?0:l)-45*h;e=fP(this.i,1E3*d);(e=this.i[e].title)||(l+=16*h);.6===this.tooltip.scale&&(l=e?110:126);h=fP(this.i,1E3*d);this.Ga=qua(this,d,h)?h:qua(this,d,h+1)?h+1:-1;g.N(this.api.getRootNode(),"ytp-progress-bar-snap",
-1!==this.Ga&&1<this.i.length);h=320*this.tooltip.scale;m=e.length*(this.u?8.55:5.7);h=m<=h?m:h;m=h<160*this.tooltip.scale;n=3;!m&&h/2>a.position&&(n=1);!m&&h/2>this.C-a.position&&(n=2);Pua(this.tooltip,c,d,b,!!f,l,e,n)}else Pua(this.tooltip,c,d,b,!!f,l);g.N(this.api.getRootNode(),"ytp-progress-bar-hover",!g.U(this.api.sb(),64));pua(this)};
g.k.oS=function(){g.$Q(this.tooltip);g.Oq(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.nS=function(a,b){this.G&&(this.G.dispose(),this.G=null);this.Ac=b;1<this.i.length&&-1!==this.Ga?this.api.seekTo(this.i[this.Ga].startTime/1E3,!1):this.api.seekTo(hQ(this,bQ(this)),!1);g.K(this.element,"ytp-drag");(this.Kb=g.HK(this.api.sb()))&&this.api.pauseVideo()};
g.k.qS=function(){var a=this;this.qb=0;g.Oq(this.element,"ytp-pull-ui");g.Oq(this.element,"ytp-pulling");this.G&&(this.G.dispose(),this.G=null);if(0<this.X){var b=(0,g.P)();this.G=new g.Aq(function(){var c=a.X,d=bQ(a).position,e=1-Math.pow(1-((0,g.P)()-b)/200,3);d+=e*(a.U*a.C-d);if(0>e||1<e)e=1;rua(a,(1-e)*c,d,a.U);1>e&&a.G.start()});
this.G.start()}if(g.U(this.api.sb(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1<this.i.length&&-1!==this.Ga?this.api.seekTo(this.i[this.Ga].startTime/1E3):this.api.seekTo(hQ(this,bQ(this))),g.Oq(this.element,"ytp-drag"),this.Kb&&!g.U(this.api.sb(),2)&&this.api.playVideo()};
g.k.rS=function(a,b){var c=this,d=!1,e=!1;a=bQ(this);3600<=yM(this.l)&&1===this.i.length&&(rua(this,this.Ac-b-10,a.position,a.u),e=!0,d=this.X>.1*(this.u?60:40),a=bQ(this));g.N(this.element,"ytp-pull-ui",e);d&&g.K(this.element,"ytp-pulling");b=0;a.l&&0>=a.position&&1===this.i.length?b=-1:a.C&&a.position>=a.width&&1===this.i.length&&(b=1);if(this.qb!==b&&1===this.i.length&&(this.qb=b,this.G&&(this.G.dispose(),this.G=null),b)){var f=(0,g.P)();this.G=new g.Aq(function(){var h=c.C*(c.Da-1);c.ma=g.Mf(c.ma+
c.qb*((0,g.P)()-f)*.3,0,h);fQ(c);c.api.seekTo(hQ(c,bQ(c)),!1);0<c.ma&&c.ma<h&&c.G.start()});
this.G.start()}this.api.seekTo(hQ(this,a),!1)};
g.k.KI=function(){this.B||(this.Sa("clipstarticon",Iqa()),this.Sa("clipendicon",Iqa()),g.K(this.element,"ytp-clip-hover"))};
g.k.JI=function(){this.B||(this.Sa("clipstarticon",Kqa()),this.Sa("clipendicon",Jqa()),g.Oq(this.element,"ytp-clip-hover"))};
g.k.Sx=function(){this.clipStart=0;this.clipEnd=Infinity;iQ(this);eQ(this,this.U,this.La)};
g.k.TK=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Aa[c]){var d=g.ng("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Aa[c]=b;this.eb[c]=d;g.Lq(d,b.style);sua(this,c);g.S(this.api.T().experiments,"disable_ad_markers_on_content_progress_bar")||this.i[0].u.appendChild(d)}}else vua(this,b)};
g.k.VT=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())vua(this,b.value)};
g.k.ra=function(){wua(this,!1);g.xL.prototype.ra.call(this)};g.v(mQ,g.V);mQ.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
mQ.prototype.Ma=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.wL(this,a&&400<=this.I.Za().getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Sa("icon",{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.Sa("icon",g.Hqa())}g.N(this.element,"ytp-remote-button-active",this.isActive())}};
mQ.prototype.l=function(){if(this.I.getOption("remote","quickCast"))this.I.setOption("remote","quickCast",!0);else{var a=this.xb,b=this.element;if(a.Pf())a.Ab();else{a.initialize();a:{var c=g.q(a.Kd.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0===d.priority){c=d;break a}c=null}c&&(c.open(),a.Uc(b));a.Uc(b)}}};g.v(nQ,g.V);nQ.prototype.i=function(a){var b=400;this.I.T().J&&(b=200);a=this.l&&a.width>=b;g.wL(this,a);this.I.ib(this.element,a)};
nQ.prototype.u=function(){if(this.xb.vb)this.xb.Ab();else{var a=g.HN(this.I.rb());a&&!a.loaded&&(a.Se("tracklist",{includeAsr:!0}).length||a.load());this.I.Fb(this.element);this.xb.Uc(this.element)}};
nQ.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.nN(this.I),e=c&&!!g.mN(this.I.rb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.N(this.element,"ytp-hdr-quality-badge",a);g.N(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.N(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.N(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.N(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.N(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.N(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(pQ,RO);pQ.prototype.isLoaded=function(){var a=g.QN(this.I.rb());return void 0!==a&&a.loaded};
pQ.prototype.Ma=function(){void 0!==g.QN(this.I.rb())&&3!==this.I.getPresentingPlayerType()?this.i||(this.xb.yc(this),this.i=!0):this.i&&(this.xb.Gf(this),this.i=!1);this.setValue(this.isLoaded())};
pQ.prototype.l=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.W("annotationvisibility",a)};
pQ.prototype.ra=function(){this.i&&this.xb.Gf(this);RO.prototype.ra.call(this)};g.v(g.qQ,g.JO);g.k=g.qQ.prototype;g.k.open=function(){g.TO(this.xb,this.u)};
g.k.Hh=function(a){yua(this);this.options[a].element.setAttribute("aria-checked","true");this.Vc(this.Li(a));this.l=a};
g.k.nA=function(a,b,c){var d=this;b=new g.JO({D:"div",Ca:["ytp-menuitem"],V:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{D:"div",Ca:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.Li(a,!0));b.Ra("click",function(){d.kf(a)});
return b};
g.k.enable=function(a){this.B?a||(this.B=!1,this.Wp(!1)):a&&(this.B=!0,this.Wp(!0))};
g.k.Wp=function(a){a?this.xb.yc(this):this.xb.Gf(this)};
g.k.kf=function(a){this.W("select",a)};
g.k.Li=function(a){return a.toString()};
g.k.VL=function(a){g.Vt(a)||39!==g.Wt(a)||(this.open(),g.Ut(a))};
g.k.ra=function(){this.B&&this.xb.Gf(this);g.JO.prototype.ra.call(this);for(var a=g.q(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(sQ,g.qQ);sQ.prototype.Ma=function(){var a=this.I.getAvailableAudioTracks();1<a.length?(g.rQ(this,g.Oe(a,this.C)),this.tracks=g.Db(a,this.C,this),this.i.Vc(a.length?" ("+a.length+")":""),this.W("size-change"),this.Hh(this.C(this.I.getAudioTrack())),this.enable(!0)):this.enable(!1)};
sQ.prototype.kf=function(a){g.qQ.prototype.kf.call(this,a);this.I.setAudioTrack(this.tracks[a]);this.xb.Wg()};
sQ.prototype.C=function(a){return a.toString()};g.v(tQ,RO);
tQ.prototype.l=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&g.pN(this.I))this.i||(this.xb.yc(this),this.i=!0,this.u.push(this.N(this.I,"videodatachange",this.l)),this.u.push(this.N(this.I,"videoplayerreset",this.l)),this.u.push(this.N(this.I,"onPlaylistUpdate",this.l)),this.u.push(this.N(this.I,"autonavchange",this.B)),a=this.I.getVideoData(),this.B(a.autonavState),this.I.ib(this.element,this.i));else if(this.i){this.xb.Gf(this);this.i=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.fc(b.value)}};
tQ.prototype.B=function(a){this.setValue(1!==a)};
tQ.prototype.C=function(a){this.I.Vx(a?2:1);this.i&&(this.I.ib(this.element,this.i),this.I.Fb(this.element))};
tQ.prototype.ra=function(){this.i&&this.xb.Gf(this);RO.prototype.ra.call(this)};g.v(uQ,g.kO);uQ.prototype.Uc=function(){g.kO.prototype.Uc.call(this);this.dialog.focus()};g.v(vQ,g.JO);vQ.prototype.Ub=function(a){this.l&&this.I.ib(this.element,this.i&&a)};
vQ.prototype.B=function(){var a,b,c=null===(b=null===(a=this.I.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.i){var d,e,f,h,l,m;c=null===(d=this.I.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.IO(this,wQ(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.u=new uQ(this.I,wQ(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),wQ(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),wQ(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.F(this,this.u);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.l=!!d)this.I.Ig(this.element,this,!0),this.I.Nl(this.element,d);this.xb.yc(this);this.i=!0}else!c&&this.i&&(this.xb.Gf(this),this.i=!1)};
vQ.prototype.onClick=function(){this.l&&this.I.Fb(this.element);this.xb.Ab();this.u&&this.u.Uc()};g.v(xQ,g.qQ);g.k=xQ.prototype;g.k.Wr=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&(this.C=this.I.Am(),a=this.I.getAvailableQualityLevels(),g.dsa(this.I)&&g.esa(this.I)&&a.unshift("missing-qualities"),fsa(this.I)&&a.unshift("inline-survey"),g.rQ(this,a),a.length)){this.FE();this.enable(!0);return}this.enable(!1)};
g.k.FE=function(){var a=this.I.getPreferredQuality();this.options[a]&&(this.i=this.I.getPlaybackQuality(),this.Hh(a),"auto"===a&&this.Vc(this.Li(a)))};
g.k.kf=function(a){"missing-qualities"!==a&&(g.qQ.prototype.kf.call(this,a),this.I.setPlaybackQuality(a),this.xb.Ab(),this.Wr())};
g.k.nA=function(a,b,c){var d=this;if("inline-survey"!==a)return g.qQ.prototype.nA.call(this,a,b,c);a=[{D:"span",oa:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={ev:c.ev},f=e.next())c.ev=f.value,f=new g.V({D:"span",L:"ytp-menuitem-inline-survey-response",S:[c.ev?g.EL():Nqa()],V:{tabindex:"0",role:"button"}}),f.Ra("click",function(h){return function(){var l=h.ev,m=g.W(d.I.app);m&&(m.Ja("iqsr",l?"0":"1"),m.getVideoData().UJ=!0);d.xb.Ab();d.Wr()}}(c)),a.push(f);
return new g.JO({D:"div",L:"ytp-menuitem",V:{"aria-disabled":"true"},S:[{D:"div",Ca:["ytp-menuitem-label"],S:a}]},b)};
g.k.Li=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{D:"a",V:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.I.T().G},oa:"Missing options?"};if("inline-survey"===a)return"";var c=[zua(this,a)],d=this.I.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(zua(this,this.i,["ytp-menu-label-secondary"])));return{D:"div",S:c}};g.v(yQ,g.V);g.k=yQ.prototype;g.k.init=function(){this.zp(this.i);this.Sa("minvalue",this.minimumValue);this.Sa("maxvalue",this.maximumValue)};
g.k.YL=function(a){if(!g.Vt(a)){switch(g.Wt(a)){case 37:case 40:var b=-this.G;break;case 39:case 38:b=this.G;break;default:return}this.zp(this.i+b);g.Ut(a)}};
g.k.WL=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.C:this.C;this.zp(b);g.Ut(a)};
g.k.XL=function(a){a=(a-g.Il(this.l).x)/this.J*this.range+this.minimumValue;this.zp(a)};
g.k.zp=function(a,b){b=void 0===b?"":b;a=g.Mf(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Sa("valuenow",a);this.Sa("valuetext",b);this.K.style.left=(a-this.minimumValue)/this.range*(this.J-this.X)+"px";this.i=a};
g.k.focus=function(){this.ma.focus()};g.v(AQ,yQ);AQ.prototype.U=function(){this.I.setPlaybackRate(this.i,!0)};
AQ.prototype.zp=function(a){yQ.prototype.zp.call(this,a,BQ(this,a).toString());this.u&&(zQ(this),this.va())};
AQ.prototype.xa=function(){var a=this.I.getPlaybackRate();BQ(this,this.i)!==a&&(this.zp(a),zQ(this))};g.v(CQ,g.xL);CQ.prototype.focus=function(){this.i.focus()};g.v(Aua,MO);g.v(DQ,g.qQ);g.k=DQ.prototype;g.k.Li=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Ma=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);Dua(this)};
g.k.Wp=function(a){g.qQ.prototype.Wp.call(this,a);a?(this.J=this.N(this.I,"onPlaybackRateChange",this.ZL),Dua(this),Bua(this,this.I.getPlaybackRate())):(this.fc(this.J),this.J=null)};
g.k.ZL=function(a){var b=this.I.getPlaybackRate();this.G.includes(b)||Cua(this,b);Bua(this,a)};
g.k.kf=function(a){g.qQ.prototype.kf.call(this,a);a===this.i?this.I.setPlaybackRate(this.C,!0):this.I.setPlaybackRate(Number(a),!0);this.xb.Wg()};g.v(FQ,g.qQ);g.k=FQ.prototype;g.k.Hh=function(a){g.qQ.prototype.Hh.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Li=function(a){return this.getOption(a).text||""};
g.k.kf=function(a){g.qQ.prototype.kf.call(this,a);this.W("settingChange",this.setting,this.settings[a].option)};g.v(GQ,g.NO);GQ.prototype.hf=function(a){for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Vm[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Hh(e),c.C.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
GQ.prototype.Ug=function(a,b){this.W("settingChange",a,b)};g.v(HQ,g.qQ);HQ.prototype.getKey=function(a){return a.languageCode};
HQ.prototype.Li=function(a){return this.languages[a].languageName||""};
HQ.prototype.kf=function(a){this.W("select",a);this.I.Fb(this.element);g.XO(this.xb)};g.v(IQ,g.qQ);g.k=IQ.prototype;g.k.getKey=function(a){return g.Rb(a)?"__off__":a.displayName};
g.k.Li=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.kf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.BO(this.I.T(),this.I.getVideoData()),g.iK(a)):(this.I.Fb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.qQ.prototype.kf.call(this,a),this.xb.Wg())};
g.k.Ma=function(){var a,b=this.I.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.I.getVideoData();c=c&&c.Nk;var d=!(null===(a=this.I.getVideoData())||void 0===a||!g.bI(a)),e={};if(b||c){if(b){var f=this.I.getOption("captions","track");e=this.I.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.Db(e,this.getKey,this);d=g.Oe(e,this.getKey);if(h.length&&!g.Rb(f)){var l=f.translationLanguage;if(l&&l.languageName){var m=
l.languageName;l=h.findIndex(function(n){return n.languageName===m});
qaa(h,l)}Fua(this.i,h);d.push("__translate__")}h=this.getKey(f)}else this.tracks={},d=[],h="__off__";d.unshift("__off__");this.tracks.__off__={};c&&d.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=f,d.push(h));g.rQ(this,d);this.Hh(h);f&&f.translationLanguage?this.i.Hh(this.i.getKey(f.translationLanguage)):yua(this.i);b&&this.C.hf(this.I.getSubtitlesUserSettings());this.J.Vc(e&&e.length?" ("+e.length+")":"");this.W("size-change");this.I.ib(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.aM=function(a){var b=this.I.getOption("captions","track");b=g.Vb(b);b.translationLanguage=this.i.languages[a];this.I.setOption("captions","track",b)};
g.k.Ug=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}Gua(this,!0);this.G.start();this.C.hf(this.I.getSubtitlesUserSettings())};
g.k.WS=function(a){a||g.Gq(this.G)};
g.k.ra=function(){g.Gq(this.G);g.qQ.prototype.ra.call(this)};g.v(JQ,g.VO);g.k=JQ.prototype;g.k.initialize=function(){if(!this.Ud){this.Ud=!0;this.TB=new vQ(this.I,this);g.F(this,this.TB);var a=new xQ(this.I,this);g.F(this,a);a=new IQ(this.I,this);g.F(this,a);a=new pQ(this.I,this);g.F(this,a);this.I.T().Kb&&(a=new DQ(this.I,this),g.F(this,a));this.I.T().Bb&&!g.S(this.I.T().experiments,"web_player_move_autonav_toggle")&&(a=new tQ(this.I,this),g.F(this,a));a=new sQ(this.I,this);g.F(this,a);oQ(this.settingsButton,this.Kd.items.length)}};
g.k.yc=function(a){this.initialize();this.Kd.yc(a);oQ(this.settingsButton,this.Kd.items.length)};
g.k.Gf=function(a){this.vb&&1>=this.Kd.items.length&&this.hide();this.Kd.Gf(a);oQ(this.settingsButton,this.Kd.items.length)};
g.k.Uc=function(a){this.initialize();0<this.Kd.items.length&&g.VO.prototype.Uc.call(this,a)};
g.k.show=function(){g.VO.prototype.show.call(this);g.K(this.I.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.VO.prototype.hide.call(this);g.Oq(this.I.getRootNode(),"ytp-settings-shown")};
g.k.Fe=function(a){var b;this.I.ib(this.element,a);null===(b=this.TB)||void 0===b?void 0:b.Ub(a)};g.v(KQ,g.V);KQ.prototype.onClick=function(){var a=this.I.app;a.Wa.Na("SIZE_CLICKED",!a.Hb)};
KQ.prototype.Ma=function(){g.wL(this,this.I.LB()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.vb){var a=this.I.isWidescreen();if(this.isWidescreen!==a){var b=a?{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{D:"path",Mb:!0,V:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.isWidescreen?this.Sa("icon",b):Mta(this.transition,this.element,b);this.isWidescreen=a;b=bO(this.I,"Default view","t");var c=bO(this.I,"Theater mode","t");this.Sa("title",a?b:c);aP(this.tooltip)}}};g.v(g.LQ,g.V);g.LQ.prototype.onClick=function(){this.I.toggleSubtitles();this.I.Fb(this.element);if(!this.isEnabled()){var a=!1,b=g.Zu(g.Am(g.Xu),65);g.GG(this.I.T())&&null!=b&&(a=!b);a&&g.S(this.I.T().experiments,"web_player_nitrate_promo_tooltip")&&this.I.W("showpromotooltip",this.element)}};
g.LQ.prototype.i=function(a){var b,c;null===(c=null===(b=g.eN(this.I))||void 0===b?void 0:b.Gm())||void 0===c?void 0:c.Uc(a)};
g.LQ.prototype.isEnabled=function(){return!!this.I.getOption("captions","track").displayName};
g.LQ.prototype.Ma=function(){var a=null!=g.HN(this.I.rb()),b=300;this.I.T().J&&(b=480);b=a&&this.I.Za().getPlayerSize().width>=b;g.wL(this,b);this.I.ib(this.element,b);a&&this.Sa("pressed",this.isEnabled())};g.v(g.MQ,g.V);g.k=g.MQ.prototype;
g.k.Rb=function(){var a=this.api.Za().getPlayerSize().width,b=this.J;this.api.T().J&&(b=300);b=a>=b&&(!this.l||!g.U(this.api.sb(),64));g.wL(this,b);g.N(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.tM(g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.u!==c&&(this.Sa("currenttime",c),this.u=c);b=g.tM(g.S(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:
this.api.getDuration(b,!1));this.B!==b&&(this.Sa("duration",b),this.B=b)}this.l&&(a=a.isAtLiveHead,this.G!==a||this.C!==this.isPremiere)&&(this.G=a,this.C=this.isPremiere,this.Rb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Vc(this.isPremiere?"Premiere":"Live"),a?this.i&&(this.i(),this.i=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.i=g.zO(this.tooltip,this.liveBadge.element)))};
g.k.kb=function(a,b,c){this.updateVideoData((g.S(this.api.T().experiments,"enable_topsoil_wta_for_halftime")||g.S(this.api.T().experiments,"enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Rb()};
g.k.updateVideoData=function(a){this.l=a.isLivePlayback&&!a.yb;this.isPremiere=a.isPremiere;g.N(this.element,"ytp-live",this.l)};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.ra=function(){this.i&&this.i();g.V.prototype.ra.call(this)};g.v(PQ,g.V);g.k=PQ.prototype;g.k.Fl=function(){var a=this.i.Ae();this.u!==a&&(this.u=a,OQ(this,this.api.getVolume(),this.api.isMuted()))};
g.k.GE=function(a){g.wL(this,350<=a.width)};
g.k.dM=function(a){if(!g.Vt(a)){var b=g.Wt(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.Mf(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Ut(a))}};
g.k.bM=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.Mf(b/10,-10,10));g.Ut(a)};
g.k.aT=function(){NQ(this,this.l,!0,this.hasFocus,this.i.Th());this.K=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.cM=function(a){var b=this.u?78:52,c=this.u?18:12;a-=g.Il(this.J).x;this.api.setVolume(100*g.Mf((a-c/2)/(b-c),0,1))};
g.k.ZS=function(){NQ(this,this.l,!1,this.hasFocus,this.i.Th());0===this.volume&&(this.api.mute(),this.api.setVolume(this.K))};
g.k.Df=function(a){OQ(this,a.volume,a.muted)};
g.k.sG=function(){NQ(this,this.l,this.isDragging,this.hasFocus,this.i.Th())};
g.k.ra=function(){g.V.prototype.ra.call(this);g.Oq(this.G,"ytp-volume-slider-active")};g.v(g.QQ,g.V);g.QQ.prototype.kb=function(){var a=this.api.getVideoData(1).C,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.wL(this,this.visible);this.api.ib(this.element,this.visible&&this.Y);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Sa("url",a))};
g.QQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.uM(a),!1,!0,!0);if(g.MF(this.api.T())||g.XF(this.api.T()))b=g.ti(b,g.CO("emb_logo"));g.ZN(b,this.api,a);this.api.Fb(this.element)};
g.QQ.prototype.tb=function(){var a={D:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{D:"path",Mb:!0,L:"ytp-svg-fill",V:{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.XF(this.api.T())){var b=this.Ba("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{D:"svg",V:{fill:"none",height:"24",width:"24"},S:[{D:"circle",V:{cx:"12",cy:"12",fill:"red",r:"12"}},{D:"ellipse",V:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",V:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{D:"svg",V:{viewBox:"0 0 80 24"},S:[{D:"ellipse",V:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{D:"ellipse",V:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{D:"path",V:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z",
fill:"#fff"}}]};g.N(b,"ytp-youtube-music-logo-icon-only",c)}this.Sa("logoSvg",a)};
g.QQ.prototype.Ub=function(a){g.V.prototype.Ub.call(this,a);this.api.ib(this.element,this.visible&&a)};g.v(SQ,g.qN);g.k=SQ.prototype;g.k.Yc=function(){this.Ec.Rb();this.Bg.Rb()};
g.k.bj=function(){this.qz();this.fd.l?this.Yc():g.$Q(this.Ec.tooltip)};
g.k.ep=function(){this.Yc();this.td.start()};
g.k.qz=function(){var a=!this.I.T().i&&300>g.xua(this.Ec)&&this.I.sb().tc()&&!!window.requestAnimationFrame,b=!a;this.fd.l||(a=b=!1);b?this.J||(this.J=this.N(this.I,"progresssync",this.Yc)):this.J&&(this.fc(this.J),this.J=null);a?this.td.isActive()||this.td.start():this.td.stop()};
g.k.tb=function(){var a=this.u.Ae(),b=this.I.Za().getPlayerSize(),c=TQ(this),d=Math.max(b.width-2*c,100);if(this.Ea!==b.width||this.Aa!==a){this.Ea=b.width;this.Aa=a;var e=Kua(this);this.l.element.style.width=e+"px";this.l.element.style.left=c+"px";g.lQ(this.Ec,c,e,a);this.u.ac().rz=e}c=this.i;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-UQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.xv=e;c.Dr();this.qz();!this.I.T().Z("html5_player_bottom_linear_gradient")&&g.S(this.I.T().experiments,"html5_player_dynamic_bottom_gradient")&&
g.DP(this.Da,b.height)};
g.k.kb=function(){var a=this.I.getVideoData();this.ma.style.background=a.C?a.Da:"";g.wL(this.U,a.Yy)};g.v(VQ,xP);g.k=VQ.prototype;g.k.lC=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Na("innertubeCommand",this.onClickCommand),this.u=!0,this.K.hide())};
g.k.mC=function(){this.u=!0;this.K.hide()};
g.k.kb=function(a,b){var c;"newdata"===a&&(this.l=this.u=!1,WQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.J=this.enabled=!0;this.text=Yta(a.title)||"View Chapters";var d=null===(c=a.trigger)||void 0===c?void 0:c.suggestedActionTimeRangeTrigger;if(d){b=[];var e=d.timeRangeStartMillis;d=d.timeRangeEndMillis;null!=e&&null!=d&&b.push(new g.Fz(e,d,{priority:7,CY:"suggested_action_button_visible"}));this.I.Dd(b)}this.onClickCommand=a.tapCommand;Fta(this);wP(this);this.Eh()}};
g.k.Hu=function(){return!this.u&&this.enabled&&(this.l||this.i)};
g.k.Fe=function(a){this.u||((this.l=a)?vP(this):(WQ(this),this.X.start()),this.Eh())};
g.k.ra=function(){WQ(this);xP.prototype.ra.call(this)};var V2={},XQ=(V2.CHANNEL_NAME="ytp-title-channel-name",V2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",V2.LINK="ytp-title-link",V2.SESSIONLINK="yt-uix-sessionlink",V2.SUBTEXT="ytp-title-subtext",V2.TEXT="ytp-title-text",V2.TITLE="ytp-title",V2);g.v(YQ,g.V);YQ.prototype.onClick=function(a){this.api.Fb(this.element);var b=this.api.getVideoUrl(!g.uM(a),!1,!0);g.MF(this.api.T())&&(b=g.ti(b,g.CO("emb_title")));g.ZN(b,this.api,a)};
YQ.prototype.Ma=function(){var a=this.api.getVideoData(),b=this.api.T();this.Sa("title",a.title);Lua(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Hb&&c.rg?(this.Sa("channelLink",c.Hb),this.Sa("channelName",c.author),this.Sa("channelTitleFocusable","0")):Lua(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.nf;g.N(this.link,XQ.FULLERSCREEN_LINK,c);b.K||!a.videoId||c||a.C&&b.pfpChazalUi?this.i&&(this.Sa("url",null),this.fc(this.i),
this.i=null):(this.Sa("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.N(this.link,"click",this.onClick)))};g.v(g.ZQ,g.V);g.k=g.ZQ.prototype;g.k.VI=function(a,b){a<=this.l&&this.l<=b&&(a=this.l,this.l=NaN,Nua(this,a))};
g.k.RP=function(){ima(this.i,this.l,160*this.scale)};
g.k.Cj=function(){switch(this.type){case 2:var a=this.activeElement;a.removeEventListener("mouseout",this.K);a.addEventListener("mouseover",this.u);a.removeEventListener("blur",this.K);a.addEventListener("focus",this.u);Qua(this);break;case 3:Qua(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.VI,this),this.i=null),this.api.removeEventListener("videoready",this.U),this.X.stop()}this.type=null;this.G&&this.B.hide()};
g.k.Ni=function(a){for(var b=0;b<arguments.length;++b);if(this.activeElement)for(b=0;b<arguments.length;b++)g.tg(arguments[b],this.activeElement)&&this.Cj()};
g.k.ra=function(){null!=this.type&&this.Cj();this.i&&this.i.dispose();g.V.prototype.ra.call(this)};g.v(g.aR,g.V);g.k=g.aR.prototype;g.k.yv=function(){var a=this.I.getPlayerSize(),b=this.I.T(),c=this.I.getVideoData(),d=g.MF(b)&&g.lN(this.I)&&g.U(this.I.sb(),128);this.visible=b.Aj&&240<=a.width&&!c.isAd()&&c.lf&&!d&&!(c.C&&b.pfpChazalUi);g.wL(this,this.visible);this.icon&&Wua(this,this.icon);this.I.ib(this.element,this.visible&&this.Y)};
g.k.HE=function(){return this.I.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.I.Fb(this.element);var b=this.I.T(),c=this.HE();b.Y?Tua(this):this.I.jy()?this.I.requestStorageAccess(function(){g.Bv("embedsItpWatchLaterResult",{accepted:!0});Fu();Uua(a,c)},function(){g.Bv("embedsItpWatchLaterResult",{accepted:!1});
Vua(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):Uua(this,c)};
g.k.eM=function(){this.isRequestPending=this.i=!1;this.Ma(2)};
g.k.Ma=function(a,b){var c=this.I.T();Wua(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.i?g.eJ("Added as $USER_NAME",a):g.eJ("Watch later as $USER_NAME",a),image:LG(c)})):this.update({title:"Watch later",image:null});aP(this.tooltip)};
g.k.Ub=function(a){g.V.prototype.Ub.call(this,a);this.I.ib(this.element,this.visible&&a)};g.v(bR,g.oO);g.k=bR.prototype;g.k.ac=function(){return this.tooltip};
g.k.oH=function(){return this.Sf};
g.k.qm=function(a,b){b?this.Oj=a:this.Oj=null;this.Ei()};
g.k.wq=function(a,b){if(b)this.Ym.push(a);else for(b=this.Ym.length;0<=b;b--)if(this.Ym[b]===a){this.Ym.splice(b,1);break}UN(this.fd,64,0<this.Ym.length)};
g.k.vn=function(){this.api.hh()&&this.api.Nj();return!!this.Oj||Xua(this)||g.oO.prototype.vn.call(this)};
g.k.Ei=function(){var a=!this.vn(),b=a&&this.api.hh()&&!g.U(this.api.sb(),2)&&!(this.api.getVideoData().C&&this.api.T().pfpChazalUi),c=this.Qo&&g.lN(this.api)&&g.U(this.api.sb(),128);a||c?(this.CD.show(),this.DD.show()):(this.CD.hide(),this.DD.hide(),this.tooltip.Ni(this.Ch.element));b?this.Nh.Uc():this.Nh.Ab();this.Sf&&Jua(this.Sf,!a);g.oO.prototype.Ei.call(this)};
g.k.mp=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Ol(a),h=d||this.Sf&&g.tg(this.Sf.l.element,b),l=d=null;null!=c&&h||(d=g.Ol(b),l=g.Ml(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Sf,d=TQ(b),l=Kua(b),h=this.api.Za().getPlayerSize().height,c=g.Mf(c,d,d+l-f.width),f=h-UQ(b)-f.height):g.tg(this.Ch.element,b)?(b=this.api.Za().getPlayerSize().width,c=g.Mf(c,12,b-f.width-12),f=this.Ae()?this.zA:this.yA,"gvn"===this.api.T().playerStyle&&(f+=
20),this.Qo&&(f-=this.Ae()?26:18)):(b=this.api.Za().getPlayerSize(),c=g.Mf(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.bj=function(a){a&&(this.tooltip.Ni(this.Ch.element),this.Sf&&this.tooltip.Ni(this.Sf.l.element));this.api.Z("embeds_enable_player_overlays_autohide")&&this.Qw&&(g.N(this.contextMenu.element,"ytp-autohide",a),g.N(this.contextMenu.element,"ytp-autohide-active",!0));g.oO.prototype.bj.call(this,a)};
g.k.kC=function(){g.oO.prototype.kC.call(this);this.api.Z("embeds_enable_player_overlays_autohide")&&this.Qw&&(g.N(this.contextMenu.element,"ytp-autohide-active",!1),this.api.Z("embeds_enable_player_overlays_autohide")&&this.Qw&&(this.contextMenu.hide(),this.Qf&&this.Qf.hide()))};
g.k.Ri=function(a,b){var c=this.api.Za().getPlayerSize();c=new g.pl(0,0,c.width,c.height);if(a||this.fd.l&&!this.vn()){if(this.api.T().wj||b)a=this.Ae()?this.zA:this.yA,c.top+=a,c.height-=a;this.Sf&&(c.height-=UQ(this.Sf))}return c};
g.k.Fl=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.T().externalFullscreen||(b.parentElement.insertBefore(this.gw.element,b),b.parentElement.insertBefore(this.ew.element,b.nextSibling))):g.Sr(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.gw.detach(),this.ew.detach());this.tb();this.Sl()};
g.k.Ae=function(){var a=this.api.T();return this.api.isFullscreen()&&!a.J||!1};
g.k.showControls=function(a){this.Uv=!a;this.Ei()};
g.k.tb=function(){var a=this.Ae();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.N(this.contextMenu.element,"ytp-big-mode",a);this.Ei();if(this.Ye()&&this.Qf)this.bh&&lP(this.Qf,this.bh),this.shareButton&&lP(this.Qf,this.shareButton),this.Hg&&lP(this.Qf,this.Hg);else{if(this.Qf){a=this.Qf;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.bh&&!g.tg(this.Cg.element,this.bh.element)&&this.bh.ya(this.Cg.element);this.shareButton&&!g.tg(this.Cg.element,
this.shareButton.element)&&this.shareButton.ya(this.Cg.element);this.Hg&&!g.tg(this.Cg.element,this.Hg.element)&&this.Hg.ya(this.Cg.element)}this.Sl();g.oO.prototype.tb.call(this)};
g.k.gB=function(){if(Xua(this)&&!g.lN(this.api))return!1;var a=this.api.getVideoData();return!g.MF(this.api.T())||2===this.api.getPresentingPlayerType()||!this.Kg||((a=this.Kg||a.Kg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.oO.prototype.gB.call(this):!1};
g.k.Sl=function(){g.oO.prototype.Sl.call(this);this.api.ib(this.title.element,!!this.Yj);this.Vq&&this.Vq.Ub(!!this.Yj);this.channelAvatar.Ub(!!this.Yj);this.overflowButton&&this.overflowButton.Ub(this.Ye()&&!!this.Yj);this.shareButton&&this.shareButton.Ub(!this.Ye()&&!!this.Yj);this.bh&&this.bh.Ub(!this.Ye()&&!!this.Yj);this.Hg&&this.Hg.Ub(!this.Ye()&&!!this.Yj);if(!this.Yj){this.tooltip.Ni(this.Ch.element);for(var a=0;a<this.Tu.length;a++){var b=this.Tu[a];b.Pf()&&b.Ab()}}};
g.k.Lb=function(a){this.Sf&&Jua(this.Sf,this.vn());this.Ei();g.oO.prototype.Lb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.xl?this.xl.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.xl?this.xl.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Sj=function(){return this.contextMenu.vb?(this.contextMenu.Ab(),!0):this.Ym.length?(this.Ym[this.Ym.length-1].Ab(),!0):this.Oj?(this.Oj.Ab(),!0):g.oO.prototype.Sj.call(this)};
g.k.ey=function(a,b){this.hD=b;this.wq(a,b);this.YK()};
g.k.YK=function(){var a=this.hD||this.contextMenu.Pf();this.kA!==a&&(this.kA=a,this.api.Na("onAutonavPauseRequest",this.kA))};
g.k.LO=function(){cR(this,this.api.getRootNode(),!0).focus()};
g.k.MO=function(){cR(this,this.api.getRootNode(),!1).focus()};
g.k.Gm=function(){return this.Sf&&this.Sf.i};
g.k.zk=function(){this.fd.zk()};
g.k.Lw=function(){this.jc.hide()};
g.k.Cp=function(a){this.jc.Cp(!g.HK(a))};
g.k.yu=function(a,b,c,d){this.Ls.yu(a,b,c,d)};
g.k.WJ=function(a,b){dP(this.Ls,a,b)};
g.k.fR=function(){Yua(this,!0)};
g.k.NR=function(a){Yua(this,!1,a)};g.v(g.dR,g.zN);g.dR.prototype.ri=function(){return!1};
g.dR.prototype.create=function(){var a=this.player.T();g.VF(a)&&a.i?this.chrome=new g.oO(this.player):this.chrome=new bR(this.player);g.F(this,this.chrome);this.chrome.init();this.player.Ad("ux")};
g.dR.prototype.Vs=function(){return this.chrome};eR.prototype.getState=function(){return this.store.getState()};
eR.prototype.dispatch=function(a){return this.store.dispatch(a)};
eR.prototype.subscribe=function(a){return this.store.subscribe(a)};
eR.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
eR.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};fR.prototype.Oe=function(a){var b=void 0===b?"":b;if(!hR(this,a))return b;a=gR(this);if(!a)return"";b=sD(this.l,this.i,a);this.i+=a;return g.A.TextDecoder?(new TextDecoder).decode(b):g.$a(b)};for(var dva={playbackData:119,transfer:120,offlineVideoPolicy:130,ytMainVideoEntity:151,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,offlineOrchestrationActionWrapperEntity:169,offlineVideoStreams:198,captionTrack:225,orchestrationWebSamplingEntity:242,offlineabilityEntity:246,logoEntity:245},cva={},MKa=g.q(Object.entries(dva)),W2=MKa.next();!W2.done;W2=MKa.next()){var NKa=g.q(W2.value),OKa=NKa.next().value,PKa=NKa.next().value;PKa&&(cva[PKa]=OKa)};var X2={},hva=zw("PersistentEntityStoreDb",{Vt:(X2.EntityStore=!0,X2.EntityAssociationStore={aO:2},X2),iy:!1,upgrade:function(a,b){b(1)&&gw($v(a,"EntityStore",{keyPath:"key"}),"entityType","entityType");b(2)&&(a=$v(a,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),gw(a,"byParentEntityKey","parentEntityKey"),gw(a,"byChildEntityKey","childEntityKey"))},
version:2});g.v(zR,g.E);zR.prototype.l=function(a){iva(this,a.data)};
zR.prototype.ra=function(){this.channel&&this.channel.close()};
var FR,lva=void 0;var MR=g.A.caches,LR,NR;IR.prototype.open=function(a){return MR.open(KR(a))};
IR.prototype.has=function(a){return MR.has(KR(a))};
IR.prototype.delete=function(a){return MR.delete(KR(a))};
IR.prototype.match=function(a,b){return g.D(this,function d(){var e=this,f,h,l,m,n,p;return g.z(d,function(r){switch(r.i){case 1:return g.w(r,e.keys(),2);case 2:f=r.l,h=g.q(f),l=h.next();case 3:if(l.done){r.ub(5);break}m=l.value;return g.w(r,e.open(m),6);case 6:return n=r.l,g.w(r,n.match(a,b),7);case 7:if(p=r.l)return r.return(p);l=h.next();r.ub(3);break;case 5:return r.return()}})})};
g.v(JR,IR);JR.prototype.keys=function(){return g.D(this,function b(){var c,d,e,f,h,l,m,n,p;return g.z(b,function(r){if(1==r.i)return c=[],d=Hv("CacheStorage keys"),g.w(r,MR.keys(),2);e=r.l;f=g.q(e);for(h=f.next();!h.done;h=f.next()){l=h.value;var t=l.indexOf(":");m=-1===t?{BC:l}:{BC:l.substring(0,t),datasyncId:l.substring(t+1)};n=m.BC;p=m.datasyncId;p===d&&c.push(n)}return r.return(c)})})};var QKa={eW:"captionTrack",w0:"ytMainChannelEntity",x0:"ytMainDownloadedVideoEntity",y0:"ytMainVideoEntity",o3:"offlineOrchestrationActionWrapperEntity",x3:"offlineVideoPolicy",y3:"offlineVideoStreams",W3:"playbackData",g6:"transfer"},Twa=Object.keys(QKa).map(function(a){return QKa[a]}),Ava="captionTrack ytMainChannelEntity ytMainDownloadedVideoEntity ytMainVideoEntity offlineVideoPolicy offlineVideoStreams playbackData transfer".split(" ");var Zua=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{Zga(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},r=0;r<f.length;r++){var t=f[r],u=l[t],x=(0,c[t])(u,m);if("undefined"===typeof x)throw l=m&&m.type,Error("Given "+(l&&'action "'+String(l)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');
p[t]=x;n=n||x!==u}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null===(f=e.options)||void 0===f?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.Tx(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.Tx(new g.Gv("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=Jb(e.payload);return sR(d,l,e.entityKey,
e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=qR(e).entityType;l=sR(d,m,e,void 0)}catch(n){if(n instanceof Error)g.Tx(new g.Gv("Failed to deserialize entity key",{entityKey:e,originalMessage:n.message})),l=d;else throw n;}}else l=d;return l},a);
case "REPLACE_ENTITY":var c=b.payload;return sR(a,c.entityType,c.key,c.G7);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return sR(h,e,l,f[l])},d)},a);
default:return a}}}),mva=new eR;g.v(WR,UR);WR.prototype.l=function(a){return RR(a)?Eva(this,a):SR(a)?Fva(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.v(ZR,UR);ZR.prototype.l=function(a){return RR(a)?Iva(this,a):SR(a)?Jva(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_UPDATE"===a.actionType&&a.entityKey?this.handleUpdate(a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
ZR.prototype.handleUpdate=function(a){return g.D(this,function c(){var d,e=this,f;return g.z(c,function(h){switch(h.i){case 1:return d=QR(a),g.w(h,DR(e.i,a.entityKey,"transfer"),2);case 2:f=h.l;if(!f||"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"!==f.transferState)return h.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",d));ta(h,3);f.transferState="TRANSFER_STATE_TRANSFER_IN_QUEUE";return g.w(h,CR(e.i,f,"transfer"),5);case 5:ua(h,4);break;case 3:return va(h),h.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",
d));case 4:return h.return(new VR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",d))}})})};g.v($R,UR);$R.prototype.l=function(a){return RR(a)?Ova(this,a):SR(a)?Pva(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?Qva(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
var Sva=[10];var kwa=["OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"],RKa=Uva(),Tva=[1,2,4];var cS;awa.prototype.i=function(a,b){var c=a.action.actionMetadata.priority-b.action.actionMetadata.priority;0===c&&(a.i<b.i?c=-1:a.i>b.i&&(c=1));return c};g.v(eS,g.E);eS.prototype.ra=function(){this.G&&this.G();g.E.prototype.ra.call(this)};
eS.prototype.createAction=function(a,b){var c=qR(a.entityKey).entityType,d=zx();return new aS(c,d,a,b.actionId,b.rootActionId)};
eS.prototype.K=function(a){var b;return g.D(this,function d(){var e=this,f,h,l,m,n,p,r,t;return g.z(d,function(u){if(1==u.i){if(e.Ha())return u.return();f=null!==(b=a.offlineOrchestrationActionWrapperEntity)&&void 0!==b?b:new Set;h=[];l=g.q(f);for(m=l.next();!m.done;m=l.next())n=m.value,p=qR(n),r=p.entityId,cwa(e.l,r)||h.push(n);return g.w(u,mwa(e,h),2)}t=u.l;return g.w(u,CS(e,t),0)})})};rwa.prototype.info=function(){};NS.prototype.C=function(a){var b;return g.D(this,function d(){var e=this,f;return g.z(d,function(h){if(!g.U(a.state,128))return h.ub(0);var l=null===(b=a.state.getData())||void 0===b?void 0:b.errorCode;f=(null===l||void 0===l?0:l.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.w(h,e.ju(e.player.getVideoData().videoId,f),0)})})};
NS.prototype.ju=function(a,b){return g.D(this,function d(){var e=this;return g.z(d,function(f){if(1==f.i){if(e.l)return f.return();e.l=!0;return g.w(f,PS(e,a),2)}WG(a,4);return g.w(f,e.i.ju(b),0)})})};
NS.prototype.G=function(a){2===a.status?(a.status!==this.u&&(US(this.i),WG(a.videoId,2)),a.pu&&Gwa(this.i,a.videoId,a.pu)):4===a.status?this.ju(a.videoId,"TRANSFER_FAILURE_REASON_INTERNAL"):1===a.status&&Fwa(this.i);this.u=a.status;this.api.Na("localmediachange",{videoId:a.videoId,status:a.status})};
NS.prototype.tC=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){if(1==e.i){if(c.l)return e.return();c.l=!0;d=c.player.getVideoData().videoId;return g.w(e,PS(c,d),2)}return g.w(e,c.i.tC(),0)})})};g.v(QS,g.E);QS.prototype.ra=function(){this.l&&this.l();g.E.prototype.ra.call(this)};
QS.prototype.u=function(a){var b;return g.D(this,function d(){var e,f,h,l,m,n,p,r=this;return g.z(d,function(t){e=null!==(b=a.transfer)&&void 0!==b?b:new Set;f=[];h=g.q(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=qR(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.w(t,uwa(r,f),0)})})};g.v(RS,g.E);RS.prototype.ra=function(){this.B&&this.B();this.C.dispose();g.E.prototype.ra.call(this)};
RS.prototype.K=function(a){return g.D(this,function c(){var d=this;return g.z(c,function(e){switch(e.i){case 1:if(!d.i){e.ub(2);break}if("TRANSFER_STATE_COMPLETE"===d.i.transferState||"TRANSFER_STATE_FAILED"===d.i.transferState||!a.transfer||!a.transfer.has(d.i.key)){e.ub(3);break}return g.w(e,DR(d.l,d.i.key,"transfer"),4);case 4:d.i=e.l;if(d.i){e.ub(3);break}return g.w(e,Awa(d),3);case 3:if(d.i)return e.return();case 2:return g.w(e,SS(d),0)}})})};
RS.prototype.ju=function(a,b){return g.D(this,function d(){var e=this,f;return g.z(d,function(h){if(1==h.i){a:switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_PLAYABILITY":case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":var l=!1;break a;default:l=!0}return l?Hwa(e)?g.w(h,WS(e,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),3):g.w(h,XS(e,"TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES"),3):g.w(h,XS(e,a),3)}TS(e);f=SS(e,!0);
b&&b(f);g.sa(h)})})};
RS.prototype.tC=function(a){return g.D(this,function c(){var d=this,e,f,h,l,m,n;return g.z(c,function(p){if(1==p.i)return Hwa(d)?g.w(p,WS(d,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.w(p,XS(d,"TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES"),3);if(3!=p.i)return e=qR(d.i.key).entityId,PR({encryptedVideoId:e,cotn:d.i.cotn,transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"}),f=Uva(),f.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},
h=rR(e,"playbackData"),l={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h,actionMetadata:f},m=bS(new aS("playbackData",e,l)),g.w(p,CR(d.l,m,"offlineOrchestrationActionWrapperEntity"),3);TS(d);n=SS(d,!0);a&&a(n);g.sa(p)})})};
var Y2={},YS=(Y2.TRANSFER_STATE_TRANSFERRING=1,Y2.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,Y2);g.k=Kwa.prototype;g.k.isOrchestrationLeader=function(){return this.B};
g.k.refreshAllVideos=function(){return g.D(this,function b(){var c=this,d;return g.z(b,function(e){switch(e.i){case 1:if(c.u.Vi()){e.ub(2);break}return g.w(e,Swa(c),3);case 3:return e.return([]);case 2:return d=c.uu,g.w(e,Rwa(c),4);case 4:return e.return(d.call(c,e.l,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))}})})};
g.k.deleteVideos=function(a){return g.D(this,function c(){var d=this;return g.z(c,function(e){return e.return(d.uu(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.deleteAllVideos=function(){return g.D(this,function b(){var c=this;return g.z(b,function(d){return d.return(c.uu(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.uu=function(a,b){return g.D(this,function d(){var e,f;return g.z(d,function(h){if(1==h.i)return g.w(h,GR(),2);e=h.l;if(!e)return h.return([]);f=a.map(function(l){var m=rR(l,"ytMainDownloadedVideoEntity");l=new aS("ytMainDownloadedVideoEntity",l,{actionType:b,entityKey:m,actionMetadata:RKa});return bS(l)});
return h.return(jva(e,f))})})};var ZS=[],zEa=!1;g.wW=cb(function(){var a="";try{var b=g.ng("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.v(g.$S,wK);g.k=g.$S.prototype;g.k.isView=function(){return!0};
g.k.VC=function(){var a=this.i.getCurrentTime();if(a<this.start)try{var b=this.i.Nf(),c=hE(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Ko=function(){return kE(this.i.Ko(),this.start,this.end)};
g.k.Nf=function(){return kE(this.i.Nf(),this.start,this.end)};
g.k.ut=function(){return kE(this.i.ut(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.i.getCurrentTime()-this.start};
g.k.by=function(a){this.i.by(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.B?this.end-this.start:this.i.getDuration()-this.start};
g.k.play=function(){if(this.VC()){this.i.getCurrentTime();try{this.i.by(this.start)}catch(a){}}return this.i.play()};
g.k.Cb=function(){var a=wK.prototype.Cb.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.i.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};
g.k.tv=function(){return this.i.tv()};
g.k.fq=function(a){this.i.fq(a)};
g.k.qv=function(){return this.i.qv()};
g.k.playVideo=function(){return this.i.playVideo()};
g.k.NA=function(){this.i.NA()};
g.k.MA=function(){this.i.MA()};
g.k.Ln=function(){return this.i.Ln()};
g.k.ue=function(){return this.i.ue()};
g.k.vf=function(){return this.i.vf()};
g.k.wv=function(a){this.i.wv(a)};
g.k.Tx=function(){this.i.Tx()};
g.k.getPlaybackRate=function(){return this.i.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.i.setPlaybackRate(a)};
g.k.ov=function(){return this.i.ov()};
g.k.setLoop=function(a){this.i.setLoop(a)};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.Xl=function(){return this.i.Xl()};
g.k.Tr=function(){return this.i.Tr()};
g.k.ck=function(){return this.i.ck()};
g.k.xw=function(){return this.i.xw()};
g.k.jr=function(a){this.i.jr(a)};
g.k.uv=function(){return this.i.uv()};
g.k.load=function(){this.i.load()};
g.k.pause=function(){this.i.pause()};
g.k.eh=function(){return this.i.eh()};
g.k.yw=function(){return this.i.yw()};
g.k.Ki=function(){return this.i.Ki()};
g.k.Yd=function(){return this.i.Yd()};
g.k.vv=function(){return this.i.vv()};
g.k.zf=function(){return this.i.zf()};
g.k.Bp=function(){return this.i.Bp()};
g.k.togglePictureInPicture=function(){this.i.togglePictureInPicture()};
g.k.Em=function(){return this.i.Em()};
g.k.Vp=function(){return this.i.Vp()};
g.k.setSize=function(a){this.i.setSize(a)};
g.k.getVolume=function(){return this.i.getVolume()};
g.k.setVolume=function(a){this.i.setVolume(a)};
g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.k.rs=ba(22);g.k.Ou=ba(24);g.k.Pu=ba(26);g.k.Ds=ba(28);g.k.Ns=function(){return this.i.Ns()};
g.k.dm=function(a){this.i.dm(a)};
g.k.vt=function(a){return this.i.vt(a)};
g.k.JB=function(){return this.i.JB()};
g.k.stopVideo=function(){this.i.stopVideo()};
g.k.QA=function(a){this.i.QA(a)};aT.prototype.then=function(a,b){return this.promise.then(a,b)};
aT.prototype.resolve=function(a){this.l(a)};
aT.prototype.reject=function(a){this.i(a)};g.v(bT,g.E);g.k=bT.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Sn=function(){var a=this.i.getVideoData(),b=this.l.getVideoData();if(a.u){var c;if(c=a.i){c=a.i;for(var d=!1,e=!1,f=g.q(Object.values(c.i)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.i["0"]&&(e=!0);c=!(d&&e)}if(c)this.ea();else if(this.i.md()){h=Ywa(this.policy,this.i,this.l,this.pj);f=Zwa(this);c=f.qO;e=f.BI;d=f.FG;f=f.AI;if(!this.J){var l=1E3*this.l.jl(),m=this.i.jl();m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=
a.isAd();var n=this.l.C;n.qoe&&(n=n.qoe,n.J={gU:Number(n.Ja("glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a)),CI:l,TT:m,isAd:a});this.J=!0}h?this.re("cannot_apply"+h+";transitionTimeMs."+this.pj):2===this.status.status?fxa(this):(a=this.i.mediaSource)?vE(a)?!tE(a)&&g.it()?this.re("mse_closed"):b.i&&fB(b.i)&&a.l&&!a.l.qw()?this.re("encr_upgrade"):(b=this.i.md(),b.ck()?this.re("elem_ended"):0>e?this.re("next_player_future"):(this.G=d,this.u=yE(a,c,d,!0),this.B=yE(a,e,f,!1),a=this.l.getVideoData().clientPlaybackNonce,
this.i.Ja("gaplessPrep","cpn."+a),fT(this.i,this.u),dT(this.i,$wa(b,c,d,!this.i.getVideoData().isAd())),eT(this,2),fxa(this))):this.ea():this.ea()}else this.re("no-elem")}else this.ea()};
g.k.Xp=function(a){var b=exa(this).kK,c=a===b;b=c?this.u.i:this.u.l;c=c?this.B.i:this.B.l;if(b.isActive&&!c.isActive){var d=this.G;gE(a.Te(),d-.01)&&(eT(this,4),b.isActive=!1,b.Zu=b.Zu||b.isActive,this.l.Ja("sbh","1"),c.isActive=!0,c.Zu=c.Zu||c.isActive);a=this.B.l;this.B.i.isActive&&a.isActive&&eT(this,5)}};
g.k.dJ=function(){4<=this.status.status&&6>this.status.status&&this.re("player-reload-after-handoff")};
g.k.re=function(a){if(!this.Ha()&&!this.isFinished()){this.ea();var b=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.l){var c=this.l.getVideoData().clientPlaybackNonce;this.i.Ja("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Ua=!1;b&&IX(a);a.l&&(b=a.l,b.policy.xa=!1,b.mediaSource&&KV(b))}this.C.reject(void 0);this.dispose()}};
g.k.ra=function(){dxa(this);this.i.unsubscribe("newelementrequired",this.dJ,this);if(this.u){var a=this.u.l;this.u.i.jd.unsubscribe("updateend",this.Xp,this);a.jd.unsubscribe("updateend",this.Xp,this)}g.E.prototype.ra.call(this)};
g.k.Dc=function(a){g.UI(a,128)&&this.re("player-error-event")};
g.k.ea=function(){};g.v(hT,g.E);hT.prototype.clearQueue=function(){this.ea();this.B&&this.B.reject("Queue cleared");iT(this)};
hT.prototype.Mq=function(){return!this.l};
hT.prototype.ra=function(){iT(this);g.E.prototype.ra.call(this)};
hT.prototype.ea=function(){};g.v(lT,g.Q);g.k=lT.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:jxa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.ji=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Fe())};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Fe())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Fe())};
g.k.lr=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Fe())};
g.k.setImmersivePreview=function(a){this.l!==a&&(this.l=a,this.Fe())};
g.k.zf=function(){return this.i};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.Ce=function(){return this.u};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return jxa()};
g.k.Lq=function(){return this.pictureInPicture};
g.k.Jq=function(){return this.l};
g.k.Fe=function(){this.W("visibilitychange");var a=this.getVisibilityState(this.zf(),this.isFullscreen(),this.Ce(),this.isInline(),this.Lq(),this.Jq());a!==this.C&&this.W("visibilitystatechange");this.C=a};
g.k.ra=function(){mxa(this.B);g.Q.prototype.ra.call(this)};g.v(g.oT,g.E);g.k=g.oT.prototype;g.k.yd=function(a){this.Da.push(a);var b=this.C.get(a),c=null==b;if(this.Ga)this.Ga=!1,c||(a=this.B.find(function(d){return d.cpn===b}))&&this.api.W("serverstitchedvideochange",a.Wc),this.U=!1;
else if(this.u){if(this.u.Ht)this.i.Ja("sdai","a_pair_of_same_transition_occurs_enter");else{if(this.u.Td===a){this.u=void 0;return}if(this.u.adCpn===b){this.i.Ja("sdai","dchtsc");this.u=void 0;return}a={Td:a,isAd:!c,Ht:!0,Ql:this.i.getCurrentTime(),adCpn:b};txa(this,a,this.u)}this.u=void 0;this.U=!1}else this.u={Td:a,isAd:!c,Ht:!0,Ql:this.i.getCurrentTime(),adCpn:b}};
g.k.bf=function(a){this.Da=this.Da.filter(function(d){return d!==a});
this.Ga&&(this.U=this.Ga=!1,this.i.Ja("sdai","cref"));var b=this.C.get(a),c=null==b;if(this.u){if(this.u.Ht){if(this.u.Td===a){this.u=void 0;return}if(this.u.adCpn===b){this.i.Ja("sdai","dchtsc");this.u=void 0;return}c={Td:a,isAd:!c,Ht:!1,Ql:this.i.getCurrentTime(),adCpn:b};txa(this,this.u,c)}else this.i.Ja("sdai","a_pair_of_same_transition_occurs_exit");this.u=void 0;this.U=!1}else this.u={Td:a,isAd:!c,Ht:!1,Ql:this.i.getCurrentTime(),adCpn:b};g.S(this.l.experiments,"web_player_halftime_dai")&&(c=
this.B.find(function(d){return d.cpn===b}),this.isLiveNow&&c&&this.i.getCurrentTime()<FT(this.i)&&mT(this,Infinity))};
g.k.isAdPlaying=function(a){return!!sT(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.U=!0;if(void 0===b?0:b)mT(this,a);else{b=this.api.Kc();var d=b===this.ma?this.Aa:null;tT(this,!1);this.Va=a;null!=c&&this.Ua.start(c);b&&(this.Aa=d||b.getPlayerState(),aY(b),this.ma=b)}};
g.k.ra=function(){tT(this,!1);vT(this);g.E.prototype.ra.call(this)};
g.k.ea=function(){};
g.k.Ti=function(a,b,c){if(c&&b){var d=this.va.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.pB(c);this.l.Z("html5_high_res_logging")&&this.i.Ja("sdai","hdlredir."+b+"."+a+"."+sB(c));d.locations.set(e,c)}}};
g.k.Aq=function(a,b,c,d){var e,f,h,l=Number(c.split(";")[0]),m=3===d;if(g.zxa(this,b))return this.l.Z("html5_high_res_logging")&&this.i.Ja("sdai","gdu.undec.seg."+b+".itag."+l),null;a=wxa(this,a,b);this.l.Z("html5_high_res_logging")&&this.i.Ja("sdai","gdu.seg."+b+".itag."+l+".pb."+!!a);if(!a)return xT(this,b,m),null;a.locations||(a.locations=new Map);if(!a.locations.has(l)){var n=null===(f=null===(e=a.playerResponse)||void 0===e?void 0:e.streamingData)||void 0===f?void 0:f.adaptiveFormats;if(!n)return this.i.Ja("sdai",
"gdu.noadpfmts.seg."+b+".itag."+l),xT(this,b,m),null;n=n.find(function(p){return p.itag===l});
if(!n||!n.url)return this.i.Ja("sdai","gdu.nofmt.seg."+b+".itag."+l),xT(this,b,m),null;a.locations.set(l,new g.pB(n.url))}n=a.locations.get(l);if(!n)return this.i.Ja("sdai","gdu.nourl.seg."+b+".itag."+l),xT(this,b,m),null;n=new rC(n);(c=xxa(this,b-1,c,d))&&n.set("daistate",c);a.oD&&b>=a.oD&&n.set("skipsq",""+a.oD);(c=this.i.getVideoData().clientPlaybackNonce)&&n.set("cpn",c);c=[];a.Mi&&(c=Axa(this,a.Mi),0<c.length&&n.set("acpns",c.join(",")));g.S(this.l.experiments,"html5_high_res_logging")&&this.i.Ja("sdai",
"ast."+a.Ic.toFixed(3)+".alen."+a.durationMs.toFixed(3)+".acpn."+a.cpn);m||this.va.set(b,a);this.xa&&!g.S(this.l.experiments,"web_player_ssdai_acpns_aids_logging_killswitch")&&(b=n.get("aids"),((null===(h=null===b||void 0===b?void 0:b.split(","))||void 0===h?void 0:h.length)||0)!==c.length&&(a.Mi?this.i.Ja("sdai","acpns_aids_nm.ids."+Bxa(this,a.Mi).join(",")+".aids."+b):this.i.Ja("sdai","acpns_aids_nm.noAdBreakId")),this.xa=!1);return g.tC(n)};
g.k.nD=function(a,b){if(a=wxa(this,a,b)){a=a.Mi;this.i.Ja("sdai","skip_adbreakid_"+a);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d=d.value,d.Mi===a&&(d.oD=b)}};
g.k.zC=function(a,b,c,d,e,f,h){h&&(f?this.Pa.set(a,h):this.Ea.set(a,h));if(f)if(d.length&&e.length)for(a=1E3*b,d=g.q(d.entries()),b=d.next();!b.done;b=d.next())if(b=g.q(b.value),c=b.next().value,b=b.next().value,c=1E3*e[c],b===this.i.getVideoData().clientPlaybackNonce)wT(this,a,a+c,!1),a+=c;else{f=void 0;h=g.q(this.C);for(var l=h.next();!l.done;l=h.next()){l=g.q(l.value);var m=l.next().value;l.next().value===b&&(f=m)}f&&f.start<=a&&f.end>=a+c||(h=!1,f?a<f.start?f.start=a:f.end<a+c&&(f.end=a+c):(f=
sxa(a,a+c),this.C.set(f,b),h=!0),a=f.end,wT(this,f.start,f.end,!0),h&&this.i.addCueRange(f))}else 5!==c&&4!==c||wT(this,1E3*b,1E3*b+5E3,!1)};
g.k.Xs=ba(31);g.k.wd=function(a){this.i.Ja("timelineerror",a)};
g.k.tB=function(a){var b;sn(this.X,function(c){return c.identifier===a.identifier})?(this.i.Ja("sdai","timedoutcp.1"),this.J.start(0)):this.J.isActive()?this.i.Ja("sdai","racingcp_"+(null===(b=this.Y)||void 0===b?void 0:b.identifier)+"_"+a.identifier):(g.S(this.l.experiments,"html5_high_res_logging")&&this.i.Ja("sdai","adf.1"),this.K=!1,this.J.start(),this.xa=!0,this.Y=a,this.Ea.clear(),this.Pa.clear(),this.va.clear(),this.La=[])};
g.k.gp=function(a){var b;(null===(b=this.Y)||void 0===b?void 0:b.identifier)===a&&this.J.isActive()&&(this.K=!1,this.J.stop(),this.xa=!1,nT(this,!1))};
var qxa=0;g.v(zT,g.E);g.k=zT.prototype;g.k.yd=function(a){if(this.l===this.api.Kc()){var b=this.J.get(a);if(b){var c=b.target;this.ea();Jxa(this,c,b.pj,a)}else this.wd("e.unexpectedCueRangeTriggered")}else if(b=this.i.find(function(e){return e.wm.Td===a})){var d=b.wm;
this.ea();c=d.target;d=d.pj;c?Jxa(this,c,d,a):Ixa(this,b.pd,d,a)}};
g.k.vS=function(){var a=this.K;CT(this);if(a){BT(this,a)||this.wd("e.unexpectedPresentingPlayer");var b=this.api.Kc();a=a.wm;this.ea();b.addCueRange(a.Td)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)Dxa(this,a);else{b=this.api.Kc();var d=b===this.B?this.G:null;ET(this,!1);this.Y=a;null!=c&&this.U.start(c);b&&(this.G=d||b.getPlayerState(),aY(b),this.B=b)}};
g.k.Tg=function(a){g.UI(a,128)&&Mxa(this)};
g.k.isManifestless=function(){return GH(this.l.getVideoData())};
g.k.ra=function(){ET(this,!1);HT(this);g.E.prototype.ra.call(this)};
g.k.ea=function(){};
g.k.wd=function(a){this.l.Ja("timelineerror",a)};
var Exa=0;var Oxa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.v(KT,g.E);KT.prototype.get=function(a){IT(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
KT.prototype.set=function(a,b,c){this.remove(a,!0);IT(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.P)()+c);for(this.data.push(a);this.data.length>this.u;)(c=this.data.shift())&&LT(this,c,!0);JT(this)};
KT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(LT(this,c,b),g.pb(this.data,function(d){return d.key===a}),JT(this))};
KT.prototype.ra=function(){var a=this;g.E.prototype.ra.call(this);this.data.forEach(function(b){LT(a,b,!0)});
this.data=[]};MT.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
MT.prototype.forEach=function(a){for(var b=this.i+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.i;b++)a(this.data[b]||0)};
MT.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.l=this.i=this.data.length-1};g.v(NT,g.E);NT.prototype.start=function(){this.l.start()};
NT.prototype.stop=function(){this.l.stop()};
NT.prototype.clear=function(){for(var a=g.q(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
NT.prototype.u=function(){for(var a=g.q(this.B),b=a.next();!b.done;b=a.next()){var c=g.q(b.value);b=c.next().value;c=c.next().value;this.i.has(b)||this.i.set(b,new QT(SKa.has(b)));this.i.get(b).update(c())}this.l.start()};
var SKa=new Set(["networkactivity"]);QT.prototype.update=function(a){this.l?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
QT.prototype.clear=function(){this.buffer.clear();this.i=0};g.v(RT,g.E);RT.prototype.ra=function(){g.E.prototype.ra.call(this);this.i=null;this.l&&this.l.disconnect()};g.TKa=cb(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var Z2;Z2={};g.ST=(Z2.STOP_EVENT_PROPAGATION="html5-stop-propagation",Z2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Z2.IV_DRAWER_OPEN="ytp-iv-drawer-open",Z2.MAIN_VIDEO="html5-main-video",Z2.VIDEO_CONTAINER="html5-video-container",Z2.HOUSE_BRAND="house-brand",Z2);g.v(TT,g.V);g.k=TT.prototype;g.k.dm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.Nq(this.element,b)};
g.k.yg=function(){this.Eb&&(this.Eb.removeEventListener("focus",this.rC),g.rg(this.Eb),this.Eb=null)};
g.k.KA=function(){this.Ha();var a=this.app.T();a.Gi||this.dm("tag-pool-enabled");a.C&&this.dm(g.ST.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.dm("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Ya&&(this.DA=g.wu("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)};
g.k.Eu=function(a){RF(this.app.T());this.Kw=!a;UT(this)};
g.k.resize=function(){if(this.Eb){var a=this.Zf();if(!a.isEmpty()){var b=this.Yq;b=!g.Tf(a,new g.Sf(b.width,b.height));var c=Xxa(this);b&&(this.Yq.width=a.width,this.Yq.height=a.height);a=this.app.T();(c||b||a.Ya)&&this.app.Wa.W("resize",this.getPlayerSize())}}};
g.k.Gq=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Eb){var b=this.app.T();qt&&(this.Eb.setAttribute("x-webkit-airplay","allow"),a.title?this.Eb.setAttribute("title",a.title):this.Eb.removeAttribute("title"));Lma(a)?this.Eb.setAttribute("disableremoteplayback",""):this.Eb.removeAttribute("disableremoteplayback");this.Eb.setAttribute("controlslist","nodownload");b.Tk&&a.videoId&&(this.Eb.poster=a.Ke("default.jpg"))}b=g.MH(a,"yt:bgcolor");this.Fs.style.backgroundColor=b?b:"";this.bC=GF(g.MH(a,"yt:stretch"));this.cC=
GF(g.MH(a,"yt:crop"),!0);g.N(this.element,"ytp-dni",a.C);this.resize()};
g.k.setGlobalCrop=function(a){this.rB=GF(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.nG=a;this.resize()};
g.k.ji=function(){};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.Wa.isFullscreen();if(b&&gt())return new g.Sf(window.outerWidth,window.outerHeight);if(b||a.Kj){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Nt&&this.Nt.media===a||(this.Nt=window.matchMedia(a));var c=this.Nt&&this.Nt.matches}if(c)return new g.Sf(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.Ts.width)&&!isNaN(this.Ts.height))return this.Ts.clone();if(this.Jy&&this.UD&&!this.app.isWidescreen())for(a=
0;a<this.Jy.length;a++)if(b=this.Jy[a],b.query.matches)return new g.Sf(b.size.width,b.size.height)}return new g.Sf(this.element.clientWidth,this.element.clientHeight)};
g.k.Zf=function(){return this.getPlayerSize()};
g.k.getVideoAspectRatio=function(){return isNaN(this.bC)?Vxa(this):this.bC};
g.k.getVideoContentRect=function(a){var b=this.Zf();a=Wxa(this,b,this.getVideoAspectRatio(),a);return new g.pl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.au=function(){UT(this)};
g.k.setUseFastSizingOnWatch=function(a){this.UD!==a&&(this.UD=a,this.resize())};
g.k.setInternalSize=function(a){g.Tf(this.Ts,a)||(this.Ts=a,this.resize())};
g.k.ra=function(){this.DA&&g.xu(this.DA);this.yg();g.V.prototype.ra.call(this)};g.k=Yxa.prototype;g.k.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.Ix();c&&a.visualElement&&g.Ty(c,a.visualElement,b)};
g.k.Xb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=ria(c);a.visualElement=c;var f=g.Ix(),h=g.Gx();f&&h&&g.hy(f,h,c);g.gf(b,function(){Zxa(e,a)});
d&&this.l.add(a)};
g.k.Ig=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.gf(b,function(){Zxa(d,a)});
c&&this.l.add(a)};
g.k.Nl=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Cx(b))};
g.k.Bt=function(a){return this.elements.has(a)};g.v($T,g.V);
$T.prototype.setValue=function(a,b){for(var c=0;c+2<this.u.length&&this.u[c+1]<b;)c++;b=Math.min(1,(b-this.u[c])/(this.u[c+1]-this.u[c]));if(this.ctx)this.ctx.fillStyle=this.B[c],this.ctx.fillRect(a*this.i,0,this.i,this.heightPx),this.ctx.fillStyle=this.B[c+1],this.ctx.fillRect(a*this.i,this.heightPx*(1-b),this.i,this.heightPx);else{a=this.element.children[a];var d=window.devicePixelRatio||1;b=Math.min(this.heightPx,Math.round(this.heightPx*b*d)/d)||0;a.style.height=b+"px";a.style.backgroundColor=this.B[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.B[c]}};g.v(bU,g.V);g.k=bU.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.Ma()};
g.k.hide=function(){g.V.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.Ma()};
g.k.Ma=function(){var a=(0,g.P)(),b=this.C.getStatsForNerds();aU(this.i,b.bandwidth_samples);aU(this.B,b.network_activity_samples);aU(this.u,b.live_latency_samples);aU(this.l,b.buffer_health_samples);this.update(b);a=25<(0,g.P)()-a?5E3:500;this.delay.start(a)};cU.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};
cU.prototype.now=function(){return(0,g.P)()};kU.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
kU.prototype.getPlaybackRate=function(){return this.playbackRate};g.v(oU,g.Q);oU.prototype.seek=function(a){a!==this.u&&(this.seekCount=0);this.u=a;var b=this.videoTrack.l,c=this.audioTrack.l,d=this.audioTrack.Qb,e=nya(this,this.videoTrack,a,this.videoTrack.Qb);d=nya(this,this.audioTrack,this.policy.Pa?a:e,d);a=Math.max(a,e,d);this.i=!0;this.l.isManifestless&&(lya(this,this.videoTrack,b),lya(this,this.audioTrack,c));b=this.G;b.u=null;b.G=!1;return a};
oU.prototype.ea=function(){};
var mya=2/24;uU.prototype.fb=function(){this.tick("gv")};
uU.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.P)()};g.v(vU,g.Q);
vU.prototype.uC=function(a,b){if(this.Y){var c=[],d=[],e=void 0;a.i&&(e=a.i,c=e.l,d=e.u,e=e.i);this.Y.zC(a.Ka,a.startTime,this.l,c,d,b,e)}if(b)if(this.policy.Aa){b=this.X&&a.Ka===this.X.Ka+1;this.X=a;c=this.i&&a.Ka===this.i.Ka+1;c=this.i&&b&&c&&"stop"!==this.i.Fd.event&&"predictStart"!==this.i.Fd.event;d=a.Fd||null;e=this.J.i.index.getLastSegmentNumber()<=a.Ka;var f=this.U.isManifestless&&this.policy.yb;d?(this.i={Fd:d,Ka:a.Ka},e?wU(this,d,a.Ka):f&&(b?c?wU(this,d,a.Ka):"continue"===d.event||"stop"===
d.event?xU(this,a):wU(this,d,a.Ka):wU(this,d,a.Ka))):c&&xU(this,a)}else b=this.i&&this.u&&this.i.Ka===this.u.Ka-1,b=this.i&&b&&"stop"!==this.i.Fd.event&&"predictStart"!==this.i.Fd.event,this.u&&this.u.Ka<a.Ka&&(b?xU(this,this.u):this.G=!0),this.u=a};
vU.prototype.Cx=function(a,b){var c=this.J.i.index.getLastSegmentNumber()<=b,d=this.U.isManifestless&&this.policy.yb;this.i={Fd:a,Ka:b};this.policy.yb&&this.G&&this.u&&(this.G=!1,"continue"!==a.event&&"stop"!==a.event||xU(this,this.u));this.u&&this.u.Ka===b&&(this.u=null);(c||d)&&wU(this,a,b)};uya.prototype.ea=function(){};MU.prototype.vg=function(){if(this.offset>=this.i.totalLength)throw Error();return uD(this.i,this.offset++)};
MU.prototype.skip=function(a){this.offset+=a};
MU.prototype.getOffset=function(){return this.offset};OU.prototype.oi=function(){this.l.shift()};
OU.prototype.Qm=function(){return!!this.C.info.audio};
OU.prototype.getDuration=function(){return this.C.index.getMaxKnownEndTime()};
OU.prototype.ea=function(){};g.k=XU.prototype;g.k.dB=function(){return 0};
g.k.IE=function(){return null};
g.k.gH=function(){return null};
g.k.isFailed=function(){return 5===this.state};
g.k.sz=function(){};
g.k.Ha=function(){return-1===this.state};
g.k.dispose=function(){this.info.Oh()&&4!==this.state&&(this.info.i[0].i.B=!1);YU(this,-1)};g.v($U,XU);g.k=$U.prototype;g.k.sz=function(){if(this.Ha()){var a=this.u,b=this.l;a.me[b].Gd=new lD;sX(a,b)}};
g.k.Xr=function(){return{}};
g.k.cH=function(){return 0};
g.k.Yp=function(){return!0};
g.k.vz=function(){nza(this);this.K=!0;return kza(this.i)};
g.k.JE=function(){nza(this);return this.i.Gd};
g.k.Xq=function(){var a,b;return!(null===(b=null===(a=this.i)||void 0===a?void 0:a.Gd)||void 0===b||!b.length)||this.u.dg(this.l)};aV.prototype.qg=function(){return Uya(this.B)};
aV.prototype.oi=function(a){this.B.oi(a);a=a.info;a.i.info.Ib>=this.Ib&&(this.Ib=a.i.info.Ib)};
aV.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()};
aV.prototype.isRequestPending=function(a){return this.u.length?a===this.u[this.u.length-1].info.i[0].Ka:!1};oV.prototype.send=function(){g.Ps(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:this.onComplete,onTimeout:this.onComplete,context:this});this.i=(0,g.P)()};
oV.prototype.onComplete=function(a){var b,c={rc:a.status,lb:(null===(b=a.response)||void 0===b?void 0:b.byteLength)||0,rt:(((0,g.P)()-this.i)/1E3).toFixed(3),shost:g.ii(this.target),trigger:this.trigger};204===a.status||a.response?this.l&&this.l(g.nE(c)):this.u(new g.mE("pathprobe.net",!1,c))};g.k=zza.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.i.get("type"):""};
g.k.abort=function(){};
g.k.Nm=function(){return!0};
g.k.Ws=function(){return this.range.length};
g.k.Jo=function(){return this.loaded};
g.k.Rx=function(){return!!this.loaded};
g.k.dg=function(){return!!this.l.totalLength};
g.k.oi=function(){var a=this.l;this.l=new lD;return a};
g.k.qg=function(){return this.l};
g.k.xr=function(){return!0};
g.k.OC=function(){return!!this.error};
g.k.Yd=function(){return this.error};var Cza=0;g.k=pV.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.va);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.Aa,this.onError).then(void 0,Av)};
g.k.onDone=function(){if(!this.Ha()){this.ea();this.Y=!0;if(Bza(this)&&!this.i.totalLength&&!this.G&&this.l){OA(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.l+=a.length}this.C.mu()}};
g.k.getResponseHeader=function(a){return this.K?this.K.get(a):null};
g.k.Nm=function(){return!!this.K};
g.k.Jo=function(){return this.l};
g.k.Ws=function(){return+this.getResponseHeader("content-length")};
g.k.Rx=function(){return 200<=this.status&&300>this.status&&!!this.l};
g.k.ea=function(){};
g.k.dg=function(){if(this.Y)return!!this.i.totalLength;if(!this.Nm())return!1;var a=this.policy.u;if(a&&this.X+a>Date.now())return!1;a=this.Ws()||0;a=Math.max(16384,this.policy.i*a);this.ma||(a=Math.max(a,16384));this.policy.Jf&&OA(this)&&(a=1);return this.i.totalLength>=a};
g.k.oi=function(){this.dg();this.X=Date.now();this.ma=!0;var a=this.i;this.i=new lD;return a};
g.k.qg=function(){this.dg();return this.i};
g.k.Ha=function(){return this.U};
g.k.abort=function(){this.ea();this.u&&this.u.cancel().catch(function(){});
this.B&&this.B.abort();this.U=!0};
g.k.xr=function(){return!0};
g.k.OC=function(){return this.G};
g.k.Yd=function(){return this.errorMessage};g.k=qV.prototype;g.k.onDone=function(){if(!this.Ha){this.status=this.xhr.status;try{this.response=this.xhr.response,this.l=this.response.byteLength}catch(a){}this.i=!0;this.u.mu()}};
g.k.Yc=function(a){this.Ha||(this.status=this.xhr.status,this.i||(this.l=a.loaded),this.u.Ix((0,g.P)(),a.loaded))};
g.k.Nm=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return Ur(Error("Could not read XHR header "+a)),""}};
g.k.Ws=function(){return+this.getResponseHeader("content-length")};
g.k.Jo=function(){return this.l};
g.k.Rx=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.l};
g.k.dg=function(){return this.i&&!!this.response&&!!this.response.byteLength};
g.k.oi=function(){this.dg();var a=this.response;this.response=void 0;return new lD([new Uint8Array(a)])};
g.k.qg=function(){this.dg();return new lD([new Uint8Array(this.response)])};
g.k.abort=function(){this.Ha=!0;this.xhr.abort()};
g.k.xr=function(){return!1};
g.k.OC=function(){return!1};
g.k.Yd=function(){return""};g.v(tV,XU);g.k=tV.prototype;
g.k.Xr=function(){var a=eya(this.timing);a.shost=sB(this.l.ih);a.rn=this.requestNumber.toString();this.u&&(a.rc=this.u.toString());a.itag=this.info.i[0].i.info.kc();a.ml=""+ +this.info.i[0].i.Be();a.sq=""+this.info.i[0].Ka;if(this.l){var b=this.l.ih;rB(b);var c=decodeURIComponent(b.get("mn")||"").split(",");a.ifi=""+ +("/videoplayback"===b.path&&1<c.length&&!!c[1])}410!==this.u&&500!==this.u&&503!==this.u||(a.fmt_unav="true");this.xhr.Yd()&&(a.msg=this.xhr.Yd());this.Nu&&(a.smb="1");this.i&&(b=this.i.Gd,
b.length&&yD(b[0],a));return a};
g.k.cH=function(){var a=this.timing;return(a.B-a.i)/1E3};
g.k.Yd=function(){return this.xhr.Yd()||""};
g.k.Yp=function(){var a;(a=3<=this.state)||(a=this.timing,a=a.l>a.Ua&&eU(a,a.l));return a};
g.k.Ix=function(a,b){if(!this.Ha()&&this.xhr){this.u=this.xhr.status;var c=this.Yp(),d=this.timing;hU(d,a,b);50>a-d.B&&iU(d)&&3!==dU(d)||jya(d,a,b);this.Xq()?ZU(this,2):!c&&this.Yp()&&ZU(this)}};
g.k.AC=function(){if(!this.Ha()&&this.xhr){if(!this.Y&&this.xhr.Nm()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Y=((0,g.P)()-a)/1E3}this.xhr.Nm()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Fn&&!Iza()&&pKa(!0);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.G=a||this.G;this.J=b||this.J}};
g.k.mu=function(){var a=this.xhr;!this.Ha()&&a&&(this.U.stop(),this.u=a.status,a=Nza(this,a),5===a?sV(this):YU(this,a))};
g.k.canRetry=function(){this.Ha();var a=rV(this);return 100>a.timedOut&&a.i<this.policy.Jj};
g.k.sz=function(){3<=this.state&&(this.policy.gh?uV(this):this.timing.deactivate())};
g.k.aU=function(){if(!this.Ha()){var a=(0,g.P)(),b=!1;iU(this.timing)?(a=this.timing.U,gya(this.timing),this.timing.U-a>=.8*this.ma?(this.B++,this.ea(),b=5<=this.B):this.B=0):(b=this.timing,b.Rg&&jU(b,b.now()),a-=b.X,this.policy.wb&&0<a&&(this.B+=1),b=!this.policy.va,b=vC(rV(this),this.policy,b)*this.policy.Mk,(b=a>1E3*b)&&this.ea());this.B&&this.callback&&this.callback(this,this.state);b?Oza(this,!1):this.U.start()}};
g.k.dispose=function(){XU.prototype.dispose.call(this);this.U.dispose();this.policy.gh||uV(this)};
g.k.vz=function(){if(!this.JE().length)return[];this.K=!0;return kza(this.i)};
g.k.Xq=function(){return 1>this.state?!1:this.i&&this.i.Gd.length||this.xhr.dg()?!0:!1};
g.k.JE=function(){Kza(this,!1);return this.i?this.i.Gd:[]};
g.k.Jo=function(){return this.xhr.Jo()};
g.k.dB=function(){return this.Y};
g.k.ea=function(){};
g.k.IE=function(){this.xhr&&(this.G=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.G};
g.k.gH=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.J};
var Eza=0,Lza=-1;vV.prototype.clear=function(){this.l=this.J=this.B=null;this.i=this.C=this.G=this.startTimeSecs=NaN;this.u=!1};
vV.prototype.ea=function(){};g.v(g.xV,g.Q);g.k=g.xV.prototype;
g.k.initialize=function(a,b,c){this.ea();a=a||0;this.W("videoformatchange",Cya(this.l));if(this.i.isManifestless){if(this.policy.Ai){b=mB(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.l=b)}Zza(this)}this.C&&Qza(this.C,this.videoTrack.i);this.policy.Ea&&NA()&&this.Ja("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.X&&(Yza(this,this.videoTrack),Yza(this,this.audioTrack),fDa(this.X),
delete this.X);c?(this.policy.wc?(this.bb=c,CV(this,c)):CV(this,!1),g.Eq(this.Va)):(a=0===this.currentTime,yV(this,this.videoTrack,this.videoTrack.i,a),yV(this,this.audioTrack,this.audioTrack.i,a),g.ah(this.seek(this.currentTime),function(){}),this.timing.fb());
(this.i.Vd||this.i.gg||this.i.G||this.i.C||this.i.J)&&this.Ja("minMaxSq","minSq."+this.i.Vd+";maxSq."+this.i.gg+";minDvrTime."+this.i.G+";maxDvrTime."+this.i.C+";startWalltime."+this.i.J)};
g.k.resume=function(){if(this.isSuspended||this.va)this.ea(),this.La=this.va=this.isSuspended=!1,this.fh()};
g.k.setAudioTrack=function(a){if(!this.Ha()){var b=this.l;b.l=b.C.i[a.id];b.J=b.l;a=new yU(b.J,b.i,"m");this.ea();this.W("audioformatchange",a);this.W("reattachrequired")}};
g.k.setPlaybackRate=function(a){a!==this.G.getPlaybackRate()&&this.G.setPlaybackRate(a)};
g.k.fh=function(){FV(this);if(this.mediaSource&&tE(this.mediaSource)&&!this.mediaSource.eg()){var a=cV(this.videoTrack);a=this.policy.Jk&&a&&a.u;this.i.isManifestless&&this.i.K&&PE(this.i)?(this.J=PE(this.i),uE(this.mediaSource,this.J)):this.i.isLive&&!a?isNaN(this.J)?(this.J=this.currentTime+3600,uE(this.mediaSource,this.J)):this.J<=this.currentTime+1800&&(this.J=Math.max(this.J+1800,this.currentTime+3600),uE(this.mediaSource,this.J)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==a)&&0<a&&(uE(this.mediaSource,a),this.J=a))}if(!this.Ha())if(OE(this.i)&&this.i.isFailed())TU(this,!0,"manifest.net.retryexhausted",{rc:this.i.X.toString()});else if(!this.i.u||!vza(this.videoTrack)&&!vza(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.La?a=!1:(DV(this),this.W("seekplayerrequired",Infinity),a=!0),!a&&(FV(this),eV(this.videoTrack),!this.Ha()&&(eV(this.audioTrack),!this.Ha()))){this.i.isManifestless&&
(wza(this.videoTrack),wza(this.audioTrack),qya(this.B),(a=this.videoTrack.qg())&&a.l&&(a=a.l.C&&!this.policy.al,this.Ja(a===this.policy.B.Jf?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.policy.B.Jf?"1":"0")+";dfs."+(this.policy.al?"1":"0"),!0)));if(this.mediaSource)KV(this);else if(this.policy.i){(a=this.videoTrack.qg())&&this.videoTrack.oi(a);var b=this.audioTrack.qg();b&&this.audioTrack.oi(b);gV(this.videoTrack)&&gV(this.audioTrack)?this.ea():(a||b)&&g.Eq(this.Y)}BV(this);yV(this,this.videoTrack,
this.videoTrack.i,!1);yV(this,this.audioTrack,this.audioTrack.i,!1);a=this.audioTrack.i.C;b=this.videoTrack.i.C;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";TU(this,!0,c,{metadata:"1",video:this.videoTrack.i.C||"",audio:this.audioTrack.i.C||""})}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||tE(this.mediaSource)&&!this.policy.Ua)&&!this.B.i&&mV(a)&&a.i.Be()&&this.l.K)a:{if(b=this.currentTime,c=this.G,d=lU(c,a.i.info.Ib,
d.i.info.Ib,0),c=vF(c.schedule)+d/xF(c.schedule),b+=Math.max(c,c+10-d/a.i.info.Ib),this.ea(),a.u.length){if(a.u[0].info.i[0].startTime<=b)break a;pU(a)}c=a.B;for(d=c.l.length-1;0<=d;d--)c.l[d].info.startTime>b&&c.l.pop();a.u.length?a.l=g.eb(g.eb(a.u).info.i):a.B.l.length?a.l=PU(a.B).info:a.l=cV(a);a.l&&b<a.l.startTime&&(a.Y=0,a.i.Be()?a.l=a.i.Fm(b,!0).i[0]:a.l=null)}cAa(this,this.videoTrack,this.audioTrack);cAa(this,this.audioTrack,this.videoTrack);this.policy.Sk&&this.Ea&&!this.isSuspended&&Fka(this.schedule)&&
(jAa(this,this.Ea),this.Ea="");this.C&&(a=this.C,a.B?(b=a.G+a.policy.Ah,a.u||(b=Math.min(b,a.startTimeSecs+a.policy.Ob)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.Eq(this.jb,a));g.Eq(this.eb)}}};
g.k.fM=function(a){if(this.policy.Tc&&this.mediaSource){var b=a===this.mediaSource.i,c=a.uw();c&&(!c.zb||c.Nd)&&this.Ja("sbu",a.Cb({a:""+ +b}))}this.fh()};
g.k.KQ=function(a){if(this.mediaSource){a=cV(a===this.mediaSource.i?this.audioTrack:this.videoTrack);var b=void 0;a&&(b=OC(a));TU(this,!0,"fmt.unplayable",b)}};
g.k.fp=function(a){this.Ga.fp(a)};
g.k.uC=function(a,b){this.i.isManifestless&&dza(this,b,!!a.info.video)};
g.k.Cx=function(a,b,c){a.info.video&&this.u.Cx(b,c)};
g.k.wt=ba(6);g.k.seek=function(a){if(this.Ha())return Ug();if(this.videoTrack.J||this.audioTrack.J)return this.policy.Wo?Tg():Ug("seeking to head");FV(this);this.Ua=(0,g.P)();BV(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.l&&(this.mediaSource.i.isLocked()||this.mediaSource.l.isLocked())&&this.W("reattachrequired");var b=this.currentTime;this.currentTime=this.B.seek(a);var c=this.u;c.u=null;c.G=!1;tya(this.u,a,b);g.Eq(this.Y);return Tg(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.ra=function(){this.u.unsubscribe("ctmp",this.Ja,this);EV(this);pU(this.audioTrack);pU(this.videoTrack);g.Q.prototype.ra.call(this)};
g.k.ea=function(){};
g.k.Cb=function(){var a=cV(this.audioTrack),b=cV(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.i,lmf:FU(this.l),lbw:wF(this.schedule).toFixed(3),lhd:vF(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.Yf()||0)).toFixed(3),laa:a?IC(a):"",lva:b?IC(b):"",lar:this.audioTrack.l?IC(this.audioTrack.l):"",lvr:this.videoTrack.l?IC(this.videoTrack.l):"",laq:""+hV(this.audioTrack),lvq:""+hV(this.videoTrack)};this.mediaSource&&!this.mediaSource.We()&&this.mediaSource.i&&this.mediaSource.l&&
(a.lab=eE(this.mediaSource.i.Te()),a.lvb=eE(this.mediaSource.l.Te()));this.ma&&(a.lapt=((0,g.P)()-this.ma).toFixed(0),a.lapr=fAa(this));return a};
g.k.Ja=function(a,b,c){this.Ga.Ja(a,b,void 0===c?!1:c)};
var bAa=2/24;g.k=g.LV.prototype;g.k.Aq=function(a,b,c,d){return this.i.Aq(a,b,c,d)};
g.k.tB=function(a){this.i.tB(a)};
g.k.nD=function(a,b){this.i.nD(a,b)};
g.k.Xs=ba(30);g.k.Ti=function(a,b,c){this.i.Ti(a,b,c)};
g.k.zC=function(a,b,c,d,e,f,h){this.i.zC(a,b,c,d,e,f,h)};g.v(MV,g.Q);g.v(NV,MV);NV.prototype.G=function(a,b){if(a&&b){var c=1*Number(xi(a,"cpi"))+1;isNaN(c)||0>=c||c<this.u?(this.B.stop(),this.l.stop(),this.u=-1,this.i={}):(c>this.u&&(this.u=c,g.Rb(this.i)||(this.i={},this.B.stop(),this.l.stop())),this.i[b]=a,g.Eq(this.l))}};
NV.prototype.C=function(){for(var a=g.q(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.W;for(var d=this.u,e=this.i[c].match(gi),f=[],h=g.q(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+od(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,"rotated_need_key_info_ready",
new KU(d,"fairplay",!0))}this.i={}};
NV.prototype.ra=function(){this.i={};MV.prototype.ra.call(this)};var $2={},vAa=($2.DRM_TRACK_TYPE_AUDIO="AUDIO",$2.DRM_TRACK_TYPE_SD="SD",$2.DRM_TRACK_TYPE_HD="HD",$2.DRM_TRACK_TYPE_UHD1="UHD1",$2);g.v(OV,g.E);OV.prototype.ea=function(){};g.v(QV,g.Q);g.k=QV.prototype;g.k.error=function(a,b,c,d){this.Ha()||(this.W("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.W("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.xa&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ra=function(){this.i={};g.Q.prototype.ra.call(this)};
g.k.Cb=function(){var a={requestedKeyIds:this.va,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a};
g.k.Ue=function(){var a=this.G.join();if(RV(this)){var b=new Set,c;for(c in this.i)"usable"!==this.i[c].status&&b.add(this.i[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.ea=function(){};g.v(TV,g.E);g.k=TV.prototype;g.k.gM=function(a){if(this.C){var b=a.messageType||"license-request";this.C(new Uint8Array(a.message),b)}};
g.k.hM=function(){this.J&&this.J(this.i.keyStatuses)};
g.k.lJ=function(a){this.C&&this.C(a.message,"license-request")};
g.k.kJ=function(a){if(this.u){if(this.l){var b=this.l.error.code;a=this.l.error.systemCode}else b=a.errorCode,a=a.systemCode;this.u("t.prefixedKeyError;c."+b+";sc."+a)}};
g.k.jJ=function(){this.G&&this.G()};
g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,Tr(function(c){RAa(b,"t.update",c)}));
this.l?this.l.update(a):this.element.addKey?this.element.addKey(this.K.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.K.keySystem,a,this.initData,this.sessionId);return Xs()};
g.k.ra=function(){this.i&&this.i.close();this.element=null;g.E.prototype.ra.call(this)};g.v(UV,g.E);g.k=UV.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.l.setServerCertificate?this.l.setServerCertificate(this.i.B):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.l.createSession();gF(this.i)&&(c=TAa(c,this.i.l));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new TV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},Tr(function(f){RAa(e,"t.generateRequest",f)}));
return e}if(cF(this.i))return VAa(this,c);if(fF(this.i))return UAa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.B=new TV(this.element,this.i,c,null,null)};
g.k.kM=function(a){var b=WV(this,a);b&&b.lJ(a)};
g.k.jM=function(a){var b=WV(this,a);b&&b.kJ(a)};
g.k.iM=function(a){var b=WV(this,a);b&&b.jJ(a)};
g.k.getMetrics=function(){if(this.l&&this.l.getMetrics)try{var a=this.l.getMetrics()}catch(b){}return a};
g.k.ra=function(){var a;this.u=this.l=null;null===(a=this.B)||void 0===a?void 0:a.dispose();for(var b=g.q(Object.values(this.G)),c=b.next();!c.done;c=b.next())c.value.dispose();this.G={};g.E.prototype.ra.call(this);delete this.element};g.v(XV,g.E);
XV.prototype.init=function(){return g.D(this,function b(){var c=this,d,e;return g.z(b,function(f){if(1==f.i)return g.zl(c.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.i.src=c.u.C,document.body.appendChild(c.i),c.B.N(c.i,"encrypted",c.G),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.w(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.l;c.u.keySystemAccess=
e;c.l=new UV(c.i,c.u);g.F(c,c.l);VV(c.l);g.sa(f)})})};
XV.prototype.G=function(a){var b=this;if(!this.Ha()){var c=new Uint8Array(a.initData);a=new KU(c,a.initDataType);var d=nAa(c).replace("skd://","https://"),e={},f=this.l.createSession(a,function(){b.ea()});
f&&(g.F(this,f),this.C.push(f),yAa(f,function(h){PAa(h,f.i,d,e,"fairplay")},function(){b.ea()},function(){},function(){}))}};
XV.prototype.ea=function(){};
XV.prototype.ra=function(){this.C=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.E.prototype.ra.call(this)};g.v(YV,MV);YV.prototype.C=function(a){var b=(0,g.P)(),c;if(!(c=this.B)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.u.values),e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}c=!1}c=!c}c?c=0:(c=a.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.i.push({time:b+c,info:a});g.Eq(this.l,c)};
YV.prototype.ra=function(){this.i=[];MV.prototype.ra.call(this)};ZV.prototype.get=function(a){a=aW(this,a);return-1!==a?this.values[a]:null};
ZV.prototype.remove=function(a){a=aW(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
ZV.prototype.set=function(a,b){var c=aW(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.v(cW,g.Q);g.k=cW.prototype;g.k.lM=function(a){bW(this,"onecpt");a.initData&&ZAa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.WR=function(a){bW(this,"onndky");ZAa(this,a.initData,a.contentType)};
g.k.fp=function(a){bW(this,"onneedkeyinfo");g.S(this.u.experiments,"html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));dW(this,a)};
g.k.UF=function(a){this.B.push(a);eW(this)};
g.k.createSession=function(a){this.l.get(a.initData);this.va=!0;var b=new QV(this.videoData,this.u,a,this.drmSessionId);this.l.set(a.initData,b);b.subscribe("ctmp",this.II,this);b.subscribe("hdentitled",this.WI,this);b.subscribe("keystatuseschange",this.KE,this);b.subscribe("licenseerror",this.LE,this);b.subscribe("newlicense",this.fJ,this);b.subscribe("newsession",this.gJ,this);b.subscribe("sessionready",this.tJ,this);b.subscribe("fairplay_next_need_key_info",this.UI,this);BAa(b,this.C)};
g.k.fJ=function(a){this.Ha()||(this.ea(),bW(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.W("heartbeatparams",a)))};
g.k.gJ=function(){this.Ha()||(this.ea(),bW(this,"newlcssn"),this.B.shift(),this.va=!1,eW(this))};
g.k.tJ=function(){if(cF(this.i)&&(this.ea(),bW(this,"onsnrdy"),this.La--,0===this.La)){var a=this.X;a.element.msSetMediaKeys(a.u)}};
g.k.KE=function(a){this.Ha()||(!this.Da&&this.videoData.Z("html5_log_drm_metrics_on_key_statuses")&&(cBa(this),this.Da=!0),this.ea(),bW(this,"onksch"),bBa(this,MAa(a,this.Aa)),this.W("keystatuseschange",a))};
g.k.WI=function(){this.Ha()||this.xa||!eF(this.i)||(this.ea(),bW(this,"onhdet"),this.Ga=fEa,this.W("hdproberequired"),this.W("qualitychange"))};
g.k.II=function(a,b){this.Ha()||this.W("ctmp",a,b)};
g.k.UI=function(a,b){this.Ha()||this.W("fairplay_next_need_key_info",a,b)};
g.k.LE=function(a,b,c,d){this.Ha()||(this.videoData.Z("html5_log_drm_metrics_on_error")&&cBa(this),this.W("licenseerror",a,b,c,d))};
g.k.ra=function(){this.i.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.q(this.l.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.II,this),b.unsubscribe("hdentitled",this.WI,this),b.unsubscribe("keystatuseschange",this.KE,this),b.unsubscribe("licenseerror",this.LE,this),b.unsubscribe("newlicense",this.fJ,this),b.unsubscribe("newsession",this.gJ,this),b.unsubscribe("sessionready",this.tJ,this),b.unsubscribe("fairplay_next_need_key_info",
this.UI,this),b.dispose();$V(this.l);$V(this.G);$V(this.K);this.heartbeatParams=null;g.Q.prototype.ra.call(this)};
g.k.Cb=function(){for(var a={systemInfo:this.i.Cb(),sessions:[]},b=g.q(this.l.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Cb());return a};
g.k.Ue=function(){return 0>=this.l.values.length?"no session":this.l.values[0].Ue()+(this.J?"/KR":"")};
g.k.ea=function(){};g.v(gW,g.Q);
gW.prototype.handleError=function(a,b){var c=this;gBa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!jW(this,a.errorCode,a.details))&&!jBa(this,a,b))if(!this.i.Z("html5_disable_high_rep_fallback")&&hBa(a)&&this.videoData.u&&this.videoData.u.l)hW(this,a.errorCode,a.details),kW(this,"highrepfallback","1",{mD:!0}),!this.videoData.Z("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&kW(this,"afmts",btoa(this.videoData.adaptiveFormats),
{mD:!0}),Xma(this.videoData),this.W("highrepfallback");else if(a.i){b=this.l?this.l.l.u:null;if(hBa(a)&&b&&b.isLocked())var d="FORMAT_UNAVAILABLE";else if(!this.i.C&&"auth"===a.errorCode&&"429"===a.details.rc){d="TOO_MANY_REQUESTS";var e="6"}this.W("playererror",a.errorCode,d,g.nE(a.details),e)}else this.W("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),hW(this,a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+
"&t="+(0,g.P)(),(new oV(a,"manifest",function(f){c.ma=!0;kW(c,"pathprobe",f)},function(f){hW(c,f.errorCode,f.details)})).send())};
gW.prototype.ra=function(){this.u=this.l=null;g.Q.prototype.ra.call(this)};
gW.prototype.ea=function(){};lW.prototype.setPlaybackRate=function(a){this.playbackRate=a};
lW.prototype.Z=function(a){return g.S(this.i.experiments,a)};g.v(nW,g.E);nW.prototype.Dc=function(a){GBa(this);this.playerState=a.state;0<=this.u&&g.UI(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
nW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(UKa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
nW.prototype.send=function(){if(!(this.B||0>this.l)){GBa(this);var a=g.jT(this.i)-this.l,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&g.U(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=LH(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=HBa(this.i);var e=0>this.u?a:this.u-this.l;a=this.i.i.bb+36E5<(0,g.P)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,
rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.JH(this.i.videoData),isGapless:this.i.videoData.Ua};!a&&this.i.Z("html5_health_to_gel")&&g.Bv("html5PlayerHealthEvent",b);this.i.Z("html5_health_to_qoe")&&(b.muted=a,this.J(g.nE(b)));this.B=!0;this.dispose()}};
nW.prototype.ra=function(){this.B||this.send();g.E.prototype.ra.call(this)};
var UKa=/\bnet\b/;var JBa=window;g.v(g.rW,g.E);g.k=g.rW.prototype;g.k.iP=function(){var a=g.jT(this.i);sW(this,a)};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.Ha()&&(a=0<=a?a:g.jT(this.i),-1<["PL","B","S"].indexOf(this.hd)&&(!g.Rb(this.l)||a>=this.B+30)&&(g.qW(this,a,"vps",[this.hd]),this.B=a),!g.Rb(this.l))){7E3===this.sequenceNumber&&g.Ux(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){tW(this,a);var b=a,c=this.i.l.xt(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Va,h=e&&!this.eb;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);
else(0<f||h)&&g.qW(this,b,"df",[f]);this.Va=d;this.eb=e;!g.S(this.i.i.experiments,"disable_webgl_reporting")&&0<this.K&&(g.qW(this,a,"glf",[this.K]),this.K=0);a={event:"streamingstats"};this.i.videoData.l&&(a.fmt=this.i.videoData.l.kc(),(b=this.i.videoData.J)&&b.kc()!==a.fmt&&(a.afmt=b.kc()));a.cpn=this.i.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.U&&(a.addocid=this.U);this.i.videoData.cotn&&(a.cotn=this.i.videoData.cotn);a.ei=this.i.videoData.eventId;a.el=WH(this.i.videoData);
a.docid=this.i.videoData.videoId;a.content_v=XH(this.i.videoData);a.ns=this.i.i.va;a.fexp=this.i.i.experiments.experimentIds.toString();a.cl=(381124074).toString();(b=this.i.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=LH(this.i.videoData))&&(a.live=b);AH(this.i.videoData)&&(a.drm=1,this.i.videoData.G&&(a.drm_system=tKa[this.i.videoData.G.flavor]||0),this.i.videoData.dA&&(a.drm_product=this.i.videoData.dA));es()&&this.i.videoData.Va&&(a.ctt=this.i.videoData.Va,a.cttype=this.i.videoData.Gh,
this.i.videoData.mdxEnvironment&&(a.mdx_environment=this.i.videoData.mdxEnvironment));a.seq=this.sequenceNumber++;g.Yb(a,this.i.i.deviceParams);a=g.ti("//"+this.i.i.Ii+"/api/stats/qoe",a);b=c="";d=g.q(Object.keys(this.l));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.l[e]?g.Ux(new g.Gv("Stats report key has invalid value",e)):(e="&"+e+"="+this.l[e].join(","),100<e.length?b+=e:c+=e);a+=c;b=b.replace(/ /g,"%20");f=this.i.videoData.Ve();e=g.S(this.i.i.experiments,"qoe_with_networkless");c=
g.S(this.i.i.experiments,"qoe_send_then_write");d=g.S(this.i.i.experiments,"qoe_send_and_write");h=this.i.Z("web_player_vss_pageid_header")?this.i.i.pageId:void 0;(f=oW(a,h,this.i.i.sendVisitorIdHeader?this.i.videoData.visitorData:void 0,f))?(f.method="POST",f.postBody=b,pW(a,f,{token:this.i.videoData.Va,AD:this.i.videoData.Gh,mdxEnvironment:this.i.videoData.mdxEnvironment},void 0,e,c,d&&this.va)):e?(e=g.S(this.i.i.experiments,"networkless_ajax"),f={method:"POST",postBody:b},d&&this.va?Xw(a,f):e?
g.Ps(a,{method:"POST",postBody:b}):c?Ww(a,f):Vw(a,f)):pu(a,void 0,b)}this.l={}}};
g.k.iK=function(){if(this.i.videoData.G){var a=this.i.videoData.G;vW(this,"eme-"+(a.keySystemAccess?"final":cF(a)?"ms":gF(a)?"ytfp":fF(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.jT(this.i);OBa(this,c,a,b);tW(this,c);uW(this)};
g.k.Dc=function(a){var b=a.state,c=g.jT(this.i);a=this.getPlayerState(a.state);if(a!==this.hd){if(!(c<this.B)){if("PL"===this.hd)this.playTimeSecs+=c-this.B;else if("B"===this.hd&&this.ma){this.ma=!1;var d=g.T(this.i.i.experiments,"html5_disable_last_state_change")?this.B:this.La;this.rebufferTimeSecs+=c-d;!this.Da&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.i.l.Xt(),this.l.qoealert=["1"],this.Da=!0)}"B"!==a||"PL"!==this.hd&&"PB"!==this.hd||(this.ma=!0);this.B=c}"PL"===this.hd&&("B"===
a||"S"===a)||this.i.videoData.X?tW(this,c):sW(this,c);"PL"===a&&g.Eq(this.wb);g.qW(this,c,"vps",[a]);this.hd=a;this.B=this.La=c;this.C=!0}a=b.getData();g.U(b,128)&&a&&OBa(this,c,a.errorCode,a.QJ);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.tc()&&!this.G&&(0<=this.u&&(this.l.user_intent=[this.u.toString()]),this.G=!0);uW(this)};
g.k.cj=ba(15);g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";var b=VKa[KK(a)];g.bG(this.i.i)&&"B"===b&&3===this.i.l.getVisibilityState()&&(b="SU");"B"===b&&g.U(a,4)&&(b="PB");return b};
g.k.ra=function(){g.E.prototype.ra.call(this);window.clearInterval(this.Pa)};
g.k.Ja=function(a,b,c){var d=this.l.ctmp||[],e=-1!==this.yb.indexOf(a);e||this.yb.push(a);if(!c||!e){/[^a-zA-Z0-9;.!_-]/.test(b)&&(b=b.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!c&&!/^t[.]/.test(b)){var f=1E3*g.jT(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.ea();this.l.ctmp=d;uW(this);return f}};
g.k.ea=function(){};
var a3={},VKa=(a3[5]="N",a3[-1]="N",a3[3]="B",a3[0]="EN",a3[2]="PA",a3[1]="PL",a3);RBa.prototype.update=function(){if(this.K){var a=this.l.l.getCurrentTime()||0,b=g.jT(this.l);if(a!==this.i||VBa(this,a,b)){var c;if(!(c=a<this.i||a-this.i>b-this.lastUpdateTime+2||VBa(this,a,b))){var d=this.l.Je();c=d.volume;var e=c!==this.Y;d=d.muted;d!==this.U?(this.U=d,c=!0):(!e||0<=this.C||(this.Y=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(yW(this),this.u=a);this.lastUpdateTime=b;this.i=a}}};zW.prototype.send=function(a){if(!this.Aa){var b=BW(this);b=g.ti(this.uri,b);if(this.Ya)this.attestationResponse&&(a=AW(this)||{},a.method="POST",a.postParams={atr:this.attestationResponse},this.U?this.Y?Ww(b,a):Vw(b,a):g.Ps(b,a));else{var c=AW(this,a);pW(b,c,{token:this.J,AD:this.Ua,mdxEnvironment:this.mdxEnvironment},a,this.U,this.Y,this.isFinal&&this.bd)}this.Aa=!0}};
zW.prototype.l=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var b3={},XBa=(b3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,b3.LIVING_ROOM_APP_MODE_MAIN=1,b3.LIVING_ROOM_APP_MODE_KIDS=2,b3.LIVING_ROOM_APP_MODE_MUSIC=3,b3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,b3.LIVING_ROOM_APP_MODE_GAMING=5,b3);g.v(DW,g.E);g.k=DW.prototype;g.k.Yc=function(){this.l.update();var a;if(a=this.i.videoData.isLoaded()&&this.i.videoData.wb&&this.B&&!this.Y)a=this.l,a=a.G+a.l.l.getCurrentTime()-a.u>=this.i.videoData.wb;a&&(this.B&&this.i.videoData.wb&&(a=EW(this,"delayplay"),a.Ac=!0,a.send(),this.Y=!0),YBa(this))};
g.k.Dc=function(a){this.Ha()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.UI(a,2)&&this.B&&HW(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.B&&isNaN(this.u)&&FW(this,!1)):this.currentPlayerState="paused")};
g.k.ra=function(){g.E.prototype.ra.call(this);g.os(this.u);this.u=NaN;TBa(this.l)};
g.k.Cb=function(){return BW(EW(this,"playback"))};
g.k.lh=function(a){var b=EW(this,"engage");b.K=a;return WBa(b,eCa(this.i))};dCa.prototype.isEmpty=function(){return this.endTime===this.startTime};IW.prototype.Z=function(a){return g.S(this.i.experiments,a)};
var fCa={other:1,none:2,wifi:3,cellular:7};g.v(g.JW,g.E);g.k=g.JW.prototype;g.k.Dc=function(a){var b;if(g.UI(a,1024)||g.UI(a,512)||g.UI(a,4)){if(this.u){var c=this.u;0<=c.u||(c.l=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.G||(c.u=-1))}this.l.videoData.enableServerStitchedDai&&this.Mf?null===(b=this.B.get(this.Mf))||void 0===b?void 0:b.Dc(a):this.i&&this.i.Dc(a);this.qoe&&this.qoe.Dc(a);this.u&&this.u.Dc(a)};
g.k.Yc=function(){var a;this.l.videoData.enableServerStitchedDai&&this.Mf?null===(a=this.B.get(this.Mf))||void 0===a?void 0:a.Yc():this.i&&this.i.Yc()};
g.k.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.u)this.u.onError(a)};
g.k.Ja=function(a,b,c){this.qoe&&this.qoe.Ja(a,b,c)};
g.k.cj=ba(14);g.k.Cb=function(){var a;if(this.l.videoData.enableServerStitchedDai&&this.Mf)null===(a=this.B.get(this.Mf))||void 0===a?void 0:a.Cb();else if(this.i)return this.i.Cb();return{}};
g.k.lh=function(a){return this.i?this.i.lh(a):function(){}};g.v(KW,g.E);g.k=KW.prototype;g.k.Dd=function(a){this.Ek();var b=this.i;if(1<a.length&&a.length>b.i.length)b.i=b.i.concat(a),b.i.sort(b.l);else{a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0<b.l(c,b.i[b.i.length-1])?b.i.push(c):g.Bb(b.i,c,b.l)}this.u=NaN;this.Ek()};
g.k.Rf=function(a){1E4<a.length&&g.Ux(new g.Gv("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Ha()){var b=new Set(a);this.l=this.l.filter(function(c){return!b.has(c)});
sCa(this.i,b);this.Ek()}};
g.k.Bm=function(){return this.Ha()?[]:this.i.i};
g.k.reset=function(){this.started=!1;this.B.stop();this.i.i=[];this.l=[];this.Ek()};
g.k.df=function(a){var b=this.Bm().filter(function(c){return c.namespace===a});
this.Rf(b);return b};
g.k.Dc=function(a){this.started&&(this.Ek(),g.U(a.Zm,16)&&(a=rCa(this.i,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.B.start()))};
g.k.SA=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.l.indexOf(d)&&(this.l.push(d),b.push([1,d]))}return b};
g.k.XA=function(a){var b=[];if(!a.length)return b;a.sort(g.Hz);a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.l.splice(this.l.indexOf(c),1),b.push([2,c]);return b};
g.k.Ek=function(){this.C=!0;if(!this.G){for(var a=3;this.C&&a;)this.C=!1,this.G=!0,this.PH(),this.G=!1,a--;this.J().tc()&&(a=rCa(this.i,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.X(),this.B.start(a)))}};
g.k.PH=function(){if(this.started&&!this.Ha()){this.B.stop();var a=this.J();g.U(a,32)&&this.U.start();for(var b=g.U(this.J(),2)?0x8000000000000:1E3*this.Y(),c=g.U(a,2),d=[],e=[],f=g.q(this.l),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.XA(e));f=e=null;c?(a=pCa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=qCa(this.i)):a=this.u<=b&&IK(a)?oCa(this.i,this.u,b):pCa(this.i,b);
d=d.concat(this.SA(a));e&&(d=d.concat(this.XA(e)));f&&(d=d.concat(this.SA(f)));this.u=b;tCa(this,d)}};
g.k.ra=function(){this.l=[];this.i.i=[];g.E.prototype.ra.call(this)};
g.cT.Ow(KW,{Dd:"crmacr",SA:"crmncr",XA:"crmxcr",PH:"crmis",Rf:"crmrcr"});g.v(OW,g.Q);OW.prototype.ea=function(){};g.v(UW,g.E);UW.prototype.Dc=function(a){this.playerState=a.state};
UW.prototype.U=function(){var a=this;if(this.B&&!this.playerState.isError()){var b=this.B,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.i,e=Qoa(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();VW(this,this.Da,e&&!f,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.i)&&0<this.i&&Ooa(b,this.i);var h=!c||10<Math.abs(c-this.i);VW(this,this.Ga,e&&h&&!f,d,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
e=e&&gE(b.Nf(),this.i);var l=!this.l||!this.l.policy.xa;h=function(){b.seekTo(a.i+.001)};
VW(this,this.xa,e&&l&&!f,d,"qoe.slowseek",h,"jiggle_cmt");l=function(){return a.W("newmediaelementrequired")};
VW(this,this.Aa,e&&!f,d,"qoe.slowseek",l,"new_elem");e=IK(this.playerState);d=g.JK(this.playerState);var m=b.Nf(),n=fE(m,c);DCa(this,b,m,c,f,e,d);m=0<=n&&m.end(n)>c+5;m=e&&d&&m;VW(this,this.X,m&&!f,e&&!d,"qoe.longrebuffer",h,"jiggle_cmt");VW(this,this.ma,m&&!f,e&&!d,"qoe.longrebuffer",l,"new_elem_nnr");if(this.l){var p=this.l.getCurrentTime();h=b.Ko();h=Kja(h,p);h=!this.l.B.i&&c===h;VW(this,this.Ua,e&&d&&h&&!f,e&&!d&&!h,"qoe.longrebuffer",function(){b.seekTo(p)},"seek_to_loader")}VW(this,this.va,
e&&d&&!f,e&&!d,"qoe.longrebuffer",function(){},"timeout");
f=this.playerState.isSuspended();f=this.K()&&!f;VW(this,this.Y,f,!f,"qoe.start15s",function(){return a.W("releaseadsprerolllock")},"ads_preroll_timeout");
f=.5>c-this.J;h=this.videoData.isAd()&&e&&!d&&f;e=function(){return a.W("skipslowad")};
VW(this,this.La,h,!h,"ad.rebuftimeout",e,"skip_slow_ad");f=this.videoData.isAd()&&d&&gE(b.Nf(),c+5)&&f;VW(this,this.Pa,f,!f,"ad.rebuftimeout",e,"skip_slow_ad_buf");this.J=c;this.C.start()}};
UW.prototype.wd=function(a,b,c){b=this.Cb(b);b.wn=c;b.wdup=this.G[a]?"1":"0";this.W("qoeerror",a,b);this.G[a]=!0};
UW.prototype.Cb=function(a){a=a.Cb();this.i&&(a.stt=this.i.toFixed(3));this.l&&Object.assign(a,this.l.Cb());this.B&&Object.assign(a,this.B.Cb());return a};
SW.prototype.reset=function(){this.i=this.triggerTimestamp=this.l=this.startTimestamp=0;this.u=!1};
SW.prototype.Cb=function(){var a={},b=(0,g.P)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.v(XW,g.Q);g.k=XW.prototype;g.k.ni=function(a){ZW(this);this.videoData=a;this.U=this.u=null;this.C=this.Pa=this.timestampOffset=0;this.Ga=!0;this.K.dispose();a=this.K=new UW(this.Y,this.videoData,(0,g.C)(this.W,this),this.visibility,this.Ya);var b=this.i;(a.B=b)&&g.Eq(a.C);this.K.l=this.B};
g.k.Dc=function(a){this.K.Dc(a);this.Z("html5_exponential_memory_for_sticky")&&(a.state.tc()?g.Eq(this.xa):this.xa.stop());var b;if(b=this.i)b=8===a.Zm.state&&IK(a.state)&&g.JK(a.state)&&this.policy.u;if(b){a=this.i.getCurrentTime();b=this.i.Nf();var c=this.Z("manifestless_post_live_ufph")||this.Z("manifestless_post_live")?fE(b,Math.max(a-3.5,0)):fE(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.bb-c)||(this.W("ctmp","seekover","b."+eE(b,
"_")+";cmt."+a),this.bb=c,this.seekTo(c,{Ct:!0,ke:"playbacktimeline_postLiveDisc"})))}};
g.k.getCurrentTime=function(){return!isNaN(this.l)&&isFinite(this.l)?this.l:this.i&&OCa(this)?this.i.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.jl=function(){return this.getCurrentTime()-this.Lc()};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return RW(this.u,a)};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.NK?!1:c.NK;var d=void 0===c.OK?0:c.OK,e=void 0===c.Ct?!1:c.Ct,f=void 0===c.BD?0:c.BD;c=void 0===c.ke?null:c.ke;var h=a,l=!isFinite(h)||(this.u?RW(this.u,h):h>=YW(this))||!g.OH(this.videoData);l||this.W("ctmp","seeknotallowed",h+";"+YW(this));if(!l)return this.G&&(this.G=null,eX(this)),Tg(this.getCurrentTime());this.ea();if(.005>Math.abs(a-this.l)&&this.ma)return this.ea(),this.J;c&&(h=a,(g.CH(this.videoData)||this.Z("html5_log_seek_reasons"))&&
this.W("ctmp","seekreason","reason."+c+";tgt."+h));this.ma&&ZW(this);this.J||(this.J=new aT);a&&!isFinite(a)&&aX(this,!1);c=a;(dX(this)&&!(this.i&&0<this.i.eh()&&0<xK(this.i))||GH(this.videoData)&&this.getMinSeekableTime()===YW(this,!1)?0:isFinite(c)||!GH(this.videoData))&&(a=NCa(this,a,e));a&&!isFinite(a)&&aX(this,!1);this.C=a;this.La=f;this.l=a;this.u&&(e=this.u,f=a,BCa(e,f,!1),CCa(e,f));this.W("seekto",a,!b);this.J&&(b?d&&this.Ua.start(d):(this.ea(),this.ma=!0,HCa(this)));return this.J};
g.k.getMinSeekableTime=function(){return this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset};
g.k.ra=function(){bX(this,null);this.K.dispose();g.Q.prototype.ra.call(this)};
g.k.kU=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.Lc(),{Ct:b,ke:"playbacktimeline_seekPlayerHandler"})};
g.k.Cb=function(){var a={};this.B&&Object.assign(a,this.B.Cb());this.i&&Object.assign(a,this.i.Cb());return a};
g.k.rr=function(a){this.timestampOffset=a};
g.k.nM=function(a){this.Pa=a};
g.k.getStreamTimeOffset=function(){return GH(this.videoData)?this.Pa:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
g.k.Lc=function(){return this.timestampOffset};
g.k.getIngestionTime=function(a){return this.videoData.i.getIngestionTime(a-this.timestampOffset)};
g.k.mM=function(a){this.U&&(this.U.i=a.audio.index)};
g.k.Z=function(a){return this.Y&&g.S(this.Y.experiments,a)};
g.k.ea=function(){};fX.prototype.isFinished=function(){return this.i};
fX.prototype.start=function(){this.started=!0};
fX.prototype.reset=function(){this.i=this.started=!1};gX.prototype.fetch=function(a,b){var c=this,d;if(null===(d=this.l)||void 0===d?0:d.B(a,b))return Promise.resolve(this.l.u(a,b).catch(function(f){g.Ux(f)}));
if(this.i){var e=fi(g.hi(5,yi(a,"key")))||"/UNKNOWN_PATH";this.i.start(e)}return new Promise(function(f){var h,l,m=new XMLHttpRequest;m.onerror=function(){var t,u;if(null===(t=c.l)||void 0===t?0:t.i(a,b)){var x=c.l.l(a,b);null===(u=c.i)||void 0===u?void 0:u.success();f(x)}else f(c.handleResponse(a,m.status,m.response))};
m.onload=function(){f(c.handleResponse(a,m.status,m.response))};
m.open(null!==(h=b.method)&&void 0!==h?h:"GET",a,!0);m.responseType="text";m.withCredentials=!0;if(b.headers)for(var n=g.q(Object.entries(b.headers)),p=n.next();!p.done;p=n.next()){var r=g.q(p.value);p=r.next().value;r=r.next().value;m.setRequestHeader(p,r)}m.send(null!==(l=b.body)&&void 0!==l?l:null)})};
gX.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Ux(new g.Gv("JSON parsing failed after XHR fetch",a,b,c)),d={}}200===b?this.i&&this.i.success():(this.i&&this.i.failure(),g.Ux(new g.Gv("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};var SCa=!1,hX,iX,jX,kX,lX;
mX.prototype.encrypt=function(a){var b=pX.Ju("oap"),c=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+c));for(var d=this.l,e=0;e<c&&16>this.i;)a[e++]^=d[this.i++];for(var f=c-(c-e)%16;e<f;)UCa(this),a[e++]^=d[0],a[e++]^=d[1],a[e++]^=d[2],a[e++]^=d[3],a[e++]^=d[4],a[e++]^=d[5],a[e++]^=d[6],a[e++]^=d[7],a[e++]^=d[8],a[e++]^=d[9],a[e++]^=d[10],a[e++]^=d[11],a[e++]^=d[12],a[e++]^=d[13],a[e++]^=d[14],a[e++]^=d[15];if(e<c)for(UCa(this),this.i=0;e<c;)a[e++]^=d[this.i++];pX.Ss(b,Math.ceil(c/
16));return a};nX.prototype.reset=function(){XCa(this);this.update(this.u)};
nX.prototype.update=function(a){var b=0,c=a.length;this.B+=c;this.l&&64<=this.l+c&&(this.G.set(a.subarray(0,64-this.l),this.l),b=64-this.l,this.l=0,WCa(this,this.G,0));for(;b+64<=c;b+=64)WCa(this,a,b);b<c&&(a=a.subarray(b),this.G.set(a,this.l),this.l+=a.length)};
var VCa=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];qX.prototype.encrypt=function(a){return ZCa(this.i.i,a,this.iv)};
qX.prototype.decrypt=function(a,b){return ZCa(this.i.i,a,b)};rX.prototype.dg=function(a){return!!this.me[a].Gd.totalLength};
rX.prototype.oi=function(a){var b=this.me[a].Gd;this.me[a].oA+=b.totalLength;this.me[a].Gd=new lD;return b};
rX.prototype.We=function(a){return this.me[a].We};
rX.prototype.ea=function(){};var c3={},lDa=(c3.f="video",c3["1"]="video",c3["1h"]="video",c3.h="video",c3.H="video",c3["9"]="video",c3["("]="video",c3["9h"]="video",c3["(h"]="video",c3.o="audio",c3.O="audio",c3.a="audio",c3.ah="audio",c3.A="audio",c3.m="audio",c3.M="audio",c3.mac3="audio",c3.MAC3="audio",c3.meac3="audio",c3.MEAC3="audio",c3.so="audio",c3.sa="audio",c3["8"]="unknown",c3["*"]="unknown",c3.w="unknown",c3["3"]="unknown",c3["6"]="unknown",c3[""]="unknown",c3);qDa.prototype.decrypt=function(a){return g.D(this,function c(){var d=this,e,f,h,l,m,n,p;return g.z(c,function(r){switch(r.i){case 1:if(d.i.length&&!d.i[0].bk)return r.return();d.l=!0;e=new Uint8Array(16);if(!dDa()){f=null;r.ub(2);break}return g.w(r,cDa(a),3);case 3:f=r.l;case 2:l=(h=f)?null:bDa(a);case 4:if(!d.i.length||!d.i[0].bk){r.ub(5);break}m=d.i.shift();if(!h){n=l(m.buffer,e);r.ub(6);break}return g.w(r,h(m.buffer,e),7);case 7:n=r.l;case 6:p=n;for(var t=0;t<e.length;t++)if(255===e[t])e[t]=0;
else{e[t]+=1;break}rDa(d.u.Bd,m.rD,p);r.ub(4);break;case 5:tX(d),d.l=!1,g.sa(r)}})})};uX.prototype.feed=function(a,b){var c=b.totalLength;this.ea();switch(a){case 10:var d=iR(new fR(b),1);this.ea();a=!1;switch(d){case 5:c=this.Bd;c.jf("orfb");c.K=!0;break;case 0:this.iv=(new jDa(b)).i.iv;break;case 16:this.Gx(b);break;case 2:break;default:a=!0}this.Bd.ul&&this.Bd.Ja("ombup","id.10;pt."+d+";len."+b.totalLength+(a?";ignored.1":""));this.l=d;break;case 11:uDa(this,b);break;case 20:a=new mDa(b);var e=a.u;c=a.l;var f=a.Qm,h=void 0!==this.i[c];this.Bd.ul&&this.Bd.Ja("ombup","id.20;len."+
b.totalLength+";hid."+e);this.ea();this.u[e]=c;h?(b=this.i[c].headers,b.push(a),a.i&&2===b.length&&this.Bd.Gx(c,b[0].i+b[1].i)):(this.i[c]={zH:!1,Qm:f,headers:[a]},null===(d=this.Bd.Zp)||void 0===d?void 0:gDa(d,c));break;case 21:vDa(this,b,!1);break;case 12:vDa(this,b,!0);break;case 22:d=uD(b,0);this.Bd.ul&&this.Bd.Ja("ombup","id.22;len."+b.totalLength+";hid."+d);b=this.u[d]||null;this.ea();b&&(d=this.i[b],1===d.headers.length&&d.headers[0].i||sDa(this.queue,b));break;case 37:b=new kDa(b);b.i&&(this.Bd.oM=
b);break;default:this.Bd.ul&&this.Bd.Ja("ombup","id."+a+";len."+c+";ignored.1"),this.ea()}};
uX.prototype.Gx=function(a){a=new pDa(a);this.Bd.Gx(a.i,a.l);this.ea()};
uX.prototype.ea=function(){};g.v(yX,wX);yX.prototype.l=function(a){pR(a,1,this.name);pR(a,2,this.value)};g.v(zX,wX);zX.prototype.l=function(a){pR(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())c=c.value,ava(a),c.l(a),bva(a);pR(a,3,this.postBody)};g.v(AX,wX);AX.prototype.l=function(a){this.i.BK&&mR(a,13,this.i.BK);if(void 0!==this.i.lastManualDirection){var b=this.i.lastManualDirection;lR(a,112);lR(a,b<<1^b>>31)}this.i.aI&&mR(a,16,this.i.aI);this.i.viewportHeight&&this.i.viewportWidth&&(mR(a,18,this.i.viewportWidth),mR(a,19,this.i.viewportHeight));this.i.tK&&mR(a,21,this.i.tK);this.i.cG&&mR(a,23,this.i.cG);void 0!==this.i.visibilityState&&mR(a,34,this.i.visibilityState);void 0!==this.i.AK&&mR(a,39,this.i.AK)};g.v(BX,wX);BX.prototype.l=function(a){nR(a,2,this.i);nR(a,5,this.encryptedClientKey);nR(a,6,this.iv);nR(a,7,this.hmac);mR(a,10,this.serializeResponseAsJson?1:0)};g.v(CX,wX);CX.prototype.l=function(a){ava(a);this.i.l(a);bva(a);nR(a,3,xX(this.u));this.onesieUstreamerConfig&&nR(a,4,this.onesieUstreamerConfig)};xDa.prototype.feed=function(a){nD(this.i,a);yDa(this)};var d3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},FDa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},d3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},d3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},d3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},
d3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},d3),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},d3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},d3)],e3={},DDa=(e3["137"]=["136","135","134","133","160"],e3["248"]=["247","244","243","242","278"],e3["399"]=["398","397","396","395","394"],e3["299"]="298 137 136 135 134 133 160".split(" "),e3["303"]="302 248 247 244 243 242 278".split(" "),
e3["140"]=[],e3["251"]=["250"],e3),f3={},zDa=(f3["160"]=0,f3["133"]=22639,f3["134"]=45778,f3["135"]=73749,f3["136"]=153645,f3["137"]=332697,f3["278"]=0,f3["242"]=22702,f3["243"]=42954,f3["244"]=73575,f3["247"]=139201,f3["248"]=259369,f3["298"]=260272,f3["299"]=589187,f3["302"]=295858,f3["303"]=528496,f3["394"]=0,f3["395"]=18457,f3["396"]=37231,f3["397"]=65872,f3["398"]=133087,f3["399"]=236318,f3),g3={},ADa=(g3["133"]=240,g3["134"]=360,g3["135"]=480,g3["136"]=720,g3["137"]=1080,g3["242"]=240,g3["243"]=
360,g3["244"]=480,g3["247"]=720,g3["248"]=1080,g3["298"]=720,g3["299"]=1080,g3["302"]=720,g3["303"]=1080,g3["395"]=240,g3["396"]=360,g3["397"]=480,g3["398"]=720,g3["399"]=1080,g3),BDa=["1","9","h"];g.k=HDa.prototype;g.k.jf=function(a){this.i.jf(a)};
g.k.Gx=function(a,b){var c;null===(c=this.Zp)||void 0===c?void 0:(c.me[a].Os=b,c.ea())};
g.k.Ja=function(a,b){this.i.Ja(a,b)};
g.k.fetch=function(){return g.D(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t;return g.z(b,function(u){c.ea();c.C.start();c.jf("ogpd");var x=c.playerRequest,y=c.l,B=c.videoData,G=y.qf;G="https://youtubei.googleapis.com/youtubei/"+G.innertubeApiVersion+"/player?key="+G.innertubeApiKey;var H=[new yX({name:"Content-Type",value:"application/json"})],I=B.Ve();I&&H.push(new yX({name:"Authorization",value:"Bearer "+I}));H.push(new yX({name:"User-Agent",value:g.Tc}));(B=B.visitorData||g.O("VISITOR_DATA",
void 0))&&H.push(new yX({name:"X-Goog-Visitor-Id",value:B}));(y=g.$E(y.experiments,"debug_sherlog_username"))&&H.push(new yX({name:"X-Youtube-Sherlog-Username",value:y}));x=JSON.stringify(x);e=new zX({url:G,httpHeaders:H,postBody:x});try{var M=c.l;var L=c.i.getPlayerSize();var da=c.i.getVisibilityState();var Ba=c.J.onesieUstreamerConfig,za=c.B;var ed=za.encrypt(xX(e));var We=za.i.encryptedClientKey,oc=za.iv,Ee=za.iv,Fd=new nX(za.i.l);Fd.update(ed);Fd.update(Ee);var Hh=YCa(Fd);Fd.update(Fd.C);Fd.update(Hh);
var Pg=YCa(Fd);Fd.reset();var jc=new BX(ed,We,oc,Pg);za={};var Xl=AF(0);if(Xl){za.aI=Xl;za.lastManualDirection=kka();var Yl=Zy()||0;0<Yl&&(za.BK=(0,g.P)()-Yl)}za.tK=AF();za.cG=xF(M.schedule,!0);var Zl=g.AG();za.viewportHeight=L.height*Zl;za.viewportWidth=L.width*Zl;za.visibilityState=da;za.AK=mu();d=new CX(jc,new AX(za),Ba)}catch(be){return c.ea(),be instanceof g.mE?vX(c,be):(f=new g.mE("onesie.request",!1),vX(c,f)),u.return(c.u)}c.jf("osor");h=Asa(c.l);l=xX(d);g.it()&&(l=new Uint8Array(l.buffer.slice(0,
l.length)));m={method:"POST",body:l,headers:{"Content-Type":"text/plain"}};a:{if(c.Zp){M=xF(c.l.schedule,!0);L=c.i.getVideoData();da=GDa(L);L=da.video.map(EDa).flat();da=da.audio.map(EDa).flat();L=CDa(c.i,L,M);if(L.length){M={video:L,audio:da};break a}c.Ja("ombspf","limit."+M)}M=void 0}n=M;var vf;M=c.videoData;var Ka;b:{var wf;if((L=M.T().rf)&&(da=g.$E(M.T().experiments,"debug_bandaid_hostname")||(null===(wf=qKa())||void 0===wf?void 0:wf.primary))&&L.baseUrl){wf=new g.pB("https://"+da+L.baseUrl);
if(L=null===(Ka=M.Uo)||void 0===Ka?void 0:Ka.urlQueryOverride)for(Ka=xB(L),Ka=g.q(Object.entries(Ka)),L=Ka.next();!L.done;L=Ka.next())da=g.q(L.value),L=da.next().value,da=da.next().value,wf.set(L,da);if(!wf.get("id")){L=qF(M.videoId);Ka=[];if(L)for(L=g.q(L),da=L.next();!da.done;da=L.next())Ka.push(da.value.toString(16).padStart(2,"0"));Ka=Ka.join("");if(!Ka){Ka=void 0;break b}wf.set("id",Ka)}Ka=wf;break b}Ka=void 0}!Ka&&(null===(vf=M.Uo)||void 0===vf?0:vf.url)&&(Ka=new g.pB(M.Uo.url));Ka?(Ka.set("ack",
"1"),Ka.set("cpn",M.clientPlaybackNonce),Ka.set("opr","1"),Ka.set("oaad","0"),Ka.set("oavd","0"),n?(vf=n.audio,Ka.set("pvi",n.video.join(",")),Ka.set("pai",vf.join(",")),NA()||Ka.set("osh","1")):(Ka.set("pvi","135"),Ka.set("pai","140"),Ka.set("oad","0"),Ka.set("ovd","0")),vf=qB(Ka)):vf="";p=vf;if(!p)return c.ea(),r={url:"0"},t=new g.mE("onesie.unavailable.hotconfig",!1,r),vX(c,t),u.return(c.u);c.jf("ocs");c.ea();c.ul&&c.Ja("ombrs","1");NA()?c.xhr=new pV(p,h,c,m):c.xhr=new qV(p,c,m);return u.return(c.u)})})};
g.k.AC=function(){};
g.k.Ix=function(){IDa(this)};
g.k.mu=function(){this.ea();IDa(this);var a=this.xhr;if(a.Yd()){var b={msg:a.Yd()};b=new g.mE("onesie.net",!1,b)}else 400<=a.status?b=new g.mE("onesie.net.badstatus",!1):a.Rx()?this.K||(b=new g.mE("onesie.response.noplayerresponse",!1)):b=new g.mE(204===a.status?"onesie.net.nocontent":"onesie.net.connect",!1);b?vX(this,b):this.jf("orf");this.ul&&this.Ja("ombre","ok."+ +!b);b=this.G;a=b.queue;a.i.length&&a.i[0].bk&&!a.l&&(a.i.length=0);a=g.q(Object.keys(b.i));for(var c=a.next();!c.done;c=a.next())c=
c.value,b.i[c].zH||sDa(b.queue,c)};
g.k.nP=function(){this.ea();vX(this,new g.mE("onesie.request",!1,{timeout:"1"}))};
g.k.ea=function(){};g.v(g.HX,g.Q);g.k=g.HX.prototype;g.k.ra=function(){this.ea();this.YJ();this.Kb.stop();window.clearInterval(this.yb);mxa(this.Fe);this.visibility.unsubscribe("visibilitystatechange",this.Fe);MX(this);JX(this);g.gu(this.Ea);this.yg();this.U=null;g.ef(this.videoData);g.ef(this.G);g.ff(this.fg);this.va=null;this.La=!1;this.bb=0;g.Q.prototype.ra.call(this)};
g.k.ni=function(a,b,c){c=void 0===c?!0:c;this.ea();this.X.length=0;this.Pa=null;this.ma.reset();this.xa.reset();this.jb=!1;this.lf=0;this.Gc=!0;this.qb=null;this.i&&this.i.stopVideo();KX(this);MX(this);JX(this);g.gu(this.Ea);this.Nb.clear();g.ef(this.videoData);g.ef(this.G);if(2===this.playerType||this.u.Kk)a.eL=!0;var d=Pla(a.Tc,a.Np,this.u.l,this.u.u);d&&(a.adFormat=d);2===this.playerType&&(a.pk=!0);if(this.isFullscreen()||this.u.l)d=oKa(),a.autonavState=d||(this.u.l?2:this.videoData.autonavState);
this.Ac=c;this.videoData=a;this.videoData.subscribe("dataupdated",this.zT,this);this.videoData.subscribe("dataloaded",this.xA,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ja,this);ZDa(this,a);UDa(this,b);VDa(this);this.La=!1;this.bb=0;PX(this,"newdata");this.Lb(new g.BK);this.B.ni(this.videoData);if(Wma(a)||this.Z("embeds_enable_playability_on_web_preview")&&a.lp&&!["OK","LIVE_STREAM_OFFLINE"].includes(a.lp.status))a=this.videoData.errorDetail,
this.Z("embeds_enable_playability_on_web_preview")?this.Hf("auth",unescape(this.videoData.errorReason),a,a,this.videoData.Qh||void 0):(b=this.videoData.wj,this.Hf("auth",unescape(b.reason),a,a,b.subreason||void 0));1===this.playerType&&x2.isActive()&&this.Kb.start()};
g.k.getVideoData=function(){return this.videoData};
g.k.T=function(){return this.u};
g.k.md=function(){return this.i};
g.k.xA=function(){if(this.videoData.isLoaded()){var a=this.G;0<g.T(a.i.experiments,"html5_player_min_build_cl")&&381124074<g.T(a.i.experiments,"html5_player_min_build_cl")&&iBa(a,"oldplayer");aEa(this)}else this.videoData.xc||this.videoData.Gi?this.Da&&g.bG(this.u)&&this.videoData.isLivePlayback||(this.videoData.xc?Kma(this.videoData):(a=this.C,a.qoe&&(a=a.qoe,vW(a,"protected"),a.i.videoData.G?a.iK():a.i.videoData.subscribe("dataloaded",a.iK,a)),Ema(this.videoData))):!this.videoData.ma&&this.Ac&&
YDa(this)};
g.k.kt=ba(3);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.W("internalAbandon"),this.aD(!0),MX(this),g.gu(this.Ea))};
g.k.Jp=function(){gCa(this.C)};
g.k.Hf=function(a,b,c,d,e){this.ea();var f,h;g.Ob(BKa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+Gra());(b=h)||(b=g.eO[f]||"");a={errorCode:a,errorDetail:d,errorMessage:b,TA:f,Qh:e||"",QJ:c};PX(this,"dataloaderror");this.Lb(CK(this.playerState,128,a));g.gu(this.Ea);JX(this);this.Jl()};
g.k.Ad=function(a){this.X=this.X.filter(function(b){return a!==b});
this.ea();this.xa.started&&QX(this)};
g.k.vl=function(){var a;(a=!!this.X.length)||(a=this.Y.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.tc=function(){return this.playerState.tc()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.U){var a=this.U;a=a.videoData.Lp.compose(a.videoData.UG);a=WA(a)}else a="auto";return a};
g.k.nt=ba(9);g.k.isGapless=function(){return!!this.i&&this.i.isView()};
g.k.yg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.ea();if(this.i){var c=this.getCurrentTime();0<c&&(this.B.C=c);$W(this.B,null);this.G.u=null;bY(this);this.l&&(g.Eq(this.l.Y),$X(this,b));this.Ga.stop();if(this.i){!this.xa.started||this.playerState.isError()||g.U(this.playerState,2)||this.Lb(DK(this.playerState,512));g.ox(this.Va);if(a||!this.i.isView())this.i.stopVideo(),KX(this);this.i=null}}};
g.k.playVideo=function(){return g.D(this,function b(){var c=this,d,e,f,h;return g.z(b,function(l){if(1==l.i){c.ea();if(g.U(c.playerState,128))return l.return();if(c.G.B)return c.W("signatureexpired"),l.return();var m=c.G;m.J?(m.J=!1,iW(m),m=!0):m=!1;if(m)return l.return();c.i&&(m=c.C,m.u&&FBa(m.u),m.qoe&&PBa(m.qoe));UX(c);g.U(c.playerState,64)&&c.Lb(DK(c.playerState,8));return c.xa.isFinished()&&c.i?c.U||!c.Pa?l.ub(2):g.w(l,c.Pa,2):l.return()}if(!c.videoData.u)return d=c.videoData.isLivePlayback&&
!g.oF(c.u.B,!0)?"html5.unsupportedlive":AH(c.videoData)?"fmt.unplayable":"fmt.noneavailable",g.Ux(Error("selectableFormats")),c.Hf(d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(c.zf()&&c.videoData.u.i)return c.ea(),l.return(OX(c));if(c.videoData.isLivePlayback){e=c.getCurrentTime()<c.getMinSeekableTime()-15;f=g.OH(c.videoData)&&g.U(c.playerState,4);h=!c.Z("html5_dompaused_unpause_killswitch")&&g.U(c.playerState,1024);h||!e&&!f||(f?(c.ea(),c.seekTo(Infinity,{ke:"videoplayer_unpauseLiveOnly"})):
(c.ea(),c.seekTo(c.getMinSeekableTime(),{ke:"videoplayer_outOfWindow"})));!c.isAtLiveHead(void 0,!0)&&cX(c.B)&&(c.ea(),c.seekTo(Infinity,{ke:"videoplayer_peggedToLive"}));if(m=g.U(c.playerState,256)&&c.videoData.Ya)m=c.B,m=m.ma&&!isFinite(m.l);if(m)return c.Lb(FK(c.playerState,8,4)),l.return()}g.U(c.playerState,4)&&g.U(c.playerState,16)&&c.Lb(FK(c.playerState,9,4));if(GX(c))return qEa(c),l.return();eY(c);g.sa(l)})})};
g.k.QN=function(){var a=this.videoData;a.i.dispose();a.i=void 0;zma(a,a.adaptiveFormats);IX(this,!0);a=new LU(this.videoData.videoId,4,{IC:!0});this.W("localmediachange",a)};
g.k.cU=function(){this.ea();bY(this);var a=this.videoData.i&&fB(this.videoData.i),b=this.i&&this.i.isView();a||b?(this.l&&(a=this.l,a.policy.xa=!1,a.mediaSource&&KV(a)),IX(this)):(this.Lb(DK(this.playerState,16)),GX(this),g.HK(this.playerState)&&this.playVideo())};
g.k.rR=function(){this.ea();KX(this);JX(this);cY(this);this.playVideo()};
g.k.Am=function(){if(!this.U)return[];var a=nBa(this.pg,this.U,YX(this,!0));return this.U.i.Am(a)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.u&&!this.videoData.u.i?WA(this.videoData.Lp):VA[AF()]};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){return this.videoData.getAudioTrack()};
g.k.XR=function(a,b){this.fp(new KU(b,a))};
g.k.fp=function(a){this.ea();this.Ua.set(a.initData,a);this.J&&(this.J.fp(a),this.Z("html5_eme_loader_sync")||this.Ua.remove(a.initData))};
g.k.bJ=function(){g.tw&&this.Aa&&this.Aa.i&&this.J&&(aBa(this.J,this.Aa.i),this.Aa=null)};
g.k.wT=function(a){this.videoData.Mp=TA("auto",a,!1,"u");FX(this)};
g.k.sM=function(a){var b=this;WX(this,a.reason,a.video.info,a.audio.info);this.Z("html5_probe_media_capabilities")&&this.Z("html5_dynamic_av1_hybrid_threshold")&&a.video.info&&TD(a.video.info)&&uBa(this.pg,this.U).then(function(c){c&&b.l&&Gya(b.l.l,b.u)})};
g.k.JR=function(a){dEa(this,a.reason,a.audio.info)};
g.k.KR=function(a){this.W("localmediachange",a)};
g.k.handleError=function(a){this.G.handleError(a,g.U(this.playerState,4)||g.U(this.playerState,512))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.U(this.playerState,64)||g.U(this.playerState,2))&&!a)if(g.U(this.playerState,8))this.Lb(FK(this.playerState,4,8));else return;var b;if(b=this.Z("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai){var c;b=this.getCurrentTime();if(null===(c=this.l)||void 0===c)c=0;else{var d;if(d=c.K){d=c.u;var e=c.K,f=d.J.i.index.getSegmentNumberForTime(b);0<=f&&d.J.i.index.getStitchedVideoInfo(f)?(yT(d,"sdai","skipad_on"+f+"_t"+b.toFixed(3)),
e.nD(b,f),Cxa(d,b,b,f),d=!0):d=!1}d?(bza(c,c.timestampOffset-100),c=!0):c=!1}c?(RCa(this.B,b+100+5),b=!0):b=!1}b||(g.U(this.playerState,128)||(a?this.Lb(DK(this.playerState,256)):this.Lb(FK(this.playerState,4,8))),this.i&&this.i.pause(),g.OH(this.videoData)&&this.l&&$X(this,!1))};
g.k.stopVideo=function(){this.pauseVideo();this.l&&($X(this,!1),DV(this.l))};
g.k.Jl=function(a){a=void 0===a?!1:a;var b;if(this.Z("html5_signature_reload_refactor"))null===(b=this.i)||void 0===b?void 0:b.stopVideo();else{if(!this.i)return;this.i.stopVideo()}KX(this);JX(this);g.U(this.playerState,128)||(a?this.Lb(EK(EK(DK(this.playerState,4),8),16)):this.Lb(CK(this.playerState)));this.videoData.videoId&&this.u.U.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.ea("SeekTo "+a+", "+JSON.stringify(b));g.U(this.playerState,2)&&GX(this);if(this.Ya){var c=this.Ya;isFinite(a)&&a<FT(c.i)?c.isLiveNow=!1:c.isLiveNow=!0}this.B.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.B.getCurrentTime()};
g.k.jl=function(){return this.B.jl()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Lc())};
g.k.Fq=function(){var a=NaN;this.i&&(a=this.i.Fq());return 0<=a?a:this.getCurrentTime()};
g.k.getIngestionTime=function(){if(this.videoData.i)return this.videoData.i.getIngestionTime(this.getCurrentTime()-this.Lc());if((!this.Z("html5_disable_limit_ingestion_tvos")||jt())&&this.i){var a=this.i.uv();if(a&&(a=a.getTime(),!isNaN(a)))return a/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Lc():SX(this)?SX(this):0};
g.k.Cw=function(){var a=new lCa;if(this.l){var b=this.u.schedule;a.l=b.U;a.B=b.X;a.bandwidthEstimate=xF(b);a.i="d."+vF(b).toFixed(2)+";st."+(1E9*(b.i.Yf()||0)).toFixed(2)+";bw."+b.u.Yf().toFixed(0)+";abw."+b.G.Yf().toFixed(0)+";v50."+tF(b.l,.5).toFixed(2)+";v92."+tF(b.l,.92).toFixed(2)+";v96."+tF(b.l,.96).toFixed(2)+";v98."+tF(b.l,.98).toFixed(2);b=this.l;if(b.mediaSource&&!b.mediaSource.We()&&(a.Vn=iV(b.videoTrack,b.currentTime),a.u=iV(b.audioTrack,b.currentTime),b.policy.Ya)){var c=hV(b.videoTrack),
d=hV(b.audioTrack),e=eE(b.mediaSource.l.Te(),"_",5),f=eE(b.mediaSource.i.Te(),"_",5);a.i=(a.i||"")+(";lvq."+c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=mU(b.G);b.ea()}else this.i&&(a.Vn=yK(this.i));a.C=this.isAtLiveHead()&&this.tc()?EX(this):NaN;return a};
g.k.Cb=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.C.Cb());this.i&&(Object.assign(b,this.i.Cb()),Object.assign(b,this.xt()));this.l&&Object.assign(b,this.l.Cb());this.J&&(b.drm=this.J.Cb());b.state=this.playerState.state.toString(16);g.U(this.playerState,128)&&(b.debug_error=this.playerState.getData());this.vl()&&(b.prerolls=this.X.join(","));this.videoData.rj&&(b.ismb=this.videoData.rj);"UNKNOWN"!==this.videoData.latencyClass&&(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&
(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.isLivePlayback&&(this.videoData.i&&SE(this.videoData.i)&&(b.segduration=SE(this.videoData.i)),a=this.B,b.lat=a.U?Qxa(a.U.B):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Ji.toFixed(3);if(a=g.VX(this))b.optimal_format=a.fb().qualityLabel;b.user_qual=AF()}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.qs([a])};
g.k.removeCueRange=function(a){this.Y.Rf([a])};
g.k.qs=function(a){this.Y.Dd(a)};
g.k.QC=function(a){this.Y.Rf(a)};
g.k.Bm=function(){return this.Y.Bm()||[]};
g.k.zf=function(){return this.visibility.zf()};
g.k.Bp=function(){this.i&&this.i.Bp()};
g.k.zT=function(){PX(this)};
g.k.togglePictureInPicture=function(){this.i&&this.i.togglePictureInPicture()};
g.k.tM=function(a){this.Ob.stop();var b=a.target.vf();if(this.i&&this.i.vf()&&this.i.vf()===b){sEa(this,a.type);switch(a.type){case "error":var c=AK(this.i)||"";if("capability.changed"===c){OX(this);return}if(0<this.i.Ki()&&jW(this.G,c,{msg:this.i.Yd()}))return;if(this.isBackground()&&4===this.i.Ki()){this.Jl();RX(this,"unplayable");return}break;case "durationchange":c=this.i.getDuration();(!this.mediaSource||isFinite(c)&&0<c)&&1!==c&&this.videoData.lengthSeconds!==c&&(this.videoData.lengthSeconds=
c,PX(this));break;case "ratechange":this.l&&this.l.setPlaybackRate(this.i.getPlaybackRate());c=this.Y;c.started=!0;c.Ek();var d=this.C;c=this.getPlaybackRate();if(d.qoe){d=d.qoe;var e=g.jT(d.i);c&&c!==d.bb&&(g.qW(d,e,"rate",[c]),d.bb=c);d.reportStats(e)}break;case "loadedmetadata":uEa(this);this.W("onLoadedMetadata");nEa(this);break;case "loadstart":nEa(this);break;case "progress":case "suspend":this.Rb();c=this.W;this.i?g.OH(this.videoData)?d=1:PH(this.videoData)?this.isAtLiveHead()||cX(this.B)?
d=1:(e=this.B,e.i?PH(e.videoData)?(d=Poa(e.i)+e.timestampOffset-e.getMinSeekableTime(),e=YW(e)-e.getMinSeekableTime(),d=Math.max(0,Math.min(1,d/e))):d=zK(e.i):d=0):d=zK(this.i):d=0;c.call(this,"onLoadProgress",this,d);break;case "playing":if(this.Z("html5_force_manifestless_seeking_state")&&GH(this.videoData)&&this.l&&this.l.B.i){this.Ja("mflForceSeek","reason.play");return}this.K.tick("plev");mEa(this);JA("plev","video_to_ad");this.dd&&(this.dd=!1,this.isAtLiveHead()||(this.ea(),this.seekTo(Infinity,
{ke:"videoplayer_onPlaying"})));break;case "timeupdate":mEa(this);c=this.i&&!this.i.getCurrentTime();d=this.i&&0===this.i.eh();if(c&&(!this.jb||d))return;this.jb=this.jb||!!this.i.getCurrentTime();dY(this);this.Rb();if(!this.i||this.i.vf()!==b)return;this.W("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.i.Ko().length&&0===this.i.Nf().length&&0<this.i.getCurrentTime()&&5>this.i.getCurrentTime()&&this.l)return;break;case "resize":uEa(this);this.videoData.l&&"auto"===this.videoData.l.fb().quality&&
this.W("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.mf&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.cj){RX(this,"safari_autoplay_disabled");return}}if(this.i&&this.i.vf()===b){this.W("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.eb;e=this.i;var f=this.u.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.ck()||1<h&&1.1>Math.abs(h-e.getDuration());
h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!LW(c,h);if("pause"===a.type&&e.ck()||l&&h)0<e.yw()&&e.vf()&&(d=14);else switch(a.type){case "error":AK(e)&&(d|=128);break;case "pause":g.U(b,256)?(d^=256)||(d=64):g.U(b,32)||g.U(b,2)||g.U(b,4)||(d=4,g.U(b,1)&&g.U(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1029;f&&g.S(f,"html5_playing_clears_unstarted_killswitch")||(d&=-65);LW(c,e.getCurrentTime())&&(d&=-2);g.U(b,1)&&MW(c,e.getCurrentTime(),(0,g.P)(),yK(e))&&(d|=1);break;case "seeking":d|=
16;g.U(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.U(b,2)||(d|=1);MW(c,e.getCurrentTime(),(0,g.P)(),yK(e));break;case "timeupdate":f=g.U(b,16),l=g.U(b,4),(g.U(b,8)||f)&&!l&&LW(c,e.getCurrentTime())&&(d=8),MW(c,e.getCurrentTime(),(0,g.P)(),yK(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=AK(d))?(f="GENERIC_WITHOUT_LINK",l=d.Cb(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.Yd())&&(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.eO[f]||"",TA:f,QJ:g.nE(l)}):d=null);
b=CK(b,c,d)}!g.U(this.playerState,1)&&g.U(b,1)&&fY(this,"evt"+a.type);this.Lb(b)}}};
g.k.nT=function(){this.Ja("misstimeupdate","");lEa(this)&&!g.U(this.playerState,2)&&kT(this,!0,!1)};
g.k.FQ=function(a){a="available"===a.i.availability;a!==this.Pw&&(this.Pw=a,this.W("airplayavailabilitychange"))};
g.k.GQ=function(){var a=(0,g.P)(),b=this.i.zf();this.Ja("airplay",b?"on":"off");if(!this.Z("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.wb)||!(2E3>a-this.wb))this.wb=a,b!==this.zf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Fe()),this.Ja("airplay","rbld_"+b),LX(this)),this.W("airplayactivechange")};
g.k.Rb=function(a){var b=this;a=void 0===a?!1:a;if(this.i&&this.videoData){KCa(this.B,this.tc());var c=this.getCurrentTime();this.l&&(g.U(this.playerState,4)&&g.OH(this.videoData)||kAa(this.l,c));5<c&&(this.B.C=c);var d=g.fu();d?g.gu(this.Ea):g.os(this.Ea);if((g.JK(this.playerState)||!this.i.Xl())&&!g.U(this.playerState,128)){var e=function(){if(b.i&&!g.U(b.playerState,128)){b.videoData.X&&g.T(b.u.experiments,"html5_log_rebuffer_events")&&sEa(b,"pfx");var f=b.getCurrentTime(),h=yK(b.i),l=g.U(b.playerState,
8),m=LW(b.eb,f),n=MW(b.eb,f,(0,g.P)(),h);l&&m?b.Lb(EK(b.playerState,1)):l&&n?(l=b.getDuration(),m=b.videoData.isLivePlayback,(b.Z("html5_set_ended_in_pfx_live")||!m)&&l&&1.1>Math.abs(l-f)?(b.Ja("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.Z("html5_set_ended_in_pfx_live_cfl")||(b.i.ov()?(b.ea(),b.seekTo(0,{ke:"videoplayer_loop"})):kT(b))):(g.JK(b.playerState)||fY(b,"progress_fix"),b.Lb(DK(b.playerState,1)))):(l&&!m&&!n&&0<f&&(l=(Date.now()-b.lf)/1E3,m=b.getDuration(),f>m-1&&b.Ja("misspg",
"t:"+f.toFixed(2)+";d:"+m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.U(b.playerState,4)&&g.JK(b.playerState)&&5<yK(b.i)&&b.Lb(EK(b.playerState,1)));b.Rb()}};
0===this.i.Ko().length?this.Ea=d?g.cu(e,100):g.ms(e,100):this.Ea=d?g.cu(e,500):g.ms(e,500)}this.videoData.Sp=c;!a&&this.tc()&&pEa(this);yBa(this.pg,this.U,this.md(),this.isBackground())&&FX(this);zBa(this.pg,this.videoData.l)&&(this.C.onError("qoe.restart","droprate."+this.pg.K),this.u.B.J=!1,LX(this));this.W("progresssync",this,a)}};
g.k.XO=function(){this.Hf("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.gO=function(){g.JK(this.playerState)&&wBa(this.pg,this.U)&&FX(this)};
g.k.Lb=function(a){if(!g.GK(this.playerState,a)){this.ea();var b=new g.SI(a,this.playerState);this.playerState=a;tEa(this);var c=!this.Hb.length;this.Hb.push(b);var d=this.i&&this.i.Tr();g.UI(b,1)&&!g.U(b.Zm,16)&&!d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.l&&(d=this.l,d.ea(),d.va=!0,this.i&&5<=yK(this.i)&&((d=g.T(this.u.experiments,"html5_non_network_rebuffer_duration_ms"))?this.sf.start(d):wBa(this.pg,this.U)&&FX(this)));(d=g.T(this.u.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&
g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.wc.start(d):this.wc.stop();(0>TI(b,8)||g.UI(b,1024))&&this.Ga.stop();!g.UI(b,8)||this.videoData.Ya||g.U(b.state,1024)||this.Ga.start();g.U(b.state,8)&&0>TI(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&PH(this.videoData)&&(a=this.getCurrentTime(),this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,PX(this)),this.Rb(!0));g.UI(b,2)&&this.aD(!0);g.UI(b,128)&&this.Jl();this.videoData.i&&this.videoData.isLivePlayback&&!this.yf&&
(0>TI(b,8)?(a=this.videoData.i,a.B&&a.B.stop()):g.UI(b,8)&&this.videoData.i.resume());this.B.Dc(b);this.C.Dc(b);if(c&&!this.Ha())try{for(var e=g.q(this.Hb),f=e.next();!f.done;f=e.next()){var h=f.value;this.Y.Dc(h);this.W("statechange",h)}}finally{this.Hb.length=0}}};
g.k.Xt=function(){this.videoData.isLivePlayback||this.W("connectionissue")};
g.k.yC=function(){this.K.tick("qoes")};
g.k.rM=function(a,b,c,d){a:{var e=this.G;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.J&&1<this.J.l.keys.length&&96>e.Y)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.Z("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.X&&(e.X++,e.W("removedrmplaybackmanager"),1<e.videoData.yf.length&&(e.ea(),e.videoData.G=e.videoData.yf[1]),jW(e,a,{detail:c})))break a;if(b)if(e.videoData.l&&e.videoData.l.fb().isHdr())kBa(e,a);else{if(e.W("playererror",a,d,c),e.videoData.Z("html5_exile_on_drm_fatal")&&
dBa(e,{detail:c}))break a}else hW(e,a,{detail:c});"drm.sessionlimitexhausted"===a&&(kW(e,"retrydrm","s"),e.Y++,e.W("reattachvideosourcerequired"))}};
g.k.DR=function(){var a=this,b=g.T(this.u.experiments,"html5_license_constraint_delay"),c=vt();b&&c?(b=new g.J(function(){TX(a);PX(a)},b),g.F(this,b),b.start()):(TX(this),PX(this))};
g.k.CR=function(){var a=this;g.tw&&(this.Aa=fka(this.videoData.i))&&(this.Aa.i?g.Ig(function(){a.bJ()}):mAa(this.l,this.Aa))};
g.k.pM=function(a){this.W("heartbeatparams",a)};
g.k.qM=function(a){this.Ja("keystatuses",NAa(a));var b="auto",c=!1;this.videoData.l&&(b=this.videoData.l.fb().quality,c=this.videoData.l.fb().isHdr());if(this.Z("html5_drm_check_all_key_error_states")){var d=OAa(b,c);d=RV(a)?SV(a,d):a.G.includes(d)}else{a:{b=OAa(b,c);for(d in a.i)if("output-restricted"===a.i[d].status){var e=a.i[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.X&&d;c&&!b?kBa(this.G):d||SV(a,"AUDIO")&&SV(a,"SD")||(this.ea(),this.cd?(this.ea(),this.W("drmoutputrestricted")):
(this.cd=!0,this.Ja("retrydrm","o"),ZX(this),XDa(this)))};
g.k.HR=function(){var a,b;if(!this.videoData.Ya&&this.i&&!this.isBackground()){var c="0";0<this.i.eh()&&5<=yK(this.i)&&this.videoData.u&&this.videoData.u.i&&(this.Lb(DK(this.playerState,1)),fY(this,"load_soft_timeout"),this.W("playbackstalledatstart"),c="1");tEa(this);if(this.Z("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.vl()&&(c.prerolls=this.X.join(",")),this.l&&Object.assign(c,this.l.Cb()),this.i&&Object.assign(c,this.i.Cb());else{var d=this.videoData.u;c={restartmsg:c,
mfmt:xH(this.videoData)?"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].Jd&&!this.J?"1":"0",mfmtinfo:this.videoData.l?"0":"1",prerolls:this.vl()?this.X.join(","):"0"};if(this.J){d=c;var e=this.J;if(0>=e.l.values.length){var f="ns;";e.Y||(f+="nr;");e=f+="ql."+e.B.length}else e=NAa(e.l.values[0]);d.drmp=e}Object.assign(c,(null===(a=this.l)||void 0===a?void 0:a.Cb())||{});Object.assign(c,(null===(b=this.i)||void 0===b?void 0:b.Cb())||{})}this.C.onError("qoe.start15s",g.nE(c));this.W("loadsofttimeout")}};
g.k.bT=function(){g.U(this.playerState,128)||this.mediaSource&&vE(this.mediaSource)||(this.C.onError("qoe.restart",g.nE({detail:"bufferattach"})),this.uf++,IX(this))};
g.k.aD=function(a){var b=this;a=void 0===a?!1:a;if(!this.La){IA("att_s","player_att")||JA("att_s","player_att");var c=new g.Sra(this.videoData);if("c1a"in c.i&&!WM.Ud()&&(JA("att_wb","player_att"),2===this.bb&&.01>Math.random()&&g.Ux(Error("Botguard not available after 2 attempts")),!a&&5>this.bb)){g.Eq(this.xc);this.bb++;return}if("c1b"in c.i){var d=jCa(this.C);d&&g.Vra(c).then(function(e){e&&!b.La&&d?(JA("att_f","player_att"),d(e),b.La=!0):JA("att_e","player_att")},function(){JA("att_e","player_att")})}else(a=
Tra(c))?(JA("att_f","player_att"),iCa(this.C,a),this.La=!0):JA("att_e","player_att")}};
g.k.getMinSeekableTime=function(){return this.B.getMinSeekableTime()};
g.k.Lc=function(){return this.B?this.B.Lc():0};
g.k.getStreamTimeOffset=function(){return this.B?this.B.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.videoData.u&&this.videoData.u.videoInfos&&32<this.videoData.u.videoInfos[0].fb().fps&&g.bG(this.u);this.playbackRate!==a&&b&&(this.pg.setPlaybackRate(a),ZX(this));this.playbackRate=a;this.i&&this.i.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.l&&(a=this.videoData.l.fb().quality,"auto"===a&&this.i)){var b=OI(this);b&&0<b.videoHeight&&(a=LD(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.l&&this.videoData.l.video&&this.videoData.l.video.isHdr())};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.C;c.i?(c=EW(c.i,"engage"),c.K=a,c.send(b)):b&&b()};
g.k.lh=function(a){return this.C.lh(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.Gc||(void 0===b?0:b))?this.B.isAtLiveHead(a):!1};
g.k.Cm=function(){var a=SX(this),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.B,c=!(c.u&&c.u.u));return c||cX(this.B)||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.cj=ba(13);g.k.xt=function(){return this.i?this.i.vv():{}};
g.k.setLoop=function(a){this.loop=a;this.i&&this.i.setLoop(a)};
g.k.WP=function(a){var b=this.Z("html5_unrewrite_timestamps");this.Ja("timestamp","enabled."+b+";t."+a.toString())};
g.k.jf=function(a){this.K.tick(a)};
g.k.Ja=function(a,b,c){this.C.Ja(a,b,void 0===c?!1:c)};
g.k.wz=function(a,b){this.C.onError(a,g.nE(b))};
g.k.getPlayerSize=function(){return this.Vb.getPlayerSize()};
g.k.Zf=function(){return this.Vb.Zf()};
g.k.ea=function(){};
g.k.Z=function(a){return g.S(this.u.experiments,a)};
g.k.YJ=function(){if(g.HK(this.playerState)){var a=x2.TG();a&&this.C.Ja("profile",a)}this.Kb.start()};g.v(g.gY,g.E);g.gY.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Pa(a),e=h3[d];if(e){try{e.dispose()}catch(h){g.Tx(h)}h3[d]=null}var f=new g.gY(a,b,c);g.gf(f,function(){h3[d]=null;f.dd&&f.dd()});
return h3[d]=f}catch(h){throw g.Tx(h),h.stack;}};
g.k=g.gY.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.ll=function(a){this.Bb||(this.Bb=g.TM(a));return this.Bb};
g.k.isVideoInfoVisible=function(){return!(!this.U||!this.U.vb)};
g.k.yg=function(){if(this.B){this.Ga&&(this.events.fc(this.Ga),this.Ga=null);g.ox(this.xa);this.u&&this.u.yg(!0);this.template.yg();if(!this.Z("html5_unset_src_on_remove_killswitch"))try{this.B.Tx()}catch(a){}this.B=null}};
g.k.jj=function(a){a=this.kB(a);nY(this,a)};
g.k.jn=function(a){if(a=g.W(this,a))this.ea("release presenting player, type "+a.getPlayerType()+", vid "+a.getVideoData().videoId),a!==this.l?nY(this,this.l):QEa(this)};
g.k.kB=function(a){var b=g.W(this,a);b||(b=hY(this,a),lY(this,b));return b};
g.k.setIsExternalPlaylist=function(a){this.Xf=CF(!1,a)};
g.k.LQ=function(){iY(this)||(this.ea(),this.xk(5))};
g.k.hS=function(a){iY(this)||(this.ea(),jFa(this),g.HK(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return ZD(a)};
g.k.T=function(){return this.i};
g.k.getVideoData=function(){return this.u.getVideoData()};
g.k.wt=ba(5);g.k.getVideoLoadedFraction=function(a){a=g.W(this,a);return a?g.bI(a.getVideoData())?1:(a=a.md())?zK(a):0:0};
g.k.Za=function(){return this.template};
g.k.rb=function(){return this.G};
g.k.Fo=function(){return this.J};
g.k.xp=function(a){var b=g.W(this,1);b&&kT(b,a)};
g.k.Je=function(){var a=this.G.pB();a.fs=this.Wa.isFullscreen();a.volume=Math.round(this.Wa.getVolume());a.muted=this.Wa.isMuted()?1:0;a.mos=a.muted;if(g.S(this.i.experiments,"html5_enable_embedded_player_visibility_signals")&&g.MF(this.i)){if(this.Vb){var b=this.Vb;b=null==b.i?null:Math.round(100*b.i)/100;null!=b&&(a.inview=b)}b=this.template.getPlayerSize();if(0<b.height&&0<b.width){b=[Math.round(b.width),Math.round(b.height)];var c=g.AG();1<c&&b.push(c);a.size=b.join(":")}}this.u===this.l&&this.K&&
(a.clipid=this.K.postId);return a};
g.k.ci=function(a){1===a&&(this.J.tick("vr"),this.Aa||(this.Aa=qv(MA,this.OI,this)),oEa(this.u),hsa(this.J,this.u.getVideoData(),hFa(this)));var b=this.i;(KG(b)&&b.u||g.UF(b))&&(this.Md()||this.Wa.Na("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.u===this.l&&rEa(this.u)!==a&&(this.u.setLoop(a),this.Wa.W("loopchange",a))};
g.k.getLoopVideo=function(){return rEa(this.u)};
g.k.setLoopRange=function(a){var b=!1;!!this.K!==!!a?b=!0:this.K&&a&&(b=this.K.startTimeMs!==a.startTimeMs||this.K.endTimeMs!==a.endTimeMs||this.K.postId!==a.postId);b&&(this.l.Y.df("applooprange"),a?(b=new g.Fz(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.l.addCueRange(b)):rY(this).clipConfig=void 0,this.K=a,this.Wa.Na("onLoopRangeChange",a),this.u===this.l&&(this.Zx(),this.u.Jp()))};
g.k.getLoopRange=function(){return this.K};
g.k.Zx=function(){this.K&&this.u===this.l&&!XEa(this,this.l.getCurrentTime())&&(g.U(this.l.getPlayerState(),64)&&rY(this).isLivePlayback&&5E3>this.K.startTimeMs||this.l.seekTo(.001*this.K.startTimeMs,{ke:"application_loopRangeStart"}))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=JEa(this,a),this.l.getPlaybackRate()!==a&&(this.l.setPlaybackRate(a),b&&!this.i.l&&nKa(a),this.Wa.Na("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.kN(this.G).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.W(this):g.W(this,a);if(!a)return 0;if(b){if(c&&this.C&&(b=this.C.Ya/1E3,0!==b))return b;b=qY(this,a);return BY(this,b.getCurrentTime(),b)}c&&this.C?(b=a.getCurrentTime(),b=(c=uxa(this.C,1E3*b))?b-c.start/1E3:b):b=a.getCurrentTime();return b};
g.k.Fq=function(){var a=g.W(this,void 0);if(!a)return 0;a=qY(this,a);return BY(this,a.Fq(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.W(this):g.W(this,a);if(!a)return 0;if(b)return b=pY(this,a),BY(this,b.getDuration(),b);c&&this.C?(b=a.getCurrentTime(),b=(b=sT(this.C,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.getMinSeekableTime=function(a){a=g.W(this,a);if(!a)return 0;a=pY(this,a);return BY(this,a.getMinSeekableTime(),a)};
g.k.getIngestionTime=function(a){var b=g.W(this,a);return b?this.Md(b)?(b=pY(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.k.KA=function(){this.template.KA();var a=this.I;a.element=this.template.element;var b=a.element,c;for(c in a.l)a.l.hasOwnProperty(c)&&(b[c]=a.l[c]);(a=lx(this.template.element))&&this.events.N(this.template,a,this.sR);this.events.N(window,"resize",this.HS)};
g.k.getDebugText=function(a){var b=this.l.Cb(a);if(this.u&&this.u!==this.l){for(var c=this.u.Cb(a),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=Zf("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.cg("video-ads");f?(pFa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.cg("videoAdUiSkipContainer"),l=g.cg("ytp-ad-skip-button-container"),m=h||l;m?(pFa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,
videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.B&&(b["0sz"]=0===Uf(this.B.Vp()),b.op=this.B.vt("opacity"),c=this.B.Em().y+this.B.Vp().height,b.yof=0>=c,b.dis=this.B.vt("display"));(a=a?(0,g.wW)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.Wa.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", ")},b=this.sb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){var b;return 1===this.Y?1:iY(this)?3:a&&(null===(b=this.C)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.W(this).getPlayerType()};
g.k.sb=function(a){return 3===this.getPresentingPlayerType()?g.kN(this.G).hd:g.W(this,a).getPlayerState()};
g.k.getAppState=function(){return this.Y};
g.k.AM=function(a){switch(a.type){case "loadedmetadata":IA("fvb",this.J.timerName)||this.J.tick("fvb");JA("fvb","video_to_ad");this.Va.start();break;case "loadstart":IA("gv",this.J.timerName)||this.J.tick("gv");JA("gv","video_to_ad");break;case "progress":case "timeupdate":!IA("l2s",this.J.timerName)&&2<=iE(a.target.Nf())&&this.J.tick("l2s");break;case "playing":g.IG&&this.Va.start();if(g.bG(this.i))a=!1;else{var b=g.mN(this.rb());a="none"===this.B.vt("display")||0===Uf(this.B.Vp());var c=VT(this.template),
d=this.u.getVideoData(),e=g.VF(this.i)||g.XF(this.i);d=yH(d);b=!c||b||e||d||this.i.yb;a=a&&!b}a&&(this.u.Ja("hidden","1",!0),this.getVideoData().jb||(this.Z("html5_new_elem_on_hidden")?(this.getVideoData().jb=1,this.eJ(null),this.u.playVideo()):mY(this,"hidden",!0)))}};
g.k.GR=function(a,b){this.Wa.Na("onLoadProgress",b)};
g.k.eT=function(){this.Wa.W("playbackstalledatstart")};
g.k.CM=function(a,b){a=qY(this,a);b=BY(this,a.getCurrentTime(),a);this.Wa.Na("onVideoProgress",b)};
g.k.oR=function(){this.Wa.Na("onDompaused")};
g.k.sS=function(){this.Wa.W("progresssync")};
g.k.NQ=function(a){if(1===this.getPresentingPlayerType()){g.UI(a,1)&&!g.U(a.state,64)&&rY(this).isLivePlayback&&this.l.isAtLiveHead()&&1<this.Wa.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.UI(a,2)&&REa(this);if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Wa.Na("onError",EKa[b.errorCode]||5);this.Wa.Na("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.TA});
6048E5<(0,g.P)()-this.i.bb&&this.Wa.Na("onReloadRequired")}b={};if(a.state.tc()&&!g.JK(a.state)&&!IA("pbresume","ad_to_video")&&IA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);FA(b,"ad_to_video");EA("pbresume",void 0,"ad_to_video")}this.Wa.W("applicationplayerstatechange",a)}};
g.k.AJ=function(a){3!==this.getPresentingPlayerType()&&this.Wa.W("presentingplayerstatechange",a)};
g.k.Tg=function(a){oY(this,KK(a.state));g.U(a.state,1024)&&this.Wa.isMutedByMutedAutoplay()&&(cN(this,{muted:!1,volume:this.Uf.volume},!1),zY(this,!1))};
g.k.jS=function(a){a.state.tc()&&!g.JK(a.state)&&(Isa(this.G),g.ox(this.Kb))};
g.k.JQ=function(a,b,c){"newdata"===a&&LEa(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId})};
g.k.uM=function(){this.Wa.Na("onPlaybackAudioChange",this.Wa.getAudioTrack().Jc.name)};
g.k.BM=function(a){var b=this.u.getVideoData();a===b&&this.Wa.Na("onPlaybackQualityChange",a.l.fb().quality)};
g.k.kb=function(a,b,c){this.ea("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.l&&(this.i.dd=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.C?this.C=new g.oT(this.Wa,this.i,this.l):!this.getVideoData().enableServerStitchedDai&&this.C&&(this.C=null);if("newdata"===a)this.ea(),MN(this.G,2),this.Wa.W("videoplayerreset",b);else{if(!this.B)return;if("dataloaded"===a)if(this.u===this.l)if($F(c.B,c.kE),this.ea(),this.l.getPlayerState().isError())this.ea();
else{var d=iY(this);rY(this).isLoaded();d&&this.xk(6);TEa(this);d||(d=NN(this.G))&&!d.created&&IN(this.G)&&d.create()}else TEa(this);1===b.getPlayerType()&&(this.i.X&&oFa(this),this.getVideoData().isLivePlayback&&!this.i.Rk&&this.re("html5.unsupportedlive","DEVICE_FALLBACK"),c.isLoaded()&&(c.fg||c.XD||c.qp||c.K.focEnabled||c.K.rmktEnabled||this.getVideoData().Kk)&&(d=this.getVideoData(),EY(this,"part2viewed",1,0x8000000000000),EY(this,"engagedview",Math.max(1,1E3*d.wb),0x8000000000000),d.isLivePlayback||
(d=1E3*d.lengthSeconds,EY(this,"videoplaytime25",.25*d,d),EY(this,"videoplaytime50",.5*d,d),EY(this,"videoplaytime75",.75*d,d),EY(this,"videoplaytime100",d,0x8000000000000),EY(this,"conversionview",d,0x8000000000000))));this.Wa.W("videodatachange",a,c,b.getPlayerType())}this.Wa.Na("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.Zx();if(b=c.Du){if(a=this.Pm,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=RK();var e=void 0===e?{}:e;Object.values(eKa).includes(c)||
(g.Ux(new g.Gv("createClientScreen() called with a non-page VE",c)),c=83769);e.isHistoryNavigation||b.i.push({rootVe:c,key:e.key||""});b.B=[];b.C=[];e.GG?cpa(b,c,e):bpa(b,c,e);$xa(a)}}else $xa(this.Pm)};
g.k.zv=function(){tY(this,null);this.Wa.Na("onPlaylistUpdate")};
g.k.GI=function(a){var b=a.getId(),c=rY(this);if("part2viewed"===b)c.gF&&g.ou(c.gF),c.XD&&KY(this,c.XD),c.qp&&LY(this,c.qp);else if("conversionview"===b){var d=this.l.C;d.i&&aCa(d.i)}else"engagedview"===b&&g.ou(c.fg);c.hF&&(d=a.getId(),d=bs(c.hF,{label:d}),g.ou(d));switch(b){case "videoplaytime25":c.nE&&KY(this,c.nE);c.ZD&&LY(this,c.ZD);c.oF&&g.ou(c.oF);break;case "videoplaytime50":c.dF&&KY(this,c.dF);c.Vy&&LY(this,c.Vy);c.qF&&g.ou(c.qF);break;case "videoplaytime75":c.fF&&KY(this,c.fF);c.Wy&&LY(this,
c.Wy);c.sF&&g.ou(c.sF);break;case "videoplaytime100":c.mE&&KY(this,c.mE),c.YD&&LY(this,c.YD),c.mF&&g.ou(c.mF)}(b=this.getVideoData().Kk)&&cFa(b,a.getId())&&cFa(b,a.getId()+"gaia");this.l.removeCueRange(a)};
g.k.xk=function(a){a!==this.Y&&(this.ea(),2===a&&1===this.getPresentingPlayerType()&&(oY(this,-1),oY(this,5)),this.Y=a,this.Wa.W("appstatechange",a))};
g.k.re=function(a,b,c,d){this.l.Hf(a,b,c,d)};
g.k.yk=ba(7);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.W(this,a);if(!c)return!1;a=pY(this,c);c=qY(this,c);return a!==c?a.isAtLiveHead(BY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Cm=function(){var a=g.W(this,void 0);return a?pY(this,a).Cm():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.W(this,d))2===this.Y&&xY(this),this.Md(d)?this.C?this.C.seekTo(a,b,c):this.X.seekTo(a,b,c):d.seekTo(a,{NK:!b,OK:c,ke:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.zM=function(){this.Wa.Na("SEEK_COMPLETE")};
g.k.SS=function(a,b){var c=a.getVideoData();if(1===this.Y||2===this.Y)c.startSeconds=b;2===this.Y?this.Z("embeds_enable_preloadvideobyplayervars_startseconds_fix")&&g.U(a.getPlayerState(),512)||xY(this):this.Wa.Na("SEEK_TO",b)};
g.k.DQ=function(){this.Wa.W("airplayactivechange")};
g.k.EQ=function(){this.Wa.W("airplayavailabilitychange")};
g.k.vM=function(){this.Wa.W("beginseeking")};
g.k.wM=function(){this.Wa.W("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.W(this,a))?pY(this,a).getVideoData().getStoryboardFormat():null};
g.k.oh=function(a){return(a=g.W(this,a))?pY(this,a).getVideoData().oh():null};
g.k.Md=function(a){if(a=a||this.u){a=a.getVideoData();if(this.C)a=a===this.C.i.getVideoData();else a:{var b=this.X;if(a===b.l.getVideoData()&&b.i.length)a=!0;else{b=g.q(b.i);for(var c=b.next();!c.done;c=b.next())if(a.Wc===c.value.Wc){a=!0;break a}a=!1}}if(a)return!0}return!1};
g.k.hq=function(a,b,c,d,e,f){this.ea();a=this.C?rxa(this.C,a,b,c,d,e,f):Hxa(this.X,a,b,c,d,e);this.ea();return a};
g.k.Ft=function(a,b,c,d,e,f){this.C&&(rxa(this.C,a,b,c,d,e,f),this.ea());return""};
g.k.gp=function(a){var b;null===(b=this.C)||void 0===b?void 0:b.gp(a)};
g.k.ao=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.C?g.S(this.i.experiments,"web_player_ssdai_prevent_clearing_timeline_killswitch")&&vT(this.C,a,b):HT(this.X,a,b)};
g.k.Cr=function(a,b,c){if(this.C){var d=this.C,e=c;c=null;for(var f=g.q(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.Wc===a){c=h;break}c?(d.ea(),void 0===e&&(e=c.pd),a=c,d.ea(),a.durationMs=b,a.pd=e,g.S(d.l.experiments,"web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&vxa(d,c)):d.wd("Invalid timelinePlaybackId="+a+" specified")}else{d=this.X;e=null;f=g.q(d.i);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Wc===a){e=h;break}e?(d.ea(),void 0===c&&(c=e.pd),Nxa(d,e,b,c)):d.wd("e.InvalidTimelinePlaybackId timelinePlaybackId="+
a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Md();a=new g.rH(this.i,a);d&&(a.Wc=d);!g.S(this.i.experiments,"html5_report_dai_ad_playback_killswitch")&&2===b&&this.l&&hCa(this.l.C,a.clientPlaybackNonce,a.Tc||"",a.breakType||0);dFa(this,a,b,c)};
g.k.Zv=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.W(this);e&&(pY(this,e).yf=!0);hxa(this.Da,a,b,c).then(function(){d.Wa.Na("onQueuedVideoLoaded")},function(){})};
g.k.Mq=function(){return this.Da.Mq()};
g.k.clearQueue=function(){this.ea();this.Da.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){var f,h=!1;this.Z("html5_onesie_early_loadVideo")&&(b=b||1);var l=new g.rH(this.i,a),m=null!==(f=l.bb)&&void 0!==f?f:"";this.J.timerName=m;if(!this.Z("web_player_load_video_context_killswitch")&&e){for(;l.Vh.length&&l.Vh[0].isExpired();)l.Vh.shift();h=l.Vh.length-1;h=0<h&&e.l(l.Vh[h])&&e.l(l.Vh[h-1]);l.Vh.push(e)}c||(a&&uN(a)?(zG(this.i)&&!this.Xf&&(a.fetch=0),tY(this,a)):this.playlist&&tY(this,null),a&&this.setIsExternalPlaylist(a.external_list),zG(this.i)&&
!this.Xf&&uY(this));a=this.Tm(l,b,d);h&&this.re("player.fatalexception","GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+l.Vh.join()).replace(/[;:,]/g,"_"));return a};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=HF(a);d=FY(b,d,e);this.Pa.get(d)?this.ea():this.u&&this.u.ma.started&&d===FY(this.u.getPlayerType(),this.u.getVideoData().videoId,this.u.getVideoData().Wc)?this.ea():(a=new g.rH(this.i,a),e&&(a.Wc=e),eFa(this,a,b,c))};
g.k.Pv=function(a){var b=a.getPlayerType();a!==g.W(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.l.getVideoData().autonavState,MEa(this,a)):(b=g.W(this,b))&&b.dispose(),this.u.getPlayerType()===a.getPlayerType()?nY(this,a):lY(this,a))};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.G;a=a.I.T().showMiniplayerUiWhenMinimized?a.od.get("miniplayer"):void 0;a&&(this.Ce()?a.load():a.unload());this.Wa.W("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.G;a=a.I.T().showInlinePreviewUi?a.od.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Wa.Na("onInlinePreviewModeChange"))};
g.k.lr=function(a){var b=g.S(this.i.experiments,"html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.i.rh&&g.S(this.i.experiments,"html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.yb&&b?this.yb.start():this.iG():this.visibility.lr(a)};
g.k.iG=function(){var a,b=null===(a=this.B)||void 0===a?void 0:a.ue();b&&kx(b).catch(function(c){return g.Ux(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.PS=function(){"picture-in-picture"===this.B.ue().webkitPresentationMode?this.lr(!0):this.lr(!1)};
g.k.togglePictureInPicture=function(){var a=g.W(this);a&&a.togglePictureInPicture()};
g.k.Tm=function(a,b,c){var d=this;this.ea();IA("_start",this.J.timerName)||(AA("p",void 0,this.J.timerName),this.J.info("srt",0));b=b||this.u.getPlayerType();var e=AY(this,b,a,!1);!e&&this.Z("html5_onesie_early_loadVideo")&&(e=hY(this,b),e.ni(a,function(){return d.Je()},c),this.Z("html5_onesie")&&NX(e)&&VS(e),this.Va.stop(),this.cancelPlayback(4,b),1===b&&MEa(this,e),nY(this,e));
if(!e){e=g.W(this,b);if(!e)return!1;this.Va.stop();this.cancelPlayback(4,b);e.ni(a,function(){return d.Je()},c)}e===this.l&&(this.i.dd=a.oauthToken);
if(!NX(e))return!1;this.eb&&(this.eb=e.G.G=!1);if(e===this.l)return this.xk(1),xY(this);UX(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;if(a&&uN(a))if(this.Ea=!0,tY(this,a),(a=this.playlist.fb())&&a.isValid())HY(this,a,b);else this.playlist.onReady(function(){wY(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.zv();var d=new g.rH(this.i,a);g.MF(this.i)&&!this.i.K&&g.S(this.i.experiments,"embeds_enable_iframe_apis_through_oneplatform")?wsa(d,a?a:{}).then(function(e){HY(c,e,b)}):HY(this,d,b)}};
g.k.tj=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if(OF(this.i)||g.EG(this.i))return b=b||{},b.lact=mu(),b.vis=this.Wa.getVisibilityState(),this.Wa.Na("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;b=this.J;b.i&&(e=b.i,e.i={},e.Gs={});b.l=!1;this.J.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.Ea=!0;fFa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Ea=!1;fFa(this,a,b,c,d)};
g.k.Us=function(){if(this.Wa.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;zG(this.i)&&!this.Xf&&uY(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.Eo=ba(1);
g.k.nextVideo=function(a,b){var c=this,d=this.l.getVideoData().suggestions;g.pN(this.Wa)&&d?(a=d.map(function(e){return g.UP(c.i,e)})[0],d=b?a.OA:a.Qd,this.tj(a.fb().videoId,d,a.getPlaylistId(),b,void 0,a.aG||void 0)):this.Xf?this.Wa.Na("onPlaylistNext"):3===this.getPresentingPlayerType()?g.kN(this.G).nextVideo():this.playlist&&(zG(this.i)&&!this.Wa.isFullscreen()?DY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&vN(this.playlist,isa(this.playlist)),this.playlist.loaded?(a=b&&g.S(this.i.experiments,
"html5_player_autonav_logging"),this.Tm(this.playlist.fb(void 0,b,a),1)):this.Ea=!1))};
g.k.previousVideo=function(a){this.Xf?this.Wa.Na("onPlaylistPrevious"):3===this.getPresentingPlayerType()?g.kN(this.G).Lx():this.playlist&&(zG(this.i)&&!this.Wa.isFullscreen()?DY(this,"yt.www.watch.lists.prev"):(this.playlist.Vj(a)&&vN(this.playlist,jsa(this.playlist)),this.playlist.loaded?this.Tm(this.playlist.fb(),1):this.Ea=!1))};
g.k.playVideoAt=function(a){this.Xf?this.Wa.Na("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Tm(this.playlist.fb(a),1):this.Ea=!1,vN(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.ot=ba(11);g.k.HQ=function(a){this.Wa.Na("onCueRangeEnter",a.getId())};
g.k.IQ=function(a){this.Wa.Na("onCueRangeExit",a.getId())};
g.k.qs=function(a,b){var c=g.W(this,b);c&&(c.qs(a),b&&this.getPresentingPlayerType()!==b||kY(this,"cuerangesadded",a))};
g.k.QC=function(a,b){var c=g.W(this,b);c&&(c.QC(a),b&&this.getPresentingPlayerType()!==b||kY(this,"cuerangesremoved",a))};
g.k.MQ=function(){var a=this;this.getPresentingPlayerType();this.Aa||(this.Aa=qv(MA,this.OI,this));hsa(this.J,this.u.getVideoData(),hFa(this));sY(this)&&this.i.l&&"embedded"===WH(rY(this))&&this.Gc&&.01>Math.random()&&g.Bv("autoplayTriggered",{intentional:this.xc});this.Gc=!1;this.Wa.Na("onPlaybackStartExternal");g.S(this.i.experiments,"mweb_client_log_screen_associated");(function(){var c=g.Ix(a.Tc||(a.Ce()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(g.S(a.i.experiments,
"web_playback_associated_ve")&&a.getVideoData().Ga){var e=g.Cx(a.getVideoData().Ga);g.by(c,e,void 0);d.playbackVe=e.getAsJson()}g.S(a.i.experiments,"kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.Z("web_playback_associated_log_ctt")&&a.getVideoData().Va&&(c.Ie={token:a.getVideoData().Va,videoId:a.getVideoData().videoId});g.Bv("playbackAssociated",d,c)}})();
CA("player_att",["att_f","att_e"]);if(this.Z("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.Z("web_player_botguard_inline_skip_config_killswitch")&&(Kr("BG_I",b.interpreterScript),Kr("BG_IU",b.interpreterUrl),Kr("BG_P",b.program)),g.BG(this.i)?bu(eu(),function(){yY(a)}):yY(this))}this.Zx()};
g.k.yM=function(){this.Wa.W("internalAbandon");this.Z("html5_ad_module_cleanup_killswitch")||CY(this)};
g.k.OI=function(a){a=a.i;if(!isNaN(a)&&0<a&&this.l){var b=this.l.C;b.qoe&&0<a&&(b.qoe.l.aft=[a.toString()])}};
g.k.QR=function(){var a=this.B;a={volume:g.Mf(Math.floor(100*a.getVolume()),0,100),muted:a.xw()};a.muted||zY(this,!1);this.Uf=g.Vb(a);this.Wa.Na("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Wa.Na("onMutedAutoplayStarts"))};
g.k.sR=function(){var a=IY(this);this.ji(a?1:0);lFa(this,!!a)};
g.k.ji=function(a){var b=!!a,c=!!this.visibility.fullscreen!==b;this.visibility.ji(a);this.template.ji(b);this.Z("html5_media_fullscreen")&&!b&&this.B&&IY(this)===this.B.ue()&&this.B.Ns();this.template.resize();c&&this.J.tick("fsc");c&&(this.Wa.W("fullscreentoggled",b),a=rY(this),b={fullscreen:b,videoId:a.Pz||a.videoId,time:this.getCurrentTime()},this.Wa.getPlaylistId()&&(b.listId=this.Wa.getPlaylistId()),this.Wa.Na("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.HS=function(){this.u&&(0!==this.visibility.fullscreen&&1!==this.visibility.fullscreen||this.ji(IY(this)?1:0),this.i.rh&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.B&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.B.Ns())};
g.k.FR=function(a){3!==this.getPresentingPlayerType()&&this.Wa.W("liveviewshift",a)};
g.k.playVideo=function(a){this.ea();if(a=g.W(this,a))2===this.Y?xY(this):(null!=this.U&&this.U.vb&&this.U.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.W(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){this.ea();var a=this.l.getVideoData(),b=new g.rH(this.i,{video_id:a.Pz||a.videoId,oauth_token:a.oauthToken});b.Bb=g.Vb(a.Bb);this.cancelPlayback(6);HY(this,b,1);null!=this.U&&this.U.stop()};
g.k.cancelPlayback=function(a,b){this.ea();pv(this.Aa);this.Aa=0;var c=g.W(this,b);c?1===this.Y||2===this.Y?this.ea():(c===this.u&&(this.ea(),MN(this.G,a)),1===b&&(g.S(this.i.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),CY(this)),c.Jl(),kY(this,"cuerangesremoved",c.Bm()),c.Y.reset(),this.Da&&c.isGapless()&&(c.yg(!0),dT(c,this.B))):this.ea()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.W(this,b))&&this.i.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.lh=function(a){var b=g.W(this,void 0);return b&&this.i.enabledEngageTypes.has(a.toString())?b.lh(a):null};
g.k.updatePlaylist=function(){zG(this.i)?uY(this):g.MF(this.i)&&vY(this);this.Wa.Na("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.cd=a;this.Hb=b;this.Wa.W("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.Hb};
g.k.Ce=function(){return this.visibility.Ce()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Lq=function(){return this.visibility.Lq()};
g.k.Jq=function(){return this.visibility.Jq()};
g.k.LB=function(){return this.cd};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.kN(this.G).getAdState();if(!this.Md()){var a=NN(this.rb());if(a)return a.getAdState()}return-1};
g.k.GS=function(a){var b=this.template.getVideoContentRect();ql(this.Ac,b)||(this.Ac=b,this.u&&TX(this.u),this.l&&this.l!==this.u&&TX(this.l),1===this.visibility.fullscreen&&this.La&&lFa(this,!0));this.Jb&&g.Tf(this.Jb,a)||(this.Wa.W("appresize",a),this.Jb=a)};
g.k.Xe=function(){return this.Wa.Xe()};
g.k.YS=function(){2===this.getPresentingPlayerType()&&this.X.isManifestless()&&!this.Z("web_player_manifestless_ad_signature_expiration_killswitch")?Mxa(this.X):(this.C&&vT(this.C),mY(this,"signature",void 0,!0))};
g.k.eJ=function(){this.yg();jY(this)};
g.k.ES=function(a){fT(a,this.B.qv())};
g.k.YR=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Wa.Na("onPlayerRequestAuthFailed")};
g.k.Xt=function(){this.Wa.Na("CONNECTION_ISSUE")};
g.k.xM=function(a){this.Wa.W("heartbeatparams",a)};
g.k.Vx=function(a){this.Wa.Na("onAutonavChangeRequest",1!==a)};
g.k.md=function(){return this.B};
g.k.setBlackout=function(a){this.i.yb=a;this.u&&(this.u.Jp(),this.i.X&&oFa(this))};
g.k.setAccountLinkState=function(a){var b=g.W(this);b&&(b.getVideoData().lF=a,b.Jp())};
g.k.updateAccountLinkingConfig=function(a){var b=g.W(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Wa.W("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.aS=function(){var a=g.W(this);if(a){var b=!this.Wa.Kt();(a.Gc=b)||a.Ga.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.B&&c.B.stop()}g.S(a.u.experiments,"html5_suspend_loader")&&a.l&&(b?a.l.resume():$X(a,!0));g.S(a.u.experiments,"html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Lb(EK(a.playerState,512)):a.Lb(DK(a.playerState,512)));a=a.C;a.qoe&&(a=a.qoe,g.qW(a,g.jT(a.i),"stream",[b?"A":"I"]))}};
g.k.IR=function(){this.Wa.Na("onLoadedMetadata")};
g.k.pR=function(){this.Wa.Na("onDrmOutputRestricted")};
g.k.VB=function(){this.xc=!0};
g.k.ra=function(){this.G.dispose();this.X.dispose();this.C&&this.C.dispose();this.l.dispose();this.yg();g.ff(Lb(this.Ob),this.playlist);pv(this.Aa);this.Aa=0;g.E.prototype.ra.call(this)};
g.k.ea=function(){};
g.k.Z=function(a){return g.S(this.i.experiments,a)};
g.k.jy=function(){return this.Ya};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.Tc=a};
g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=dN(this.rb()))||void 0===b?void 0:b.Vs(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.Jk;if(this.Z("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.oO&&a<e.length&&0<=a){var f=1E3*this.getCurrentTime()<e[a].startTime?1:-1;d.WJ(f,e[a].title);JY(this,e[a].startTime/1E3)}};
g.k.downloadVideo=function(a){return g.D(this,function c(){var d=this,e;return g.z(c,function(f){if(1==f.i)return d.va&&d.Z("woffle_orchestration")?g.w(f,Pwa(d.va,[a]),2):f.return(Promise.reject());e=f.l;return f.return(e[0])})})};
g.k.refreshAllVideos=function(){return this.va&&this.Z("woffle_orchestration")?this.va.refreshAllVideos():Promise.reject()};
g.k.deleteVideos=function(a){return this.va&&this.Z("woffle_orchestration")?this.va.deleteVideos(a):Promise.reject()};
g.k.deleteAllVideos=function(){return this.va&&this.Z("woffle_orchestration")?this.va.deleteAllVideos():Promise.reject()};
g.k.isOrchestrationLeader=function(){return this.va&&this.Z("woffle_orchestration")?this.va.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Wa,b=g.W(this),c=a.getVideoData(),d=a.md(),e=d.ue(),f=b.xt(),h=b.Nb,l=8*PT(h,"bandwidth")/1024,m=PT(h,"networkactivity")/1024,n=PT(h,"bufferhealth");if(b.J){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.J.i.Ue()+"/"+WA(YX(b));p+="/"+b.J.Ue()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),u=eE(d.Nf(),",",3),x="";ana(c)&&(c.enableServerStitchedDai&&(x+="SS"),x+="DAI, ");if(c.fetchType){switch(c.fetchType){case "onesie":var y=
"o";break;case "gp":y="gp";break;default:y="gvi"}x+="vd:"+y+", "}x+="s:"+r+" t:"+t+" b:"+u+" ";d.Tr()&&(x+="S");d.Xl()&&(x+="P");d.ck()&&(x+="E");d=b.C;d=d.qoe?d.qoe.Ga:void 0;d&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.Wz;d&&d>r.start&&d<r.end&&(x+=" as");d=x;x=g.AG();r=g.nN(a).DP;t=c.u&&!c.u.i?"display:none":"";if((u=c.clientPlaybackNonce)&&16==u.length){y=0;for(var B="",G=0;10>G;G++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(G)),4==G%
5){for(var H="",I=0;6>I;I++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+H,y>>=5;B+=H}u=B.substr(0,4)+" "+B.substr(4,4)+" "+B.substr(8,4)}else u="";l={video_id_and_cpn:c.videoId+" / "+u,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:d,bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+" KB",shader_info:r,shader_info_style:r?"":"display:none",playback_categories:""};
m=e.clientWidth+"x"+e.clientHeight+(1<x?"*"+x.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=$ma(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Ji.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.l)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.VX(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,
1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=Rxa(a),!c.J||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+Rxa(c.J),e.l||e.primaries?(a=e.l||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;a=c.Le;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(GH(c)?" Manifestless":
"");else if(e){a=PT(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=GH(c)?"Manifestless, ":"";c.Fi&&(e+="Windowed, ");f="Uncertain";if(0<=a&&120>a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";
e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=OT(h,"bandwidth");l.network_activity_samples=OT(h,"networkactivity");l.live_latency_samples=OT(h,"livelatency");l.buffer_health_samples=OT(h,"bufferhealth");c.Z("woffle_orchestration")&&(b=g.bI(c),c.cotn||b)&&(l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b);
l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";zH(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20210623_1_RC0",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.K&&this.K.postId?(a=this.i.getVideoUrl(a),a=yi(a,"v"),a.replace("/watch","/clip/"+this.K.postId)):this.i.getVideoUrl(a,b,c,d,e)};
var h3={};g.Ha("yt.player.Application.create",g.gY.create,void 0);g.Ha("yt.player.Application.createAlternate",g.gY.create,void 0);Nx(Ox(),{Bl:[{Qt:/Unable to load player module/,weight:5},{Qt:/Failed to fetch/,weight:500},{Qt:/XHR API fetch failed/,weight:10},{Qt:/JSON parsing failed after XHR fetch/,weight:10},{Qt:/Retrying OnePlatform request/,weight:10}]});var WKa=g.Ia("ytcsi.tick");WKa&&WKa("pe");var XKa={C4:"replaceUrlMacros",o_:"isExternalShelfAllowedFor",A3:"onAboutThisAdPopupClosed"};MY.prototype.Tj=function(){return"adLifecycleCommand"};
MY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.Ig(function(){b.controller.tm()});
break;case "END_LINEAR_AD_PLACEMENT":g.Ig(function(){b.controller.Rj()});
break;case "FILL_ABOVE_FEED_SLOT":g.Ig(function(){a.elementId&&b.controller.bw(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.Ig(function(){b.controller.Qv()})}};
MY.prototype.rl=function(a){this.handle(a)};NY.prototype.Tj=function(){return"clearCueRangesCommand"};
NY.prototype.handle=function(){var a=this.FA();g.Ig(function(){a.Rf(Array.from(a.Pn))})};
NY.prototype.rl=function(a){this.handle(a)};OY.prototype.Tj=function(){return"muteAdEndpoint"};
OY.prototype.handle=function(a){rFa(this,a)};
OY.prototype.rl=function(a,b){rFa(this,a,b)};PY.prototype.Tj=function(){return"openPopupAction"};
PY.prototype.handle=function(){};
PY.prototype.rl=function(a){this.handle(a)};QY.prototype.Tj=function(){return"pingingEndpoint"};
QY.prototype.handle=function(){};
QY.prototype.rl=function(a){this.handle(a)};RY.prototype.Tj=function(){return"urlEndpoint"};
RY.prototype.handle=function(a,b){b=g.yq(a.url,b);var c,d,e;if((null===(c=a.browserConversionApiData)||void 0===c?0:c.impressiondata)&&(null===(d=a.browserConversionApiData)||void 0===d?0:d.conversiondestination)){if(null===(e=a.browserConversionApiData)||void 0===e?0:e.originTrialToken)c=document.createElement("meta"),c.setAttribute("http-equiv","origin-trial"),c.setAttribute("content",a.browserConversionApiData.originTrialToken),document.head.appendChild(c);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,
attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.iK(b,void 0,void 0,a)};
RY.prototype.rl=function(){R("Trying to handle UrlEndpoint with no macro in controlflow")};SY.prototype.Tj=function(){return"adPingingEndpoint"};
SY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Qn.send(a,b,c)};
SY.prototype.rl=function(a,b){gHa(this.Xa.get(),a,b,void 0)};TY.prototype.Tj=function(){return"changeEngagementPanelVisibilityAction"};
TY.prototype.handle=function(a){this.I.Na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
TY.prototype.rl=function(a){this.handle(a)};UY.prototype.Tj=function(){return"loggingUrls"};
UY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.q(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.ij.send(d.baseUrl,b,c,d.headers)};
UY.prototype.rl=function(a,b){a=g.q(a);for(var c=a.next();!c.done;c=a.next())c=c.value,gHa(this.Xa.get(),c.baseUrl,b,c.headers)};g.v(tFa,g.E);var FFa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var OFa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);var xFa=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"]]),vFa=new Map([["normal",{er:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{er:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{er:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{er:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{er:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{er:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",wr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.v(cZ,g.E);g.k=cZ.prototype;g.k.mB=function(a,b){return this.i.mB(a,b)};
g.k.ai=function(a,b){XZ(this.Zb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.Ed),d=c.next();!d.done;d=c.next())d.value.ai(a,b)};
g.k.Bf=function(a){if(gZ(this.i,a)){mK(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.Bf(a);for(var b=g.q(this.Ed),c=b.next();!c.done;c=b.next())c.value.Bf(a);CFa(this,a)}};
g.k.Cf=function(a){if(gZ(this.i,a)){mK(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.Cf(a);for(var b=g.q(this.Ed),c=b.next();!c.done;c=b.next())c.value.Cf(a);gZ(this.i,a)&&hZ(this.i,a).C&&eZ(this,a,!1)}};
g.k.Fx=function(a){mK(this.Zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);gZ(this.i,a)&&(this.i.Fx(a),eZ(this,a,!1))};
g.k.Hc=function(a,b){if(gZ(this.i,a)){iZ(this.Zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.Ed),d=c.next();!d.done;d=c.next())d.value.Hc(a,b)}};
g.k.Oc=function(a,b,c){if(gZ(this.i,a)){iZ(this.Zb,wFa(c),a,b);this.i.Oc(a,b);for(var d=g.q(this.Ed),e=d.next();!e.done;e=d.next())e.value.Oc(a,b,c);(c=uZ(this.i,a))&&b.layoutId===c.layoutId&&LFa(this,a,!1)}};
g.k.cf=function(a,b,c){R(c,a,b,void 0,c.Rn);eZ(this,a,!0)};
g.k.ra=function(){var a=NFa(this.i);a=g.q(a);for(var b=a.next();!b.done;b=a.next())eZ(this,b.value,!1);g.E.prototype.ra.call(this)};MFa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(jZ,Va);g.v(rZ,Va);g.v(xZ,g.E);g.k=xZ.prototype;g.k.mB=function(a,b){b=tZ(this,a+"_"+b);a=[];b=g.q(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.yh=function(a){a=hZ(this,a);"not_scheduled"!==a.i&&vZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
g.k.Qs=function(a){a=hZ(this,a);a.B="fill_requested";a.J.Qs()};
g.k.Bf=function(a){a=hZ(this,a);"enter_requested"!==a.i&&vZ(a.slot,a.i,"onSlotEntered");a.i="entered"};
g.k.Fx=function(a){hZ(this,a).B="fill_canceled"};
g.k.Cf=function(a){a=hZ(this,a);"exit_requested"!==a.i&&vZ(a.slot,a.i,"onSlotExited");a.i="scheduled"};
g.k.Oc=function(a,b){a=hZ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&vZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.v(AZ,g.E);AZ.prototype.u=function(){return this.l};g.v(BZ,g.E);BZ.prototype.get=function(){this.Ha()&&R("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.l());return this.i};g.v(WZ,g.E);g.v(ZZ,g.E);ZZ.prototype.yd=function(){};
ZZ.prototype.bf=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.l.get().removeCueRange(a),kz(this.u.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.B.get();d=SZ(d.l.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Wb:c.Wb?VGa(c.slotId,d,c.Wb):void 0,uc:WGa(c.slotId,d,c.uc),pc:WGa(c.slotId,d,c.pc)})]},c.slotId))};
ZZ.prototype.wh=function(){for(var a=g.q(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.l.get().removeCueRange(b);this.i.clear()};
ZZ.prototype.ek=function(){};g.v($Z,g.E);g.k=$Z.prototype;g.k.yh=function(){};
g.k.hj=function(){};
g.k.Bf=function(){};
g.k.gj=function(){};
g.k.Cf=function(){};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
g.k.gk=function(a,b){this.xi.has(a)&&this.xi.get(a)===b&&R("Unscheduled a Layout that is currently entered.",a,b);if(this.i.has(a)){var c=this.i.get(a);c.has(b)?(c.delete(b),0===c.size&&this.i.delete(a)):R("Trying to unscheduled a Layout that was not scheduled.",a,b)}else R("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Hc=function(a,b){this.xi.set(a,b)};
g.k.Oc=function(a){this.xi.delete(a)};
g.k.ai=function(){};m_.prototype.clone=function(a){var b=this;return new m_(function(){return b.triggerId},a)};n_.prototype.clone=function(a){var b=this;return new n_(function(){return b.triggerId},a)};o_.prototype.clone=function(a){var b=this;return new o_(function(){return b.triggerId},a)};p_.prototype.clone=function(a){var b=this;return new p_(function(){return b.triggerId},a)};q_.prototype.clone=function(a){var b=this;return new q_(function(){return b.triggerId},a)};g.v(t_,g.E);t_.prototype.logEvent=function(a){XZ(this,a)};g.v(v_,g.E);g.k=v_.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.wh=function(a,b,c,d,e,f,h){var l;if(""===a)R("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!g.S(this.I.T().experiments,"html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Fa.get().wh(a,b,c,d,e,f,h);null===(l=this.l)||void 0===l?void 0:l.get().wh(a,b,c,d,e,f,h);this.u.wh(a,b,c,d,e,f,h);for(var m=g.q(this.listeners),n=m.next();!n.done;n=m.next())n.value.wh(a,b,c,d,e,f,h)}};
g.k.EM=function(){this.i&&this.ek(this.i)};
g.k.ek=function(a){this.i=void 0;for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.ek(a)};g.v(w_,g.E);w_.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?2:f;h=void 0===h?1:h;this.i.has(a)?R("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new aHa(a,b,c,d,f),this.i.set(a.id,{Td:a,listener:e,sj:h}),this.I.Dd([a],h))};
w_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.I.Rf([b.Td],b.sj),this.i.delete(a)):R("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
w_.prototype.yd=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.yd(a.id)};
w_.prototype.bf=function(a){this.i.has(a.id)&&this.i.get(a.id).listener.bf(a.id)};
g.v(aHa,g.Fz);x_.prototype.ci=function(a){this.I.ci(a)};
x_.prototype.Na=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.I.Na.apply(this.I,[a].concat(g.ma(c)))};C_.prototype.Ge=function(a,b){if(!this.i.has(a))return{};if("seek"===b){var c=g.S(this.I.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");vq(a,c);return{}}c=wna(b);if(null===c)return{};if(g.S(this.I.T().experiments,"enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return R("Unexpected call to Lidar API when the player is not playing ads",void 0,void 0,{layoutId:a,trackingType:b}),{};b=(b=this.I.Kc())&&(g.S(this.I.T().experiments,"enable_server_stitched_dai")||
2===b.getPlayerType())&&OI(b);if(!b)return{};b={opt_adElement:b,opt_fullscreen:this.Fa.get().isFullscreen()};return uq(c,a,b)};
C_.prototype.zx=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.zx()};
C_.prototype.yx=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.yx()};
C_.prototype.Ax=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.Ax()};g.v(E_,BI);E_.prototype.Ve=function(){return this.l()};
E_.prototype.i=function(){return this.u()};F_.prototype.lh=function(){var a=this.I.Kc();return a&&(a=a.lh(1))?a:null};g.v(K_,g.E);g.k=K_.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.yT=function(a,b,c){A_(this.Qa.get())&&"dataloaded"!==a||mHa(this,b,c)};
g.k.US=function(a){var b=this.I.getPresentingPlayerType(!0),c=this.I.getVideoData(b);c?mHa(this,c,b):R("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.ra=function(){this.listeners.length=0;this.uo=null;g.E.prototype.ra.call(this)};g.v(L_,g.E);g.k=L_.prototype;g.k.wh=function(){var a=this;this.Qj=db(function(){a.I.Ha()||a.I.Ad("ad",1)})};
g.k.ek=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.playVideo=function(){this.I.playVideo()};
g.k.pauseVideo=function(){this.I.pauseVideo()};
g.k.resumeVideo=function(a){this.wl(a)&&this.I.playVideo()};
g.k.wl=function(a){return 2===this.I.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){return this.I.getCurrentTime(a,b)};
g.k.getVolume=function(){return this.I.getVolume()};
g.k.isMuted=function(){return this.I.isMuted()};
g.k.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.I.getPlayerState(a)};
g.k.isFullscreen=function(){return this.I.isFullscreen()};
g.k.tS=function(){if(2===this.I.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Yh(a)};
g.k.kS=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.hk(a,this.getPresentingPlayerType())};
g.k.Me=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Me(a)};
g.k.Df=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next())b.value.Df()};
g.k.jg=function(){for(var a=this.I.Ce(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.jg(a)};
g.k.tb=function(){for(var a=this.I.Za().Zf(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.aj(a)};g.v(pHa,g.E);M_.prototype.executeCommand=function(a,b){lL(this.i(),a,b)};
M_.prototype.ld=function(a,b){aqa(this.i(),a,b)};O_.prototype.Qs=function(){var a=this;sHa(this.i,function(){var b=X(a.slot.Ia,"metadata_type_ad_break_request_data");return a.l.get().fetch({ZK:b.getAdBreakUrl,EG:new g.Fz(b.SJ,b.RJ),Hs:X(a.slot.Ia,"metadata_type_cue_point")})},function(b){var c;
b=b.Uk;2<=b.length&&R("Unexpected ad placement renderers length",a.slot,null,{length:b.length});var d=X(a.slot.Ia,"metadata_type_cue_point");b.some(function(e){var f,h,l;return null===(l=null===(h=null===(f=e.renderer)||void 0===f?void 0:f.linearAdSequenceRenderer)||void 0===h?void 0:h.linearAds)||void 0===l?void 0:l.length})||(null===(c=a.u)||void 0===c?void 0:c.get().gp(d.identifier))})};
O_.prototype.rA=function(){tHa(this.i)};P_.prototype.Qs=function(){var a=this;sHa(this.i,function(){var b=X(a.slot.Ia,"metadata_type_ad_break_request_data");return a.l.get().fetch({ZK:b.getAdBreakUrl,EG:new g.Fz(b.SJ,b.RJ)})})};
P_.prototype.rA=function(){tHa(this.i)};Q_.prototype.Qs=function(){DFa(this.callback,this.slot,X(this.slot.Ia,"metadata_type_fulfilled_layout"))};
Q_.prototype.rA=function(){fZ(this.callback,this.slot,new rZ("Got CancelSlotFulfilling request for "+this.slot.ob+" in DirectFulfillmentAdapter."))};S_.prototype.He=function(a,b){return R_(b,{Wd:["metadata_type_fulfilled_layout"]})?new Q_(a,b):this.B(a,b)};g.v(T_,S_);T_.prototype.B=function(a,b){if(R_(b,{Wd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],ob:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new O_(a,b,this.i,this.u,this.l,this.C);if(R_(b,{Wd:["metadata_type_ad_break_request_data"],ob:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new P_(a,b,this.i,this.u,this.l);throw new rZ("Unsupported slot with type: "+b.ob+" and client metadata: "+XY(b.Ia)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(U_,S_);U_.prototype.B=function(a,b){throw new rZ("Unsupported slot with type: "+b.ob+" and client metadata: "+XY(b.Ia)+" in DefaultFulfillmentAdapterFactory.");};g.k=uHa.prototype;g.k.rd=function(){return this.slot};
g.k.Sb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.cf(this.slot,a,new jZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Ia,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.ob?(this.callback.Hc(this.slot,a),Jia(this.i,this.slot,b)):R("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.Pe=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.cf(this.slot,a,new jZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Oc(this.slot,a,b)};W_.prototype.He=function(a,b,c,d){if(V_(d,{Wd:["metadata_type_ad_break_response_data"],Af:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new uHa(a,c,d,this.i);throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};X_.prototype.Ge=function(a){var b=this.B.get(a)||[];hHa(this.Xa.get(),this.layoutId,a,b);this.i.add(a)};g.k=wHa.prototype;g.k.rd=function(){return this.slot};
g.k.Sb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.cf(this.slot,a,new jZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Hc(this.slot,a),$_(this.l,"impression"),n0(this.i,a.layoutId))};
g.k.Pe=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.cf(this.slot,a,new jZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Oc(this.slot,a,b)};a0.prototype.He=function(a,b,c,d){if(V_(d,xHa()))return new wHa(a,c,d,this.Xa,this.i);throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(b0,g.Q);g.k=b0.prototype;g.k.rd=function(){return this.slot};
g.k.Sb=function(){return this.layout};
g.k.init=function(){this.l.get().addListener(this)};
g.k.release=function(){this.l.get().removeListener(this);this.dispose()};
g.k.xB=function(){};
g.k.vB=function(){};
g.k.uB=function(){};
g.k.Hw=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.cf(this.slot,a,new jZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.l.get(),WHa(a,this.i,1))};
g.k.Pe=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.cf(this.slot,a,new jZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.l.get();WHa(c,this.i,3);this.i=[];this.callback.Oc(this.slot,a,b)}};
g.k.ra=function(){this.l.get().removeListener(this);g.Q.prototype.ra.call(this)};g.v(yHa,QI);g.v(e0,b0);g.k=e0.prototype;g.k.xf=function(a,b){d0("action-companion",a,this.G.get().xi,this.Xa.get(),this.u,this.B,this.rd(),this.Sb(),b)};
g.k.startRendering=function(a){c0(this.C,this.rd(),this.Sb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new yHa(b,c,d,e,f)},this.i);
b0.prototype.startRendering.call(this,a)};
g.k.Hc=function(a,b){b.layoutId===this.layout.layoutId?$_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Xa.get().lh():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.yh=function(){};
g.k.hj=function(){};
g.k.gj=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(){};
g.k.gk=function(){};
g.k.ai=function(){};
g.k.ra=function(){this.xe().Ed.delete(this);b0.prototype.ra.call(this)};g.v(f0,b0);f0.prototype.init=function(){b0.prototype.init.call(this);var a=X(this.layout.Ia,"metadata_type_ad_action_interstitial_renderer"),b=Z_(this.u);this.i.push(new YI(a,b,this.layout.layoutId,{adsClientData:this.layout.zc},!0,!0))};
f0.prototype.startRendering=function(a){b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a)};
f0.prototype.xf=function(){};
f0.prototype.ra=function(){b0.prototype.ra.call(this)};g.v(g0,b0);g.k=g0.prototype;g.k.init=function(){b0.prototype.init.call(this);var a=X(this.layout.Ia,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.zc},c=!X(this.layout.Ia,"metadata_type_player_bytes_callback").Rw;this.i.push(new jK(a,this.layout.layoutId,X(this.layout.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Dl=function(){this.u||this.Fa.get().resumeVideo(2)};
g.k.startRendering=function(a){b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a);this.Cd.Nn=this};
g.k.Pe=function(a,b){b0.prototype.Pe.call(this,a,b);P1(this.Cd,this)};
g.k.xf=function(a){a:{var b=this.B.get();var c=this.C;b=g.q(b.xi.values());for(var d=b.next();!d.done;d=b.next())if(d.value.layoutId===c){c=!0;break a}c=!1}if(c)switch(a){case "visit-advertiser":this.Xa.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.u||this.Fa.get().resumeVideo(2);break;case "ad-info-icon-button":(this.u=this.Fa.get().wl(2))||this.Fa.get().pauseVideo();break;
case "visit-advertiser":this.Fa.get().pauseVideo();X(this.layout.Ia,"metadata_type_player_bytes_callback").RC();break;case "skip-button":a=X(this.layout.Ia,"metadata_type_player_bytes_callback"),a.Rw&&a.fu(this.rd(),this.layout)}};
g.k.ra=function(){b0.prototype.ra.call(this)};i0.prototype.He=function(a,b,c,d){if(a=h0(a,c,d,this.i,this.Fa,this.Xa,this.l,this.Cd))return a;throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(j0,g.E);g.k=j0.prototype;g.k.init=function(){var a=X(this.Sb().Ia,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Dt()};
g.k.release=function(){var a=X(this.Sb().Ia,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.wu()};
g.k.startRendering=function(a){a.layoutId!==this.Sb().layoutId?this.callback.cf(this.rd(),a,new jZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Sb().layoutId+("and LayoutType: "+this.Sb().layoutType))):(this.Fa.get().addListener(this),dZ(this.xe(),this),this.Fa.get().I.jj(2),Foa(this.kd.get()),this.Ku(a))};
g.k.Pe=function(a,b){this.EB=!0;this.Lu(a,b);this.Fa.get().I.jn(2);this.qd.get().I.cueVideoByPlayerVars({},2);a=D_(this.Fa.get(),1);g.U(a,4)&&!g.U(a,2)&&this.Fa.get().playVideo();this.Fa.get().removeListener(this);this.EB&&this.nI();cHa(this.Qa.get())||this.xe().Ed.delete(this)};
g.k.Oc=function(a,b){b.layoutId===this.Sb().layoutId&&(this.EB=!1,cHa(this.Qa.get())&&this.xe().Ed.delete(this))};
g.k.hk=function(a,b){var c,d;if(a.state.isError()){if(g.S(this.Qa.get().I.T().experiments,"html5_ignore_organic_playback_error_when_ads_presenting")&&(R("Presenting player state error caught in PlayerBytes layout.",this.rd(),this.Sb(),{playerType:String(b)}),1===b))return;this.cf(null===(c=a.state.getData())||void 0===c?void 0:c.errorCode,new jZ("There was a player error during this media layout.",{playerErrorCode:null===(d=a.state.getData())||void 0===d?void 0:d.errorCode}),b)}else this.mJ(a)};
g.k.yh=function(){};
g.k.hj=function(){};
g.k.gj=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(){};
g.k.gk=function(){};
g.k.ai=function(){};g.v(k0,j0);g.k=k0.prototype;g.k.rd=function(){return this.slot};
g.k.Sb=function(){return this.layout};
g.k.Dt=function(){if(1>=this.l.length)throw new rZ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.l.length)});for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b=b.value,b.init(),nZ(this.B,this.slot,b.Sb())};
g.k.wu=function(){for(var a=g.q(this.l),b=a.next();!b.done;b=a.next())b.value.release()};
g.k.kp=function(a,b){var c=this.l[this.i];b.layoutId!==l0(c,a,b)?R("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.kp()};
g.k.vp=function(a,b){var c=this.l[this.i];b.layoutId!==l0(c,a,b)?R("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.vp()};
g.k.fu=function(a,b){var c=this.l[this.i];b.layoutId!==l0(c,a,b)?R("onSkipRequested for a PlayerBytes layout that is not currently active",c.rd(),c.Sb(),{requestingSlot:a,requestingLayout:b}):m0(this,c.rd(),c.Sb(),"skipped")};
g.k.Ku=function(){-1===this.i&&CHa(this)};
g.k.gT=function(a,b){oZ(this.B,a,b)};
g.k.Lu=function(a,b){var c=this;this.i!==this.l.length?(a=this.l[this.i],a.Pe(a.Sb(),b),this.C=function(){c.callback.Oc(c.slot,c.layout,b)}):this.callback.Oc(this.slot,this.layout,b)};
g.k.Hc=function(a,b){var c=this.l[this.i];c&&c.Hc(a,b)};
g.k.Oc=function(a,b,c){j0.prototype.Oc.call(this,a,b,c);var d=this.l[this.i];d&&d.Oc(a,b,c)};
g.k.nI=function(){var a=this.l[this.i];a&&a.Gw()};
g.k.Yh=function(a){var b=this.l[this.i];b&&b.Yh(a)};
g.k.mJ=function(a){var b=this.l[this.i];b&&b.hk(a)};
g.k.cf=function(a,b){-1===this.i&&(this.callback.Hc(this.slot,this.layout),this.i++);var c=this.l[this.i];c?c.Tt(a,b):R("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Sb().layoutId})};
g.k.Me=function(a){var b=this.l[this.i];b&&b.Me(a)};
g.k.jg=function(a){var b=this.l[this.i];b&&b.jg(a)};
g.k.aj=function(a){var b=this.l[this.i];b&&b.aj(a)};
g.k.Df=function(){var a=this.l[this.i];a&&a.Df()};
g.k.iT=function(a,b,c){m0(this,a,b,c)};
g.k.hT=function(a,b){m0(this,a,b,"error")};g.v(r0,g.E);g.k=r0.prototype;g.k.rd=function(){return this.slot};
g.k.Sb=function(){return this.layout};
g.k.init=function(){var a=X(this.layout.Ia,"metadata_type_video_length_seconds");dHa(this.Y.get(),this.layout.layoutId,a,this);I_(this.Xa.get(),this);this.Dt()};
g.k.release=function(){eHa(this.Y.get(),this.layout.layoutId);J_(this.Xa.get(),this);this.wu()};
g.k.kp=function(){};
g.k.vp=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.cf(this.slot,a,new jZ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.l="rendering_start_requested",Dna(this.Aa.get(),1)?(this.Bs(!1),this.C(-1),this.Ku(a)):this.Tt("ui_unstable",new jZ("Failed to render media layout because ad ui unstable.")))};
g.k.Hc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.l="rendering",$_(this.i,"impression"),$_(this.i,"start"),this.Fa.get().isMuted()&&(this.i.Ge("mute"),a=(null===(c=q0(this))||void 0===c?void 0:c.muteCommands)||[],this.u.get().ld(a,this.layout.layoutId)),this.Fa.get().isFullscreen()&&(this.i.Ge("fullscreen"),a=(null===(d=q0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.u.get().ld(a,this.layout.layoutId)),Ioa(this.kd.get()),this.C(1),this.YI(),a=(null===(e=q0(this))||
void 0===e?void 0:e.impressionCommands)||[],this.u.get().ld(a,this.layout.layoutId))};
g.k.Tt=function(a,b,c){this.xa={Ly:3,Wu:"load_timeout"===a?402:400,errorMessage:b.message};var d;X(this.layout.Ia,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&R("There is a player error in this survey ads",this.rd(),this.Sb(),{playerType:String(c)});$_(this.i,"error");a=(null===(d=q0(this))||void 0===d?void 0:d.errorCommands)||[];this.u.get().ld(a,this.layout.layoutId);this.callback.cf(this.slot,this.layout,b)};
g.k.Gw=function(){this.U()};
g.k.tH=function(){var a;if("rendering"===this.l){this.i.Ge("pause");var b=(null===(a=q0(this))||void 0===a?void 0:a.pauseCommands)||[];this.u.get().ld(b,this.layout.layoutId);this.C(2)}};
g.k.uH=function(){var a;if("rendering"===this.l){this.i.Ge("resume");var b=(null===(a=q0(this))||void 0===a?void 0:a.resumeCommands)||[];this.u.get().ld(b,this.layout.layoutId)}};
g.k.Pe=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.cf(this.slot,a,new jZ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.l&&(this.l="rendering_stop_requested",this.J=b,this.Lu(a,b))};
g.k.Oc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.l="not_rendering",this.J=void 0,Hoa(this.kd.get()),this.Bs(!0),this.ZI(c),this.C(0),c){case "abandoned":var d;if(this.i.i.has("impression")){$_(this.i,"abandon");var e=(null===(d=q0(this))||void 0===d?void 0:d.abandonCommands)||[];this.u.get().ld(e,this.layout.layoutId)}break;case "normal":$_(this.i,"complete");d=(null===(e=q0(this))||void 0===e?void 0:e.completeCommands)||[];this.u.get().ld(d,this.layout.layoutId);break;case "skipped":var f;
$_(this.i,"skip");d=(null===(f=q0(this))||void 0===f?void 0:f.skipCommands)||[];this.u.get().ld(d,this.layout.layoutId)}};
g.k.gt=function(){return this.layout.layoutId};
g.k.aB=function(){return this.xa};
g.k.hk=function(a){if("not_rendering"!==this.l){this.va||(a=new g.SI(a.state,new g.BK),this.va=!0);var b=2===this.Fa.get().getPresentingPlayerType();"rendering_start_requested"===this.l?b&&o0(a)&&this.ma():b?g.UI(a,2)?this.ME():(o0(a)?this.C(1):g.UI(a,4)&&!g.UI(a,2)&&this.tH(),0>TI(a,4)&&!(0>TI(a,2))&&this.uH()):this.Gw()}};
g.k.zx=function(){var a;if("rendering"===this.l){$_(this.i,"active_view_measurable");var b=(null===(a=q0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.u.get().ld(b,this.layout.layoutId)}};
g.k.yx=function(){var a;if("rendering"===this.l){$_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=q0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.u.get().ld(b,this.layout.layoutId)}};
g.k.Ax=function(){var a;if("rendering"===this.l){$_(this.i,"active_view_viewable");var b=(null===(a=q0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.u.get().ld(b,this.layout.layoutId)}};
g.k.Bs=function(a){this.kd.get().Bs(X(this.layout.Ia,"metadata_type_ad_placement_config").kind,a,this.position,this.La,!1)};
g.k.Me=function(a){var b,c;"rendering"===this.l&&(a?(this.i.Ge("fullscreen"),a=(null===(b=q0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.u.get().ld(a,this.layout.layoutId)):(this.i.Ge("end_fullscreen"),a=(null===(c=q0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.u.get().ld(a,this.layout.layoutId)))};
g.k.Df=function(){var a,b;if("rendering"===this.l)if(this.Fa.get().isMuted()){this.i.Ge("mute");var c=(null===(a=q0(this))||void 0===a?void 0:a.muteCommands)||[];this.u.get().ld(c,this.layout.layoutId)}else this.i.Ge("unmute"),c=(null===(b=q0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.u.get().ld(c,this.layout.layoutId)};
g.k.jg=function(){};
g.k.aj=function(){};g.v(t0,r0);g.k=t0.prototype;g.k.Dt=function(){};
g.k.wu=function(){var a=this.Xa.get();a.sy===this&&(a.sy=null)};
g.k.Ku=function(){this.Xa.get().sy=this;this.ma()};
g.k.YI=function(){HHa(this)};
g.k.ME=function(){};
g.k.kp=function(){this.B.stop();r0.prototype.tH.call(this)};
g.k.vp=function(){HHa(this);r0.prototype.uH.call(this)};
g.k.Eq=function(){return X(this.Sb().Ia,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Lu=function(){this.B.stop()};
g.k.Rb=function(){var a=Date.now(),b=a-this.G;this.G=a;this.Dj+=b;this.Dj>=this.Eq()?(this.Dj=this.Eq(),s0(this,this.Dj/1E3,!0),u0(this,this.Dj),this.U()):(s0(this,this.Dj/1E3),u0(this,this.Dj))};
g.k.ZI=function(){};
g.k.Yh=function(){};g.v(v0,r0);g.k=v0.prototype;g.k.Dt=function(){X(this.Sb().Ia,"metadata_type_player_bytes_callback_ref").current=this};
g.k.wu=function(){X(this.Sb().Ia,"metadata_type_player_bytes_callback_ref").current=null;this.B&&this.K.get().removeCueRange(this.B);this.B=void 0;this.G.dispose()};
g.k.Ku=function(a){var b=X(a.Ia,"metadata_type_ad_video_id"),c=X(a.Ia,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Ea.get().I.T().U.add(b,{Cs:c});(b=X(a.Ia,"metadata_type_sodar_extension_data"))&&qHa(this.Da.get(),b);oHa(this.Fa.get(),!1);b=this.qd.get();a=X(a.Ia,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.G.start();this.qd.get().I.playVideo(2)};
g.k.YI=function(){var a;this.G.stop();this.B="adcompletioncuerange:"+this.Sb().layoutId;this.K.get().addCueRange(this.B,0x7ffffffffffff,0x8000000000000,!1,this,1,2);(this.adCpn=(null===(a=mz(this.X.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||R("Media layout confirmed started, but ad CPN not set.");this.Cc.get().Na("onAdStart",this.adCpn)};
g.k.ME=function(){this.U()};
g.k.Eq=function(){var a;return null===(a=mz(this.X.get(),2))||void 0===a?void 0:a.playbackDurationMs};
g.k.RC=function(){this.i.Ge("clickthrough")};
g.k.Lu=function(){this.G.stop();oHa(this.Fa.get(),!0)};
g.k.yd=function(a){a!==this.B?R("Received CueRangeEnter signal for unknown layout.",this.rd(),this.Sb(),{cueRangeId:a}):(this.K.get().removeCueRange(this.B),this.B=void 0,a=X(this.Sb().Ia,"metadata_type_video_length_seconds"),s0(this,a,!0),$_(this.i,"complete"))};
g.k.ZI=function(a){"abandoned"!==a&&this.Cc.get().Na("onAdComplete");this.Cc.get().Na("onAdEnd",this.adCpn)};
g.k.bf=function(){};
g.k.Yh=function(a){"rendering"===this.l&&s0(this,a)};g.v(w0,j0);g.k=w0.prototype;g.k.rd=function(){return this.i.rd()};
g.k.Sb=function(){return this.i.Sb()};
g.k.Dt=function(){this.i.init()};
g.k.wu=function(){this.i.release()};
g.k.kp=function(){this.i.kp()};
g.k.vp=function(){this.i.vp()};
g.k.fu=function(a,b){R("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.rd(),this.Sb(),{requestingSlot:a,requestingLayout:b})};
g.k.Ku=function(a){this.i.startRendering(a)};
g.k.Lu=function(a,b){this.i.Pe(a,b)};
g.k.Hc=function(a,b){this.i.Hc(a,b)};
g.k.Oc=function(a,b,c){j0.prototype.Oc.call(this,a,b,c);this.i.Oc(a,b,c)};
g.k.nI=function(){this.i.Gw()};
g.k.Yh=function(a){this.i.Yh(a)};
g.k.mJ=function(a){this.i.hk(a)};
g.k.cf=function(a,b,c){this.i.Tt(a,b,c)};
g.k.Me=function(a){this.i.Me(a)};
g.k.jg=function(a){this.i.jg(a)};
g.k.aj=function(a){this.i.aj(a)};
g.k.Df=function(){this.i.Df()};x0.prototype.He=function(a,b,c,d){if(a=KHa(a,b,c,d,this.xe,this.G,this.Xa,this.C,this.K,this.qd,this.J,this.Fa,this.u,this.kd,this.Cc,this.i,this.l,this.B,this.Qa))return a;throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(y0,g.E);g.k=y0.prototype;g.k.Hc=function(a,b){var c=this;if(LHa(this)&&"LAYOUT_TYPE_MEDIA"===b.layoutType&&VY(b,this.J)){var d=mz(this.i.get(),2),e=this.C(b,d);e?kz(this.u.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){return[YGa(c.B.get(),e.contentCpn,e.Ay,function(f){return c.G(f.slotId,"core",e,aZ(c.l.get(),f))},e.FH)]}):R("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.yh=function(){};
g.k.hj=function(){};
g.k.Bf=function(){};
g.k.gj=function(){};
g.k.Cf=function(){};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(){};
g.k.gk=function(){};
g.k.ai=function(){};
g.k.Oc=function(){};var p1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=PHa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.RA=function(){this.callback.Bf(this.slot)};
g.k.WA=function(){this.callback.Cf(this.slot)};
g.k.release=function(){};A0.prototype.He=function(a,b){return new PHa(a,b)};g.k=QHa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.RA=function(){var a=this.Fa.get();g.K(a.I.getRootNode(),"ad-showing");this.callback.Bf(this.slot)};
g.k.WA=function(){this.callback.Cf(this.slot);var a=this.Fa.get();g.Oq(a.I.getRootNode(),"ad-showing")};
g.k.release=function(){};g.k=RHa.prototype;g.k.init=function(){};
g.k.rd=function(){return this.slot};
g.k.RA=function(){var a=this.Fa.get();g.K(a.I.getRootNode(),"ad-showing");a=this.Fa.get();g.K(a.I.getRootNode(),"ad-interrupting");this.callback.Bf(this.slot)};
g.k.WA=function(){this.Fa.get().Qj();var a=this.Fa.get();g.Oq(a.I.getRootNode(),"ad-showing");a=this.Fa.get();g.Oq(a.I.getRootNode(),"ad-interrupting");this.callback.Cf(this.slot)};
g.k.release=function(){this.Fa.get().Qj()};B0.prototype.He=function(a,b){if(oz(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new QHa(a,b,this.Fa);if(oz(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new RHa(a,b,this.Fa);throw new rZ("Unsupported slot with type "+b.ob+" and client metadata: "+(XY(b.Ia)+" in PlayerBytesSlotAdapterFactory."));};g.v(D0,g.E);D0.prototype.i=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof JZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.le===a&&b.push(d)}b.length?pZ(this.xz(),b):R("Mute requested but no registered triggers can be activated.")};g.v(E0,D0);g.k=E0.prototype;g.k.xf=function(a,b){if(b)if("survey-submit"===a)SHa(this,b);else if("skip-button"===a){a=[];for(var c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof JZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.le===b&&a.push(d)}a.length&&pZ(this.xz(),a)}else"survey-single-select-answer-button"===a&&SHa(this,b)};
g.k.xB=function(a){D0.prototype.i.call(this,a)};
g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof KZ||b instanceof JZ))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Db.set(b.triggerId,new C0(a,b,c,d))};
g.k.Di=function(a){this.Db.delete(a.triggerId)};
g.k.vB=function(){};
g.k.uB=function(){};
g.k.Hw=function(){};g.v(F0,g.E);g.k=F0.prototype;
g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof m_||b instanceof n_||b instanceof o_||b instanceof p_||b instanceof q_||b instanceof d_||b instanceof i_||b instanceof IZ||b instanceof PZ||b instanceof c_||b instanceof h_))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new C0(a,b,c,d);this.Db.set(b.triggerId,a);b instanceof q_&&this.C.has(b.Dg)&&
pZ(this.i(),[a]);b instanceof m_&&this.u.has(b.Dg)&&pZ(this.i(),[a]);b instanceof i_&&this.l.has(b.le)&&pZ(this.i(),[a])};
g.k.Di=function(a){this.Db.delete(a.triggerId)};
g.k.yh=function(a){this.C.add(a.slotId);for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof q_&&a.slotId===d.trigger.Dg&&b.push(d);0<b.length&&pZ(this.i(),b)};
g.k.hj=function(a){this.C.delete(a.slotId)};
g.k.gj=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof d_&&e.ob===a.ob&&e.i!==a.slotId&&b.push(d)}0<b.length&&pZ(this.i(),b)};
g.k.Bf=function(a){this.u.add(a.slotId);for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof m_&&a.slotId===d.trigger.Dg&&b.push(d);0<b.length&&pZ(this.i(),b)};
g.k.Cf=function(a){this.u.delete(a.slotId);this.B.add(a.slotId);for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof n_)a.slotId===d.trigger.Dg&&b.push(d);else if(d.trigger instanceof h_){var e=d.trigger;a.slotId===e.slotId&&this.l.has(e.le)&&b.push(d)}0<b.length&&pZ(this.i(),b)};
g.k.jk=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof o_&&a.slotId===d.trigger.Dg&&b.push(d);0<b.length&&pZ(this.i(),b)};
g.k.lk=function(a){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof p_&&a.slotId===d.trigger.Dg&&b.push(d);0<b.length&&pZ(this.i(),b)};
g.k.dj=function(a,b){this.G.add(b.layoutId)};
g.k.gk=function(a,b){this.G.delete(b.layoutId)};
g.k.Hc=function(a,b){this.l.add(b.layoutId);for(var c=[],d=g.q(this.Db.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof i_)b.layoutId===e.trigger.le&&c.push(e);else if(e.trigger instanceof c_){var f=e.trigger;a.ob===f.ob&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof h_&&(f=e.trigger,b.layoutId===f.le&&this.B.has(f.slotId)&&c.push(e));0<c.length&&pZ(this.i(),c)};
g.k.Oc=function(a,b,c){this.l.delete(b.layoutId);a=[];for(var d=g.q(this.Db.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof IZ&&b.layoutId===e.trigger.le&&a.push(e),e.trigger instanceof PZ&&b.layoutId===e.trigger.le&&"error"===c&&a.push(e);0<a.length&&pZ(this.i(),a)};
g.k.ai=function(){};
g.k.wh=function(){this.B.clear()};
g.k.ek=function(){};g.v(G0,g.E);G0.prototype.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof pz||b instanceof k_))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d))};
G0.prototype.Di=function(a){this.Db.delete(a.triggerId)};
G0.prototype.wh=function(a,b,c,d){b=[];for(var e=b.push,f=e.apply,h=[],l=g.q(this.Db.values()),m=l.next();!m.done;m=l.next())m=m.value,m.trigger instanceof pz&&m.trigger.zn===a&&h.push(m);f.call(e,b,g.ma(h));b.push.apply(b,g.ma(THa(this.Qa,d,this.Db,a,!1,c)));b.length&&pZ(this.i(),b)};
G0.prototype.ek=function(a){var b=[];b.push.apply(b,g.ma(THa(this.Qa,[],this.Db,a,!0,!1)));b.length&&pZ(this.i(),b)};g.v(H0,g.E);g.k=H0.prototype;
g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof YZ)I0(this,a,b,c,d,e,b.i.start,b.i.end,b.zn,b.visible);else if(b instanceof j_)I0(this,a,b,c,d,e,b.i.start,b.i.end,b.zn,!1);else if(b instanceof g_)I0(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.zn,b.visible);else throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Di=function(a){var b=this.Db.get(a.triggerId);b&&this.u.get().removeCueRange(b.Vv);this.Db.delete(a.triggerId)};
g.k.yd=function(a){if(a=UHa(this,a))if(a=this.Db.get(a))if(g.U(D_(this.Fa.get()),32))this.i.add(a.Vv);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;(b instanceof YZ||b instanceof g_)&&pZ(this.l(),[a.bundle])}};
g.k.bf=function(a){if(a=UHa(this,a))if(a=this.Db.get(a))this.i.delete(a.Vv),a.bundle.trigger instanceof j_&&pZ(this.l(),[a.bundle])};
g.k.hk=function(a){if(0>TI(a,16)){a=g.q(this.i);for(var b=a.next();!b.done;b=a.next())this.yd(b.value);this.i.clear()}};
g.k.Yh=function(){};
g.k.Me=function(){};
g.k.jg=function(){};
g.k.aj=function(){};
g.k.Df=function(){};g.v(J0,g.E);g.k=J0.prototype;g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof LZ||b instanceof l_))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d))};
g.k.Di=function(a){this.Db.delete(a.triggerId)};
g.k.tm=function(){};
g.k.Rj=function(){};
g.k.Hc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null!=this.i?R("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
g.k.Oc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(this.i=null)};
g.k.yh=function(){};
g.k.hj=function(){};
g.k.gj=function(){};
g.k.Bf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null!=this.l?R("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.l=a.slotId)};
g.k.Cf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.ob&&(null===this.l?R("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.l=null)};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(){};
g.k.gk=function(){};
g.k.ai=function(){};
g.k.Qv=function(){null!=this.i&&n0(this,this.i)};
g.k.bw=function(a){if(null===this.l){for(var b=[],c=g.q(this.Db.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof l_&&d.trigger.slotId===a&&b.push(d);b.length&&pZ(this.u(),b)}};g.v(K0,g.E);g.k=K0.prototype;g.k.ai=function(a,b){for(var c=[],d=g.q(this.Db.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&&pZ(this.i(),c)};
g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof QGa))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d))};
g.k.Di=function(a){this.Db.delete(a.triggerId)};
g.k.yh=function(){};
g.k.hj=function(){};
g.k.gj=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(){};
g.k.gk=function(){};
g.k.Hc=function(){};
g.k.Oc=function(){};g.v(L0,g.E);L0.prototype.ra=function(){this.B.get().removeListener(this);g.E.prototype.ra.call(this)};M0.prototype.fetch=function(a){var b=a.EG;return this.cm.fetch(a.ZK,{Hs:void 0===a.Hs?void 0:a.Hs,Td:b}).then(function(c){return VHa(c,b)})};g.v(N0,g.E);g.k=N0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.onAdUxClicked=function(a,b){O0(this,function(c){c.xf(a,b)})};
g.k.jC=function(a){O0(this,function(b){b.vB(a)})};
g.k.iC=function(a){O0(this,function(b){b.uB(a)})};
g.k.BQ=function(a){O0(this,function(b){b.Hw(a)})};R0.prototype.addListener=function(a){this.listeners.push(a)};
R0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=YHa.prototype;g.k.rd=function(){return this.slot};
g.k.Sb=function(){return this.layout};
g.k.init=function(){var a;this.l.get().addListener(this);this.u.get().addListener(this);this.Fa.get().addListener(this);this.B.forEach(function(f){f.init()});
var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=X(this.layout.Ia,"metadata_type_layout_exit_ms"),d=null===(a=this.l.get().uo)||void 0===a?void 0:a.clientPlaybackNonce;H_(this.Xa.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:this.layout.zc.adClientDataEntry}});var e=aIa(this.u.get(),b,c);null!==e&&(H_(this.Xa.get(),{daiStateTrigger:{filledAdsDurationMs:e-b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.zc.adClientDataEntry}}),
this.C.get().ao(e,c))};
g.k.release=function(){this.i=null;this.B.forEach(function(a){a.release()});
this.l.get().removeListener(this);this.u.get().removeListener(this);this.Fa.get().removeListener(this)};
g.k.startRendering=function(){var a;if(this.i)R("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.l.get().uo)||void 0===a?void 0:a.layoutId;$Ha(this,b);this.callback.Hc(this.slot,this.layout);$_(this.G,"ad_placement_start")}};
g.k.Pe=function(a,b){var c,d,e,f;null===(d=null===(c=this.i)||void 0===c?void 0:c.Kh)||void 0===d?void 0:d.Pe(null===(f=null===(e=this.i)||void 0===e?void 0:e.Kh)||void 0===f?void 0:f.Sb(),b);this.i=null;null!==this.driftRecoveryMs&&(S0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(bIa(this)-X(this.layout.Ia,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Fa.get().I.Cm()).toString()}),this.driftRecoveryMs=null);this.callback.Oc(this.slot,
this.layout,b);"normal"!==b?a=!1:(a=this.Fa.get().getCurrentTimeSec(2,!0),b=X(this.layout.Ia,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&$_(this.G,"ad_placement_end")};
g.k.iJ=function(a){a=a.layoutId;var b,c,d;this.i&&(null===(b=this.i.Kh)||void 0===b?void 0:b.Sb().layoutId)!==a&&(null===(c=this.i.Kh)||void 0===c?void 0:c.Pe(null===(d=this.i.Kh)||void 0===d?void 0:d.Sb(),"normal"),$Ha(this,a))};
g.k.cJ=function(){};
g.k.QI=function(a){var b,c=X(this.layout.Ia,"metadata_type_layout_enter_ms"),d=X(this.layout.Ia,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&a<d&&(H_(this.Xa.get(),{daiStateTrigger:{filledAdsDurationMs:a-c,contentCpn:null===(b=this.l.get().uo)||void 0===b?void 0:b.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.zc.adClientDataEntry}}),this.C.get().ao(a,d))};
g.k.Yh=function(){var a=this.Fa.get().getCurrentTimeSec(2,!0);if(this.i){var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=bIa(this),e=this.Fa.get().I.Cm(),f=Math.min(a+e,d/1E3);f<=a?S0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(S0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*
e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Fa.get().I.seekTo(f,void 0,void 0,1))}}};
g.k.hk=function(){};
g.k.Me=function(){};
g.k.jg=function(){};
g.k.aj=function(){};
g.k.Df=function(){};g.k=cIa.prototype;g.k.rd=function(){return this.slot};
g.k.Sb=function(){return this.layout};
g.k.init=function(){X(this.layout.Ia,"metadata_type_player_bytes_callback_ref").current=this;var a=X(this.layout.Ia,"metadata_type_video_length_seconds"),b=X(this.layout.Ia,"metadata_type_player_vars"),c=X(this.layout.Ia,"metadata_type_layout_enter_ms"),d=X(this.layout.Ia,"metadata_type_layout_exit_ms"),e=1E3*a;if(d-c)if(b=this.u.get().hq(b,2,e,c,d,this.slot.slotId)){var f=this.G.get(),h=this.slot.slotId,l=this.layout.layoutId;b?(f.i.has(b)&&R("Unexpected remap of timeline playback"),f.i.set(b,{slotId:h,
layoutId:l})):R("Invalid timeline playback ID");c+e>d&&(c=d-c,this.u.get().Cr(b,c))}else c=this.slot,d=this.layout,e=Object,b=e.assign,f=Object.assign({},T0(this.layout)),h=X(this.slot.Ia,"metadata_type_fulfilled_layout"),h=Object.assign(Object.assign({},T0(h)),{adPlacementConfig:X(h.Ia,"metadata_type_ad_placement_config"),subLayouts:X(h.Ia,"metadata_type_sub_layouts").map(T0)}),R("Unexpected failure to add to playback timeline",c,d,b.call(e,f,{compositeLayout:h}));else this.u.get().Ft(b,2,e,c,d,
this.slot.slotId);this.Fa.get().addListener(this);dHa(this.B.get(),this.layout.layoutId,a,this);nZ(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Fa.get().removeListener(this);eHa(this.B.get(),this.layout.layoutId)};
g.k.startRendering=function(){if(this.l)R("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.l={Xw:null,eK:!1};var a=X(this.layout.Ia,"metadata_type_sodar_extension_data");if(a)try{qHa(this.C.get(),a)}catch(b){R("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}$_(this.i,"start");A_(this.Qa.get())&&(a=D_(this.Fa.get()),a=new g.SI(a,new g.BK),eIa(this,this.l,a));oZ(this.callback,this.slot,this.layout)}};
g.k.Pe=function(a,b){this.l?(A_(this.Qa.get())&&dIa(this,null,this.l),this.l=null,lK(this.callback,this.slot,this.layout,b)):R("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.Tt=function(){};
g.k.Gw=function(){};
g.k.Yh=function(a){if(this.l){if(this.i.i.has("impression")){var b=D_(this.Fa.get());fIa(this,b,a,this.l.Xw)}this.l.Xw=a}};
g.k.hk=function(a){this.l&&(A_(this.Qa.get())||this.l.eK||(this.l.eK=!0,a=new g.SI(a.state,new g.BK)),eIa(this,this.l,a))};
g.k.Me=function(a){this.i.i.has("impression")&&this.i.Ge(a?"fullscreen":"end_fullscreen")};
g.k.jg=function(){};
g.k.aj=function(){};
g.k.fu=function(){};
g.k.Df=function(){};
g.k.Hc=function(){};
g.k.Oc=function(){};
g.k.kp=function(){};
g.k.vp=function(){};
g.k.RC=function(){this.i.i.has("impression")&&this.i.Ge("clickthrough")};
g.k.zx=function(){this.i.Ge("active_view_measurable")};
g.k.yx=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Ge("active_view_fully_viewable_audible_half_duration")};
g.k.Ax=function(){this.i.i.has("impression")&&!this.i.i.has("seek")&&this.i.Ge("active_view_viewable")};U0.prototype.He=function(a,b,c,d){if(c.Ia.i.has("metadata_type_dai")){a:{var e=X(d.Ia,"metadata_type_sub_layouts"),f=X(d.Ia,"metadata_type_ad_placement_config");if(V_(d,{Wd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Af:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==e&&void 0!==f){var h=[];e=g.q(e);for(var l=e.next();!l.done;l=e.next()){l=l.value;var m=X(l.Ia,"metadata_type_media_sub_layout_index");if(!V_(l,{Wd:["metadata_type_video_length_seconds",
"metadata_type_player_vars","metadata_type_layout_enter_ms","metadata_type_layout_exit_ms","metadata_type_player_bytes_callback_ref"],Af:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new X_(l.Bc,this.Xa,f,l.layoutId,m);h.push(new cIa(b,c,l,this.u,m,this.Fa,this.X,this.i,this.B,this.Qa))}b=new X_(d.Bc,this.Xa,f,d.layoutId);a=new YHa(a,c,d,this.l,this.u,this.J,this.Fa,b,this.Xa,h)}else a=null}if(a)return a}else if(a=KHa(a,b,c,d,this.xe,this.Y,this.Xa,this.i,this.B,this.qd,this.l,this.Fa,this.K,
this.kd,this.Cc,this.C,this.G,this.U,this.Qa))return a;throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.v(V0,g.E);g.k=V0.prototype;g.k.cJ=function(a){this.i&&gIa(this,this.i,a)};
g.k.QI=function(){};
g.k.wh=function(a){this.i&&this.i.contentCpn!==a&&(R("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)};
g.k.ek=function(a){this.i&&this.i.contentCpn!==a&&R("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn},!0);this.i=null};
g.k.ra=function(){g.E.prototype.ra.call(this);this.i=null};g.v(W0,g.E);W0.prototype.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof TZ))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d))};
W0.prototype.Di=function(a){this.Db.delete(a.triggerId)};g.v(Y0,g.E);
Y0.prototype.di=function(a,b,c,d){if(this.l.has(b.triggerId)||this.u.has(b.triggerId))throw new rZ("Tried to re-register the trigger.");a=new C0(a,b,c,d);if(a.trigger instanceof UGa)this.l.set(a.trigger.triggerId,a);else if(a.trigger instanceof PGa)this.u.set(a.trigger.triggerId,a);else throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.l.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&pZ(this.B(),[a])};
Y0.prototype.Di=function(a){this.l.delete(a.triggerId);this.u.delete(a.triggerId)};
Y0.prototype.iJ=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.ma(hIa(this.u,this.i)));null!=a&&b.push.apply(b,g.ma(hIa(this.l,a)));this.i=a;b.length&&pZ(this.B(),b)}};g.v(Z0,g.E);g.k=Z0.prototype;g.k.wh=function(){this.u=new qK(this,bHa(this.Qa.get()));this.l=new rK;iIa(this)};
g.k.ek=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.xC=function(a){this.zy.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.cJ(a)};
g.k.SI=function(a){g.Bb(this.l.i,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.QI(a)};
g.k.pC=function(a){var b=mz(this.B.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.q(a);for(var e=a.next();!e.done;e=a.next())e=e.value,(b||B_(this.Qa.get()))&&H_(this.Xa.get(),{cuepointTrigger:{event:jIa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.i.add(e),b?this.u.reduce(e):B_(this.Qa.get())&&0!==this.I.getCurrentTime(1)&&"start"===e.event&&this.xC(e)};
g.k.ra=function(){this.I.getVideoData(1).unsubscribe("cuepointupdated",this.pC,this);this.listeners.length=0;this.i.clear();this.zy.length=0;g.E.prototype.ra.call(this)};g.k=$0.prototype;g.k.hq=function(a,b,c,d,e,f){return this.I.hq(a,b,c,d,e,f)};
g.k.ao=function(a,b){this.I.ao(a,b)};
g.k.Cr=function(a,b,c){this.I.Cr(a,b,c)};
g.k.gp=function(a){this.I.gp(a)};
g.k.Ft=function(a,b,c,d,e,f){this.I.Ft(a,b,c,d,e,f)};a1.prototype.addListener=function(a){this.listeners.add(a)};
a1.prototype.removeListener=function(a){this.listeners.delete(a)};g.v(kIa,QI);g.v(b1,b0);g.k=b1.prototype;g.k.xf=function(a,b){d0("image-companion",a,this.G.get().xi,this.Xa.get(),this.u,this.B,this.rd(),this.Sb(),b)};
g.k.startRendering=function(a){c0(this.C,this.rd(),this.Sb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new kIa(b,c,d,e,f)},this.i);
b0.prototype.startRendering.call(this,a)};
g.k.Hc=function(a,b){b.layoutId===this.layout.layoutId?$_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Xa.get().lh():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.yh=function(){};
g.k.hj=function(){};
g.k.gj=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(){};
g.k.gk=function(){};
g.k.ai=function(){};
g.k.ra=function(){this.xe().Ed.delete(this);b0.prototype.ra.call(this)};g.v(mIa,QI);g.v(c1,b0);g.k=c1.prototype;g.k.xf=function(a,b){d0("shopping-companion",a,this.G.get().xi,this.Xa.get(),this.u,this.B,this.rd(),this.Sb(),b)};
g.k.startRendering=function(a){c0(this.C,this.rd(),this.Sb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new mIa(b,c,d,e,f)},this.i);
b0.prototype.startRendering.call(this,a)};
g.k.Hc=function(a,b){b.layoutId===this.layout.layoutId?$_(this.C,"impression"):this.B===b.layoutId&&(null===this.u?this.u=this.Xa.get().lh():R("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.yh=function(){};
g.k.hj=function(){};
g.k.gj=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(){};
g.k.gk=function(){};
g.k.ai=function(){};
g.k.ra=function(){this.xe().Ed.delete(this);b0.prototype.ra.call(this)};oIa.prototype.He=function(a,b,c,d){if(V_(d,zHa()))return new e0(a,c,d,this.i,this.Xa,this.xe,this.u,this.l);if(V_(d,lIa()))return new b1(a,c,d,this.i,this.Xa,this.xe,this.u,this.l);if(V_(d,nIa()))return new c1(a,c,d,this.i,this.Xa,this.xe,this.u,this.l);throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.v(d1,b0);d1.prototype.startRendering=function(a){var b=Z_(this.u),c={adsClientData:this.layout.zc};this.i.push(new fK(X(this.layout.Ia,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Sb().layoutId,c,!0,!0));b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a)};
d1.prototype.xf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.fu(this.slot,this.layout):R("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
d1.prototype.ra=function(){b0.prototype.ra.call(this)};var f1=new g.Sf(320,63);g.v(i1,QI);g.v(j1,b0);g.k=j1.prototype;g.k.Yh=function(){};
g.k.hk=function(){};
g.k.Me=function(){};
g.k.jg=function(a){a&&X0(this.u,this.layout)};
g.k.aj=function(a){var b=h1(this.layout);if(this.C=g1(a,nHa(this.Fa.get())))b.onErrorCommand&&this.G.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X0(this.u,this.layout)};
g.k.Df=function(){};
g.k.gt=function(){return this.Sb().layoutId};
g.k.aB=function(){return this.C};
g.k.xf=function(a){this.B.xf(a);"in_video_overlay_close_button"===a&&X0(this.u,this.layout)};
g.k.Hw=function(a){"invideo-overlay"===a&&X0(this.u,this.layout)};
g.k.Dl=function(){this.B.Dl()};
g.k.startRendering=function(a){b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a);this.Cd.Nn=this};
g.k.Pe=function(a,b){b0.prototype.Pe.call(this,a,b);P1(this.Cd,this)};
g.k.init=function(){b0.prototype.init.call(this);I_(this.Xa.get(),this);this.Fa.get().addListener(this);this.i.push(new i1(h1(this.layout),Z_(this.J),this.layout.layoutId,{adsClientData:this.layout.zc}))};
g.k.release=function(){b0.prototype.release.call(this);this.Fa.get().removeListener(this);J_(this.Xa.get(),this)};g.v(k1,b0);g.k=k1.prototype;g.k.init=function(){b0.prototype.init.call(this);I_(this.Xa.get(),this);this.Fa.get().addListener(this);this.i.push(new i1(h1(this.layout),Z_(this.K),this.layout.layoutId,{adsClientData:this.layout.zc}))};
g.k.Dl=function(){this.B.Dl()};
g.k.startRendering=function(a){b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a);this.Cd.Nn=this};
g.k.Pe=function(a,b){b0.prototype.Pe.call(this,a,b);P1(this.Cd,this)};
g.k.xf=function(a){this.B.xf(a);"in_video_overlay_close_button"===a&&X0(this.u,this.layout)};
g.k.vB=function(a){if("invideo-overlay"===a){a=tIa(this.G,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.Hw=function(a){"invideo-overlay"===a&&X0(this.u,this.layout)};
g.k.uB=function(a){if("invideo-overlay"===a){a=tIa(this.G,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Yh=function(){};
g.k.hk=function(){};
g.k.Me=function(){};
g.k.jg=function(a){a&&X0(this.u,this.layout)};
g.k.aj=function(a){var b=h1(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=nHa(this.Fa.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&0!=c.thumbnails.length&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Sf(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Sf(0,0)}if(this.C=g1(a,d,c))b.onErrorCommand&&this.J.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X0(this.u,this.layout)};
g.k.Df=function(){};
g.k.gt=function(){return this.Sb().layoutId};
g.k.aB=function(){return this.C};
g.k.release=function(){b0.prototype.release.call(this);this.Fa.get().removeListener(this);J_(this.Xa.get(),this)};l1.prototype.xf=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Fa.get().wl(1))||this.Fa.get().pauseVideo())};
l1.prototype.Dl=function(){this.i||this.Fa.get().resumeVideo(1)};g.v(m1,b0);g.k=m1.prototype;g.k.init=function(){b0.prototype.init.call(this);this.Fa.get().addListener(this)};
g.k.startRendering=function(a){var b=X(this.layout.Ia,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new dK(b,this.layout.layoutId,{adsClientData:this.layout.zc},!0,!0));b0.prototype.startRendering.call(this,a);this.callback.Hc(this.slot,a)};
g.k.Hc=function(){};
g.k.xf=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.kp(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.vp(this.slot,this.layout):R("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.aj=function(a){450>a.width&&X0(this.u,this.layout)};
g.k.Df=function(){};
g.k.Yh=function(){};
g.k.Me=function(){};
g.k.jg=function(){};
g.k.hk=function(){};
g.k.ra=function(){b0.prototype.ra.call(this)};
g.k.release=function(){b0.prototype.release.call(this);this.Fa.get().removeListener(this)};sIa.prototype.He=function(a,b,c,d){if(b=h0(a,c,d,this.i,this.Fa,this.Xa,this.G,this.Cd))return b;if(V_(d,rIa()))return new k1(c,d,this.Xa,this.B,this.i,a,this.l,this.C,this.Fa,this.u,this.Qa,this.Cd,new l1(this.Fa));if(V_(d,qIa()))return new j1(c,d,this.Xa,this.B,this.i,a,this.l,this.Fa,this.u,this.Qa,this.Cd,new l1(this.Fa));if(V_(d,{Wd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Af:["LAYOUT_TYPE_SURVEY"]}))return new m1(c,d,a,this.i,this.l,this.Fa);if(V_(d,{Wd:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Af:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new d1(c,d,a,this.i,this.Xa);throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(n1,g.E);g.k=n1.prototype;g.k.di=function(a,b,c,d){if(this.Db.has(b.triggerId))throw new rZ("Tried to register duplicate trigger for slot.");if(!(b instanceof OZ))throw new rZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Db.set(b.triggerId,new C0(a,b,c,d));a=this.i.has(b.le)?this.i.get(b.le):new Set;a.add(b);this.i.set(b.le,a)};
g.k.Di=function(a){this.Db.delete(a.triggerId);if(!(a instanceof OZ))throw new rZ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.l.get(a.triggerId);b&&(b.dispose(),this.l.delete(a.triggerId));if(b=this.i.get(a.le))b.delete(a),0===b.size&&this.i.delete(a.le)};
g.k.yh=function(){};
g.k.hj=function(){};
g.k.gj=function(){};
g.k.Bf=function(){};
g.k.Cf=function(){};
g.k.jk=function(){};
g.k.lk=function(){};
g.k.dj=function(){};
g.k.gk=function(){};
g.k.ai=function(){};
g.k.Hc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.q(b);for(var d=b.next();!d.done;a={Gr:a.Gr},d=b.next())a.Gr=d.value,d=new g.J(function(e){return function(){var f=c.Db.get(e.Gr.triggerId);pZ(c.u(),[f])}}(a),a.Gr.durationMs),d.start(),this.l.set(a.Gr.triggerId,d)}};
g.k.Oc=function(){};g.v(o1,g.E);o1.prototype.ra=function(){this.B.get().removeListener(this);g.E.prototype.ra.call(this)};g.v(uIa,g.E);vIa.prototype.He=function(a,b,c,d){if(b=h0(a,c,d,this.i,this.Fa,this.Xa,this.G,this.Cd))return b;if(V_(d,rIa()))return new k1(c,d,this.Xa,this.B,this.i,a,this.l,this.C,this.Fa,this.u,this.Qa,this.Cd,new l1(this.Fa));if(V_(d,qIa()))return new j1(c,d,this.Xa,this.B,this.i,a,this.l,this.Fa,this.u,this.Qa,this.Cd,new l1(this.Fa));throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(wIa,g.E);g.v(xIa,g.E);g.v(yIa,g.E);g.v(q1,g0);q1.prototype.startRendering=function(a){g0.prototype.startRendering.call(this,a);X(this.layout.Ia,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ia,"metadata_type_ad_info_ad_metadata"),this.G.get().I.Na("onAdMetadataAvailable",a))};AIa.prototype.He=function(a,b,c,d){if(V_(d,zIa()))return new q1(a,c,d,this.l,this.Fa,this.Xa,this.u,this.i,this.Cd);throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(BIa,g.E);CIa.prototype.He=function(a,b,c,d){if(z_(this.Qa.get())&&V_(d,zIa()))return new q1(a,c,d,this.i,this.Fa,this.Xa,this.l,this.u,this.Cd);if(a=h0(a,c,d,this.i,this.Fa,this.Xa,this.l,this.Cd))return a;throw new jZ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XY(d.Ia)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(DIa,g.E);g.v(r1,g.E);r1.prototype.u=function(){return this.l};s1.prototype.bw=function(a){this.Lj.bw(a)};
s1.prototype.Qv=function(){try{this.Lj.Qv()}catch(a){}};
s1.prototype.tm=function(){this.i().tm()};
s1.prototype.Rj=function(){this.i().Rj()};g.v(t1,WL);
t1.prototype.u=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:this.i.Na("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);
this.i.Na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Na("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Na("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.l,interactionLoggingClientData:b.i});break;case 3:b=this.i.getVideoData(1),this.i.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Na("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Na("updateEngagementPanelAction",b.addAction);this.i.Na("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.i.Na("changeEngagementPanelVisibility",b.hideAction),this.i.Na("updateEngagementPanelAction",b.removeAction)}};g.v(u1,cM);g.k=u1.prototype;g.k.init=function(a,b,c){cM.prototype.init.call(this,a,b,c);g.zl(this.B,"stroke-dasharray","0 "+this.u);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){eM(this);cM.prototype.hide.call(this)};
g.k.show=function(){dM(this);cM.prototype.show.call(this)};
g.k.pp=function(){this.hide()};
g.k.fn=function(){if(this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&g.zl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.v(v1,yL);g.k=v1.prototype;
g.k.init=function(a,b,c){yL.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.Tx(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=
e&&0<e.length&&g.rc(g.rd(e[0].url))&&(e[0].url=d.rg);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.rc(g.rd(e[0].url))&&(e[0].url=d.Ke());e=b.headline;null!=e&&g.rc(g.rd(e.text))&&(e.text=d.author)}this.C.init(PI("ad-image"),b.image,c);this.X.init(PI("ad-text"),b.headline,c);this.K.init(PI("ad-text"),b.description,c);this.G.init(PI("ad-image"),b.backgroundImage,c);this.actionButton=new ML(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-action-interstitial-action-button"]);g.F(this,
this.actionButton);this.actionButton.ya(this.Ga);this.actionButton.init(PI("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.T().i||(this.B.N(this.Da,"click",this.UA,this),this.B.N(this.Aa,"click",this.UA,this),this.B.N(this.xa,"click",this.UA,this));this.l=this.Zg?new rM(this.api,a):new sM(a);g.F(this,this.l);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.l&&(this.skipButton=new mM(this.api,this.Ta,this.layoutId,this.i,this.l,this.wi),g.F(this,
this.skipButton),this.skipButton.ya(this.element),this.skipButton.init(PI("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.l&&(this.u=new hM(this.api,this.Ta,this.layoutId,this.i,this.l,!1),g.F(this,this.u),this.u.ya(this.element),this.u.init(PI("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.l&&(c=new u1(this.api,this.Ta,this.layoutId,this.i,this.l),g.F(this,c),c.ya(this.element),c.init(PI("timed-pie-countdown"),
b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.Tx(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Tx(Error("AdActionInterstitialRenderer has no button."));else g.Tx(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Tx(Error("AdActionInterstitialRenderer has no description AdText."));else g.Tx(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Tx(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.ox(this.B);this.hide()};
g.k.show=function(){FIa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();yL.prototype.show.call(this)};
g.k.hide=function(){FIa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();yL.prototype.hide.call(this)};
g.k.UA=function(){this.navigationEndpoint&&this.Ta.executeCommand(this.navigationEndpoint,this.macros)};var x1={iconType:"CLOSE"},B1=new g.Sf(320,63);g.v(w1,yL);g.k=w1.prototype;
g.k.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);this.C=b;this.K=g.rb(this.C.onClickCommands||[]);this.Da=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.G=g.cg("ytp-ad-overlay-ad-info-button-container",this.B.element),z1(this,b),a=KIa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.G=g.cg("ytp-ad-overlay-ad-info-button-container",this.u.element),
z1(this,b),a=LIa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.G=g.cg("ytp-ad-overlay-ad-info-button-container",this.l.element),z1(this,b),a=MIa(this,a.imageOverlayAdContentRenderer)):(g.Tx(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),NIa(this,!0))};
g.k.clear=function(){NIa(this,!1);this.Aa.reset();this.X=0;this.B.hide();this.ib(this.B.element,!1);this.u.hide();this.ib(this.u.element,!1);this.l.hide();this.ib(this.l.element,!1);this.hide();this.dispose()};
g.k.lT=function(){this.Pa&&this.Ta.executeCommand(this.Pa,this.macros);this.api.pauseVideo()};
g.k.Zh=function(){var a=this;JIa(this).forEach(function(b){return a.Ta.executeCommand(b,a.macros)});
this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.uQ=function(){this.Ga||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.wC=function(){this.Ga||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.wC("invideo-overlay")};
g.k.vQ=function(a){a.target===this.G&&g.cg("ytp-ad-button",this.Va.element).click()};g.v(C1,cM);g.k=C1.prototype;g.k.init=function(a,b,c){cM.prototype.init.call(this,a,b,c);a=b.durationMs;this.B=null==a||0===a?0:a+1E3*this.l.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(PI("ad-text"),d,c);this.messageText.ya(this.u.element);this.G.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){OIa(this,!1);cM.prototype.hide.call(this);this.u.hide();this.messageText.hide();eM(this)};
g.k.show=function(){OIa(this,!0);cM.prototype.show.call(this);dM(this);this.u.show();this.messageText.show()};
g.k.pp=function(){this.hide()};
g.k.fn=function(){if(null!=this.l){var a=this.l.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.K&&a>=this.B?(this.G.hide(),this.K=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.X&&(bM(this.messageText,{TIME_REMAINING:String(a)}),this.X=a)))}};g.v(D1,yL);
D1.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new ML(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.ya(this.answer),a.init(PI("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.l=new UL(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button"]),this.l.ya(this.answer),
g.F(this,this.l),this.l.init(PI("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
D1.prototype.clear=function(){this.hide()};g.v(E1,yL);E1.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new UL(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.ya(this.l),this.button.init(PI("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.v(F1,ML);F1.prototype.init=function(a,b,c){ML.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Pz(b.text),a=!g.rc(b));a||g.Ux(Error("No submit text was present in the renderer."))};
F1.prototype.onClick=function(a){this.W("l");ML.prototype.onClick.call(this,a)};g.v(G1,yL);
G1.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new nM(this.api,this.Ta,this.layoutId,this.i,this.B,this.wi),c.ya(this.G),c.init(PI("skip-button"),a,this.macros),g.F(this,c),this.l=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new hM(this.api,this.Ta,this.layoutId,this.i,this.B,!1),c.ya(this.G),c.init(PI("ad-preview"),a,this.macros),iM(c),g.F(this,c),this.l=c);null==this.l&&g.Tx(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new F1(this.api,this.Ta,this.layoutId,this.i),c.ya(this.submitButton),c.init(PI("survey-submit"),a,this.macros),g.F(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new qM(this.api,this.Ta,this.layoutId,this.i,!0),c.ya(this.C),c.init(PI("simple-ad-badge"),a,this.macros),g.F(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new vM(this.api,this.Ta,this.layoutId,this.i,this.B,void 0),c.ya(this.C),
c.init(PI("ad-duration-remaining"),a,this.macros),g.F(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new $L(this.api,this.Ta,this.layoutId,this.i,this.element),g.F(this,a),a.ya(this.C),a.init(PI("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
G1.prototype.clear=function(){this.hide()};g.v(H1,yL);H1.prototype.init=function(a,b,c){yL.prototype.init.call(this,a,b,c);SIa(this)};
H1.prototype.show=function(){this.B=g.Sa();yL.prototype.show.call(this)};
H1.prototype.VJ=function(){};g.v(I1,H1);g.k=I1.prototype;g.k.init=function(a,b,c){var d=this;H1.prototype.init.call(this,a,b,c);b.questionText&&g.ug(this.questionText,g.Pz(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&PIa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.G=new Set(this.u.map(function(e){return e.l.l}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&TIa(this,a,c);b.surveyAdQuestionCommon&&RIa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()};
g.k.VJ=function(){J1(this,!1);this.C.u.subscribe("l",this.jT,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.l?UIa(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),J1(this,!0))};
g.k.jT=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.l&&e.l.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.Wb(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=ui(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Ta.executeCommand(d,a.macros)})};
g.k.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(K1,H1);K1.prototype.init=function(a,b,c){var d=this;H1.prototype.init.call(this,a,b,c);b.questionText&&g.ug(this.questionText,g.Pz(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&PIa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?RIa(this,b.surveyAdQuestionCommon):g.Tx(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
K1.prototype.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.v(L1,yL);
L1.prototype.init=function(a,b,c){var d=this;yL.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new K1(d.api,d.Ta,d.layoutId,d.i,d.Zg,d.wi);f.ya(d.l);f.init(PI("survey-question-single-select"),e,c);d.questions.push(f);g.F(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new I1(d.api,d.Ta,d.layoutId,d.i,d.Zg,d.wi),
f.ya(d.l),f.init(PI("survey-question-multi-select"),e,c),d.questions.push(f),g.F(d,f))});
this.show()};
L1.prototype.clear=function(){g.S(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.v(M1,yL);
M1.prototype.init=function(a,b,c){var d=this;yL.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.Tx(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){WIa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
WIa(this.logoImage,b.brandImage);g.ug(this.text,g.Pz(b.text));this.actionButton=new ML(this.api,this.Ta,this.layoutId,this.i,["ytp-ad-survey-interstitial-action-button"]);g.F(this,this.actionButton);this.actionButton.ya(this.u);this.actionButton.init(PI("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands,f=g.S(this.api.T().experiments,"html5_use_normal_timer_for_survey");this.l=this.Zg?new rM(this.api,1E3*a):new sM(1E3*a,void 0,f);this.l.subscribe("g",function(){d.transition.hide();
if(!d.Zg){for(var h=g.q(e),l=h.next();!l.done;l=h.next())d.Ta.executeCommand(l.value,c);d.Ta.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}});
g.F(this,this.l);this.N(this.element,"click",function(h){var l=b.dismissCommands,m=h.target===d.interstitial;h=d.actionButton.element.contains(h.target);if(m||h)if(d.transition.hide(),m)if(d.jD)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.q(l),m=l.next();!m.done;m=l.next())d.Ta.executeCommand(m.value,d.macros)});
this.transition.show(100);if(!this.Zg&&b.impressionCommands)for(a=g.q(b.impressionCommands),f=a.next();!f.done;f=a.next())this.Ta.executeCommand(f.value,c)}else g.Tx(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Tx(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Tx(Error("SurveyTextInterstitialRenderer has no button."));else g.Tx(Error("SurveyTextInterstitialRenderer has no text."));else g.Tx(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
M1.prototype.clear=function(){this.hide()};
M1.prototype.show=function(){XIa(!0);yL.prototype.show.call(this)};
M1.prototype.hide=function(){XIa(!1);yL.prototype.hide.call(this)};var YKa="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(N1,WL);
N1.prototype.u=function(a){var b=a.id,c=a.content,d=c.componentType;if(!YKa.includes(d))switch(a.actionType){case 1:a=this.C();var e=this.api,f=c.layoutId,h=c.i,l=c instanceof YI||c instanceof dK||c instanceof fK?c.Zg:!1,m=c instanceof YI||c instanceof jK||c instanceof dK?c.wi:!1,n=c instanceof fK?c.jD:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;n=void 0===n?!1:n;switch(d){case "invideo-overlay":a=new w1(e,a,f,h);break;case "player-overlay":a=new CM(e,a,f,h,new sO(e),m);break;case "survey":a=
new L1(e,a,f,h,l,m);break;case "ad-action-interstitial":a=new v1(e,a,f,h,l,m);break;case "survey-interstitial":a=new M1(e,a,f,h,l,n);break;case "ad-message":a=new C1(e,a,f,h,new sO(e,1));break;default:a=null}if(!a){g.Ux(Error("No UI component returned from ComponentFactory for type: "+d));break}Nb(this.l,b)?g.Ux(Error("Ad UI component already registered: "+b)):this.l[b]=a;a.bind(c);this.B.append(a.dK);break;case 2:b=YIa(this,a);if(null==b)break;b.bind(c);break;case 3:c=YIa(this,a),null!=c&&(g.ef(c),
Nb(this.l,b)?(c=this.l,b in c&&delete c[b]):g.Ux(Error("Ad UI component does not exist: "+b)))}};
N1.prototype.ra=function(){g.ff(Object.values(this.l));this.l={};WL.prototype.ra.call(this)};g.v(O1,g.zN);g.k=O1.prototype;g.k.create=function(){this.load();this.created=!0};
g.k.load=function(){g.zN.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.i.i.pe.kh,b=this.u(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(m){return m.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.Sh()||!1;f=bJa(f,a,e,h);h=c&&c.clientPlaybackNonce||"";c=c&&c.Xn||!1;var l=1E3*this.player.getDuration(1);pL(a,f.nk)?(this.Ta=new mL(this,this,this.player,this.cm,b,this.i.i.pe),pqa(this.Ta,f.Wn,f.nk),this.i.i.El.wh(h,l,c,f.nk,f.nk.concat(f.Wn),e,d),nL(this.Ta,f.nk)):(this.i.i.El.wh(h,l,c,f.nk,f.nk.concat(f.Wn),e,d),this.Ta=new mL(this,this,this.player,this.cm,b,this.i.i.pe),pqa(this.Ta,f.Wn,f.nk))};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.El.ek(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.zN.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.Ta){var a=this.Ta;this.Ta=null;a.dispose()}null!=this.l&&(a=this.l,this.l=null,a.dispose());this.cm.reset()};
g.k.ri=function(){return!1};
g.k.kD=function(){return null===this.Ta?!1:this.Ta.kD()};
g.k.fk=function(a){null!==this.Ta&&this.Ta.fk(a)};
g.k.getAdState=function(){return this.Ta?this.Ta.Mw:-1};
g.k.getOptions=function(){return Object.values(XKa)};
g.k.Se=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=vI(this.player),Object.assign(b,a.y7),this.Ta&&!b.AD_CPN&&(b.AD_CPN=this.Ta.nw()),a=g.yq(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b<a.length;b++){var c=a[b];if(c.adPlacementRenderer&&c.adPlacementRenderer.renderer&&c.adPlacementRenderer.renderer.plaShelfRenderer){a=!1;break a}}a=!0}else a=!1;return a;case "onAboutThisAdPopupClosed":this.Dl(b);
break;default:return null}};
g.k.Dl=function(a){a.isMuted&&jqa(this.Ta,this.i.i.pe.Pg,this.i.i.pe.Xh,a.layoutId);this.Nn&&this.Nn.Dl()};
g.k.Rm=function(){return null===this.Ta?!1:this.Ta.Rm()};g.KN.ad=O1;var dJa=g.fe&&cJa();g.v(g.R1,g.V);g.R1.prototype.onClick=function(){this.I.Na("onExpandMiniplayer")};})(_yt_player);
