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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ha,ia,ka,oa,pa,qa,sa,ta,ua,baa,caa,wa,daa,xa,ya,za,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ma,Ka,Pa,Qa,gaa,haa,Ya,Za,$a,iaa,jaa,kaa,ab,laa,db,eb,maa,naa,pb,oaa,vb,wb,paa,Bb,yb,qaa,zb,raa,saa,taa,Lb,Nb,Ob,Sb,Ub,Vb,cc,ec,ic,jc,mc,nc,waa,oc,pc,qc,zc,Ac,Cc,Hc,Nc,Oc,Sc,Qc,Aaa,Daa,Eaa,Faa,Wc,Yc,$c,Zc,bd,ed,Gaa,Haa,dd,Iaa,kd,ld,md,qd,sd,td,Laa,ud,vd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Gd,Kd,Md,Nd,Pd,Qd,Rd,Naa,Sd,Td,Ud,Vd,Xd,Yd,ee,ge,je,pe,qe,ve,we,ze,xe,Be,De,Ce,Saa,ne,Qe,Oe,Pe,Se,Re,ke,Te,Uaa,Ye,$e,Xe,bf,cf,df,ef,ff,jf,kf,
lf,Vaa,sf,of,Ef,Waa,If,Kf,Mf,Xaa,Nf,Pf,Qf,Rf,Sf,Tf,Uf,Vf,Wf,Xf,$f,Zf,ag,bg,$aa,bba,cba,eba,gg,hg,jg,fba,lg,og,tg,ug,xg,gba,Ag,zg,Bg,hba,Jg,Kg,Lg,iba,Mg,Ng,Og,Pg,Qg,Rg,Sg,jba,Tg,Ug,Vg,kba,lba,Wg,Yg,Xg,$g,ah,dh,bh,nba,ch,eh,fh,hh,gh,oba,ih,qba,pba,rba,lh,sba,nh,oh,ph,mh,qh,tba,rh,uba,uh,wba,vh,wh,xh,xba,zh,Eh,Hh,Kh,Mh,Jh,Ih,Nh,yba,Oh,Ph,Qh,Rh,Aba,Wh,Xh,Cba,Yh,Zh,$h,ai,bi,Dba,di,ei,fi,gi,ii,hi,Eba,Fba,Gba,ji,ki,li,mi,oi,pi,qi,ri,si,ni,ti,ui,vi,wi,Hba,Iba,xi,yi,Jba,zi,Ai,Kba,Hi,Lba,Ii,Ji,Ki,Mba,Li,Mi,
Oi,Qi,Ri,Si,Ti,Ui,Ni,Pi,Oba,Vi,Wi,Xi,Yi,Zi,$i,Sba,Tba,Uba,aj,cj,Vba,Wba,Xba,ej,fj,Yba,gj,Zba,$ba,hj,ij,jj,aca,lj,mj,nj,oj,pj,qj,rj,sj,tj,uj,bca,cca,vj,dca,xj,wj,Aj,Bj,zj,eca,ica,hca,Dj,jca,kca,lca,nca,mca,oca,Ej,Gj,Ij,Jj,Kj,qca,Mj,Nj,rca,sca,Oj,Pj,Qj,Rj,tca,Sj,Tj,vca,Uj,wca,Vj,Wj,Yj,Zj,ck,dk,ek,gk,hk,ik,kk,mk,nk,Xj,ok,qk,pk,rk,sk,uk,yca,vk,xca,wk,zca,xk,Aca,Bca,zk,Bk,Ck,Dk,Ek,Ak,Hk,Ik,Fk,Cca,Eca,Fca,Kk,Lk,Mk,Nk,Gca,Ok,Pk,Qk,Rk,Sk,Tk,Uk,Vk,Yk,Xk,Ica,Jca,Zk,al,Wk,$k,Hca,bl,cl,Lca,Mca,Nca,Oca,gl,hl,
il,Pca,dl,jl,kl,Kca,Qca,Rca,Sca,nl,ll,ol,ql,Xca,Tca,ul,vl,wl,xl,yl,zl,kj,Yca,Al,Bl,Zca,$ca,ada,bda,cda,Dl,El,Fl,Gl,Hl,Il,fda,gda,Jl,Nl,Pl,ida,Ql,Rl,Sl,Tl,Vl,Xl,jda,Ul,cm,dm,$l,gm,fm,lda,Yl,Wl,jm,km,lm,mm,om,nda,pm,qm,oda,vm,xm,zm,Am,Cm,Dm,Em,Gm,pda,Hm,Jm,Lm,Mm,Im,Km,ym,Fm,rda,Pm,Nm,Om,Rm,qda,Qm,Vm,Ym,Xm,cn,dn,fn,uda,en,hn,kn,jn,sda,nn,pn,xda,rn,sn,un,vn,wn,xn,yn,yda,En,Fn,Ada,Gn,Hn,Fda,Bda,On,Kda,Pn,Qn,Mda,Tn,Un,Vn,Wn,Nda,Zn,$n,ao,bo,eo,fo,go,ho,jo,ko,no,oo,po,Qda,Rda,ro,so,wo,to,xo,zo,Ao,yo,Sda,
Do,Ho,Ro,Qo,Vda,Wda,To,Wo,Xo,Yo,Zo,Yda,Zda,fp,gp,hp,$da,mp,np,aea,pp,rp,op,up,xp,wp,vp,zp,Fp,Ep,bea,eea,dea,Qp,Rp,Sp,Tp,Up,Vp,Wp,$p,Yp,aq,bq,cq,fq,eq,fea,hea,hq,iea,lq,kq,kea,mq,nq,lea,rq,mea,nea,pq,oea,tq,pea,yq,zq,Aq,Bq,Cq,qea,Hq,Iq,sea,tea,Jq,Lq,Mq,Kq,Nq,uea,Oq,Pq,Rq,Sq,Qq,vea,Tq,Uq,wea,xea,yea,Xq,Bea,$q,Zq,Dea,Cea,br,ar,Eea,Fea,gr,Jea,jr,kr,Kea,mr,or,qr,pr,sr,tr,ur,wr,vr,Mea,zr,Ar,Br,Cr,Dr,Fr,Hr,Ir,Jr,Gr,Qea,Oea,Kr,Nr,Or,Sea,Lr,Mr,Qr,Sr,Tr,Wr,Ur,Yr,Xr,Zr,Tea,as,bs,ds,Vea,fs,gs,hs,js,Wea,ls,ns,
os,ps,rs,ws,ys,xs,qs,zs,Ds,As,Yea,Zea,Ws,Us,$ea,$s,Zs,bt,Ys,at,ct,dt,et,ft,gt,ht,it,bfa,jt,kt,mt,nt,lt,cfa,ot,pt,rt,ut,dfa,vt,At,xt,tt,Bt,wt,zt,Ct,Dt,Et,efa,Gt,Ht,It,Jt,Pt,ffa,Lt,Rt,Tt,Wt,Vt,Nt,St,Qt,gfa,Xt,Zt,$t,hfa,au,bu,Kt,Mt,Ot,Ut,ifa,cu,du,eu,fu,iu,gu,jfa,ju,ku,lu,mu,nu,kfa,hu,ou,qu,ru,tu,uu,vu,wu,xu,yu,zu,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,Ju,Lu,Ku,Mu,Nu,Ou,Pu,Qu,lfa,mfa,Uu,Vu,Wu,Yu,Zu,av,rfa,bv,cv,dv,ev,gv,hv,iv,jv,fv,tfa,kv,lv,mv,nv,ov,ufa,pv,vfa,wfa,qv,rv,xfa,uv,yfa,tv,vv,xv,yv,zv,Bv,Cv,Dv,Gv,Hv,Iv,
Ev,Mv,pu,Nv,Ov,Pv,Qv,Rv,Kv,Sv,Tv,Vv,Wv,Xv,Yv,$v,bw,cw,dw,ew,fw,gw,zfa,hw,Afa,kw,Bfa,lw,Cfa,mw,Dfa,Efa,Ffa,pw,Gfa,Hfa,Ifa,Jfa,qw,rw,jw,nw,ow,Kfa,Lfa,vw,xw,ww,Mfa,tw,uw,Nfa,Ofa,Pfa,Qfa,Rfa,yw,Sfa,Tfa,Aw,Bw,Ufa,Ew,Kw,Iw,Nw,Fw,Ow,Cw,Pw,Gw,Dw,Mw,Qw,Rw,Sw,Uw,Tw,Vw,Xw,Yw,bx,cx,ax,ex,fx,gx,ix,hx,jx,kx,lx,mx,px,qx,$fa,nx,cga,ox,yx,xx,Ax,tx,zx,rx,aga,dga,Bx,Cx,sx,Yfa,Dx,Ex,Fx,Gx,Hx,Ix,Jx,Kx,Rx,Nx,ega,Tx,Ox,Px,Mx,Qx,Lx,Sx,Xx,Wx,Vx,Zx,$x,ay,by,cy,gga,dy,ey,fy,gy,hy,iy,jy,ly,ky,my,ny,ry,ty,uy,vy,Hy,Jy,Ky,Ny,sy,
py,oy,qy,Oy,Py,Qy,Ry,My,Iy,Ly,Sy,Ty,Uy,Vy,Xy,Wy,Yy,jga,Hw,vx,ux,$y,Jw,az,bz,zw,Zy,cz,dz,fz,ez,lga,gz,hz,jz,kz,lz,mz,oz,nz,pz,qz,rz,sz,tz,mga,uz,nga,oga,sga,tga,pga,qga,rga,vz,wz,uga,vga,xz,xga,zz,Az,Bz,Cz,yga,Dz,zga,Aga,Ez,Fz,Bga,Cga,Dga,Gz,Ega,Kz,Hz,Nz,Fga,Gga,Oz,Hga,Iga,Pz,Qz,Jga,Rz,Sz,Kga,Lga,Mga,Lz,Nga,Tz,Uz,Vz,vka,Pga,Xz,Yz,Wz,Zz,$z,wka,bA,cA,dA,fA,gA,aA,hA,eA,jA,kA,mA,lA,nA,oA,qA,rA,sA,tA,zA,vA,CA,wA,FA,DA,GA,yA,Bka,HA,uA,JA,KA,LA,MA,NA,PA,QA,RA,TA,VA,UA,SA,WA,XA,Cka,YA,$A,aB,bB,hga,cB,Dka,
dB,eB,fB,gB,Eka,iB,jB,hB,kB,lB,mB,nB,oB,Fka,sB,pB,Gka,uB,Hka,vB,Ika,Jka,S,wB,xB,yB,zB,AB,ZB,$B,cC,dC,LB,QB,BB,UB,TB,XB,gC,iC,kC,oC,IB,HB,qC,SB,sC,tC,uC,vC,wC,yC,zC,AC,BC,Rka,Ska,Tka,CC,DC,FC,GC,HC,IC,JC,KC,EC,LC,Uka,NC,Xka,Yka,QC,PC,Wka,Vka,OC,RC,Zka,bla,dla,ela,XC,YC,fla,ZC,gla,TC,$C,aD,SC,$ka,cD,UC,VC,ala,dD,WC,hla,ila,jla,eD,fD,kla,gD,hD,lla,iD,mla,mD,jD,lD,kD,pD,ola,pla,qla,uD,rla,tD,vD,wD,xD,yD,zD,AD,BD,CD,ula,tla,sla,vla,ED,wla,Vfa,Wfa,FD,ID,yla,JD,KD,LD,ND,PD,RD,SD,UD,Ala,Cla,Dla,Ela,TD,WD,
YD,Fla,bE,Gla,aE,dE,eE,$D,cE,GD,xla,ZD,QD,zla,Hla,HD,XD,OD,MD,fE,Ila,Jla,Kla,hE,Mla,iE,Nla,Lla,Ola,jE,kE,Pla,lE,mE,Qla,Rla,Sla,nE,oE,Tla,Xla,pE,Ula,Wla,Vla,qE,Yla,rE,Zla,$la,ama,vE,wE,zE,yE,AE,BE,CE,DE,cma,dma,ema,FE,GE,JE,IE,fma,LE,ME,HE,NE,OE,gma,SE,WE,XE,ZE,jma,dF,fF,aF,gF,ima,kma,hF,jF,kF,iF,lF,lma,mma,$E,eF,pF,nma,oma,pma,rma,qF,rF,qma,tF,uF,vF,xF,yF,cF,TE,AF,VE,UE,CF,oF,sma,HF,IF,JF,KF,LF,YE,MF,nF,mF,NF,zF,OF,bF,tma,RE,RF,QE,EE,SF,uma,VF,WF,XF,YF,vma,wma,ZF,xma,aG,$F,bG,cG,fG,yma,zma,vG,wG,
CG,Cma,Dma,AG,Ama,IG,JG,KG,Mma,Nma,PG,QG,Oma,TG,UG,VG,WG,XG,YG,ZG,$G,RG,aH,Pma,bH,cH,dH,eH,Qma,fH,gH,Rma,hH,iH,Sma,jH,Tma,Vma,Uma,kH,lH,Wma,mH,nH,oH,pH,qH,rH,sH,tH,uH,vH,Xma,wH,xH,yH,zH,BH,CH,$ma,ana,DH,AH,EH,FH,cna,Yma,GH,Zma,dna,HH,JH,ena,KH,LH,MH,NH,PH,OH,QH,SH,TH,fna,UH,$H,bI,WH,ZH,eI,YH,gI,aI,hI,dI,cI,jI,XH,VH,kI,mI,lI,gna,oI,qI,rI,tI,uI,sI,vI,hna,xI,yI,zI,AI,wI,ina,BI,CI,DI,EI,FI,GI,HI,II,JI,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,YI,$I,aJ,jna,bJ,mna,kna,lna,nna,cJ,dJ,fJ,gJ,eJ,hJ,iJ,ona,pna,
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,qna,sna,tna,rna,XJ,WJ,YJ,ZJ,$J,aK,bK,cK,dK,hK,iK,jK,kK,lK,mK,nK,una,qK,rK,oK,uK,sK,tK,vna,vK,wna,wK,xK,xna,yK,zK,AK,CK,yna,Ana,Bna,FK,Cna,EK,DK,zna,GK,HK,IK,Dna,JK,MK,NK,OK,PK,DD,Fna,TK,UK,VK,WK,XK,ZK,Gna,aL,$K,Hna,Ina,bL,cL,dL,eL,Kna,fL,Mna,Lna,gL,hL,iL,kL,lL,jL,Ona,mL,nL,oL,Pna,pL,qL,rL,sL,Qna,tL,Rna,uL,vL,wL,Sna,xL,zL,BL,DL,FL,GL,KL,Tna,Una,HL,IL,JL,NL,LL,PL,WL,Vna,SL,TL,XL,QL,Xna,
Wna,ZL,Zna,YL,UL,bM,$L,cM,aM,eM,dM,hM,iM,YK,Yna,BK,gM,pM,$na,qM,rM,sM,tM,uM,aoa,vM,wM,yM,AM,boa,BM,W,EM,FM,coa,IM,LM,MM,NM,OM,QM,TM,UM,VM,XM,YM,ZM,$M,bN,cN,dN,fN,gN,hN,iN,lN,mN,nN,oN,doa,pN,qN,rN,sN,tN,uN,wN,xN,yN,zN,AN,eoa,BN,CN,DN,EN,foa,goa,hoa,ioa,FN,joa,koa,loa,GN,HN,IN,KN,MN,moa,LN,NN,ON,qoa,noa,poa,ooa,PN,QN,roa,RN,SN,soa,toa,uoa,voa,TN,woa,xoa,UN,VN,XN,$N,aO,cO,dO,eO,gO,hO,iO,jO,zoa,Aoa,Boa,mO,Coa,Doa,Eoa,Foa,nO,lO,pO,qO,rO,sO,tO,uO,xO,yO,zO,AO,BO,Goa,CO,Hoa,DO,EO,FO,GO,HO,IO,KO,JO,LO,MO,
NO,OO,PO,QO,RO,Ioa,Joa,SO,Koa,Loa,TO,Moa,UO,VO,WO,Noa,XO,YO,ZO,aP,bP,cP,dP,eP,fP,gP,hP,iP,jP,kP,lP,Poa,mP,nP,fO,oP,qP,tP,uP,Toa,xP,vP,yP,wP,zP,BP,LP,MP,OP,PP,pK,HP,JP,QP,Voa,Woa,Xoa,Yoa,KP,TP,AP,$P,bQ,UP,FP,cQ,VP,DP,Zoa,XP,CP,SP,YP,eQ,GP,IP,aQ,ZP,$oa,fQ,gQ,apa,hQ,X,epa,iQ,fpa,bpa,jQ,kQ,ipa,gpa,npa,kpa,jpa,qpa,ppa,rpa,upa,tpa,xpa,zpa,Apa,Cpa,tQ,OG,Dpa,vQ,LG,zQ,Lma,AQ,YN,BQ,CQ,lQ,DQ,EQ,mQ,FQ,GQ,HQ,qQ,IQ,mpa,oQ,pQ,nQ,Fpa,JQ,KQ,uQ,sQ,rQ,spa,vpa,LQ,MQ,NQ,OQ,PQ,QQ,RQ,SQ,TQ,UQ,VQ,WQ,SG,YQ,XQ,Gpa,ypa,lpa,
hpa,dpa,cpa,opa,Bpa,wpa,ZQ,$Q,aR,NP,EP,Uoa,wQ,bR,cR,dR,eR,fR,gR,hR,iR,OL,VL,jR,kR,lR,Ipa,yoa,nR,oR,pR,rR,Jpa,Kpa,ZN,WN,Lpa,Mpa,tR,NG,uR,WP,mR,Opa,Ppa,Qpa,Rpa,Spa,vR,wR,yQ,xQ,Tpa,xR,yR,Upa,zR,AR,Vpa,Wpa,BR,CR,DR,FR,ER,GR,Xpa,HR,Ypa,IR,JR,KR,Zpa,LR,$pa,MR,aqa,bqa,cqa,NR,OR,PR,QR,RR,dqa,eqa,SR,TR,fqa,UR,gqa,VR,WR,YR,hqa,ZR,iqa,$R,jqa,aS,bS,kqa,lqa,mqa,oqa,qqa,nqa,cS,dS,rqa,sqa,tqa,eS,fS,gS,Epa,uqa,hS,vqa,iS,pqa,wqa,xqa,yqa,Aqa,jS,kS,Bqa,lS,Cqa,Dqa,mS,Eqa,nS,Fqa,oS,pS,qS,rS,Gqa,sS,Hqa,Iqa,Jqa,Kqa,uS,
Lqa,Mqa,Nqa,Oqa,Qqa,Pqa,wS,Rqa,MG,Sqa,Tqa,Uqa,DS,Vqa,ES,Wqa,Xqa,Yqa,FS,GS,HS,KS,$qa,LS,MS,NS,OS,ara,bra,cra,dra,era,gra,SS,fra,hra,TS,US,ira,jra,kra,mra,lra,nra,ora,qra,pra,sra,WS,xra,tra,yra,zra,vra,Ara,wra,XS,Era,Cra,Dra,Kra,Hra,Lra,Mra,Nra,VS,Gra,Fra,Jra,Bra,Ora,ZS,Pra,ura,Qra,$S,aT,Rra,Sra,Ura,Vra,bT,Tra,cT,dT,fT,Xra,Zra,$ra,bsa,asa,gT,Yra,iT,hT,csa,dsa,eT,esa,jT,mT,fsa,hsa,gsa,lT,isa,jsa,ksa,msa,lsa,nsa,nT,kT,osa,psa,oT,pT,rsa,ssa,qsa,tsa,usa,wsa,ysa,vsa,zsa,Asa,xsa,qT,Bsa,Csa,Dsa,Esa,sT,tT,
vT,xT,yT,Gsa,zT,Hsa,Isa,Jsa,AT,wT,Lsa,Msa,DT,Nsa,Osa,Qsa,Psa,Rsa,ET,FT,Ssa,HT,GT,IT,Xsa,Ysa,$sa,ata,LT,MT,NT,bta,cta,eta,fta,PT,gta,dta,ita,OT,QT,jta,kta,lta,qR,ST,mta,nM,nta,ota,hta,Fsa,CT,qta,TT,UT,rta,tta,sta,vta,wta,ZT,XT,xta,yta,WT,VT,uta,bU,aU,cU,$T,zta,eU,Dta,gU,iU,jU,kU,lU,Bta,hU,mU,Cta,Fta,Gta,Hta,dU,Ita,fU,Eta,Jta,Ata,Kta,Mta,Nta,Lta,nU,oU,qU,rU,sU,pU,Ota,Pta,tU,wU,Qta,Tta,Sta,Rta,Uta,Wta,xU,yU,zU,AU,BU,Xta,Yta,CU,Zta,$ta,FU,bua,dua,cua,eua,fua,sV,gua,tV,uV,vV,wV,xV,yV,hua,iua,kua,lua,mua,
nua,zV,oua,pua,AV,BV,CV,DV,EV,FV,qua,rua,sua,GV,tua,uua,vua,wua,xua,yua,HV,zua,IV,Aua,JV,Bua,Dua,Cua,Eua,Jua,Hua,Fua,Gua,Iua,LV,Lua,KV,Nua,OV,Oua,Pua,TV,iI,UV,VV,Sua,Tua,Wua,WV,SV,aW,ZV,MV,Uua,eW,Xua,gW,bW,iW,hW,fW,lW,nW,mW,NV,bva,Qua,QV,jW,sW,cva,tW,dva,PV,eva,pW,rW,YV,Yua,gva,fva,hva,mM,uW,$ua,$V,vW,XV,RV,wW,qW,Rua,xW,yW,kva,iva,cW,lva,oW,mva,kW,ava,Vua,zW,nva,pva,qva,ova,rva,AW,BW,uva,tva,Eq,wva,vva,xva,CW,yva,EW,DW,FW,Y,RL,zva,Ava,Bva,Cva,JW,IW,KW,NW,YW,ZW,zqa,xG,Nva,Pva,kX,Uva,nX,Wva,Tva,Xva,
Yva,mX,Vva,pX,qX,rX,sX,Dva,tX,XW,Zva,vX,$va,uX,xX,awa,AX,BX,GX,cwa,dwa,IX,HX,JX,ewa,fwa,LX,KX,gwa,NX,OX,iwa,hwa,RX,kwa,TX,PX,lwa,mwa,jwa,UX,XX,nwa,WX,YX,$X,ZX,cY,owa,pwa,fY,qwa,twa,rwa,jY,kY,uwa,nY,oY,qY,sY,vwa,wwa,vY,ywa,uY,xwa,zwa,Awa,yY,Bwa,Dwa,Cwa,BY,Fwa,Ewa,CY,DY,GY,Hwa,Gwa,HY,IY,JY,Iwa,KY,LY,MY,NY,Jwa,OY,PY,Lwa,Kwa,Nwa,Mwa,UY,SY,VY,TY,Owa,Pwa,Qwa,WY,XY,YY,Rwa,aZ,Swa,cZ,dZ,eZ,gZ,hZ,iZ,jZ,Twa,Wwa,kZ,Uwa,Vwa,lZ,$wa,axa,mZ,cxa,bxa,dxa,exa,fxa,pZ,rZ,sZ,tZ,gxa,hxa,ixa,jxa,lxa,mxa,nxa,xZ,BZ,pxa,qxa,
zZ,vZ,yZ,DZ,txa,EZ,AZ,kxa,sxa,CZ,oxa,rxa,uxa,vxa,FZ,GZ,HZ,IZ,xxa,LZ,MZ,NZ,OZ,PZ,QZ,yxa,RZ,TZ,SZ,UZ,VZ,zxa,WZ,Axa,Cxa,Bxa,XZ,YZ,Dxa,ZZ,$Z,Exa,a_,Fxa,b_,Gxa,c_,d_,h_,g_,Hxa,f_,k_,Ixa,Jxa,l_,m_,o_,Kxa,dY,Oxa,zY,Lxa,j_,Nxa,AY,Mxa,Pxa,Rxa,Qxa,s_,Sxa,t_,Txa,u_,Uxa,Vxa,Wxa,x_,Zxa,Xxa,$xa,y_,w_,aya,Yxa,z_,cya,bya,A_,C_,iya,F_,hya,gya,G_,B_,H_,gX,jya,E_,Bla,D_,kya,eya,I_,pya,K_,rya,sya,nya,M_,tya,N_,lya,P_,oya,uya,O_,L_,vya,hX,wya,J_,yya,T_,R_,U_,S_,X_,Y_,V_,Bya,zya,W_,Aya,Cya,Z_,Eya,b0,Gya,Hya,Iya,Jya,d0,
c0,RH,Kya,Lya,Kva,Lva,Mya,Nya,f0,g0,h0,j0,Wya,Rya,zG,Qya,Yya,Zya,m0,n0,fX,aza,$ya,o0,Mva,i0,iX,s0,cza,t0,v0,Uya,Vya,B0,eza,A0,k0,fza,F0,Xya,G0,dza,Gva,gza,hza,x0,y0,w0,J0,mza,p0,nza,oza,pza,qya,rza,K0,E0,dya,q0,Q_,L0,M0,sza,z0,bza,I0,iza,uza,Hva,oM,GW,wza,D0,P0,yza,r0,$W,Q0,zza,Aza,R0,Bza,Tya,Oya,H0,Gza,Sya,S0,T0,Fya,Hza,Iza,Lza,Nza,X0,Y0,aa,fa,ea,eaa,La,Ta,faa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&fa(c,d,{configurable:!0,writable:!0,value:f})}};
ia=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:da(a)}};
ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.la=function(a){return a instanceof Array?a:ka(g.q(a))};
g.u=function(a,b){a.prototype=ma(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Wc=b.prototype};
oa=function(){this.K=!1;this.D=null;this.B=void 0;this.u=1;this.F=this.I=0;this.P=this.C=null};
pa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
qa=function(a,b){a.C={KA:b,TB:!0};a.u=a.I||a.F};
g.ra=function(a,b,c){a.u=c;return{value:b}};
sa=function(a,b,c){a.I=b;void 0!=c&&(a.F=c)};
ta=function(a,b){a.u=b;a.I=0};
ua=function(a){a.I=0;var b=a.C.KA;a.C=null;return b};
baa=function(a){a.P=[a.C];a.I=0;a.F=0};
caa=function(a){var b=a.P.splice(0)[0];(b=a.C=a.C||b)?b.TB?a.u=a.I||a.F:void 0!=b.Wd&&a.F<b.Wd?(a.u=b.Wd,a.C=null):a.u=a.F:a.u=4};
wa=function(a){this.u=new oa;this.B=a};
daa=function(a,b){pa(a.u);var c=a.u.D;if(c)return xa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.u["return"]);
a.u["return"](b);return ya(a)};
xa=function(a,b,c,d){try{var e=b.call(a.u.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.u.K=!1,e;var f=e.value}catch(h){return a.u.D=null,qa(a.u,h),ya(a)}a.u.D=null;d.call(a.u,f);return ya(a)};
ya=function(a){for(;a.u.u;)try{var b=a.B(a.u);if(b)return a.u.K=!1,{value:b.value,done:!1}}catch(c){a.u.B=void 0,qa(a.u,c)}a.u.K=!1;if(a.u.C){b=a.u.C;a.u.C=null;if(b.TB)throw b.KA;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
za=function(a){this.next=function(b){pa(a.u);a.u.D?b=xa(a,a.u.D.next,b,a.u.N):(a.u.N(b),b=ya(a));return b};
this["throw"]=function(b){pa(a.u);a.u.D?b=xa(a,a.u.D["throw"],b,a.u.N):(qa(a.u,b),b=ya(a));return b};
this["return"]=function(b){return daa(a,b)};
this[Symbol.iterator]=function(){return this}};
g.Aa=function(a,b){var c=new za(new wa(b));na&&a.prototype&&na(c,a.prototype);return c};
Ba=function(a){function b(d){return a.next(d)}
function c(d){return a["throw"](d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
Ca=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Da=function(a,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{IB:e,jG:f}}return{IB:-1,jG:void 0}};
Ea=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
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};
Ha=function(a){return a?a:Array.prototype.copyWithin};
g.Ja=function(a,b,c){a=a.split(".");c=c||g.v;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};
Ma=function(a){if(a&&a!=g.v)return Ka(a.document);null===La&&(La=Ka(g.v.document));return La};
Ka=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&eaa.test(a)?a:""};
g.Na=function(a,b){for(var c=a.split("."),d=b||g.v,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Oa=function(){};
Pa=function(a){a.Je=void 0;a.getInstance=function(){return a.Je?a.Je:a.Je=new a}};
Qa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ra=function(a){var b=Qa(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Sa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ua=function(a){return Object.prototype.hasOwnProperty.call(a,Ta)&&a[Ta]||(a[Ta]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.z=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.z=gaa:g.z=haa;return g.z.apply(null,arguments)};
g.Va=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.Wa=function(a,b){for(var c in b)a[c]=b[c]};
g.A=function(){return Date.now()};
g.Xa=function(a,b){function c(){}
c.prototype=b.prototype;a.Wc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Nf=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)}};
Ya=function(a){return a};
Za=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Za);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
$a=function(a,b){Za.call(this,iaa(a,b))};
iaa=function(a,b){for(var c=a.split("%s"),d="",e=c.length-1,f=0;f<e;f++)d+=c[f]+(f<b.length?b[f]:"%s");return d+c[e]};
jaa=function(){};
kaa=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.u=/[?&]adurl=([^&]*)/.exec(a))&&this.u[1]){try{var c=decodeURIComponent(this.u[1])}catch(d){c=null}this.B=c}};
ab=function(a){return function(){return a}};
g.cb=function(a){return a};
laa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
db=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
eb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
maa=function(a,b){var c=0;return function(d){g.v.clearTimeout(c);var e=arguments;c=g.v.setTimeout(function(){a.apply(b,e)},50)}};
g.fb=function(a){return a[a.length-1]};
naa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.jb=function(a,b,c){b=g.ib(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
g.ib=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.kb=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.nb=function(a,b){return 0<=lb(a,b)};
g.ob=function(a){return 0==a.length};
pb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.rb=function(a,b){var c=lb(a,b),d;(d=0<=c)&&g.qb(a,c);return d};
g.qb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.sb=function(a,b){var c=g.ib(a,b,void 0);0<=c&&g.qb(a,c)};
oaa=function(a,b){var c=0;naa(a,function(d,e){b.call(void 0,d,e,a)&&g.qb(a,e)&&c++})};
g.tb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ub=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[]};
vb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ra(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.xb=function(a,b,c,d){Array.prototype.splice.apply(a,wb(arguments,1))};
wb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
paa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Sa(f)?"o"+g.Ua(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.Ab=function(a,b,c){return yb(a,c||zb,!1,b)};
Bb=function(a,b){return yb(a,b,!0,void 0,void 0)};
yb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n;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.Cb=function(a,b){a.sort(b||zb)};
qaa=function(a,b){var c=zb;g.Cb(a,function(d,e){return c(b(d),b(e))})};
g.Eb=function(a,b){if(!g.Ra(a)||!g.Ra(b)||a.length!=b.length)return!1;for(var c=a.length,d=raa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
zb=function(a,b){return a>b?1:a<b?-1:0};
raa=function(a,b){return a===b};
g.Fb=function(a,b,c){c=g.Ab(a,b,c);0>c&&g.xb(a,-(c+1),0,b)};
g.Ib=function(a,b,c){var d={};(0,g.Gb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
saa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
taa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
g.Jb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Kb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Lb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Mb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Nb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Ob=function(a){for(var b in a)return a[b]};
g.Pb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Qb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Rb=function(a,b){var c=g.Ra(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Sb=function(a,b){return null!==a&&b in a};
g.Tb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Ub=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Vb=function(a,b){var c=Ub(a,b,void 0);return c&&a[c]};
g.Wb=function(a){for(var b in a)return!1;return!0};
g.Xb=function(a){for(var b in a)delete a[b]};
g.Yb=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.Zb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.$b=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();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.$b(a[c]);return b};
g.bc=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<ac.length;f++)c=ac[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
cc=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
ec=function(){if(void 0===dc){var a=null,b=g.v.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ya,createScript:Ya,createScriptURL:Ya})}catch(c){g.v.console&&g.v.console.error(c.message)}dc=a}else dc=a}return dc};
ic=function(a,b){this.u=a===fc&&b||"";this.B=hc};
jc=function(a){return a instanceof ic&&a.constructor===ic&&a.B===hc?a.u:"type_error:Const"};
g.kc=function(a){return new ic(fc,a)};
mc=function(a,b){this.B=b===lc?a:""};
nc=function(a){return a instanceof mc&&a.constructor===mc?a.B:"type_error:TrustedResourceUrl"};
waa=function(a,b){var c=jc(a);if(!uaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(vaa,function(e,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error('Found marker, "'+f+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));var h=b[f];return h instanceof ic?jc(h):encodeURIComponent(String(h))});
return oc(d)};
oc=function(a){var b=ec();a=b?b.createScriptURL(a):a;return new mc(a,lc)};
pc=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.sc=function(a){return/^[\s\xa0]*$/.test(a)};
zc=function(a,b){if(b)a=a.replace(tc,"&amp;").replace(uc,"&lt;").replace(vc,"&gt;").replace(wc,"&quot;").replace(xc,"&#39;").replace(yc,"&#0;");else{if(!xaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(tc,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(uc,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(vc,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(wc,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(xc,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(yc,"&#0;"))}return a};
Ac=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Dc=function(a,b){for(var c=0,d=Bc(String(a)).split("."),e=Bc(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var l=d[h]||"",m=e[h]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Cc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||Cc(0==l[2].length,0==m[2].length)||Cc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Cc=function(a,b){return a<b?-1:a>b?1:0};
g.Fc=function(a,b){this.B=b===Ec?a:""};
g.Gc=function(a){return a instanceof g.Fc&&a.constructor===g.Fc?a.B:"type_error:SafeUrl"};
Hc=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(yaa);return b&&zaa.test(b[1])?new g.Fc(a,Ec):null};
g.Kc=function(a){a instanceof g.Fc||(a="object"==typeof a&&a.Ui?a.og():String(a),a=Ic.test(a)?new g.Fc(a,Ec):Hc(a));return a||Jc};
g.Lc=function(a,b){if(a instanceof g.Fc)return a;a="object"==typeof a&&a.Ui?a.og():String(a);if(b&&/^data:/i.test(a)){var c=Hc(a)||Jc;if(c.og()==a)return c}Ic.test(a)||(a="about:invalid#zClosurez");return new g.Fc(a,Ec)};
Nc=function(a,b){this.u=b===Mc?a:""};
Oc=function(a){return a instanceof Nc&&a.constructor===Nc?a.u:"type_error:SafeStyle"};
Sc=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)?g.Pc(d,Qc).join(" "):Qc(d),b+=c+":"+d+";")}return b?new Nc(b,Mc):Rc};
Qc=function(a){if(a instanceof g.Fc)return'url("'+g.Gc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof ic?jc(a):Aaa(String(a));if(/[{;}]/.test(a))throw new $a("Value does not allow [{;}], got: %s.",[a]);return a};
Aaa=function(a){var b=a.replace(Tc,"$1").replace(Tc,"$1").replace(Uc,"url");if(Baa.test(b)){if(Caa.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||!Daa(a))return"zClosurez"}else return"zClosurez";return Eaa(a)};
Daa=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};
Eaa=function(a){return a.replace(Uc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Kc(d).og();return c+f+b+f+e})};
Faa=function(a){function b(d){Array.isArray(d)?g.Gb(d,b):c+=Oc(d)}
var c="";g.Gb(arguments,b);return c?new Nc(c,Mc):Rc};
Wc=function(a){return-1!=g.Vc.indexOf(a)};
Yc=function(){return Wc("Firefox")||Wc("FxiOS")};
$c=function(){return Wc("Safari")&&!(Zc()||Wc("Coast")||Wc("Opera")||Wc("Edge")||Wc("Edg/")||Wc("OPR")||Yc()||Wc("Silk")||Wc("Android"))};
Zc=function(){return(Wc("Chrome")||Wc("CriOS"))&&!Wc("Edge")};
bd=function(a,b,c){this.B=c===ad?a:"";this.C=b};
g.cd=function(a){return a instanceof bd&&a.constructor===bd?a.B:"type_error:SafeHtml"};
ed=function(a){if(a instanceof bd)return a;var b="object"==typeof a,c=null;b&&a.iw&&(c=a.u());return dd(zc(b&&a.Ui?a.og():String(a)),c)};
Gaa=function(a){function b(f){Array.isArray(f)?g.Gb(f,b):(f=ed(f),e.push(g.cd(f).toString()),f=f.u(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=ed(fd),d=c.u(),e=[];g.Gb(a,b);return dd(e.join(g.cd(c).toString()),d)};
Haa=function(a){return Gaa(Array.prototype.slice.call(arguments))};
dd=function(a,b){var c=ec();c=c?c.createHTML(a):a;return new bd(c,b,ad)};
g.gd=function(a,b){jc(a);jc(a);return dd(b,null)};
Iaa=function(a){var b=g.kc("Output of CSS sanitizer");jc(b);jc(b);return new Nc(a,Mc)};
g.hd=function(a,b){if(Jaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.cd(b)};
g.id=function(a,b){var c=b instanceof g.Fc?b:g.Lc(b);a.href=g.Gc(c)};
g.jd=function(a,b){a.src=nc(b);var c=Ma(a.ownerDocument&&a.ownerDocument.defaultView);c&&a.setAttribute("nonce",c)};
kd=function(a,b,c,d){a=a instanceof g.Fc?a:g.Lc(a);b=b||g.v;c=c instanceof ic?jc(c):c||"";return b.open(g.Gc(a),c,d,void 0)};
ld=function(a){return encodeURIComponent(String(a))};
md=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.nd=function(a){return a=zc(a,void 0)};
g.od=function(a,b){var c=String(a),d=c.indexOf(".");-1==d&&(d=c.length);return Kaa("0",Math.max(0,b-d))+c};
g.pd=function(a){return null==a?"":String(a)};
qd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
g.rd=function(a){var b=Number(a);return 0==b&&g.sc(a)?NaN:b};
sd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
td=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Laa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
ud=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};
vd=function(a){return a?decodeURI(a):a};
g.xd=function(a,b){return b.match(wd)[a]||null};
g.yd=function(a){return vd(g.xd(3,a))};
zd=function(a){a=a.match(wd);return ud(a[1],null,a[3],a[4])};
Ad=function(a){a=a.match(wd);return ud(null,null,null,null,a[5],a[6],a[7])};
Bd=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var h=c[d].substring(0,e);f=c[d].substring(e+1)}else h=c[d];b(h,f?md(f):"")}};
Cd=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)]};
Dd=function(a,b){return b?a?a+"&"+b:b:a};
Ed=function(a,b){if(!b)return a;var c=Cd(a);c[1]=Dd(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Fd=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Fd(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+ld(b)))};
Gd=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Fd(a[d],a[d+1],c);return c.join("&")};
g.Hd=function(a){var b=[],c;for(c in a)Fd(c,a[c],b);return b.join("&")};
Kd=function(a,b){var c=2==arguments.length?Gd(arguments[1],0):Gd(arguments,1);return Ed(a,c)};
g.Ld=function(a,b){var c=g.Hd(b);return Ed(a,c)};
Md=function(a,b,c){c=null!=c?"="+ld(c):"";return Ed(a,b+c)};
Nd=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};
Pd=function(a,b){var c=a.search(Od),d=Nd(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 md(a.substr(d,e-d))};
Qd=function(a,b){for(var c=a.search(Od),d=0,e,f=[];0<=(e=Nd(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(Maa,"$1")};
Rd=function(a,b,c){return Md(Qd(a,b),b,c)};
Naa=function(a,b){var c=Cd(a),d=c[1],e=[];d&&d.split("&").forEach(function(f){var h=f.indexOf("=");b.hasOwnProperty(0<=h?f.substr(0,h):f)||e.push(f)});
c[1]=Dd(e.join("&"),g.Hd(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Sd=function(){return Wc("iPhone")&&!Wc("iPod")&&!Wc("iPad")};
Td=function(){return Sd()||Wc("iPad")||Wc("iPod")};
Ud=function(a){Ud[" "](a);return a};
Vd=function(a,b){try{return Ud(a[b]),!0}catch(c){}return!1};
Xd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Yd=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.$d=function(a){return Xd(Oaa,a,function(){return 0<=g.Dc(Zd,a)})};
g.ae=function(a){return Number(Paa)>=a};
g.be=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.ce=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.de=function(a,b,c){return a+c*(b-a)};
ee=function(a,b){return 1E-6>=Math.abs(a-b)};
g.fe=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ge=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.he=function(a,b){this.width=a;this.height=b};
g.ie=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
je=function(a){return a.width*a.height};
pe=function(a){return a?new ke(ne(a)):oe||(oe=new ke)};
qe=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.se=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.re(document,"*",a,b)};
g.te=function(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.re(c,"*",a,b)[0]||null}return c||null};
g.re=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.nb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
ve=function(a,b){g.Jb(b,function(c,d){c&&"object"==typeof c&&c.Ui&&(c=c.og());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:ue.hasOwnProperty(d)?a.setAttribute(ue[d],c):pc(d,"aria-")||pc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
we=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.he(a.clientWidth,a.clientHeight)};
ze=function(a){var b=xe(a);a=a.parentWindow||a.defaultView;return g.ye&&g.$d("10")&&a.pageYOffset!=b.scrollTop?new g.fe(b.scrollLeft,b.scrollTop):new g.fe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
xe=function(a){return a.scrollingElement?a.scrollingElement:g.Ae||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Be=function(a){return a?a.parentWindow||a.defaultView:window};
g.Ee=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Qaa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.nd(h.name),'"');if(h.type){f.push(' type="',g.nd(h.type),'"');var l={};g.bc(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=Ce(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):ve(f,h));2<d.length&&De(e,f,d,2);return f};
De=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.Ra(f)||g.Sa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Sa(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.Gb(h?g.ub(f):f,e)}}};
g.Fe=function(a){return Ce(document,a)};
Ce=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Ge=function(a){return document.createTextNode(String(a))};
g.He=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Ie=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Je=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Saa=function(a){return Raa&&void 0!=a.children?a.children:g.Ke(a.childNodes,function(b){return 1==b.nodeType})};
g.Le=function(a){var b;if(Taa&&!(g.ye&&g.$d("9")&&!g.$d("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Sa(b)&&1==b.nodeType?b:null};
g.Me=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};
ne=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Ne=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.He(a);var c=ne(a);a.appendChild(c.createTextNode(String(b)))}};
Qe=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&&(!Oe(a)||Pe(a)):b=Oe(a)&&Pe(a);if(b&&g.ye){var c;"function"!==typeof a.getBoundingClientRect||g.ye&&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};
Oe=function(a){return g.ye&&!g.$d("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Pe=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Se=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Re(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.nb(f.className.split(/\s+/),c))},!0,d)};
Re=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};
ke=function(a){this.u=a||g.v.document||document};
Te=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.nd(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=pe(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=waa(g.kc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.nd(a)+".js"});g.jd(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
g.Ue=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())})};
Uaa=function(a){return g.Pc(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Ve=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.We=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("")};
Ye=function(a,b,c){this.B=null;this.u=this.C=this.D=0;this.F=!1;a&&Xe(this,a,b,c)};
$e=function(a,b,c){if(Ze.length){var d=Ze.pop();a&&Xe(d,a,b,c);return d}return new Ye(a,b,c)};
Xe=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.af(b):new Uint8Array(0);a.B=b;a.D=void 0!==c?c:0;a.C=void 0!==d?a.D+d:a.B.length;a.u=a.D};
bf=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.B[a.u++],c|=(b&127)<<7*e;128<=b&&(b=a.B[a.u++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.B[a.u++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.F=!0};
cf=function(a){var b=a.B;var c=b[a.u+0];var d=c&127;if(128>c)return a.u+=1,d;c=b[a.u+1];d|=(c&127)<<7;if(128>c)return a.u+=2,d;c=b[a.u+2];d|=(c&127)<<14;if(128>c)return a.u+=3,d;c=b[a.u+3];d|=(c&127)<<21;if(128>c)return a.u+=4,d;c=b[a.u+4];d|=(c&15)<<28;if(128>c)return a.u+=5,d>>>0;a.u+=5;128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&a.u++;return d};
df=function(a){this.u=$e(a,void 0,void 0);this.F=this.u.u;this.B=this.C=-1;this.D=!1};
ef=function(a){var b=a.u;(b=b.u==b.C)||(b=a.D)||(b=a.u,b=b.F||0>b.u||b.u>b.C);if(b)return!1;a.F=a.u.u;b=cf(a.u);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.D=!0,!1;a.C=b>>>3;a.B=c;return!0};
ff=function(a){switch(a.B){case 0:if(0!=a.B)ff(a);else{for(a=a.u;a.B[a.u]&128;)a.u++;a.u++}break;case 1:1!=a.B?ff(a):(a=a.u,a.u+=8);break;case 2:if(2!=a.B)ff(a);else{var b=cf(a.u);a=a.u;a.u+=b}break;case 5:5!=a.B?ff(a):(a=a.u,a.u+=4);break;case 3:b=a.C;do{if(!ef(a)){a.D=!0;break}if(4==a.B){a.C!=b&&(a.D=!0);break}ff(a)}while(1);break;default:a.D=!0}};
jf=function(a){var b=cf(a.u);a=a.u;var c=a.B,d=a.u,e=d+b;b=[];for(var f="";d<e;){var h=c[d++];if(128>h)b.push(h);else if(192>h)continue;else if(224>h){var l=c[d++];b.push((h&31)<<6|l&63)}else if(240>h){l=c[d++];var m=c[d++];b.push((h&15)<<12|(l&63)<<6|m&63)}else if(248>h){l=c[d++];m=c[d++];var n=c[d++];h=(h&7)<<18|(l&63)<<12|(m&63)<<6|n&63;h-=65536;b.push((h>>10&1023)+55296,(h&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null,
b);else{e="";for(f=0;f<b.length;f+=8192)h=wb(b,f,f+8192),e+=String.fromCharCode.apply(null,h);b=e}a.u=d;return c+b};
kf=function(a){var b=cf(a.u);a=a.u;if(0>b||a.u+b>a.B.length)a.F=!0,b=new Uint8Array(0);else{var c=a.B.subarray(a.u,a.u+b);a.u+=b;b=c}return b};
lf=function(){this.u=[]};
g.mf=function(a,b){for(;127<b;)a.u.push(b&127|128),b>>>=7;a.u.push(b)};
g.nf=function(a,b){a.u.push(b>>>0&255);a.u.push(b>>>8&255);a.u.push(b>>>16&255);a.u.push(b>>>24&255)};
g.qf=function(a,b){void 0===b&&(b=0);of();for(var c=pf[b],d=[],e=0;e<a.length;e+=3){var f=a[e],h=e+1<a.length,l=h?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,p=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,h||(l=64));d.push(c[p],c[f],c[l]||"",c[n]||"")}return d.join("")};
g.rf=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return g.qf(b,3)};
Vaa=function(a){var b=[];sf(a,function(c){b.push(c)});
return b};
g.af=function(a){!g.ye||g.$d("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;sf(a,function(f){d[e++]=f});
return d.subarray(0,e)};
sf=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=tf[n];if(null!=p)return p;if(!g.sc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
of();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))}};
of=function(){if(!tf){tf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));pf[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===tf[f]&&(tf[f]=e)}}}};
g.uf=function(){this.C=[];this.B=0;this.u=new lf};
g.vf=function(a){for(var b=new Uint8Array(a.B+a.u.length()),c=a.C,d=c.length,e=0,f=0;f<d;f++){var h=c[f];b.set(h,e);e+=h.length}c=a.u.end();b.set(c,e);a.C=[b];return b};
g.wf=function(a,b,c){if(null!=c&&null!=c)if(g.mf(a.u,8*b),a=a.u,0<=c)g.mf(a,c);else{for(b=0;9>b;b++)a.u.push(c&127|128),c>>=7;a.u.push(1)}};
g.zf=function(a,b,c){if(null!=c&&null!=c){g.mf(a.u,8*b);a=a.u;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)));g.xf=b;g.yf=d;c=g.xf;for(b=g.yf;0<b||127<c;)a.u.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.u.push(c)}};
g.Af=function(a,b,c){if(null!=c){g.mf(a.u,8*b+1);a=a.u;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)g.yf=0<1/d?0:2147483648,g.xf=0;else if(isNaN(d))g.yf=2147483647,g.xf=4294967295;else if(1.7976931348623157E308<d)g.yf=(c<<31|2146435072)>>>0,g.xf=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),g.yf=(c<<31|d/4294967296)>>>0,g.xf=d>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);g.yf=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;g.xf=4503599627370496*
d>>>0}g.nf(a,g.xf);g.nf(a,g.yf)}};
g.Bf=function(){};
g.Gf=function(a,b,c,d){a.u=null;b||(b=[]);a.I=void 0;a.C=-1;a.lf=b;a:{if(b=a.lf.length){--b;var e=a.lf[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Cf&&e instanceof Uint8Array)){a.D=b-a.C;a.B=e;break a}}a.D=Number.MAX_VALUE}a.F={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.D?(e+=a.C,a.lf[e]=a.lf[e]||g.Df):(Ef(a),a.B[e]=a.B[e]||g.Df);if(d&&d.length)for(b=0;b<d.length;b++)g.Ff(a,d[b])};
Ef=function(a){var b=a.D+a.C;a.lf[b]||(a.B=a.lf[b]={})};
g.Hf=function(a,b){if(b<a.D){var c=b+a.C,d=a.lf[c];return d===g.Df?a.lf[c]=[]:d}if(a.B)return d=a.B[b],d===g.Df?a.B[b]=[]:d};
Waa=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.af(a):null};
If=function(a,b){var c=g.Hf(a,b);return null==c?0:c};
g.Jf=function(a,b,c){b<a.D?a.lf[b+a.C]=c:(Ef(a),a.B[b]=c);return a};
Kf=function(a,b,c){0!==c?g.Jf(a,b,c):b<a.D?a.lf[b+a.C]=null:(Ef(a),delete a.B[b]);return a};
g.Ff=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=g.Hf(a,f);null!=h&&(c=f,d=h,g.Jf(a,f,void 0))}return c?(g.Jf(a,c,d),c):0};
g.Lf=function(a,b,c){a.u||(a.u={});if(!a.u[c]){for(var d=g.Hf(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.u[c]=e}};
Mf=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?Mf(d):d)}return b}if(Cf&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Mf(d):d);return b};
Xaa=function(a){var b=g.Na("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.v.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Nf(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,Of[c])c=Of[c];else{c=String(c);if(!Of[c]){var f=/function\s+([^\(]+)/m.exec(c);Of[c]=f?f[1]:"[Anonymous]"}c=Of[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 a};
Nf=function(a,b){b||(b={});b[Pf(a)]=!0;var c=a.stack||"",d=a.zV;d&&!b[Pf(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=Nf(d,b));return c};
Pf=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Qf=function(a){this.u=a||{cookie:""}};
Rf=function(a){a=(a.u.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Bc(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}};
Sf=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};
Tf=function(a){return a?a.passive&&Yaa()?a:a.capture||!1:!1};
Uf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Tf(d)),!0):!1};
Vf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Tf(void 0))};
g.Yf=function(a){"number"===typeof a?(this.date=Wf(a,0,1),Xf(this,1)):g.Sa(a)?(this.date=Wf(a.getFullYear(),a.getMonth(),a.getDate()),Xf(this,a.getDate())):(this.date=new Date(g.A()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Xf(this,a))};
Wf=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
Xf=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
$f=function(){return!Zf()&&(Wc("iPod")||Wc("iPhone")||Wc("Android")||Wc("IEMobile"))};
Zf=function(){return Wc("iPad")||Wc("Android")&&!Wc("Mobile")||Wc("Silk")};
ag=function(a){try{return!!a&&null!=a.location.href&&Vd(a,"foo")}catch(b){return!1}};
bg=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
$aa=function(){var a=[];bg(Zaa,function(b){a.push(b)});
return a};
bba=function(a){return(a=aba.exec(a))&&a[0]||""};
cba=function(){var a=cg;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""};
eba=function(){var a=g.Fe("IFRAME"),b={};g.Gb(dba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
g.B=function(){this.Cd=this.Cd;this.Gl=this.Gl};
g.C=function(a,b){g.dg(a,g.Va(g.eg,b))};
g.dg=function(a,b){a.Cd?b():(a.Gl||(a.Gl=[]),a.Gl.push(b))};
g.eg=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.fg=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ra(d)?g.fg.apply(null,d):g.eg(d)}};
gg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
hg=function(a,b,c){b instanceof g.fe?(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.ig=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
jg=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};
fba=function(){};
lg=function(a,b){if(b!==kg)throw Error("Bad secret");this.u=a};
g.ng=function(a){mg();return oc(a)};
g.F=function(a,b,c){if("string"===typeof b)(b=og(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=og(c,d);f&&(c.style[f]=e)}};
og=function(a,b){var c=pg[b];if(!c){var d=sd(b);c=d;void 0===a.style[d]&&(d=(g.Ae?"Webkit":qg?"Moz":g.ye?"ms":g.rg?"O":null)+Laa(d),void 0!==a.style[d]&&(c=d));pg[b]=c}return c};
g.sg=function(a,b){var c=a.style[sd(b)];return"undefined"!==typeof c?c:a.style[og(a,b)]||""};
tg=function(a,b){var c=ne(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
ug=function(a,b){return tg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.wg=function(a,b,c){if(b instanceof g.fe){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.vg(d,!1);a.style.top=g.vg(b,!1)};
xg=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
gba=function(a){if(g.ye&&!g.ae(8))return a.offsetParent;var b=ne(a),c=ug(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=ug(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.yg=function(a){var b=ne(a),c=new g.fe(0,0);var d=b?ne(b):document;d=!g.ye||g.ae(9)||"CSS1Compat"==pe(d).u.compatMode?d.documentElement:d.body;if(a==d)return c;a=xg(a);b=ze(pe(b).u);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Ag=function(a,b){var c=new g.fe(0,0),d=Be(ne(a));if(!Vd(d,"parent"))return c;var e=a;do{var f=d==b?g.yg(e):zg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
g.Cg=function(a,b){var c=Bg(a),d=Bg(b);return new g.fe(c.x-d.x,c.y-d.y)};
zg=function(a){a=xg(a);return new g.fe(a.left,a.top)};
Bg=function(a){if(1==a.nodeType)return zg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.fe(a.clientX,a.clientY)};
g.Dg=function(a,b,c){if(b instanceof g.he)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.vg(b,!0);a.style.height=g.vg(c,!0)};
g.vg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Eg=function(a){var b=hba;if("none"!=ug(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};
hba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Ae&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=xg(a),new g.he(a.right-a.left,a.bottom-a.top)):new g.he(b,c)};
g.Fg=function(a,b){a.style.display=b?"":"none"};
Jg=function(){if(Gg&&!ag(Hg)){var a="."+Ig.domain;try{for(;2<a.split(".").length&&!ag(Hg);)Ig.domain=a=a.substr(a.indexOf(".")+1),Hg=window.parent}catch(b){}ag(Hg)||(Hg=window)}return Hg};
Kg=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.he(b.innerWidth,b.innerHeight)).round():we(b||window).round()}catch(d){return new g.he(-12245933,-12245933)}};
Lg=function(a,b,c){try{a&&(b=b.top);var d=Kg(a,b,void 0===c?!1:c),e=ze(pe(b.document).u);if(-12245933==d.width){var f=d.width;var h=new gg(f,f,f,f)}else h=new gg(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new gg(-12245933,-12245933,-12245933,-12245933)}};
iba=function(a){var b={};g.Gb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.B(e)||(b[d]=null)):b[d]=c});
oaa(a,function(c){return null===b[c.event]})};
Mg=function(){this.Zb=0;this.u=!1;this.B=-1;this.rl=!1;this.Kf=0};
Ng=function(){this.B=null;this.u=!1};
Og=function(a){Ng.call(this);this.C=a};
Pg=function(){Ng.call(this)};
Qg=function(){Ng.call(this)};
Rg=function(){this.u={};this.C=!0;this.B={}};
Sg=function(a,b,c){a.u[b]||(a.u[b]=new Og(c));return a.u[b]};
jba=function(a){a.u.queryid||(a.u.queryid=new Qg)};
Tg=function(a,b,c){(a=a.u[b])&&a.setValue(c)};
Ug=function(a,b){if(Sb(a.B,b))return a.B[b];var c=a.u[b];if(c)return c.getValue()};
Vg=function(a){var b={},c=g.Kb(a.u,function(d){return d.u});
g.Jb(c,function(d,e){var f=void 0!==a.B[e]?String(a.B[e]):d.u&&null!==d.B?String(d.B):"";0<f.length&&(b[e]=f)},a);
return b};
kba=function(a){a=Vg(a);var b=[];g.Jb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
lba=function(){this.u=this.ek=null};
Wg=function(){};
Yg=function(){if(!Xg())throw Error();};
Xg=function(){return!(!Zg||!Zg.performance)};
$g=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
ah=function(){};
dh=function(a){a=a||bh();for(var b=new ch(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&mba.test(f.url)&&(c=f);if(f.url&&!f.yw){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new nba(b,e,c)};
bh=function(){var a=g.v,b=[],c=null;do{var d=a;if(ag(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ch(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.v;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.yw=!0);return b};
nba=function(a,b,c){this.u=a;this.B=b;this.C=c};
ch=function(a,b,c){this.url=a;this.Te=b;this.yw=!!c;this.depth=null};
eh=function(){this.C="&";this.B={};this.D=0;this.u=[]};
fh=function(a,b){var c={};c[a]=b;return[c]};
hh=function(a,b,c,d,e){var f=[];bg(a,function(h,l){var m=gh(h,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
gh=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(gh(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(hh(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
oba=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
ih=function(a,b){this.u=a;this.depth=b};
qba=function(){function a(l,m){return null==l?m:l}
var b=bh(),c=Math.max(b.length-1,0),d=dh(b);b=d.u;var e=d.B,f=d.C,h=[];f&&h.push(new ih([f.url,f.yw?2:0],a(f.depth,1)));e&&e!=f&&h.push(new ih([e.url,2],0));b.url&&b!=f&&h.push(new ih([b.url,0],a(b.depth,c)));d=g.Pc(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=bba(b.url))&&d.push([new ih([e,1],a(b.depth,c))]);d.push([]);return g.Pc(d,function(l){return pba(c,l)})};
pba=function(a,b){g.jh(b,function(e){return 0<=e.depth});
var c=g.kh(b,function(e,f){return Math.max(e,f.depth)},-1),d=saa(c+2);
d[0]=a;g.Gb(b,function(e){return d[e.depth+1]=e.u});
return d};
rba=function(){var a=qba();return g.Pc(a,function(b){return gh(b)})};
lh=function(){this.B=new ah;this.u=Xg()?new Yg:new Wg};
sba=function(){mh();var a=Zg.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Zg.setInterval&&"function"===typeof Zg.clearInterval&&"function"===typeof Zg.setTimeout&&"function"===typeof Zg.clearTimeout)};
nh=function(a){mh();var b=Jg()||Zg;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
oh=function(){mh();return rba()};
ph=function(){};
mh=function(){return ph.getInstance().getContext()};
qh=function(a){g.Gf(this,a,null,null)};
tba=function(a){this.D=a;this.u=-1;this.B=this.C=0};
rh=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.u)return b.apply(null,g.la(d));try{return a.u=a.D.u.now(),b.apply(null,g.la(d))}finally{a.C+=a.D.u.now()-a.u,a.u=-1,a.B+=1}}};
uba=function(a,b){this.B=a;this.C=b;this.u=new tba(a)};
uh=function(){this.C=void 0;this.B=this.I=0;this.F=-1;this.ob=new Rg;Sg(this.ob,"mv",sh).u=!0;Sg(this.ob,"omid",th);Sg(this.ob,"epoh",th).u=!0;Sg(this.ob,"epph",th).u=!0;Sg(this.ob,"umt",th).u=!0;Sg(this.ob,"phel",th).u=!0;Sg(this.ob,"phell",th).u=!0;Sg(this.ob,"oseid",vba).u=!0;var a=this.ob;a.u.sloi||(a.u.sloi=new Pg);a.u.sloi.u=!0;Sg(this.ob,"xdi",th).u=!0;Sg(this.ob,"amp",th).u=!0;Sg(this.ob,"prf",th).u=!0;Sg(this.ob,"gtx",th).u=!0;Sg(this.ob,"mvp_lv",th).u=!0;Sg(this.ob,"vcm",th).u=!0;Sg(this.ob,
"dov",sh).u=!0;Sg(this.ob,"postrxl",th).u=!0;this.ob.B.postrxl=1;Sg(this.ob,"mpv",th).u=!0;Sg(this.ob,"bmi",th).u=!0;this.ob.B.bmi=1;Sg(this.ob,"tmout",th).u=!0;this.u=new uba(mh(),this.ob);this.D=!1};
wba=function(){var a="https:";Zg&&Zg.location&&"http:"===Zg.location.protocol&&(a="http:");this.B=a;this.u=.01;this.C=Math.random()};
vh=function(a,b,c,d,e){if((d?a.C:Math.random())<(e||a.u))try{if(c instanceof eh)var f=c;else f=new eh,bg(c,function(l,m){var n=f,p=n.D++,r=fh(m,l);n.u.push(p);n.B[p]=r});
var h=f.cd(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");h&&nh(h)}catch(l){}};
wh=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.A()};
xh=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
xba=function(a,b){var c=xh()||wh();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
zh=function(){var a=Jg();this.events=[];this.B=a||g.v;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.u=yh()||(null!=b?b:1>Math.random())};
Eh=function(a){a&&Ah&&yh()&&(Ah.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ah.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Hh=function(){var a=Fh;this.F=Gh;this.D="jserror";this.C=!0;this.u=null;this.I=this.B;this.Ua=void 0===a?null:a};
Kh=function(a,b,c,d){return rh(uh.getInstance().u.u,function(){try{if(a.Ua&&a.Ua.u){var e=a.Ua.start(b.toString(),3);var f=c();a.Ua.end(e)}else f=c()}catch(m){var h=a.C;try{Eh(e);var l=new Ih(Jh(m));h=a.I(b,l,void 0,d)}catch(n){a.B(217,n)}if(!h)throw m;}return f})()};
Mh=function(a,b,c){var d=Lh;return rh(uh.getInstance().u.u,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Kh(d,a,function(){return b.apply(void 0,f)},c)})};
Jh=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};
Ih=function(a){Sf.call(this,Error(a),{message:a})};
Nh=function(){var a=Jg();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Fh.disable())};
yba=function(a){Lh.u=function(b){g.Gb(a,function(c){c(b)})}};
Oh=function(a,b){return Kh(Lh,a,b,void 0)};
Ph=function(a,b){return Mh(a,b,void 0)};
Qh=function(a,b,c,d){Lh.B(a,b,c,d)};
Rh=function(){return Date.now()-zba};
Aba=function(){var a=uh.getInstance().C,b=0<=Sh?Rh()-Sh:-1,c=Th?Rh()-Uh:-1,d=0<=Vh?Rh()-Vh:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Qh(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};
Wh=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,ag(a)&&(c=a,b=d);return{Te:c,level:b}};
Xh=function(a){var b=a!==a.top,c=a.top===Wh(a).Te,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),Nb(Bba,function(h){return"function"===typeof f[h]})||(e=1));
return{hh:f,compatibility:e,vQ:d}};
Cba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
Yh=function(a,b,c,d){var e=void 0===e?!1:e;c=Mh(d,c,void 0);Uf(a,b,c,{capture:e})};
Zh=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
$h=function(a){return new gg(a.top,a.right,a.bottom,a.left)};
ai=function(a){var b=a.top||0,c=a.left||0;return new gg(b,c+(a.width||0),b+(a.height||0),c)};
bi=function(a){return null!=a&&0<=a&&1>=a};
Dba=function(){var a=g.Vc;return a?ci("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return Ac(a,b)})||Ac(a,"OMI/")&&!Ac(a,"XiaoMi/")?!0:Ac(a,"Presto")&&Ac(a,"Linux")&&!Ac(a,"X11")&&!Ac(a,"Android")&&!Ac(a,"Mobi"):!1};
di=function(){this.C=!ag(Zg.top);this.isMobileDevice=Zf()||$f();var a=bh();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.yd(a[a.length-1].url)||"":"";this.u=new gg(0,0,0,0);this.D=new g.he(0,0);this.F=new g.he(0,0);this.K=new gg(0,0,0,0);this.I=0;this.N=!1;this.B=!(!Zg||!Xh(Zg).hh);this.update(Zg)};
ei=function(a,b){b&&b.screen&&(a.D=new g.he(b.screen.width,b.screen.height))};
fi=function(a,b){var c=a.u?new g.he(a.u.Sd(),a.u.getHeight()):new g.he(0,0);var d=b;d=void 0===d?Zg:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var h=d.document,l=h.body,m=h.documentElement;if("CSS1Compat"==h.compatMode&&m.scrollHeight)e=m.scrollHeight!=c.height?m.scrollHeight:m.offsetHeight,f=m.scrollWidth!=c.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,p=m.scrollWidth,r=m.offsetHeight,t=m.offsetWidth;m.clientHeight!=r&&(n=l.scrollHeight,p=l.scrollWidth,r=l.offsetHeight,t=l.offsetWidth);
n>c.height?n>r?(e=n,f=p):(e=r,f=t):n<r?(e=n,f=p):(e=r,f=t)}var w=new g.he(f,e)}catch(x){w=new g.he(-12245933,-12245933)}a.F=w};
gi=function(){var a=di.getInstance();if(0<a.I||a.N)return!0;a=mh().B.isVisible();var b=0===$g(Ig);return a||b};
ii=function(a,b){var c=hi(b);return 0===c?0:hi(a)/c};
hi=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Eba=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.Le(a)||a){var d=ne(a),e=d&&Be(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Fba=function(a,b,c){if(!a||!b)return!1;b=hg(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Jg();ag(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Cba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ne(c))&&b.defaultView&&b.defaultView.frameElement)&&Eba(b,a);d=a===c;a=!d&&a&&Re(a,function(e){return e===c});
return!(b||d||a)};
Gba=function(a,b,c,d){return di.getInstance().C?!1:0>=a.Sd()||0>=a.getHeight()?!0:c&&d?Oh(208,function(){return Fba(a,b,c)}):!1};
ji=function(a,b,c){var d=new gg(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.u=d;this.B=c};
ki=function(a,b,c,d,e,f,h,l){this.K=a;this.N=b;this.F=c;this.D=d;this.u=e;this.C=f;this.B=h;this.I=l};
li=function(a){this.C=a;this.B=0;this.u=null};
mi=function(a,b,c){this.Te=a;this.ha=void 0===c?"na":c;this.D=[];this.rd=!1;this.C=new ji(-1,!0,this);this.u=this;this.K=b;this.P=this.ea=this.N=!1;this.Y="uk";this.Cd=!1;this.F=!0};
oi=function(a,b,c){if(!a.P||(void 0===c?0:c))a.P=!0,a.Y=b,a.K=0,a.u!=a||ni(a)};
pi=function(a,b){g.nb(a.D,b)||(a.D.push(b),b.Hm(a.u),b.Vj(a.C),b.ii()&&(a.N=!0))};
qi=function(a){a=a.u;a.EC();a.DC();var b=di.getInstance();b.K=Lg(!1,a.Te,b.isMobileDevice);a.GJ();a.C.u=a.qB()};
ri=function(a){a.N=a.D.length?ci(a.D,function(b){return b.ii()}):!1};
si=function(a){var b=g.ub(a.D);g.Gb(b,function(c){c.Vj(a.C)})};
ni=function(a){var b=g.ub(a.D);g.Gb(b,function(c){c.Hm(a.u)});
a.u!=a||si(a)};
ti=function(a,b,c,d){this.element=a;this.u=new gg(0,0,0,0);this.F=new gg(0,0,0,0);this.B=b;this.ob=c;this.W=d;this.Cd=!1;this.timestamp=-1;this.D=new ki(b.C,this.element,this.u,new gg(0,0,0,0),0,0,Rh(),0)};
ui=function(a,b){var c=b.Sd(),d=b.getHeight();if(1!==Ug(uh.getInstance().ob,"vcm")||!a.element)return b;var e=a.element;if(!(e.videoHeight&&e.videoWidth&&c&&d))return b;var f=e.videoWidth/e.videoHeight,h=c/d,l=b.clone();f>h?(l.top=b.top+Math.floor((d-e.videoHeight)/2),l.bottom=l.top+e.videoHeight):(l.left=b.left+Math.floor((c-e.videoWidth)/2),l.right=l.left+e.videoWidth);return l};
vi=function(a){this.Cd=!1;this.u=a;this.D=g.Oa};
wi=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.u=null==b?"":b};
Hba=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Iba=function(a,b){return new wi(a.B,a.u,a.C+b)};
xi=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.u<typeof b.u?!0:typeof a.u>typeof b.u?!1:a.u<b.u};
yi=function(){this.C=0;this.u=[];this.B=!1};
Jba=function(a,b){(0,g.Gb)(b.u,function(c){a.add(c.B,c.u,Hba(c))})};
zi=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;bg(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Ai=function(a){var b=Kba;a.B&&(g.Cb(a.u,function(c,d){return xi(d,c)?1:xi(c,d)?-1:0}),a.B=!1);
return(0,g.kh)(a.u,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Kba=function(a){var b=a.B;a=a.u;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.nb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Hi=function(a){var b=void 0===b?!0:b;this.u=new yi;void 0!==a&&Jba(this.u,a);b&&this.u.add("v",Gi,-16)};
Lba=function(a){var b=[],c=[];g.Jb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){Array.isArray(d)&&(d=d.join(","));var f=[e,"=",d].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(f);break;default:b.push(f)}}});
return b.concat(c)};
Ii=function(){if(Gi&&"unreleased"!==Gi)return Gi};
Ji=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Ii();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);nh(a)};
Ki=function(){this.u=0};
Mba=function(a,b,c){(0,g.Gb)(a.C,function(d){var e=a.u;if(!d.u&&(d.C(b,c),d.D())){d.u=!0;var f=d.B(),h=new yi;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.F);d=Ki.getInstance();h.add("i",d.u++);h.add("adk",e);zi(h,f);e=new Hi(h);Ji(e)}})};
Li=function(){this.B=this.C=this.D=this.u=0};
Mi=function(a){this.B=a=void 0===a?Nba:a;this.u=g.Pc(this.B,function(){return new Li})};
Oi=function(a,b){return Ni(a,function(c){return c.u},void 0===b?!0:b)};
Qi=function(a,b){return Pi(a,b,function(c){return c.u})};
Ri=function(a,b){return Ni(a,function(c){return c.C},void 0===b?!0:b)};
Si=function(a,b){return Pi(a,b,function(c){return c.C})};
Ti=function(a,b){return Pi(a,b,function(c){return c.B})};
Ui=function(a){g.Gb(a.u,function(b){b.B=0})};
Ni=function(a,b,c){a=g.Pc(a.u,function(d){return b(d)});
return c?a:Oba(a)};
Pi=function(a,b,c){var d=g.kb(a.B,function(e){return b<=e});
return-1==d?0:c(a.u[d])};
Oba=function(a){return g.Pc(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Vi=function(){this.B=new Mi;this.ka=new Li;this.X=this.K=-1;this.xa=1E3;this.Fa=new Mi([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.fa=this.Y=-1};
Wi=function(a,b){return Ri(a.B,void 0===b?!0:b)};
Xi=function(a,b,c){g.B.call(this);this.position=Pba.clone();this.Bs=this.Fr();this.Jw=-2;this.GQ=Date.now();this.LF=-1;this.lastUpdateTime=b;this.ls=null;this.gr=!1;this.gt=null;this.opacity=-1;this.requestSource=c;this.WF=this.Kw=g.Oa;this.xf=new lba;this.xf.ek=a;this.xf.u=a;this.Rm=!1;this.Sk={ix:null,gx:null};this.xF=!0;this.Wp=null;this.Km=this.pJ=!1;uh.getInstance().I++;this.Xd=this.Nv();this.KF=-1;this.zc=null;this.mJ=!1;a=this.ob=new Rg;Sg(a,"od",Qba);Sg(a,"opac",th).u=!0;Sg(a,"sbeos",th).u=
!0;Sg(a,"prf",th).u=!0;Sg(a,"mwt",th).u=!0;Sg(a,"iogeo",th);Sg(a,"postrxl",th).u=!0;(a=this.xf.ek)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Rba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+td()):a.getAttribute("data-"+td()))&&(di.getInstance().B=!0);1==this.requestSource?Tg(this.ob,"od",1):Tg(this.ob,"od",0)};
Yi=function(a,b){if(b!=a.Km){a.Km=b;var c=di.getInstance();b?c.I++:0<c.I&&c.I--}};
Zi=function(a,b){if(a.zc){if(b.getName()===a.zc.getName())return;a.zc.dispose();a.zc=null}var c=b.create(a.xf.u,a.ob,a.ii());if(c=null!=c&&c.Pw()?c:null)a.zc=c};
$i=function(a,b,c){if(!a.ls||-1==a.lastUpdateTime||-1===b.B||-1===a.ls.B)return 0;a=b.B-a.ls.B;return a>c?0:a};
Sba=function(a,b,c){if(a.zc){a.zc.Bi();var d=a.zc.D,e=d.K,f=e.u;if(null!=d.D){var h=d.F;a.gt=new g.fe(h.left-f.left,h.top-f.top)}f=a.Nt()?Math.max(d.u,d.C):d.u;h={};null!==e.volume&&(h.volume=e.volume);e=a.kB(d);a.ls=d;a.na(f,b,c,!1,h,e,d.I)}};
Tba=function(a){if(a.gr&&a.Wp){var b=1==Ug(a.ob,"od"),c=di.getInstance().u,d=a.Wp,e=a.zc?a.zc.getName():"ns",f=new g.he(c.Sd(),c.getHeight());c=a.Nt();a={zQ:e,gt:a.gt,YQ:f,Nt:c,Zb:a.Xd.Zb,WQ:b};if(b=d.B){b.Bi();e=b.D;f=e.K.u;var h=null,l=null;null!=e.D&&f&&(h=e.F,h=new g.fe(h.left-f.left,h.top-f.top),l=new g.he(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.u,e.C):e.u;c={zQ:b.getName(),gt:h,YQ:l,Nt:c,WQ:!1,Zb:e}}else c=null;c&&Mba(d,a,c)}};
Uba=function(a,b,c){b&&(a.Kw=b);c&&(a.WF=c)};
aj=function(){};
cj=function(a){if(a instanceof aj)return a;if("function"==typeof a.yi)return a.yi(!1);if(g.Ra(a)){var b=0,c=new aj;c.next=function(){for(;;){if(b>=a.length)throw bj;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.dj=function(a,b,c){if(g.Ra(a))try{g.Gb(a,b,c)}catch(d){if(d!==bj)throw d;}else{a=cj(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==bj)throw d;}}};
Vba=function(a){if(g.Ra(a))return g.ub(a);a=cj(a);var b=[];g.dj(a,function(c){b.push(c)});
return b};
Wba=function(){this.D=this.u=this.C=this.B=this.F=0};
Xba=function(a){var b={};b=(b.ptlt=g.A()-a.F,b);var c=a.B;c&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.u)&&(b.pns=a);return b};
ej=function(){Mg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
fj=function(a){return bi(a.volume)&&.1<=a.volume};
Yba=function(){var a={};this.B=(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.u={};for(var b in this.B)0<this.B[b][1]&&(this.u[b]=0);this.C=0};
gj=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.u[b]&&(a.u[b]=1)};
Zba=function(a){var b=g.Qb(a.B),c=0,d;for(d in a.u)g.nb(b,d)&&1==a.u[d]&&(c+=a.B[d][1],a.u[d]=2);return c};
$ba=function(a){var b=0,c;for(c in a.u){var d=a.u[c];if(1==d||2==d)b+=a.B[c][1]}return b};
hj=function(){this.u=this.B=0};
ij=function(){Vi.call(this);this.C=new Li;this.ha=this.P=this.ba=0;this.N=-1;this.Ia=new Li;this.F=new Li;this.u=new Mi;this.I=this.D=-1;this.W=new Li;this.xa=2E3;this.ea=new hj;this.ya=new hj;this.oa=new hj};
jj=function(a,b,c){var d=a.ha;Th||c||-1==a.N||(d+=b-a.N);return d};
aca=function(){this.u=!1};
lj=function(a,b){if(!a.u){if(a.C(b)){var c=kj(a.N,a.D,b);a.B|=c;c=0==c}else c=!1;a.u=c}};
mj=function(a,b){this.u=!1;this.D=a;this.N=b;this.B=0};
nj=function(a,b,c,d){ti.call(this,a,b,c,d)};
oj=function(a,b,c){ti.call(this,null,a,b,c);this.K=a.isActive();this.I=0};
pj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;Xi.call(this,b,c,d);this.jv=0;this.nh={};this.Qd=new Yba;this.lG={};this.ue="";this.jn=null;this.Ma=!1;this.u=[];this.C=e;this.K=f;this.F=null;this.D=-1;this.ka=this.P=void 0;this.X=this.W=0;this.ea=-1;this.Fa=this.xa=!1;this.fa=this.N=this.B=this.Gn=this.Ia=0;new Mi;this.ha=this.oa=0;this.ya=-1;this.Fd=0;this.Y=g.Oa;this.ba=[this.Fr()];this.Ra=2;this.Zl={};this.Zl.pause="p";this.Zl.resume="r";this.Zl.skip="s";this.Zl.mute="m";this.Zl.unmute=
"um";this.Zl.exitfullscreen="ef";this.I=null;this.cF=!1};
qj=function(a){0!=a.Fd&&(a.Fd=3)};
rj=function(a){!a.Rm&&a.C&&0!=a.Fd&&(Ug(uh.getInstance().ob,"mpv")?a.cF&&a.zc&&2===a.zc.Oh()&&lj(a.C,a):lj(a.C,a))};
sj=function(a){return void 0===a?a:Number(a)?Zh(a,3):0};
tj=function(a,b){var c;null!=b&&b<a.ba.length?c=b:c=a.ba.length-1;return a.ba[c]};
uj=function(a){var b=!!Ug(uh.getInstance().ob,"umt");return a.P||!b&&!a.ka?0:1};
bca=function(a,b){if(2==a.Fd)var c=0;else-1==a.lastUpdateTime?c=0:(c=b-a.lastUpdateTime,c=c>Math.max(1E4,a.D/3)?0:c);var d=a.Y(a)||{};d=void 0!==d.currentTime?d.currentTime:a.W;var e=d-a.W,f=0;0<=e?(a.X+=c,a.ha+=Math.max(c-e,0),f=Math.min(e,a.X)):a.oa+=Math.abs(e);0!=e&&(a.X=0);-1==a.ya&&0<e&&(a.ya=0<=Vh?Rh()-Vh:-1);a.W=d;return f};
cca=function(a,b){ci(a.K,function(c){return c.D==b.D})||a.K.push(b)};
vj=function(a,b,c){return 15E3<=b?!0:a.xa?(void 0===c?0:c)?!0:0<a.D?b>=a.D/2:0<a.ea?b>=a.ea:!1:!1};
dca=function(a){var b=Zh(a.Xd.Zb,2),c=a.Qd.C,d=a.Xd,e=tj(a),f=sj(e.D),h=sj(e.I),l=sj(d.volume),m=Zh(e.K,2),n=Zh(e.X,2),p=Zh(d.Zb,2),r=Zh(e.Y,2),t=Zh(e.fa,2);d=Zh(d.Kf,2);a=a.Pj().clone();a.round();e=Wi(e,!1);return{XQ:b,Jo:c,Cs:f,ys:h,Tn:l,Ds:m,zs:n,Zb:p,Es:r,As:t,Kf:d,position:a,ct:e}};
xj=function(a,b){wj(a.u,b,function(){return{XQ:0,Jo:void 0,Cs:-1,ys:-1,Tn:-1,Ds:-1,zs:-1,Zb:-1,Es:-1,As:-1,Kf:-1,position:void 0,ct:[]}});
a.u[b]=dca(a)};
wj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Aj=function(a,b,c){var d=a.lG[b];if(null!=d)return d;d=eca(a,b);var e=Ub(yj,function(f){return f==b});
a=zj(a,d,d,c,fca[yj[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Bj=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
zj=function(a,b,c,d,e){if(a.Rm)return{"if":0};var f=a.Pj().clone();f.round();var h=di.getInstance(),l=uh.getInstance(),m=a.Af(),n=a.zc?a.zc.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.F?a.F:void 0;p.t=a.GQ;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Oi(m.B,!1);p.mtos=Wi(m);p.mcvt=m.ka.C;p.ps=void 0;p.vht=jj(m,Rh(),2==a.Fd);p.mut=m.Ia.C;p.a=sj(a.Xd.volume);p.mv=sj(m.I);p.fs=a.Km?1:0;p.ft=m.W.u;p.at=m.F.u;p.as=.1<=m.D?1:0;p.atos=Oi(m.u);p.ssb=Oi(m.Fa,!1);p.amtos=Ri(m.u);p.uac=a.Ia;p.vpt=m.C.u;"nio"==
n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=vj(a,m.C.u,!0)?1:0;p.efpf=a.Ra;if("gsv"==n||"nis"==n)f=a.zc,0<f.I&&(p.nnut=f.I);p.tcm=uj(a);p.nmt=a.oa;p.bt=a.ha;p.pst=a.ya;p.vpaid=a.P;p.dur=a.D;p.vmtime=a.W;p.is=a.Qd.C;1<=a.u.length&&(p.i0=a.u[0].Jo,p.a0=[a.u[0].Tn],p.c0=[a.u[0].Zb],p.ss0=[a.u[0].Kf],f=a.u[0].position,p.p0=f?[f.top,f.left,f.bottom,f.right]:void 0);2<=a.u.length&&(p.i1=a.u[1].Jo,p.a1=Bj(a.u[1].Cs,a.u[1].Tn,a.u[1].ys),p.c1=Bj(a.u[1].Ds,a.u[1].Zb,a.u[1].zs),p.ss1=Bj(a.u[1].Es,a.u[1].Kf,a.u[1].As),
f=a.u[1].position,p.p1=f?[f.top,f.left,f.bottom,f.right]:void 0,p.mtos1=a.u[1].ct);3<=a.u.length&&(p.i2=a.u[2].Jo,p.a2=Bj(a.u[2].Cs,a.u[2].Tn,a.u[2].ys),p.c2=Bj(a.u[2].Ds,a.u[2].Zb,a.u[2].zs),p.ss2=Bj(a.u[2].Es,a.u[2].Kf,a.u[2].As),f=a.u[2].position,p.p2=f?[f.top,f.left,f.bottom,f.right]:void 0,p.mtos2=a.u[2].ct);4<=a.u.length&&(p.i3=a.u[3].Jo,p.a3=Bj(a.u[3].Cs,a.u[3].Tn,a.u[3].ys),p.c3=Bj(a.u[3].Ds,a.u[3].Zb,a.u[3].zs),p.ss3=Bj(a.u[3].Es,a.u[3].Kf,a.u[3].As),f=a.u[3].position,p.p3=f?[f.top,f.left,
f.bottom,f.right]:void 0,p.mtos3=a.u[3].ct);p.cs=$ba(a.Qd);b&&(p.ic=Zba(a.Qd),p.dvpt=m.C.B,p.dvs=Ti(m.B,.5),p.dfvs=Ti(m.B,1),p.davs=Ti(m.u,.5),p.dafvs=Ti(m.u,1),c&&(m.C.B=0,Ui(m.B),Ui(m.u)),a.ul()&&(p.dtos=m.ba,p.dav=m.P,p.dtoss=a.jv+1,c&&(m.ba=0,m.P=0,a.jv++)),p.dat=m.F.B,p.dft=m.W.B,c&&(m.F.B=0,m.W.B=0));p.ps=[h.F.width,h.F.height];p.bs=[h.u.Sd(),h.u.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.Gn&&(p.vds=a.Gn);if(0<a.K.length||a.C)b=g.ub(a.K),a.C&&b.push(a.C),p.pings=g.Pc(b,function(r){return r.toString()});
b=g.Pc(g.Ke(a.K,function(r){return r.F()}),function(r){return r.getId()});
paa(b);p.ces=b;a.B&&(p.vmer=a.B);a.N&&(p.vmmk=a.N);a.fa&&(p.vmiec=a.fa);p.avms=a.zc?a.zc.getName():"ns";a.zc&&g.bc(p,a.zc.Mj());d?(p.c=Zh(a.Xd.Zb,2),p.ss=Zh(a.Xd.Kf,2)):p.tth=Rh()-Cj;p.mc=Zh(m.X,2);p.nc=Zh(m.K,2);p.mv=sj(m.I);p.nv=sj(m.D);p.lte=Zh(a.Jw,2);d=tj(a,e);Wi(m);p.qmtos=Wi(d);p.qnc=Zh(d.K,2);p.qmv=sj(d.I);p.qnv=sj(d.D);p.qas=.1<=d.D?1:0;p.qi=a.ue;p.avms||(p.avms="geo");p.psm=m.ea.u;p.psv=m.ea.getValue();p.psfv=m.ya.getValue();p.psa=m.oa.getValue();l=kba(l.ob);l.length&&(p.veid=l);a.I&&g.bc(p,
Xba(a.I));return p};
eca=function(a,b){if(g.nb(gca,b))return!0;var c=a.nh[b];return void 0!==c?(a.nh[b]=!0,!c):!1};
ica=function(){this.u={};var a=Be();Dj(this,a,document);var b=hca();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Dj(this,c,c.document);Dj(this,a.top,a.top.document)}}catch(d){}};
hca=function(){var a=document.documentElement;try{if(!ag(Be().top))return"2";var b=[],c=Be(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"}};
Dj=function(a,b,c){Yh(c,"mousedown",function(){return jca(a)},301);
Yh(b,"scroll",function(){return kca(a)},302);
Yh(c,"touchmove",function(){return lca(a)},303);
Yh(c,"mousemove",function(){return mca(a)},304);
Yh(c,"keydown",function(){return nca(a)},305)};
jca=function(a){g.Jb(a.u,function(b){1E5<b.C||++b.C})};
kca=function(a){g.Jb(a.u,function(b){1E5<b.u||++b.u})};
lca=function(a){g.Jb(a.u,function(b){1E5<b.u||++b.u})};
nca=function(a){g.Jb(a.u,function(b){1E5<b.B||++b.B})};
mca=function(a){g.Jb(a.u,function(b){1E5<b.D||++b.D})};
g.Fj=function(a){var b=[];Ej(new oca,a,b);return b.join("")};
oca=function(){};
Ej=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),Ej(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),Gj(d,c),c.push(":"),Ej(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Gj(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);}}};
Gj=function(a,b){b.push('"',a.replace(pca,function(c){var d=Hj[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Hj[c]=d);return d}),'"')};
Ij=function(){this.u=[];this.B=[]};
Jj=function(a,b){return g.jb(a.u,function(c){return c.ue==b})};
Kj=function(a,b){return b?g.jb(a.u,function(c){return c.xf.ek==b}):null};
qca=function(a,b){return g.jb(a.B,function(c){return 2==c.Mh()&&c.ue==b})};
Mj=function(){var a=Lj;return 0==a.u.length?a.B:0==a.B.length?a.u:g.tb(a.B,a.u)};
Nj=function(a,b){var c=1==b.Mh()?a.u:a.B,d=g.ib(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.zc&&b.zc.Yo(),b.dispose(),!0):!1};
rca=function(a){var b=Lj;if(Nj(b,a)){switch(a.Mh()){case 0:var c=function(){return null};
case 2:c=function(){return qca(b,a.ue)};
break;case 1:c=function(){return Jj(b,a.ue)}}for(var d=c();d;d=c())Nj(b,d)}};
sca=function(a,b){var c=Lj,d=g.Ke(a,(void 0===b?0:b)?function(e){return!Jj(c,e.ue)}:function(e){return!Kj(c,e.xf.ek)});
c.u.push.apply(c.u,g.la(d))};
Oj=function(a){var b=Lj,c=[];g.Gb(a,function(d){ci(b.u,function(e){return e.xf.ek===d.xf.ek&&e.ue===d.ue})||(b.u.push(d),c.push(d))})};
Pj=function(){this.u=this.B=null};
Qj=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.u=g.jb(a.B,function(d){return null!=d&&d.tC()});
a.u&&(a.u.init(c)?qi(a.u.u):b(a.u.u.Cm(),a.u));return null!=a.u};
Rj=function(a){a=tca(a);vi.call(this,a.length?a[a.length-1]:new mi(Zg,0));this.C=a;this.B=null};
tca=function(a){if(!a.length)return[];a=(0,g.Ke)(a,function(c){return null!=c&&c.FC()});
for(var b=1;b<a.length;b++)pi(a[b-1],a[b]);return a};
Sj=function(a,b,c,d){ti.call(this,a,b,c,d);this.P=this.N=this.I=this.K=this.C=null};
Tj=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
vca=function(a){if(!a.element)return!1;var b=a.element,c=a.B.u.Te,d=uh.getInstance().u.u;a.C=new c.IntersectionObserver(rh(d,function(e){return Uj(a,e)}),uca);
d=rh(d,function(){a.C.unobserve(b);a.C.observe(b);Uj(a,Tj(a))});
c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.I=new g.v.MutationObserver(d),a.I.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);Uj(a,Tj(a));return!0};
Uj=function(a,b){try{if(b.length){a.N||(a.N=Rh());var c=wca(b),d=Ag(a.element,a.B.u.Te),e=d.x,f=d.y;a.u=ui(a,new gg(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e)));var h=$h(c.intersectionRect);a.F=hg(h,a.u.left-h.left,a.u.top-h.top)}}catch(l){a.Yo(),Qh(299,l)}};
wca=function(a){return(0,g.kh)(a,function(b,c){return b.time>c.time?b:c},a[0])};
Vj=function(){var a=/Chrome\/(\d+)/.exec(g.Vc);return a?parseFloat(a[1]):NaN};
Wj=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Vc);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("."))};
Yj=function(){return Xj("android")&&Xj("chrome")&&!(Xj("trident/")||Xj("edge/"))&&!Xj("cobalt")};
Zj=function(){return Xj("armv7")||Xj("aarch64")||Xj("android")};
g.ak=function(){return Xj("cobalt")};
ck=function(){return Xj("cobalt")&&Xj("appletv")};
dk=function(){return Xj("(ps3; leanback shell)")||Xj("ps3")&&g.ak()};
ek=function(){return Xj("(ps4; leanback shell)")||Xj("ps4")&&g.ak()};
g.fk=function(){return g.ak()&&(Xj("ps4 vr")||Xj("ps4 pro vr"))};
gk=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&600<=parseInt(a[1],10))};
hk=function(){var a=/WebKit\/([0-9]+)/.exec(g.Vc);return!!(a&&602<=parseInt(a[1],10))};
ik=function(){return Xj("iemobile")||Xj("windows phone")&&Xj("edge")};
kk=function(){return jk&&Xj("applewebkit")&&!Xj("version")&&(!Xj("safari")||Xj("gsa/"))};
mk=function(){return g.lk&&Xj("version/")};
nk=function(){return Xj("smart-tv")&&Xj("samsung")};
Xj=function(a){var b=g.Vc;return b?0<=b.toLowerCase().indexOf(a):!1};
ok=function(a){a=void 0===a?Zg:a;vi.call(this,new mi(a,2))};
qk=function(){var a=pk();mi.call(this,Zg.top,a,"geo")};
pk=function(){uh.getInstance();var a=di.getInstance();return a.C||a.B?0:2};
rk=function(){};
sk=function(){this.done=!1;this.u={sH:0,Lz:0,bW:0,CA:0,lw:-1,LH:0,KH:0,MH:0};this.F=null;this.I=!1;this.B=null;this.K=0;this.C=new li(this)};
uk=function(){var a=tk;a.I||(a.I=!0,xca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.D.apply(a,g.la(c))}),a.D())};
yca=function(){rk.getInstance();var a=Pj.getInstance();null!=a.u&&a.u.u?qi(a.u.u):di.getInstance().update(Zg)};
vk=function(a,b,c){if(!a.done&&(a.C.cancel(),0!=b.length)){a.B=null;try{yca();var d=Rh(),e=uh.getInstance();e.F=d;if(null!=Pj.getInstance().u)for(e=0;e<b.length;e++)Sba(b[e],d,c);else vh(Gh,"",{strategy_not_selected:1,bin:e.B},!0,void 0);for(d=0;d<b.length;d++)Tba(b[d]);++a.u.CA;zca()}finally{c?g.Gb(b,function(f){f.Xd.Zb=0}):a.C.schedule()}}};
xca=function(a,b){if(!a.F){var c=Mh(142,b,void 0);mh();var d;Ig.visibilityState?d="visibilitychange":Ig.mozVisibilityState?d="mozvisibilitychange":Ig.webkitVisibilityState&&(d="webkitvisibilitychange");d&&Uf(Ig,d,c,{capture:!1})&&(a.F=c)}};
wk=function(){var a=Pj.getInstance();if(null!=a.u){var b=a.u;g.Gb(Mj(),function(c){return Zi(c,b)})}};
zca=function(){var a=uh.getInstance();Ug(a.ob,"llp")};
xk=function(a,b){var c=a.K;Th&&(c+=b-Uh);return c};
Aca=function(a){var b=tk;a=void 0===a?function(){return{}}:a;
Lh.D="av-js";Gh.u=.01;yba([function(c){var d=uh.getInstance(),e={};e=(e.bin=d.B,e.type="error",e);d=Vg(d.ob);if(!b.B){var f=Zg.document,h=0<=Sh?Rh()-Sh:-1,l=Rh();-1==b.u.lw&&(h=l);var m=di.getInstance(),n=uh.getInstance(),p=Vg(n.ob),r=Mj();try{if(0<r.length){var t=m.u;t&&(p.bs=[t.Sd(),t.getHeight()]);var w=m.F;w&&(p.ps=[w.width,w.height]);Zg.screen&&(p.scs=[Zg.screen.width,Zg.screen.height])}else p.url=encodeURIComponent(Zg.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Sh;p.bin=n.B;void 0!==Zg.google_osd_load_pub_page_exp&&(p.olpp=Zg.google_osd_load_pub_page_exp);p.deb=[1,b.u.sH,b.u.Lz,b.u.CA,b.u.lw,0,b.C.B,b.u.LH,b.u.KH,b.u.MH].join("-");p.tvt=xk(b,l);m.B&&(p.inapp=1);if(null!==Zg&&Zg!=Zg.top){0<r.length&&(p.iframe_loc=encodeURIComponent(Zg.location.href.substring(0,512)));var x=m.K;p.is=[x.Sd(),x.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.Zb(b.B);w=uh.getInstance().u;1==Ug(w.C,"prf")?(x=new qh,f=w.u,h=0,-1<f.u&&(h=f.D.u.now()-f.u),x=Kf(x,1,
f.C+h),f=w.u,x=Kf(x,5,-1<f.u?f.B+1:f.B),x=Kf(x,2,w.B.u.C()),x=Kf(x,3,w.B.u.B()),x=Kf(x,4,w.B.u.u()),w={},f=new g.uf,h=g.Hf(x,1),h=null==h?h:+h,h=null==h?0:h,0!==h&&g.Af(f,1,h),h=If(x,2),0!==h&&g.zf(f,2,h),h=If(x,3),0!==h&&g.zf(f,3,h),h=If(x,4),0!==h&&g.zf(f,4,h),h=If(x,5),0!==h&&g.wf(f,5,h),x=g.vf(f),w=(w.pf=g.qf(x),w)):w={};g.bc(t,w);g.bc(c,e,d,t,a());if(e=Ii())d={},g.bc(c,(d.v=encodeURIComponent(e),d))}])};
Bca=function(){var a=yk||Zg;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("&")};
zk=function(a){return function(b){return void 0===b[a]?0:b[a]}};
Bk=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?Ak(c,a):c}}};
Ck=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 Ak(f,b,c)}};
Dk=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Ek=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}};
Ak=function(a,b,c){return void 0===c||c?g.Ke(a,function(d,e){return g.nb(b,e)}):g.Pc(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)})};
Hk=function(a,b){var c={sv:"877",cb:"j"};c.nas=Lj.u.length;c.msg=a;if(void 0!==b){var d=Fk(b);d&&(c.e=Gk[d])}return c};
Ik=function(a){return pc(a,"custom_metric_viewable")};
Fk=function(a){var b=Ik(a)?"custom_metric_viewable":a.toLowerCase();return Ub(yj,function(c){return c==b})};
Cca=function(){this.u=void 0;this.B=!1;this.C=0;this.D=-1;this.F="tos"};
Eca=function(a){try{var b=a.split(",");return b.length>g.Qb(Dca).length?null:(0,g.kh)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===Jk[e[0]]||!Jk[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
Fca=function(a,b){if(void 0==a.u)return 0;switch(a.F){case "mtos":return a.B?Si(b.u,a.u):Si(b.B,a.u);case "tos":return a.B?Qi(b.u,a.u):Qi(b.B,a.u)}return 0};
Kk=function(a,b,c,d){mj.call(this,b,d);this.K=a;this.I=c};
Lk=function(a){mj.call(this,"fully_viewable_audible_half_duration_impression",a)};
Mk=function(a,b){mj.call(this,a,b)};
Nk=function(){this.B=this.D=this.I=this.F=this.C=this.u=""};
Gca=function(){};
Ok=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.bc(f,a);void 0!==c&&g.bc(f,c);a=Ai(zi(new yi,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Pk=function(){};
Qk=function(a,b,c){oj.call(this,a,b,c)};
Rk=function(a){a=void 0===a?Zg:a;vi.call(this,new mi(a,2))};
Sk=function(a,b,c){oj.call(this,a,b,c)};
Tk=function(a){a=void 0===a?Zg:a;vi.call(this,new mi(a,2))};
Uk=function(){mi.call(this,Zg,2,"mraid");this.ba=0;this.W=this.X=!1;this.I=null;this.B=Xh(this.Te);this.C.u=new gg(0,0,0,0);this.fa=!1};
Vk=function(a,b,c){a.wk("addEventListener",b,c)};
Yk=function(a){uh.getInstance().D=!!a.wk("isViewable");Vk(a,"viewableChange",Hca);"loading"===a.wk("getState")?Vk(a,"ready",Wk):Xk(a)};
Xk=function(a){"string"===typeof a.B.hh.AFMA_LIDAR?(a.X=!0,Ica(a)):(a.B.compatibility=3,a.I="nc",oi(a,"w"))};
Ica=function(a){a.W=!1;var b=1==Ug(uh.getInstance().ob,"rmmt"),c=!!a.wk("isViewable");(b?!c:1)&&mh().setTimeout(Ph(524,function(){a.W||(Zk(a),Qh(540,Error()),a.I="mt",oi(a,"w"))}),500);
Jca(a);Vk(a,a.B.hh.AFMA_LIDAR,$k)};
Jca=function(a){var b=1==Ug(uh.getInstance().ob,"sneio"),c=void 0!==a.B.hh.AFMA_LIDAR_EXP_1,d=void 0!==a.B.hh.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.hh.AFMA_LIDAR_EXP_2=!0);c&&(a.B.hh.AFMA_LIDAR_EXP_1=!b)};
Zk=function(a){a.wk("removeEventListener",a.B.hh.AFMA_LIDAR,$k);a.X=!1};
al=function(a,b){if("loading"===a.wk("getState"))return new g.he(-1,-1);var c=a.wk(b);if(!c)return new g.he(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.he(-1,-1):new g.he(d,c)};
Wk=function(){try{var a=Uk.getInstance();a.wk("removeEventListener","ready",Wk);Xk(a)}catch(b){Qh(541,b)}};
$k=function(a,b){try{var c=Uk.getInstance();c.W=!0;var d=a?new gg(a.y,a.x+a.width,a.y+a.height,a.x):new gg(0,0,0,0);var e=Rh(),f=gi();var h=new ji(e,f,c);h.u=d;h.volume=b;c.Vj(h)}catch(l){Qh(542,l)}};
Hca=function(a){var b=uh.getInstance(),c=Uk.getInstance();a&&!b.D&&(b.D=!0,c.fa=!0,c.I&&oi(c,"w",!0))};
bl=function(){this.rd=!1;this.u=null;this.C=new Pk;this.B=null;var a={};this.K=(a.start=this.cJ,a.firstquartile=this.XI,a.midpoint=this.ZI,a.thirdquartile=this.dJ,a.complete=this.VI,a.pause=this.vx,a.resume=this.pF,a.skip=this.bJ,a.viewable_impression=this.Qj,a.mute=this.Dn,a.unmute=this.Dn,a.fullscreen=this.YI,a.exitfullscreen=this.WI,a.fully_viewable_audible_half_duration_impression=this.Qj,a.measurable_impression=this.Qj,a.abandon=this.vx,a.engagedview=this.Qj,a.impression=this.Qj,a.creativeview=
this.Qj,a.progress=this.Dn,a.custom_metric_viewable=this.Qj,a.bufferstart=this.vx,a.bufferfinish=this.pF,a);a={};this.W=(a.overlay_resize=this.aJ,a.abandon=this.ew,a.close=this.ew,a.collapse=this.ew,a.overlay_unmeasurable_impression=function(b){return Aj(b,"overlay_unmeasurable_impression",gi())},a.overlay_viewable_immediate_impression=function(b){return Aj(b,"overlay_viewable_immediate_impression",gi())},a.overlay_unviewable_impression=function(b){return Aj(b,"overlay_unviewable_impression",gi())},
a.overlay_viewable_end_of_session_impression=function(b){return Aj(b,"overlay_viewable_end_of_session_impression",gi())},a);
uh.getInstance().B=3;Kca(this);this.P=this.D=!1};
cl=function(a,b,c,d){b=a.Hp(null,d,!0,b);b.F=c;sca([b],a.D);return b};
Lca=function(a,b,c){iba(b);var d=a.B;g.Gb(b,function(e){var f=g.Pc(e.u,function(h){var l=Eca(h);if(null==l)h=null;else if(h=new Cca,null!=l.visible&&(h.u=l.visible/100),null!=l.audible&&(h.B=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.C=l,h.D=-1):(h.C=-1,h.D=l);h.F=void 0===m?"tos":m}return h});
ci(f,function(h){return null==h})||cca(c,new Kk(e.id,e.event,f,d))})};
Mca=function(a){a=a.B;return[new Mk("viewable_impression",a),new Lk(a)]};
Nca=function(){var a=[];di.getInstance();var b=uh.getInstance();Ug(b.ob,"dov");a.push(qk.getInstance());Ug(b.ob,"mvp_lv")&&a.push(Uk.getInstance());b=[new Rk,new Tk];b.push(new Rj(a));b.push(new ok(Zg));return b};
Oca=function(a){if(!a.rd){a.rd=!0;try{var b=Rh(),c=uh.getInstance(),d=di.getInstance();Sh=b;c.C=79463069;"o"!==a.u&&(yk=Wh(Zg).Te);if(sba()){tk.u.Lz=0;tk.u.lw=Rh()-b;var e=Nca(),f=Pj.getInstance();f.B=e;Qj(f,function(){dl(a)})?tk.done||(wk(),pi(f.u.u,a),uk()):d.C?dl(a):uk()}else el=!0}catch(h){throw Lj.reset(),h;
}}};
gl=function(a){tk.C.cancel();fl=a;tk.done=!0};
hl=function(a){if(a.u)return a.u;var b=Pj.getInstance().u;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
il=function(a,b,c){if(null==a.B)return b.Gn|=4,!1;a=kj(a.B,c,b);b.Gn|=a;return 0==a};
Pca=function(){g.Gb(Lj.u,function(a){return rj(a)})};
dl=function(a){if(!a.P){a.P=!0;var b=[new ok(Zg)],c=Pj.getInstance();c.B=b;Qj(c,function(){gl("i")})?tk.done||(wk(),pi(c.u.u,a),uk()):gl("i")}};
jl=function(a,b,c){if(!b.Ma){var d=Aj(b,"start",gi());a=a.C.u(d).u;var e={id:"lidarv"};e.r=c;e.v="877v";Bd(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=Bca();Bd(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+Ai(zi(new yi,e));Ji(c);b.Ma=!0}};
kl=function(a,b,c){vk(tk,[a],!gi());xj(a,c);4!=c&&wj(a.ba,c,a.Fr);return Aj(a,b,gi())};
Kca=function(a){Aca(function(){var b=ll();null!=a.u&&(b.sdk=a.u);var c=Pj.getInstance();null!=c.u&&(b.avms=c.u.getName());return b})};
Qca=function(a,b,c,d){if(a.D)var e=Jj(Lj,b);else e=Kj(Lj,c),null!==e&&e.ue!==b&&(a.fo(e),e=null);e||(b=a.Hp(c,Rh(),!1,b),0==Lj.B.length&&(uh.getInstance().C=79463069),Oj([b]),e=b,e.F=hl(a),d&&(e.jn=d));return e};
Rca=function(a,b){b.N=0;for(var c in ml)null==a[c]&&(b.N|=ml[c]);nl(a,"currentTime");nl(a,"duration")};
Sca=function(a){g.Gb(Lj.u,function(b){3==b.Fd&&a.fo(b)})};
nl=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
ll=function(){var a=di.getInstance(),b={};return b.sv="877",b["if"]=a.C?"1":"0",b.nas=String(Lj.u.length),b};
ol=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
ql=function(a){return!!(1<<a&pl)};
Xca=function(){try{Tca()}catch(d){}var a="a=1&b="+pl+"&",b=[],c=99;g.Gb(Uca,function(d,e){var f=!1;try{f=d(Zg)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Gb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Gb(Vca,function(d){var e="false";try{e=d(Zg)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Gb(Wca,function(d){var e="";try{e=g.rf(d(Zg))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
Tca=function(){if(!rl){var a=function(){sl=!0;Zg.document.removeEventListener("webdriver-evaluate",a,!0)};
Zg.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){tl=!0;Zg.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Zg.document.addEventListener("webdriver-evaluate-response",b,!0);rl=!0}};
ul=function(){this.B=-1};
vl=function(){this.B=64;this.u=Array(4);this.F=Array(this.B);this.D=this.C=0;this.reset()};
wl=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.u[0];c=a.u[1];e=a.u[2];var f=a.u[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.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.u[2]=a.u[2]+e&4294967295;a.u[3]=a.u[3]+f&4294967295};
xl=function(){this.B=null};
yl=function(a){return function(b){var c=new vl;c.update(b+a);return Uaa(c.digest()).slice(-8)}};
zl=function(a,b){this.B=a;this.C=b};
kj=function(a,b,c){var d=a.u(c);if("function"===typeof d){var e={};e=(e.sv="877",e.cb="j",e.e=Yca(b),e);var f=Aj(c,b,gi());g.bc(e,f);c.lG[b]=f;a=2==c.Mh()?Lba(e).join("&"):a.C.u(e).u;try{return d(c.ue,a,b),0}catch(h){return 2}}else return 1};
Yca=function(a){var b=Ik(a)?"custom_metric_viewable":a;a=Ub(yj,function(c){return c==b});
return Gk[a]};
Al=function(a,b,c){zl.call(this,a,b);this.D=c};
Bl=function(){bl.call(this);this.I=null;this.F=!1;this.N={};this.C=new xl};
Zca=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.B&&Array.isArray(c)&&Lca(a,c,b)};
$ca=function(a,b,c){var d=Jj(Lj,b);d||(d=c.opt_nativeTime||-1,d=cl(a,b,hl(a),d),c.opt_osdId&&(d.jn=c.opt_osdId));return d};
ada=function(a,b,c){var d=Jj(Lj,b);d||(d=cl(a,b,"n",c.opt_nativeTime||-1));return d};
bda=function(a,b){var c=Jj(Lj,b);c||(c=cl(a,b,"h",-1));return c};
cda=function(a){uh.getInstance();switch(hl(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};
Dl=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.bc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.u(Hk("ol",d));if(void 0!==d)if(void 0!==Fk(d))if(el)b=Hk("ue",d);else if(Oca(a),"i"==fl)b=Hk("i",d),b["if"]=0;else if(b=a.Ir(b,e))if(a.D&&3==b.Fd)b="stopped";else{b:{"i"==fl&&(b.Rm=!0,a.Vx());c=e.opt_fullscreen;void 0!==c&&Yi(b,!!c);var f;if(c=!di.getInstance().B)(c=Ac(g.Vc,"CrKey")||Ac(g.Vc,"PlayStation")||Ac(g.Vc,"Roku")||Dba()||Ac(g.Vc,"Xbox"))||(c=g.Vc,c=Ac(c,"AppleTV")||
Ac(c,"Apple TV")||Ac(c,"CFNetwork")||Ac(c,"tvOS")),c||(c=g.Vc,c=Ac(c,"sdk_google_atv_x86")||Ac(c,"Android TV")),c=!c;c&&(mh(),c=0===$g(Ig));if(f=c){switch(b.Mh()){case 1:jl(a,b,"pv");break;case 2:a.Mx(b)}gl("pv")}c=d.toLowerCase();if(!f&&g.nb(dda,c)&&0==b.Fd){"i"!=fl&&(tk.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;Vh=f="number"===typeof f?f:Rh();b.gr=!0;var h=gi();b.Fd=1;b.nh={};b.nh.firstquartile=!1;b.nh.midpoint=!1;b.nh.thirdquartile=!1;b.nh.complete=!1;b.nh.pause=!1;b.nh.skip=!1;b.nh.viewable_impression=
!1;b.nh.fully_viewable_audible_half_duration_impression=!1;b.jv=0;h||(b.Af().N=f);vk(tk,[b],!h)}(f=b.Zl[c])&&gj(b.Qd,f);g.nb(eda,c)&&(b.cF=!0,rj(b));switch(b.Mh()){case 1:var l=Ik(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.W[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Hk(void 0,c);g.bc(e,d);d=e;break b}d=void 0}3==b.Fd&&(a.D?b.zc&&b.zc.Yo():a.fo(b));b=d}else b=Hk("nf",d);else b=void 0;else el?b=Hk("ue"):(b=a.Ir(b,e))?(d=Hk(),g.bc(d,zj(b,!0,!1,!1)),b=d):b=Hk("nf");return"string"===typeof b?
a.D&&"stopped"===b?Cl:a.C.u(void 0):a.C.u(b)};
El=function(a){return uh.getInstance(),"h"!=hl(a)&&hl(a),!1};
Fl=function(a){var b={};return b.viewability=a.u,b.googleViewability=a.C,b.moatInit=a.F,b.moatViewability=a.I,b.integralAdsViewability=a.D,b.doubleVerifyViewability=a.B,b};
Gl=function(a,b,c){c=void 0===c?{}:c;a=Dl(Bl.getInstance(),b,c,a);return Fl(a)};
Hl=function(a,b){b=void 0===b?!1:b;var c=Bl.getInstance().Ir(a,{});c?qj(c):b&&(c=Bl.getInstance().Hp(null,Rh(),!1,a),c.Fd=3,Oj([c]))};
Il=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));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"moz-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a&&"chrome-untrusted"!==a&&"chrome"!==a&&"app"!==a&&"devtools"!==a)throw Error("Invalid URI scheme in origin: "+
a);c="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};
fda=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,w=0;64>w;w+=4)t[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],D=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=D^x&(y^D);var K=1518500249}else G=x^y^D,K=1859775393;else 60>w?(G=x&y|D&(x|y),K=2400959708):(G=x^y^D,K=3395469782);G=((r<<5|r>>>27)&4294967295)+G+E+K+t[w]&4294967295;E=D;D=y;y=(x<<30|x>>>2)&4294967295;x=r;r=G}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+D&4294967295;e[4]=e[4]+E&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],x=0,y=r.length;x<y;++x)w.push(r.charCodeAt(x));r=w}t||(t=r.length);w=0;if(0==n)for(;w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=r[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)r[t++]=e[w]>>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,SH:function(){for(var r=d(),t="",w=0;w<r.length;w++)t+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return t}}};
gda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Gb(d,function(l){e.push(l)}),Jl(e.join(" "));
var f=[],h=[];g.Gb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.ob(f)?[c,b,a]:[f.join(":"),c,b,a];g.Gb(d,function(l){e.push(l)});
a=Jl(e.join(" "));a=[c,a];g.ob(h)||a.push(h.join(""));return a.join("_")};
Jl=function(a){var b=fda();b.update(a);return b.SH().toLowerCase()};
g.Kl=function(a){var b=Il(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new Qf(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:")||0==b.indexOf("moz-extension:"))?g.v.__SAPISID:g.v.__APISID,c||(c=new Qf(document),c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(g.v.location.href);return d&&
c&&b?[b,gda(Il(d),c,a||null)].join(" "):null}return null};
g.Ll=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Nl=function(a,b){g.Ll.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.B=null;a&&this.init(a,b)};
Pl=function(a){return!(!a||!a[Ol])};
ida=function(a,b,c,d,e){this.listener=a;this.u=null;this.src=b;this.type=c;this.capture=!!d;this.Pr=e;this.key=++hda;this.sn=this.Mq=!1};
Ql=function(a){a.sn=!0;a.listener=null;a.u=null;a.src=null;a.Pr=null};
Rl=function(a){this.src=a;this.listeners={};this.u=0};
Sl=function(a,b){var c=b.type;c in a.listeners&&g.rb(a.listeners[c],b)&&(Ql(b),0==a.listeners[c].length&&(delete a.listeners[c],a.u--))};
Tl=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.sn&&f.listener==b&&f.capture==!!c&&f.Pr==d)return e}return-1};
Vl=function(a,b,c,d,e){if(d&&d.once)return Ul(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Vl(a,b[f],c,d,e);return null}c=Wl(c);return Pl(a)?a.ra(b,c,g.Sa(d)?!!d.capture:!!d,e):Xl(a,b,c,!1,d,e)};
Xl=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Sa(e)?!!e.capture:!!e,l=Yl(a);l||(a[Zl]=l=new Rl(a));c=l.add(b,c,d,h,f);if(c.u)return c;d=jda();c.u=d;d.src=a;d.listener=c;if(a.addEventListener)kda||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent($l(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");am++;return c};
jda=function(){var a=lda,b=bm?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b};
Ul=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ul(a,b[f],c,d,e);return null}c=Wl(c);return Pl(a)?a.Hw(b,c,g.Sa(d)?!!d.capture:!!d,e):Xl(a,b,c,!0,d,e)};
cm=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)cm(a,b[f],c,d,e);else d=g.Sa(d)?!!d.capture:!!d,c=Wl(c),Pl(a)?a.Bb(b,c,d,e):a&&(a=Yl(a))&&(b=a.xo(b,c,d,e))&&dm(b)};
dm=function(a){if("number"!==typeof a&&a&&!a.sn){var b=a.src;if(Pl(b))Sl(b.C,a);else{var c=a.type,d=a.u;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent($l(c),d):b.addListener&&b.removeListener&&b.removeListener(d);am--;(c=Yl(b))?(Sl(c,a),0==c.u&&(c.src=null,b[Zl]=null)):Ql(a)}}};
$l=function(a){return a in em?em[a]:em[a]="on"+a};
gm=function(a,b,c,d){var e=!0;if(a=Yl(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.sn&&(f=fm(f,d),e=e&&!1!==f)}return e};
fm=function(a,b){var c=a.listener,d=a.Pr||a.src;a.Mq&&dm(a);return c.call(d,b)};
lda=function(a,b){if(a.sn)return!0;if(!bm){var c=b||g.Na("window.event"),d=new Nl(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.u&&0<=h;h--){d.currentTarget=c[h];var l=gm(c[h],f,!0,d);e=e&&l}for(h=0;!d.u&&h<c.length;h++)d.currentTarget=c[h],l=gm(c[h],f,!1,d),e=e&&l}return e}return fm(a,new Nl(b,
this))};
Yl=function(a){a=a[Zl];return a instanceof Rl?a:null};
Wl=function(a){if("function"===typeof a)return a;a[hm]||(a[hm]=function(b){return a.handleEvent(b)});
return a[hm]};
g.im=function(){g.B.call(this);this.C=new Rl(this);this.xa=this;this.ka=null};
jm=function(a,b,c,d){b=a.C.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.sn&&h.capture==c){var l=h.listener,m=h.Pr||h.src;h.Mq&&Sl(a.C,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
km=function(a,b){this.C=a;this.D=b;this.B=0;this.u=null};
lm=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.u,a.u=b)};
mm=function(a){g.v.setTimeout(function(){throw a;},0)};
om=function(a){a=mda(a);"function"!==typeof g.v.setImmediate||g.v.Window&&g.v.Window.prototype&&!Wc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(nm||(nm=nda()),nm(a)):g.v.setImmediate(a)};
nda=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Wc("Presto")&&(a=function(){var e=g.Fe("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.z)(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&&!Wc("Trident")&&!Wc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.dA;c.dA=null;e()}};
return function(e){d.next={dA:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
pm=function(){this.B=this.u=null};
qm=function(){this.next=this.scope=this.u=null};
g.um=function(a,b){rm||oda();sm||(rm(),sm=!0);tm.add(a,b)};
oda=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);rm=function(){a.then(vm)}}else rm=function(){om(vm)}};
vm=function(){for(var a;a=tm.remove();){try{a.u.call(a.scope)}catch(b){mm(b)}lm(wm,a)}sm=!1};
xm=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
zm=function(a){this.Ca=0;this.vk=void 0;this.mm=this.Fj=this.Il=null;this.Mr=this.Bv=!1;if(a!=g.Oa)try{var b=this;a.call(void 0,function(c){ym(b,2,c)},function(c){ym(b,3,c)})}catch(c){ym(this,3,c)}};
Am=function(){this.next=this.context=this.onRejected=this.C=this.u=null;this.B=!1};
Cm=function(a,b,c){var d=Bm.get();d.C=a;d.onRejected=b;d.context=c;return d};
Dm=function(a){if(a instanceof zm)return a;var b=new zm(g.Oa);ym(b,2,a);return b};
Em=function(a){return new zm(function(b,c){c(a)})};
Gm=function(a,b,c){Fm(a,b,c,null)||g.um(g.Va(b,a))};
pda=function(a){return new zm(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Gm(e,b,c)})};
Hm=function(a){return new zm(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],Gm(m,g.Va(f,l),h);
else b(e)})};
Jm=function(a,b){var c=Cm(b,b,void 0);c.B=!0;Im(a,c);return a};
Lm=function(a,b){return Km(a,null,b,void 0)};
Mm=function(a,b){if(0==a.Ca)if(a.Il){var c=a.Il;if(c.Fj){for(var d=0,e=null,f=null,h=c.Fj;h&&(h.B||(d++,h.u==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Ca&&1==d?Mm(c,b):(f?(d=f,d.next==c.mm&&(c.mm=d),d.next=d.next.next):Nm(c),Om(c,e,3,b)))}a.Il=null}else ym(a,3,b)};
Im=function(a,b){a.Fj||2!=a.Ca&&3!=a.Ca||Pm(a);a.mm?a.mm.next=b:a.Fj=b;a.mm=b};
Km=function(a,b,c,d){var e=Cm(null,null,null);e.u=new zm(function(f,h){e.C=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 Qm?h(l):f(m)}catch(n){h(n)}}:h});
e.u.Il=a;Im(a,e);return e.u};
ym=function(a,b,c){0==a.Ca&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ca=1,Fm(c,a.OQ,a.PQ,a)||(a.vk=c,a.Ca=b,a.Il=null,Pm(a),3!=b||c instanceof Qm||qda(a,c)))};
Fm=function(a,b,c,d){if(a instanceof zm)return Im(a,Cm(b||g.Oa,c||null,d)),!0;if(xm(a))return a.then(b,c,d),!0;if(g.Sa(a))try{var e=a.then;if("function"===typeof e)return rda(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
rda=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)}};
Pm=function(a){a.Bv||(a.Bv=!0,g.um(a.ZH,a))};
Nm=function(a){var b=null;a.Fj&&(b=a.Fj,a.Fj=b.next,b.next=null);a.Fj||(a.mm=null);return b};
Om=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.Mr;a=a.Il)a.Mr=!1;if(b.u)b.u.Il=null,Rm(b,c,d);else try{b.B?b.C.call(b.context):Rm(b,c,d)}catch(e){Sm.call(null,e)}lm(Bm,b)};
Rm=function(a,b,c){2==b?a.C.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
qda=function(a,b){a.Mr=!0;g.um(function(){a.Mr&&Sm.call(null,b)})};
Qm=function(a){Za.call(this,a)};
g.Tm=function(a,b){g.im.call(this);this.Le=a||1;this.eq=b||g.v;this.Yz=(0,g.z)(this.ze,this);this.gC=g.A()};
g.Um=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.z)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.z)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.v.setTimeout(a,b||0)};
Vm=function(a,b){var c=null;return Lm(new zm(function(d,e){c=g.Um(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
g.Wm=function(a,b){this.B={};this.u=[];this.Bk=this.C=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.Wm)for(c=a.mg(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Ym=function(a){if(a.C!=a.u.length){for(var b=0,c=0;b<a.u.length;){var d=a.u[b];Xm(a.B,d)&&(a.u[c++]=d);b++}a.u.length=c}if(a.C!=a.u.length){var e={};for(c=b=0;b<a.u.length;)d=a.u[b],Xm(e,d)||(a.u[c++]=d,e[d]=1),b++;a.u.length=c}};
Xm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Zm=function(a,b){this.u=this.N=this.F="";this.D=null;this.I=this.B="";this.K=!1;var c;a instanceof g.Zm?(this.K=void 0!==b?b:a.K,g.$m(this,a.F),this.N=a.N,g.an(this,a.u),g.bn(this,a.D),this.B=a.B,cn(this,a.C.clone()),this.I=a.I):a&&(c=String(a).match(wd))?(this.K=!!b,g.$m(this,c[1]||"",!0),this.N=dn(c[2]||""),g.an(this,c[3]||"",!0),g.bn(this,c[4]),this.B=dn(c[5]||"",!0),cn(this,c[6]||"",!0),this.I=dn(c[7]||"")):(this.K=!!b,this.C=new en(null,this.K))};
g.$m=function(a,b,c){a.F=c?dn(b,!0):b;a.F&&(a.F=a.F.replace(/:$/,""))};
g.an=function(a,b,c){a.u=c?dn(b,!0):b};
g.bn=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
cn=function(a,b,c){b instanceof en?(a.C=b,sda(a.C,a.K)):(c||(b=fn(b,tda)),a.C=new en(b,a.K))};
g.gn=function(a){return a instanceof g.Zm?a.clone():new g.Zm(a,void 0)};
dn=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
fn=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,uda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
uda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
en=function(a,b){this.B=this.u=null;this.C=a||null;this.D=!!b};
hn=function(a){a.u||(a.u=new g.Wm,a.B=0,a.C&&Bd(a.C,function(b,c){a.add(md(b),c)}))};
kn=function(a,b){hn(a);b=jn(a,b);return Xm(a.u.B,b)};
g.ln=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.u.set(jn(a,b),g.ub(c)),a.B=a.B+c.length)};
jn=function(a,b){var c=String(b);a.D&&(c=c.toLowerCase());return c};
sda=function(a,b){b&&!a.D&&(hn(a),a.C=null,a.u.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.ln(this,e,c))},a));
a.D=b};
nn=function(a){if(g.sc(g.pd(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Zm(a)}catch(c){return null!=g.jb(mn,function(d){return 0<a.search(d)})}return b.I.match(vda)?!0:null!=g.jb(mn,function(c){return null!=a.match(c)})};
g.on=function(a,b){return a.replace(wda,function(c,d){try{var e=null!==b&&d in b?b[d]:void 0;if(null==e)return c;e=e.toString();if(""==e||!g.sc(g.pd(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
pn=function(){this.B=[];this.u=-1};
xda=function(a){-1==a.u&&(a.u=g.kh(a.B,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.u};
g.qn=function(a,b,c){g.B.call(this);this.u=null;this.D=!1;this.I=a;this.F=c;this.B=b||window;this.C=(0,g.z)(this.sB,this)};
rn=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
sn=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.H=function(a,b,c){g.B.call(this);this.u=a;this.Le=b||0;this.B=c;this.C=(0,g.z)(this.tB,this)};
g.tn=function(a){a.stop();a.tB()};
un=function(){this.B=64;this.u=[];this.I=[];this.K=[];this.F=[];this.F[0]=128;for(var a=1;a<this.B;++a)this.F[a]=0;this.D=this.C=0;this.reset()};
vn=function(a,b,c){c||(c=0);var d=a.K;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.u[0];c=a.u[1];var h=a.u[2],l=a.u[3],m=a.u[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.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+c&4294967295;a.u[2]=a.u[2]+h&4294967295;a.u[3]=a.u[3]+l&4294967295;a.u[4]=a.u[4]+m&4294967295};
wn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
xn=function(a){return a.classList?a.classList:wn(a).match(/\S+/g)||[]};
yn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.zn=function(a,b){return a.classList?a.classList.contains(b):g.nb(xn(a),b)};
g.I=function(a,b){if(a.classList)a.classList.add(b);else if(!g.zn(a,b)){var c=wn(a);yn(a,c+(0<c.length?" "+b:b))}};
g.An=function(a,b){if(a.classList)g.Gb(b,function(f){g.I(a,f)});
else{var c={};g.Gb(xn(a),function(f){c[f]=!0});
g.Gb(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;yn(a,d)}};
g.Bn=function(a,b){a.classList?a.classList.remove(b):g.zn(a,b)&&yn(a,g.Ke(xn(a),function(c){return c!=b}).join(" "))};
g.Cn=function(a,b){a.classList?g.Gb(b,function(c){g.Bn(a,c)}):yn(a,g.Ke(xn(a),function(c){return!g.nb(b,c)}).join(" "))};
g.J=function(a,b,c){c?g.I(a,b):g.Bn(a,b)};
g.Dn=function(){g.im.call(this);this.Ca=0;this.endTime=this.startTime=null};
yda=function(a,b){Array.isArray(b)||(b=[b]);var c=g.Pc(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.F(a,"transition",c.join(","))};
En=function(a,b,c,d,e){g.Dn.call(this);this.u=a;this.F=b;this.K=c;this.B=d;this.I=Array.isArray(e)?e:[e]};
Fn=function(a,b,c,d){return new En(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Ada=function(a){a=Bc(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 zda))return null}return a};
Gn=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Hn=function(a,b,c,d){if(a)return a.apply(b,d);if(g.ye&&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)};
Fda=function(a){if(!a)return Rc;var b=document.createElement("div").style,c=Bda(a);g.Gb(c,function(d){var e=g.Ae&&d in Cda?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");pc(e,"--")||pc(e,"var")||(d=Hn(Dda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Ada(d),null!=d&&Hn(Eda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Iaa(b.cssText||"")};
Bda=function(a){g.Ra(a)?a=g.ub(a):(a=g.Qb(a),g.rb(a,"cssText"));return a};
g.Jn=function(a){var b,c=b=0,d=!1;a=a.split(Gda);for(var e=0;e<a.length;e++){var f=a[e];g.In.test(f)?(b++,c++):Hda.test(f)?d=!0:Ida.test(f)?c++:Jda.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Kn=function(a,b,c,d,e,f,h,l){this.u=a;this.F=b;this.C=c;this.I=d;this.D=e;this.K=f;this.B=h;this.N=l};
g.Ln=function(a,b){if(0==b)return a.u;if(1==b)return a.B;var c=g.de(a.u,a.C,b),d=g.de(a.C,a.D,b),e=g.de(a.D,a.B,b);c=g.de(c,d,b);d=g.de(d,e,b);return g.de(c,d,b)};
g.Mn=function(a,b,c){this.D=a;this.F=b;this.u=this.C=a;this.I=c||0};
g.Nn=function(a){a.u=Math.min(a.F,2*a.u);a.C=Math.min(a.F,a.u+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.u):0));a.B++};
On=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Kda=function(a,b){for(var c=[a],d=b.length-1;0<=d;--d)c.push(typeof b[d],b[d]);return c.join("\x0B")};
Pn=function(a){return(a=a.exec(g.Vc))?a[1]:""};
Qn=function(a){return 0<=g.Dc(Lda,a)};
g.Rn=function(a){g.B.call(this);this.F=1;this.C=[];this.D=0;this.u=[];this.B={};this.I=!!a};
Mda=function(a,b,c){g.um(function(){a.apply(b,c)})};
g.Sn=function(a){this.u=a};
Tn=function(a){this.u=a};
Un=function(a){this.data=a};
Vn=function(a){return void 0===a||a instanceof Un?a:new Un(a)};
Wn=function(a){this.u=a};
g.Xn=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.A()||!!b&&b>g.A()};
g.Yn=function(a){this.u=a};
Nda=function(){};
Zn=function(){};
$n=function(a){this.u=a};
ao=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.u=a};
bo=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.u=a};
eo=function(a,b){this.B=a;this.u=null;if(g.ye&&!g.ae(9)){co||(co=new g.Wm);this.u=co.get(a);this.u||(b?this.u=document.getElementById(b):(this.u=document.createElement("userdata"),this.u.addBehavior("#default#userData"),document.body.appendChild(this.u)),co.set(a,this.u));try{this.u.load(this.B)}catch(c){this.u=null}}};
fo=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Oda[b]})};
go=function(a){try{a.u.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
ho=function(a,b){this.B=a;this.u=b+"::"};
g.io=function(a){var b=new ao;return b.isAvailable()?a?new ho(b,a):b:null};
jo=function(a,b){this.u=a;this.B=b};
ko=function(a){this.u=[];if(a)a:{if(a instanceof ko){var b=a.mg();a=a.Ze();if(0>=this.u.length){for(var c=this.u,d=0;d<b.length;d++)c.push(new jo(b[d],a[d]));break a}}else b=g.Qb(a),a=g.Pb(a);for(d=0;d<b.length;d++)g.lo(this,b[d],a[d])}};
g.lo=function(a,b,c){var d=a.u;d.push(new jo(b,c));b=d.length-1;a=a.u;for(c=a[b];0<b;)if(d=b-1>>1,a[d].u>c.u)a[b]=a[d],b=d;else break;a[b]=c};
g.mo=function(){ko.call(this)};
no=function(){};
oo=function(a){g.Gf(this,a,Pda,null)};
po=function(a){g.Gf(this,a,null,null)};
Qda=function(a,b){for(;ef(b)&&4!=b.B;)switch(b.C){case 1:var c=kf(b);g.Jf(a,1,c);break;case 2:c=kf(b);g.Jf(a,2,c);break;case 3:c=kf(b);g.Jf(a,3,c);break;case 4:c=kf(b);g.Jf(a,4,c);break;case 5:c=cf(b.u);g.Jf(a,5,c);break;default:ff(b)}return a};
Rda=function(a){a=a.split("");var b=[-1138939380,1118506588,function(c){c.reverse()},
-987858300,-2121909783,"push",-1646970617,-407095912,751357010,function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
1056513443,-30076910,null,2059264821,-1015500499,-1341627320,1711627588,1999494564,1435699540,1017833064,a,1911597803,null,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(d,1)},
1163833794,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
-68757604,587364770,1668595505,1393095551,488292695,114173476,-1320197796,1777758836,function(c,d){for(var e=64,f=[];++e-f.length-32;){switch(e){case 91:e=44;continue;case 123:e=65;break;case 65:e-=18;continue;case 58:e=96;continue;case 46:e=95}f.push(String.fromCharCode(e))}c.forEach(function(h,l,m){this.push(m[l]=f[(f.indexOf(h)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
-1295550131,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
-4792822,a,null,1039455390,a,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
1163833794,-43126315,1293149508,-383653069,-987858300,1913110470,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
-925378491,627546413,-204712690,-1320197796,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})}];
b[12]=b;b[22]=b;b[39]=b;b[36](b[20],b[19]);b[49](b[39],b[15]);b[36](b[12],b[6]);b[36](b[0],b[35]);b[54](b[12],b[26]);b[35](b[53],b[13]);b[34](b[31],b[40]);b[5](b[50],b[2]);b[28](b[12],b[16]);b[15](b[33],b[43]);b[28](b[31],b[40]);b[28](b[4],b[22]);b[1](b[31]);b[5](b[7]);b[39](b[42],b[12]);b[28](b[42],b[2]);b[39](b[21],b[45]);b[13](b[21],b[3]);b[53](b[42]);b[20](b[40],b[29]);b[13](b[7],b[51]);b[13](b[23],b[46]);b[15](b[18],b[30]);b[16](b[46],b[2]);b[33](b[3],b[40]);b[35](b[17],b[13]);b[16](b[46],b[14]);
b[16](b[19],b[44]);b[35](b[3],b[27]);b[22](b[36],b[18]);b[9](b[36],b[37]);b[5](b[2],b[28]);b[18](b[41],b[6]);b[32](b[19]);b[49](b[33],b[20]);b[12](b[23],b[11]);b[49](b[25],b[41]);b[38](b[23],b[51]);b[7](b[33],b[10]);b[15](b[35]);b[49](b[29],b[14]);b[47](b[31],b[4]);return a.join("")};
ro=function(a){var b=arguments;1<b.length?qo[b[0]]=b[1]:1===b.length&&Object.assign(qo,b[0])};
g.L=function(a,b){return a in qo?qo[a]:b};
so=function(a){return g.L(a,void 0)};
g.uo=function(a){a=to(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.vo=function(a,b){var c=to(a);return void 0===c&&void 0!==b?b:Number(c||0)};
wo=function(a){a=to(a);return Array.isArray(a)?g.Pc(a,function(b){return String(b||"")}):[String(a||"")]};
to=function(a){var b=g.L("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.L("EXPERIMENT_FLAGS",{})[a]};
xo=function(){var a=[],b=g.L("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.L("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
zo=function(a,b,c){a&&(a.dataset?a.dataset[yo(b)]=String(c):a.setAttribute("data-"+b,c))};
Ao=function(a){return a?a.dataset?a.dataset[yo("loaded")]:a.getAttribute("data-loaded"):null};
yo=function(a){return Bo[a]||(Bo[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Sda=function(a){Co.forEach(function(b){return b(a)})};
Do=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.N(b),Sda(b)}}:a};
g.N=function(a,b,c,d){var e=g.Na("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"ERROR",b,c,d]),ro("ERRORS",e))};
g.Eo=function(a,b,c,d){var e=g.Na("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"WARNING",b,c,d]),ro("ERRORS",e))};
g.Fo=function(a,b){"function"===typeof a&&(a=Do(a));return window.setTimeout(a,b)};
Ho=function(a,b){"function"===typeof a&&(a=Do(a));return window.setInterval(a,b)};
g.Io=function(a){window.clearTimeout(a)};
g.No=function(a,b,c){var d=g.Jo();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Ko[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Lo[a]?h():g.Fo(h,0)}catch(l){g.N(l)}},c);
Ko[e]=!0;Mo[a]||(Mo[a]=[]);Mo[a].push(e);return e}return 0};
g.Oo=function(a){var b=g.Jo();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Gb(a,function(c){b.unsubscribeByKey(c);delete Ko[c]}))};
g.Po=function(a,b){var c=g.Jo();return c?c.publish.apply(c,arguments):!1};
Ro=function(a){var b=g.Jo();if(b)if(b.clear(a),a)Qo(a);else for(var c in Mo)Qo(c)};
g.Jo=function(){return g.v.ytPubsubPubsubInstance};
Qo=function(a){Mo[a]&&(a=Mo[a],g.Gb(a,function(b){Ko[b]&&delete Ko[b]}),a.length=0)};
g.So=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(Tda,""),c=c.replace(Uda,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Vda(a,b,c)};
Vda=function(a,b,c){c=void 0===c?null:c;var d=To(a),e=document.getElementById(d),f=e&&Ao(e),h=e&&!f;f?b&&b():(b&&(f=g.No(d,b),b=""+g.Ua(b),Uo[b]=f),h||(e=Wda(a,d,function(){Ao(e)||(zo(e,"loaded","true"),g.Po(d),g.Fo(g.Va(Ro,d),0))},c)))};
Wda=function(a,b,c,d){d=void 0===d?null:d;var e=g.Fe("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.jd(e,g.ng(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
To=function(a){var b=document.createElement("a");g.id(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+qd(a)};
Wo=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Vo+"VisibilityState";if(b in a)return a[b]};
Xo=function(a,b){var c;ci(a,function(d){c=b[d];return!!c});
return c};
Yo=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 Xda||(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.u=a.pageX;this.B=a.pageY}}catch(e){}};
Zo=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.u=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
Yda=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 Ub($o,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Sa(e[4])&&g.Sa(d)&&g.Yb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.cp=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Yda(a,b,c,d);if(e)return e;e=++ap.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Yo(l);if(!Re(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Yo(l);
l.currentTarget=a;return c.call(a,l)};
h=Do(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),bp()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);$o[e]=[a,b,c,h,d];return e};
Zda=function(a,b){var c=document.body||document;return g.cp(c,"click",function(d){var e=Re(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.dp=function(a){a&&("string"==typeof a&&(a=[a]),g.Gb(a,function(b){if(b in $o){var c=$o[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?bp()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete $o[b]}}))};
g.ep=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
fp=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.ep(a)};
gp=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};
hp=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.fe(b,c)};
g.ip=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.jp=function(a){a=a||window.event;return!1===a.returnValue||a.RB&&a.RB()};
g.kp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
$da=function(a){return Zda(a,function(b){return g.zn(b,"ytp-ad-has-logging-urls")})};
g.lp=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.cp(a,b,function(){g.dp(e);c.apply(a,arguments)},d)};
mp=function(a){for(var b in $o)$o[b][0]==a&&g.dp(b)};
np=function(a){this.P=a;this.u=null;this.D=0;this.I=null;this.F=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.N=g.cp(window,"mousemove",(0,g.z)(this.X,this));this.W=Ho((0,g.z)(this.K,this),25)};
aea=function(){};
pp=function(a,b){return op(a,0,b)};
g.qp=function(a,b){return op(a,1,b)};
rp=function(){};
g.sp=function(){return!!g.Na("yt.scheduler.instance")};
op=function(a,b,c){isNaN(c)&&(c=void 0);var d=g.Na("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Fo(a,c||0)};
g.tp=function(a){if(!isNaN(a)){var b=g.Na("yt.scheduler.instance.cancelJob");b?b(a):g.Io(a)}};
up=function(a){var b=g.Na("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
xp=function(){var a={},b=void 0===a.hJ?!0:a.hJ;a=void 0===a.UP?!1:a.UP;if(null==g.Na("_lact",window)){var c=parseInt(g.L("LACT"),10);c=isFinite(c)?g.A()-Math.max(c,0):-1;g.Ja("_lact",c,window);g.Ja("_fact",c,window);-1==c&&vp();g.cp(document,"keydown",vp);g.cp(document,"keyup",vp);g.cp(document,"mousedown",vp);g.cp(document,"mouseup",vp);b&&(a?g.cp(window,"touchmove",function(){wp("touchmove",200)},{passive:!0}):(g.cp(window,"resize",function(){wp("resize",200)}),g.cp(window,"scroll",function(){wp("scroll",
200)})));
new np(function(){wp("mouse",100)});
g.cp(document,"touchstart",vp,{passive:!0});g.cp(document,"touchend",vp,{passive:!0})}};
wp=function(a,b){yp[a]||(yp[a]=!0,g.qp(function(){vp();yp[a]=!1},b))};
vp=function(){null==g.Na("_lact",window)&&(xp(),g.Na("_lact",window));var a=g.A();g.Ja("_lact",a,window);-1==g.Na("_fact",window)&&g.Ja("_fact",a,window);(a=g.Na("ytglobal.ytUtilActivityCallback_"))&&a()};
zp=function(){var a=g.Na("_lact",window),b;null==a?b=-1:b=Math.max(g.A()-a,0);return b};
Fp=function(){return new zm(function(a){g.Io(Ap);g.Io(Bp);Bp=0;Cp&&Cp.isReady()?(bea(a),Dp.clear()):(Ep(),a())})};
Ep=function(){g.uo("web_gel_timeout_cap")&&!Bp&&(Bp=g.Fo(Fp,6E4));g.Io(Ap);var a=g.L("LOGGING_BATCH_TIMEOUT",g.vo("web_gel_debounce_ms",1E4));g.uo("shorten_initial_gel_batch_timeout")&&Gp&&(a=cea);Ap=g.Fo(Fp,a)};
bea=function(a){for(var b=Cp,c=Math.round((0,g.O)()),d=Dp.size,e=g.q(Dp),f=e.next();!f.done;f=e.next()){var h=g.q(f.value);f=h.next().value;var l=h.next().value;h=g.$b(g.Hp(b.wf||g.Ip()));h.events=l;(l=Jp[f])&&dea(h,f,l);delete Jp[f];eea(h,c);g.Kp(b,"log_event",h,{retry:!0,onSuccess:function(){d--;d||a();Lp=Math.round((0,g.O)()-c)},
onError:function(){d--;d||a()}});
Gp=!1}};
eea=function(a,b){a.requestTimeMs=String(b);g.uo("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.L("EVENT_ID",void 0);if(c){var d=g.L("BATCH_CLIENT_COUNTER",void 0)||0;!d&&g.uo("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*Mp/2));d++;d>Mp&&(d=1);ro("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Np&&Lp&&g.uo("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Np,roundtripMs:String(Lp)});Np=
c;Lp=0}};
dea=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}]};
Qp=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.O)());e[a]=b;e.context={lastActivityMs:String(d.timestamp?-1:zp())};g.uo("log_sequence_info_on_gel_web")&&d.Nl&&(a=e.context,b=d.Nl,Op[b]=b in Op?Op[b]+1:0,a.sequence={index:Op[b],groupKey:b},d.WH&&delete Op[d.Nl]);d=d.pm;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),Jp[d.token]=a,a=d.token);d=Dp.get(a)||[];Dp.set(a,d);d.push(e);c&&(Cp=new c);c=g.vo("web_logging_max_batch")||
100;e=(0,g.O)();d.length>=c?Fp():10<=e-Pp&&(Ep(),Pp=e)};
Rp=function(){return g.Na("yt.ads.biscotti.lastId_")||""};
Sp=function(a){g.Ja("yt.ads.biscotti.lastId_",a,void 0)};
Tp=function(a){a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length)try{var f=md(e[0]||""),h=md(e[1]||"");f in b?Array.isArray(b[f])?vb(b[f],h):b[f]=[b[f],h]:b[f]=h}catch(m){if("q"!=e[0]){var l=Error("Error decoding URL component");l.params={key:e[0],value:e[1]};g.N(l)}}}return b};
Up=function(a){var b=[];g.Jb(a,function(c,d){var e=ld(d),f;Array.isArray(c)?f=c:f=[c];g.Gb(f,function(h){""==h?b.push(e):b.push(e+"="+ld(h))})});
return b.join("&")};
Vp=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Tp(a)};
Wp=function(a){a=a.split(",");return a=a.map(function(b){return Vp(b)})};
g.Xp=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Vp(1<a.length?a[1]:a[0])):{}};
g.Zp=function(a,b){return Yp(a,b||{},!0)};
$p=function(a,b){return Yp(a,b||{},!1)};
Yp=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=Vp(e[1]||"");for(var f in b)if(c||!Sb(e,f))e[f]=b[f];return g.Ld(a,e)+d};
aq=function(a){if(!b)var b=window.location.href;var c=g.xd(1,a),d=g.yd(a);c&&d?(a=a.match(wd),b=b.match(wd),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.yd(b)==d&&(Number(g.xd(4,b))||null)==(Number(g.xd(4,a))||null):!0;return a};
bq=function(a){a||(a=document.location.href);a=g.xd(1,a);return null!==a&&"https"==a};
cq=function(a){a=g.yd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
fq=function(a){var b=dq;a=void 0===a?Rp():a;b=Object.assign(eq(b),fea(b));b.ca_type="image";a&&(b.bid=a);return b};
eq=function(a){var b={};b.dt=gea;b.flash="0";a:{try{var c=a.u.top.location.href}catch(f){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Zg:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!Zg.navigator&&"unknown"!==typeof Zg.navigator.javaEnabled&&!!Zg.navigator.javaEnabled&&Zg.navigator.javaEnabled();Zg.screen&&(b.u_h=Zg.screen.height,b.u_w=Zg.screen.width,b.u_ah=Zg.screen.availHeight,b.u_aw=Zg.screen.availWidth,b.u_cd=
Zg.screen.colorDepth);Zg.navigator&&Zg.navigator.plugins&&(b.u_nplug=Zg.navigator.plugins.length);Zg.navigator&&Zg.navigator.mimeTypes&&(b.u_nmime=Zg.navigator.mimeTypes.length);return b};
fea=function(a){var b=a.u;try{var c=b.screenX;var d=b.screenY}catch(m){}try{var e=b.outerWidth;var f=b.outerHeight}catch(m){}try{var h=b.innerWidth;var l=b.innerHeight}catch(m){}b=[b.screenLeft,b.screenTop,c,d,b.screen?b.screen.availWidth:void 0,b.screen?b.screen.availTop:void 0,e,f,h,l];c=Kg(!1,a.u.top);d={};e=new pn;g.v.SVGElement&&g.v.document.createElementNS&&e.set(0);f=eba();f["allow-top-navigation-by-user-activation"]&&e.set(1);f["allow-popups-to-escape-sandbox"]&&e.set(2);g.v.crypto&&g.v.crypto.subtle&&
e.set(3);g.v.TextDecoder&&g.v.TextEncoder&&e.set(4);e=xda(e);return d.bc=e,d.bih=c.height,d.biw=c.width,d.brdim=b.join(),d.vis=$g(a.B),d.wgl=!!Zg.WebGLRenderingContext,d};
hea=function(){if(!gq)return null;var a=gq();return"open"in a?a:null};
g.iq=function(a){switch(hq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
hq=function(a){return a&&"status"in a?a.status:-1};
iea=function(a,b){b=void 0===b?{}:b;var c=aq(a),d=g.uo("web_ajax_ignore_global_headers_if_set"),e;for(e in jq){var f=g.L(jq[e]);!f||!c&&!kq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||kq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||kq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||kq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Up(fq(void 0));
return b};
lq=function(a,b){var c=g.yd(a),d=vd(g.xd(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=Vp(b),f={};g.Gb(jea,function(h){e[h]&&(f[h]=e[h])});
return $p(a,f)};
kq=function(a){return g.yd(a)?!1:!0};
kea=function(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=mq(a,b);var d=nq(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(h){if(!e){e=!0;f&&g.Io(f);var l=h.ok,m=function(n){n=n||{};var p=b.context||g.v;l?b.onSuccess&&b.onSuccess.call(p,n,h):b.onError&&b.onError.call(p,n,h);b.Bf&&b.Bf.call(p,n,h)};
"JSON"==(b.format||"JSON")&&(l||400<=h.status&&500>h.status)?h.json().then(m,function(){m(null)}):m(null)}});
b.KD&&0<b.timeout&&(f=g.Fo(function(){e||(e=!0,g.Io(f),b.KD.call(b.context||g.v))},b.timeout))}else g.oq(a,b)};
g.oq=function(a,b){var c=b.format||"JSON";a=mq(a,b);var d=nq(a,b),e=!1,f=pq(a,function(m){if(!e){e=!0;l&&g.Io(l);var n=g.iq(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=lea(a,c,m,b.AV);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.v;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.Bf&&b.Bf.call(r,m,p)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
if(b.Ef&&0<b.timeout){var h=b.Ef;var l=g.Fo(function(){e||(e=!0,f.abort(),g.Io(l),h.call(b.context||g.v,f))},b.timeout)}return f};
mq=function(a,b){b.IV&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.L("XSRF_FIELD_NAME",void 0),d=b.Dg;d&&(d[c]&&delete d[c],a=g.Zp(a,d));return a};
nq=function(a,b){var c=g.L("XSRF_FIELD_NAME",void 0),d=g.L("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.Xb,h=so("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.zv||g.yd(a)&&!b.withCredentials&&g.yd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.Xb&&b.Xb[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=Vp(e),g.bc(e,f),e=b.EE&&"JSON"==b.EE?JSON.stringify(e):g.Hd(e));f=e||f&&!g.Wb(f);!qq&&f&&"POST"!=b.method&&(qq=!0,g.N(Error("AJAX request with postData should use POST")));
return e};
lea=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,g.Eo(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?mea(a):null)e={},g.Gb(a.getElementsByTagName("*"),function(h){e[h.tagName]=nea(h)})}d&&rq(e);
return e};
rq=function(a){if(g.Sa(a))for(var b in a)"html_content"==b||qc(b,"_html")?a[b]=g.gd(g.kc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):rq(a[b])};
mea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
nea=function(a){var b="";g.Gb(a.childNodes,function(c){b+=c.nodeValue});
return b};
g.sq=function(a,b){b.method="POST";b.Xb||(b.Xb={});g.oq(a,b)};
pq=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Do(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=hea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.uo("debug_forward_web_query_parameters")&&(a=lq(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=iea(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};
oea=function(){for(var a={},b=g.q(Object.entries(Vp(g.L("DEVICE","")))),c=b.next();!c.done;c=b.next()){var d=g.q(c.value);c=d.next().value;d=d.next().value;"cbrand"===c?a.deviceMake=d:"cmodel"===c?a.deviceModel=d:"cbr"===c?a.browserName=d:"cbrver"===c?a.browserVersion=d:"cos"===c?a.osName=d:"cosver"===c?a.osVersion=d:"cplatform"===c&&(a.platform=d)}return a};
tq=function(){return"INNERTUBE_API_KEY"in qo&&"INNERTUBE_API_VERSION"in qo};
g.Ip=function(){return{innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0),MB:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Mm:g.L("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Io:g.L("INNERTUBE_CONTEXT_HL",void 0),Ho:g.L("INNERTUBE_CONTEXT_GL",void 0),Vr:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",PB:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),OB:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.L("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
pea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.L("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.Tz||g.L("AUTHORIZATION"))||(a?b="Bearer "+g.Na("gapi.auth.getToken")().xV:b=g.Kl([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),g.uo("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return d};
g.Hp=function(a){var b={client:{hl:a.Io,gl:a.Ho,clientName:a.Mm,clientVersion:a.innertubeContextClientVersion,configInfo:a.MB}},c=window.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.L("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=xo();0<c.length&&(b.request={internalExperimentFlags:c});a.appInstallData&&g.uo("web_log_app_install_experiments")&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.L("DELEGATED_SESSION_ID")&&
!g.uo("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.L("DELEGATED_SESSION_ID")});b.client=Object.assign(b.client,oea());return{context:b}};
g.vq=function(a,b,c,d,e){uq.set(""+a,b,{nC:c,path:"/",domain:void 0===d?"youtube.com":d,nQ:void 0===e?!1:e})};
g.wq=function(a,b){return uq.get(""+a,b)};
g.xq=function(a,b,c){uq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
yq=function(){var a;(a=g.io("yt.autonav"))||(a=new eo("yt.autonav"),a=a.isAvailable()?a:null);this.u=a?new Wn(a):null;this.B=document.domain||window.location.hostname};
zq=function(){this.u=!0};
Aq=function(){zq.u||(zq.u=new zq);return zq.u};
Bq=function(a,b){var c={},d=g.Kl([]);d&&(c.Authorization=d,c["X-Goog-AuthUser"]=void 0!==b?b:g.L("SESSION_INDEX",0),"INNERTUBE_HOST_OVERRIDE"in qo||(c["X-Origin"]=window.location.origin),g.uo("pageid_as_header_web")&&void 0===b&&"DELEGATED_SESSION_ID"in qo&&(c["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return c};
Cq=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.la(c))};
qea=function(){var a={};for(Dq=new Eq(void 0===a.gw?g.Eo:a.gw,void 0===a.handleError?g.N:a.handleError,void 0===a.logEvent?g.Fq:a.logEvent);0<Gq.length;)switch(a=Gq.shift(),a.type){case "ERROR":a=a.payload;var b=Dq;if(a instanceof Hq)switch(a.type){case "UNKNOWN_ABORT":case "QUOTA_EXCEEDED":case "QUOTA_MAYBE_EXCEEDED":b.gw(a);break;case "EXPLICIT_ABORT":a.sampleWeight=0;break;default:b.handleError(a)}else b.handleError(a);break;case "EVENT":Dq.logEvent(a.eventType,a.payload)}};
Hq=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?rea[a]:c;Cq.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;Object.setPrototypeOf(this,Hq.prototype)};
Iq=function(a,b){Hq.call(this,"UNKNOWN_ABORT",{objectStoreNames:a.join(),dbName:b});Object.setPrototypeOf(this,Iq.prototype)};
sea=function(a){if(!a)throw Error();throw a;};
tea=function(a){return a};
Jq=function(a){var b=this;this.B=a;this.state={status:"PENDING"};this.u=[];this.onRejected=[];this.B(function(c){if("PENDING"===b.state.status){b.state={status:"FULFILLED",value:c};c=g.q(b.u);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}},function(c){if("PENDING"===b.state.status){b.state={status:"REJECTED",
reason:c};c=g.q(b.onRejected);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}})};
Lq=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 Jq?Kq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Mq=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 Jq?Kq(a,b,f,d,e):d(f)}catch(h){e(h)}};
Kq=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof Jq?Kq(a,b,f,d,e):d(f)},function(f){e(f)})};
Nq=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)};
uea=function(a){return new zm(function(b,c){Nq(a,b,c)})};
Oq=function(a){return new Jq(function(b,c){Nq(a,b,c)})};
Pq=function(a,b){this.u=a;this.options=b};
Rq=function(a,b,c,d){a=a.u.transaction(b,void 0===c?"readonly":c);a=new Qq(a);return vea(a,d)};
Sq=function(a){this.u=a};
Qq=function(a){var b=this;this.u=a;this.B=new Map;this.aborted=!1;this.done=new zm(function(c,d){b.u.addEventListener("complete",function(){c()});
b.u.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.u.error)});
b.u.addEventListener("abort",function(){var e=b.u.error;if(e){var f;"QuotaExceededError"===e.name?f=new Hq("QUOTA_EXCEEDED"):"UnknownError"===e.name&&(f=new Hq("QUOTA_MAYBE_EXCEEDED"));f&&(g.Eo(f),Dq?Dq.logEvent("QUOTA_EXCEEDED",void 0):(Gq.push({type:"EVENT",eventType:"QUOTA_EXCEEDED",payload:void 0}),10<Gq.length&&Gq.shift()));d(e)}else if(!b.aborted){e=Iq;f=b.u.objectStoreNames;for(var 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(h,b.u.db.name);g.Eo(e);d(e)}})})};
vea=function(a,b){var c=new zm(function(d,e){b(a).then(function(f){a.commit();d(f)})["catch"](e)});
return Hm([c,a.done]).then(function(d){return g.q(d).next().value})};
Tq=function(a,b){var c=a.u.objectStore(b),d=a.B.get(c);d||(d=new Sq(c),a.B.set(c,d));return d};
Uq=function(a){this.u=a};
wea=function(a){function b(){n||(n=new Pq(d.result,{closed:m}));return n}
var c=Qq,d=self.indexedDB.open("yt-idb-test-do-not-use",void 0),e=a.blocked,f=a.blocking,h=a.gW,l=a.upgrade,m=a.closed,n;l&&d.addEventListener("upgradeneeded",function(p){if(null===p.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===d.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");var r=b(),t=new c(d.transaction);l(r,p.oldVersion,p.newVersion,t)});
e&&d.addEventListener("blocked",function(){e()});
return uea(d).then(function(p){f&&p.addEventListener("versionchange",function(){f(b())});
h&&p.addEventListener("close",function(){h()});
return b()})};
xea=function(){var a=void 0===a?{}:a;return wea(a)};
yea=function(){return g.Ue(this,function b(){var c,d;return g.Aa(b,function(e){switch(e.u){case 1:if(jk&&gk()&&!hk()&&!g.uo("ytidb_allow_on_ios_safari_v8_and_v9")||g.Vq)return e["return"](!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e["return"](!1)}catch(f){return e["return"](!1)}sa(e,2,3);return g.ra(e,Lm(xea(),function(){}),5);
case 5:if(d=e.B,!d)return e["return"](!1);case 3:baa(e);if(d)try{d.close()}catch(f){}caa(e);break;case 2:return ua(e),e["return"](!1);case 4:return e["return"](!0)}})})};
Xq=function(){return void 0!==Wq?Dm(Wq):new zm(function(a){yea().then(function(b){Wq=b;a(b)})})};
Bea=function(){return void 0!==Yq?Dm(Yq):Xq().then(function(a){if(!a)return!1;var b=g.q(zea);for(a=b.next();!a.done;a=b.next())if(!IDBObjectStore.prototype[a.value])return!1;b=g.q(Aea);for(a=b.next();!a.done;a=b.next())if(!IDBIndex.prototype[a.value])return!1;return IDBObjectStore.prototype.getKey?!0:!1}).then(function(a){return Yq=a})};
$q=function(){g.im.call(this);this.u=Zq();Cea(this);Dea(this)};
Zq=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
Dea=function(a){window.addEventListener("online",function(){a.u=!0;a.F&&a.F()})};
Cea=function(a){window.addEventListener("offline",function(){a.u=!1;a.D&&a.D()})};
br=function(a,b){b=void 0===b?{}:b;ar().then(function(){$q.u||($q.u=new $q);$q.u.u!==Zq()&&g.N(Error("NetworkStatusManager isOnline does not match window status"));g.oq(a,b)})};
ar=function(){return g.Ue(this,function b(){return g.Aa(b,function(c){return g.uo("networkless_logging")?(2===g.vo("networkless_ytidb_version")&&Bea().then(function(d){return d}),c["return"](Xq())):c["return"](!1)})})};
g.cr=function(a){this.wf=null;a?this.wf=a:tq()&&(this.wf=g.Ip())};
g.Kp=function(a,b,c,d){!g.L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.Eo(new Cq("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new Cq("innertube xhrclient not ready",b,c,d),g.N(a),a.sampleWeight=0,a;var e={headers:{"Content-Type":"application/json"},method:"POST",Xb:c,EE:"JSON",Ef:function(){d.Ef()},
KD:d.Ef,onSuccess:function(l,m){if(d.onSuccess)d.onSuccess(m)},
UV:function(l){if(d.onSuccess)d.onSuccess(l)},
onError:function(l,m){if(d.onError)d.onError(m)},
TV:function(l){if(d.onError)d.onError(l)},
timeout:d.timeout,withCredentials:!0};c="";var f=a.wf.Vr;f&&(c=f);f=pea(a.wf.PB||!1,c,d);Object.assign(e.headers,f);e.headers.Authorization&&!c&&(e.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.wf.innertubeApiVersion+"/"+b;f={alt:"json"};a.wf.OB&&e.headers.Authorization||(f.key=a.wf.innertubeApiKey);var h=g.Zp(""+c+b,f);ar().then(function(){try{if(g.uo("use_fetch_for_op_xhr"))kea(h,e);else if(g.uo("networkless_gel")&&d.retry){e.method="POST";var l=e;l=void 0===l?{}:l;br(h,l)}else g.sq(h,
e)}catch(m){if("InvalidAccessError"==m.name)g.Eo(Error("An extension is blocking network request."));else throw m;}})};
g.Fq=function(a,b,c){c=void 0===c?{}:c;var d=g.cr;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.cr==g.cr&&(d=null);Qp(a,b,d,c)};
Eea=function(){this.u=[];this.B=[]};
Fea=function(a){g.dr(a)};
g.er=function(a){g.dr(a,"WARNING")};
g.dr=function(a,b){var c=void 0===c?{}:c;c.name=g.L("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);var d=c||{};c=void 0===b?"ERROR":b;c=void 0===c?"ERROR":c;var e=void 0===e?!1:e;if(a){if(g.uo("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),
a)}if((window&&window.yterr||e)&&!(5<=fr)&&0!==a.sampleWeight){var h=Xaa(a);e=h.message||"Unknown Error";f=h.name||"UnknownError";var l=h.lineNumber||"Not available",m=h.fileName||"Not available";h=h.stack||a.u||"Not available";if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var n=0,p=0;p<a.args.length;p++){var r=a.args[p],t="params."+p;n+=t.length;if(r)if(Array.isArray(r))for(var w=d,x=0;x<r.length&&!(r[x]&&(n+=gr(x,r[x],t,w),500<n));x++);else if("object"===typeof r)for(w in w=void 0,x=d,
r){if(r[w]&&(n+=gr(w,r[w],t,x),500<n))break}else d[t]=String(JSON.stringify(r)).substring(0,500),n+=d[t].length;else d[t]=String(JSON.stringify(r)).substring(0,500),n+=d[t].length;if(500<=n)break}else if(a.hasOwnProperty("params")&&a.params)if(r=a.params,"object"===typeof a.params)for(p in t=0,r){if(r[p]&&(n="params."+p,w=String(JSON.stringify(r[p])).substr(0,500),d[n]=w,t+=n.length+w.length,500<t))break}else d.params=String(JSON.stringify(r)).substr(0,500);navigator.vendor&&!d.hasOwnProperty("vendor")&&
(d.vendor=navigator.vendor);d={message:e,name:f,lineNumber:l,fileName:m,stack:h,params:d};e=Number(a.columnNumber);isNaN(e)||(d.lineNumber=d.lineNumber+":"+e);e=g.q(Gea);for(f=e.next();!f.done;f=e.next())if(f=f.value,f.tx[d.name])for(m=g.q(f.tx[d.name]),l=m.next();!l.done;l=m.next())if(h=l.value,l=d.message.match(h.xg)){d.params["error.original"]=l[0];m=h.groups;h={};for(p=0;p<m.length;p++)h[m[p]]=l[p+1],d.params["error."+m[p]]=l[p+1];d.message=f.qC(h);break}window.yterr&&"function"===typeof window.yterr&&
window.yterr(d);if(!(hr.has(d.message)||0<=d.stack.indexOf("/YouTubeCenter.js")||0<=d.stack.indexOf("/mytube.js"))){Hea.V("handleError",d);if(g.uo("kevlar_gel_error_routing")){e=c;a:{f=g.q(Iea);for(l=f.next();!l.done;l=f.next())if(Xj(l.value.toLowerCase())){f=!0;break a}f=!1}if(!f){f={stackTrace:d.stack};d.fileName&&(f.filename=d.fileName);l=d.lineNumber&&d.lineNumber.split?d.lineNumber.split(":"):[];0!==l.length&&(1!==l.length||isNaN(Number(l[0]))?2!==l.length||isNaN(Number(l[0]))||isNaN(Number(l[1]))||
(f.lineNumber=Number(l[0]),f.columnNumber=Number(l[1])):f.lineNumber=Number(l[0]));l=d.message;m=d.name;ir||(ir=new Eea);h=ir;a:{p=g.q(h.B);for(r=p.next();!r.done;r=p.next())if(r=r.value,d.message&&d.message.match(r.u)){h=r.weight;break a}h=g.q(h.u);for(p=h.next();!p.done;p=h.next())if(p=p.value,p.callback(d)){h=p.weight;break a}h=1}l={level:"ERROR_LEVEL_UNKNOWN",message:l,errorClassName:m,sampleWeight:h};"ERROR"===e?l.level="ERROR_LEVEL_ERROR":"WARNING"===e&&(l.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,
browserStackInfo:f};f={pageUrl:window.location.href};g.L("FEXP_EXPERIMENTS")&&(f.experimentIds=g.L("FEXP_EXPERIMENTS"));f.kvPairs=[];if(m=d.params)for(h=g.q(Object.keys(m)),p=h.next();!p.done;p=h.next())p=p.value,f.kvPairs.push({key:"client."+p,value:String(m[p])});m=g.L("SERVER_NAME",void 0);h=g.L("SERVER_VERSION",void 0);m&&h&&(f.kvPairs.push({key:"server.name",value:m}),f.kvPairs.push({key:"server.version",value:h}));g.Fq("clientError",{errorMetadata:f,stackTrace:e,logMessage:l});Fp()}}if(!g.uo("suppress_error_204_logging")){e=
d.params||{};c={Dg:{a:"logerror",t:"jserror",type:d.name,msg:d.message.substr(0,250),line:d.lineNumber,level:c,"client.name":e.name},Xb:{url:g.L("PAGE_NAME",window.location.href),file:d.fileName},method:"POST"};e.version&&(c["client.version"]=e.version);if(c.Xb){d.stack&&(c.Xb.stack=d.stack);f=g.q(Object.keys(e));for(l=f.next();!l.done;l=f.next())l=l.value,c.Xb["client."+l]=e[l];if(e=g.L("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(f=g.q(Object.keys(e)),l=f.next();!l.done;l=f.next())l=l.value,
c.Xb[l]=e[l];e=g.L("SERVER_NAME",void 0);f=g.L("SERVER_VERSION",void 0);e&&f&&(c.Xb["server.name"]=e,c.Xb["server.version"]=f)}g.oq(g.L("ECATCHER_REPORT_HOST","")+"/error_204",c)}hr.add(d.message);fr++}}}};
gr=function(a,b,c,d){c+="."+a;a=String(JSON.stringify(b)).substr(0,500);d[c]=a;return c.length+a.length};
Jea=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.la(c))};
jr=function(){this.gd=!1;this.u=null};
kr=function(a,b,c,d){if(d)try{a.u=new window.botguard.bg(b,c?function(){return c(b)}:g.Oa)}catch(e){g.er(e)}else{try{a.u=new window.botguard.bg(b)}catch(e){g.er(e)}c&&c(b)}};
Kea=function(a){var b=lr;a=void 0===a?{}:a;return b.u?Promise.race([new Promise(function(c,d){setTimeout(function(){return d(Error("Timed out waiting for snapshot"))},g.vo("botguard_async_snapshot_timeout_ms",3E3),null)}),
new Promise(function(c){b.u.invoke(function(d){return c(d)},!0,a)})]):Promise.resolve(null)};
mr=function(){return g.wq("CONSENT","").startsWith("YES+")};
or=function(){if(!g.uo("disable_ad_status_on_html5_clients")&&(!g.uo("condition_ad_status_fetch_on_consent_cookie_html5_clients")||mr())&&"1"!=g.Rb(g.L("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){nr=!0;"google_ad_status"in window?ro("DCLKSTAT",1):ro("DCLKSTAT",2)};
try{g.So("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Lea.push(g.qp(function(){if(!(nr||"google_ad_status"in window)){if(a){var b=""+g.Ua(a);(b=Uo[b])&&g.Oo(b)}nr=!0;ro("DCLKSTAT",3)}},5E3))}};
qr=function(a,b){var c=g.Zb(b),d;return Lm(new zm(function(e,f){c.onSuccess=function(h){g.iq(h)?e(h):f(new pr("Request failed, status="+hq(h),"net.badstatus",h))};
c.onError=function(h){f(new pr("Unknown request error","net.unknown",h))};
c.Ef=function(h){f(new pr("Request timed out","net.timeout",h))};
d=g.oq(a,c)}),function(e){e instanceof Qm&&d.abort();
return Em(e)})};
g.rr=function(a,b,c,d){function e(h,l,m){return Lm(h,function(n){return 0>=l||403===hq(n.xhr)?Em(new pr("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(qr(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(h){return new zm(function(l){setTimeout(l,h)})}
return e(qr(a,b),c-1,d)};
pr=function(a,b,c){Za.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
sr=function(){this.Ca=0;this.u=null};
tr=function(a){var b=new sr;a=void 0===a?null:a;b.Ca=2;b.u=void 0===a?null:a;return b};
ur=function(a){var b=new sr;a=void 0===a?null:a;b.Ca=1;b.u=void 0===a?null:a;return b};
wr=function(a){Za.call(this,a.message||a.description||a.name);this.isMissing=a instanceof vr;this.isTimeout=a instanceof pr&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Qm};
vr=function(){Za.call(this,"Biscotti ID is missing from server")};
Mea=function(){if(g.uo("disable_biscotti_fetch_on_html5_clients"))return Em(Error("Fetching biscotti ID is disabled."));if(g.uo("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!mr())return Em(Error("User has not consented - not fetching biscotti id."));if("1"===g.Rb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return Em(Error("Biscotti ID is not available in private embed mode"));xr||(xr=Lm(qr("//googleads.g.doubleclick.net/pagead/id",yr).then(zr),function(a){return Ar(2,a)}));
return xr};
zr=function(a){a=a.responseText;if(!pc(a,")]}'"))throw new vr;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new vr;a=a.id;Sp(a);xr=ur(a);Br(18E5,2);return a};
Ar=function(a,b){var c=new wr(b);Sp("");xr=tr(c);0<a&&Br(12E4,a-1);throw c;};
Br=function(a,b){g.Fo(function(){Lm(qr("//googleads.g.doubleclick.net/pagead/id",yr).then(zr,function(c){return Ar(b,c)}),g.Oa)},a)};
Cr=function(){try{var a=g.Na("yt.ads.biscotti.getId_");return a?a():Mea()}catch(b){return Em(b)}};
Dr=function(a){Nea||g.Fq("adsClientStateChange",{adsClientEvent:{eventType:a}})};
Fr=function(){this.u=g.L("ALT_PREF_COOKIE_NAME","PREF");var a=g.wq(this.u);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])&&(Er[d]=c.toString())}}};
Hr=function(a,b){return!!((Gr("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Ir=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Jr=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Gr=function(a){a=void 0!==Er[a]?Er[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Qea=function(){var a=void 0===a?window.location.href:a;if(g.uo("kevlar_disable_theme_param"))return null;var b=vd(g.xd(5,a));if(Oea(b))return"USER_INTERFACE_THEME_DARK";a=g.Xp(a).theme;return Pea.get(a)||null};
Oea=function(a){var b=Rea.map(function(c){return c.toLowerCase()});
return!g.uo("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
Kr=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()};
Nr=function(a){var b;Lr()?Mr()==a&&(b=document):b=a;return b&&(a=Xo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Or=function(a){return g.jb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Sea=function(){var a=document;return g.jb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Lr=function(){return!!Xo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Mr=function(a){a=void 0===a?!1:a;var b=Xo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
g.Pr=function(a){g.B.call(this);this.I=[];this.oa=a||this};
Qr=function(a,b,c,d){for(var e=0;e<c.length;e++)a.R(b,c[e],d)};
g.Rr=function(a){for(;a.I.length;){var b=a.I.pop();b.target.removeEventListener(b.name,b.callback)}};
g.P=function(a){a=void 0===a?!1:a;g.B.call(this);this.jb=new g.Rn(a);g.C(this,this.jb)};
Sr=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Tr=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Vr=function(a,b,c,d){g.P.call(this);this.C=!!b;this.I=a;this.P=c||a;this.N=!!d;this.u=new g.Pr(this);g.C(this,this.u);this.F=this.K=null;this.D=this.B=!1;b&&(g.Ae&&a.setAttribute("draggable","true"),a.style.touchAction="none");Ur(this)};
Wr=function(a,b,c){a.u.R(a.P,b,c,void 0,!a.C)};
Ur=function(a){a.F=null;a.K=null;Wr(a,Xr("over"),a.nD);Wr(a,"touchstart",a.zy);a.C&&Wr(a,Xr("down"),a.LL)};
Yr=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.K)return d}return null};
Xr=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Zr=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Zb(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Zb(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||{}};
Tea=function(a){a instanceof Zr||(a=new Zr(a));return a};
as=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){c=g.A();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if($r)for(b=1,c=0;c<$r.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^$r.charCodeAt(c),b++;return a};
bs=function(){for(var a=as(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.cs=function(){return g.Pc(as(),function(a){return(a&15).toString(16)}).join("")};
ds=function(a){this.u=a};
g.es=function(a){return new ds({trackingParams:a})};
Vea=function(a){var b=Uea++;return new ds({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
fs=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
gs=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
hs=function(a){return g.L(gs(void 0===a?0:a),void 0)};
g.is=function(a){a=hs(void 0===a?0:a);var b;a?b=new ds({veType:a,youtubeData:void 0}):b=null;return b};
js=function(){var a=g.L("csn-to-ctt-auth-info");a||(a={},ro("csn-to-ctt-auth-info",a));return a};
g.ks=function(a){a=void 0===a?0:a;var b=g.L(fs(a));if(!b&&!g.L("USE_CSN_FALLBACK",!0))return null;b||0!=a||(g.uo("kevlar_client_side_screens")||g.uo("c3_client_side_screens")?b="UNDEFINED_CSN":b=g.L("EVENT_ID"));return b?b:null};
Wea=function(a,b,c){var d=js();(c=g.ks(c))&&delete d[c];b&&(d[a]=b)};
ls=function(a){return js()[a]};
ns=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.L(fs(c))||b!==g.L(gs(c)))if(Wea(a,d,c),ro(fs(c),a),ro(gs(c),b),0==c||g.uo("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&Qp("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:ms,clientScreenNonce:a},g.cr)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
os=function(a,b){this.version=a;this.args=b};
ps=function(a,b){this.topic=a;this.u=b};
rs=function(a,b){var c=qs();c&&c.publish.call(c,a.toString(),a,b)};
ws=function(a,b,c){var d=qs();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Na("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(ts[e])try{if(h&&a instanceof ps&&a!=f)try{var m=a.u,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Bk){var p=new m;m.Bk=p.version}var r=m.Bk}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.ub(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.N(t)}},us[a.toString()]?g.sp()?g.qp(l):g.Fo(l,0):l())});
ts[e]=!0;vs[a.toString()]||(vs[a.toString()]=[]);vs[a.toString()].push(e);return e};
ys=function(a,b,c){var d=ws(a,function(e){b.apply(c,arguments);xs(d)},c);
return d};
xs=function(a){var b=qs();b&&("number"===typeof a&&(a=[a]),g.Gb(a,function(c){b.unsubscribeByKey(c);delete ts[c]}))};
qs=function(){return g.Na("ytPubsub2Pubsub2Instance")};
zs=function(a){os.call(this,1,arguments);this.csn=a};
g.Bs=function(a,b,c,d){c={csn:b,parentVe:c.getAsJson(),childVes:g.Pc(d,function(f){return f.getAsJson()})};
d=g.q(d);for(var e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Wb(e)||!e.trackingParams&&!e.veType)&&g.er(Error("Child VE logged with no data"));d={pm:ls(b),Nl:b};"UNDEFINED_CSN"==b?As("visualElementAttached",c,d):a?Qp("visualElementAttached",c,a,d):g.Fq("visualElementAttached",c,d)};
g.Cs=function(a,b,c){var d=g.uo("use_default_events_client")?void 0:g.cr;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={pm:ls(a),Nl:a};"UNDEFINED_CSN"==a?As("visualElementShown",b,c):d?Qp("visualElementShown",b,d,c):g.Fq("visualElementShown",b,c)};
Ds=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={pm:ls(b),Nl:b};"UNDEFINED_CSN"==b?As("visualElementGestured",c,d):a?Qp("visualElementGestured",c,a,d):g.Fq("visualElementGestured",c,d)};
As=function(a,b,c){Es.push({payloadName:a,payload:b,options:c});Fs||(Fs=ys(Xea,Yea))};
Yea=function(a){if(Es){for(var b=g.q(Es),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Qp(c.payloadName,c.payload,null,c.options));Es.length=0}Fs=0};
g.Js=function(a,b,c){g.Bs(g.uo("use_default_events_client")?void 0:g.cr,a,b,[c])};
g.Ks=function(a,b){var c=g.uo("use_default_events_client")?void 0:g.cr;g.Gb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={pm:ls(a),Nl:a};"UNDEFINED_CSN"==a?As("visualElementShown",d,e):c?Qp("visualElementShown",d,c,e):g.Fq("visualElementShown",d,e)})};
g.Ls=function(a,b){var c=g.uo("use_default_events_client")?void 0:g.cr;g.Gb(b,function(d){var e=void 0,f=(e=void 0===e?!1:e)?16:8;d={csn:a,ve:d.getAsJson(),eventType:f};e={pm:ls(a),Nl:a,WH:e};"UNDEFINED_CSN"==a?As("visualElementHidden",d,e):c?Qp("visualElementHidden",d,c,e):g.Fq("visualElementHidden",d,e)})};
g.Ms=function(a,b,c){Ds(g.uo("use_default_events_client")?void 0:g.cr,a,b,c)};
g.Ps=function(a,b,c){var d=c&&0<c?c:0;c=d?g.A()+1E3*d:0;if((d=d?(0,g.Ns)():Os())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Qs=function(a){var b=Os(),c=(0,g.Ns)();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};
g.Rs=function(a){try{var b=Os(),c=(0,g.Ns)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Ss=function(){return g.Qs("yt-remote-session-screen-id")};
Zea=function(){var a=void 0;a=void 0===a?{}:a;var b="DOWNLOADS"in Ts?Ts.DOWNLOADS:"Downloads";b=b||"";var c={},d;for(d in a){c.Ln=d;var e=function(f){return function(){return String(a[f.Ln])}}(c);
b=b.replace(new RegExp("\\$\\{"+c.Ln+"\\}","gi"),e);b=b.replace(new RegExp("\\$"+c.Ln,"gi"),e);c={Ln:c.Ln}}return b};
g.Vs=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.ak())a&&(a=g.Gc(g.Kc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.cd(ed(a)).toString(),a=ld(g.Fj(a))),g.sc(a)||(a=g.Ee("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),ne(a).body.appendChild(a)));else if(e)pq(a,b,"POST",e,d);else if(g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)pq(a,b,"GET","",d);else{b:{try{var f=new kaa({url:a});if(f.C&&f.B||f.D){var h=vd(g.xd(5,a));var l=!(!h||
!h.endsWith("/aclk")||"1"!==Pd(a,"ri"));break b}}catch(m){}l=!1}l?Us(a)?(b&&b(),c=!0):c=!1:c=!1;c||$ea(a,b)}};
Ws=function(a,b,c){c=void 0===c?"":c;Us(a,c)?b&&b():g.Vs(a,b,void 0,void 0,c)};
Us=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
$ea=function(a,b){var c=new Image,d=""+afa++;Xs[d]=c;c.onload=c.onerror=function(){b&&Xs[d]&&b();delete Xs[d]};
c.src=a};
$s=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Ys(a)||c.some(function(e){return!Ys(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Zs(a,d.value);return a};
Zs=function(a,b){for(var c in b)if(Ys(b[c])){if(c in a&&!Ys(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Zs(a[c],b[c])}else if(at(b[c])){if(c in a&&!at(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);bt(a[c],b[c])}else a[c]=b[c];return a};
bt=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,Ys(d)?a.push(Zs({},d)):at(d)?a.push(bt([],d)):a.push(d);return a};
Ys=function(a){return"object"===typeof a&&!Array.isArray(a)};
at=function(a){return"object"===typeof a&&Array.isArray(a)};
ct=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.u=e?0:8;this.dataOffset=this.offset+this.u;this.B=e};
dt=function(a){var b=a.data.getUint8(a.offset+a.u);a.u+=1;return b};
et=function(a){var b=a.data.getUint16(a.offset+a.u);a.u+=2;return b};
ft=function(a){var b=a.data.getInt32(a.offset+a.u);a.u+=4;return b};
gt=function(a){var b=a.data.getUint32(a.offset+a.u);a.u+=4;return b};
ht=function(a){var b=a.data;var c=a.offset+a.u;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.u+=8;return b};
it=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.u;c<a.size&&a.data.getUint8(a.offset+c)!=b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.u+a.data.byteOffset,c-a.u);a.u=Math.min(c+1,a.size);return String.fromCharCode.apply(String,d)};
bfa=function(a){this.data=new DataView(new ArrayBuffer(a));this.u=0};
jt=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.u,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.u+=d};
kt=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.u=f};
mt=function(a,b){this.u=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.B=lt(this,"Sequence-Number");this.K=lt(this,"Segment-Count");this.N=this.u["Segment-Durations-Ms"]||"";this.ingestionTime=lt(this,"Ingestion-Walltime-Us")/1E6;this.C=(lt(this,"First-Frame-Time-Us")+lt(this,"First-Frame-Uncertainty-Us"))/1E6;this.zg=lt(this,"Target-Duration-Us")/1E6;this.I="T"==this.u["Stream-Finished"];this.D="T"==this.u.Streamable;this.cryptoPeriodIndex=lt(this,"Crypto-Period-Index");
this.F=lt(this,"Crypto-Period-Seconds")};
nt=function(a){return parseInt(a.u["Start-Media-Time-Us"],10)/1E6||0};
lt=function(a,b){return parseInt(a.u[b],10)||0};
cfa=function(a,b){this.u=a;this.duration=b};
ot=function(a,b,c,d,e){this.u=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.B=e;e.getUint32(4)};
pt=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};
rt=function(a,b){var c=g.qt(a,0,1952868452),d=g.qt(a,0,1953658222);if(c&&d){c.skip(1);var e=dt(c)<<16|et(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.u;var f=gt(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=dt(d)<<16|et(d);if(c&256){e=c&1;f=c&4;var h=c&512,l=c&1024,m=c&2048;c=gt(d);e&&d.skip(4);f&&d.skip(4);e=(h?4:0)+(l?4:0)+(m?4:0);for(f=0;f<c;f++)h=d.u,l=gt(d),d.data.setUint32(d.offset+h,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
ut=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.qt(a,0,1836476516))?tt(a):NaN};
dfa=function(a){var b=g.qt(a,0,1937011556);if(!b)return null;b=vt(a,b.dataOffset+8,1635148593);if(!b)return null;var c=vt(a,b.dataOffset+78,1936995172),d=vt(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),dt(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=vt(a,d.dataOffset,1886547818)){var h=vt(a,d.dataOffset,1886546020),l=vt(a,d.dataOffset,2037673328);if(!l&&(l=vt(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
ft(h)/65536,f=ft(h)/65536,e=ft(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new ot(b,c,f,e,a)}return null};
vt=function(a,b,c){for(;wt(a,b);){var d=xt(a,b);if(d.type==c)return d;b+=d.size}return null};
g.qt=function(a,b,c){for(;wt(a,b);){var d=xt(a,b);if(d.type==c)return d;b=zt(d.type)?b+8:b+d.size}return null};
At=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)};
xt=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new ct(a,b,c,d)};
tt=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Bt=function(a){a=new ct(a.data,a.offset,a.size,a.type,a.B);var b=dt(a);a.skip(7);var c=gt(a);if(0==b){b=gt(a);var d=gt(a)}else b=ht(a),d=ht(a);a.skip(2);for(var e=et(a),f=[],h=[],l=0;l<e;l++){var m=gt(a);f.push(m);h.push(gt(a));a.skip(4)}return{Vt:c,VH:b,PA:d,Kx:f,Tt:h}};
wt=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};
zt=function(a){return 1701082227==a||1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a||1836475768==a};
Ct=function(a){a.skip(4);var b=it(a,0),c=it(a,0),d=gt(a),e=gt(a),f=gt(a),h=gt(a),l=it(a);return{mQ:b,value:c,Vt:d,YV:e,CV:f,id:h,rC:l,offset:a.offset}};
Dt=function(a,b){for(var c=vt(a,0,b);c;)c.markAsSkip(),c=vt(a,c.offset+c.size,b)};
Et=function(a,b){for(var c=0,d=[];wt(a,c);){var e=xt(a,c);e.type==b&&d.push(e);c=zt(e.type)?c+8:c+e.size}return d};
efa=function(a,b){var c=g.qt(a,0,1937011556),d=g.qt(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.qt(e,0,1937011556);if(!f)return null;d=e.getUint32(f.dataOffset+8);var h=e.getUint32(f.dataOffset+12);if(1701733217!=h&&1701733238!=h)return null;h=new bfa(a.byteLength+d);jt(h,a,0,c.offset+12);h.data.setInt32(h.u,2);h.u+=4;jt(h,a,c.offset+16,c.size-16);jt(h,e,e.byteOffset+f.dataOffset+8,d);jt(h,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.qt(a,0,e.value),h.data.setUint32(e.offset,e.size+d);if(Ft)return h.data;d=g.qt(h.data,0,1953654136);h.data.setUint32(d.offset+16,2);return h.data};
Gt=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Ht=function(a){return String.fromCharCode.apply(null,a)};
It=function(a,b){this.B=a;this.u=0;this.C=b||0};
Jt=function(a){return a.u>=a.B.byteLength};
Pt=function(a,b,c){var d=new It(c);if(!Kt(d,a))return!1;d=Lt(d);if(!Mt(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.C+d.u;var e=Nt(d,!0);d=a+(d.C+d.u-b)+e;d=9<d?Ot(d-9,8):Ot(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
ffa=function(a){var b=new It(a);Qt(b);if(Kt(b,[408125543,374648427,174,224]))b=Lt(b);else return null;for(var c=a=null;!Jt(b);){var d=Nt(b,!1);if(21432==d)switch(Rt(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=Lt(b):St(b)}if(!c)return null;for(var e,f=d=b=null;!Jt(c);)switch(Nt(c,!1)){case 30321:if(3!=Rt(c))return null;break;case 30324:b=Tt(c);break;case 30323:f=Tt(c);break;case 30325:d=Tt(c);break;case 30322:e=Nt(c,!0);e=Ut(c,e);e=new DataView(e.buffer,e.byteOffset,
e.byteLength);break;default:St(c)}return e?new ot(a,b,f,d,e):null};
Lt=function(a){var b=Nt(a,!0),c=a.B.byteOffset+a.u;c=new DataView(a.B.buffer,c,Math.min(b,a.B.buffer.byteLength-c));c=new It(c,a.C+a.u);a.u+=b;return c};
Rt=function(a){for(var b=Nt(a,!0),c=Vt(a),d=1;d<b;d++)c=256*c+Vt(a);return c};
Tt=function(a){var b=Nt(a,!0),c=0;4==b?c=a.B.getFloat32(a.u):8==b&&(c=a.B.getFloat64(a.u));a.u+=b;return c};
Wt=function(a){var b=Nt(a,!0);return Ht(Ut(a,b))};
Vt=function(a){return a.B.getUint8(a.u++)};
Nt=function(a,b){var c=Vt(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Vt(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Vt(a),d*=128;return b?c-d:c};
St=function(a){var b=Nt(a,!0);a.u+=b};
Qt=function(a){var b=a.u;a.u=0;var c=!1;try{Mt(a,440786851)&&(a.u=0,Mt(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.u=0,c=!1,g.Eo(d);else throw d;}a.u=b;return c};
gfa=function(a){if(!Mt(a,440786851,!0))return null;var b=a.u;Nt(a,!1);var c=Nt(a,!0)+a.u-b;a.u=b+c;if(!Mt(a,408125543,!1))return null;Nt(a,!0);if(!Mt(a,357149030,!0))return null;var d=a.u;Nt(a,!1);var e=Nt(a,!0)+a.u-d;a.u=d+e;if(!Mt(a,374648427,!0))return null;var f=a.u;Nt(a,!1);var h=Nt(a,!0)+a.u-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.B.buffer,
a.B.byteOffset+d,e),c+12);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+f,h),c+12+e);return l};
Xt=function(a){var b=a.u,c={my:1E6,ny:1E9,duration:0,Sx:0,Np:0};if(!Mt(a,408125543))return a.u=b,null;c.Sx=Nt(a,!0);c.Np=a.C+a.u;if(Mt(a,357149030))for(var d=Lt(a);!Jt(d);){var e=Nt(d,!1);2807729==e?c.my=Rt(d):2807730==e?c.ny=Rt(d):17545==e?c.duration=Tt(d):St(d)}else return a.u=b,null;a.u=b;return c};
Zt=function(a,b,c){var d=a.u,e=[];if(!Mt(a,475249515))return a.u=d,null;for(var f=Lt(a);Mt(f,187);){var h=Lt(f);if(Mt(h,179)){var l=Rt(h);if(Mt(h,183)){h=Lt(h);for(var m=b;Mt(h,241);)m=Rt(h)+b;e.push({Rk:m,Yq:l})}}}if(0<e.length&&c==e[0].Rk)for(Yt&&g.Eo(Error("opus_oboe")),b=0;b<e.length;b++)e[b].Rk+=1;a.u=d;return e};
$t=function(a){var b=a.u;a.u=0;var c=1E6;Kt(a,[408125543,357149030,2807729])&&(c=Rt(a));a.u=b;return c};
hfa=function(a,b){var c=a.u;a.u=0;if(160!=a.B.getUint8(a.u)&&!au(a)||!Mt(a,160))return a.u=c,NaN;Nt(a,!0);var d=a.u;if(!Mt(a,161))return a.u=c,NaN;Nt(a,!0);Vt(a);var e=Vt(a)<<8|Vt(a);a.u=d;if(!Mt(a,155))return a.u=c,NaN;d=Rt(a);a.u=c;return(e+d)*b/1E9};
au=function(a){if(!bu(a)||!Mt(a,524531317))return!1;Nt(a,!0);return!0};
bu=function(a){if(Qt(a)){if(!Mt(a,408125543))return!1;Nt(a,!0)}return!0};
Kt=function(a,b){for(var c=0;c<b.length;c++){if(!Mt(a,b[c]))return!1;c!=b.length-1&&Nt(a,!0)}return!0};
Mt=function(a,b,c){c=void 0===c?!1:c;if(Jt(a))return!1;for(var d=a.u;Nt(a,!1)!=b;)if(St(a),d=a.u,Jt(a))return!1;c&&(a.u=d);return!0};
Ot=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};
Ut=function(a,b){var c=new Uint8Array(a.B.buffer,a.B.byteOffset+a.u,b);a.u+=b;return c};
ifa=function(a,b){this.ids=a;this.u=b};
cu=function(a,b,c,d,e,f,h,l,m){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.eb=a;this.B=e;this.startTime=b;this.u=h||0;this.range=f||null;this.pending=l||!1;this.C=void 0===m?null:m};
du=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
eu=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);return isNaN(b)||isNaN(c)?null:2===a.length&&(a=new du(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
fu=function(a,b){return new du(a,a+b-1)};
iu=function(a,b,c,d,e,f,h,l,m,n,p){this.u=b;this.range=c;this.type=a;this.N="";this.B=-1;this.N=d;this.B=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.C=l||0;this.fb=0<=m?m:this.range?this.range.length:NaN;this.F=!!n;a=this.range?this.C+this.fb==this.range.length:void 0===p?!!this.fb:p;this.D=a;this.range?(this.K=this.startTime+this.duration*this.C/this.range.length,this.P=this.duration*this.fb/this.range.length,this.I=this.K+this.P):gu(this);this.W=[];3!=this.type||0<=this.B||!this.u.Ee()||
g.er(new Cq("b168859904",hu(this)))};
gu=function(a){a.K=a.startTime;a.P=a.duration;a.I=a.K+a.P};
jfa=function(a,b,c){var d=!(!b||b.u!=a.u||b.type!=a.type||b.B!=a.B);return c?d&&!!b&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.C+b.fb==a.C+a.fb:d};
ju=function(a){return 1==a.type||2==a.type};
ku=function(a){return 3==a.type||6==a.type};
lu=function(a,b){return a.u==b.u?a.range&&b.range?a.range.start+a.C+a.fb==b.range.start+b.C:a.B==b.B?a.C+a.fb==b.C:a.B+1==b.B&&0==b.C&&a.D:!1};
mu=function(a,b){return lu(a,b)||ee(a.I,b.K)||a.B+1==b.B&&0==b.C&&a.D?!0:!1};
nu=function(a){return a.B+(a.D?1:0)};
kfa=function(a){1==a.length||g.jh(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new du(a[0].range.start+a[0].C,b.range.start+b.C+b.fb-1)};
hu=function(a){a=ou(a);var b="";g.Jb(a,function(c,d){b+=d+"="+c+","});
return b.slice(0,-1)};
ou=function(a){var b={};b.itag=pu(a.u.info);b.type=a.type;b.seg=String(a.B);a.range&&(b.range=""+(a.range.start+a.C)+"-"+(a.range.start+a.C+a.fb-1));b.time=""+a.K.toFixed(1)+"-"+(a.K+a.P).toFixed(1);b.off=String(a.C);b.len=String(a.fb);a.D&&(b.end="1");a.F&&(b.eos="1");return b};
qu=function(a,b){var c=b.B;a.N="updateWithEmsg";a.B=c;b.I&&(a.F=b.I)};
ru=function(a,b){var c=b.eb;a.N="updateWithSegmentInfo";a.B=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,gu(a)};
tu=function(a){var b=this;a=void 0===a?[]:a;this.u=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
uu=function(a,b){if(0===a.u.length)return!1;var c=a.u[a.u.length-1];return c&&c.buffer===b.buffer&&c.byteOffset+c.length===b.byteOffset};
vu=function(a,b){for(var c=g.q(b.u),d=c.next();!d.done;d=c.next())a.append(d.value)};
wu=function(a){a.D=void 0;a.B=0;a.C=0};
xu=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.u[a.B].length};
yu=function(a){if(!a.D){var b=a.u[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
zu=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(!xu(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.u[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.u[h],f),f+=a.u[h].length;a.u.splice(d,a.B-d+1,e);wu(a);a.focus(b)}d=a.u[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
Au=function(a,b,c){a=zu(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
Bu=function(a){a=Au(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};
Cu=function(a,b){a.focus(b);return a.u[a.B][b-a.C]};
Du=function(a,b){a.focus(b);return xu(a,b,4)?yu(a).getUint32(b-a.C):256*(256*(256*Cu(a,b)+Cu(a,b+1))+Cu(a,b+2))+Cu(a,b+3)};
Eu=function(a,b,c){this.info=a;this.u=b instanceof tu?b:new tu([b]);this.u.getLength();this.C=c;this.B=null;this.D=-1;this.F=0};
Fu=function(a){return zu(a.u)};
Gu=function(a,b){if(1!=a.info.u.info.containerType||0!=a.info.C||!a.info.D)return!0;for(var c=Fu(a),d=0,e=0;d+4<c.byteLength;){e=c.getUint32(d);if(!e)return!1;d+=e}return d!==c.byteLength?(b&&(b.lastboxlen=e.toString(),4<=c.byteLength&&(b.lastbytes=c.getUint32(c.byteLength-4).toString()),b.boxlen=d.toString(),b.bytelen=c.byteLength.toString()),!1):!0};
Hu=function(a,b,c){var d;if(!(d=!lu(a.info,b.info)||a.info.D)){if(c=void 0===c?!1:c)c=b.u,c=!(c.u.length?uu(a.u,c.u[0]):1);d=c}if(d)return null;c=new iu(a.info.type,a.info.u,a.info.range,a.info.N,a.info.B,a.info.startTime,a.info.duration,a.info.C,a.info.fb,a.info.F,a.info.D);d=b.info;c.fb+=d.fb;c.range&&(c.P+=d.P);c.I=d.I;c.D=d.D;c.F=c.F||d.F;d=new tu;vu(d,a.u);vu(d,b.u);c=new Eu(c,d,a.C);c.B=b.B||a.B;if(a=c.info.range)a=c.u,a=!(1===a.u.length&&0<a.u[0].byteOffset);a&&(c.C=!1);return c};
Ju=function(a){g.Iu(a.info.u.info)||a.info.u.info.Ed();if(-1!=a.D)return a.D;if(a.B&&nt(a.B))return a.D=nt(a.B),a.D;if(g.Iu(a.info.u.info)){var b=Fu(a);for(var c=a.info.u.u,d=NaN,e=NaN,f=0;wt(b,f);){var h=xt(b,f);1936286840==h.type?e=h.data.getUint32(h.dataOffset+8):1836476516==h.type?e=tt(h):1952867444==h.type&&isNaN(d)&&(d=At(h));f=zt(h.type)?f+8:f+h.size}!e&&c&&(e=ut(c));b=d/e}else b=new It(Fu(a)),c=a.C?b:new It(new DataView(a.info.u.u.buffer)),d=$t(c),c=b.u,b.u=0,au(b)?Mt(b,231)?(d=Rt(b)*d/1E9,
b.u=c,b=d):(b.u=c,b=NaN):(b.u=c,b=NaN);a.D=b||a.info.K;return a.D};
Lu=function(a,b){0<a.F&&(b-=a.F);var c=Ju(a)+b;Ku(a,c);a.F=b};
Ku=function(a,b){g.Iu(a.info.u.info)||a.info.u.info.Ed();a.D=b;if(g.Iu(a.info.u.info)){for(var c=Fu(a),d=a.info.u.u,e=NaN,f=NaN,h=0;wt(c,h);){var l=xt(c,h);isNaN(e)&&(1936286840==l.type?e=l.data.getUint32(l.dataOffset+8):1836476516==l.type&&(e=tt(l)));if(1952867444==l.type){!e&&d&&(e=ut(d));var m=At(l);isNaN(f)&&(f=Math.round(b*e)-m);m+=f;if(l.data.getUint8(l.dataOffset)){var n=l.data,p=l.dataOffset+4;n.setUint32(p,Math.floor(m/4294967296));n.setUint32(p+4,m&4294967295)}else l.data.setUint32(l.dataOffset+
4,m)}h=zt(l.type)?h+8:h+l.size}return!0}c=new It(Fu(a));e=a.C?c:new It(new DataView(a.info.u.u.buffer));d=b;f=$t(e);e=c.u;c.u=0;if(au(c)&&Mt(c,231))if(h=Nt(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>h)c=!1;else{for(f=h-1;0<=f;f--)c.B.setUint8(c.u+f,d&255),d>>>=8;c.u=e;c=!0}else c=!1;return c};
Mu=function(a){g.Iu(a.info.u.info)||a.info.u.info.Ed();if(a.B&&6==a.info.type)return a.B.zg;if(g.Iu(a.info.u.info)){var b=Fu(a);var c=0;b=Et(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=Bt(d.value),c+=d.Tt[0]/d.Vt;c=c||NaN;if(!(0<=c))a:{c=Fu(a);b=a.info.u.u;d=0;for(var e,f=0;wt(c,d);){var h=xt(c,d);if(1836476516==h.type)e=tt(h);else if(1836019558==h.type){!e&&b&&(e=ut(b));if(!e){c=NaN;break a}var l=vt(h.data,h.dataOffset,1953653094),m=e,n=vt(l.data,l.dataOffset,1952868452);l=vt(l.data,
l.dataOffset,1953658222);var p=ft(n);ft(n);p&2&&ft(n);n=p&8?ft(n):0;var r=ft(l),t=r&1;p=r&4;var w=r&256,x=r&512,y=r&1024;r&=2048;var D=gt(l);t&&ft(l);p&&ft(l);for(var E=t=0;E<D;E++){var G=w?ft(l):n;x&&ft(l);p&&0==E||!y||ft(l);r&&ft(l);t+=G}f+=t/m}d=zt(h.type)?d+8:d+h.size}c=f||NaN}}else e=new It(Fu(a)),c=a.C?e:new It(new DataView(a.info.u.u.buffer)),c=hfa(e,$t(c));return c||a.info.P};
Nu=function(a){var b=Fu(a);var c=(c=g.qt(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.u.u,c=(b=g.qt(b,0,1836476516))?tt(b):a?ut(a):NaN);return c};
Ou=function(a){if(!a.B){g.Iu(a.info.u.info)||a.info.u.info.Ed();if(g.Iu(a.info.u.info)){var b=Fu(a),c=vt(b,0,1701671783);if(c){var d=Ct(c);var e=d.mQ;d=pt(d.rC);if(b=vt(b,c.offset+c.size,1701671783)){b=Ct(b);for(var f in b)if(c=pt(b.rC),d&&c)for(var h in c)d[h]=c[h]}e=d?new mt(d,e):null}else e=null}else{e=new It(Fu(a));f=e.u;e.u=0;d=h=null;if(Kt(e,[408125543,307544935,29555,26568]))for(b=Lt(e);!Jt(b);)c=Nt(b,!1),17543==c?d=pt(Wt(b)):17827==c?h=Wt(b):St(b);e.u=f;e=d?new mt(d,h):null}a.B=e}};
Pu=function(){this.u=.125;this.B=!1;this.C=0;this.Ce=!1};
Qu=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Jm?!1:c.Jm;var e=new Pu;e.B=a.ca("html5_streaming_xhr_no_mp4_holdback_chunk");e.C=g.Q(a.experiments,"html5_time_based_consolidation_ms");a.ca("html5_resume_streaming_requests")&&a.ca("html5_defer_slicing")&&(e.u=0);e.Ce=d||c;return e};
lfa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Tp(b||"");var c={};g.Gb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.R=function(a,b){return"true"===a.flags[b]};
g.Q=function(a,b){return Number(a.flags[b])||0};
g.Ru=function(a,b){var c=a.flags[b];return c?c.toString():""};
g.Su=function(){this.D=new Pu;this.az=this.Zy=!1;this.sG=2;this.I=20971520;this.K=8388608;this.F=120;this.Fa=3145728;this.X=62914560;this.Ia=10485760;this.BG=this.Ty=this.rf=0;this.Kz=!1;this.N=NaN;this.Bj=0;this.zq=this.DB=2;this.si=3;this.hz=2;this.Y=2097152;this.fz=1048576;this.ka=!1;this.ri=1800;this.nG=5;this.sf=10;this.W=15;this.kd=1;this.u=1.15;this.B=1.05;this.Vy=!0;this.fa=!1;this.iz=.8;this.wD=this.wb=!1;this.Ma=6;this.qF=this.xa=!1;this.Aj=.5;this.Mb=0;this.Dk=this.Ob=!1;this.Fg=this.qf=
0;this.Gz=2;this.Za=5E3;this.rD=6;this.ya=!1;this.P=.5;this.ac=2;this.Rb=this.Dz=0;this.Ez=1.5;this.Fz=this.wi=.5;this.Nd=15;this.kG=1;this.kz=this.Wy=this.uf=!1;this.qG=0;this.gs=this.Ki=this.Az=this.dz=this.bF=this.Ah=this.cz=this.Xy=!1;this.Bh=0;this.lz=this.HF=this.wz=this.jd=!1;this.De=0;this.tc=this.jb=this.TF=this.bC=this.Dh=this.ha=this.Bz=this.tf=this.mz=!1;this.ea=!0;this.vf=this.ba=this.bz=this.qk=!1;this.Ur=!0;this.ti=!1;this.C="";this.vi=!1;this.rJ=1048576;this.XE=this.Uy=this.Kc=this.Mg=
!1;this.ce=46800;this.kb=this.mr=this.Ek=this.ld=this.Pd=!1;this.LA=!0;this.oa=this.Hq=this.ez=this.jz=this.xi=this.Eq=this.Aq=this.zz=!1;this.Vc=0;this.xr=!1;this.Ra=0;this.cC="";this.fr=this.Cq=!1;this.Jb=!0;this.Bq=this.yA=this.Ch=!1};
mfa=function(a,b){1080<b.Ja().uc&&!a.Zy&&(a.I=36700160,a.K=5242880,a.Fa=10485760,a.Y=4194304,a.Zy=!0);2160<b.Ja().uc&&!a.az&&(a.I=104857600,a.N=13107200,a.az=!0);a.fz=Math.max(65536,Math.min(a.Y,5*b.u))};
Uu=function(a){a=a.split("");Tu.Ox(a,62);Tu.ND(a,50);Tu.lc(a,1);Tu.Ox(a,45);Tu.ND(a,33);Tu.lc(a,2);Tu.ND(a,64);return a.join("")};
Vu=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.er(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
Wu=function(a,b){return b&&b.test(a)?!0:!1};
Yu=function(a){return(a=Xu&&Xu.exec(a))?a[0]:""};
Zu=function(a){var b=void 0===b?!1:b;return Vu(Wu(a,nfa),a,b,"Trusted Stream URL")};
g.$u=function(a){var b=void 0===b?!1:b;return Vu(Wu(a,ofa),a,b,"Trusted Image URL")};
av=function(a){var b=void 0===b?!1:b;return Vu(Wu(a,pfa),a,b,"Trusted Promoted Video Domain URL")};
rfa=function(a){var b=void 0===b?!1:b;return Vu(Wu(a,qfa),a,b,"Drm Licensor URL")};
bv=function(a,b){b=void 0===b?!1:b;return Vu(Wu(a,sfa),a,b,"Captions URL")};
cv=function(a){a=new g.Zm(a);g.$m(a,document.location.protocol);g.an(a,document.location.hostname);document.location.port&&g.bn(a,document.location.port);return a.toString()};
dv=function(a){a=new g.Zm(a);g.$m(a,document.location.protocol);return a.toString()};
ev=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.u={};this.url=""};
gv=function(a){fv(a);return a.C};
hv=function(a){return a.B?pc(a.B,"local"):"local"===a.scheme};
iv=function(a){fv(a);return g.Mb(a.u,function(b){return null!==b})};
jv=function(a){fv(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.cd();b=new g.Zm(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.u.replace(/^[^.]*/,""),g.an(b,"r"+d+"---"+a[1]+c),b=new ev(b.toString()),b.set("fallback_count","1"),b;d=b.u.match("\\.a1\\.googlevideo\\.com$");b.u.match("\\.googlevideo\\.com$")?(g.an(b,"redirector.googlevideo.com"),c=b.toString()):b.u.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.an(b,"www.youtube.com"),c=b.toString()):c=cv(c);b=new ev(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
fv=function(a){if(a.B){if(!Zu(a.B)&&!a.B.startsWith("local"))throw Error("Untrusted URL: "+a.B);var b=g.gn(a.B);a.scheme=b.F;a.C=b.u+(null!=b.D?":"+b.D:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.u;a.u=kv(c);g.Wa(a.u,
lv(b.C.toString()));g.Wa(a.u,d);"index.m3u8"===a.u.file&&(delete a.u.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=Rda(b),a.set("n",b))}};
tfa=function(a){fv(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(iv(a)){var c=[];g.Jb(a.u,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
kv=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&mv(c,a[b],a[b+1]);return c};
lv=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?mv(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
mv=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};
nv=function(a){this.Nf=a;this.u={};this.url=""};
ov=function(a,b){var c=b.indexOf("?");if(0<c){var d=lv(b.substr(c+1));g.Jb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=kv(b);g.Jb(c,function(e,f){this.set(f,e)},a)};
ufa=function(a){var b=a.Nf.cd(),c=[];g.Jb(a.u,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=iv(a.Nf)?"&":"?";return b+a+d};
pv=function(a,b){var c=new ev(b),d=c.get("req_id");d&&a.set("req_id",d);g.Jb(a.u,function(e,f){c.set(f,null)});
return c};
vfa=function(){this.C=this.u=this.B=this.started=this.D=0};
wfa=function(a){a.D=(0,g.O)();a.started+=1};
qv=function(a){return Math.pow(1.6,a.started+a.C+4*a.u)};
rv=function(a,b){a[b]||(a[b]=new vfa);return a[b]};
xfa=function(a){this.C=null;this.F=this.B=0;this.u=a;this.D=a.clone()};
uv=function(a,b,c){var d=rv(c,gv(a.u));if(d.B>=b.Gz||1<=d.u)if(a=tv(a),c=rv(c,gv(a)),c.B+c.u<=d.B+d.u)return!0;return!1};
yfa=function(a,b){var c=b?tv(a):a.u;return new nv(c)};
tv=function(a){a.C||(a.C=jv(a.D));return a.C};
vv=function(a){return 1<a.B?a.F+1E3*Math.pow(1.6,a.B-1)<(0,g.O)():!0};
g.wv=function(a,b,c){b.Nf===a.u&&(a.u=pv(b,c));b.Nf===a.C&&(a.C=pv(b,c))};
xv=function(a,b){this.B=a[0].u.B;this.C=b||"";this.F="";this.u=a;this.range=this.u[0].range&&0<this.u[0].fb?kfa(this.u):null;this.D=this.Ie=NaN;this.I=this.requestId=null};
yv=function(a){return!ju(a.u[a.u.length-1])};
zv=function(a){return 4==a.u[a.u.length-1].type};
g.Av=function(a,b,c){if(a.F){var d=new nv(new ev(a.F));a.C&&ov(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new nv(new ev(a.C)):(b=null===a.I?uv(a.B,b,c):a.I,d=yfa(a.B,b),a.C&&ov(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.Ie)||d.set("headm",a.Ie.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.K&&g.Jb(a.K,function(e,f){d.set(f,e)});
return d};
Bv=function(a){if(a.range)return a.range.length;a=a.u[0];return Math.round(a.P*a.u.info.u)};
Cv=function(a,b,c){var d=null,e=a.u[0];if(a.range)d=fu(a.range.start,Math.min(4096,a.range.length));else if(c){if(a.C&&0<=a.C.indexOf("/range/")||"1"==a.B.D.get("defrag")||"1"==a.B.D.get("otf"))return null;d=fu(0,4096)}else if(e.u.info.video)return null;c=new iu(5,e.u,d,"createProbeRequestInfo_"+e.N,e.B);a=new xv([c],a.C);a.I=b;return a};
Dv=function(a,b,c,d){this.sampleRate=a||0;this.u=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Gv=function(a,b,c,d,e,f,h,l,m,n){this.width=a;this.height=b;this.isAccelerated=!1;this.quality=f||Ev(a,b);this.uc=g.Fv[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.Fv[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.u=l||"";this.primaries=m||"";this.streamType=n||0};
Hv=function(a){return 1280<=a.width||720<=a.height};
Iv=function(a){return"smpte2084"===a.u||"arib-std-b67"===a.u};
Ev=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=Jv[0],f=0;f<Jv.length;f++){var h=Jv[f],l=g.Fv[h];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=h}return"tiny"};
Mv=function(a,b,c,d,e,f,h,l,m){this.id=a;this.mimeType=b;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.B=void 0===e?null:e;this.Yc=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.F=!0;this.C=null;this.containerType=Kv(b);this.u=h||0;this.D=l||0;this.Fb=Lv[pu(this)]||""};
pu=function(a){return a.id.split(";",1)[0]};
Nv=function(a){return"9"===a.Fb||"("===a.Fb||"9h"===a.Fb||"(h"===a.Fb};
Ov=function(a){return"9h"===a.Fb||"(h"===a.Fb};
Pv=function(a){return"1"===a.Fb};
g.Iu=function(a){return 1===a.containerType};
Qv=function(a){return"application/x-mpegURL"===a.mimeType};
Rv=function(a){return a.includes("vtt")||a.includes("text/mp4")};
Kv=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};
Sv=function(a,b,c,d,e){var f=new Dv;b in g.Fv||(b="small");d&&e?(e=Number(e),d=Number(d)):(e=g.Fv[b],d=Math.round(16*e/9));d=new Gv(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new Mv(c,a,f,d)};
Tv=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.u=null;this.F=!1;this.I=null;this.P=0;this.B=new xfa(a);this.D=null;this.W=NaN;this.C=null};
g.Uv=function(){this.u=0;this.B=new Float64Array(128);this.C=new Float64Array(128);this.F=1;this.D=!1};
Vv=function(a){a.B.length<a.u+1&&a.resize(2*a.B.length)};
Wv=function(a,b,c,d,e,f){Tv.call(this,a,b,c||void 0,d||void 0);this.N=null;this.index=new g.Uv;this.K=e;this.lastModified=f};
Xv=function(a,b,c,d){for(var e=[];b<=a.index.Lb();b++){var f=a.index,h=b;f=fu(f.Us(h),h+1<f.u||f.D?f.B[h+1]-f.B[h]:-1);h=a.index.oe(b);var l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m),p=b==a.index.Lb()&&m+n==f.length;e.push(new iu(3,a,f,"getRequestInfoForRange_",b,h,l,m,n,p));if(f.start+m+n>=c+d)break}return new xv(e)};
Yv=function(){var a=this;this.u=this.B=jaa;this.promise=new zm(function(b,c){a.B=b;a.u=c})};
$v=function(){void 0===Zv&&(Zv=g.io());return Zv};
bw=function(a){a=void 0===a?!1:a;var b=$v();if(!b)return aw={};if(!aw||a)try{var c=b.get("yt-player-lv");aw=JSON.parse(c||"{}")}catch(d){aw={}}return aw};
cw=function(a){var b=$v();if(b){var c=JSON.stringify(a);b.set("yt-player-lv",c);aw=a}};
dw=function(a){return bw()[a]||0};
ew=function(){var a=bw();return Object.keys(a)};
fw=function(a){var b=bw();return Object.keys(b).filter(function(c){return b[c]===a})};
gw=function(a,b,c){c=void 0===c?!1:c;var d=bw(!0);if(c&&Object.keys(d).pop()!==a)delete d[a];else if(b===d[a])return;0!==b?d[a]=b:delete d[a];cw(d)};
zfa=function(a){var b=bw(!0);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]):3!==b[c]&&2!==b[c]&&(b[c]=4);Object.assign(b,a);cw(b);JSON.stringify(b);return b};
hw=function(a){return!!a&&1===dw(a)};
Afa=function(){var a=$v();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}};
kw=function(){return g.Ue(this,function b(){var c,d,e,f;return g.Aa(b,function(h){if(1==h.u){c=$v();if(!c)return h["return"](Promise.reject("No LocalStorage"));if(iw)return h["return"](iw);d=Bq(Aq());var l=Object.assign({},d);delete l.Authorization;var m=g.Kl();if(m){var n=new un;n.update(g.L("INNERTUBE_API_KEY",void 0));n.update(m);l.hash=g.qf(n.digest(),3)}m=new un;m.update(JSON.stringify(l,Object.keys(l).sort()));l=m.digest();m="";for(n=0;n<l.length;n++)m+="0123456789ABCDEF".charAt(Math.floor(l[n]/
16))+"0123456789ABCDEF".charAt(l[n]%16);e=m;f=c.get("yt-player-lv-id");return f?f===e?h.Wd(2):g.ra(h,jw(),4):(c.set("yt-player-lv-id",e),h.Wd(2))}2!=h.u&&c.set("yt-player-lv-id",e);iw=Bfa();return h["return"](iw)})})};
Bfa=function(){return g.Ue(this,function b(){return g.Aa(b,function(c){return c["return"](new Promise(function(d,e){var f=indexedDB.open("yt-player-local-media",3);f.onerror=function(h){"VersionError"===h.target.error.name?(h=indexedDB.open("yt-player-local-media"),h.onsuccess=function(l){d(l.target.result)},h.onerror=e):e()};
f.onsuccess=function(h){var l=h.target.result;l.onversionchange=function(){l.close();iw=null};
d(l)};
f.onupgradeneeded=function(h){var l=h.target.result;2>h.oldVersion&&(l.createObjectStore("index"),l.createObjectStore("media"));3>h.oldVersion&&l.createObjectStore("metadata")}}))})})};
lw=function(a,b){return g.Ue(this,function d(){var e,f;return g.Aa(d,function(h){e=IDBKeyRange.bound(b+"|",b+"~");f=a.objectStore("index").getAll(e);return h["return"](new Promise(function(l,m){f.onsuccess=function(n){return void l(n.target.result.join(","))};
f.onerror=m}))})})};
Cfa=function(){return g.Ue(this,function b(){var c;return g.Aa(b,function(d){if(1==d.u)return iw?g.ra(d,iw,3):d.Wd(2);2!=d.u&&(c=d.B,c.close(),iw=null);return d["return"](new Promise(function(e,f){var h=indexedDB.deleteDatabase("yt-player-local-media");h.onsuccess=function(){return void e()};
h.onerror=function(){return void f()}}))})})};
mw=function(a,b){return g.Ue(this,function d(){var e,f,h,l;return g.Aa(d,function(m){if(1==m.u)return g.ra(m,kw(),2);e=m.B;f=["index","media"];b&&f.push("metadata");h=e.transaction(f,"readwrite");l=IDBKeyRange.bound(a+"|",a+"~");h.objectStore("index")["delete"](l);h.objectStore("media")["delete"](l);b&&h.objectStore("metadata")["delete"](a);return m["return"](new Promise(function(n,p){h.oncomplete=function(){return void n()};
h.onabort=p}))})})};
Dfa=function(){return g.Ue(this,function b(){var c,d,e;return g.Aa(b,function(f){if(1==f.u)return g.ra(f,kw(),2);c=f.B;d=c.transaction(["index","media"],"readwrite");e=d.objectStore("index").openCursor();return f["return"](new Promise(function(h,l){var m={};e.onerror=l;e.onsuccess=function(n){if(n=n.target.result){var p=n.key.match(/^([\w\-_]+)\|(a|v)$/);if(p){var r=p[1];p=p[2];m[r]=m[r]||{};m[r][p]=nw(n.value)}else d.objectStore("index")["delete"](n.key);n["continue"]()}else{var t={};n=g.q(Object.keys(m));
for(r=n.next();!r.done;r=n.next())r=r.value,p=m[r].v,t[r]=m[r].a&&p?1:2;var w=zfa(t);n=d.objectStore("media").openKeyCursor();n.onerror=l;n.onsuccess=function(x){if(x=x.target.result){var y=x.key.match(/^([\w\-_]+)\|(\d+)\|(\d+)$/);y&&t[y[1]]||d.objectStore("media")["delete"](x.key);x["continue"]()}else h(w)}}}}))})})};
Efa=function(a,b,c){g.Ue(this,function e(){var f,h,l,m,n,p,r,t;return g.Aa(e,function(w){if(1==w.u)return g.ra(w,kw(),2);if(3!=w.u)return f=w.B,h=f.transaction(["index","media"],"readwrite"),l=h.objectStore("index").openCursor(),m={},n=b,g.ra(w,new Promise(function(x,y){l.onsuccess=function(D){if(D=D.target.result){var E=D.key.match(/^([\w\-_]+)\|(a|v)$/);if(E){E=E[1];var G=Wp(D.value);!m[E]&&0<G.length&&(G=+G[0].mket,isNaN(G)||(m[E]=G,n+=G))}D["continue"]()}else x(m)};
l.onerror=y}),3);
for(p=ew();0<p.length&&n>c;)r=p.shift(),r!==a&&(n-=m[r]||0,delete m[r],t=IDBKeyRange.bound(r+"|",r+"~"),h.objectStore("index")["delete"](t),h.objectStore("media")["delete"](t),gw(r,0));return w["return"](new Promise(function(x,y){h.oncomplete=function(){return x()};
h.onabort=y}))})})};
Ffa=function(a,b){g.Ue(this,function d(){var e,f;return g.Aa(d,function(h){if(1==h.u)return g.ra(h,kw(),2);e=h.B;f=e.transaction(["metadata"],"readwrite");f.objectStore("metadata").put(b,a);return h["return"](new Promise(function(l,m){f.oncomplete=function(){return void l()};
f.onabort=m}))})})};
pw=function(a,b,c,d,e){return g.Ue(this,function h(){var l,m,n,p,r,t,w,x;return g.Aa(h,function(y){if(1==y.u)return l=dw(a),4===l?y["return"](Promise.resolve(4)):g.ra(y,kw(),2);m=y.B;void 0!==d&&void 0!==e?(n=m.transaction(["index","media"],"readwrite"),p=""+a+"|"+b.id+"|"+d,n.objectStore("media").put(e,p)):n=m.transaction(["index"],"readwrite");r=ow(a,b.isVideo());t=ow(a,!b.isVideo());n.objectStore("index").put(c,r);x=(w=nw(c))?n.objectStore("index").get(t):null;return y["return"](new Promise(function(D,
E){n.oncomplete=function(){var G=dw(a);4!==G&&w&&x&&nw(x.result)&&(G=1,gw(a,G));D(G)};
n.onabort=function(G){var K=dw(a);4===K?D(K):(gw(a,4),E(G))}}))})})};
Gfa=function(a){return g.Ue(this,function c(){var d,e;return g.Aa(c,function(f){if(1==f.u)return g.ra(f,kw(),2);d=f.B;e=d.transaction("index");return f["return"](lw(e,a))})})};
Hfa=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m;return g.Aa(e,function(n){if(1==n.u)return g.ra(n,kw(),2);f=n.B;h=f.transaction("media");l=""+a+"|"+b+"|"+c;m=h.objectStore("media").get(l);return n["return"](new Promise(function(p,r){h.oncomplete=function(){return void p(m.result)};
h.onabort=r}))})})};
Ifa=function(a){return g.Ue(this,function c(){var d,e;return g.Aa(c,function(f){if(1==f.u)return g.ra(f,kw(),2);d=f.B;e=d.transaction(["index","metadata"]);return f["return"](qw(e,a))})})};
Jfa=function(){return g.Ue(this,function b(){var c,d;return g.Aa(b,function(e){if(1==e.u)return g.ra(e,kw(),2);c=e.B;d=c.transaction(["index","metadata"]);return e["return"](Promise.all(ew().map(function(f){return qw(d,f)})))})})};
qw=function(a,b){return g.Ue(this,function d(){var e,f,h,l,m,n,p,r,t;return g.Aa(d,function(w){if(1==w.u)return e=a.objectStore("metadata").get(b),f=new Promise(function(x,y){e.onsuccess=function(){return void x(e.result)};
e.onerror=y}),g.ra(w,lw(a,b),2);
if(3!=w.u){h=w.B;l={videoId:b,totalSize:0,downloadedSize:0,status:dw(b),details:null};if(!h.length)return w["return"](l);m=Wp(h);n=g.q(m);for(p=n.next();!p.done;p=n.next())r=p.value,l.totalSize+=+r.mket*+r.avbr,l.downloadedSize+=r.hasOwnProperty("dlt")?(+r.dlt||0)*+r.avbr:+r.mket*+r.avbr;t=l;return g.ra(w,f,3)}t.details=w.B||null;return w["return"](l)})})};
rw=function(a){return g.Ue(this,function c(){return g.Aa(c,function(d){gw(a,0);return d["return"](mw(a,!0))})})};
jw=function(){return g.Ue(this,function b(){var c;return g.Aa(b,function(d){c=$v();if(!c)return d["return"](Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");var e=$v();e&&(e.remove("yt-player-lv"),aw=null);return d["return"](Cfa())})})};
nw=function(a){return!!a&&-1===a.indexOf("dlt")};
ow=function(a,b){return""+a+"|"+(b?"v":"a")};
Kfa=function(a,b){this.K=a;this.B=b;this.F=a.rJ;this.I=new Uint8Array(this.F);this.D=this.C=0;this.u=null;this.N=[];this.W=this.X=null;this.P=new Yv};
Lfa=function(a){var b=tw(a);b=pw(a.K.C,a.B.info,b);uw(a,b)};
vw=function(a){return!!a.u&&a.u.F};
xw=function(a,b){if(!vw(a)){if(1==b.info.type)a.X=fu(0,b.u.getLength());else if(2==b.info.type){if(!a.u||1!=a.u.type)return;a.W=fu(a.D*a.F+a.C,b.u.getLength())}else if(3==b.info.type){if(3==a.u.type&&!lu(a.u,b.info)&&(a.N=[],b.info.B!=nu(a.u)||0!=b.info.C))return;if(b.info.D)a.N.map(function(c){return ww(a,c)}),a.N=[];
else{a.N.push(b);a.u=b.info;return}}a.u=b.info;ww(a,b);Mfa(a)}};
ww=function(a,b){for(var c=0,d=Au(b.u);c<d.length;){var e=Math.min(d.length-c,a.I.byteLength-a.C),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.I.set(f,a.C);a.C+=e;c+=e;if(a.C==a.I.length){if(b.info===a.u&&vw(a)&&c===d.length)break;e=tw(a);e=pw(a.K.C,a.B.info,e,a.D,a.I);uw(a,e);a.I=new Uint8Array(a.F);a.C=0;a.D+=1}}};
Mfa=function(a){if(vw(a)){var b=new Uint8Array(a.I.buffer,0,a.C);var c={lmt:a.B.lastModified,docid:a.K.C,fmtid:a.B.info.id,type:a.B.info.mimeType.split(";")[0],csz:a.F,clen:a.D*a.F+a.C};c="local://localhost/videoplayback?"+Up(c);c={itag:pu(a.B.info),type:a.B.info.mimeType,bitrate:8*a.B.info.u,lmt:""+a.B.lastModified,init:a.X.toString(),index:a.W.toString(),mket:Math.round(a.B.index.Nj()).toString(),avbr:Math.round(a.B.info.D).toString(),url:c};c=Up(c);b=pw(a.K.C,a.u.u.info,c,a.D,b);uw(a,b,!0)}};
tw=function(a){a={itag:a.B.info.id,dlt:Math.round(a.u?a.u.I:0),mket:Math.round(a.B.index.Nj()),avbr:Math.round(a.B.info.D),csz:a.F,lmt:a.B.lastModified};return Up(a)};
uw=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.P.resolve(d)},function(d){a.P.reject(d)})};
Nfa=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};
Ofa=function(a){a=Et(a,1886614376);g.Gb(a,function(b){return!b.B});
return g.Pc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
Pfa=function(a){var b=g.kh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Gb(a,function(e){c.set(e,d);d+=e.length});
return c};
Qfa=function(a,b){this.B=a;this.K=this.I=!1;this.length=b?b:0;this.C=0;this.D=null;this.u=[];this.F=null;this.length?1!=this.B.length||this.B[0].fb||(this.B[0].fb=this.length):1==this.B.length||g.jh(this.B,function(c){return!!c.range})};
Rfa=function(a){return a.length-a.C+a.u.reduce(function(b,c){return b+c.u.getLength()},0)};
yw=function(a,b,c){var d=this;this.ck=a;this.Jd=b;this.loaded=this.status=0;this.error="";a=eu(this.ck.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new tu;Sfa(this).then(c,function(e){d.error=""+e||"unknown_err";c()})};
Sfa=function(a){return g.Ue(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w,x,y,D;return g.Aa(c,function(E){if(1==E.u){d.status=200;e=d.ck.get("docid");f=d.ck.get("fmtid");h=+(d.ck.get("csz")||0);if(!e||!f||!h)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/h);n=Math.floor(l.end/h);p=m}if(5!=E.u)return p<=n?g.ra(E,Hfa(e,f,p),5):E.Wd(0);r=E.B;t=p*h;w=(p+1)*h;x=Math.max(0,l.start-t);y=Math.min(l.end+1,w)-(x+t);D=new Uint8Array(r.buffer,x,y);d.u.append(D);d.loaded+=y;d.loaded<l.length&&
d.Jd(g.A(),d.loaded);p++;return E.Wd(2)})})};
Tfa=function(a){this.schedule=a;this.u=NaN;this.B=[];this.totalBytes=0};
Aw=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.gg?!1:e.gg;var f=void 0===e.Vh?!1:e.Vh,h=void 0===e.ql?!1:e.ql,l=e.Zh,m=e.eb;e=e.Ie;this.fa=null;this.ba=this.u=NaN;this.xa=0;this.X=this.ea=this.B=this.D=NaN;this.oa=this.ha=this.isActive=!1;this.C=0;this.Y=NaN;this.N=this.I=Infinity;this.W=NaN;this.ya=!1;this.K=this.P=NaN;this.F=this.ka=void 0;this.gg=d;this.Vh=f;this.ql=h;this.Zh=l;this.eb=m;this.Ie=e;this.schedule=a;this.Fa=b;this.Ia=c;this.snapshot=zw(this.schedule)};
Bw=function(a){return{rt:(g.A()-a.u).toFixed(),lb:a.B.toFixed(),pt:(1E3*a.Y).toFixed(),pb:a.Fa.toFixed(),stall:(1E3*a.C).toFixed(),elbowTime:(a.ba-a.u).toFixed(),elbowBytes:a.xa.toFixed()}};
Ufa=function(a){a.u=g.A();a.D=a.u;a.B=0;a.ea=a.u;a.X=0;a.F&&(a.F=[]);a.ha=!1;a.oa=!1;a.C=0;a.snapshot=zw(a.schedule);a.I=Infinity;a.N=Infinity;Cw(a);Dw(a,a.u);a.Y=(a.P-a.u)/1E3;a.K=NaN;a.ka=void 0};
Ew=function(a){!a.K&&a.fa&&(a.K=a.fa(),3===a.K&&(a.ka=new Tfa(a.schedule)));return a.K};
Kw=function(a,b,c,d){var e=(b-a.D)/1E3,f=c-a.B,h=Ew(a);if(3===h&&f){var l=a.ka;l.B.push({QV:f,fW:isNaN(l.u)?NaN:d-l.u,WV:d});l.u=d}a.isActive?1===h&&0<f&&(.2<e||1024>f?(a.C+=e,.2<e&&Iw(a,.05,f)):Iw(a,e,f),a.oa=!0):Fw(a,c)&&(1===h&&(d=(b-a.u)/1E3,Gw(a)||a.Vh||Hw(a.schedule,d)),a.ba=b,a.xa=c,a.isActive=!0);a.Vh||Jw(a.schedule,e,f);a.D=b;a.B=c};
Iw=function(a,b,c){if(!a.Vh){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.ql;a=void 0===a?!1:a;d.u.C(void 0===b?e:b,c/e);a||(d.I=Lw())}};
Nw=function(a,b,c){c=Math.round(c/1024);a.F&&a.F.push(Mw(b-a.ea,c-a.X));a.ea=b;a.X=c};
Fw=function(a,b){return b?a.Zh&&1!==Ew(a)?!0:2048<=b:!1};
Ow=function(a){return Fw(a,a.B)};
Cw=function(a){a.W=a.u+1E3*a.snapshot.delay;a.ya=!1};
Pw=function(a,b){a.Zh&&void 0!==a.eb&&void 0!==a.Ie&&(a.I=Math.min(a.I,Vfa(a.Zh,a.eb,a.u,b)),a.N=Math.min(a.N,Wfa(a.Zh,a.eb,a.u,b,a.Ie)),a.I<=a.u?Cw(a):(a.W=a.I,a.ya=!0))};
Gw=function(a){a.Zh&&Pw(a,g.A());return a.ya};
Dw=function(a,b){b=void 0===b?g.A():b;if(a.Zh){Pw(a,b);var c=a.K?a.Zh?1!==Ew(a):!1:a.I!==a.N;if(c){if(c=a.N,b<c){a.P=a.N;return}}else c=a.I;c=Math.max(c,a.W)}else c=a.W;var d=a.Fa-a.B;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=Ow(a)?d+b:d+Math.max(b,c);a.P=d};
Mw=function(a,b){for(var c="";4095<a;)c+=Mw(4095,0),a-=4095;for(;4095<b;)c+=Mw(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))};
Qw=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
Rw=function(a){if(a.vo())return!1;a=a.Hd("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
Sw=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.method?"GET":h.method;var l=h.headers,m=h.body;h=void 0===h.credentials?"include":h.credentials;this.Y=b;this.X=c;this.ba=d;this.policy=e;this.status=0;this.response=void 0;this.W=!1;this.B=0;this.N=NaN;this.aborted=this.I=this.P=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.u=new tu;this.id=Xfa++;this.D=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
Uw=function(a){a.C.read().then(function(b){if(!a.la()){var c;window.performance&&window.performance.now&&(c=window.performance.now());var d=Date.now(),e=b.value?b.value:void 0;a.F&&(a.u.append(a.F),a.F=void 0);b.done?(a.C=void 0,a.onDone()):(a.B+=e.length,Tw(a)?a.u.append(e):a.F=e,a.Y(d,a.B,c),Uw(a))}},function(b){a.onError(b)}).then(void 0,g.N)};
Tw=function(a){var b=a.Hd("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.B&&a.policy.Ce&&Rw(a)&&b};
Vw=function(a,b,c,d){var e=this;this.status=0;this.la=this.B=!1;this.u=NaN;this.xhr=new XMLHttpRequest;this.xhr.open("GET",a);this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===e.xhr.readyState&&e.F()};
this.C=c;this.D=b;this.F=d;a=Do(function(f){e.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);this.xhr.send();this.xhr.addEventListener("progress",Do(function(f){e.Jd(f)}),!1)};
Xw=function(){this.C=this.u=0;this.B=Array.from({length:Ww.length}).fill(0)};
Yw=function(){};
bx=function(a,b){var c=this;return Zw?function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=$w();e=b.apply(c,e);ax(a,$w()-f);return e}:b};
cx=function(a,b){if(Zw){var c=$w();b();ax(a,$w()-c)}else b()};
ax=function(a,b){a in dx||(dx[a]=new Xw);dx[a].dF(b)};
ex=function(){return g.Qs("yt-player-quality")||"auto"};
fx=function(){var a={values:{},HV:{}};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};
gx=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
ix=function(a,b){return+hx()[gx(a,b)]||8192};
hx=function(){return g.Qs("yt-player-performance-cap")||{}};
jx=function(a){g.Ps("yt-player-watch-later-pending",a)};
kx=function(){return g.Qs("yt-player-headers-readable")||!1};
lx=function(a){g.Ps("yt-player-playback-on-reload",a)};
mx=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
px=function(a,b,c,d,e,f){var h=this,l=void 0===f?{}:f;f=void 0===l.AE?[]:l.AE;var m=void 0===l.Xp?!1:l.Xp;l=void 0===l.Mk?0:l.Mk;this.B=a;this.info=b;this.timing=c;this.timing.fa=function(){var n;if(Yfa(h)){if(n=h.B.gs&&!(!window.performance||!window.performance.now)&&h.u&&h.u.Im()&&h.u.li())n=h.u,n=n.policy.Ce&&Rw(n);n=n?h.info.u[0].u.info.video?3:4:2}else n=1;return n};
this.ha=d;this.W=e;this.state=1;this.Xp=m;this.P=++Zfa;this.D=g.Av(this.info,this.B,this.ha);this.D.set("rn",this.P.toString());this.D.set("rbuf",(1E3*l).toFixed().toString());this.Xp&&this.D.set("smb","1");this.ka=f||null;this.N=$fa(this);this.K=0;this.F=null;this.I=0;this.C=null;this.X=0;this.ya=this.ea=!1;this.ba=this.Y=null;this.oa=this.B.ri*(this.B.Jb?qv(nx(this)):1);this.fa=new g.H(this.gQ,this.oa,this);this.info.B.F=(0,g.O)();wfa(nx(this));Ufa(this.timing);try{this.u=aga(this),this.fa.start()}catch(n){g.Eo(n),
this.F="net.ssl",g.um(function(){return ox(h)})}};
qx=function(a){var b=Bw(a.timing);b.shost=gv(a.D.Nf);b.rn=a.P.toString();a.I&&(b.rc=a.I.toString());b.itag=""+pu(a.info.u[0].u.info);b.ml=""+ +a.info.u[0].u.Td();b.sq=""+a.info.u[0].B;if(a.D){var c=a.D.Nf;fv(c);var d=decodeURIComponent(c.get("mn")||"").split(",");b.ifi=""+ +("/videoplayback"===c.path&&1<d.length&&!!d[1])}410!=a.I&&500!=a.I&&503!=a.I||(b.fmt_unav="true");a.u&&a.u.Al()&&(b.msg=a.u.Al());a.Xp&&(b.smb="1");a.C&&(a=a.C.u,a.length&&Gu(a[0],b));return b};
$fa=function(a){if(!(zv(a.info)&&a.info.gg()&&a.B.uf&&a.ka)||2<=a.info.B.B||"auto"!==ex()||!kx())return!1;var b=a.D.get("aitags");if(!b)return!1;var c=md(b).split(","),d=[];g.Gb(a.ka,function(e){g.nb(c,e)&&d.push(e)});
if(!d.length)return!1;a.D.set("altitags",ld(d.join(",")));return!0};
nx=function(a){return rv(a.ha,gv(a.D.Nf))};
cga=function(a,b){if(400<=b.status)return a.F="net.badstatus",6;if(!b.Qr())return a.F=204==b.status?"net.nocontent":"net.connect",6;var c="";if(rx(a)){var d=b.Mw();2048>=d.getLength()&&(c=Au(d),c=Ht(c),c=Zu(c)?c:"")}if(c){d=nx(a);(0,g.O)();d.started=0;d.B=0;d.u=0;d=a.info;var e=a.D;g.wv(d.B,e,c);d.requestId=e.get("req_id");return 4}c=b.Js();if((d=!!a.info.range&&a.info.range.length)&&d!=c||b.Jx())return a.F="net.closed",6;sx(a,!0);if(a.B.LA&&!d&&a.C&&(d=a.C.u,d.length&&!Gu(d[0])))return a.F="net.closed",
6;e=tx(a)?b.Hd("X-Bandwidth-Est"):0;if(d=tx(a)?b.Hd("X-Bandwidth-Est3"):0)a.ya=!0,a.B.cz&&(e=d);d=a.timing;var f=e?parseInt(e,10):0;e=g.A();if(!d.ha){d.ha=!0;if(!d.Vh){e=e>d.u&&4E12>e?e:g.A();Nw(d,e,c);Kw(d,e,c);var h=Ew(d);if(2===h&&f)Iw(d,d.B/f,d.B);else if(2===h||1===h)f=(e-d.u)/1E3,(f<=d.schedule.P.u||!d.schedule.P.u)&&!d.oa&&Ow(d)&&Iw(d,f,c),Ow(d)&&ux(d.schedule,c,d.C);vx(d.schedule,(e-d.u)/1E3||.05,d.B,d.Y,d.gg,d.ql)}d.deactivate()}c=nx(a);(0,g.O)();c.started=0;c.B=0;c.u=0;a.info.B.B=0;(0,g.O)()<
wx+3E5||!a.D||hv(a.D.Nf)||!(c=gv(a.D.Nf))||0>c.indexOf("googlevideo.com")||(g.Ps("yt-player-bandaid-host",{VP:c},432E3),wx=(0,g.O)());return 5};
ox=function(a){if("net.timeout"==a.F){var b=a.timing,c=g.A();if(!b.Vh){c=c>b.u&&4E12>c?c:g.A();Nw(b,c,1024*b.X);var d=(c-b.u)/1E3;2!==Ew(b)&&(Ow(b)?(b.C+=(c-b.D)/1E3,ux(b.schedule,b.B,b.C)):(Gw(b)||b.Vh||Hw(b.schedule,d),b.ba=c));vx(b.schedule,d,b.B,b.Y,b.gg,b.ql);Jw(b.schedule,(c-b.D)/1E3,0)}}"net.nocontent"!=a.F&&("net.timeout"==a.F||"net.connect"==a.F?(b=nx(a),b.B+=1):(b=nx(a),b.u+=1),a.info.B.B++);xx(a,6)};
yx=function(a){a.la();var b=nx(a);return 100>b.B&&b.u<a.B.rD};
xx=function(a,b){a.state=b;4<=a.state&&(a.B.ld?zx(a):a.timing.deactivate());a.W&&a.W(a)};
Ax=function(a,b){if(b){var c=nx(a);c.C+=1}zx(a);a.F="net.timeout";ox(a)};
tx=function(a){return g.jh(a.info.u,function(b){return 3==b.type})};
zx=function(a){a.u&&a.u.abort();a.timing.deactivate()};
rx=function(a){var b=a.u.Hd("content-type"),c=a.u.vo();return(!a.u.li()||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
aga=function(a){var b=(0,g.z)(a.DP,a),c=(0,g.z)(a.FP,a),d=(0,g.z)(a.EP,a);if(hv(a.D.Nf))return new yw(a.D,c,b);var e=a.D.cd();return a.B.fa&&(a.B.kz&&!isNaN(a.info.Ie)&&a.info.Ie>a.B.qG?0:Qw())?new Sw(e,c,b,d,a.B.D):new Vw(e,c,b,d)};
dga=function(a){a.C&&a.C.F?(a=a.C.F,a=new iu(a.type,a.u,a.range,"getEmptyStubAfter_"+a.N,a.B,a.startTime+a.duration,0,a.C+a.fb,0,!1)):(a=a.info.u[0],a=new iu(a.type,a.u,a.range,"getEmptyStubBefore_"+a.N,a.B,a.startTime,0,a.C,0,!1));return a};
Bx=function(a){return 1>a.state?!1:a.C&&a.C.u.length||a.B.oa&&a.u.Wg()?!0:!1};
Cx=function(a){a.B.oa&&sx(a,!1);return a.C?a.C.u:[]};
sx=function(a,b){if(b||a.u.Wg()&&!rx(a)&&!a.N){if(!a.C){if(a.u.li())a.info.range&&(c=a.info.range.length);else var c=a.u.Js();a.C=new Qfa(a.info.u,c)}for(;a.u.Wg();)a:{c=a.C;var d=a.u.Ks(),e=b&&!a.u.Wg();c.D&&(vu(c.D,d),d=c.D,c.D=null);for(var f=0,h=0,l=g.q(c.B),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.fb<=c.C)f+=m.fb;else{d.getLength();if(ju(m)&&!e&&c.C+d.getLength()-h<f+m.fb){c.D=d.split(h).Wl;break a}var n=c.C-f;var p=c,r=m;if(1==r.type){p.I=!0;var t=!1}else 3==r.type||4==r.type?
(r=p.I&&!p.K,p.K=!0,t=r):t=!1;p=c;var w=m,x=n;r=h;var y=d;n=t||m.u.AC()&&!n;var D=!!e;t=y.getLength()-r;w.range&&(t=Math.min(w.fb-x,t));D=w.range?w.C+x+t==w.range.length:D;w=new iu(w.type,w.u,w.range,"reslice_"+w.N,w.B,w.startTime,w.duration,w.C+x,t,D&&w.F,D);x=t;r=y.split(r).Wl.split(x).Rr;p.u.push(new Eu(w,r,n));p=t;c.C+=p;h+=p;f+=m.fb;if(h==d.getLength())break}d.getLength()}}};
Yfa=function(a){if(!a.B.D.Ce||!isNaN(a.info.Ie)&&0<a.info.Ie)return!1;if(!a.u.Im())return!0;if(!Rw(a.u))return!1;if(isNaN(a.info.Ie)){var b=a.u.Hd("x-head-seqnum");if(b&&parseInt(b,10)>a.info.u[0].B)return!1}return!0};
Dx=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.u=this.cryptoPeriodIndex=NaN;this.B=[];this.Ed=!1};
Ex=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{var m=new df(b.subarray(c+f,c+f+l)),n=new oo;for(f=m;ef(f)&&4!=f.B;)switch(f.C){case 2:var p=kf(f),r=p;g.Hf(n,2).push(r);break;case 4:p=kf(f);g.Jf(n,4,p);break;case 7:p=cf(f.u);g.Jf(n,7,p);break;case 9:p=cf(f.u);g.Jf(n,9,p);break;case 10:p=cf(f.u);
g.Jf(n,10,p);break;case 11:p=bf(f.u);g.Jf(n,11,p);break;case 12:p=cf(f.u);g.Jf(n,12,p);break;case 13:r=p=kf(f);g.Hf(n,13).push(r);break;case 14:p=new po;r=f;var t=p,w=Qda,x=r.u.C,y=cf(r.u),D=r.u.u+y;r.u.C=D;w(t,r);r.u.u=D;r.u.C=x;r=n;t=p;w=po;g.Lf(r,w,14);var E=r.u[14];E||(E=r.u[14]=[]);var G=t?t:new w,K=g.Hf(r,14);E.push(G);K.push(G.lf);break;case 15:p=jf(f);g.Jf(n,15,p);break;case 1:p=bf(f.u);g.Jf(n,1,p);break;case 3:p=jf(f);g.Jf(n,3,p);break;case 5:p=jf(f);g.Jf(n,5,p);break;case 6:p=jf(f);g.Jf(n,
6,p);break;case 8:p=kf(f);g.Jf(n,8,p);break;default:ff(f)}f=n;if(null!=f){var M=f;break a}}catch(Ia){}}c+=e}M=null}catch(Ia){M=null}}if(null!=M)for(b=g.Hf(M,7),a.cryptoPeriodIndex||null==b||(a.cryptoPeriodIndex=b),b=g.Hf(M,10),null!=b&&0<b&&!a.Ed&&a.u!==b&&(a.u=b),M=g.Hf(M,2),M=!M.length||M[0]instanceof Uint8Array?M:g.Pc(M,Waa),M=g.q(M),b=M.next();!b.done;b=M.next())a.B.push(g.qf(b.value,4))};
Fx=function(a){this.u=a;this.offset=0};
Gx=function(a){if(a.offset>=a.u.getLength())throw Error();return Cu(a.u,a.offset++)};
Hx=function(a,b){b=void 0===b?!1:b;var c=Gx(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=Gx(a);-1===c&&255!==e&&(c=0);-1<c&&(c=256*c+e)}return c}d=128;for(e=0;6>e&&d>c;e++)c=256*c+Gx(a),d*=128;return b?c:c-d};
Ix=function(a,b,c){g.P.call(this);var d=this;this.F=a;this.B=[];this.u=null;this.X=-1;this.N=0;this.fa=NaN;this.P=0;this.C=b;this.Fa=c;this.I=NaN;this.ka=0;this.oa=-1;this.D=this.W=this.ya=this.Y=this.ea=this.K=this.ba=null;this.F.C&&(this.D=new Kfa(this.F,this.C),this.D.P.promise.then(function(e){d.D=null;1==e&&d.V("localmediachange",e)},function(){d.D=null;
d.V("localmediachange",4)}),Lfa(this.D));
this.xa=!1;this.ha=0};
Jx=function(a){return a.B.length?a.B[0]:null};
Kx=function(a){return a.B.length?a.B[a.B.length-1]:null};
Rx=function(a,b,c){if(a.ea){if(a.F.Cq){var d=a.ea;var e=c.info;d=d.B!=e.B&&e.B!=d.B+1||d.type!=e.type||ee(d.K,e.K)&&d.B===e.B?!1:mu(d,e)}else d=mu(a.ea,c.info);d||(a.I=NaN,a.ka=0,a.oa=-1)}a.ea=c.info;a.C=c.info.u;0==c.info.C?Lx(a):!a.C.Ee()&&a.K&&qu(c.info,a.K);a.u?(c=Hu(a.u,c),a.u=c):a.u=c;a:{c=g.Iu(a.u.info.u.info);if(3!=a.u.info.type){if(!a.u.info.D)break a;6==a.u.info.type?Mx(a,b,a.u):Nx(a,a.u);a.u=null}for(;a.u;){d=a.u.u.getLength();if(0>=a.X&&0==a.N){var f=a.u.u,h=-1;e=-1;if(c){for(var l=0;l+
8<f.getLength();){var m=Du(f,l),n=Du(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 Fx(f);for(m=l=!1;;){n=f.offset;var p=f;try{var r=Hx(p,!0),t=Hx(p,!1);var w=r;var x=t}catch(D){x=w=-1}p=w;var y=x;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.offset+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.offset+y);if(160===p){0>h&&(e=h=f.offset+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.X=h;a.N=
e-h}if(a.X>d)break;a.X?(d=Ox(a,a.X),d.C&&!a.C.Ee()&&Px(a,d),Mx(a,b,d),Qx(a,d),a.X=0):a.N&&(d=Ox(a,0>a.N?Infinity:a.N),a.N-=d.u.getLength(),Qx(a,d))}}a.u&&a.u.info.D&&(Qx(a,a.u),a.u=null)};
Nx=function(a,b){!a.C.Ee()&&0==b.info.C&&(g.Iu(b.info.u.info)||b.info.u.info.Ed())&&Ou(b);if(1==b.info.type)try{Px(a,b),Sx(a,b)}catch(d){g.N(d);var c=ou(b.info);c.hms="1";a.V("error",c||{})}b.info.u.Or(b);a.D&&xw(a.D,b)};
ega=function(a){var b=a.B.reduce(function(c,d){return c+d.u.getLength()},0);
a.u&&(b+=a.u.u.getLength());return b};
Tx=function(a){return g.Pc(a.B,function(b){return b.info})};
Ox=function(a,b){var c=a.u,d=Math.min(b,c.u.getLength());if(d==c.u.getLength())return a.u=null,c;c.u.getLength();d=Math.min(d,c.info.fb);var e=c.u.split(d),f=e.Rr;e=e.Wl;var h=new iu(c.info.type,c.info.u,c.info.range,c.info.N,c.info.B,c.info.startTime,c.info.duration,c.info.C,d,!1,!1);f=new Eu(h,f,c.C);c=new iu(c.info.type,c.info.u,c.info.range,c.info.N,c.info.B,c.info.startTime,c.info.duration,c.info.C+d,c.info.fb-d,c.info.F,c.info.D);c=new Eu(c,e,!1);c=[f,c];a.u=c[1];return c[0]};
Px=function(a,b){b.u.getLength();var c=Fu(b);if(!a.F.dz&&Ov(b.info.u.info)&&"bt2020"===b.info.u.info.Ja().primaries){var d=new It(c);Kt(d,[408125543,374648427,174,224,21936,21937])&&(d=d.C+d.u,129==c.getUint8(d)&&1==c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.u.info;Nv(d)&&!Ov(d)&&(d=Fu(b),Qt(new It(d)),Pt([408125543,374648427,174,224],21936,d));b.info.u.info.isVideo()&&(d=b.info.u,d.info&&d.info.video&&4==d.info.video.projectionType&&!d.D&&(g.Iu(d.info)?d.D=dfa(c):d.info.Ed()&&(d.D=ffa(c))));b.info.u.info.Ed()&&
b.info.isVideo()&&(c=Fu(b),Qt(new It(c)),Pt([408125543,374648427,174,224],30320,c)&&Pt([408125543,374648427,174,224],21432,c));if(a.C.info.audio&&g.Iu(b.info.u.info)){d=Fu(b);c=g.qt(d,0,1701606260);var e=g.qt(d,0,1836476516);if(c&&e){c.skip(2);var f=et(c),h=gt(c);d=[];var l=[],m=[],n=[];if(f)for(f=0;f<h;++f)d.push(ht(c)),l.push(ht(c)),m.push(et(c)),n.push(et(c));else for(f=0;f<h;++f)d.push(ft(c)),l.push(ft(c)),m.push(et(c)),n.push(et(c));c=tt(e);c=new cfa(l[0]/c,d[0]/c)}else c=null;if(c){if(g.Iu(b.info.u.info))for(d=
Fu(b),l=g.qt(d,0,1701082227);l;)l.markAsSkip(),l=g.qt(d,l.offset+l.size,1701082227);a.xa=!0;a.F.Ur&&a.V("gaplessinfo",c)}}a.C.Ee()||b.info.u.u||b.info.u.indexRange||(g.Iu(b.info.u.info)?(c=Fu(b),(d=vt(c,0,1836019574))?(d=d.offset+d.size,l=new Uint8Array(d),l.set(new Uint8Array(c.buffer,c.byteOffset,d)),c=l):c=null):c=gfa(new It(Fu(b))),c&&(b.info.u.u=c))};
Mx=function(a,b,c){if(a.C.Ee()){if(a.xa&&a.C.Ee()&&c.info.B==c.info.u.index.Lb()&&(b=Fu(c),b=g.qt(b,0,1953658222))){b.skip(1);var d=dt(b)<<16|et(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=gt(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=gt(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.u,e))}}if(b=a.ba&&!!a.ba.C.C)if(b=c.info.isVideo())b=Nu(c),h=a.ba,Ux?(l=1/b,b=Vx(a,b)>=Vx(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.C.Ee()&&c.info.B==c.info.u.index.Lb()&&
(b=a.ba,Ux?(l=Nu(c),h=1/l,l=Vx(a,l),b=Vx(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,rt(Fu(c),b))}else{h=!1;a.K||(Ou(c),c.B&&(a.K=c.B,h=!0,qu(c.info,c.B),e=c.info.u.info,d=Fu(c),g.Iu(e)?Dt(d,1701671783):e.Ed()&&Pt([408125543],307544935,d)));if(d=e=Mu(c))d=c.info.u.info.Ed()&&160==Cu(c.u,0);if(d)a.P+=e,a.I=l+e;else{if(a.F.wz){if(l=f=a.Fa(Ju(c),1),0<=a.I&&6!=c.info.type){f-=a.I;m=f-a.ka;d=c.info.B;var n=c.info.K;var p=a.Y?a.Y.B:-1;var r=a.Y?a.Y.K:-1,t=a.Y?a.Y.duration:-1;1E-4<Math.abs(m)&&
(a.F.HF&&a.V("avsyncissue",{audio:""+ +!!a.C.info.audio,sq:d.toFixed(),sliceStart:n,lastSq:p.toFixed(),lastSliceStart:r,lastSliceDuration:t,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*m).toFixed()}),a.oa=d);m=0;a.F.lz&&(a.F.De&&f>a.F.De||(l=a.I),a.F.mz&&a.ba&&!a.C.info.audio&&g.Iu(c.info.u.info)&&(p=a.ba,n=p.oa,p=p.ka,r=.02<Math.abs(p-f),(d==n||d>n&&d>a.oa)&&r&&(d=Math.max(.95,Math.min(1.05,(e-(p-f))/e)),rt(Fu(c),d),d=Mu(c),m=e-d,e=d)));a.ka=f+m}}else isNaN(a.I)?f=c.info.startTime:f=a.I,l=f;Ku(c,l)?
(isNaN(a.fa)&&(a.fa=l),a.P+=e,a.I=l+e):(l=ou(c.info),l.smst="1",a.V("error",l||{}))}if(h&&a.K){h=Wx(a,!0);ru(c.info,h);a.u&&ru(a.u.info,h);b=g.q(b.info.u);for(l=b.next();!l.done;l=b.next())ru(l.value,h);(c.info.D||a.u&&a.u.info.D)&&6!=c.info.type||(a.W=h,a.V("placeholderinfo",h),Xx(a))}}Sx(a,c);a.ha&&Lu(c,a.ha);a.Y=c.info};
Qx=function(a,b){if(b.info.D){a.ya=b.info;if(a.K){var c=Wx(a,!1);a.V("segmentinfo",c);a.W||Xx(a);a.W=null}Lx(a)}a.D&&xw(a.D,b);if(c=Kx(a))if(c=Hu(c,b,a.F.Aq)){a.B.pop();a.B.push(c);return}a.B.push(b)};
Lx=function(a){a.u=null;a.X=-1;a.N=0;a.K=null;a.fa=NaN;a.P=0;a.W=null};
Sx=function(a,b){if(a.C.info.Yc){if(b.info.u.info.Ed()){var c=new It(Fu(b));if(Kt(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Nt(c,!0);c=16!=d?null:Ut(c,d)}else c=null;d="webm"}else b.info.W=Ofa(Fu(b)),c=Pfa(b.info.W),d="cenc";c&&c.length&&(c=new Dx(c,d),c.Ed=b.info.u.info.Ed(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),a.F.Hq&&b.B&&b.B.F&&(c.u=b.B.F),a.V("needkeyinfo",c))}};
Xx=function(a){var b=a.K,c;b.u["Cuepoint-Type"]?c=new kt(Yx?parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0:-(parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0),parseFloat(b.u["Cuepoint-Total-Duration-Sec"])||0,b.u["Cuepoint-Context"],b.u["Cuepoint-Identifier"]||"",fga[b.u["Cuepoint-Event"]||""]||"unknown",1E3*(parseFloat(b.u["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.fa,a.V("cuepoint",c,b.B))};
Wx=function(a,b){var c=a.K;if(c.u["Stitched-Video-Id"]||c.u["Stitched-Video-Duration-Us"]||c.u["Stitched-Video-Start-Frame-Index"]||c.u["Serialized-State"]){var d=c.u["Stitched-Video-Id"]?c.u["Stitched-Video-Id"].split(",").slice(0,-1):[];var e=[];if(c.u["Stitched-Video-Duration-Us"])for(var f=g.q(c.u["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push((parseInt(h.value,10)||0)/1E6);e=[];if(c.u["Stitched-Video-Start-Frame-Index"])for(f=g.q(c.u["Stitched-Video-Start-Frame-Index"].split(",").slice(0,
-1)),h=f.next();!h.done;h=f.next())e.push(parseInt(h.value,10)||0);d=new ifa(d,c.u["Serialized-State"]?c.u["Serialized-State"]:"")}return new cu(c.B,a.fa,b?c.zg:a.P,c.ingestionTime,"sq/"+c.B,void 0,void 0,b,d)};
Vx=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.ha*b)/b:a.ha;a.C.C&&c&&(c+=a.C.C.u);return c+a.getDuration()};
Zx=function(a,b){0>b||(a.B.forEach(function(c){return Lu(c,b)}),a.ha=b)};
$x=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
ay=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)};
by=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};
cy=function(a,b){return 0<=by(a,b)};
gga=function(a,b){if(!a)return NaN;var c=by(a,b);return 0<=c?a.start(c):NaN};
dy=function(a,b){if(!a)return NaN;var c=by(a,b);return 0<=c?a.end(c):NaN};
ey=function(a){return a&&a.length?a.end(a.length-1):NaN};
fy=function(a,b){var c=dy(a,b);return 0<=c?c-b:0};
gy=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 $x(d,e)};
hy=function(a,b,c){this.Y=a;this.u=b;this.D=[];this.C=new Ix(a,b,c);this.B=this.K=null;this.ea=0;this.ba=b.info.u;this.fa=0;this.N=b.Qm();this.I=-1;this.ka=b.Qm();this.F=this.N;this.W=!1;this.P=this.ha=this.X=-1};
iy=function(a,b){b&&Ux&&Zx(a.C,b.Qv());a.K=b};
jy=function(a){return a.K&&a.K.Ar()};
ly=function(a){for(;a.D.length&&5==a.D[0].state;){var b=a.D.shift();ky(a,b);b=b.timing;a.ea=(b.D-b.u)/1E3}a.D.length&&Bx(a.D[0])&&!a.D[0].info.gg()&&ky(a,a.D[0])};
ky=function(a,b){if(Bx(b)){if(Cx(b).length){b.ea=!0;var c=b.C;var d=c.u;c.u=[];c.F=g.fb(d).info;c=d}else c=[];c=g.q(c);for(d=c.next();!d.done;d=c.next())my(a,b,d.value)}};
my=function(a,b,c){switch(c.info.type){case 1:case 2:Nx(a.C,c);break;case 4:var d=c.info.u.BC(c);c=c.info;var e=a.B;e&&e.u==c.u&&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.B==c.B&&e.C==c.C&&e.fb==c.fb&&(a.B=g.fb(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())my(a,b,c.value);break;case 3:Rx(a.C,b,c);break;case 6:Rx(a.C,b,c),a.B=c.info}};
ny=function(a,b){var c=b.info;c.u.info.u>=a.ba&&(a.ba=c.u.info.u)};
ry=function(a,b,c){c=void 0===c?!1:c;if(a.K){var d=a.K.Ge(),e=dy(d,b),f=NaN,h=jy(a);h&&(f=dy(d,h.u.index.oe(h.B)));if(e==f&&a.B&&a.B.fb&&oy(py(a),0))return b}a=qy(a,b,c);return 0<=a?a:NaN};
ty=function(a,b){a.u.Td();var c=qy(a,b);if(0<=c)return c;c=a.C;c.D?(c=c.D,c=c.u&&3==c.u.type?c.u.startTime:0):c=Infinity;b=Math.min(b,c);a.B=a.u.Pi(b).u[0];sy(a)&&a.K&&a.K.abort();a.fa=0;return a.B.startTime};
uy=function(a){a.N=!0;a.F=!0;a.I=-1;ty(a,Infinity)};
vy=function(a){var b=0;g.Gb(a.D,function(c){var d=b;c=c.C&&c.C.length?Rfa(c.C):Bv(c.info);b=d+c},a);
return b+=ega(a.C)};
Hy=function(a,b){if(!a.K)return 0;var c=jy(a);if(c&&c.F)return c.I;c=a.K.Ge(!0);return fy(c,b)};
Jy=function(a){Iy(a);a=a.C;a.B=[];Lx(a)};
Ky=function(a,b){if(a.D.length){if(a.D[0].info.u[0].startTime<=b)return;Iy(a)}for(var c=a.C,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();a.D.length?a.B=g.fb(g.fb(a.D).info.u):a.C.B.length?a.B=Kx(a.C).info:a.B=jy(a);a.B&&b<a.B.startTime&&(a.fa=0,a.u.Td()?a.B=a.u.Pi(b,!0).u[0]:a.B=null)};
Ny=function(a,b){var c;for(c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)Ly(a,b);else{for(;c<a.D.length;)Ly(a,a.D.pop());var d=My(a);a.Y.Jb&&d&&d.u.Ee()&&ci(b.info.u,function(e){return e.u==d.u&&e.B==d.B&&!!d.fb&&d.C+d.fb>e.C&&d.C+d.fb<=e.C+e.fb})?a.B=d:ku(b.info.u[0])?a.B=dga(b):a.B=null}};
sy=function(a){var b;!(b=!a.Y.Ek&&"f"===a.u.info.Fb)&&(b=a.Y.Mg)&&(b=a.C,b=!!b.D&&vw(b.D));if(b)return!0;b=jy(a);if(!b)return!1;var c=b.F&&b.D;return a.ka&&0<a.X?c||b.B>=a.X:c};
py=function(a){var b=[],c=jy(a);c&&b.push(c);b=g.tb(b,Tx(a.C));g.Gb(a.D,function(d){g.Gb(d.info.u,function(e){d.ea&&(b=g.Ke(b,function(f){return!(f.u!=e.u?0:f.range&&e.range?f.range.start+f.C>=e.range.start+e.C&&f.range.start+f.C+f.fb<=e.range.start+e.C+e.fb:f.B==e.B&&f.C>=e.C&&(f.C+f.fb<=e.C+e.fb||e.D))}));
(ku(e)||4==e.type)&&b.push(e)})});
a.B&&!jfa(a.B,g.fb(b),a.B.u.Ee())&&b.push(a.B);return b};
oy=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!mu(a[c-1],a[c]))return!1;return!0};
qy=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.fb)return NaN;a=py(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.K<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:oy(a,c?b:0)?a[b].startTime:NaN};
Oy=function(a){return ci(a.D,function(b){return 3<=b.state})};
Py=function(a){return!(!a.B||a.B.u==a.u)};
Qy=function(a){return Py(a)&&a.u.Td()&&a.B.u.info.u<a.u.info.u};
Ry=function(a,b,c){return(a=My(a))&&!a.F?a.I>b&&a.I<b+c:!1};
My=function(a){var b=Kx(a.C);return b?b.info:jy(a)};
Iy=function(a){g.Gb(a.D,function(b){Ly(this,b)},a);
a.D=[];a.B=null};
Ly=function(a,b){var c=a.Y.Jb&&b.info.u[0].u.Ee();b.ea&&!c&&(c=a.C,c.W&&!c.F.tf&&c.V("placeholderrollback",c.W),c.W=null,c.K=null,c.ea=c.ya,c.I-=c.P,Lx(c));b.dispose()};
Sy=function(a){return!!a.B&&-1!=a.B.B&&a.B.B<a.u.index.Qg()};
Ty=function(a){var b=a.B;b&&-1==b.B&&(a=Kx(a.C))&&ku(a.info)&&(a=a.info.B,b.N="updateLastSliceRequested",b.B=a)};
Uy=function(a){return ci(a.D,function(b){return b.N})};
Vy=function(a){this.B=this.D=0;this.alpha=Math.exp(Math.log(.5)/a)};
Xy=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.D=!1;this.I=!0;this.B=Math.round(a*this.resolution);this.values=Array(this.B);for(a=0;a<this.B;a++)this.values[a]=Infinity;this.N=Wy(this);this.F=c;this.K=d};
Wy=function(a){for(var b=Array(a.B),c=0;c<a.B;c++)b[c]=c;return b};
Yy=function(a,b){if(!a.D&&0===a.valueIndex)return 0;a.I&&(g.Cb(a.N,function(c,d){return a.values[c]-a.values[d]}),a.I=!1);
return a.values[a.N[Math.round(b*((a.D?a.B:a.valueIndex)-1))]]||0};
jga=function(a){var b=new hga;this.policy=a;this.P=b;this.K=this.X=0;this.B=-1;this.F=this.I=Lw();this.W=new Xy(4,1,.6,.4);this.C=new Xy(10,1,.5,.4);this.u=a.B?new Vy(a.u):new Xy(a.u,20,.5,.4);this.N=new Xy(5,1,.25);this.D=new Xy(30,1,.5);a=iga();this.u.C(this.policy.D,0<a.byterate?a.byterate:this.policy.C);0<a.delay&&this.W.C(1,Math.min(+a.delay,2));0<a.stall&&this.C.C(1,+a.stall);0<a.init&&(this.F=Math.min(a.init,this.F));this.B=Lw()};
Hw=function(a,b){a.W.C(1,b);-1<a.B&&3E4<Lw()-a.B&&Zy(a)};
vx=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.N.C(b,c/b);f||(a.I=Lw());e||a.D.C(1,b-d)};
ux=function(a,b,c){b=Math.max(b,2048);a.C.C(1,c/b);-1<a.B&&3E4<Lw()-a.B&&Zy(a)};
$y=function(a){a=a.W.u();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Jw=function(a,b,c){isNaN(c)||(a.K+=c);isNaN(b)||(a.X+=b)};
az=function(a){a=a.u.u();return 0<a?a:1};
bz=function(a){var b=az(a);b=1/((a.C.u()||0)+1/b);a=a.N.u();return Math.max(b,0<a?a:1)};
zw=function(a){return{delay:$y(a),stall:a.C.u()||0,byterate:az(a),init:a.F}};
Zy=function(a){kga(zw(a));a.B=Lw()};
cz=function(a){return 4E3<=Lw()-a.I};
dz=function(a,b){this.B=a;this.u=b;this.C=1};
fz=function(a,b,c,d,e){e=void 0===e?!1:e;a.u.Kc&&(d=Math.abs(d));d/=a.C;var f=1/bz(a.B);var h=.9*(d-a.u.si);h=Math.max(h,$y(a.B)+2048*f);c=h/f*a.u.iz/(b+c);c=Math.min(c,d);a.u.Nd&&e&&(c=Math.max(c,a.u.Nd));return ez(a,c,b)};
ez=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.u.hz*c),Math.min(Math.min(a.u.Y,31*c),Math.ceil(b*c))))||65536};
lga=function(a,b){var c=ez(a,b.video?a.u.DB:a.u.zq,b.u);return a.u.Bj&&b.video?Math.max(c,a.u.Bj):c};
gz=function(a){var b=bz(a.B);if(a.u.wD)return b;var c=a.u.fz,d=1E-9+$y(a.B);b*=Math.min(1,c/(b*d));a.u.Aj&&(c=((Yy(a.B.D,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.u.Aj*c);return b};
hz=function(a){return gz(a)/a.C};
g.iz=function(){this.segments=[]};
jz=function(a,b){if(b>a.Lb())a.segments=[];else{var c=g.ib(a.segments,function(d){return d.eb>=b},a);
0<c&&a.segments.splice(0,c)}};
kz=function(a,b,c,d,e,f){f=void 0===f?0:f;Tv.call(this,a,b,d);this.index=e||new g.iz;this.zg=f;this.X=c;this.N=!0;if(this.K=!c)this.F=!0};
lz=function(a){return a.D.Ce||a.D.Ce?a.fa&&Qw()?3:2:a.Ki?-1:1};
mz=function(a){var b=void 0===a?{}:a;a=void 0===b.zg?0:b.zg;var c=void 0===b.Rz?!1:b.Rz,d=void 0===b.DA?0:b.DA,e=void 0===b.Gd?0:b.Gd,f=void 0===b.Uf?Infinity:b.Uf,h=void 0===b.oC?0:b.oC;b=void 0===b.cf?!1:b.cf;this.segments=[];this.u=a;this.C=d;this.B=c;this.D=this.I=-1;this.N=e;this.W=f;this.K=null;this.P=h;this.F=b};
oz=function(a,b,c){b=nz(a,b);return 0<=b&&(c||!a.segments[b].pending)};
nz=function(a,b){return Bb(a.segments,function(c){return b-c.eb})};
pz=function(a,b,c){c=void 0===c?{}:c;kz.call(this,a,b,"",void 0,void 0,c.zg||0);this.index=new mz(c)};
qz=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""};
rz=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};
sz=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};
tz=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
mga=function(a,b,c,d,e){this.eb=a;this.startSecs=b;this.durationSecs=c;this.u=d||NaN;this.B=e||NaN};
uz=function(){this.u=[];this.B=null;this.I=0;this.D=[];this.C=!1;this.K="";this.F=-1};
nga=function(a){var b=a.D;a.D=[];return b};
oga=function(){this.D=[];this.u=null;this.B={};this.C={}};
sga=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=pga(a):"AdaptationSet"==f.nodeName?h=qga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(h=rga(a,f.attributes.id.value));if(null==h)return;h.update(e,c);vb(d,nga(h))}vb(a.D,d);qaa(a.D,function(l){return 1E3*l.startSecs+l.u})};
tga=function(a){a.u&&(a.u.u=[]);g.Jb(a.B,function(b){b.u=[]});
g.Jb(a.C,function(b){b.u=[]})};
pga=function(a){a.u||(a.u=new uz);return a.u};
qga=function(a,b){a.B[b]||(a.B[b]=new uz);return a.B[b]};
rga=function(a,b){a.C[b]||(a.C[b]=new uz);return a.C[b]};
vz=function(a,b,c,d,e){Tv.call(this,a,b,d||void 0,e||void 0);this.index=new g.iz;this.K=c};
wz=function(a,b,c){var d=a.index.Pv(b),e=a.index.oe(b),f=a.index.getDuration(b),h;c?f=h=0:0<a.info.u&&(h=a.info.u*f);c=b==a.index.Lb()&&0<h;a=new iu(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,h,c);return new xv([a],d)};
uga=function(a,b){if(!a.index.Bc()){for(var c=[],d=b.K,e=b.N.split(",").filter(function(r){return 0<r.length}),f=0,h=0,l=0,m=/^(\d+)/,n=/r=(\d+)/,p=0;p<d;p++){if(0>=l)if(l=e.shift(),h=(h=m.exec(l))?+h[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1;
else return;c.push(new cu(p,f,h,NaN,"sq/"+(p+1)));f+=h;l--}a.index.append(c)}};
vga=function(a,b){return xz(function(c,d){return g.rr(c,d,4,1E3)},a,b)};
g.yz=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=Ht(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
xz=function(a,b,c){b.match(wga);return a(b,c).then(function(d){var e=g.yz(d);return e?xz(a,e,c):d})};
xga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
zz=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
Az=function(){this.endTime=this.startTime=0;this.length=1};
Bz=function(){this.buffered=new Az;this.appendWindowStart=this.appendWindowEnd=-1;this.mode="sequence";this.onerror=this.onabort=null;this.timestampOffset=-1;this.updating=!1};
Cz=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.P.call(this);this.fa=this.duration=0;this.cf=this.I=this.isLive=this.C=!1;this.Uf=this.Gd=0;this.isOtf=this.qg=!1;this.W=(0,g.O)();this.K=Infinity;this.u={};this.sourceUrl=a||"";this.Ca=this.Y=0;this.F=null;this.oa=!!b&&g.R(b,"html5_live_nonzero_first_segment_start_time");this.isManifestless=!1;this.X=[];this.ya=!!b&&g.R(b,"html5_live_self_init_segments");this.D=null;this.xa=c;this.ka=!b||!g.R(b,"html5_manifest_without_credentials");
this.N=0;this.ba=!!b&&g.R(b,"disable_html5_manifest_namespace_redux");this.ea="";this.P=NaN;this.ha=b&&g.R(b,"disable_html5_duration_caching")?Infinity:10;this.ej=this.xl=this.B=0};
yga=function(a){return g.Mb(a.u,function(b){return!!b.info.video&&Iv(b.info.video)})};
Dz=function(a){return g.Mb(a.u,function(b){return!!b.info.Yc})};
zga=function(a){return g.Mb(a.u,function(b){return Rv(b.info.mimeType)})};
Aga=function(a){return Nb(a.u,function(b){return b.info.video?b.qt():!0})};
Ez=function(a){return g.Mb(a.u,function(b){return hv(b.B.u)})};
Fz=function(a,b){a.u[b.info.id]=b};
Bga=function(a,b,c,d){c=void 0===c?0:c;var e=new Cz("",d,!1);e.duration=c||0;g.Gb(a,function(f){var h=Gz(f,b,e.duration),l=eu(f.init),m=eu(f.index),n=parseInt(f.clen,10),p=Hz(f.url,f.sp,f.s);f=parseInt(f.lmt,10);p&&Fz(e,new Wv(p,h,l,m,n,f))});
return e};
Cga=function(a,b,c,d){c=void 0===c?0:c;var e=new Cz("",d,!1);e.duration=c||0;g.Gb(a,function(f){var h=Gz(f,b,e.duration),l=Hz(f.url,f.sp,f.s);if(!g.Iu(h)){var m=d&&g.R(d,"html5_manifestless_vp9_otf"),n=d&&g.R(d,"html5_otf_webm_audio_killswitch");if(!m||!h.isVideo()&&n)return}l&&(h.video&&3==h.video.streamType?Fz(e,new vz(l,h,"sq/0",null,null)):(m=eu(f.init),f=eu(f.index),Fz(e,new vz(l,h,"",m,f))))});
e.isOtf=!0;return e};
Dga=function(a,b,c,d){var e=new Cz("",d,!0);g.Gb(a,function(f){var h=Gz(f,c),l=Hz(f.url,f.sp,f.s),m=parseInt(f.target_duration_sec,10)||5;f=parseInt(f.max_dvr_duration_sec,10)||14400;var n=parseInt(l.get("mindsq"),10)||parseInt(l.get("min_sq"),10)||0,p=parseInt(l.get("maxdsq"),10)||parseInt(l.get("max_sq"),10)||Infinity;e.Gd=e.Gd||n;e.Uf=e.Uf||p;var r=!Rv(h.mimeType),t=d&&g.Q(d,"html5_manifestless_max_segment_history");l&&Fz(e,new pz(l,h,{zg:m,Rz:r,DA:f,Gd:n,Uf:p,oC:t,cf:b}))});
e.C=!b;e.qg=!0;e.isManifestless=!0;e.isLive=!b;e.cf=b;e.I=!!e.Gd&&!!e.Uf&&isFinite(e.Uf);return e};
Gz=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);var h=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=(a.size||"640x360").split("x");h=new Gv(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=h;null===Iz&&(Iz=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((Iz||Jz)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",r="01",t="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"===l.primaries&&(t=p="09"),"smpte2084"==l.u&&(r="16"),"arib-std-b67"==l.u&&(r="18"));d='video/webm; codecs="'+["vp09",m,"51",n,"01",p,r,t,"00"].join(".")+'"'}}m=l=null;/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)&&(l=new Dv(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new zz(a.name,a.audio_track_id,
"1"==a.isDefault)));a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new xga(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));n=parseInt(a.bitrate,10)/8;p=parseInt(a.clen,10);c=c&&p?p/c:0;p=null;if(b&&a.drm_families)for(p={},a=g.q(a.drm_families.split(",")),r=a.next();!r.done;r=a.next())r=r.value,p[r]=b[r];return new Mv(e,d,l,h,m,p,n,c,f)};
Ega=function(a){return ci(a,function(b){return 3==+b.stream_type})?3:0};
Kz=function(a,b){return a.F?wb(a.F.D,b):a.X.length?wb(a.X,b):[]};
Hz=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new ev(a,!0);a.set("alr","yes");c&&(c=Uu(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
Nz=function(a,b){var c=qz(b,"id");c=c.replace(":",";");var d=qz(b,"mimeType"),e=qz(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(qz(b,"bandwidth"),10)/8;var f=parseInt(rz(b,"BaseURL").getAttribute(Lz(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var h=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=parseInt(qz(b,"width"),10);var l=parseInt(qz(b,"height"),10),m=parseInt(qz(b,"frameRate"),10),n=Fga(qz(b,Lz(a,"projectionType")));a:switch(qz(b,Lz(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}qz(b,"video_level");h=new Gv(h,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d))if(l=parseInt(qz(b,"audioSamplingRate"),10),m=parseInt(qz(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Gga(qz(b,Lz(a,"spatialAudioType"))),l=new Dv(l,m,n),m=qz(b,"lang")||"und",n=rz(b,"Role")){var r=qz(n,"value")||"";Sb(Mz,r)?(n=m+"."+Mz[r],p="main"==r,m=qz(b,Lz(a,"langName"))||m+" - "+r,m=new zz(m,
n,p)):m=null}else m=null;p=null;if(n=rz(b,"ContentProtection"))if(g.ak())if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.value)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"yt:SystemURL"==n.nodeName&&(p[n.attributes.type.value]=n.textContent.trim());else p=null;else if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.textContent)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"SystemURL"==n.localName&&"http://youtube.com/yt/2012/10/10"==n.namespaceURI&&
(p[n.attributes.type.textContent]=n.textContent.trim());else p=null;return new Mv(c,d,l,h,m,p,e,f)};
Fga=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}};
Gga=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}};
Oz=function(a,b){b=void 0===b?"":b;a.Ca=1;a.W=(0,g.O)();return Lm(vga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.ka}).then((0,g.z)(a.HI,a)),(0,g.z)(a.JI,a))};
Hga=function(a,b,c){return Oz(new Cz(a,b,c),a)};
Iga=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(c=a.split("-"),0<=parseInt(c[1],10)?e=eu(a):d=d+"?range="+a));return new cu(b.eb,b.startSecs,b.durationSecs,b.u,d,e,b.B)};
Pz=function(a){return a.isLive&&(0,g.O)()-a.W>=a.K};
Qz=function(a){var b=a.K;isFinite(b)&&(Pz(a)?a.refresh():(b=Math.max(0,a.W+b-(0,g.O)()),a.D||(a.D=new g.H(a.refresh,b,a),g.C(a,a.D)),a.D.start(b)))};
Jga=function(a){a=a.u;for(var b in a){var c=a[b].index;if(c.Bc())return c.Lb()+1}return 0};
Rz=function(a){return a.xl&&a.B?a.xl-a.B:0};
Sz=function(a){if(!isNaN(a.P))return a.P;var b=a.u,c;for(c in b){var d=b[c].index;if(d.Bc()){b=0;for(c=d.Qg();c<=d.Lb();c++)b+=d.getDuration(c);b/=d.Em();b=.5*Math.round(b/.5);d.Em()>a.ha&&(a.P=b);return b}if(a.isLive&&(d=b[c],d.zg))return d.zg}return NaN};
Kga=function(a,b){var c=Vb(a.u,function(e){return e.index.Bc()});
if(!c)return NaN;c=c.index;var d=c.Sg(b);return c.oe(d)==b?b:d<c.Lb()?c.oe(d+1):NaN};
Lga=function(a,b){g.Jb(a.u,function(c){g.Jb(b,function(d,e){var f=c.B;f.u.set(e,d);f.D.set(e,d);f.C&&f.C.set(e,d)})})};
Mga=function(a,b){if(!a.u["0"]){var c=new Mv("0","fakesb",void 0,new Gv(0,0,0,void 0,void 0,"auto"),null,null,1);a.u["0"]=b?new kz(new ev("http://www.youtube.com/videoplayback"),c,"fake"):new Wv(new ev("http://www.youtube.com/videoplayback"),c,new du(0,0),new du(0,0),0,NaN)}};
Lz=function(a,b){return a.ba?"yt:"+b:a.ea+":"+b};
Nga=function(a){return g.jb(Object.values(a.u),function(b){return b.info.Yc&&b.info.video?480<b.info.video.uc&&"H"==b.info.Fb:!1})};
Tz=function(a,b,c,d){g.P.call(this);this.D=0;this.B=b;this.u=c;this.F=a;this.P=d;this.I=0;this.K=this.F.isManifestless&&!this.F.cf;this.C=!1;this.N=null};
Uz=function(a,b){var c=a.u.index,d=a.B.B;oz(c,d)||b&&b.B==d?(a.F=!oz(c,d),a.W=!oz(c,d)):(a.F=!0,a.W=!0)};
Vz=function(a,b,c){if(!a.u.Td())return 0!=b&&Iy(a),b;var d=ry(a,b);if(!isNaN(d))return d;Jy(a);return c&&(c=dy(c.Ge(),b),!isNaN(c))?(ty(a,c+Oga),b):ty(a,b)};
vka=function(a,b,c,d){if(a.C&&a.D){var e=Pga(a,b,c);if(-1!=e){a.B.F=!1;a.u.F=!1;a.K=!0;g.um(function(){Wz(a,"seekreason","behindMinSq");Xz(a,e)});
return}}c?a.B.W=!1:a.u.W=!1;0<=ry(a.B,a.D)&&0<=ry(a.u,a.D)?((a.B.F||a.u.F)&&Wz(a,"iterativeSeeking","done;count."+a.I,!1),a.B.F=!1,a.u.F=!1):d&&g.um(function(){if(a.K||!a.P.ea)a.P.xi?Yz(a):c&&Xz(a,b.startTime);else{var f=b.startTime,h=b.duration,l=c?a.B.F:a.u.F;l=!a.la()&&l;var m=-1!=a.B.I&&-1!=a.u.I,n=!a.B.W&&!a.u.W;l&&m&&n&&(a.D>=f&&a.D<f+h+.1?((c?a.B:a.u).F=!1,a.B.F||a.u.F||(Wz(a,"iterativeSeeking","done;count."+a.I,!1),a.I=0)):8>a.I?(a.I++,Wz(a,"iterativeSeeking","inprogress;count."+a.I+";target."+
a.D+";actual."+f+";duration."+h+";isVideo."+c,!1),a.seek(a.D)):(Wz(a,"iterativeSeeking","incomplete;count."+a.I+";target."+a.D+";actual."+f,!1),a.I=0,a.B.F=!1,a.u.F=!1,a.V("seekplayerrequired",f+.1,!0)))}})};
Pga=function(a,b,c){if(!a.C)return-1;c=(c?a.B:a.u).u.index;var d=c.Sg(a.D);return(oz(c,a.F.Gd)||b.eb==a.F.Gd)&&d<a.F.Gd?a.F.qc():-1};
Xz=function(a,b){!a.la()&&a.K&&-1!=a.B.I&&-1!=a.u.I&&(a.K=!1,a.V("seekplayerrequired",b+.1,a.P.xi))};
Yz=function(a){var b=-1!=a.B.I,c=-1!=a.u.I;if(!b||!c)if(b=!b&&Jx(a.B.C),c=!c&&Jx(a.u.C),b||c)if(c=b?a.B:a.u,b=b?a.u:a.B,c.I=Jx(c.C).info.B,-1!=b.I){var d=Math.max(b.u.index.oe(b.I),c.u.index.oe(c.I));Wz(a,"seekreason","initManifestlessSync");g.um(function(){return Xz(a,d)});
a.N&&(a.N.resolve(d+.1),a.N=null)}};
Wz=function(a,b,c,d){a.V("ctmp",b,c,void 0===d?!1:d)};
Zz=function(a,b){os.call(this,1,arguments)};
$z=function(a,b){os.call(this,1,arguments);this.u=a};
wka=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
bA=function(a){var b=aA(a);if(b.aft)return b.aft;a=g.L((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};
cA=function(a){return!!g.Na("yt.timing."+(a||"")+"pingSent_")};
dA=function(a,b){g.Ja("yt.timing."+(b||"")+"pingSent_",a,void 0)};
fA=function(a){return g.Na("ytcsi."+(a||"")+"data_")||eA(a)};
gA=function(a){a=fA(a);a.info||(a.info={});return a.info};
aA=function(a){a=fA(a);a.tick||(a.tick={});return a.tick};
hA=function(a){var b=fA(a).nonce;b||(b=bs(),fA(a).nonce=b);return b};
eA=function(a){var b={tick:{},info:{}};g.Ja("ytcsi."+(a||"")+"data_",b,void 0);return b};
jA=function(a){var b=aA(a||""),c=bA(a);c&&!iA&&(rs(xka,new Zz(Math.round(c-b._start),a)),iA=!0)};
kA=function(){var a=g.Na("ytcsi.debug");a||(a=[],g.Ja("ytcsi.debug",a,void 0),g.Ja("ytcsi.reference",{},void 0));return a};
mA=function(a){a=a||"";var b=lA();if(b[a])return b[a];var c=kA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
lA=function(){var a=g.Na("ytcsi.reference");if(a)return a;kA();return g.Na("ytcsi.reference")};
nA=function(){this.u=0};
oA=function(){nA.u||(nA.u=new nA);return nA.u};
qA=function(a,b){pA[b]=pA[b]||{count:0};var c=pA[b];c.count++;c.time=(0,g.O)();a.u||(a.u=pp(function(){var d=(0,g.O)(),e;for(e in pA)pA[e]&&6E4<d-pA[e].time&&delete pA[e];a&&(a.u=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new Cq("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.er(c)),!0):!1};
rA=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.uo("csi_on_gel")||!!fA(a).useGel};
sA=function(a){a=fA(a);if(!("gel"in a))a.gel={gelTicks:{},gelInfos:{}};else if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}return a.gel};
tA=function(a){eA(a);yka();dA(!1,a);a||(g.L("TIMING_ACTION")&&ro("PREVIOUS_ACTION",g.L("TIMING_ACTION")),ro("TIMING_ACTION",""))};
zA=function(a,b,c,d){d=d?d:a;uA(d);var e=d||"",f=lA();f[e]&&delete f[e];var h=kA(),l={timerName:e,info:{},tick:{},span:{}};h.push(l);f[e]=l;mA(d||"").info.actionType=a;tA(d);fA(d).useGel=!0;ro(d+"TIMING_AFT_KEYS",b);ro(d+"TIMING_ACTION",a);vA("yt_sts","c",d);wA("_start",c,d);if(rA(d)){a={actionType:xA[so((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:xA[so("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.ks())a.clientScreenNonce=b;b=hA(d);oA().info(a,b)}g.Ja("ytglobal.timing"+
(d||"")+"ready_",!0,void 0);yA(d)};
vA=function(a,b,c){if(null!==b)if(gA(c)[a]=b,rA(c)){var d=b;b=sA(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in AA){b=AA[a];g.nb(zka,b)&&(d=!!d);a in BA&&"string"===typeof d&&(d=BA[a]+d.toUpperCase());a=d;d=b.split(".");for(var h=e={},l=0;l<d.length-1;l++){var m=d[l];h[m]={};h=h[m]}h[d[d.length-1]]="requestIds"===b?[{id:a,endpoint:f}]:a;b=$s({},e)}else g.nb(Aka,a)||g.er(new Cq("Unknown label logged with GEL CSI",
a)),b=void 0;b&&CA(b,c)}else mA(c||"").info[a]=b};
CA=function(a,b){if(rA(b)){var c=mA(b||"");$s(c.info,a);c=sA(b);"gelInfos"in c||(c.gelInfos={});$s(c.gelInfos,a);c=hA(b);oA().info(a,c)}};
wA=function(a,b,c){var d=aA(c);if(g.uo("use_first_tick")&&DA(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;EA.mark&&(pc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),EA.mark(e))}e=b||(0,g.O)();d[a]=e;e=sA(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.O)();if(rA(c)){mA(c||"").tick[a]=b||(0,g.O)();e=hA(c);if("_start"===a){var f=oA();qA(f,"baseline_"+e)||g.Fq("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else oA().tick(a,e,b);jA(c);e=!0}else e=!1;e||(yA(c),mA(c||"").tick[a]=b||(0,g.O)());
return d[a]};
FA=function(a){var b="above_the_fold";EA&&EA.measure&&(pc(b,"measure_")||(b="measure_"+b),a?EA.measure(b,a):EA.measure(b))};
DA=function(a,b){var c=aA(b);return a in c};
GA=function(a,b){DA("_start",b)&&!DA(a,b)&&wA(a,void 0,b)};
yA=function(a){if(!cA(a)){var b=g.L((a||"")+"TIMING_ACTION",void 0),c=aA(a);if(g.Na("ytglobal.timing"+(a||"")+"ready_")&&b&&DA("_start")&&bA(a))if(jA(a),a)HA(a);else{b=!0;var d=g.L("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&HA(a)}}};
Bka=function(){switch(Wo()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
HA=function(a){if(!rA(a)){var b=aA(a),c=gA(a),d=b._start,e=g.L("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.L((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=bA(a);var l=aA(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&gA(a).yt_pvis&&"youtube"===e&&(vA("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.O)();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;g.uo("debug_csi_data")&&(c=g.Na("yt.timing.csiData"),c||(c=[],g.Ja("yt.timing.csiData",c,void 0)),c.push({page:location.href,time:new Date,args:f}));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?Ws(f):g.Vs(f);dA(!0,a);rs(IA,new $z(p.aft+(Number(h)||0),a))}};
uA=function(a){if(rA(a))DA("_start",a)&&wA("aa",void 0,a);else if(!cA(a)){var b=g.L("CSI_SERVICE_NAME","youtube");g.L((a||"")+"TIMING_ACTION",void 0)&&b&&(wA("aa",void 0,a),vA("ap",1,a),vA("yt_fss","c",a),HA(a))}};
JA=function(){this.B=this.C=0;this.F={}};
KA=function(a,b,c,d){g.P.call(this);this.B=this.u=null;this.C=!1;this.D=0;this.F=b;this.K=a;this.I=c;this.I.C.subscribe("cuepoint",this.N,this);this.P=d};
LA=function(a,b){if(a.u){a.B=null;a.C=!1;var c=b.startTime+a.D-a.u.Fe.startSecs;0>=c||(c=new kt(a.u.Fe.startSecs-(a.F.tc&&!isNaN(a.D)?a.D:0),c,a.u.Fe.context,a.u.Fe.identifier,"stop",a.u.Fe.u+1E3*b.duration),a.V("ctmp","cuepointdiscontinuity","segNum."+b.eb,!1),a.N(c,b.eb))}};
MA=function(a){return a.u?a.u.Fe:null};
NA=function(a,b,c){this.errorCode=a;this.u=b;this.details=c||{}};
g.OA=function(a){var b;for(b in a)if(a.hasOwnProperty(b)){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
PA=function(a){var b=void 0===b?!1:b;if(a instanceof NA)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.dr(a):g.er(a);return new NA(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
QA=function(a,b,c){g.P.call(this);var d=this;this.u=a;this.P=b;this.N=c;this.W=this.C=this.F=null;this.I=0;this.D=function(e){return d.V(e.type,d)};
this.supports(3)&&(this.u.addEventListener("updateend",this.D),this.u.addEventListener("error",this.D));this.X=0;this.K=$x([],[]);this.B=!1};
RA=function(){return!(!window.SourceBuffer||!SourceBuffer.prototype.changeType)};
TA=function(a,b){g.B.call(this);var c=this;this.u=a?a:{};this.B=b?b:{};this.D={};this.F=this.C=0;this.I=new g.H(function(){return SA(c)},1E4);
g.C(this,this.I)};
VA=function(a,b){UA(a,b);return a.u[b]&&a.B[b]?a.u[b]/Math.pow(2,a.C/a.B[b]):0};
UA=function(a,b){if(!a.u[b]){var c=fx();a.u=c.values?c.values:{};a.B=c.halfLives?c.halfLives:{};a.D=c.values?Object.assign({},c.values):{}}};
SA=function(a){var b=fx();if(b.values){b=b.values;var c={};for(d in a.u)b[d]&&a.D[d]&&(a.u[d]+=b[d]-a.D[d]),c[d]=VA(a,d);a.D=c}var d=a.B;b={};b.values=a.D;b.halfLives=d;g.Ps("yt-player-memory",b,2592E3)};
WA=function(){var a=g.Na("yt.player.utils.videoElement_");a||(a=g.Fe("VIDEO"),g.Ja("yt.player.utils.videoElement_",a,void 0));return a};
XA=function(a){var b=WA();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Cka=function(a){try{var b=YA('video/mp4; codecs="avc1.42001E"')||YA('video/webm; codecs="vp9"');return(YA('audio/mp4; codecs="mp4a.40.2"')||YA('audio/webm; codecs="opus"'))&&(b||!a)||XA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
YA=function(a){if(/opus/.test(a)&&(g.ZA&&!Qn("38")||g.ZA&&Xj("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!ek())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!XA(a)};
$A=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
aB=function(){var a=WA();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
bB=function(){var a=WA();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
hga=function(){this.u=0};
cB=function(a,b){this.u=a;this.B=b;this.C=0;Object.defineProperty(this,"timestampOffset",{get:this.cR,set:this.gR});Object.defineProperty(this,"buffered",{get:this.aR})};
Dka=function(){this.length=0};
dB=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.u=a;this.B=NaN;this.C=0;Object.defineProperty(this,"duration",{get:this.bR,set:this.fR});Object.defineProperty(this,"readyState",{get:this.dR});this.u.addEventListener("webkitsourceclose",(0,g.z)(this.eR,this),!0)};
eB=function(a,b,c,d){g.P.call(this);var e=this;this.u=a;this.P={error:function(){!e.la()&&e.isActive()&&e.V("error",e)},
updateend:function(){!e.la()&&e.isActive()&&e.V("updateend",e)}};
Sr(this.u,this.P);this.B=b;this.N=c;this.I=0;this.F=Infinity;this.D=0;this.K=this.C=d};
fB=function(a,b){this.u=a;this.B=void 0===b?!1:b;this.C=!1};
gB=function(a,b){b=void 0===b?!1:b;g.B.call(this);this.F=new g.Pr(this);g.C(this,this.F);this.B=this.u=null;this.C=a;var c=this.C;c=c.xL?c.u.webkitMediaSourceURL:window.URL.createObjectURL(c);this.So=new fB(c,!0);this.I=b;this.D=null;Qr(this.F,this.C,["sourceopen","webkitsourceopen"],this.bP);Qr(this.F,this.C,["sourceclose","webkitsourceclose"],this.aP)};
Eka=function(a,b){hB(a)?g.um(function(){return b(a)}):a.D=b};
iB=function(a,b){try{a.C.duration=b}catch(c){}};
jB=function(a){return!!a.u||!!a.B};
hB=function(a){try{return"open"==a.C.readyState}catch(b){return!1}};
kB=function(a){try{return"closed"==a.C.readyState}catch(b){return!0}};
lB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
mB=function(a){return a.u?!!a.u.supports(0):lB()};
nB=function(a,b,c,d){if(!a.u||!a.B)return null;var e=a.u.isView()?a.u.u:a.u,f=a.B.isView()?a.B.u:a.B,h=new gB(a.C,!0);h.So=a.So;e=new eB(e,b,c,d);b=new eB(f,b,c,d);h.u=e;h.B=b;g.C(h,e);g.C(h,b);hB(a)||a.u.vn(a.u.fc());return h};
oB=function(a,b,c){this.experiments=a;this.W=b;this.X=void 0===c?!1:c;this.F=!!g.Na("cast.receiver.platform.canDisplayType");this.D={};this.K=!1;this.N=new Set;this.I=!0;this.B=!g.R(this.experiments,"html5_disable_protected_hdr");this.C=!1;this.P=g.R(this.experiments,"html5_disable_vp9_encrypted");a=g.Na("cast.receiver.platform.getValue");this.u=!this.F&&a&&a("max-video-resolution-vpx")||null};
Fka=function(a,b){var c=pu(b);if("0"===c)return!0;var d=b.mimeType;if(g.R(a.experiments,"html5_disable_codec_on_platform_errors")){if(a.N.has(b.Fb))return!1}else if(Pv(b)&&a.K)return!1;if(b.video&&(Iv(b.video)||"bt2020"===b.video.primaries)&&!(pB(a,qB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches))||"338"===c&&!(g.ZA?Qn(53):g.rB&&Qn(64)))return!1;var e={};b.video&&(b.video.width&&(e[qB.WIDTH.name]=
b.video.width),b.video.height&&(e[qB.HEIGHT.name]=b.video.height),b.video.fps&&(e[qB.FRAMERATE.name]=b.video.fps),b.video.u&&(e[qB.EOTF.name]=b.video.u),b.u&&(e[qB.BITRATE.name]=8*b.u),"("===b.Fb&&(e[qB.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(e[qB.DECODETOTEXTURE.name]="true");b.audio&&b.audio.u&&(e[qB.CHANNELS.name]=b.audio.u);a.C&&Nv(b)&&(e[qB.EXPERIMENTAL.name]="allowed");for(var f=g.q(Object.keys(qB)),h=f.next();!h.done;h=
f.next()){h=qB[h.value];var l;if(l=e[h.name])(l=h===qB.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.R(a.experiments,"html5_ignore_h264_framerate_cap")&&h===qB.FRAMERATE&&("H"===l.Fb||"h"===l.Fb)),l=!(l||h===qB.DECODETOTEXTURE&&!g.R(a.experiments,"html5_decode_to_texture_cap"));if(l)if(pB(a,h))if(a.u){if(a.u[h.name]<e[h.name])return!1}else d=d+"; "+h.name+"="+e[h.name];else if(Ov(b)&&h===qB.EOTF)return!1}!g.R(a.experiments,"disable_html5_cast_hdcp_filter2")&&a.F&&b.video&&1080<b.video.uc&&b.Yc&&
(d+="; hdcp=2.2");return"227"===c&&!g.R(a.experiments,"html5_enable_1080p_hq_cenc")||("585"===c||"588"===c||"583"===c||"586"===c||"584"===c||"587"===c||"591"===c||"592"===c)&&!g.R(a.experiments,"html5_enable_new_hvc_enc")?!1:a.isTypeSupported(d)};
sB=function(){var a=Yj()&&!Qn(29),b=Xj("google tv")&&Xj("chrome")&&!Qn(30),c=ck();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.tB=function(a,b){b=void 0===b?!1:b;return sB()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(WA(),"application/x-mpegURL")?!0:!1};
pB=function(a,b){b.name in a.D||(a.D[b.name]=Gka(a,b));return a.D[b.name]};
Gka=function(a,b){if(a.u)return!!a.u[b.name];if(b===qB.BITRATE&&g.R(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===qB.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)};
uB=function(){g.P.call(this);this.items={}};
Hka=function(a,b){this.encryptedClientKey=b;this.u=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
vB=function(a){try{return g.af(a)}catch(b){return null}};
Ika=function(a){try{var b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?vB(b.clientKey):null;var c=b.encryptedClientKey?vB(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.O)():null;a&&c&&d&&(this.u=new Hka(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=vB(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
Jka=function(){this.u=17;this.C=13E4;this.D=.5;this.B=!1};
S=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
wB=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
xB=function(a,b){return void 0===b||null===b?a:Number(b)};
yB=function(a,b){return void 0===b||null===b?a:b.toString()};
zB=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(Kka);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
AB=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.uo("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
ZB=function(a,b,c){g.B.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.jd=this.Jb=this.wb=this.qf=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.Vi=NaN;this.tc=!1;this.oa=0;this.ac=this.Bh=this.kg=!1;a=a?g.Zb(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.cspNonce=yB("",a.csp_nonce);this.experiments=new lfa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:
a.fflags);this.ya=b?b.serializedForcedExperimentIds:a.forced_experiments||void 0;this.ca("web_player_deprecated_uvr_killswitch");try{var d=document.location.toString()}catch(n){d=""}this.Mb=d;this.De=(d=window.location.ancestorOrigins)?Array.from(d):[];this.B=S(!1,a.is_embed);b&&b.device?(d=b.device,d.brand&&(this.deviceParams.cbrand=d.brand),d.browser&&(this.deviceParams.cbr=d.browser),d.browserVersion&&(this.deviceParams.cbrver=d.browserVersion),this.deviceParams.c=d.interfaceName||"WEB",this.deviceParams.cver=
d.interfaceVersion||"html5",d.interfaceTheme&&(this.deviceParams.ctheme=d.interfaceTheme),this.deviceParams.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.deviceParams.cmodel=d.model),d.network&&(this.deviceParams.cnetwork=d.network),d.os&&(this.deviceParams.cos=d.os),d.osVersion&&(this.deviceParams.cosver=d.osVersion),d.platform&&(this.deviceParams.cplatform=d.platform)):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.ca("wpcc_loader_url_killswitch")?
this.loaderUrl=this.B||BB(this)&&b.loaderUrl?b.loaderUrl||"":this.Mb:this.loaderUrl=this.B||BB(this)&&a.loaderUrl?yB("",a.loaderUrl):this.Mb;this.C=Wu(this.loaderUrl,Lka);d=this.loaderUrl;var e=void 0===e?!1:e;this.Bq=Vu(Wu(d,Mka),d,e,"Trusted Ad Domain URL");this.ha=S(!1,a.privembed);this.protocol=0===this.Mb.indexOf("http:")?"http":"https";this.K=Yu((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||Yu(this.Mb)||this.protocol+"://www.youtube.com/";e=b?b.eventLabel:a.el;d="detailpage";"adunit"===e?d=
this.B?"embedded":"detailpage":"embedded"===e||this.C?d=wB(d,e,Nka):e&&(d="embedded");this.fa=d;xp();e=null;d=b?b.playerStyle:a.ps;var f=g.nb(CB,d);!d||f&&!this.C||(e=d);this.playerStyle=e;this.N=(this.I=g.nb(CB,this.playerStyle))&&"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Aq=!this.N;this.Y=S(!1,a.disableplaybackui);this.Ob=WA().defaultPlaybackRate?DB||g.lk||EB?g.rB&&Qn("20")||g.ZA&&Qn("4")||g.rg&&Qn("11")||hk():!(g.rg&&!Xj("chrome")||DB||
Xj("android")||Xj("silk")):!1;this.u=S("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.u?e=!0:(e=Number(g.A()/1E3),d=Fr.getInstance(),e=this.ca("block_desktop_background_playback_with_mobile_cookie")&&d&&e>Number(d.get("dhmu",e.toString())));this.zq=e;this.Ma="3"===this.controlsType||this.u||S(!1,a.use_media_volume);this.W=bB();this.mr=g.FB;this.Ch=S(!1,a.opt_out_deprecation);this.pfpChazalUi=S(!1,a.pfp_chazal_ui);var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;
this.si=g.GB(this)&&!this.Ch||S(!HB(this)&&!IB(this)&&!this.I,h);this.Dh=b?!!b.mobileIphoneSupportsInlinePlayback:S(!1,a.playsinline);h=this.u&&JB&&null!=KB&&0<KB&&2.3>=KB;e=b?b.useNativeControls:a.use_native_controls;d=this.u&&!this.ca("embeds_enable_mobile_custom_controls");e=LB(this)||!h&&S(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.Vc=this.u;this.color=wB("red",a.color,Oka);this.Eq="3"===this.controlsType||S(!1,a.modestbranding)&&"red"===this.color;
this.xa=!this.B;this.ti=(e=!this.xa&&!IB(this)&&!this.N&&!this.I&&!HB(this))&&!this.Eq&&"1"===this.controlsType;this.Za=g.MB(this)&&e&&"0"===this.controlsType&&!this.ti;this.gs=this.Hq=h;this.vi=NB&&!g.$d(601)?!1:!0;this.Ek=this.B||!1;this.Fa=IB(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=yB("",a.widget_referrer);this.ld=(!this.C||S(!0,a.enablecastapi))&&"1"===this.controlsType&&!this.u&&(IB(this)||g.MB(this)||g.OB(this))&&!g.PB(this)&&!QB(this);this.Ur=
$A()||aB();h=b?!!b.supportsAutoplayOverride:S(!1,a.autoplayoverride);this.vf=!this.u&&!Xj("nintendo wiiu")&&!Xj("nintendo 3ds")||h;h=b?!!b.enableMutedAutoplay:S(!1,a.mutedautoplay);e=this.ca("embeds_enable_muted_autoplay")&&g.GB(this);this.Fg=h&&e&&this.W&&!LB(this);h=(IB(this)||HB(this))&&"blazer"===this.playerStyle;this.Nd=b?!!b.disableFullscreen:!S(!0,a.fs);this.ka=!this.Nd&&(h||Lr());this.Ah=this.ca("uniplayer_block_pip")&&(Yj()&&Qn(58)&&!mk()||jk);h=g.GB(this)&&!this.Ch;var l;b?void 0!==b.disableRelatedVideos&&
(l=!b.disableRelatedVideos):l=a.rel;this.jb=h||S(!this.I,l);this.tf=S(!1,a.co_rel);this.F=mk()&&0<KB&&4.4>=KB?"_top":"_blank";this.Kc=g.OB(this);this.sf=S("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":l="bl";break;case "gmail":l="gm";break;case "books":l="gb";break;case "docs":l="gd";break;case "duo":l="gu";break;case "google-live":l="gl";break;case "google-one":l="go";break;case "play":l="gp";break;case "chat":l="hc";break;case "hangouts-meet":l=
"hm";break;case "photos-edu":case "picasaweb":l="pw";break;default:l="yt"}this.X=l;this.Xc=yB("",a.authuser);var m;b?void 0!==b.disableWatchLater&&(m=!b.disableWatchLater):m=a.showwatchlater;this.zk=(this.B&&!this.ha||!!this.Xc)&&S(!this.N,this.C?m:void 0);this.kd=b?!!b.disableKeyboardControls:S(!1,a.disablekb);this.loop=S(!1,a.loop);this.pageId=yB("",a.pageid);this.xr=S(!0,a.canplaylive);this.Uh=S(!1,a.livemonitor);this.disableSharing=S(this.I,b?b.disableSharing:a.ss);(m=a.video_container_override)?
(l=m.split("x"),2!==l.length?m=null:(m=Number(l[0]),l=Number(l[1]),m=isNaN(m)||isNaN(l)||0>=m*l?null:new g.he(m,l))):m=null;this.wi=m;this.mute=b?!!b.startMuted:S(!1,a.mute);this.uf=!this.mute&&S("0"!==this.controlsType,a.store_user_volume);m=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:wB(void 0,m,RB);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":yB("",a.cc_lang_pref);m=wB(2,a.cc_load_policy,RB);"3"===this.controlsType&&2===
m&&(m=3);this.Ci=m;this.ce=b?b.hl||"en_US":yB("en_US",a.hl);this.region=b?b.contentRegion||"US":yB("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":yB("en",a.host_language);this.Aj=!this.ha&&Math.random()<g.Q(this.experiments,"web_player_api_logging_fraction");this.ea=!this.ha;this.enabledEngageTypes=new Set;this.deviceHasDisplay=S(!0,a.deviceHasDisplay);this.Vi=xB(this.Vi,a.ismb);m=a;g.Ru(this.experiments,"html5_qoe_intercept")?m=g.Ru(this.experiments,"html5_qoe_intercept"):this.Aq?(m=m.vss_host||
"s.youtube.com",this.ca("www_for_videostats")&&"s.youtube.com"===m&&(m=SB(this.K)||"www.youtube.com")):m="video.google.com";this.xi=m;this.Be(a,!0);this.P=new uB;g.C(this,this.P);m=b?b.innertubeApiKey:yB("",a.innertube_api_key);l=b?b.innertubeApiVersion:yB("",a.innertube_api_version);h=b?b.innertubeContextClientVersion:yB("",a.innertube_context_client_version);this.ba={innertubeApiKey:so("INNERTUBE_API_KEY")||m,innertubeApiVersion:so("INNERTUBE_API_VERSION")||l,MB:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),
Mm:this.deviceParams.c,innertubeContextClientVersion:so("INNERTUBE_CONTEXT_CLIENT_VERSION")||h,Io:this.hostLanguage,Ho:this.region,Vr:so("INNERTUBE_HOST_OVERRIDE")||"",PB:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),OB:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.ri=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new oB(this.experiments,this.ca("html5_force_hfr_support")?!0:TB(this)||dk()||ek()||UB(this),g.ZA&&g.$d(56)||g.rB&&g.$d(54)||UB(this));m=this.Vi;l=this.experiments;
h=new Jka;g.VB(this)&&(h.B=!0,h.D=.1);g.R(l,"html5_ewma_bandwidth_estimator")&&(h.B=!0);g.R(l,"html5_pctile_bandwidth_estimator")&&(h.B=!1);m&&(h.C=m/8);h.u=g.Q(l,"html5_bandwidth_window_size")||h.u;this.schedule=new jga(h);this.enableSafetyMode=S(!1,a.enable_safety_mode);this.kb=S(this.Y?!1:IB(this)&&"blazer"!==this.playerStyle,a.allow_autonav);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:S(!1,a.send_visitor_id_header);this.Ia=(0,g.O)();this.disableNativeContextMenu=S(!1,"docs"===this.playerStyle?
a.disable_native_context_menu:void 0);this.Dk=TB(this)&&this.ca("enable_skip_intro_button");this.embedConfig=yB("",a.embed_config);this.Pd=S(!1,a.full_window);this.Ra=!g.WB(this)&&!XB(this)&&!g.PB(this)&&!QB(this)&&!0;this.livingRoomAppMode=wB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode,YB);this.transparentBackground=b?!!b.transparentBackground:S(!1,a.transparent_background);this.useFastSizingOnWatchDefault=S(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=
b?!!b.showMiniplayerButton:S(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:S(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:S(!1,a.use_miniplayer_ui);this.showBackButton=S(!1,a.showbackbutton);this.Cq=1E-4>Math.random();this.rf=a.onesie_hot_config?new Ika(a.onesie_hot_config):void 0;this.isTectonic=!!a.isTectonic;this.fr=c;this.Rb=new TA;g.C(this,this.Rb)};
$B=function(a,b){return!a.I&&Yj()&&Qn(55)&&"3"===a.controlsType&&!b};
g.aC=function(a){a=SB(a.K);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.bC=function(a){return g.PB(a)?"music.youtube.com":g.aC(a)};
cC=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
dC=function(a){return IB(a)&&!g.WB(a)};
LB=function(a){return NB&&!a.Dh||Xj("nintendo wiiu")||Xj("nintendo 3ds")?!0:!1};
QB=function(a){return"area120-boutique"===a.playerStyle};
g.PB=function(a){return"music-embed"===a.playerStyle};
g.VB=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
BB=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
UB=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.eC=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
TB=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.fC=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
XB=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.WB=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
gC=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.hC=function(a){return g.WB(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||gC(a)};
iC=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.jC=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
kC=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.nC=function(a){return(a.deviceHasDisplay&&g.ZA&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.$d(51):!0:!1)||(a.deviceHasDisplay&&g.rB&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.$d(48):g.$d(38):!1)||(a.deviceHasDisplay&&g.rg&&!jk&&"3"!==a.controlsType?g.lk?a.B&&g.$d(37):g.$d(27):!1)||a.deviceHasDisplay&&g.lC&&!ik()&&g.$d(11)||a.deviceHasDisplay&&g.mC&&g.$d("604.4")};
oC=function(a){if(g.MB(a)&&JB)return!1;if(g.rB){if(!g.$d(47)||!g.$d(52)&&g.$d(51))return!1}else if(g.mC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
IB=function(a){return"detailpage"===a.fa};
g.MB=function(a){return"embedded"===a.fa};
g.pC=function(a){return"leanback"===a.fa};
HB=function(a){return"adunit"===a.fa||"gvn"===a.playerStyle};
g.OB=function(a){return"profilepage"===a.fa};
g.GB=function(a){return a.B&&g.MB(a)&&!HB(a)&&!a.I};
qC=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.er(new Cq("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.rC=function(a){var b=g.bC(a);!a.ca("yt_embeds_disable_new_error_lozenge_url")&&Pka.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
SB=function(a){var b=g.yd(a);return(a=Number(g.xd(4,a))||null)?b+":"+a:b};
sC=function(a,b){this.id=a;this.u=b;this.captionTracks=[];this.B=this.D=this.F=null;this.C="UNKNOWN"};
tC=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.u=b||0};
uC=function(a,b){return a.B===b.B&&a.u===b.u&&a.C===b.C&&a.reason===b.reason};
vC=function(a,b,c,d){return new tC(g.Fv[a]||0,g.Fv[b]||0,c,d)};
wC=function(a){var b=g.Fv.auto;return a.B===b&&a.u===b};
yC=function(a,b){if(b.C&&wC(b))return xC;if(b.C||wC(a))return b;if(a.C||wC(b))return a;var c=a.B&&b.B?Math.max(a.B,b.B):a.B||b.B,d=a.u&&b.u?Math.min(a.u,b.u):a.u||b.u;c=Math.min(c,d);return c===a.B&&d===a.u?a:new tC(c,d,!1,d===a.u?a.reason:b.reason)};
zC=function(a){var b=a.u||a.B;return Vb(Qka,function(c){return g.Fv[c]===b})||"auto"};
AC=function(a,b){var c=g.Fv[b];return a.B<=c&&(!a.u||a.u>=c)};
BC=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.u=b||null;this.B=c||null;if(this.u)for(a=new Set,b=g.q(this.u),c=b.next();!c.done;c=b.next())if(c=c.value,c.B&&!a.has(c.B.id)){var d=new sC(c.id,c.B);a.add(c.B.id);this.audioTracks.push(d)}};
Rka=function(){this.fa=this.oa=this.u=this.D=this.C=this.I=this.K=this.X=this.W=!1;this.Y=!0;this.ba=!1;this.F=0;this.ka=!1;this.ha=Infinity;this.Ju=!1;this.ya=!0;this.P=this.N=!1;this.B={};this.ea=!1};
Ska=function(a){if(a.X)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.ka&&b.unshift("1");a.u&&b.unshift("h");return b};
Tka=function(a){var b=["o","a","A"];a.I&&(b=["m","M"].concat(b));a.C&&(b=["mac3","MAC3"].concat(b));a.D&&(b=["meac3","MEAC3"].concat(b));a.W&&(b=["so","sa"].concat(b));a.oa&&b.unshift("a");a.K&&b.unshift("ah");return b};
CC=function(a,b,c){b=void 0===b?{}:b;if(pB(a.D,qB.AV1_CODECS)&&pB(a.D,qB.HEIGHT)&&pB(a.D,qB.BITRATE))return b.isCapabilityUsable=!0,8192;try{var d=mx();if(d)return b.localPref=d}catch(f){}d=g.Q(a.experiments,"html5_av1_thresh");var e=g.Q(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.Q(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.Q(a.experiments,"html5_av1_thresh_arm"))&&Zj()&&(b.isArm=
!0,d=a);if(c){if((a=c.videoInfos.find(function(f){return Pv(f)}))&&a.C)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(ix("1",c.fps),ix("1",30));b.perfCap=a;d=Math.min(d,a);Iv(c)&&(b.hdr="1",d*=.75)}else c=ix("1",30),b.perfCap30=c,d=Math.min(d,c),c=ix("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
DC=function(a,b,c,d){this.flavor=a;this.u=b;this.C=c;this.experiments=d;this.B={};this.Og=this.keySystemAccess=null;this.kr=this.lr=-1;this.In=null;this.D="";this.F=!!d&&g.R(d,"edge_nonprefixed_eme");this.D=d?g.Ru(d,"html5_hdcp_probing_stream_url"):""};
FC=function(a){return a.F?!1:!a.keySystemAccess&&!!EC()&&"com.microsoft.playready"===a.u};
GC=function(a){return"com.microsoft.playready"===a.u};
HC=function(a){return g.Vq&&"com.microsoft.playready"===a.u&&!!navigator.requestMediaKeySystemAccess};
IC=function(a){return!a.keySystemAccess&&!!EC()&&"com.apple.fps.1_0"===a.u};
JC=function(a){return"com.youtube.fairplay"===a.u};
KC=function(a){return"fairplay"===a.flavor};
EC=function(){var a=window,b=a.MSMediaKeys;gk()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
LC=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.ZA&&!g.ak())return Qn("45");if(g.Vq||g.ye)return g.R(a,"edge_nonprefixed_eme");if(g.rB)return Qn("47");if(g.mC){var b=g.Q(a,"html5_safari_desktop_eme_min_version");if(b)return Qn(b)}return!g.R(a,"html5_disable_nonprefixed_eme_for_other")};
Uka=function(a,b,c){var d=ck(),e=d?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(e.unshift("com.youtube.widevine.l3"),d&&c&&e.unshift("com.youtube.widevine.forcehdcp"));return d?e:a?[].concat(g.la(e),g.la(MC.playready)):[].concat(g.la(MC.playready),g.la(e))};
NC=function(a,b,c){var d={},e;for(e in c.u){var f=c.u[e],h=pu(f.info);""==f.info.Fb||("304"==h||"266"==h)&&a.Y||a.fa&&"h"==f.info.Fb&&f.info.video&&1080<f.info.video.uc||a.ba&&f.info.video&&4320<=f.info.video.uc&&32<f.info.video.fps||!Fka(b,f.info)||"(h"==f.info.Fb&&!b.B||(h="MAC3"==f.info.Fb||"MEAC3"==f.info.Fb||"M"==f.info.Fb,c.isLive&&h&&!a.N||(d[f.info.Fb]=d[f.info.Fb]||[],d[f.info.Fb].push(f.info)))}c=g.q(Object.keys(d));for(e=c.next();!e.done;e=c.next())e=e.value,d[e]&&d[e][0].isVideo()&&(d[e]=
Vka(a,d[e]),d[e]=Wka(b,d[e]));return g.Kb(d,function(l){return!!l.length})};
Xka=function(a,b,c){var d={};g.Jb(b,function(e,f){var h=e.filter(function(l){var m;if(m=l.Yc&&c&&l.Yc[c.flavor]&&c.B[l.mimeType])(l="("!=l.Fb&&"(h"!=l.Fb)||(l=(pB(a,qB.CRYPTOBLOCKFORMAT)||a.X)&&!a.P),m=l;return m?!0:!1});
h.length&&(d[f]=h)});
return d};
Yka=function(a,b,c,d,e){function f(t){return!!h[t]}
e=void 0===e?!1:e;var h=NC(a,b,c);Dz(c)&&(h=Xka(b,h,d));b=Tka(a);b=g.jb(b,f);d=h[b];if(!b)return tr();h["9"]&&h.h&&c.qg&&!a.P&&delete h["9"];var l=h["9h"]?"9h":"9",m=[];if(a.ea&&!a.u)m=yga(c)?h["1"]||h["9h"]?[].concat(h["1"],h["9h"]).filter(function(t){return t}):[].concat(h["9"],h.h).filter(function(t){return t}):[].concat(h["1"],h["9"],h.h).filter(function(t){return t});
else if(0<a.F&&h[l]&&h["1"]){if(e)c=h["1"],e=h[l];else{var n=Math.min(a.F,OC(h["1"])),p=OC(h[l]),r=function(t){return t<=n||t>p};
c=h["1"].filter(function(t){return r(t.Ja().uc)});
c.length&&(a.B.highestAv1Resolution=c[c.length-1].Ja().uc);e=h[l].filter(function(t){return!r(t.Ja().uc)});
e.length&&(a.B.higestVp9Resolution=e[e.length-1].Ja().uc)}m=[].concat(c,e).filter(function(t){return t})}if(m.length&&!a.u)return PC(m,d),ur(new BC(m,d,QC(h,"",b)));
c=Ska(a);c=g.jb(c,f);if(!c)return tr();a.ya&&"1"==c&&h[l]&&(a=OC(h["1"]),OC(h[l])>a&&(c=l));"9"==c&&h.h&&(a=OC(h["9"]),OC(h.h)>1.5*a&&(c="h"));a=h[c];if(!a.length)return tr();PC(a,d);return ur(new BC(a,d,QC(h,c,b)))};
QC=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)?(PC(d,e),new BC(d,e)):null};
PC=function(a,b){g.Cb(a,function(c,d){return d.Ja().height*d.Ja().width-c.Ja().height*c.Ja().width||d.u-c.u});
g.Cb(b,function(c,d){return d.u-c.u})};
Wka=function(a,b){var c=g.kh(b,function(d,e){return 32<e.Ja().fps?Math.min(d,e.Ja().width):d},Infinity);
Infinity>c&&(b=a.I&&(a.W||pB(a,qB.FRAMERATE))?g.Ke(b,function(d){return 32<d.Ja().fps||d.Ja().width<c}):g.Ke(b,function(d){return!(32<d.Ja().fps)}));
dk()&&(b=g.Ke(b,function(d){return"299"!=pu(d)}));
return b};
Vka=function(a,b){return b=g.Ke(b,function(c){return c.Ja().uc<=a.ha})};
OC=function(a){return g.kh(a,function(b,c){return Math.max(b,c.Ja().uc)},0)};
RC=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
Zka=function(a,b,c,d){this.ha=a;this.u=b;this.K=c;this.N=d;this.F=xC;this.B=this.X=null;this.Y=-1;this.D=this.I=null;this.C=[];this.ea={};this.W=0;this.ba=this.P=!1;this.fa=0;this.oa=new Set;this.ya=!1;this.ka=null};
bla=function(a,b,c){SC(a,b);$ka(a,c);a.X=a.I;ala(a);a.B=a.D;return TC(a)};
dla=function(a,b){if(uC(a.F,b))return null;if("m"==b.reason&&b.isLocked())return SC(a,b),a.W=a.C.length-1,UC(a),VC(a),a.ba=a.ba||a.B!=a.D,a.B=a.D,new RC(a.I,a.B,b.reason);"r"==b.reason&&(a.Y=-1);SC(a,b);VC(a);if("r"==b.reason&&a.D==a.B)return new RC(a.I,a.D,b.reason);if(a.B&&a.D&&WC(a,a.B.info)<WC(a,a.D.info)){var c=a.F.reason;a.P=a.P||"r"==c||"u"==c||"v"==c}return null};
ela=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,TC(a)}else a.X=b;return null};
XC=function(a,b){b.W=(0,g.O)();a.Y=-1;SC(a,a.F);a.P=a.u.yA};
YC=function(a){for(var b=(0,g.O)()-6E4,c=g.q(a.N.videoInfos),d=c.next();!d.done;d=c.next())if(a.K.u[d.value.id].W>b)return!0;return!1};
fla=function(a){return new RC(a.X,a.B,a.F.reason)};
ZC=function(a){return a.F.isLocked()};
gla=function(a){return 0<a.C.length&&0==a.W};
TC=function(a){a.Y=(0,g.O)();a.P=!1;return new RC(a.X,a.B,a.F.reason)};
$C=function(a){var b=!ZC(a)&&-1<a.Y&&8E3>(0,g.O)()-a.Y,c=a.D&&3*WC(a,a.D.info)<hz(a.ha);if(!b||c)UC(a),VC(a),a.ba=a.ba||a.D!=a.B};
aD=function(a,b){for(var c={},d=g.q(b),e=d.next();!e.done;e=d.next())if((e=e.value)&&e.video){var f=e.video.uc,h=c[f],l=h&&Pv(h)&&h.video.uc>a.u.Ra,m=f<=a.u.Ra?Pv(e):Nv(e);if(!h||l||m)c[f]=e}return c};
SC=function(a,b){a.F=b;var c=a.N.videoInfos;if(!ZC(a)){var d=(0,g.O)()-6E4;c=g.Ke(c,function(p){if(p.u>this.u.N)return!1;p=this.K.u[p.id];var r=p.info.Fb;return this.u.fr&&this.oa.has(r)||p.W>d?!1:4<p.B.B||4<p.P||p.I?!1:!0},a);
if(YC(a)){var e=g.Ke(c,function(p){p=pu(p);return"140"===p||"134"===p||"243"===p});
e.length&&(c=e)}}c.length||(c=a.N.videoInfos);e=g.Ke(c,b.D,b);if(a.u.xr){var f="m"===b.reason||"s"===b.reason;bD&&g.mC&&(!f||1080>b.u)&&(e=e.filter(function(p){return!!p&&!!p.video&&!!p.C}));
if(!RA()&&0<e.length){var h=(f=e[0])&&f.video&&f.video.uc;if(h){f=e.filter(function(p){return!!p&&!!p.video&&p.video.uc==h});
var l=aD(a,f)[h].Fb;e=e.filter(function(p){return!!p&&!!p.video&&p.Fb==l})}}var m=aD(a,e);
e=e.filter(function(p){return!!p&&!!p.video&&p.Fb==m[p.video.uc].Fb})}e.length||(e=[c[0]]);
e.sort((0,g.z)(function(p,r){return WC(this,p)-WC(this,r)},a));
for(c=1;c<e.length;c++){f=e[c-1];var n=e[c];f.video.width>n.video.width?(g.qb(e,c),c--):WC(a,f)*a.u.u>WC(a,n)&&(g.qb(e,c-1),c--)}c=e[e.length-1];a.ya=!!a.B&&!!a.B.info&&a.B.info.Fb!=c.Fb;a.C=e;mfa(a.u,c)};
$ka=function(a,b){if(b)a.I=a.K.u[b];else{var c=g.jb(a.N.u,function(d){return!!d.B&&d.B.isDefault});
c=c||a.N.u[0];a.I=a.K.u[c.id]}UC(a)};
cD=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"==a.C[c].Ja().quality;)c++;var d=hz(a.ha)/a.u.u;return WC(a,b.info)+WC(a,a.C[c])>d};
UC=function(a){if(!a.I||!a.u.C&&!a.u.vi)if(!a.I||!a.I.info.B)if(a.I=a.K.u[a.N.u[0].id],1<a.N.u.length){var b=!1;if(a.u.qk){if(b=!0,a.u.bz){var c=g.ib(a.N.u,function(d){return"250"===pu(d)});
0<=c&&(a.I=a.K.u[a.N.u[c].id],b=cD(a,a.I))}}else b=a.F.isLocked()?240>a.F.u:cD(a,a.I);b&&(a.I=a.K.u[g.fb(a.N.u).id])}};
VC=function(a){a.u.Ch&&(a.ka=a.ka||new g.H(function(){a.u.Ch&&a.B&&!YC(a)&&1===Math.floor(10*Math.random())?XC(a,a.B):a.ka.start()},6E4),a.ka.ub());
if(!a.D||!a.u.C&&!a.u.vi)if(ZC(a))a.D=360>=a.F.u?a.K.u[a.C[0].id]:a.K.u[g.fb(a.C).id];else{for(var b=Math.min(a.W,a.C.length-1),c=hz(a.ha),d=WC(a,a.I.info),e=c/a.u.B-d;0<b&&!(WC(a,a.C[b])<=e);b--);for(c=c/a.u.u-d;b<a.C.length-1&&!(WC(a,a.C[b+1])>=c);b++);a.D=a.K.u[a.C[b].id];a.W=b}};
ala=function(a){var b=a.u.B,c=hz(a.ha)/b-WC(a,a.I.info);b=g.kb(a.C,function(d){return WC(this,d)<c},a);
0>b&&(b=0);a.W=b;a.D=a.K.u[a.C[b].id]};
dD=function(a,b){a.u.Ra=CC(b,{},a.N);SC(a,a.F);$C(a);a.P=a.D!=a.B};
WC=function(a,b){if(!a.ea[b.id]){var c=a.K.u[b.id].index.jB(a.fa,15);c=b.D&&a.B&&a.B.index.Bc()?c||b.D:c||b.u;a.ea[b.id]=c}c=a.ea[b.id];a.u.Mb&&b.video&&b.video.uc>a.u.Mb&&(c*=1.5);return c};
hla=function(a,b){var c=Vb(a.K.u,function(d){return pu(d.info)==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
ila=function(a){var b=[];if("m"==a.F.reason||"s"==a.F.reason)return b;var c=!1;if(Aga(a.K)){for(var d=Math.max(0,a.W-2);d<a.W&&d<a.C.length;d++){var e=pu(a.C[d]);Hv(a.C[d].Ja())||(c=!0);b.push(e)}b.reverse();if(!c&&a.u.Wy)for(d=Math.max(0,a.W-3);0<=d&&!c;d--)Hv(a.C[d].Ja())||(c=!0,b.push(pu(a.C[d])))}return b};
jla=function(){this.Mk=0;this.F=this.D=this.B=this.C=NaN;this.u="";this.bandwidthEstimate=NaN};
eD=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.u=a-1};
fD=function(a){return a.data[a.u]||0};
kla=function(a){this.D=new eD(50);this.u=null;this.C=this.B=0;this.F=a};
gD=function(a,b,c,d){this.u=a;this.I=b;this.F=d;this.D=c;this.C=0};
hD=function(a,b,c,d){g.P.call(this);this.u=a;this.ea=b;this.fa=c;this.Y=d;this.ba=NaN;this.D=this.W=this.I=null;this.C=this.N=this.P=this.K=NaN;this.F=!1;this.X=NaN};
lla=function(a,b,c,d){return a.ya&&a.ha&&3===lz(a)?new hD(a,b,c,d):null};
iD=function(a,b){if(a.u.Bz){var c=b.info.u;if(0>=c)a.X=NaN;else{var d=bz(a.ea),e=b.index.u;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*e+a.u.P)/c,e-a.u.ac))}}};
mla=function(a,b){var c=g.A()/1E3,d=c-a.K,e=c-a.P,f=e>=a.u.wi,h=!1;if(f){var l=0;!isNaN(b)&&b>a.N&&(l=b-a.N,a.N=b);l/e<a.u.Ez&&(h=!0);a.P=c}c=d>=a.u.ac&&!a.F;if(!f&&!c&&jD(a,b))return NaN;c&&(a.F=!0);a:{d=h;c=g.A()/1E3-(a.fa.u()||0)-a.W.C-a.u.P;f=a.D.startTime;c=f+c;if(d){if(isNaN(b)){kD(a,NaN,"n",b);f=NaN;break a}d=b-a.u.Rb;d<c&&(c=d)}else a.F&&(d=c+a.u.P-a.ba+a.u.Fz,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.u.Rb))),c=d);f=c=Math.max(c,f)}a.C=f;if(isNaN(a.C))return lD(a),NaN;if(!h&&jD(a,b))return mD(a,
b),NaN;if(a.C<=a.D.startTime)return kD(a,NaN,"y",b),lD(a),NaN;if(!a.Y(a.C,!1))return!mD(a,b)&&h&&(kD(a,NaN,"t",b),lD(a)),NaN;h=a.C;kD(a,h,"s",b);lD(a);return h};
mD=function(a,b){return a.Y(a.C,!0)?!1:(kD(a,NaN,"ns",b),lD(a),!0)};
jD=function(a,b){return isNaN(b)?!0:isNaN(a.C)?!1:b<a.C+(a.F?a.u.Rb:a.u.Dz)};
lD=function(a){a.I=null;a.W=null;a.D=null;a.K=NaN;a.P=NaN;a.N=NaN;a.C=NaN;a.F=!1};
kD=function(a,b,c,d){var e=qx(a.I);e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.C).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.K).toFixed(0);e.ssr_n=g.A().toFixed(0);e.ssr_f=(1E3*a.W.C).toFixed(0);e.ssr_fa=a.F?"1":"0";e.ssr_o=(1E3*a.fa.u()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.D.u.index;oz(b,a.D.B,!0)&&(e.ssr_ist=(1E3*b.oe(a.D.B)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.D.B)).toFixed(0));e=g.OA(e);a.V("ctmp","ssr",e,!1)};
g.oD=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.D=nla++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||nD.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.jh(d.thumbnails,function(e){return g.$u(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
pD=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
ola=function(a,b){switch(a.style){case nD.CHAPTER_MARKER:return b?8:5;case nD.AD_MARKER:return 6;case nD.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.qD=function(a,b){return a.start-b.start||a.priority-b.priority||a.D-b.D};
g.rD=function(a){return"crn_"+a};
g.sD=function(a){return"crx_"+a};
pla=function(){this.B=g.qD;this.u=[]};
qla=function(a,b,c){var d=[];for(b=tD(a,b);b<a.u.length;++b){var e=a.u[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
uD=function(a,b){for(var c=[],d=g.q(a.u),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
rla=function(a){return a.u.slice(tD(a,0x7ffffffffffff),a.u.length)};
tD=function(a,b){var c=Bb(a.u,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
vD=function(a,b){for(var c=NaN,d=g.q(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(isNaN(c)||e.end<c)&&(c=e.end),e.start>b&&(isNaN(c)||e.start<c)){c=e.start;break}return c};
wD=function(a,b){if(1<b.length&&b.length>a.u.length)a.u=a.u.concat(b),a.u.sort(a.B);else for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,!a.u.length||0<a.B(d,a.u[a.u.length-1])?a.u.push(d):g.Fb(a.u,d,a.B)};
xD=function(a,b,c,d){g.B.call(this);this.X=a;this.Y=b;this.N=c;this.P=d;this.D=NaN;this.I=this.K=this.started=!1;this.C=[];this.W=new g.H(this.B,250,this);g.C(this,this.W);this.F=new g.H(this.B,0,this);g.C(this,this.F);this.u=new pla};
yD=function(a,b){if(!a.la()){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value){var e=a.C.indexOf(d);0<=e&&a.C.splice(e,1);var f=a.u;e=f.u;d=g.Ab(e,d,f.B);0<=d&&g.qb(e,d)}a.B()}};
zD=function(a){return a.la()?[]:a.u.u};
AD=function(a,b){var c=zD(a).filter(function(d){return d.namespace===b});
yD(a,c);return c};
BD=function(a,b){var c=[];if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1===a.C.indexOf(e)&&(a.C.push(e),c.push([1,e]))}return c};
CD=function(a,b){var c=[];if(!b.length)return c;b.sort(g.qD);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,a.C.splice(a.C.indexOf(e),1),c.push([2,e]);return c};
ula=function(a){if(a.started&&!a.la()){a.F.stop();var b=a.N();g.T(b,32)&&a.W.start();for(var c=sla(a),d=g.T(b,2),e=[],f=[],h=g.q(a.C),l=h.next();!l.done;l=h.next())l=l.value,l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l);e=e.concat(CD(a,f));h=f=null;d?(b=uD(a.u,0x7ffffffffffff),f=b.filter(function(m){return 0x8000000000000>m.end}),h=rla(a.u)):b=a.D<=c&&DD(b)?qla(a.u,a.D,c):uD(a.u,c);
e=e.concat(BD(a,b));f&&(e=e.concat(CD(a,f)));h&&(e=e.concat(BD(a,h)));a.D=c;tla(a,e)}};
tla=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[1];1===d[0]?a.P(g.rD(e.namespace),e):a.P(g.sD(e.namespace),e)}};
sla=function(a){return g.T(a.N(),2)?0x8000000000000:1E3*a.X()};
vla=function(a){a=void 0===a?{}:a;var b=a.Ce,c=a.bq,d=a.Lb,e=a.Dm;this.Ki=a.Ki;this.Ce=b;this.bq=c;this.Lb=d;this.Dm=e};
ED=function(a,b){if(0>b)return!0;var c=a.Lb();return b<c||b===c&&!a.Ki||b===c&&(c=a.Dm())&&b===c.eb?!0:!1};
wla=function(a,b,c){if(!ED(a,b))return 0;if(!a.Ce||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Lb();return b<c||b===c&&(a=a.Dm())&&b===a.eb&&!a.pending?2:1};
Vfa=function(a,b,c,d){if(ED(a,b))return d;b=0;a.Ce&&(b=.2);return c+1E3*(a.bq+b)};
Wfa=function(a,b,c,d,e){b=wla(a,b,e);if(2===b)return d;c=b?d:c+1E3*a.bq;a.Ce&&(c+=1E3*a.bq);return c};
FD=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.isBackground?!1:d.isBackground;var e=void 0===d.kn?!1:d.kn,f=void 0===d.Xr?!1:d.Xr;d=void 0===d.videoDuration?0:d.videoDuration;this.videoId=a;this.status=b;this.isBackground=c;this.kn=e;this.Xr=f;this.videoDuration=d};
ID=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;g.P.call(this);var m=this;this.ba=a;this.u=b;this.F=c;this.xa=new JA;this.wb=h||null;this.X=new dz(a,b);this.K=new Zka(this.X,b,this.F,d);a=bla(this.K,e,f&&f.id);this.D=new hy(this.u,a.audio,(0,g.z)(this.Sz,this));this.B=new hy(this.u,a.video,(0,g.z)(this.Sz,this));GD(this,this.D);GD(this,this.B);this.B.C.ba=this.D.C;this.C=null;this.Jb={updateend:this.pP,error:this.qM};this.oa=new g.H(this.gh,0,this);g.C(this,this.oa);this.tc=new g.H(this.gh,1E3,this);
g.C(this,this.tc);this.ld=new g.H(this.gh,void 0,this);g.C(this,this.ld);this.Vc=new g.H(this.gh,1E4,this);g.C(this,this.Vc);this.W=this.I=NaN;this.Fa=this.ac=0;this.ya=this.Mb=this.ha=!1;this.Ra="";this.kb=new Vy(5);this.Ia={};this.Ob=NaN;(this.N=lla(this.u,this.ba,this.kb,function(n,p){return HD(m,n,p)}))&&this.N.subscribe("ctmp",this.td,this);
this.P=new Tz(this.F,this.B,this.D,this.u);g.C(this,this.P);this.Y=new KA(this.F,this.u,this.B,this.P);g.C(this,this.Y);this.Y.subscribe("ctmp",this.td,this);xla(this,this.P);this.jd=NaN;this.Kc=null;this.fa=NaN;this.kd=!1;this.Rb=0;this.ea=!1;this.Za=0;this.ka=l?1:0};
yla=function(a){var b=a.B.u.index;a.Kc=new vla({Ki:a.u.Ki,Ce:a.u.D.Ce,bq:b.u,Lb:function(){return b.Lb()},
Dm:function(){return b.Dm()}})};
JD=function(a,b){b=b||a.B&&a.B.B&&a.B.B.startTime||a.I;var c=a.B;var d=a.K;var e=d.D&&d.D.index.Sg(b)||0;d.fa!=e&&(d.ea={},d.fa=e,SC(d,d.F));$C(d);d.D&&!d.D.index.Bc()&&(d.fa=-1);d=d.D;c.u!=d&&(c.u=d);c=a.D;d=a.K.I;c.u!=d&&(c.u=d)};
KD=function(a,b){a.Mb=b;a.ea||(a.ha=!0)};
LD=function(a){a.C&&a.C.u&&a.C.B&&(Tr(a.C.u,a.Jb,a),Tr(a.C.B,a.Jb,a));iy(a.D,null);iy(a.B,null);a.C=null};
ND=function(a,b){b=void 0===b?!1:b;LD(a);b?a.ea=!0:a.u.vf?KD(a,a.kd):KD(a,!1);MD(a)};
PD=function(a){a.C&&kB(a.C)&&(ND(a),a.u.jz&&OD(a,!0,"fmt.unplayable",{unexpected:1}))};
RD=function(a,b,c){if(2===a.ka||a.ha&&(!cz(a.ba)||a.Mb)||a.u.Mg&&!cz(a.ba))return!1;if(a.F.isManifestless){if(0<b.D.length&&b.B&&-1==b.B.B||b.D.length>=a.u.kG&&!a.u.Ob||!a.u.Xy&&0<b.D.length&&!a.u.D.Ce)return!1;if(b.N)return!a.F.isLive||!isNaN(a.Ob)}if(Uy(b))return!1;if(!(b.B||a.F.isManifestless&&a.u.Ob&&b.N)){if(!b.u.Td())return!1;ty(b,a.I)}var d=b.D.length+c.D.length;(Oy(b)||Oy(c)||a.F.isLive&&(!a.u.Ob||!b.D.length))&&--d;if(d+1>=a.u.sG)return!1;d=b.B;if(!d)return!0;if(!vv(d.u.B))return!1;4==d.type&&
d.u.Td()&&(b.B=g.fb(d.u.Jt(d)),d=b.B);if(!d.F&&!d.u.gj(d))return!1;var e=a.F.cf||a.F.I;if(a.F.isManifestless&&e){e=b.u.index.Lb();var f=c.u.index.Lb();e=Math.min(e,f);if(0<b.u.index.I&&0<e&&d.B>=e)return b.X=e,c.X=e,!1}if(d.u.info.audio&&4==d.type)return!1;if(Qy(b)&&!a.u.ka)return!0;if(d.F||vy(b)&&vy(b)+vy(c)>a.u.Fa)return!1;e=!b.F&&!c.F;f=b==a.B&&a.ea;if(!(c=!!(c.B&&!c.B.F&&c.B.I<d.I)&&(!a.F.isManifestless||c.B&&c.B.I&&d.I)&&e&&!f||a.u.ea&&!b.F&&c.F)&&(c=ku(d))){d=d.I;a:if(c=MA(a.Y),a.ea&&c)a=c.startSecs+
c.durationSecs;else{c=QD(a,b,!0);!ZC(a.K)&&0<a.u.W&&(e=((0,g.O)()-a.ac)/1E3,c=Math.min(c,a.u.W+a.u.kd*e));c=a.I+c;if(a.u.Fg&&(e=zla(a)+a.u.Fg,e<c)){a.td("mrl","ori."+c+";mod."+e,!0);a.u.XE&&(a.ac=(0,g.O)());a=e;break a}a=c}c=d>a}return c?!1:(b=b.K)&&b.isLocked()?!1:!0};
SD=function(a,b,c){if((!a.C||hB(a.C)||mB(a.C))&&!a.P.C&&a.K.P){var d=a.I;a=a.X;c=fz(a,b.u.info.u,c.u.info.u,0);var e=$y(a.B)+c/bz(a.B);Ky(b,d+Math.max(e,e+a.u.sf-c/b.u.info.u))}};
UD=function(a,b,c){if(RD(a,b,c)){var d=Ala(a,b,c);if(a.u.zz&&a.F.isManifestless&&!b.N&&0>d.u[0].B)a.td("invalidsq",hu(d.u[0]));else{if(a.Ma){var e=d.u[0].u.info.id,f=d.u[0].B,h=d.u[0].K;0>f&&0<=b.P?f=b.P:0<=b.P&&(b.P=-1);(e=Bla(a.Ma.u,h,f,e))&&f>c.ha?d.F=e:b.ha=f}a.u.Eq&&-1!=d.u[0].B&&d.u[0].B<a.F.Gd&&(d=b.u.Dl(a.F.Gd,!1));a=TD(a,d);b.D.push(a);b.B=g.fb(a.info.u)}}};
Ala=function(a,b,c){if(b.N){if(a.F.isLive){var d=a.F.Gd&&a.F.I?b.u.Dl(a.F.Gd,!1):b.u.Pi(Infinity);d.Ie=a.Ob}else d=b.u.Dl(0,!1);a.N?0==d.Ie&&(d.D=a.N.X):d.D=a.jd;return d}d=b.B;if(!d.u.Td())return d.u.Ee()?(a=fz(a.X,b.u.info.u,c.u.info.u,0),a=d.u.Cl(d,a)):a=d.Oj(),a;!a.K.P||a.u.ka||a.F.isManifestless||(SD(a,b,c),b.B||ty(b,a.I));d=b.B;var e=d.I-a.I,f=!d.range||0==d.fb&&0==d.C?0:d.range.length-(d.C+d.fb),h=d.u;Cla(a,b,e)&&0==f&&(a.F.isManifestless?h=b.u:(h=d.startTime+VD,d.fb&&(h+=d.duration),ty(b,
h),d=b.B,h=d.u));h.Ee()?(c=fz(a.X,h.info.u,c.u.info.u,e,gla(a.K)&&a.ya),d=Dla(d,c,Py(b))):(0>d.B&&(c=ou(d),c.pr=""+b.D.length,a.P.C&&(c.sk="1"),a.td("nosq",d.N+";"+g.OA(c))),d=h.Oj(d));a.ea&&d.u.forEach(function(l){l.type=6});
return d};
Cla=function(a,b,c){if(!Py(b)||!b.u.Td())return!1;var d=Math.min(15,.5*QD(a,b,!0));return Qy(b)||c<=d||a.K.P};
Dla=function(a,b,c){b=a.u.Cl(a,b);if(b.range&&1<b.u.length)if(c||b.B.B||b.u[0].u!=a.u)b=a.u.Cl(a,b.u[0].fb);else{c=b.u[b.u.length-1];var d=c.fb/b.range.length;!c.D&&.4>d&&(b=a.u.Cl(a,b.range.length-c.fb))}return b};
Ela=function(a,b){var c=Bv(b),d=a.X,e=Math.min(2.5,$y(d.B));d=gz(d);var f=ju(b.u[0]),h=hv(b.B.u),l=a.u.Mg,m;a.Kc?m={gg:f,Vh:h,ql:l,Zh:a.Kc,eb:b.u[0].B,Ie:b.Ie}:m={gg:f,Vh:h,ql:l};return new Aw(a.ba,c,c-e*d,m)};
TD=function(a,b){ku(b.u[b.u.length-1])&&WD(a,ela(a.K,b.u[0].u));var c=Ela(a,b);a.u.qF&&(c.F=[]);var d={Mk:Math.max(0,b.u[0].K-a.I)};a.u.uf&&zv(b)&&b.u[0].u.info.video&&(d.AE=ila(a.K));a.ea&&(d.Xp=!0);return new px(a.u,b,c,a.Ia,function(e){a:{var f=e.info.u[0].u,h=f.info.video?a.B:a.D;if(!(2<=e.state)||4<=e.state||!e.u.li()||!a.u.Vc||e.K||!(!a.C||a.ha||Hy(h,a.I)>a.u.Vc)){var l=a.u.Bh;if(!(!l||4<=e.state||e.K<l||uv(e.info.B,a.u,a.Ia))){l=a.Ia;var m=gv(tv(e.info.B));l=rv(l,m);l.u||l.B||l.started||(l=
Cv(e.info,!0,a.u.Ah))&&TD(a,l)}if(!a.la()&&2<=e.state){l=a.xa;var n=e.info.u[0].u;m=!l.D&&n.info.video;n=!l.u&&n.info.audio;4==e.state?m?l.ze("vrr"):n&&l.ze("arr"):5==e.state?m?(l.D=e.cd(),up(4)):n&&(l.u=e.cd()):3==e.state&&m&&up(4);4<=e.state&&(a.u.xa&&(l=Bw(e.timing),m=e.timing,a.td("rqs",g.OA({rn:e.P.toString(),rt:l.rt,pt:l.pt,stall:l.stall,elt:l.elbowTime,elb:l.elbowBytes,strm:""+e.u.li(),d:m.F?m.F.join(""):""}))),e.ya&&a.td("sbwe3","1",!0));if(4==e.state)Ny(h,e),zv(e.info)&&XD(a,h,f,!0),a.gh();
else if(4<=e.state&&5==e.info.u[0].type)5==e.state&&(f=(e.info.u[0].u.info.video?a.B:a.D).D[0]||null)&&f.K&&Ax(f,!0),e.dispose();else{if(!e.isFailed()&&e.N&&2<=e.state&&4!=e.state)if(f=e.u?e.u.Hd("X-Response-Itag"):null){f=hla(a.K,f);h=e.info.range.length-f.Cr();f.F=!0;e.info.u[0].u.F=!1;l=f.bl(h)[0];e.info=l;if(e.C){h=e.C;l=l.u;h.B=l;m=l[0].range;n=Au(h.u[0].u);Au(g.fb(h.u).u);for(var p=0;p<h.u.length;p++){h.u[p].info=l[p];var r=l[p].range;h.u[p].u=new tu([new Uint8Array(n.buffer,r.start-m.start,
r.length)])}}e.N=!1;h=a.B;h.u!=f&&(h.u=f);h=a.B;h.B&&(h.B.u=f);a.V("constraint",f.info.Ja().quality);(h=e.u?e.u.Hd("X-Segment-Lmt"):null)&&f instanceof Wv&&(isNaN(f.lastModified)||f.lastModified==h||Ny(a.B,e))}else e.N=!1;if(5==e.state)YD(a,e),1===a.ka&&(f=MA(a.Y),a.Ma&&f&&("continue"===f.event||"start"===f.event)?(f=a.Ma.u,f.D.isActive()||f.D.start(),a.ka=2):a.ka=4);else if(a.u.fa&&Bx(e)&&!(4<=e.state)&&!YD(a,e)&&!e.isFailed()){e=void 0;break a}e.isFailed()&&(f=e.info.u[0].u,h=e.F,yx(e)?(l=(f.info.video&&
1<f.B.B||410==e.I||500==e.I||503==e.I)&&!YC(a.K),m=qx(e),n=f.info.video?a.B:a.D,l&&(m.stun="1"),OD(a,!1,h,m),a.la()||(l&&XC(a.K,f),a.u.Dh&&1==e.info.u.length&&0<e.info.u[0].C&&f!=n.u&&a.ya?a.V("reattachrequired"):(Ny(n,e),a.gh()))):hv(f.B.u)?(a.V("localplaybackfailed"),f={err:e.F,rn:e.P.toString()},(h=e.u.Al()||"")&&a.td("dldbrerr",g.rf(h)),OD(a,!1,"net.closed",f)):(OD(a,!1,h,qx(e)),e.info.gg()?(f.I=h,a.gh()):OD(a,!0,"net.retryexhausted",{err:h,rn:e.P.toString()})));a.gh();a.u.Za&&4<=e.state&&yx(e)&&
uv(e.info.B,a.u,a.Ia)&&(f=a.Ia,h=gv(e.info.B.u),f=rv(f,h),f.D+a.u.Za*qv(f)>(0,g.O)()||(e=Cv(e.info,!1,a.u.Ah))&&TD(a,e))}}}e=void 0}return e},d)};
WD=function(a,b){b&&a.V("videoformatchange",b)};
YD=function(a,b){var c=b.info.u[0].u,d=c.info.video?a.B:a.D;Fla(a,d,b);b.info.gg()&&!yv(b.info)&&(g.Gb(Cx(b),function(e){Nx(d.C,e)}),a.V("metadata",c));
ly(d);return!!Jx(d.C)};
Fla=function(a,b,c){if(a.F.isManifestless&&b){b.N&&(c.la(),4<=c.state||c.u.li()||Bx(c),b.N=!1);c.X&&a.kb.C(1,c.X);c.u&&(c.Y=parseInt(c.u.Hd("X-Head-Seqnum"),10));b=c.Y;c.u&&(c.ba=parseInt(c.u.Hd("X-Head-Time-Millis"),10));c=c.ba;a=a.F;for(var d in a.u){var e=a.u[d].index,f=c;e.B&&(b&&(e.I=Math.max(e.I,b)),f&&(e.D=Math.max(e.D,f)))}}};
bE=function(a){var b=a.C.u,c=a.C.B;a.D.u.C&&ZD(a,b,a.D.u.C);if(Gla(a)){if(a.u.Dk){if(!b.Zk()){var d=Jx(a.D.C);d&&$D(a,b,d)}c.Zk()||(b=Jx(a.B.C))&&$D(a,c,b)}a.Fa||(a.Fa=(0,g.O)())}else{if(a.Fa){d=(0,g.O)()-a.Fa;var e=Hy(a.D,a.I),f=Hy(a.B,a.I);a.td("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.Fa=0}a.N&&(d=a.N.B(a.D,ey(a.C.B.Ge())))&&a.V("seekplayerrequired",d,!0);d=!1;aE(a,a.B,c)&&(d=!0,e=a.xa,e.C||(e.C=g.A(),e.ze("vda"),GA("vda","video_to_ad"),e.B&&up(4)));
a.C&&!kB(a.C)&&(aE(a,a.D,b)&&(d=a.xa,d.B||(d.B=g.A(),d.ze("ada"),GA("ada","video_to_ad"),d.C&&up(4)),d=!0),!a.la()&&a.C&&(!a.u.ba&&sy(a.B)&&sy(a.D)&&hB(a.C)&&!a.C.df()&&(e=jy(a.D).u,e==a.F.u[e.info.id]&&(e=a.C,hB(e)&&e.C.endOfStream(),Zy(a.ba))),e=a.u.BG,f=a.u.Kz,d||!(0<e||f)||!hB(a.C)||sy(a.B)||sy(a.D)||(b.iq(a.I,f,e),c.iq(a.I,f,e)),d&&!mB(a.C)&&a.oa.ub()))}};
Gla=function(a){if(Uy(a.B)||1===a.ka||2===a.ka)return!0;if(a.u.jb)return!1;var b;if(b=a.P.C){b=a.X;var c=a.B,d=a.D;if(0==c.D.length&&0==d.D.length)b=!0;else{var e=0,f=Tx(c.C).concat(Tx(d.C));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.fb;c=c.u.info.u+d.u.info.u;e/=c;b=10<e?!0:10>c*(10-e)/hz(b)}(b=!b)||(b=a.B,b=0<b.D.length&&1==b.C.B.length&&Jx(b.C).info.P<b.ea)}if(b)return!0;if(!a.ya||!a.u.Ma||10>a.I||360<a.B.u.info.Ja().uc)return!1;b=Ry(a.B,a.I,a.u.Ma)||Ry(a.D,a.I,a.u.Ma);return(0<
a.B.D.length||0<a.D.D.length||RD(a,a.B,a.D)||RD(a,a.D,a.B))&&b};
aE=function(a,b,c){if(c.df())return!0;if(!c.Qu())return!1;var d=Jx(b.C);if(!d||6==d.info.type)return!1;var e=d.info,f=jy(b);!f||f.D||lu(f,e)||c.abort();c.Gy(e.u.info.containerType,e.u.info.mimeType);if(e=a.u.wb&&a.F.C&&0==d.info.C&&(g.Iu(d.info.u.info)||a.u.bC)){if(null==c.Zk()){e=jy(b);if(!(f=!e||e.u!=d.info.u)){b:if(e=e.W,f=d.info.W,e.length!=f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Eb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Zk(),f=d.info.u.u,e=e!==f&&!g.Eb(e,f);e=!e}e&&(g.Iu(d.info.u.info)?
(Dt(Fu(d),1836019574),Dt(Fu(d),1718909296)):(e=new It(Fu(d)),bu(e),Mt(e,524531317,!0),d.u=d.u.split(e.C+e.u).Wl),d.C=!1);a.u.ti&&d.C&&(d.C=!1);e=a.N&&!!a.N.I&&b.u.info.audio;f=a.F.isManifestless||d.C;if(!(a.F.C&&0!=d.info.C||f&&!e)&&$D(a,c,d))return!0;if(e)return!1;e=a.I+QD(a,b,!1);if(!(e=d.info.K>e)){a:if(a.u.Pd&&(!d.info.C||d.info.D)&&a.td("sba",c.ib({as:hu(d.info)})),e=d.C?d.info.u.u:null,f=Au(d.u),d.C&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=cE(a,c,f,d.info,e),"s"==e)a.Rb=0,a=!0;
else{a.u.mr||(c.abort(),Jy(b));if("i"==e||"x"==e)dE(a,"checked",e,d.info);else{if("q"==e&&(d.info.isVideo()?(e=a.u,e.I=Math.floor(.8*e.I),e.X=Math.floor(.8*e.X),e.F=Math.floor(.8*e.F)):(e=a.u,e.K=Math.floor(.8*e.K),e.Ia=Math.floor(.8*e.Ia),e.F=Math.floor(.8*e.F)),!c.df()&&!a.C.isView()&&c.iq(Math.min(a.I,d.info.startTime),!0,5))){a=!1;break a}a.V("reattachrequired")}a=!1}e=!a}if(e)return!1;b.C.B.shift();ny(b,d);return!0};
dE=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"==c||"m"==c?(e="fmt.unparseable",d.u.I=e,d.u.info.video&&!YC(a.K)&&XC(a.K,d.u)):"i"==c&&(15>a.Rb?(a.Rb++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=ou(d);d.mrs=a.C.C.readyState;d.origin=b;d.reason=c;OD(a,f,e,d)};
eE=function(a,b,c){var d=a.F,e=!1,f;for(f in d.u){var h=Rv(d.u[f].info.mimeType)||d.u[f].info.isVideo();c==h&&(h=d.u[f].index,oz(h,b.eb)||(h.aD(b),e=!0))}vka(a.P,b,c,e);c&&(a=a.Y,a.F.kb&&(a.P.C&&!a.F.Bq?(a.B=null,a.C=!1):(c=a.u&&a.B&&a.u.eb==a.B.eb-1,c=a.u&&c&&"stop"!=a.u.Fe.event&&"predictStart"!=a.u.Fe.event,a.B&&a.B.eb<b.eb&&(c?LA(a,a.B):a.C=!0),a.B=b)))};
$D=function(a,b,c){c.info.u.Td();var d=c.info.u.u;if(null==d||b.Zk()==d)return!1;var e=d,f=b.zr();if(a.u.ti&&f&&b.isView()&&g.Iu(c.info.u.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=efa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.td("fenc","1")}f=null;h=c.info.u.bl(0);h.length&&(f=h[0].u[0]);d=cE(a,b,e,f,d);return"s"!=d?(dE(a,"sepInit",d,c.info),!0):b.df()};
cE=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11==f.code)return"i";if(12==f.code)return"x";if(22!=f.code&&0!=f.message.indexOf("Not enough storage"))return g.N(f),"u";c=ay(b.Ge()).replace(/,/g,"_");d=g.rf(f.message);a.td("quex","br."+c+";t."+(a.C?b==a.C.B?"v":"a":"u")+";e."+d);return"q"}return kB(a.C)?"m":"s"};
GD=function(a,b){b.C.subscribe("needkeyinfo",a.UL,a);b.C.subscribe("error",a.GN,a);b.C.subscribe("avsyncissue",a.FN,a);var c=(0,g.z)(a.JN,a,b);b.C.subscribe("placeholderinfo",c,void 0);c=(0,g.z)(a.KN,a,b);b.C.subscribe("placeholderrollback",c,void 0);c=(0,g.z)(a.LN,a,b);b.C.subscribe("segmentinfo",c,void 0);c=a.HN.bind(a);b.C.subscribe("gaplessinfo",c,void 0);c=a.IN.bind(a);b.C.subscribe("localmediachange",c,void 0)};
xla=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.ea||a.V("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.td(c,d,!1)});
b.subscribe("error",function(c,d,e){OD(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.I=c})};
ZD=function(a,b,c){var d=0+c.duration;c=-c.u;0==b.yr()&&d==b.Iv()||b.Wx(0,d);c!=b.fc()&&(b.vn(c),Ux&&Zx(a.D.C,b.Qv()))};
QD=function(a,b,c){if(a.ha)return 1;var d=b.u.info.audio?a.u.K:a.u.I;!a.u.ka&&ZC(a.K)&&(d=Math.max(d,b.u.info.audio?a.u.Ia:a.u.X));c&&(d+=a.u.Fa);var e=ZC(a.K)?b.B?b.B.u.info.u:b.u.info.u:b.ba;d/=e;0<a.u.rf&&a.C&&hB(a.C)&&(b=b.u.info.video?a.C.B:a.C.u)&&!b.df()&&(b=b.Ge(),e=by(b,a.I),0<=e&&(b=a.I-b.start(e),d+=Math.max(0,Math.min(b-a.u.rf,a.u.Ty))));0<a.u.F&&(d=Math.min(d,a.u.F));a.u.qf&&c&&!ZC(a.K)&&(c=a.K,c=WC(c,g.fb(c.C))+WC(c,c.N.u[0]),c=a.u.qf*(c/gz(a.X)),c<d&&15>c&&a.td("bwcapped","1",!0),c=
Math.max(c,15),d=Math.min(d,c));return d};
zla=function(a){if(!a.wb)return Infinity;var b=g.Ke(zD(a.wb),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.I)return c.start/1E3;return Infinity};
Hla=function(a,b){var c=py(a.B).find(function(d){return d.startTime>=b&&HD(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
HD=function(a,b,c){if(!(a.B.u.Td()&&a.D.u.Td()&&a.C&&a.C.B&&a.C.u))return!1;if(c&&a.F.isManifestless&&(-1==a.B.I||-1==a.D.I))return!0;var d=ry(a.B,b,c);if(isNaN(d))return!1;a=ry(a.D,a.u.ha?b:d,c);return isNaN(a)?!1:!0};
XD=function(a,b,c,d){c.Td()||c.F||!vv(c.B)||(d=c.bl(d?lga(a.X,c.info):0),g.Gb(d,function(e){if("f"!=e.u[0].u.info.Fb){var f=TD(this,e);yv(e)&&(b.D.push(f),b.B=g.fb(f.info.u))}},a),c.F=!0)};
OD=function(a,b,c,d){a.la()||(d=new NA(c,b,d),g.Ua(a),g.OA(d.details),a.V("error",d),"html5.invalidstate"!=c&&"fmt.unplayable"!=d.errorCode&&"fmt.unparseable"!=c&&b&&a.dispose())};
MD=function(a){Jy(a.D);Jy(a.B)};
fE=function(a){a.D.C.D=null;a.B.C.D=null;a.u.C="";a.u.Mg=!1};
Ila=function(a,b){var c=b.info.video?a.B:a.D;null!=c&&XD(a,c,b,!1)};
Jla=function(a){if(a.wb){var b=a.F.getStreamTimeOffset()||a.fa||0,c=g.Ke(zD(a.wb),function(f){return"ad"==f.namespace}),d=0;
c=g.q(c);for(var e=c.next();!e.done;e=c.next())e=e.value.start/1E3-b,e>a.I&&(0===d||d>e)&&(d=e);0<d&&30<Math.abs(d-a.Za)&&(a.Za=d,a.D&&Ky(a.D,a.Za),a.B&&Ky(a.B,a.Za))}};
g.U=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.gE=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];d.text&&b.push(Kla(d))}return 1==b.length?b[0]:g.Ee("SPAN",null,b)};
Kla=function(a){var b=null,c=a.text;a.bold&&(b=g.Ee("B",null,b||c));a.italics&&(b=g.Ee("I",null,b||c));a.strikethrough&&(b=g.Ee("STRIKE",null,b||c));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(a=a.navigationEndpoint.urlEndpoint,b=g.Ee("A",null,b||c),g.id(b,a.url),"TARGET_NEW_WINDOW"==a.target&&(b.target="_blank"));return b||g.Ee("SPAN",null,c)};
hE=function(a,b,c,d){d=void 0===d?!1:d;g.B.call(this);this.experiments=b;this.useCobaltWidevine=d;this.u=[];this.B={};this.D={};this.callback=null;this.F=!1;this.C=[];this.initialize(a,!c)};
Mla=function(a,b){a.callback=b;a.C=[];LC(a.experiments)?iE(a):Lla(a)};
iE=function(a){if(!a.la())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=Nla(a,c);navigator.requestMediaKeySystemAccess(b,d).then(Do(function(e){if(!a.la()){c.keySystemAccess=e;if(GC(c)){e=WA();for(var f=g.q(Object.keys(a.D[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.B[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())c.B[h.value.contentType]=!0;if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())c.B[f.value.contentType]=!0}a.C.push(c);a.ca("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.u.shift(),iE(a)):a.callback(a.C)}}),Do(function(){a.F=!a.F&&"widevine"===a.B[a.u[0]].flavor;
a.F||a.u.shift();iE(a)}))}};
Nla=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};GC(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.D[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.F?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(h.push({contentType:e,robustness:"HW_SECURE_ALL"}),h.push({contentType:e,robustness:"SW_SECURE_DECODE"}),
a.ca("html5_query_sw_secure_crypto_for_android")&&(mk()||Yj())&&h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}))}return[c]};
Lla=function(a){if(EC()&&g.mC)a.C.push(new DC("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Ola(),c=g.jb(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.D[e.flavor])b(l,d)&&(e.B[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
Ola=function(){var a=EC();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=WA();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
jE=function(a){this.Ka=a};
kE=function(a,b,c){if(c)return tr();var d={};c=WA();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.ie().mimeType)){var f=e.Ka.Ja().quality;if(!d[f]||d[f].ie().Ed())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Gb(Jv,function(l){(l=d[l])&&h.push(l)});
return h.length?ur(h):tr()};
Pla=function(a,b,c){this.C=a;this.B=b;this.cpn=c;this.D=0;this.u=""};
lE=function(a,b,c){a.cpn&&(b=g.Ld(b,{cpn:a.cpn}));c&&(b=g.Ld(b,{VV:c}));return b};
mE=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
Qla=function(a,b,c){var d="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(b.u){f=b.u;var h=f.getId().split(".")[0];h&&(d+='LANGUAGE="'+h+'",');a.u||f.getIsDefault()||(e="NO");f=f.getName()}h="";null!==c&&(h=c.itag.toString());a=lE(a,b.url,h);return d=d+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(mE(b,c)+'",URI="'+(a+'"'))};
Rla=function(a){for(var b=[],c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?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.B=b.concat(c)};
Sla=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.u=void 0===p?null:p;this.audioChannels=r;this.D=(null===l||void 0===l?void 0:l.split(","))||[];this.C=m||null;this.Yc=n||"";this.B=""};
nE=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d={};a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var f=e.type;e.audio_channels&&(f=f+"; channels="+e.audio_channels);if(!MediaSource.isTypeSupported(f))continue}if(c||!e.drm_families||"smpte2084"!==e.eotf&&"arib-std-b67"!==e.eotf){f={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var h=e.type.match(/codecs="([^"]*)"/);h=h?h[1]:"";var l=null;e.audio_track_id&&(l=new zz(e.name,
e.audio_track_id,!!e.is_default));var m=e.eotf;e=new Sla(e.itag,e.url,h,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,m?f[m]:void 0,e.drm_families,l,+e.audio_channels);d[e.itag]=d[e.itag]||[];d[e.itag].push(e)}}return d};
oE=function(a,b,c){this.Ka=a;this.B=b;this.expiration=c;this.u=null};
Tla=function(a,b){if(!(jk||gk()||ck()))return null;var c=nE(b,g.R(a.experiments,"html5_filter_fmp4_in_hls"));if(!c)return null;for(var d=[],e={},f=g.q(Object.keys(c)),h=f.next();!h.done;h=f.next()){h=g.q(c[h.value]);for(var l=h.next();!l.done;l=h.next()){var m=l.value;m.u&&(l=m.u.getId(),e[l]||(m=new sC(l,m.u),e[l]=m,d.push(m)))}}return 0<d.length?d:null};
Xla=function(a,b,c,d,e){if(!(jk||gk()||ck()))return tr();var f=Ula(c),h=nE(c,g.R(a.experiments,"html5_filter_fmp4_in_hls"),a.D.B);if(!h)return tr();g.R(a.experiments,"html5_filter_video_m2ts_in_hls_killswitch")||Vla(h);c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c);c=[];for(var m=[],n=[],p=g.Q(a.experiments,"html5_hls_min_video_height"),r=null,t="",w=g.q(Object.keys(h)),x=w.next();!x.done;x=w.next())if(x=x.value,!g.R(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==
x&&"373"!==x){x=g.q(h[x]);for(var y=x.next();!y.done;y=x.next())if(y=y.value,y.width){if(!(y.height<p)){var D=g.q(y.D);for(var E=D.next();!E.done;E=D.next())if(E=E.value,h[E]){y.B=E;break}y.B||(y.B=Wla(h,y));if(E=h[y.B]){c.push(y);D="fairplay"===y.Yc?l:null;var G="";"PQ"===y.C?G="smpte2084":"HLG"===y.C&&(G="arib-std-b67");G&&(t=G);n.push(pE(E,[y],e,y.itag,y.width,y.height,y.fps,f,void 0,void 0,D,G));if(!r||y.width*y.height*y.fps>r.width*r.height*r.fps)r=y}}}else m.push(y)}D=n.reduce(function(K,M){return!!M.ie().Yc&&
K},!0)?l:null;
d=Math.max(d,g.Q(a.experiments,"html5_hls_initial_bitrate"));h=r||{};n.push(pE(m,c,e,"93",void 0===h.width?0:h.width,void 0===h.height?0:h.height,void 0===h.fps?0:h.fps,f,"auto",d,D,t));return kE(a.D,n,$B(a,b))};
pE=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,w="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,w||(w=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,w=y.itag);d=new Mv(d,"application/x-mpegURL",new Dv(0,t,null,w),new Gv(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new Pla(a,b,c);a.D=n?n:1369843;return new oE(d,a,l)};
Ula=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};
Wla=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.Yc===b.Yc&&!e.audioChannels)return d}return""};
Vla=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]};
qE=function(a,b){this.Ka=a;this.u=b};
Yla=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 ev(h.url,!0);if(h.s){var l=h.sp,m=Uu(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=Sv(h.type,h.quality,h.itag,h.width,h.height);e.push(new qE(h,f))}}return kE(a.D,e,$B(a,b))};
rE=function(a,b){this.Ka=a;this.u=b};
Zla=function(a){var b=[];g.Gb(a,function(c){if(c&&c.url){var d=Sv(c.type,"medium","0");b.push(new rE(d,c.url))}});
return b};
$la=function(a,b,c){c=Zla(c);return kE(a.D,c,$B(a,b))};
ama=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=vB(a.ustreamerConfig))};
g.sE=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.u=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.tE=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("")};
vE=function(a){for(var b={},c=g.q(Object.keys(uE)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[uE[d]];e&&(b[d]=e)}return b};
wE=function(a,b){for(var c={},d=g.q(Object.keys(uE)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.$u(f)&&(c[uE[e]]=f)}return c};
zE=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(xE)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=xE[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=yE(h.url);g.$u(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=yE(a.url),g.$u(a)&&(b["maxresdefault.jpg"]=a));return b};
yE=function(a){return a.startsWith("//")?"https:"+a:a};
AE=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return bma[a];return null};
BE=function(a){return a&&a.baseUrl||""};
CE=function(a){a=g.Xp(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};
DE=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.Ig=c)};
cma=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=EE(d.baseUrl);if(!e)return;d=new g.sE({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.U(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.Ru=b.audioTracks||[];a.cA=b.defaultAudioTrackIndex||0;b.translationLanguages?a.Su=g.Pc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.U(f.languageName)}}):
a.Su=[];
a.Pq=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
dma=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.interstitials.map(function(l){var m=l.unserializedPlayerResponse;if(m&&!a.ca("web_player_unserialized_interstitial_killswitch"))return{is_yto_interstitial:!0,raw_player_response:m};if(l=l.playerVars)return Object.assign({is_yto_interstitial:!0},Vp(l))});
e=g.q(e);for(var f=e.next();!f.done;f=e.next())switch(f=f.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:f,ku:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,ku:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(d.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:h,playerVars:f,
ku:0===h?5:7})}}};
ema=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
FE=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)};
GE=function(a){g.P.call(this);this.u=null;this.C=new g.mo;this.u=null;this.I=new Set;this.crossOrigin=a||""};
JE=function(a,b,c){c=HE(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Bc(e)){d=a;var f=c,h=f+"-"+e;d.I.has(h)||(d.I.add(h),g.lo(d.C,f,{iC:f,jD:e}))}IE(a)};
IE=function(a){if(!a.u&&!a.C.isEmpty()){var b=a.C.remove();a.u=fma(a,b)}};
fma=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.iC].cd(b.jD);c.onload=function(){var d=b.iC,e=b.jD;null!==a.u&&(a.u.onload=null,a.u=null);d=a.levels[d];d.loaded.add(e);IE(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.Kv()-1);e=[e,d];a.V("l",e[0],e[1])};
return c};
g.KE=function(a,b,c,d){this.level=a;this.F=b;this.loaded=new Set;this.level=a;this.F=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.C=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.u=Math.floor(Number(a[5]));this.D=a[6];this.signature=a[7];this.videoLength=d};
LE=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;GE.call(this,c);this.isLive=d;this.K=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
ME=function(a,b,c){return(a=a.levels[b])?a.Rs(c):-1};
HE=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].Sd()>=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
NE=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.KE.call(this,a,b,c,0);this.B=null;this.I=d?3:0};
OE=function(a,b,c,d){LE.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].NC(c)};
gma=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Ld(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.PE=function(a,b){g.P.call(this);this.Na=a;this.adModule=!1;this.adaptiveFormats="";this.Oz=this.adSafetyReason=this.adQueryId=this.Fu=null;this.Sn="";this.Yc=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.eg="";this.Ku=this.Gq=this.lC=!1;this.aC=null;this.Jn=this.dm=this.qq=this.ur=this.ds=!1;this.Nc=null;this.Kk=!1;this.Ip=NaN;this.wx={};this.oy=this.cycToken=null;this.author="";this.Ij=0;this.Tu=!1;this.Ci=null;this.Pu=this.zA=!1;this.clientScreenNonce=
this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Ei=this.Xn="";this.contentCheckOk=!1;this.Lg=0;this.ir=this.lo=!1;this.endSeconds=0;this.In=this.Og=this.Ka=this.vv=null;this.Gv="";this.gd=!1;this.Vi=this.Lm=0;this.Iu=this.pipable=this.pl=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.Uh=this.isPrivate=this.isListed=this.uw=this.mutedAutoplay=this.nk=!1;this.Iw="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.Yr=this.Mo=
this.cf=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.Gc=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.hi=0;this.reloadReason="";this.Bw=this.XB=this.Xi=!1;this.keywords={};this.Zg="";this.hs=0;this.kq=!1;this.liveChunkReadahead=NaN;this.qs=0;this.Um=null;this.Ro=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.Zd=[];this.racyCheckOk=!1;this.DE={};this.Kt=0;this.Ha=null;this.autonavState=
1;this.Wz=null;this.shortDescription="";this.kg=this.gy=!1;this.St=this.Xj=this.startSeconds=0;this.gu=this.Zz=this.iG=xC;this.zn=this.suggestions=null;this.ly=!1;this.expandedSubtitle=this.oo=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.Wu=void 0;this.Aa=[];this.hlsFormats=this.lq="";this.rs=this.Rt=this.Eg=this.qj=this.vg=this.Op=this.Tr=null;this.cg="vvt";this.Ud=!1;this.Py=null;this.tG="";this.tq=NaN;this.tu=this.ou=this.nu=this.mu=this.lu=this.ru=this.oq=this.qu=this.rq=
this.pu="";this.Kn=null;this.lF=!1;this.Oc={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.FB=this.EB=NaN;this.nn=this.No=this.Jk=this.NB=this.GB=!1;this.Tp=!0;this.sh={};this.captionTracks=[];this.Ru=[];this.cA=0;this.Su=[];this.Pq=!1;this.eo=new sC("und",new zz("Default","und",!0));this.Cw=0;this.Rc=null;this.pn=[];this.Hk=[];this.Ly=this.Ep="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.FA=this.ko=this.jg=this.qv=this.Hu=this.Cu=null;
this.Zq=!1;this.Md=null;this.rw=this.jo=this.useCobaltWidevine=this.yF=this.sl=this.rj=!1;this.Yj=this.ol=NaN;this.defraggedFromSubfragments=this.Jm=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.qk=this.Ny=this.cm=!1;this.interstitials=[];this.Hc=this.ww=!1;this.Dp=this.qD=this.Li="";this.isVisualizerEligible=!1;this.mt=null;this.Ub="";this.Wh=this.LB=!1;this.oD=this.nq="";this.yx=this.qx=this.ow=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=
NaN;this.showShareButton=!0;this.Vp=!1;this.xn=this.zk=!0;this.errorDetail=this.userGenderAge="";this.py=this.qy=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Mi=this.errorReason=this.errorCode=null;this.Tq=this.Sq="";this.Mg=this.xm=!1;this.ej=this.xl=this.Uf=this.Gd=0;this.Qo=this.fetchType=null;this.FE=!0;this.uo=null;this.ca("web_player_ux_module_wait")&&this.Na.Ra&&this.Zd.push("ux");
this.setData(b)};
SE=function(a,b){a.fflags=yB(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.eg=dv(c));a.Gq=S(a.Gq,b.iv_ads_only);a.Ku=S(a.Ku,b.iv_allow_in_place_switch);a.isPharma=S(a.isPharma,b.is_pharma);a.author=yB(a.author,b.author);a.Xn=EE(b.ttsurl)||a.Xn;a.Tu=S(a.Tu,b.cc_asr);a.Ei=yB(a.Ei,b.channel_path);a.channelBanner=yB(a.channelBanner,b.channel_banner);a.videoCountText=yB(a.videoCountText,b.video_count_text);a.autonavState=wB(a.autonavState,b.autonav_state,hma);a.clientPlaybackNonce=yB(a.clientPlaybackNonce,
b.cpn);a.subscribed=S(a.subscribed,b.subscribed);a.rawViewCount=xB(a.rawViewCount,b.view_count);a.shortViewCount=yB(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=yB(a.publishedTimeText||"",b.publishedTimeText);a.title=yB(a.title,b.title);a.subtitle=yB(a.subtitle,b.subtitle);a.oo=yB(a.oo,b.expanded_title);a.expandedSubtitle=yB(a.expandedSubtitle,b.expanded_subtitle);a.Sn=yB(a.Sn,b.aria_label);a.ypcPreview=yB(a.ypcPreview,b.ypc_preview);a.Qy=yB(a.Qy,b.ypc_origin);a.Ud=S(a.Ud,b.ypc_is_premiere_trailer);
a.nq=yB(a.nq,b.ypc_clickwrap_message);a.paygated=S(a.paygated,b.paygated);a.lF=S(a.lF,b.requires_purchase);a.showShareButton=!S(!a.showShareButton,b.ss);a.zk=S(a.zk,b.showwatchlater);a.xn=S(a.xn,b.shownotifybutton);a.Vp=S(a.Vp,b.copy_share);if(c=b.keywords)a.keywords=QE(c.split(","));if(c=b.rvs)a.suggestions=Wp(c);a.contentCheckOk=S(a.contentCheckOk,b.cco);a.racyCheckOk=S(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=S(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=yB(a.oauthToken,b.oauth_token);
a.Zg=yB(a.Zg,b.kpt);a.visitorData=yB(a.visitorData,b.visitor_data);if(c=b.session_data)a.hd=Tp(c);if(c=b.endscreen_autoplay_session_data)a.vv=Tp(c);a.jr=yB(a.jr,b.endscreen_ad_tracking_data);a.mG=S(a.mG,b.wait_for_vast_info_cards_xml);a.jy=S(a.jy,b.suppress_creator_endscreen);a.WB=S(a.WB,b.is_trueview_action);a.PF=yB(a.PF,b.tracking_list);a.Sq=yB(a.Sq,b.clip);a.Tq=yB(a.Tq,b.clipt);RE(a,b)};
WE=function(a,b){var c,d,e,f,h,l=b.raw_watch_next_response;if(!l){var m=b.watch_next_response;m&&(l=JSON.parse(m))}if(l){a.watchNextResponse=l;l=a.watchNextResponse.contents;var n;if(l){if(n=l.singleColumnWatchNextResults){var p=xB(0,b.autoplay_count);if(n.autoplay&&n.autoplay.autoplay&&!n.playlist){var r=n.autoplay.autoplay.sets;n={};m={};var t=null;if(r){for(var w=g.q(r),x=w.next();!x.done;x=w.next())if((x=x.value.autoplayVideoRenderer)&&x.compactVideoRenderer){t=x.compactVideoRenderer;break}if(r=
r[0].autoplayVideo)(r=r.clickTrackingParams)&&(n.itct=r),n.autonav="1",n.playnext=String(p)}else n.feature="related-auto";if(t){m.autonav="1";m.video_id=t.videoId;if(p=t.shortBylineText)m.author=g.U(p);if(p=t.title)m.title=g.U(p)}m.endscreen_autoplay_session_data=g.Hd(n);a.suggestions=[m]}}n=l.twoColumnWatchNextResults}l=a.watchNextResponse.playerOverlays;if(l&&(l=l.playerOverlayRenderer)){if(m=l.endScreen)if(m=m.watchNextEndScreenRenderer)var y=m.results;if(m=l.videoDetails){var D=m.embeddedPlayerOverlayVideoDetailsRenderer;
if(m=m.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Fv=m.title,a.Ev=m.byline}if(m=l.actions)for(m=g.q(m),p=m.next();!p.done;p=m.next())p=p.value,p.likeButtonRenderer&&(a.likeButtonRenderer=p.likeButtonRenderer);if(m=null===(c=l.decoratedPlayerBarRenderer)||void 0===c?void 0:c.decoratedPlayerBarRenderer)a.multiMarkersPlayerBarRenderer=null===(d=m.playerBar)||void 0===d?void 0:d.multiMarkersPlayerBarRenderer,a.Wu=null===(f=null===(e=m.playerBar)||void 0===e?void 0:e.chapteredPlayerBarRenderer)||
void 0===f?void 0:f.chapters,a.QP=null===(h=m.playerBarActionButton)||void 0===h?void 0:h.buttonRenderer;g.MB(a.Na)&&(a.zk=!!l.addToMenu);TE(a,l.shareButton);if(m=l.productsInVideoOverlayRenderer)a.shoppingOverlayRenderer=m.shoppingOverlayRenderer;if(l=l.autoplay)var E=l.playerOverlayAutoplayRenderer}!y&&n&&(l=n.endScreen&&n.endScreen.endScreen)&&(y=l.results);n&&(l=n.desktopOverlay&&n.desktopOverlay.desktopOverlayConfigRenderer)&&(l.suppressShareButton&&(a.showShareButton=!1),l.suppressWatchLaterButton&&
(a.zk=!1));D&&UE(a,b,D);D=xB(0,b.autoplay_count);if(y){l=n||null;m=E||null;p=[];t=!0;y=g.q(y);for(r=y.next();!r.done;r=y.next()){x=r.value;w=void 0;r=null;if(x.endScreenVideoRenderer){x=x.endScreenVideoRenderer;var G=x.title;r={id:x.videoId,length_seconds:x.lengthInSeconds};var K=x.publishedTimeText;K&&(r.publishedTimeText=g.U(K));if(K=x.shortBylineText)r.author=g.U(K);if(K=x.shortViewCountText)r.short_view_count_text=g.U(K);G&&(r.title=g.U(G),(G=G.accessibility)&&(G=G.accessibilityData)&&G.label&&
(r.aria_label=G.label));if(G=x.navigationEndpoint)if(w=G.clickTrackingParams,G=G.watchEndpoint)r.IA=G;if(G=x.thumbnailOverlays)for(G=g.q(G),K=G.next();!K.done;K=G.next())if((K=K.value.thumbnailOverlayTimeStatusRenderer)&&"LIVE"==K.style){r.live_playback="1";break}x=zE(x.thumbnail);x=vE(x);x.iurlmq&&(x={iurlmq:x.iurlmq,iurlhq:x.iurlmq});Object.assign(r,x)}else if(x.endScreenPlaylistRenderer){x=x.endScreenPlaylistRenderer;w=x.navigationEndpoint;if(!w)continue;r=w.watchEndpoint;if(!r)continue;r=r.videoId;
r={list:x.playlistId,video_id:r,playlist_length:x.videoCount,thumbnail_ids:r};if(G=x.title)r.playlist_title=g.U(G);if(G=x.shortBylineText)r.playlist_author=g.U(G);w=w.clickTrackingParams;x=zE(x.thumbnail);Object.assign(r,vE(x))}r&&(r.session_data=g.Hd({itct:w}),t?(VE(r,l,m,D),p.splice(0,0,r),t=!1):p.push(r))}a.suggestions=p}if(E&&(a.FE=!!E.preferImmediateRedirect,a.ca("web_new_autonav_countdown")||a.ca("web_new_big_thumbnail_endscreen"))){n=n||null;y={id:E.videoId};if(l=E.videoTitle)y.title=g.U(l),
(l=l.accessibility)&&(l=l.accessibilityData)&&l.label&&(y.aria_label=l.label);if(l=E.byline)y.author=g.U(l);if(l=E.thumbnailOverlays)for(l=g.q(l),m=l.next();!m.done;m=l.next())if((m=m.value.thumbnailOverlayTimeStatusRenderer)&&"LIVE"==m.style){y.live_playback="1";break}l=zE(E.background);l=vE(l);l.iurlmq&&(l={iurlmq:l.iurlmq,iurlhq:l.iurlmq});Object.assign(y,l);if(l=E.nextButton)if(l=l.buttonRenderer)if(m=l.navigationEndpoint)if(l=m.clickTrackingParams,y.session_data=g.Hd({itct:l}),l=m.watchEndpoint)y.IA=
l;E.topBadges&&(l=E.topBadges[0])&&(l=l.metadataBadgeRenderer)&&"BADGE_STYLE_TYPE_PREMIUM"==l.style&&(y.Ot=!0);VE(y,n,E,D);a.suggestions||(a.suggestions=[]);a.suggestions[0]=y}a.watchNextResponse.currentVideoThumbnail&&(a.sh=zE(a.watchNextResponse.currentVideoThumbnail))}};
XE=function(a){return!!(a.Ha&&a.Ha.videoInfos&&a.Ha.videoInfos.length)};
ZE=function(a){if(a.ca("html5_single_format_policy")&&a.uo)return a.uo;var b=a.Wh,c=!!a.ma&&(a.ma.Yi()||a.ma.Zi()||a.ma.Ti()),d=a.Na,e=!!a.ma&&a.ma.qg,f=YE(a),h=a.Ny;a.isAd();var l=a.isOtf(),m=a.Ju(),n=new Rka;n.X=f;n.K=h&&d.C;Xj("windows nt 5.1")&&!g.rB&&(n.u=!0);c&&JB&&6>=KB&&(n.u=!0);if(f=c)f=d.ca("disable_html5_ambisonic_audio")||!(g.nC(d)||d.ca("html5_enable_spherical")||d.ca("html5_enable_spherical3d"))?!1:oC(d);f&&(n.W=!0);b&&(n.u=!0,n.oa=!0);l&&!g.R(d.experiments,"html5_otf_prefer_vp9")&&
(n.u=!0);pB(d.D,qB.CHANNELS)&&(g.R(d.experiments,"html5_enable_aac51")&&(n.I=!0),g.R(d.experiments,"html5_enable_ac3")&&(n.C=!0),g.R(d.experiments,"html5_enable_eac3")&&(n.D=!0));g.R(d.experiments,"html5_block_8k_hfr")&&(n.ba=!0);!g.R(d.experiments,"html5_kaios_hd_killswitch")&&EB&&(n.ha=480);if(e||c)n.Y=!1;n.fa=!1;b=CC(d,n.B);0<b&&2160>b&&(RA()||g.R(d.experiments,"html5_format_hybridization"))&&(n.B.supportsChangeType=RA(),n.F=b);2160<=b&&(n.ka=!0);mx()&&(n.B.serveVp9OverAv1IfHigherRes=!1,n.ya=!1);
n.Ju=m;m=g.Vq||nk()&&!m?!1:!0;n.P=m;n.ea=g.R(d.experiments,"html5_format_hybridization");ck()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.C=!0,n.D=!0);a.isLivePlayback&&(d=a.Gc&&a.Na.ca("html5_enable_audio_51_for_live_dai"),m=!a.Gc&&a.Na.ca("html5_enable_audio_51_for_live_non_dai"),n.N=d||m);return a.uo=n};
jma=function(a){a.Og||a.ma&&Dz(a.ma);var b={};a.ma&&(b=NC(ZE(a),a.Na.D,a.ma));b=new hE(b,a.Na.experiments,a.yF,ima(a));g.C(a,b);a.No=!1;a.gd=!0;Mla(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.Og=a.Og;e.lr=a.lr;e.kr=a.kr;break;case "widevine":e.In=a.In}a.pn=c;0<a.pn.length&&(a.Rc=a.pn[0]);$E(a)})};
dF=function(a,b){var c;(c=!b)||(c=!(!aF(a)&&a.adaptiveFormats));if(c)return null;bF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(Jz=!0);c=cF(b);var d=a.Yc;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.cf,l=a.Na.experiments,m=Ega(c);d=f||h?Dga(c,h,d,l):3==m?Cga(c,d,e,l):Bga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=Hz(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.Mo=!0)));if(c=d.isManifestless)c=!(a.ca("html5_manifestless_vp9")||a.ca("html5_manifestless_vp9_normal_latency")&&
(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!kma(d));return c?(d.dispose(),null):d};
fF=function(a,b){var c=dF(a,b);if(!c)return!1;eF(a,c);return!0};
aF=function(a){return ck()&&!gF(a)};
gF=function(a){return bF(a,"html5_enable_tvos_dash_dogfood")||a.ca("html5_enable_tvos_dash")&&(a.ca("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
ima=function(a){return a.useCobaltWidevine?a.ca("html5_enable_tvos_widevine")&&ck()?gF(a):bF(a,"html5_enable_androidtv_cobalt_widevine")&&Xj("cobalt")&&Xj("android")?!0:!1:!1};
kma=function(a){return a.isManifestless&&YA('video/webm; codecs="vp9"')&&g.Mb(a.u,function(b){return Nv(b.info)})};
hF=function(a){return!(!a.ma||!a.ma.isManifestless)};
jF=function(a){if(!Qw())return!1;if(a.ca("html5_streaming_debug"))return!0;if(g.Vq)return!1;if(g.ak()){var b=Wj();if(16<=b&&17>b)return!1}return!hF(a)||"ULTRALOW"!=a.latencyClass&&21530001!=iF(a)?window.AbortController?a.ca("html5_streaming_xhr")||a.ca("html5_streaming_xhr_manifestless")&&hF(a)?!0:!1:!1:!0};
kF=function(a){var b=hF(a),c=jF(a);return(a.hasSubfragmentedFmp4||a.Jm)&&b?c&&Qw()?3:2:a.defraggedFromSubfragments&&b?-1:1};
iF=function(a){return a.isLowLatencyLiveStream&&void 0!=a.ma&&5<=Sz(a.ma)?21530001:a.liveExperimentalContentId};
lF=function(a){return ck()&&gF(a)?!1:!sB()||a.zA?!0:!1};
lma=function(a){a.gd=!0;a.Jk=!1;if(!a.yf&&mF(a))Gfa(a.videoId).then(function(d){a:{var e=dF(a,a.adaptiveFormats);if(e)if(d=dF(a,d)){if(0<g.Q(a.Na.experiments,"hoffle_cache_size_secs")){var f=a.videoId,h=dw(f);0!==h&&gw(f,h,!0)}f=g.q(Object.keys(d.u));for(h=f.next();!h.done;h=f.next()){var l=h.value;h=d.u[l];l=e.u[l];if(!l||h.lastModified<l.lastModified){nF(a,!0);a.Qo=new FD(a.videoId,2,{kn:!0});d.dispose();eF(a,e);break a}}e.dispose();eF(a,d)}else eF(a,e)}a.V("ctmp","dlac","r")},function(){return fF(a,
a.adaptiveFormats)}).then(function(){$E(a)});
else{Zu(a.yf)||g.er(new Cq("DASH MPD Origin invalid: ",a.yf));var b=a.yf,c=g.Q(a.Na.experiments,"dash_manifest_version")||4;b=g.Ld(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Ld(b,{pacing:0}));Hga(b,a.Na.experiments,a.isLivePlayback).then(function(d){a.la()||(eF(a,d,!0),wA("mrc"),$E(a))},function(d){a.la()||(a.gd=!1,a.V("dataloaderror",new NA("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
wA("mrs")}};
mma=function(a,b){a.Qo=b};
$E=function(a){a.la()||(a.gd=!1,a.V("dataloaded"))};
eF=function(a,b,c){c=void 0===c?!1:c;a.ma=b;g.C(a,b);b.Gd=a.Gd;b.Uf=a.Uf;b.ej=a.ej;b.xl=a.xl;oF(a)&&a.Zd.push("webgl");a.ma.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Um=Number(d[d.indexOf("manifest_duration")+1]));b.C&&(c?b.subscribe("refresh",a.ID,a):b.subscribe("cuepointsadded",a.kA,a));Dz(b)&&(a.No=!0)};
pF=function(a){return a.Yc?!0:!!a.ma&&Dz(a.ma)};
nma=function(a,b){var c=b||lF(a);return a.ma&&!c?(YE(a)&&Mga(a.ma,a.isLivePlayback),bF(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.Na.D.C=!0),Yka(ZE(a),a.Na.D,a.ma,a.Rc,a.ca("html5_dynamic_av1_hybrid_threshold")).then(function(d){qF(a,d);/^av/.test(a.clientPlaybackNonce)&&a.uo&&a.V("ctmp","av1",g.OA(a.uo.B))})):tr()};
oma=function(a,b){if(b&&a.hlsvp)return tr();if(a.hlsFormats){var c=cF(a.hlsFormats);a.Tr=Tla(a.Na,c);var d=a.clientPlaybackNonce;return Xla(a.Na,a.isAd(),c,a.Vi,d).then(function(e){for(var f,h,l=0,m=g.q(e),n=m.next();!n.done;n=m.next())n=n.value,(null===(h=null===(f=n.ie())||void 0===f?void 0:f.audio)||void 0===h?void 0:h.u)>l&&(l=n.ie().audio.u);2<l&&a.V("ctmp","hlschl",l);rF(a,e)})}return tr()};
pma=function(a){return a.zn&&a.XB?$la(a.Na,a.isAd(),a.zn).then(function(b){rF(a,b)}):tr()};
rma=function(a){var b=cF(a.lq,a.Gv);if(a.hlsvp){var c=gma(a.hlsvp,a.clientPlaybackNonce,a.Vi);b.push(c)}return Yla(a.Na,a.isAd(),b,qma(a)).then(function(d){rF(a,d)})};
qF=function(a,b){a.Ha=b;var c=a.getAvailableAudioTracks();c=c.concat(a.eo);for(var d=0;d<a.Ru.length;d++)for(var e=a.Ru[d],f=0;f<c.length;f++){var h=c[f],l=h.u.id==e.audioTrackId;if(h.u.isDefault&&d==a.cA||l){if(e.captionTrackIndices)for(l=0;l<e.captionTrackIndices.length;l++)h.captionTracks[l]=a.captionTracks[e.captionTrackIndices[l]];void 0!==e.defaultCaptionTrackIndex&&(h.D=a.captionTracks[e.defaultCaptionTrackIndex]);void 0!==e.forcedCaptionTrackIndex&&(h.B=a.captionTracks[e.forcedCaptionTrackIndex]);
h.C=e.visibility||"UNKNOWN"}}if(a.Rc&&a.Ha&&a.Ha.videoInfos&&!(0>=a.Ha.videoInfos.length)&&(c=Qv(a.Ha.videoInfos[0]),c!=("fairplay"==a.Rc.flavor)))for(d=g.q(a.pn),e=d.next();!e.done;e=d.next())if(e=e.value,c==("fairplay"==e.flavor)){a.Rc=e;break}};
rF=function(a,b){a.qj=b;qF(a,new BC(g.Pc(a.qj,function(c){return c.ie()})))};
qma=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Na.deviceParams.c,cver:a.Na.deviceParams.cver};a.ot&&(b.ptk=a.ot,b.oid=a.yE,b.ptchn=a.xE,b.pltype=a.zE);return b};
g.sF=function(a){return aF(a)&&a.Og?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.Ka&&a.Ka.Yc||null};
tF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.U(b.text):a.paidContentOverlayText};
uF=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.rd(b.durationMs):a.paidContentOverlayDurationMs};
vF=function(a){var b="";if(a.Iw)return a.Iw;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.wF=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
xF=function(a){return!!(a.yf||a.adaptiveFormats||a.lq||a.zn||a.hlsvp)};
yF=function(a){var b=g.nb(a.Zd,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.gd&&(xF(a)||g.nb(a.Zd,"fresca")||g.nb(a.Zd,"heartbeat")||b)};
cF=function(a,b){var c=Wp(a),d={};if(b)for(var e=g.q(b.split(",")),f=e.next();!f.done;f=e.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[f[1]]={width:f[2],height:f[3]});e=g.q(c);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f.itag];h&&(f.width=h.width,f.height=h.height)}return c};
TE=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.Vp=!!c.copyTextEndpoint)}};
AF=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.jg=c);if(a.jg){if(c=a.jg.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.jg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Li=d,a.Hc=!0):(a.Li="",a.Hc=!1);if(d=c.defaultThumbnail)a.sh=zE(d);(d=c.videoDetails&&
c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&UE(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.Fv=d.title,a.Ev=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.zk=!!c.addToWatchLaterButton;TE(a,c.shareButton);c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(d=c.playButton.buttonRenderer.navigationEndpoint,d.watchEndpoint&&(d=d.watchEndpoint,d.watchEndpointSupportedOnesieConfig&&d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&&
(a.mt=new ama(d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));c.videoDurationSeconds&&(a.lengthSeconds=g.rd(c.videoDurationSeconds));a.ca("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&FE(a,c.webPlayerActionsPorting);if(a.ca("embeds_wexit_list_ajax_migration")&&c.playlist&&c.playlist.playlistPanelRenderer){c=c.playlist.playlistPanelRenderer;d=[];if(c.contents)for(var e=0,f=c.contents.length;e<f;e++){var h=c.contents[e].playlistPanelVideoRenderer;if(h){var l=
h.shortBylineText?g.U(h.shortBylineText):"",m=h.title?g.U(h.title):"";d.push({author:l,encrypted_id:h.videoId,title:m})}}d={index:c.currentIndex,list:c.playlistId,playlist_length:c.totalVideos,video:d};c.titleText&&(d.title=g.U(c.titleText));c.shortBylineText&&(d.author=g.U(c.shortBylineText));a.FA=d}}a.jg.playabilityStatus&&(a.ko=a.jg.playabilityStatus,zF(a)&&(a.errorDetail="0",a.ko&&(c=a.ko.embeddedPlayerErrorMessageRenderer)))&&(a.EA=c.embeddedPlayerErrorMessageRenderer);(c=a.jg.attestation)&&
DE(a,c)}};
VE=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.Hd(d)};
UE=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);if(d=c.channelThumbnailEndpoint&&c.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)b.channel_path=d.url;if(d=c.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var e=d.title;e&&(b.title=g.U(e));if(d=d.subtitle)b.subtitle=g.U(d)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=c.title)b.expanded_title=
g.U(d);if(d=c.subtitle)b.expanded_subtitle=g.U(d);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.xn=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.qy=b.toggledServiceEndpoint||null,a.py=b.defaultServiceEndpoint||null):(a.qy=b.defaultServiceEndpoint||null,a.py=b.toggledServiceEndpoint||
null))}};
g.BF=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
CF=function(a){return a.isLivePlayback&&a.allowLiveDvr};
oF=function(a){return a.Zi()||a.Yi()||a.Nm()||a.Ti()};
sma=function(a){a.Ha=a.Ha.B};
g.DF=function(a){if(a.jy)return null;var b=a.aC;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.EF=function(a){return a.jy?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.FF=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.GF=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};
HF=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Na.fa};
IF=function(a){if(a.isAd()&&a.videoId!=a.Na.Jb)return a.Na.Jb};
JF=function(a){return a.nk||"detailpage"==HF(a)||a.mutedAutoplay};
KF=function(a){if(JF(a)){if("detailpage"==HF(a))return a.pl||0<a.hi;if("adunit"!=HF(a)||!a.qn)return!0}return!1};
LF=function(a){var b=1,c=g.Q(a.Na.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Ip;g.R(a.Na.experiments,"html5_enable_per_format_loudness")&&a.Ha&&a.Ha.u&&a.Ha.u[0]&&a.wx[a.Ha.u[0].id]&&(c=a.wx[a.Ha.u[0].id]);return Math.min(1,Math.pow(10,-c/20))||b};
YE=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.Na.deviceParams.c&&"MUSIC"===a.Na.deviceParams.ctheme;!a.cm&&(iC(a.Na)||c)&&b.includes(a.musicVideoType)&&(a.cm=!0);if(b=g.ak())b=/Starboard\/([0-9]+)/.exec(g.Vc),b=10>(b?parseInt(b[1],10):NaN);c=a.Na;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Na.deviceParams.ctheme;
var d;if(d=!a.cm)c||(c=a.Na,c="TVHTML5"===c.deviceParams.c&&c.deviceParams.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.ca("cast_prefer_audio_only_for_atv_and_uploads")||a.ca("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.cm=!0);return!a.Na.deviceHasDisplay||a.cm&&a.Na.C};
MF=function(a){return!!(a.ca("hoffle_save")&&a.adaptiveFormats&&a.xm&&a.Na.C)};
nF=function(a,b){if(a.xm!=b&&(a.xm=b)&&a.ma){var c=a.ma,d;for(d in c.u){var e=c.u[d];e.F=!1;e.u=null}}};
mF=function(a){return!(!(a.ca("hoffle_load")&&a.adaptiveFormats&&hw(a.videoId))||a.xm)};
NF=function(a){if(!a.ma||!a.Ka||!a.Nc)return!1;var b=a.ma.u;return!!b[a.Ka.id]&&hv(b[a.Ka.id].B.u)&&!!b[a.Nc.id]&&hv(b[a.Nc.id].B.u)};
zF=function(a){return(a=a.ko)&&a.showError?a.showError:!1};
OF=function(a){return a.ca("disable_rqs")?!1:bF(a,"html5_high_res_logging")};
bF=function(a,b){return a.ca(b)?!0:(a.fflags||"").includes(b+"=true")};
tma=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
RE=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.wt=c.quartile_0_url,a.Dx=c.quartile_25_url,a.Fx=c.quartile_50_url,a.Hx=c.quartile_75_url,a.Bx=c.quartile_100_url,a.xt=c.quartile_0_urls,a.Ex=c.quartile_25_urls,a.Gx=c.quartile_50_urls,a.Ix=c.quartile_75_urls,a.Cx=c.quartile_100_urls)};
RF=function(a){return a?sB()?!0:PF&&5>QF?!1:!0:!1};
QE=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};
EE=function(a){if(a){if(bv(a))return a;a=cv(a);if(bv(a,!0))return a}return""};
SF=function(a){this.u=a};
uma=function(a,b){zo(a,"version",b)};
g.TF=function(a,b){this.type=a||"";this.id=b||""};
g.UF=function(a,b){g.P.call(this);this.Na=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.gd=this.loaded=!1;this.hd=this.vv=this.Fp=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.sh={};this.ks=0;var c=b.session_data;c&&(this.hd=Tp(c));this.BH=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.QL="1"===b.mob;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(c=b.api)"string"===typeof c&&16===c.length?b.list="PL"+c:b.playlist=c;if(c=b.list)switch(b.listType){case "user_uploads":this.gd||(this.listId=new g.TF("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "search":vma(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.TF(c.substr(0,
2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=!0):wma(this)}else if(b.playlist){c=b.playlist.toString().split(",");0<this.index&&(this.items=[]);c=g.q(c);for(d=c.next();!d.done;d=c.next())(d=d.value)&&this.items.push({video_id:d});this.length=this.items.length;c=this.items.map(function(e){return e.video_id});
this.loadPlaylist("/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")});this.loaded=!0}this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.sh=wE(b,"playlist_");this.JF=(c=b.thumbnail_ids)?c.split(","):[]};
VF=function(a){return!!(a.playlist||a.list||a.api)};
WF=function(a){var b=a.index+1;return b>=a.length?0:b};
XF=function(a){var b=a.index-1;return 0>b?a.length-1:b};
YF=function(a,b){a.index=g.be(b,0,a.length-1);a.startSeconds=0};
vma=function(a,b){if(!a.gd){a.listId=new g.TF("SR",b);var c={search_query:b};a.QL&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}};
wma=function(a){if(!a.gd){var b=b||a.listId;b={list:b};var c=a.Ja();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
ZF=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.Ja();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;(d=b.index)?a.index=d:a.findIndex(c);a.setShuffle(!1);a.gd=!1;a.loaded=!0;a.ks++;a.Fp&&a.Fp()}};
xma=function(){};
aG=function(){this.u={};var a=g.wq("CONSISTENCY");a&&$F(this,{encryptedTokenJarContents:a})};
$F=function(a,b){if(b.encryptedTokenJarContents&&(a.u[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.u[b.encryptedTokenJarContents]},1E3*c);
g.vq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
bG=function(){var a=g.L("LOCATION_PLAYABILITY_TOKEN");a&&(this.locationPlayabilityToken=a,this.u=void 0)};
cG=function(){bG.u||(bG.u=new bG);return bG.u};
g.eG=function(a,b){b=void 0===b?!0:b;var c=g.L("INNERTUBE_CONTEXT");if(!c)return g.dr(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};c=g.$b(c);var d=b,e;c.client||(c.client={});var f=c.client;"MWEB"===f.clientName&&(f.clientFormFactor=g.L("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");f.screenWidthPoints=window.innerWidth;f.screenHeightPoints=window.innerHeight;f.screenPixelDensity=Math.round(window.devicePixelRatio||1);f.screenDensityFloat=window.devicePixelRatio||1;f.utcOffsetMinutes=
-Math.floor((new Date).getTimezoneOffset());var h=void 0===h?!1:h;Fr.getInstance();var l=Hr(0,165)?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g.uo("kevlar_apply_prefers_color_theme")&&(l=Hr(0,165)?"USER_INTERFACE_THEME_DARK":Hr(0,174)?"USER_INTERFACE_THEME_LIGHT":!g.uo("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT");h=
h?l:Qea()||l;f.userInterfaceTheme=h;if(g.uo("web_log_connection")){a:{if(l=(h=window.navigator)?h.connection:void 0){h=dG[l.type||"unknown"]||"CONN_UNKNOWN";l=dG[l.u||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===h&&"CONN_UNKNOWN"!==l&&(h=l);if("CONN_UNKNOWN"!==h)break a;if("CONN_UNKNOWN"!==l){h=l;break a}}h=void 0}h&&(f.connectionType=h)}(h=g.wq("EXPERIMENTS_DEBUG"))?f.experimentsToken="ZERO"===h?"GgIQAQ%3D%3D":h:delete f.experimentsToken;f=xo();aG.u||(aG.u=new aG);h=g.Pb(aG.u.u);c.request=
Object.assign(Object.assign({},c.request),{internalExperimentFlags:f,consistencyTokenJars:h});h=Fr.getInstance();f=Hr(0,58);h=h.get("gsml","");c.user=Object.assign({},c.user);f&&(c.user.enableSafetyMode=f);h&&(c.user.lockedSafetyMode=!0);(f=g.L("DELEGATED_SESSION_ID"))&&!g.uo("pageid_as_header_web")&&(c.user.onBehalfOfUser=f);d&&(d=g.ks())&&(c.clientScreenNonce=d);a&&(c.clickTracking={clickTrackingParams:a});g.uo("web_enable_client_location_service")&&(d=cG(),c.client||(c.client={}),d.u?(c.client.locationInfo||
(c.client.locationInfo={}),c.client.locationInfo.latitudeE7=1E7*d.u.coords.latitude,c.client.locationInfo.longitudeE7=1E7*d.u.coords.longitude,c.client.locationInfo.horizontalAccuracyMeters=d.u.coords.accuracy):d.locationPlayabilityToken&&(c.client.locationPlayabilityToken=d.locationPlayabilityToken));g.uo("web_enable_ad_signals_in_it_context")&&(d=null===(e=c.adSignalsInfo)||void 0===e?void 0:e.consentBumpParams,c.adSignalsInfo=fq(void 0),!mr()&&d&&(c.adSignalsInfo.consentBumpParams=d));return c};
fG=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
yma=function(){var a=null;Cr().then(function(b){return a=b},function(b){return a=fG(b)});
return a};
zma=function(){var a=Vm(1E3,"NO_BID");return Jm(Lm(pda([Cr(),a]),fG),function(){return a.cancel()})};
vG=function(a){return a.kb?Hr(Fr.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
wG=function(a){this.u=a;this.C=g.Q(a.T().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3;this.D=this.B=1};
CG=function(a,b,c,d){c=void 0===c?{}:c;var e=c.bo,f=c.Zc;d=void 0===d?"":d;c=a.u.getVideoData(1);var h=a.u.T().Bj,l={AD_BLOCK:a.B++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:vG(a.u.T()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*xG(a.u),LACT:zp(),LIVE_INDEX:e?a.D++: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.u.getVisibilityState(),P_H:g.yG(a.u).getPlayerSize().height,P_W:g.yG(a.u).getPlayerSize().width,
YT_REMOTE:h?h.join(","):""},m=eq(dq);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};(e=a.u.T().ya)&&cq(b)&&(d.forced_experiments=e);b=$p(g.on(b,l),d);a.u.getVideoData().enableServerStitchedDai&&(b=b.concat("&expflag=enable_midroll_notify_for_bulleit%3Afalse"));d=b.split("?");if(2!=d.length)return Em(Error("Invalid AdBreakInfo URL"));e=g.q(d);d=e.next().value;e=e.next().value;g.R(a.u.T().experiments,"get_midroll_info_wexit")&&(f=Ama(a,b,l),f={rpc_data:JSON.stringify(f)},b=$p(b,f));f={};c.oauthToken&&bq()&&(f.Authorization="Bearer "+c.oauthToken);c=Vp(e);
e=a.u.T();return g.R(e.experiments,"get_midroll_info_wexit")?qr(b,{zv:!0,format:"RAW",headers:f,method:"POST",Xb:c,timeout:a.C,withCredentials:!0}):g.R(e.experiments,"get_midroll_info_use_client_rpc")?(c=zG(a.u.app),a=AG(a,b,l),g.BG(c,a,"/youtubei/v1/player/ad_break")):g.hC(e)?qr(d,{zv:!0,format:"RAW",headers:f,method:"POST",Xb:c,timeout:a.C,withCredentials:!0}):qr(b,{zv:!0,format:"RAW",headers:f,method:"GET",timeout:a.C,withCredentials:!0})};
Cma=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=aq(b),f=DG(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=DG(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Up(fq(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=[];Bma.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&&(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};
Dma=function(a,b,c){var d=!1;if(""==b)return d;b.split(",").forEach(function(e){var f={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},l="ACTIVE";"!"==e[0]&&(e=e.substring(1),l="INACTIVE");e=e.split("-");3>e.length||(e[0]in EG&&(h.clientName=EG[e[0]]),e[1]in FG&&(h.platform=FG[e[1]]),h.applicationState=l,h.clientVersion=2<e.length?e[2]:"",c?(f.remoteClient=h,a.remoteContexts?a.remoteContexts.push(f):a.remoteContexts=[f]):a.remoteClients?a.remoteClients.push(h):a.remoteClients=
[h],d=!0)});
return d};
AG=function(a,b,c){var d=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?c.DRIFT_FROM_HEAD_MS:0,e=Ema.exec(b);e=null!=e&&2<=e.length?e[1]:"";var f=Fma.test(b),h=Gma.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Hma.exec(b);l=null!=l&&2<=l.length&&!Number.isNaN(parseInt(l[1],10))?parseInt(l[1],10):1;var m=Ima.exec(b);m=null!=m&&2<=m.length?m[1]:"0";var n=g.aC(a.u.T()),p=g.eG(a.u.getVideoData(1).pg,!0),r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Cma(p,b,r.toString(),a.u.T());var t={splay:!1,lactMilliseconds:c.LACT.toString(),
playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,vis:c.VIS,signatureTimestamp:18550,autonavState:vG(a.u.T())},w={};Dma(w,c.YT_REMOTE,g.R(a.u.T().experiments,"use_remote_context_in_populate_remote_client_info"))&&(t.mdxContext=w);if(a=GG.includes(n)?void 0:g.wq("PREF")){w=a.split(/[:&]/);for(var x=0,y=w.length;x<y;x++){var D=w[x].split("=");if(("SML"==D[0].toUpperCase()||"GSML"==D[0].toUpperCase())&&1<D.length&&"TRUE"==D[1].toUpperCase()){p.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
HG)for(a=a.split(/[:&]/),x=HG.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,D=a.length;y<D;y++){var E=a[y].split("=");if(E[0]==w&&parseInt("0x"+E[1],16)&x){a=!0;break a}}a=!1}t.autoCaptionsDefaultOn=a}b=Jma.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&h&&(p.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:t};e={adBlock:c.AD_BLOCK,params:e,breakIndex:l,breakPositionMs:m,clientPlaybackNonce:c.CPN,topLevelDomain:n,isProxyAdTagRequest:f,
context:p,adSignalsInfoString:Up(fq(r.toString())),overridePlaybackContext:b};h&&(e.videoId=h);c.LIVE_TARGETING_CONTEXT&&(e.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(e.breakLengthMs=(1E3*c.AD_BREAK_LENGTH).toString());d&&(e.driftFromHeadMs=d.toString());return e};
Ama=function(a,b,c){var d=g.wq("dkv"),e=Kma.exec(b);e=null!=e&&2<=e.length?Number(e[1]):0;e=isNaN(e)?0:e;var f=g.aC(a.u.T()),h=new xma;h.clientName=a.u.T().ba.Mm.toString();h.host=f;h.u=void 0;f=GG.includes(f)?void 0:g.wq("PREF");return{adBreakRequest:AG(a,b,c),adsCookie:d,clientInfo:h,lact:c.LACT.toString(),mediaTimeMs:e,vis:c.VIS,playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,ytRemote:c.YT_REMOTE,prefCookie:f,signatureTimestamp:18550}};
IG=function(a,b,c){if(c&&c!==a.Ya)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.Ba.u.has(c.value))return!1;return!0};
JG=function(a,b,c){this.u=a;this.B=b;this.C=c};
KG=function(a,b,c,d,e,f){g.B.call(this);this.gb=a;this.ab=b;this.Yb=c;this.Da=d;this.B=e;this.u=f};
Mma=function(a,b,c){c.Xl?(LG(a.gb.get(),"opportunity_type_ad_break_service_response_received",function(){return[]},b.slotId),Lma(a.B,b)):MG(a.u,c.Gg,b.slotId)};
Nma=function(a,b,c,d){var e=NG(a.Da.get(),1);LG(a.gb.get(),"opportunity_type_ad_break_service_response_received",function(){return OG(a.Yb.get(),c,d,e.clientPlaybackNonce,e.oA,e.daiEnabled,e)},b)};
PG=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)};
QG=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.Gk=c;this.args=[];b&&this.args.push(b)};
Oma=function(a,b,c,d,e,f,h){b=RG(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof QG?b:SG(a,d,e,b,c);return a instanceof QG?a:[a]};
TG=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)};
UG=function(a,b){this.B=b;this.triggerType="trigger_type_before_content_video_id_started";this.triggerId=a(this.triggerType)};
VG=function(a){return"slot_type_player_bytes"===a.Ya&&a.Sb instanceof UG};
WG=function(a,b){this.B=b;this.triggerType="trigger_type_layout_id_entered";this.triggerId=a(this.triggerType)};
XG=function(a,b,c,d,e,f){this.D=b;this.B=c;this.visible=d;this.C=void 0===e?!1:e;this.F=void 0===f?!1:f;this.triggerType="trigger_type_media_time_range";this.triggerId=a(this.triggerType)};
YG=function(a){return a?"layout:  "+a.layoutType:""};
ZG=function(a,b){var c=a?"trigger type: "+a.triggerType:"empty";if(b){var d=String(b.end);if(a instanceof XG&&a.C||a instanceof WG&&0x7ffffffffffff===b.end)d="MediaEnd";c+=" |start: "+b.start+(" |end: "+d)}return c};
$G=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 Cq(a),d.category="H5 Ads Control Flow",b&&(d.slot=b?"slot:  "+b.Ya:""),c&&(d.layout=YG(c)),e&&(d.known_error_aggressively_sampled=!0),Jea(a,d),g.er(a)};
RG=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={wg:new On(-0x8000000000000,-0x8000000000000),zt:d},null!=c&&(d.ym=new On(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={wg:new On(0x7ffffffffffff,0x8000000000000),zt:d},null!=c&&(d.ym=new On(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||$G("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||$G("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 QG("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={wg:new On(a,e),zt:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.ym=new On(a,e)}return d;default:return new QG("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
aH=function(a,b,c,d,e,f){g.B.call(this);this.gb=a;this.Yb=b;this.Du=c;this.za=d;this.u=e;this.Da=f};
Pma=function(a,b,c){var d=[];a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.renderer.invideoOverlayAdRenderer||e.renderer.adBreakServiceRenderer&&TG(e);"AD_PLACEMENT_KIND_MILLISECONDS"===e.config.adPlacementConfig.kind&&f&&(f=RG(e.config.adPlacementConfig,0x7ffffffffffff),f instanceof QG||d.push({range:f.wg,renderer:e.renderer.invideoOverlayAdRenderer?"overlay":"ABSR"}))}d.sort(function(h,l){return h.range.start-l.range.start});
a=!1;for(e=0;e<d.length-1;e++)if(d[e].range.end>d[e+1].range.start){a=!0;break}a&&(d=d.map(function(h){return h.renderer+"|s:"+h.range.start+("|e:"+h.range.end)}).join(","),$G("Conflicting renderers.",void 0,void 0,{detail:d,
cpn:b,videoId:c}))};
bH=function(a,b,c,d){this.C=a;this.Fe=null;this.B=b;this.u=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.D=void 0===d?!1:d};
cH=function(a,b,c,d,e){g.oD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.u=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
dH=function(a){return"AD_PLACEMENT_KIND_START"==a.u};
eH=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u};
Qma=function(a){return a.end-a.start};
fH=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new On(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new On(Math.max(0,b.C-b.u),0x7ffffffffffff):new On(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.C);if(c&&(d=a,a=Math.max(0,a-b.u),a==d))break;return new On(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.Fe;a=1E3*d.startSecs;if(c){if(a<b.B)return new On(a-4E3,a);c=Math.max(0,a-b.B-1E4);return new On(b.D?b.B:Math.floor(b.B+Math.random()*c),a)}return new On(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
gH=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
Rma=function(){this.url=null;this.height=this.width=0;this.adInfoRenderer=this.impressionTrackingUrls=this.clickTrackingUrls=null};
hH=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
iH=function(a){this.u=a};
Sma=function(a){var b=new iH(a.J);return{lI:function(){return b}}};
jH=function(a,b){this.u=a;this.ya=b||{};this.K=String(Math.floor(1E9*Math.random()));this.N={};this.P=0};
Tma=function(a){this.C=a;this.B={};this.u=$f()?500:g.VB(a.T())?1E3:2500};
Vma=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.B||(a.B[d.mimeType]=a.C.canPlayType(d.mimeType));return a.B[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return Uma(a,c)};
Uma=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.u||h<a.u||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.u||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<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.minBitrate,h=e.maxBitrate,f<a.u||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&h>c.maxBitrate&&(c=e));return c};
kH=function(a,b){this.u=a;this.F=b;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(e,f){return e+f},0);
for(var c=0,d=a+1;d<b.length;d++)c+=b[d];this.adBreakRemainingLengthSeconds=c};
lH=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||[]]])};
Wma=function(a){return(a=a.pings)?Object.fromEntries(lH(a)):{}};
mH=function(a,b,c,d,e){jH.call(this,a,Wma(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.xa=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.D=new kH(0,[]);this.I=this.ba=null;this.Fa=b;this.ea=[];this.F={};this.oa=null;this.B=0;this.W=this.Y=this.C=null;this.ha=d;this.ka=e;this.X=null;b=this.u.skipOffsetMilliseconds||0;0<b&&(this.oa=b);this.F=Vp(this.u.playerVars||"");if(b=this.u.external)this.ea=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.B=b/1E3,this.F.length_seconds=
this.B.toString()),(b=Vma(this.Fa,this.ea))?(this.Y=b.uri,b=b.mimeType,this.F.url_encoded_third_party_media="url="+encodeURIComponent(this.Y)+"&type="+encodeURIComponent(b)):this.W=Error("Nonplayable third party ad media file.");else if(this.ha&&g.R(this.ha,"use_ivar_to_extract_ad_video_id")?this.C=this.u.externalVideoId||null:this.C=this.F.video_id,this.ba=this.F.ucid||null,this.B=xB(this.B,this.F.length_seconds),this.ka&&this.C&&(this.X=this.ka(this.C)),this.F.cta_conversion_urls)try{this.F.cta_conversion_urls=
JSON.parse(this.F.cta_conversion_urls)}catch(f){g.N(f)}this.I=this.u.clickthroughEndpoint||null;this.D=new kH(0,[this.B])};
nH=function(a){var b=a.F||{};1<a.D.B&&(b.slot_pos=a.D.u);b.autoplay="1";return b};
oH=function(a){return 0<a.B&&7.05>=a.B};
pH=function(){jH.apply(this,arguments)};
qH=function(){this.u=[];this.C=null;this.B=0};
rH=function(a,b){b&&a.u.push(b)};
sH=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};
tH=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};
uH=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
vH=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Xma=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=sH(a.impressionCommands)||[];b.error=sH(a.errorCommands)||[];b.mute=sH(a.muteCommands)||[];b.unmute=sH(a.unmuteCommands)||[];b.pause=sH(a.pauseCommands)||[];b.rewind=sH(a.rewindCommands)||[];b.resume=sH(a.resumeCommands)||[];b.skip=sH(a.skipCommands)||[];b.close=sH(a.closeCommands)||[];b.clickthrough=sH(a.clickthroughCommands)||[];b.fullscreen=sH(a.fullscreenCommands)||[];b.active_view_viewable=sH(a.activeViewViewableCommands)||
[];b.active_view_measurable=sH(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=sH(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=sH(a.endFullscreenCommands)||[];b.channel_clickthrough=sH(a.channelClickthroughCommands)||[];b.abandon=sH(a.abandonCommands)||[];b.progress=tH(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=tH(a.progressCommands.filter(function(c){return vH(c)&&ee(uH(c),0)}));
b.first_quartile=tH(a.progressCommands.filter(function(c){return vH(c)&&ee(uH(c),.25)}));
b.midpoint=tH(a.progressCommands.filter(function(c){return vH(c)&&ee(uH(c),.5)}));
b.third_quartile=tH(a.progressCommands.filter(function(c){return vH(c)&&ee(uH(c),.75)}));
b.complete=tH(a.progressCommands.filter(function(c){return vH(c)&&ee(uH(c),1)}));
return b};
wH=function(a){jH.call(this,a,Xma(a));this.B=a.questions?a.questions.reduce(function(b,c){var d=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer;return d?b+(d.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
xH=function(a,b,c,d){this.id=b;this.X=a.placementStartPings||[];this.W=a.placementEndPings||[];this.C=d.Fe;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.D=(this.K=e.getAdBreakUrl||"")?0:2;d.u=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=fH(b,d);if(null==f)d=new cH(b,new On(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(no.getInstance().u++).toString(36);var h=d.daiEnabled||d.Fe;f=new cH(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.Fe||0<d.u)if(d=fH(b,d,!0))h=new cH(b,d,!1,"prefetch:"+e,3),f.C=h,h.C=f;d=[h,f]}this.Y=d[0];this.u=d[1];this.B=c;this.N=!1;this.I={};this.P={};this.F=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
yH=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u.u||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.u.u};
zH=function(a){return"AD_PLACEMENT_KIND_START"==a.u.u};
BH=function(a){var b={};Yma(a,b);Zma(b);b.LACT=AH(function(){return zp().toString()});
b.VIS=AH(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=AH(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
CH=function(a){var b=Object.assign({},{});b.MIDROLL_POS=yH(a)?AH(ab(Math.round(a.u.start/1E3).toString())):AH(ab("0"));return b};
$ma=function(a){var b={};if(!a.kind)return g.dr(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.dr(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=AH(ab(Math.round(g.rd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=AH(ab("0"));return b};
ana=function(a){var b={};b.SLOT_POS=AH(ab(a.D.u.toString()));return b};
DH=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};
AH=function(a){return{toString:function(){return a()}}};
EH=function(a){for(var b={},c=g.q(bna),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
FH=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.la(b)));return c};
cna=function(a,b,c){function d(l,m){var n=b[m];n&&(f[l]=n)}
function e(l,m){var n=b[m];n&&(f[l]=h(n))}
if(!b||g.Wb(b))return a;var f=Object.assign({},a),h=c?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};
Yma=function(a,b){b.CPN=AH(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.er(Error("Video data is null.")),c=null);return c});
b.AD_MT=AH(function(){return GH(a,2)});
b.MT=AH(function(){return GH(a,1)});
b.P_H=AH(function(){return g.yG(a).getPlayerSize().height.toString()});
b.P_W=AH(function(){return g.yG(a).getPlayerSize().width.toString()});
b.PV_H=AH(function(){return g.yG(a).getVideoContentRect().height.toString()});
b.PV_W=AH(function(){return g.yG(a).getVideoContentRect().width.toString()})};
GH=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
Zma=function(a){a.CONN=AH(ab("0"));a.WT=AH(function(){return Date.now().toString()})};
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}};
HH=function(){g.P.call(this);var a=this;this.u={};g.dg(this,function(){return Object.keys(a.u).forEach(function(b){return delete a.u[b]})})};
JH=function(){if(null===IH){IH=new HH;Bl.getInstance().u="b";var a=Bl.getInstance(),b="h"==hl(a)||"b"==hl(a),c=!(uh.getInstance(),!1);b&&c&&(a.F=!0,a.I=new ica)}return IH};
ena=function(a,b,c){a.u[b]=c};
KH=function(){};
LH=function(a){this.u=a};
MH=function(a,b,c){this.u=a;this.C=b;this.B=c;bq()};
NH=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){return b.u=null})};
PH=function(a){return OH(a)&&1==a.getPlayerState(2)};
OH=function(a){a=a.Qb();return void 0!==a&&2==a.getPlayerType()};
QH=function(a){a=a.T();return TB(a)&&!g.hC(a)&&"desktop-polymer"==a.playerStyle};
SH=function(a,b){var c=a.T();LB(c)||"3"!=c.controlsType||(c=g.yG(a),LB(c.app.T()),c.F=!b,RH(c))};
TH=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};
fna=function(a){this.u=a;var b=Bl.getInstance();a=a.Gc();b.D!==a&&((b.D=a)||Sca(b))};
UH=function(a,b,c,d,e,f,h){f=void 0===f?new MH(new LH(d.getVideoData(1)),g.R(d.T().experiments,"enable_server_sent_ping_header_support_for_html5"),g.R(d.T().experiments,"enable_client_page_id_header_for_first_party_pings")):f;h=void 0===h?!1:h;g.B.call(this);this.B=a;this.P=b;this.C=c;this.u=d;this.N=e;this.I=f;this.K=Array.from(this.B.ya.progress||[]);this.K.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.D={Yy:.25,nz:.5,xz:.75};this.F=null;this.W=h};
$H=function(a,b,c){!VH(a)&&0<c&&(WH(a,b),XH(a)?YH(a,b,c):ZH(a,b,c))};
bI=function(a,b){VH(a)||(XH(a)?(WH(a,0,!0),YH(a,b,b)):(WH(a,0,!0),ZH(a,0,0,!0)),aI(a,"complete"))};
WH=function(a,b,c){for(c=void 0===c?!1:c;a.B.P<a.K.length;){var d=cI(a,"progress"),e=a.K[a.B.P];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&(e=e.headers||[],a.I.send(f,dI(a),d,e));a.B.P++}else break}};
ZH=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.D.Yy||d)&&aI(a,"first_quartile");(b>=c*a.D.nz||d)&&aI(a,"midpoint");(b>=c*a.D.xz||d)&&aI(a,"third_quartile")};
eI=function(a,b,c,d){if(null==a.F){if(c<d||1<c-d)return}else if(a.F>d||d>c)return;aI(a,b)};
YH=function(a,b,c){if(0<c&&0<b){var d=g.fI(a.u,a.u.getPresentingPlayerType());g.T(d,16)||g.T(d,32)||(eI(a,"first_quartile",b,c*a.D.Yy),eI(a,"midpoint",b,c*a.D.nz),eI(a,"third_quartile",b,c*a.D.xz))}a.F=b};
gI=function(a,b){for(var c=cI(a,b),d=g.q(a.B.ya[b]||[]),e=d.next();!e.done;e=d.next()){var f=e.value;if(e=f.baseUrl)f=f.headers||[],a.I.send(e,dI(a),c,f)}a.B.N[b]=!0};
aI=function(a,b){a.B.N.hasOwnProperty(b)||gI(a,b)};
hI=function(a,b){return a.B.N.hasOwnProperty(b)};
dI=function(a){for(var b={},c=BH(a.u),d=g.q(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b[e]=c[e].toString();return Object.assign(b,a.C)};
cI=function(a,b){var c=a.P;var d=a.B;if(d.Lo()){var e=TH(b);if(null==e)d={};else{var f;(f=d.fa()())||(f=(f=c.u)&&f.Qb?(f=f.Qb())&&2==f.getPlayerType()?iI(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.u.isFullscreen()},d=Gl(e,d.K,c)):d={}}}else d={};return d?Object.assign({},d):{}};
jI=function(a,b){switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "videowall-companion":case "ads-engagement-panel":if(2==a.u.getPresentingPlayerType())a.u.sendVideoStatsEngageEvent(1,void 0,2);else if(a.N){var c=a.N.u;c&&c()}else g.N(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
XH=function(a){return!g.R(a.u.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.W};
VH=function(a){return XH(a)&&!hI(a,"impression")};
kI=function(a){return XH(a)&&hI(a,"seek")};
mI=function(a,b,c,d,e){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.u=d;this.B=e;this.id=lI(a)};
lI=function(a){return a+(":"+(no.getInstance().u++).toString(36))};
gna=function(a){this.u=a};
g.nI=function(a,b){this.state=a;this.mk=b};
oI=function(a,b){return g.T(a.state,b)&&!g.T(a.mk,b)?1:!g.T(a.state,b)&&g.T(a.mk,b)?-1:0};
g.pI=function(a,b){return 0<oI(a,b)};
qI=function(a,b,c,d,e,f){f=void 0===f?0:f;g.P.call(this);this.J=a;this.Pa=d;this.B=e;this.B.u[b.K]=this;this.B.subscribe("adactiveviewmeasurable",this.QE,this);this.B.subscribe("adfullyviewableaudiblehalfdurationimpression",this.RE,this);this.B.subscribe("adoverlaymeasurableimpression",this.SE,this);this.B.subscribe("adoverlayunviewableimpression",this.TE,this);this.B.subscribe("adoverlayviewableendofsessionimpression",this.UE,this);this.B.subscribe("adoverlayviewableimmediateimpression",this.VE,
this);this.B.subscribe("adviewableimpression",this.WE,this);this.ad=b;this.X=[];this.macros=c;this.I=!1;a=new gna(this.J.T());0===f||1===f&&(a.u.u||g.hC(a.u)||g.VB(a.u)||XB(a.u)||!g.mC)?f=!0:(f=g.te("video-ads"),f=null!=f&&"none"!==tg(f,"display"));this.Y=!f};
rI=function(a){a.Y?a.pd("ui_unstable"):a.Ad()};
tI=function(a,b){vb(a.X,b);sI(a,b,1)};
uI=function(a){a=a.Pa;a.C=FH(a.C,DH(0,"No playable media files can be selected"));aI(a,"error")};
sI=function(a,b,c){0!=b.length&&(b=g.Pc(b,function(d){return new gH(d,c,d.id)}),a.V("onAdUxUpdate",b))};
vI=function(a,b,c,d,e,f,h){qI.call(this,a,b,e,f,h);this.C=this.u=null;this.F=!1;this.P=c;this.N=d};
hna=function(a){if(!g.R(a.J.T().experiments,"only_show_companion_with_video_ad_or_command"))return!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.P)return wI(a),!0;var b=a.J.getVideoData(2);a.F=b?a.N===b.videoId:!1;a.u=function(c,d){a.F=d?a.N===d.videoId:!1};
a.J.addEventListener("videodatachange",a.u);a.C=function(){a.F&&(a.u&&(a.J.removeEventListener("videodatachange",a.u),a.u=null),a.C&&(a.J.removeEventListener("onAdStart",a.C),a.C=null),wI(a))};
a.J.addEventListener("onAdStart",a.C);return!0};
xI=function(){jH.apply(this,arguments)};
yI=function(a,b,c,d){mI.call(this,"action-companion",a,b,c,d)};
zI=function(a,b,c,d,e,f){vI.call(this,a,b,void 0===f?"AD_PLACEMENT_KIND_UNKNOWN":f,b.u.adVideoId,c,d,e);this.D=null;this.K=new yI(this.ad.u,this.macros)};
AI=function(a,b){if(!b)return!1;var c=a.K.renderer;return c&&c.adVideoId==b.videoId};
wI=function(a){tI(a,[a.K])};
ina=function(a){var b={};b.abandon=a.abandonCommands&&sH(a.abandonCommands.commands)||[];return b};
BI=function(a){jH.call(this,a,ina(a))};
CI=function(a,b){mI.call(this,"ad-action-interstitial",a,b)};
DI=function(a,b,c,d,e,f){qI.call(this,a,b,c,d,e,1);this.C=b;this.u=b.u.durationMilliseconds||0;this.Ua=null;this.D=f};
EI=function(a,b){mI.call(this,"ad-choice-interstitial",a,b)};
FI=function(a,b,c,d,e,f){qI.call(this,a,b,c,d,e,1);this.u=b;this.C=f};
GI=function(a){jH.call(this,a);this.B=Vp(this.u.playerVars||"")};
HI=function(){jH.apply(this,arguments)};
II=function(){jH.apply(this,arguments)};
JI=function(){jH.apply(this,arguments)};
KI=function(){jH.apply(this,arguments)};
LI=function(){jH.apply(this,arguments)};
MI=function(){jH.apply(this,arguments)};
NI=function(){jH.apply(this,arguments)};
OI=function(a,b,c,d,e,f,h,l,m,n,p,r,t){this.ba=a;this.K=b;this.P=c;this.W=d;this.B=e;this.N=f;this.u=h;this.Y=l;this.X=m;this.C=n;this.F=p;this.D=r;this.I=t};
PI=function(a,b,c,d,e){qI.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.H(function(){f.pd("load_timeout")},1E4);
g.C(this,this.u);this.C=new g.Pr(this);g.C(this,this.C)};
QI=function(a){mI.call(this,"ad-message",a)};
RI=function(a,b,c,d,e,f,h){qI.call(this,a,b,c,d,e);var l=this;this.C=b;this.K=b.u.durationMs||0;this.F=h;this.N=!1;this.D=this.u=0;this.P=function(){var m=l.J.getProgressState().current;m<l.u?l.Dd():m>l.D&&l.me()}};
SI=function(a,b){mI.call(this,"ads-engagement-panel",a,b)};
TI=function(a,b,c,d,e){qI.call(this,a,b,c,d,e)};
UI=function(a,b,c){mI.call(this,"invideo-overlay",a,b,c);this.u=c};
VI=function(a,b,c,d,e){qI.call(this,a,b,c,d,e);this.u=b};
WI=function(a,b){mI.call(this,"persisting-overlay",a,b)};
XI=function(a,b,c,d,e){qI.call(this,a,b,c,d,e);this.u=b};
YI=function(){mI.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.ZI=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={xu:c.xu},e=d.next())e=e.value,c.xu=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.xu}}(c));
return a};
$I=function(a){return a?g.U(a):null};
aJ=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};
jna=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
bJ=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
mna=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&&(kna(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=$I(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
lna(a,b,c,d))}};
kna=function(a,b,c){var d=$I(b.confirmLabel)||"",e=$I(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push($I(l.value)||"");a.whyThisAdInfo={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};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)}};
lna=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:$I(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=aJ(b.navigationEndpoint);var h=bJ(b[1]),l=[bJ(b[0])];(b=jna(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)};
nna(a,e,d)}}};
nna=function(a,b,c){a.muteAdInfo.goneText=$I(b.title)||"";a.muteAdInfo.questionText=$I(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=$I(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=$I(e.reason)||"";e=aJ(e.endpoint)[0];a.push({label:d,url:e})}};
cJ=function(a,b){var c=new YI;c.adBadgeText="Ad";1<a.B&&(c.adPodPositionInfoString=g.ZI("$AD_INDEX of $ADS_COUNT",{AD_INDEX:String(a.u+1),ADS_COUNT:String(a.B)}));c.adBreakLengthSeconds=a.adBreakLengthSeconds;c.adBreakRemainingLengthSeconds=a.adBreakRemainingLengthSeconds;c.adPodPosition=a.u+1;c.adPodLength=a.B;null!=a.C&&(c.adBreakEndSeconds=a.C/1E3);b&&(c.adVideoId=b);return c};
dJ=function(a,b,c,d,e,f){this.B=a;this.C=b;this.u=BH(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b]=f[b];this.D=c;this.I=d;this.F=e};
fJ=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?eJ(a,e):a.D.Uj()};
b.skipShown=function(){eJ(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
gJ=function(a,b,c){mna(b,c,function(d){eJ(a,d)},function(d){a.sendAdsPing(d)})};
eJ=function(a,b){if(b){var c=hJ(a);Array.isArray(b)?b.forEach(function(d){return a.B.executeCommand(d,c)}):a.B.executeCommand(b,c)}};
hJ=function(a){if(g.R(a.I.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.C;for(var b={},c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
iJ=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}};
ona=function(a,b,c,d,e,f,h){this.u=c;this.B=new dJ(a,b,d,e,f);this.C=h};
pna=function(a,b,c){var d=iJ();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){eJ(a.B,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":fJ(a.B,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":gJ(a.B,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=oH(a.u)&&!d.isSkippable;d.isPostroll=a.u.isPostroll;a.u.isSkippable();b=a.u.C;c=a.u.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.u.I)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.B.sendAdsPing(e)};
d.daiEnabled=a.C;d.remoteSlotsData=a.u.X;return d};
jJ=function(a,b,c,d){mI.call(this,"shopping-companion",a,b,c,d)};
kJ=function(a,b,c,d,e){qI.call(this,a,b,c,d,e)};
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(){lJ.apply(this,arguments)};
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(){lJ.apply(this,arguments)};
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(){lJ.apply(this,arguments)};
VJ=function(){lJ.apply(this,arguments)};
qna=function(a){var b={};if(!a.questions||0===a.questions.length)return b;a=(a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer||a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon;return(a=a.instreamAdPlayerOverlay&&a.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)?a:b};
sna=function(a,b,c,d,e,f){this.u=new dJ(a,b,c,d,e,rna(f))};
tna=function(a,b){var c=iJ();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){eJ(a.u,e)};
var d=qna(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":fJ(a.u,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":gJ(a.u,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.u.sendAdsPing(e)};
return c};
rna=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=AH(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=AH(a);return b};
XJ=function(a,b,c){g.P.call(this,!0);var d=this;this.I=b;this.F=c;this.B=a;this.Ua=new g.Tm(200);this.Ua.ra("tick",function(){var e=Date.now(),f=e-d.D;d.D=e;d.u+=f;d.u>=d.B&&(d.u=d.B,d.Ua.stop());e=d.u/1E3;d.F&&d.F.Ec(e);WJ(d,{current:e,duration:d.B/1E3})});
g.C(this,this.Ua);this.u=0;this.C=null;g.dg(this,function(){d.C=null});
this.D=0};
WJ=function(a,b){a.I.va("onAdPlaybackProgress",b);a.C=b};
YJ=function(a){mI.call(this,"survey",a)};
ZJ=function(a,b,c,d,e,f,h){qI.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.C=new g.Pr;g.C(this,this.C);this.C.R(this.J,"resize",function(){450>g.yG(l.J).getPlayerSize().width&&(g.Rr(l.C),l.Dd())});
this.K=0;this.F=h(this,function(){return""+(Date.now()-l.K)});
if(this.u=g.VB(a.T())?new XJ(1E3*b.B,a,f):null)g.C(this,this.u),this.C.R(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.D.u,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,eJ(l.F.u,m&&m.timeoutCommands)):g.dr(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
$J=function(a,b){mI.call(this,"survey-interstitial",a,b)};
aK=function(a,b,c,d,e){qI.call(this,a,b,c,d,e,1);this.u=b};
bK=function(a){mI.call(this,"ad-text-interstitial",a)};
cK=function(a,b,c,d,e,f){qI.call(this,a,b,c,d,e);this.C=b;this.u=b.u.durationMilliseconds||0;this.Ua=null;this.D=f};
dK=function(a,b){var c=void 0===c?!0:c;var d=g.L("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.yd(window.location.href);e&&d.push(e);e=g.yd(a);if(g.nb(d,e)||!e&&pc(a,"/"))if(g.uo("autoescape_tempdata_url")&&(d=document.createElement("a"),g.id(d,a),a=d.href),a&&(d=Ad(a),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.ks()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+qd(d).toString(36),c=c?g.Hd(c):"",g.vq(d,c,f||5))}else f=b,c="ST-"+qd(d).toString(36),
f=f?g.Hd(f):"",g.vq(c,f,5)};
g.eK=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.Ld(a,b)+c;a=a instanceof g.Fc?a:g.Lc(a);d.href=g.Gc(a)};
g.fK=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.L("EVENT_ID");d&&(b.ei||(b.ei=d));b&&dK(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.eK(a))};
g.gK=function(a,b,c){c&&dK(a,c);c=g.Kc(a);c=g.Gc(c);a!=c&&g.Eo(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||qd(a).toString(36))};
hK=function(a){a=void 0===a?null:a;mI.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
iK=function(a){a=void 0===a?null:a;mI.call(this,"ad-title");this.videoTitle=a};
jK=function(a){a=void 0===a?null:a;mI.call(this,"advertiser-name");this.channelName=a};
kK=function(a,b,c){mI.call(this,"player-overlay",a,{},c);this.C=b;this.u=c};
lK=function(a){mI.call(this,"skip-button",a)};
mK=function(a){mI.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Zb(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"Visit advertiser's site"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
nK=function(a,b,c,d,e,f,h,l,m,n,p){qI.call(this,a,b,c,d,e,1);var r=this;this.ba=!0;this.F=n;this.u=b;this.C=h;this.fa=new g.Pr(this);g.C(this,this.fa);this.D=new g.H(function(){r.pd("load_timeout")},1E4);
g.C(this,this.D);this.ka=!g.R(a.T().experiments,"bulleit_unstarted_event_killswitch");this.P=!1;this.ha=m(this);this.ea=f;this.K=l;this.N=p;this.W=!1};
una=function(a){if(a.K&&g.R(a.J.T().experiments,"enable_topsoil_wta_for_halftime")){var b=a.u.D,c=b.D,d=b.C,e=b.u;b=b.F;if(void 0===c)g.dr(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.dr(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.u.B)}};
qK=function(a,b){if(null!==a.F&&a.W){a.W=!1;for(var c=oK(a),d=g.q(a.F.listeners),e=d.next();!e.done;e=d.next())if(e=e.value,e.u&&e.u.layoutId===c){var f="adabandoned"===b?"abandoned":"normal";pK(e.C(),e.B,e.u,f);e.B=null;e.u=null}else $G("Received AD_ENDED for unknown layout")}};
rK=function(a){return(a=a.J.getVideoData(2))?a.clientPlaybackNonce:""};
oK=function(a){if(a=a.u.u.elementId)return a;g.dr(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
uK=function(a){var b=a.u.u,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.J.T();if(g.hC(d)&&!c.skipOrPreviewRenderer){var e=a.J.getDuration(2);isFinite(e)&&33<e&&!a.u.isSkippable()&&!g.hC(d)&&g.dr(new Cq("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.u.isSkippable()&&!oH(a.u)?d.skipAdRenderer=sK(a):d.adPreviewRenderer=tK(a,!1,oH(a.u));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Wb(c.skipOrPreviewRenderer)&&
g.dr(new Cq("IAPOR.skipOrPreview was filled, but empty.",b));return c};
sK=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=tK(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="Skip Ad";a.skipButtonRenderer=c;return b};
tK=function(a,b,c){var d=a.J.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.ZI("Your video will begin in $TIME_REMAINING",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.ZI("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.ZI("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=cC(a.J.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
vna=function(a){function b(x,y){var D=a.SP,E=Object.assign({},{});E.FINAL=AH(ab("1"));E.SLOT_POS=AH(ab("0"));return FH(D,EH(E),y)}
function c(x){return null==x?{create:function(){return null}}:{create:function(y,D,E){var G=b(y,D);
D=a.gq(y,G);y=x(y,G,D,E);g.C(y,D);return y}}}
var d=c(function(x,y,D){return new VI(a.J,x,y,D,a.We)}),e=c(function(x,y,D){return new kJ(a.J,x,y,D,a.We)}),f=c(function(x,y,D){return new DI(a.J,x,y,D,a.We,a.Ea)}),h=c(function(x,y,D){return new XI(a.J,x,y,D,a.We)}),l=c(function(x,y,D,E){return new zI(a.J,x,y,D,a.We,E)}),m=c(function(x,y,D){return new cK(a.J,x,y,D,a.We,a.Ea)}),n=c(function(x,y,D){return new aK(a.J,x,y,D,a.We)}),p=c(function(x,y,D){return new FI(a.J,x,y,D,a.We,a.Ea)}),r=c(function(x,y,D){return new RI(a.J,x,y,D,a.We,a.Ea,a.cj)}),
t=c(function(x,y,D){return new PI(a.J,x,y,D,a.We,a.Ea)}),w=c(function(x,y,D){return new TI(a.J,x,y,D,a.We)});
this.u=new OI({create:function(x,y){var D=FH(b(x,y),EH(ana(x))),E=a.gq(x,D),G=new nK(a.J,x,D,E,a.We,a.IH,a.Ea,a.daiEnabled,function(K){return new ona(a.Ea,D,x,K,a.J,a.lh,a.daiEnabled)},a.dj,a.Pf);
g.C(G,E);return G}},d,e,{create:function(x,y){var D=a.gq(x,y),E=new ZJ(a.J,x,y,D,a.We,a.Ea,function(G,K){return new sna(a.Ea,y,G,a.J,a.lh,K)});
g.C(E,D);return E}},f,h,l,m,n,p,r,t,w)};
vK=function(a,b,c){this.B=a;this.u={};this.D=void 0===b?!1:b;this.C=void 0===c?!1:c};
wna=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}var d=Math.max(a.startSecs,0);return{NH:new On(d,c),kJ:new kt(d,c-d,a.context,a.identifier,a.event,a.u)}};
wK=function(){this.u=[]};
xK=function(a,b,c){var d=g.Ab(a.u,b);if(0<=d)return b;b=-d-1;return b>=a.u.length||a.u[b]>c?null:a.u[b]};
xna=function(a){this.B=new wK;this.u=new vK(a.OH,a.aQ,a.OP)};
yK=function(){jH.apply(this,arguments)};
zK=function(a){this.u=a};
AK=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
CK=function(a,b){var c=a.u;g.um(function(){return BK(c,b,1)})};
yna=function(a,b,c){this.C=a;this.u=b;this.B=c;this.D=a.getCurrentTime()};
Ana=function(a,b){var c=void 0===c?Date.now():c;if(a.B)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,h=a.u;DK({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:zna(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:h}});"unknown"===e.event&&EK("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.u);e=e.startSecs+e.u/1E3;e>a.D&&a.C.getCurrentTime()>e&&EK("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.u)}};
Bna=function(a,b,c){a.B&&DK({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
FK=function(a,b){a.B&&DK({driftRecoveryInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,driftRecoveryMs:b.driftRecoveryMs.toString(),breakDurationMs:Math.round(b.jC-b.BE).toString(),driftFromHeadMs:Math.round(1E3*xG(a.C)).toString()}})};
Cna=function(a,b){a.B&&DK({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.zH}})};
EK=function(a,b){DK({daiStateTrigger:{errorType:a,contentCpn:b}})};
DK=function(a){g.Fq("adsClientStateChange",a)};
zna=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"}};
GK=function(a){this.J=a;this.preloadType="2";this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.D=this.u=this.Vg=!1;this.adFormat=null;this.clientName=(a=!g.R(this.J.T().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.J.T().deviceParams.c:g.L("INNERTUBE_CLIENT_NAME",void 0);this.clientVersion=a?this.J.T().deviceParams.cver:g.L("INNERTUBE_CLIENT_VERSION",void 0);this.F=a?this.J.T().deviceParams.cbrand:"";this.I=a?this.J.T().deviceParams.cmodel:"";this.playerType=
"html5";this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="vod"};
HK=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.B="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.Vg=!1;a.u=!1};
IK=function(a){a.u=!1;zA("ad_to_video",["pbresume"],void 0,void 0)};
Dna=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"1";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"2";case "AD_PLACEMENT_KIND_END":return"3";default:return"unknown"}};
JK=function(){};
g.KK=function(a){return(a=Ena[a.toString()])?a:"LICENSE"};
g.LK=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
MK=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.LK(b,c)};
NK=function(a,b){return MK(a,a.state|b)};
OK=function(a,b){return MK(a,a.state&~b)};
PK=function(a,b,c){return MK(a,(a.state|b)&~c)};
g.T=function(a,b){return!!(a.state&b)};
g.QK=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.RK=function(a){return g.T(a,8)&&!g.T(a,2)&&!g.T(a,1024)};
DD=function(a){return a.Cb()&&!g.T(a,16)&&!g.T(a,32)};
Fna=function(a){return g.T(a,8)&&g.T(a,16)};
g.SK=function(a){return g.T(a,1)&&!g.T(a,2)};
TK=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,64)?-1:g.T(a,1)&&!g.T(a,32)?3:g.T(a,8)?1:g.T(a,4)?2:-1};
UK=function(a,b,c,d,e,f,h,l){g.P.call(this);this.wd=a;this.J=b;this.u=d;this.F=this.u.B instanceof jH?this.u.B:null;this.B=null;this.X=!1;this.K=c;this.W=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ba=0;this.fa=!1;this.Kg=e;this.tm=f;this.Cj=h;this.Y=!1;this.daiEnabled=l};
VK=function(a){if(OH(a.J)){var b=a.J.getVideoData(2);(b=a.u.P[b.Ub]||null)?(!a.B||a.B&&a.B.ad!==b)&&a.Ad(b):a.Ws()}else 1===a.J.getPresentingPlayerType()&&a.B&&a.Ws()};
WK=function(a){(a=a.baseUrl)&&g.Vs(a,void 0,nn(a))};
XK=function(a,b){var c=a.K,d=a.u.u.u,e=a.UA(),f=a.WA(),h=a.isLiveStream();HK(c);var l=c.J.getVideoData(1),m=c.J.getVideoData(2);l&&(c.contentCpn=l.clientPlaybackNonce,c.videoId=l.videoId);m&&(c.adCpn=m.clientPlaybackNonce,c.adVideoId=m.videoId,c.adFormat=m.adFormat);c.B=d;0>=f?HK(c):(c.actionType=c.C?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",c.videoStreamType=h?"live":"vod",c.D=e+1===f,c.Vg=!0,c.Vg&&(vA("c",c.clientName,c.actionType),vA("cver",c.clientVersion,c.actionType),g.R(c.J.T().experiments,
"html5_ad_csi_tracker_initialization_killswitch")||(vA("cbrand",c.F,c.actionType),vA("cmodel",c.I,c.actionType)),vA("yt_pt",c.playerType,c.actionType),vA("yt_pre",c.preloadType,c.actionType),vA("yt_abt",Dna(c.B),c.actionType),c.contentCpn&&vA("cpn",c.contentCpn,c.actionType),c.videoId&&vA("docid",c.videoId,c.actionType),c.adCpn&&vA("ad_cpn",c.adCpn,c.actionType),c.adVideoId&&vA("ad_docid",c.adVideoId,c.actionType),vA("yt_vst",c.videoStreamType,c.actionType),c.adFormat&&vA("ad_at",c.adFormat,c.actionType)))};
ZK=function(a,b){b=void 0===b?!1:b;YK(a.wd,a.u.u,a);b||Dr("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED");a.daiEnabled&&!a.u.N&&(Gna(a,a.XA()),a.u.N=!0)};
Gna=function(a,b){for(var c=$K(a),d=a.u.u.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=aL(h);e.push({externalVideoId:h.C,originalMediaDurationMs:(1E3*h.B).toString(),trimmedMediaDurationMs:(parseInt(h.u.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.D.D=a.u.u.start;h.D.C=c;if(!Hna(a,h,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+aL(p)},0);
Bna(a.Kg,Qma(a.u.u),c);Cna(a.Kg,{cueIdentifier:a.u.C&&a.u.C.identifier,zH:e})};
aL=function(a){var b=1E3*a.B;return 0<parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10):b};
$K=function(a){var b=a.u.u.end;a=xK(a.tm,a.u.u.start,b);return Math.min(b,null===a?Infinity:a)};
Hna=function(a,b,c,d){var e=a.Cj.create(b,EH(CH(a.u)),a.u.u.u);c=e.JA(c,d);g.eg(e);if(!c)return!1;a.u.P[c]=b;return!0};
Ina=function(a){if(a.fa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.A()/1E3)-a.ba;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
bL=function(a,b,c,d){this.u=a;this.B=b;this.C=c;this.D=d};
cL=function(){var a=this;this.u=[];g.uo("screen_manager_wait_for_csn")&&(g.uo("web_lifecycles")&&Jna[0].push(this.B),ws("loggingScreenCreated",function(){a.B()}),ws("clearWaitForNavigationJobs",function(){a.u=[]}))};
dL=function(){cL.u||(cL.u=new cL);return cL.u};
eL=function(a,b){var c=g.es(b);var d=g.ks(void 0),e=g.is(void 0);d&&e&&g.Bs(a.client,d,e,[c])};
Kna=function(a){var b=dL();g.Na("midTransition")||"UNDEFINED_CSN"===g.ks()?b.u.push(a):a()};
fL=function(a,b,c,d,e,f){g.P.call(this);this.F=a;this.B=b;this.C=c;this.I=d;this.u=e;this.D=f;Lna(this)};
Mna=function(a,b){var c={isEmpty:!0,VB:!1,Gg:[]};if(!b)return c;b&&b.trackingParams&&eL(dL(),b.trackingParams);if(b&&b.adThrottled)return c.VB=!0,c;var d=b.playerAds;if(!d||!d.length)return c;d=d.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(g.ob(d))return c;if(0<a.u.u.end){var e=a.u.u.end.toString();d.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}c.Gg=d;
c.isEmpty=!1;return c};
Lna=function(a){[a.u.Y,a.u.u].filter(function(b){return null!=b}).forEach(function(b){YK(a.B,b,a)});
Dr("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
gL=function(){yK.apply(this,arguments)};
hL=function(a){return a.length?g.Pc(a[0].loggingUrls||[],function(b){return b.baseUrl}):[]};
iL=function(a,b,c,d,e,f,h){qI.call(this,b,d.B,e,f,h);this.N=c;this.u=d;this.D=d.B;this.F=a;this.K=this.C=null;a=this.u.u;a.visible=!1;YK(this.F,a,this);Dr("ADS_CLIENT_EVENT_TYPE_ADPLACEMENT_SCHEDULED")};
kL=function(a,b,c,d,e,f,h,l){UK.call(this,a,b,c,d,e,f,h,l);this.D=d.B;this.I=-1;this.N=this.C=null;this.P=jL(this.Gr())};
lL=function(a){a.I++;var b=a.Gr();b?a.Ad(b):a.Kj()};
jL=function(a){return a?Nna.some(function(b){return a instanceof b}):!1};
Ona=function(a){this.u=new bL(function(b){b=new UK(a.wd,a.J,a.vA(),b,a.Kg,a.tm,a.Cj,a.daiEnabled);ZK(b);return b},function(b){return new fL(a.Du,a.wd,a.J,a.Bu,b,a.Kg)},function(b){var c=a.gq(b.B);
b=new iL(a.wd,a.J,a.JH,b,a.yQ,c,a.We);g.C(b,c);return b},function(b){b=new kL(a.wd,a.J,a.vA(),b,a.Kg,a.tm,a.Cj,a.daiEnabled);
ZK(b);return b})};
mL=function(a){yK.call(this,a);g.Pc((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.he(b.width,b.height)})};
nL=function(a,b){qH.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Fq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),rH(this,new HI(a.adStart.adMessageRenderer)));if(a.linearAds)for(var c=[],d=g.q(a.linearAds),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer?(e=b(e.instreamVideoAdRenderer),rH(this,e),c.push(e.B)):e.adActionInterstitialRenderer?(e=new BI(e.adActionInterstitialRenderer),rH(this,e)):e.adIntroRenderer&&(e=new GI(e.adIntroRenderer),
rH(this,e),this.B=1),this.u.filter(function(f){return f instanceof mH}).forEach(function(f,h){if(f instanceof mH){var l=new kH(h,c);
f.D=l}})};
oL=function(a,b){qH.call(this);var c=a.persistingOverlay;this.C=c&&c.persistingAdOverlayRenderer?new KI(c.persistingAdOverlayRenderer):null;rH(this,Pna(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new wH(c.instreamSurveyAdRenderer);break a}}c=null}rH(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.B=1,c=new BI(c.adActionInterstitialRenderer)):c=null:c=null;rH(this,c)};
Pna=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.B=1,new BI(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new NI(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.Fq("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new HI(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new MI(b.surveyTextInterstitialRenderer):null};
pL=function(a,b,c){this.C=a;this.u=b;this.B=c};
qL=function(a){var b=new LH(a.pA),c=new MH(b,a.HA,a.GA);return{gI:function(){return b},
Ov:function(){return c}}};
rL=function(a){this.u=a};
sL=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.u.create(e,f):null;return new xH(b,c,h,d)}catch(l){g.N(l)}};
Qna=function(a){var b=new rL(a.tH);return{TA:function(){return b}}};
tL=function(a){g.B.call(this);this.u=a;this.C=new fna(a.J);this.B=new NH(a.J);g.C(this,this.B)};
Rna=function(a){return function(){return new GK(a.u.J)}};
uL=function(a){return function(b,c){return new UH(b,a.C,c,a.u.J,a.B,a.u.lh,a.u.daiEnabled)}};
vL=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){return b.u=null});
var c=Or(a);if(c){var d=function(){b.u&&b.u(!!Mr())};
this.B.addEventListener(c,d);g.dg(this,function(){b.B.removeEventListener(c,d)})}};
wL=function(a){g.B.call(this);this.u=a};
Sna=function(a){var b=window.document;return g.hC(a.T())?new vL(b):new wL(a)};
xL=function(a){g.B.call(this);this.u=new yna(a.J,a.contentCpn,a.daiEnabled)};
zL=function(a){yL=a&&a.data};
BL=function(a){AL=a&&a.data};
DL=function(a){CL=a&&a.data};
FL=function(a){EL=a&&a.data};
GL=function(){EL=CL=yL=null};
KL=function(){g.B.call(this);var a=this;this.Ic=new Map;this.u=new Map;HL(this,"commandExecutorCommand",function(b,c,d){b=b.commands;b=void 0===b?[]:b;c=void 0===c?{}:c;d=void 0===d?{}:d;a.la();b=g.q(b);for(var e=b.next();!e.done;e=b.next())a.executeCommand(e.value,c,d)});
IL(this,"commandExecutorCommand",function(b,c){var d=b.commands;d=void 0===d?[]:d;a.la();var e=[],f=[],h=g.q(d);for(d=h.next();!d.done;d=h.next())d=d.value,d.hasOwnProperty("pingingEndpoint")||d.hasOwnProperty("adPingingEndpoint")?e.push(d):f.push(d);e=g.q(e);for(d=e.next();!d.done;d=e.next())JL(a,d.value,c);f=g.q(f);for(d=f.next();!d.done;d=f.next())JL(a,d.value,c)});
HL(this,"clickTrackingParams",function(){});
IL(this,"clickTrackingParams",function(){})};
Tna=function(a,b){HL(a,b.Lh(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
Una=function(a,b){IL(a,b.Lh(),function(c,d){b.Si(c,d)})};
HL=function(a,b,c){a.la();a.Ic.get(b)&&g.N(Error("Extension name "+b+" already registered"));a.Ic.set(b,c)};
IL=function(a,b,c){a.la();a.u.get(b)&&g.N(Error("Extension name "+b+" already registered"));a.u.set(b,c)};
JL=function(a,b,c){a.la();b.loggingUrls&&LL(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;ML.hasOwnProperty(d)||LL(a,d,e,c)}};
NL=function(a,b,c,d,e){e=void 0===e?{}:e;(a=a.Ic.get(b))||new Cq("Unhandled field",b);try{a(c,d,e)}catch(f){g.N(f)}};
LL=function(a,b,c,d){(a=a.u.get(b))||new Cq("Unhandled field",b);try{a(c,d)}catch(e){g.N(e)}};
PL=function(a,b,c,d,e){g.P.call(this);var f=this;this.u=b;this.oa=null;this.Jb=c;this.fa=e.Pf;this.ea=e.pk;c=this.u.getVideoData(1).getPlayerResponse()||{};this.C=!OL(this.fa)&&c.playerConfig&&c.playerConfig.daiConfig&&(c.playerConfig.daiConfig.enableDai||c.playerConfig.daiConfig.enableServerStitchedDai)||!1;this.kb=Sma({GV:3E4,NV:QH(b),J:b}).lI();this.B=this.D=null;this.F=new Map;c=this.u.T().experiments;var h=qL({pA:b.getVideoData(1),HA:g.R(c,"enable_server_sent_ping_header_support_for_html5"),
GA:g.R(c,"enable_client_page_id_header_for_first_party_pings")}),l=new tL({lh:h.Ov(),J:b,daiEnabled:this.C});g.C(this,l);this.I=new Set;this.ka=-1;this.ha=[];this.W=null;this.P=new Map;this.X=new Map;this.Y=new Set;this.K=new g.Pr(this);g.C(this,this.K);this.N=new g.Pr(this);g.C(this,this.N);this.ya=this.Za=this.xa=!1;this.ba=g.hC(b.T());this.Ob=d;d=new xL({contentCpn:this.u.getVideoData(1).clientPlaybackNonce,BV:this,daiEnabled:this.C,J:this.u});g.C(this,d);this.wb=d.u;d=new xna({OH:this,aQ:g.R(c,
"html5_recognize_predict_start_cue_point"),OP:g.R(c,"html5_persist_cue_range_killswitch")});this.Ia=d.u;this.Ma=d.B;var m=cc(EH(BH(this.u)));e=new vna({Ea:this,IH:l.B,We:JH(),lh:h.Ov(),J:this.u,SP:m,gq:uL(l),daiEnabled:this.C,dj:e.dj,Pf:this.fa,cj:e.cj});this.Mb=(new Ona({Bu:this.Jb,Cj:e.u,Du:a,wd:this,JH:this.kb,We:JH(),vA:Rna(l),Kg:this.wb,tm:this.Ma,J:this.u,yQ:m,gq:function(n){return uL(l)(n,m)},
daiEnabled:this.C})).u;this.Fa=Qna({tH:new pL(new Tma(b),c,function(n){return f.X.has(n)?f.X.get(n):null})}).TA();
this.Ra=Sna(this.u);g.C(this,this.Ra);this.Rb=g.pC(this.u.T())?g.R(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.R(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
WL=function(a,b){var c=a.u.getVideoData(1);if(c.Pu||g.L("SERVED_VIA_SPF_HISTORY"))g.R(a.u.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.ea.u():QL(a);else{if(QH(a.u)){var d=RL(a.u);d.addEventListener("updateKevlarOrC3Companion",zL);d.addEventListener("onPlaShelfInfoCardsReady",BL);d.addEventListener("updateEngagementPanelAction",DL);d.addEventListener("changeEngagementPanelVisibility",FL);window.addEventListener("yt-navigate-start",GL)}a.K.R(a.u,"applicationplayerstatechange",
a.uM);a.K.R(a.u,g.rD("ad"),a.it,a);a.K.R(a.u,g.sD("ad"),a.WM,a);a.K.R(a.u,"aduxclicked",a.gM);a.K.R(a.u,"videodatachange",a.rP);d=Vna(a,b);d=SL(a,d);d=TL(a,d);0<d.length&&UL(a,d);a.W&&(c.subscribe("cuepointupdated",a.lx,a),a.C&&c.ma&&a.lx(Kz(c.ma,0)));VL(a.fa)||QL(a);g.um(a.SQ,a)}};
Vna=function(a,b){return b.filter(function(c){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)?(!a.C&&g.hC(a.u.T())&&a.u.getVideoData(1).qg()||(a.W=c),!1):!0})};
SL=function(a,b){a.P=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.P.set(c.elementId,c),!1):!0})};
TL=function(a,b){a.X=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.X.set(c.hostElementId,c),!1):!0})};
XL=function(a,b){return b.every(function(c){c=a.F.get(c);return null==c?(g.N(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof fL?!1:c instanceof UK?!c.Sh():!0})};
QL=function(a){var b=Wna(a);if(0<b.length){VL(a.fa)||XL(a,b)&&a.ea.u();var c=g.Q(a.u.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.ba&&g.VB(a.u.T())?(c=new g.H(function(){YL(a,b)},c),g.C(a,c),c.start()):g.um(function(){YL(a,b)})}else VL(a.fa)||a.ea.u()};
Xna=function(a,b){if(!b)return{};var c=!!a.B&&a.B||null;c?(c=c.B,c=c.ad.Lo()?cI(c.Pa,b):{}):c={};return c};
Wna=function(a){for(var b=ZL(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.I["delete"](d.value);return b};
ZL=function(a){var b=[];a=g.q(a.I);for(var c=a.next();!c.done;c=a.next())c=c.value,dH(c)&&b.push(c);return b};
Zna=function(a,b,c){c=void 0===c?null:c;b=a.Fa.create(b,Yna(a),a.ha.length,c);a.ha=a.ha.concat(b);return b};
YL=function(a,b){if(!a.la())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.it(d.value)};
UL=function(a,b,c){c=void 0===c?null:c;$na(b);b=Zna(a,b,c);return 0==b.length?null:b.map(function(d){return a.Mb.create(d)})};
bM=function(a,b){b.Om()?(g.eg(a.D),a.D=b):($L(a,b),b.UB()&&aM(a,b))};
$L=function(a,b){a.D&&a.D.hp().start<b.hp().start&&(g.R(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads")&&b.Sh()?cM(a):b.tw()&&cM(a))};
cM=function(a){var b=a.kb,c=b.u.getVideoData(1);b.u.va("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId});g.eg(a.D);a.D=null};
aM=function(a,b){a.B&&dM(a,a.C);a.B=b;b.Sh()&&eM(a)};
eM=function(a){a.xa||(a.N.R(a.u,"presentingplayerstatechange",a.yL),a.N.R(a.u,"internalAbandon",a.WL),a.N.R(a.u,"progresssync",a.wP),a.N.R(a.u,"onVolumeChange",a.yP),a.N.R(a.Ra,"fullscreentoggled",a.jN),a.xa=!0);g.I(a.u.getRootNode(),"ad-showing");a.C||(g.I(a.u.getRootNode(),"ad-interrupting"),g.R(a.u.T().experiments,"enable_html5_teal_ad_badge")&&QH(a.u)&&g.I(a.u.getRootNode(),"ad-teal-design"),g.fM(a.u.app,2))};
dM=function(a,b,c){var d=!!a.B&&a.B||null,e=d&&d.Sh()&&(OH(a.u)||a.C);d=b&&d&&d.reset()||null;a.B&&gM(a,a.B);a.B=null;a.ka=-1;e&&hM(a,c);a.ya||a.ea.u();b&&d&&(d.hp().B=!1,ZK(d,!0))};
hM=function(a,b){g.Rr(a.N);a.xa=!1;g.Bn(a.u.getRootNode(),"ad-showing");a.C||(a.Rb?(a.ya||a.ea.u(),iM(a),a.u.cueVideoByPlayerVars({},2)):(a.u.cueVideoByPlayerVars({},2),iM(a)),g.Bn(a.u.getRootNode(),"ad-interrupting"),g.R(a.u.T().experiments,"enable_html5_teal_ad_badge")&&g.Bn(a.u.getRootNode(),"ad-teal-design"));b&&b(a.u)};
iM=function(a){if(a.Za)!a.ba&&g.VB(a.u.T())&&(g.R(a.u.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.R(a.u.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.jM(a.u,2);else if(g.jM(a.u,2),!a.ba){var b=g.fI(a.u,1);g.T(b,4)&&!g.T(b,2)&&a.u.playVideo()}};
YK=function(a,b,c){if(b instanceof cH){if(a.ba&&eH(b)&&g.T(g.fI(a.u,1),64)&&!a.C){var d=1E3*a.u.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.F.has(b)?g.N(Error(b.toString()+" has already been seen")):(a.I.add(b),a.F.set(b,c),dH(b)||g.kM(a.u,[b],1))}else g.N(Error("Should use AdCueRange instead of CueRange"))};
Yna=function(a){var b=1E3*a.u.getDuration(1);return new bH(b,1E3*a.u.getCurrentTime(1)||0,g.R(a.u.T().experiments,"enable_upg_processed_dvr_dai")?a.C:a.u.getVideoData(1).qg(),g.R(a.u.T().experiments,"html5_recognize_predict_start_cue_point"))};
BK=function(a,b,c){g.lM(a.u.app,b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.I["delete"](c),a.F["delete"](c)};
gM=function(a,b){for(var c=a.F,d=g.q(c),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;if(e.next().value==b){c["delete"](f);break}}g.eg(b)};
pM=function(a,b){var c=a.u.app;1===b&&(c.K.tick("vr"),c.Fa||(c.Fa=ys(IA,c.FD,c)),mM(c.I),nM(c.K,c.I.getVideoData(),oM(c)));var d=c.u;(g.pC(d)&&d.C||g.WB(d))&&(c.Gc()||c.B.va("onAdStateChange",b));switch(b){case 1:a.ka=1;break;case 0:a.ka=0}};
$na=function(a){for(var b=0;b<a.length;b++)Dr("ADS_CLIENT_EVENT_TYPE_ADPLACEMENTRENDERER_RECEIVED")};
qM=function(a){g.Pr.call(this);this.u=a;this.R(this.u,"onAdUxUpdate",this.N)};
rM=function(a,b,c,d){mI.call(this,"image-companion",a,b,c,d)};
sM=function(a){qM.call(this,a)};
tM=function(a){g.B.call(this);this.u=a};
uM=function(a){tM.call(this,!0);this.B=a};
aoa=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.adSafetyReason||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.oa});
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 zp().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
vM=function(a,b){g.B.call(this);var c=this;this.C=[];this.K=!1;this.B=0;this.F=this.I=this.D=!1;this.W=null;var d=(0,g.z)(a,b);this.u=new g.H(function(){return d(c.W)},300);
g.C(this,this.u);this.P=this.N=Infinity};
wM=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
yM=function(){var a="ytp-id-"+xM.toString();xM++;return a};
g.zM=function(a){g.B.call(this);this.ya={};this.Ob={};this.element=this.createElement(a)};
AM=function(a,b,c,d){if("{{"===d.substr(0,2))a.Ob[d]=[b,c];else return d};
boa=function(a,b){var c=[];if(!b)return c;for(var d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=e){var f=e.nodeType;1===f||3===f?c.push(e):e&&"string"===typeof e.G?c.push(a.createElement(e)):e.element?c.push(e.element):"string"===typeof e&&-1!==e.indexOf("\n")?e.split("\n").forEach(function(h,l){0<l&&c.push(g.Fe("BR"));c.push(g.Ge(h))}):c.push(g.Ge(e))}return c};
BM=function(a,b,c,d){if("child"===c){g.He(b);var e;void 0===d?e=void 0:!Array.isArray(d)||d&&"string"===typeof d.G?e=[d]:e=d;c=boa(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.F(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Gc(g.Kc(a))),b.setAttribute(c,a))};
g.V=function(a){g.zM.call(this,a);this.Wa=!0;this.N=!1;this.listeners=[]};
g.CM=function(a,b){b?a.show():a.hide()};
g.DM=function(a){g.V.call(this,a);this.ba=new g.P;g.C(this,this.ba)};
W=function(a,b,c,d,e,f){f=void 0===f?null:f;g.DM.call(this,c);this.api=a;this.Ea=b;this.macros={};this.componentType=d;this.K=null;this.jb=f;this.u=e;this.Fa=null;this.Za=new uM(this.element);g.C(this,this.Za);this.Ra=this.R(this.element,"click",this.onClick);this.fa=[];this.Y=new vM(this.onClick,this);g.C(this,this.Y);this.kb=!1;this.W=null};
EM=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Eo(Error("Got null or undefined adText object")),"";var c=g.pd(a.text);if(!a.isTemplated)return c;if(null==b)return g.Eo(Error("Missing required parameters for a templated message")),c;for(var d=g.q(Object.entries(b)),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;c=c.replace("{"+e+"}",f)}return c};
FM=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].url)?"":g.pd(a.thumbnails[0].url)};
coa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.he(0,0):new g.he(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
IM=function(a,b,c){g.GM(a.api,b,a);g.HM(a.api,b,c)};
LM=function(a,b,c){g.JM(a.api,b)&&g.KM(a.api,b,c,a.u)};
MM=function(a,b){b=void 0===b?null:b;var c=a.api.T();!(0<a.fa.length)&&c.u&&g.R(a.api.T().experiments,"use_touch_events_for_bulleit_mweb")&&(EB?0:"ontouchstart"in document.documentElement&&($f()||Zf()))&&(a.Bb(a.Ra),b&&a.Bb(b),a.fa=[a.R(a.element,"touchstart",a.FL,a),a.R(a.element,"touchmove",a.EL,a),a.R(a.element,"touchend",a.DL,a)])};
NM=function(a){return a&&a.thumbnails&&!g.ob(a.thumbnails||null)&&a.thumbnails[0].url?g.pd(a.thumbnails[0].url):""};
OM=function(a,b,c,d,e){e=void 0===e?!1:e;W.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,void 0===d?null:d);this.B=e;this.hide()};
g.PM=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{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"}}]}};
QM=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",U:{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.RM=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{G:"path",U:{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.SM=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},S:[{G:"path",U:{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"}}]}};
TM=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",U:{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"}}]}};
UM=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",nb:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
VM=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",nb:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.WM=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{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"}}]}};
XM=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{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"}}]}};
YM=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",U:{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"}}]}};
ZM=function(){return{G:"svg",U:{viewBox:"0 0 24 24"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{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"}}]}};
$M=function(){return{G:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{G:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",U:{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.aN=function(){return{G:"svg",U:{viewBox:"0 0 24 24"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{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"}}]}};
bN=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",U:{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"}}]}};
cN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},S:[{G:"path",nb:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
dN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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.eN=function(){return{G:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{G:"path",U:{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"}}]}};
fN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
gN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{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"}}]}};
hN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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"}}]}};
iN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.jN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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.kN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{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"}}]}};
lN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
mN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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"}}]}};
nN=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{G:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},S:[{G:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",U:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},
{G:"path",U:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.WM();case "INFO_OUTLINE":return $M();case "REMOVE_CIRCLE":return{G:"svg",
U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{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 dN();case "LIKE":return g.aN();case "DISLIKE":return ZM();default:return g.er(new Cq("Unexpected icon:",a)),null}};
oN=function(a,b,c,d,e,f,h){d=void 0===d?[]:d;f=void 0===f?!1:f;d={G:"button",ia:["ytp-ad-button"].concat(d)};null!=h&&(d.U={tabindex:h});W.call(this,a,b,d,void 0===e?"button":e,c);this.B=this.C=this.D=null;this.F=f;this.hide()};
doa=function(a){var b=null;null!=a.B&&(b=[a.B.serviceEndpoint,a.B.navigationEndpoint].filter(function(c){return null!=c}),a.B.command&&(b=b.concat(a.B.command)));
return b||[]};
pN=function(a,b,c,d,e,f){W.call(this,a,b,c,d,e);this.B=f;g.C(this,this.B);this.ha=this.F=-1};
qN=function(a){a.B&&-1===a.F&&(a.F=a.B.subscribe("b",a.rk,a),a.ha=a.B.subscribe("a",a.Ml,a),a.rk())};
rN=function(a){null!=a.B&&-1!==a.F&&(a.B.jk(a.F),a.B.jk(a.ha),a.ha=-1,a.F=-1)};
sN=function(a,b,c,d,e){e=void 0===e?!1:e;pN.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",S:[{G:"svg",L:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",U:{r:10,cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",U:{r:5,cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",U:{r:10,cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d);this.D=this.ga("ytp-ad-timed-pie-countdown-inner");this.C=Math.ceil(10*
Math.PI);this.I=e;this.hide()};
tN=function(a,b,c,d,e){W.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===e?"ad-text":e,c,void 0===d?null:d);this.B=null;this.hide()};
uN=function(a,b){b&&g.Ne(a.element,EM(a.B,b))};
g.vN=function(a,b,c,d,e,f){g.B.call(this);this.element=a;this.state=null;c||a.hide();this.C=b;this.D=void 0===d?b:d;this.u=f;this.B=e;this.delay=new g.H(this.eu,0,this);g.C(this,this.delay)};
wN=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
xN=function(a,b,c,d,e){pN.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d);var f=this;this.oa=-1;this.C=new g.DM({G:"span",L:"ytp-ad-preview-container"});g.C(this,this.C);this.D=new tN(this.api,this.Ea,this.u,"ytp-ad-preview-text");g.C(this,this.D);this.D.da(this.C.element);this.P=new g.DM({G:"span",L:"ytp-ad-preview-image"});g.C(this,this.P);this.I=new OM(this.api,this.Ea,this.u);g.C(this,this.I);this.I.da(this.P.element);this.P.da(this.C.element);this.C.da(this.element);this.X=
new g.vN(this.C,400,!1,100,function(){return f.hide()});
g.C(this,this.X);this.ea=0;this.ka=!1;this.xa=e;this.hide()};
yN=function(a){a.X.show(100);a.show()};
zN=function(a,b,c,d,e){e=void 0===e?0:e;g.B.call(this);this.C=a;this.B=!1;this.P=d;this.I=!1;this.u=null;0<b&&(this.u=new g.H(this.Uz,b,this),g.C(this,this.u));this.D=new g.H(this.Uz,c,this);g.C(this,this.D);this.N=Fn(this.C,e,1,d);g.C(this,this.N);this.K=Fn(this.C,0,d,1);g.C(this,this.K);this.F=new g.Pr;g.C(this,this.F)};
AN=function(a,b,c,d){pN.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d);var e=this;this.P=null;this.ea=!1;this.D=new g.DM({G:"span",ia:["ytp-ad-skip-button-container"]});g.C(this,this.D);this.D.da(this.element);this.C=this.I=null;this.ka=new g.vN(this.D,500,!1,100,function(){return e.hide()});
g.C(this,this.ka);this.X=new zN(this.D.element,15E3,5E3,.5,.5);g.C(this,this.X);this.hide()};
eoa=function(a){a=a.P&&a.P.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
BN=function(a,b){g.P.call(this);this.F=b;this.I=new g.Pr(this);g.C(this,this.I);this.B=a;this.Ua=new g.Tm(100);g.C(this,this.Ua);this.I.R(this.Ua,"tick",this.BL);this.D={seekableStart:0,seekableEnd:a/1E3,current:0};this.C=!1;this.u=0;this.start()};
CN=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",U:{tabindex:"0"},S:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",S:[{G:"div",L:"ytp-ad-action-interstitial-card",S:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c);this.Ia=this.ga("ytp-ad-action-interstitial-image-container");this.P=new OM(this.api,this.Ea,this.u,"ytp-ad-action-interstitial-image");g.C(this,this.P);this.P.da(this.Ia);this.xa=this.ga("ytp-ad-action-interstitial-headline-container");this.ha=new tN(this.api,this.Ea,this.u,"ytp-ad-action-interstitial-headline");g.C(this,this.ha);this.ha.da(this.xa);this.oa=this.ga("ytp-ad-action-interstitial-description-container");this.ea=new tN(this.api,this.Ea,this.u,"ytp-ad-action-interstitial-description");
g.C(this,this.ea);this.ea.da(this.oa);this.wb=this.ga("ytp-ad-action-interstitial-background-container");this.X=new OM(this.api,this.Ea,this.u,"ytp-ad-action-interstitial-background",!0);g.C(this,this.X);this.X.da(this.wb);this.Ma=this.ga("ytp-ad-action-interstitial-action-button-container");this.C=this.F=this.D=this.B=null;this.I=new g.Pr;g.C(this,this.I);this.ka=null;this.hide()};
DN=function(a){var b=g.te("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
EN=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-choice-interstitial",S:[{G:"div",L:"ytp-ad-choice-interstitial-main-content",S:[{G:"div",L:"ytp-ad-choice-interstitial-head-title"},{G:"div",L:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial",c);this.F=this.D=this.B=this.C=null;this.I=new g.vN(this,0,!1,0);g.C(this,this.I);this.hide()};
foa=function(a,b){var c=NM(b)||"";g.sc(c)?g.Eo(Error("Found ThumbnailDetails without valid image URL")):g.F(a,"backgroundImage","url("+c+")")};
goa=function(a,b){var c=a.ga("ytp-ad-choice-interstitial-head-title");g.Ne(c,g.U(b))};
hoa=function(a){switch(a){case 0:case 1:return a;default:return g.N(Error("AdChoiceInterstitialRenderer received an invalid value for default button choice index (i.e., not 0 or 1): "+a)),1}};
ioa=function(a,b,c,d){if(2!==b.length)return!1;a.B=FN(a,b[0],c,0===d);a.B.show();a.D=FN(a,b[1],c,1===d);a.D.show();return!0};
FN=function(a,b,c,d){var e=a.ga("ytp-ad-choice-interstitial-button-container"),f=d?1:2,h=["ytp-ad-choice-interstitial-button"],l=g.R(a.api.T().experiments,"self_podding_highlighted_button_blue")?"ytp-ad-choice-interstitial-button-highlight-blue":"ytp-ad-choice-interstitial-button-highlight",m=g.R(a.api.T().experiments,"self_podding_highlight_non_default_button");d&&h.push("ytp-ad-choice-interstitial-button-default");d===!m&&h.push(l);d=new oN(a.api,a.Ea,a.u,h,"button",!1,f);g.C(a,d);d.init(lI("button"),
b,a.macros);d.da(e);d.element.style.width=8*c+32+"px";return d};
joa=function(a,b){var c=8*b+32,d=a.ga("ytp-ad-choice-interstitial-button-container");190<c?(d.classList.add("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width=c+"px"):(d.classList.remove("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width="")};
koa=function(a,b,c,d){a.C=new BN(d);a.C.subscribe("a",function(){a.I.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.Ea.executeCommand(f.value,c)});
g.C(a,a.C)};
loa=function(a,b,c){var d=a.ga("ytp-ad-choice-interstitial");a.F=new sN(a.api,a.Ea,a.u,a.C,!0);g.C(a,a.F);a.F.init(lI("timed-pie-countdown"),b,c);a.F.da(d)};
GN=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-text-interstitial"},"ad-text-interstitial",c);this.C=this.ga("ytp-ad-text-interstitial");this.B=new tN(this.api,this.Ea,this.u,"ytp-ad-text-interstitial-message");g.C(this,this.B);this.B.da(this.C);this.hide()};
HN=function(a){var b=g.te("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
IN=function(){g.B.call(this);var a=this;this.u=new Map;this.B=$da(function(b){if(b.target&&(b=a.u.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Vs(b[c],void 0,void 0)})};
KN=function(){null==JN&&(JN=new IN);return JN};
MN=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=LN(c);if(d){c=g.Ee("SPAN",null,d);break a}}c=g.Ge(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(moa(e,b))}return 1==c.length?c[0]:g.Ee("SPAN",null,c)};
moa=function(a,b){var c=null,d=a.text;b&&(d=LN(d)||d);a.bold&&(c=g.Ee("B",null,c||d));a.italics&&(c=g.Ee("I",null,c||d));a.strikethrough&&(c=g.Ee("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=g.Ee("A",null,c||d);g.id(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),KN().register(c,e),g.I(c,"ytp-ad-has-logging-urls")}return c||g.Ee("SPAN",
null,d)};
LN=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(g.Ee("BR")),b.push(a[c]);return b}return null};
NN=function(a,b,c,d,e,f,h){e=void 0===e?!1:e;f=void 0===f?[]:f;W.call(this,a,b,{G:"span",ia:["ytp-ad-hover-text-button"].concat(f)},void 0===h?"ad-hover-text-button":h,c);this.button=this.C=null;this.I=e;this.F=d;this.hide()};
ON=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",S:[{G:"div",L:"ytp-ad-feedback-dialog-container",S:[{G:"div",L:"ytp-ad-feedback-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-feedback-dialog-title",S:[{G:"span",Z:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",Z:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
Z:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c);this.D=[];this.B=null;this.F=this.ga("ytp-ad-feedback-dialog-cancel-button");this.P=this.ga("ytp-ad-feedback-dialog-confirm-button");this.X=this.ga("ytp-ad-info-dialog-feedback-options");this.ea=this.ga("ytp-ad-feedback-dialog-title");this.I=this.C=null;this.hide()};
qoa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.B=new oN(a.api,a.Ea,a.u,["ytp-ad-feedback-dialog-close-button"],"button"),g.C(a,a.B),a.B.init(lI("button"),c,a.macros),a.B.ra("click",a.hD,a),a.B.da(a.element));b.title&&(c=g.U(b.title),a.ua("title",c));b.reasonsTitle&&(c=g.U(b.reasonsTitle),a.ua("reasonsTitle",c));b.reasons&&noa(a,b.reasons);b.cancelLabel&&(c=g.U(b.cancelLabel),a.ua("cancelLabel",c),g.cp(a.F,"click",function(){return a.hD()}));
b.confirmLabel&&(c=g.U(b.confirmLabel),a.ua("confirmLabel",c),g.cp(a.P,"click",function(){return ooa(a)}));
b.undoRenderer&&poa(a,b.undoRenderer)};
noa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.reason;null==d?g.Eo(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.Eo(Error("AdFeedbackReason.endpoint was not set.")):(d=new PN(d,e),g.C(a,d),a.X.appendChild(d.La()),a.D.push(d)))}};
poa=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.C=new oN(a.api,a.Ea,a.u,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.C(a,a.C),a.C.init(lI("ad-feedback-undo-mute-button"),c,a.macros),a.C.ra("click",a.oP,a),a.C.da(a.ea)):g.Eo(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
ooa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Ea.executeCommand(b[0].B,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button"),a.V("f"),a.hide())};
PN=function(a,b){this.B=b;this.u=new g.DM({G:"label",L:"ytp-ad-feedback-dialog-reason-label",S:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",U:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",Z:g.U(a)}]});this.C=this.u.ga("ytp-ad-feedback-dialog-reason-input")};
QN=function(a,b,c,d,e){d=void 0===d?[]:d;W.call(this,a,b,{G:"div",ia:["ytp-ad-confirm-dialog-background"],S:[{G:"div",L:"ytp-ad-confirm-dialog-container",S:[{G:"div",ia:["ytp-ad-confirm-dialog"].concat(d),U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-confirm-dialog-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",Z:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
Z:"{{confirmLabel}}"}]}]}]},{G:"button",ia:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],S:[{G:"span",L:"ytp-ad-button-icon",S:[g.WM()]}]}]},void 0===e?"confirm-dialog":e,c);this.I=this.ga("ytp-ad-confirm-dialog-close-overlay-button");this.F=this.ga("ytp-ad-confirm-dialog-cancel-button");this.X=this.ga("ytp-ad-confirm-dialog-confirm-button");this.P=this.ga("ytp-ad-confirm-dialog-messages");this.D=null;this.B=new g.Pr;g.C(this,this.B);this.C=null;this.hide()};
roa=function(a,b){if(b.title){var c=g.U(b.title);a.ua("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=MN(d.value),a.P.appendChild(d)}b.cancelLabel&&(c=g.U(b.cancelLabel),a.ua("cancelLabel",c),a.B.R(a.F,"click",function(e){return a.dx(e)}));
b.confirmLabel&&(c=g.U(b.confirmLabel),a.ua("confirmLabel",c),a.B.R(a.X,"click",function(e){return a.kx(e)}));
a.B.R(a.I,"click",function(e){return a.jx(e)})};
RN=function(a,b,c){QN.call(this,a,b,c,[],"ad-mute-confirm-dialog")};
SN=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",S:[{G:"div",L:"ytp-ad-info-dialog-container",S:[{G:"div",L:"ytp-ad-info-dialog-form",U:{role:"dialog",tabindex:"-1"},S:[{G:"div",L:"ytp-ad-info-dialog-title",Z:"{{title}}"},{G:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{G:"div",L:"ytp-ad-info-dialog-message"},{G:"div",L:"ytp-ad-info-dialog-mute-container"},{G:"div",L:"ytp-ad-info-dialog-confirm-container",S:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c);this.B=this.C=null;this.P=this.ga("ytp-ad-info-dialog-confirm-button");this.xa=this.ga("ytp-ad-info-dialog-mute-container");this.oa=this.ga("ytp-ad-info-dialog-message");this.ea=this.ga("ytp-ad-info-dialog-ad-reasons");this.F=this.D=null;this.ka=d;this.I=null;this.ha=!1;this.X=null;this.hide()};
soa=function(a){(a.I&&a.I.impressionEndpoints||[]).forEach(function(b){return a.Ea.executeCommand(b,a.macros)})};
toa=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.C=new ON(a.api,a.Ea,a.u),g.C(a,a.C),a.C.init(lI("ad-feedback-dialog"),c,a.macros),a.C.da(a.ka),a.C.subscribe("f",function(){return a.V("h")}))};
uoa=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.F=new RN(a.api,a.Ea,a.u),g.C(a,a.F),a.F.init(lI("ad-mute-confirm-dialog"),c,a.macros),a.F.da(a.ka),a.F.subscribe("g",function(){return a.V("h")}))};
voa=function(a){a.B&&a.B.ra("click",a.iD,a);g.cp(a.P,"click",function(){return a.iD()})};
TN=function(a,b,c,d,e){NN.call(this,a,b,c,void 0===e?!0:e,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.B=null;this.D=d;this.hide()};
woa=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.N(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.B=new SN(a.api,a.Ea,a.u,a.D),g.C(a,a.B),a.B.init(lI("ad-info-dialog"),b,c),a.B.da(a.D),a.B.subscribe("i",function(){return a.V("k")}),a.B.subscribe("h",function(){return a.V("j")}))};
xoa=function(a,b,c){null==a.button?g.N(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.C&&g.I(a.C.element,"ytp-ad-info-hover-text-long"):(woa(a,b,c),a.C&&g.I(a.C.element,"ytp-ad-info-hover-text-short"),a.button.ra("click",function(){a.B&&!a.B.Wa&&(a.B.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
UN=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Ga=b;this.layoutId=d;this.u=new Set;this.D=Array.from(this.B.get("progress")||[]);this.D.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.C={adPlacementConfig:c,pC:e}};
VN=function(){return["metadata_type_ad_placement_config"]};
XN=function(a){var b=a.Ga.get();return WN(b,a.C)};
$N=function(a,b){var c=a.B.get(b)||[],d=a.Ga.get(),e=a.layoutId,f=c;f=void 0===f?[]:f;if(c=YN(d.fd.get(),e)){e=yoa(d.tb.get(),e,b);c=WN(d,ZN(c),c);f=g.q(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h.baseUrl&&d.lh.send(h.baseUrl,c,e,h.headers)}else $G("Trying to track from an unknown layout");a.u.add(b)};
aO=function(a,b){a.u.has(b)||$N(a,b)};
cO=function(a,b){b=void 0===b?bO:b;b.width<bO.width&&(b=bO);return a.width<b.width||a.height<b.height};
dO=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
eO=function(a,b,c){c=void 0===c?bO:c;c.width<bO.width&&(c=bO);if(a.width<c.width||a.height<c.height)return{hu:501,errorMessage:"ad("+dO(c)+") larger than container("+dO(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{hu:501,errorMessage:"ad("+dO(c)+") to container("+dO(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{hu:501,errorMessage:"ad("+dO(c)+") covers container("+dO(a)+") center."}};
gO=function(a,b){var c=fO(a.Ba,"metadata_type_ad_placement_config");return new UN(a.be,b,c,a.layoutId)};
hO=function(a){return fO(a.Ba,"metadata_type_invideo_overlay_ad_renderer")};
iO=function(a){return g.R(a.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
jO=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",S:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c);this.P=[];this.F=this.Ia=this.oa=null;a=this.ga("ytp-ad-overlay-container");this.ka=new zN(a,45E3,6E3,.3,.4);g.C(this,this.ka);iO(this.api)||(this.ha=new g.H(this.clear,45E3,this),g.C(this,this.ha));this.D=zoa(this);g.C(this,this.D);this.D.da(a);this.C=Aoa(this);g.C(this,this.C);this.C.da(a);this.B=Boa(this);g.C(this,this.B);this.B.da(a);this.Ma=this.ea=null;this.xa=
!1;this.I=null;this.X=0;this.hide()};
zoa=function(a){var b=new g.DM({G:"div",L:"ytp-ad-text-overlay",S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[nN(kO)]}]},{G:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{G:"div",ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Z:"{{displayUrl}}"}]});a.R(b.ga("ytp-ad-overlay-title"),"click",function(c){return lO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-link"),"click",function(c){return lO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.ex);b.hide();return b};
Aoa=function(a){var b=new g.DM({G:"div",ia:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[nN(kO)]}]},{G:"div",L:"ytp-ad-overlay-text-image",S:[{G:"img",U:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{G:"div",ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Z:"{{displayUrl}}"}]});a.R(b.ga("ytp-ad-overlay-title"),"click",function(c){return lO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-link"),"click",function(c){return lO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.ex);a.R(b.ga("ytp-ad-overlay-text-image"),"click",a.fP);b.hide();return b};
Boa=function(a){var b=new g.DM({G:"div",L:"ytp-ad-image-overlay",S:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",S:[{G:"button",L:"ytp-ad-overlay-close-button",S:[nN(kO)]}]},{G:"div",L:"ytp-ad-overlay-image",S:[{G:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.R(b.ga("ytp-ad-overlay-image"),"click",function(c){return lO(a,b.element,c)});
a.R(b.ga("ytp-ad-overlay-close-container"),"click",a.ex);b.hide();return b};
mO=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.N(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.te("video-ads ytp-ad-module")||null;null==d?g.N(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.ea=new g.DM({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.ea),a.ea.da(d),d=new TN(a.api,a.Ea,a.u,a.ea.element,!1),g.C(a,d),d.init(lI("ad-info-hover-text-button"),c,a.macros),a.I?(d.da(a.I,
0),d.subscribe("k",a.aM,a),d.subscribe("j",a.QN,a),a.R(a.I,"click",a.bM),c=g.te("ytp-ad-button",d.element),a.R(c,"click",a.GL),a.Ma=d):g.N(Error("Ad info button container within overlay ad was not present.")))}}else g.Eo(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Coa=function(a){return a.F&&a.F.closeButton&&a.F.closeButton.buttonRenderer&&(a=a.F.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Doa=function(a,b){if(nO(a,oO)||a.api.app.visibility.u)return!1;var c=EM(b.title),d=EM(b.description);if(g.sc(c)||g.sc(d))return!1;IM(a,a.D.element,b.trackingParams||null);a.D.ua("title",EM(b.title));a.D.ua("description",EM(b.description));a.D.ua("displayUrl",EM(b.displayUrl));b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);a.D.show();a.ka.start();LM(a,a.D.element,!0);iO(a.api)||(a.R(a.api,"resize",function(){nO(a,oO)&&a.clear()}),a.R(a.api,"minimized",a.NN));
a.R(a.D.element,"mouseover",function(){a.X++});
return!0};
Eoa=function(a,b){if(nO(a,oO)||a.api.app.visibility.u)return!1;var c=EM(b.title),d=EM(b.description);if(g.sc(c)||g.sc(d))return!1;IM(a,a.C.element,b.trackingParams||null);a.C.ua("title",EM(b.title));a.C.ua("description",EM(b.description));a.C.ua("displayUrl",EM(b.displayUrl));a.C.ua("imageUrl",FM(b.image));b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);a.Ia=b.imageNavigationEndpoint||null;a.C.show();a.ka.start();LM(a,a.C.element,!0);iO(a.api)||a.R(a.api,"resize",function(){nO(a,oO)&&a.clear()});
a.R(a.C.element,"mouseover",function(){a.X++});
return!0};
Foa=function(a,b){if(a.api.app.visibility.u)return!1;var c=coa(b.image),d=c;c.width<oO.width&&(d=oO);if(0==c.width||0==c.height||nO(a,d))return!1;IM(a,a.B.element,b.trackingParams||null);a.B.ua("imageUrl",FM(b.image));a.B.ua("width",c.width);a.B.ua("height",c.height);b.navigationEndpoint&&vb(a.P,b.navigationEndpoint);d=a.B.ga("ytp-ad-image-overlay");g.F(d,"max-width",c.width+"px");a.B.show();LM(a,a.B.element,!0);iO(a.api)||(a.ha.start(),a.R(a.api,"resize",function(){nO(a,c)&&a.clear()}));
a.R(a.B.element,"mouseover",function(){a.X++;iO(a.api)?a.api.V("aduxmouseover","invideo-overlay"):a.ha.stop()});
a.R(a.B.element,"mouseout",function(){iO(a.api)?a.api.V("aduxmouseout","invideo-overlay"):a.ha.start()});
return!0};
nO=function(a,b){var c=g.yG(a.api).getPlayerSize();if(!g.R(a.api.T().experiments,"drop_overlay_ads_on_cba_violation"))return b.width>c.width||b.height>c.height;var d=a.api.Nh(!0,!1);return(c=eO(c,c.height-(d.height+d.top),b))?(a.oa&&c&&(d=g.Zb(a.macros),d.ERRORCODE=c.hu.toString(),d.ERROR_MSG=c.errorMessage,a.Ea.executeCommand(a.oa,d)),!0):!1};
lO=function(a,b,c){var d=g.Zb(a.macros),e=g.Eg(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Cg(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.P.forEach(function(h){return a.Ea.executeCommand(h,d)});
a.api.pauseVideo()};
pO=function(a,b){var c=a.api.getRootNode();g.J(c,"ytp-ad-overlay-open",b);g.J(c,"ytp-ad-overlay-closed",!b)};
qO=function(a,b,c,d){pN.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",S:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d);var e=this;this.ea=-1;this.ka=this.ga("ytp-ad-message-slot");this.D=new g.DM({G:"span",L:"ytp-ad-message-container"});this.D.da(this.ka);g.C(this,this.D);this.C=new tN(this.api,this.Ea,this.u,"ytp-ad-message-text");g.C(this,this.C);this.C.da(this.D.element);this.P=new g.vN(this.D,400,!1,100,function(){return e.hide()});
g.C(this,this.P);this.I=0;this.X=!1;this.hide()};
rO=function(a,b){var c=a.api.getRootNode();g.J(c,"ytp-ad-overlay-open",b);g.J(c,"ytp-ad-overlay-closed",!b)};
sO=function(a,b,c,d){pN.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d);this.P=!1;this.I=0;this.D=this.C=null;this.hide()};
tO=function(a,b){if(!a.P)if(a.P=!0,a.C&&(b?a.C.X.hide():a.C.hide()),b){var c=a.D;c.ka.show();c.show()}else a.D.show()};
uO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-persisting-overlay",S:[{G:"div",L:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay",c);this.C=this.ga("ytp-ad-persisting-overlay-skip");this.B=d;g.C(this,this.B);this.hide()};
g.vO=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){var h="";0<d&&(h+=" "+d+" Days");if(0<d||0<e)h+=" "+e+" Hours";d=(h+(" "+f+" Minutes ")+(c+" Seconds")).trim()}else{h="";0<d&&(h+=d+":",10>e&&(h+="0"));if(0<d||0<e)h+=e+":",10>f&&(h+="0");h+=f+":";10>c&&(h+="0");d=h+c}return 0<=a?d:"-"+d};
g.wO=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)};
xO=function(a,b,c,d,e){pN.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d);this.C=null;this.D=e;this.hide()};
yO=function(a,b,c){tN.call(this,a,b,c,"ytp-video-ad-top-bar-title","ad-title")};
zO=function(a,b,c,d){pN.call(this,a,b,{G:"div",ia:["ytp-flyout-cta","ytp-flyout-cta-inactive"],S:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",S:[{G:"div",L:"ytp-flyout-cta-text-container",S:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d);this.D=new OM(this.api,this.Ea,this.u,"ytp-flyout-cta-icon");g.C(this,this.D);this.D.da(this.ga("ytp-flyout-cta-icon-container"));
this.P=new tN(this.api,this.Ea,this.u,"ytp-flyout-cta-headline");g.C(this,this.P);this.P.da(this.ga("ytp-flyout-cta-headline-container"));this.I=new tN(this.api,this.Ea,this.u,"ytp-flyout-cta-description");g.C(this,this.I);this.I.da(this.ga("ytp-flyout-cta-description-container"));this.C=new oN(this.api,this.Ea,this.u,["ytp-flyout-cta-action-button"]);g.C(this,this.C);this.C.da(this.ga("ytp-flyout-cta-action-button-container"));this.X=null;this.ea=0;this.hide()};
AO=function(a,b,c,d,e){d=void 0===d?[]:d;e=void 0===e?"toggle-button":e;var f=lI("ytp-ad-toggle-button-input");W.call(this,a,b,{G:"div",ia:["ytp-ad-toggle-button"].concat(d),S:[{G:"label",L:"ytp-ad-toggle-button-label",U:{"for":f},S:[{G:"span",L:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},S:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",Z:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",Z:"{{toggledIconTemplateSpec}}"}]},{G:"input",
L:"ytp-ad-toggle-button-input",U:{id:f,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",Z:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",Z:"{{tooltipText}}"}]}]},e,c);this.D=this.ga("ytp-ad-toggle-button");this.B=this.ga("ytp-ad-toggle-button-input");this.ga("ytp-ad-toggle-button-label");this.X=this.ga("ytp-ad-toggle-button-icon");this.I=this.ga("ytp-ad-toggle-button-untoggled-icon");this.F=this.ga("ytp-ad-toggle-button-toggled-icon");this.ha=this.ga("ytp-ad-toggle-button-text");
this.C=null;this.P=!1;this.ea=null;this.hide()};
BO=function(a){a.P&&(a.isToggled()?(g.Fg(a.I,!1),g.Fg(a.F,!0)):(g.Fg(a.I,!0),g.Fg(a.F,!1)))};
Goa=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
CO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,void 0===d?null:d);var e=this;this.B=null;this.D=new AO(this.api,this.Ea,this.u,["ytp-ad-instream-user-sentiment-like-button"]);g.C(this,this.D);this.D.da(this.element);this.C=new AO(this.api,this.Ea,this.u,["ytp-ad-instream-user-sentiment-dislike-button"]);g.C(this,this.C);this.C.da(this.element);this.F=new g.vN(this,400,!1,500,function(){return e.hide()});
g.C(this,this.F);this.I=null;this.hide()};
Hoa=function(a,b){a.D.init(lI("toggle-button"),a.B.likeButton.toggleButtonRenderer,b);a.C.init(lI("toggle-button"),a.B.dislikeButton.toggleButtonRenderer,b);a.I=a.R(a.element,"change",a.gD)};
DO=function(a,b,c){oN.call(this,a,b,c,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
EO=function(a,b,c,d){d=void 0===d?!1:d;W.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c);this.B=d;this.hide()};
FO=function(a,b){this.B=a;this.u=b};
GO=function(a,b){return a.B+b*a.getLength()};
HO=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.be(a,0,1)};
IO=function(a,b){g.DM.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",S:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.C=a;this.B=b;g.C(this,this.B);this.I=this.ga("ytp-ad-persistent-progress-bar");this.u=-1;this.R(a,"presentingplayerstatechange",this.F);this.hide();this.F()};
KO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",S:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c);this.I=this.ga("ytp-ad-player-overlay-flyout-cta");this.C=this.ga("ytp-ad-player-overlay-instream-info");this.D=null;JO(this)&&(a=g.Ee("div"),g.I(a,
"ytp-ad-player-overlay-top-bar-gradients"),b=this.C,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new yO(this.api,this.Ea,this.u),c.da(a),c.init(lI("ad-title"),{text:b.title},this.macros),g.C(this,c)),this.D=a);this.F=this.ga("ytp-ad-player-overlay-skip-or-preview");this.X=this.ga("ytp-ad-player-overlay-progress-bar");this.P=this.ga("ytp-ad-player-overlay-instream-user-sentiment");this.B=d;g.C(this,this.B);this.hide()};
JO=function(a){a=a.api.T();return iC(a)&&a.u};
LO=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c);this.C=this.ga("ytp-ad-survey-answer");this.B=null;this.D="";this.hide()};
MO=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c);this.C=this.ga("ytp-ad-survey-none-of-the-above");this.B=null;this.hide()};
NO=function(a,b,c){oN.call(this,a,b,c,["ytp-ad-survey-submit-button"],"survey-submit")};
OO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",S:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",S:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c);this.I=this.ga("ytp-ad-survey-player-overlay-instream-info");this.C={};this.P=this.ga("ytp-ad-survey-player-overlay-skip-or-preview");
this.B=null;this.X=this.ga("ytp-ad-survey-player-overlay-submit");this.D=null;this.F=d;g.C(this,this.F);this.hide()};
PO=function(a,b,c,d){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",S:[{G:"div",ia:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",ia:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",ia:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},d,c);this.question=this.ga("ytp-ad-survey-question");this.ka=this.ga("ytp-ad-survey-question-background");this.ea=this.ga("ytp-ad-survey-question-text");
this.answers=this.ga("ytp-ad-survey-answers");this.X=this.ga("ytp-ad-survey-question-player-overlay");this.I=null;this.D=[];this.B=null;this.F=g.A()};
QO=function(a,b,c){var d=new LO(a.api,a.Ea,a.u);d.da(a.answers);d.init(lI("survey-answer"),b,c);a.D.push(d)};
RO=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&NM(c)||"",g.sc(c)?g.Eo(Error("Found ThumbnailDetails without valid image URL")):g.F(a.ka,"backgroundImage","url("+c+")"));Ioa(a,b)}else g.N(Error("addCommonComponents() needs to be called before starting countdown."))};
Ioa=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)g.N(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.F=g.A();a.B=new BN(b.durationMilliseconds,a.Ea);g.C(a,a.B);if(b.timeoutCommands){var c=b.timeoutCommands;a.B.subscribe("a",function(){c.forEach(function(e){return a.Ea.executeCommand(e,a.macros)})})}if(a.B&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new OO(a.api,a.Ea,a.u,a.B);
d.da(a.X);d.init(lI("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.I=d;g.C(a,d);a.fF()}catch(e){g.N(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.N(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.B&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new IO(a.api,a.B),d.da(a.X),g.C(a,d)):g.N(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
Joa=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()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return g.A()-a.F})};
SO=function(a,b,c){PO.call(this,a,b,c,"survey-question-multi-select");this.C=null;this.ha=[];this.P=null;this.hide()};
Koa=function(a,b,c){a.C=new MO(a.api,a.Ea,a.u);a.C.da(a.answers);a.C.init(lI("survey-none-of-the-above"),b,c)};
Loa=function(a){a.D.forEach(function(b){b.B.toggleButton(!1)});
TO(a,!0)};
TO=function(a,b){var c=a.I,d=Moa(a),e=b;e=void 0===e?!1:e;c.B&&(d?c.B.hide():c.B.show(),e&&c.B instanceof sO&&!c.B.P&&tO(c.B,!1));c.D&&(d?c.D.show():c.D.hide())};
Moa=function(a){return a.D.some(function(b){return b.B.isToggled()})||a.C.B.isToggled()};
UO=function(a,b,c){PO.call(this,a,b,c,"survey-question-single-select");this.hide()};
VO=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-survey",S:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c);this.B=this.ga("ytp-ad-survey-questions");this.C=[];this.hide()};
WO=function(a,b,c){W.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",S:[{G:"div",L:"ytp-ad-survey-interstitial-contents",S:[{G:"div",L:"ytp-ad-survey-interstitial-logo",S:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c);this.F=this.ga("ytp-ad-survey-interstitial");this.I=this.ga("ytp-ad-survey-interstitial-contents");this.B=null;this.X=this.ga("ytp-ad-survey-interstitial-text");this.P=this.ga("ytp-ad-survey-interstitial-logo-image");
this.D=null;this.C=new g.vN(this,500,!1,300);g.C(this,this.C)};
Noa=function(a,b,c){c=c.dismissCommands;var d=b.target==a.F;b=a.B.element.contains(b.target);if(d||b)a.C.hide(),d&&c.forEach(function(e){return a.Ea.executeCommand(e,a.macros)})};
XO=function(a,b){var c=b&&NM(b)||"";if(g.sc(c))g.Eo(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.ye&&10>document.documentMode)d=Rc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.Fe("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=Fda(e.style)}c=Faa(d,Sc({"background-image":'url("'+c+'")'}));a.style.cssText=Oc(c)}};
YO=function(a){var b=g.te("html5-video-player");b&&g.J(b,"ytp-ad-display-override",a)};
ZO=function(a,b){b=void 0===b?2:b;g.P.call(this);this.u=a;this.B=new g.Pr(this);g.C(this,this.B);this.F=Ooa;this.D=null;this.B.R(this.u,"presentingplayerstatechange",this.CL);this.D=this.B.R(this.u,"progresssync",this.eD);this.C=b;1===this.C&&this.eD()};
aP=function(a,b){qM.call(this,a);this.D=a;this.K=b;this.B={};var c=new g.V({G:"div",ia:["video-ads","ytp-ad-module"]});g.C(this,c);EB&&g.I(c.element,"ytp-ads-tiny-mode");this.F=new uM(c.element);g.C(this,this.F);g.$O(this.D,c.element,4);g.C(this,KN())};
bP=function(a,b){var c=a.B;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.Eo(Error("Component not found for element id: "+b.id));return c||null};
cP=function(a){this.controller=a};
dP=function(a){this.ao=a};
eP=function(a){this.ao=a};
fP=function(a){this.ao=a};
gP=function(){};
hP=function(){};
iP=function(a,b){this.Pn=a;this.Ga=b};
jP=function(a){this.J=a};
kP=function(a,b){this.lh=a;this.Ga=b};
lP=function(a){g.B.call(this);this.u=a;this.B=Poa(this)};
Poa=function(a){var b=new KL;g.C(a,b);a=g.q([new cP(a.u.uH),new iP(a.u.Pn,a.u.Ga),new dP(a.u.vH),new jP(a.u.J),new kP(a.u.lh,a.u.Ga),new fP(a.u.RL),new eP(a.u.FH),new gP,new hP]);for(var c=a.next();!c.done;c=a.next())c=c.value,Tna(b,c),Una(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())HL(b,c.value,function(){});
return b};
mP=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.Ba.u.has(c.value))return!1;return!0};
nP=function(a){var b=new Map;a.forEach(function(c){b.set(c.u(),c)});
this.u=b};
fO=function(a,b){var c=a.u.get(b);if(void 0!==c)return c.get()};
oP=function(a){return Array.from(a.u.keys())};
qP=function(a){var b;return(null===(b=pP.get(a))||void 0===b?void 0:b.Yp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
tP=function(a,b){var c={type:Qoa.get(b.Ya)||"SLOT_TYPE_UNSPECIFIED",entryTriggerType:b.Sb?rP.get(b.Sb.triggerType)||"TRIGGER_TYPE_UNSPECIFIED":"TRIGGER_TYPE_UNSPECIFIED",controlFlowManagerLayer:sP.get(b.sb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};1!==b.feedPosition&&(c.feedPosition=b.feedPosition);if(a){c.debugData={slotId:b.slotId};var d=b.Sb;if(d){var e={type:rP.get(d.triggerType)||"TRIGGER_TYPE_UNSPECIFIED"};"trigger_type_layout_id_entered"===d.triggerType&&(e.layoutIdEnteredTriggerData={enteredLayoutId:d.B});
c.debugData.slotEntryTriggerData=e}}return c};
uP=function(a,b){var c={type:Roa.get(b.layoutType)||"LAYOUT_TYPE_UNSPECIFIED",controlFlowManagerLayer:sP.get(b.sb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
Toa=function(a,b,c,d){b={opportunityType:Soa.get(b)||"OPPORTUNITY_TYPE_UNSPECIFIED"};a&&(d||c)&&(b.debugData={slots:g.Pc(d||[],function(e){return tP(a,e)}),
associatedSlotId:c});return b};
xP=function(a,b){return function(c){return vP(wP(a),b.slotId,b.Ya,b.feedPosition,b.sb,b.Sb,c.layoutId,c.layoutType,c.sb)}};
vP=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:tP(a,{slotId:b,Ya:c,feedPosition:d,sb:e,Sb:f,ae:[],Qe:[],Ba:new nP([])}),layoutData:uP(a,{layoutId:h,layoutType:l,sb:m,gf:[],hf:[],ff:[],jf:[],be:new Map,Ba:new nP([]),Ke:{}})}}};
yP=function(a){this.za=a;this.u=.1>Math.random()};
wP=function(a){return a.u||g.R(a.za.get().J.T().experiments,"html5_force_debug_data_for_client_tmp_logs")};
zP=function(a,b,c,d){g.B.call(this);this.B=b;this.zb=c;this.za=d;this.u=a(this,this,this,this,this);g.C(this,this.u);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.C(this,b.value)};
BP=function(a,b,c){$G(c,b,void 0,void 0,c.Gk);AP(a,b,!0)};
LP=function(a,b,c){if(CP(a.u,b))if(DP(a.u,b).D=c?"filled":"not_filled",null===c){EP(a.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.B);for(var d=c.next();!d.done;d=c.next())d.value.mj(b);AP(a,b,!1)}else{EP(a.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.nj(b);if(DP(a.u,b).F)AP(a,b,!1);else{EP(a.zb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.u;if(!DP(f,b))throw new FP("Unknown slotState for onLayout");
if(!f.Ic.bj.get(b.Ya))throw new FP("No LayoutRenderingAdapterFactory registered for slot of type: "+b.Ya);if(g.ob(c.gf)&&g.ob(c.hf)&&g.ob(c.ff)&&g.ob(c.jf))throw new FP("Layout has no exit triggers.");GP(f,0,c.gf);GP(f,1,c.hf);GP(f,2,c.ff);GP(f,6,c.jf)}catch(n){HP(a,b,c,n);AP(a,b,!0);return}a.u.lm(b);try{var h=a.u,l=DP(h,b),m=h.Ic.bj.get(b.Ya).get().u(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new FP("Already had LayoutRenderingAdapter registered for slot");l.C=m;IP(h,l,0,c.gf);IP(h,l,1,c.hf);
IP(h,l,2,c.ff);IP(h,l,6,c.jf)}catch(n){JP(a,b);AP(a,b,!0);HP(a,b,c,n);return}EP(a.zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.fi(b,c);JP(a,b);KP(a,b)}}};
MP=function(a,b,c){EP(a.zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.fi(b,c)};
OP=function(a,b){NP(a.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",b);CP(a.u,b)&&(DP(a.u,b).D="fill_canceled",AP(a,b,!1))};
PP=function(a,b,c){EP(a.zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.Yd(b,c)};
pK=function(a,b,c,d){EP(a.zb,qP(d),b,c);a=g.q(a.B);for(var e=a.next();!e.done;e=a.next())e.value.qe(b,c,d)};
HP=function(a,b,c,d){$G(d,b,c,void 0,d.Gk);AP(a,b,!0)};
JP=function(a,b){if(CP(a.u,b)){DP(a.u,b).lm=!1;var c=QP,d=DP(a.u,b),e=[].concat(g.la(d.K));pb(d.K);c(a,e)}};
QP=function(a,b){b.sort(function(h,l){return h.category===l.category?h.trigger.triggerId.localeCompare(l.trigger.triggerId):h.category-l.category});
for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,CP(a.u,e.slot))if(DP(a.u,e.slot).lm)DP(a.u,e.slot).K.push(e);else{Uoa(a.zb,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q(RP.entries());for(e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,(e=c.get(e))&&Voa(a,e,f);(d=c.get(3))&&Woa(a,d);(d=c.get(4))&&Xoa(a,d);(c=c.get(5))&&Yoa(a,c)};
Voa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&SP(a.u,d.slot)&&TP(a,d.slot,d.layout,c)};
Woa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())AP(a,d.value.slot,!1)};
Xoa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(DP(a.u,d.slot).D){case "not_filled":var e=!0;break a;default:e=!1}e&&(NP(a.zb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),a.u.ro(d.slot))}};
Yoa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;NP(a.zb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);for(var e=g.q(a.B),f=e.next();!f.done;f=e.next())f.value.gi(d.slot);try{var h=a.u,l=d.slot,m=DP(h,l);if(!m)throw new QG("Got enter request for unknown slot");if(!m.B)throw new QG("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==m.u)throw new QG("Tried to enter a slot from stage: "+m.u);if(UP(m))throw new QG("Got enter request for already active slot");
for(var n=g.q(VP(h,l.Ya+"_"+l.feedPosition).values()),p=n.next();!p.done;p=n.next()){var r=p.value;if(m!==r&&UP(r)){e=void 0;var t=h;f=r;var w=l,x=WP(t.wa.get(),1,!1),y=NG(t.Da.get(),1),D=YG(f.layout),E=f.slot.Sb,G=XP(t,E),K=ZG(E,G),M=w.Ba.u.has("metadata_type_fulfilled_layout")?YG(fO(w.Ba,"metadata_type_fulfilled_layout")):"unknown",Ia=w.Sb,va=XP(t,Ia),gb=ZG(Ia,va);t=G;w=va;if(t&&w){if(t.start>w.start){var Hb=g.q([w,t]);t=Hb.next().value;w=Hb.next().value}e=t.end>w.start}else e=!1;throw new QG("Trying to enter a slot when a slot of same type is already active.",
{details:x+" |"+(K+" |"+gb),activeSlotStatus:f.u,activeLayout:D?D:"empty",enteringLayout:M,hasOverlap:String(e),contentCpn:y.clientPlaybackNonce,contentVideoId:y.videoId});}}}catch(bb){$G(bb,d.slot,YP(a.u,d.slot),void 0,bb.Gk);AP(a,d.slot,!0);continue}d=DP(a.u,d.slot);"scheduled"!==d.u&&ZP(d.slot,d.u,"enterSlot");d.u="enter_requested";d.B.xv()}};
KP=function(a,b){var c;if(CP(a.u,b)&&UP(DP(a.u,b))&&YP(a.u,b)&&!SP(a.u,b)){EP(a.zb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=YP(a.u,b))&&void 0!==c?c:void 0);var d=DP(a.u,b);"entered"!==d.u&&ZP(d.slot,d.u,"enterLayoutForSlot");d.u="rendering";d.C.startRendering(d.layout)}};
TP=function(a,b,c,d){if(CP(a.u,b)){var e=a.zb,f;var h=(null===(f=pP.get(d))||void 0===f?void 0:f.Lp)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";EP(e,h,b,c);a=DP(a.u,b);"rendering"!==a.u&&ZP(a.slot,a.u,"exitLayout");a.u="rendering_stop_requested";a.C.Tl(c,d)}};
AP=function(a,b,c){if(CP(a.u,b)){if(a.u.zw(b)||a.u.xw(b))if(DP(a.u,b).F=!0,!c)return;if(UP(DP(a.u,b)))DP(a.u,b).F=!0,$P(a,b,c);else if(a.u.Aw(b))DP(a.u,b).F=!0,CP(a.u,b)&&(NP(a.zb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=DP(a.u,b),b.D="fill_cancel_requested",b.I.u());else{c=YP(a.u,b);NP(a.zb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var d=DP(a.u,b),e=b.Sb,f=d.X.get(e.triggerId);f&&(f.Bg(e),d.X["delete"](e.triggerId));e=g.q(b.ae);for(f=e.next();!f.done;f=e.next()){f=
f.value;var h=d.P.get(f.triggerId);h&&(h.Bg(f),d.P["delete"](f.triggerId))}e=g.q(b.Qe);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.N.get(f.triggerId))h.Bg(f),d.N["delete"](f.triggerId);null!=d.layout&&(e=d.layout,aQ(d,e.gf),aQ(d,e.hf),aQ(d,e.ff),aQ(d,e.jf));d.I=void 0;null!=d.B&&(d.B.release(),d.B=void 0);null!=d.C&&(d.C.release(),d.C=void 0);d=a.u;DP(d,b)&&(d=VP(d,b.Ya+"_"+b.feedPosition))&&d["delete"](b.slotId);NP(a.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.B);for(d=a.next();!d.done;d=
a.next())d=d.value,d.oj(b),c&&d.kj(b,c)}}};
$P=function(a,b,c){if(CP(a.u,b)&&UP(DP(a.u,b))){var d=YP(a.u,b);if(d&&SP(a.u,b))TP(a,b,d,c?"error":"abandoned");else{NP(a.zb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=DP(a.u,b);if(!e)throw new QG("Cannot exit slot it is unregistered");"enter_requested"!==e.u&&"entered"!==e.u&&"rendering"!==e.u&&ZP(e.slot,e.u,"exitSlot");e.u="exit_requested";if(void 0===e.B)throw e.u="scheduled",new QG("Cannot exit slot because adapter is not defined");e.B.Cv()}catch(f){$G(f,b,void 0,void 0,f.Gk)}}}};
bQ=function(a){this.slot=a;this.X=new Map;this.P=new Map;this.N=new Map;this.W=new Map;this.C=this.layout=this.B=this.I=void 0;this.lm=this.F=!1;this.K=[];this.u="not_scheduled";this.D="not_filled"};
UP=function(a){return"enter_requested"===a.u||a.isActive()};
FP=function(a,b,c){c=void 0===c?!1:c;Za.call(this,a);this.Gk=c;this.args=[];b&&this.args.push(b)};
cQ=function(a,b,c,d,e,f,h,l){g.B.call(this);this.Ic=a;this.C=b;this.F=c;this.D=d;this.B=e;this.Pb=f;this.wa=h;this.Da=l;this.u=new Map};
VP=function(a,b){var c=a.u.get(b);return c?c:new Map};
DP=function(a,b){return VP(a,b.Ya+"_"+b.feedPosition).get(b.slotId)};
Zoa=function(a){var b=[];a.u.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};
XP=function(a,b){if(b instanceof XG)return b.B;if(b instanceof WG){var c=YN(a.Pb.get(),b.B);if(c=null===c||void 0===c?void 0:fO(c.Ba,"metadata_type_ad_placement_config"))return c=RG(c,0x7ffffffffffff),c instanceof QG?void 0:c.wg}};
CP=function(a,b){return null!=DP(a,b)};
SP=function(a,b){var c=DP(a,b),d;if(d=null!=c.layout)a:switch(c.u){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d};
YP=function(a,b){var c=DP(a,b);return null!=c.layout?c.layout:null};
eQ=function(a,b,c){if(g.ob(c))throw new QG("No "+dQ.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.Ic.Yf.get(d.triggerType))throw new QG("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
GP=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ic.Yf.get(d.triggerType))throw new FP("No trigger adapter registered for "+dQ.get(b)+" trigger of type: "+d.triggerType);};
IP=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.Ic.Yf.get(e.triggerType);f.yg(c,e,b.slot,b.layout?b.layout:null);b.W.set(e.triggerId,f)}};
aQ=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.W.get(d.triggerId);e&&(e.Bg(d),a.W["delete"](d.triggerId))}};
ZP=function(a,b,c){$G("Slot stage was "+b+" when calling method "+c,a)};
$oa=function(a){return fQ(a.Hl).concat(fQ(a.Yf)).concat(fQ(a.Oi)).concat(fQ(a.sj)).concat(fQ(a.bj))};
fQ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Wi&&b.push(c);return b};
gQ=function(a){g.B.call(this);this.u=a;this.B=apa(this)};
apa=function(a){var b=new zP(function(c,d,e,f){return new cQ(a.u.Ic,c,d,e,f,a.u.Pb,a.u.wa,a.u.Da)},new Set($oa(a.u.Ic).concat(a.u.listeners)),a.u.zb,a.u.za);
g.C(a,b);return b};
hQ=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.dg(this,function(){g.eg(b.u);b.u=null})};
X=function(a){return new hQ(a)};
epa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,iQ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return bpa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={em:b.em},h=f.next()){b.em=h.value;h={};for(var l=g.q(b.em.Gu),m=l.next();!m.done;h={yj:h.yj},m=l.next())h.yj=m.value,m=function(n,p){return function(r){return n.yj.tA(r,p.em.adVideoId,p.em.instreamVideoAdRenderer.elementId,n.yj.Mz)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.yj.jm?a.push(cpa(c,d,h.yj.Nz,e,h.yj.adSlotLoggingData,m)):a.push(dpa(c,d,e,b.em.instreamVideoAdRenderer.elementId,h.yj.adSlotLoggingData,m))}return a};
iQ=function(a,b,c){if(b=fpa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=jQ(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.Wr=c)}else $G("InstreamVideoAdRenderer without externalVideoId")}};
fpa=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};
bpa=function(a){if(void 0===a.instreamVideoAdRenderer)return $G("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.Gu),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.tA)return!1;if(void 0===c.Mz)return $G("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.Wr||void 0===c.jm||a.Wr!==c.jm&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.jm)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return $G("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.Wr,"matching APSR kind":c.jm}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.jm&&void 0===c.Nz)return $G("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
jQ=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,Wr:void 0,adVideoId:b,Gu:[]});return a.get(b)};
kQ=function(a,b,c,d,e,f,h){d?jQ(a,d).Gu.push({Nz:b,jm:c,Mz:e,adSlotLoggingData:f,tA:h}):$G("Companion AdPlacementSupportedRenderer without adVideoId")};
ipa=function(a,b,c,d,e,f,h){if(!gpa(a))return new QG("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[hpa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=lQ(e.Ta.get(),"layout_type_sliding_text_player_overlay",m);var p={layoutId:m,layoutType:"layout_type_sliding_text_player_overlay",sb:"core"},r=new mQ(e.u,d);return{layoutId:m,layoutType:"layout_type_sliding_text_player_overlay",be:new Map,gf:[r],hf:[],
ff:[],jf:[],sb:"core",Ba:new nP([new AJ(l)]),Ke:n(p)}})]};
gpa=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};
npa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!jpa(a))return function(){return new QG("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=kpa(h);return 0>=l?function(){return new QG("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=lpa(m,c,d,function(t){var w=n(t);
t=t.slotId;t=lQ(e.Ta.get(),"layout_type_survey",t);var x={layoutId:t,layoutType:"layout_type_survey",sb:"core"},y=new mQ(e.u,d),D=new nQ(e.u,l,t),E=new oQ(e.u,t),G=new pQ(e.u,t),K=new mpa(e.u);return{layoutId:t,layoutType:"layout_type_survey",be:new Map,gf:[y,D,K],hf:[E],ff:[],jf:[G],sb:"core",Ba:new nP([new zJ(h),new uJ(b),new TJ(l/1E3)]),Ke:w(x)}}),r=ipa(a,c,p.slotId,d,e,m,n);
return r instanceof QG?r:[p].concat(g.la(r))}};
kpa=function(a){var b=0;a=g.q(a.questions);for(var c=a.next();!c.done;c=a.next())b+=c.value.instreamSurveyAdMultiSelectQuestionRenderer.surveyAdQuestionCommon.durationMilliseconds;return b};
jpa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;if(!a||!a.questions||1!==a.questions.length)return!1;a=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer;if(null===a||void 0===a||!a.surveyAdQuestionCommon)return!1;a=(a.surveyAdQuestionCommon.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;var b=((null===a||void 0===a?void 0:a.adInfoRenderer)||{}).adHoverTextButtonRenderer;return((null===a||void 0===a?void 0:a.skipOrPreviewRenderer)||
{}).skipAdRenderer&&b?!0:!1};
qpa=function(a,b,c,d,e){var f=[];try{var h=[],l=opa(a,d,function(t){t=ppa(t.slotId,c,b,e(t),d);h=t.CQ;return t.QH});
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 QG)return r;f.push.apply(f,g.la(r))}}catch(t){return new QG(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
ppa=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={EF:h,FF:0,AQ:n};l=l.map(function(t){return rpa(a,t,p,c,d,f,e,m)}).map(function(t,
w){var x=new kH(w,n);
return t(x)});
var r=l.map(function(t){return t.RH});
return{QH:spa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),tpa(b),d,m),CQ:l.map(function(t){return t.BQ})}};
rpa=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=Vp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=upa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.EF,t=c.FF,w=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(w)?b:Math.min(b,
w/1E3),y=Math.min(r+1E3*x,l);c.EF=y;c.FF++;c.AQ.push(x);var D=m.pings?lH(m.pings):new Map;c=m.playerOverlay||{};var E=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(G){var K=m.adLayoutLoggingData,M=m.sodarExtensionData,Ia=lQ(d.Ta.get(),"layout_type_media",a),va={layoutId:Ia,layoutType:"layout_type_media",sb:"adapter"};G={layoutId:Ia,layoutType:"layout_type_media",be:D,gf:[],hf:[],ff:[],jf:[],sb:"adapter",Ba:new nP([new xJ(h),new GJ(x),new HJ(n),new JJ(r),
new KJ(y),new LJ(t),new DJ({current:null}),E&&new yJ(E),new uJ(f),new wJ(p),new vJ(G),M&&new IJ(M)].filter(vpa)),Ke:e(va),adLayoutLoggingData:K};K=npa(m,f,h,G.layoutId,d);return{RH:G,BQ:K}}};
upa=function(a,b){var c=a.video_id;if(c||(c=b.externalVideoId))return c};
tpa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
xpa=function(a,b,c,d,e,f,h,l){a=wpa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=lQ(b.Ta.get(),"layout_type_forecasting",n);var p={layoutId:n,layoutType:"layout_type_forecasting",sb:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"layout_type_forecasting",be:r,gf:[new qQ(b.u,n)],hf:[],ff:[],jf:[],sb:"core",Ba:new nP([new NJ(e),new uJ(c)]),Ke:m(p)}});
return a instanceof QG?a:[a]};
zpa=function(a,b,c,d,e,f,h,l){a=ypa(a,c,f,h,d,function(m,n){var p=m.slotId,r=l(m),t=e.contentSupportedRenderer;t?t.textOverlayAdContentRenderer?(t=lQ(b.Ta.get(),"layout_type_in_video_text_overlay",p),r=rQ(b,t,"layout_type_in_video_text_overlay",e,c,r,sQ(b,n,p))):t.enhancedTextOverlayAdContentRenderer?(t=lQ(b.Ta.get(),"layout_type_in_video_enhanced_text_overlay",p),r=rQ(b,t,"layout_type_in_video_enhanced_text_overlay",e,c,r,sQ(b,n,p))):t.imageOverlayAdContentRenderer?(t=lQ(b.Ta.get(),"layout_type_in_video_image_overlay",
p),p=sQ(b,n,p),p.push(new nQ(b.u,45E3,t)),r=rQ(b,t,"layout_type_in_video_image_overlay",e,c,r,p)):r=new FP("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new FP("InvideoOverlayAdRenderer without contentSupportedRenderer");return r});
return a instanceof QG?a:[a]};
Apa=function(a){var b;return 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};
Cpa=function(a,b,c,d,e,f,h,l,m,n,p){if(!e.playerVars)return new QG("No playerVars available in InstreamVideoAdRenderer.");if(!Apa(e))return new QG("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:e});var r=Vp(e.playerVars),t=Number(r.length_seconds);if(isNaN(t))return new QG("Expected valid length seconds in player vars");r.iv_load_policy=p;l.If&&(r.ctrl=l.If);l.xe&&(r.ytr=l.xe);l.Hi&&(r.ytrcc=l.Hi);l.isMdxPlayback&&(r.mdx="1");r.vvt&&(r.vss_credentials_token=r.vvt,l.cg&&(r.vss_credentials_token_type=
l.cg),l.mdxEnvironment&&(r.mdx_environment=l.mdxEnvironment));var w=n.get(e.externalVideoId);a=Bpa(a,c,f,h,d,function(x){var y=new kH(0,[t]);x=m(x);var D=e.elementId,E={layoutId:D,layoutType:"layout_type_media",sb:"core"};y=[new uJ(c),new vJ(y),new wJ(e.externalVideoId),new xJ(f),new yJ(e.playerOverlay.instreamAdPlayerOverlayRenderer),new VJ({impressionCommands:e.impressionCommands,onAbandonCommands:e.onAbandonCommands,completeCommands:e.completeCommands,adVideoProgressCommands:e.adVideoProgressCommands}),
new HJ(r),new DJ({current:null}),new GJ(t)];e.adNextParams&&y.push(new nJ(e.adNextParams));e.clickthroughEndpoint&&y.push(new oJ(e.clickthroughEndpoint));e.legacyInfoCardVastExtension&&y.push(new UJ(e.legacyInfoCardVastExtension));e.sodarExtensionData&&y.push(new IJ(e.sodarExtensionData));w&&y.push(new SJ(w));return{layoutId:D,layoutType:"layout_type_media",be:lH(e.pings),gf:[new qQ(b.u,D)],hf:e.skipOffsetMilliseconds?[new oQ(b.u,D)]:[],ff:[new oQ(b.u,D)],jf:[],sb:"core",Ba:new nP(y),Ke:x(E),adLayoutLoggingData:e.adLayoutLoggingData}});
return a instanceof QG?a:[a]};
tQ=function(a,b,c,d,e,f){this.ab=a;this.vb=b;this.Xa=c;this.u=d;this.Ih=e;this.loadPolicy=void 0===f?1:f};
OG=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,w,x,y,D,E,G=[];if(0===b.length)return G;b=b.filter(PG);for(var K=new Map,M=new Map,Ia=g.q(b),va=Ia.next();!va.done;va=Ia.next())(va=va.value.renderer.remoteSlotsRenderer)&&va.hostElementId&&M.set(va.hostElementId,va);Ia=g.q(b);for(va=Ia.next();!va.done;va=Ia.next()){va=va.value;var gb=Dpa(a,K,va,d,e,f,h,M);gb instanceof QG?$G(gb,void 0,void 0,{renderer:va.renderer,config:va.config.adPlacementConfig,kind:va.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):
G.push.apply(G,g.la(gb))}if(null===a.u||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),G.length||a||$G("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===(w=b[0])||void 0===w?void 0:w.renderer}),G;c=c.filter(PG);G.push.apply(G,g.la(epa(K,c,a.ab.get(),a.u,d)));G.length||$G("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(D=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===D?void 0:D.kind,renderer:null===(E=b[0])||
void 0===E?void 0:E.renderer});return G};
Dpa=function(a,b,c,d,e,f,h,l){function m(w){return xP(a.Xa.get(),w)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)kQ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.vb.get(),G=n.actionCompanionAdRenderer,K=xP(a.Xa.get(),w);return uQ(E,w.slotId,"layout_type_companion_with_action_button",new mJ(G),x,y,D,G.impressionPings,G.impressionCommands,K,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)kQ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.vb.get(),G=n.imageCompanionAdRenderer,K=xP(a.Xa.get(),w);return uQ(E,w.slotId,"layout_type_companion_with_image",new qJ(G),x,y,D,G.impressionPings,G.impressionCommands,K,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)kQ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(w,x,y,D){var E=a.vb.get(),G=n.shoppingCompanionCarouselRenderer,K=xP(a.Xa.get(),w);return uQ(E,w.slotId,"layout_type_companion_with_shopping",new rJ(G),x,y,D,G.impressionPings,G.impressionEndpoints,K,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!TG(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.Ih)return new QG("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");Epa(a.Ih,{adPlacementRenderer:c,contentCpn:d,oA:e});return[]}return Oma(a.ab.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return xpa(a.ab.get(),a.vb.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return zpa(a.ab.get(),
a.vb.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer&&f)return qpa(a.ab.get(),a.vb.get(),c,d,m);if((!n.remoteSlotsRenderer||f)&&n.instreamVideoAdRenderer&&!f)return iQ(b,n,r),Cpa(a.ab.get(),a.vb.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy)}return[]};
vQ=function(a){g.B.call(this);this.u=a};
LG=function(a,b,c,d){a.u().kh(b,d);c=c();a=a.u();wQ(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;NP(d.zb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.u;if(g.sc(c.slotId))throw new QG("Slot ID was empty");if(DP(e,c))throw new QG("Duplicate registration for slot.");if(!e.Ic.Oi.has(c.Ya))throw new QG("No fulfillment adapter factory registered for slot of type: "+c.Ya);if(!e.Ic.sj.has(c.Ya))throw new QG("No SlotAdapterFactory registered for slot of type: "+
c.Ya);eQ(e,5,c.Sb?[c.Sb]:[]);eQ(e,4,c.ae);eQ(e,3,c.Qe);var f=d.u,h=c.Ya+"_"+c.feedPosition,l=VP(f,h);if(DP(f,c))throw new QG("Duplicate slots not supported");l.set(c.slotId,new bQ(c));f.u.set(h,l)}catch(Wd){$G(Wd,c,void 0,void 0,Wd.Gk);break a}d.u.lm(c);try{var m=d.u,n=DP(m,c),p=c.Sb,r=m.Ic.Yf.get(p.triggerType);r&&(r.yg(5,p,c,null),n.X.set(p.triggerId,r));for(var t=g.q(c.ae),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.Ic.Yf.get(x.triggerType);y&&(y.yg(4,x,c,null),n.P.set(x.triggerId,y))}for(var D=
g.q(c.Qe),E=D.next();!E.done;E=D.next()){var G=E.value,K=m.Ic.Yf.get(G.triggerType);K&&(K.yg(3,G,c,null),n.N.set(G.triggerId,K))}var M=m.Ic.Oi.get(c.Ya).get(),Ia=m.C,va=c;var gb=xQ(va,{Ue:["metadata_type_fulfilled_layout"]})?new yQ(Ia,va):M.u(Ia,va);n.I=gb;var Hb=m.Ic.sj.get(c.Ya).get().u(m.F,c);Hb.init();n.B=Hb}catch(Wd){$G(Wd,c,void 0,void 0,Wd.Gk);AP(d,c,!0);break a}NP(d.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.u.sg(c);va=g.q(d.B);for(var bb=va.next();!bb.done;bb=va.next())bb.value.sg(c);
JP(d,c)}};
zQ=function(a,b,c,d){g.B.call(this);var e=this;this.gb=a;this.ab=b;this.Vb=c;this.u=new Map;d.get().addListener(this);g.dg(this,function(){d.get().removeListener(e)})};
Lma=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.ae),f=e.next();!f.done;f=e.next())f=f.value,f instanceof XG?(c=Math.min(c,f.B.start),d=Math.max(d,f.B.end)):$G("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new On(c,d);d="throttledadcuerange:"+b.slotId;a.u.set(d,b);a.Vb.get().addCueRange(d,c.start,c.end,!1,a)};
AQ=function(){g.B.apply(this,arguments);this.Wi=!0;this.u=new Map;this.B=new Map};
YN=function(a,b){for(var c=g.q(a.B.values()),d=c.next();!d.done;d=c.next()){d=g.q(d.value);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.layoutId===b)return e}$G("Trying to retrieve an unknown layout")};
BQ=function(){this.B=new Map;this.u=new Map;this.C=new Map};
CQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;a.B.set(b,c+1);return b+"_"+c}return bs()};
lQ=function(a,b,c){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.u.get(b)||0;a.u.set(b,d+1);return c+"_"+b+"_"+d}return bs()};
DQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;a.C.set(b,c+1);return b+"_"+c}return bs()};
EQ=function(a,b){this.layoutId=b;this.triggerType="trigger_type_close_requested";this.triggerId=a(this.triggerType)};
mQ=function(a,b){this.C=b;this.triggerType="trigger_type_layout_id_exited";this.triggerId=a(this.triggerType)};
FQ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
GQ=function(a,b){this.C=b;this.Ya="slot_type_player_bytes";this.layoutType="layout_type_media";this.triggerType="trigger_type_on_different_layout_id_entered";this.triggerId=a(this.triggerType)};
HQ=function(a,b){this.C=b;this.Ya="slot_type_in_player";this.triggerType="trigger_type_on_different_slot_id_enter_requested";this.triggerId=a(this.triggerType)};
qQ=function(a,b){this.layoutId=b;this.triggerType="trigger_type_on_layout_self_exit_requested";this.triggerId=a(this.triggerType)};
IQ=function(a,b){this.opportunityType="opportunity_type_ad_break_service_response_received";this.associatedSlotId=b;this.triggerType="trigger_type_on_opportunity_received";this.triggerId=a(this.triggerType)};
mpa=function(a){this.triggerType="trigger_type_playback_minimized";this.triggerId=a(this.triggerType)};
oQ=function(a,b){this.B=b;this.triggerType="trigger_type_skip_requested";this.triggerId=a(this.triggerType)};
pQ=function(a,b){this.B=b;this.triggerType="trigger_type_survey_submitted";this.triggerId=a(this.triggerType)};
nQ=function(a,b,c){this.durationMs=b;this.layoutId=c;this.triggerType="trigger_type_time_relative_to_layout_enter";this.triggerId=a(this.triggerType)};
Fpa=function(a,b,c,d,e,f){a=lQ(f,"layout_type_media_layout_player_overlay",a);var h={layoutId:a,layoutType:"layout_type_media_layout_player_overlay",sb:b};return{layoutId:a,layoutType:"layout_type_media_layout_player_overlay",be:new Map,gf:[new mQ(function(l){return DQ(f,l)},c.By)],
hf:[],ff:[],jf:[],sb:b,Ba:d,Ke:e(h)}};
JQ=function(a,b){var c=this;this.za=a;this.Ta=b;this.u=function(d){return DQ(c.Ta.get(),d)}};
KQ=function(a,b,c,d,e){return Fpa(b,c,d,new nP([new BJ(d.By),new yJ(d.instreamAdPlayerOverlayRenderer),new CJ(d.RP),new uJ(d.adPlacementConfig),new GJ(d.videoLengthSeconds),new TJ(d.zJ)]),e,a.Ta.get())};
uQ=function(a,b,c,d,e,f,h,l,m,n,p){b=lQ(a.Ta.get(),c,b);var r={layoutId:b,layoutType:c,sb:"core"},t=new Map;l?t.set("impression",l):m&&$G("Companion Ad Renderer without impression Pings but does have impressionCommands",void 0,void 0,{"impressionCommands length":m.length,adPlacementKind:h.kind,companionType:d.u()});return{layoutId:b,layoutType:c,be:t,gf:[new qQ(a.u,b),new GQ(a.u,f)],hf:[],ff:[],jf:[],sb:"core",Ba:new nP([d,new wJ(e),new uJ(h)]),Ke:n(r),adLayoutLoggingData:p}};
sQ=function(a,b,c){var d=[];d.push(new HQ(a.u,c));g.R(a.za.get().J.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d};
rQ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,sb:"core"};return{layoutId:b,layoutType:c,be:new Map,gf:h,hf:[new EQ(a.u,b)],ff:[],jf:[],sb:"core",Ba:new nP([new pJ(d),new uJ(e)]),Ke:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
spa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return mP(p,[],["layout_type_media"])})||$G("Unexpect subLayout type for DAI composite layout");
b=lQ(a.Ta.get(),"layout_type_composite_player_bytes",b);var n={layoutId:b,layoutType:"layout_type_composite_player_bytes",sb:"core"};return{layoutId:b,layoutType:"layout_type_composite_player_bytes",be:f,gf:[new FQ(a.u)],hf:[],ff:[],jf:[],sb:"core",Ba:new nP([new JJ(c),new KJ(m),new EJ(d),new uJ(e),new OJ(h)]),Ke:l(n)}};
vpa=function(a){return null!=a};
LQ=function(a,b,c){this.B=b;this.visible=c;this.triggerType="trigger_type_after_content_video_id_ended";this.triggerId=a(this.triggerType)};
MQ=function(a,b,c){this.layoutId=b;this.slotId=c;this.triggerType="trigger_type_layout_id_active_and_slot_id_has_exited";this.triggerId=a(this.triggerType)};
NQ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
OQ=function(a,b,c){this.C=b;this.B=c;this.triggerType="trigger_type_not_in_media_time_range";this.triggerId=a(this.triggerType)};
PQ=function(a,b){this.B=b;this.triggerType="trigger_type_on_new_playback_after_content_video_id";this.triggerId=a(this.triggerType)};
QQ=function(a,b){this.slotId=b;this.triggerType="trigger_type_on_element_self_enter_requested";this.triggerId=a(this.triggerType)};
RQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_entered";this.triggerId=a(this.triggerType)};
SQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_exited";this.triggerId=a(this.triggerType)};
TQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_empty";this.triggerId=a(this.triggerType)};
UQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_fulfilled_non_empty";this.triggerId=a(this.triggerType)};
VQ=function(a,b){this.u=b;this.triggerType="trigger_type_slot_id_scheduled";this.triggerId=a(this.triggerType)};
WQ=function(a){var b=this;this.Ta=a;this.u=function(c){return DQ(b.Ta.get(),c)}};
SG=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=CQ(a.Ta.get(),"slot_type_ad_break_request"),l=[];d.ym&&d.ym.start!==d.wg.start&&l.push(new XG(a.u,c,new On(d.ym.start,d.wg.start),!1));l.push(new XG(a.u,c,new On(d.wg.start,d.wg.end),d.zt));d={getAdBreakUrl:b.getAdBreakUrl,aF:d.wg.start,ZE:d.wg.end};b=new UQ(a.u,h);f=[new QJ(d)].concat(g.la(f));return{slotId:h,Ya:"slot_type_ad_break_request",feedPosition:1,Sb:b,ae:l,Qe:[new PQ(a.u,c),new SQ(a.u,h),new TQ(a.u,h)],sb:"core",Ba:new nP(f),adSlotLoggingData:e}};
YQ=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(XQ(a,b,e.value));return d};
XQ=function(a,b,c){return null!=c.u&&c.u===a?c.clone(b):c};
Gpa=function(a,b,c,d){var e=CQ(a.Ta.get(),"slot_type_in_player");c=new WG(a.u,c);var f={slotId:e,Ya:"slot_type_in_player",feedPosition:1,sb:"core",Sb:c};return{slotId:e,Ya:"slot_type_in_player",feedPosition:1,Sb:c,ae:[new RQ(a.u,e)],Qe:[new PQ(a.u,b),new SQ(a.u,e)],sb:"core",Ba:new nP([new PJ(d(f))])}};
ypa=function(a,b,c,d,e,f){var h=ZQ(a,b,c,d);if(h instanceof QG)return h;h instanceof XG&&(h=new XG(a.u,h.D,h.B,h.visible,h.C,!0));d=h instanceof XG?new OQ(a.u,c,h.B):null;b=CQ(a.Ta.get(),"slot_type_in_player");f=f({slotId:b,Ya:"slot_type_in_player",feedPosition:1,sb:"core",Sb:h},d);return f instanceof FP?new QG(f):{slotId:b,Ya:"slot_type_in_player",feedPosition:1,Sb:h,ae:[new RQ(a.u,b)],Qe:[new PQ(a.u,c),new SQ(a.u,b)],sb:"core",Ba:new nP([new PJ(f)]),adSlotLoggingData:e}};
lpa=function(a,b,c,d){var e=CQ(a.Ta.get(),"slot_type_in_player");c=new WG(a.u,c);var f={slotId:e,Ya:"slot_type_in_player",feedPosition:1,sb:"core",Sb:c};return{slotId:e,Ya:"slot_type_in_player",feedPosition:1,Sb:c,ae:[new RQ(a.u,e)],Qe:[new PQ(a.u,b),new SQ(a.u,e)],sb:"core",Ba:new nP([new PJ(d(f))])}};
hpa=function(a,b,c,d,e){var f=CQ(a.Ta.get(),"slot_type_in_player");c=new MQ(a.u,d,c);d={slotId:f,Ya:"slot_type_in_player",feedPosition:1,sb:"core",Sb:c};return{slotId:f,Ya:"slot_type_in_player",feedPosition:1,Sb:c,ae:[new RQ(a.u,f)],Qe:[new PQ(a.u,b)],sb:"core",Ba:new nP([new PJ(e(d))])}};
dpa=function(a,b,c,d,e,f){var h=CQ(a.Ta.get(),b);return $Q(a,h,b,new WG(a.u,d),c,e,f)};
cpa=function(a,b,c,d,e,f){return $Q(a,c,b,new QQ(a.u,c),d,e,f)};
opa=function(a,b,c){var d=CQ(a.Ta.get(),"slot_type_player_bytes"),e=new NQ(a.u),f={slotId:d,Ya:"slot_type_player_bytes",feedPosition:1,sb:"core",Sb:e};return{slotId:d,Ya:"slot_type_player_bytes",feedPosition:1,Sb:e,ae:[new VQ(a.u,d)],Qe:[new PQ(a.u,b)],sb:"core",Ba:new nP([new PJ(c(f)),new MJ({})])}};
Bpa=function(a,b,c,d,e,f){var h=CQ(a.Ta.get(),"slot_type_player_bytes");b=ZQ(a,b,c,d);if(b instanceof QG)return b;d={slotId:h,Ya:"slot_type_player_bytes",feedPosition:1,sb:"core",Sb:b};return{slotId:h,Ya:"slot_type_player_bytes",feedPosition:1,Sb:b,ae:[new RQ(a.u,h)],Qe:[new SQ(a.u,h),new PQ(a.u,c)],sb:"core",Ba:new nP([new PJ(f(d))]),adSlotLoggingData:e}};
wpa=function(a,b,c,d,e,f){var h=CQ(a.Ta.get(),"slot_type_forecasting");b=ZQ(a,b,c,d);if(b instanceof QG)return b;d={slotId:h,Ya:"slot_type_forecasting",feedPosition:1,sb:"core",Sb:b};return{slotId:h,Ya:"slot_type_forecasting",feedPosition:1,Sb:b,ae:[new RQ(a.u,h)],Qe:[new SQ(a.u,h),new PQ(a.u,c)],sb:"core",Ba:new nP([new PJ(f(d))]),adSlotLoggingData:e}};
ZQ=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new UG(a.u,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=RG(b,d);if(b instanceof QG)return b;b=b.wg;return new XG(a.u,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new LQ(a.u,c,e);default:return new QG("Cannot construct entry trigger",{kind:b.kind})}};
$Q=function(a,b,c,d,e,f,h){var l={slotId:b,Ya:c,feedPosition:1,sb:"core",Sb:d};return{slotId:b,Ya:c,feedPosition:1,Sb:d,ae:[new RQ(a.u,b)],Qe:[new PQ(a.u,e),new SQ(a.u,b)],sb:"core",Ba:new nP([new PJ(h(l))]),adSlotLoggingData:f}};
aR=function(a,b,c){g.B.call(this);this.za=a;this.u=b;this.Da=c;this.eventCount=0};
NP=function(a,b,c){wQ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
EP=function(a,b,c,d){wQ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
Uoa=function(a,b,c,d){g.R(a.za.get().J.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&wQ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c)};
wQ=function(a,b,c,d,e,f,h,l,m,n){if(g.R(a.za.get().J.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.R(a.za.get().J.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=wP(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var r=g.Q(a.za.get().J.T().experiments,"html5_experiment_id_label"),t={organicPlaybackContext:{contentCpn:NG(a.Da.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=NG(a.Da.get(),1).qg;0<r&&(t.html5ExperimentContext=
{ytExperimentId:r});a={};f&&(a.slotData=tP(p,f));h&&(a.layoutData=uP(p,h));l&&(f={type:rP.get(l.trigger.triggerType)||"TRIGGER_TYPE_UNSPECIFIED",category:Hpa.get(l.category)||"TRIGGER_CATEGORY_UNSPECIFIED"},a.triggerData=f);c&&(a.opportunityData=Toa(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Fq("adsClientStateChange",{adsClientEvent:b})}};
bR=function(){this.u=new Map};
cR=function(a,b,c){this.u=a;this.wa=b;this.xd=c;this.listeners=[]};
dR=function(a,b,c,d,e,f,h){var l;if(""===b)$G("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{a.wa.get().ai(b,c,d,e,f,h);null===(l=a.xd)||void 0===l?void 0:l.get().ai(b,c,d,e,f,h);a.u.ai(b,c,d,e,f,h);a=g.q(a.listeners);for(var m=a.next();!m.done;m=a.next())m.value.ai(b,c,d,e,f,h)}};
eR=function(a){g.B.call(this);this.J=a;this.u=new Map;this.B=new g.Pr(this);g.C(this,this.B);this.B.R(this.J,g.rD("ad"),this.C,this);this.B.R(this.J,g.sD("ad"),this.D,this)};
fR=function(a,b,c,d,e){g.oD.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
gR=function(a){this.J=a};
hR=function(a){return g.R(a.J.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
iR=function(a){var b=g.fC(a.J.T())||a.J.T().u||g.jC(a.J.T())||kC(a.J.T())||XB(a.J.T()),c=iC(a.J.T())&&g.R(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_remix");a=g.VB(a.J.T())&&!g.hC(a.J.T())&&g.R(a.J.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||c||a};
OL=function(a){return g.R(a.J.T().experiments,"html5_pacf_enable_dai")};
VL=function(a){return g.R(a.J.T().experiments,"html5_handle_preroll_lock_in_pacf")};
jR=function(a){return g.R(a.J.T().experiments,"html5_recognize_predict_start_cue_point")};
kR=function(a){return g.R(a.J.T().experiments,"drop_overlay_ads_on_cba_violation")};
lR=function(a,b){this.wa=a;this.J=b;this.u=new Map;JH().subscribe("adactiveviewmeasurable",this.C,this);JH().subscribe("adfullyviewableaudiblehalfdurationimpression",this.B,this);JH().subscribe("adviewableimpression",this.D,this)};
Ipa=function(a,b,c,d){d=void 0===d?null:d;a.u.has(b)?$G("Unexpected registration of layout in LidarApi"):(a.u.set(b,d),ena(JH(),b,{wo:function(){return{currentTime:WP(a.wa.get(),2,!1),duration:c,Cb:2===a.wa.get().getPresentingPlayerType()&&1===mR(a.wa.get(),2),OV:!1,PV:!0,volume:a.wa.get().isMuted()?0:a.wa.get().getVolume()/100}}}))};
yoa=function(a,b,c){if(!a.u.has(b))return{};if("seek"===c)return a=g.R(a.J.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock"),Hl(b,a),{};c=TH(c);if(null===c)return{};var d=a.J.Qb();d=d&&2===d.getPlayerType()&&iI(d);if(!d)return{};a={opt_adElement:d,opt_fullscreen:a.wa.get().isFullscreen()};return Gl(c,b,a)};
nR=function(a,b){this.u=a;this.C=b};
oR=function(a,b,c,d){var e=void 0===e?new nR(function(){var f=a.getVideoData(1);return f?f.Ye():""},function(){return a.T().pageId}):e;
this.J=a;this.fd=b;this.tb=c;this.Da=d;this.Pn=e;this.B=null;this.u=new Map;this.lh=new MH(e,g.R(a.T().experiments,"enable_server_sent_ping_header_support_for_html5"),g.R(a.T().experiments,"enable_client_page_id_header_for_first_party_pings"))};
pR=function(a,b,c,d){d=void 0===d?[]:d;(c=YN(a.fd.get(),c))?(c=WN(a,ZN(c),c),b.hasOwnProperty("baseUrl")?a.Pn.send(b,c):a.lh.send(b,c,{},d)):$G("Trying to ping from an unknown layout")};
rR=function(a){if(a=a.J.Qb())if(a=qR(a.I))return a;return function(){}};
Jpa=function(a,b){a.u.has(b.Br())?$G("Trying to register an existing AdErrorInfoSupplier."):a.u.set(b.Br(),b)};
Kpa=function(a,b){a.u["delete"](b.Br())||$G("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
ZN=function(a){var b=fO(a.Ba,"metadata_type_ad_placement_config");a=fO(a.Ba,"metadata_type_sub_layout_index");return{adPlacementConfig:b,pC:a}};
WN=function(a,b,c){var d=c?Lpa(a):{};c=c?Mpa(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},BH(a.J)),$ma(b.adPlacementConfig)),(e.SLOT_POS=AH(function(){return(b.pC||0).toString()}),e)),c),d),(f.FINAL=AH(function(){return"1"}),f.AD_CPN=AH(function(){var l;
return(null===(l=NG(a.Da.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(Npa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
Lpa=function(a){var b,c={},d=null===(b=a.B)||void 0===b?void 0:b.u();null!=d&&(c.SURVEY_ELAPSED_MS=AH(function(){return(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=AH(function(){return Math.round(Date.now()/1E3).toString()});
return c};
Mpa=function(a,b){var c=a.u.get(b);if(!c)return{};c=c.SA();if(!c)return{};var d={};return d.ERRORCODE=c.hu.toString(),d.ERROR_MSG=c.errorMessage,d};
g.sR=function(){g.Pr.apply(this,arguments)};
tR=function(a,b){g.B.call(this);this.J=a;this.Ac=b;this.listeners=[];var c=new g.sR(this);g.C(this,c);c.R(a,"videodatachange",this.sP);this.u=NG(this);this.contentCpn=NG(this,1).clientPlaybackNonce};
NG=function(a,b){var c=a.J.getVideoData(b);return c?a.Iq(c):null};
uR=function(a){g.B.call(this);this.J=a;this.listeners=[];this.u=function(){$G("Called 'doUnlockPreroll' before it's initialized.")};
var b=new g.Pr(this);g.C(this,b);b.R(a,"progresssync",this.sO);b.R(a,"presentingplayerstatechange",this.jO);b.R(a,"fullscreentoggled",this.WJ);b.R(a,"onVolumeChange",this.XJ);b.R(a,"minimized",this.lj);b.R(a,"resize",this.Qa)};
WP=function(a,b,c){return a.J.getCurrentTime(b,c)};
mR=function(a,b){return g.fI(a.J,b)};
Opa=function(a){var b=g.yG(a.J).getPlayerSize();a=a.J.Nh(!0,!0);return b.height-(a.height+a.top)};
Ppa=function(a,b,c){g.B.call(this);var d=this;this.Ta=X(function(){return new BQ});
g.C(this,this.Ta);this.vb=X(function(){return new JQ(d.za,d.Ta)});
g.C(this,this.vb);this.Pb=X(function(){return new AQ});
g.C(this,this.Pb);this.gb=X(function(){return new vQ(a)});
g.C(this,this.gb);this.ab=X(function(){return new WQ(d.Ta)});
g.C(this,this.ab);this.Ac=X(function(){return new bR});
g.C(this,this.Ac);this.Vb=X(function(){return new eR(b)});
g.C(this,this.Vb);this.za=X(function(){return new gR(b)});
g.C(this,this.za);this.Xa=X(function(){return new yP(d.za)});
g.C(this,this.Xa);this.Yb=X(function(){return new tQ(d.ab,d.vb,d.Xa,null,null)});
g.C(this,this.Yb);this.Da=X(function(){return new tR(b,d.Ac)});
g.C(this,this.Da);this.zb=new aR(this.za,this.Xa,this.Da);g.C(this,this.zb);this.wa=X(function(){return new uR(b)});
g.C(this,this.wa);this.tb=X(function(){return new lR(d.wa,b)});
g.C(this,this.tb);this.Ga=X(function(){return new oR(b,d.Pb,d.tb,d.Da)});
g.C(this,this.Ga);this.Db=new aH(this.gb,this.Yb,c,this.za,a,this.Da);g.C(this,this.Db);var e=new cR(this.Db,this.wa);this.nd=X(function(){return e});
this.ij=e;this.Jc=new zQ(this.gb,this.ab,this.Vb,this.nd);g.C(this,this.Jc);this.Eb=new KG(this.gb,this.ab,this.Yb,this.Da,this.Jc,c);g.C(this,this.Eb);this.Ic={Hl:new Map,Oi:new Map,Yf:new Map,sj:new Map,bj:new Map};this.listeners=[];this.kf={Eb:this.Eb,Fk:null,dj:null,Pf:this.za.get(),pk:this.wa.get(),Db:this.Db,cj:null}};
Qpa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.vb=c;this.Xa=d;this.za=e;this.u=null};
Rpa=function(a,b,c){a.u&&$G("Currently active request ongoing for slot. This should never happen",a.slot);a.u=b();a.u.then(function(d){a.u=null;c&&c(d);var e;if(e=hR(a.za.get()))if(e=!d.Xl)a:{e=g.q(a.slot.ae);for(var f=e.next();!f.done;f=e.next())if(f.value instanceof UG){e=!0;break a}e=!1}if(e)for(e=g.q(d.Gg),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&$G("Detected deferred preroll overlay.",a.slot,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||
"unknown"});e=d.Xl?"layout_type_throttled_ad_break_response":"layout_type_ad_break_response";f=a.vb.get();var h=a.slot.slotId,l=xP(a.Xa.get(),{slotId:a.slot.slotId,Ya:a.slot.Ya,feedPosition:a.slot.feedPosition,sb:a.slot.sb,Sb:a.slot.Sb}),m=lQ(f.Ta.get(),e,h),n={layoutId:m,layoutType:e,sb:"core"};d={layoutId:m,layoutType:e,be:new Map,gf:[new IQ(f.u,h)],hf:[],ff:[],jf:[],sb:"core",Ba:new nP([new RJ(d)]),Ke:l(n)};LP(a.callback,a.slot,d)},function(d){a.u=null;
d instanceof Qm||BP(a.callback,a.slot,new QG(d,void 0,!0))})};
Spa=function(a){if(null==a.u)OP(a.callback,a.slot);else try{a.u.cancel(),a.u=null,OP(a.callback,a.slot)}catch(b){a.u=null,BP(a.callback,a.slot,new QG(b))}};
vR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Mc=c;this.B=new Qpa(a,b,d,e,f)};
wR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.Mc=c;this.B=new Qpa(a,b,d,e,f)};
yQ=function(a,b){this.callback=a;this.slot=b};
xQ=function(a,b){return IG(a,b.Ue,b.Ya)?!0:!1};
Tpa=function(){};
xR=function(a,b,c,d){this.Mc=a;this.vb=b;this.Xa=c;this.za=d};
yR=function(){};
Upa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.u=d};
zR=function(a,b){return mP(a,b.Ue,b.Xh)?!0:!1};
AR=function(a){this.B=a};
Vpa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ga=d;this.u=e;a=fO(this.layout.Ba,"metadata_type_ad_placement_config");this.Pa=new UN(c.be,this.Ga,a,c.layoutId)};
Wpa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];VN().forEach(function(b){a.push(b)});
return{Ue:a,Xh:["layout_type_forecasting"]}};
BR=function(a,b,c){this.Ga=a;this.B=b;this.tb=c};
CR=function(a,b,c,d){g.P.call(this);this.callback=a;this.slot=b;this.layout=c;this.jq=d;this.xj=[]};
DR=function(a,b,c,d,e,f,h){e=fO(c.Ba,e);a=XN(a);var l=eb(function(){d.Yd(b,c)});
h.push(f(e,a,{adsClientData:c.Ke},function(){l()}))};
FR=function(a,b,c,d,e,f,h,l){if(b===a){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"slot_type_player_bytes"===b.Ya&&ER(f,c.get(b))){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():$G("Tried to call engagePingCallback but it is null",h,l)}};
ER=function(a,b){return mP(b,["metadata_type_ad_video_id"],["layout_type_media"])&&a===fO(b.Ba,"metadata_type_ad_video_id")?!0:!1};
GR=function(a,b,c,d,e,f,h,l){CR.call(this,a,b,c,d);this.Ga=e;this.dg=f;this.fd=l;this.Wi=!0;this.Ng=null;this.Qn="action-companion";this.Ck=fO(c.Ba,"metadata_type_ad_video_id");a=this.dg();a.B.add(this);g.C(a,this);a=fO(c.Ba,"metadata_type_ad_placement_config");this.Pa=new UN(c.be,this.Ga,a,c.layoutId)};
Xpa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_ad_video_id"];VN().forEach(function(b){a.push(b)});
return{Ue:a,Xh:["layout_type_companion_with_action_button"]}};
HR=function(a,b,c,d,e,f,h){CR.call(this,a,b,c,d);this.wa=e;this.Ga=f;this.fd=h;this.u=!1;this.B=fO(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
Ypa=function(){return{Ue:["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"],Xh:["layout_type_media_layout_player_overlay"]}};
IR=function(a,b,c,d,e,f,h){return zR(c,Ypa())?new HR(a,b,c,d,e,f,h):null};
JR=function(a,b,c,d){this.Hb=a;this.wa=b;this.Ga=c;this.fd=d};
KR=function(a,b,c,d,e,f,h,l){g.B.call(this);this.B=a;this.u=b;this.C=c;this.gb=d;this.ab=e;this.Xa=f;this.za=h;this.Da=l;this.Wi=!0};
Zpa=function(a){var b;return iR(a.za.get())||(null===(b=NG(a.Da.get()))||void 0===b?0:b.daiEnabled)&&OL(a.za.get())?!0:!1};
LR=function(a){var b,c=null===(b=fO(a.Ba,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=fO(a.Ba,"metadata_type_content_cpn"),f=fO(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=fO(a.Ba,"metadata_type_ad_placement_config"),l=fO(a.Ba,"metadata_type_video_length_seconds");a=a.Ba.u.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?fO(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.Ba.u.has("metadata_type_layout_enter_ms")&&a.Ba.u.has("metadata_type_layout_exit_ms")?
(fO(a.Ba,"metadata_type_layout_exit_ms")-fO(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;c={By:d,contentCpn:e,RP:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,zJ:a}}else c=null;return c};
$pa=function(a,b){this.callback=a;this.slot=b};
MR=function(){};
aqa=function(a,b,c){this.callback=a;this.slot=b;this.wa=c};
bqa=function(a,b,c){this.callback=a;this.slot=b;this.wa=c;this.u=!1};
cqa=function(a){a.u&&(a.wa.get().u(),a.u=!1)};
NR=function(a){this.wa=a};
OR=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
PR=function(a,b){g.B.call(this);var c=this;this.B=a;this.Hb=b;this.u=new Map;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(c)})};
QR=function(a){g.B.call(this);this.u=a;this.Wi=!0;this.B=new Map;this.I=new Set;this.D=new Set;this.F=new Set;this.K=new Set;this.C=new Set};
RR=function(a,b){g.B.call(this);var c=this;this.B=a;this.u=new Map;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(c)})};
dqa=function(a,b,c){var d=[];a=g.q(a.values());for(var e=a.next();!e.done;e=a.next())e=e.value,e.trigger instanceof PQ&&e.trigger.B===b===c&&d.push(e);return d};
eqa=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof UG&&e.trigger.B===b&&c.push(e);return c};
SR=function(a,b,c,d){g.B.call(this);var e=this;this.D=a;this.Vb=b;this.wa=c;this.Da=d;this.u=new Map;this.B=new Set;this.C=new Set;c.get().addListener(this);g.dg(this,function(){c.get().removeListener(e)})};
TR=function(a,b,c,d,e,f,h,l,m,n){if(NG(a.Da.get(),1).clientPlaybackNonce!==m)throw new QG("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.u.set(c.triggerId,{bundle:new OR(b,c,d,e),qm:f});a.Vb.get().addCueRange(f,h,l,n,a)};
fqa=function(a,b){for(var c=g.q(a.u.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if(b===e.qm)return d}return""};
UR=function(a){g.B.call(this);this.D=a;this.Wi=!0;this.C=new Map;this.B=this.u=null};
gqa=function(a,b){for(var c=[],d=g.q(a.C.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof qQ){var f;if(f=e.trigger.layoutId===b)f=(f=RP.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&QP(a.D(),c)};
VR=function(a){g.B.call(this);this.B=a;this.Wi=!0;this.u=new Map};
WR=function(a,b,c,d,e,f){g.B.call(this);this.C=a;this.sd=b;this.Xa=c;this.Da=d;this.za=e;this.Ta=f;this.u=this.B=null;this.sd.get().addListener(this)};
YR=function(a,b){this.Bu=a;this.za=b};
hqa=function(a,b){if(!a)return{Gg:[],Xl:!0};a.trackingParams&&eL(dL(),a.trackingParams);if(a.adThrottled)return{Gg:[],Xl:!0};var c=a.playerAds;if(!c||!c.length)return{Gg:[],Xl:!1};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{Gg:[],Xl:!1};if(0<b.end){var d=b.end.toString();c.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===e.kind&&e.adTimeOffset&&"-1"===e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!==d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}return{Gg:c,
Xl:!1}};
ZR=function(a){g.B.call(this);this.J=a;this.listeners=[];this.u=new Map;this.B=new g.Pr(this);g.C(this,this.B);this.B.R(this.J,"aduxclicked",this.onAdUxClicked);this.B.R(this.J,"aduxmouseover",this.VJ);this.B.R(this.J,"aduxmouseout",this.UJ);this.B.R(this.J,"muteadaccepted",this.hM)};
iqa=function(a,b,c){b=g.Pc(b,function(d){return new gH(d,c,d.id)});
a.J.va("onAdUxUpdate",b)};
$R=function(a,b,c){b=a.u.get(b);a=g.q(a.listeners);for(var d=a.next();!d.done;d=a.next())c(d.value,b)};
jqa=function(a,b,c){return a.u.has(b.componentType)&&a.u.get(b.componentType).layoutId===c.layoutId};
aS=function(){this.listeners=[]};
bS=function(a){this.u=a};
kqa=function(a){this.J=a};
lqa=function(){};
mqa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Da=d;this.Gf=e;this.xd=f;this.wa=h;this.Pa=l;this.Ga=m;this.B=n;this.u=null;this.driftRecoveryMs=fO(c.Ba,"metadata_type_drift_recovery_ms")||null};
oqa=function(a,b){var c=nqa(a,b);a.u={Eh:c};c&&c.startRendering()};
qqa=function(a){var b=fO(a.layout.Ba,"metadata_type_layout_enter_ms"),c=fO(a.layout.Ba,"metadata_type_layout_exit_ms");a=pqa(a.xd.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
nqa=function(a,b){return null==b?null:a.B.find(function(c){return c.layout.layoutId===b})||null};
cS=function(a,b){var c;a.Ga.get();var d={driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.Da.get().u)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ke.adClientDataEntry},b)};g.Fq("adsClientStateChange",d)};
dS=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
rqa=function(a,b,c,d,e,f,h,l,m){this.callback=a;this.slot=b;this.layout=c;this.Gf=d;this.Pa=e;this.wa=f;this.Ac=h;this.tb=l;this.Sl=m;this.ba=!0;this.u=null};
sqa=function(a,b,c,d){var e=fO(a.layout.Ba,"metadata_type_video_length_seconds");0>=e||0>=c||g.T(b,16)||g.T(b,32)||(dS(c,.25*e,d)&&aO(a.Pa,"first_quartile"),dS(c,.5*e,d)&&aO(a.Pa,"midpoint"),dS(c,.75*e,d)&&aO(a.Pa,"third_quartile"))};
tqa=function(a){return Object.assign(Object.assign({},eS(a)),{adPlacementConfig:fO(a.Ba,"metadata_type_ad_placement_config"),subLayouts:fO(a.Ba,"metadata_type_sub_layouts").map(eS)})};
eS=function(a){return{enterMs:fO(a.Ba,"metadata_type_layout_enter_ms"),exitMs:fO(a.Ba,"metadata_type_layout_exit_ms")}};
fS=function(a,b,c,d,e,f,h,l){this.Da=a;this.Gf=b;this.wa=c;this.Ga=d;this.Ac=e;this.xd=f;this.tb=h;this.Sl=l};
gS=function(a,b,c,d,e,f){g.B.call(this);var h=this;this.gb=a;this.ab=b;this.Da=c;this.xd=e;this.wa=f;this.u=null;d.get().addListener(this);g.dg(this,function(){d.get().removeListener(h)});
e.get().addListener(this);g.dg(this,function(){e.get().removeListener(h)})};
Epa=function(a,b){if(NG(a.Da.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.u)$G("Unexpected multiple fetch instructions for the current content");else{a.u=b;for(var c=g.q(a.xd.get().u),d=c.next();!d.done;d=c.next())uqa(a,a.u,d.value)}};
uqa=function(a,b,c){var d=WP(a.wa.get(),1,!1);LG(a.gb.get(),"opportunity_type_live_stream_break_signal",function(){var e=a.ab.get();var f=1E3*c.startSecs;f={wg:new On(f,f+1E3*c.durationSecs),zt:!1};var h=c.startSecs+c.durationSecs;f.ym=c.startSecs<=d?new On(1E3*(c.startSecs-4),1E3*h):new On(1E3*Math.floor(d+Math.random()*Math.max(0,c.startSecs-d-10)),1E3*h);return[SG(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,b.contentCpn,f,b.adPlacementRenderer.adSlotLoggingData,[new FJ(c)])]})};
hS=function(a,b){var c;g.B.call(this);var d=this;this.D=a;this.B=new Map;this.C=new Map;this.u=null;b.get().addListener(this);g.dg(this,function(){b.get().removeListener(d)});
this.u=(null===(c=b.get().u)||void 0===c?void 0:c.slotId)||null};
vqa=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.slot.slotId===b&&c.push(e);return c};
iS=function(a,b,c,d){g.B.call(this);this.J=a;this.Da=b;this.za=c;this.Ga=d;this.listeners=[];this.B=new Set;this.u=[];this.D=new vK(this,jR(c.get()));this.C=new wK;wqa(this)};
pqa=function(a,b,c){return xK(a.C,b,c)};
wqa=function(a){var b,c=a.J.getVideoData(1);c.subscribe("cuepointupdated",a.mx,a);a.B.clear();a.u.length=0;c=(null===(b=c.ma)||void 0===b?void 0:Kz(b,0))||[];a.mx(c)};
xqa=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");}};
yqa=function(a){this.J=a};
Aqa=function(a,b,c){zqa(a.J,b,c)};
jS=function(){this.listeners=new Set};
kS=function(a,b,c,d,e,f,h,l){CR.call(this,a,b,c,d);this.Ga=e;this.dg=f;this.fd=l;this.Wi=!0;this.Ng=null;this.Qn="image-companion";this.Ck=fO(c.Ba,"metadata_type_ad_video_id");a=this.dg();a.B.add(this);g.C(a,this);a=fO(c.Ba,"metadata_type_ad_placement_config");this.Pa=new UN(c.be,this.Ga,a,c.layoutId)};
Bqa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_ad_video_id"];VN().forEach(function(b){a.push(b)});
return{Ue:a,Xh:["layout_type_companion_with_image"]}};
lS=function(a,b,c,d,e,f,h,l){CR.call(this,a,b,c,d);this.Ga=e;this.dg=f;this.fd=l;this.Wi=!0;this.Ng=null;this.Qn="shopping-companion";this.Ck=fO(c.Ba,"metadata_type_ad_video_id");a=this.dg();a.B.add(this);g.C(a,this);a=fO(c.Ba,"metadata_type_ad_placement_config");this.Pa=new UN(c.be,this.Ga,a,c.layoutId)};
Cqa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_ad_video_id"];VN().forEach(function(b){a.push(b)});
return{Ue:a,Xh:["layout_type_companion_with_shopping"]}};
Dqa=function(a,b,c,d,e){this.Hb=a;this.Ga=b;this.dg=c;this.fd=d;this.tb=e};
mS=function(a,b,c,d,e,f,h,l,m,n){CR.call(this,f,a,b,e);this.Ga=c;this.u=h;this.wa=l;this.fg=m;this.za=n;this.Pa=gO(b,c)};
Eqa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];VN().forEach(function(b){a.push(b)});
return{Ue:a,Xh:["layout_type_in_video_text_overlay","layout_type_in_video_enhanced_text_overlay"]}};
nS=function(a,b,c,d,e,f,h,l,m,n,p){CR.call(this,f,a,b,e);this.Ga=c;this.u=h;this.C=l;this.wa=m;this.fg=n;this.za=p;this.Pa=gO(b,c)};
Fqa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.ob(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.he(0,0):new g.he(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
oS=function(a,b,c,d,e,f,h,l,m){this.Hb=a;this.wa=b;this.Ga=c;this.fd=d;this.tb=e;this.B=f;this.C=h;this.fg=l;this.za=m};
pS=function(a){g.B.call(this);this.B=a;this.u=new Map};
qS=function(a,b){for(var c=[],d=g.q(a.u.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.layoutId===b.layoutId&&c.push(e);c.length&&QP(a.B(),c)};
rS=function(a){g.B.call(this);this.D=a;this.Wi=!0;this.B=new Map;this.u=new Map;this.C=new Map};
Gqa=function(a,b){var c=[],d=a.u.get(b.layoutId);if(d){d=g.q(d);for(var e=d.next();!e.done;e=d.next())(e=a.C.get(e.value.triggerId))&&c.push(e)}return c};
sS=function(a,b,c){g.B.call(this);this.u=a;this.Yh=b;this.Ta=c;this.slot=void 0;this.Yh.get().addListener(this)};
Hqa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ta=X(function(){return new BQ});
g.C(this,this.Ta);this.vb=X(function(){return new JQ(f.za,f.Ta)});
g.C(this,this.vb);this.Pb=X(function(){return new AQ});
g.C(this,this.Pb);this.gb=X(function(){return new vQ(a)});
g.C(this,this.gb);this.ab=X(function(){return new WQ(f.Ta)});
g.C(this,this.ab);this.Ac=X(function(){return new bR});
g.C(this,this.Ac);this.Hb=X(function(){return new ZR(b)});
g.C(this,this.Hb);this.fg=X(function(){return new bS(e)});
g.C(this,this.fg);this.Vb=X(function(){return new eR(b)});
g.C(this,this.Vb);this.za=X(function(){return new gR(b)});
g.C(this,this.za);this.Mc=X(function(){return new YR(d,f.za)});
g.C(this,this.Mc);this.Xa=X(function(){return new yP(f.za)});
g.C(this,this.Xa);this.Yb=X(function(){return new tQ(f.ab,f.vb,f.Xa,"slot_type_above_feed",f.Ih)});
g.C(this,this.Yb);this.sd=X(function(){return new aS});
g.C(this,this.sd);this.Yh=X(function(){return new jS});
g.C(this,this.Yh);this.Da=X(function(){return new tR(b,f.Ac)});
g.C(this,this.Da);this.zb=new aR(this.za,this.Xa,this.Da);g.C(this,this.zb);this.xd=X(function(){return new iS(b,f.Da,f.za,f.Ga)});
g.C(this,this.xd);this.Gf=X(function(){return new yqa(b)});
g.C(this,this.Gf);this.wa=X(function(){return new uR(b)});
g.C(this,this.wa);this.Sl=X(function(){return new lqa});
this.tb=X(function(){return new lR(f.wa,b)});
g.C(this,this.tb);this.Ga=X(function(){return new oR(b,f.Pb,f.tb,f.Da)});
g.C(this,this.Ga);this.se=new KR(LR,tS,function(l,m,n,p){return KQ(f.vb.get(),l,m,n,p)},this.gb,this.ab,this.Xa,this.za,this.Da);
g.C(this,this.se);this.Db=new aH(this.gb,this.Yb,c,this.za,a,this.Da);g.C(this,this.Db);var h=new cR(this.Db,this.wa,this.xd);this.nd=X(function(){return h});
this.ij=h;this.Ih=new gS(this.gb,this.ab,this.Da,this.nd,this.xd,this.wa);g.C(this,this.Ih);this.Jc=new zQ(this.gb,this.ab,this.Vb,this.nd);g.C(this,this.Jc);this.Eb=new KG(this.gb,this.ab,this.Yb,this.Da,this.Jc,c);g.C(this,this.Eb);this.ee=X(function(){return new xR(f.Mc,f.vb,f.Xa,f.za)});
g.C(this,this.ee);this.kc=X(function(){return new yR});
g.C(this,this.kc);this.ge=new PR(a,this.Hb);g.C(this,this.ge);this.Va=new QR(a);g.C(this,this.Va);this.Qk=new pS(a);g.C(this,this.Qk);this.Uc=new RR(a,this.nd);g.C(this,this.Uc);this.Pc=new SR(a,this.Vb,this.wa,this.Da);g.C(this,this.Pc);this.wl=new hS(a,this.Da);g.C(this,this.wl);this.hc=new UR(a);g.C(this,this.hc);this.re=new VR(a);g.C(this,this.re);this.Yl=new rS(a);g.C(this,this.Yl);this.dc=X(function(){return new MR});
g.C(this,this.dc);this.te=X(function(){return new NR(f.wa)});
g.C(this,this.te);this.Jz=X(function(){return new Dqa(f.Hb,f.Ga,a,f.Pb,f.tb)});
g.C(this,this.Jz);this.de=X(function(){return new AR(f.Eb)});
g.C(this,this.de);this.he=X(function(){return new BR(f.Ga,f.hc,f.tb)});
g.C(this,this.he);this.Ap=X(function(){return new fS(f.Da,f.Gf,f.wa,f.Ga,f.Ac,f.xd,f.tb,f.Sl)});
g.C(this,this.Ap);this.Ug=X(function(){return new oS(f.Hb,f.wa,f.Ga,f.Pb,f.tb,f.Qk,f.Yl,f.fg,f.za)});
g.C(this,this.Ug);this.Eu=new sS(a,this.Yh,this.Ta);g.C(this,this.Eu);this.pj=new WR(a,this.sd,this.Xa,this.Da,this.za,this.Ta);g.C(this,this.pj);this.Ic={Hl:new Map([["opportunity_type_ad_break_service_response_received",this.Eb],["opportunity_type_live_stream_break_signal",this.Ih],["opportunity_type_player_bytes_media_layout_entered",this.se],["opportunity_type_player_response_received",this.Db],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Jc]]),Oi:new Map([["slot_type_ad_break_request",
this.ee],["slot_type_above_feed",this.kc],["slot_type_forecasting",this.kc],["slot_type_in_player",this.kc],["slot_type_player_bytes",this.kc]]),Yf:new Map([["trigger_type_skip_requested",this.ge],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",
this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_on_different_slot_id_enter_requested",this.Va],["trigger_type_close_requested",this.Qk],["trigger_type_before_content_video_id_started",this.Uc],["trigger_type_after_content_video_id_ended",this.Pc],["trigger_type_media_time_range",this.Pc],["trigger_type_not_in_media_time_range",this.Pc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wl],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wl],["trigger_type_on_layout_self_exit_requested",
this.hc],["trigger_type_on_element_self_enter_requested",this.hc],["trigger_type_on_new_playback_after_content_video_id",this.Uc],["trigger_type_on_opportunity_received",this.re],["trigger_type_time_relative_to_layout_enter",this.Yl]]),sj:new Map([["slot_type_above_feed",this.dc],["slot_type_ad_break_request",this.dc],["slot_type_forecasting",this.dc],["slot_type_in_player",this.dc],["slot_type_player_bytes",this.te]]),bj:new Map([["slot_type_above_feed",this.Jz],["slot_type_ad_break_request",this.de],
["slot_type_forecasting",this.he],["slot_type_player_bytes",this.Ap],["slot_type_in_player",this.Ug]])};this.listeners=[this.Pb.get()];this.kf={Eb:this.Eb,Fk:this.hc,dj:this.sd.get(),Pf:this.za.get(),pk:this.wa.get(),Db:this.Db,cj:this.Yh.get()}};
Iqa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Ta=X(function(){return new BQ});
g.C(this,this.Ta);this.vb=X(function(){return new JQ(f.za,f.Ta)});
g.C(this,this.vb);this.Pb=X(function(){return new AQ});
g.C(this,this.Pb);this.gb=X(function(){return new vQ(a)});
g.C(this,this.gb);this.ab=X(function(){return new WQ(f.Ta)});
g.C(this,this.ab);this.Ac=X(function(){return new bR});
g.C(this,this.Ac);this.Hb=X(function(){return new ZR(b)});
g.C(this,this.Hb);this.fg=X(function(){return new bS(e)});
g.C(this,this.fg);this.Vb=X(function(){return new eR(b)});
g.C(this,this.Vb);this.za=X(function(){return new gR(b)});
g.C(this,this.za);this.Mc=X(function(){return new YR(d,f.za)});
g.C(this,this.Mc);this.Xa=X(function(){return new yP(f.za)});
g.C(this,this.Xa);this.Yb=X(function(){return new tQ(f.ab,f.vb,f.Xa,null,null)});
g.C(this,this.Yb);this.sd=X(function(){return new aS});
g.C(this,this.sd);this.Yh=X(function(){return new jS});
g.C(this,this.Yh);this.Da=X(function(){return new tR(b,f.Ac)});
g.C(this,this.Da);this.zb=new aR(this.za,this.Xa,this.Da);g.C(this,this.zb);this.wa=X(function(){return new uR(b)});
g.C(this,this.wa);this.tb=X(function(){return new lR(f.wa,b)});
g.C(this,this.tb);this.Ga=X(function(){return new oR(b,f.Pb,f.tb,f.Da)});
g.C(this,this.Ga);this.se=new KR(LR,tS,function(l,m,n,p){return KQ(f.vb.get(),l,m,n,p)},this.gb,this.ab,this.Xa,this.za,this.Da);
g.C(this,this.se);this.Db=new aH(this.gb,this.Yb,c,this.za,a,this.Da);g.C(this,this.Db);var h=new cR(this.Db,this.wa);this.nd=X(function(){return h});
this.ij=h;this.Jc=new zQ(this.gb,this.ab,this.Vb,this.nd);g.C(this,this.Jc);this.Eb=new KG(this.gb,this.ab,this.Yb,this.Da,this.Jc,c);g.C(this,this.Eb);this.ee=X(function(){return new xR(f.Mc,f.vb,f.Xa,f.za)});
g.C(this,this.ee);this.kc=X(function(){return new yR});
g.C(this,this.kc);this.ge=new PR(a,this.Hb);g.C(this,this.ge);this.Va=new QR(a);g.C(this,this.Va);this.Qk=new pS(a);g.C(this,this.Qk);this.Uc=new RR(a,this.nd);g.C(this,this.Uc);this.Pc=new SR(a,this.Vb,this.wa,this.Da);g.C(this,this.Pc);this.hc=new UR(a);g.C(this,this.hc);this.re=new VR(a);g.C(this,this.re);this.Yl=new rS(a);g.C(this,this.Yl);this.dc=X(function(){return new MR});
g.C(this,this.dc);this.te=X(function(){return new NR(f.wa)});
g.C(this,this.te);this.de=X(function(){return new AR(f.Eb)});
g.C(this,this.de);this.he=X(function(){return new BR(f.Ga,f.hc,f.tb)});
g.C(this,this.he);this.Ug=X(function(){return new oS(f.Hb,f.wa,f.Ga,f.Pb,f.tb,f.Qk,f.Yl,f.fg,f.za)});
g.C(this,this.Ug);this.Eu=new sS(a,this.Yh,this.Ta);g.C(this,this.Eu);this.pj=new WR(a,this.sd,this.Xa,this.Da,this.za,this.Ta);g.C(this,this.pj);this.Ic={Hl:new Map([["opportunity_type_ad_break_service_response_received",this.Eb],["opportunity_type_player_bytes_media_layout_entered",this.se],["opportunity_type_player_response_received",this.Db],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Jc]]),Oi:new Map([["slot_type_ad_break_request",this.ee],["slot_type_forecasting",this.kc],
["slot_type_in_player",this.kc],["slot_type_player_bytes",this.kc]]),Yf:new Map([["trigger_type_skip_requested",this.ge],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_on_different_slot_id_enter_requested",
this.Va],["trigger_type_close_requested",this.Qk],["trigger_type_before_content_video_id_started",this.Uc],["trigger_type_after_content_video_id_ended",this.Pc],["trigger_type_media_time_range",this.Pc],["trigger_type_not_in_media_time_range",this.Pc],["trigger_type_on_layout_self_exit_requested",this.hc],["trigger_type_on_element_self_enter_requested",this.hc],["trigger_type_on_new_playback_after_content_video_id",this.Uc],["trigger_type_on_opportunity_received",this.re],["trigger_type_time_relative_to_layout_enter",
this.Yl]]),sj:new Map([["slot_type_ad_break_request",this.dc],["slot_type_forecasting",this.dc],["slot_type_in_player",this.dc],["slot_type_player_bytes",this.te]]),bj:new Map([["slot_type_ad_break_request",this.de],["slot_type_forecasting",this.he],["slot_type_in_player",this.Ug]])};this.listeners=[this.Pb.get()];this.kf={Eb:this.Eb,Fk:null,dj:this.sd.get(),Pf:this.za.get(),pk:this.wa.get(),Db:this.Db,cj:this.Yh.get()}};
Jqa=function(a,b,c,d){g.B.call(this);var e=this;this.Ta=X(function(){return new BQ});
g.C(this,this.Ta);this.vb=X(function(){return new JQ(e.za,e.Ta)});
g.C(this,this.vb);this.Pb=X(function(){return new AQ});
g.C(this,this.Pb);this.gb=X(function(){return new vQ(a)});
g.C(this,this.gb);this.ab=X(function(){return new WQ(e.Ta)});
g.C(this,this.ab);this.Ac=X(function(){return new bR});
g.C(this,this.Ac);this.Hb=X(function(){return new ZR(b)});
g.C(this,this.Hb);this.Vb=X(function(){return new eR(b)});
g.C(this,this.Vb);this.za=X(function(){return new gR(b)});
g.C(this,this.za);this.Mc=X(function(){return new YR(d,e.za)});
g.C(this,this.Mc);this.Xa=X(function(){return new yP(e.za)});
g.C(this,this.Xa);this.Yb=X(function(){return new tQ(e.ab,e.vb,e.Xa,null,null)});
g.C(this,this.Yb);this.sd=X(function(){return new aS});
g.C(this,this.sd);this.Da=X(function(){return new tR(b,e.Ac)});
g.C(this,this.Da);this.zb=new aR(this.za,this.Xa,this.Da);g.C(this,this.zb);this.wa=X(function(){return new uR(b)});
g.C(this,this.wa);this.tb=X(function(){return new lR(e.wa,b)});
g.C(this,this.tb);this.Ga=X(function(){return new oR(b,e.Pb,e.tb,e.Da)});
g.C(this,this.Ga);this.se=new KR(LR,tS,function(h,l,m,n){return KQ(e.vb.get(),h,l,m,n)},this.gb,this.ab,this.Xa,this.za,this.Da);
g.C(this,this.se);this.Db=new aH(this.gb,this.Yb,c,this.za,a,this.Da);g.C(this,this.Db);var f=new cR(this.Db,this.wa);this.nd=X(function(){return f});
this.ij=f;this.Jc=new zQ(this.gb,this.ab,this.Vb,this.nd);g.C(this,this.Jc);this.Eb=new KG(this.gb,this.ab,this.Yb,this.Da,this.Jc,c);g.C(this,this.Eb);this.ee=X(function(){return new xR(e.Mc,e.vb,e.Xa,e.za)});
g.C(this,this.ee);this.kc=X(function(){return new yR});
g.C(this,this.kc);this.ge=new PR(a,this.Hb);g.C(this,this.ge);this.Va=new QR(a);g.C(this,this.Va);this.Uc=new RR(a,this.nd);g.C(this,this.Uc);this.Pc=new SR(a,this.Vb,this.wa,this.Da);g.C(this,this.Pc);this.hc=new UR(a);g.C(this,this.hc);this.re=new VR(a);g.C(this,this.re);this.dc=X(function(){return new MR});
g.C(this,this.dc);this.te=X(function(){return new NR(e.wa)});
g.C(this,this.te);this.de=X(function(){return new AR(e.Eb)});
g.C(this,this.de);this.he=X(function(){return new BR(e.Ga,e.hc,e.tb)});
g.C(this,this.he);this.wE=X(function(){return new JR(e.Hb,e.wa,e.Ga,e.Pb)});
g.C(this,this.wE);this.pj=new WR(a,this.sd,this.Xa,this.Da,this.za,this.Ta);g.C(this,this.pj);this.Ic={Hl:new Map([["opportunity_type_ad_break_service_response_received",this.Eb],["opportunity_type_player_bytes_media_layout_entered",this.se],["opportunity_type_player_response_received",this.Db],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Jc]]),Oi:new Map([["slot_type_ad_break_request",this.ee],["slot_type_forecasting",this.kc],["slot_type_in_player",this.kc],["slot_type_player_bytes",
this.kc]]),Yf:new Map([["trigger_type_skip_requested",this.ge],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_before_content_video_id_started",this.Uc],["trigger_type_after_content_video_id_ended",
this.Pc],["trigger_type_media_time_range",this.Pc],["trigger_type_on_layout_self_exit_requested",this.hc],["trigger_type_on_element_self_enter_requested",this.hc],["trigger_type_on_new_playback_after_content_video_id",this.Uc],["trigger_type_on_opportunity_received",this.re]]),sj:new Map([["slot_type_ad_break_request",this.dc],["slot_type_above_feed",this.dc],["slot_type_forecasting",this.dc],["slot_type_in_player",this.dc],["slot_type_player_bytes",this.te]]),bj:new Map([["slot_type_ad_break_request",
this.de],["slot_type_forecasting",this.he],["slot_type_in_player",this.wE]])};this.listeners=[this.Pb.get()];this.kf={Eb:this.Eb,Fk:null,dj:this.sd.get(),Pf:this.za.get(),pk:this.wa.get(),Db:this.Db,cj:null}};
Kqa=function(a,b,c,d){g.B.call(this);var e=this;this.Ta=X(function(){return new BQ});
g.C(this,this.Ta);this.vb=X(function(){return new JQ(e.za,e.Ta)});
g.C(this,this.vb);this.Pb=X(function(){return new AQ});
g.C(this,this.Pb);this.gb=X(function(){return new vQ(a)});
g.C(this,this.gb);this.ab=X(function(){return new WQ(e.Ta)});
g.C(this,this.ab);this.Ac=X(function(){return new bR});
g.C(this,this.Ac);this.Hb=X(function(){return new ZR(b)});
g.C(this,this.Hb);this.Vb=X(function(){return new eR(b)});
g.C(this,this.Vb);this.za=X(function(){return new gR(b)});
g.C(this,this.za);this.Mc=X(function(){return new YR(d,e.za)});
g.C(this,this.Mc);this.Xa=X(function(){return new yP(e.za)});
g.C(this,this.Xa);this.Yb=X(function(){return new tQ(e.ab,e.vb,e.Xa,null,null)});
g.C(this,this.Yb);this.sd=X(function(){return new aS});
g.C(this,this.sd);this.Da=X(function(){return new tR(b,e.Ac)});
g.C(this,this.Da);this.zb=new aR(this.za,this.Xa,this.Da);g.C(this,this.zb);this.wa=X(function(){return new uR(b)});
g.C(this,this.wa);this.tb=X(function(){return new lR(e.wa,b)});
g.C(this,this.tb);this.Ga=X(function(){return new oR(b,e.Pb,e.tb,e.Da)});
g.C(this,this.Ga);this.se=new KR(LR,tS,function(h,l,m,n){return KQ(e.vb.get(),h,l,m,n)},this.gb,this.ab,this.Xa,this.za,this.Da);
g.C(this,this.se);this.Db=new aH(this.gb,this.Yb,c,this.za,a,this.Da);g.C(this,this.Db);var f=new cR(this.Db,this.wa);this.nd=X(function(){return f});
this.ij=f;this.Jc=new zQ(this.gb,this.ab,this.Vb,this.nd);g.C(this,this.Jc);this.Eb=new KG(this.gb,this.ab,this.Yb,this.Da,this.Jc,c);g.C(this,this.Eb);this.ee=X(function(){return new xR(e.Mc,e.vb,e.Xa,e.za)});
g.C(this,this.ee);this.kc=X(function(){return new yR});
g.C(this,this.kc);this.ge=new PR(a,this.Hb);g.C(this,this.ge);this.Va=new QR(a);g.C(this,this.Va);this.Uc=new RR(a,this.nd);g.C(this,this.Uc);this.Pc=new SR(a,this.Vb,this.wa,this.Da);g.C(this,this.Pc);this.hc=new UR(a);g.C(this,this.hc);this.re=new VR(a);g.C(this,this.re);this.dc=X(function(){return new MR});
g.C(this,this.dc);this.te=X(function(){return new NR(e.wa)});
g.C(this,this.te);this.de=X(function(){return new AR(e.Eb)});
g.C(this,this.de);this.he=X(function(){return new BR(e.Ga,e.hc,e.tb)});
g.C(this,this.he);this.Ug=X(function(){return new JR(e.Hb,e.wa,e.Ga,e.Pb)});
g.C(this,this.Ug);this.pj=new WR(a,this.sd,this.Xa,this.Da,this.za,this.Ta);g.C(this,this.pj);this.Ic={Hl:new Map([["opportunity_type_ad_break_service_response_received",this.Eb],["opportunity_type_player_bytes_media_layout_entered",this.se],["opportunity_type_player_response_received",this.Db],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Jc]]),Oi:new Map([["slot_type_ad_break_request",this.ee],["slot_type_forecasting",this.kc],["slot_type_in_player",this.kc],["slot_type_player_bytes",
this.kc]]),Yf:new Map([["trigger_type_skip_requested",this.ge],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_before_content_video_id_started",this.Uc],["trigger_type_media_time_range",
this.Pc],["trigger_type_on_layout_self_exit_requested",this.hc],["trigger_type_on_element_self_enter_requested",this.hc],["trigger_type_on_new_playback_after_content_video_id",this.Uc],["trigger_type_on_opportunity_received",this.re]]),sj:new Map([["slot_type_ad_break_request",this.dc],["slot_type_forecasting",this.dc],["slot_type_in_player",this.dc],["slot_type_player_bytes",this.te]]),bj:new Map([["slot_type_ad_break_request",this.de],["slot_type_forecasting",this.he],["slot_type_in_player",this.Ug]])};
this.listeners=[this.Pb.get()];this.kf={Eb:this.Eb,Fk:null,dj:this.sd.get(),Pf:this.za.get(),pk:this.wa.get(),Db:this.Db,cj:null}};
uS=function(a,b,c,d,e,f,h,l){HR.call(this,a,b,c,d,e,f,h);this.im=l};
Lqa=function(a,b,c,d,e){this.Hb=a;this.wa=b;this.Ga=c;this.fd=d;this.im=e};
Mqa=function(a,b,c,d){g.B.call(this);var e=this;this.Ta=X(function(){return new BQ});
g.C(this,this.Ta);this.vb=X(function(){return new JQ(e.za,e.Ta)});
g.C(this,this.vb);this.Pb=X(function(){return new AQ});
g.C(this,this.Pb);this.gb=X(function(){return new vQ(a)});
g.C(this,this.gb);this.ab=X(function(){return new WQ(e.Ta)});
g.C(this,this.ab);this.Ac=X(function(){return new bR});
g.C(this,this.Ac);this.im=X(function(){return new kqa(b)});
g.C(this,this.im);this.Hb=X(function(){return new ZR(b)});
g.C(this,this.Hb);this.Vb=X(function(){return new eR(b)});
g.C(this,this.Vb);this.za=X(function(){return new gR(b)});
g.C(this,this.za);this.Mc=X(function(){return new YR(d,e.za)});
g.C(this,this.Mc);this.Xa=X(function(){return new yP(e.za)});
g.C(this,this.Xa);this.Yb=X(function(){return new tQ(e.ab,e.vb,e.Xa,null,null)});
g.C(this,this.Yb);this.sd=X(function(){return new aS});
g.C(this,this.sd);this.Da=X(function(){return new tR(b,e.Ac)});
g.C(this,this.Da);this.zb=new aR(this.za,this.Xa,this.Da);g.C(this,this.zb);this.wa=X(function(){return new uR(b)});
g.C(this,this.wa);this.tb=X(function(){return new lR(e.wa,b)});
g.C(this,this.tb);this.Ga=X(function(){return new oR(b,e.Pb,e.tb,e.Da)});
g.C(this,this.Ga);this.se=new KR(LR,tS,function(h,l,m,n){return KQ(e.vb.get(),h,l,m,n)},this.gb,this.ab,this.Xa,this.za,this.Da);
g.C(this,this.se);this.Db=new aH(this.gb,this.Yb,c,this.za,a,this.Da);g.C(this,this.Db);var f=new cR(this.Db,this.wa);this.nd=X(function(){return f});
this.ij=f;this.Jc=new zQ(this.gb,this.ab,this.Vb,this.nd);g.C(this,this.Jc);this.Eb=new KG(this.gb,this.ab,this.Yb,this.Da,this.Jc,c);g.C(this,this.Eb);this.ee=X(function(){return new xR(e.Mc,e.vb,e.Xa,e.za)});
g.C(this,this.ee);this.kc=X(function(){return new yR});
g.C(this,this.kc);this.ge=new PR(a,this.Hb);g.C(this,this.ge);this.Va=new QR(a);g.C(this,this.Va);this.Uc=new RR(a,this.nd);g.C(this,this.Uc);this.Pc=new SR(a,this.Vb,this.wa,this.Da);g.C(this,this.Pc);this.hc=new UR(a);g.C(this,this.hc);this.re=new VR(a);g.C(this,this.re);this.dc=X(function(){return new MR});
g.C(this,this.dc);this.te=X(function(){return new NR(e.wa)});
g.C(this,this.te);this.de=X(function(){return new AR(e.Eb)});
g.C(this,this.de);this.he=X(function(){return new BR(e.Ga,e.hc,e.tb)});
g.C(this,this.he);this.oG=X(function(){return new Lqa(e.Hb,e.wa,e.Ga,e.Pb,e.im)});
g.C(this,this.oG);this.pj=new WR(a,this.sd,this.Xa,this.Da,this.za,this.Ta);g.C(this,this.pj);this.Ic={Hl:new Map([["opportunity_type_ad_break_service_response_received",this.Eb],["opportunity_type_player_bytes_media_layout_entered",this.se],["opportunity_type_player_response_received",this.Db],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Jc]]),Oi:new Map([["slot_type_ad_break_request",this.ee],["slot_type_forecasting",this.kc],["slot_type_player_bytes",this.kc]]),Yf:new Map([["trigger_type_skip_requested",
this.ge],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_before_content_video_id_started",this.Uc],["trigger_type_after_content_video_id_ended",this.Pc],["trigger_type_media_time_range",
this.Pc],["trigger_type_on_layout_self_exit_requested",this.hc],["trigger_type_on_element_self_enter_requested",this.hc],["trigger_type_on_new_playback_after_content_video_id",this.Uc],["trigger_type_on_opportunity_received",this.re]]),sj:new Map([["slot_type_ad_break_request",this.dc],["slot_type_forecasting",this.dc],["slot_type_player_bytes",this.te]]),bj:new Map([["slot_type_ad_break_request",this.de],["slot_type_forecasting",this.he],["slot_type_in_player",this.oG]])};this.listeners=[this.Pb.get()];
this.kf={Eb:this.Eb,Fk:null,dj:null,Pf:this.za.get(),pk:this.wa.get(),Db:this.Db,cj:null}};
Nqa=function(a,b,c,d){this.Hb=a;this.wa=b;this.Ga=c;this.fd=d};
Oqa=function(a,b,c,d){g.B.call(this);var e=this;this.Ta=X(function(){return new BQ});
g.C(this,this.Ta);this.vb=X(function(){return new JQ(e.za,e.Ta)});
g.C(this,this.vb);this.Pb=X(function(){return new AQ});
g.C(this,this.Pb);this.gb=X(function(){return new vQ(a)});
g.C(this,this.gb);this.ab=X(function(){return new WQ(e.Ta)});
g.C(this,this.ab);this.Ac=X(function(){return new bR});
g.C(this,this.Ac);this.Hb=X(function(){return new ZR(b)});
g.C(this,this.Hb);this.Vb=X(function(){return new eR(b)});
g.C(this,this.Vb);this.za=X(function(){return new gR(b)});
g.C(this,this.za);this.Mc=X(function(){return new YR(d,e.za)});
g.C(this,this.Mc);this.Xa=X(function(){return new yP(e.za)});
g.C(this,this.Xa);this.Yb=X(function(){return new tQ(e.ab,e.vb,e.Xa,null,e.Ih,3)});
g.C(this,this.Yb);this.Da=X(function(){return new tR(b,e.Ac)});
g.C(this,this.Da);this.zb=new aR(this.za,this.Xa,this.Da);g.C(this,this.zb);this.xd=X(function(){return new iS(b,e.Da,e.za,e.Ga)});
g.C(this,this.xd);this.Gf=X(function(){return new yqa(b)});
g.C(this,this.Gf);this.wa=X(function(){return new uR(b)});
g.C(this,this.wa);this.Sl=X(function(){return new lqa});
this.tb=X(function(){return new lR(e.wa,b)});
g.C(this,this.tb);this.Ga=X(function(){return new oR(b,e.Pb,e.tb,e.Da)});
g.C(this,this.Ga);this.Db=new aH(this.gb,this.Yb,c,this.za,a,this.Da);g.C(this,this.Db);var f=new cR(this.Db,this.wa,this.xd);this.nd=X(function(){return f});
this.ij=f;this.se=new KR(LR,tS,function(h,l,m,n){return KQ(e.vb.get(),h,l,m,n)},this.gb,this.ab,this.Xa,this.za,this.Da);
g.C(this,this.se);this.Ih=new gS(this.gb,this.ab,this.Da,this.nd,this.xd,this.wa);g.C(this,this.Ih);this.Jc=new zQ(this.gb,this.ab,this.Vb,this.nd);g.C(this,this.Jc);this.Eb=new KG(this.gb,this.ab,this.Yb,this.Da,this.Jc,c);g.C(this,this.Eb);this.ee=X(function(){return new xR(e.Mc,e.vb,e.Xa,e.za)});
g.C(this,this.ee);this.kc=X(function(){return new yR});
g.C(this,this.kc);this.ge=new PR(a,this.Hb);g.C(this,this.ge);this.Va=new QR(a);g.C(this,this.Va);this.Uc=new RR(a,this.nd);g.C(this,this.Uc);this.Pc=new SR(a,this.Vb,this.wa,this.Da);g.C(this,this.Pc);this.wl=new hS(a,this.Da);g.C(this,this.wl);this.hc=new UR(a);g.C(this,this.hc);this.re=new VR(a);g.C(this,this.re);this.dc=X(function(){return new MR});
g.C(this,this.dc);this.te=X(function(){return new NR(e.wa)});
g.C(this,this.te);this.de=X(function(){return new AR(e.Eb)});
g.C(this,this.de);this.he=X(function(){return new BR(e.Ga,e.hc,e.tb)});
g.C(this,this.he);this.Ap=X(function(){return new fS(e.Da,e.Gf,e.wa,e.Ga,e.Ac,e.xd,e.tb,e.Sl)});
g.C(this,this.Ap);this.Ug=X(function(){return new Nqa(e.Hb,e.wa,e.Ga,e.Pb)});
g.C(this,this.Ug);this.Ic={Hl:new Map([["opportunity_type_ad_break_service_response_received",this.Eb],["opportunity_type_live_stream_break_signal",this.Ih],["opportunity_type_player_bytes_media_layout_entered",this.se],["opportunity_type_player_response_received",this.Db],["opportunity_type_throttled_ad_break_request_slot_reentry",this.Jc]]),Oi:new Map([["slot_type_ad_break_request",this.ee],["slot_type_forecasting",this.kc],["slot_type_in_player",this.kc],["slot_type_player_bytes",this.kc]]),Yf:new Map([["trigger_type_skip_requested",
this.ge],["trigger_type_layout_id_entered",this.Va],["trigger_type_layout_id_exited",this.Va],["trigger_type_on_different_layout_id_entered",this.Va],["trigger_type_slot_id_entered",this.Va],["trigger_type_slot_id_exited",this.Va],["trigger_type_slot_id_fulfilled_empty",this.Va],["trigger_type_slot_id_fulfilled_non_empty",this.Va],["trigger_type_slot_id_scheduled",this.Va],["trigger_type_before_content_video_id_started",this.Uc],["trigger_type_after_content_video_id_ended",this.Pc],["trigger_type_media_time_range",
this.Pc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wl],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wl],["trigger_type_on_layout_self_exit_requested",this.hc],["trigger_type_on_element_self_enter_requested",this.hc],["trigger_type_on_new_playback_after_content_video_id",this.Uc],["trigger_type_on_opportunity_received",this.re]]),sj:new Map([["slot_type_ad_break_request",this.dc],["slot_type_forecasting",this.dc],["slot_type_in_player",this.dc],["slot_type_player_bytes",this.te]]),bj:new Map([["slot_type_ad_break_request",
this.de],["slot_type_forecasting",this.he],["slot_type_player_bytes",this.Ap],["slot_type_in_player",this.Ug]])};this.listeners=[this.Pb.get()];this.kf={Eb:this.Eb,Fk:null,dj:null,Pf:this.za.get(),pk:this.wa.get(),Db:this.Db,cj:null}};
Qqa=function(a,b,c,d){g.B.call(this);var e=this;this.u=Pqa(function(){return e.B},a,b,c,d);
g.C(this,this.u);this.B=(new gQ(this.u)).B;g.C(this,this.B)};
Pqa=function(a,b,c,d,e){try{var f=b.T();if(g.fC(f))var h=new Hqa(a,b,c,d,e);else if(g.jC(f))h=new Iqa(a,b,c,d,e);else if(kC(f))h=new Kqa(a,b,c,d);else if(XB(f))h=new Jqa(a,b,c,d);else if(iC(f))h=new Mqa(a,b,c,d);else if(g.WB(f))h=new Oqa(a,b,c,d);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),$G("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,JV:e.deviceParams.c,MV:e.deviceParams.cver,LV:e.deviceParams.ctheme,
KV:e.deviceParams.cplayer,XV:e.playerStyle}),new Ppa(a,b,c,d)}};
g.vS=function(a){g.P.call(this);this.loaded=!1;this.player=a};
wS=function(a){g.vS.call(this,a);var b=this;this.u=null;this.D=new wG(this.player);this.C=null;this.F=function(){function d(){return b.u}
if(null!=b.C)return b.C;var e=qL({pA:a.getVideoData(1),HA:g.R(a.T().experiments,"enable_server_sent_ping_header_support_for_html5"),GA:g.R(a.T().experiments,"enable_client_page_id_header_for_first_party_pings")});e=new lP({uH:new JG(d,b.B.u.kf.Fk,b.B.B),Pn:e.gI(),vH:d,FH:d,RL:d,lh:e.Ov(),J:b.player,Pf:b.B.u.kf.Pf,Ga:b.B.u.Ga});b.C=e.B;return b.C};
this.B=new Qqa(this.player,this,this.D,this.F);g.C(this,this.B);this.created=!1;var c=a.T();!TB(c)||g.WB(c)||XB(c)||(c=function(){return b.u},g.C(this,new aP(a,c)),g.C(this,new sM(a,c)))};
Rqa=function(a){var b=a.B.u.kf.Db.u().u,c=VP(b,"slot_type_player_bytes_1");b=[];c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot);c=!1;b=g.q(b);for(d=b.next();!d.done;d=b.next())VG(d.value)&&(c&&$G("More than 1 preroll playerBytes slot detected"),c=!0);(b=c)||(b=a.u,b=!XL(b,ZL(b)));b||a.B.u.kf.pk.u()};
MG=function(a,b,c){c=void 0===c?"":c;var d=a.B.u.kf.Pf,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=Sqa(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);Nma(a.B.u.kf.Eb,c,d.hn,b);a.u&&0<d.Nk.length&&(a=a.u,b=d.Nk,b=SL(a,b),b=TL(a,b),UL(a,b))};
Sqa=function(a,b,c){var d={Nk:[],hn:[]};a=g.q(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer,h=e.config&&e.config.adPlacementConfig&&e.config.adPlacementConfig.kind,l=b;(c?OL(l):null!=f.clientForecastingAdRenderer||null!=f.adBreakServiceRenderer&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==h||(null!=f.actionCompanionAdRenderer?f.actionCompanionAdRenderer.controlFlowExperimentEnabled:null!=f.imageCompanionAdRenderer?f.imageCompanionAdRenderer.controlFlowExperimentEnabled:
null!=f.shoppingCompanionCarouselRenderer?f.shoppingCompanionCarouselRenderer.controlFlowExperimentEnabled:null!=f.invideoOverlayAdRenderer?hR(l):(null!=f.instreamVideoAdRenderer||null!=f.remoteSlotsRenderer)&&g.R(l.J.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf")))?d.hn.push(e):d.Nk.push(e)}return d};
Tqa=function(a){if(!xS){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);xS=new Uint8Array(256);yS=[];zS=[];AS=[];BS=[];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;xS[f]=e;b=e<<1^(e>>7&&283);var h=b^e;yS.push(b<<24|e<<16|e<<8|h);zS.push(h<<24|yS[f]>>>8);AS.push(e<<24|zS[f]>>>8);BS.push(e<<24|AS[f]>>>8)}}this.u=[0,0,0,0];this.C=new Uint8Array(16);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=(xS[a>>16&255]^d)<<24|xS[a>>8&255]<<16|xS[a&255]<<8|xS[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.D=e;this.B=16};
Uqa=function(a){for(var b=a.D,c=a.u[0]^b[0],d=a.u[1]^b[1],e=a.u[2]^b[2],f=a.u[3]^b[3],h=3;0<=h&&!(a.u[h]=-~a.u[h]);h--);for(h=4;40>h;){var l=yS[c>>>24]^zS[d>>16&255]^AS[e>>8&255]^BS[f&255]^b[h++];var m=yS[d>>>24]^zS[e>>16&255]^AS[f>>8&255]^BS[c&255]^b[h++];var n=yS[e>>>24]^zS[f>>16&255]^AS[c>>8&255]^BS[d&255]^b[h++];f=yS[f>>>24]^zS[c>>16&255]^AS[d>>8&255]^BS[e&255]^b[h++];c=l;d=m;e=n}a=a.C;c=[c,d,e,f];for(d=0;16>d;)a[d++]=xS[c[0]>>>24]^b[h]>>>24,a[d++]=xS[c[1]>>16&255]^b[h]>>16&255,a[d++]=xS[c[2]>>
8&255]^b[h]>>8&255,a[d++]=xS[c[3]&255]^b[h++]&255,c.push(c.shift())};
g.CS=function(){g.B.call(this);this.C=null;this.K=this.I=!1;this.F=new g.im;g.C(this,this.F)};
DS=function(a){a=a.zo();return 1>a.length?NaN:a.end(a.length-1)};
Vqa=function(a,b){a.C&&null!==b&&b.u===a.C.u||(a.C&&a.C.dispose(),a.C=b)};
ES=function(a){return fy(a.Xe(),a.getCurrentTime())};
Wqa=function(a,b){if(0==a.Vf()||0<a.eh())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.zo();if(d.length||!c)return cy(d,b)}return c};
Xqa=function(a){var b=a.Xe();return 0<ey(b)&&a.getDuration()?dy(b,a.getCurrentTime()):0};
Yqa=function(a){var b=a.Xe();return 0<ey(b)&&a.getDuration()?b.end(b.length-1):0};
FS=function(a){var b=a.getDuration();return Infinity==b?1:b?Xqa(a)/b:0};
GS=function(a){switch(a.eh()){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}};
HS=function(a,b,c){g.Ll.call(this,b,a);this.B=c||null};
g.IS=function(a){g.CS.call(this);this.u=a;this.B={}};
g.JS=function(a,b,c,d){d=void 0===d?!1:d;g.CS.call(this);this.u=a;this.B=b;this.D=c;this.N=d};
KS=function(){this.u=[];this.B=[];this.C=[]};
$qa=function(a,b,c){c=g.Fe(c?"AUDIO":"VIDEO");g.Wa(c,Zqa);g.cp(c,"loadeddata",(0,g.z)(c.DH,c));NB&&6<=QF&&g.cp(c,"webkitbeginfullscreen",(0,g.z)(c.play,c));a.B.push(c);b?a.C.push(c):LS(a,c);return c};
LS=function(a,b){g.nb(a.B,b)&&!g.nb(a.u,b)&&(b.src||b.load(),g.rb(a.C,b)||a.u.push(b))};
MS=function(){this.u=this.started=!1};
NS=function(){this.keys=[];this.values=[]};
OS=function(a,b){this.u=a;this.C=b;this.B=null;this.D=[];this.F=!1};
g.PS=function(a){a.B||(a.B=a.u.createMediaElementSource(a.C.La()));return a.B};
g.QS=function(a){for(var b;0<a.D.length;)(b=a.D.pop())&&b.disconnect();a.B&&a.B.disconnect()};
ara=function(){GA("bg_l","player_att");RS=(0,g.O)()};
bra=function(a){a=void 0===a?{}:a;var b=lr;a=void 0===a?{}:a;return b.u?b.u.invoke(void 0,void 0,a):null};
cra=function(a){a=void 0===a?{}:a;return Kea(a)};
dra=function(a,b){var c=this;this.videoData=a;this.C=b;var d={};this.B=(d.c1a=function(){if(SS(c)){var e="";c.videoData&&c.videoData.Ig&&(e=c.videoData.Ig+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);GA("bg_v","player_att");e=c.C?bra(e):g.Na("yt.abuse.player.invokeBotguard")(e);GA("bg_s","player_att");e=e?"r1a="+e:"r1c=2"}else GA("bg_e","player_att"),e="r1c=1";return e},d.c3a=function(e){return"r3a="+Math.floor(c.videoData.lengthSeconds%Number(e.c3a)).toString()},d.c6a=
function(e){e=Number(e.c);
var f=c.C?parseInt(g.L("DCLKSTAT",0),10):(f=g.Na("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.Ig?this.u=Vp(this.videoData.Ig):this.u={}};
era=function(a){if(a.videoData&&a.videoData.Ig){for(var b=[a.videoData.Ig],c=g.q(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.u[d]&&a.B[d]&&(d=a.B[d](a.u))&&b.push(d);return b.join("&")}return null};
gra=function(a){var b={};Object.assign(b,a.B);"c1b"in a.u&&(b.c1a=function(){return fra(a)});
if(a.videoData&&a.videoData.Ig){for(var c=[a.videoData.Ig],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.u[e]&&b[e]&&(e=b[e](a.u))&&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)};
SS=function(a){return a.C?lr.rd():(a=g.Na("yt.abuse.player.botguardInitialized"))&&a()};
fra=function(a){if(!SS(a))return GA("bg_e","player_att"),Promise.resolve("r1c=1");var b="";a.videoData&&a.videoData.Ig&&(b=a.videoData.Ig+("&r1b="+a.videoData.clientPlaybackNonce));var c={},d=(c.atr_challenge=b,c),e=a.C?cra:g.Na("yt.abuse.player.invokeBotguardAsync");return new Promise(function(f){GA("bg_v","player_att");e(d).then(function(h){h?(GA("bg_s","player_att"),f("r1a="+h)):(GA("bg_e","player_att"),f("r1c=2"))},function(){GA("bg_e","player_att");
f("r1c=3")})})};
hra=function(a){var b=a.interval,c=a.Mp,d=a.pG,e=a.drmSessionId;this.url=a.url;this.interval=b;this.Mp=c;this.pG=d;this.drmSessionId=e};
TS=function(){g.P.apply(this,arguments)};
US=function(a,b,c,d){TS.call(this);var e=this;this.C=-1;this.u={};this.D=new g.H(this.F,0,this);g.C(this,this.D);this.B=new g.H(function(){e.la()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.C(this,this.B);d.subscribe("fairplay_next_need_key_info",this.I,this)};
ira=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
jra=function(a,b,c){a=a.match(wd);for(var d=[],e=g.q(a[6].split("&")),f=e.next();!f.done;f=e.next())f=f.value,0===f.indexOf("cpi=")?d.push("cpi="+b.toString()):0===f.indexOf("ek=")?d.push("ek="+ld(c)):d.push(f);a[6]="?"+d.join("&");b="skd://"+a.slice(2).join("");a=2*b.length;c=new Uint8Array(a+4);c[0]=a%256;c[1]=(a-c[0])/256;for(a=0;a<b.length;++a)c[2*a+4]=b.charCodeAt(a);return c};
kra=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null};
mra=function(a){var b=Ht(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=pt(b.slice(d+2));if(null==b)return null;a=new kra(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.KK(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new hra({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Mp:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=c.split(",");if(c=b["Key-Ids"])a.B=lra(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
lra=function(a){if(!a)return{};a=a.split(";");var b={};g.Gb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
nra=function(a,b){g.B.call(this);this.message=a;this.requestNumber=b;this.onError=this.onSuccess=null;this.u=new g.Mn(5E3,2E4,.2)};
ora=function(a,b,c){a.onSuccess=b;a.onError=c};
qra=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.la())if(0!==e.status&&e.response)if(wA("drm_net_r"),e=new Uint8Array(e.response),e=mra(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else pra(a,e)},
onError:function(e){pra(a,e)}};
c&&(b=Rd(b,"access_token",c));g.oq(b,d)};
pra=function(a,b){if(!a.la())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
sra=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.la()){wA("drm_net_r");var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.af(f.license)}catch(x){}if(0!==h||l){l=new kra(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=rra[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");h[t]||(m.push(t),h[t]=!0);var w=null;try{w=
g.af(r.keyId)}catch(x){}w&&(n[g.qf(w,4)]=t)}}l.u=m;l.B=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.la())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")},
Ef:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.Tz="Bearer "+d);g.Kp(c,"player/get_drm_license",b,e)};
WS=function(a,b,c,d){g.P.call(this);this.videoData=a;this.C=b;this.fa=c;this.sessionId=d;this.F={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.P=!1;this.D=null;this.Y=[];this.I=[];this.W=!1;this.u={};this.X=NaN;this.status="";this.B=a.Rc;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.C.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Lf&&(a.vvt=this.videoData.Lf,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.C.Xc&&(a.authuser=this.C.Xc);this.C.pageId&&(a.pageid=this.C.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.ca("html5_send_device_type_in_drm_license_request")){var e;(e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Vc))?e[1]:"")&&(a.cdt=e)}this.F=a;this.F.session_id=d;this.N=!0;"widevine"===this.B.flavor&&(this.F.hdr="1");"playready"===this.B.flavor&&(b=Number(g.Ru(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.F.mfpe=""+
b),this.N=!1,this.videoData.ca("html5_playready_enable_non_persist_license")&&(this.F.pst="0"));b=KC(this.B)?ira(c.initData).replace("skd://","https://"):this.B.C;this.videoData.ca("enable_shadow_yttv_channels")&&(b=new g.Zm(b),document.location.origin&&document.location.origin.includes("green")?g.an(b,"web-green-qa.youtube.com"):g.an(b,"www.youtube.com"),b=b.toString());this.baseUrl=b;this.fairplayKeyId=Pd(this.baseUrl,"ek")||"";if(b=Pd(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.ba=
this.videoData.ca("html5_use_drm_retry");this.Y=c.B;VS(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
xra=function(a,b){VS(a,"createkeysession");a.status="gr";wA("drm_gk_s");a.url=tra(a);try{a.D=b.createSession(a.fa,function(d){VS(a,d)})}catch(d){var c="t.g";
d instanceof DOMException&&(c+=";c."+d.code);a.V("licenseerror","drm.unavailable",!0,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.D&&(ura(a.D,function(d,e){vra(a,d,e)},function(d){a.la()||a.error("drm.keyerror",!0,d)},function(){a.la()||(VS(a,"onkyadd"),a.K||(a.V("sessionready"),a.K=!0))},function(d){wra(a,d)}),g.C(a,a.D))};
tra=function(a){var b=a.baseUrl;rfa(b)||a.error("drm.net",!0,"t.x");if(!Pd(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.C.experiments.experiments[e]});
0<c.length&&(a.F.fexp=c.join())}c=g.q(Object.keys(a.F));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Rd(b,d,a.F[d]);return b};
yra=function(a){var b={};Object.assign(b,a.F);return b};
zra=function(a,b){var c=new hra({pG:g.qf(b),drmSessionId:a.sessionId});a.V("heartbeatparams",c)};
vra=function(a,b,c){if(!a.la())if(b){VS(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":if(a.videoData.ca("use_innertube_heartbeats_for_widevine")&&"widevine"===a.B.flavor){zra(a,b);return}break;case "license-request":case "license-release":break;case "individualization-request":Ara(a,b);return;default:a.V("ctmp","message_type","t."+c+";l."+b.byteLength)}a.P||(wA("drm_gk_f"),a.P=!0,a.V("newsession",a));if(GC(a.B)&&(b=Bra(b),!b))return;KC(a.B)&&!a.videoData.useInnertubeDrmService()&&
(b=Gt(g.qf(b)));b=new nra(b,++a.requestNumber);ora(b,function(d,e){Cra(a,d,e)},function(d,e,f,h){if(!a.la()){var l=!1,m=3;
void 0!==h&&400<=h&&500>h&&(m=g.Q(a.C.experiments,"html5_license_server_error_retry_limit")||3);(h=d.u.B>=m)||(h=a.ba&&36E4<(0,g.O)()-a.X);h&&(l=!0,e="drm.net.retryexhausted");VS(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&Dra(a,d)}});
g.C(a,b);Era(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
Ara=function(a,b){VS(a,"sdpvrq");if("widevine"!==a.B.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.C.deviceParams);c=g.Ld("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);var d={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:Ht(b)}),responseType:"arraybuffer"};
g.rr(c,d,3,500).then(Do(function(e){if(!a.la()){e=new Uint8Array(e.response);var f=Ht(e);try{var h=JSON.parse(f)}catch(l){}h&&h.signedResponse?(a.V("ctmp","drminfo","provisioning"),a.D&&a.D.update(e)):(h=h&&h.error&&h.error.message,e="e.parse",h&&(e+=";m."+h),a.error("drm.provision",!0,e))}}),Do(function(e){a.la()||a.error("drm.provision",!0,"e."+e.errorCode+";c."+(e.xhr&&e.xhr.status))}))}};
wra=function(a,b){a.la()||0>=b.size||(b.forEach(function(c,d){var e=GC(a.B)?d:c,f=new Uint8Array(GC(a.B)?c:d);GC(a.B)&&Fra(f);var h=g.qf(f,4);Fra(f);f=g.qf(f,4);a.u[h]?a.u[h].status=e:a.u[f]?a.u[f].status=e:a.u[h]={type:"",status:e}}),Gra("Key statuses changed: "+Hra(a,",")),VS(a,"onkeystatuschange"),a.status="kc",a.V("keystatuseschange",a))};
XS=function(a){var b;if(b=a.N&&null!=a.D)a=a.D,b=!(!a.u||!a.u.keyStatuses);return b};
Era=function(a,b){a.status="km";wA("drm_net_s");if(a.videoData.useInnertubeDrmService()){var c=new g.cr(a.C.ba),d=g.Hp(c.wf||g.Ip());d.drmSystem=Ira[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.qf(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(!d.context||!d.context.client){a.error("drm.net",!0,"t.r;ic.0");return}var e=a.C.deviceParams;
e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Lf&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Lf,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Zg&&
(d.context.user.kidsParent={oauthToken:a.videoData.Zg});if(KC(a.B)){e=a.fairplayKeyId;for(var f=[],h=0;h<e.length;h+=2)f.push(parseInt(e.substring(h,h+2),16));d.fairplayKeyId=g.qf(f)}sra(b,d,c,a.videoData.Ye())}else qra(b,a.url,a.videoData.oauthToken);a.status="rs"};
Cra=function(a,b,c){a.la()||(a.C.ca("html5_drm_ignore_out_of_order_responses")&&a.requestNumber!==c&&"widevine"===a.B.flavor?VS(a,"drmOOO."+a.requestNumber+"."+c,!0):(VS(a,"onlcsrsp"),a.status="rr",0!==b.statusCode)?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(wA("drm_kr_s"),a.videoData.ca("outertube_streaming_data_always_use_staging_license_service")&&b.heartbeatParams&&b.heartbeatParams.url&&(c=a.B.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),
b.heartbeatParams&&a.V("newlicense",b.heartbeatParams),b.u&&(a.I=b.u,a.W=ci(a.I,function(d){return d.includes("HDR")})),b.B&&(a.u=Lb(b.B,function(d){return{type:d,
status:"unknown"}})),IC(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=g.af(Ht(b.message)):JC(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=Gt(g.qf(b.message))),a.D&&(VS(a,"updtks"),a.status="ku",a.D.update(b.message).then(function(){wA("drm_kr_f");
if(!XS(a))if(VS(a,"ksApiUnsup"),HC(a.B)){var d=Jra(a.I);480<g.Fv[d]&&a.V("hdentitled",a)}else a.V("keystatuseschange",a)})),a.K&&(a.X=(0,g.O)()),KC(a.B)&&a.V("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId)))};
Dra=function(a,b){var c=b.u.getValue();c=new g.H(function(){Era(a,b)},c);
g.C(a,c);c.start();g.Nn(b.u);VS(a,"rtyrq")};
Kra=function(a,b){if(!XS(a)&&HC(a.B)&&!b)return"large";var c=[],d=!0;if(XS(a))for(var e=g.q(Object.keys(a.u)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.u[f].status&&c.push(a.u[f].type),"unknown"!==a.u[f].status&&(d=!1);if(!XS(a)||d)c=a.I;return Jra(c)};
Hra=function(a,b){for(var c=[],d=g.q(Object.keys(a.u)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.u[e].type+"_"+a.u[e].status);return c.join(b)};
Lra=function(a){var b=a.status+".";return XS(a)?b+Hra(a,"."):b+a.I.join(".")};
Mra=function(a,b,c){a:{switch(b){case "highres":case "hd2880":b="UHD2";break;case "hd2160":case "hd1440":b="UHD1";break;case "hd1080":case "hd720":b="HD";break;case "large":case "medium":case "small":case "light":case "tiny":b="SD";break;default:c="";break a}c&&(b+="HDR");c=b}for(var d in a.u)if("output-restricted"===a.u[d].status&&(b=a.u[d].type,""===c||"AUDIO"===b||c===b))return!0;return!1};
Nra=function(a,b){for(var c in a.u)if("usable"===a.u[c].status&&a.u[c].type===b)return!0;return!1};
VS=function(a,b,c){((void 0===c?0:c)||OF(a.videoData)||"playready"===a.B.flavor&&a.videoData.useInnertubeDrmService())&&a.V("ctmp","drmlog",b)};
Gra=function(){};
Fra=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};
Jra=function(a){return g.nb(a,"UHD2")?"highres":g.nb(a,"UHD1")?"hd2160":g.nb(a,"HD")?"hd1080":g.nb(a,"HD720")?"hd720":"large"};
Bra=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new DOMParser).parseFromString(b,"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(YS(Vaa(a.childNodes[0].nodeValue)).buffer):null:null};
Ora=function(a,b,c,d,e){var f;"playready"===e?f=Bra(a):"fairplay"===e&&(f=Gt(g.qf(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Naa(c,d),g.rr(c,a,3,500).then(function(h){h=new Uint8Array(h.response);(h=mra(h))&&h.message&&b.update(h.message)}))};
ZS=function(a,b,c,d,e){g.B.call(this);this.element=a;this.N=b;this.initData=c;this.u=d;this.B=e;this.sessionId="";this.K=this.I=this.C=this.F=null;this.D=new g.Pr(this);g.C(this,this.D);Pra(this)};
Pra=function(a){a.u?(a.D.R(a.u,"message",a.OJ),a.D.R(a.u,"keystatuseschange",a.PJ),a.u.closed&&a.u.closed.then(Do(function(){a.la()||Xj("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(Qr(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.dE),Qr(a.D,a.B,["mskeyerror","webkitkeyerror"],a.cE),Qr(a.D,a.B,["mskeyadded","webkitkeyadded"],a.bE))};
ura=function(a,b,c,d,e){a.F=b;a.C=c;a.I=d;a.K=e};
Qra=function(a,b,c){g.N(c);a.C&&(c instanceof DOMException&&(b+=";n.$(exc.name);m.$(exc.message)"),a.C(b))};
$S=function(a,b){g.B.call(this);this.element=a;this.u=b;this.I={};this.D=null;this.F=new g.Pr(this);this.C=this.B=null;g.C(this,this.F)};
aT=function(a){if(a.u.keySystemAccess)return a.u.keySystemAccess.createMediaKeys().then(function(b){a.la()||(a.B=b,a.element.setMediaKeys(b))});
FC(a.u)?a.C=new (EC())(a.u.u):IC(a.u)?(a.C=new (EC())(a.u.u),a.element.webkitSetMediaKeys(a.C)):Rra(a);return null};
Rra=function(a){Qr(a.F,a.element,["keymessage","webkitkeymessage"],a.SJ);Qr(a.F,a.element,["keyerror","webkitkeyerror"],a.RJ);Qr(a.F,a.element,["keyadded","webkitkeyadded"],a.QJ)};
Sra=function(a){return"widevine"===a.u.flavor&&a.u.In&&a.B.setServerCertificate?a.B.setServerCertificate(a.u.In):null};
Ura=function(a,b){var c=Tra(b,a.u.Og);c=a.C.createSession("video/mp4",c);return new ZS(null,null,null,null,c)};
Vra=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);c=a.C.createSession("video/mp4",b,c);return new ZS(null,null,null,null,c)};
bT=function(a,b){var c=a.I[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
Tra=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};
cT=function(a,b){g.B.call(this);this.u=g.Fe("video");this.B=null;this.D=[];this.F=new g.Pr(this);this.C=new DC("fairplay","com.youtube.fairplay","",b);this.C.Og=a;g.C(this,this.F);this.init()};
dT=function(a,b,c){TS.call(this);var d=this;this.D=a;this.C=b;this.u=[];this.B=new g.H(function(){var e=d.u.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.C.values.length)f=!0;else{for(var h=g.q(d.C.values),l=h.next();!l.done;l=h.next())if(l.value.cryptoPeriodIndex===f){f=!0;break a}f=!1}}f||d.V("rotated_need_key_info_ready",e);0<d.u.length&&(e=d.u[0].time-(0,g.O)(),d.B.start(Math.max(0,e)))},0);
g.C(this,this.B);c.subscribe("widevine_set_need_key_info",this.F,this)};
fT=function(a,b,c){g.P.call(this);this.element=a;this.videoData=b;this.B=c;this.u=this.videoData.Rc;this.drmSessionId=this.videoData.drmSessionId||g.cs();this.C=new NS;this.K=new NS;this.P=new NS;this.D=[];this.ya=2;this.ba=new g.Pr(this);this.xa=this.ha=!1;this.heartbeatParams=null;this.Y=this.ea=this.fa=this.W=!1;this.F=null;this.ka=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||EC()||LC(c.experiments);c=g.R(this.B.experiments,"html5_drm_initial_constraint_from_config")?this.videoData.jo:g.R(this.B.experiments,
"html5_drm_start_from_null_constraint");this.N="fairplay"===this.u.flavor||c?xC:Wra;this.I=new $S(this.element,this.u);g.C(this,this.I);FC(this.u)&&(this.X=new $S(this.element,this.u),g.C(this,this.X));g.C(this,this.ba);c=this.element;this.u.keySystemAccess?this.ba.R(c,"encrypted",this.TJ):Qr(this.ba,c,FC(this.u)?["msneedkey"]:["needkey","webkitneedkey"],this.UN);Xra(this);a:switch(c=this.u,a=this.B.experiments,b=this.C,c.flavor){case "fairplay":19.2999<Wj()?(a=c.lr,c=c.kr,c>=a&&(c=.75*a),b=.5*(a-
c),c=new US(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new dT(g.R(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.F=c)g.C(this,this.F),this.F.subscribe("rotated_need_key_info_ready",this.Pz,this);LC(this.B.experiments);eT(this,"cks"+this.u.ie());c=this.u;"com.youtube.widevine.forcehdcp"===c.u&&c.D&&(this.Fa=new cT(this.videoData.Og,this.B.experiments),g.C(this,this.Fa))};
Xra=function(a){var b=aT(a.I);b?b.then(Do(function(){Yra(a)}),Do(function(c){if(!a.la()){g.N(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.V("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(eT(a,"mdkrdy"),a.W=!0);
a.X&&(b=aT(a.X))};
Zra=function(a,b,c){a.xa=!0;c=new Dx(b,c);g.R(a.B.experiments,"html5_eme_loader_sync")?(a.K.get(b)||a.K.set(b,c),gT(a,c)):0!==a.D.length&&a.videoData.Ha&&a.videoData.Ha.sc()?hT(a):gT(a,c)};
$ra=function(a,b){eT(a,"onneedkeyinfo");g.R(a.B.experiments,"html5_eme_loader_sync")&&(a.P.get(b.initData)||a.P.set(b.initData,b));gT(a,b)};
bsa=function(a,b){if(FC(a.u)&&!a.fa){var c=Nfa(b);if(0!==c.length){var d=new Dx(c);a.fa=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(e){e.createMediaKeys().then(function(f){asa(a,f,d)})},null)}}};
asa=function(a,b,c){var d=b.createSession(),e=a.C.values[0],f=yra(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);Ora(h,d,a.u.C,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.ea=!0,csa(a,Kra(e,a.ea)))});
d.generateRequest("cenc",c.initData)};
gT=function(a,b){if(!a.la()){eT(a,"onInitData");if(g.R(a.B.experiments,"html5_eme_loader_sync")&&a.videoData.Ha&&a.videoData.Ha.sc()){var c=a.P.get(b.initData),d=a.K.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.K.remove(c);a.P.remove(c)}eT(a,"initd."+b.initData.length+";ct."+b.contentType);"widevine"===a.u.flavor?a.ha&&!a.videoData.isLivePlayback||g.R(a.B.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ed||(a.ha=!0,c=b.u,Ex(b),c&&!b.Ed&&b.u!==c&&a.V("ctmp","cpsmm","emsg."+c+";pssh."+
b.u),a.V("widevine_set_need_key_info",b)):a.Pz(b)}};
Yra=function(a){if(!a.la())if(g.R(a.B.experiments,"html5_drm_set_server_cert")&&!g.VB(a.B)){var b=Sra(a.I);b?b.then(Do(function(c){OF(a.videoData)&&a.V("ctmp","ssc",c)}),Do(function(c){a.V("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Do(function(){iT(a)})):iT(a)}else iT(a)};
iT=function(a){a.la()||(a.W=!0,eT(a,"onmdkrdy"),hT(a))};
hT=function(a){if(a.xa&&a.W&&!a.Y){for(;a.D.length;){var b=a.D[0];if(a.C.get(b.initData))if("fairplay"===a.u.flavor)a.C.remove(b.initData);else{a.D.shift();continue}Ex(b);break}a.D.length&&a.createSession(a.D[0])}};
csa=function(a,b){var c=vC("auto",b,!1,"l");if(g.R(a.B.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.jo:g.R(a.B.experiments,"html5_drm_start_from_null_constraint")){if(uC(a.N,c))return}else if(AC(a.N,b))return;a.N=c;a.V("qualitychange");eT(a,"updtlq"+b)};
dsa=function(a){if(0>=a.C.values.length){var b="ns;";a.W||(b+="nr;");return b+="ql."+a.D.length}return Lra(a.C.values[0])};
eT=function(a,b){a.la()||OF(a.videoData)&&a.V("ctmp","drmlog",b)};
esa=function(a){if(ck()){var b=a.I;b=b.B&&b.B.u?b.B.u():null;eT(a,"mtr."+g.qf(b,3))}};
jT=function(a,b,c){g.P.call(this);this.videoData=a;this.Na=b;this.playerVisibility=c;this.P=0;this.B=this.u=null;this.W=this.I=this.D=!1;this.N=this.K=0;this.C=NaN;this.F=0};
mT=function(a,b,c){var d=!1,e=a.P+3E4<(0,g.O)()||!1,f;if(f=a.videoData.ca("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.u||f.isInline()||f.isBackground()||f.pictureInPicture||f.C);f&&(c.nonfg="paused",e=!0,a.V("pausevideo"));f=a.videoData.Ka;if(!e&&((null===f||void 0===f?0:Pv(f))||(null===f||void 0===f?0:Nv(f))))if(a.videoData.ca("html5_disable_codec_on_platform_errors"))a.Na.D.N.add(f.Fb),d=e=!0,c.cfalls=f.Fb;else{var h;if(h=a.videoData.ca("html5_disable_codec_for_playback_on_error")&&
a.u){h=a.u.K;var l=f.Fb;h.oa.has(l)?h=!1:(h.oa.add(l),h.Y=-1,SC(h,h.F),h=!0)}h&&(d=e=!0,c.cfallp=f.Fb)}if(!e)return fsa(a,c);a.P=(0,g.O)();e=a.videoData;e=e.vg?e.vg.cB()<Date.now()/1E3+1800:!1;c.e=b;e&&(c.staleprog="1");kT(a,"qoe.restart",c);if(e&&gsa(a))return lT(a),!0;Xj("philips")&&hsa(a);!a.videoData.ca("html5_disable_codec_on_platform_errors")&&f&&Pv(f)?(a.Na.D.disableAv1(),d=!0):a.u?(b=a.u,c=(c=jy(b.B)||b.B.B)?c.u:b.B.u,c.P+=1,XC(b.K,c)):a.videoData.vg&&a.videoData.vg.Tx();a.V("newelementrequired",
d);return!0};
fsa=function(a,b){if(a.videoData.kg)return!1;a.Na.oa+=1;if(10>=a.Na.oa)return!1;b.exiled=""+a.Na.oa;kT(a,"qoe.start15s",b);a.V("playbackstalledatstart");return!0};
hsa=function(a){if("GAME_CONSOLE"!==a.Na.deviceParams.cplatform)try{window.close()}catch(b){}};
gsa=function(a){return a.D||"yt"!==a.Na.X?!1:a.videoData.kg?25>a.videoData.hi:!a.videoData.hi};
lT=function(a){a.D||(a.D=!0,a.V("signatureexpiredreloadrequired"))};
isa=function(a,b){if(a.B&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.B.eh();b.details.merr=c?c.toString():"0";b.details.msg=a.B.Ym()}};
jsa=function(a,b){return"html5.invalidstate"===b.errorCode&&a.Na.ca("html5_new_element_on_invalid_state")||"fmt.unplayable"===b.errorCode||"fmt.unparseable"===b.errorCode?mT(a,b.errorCode,b.details):!1};
ksa=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
msa=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)return!1;b.details.sts="18550";if(gsa(a))return c?(a.I=!0,a.V("releaseloader")):(b.u&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.u=!1),kT(a,b.errorCode,b.details),lT(a)),!0;6048E5<(0,g.O)()-a.Na.Ia&&lsa(a,"signature");return!1};
lsa=function(a,b){try{window.location.reload();kT(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.Na.ca("tvhtml5_retire_old_players")&&g.VB(a.Na)&&hsa(a)};
nsa=function(a,b){a.Na.D.B=!1;kT(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.V("formatupdaterequested")};
nT=function(a,b,c,d){a.V("clienttemp",b,c,(void 0===d?{iy:!1}:d).iy)};
kT=function(a,b,c){a.V("qoeerror",b,c)};
osa=function(a,b,c,d){this.videoData=a;this.u=b;this.reason=c;this.B=d};
psa=function(a){navigator.mediaCapabilities?oT(a.videoInfos).then(function(){return a},function(){return a}):ur(a)};
oT=function(a){var b=navigator.mediaCapabilities;if(!b)return ur(a);var c=a.map(function(d){return b&&b.decodingInfo({type:"media-source",video:d.video?{contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:8*d.u||1E6,framerate:d.video.fps||30}:null})});
return Hm(c).then(function(d){for(var e=0;e<d.length;e++)a[e].F=d[e].smooth,a[e].C=d[e].powerEfficient;return a},function(){return a})};
pT=function(a,b){g.P.call(this);this.u=a;this.W=b;this.P=this.I=this.K=this.C=this.B=this.F=this.N=this.D=0;this.playbackRate=1};
rsa=function(a,b,c){!g.R(a.u.experiments,"html5_tv_ignore_capable_constraint")&&g.VB(a.u)&&(c=yC(c,qsa(a,b)));return c};
ssa=function(a){return a.ca("html5_exponential_memory_for_sticky")?.5>VA(a.u.Rb,"sticky-lifetime")?"auto":ex():ex()};
qsa=function(a,b){if(g.VB(a.u)&&pB(a.u.D,qB.HEIGHT))var c=b.Ha.videoInfos[0].Ja().uc;else{c=b.Ha.sc();var d;LB(a.u)&&(d=window.screen&&window.screen.width?new g.he(window.screen.width,window.screen.height):null);d||(d=a.u.wi?a.u.wi.clone():a.W.getPlayerSize());(NB||bD||c)&&d.scale(g.eC());c=d;YE(b.videoData)||MF(b.videoData);var e=b.Ha.videoInfos;if(e.length){d=.85;var f=e[0].Ja();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||JB||(d=.45);f=e[0];var h=f.Ja();e=g.q(e);for(var l=
e.next();!l.done&&!(f=h=l.value,h=h.Ja(),null===c||h.width*d<c.width&&h.height*d<c.height);l=e.next());c="93"===pu(f)?Ev(h.width,h.height):h.quality;c=vC("auto",c,!1,"r")}else c=xC;c=c.u}c&&(c=Math.max(c,360));return new tC(0,c,!1,"r")};
tsa=function(a,b){return g.Ue(a,function d(){var e;return g.Aa(d,function(f){if(!b.Ha.sc())return f["return"](void 0);e=b.Ha.videoInfos;return f["return"](oT(e))})})};
usa=function(a,b){return g.Ue(a,function d(){var e,f,h=this;return g.Aa(d,function(l){if(1==l.u)return(e=b.Ha.videoInfos.find(function(m){return Pv(m)}))?null!==e.C?l.Wd(2):g.ra(l,oT([e]),2):l["return"](!1);
f=e.C||!1;h.V("ctmp","mcrsp","itag."+e.id+";smooth."+ +e.F+";efficient."+ +f);return l["return"](f)})})};
wsa=function(a,b){if(!b.videoData.Ka||a.ca("html5_disable_performance_downgrade"))return!1;6E4<g.A()-a.N&&(a.D=0);a.D++;a.N=g.A();if(4!==a.D)return!1;vsa(a,b.videoData.Ka);return!0};
ysa=function(a,b,c,d){if(!b||!c||!b.videoData.Ka)return!1;var e=g.Q(a.u.experiments,"html5_df_downgrade_thresh"),f=a.ca("html5_log_media_perf_info"),h=g.Q(a.u.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.O)()-a.F?0:f||0<e||0<h))return!1;a.F=(0,g.O)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.I,m=c.totalVideoFrames-a.P;a.I=c.droppedVideoFrames;a.P=c.totalVideoFrames;f&&b.videoData.rj&&a.V("ctmp","ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);
if(d)return a.B=0,a.C=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.C=0<h&&60*d>h?a.C+1:0;if(!e||g.VB(a.u))return!1;a.B=d>e?a.B+1:0;if(3!==a.B)return!1;vsa(a,b.videoData.Ka);a.V("ctmp","dfd",xsa());return!0};
vsa=function(a,b){var c=b.Ja().uc-1,d=b.Fb,e=b.Ja().fps,f=hx();d=gx(d,e);0<+f[d]&&(c=Math.min(+f[d],c));f[d]!==c&&(f[d]=c,g.Ps("yt-player-performance-cap",f,604800));a.V("av1hybridthresholdchange")};
zsa=function(a,b){if(!b.Ha.sc())return xC;var c=a.u.ca("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.Q(a.u.experiments,"html5_performance_cap_floor");e=a.u.u?240:e;for(var f=g.q(b.Ha.videoInfos),h=f.next();!h.done;h=f.next()){var l=h.value;if(!c||!Pv(l))if(h=ix(l.Fb,l.Ja().fps),l=l.Ja().uc,Math.max(h,e)>=l){d=l;break}}return new tC(0,d,!1,"b")};
Asa=function(a,b){a.ca("html5_log_media_perf_info")&&(a.V("ctmp","perfdb",xsa()),a.V("ctmp","hwc",""+navigator.hardwareConcurrency,!0),b&&a.V("ctmp","mcdb",b.Ha.videoInfos.filter(function(c){return!1===c.F}).map(function(c){return pu(c)}).join("-")))};
xsa=function(){var a=Lb(hx(),function(b){return""+b});
return g.OA(a)};
qT=function(a,b){g.B.call(this);this.provider=a;this.I=b;this.u=-1;this.F=!1;this.B=-1;this.playerState=new g.LK;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.H(this.send,6E4,this);this.C=!1;g.C(this,this.delay)};
Bsa=function(a){0<=a.u||(3===a.provider.getVisibilityState()?a.F=!0:(a.u=g.rT(a.provider),a.delay.start()))};
Csa=function(a){if(!(0>a.B)){var b=g.rT(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.SK(a.playerState)&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
Dsa=function(a){switch(a.u.fr){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
Esa=function(a){return(!a.ca("html5_health_to_gel")||a.u.Ia+36E5<(0,g.O)())&&(a.ca("html5_health_to_gel_canary_killswitch")||a.u.Ia+36E5<(0,g.O)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===Dsa(a))?a.ca("html5_health_to_qoe"):!0};
sT=function(a,b,c,d,e){var f={format:"RAW"},h={};aq(a)&&bq()&&(c&&(h["X-Goog-Visitor-Id"]=c),b&&(h["X-Goog-PageId"]=b),d&&(h.Authorization="Bearer "+d),c||d||b)&&(f.withCredentials=!0);0<Object.keys(h).length&&(f.headers=h);e&&(f.Bf=e);return 1<Object.keys(f).length?f:null};
tT=function(a,b,c,d,e){bq()&&c.token&&(a=g.Ld(a,{ctt:c.token,cttype:c.sy,mdx_environment:c.mdxEnvironment}));e?(null==b?b={}:(c=g.Xp(a),Object.keys(c).includes("cpn")),br(a,b)):b?(c=g.Xp(a),Object.keys(c).includes("cpn"),g.oq(a,b)):g.Vs(a,d)};
vT=function(a){g.B.call(this);var b=this;this.provider=a;this.u={};this.sequenceNumber=1;this.oa=NaN;this.yc="N";this.I=this.Ma=this.xa=this.ha=this.C=0;this.X=this.Ra="";this.Fa=this.Y=NaN;this.ya=0;this.jb=-1;this.Ia=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.fa=this.W=!1;this.kb=[];this.N=null;this.P=this.ba=this.D=!1;this.B=-1;this.ka=!1;this.Za=new g.H(this.SI,750,this);this.K=this.adCpn="";g.C(this,this.Za);(a=navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.N=
c});
g.uT(this,0,"vps",["N"])};
g.uT=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
xT=function(a,b){var c=a.provider.B();g.uT(a,b,"cmt",[c.toFixed(3)]);c=a.provider.N();if(a.F&&1E3*c>a.F.vD+100&&a.F){var d=a.F,e=d.isAd;a.ea=1E3*b-d.kQ-(1E3*c-d.vD)-d.cQ;wT(a,"gllat","l."+a.ea.toFixed()+";prev_ad."+ +e);delete a.F}};
yT=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.rT(a.provider);var c=a.provider.D();if(!isNaN(a.Y)&&!isNaN(c.B)){var d=c.B-a.Y;0<d&&g.uT(a,b,"bwm",[d,(c.D-a.Fa).toFixed(3)])}a.Y=c.B;a.Fa=c.D;isNaN(c.bandwidthEstimate)||g.uT(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.videoData.rj&&c.u&&wT(a,"bwinfo",c.u);a.N&&g.uT(a,b,"bat",[a.N.level,a.N.charging?"1":"0"]);d=a.provider.getVisibilityState();a.jb!==d&&(g.uT(a,b,"vis",[d]),a.jb=d);xT(a,b);(d=Fsa(a.provider))&&d!==a.ya&&(g.uT(a,b,"conn",[d]),
a.ya=d);Gsa(a,b,c)};
Gsa=function(a,b,c){if(!isNaN(c.Mk)){var d=c.Mk;c.C<d&&(d=c.C);g.uT(a,b,"bh",[d.toFixed(3)])}};
zT=function(a){for(var b=0,c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(g.kh(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.H(a.reportStats,0,a)).start()};
Hsa=function(a){a.provider.videoData.nn&&AT(a,"prefetch");a.provider.videoData.hi&&wT(a,"reload","r."+a.provider.videoData.reloadReason+";ct."+a.provider.videoData.hi);a.provider.videoData.Uh&&AT(a,"monitor");a.provider.videoData.isLivePlayback&&AT(a,"live");a.provider.videoData.If&&wT(a,"ctrl",a.provider.videoData.If,!0);if(a.provider.videoData.xe){var b=a.provider.videoData.xe.replace(/,/g,"_");wT(a,"ytp",b,!0)}a.provider.videoData.gF&&(b=a.provider.videoData.gF.replace(/,/g,"."),wT(a,"ytrexp",
b,!0));if(!g.R(a.provider.u.experiments,"html5_disable_gpu_reporting")){var c=a.provider.u.experiments;b=a.provider.videoData;c=g.R(c,"enable_white_noise")||g.R(c,"enable_webgl_noop")||g.R(c,"enable_gpu_logging");var d=b.Nm()||b.Yi()||b.Zi()||b.Ti(),e=b.Ha&&Pv(g.fb(b.Ha.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.BT)())&&(a.u.gpu=[b])}a.oa=Ho(function(){a.reportStats()},1E4)};
Isa=function(a,b,c,d){var e=a.provider.B();c=[c,e.toFixed(3)];d&&c.push(d);g.uT(a,b,"error",c);a.P=!0};
Jsa=function(a){0<=a.B||(a.provider.u.ac||3!==a.provider.getVisibilityState()?a.B=g.rT(a.provider):a.ka=!0)};
AT=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
wT=function(a,b,c,d){var e=a.u.ctmp||[],f=-1!==a.kb.indexOf(b);f||a.kb.push(b);if(!d||!f){/[^a-zA-Z0-9;.!_-]/.test(c)&&(c=c.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));if(!d&&!/^t[.]/.test(c)){var h=1E3*g.rT(a.provider);c="t."+h.toFixed()+";"+c}Ksa(b,c);e.push(b+":"+c);a.u.ctmp=e;zT(a);return h}};
Lsa=function(a,b,c,d,e,f){1===f&&a.reportStats();a.adCpn=b;a.K=c;b=g.rT(a.provider);c=a.provider.B();1===f&&g.uT(a,b,"vps",[a.yc]);var h=a.u.xvt||[];h.push("t."+b.toFixed(3)+";m."+c.toFixed(3)+";g.2;tt."+f+";np.0;c."+d+";d."+e);a.u.xvt=h;0===f&&(a.reportStats(),a.adCpn="",a.K="")};
Msa=function(a){this.provider=a;this.K=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.I=this.F=0;this.P=this.provider.ke().volume;this.N=this.provider.ke().muted;this.C=CT(this.provider)};
DT=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.fb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.F+=a.u-a.B;a.C=CT(a.provider);a.B=a.u};
Nsa=function(a){return a.F+a.provider.B()-a.B};
Osa=function(a){a.segments.length&&a.u===a.B||DT(a);var b=a.segments;a.segments=[];return b};
Qsa=function(a){Psa(a);a.I=Ho(function(){a.update()},100);
a.lastUpdateTime=g.rT(a.provider);a.C=CT(a.provider)};
Psa=function(a){window.clearInterval(a.I);a.I=NaN};
Rsa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
ET=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.Xi=this.ea=this.isFinal=this.jb=this.Y=this.autoplay=this.autonav=!1;this.Fa="yt";this.B=this.F=null;this.sendVisitorIdHeader=this.ya=!1;this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.fa="delayplay"===c;this.ba="atr"===c;this.Za="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ba?"/api/stats/"+c:"//"+b.xi+"/api/stats/"+c;this.Ob=!b.ca("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&b.pfpChazalUi&&
a.Hc;d&&(this.ea=d.fs,d.rtn&&(this.B=d.rtn),this.D?(this.playerState=d.state,0<d.rti&&(this.F=d.rti)):(this.kb=d.mos,this.Jb=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.Ma=d.inview),d.size&&(this.Ia=d.size));this.deviceParams=g.Zb(b.deviceParams);this.Ra=b.Fa;this.experimentIds=b.experiments.experimentIds;this.oa=b.ce;this.Fa=b.X;this.region=b.region;this.userAge=b.userAge;this.xa=b.qf;this.Rb=zp();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.N=g.R(b.experiments,
"vss_pings_using_networkless");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.accessToken=a.Ye();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=KF(a);this.autonav=a.pl||this.autonav;this.contentVideoId=IF(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Y=a.Hc;a.zh&&(this.I=a.zh,this.X=a.cg);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.Ij=a.Ij;this.Lg=a.Lg;a.Ka&&(this.videoFormat=pu(a.Ka),a.Nc&&pu(a.Nc)!==this.videoFormat&&
(this.W=pu(a.Nc)));a.ma&&Ez(a.ma)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Ob?"embedded_unbranded":HF(a);this.Xi=a.Xi;this.Lm=a.Lm;if(b=vF(a))this.wb=b;this.Ro=a.Ro;this.ug=a.ug;this.eventId=a.eventId;this.playlistId=a.PF||a.playlistId;this.Ct=a.Ct;this.If=a.If;this.xe=a.xe;this.Sp=a.Sp;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.sx=a.sx;this.referrer=a.referrer;this.Gp=a.eF||a.Gp;this.Cn=
a.Cn;this.cu=a.cu;this.userGenderAge=a.userGenderAge;this.Fq=a.Fq};
FT=function(a,b){return sT(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b)};
Ssa=function(a,b,c,d,e){b.cmt=b.len;b.lact="0";d=d().toFixed(3);b.rt=Number(d).toString();a=g.Ld(a,b);e?(null==c&&(c={}),br(a,c)):c?g.oq(a,c):g.Vs(a)};
HT=function(a){var b={ns:a.Fa,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.u(a.Ij),ei:a.eventId,fmt:a.videoFormat,fs:a.ea?"1":"0",rt:a.u(a.Mb),of:a.sx,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Ra,lact:a.Rb,live:a.wb,cl:(337181759).toString(),mos:a.kb,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.Jb};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Wa(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay=
"1");a.Y&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Xi&&(b.splay="1");a.Lg&&(b.delay=a.Lg);a.oa&&(b.hl=a.oa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.xa&&(b.uga=a.xa+a.userAge);void 0!==a.ka&&(b.len=a.u(a.ka));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.B&&(b.rtn=a.u(a.B));a.Gp&&(b.feature=a.Gp);a.playlistId&&(b.list=a.playlistId);a.If&&(b.ctrl=a.If);a.xe&&(b.ytr=a.xe);a.Sp&&(b.ssrt="1");a.W&&(b.afmt=a.W);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.ha&&(b.lio=a.u(a.ha));a.D?(b.idpj=a.Lm,b.ldpj=a.Ro,null!=a.F&&(b.rti=a.u(a.F)),a.Fq&&(b.ald=a.Fq)):void 0!==a.adType&&(b.at=a.adType);a.Ia&&(a.C||a.fa)&&(b.size=a.Ia);null!==a.Ma&&(a.C||a.fa)&&(b.inview=a.u(a.Ma));a.D&&(b.volume=GT(a,g.Pc(a.segments,function(d){return d.volume})),b.muted=GT(a,g.Pc(a.segments,function(d){return d.muted?1:0})),b.st=GT(a,g.Pc(a.segments,function(d){return d.startTime})),b.et=GT(a,g.Pc(a.segments,function(d){return d.endTime})),
ci(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=GT(a,g.Pc(a.segments,function(d){return d.playbackRate}))),ci(a.segments,function(d){return"-"!==d.hm})&&(b.als=g.Pc(a.segments,function(d){return d.hm}).join(",")));
ci(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=GT(a,g.Pc(a.segments,function(d){return d.visibilityState})));
ci(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=GT(a,g.Pc(a.segments,function(d){return d.connectionType})));
ci(a.segments,function(d){return 0!==d.C})&&(b.blo=GT(a,g.Pc(a.segments,function(d){return d.C})));
ci(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Pc(a.segments,function(d){return d.B}).join(","));
ci(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Pc(a.segments,function(d){return d.clipId}).join(","));
if(ci(a.segments,function(d){return!!d.u})){var c="au";
a.C&&(c="au_d");b[c]=g.Pc(a.segments,function(d){return d.u}).join(",")}bq()&&a.I&&(b.ctt=a.I,b.cttype=a.X,b.mdx_environment=a.mdxEnvironment);
a.Za&&(b.etype=void 0!==a.K?a.K:0);a.Cn&&(b.uoo=a.Cn);a.cu&&(b.upt=a.cu);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=Tsa[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
GT=function(a,b){return g.Pc(b,a.u).join(",")};
IT=function(a){var b=g.eG();b.adSignalsInfo=fq(void 0);var c=a.pg;c&&(b.clickTracking={clickTrackingParams:c});var d=b.client||{},e="EMBED",f=HF(a);c=a.T();"leanback"===f?e="WATCH":c.ca("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Uh?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(!c.ca("innertube_context_enable_forced_experiments_killswitch")&&c.ya){f=c.ya.split(",");e=[];f=g.q(f);for(var h=
f.next();!h.done;h=f.next())e.push(Number(h.value));d.experimentIds=e}if(e=c.getPlayerType())d.playerType=e;if(e=c.deviceParams.ctheme)d.theme=e;a.kq&&(d.unpluggedAppInfo={enableFilterMode:!0});if(e=a.Md)d.unpluggedLocationInfo=e;b.client=d;d=b.request||{};if(e=a.mdxEnvironment)d.mdxEnvironment=e;b.request=d;d=b.user||{};if(e=a.Lf)d.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=a.Zg)d.delegatePurchases={oauthToken:e},d.kidsParent={oauthToken:e};b.user=d;if(d=a.contextParams)b.activePlayers=
[{playerContextParams:d}];if(a=a.clientScreenNonce)b.clientScreenNonce=a;if(a=c.Fa)b.thirdParty={embedUrl:a};return b};
Xsa=function(a,b,c){var d=a.videoId,e=IT(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(zp()),referer:document.location.toString(),signatureTimestamp:18550};a.pl&&(h.autonav=!0);KF(a)&&(h.autoplay=!0);f.C&&a.cycToken&&(h.cycToken=a.cycToken);a.qw&&(h.fling=!0);var l=a.Am;if(l){var m={},n=l.split("|");3===n.length?(m.breakType=Usa[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.isLivingRoomDeeplink&&
(h.isLivingRoomDeeplink=!0);l=a.qs;if(null!=l){l={startWalltime:String(l)};if(m=a.Um)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Xi&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.R(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};if(n=a.xe)m=n.startsWith("!"),n=n.split("-"),3===n.length?(m&&(n[0]=n[0].substr(1)),m={clientName:Vsa[n[0]]||"UNKNOWN_INTERFACE",platform:Wsa[n[1]]||"UNKNOWN_PLATFORM",applicationState:m?
"INACTIVE":"ACTIVE",clientVersion:n[2]||""},f.ca("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]):(m={clientName:"UNKNOWN_INTERFACE"},f.ca("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]);if(m=a.Hi)l.skippableAdsSupported=m.split(",").includes("ska");h.mdxContext=l}l=b.width;0<l&&(h.playerWidthPixels=l);if(b=b.height)h.playerHeightPixels=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);if(a=a.T().embedConfig)d.serializedThirdPartyEmbedConfig=a;return d};
Ysa=function(a){var b=a.T();Fr.getInstance();var c={context:IT(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===HF(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.tf&&(c.showContentOwnerOnly=!0);Hr(0,141)&&(c.autonavState=Hr(0,140)?"STATE_OFF":"STATE_ON");return c};
$sa=function(a,b,c,d){var e=window.location.search;if(38===b.ug&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Ld("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.VL});if(30===b.ug&&"docs"===a.playerStyle)return g.Ld("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.Xc,authkey:b.authKey,eurl:a.Fa});if(33===b.ug&&"google-live"===a.playerStyle)return g.Ld("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
g.R(a.experiments,"log_invalid_namespame_killswitch")||"yt"===a.X||g.dr(Error("getVideoInfoUrl for invalid namespace: "+a.X));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Fa,ps:a.playerStyle,el:HF(b),hl:a.ce,list:b.playlistId,agcid:b.Oz,aqi:b.adQueryId,sts:18550,lact:zp()};g.Wa(f,a.deviceParams);a.ya&&(f.forced_experiments=a.ya);b.Lf?(f.vvt=b.Lf,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.Ye()&&(f.access_token=b.Ye());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&
(f.slot_pos=b.slotPosition);b.breakType&&(f.break_type=b.breakType);null!==b.Cu&&(f.ad_id=b.Cu);null!==b.Hu&&(f.ad_sys=b.Hu);null!==b.qv&&(f.encoded_ad_playback_context=b.qv);b.ly&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ci&&2!==a.Ci&&(f.cc_load_policy=a.Ci);a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.jr&&(f.endscreen_ad_tracking=b.jr);var h=a.P.get(b.videoId);h&&h.hq&&
(f.ic_track=h.hq);b.pg&&(f.itct=b.pg);KF(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.pl&&(f.autonav="1");b.uw&&(f.noiba="1");g.R(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.xe&&(f.ytr=b.xe)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.xe);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Hi&&(f.ytrcc=b.Hi);b.Bw&&(f.utpsa="1");b.qw&&(f.is_fling="1");b.rw&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Am&&(h=3===b.Am.split("|").length,f.force_ad_params=
h?b.Am:"||"+b.Am);b.nn&&(f.preload=b.nn);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Xi&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");IF(b)&&(f.content_v=IF(b));b.Uh&&(f.livemonitor=1);a.Xc&&(f.authuser=a.Xc);a.pageId&&(f.pageid=a.pageId);a.wb&&(f.ei=a.wb);a.B&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.qs&&(f.live_start_walltime=b.qs);a.C&&b.Um&&(f.live_manifest_duration=b.Um);a.C&&b.playerParams&&(f.player_params=b.playerParams);a.C&&b.cycToken&&
(f.cyc=b.cycToken);a.C&&b.oy&&(f.tkn=b.oy);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.Zg&&(f.kpt=b.Zg);b.hs&&(f.kids_age_up_mode=b.hs);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.kq&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.Md?(h=null!=b.Md.latitudeE7&&null!=b.Md.longitudeE7?b.Md.latitudeE7+","+b.Md.longitudeE7:",",h+=","+(b.Md.clientPermissionState||0)+","+(b.Md.locationRadiusMeters||"")+","+(b.Md.locationOverrideToken||
"")):h=null;h&&(f.uloc=h);b.Ko&&(f.internalipoverride=b.Ko);a.embedConfig&&(f.embed_config=a.embedConfig);a.tf&&(f.co_rel="1");0<a.De.length&&(f.ancestor_origins=Array.from(a.De).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.Sq&&b.Tq&&(f.clip=b.Sq,f.clipt=b.Tq);b.Zq&&(f.disable_watch_next=
"1");a.ca("web_player_gvi_wexit_diff")&&(f.player_request=JSON.stringify(Xsa(b,c,d)));a.ca("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(Ysa(b)));for(var l in f)!Zsa.has(l)&&f[l]&&512<String(f[l]).length&&(g.er(Error("GVI param too long: "+l)),f[l]="");b=a.K;g.WB(a)&&(b=Yu(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.K);a=g.Ld(b+"get_video_info",f);e&&(a=lq(a,e));return a};
g.JT=function(a,b){return a.K+"timedtext_video?ref=player&v="+b.videoId};
g.KT=function(a,b){a.feature=b;return a};
ata=function(a){var b={};a.hF&&(b.ytrext=a.hF);return g.Wb(b)?void 0:b};
LT=function(a){g.B.call(this);this.provider=a;this.currentPlayerState="paused";this.D=NaN;this.F=[10,10,10,40];this.K=this.I=0;this.X=this.W=this.ba=this.Y=this.P=this.N=this.B=!1;this.C=NaN;this.u=new Msa(a)};
MT=function(a,b,c){c=void 0===c?NaN:c;var d=g.rT(a.provider);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.F[a.I];a.I+1<a.F.length&&a.I++;var f=c+e;a.D=g.Fo(function(){if(!a.la()){a.D=NaN;a.u.update();var h=Osa(a.u),l=bta(a,h);b&&(l.F=f);var m=a.provider.ca("html5_expanded_max_vss_pings")?1E3:400;m=a.K>m;!(1<h.length)&&h[0].isEmpty()||m||(l.B=MT(a,!0,f));l.send();a.K++}},1E3*(f-d));
return f};
NT=function(a,b){var c=a.provider,d=c.ke();g.Wa(d,c.videoData.ke());g.Wa(d,{state:a.currentPlayerState});c=new ET(a.provider.videoData,a.provider.u,b,d);c.Ij=a.provider.B();a.provider.videoData.isLivePlayback||(c.ka=a.provider.F());a.provider.videoData.ma&&(d=a.provider.videoData.ma.je(c.Ij))&&(c.ha=d-c.Ij);c.Mb=g.rT(a.provider);c.segments=[CT(a.provider)];return c};
bta=function(a,b){var c=NT(a,"watchtime");c.segments=b;c.Ij=a.u.u;return c};
cta=function(a){a.u.update();return bta(a,Osa(a.u))};
eta=function(a){a.provider.videoData.remarketingUrl&&!a.Y&&(OT(a,a.provider.videoData.remarketingUrl),a.Y=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.ba&&(OT(a,a.provider.videoData.youtubeRemarketingUrl),a.ba=!0);a.provider.videoData.googleRemarketingUrl&&!a.W&&(OT(a,a.provider.videoData.googleRemarketingUrl),a.W=!0);a.provider.videoData.ppvRemarketingUrl&&!a.X&&(OT(a,a.provider.videoData.ppvRemarketingUrl),a.X=!0);dta(a)};
fta=function(a){a.C=Ho(function(){PT(a,"heartbeat")},3E4)};
PT=function(a,b){var c=a.provider.u,d=a.provider.videoData,e={ns:c.X,el:HF(d),eurl:c.Fa,fmt:d.Ka?pu(d.Ka):0,html5:1,list:d.playlistId,cpn:d.clientPlaybackNonce,ei:d.eventId,ps:c.playerStyle,noflv:1,st:a.provider.B(),video_id:d.videoId,metric:b};KF(d)&&(e.autoplay="1");"heartbeat"===b&&(e.tpmt=Nsa(a.u));g.Wa(e,c.deviceParams);OT(a,g.Ld(g.R(c.experiments,"cardio_base_url_killswitch")?(c.u?c.protocol+"://www.youtube.com/":c.K)+"live_204":c.K+"live_204",e))};
gta=function(a,b,c){a.N||(c||(c=NT(a,"atr")),c.P=b,c.send(),a.N=!0)};
dta=function(a){a.provider.videoData.Oc.eventLabel=HF(a.provider.videoData);a.provider.videoData.Oc.playerStyle=a.provider.u.playerStyle;a.provider.videoData.qn&&(a.provider.videoData.Oc.feature="pyv");a.provider.videoData.Oc.vid=a.provider.videoData.videoId;var b=a.provider.videoData.Oc;a=a.provider.videoData;a=a.isAd()||!!a.qn;b.isAd=a};
ita=function(a){var b=NT(a,"engage");b.K=1;a=hta(a.provider);return g.Va(Ssa,b.uri,HT(b),FT(b),a,b.N)};
OT=function(a,b){var c=a.provider.videoData.Ye(),d=a.provider.ca("web_player_vss_pageid_header")?a.provider.u.pageId:void 0,e=a.provider.u.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,f=g.R(a.provider.u.experiments,"vss_pings_using_networkless");c=sT(b,d,e,c,void 0);tT(b,c,{token:a.provider.videoData.zh,sy:a.provider.videoData.cg,mdxEnvironment:a.provider.videoData.mdxEnvironment},void 0,f)};
QT=function(a){g.B.call(this);var b=this;this.provider=a;this.B=this.qoe=this.u=null;this.provider.videoData.isValid()&&!this.provider.videoData.zn&&(this.u=new LT(this.provider),g.C(this,this.u),this.qoe=new vT(this.provider),g.C(this,this.qoe));Esa(this.provider)&&(this.B=new qT(this.provider,function(c){b.qoe&&wT(b.qoe,"h5h",c,void 0)}),g.C(this,this.B))};
g.RT=function(a){a.u&&DT(a.u.u)};
jta=function(a,b,c,d){a.qoe&&(a=a.qoe,g.uT(a,g.rT(a.provider),"ad_playback",[b,c,d]))};
kta=function(a,b){a.u&&gta(a.u,b)};
lta=function(a){if(!a.u)return null;var b=NT(a.u,"atr");return function(c){a.u&&gta(a.u,c,b)}};
qR=function(a){return a.u?ita(a.u):function(){}};
ST=function(a,b){this.C=a;this.timerName="";this.B=!1;this.u=b||null;this.B=!1};
mta=function(a){a=a.timerName;vA("yt_sts","p",a);wA("_start",void 0,a)};
nM=function(a,b,c){var d=g.MB(b.Na)&&b.Na.vf&&JF(b);if(b.Na.sf&&(IB(b.Na)||g.pC(b.Na)||d)&&!a.B){a.B=!0;g.L("TIMING_ACTION")||ro("TIMING_ACTION",a.C.csiPageType);a.C.csiServiceName&&ro("CSI_SERVICE_NAME",a.C.csiServiceName);if(a.u){b=a.u.B;d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,wA(e,b[e],a.timerName);b=a.u.u;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,vA(e,b[e],a.timerName);b=a.u;b.B={};b.u={}}vA("yt_pvis",Bka(),a.timerName);vA("yt_pt","html5",
a.timerName);c&&!DA("pbs",a.timerName)&&a.tick("pbs",c);c=a.C;!g.pC(c)&&!IB(c)&&DA("_start",a.timerName)&&HA(a.timerName)}};
nta=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.C=0;this.muted=!1;this.hm=this.clipId="-"};
ota=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.videoData=a;this.u=b;this.C=void 0;this.ke=c;this.F=d;this.B=e;this.D=f;this.P=h;this.getAudioTrack=l;this.getPlaybackRate=m;this.I=n;this.getVisibilityState=p;this.K=r||function(){};
this.W=t||function(){};
this.N=w||function(){return-1}};
g.rT=function(a){return hta(a)()};
hta=function(a){if(!a.C){var b=g.Va(function(d){var e=(0,g.O)();d&&631152E6>=e&&(g.N(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.R(a.u.experiments,"html5_validate_yt_now")),c=b();
a.C=function(){return Math.round(b()-c)/1E3};
a.W()}return a.C};
Fsa=function(a){if(navigator.connection&&navigator.connection.type)return pta[navigator.connection.type]||pta.other;if(g.VB(a.u)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
CT=function(a){var b=new nta;b.B=a.ke().cc||"-";b.playbackRate=a.getPlaybackRate();var c=a.getVisibilityState();0!==c&&(b.visibilityState=c);a.u.tc&&(b.C=1);c=a.getAudioTrack();c.u&&c.u.id&&"und"!==c.u.id&&(b.u=c.u.id);b.connectionType=Fsa(a);b.volume=a.ke().volume;b.muted=a.ke().muted;b.clipId=a.ke().clipid||"-";b.hm=a.videoData.hm||"-";return b};
qta=function(){this.B=this.mediaTime=NaN;this.u=this.seeking=!1};
TT=function(a,b){return b>a.mediaTime+.001&&b<a.mediaTime+5};
UT=function(a,b,c,d){if(d=1<d)a.u=!0;if(a.seeking)b!==a.mediaTime&&(a.seeking=!1);else if(0<b&&a.mediaTime===b)return c-a.B>(d||!a.u?1500:400);a.mediaTime=b;a.B=c;return!1};
rta=function(a,b){this.videoData=a;this.Ha=b};
tta=function(a,b,c){return b.Iq(c).then(function(){if(sta(a,b))for(;;)void 0;else return ur(new rta(b,b.Ha))},function(d){d instanceof Error&&g.Eo(d);
d=b.isLivePlayback&&!g.tB(a.D,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.yf,drm:""+ +pF(b),f18:""+ +(0<=b.lq.indexOf("itag=18")),c18:""+ +XA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.ma&&(pF(b)?(e.f142=""+ +!!b.ma.u["142"],e.f149=""+ +!!b.ma.u["149"],e.f279=""+ +!!b.ma.u["279"]):(e.f133=""+ +!!b.ma.u["133"],e.f140=""+ +!!b.ma.u["140"],e.f242=""+ +!!b.ma.u["242"]),e.cAVC=""+ +YA('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +YA('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +YA('video/webm; codecs="vp9"'));if(b.Rc){e.drmsys=b.Rc.u;var f=0;b.Rc.B&&(f=Object.keys(b.Rc.B).length);e.drmst=""+f}return new NA(d,!0,e)})};
sta=function(a,b){return a.ca("disable_init_range_auth")?!1:b.ma?!!Vb(b.ma.u,function(c){var d;return 2097152<(null===(d=c.initRange)||void 0===d?void 0:d.length)}):!1};
vta=function(a,b,c){g.P.call(this);this.videoData=a;this.experiments=b;this.N=c;this.B=[];this.D=0;this.C=!0;this.I=!1;this.K=0;c=new uta;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.Uh?c.B=3:g.BF(a)&&(c.B=2);g.R(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.I=!0);var d=kF(a);c.F=2===d||-1===d;c.F&&(c.W++,21530001===iF(a)&&(c.K=g.Q(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Xj("trident/")||Xj("edge/"))d=g.Q(b,"html5_platform_minimum_readahead_seconds")||3,c.C=Math.max(c.C,
d);g.Q(b,"html5_minimum_readahead_seconds")&&(c.C=g.Q(b,"html5_minimum_readahead_seconds"));g.Q(b,"html5_maximum_readahead_seconds")&&(c.N=g.Q(b,"html5_maximum_readahead_seconds"));g.R(b,"html5_force_adaptive_readahead")&&(c.D=!0);g.Q(b,"html5_allowable_liveness_drift_chunks")&&(c.u=g.Q(b,"html5_allowable_liveness_drift_chunks"));g.Q(b,"html5_readahead_ratelimit")&&(c.P=g.Q(b,"html5_readahead_ratelimit"));switch(iF(a)){case 21530001:c.u=(c.u+1)/5,"LOW"===a.latencyClass&&(c.u*=2),c.X=g.R(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.F=1!==this.policy.B;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Uh&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(iF(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.F&&b++;this.u=VT(this,b)};
wta=function(a,b){var c=a.u;(void 0===b?0:b)&&a.policy.X&&3===kF(a.videoData)&&--c;return WT(a)*c};
ZT=function(a,b){var c=XT(a);var d=a.policy.u;a.I||(d=Math.max(d-1,0));d*=WT(a);return b>=c-d};
XT=function(a){return Math.max(a.N()-wta(a,!0),a.videoData.qc())};
xta=function(a,b,c){b=ZT(a,b);c||b?b&&(a.C=!0):a.C=!1;a.F=2===a.policy.B||3===a.policy.B&&a.C};
yta=function(a,b){var c=ZT(a,b);a.I!==c&&a.V("livestatusshift",c);a.I=c};
WT=function(a){return a.videoData.ma?Sz(a.videoData.ma)||5:5};
VT=function(a,b){b=Math.max(Math.max(a.policy.W,Math.ceil(a.policy.C/WT(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.N/WT(a))),b)};
uta=function(){this.W=1;this.C=0;this.N=Infinity;this.P=0;this.D=!0;this.u=2;this.B=1;this.F=!1;this.K=NaN;this.X=this.I=!1};
bU=function(a,b,c,d){g.B.call(this);this.F=a;this.V=b;this.visibility=c;this.Y=d;this.C=this.D=null;this.u=0;this.K={};this.playerState=new g.LK;this.I=new g.H(this.B,1E3,this);g.C(this,this.I);this.ea=new $T({delayMs:g.Q(this.F.experiments,"html5_seek_timeout_delay_ms")});this.X=new $T({delayMs:g.Q(this.F.experiments,"html5_long_rebuffer_threshold_ms")});this.ha=aU(this,"html5_seek_set_cmt");this.ba=aU(this,"html5_seek_jiggle_cmt");this.fa=aU(this,"html5_seek_new_elem");aU(this,"html5_decoder_freeze_timeout");
this.ka=aU(this,"html5_unreported_seek_reseek");this.P=aU(this,"html5_long_rebuffer_jiggle_cmt");this.W=aU(this,"html5_reload_element_long_rebuffer");this.N=aU(this,"html5_ads_preroll_lock_timeout")};
aU=function(a,b){var c=g.Q(a.F.experiments,b+"_delay_ms"),d=g.R(a.F.experiments,b+"_cfl");return new $T({delayMs:c,Xq:d})};
cU=function(a,b,c,d,e,f,h){zta(b,c)?(d=a.ib(b),d.wn=h,d.wdup=a.K[e]?"1":"0",a.V("qoeerror",e,d),a.K[e]=!0,b.Xq||f()):(b.Ft&&b.B&&!b.D?(f=(0,g.O)(),d?b.u||(b.u=f):b.u=0,c=!d&&f-b.B>b.Ft,f=b.u&&f-b.u>b.Lx||c?b.D=!0:!1):f=!1,f&&(f=a.ib(b),f.wn=h,f.we=e,f.wsuc=""+ +d,h=g.OA(f),a.V("ctmp","workaroundReport",h),d&&(b.reset(),a.K[e]=!1)))};
$T=function(a){a=void 0===a?{}:a;var b=void 0===a.Lx?1E3:a.Lx,c=void 0===a.Ft?3E4:a.Ft,d=void 0===a.Xq?!1:a.Xq;this.F=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.Lx=b;this.Ft=c;this.Xq=d;this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
zta=function(a,b){if(!a.F||a.B)return!1;if(!b)return a.reset(),!1;var c=(0,g.O)();if(!a.startTimestamp)a.startTimestamp=c,a.C=0;else if(a.C>=a.F)return a.B=c,!0;a.C+=1;return!1};
eU=function(a,b,c,d){g.P.call(this);var e=this;this.videoData=a;this.X=b;this.visibility=c;this.Za=d;this.policy=new Ata(this.X);this.P=new bU(this.X,(0,g.z)(this.V,this),this.visibility,this.Za);a={};this.ha=(a.seekplayerrequired=this.oQ,a.videoformatchange=this.zN,a);this.playbackData=null;this.Fa=new g.Pr;this.W=this.B=this.F=this.u=null;this.C=NaN;this.K=0;this.I=null;this.ka=NaN;this.N=this.Y=null;this.xa=this.ba=!1;this.ea=new g.H(function(){Bta(e,!1)},this.policy.u);
this.kb=new g.H(function(){dU(e)});
this.ya=new g.H(function(){e.ba=!0;Cta(e)});
this.Ma=this.D=0;this.oa=!0;this.Ia=0;this.Ra=NaN;this.fa=new g.H(function(){var f=e.X.Rb;f.C+=1E4/36E5;f.C-f.F>1/6&&(SA(f),f.F=f.C);e.fa.start()},1E4);
this.ca("html5_unrewrite_timestamps")?this.ha.timestamp=this.vn:this.ha.timestamp=this.OK;g.C(this,this.Fa);g.C(this,this.ea);g.C(this,this.ya);g.C(this,this.kb);g.C(this,this.fa)};
Dta=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.W=new kla(function(){a:{if(a.playbackData&&a.playbackData.Ha.sc()){if(hF(a.videoData)&&a.F){var c=a.F.kb.u()||0;break a}if(a.videoData.ma){c=a.videoData.ma.N;break a}}c=0}return c}),a.B=new vta(a.videoData,a.X.experiments,function(){return a.od(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.K=a.K||a.videoData.startSeconds||0)};
gU=function(a,b){g.Rr(a.Fa);(a.u=b)?(Eta(a),dU(a)):fU(a);var c=a.P;(c.D=b)&&c.I.ub()};
iU=function(a,b){a.F&&Tr(a.F,a.ha,a);(a.F=b)?(Sr(b,a.ha,a),hU(a,!0)):fU(a);a.P.C=b};
jU=function(a){return a.getCurrentTime()-a.fc()};
kU=function(a){return a.B?XT(a.B):Infinity};
lU=function(a){return!!a.B&&a.B.F};
Bta=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!ZT(c,d)&&c.F?(c.policy.I&&(c.policy.u=Math.max(c.policy.u+1,10)),c=Infinity):c=d<c.videoData.qc()?Math.min(c.videoData.qc()+10,XT(c)):NaN;if(!isNaN(c)){if(a.ca("html5_in_buffer_ptl")&&a.F&&b){d=a.ea.isActive();var e=XT(a.B);if((e=Hla(a.F,e-a.fc()))&&!d){a.policy.u&&a.ea.start();a.V("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.fc()));a.seekTo(e+a.fc());return}}a.ca("html5_peg_to_live_logging")&&a.V("ctmp","ptl","cmt."+a.getCurrentTime()+
";seekTo"+(c+a.fc()));a.seekTo(c)}}};
hU=function(a,b){if(a.B&&a.F){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(c=a.B,c.B.length){var d=c.u;b:{if(c.B.length){if(1<Math.min.apply(null,c.B)){var e=VT(c,c.u-1);break b}if(c.policy.D){e=VT(c,c.u+1);break b}}e=c.u}c.u=e;if(d=d!==c.u)c.B=[],c.D=0;c=d}else c=!1;c&&a.V("livereadaheadchanged",wta(a.B));c=a.F;d=a.B.u;e=a.B;e=(e.u-1+e.policy.u)*WT(e);var f=a.B.policy.K;c.Ob=Math.max(d-1,0);c.N&&(c.N.ba=
e);c.jd=f}};
mU=function(a){return a.videoData.isLivePlayback&&!!a.videoData.Ha&&!a.videoData.Ha.sc()};
Cta=function(a){Fta(a).then(void 0,function(){fU(a)});
Gta(a).then(function(b){a.N&&(a.N.resolve(b),a.V("seekend"));fU(a)},function(){fU(a)});
a.V("seekstart")};
Fta=function(a){if(!a.Y)if(a.F)if(isFinite(a.C))a.Y=a.F.seek(a.C-a.D);else{var b=a.F;MD(b);b.N&&iD(b.N,b.B.u);b.oa.ub();b=b.P;var c=Math.max(b.B.C.I||0,b.u.C.I||0);uy(b.B);uy(b.u);var d=b.F,e;for(e in d.u)jz(d.u[e].index,Infinity);b.F.isManifestless&&(b.K=!0);b.V("setcurrenttime",c);b.C=!0;b.N=new Yv;a.Y=b.N;a.C=a.F.getCurrentTime()+a.D}else a.Y=Dm(a.C-a.D);return a.Y};
Gta=function(a){var b=a.I;b||(a.I=new Yv,b=a.I,dU(a));return b};
Hta=function(a,b,c){return isNaN(b)?NaN:g.be(b,a.qc(),a.od(c))};
dU=function(a){if(a.I)if(!a.ca("html5_nondash_live_seek_killswitch")&&mU(a)&&a.u&&0<a.u.Vf()&&0<DS(a.u)&&(a.C=Hta(a,a.C,!1)),!a.u||!Ita(a))a.kb.start(750);else if(!isNaN(a.C)&&isFinite(a.C)&&a.ka!==a.C-a.D){var b=a.u.getCurrentTime()-a.C;if(Math.abs(b)<=a.Ia)a.I&&a.I.resolve(a.u.getCurrentTime());else if(!a.videoData.isLivePlayback&&a.C>=a.od()-.1)a.C=a.od(),a.I.resolve(a.od()),a.V("ended");else try{var c=a.C-a.D;a.u.seekTo(c);a.P.u=c;a.ka=c;a.K=a.C}catch(d){}}};
Ita=function(a){if(!a.u||0===a.u.Vf()||0<a.u.eh())return!1;var b=0<a.u.getCurrentTime();if(!a.ca("html5_nondash_mediaelementready_killswitch")&&!a.sc()&&!a.videoData.isLivePlayback&&pF(a.videoData))return b;if(0<=a.C){var c=a.u.zo();if(c.length||!b)return cy(c,a.C-a.D)}return b};
fU=function(a){a.C=NaN;a.ka=NaN;a.I=null;a.Y=null;a.N=null;a.ba=!1;a.xa=!1;a.Ia=0;a.ea.stop();a.ya.stop()};
Eta=function(a){if(a.u){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Fa.R(a.u,c.value,function(d){var e=a.u;switch(d.type){case "seeking":d=e.getCurrentTime()+a.D;if(!a.I||a.xa&&d!==a.C)a.I=new Yv,a.ka=d,e=e.getCurrentTime(),a.P.u=e,a.seekTo(d),a.xa=!0;break;case "seeked":a.I&&a.I.resolve(a.u.getCurrentTime());break;case "loadedmetadata":a.oa?(e="ss.",d=0,(CF(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&
isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.ma?(d=a.videoData.liveUtcStartSeconds||a.videoData.Xj,e="utc.",d=a.od()-a.je(a.od())+d):a.videoData.ma&&a.videoData.ma.isManifestless&&a.videoData.Xj?(e="mss.",d=a.videoData.Xj+a.fc()):a.ca("html5_unrewrite_timestamps")&&a.videoData.St&&(e="stss.",d=a.videoData.St),d?(a.seekTo(d),a.V("ctmp","startSeconds",e+String(d)),a.oa=!1):a.videoData.Xj&&a.V("ctmp","startSeconds",""+e+(a.videoData.Xj+a.fc())),e=!!d):e=!1;a.ca("html5_nondash_live_seek_killswitch")&&
!e&&mU(a)&&(a.C=isFinite(a.C)?g.be(a.C,a.qc(),a.od()):a.od());dU(a);break;case "progress":dU(a)}});
a.N||a.K||a.policy.C||!a.u.Ht()||a.seekTo(.01)}};
Jta=function(a){if(!a.u)return 0;if(CF(a.videoData)){var b=Yqa(a.u)+a.D-a.qc();a=a.od()-a.qc();return Math.max(0,Math.min(1,b/a))}return FS(a.u)};
Ata=function(a){this.u=g.Q(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.B=g.R(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.D=a.ca("html5_seek_over_discontinuities");this.C=a.ca("html5_requires_seek_for_playback_at_zero_killswitch")};
Kta=function(){var a=Wo();return!(!a||"visible"===a)};
Mta=function(a){var b=Lta();b&&document.addEventListener(b,a,!1)};
Nta=function(a){var b=Lta();b&&document.removeEventListener(b,a,!1)};
Lta=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Vo+"VisibilityState"])return"";a=Vo+"visibilitychange"}return a};
nU=function(){g.P.call(this);var a=this;this.fullscreen=0;this.C=this.pictureInPicture=this.B=this.u=this.inline=!1;this.D=function(){a.tg()};
Mta(this.D);this.F=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C)};
oU=function(){g.B.call(this);this.C={};this.u={};this.B=new g.H(this.D,250,this);g.C(this,this.B)};
qU=function(a,b,c,d){a.C[b]=c;a.u[b]=new pU(void 0===d?!1:d)};
rU=function(a,b){if(a.u[b]){var c=a.u[b].buffer;for(var d=[];c.B!==c.u;)c.B=(c.B+1)%c.data.length,d.push(c.data[c.B]);c=d}else c=[];return c};
sU=function(a,b){return a.u[b]?fD(a.u[b].buffer):0};
pU=function(a){this.B=a;this.u=NaN;this.buffer=new eD(100)};
Ota=function(a){a=$p(a,{key:g.L("INNERTUBE_API_KEY")});var b=g.L("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Ad(a)));return a};
Pta=function(a){return{method:"POST",mode:aq(a)?"same-origin":"cors",credentials:aq(a)?"same-origin":"include"}};
tU=function(a,b,c,d,e){this.u=a;this.D=b;this.C=c;this.handleError=d;this.B=e};
wU=function(a,b,c){var d=void 0===d?uU:d;a:{var e,f;if((null===(e=b.signalServiceEndpoint)||void 0===e?0:e.signal)&&a.u.hy&&(e=a.u.hy[b.signalServiceEndpoint.signal])){var h=new e;break a}if((null===(f=b.continuationCommand)||void 0===f?0:f.request)&&a.u.ev&&(f=a.u.ev[b.continuationCommand.request])){h=new f;break a}for(h in b)if(a.u.Vq[h]&&(f=a.u.Vq[h])){h=new f;break a}h=void 0}if(!h)return a.handleError(new Cq("Error: No request builder found for command.",b)),Dm({});var l;f=c;f=void 0===f?{}:
f;d=void 0===d?uU:d;c={context:g.eG(b.clickTrackingParams)};if(e=h.C(b)){h.u(c,e,f);var m;h=g.vU(h.B());(f=null===(m=null===(l=b.commandMetadata)||void 0===l?void 0:l.webCommandMetadata)||void 0===m?void 0:m.apiUrl)&&(h=f);l=Ota(h);l={input:l,Gt:Pta(l),nw:c,config:Object.assign({},void 0)};l.config.Un?l.config.Un.identity=d:l.config.Un={identity:d}}else g.dr(new Cq("Error: Failed to create Request from Command.",b)),l=void 0;if(l)return Dm(Qta(a,l));a.handleError(new Cq("Error: Failed to build request for command.",
b));return Dm({})};
g.BG=function(a,b,c){var d=void 0===d?uU:d;var e=void 0===e?!0:e;b.context||(b.context=g.eG(void 0,e));c=Ota(c);b={input:c,Gt:Pta(c),nw:b,config:{Un:{identity:d}}};return Dm(Qta(a,b))};
Qta=function(a,b){return g.Ue(a,function d(){var e=this,f,h,l,m,n;return g.Aa(d,function(p){if(1==p.u)return f=e,h=JSON.stringify(b.nw),e.C.u?(l=Rta(b),p.Wd(2)):g.ra(p,Sta(b),3);2!=p.u&&(l=p.B);b.Gt=Object.assign(Object.assign({},b.Gt),{headers:l});m=Object.assign(Object.assign({},b.Gt),{body:h});n=e.D.fetch(b.input,m);return p["return"](n.then(function(r){if(r&&f.B)for(var t=g.q(f.B),w=t.next();!w.done;w=t.next())w.value.B(r,b.nw);return Promise.resolve(r)}))})})};
Tta=function(a,b){var c,d;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.u.hy)return-1<wo("web_op_signal_type_banlist").indexOf(b.signalServiceEndpoint.signal)?!1:!!a.u.hy[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.u.ev)return-1<wo("web_op_continuation_type_banlist").indexOf(b.continuationCommand.request)?!1:!!a.u.ev[b.continuationCommand.request];for(var e in b)if(a.u.Vq[e]){if(-1<wo("web_op_endpoint_banlist").indexOf(e))break;
return!0}return!1};
Sta=function(a){var b,c;a=null===(c=null===(b=a.config)||void 0===b?void 0:b.Un)||void 0===c?void 0:c.sessionIndex;return Dm(Bq(0,a)).then(function(d){return Promise.resolve(Object.assign(Object.assign({},Uta()),d))})};
Rta=function(a){var b,c;a=null===(c=null===(b=a.config)||void 0===b?void 0:b.Un)||void 0===c?void 0:c.sessionIndex;a=Bq(0,a);return Object.assign(Object.assign({},Uta()),a)};
Uta=function(){return{"Content-Type":"application/json","X-Goog-Visitor-Id":g.L("VISITOR_DATA")}};
Wta=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Vta[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(Vta).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.vU=function(a){return"/youtubei/v1/"+Wta(a)};
xU=function(){};
yU=function(){};
zU=function(){};
AU=function(){};
BU=function(){};
Xta=function(a){return a.body&&"string"===typeof a.body?"FEdownloads"===JSON.parse(a.body).browseId:!1};
Yta=function(a,b){return g.uo("kevlar_local_innertube_response")&&("string"===typeof a?a:a.url).includes("/youtubei/v1/browse")?Xta(b)?!0:!1:!1};
CU=function(){};
Zta=function(){CU.u||(CU.u=new CU);return CU.u};
$ta=function(a){var b=a.json();a.redirected||a.ok||b.then(function(c){g.er(new Cq("Error: API fetch failed",a.status,a.url,c))});
return b};
g.EU=function(){if(!DU){var a={Vq:{playlistEditEndpoint:BU,subscribeEndpoint:yU,unsubscribeEndpoint:zU,modifyChannelNotificationPreferenceEndpoint:AU}},b=g.uo("web_enable_client_location_service")?cG():void 0,c=[];b&&c.push(b);b=Zta();var d=Aq();tU.u=new tU(a,b,d,Fea,c);DU=tU.u}return DU};
FU=function(a){this.F=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.I=new Uint8Array(64);this.B=0;this.F.set(a);this.C.set(a);for(a=0;64>a;a++)this.F[a]^=92,this.C[a]^=54;this.reset()};
bua=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.u[0];c=a.u[1];e=a.u[2];for(var f=a.u[3],h=a.u[4],l=a.u[5],m=a.u[6],n=a.u[7],p,r,t=0;64>t;t++)p=n+aua[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.u[0]=b+a.u[0]|0;a.u[1]=c+a.u[1]|0;a.u[2]=e+a.u[2]|0;a.u[3]=f+a.u[3]|0;a.u[4]=h+a.u[4]|0;a.u[5]=l+a.u[5]|0;a.u[6]=m+a.u[6]|0;a.u[7]=n+a.u[7]|0};
dua=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,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.u[c]>>>24,b[4*c+1]=a.u[c]>>>16&255,b[4*c+2]=a.u[c]>>>8&255,b[4*c+3]=a.u[c]&255;cua(a);return b};
cua=function(a){a.u=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.D=0;a.B=0};
eua=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m,n,p,r,t;return g.Aa(e,function(w){switch(w.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.Wd(2);break}h=window.crypto.subtle;l={name:"HMAC",hash:{name:"SHA-256"}};m=["sign"];n=new Uint8Array(b.length+c.length);n.set(b);n.set(c,b.length);sa(w,3);return g.ra(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.B,g.ra(w,h.sign(l,p,n),6);case 6:r=w.B;f=new Uint8Array(r);ta(w,2);break;case 3:ua(w);case 2:if(!f){t=
new FU(a);t.update(b);t.update(c);var x=dua(t);t.update(t.F);t.update(x);x=dua(t);t.reset();f=x}return w["return"](f)}})})};
fua=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m,n,p,r,t;return g.Aa(e,function(w){switch(w.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.Wd(2);break}h=window.crypto.subtle;l={name:"AES-CTR",length:a.length};m=["encrypt"];n={name:"AES-CTR",counter:c,length:128};sa(w,3);return g.ra(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.B,g.ra(w,h.encrypt(n,p,b),6);case 6:r=w.B;f=new Uint8Array(r);ta(w,2);break;case 3:ua(w);case 2:if(!f){t=new Tqa(a);
for(var x=0;4>x;x++)t.u[x]=c[4*x]<<24|c[4*x+1]<<16|c[4*x+2]<<8|c[4*x+3];t.B=16;f=t.encrypt(b)}return w["return"](f)}})})};
sV=function(a){this.u=a;this.iv=YS(as())};
gua=function(a,b){return g.Ue(a,function d(){var e=this;return g.Aa(d,function(f){return f["return"](eua(e.u.B,b,e.iv))})})};
tV=function(a){this.B=a;this.D=this.u=0;this.C=-1};
uV=function(a){var b=Cu(a.B,a.u);++a.u;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=Cu(a.B,a.u),++a.u,d*=128,c+=(b&127)*d;return c};
vV=function(a,b){for(a.D=b;a.u+1<=a.B.totalLength;){var c=a.C;0>c&&(c=uV(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.C=c;break}switch(e){case 0:uV(a);break;case 1:a.u+=8;break;case 2:c=uV(a);a.u+=c;break;case 5:a.u+=4}}return!1};
wV=function(a,b,c){c=void 0===c?0:c;return vV(a,b)?uV(a):c};
xV=function(a,b){var c=void 0===c?"":c;if(!vV(a,b))return c;c=uV(a);if(!c)return"";var d=Au(a.B,a.u,c);a.u+=c;return g.v.TextDecoder?(new TextDecoder).decode(d):g.We(d)};
yV=function(a,b){var c=void 0===c?null:c;if(!vV(a,b))return c;c=uV(a);var d=Au(a.B,a.u,c);a.u+=c;return d};
hua=function(a){this.iv=yV(new tV(a),5)};
iua=function(a){a=yV(new tV(a),4);this.u=new hua(new tu([a]))};
kua=function(a){a=new tV(a);this.u=wV(a,1);this.itag=wV(a,3);this.lastModifiedTime=wV(a,4);this.xtags=xV(a,5);wV(a,6);wV(a,8);wV(a,9,-1);wV(a,10);this.B=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===jua[Lv[""+this.itag]]};
lua=function(a){this.body=null;a=new tV(a);this.onesieProxyStatus=wV(a,1,-1);this.body=yV(a,4)};
mua=function(a){a=new tV(a);this.startTimeMs=wV(a,1);this.endTimeMs=wV(a,2)};
nua=function(a){var b=new tV(a);a=xV(b,3);var c=wV(b,5);this.u=wV(b,7);var d=yV(b,14);this.B=new mua(new tu([d]));b=xV(b,15);this.C=a+";"+c+";"+b};
zV=function(a){g.P.call(this);this.decrypt=a;this.u={};this.C={};this.B=this.iv=null};
oua=function(a,b){var c=Cu(b,0),d=Au(b,1);c=a.u[c]||null;g.Ua(a);c&&a.V("STREAM_DATA",{id:c,data:d})};
pua=function(a,b){g.Ue(a,function d(){var e=this,f,h,l,m,n,p,r,t;return g.Aa(d,function(w){switch(w.u){case 1:return g.Ua(e),e.V("PLAYER_RESPONSE_RECEIVED"),f=Au(b),sa(w,2),g.ra(w,e.decrypt(f,e.iv),4);case 4:h=w.B;ta(w,3);break;case 2:return l=ua(w),g.Ua(e),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:l}),w["return"]();case 3:m=new lua(new tu([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new NA("onesie.response.badproxystatus",!1,n),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:p}),w["return"]();
r=m.body;t=g.v.TextDecoder?(new TextDecoder).decode(r):g.We(r);g.Ua(e);e.V("PLAYER_RESPONSE_READY",t);w.u=0}})})};
AV=function(){this.u=0;this.C=void 0;this.B=new Uint8Array(4096);this.view=new DataView(this.B.buffer);g.v.TextEncoder&&(this.C=new TextEncoder)};
BV=function(a,b){var c=a.u+b;if(!(a.B.length>=c)){for(var d=2*a.B.length;d<c;)d*=2;c=new Uint8Array(d);c.set(a.B);a.B=c;a.view=new DataView(a.B.buffer)}};
CV=function(a,b){if(268435455<b){BV(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.u,c&127|128),c>>=7,a.u+=1;b=Math.floor(b/268435456)}for(BV(a,4);127<b;)a.view.setUint8(a.u,b&127|128),b>>=7,a.u+=1;a.view.setUint8(a.u,b);a.u+=1};
DV=function(a,b,c){CV(a,b<<3|2);b=c.length;CV(a,b);BV(a,b);a.B.set(c,a.u);a.u+=b};
EV=function(a,b,c){c=a.C?a.C.encode(c):new Uint8Array(YS(g.Ve(c)).buffer);DV(a,b,c)};
FV=function(a){return new Uint8Array(a.B.buffer,0,a.u)};
qua=function(a){var b=a.gl,c=a.deviceId,d=a.clientName,e=a.clientVersion,f=a.deviceMake,h=a.deviceModel,l=a.osName,m=a.osVersion,n=a.browserName,p=a.browserVersion;this.hl=a.hl;this.gl=b;this.deviceId=c;this.clientName=d;this.clientVersion=e;this.deviceMake=f;this.deviceModel=h;this.osName=l;this.osVersion=m;this.browserName=n;this.browserVersion=p};
rua=function(){this.referrer=document.location.toString();this.signatureTimestamp=18550};
sua=function(a){var b=a.encryptedOnesiePlayerRequest,c=a.encryptedClientKey,d=a.iv;a=a.hmac;this.serializeResponseAsJson=!0;this.encryptedOnesiePlayerRequest=b;this.encryptedClientKey=c;this.iv=d;this.hmac=a};
GV=function(a){var b=a.value;this.name=a.name;this.value=b};
tua=function(a){this.client=a.client};
uua=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
vua=function(a){this.tv=a.tv};
wua=function(){this.contentPlaybackContext=new rua};
xua=function(a){var b=a.videoId,c=a.playbackContext;this.mw=a.mw;this.videoId=b;this.playbackContext=c};
yua=function(a,b){if(b+1<=a.totalLength){var c=Cu(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)c=Cu(a,b++);else if(2===c){c=Cu(a,b++);var d=Cu(a,b++);c=(c&63)+64*d}else if(3===c){c=Cu(a,b++);d=Cu(a,b++);var e=Cu(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=Cu(a,b++);d=Cu(a,b++);e=Cu(a,b++);var f=Cu(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),xu(a,c,4)?c=yu(a).getUint32(c-a.C,!0):(d=Cu(a,c+2)+256*Cu(a,c+3),c=Cu(a,c)+256*(Cu(a,
c+1)+256*d)),b+=5;return[c,b]};
HV=function(a){this.C=a;this.u=new tu};
zua=function(a){var b,c;a:{var d,e=a.T().rf;if(e){var f=null===(c=g.Qs("yt-player-bandaid-host"))||void 0===c?void 0:c.VP;if(f&&e.baseUrl){c=new ev("https://"+f+e.baseUrl);if(e=null===(d=a.mt)||void 0===d?void 0:d.urlQueryOverride)for(d=lv(e),d=g.q(Object.entries(d)),e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,c.set(e,f);if(!c.get("id")){e=vB(a.videoId);d=[];if(e)for(e=g.q(e),f=e.next();!f.done;f=e.next())d.push(f.value.toString(16).padStart(2,"0"));d=d.join("");
if(!d){c=void 0;break a}c.set("id",d)}break a}}c=void 0}!c&&(null===(b=a.mt)||void 0===b?0:b.url)&&(c=new ev(a.mt.url));if(!c)return"";c.set("ack","1");c.set("cpn",a.clientPlaybackNonce);c.set("opr","1");c.set("pvi","135");c.set("pai","140");c.set("oad","0");c.set("ovd","0");c.set("oaad","0");c.set("oavd","0");return c.cd()};
IV=function(a,b){var c=this;this.videoData=a;this.u=b;this.xhr=null;this.B=new Yv;this.F=!1;this.D=new g.H(this.I,1E4,this);this.C=new sV(a.T().rf.u);this.N=new HV(function(d,e){c.K.feed(d,e)});
this.K=Aua(this)};
Aua=function(a){var b=new zV(function(c,d){return a.C.decrypt(c,d)});
b.subscribe("FIRST_BYTE_RECEIVED",function(){a.u.tick("orfb");a.F=!0});
b.subscribe("PLAYER_RESPONSE_READY",function(c){a.u.tick("oprr");a.B.resolve(c);a.D.stop()});
b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.u.tick("orpr")});
b.subscribe("PLAYER_RESPONSE_FAILED",function(c){JV(a,c.errorInfo)});
return b};
JV=function(a,b){a.B.reject(b);a.D.stop();a.u.tick("ore");a.xhr&&a.xhr.abort()};
Bua=function(a){for(var b=a.xhr;b.Wg();){var c=b.Ks();c.getLength();a.N.feed(c)}};
Dua=function(a){return g.Ue(a,function c(){var d=this,e,f;return g.Aa(c,function(h){if(1==h.u)return g.ra(h,Cua(d),2);e=h.B;f={tv:e};return h["return"](new vua(f))})})};
Cua=function(a){return g.Ue(a,function c(){var d=this,e,f,h,l,m;return g.Aa(c,function(n){if(1==n.u)return g.ra(n,Eua(d),2);if(3!=n.u)return e=n.B,f=d.C.u.encryptedClientKey,h=d.C.iv,g.ra(n,gua(d.C,e),3);l=n.B;m={encryptedOnesiePlayerRequest:e,encryptedClientKey:f,iv:h,hmac:l};return n["return"](new sua(m))})})};
Eua=function(a){return g.Ue(a,function c(){var d=this,e,f,h;return g.Aa(c,function(l){switch(l.u){case 1:var m=d.videoData.T().ba;m="https://youtubei.googleapis.com/youtubei/"+m.innertubeApiVersion+"/player?key="+m.innertubeApiKey;var n=[new GV({name:"Content-Type",value:"application/x-protobuf"})],p=d.videoData.Ye();p&&n.push(new GV({name:"Authorization",value:"Bearer "+p}));n.push(new GV({name:"User-Agent",value:g.Vc}));(p=d.videoData.visitorData||so("VISITOR_DATA"))&&n.push(new GV({name:"X-Goog-Visitor-Id",
value:p}));var r=d.videoData.T();p=r.ba;r=r.deviceParams;var t=p.Io,w=p.Ho;switch(p.Mm){case "TVHTML5":var x=7;break;default:x=56}e=new uua({url:m,httpHeaders:n,postBody:new xua({mw:new tua({client:new qua({hl:t,gl:w,deviceId:"Rory",clientName:x,clientVersion:p.innertubeContextClientVersion,deviceMake:r.cbrand,deviceModel:r.cmodel,osName:r.cos,osVersion:r.cosver,browserName:r.cbr,browserVersion:r.cbrver})}),videoId:d.videoData.videoId,playbackContext:new wua})});sa(l,2);return g.ra(l,d.C.encrypt(e.Ae()),
4);case 4:f=l.B;ta(l,3);break;case 2:return ua(l),h=new NA("onesie.request.encrypt",!1),l["return"](Promise.reject(h));case 3:return l["return"](f)}})})};
Jua=function(a,b,c,d,e,f){a.la();a.gd=!0;var h=a.T();return g.R(h.experiments,"html5_onesie")&&g.R(h.experiments,"html5_onesie_player_config")&&"yt"===h.X?Fua(a).then(function(){return Gua(a,d)}).then(function(){KV(a)},function(l){l=PA(l);
if(l.u)return Promise.reject(l);c(l);return LV(a,b,c,"onesie")}):Hua(h,a)?Iua(a,e,f).then(function(){KV(a)},function(l){l=PA(l);
if(l.u)return KV(a),Promise.reject(l);c(l);return LV(a,b,c,"op")}):LV(a,b,c,"gvi")};
Hua=function(a,b){return g.R(a.experiments,"web_player_gvi_wexit")&&"yt"===a.X&&"adunit"!==HF(b)?!0:!1};
Fua=function(a){a=a.T().rf;if(!a||!a.u)return Promise.reject(new NA("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};Qw()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new NA("html5.missingapi",!1,a))):Promise.resolve()};
Gua=function(a,b){return g.Ue(this,function d(){var e,f,h,l,m;return g.Aa(d,function(n){if(1==n.u)return a.fetchType="onesie",e=new IV(a,b),g.ra(n,e.fetch(),2);f=n.B;h={player_response:f};a.gd=!1;a.Be(h,!0);if(a.gd||yF(a))return n["return"](Promise.resolve());l={};a.errorCode?(l.ec=a.errorCode,l.ed=a.errorDetail,l.es=a.Mi||""):l.successButUnplayable="1";m=new NA("onesie.response",!1,l);return n["return"](Promise.reject(m))})})};
Iua=function(a,b,c){return g.Ue(this,function e(){var f,h,l,m,n,p;return g.Aa(e,function(r){if(1==r.u)return f=g.EU(),h=Xsa(a,b,c),l=g.vU(Kua),g.ra(r,g.BG(f,h,l),2);m=r.B;a.gd=!1;a.Be({raw_player_response:m},!0);if(a.errorCode)return n={ec:a.errorCode,ed:a.errorDetail,es:a.Mi||""},r["return"](Promise.reject(new NA("auth",!0,n)));if(!a.gd&&!yF(a))return p=a.isAd()?"auth":"manifest.net.retryexhausted",r["return"](Promise.reject(new NA(p,!0,{successButUnplayable:"1"})));r.u=0})})};
LV=function(a,b,c,d){return g.Ue(this,function f(){var h,l,m,n,p,r,t,w,x;return g.Aa(f,function(y){switch(y.u){case 1:h=function(){return!0},l=function(D){D=PA(D);
if(D.u)return Promise.reject(D);c(D);return!1},n=(m=a.isAd())?1:3,p=0;
case 2:if(!(p<n)){y.Wd(4);break}r=b;if(!(0<p)){y.Wd(5);break}return g.ra(y,Vm(5E3),6);case 6:t={playerretry:p,playerretrysrc:d},m||(t.recover="embedded"),r=$p(b,t);case 5:return g.ra(y,Lua(a,r).then(h,l),7);case 7:if(w=y.B)return y["return"]();p++;y.Wd(2);break;case 4:x=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.er(new Cq("b/152131571",btoa(b)))}catch(D){}return y["return"](Promise.reject(new NA(x,!0,{backend:"gvi"})))}})})};
Lua=function(a,b){return g.Ue(this,function d(){var e,f,h,l,m,n,p,r,t,w,x,y,D,E;return g.Aa(d,function(G){if(1==G.u)return a.fetchType="gvi",e=a.T(),(l=ata(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,Xb:l},h=$p(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.Ru(e.experiments,"debug_dapper_trace_id"))&&(m["X-Google-DapperTraceInfo"]=n),(p=g.Ru(e.experiments,
"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=p),0<Object.keys(m).length&&(f.headers=m),r=(0,g.O)(),t=function(K){if(!a.la()){K=K?K.status:-1;var M=400===K||429===K,Ia=((0,g.O)()-r).toFixed();Ia={backend:"gvi",rc:""+K,rt:Ia};var va="manifest.net.connect";429===K?va="auth":200<K&&(va="manifest.net.badstatus");return Promise.reject(new NA(va,M,Ia))}},w=function(K){return t(K.xhr)},g.ra(G,xz(qr,h,f).then(void 0,w),2);
x=G.B;if(!x||!x.responseText)return G["return"](t(x));a.gd=!1;y=Vp(x.responseText);a.Be(y,!0);if(a.errorCode)return D={ec:a.errorCode,ed:a.errorDetail,es:a.Mi||""},G["return"](Promise.reject(new NA("auth",!0,D)));if(!a.gd&&!yF(a))return E=a.isAd()?"auth":"manifest.net.retryexhausted",G["return"](Promise.reject(new NA(E,!0,{successButUnplayable:"1"})));G.u=0})})};
KV=function(a){g.Ue(this,function c(){var d,e,f,h,l;return g.Aa(c,function(m){if(1==m.u){d=a.T();if(a.Zq||"adunit"!==HF(a)&&(g.VB(d)||XB(d)||iC(d)))return m["return"]();sa(m,2);e=g.EU();f=Ysa(a);h=g.vU(g.Mua);return g.ra(m,g.BG(e,f,h),4)}if(2!=m.u)return l=m.B,a.Be({raw_watch_next_response:l},!1),ta(m,0);ua(m);m.u=0})})};
Nua=function(a,b,c,d,e,f){function h(){wA("virc");GA("virc","video_to_ad")}
wA("vir");GA("vir","video_to_ad");a=Jua(a,b,c,d,e,f);a.then(h,h);return a};
OV=function(a,b,c,d,e,f,h){g.P.call(this);var l=this;this.F=a;this.Rb=new qta;this.Y=c;this.ce=d;this.si=f;this.ba=h;this.fa=new xD((0,g.z)(this.getCurrentTime,this),(0,g.z)(this.getPlaybackRate,this),(0,g.z)(this.getPlayerState,this),function(m,n){m!=g.rD("endcr")||g.T(l.C,32)||MV(l);e(m,n,l.Jb)});
g.C(this,this.fa);this.P=null;this.wb=new NS;this.oa=null;this.ea=new pT(a,this.ce);g.C(this,this.ea);this.ea.subscribe("ctmp",this.qb,this);this.tf=!0;this.W=this.D=null;this.ha=[];this.ka=new MS;this.X=this.kb=null;this.ya=new MS;this.Kc=null;this.ti=this.Ma=!1;this.ld=NaN;this.Dh=new g.H(this.hP,500,this);g.C(this,this.Dh);this.C=new g.LK;this.Pd=[];this.Jb=b;this.Mb=new g.Pr;g.C(this,this.Mb);this.u=new g.PE(a);Oua(this,function(){return{}});
Pua(this);this.B=null;this.Ra=new g.H((0,g.z)(this.wN,this),15E3);g.C(this,this.Ra);a=g.Q(this.F.experiments,"html5_source_buffer_attach_delay_time")||15E3;this.Ch=new g.H((0,g.z)(this.ZO,this),a);g.C(this,this.Ch);this.Dk=0;this.Bh=this.tc=!1;this.Ia=NaN;this.Za=!1;this.Ob=0;this.rf=new g.H(this.Ux,4500,this);g.C(this,this.rf);this.uf=!1;this.jd=NaN;this.xa=new oU;g.C(this,this.xa);qU(this.xa,"bufferhealth",function(){var m=l.K;return m.u?ES(m.u):0});
qU(this.xa,"bandwidth",(0,g.z)(this.jI,this));qU(this.xa,"networkactivity",(0,g.z)(this.rI,this),!0);qU(this.xa,"livelatency",(0,g.z)(this.iB,this));qU(this.xa,"rawlivelatency",(0,g.z)(this.mB,this));this.xa.start();this.sf=!0;this.xi=0;this.Fg=!1;this.kd=1;this.Vc=(0,g.z)(this.xP,this);Mta(this.Vc);this.ba.subscribe("visibilitystatechange",this.Vc);this.wi=0;Qua(this);g.C(this,this.K);this.Fa=null;this.ri=!1;this.Nd=[];this.vf=this.Bj=0;this.Ah=this.Ek=!1;this.qf=new g.H(function(){l.Id("ad.rebuftimeout",
"RETRYABLE_ERROR","vps."+l.C.state.toString(16))});
g.C(this,this.qf);this.ac=null;this.vi=0;this.Aj=new g.H(function(){g.SK(l.C)&&wsa(l.ea,l.X)&&NV(l)});
g.C(this,this.Aj);this.De=new g.H(this.kF,3E4,this);g.C(this,this.De)};
Oua=function(a,b){!a.I||a.I.la();var c=new ota(a.u,a.F,b,(0,g.z)(a.getDuration,a),(0,g.z)(a.getCurrentTime,a),(0,g.z)(a.vI,a),(0,g.z)(a.ce.getPlayerSize,a.ce),(0,g.z)(a.getAudioTrack,a),(0,g.z)(a.getPlaybackRate,a),(0,g.z)(a.Sv,a),a.si,(0,g.z)(a.II,a),function(){return a.Y.tick("qoes")},function(){return jU(a.K)});
a.I=new QT(c)};
Pua=function(a){!a.N||a.N.la();a.N=new jT(a.u,a.F,a.ba);a.N.subscribe("newelementrequired",function(b){return PV(a,b)});
a.N.subscribe("qoeerror",a.zC,a);a.N.subscribe("playbackstalledatstart",function(){return a.V("playbackstalledatstart")});
a.N.subscribe("signatureexpiredreloadrequired",function(){return a.V("signatureexpired")});
a.N.subscribe("releaseloader",function(){return QV(a)});
a.N.subscribe("pausevideo",function(){return a.pauseVideo()});
a.N.subscribe("clienttemp",a.qb,a);a.N.subscribe("highrepfallback",a.hN,a);a.N.subscribe("playererror",a.Id,a);a.N.subscribe("removedrmplaybackmanager",function(){return RV(a)});
a.N.subscribe("formatupdaterequested",function(){return SV(a)});
a.N.subscribe("reattachvideosourcerequired",function(){return Rua(a)})};
TV=function(a){var b=a.I;b.B&&b.B.send();if(b.u){var c=b.u;if(!c.la()&&c.B){c.currentPlayerState="paused";var d=cta(c);d.isFinal=!0;d.send();g.Io(c.C);c.dispose()}}b.qoe&&(c=b.qoe,c.provider.ca("html5_stopVideo_ping_block_killswitch")||c.P)&&("PL"===c.yc&&(c.yc="N"),d=g.rT(c.provider),g.uT(c,d,"vps",[c.yc]),c.D||(0<=c.B&&(c.u.user_intent=[c.B.toString()]),c.D=!0),c.reportStats(d));b.dispose();g.eg(a.I)};
iI=function(a){return a.B&&a.B.hk()?a.B.La():null};
UV=function(a){if(a.u.isValid())return!0;a.Id("api.invalidparam",void 0,"invalidVideodata.1");return!1};
VV=function(a,b){a.Ma=void 0===b?!1:b;if(!UV(a)||a.ka.started)g.VB(a.F)&&a.u.isLivePlayback&&a.ka.started&&!a.ka.isFinished()&&!a.Ma&&a.Zu();else{a.ka.start();var c=a.I;g.rT(c.provider);c.qoe&&Hsa(c.qoe);a.Zu()}};
Sua=function(a){var b=a.u,c=a.ce.getPlayerSize(),d=a.si(),e=$sa(a.F,a.u,c,d,a.ba.isFullscreen());Nua(a.u,e,function(f){return a.handleError(f)},a.Y,c,d).then(void 0,function(f){a.u!=b||b.la()||(f=PA(f),"auth"==f.errorCode&&a.u.errorDetail?a.Id("auth",unescape(a.u.errorReason),g.OA(f.details),a.u.errorDetail,a.u.Mi||void 0):a.handleError(f))})};
Tua=function(a,b){a.ac=b;a.D&&(a.D.Ma=new SF(b))};
Wua=function(a){if(!g.T(a.C,128))if(a.u.Bc(),a.sf=!0,4!=a.Jb&&(a.ha=g.ub(a.u.Zd)),xF(a.u)){WV(a).then(function(){a.la()||(a.Ma&&XV(a),Uua(a,a.u),a.ka.u=!0,YV(a,"dataloaded"),a.ya.started?ZV(a):a.Ma&&$V(a,NK(NK(a.C,512),1)),Asa(a.ea,a.X))});
a.qb("loudness",""+a.u.Ip.toFixed(3),!0);var b=tma(a.u);b&&a.qb("playerResponseExperiment",b,!0);Vua(a)}else YV(a,"dataloaded")};
WV=function(a){QV(a);a.X=null;var b=tta(a.F,a.u,a.ba.B);a.kb=b;a.kb.then((0,g.z)(a.eO,a),(0,g.z)(a.fO,a));return b};
SV=function(a){WV(a).then(function(){return XV(a)});
g.RK(a.C)&&a.playVideo()};
aW=function(a){a.B&&a.B.Xm();VV(a);UV(a)&&!g.T(a.C,128)&&(a.ya.started||(a.ya.start(),$V(a,NK(NK(a.C,8),1))),ZV(a))};
ZV=function(a){a.la();if(!a.ya.isFinished()&&a.ka.isFinished()&&!g.T(a.C,128)&&!a.ha.length){if(!a.fa.started){var b=a.fa;b.started=!0;b.B()}if(!bW(a)){a.D&&(b=a.D.xa,a.ti=!!b.u&&!!b.D);a.ya.isFinished()||(a.ya.u=!0);!a.u.isLivePlayback||0<a.u.Xj&&!hF(a.u)||(a.seekTo(Infinity),cW(a,"readying"),a.ba.isBackground()&&(a.Bh=!0));b=a.I;if(b.u){var c=b.u;c.provider.videoData.lo&&c.provider.videoData.ir&&(PT(c,"connected"),fta(c))}b.qoe&&(b=b.qoe,b.provider.videoData.Dp&&AT(b,b.provider.videoData.Dp),b.provider.videoData.isLivePlayback&&
(c=b.provider.videoData.ma,hF(b.provider.videoData)&&AT(b,"manifestless"),c&&Sz(c)&&AT(b,"live-segment-"+Sz(c).toFixed(1))),"yt"!==b.provider.u.X&&(b.u.len=[b.provider.videoData.lengthSeconds.toFixed(2)]));a.V("playbackready",a);DA("pbr",a.Y.timerName)||(a.Y.tick("pbr"),GA("pbr","video_to_ad"))}}};
MV=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.B&&a.B.pause();b=b?new g.LK(14):new g.LK;$V(a,b)};
Uua=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.oa&&(a.removeCueRange(a.oa),a.oa=null);a.oa=new g.oD(1E3*c,0x7ffffffffffff);a.oa.namespace="endcr";a.addCueRange(a.oa)}};
eW=function(a,b,c,d){a.u.Ka=c;d&&Xua(a,b,d);var e=(d=g.dW(a))?pu(d):"";d=a.I;e=new osa(a.u,c,b,e);if(d.qoe){c=d.qoe;d=g.rT(c.provider);g.uT(c,d,"vfs",[e.u.id,e.B,c.Ra,e.reason]);c.Ra=e.u.id;e=c.provider.P();if(0<e.width&&0<e.height){e=[Math.round(e.width),Math.round(e.height)];var f=g.eC();1<f&&e.push(f);g.uT(c,d,"view",e)}c.ba||(c.provider.videoData.rj&&AT(c,"rqs"),c.provider.videoData.ma&&Ez(c.provider.videoData.ma)&&(c.u.preload=["1"]));c.ba=!0;c.P=!0;g.uT(c,d,"vps",[c.yc]);c.reportStats(d)}c=
a.ea;c.D=0;c.B=0;a.V("internalvideoformatchange",a.u,"m"==b)};
g.dW=function(a){var b=fW(a);return wC(b)||!a.X?null:g.jb(a.X.Ha.videoInfos,(0,g.z)(b.D,b))};
Xua=function(a,b,c){if(c!=a.u.Nc){var d=!a.u.Nc;a.u.Nc=c;"m"!=b&&(b=d?"i":"a");var e=a.I;c=new osa(a.u,c,b,"");if(e.qoe){e=e.qoe;var f=g.rT(e.provider);c.u.id!==e.X&&(g.uT(e,f,"afs",[c.u.id,e.X,c.reason]),e.X=c.u.id)}d||a.V("internalaudioformatchange",a.u,"m"==b)}};
gW=function(a,b){a.ha=a.ha.filter(function(c){return b!=c});
a.ya.started&&ZV(a)};
bW=function(a){var b;(b=!!a.ha.length)||(a=a.fa.u.u[0],b=!!a&&-0x8000000000000>=a.start);return b};
iW=function(a,b){if(a.B&&b.La()==a.B.La()&&(b.isView()||a.B.isView())){if(b.isView()||!a.B.isView())g.Rr(a.Mb),a.B=b,Yua(a),gU(a.K,a.B),a.N.B=a.B}else{a.B&&hW(a);if(!a.C.isError()){var c=OK(a.C,512);g.T(c,8)&&!g.T(c,2)&&(c=NK(c,1));b.isView()&&(c=OK(c,64));$V(a,c)}a.B=b;a.B.setLoop(a.Fg);a.B.setPlaybackRate(a.kd);Yua(a);gU(a.K,a.B);a.N.B=a.B}};
hW=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;if(a.B){var d=a.getCurrentTime();0<d&&(a.K.K=d);gU(a.K,null);a.N.B=null;jW(a);a.D&&(a.D.oa.ub(),kW(a,c));a.Ra.stop();if(a.B){!a.ya.started||a.C.isError()||g.T(a.C,2)||$V(a,NK(a.C,512));g.Rr(a.Mb);if(b||!a.B.isView())a.B.stopVideo(),RV(a);a.B=null}}};
fW=function(a){if(a.X){var b=a.ea;var c=a.X,d=lW(a);a=a.ba.isBackground();var e=ssa(b);e=vC("auto",e,!1,"s");if(wC(e)){e=qsa(b,c);var f;a:if((f=c.Ha)&&f.videoInfos.length){for(var h=g.q(f.videoInfos),l=h.next();!l.done;l=h.next())if(l=l.value,l.F){f=l.Ja().uc;break a}f=f.videoInfos[0].Ja().uc}else f=0;Zj()&&!g.VB(b.u)&&Nv(c.Ha.videoInfos[0])&&(f=Math.min(f,g.Fv.large));f=new tC(0,f,!1,"o");e=yC(e,f);f=0;!b.u.u||g.MB(b.u)||ik()||g.R(b.u.experiments,"mweb_uniplayer_auto_quality")||g.R(b.u.experiments,
"hls_for_vod")||(f=g.Fv.medium);if(h=g.Q(b.u.experiments,"html5_default_quality_cap")){var m=c.Ha.sc()&&!c.videoData.If&&!c.videoData.Yc;l=g.Q(b.u.experiments,"html5_quality_cap_min_age_secs");m&&l&&(m=b.u.schedule.F,m=(0,g.O)()-m>1E3*l);m&&(f=f?Math.min(f,h):h)}h=g.Q(b.u.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=f?Math.min(f,h):h);(h=g.Q(b.u.experiments,"html5_not_vp9_supported_quality_cap"))&&!YA('video/webm; codecs="vp9"')&&(f=f?Math.min(f,
h):h);if(l=h=g.Q(b.u.experiments,"html5_hfr_quality_cap"))a:{l=c.Ha;if(l.sc())for(l=g.q(l.videoInfos),m=l.next();!m.done;m=l.next())if(32<m.value.Ja().fps){l=!0;break a}l=!1}l&&(f=f?Math.min(f,h):h);(h=g.Q(b.u.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=f?Math.min(f,h):h);f=new tC(0,f,!1,"d");e=yC(e,f);f=g.Q(b.u.experiments,"html5_background_quality_cap");h=g.Q(b.u.experiments,"html5_background_cap_idle_secs");a=!f||"auto"!==ssa(b)||zp()/1E3<h?xC:a?new tC(0,f,!1,"v"):xC;
a=yC(e,a);e=g.Q(b.u.experiments,"html5_autonav_quality_cap");f=g.Q(b.u.experiments,"html5_autonav_cap_idle_secs");e=e&&c.videoData.pl&&zp()/1E3>f?new tC(0,e,!1,"e"):xC;a=yC(yC(yC(a,e),zsa(b,c)),c.videoData.iG);e=new tC(0,0,!1,"o");1<b.playbackRate&&(e=new tC(0,480,!0,"o"));e=yC(a,e)}else b.ca("html5_perf_cap_override_sticky")&&(e=yC(e,zsa(b,c)));b=yC(yC(yC(c.videoData.gu,e),c.videoData.Zz),d)}else b=xC;return b};
lW=function(a,b){if(a.P){var c=a.P;var d=void 0===b?!1:b;c=(void 0===d?0:d)&&c.oa?c.oa:c.N}else c=XE(a.u)&&a.u.ma&&Dz(a.u.ma)?(g.R(a.F.experiments,"html5_drm_initial_constraint_from_config")?a.u.jo:g.R(a.F.experiments,"html5_drm_start_from_null_constraint"))?xC:Wra:xC;a.Ah&&(c=yC(c,Zua));return c};
nW=function(a){if(!a.la()&&!g.T(a.C,128)&&a.u.Ha){if(a.u.Ha.sc())mW(a);else{var b=fW(a),c=a.u;a:{var d=a.u.qj;if(b.u){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.ie(),l=g.Fv[h.Ja().quality];if((!b.C||"auto"!==h.Ja().quality)&&l<=b.u){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.vg=d;eW(a,b.reason,$ua(a,a.u.vg))}a.C.Cb()&&(a.K.oa=!1,a.playVideo())}};
mW=function(a){if(a.u.Ha&&a.u.Ha.sc()){var b=fW(a),c=a.u.Ka;if(!oW(a,"html5_dynamic_av1_hybrid_threshold")&&c&&Pv(c)){var d=CC(a.F);if(d&&d<c.Ja().uc&&d!=a.vi){a.vi=d;WV(a);return}}if(a.D&&(a=a.D,!a.la()&&!uC(a.K.F,b)&&a.B)){var e=a.K.F;WD(a,dla(a.K,b));JD(a);c=ZC(a.K)&&"m"==b.reason&&a.K.ba;d=a.u.jd&&"l"==b.reason&&Py(a.B);b=("b"==b.reason||"o"==b.reason)&&e.u>b.u;e=a.K.ya&&!RA();c||d||b||e?(a.td("reattachOnConstraint",c?"u":d?"drm":e?"codec":"perf"),a.V("reattachrequired")):(a.K.P&&SD(a,a.B,a.D),
a.oa.ub())}}};
NV=function(a){oW(a,"html5_nonblocking_media_capabilities")?mW(a):nW(a)};
bva=function(a){oW(a,"html5_probe_media_capabilities")&&psa(a.u.Ha);Lga(a.u.ma,{cpn:a.u.clientPlaybackNonce,c:a.F.deviceParams.c,cver:a.F.deviceParams.cver});var b=a.F,c=a.u,d=new g.Su,e=Qu(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Jm:c.Jm});d.D=e;d.fr=b.ca("html5_disable_codec_for_playback_on_error");d.Cq=b.ca("html5_max_drift_per_track_secs")||b.ca("html5_rewrite_manifestless_for_sync")||b.ca("html5_check_segnum_discontinuity");d.xi=b.ca("html5_unify_sqless_flow");d.tc=b.ca("html5_unrewrite_timestamps");
d.Ob=b.ca("html5_stop_overlapping_requests");d.rf=g.Q(b.experiments,"html5_min_readbehind_secs");d.Ty=g.Q(b.experiments,"html5_min_readbehind_cap_secs");d.BG=g.Q(b.experiments,"html5_max_readbehind_secs");d.Kz=g.R(b.experiments,"html5_trim_future_discontiguous_ranges");d.Dk=b.ca("html5_append_init_while_paused");d.qf=g.Q(b.experiments,"html5_max_readahead_bandwidth_cap");d.Fg=g.Q(b.experiments,"html5_post_interrupt_readahead");d.P=g.Q(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.ac=g.Q(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Dz=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Rb=g.Q(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.Ez=g.Q(b.experiments,"html5_subsegment_readahead_min_load_speed");d.wi=g.Q(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Fz=g.Q(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.uf=b.ca("html5_peak_shave");d.Wy=b.ca("html5_peak_shave_always_include_sd");
d.kz=b.ca("html5_restrict_streaming_xhr_on_sqless_requests");d.qG=g.Q(b.experiments,"html5_max_headm_for_streaming_xhr");d.Xy=b.ca("html5_pipeline_manifestless_allow_nonstreaming");d.cz=b.ca("html5_prefer_server_bwe3");d.Bj=1024*g.Q(b.experiments,"html5_video_tbd_min_kb");d.Ah=b.ca("html5_probe_live_using_range");d.bF=b.ca("html5_last_slice_transition");d.Az=b.ca("html5_store_xhr_headers_readable");d.gs=b.ca("html5_enable_packet_train_response_rate");if(e=g.Q(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Bh=
e,d.Gz=1;d.Za=g.Q(b.experiments,"html5_probe_primary_delay_base_ms")||d.Za;d.tf=b.ca("html5_no_placeholder_rollbacks");d.Bz=b.ca("html5_subsegment_readahead_enable_mffa");b.ca("html5_allow_video_keyframe_without_audio")&&(d.ha=!0);d.Dh=b.ca("html5_reattach_on_stuck");d.bC=b.ca("html5_webm_init_skipping");d.si=g.Q(b.experiments,"html5_request_size_padding_secs")||d.si;d.TF=b.ca("html5_log_timestamp_offset");d.Kc=b.ca("html5_abs_buffer_health");d.XE=b.ca("html5_interruption_resets_seeked_time");d.ce=
g.Q(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.ce;d.ld=b.ca("html5_explicitly_dispose_xhr");d.zz=b.ca("html5_skip_invalid_sq");d.jz=b.ca("html5_restart_on_unexpected_detach");d.HF=b.ca("html5_log_live_discontinuity");d.lz=b.ca("html5_rewrite_manifestless_for_continuity");d.De=g.Q(b.experiments,"html5_max_drift_per_track_secs");d.mz=b.ca("html5_rewrite_manifestless_for_sync");d.Mb=g.Q(b.experiments,"html5_static_abr_resolution_shelf");d.Aq=!b.ca("html5_encourage_array_coalescing");
d.Hq=b.ca("html5_crypto_period_secs_from_emsg");d.oa=b.ca("html5_defer_slicing");d.Vc=g.Q(b.experiments,"html5_buffer_health_to_defer_slice_processing");d.mr=b.ca("html5_disable_reset_on_append_error");b.ca("html5_media_common_config_killswitch")||(d.F=c.maxReadAheadMediaTimeMs/1E3||d.F,e=b.schedule,e.u.u()===e.policy.C?d.W=10:d.W=c.minReadAheadMediaTimeMs/1E3||d.W,d.kd=c.readAheadGrowthRateMs/1E3||d.kd);qg&&(d.X=41943040);d.ka=!lB();g.VB(b)||!lB()?(e=b.experiments,d.I=8388608,d.K=524288,d.zq=5,d.Fa=
2097152,d.Y=1048576,d.hz=1.5,d.Vy=!1,d.N=4587520,dk()&&(d.N=786432),d.u*=1.1,d.B*=1.1,d.wb=!0,d.X=d.I,d.Ia=d.K,d.vf=g.R(e,"persist_disable_player_preload_on_tv")||g.R(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.u&&(d.u*=1.3,d.B*=1.3);g.ZA&&Xj("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.I=20971520,d.K=1572864,e&&(d.N=812500,d.ri=1E3,d.DB=5,d.Y=2097152));!b.ca("html5_disable_firefox_init_skipping")&&g.rB&&(d.wb=!0);b.supportsGaplessAudio()||(d.Ur=!1);EB&&(d.qk=!0);
if(hF(c)){d.wD=!0;d.wz=!0;if("ULTRALOW"==c.latencyClass||"LOW"==c.latencyClass&&!b.ca("html5_disable_low_pipeline"))d.kG=2,d.sG=4;d.Ki=c.defraggedFromSubfragments;c.Gc&&(d.kb=!0);g.BF(c)&&(d.ea=!1);d.Eq=g.hC(b)}c.isAd()&&(d.Ma=0,d.Nd=0);jF(c)&&(d.fa=!0,b.ca("html5_resume_streaming_requests")&&(d.Jb=!0,d.ri=400,d.nG=2));d.ya=b.ca("html5_enable_subsegment_readahead_v3")||b.ca("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"==c.latencyClass;d.xa=c.rj;d.qF=d.xa&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||
OF(c));nk()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.ca("html5_disable_move_pssh_to_moov")&&Dz(c.ma)&&(d.wb=!1);Dz(c.ma)&&(d.Dh=!1);var f=0;b.ca("html5_live_use_alternate_bandwidth_window_sizes")&&(f=b.schedule.policy.u,c.isLivePlayback&&(f=g.Q(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")||f));e=b.schedule;e.P.u=hF(c)?.5:0;
if(!e.policy.B&&f&&(e=e.u,f=Math.round(f*e.resolution),f!==e.B)){var h=Array(f),l=Math.min(f,e.D?e.B:e.valueIndex),m=e.valueIndex-l;0>m&&(m+=e.B);for(var n=0;n<l;++n)h[n]=e.values[(m+n)%e.B];for(;n<f;++n)h[n]=Infinity;e.B=f;e.values=h;e.valueIndex=l%f;e.D=l===f;e.I=!0;e.N=Wy(e)}d.jb=c.isLivePlayback;switch(iF(c)){case 21530001:d.Uy=b.ca("html5_live_smoothly_extend_max_seekable_time");d.ya=!0;"LOW"==c.latencyClass?d.P=g.Q(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"==
c.latencyClass&&(d.P=g.Q(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.tf=!0;break;case 2153E4:d.ya=!1}d.qk=d.qk||c.qk;d.ba=c.Wh;OF(c)&&(d.Pd=!0);c.Wh&&!Dz(c.ma)&&b.ca("html5_hack_gapless_init")&&(d.ti=!0);(e=g.Q(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Wh&&c.isAd()&&(d.u*=e,d.B*=e);MF(c)?(d.C=c.videoId,d.Kc=!0,MF(c)&&c.Mg&&(d.Mg=!0)):c.lC&&(d.vi=!0);b.ca("html5_drm_initial_constraint_from_config")?d.jd=c.jo:d.jd=b.ca("html5_drm_start_from_null_constraint");b.ca("html5_dynamic_av1_hybrid_threshold")&&
(d.xr=!0,d.Ra=CC(b,{},c.Ha));c="auto"!==ex();e=g.Q(b.experiments,"html5_deadzone_multiplier")||1;(f=g.Q(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.u*=e;d.B*=e;if(e=g.Q(b.experiments,"html5_request_sizing_multiplier"))d.iz=e;d.sf=g.Q(b.experiments,"html5_min_upgrade_health")||d.sf;pB(b.D,qB.BITRATE)&&(d.N=NaN);b.D.C&&(d.cC="; "+qB.EXPERIMENTAL.name+"=allowed");c&&(d.Aj=0,d.Mb=0);d.dz=b.ca("html5_rec_2020_matrix_correction_killswitch");c=d.jb&&!b.ca("html5_pause_appends_killswitch");
d.jb=c||b.ca("html5_never_pause_appends");g.R(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&EB&&(d.bz=!0);g.R(b.experiments,"debug_html5_random_stun_format")&&(d.Ch=!0);g.R(b.experiments,"html5_urgent_adaptation_when_stun")&&(d.yA=!0);b=b.experiments;g.R(b,"html5_validate_lengthless_slices_killswitch")&&(d.LA=!1);g.R(b,"html5_audio_only_eos_fix_killswitch")&&(d.Ek=!0);g.R(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.ez=!0);g.R(b,"html5_check_seeking_for_cuepoints_killswitch")&&
(d.Bq=!0);b=a.getAudioTrack();b=b.u.isDefault?void 0:b;c=a.wb;c.keys=[];c.values=[];a.D=new ID(a.F.schedule,d,a.u.ma,a.u.Ha,fW(a),b,a.fa,a.u.enableServerStitchedDai);a.D.subscribe("needkeyinfo",a.XD,a);a.D.subscribe("newDrmInfo",a.VN,a);a.D.subscribe("videoformatchange",a.AN,a);a.D.subscribe("audioformatchange",a.yN,a);a.D.subscribe("error",a.handleError,a);a.D.subscribe("ctmp",a.qb,a);a.D.subscribe("reattachrequired",a.iQ,a);a.D.subscribe("metadata",a.RD,a);a.D.subscribe("constraint",a.qP,a);a.D.subscribe("timestamp",
a.xJ,a);a.D.subscribe("localmediachange",a.BN,a);a.D.subscribe("localplaybackfailed",a.qH,a);a.ea.subscribe("av1hybridthresholdchange",a.xM,a);d=ava(a)?!0:a.Ma&&g.VB(a.F)&&a.u.isLivePlayback;a.D.initialize(a.getCurrentTime(),fW(a),d);a.u.probeUrl&&(a.D.Ra=a.u.probeUrl);(a.ha.length||a.Ma)&&kW(a,!1);iU(a.K,a.D);a.N.u=a.D;a.ac&&(a.D.Ma=new SF(a.ac));NF(a.u)&&(a.D.u.rD=2)};
Qua=function(a){a.K=new eU(a.u,a.F,a.ba,function(){return g.nb(a.ha,"ad")});
a.K.subscribe("seekto",function(b,c){a.K.K=b;var d=a.Rb;d.mediaTime=b;d.seeking=!0;c||pW(a);a.oa&&b>a.u.endSeconds&&isFinite(b)&&(a.removeCueRange(a.oa),a.oa=null);b<qW(a)-.01&&(d=OK(a.C,2),g.T(d,8)&&(d=OK(d,4)),$V(a,d));a.V("SEEK_TO",a,b)});
a.K.subscribe("seekstart",function(){return rW(a)});
a.K.subscribe("seekend",function(){return a.V("SEEK_COMPLETE")});
a.K.subscribe("newmediaelementrequired",function(){return PV(a)});
a.K.subscribe("ended",function(){return MV(a)});
a.K.subscribe("ctmp",a.qb,a);a.K.subscribe("qoeerror",a.zC,a);a.K.subscribe("livereadaheadchanged",function(b){var c=a.I;c.qoe&&(c=c.qoe,g.uT(c,g.rT(c.provider),"lra",[b]),wT(c,"live-readahead-seconds",b.toString()))});
a.K.subscribe("releaseadsprerolllock",function(){return gW(a,"ad")})};
QV=function(a){a.D&&(a.D.dispose(),a.D=null,iU(a.K,null),a.N.u=null);jW(a)};
jW=function(a){if(a.W){if(a.D){var b=hF(a.u)&&a.u.Gc&&!a.u.isAd();ND(a.D,b)}a.W.dispose();a.W=null}};
sW=function(a){if(a.W)return a.W.So;cva(a);return a.W?a.W.So:null};
cva=function(a){if(oW(a,"html5_application_media_source"))a.V("requestmediasource",a);else{var b=g.Q(a.F.experiments,"html5_source_buffer_attach_retry_limit")||0;a.Dk<b&&a.Ch.start();try{var c=a.B.Ms()}catch(d){if(mT(a.N,"html5.missingapi",{updateMs:"1"}))return;g.er(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
a.Id("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1")}tW(a,c)}};
tW=function(a,b){dva(a);a.W=b;Eka(a.W,function(c){try{if(a.W&&(!c||a.W==c)){var d=a.getDuration();!d&&hF(a.u)&&(d=g.Q(a.F.experiments,"html5_manifestless_media_source_duration")||3600);a.W.isView()?(c=d,c>a.W.getDuration()&&iB(a.W,c)):iB(a.W,d);var e=a.D,f=a.W;e.ea&&(MD(e),e.ea=!1);LD(e);if(!jB(f)){var h=e.B.u.info.mimeType+e.u.cC,l=e.D.u.info.mimeType,m=new QA("fakesb"==l?new Bz:f.C.addSourceBuffer(l),Kv(l),!1),n=new QA("fakesb"==h?new Bz:f.C.addSourceBuffer(h),Kv(h),!0);f.u=m;f.B=n;g.C(f,m);g.C(f,
n)}iy(e.B,f.B);iy(e.D,f.u);e.C=f;e.resume();Sr(f.u,e.Jb,e);Sr(f.B,e.Jb,e);e.u.TF&&1E-4>=Math.random()&&e.td("toff",""+f.u.supports(1),!0);e.gh();a.V("mediasourceattached");a.Ch.stop()}}catch(p){g.er(p),a.handleError(new NA("fmt.unplayable",!0,{msi:"1",ename:p.name}))}})};
dva=function(a){a.D?Lm(a.D.seek(a.getCurrentTime()-a.fc()),function(){}):bva(a)};
PV=function(a,b){b=void 0===b?!1:b;return Ba(new za(new wa(function(c){if(1==c.u)return a.D&&a.D.la()&&QV(a),a.V("newelementrequired"),b?g.ra(c,WV(a),2):c.Wd(2);g.T(a.C,8)&&a.playVideo();c.u=0})))};
eva=function(a,b){a.qb("newelem",b);PV(a)};
pW=function(a){g.T(a.C,32)||($V(a,NK(a.C,32)),g.T(a.C,8)&&a.pauseVideo(!0),a.V("beginseeking",a));uW(a)};
rW=function(a){g.T(a.C,32)?($V(a,PK(a.C,16,32)),a.V("endseeking",a)):g.T(a.C,2)||$V(a,NK(a.C,16))};
YV=function(a,b){a.V("internalvideodatachange",void 0===b?"dataupdated":b,a,a.u)};
Yua=function(a){g.Gb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Mb.R(this.B,b,this.vP,this)},a);
a.F.ri&&a.B.hk()&&(a.Mb.R(a.B,"webkitplaybacktargetavailabilitychanged",a.lM,a),a.Mb.R(a.B,"webkitcurrentplaybacktargetiswirelesschanged",a.mM,a))};
gva=function(a){oW(a,"html5_enable_timeupdate_timeout")&&!a.u.isLivePlayback&&fva(a)&&a.Dh.start()};
fva=function(a){if(!a.B)return!1;var b=a.B.getCurrentTime();a=a.B.getDuration();return!!(1<b&&b>a-.3)};
hva=function(a){window.clearInterval(a.ld);a.Ra.stop();a.u.kg=!0;a.F.kg=!0;a.F.oa=0;mM(a);g.T(a.C,8)&&$V(a,OK(a.C,65));var b=a.I;if(b.u){var c=b.u;if(!c.B){g.R(c.provider.u.experiments,"disable_embedpage_playback_logging")||16623!==c.provider.videoData.Kt||g.Eo(Error("Playback for EmbedPage"));var d=NT(c,"playback");c.F=[10+c.provider.videoData.Lm,10,10,40+c.provider.videoData.Ro-c.provider.videoData.Lm,40];Qsa(c.u);d.B=MT(c,!0);d.send();if(c.provider.videoData.ot){d=c.provider.u;var e=c.provider.videoData;
e={html5:"1",video_id:e.videoId,cpn:e.clientPlaybackNonce,ei:e.eventId,ptk:e.ot,oid:e.yE,ptchn:e.xE,pltype:e.zE,content_v:IF(e)};d=g.Ld(d.K+"ptracking",e);OT(c,d)}c.provider.videoData.lo&&(PT(c,"playback"),c.C||fta(c));c.provider.videoData.Lg||eta(c);c.B=!0;c=c.u;c.u=c.provider.B();c.lastUpdateTime=g.rT(c.provider);!(0===c.B&&5>c.u)&&2<c.u-c.B&&(c.B=c.u);c.K=!0}}b.B&&(b=b.B,c=g.rT(b.provider),0>b.u&&(b.u=c,b.delay.start()),b.B=c,b.D=c);a.rf.ub();a.V("playbackstarted");g.sp()&&((a=g.Na("yt.scheduler.instance.clearPriorityThreshold"))?
a():up(0))};
mM=function(a){var b=a.getCurrentTime(),c=a.u;!DA("pbs",a.Y.timerName)&&EA.measure&&EA.getEntriesByName&&(EA.getEntriesByName("mark_nr")[0]?FA("mark_nr"):FA());c.videoId&&a.Y.info("docid",c.videoId);c.eventId&&a.Y.info("ei",c.eventId);c.clientPlaybackNonce&&a.Y.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Y.info("start",c.startSeconds.toString());a.B&&a.B.ik()&&a.Y.info("paused",1);c.Ka?a.Y.info("fmt",pu(c.Ka)):a.Y.info("fmt","-1");c.nn&&a.Y.info("yt_pre",a.ti?"2":"1");a.ba.isFullscreen()&&
a.Y.info("yt_fs","1");a.Y.info("cmt",b.toFixed(3));if(a.D){b=a.D.xa;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.D),c.length&&(c=c[0],b.ze("vri",c.fetchStart),b.ze("vdns",c.domainLookupEnd),b.ze("vreq",c.requestStart),b.ze("fvb",c.responseStart),b.ze("vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.u),c.length&&(c=c[0],b.ze("ari",c.fetchStart),b.ze("adns",c.domainLookupEnd),b.ze("areq",c.requestStart),b.ze("avb",c.responseStart),
b.ze("arc",c.responseEnd)));b=b.F;for(var d in b)a.Y.tick(d,b[d])}};
uW=function(a,b){b=void 0===b?!1:b;if(a.B&&a.u){var c=a.K,d=a.C.Cb(),e=c.getCurrentTime(),f=c.isAtLiveHead(e);if(c.W&&f){var h=c.W;if(h.u&&!(e>=h.B&&e<h.C)){var l=h.u.Sg(e);-1!=l&&(h.B=h.u.oe(l),h.C=h.B+h.u.getDuration(l),l=g.A()/1E3-h.u.je(l),l-=h.F(),h.D.add(l))}}c.B&&(f&&(f=c.B,h=c.u?ES(c.u):0,f.D++,3>f.D||g.A()-f.K<f.policy.P||(f.K=g.A(),f.B.push(h),50<f.B.length&&f.B.shift())),f=c.B,xta(f,e,void 0===d?!0:d),yta(f,e),d&&Bta(c,!0));c=a.getCurrentTime();!a.D||g.T(a.C,4)&&g.BF(a.u)||(d=a.D,e=c,d.C&&
d.C.B&&(e-=!isNaN(d.fa)&&d.u.tc?d.fa:0,d.I!=e&&d.resume(),d.P.C&&!kB(d.C)&&(f=d.I<=e&&e<d.I+10,h=cy(d.C.B.Ge(),d.I+VD),f&&h&&(d.P.C=!1)),d.P.C||(d.I=e),d.tc.ub()));5<c&&(a.K.K=c);(d=g.sp())?g.tp(a.Ia):g.Io(a.Ia);!g.SK(a.C)&&a.B.ik()||g.T(a.C,128)||(e=(0,g.z)(a.RI,a),0==a.B.dl().length?a.Ia=d?g.qp(e,100):g.Fo(e,100):a.Ia=d?g.qp(e,500):g.Fo(e,500));a.u.Ij=c;!b&&a.C.Cb()&&(a.I.Jd(),a.u.isLivePlayback&&g.A()>a.wi+6283&&(!a.isAtLiveHead()||a.u.ma&&Pz(a.u.ma)||(c=a.I,c.qoe&&(c=c.qoe,e=c.provider.D(),d=
g.rT(c.provider),Gsa(c,d,e),e=e.F,isNaN(e)||g.uT(c,d,"e2el",[e.toFixed(3)]))),g.hC(a.F)&&a.qb("rawlat","l."+sU(a.xa,"rawlivelatency").toFixed(3)),a.wi=g.A()),a.u.Ka&&Qv(a.u.Ka)&&(c=iI(a))&&c.videoHeight!=a.vf&&(a.vf=c.videoHeight,eW(a,"a",$ua(a,a.u.vg))));ysa(a.ea,a.X,a.B,a.ba.isBackground())&&NV(a);c=a.ea;d=a.u.Ka;0>=g.Q(c.u.experiments,"hfr_dropped_framerate_fallback_threshold")||!(d&&d.Ja()&&32<d.Ja().fps)?c=!1:3<=c.C?(c.C=0,c=!0):c=!1;c&&(a.I.onError("qoe.restart","droprate."+a.ea.K),a.F.D.I=
!1,SV(a));!oW(a,"html5_check_ads_abnormality_killswitch")&&a.u.isAd()&&a.N&&a.I&&a.B&&(c=a.N,f=g.rT(a.I.provider),h=a.B.getCurrentTime(),e=a.getDuration(),(d=g.T(a.C,8))&&!c.C?(c.C=f,c.F=h||0):(c.C&&(f-=c.C,5<=f&&(h-=c.F,e-=c.F,(f>=5*h||f>=e+5)&&nT(c,"slowads","wt."+f.toFixed(3)+".mpt."+h.toFixed(3)+(".dl."+e.toFixed(3))))),d||(c.C=NaN,c.F=0)));a.V("progresssync",a,b)}};
$ua=function(a,b){if("auto"==b.Ka.Ja().quality&&Qv(b.ie())&&a.u.qj)for(var c=g.q(a.u.qj),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()==a.vf&&"auto"!=d.Ka.Ja().quality)return d.ie();return b.ie()};
$V=function(a,b){if(!g.QK(a.C,b)){var c=new g.nI(b,a.C);a.C=b;iva(a);var d=!a.Pd.length;a.Pd.push(c);var e=a.B&&a.B.Xo();g.pI(c,1)&&!g.T(c.mk,16)&&!e&&g.T(a.C,8)&&!g.T(a.C,64)&&a.D&&(a.D.ya=!0,a.B&&5<=ES(a.B)&&((e=g.Q(a.F.experiments,"html5_non_network_rebuffer_duration_ms"))?a.Aj.start(e):wsa(a.ea,a.X)&&NV(a)));(e=g.Q(a.F.experiments,"html5_ad_timeout_ms"))&&a.u.isAd()&&g.T(b,1)&&(g.T(b,8)||g.T(b,16))?a.qf.start(e):a.qf.stop();(0>oI(c,8)||g.pI(c,1024))&&a.Ra.stop();!g.pI(c,8)||a.u.kg||g.T(c.state,
1024)||a.Ra.start();g.T(c.state,8)&&0>oI(c,16)&&!g.T(c.state,32)&&!g.T(c.state,2)&&a.playVideo();g.T(c.state,2)&&CF(a.u)&&(e=a.getCurrentTime(),a.u.lengthSeconds!=e&&(a.u.lengthSeconds=e,YV(a)),uW(a,!0));g.pI(c,2)&&a.Ux(!0);g.pI(c,128)&&a.mh();a.u.ma&&a.u.isLivePlayback&&!a.Ek&&(0>oI(c,8)?(e=a.u.ma,e.D&&e.D.stop()):g.pI(c,8)&&a.u.ma.resume());a.K.Tb(c);a.I.Tb(c);if(d&&!a.la())try{for(var f=g.q(a.Pd),h=f.next();!h.done;h=f.next()){var l=h.value;a.fa.Tb(l);a.V("statechange",l)}}finally{a.Pd.length=
0}}};
vW=function(a,b){g.T(a.C,128)||($V(a,PK(a.C,1028,9)),a.qb("dompaused",b),a.V("onDompaused"))};
XV=function(a){if(!a.B||!a.u.Ha)return!1;var b=null;a.u.Ha.sc()?(b=sW(a),a.D.resume()):(QV(a),a.u.vg&&(b=a.u.vg.Zo()));var c=b;var d=a.B.Ns();b=!1;d&&null!==c&&c.u===d.u||(a.Y.tick("vta"),GA("vta","video_to_ad"),0<a.getCurrentTime()&&(b=a.getCurrentTime(),a.K.K=b),a.B.Xm(c),a.W&&up(4),!a.u.kg&&g.RK(a.C)&&a.Ra.start(),b=!0);g.T(a.C,2)||(c=a.K,c.N||!(0<c.K)||c.u&&0<c.u.getCurrentTime()||c.seekTo(c.K));a:if(c=b,g.sF(a.u)&&a.B)if((d=a.u.Rc)&&a.B.hk()){var e=a.B.La();if(a.P)if(e!=a.P.element)RV(a);else if(c&&
"fairplay"==d.flavor&&!ck())RV(a);else break a;a.P=new fT(e,a.u,a.F);a.P.subscribe("licenseerror",a.qN,a);a.P.subscribe("qualitychange",a.sN,a);a.P.subscribe("heartbeatparams",a.lN,a);a.P.subscribe("keystatuseschange",a.oN,a);a.P.subscribe("hdproberequired",a.rN,a);a.P.subscribe("ctmp",a.qb,a);c=g.q(a.wb.keys);for(d=c.next();!d.done;d=c.next())d=a.wb.get(d.value),$ra(a.P,d);oW(a,"html5_eme_loader_sync")||(a=a.wb,a.keys=[],a.values=[])}else a.Id("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1");return b};
RV=function(a){a.P&&(a.P.dispose(),a.P=null)};
wW=function(a,b){b=void 0===b?!1:b;return a.u.isLivePlayback&&(a.isAtLiveHead()&&(oW(a,"html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.T(a.C,4))||lU(a.K)||g.BF(a.u))?a.getCurrentTime():qW(a,b)};
qW=function(a,b){return a.K.od(void 0===b?!1:b)};
g.jva=function(a,b){(a.tf=b)||a.Ra.stop();if(a.u.ma)if(b)a.u.ma.resume();else{var c=a.u.ma;c.D&&c.D.stop()}g.R(a.F.experiments,"html5_suspend_loader")&&a.D&&(b?a.D.resume():kW(a,!0));g.R(a.F.experiments,"html5_fludd_suspend")&&(g.T(a.C,2)||b?g.T(a.C,512)&&b&&$V(a,OK(a.C,512)):$V(a,NK(a.C,512)));c=a.I;c.qoe&&(c=c.qoe,g.uT(c,g.rT(c.provider),"stream",[b?"A":"I"]))};
Rua=function(a){a.B&&(a.W?(RV(a),jW(a),sW(a)):(a.u.vg&&a.u.vg.Tx(),a.B.stopVideo()),a.playVideo())};
xW=function(a,b){g.R(a.F.experiments,"html5_log_rebuffer_reason")&&a.qb("bufreason","r."+b+";lact."+zp())};
yW=function(a,b,c,d,e,f){f?(a=a.I,a.qoe&&Lsa(a.qoe,b,c,d,e,1)):(a=a.I,a.qoe&&Lsa(a.qoe,b,c,d,e,0))};
kva=function(a,b){if(a.u.rj){var c=g.Q(a.F.experiments,"html5_log_rebuffer_events");if(c&&a.B){var d=a.B.ib();d.rt=(1E3*g.rT(a.I.provider)).toFixed();d.e=b.substr(0,3);a.Nd[a.Bj++%c]=d}}};
iva=function(a){if(a.u.rj){a.Nd.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.q(a.Nd),c=b.next();!c.done;c=b.next())c=c.value,a.qb("vpe","t."+c.rt+";"+g.OA(c));a.Nd=[];a.Bj=0}};
cW=function(a,b){a.qb("seekreason",b)};
lva=function(a){if(Xj("cobalt")&&Xj("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.qb("nxdock",""+ +b)}};
oW=function(a,b){return g.R(a.F.experiments,b)};
mva=function(a,b,c,d,e){a.qb("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
kW=function(a,b){KD(a.D,b||ava(a))};
ava=function(a){var b=oW(a,"disable_prefetch_when_ad_pending_for_living_room")&&g.VB(a.F),c=oW(a,"disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.nb(a.ha,"ad")};
Vua=function(a){if(bF(a.u,"html5_set_debugging_opt_in")&&(a=Fr.getInstance(),!Hr(0,183))){var b="f"+(Math.floor(183/31)+1),c=Gr(b)||0;c|=268435456;0==c?delete Er[b]:(c=c.toString(16),Er[b]=c.toString());a.save()}};
zW=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.Ld("/sharing_services",a);g.Vs(d)};
nva=function(a,b){var c={commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",url:"/service_ajax",sendPost:!0}},playlistEditEndpoint:{playlistId:"WL",actions:b}},d={list_id:"WL"};c=wU(g.EU(),c);Jm(c.then(function(e){if(e&&"STATUS_SUCCEEDED"===e.status){if(a.onSuccess)a.onSuccess({},d)}else if(a.onError)a.onError({},d)}),function(){a.Bf&&a.Bf({},d)})};
pva=function(a,b,c){g.uo("web_classic_playlist_one_platform_update")?nva(a,[{addedVideoId:a.videoIds,action:"ACTION_ADD_VIDEO"}]):ova("add_to_watch_later_list",a,b,c)};
qva=function(a,b,c){g.uo("web_classic_playlist_one_platform_update")?nva(a,[{removedVideoId:a.videoIds,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"}]):ova("delete_from_watch_later_list",a,b,c)};
ova=function(a,b,c,d){g.oq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Dg:{feature:b.feature||null,authuser:b.Xc||null,pageid:b.pageId||null},Xb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.ZV||null,add_to_playlists:b.yV||null,plid:g.L("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
Bf:b.Bf,withCredentials:!!d})};
g.sva=function(a,b,c){b=rva(null,b,c);if(b=window.open(b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0))c=g.No("LOGGED_IN",function(d){g.Oo(g.L("LOGGED_IN_PUBSUB_KEY",void 0));ro("LOGGED_IN",!0);a(d)}),ro("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
rva=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=Kd(c,"mode",a));a=Kd(d,"next",c);b&&(a=Kd(a,"feature",b));return a};
AW=function(){};
BW=function(){};
uva=function(){var a,b,c=navigator;return(null===(a=c.storage)||void 0===a?0:a.estimate)?new zm(function(d){c.storage.estimate().then(function(e){d(e)})}):(null===(b=c.webkitTemporaryStorage)||void 0===b?0:b.u)?tva():Dm(void 0)};
tva=function(){var a=navigator;return new zm(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.u?a.webkitTemporaryStorage.u(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Eq=function(a,b,c){this.gw=a;this.handleError=b;this.u=c};
wva=function(a){uva().then(function(b){a.u("idbQuotaExceeded",{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:vva(null===b||void 0===b?void 0:b.usage),deviceStorageQuotaMbytes:vva(null===b||void 0===b?void 0:b.quota)})})};
vva=function(a){return a?String(10*Math.round(a/1048576/10)):"-1"};
xva=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 CW(a)};
CW=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};
yva=function(a,b,c,d){if(g.Sa(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};
EW=function(a,b){g.B.call(this);var c=this;this.app=a;this.playerType=b;this.u=!0;this.element=null;this.F={};this.K={};this.B={};this.N=[];this.I={};this.D={};this.C=null;this.W=new Set;DW(this,"cueVideoById",this.cueVideoById);DW(this,"loadVideoById",this.loadVideoById);DW(this,"cueVideoByUrl",this.cueVideoByUrl);DW(this,"loadVideoByUrl",this.loadVideoByUrl);DW(this,"playVideo",this.playVideo);DW(this,"pauseVideo",this.pauseVideo);DW(this,"stopVideo",this.stopVideo);DW(this,"clearVideo",this.clearVideo);
DW(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);DW(this,"getVideoBytesTotal",this.getVideoBytesTotal);DW(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);DW(this,"getVideoStartBytes",this.getVideoStartBytes);DW(this,"cuePlaylist",this.cuePlaylist);DW(this,"loadPlaylist",this.loadPlaylist);DW(this,"nextVideo",this.nextVideo);DW(this,"previousVideo",this.previousVideo);DW(this,"playVideoAt",this.playVideoAt);DW(this,"setShuffle",this.setShuffle);DW(this,"setLoop",this.setLoop);DW(this,
"getPlaylist",this.tI);DW(this,"getPlaylistIndex",this.getPlaylistIndex);DW(this,"getPlaylistId",this.getPlaylistId);DW(this,"loadModule",this.loadModule);DW(this,"unloadModule",this.unloadModule);DW(this,"setOption",this.setOption);DW(this,"getOption",this.getOption);DW(this,"getOptions",this.getOptions);DW(this,"mute",this.mute);DW(this,"unMute",this.unMute);DW(this,"isMuted",this.isMuted);DW(this,"setVolume",this.setVolume);DW(this,"getVolume",this.getVolume);DW(this,"seekTo",this.seekTo);DW(this,
"getPlayerState",this.getPlayerState);DW(this,"getPlaybackRate",this.getPlaybackRate);DW(this,"setPlaybackRate",this.setPlaybackRate);DW(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);DW(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
DW(this,"setPlaybackQuality",this.setPlaybackQuality);DW(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);DW(this,"getCurrentTime",this.getCurrentTime);DW(this,"getDuration",this.getDuration);DW(this,"addEventListener",this.wH);DW(this,"removeEventListener",this.dQ);DW(this,"getDebugText",this.getDebugText);DW(this,"getVideoData",function(){return c.Jr()});
DW(this,"addCueRange",this.addCueRange);DW(this,"removeCueRange",this.removeCueRange);DW(this,"setSize",this.setSize);DW(this,"getApiInterface",this.getApiInterface);DW(this,"destroy",this.destroy);DW(this,"showVideoInfo",this.showVideoInfo);DW(this,"hideVideoInfo",this.hideVideoInfo);DW(this,"isVideoInfoVisible",this.isVideoInfoVisible);DW(this,"getSphericalProperties",this.getSphericalProperties);DW(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().I||(DW(this,"getVideoEmbedCode",
this.getVideoEmbedCode),DW(this,"getVideoUrl",this.getVideoUrl));DW(this,"getMediaReferenceTime",this.getMediaReferenceTime);Y(this,"getInternalApiInterface",this.getInternalApiInterface);Y(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);Y(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);Y(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);Y(this,"getAdState",this.getAdState);Y(this,"sendAbandonmentPing",this.sendAbandonmentPing);Y(this,"setLoopRange",this.setLoopRange);
Y(this,"getLoopRange",this.getLoopRange);Y(this,"setAutonavState",this.setAutonavState);Y(this,"seekToLiveHead",this.seekToLiveHead);Y(this,"seekToStreamTime",this.seekToStreamTime);Y(this,"getStreamTimeOffset",this.getStreamTimeOffset);Y(this,"getVideoData",this.Jr);Y(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);Y(this,"deleteLocalMediaById",this.deleteLocalMediaById);Y(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);Y(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);
Y(this,"fetchLocalMedia",this.fetchLocalMedia);Y(this,"fetchLocalMediaById",this.fetchLocalMediaById);Y(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);Y(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);Y(this,"getAppState",this.getAppState);Y(this,"addInfoCardXml",this.addInfoCardXml);Y(this,"updateLastActiveTime",this.updateLastActiveTime);Y(this,"setBlackout",this.setBlackout);Y(this,"setAccountLinkState",this.setAccountLinkState);Y(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);
Y(this,"setUserEngagement",this.setUserEngagement);Y(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);Y(this,"setFauxFullscreen",this.setFauxFullscreen);Y(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);Y(this,"getPresentingPlayerType",this.getPresentingPlayerType);Y(this,"canPlayType",this.canPlayType);Y(this,"updatePlaylist",this.updatePlaylist);Y(this,"updateVideoData",this.updateVideoData);Y(this,"updateEnvironmentData",this.updateEnvironmentData);Y(this,"sendVideoStatsEngageEvent",
this.sendVideoStatsEngageEvent);Y(this,"setCardsVisible",this.setCardsVisible);Y(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);Y(this,"setSafetyMode",this.setSafetyMode);Y(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
Y(this,"getVideoAspectRatio",this.getVideoAspectRatio);Y(this,"getPreferredQuality",this.getPreferredQuality);Y(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);Y(this,"onAdUxClicked",this.onAdUxClicked);Y(this,"getFeedbackProductData",this.getFeedbackProductData);Y(this,"getStoryboardFrame",this.getStoryboardFrame);Y(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);Y(this,"getStoryboardLevel",this.getStoryboardLevel);Y(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
Y(this,"setAutonav",this.setAutonav);Y(this,"isNotServable",this.isNotServable);Y(this,"channelSubscribed",this.channelSubscribed);Y(this,"channelUnsubscribed",this.channelUnsubscribed);Y(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);Y(this,"togglePictureInPicture",this.togglePictureInPicture);Y(this,"supportsGaplessAudio",this.supportsGaplessAudio);Y(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
Y(this,"clearQueue",this.clearQueue);Y(this,"isFastLoad",function(){return!1});
Y(this,"getPlayerResponse",this.getPlayerResponse);Y(this,"getAudioTrack",this.aI);Y(this,"setAudioTrack",this.setAudioTrack);Y(this,"getAvailableAudioTracks",this.bI);Y(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);Y(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);Y(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);Y(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);Y(this,"setMinimized",this.setMinimized);Y(this,"confirmYpcRental",
this.confirmYpcRental);Y(this,"handleExternalCall",this.handleExternalCall);Y(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);Y(this,"getStatsForNerds",this.getStatsForNerds);Y(this,"setScreenLayer",this.setScreenLayer);Y(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);Y(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);Y(this,"forceFrescaUpdate",this.forceFrescaUpdate);Y(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);Y(this,"updateFullerscreenEduButtonVisibility",
this.updateFullerscreenEduButtonVisibility);Y(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);Y(this,"setGlobalCrop",this.setGlobalCrop);Y(this,"getVisibilityState",this.getVisibilityState);Y(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);Y(this,"setInternalSize",this.setInternalSize)};
DW=function(a,b,c){a.F[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.N.push(b)};
FW=function(a,b,c){a.K[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.N.push(b)};
Y=function(a,b,c){a.B[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];return c.apply(a,e)}};
RL=function(a){a.C||(a.C={},g.Wa(a.C,a.F),g.Wa(a.C,a.K),a.C.addEventListener=function(b,c){zva(a,b,c)},a.C.removeEventListener=function(b,c){var d="string"===typeof c?b+c:b+String(g.Ua(c)),e=a.D[d];
e&&(a.app.oa.unsubscribe(b,e),e=a.D,d in e&&delete e[d])});
return a.C};
zva=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Ua(c));if(!a.D[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Na(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.C,data:h})};
a.D[d]=f;a.app.oa.subscribe(b,f)}};
Ava=function(a,b,c){b=g.be(Math.floor(b),0,100);isFinite(b)&&GW(a.app,{volume:b,muted:a.isMuted()},c)};
Bva=function(a,b){GW(a.app,{muted:!0,volume:a.getVolume()},b)};
Cva=function(a,b){GW(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.HW=function(a){var b=Dva(a.app.D);if(b)return b.chrome;a=a.app.D;a=g.PB(a.J.T())?a.Cc.get("music"):void 0;return a?a.chrome:null};
JW=function(a,b){EW.call(this,a,b);var c=this;this.u=!1;FW(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(IW(c,d),e)});
FW(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(IW(c,d),e,f,h)});
FW(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(IW(c,d),e,f,h)});
FW(this,"seekBy",this.seekBy);FW(this,"mutedAutoplay",this.mutedAutoplay);FW(this,"showControls",this.showControls);FW(this,"hideControls",this.hideControls);FW(this,"cancelPlayback",this.cancelPlayback);FW(this,"getProgressState",this.getProgressState);FW(this,"isInline",this.isInline);FW(this,"setInline",this.setInline);FW(this,"getStoryboardFormat",this.getStoryboardFormat);FW(this,"getVideoContentRect",this.getVideoContentRect);FW(this,"toggleFullscreen",this.toggleFullscreen);FW(this,"isFullscreen",
this.isFullscreen);FW(this,"getVideoStats",this.getVideoStats);FW(this,"getPlayerSize",this.getPlayerSize);FW(this,"toggleSubtitles",this.toggleSubtitles);FW(this,"setCenterCrop",this.setCenterCrop);FW(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);FW(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);FW(this,"setSizeStyle",this.setSizeStyle);FW(this,"wakeUpControls",this.wakeUpControls)};
IW=function(a,b){var c={};if(a.app.T().N)for(var d=g.q(Eva),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);else for(d=g.q(Fva),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
KW=function(a){JW.call(this,a);this.P=null};
g.LW=function(a){return a.app.D};
g.MW=function(a){a=g.LW(a).Cc.get("endscreen");return!!a&&a.xC()};
NW=function(a){a=g.LW(a);var b=a.Cc.get("endscreen");return b&&b.yC()?!0:a.Rp()||g.PB(a.J.T())};
g.OW=function(a,b){3===a.getPresentingPlayerType()?a.V("mdxautoplaycancel"):a.V("autonavcancel",b)};
g.fI=function(a,b){return Gva(a.app,b)};
g.yG=function(a){return a.app.template};
g.QW=function(a){var b=g.PW(g.LW(a));return a.app.X&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Qh()||!!a.getPlaylist()};
g.RW=function(a,b,c){a.app.C.handleError(new NA(b,!1,c))};
g.TW=function(a){return(a=g.SW(g.LW(a)))?a.DJ():{}};
g.VW=function(a){a=g.UW(g.LW(a));return!!a&&a.Wo()};
g.WW=function(a){a=g.UW(g.LW(a));return!!a&&a.wC()};
YW=function(a){a=XW(g.LW(a));return!!a&&a.AJ()};
ZW=function(a){a=g.LW(a).Cc.get("heartbeat");return!!a&&a.BJ()};
g.kM=function(a,b,c){Hva(a.app,b,c)};
g.aX=function(a,b,c){a=a.app;var d=g.Z(a,c);d&&(b=AD(d.fa,b),c&&a.getPresentingPlayerType()!==c||$W(a,"cuerangesremoved",b))};
g.bX=function(a,b,c){(a=g.Z(a.app,c))&&gW(a,b)};
g.Iva=function(a){a=(a=a.getVideoData())&&a.Ka;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.Jva=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.yf)};
g.$O=function(a,b,c){a=g.yG(a).element;var d=Bb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Ie(a,b,d);b.setAttribute("data-layer",String(c))};
g.cX=function(a){var b=a.T();if(!b.kb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.R(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.R(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.R(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.Hc&&f;return!c.ypcPreview&&(!d||e)&&!g.nb(c.Zd,"ypc")&&!a&&(!g.GB(b)||f)};
g.dX=function(a,b,c,d,e){a.T().ea&&Kva(a.app.ya,b,c,d,void 0===e?!1:e)};
g.GM=function(a,b,c,d){a.T().ea&&Lva(a.app.ya,b,c,void 0===d?!1:d)};
g.HM=function(a,b,c){a.T().ea&&(a.app.ya.elements.has(b),c&&(b.visualElement=g.es(c)))};
g.eX=function(a,b,c){a.T().ea&&a.app.ya.click(b,c)};
g.KM=function(a,b,c,d){if(a.T().ea){a=a.app.ya;a.elements.has(b);c?a.u.add(b):a.u["delete"](b);var e=g.ks(),f=b.visualElement;a.B.has(b)?e&&f&&(c?g.Ks(e,[f]):g.Ls(e,[f])):c&&!a.C.has(b)&&(e&&f&&g.Cs(e,f,d),a.C.add(b))}};
g.JM=function(a,b){return a.T().ea?a.app.ya.elements.has(b):!1};
g.jM=function(a,b){if(a.app.getPresentingPlayerType()===b){var c=a.app,d=g.Z(c,b);d&&(d.getPlayerType(),d.getVideoData(),d!==c.C?fX(c,c.C):Mva(c))}};
zqa=function(a,b,c){c=void 0===c?Infinity:c;a=a.app;b=void 0===b?-1:b;b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.W?gX(a.W,b,c):hX(a.ka,b,c)};
xG=function(a){a=a.app;var b=g.Z(a,void 0);if(b){a=iX(a,b);b=qW(a);var c=a.getCurrentTime(),d;(d=!a.u.isLivePlayback)||(d=a.K,d=!(d.B&&d.B.C));a=d||lU(a.K)||isNaN(b)||isNaN(c)?0:Math.max(0,b-c)}else a=0;return a};
Nva=function(a){if(!a.ca("html5_inline_video_quality_survey"))return!1;var b=g.Z(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.Ka||!c.Ka.video||1080>c.Ka.video.uc||c.LB)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.Ka.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.ca("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.qb("iqss",e,!0),!0):!1};
Pva=function(a,b){return g.Ue(this,function d(){var e,f,h,l;return g.Aa(d,function(m){if(1==m.u){e=g.EU();var n=a.T(),p={context:IT(a)};n=n.embedConfig;var r=a.videoId,t=a.playlistId?a.playlistId:b.list;if(t){t={playlistId:t};var w=a.playlistIndex;t.playlistIndex=String(w?w:1);t.videoId=r?r:"";n&&(t.serializedThirdPartyEmbedConfig=n);p.playlistRequest=t}else b.playlist?b.playlist.toString().split(","):r&&(r={videoId:r},n&&(r.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=r);f=p;h=g.vU(Ova);
return g.ra(m,g.BG(e,f,h),2)}l=m.B;a.Be({raw_embedded_player_response:l},!1);m.u=0})})};
g.jX=function(a,b){return Rv(a.info.mimeType)?b?pu(a.info)===b:!0:!1};
g.Qva=function(a,b){if(null!=a.ma&&g.hC(b.T())&&!a.ma.isManifestless&&null!=a.ma.u.rawcc)return!0;if(!a.qg())return!1;var c=!!a.ma&&a.ma.isManifestless&&Object.values(a.ma.u).some(function(e){return g.jX(e,"386")}),d=!!a.ma&&!a.ma.isManifestless&&zga(a.ma);
return c||d};
kX=function(a,b){g.B.call(this);this.J=a;this.F=b;this.u={};this.B={};this.C=null;this.Cc=new Map;this.D=g.R(a.T().experiments,"web_player_defer_modules")};
g.lX=function(a){return a.Cc.get("captions")};
Uva=function(a,b){switch(b){case "ad":return mX(a);case "annotations_module":return a.wF();case "attribution":var c=a.J.T();return g.R(c.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===c.playerStyle;case "creatorendscreen":return c=a.J.T(),"3"===c.controlsType?c=!1:"creator-endscreen-editor"===c.playerStyle?c=!0:(c=a.J.getVideoData(),c=!!c&&(!!g.DF(c)||!!g.EF(c))),c;case "embed":return g.GB(a.J.T());case "endscreen":return g.Rva(a);case "fresca":return a.dy();case "heartbeat":return a.ey();
case "kids":return XB(a.J.T());case "remote":return a.J.T().ld;case "miniplayer":return a.J.T().showMiniplayerUiWhenMinimized;case "music":return g.PB(a.J.T());case "captions":return c=a.J.getVideoData(),!!c.Xn||!!c.captionTracks.length||g.Qva(c,a.J);case "unplugged":return g.WB(a.J.T());case "ux":return a.J.T().Ra;case "visualizer":return g.Sva(a);case "webgl":return Tva(a);case "ypc":return a.Rp();case "ypc_clickwrap":return c=a.J.getVideoData(),c.Jn&&!c.ww;case "yto":return!!a.J.getVideoData().Zd.includes("yto");
default:return g.dr(Error("Module descriptor "+b+" does not match")),!1}};
nX=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.Cc.get(b);if(!f||e)if(c||(c=function(){nX(a,b,void 0,d,e)}),f=f||Vva(a,b,c,Uva(a,b)))a.Cc.set(b,f),f.create(),d&&a.J.va("onApiChange")};
Wva=function(a){a.D&&(nX(a,"endscreen"),a.gv(),nX(a,"creatorendscreen",void 0,!0))};
g.Rva=function(a){var b=a.J.T();if(g.pC(b)||b.I||!b.jb&&!b.Kc)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.R(b.experiments,"desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.R(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.R(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.R(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.SW=function(a){return a.Cc.get("webgl")};
Tva=function(a){var b=a.J.getVideoData(),c=a.J.T().experiments,d=g.fk(),e=g.R(c,"enable_spherical_kabuki");a=g.nC(a.J.T());if(b.Ti())return d||e||a||g.R(c,"html5_enable_spherical");if(b.Yi())return a||d||e||g.R(c,"html5_enable_spherical");if(b.Zi())return a||d||g.R(c,"html5_enable_spherical3d");if(b.Nm())return a||g.R(c,"html5_enable_anaglyph3d")||!1;d=b.Ka&&b.Ka.video&&Iv(b.Ka.video);return a&&!g.sF(b)&&!b.isVisualizerEligible&&!d&&(g.R(c,"enable_webgl_noop")||g.R(c,"html5_enable_bicubicsharp")||
g.R(c,"html5_enable_smartsharp"))};
Xva=function(a){g.R(a.J.T().experiments,"web_player_ux_module_wait")&&a.Cc.get("ux")&&g.bX(a.J,"ux")};
Yva=function(a){Xva(a);nX(a,"ux",void 0,!0)};
mX=function(a){if(a=a.J.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
g.Sva=function(a){var b=a.J.T();return a.J.getVideoData().isVisualizerEligible&&oC(b)&&g.R(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"===b.playerStyle&&g.nC(b)&&!(g.Vq&&!g.$d(42))};
Vva=function(a,b,c,d){try{if(d){var e=g.oX[b];if(e)return new e(a.J);"creatorendscreen"===b?Zva(a,"annotations_module",c):Zva(a,b,c)}else g.bX(a.J,b)}catch(f){g.bX(a.J,b),g.dr(f)}return null};
pX=function(a,b,c){for(var d=g.q(a.Cc),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.ph(b))&&(g.eg(f),a.Cc["delete"](e))}};
qX=function(a){return a.Cc.get("ad")};
rX=function(a){if(XB(a.J.T()))return a.Cc.get("kids")};
g.PW=function(a){if(a.J.T().ld)return a.Cc.get("remote")};
sX=function(a){if(g.WB(a.J.T()))return a.Cc.get("unplugged")};
Dva=function(a){if(a.J.T().Ra)return a.Cc.get("ux")};
g.UW=function(a){return a.Cc.get("annotations_module")};
tX=function(a){return a.Cc.get("creatorendscreen")};
XW=function(a){return a.Cc.get("fresca")};
Zva=function(a,b,c){if(a.F){for(var d=a.F+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,h,l=0;l<e.length;l++){var m=e[l];if(m.src===d||m.getAttribute("data-original-src")===d)h=m}h||(h=g.Fe("SCRIPT"),h.setAttribute("data-original-src",d),f=!0);var n=function(){a.la()||c.call(a)},p=function(){a.la()||g.bX(a.J,b)},r=h.onload;
h.onload=function(y){om(n);r&&r.apply(window,[y])};
var t=h.onerror;h.onerror=function(y){if(.01>Math.random()){var D=new Cq("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.dr(D)}om(p);t&&t(y)};
var w=h,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":om(n)}x&&x(y)};
f&&((e=a.J.T().cspNonce)&&h.setAttribute("nonce",e),g.jd(h,g.ng(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.dg(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.oX[b]=null;"annotations_module"===b&&(g.oX.creatorendscreen=null)}))}};
vX=function(a,b,c,d){g.P.call(this);var e=this;this.target=a;this.Oq=b;this.B=0;this.I=!1;this.D=new g.fe(NaN,NaN);this.u=new g.Pr(this);this.ba=this.C=this.K=null;g.C(this,this.u);b=d?4E3:3E3;this.P=new g.H(function(){uX(e,1,!1)},b,this);
g.C(this,this.P);this.W=new g.H(function(){uX(e,2,!1)},b,this);
g.C(this,this.W);this.X=new g.H(function(){uX(e,512,!1)},b,this);
g.C(this,this.X);this.Y=c&&0<c.Hk.length?5E3:3E3;d||(this.C=this.u.R(a,"mouseover",this.Zs),this.u.R(a,"mousemove",this.ML),this.u.R(a,"mouseleave",this.NL));qg?this.u.R(a,"keypress",this.sJ):this.u.R(a,"focusin",this.cI);this.F=this.u.R(a,"mousedown",this.kD);this.N=this.u.R(a,"touchstart",this.NF,void 0,!0);uX(this,640,!0)};
$va=function(a){uX(a,4,!1);a.K&&(a.u.Bb(a.K),a.K=null,a.C=a.u.R(a.target,"mouseover",a.Zs));a.C&&(a.u.Bb(a.C),a.C=a.u.R(a.target,"mouseover",a.Zs))};
uX=function(a,b,c){a.la();var d=!a.B;c?(a.B|=b,b&1&&a.P.start(),b&2&&a.W.start()):(a.B&=~b,b&1&&a.P.stop(),b&2&&a.W.stop(),b&512&&a.X.stop());a.B&512&&!(a.B&128)&&a.X.ub(a.Y);b=!a.B;d!==b&&a.V("autohideupdate",b)};
g.wX=function(a){g.V.call(this,{G:"button",ia:["ytp-large-play-button","ytp-button"],U:{"aria-label":"Play"},S:["{{largePlayButtonChildren}}"]});this.api=a;this.R(a,"videodatachange",this.na);this.na()};
xX=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];(g.R(b.experiments,"web_player_contain_thumbnail")||b.I)&&c.push("ytp-exp-contain-thumbnail");g.V.call(this,{G:"div",ia:c,S:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.ga("ytp-cued-thumbnail-overlay");c=new g.wX(a);g.C(this,c);c.da(b);this.C=new g.Pr(this);g.C(this,this.C);this.api=a;this.F=this.ga("ytp-cued-thumbnail-overlay-image");this.D=c;this.B=new g.vN(this,250);g.C(this,this.B);this.u=new g.H(this.na,0,this);g.C(this,
this.u);this.na();this.R(a,"appresize",this.Qa);this.R(a,"presentingplayerstatechange",this.WK);this.R(a,"ypcStateChanged",this.HP);IB(a.T())&&this.R(a,"videoplayerreset",this.VK)};
awa=function(a){var b=!a.T().Nd&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.yX=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.wO(a))return g.ip(a),!0;b.pauseVideo();a=e.getAttribute("href");g.fK(a,d,!0);return!1};
g.zX=function(a,b,c){if(dC(b.T())&&2!==b.getPresentingPlayerType()){if(g.wO(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.ip(c),!0}else{var d=g.wO(c);d&&b.pauseVideo();g.fK(a,void 0,!0);d&&(g.gK(a),g.ip(c))}return!1};
AX=function(){return{G:"div",L:"ytp-spinner-container",S:[{G:"div",L:"ytp-spinner-rotator",S:[{G:"div",L:"ytp-spinner-left",S:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",S:[{G:"div",L:"ytp-spinner-circle"}]}]}]}};
BX=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.CX=function(a,b,c){a=a.T();return g.R(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.kd?g.ZI("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.DX=function(a){g.V.call(this,{G:"div",ia:["ytp-error"],U:{role:"alert"},S:[{G:"div",L:"ytp-error-content",S:[{G:"div",L:"ytp-error-icon-container",S:[{G:"svg",U:{fill:"#fff",viewBox:"0 0 48 48"},S:[{G:"path",U:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",U:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",L:"ytp-error-content-wrap",
S:[{G:"div",L:"ytp-error-content-wrap-reason",Z:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",Z:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.EX=function(a){a=a.split(bwa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",U:{href:a[c],target:a[c+1]},Z:a[c+2]})}return{G:"span",S:b}};
GX=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().B);a=a.api.getVideoData();b=g.ZI(g.FX[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",Z:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",U:{href:c,target:e?"_blank":null},Z:b[2]});d.push(b[4]);return{G:"span",S:d}};
cwa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.R(c[d],"click",b);a.keys.push(e)}};
dwa=function(a){for(var b=0;b<a.keys.length;b++)a.Bb(a.keys[b]);a.keys=[]};
IX=function(a){g.Pr.call(this);this.J=a;this.u=new Set;this.mediaSession=navigator.mediaSession;HX(this,"play",function(){a.playVideo()});
HX(this,"pause",function(){a.pauseVideo()});
HX(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
HX(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.R(a,"videodatachange",this.Oa);this.R(a,"presentingplayerstatechange",this.Cf);this.Oa()};
HX=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.u.add(b)};
JX=function(a){g.V.call(this,{G:"div",L:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.I=new g.V({G:"div",ia:["ytp-button","ytp-paid-content-overlay-text"]});this.videoId=null;this.D=!1;this.C=new g.vN(this.I,250,!1,100);this.yc=this.u=null;this.B={};this.F=0;g.C(this,this.I);this.I.da(this.element);g.C(this,this.C);this.R(a,"videodatachange",this.Oa);this.R(a,"presentingplayerstatechange",this.Tb)};
ewa=function(a,b){var c=tF(b),d=uF(b);a.u?b.videoId&&b.videoId!==a.videoId&&(a.u.lg(),a.videoId=b.videoId,c=a.B[b.videoId]||0,a.D=!!d&&3E3>c):c&&d&&(a.u=new g.H(a.bb,d,a),g.C(a,a.u),g.Ne(g.te("ytp-paid-content-overlay-text",a.element),c))};
fwa=function(a,b){a.u&&g.T(b,8)&&a.D&&(a.D=!1,a.pc(),a.u.start())};
LX=function(a){g.V.call(this,{G:"div",L:"ytp-spinner",S:[AX(),{G:"div",L:"ytp-spinner-message",Z:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.ga("ytp-spinner-message");this.u=new g.H(this.show,500,this);g.C(this,this.u);this.R(a,"presentingplayerstatechange",this.B);this.R(a,"onFrescaStateChange",this.C);this.R(a,"playbackstalledatstart",this.D);KX(this,g.fI(a))};
KX=function(a,b){if(g.T(b,128))var c=0;else!(c=g.T(b,16))&&(c=g.T(b,1))&&(c=XW(g.LW(a.api)),c=!(c&&c.loaded));c?a.u.start():a.hide()};
g.MX=function(a,b,c,d){d=void 0===d?!1:d;g.DM.call(this,b);var e=this;this.J=a;this.X=d;this.K=new g.Pr(this);this.W=new g.vN(this,c,!0,void 0,void 0,function(){e.u&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),g.R(e.J.T().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.Me(e.u,document.activeElement)&&e.focus():e.focus())});
g.C(this,this.K);g.C(this,this.W)};
gwa=function(a){a.u&&(document.activeElement&&g.Me(a.element,document.activeElement)&&(Qe(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.Rr(a.K);a.P=void 0};
NX=function(a,b,c){a.Me()?a.bb():a.pc(b,c)};
OX=function(a){var b=g.Ru(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",ia:["ytp-unmute-icon"],S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{G:"div",ia:["ytp-unmute-text"],Z:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",ia:["ytp-unmute-box"],S:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.MX.call(this,a,{G:"button",ia:["ytp-unmute","ytp-popup","ytp-button"].concat(c),S:[{G:"div",L:"ytp-unmute-inner",S:d}]},100);this.seen=this.B=!1;this.api=a;g.dX(this.api,this.element,this,51663);this.R(a,"onMutedAutoplayChange",this.wp,this);this.R(a,"presentingplayerstatechange",
this.Cf);this.ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.GB(this.api.T());g.CM(this,a);a&&hwa(this);this.C=a};
iwa=function(a){a.B||(a.B=!0,g.eX(a.api,a.element))};
hwa=function(a){a.seen||(a.seen=!0,g.KM(a.api,a.element,!0))};
g.QX=function(a){g.Pr.call(this);var b=this;this.api=a;this.by=!1;this.Rh=null;this.Wq=!1;this.bd=null;this.fv=this.Xt=!1;this.yy=this.Ay=null;this.fC=NaN;this.wy=this.ho=!1;this.mp=0;this.Au=[];var c=a.T(),d=g.yG(a);this.Vz=new g.H(this.wM,0,this);g.C(this,this.Vz);g.PB(c)||(this.rm=new xX(a),g.C(this,this.rm),g.$O(a,this.rm.element,4));if(jwa()){var e=new LX(a);g.C(this,e);e=e.element;g.$O(a,e,4)}var f=a.getVideoData();this.xc=new vX(d,function(l){return b.Oq(l)},f,c.Vc);
g.C(this,this.xc);this.xc.subscribe("autohideupdate",this.jh,this);var h=new JX(a);g.C(this,h);g.$O(a,h.element,4);this.au=new OX(a);g.C(this,this.au);g.$O(this.api,this.au.element,2);this.hw=this.api.isMutedByMutedAutoplay();this.R(a,"onMutedAutoplayChange",this.wp);this.Wt=new g.H(this.An,200,this);g.C(this,this.Wt);this.Dw=f.videoId;this.nF=new g.H(function(){b.mp=0},350);
g.C(this,this.nF);this.dr=new g.H(function(){b.wy||PX(b)},350,this);
g.C(this,this.dr);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.I(f,"ytp-color-white")}g.PB(c)&&g.I(f,"ytp-music-player");!g.R(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new IX(a),g.C(this,f));this.R(a,"appresize",this.Qa);this.R(a,"presentingplayerstatechange",this.Cf);this.R(a,"videodatachange",this.Oa);this.R(a,"videoplayerreset",this.hO);
this.R(a,"autonavvisibility",this.wj,this);this.R(a,"sizestylechange",this.wj,this);this.R(a,"onFrescaStateChange",this.ag,this);this.R(a,"resize",this.TM);this.R(d,"click",this.JO,this);this.R(d,"dblclick",this.KO,this);c.ka&&(this.R(d,"gesturechange",this.LO,this),this.R(d,"gestureend",this.MO,this));this.kk=[d.C];this.rm&&this.kk.push(this.rm.element);e&&this.kk.push(e)};
RX=function(a,b){if(!b)return!1;var c=a.api.app.F;if(c.hk()&&(c=c.La())&&g.Me(c,b))return c.controls;for(c=0;c<a.kk.length;c++)if(g.Me(a.kk[c],b))return!1;return g.zn(b,"ytp-player-content")||g.zn(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
kwa=function(a){return!!(2===a.api.getPresentingPlayerType()&&g.yG(a.api).F&&a.api.T().u&&SX&&11<=QF)};
TX=function(a,b){return!RX(a,fp(b))&&g.wO(b)};
PX=function(a){a.xc.uj();if(g.R(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.Xt&&a.fv)a.fv=!1;else if(!a.api.T().Y&&!a.Ni()){var b=g.fI(a.api);g.T(b,2)&&NW(a.api)||a.Rl(b);if(!a.api.T().ka||b.isCued()||g.T(b,1024)){var c=a.api.app.Ma;g.Fq("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.T(b,2048);c&&(b.isCued()||d)?(g.Fq("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),a.requestStorageAccess()):(!c||b.isCued()&&
d||g.Fq("embedsRequestStorageAccessFailedState",{state:b.state}),a.An())}else a.Wt.isActive()?(a.Sr(),a.Wt.stop()):a.Wt.start()}};
lwa=function(a,b){if(g.wO(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2===a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.fI(a.api);!g.T(c,4)||g.T(c,8)||g.T(c,2)||a.An();return!0}return!1};
mwa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
jwa=function(){var a=Yj()&&67<=Vj();return!Xj("tizen")&&!EB&&!a&&!0};
UX=function(a){g.V.call(this,{G:"button",ia:["ytp-button","ytp-back-button"],S:[{G:"div",L:"ytp-arrow-back-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},S:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",nb:!0,U:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.CM(this,a.T().showBackButton);this.ra("click",this.onClick)};
g.VX=function(a){g.V.call(this,{G:"div",S:[{G:"div",L:"ytp-bezel-text-wrapper",S:[{G:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{G:"div",L:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{G:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.J=a;this.B=new g.H(this.show,10,this);this.u=new g.H(this.hide,500,this);g.C(this,this.B);g.C(this,this.u);this.hide()};
XX=function(a,b,c){if(0>=b){c=mN();b="muted";var d=0}else c=c?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{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";WX(a,c,b,d+"%")};
nwa=function(a,b){var c=b?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]},d=a.J.getPlaybackRate(),e=g.ZI("Speed is $RATE",{RATE:String(d)});WX(a,c,e,d+"x")};
WX=function(a,b,c,d){d=void 0===d?"":d;a.ua("label",void 0===c?"":c);a.ua("icon",b);a.u.lg();a.B.start();a.ua("title",d);g.J(a.element,"ytp-bezel-text-hide",!d)};
YX=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-cards-teaser",S:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",S:[{G:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.J=a;this.W=b;this.Gh=c;this.D=new g.vN(this,250,!1,250);this.u=null;this.K=new g.H(this.PN,300,this);this.I=new g.H(this.ON,2E3,this);this.F=[];this.B=null;this.P=new g.H(function(){d.element.style.margin="0"},250);
this.C=null;g.C(this,this.D);g.C(this,this.K);g.C(this,this.I);g.C(this,this.P);this.R(c.element,"mouseover",this.QC);this.R(c.element,"mouseout",this.PC);this.R(a,"cardsteasershow",this.eP);this.R(a,"cardsteaserhide",this.bb);this.R(a,"cardstatechange",this.YF);this.R(a,"presentingplayerstatechange",this.YF);this.R(a,"appresize",this.Jy);this.R(a,"onShowControls",this.Jy);this.R(a,"onHideControls",this.GH);this.ra("click",this.EQ);this.ra("mouseenter",this.SK)};
$X=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-button","ytp-cards-button"],U:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.GB(a.T()))},S:[{G:"span",L:"ytp-cards-button-icon-default",S:[{G:"div",L:"ytp-cards-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{G:"div",L:"ytp-cards-button-title",Z:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",S:[{G:"div",L:"ytp-cards-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",L:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
L:"ytp-cards-button-title",Z:"Shopping"}]}]});this.J=a;this.D=b;this.C=c;this.u=null;this.B=new g.vN(this,250,!0,100);g.C(this,this.B);g.J(this.C,"ytp-show-cards-title",g.GB(a.T()));this.hide();this.ra("click",this.onClicked);this.ra("mouseover",this.mN);ZX(this,!0)};
ZX=function(a,b){b?a.u=g.aY(a.D.Gb(),a.element):(a.u=a.u,a.u(),a.u=null)};
cY=function(a,b){g.V.call(this,{G:"button",ia:[bY.BUTTON,bY.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{G:"div",L:bY.TITLE_NOTIFICATIONS_ON,U:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},S:[g.eN()]},{G:"div",L:bY.TITLE_NOTIFICATIONS_OFF,U:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},S:[{G:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{G:"path",U:{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.channelId=b;this.u=!1;g.dX(a,this.element,this,36927);this.ra("click",this.onClick,this);this.ua("pressed",!1);this.ua("label","Get notified about every new video")};
owa=function(a,b){a.u=b;a.element.classList.toggle(bY.NOTIFICATIONS_ENABLED,a.u);if(g.R(a.api.T().experiments,"web_player_innertube_subscription_update")){var c=a.api.getVideoData();if(c)if(c=b?c.qy:c.py){var d=zG(a.api.app);d?wU(d,c):g.N(Error("No innertube service available when updating notification preferences."))}else g.N(Error("No update preferences command available."));else g.N(Error("No video data when updating notification preferences."))}else g.oq("/subscription_ajax?action_update_subscription_preferences=1",
{method:"POST",Xb:{channel_id:a.channelId,receive_all_updates:!a.u}})};
pwa=function(a,b,c){return b?a.K+"subscription_ajax":c?"/subscription_service":""};
g.eY=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 w=r.T();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.MB(w)||g.OB(w))c.target=w.F;g.V.call(this,{G:"div",ia:["ytp-button","ytp-sb"],S:[{G:"a",L:"ytp-sb-subscribe",U:c,S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",Z:b}:""]}]});f&&g.I(this.element,
"ytp-sb-classic");this.channelId=h;this.u=t}else{p=w.userDisplayName&&g.MB(w)&&!g.R(w.experiments,"subscribe_tooltipkillswitch");g.V.call(this,{G:"div",ia:["ytp-button","ytp-sb"],S:[{G:"div",L:"ytp-sb-subscribe",U:p?{title:g.ZI("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":qC(w),"data-tooltip-opaque":String(g.GB(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},
a]},b?{G:"div",L:"ytp-sb-count",Z:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",U:p?{title:g.ZI("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":qC(w),"data-tooltip-opaque":String(g.GB(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},S:[{G:"div",L:"ytp-sb-text",S:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",Z:d}:""]}]});var x=this;this.channelId=h;this.u=t;var y=this.ga("ytp-sb-subscribe"),D=this.ga("ytp-sb-unsubscribe");
f&&g.I(this.element,"ytp-sb-classic");if(e){l&&g.I(this.element,"ytp-sb-subscribed");var E=function(){a:{var K=x.channelId;if(m||n){var M=r.T();var Ia={c:K};if(g.R(M.experiments,"embeds_botguard_with_subscribe_killswitch"))Ia="";else{var va;lr.rd()&&(va=bra(Ia));Ia=va||""}if(g.R(M.experiments,"web_player_innertube_subscription_update")){M=r.getVideoData();if(!M){g.N(Error("No video data available when updating subscription."));break a}M=M.subscribeCommand;if(!M){g.N(Error("No subscribe command in videoData."));
break a}va=zG(r.app);if(!va){g.N(Error("No innertube service available when updating subscriptions."));break a}wU(va,M,{botguardResponse:Ia,feature:m})}else g.oq(pwa(M,!!m,!!n),m?{method:"POST",Dg:{action_create_subscription_to_channel:1,c:K},Xb:{feature:m,silo_name:null,r2b:Ia},withCredentials:!0}:n?{method:"POST",Dg:{action_subscribe:1},Xb:{channel_ids:K,itct:n}}:{});r.va("SUBSCRIBE",K)}}D.focus();D.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var K=x.channelId;
if(m||n){var M=r.T();g.R(M.experiments,"web_player_innertube_subscription_update")?(M=r.getVideoData(),wU(zG(r.app),M.unsubscribeCommand,{feature:m})):g.oq(pwa(M,null!=m,null!=n),m?{method:"POST",Dg:{action_remove_subscriptions:1},Xb:{c:K,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",Dg:{action_unsubscribe:1},Xb:{channel_ids:K,itct:n}}:{});r.va("UNSUBSCRIBE",K)}y.focus();y.removeAttribute("aria-hidden");D.setAttribute("aria-hidden","true")};
this.R(y,"click",E);this.R(D,"click",G);this.R(y,"keypress",function(K){13===K.keyCode&&E(K)});
this.R(D,"keypress",function(K){13===K.keyCode&&G(K)});
this.R(r,"SUBSCRIBE",this.B);this.R(r,"UNSUBSCRIBE",this.C);this.u&&p&&(this.tooltip=this.u.Gb(),dY(this.tooltip),g.dg(this,g.aY(this.tooltip,y)),g.dg(this,g.aY(this.tooltip,D)))}else g.I(y,"ytp-sb-disabled"),g.I(D,"ytp-sb-disabled")}};
fY=function(a,b){g.V.call(this,{G:"div",L:"ytp-title-channel",S:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:a.T().F,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{G:"div",L:"ytp-title-expanded-heading",S:[{G:"h2",L:"ytp-title-expanded-title",S:[{G:"a",Z:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().F,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",Z:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.I=b;this.channel=this.ga("ytp-title-channel");this.u=this.ga("ytp-title-channel-logo");this.D=this.ga("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.F=g.GB(this.api.T());g.dX(a,this.u,this,36925);this.F&&qwa(this);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.na()};
qwa=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.ha){var d=b.Xc?null:rva(),e=new g.eY("Subscribe",null,"Subscribed",null,!0,!1,c.Cg,c.subscribed,"channel_avatar",null,d,a.api,a.I);a.subscribeButton=e;g.C(a,e);e.da(a.D);g.dX(a.api,e.element,a,36926);e.hide();a.R(e.element,"click",function(){g.eX(a.api,e.element)});
var f=new cY(a.api,c.Cg);a.B=f;g.C(a,f);f.da(a.D);f.hide();a.R(a.api,"SUBSCRIBE",function(){c.xn&&f.show()});
a.R(a.api,"UNSUBSCRIBE",function(){c.xn&&(f.hide(),owa(f,!1))})}a.ua("flyoutUnfocusable","true");
a.ua("channelTitleFocusable","-1");b.u?a.R(a.u,"click",function(h){rwa(a)&&(h.preventDefault(),a.isExpanded()?a.cv():a.Dv());g.eX(a.api,a.u)}):(a.R(a.channel,"mouseenter",a.Dv),a.R(a.channel,"mouseleave",a.cv),a.R(a.channel,"focusin",a.Dv),a.R(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.cv()}),a.R(a.u,"click",function(){g.eX(a.api,a.u)}));
a.C=new g.H(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),g.KM(a.api,a.subscribeButton.element,!1)),a.B&&(a.B.hide(),g.KM(a.api,a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.C(a,a.C);a.R(a.channel,swa,function(){twa(a)});
a.R(a.api,"onHideControls",a.Px);a.R(a.api,"appresize",a.Px);a.R(a.api,"fullscreentoggled",a.Px)};
twa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
rwa=function(a){var b=a.api.getPlayerSize();return a.F&&524<=b.width};
g.hY=function(a,b,c,d){g.DM.call(this,a);this.priority=b;c&&g.gY(this,c);d&&this.jc(d)};
g.iY=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",ia:b,U:a,S:[{G:"div",L:"ytp-menuitem-icon",Z:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",Z:"{{label}}"},{G:"div",L:"ytp-menuitem-content",Z:"{{content}}"}]}};
jY=function(a,b){a.ua("icon",b)};
g.gY=function(a,b){a.ua("label",b)};
kY=function(a,b,c,d,e){var f={G:"div",L:"ytp-panel"};if(c){var h="ytp-panel-title";var l={G:"div",L:"ytp-panel-header",S:[{G:"button",ia:["ytp-button",h],S:[c]}]};if(e){var m="ytp-panel-options";l.S.unshift({G:"button",ia:["ytp-button",m],S:[d]})}f.S=[l]}g.DM.call(this,f);this.content=b;b.da(this.element);this.CB=!1;c&&(c=this.ga(h),this.R(c,"click",this.zM),this.CB=!0,e&&(m=this.ga(m),this.R(m,"click",e)));b.subscribe("size-change",this.ED,this);this.R(a,"fullscreentoggled",this.ED)};
g.lY=function(a,b,c,d,e){b=void 0===b?null:b;var f={role:"menu"};b&&(f.id=b);b=new g.DM({G:"div",L:"ytp-panel-menu",U:f});kY.call(this,a,b,c,d,e);this.menuItems=b;this.items=[];g.C(this,this.menuItems)};
g.mY=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.ox,a);a.items=[];g.He(a.menuItems.element);a.menuItems.V("size-change")};
uwa=function(a,b){return b.priority-a.priority};
nY=function(a){var b=g.iY({"aria-haspopup":"true"});g.hY.call(this,b,a);this.ra("keydown",this.u)};
oY=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
g.pY=function(a,b){g.hY.call(this,g.iY({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.ra("click",this.onClick)};
qY=function(a,b,c,d){g.lY.call(this,a);this.J=a;this.Sa=c;this.Ib=d;this.dh=new g.pY("Loop",7);this.getVideoUrl=new nY(6);this.Tg=new nY(5);this.Pg=new nY(4);this.ib=new nY(3);this.Kp=new g.hY(g.iY({href:"{{href}}",target:this.J.T().F},void 0,!0),2,"Troubleshoot playback issue");this.om=new g.DM({G:"div",ia:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},Z:"{{text}}"});this.qA=new kY(this.J,this.om);this.Wj=null;g.C(this,this.dh);this.Kb(this.dh,!0);this.dh.ra("click",this.MP,
this);g.dX(a,this.dh.element,this.dh,28661);g.C(this,this.getVideoUrl);this.Kb(this.getVideoUrl,!0);this.getVideoUrl.ra("click",this.KP,this);g.dX(a,this.getVideoUrl.element,this.getVideoUrl,28659);g.C(this,this.Tg);this.Kb(this.Tg,!0);this.Tg.ra("click",this.LP,this);g.dX(a,this.Tg.element,this.Tg,28660);g.C(this,this.Pg);this.Kb(this.Pg,!0);this.Pg.ra("click",this.JP,this);g.dX(a,this.Pg.element,this.Pg,28658);g.C(this,this.ib);this.Kb(this.ib,!0);this.ib.ra("click",this.IP,this);g.C(this,this.Kp);
this.Kb(this.Kp,!0);this.Kp.ra("click",this.EO,this);b=new g.hY(g.iY(),1,"Stats for nerds");g.C(this,b);this.Kb(b,!0);b.ra("click",this.VO,this);g.C(this,this.om);this.om.ra("click",this.VM,this);g.C(this,this.qA);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.ZA&&g.$d(43)&&(c=!0);g.rB&&!g.$d(41)&&(c=!1);c&&(this.Wj=new g.V({G:"textarea",L:"ytp-html5-clipboard",U:{readonly:""}}),g.C(this,this.Wj),this.Wj.da(this.element));jY(this.dh,{G:"svg",U:{fill:"none",height:"24",
viewBox:"0 0 24 24",width:"24"},S:[{G:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});jY(this.ib,{G:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",U:{"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"}}]});jY(this.Kp,{G:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",U:{"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"}}]});jY(b,$M());this.R(a,"loopchange",this.QD);this.R(a,"videodatachange",this.Oa);vwa(this);this.oh(this.J.getVideoData())};
sY=function(a,b){var c=!1;if(a.Wj){var d=a.Wj.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Sa.bb():(a.om.jc(b,"text"),g.rY(a.Sa,a.qA),BX(a.om.element),a.Wj&&(a.Wj=null,vwa(a)));return c};
vwa=function(a){var b=!!a.Wj;g.gY(a.ib,b?"Copy debug info":"Get debug info");oY(a.ib,!b);g.gY(a.Pg,b?"Copy embed code":"Get embed code");oY(a.Pg,!b);g.gY(a.getVideoUrl,b?"Copy video URL":"Get video URL");oY(a.getVideoUrl,!b);g.gY(a.Tg,b?"Copy video URL at current time":"Get video URL at current time");oY(a.Tg,!b);jY(a.Pg,b?YM():null);jY(a.getVideoUrl,b?bN():null);jY(a.Tg,b?bN():null)};
g.tY=function(a,b){g.MX.call(this,a,{G:"div",ia:["ytp-popup",b||""]},100,!0);this.B=[];this.C=this.F=null;this.Ss=this.maxWidth=0;this.size=new g.he(0,0);this.ra("keydown",this.aL)};
wwa=function(a){var b=uY(a);if(b){g.Dg(a.element,a.maxWidth||"100%",a.Ss||"100%");g.F(b.element,"minWidth","250px");g.F(b.element,"width","");g.F(b.element,"height","");g.F(b.element,"maxWidth","100%");g.F(b.element,"maxHeight","100%");g.F(b.content.element,"height","");var c=g.Eg(b.element);c.width+=1;c.height+=1;g.F(b.element,"width",c.width+"px");g.F(b.element,"height",c.height+"px");g.F(b.element,"maxWidth","");g.F(b.element,"maxHeight","");var d=0;b.CB&&(d=b.ga("ytp-panel-header"),d=g.Eg(d).height);
g.F(b.content.element,"height",c.height-d+"px");if(b.element instanceof HTMLElement){d=b.element;var e=d.scrollWidth-d.clientWidth;0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.F(b.element,"width",c.width+"px"))}a.size=c}};
g.rY=function(a,b){var c=a.B[a.B.length-1];a.B.push(b);vY(a,c,b)};
g.wY=function(a){var b=a.B.pop(),c=a.B[0];a.B=[c];vY(a,b,c,!0)};
vY=function(a,b,c,d){xwa(a);uY(a);g.zn(c.element,"ytp-panel-animate-back")||g.zn(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.En,a),b.unsubscribe("back",a.Hf,a));c.subscribe("size-change",a.En,a);c.subscribe("back",a.Hf,a);if(a.Wa){g.I(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.da(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;wwa(a);g.Dg(a.element,e);a.F=new g.H(function(){ywa(a,b,c,d)},20,a);
a.F.start()}else c.da(a.element),b&&b.detach()};
ywa=function(a,b,c,d){a.F.dispose();a.F=null;g.I(a.element,"ytp-popup-animating");d?(g.I(b.element,"ytp-panel-animate-forward"),g.Bn(c.element,"ytp-panel-animate-back")):(g.I(b.element,"ytp-panel-animate-back"),g.Bn(c.element,"ytp-panel-animate-forward"));g.Dg(a.element,a.size);a.C=new g.H(function(){g.Bn(a.element,"ytp-popup-animating");b.detach();g.Cn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.C.dispose();a.C=null},250,a);
a.C.start()};
uY=function(a){return a.B[a.B.length-1]};
xwa=function(a){a.F&&g.tn(a.F);a.C&&g.tn(a.C)};
g.xY=function(a,b,c){g.tY.call(this,a);this.Y=b;this.Ib=c;this.I=new g.sR(this);this.D=null;g.C(this,this.I);g.dX(a,this.element,this,28656);g.I(this.element,"ytp-contextmenu");zwa(this);this.hide()};
zwa=function(a){g.Rr(a.I);"gvn"!==a.J.T().playerStyle&&a.I.R(g.yG(a.J),"contextmenu",a.SM)};
Awa=function(a){a.J.isFullscreen()?g.$O(a.J,a.element,9):a.da(document.body)};
yY=function(a,b){g.V.call(this,{G:"button",ia:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.GB(a.T()))},S:[{G:"div",L:"ytp-copylink-icon",Z:"{{icon}}"},{G:"div",L:"ytp-copylink-title",Z:"Copy link",U:{"aria-hidden":"true"}}]});this.api=a;this.u=b;this.visible=!1;this.tooltip=this.u.Gb();var c=a.T();dY(this.tooltip);g.J(this.element,"ytp-show-copylink-title",g.GB(c)&&!g.PB(c));g.dX(a,this.element,this,86570);this.ra("click",this.onClick);this.R(a,"videodatachange",
this.na);this.R(a,"videoplayerreset",this.na);this.R(a,"appresize",this.na);this.na();g.dg(this,g.aY(this.tooltip,this.element))};
Bwa=function(a){a.ua("icon",QM());if(a.api.T().u)zY(a.tooltip,a.element,"Link copied to clipboard");else{a.ua("title-attr","Link copied to clipboard");AY(a.tooltip);zY(a.tooltip,a.element);var b=a.ra("mouseleave",function(){a.Bb(b);a.na();a.tooltip.Fh()})}};
Dwa=function(a,b){return g.Ue(a,function d(){var e=this;return g.Aa(d,function(f){if(1==f.u)return sa(f,2),g.ra(f,navigator.clipboard.writeText(b),4);if(2!=f.u)return f["return"](!0);ua(f);return f["return"](Cwa(e,b))})})};
Cwa=function(a,b){var c=!1,d=g.Fe("TEXTAREA");d.value=b;d.setAttribute("readonly","");var e=a.api.getRootNode();e.appendChild(d);if(jk){var f=window.getSelection();f.removeAllRanges();var h=document.createRange();h.selectNodeContents(d);f.addRange(h);d.setSelectionRange(0,b.length)}else d.select();try{c=document.execCommand("copy")}catch(l){}e.removeChild(d);return c};
BY=function(a){g.V.call(this,{G:"div",L:"ytp-doubletap-ui",S:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",S:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",S:[{G:"div",L:"ytp-doubletap-arrows-container",S:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div",L:"ytp-doubletap-tooltip",
S:[{G:"div",L:"ytp-doubletap-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.J=a;this.B=new g.H(this.show,10,this);this.u=new g.H(this.hide,700,this);g.C(this,this.B);g.C(this,this.u);this.hide();this.C=this.ga("ytp-doubletap-fast-forward-ve");this.D=this.ga("ytp-doubletap-rewind-ve");g.dX(this.J,this.C,this,28240);g.dX(this.J,this.D,this,28239);g.KM(this.J,this.C,!0);g.KM(this.J,this.D,!0)};
Fwa=function(a,b){var c=g.yG(a.J).getPlayerSize();a.u.lg();a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");var d=a.ga("ytp-doubletap-static-circle");d.style.width="110px";d.style.height="110px";1===b?(d.style.right="",d.style.left=.8*c.width-30+"px"):-1===b&&(d.style.right="",d.style.left=.1*c.width-15+"px");d.style.top=.5*c.height+15+"px";Ewa(a,5)};
Ewa=function(a,b){var c=g.ZI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.ua("seekTime",c)};
CY=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
DY=function(a,b){for(var c=0,d=g.q(a),e=d.next();!(e.done||e.value.startTime>b);e=d.next())c++;return 0===c?c:c-1};
g.EY=function(a,b,c,d,e,f,h){g.Pr.call(this);var l=this;this.api=a;this.contextMenu=c;this.xc=d;this.Ib=e;this.B=f;this.D=h;this.C=new g.H(function(){Gwa(l,!1)},1E3);
this.u="";g.C(this,this.C);a=g.Va(this.Zx,!1);this.R(b,"mousedown",a);this.R(c.element,"mousedown",a);this.R(b,"keydown",this.AB);this.R(c.element,"keydown",this.AB);this.R(b,"keyup",this.BB);this.R(c.element,"keyup",this.BB)};
GY=function(a,b,c,d){var e=g.lX(g.LW(a.api));if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.FY.length;h++){var l=g.FY[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);Gwa(a,!0);a.C.start()}};
Hwa=function(a,b){a.api.Vd();if(g.T(g.fI(a.api),4)){var c=a.api.getVideoData().Ka;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
Gwa=function(a,b){g.lX(g.LW(a.api))&&a.api.setOption("captions","sampleSubtitles",b)};
HY=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-button","ytp-overflow-button"],U:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},S:[{G:"div",L:"ytp-overflow-icon",S:[{G:"svg",U:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},S:[{G:"path",U:{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.J=a;this.u=b;this.visible=!1;this.tooltip=this.u.Gb();
g.dX(a,this.element,this,16499);this.R(a,"appresize",this.na);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();g.dg(this,g.aY(this.tooltip,this.element));this.ra("click",function(){g.eX(a,d.element);NX(c,d.element,!1)})};
IY=function(a,b){g.MX.call(this,a,{G:"div",L:"ytp-overflow-panel",U:{id:yM(),role:"dialog"},S:[{G:"div",L:"ytp-overflow-panel-content",S:[{G:"div",L:"ytp-overflow-panel-action-buttons",Z:"{{buttons}}"}]},{G:"button",ia:["ytp-overflow-panel-close","ytp-button"],U:{title:"Close"},S:[g.WM()]}]},250);this.actionButtons=[];this.tooltip=b.Gb();this.B=this.ga("ytp-overflow-panel-content");this.closeButton=this.ga("ytp-overflow-panel-close");this.R(this.closeButton,"click",this.bb);g.dg(this,g.aY(this.tooltip,
this.closeButton));this.ra("click",this.ZK);this.R(a,"videoplayerreset",this.hide);this.R(a,"fullscreentoggled",this.YK);this.hide()};
JY=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.ua("buttons",a.actionButtons))};
Iwa=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.xb(b)};
KY=function(a,b,c){var d=b.Ja(c),e=a.T(),f=d.yd("default.jpg");g.V.call(this,{G:"a",ia:["ytp-video-menu-item","ytp-button"],U:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},S:[{G:"div",L:"ytp-video-menu-item-index",Z:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",Z:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",Z:d.title},{G:"div",
L:"ytp-video-menu-item-author",Z:d.author}]});this.api=a;this.index=c;this.ra("click",this.onClick)};
LY=function(a){g.MX.call(this,a,{G:"div",L:"ytp-playlist-menu",U:{role:"dialog",id:yM()},S:[{G:"div",L:"ytp-playlist-menu-header",S:[{G:"div",L:"ytp-playlist-menu-title",S:[{G:"a",L:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},Z:"{{title}}"},{G:"button",ia:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.WM()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",Z:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.api=a;this.selected=this.D=
this.playlist=null;this.items=this.ga("ytp-playlist-menu-items");this.C=new g.Pr(this);this.B=[];a=this.ga("ytp-playlist-menu-close");this.R(a,"click",this.bb);a=this.ga("ytp-playlist-menu-title-name");this.R(a,"click",this.iP);g.C(this,this.C);this.hide()};
MY=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},S:[{G:"div",L:"ytp-playlist-menu-button-icon",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",Z:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Gb();g.dX(a,this.element,this,70344);this.R(a,"videodatachange",this.u);this.R(a,"onPlaylistUpdate",this.u);this.R(a,"presentingplayerstatechange",this.na);this.R(a,"appresize",this.na);this.hide();this.u();g.dg(this,g.aY(this.tooltip,this.element));this.ra("click",function(){g.eX(a,d.element);NX(c,d.element,!1)})};
NY=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-promotooltip-wrapper",S:[{G:"div",L:"ytp-promotooltip-container",S:[{G:"div",L:"ytp-promotooltip-content",S:[{G:"div",L:"ytp-promotooltip-title",Z:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",Z:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",S:[{G:"div",L:"ytp-promotooltip-dismiss-button",Z:"{{dismissButtonText}}"},{G:"div",L:"ytp-promotooltip-accept-button",Z:"{{acceptButtonText}}"}]}]},{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=
a;this.F=b;this.J=c;this.u=null;this.title=this.ga("ytp-promotooltip-title");this.details=this.ga("ytp-promotooltip-details");this.acceptButton=this.ga("ytp-promotooltip-accept-button");this.dismissButton=this.ga("ytp-promotooltip-dismiss-button");this.D=this.B=this.C=!1;g.CM(this,!1);this.R(c,"onShowControls",this.lv);this.R(c,"onHideControls",this.UM);this.R(c,"resize",this.Qa);this.R(this.acceptButton,"click",this.XL);this.R(this.dismissButton,"click",this.ZM)};
Jwa=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
OY=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){e={feedbackTokens:[f.feedbackEndpoint.feedbackToken]};var h=zG(a.J.app);(null===h||void 0===h?0:Tta(h,f))&&wU(h,f,e)}}};
PY=function(a,b){g.V.call(this,{G:"button",ia:["ytp-replay-button","ytp-button"],U:{title:"Replay"},S:[g.jN()]});this.J=a;this.R(a,"presentingplayerstatechange",this.u);this.ra("click",this.onClick,this);var c=g.fI(a);g.CM(this,g.T(c,2));g.aY(b.Gb(),this.element)};
g.QY=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{G:"button",ia:["ytp-button","ytp-share-button"],U:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.GB(a.T()))},S:[{G:"div",L:"ytp-share-icon",Z:"{{icon}}"},{G:"div",L:"ytp-share-title",Z:"Share"}]});this.api=a;this.u=b;this.C=c;this.B=d;this.visible=!1;this.tooltip=this.u.Gb();b=a.T();g.dX(a,this.element,this,28664);this.ra("click",this.onClick);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",
this.na);this.R(a,"appresize",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();g.J(this.element,"ytp-show-share-title",g.GB(b)&&!g.PB(b));g.dg(this,g.aY(this.tooltip,this.element))};
g.RY=function(a,b){var c=yM(),d=a.T();c={G:"div",L:"ytp-share-panel",U:{id:yM(),role:"dialog","aria-labelledby":c},S:[{G:"div",L:"ytp-share-panel-inner-content",S:[{G:"div",L:"ytp-share-panel-title",U:{id:c},Z:"Share"},{G:"a",ia:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.F,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Z:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",S:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",U:{type:"checkbox",
checked:!0}},"Include playlist"]},{G:"div",L:"ytp-share-panel-loading-spinner",S:[AX()]},{G:"div",L:"ytp-share-panel-service-buttons",Z:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",Z:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",ia:["ytp-share-panel-close","ytp-button"],U:{title:"Close"},S:[g.WM()]}]};g.MX.call(this,a,c,250);this.api=a;this.tooltip=b.Gb();this.B=[];this.F=this.ga("ytp-share-panel-inner-content");this.closeButton=this.ga("ytp-share-panel-close");
this.R(this.closeButton,"click",this.bb);g.dg(this,g.aY(this.tooltip,this.closeButton));this.D=this.ga("ytp-share-panel-include-playlist-checkbox");this.R(this.D,"click",this.na);this.C=this.ga("ytp-share-panel-link");g.dg(this,g.aY(this.tooltip,this.C));this.ra("click",this.gL);this.R(a,"videoplayerreset",this.hide);this.R(a,"fullscreentoggled",this.fL);this.R(a,"onLoopRangeChange",this.na);this.hide()};
Lwa=function(a,b){a.la()||(g.Bn(a.element,"ytp-share-panel-loading"),Kwa(a,b))};
Kwa=function(a,b){Mwa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={zj:e.zj},f++){e.zj=c[f];a:switch(e.zj.img||e.zj.iconId){case "facebook":var h={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{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={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{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({G:"a",ia:["ytp-share-panel-service-button","ytp-button"],U:{href:e.zj.url,target:"_blank",title:e.zj.sname||e.zj.serviceName},S:[h]}),h.ra("click",function(m){return function(n){if(g.wO(n)){var p=m.zj.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 w=p instanceof g.Fc?p:g.Kc("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(",");Td()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Fe("A"),g.id(y,w),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=kd("",t,p,y),r=g.Gc(w),t&&(g.lC&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.gd(g.kc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.nd(r)+'">'),(w=t.document)&&w.write&&(w.write(g.cd(r)),w.close()))):(t=kd(w,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.ip(n)}}}(e)),g.dg(h,g.aY(a.tooltip,h.element)),a.B.push(h),d++)}var l=b.more||b.moreLink;
c=new g.V({G:"a",ia:["ytp-share-panel-service-button","ytp-button"],S:[{G:"span",L:"ytp-share-panel-service-button-more",S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{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"}}]}]}],U:{href:l,target:"_blank",title:"More"}});c.ra("click",function(m){g.zX(l,a.api,m)&&a.api.va("SHARE_CLICKED")});
g.dg(c,g.aY(a.tooltip,c.element));a.B.push(c);a.ua("buttons",a.B)};
Nwa=function(a){g.Bn(a.element,"ytp-share-panel-loading");g.I(a.element,"ytp-share-panel-fail")};
Mwa=function(a){for(var b=g.q(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.eg(c);a.B=[]};
UY=function(a,b){g.V.call(this,{G:"div",L:"ytp-shopping-overlay"});var c=this;this.J=a;this.xa=b;this.I=this.F=this.fa=this.u=this.C=this.ha=this.B=this.expanded=this.dismissed=this.X=this.enabled=!1;this.Y=new g.H(function(){c.badge.element.style.width=""},200,this);
this.ea=new g.H(function(){SY(c);TY(c)},200,this);
this.dismissButton=new g.V({G:"button",ia:["ytp-shopping-overlay-badge-dismiss-button-icon","ytp-button"]});g.C(this,this.dismissButton);this.D=new g.V({G:"div",L:"ytp-shopping-overlay-badge-expanded-content-container",S:[{G:"label",L:"ytp-shopping-overlay-badge-title"},this.dismissButton]});g.C(this,this.D);this.badge=new g.V({G:"button",ia:["ytp-button","ytp-shopping-overlay-badge","ytp-shopping-overlay-badge-with-controls"],S:[{G:"div",L:"ytp-shopping-overlay-badge-icon"},this.D]});g.C(this,this.badge);
this.badge.da(this.element);this.R(this.badge.element,"click",this.AM);this.K=new g.vN(this.badge,250,!1,100);g.C(this,this.K);this.W=new g.vN(this.D,250,!1,100);g.C(this,this.W);this.ba=new g.qn(this.wQ,null,this);g.C(this,this.ba);this.P=new g.qn(this.XH,null,this);g.C(this,this.P);g.C(this,this.Y);g.C(this,this.ea);this.R(this.J,"onHideControls",function(){c.B=!1;TY(c);SY(c);c.mi()});
this.R(this.J,"onShowControls",function(){c.B=!0;TY(c);SY(c);c.mi()});
this.R(this.J,g.rD("shopping_overlay_visible"),function(){c.tg(!0)});
this.R(this.J,g.sD("shopping_overlay_visible"),function(){c.tg(!1)});
this.R(this.J,g.rD("shopping_overlay_expanded"),function(){c.C=!0;TY(c)});
this.R(this.J,g.sD("shopping_overlay_expanded"),function(){c.C=!1;TY(c)});
this.R(this.J,"changeProductsInVideoVisibility",this.lO);this.R(this.J,"videodatachange",this.Oa);this.R(this.J,"pageTransition",this.hL);this.R(this.dismissButton.element,"click",this.BM);this.R(this.J,"appresize",this.mi);this.R(this.J,"fullscreentoggled",this.mi);this.R(this.J,"cardstatechange",this.FM)};
SY=function(a){g.J(a.badge.element,"ytp-shopping-overlay-badge-with-controls",a.B||!a.u)};
VY=function(a){return!a.X&&a.enabled&&!a.dismissed&&!a.xa.Sf()&&!a.J.isFullscreen()&&!a.ha&&(a.u||a.B)};
TY=function(a,b){var c=a.C||a.B||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ba.stop(),a.P.stop(),a.Y.stop(),a.ba.start()):(g.CM(a.D,a.expanded),g.J(a.badge.element,"ytp-shopping-overlay-badge-expanded",a.expanded)),Owa(a))};
Owa=function(a){a.fa&&(a.F&&g.KM(a.J,a.badge.element,VY(a)),a.I&&g.KM(a.J,a.dismissButton.element,VY(a)&&(a.C||a.B||!a.u)))};
Pwa=function(a,b){b?a.I&&g.eX(a.J,a.dismissButton.element):a.F&&g.eX(a.J,a.badge.element)};
Qwa=function(a){g.aX(a.J,"shopping_overlay_visible");g.aX(a.J,"shopping_overlay_expanded")};
WY=function(a){g.MX.call(this,a,{G:"button",ia:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{G:"div",L:"ytp-skip-intro-button-text",Z:"Skip Intro"}]},100);var b=this;this.C=!1;this.B=new g.H(function(){b.hide()},5E3);
this.Yj=this.ol=NaN;g.C(this,this.B);this.I=function(){b.show()};
this.F=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.ol/1E3&&c<b.Yj/1E3&&b.show()};
this.R(this.J,"videodatachange",function(c,d){if("dataloaded"===c)if(b.ol=d.ol,b.Yj=d.Yj,isNaN(b.ol)||isNaN(b.Yj))b.C&&(g.aX(b.J,"intro"),b.J.removeEventListener(g.rD("intro"),b.I),b.J.removeEventListener(g.sD("intro"),b.F),b.J.removeEventListener("onShowControls",b.D),b.hide(),b.C=!1);else{b.J.addEventListener(g.rD("intro"),b.I);b.J.addEventListener(g.sD("intro"),b.F);b.J.addEventListener("onShowControls",b.D);var e=new g.oD(b.ol,b.Yj,{priority:7,namespace:"intro"});g.kM(b.J,[e]);b.C=!0}});
this.R(this.element,"click",function(){b.J.seekTo(b.Yj/1E3)});
this.hide()};
XY=function(a,b){g.V.call(this,{G:"button",ia:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},Z:"{{icon}}"});this.J=a;this.ra("click",this.onClick);this.R(a,"airplayactivechange",this.na);this.R(a,"airplayavailabilitychange",this.na);this.na();g.dg(this,g.aY(b.Gb(),this.element))};
YY=function(a,b){g.V.call(this,{G:"button",ia:["ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{G:"div",L:"ytp-autonav-toggle-button-container",S:[{G:"div",L:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.J=a;this.u=[];this.B=!1;this.isChecked=!0;this.R(a,"presentingplayerstatechange",this.ep);this.ra("click",this.onClick);this.tooltip=b.Gb();g.dg(this,g.aY(b.Gb(),this.element));this.ep()};
Rwa=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.ua("title",b);a.ua("label",b);AY(a.tooltip)};
g.$Y=function(a){g.V.call(this,{G:"div",L:"ytp-gradient-bottom"});this.B=g.Fe("CANVAS");this.u=this.B.getContext("2d");this.C=NaN;this.B.width=1;this.D=g.PB(a.T());g.ZY(this,g.yG(a).getPlayerSize().height)};
g.ZY=function(a,b){if(a.u){var c=Math.floor(b*(a.D?1:.4));c=Math.max(c,47);var d=c+2;if(a.C!==d){a.C=d;a.B.height=d;a.u.clearRect(0,0,1,d);var e=a.u.createLinearGradient(0,2,0,2+c);if(a.D)e.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),e.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),e.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var f=c-42;e.addColorStop(0,"rgba(0, 0, 0, 0)");e.addColorStop(f/c,"rgba(0, 0, 0, 0.3)");e.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.u.fillStyle=e;a.u.fillRect(0,2,1,c);a.element.style.height=
d+"px";try{a.element.style.backgroundImage="url("+a.B.toDataURL()+")"}catch(h){}}}};
aZ=function(a,b,c,d,e){g.V.call(this,{G:"div",L:"ytp-chapter-container",S:[{G:"button",ia:["ytp-chapter-title","ytp-button"],U:{title:"View chapter","aria-label":"View chapter"},S:[{G:"span",U:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",Z:"\u2022"},{G:"div",L:"ytp-chapter-title-content",Z:"{{title}}"},{G:"div",L:"ytp-chapter-title-chevron",S:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{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.J=a;this.K=b;this.P=c;this.I=d;this.W=e;this.F="";this.currentIndex=0;this.C=void 0;this.B=!0;this.D=this.ga("ytp-chapter-container");this.u=this.ga("ytp-chapter-title");this.updateVideoData("newdata",this.J.getVideoData());this.R(a,"videodatachange",this.updateVideoData);this.R(this.D,"click",this.onClick);a.T().ca("html5_ux_control_flexbox_killswitch")&&this.R(a,"resize",this.X);this.R(a,"onVideoProgress",this.Ec);this.R(a,"SEEK_TO",this.Ec)};
Swa=function(a,b,c,d,e){var f=b.Xs/b.rows,h=Math.min(c/(b.Ys/b.columns),d/f),l=b.Ys*h,m=b.Xs*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.bZ=function(a){g.V.call(this,{G:"div",L:"ytp-storyboard-framepreview",S:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.ga("ytp-storyboard-framepreview-img");this.Eg=null;this.B=NaN;this.events=new g.Pr(this);this.u=new g.vN(this,100);g.C(this,this.events);g.C(this,this.u);this.R(this.api,"presentingplayerstatechange",this.Tb)};
cZ=function(a,b){var c=!!a.Eg;a.Eg=b;a.Eg?(c||(a.events.R(a.api,"videodatachange",function(){cZ(a,a.api.Rf())}),a.events.R(a.api,"progresssync",a.Jd),a.events.R(a.api,"appresize",a.C)),a.B=NaN,dZ(a),a.u.show(200)):(c&&g.Rr(a.events),a.u.hide(),a.u.stop())};
dZ=function(a){var b=a.Eg,c=a.api.getCurrentTime(),d=g.yG(a.api).getPlayerSize(),e=HE(b,d.width);c=ME(b,e,c);c!==a.B&&(a.B=c,JE(b,c,d.width),b=b.Yk(c,d.width),Swa(a.D,b,d.width,d.height))};
eZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-fullerscreen-edu-button","ytp-button"],S:[{G:"div",ia:["ytp-fullerscreen-edu-text"],Z:"Scroll for details"},{G:"div",ia:["ytp-fullerscreen-edu-chevron"],S:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.u=a;this.F=b;this.C=new g.vN(this,250,void 0,100);this.D=this.B=!1;g.dX(a,this.element,this,61214);this.F=b;g.C(this,this.C);this.R(a,
"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.ra("click",this.onClick);this.na()};
g.fZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.C=b;this.message=null;this.u=g.aY(this.C.Gb(),this.element);this.B=new g.H(this.EH,2E3,this);g.C(this,this.B);this.R(a,"fullscreentoggled",this.RC);this.R(a,"presentingplayerstatechange",this.na);this.ra("click",this.onClick);if(Lr()){var c=g.yG(this.J);this.R(c,Sea(),this.nx);this.R(c,Or(document),this.jj)}a.T().ka||a.T().ca("embeds_enable_mobile_custom_controls")||
this.disable();this.na();this.RC(a.isFullscreen())};
gZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:[gN()]});this.J=a;this.visible=!1;this.ra("click",this.onClick);this.R(a,"fullscreentoggled",this.na);this.ua("title",g.CX(a,"Miniplayer","i"));g.dg(this,g.aY(b.Gb(),this.element));g.dX(a,this.element,this,62946);this.na()};
hZ=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-multicam-button","ytp-button"],U:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},S:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{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.J=a;this.u=!1;this.B=new g.H(this.C,400,this);this.tooltip=b.Gb();dY(this.tooltip);g.C(this,this.B);this.ra("click",function(){NX(c,d.element,!1)});
this.R(a,"presentingplayerstatechange",function(){d.na(!1)});
this.R(a,"videodatachange",this.Oa);this.na(!0);g.dg(this,g.aY(this.tooltip,this.element))};
iZ=function(a){g.MX.call(this,a,{G:"div",L:"ytp-multicam-menu",U:{role:"dialog"},S:[{G:"div",L:"ytp-multicam-menu-header",S:[{G:"div",L:"ytp-multicam-menu-title",S:["Switch camera",{G:"button",ia:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"Close"},S:[g.WM()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.C=new g.Pr(this);this.items=this.ga("ytp-multicam-menu-items");this.B=[];g.C(this,this.C);a=this.ga("ytp-multicam-menu-close");this.R(a,"click",this.bb);this.hide()};
jZ=function(){g.B.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.qn(this.u,null,this);g.C(this,this.delay)};
Twa=function(a,b){if("path"===b.G)return b.U.d;if(b.S)for(var c=0;c<b.S.length;c++){var d=b.S[c];if(d&&"string"!==typeof d&&(d=Twa(a,d)))return d}};
Wwa=function(a,b,c){c=Twa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=yM();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=Uwa(e),m=Uwa(c);kZ(a,function(n){d.setAttribute("d",Vwa(l,m,n))},200)};
kZ=function(a,b,c){a.B=b;a.startTime=(0,g.O)();a.duration=c;a.u()};
Uwa=function(a){var b=[];a=a.match(Xwa);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};
Vwa=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};
lZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-mute-button","ytp-button"],U:a.T().W?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Z:"{{icon}}"});this.J=a;this.u=null;this.D=this.P=this.F=this.X=NaN;this.Y=this.I=null;this.C=[];this.B=[];this.visible=!1;this.K=null;var c=this.J.T();this.ua("icon",mN());this.tooltip=b.Gb();this.u=new g.zM({G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"defs",S:[{G:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},
S:[{G:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",L:"ytp-svg-volume-animation-mover",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},S:[{G:"path",L:"ytp-svg-volume-animation-mover",U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",nb:!0,ia:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",nb:!0,ia:["ytp-svg-fill","ytp-svg-volume-animation-hider"],U:{"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.C(this,this.u);this.I=this.u.ga("ytp-svg-volume-animation-speaker");this.Y=this.I.getAttribute("d");this.C=g.se("ytp-svg-volume-animation-mover",this.u.element);this.B=
g.se("ytp-svg-volume-animation-hider",this.u.element);this.ba=new jZ;g.C(this,this.ba);this.W=new jZ;g.C(this,this.W);this.ra("click",this.RN);this.R(a,"appresize",this.SC);this.R(a,"onVolumeChange",this.XK);var d=null;if(c.W)g.dg(this,g.aY(b.Gb(),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.MX(a,{G:"span",ia:["ytp-popup","ytp-generic-popup"],U:{tabindex:"0"},S:[e[0],{G:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",
target:c.F},Z:e[2]},e[4]]},100,!0);g.C(this,d);d.hide();d.subscribe("show",function(f){b.mo(d,f)});
g.$O(a,d.element,4)}this.message=d;g.dX(a,this.element,this,28662);this.SC(g.yG(a).getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
$wa=function(a,b){a.X=b;var c=a.Y;b&&(c+=Vwa(Ywa,Zwa,b));a.I.setAttribute("d",c)};
axa=function(a,b){a.P=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=mN():e=a.u;for(c=0;c<a.B.length;c++)a.B[c].style.display=0===b?"none":"";e!==a.K&&(a.ua("icon",e),a.K=e)};
mZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},S:[gN()]});this.J=a;this.ua("title","Picture in Picture");this.ra("click",this.onClick);g.dg(this,g.aY(b.Gb(),this.element))};
g.nZ=function(a,b){g.V.call(this,{G:"button",ia:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},Z:"{{icon}}"});this.J=a;this.u=null;this.transition=new jZ;this.tooltip=b.Gb();g.C(this,this.transition);this.R(a,"fullscreentoggled",this.Oa);this.R(a,"presentingplayerstatechange",this.B);this.R(a,"videodatachange",this.Oa);bxa(this,g.fI(a));this.ra("click",this.An,this);g.dg(this,g.aY(b.Gb(),this.element))};
cxa=function(a){switch(a){case 1:return hN();case 2:return fN();case 3:return g.jN();case 4:return lN();default:return null}};
bxa=function(a,b){var c=g.BF(a.J.getVideoData()),d=!1;if(g.RK(b))var e=c?4:2;else g.T(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.u!==e){c=null;switch(e){case 2:c=g.CX(a.J,"Pause","k");break;case 3:c="Replay";break;case 1:c=g.CX(a.J,"Play","k");break;case 4:c="Stop live playback"}3===e?a.update({title:c,label:null,icon:cxa(e)}):(a.update({title:c,label:c}),(c=cxa(e))&&a.u&&3!==a.u?Wwa(a.transition,a.element,c):a.ua("icon",c));AY(a.tooltip);a.u=e}};
g.oZ=function(a,b){return VF(b)?(b.fetch=0,new g.UF(a,b)):new g.PE(a,b)};
g.qZ=function(a,b,c){g.V.call(this,{G:"a",ia:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],U:{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?dN():iN()]});var d=this;this.J=a;this.u=c;this.playlist=this.videoData=null;this.I=!1;this.D=this.F=this.B=null;this.C=!1;this.tooltip=b.Gb();this.R(a,"fullscreentoggled",this.Oa);
this.R(a,"videodatachange",this.Oa);this.R(a,"onPlaylistUpdate",this.Oa);this.u||this.R(a,"appresize",this.Ww);this.R(a,"mdxpreviousnextchange",function(){pZ(d);d.Ww()});
this.Oa()};
dxa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.Oa,a)};
exa=function(a){return!!a.playlist&&!a.u&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
fxa=function(a){var b=g.PW(g.LW(a.J));return b?a.u?b.hasNext():b.Qh():!1};
pZ=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.QW(a.J)&&(!a.u||c);var d=a.u&&g.cX(a.J),e=fxa(a),f=a.u&&5===a.J.getPresentingPlayerType(),h=g.CX(a.J,"Next","SHIFT+n"),l=g.CX(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=a.playlist.Ja(a.u?WF(a.playlist):XF(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.J.T().getVideoUrl(m.videoId,n?
n.toString():void 0)}b.text=m.title;b.duration=m.lengthSeconds?g.vO(m.lengthSeconds):null;b.preview=m.yd("mqdefault.jpg")}b.title=a.u?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.oZ(a.J.T(),a.videoData.suggestions[0]),b.url=l.Rj(),b.text=l.title,b.duration=l instanceof g.PE?g.vO(l.lengthSeconds):null,b.preview=l.yd("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.I=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.aY(a.tooltip,a.element),a.F=a.ra("click",
a.onClick,a)):a.B&&(a.B(),a.B=null,a.Bb(a.F),a.F=null);AY(a.tooltip)};
rZ=function(){g.V.call(this,{G:"div",L:"ytp-chapter-hover-container",S:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",S:[{G:"div",ia:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",L:"ytp-load-progress"},{G:"div",L:"ytp-hover-progress"},{G:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.width=0;this.C=this.ga("ytp-ad-progress-list");this.D=this.ga("ytp-load-progress");this.F=this.ga("ytp-play-progress");this.B=this.ga("ytp-hover-progress");
this.u=this.ga("ytp-chapter-hover-container")};
sZ=function(a,b){g.F(a.u,"width",b)};
tZ=function(a,b){g.F(a.u,"margin-right",b+"px")};
gxa=function(){this.C=this.position=this.D=this.u=this.F=this.B=this.width=NaN};
hxa=function(){g.V.call(this,{G:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.uZ=function(a,b){g.DM.call(this,{G:"div",L:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{G:"div",ia:["ytp-progress-bar",a.T().u?"ytp-mobile":""],U:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{G:"div",L:"ytp-chapters-container"},{G:"div",L:"ytp-marker-crenellation-list"},{G:"div",L:"ytp-timed-markers-container"},{G:"div",L:"ytp-clip-start-exclude"},
{G:"div",L:"ytp-clip-end-exclude"},{G:"div",L:"ytp-scrubber-container",S:[{G:"div",ia:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",L:"ytp-bound-time-left",Z:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",Z:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},Z:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",U:{title:"{{clipendtitle}}"},Z:"{{clipendicon}}"}]});this.api=a;this.ac=!1;this.C=this.kd=
0;this.fa=1;this.ld=this.P=0;this.D=null;this.W=this.jb=0;this.Kc=this.ga("ytp-marker-crenellation-list");this.Y={};this.Ra={};this.clipEnd=Infinity;this.xa=this.ga("ytp-clip-end");this.kb=new g.Vr(this.xa,!0);this.tc=this.ga("ytp-clip-end-exclude");this.De=this.ga("ytp-clip-start-exclude");this.clipStart=0;this.Fa=this.ga("ytp-clip-start");this.wb=new g.Vr(this.Fa,!0);this.I=this.ha=0;this.Lc=this.ga("ytp-progress-bar");this.Ia=void 0;this.Jb={};this.Za=this.ga("ytp-chapters-container");this.Pd=
this.ga("ytp-timed-markers-container");this.Aa=[];this.oa=[];this.ea=-1;this.Mb=g.Q(this.api.T().experiments,"web_macro_markers_snapping_threshold");this.ka=this.X=0;this.F=null;this.Nd=this.ga("ytp-scrubber-button");this.ce=this.ga("ytp-scrubber-container");this.Ma=new g.fe;this.Vc=new gxa;this.u=new FO(0,0);this.K=null;this.B=this.Rb=!1;this.jd=null;this.tooltip=b.Gb();g.dg(this,g.aY(this.tooltip,this.xa));g.C(this,this.kb);this.kb.subscribe("hoverstart",this.CD,this);this.kb.subscribe("hoverend",
this.BD,this);this.R(this.xa,"click",this.Dt);g.dg(this,g.aY(this.tooltip,this.Fa));g.C(this,this.wb);this.wb.subscribe("hoverstart",this.CD,this);this.wb.subscribe("hoverend",this.BD,this);this.R(this.Fa,"click",this.Dt);ixa(this);this.R(a,"resize",this.Qa);this.R(a,"presentingplayerstatechange",this.cL);this.R(a,"videodatachange",this.TC);this.R(a,"videoplayerreset",this.OI);this.R(a,"cuerangesadded",this.bG);this.R(a,"cuerangesremoved",this.eQ);this.R(a,"cuerangemarkersupdated",this.bG);this.R(a,
"onLoopRangeChange",this.aG);this.updateVideoData(a.getVideoData(),!0);this.aG(a.getLoopRange())};
ixa=function(a){if(0===a.Aa.length){var b=new rZ;a.Aa.push(b);g.C(a,b);b.da(a.Za,0)}for(;1<a.Aa.length;)a.Aa.pop().dispose();sZ(a.Aa[0],"100%");a.Aa[0].startTime=0;a.Aa[0].title=""};
jxa=function(a){for(;a.oa.length;)a.oa.pop().dispose()};
lxa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=kxa(a,d.timeRangeStartMillis/(1E3*a.u.u),vZ(a));g.F(d.element,"transform","translateX("+e+"px)")}};
mxa=function(a,b){for(var c=0,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;h&&h.simpleText&&(f.title=h.simpleText);h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.Aa[c].startTime=0,a.Aa[c].title="",a.Aa[c].onActiveCommand=e.onActiveCommand,c++);a.Aa.length<=c&&(f=new rZ,a.Aa.push(f),g.C(a,f),f.da(a.Za,a.Za.children.length));
a.Aa[c].startTime=e.startTime;a.Aa[c].title=e.title?e.title:"";a.Aa[c].onActiveCommand=e.onActiveCommand}c++}for(;c<a.Aa.length;)a.Aa.pop().dispose();g.wZ(a)};
g.wZ=function(a){a.X=a.Aa.length-1;a.ka=0;nxa(a,!0)&&nxa(a,!1);for(var b=0,c=0;c<a.Aa.length;c++)if(0===a.Aa[c].width){if(c===a.Aa.length-1)for(var d=a.Aa.length-1;0<=d;d--)if(0<a.Aa[d].width){tZ(a.Aa[d],0);sZ(a.Aa[d],Math.floor(a.Aa[d].width)+"px");break}sZ(a.Aa[c],"0")}else c===a.Aa.length-1?sZ(a.Aa[c],Math.floor(a.Aa[c].width+b)+"px"):(b=a.Aa[c].width+b,d=Math.round(b),b-=d,sZ(a.Aa[c],d+"px"));xZ(a)};
nxa=function(a,b){var c=0,d=!1,e=a.Aa.length,f=1E3*a.u.u;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.B?3:2)*a.X,l=0===a.ka?3:h*a.ka,m=g.q(a.Aa),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.Aa[c].startTime;c<e-1&&(m=a.Aa[c+1].startTime-a.Aa[c].startTime,tZ(a.Aa[c],a.B?3:2));g.J(a.Aa[c].u,"ytp-exp-chapter-hover-container",1<a.Aa.length);n=(0===f?0:m/f*h)+a.Aa[c].width;if(n>l)a.Aa[c].width=n;else{a.Aa[c].width=0;var p=a,r=c,t=p.Aa[r-1];void 0!==
t&&0<t.width?t.width+=n:r<p.Aa.length-1&&(p.Aa[r+1].width+=n);tZ(p.Aa[r],0);b&&(a.X--,m/f>a.ka&&(a.ka=m/f),d=!0)}c++}}return d};
xZ=function(a){if(a.C){var b=a.api.getProgressState(),c=new FO(b.seekableStart,b.seekableEnd),d=HO(c,b.loaded,0);b=HO(c,b.current,0);var e=a.u.B!==c.B||a.u.u!==c.u;a.u=c;yZ(a,b,d);e&&zZ(a);oxa(a)}};
BZ=function(a,b){var c=GO(a.u,b.C);if(1<a.Aa.length){c=AZ(a,b.D,!0);for(var d=0,e=0;e<c;e++)0<a.Aa[e].width&&(d+=a.Aa[e].width,d+=a.B?3:2);c=(a.Aa[c].startTime+(b.D-d)/a.Aa[c].width*((c===a.Aa.length-1?1E3*a.u.u:a.Aa[c+1].startTime)-a.Aa[c].startTime))/1E3}return c};
pxa=function(a,b,c){return c>=a.Aa.length?!1:Math.abs(b-a.Aa[c].startTime/1E3)/a.u.u*(a.C-(a.B?3:2)*a.X)<a.Mb};
qxa=function(a,b,c,d){b=g.be(b,0,a.B?60:40);a.P=b;var e=a.fa,f=Math.max(a.u.getLength()/a.C,1);a.fa=b/(a.B?60:40)*(f-1)+1;b=a.C*a.fa;a.W=g.be(d*b-c,0,b-a.C);e!==a.fa&&zZ(a)};
zZ=function(a){var b=vZ(a),c=-b.B/b.u,d=(-b.B+b.width)/b.u,e=Saa(a.Kc),f=0;if(a.P>.2*(a.B?60:40)&&1===a.Aa.length){var h=c*(a.u.getLength()/60),l=d*(a.u.getLength()/60);for(h=Math.ceil(h);h<l;h++){var m=e[f];m||(m=g.Fe("DIV"),a.Kc.appendChild(m));f++;0===h%60?yn(m,"ytp-60m-progress"):0===h%30?yn(m,"ytp-30m-progress"):0===h%15?yn(m,"ytp-15m-progress"):yn(m,"ytp-1m-progress");var n=(60*h/a.u.getLength()-c)*b.u;m.style.left=n+"px"}}b=a.Rb?a.u.u:0;a.update({boundTimeLeft:g.vO(GO(a.u,c)-b),boundTimeRight:g.vO(GO(a.u,
d)-b)});for(c=e.length-1;c>=f;c--)g.Je(e[c]);a.element.style.height=a.P+(a.B?8:5)+"px";a.V("height-change",a.P);a.Nd.style.height=a.P+(a.B?20:13)+"px";e=g.q(Object.keys(a.Y));for(f=e.next();!f.done;f=e.next())rxa(a,f.value);CZ(a);yZ(a,a.I,a.ha)};
vZ=function(a){var b=a.Ma.x,c=a.C*a.fa;b=g.be(b,0,a.C);a.Vc.update(b,a.C,-a.W,-(c-a.W-a.C));return a.Vc};
yZ=function(a,b,c){a.I=b;a.ha=c;var d=vZ(a),e=a.u.u,f=GO(a.u,a.I),h=g.ZI("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.vO(f,!0),DURATION:g.vO(e,!0)}),l=DY(a.Aa,1E3*f);l=a.Aa[l].title;a.update({ariamin:Math.floor(a.u.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.K&&2!==a.api.getPresentingPlayerType()&&(e=a.K.startTimeMs/1E3,f=a.K.endTimeMs/1E3);e=HO(a.u,e,0);h=HO(a.u,f,1);f=g.be(b,e,h);c=g.be(c,e,h);b=kxa(a,b,d);g.F(a.ce,"transform","translateX("+
b+"px)");DZ(a,d,e,f,"PLAY_PROGRESS");DZ(a,d,e,c,"LOAD_PROGRESS")};
DZ=function(a,b,c,d,e){var f=a.Aa.length,h=b.u-a.X*(a.B?3:2),l=c*h;c=AZ(a,l);var m=d*h;h=AZ(a,m);"HOVER_PROGRESS"===e&&(h=AZ(a,b.u*d,!0),m=b.u*d-sxa(a,b.u*d)*(a.B?3:2));b=Math.max(l-txa(a,c),0);for(d=c;d<f;d++)a.Aa[d].La(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.Aa[f].width,EZ(a,a.Aa[f].La(e),f===c?d-b:d,d);f=a.Aa[h].width;m=g.be(m-txa(a,h),0,f);c===h&&(m-=b);EZ(a,a.Aa[h].La(e),m,f);m=a.Aa.length;for(h+=1;h<m;h++)EZ(a,a.Aa[h].La(e),0,a.Aa[h].width);for(h=0;h<c;h++)EZ(a,a.Aa[h].La(e),0,a.Aa[h].width)};
txa=function(a,b){if(b>=a.Aa.length)return a.C;for(var c=0,d=0;d<b;)c+=a.Aa[d].width,d++;return c};
EZ=function(a,b,c,d,e){e||a.api.T().u?b.style.width=c+"px":g.F(b,"transform","scalex("+(d?c/d:0)+")")};
AZ=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=sxa(a,b)*(a.B?3:2));c=g.q(a.Aa);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.Aa.length?d-1:d};
kxa=function(a,b,c){for(var d=b*a.u.u*1E3,e=-1,f=g.q(a.Aa),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.u-(a.B?3:2)*a.X)+(a.B?3:2)*(0>e?0:e)+c.B};
sxa=function(a,b){for(var c=a.Aa.length,d=0,e=g.q(a.Aa),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d};
CZ=function(a){var b=!!a.K&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.K?(c=a.K.startTimeMs/1E3,d=a.K.endTimeMs/1E3):(e=c>a.u.B,f=0<a.u.u&&d<a.u.u);g.J(a.element,"ytp-loop-range-enabled",b);g.J(a.element,"ytp-clip-start-enabled",e);g.J(a.element,"ytp-clip-end-enabled",f);b=e?HO(a.u,c,0):0;d=f?HO(a.u,d,1):1;a.Fa.style.left=Math.round(1E3*b)/10+"%";a.xa.style.left=Math.round(1E3*d)/10+"%";a.De.style.width=Math.round(1E3*b)/10+"%";a.tc.style.left=Math.round(1E3*d)/10+
"%";a.tc.style.width=Math.round(1E3*(1-d))/10+"%"};
oxa=function(a){var b=vZ(a);DZ(a,b,a.I,Math.max(b.C,a.I),"HOVER_PROGRESS");for(var c=AZ(a,b.u*a.I,!0),d=AZ(a,b.D,!0),e=c;e<=d;e++)g.J(a.Aa[e].B,"ytp-hover-progress-light",b.C>a.I);g.J(a.Nd,"ytp-scrubber-button-hover",c===d&&1<a.Aa.length)};
rxa=function(a,b){var c=a.Y[b],d=a.Ra[b],e=vZ(a),f=HO(a.u,c.start/1E3,0),h=ola(c,a.B)/e.width;var l=HO(a.u,c.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(f=g.be(f,0,l-h));l=Math.min(l,f+h);c.color&&(d.style.background=c.color);c=f;f=!0;d.style.left=Math.max(c*e.u+e.B,0)+"px";EZ(a,d,g.be((l-c)*e.u+e.B,0,e.width),e.width,void 0===f?!1:f)};
uxa=function(a,b){var c=b.getId();a.Y[c]===b&&(g.Je(a.Ra[c]),delete a.Y[c],delete a.Ra[c])};
vxa=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new g.Vr(a.Lc,!0),a.F.subscribe("hovermove",a.oO,a),a.F.subscribe("hoverend",a.nO,a),a.F.subscribe("dragstart",a.mO,a),a.F.subscribe("dragmove",a.qO,a),a.F.subscribe("dragend",a.pO,a),a.jd=a.ra("keydown",a.dL)):a.F&&(a.element.setAttribute("aria-disabled","true"),a.Bb(a.jd),a.F.cancel(),a.F.dispose(),a.F=null)};
g.wxa=function(a){var b=2*a.C*g.eC();return 1E3*a.u.getLength()/a.api.getPlaybackRate()/b};
FZ=function(a,b,c){g.V.call(this,{G:"button",L:"ytp-button",U:{title:"Play on TV","aria-haspopup":"true"},Z:"{{icon}}"});this.J=a;this.Sa=c;this.u=null;this.R(a,"onMdxReceiversChange",this.na);this.R(a,"presentingplayerstatechange",this.na);this.R(a,"appresize",this.na);this.na();this.ra("click",this.B,this);g.dg(this,g.aY(b.Gb(),this.element))};
GZ=function(a,b,c){g.V.call(this,{G:"button",ia:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":yM(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},S:[g.kN()]});this.J=a;this.Sa=c;this.B=!0;this.ra("click",this.C);this.R(a,"onPlaybackQualityChange",this.updateBadge);this.R(a,"videodatachange",this.updateBadge);this.R(a,"webglsettingschanged",this.updateBadge);this.R(a,"appresize",this.u);g.dg(this,g.aY(b.Gb(),this.element));g.dX(this.J,this.element,this,
28663);this.updateBadge();this.u(g.yG(a).getPlayerSize())};
HZ=function(a,b){a.B=!!b;a.u(g.yG(a.J).getPlayerSize())};
IZ=function(a,b){g.pY.call(this,"Annotations",6);this.J=a;this.Sa=b;this.u=!1;this.R(a,"videodatachange",this.na);this.R(a,"onApiChange",this.na);this.subscribe("select",this.B,this);this.na()};
g.JZ=function(a,b,c,d,e,f){g.hY.call(this,g.iY({"aria-haspopup":"true"}),b,a);this.Sa=d;this.F=!1;this.B=null;this.options={};this.C=new g.lY(c,void 0,a,e,f);g.C(this,this.C);this.ra("keydown",this.eL);this.ra("click",this.open)};
xxa=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.KZ=function(a,b){g.mY(a.C);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(l=a,g.gY(l.options[f],l.fh(f,!0)),delete a.options[f]):h=a.Ou(f,-e,l);c[f]=h;a.C.Kb(h,!0)}d||(a.B=null);d=g.q(Object.keys(a.options));for(e=d.next();!e.done;e=d.next())a.options[e.value].dispose();a.options=c};
LZ=function(a,b){g.JZ.call(this,"Audio track",3,a,b);this.J=a;this.tracks={};this.u=new g.V({G:"div",S:[{G:"span",Z:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.C(this,this.u);g.gY(this,this.u);this.R(a,"videodatachange",this.na);this.R(a,"onPlaybackAudioChange",this.na);this.na()};
MZ=function(a,b){g.pY.call(this,"Autoplay",7);this.J=a;this.Sa=b;this.B=!1;this.u=[];this.R(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.F,this);this.C()};
NZ=function(a,b,c,d){d=new g.V({G:"div",ia:["ytp-linked-account-popup-button"],Z:d,U:{role:"button",tabindex:"0"}});b=new g.V({G:"div",L:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{G:"div",L:"ytp-linked-account-popup-title",Z:b},{G:"div",L:"ytp-linked-account-popup-description",Z:c},{G:"div",L:"ytp-linked-account-popup-buttons",S:[d]}]});g.MX.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",S:[b]},100);var e=this;this.dialog=b;g.C(this,this.dialog);
d.ra("click",function(){e.bb()});
g.C(this,d);g.$O(this.J,this.element,4);this.hide()};
OZ=function(a,b){g.hY.call(this,g.iY({"aria-haspopup":"true"}),1);this.J=a;this.Sa=b;this.B=this.u=!1;this.R(this.J,"videodatachange",this.D);this.ra("click",this.onClick);this.D()};
PZ=function(a){return a?g.U(a):""};
QZ=function(a,b){g.JZ.call(this,"Quality",2,a,b);this.J=a;this.D={};this.u="unknown";g.I(this.C.element,"ytp-quality-menu");this.R(a,"videodatachange",this.gp);this.R(a,"videoplayerreset",this.gp);this.R(a,"onPlaybackQualityChange",this.UC);this.gp()};
yxa=function(a,b,c){a=a.D[b];var d=g.Fv[b];c={G:"span",ia: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({G:"sup",L:"ytp-swatch-color",Z:e}));return c};
RZ=function(a,b,c,d,e,f,h){g.V.call(this,{G:"div",L:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{G:"div",L:"ytp-slider",S:[{G:"div",L:"ytp-slider-handle"}]}]});this.I=a;this.F=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.P=f;this.range=this.maximumValue-this.minimumValue;this.Y=this.ga("ytp-slider-section");this.B=this.ga("ytp-slider");this.W=this.ga("ytp-slider-handle");
this.D=new g.Vr(this.B,!0);this.u=h?h:c;g.C(this,this.D);this.D.subscribe("dragmove",this.jL,this);this.R(this.element,"keydown",this.kL);this.R(this.element,"wheel",this.iL);this.init()};
TZ=function(a){RZ.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.C=g.Fe("P");this.ba=maa(this.X,this);g.I(this.B,"ytp-speedslider");g.I(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);SZ(this);this.R(this.J,"onPlaybackRateChange",this.fa)};
SZ=function(a){a.C.textContent=UZ(a,a.u)+"x"};
UZ=function(a,b){var c=Number(g.be(b,a.minimumValue,a.maximumValue).toFixed(2)),d=Math.floor(100*(c+.001)%5+2E-15),e=c;0!==d&&(e=c-.01*d);return Number(e.toFixed(2))};
VZ=function(a){g.DM.call(this,{G:"div",L:"ytp-speedslider-component"});this.u=new TZ(a);g.C(this,this.u);this.element.appendChild(this.u.element)};
zxa=function(a){var b=new VZ(a);kY.call(this,a,b,"Custom");g.C(this,b)};
WZ=function(a,b){var c=new zxa(a);g.JZ.call(this,"Playback speed",5,a,b,"Custom",function(){g.rY(b,c)});
g.C(this,c);this.J=a;this.D=this.u=this.K=null;this.I=this.J.getAvailablePlaybackRates();this.R(a,"presentingplayerstatechange",this.na);this.na()};
Axa=function(a,b){var c=XZ(b);a.options[c]?a.wc(c):b===a.D&&a.u&&(a.wc(a.u),a.jc(b.toString()))};
Cxa=function(a){g.KZ(a,a.I.map(XZ));a.u=null;a.D=null;var b=a.J.getPlaybackRate();a.I.includes(b)||(Bxa(a,b),g.JZ.prototype.ne.call(a,a.u))};
Bxa=function(a,b){a.D=b;a.u=g.ZI("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.I.map(XZ);c.unshift(a.u);g.KZ(a,c)};
XZ=function(a){return a.toString()};
YZ=function(a,b,c,d){var e=new g.lY(b,void 0,"Video Override");g.JZ.call(this,d.text||"",a,b,c,"Video Override",function(){g.rY(c,e)});
var f=this;g.I(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Ib(a,this.WC,this);this.I=e;g.C(this,this.I);b=new g.hY({G:"div",L:"ytp-menuitemtitle",Z:"Allow for a different caption style if specified by the video."},0);g.C(this,b);this.I.Kb(b,!0);this.D=new g.hY({G:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{G:"div",L:"ytp-menuitem-label",Z:"On"}]},-1);g.C(this,this.D);this.I.Kb(this.D,!0);this.R(this.D.element,"click",
function(){Dxa(f,!0)});
this.u=new g.hY({G:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{G:"div",L:"ytp-menuitem-label",Z:"Off"}]},-2);g.C(this,this.u);this.I.Kb(this.u,!0);this.R(this.u.element,"click",function(){Dxa(f,!1)});
g.KZ(this,g.Pc(a,this.WC))};
Dxa=function(a,b){a.V("settingChange",a.setting+"Override",!b);a.Sa.Hf()};
ZZ=function(a,b){g.lY.call(this,a,void 0,"Options");var c=this;this.fk={};for(var d=0;d<g.FY.length;d++){var e=g.FY[d],f=new YZ(-d,a,b,e);g.C(this,f);f.subscribe("settingChange",this.Df,this);this.fk[e.option.toString()]=f;this.Kb(f,!0)}d=new g.hY(g.iY(),-g.FY.length,"Reset");g.C(this,d);d.ra("click",function(){c.Df("reset",!0)});
this.Kb(d,!0)};
$Z=function(a,b){g.JZ.call(this,"Auto-translate",0,a,b);this.languages={}};
Exa=function(a,b){a.languages=g.Ib(b,a.u,a);g.KZ(a,g.Pc(b,a.u))};
a_=function(a,b){g.JZ.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.rY(b,c.D)});
var c=this;this.J=a;this.tracks={};this.I=new g.H(function(){Fxa(c,!1)},3E3);
this.u=new $Z(this.J,this.Sa);this.D=new ZZ(this.J,this.Sa);this.K=new g.V({G:"div",S:[{G:"span",Z:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.C(this,this.I);g.C(this,this.K);g.gY(this,this.K);g.C(this,this.u);this.u.subscribe("select",this.pL,this);g.C(this,this.D);this.D.subscribe("settingChange",this.Df,this);b.subscribe("show",this.UO,this);this.R(a,"videodatachange",this.na);this.R(a,"onApiChange",this.na);this.R(a,"onCaptionsTrackListChanged",this.na);this.R(a,
"captionschanged",this.na);this.na()};
Fxa=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
b_=function(a){g.tY.call(this,a,"ytp-settings-menu");var b=this;this.Qc=new g.lY(this.J);this.Gw=this.settingsButton=null;this.rd=!1;g.C(this,this.Qc);this.hide();g.rY(this,this.Qc);g.dX(a,this.element,this,108341,!0);this.subscribe("show",function(c){b.tg(c)})};
Gxa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
c_=function(a,b){g.V.call(this,{G:"button",ia:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.J=a;this.isWidescreen=null;this.transition=new jZ;this.tooltip=b.Gb();g.C(this,this.transition);this.R(a,"sizestylechange",this.na);this.R(a,"fullscreentoggled",this.na);this.R(a,"presentingplayerstatechange",this.na);this.na();this.ra("click",this.onClick);g.dg(this,g.aY(this.tooltip,this.element))};
d_=function(a,b){g.V.call(this,{G:"button",ia:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:g.CX(a,"Subtitles/closed captions","c")},S:[XM()]});this.J=a;this.R(a,"videodatachange",this.na);this.R(a,"appresize",this.na);this.R(a,"onApiChange",this.na);this.R(a,"onCaptionsTrackListChanged",this.na);this.R(a,"captionschanged",this.na);this.na();this.ra("click",this.onClick);g.dg(this,g.aY(b.Gb(),this.element))};
g.e_=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{G:"div",ia:["ytp-time-display","notranslate"],S:[{G:"span",L:"ytp-time-current",Z:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",Z:" / "},{G:"span",L:"ytp-time-duration",Z:"{{duration}}"}]});this.api=a;this.K=c;this.liveBadge=new g.V({G:"button",ia:["ytp-live-badge","ytp-button"],U:{disabled:"true"},Z:"{{content}}"});this.u=null;this.B=!1;this.I=this.F=null;this.isPremiere=!1;this.D=this.C=null;this.liveBadge.jc("Live");g.C(this,this.liveBadge);
this.liveBadge.da(this.element);this.tooltip=b.Gb();this.ra("click",this.onClick);this.R(a,"presentingplayerstatechange",this.Ec);this.R(a,"appresize",this.Ec);this.R(a,"videodatachange",this.Oa);(a=a.getVideoData())&&this.updateVideoData(a);this.Ec()};
h_=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{G:"div",L:"ytp-volume-slider",S:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.B=b;this.K=c;this.Xg=!1;this.X=this.volume=0;this.P=null;this.D=this.u=this.C=!1;this.B=b;this.K=c;this.F=b.zd();this.W=this.ga("ytp-volume-slider");this.Y=this.ga("ytp-volume-slider-handle");this.I=
new g.Vr(this.W,!0);g.C(this,this.I);this.I.subscribe("dragstart",this.YO,this);this.I.subscribe("dragmove",this.tL,this);this.I.subscribe("dragend",this.XO,this);this.R(a,"onVolumeChange",this.vL);this.R(a,"appresize",this.YC);this.R(a,"fullscreentoggled",this.jj);this.R(a,"onShowControls",this.lA);this.R(a,"onHideControls",this.lA);this.R(this.element,"keydown",this.uL);this.R(this.element,"focus",function(){f_(d,d.u,d.C,!0,d.B.Xg())});
this.R(this.element,"blur",function(){f_(d,d.u,d.C,!1,d.B.Xg())});
this.YC(g.yG(a).getPlayerSize());g_(this,a.getVolume(),a.isMuted())};
g_=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.ua("valuenow",d);a.ua("valuetext",e);a.Y.style.left=(a.F?60:40)*c+"px";a.volume=b};
Hxa=function(a,b){g.J(a.element,"ytp-volume-control-hover",b);f_(a,b,a.C,a.D,a.B.Xg())};
f_=function(a,b,c,d,e){var f=a.u||a.C||a.D||a.Xg;a.u=b;a.C=c;a.D=d;a.Xg=e;b=a.u||a.C||a.D||a.Xg;f!==b&&(b?a.P=a.R(a.element,"wheel",a.sL):(a.Bb(a.P),a.P=null),g.J(a.K,"ytp-volume-slider-active",b))};
g.i_=function(a,b){var c=a.T(),d=g.bC(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.PB(c);f&&e.push("ytp-youtube-music-button");g.V.call(this,{G:"a",ia:e,U:{href:"{{url}}",target:c.F,title:g.ZI("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},S:[f?{G:"svg",U:{viewBox:"0 0 77 20"},S:[{G:"g",U:{fill:"none"},S:[{G:"path",U:{d:"M27.71 3.30a3.53 3.53 0 0 0-2.49-2.49c-2.19-.59-11.00-.59-11.00-.59s-8.81 0-11.00.59A3.53 3.53 0 0 0 .71 3.30c-.59 2.20-.59 6.8-.59 6.8s0 4.59.59 6.8a3.53 3.53 0 0 0 2.49 2.49c2.19.59 11.00.59 11.00.59s8.81 0 11.00-.59a3.53 3.53 0 0 0 2.49-2.49c.59-2.20.59-6.8.59-6.8s-.00-4.59-.59-6.8z",
fill:"red"}},{G:"path",U:{d:"M11.39 14.34l7.32-4.23-7.32-4.24zM40.69 7.88c-.50 2.56-.88 5.69-1.08 6.98h-.14c-.16-1.33-.54-4.44-1.06-6.97l-1.29-6.28h-3.92v16.95h2.43V4.60l.24 1.30 2.47 12.66h2.43L43.21 5.91l.26-1.31v13.97h2.43V1.62h-3.96L40.7 7.88zm11.80 8.14c-.22.46-.70.78-1.19.78-.56 0-.78-.44-.78-1.53V6.19h-2.78v9.25c0 2.28.74 3.33 2.39 3.33 1.12 0 2.03-.50 2.66-1.71h.06l.24 1.51h2.17V6.19h-2.78v9.84h.00zm8.15-4.94c-.90-.66-1.47-1.11-1.47-2.08 0-.68.32-1.07 1.08-1.07.78 0 1.04.54 1.06 2.40l2.33-.1c.18-3.01-.80-4.26-3.36-4.26-2.37 0-3.54 1.07-3.54 3.27 0 2 .96 2.91 2.53 4.1 1.35 1.05 2.13 1.63 2.13 2.48 0 .64-.40 1.09-1.10 1.09-.82 0-1.31-.78-1.18-2.16l-2.35.04c-.36 2.56.66 4.06 3.40 4.06 2.39 0 3.64-1.11 3.64-3.33.00-2.02-1.00-2.82-3.18-4.44zm4.71-4.88h2.66v12.38h-2.66zm1.35-4.88c-1.02 0-1.51.38-1.51 1.71 0 1.37.48 1.71 1.51 1.71 1.04 0 1.51-.34 1.51-1.71 0-1.27-.46-1.71-1.51-1.71zm10.25 12.80l-2.43-.12c0 2.18-.24 2.88-1.06 2.88s-.96-.78-.96-3.35V11.12c0-2.48.16-3.27.98-3.27.76 0 .96.74.96 3.05l2.41-.16c.16-1.92-.08-3.23-.82-3.98-.54-.54-1.37-.80-2.51-.80-2.7 0-3.80 1.45-3.80 5.53v1.73c0 4.20.94 5.55 3.70 5.55 1.17 0 1.97-.24 2.51-.76.78-.73 1.08-1.98 1.02-3.90z",
fill:"#fff"}}]}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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 "}}]}]});
this.api=a;this.visible=!1;g.dX(a,this.element,this,28666);this.ra("click",this.onClick);this.R(a,"videodatachange",this.Oa);this.R(a,"onLoopRangeChange",this.Oa);this.Oa();g.dg(this,g.aY(b.Gb(),this.element))};
k_=function(a,b,c){g.Pr.call(this);var d=this;this.J=a;this.B=b;this.xc=c;this.ka=NaN;this.fa=this.ha=null;this.u=new b_(this.J);this.Lc=new g.uZ(this.J,this.B);this.muteButton=null;this.uh=new g.e_(this.J,this.B);this.D=this.F=this.P=this.N=null;this.X=new mZ(this.J,this.B);this.ea=new g.fZ(this.J,this.B);this.qd=new g.qn(this.tp,null,this);this.K=null;c=a.T();this.xc.subscribe("autohideupdate",this.jh,this);var e=!g.fI(a).isCued(),f=this.J.T().ca("html5_player_bottom_linear_gradient");f||!g.PB(c)&&
!g.R(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.V({G:"div",L:"ytp-gradient-bottom-container",S:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.V({G:"div",L:"ytp-gradient-bottom"}):this.fa=f=new g.$Y(a);g.C(this,f);g.$O(a,f.element,8);this.ba=new g.vN(f,250,e,100);g.C(this,this.ba);this.C=new g.V({G:"div",L:"ytp-chrome-bottom",S:[{G:"div",L:"ytp-chrome-controls"}]});g.C(this,this.C);g.$O(a,this.C.element,8);this.Y=new g.vN(this.C,250,
e,100);g.C(this,this.Y);this.W=this.C.element.children[0];g.dg(this.u,function(){a.il()===d.u&&(a.P=null)});
g.C(this,this.u);a.P=this.u;g.$O(a,this.u.element,6);this.u.subscribe("show",function(n){var p=d.B.Gb(),r=!n;if(null!=p.type)if(r)switch(p.type){case 3:case 2:j_(p);p.I.show();break;default:p.I.show()}else p.I.hide();p.K=r;b.ay(d.u,n)});
g.C(this,this.Lc);this.Lc.da(this.C.element,0);e=new g.bZ(a);g.C(this,e);g.$O(a,e.element,4);e=new g.zM({G:"div",L:"ytp-left-controls"});g.C(this,e);e.da(this.W);f=new g.qZ(a,b,!1);g.C(this,f);if(a.T().ca("html5_ux_control_flexbox_killswitch"))f.da(e.element);else{var h=new g.V({G:"span"});g.C(this,h);f.da(h.element);h.da(e.element)}c.Y||(f=new g.nZ(a,b),g.C(this,f),a.T().ca("html5_ux_control_flexbox_killswitch")?f.da(e.element):(h=new g.V({G:"span"}),g.C(this,h),f.da(h.element),h.da(e.element)));
f=new g.qZ(a,b,!0);g.C(this,f);a.T().ca("html5_ux_control_flexbox_killswitch")?f.da(e.element):(h=new g.V({G:"span"}),g.C(this,h),f.da(h.element),h.da(e.element));f=new g.V({G:"span",L:"ytp-volume-area"});g.C(this,f);f.da(e.element);if(!c.Ma&&(this.muteButton=new lZ(a,b),g.C(this,this.muteButton),this.muteButton.da(f.element),c.W)){var l=new h_(a,b,this.C.element);g.C(this,l);l.da(f.element);f=new g.Vr(f.element);g.C(this,f);f.subscribe("hoverstart",function(){Hxa(l,!0)});
f=new g.Vr(e.element);g.C(this,f);f.subscribe("hoverend",function(){Hxa(l,!1)})}g.C(this,this.uh);
this.uh.da(e.element);f=new g.zM({G:"div",L:"ytp-right-controls"});g.C(this,f);this.N=new aZ(a,b,this.Lc,e.element,f.element);g.C(this,this.N);a.T().ca("html5_ux_control_flexbox_killswitch")?this.N.da(this.W):this.N.da(e.element);f.da(this.W);a.T().kb&&g.R(c.experiments,"web_player_move_autonav_toggle")&&(e=new YY(a,b),g.C(this,e),e.da(f.element));g.R(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&dC(c)&&(this.P=new eZ(a,b),g.C(this,this.P),this.P.da(f.element));e=new d_(a,b);
g.C(this,e);e.da(f.element);e=new GZ(a,b,this.u);g.C(this,e);Gxa(this.u,e);e.da(f.element);var m=new iZ(a);g.C(this,m);g.$O(a,m.element,5);m.subscribe("show",function(n){b.Vk(m,n)});
e=new hZ(a,b,m);g.C(this,e);e.da(f.element);e=a.getVideoData();if(c.ti||e.Hc&&"1"===c.controlsType)this.F=new g.i_(a,b),g.C(this,this.F),this.F.da(f.element);c.showMiniplayerButton&&!g.R(a.T().experiments,"web_player_pip")&&(this.D=new gZ(a,b),g.C(this,this.D),this.D.da(f.element));g.C(this,this.X);this.X.da(f.element);e.gy||this.X.hide();c.Pd||(e=new c_(a,b),g.C(this,e),e.da(f.element));c.ld&&(e=new FZ(a,b,this.u),g.C(this,e),e.da(f.element));c.ri&&(c=new XY(a,b),g.C(this,c),c.da(f.element));g.C(this,
this.ea);this.ea.da(f.element);g.C(this,this.qd);this.R(a,"appresize",this.Qa);this.R(a,"fullscreentoggled",this.Qa);this.R(a,"presentingplayerstatechange",this.Yw);this.R(a,"videodatachange",this.Oa);this.Qa()};
Ixa=function(a,b){g.fI(a.J).isCued()||b?b&&(a.Y.hide(),a.ba.hide(),a.muteButton&&a.muteButton.xb(!1),a.F&&a.F.xb(!1),a.D&&a.D.xb(!1),a.B.Gb().Fh(a.La())):b||(a.Y.show(),a.ba.show(),a.muteButton&&a.muteButton.xb(!0),a.F&&a.F.xb(!0),a.D&&a.D.xb(!0),a.jh())};
Jxa=function(a){var b=g.yG(a.J).getPlayerSize().width;return Math.max(b-2*l_(a),100)};
l_=function(a){var b=a.B.zd();return 12*(a.J.getVideoData().Hc?0:b?2:1)};
m_=function(a){var b=a.B.zd()?72:50;a=a.J.T();g.fC(a)&&(g.R(a.experiments,"web_player_bigger_buttons")?b=54:g.R(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
o_=function(a){g.V.call(this,{G:"div",L:n_.TITLE,S:[{G:"div",L:n_.TEXT,S:[{G:"a",ia:[n_.LINK,n_.SESSIONLINK],U:{target:a.T().F,href:"{{url}}","data-sessionlink":"feature=player-title"},Z:"{{title}}"},{G:"div",L:n_.SUBTEXT,S:[{G:"a",L:n_.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},Z:"{{channelName}}"}]}]}]});this.api=a;this.u=null;this.link=this.ga(n_.LINK);g.dX(a,this.element,this,23851);this.R(a,"videodatachange",this.na);this.R(a,"videoplayerreset",this.na);this.na()};
Kxa=function(a){a.ua("channelLink","");a.ua("channelName","")};
g.p_=function(a,b){g.V.call(this,{G:"div",S:[{G:"div",L:"ytp-tooltip-text-wrapper",S:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",Z:"{{title}}"},{G:"span",L:"ytp-tooltip-text",Z:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",S:[{G:"div",L:"ytp-tooltip-duration",Z:"{{duration}}"}]}]});var c=this;this.api=a;this.ka=b;this.ha=this.api.T();this.ea=this.ha.u;this.bg=this.ga("ytp-tooltip-bg");this.image=this.ga("ytp-tooltip-image");this.text=this.ga("ytp-tooltip-text");this.title=this.ga("ytp-tooltip-title");
this.W=function(e){(e=gp(e))&&g.Me(c.B,e)||c.ci()};
this.D=function(e){3===c.type&&c.ci();(e=e.currentTarget)&&1===e.nodeType&&!c.type&&(e.removeEventListener("mouseover",c.D),e.addEventListener("mouseout",c.W),e.removeEventListener("focus",c.D),e.addEventListener("blur",c.W),Lxa(c,e,2))};
this.X=function(){c.ci()};
this.B=null;this.I=new g.vN(this,100);this.type=null;this.P=!1;this.u=null;this.C=NaN;this.F="";this.ba=g.yG(this.api).getPlayerSize().width;this.K=!0;this.scale=1;this.Y=new g.H(this.tJ,250,this);this.fa=new g.H(this.ci,5E3,this);g.C(this,this.I);g.C(this,this.Y);g.C(this,this.fa);if(DB){var d=this.ga("ytp-tooltip-text");d.setAttribute("role","text");d.setAttribute("aria-live","polite")}};
dY=function(a){a.element.setAttribute("aria-live","polite")};
Oxa=function(a,b,c,d,e,f,h,l){if(!a.ea){3===a.type&&a.ci();1!==a.type&&(yn(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.I.show(),a.u&&a.u.dispose(),a.u=a.api.Rf(),a.u&&a.u.subscribe("l",a.LD,a));a.update({text:d,title:h?h:""});g.J(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.J(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=HE(a.u,160*a.scale),g.R(a.ha.experiments,"web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=ME(a.u,d,c));Mxa(a,d);if(l)switch(c=g.Eg(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"}Nxa(a,!!e,b,f)}};
g.q_=function(a){1===a.type&&a.ci()};
g.aY=function(a,b){if(a.ea)return g.Oa;b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.B===b&&a.ci();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
zY=function(a,b,c){if(a.type)if(3===a.type)a.ci();else return;Lxa(a,b,3,c)};
Lxa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new Cq("showElementTooltip called with non-element.",b.toString()),g.dr(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.B=b;a.P=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));yn(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.J(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.J(a.element,"ytp-tooltip-opaque",!!b);a.type=c;
a.api.addEventListener("appresize",a.X);a.K&&(j_(a),a.I.show(0))}};
j_=function(a){var b;a.B&&(b=a.B.getAttribute("data-tooltip-text"));if(b&&!a.P){var c=a.B;a.ua("text",b);var d=c.getAttribute("data-duration");a.update({title:a.F,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.An(a.element,["ytp-text-detail","ytp-preview"]);
g.J(a.element,"ytp-has-duration",!!d)}else a.ua("text",a.F),g.Cn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Nxa(a,!!b)};
Nxa=function(a,b,c,d){var e=Math.min(a.ba,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ka.mn(a.element,a.B,c,1===a.type,d);a.element.style.top?g.I(a.element,"ytp-bottom"):a.element.style.bottom&&g.I(a.element,"ytp-top");3===a.type&&a.fa.start()};
AY=function(a){a.B&&!a.P&&a.B.hasAttribute("title")&&(a.F=a.B.getAttribute("title")||"",a.B.removeAttribute("title"),a.K&&j_(a))};
Mxa=function(a,b){g.J(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;var c=160*a.scale,d=160*a.scale,e=a.u.Yk(a.C,c);Swa(a.bg,e,c,d,!0);a.Y.start()}};
Pxa=function(a){var b=a.B;3===a.type&&a.fa.stop();a.api.removeEventListener("appresize",a.X);a.P||b.setAttribute("title",a.F);a.F="";a.B=null};
g.r_=function(a,b){g.V.call(this,{G:"button",ia:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.GB(a.T()))},S:[{G:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",Z:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.B=this.u=!1;this.tooltip=b.Gb();dY(this.tooltip);g.dX(a,this.element,this,28665);this.ra("click",this.onClick,this);this.R(a,"videoplayerreset",this.wL);this.R(a,"appresize",
this.Ts);this.R(a,"videodatachange",this.Ts);this.R(a,"presentingplayerstatechange",this.Ts);this.Ts();var c=this.J.T(),d=g.Qs("yt-player-watch-later-pending");c.B&&d?(jx(),Qxa(this,d.videoId)):this.na(2);g.J(this.element,"ytp-show-watch-later-title",g.GB(c));g.dg(this,g.aY(b.Gb(),this.element))};
Rxa=function(a,b){g.sva(function(){jx({videoId:b});window.location.reload()},"wl_button",g.aC(a.J.T()))};
Qxa=function(a,b){if(!a.B)if(a.B=!0,a.na(3),g.R(a.J.T().experiments,"web_player_innertube_playlist_update")){var c=a.J.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=zG(a.J.app),e=a.u?function(){a.vE()}:function(){a.uE()};
wU(d,c).then(e,function(){a.B=!1;s_(a,"An error occurred. Please try again later.")})}else c=a.J.T(),(a.u?qva:pva)({videoIds:b,
Xc:c.Xc,pageId:c.pageId,onError:a.AP,onSuccess:a.u?a.vE:a.uE,context:a},c.K,!0)};
s_=function(a,b){a.na(4,b);a.J.T().C&&a.J.va("WATCH_LATER_ERROR",b)};
Sxa=function(a,b){var c=a.J.T();if(b!==a.icon){switch(b){case 3:var d=AX();break;case 1:d=QM();break;case 2:d={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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.R(c.experiments,"watch_later_iconchange_killswitch")?{G:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.ua("icon",d);
a.icon=b}};
t_=function(a){g.QX.call(this,a);var b=this;this.Pm=g.GB(this.api.T());this.av=48;this.bv=69;this.Jh=null;this.lk=[];this.Ib=new g.VX(this.api);this.er=new BY(this.api);this.Xf=new g.V({G:"div",L:"ytp-chrome-top"});this.fq=[];this.tooltip=new g.p_(this.api,this);this.backButton=this.ln=null;this.channelAvatar=new fY(this.api,this);this.title=new o_(this.api,this);this.mf=new g.zM({G:"div",L:"ytp-chrome-top-buttons"});this.Mf=null;this.Gh=new $X(this.api,this,this.Xf.element);this.overflowButton=this.Ff=
null;this.Re="1"===this.api.T().controlsType?new k_(this.api,this,this.xc):null;this.contextMenu=new g.xY(this.api,this,this.Ib);this.Mu=!1;this.wr=new g.V({G:"div",U:{tabindex:"0"}});this.vr=new g.V({G:"div",U:{tabindex:"0"}});this.Cp=null;this.by=this.Wq=!1;var c=g.yG(a),d=a.T(),e=a.getVideoData();this.Pm&&(g.I(a.getRootNode(),"ytp-embed"),g.I(a.getRootNode(),"ytp-embed-playlist"),this.av=60,this.bv=89);this.jg=e&&e.jg;g.C(this,this.Ib);g.$O(a,this.Ib.element,4);g.C(this,this.er);g.$O(a,this.er.element,
4);e=new g.V({G:"div",L:"ytp-gradient-top"});g.C(this,e);g.$O(a,e.element,1);this.vy=new g.vN(e,250,!0,100);g.C(this,this.vy);g.C(this,this.Xf);g.$O(a,this.Xf.element,1);this.uy=new g.vN(this.Xf,250,!0,100);g.C(this,this.uy);g.C(this,this.tooltip);g.$O(a,this.tooltip.element,4);var f=new LY(a);g.C(this,f);g.$O(a,f.element,5);f.subscribe("show",function(l){b.Vk(f,l)});
this.fq.push(f);this.ln=new MY(a,this,f);g.C(this,this.ln);d.showBackButton&&(this.backButton=new UX(a),g.C(this,this.backButton),this.backButton.da(this.Xf.element));this.Pm||this.ln.da(this.Xf.element);this.channelAvatar.da(this.Xf.element);g.C(this,this.channelAvatar);g.C(this,this.title);this.title.da(this.Xf.element);g.C(this,this.mf);this.mf.da(this.Xf.element);this.Mf=new g.r_(a,this);g.C(this,this.Mf);this.Mf.da(this.mf.element);var h=new g.RY(a,this);g.C(this,h);g.$O(a,h.element,5);h.subscribe("show",
function(l){b.Vk(h,l)});
this.fq.push(h);this.shareButton=new g.QY(a,this,h);g.C(this,this.shareButton);this.shareButton.da(this.mf.element);this.Ii=new yY(a,this);g.C(this,this.Ii);this.Ii.da(this.mf.element);d.Dk&&(e=new WY(a),g.C(this,e),g.$O(a,e.element,4));this.Pm&&this.ln.da(this.mf.element);g.C(this,this.Gh);this.Gh.da(this.mf.element);e=new YX(a,this,this.Gh);g.C(this,e);e.da(this.mf.element);this.Ff=new IY(a,this);g.C(this,this.Ff);g.$O(a,this.Ff.element,5);this.Ff.subscribe("show",function(){b.Vk(b.Ff,b.Ff.Me())});
this.fq.push(this.Ff);this.overflowButton=new HY(a,this,this.Ff);g.C(this,this.overflowButton);this.overflowButton.da(this.mf.element);this.Re&&g.C(this,this.Re);"3"===d.controlsType&&(e=new PY(a,this),g.C(this,e),g.$O(a,e.element,8));g.C(this,this.contextMenu);this.contextMenu.subscribe("show",this.gG,this);e=new IO(a,new ZO(a));g.C(this,e);g.$O(a,e.element,4);this.wr.ra("focus",this.dI,this);g.C(this,this.wr);this.vr.ra("focus",this.eI,this);g.C(this,this.vr);(this.aj=d.Vc?null:new g.EY(a,c,this.contextMenu,
this.xc,this.Ib,this.er,function(){return b.Ni()}))&&g.C(this,this.aj);
this.Pm||(this.vF=new UY(this.api,this),g.C(this,this.vF),g.$O(a,this.vF.element,4));this.kk.push(this.Ib.element);this.R(a,"fullscreentoggled",this.jj);this.R(a,"offlineslatestatechange",this.YN,this);this.R(a,"cardstatechange",this.ag,this)};
Txa=function(a){var b=a.api.T(),c=g.T(g.fI(a.api),128);return b.B&&c&&!a.api.isFullscreen()};
u_=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==tg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=u_(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};
g.v_=function(a){g.vS.call(this,a);this.chrome=null;this.load()};
Uxa=function(){this.B=200;this.u=12};
Vxa=function(a){var b=new Uxa;b.B=g.Q(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.u=g.Q(a.experiments,"html5_gapless_max_played_ranges");return b};
Wxa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.Ha;if(jU(b.K)>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.u&&((b=b.B)&&b.isView()&&(b=b.u),b&&b.dl().length>a.u&&g.sF(e)))return"played-ranges";if(!e.Ha)return null;if(!e.Ha.sc()||!c.sc())return"non-dash";if(e.Ha.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.sF(f)&&g.sF(e))return"content-protection";
a=c.u[0].audio;e=e.Ha.u[0].audio;return a.sampleRate===e.sampleRate||g.ZA?(a.u||2)!==(e.u||2)?"channel-count":null:"sample-rate"};
x_=function(a,b,c,d){g.B.call(this);var e=this;this.policy=a;this.u=b;this.B=c;this.D=this.C=null;this.I=-1;this.K=!1;this.F=new Yv;this.Se=d-1E3*b.fc();this.F.then(void 0,function(){});
this.timeout=new g.H(function(){w_(e,"timeout")},1E4);
g.C(this,this.timeout);this.N=isFinite(d);this.status={status:0,error:null}};
Zxa=function(a){if(a.B.getVideoData().Ha){tW(a.B,a.D);y_(a,3);Xxa(a);var b=Yxa(a),c=b.uF;b=b.uQ;c.subscribe("updateend",a.gn,a);b.subscribe("updateend",a.gn,a);a.gn(c);a.gn(b)}};
Xxa=function(a){a.u.unsubscribe("internalvideodatachange",a.Ik,a);a.B.unsubscribe("internalvideodatachange",a.Ik,a);a.u.unsubscribe("mediasourceattached",a.Ik,a);a.B.unsubscribe("statechange",a.Tb,a)};
$xa=function(a,b,c,d){return new g.JS(a.isView()?a.u:a,b,c,d)};
y_=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.F.resolve(void 0))};
w_=function(a,b){if(!a.la()&&!a.isFinished()){var c=4<=a.status.status&&"player-reload-after-handoff"!==b;a.status={status:Infinity,error:b};if(a.u&&a.B){var d=a.B.getVideoData().clientPlaybackNonce;a.u.qb("gaplessError","cpn."+d+";msg."+b);d=a.u;d.u.Wh=!1;c&&PV(d);d.D&&(c=d.D,c.u.ba=!1,c.C&&bE(c))}a.F.reject(void 0);a.dispose()}};
aya=function(a){var b=a.u.B;b=b.isView()?b.B:0;var c=a.u.getVideoData().isLivePlayback?Infinity:wW(a.u,!0);c=Math.min(a.Se/1E3,c)+b;var d=a.N?100:0;a=c-jU(a.B.K)+d;return{PH:b,uD:a,xA:c,tD:Infinity}};
Yxa=function(a){return{uF:a.C.u.u,uQ:a.C.B.u}};
z_=function(a){g.B.call(this);var b=this;this.api=a;this.F=this.u=this.B=null;this.K=!1;this.D=null;this.N=Vxa(this.api.T());this.C=null;this.I=function(){g.um(function(){bya(b)})}};
cya=function(a,b,c,d){d=void 0===d?0:d;!a.B||A_(a);a.D=new Yv;a.B=b;var e=c,f=a.api.Qb(),h=f.getVideoData().isLivePlayback?Infinity:1E3*wW(f,!0);e>h&&(e=h-a.N.B,a.K=!0);f.getCurrentTime()>=e/1E3?a.I():(a.u=f,f=e,e=a.u,a.api.addEventListener(g.rD("vqueued"),a.I),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.F=new g.oD(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.F));f=d/=1E3;e=b.getVideoData().ma;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/1E3,wW(a.u,
!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,wW(b)+l));f=Kga(e,h)||d;f!==d&&a.B.qb("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.B;d.getVideoData().nn=!0;d.getVideoData().Wh=!0;VV(d,!0);e="";a.u&&(e=g.rT(a.u.I.provider),f=a.u.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.qb("queued",e);0!==b&&d.seekTo(b+.01,{Go:!0,ty:3});a.C=new x_(a.N,a.api.Qb(),a.B,c);c=a.C;Infinity!==c.status.status&&(y_(c,1),c.u.subscribe("internalvideodatachange",c.Ik,c),c.B.subscribe("internalvideodatachange",
c.Ik,c),c.u.subscribe("mediasourceattached",c.Ik,c),c.B.subscribe("statechange",c.Tb,c),c.u.subscribe("newelementrequired",c.UD,c),c.Ik());return a.D};
bya=function(a){g.Ue(a,function c(){var d=this,e,f,h,l;return g.Aa(c,function(m){switch(m.u){case 1:e=d;if(d.la()||!d.D||!d.B)return m["return"]();d.K&&MV(d.api.Qb(),!0,!1);f=null;if(!d.C){m.Wd(2);break}sa(m,3);return g.ra(m,d.C.NA(),5);case 5:ta(m,2);break;case 3:f=h=ua(m);case 2:return dya(d.api.app,d.B),cx("vqsp",function(){var n=e.B.getPlayerType();g.fM(e.api.app,n)}),cx("vqpv",function(){e.api.playVideo()}),f&&eva(d.B,f.message),l=d.D,A_(d),m["return"](l.resolve(void 0))}})})};
A_=function(a){if(a.u){var b=a.u;a.api.removeEventListener(g.rD("vqueued"),a.I);b.removeCueRange(a.F);a.u=null;a.F=null}a.C&&(a.C.isFinished()||(b=a.C,Infinity!==b.status.status&&w_(b,"Canceled")),a.C=null);a.D=null;a.B=null;a.K=!1};
C_=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.X=b;this.u=c;this.N=new Map;this.C=new Map;this.B=[];this.P=NaN;this.I=this.F=null;this.K=new g.H(function(){B_(d,d.P)});
this.events=new g.Pr(this);this.W=this.isLiveNow=!0;this.D=new g.H(function(){eya(d)},5E3);
this.u.getPlayerType();Tua(this.u,this);g.C(this,this.K);g.C(this,this.events);g.C(this,this.D);this.events.R(this.api,g.rD("serverstitchedcuerange"),this.PK);this.events.R(this.api,g.sD("serverstitchedcuerange"),this.QK)};
iya=function(a,b,c,d,e){var f=a.u;e=void 0===e?d+c:e;if(d>e)return D_(a,"Invalid playback enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.qc();if(d<h)return D_(a,"Invalid playback enterTimeMs="+d+" is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return D_(a,"Invalid playback parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.B),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Wb&&d<m.Dc||e<=m.Dc&&e>m.Wb)return D_(a,
"Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} overlaps existing ChildPlayback "+E_(m))),"";if(e===m.Wb)return D_(a,"Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} added after existing ChildPlayback "+E_(m))),"";d===m.Dc&&(h=m)}l="childplayback_"+fya++;m={Zc:F_(c,!0),Se:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.R(a.X.experiments,
"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b.cpn||(b.cpn=a.Hv());b={Ub:l,playerVars:b,playerType:2,durationMs:c,Wb:d,Dc:e,Of:m,playerResponse:n,cpn:b.cpn};a.B=a.B.concat(b).sort(function(r,t){return r.Wb-t.Wb});
h?(b.zi=h.zi,gya(h,{Zc:F_(h.durationMs,!0),Se:Infinity,target:b})):(b.zi=b.cpn,d={Zc:F_(d,!1),Se:d,target:b},a.N.set(d.Zc,d),f.addCueRange(d.Zc));d=hya(b.Wb,b.Wb+b.durationMs);a.C.set(d,b);f.addCueRange(d);a.W&&a.D.isActive()&&(a.D.stop(),a.W=!1,eya(a));return l};
F_=function(a,b){return new g.oD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"serverstitchedtransitioncuerange",priority:7})};
hya=function(a,b){return new g.oD(a,b,{namespace:"serverstitchedcuerange",priority:7})};
gya=function(a,b){a.Of=b};
G_=function(a,b){for(var c=0,d=g.q(a.B),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Wb/1E3+c,h=f+e.durationMs/1E3;if(f>b+1)break;if(h>b)return{Fi:e,El:b-c};c=h-e.Dc/1E3}return{Fi:null,El:b-c}};
B_=function(a,b){var c=a.I||a.api.Qb().getPlayerState();H_(a,!0);var d=G_(a,b).El;a.u.seekTo(d);d=a.api.Qb();var e=d.getPlayerState();g.RK(c)&&!g.RK(e)?d.playVideo():g.T(c,4)&&!g.T(e,4)&&d.pauseVideo()};
H_=function(a,b){a.P=NaN;a.K.stop();a.F&&b&&rW(a.F);a.I=null;a.F=null};
gX=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.N),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Se>=d&&l.target&&l.target.Dc<=e&&(a.u.removeCueRange(h),a.N["delete"](h))}d=b;e=c;f=[];h=g.q(a.B);for(l=h.next();!l.done;l=h.next())l=l.value,(l.Wb<d||l.Dc>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.u.removeCueRange(h),a.C["delete"](h));d=G_(a,b/1E3);b=d.Fi;
d=d.El;b&&(d=1E3*d-b.Wb,jya(a,b,d,b.Wb+d));(b=G_(a,c/1E3).Fi)&&D_(a,"Invalid clearEndTimeMs="+c+" that falls during "+E_(b)+".Child playbacks can only have duration updated not their start.")};
jya=function(a,b,c,d){b.durationMs=c;b.Dc=d;c={Zc:F_(c,!0),Se:c,target:null};b.Of=c;c=null;d=g.q(a.C);for(var e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value.Ub===b.Ub&&(c=f)}c&&(a.u.removeCueRange(c),c=hya(b.Wb,b.Wb+b.durationMs),a.C.set(c,b),a.u.addCueRange(c))};
E_=function(a){return"playback={timelinePlaybackId="+a.Ub+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.Wb+" parentReturnTimeMs="+a.Dc+"}"};
Bla=function(a,b,c,d){var e=null;0>=b?a.B.length&&(e=a.B[0]):(e=0===a.u.getStreamTimeOffset()?a.u.fc():a.u.getStreamTimeOffset(),e=G_(a,b+e).Fi);var f=Number(d.split(";")[0]);if(e&&e.playerResponse&&e.playerResponse.streamingData&&(b=e.playerResponse.streamingData.adaptiveFormats)){var h=b.find(function(l){return l.itag===f});
if(h&&h.url)return b=a.u.getVideoData(),d=b.ma.u[d].index.pB(c-1),c=h.url,d&&d.u&&(c=c.concat("&daistate="+d.u)),(d=b.clientPlaybackNonce)&&(c=c.concat("&cpn="+d)),e.zi&&(a=kya(a,e.zi),0<a.length&&(c=c.concat("&acpns="+a.join(",")))),c}return null};
D_=function(a,b){a.u.qb("timelineerror",b)};
kya=function(a,b){for(var c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.zi===b&&e.cpn&&c.push(e.cpn);return c};
eya=function(a){B_(a,Infinity);a=a.u;if(a.D){var b=a.D;var c=b.Y;if(c=c.u?c.u.eb:NaN)b.D&&(b.D.P=c),b.B&&(b.B.P=c),b.ka=4}a.playVideo()};
I_=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.F=b;this.B=c;this.I=new Map;this.u=[];this.C=this.N=null;this.X=NaN;this.K=this.D=null;this.W=new g.H(function(){lya(d,d.X)});
this.P=[];this.Y=new g.H(function(){var e=d.P.pop();if(e){var f=e.Ub,h=e.playerVars;e=e.playerType;h.prefer_gapless=!0;d.api.preloadVideoByPlayerVars(h,e,NaN,"",f);d.P.length&&d.Y.ub(4500)}});
this.events=new g.Pr(this);c.getPlayerType();g.C(this,this.W);g.C(this,this.Y);g.C(this,this.events);this.events.R(this.api,g.rD("childplayback"),this.RK);this.events.R(this.api,"onQueuedVideoLoaded",this.vO);this.events.R(this.api,"presentingplayerstatechange",this.Cf)};
pya=function(a,b,c,d,e){var f=a.B;e=void 0===e?d+c:e;if(d>e)return J_(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.qc();if(d<h)return J_(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return J_(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.u),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Wb&&d<m.Dc)return J_(a,
"e.overlappingEnter"),"";if(e<=m.Dc&&e>m.Wb)return J_(a,"e.overlappingReturn"),"";if(e===m.Wb)return J_(a,"e.outOfOrder"),"";d===m.Dc&&(h=m)}l="childplayback_"+mya++;m={Zc:K_(c,!0),Se:Infinity,target:null};var n={Ub:l,playerVars:b,playerType:2,durationMs:c,Wb:d,Dc:e,Of:m};a.u=a.u.concat(n).sort(function(t,w){return t.Wb-w.Wb});
h?nya(a,h,{Zc:K_(h.durationMs,!0),Se:a.F.ca("timeline_manager_transition_killswitch")?Infinity:h.Of.Se,target:n}):(b={Zc:K_(d,!1),Se:d,target:n},a.I.set(b.Zc,b),f.addCueRange(b.Zc));b=g.R(a.F.experiments,"html5_gapless_preloading");if(a.B===a.api.Qb()&&(f=1E3*f.getCurrentTime(),f>=n.Wb&&f<n.Dc)){var p=a.api.Qb().getPlayerState(),r=f-n.Wb;om(function(){oya(a,n,r/1E3,p)});
b=!1}b&&(a.P.unshift(n),a.Y.ub(0));return l};
K_=function(a,b){return new g.oD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
rya=function(a,b,c,d){a.C=d;qya(a.api.app,a.B,c,void 0===b?0:b)};
sya=function(a,b,c,d){a.C=d;d=b.Ub;var e=b.playerVars,f=b.playerType;a.N=b;a.api.enqueueVideoByPlayerVars(e,f,c,d)};
nya=function(a,b,c){var d=b.Of;b.Of=c;L_(a,b)&&(c=a.api.Qb(),d.Zc===a.C&&M_(a),c.removeCueRange(d.Zc),c.addCueRange(b.Of.Zc))};
M_=function(a){a.N=null;a.C=null;!a.api.app.Ra.B||a.api.clearQueue()};
tya=function(a,b){L_(a,b)||J_(a,"e.childPlaybackIsNotPresenting");return b.Dc===b.Wb+b.durationMs?b.Wb+1E3*a.api.Qb().getCurrentTime():b.Dc};
N_=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Wb/1E3+c,h=f+e.durationMs/1E3;if(f>b)break;if(h>b)return{Fi:e,El:b-f};c=h-e.Dc/1E3}return{Fi:null,El:b-c}};
lya=function(a,b){var c=a.K||a.api.Qb().getPlayerState();O_(a,!0);var d=g.R(a.F.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:kU(a.B.K),e=N_(a,d);d=e.Fi;e=e.El;var f=d&&!L_(a,d)||!d&&a.B!==a.api.Qb(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||M_(a);d?oya(a,d,e,c):P_(a,e,c)};
P_=function(a,b,c){var d=a.B;if(d!==a.api.Qb()){var e=d.getPlayerType();g.fM(a.api.app,e)}d.seekTo(b);uya(a,c)};
oya=function(a,b,c,d){var e=L_(a,b);if(!e){g.fM(a.api.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.PE(a.F,b.playerVars);f.Ub=b.Ub;Q_(a.api.app,f,b.playerType,void 0)}f=a.api.Qb();e||f.addCueRange(b.Of.Zc);f.seekTo(c);uya(a,d)};
uya=function(a,b){var c=a.api.Qb(),d=c.getPlayerState();g.RK(b)&&!g.RK(d)?c.playVideo():g.T(b,4)&&!g.T(d,4)&&c.pauseVideo()};
O_=function(a,b){a.X=NaN;a.W.stop();a.D&&b&&rW(a.D);a.K=null;a.D=null};
L_=function(a,b){var c=a.api.Qb();return!!c&&c.getVideoData().Ub===b.Ub};
vya=function(a){var b=a.u.find(function(d){return L_(a,d)});
if(b){M_(a);var c=new g.LK(8);b=tya(a,b)/1E3;P_(a,b,c)}};
hX=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.q(a.I),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.Se>=d&&l.target&&l.target.Dc<=e&&(a.B.removeCueRange(h),a.I["delete"](h))}d=b;e=c;f=[];h=g.q(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Wb>=d&&l.Dc<=e){var m=a;m.N===l&&M_(m);L_(m,l)&&g.jM(m.api,l.playerType)}else f.push(l);a.u=f;d=N_(a,b/1E3);b=d.Fi;d=d.El;b&&(d*=1E3,wya(a,b,d,b.Dc===b.Wb+b.durationMs?b.Wb+d:b.Dc));
(b=N_(a,c/1E3).Fi)&&J_(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Ub+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Wb+" parentReturnTimeMs="+b.Dc+"}.Child playbacks can only have duration updated not their start."))};
wya=function(a,b,c,d){b.durationMs=c;b.Dc=d;d={Zc:K_(c,!0),Se:c,target:null};nya(a,b,d);L_(a,b)&&1E3*a.api.Qb().getCurrentTime()>c&&(b=tya(a,b)/1E3,c=a.api.Qb().getPlayerState(),P_(a,b,c))};
J_=function(a,b){a.B.qb("timelineerror",b)};
yya=function(a){a&&"web"!==a&&xya.includes(a)};
T_=function(a,b){g.B.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.u=new g.H(function(){R_(c);S_(c)});
g.C(this,this.u)};
R_=function(a){var b=(0,g.O)();a.data.forEach(function(c){c.expire<b&&U_(a,c,!0)});
a.data=g.Ke(a.data,function(c){return!(c.expire<b)})};
U_=function(a,b,c){c&&a.B&&a.B(b.value)};
S_=function(a){a.u.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)&&a.u.start(Math.max(b-g.A(),0))};
X_=function(a,b,c){var d=this;this.api=a;this.player=b;this.player.subscribe("localmediachange",this.u,this);this.B=c;Dfa().then(function(){var e=fw(2);e=g.q(e);for(var f=e.next();!f.done;f=e.next())f=f.value,V_(d,f)||gw(f,3);W_(d)})};
Y_=function(a,b){var c=dw(b);if(1===c||0===c)return Promise.resolve();c=V_(a,b);c===a.player?(a.player.stopVideo(),c=a.player,c.D&&fE(c.D)):c&&(c.D&&fE(c.D),nF(c.getVideoData(),!1));return rw(b)};
V_=function(a,b){var c=a.api.Qb(),d=c?c.getVideoData():null;return c&&(null===d||void 0===d?0:MF(d))&&d.videoId===b?c:a.player.getVideoData().videoId===b?a.player:null};
Bya=function(a,b){gw(b,2);var c=zya(a,{videoId:b,download_media:!0,download_media_in_bg:!0,start:Infinity});c.subscribe("dataloaded",function(){return void Aya(a,c)});
a.player.oh(c,a.B);VV(a.player,!1)};
zya=function(a,b){return new g.PE(a.player.T(),b)};
W_=function(a){if(g.R(a.api.T().experiments,"hoffle_api"))0<fw(2).length||(b=fw(3),0<b.length&&Bya(a,b[0]));else{a=g.q(fw(3));for(var b=a.next();!b.done;b=a.next())rw(b.value)}};
Aya=function(a,b){if(g.R(a.api.T().experiments,"hoffle_api")){var c=b.getPlayerResponse();if(c&&c.videoDetails&&c.videoDetails.videoId){var d=c.videoDetails;c={videoId:c.videoDetails.videoId,title:d.title,lengthSeconds:d.lengthSeconds,thumbnail:d.thumbnail,viewCount:d.viewCount,author:d.author};Ffa(c.videoId,c)}}};
Cya=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+pu(a)+")":pu(a)};
Z_=function(a){g.B.call(this);var b=this;this.B=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){b.B=e[e.length-1].intersectionRatio},c):null)&&this.u.observe(a)};
Eya=function(a,b){if(g.ak())return null;var c=Dya();if(!c)return g.RW(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.RW(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.RW(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"===c.state){var d=function(e){"suspended"===c.state&&g.RK(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);$_=!1},null)};
$_||(a.addEventListener("presentingplayerstatechange",d),$_=!0)}return new OS(c,b)};
b0=function(a){g.V.call(this,{G:"div",ia:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},S:[{G:"div",L:g.a0.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.C=this.ga(g.a0.VIDEO_CONTAINER);this.B=new g.ig(0,0,0,0);this.u=null;this.K=new g.ig(0,0,0,0);this.X=this.fa=this.ba=NaN;this.F=this.ka=!1;this.W=NaN;this.Y=!1;this.I=null;this.dispatchEvent=function(){};
this.ea=function(){b.element.focus()};
this.P=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.fp("ytp-transparent");"0"===e.controlsType&&this.fp("ytp-hide-controls");e.ca("html5_ux_control_flexbox_killswitch")||g.I(this.element,"ytp-exp-bottom-control-flexbox");e.ca("html5_player_bottom_linear_gradient")&&g.I(this.element,"ytp-linear-gradient-bottom-experiment");e.ca("web_player_bigger_buttons")&&g.I(this.element,"ytp-exp-bigger-button");uma(this.element,Fya(a));dC(e)&&"blazer"!==e.playerStyle&&window.matchMedia&&(this.P="desktop-polymer"===e.playerStyle?
[{query:window.matchMedia("(max-width: 656px)"),size:new g.he(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.he(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.he(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 1000px)"),size:new g.he(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),
size:new g.he(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.he(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.he(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.he(640,360)}]);this.ha=e.useFastSizingOnWatchDefault;this.D=new g.he(NaN,NaN);Gya(this);this.R(a.B,"onMutedAutoplayChange",this.wp)};
Gya=function(a){function b(){a.u&&RH(a);c0(a)!==a.Y&&a.resize()}
function c(h,l){a.updateVideoData(l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.K=new g.ig(0,0,0,0);a.B=new g.ig(0,0,0,0)}
var f=a.app.B;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.dg(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
Hya=function(a){a.u&&(a.u.removeEventListener("focus",a.ea),g.Je(a.u),a.u=null)};
Iya=function(a){var b=g.R(a.app.T().experiments,"html5_aspect_from_adaptive_format"),c=g.Z(a.app);if(c=c?c.getVideoData():null){if(c.Yi()||c.Zi()||c.Ti())return 16/9;if(b&&XE(c)&&c.Ha.sc())return b=c.Ha.videoInfos[0].video,d0(b.width,b.height)}return(a=a.u)?d0(a.videoWidth,a.videoHeight):b?16/9:NaN};
Jya=function(a,b,c,d){var e=c,f=d0(b.width,b.height);a.ka?e=c<f?Infinity:0:isNaN(a.X)?isNaN(a.fa)||(e=a.fa):e=a.X;isFinite(e)||(e=Math.max(c,f));var h;e>f?h={width:b.width,height:b.width/e,aspectRatio:e}:e<f?h={width:b.height*e,height:b.height,aspectRatio:e}:h={width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?h.width=h.height*c:c<e&&(h.height=h.width/c),h.aspectRatio=c);return h};
d0=function(a,b){return 1>Math.abs(e0*b-a)||1>Math.abs(e0/a-b)?e0:a/b};
c0=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.Z(a.app);if(!b||bW(b))return!1;var c=g.fI(a.app.B);a=!g.T(c,2)||!g.R(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Wh;b=g.T(c,1024);return c&&a&&!b&&!c.isCued()};
RH=function(a){var b="3"===a.app.T().controlsType&&!a.F&&c0(a)&&!a.app.Za||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.ea):g.R(a.app.T().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.ea)};
Kya=function(a){var b=a.getPlayerSize(),c=1,d=!1,e=Jya(a,b,a.getVideoAspectRatio()),f=ik();if(c0(a)){var h=Iya(a);var l=isNaN(h)||g.Vq||bD&&g.mC;jk&&!g.$d(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.ig(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.ig((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.mC&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));f&&(a.u.style.display="");a.Y=!0}else l=-b.height,jk?l*=window.devicePixelRatio:g.lC&&(l-=window.screen.height),
l=new g.ig(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.Y=!1;jg(a.K,l)||(a.K=l,g.WB(a.app.T())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Dg(a.u,new g.he(l.width,l.height)),g.wg(a.u,new g.fe(l.left,l.top)),d=!0);b=new g.ig((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);jg(a.B,b)||(a.B=b,d=!0);g.F(a.u,"transform",1===c?"":"scaleX("+c+")");return d};
Lya=function(){this.csn=g.ks();this.elements=new Set;this.C=new Set;this.u=new Set;this.B=new Set};
Kva=function(a,b,c,d,e){e=void 0===e?!1:e;a.elements.has(b);a.elements.add(b);d=Vea(d);b.visualElement=d;var f=g.ks(),h=g.is();f&&h&&g.Js(f,h,d);g.dg(c,function(){Mya(a,b)});
e&&a.B.add(b)};
Lva=function(a,b,c,d){d=void 0===d?!1:d;a.elements.has(b);a.elements.add(b);g.dg(c,function(){Mya(a,b)});
d&&a.B.add(b)};
Mya=function(a,b){a.elements.has(b);a.elements["delete"](b);a.C["delete"](b);a.u["delete"](b);a.B["delete"](b)};
Nya=function(a){if(a.csn!==g.ks())if("UNDEFINED_CSN"===a.csn)a.csn=g.ks();else{var b=g.ks(),c=g.is();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.Js(b,c,e)}if(b)for(a=g.q(a.u),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Cs(b,c,void 0)}};
f0=function(a,b,c,d,e){g.V.call(this,{G:"div",L:"ytp-horizonchart"});this.I=b;this.sampleCount=c;this.D=d;this.F=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.u=Math.round(a/c);this.element.style.width=this.u*this.sampleCount+"px";this.element.style.height=this.I+"em"};
g0=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Fe("CANVAS"),a.B=c.getContext("2d")}catch(e){}if(a.B){var d=a.u*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.u*=4,c=0;c<a.sampleCount;c++)d=g.Fe("SPAN"),d.style.width=a.u+"px",d.style.left=a.u*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));c=g.q(b);for(d=c.next();!d.done;d=c.next())a.setValue(a.index,d.value),a.index=(a.index+1)%a.sampleCount;c=a.index;a.B?a.B.clearRect(c*a.u,0,a.u,a.heightPx):(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
h0=function(a){var b=null;b={G:"button",ia:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},Z:"[x]"};g.V.call(this,{G:"div",L:"html5-video-info-panel",S:[b,{G:"div",L:"html5-video-info-panel-content",S:[{G:"div",S:[{G:"div",Z:"Video ID / sCPN"},{G:"span",Z:"{{video_id_and_cpn}}"}]},{G:"div",S:[{G:"div",Z:"Viewport / Frames"},{G:"span",Z:"{{dims_and_frames}}"}]},{G:"div",S:[{G:"div",Z:"Current / Optimal Res"},{G:"span",Z:"{{resolution}}"}]},{G:"div",S:[{G:"div",Z:"Volume / Normalized"},
{G:"span",Z:"{{volume}}"}]},{G:"div",S:[{G:"div",Z:"Codecs"},{G:"span",Z:"{{codecs}}"}]},{G:"div",U:{style:"{{shader_info_style}}"},S:[{G:"div",Z:"Shader Info"},{G:"span",Z:"{{shader_info}}"}]},{G:"div",U:{style:"{{color_style}}"},S:[{G:"div",Z:"Color"},{G:"span",Z:"{{color}}"}]},{G:"div",U:{style:"{{drm_style}}"},S:[{G:"div",Z:"Protected"},{G:"span",Z:"{{drm}}"}]},{G:"div",U:{style:"{{bandwidth_style}}"},S:[{G:"div",Z:"Connection Speed"},{G:"span",S:[{G:"span",Z:"{{bandwidth_chart}}"},{G:"span",
Z:"{{bandwidth_kbps}}"}]}]},{G:"div",U:{style:"{{network_activity_style}}"},S:[{G:"div",Z:"Network Activity"},{G:"span",S:[{G:"span",Z:"{{network_activity_chart}}"},{G:"span",Z:"{{network_activity_bytes}}"}]}]},{G:"div",S:[{G:"div",Z:"Buffer Health"},{G:"span",S:[{G:"span",Z:"{{buffer_health_chart}}"},{G:"span",Z:"{{buffer_health_seconds}}"}]}]},{G:"div",U:{style:"{{live_latency_style}}"},S:[{G:"div",Z:"Live Latency"},{G:"span",S:[{G:"span",Z:"{{live_latency_chart}}"},{G:"span",Z:"{{live_latency_secs}}"}]}]},
{G:"div",U:{style:"{{live_mode_style}}"},S:[{G:"div",Z:"Live Mode"},{G:"span",Z:"{{live_mode}}"}]},{G:"div",U:{style:"{{playback_categories_style}}"},S:[{G:"div",Z:"Playback Categories"},{G:"span",Z:"{{playback_categories}}"}]},{G:"div",S:[{G:"div",Z:"Mystery Text"},{G:"span",Z:"{{debug_info}}"}]},{G:"div",U:{style:"{{release_style}}"},S:[{G:"div",Z:"Player Release"},{G:"span",Z:"{{release_name}}"}]}]}]});b&&(b=this.ga("html5-video-info-panel-close"),this.R(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.u=new f0(300,1,150,b,c);g.C(this,this.u);this.ua("bandwidth_chart",this.u);this.C=new f0(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.C(this,this.C);this.ua("live_latency_chart",this.C);this.B=new f0(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.C(this,this.B);this.ua("buffer_health_chart",this.B);this.D=new f0(300,1,150,d,c);g.C(this,this.D);this.ua("network_activity_chart",this.D);this.delay=new g.H(this.na,
500,this);g.C(this,this.delay);this.F=a};
j0=function(a,b,c){g.B.call(this);var d=this;this.Za=this.X=!1;this.N=null;this.Nd={};this.Rb={};this.De=!1;this.Vc=null;this.ce=!1;this.Ia=!0;this.qf=this.kd=null;this.rf=!0;this.F=this.P=null;this.Mb=this.kb=!1;this.tf=this.Jb=this.I=this.playlist=null;this.Ma=void 0;this.Fa=0;this.ha=this.jb=this.ba=null;this.config=Tea(b||{});this.webPlayerContextConfig=c;qea();b=this.config.args||{};this.u=new ZB(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.C(this,this.u);Oya(this);this.uf=S(IB(this.u)&&
!0,b.enablesizebutton);this.jd=S(!1,b.player_wide);this.visibility=new nU;g.C(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.sR(this);g.C(this,this.events);this.ea=new g.Rn;g.C(this,this.ea);this.oa=new g.Rn;g.C(this,this.oa);this.ya=new Lya;this.B=new KW(this);g.C(this,this.B);this.template=new b0(this);g.C(this,this.template);this.fa=1;this.Y=this.u.uf?Pya():{volume:100,muted:this.u.mute};this.J=this.u.C?new JW(this,1):new EW(this,1);g.C(this,this.J);c={};this.ac=
(c.internalvideodatachange=this.pM,c.playbackready=this.rM,c.playbackstarted=this.sM,c.statechange=this.tM,c);this.D=Qya(this);this.ld=new g.sR(this);g.C(this,this.ld);this.K=new ST(this.u,this.D);this.C=Rya(this);c={};this.sf=(c.airplayactivechange=this.jM,c.airplayavailabilitychange=this.kM,c.beginseeking=this.DM,c.endseeking=this.fN,c.internalAbandon=this.nN,c.internalaudioformatchange=this.JJ,c.internalvideodatachange=this.Oa,c.internalvideoformatchange=this.NJ,c.liveviewshift=this.uN,c.playbackstalledatstart=
this.cP,c.progresssync=this.rO,c.onLoadProgress=this.vN,c.SEEK_COMPLETE=this.MJ,c.SEEK_TO=this.SO,c.onVideoProgress=this.zp,c.onLoadedMetadata=this.xN,c.onDompaused=this.cN,c.playbackready=this.gO,c.statechange=this.tE,c.connectionissue=this.RM,c.newelementrequired=this.VD,c.heartbeatparams=this.KJ,c.videoelementevent=this.uP,c.drmoutputrestricted=this.eN,c.requestmediasource=this.FO,c.signatureexpired=this.WO,c.localmediachange=this.LJ,c);this.xa=new g.sR(this);g.C(this,this.xa);c=10;g.VB(this.u)&&
(c=3);gC(this.u)&&(c=g.Q(this.u.experiments,"tvhtml5_unplugged_preload_cache_size"));this.wb=new T_(c,function(e){e!==g.Z(d,e.getPlayerType())&&(uA("prefetch"+e.getVideoData().videoId),e.dispose())});
g.C(this,this.wb);this.tc=this.Kc=-1;this.Ob=new g.H(this.template.resize,16,this.template);g.C(this,this.Ob);Sya(this);this.ka=new I_(this.B,this.u,this.C);this.Ra=new z_(this.B);g.C(this,this.Ra);yya(this.u.deviceParams.c);this.events.R(this.B,g.rD("appapi"),this.nM);this.events.R(this.B,g.sD("appapi"),this.oM);this.events.R(this.B,g.rD("appad"),this.yD);this.events.R(this.B,g.sD("appad"),this.yD);this.events.R(this.B,g.sD("applooprange"),this.Rx);this.events.R(this.B,"presentingplayerstatechange",
this.Cf);this.events.R(this.B,"resize",this.GO);this.template.da(qe(document,a));this.events.R(this.B,"offlineslatestatechange",this.XN);this.Pd=Tya(this,this.template.element);g.C(this,this.Pd);this.ca("hoffle_save")?this.N=new X_(this.B,i0(this,1),function(){return d.ke()}):this.ca("hoffle_cleanup")&&Afa()&&jw();
this.u.Ra&&(g.oX.ux=g.v_);Uya(this);this.K.tick("fs");Vya(this);this.W=null;this.u.Ra&&Yva(this.D);g.PB(this.D.J.T())&&nX(this.D,"music");g.GB(this.D.J.T())&&nX(this.D,"embed");this.ca("web_player_sentinel_is_uniplayer")||g.Eo(Error("Player flag missing: web_player_sentinel_is_uniplayer"));this.vf=Wya(this)};
Wya=function(a){function b(c){if(c.stack&&-1!==c.stack.indexOf("player"))(a.I||a.C).I.onError("player.exception",g.OA({n:c.name,m:c.message}))}
Co.push(b);return function(){var c=Co.indexOf(b);-1!==c&&Co.splice(c,1)}};
Rya=function(a){var b=new OV(a.u,1,a.K,a.template,function(c,d){for(var e=[],f=1;f<arguments.length;++f)e[f-1]=arguments[f];return a.ea.V.apply(a.ea,[c].concat(g.la(e)))},function(){return a.B.getVisibilityState()},a.visibility);
b.setPlaybackRate(a.u.B?1:Xya(a,Number(g.Qs("yt-player-playback-rate"))||1));Sr(b,a.ac,a);return b};
zG=function(a){if(!a.Vc){var b={Vq:{subscribeEndpoint:yU,unsubscribeEndpoint:zU,playlistEditEndpoint:BU,webPlayerShareEntityServiceEndpoint:BW,modifyChannelNotificationPreferenceEndpoint:AU,feedbackEndpoint:AW}},c=Zta(),d=Aq();tU.u=new tU(b,c,d,g.N,void 0);a.Vc=tU.u}return a.Vc};
Qya=function(a){var b="",c=Fya(a);0===c.indexOf("//")&&(c=a.u.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.Eo(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new kX(a.B,b);Yya(a,b);return b};
Yya=function(a,b){var c={};c=(c.destroyed=function(){a.u.C&&a.I?a.B.va("onApiChange",a.I.getPlayerType()):a.B.va("onApiChange")},c);
b.C=c};
Zya=function(a,b){var c=a.isVideoInfoVisible();a.ba||(a.ba=new h0(a.B),g.C(a,a.ba),g.$O(a.B,a.ba.element,4));g.CM(a.ba,b);k0(a)&&c!==b&&g.PW(a.D).ry();c=a.I;b&&c&&c.qb("sfn","1",!0)};
m0=function(a){var b=l0.getTag(!0,!a.u.deviceHasDisplay);a.F=new g.IS(b);g.C(a,a.F);a.I&&iW(a.I,a.F);try{a.u.Ma?(a.jb&&a.events.Bb(a.jb),a.jb=a.events.R(a.F,"volumechange",a.MN)):(a.F.un(a.Y.muted),a.F.setVolume(a.Y.volume/100))}catch(d){var c="setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_"));a.C.Id("html5.missingapi","UNSUPPORTED_DEVICE",c,void 0);return}g.Rr(a.xa);$ya(a);c=a.template;c.u=b;c.F=!1;c.u.parentNode||g.Ie(c.C,c.u,0);c.K=new g.ig(0,0,0,0);Kya(c);RH(c);g.I(c.u,"video-stream");
g.I(c.u,g.a0.MAIN_VIDEO);b=c.app.T();b.Nd&&c.u.setAttribute("data-no-fullscreen","true");b.Dh&&(c.u.setAttribute("webkit-playsinline",""),c.u.setAttribute("playsinline",""));b.Hq&&c.u&&c.R(c.u,"click",c.u.play,c.u);try{a.F.Xm()}catch(d){c="activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")),a.C.Id("html5.missingapi","UNSUPPORTED_DEVICE",c,void 0)}};
n0=function(a){if(a.F){a.jb&&(a.events.Bb(a.jb),a.jb=null);g.Rr(a.xa);a.I&&hW(a.I,!0);Hya(a.template);a.F.hk()&&l0.releaseTag(a.F.La());if(!a.ca("html5_unset_src_on_remove_killswitch"))try{a.F.Et()}catch(b){}a.F=null}};
g.fM=function(a,b){var c=g.Z(a,b);c||(c=i0(a,b),o0(a,c));fX(a,c)};
fX=function(a,b){if(a.I!==b){b.getPlayerType();b.getVideoData();var c=null;a.I&&(c=a.I.getPlayerState(),pX(a.D,3),$W(a,"cuerangesremoved",zD(a.I.fa)||[]),a.Ra&&!b.isGapless()&&a.I.isGapless()&&a.F&&a.F.stopVideo(),Mva(a));o0(a,b);a.I=b;a.F&&iW(b,a.F);Sr(b,a.sf,a);a.Oa("newdata",b,b.getVideoData());c&&!g.QK(c,b.getPlayerState())&&a.tE(new g.nI(b.getPlayerState(),c));b.ka.isFinished()&&a.Oa("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().Ka)&&c.video)&&a.B.va("onPlaybackQualityChange",c.quality);
$W(a,"cuerangesadded",zD(a.I.fa)||[]);c=b.getPlayerState();g.T(c,2)?aza(a):g.T(c,8)&&b.playVideo()}};
aza=function(a){if(!bza(a)){var b=a.C.B;b&&(b=b.no(),b instanceof Promise&&b["catch"](function(){}));
p0(a,TK(Gva(a)))}};
$ya=function(a){var b=a.F;aB()?a.xa.R(b,"webkitpresentationmodechanged",a.PO):$A()&&(a.xa.R(b,"enterpictureinpicture",function(){q0(a,!0)}),a.xa.R(b,"leavepictureinpicture",function(){q0(a,!1)}));
NB&&(a.xa.R(b,"webkitbeginfullscreen",function(){r0(a,3)}),a.xa.R(b,"webkitendfullscreen",function(){r0(a,0)}))};
o0=function(a,b){if(b!==a.C){var c=b.getPlayerType();a.Nd[c]=b}};
Mva=function(a){var b;if(b=a.ha)b=a.F,b=!!b&&b===a.ha.C;b&&(n0(a),m0(a));a.I&&(hW(a.I),Tr(a.I,a.sf,a));a.I=null};
g.Z=function(a,b){return b?1===b?a.C:a.Nd[b]||null:a.I};
i0=function(a,b){var c=a.K;2===b&&(c=new ST(a.u));return new OV(a.u,b,c,a.template,function(d,e){for(var f=[],h=1;h<arguments.length;++h)f[h-1]=arguments[h];return a.ea.V.apply(a.ea,[d].concat(g.la(f)))},function(){return a.B.getVisibilityState()},a.visibility)};
iX=function(a,b){return a.Gc(b)?a.C:b};
s0=function(a,b){var c=a.I;return c&&b===a.C&&a.Gc(b)&&a.Gc(c)?c:b};
cza=function(a){var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.D;d.rA();nX(d,"attribution",void 0,!1,!0);nX(d,"embed");nX(d,"fresca",void 0,!1,!0);nX(d,"kids");nX(d,"remote");nX(d,"miniplayer");nX(d,"music");nX(d,"captions",void 0,!0);nX(d,"unplugged");nX(d,"visualizer",void 0,!1,!0);nX(d,"ypc",void 0,!1,!0);nX(d,"ypc_clickwrap",void 0,!1,!0);nX(d,"yto",void 0,!1,!0);nX(d,"webgl",void 0,!1,!0);d.D&&c?g.bX(d.J,"endscreen"):nX(d,"endscreen");d.D&&c?(g.bX(d.J,"annotations_module"),g.bX(d.J,"creatorendscreen")):
(d.gv(),nX(d,"creatorendscreen",void 0,!0));d.sA();Xva(d);c&&JF(b)?a.ld.R(a.B,"presentingplayerstatechange",a.iO):Wva(a.D);a.B.V("videoready",b)};
t0=function(a){return a.C.getVideoData()};
g.u0=function(a,b){var c=g.Z(a,1);c&&MV(c,b)};
v0=function(a){a=t0(a);a.isValid();return JF(a)};
Uya=function(a){var b=new g.PE(a.u,a.config.args);g.Ss()&&b.Zd.push("remote");b.isValid()&&(a.C.oh(b,function(){return a.ke()}),b=window,a.ca("html5_androidtv_quic")&&"h5vcc"in b&&"settings"in b.CI&&b.CI.settings.set("QUIC",1),!g.R(a.u.experiments,"html5_delay_initial_loading")&&v0(a)&&(a.u.vf||a.u.Fg)&&VV(a.C))};
Vya=function(a){dza(a);var b=a.config.args;m0(a);var c=t0(a);a.B.va("onVolumeChange",a.Y);if(b&&VF(b)){var d=dC(a.u);d&&!a.X&&(b.fetch=0);var e=g.MB(a.u)&&g.R(a.u.experiments,"embeds_wexit_list_ajax_migration");e&&!a.X&&(b.fetch=0);w0(a,b);if(d&&!a.X)x0(a);else if(e&&!a.X)y0(a);else if(!c.isValid())a.playlist.onReady(function(){z0(a)})}fX(a,a.C);
g.T(a.C.getPlayerState(),128)||(b=Cka(a.u.deviceHasDisplay),"fmt.noneavailable"===b?a.C.Id("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1",void 0):"html5.missingapi"===b?a.C.Id(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1",void 0):c&&c.isValid()&&v0(a)&&(a.u.vf||a.u.Fg)?A0(a):g.Qs("yt-player-playback-on-reload")?(g.Fq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.u.Xc}),lx(!1),A0(a)):g.pC(a.u)||eza(a),a.ca("web_player_inline_botguard")&&(g.fC(a.u)?(pp(function(){B0(a)}),
pp(function(){or()})):(B0(a),or())))};
B0=function(a){if(a.ca("web_player_botguard_inline_skip_config_killswitch")){var b=g.L("BG_I",null);var c=g.L("BG_IU",null);var d=g.L("BG_P",null)}else{var e=a.getVideoData().botguardData;if(!e)return;b=e.interpreterScript;c=e.interpreterUrl;d=e.program}e=a.getVideoData().Ig||"";a=a.u.cspNonce;e=e?"c1b"in Vp(e):!1;d&&(lr.gd?0:!RS||72E5<(0,g.O)()-RS)&&(b||c)&&(GA("bg_i","player_att"),lr.initialize(b,c,d,ara,a,e))};
eza=function(a){a.B.V("initializingmode");g.C0(a,2);nX(a.D,"remote");g.R(a.u.experiments,"player_cued_miniplayer_module_killswitch")||nX(a.D,"miniplayer")};
A0=function(a){if(g.T(a.C.getPlayerState(),128))return!1;v0(a)&&a.u.Fg&&(l0.hasTags(void 0)&&a.Za?(GW(a,{muted:!1,volume:a.Y.volume},!1),D0(a,!1)):l0.hasTags(void 0)||a.Y.muted||(GW(a,{muted:!0,volume:a.Y.volume},!1),D0(a,!0)));E0(a,1,a.C.getVideoData(),!1);a.B.V("initializingmode");fX(a,a.C);g.C0(a,3);var b;if(!(b=!a.u.vi)){if(b=a.ha)b=a.F,b=!!b&&b===a.ha.C;b=b&&a.De}b&&(n0(a),m0(a),iW(a.C,a.F));aW(a.C);if(g.T(a.C.getPlayerState(),128))return!1;p0(a,3);return a.De=!0};
k0=function(a){a=g.PW(a.D);return!!a&&a.loaded};
fza=function(a,b){a.I===a.C&&a.I.al()!==b&&(a.I.setLoop(b),a.B.V("loopchange",b))};
F0=function(a,b){if(!a.P)return!1;var c=.001*a.P.startTimeMs,d=.001*a.P.endTimeMs;return ee(b,c)||ee(b,d)||b>=c&&b<=d};
Xya=function(a,b){var c=a.B.getAvailablePlaybackRates();b=Number(b.toFixed(2));var d=c[0];c=c[c.length-1];b<=d||(b>=c?d=c:(d=Math.floor(100*b+.001)%5,d=0===d?b:Math.floor(100*(b-.01*d)+.001)/100));return d};
G0=function(a,b,c){if(a.Gc(c)){c=c.getVideoData();if(a.W){a=a.W;for(var d=g.q(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.Ub===e.Ub){b+=e.Wb/1E3;break}d=b;a=g.q(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Ub===e.Ub)break;var f=e.Wb/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Dc/1E3;else break}c=d}else{a=a.ka;d=g.q(a.u);for(e=d.next();!e.done;e=d.next())if(e=e.value,c.Ub===e.Ub){b+=e.Wb/1E3;break}d=b;a=g.q(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Ub===e.Ub)break;f=e.Wb/1E3;if(f<
b)d+=e.durationMs/1E3+f-e.Dc/1E3;else break}c=d}return c}return b};
dza=function(a){var b=a.template;b.la();var c=b.app.T();c.vi||b.fp("tag-pool-enabled");c.I&&b.fp(g.a0.HOUSE_BRAND);"gvn"===c.playerStyle&&(b.fp("ytp-gvn"),b.element.style.backgroundColor="transparent");c.xa&&(b.W=g.No("yt-dom-content-change",b.resize,b));g.R(c.experiments,"web_player_ios_mweb_resizing")&&b.R(window,"orientationchange",b.resize,b);b.R(window,"resize",b.resize,b);b=a.J;b.element=a.template.element;c=b.element;for(var d in b.B)b.B.hasOwnProperty(d)&&(c[d]=b.B[d]);(d=Or(a.template.element))&&
a.events.R(a.template,d,a.iN);a.events.R(window,"resize",a.HO)};
Gva=function(a,b){return 3===a.getPresentingPlayerType()?g.PW(a.D).yc:g.Z(a,b).getPlayerState()};
gza=function(a,b){return 3===a.getPresentingPlayerType()?TK(g.PW(a.D).yc):2!==b||a.Gc()?a.Kc:a.tc};
hza=function(a){H0(a);fza(a,!1);a.setLoopRange(null);a.Rb={};var b=a.K;if(b.u){var c=b.u;c.B={};c.u={}}b.B=!1;a.W?(b=a.W,a=a.C,a.getPlayerType(),H_(b,!1),gX(b),b.u=a):(b=a.ka,a=a.C,1!==a.getPlayerType()&&J_(b,"e.invalidParentVideoPlayerType"),O_(b,!1),hX(b),b.B=a)};
x0=function(a){var b=iza();if(b)if(!b.list)a.Ps();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.B.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==a.playlist.Ja().videoId||(b.index=a.playlist.index));ZF(a.playlist,b);a.Jb&&I0(a,a.Jb)}else a.Jb=null};
y0=function(a){var b=t0(a).FA;null!=b&&ZF(a.playlist,b)};
w0=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Ps,a),g.eg(a.playlist),a.playlist=null);b&&(a.X&&(b.fetch=0),a.playlist=new g.UF(a.u,b),a.playlist.subscribe("error",a.Ps,a))};
J0=function(a,b,c,d){b in a.Rb||(c=new g.oD(c,d,{id:b,priority:1,namespace:"appad"}),a.C.addCueRange(c),a.Rb[b]=c)};
mza=function(a,b){if(!(b in a))return!1;var c=a[b];Array.isArray(c)||(c=[c]);c.forEach(function(d){var e=void 0===e?!1:e;if(!(e=Vu(Wu(d,jza),d,e,"Active View 3rd Party Integration URL"))){var f=void 0===f?!1:f;e=Vu(Wu(d,kza),d,f,"Google/YouTube Brand Lift URL")}if(!(f=e)){var h=void 0===h?!1:h;f=Vu(Wu(d,lza),d,h,"Nielsen OCR URL")}g.Vs(d,void 0,f)});
return!0};
g.C0=function(a,b){b!==a.fa&&(2===b&&1===a.getPresentingPlayerType()&&(p0(a,-1),p0(a,5)),a.fa=b,a.B.V("appstatechange",b))};
p0=function(a,b){if(a.I){var c=a.I.getPlayerType();if(2===c&&!a.Gc()){a.tc!==b&&(a.tc=b,a.B.va("onAdStateChange",b));return}if(2===c&&a.Gc()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Kc!==b&&(a.Kc=b,a.B.va("onStateChange",b))};
nza=function(a,b,c,d,e){return a.W?iya(a.W,b,c,d,e):pya(a.ka,b,c,d,e)};
oza=function(a,b,c){if(a.W){a=a.W;for(var d=void 0,e=null,f=g.q(a.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.Ub===b){e=h;break}e?(void 0===d&&(d=e.Dc),jya(a,e,c,d)):D_(a,"Invalid timelinePlaybackId="+b+" specified")}else{a=a.ka;d=void 0;e=null;f=g.q(a.u);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Ub===b){e=h;break}e?(void 0===d&&(d=e.Dc),wya(a,e,c,d)):J_(a,"e.InvalidTimelinePlaybackId timelinePlaybackId="+b)}};
pza=function(a,b,c,d){d=void 0===d?Infinity:d;c=c||a.I.getPlayerType();var e;g.R(a.u.experiments,"html5_gapless_preloading")&&(e=E0(a,c,b,!0));e||(e=i0(a,c),e.oh(b,function(){return a.ke()}));
qya(a,e,d)};
qya=function(a,b,c,d){d=void 0===d?0:d;var e=g.Z(a);e&&(iX(a,e).Ek=!0);cya(a.Ra,b,c,d).then(function(){a.B.va("onQueuedVideoLoaded")},function(){})};
rza=function(a,b,c,d){var e=K0(c,b.videoId,b.Ub);b.nn=!0;var f=a.I&&e===K0(a.I.getPlayerType(),a.I.getVideoData().videoId,a.I.getVideoData().Ub)?a.I:i0(a,c);f.oh(b,function(){return a.ke()});
!g.R(a.u.experiments,"unplugged_tvhtml5_video_preload_no_dryrun")&&1===c&&gC(a.u)||VV(f,!0);a.wb.set(e,f,d||3600);d="prefetch"+b.videoId;zA("prefetch",["pfp"],void 0,d);CA({playerInfo:{playbackType:qza[c]},videoId:b.videoId},d)};
K0=function(a,b,c){return a+"_"+b+"_"+c};
E0=function(a,b,c,d){if(!f){var e=K0(b,c.videoId,c.Ub);var f=a.wb.get(e);if(!f)return null;a.wb.remove(e);if(g.T(f.getPlayerState(),128))return f.dispose(),null}if(f===g.Z(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||dya(a,f);return f};
dya=function(a,b){var c=b.getPlayerType();b!==g.Z(a,c)&&(1===b.getPlayerType()?(b.getVideoData().autonavState=a.C.getVideoData().autonavState,Tr(a.C,a.ac,a),c=a.C.getPlaybackRate(),a.C.dispose(),a.C=b,a.C.setPlaybackRate(c),Sr(b,a.ac,a),hza(a)):(c=g.Z(a,c))&&c.dispose(),a.I.getPlayerType()===b.getPlayerType()?fX(a,b):o0(a,b))};
q0=function(a,b){var c=a.u.Ah&&g.R(a.u.experiments,"html5_block_pip_with_events")||g.R(a.u.experiments,"html5_block_pip_non_mse")&&"undefined"===typeof MediaSource;if(b&&c&&a.getVideoData()&&!a.getVideoData().backgroundable&&a.F&&(c=a.F.La())){Nr(c);return}c=a.visibility;c.pictureInPicture!==b&&(c.pictureInPicture=b,c.tg())};
Q_=function(a,b,c,d){DA("_start",a.K.timerName)||(mta(a.K),a.K.info("srt",0));var e=E0(a,c||a.I.getPlayerType(),b,!1);e&&wA("pfp",void 0,"prefetch"+b.videoId);if(!e){e=g.Z(a,c);if(!e)return!1;a.Ob.stop();a.cancelPlayback(4,c);e.oh(b,function(){return a.ke()},d)}e===a.C&&(a.u.jd=b.oauthToken);
if(!UV(e))return!1;a.Mb&&(e.N.D=!1,a.Mb=!1);if(e===a.C)return g.C0(a,1),A0(a);aW(e);return!0};
L0=function(a,b,c){c=g.Z(a,c);b&&c===a.C&&(c.getVideoData().Xi=!0)};
M0=function(a,b,c){var d=g.Z(a,c);d&&(a.cancelPlayback(4,c),d.oh(b,function(){return a.ke()}),2===c&&a.C&&jta(a.C.I,b.clientPlaybackNonce,b.Ep||"",b.breakType||0),d===a.C&&(g.C0(a,1),eza(a)))};
g.N0=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");if(IB(a.u)||g.hC(a.u))return c=c||{},c.lact=zp(),c.vis=a.B.getVisibilityState(),a.B.va("onPlayVideo",{videoId:b,watchEndpoint:f,sessionData:c,listId:d}),!1;c=a.K;c.u&&(f=c.u,f.B={},f.u={});c.B=!1;a.K.reset();b={video_id:b};e&&(b.autoplay="1");e&&(b.autonav="1");d?(b.list=d,a.loadPlaylist(b)):a.loadVideoByPlayerVars(b,1);return!0};
sza=function(a,b,c,d,e){b=yva(b,c,d,e);(c=g.MB(a.u)&&g.R(a.u.experiments,"embeds_wexit_list_ajax_migration"))&&!a.X&&(b.fetch=0);w0(a,b);c&&!a.X&&(c=a.getVideoData(),Pva(c,b).then(function(){y0(a)}));
a.playlist.onReady(function(){z0(a)})};
z0=function(a){var b=a.playlist.Ja();if(b){var c=a.getVideoData();c.nk||!a.Ia?(c=c.Xi,b=Q_(a,b),c&&L0(a,b)):M0(a,b)}a.B.va("onPlaylistUpdate")};
g.O0=function(a){if(a.B.isMutedByMutedAutoplay())return!1;if(3===a.getPresentingPlayerType())return!0;dC(a.u)&&!a.X&&x0(a);return!(!a.playlist||!a.playlist.hasNext())};
bza=function(a){if(a.playlist&&g.MB(a.u)&&g.O0(a)){var b=g.R(a.u.experiments,"html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
I0=function(a,b){var c=g.Na(b);if(c){var d=iza();d&&d.list&&c();a.Jb=null}else a.Jb=b};
iza=function(){var a=g.Na("yt.www.watch.lists.getState");return a?a():null};
g.tza=function(a){if(!a.F||!a.F.hk())return null;var b=a.F;if(a.ha){var c=a.ha;c.C?c.C!==b&&(g.QS(c),c.C=b,c.B=null):c.C=b}else a.ha=Eya(a.B,b),a.ha&&g.C(a,a.ha);return a.ha};
uza=function(a,b,c,d,e,f){b={id:b,namespace:"appapi"};"chapter"===f?(b.style=nD.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=nD.AD_MARKER:(b.style=nD.TIME_MARKER,b.color=e),b.visible=!0);Hva(a,[new g.oD(1E3*c,1E3*d,b)],1);return!0};
Hva=function(a,b,c){var d=g.Z(a,c);d&&(d=d.fa,d.B(),wD(d.u,b),d.D=NaN,d.B(),c&&a.getPresentingPlayerType()!==c||$W(a,"cuerangesadded",b))};
g.lM=function(a,b,c){var d=g.Z(a,c);d&&(yD(d.fa,b),c&&a.getPresentingPlayerType()!==c||$W(a,"cuerangesremoved",b))};
oM=function(a){var b=(0,g.O)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
GW=function(a,b,c){a.u.W&&(a.Y=b,b.muted||D0(a,!1),c&&a.u.uf&&!a.u.Ma&&vza({volume:Math.floor(b.volume),muted:b.muted}),wza(a),c=g.ZA&&a.F&&!a.F.le(),!a.u.Ma||c)&&(b=g.Zb(b),a.u.uf||(b.unstorable=!0),a.B.va("onVolumeChange",b))};
wza=function(a){var b=a.getVideoData();if(!b.Kk){b=a.u.Ma?1:LF(b);var c=a.F;c.un(a.Y.muted);c.setVolume(a.Y.volume*b/100)}};
D0=function(a,b){b!==a.Za&&(a.Za=b,a.B.va("onMutedAutoplayChange",b))};
P0=function(a){var b=Mr(!0);return b&&(b===a.template.element||a.F&&b===a.F.La())?b:null};
yza=function(a,b){var c=window.screen&&window.screen.orientation;if(g.R(a.u.experiments,"lock_fullscreen2")&&c&&c.lock&&(!g.ZA||!xza))if(b){var d=0===c.type.indexOf("portrait"),e=a.template.getVideoAspectRatio(),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.kb||f!==d){c=c.lock(f?"portrait":"landscape");if(null!=c)c["catch"](g.Oa);a.kb=!0}}else a.kb&&(a.kb=!1,c.unlock())};
r0=function(a,b){var c=!!b,d=!!a.visibility.fullscreen!==c,e=a.visibility;e.fullscreen!==b&&(e.fullscreen=b,e.tg());a.ca("html5_media_fullscreen")&&!c&&a.F&&P0(a)===a.F.La()&&a.F.no();a.template.resize();d&&a.K.tick("fsc");d&&(a.B.V("fullscreentoggled",c),d=t0(a),c={fullscreen:c,videoId:d.Qy||d.videoId,time:a.getCurrentTime()},a.B.getPlaylistId()&&(c.listId=a.B.getPlaylistId()),a.B.va("onFullscreenChange",c))};
$W=function(a,b,c){a.B.V(b,c);var d=g.VB(a.u)||g.WB(a.u)||iC(a.u);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.B.va(e,c)}};
Q0=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.Z(a,e);if(!h||(2!==h.getPlayerType()||a.Gc(h)||f)&&!g.BF(h.getVideoData()))3===a.getPresentingPlayerType()?g.PW(a.D).di("control_seek",b,c):(h===a.C&&a.P&&!F0(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
zza=function(a,b,c,d){if(!a.Mb){c&&(n0(a),m0(a));a.Mb=!0;c=g.Z(a);c.N.D=!0;c.qb("reloading","reason."+b);var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?hF(e)&&g.hC(a.u)&&(f.live_utc_start=c.je(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.Lf&&(f.vvt=e.Lf);e.zh&&(f.vss_credentials_token=e.zh,f.vss_credentials_token_type=e.cg);e.oauthToken&&(f.oauth_token=e.oauthToken);f.autoplay=1;f.reload_count=e.hi+1;f.reload_reason=b;e.Cn&&(f.unplugged_partner_opt_out=
e.Cn);e.Ud&&(f.ypc_is_premiere_trailer=e.Ud);a.loadVideoByPlayerVars(f,void 0,d)}};
Aza=function(a,b){a.B.va("onAutonavChangeRequest",1!==b)};
R0=function(a,b){t0(a).autonavState=b;g.Ps("yt-player-autonavstate",b);a.B.V("autonavchange",b)};
Bza=function(a){var b=a.getVideoData().Kk,c=a.u.tc,d=a.F;b||c?d.kv():(d.ov(),GW(a,a.Y))};
Tya=function(a,b){return g.R(a.u.experiments,"html5_enable_embedded_player_visibility_signals")&&a.u.B?new Z_(b):null};
Oya=function(a){var b=navigator;g.R(a.u.experiments,"html5_vp9_new_mime")&&void 0!==b.mediaCapabilities&&(Jz=!0);g.R(a.u.experiments,"html5_disable_subtract_cuepoint_offset")&&(Yx=!0);g.R(a.u.experiments,"html5_log_opus_oboe_killswitch")&&(Yt=!1);g.R(a.u.experiments,"html5_skip_empty_load")&&(Cza=!0);Dza=g.R(a.u.experiments,"html5_ios_force_seek_to_zero_on_stop");Eza=g.R(a.u.experiments,"html5_ios7_force_play_on_stall");Fza=g.R(a.u.experiments,"html5_ios4_seek_above_zero");g.R(a.u.experiments,"html5_mediastream_applies_timestamp_offset")&&
(Ux=!0);g.R(a.u.experiments,"html5_dont_override_default_sample_desc_index")&&(Ft=!0)};
H0=function(a){(a=qX(a.D))&&a.created&&a.destroy()};
Gza=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]=tg(a,d);b.hidden=!!a.hidden};
Sya=function(a){var b=a.u,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;g.R(b.experiments,"embeds_enable_request_storage_access_safari_itp")&&g.mC&&d&&b.B?kk()||b.ha?(g.Fq("embedsStorageAccessNotChecked",{isIosWebview:kk(),isPemPlayer:b.ha}),a.Ma=!1):c.hasStorageAccess().then(function(e){g.Fq("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.Ma=!e},function(e){g.Fq("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Eo(Error("Embeds ITP Error: "+e));a.Ma=!1}):a.Ma=!1};
S0=function(a,b){var c=void 0;if(g.VB(a.u)&&cq(b)&&bq(b)){var d=a.getVideoData().Ye();d&&(c={Authorization:"Bearer "+d})}g.Vs(b,void 0,void 0,c)};
T0=function(a,b){b.forEach(function(c){S0(a,c)})};
Fya=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
Hza=function(a){a=(a=Dva(a.D))?a.chrome:null;return a?(a=a.oB())?a.P:null:null};
Iza=function(a,b,c){for(var d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a[c+e]=b[e];return a};
g.U0=function(a){if(!Jza.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Kza,"#$1$1$2$2$3$3"));a=a.toLowerCase();a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]};
Lza=function(){if(!g.ye)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.V0=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;mg();a=dd(a,null);return b.parseFromString(g.cd(a),"application/xml")}if(Mza){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.W0=function(a){g.B.call(this);this.B=a;this.u={}};
Nza=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Nza(a,b,c[h],d,e,f);else{b=Ul(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.u[b.key]=b}return a};
g.Oza=function(a){g.Jb(a.u,function(b,c){this.u.hasOwnProperty(c)&&dm(b)},a);
a.u={}};
X0=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
Y0=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
aa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
ea=aaa(this);ha("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}
function c(e,f){this.u=e;fa(this,"description",{configurable:!0,writable:!0,value:f})}
if(a)return a;c.prototype.toString=function(){return this.u};
var d=0;return b});
ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(da(this))}})}return a});
var ma="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},Pza=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=ma(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Z0;
if("function"==typeof Object.setPrototypeOf)Z0=Object.setPrototypeOf;else{var $0;a:{var Qza={a:!0},Rza={};try{Rza.__proto__=Qza;$0=Rza.a;break a}catch(a){}$0=!1}Z0=$0?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=Z0;
oa.prototype.N=function(a){this.B=a};
oa.prototype["return"]=function(a){this.C={"return":a};this.u=this.F};
oa.prototype.Wd=function(a){this.u=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return Pza});
ha("Reflect.setPrototypeOf",function(a){return a?a:na?function(b,c){try{return na(b,c),!0}catch(d){return!1}}:null});
ha("Promise",function(a){function b(h){this.Ca=0;this.vk=void 0;this.u=[];this.F=!1;var l=this.B();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.u=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.B=function(h){if(null==this.u){this.u=[];var l=this;this.C(function(){l.F()})}this.u.push(h)};
var e=ea.setTimeout;c.prototype.C=function(h){e(h,0)};
c.prototype.F=function(){for(;this.u&&this.u.length;){var h=this.u;this.u=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.D(n)}}}this.u=null};
c.prototype.D=function(h){this.C(function(){throw h;})};
b.prototype.B=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.W),reject:h(this.C)}};
b.prototype.W=function(h){if(h===this)this.C(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Y(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.P(h):this.D(h)}};
b.prototype.P=function(h){var l=void 0;try{l=h.then}catch(m){this.C(m);return}"function"==typeof l?this.ba(l,h):this.D(h)};
b.prototype.C=function(h){this.I(2,h)};
b.prototype.D=function(h){this.I(1,h)};
b.prototype.I=function(h,l){if(0!=this.Ca)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.Ca);this.Ca=h;this.vk=l;2===this.Ca&&this.X();this.K()};
b.prototype.X=function(){var h=this;e(function(){if(h.N()){var l=ea.console;"undefined"!==typeof l&&l.error(h.vk)}},1)};
b.prototype.N=function(){if(this.F)return!1;var h=ea.CustomEvent,l=ea.Event,m=ea.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=ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.vk;return m(h)};
b.prototype.K=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.B(this.u[h]);this.u=null}};
var f=new c;b.prototype.Y=function(h){var l=this.B();h.Nq(l.resolve,l.reject)};
b.prototype.ba=function(h,l){var m=this.B();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,w){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:w}
var n,p,r=new b(function(t,w){n=t;p=w});
this.Nq(m(h,n),m(l,p));return r};
b.prototype["catch"]=function(h){return this.then(void 0,h)};
b.prototype.Nq=function(h,l){function m(){switch(n.Ca){case 1:h(n.vk);break;case 2:l(n.vk);break;default:throw Error("Unexpected state: "+n.Ca);}}
var n=this;null==this.u?f.B(m):this.u.push(m);this.F=!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).Nq(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;w--;0==w&&n(t)}}
var t=[],w=0;do t.push(void 0),w++,d(m.value).Nq(r(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"endsWith");b+="";void 0===c&&(c=d.length);for(var e=Math.max(0,Math.min(c|0,d.length)),f=b.length;0<f&&0<e;)if(d[--e]!=b[--f])return!1;return 0>=f}});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return Da(this,b,c).jG}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ca(this,b,"startsWith");b+="";for(var e=d.length,f=b.length,h=Math.max(0,Math.min(c|0,d.length)),l=0;l<f&&h<e;)if(d[h++]!=b[l++])return!1;return l>=f}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Ca(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ha("Object.setPrototypeOf",function(a){return a||na});
var Sza="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)Ea(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||Sza});
ha("Array.prototype.keys",function(a){return a?a:function(){return Fa(this,function(b){return b})}});
ha("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Da(this,b,c).IB}});
ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ha("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var h=d[f];if(h===b||Object.is(h,b))return!0}return!1}});
ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ca(this,b,"includes").indexOf(b,c||0)}});
ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push([d,b[d]]);return c}});
ha("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ha("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ha("Int8Array.prototype.fill",Ga);ha("Uint8Array.prototype.fill",Ga);ha("Uint8ClampedArray.prototype.fill",Ga);ha("Int16Array.prototype.fill",Ga);ha("Uint16Array.prototype.fill",Ga);ha("Int32Array.prototype.fill",Ga);ha("Uint32Array.prototype.fill",Ga);ha("Float32Array.prototype.fill",Ga);ha("Float64Array.prototype.fill",Ga);ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var 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}});
ha("WeakMap",function(a){function b(m){this.u=(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(!Ea(m,h)){var n=new c;fa(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(!Ea(m,h))throw Error("WeakMap key fail: "+m);m[h][this.u]=n;return this};
b.prototype.get=function(m){return d(m)&&Ea(m,h)?m[h][this.u]:void 0};
b.prototype.has=function(m){return d(m)&&Ea(m,h)&&Ea(m[h],this.u)};
b.prototype["delete"]=function(m){return d(m)&&Ea(m,h)&&Ea(m[h],this.u)?delete m[h][this.u]:!1};
return b});
ha("Array.prototype.entries",function(a){return a?a:function(){return Fa(this,function(b,c){return[b,c]})}});
ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.u;return ia(function(){if(n){for(;n.head!=l.u;)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.B[n];if(p&&Ea(l.B,n))for(var r=0;r<p.length;r++){var t=p[r];if(m!==m&&t.key!==t.key||m===t.key)return{id:n,list:p,index:r,Ve:t}}return{id:n,list:p,index:-1,Ve:void 0}}
function e(l){this.B={};this.u=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.B[n.id]=[]);n.Ve?n.Ve.value=m:(n.Ve={next:this.u,previous:this.u.previous,head:this.u,key:l,value:m},n.list.push(n.Ve),this.u.previous.next=n.Ve,this.u.previous=n.Ve,this.size++);return this};
e.prototype["delete"]=function(l){l=d(this,l);return l.Ve&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.B[l.id],l.Ve.previous.next=l.Ve.next,l.Ve.next.previous=l.Ve.previous,l.Ve.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.B={};this.u=this.u.previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).Ve};
e.prototype.get=function(l){return(l=d(this,l).Ve)&&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});
ha("Set",function(a){function b(c){this.u=new Map;if(c){c=g.q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.u.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.u.set(c,c);this.size=this.u.size;return this};
b.prototype["delete"]=function(c){c=this.u["delete"](c);this.size=this.u.size;return c};
b.prototype.clear=function(){this.u.clear();this.size=0};
b.prototype.has=function(c){return this.u.has(c)};
b.prototype.entries=function(){return this.u.entries()};
b.prototype.values=function(){return this.u.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.u.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push(b[d]);return c}});
ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ha("WeakSet",function(a){function b(c){this.u=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.u.set(c,!0);return this};
b.prototype.has=function(c){return this.u.has(c)};
b.prototype["delete"]=function(c){return this.u["delete"](c)};
return b});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ca(this,null,"padStart"),e=b-d.length,f=void 0!==c?String(c):" ";return(0<e&&f?f.repeat(Math.ceil(e/f.length)).substring(0,e):"")+d}});
ha("Number.parseInt",function(a){return a||parseInt});
ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ha("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
ha("Int8Array.prototype.copyWithin",Ha);ha("Uint8Array.prototype.copyWithin",Ha);ha("Uint8ClampedArray.prototype.copyWithin",Ha);ha("Int16Array.prototype.copyWithin",Ha);ha("Uint16Array.prototype.copyWithin",Ha);ha("Int32Array.prototype.copyWithin",Ha);ha("Uint32Array.prototype.copyWithin",Ha);ha("Float32Array.prototype.copyWithin",Ha);ha("Float64Array.prototype.copyWithin",Ha);g.a1=g.a1||{};g.v=this||self;eaa=/^[\w+/_-]+[=]{0,2}$/;La=null;Ta="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Xa(Za,Error);Za.prototype.name="CustomError";var oe;g.Xa($a,Za);$a.prototype.name="AssertionError";var lb,ci;lb=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.Tza=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.Gb=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.Ke=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.Pc=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};
g.kh=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Gb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
ci=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.jh=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 ac="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Uza={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 dc;ic.prototype.Ui=!0;ic.prototype.og=function(){return this.u};
var hc={},fc={};var Ida,Hda,Gda,Jda;Ida=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");g.Vza=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Wza=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
g.In=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");Hda=/^http:\/\/.*/;Gda=/\s+/;Jda=/[\d\u06f0-\u06f9]/;mc.prototype.Ui=!0;mc.prototype.og=function(){return this.B.toString()};
mc.prototype.iw=!0;mc.prototype.u=function(){return 1};
var vaa=/%{(\w+)}/g,uaa=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,lc={};var Bc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},tc=/&/g,uc=/</g,vc=/>/g,wc=/"/g,xc=/'/g,yc=/\x00/g,xaa=/[\x00&<>"']/;g.Fc.prototype.Ui=!0;g.Fc.prototype.og=function(){return this.B.toString()};
g.Fc.prototype.iw=!0;g.Fc.prototype.u=function(){return 1};
var zaa=/^(?: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,yaa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Ic=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Ec={},Jc=new g.Fc("about:invalid#zClosurez",Ec);Nc.prototype.Ui=!0;Nc.prototype.og=function(){return this.u};
var Mc={},Rc=new Nc("",Mc),Baa=/^[-,."'%_!# a-zA-Z0-9\[\]]+$/,Uc=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Tc=RegExp("\\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"),Caa=/\/\*/;a:{var Xza=g.v.navigator;if(Xza){var Yza=Xza.userAgent;if(Yza){g.Vc=Yza;break a}}g.Vc=""};bd.prototype.iw=!0;bd.prototype.u=function(){return this.C};
bd.prototype.Ui=!0;bd.prototype.og=function(){return this.B.toString()};
var Zza=/^[a-zA-Z0-9-]+$/,$za={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},aAa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},ad={},fd=new bd(g.v.trustedTypes&&g.v.trustedTypes.emptyHTML||"",0,ad);var Jaa=db(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.cd(fd);return!b.parentElement});var Kaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var wd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Od=/#|$/,Maa=/[?&]($|#)/;Ud[" "]=g.Oa;var qg,bD,xza,bAa,cAa,dAa,DB,EB,b1;g.rg=Wc("Opera");g.ye=Wc("Trident")||Wc("MSIE");g.Vq=Wc("Edge");g.lC=g.Vq||g.ye;qg=Wc("Gecko")&&!(Ac(g.Vc,"WebKit")&&!Wc("Edge"))&&!(Wc("Trident")||Wc("MSIE"))&&!Wc("Edge");g.Ae=Ac(g.Vc,"WebKit")&&!Wc("Edge");bD=Wc("Macintosh");xza=Wc("Windows");g.lk=Wc("Android");bAa=Sd();cAa=Wc("iPad");dAa=Wc("iPod");DB=Td();EB=Ac(g.Vc,"KaiOS");
a:{var c1="",d1=function(){var a=g.Vc;if(qg)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Vq)return/Edge\/([\d\.]+)/.exec(a);if(g.ye)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Ae)return/WebKit\/(\S+)/.exec(a);if(g.rg)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
d1&&(c1=d1?d1[1]:"");if(g.ye){var e1=Yd();if(null!=e1&&e1>parseFloat(c1)){b1=String(e1);break a}}b1=c1}var Zd=b1,Oaa={},f1;if(g.v.document&&g.ye){var eAa=Yd();f1=eAa?eAa:parseInt(Zd,10)||void 0}else f1=void 0;var Paa=f1;try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var Qaa=!g.ye||g.ae(9),Raa=!qg&&!g.ye||g.ye&&g.ae(9)||qg&&g.$d("1.9.1");g.ye&&g.$d("9");var Taa=g.ye||g.rg||g.Ae;g.k=g.fe.prototype;g.k.clone=function(){return new g.fe(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.he.prototype;g.k.clone=function(){return new g.he(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!je(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 ue={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=ke.prototype;g.k.La=function(a){return qe(this.u,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.u).getElementsByTagName(String(a))};
g.k.ga=function(a){return g.te(a,this.u)};
g.k.createElement=function(a){return Ce(this.u,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){De(ne(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.Je;g.k.contains=g.Me;g.xf=0;g.yf=0;Ye.prototype.clone=function(){return $e(this.B,this.D,this.C-this.D)};
Ye.prototype.clear=function(){this.B=null;this.u=this.C=this.D=0;this.F=!1};
Ye.prototype.reset=function(){this.u=this.D};
var Ze=[];df.prototype.reset=function(){this.u.reset();this.B=this.C=-1};lf.prototype.length=function(){return this.u.length};
lf.prototype.end=function(){var a=this.u;this.u=[];return a};var NB,PF;g.rB=Yc();NB=Sd()||Wc("iPod");PF=Wc("iPad");g.FB=Wc("Android")&&!(Zc()||Yc()||Wc("Opera")||Wc("Silk"));g.ZA=Zc();g.mC=$c()&&!Td();var pf={},tf=null;g.uf.prototype.reset=function(){this.C=[];this.u.end();this.B=0};var Cf;Cf="function"==typeof Uint8Array;g.Df=[];g.Bf.prototype.toString=function(){return this.lf.toString()};
g.Bf.prototype.clone=function(){return new this.constructor(Mf(this.lf))};var Gi;Gi=["av.key","js","unreleased"].slice(-1)[0];var Ig=document,Zg=window;var Of={};g.k=Qf.prototype;g.k.isEnabled=function(){return navigator.cookieEnabled};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.aW;d=c.nQ||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.nC}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);this.u.cookie=a+"="+b+(f?";domain="+f:"")+(h?";path="+h:"")+(0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString())+(d?";secure":"")+(null!=e?";samesite="+e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.u.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Bc(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,"",{nC:0,path:b,domain:c});return d};
g.k.mg=function(){return Rf(this).keys};
g.k.Ze=function(){return Rf(this).values};
g.k.isEmpty=function(){return!this.u.cookie};
g.k.clear=function(){for(var a=Rf(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var uq=new Qf("undefined"==typeof document?null:document);var Yaa=db(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.v.addEventListener("test",null,b)}catch(c){}return a});var fAa;
fAa={NG:["BC","AD"],MG:["Before Christ","Anno Domini"],ZG:"JFMAMJJASOND".split(""),eH:"JFMAMJJASOND".split(""),gz:"January February March April May June July August September October November December".split(" "),qz:"January February March April May June July August September October November December".split(" "),oz:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),rz:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Cz:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),uz:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
pz:"Sun Mon Tue Wed Thu Fri Sat".split(" "),sz:"Sun Mon Tue Wed Thu Fri Sat".split(" "),RT:"SMTWTFS".split(""),fH:"SMTWTFS".split(""),cH:["Q1","Q2","Q3","Q4"],aH:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Sy:["AM","PM"],zu:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],yz:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],JG:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],xq:6,mH:[5,6],yq:5};g.g1=fAa;g.g1=fAa;g.k=g.Yf.prototype;g.k.OA=g.g1.xq;g.k.QA=g.g1.yq;g.k.clone=function(){var a=new g.Yf(this.date);a.OA=this.OA;a.QA=this.QA;return a};
g.k.getFullYear=function(){return this.date.getFullYear()};
g.k.getMonth=function(){return this.date.getMonth()};
g.k.getDate=function(){return this.date.getDate()};
g.k.getTime=function(){return this.date.getTime()};
g.k.getDay=function(){return this.date.getDay()};
g.k.getUTCFullYear=function(){return this.date.getUTCFullYear()};
g.k.getUTCMonth=function(){return this.date.getUTCMonth()};
g.k.getUTCDate=function(){return this.date.getUTCDate()};
g.k.getUTCHours=function(){return this.date.getUTCHours()};
g.k.getUTCMinutes=function(){return this.date.getUTCMinutes()};
g.k.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.k.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.k.add=function(a){if(a.u||a.months){var b=this.getMonth()+a.months+12*a.u,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);a:{switch(b){case 1:var d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.date.setDate(1);this.date.setFullYear(c);this.date.setMonth(b);this.date.setDate(d)}a.days&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.days),this.date.setDate(1),this.date.setFullYear(a.getFullYear()),
this.date.setMonth(a.getMonth()),this.date.setDate(a.getDate()),Xf(this,a.getDate()))};
g.k.toString=function(){return[this.getFullYear(),g.od(this.getMonth()+1,2),g.od(this.getDate(),2)].join("")+""};
g.k.valueOf=function(){return this.date.valueOf()};var aba=/https?:\/\/[^\/]+/,Zaa={BR:"allow-forms",CR:"allow-modals",DR:"allow-orientation-lock",ER:"allow-pointer-lock",FR:"allow-popups",GR:"allow-popups-to-escape-sandbox",HR:"allow-presentation",IR:"allow-same-origin",JR:"allow-scripts",KR:"allow-top-navigation",LR:"allow-top-navigation-by-user-activation"},dba=db(function(){return $aa()});g.B.prototype.Cd=!1;g.B.prototype.la=function(){return this.Cd};
g.B.prototype.dispose=function(){this.Cd||(this.Cd=!0,this.aa())};
g.B.prototype.aa=function(){if(this.Gl)for(;this.Gl.length;)this.Gl.shift()()};g.k=gg.prototype;g.k.Sd=function(){return this.right-this.left};
g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new gg(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof gg?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){var c="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};g.k=g.ig.prototype;g.k.clone=function(){return new g.ig(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.fe?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.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){var c="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var kg={};g.u(lg,fba);lg.prototype.toString=function(){return this.u};new lg("about:blank",kg);new lg("about:invalid#zTSz",kg);var mg=g.Oa;var pg={};var Gg=!!window.google_async_iframe_id,Hg=Gg&&window.parent||window;var Qba={NONE:0,wS:1};Mg.prototype.isVisible=function(){return this.rl?.3<=this.Zb:.5<=this.Zb};var th={lS:0,GS:1},sh={NONE:0,lT:1,JS:2};Ng.prototype.getValue=function(){return this.B};
g.u(Og,Ng);Og.prototype.setValue=function(a){if(null!==this.B||!g.Tb(this.C,a))return!1;this.B=a;return!0};
g.u(Pg,Ng);Pg.prototype.setValue=function(a){if(null!==this.B||"number"!==typeof a)return!1;this.B=a;return!0};
g.u(Qg,Ng);Qg.prototype.setValue=function(a){if(null!==this.B||"string"!==typeof a)return!1;this.B=a;return!0};Rg.prototype.disable=function(){this.C=!1};
Rg.prototype.enable=function(){this.C=!0};
Rg.prototype.isEnabled=function(){return this.C};
Rg.prototype.reset=function(){this.u={};this.C=!0;this.B={}};var Rba=!g.ye&&!$c();Wg.prototype.now=function(){return 0};
Wg.prototype.B=function(){return 0};
Wg.prototype.C=function(){return 0};
Wg.prototype.u=function(){return 0};g.u(Yg,Wg);Yg.prototype.now=function(){return Xg()&&Zg.performance.now?Zg.performance.now():Wg.prototype.now.call(this)};
Yg.prototype.B=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.totalJSHeapSize||0:Wg.prototype.B.call(this)};
Yg.prototype.C=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.usedJSHeapSize||0:Wg.prototype.C.call(this)};
Yg.prototype.u=function(){return Xg()&&Zg.performance.memory?Zg.performance.memory.jsHeapSizeLimit||0:Wg.prototype.u.call(this)};ah.prototype.isVisible=function(){return 1===$g(Ig)};var mba=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/;eh.prototype.cd=function(a,b,c,d){a=a+"//"+b+c;var e=oba(this)-c.length-d.length;if(0>e)return"";this.u.sort(function(p,r){return p-r});
c=null;b="";for(var f=0;f<this.u.length;f++)for(var h=this.u[f],l=this.B[h],m=0;m<l.length;m++){if(!e){c=null==c?h:c;break}var n=hh(l[m],this.C,",$");if(n){n=b+n;if(e>=n.length){e-=n.length;a+=n;b=this.C;break}c=null==c?h:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};lh.prototype.setInterval=function(a,b){return Zg.setInterval(a,b)};
lh.prototype.clearInterval=function(a){Zg.clearInterval(a)};
lh.prototype.setTimeout=function(a,b){return Zg.setTimeout(a,b)};
lh.prototype.clearTimeout=function(a){Zg.clearTimeout(a)};
Pa(lh);ph.prototype.getContext=function(){if(!this.u){if(!Zg)throw Error("Context has not been set and window is undefined.");this.u=lh.getInstance()}return this.u};
Pa(ph);g.Xa(qh,g.Bf);var vba={vU:1,lH:2,PT:3};oc(jc(g.kc("https://pagead2.googlesyndication.com/pagead/osd.js")));uh.prototype.Ax=function(a){if("string"===typeof a&&0!=a.length){var b=this.ob;if(b.C){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.u[e])&&e.setValue(d)}}}};
Pa(uh);var h1=null;var Ah=g.v.performance,gAa=!!(Ah&&Ah.mark&&Ah.measure&&Ah.clearMarks),yh=db(function(){var a;if(a=gAa){var b;if(null===h1){h1="";try{a="";try{a=g.v.top.location.hash}catch(c){a=g.v.location.hash}a&&(h1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=h1;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
zh.prototype.disable=function(){this.u=!1;this.events!=this.B.google_js_reporting_queue&&(yh()&&g.Gb(this.events,Eh),this.events.length=0)};
zh.prototype.start=function(a,b){if(!this.u)return null;var c=new xba(a,b),d="goog_"+c.label+"_"+c.uniqueId+"_start";Ah&&yh()&&Ah.mark(d);return c};
zh.prototype.end=function(a){if(this.u&&"number"===typeof a.value){a.duration=(xh()||wh())-a.value;var b="goog_"+a.label+"_"+a.uniqueId+"_end";Ah&&yh()&&Ah.mark(b);!this.u||2048<this.events.length||this.events.push(a)}};Hh.prototype.B=function(a,b,c,d,e){e=e||this.D;try{var f=new eh;f.u.push(1);f.B[1]=fh("context",a);b.error&&b.meta&&b.id||(b=new Ih(Jh(b)));if(b.msg){var h=b.msg.substring(0,512);f.u.push(2);f.B[2]=fh("msg",h)}var l=b.meta||{};if(this.u)try{this.u(l)}catch(r){}if(d)try{d(l)}catch(r){}b=[l];f.u.push(3);f.B[3]=b;var m=dh();if(m.B){var n=m.B.url||"";f.u.push(4);f.B[4]=fh("top",n)}var p=[{url:m.u.url||""},{url:m.u.url?zd(m.u.url):""}];f.u.push(5);f.B[5]=p;vh(this.F,e,f,!1,c)}catch(r){try{vh(this.F,e,
{context:"ecmserr",rctx:a,msg:Jh(r),url:m&&m.u.url},!1,c)}catch(t){}}return this.C};
g.u(Ih,Sf);var Gh,Lh,Fh=new zh;(function(){Gh=new wba;Lh=new Hh;var a=Jg();a&&a.document&&("complete"==a.document.readyState?Nh():Fh.u&&Uf(a,"load",function(){Nh()}))})();var zba=Date.now(),Uh=-1,Sh=-1,Cj,Vh=-1,Th=!1;var ml={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},yj={gH:"start",PG:"firstquartile",XG:"midpoint",iH:"thirdquartile",GG:"complete",WG:"metric",PAUSE:"pause",bH:"resume",dH:"skip",kH:"viewable_impression",YG:"mute",jH:"unmute",QG:"fullscreen",OG:"exitfullscreen",FG:"bufferstart",EG:"bufferfinish",SG:"fully_viewable_audible_half_duration_impression",VG:"measurable_impression",CG:"abandon",LG:"engagedview",TG:"impression",HG:"creativeview",UG:"loaded",yU:"progress",CLOSE:"close",
jS:"collapse",aU:"overlay_resize",bU:"overlay_unmeasurable_impression",cU:"overlay_unviewable_impression",eU:"overlay_viewable_immediate_impression",dU:"overlay_viewable_end_of_session_impression",IG:"custom_metric_viewable",UT:"verification_debug"},dda="start firstquartile midpoint thirdquartile resume loaded".split(" "),eda=["start","firstquartile","midpoint","thirdquartile"],gca=["abandon"],Gk={UNKNOWN:-1,gH:0,PG:1,XG:2,iH:3,GG:4,WG:5,PAUSE:6,bH:7,dH:8,kH:9,YG:10,jH:11,QG:12,OG:13,SG:14,VG:15,
CG:16,LG:17,TG:18,HG:19,UG:20,IG:21,FG:22,EG:23};var Bba={tR:"addEventListener",LS:"getMaxSize",MS:"getScreenSize",NS:"getState",OS:"getVersion",DU:"removeEventListener",oT:"isViewable"};if(Ig&&Ig.URL){var hAa,cg=Ig.URL;hAa=!!cg&&0<cba().length;Lh.C=!hAa};di.prototype.update=function(a){a&&a.document&&(this.K=Lg(!1,a,this.isMobileDevice),this.u=Lg(!0,a,this.isMobileDevice),fi(this,a),ei(this,a))};
Pa(di);var iAa=new gg(0,0,0,0);ki.prototype.La=function(){return this.N};li.prototype.cancel=function(){mh().clearTimeout(this.u);this.u=null};
li.prototype.schedule=function(){var a=this;this.u=mh().setTimeout(rh(uh.getInstance().u.u,Ph(143,function(){a.B++;a.C.sC()})),Aba())};g.k=mi.prototype;g.k.FC=function(){return this.Os()};
g.k.Os=function(){return!1};
g.k.initialize=function(){return this.rd=!0};
g.k.Cm=function(){return this.u.Y};
g.k.Fo=function(){return this.u.P};
g.k.getName=function(){return this.u.ha};
g.k.Mj=function(){return this.u.fB()};
g.k.fB=function(){return{}};
g.k.Oh=function(){return this.u.K};
g.k.DC=function(){var a=di.getInstance();a.u=Lg(!0,this.Te,a.isMobileDevice)};
g.k.EC=function(){ei(di.getInstance(),this.Te)};
g.k.GJ=function(){fi(di.getInstance(),this.Te)};
g.k.qB=function(){return this.C.u};
g.k.sC=function(){};
g.k.isActive=function(){return this.u.F};
g.k.Hm=function(a){var b=this.u,c=a.Oh();this.u=c>=this.K?a:this;b!==this.u?(this.F=this.u.F,ni(this)):this.F!==this.u.F&&(this.F=this.u.F,ni(this))};
g.k.Vj=function(a){if(a.B===this.u){var b;if(!(b=this.ea)){b=this.C;var c=this.N;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.u,c=a.u,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;b=!c}this.C=a;b&&si(this)}};
g.k.ii=function(){return this.N};
g.k.dispose=function(){this.Cd=!0};
g.k.la=function(){return this.Cd};g.k=ti.prototype;g.k.Pw=function(){return!0};
g.k.Yo=function(){};
g.k.Kq=function(){if(this.element){var a=this.element,b=this.B.u.Te;try{try{var c=$h(a.getBoundingClientRect())}catch(n){c=new gg(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Ag(a,b),h=f.x,l=f.y;var m=new gg(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=iAa.clone()}this.u=ui(this,m)}};
g.k.aA=function(){this.F=this.B.C.u};
g.k.Bi=function(){this.Kq();this.D=new ki(this.B.C,this.element,this.u,this.D.D,this.D.u,this.D.C,Rh(),this.D.I)};
g.k.dispose=function(){if(!this.la()){var a=this.B;g.rb(a.D,this);a.N&&this.ii()&&ri(a);this.Yo();this.Cd=!0}};
g.k.la=function(){return this.Cd};
g.k.Mj=function(){return this.B.Mj()};
g.k.Oh=function(){return this.B.Oh()};
g.k.Cm=function(){return this.B.Cm()};
g.k.Fo=function(){return this.B.Fo()};
g.k.Hm=function(){};
g.k.Vj=function(){this.Bi()};
g.k.ii=function(){return this.W};g.k=vi.prototype;g.k.Oh=function(){return this.u.Oh()};
g.k.Cm=function(){return this.u.Cm()};
g.k.Fo=function(){return this.u.Fo()};
g.k.create=function(a,b,c){var d=null;this.u&&(d=this.Gs(a,b,c),pi(this.u,d));return d};
g.k.tC=function(){return this.To()};
g.k.To=function(){return!1};
g.k.init=function(a){return this.u.initialize()?(pi(this.u,this),this.D=a,!0):!1};
g.k.Hm=function(a){0==a.Oh()&&this.D(a.Cm(),this)};
g.k.Vj=function(){};
g.k.ii=function(){return!1};
g.k.dispose=function(){this.Cd=!0};
g.k.la=function(){return this.Cd};
g.k.Mj=function(){return{}};yi.prototype.add=function(a,b,c){++this.C;var d=this.C/4096;this.u.push(Iba(new wi(a,b,c),d));this.B=!0;return this};Hi.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Ai(this.u);0<b.length&&(a+="?"+b);return a};Pa(Ki);Li.prototype.update=function(a,b,c){a&&(this.u+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Nba=[1,.75,.5,.3,0];Mi.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.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.u[e].update(f&&l,d,!f||h)}};Vi.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.Zb):b.Zb;this.X=Math.max(this.X,b.Zb);this.Y=-1!=this.Y?Math.min(this.Y,b.Kf):b.Kf;this.fa=Math.max(this.fa,b.Kf);this.Fa.update(b.Kf,c.Kf,b.u,a,d);this.B.update(b.Zb,c.Zb,b.u,a,d);c=d||c.rl!=b.rl?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.u;this.ka.update(c,a,b)};
Vi.prototype.ul=function(){return this.ka.C>=this.xa};var Pba=new gg(0,0,0,0);g.u(Xi,g.B);g.k=Xi.prototype;g.k.aa=function(){this.xf.u&&(this.Sk.ix&&(Vf(this.xf.u,"mouseover",this.Sk.ix),this.Sk.ix=null),this.Sk.gx&&(Vf(this.xf.u,"mouseout",this.Sk.gx),this.Sk.gx=null));this.Wp&&this.Wp.dispose();this.zc&&this.zc.dispose();delete this.Bs;delete this.Kw;delete this.WF;delete this.xf.ek;delete this.xf.u;delete this.Sk;delete this.Wp;delete this.zc;delete this.ob;g.B.prototype.aa.call(this)};
g.k.Pj=function(){return this.zc?this.zc.u:this.position};
g.k.Ax=function(a){uh.getInstance().Ax(a)};
g.k.ii=function(){return!1};
g.k.Fr=function(){return new Vi};
g.k.Af=function(){return this.Bs};
g.k.kB=function(a){return $i(this,a,1E4)};
g.k.na=function(a,b,c,d,e,f,h){this.Rm||(this.gr&&(a=this.Nu(a,c,e,h),d=d&&this.Xd.Zb>=(this.rl()?.3:.5),this.Iy(f,a,d),this.lastUpdateTime=b,0<a.Zb&&-1===this.KF&&(this.KF=b),-1==this.LF&&this.ul()&&(this.LF=b),-2==this.Jw&&(this.Jw=hi(this.Pj())?a.Zb:-1),this.Xd=a),this.Kw(this))};
g.k.Iy=function(a,b,c){this.Af().update(a,b,this.Xd,c)};
g.k.Nv=function(){return new Mg};
g.k.Nu=function(a,b,c,d){c=this.Nv();c.u=b;b=mh().B;b=0===$g(Ig)?-1:b.isVisible()?0:1;c.B=b;c.Zb=this.dv(a);c.rl=this.rl();c.Kf=d;return c};
g.k.dv=function(a){return 0===this.opacity&&1===Ug(this.ob,"opac")?0:a};
g.k.rl=function(){return!1};
g.k.Nt=function(){return this.mJ||this.pJ};
g.k.Zs=function(){};
g.k.hx=function(){};
g.k.Mh=function(){return 0};
g.k.ul=function(){return this.Bs.ul()};var bj="StopIteration"in g.v?g.v.StopIteration:{message:"StopIteration",stack:""};aj.prototype.next=function(){throw bj;};
aj.prototype.yi=function(){return this};g.u(ej,Mg);hj.prototype.getValue=function(){return this.B};
hj.prototype.update=function(a,b){32<=a||(this.u&1<<a&&!b?this.B&=~(1<<a):this.u&1<<a||!b||(this.B|=1<<a),this.u|=1<<a)};g.u(ij,Vi);
ij.prototype.update=function(a,b,c,d){if(!b.paused){Vi.prototype.update.call(this,a,b,c,d);var e=fj(b)&&fj(c),f=.5<=(d?Math.min(b.Zb,c.Zb):c.Zb);bi(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.ba+=a,this.P+=e?a:0);this.u.update(b.Zb,c.Zb,b.u,a,d,e);this.C.update(!0,a);this.F.update(e,a);this.W.update(c.fullscreen,a);this.Ia.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.ea.update(a,b.isVisible());this.ya.update(a,1<=b.Zb);this.oa.update(a,
fj(b))}};g.u(mj,aca);mj.prototype.C=function(){return!0};
mj.prototype.F=function(){return!1};
mj.prototype.getId=function(){var a=this,b=Ub(yj,function(c){return c==a.D});
return Gk[b].toString()};
mj.prototype.toString=function(){var a="";this.F()&&(a+="c");this.u&&(a+="s");0<this.B&&(a+=":"+this.B);return this.getId()+a};g.u(nj,ti);nj.prototype.SB=function(a){var b=1==Ug(this.ob,"od");return Gba(a,this.F,this.element,b)};
nj.prototype.bA=function(){this.timestamp=Rh()};
nj.prototype.Bi=function(){this.bA();this.Kq();this.aA();var a=this.u;var b=this.F;a=a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom?new gg(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left)):new gg(0,0,0,0);b=a.top>=a.bottom||a.left>=a.right?new gg(0,0,0,0):a;a=this.B.C;var c=0,d=0,e=0;0<(this.u.bottom-this.u.top)*(this.u.right-this.u.left)&&(this.SB(b)?b=new gg(0,0,0,0):(c=di.getInstance().D,e=new gg(0,c.height,c.width,0),c=ii(b,
this.u),d=ii(b,di.getInstance().u),e=ii(b,e)));b=b.top>=b.bottom||b.left>=b.right?new gg(0,0,0,0):hg(b,-this.u.left,-this.u.top);gi()||(d=c=0);this.D=new ki(a,this.element,this.u,b,c,d,this.timestamp,e)};
nj.prototype.getName=function(){return this.B.getName()};var jAa=new gg(0,0,0,0);g.u(oj,nj);g.k=oj.prototype;g.k.Pw=function(){this.C();return!0};
g.k.Vj=function(){nj.prototype.Bi.call(this)};
g.k.bA=function(){};
g.k.Kq=function(){};
g.k.Bi=function(){this.C();nj.prototype.Bi.call(this)};
g.k.Hm=function(a){a=a.isActive();a!==this.K&&(a?this.C():(di.getInstance().u=new gg(0,0,0,0),this.u=new gg(0,0,0,0),this.F=new gg(0,0,0,0),this.timestamp=-1));this.K=a};var i1={},fca=(i1.firstquartile=0,i1.midpoint=1,i1.thirdquartile=2,i1.complete=3,i1);g.u(pj,Xi);g.k=pj.prototype;g.k.ii=function(){return!0};
g.k.kB=function(a){return $i(this,a,Math.max(1E4,this.D/3))};
g.k.na=function(a,b,c,d,e,f,h){var l=this,m=this.Y(this)||{};g.bc(m,e);this.D=m.duration||this.D;this.P=m.isVpaid||this.P;this.ka=m.isYouTube||this.ka;e=bca(this,b);1===uj(this)&&(f=e);Xi.prototype.na.call(this,a,b,c,d,m,f,h);this.C&&this.C.u&&g.Gb(this.K,function(n){lj(n,l)})};
g.k.Iy=function(a,b,c){Xi.prototype.Iy.call(this,a,b,c);tj(this).update(a,b,this.Xd,c);this.Fa=fj(this.Xd)&&fj(b);-1==this.ea&&this.xa&&(this.ea=this.Af().C.u);this.Qd.C=0;a=this.ul();b.isVisible()&&gj(this.Qd,"vs");a&&gj(this.Qd,"vw");bi(b.volume)&&gj(this.Qd,"am");fj(b)&&gj(this.Qd,"a");this.Km&&gj(this.Qd,"f");-1!=b.B&&(gj(this.Qd,"bm"),1==b.B&&gj(this.Qd,"b"));fj(b)&&b.isVisible()&&gj(this.Qd,"avs");this.Fa&&a&&gj(this.Qd,"avw");0<b.Zb&&gj(this.Qd,"pv");vj(this,this.Af().C.u,!0)&&gj(this.Qd,"gdr");
2E3<=Si(this.Af().B,1)&&gj(this.Qd,"pmx")};
g.k.Fr=function(){return new ij};
g.k.Af=function(){return this.Bs};
g.k.Nv=function(){return new ej};
g.k.Nu=function(a,b,c,d){a=Xi.prototype.Nu.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Km;a.paused=2==this.Fd;a.volume=c.volume;bi(a.volume)||(this.Ia++,b=this.Xd,bi(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.dv=function(a){return di.getInstance(),this.Km?1:Xi.prototype.dv.call(this,a)};
g.k.Mh=function(){return 1};
g.k.getDuration=function(){return this.D};var kAa=g.A();var Hj={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},pca=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Ij.prototype.reset=function(){this.u=[];this.B=[]};
Pa(Ij);var Lj=Ij.getInstance();Pa(Pj);g.u(Rj,vi);g.k=Rj.prototype;g.k.getName=function(){return(this.B?this.B:this.u).getName()};
g.k.Mj=function(){return(this.B?this.B:this.u).Mj()};
g.k.Oh=function(){return(this.B?this.B:this.u).Oh()};
g.k.init=function(a){var b=!1;(0,g.Gb)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,pi(this.u,this));return b};
g.k.dispose=function(){(0,g.Gb)(this.C,function(a){a.dispose()});
vi.prototype.dispose.call(this)};
g.k.tC=function(){return ci(this.C,function(a){return a.FC()})};
g.k.To=function(){return ci(this.C,function(a){return a.Os()})};
g.k.Gs=function(a,b,c){return new nj(a,this.u,b,c)};
g.k.Vj=function(a){this.B=a.B};var uca={threshold:[0,.3,.5,.75,1]};g.u(Sj,nj);g.k=Sj.prototype;g.k.Pw=function(){var a=this;this.P||(this.P=Rh());if(Oh(298,function(){return vca(a)}))return!0;
oi(this.B,"msf");return!1};
g.k.Yo=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.I&&(this.I.disconnect(),this.I=null)}catch(a){}};
g.k.Bi=function(){var a=Tj(this);0<a.length&&Uj(this,a);nj.prototype.Bi.call(this)};
g.k.Kq=function(){};
g.k.SB=function(){return!1};
g.k.aA=function(){};
g.k.Mj=function(){var a={};return Object.assign(this.B.Mj(),(a.niot_obs=this.P,a.niot_cbk=this.N,a))};
g.k.getName=function(){return"nio"};var jk=NB||PF;g.u(ok,vi);ok.prototype.getName=function(){return"nio"};
ok.prototype.To=function(){return g.ak()?!1:!di.getInstance().B&&null!=this.u.u.Te.IntersectionObserver};
ok.prototype.Gs=function(a,b,c){return new Sj(a,this.u,b,c)};g.u(qk,mi);qk.prototype.qB=function(){return di.getInstance().u};
qk.prototype.Os=function(){var a=pk();this.K!==a&&(this.u!=this&&a>this.u.K&&(this.u=this,ni(this)),this.K=a);return 2==a};
Pa(qk);Pa(rk);sk.prototype.sC=function(){vk(this,Mj(),!1)};
sk.prototype.D=function(){var a=gi(),b=Rh();a?(Th||(Uh=b,g.Gb(Lj.u,function(c){var d=c.Af();d.ha=jj(d,b,1!=c.Fd)})),Th=!0):(this.K=xk(this,b),Th=!1,Cj=b,g.Gb(Lj.u,function(c){c.gr&&(c.Af().N=b)}));
vk(this,Mj(),!a)};
Pa(sk);var tk=sk.getInstance();var yk=null,fl="",el=!1;var j1=Ek([void 0,1,2,3,4,8,16]),k1=Ek([void 0,4,8,16]),lAa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Dk("p0",k1),p1:Dk("p1",k1),p2:Dk("p2",k1),p3:Dk("p3",k1),tos:"tos",mtos:"mtos",mtos1:Ck("mtos1",[0,2,4],!1,k1),mtos2:Ck("mtos2",[0,2,4],!1,k1),mtos3:Ck("mtos3",[0,2,4],!1,k1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Dk("a0",k1),a1:Dk("a1",k1),a2:Dk("a2",k1),a3:Dk("a3",k1),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:Dk("c0",k1),c1:Dk("c1",k1),c2:Dk("c2",k1),c3:Dk("c3",k1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Dk("qmtos",j1),qnc:Dk("qnc",j1),qmv:Dk("qmv",j1),qnv:Dk("qnv",j1),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:Dk("ss0",k1),ss1:Dk("ss1",k1),ss2:Dk("ss2",k1),ss3:Dk("ss3",k1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},mAa={c:zk("c"),at:"at",atos:Ck("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:Bk(),j:"dom",mtos:Ck("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:zk("ss"),vsv:ab("w2"),t:"t"},nAa={atos:"atos",amtos:"amtos",avt:Ck("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:zk("ss"),t:"t"},oAa={a:"a",tos:Bk(),at:"at",c:zk("c"),mtos:Ck("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:ab("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},pAa={tos:Bk(),at:"at",c:zk("c"),mtos:Ck("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:ab("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",
qmpt:Ck("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.Pc(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Dca={HS:"visible",OR:"audible",dV:"time",eV:"timetype"},Jk={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.u(Kk,mj);Kk.prototype.getId=function(){return this.K};
Kk.prototype.F=function(){return!0};
Kk.prototype.C=function(a){var b=a.Af(),c=a.getDuration();return ci(this.I,function(d){if(void 0!=d.u)var e=Fca(d,b);else b:{switch(d.F){case "mtos":e=d.B?b.F.C:b.C.u;break b;case "tos":e=d.B?b.F.u:b.C.u;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.u(Lk,mj);Lk.prototype.C=function(a){var b=Qi(a.Af().u,1);return vj(a,b)};g.u(Mk,mj);Mk.prototype.C=function(a){return a.Af().ul()};g.u(Pk,Gca);Pk.prototype.u=function(a){var b=new Nk;b.u=Ok(a,lAa);b.C=Ok(a,nAa);return b};g.u(Qk,oj);Qk.prototype.C=function(){var a=g.Na("ima.admob.getViewability"),b=Ug(this.ob,"queryid");"function"===typeof a&&b&&a(b)};
Qk.prototype.getName=function(){return"gsv"};g.u(Rk,vi);Rk.prototype.getName=function(){return"gsv"};
Rk.prototype.To=function(){var a=di.getInstance();uh.getInstance();return a.B&&!1};
Rk.prototype.Gs=function(a,b,c){return new Qk(this.u,b,c)};g.u(Sk,oj);Sk.prototype.C=function(){var a=this,b=g.Na("ima.bridge.getNativeViewability"),c=Ug(this.ob,"queryid");"function"===typeof b&&c&&b(c,function(d){g.Wb(d)&&a.I++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.u=ai(d.opt_nativeViewBounds||{});var h=a.B.C;h.u=f?jAa.clone():ai(e);a.timestamp=d.opt_nativeTime||-1;di.getInstance().u=h.u;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Sk.prototype.getName=function(){return"nis"};g.u(Tk,vi);Tk.prototype.getName=function(){return"nis"};
Tk.prototype.To=function(){var a=di.getInstance();uh.getInstance();return a.B&&!1};
Tk.prototype.Gs=function(a,b,c){return new Sk(this.u,b,c)};g.u(Uk,mi);g.k=Uk.prototype;g.k.Os=function(){return null!=this.B.hh};
g.k.fB=function(){var a={};this.ba&&(a.mraid=this.ba);this.X&&(a.mlc=1);a.mtop=this.B.vQ;this.I&&(a.mse=this.I);this.fa&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.wk=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.B.hh[a].apply(this.B.hh,c)}catch(e){Qh(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.rd)return!this.Fo();this.rd=!0;if(2===this.B.compatibility)return this.I="ng",oi(this,"w"),!1;if(1===this.B.compatibility)return this.I="mm",oi(this,"w"),!1;di.getInstance().N=!0;this.Te.document.readyState&&"complete"==this.Te.document.readyState?Yk(this):Yh(this.Te,"load",function(){mh().setTimeout(Ph(292,function(){return Yk(a)}),100)},292);
return!0};
g.k.DC=function(){var a=di.getInstance(),b=al(this,"getMaxSize");a.u=new gg(0,b.width,b.height,0)};
g.k.EC=function(){di.getInstance().D=al(this,"getScreenSize")};
g.k.dispose=function(){Zk(this);mi.prototype.dispose.call(this)};
Pa(Uk);g.k=bl.prototype;g.k.fo=function(a){Yi(a,!1);rca(a)};
g.k.Ir=function(){};
g.k.Hp=function(a,b,c,d){var e=this;this.B||(this.B=this.uA());b=c?b:-1;a=null==this.B?new pj(Zg,a,b,7):new pj(Zg,a,b,7,new mj("measurable_impression",this.B),Mca(this));a.ue=d;jba(a.ob);Tg(a.ob,"queryid",a.ue);a.Ax("");Uba(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.zB.apply(e,g.la(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.UI.apply(e,g.la(h))});
(d=Pj.getInstance().u)&&Zi(a,d);a.xf.ek&&rk.getInstance();return a};
g.k.Hm=function(a){switch(a.Oh()){case 0:if(a=Pj.getInstance().u)a=a.u,g.rb(a.D,this),a.N&&this.ii()&&ri(a);dl(this);break;case 2:uk(),Ug(uh.getInstance().ob,"mpv")&&Pca()}};
g.k.Vj=function(){};
g.k.ii=function(){return!1};
g.k.UI=function(a,b){a.Rm=!0;switch(a.Mh()){case 1:jl(this,a,b);break;case 2:this.Mx(a)}this.Vx()};
g.k.cJ=function(a){xj(a,0);return Aj(a,"start",gi())};
g.k.Dn=function(a,b,c){vk(tk,[a],!gi());return this.Qj(a,b,c)};
g.k.Qj=function(a,b,c){return Aj(a,c,gi())};
g.k.XI=function(a){return kl(a,"firstquartile",1)};
g.k.ZI=function(a){a.xa=!0;return kl(a,"midpoint",2)};
g.k.dJ=function(a){return kl(a,"thirdquartile",3)};
g.k.VI=function(a){var b=kl(a,"complete",4);qj(a);return b};
g.k.pF=function(a,b,c){b=gi();2!=a.Fd||b||(a.Af().N=Rh());vk(tk,[a],!b);2==a.Fd&&(a.Fd=1);return Aj(a,c,b)};
g.k.bJ=function(a,b){var c=this.Dn(a,b||{},"skip");qj(a);return c};
g.k.YI=function(a,b){Yi(a,!0);return this.Dn(a,b||{},"fullscreen")};
g.k.WI=function(a,b){Yi(a,!1);return this.Dn(a,b||{},"exitfullscreen")};
g.k.vx=function(a,b,c){b=a.Af();b.ha=jj(b,Rh(),1!=a.Fd);vk(tk,[a],!gi());1==a.Fd&&(a.Fd=2);return Aj(a,c,gi())};
g.k.aJ=function(a){vk(tk,[a],!gi());return a.B()};
g.k.ew=function(a){vk(tk,[a],!gi());this.jF(a);qj(a);return a.B()};
g.k.zB=function(){};
g.k.Mx=function(){};
g.k.jF=function(){};
g.k.CC=function(){};
g.k.Vx=function(){};
g.k.uA=function(){};var pl=g.A(),rl=!1,sl=!1,tl=!1,Uca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return ql(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 ql(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 ql(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 ql(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 ql(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return sl},
function(){return tl},
function(){return ql(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 ql(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]||ol(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 ol(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 ql(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 ol(a.CSS.supports)},
function(){return ol(Intl.Collator)},
function(a){return ol(a.document.createElement("dialog").show)},
function(){return ql(8)},
function(a){return ol(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 ol(a.document.createElement("div").animate)},
function(a){return ol(a.document.documentElement.webkitRequestFullScreen)},
function(a){return ol(a.navigator.getBattery)},
function(a){return ol(a.navigator.permissions.query)},
function(){return!1},
function(){return ql(9)},
function(){return ol(webkitRequestAnimationFrame)},
function(a){return ol(a.BroadcastChannel.call)},
function(a){return ol(a.FontFace)},
function(a){return ol(a.Gamepad)},
function(){return ql(10)},
function(a){return ol(a.MutationEvent)},
function(a){return ol(a.MutationObserver)},
function(a){return ol(a.crypto.getRandomValues)},
function(a){return ol(a.document.body.createShadowRoot)},
function(a){return ol(a.document.body.webkitCreateShadowRoot)},
function(a){return ol(a.fetch)},
function(){return ql(11)},
function(a){return ol(a.navigator.serviceWorker.register)},
function(a){return ol(a.navigator.webkitGetGamepads)},
function(a){return ol(a.speechSynthesis.speak)},
function(a){return ol(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return ql(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 ql(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 ql(14)},
function(a){return"undefined"==typeof a.navigator.hW},
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")}],Vca=[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}],Wca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Xa(vl,ul);vl.prototype.reset=function(){this.u[0]=1732584193;this.u[1]=4023233417;this.u[2]=2562383102;this.u[3]=271733878;this.D=this.C=0};
vl.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.B,d=this.F,e=this.C,f=0;f<b;){if(0==e)for(;f<=c;)wl(this,a,f),f+=this.B;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.B){wl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.B){wl(this,d);e=0;break}}this.C=e;this.D+=b};
vl.prototype.digest=function(){var a=Array((56>this.C?this.B:2*this.B)-this.C);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.D;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.u[b]>>>d&255;return a};g.u(xl,Pk);xl.prototype.u=function(a){var b=Pk.prototype.u.call(this,a);var c=pl=g.A();var d=ql(5);c=(sl?!d:d)?c|2:c&-3;d=ql(2);c=(tl?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.B||(this.B=Xca());b.F=this.B;b.I=Ok(a,mAa,c,"h",yl("kArwaWEsTs"));b.D=Ok(a,oAa,{},"h",yl("b96YPMzfnx"));b.B=Ok(a,pAa,{},"h",yl("yb8Wev6QDg"));return b};zl.prototype.u=function(){return g.Na(this.B)};g.u(Al,zl);Al.prototype.u=function(a){if(!a.jn)return zl.prototype.u.call(this,a);var b=this.D[a.jn];if(b)return function(c,d,e){b.B(c,d,e)};
Qh(393,Error());return null};g.u(Bl,bl);g.k=Bl.prototype;g.k.Ir=function(a,b){var c=this,d=Pj.getInstance();if(null!=d.u)switch(d.u.getName()){case "nis":var e=ada(this,a,b);break;case "gsv":e=$ca(this,a,b);break;case "exc":e=bda(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Qca(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Mh()&&(e.Y==g.Oa&&(e.Y=function(f){return c.CC(f)}),Zca(this,e,b));
return e};
g.k.CC=function(a){a.B=0;a.fa=0;if("h"==a.F||"n"==a.F){var b;uh.getInstance();if(a.jn&&El(this)){var c=this.N[a.jn];c?b=function(e){return c.u(e)}:null!==c&&Qh(379,Error())}else b=g.Na("ima.common.getVideoMetadata");
if("function"===typeof b)try{var d=b(a.ue)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.F)if(b=g.Na("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{d=b(a.ue)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.F)if(b=g.Na("ima.common.getVideoMetadata"),"function"===typeof b)try{d=b(a.ue)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===d?a.B|=8:null===d?a.B|=16:g.Wb(d)?a.B|=32:null!=d.errorCode&&(a.fa=d.errorCode,a.B|=64));null==d&&(d={});Rca(d,a);bi(d.volume)&&bi(void 0)&&(d.volume*=NaN);
return d};
g.k.uA=function(){if(El(this))return new Al("ima.common.triggerExternalActivityEvent",this.C,this.N);var a=cda(this);return null!=a?new zl(a,this.C):null};
g.k.Mx=function(a){!a.u&&a.Rm&&il(this,a,"overlay_unmeasurable_impression")&&(a.u=!0)};
g.k.jF=function(a){a.xF&&(a.ul()?il(this,a,"overlay_viewable_end_of_session_impression"):il(this,a,"overlay_unviewable_impression"),a.xF=!1)};
g.k.zB=function(){};
g.k.Vx=function(){};
g.k.Hp=function(a,b,c,d){a=bl.prototype.Hp.call(this,a,b,c,d);this.F&&(b=this.I,null==a.I&&(a.I=new Wba),b.u[a.ue]=a.I,a.I.F=kAa);return a};
g.k.fo=function(a){a&&1==a.Mh()&&this.F&&delete this.I.u[a.ue];return bl.prototype.fo.call(this,a)};
Pa(Bl);var Cl=new Nk;Cl.F="stopped";Cl.u="stopped";Cl.C="stopped";Cl.I="stopped";Cl.D="stopped";Cl.B="stopped";Object.freeze(Cl);var qAa=Mh(193,Gl,ll);g.Ja("Goog_AdSense_Lidar_sendVastEvent",qAa,void 0);var rAa=Ph(194,function(a,b){b=void 0===b?{}:b;var c=Dl(Bl.getInstance(),a,b);return Fl(c)});
g.Ja("Goog_AdSense_Lidar_getViewability",rAa,void 0);var sAa=Mh(195,function(){return oh()},void 0);
g.Ja("Goog_AdSense_Lidar_getUrlSignalsArray",sAa,void 0);var tAa=Ph(196,function(){return g.Fj(oh())});
g.Ja("Goog_AdSense_Lidar_getUrlSignalsList",tAa,void 0);var gea=(new Date).getTime();var bm=!g.ye||g.ae(9),uAa=g.ye&&!g.$d("9");!g.Ae||g.$d("528");qg&&g.$d("1.9b")||g.ye&&g.$d("8")||g.rg&&g.$d("9.5")||g.Ae&&g.$d("528");qg&&!g.$d("8")||g.ye&&g.$d("9");var kda=function(){if(!g.v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{g.v.addEventListener("test",g.Oa,b),g.v.removeEventListener("test",g.Oa,b)}catch(c){}return a}();g.Ll.prototype.stopPropagation=function(){this.u=!0};
g.Ll.prototype.preventDefault=function(){this.defaultPrevented=!0};var swa;swa=g.Ae?"webkitAnimationEnd":g.rg?"oanimationend":"animationend";g.Xa(Nl,g.Ll);var vAa={2:"touch",3:"pen",4:"mouse"};
Nl.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;var e=a.relatedTarget;e?qg&&(Vd(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;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:vAa[a.pointerType]||"";this.state=a.state;this.B=a;a.defaultPrevented&&this.preventDefault()};
Nl.prototype.stopPropagation=function(){Nl.Wc.stopPropagation.call(this);this.B.stopPropagation?this.B.stopPropagation():this.B.cancelBubble=!0};
Nl.prototype.preventDefault=function(){Nl.Wc.preventDefault.call(this);var a=this.B;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,uAa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Ol="closure_listenable_"+(1E6*Math.random()|0),hda=0;Rl.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.u++);var h=Tl(a,b,d,e);-1<h?(b=a[h],c||(b.Mq=!1)):(b=new ida(b,this.src,f,!!d,e),b.Mq=c,a.push(b));return b};
Rl.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Tl(e,b,c,d);return-1<b?(Ql(e[b]),g.qb(e,b),0==e.length&&(delete this.listeners[a],this.u--),!0):!1};
Rl.prototype.xo=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Tl(a,b,c,d));return-1<e?a[e]:null};var Zl="closure_lm_"+(1E6*Math.random()|0),em={},am=0,hm="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Xa(g.im,g.B);g.im.prototype[Ol]=!0;g.k=g.im.prototype;g.k.addEventListener=function(a,b,c,d){Vl(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){cm(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.ka;if(b){var c=[];for(var d=1;b;b=b.ka)c.push(b),++d}b=this.xa;d=a.type||a;if("string"===typeof a)a=new g.Ll(a,b);else if(a instanceof g.Ll)a.target=a.target||b;else{var e=a;a=new g.Ll(d,b);g.bc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=jm(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=jm(h,d,!0,a)&&e,a.u||(e=jm(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=jm(h,d,!1,a)&&e;return e};
g.k.aa=function(){g.im.Wc.aa.call(this);if(this.C){var a=this.C,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Ql(d[e]);delete a.listeners[c];a.u--}}this.ka=null};
g.k.ra=function(a,b,c,d){return this.C.add(String(a),b,!1,c,d)};
g.k.Hw=function(a,b,c,d){return this.C.add(String(a),b,!0,c,d)};
g.k.Bb=function(a,b,c,d){this.C.remove(String(a),b,c,d)};
g.k.xo=function(a,b,c,d){return this.C.xo(String(a),b,c,d)};km.prototype.get=function(){if(0<this.B){this.B--;var a=this.u;this.u=a.next;a.next=null}else a=this.C();return a};var nm,mda=g.cb;var wm=new km(function(){return new qm},function(a){a.reset()});
pm.prototype.add=function(a,b){var c=wm.get();c.set(a,b);this.B?this.B.next=c:this.u=c;this.B=c};
pm.prototype.remove=function(){var a=null;this.u&&(a=this.u,this.u=this.u.next,this.u||(this.B=null),a.next=null);return a};
qm.prototype.set=function(a,b){this.u=a;this.scope=b;this.next=null};
qm.prototype.reset=function(){this.next=this.scope=this.u=null};var rm,sm=!1,tm=new pm;Am.prototype.reset=function(){this.context=this.onRejected=this.C=this.u=null;this.B=!1};
var Bm=new km(function(){return new Am},function(a){a.reset()});
zm.prototype.then=function(a,b,c){return Km(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
zm.prototype.$goog_Thenable=!0;zm.prototype.cancel=function(a){if(0==this.Ca){var b=new Qm(a);g.um(function(){Mm(this,b)},this)}};
zm.prototype.OQ=function(a){this.Ca=0;ym(this,2,a)};
zm.prototype.PQ=function(a){this.Ca=0;ym(this,3,a)};
zm.prototype.ZH=function(){for(var a;a=Nm(this);)Om(this,a,this.Ca,this.vk);this.Bv=!1};
var Sm=mm;g.Xa(Qm,Za);Qm.prototype.name="cancel";g.Xa(g.Tm,g.im);g.k=g.Tm.prototype;g.k.enabled=!1;g.k.Ua=null;g.k.setInterval=function(a){this.Le=a;this.Ua&&this.enabled?(this.stop(),this.start()):this.Ua&&this.stop()};
g.k.ze=function(){if(this.enabled){var a=g.A()-this.gC;0<a&&a<.8*this.Le?this.Ua=this.eq.setTimeout(this.Yz,this.Le-a):(this.Ua&&(this.eq.clearTimeout(this.Ua),this.Ua=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Ua||(this.Ua=this.eq.setTimeout(this.Yz,this.Le),this.gC=g.A())};
g.k.stop=function(){this.enabled=!1;this.Ua&&(this.eq.clearTimeout(this.Ua),this.Ua=null)};
g.k.aa=function(){g.Tm.Wc.aa.call(this);this.stop();delete this.eq};g.k=g.Wm.prototype;g.k.Ze=function(){Ym(this);for(var a=[],b=0;b<this.u.length;b++)a.push(this.B[this.u[b]]);return a};
g.k.mg=function(){Ym(this);return this.u.concat()};
g.k.isEmpty=function(){return 0==this.C};
g.k.clear=function(){this.B={};this.Bk=this.C=this.u.length=0};
g.k.remove=function(a){return Xm(this.B,a)?(delete this.B[a],this.C--,this.Bk++,this.u.length>2*this.C&&Ym(this),!0):!1};
g.k.get=function(a,b){return Xm(this.B,a)?this.B[a]:b};
g.k.set=function(a,b){Xm(this.B,a)||(this.C++,this.u.push(a),this.Bk++);this.B[a]=b};
g.k.forEach=function(a,b){for(var c=this.mg(),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.Wm(this)};
g.k.yi=function(a){Ym(this);var b=0,c=this.Bk,d=this,e=new aj;e.next=function(){if(c!=d.Bk)throw Error("The map has changed since the iterator was created");if(b>=d.u.length)throw bj;var f=d.u[b++];return a?f:d.B[f]};
return e};g.Zm.prototype.toString=function(){var a=[],b=this.F;b&&a.push(fn(b,wAa,!0),":");var c=this.u;if(c||"file"==b)a.push("//"),(b=this.N)&&a.push(fn(b,wAa,!0),"@"),a.push(ld(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.B)this.u&&"/"!=c.charAt(0)&&a.push("/"),a.push(fn(c,"/"==c.charAt(0)?xAa:yAa,!0));(c=this.C.toString())&&a.push("?",c);(c=this.I)&&a.push("#",fn(c,zAa));return a.join("")};
g.Zm.prototype.resolve=function(a){var b=this.clone(),c=!!a.F;c?g.$m(b,a.F):c=!!a.N;c?b.N=a.N:c=!!a.u;c?g.an(b,a.u):c=null!=a.D;var d=a.B;if(c)g.bn(b,a.D);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.u&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=pc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=
f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=""!==a.C.toString();c?cn(b,a.C.clone()):c=!!a.I;c&&(b.I=a.I);return b};
g.Zm.prototype.clone=function(){return new g.Zm(this)};
var wAa=/[#\/\?@]/g,yAa=/[#\?:]/g,xAa=/[#\?]/g,tda=/[#\?@]/g,zAa=/#/g;g.k=en.prototype;g.k.add=function(a,b){hn(this);this.C=null;a=jn(this,a);var c=this.u.get(a);c||this.u.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
g.k.remove=function(a){hn(this);a=jn(this,a);return Xm(this.u.B,a)?(this.C=null,this.B=this.B-this.u.get(a).length,this.u.remove(a)):!1};
g.k.clear=function(){this.u=this.C=null;this.B=0};
g.k.isEmpty=function(){hn(this);return 0==this.B};
g.k.forEach=function(a,b){hn(this);this.u.forEach(function(c,d){g.Gb(c,function(e){a.call(b,e,d,this)},this)},this)};
g.k.mg=function(){hn(this);for(var a=this.u.Ze(),b=this.u.mg(),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.Ze=function(a){hn(this);var b=[];if("string"===typeof a)kn(this,a)&&(b=g.tb(b,this.u.get(jn(this,a))));else{a=this.u.Ze();for(var c=0;c<a.length;c++)b=g.tb(b,a[c])}return b};
g.k.set=function(a,b){hn(this);this.C=null;a=jn(this,a);kn(this,a)&&(this.B=this.B-this.u.get(a).length);this.u.set(a,[b]);this.B=this.B+1;return this};
g.k.get=function(a,b){if(!a)return b;var c=this.Ze(a);return 0<c.length?String(c[0]):b};
g.k.toString=function(){if(this.C)return this.C;if(!this.u)return"";for(var a=[],b=this.u.mg(),c=0;c<b.length;c++){var d=b[c],e=ld(d);d=this.Ze(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+ld(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new en;a.C=this.C;this.u&&(a.u=this.u.clone(),a.B=this.B);return a};var mn="://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(" "),vda=/\bocr\b/;var wda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;pn.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.B[a]!=b&&(this.B[a]=b,this.u=-1)};
pn.prototype.get=function(a){return!!this.B[a]};g.Xa(g.qn,g.B);g.k=g.qn.prototype;g.k.start=function(){this.stop();this.D=!1;var a=rn(this),b=sn(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.u=Vl(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.u=a&&b?a.call(this.B,this.C):this.B.setTimeout(laa(this.C),20)};
g.k.ub=function(){this.isActive()||this.start()};
g.k.stop=function(){if(this.isActive()){var a=rn(this),b=sn(this);a&&!b&&this.B.mozRequestAnimationFrame?dm(this.u):a&&b?b.call(this.B,this.u):this.B.clearTimeout(this.u)}this.u=null};
g.k.lg=function(){this.isActive()&&(this.stop(),this.sB())};
g.k.isActive=function(){return null!=this.u};
g.k.sB=function(){this.D&&this.u&&dm(this.u);this.u=null;this.I.call(this.F,g.A())};
g.k.aa=function(){this.stop();g.qn.Wc.aa.call(this)};g.Xa(g.H,g.B);g.k=g.H.prototype;g.k.Bo=0;g.k.aa=function(){g.H.Wc.aa.call(this);this.stop();delete this.u;delete this.B};
g.k.start=function(a){this.stop();this.Bo=g.Um(this.C,void 0!==a?a:this.Le)};
g.k.ub=function(a){this.isActive()||this.start(a)};
g.k.stop=function(){this.isActive()&&g.v.clearTimeout(this.Bo);this.Bo=0};
g.k.lg=function(){this.isActive()&&g.tn(this)};
g.k.isActive=function(){return 0!=this.Bo};
g.k.tB=function(){this.Bo=0;this.u&&this.u.call(this.B)};g.Xa(un,ul);un.prototype.reset=function(){this.u[0]=1732584193;this.u[1]=4023233417;this.u[2]=2562383102;this.u[3]=271733878;this.u[4]=3285377520;this.D=this.C=0};
un.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.B,d=0,e=this.I,f=this.C;d<b;){if(0==f)for(;d<=c;)vn(this,a,d),d+=this.B;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.B){vn(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.B){vn(this,e);f=0;break}}this.C=f;this.D+=b}};
un.prototype.digest=function(){var a=[],b=8*this.D;56>this.C?this.update(this.F,56-this.C):this.update(this.F,this.B-(this.C-56));for(var c=this.B-1;56<=c;c--)this.I[c]=b&255,b/=256;vn(this,this.I);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.u[c]>>d&255,++b;return a};g.Xa(g.Dn,g.im);g.k=g.Dn.prototype;g.k.Cb=function(){return 1==this.Ca};
g.k.ht=function(){this.hg("begin")};
g.k.rp=function(){this.hg("end")};
g.k.Bf=function(){this.hg("finish")};
g.k.hg=function(a){this.dispatchEvent(a)};var AAa=db(function(){if(g.ye)return g.$d("10.0");var a=g.Fe("DIV"),b=g.Ae?"-webkit":qg?"-moz":g.ye?"-ms":g.rg?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Zza.test("div"))throw Error("");if("DIV"in aAa)throw Error("");c=null;var d="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!Zza.test(h))throw Error("");var e=b[h];if(null!=e){var f=h;if(e instanceof ic)e=jc(e);else if("style"==f.toLowerCase()){if(!g.Sa(e))throw Error("");
e instanceof Nc||(e=Sc(e));e=Oc(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in $za)if(e instanceof mc)e=nc(e).toString();else if(e instanceof g.Fc)e=g.Gc(e);else if("string"===typeof e)e=g.Kc(e).og();else throw Error("");}e.Ui&&(e=e.og());f=f+'="'+zc(String(e))+'"';d+=" "+f}}var h="<div"+d;d=void 0;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===Uza.div?h+=">":(c=Haa(d),h+=">"+g.cd(c).toString()+"</div>",c=c.u());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=dd(h,c);g.hd(a,
b);return""!=g.sg(a.firstChild,"transition")});g.Xa(En,g.Dn);g.k=En.prototype;g.k.play=function(){if(this.Cb())return!1;this.ht();this.hg("play");this.startTime=g.A();this.Ca=1;if(AAa())return g.F(this.u,this.K),this.D=g.Um(this.PP,void 0,this),!0;this.Uv(!1);return!1};
g.k.PP=function(){g.Eg(this.u);yda(this.u,this.I);g.F(this.u,this.B);this.D=g.Um((0,g.z)(this.Uv,this,!1),1E3*this.F)};
g.k.stop=function(){this.Cb()&&this.Uv(!0)};
g.k.Uv=function(a){g.F(this.u,"transition","");g.v.clearTimeout(this.D);g.F(this.u,this.B);this.endTime=g.A();this.Ca=0;a?this.hg("stop"):this.Bf();this.rp()};
g.k.aa=function(){this.stop();En.Wc.aa.call(this)};
g.k.pause=function(){};var zda={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 Dda=Gn("getPropertyValue"),Eda=Gn("setProperty");var Cda={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Kn.prototype.clone=function(){return new g.Kn(this.u,this.F,this.C,this.I,this.D,this.K,this.B,this.N)};g.Mn.prototype.B=0;g.Mn.prototype.reset=function(){this.u=this.C=this.D;this.B=0};
g.Mn.prototype.getValue=function(){return this.C};On.prototype.clone=function(){return new On(this.start,this.end)};
On.prototype.getLength=function(){return this.end-this.start};var BAa=new WeakMap;(function(){if(xza){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Vc))?a[1]:"0"}return bD?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Vc))?a[0].replace(/_/g,"."):"10"):g.lk?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Vc))?a[1]:""):bAa||cAa||dAa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Vc))?a[1].replace(/_/g,"."):""):""})();var Lda=function(){if(g.rB)return Pn(/Firefox\/([0-9.]+)/);if(g.ye||g.Vq||g.rg)return Zd;if(g.ZA)return Td()?Pn(/CriOS\/([0-9.]+)/):Pn(/Chrome\/([0-9.]+)/);if(g.mC&&!Td())return Pn(/Version\/([0-9.]+)/);if(NB||PF){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Vc);if(a)return a[1]+"."+a[2]}else if(g.FB)return(a=Pn(/Android\s+([0-9.]+)/))?a:Pn(/Version\/([0-9.]+)/);return""}();g.Xa(g.Rn,g.B);g.k=g.Rn.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.F;this.u[e]=a;this.u[e+1]=b;this.u[e+2]=c;this.F=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.u;if(a=g.jb(a,function(e){return d[e+1]==b&&d[e+2]==c}))return this.nl(a)}return!1};
g.k.nl=function(a){var b=this.u[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.u[a+1]=g.Oa):(c&&g.rb(c,a),delete this.u[a],delete this.u[a+1],delete this.u[a+2])}return!!b};
g.k.V=function(a,b){var c=this.B[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.I)for(e=0;e<c.length;e++){var h=c[e];Mda(this.u[h+1],this.u[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f;e++)h=c[e],this.u[h+1].apply(this.u[h+2],d)}finally{if(this.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.nl(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(g.Gb(b,this.nl,this),delete this.B[a])}else this.u.length=0,this.B={}};
g.k.aa=function(){g.Rn.Wc.aa.call(this);this.clear();this.C.length=0};g.Sn.prototype.set=function(a,b){void 0===b?this.u.remove(a):this.u.set(a,g.Fj(b))};
g.Sn.prototype.get=function(a){try{var b=this.u.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Sn.prototype.remove=function(a){this.u.remove(a)};g.Xa(Tn,g.Sn);Tn.prototype.set=function(a,b){Tn.Wc.set.call(this,a,Vn(b))};
Tn.prototype.B=function(a){a=Tn.Wc.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Tn.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Xa(Wn,Tn);Wn.prototype.set=function(a,b,c){if(b=Vn(b)){if(c){if(c<g.A()){Wn.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.A()}Wn.Wc.set.call(this,a,b)};
Wn.prototype.B=function(a,b){var c=Wn.Wc.B.call(this,a);if(c)if(!b&&g.Xn(c))Wn.prototype.remove.call(this,a);else return c};g.Xa(g.Yn,Wn);g.Xa(Zn,Nda);Zn.prototype.clear=function(){var a=Vba(this.yi(!0)),b=this;g.Gb(a,function(c){b.remove(c)})};g.Xa($n,Zn);g.k=$n.prototype;g.k.isAvailable=function(){if(!this.u)return!1;try{return this.u.setItem("__sak","1"),this.u.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.u.setItem(a,b)}catch(c){if(0==this.u.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.u.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.u.removeItem(a)};
g.k.yi=function(a){var b=0,c=this.u,d=new aj;d.next=function(){if(b>=c.length)throw bj;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};
return d};
g.k.clear=function(){this.u.clear()};
g.k.key=function(a){return this.u.key(a)};g.Xa(ao,$n);g.Xa(bo,$n);g.Xa(eo,Zn);var Oda={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},co=null;g.k=eo.prototype;g.k.isAvailable=function(){return!!this.u};
g.k.set=function(a,b){this.u.setAttribute(fo(a),b);go(this)};
g.k.get=function(a){a=this.u.getAttribute(fo(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.u.removeAttribute(fo(a));go(this)};
g.k.yi=function(a){var b=0,c=this.u.XMLDocument.documentElement.attributes,d=new aj;d.next=function(){if(b>=c.length)throw bj;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};
return d};
g.k.clear=function(){for(var a=this.u.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);go(this)};g.Xa(ho,Zn);ho.prototype.set=function(a,b){this.B.set(this.u+a,b)};
ho.prototype.get=function(a){return this.B.get(this.u+a)};
ho.prototype.remove=function(a){this.B.remove(this.u+a)};
ho.prototype.yi=function(a){var b=this.B.yi(!0),c=this,d=new aj;d.next=function(){for(var e=b.next();e.substr(0,c.u.length)!=c.u;)e=b.next();return a?e.substr(c.u.length):c.B.get(e)};
return d};jo.prototype.getValue=function(){return this.B};
jo.prototype.clone=function(){return new jo(this.u,this.B)};g.k=ko.prototype;g.k.remove=function(){var a=this.u,b=a.length,c=a[0];if(!(0>=b)){if(1==b)pb(a);else{a[0]=a.pop();a=0;b=this.u;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].u<b[f].u?h:f;if(b[f].u>e.u)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Ze=function(){for(var a=this.u,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.mg=function(){for(var a=this.u,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].u);return b};
g.k.clone=function(){return new ko(this)};
g.k.isEmpty=function(){return g.ob(this.u)};
g.k.clear=function(){pb(this.u)};g.Xa(g.mo,ko);Pa(no);no.prototype.u=0;g.Xa(oo,g.Bf);g.Xa(po,g.Bf);var Pda=[2,13,14];var qo=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.Ja("yt.config_",qo,void 0);var Bo={};var Co=[];var CAa,Ko,Mo;CAa=g.v.ytPubsubPubsubInstance||new g.Rn;Ko=g.v.ytPubsubPubsubSubscribedKeys||{};Mo=g.v.ytPubsubPubsubTopicToKeys||{};g.Lo=g.v.ytPubsubPubsubIsSynchronous||{};g.Rn.prototype.subscribe=g.Rn.prototype.subscribe;g.Rn.prototype.unsubscribeByKey=g.Rn.prototype.nl;g.Rn.prototype.publish=g.Rn.prototype.V;g.Rn.prototype.clear=g.Rn.prototype.clear;g.Ja("ytPubsubPubsubInstance",CAa,void 0);g.Ja("ytPubsubPubsubTopicToKeys",Mo,void 0);g.Ja("ytPubsubPubsubIsSynchronous",g.Lo,void 0);
g.Ja("ytPubsubPubsubSubscribedKeys",Ko,void 0);var Tda=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Uda=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Uo={};var YB={AT:"LIVING_ROOM_APP_MODE_UNSPECIFIED",xT:"LIVING_ROOM_APP_MODE_MAIN",wT:"LIVING_ROOM_APP_MODE_KIDS",yT:"LIVING_ROOM_APP_MODE_MUSIC",zT:"LIVING_ROOM_APP_MODE_UNPLUGGED",vT:"LIVING_ROOM_APP_MODE_GAMING"},qza={nU:"PLAYBACK_TYPE_UNKNOWN",hU:"PLAYBACK_TYPE_APPLICATION",gU:"PLAYBACK_TYPE_ADS",lU:"PLAYBACK_TYPE_REMOTE",mU:"PLAYBACK_TYPE_SECONDARY_CAMERA",kU:"PLAYBACK_TYPE_PREROLL_INTERSTITIAL",jU:"PLAYBACK_TYPE_POSTROLL_INTERSTITIAL",iU:"PLAYBACK_TYPE_MIDROLL_INTERSTITIAL"};var DAa=0,Vo=g.Ae?"webkit":qg?"moz":g.ye?"ms":g.rg?"o":"",EAa=g.Na("ytDomDomGetNextId")||function(){return++DAa};
g.Ja("ytDomDomGetNextId",EAa,void 0);var Xda={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};Yo.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Yo.prototype.RB=function(){return this.event?!1===this.event.returnValue:!1};
Yo.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Yo.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $o=g.v.ytEventsEventsListeners||{};g.Ja("ytEventsEventsListeners",$o,void 0);var ap=g.v.ytEventsEventsCounter||{count:0};g.Ja("ytEventsEventsCounter",ap,void 0);var FAa=db(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),bp=db(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var Lw=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.Xa(np,g.B);np.prototype.X=function(a){void 0===a.u&&Zo(a);var b=a.u;void 0===a.B&&Zo(a);this.u=new g.fe(b,a.B)};
np.prototype.Pj=function(){return this.u||new g.fe};
np.prototype.K=function(){if(this.u){var a=Lw();if(0!=this.D){var b=this.I,c=this.u,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.F)/this.F)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.P();this.F=d}this.D=a;this.I=this.u;this.C=(this.C+1)%4}};
np.prototype.aa=function(){window.clearInterval(this.W);g.dp(this.N)};g.u(rp,aea);rp.prototype.start=function(){var a=g.Na("yt.scheduler.instance.start");a&&a()};
rp.prototype.pause=function(){var a=g.Na("yt.scheduler.instance.pause");a&&a()};
Pa(rp);rp.getInstance();var yp={};var l1;l1=window;g.O=l1.ytcsi&&l1.ytcsi.now?l1.ytcsi.now:l1.performance&&l1.performance.timing&&l1.performance.now&&l1.performance.timing.navigationStart?function(){return l1.performance.timing.navigationStart+l1.performance.now()}:function(){return(new Date).getTime()};var cea=g.vo("initial_gel_batch_timeout",1E3),Mp=Math.pow(2,16)-1,Np=null,Lp=0,Cp=void 0,Ap=0,Bp=0,Pp=0,Gp=!0,Dp=g.v.ytLoggingTransportGELQueue_||new Map;g.Ja("ytLoggingTransportGELQueue_",Dp,void 0);var Jp=g.v.ytLoggingTransportTokensToCttTargetIds_||{};g.Ja("ytLoggingTransportTokensToCttTargetIds_",Jp,void 0);var Op=g.v.ytLoggingGelSequenceIdObj_||{};g.Ja("ytLoggingGelSequenceIdObj_",Op,void 0);var dq=new function(){var a=window.document;this.u=window;this.B=a};
g.Ja("yt.ads_.signals_.getAdSignalsString",function(a){return Up(fq(a))},void 0);var gq="XMLHttpRequest"in g.v?function(){return new XMLHttpRequest}:null;var jq={Authorization:"AUTHORIZATION","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","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"},jea="app debugcss debugjs expflag force_ad_params force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address client_dev_root_url".split(" "),
qq=!1,DG=kq;yq.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.u)try{this.u.set(a,b,g.A()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Fj(b))}catch(f){return}else e=escape(b);g.vq(a,e,c,this.B)};
yq.prototype.get=function(a,b){var c=void 0,d=!this.u;if(!d)try{c=this.u.get(a)}catch(e){d=!0}if(d&&(c=g.wq(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
yq.prototype.remove=function(a){this.u&&this.u.remove(a);g.xq(a,"/",this.B)};var uU={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};new g.im;g.u(Cq,Error);var Gq=[],Dq;var m1={},rea=(m1.AUTH_INVALID="No user identifier specified.",m1.EXPLICIT_ABORT="Transaction was explicitly aborted.",m1.IDB_NOT_SUPPORTED="IndexedDB is not supported.",m1.MISSING_OBJECT_STORE="Object store not created.",m1.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",m1.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",m1.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",m1);g.u(Hq,Cq);g.u(Iq,Hq);Jq.all=function(a){return new Jq(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={fm:0};f.fm<a.length;f={fm:f.fm},++f.fm)Jq.resolve(a[f.fm]).then(function(h){return function(l){d[h.fm]=l;e--;0===e&&b(d)}}(f))["catch"](function(h){c(h)})})};
Jq.resolve=function(a){return new Jq(function(b,c){a instanceof Jq?a.then(b,c):b(a)})};
Jq.reject=function(a){return new Jq(function(b,c){c(a)})};
Jq.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:tea,e=null!==b&&void 0!==b?b:sea;return new Jq(function(f,h){"PENDING"===c.state.status?(c.u.push(function(){Lq(c,c,d,f,h)}),c.onRejected.push(function(){Mq(c,c,e,f,h)})):"FULFILLED"===c.state.status?Lq(c,c,d,f,h):"REJECTED"===c.state.status&&Mq(c,c,e,f,h)})};
Jq.prototype["catch"]=function(a){return this.then(void 0,a)};g.k=Pq.prototype;g.k.add=function(a,b,c){return Rq(this,[a],"readwrite",function(d){return Tq(d,a).add(b,c)})};
g.k.clear=function(a){return Rq(this,[a],"readwrite",function(b){return Tq(b,a).clear()})};
g.k.close=function(){var a;this.u.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return Rq(this,[a],"readonly",function(c){return Tq(c,a).count(b)})};
g.k["delete"]=function(a,b){return Rq(this,[a],"readwrite",function(c){return Tq(c,a)["delete"](b)})};
g.k.get=function(a,b){return Rq(this,[a],"readwrite",function(c){return Tq(c,a).get(b)})};
g.k=Sq.prototype;g.k.add=function(a,b){return Oq(this.u.add(a,b))};
g.k.clear=function(){return Oq(this.u.clear()).then(function(){})};
g.k.count=function(a){return Oq(this.u.count(a))};
g.k["delete"]=function(a){return Oq(this.u["delete"](a))};
g.k.get=function(a){return Oq(this.u.get(a))};
g.k.index=function(a){return new Uq(this.u.index(a))};
g.k.getName=function(){return this.u.name};
Qq.prototype.abort=function(){this.u.abort();this.aborted=!0;var a=new Hq("EXPLICIT_ABORT");a.sampleWeight=0;throw a;};
Qq.prototype.commit=function(){var a=this.u;a.commit&&!this.aborted&&a.commit()};
Uq.prototype.count=function(a){return Oq(this.u.count(a))};
Uq.prototype.get=function(a){return Oq(this.u.get(a))};var Wq,Yq,zea=["getAll","getAllKeys","getKey","openKeyCursor"],Aea=["getAll","getAllKeys","getKey","openKeyCursor"];var GAa=g.vo("network_polling_interval",3E4);g.u($q,g.im);$q.prototype.B=function(){var a=this;pp(function(){Zq()?(!1===a.u&&g.N(Error("NetworkStatusManager missed online event.")),a.u=!0,a.F&&a.F()):(!0===a.u&&g.N(Error("NetworkStatusManager missed offline event.")),a.u=!1,a.D&&a.D());a.B()},GAa)};g.cr.prototype.isReady=function(){!this.wf&&tq()&&(this.wf=g.Ip());return!!this.wf};var Gea=[{qC:function(a){return"Cannot read property '"+a.key+"'"},
tx:{TypeError:[{xg:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{xg:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{xg:/\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"]},{xg:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,
groups:["key"]},{xg:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]}],Error:[{xg:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}]}},{qC:function(a){return"Cannot call '"+a.key+"'"},
tx:{TypeError:[{xg:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{xg:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{xg:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{xg:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{xg:/\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"]},
{xg:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}}];var ir;var Hea=new g.Rn;var hr=new Set,fr=0,Iea=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];jr.prototype.initialize=function(a,b,c,d,e,f){var h=this;f=void 0===f?!1:f;b?(this.gd=!0,g.So(b,function(){h.gd=!1;if(window.botguard)kr(h,c,d,f);else{var l=To(b),m=document.getElementById(l);m&&(Ro(l),m.parentNode.removeChild(m));g.er(new Cq("Unable to load Botguard","from "+b))}},e)):a&&(e=g.Fe("SCRIPT"),e.textContent=a,e.nonce=Ma(),document.head.appendChild(e),document.head.removeChild(e),window.botguard?kr(this,c,d,f):g.er(Error("Unable to load Botguard from JS")))};
jr.prototype.rd=function(){return!!this.u};
jr.prototype.dispose=function(){this.u=null};var Lea=[],nr=!1;g.u(pr,Za);sr.prototype.then=function(a,b,c){return 1===this.Ca&&a?(a=a.call(c,this.u),xm(a)?a:ur(a)):2===this.Ca&&b?(a=b.call(c,this.u),xm(a)?a:tr(a)):this};
sr.prototype.getValue=function(){return this.u};
sr.prototype.$goog_Thenable=!0;g.u(wr,Za);wr.prototype.name="BiscottiError";g.u(vr,Za);vr.prototype.name="BiscottiMissingError";var yr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},xr=null;var Nea=g.uo("html5_disable_client_tmp_logs");var Er=g.Na("ytglobal.prefsUserPrefsPrefs_")||{};g.Ja("ytglobal.prefsUserPrefsPrefs_",Er,void 0);g.k=Fr.prototype;g.k.get=function(a,b){Jr(a);Ir(a);var c=void 0!==Er[a]?Er[a].toString():null;return null!=c?c:b?b:""};
g.k.set=function(a,b){Jr(a);Ir(a);if(null==b)throw Error("ExpectedNotNull");Er[a]=b.toString()};
g.k.remove=function(a){Jr(a);Ir(a);delete Er[a]};
g.k.save=function(){g.vq(this.u,this.dump(),63072E3)};
g.k.clear=function(){g.Xb(Er)};
g.k.dump=function(){var a=[],b;for(b in Er)a.push(b+"="+encodeURIComponent(String(Er[b])));return a.join("&")};
Pa(Fr);var Pea=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Rea=["/fashion","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ","/channel/UCTApTkbpcqiLL39WUlne4ig","/channel/UCW5PCzG3KQvbOX4zc3KY0lQ"];g.u(g.Pr,g.B);g.Pr.prototype.R=function(a,b,c,d,e){c=Do((0,g.z)(c,d||this.oa));c={target:a,name:b,callback:c};var f;e&&FAa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.I.push(c);return c};
g.Pr.prototype.Bb=function(a){for(var b=0;b<this.I.length;b++)if(this.I[b]==a){this.I.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
g.Pr.prototype.aa=function(){g.Rr(this);g.B.prototype.aa.call(this)};g.Xa(g.P,g.B);g.P.prototype.subscribe=function(a,b,c){return this.la()?0:this.jb.subscribe(a,b,c)};
g.P.prototype.unsubscribe=function(a,b,c){return this.la()?!1:this.jb.unsubscribe(a,b,c)};
g.P.prototype.jk=function(a){return this.la()?!1:this.jb.nl(a)};
g.P.prototype.V=function(a,b){return this.la()?!1:this.jb.V.apply(this.jb,arguments)};g.u(g.Vr,g.P);g.k=g.Vr.prototype;g.k.cancel=function(){this.D&&(this.D=!1,this.V("dragend",0,0,null));this.B&&(this.B=!1,this.V("hoverend",0,0,null),g.Rr(this.u),Ur(this))};
g.k.nD=function(a){g.Rr(this.u);Wr(this,Xr("move"),this.lD);Wr(this,Xr("out"),this.mD);Wr(this,"touchstart",this.zy);this.C&&Wr(this,Xr("down"),this.fx);var b=g.ep(a);a=hp(a);this.B=!0;this.V("hoverstart",a.x,a.y,b);this.V("hovermove",a.x,a.y,b)};
g.k.lD=function(a){var b=g.ep(a);a=hp(a);if(this.F){var c=this.F;this.F=null;if(gp(c)==b&&ge(hp(c),a))return}this.V("hovermove",a.x,a.y,b)};
g.k.mD=function(a){var b=hp(a),c=gp(a);try{if(c&&g.Me(this.I,c)){this.F=a;this.V("hovermove",b.x,b.y,c);return}}catch(d){}g.Rr(this.u);Ur(this);this.B=!1;this.V("hoverend",b.x,b.y,c)};
g.k.LL=function(a){this.nD(a);this.fx(a)};
g.k.fx=function(a){if("number"!==typeof a.button||0==a.button){g.Rr(this.u);this.u.R(document,Xr("move"),this.KL);this.u.R(document,Xr("up"),this.PL);var b=g.ep(a);if(g.Ae)Wr(this,"dragstart",this.TH);else if(g.ip(a),(g.lC||qg)&&b)a:{for(var c=b;c;){if(Qe(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.D=!0;a=hp(a);this.V("dragstart",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)}};
g.k.TH=function(a){g.ip(a)};
g.k.KL=function(a){var b=g.ep(a);b==document&&(b=null);a=hp(a);this.V("hovermove",a.x,a.y,b);this.V("dragmove",a.x,a.y,b)};
g.k.PL=function(a){g.Rr(this.u);this.D=!1;var b=fp(a),c=g.ep(a);a=hp(a);b&&g.Me(this.I,b)?(Wr(this,Xr("move"),this.lD),Wr(this,Xr("out"),this.mD),Wr(this,Xr("down"),this.fx),Wr(this,"touchstart",this.zy),this.V("dragend",a.x,a.y,c)):(Ur(this),this.B=!1,this.V("dragend",a.x,a.y,c),this.V("hoverend",a.x,a.y,c))};
g.k.zy=function(a){var b=a.changedTouches[0];b&&(g.Rr(this.u),Wr(this,"touchmove",this.JQ),Wr(this,"touchend",this.MF),Wr(this,"touchcancel",this.MF),this.K=b.identifier,a=g.ep(a),this.B||(this.B=!0,this.V("hoverstart",b.pageX,b.pageY,a)),this.V("hovermove",b.pageX,b.pageY,a),this.C&&(this.D=!0,this.V("dragstart",b.pageX,b.pageY,a),this.V("dragmove",b.pageX,b.pageY,a)))};
g.k.JQ=function(a){var b=Yr(this,a);b&&(this.C&&g.ip(a),a=g.ep(a),this.V("hovermove",b.pageX,b.pageY,a),this.C&&this.V("dragmove",b.pageX,b.pageY,a))};
g.k.MF=function(a){var b=Yr(this,a);if(b){g.Rr(this.u);Ur(this);this.B=!1;var c=g.ep(a);this.C&&(this.N||g.ip(a),this.D=!1,this.V("dragend",b.pageX,b.pageY,c));this.V("hoverend",b.pageX,b.pageY,c)}};
g.k.aa=function(){this.C&&(g.Ae&&this.I.removeAttribute("draggable"),this.I.style.touchAction="");g.Rr(this.u);g.P.prototype.aa.call(this)};Zr.prototype.clone=function(){var a=new Zr,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Qa(c)?g.Zb(c):c}return a};var Ova,HAa,IAa,JAa,Kua,KAa,LAa,MAa;Ova=["embedded_player"];HAa=["share/get_web_player_share_panel"];IAa=["feedback"];JAa=["notification/modify_channel_preference"];Kua=["player"];KAa=["browse/edit_playlist"];LAa=["subscription/subscribe"];MAa=["subscription/unsubscribe"];g.Mua=["next","unplugged/watch_next"];var $r=g.A().toString();var ms=g.v.ytLoggingDocDocumentNonce_||bs();g.Ja("ytLoggingDocDocumentNonce_",ms,void 0);var Uea=1;ds.prototype.getAsJson=function(){var a={};void 0!==this.u.trackingParams?a.trackingParams=this.u.trackingParams:(a.veType=this.u.veType,void 0!==this.u.veCounter&&(a.veCounter=this.u.veCounter),void 0!==this.u.elementIndex&&(a.elementIndex=this.u.elementIndex));void 0!==this.u.dataElement&&(a.dataElement=this.u.dataElement.getAsJson());void 0!==this.u.youtubeData&&(a.youtubeData=this.u.youtubeData);return a};
ds.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
ds.prototype.isClientVe=function(){return!this.u.trackingParams&&!!this.u.veType};g.Ja("yt_logging_screen.getRootVeType",hs,void 0);g.Ja("yt_logging_screen.getCurrentCsn",g.ks,void 0);g.Ja("yt_logging_screen.getCttAuthInfo",ls,void 0);g.Ja("yt_logging_screen.setCurrentScreen",ns,void 0);ps.prototype.toString=function(){return this.topic};var NAa=g.Na("ytPubsub2Pubsub2Instance")||new g.Rn;g.Rn.prototype.subscribe=g.Rn.prototype.subscribe;g.Rn.prototype.unsubscribeByKey=g.Rn.prototype.nl;g.Rn.prototype.publish=g.Rn.prototype.V;g.Rn.prototype.clear=g.Rn.prototype.clear;g.Ja("ytPubsub2Pubsub2Instance",NAa,void 0);var ts=g.Na("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ja("ytPubsub2Pubsub2SubscribedKeys",ts,void 0);var vs=g.Na("ytPubsub2Pubsub2TopicToKeys")||{};g.Ja("ytPubsub2Pubsub2TopicToKeys",vs,void 0);
var us=g.Na("ytPubsub2Pubsub2IsAsync")||{};g.Ja("ytPubsub2Pubsub2IsAsync",us,void 0);g.Ja("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.u(zs,os);var Xea=new ps("screen-created",zs),Es=[],Fs=0;var Os;g.Ns=db(function(){var a=new ao;return a.isAvailable()?new g.Yn(a):null});
Os=db(function(){var a=new bo;return a.isAvailable()?new g.Yn(a):null});var Ts=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Ja("yt.msgs_",Ts,void 0);var Xs={},afa=0;var hma={sS:1,zS:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};ct.prototype.skip=function(a){this.u+=a};
ct.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var Yx=!1;var n1={},OAa=(n1.predictStart="predictStart",n1.start="start",n1["continue"]="continue",n1.stop="stop",n1),fga={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};var Ft=!1;var YS=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();var Yt=!0;du.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};iu.prototype.isVideo=function(){return!!this.u.info.video};
iu.prototype.Oj=function(){return this.u.Oj(this)};g.k=tu.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if(uu(this,a)){var b=this.u[this.u.length-1];this.u[this.u.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);wu(this)}else this.u.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new tu,c=new tu,d=g.q(this.u),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{Rr:b,Wl:c}};
g.k.isFocused=function(a){return a>=this.C&&a<this.C+this.u[this.B].length};
g.k.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&wu(this);this.C+this.u[this.B].length<=a&&this.B<this.u.length;)this.C+=this.u[this.B].length,this.B+=1;this.D=void 0}};Eu.prototype.verify=function(a){if(this.info.fb!=this.u.getLength())return a.slength=this.info.fb.toString(),a.range=this.u.getLength().toString(),!1;if(1==this.info.u.info.containerType){if(8>this.info.fb||4==this.info.type)return!0;var b=Fu(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.fb&&1936286840==b;if(3==this.info.type&&0==this.info.C)return 1836019558==b||1936286840==
b||1937013104==b||1718909296==b||1701671783==b||1936419184==b}else if(2==this.info.u.info.containerType){if(4>this.info.fb||4==this.info.type)return!0;c=Fu(this).getUint32(0,!1);a.ebm=c.toString();if(3==this.info.type&&0==this.info.C)return 524531317==c||440786851==c}return!0};var Tu={lc:function(a,b){a.splice(0,b)},
Ox:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
ND:function(a){a.reverse()}};var jza=/^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\/)/,Xu=/^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}\.)+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\/)/,
kza=/^https?:\/\/(www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/slav)/,sfa=/^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|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.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)|$))/,
qfa=/^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|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)|$))/,ofa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(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|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|plus\.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\/)/,
lza=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/,pfa=/^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)/,nfa=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(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|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|prod\.google\.com|lh3\.photos\.google\.com|plus\.google\.com|currents\.google\.com|mail\.google\.com|youtube\.com|xfx7\.com|yt\.akamaized\.net|chat\.google\.com)[.]?(:[0-9]+)?\/|([A-Za-z0-9-]{1,63}\.)*(sandbox\.google\.com)(:[0-9]+)?(\/(?!url\b)|$)|([A-Za-z0-9-]{1,63}\.)*c\.lh3(-d[a-gz]|-testonly)?\.(googleusercontent|photos\.google)\.com\/.*$)/,
Mka=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|proxy\.googleprod\.com|c\.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)/,
Lka=/^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|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|plus\.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|youtubekids\.com|vevo\.com|chat\.google\.com|meet\.google\.com|stadia\.google\.com|shoploop\.area120\.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)/,
PAa=/^(https\:\/\/photos\.google\.com|https\:\/\/get\.google\.com|https\:\/\/class\.photos\.google\.com|https\:\/\/plus\.google\.com|https\:\/\/currents\.google\.com|https\:\/\/mail\.google\.com|https\:\/\/chat\.google\.com|https\:\/\/stadia\.google\.com|https\:\/\/one\.google\.com|https\:\/\/shoploop\.area120\.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\.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\.)?daily\.alpha|(www\.)?weekly\.alpha|(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]+)?$|(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$)/;ev.prototype.set=function(a,b){this.u[a]!==b&&(this.u[a]=b,this.url="")};
ev.prototype.get=function(a){fv(this);return this.u[a]||null};
ev.prototype.cd=function(){this.url||(this.url=tfa(this));return this.url};
ev.prototype.clone=function(){var a=new ev(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.u=g.Zb(this.u);a.url=this.url;return a};nv.prototype.set=function(a,b){this.Nf.get(a);this.u[a]=b;this.url=""};
nv.prototype.get=function(a){return this.u[a]||this.Nf.get(a)};
nv.prototype.cd=function(){this.url||(this.url=ufa(this));return this.url};xv.prototype.gg=function(){return ju(this.u[0])};var o1={},qB=(o1.WIDTH={name:"width",video:!0,valid:640,invalid:99999},o1.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},o1.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},o1.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},o1.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},o1.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},o1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},o1.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},o1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},o1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},o1);var Lv={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"h",214:"h",216:"h",374:"h",375:"h",140:"a",141:"ah",327:"sa",258:"m",380:"mac3",328:"meac3",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",227:"H",147:"H",384:"H",376:"H",385:"H",377:"H",149:"A",261:"M",381:"MAC3",329:"MEAC3",598:"9",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",353:"9",355:"9",271:"9",313:"9",272:"9",302:"9",303:"9",407:"9",
408:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",336:"9h",337:"9h",338:"so",600:"o",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",279:"(",280:"(",317:"(",318:"(",273:"(",274:"(",357:"(",358:"(",275:"(",359:"(",360:"(",276:"(",583:"(",584:"(",314:"(",585:"(",561:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",591:"(h",592:"(h",367:"(h",586:"(h",587:"(h",368:"(h",588:"(h",562:"(h",409:"(",410:"(",411:"(",412:"(",557:"(",558:"(",394:"1",395:"1",
396:"1",397:"1",398:"1",399:"1",400:"1",401:"1",571:"1",402:"1",386:"3",387:"w",406:"6"};var Qka={RR:"auto",fV:"tiny",tT:"light",TU:"small",IT:"medium",rT:"large",WS:"hd720",RS:"hd1080",SS:"hd1440",US:"hd2160",VS:"hd2880",bT:"highres",UNKNOWN:"unknown"};var p1;p1={};g.Fv=(p1.auto=0,p1.tiny=144,p1.light=144,p1.small=240,p1.medium=360,p1.large=480,p1.hd720=720,p1.hd1080=1080,p1.hd1440=1440,p1.hd2160=2160,p1.hd2880=2880,p1.highres=4320,p1);var Jv="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Mv.prototype.Ja=function(){return this.video};
Mv.prototype.Ed=function(){return 2===this.containerType};
Mv.prototype.isAudio=function(){return!!this.audio};
Mv.prototype.isVideo=function(){return!!this.video};g.k=Tv.prototype;g.k.Ee=function(){};
g.k.Qm=function(){};
g.k.Td=function(){return!!this.u&&this.index.Bc()};
g.k.gj=function(){};
g.k.AC=function(){return!1};
g.k.bl=function(){};
g.k.Cl=function(){};
g.k.Oj=function(){};
g.k.Pi=function(){};
g.k.Or=function(){};
g.k.BC=function(a){return[a]};
g.k.Jt=function(a){return[a]};
g.k.qt=function(){};
g.k.Cr=function(){};g.k=g.Uv.prototype;g.k.Us=function(a){return this.B[a]};
g.k.oe=function(a){return this.C[a]/this.F};
g.k.Hr=ba(1);g.k.je=function(){return NaN};
g.k.pB=function(){return null};
g.k.getDuration=function(a){a=this.bB(a);return 0<=a?a/this.F:-1};
g.k.bB=function(a){return a+1<this.u||this.D?this.C[a+1]-this.C[a]:-1};
g.k.Qg=function(){return 0};
g.k.Lb=function(){return this.u-1};
g.k.Nj=function(){return this.D?this.C[this.u]/this.F:NaN};
g.k.qc=function(){return 0};
g.k.Em=function(){return this.u};
g.k.Pv=function(){return""};
g.k.Sg=function(a){a=g.Ab(this.C.subarray(0,this.u),a*this.F);return 0<=a?a:Math.max(0,-a-2)};
g.k.Bc=function(){return 0<=this.Lb()};
g.k.jB=function(a,b){if(a>=this.Lb())return 0;for(var c=0,d=this.oe(a)+b,e=a;e<this.Lb()&&d>this.oe(e);e++)c=Math.max(c,(e+1<this.u||this.D?this.B[e+1]-this.B[e]:-1)/this.getDuration(e));return c};
g.k.resize=function(a){a+=2;var b=this.B;this.B=new Float64Array(a+1);var c=this.C;this.C=new Float64Array(a+1);for(a=0;a<this.u+1;a++)this.B[a]=b[a],this.C[a]=c[a]};
g.k.cap=function(a,b){Vv(this);this.D=!0;this.C[this.u]=b;this.B[this.u]=a};g.u(Wv,Tv);g.k=Wv.prototype;g.k.bl=function(a){var b=new iu(1,this,this.initRange,"initInfo"),c=new iu(2,this,this.indexRange,"indexInfo"),d=[],e=[b];lu(b,c)?e.push(c):(d.push(new xv([c])),a=0);isNaN(this.K)&&(a=0);b=e[e.length-1];a=Math.min(a,this.K-(b.range.end-e[0].range.start+1));0<a&&(a=fu(b.range.end+1,a),e.push(new iu(4,this,a,"tbdRange")));d.push(new xv(e));return d};
g.k.Or=function(a){if(1==a.info.type){if(this.u)return;this.u=Bu(a.u)}else if(2==a.info.type){if(this.N||0<=this.index.Lb())return;if(g.Iu(this.info)){var b=this.index,c=Fu(a);a=a.info.range.start;var d=g.qt(c,0,1936286840);c=Bt(d);b.F=c.Vt;var e=c.VH;b.B[0]=c.PA+a+d.size;b.C[0]=e;b.D=!0;a=c.Tt.length;for(d=0;d<a;d++){e=b;var f=c.Kx[d],h=c.Tt[d];e.u++;Vv(e);e.B[e.u]=e.B[e.u-1]+f;e.C[e.u]=e.C[e.u-1]+h}}else this.N=Fu(a)}if(this.info.Ed()&&this.u&&this.N){c=new DataView(this.u.buffer);b=this.index;
a=this.N;d=this.indexRange.end;e=new It(c);c=Xt(e);if(null!=c&&(b.F=c.ny/c.my,e=new It(a),a=Zt(e,c.Np,d),null!=a)){a=g.q(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.Rk,f=f.Yq,Vv(d),d.B[d.u]=e,d.C[d.u]=f,d.u++;b.cap(c.Sx+c.Np,c.duration)}this.N=null}};
g.k.BC=function(a){for(var b=this.Jt(a.info),c=a.info.range.start+a.info.C,d=a.C,e=[],f=0;f<b.length;f++){var h=b[f].fb;h=a.u.split(b[f].range.start+b[f].C-c).Wl.split(h).Rr;e.push(new Eu(b[f],h,d));d=!1}return e};
g.k.Jt=function(a){for(var b=a.range.start+a.C,c=0;c<this.index.Lb()&&b>=this.index.Us(c+1);)c++;return Xv(this,c,b,a.fb).u};
g.k.gj=function(a){return this.Td()?!0:isNaN(this.K)?!1:a.range.end+1<this.K};
g.k.Cl=function(a,b){this.gj(a);if(!this.Td()){var c=fu(a.range.end+1,b);c.end+1>this.K&&(c=new du(c.start,this.K-1));c=[new iu(4,a.u,c,"getNextRequestInfoByLength")];return new xv(c)}4==a.type&&(c=this.Jt(a),a=c[c.length-1]);c=0;var d=a.range.start+a.C+a.fb;3==a.type&&(c=a.B,d==a.range.end+1&&(c+=1));return Xv(this,c,d,b)};
g.k.Oj=function(){return null};
g.k.Pi=function(a,b){var c=this.index.Sg(a);b&&(c=Math.min(this.index.Lb(),c+1));return Xv(this,c,this.index.Us(c),0)};
g.k.Ee=function(){return!0};
g.k.Qm=function(){return!1};
g.k.Cr=function(){return this.indexRange.length+this.initRange.length};
g.k.qt=function(){return this.indexRange&&this.initRange&&this.initRange.end+1==this.indexRange.start?!0:!1};Yv.prototype.then=function(a,b){return this.promise.then(a,b)};
Yv.prototype.resolve=function(a){this.B(a)};
Yv.prototype.reject=function(a){this.u(a)};var Zv=void 0;var aw=null;var iw=null;g.k=yw.prototype;g.k.Hd=function(a){return"content-type"===a?this.ck.get("type"):""};
g.k.abort=function(){};
g.k.Im=function(){return!0};
g.k.vo=function(){return this.range.length};
g.k.Js=function(){return this.loaded};
g.k.Qr=function(){return!!this.u.getLength()};
g.k.Wg=function(){return!!this.u.getLength()};
g.k.Ks=function(){var a=this.u;this.u=new tu;return a};
g.k.Mw=function(){return this.u};
g.k.li=function(){return!0};
g.k.Jx=function(){return!!this.error};
g.k.Al=function(){return this.error};Aw.prototype.deactivate=function(){this.isActive&&(this.isActive=!1)};var Xfa=0;g.k=Sw.prototype;g.k.start=function(a){var b=this,c={method:this.method,credentials:this.credentials};this.headers&&(c.headers=new Headers(this.headers));this.body&&(c.body=this.body);this.D&&(c.signal=this.D.signal);a=new Request(a,c);fetch(a).then(function(d){b.status=d.status;if(d.ok&&d.body)b.status=b.status||242,b.C=d.body.getReader(),b.la()?b.C.cancel("Cancelling"):(b.K=d.headers,b.ba(),Uw(b));else b.onDone()},function(d){b.onError(d)}).then(void 0,g.N)};
g.k.onDone=function(){if(!this.la()){this.P=!0;if(Tw(this)&&!this.u.getLength()&&!this.I&&this.B){Rw(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.u.append(a);this.B+=a.length}this.X()}};
g.k.onError=function(a){this.errorMessage=String(a);this.I=!0;this.onDone()};
g.k.Hd=function(a){return this.K?this.K.get(a):null};
g.k.Im=function(){return!!this.K};
g.k.Js=function(){return this.B};
g.k.vo=function(){return+this.Hd("content-length")};
g.k.Qr=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Wg=function(){if(this.P)return!!this.u.getLength();var a=this.policy.C;if(a&&this.N+a>Date.now())return!1;a=this.vo()||0;a=Math.max(16384,this.policy.u*a);this.W||(a=Math.max(a,16384));this.policy.Ce&&Rw(this)&&(a=1);return this.u.getLength()>=a};
g.k.Ks=function(){this.Wg();this.N=Date.now();this.W=!0;var a=this.u;this.u=new tu;return a};
g.k.Mw=function(){this.Wg();return this.u};
g.k.la=function(){return this.aborted};
g.k.abort=function(){this.C&&this.C.cancel("Cancelling");this.D&&this.D.abort();this.aborted=!0};
g.k.li=function(){return!0};
g.k.Jx=function(){return this.I};
g.k.Al=function(){return this.errorMessage};g.k=Vw.prototype;g.k.onDone=function(){if(!this.la){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.B=!0;this.C()}};
g.k.Jd=function(a){this.la||(this.status=this.xhr.status,this.D(a.timeStamp,a.loaded))};
g.k.Im=function(){return 2<=this.xhr.readyState};
g.k.Hd=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.Eo(Error("Could not read XHR header "+a)),""}};
g.k.vo=function(){return+this.Hd("content-length")};
g.k.Js=function(){return this.u};
g.k.Qr=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.k.Wg=function(){return this.B&&!!this.response&&!!this.response.byteLength};
g.k.Ks=function(){this.Wg();var a=this.response;this.response=void 0;return new tu([new Uint8Array(a)])};
g.k.Mw=function(){this.Wg();return new tu([new Uint8Array(this.response)])};
g.k.abort=function(){this.la=!0;this.xhr.abort()};
g.k.li=function(){return!1};
g.k.Jx=function(){return!1};
g.k.Al=function(){return""};var q1,r1;Xw.prototype.dF=function(a){var b=this;this.u++;this.C+=a;Ww.forEach(function(c,d){a<c||b.B[d]++})};
Xw.prototype.toString=function(){return""};
var Ww=[20,100,500,2E3],dx=new Yw,s1,QAa=qo.EXPERIMENT_FLAGS;s1=QAa?QAa.html5_enable_profiler:void 0;var Zw=null!==s1&&void 0!==s1?s1:!1,$w=(null===(r1=null===(q1=window.performance)||void 0===q1?void 0:q1.now)||void 0===r1?0:r1.call(q1))?function(){return window.performance.now()}:function(){return+Date.now()};var vza=bx("plssv",function(a){a.unstorable||(g.Ps("yt-player-volume",a),g.Ps("yt-player-volume",a,2592E3))}),Pya=bx("plssv",function(){var a=g.Qs("yt-player-volume")||{},b=a.volume;
return{volume:isNaN(b)?100:g.be(Math.floor(b),0,100),muted:!!a.muted}}),kga=bx("plssbs",function(a){g.Ps("yt-player-bandwidth",a,2592E3)}),iga=bx("plssbs",function(){return g.Qs("yt-player-bandwidth")||{}});g.k=px.prototype;g.k.cd=function(){return this.D.cd()};
g.k.FP=function(a,b,c){if(!this.la()&&this.u){this.I=this.u.status;this.B.oa||sx(this,!1);var d=this.timing;a=a>d.u&&4E12>a?a:g.A();Nw(d,a,b);50>a-d.D&&Ow(d)&&3!==Ew(d)||Kw(d,a,b,c);b=this.timing;b.B>b.Ia&&Fw(b,b.B)&&3>this.state?xx(this,3):this.u.li()&&Bx(this)&&xx(this,Math.max(2,this.state))}};
g.k.EP=function(){if(!this.la()&&this.u){if(!this.X&&this.u.Im()&&this.u.Hd("X-Walltime-Ms")){var a=parseInt(this.u.Hd("X-Walltime-Ms"),10);this.X=(g.A()-a)/1E3}this.u.Im()&&this.u.Hd("X-Restrict-Formats-Hint")&&this.B.Az&&!kx()&&g.Ps("yt-player-headers-readable",!0,2592E3);a=parseInt(this.u.Hd("X-Head-Seqnum"),10);var b=parseInt(this.u.Hd("X-Head-Time-Millis"),10);this.Y=a||this.Y;this.ba=b||this.ba}};
g.k.DP=function(){var a=this.u;!this.la()&&a&&(this.fa.stop(),this.I=a.status,a=cga(this,a),6==a?ox(this):xx(this,a))};
g.k.gQ=function(){if(!this.la()){var a=g.A(),b=!1;Ow(this.timing)?(a=this.timing.P,Dw(this.timing),this.timing.P-a>=.8*this.oa?(this.K++,b=5<=this.K):this.K=0):(b=this.timing,b.Zh&&Pw(b,g.A()),a-=b.W,this.B.Bh&&0<a&&(this.K+=1),b=qv(nx(this))*this.B.nG,b=a>1E3*b);this.K&&this.W&&this.W(this);b?Ax(this,!1):this.fa.start()}};
g.k.isFailed=function(){return 6==this.state};
g.k.la=function(){return-1==this.state};
g.k.dispose=function(){this.info.gg()&&5!=this.state&&(this.info.u[0].u.F=!1);xx(this,-1);this.fa.dispose();this.B.ld||zx(this)};
var Zfa=0,wx=-1;Fx.prototype.skip=function(a){this.offset+=a};var Ux=!1;g.u(Ix,g.P);Ix.prototype.getDuration=function(){return this.C.index.Nj()};hy.prototype.getDuration=function(){return this.u.index.Nj()};Vy.prototype.C=function(a,b){var c=Math.pow(this.alpha,a);this.B=b*(1-c)+c*this.B;this.D+=a};
Vy.prototype.u=function(){return this.B/(1-Math.pow(this.alpha,this.D))};Xy.prototype.C=function(a,b){var c=Math.min(this.B,Math.max(1,Math.round(a*this.resolution)));c+this.valueIndex>=this.B&&(this.D=!0);for(;c--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.B;this.I=!0};
Xy.prototype.u=function(){return this.K?(Yy(this,this.F-this.K)+Yy(this,this.F)+Yy(this,this.F+this.K))/3:Yy(this,this.F)};dz.prototype.setPlaybackRate=function(a){this.C=Math.max(1,a)};
dz.prototype.getPlaybackRate=function(){return this.C};g.k=g.iz.prototype;g.k.aD=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Kh(a))?a.duration:0};
g.k.bB=function(a){return this.getDuration(a)};
g.k.Qg=function(){return this.segments.length?this.segments[0].eb:-1};
g.k.je=function(a){return(a=this.Kh(a))?a.ingestionTime:NaN};
g.k.pB=function(a){return(a=this.Kh(a))?a.C:null};
g.k.Lb=function(){return this.segments.length?this.segments[this.segments.length-1].eb:-1};
g.k.Nj=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.qc=function(){return this.segments[0].startTime};
g.k.Em=function(){return this.segments.length};
g.k.Us=function(){return 0};
g.k.Sg=function(a){return(a=this.zm(a))?a.eb:-1};
g.k.Pv=function(a){return(a=this.Kh(a))?a.B:""};
g.k.oe=function(a){return(a=this.Kh(a))?a.startTime:0};
g.k.Hr=ba(0);g.k.Bc=function(){return 0<this.segments.length};
g.k.Kh=function(a){a=g.Ab(this.segments,new cu(a,0,0,0,""),function(b,c){return b.eb-c.eb});
return 0<=a?this.segments[a]:null};
g.k.zm=function(a){a=g.Ab(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(0!=a.length)if(a=g.ub(a),0==this.segments.length)this.segments=a;else{var b=this.segments.length?g.fb(this.segments).endTime:0,c=a[0].eb-this.Lb();1<c&&pb(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])}}};
g.k.jB=function(){return 0};g.u(kz,Tv);g.k=kz.prototype;g.k.Ee=function(){return!1};
g.k.Qm=function(){return!1};
g.k.AC=function(){return this.K};
g.k.bl=function(){if(this.K)return[];var a=new iu(1,this,this.initRange,"getMetadataRequestInfos");return[new xv([a],this.X)]};
g.k.Cl=function(){return null};
g.k.Oj=function(a){this.gj(a);return this.Dl(a.D?a.B+1:a.B,!1)};
g.k.Pi=function(a,b){b=void 0===b?!1:b;var c=this.index.Sg(a);b&&(c=Math.min(this.index.Lb(),c+1));return this.Dl(c,!0)};
g.k.Or=function(a){this.u=new Uint8Array(Fu(a).buffer)};
g.k.gj=function(a){return 0==a.fb?!0:this.index.Lb()>a.B&&this.index.Qg()<=a.B+1};
g.k.update=function(a,b,c){this.index.append(a);jz(this.index,c);this.N=b};
g.k.Td=function(){return this.K?!0:Tv.prototype.Td.call(this)};
g.k.Dl=function(a,b){var c=this.index.Pv(a),d=this.index.oe(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.u?this.info.u*e:1E3;var h=!b,l=f;f=a==this.index.Lb()&&!this.N&&0<f;d=new iu(3,this,null,"liveCreateRequestInfoForSegment",a,d,e,0,l,f,h);return new xv([d],c)};
g.k.Cr=function(){return this.K?0:this.initRange.length};
g.k.qt=function(){return!1};g.u(mz,g.iz);g.k=mz.prototype;g.k.Qg=function(){return this.B?this.segments.length?this.zm(this.qc()).eb:-1:g.iz.prototype.Qg.call(this)};
g.k.qc=function(){if(this.F)return 0;if(!this.B)return g.iz.prototype.qc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.fb(this.segments).endTime-this.C,0);return 0<this.N&&this.zm(a).eb<this.N?this.Kh(this.N).startTime:a};
g.k.Nj=function(){if(!this.segments.length)return g.iz.prototype.Nj.call(this);var a=this.Lb();if(!this.B||a<=this.segments[this.segments.length-1].eb)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new cu(a,Math.max(0,b.startTime-(b.eb-a)*this.u),this.u,0,"sq/"+a,void 0,void 0,!0)}return null!=this.K&&a.pending&&3===this.K?this.F?Math.min(this.C,a.startTime):a.startTime:this.F?Math.min(this.C,a.endTime):a.endTime};
g.k.Em=function(){return this.B?this.segments.length?this.Lb()-this.Qg()+1:0:g.iz.prototype.Em.call(this)};
g.k.Lb=function(){var a=Math.min(this.W,Math.max(g.iz.prototype.Lb.call(this),this.I)),b=1E3*this.C;b=0<this.D&&this.D<b;this.F&&0<this.C&&0<this.I&&!b&&(b=this.zm(this.C))&&(a=Math.min(b.eb-1,a));return a};
g.k.Dm=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.aD=function(a){var b=nz(this,a.eb);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.P&&0==a.eb%(300/this.u)){var c=this.segments[0].eb,d=Math.floor(this.P/this.u);a=a.eb-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.zm=function(a){if(!this.B)return g.iz.prototype.zm.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].eb-Math.ceil((this.segments[0].startTime-a)/this.u));else if(a>=b.endTime)b=b.eb+Math.floor((a-b.endTime)/this.u+1);else{b=Bb(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.eb-b.eb-1))+1)+b.eb}return this.Kh(b)};
g.k.Kh=function(a){if(!this.B)return g.iz.prototype.Kh.call(this,a);if(!this.segments.length)return null;var b=nz(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.u;if(0==c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].eb-a)*b);else c==this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.eb-1)*b):(d=this.segments[c-1],c=this.segments[c],d=d.endTime+(c.startTime-d.endTime)/(c.eb-d.eb-1)*(a-d.eb-1));return new cu(a,d,b,0,"sq/"+a,void 0,void 0,!0)};g.u(pz,kz);g.k=pz.prototype;g.k.Qm=function(){return!0};
g.k.Td=function(){return!0};
g.k.gj=function(a){return!a.F};
g.k.bl=function(){return[]};
g.k.Pi=function(a,b){if("number"===typeof a&&!isFinite(a)){var c=new iu(3,this,null,"mlLiveGetReqInfoStubForTime",-1,void 0,this.zg,void 0,this.zg*this.info.u);return new xv([c],"")}return kz.prototype.Pi.call(this,a,b)};
g.k.Dl=function(a,b){var c=void 0===c?!1:c;if(oz(this.index,a))return kz.prototype.Dl.call(this,a,b);var d=this.index.oe(a),e=b?0:this.zg*this.info.u,f=!b;c=new iu(c?6:3,this,null,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a==this.index.Lb()&&!this.N&&0<e,f);return new xv([c],0<=a?"sq/"+a:"")};uz.prototype.update=function(a,b){var c=void 0;this.B&&(c=this.B);var d=new uz,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+qz(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+qz(a,"startNumber")||0;d.F=h;var m=h;var n=+qz(a,"presentationTimeOffset")||0;m=c?c.startSecs+c.durationSecs:b?m-n/f:0;n=Date.parse(tz(qz(a,"yt:segmentIngestTime")))/1E3;d.C="SegmentTemplate"==a.parentNode.tagName;d.C&&(d.K=qz(a,"media"));var p=c?l-c.eb:1;d.I=0<p?0:-p+1;e=g.q(e);for(p=e.next();!p.done;p=
e.next()){p=p.value;for(var r=+p.getAttribute("d")/f,t=(+p.getAttribute("yt:sid")||0)/f,w=+p.getAttribute("r")||0,x=0;x<=w;x++)if(c&&l<=c.eb)l++;else{var y=new mga(l,m,r,n+t,h);d.u.push(y);var D=y.startSecs;y=p.getAttribute("yt:cuepointTimeOffset");var E=p.getAttribute("yt:cuepointDuration");if(y&&E){y=parseFloat(y);D=(Yx?+y/f:-y/f)+D;E=parseFloat(E)/f;var G=p.getAttribute("yt:cuepointContext")||null,K=p.getAttribute("yt:cuepointIdentifier");var M=p.getAttribute("yt:cuepointEvent");M=OAa[M]||"unknown";
y=new kt(D,E,G,K,M,y)}else y=null;y&&d.D.push(y);l++;m+=r;h+=r;n+=r+t}}d.u.length&&(d.B=g.fb(d.u))}this.I=d.I;this.B=d.B||this.B;vb(this.u,d.u);vb(this.D,d.D);this.C=d.C;this.K=d.K;-1===this.F&&(this.F=d.getStreamTimeOffset())};
uz.prototype.getStreamTimeOffset=function(){return-1===this.F?0:this.F};g.u(vz,Tv);g.k=vz.prototype;g.k.Ee=function(){return!1};
g.k.Qm=function(){return!1};
g.k.bl=function(){if(this.K){var a=new iu(1,this,null,"otfInit");return[new xv([a],this.K)]}a=new iu(1,this,this.initRange,"otfInitInfo");var b=new iu(2,this,this.indexRange,"otfIndexInfo");return[new xv([a,b])]};
g.k.Cl=function(){return null};
g.k.Oj=function(a){this.gj(a);return wz(this,nu(a),!1)};
g.k.Pi=function(a,b){b=void 0===b?!1:b;var c=this.index.Sg(a);b&&(c=Math.min(this.index.Lb(),c+1));return wz(this,c,!0)};
g.k.Or=function(a){if(1==a.info.type)this.u||(this.u=Bu(a.u)),a.B&&"http://youtube.com/streaming/otf/durations/112015"==a.B.uri&&uga(this,a.B);else if(2==a.info.type)if(g.Iu(this.info)){if(!this.index.Bc()&&(a=g.qt(Fu(a),0,1936286840))){var b=[],c=Bt(a);a=c.Kx.length;var d=c.Vt,e=c.Kx,f=c.Tt;c=this.indexRange.end+c.PA+1;for(var h=0,l=0;l<a;l++){var m=f[l]/d,n=e[l];b.push(new cu(l,h,m,NaN,"range/"+c+"-"+(c+n-1)));h+=m;c+=n}this.index.append(b)}}else if(this.info.Ed()&&this.u&&(d=new It(new DataView(this.u.buffer)),
b=Xt(d))&&(d=new It(Fu(a)),a=Zt(d,b.Np,this.indexRange.end))){d=[];e=b.my/b.ny;f=a.length-1;for(c=0;c<f;c++)h=a[c],l=a[c+1],m=h.Yq*e,d.push(new cu(c,m,l.Yq*e-m,NaN,"range/"+h.Rk+"-"+(l.Rk-1)));c=a[f].Yq*e;d.push(new cu(f,c,b.duration*e-c,NaN,"range/"+a[f].Rk+"-"+(b.Sx+b.Np)));this.index.append(d)}};
g.k.gj=function(a){return 0==a.fb?!0:this.index.Lb()>a.B&&this.index.Qg()<=a.B+1};
g.k.Cr=function(){return this.initRange&&this.indexRange?this.initRange.length+this.indexRange.length:0};
g.k.qt=function(){return!1};var wga=/action_display_post/;zz.prototype.getName=function(){return this.name};
zz.prototype.getId=function(){return this.id};
zz.prototype.getIsDefault=function(){return this.isDefault};
zz.prototype.toString=function(){return this.name};
zz.prototype.getName=zz.prototype.getName;zz.prototype.getId=zz.prototype.getId;zz.prototype.getIsDefault=zz.prototype.getIsDefault;Az.prototype.start=function(){return 0};
Az.prototype.end=function(){return Infinity};g.k=Bz.prototype;g.k.addEventListener=function(){};
g.k.removeEventListener=function(){};
g.k.dispatchEvent=function(){return!1};
g.k.abort=function(){};
g.k.remove=function(){};
g.k.appendBuffer=function(){};g.u(Cz,g.P);g.k=Cz.prototype;g.k.isFailed=function(){return 3==this.Ca};
g.k.Yi=function(){return g.Mb(this.u,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.k.Zi=function(){return g.Mb(this.u,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.k.Ti=function(){return g.Mb(this.u,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.k.Nm=function(){return g.Mb(this.u,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.k.NP=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.qg=this.C=!0;this.F||(this.F=new oga);sga(this.F,a,this.oa);this.V("refresh");for(a=0;a<b.length;a++){var c=Nz(this,b[a]),d=this.isLive&&g.Iu(c)&&this.ya;if(!this.u[c.id]){var e=Hz(rz(b[a],"BaseURL").textContent),f=rz(b[a],"Initialization"),h=qz(f,"sourceURL");f=eu(qz(f,"range"));d&&(h="",f=void 0);this.u[c.id]=new kz(e,c,h,null===
f?void 0:f)}c=this.u[c.id];e=qz(b[a],"id","AdaptationSet");e=""!=e?e:qz(b[a],"mimetype","AdaptationSet");h=this.F;e=h.C[c.info.id]||h.B[e]||h.u||null;h=e.u;!this.B&&e.getStreamTimeOffset()&&(this.B=e.getStreamTimeOffset());if(e.C)for(d=[],h=g.q(h),f=h.next();!f.done;f=h.next()){f=f.value;for(var l=c.info.id,m=8*c.info.u,n=f.eb,p=f.startSecs,r=e.K.split("$$"),t=0;t<r.length;t++)r[t]=r[t].replace("$RepresentationID$",l),r[t]=r[t].replace("$Number$",n.toString()),r[t]=r[t].replace("$Bandwidth$",m.toString()),
r[t]=r[t].replace("$Time$",p.toString());d.push(new cu(f.eb,f.startSecs,f.durationSecs,f.u,r.join("$"),null,f.B))}else{e=wb(rz(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.I);f=[];for(l=0;l<e.length;l++)f.push(Iga(e[l],h[l],d));d=f}c.update(d,this.isLive,this.fa)}tga(this.F);return!0}this.duration=sz(qz(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){h=b[a];c=Nz(this,h);e=rz(h,"BaseURL");d=Hz(e.textContent);f=rz(h,"SegmentBase");h=eu(f.attributes.indexRange.value);f=eu(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=parseInt(e.getAttribute(Lz(this,"contentLength")),10);c=new Wv(d,c,f,h,e,NaN);if(!c){b=!1;break a}Fz(this,c)}b=!0}return b};
g.k.HI=function(a){if(this.la())return this;this.Y=a.status;a=a.responseText;a=(new DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.K=1E3*sz(qz(a,"minimumUpdatePeriod"))||Infinity;if(!this.ba){var b;a:{if(a.attributes)for(b=0;b<a.attributes.length;b++)if("http://youtube.com/yt/2012/10/10"===a.attributes[b].value){b=a.attributes[b].name.split(":")[1];break a}b=""}this.ea=b}this.isLive=Infinity>this.K&&this.xa;this.fa=parseInt(qz(a,Lz(this,"earliestMediaSequence")),10)||
0;if(b=Date.parse(tz(qz(a,Lz(this,"mpdResponseTime")))))this.N=(g.A()-b)/1E3;this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length||g.jh(a.getElementsByTagName("Period"),this.NP,this);this.Ca=2;this.V("loaded");Qz(this);return this};
g.k.JI=function(a){this.Y=a.xhr.status;this.Ca=3;this.V("loaderror");return Em(a.xhr)};
g.k.refresh=function(){if(1!=this.Ca&&!this.la()){var a=g.Ld(this.sourceUrl,{start_seq:Jga(this).toString()});Lm(Oz(this,a),function(){})}};
g.k.resume=function(){Qz(this)};
g.k.od=function(){if(this.isManifestless&&this.I&&Rz(this))return Rz(this);var a=this.u,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.Bc()&&(f.C&&(b=!0),h=h.Nj(),f.info.isAudio()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.qc=function(){if(this.isManifestless&&this.ej&&this.B&&this.ej-this.B)return this.ej&&this.B?this.ej-this.B:0;var a=this.u,b;for(b in a){var c=a[b].index;if(c.Bc())return c.qc()}return 0};
g.k.getStreamTimeOffset=function(){return this.B};
g.k.je=function(a){for(var b in this.u){var c=this.u[b].index;if(c.Bc()){var d=c.Sg(a),e=c.je(d);if(e)return e+a-c.oe(d)}}return NaN};
var Iz=null,Jz=!1,Mz={commentary:1,alternate:2,dub:3,main:4};g.u(Tz,g.P);Tz.prototype.seek=function(a){a!=this.D&&(this.I=0);this.D=a;var b=this.B.B,c=this.u.B,d=this.u.K,e=Vz(this.B,a,this.B.K);d=Vz(this.u,this.P.ha?a:e,d);a=Math.max(a,e,d);this.C=!0;this.F.isManifestless&&(Uz(this.B,b),Uz(this.u,c));return a};
var Oga=2/24;g.u(Zz,os);g.u($z,os);var xka=new ps("aft-recorded",Zz),IA=new ps("timing-sent",$z);var t1=window,EA=t1.performance||t1.mozPerformance||t1.msPerformance||t1.webkitPerformance||new wka;var iA=!1,yka=(0,g.z)(EA.clearResourceTimings||EA.webkitClearResourceTimings||EA.mozClearResourceTimings||EA.msClearResourceTimings||EA.oClearResourceTimings||g.Oa,EA);var pA=g.v.ytLoggingLatencyUsageStats_||{};g.Ja("ytLoggingLatencyUsageStats_",pA,void 0);nA.prototype.tick=function(a,b,c){qA(this,"tick_"+a+"_"+b)||g.Fq("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c})};
nA.prototype.info=function(a,b){var c=Object.keys(a).join("");qA(this,"info_"+c+"_"+b)||(c=Object.assign({},a),c.clientActionNonce=b,g.Fq("latencyActionInfo",c))};
nA.prototype.span=function(a,b){var c=Object.keys(a).join("");qA(this,"span_"+c+"_"+b)||(a.clientActionNonce=b,g.Fq("latencyActionSpan",a))};var u1={},xA=(u1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",u1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",u1.app_startup="LATENCY_ACTION_APP_STARTUP",u1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",u1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",u1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",u1.browse="LATENCY_ACTION_BROWSE",u1.channels="LATENCY_ACTION_CHANNELS",u1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",u1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
u1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",u1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",u1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",u1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",u1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",u1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",u1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",u1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",
u1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",u1.chips="LATENCY_ACTION_CHIPS",u1["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",u1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",u1.embed="LATENCY_ACTION_EMBED",u1.home="LATENCY_ACTION_HOME",u1.library="LATENCY_ACTION_LIBRARY",u1.live="LATENCY_ACTION_LIVE",u1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",u1.onboarding="LATENCY_ACTION_KIDS_ONBOARDING",u1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
u1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",u1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",u1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",u1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",u1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",u1.prebuffer="LATENCY_ACTION_PREBUFFER",u1.prefetch="LATENCY_ACTION_PREFETCH",u1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",u1.profile_switcher="LATENCY_ACTION_KIDS_PROFILE_SWITCHER",u1.results=
"LATENCY_ACTION_RESULTS",u1.search_ui="LATENCY_ACTION_SEARCH_UI",u1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",u1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",u1.settings="LATENCY_ACTION_SETTINGS",u1.tenx="LATENCY_ACTION_TENX",u1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",u1.watch="LATENCY_ACTION_WATCH",u1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",u1["watch,watch7"]="LATENCY_ACTION_WATCH",u1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",u1["watch,watch7ad"]="LATENCY_ACTION_WATCH",
u1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",u1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",u1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",u1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",u1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",u1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",u1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",u1["video.video_editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",u1["video.video_editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",
u1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",u1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",u1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",u1),v1={},AA=(v1.ad_allowed="adTypesAllowed",v1.yt_abt="adBreakType",v1.ad_cpn="adClientPlaybackNonce",v1.ad_docid="adVideoId",v1.yt_ad_an="adNetworks",v1.ad_at="adType",v1.aida="appInstallDataAgeMs",v1.browse_id="browseId",v1.p="httpProtocol",v1.t="transportProtocol",v1.cpn="clientPlaybackNonce",v1.ccs=
"creatorInfo.creatorCanaryState",v1.cseg="creatorInfo.creatorSegment",v1.csn="clientScreenNonce",v1.docid="videoId",v1.GetHome_rid="requestIds",v1.GetSearch_rid="requestIds",v1.GetPlayer_rid="requestIds",v1.GetWatchNext_rid="requestIds",v1.GetBrowse_rid="requestIds",v1.GetLibrary_rid="requestIds",v1.is_continuation="isContinuation",v1.is_nav="isNavigation",v1.b_p="kabukiInfo.browseParams",v1.is_prefetch="kabukiInfo.isPrefetch",v1.is_secondary_nav="kabukiInfo.isSecondaryNav",v1.prev_browse_id="kabukiInfo.prevBrowseId",
v1.query_source="kabukiInfo.querySource",v1.voz_type="kabukiInfo.vozType",v1.yt_lt="loadType",v1.mver="creatorInfo.measurementVersion",v1.yt_ad="isMonetized",v1.nr="webInfo.navigationReason",v1.nrsu="navigationRequestedSameUrl",v1.ncnp="webInfo.nonPreloadedNodeCount",v1.pnt="performanceNavigationTiming",v1.prt="playbackRequiresTap",v1.plt="playerInfo.playbackType",v1.pis="playerInfo.playerInitializedState",v1.paused="playerInfo.isPausedOnLoad",v1.yt_pt="playerType",v1.fmt="playerInfo.itag",v1.yt_pl=
"watchInfo.isPlaylist",v1.yt_pre="playerInfo.preloadType",v1.yt_ad_pr="prerollAllowed",v1.pa="previousAction",v1.yt_red="isRedSubscriber",v1.rce="mwebInfo.responseContentEncoding",v1.scrh="screenHeight",v1.scrw="screenWidth",v1.st="serverTimeMs",v1.ssdm="shellStartupDurationMs",v1.aq="tvInfo.appQuality",v1.br_trs="tvInfo.bedrockTriggerState",v1.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",v1.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",v1.label="tvInfo.label",v1.is_mdx="tvInfo.isMdx",
v1.preloaded="tvInfo.isPreloaded",v1.upg_player_vis="playerInfo.visibilityState",v1.query="unpluggedInfo.query",v1.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",v1.yt_vst="videoStreamType",v1.vph="viewportHeight",v1.vpw="viewportWidth",v1.yt_vis="isVisible",v1.rcl="mwebInfo.responseContentLength",v1.GetSettings_rid="requestIds",v1.GetTrending_rid="requestIds",v1.GetMusicSearchSuggestions_rid="requestIds",v1.REQUEST_ID="requestIds",v1),zka="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(" "),
w1={},BA=(w1.ccs="CANARY_STATE_",w1.mver="MEASUREMENT_VERSION_",w1.pis="PLAYER_INITIALIZED_STATE_",w1.yt_pt="LATENCY_PLAYER_",w1.pa="LATENCY_ACTION_",w1.yt_vst="VIDEO_STREAM_TYPE_",w1),Aka="all_vc ap 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 x1=window;x1.ytcsi&&(x1.ytcsi.info=vA,x1.ytcsi.tick=wA);JA.prototype.Ja=function(){this.ze("gv")};
JA.prototype.ze=function(a,b){this.F[a]=b?window.performance.timing.navigationStart+b:(0,g.O)()};g.u(KA,g.P);KA.prototype.N=function(a,b){var c=this.I.u.index.Lb()<=b,d=this.K.isManifestless&&this.F.kb;this.u={Fe:a,eb:b};this.F.kb&&this.C&&this.B&&(this.C=!1,"continue"!=a.event&&"stop"!=a.event||LA(this,this.B));this.B&&this.B.eb==b&&(this.B=null);if(c||d)this.F.tc&&(a.startSecs+=isNaN(this.D)?0:this.D),c=this.K,c.X.push(a),c.V("cuepointsadded",b)};g.u(QA,g.P);g.k=QA.prototype;g.k.appendBuffer=function(a,b,c){this.B=!1;c&&(this.C=c);b&&(b.u.info.Yc&&(this.W=this.C),3==b.type&&(this.F=b));this.supports(0)?this.u.appendBuffer(a):this.u.append(a)};
g.k.abort=function(){try{this.u.abort()}catch(a){}this.C=this.F=null};
g.k.remove=function(a,b){this.B=!1;this.u.remove(a,b)};
g.k.yr=function(){return Ux&&this.N?this.X:this.u.appendWindowStart};
g.k.Iv=function(){return this.u.appendWindowEnd};
g.k.Wx=function(a,b){Ux&&this.N?(this.X=a,this.u.appendWindowEnd=b):a>this.yr()?(this.u.appendWindowEnd=b,this.u.appendWindowStart=a):(this.u.appendWindowStart=a,this.u.appendWindowEnd=b)};
g.k.Qv=function(){return this.I};
g.k.vn=function(a){Ux?this.I=a:this.supports(1)&&(this.u.timestampOffset=a)};
g.k.fc=function(){return Ux?this.I:this.supports(1)?this.u.timestampOffset:0};
g.k.Ge=function(a){if(void 0===a?0:a)return this.B||this.df()||(this.K=this.Ge(!1),this.B=!0),this.K;try{return this.u.buffered}catch(b){return $x([],[])}};
g.k.df=function(){return this.u.updating};
g.k.Zk=function(){return this.C};
g.k.zr=function(){return this.W};
g.k.Gy=function(a,b){this.P!=a&&(this.supports(4),this.u.changeType(b));this.P=a};
g.k.Ar=function(){return this.F};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:return void 0!=this.u.timestampOffset;case 0:return!!this.u.appendBuffer;case 2:return!!this.u.remove;case 3:return!(!this.u.addEventListener||!this.u.removeEventListener);case 4:return!!this.u.changeType;default:return!1}};
g.k.Qu=function(){return!this.df()};
g.k.isLocked=function(){return!1};
g.k.ib=function(a){a.to=""+this.u.timestampOffset;a.up=""+ +this.df();a.aw=(this.u.appendWindowStart||0).toFixed(3)+"-"+(this.u.appendWindowEnd||Infinity).toFixed(3);try{a.bu=ay(this.u.buffered)}catch(b){}return g.OA(a)};
g.k.aa=function(){this.supports(3)&&(this.u.removeEventListener("updateend",this.D),this.u.removeEventListener("error",this.D));g.P.prototype.aa.call(this)};
g.k.iq=function(a,b,c){if(!this.supports(2)||this.df())return!1;var d=this.Ge(),e=by(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};var RAa={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},y1;a:{var z1=g.Vc;z1=z1.toLowerCase();if(-1!=z1.indexOf("android")){var SAa=z1.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(SAa){var TAa=parseFloat(SAa[1]);if(100>TAa){y1=TAa;break a}}var UAa=z1.match("("+g.Qb(RAa).join("|")+")");y1=UAa?RAa[UAa[0]]:0}else y1=void 0}var KB=y1,JB=0<=KB;g.u(TA,g.B);var Oka={RED:"red",uV:"white"};var Nka={zR:"adunit",qS:"detailpage",vS:"editpage",xS:"embedded",yS:"embedded_unbranded",sT:"leanback",wU:"previewpage",xU:"profilepage",lV:"unplugged",sU:"playlistoverview",VU:"sponsorshipsoffer"};g.k=cB.prototype;g.k.append=function(a){this.u.webkitSourceAppend(this.B,a)};
g.k.abort=function(){this.u.webkitSourceAbort(this.B)};
g.k.aR=function(){return this.u.webkitSourceState==this.u.SOURCE_CLOSED?new Dka:this.u.webkitSourceBuffered(this.B)};
g.k.cR=function(){return this.C};
g.k.gR=function(a){this.C=a;this.u.webkitSourceTimestampOffset(this.B,a)};g.k=dB.prototype;g.k.addEventListener=function(a,b,c){this.u.addEventListener(a,b,c)};
g.k.removeEventListener=function(a,b,c){this.u.removeEventListener(a,b,c)};
g.k.xL=function(){return this.u.webkitMediaSourceURL};
g.k.addSourceBuffer=function(a){var b=(this.C++).toString();this.u.webkitSourceAddId(b,a);a=new cB(this.u,b);this.sourceBuffers.push(a);return a};
g.k.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.u.webkitSourceRemoveId(a.B);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.k.dR=function(){switch(this.u.webkitSourceState){case this.u.SOURCE_CLOSED:return"closed";case this.u.SOURCE_OPEN:return"open";case this.u.SOURCE_ENDED:return"ended"}return""};
g.k.endOfStream=function(){this.u.webkitSourceEndOfStream(this.u.EOS_NO_ERROR)};
g.k.eR=function(){pb(this.sourceBuffers)};
g.k.bR=function(){return this.B};
g.k.fR=function(a){this.B=a;this.u.webkitSourceSetDuration&&this.u.webkitSourceSetDuration(a)};g.u(eB,g.P);g.k=eB.prototype;g.k.appendBuffer=function(a,b,c){if(this.u.yr()!=this.I+this.B||this.u.Iv()!=this.F+this.B||this.u.fc()!=this.D+this.B)this.u.supports(1),this.u.Wx(this.I+this.B,this.F+this.B),this.u.vn(this.D+this.B);this.u.appendBuffer(a,b,c)};
g.k.abort=function(){this.u.abort()};
g.k.remove=function(a,b){this.u.remove(a+this.B,b+this.B)};
g.k.Wx=function(a,b){this.I=a;this.F=b};
g.k.Qv=function(){return this.D+this.B};
g.k.yr=function(){return this.I};
g.k.Iv=function(){return this.F};
g.k.vn=function(a){this.D=a};
g.k.fc=function(){return this.D};
g.k.Ge=function(a){a=this.u.Ge(void 0===a?!1:a);return gy(a,this.B,this.N)};
g.k.df=function(){return this.u.df()};
g.k.Zk=function(){return this.u.Zk()};
g.k.zr=function(){return this.u.zr()};
g.k.Gy=function(a,b){return this.u.Gy(a,b)};
g.k.supports=function(a){return this.u.supports(a)};
g.k.Ar=function(){return this.u.Ar()};
g.k.isView=function(){return!0};
g.k.iq=function(a,b,c){return this.isActive()?this.u.iq(a,b,c):!1};
g.k.Qu=function(){return this.u.Qu()?this.C:!1};
g.k.isLocked=function(){return this.K&&!this.C};
g.k.ib=function(a){return this.u.ib(a)+(";vw."+this.B+"-"+this.N)};
g.k.aa=function(){Tr(this.u,this.P);g.P.prototype.aa.call(this)};
g.k.isActive=function(){return this.C};
g.k.setActive=function(a){this.C=a;this.K=this.K||this.C};fB.prototype.dispose=function(){if(!this.la){if(this.B)try{URL.revokeObjectURL(this.u)}catch(a){}this.C=!0}};
fB.prototype.la=function(){return this.C};
fB.prototype.toString=function(){return"MediaResource {"+this.u+"}"};g.u(gB,g.B);g.k=gB.prototype;g.k.getDuration=function(){return this.C.duration};
g.k.isView=function(){return this.I};
g.k.df=function(){return!!(this.u&&this.u.df()||this.B&&this.B.df())};
g.k.bP=function(){!this.la()&&hB(this)&&this.D&&(this.D(this),this.D=null)};
g.k.aP=function(){this.dispose()};oB.prototype.canPlayType=function(a,b){var c=a.canPlayType?a.canPlayType(b):!1;jk?c=c||VAa[b]:2.2===KB?c=c||WAa[b]:Yj()&&(c=c||XAa[b]);return!!c};
oB.prototype.isTypeSupported=function(a){return this.F?window.cast.receiver.platform.canDisplayType(a):YA(a)};
oB.prototype.disableAv1=function(){this.K=!0};
var WAa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},XAa={"application/x-mpegURL":"maybe"},VAa={"application/x-mpegURL":"maybe"};g.u(uB,g.P);uB.prototype.add=function(a,b){!this.items[a]&&(b.Qq||b.Rq||b.hq)&&(this.items[a]=cc(b),this.V("vast_info_card_add",a))};
uB.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
uB.prototype.get=function(a){return this.items[a]||null};
uB.prototype.isEmpty=function(){return g.Wb(this.items)};var RB={BT:1,CT:2,DT:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Kka=/^([0-9\.]+):([0-9\.]+)$/;var CB="area120-boutique blogger books docs duo google-live google-one play chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),YAa={UR:"cbrand",VR:"cbr",WR:"cbrver",hT:"c",kT:"cver",jT:"ctheme",iT:"cplayer",OT:"cmodel",ST:"cnetwork",XT:"cos",ZT:"cosver",fU:"cplatform"};g.u(ZB,g.B);g.k=ZB.prototype;g.k.ca=function(a){return g.R(this.experiments,a)};
g.k.Be=function(a,b){b=void 0===b?!1:b;this.Jb=yB(this.Jb,a.video_id);this.wb=yB(this.wb,a.eventid);for(var c=[],d=g.q(Object.keys(YAa)),e=d.next();!e.done;e=d.next()){e=YAa[e.value];var f=a[e];null!=f&&(f!==this.deviceParams[e]&&c.push(e),this.deviceParams[e]=f)}!b&&0<c.length&&this.Cq&&(c.sort(),g.er(new Cq("Player client parameters changed after startup",c)));this.userAge=xB(this.userAge,a.user_age);this.userDisplayImage=yB(this.userDisplayImage,a.user_display_image);g.$u(this.userDisplayImage)||
(this.userDisplayImage="");this.userDisplayName=yB(this.userDisplayName,a.user_display_name);this.qf=yB(this.qf,a.user_gender);this.csiPageType=yB(this.csiPageType,a.csi_page_type);this.csiServiceName=yB(this.csiServiceName,a.csi_service_name);this.sf=S(this.sf,a.enablecsi);this.pageId=yB(this.pageId,a.pageid);if(c=a.enabled_engage_types)this.enabledEngageTypes=new Set(c.split(","))};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.bC(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.WB(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,jk&&(a=Rp())&&(b.ebc=a));return g.Ld(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.bC(this)+"/embed/"+a;c&&(a=g.Ld(a,{list:c}));c=b.width;b=b.height;a=g.nd(a);return'<iframe width="'+c+'" height="'+b+'" src="'+a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'};
g.k.supportsGaplessAudio=function(){return g.ZA&&!jk&&74<=Vj()||g.rB&&g.$d(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
var Pka=["www.youtube-nocookie.com","youtube.googleapis.com"];sC.prototype.getLanguageInfo=function(){return this.u};
sC.prototype.toString=function(){return this.u.name};
sC.prototype.getLanguageInfo=sC.prototype.getLanguageInfo;tC.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.u};
tC.prototype.D=function(a){return a.video?AC(this,a.video.quality):!1};
var Zua=vC("auto","hd1080",!1,"l"),Wra=vC("auto","large",!1,"l"),xC=vC("auto","auto",!1,"p");vC("small","auto",!1,"p");BC.prototype.Wk=function(a){a=a||xC;for(var b=g.Ke(this.videoInfos,function(h){return a.D(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].Ja();
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
BC.prototype.getAvailableAudioTracks=function(){return this.audioTracks};
BC.prototype.sc=function(){return!!this.u};DC.prototype.clone=function(a){return new DC(this.flavor,a,this.C,this.experiments)};
DC.prototype.ib=function(){return{flavor:this.flavor,keySystem:this.u}};
DC.prototype.ie=function(){switch(this.u){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.u}};
var A1={},MC=(A1.playready=["com.youtube.playready","com.microsoft.playready"],A1.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],A1);eD.prototype.add=function(a){this.u=(this.u+1)%this.data.length;this.data[this.u]=a};
eD.prototype.forEach=function(a){for(var b=this.u+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.u;b++)a(this.data[b]||0)};
eD.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.u=this.data.length-1};gD.prototype.send=function(){g.oq(this.u,{format:"RAW",responseType:"arraybuffer",timeout:1E4,Bf:this.B,Ef:this.B,context:this});this.C=(0,g.O)()};
gD.prototype.B=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.O)()-this.C)/1E3).toFixed(3),shost:g.yd(this.u),trigger:this.I};204==a.status||a.response?this.D&&this.D(g.OA(b)):this.F(new NA("pathprobe.net",!1,b))};g.u(hD,g.P);hD.prototype.B=function(a,b){if(this.I)return mla(this,b);var c=Jx(a.C);if(c){var d=c.B;if(d&&d.D&&d.C){var e=a.D.length?a.D[0]:null;e&&2<=e.state&&!e.isFailed()&&0==e.info.Ie&&e.u.li()&&(this.I=e,this.W=d,this.D=c.info,this.P=this.K=g.A()/1E3,this.N=this.D.startTime)}}return NaN};var B1={},nD=(B1.AD_MARKER="ytp-ad-progress",B1.CHAPTER_MARKER="ytp-chapter-marker",B1.TIME_MARKER="ytp-time-marker",B1);g.oD.prototype.getId=function(){return this.id};
g.oD.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+pD(this.start)+", "+pD(this.end)+"]"};
g.oD.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 nla=1;g.oD.prototype.getId=g.oD.prototype.getId;g.u(xD,g.B);xD.prototype.reset=function(){this.started=!1;this.F.stop();this.u.u=[];this.C=[];this.B()};
xD.prototype.Tb=function(a){this.started&&(this.B(),g.T(a.mk,16)&&(a=vD(this.u,Math.max(this.D-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.F.start()))};
xD.prototype.B=function(){this.I=!0;if(!this.K){for(var a=3;this.I&&a;)this.I=!1,this.K=!0,ula(this),this.K=!1,a--;this.N().Cb()&&(a=vD(this.u,this.D),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.D)/this.Y(),this.F.start(a)))}};
xD.prototype.aa=function(){this.C=[];this.u.u=[];g.B.prototype.aa.call(this)};g.u(ID,g.P);g.k=ID.prototype;
g.k.initialize=function(a,b,c){a=a||0;this.V("videoformatchange",fla(this.K));if(this.F.isManifestless){if(this.u.Uy){b=lz(this.u);for(var d in this.F.u)this.F.u[d].index.K=b}yla(this)}this.N&&iD(this.N,this.B.u);this.u.fa&&Qw()&&this.td("streaming","ac."+!!window.AbortController,!0);d=isNaN(this.I)?0:this.I;this.I=this.F.isManifestless?d:a;c?(this.u.vf?(this.kd=c,KD(this,c)):KD(this,!1),this.tc.ub()):(a=0==this.I,XD(this,this.B,this.B.u,a),XD(this,this.D,this.D.u,a),Lm(this.seek(this.I),function(){}),
this.xa.Ja());
(this.F.Gd||this.F.Uf)&&this.td("minMaxSq","minSq."+this.F.Gd+";maxSq."+this.F.Uf+";minDvrTime."+this.F.ej+";maxDvrTime."+this.F.xl)};
g.k.resume=function(){if(this.ha||this.ya)this.Mb=this.ya=this.ha=!1,this.gh()};
g.k.setAudioTrack=function(a){if(!this.la()){var b=this.K;b.I=b.K.u[a.id];b.X=b.I;this.V("audioformatchange",new RC(b.X,b.B,"m"));this.V("reattachrequired")}};
g.k.setPlaybackRate=function(a){a!=this.X.getPlaybackRate()&&this.X.setPlaybackRate(a)};
g.k.gh=function(){PD(this);if(this.C&&hB(this.C)&&!this.C.df()){var a=jy(this.B);a=this.u.bF&&a&&a.F;this.F.isManifestless&&this.F.I&&Rz(this.F)?(this.W=Rz(this.F),iB(this.C,this.W)):this.F.isLive&&!a?isNaN(this.W)?(this.W=this.I+3600,iB(this.C,this.W)):this.W<=this.I+1800&&(this.W=Math.max(this.W+1800,this.I+3600),iB(this.C,this.W)):this.C.isView()||(a=Math.max(this.D.getDuration(),this.B.getDuration()),(!isFinite(this.W)||this.W!=a)&&0<a&&(iB(this.C,a),this.W=a))}if(!this.la())if(Pz(this.F)&&this.F.isFailed())OD(this,
!0,"manifest.net.retryexhausted",{rc:this.F.Y.toString()});else if(!this.F.C||!Sy(this.B)&&!Sy(this.D)||(this.B.F||this.D.F)&&this.u.ea?a=!1:(MD(this),this.V("seekplayerrequired",Infinity),a=!0),!a&&(PD(this),ly(this.B),!this.la()&&(ly(this.D),!this.la()))){this.F.isManifestless&&(Ty(this.B),Ty(this.D),Yz(this.P),(a=Jx(this.B.C))&&a.B&&(a=a.B.D&&!this.u.Ki,this.td(a==this.u.D.Ce?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.u.D.Ce?"1":"0")+";dfs."+(this.u.Ki?"1":"0"),!0)));if(this.C)bE(this);
else if(this.u.Mg){if(a=Jx(this.B.C)){var b=this.B;b.C.B.shift();ny(b,a)}if(b=Jx(this.D.C)){var c=this.D;c.C.B.shift();ny(c,b)}sy(this.B)&&sy(this.D)||(a||b)&&this.oa.ub()}JD(this);XD(this,this.B,this.B.u,!1);XD(this,this.D,this.D.u,!1);a=this.D.u.I;b=this.B.u.I;if(a||b){c="net.retryexhausted";if("fmt.unparseable"==a||"fmt.unparseable"==b)c="fmt.unparseable";OD(this,!0,c,{metadata:"1",video:this.B.u.I||"",audio:this.D.u.I||""})}else UD(this,this.B,this.D),UD(this,this.D,this.B),this.u.Vy&&this.Ra&&
!this.ha&&cz(this.ba)&&(a=this.Ra,b=(0,g.z)(this.V,this,"error"),(new gD(a,"cms",null,b)).send(),this.Ra=""),this.N&&(a=this.N,a.I?(b=a.P+a.u.wi,a.F||(b=Math.min(b,a.K+a.u.ac)),a=Math.max(0,1E3*b-g.A())):a=NaN,isNaN(a)||this.ld.ub(a)),this.Vc.ub()}};
g.k.pP=function(a){if(this.u.Pd&&this.C){var b=a==this.C.u,c=a.Ar();c&&(!c.C||c.D)&&this.td("sbu",a.ib({a:""+ +b}))}this.gh()};
g.k.qM=function(a){if(this.C){a=jy(a==this.C.u?this.D:this.B);var b=void 0;a&&(b=ou(a));OD(this,!0,"fmt.unplayable",b)}};
g.k.GN=function(a){OD(this,!0,"fmt.unparseable",a)};
g.k.UL=function(a){this.V("needkeyinfo",a)};
g.k.HN=function(a){this.D.u.C=a;this.C&&ZD(this,this.C.u,a)};
g.k.FN=function(a){OD(this,!1,"qoe.avsync",a)};
g.k.JN=function(a,b){this.F.isManifestless&&eE(this,b,a==this.B)};
g.k.KN=function(a,b){if(this.F.isManifestless){var c=this.F,d=b.eb,e=a==this.B,f;for(f in c.u){var h=Rv(c.u[f].info.mimeType)||c.u[f].info.isVideo();if(e==h){h=c.u[f].index;var l=nz(h,d);0<=l&&h.segments.splice(l,1)}}}};
g.k.LN=function(a,b){this.F.isManifestless&&eE(this,b,a==this.B)};
g.k.IN=function(a){this.V("localmediachange",new FD(this.u.C,a,{isBackground:this.u.Mg}))};
g.k.seek=function(a){if(this.la())return Em();if(this.B.N||this.D.N)return this.u.ez?Dm():Em("seeking to head");PD(this);this.ac=(0,g.O)();JD(this,a);this.C&&this.C.u&&this.C.B&&(this.C.u.isLocked()||this.C.B.isLocked())&&this.V("reattachrequired");this.I=this.P.seek(a);a=this.Y;a.B=null;a.C=!1;this.oa.ub();return Dm(this.I)};
g.k.getCurrentTime=function(){return this.I};
g.k.aa=function(){this.Y.unsubscribe("ctmp",this.td,this);ND(this);Iy(this.D);Iy(this.B);g.P.prototype.aa.call(this)};
g.k.ib=function(){var a=jy(this.D),b=jy(this.B);a={lct:this.I.toFixed(3),lsk:this.P.C,lmf:ZC(this.K),lbw:az(this.ba).toFixed(3),lhd:$y(this.ba).toFixed(3),lst:(1E9*(this.ba.C.u()||0)).toFixed(3),laa:a?hu(a):"",lva:b?hu(b):"",lar:this.D.B?hu(this.D.B):"",lvr:this.B.B?hu(this.B.B):""};this.C&&!kB(this.C)&&this.C.u&&this.C.B&&(a.lab=ay(this.C.u.Ge()),a.lvb=ay(this.C.B.Ge()));return a};
g.k.td=function(a,b,c){this.V("ctmp",a,b,void 0===c?!1:c)};
g.k.Sz=function(a,b){var c=a/b;isNaN(this.fa)&&(this.fa=c-Math.min(c,this.u.ce),this.Y.D=this.fa,this.V("timestamp",this.fa),this.F.isManifestless&&(this.F.B=this.fa));return(c-this.fa)*b};
var VD=2/24;var C1;var ZAa=g.Vc,$Aa=ZAa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!$Aa||2>$Aa.length)C1=void 0;else{var D1=ZAa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);C1=D1&&6==D1.length?Number(D1[5].replace("_",".")):0}var QF=C1,SX=0<=QF;SX&&0<=g.Vc.search("Safari")&&g.Vc.search("Version");var e0=16/9,aBa=[.25,.5,.75,1,1.25,1.5,1.75,2],bBa=aBa.concat([3,4,5,6,7,8,9,10,15]);g.u(hE,g.B);
hE.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.Yc)for(var h=g.q(Object.keys(f.Yc)),l=h.next();!l.done;l=h.next())if(l=l.value,MC[l])for(var m=g.q(MC[l]),n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new DC(l,n,f.Yc[l],this.experiments),this.D[l]=this.D[l]||{},this.D[l][f.mimeType]=!0}ck()&&(this.B["com.youtube.fairplay"]=new DC("fairplay","com.youtube.fairplay","",
this.experiments),this.D.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.u=Uka(b,this.useCobaltWidevine,g.Ru(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.B[p]})};
hE.prototype.ca=function(a){return g.R(this.experiments,a)};g.k=jE.prototype;g.k.ie=function(){return this.Ka};
g.k.Zo=function(){return null};
g.k.cB=function(){var a=this.Zo();return a?(a=g.Xp(a.u),Number(a.expire)):NaN};
g.k.Tx=function(){};
g.k.getHeight=function(){return this.Ka.Ja().height};g.u(oE,jE);oE.prototype.cB=function(){return this.expiration};
oE.prototype.Zo=function(){if(!this.u||this.u.la()){var a=this.B;Rla(a);var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(a.u)var d=a.u;else{d="";for(var e=g.q(a.C),f=e.next();!f.done;f=e.next())if(f=f.value,f.u){if(f.u.getIsDefault()){d=f.u.getId();break a}d||(d=f.u.getId())}}e=g.q(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.u&&f.u.getId()!==d||(c[f.itag]=f);d=g.q(a.B);for(e=d.next();!e.done;e=d.next())e=e.value,(f=c[e.B])&&b.push(Qla(a,f,e));d=g.q(a.B);for(e=d.next();!e.done;e=d.next()){e=
e.value;var h=c[e.B];h&&(f=a,h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(mE(h,e)+'",CLOSED-CAPTIONS=NONE'),1<e.fps&&(h+=",FRAME-RATE="+e.fps),e.C&&(h+=",VIDEO-RANGE="+e.C),b.push(h),b.push(lE(f,e.url,"")))}a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(b.join("\n"));this.u=new fB(a)}return this.u};g.u(qE,jE);qE.prototype.Zo=function(){return new fB(this.u.cd())};
qE.prototype.Tx=function(){this.u=jv(this.u)};g.u(rE,jE);rE.prototype.Zo=function(){return new fB(this.u)};g.k=g.sE.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.u};
g.k.cd=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.tE(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var uE={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},xE={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var E1={},cBa=(E1.ALWAYS=1,E1.BY_REQUEST=3,E1.UNKNOWN=void 0,E1),F1={},dBa=(F1.COLOR_PRIMARIES_BT709="bt709",F1.COLOR_PRIMARIES_BT2020="bt2020",F1.COLOR_PRIMARIES_UNKNOWN=null,F1.COLOR_PRIMARIES_UNSPECIFIED=null,F1),G1={},bma=(G1.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",G1.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",G1.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",G1.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",G1.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,G1.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,G1),H1={},I1=(H1.FAIRPLAY="fairplay",H1.PLAYREADY="playready",H1.WIDEVINE="widevine",H1.CLEARKEY=null,H1.FLASHACCESS=null,H1.UNKNOWN=null,H1.WIDEVINE_CLASSIC=null,H1),J1={},eBa=(J1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",J1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",J1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",J1.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",J1),K1={},fBa=(K1.UNKNOWN=0,K1.RECTANGULAR=1,K1.EQUIRECTANGULAR=2,K1.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,K1.MESH=4,K1),L1={},gBa=(L1.SPATIAL_AUDIO_TYPE_NONE=0,L1.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,L1.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,L1.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,L1),M1={},hBa=(M1.STEREO_LAYOUT_UNKNOWN=0,M1.STEREO_LAYOUT_LEFT_RIGHT=1,M1.STEREO_LAYOUT_TOP_BOTTOM=2,M1),N1={},iBa=(N1.FORMAT_STREAM_TYPE_UNKNOWN=0,N1.FORMAT_STREAM_TYPE_OTF=3,N1);g.u(GE,g.P);GE.prototype.Yk=function(a,b){for(var c=HE(this,b);0<=c;){var d=this.levels[c];if(d.Bc(Math.floor(a/(d.columns*d.rows)))&&(d=d.Yk(a)))return d;c--}return this.levels[0].Yk(a)};
GE.prototype.aa=function(){this.u&&(this.u=this.u.onload=null);g.P.prototype.aa.call(this)};g.k=g.KE.prototype;g.k.Sd=function(){return this.width};
g.k.getHeight=function(){return this.height};
g.k.gB=ba(2);g.k.Kv=function(){return this.C};
g.k.isDefault=function(){return-1!==this.D.indexOf("default")};
g.k.Bc=function(a){return this.loaded.has(a)};
g.k.cd=function(a){var b=this.F;b=b.replace("$N",this.D);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.Ld(b,{sigh:this.signature}));return dv(b)};
g.k.Yk=function(a){a>=this.Vw()&&this.cp();var b=Math.floor(a/(this.columns*this.rows)),c=this.columns*this.rows,d=a%c;a=d%this.columns;d=Math.floor(d/this.columns);var e=this.cp()+1-c*b;if(e<this.columns){var f=e;c=1}else f=this.columns,c=e<c?Math.ceil(e/this.columns):this.rows;return{url:this.cd(b),column:a,columns:f,row:d,rows:c,Ys:this.width*f,Xs:this.height*c}};
g.k.Rs=function(a){var b=this.Kv()-1;return g.be(0===this.u?Math.round(a*this.C/this.videoLength):Math.round(1E3*a/this.u),0,b)};
g.k.cp=function(){return this.C-1};
g.k.Vw=function(){return this.C?0:-1};
g.k.NC=function(){};g.u(LE,GE);LE.prototype.B=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var h=this.F(f-1,e,d[f],b);(this.K||180>h.getHeight())&&c.push(h)}return c};
LE.prototype.F=function(a,b,c,d){return new g.KE(a,b,c,d)};g.u(NE,g.KE);g.k=NE.prototype;g.k.Kv=function(){return this.B.Em()};
g.k.Rs=function(a){var b=this.rows*this.columns*this.I,c=this.B,d=c.Lb();a=c.Sg(a);return a>d-b?-1:a};
g.k.cp=function(){return this.B.Lb()};
g.k.Vw=function(){return this.B.Qg()};
g.k.NC=function(a){this.B=a};g.u(OE,LE);OE.prototype.B=function(a,b){return LE.prototype.B.call(this,"$N|"+a,b)};
OE.prototype.F=function(a,b,c){return new NE(a,b,c,this.isLive)};g.u(g.PE,g.P);g.k=g.PE.prototype;g.k.Be=function(a,b){b?(AB(a),this.setData(a),yF(this)&&$E(this)):(a=a||{},this.ca("embeds_wexit_list_ajax_migration")&&AF(this,a),WE(this,a),SE(this,a),this.V("dataupdated"))};
g.k.setData=function(a){a=a||{};var b=a.errordetail;null!=b&&(this.errorDetail=b);var c=a.errorcode;null!=c?this.errorCode=c:"fail"==a.status&&(this.errorCode="150");var d=a.reason;null!=d&&(this.errorReason=d);var e=a.subreason;null!=e&&(this.Mi=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||this.Hv());this.Uh=S(this.Na.Uh,a.livemonitor);AF(this,a);var f=a.raw_player_response;if(!f){var h=a.player_response;h&&(f=JSON.parse(h))}f&&(this.playerResponse=f);if(this.playerResponse){var l=
this.playerResponse.annotations;if(l)for(var m=g.q(l),n=m.next();!n.done;n=m.next()){var p=n.value.playerAnnotationsUrlsRenderer;if(p){p.adsOnly&&(this.Gq=!0);p.allowInPlaceSwitch&&(this.Ku=!0);var r=p.loadPolicy;r&&(this.annotationsLoadPolicy=cBa[r]);var t=p.invideoUrl;t&&(this.eg=dv(t));this.ds=!0;break}}var w=this.playerResponse.attestation;w&&DE(this,w);var x=this.playerResponse.heartbeatParams;if(x){var y=x.heartbeatToken;y&&(this.drmSessionId=x.drmSessionId||"",this.heartbeatToken=y,this.EB=
Number(x.intervalMilliseconds),this.FB=Number(x.maxRetries),this.GB=!!x.softFailOnError,this.NB=!!x.useInnertubeHeartbeatsForDrm,this.qq=!0)}var D=this.playerResponse.messages;D&&ema(this,D);var E=this.playerResponse.multicamera;if(E){var G=E.playerLegacyMulticameraRenderer;if(G){var K=G.metadataList;K&&(this.oD=K,this.Hk=Wp(K))}}var M=this.playerResponse.overlay;if(M){var Ia=M.playerControlsOverlayRenderer;if(Ia){var va=Ia.controlBgHtml;null!=va?(this.Li=va,this.Hc=!0):(this.Li="",this.Hc=!1);if(Ia.mutedAutoplay){var gb=
Ia.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(gb&&gb.endScreen){var Hb=gb.endScreen.playerMutedAutoplayEndScreenRenderer;Hb&&Hb.text&&(this.qD=g.U(Hb.text))}}else this.mutedAutoplay=!1}}var bb=this.playerResponse.playabilityStatus;if(bb){var Wd=bb.backgroundability;Wd&&Wd.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var Xc=bb.offlineability;Xc&&Xc.offlineabilityRenderer.offlineable&&(this.offlineable=!0);var Bi=bb.contextParams;Bi&&(this.contextParams=Bi);var Ci=bb.pictureInPicture;
Ci&&Ci.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);bb.playableInEmbed&&(this.allowEmbed=!0);var Bh=bb.ypcClickwrap;if(Bh){var Di=Bh.playerLegacyDesktopYpcClickwrapRenderer,gf=Bh.ypcRentalActivationRenderer;if(Di)this.nq=Di.durationMessage||"",this.Jn=!0;else if(gf){var Qga=gf.durationMessage;this.nq=Qga?g.U(Qga):"";this.Jn=!0}}var Ml=bb.errorScreen;if(Ml){if(Ml.playerLegacyDesktopYpcTrailerRenderer){var le=Ml.playerLegacyDesktopYpcTrailerRenderer;this.tu=le.trailerVideoId||"";var Rga=
Ml.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var wy=Rga&&Rga.ypcTrailerRenderer}else if(Ml.playerLegacyDesktopYpcOfferRenderer)le=Ml.playerLegacyDesktopYpcOfferRenderer;else if(Ml.ypcTrailerRenderer){wy=Ml.ypcTrailerRenderer;var Sga=wy.fullVideoMessage;this.oq=Sga?g.U(Sga):""}le&&(this.nu=le.itemTitle||"",le.itemUrl&&(this.ou=le.itemUrl),le.itemBuyUrl&&(this.lu=le.itemBuyUrl),this.mu=le.itemThumbnail||"",this.qu=le.offerHeadline||"",this.rq=le.offerDescription||"",this.ru=le.offerId||"",this.pu=
le.offerButtonText||"",this.Py=le.offerButtonFormattedText||null,this.tq=le.overlayDurationMsec||NaN,this.oq=le.fullVideoMessage||"",this.dm=!0);if(wy){var Tga=wy.unserializedPlayerResponse;if(Tga)this.Kn={raw_player_response:Tga};else{var Uga=wy.playerVars;this.Kn=Uga?Vp(Uga):null}this.dm=!0}}}var Ch=this.playerResponse.playbackTracking;if(Ch){var Vga=a,Wga=BE(Ch.googleRemarketingUrl);Wga&&(this.googleRemarketingUrl=Wga);var Xga=BE(Ch.youtubeRemarketingUrl);Xga&&(this.youtubeRemarketingUrl=Xga);
var Yga=BE(Ch.ptrackingUrl);if(Yga){var gG=CE(Yga),Zga=gG.oid;Zga&&(this.yE=Zga);var $ga=gG.pltype;$ga&&(this.zE=$ga);var aha=gG.ptchn;aha&&(this.xE=aha);var bha=gG.ptk;bha&&(this.ot=encodeURIComponent(bha))}var cha=BE(Ch.ppvRemarketingUrl);cha&&(this.ppvRemarketingUrl=cha);var dha=BE(Ch.qoeUrl);if(dha){for(var yy=g.Xp(dha),eha=g.q(Object.keys(yy)),GU=eha.next();!GU.done;GU=eha.next()){var fha=GU.value,HU=yy[fha];yy[fha]=Array.isArray(HU)?HU.join(","):HU}var gha=yy.cat;gha&&(this.Dp=gha);var hha=
yy.live;hha&&(this.Iw=hha)}var zy=BE(Ch.remarketingUrl);if(zy){this.remarketingUrl=zy;var iha=CE(zy);iha.foc_id&&(this.Oc.focEnabled=!0);var jha=iha.data;jha&&(this.Oc.rmktEnabled=!0,jha.engaged&&(this.Oc.engaged="1"));this.Oc.baseUrl=zd(zy)+vd(g.xd(5,zy))}var kha=BE(Ch.videostatsPlaybackUrl);if(kha){var Id=CE(kha),lha=Id.adformat;lha&&(Vga.adformat=lha);var mha=Id.aqi;mha&&(Vga.ad_query_id=mha);var nha=Id.autoplay;nha&&(this.nk="1"==nha);var oha=Id.autonav;oha&&(this.pl="1"==oha);var pha=Id.delay;
pha&&(this.Lg=g.rd(pha));var qha=Id.ei;qha&&(this.eventId=qha);"adunit"===Id.el&&(this.nk=!0);var rha=Id.feature;rha&&(this.Gp=rha);var sha=Id.list;sha&&(this.playlistId=sha);var tha=Id.of;tha&&(this.sx=tha);var uha=Id.osid;uha&&(this.osid=uha);var vha=Id.referrer;vha&&(this.referrer=vha);var wha=Id.sdetail;wha&&(this.Ct=wha);var xha=Id.ssrt;xha&&(this.Sp="1"==xha);var IU=Id.subscribed;IU&&(this.subscribed="1"==IU,this.Oc.subscribed=IU);var yha=Id.uga;yha&&(this.userGenderAge=yha);var zha=Id.upt;
zha&&(this.cu=zha);var Aha=Id.vm;Aha&&(this.videoMetadata=Aha)}var Bha=BE(Ch.videostatsWatchtimeUrl);if(Bha){var Cha=CE(Bha).ald;Cha&&(this.Fq=Cha)}var Ay=this.ca("use_player_params_for_passing_desktop_conversion_urls");if(Ch.promotedPlaybackTracking){var Jd=Ch.promotedPlaybackTracking;Jd.startUrls&&(Ay||(this.wt=Jd.startUrls[0]),this.xt=Jd.startUrls);Jd.firstQuartileUrls&&(Ay||(this.Dx=Jd.firstQuartileUrls[0]),this.Ex=Jd.firstQuartileUrls);Jd.secondQuartileUrls&&(Ay||(this.Fx=Jd.secondQuartileUrls[0]),
this.Gx=Jd.secondQuartileUrls);Jd.thirdQuartileUrls&&(Ay||(this.Hx=Jd.thirdQuartileUrls[0]),this.Ix=Jd.thirdQuartileUrls);Jd.completeUrls&&(Ay||(this.Bx=Jd.completeUrls[0]),this.Cx=Jd.completeUrls);Jd.engagedViewUrls&&(1<Jd.engagedViewUrls.length&&g.er(new Cq("There are more than one engaged_view_urls.")),this.qn=Jd.engagedViewUrls[0])}}var Dha=this.playerResponse.playerAds;if(Dha)for(var IGa=a,Eha=g.q(Dha),JU=Eha.next();!JU.done;JU=Eha.next()){var Fha=JU.value;if(Fha){var Gha=Fha.playerLegacyDesktopWatchAdsRenderer;
if(Gha){var Gs=Gha.playerAdParams;if(Gs){"1"==Gs.autoplay&&(this.nk=!0);this.adSafetyReason=Gs.encodedAdSafetyReason||null;void 0!==Gs.showContentThumbnail&&(this.Tp=!!Gs.showContentThumbnail);IGa.enabled_engage_types=Gs.enabledEngageTypes;break}}}}var me=this.playerResponse.playerConfig;if(me){var By=me.manifestlessWindowedLiveConfig;if(By){var Hha=Number(By.minDvrSequence),Iha=Number(By.maxDvrSequence),Jha=Number(By.minDvrMediaTimeMs),Kha=Number(By.maxDvrMediaTimeMs);Hha&&(this.Gd=Hha);Jha&&(this.ej=
Jha/1E3);Iha&&(this.Uf=Iha);Kha&&(this.xl=Kha/1E3)}var KU=me.daiConfig;if(KU){KU.enableDai&&(this.Gc=!0);var Lha=KU.enableServerStitchedDai;Lha&&(this.enableServerStitchedDai=Lha)}var hG=me.audioConfig;if(hG){var Mha=hG.loudnessDb;null!=Mha&&(this.Ip=Mha);hG.audioMuted&&(this.Kk=!0);hG.muteOnStart&&(this.Kk=!0)}var Nha=me.playbackEndConfig;if(Nha){var Oha=Nha.endSeconds;Oha&&this.mutedAutoplay&&(this.endSeconds=Oha)}var iG=me.fairPlayConfig;if(iG){var Pha=iG.certificate;Pha&&(this.Og=vB(Pha));var Qha=
Number(iG.keyRotationPeriodMs);0<Qha&&(this.lr=Qha);var Rha=Number(iG.keyPrefetchMarginMs);0<Rha&&(this.kr=Rha)}var jG=me.playbackStartConfig;if(jG){this.yx=Number(jG.startSeconds);var Sha=jG.liveUtcStartSeconds;Sha&&(this.liveUtcStartSeconds=Number(Sha));var LU=jG.startPosition;if(LU){var Tha=LU.utcTimeMillis;Tha&&(this.liveUtcStartSeconds=.001*Number(Tha));var Uha=LU.streamTimeMillis;Uha&&(this.St=.001*Number(Uha))}}else{var MU=me.skippableSegmentsConfig;if(MU){var Vha=MU.introSkipDurationMs;Vha&&
(this.ow=Number(Vha)/1E3);var Wha=MU.outroSkipDurationMs;Wha&&(this.qx=Number(Wha)/1E3)}}var NU=me.skippableIntroConfig;if(NU){var Xha=Number(NU.startMs),Yha=Number(NU.endMs);isNaN(Xha)||isNaN(Yha)||(this.ol=Xha,this.Yj=Yha)}var Zha=me.streamSelectionConfig;Zha&&(this.Vi=Number(Zha.maxBitrate));var $ha=me.visualizerConfig;$ha&&$ha.isVisualizerEligible&&(this.isVisualizerEligible=!0);var aia=me.vrConfig;aia&&(this.sl="1"==aia.partialSpherical);var Cy=me.webDrmConfig;if(Cy){Cy.skipWidevine&&(this.yF=
!0);var bia=Cy.widevineServiceCert;bia&&(this.In=vB(bia));Cy.useCobaltWidevine&&(this.useCobaltWidevine=!0);Cy.startWithNoQualityConstraint&&(this.jo=!0)}var cia=me.mediaCommonConfig;if(cia){var kG=cia.dynamicReadaheadConfig;kG&&(this.maxReadAheadMediaTimeMs=kG.maxReadAheadMediaTimeMs||NaN,this.minReadAheadMediaTimeMs=kG.minReadAheadMediaTimeMs||NaN,this.readAheadGrowthRateMs=kG.readAheadGrowthRateMs||NaN)}}var bk=this.playerResponse.streamingData;if(bk){var dia=bk.adaptiveFormats;if(dia){for(var eia=
[],fia=g.q(dia),Dh=fia.next();!Dh.done;Dh=fia.next()){var Db=Dh.value,OU=Db.indexRange,PU=Db.initRange,rc={itag:Db.itag,url:Db.url,index:OU?OU.start+"-"+OU.end:"0-0",bitrate:Db.bitrate,init:PU?PU.start+"-"+PU.end:"0-0",type:Db.mimeType,clen:Db.contentLength,lmt:Db.lastModified,xtags:Db.xtags},lG=Db.audioTrack;if(lG){var gia=lG.displayName;gia&&(rc.name=gia,rc.audio_track_id=lG.id,lG.audioIsDefault&&(rc.isDefault="1"))}var Dy=Db.captionTrack;Dy&&(rc.caption_display_name=Dy.displayName,rc.caption_vss_id=
Dy.vssId,rc.caption_language_code=Dy.languageCode,rc.caption_kind=Dy.kind);var hia=Db.cipher||Db.signatureCipher;if(hia){var QU=Vp(hia);rc.sp=QU.sp;rc.s=QU.s;rc.url=QU.url}else rc.url=Db.url;var iia=Db.width,jia=Db.height;null!=iia&&null!=jia&&(rc.size=iia+"x"+jia);var kia=Db.fps;kia&&(rc.fps=kia);var lia=Db.type;lia&&(rc.stream_type=iBa[lia]);var mia=Db.projectionType;mia&&(rc.projection_type=fBa[mia]);var nia=Db.stereoLayout;nia&&(rc.stereo_layout=hBa[nia]);var oia=Db.spatialAudioType;oia&&(rc.spatial_audio_type=
gBa[oia]);var pia=Db.drmFamilies;if(pia){for(var qia=[],ria=g.q(pia),RU=ria.next();!RU.done;RU=ria.next())qia.push(I1[RU.value]);rc.drm_families=qia.join(",")}var sia=Db.qualityLabel;sia&&(rc.quality_label=sia);var tia=Db.targetDurationSec;tia&&(rc.target_duration_sec=tia);var uia=Db.maxDvrDurationSec;uia&&(rc.max_dvr_duration_sec=uia);var via=Db.audioSampleRate;via&&(rc.audio_sample_rate=via);var wia=Db.audioChannels;wia&&(rc.audio_channels=wia);var xia=AE(Db);xia&&(rc.eotf=xia);var yia=Db.colorInfo;
if(yia){var zia=yia.primaries;if(zia){var Aia=dBa[zia];Aia&&(rc.primaries=Aia)}}var Bia=Db.loudnessDb;Db.itag&&null!=Bia&&this.ca("html5_enable_per_format_loudness")&&(this.wx[Db.itag.toString()]=Bia);eia.push(g.Hd(rc))}this.adaptiveFormats=eia.join(",")}var SU=bk.formats;if(SU){var Ey=[],Cia=g.q(SU);for(Dh=Cia.next();!Dh.done;Dh=Cia.next()){var TU=Dh.value;Ey.push(TU.itag+"/"+TU.width+"x"+TU.height)}this.Gv=Ey.join(",");Ey=[];var Dia=g.q(SU);for(Dh=Dia.next();!Dh.done;Dh=Dia.next()){var Hs=Dh.value,
Fy={itag:Hs.itag,type:Hs.mimeType,quality:Hs.quality},Eia=Hs.url;Eia&&(Fy.url=Eia);var Fia=Hs.cipher||Hs.signatureCipher;if(Fia){var UU=Vp(Fia);Fy.sp=UU.sp;Fy.s=UU.s;Fy.url=UU.url}Ey.push(g.Hd(Fy))}this.lq=Ey.join(",")}var VU=bk.hlsFormats;if(VU){var Gia=me||null,mG={};if(Gia){var WU=Gia.audioPairingConfig;if(WU&&WU.pairs)for(var Hia=g.q(WU.pairs),XU=Hia.next();!XU.done;XU=Hia.next()){var Iia=XU.value,YU=Iia.videoItag;mG[YU]||(mG[YU]=[]);mG[YU].push(Iia.audioItag)}}for(var Jia={},Kia=g.q(VU),Go=Kia.next();!Go.done;Go=
Kia.next()){var Lia=Go.value;Jia[Lia.itag]=Lia.bitrate}var Mia=[],Nia=g.q(VU);for(Go=Nia.next();!Go.done;Go=Nia.next()){var hf=Go.value,Ei={itag:hf.itag,type:hf.mimeType,url:hf.url,bitrate:hf.bitrate,width:hf.width,height:hf.height,fps:hf.fps},nG=hf.audioTrack;if(nG){var Oia=nG.displayName;Oia&&(Ei.name=Oia,Ei.audio_track_id=nG.id,nG.audioIsDefault&&(Ei.is_default="1"))}if(hf.drmFamilies){for(var Pia=[],Qia=g.q(hf.drmFamilies),ZU=Qia.next();!ZU.done;ZU=Qia.next())Pia.push(I1[ZU.value]);Ei.drm_families=
Pia.join(",")}var oG=mG[hf.itag];if(oG&&oG.length){Ei.audio_itag=oG.join(",");var Ria=Jia[oG[0]];Ria&&(Ei.bitrate+=Ria)}var Sia=AE(hf);Sia&&(Ei.eotf=Sia);hf.audioChannels&&(Ei.audio_channels=hf.audioChannels);Mia.push(g.Hd(Ei))}this.hlsFormats=Mia.join(",")}var $U=bk.licenseInfos;if($U&&0<$U.length){for(var Tia={},Uia=g.q($U),aV=Uia.next();!aV.done;aV=Uia.next()){var Via=aV.value,Wia=Via.drmFamily,Xia=Via.url;Wia&&Xia&&(Tia[I1[Wia]]=Xia)}this.Yc=Tia}var Yia=bk.drmParams;Yia&&(this.drmParams=Yia);
var Zia=bk.dashManifestUrl;Zia&&(this.yf=g.Ld(Zia,{cpn:this.clientPlaybackNonce}));var $ia=bk.hlsManifestUrl;$ia&&(this.hlsvp=$ia);var aja=bk.probeUrl;aja&&(this.probeUrl=dv(g.Ld(aja,{cpn:this.clientPlaybackNonce})))}var bja=this.playerResponse.trackingParams;bja&&(this.pg=bja);var gc=this.playerResponse.videoDetails;if(gc){var Fi=a,bV=gc.videoId;bV&&(this.videoId=bV,Fi.video_id||(Fi.video_id=bV));if(!this.ca("web_player_uid_killswitch")){var cja=gc.channelId;cja&&(this.Oc.uid=cja.substr(2))}var cV=
gc.title;cV&&(this.title=cV,Fi.title||(Fi.title=cV));var dV=gc.lengthSeconds;dV&&(this.lengthSeconds=Number(dV),Fi.length_seconds||(Fi.length_seconds=dV));var dja=gc.keywords;dja&&(this.keywords=QE(dja));var eV=gc.channelId;eV&&(this.Cg=eV,Fi.ucid||(Fi.ucid=eV));var eja=gc.viewCount;eja&&(this.rawViewCount=Number(eja));var fV=gc.author;fV&&(this.author=fV,Fi.author||(Fi.author=fV));var fja=gc.shortDescription;fja&&(this.shortDescription=fja);var gja=gc.isCrawlable;gja&&(this.isListed=gja);var hja=
gc.musicVideoType;hja&&(this.musicVideoType=hja);var gV=gc.isLive;null!=gV&&(this.isLivePlayback=gV);if(gV||gc.isUpcoming)this.isPremiere=!gc.isLiveContent;var ija=gc.thumbnail;ija&&(this.sh=zE(ija));var jja=me||null,hV=a;gc.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);gc.isUpcoming&&(this.isUpcoming=!0);if(gc.isPostLiveDvr)this.cf=!0;else{var iV=!1;if(this.Uh)this.allowLiveDvr=RF(!0),this.isLivePlayback=!0;else if(gc.isLive){hV.livestream="1";this.allowLiveDvr=RF(!!gc.isLiveDvrEnabled);
this.ug=27;gc.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var kja=gc.latencyClass;kja&&(this.latencyClass=eBa[kja]||"UNKNOWN");this.lo=!0;var lja=gc.liveChunkReadahead;lja&&(this.liveChunkReadahead=lja);var Gy=jja&&jja.livePlayerConfig;if(Gy){Gy.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Gy.hasSubfragmentedWebm&&(this.Jm=!0);Gy.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var mja=Gy.liveExperimentalContentId;mja&&(this.liveExperimentalContentId=Number(mja))}iV=
!0}else gc.isUpcoming&&(iV=!0);iV&&(this.isLivePlayback=!0,hV.adformat&&"8"!==hV.adformat.split("_")[1]||(this.ca("live_fresca_v2")?this.Zd.push("heartbeat"):(this.ur=!0,this.Zd.push("fresca"))),this.ir=this.qq=!0)}var nja=gc.isPrivate;nja&&(this.isPrivate=S(this.isPrivate,nja))}if(bb){var oja=gc||null,pja=!1,Is=bb.errorScreen;pja=Is&&(Is.playerLegacyDesktopYpcOfferRenderer||Is.playerLegacyDesktopYpcTrailerRenderer||Is.ypcTrailerRenderer)?!0:oja&&oja.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(bb.status);
if(!pja){this.errorCode="150";var pG=Is&&Is.playerErrorMessageRenderer;if(pG){this.playerErrorMessageRenderer=pG;var qja=pG.reason;qja&&(this.errorReason=g.U(qja));var jV=pG.subreason;jV&&(this.Mi=g.U(jV),this.sr=jV)}else this.errorReason=bb.reason||null;var kV=bb.status;if("LOGIN_REQUIRED"===kV)this.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===kV)this.errorDetail="2";else if("AGE_CHECK_REQUIRED"===kV){var rja=bb.errorScreen,sja=rja&&rja.playerKavRenderer;this.errorDetail=sja&&sja.kavUrl?"4":
"3"}else this.errorDetail=bb.isBlockedInRestrictedMode?"5":"0"}}var tja=this.playerResponse.interstitialPods;tja&&dma(this,tja);this.eg&&this.eventId&&(this.eg=$p(this.eg,{ei:this.eventId}));var lV=this.playerResponse.captions;lV&&lV.playerCaptionsTracklistRenderer&&cma(this,lV.playerCaptionsTracklistRenderer);(this.clipConfig=this.playerResponse.clipConfig)&&null!=this.clipConfig.startTimeMs&&(this.yx=.001*Number(this.clipConfig.startTimeMs));(this.accountLinkingConfig=this.playerResponse.accountLinkingConfig)&&
this.accountLinkingConfig.alsParam&&(this.hm=this.accountLinkingConfig.alsParam);this.ca("web_player_include_innertube_commands")&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&FE(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}WE(this,a);a.queue_info&&(this.queueInfo=a.queue_info);var uja=a.hlsdvr;null!=uja&&(this.allowLiveDvr=RF("1"==
uja));this.adQueryId=a.ad_query_id||null;this.adSafetyReason||(this.adSafetyReason=a.encoded_ad_safety_reason||null);this.Oz=a.agcid||null;this.Cu=a.ad_id||null;this.Hu=a.ad_sys||null;this.qv=a.encoded_ad_playback_context||null;this.Kk=S(this.Kk,a.infringe||a.muted);this.authKey=a.authkey;this.Xc=a.authuser;this.Wz=a.autonav_watch_endpoint||null;this.mutedAutoplay=S(this.mutedAutoplay,a&&a.playmuted)&&this.ca("embeds_enable_muted_autoplay");this.lo=S(this.lo,a.enable_cardio);this.ir=S(this.ir,a.enable_cardio_before_playback);
this.endSeconds=xB(this.endSeconds,this.qx||a.end||a.endSeconds);this.pg=yB(this.pg,a.itct);this.uw=S(this.uw,a.noiba);this.Yr=S(this.Yr,a.is_live_destination);this.isLivePlayback=S(this.isLivePlayback,a.live_playback);this.cf=S(this.cf,a.post_live_playback);this.isMdxPlayback=S(this.isMdxPlayback,a.mdx);var qG=a.mdx_control_mode;qG&&(this.mdxControlMode="number"===typeof qG?qG:g.rd(qG));this.rw=S(this.rw,a.is_inline_playback_no_ad);this.hi=xB(this.hi,a.reload_count);this.reloadReason=yB(this.reloadReason,
a.reload_reason);this.Tp=S(this.Tp,a.show_content_thumbnail);this.Bw=S(this.Bw,a.utpsa);this.ly=S(this.ly,a.third_party_remapped_ad);this.cycToken=a.cyc||null;this.oy=a.tkn||null;var vja=wE(a);0<Object.keys(vja).length&&(this.sh=vja);this.Lf=yB(this.Lf,a.vvt);this.mdxEnvironment=yB(this.mdxEnvironment,a.mdx_environment);this.VL=a.osig;this.eventId||(this.eventId=a.eventid);this.osid||(this.osid=a.osid);this.playlistId=yB(this.playlistId,a.list);a.index&&this.ca("embeds_wexit_list_ajax_migration")&&
void 0===this.playlistIndex&&(this.playlistIndex=xB(0,a.index));this.KE=a.pyv_view_beacon_url;this.NE=a.pyv_quartile25_beacon_url;this.OE=a.pyv_quartile50_beacon_url;this.PE=a.pyv_quartile75_beacon_url;this.ME=a.pyv_quartile100_beacon_url;var wja=a.remarketing_url;wja&&(this.remarketingUrl=wja);var xja=a.ppv_remarketing_url;xja&&(this.ppvRemarketingUrl=xja);var yja=a.session_data;!this.eF&&yja&&(this.eF=Tp(yja).feature);this.qw=1==xB(this.qw?1:0,a.is_fling);this.vnd=xB(this.vnd,a.vnd);this.Am=yB(this.Am,
a.force_ads_url);this.If=yB(this.If,a.ctrl);this.xe=yB(this.xe,a.ytr);this.Hi=a.ytrcc;this.gF=a.ytrexp;this.hF=a.ytrext;this.Ep=yB(this.Ep,a.adformat);this.Ly=yB(this.Ly,a.attrib);this.slotPosition=xB(this.slotPosition,a.slot_pos);this.breakType=a.break_type;this.Sp=S(this.Sp,a.ssrt);this.videoId=AB(a)||this.videoId;this.zh=yB(this.zh,a.vss_credentials_token);this.cg=yB(this.cg,a.vss_credentials_token_type);this.cm=S(this.cm,a.audio_only);this.Ny=S(this.Ny,a.aac_high);this.qk=S(this.qk,a.prefer_low_quality_audio);
this.Dp=yB(this.Dp,a.qoe_cat);this.xm=S(this.xm,a.download_media);this.Mg=S(this.Mg,a.download_media_in_bg);this.Wh=S(this.Wh,a.prefer_gapless);a:{var mV=this.playerResponse;if(mV&&mV.adPlacements)for(var zja=g.q(mV.adPlacements),nV=zja.next();!nV.done;nV=zja.next()){var rG=nV.value.adPlacementRenderer;if(null!=rG&&"AD_PLACEMENT_KIND_START"==(rG.config&&rG.config.adPlacementConfig&&rG.config.adPlacementConfig.kind)){var Aja=!0;break a}}Aja=!1}Aja&&(this.adModule=!0,this.Zd.push("ad"));var Bja=a.adaptive_fmts;
Bja&&(this.adaptiveFormats=Bja);var Cja=a.allow_embed;Cja&&(this.allowEmbed="1"==Cja);var Dja=a.backgroundable;Dja&&(this.backgroundable="1"==Dja);var Eja=a.autonav;Eja&&(this.pl="1"==Eja);var Fja=a.autoplay;Fja&&(this.nk="1"==Fja);var Gja=a.iv_load_policy;Gja&&(this.annotationsLoadPolicy=wB(this.annotationsLoadPolicy,Gja,RB));var Hja=a.cc_lang_pref;Hja&&(this.captionsLanguagePreference=yB(Hja,this.captionsLanguagePreference));var Ija=a.cc_load_policy;Ija&&(this.Ci=wB(this.Ci,Ija,RB));var Jja=a.cached_load;
Jja&&(this.Pu=S(this.Pu,Jja));"0"==a.dash&&(this.zA=!0);var Kja=a.dashmpd;Kja&&(this.yf=g.Ld(Kja,{cpn:this.clientPlaybackNonce}));var Lja=a.delay;Lja&&(this.Lg=g.rd(Lja));var Mja=this.qx||a.end;void 0!=Mja&&(this.clipEnd=xB(this.clipEnd,Mja));var Nja=a.fmt_list;Nja&&(this.Gv=Nja);a.fresca_preroll&&this.Zd.push("fresca");a.heartbeat_preroll&&this.Zd.push("heartbeat");this.Lm=-Math.floor(10*Math.random());this.Ro=-Math.floor(40*Math.random());var Oja=a.is_listed;Oja&&(this.isListed=S(this.isListed,
Oja));var Pja=a.is_private;Pja&&(this.isPrivate=S(this.isPrivate,Pja));var Qja=a.pipable;Qja&&(this.pipable=S(this.pipable,Qja));this.gy=(this.Iu=this.pipable&&this.Na.Ur)&&(!this.Na.showMiniplayerButton||this.ca("web_player_pip"));var Rja=a.paid_content_overlay_duration_ms;Rja&&(this.paidContentOverlayDurationMs=g.rd(Rja));var Sja=a.paid_content_overlay_text;Sja&&(this.paidContentOverlayText=Sja);var Tja=a.url_encoded_fmt_stream_map;Tja&&(this.lq=Tja);var Uja=a.hls_formats;Uja&&(this.hlsFormats=
Uja);var Vja=a.hlsvp;Vja&&(this.hlsvp=Vja);var sG=a.length_seconds;sG&&(this.lengthSeconds="string"===typeof sG?g.rd(sG):sG);var tG=a.live_start_walltime;tG&&(this.qs="number"===typeof tG?tG:g.rd(tG));var uG=a.live_manifest_duration;uG&&(this.Um="number"===typeof uG?uG:g.rd(uG));var Wja=a.player_params;Wja&&(this.playerParams=Wja);var Xja=a.partnerid;Xja&&(this.ug=xB(this.ug,Xja));var Yja=a.probe_url;Yja&&(this.probeUrl=dv(g.Ld(Yja,{cpn:this.clientPlaybackNonce})));var Zja=a.profile_picture;Zja&&
(this.Pe=yB(Zja,this.Pe));var oV=a.pyv_billable_url;oV&&av(oV)&&(this.qn=oV);var pV=a.pyv_conv_url;pV&&av(pV)&&(this.LE=pV);RE(this,a);0<this.startSeconds||(this.Xj=this.startSeconds=xB(this.startSeconds,this.yx||this.ow||a.start||a.startSeconds));var $ja=a.live_utc_start;null!=$ja&&(this.liveUtcStartSeconds=Number($ja));var aka=a.utc_start_millis;aka&&(this.liveUtcStartSeconds=.001*Number(aka));var bka=a.stream_time_start_millis;bka&&(this.St=.001*Number(bka));var cka=this.ow||a.start;void 0==cka||
"1"==a.resume||this.isLivePlayback||(this.clipStart=xB(this.clipStart,cka));var dka=a.url_encoded_third_party_media;dka&&(this.zn=Wp(dka));var qV=a.ypc_offer_button_formatted_text;if(qV){var eka=JSON.parse(qV);this.Py=null!=eka?eka:null;this.tG=qV}var fka=a.ypc_offer_button_text;fka&&(this.pu=fka);var gka=a.ypc_offer_description;gka&&(this.rq=gka);var hka=a.ypc_offer_headline;hka&&(this.qu=hka);var ika=a.ypc_full_video_message;ika&&(this.oq=ika);var jka=a.ypc_offer_id;jka&&(this.ru=jka);var kka=a.ypc_buy_url;
kka&&(this.lu=kka);var lka=a.ypc_item_thumbnail;lka&&(this.mu=lka);var mka=a.ypc_item_title;mka&&(this.nu=mka);var nka=a.ypc_item_url;nka&&(this.ou=nka);var oka=a.ypc_vid;oka&&(this.tu=oka);a.ypc_overlay_timeout&&(this.tq=Number(a.ypc_overlay_timeout));var pka=a.ypc_trailer_player_vars;pka&&(this.Kn=Vp(pka));var qka=a.ypc_original_itct;qka&&(this.hR=qka);this.Cg=yB(this.Cg,a.ucid);a.baseUrl&&(this.Oc.baseUrl=a.baseUrl);a.uid&&(this.Oc.uid=a.uid);a.oeid&&(this.Oc.oeid=a.oeid);a.ieid&&(this.Oc.ieid=
a.ieid);a.ppe&&(this.Oc.ppe=a.ppe);a.engaged&&(this.Oc.engaged=a.engaged);a.subscribed&&(this.Oc.subscribed=a.subscribed);this.Oc.focEnabled=S(this.Oc.focEnabled,a.focEnabled);this.Oc.rmktEnabled=S(this.Oc.rmktEnabled,a.rmktEnabled);this.Rt=a.storyboard_spec||null;this.rs=a.live_storyboard_spec||null;this.aC=a.iv_endscreen_url||null;this.ds=S(this.ds,a.iv3_module);this.ur=S(this.ur,a.fresca_module);this.qq=S(this.qq,a.ypc_license_checker_module);this.dm=S(this.dm,a.ypc_module);this.Jn=S(this.Jn,a.ypc_clickwrap_module);
this.dm&&this.Zd.push("ypc");this.Jn&&this.Zd.push("ypc_clickwrap");this.DE={video_id:a.video_id,eventid:a.eventid,cbrand:a.cbrand,cbr:a.cbr,cbrver:a.cbrver,c:a.c,cver:a.cver,ctheme:a.ctheme,cplayer:a.cplayer,cmodel:a.cmodel,cnetwork:a.cnetwork,cos:a.cos,cosver:a.cosver,cplatform:a.cplatform,user_age:a.user_age,user_display_image:a.user_display_image,user_display_name:a.user_display_name,user_gender:a.user_gender,csi_page_type:a.csi_page_type,csi_service_name:a.csi_service_name,enablecsi:a.enablecsi,
enabled_engage_types:a.enabled_engage_types};SE(this,a);lF(this)?aF(this)&&(this.isLivePlayback&&this.yf?this.Jk=!0:this.Og&&(this.No=!0)):mF(this)?this.Jk=!0:!fF(this,this.adaptiveFormats)&&this.yf&&(this.Jk=!0);var rV=a.adpings;rV&&(this.Fu=rV?Vp(rV):null);var rka=a.feature;rka&&(this.Gp=rka);var ska=a.referrer;ska&&(this.referrer=ska);this.clientScreenNonce=yB(this.clientScreenNonce,a.csn);this.Kt=xB(this.Kt,a.root_ve_type);this.hs=xB(this.hs,a.kids_age_up_mode);void 0!=a.kids_app_info&&(this.kidsAppInfo=
a.kids_app_info);this.kq=S(this.kq,a.upg_content_filter_mode);var tka=a.unplugged_location_info;tka&&(this.Md=tka);var uka=a.unplugged_partner_opt_out;uka&&(this.Cn=yB("",uka));this.Zq=S(this.Zq,a.disable_watch_next);this.Ko=yB(this.Ko,a.internal_ip_override);this.ww=!!a.is_yto_interstitial;(this.interstitials.length||this.ww)&&this.Zd.push("yto");a.Ot&&(this.Ot=a.Ot)};
g.k.T=function(){return this.Na};
g.k.ca=function(a){return g.R(this.Na.experiments,a)};
g.k.Hv=function(){return bs()};
g.k.Vd=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.ID=function(){this.la()||(this.ma.C||this.ma.unsubscribe("refresh",this.ID,this),this.kA(-1))};
g.k.kA=function(a){if(!this.isLivePlayback||!this.Rc||"fairplay"!=this.Rc.flavor){var b=Kz(this.ma,this.Cw);if(0<b.length&&(this.V("cuepointupdated",b,a),this.Cw+=b.length,hF(this)&&OF(this))){b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.V("ctmp","cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs)}}};
g.k.Iq=function(a){var b=this;if(this.la())return tr();this.qj=this.vg=this.Ha=null;var c=this.Na.deviceParams.c;this.ca("disable_rqs")||(this.rj=/^rq/.test(this.clientPlaybackNonce)||/^r/.test(this.clientPlaybackNonce)&&/UNPLUGGED/.test(c)||OF(this));return nma(this,a).then(void 0,function(){return oma(b,a)}).then(void 0,function(){return pma(b)}).then(void 0,function(){return rma(b)})};
g.k.ke=function(){var a={};this.Ka&&(a.fmt=pu(this.Ka),this.Nc&&pu(this.Nc)!=pu(this.Ka)&&(a.afmt=pu(this.Nc)));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Kk&&(a.infringe=1);this.Xi&&(a.splay=1);var b=vF(this);b&&(a.live=b);this.nk&&(a.autoplay=1);this.Ct&&(a.sdetail=this.Ct);this.ug&&(a.partnerid=this.ug);this.osid&&(a.osid=this.osid);return a};
g.k.Rf=function(){var a=g.hC(this.Na)||this.ca("web_l3_storyboard");if(!this.Eg)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Eg=new LE(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.ma&&(c=Ob(this.ma.u).index)&&(this.Eg=new OE(b.spec,this.ma.isLive,c,a))}else this.Rt?this.Eg=new LE(this.Rt,this.lengthSeconds,void 0,!1,a):this.rs&&this.ma&&(b=Ob(this.ma.u).index)&&
(this.Eg=new OE(this.rs,this.ma.isLive,b,a));return this.Eg};
g.k.getStoryboardFormat=function(){if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Rt||this.rs};
g.k.od=function(){return this.ma&&!isNaN(this.ma.od())?this.ma.od():hF(this)?0:this.lengthSeconds};
g.k.qc=function(){return this.ma&&!isNaN(this.ma.qc())?this.ma.qc():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.ma&&this.Ka){var b=this.ma.u[this.Ka.id];if(!b)return null;var c=b.index.Sg(a);b=b.index.oe(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.la()&&!(!this.videoId&&!this.zn)};
g.k.Bc=function(){return yF(this)&&!this.Jk&&!this.No};
g.k.yd=function(a){if(30==this.ug)return(a=this.sh["default.jpg"])?a:this.videoId?g.Ld("//docs.google.com/vt",{id:this.videoId,authuser:this.Xc,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.sh[a];return b||this.Na.N||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:cC(this.Na,this.videoId,a)};
g.k.qg=function(){return this.isLivePlayback||this.cf||this.Mo||!(!this.liveUtcStartSeconds||!this.Um)};
g.k.isOtf=function(){return!!this.ma&&(this.ma.isOtf||!this.cf&&!this.isLivePlayback&&this.ma.C)};
g.k.getAvailableAudioTracks=function(){return this.Ha?0<this.Ha.getAvailableAudioTracks().length?this.Ha.getAvailableAudioTracks():this.Tr||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.Nc&&!Qv(this.Nc))return g.jb(this.getAvailableAudioTracks(),function(d){return d.id==a.Nc.id})||this.eo;
if(this.Tr){if(!this.Op)for(var b=g.q(this.Tr),c=b.next();!c.done;c=b.next())if(c=c.value,c.u.getIsDefault()){this.Op=c;break}return this.Op||this.eo}return this.eo};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getPlaylistId=function(){return null};
g.k.Ja=function(){return this};
g.k.Rj=function(){return this.Na.getVideoUrl(this.videoId)};
g.k.Yi=function(){return!!this.ma&&this.ma.Yi()};
g.k.Zi=function(){return!!this.ma&&this.ma.Zi()};
g.k.Ti=function(){return!!this.ma&&this.ma.Ti()};
g.k.Nm=function(){return!!this.ma&&this.ma.Nm()};
g.k.isAd=function(){return!!this.adFormat};
g.k.Ye=function(){return this.oauthToken||this.Na.jd};
g.k.QB=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.wF=function(){return this.ds};
g.k.dy=function(){return this.ur};
g.k.ey=function(){return this.qq||this.Ud};
g.k.Rp=function(){return this.dm||this.Ud};
g.k.Ju=function(){return bF(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){if(!(this.Rc&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.Rc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.Rc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.Rc.flavor&&this.playerResponse.playerConfig.webDrmConfig.useInnertubeDrmService||a||b)};g.TF.prototype.toString=function(){return this.type+this.id};g.u(g.UF,g.P);g.k=g.UF.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Qh=function(a){return this.loop||!!a||0<=this.index-1};
g.k.Ja=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.PE(this.Na,a),g.C(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.ks++;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.ks++}this.V("shuffle")};
g.k.yd=function(a){a=a||"hqdefault.jpg";var b=this.sh[a];if(b||this.Na.N||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.JF.length)return cC(this.Na,this.JF[0],a)};
g.k.getLength=function(){return this.length};
g.k.loadPlaylist=function(a,b){var c=this;this.BH&&g.oq(g.Ld(a,b),{format:"JSON",onSuccess:function(d,e){ZF(c,e)},
onError:function(){return c.V("error")}})};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.Fp=a;this.loaded&&g.Fo(this.Fp,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Rj=function(){return this.Na.getVideoUrl(this.Ja().videoId,this.getPlaylistId())};
g.k.aa=function(){this.Fp=null;g.fg(this.items);g.P.prototype.aa.call(this)};aG.prototype.B=function(a,b){var c,d,e,f=null===(d=null===(c=b.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars,h=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar;f&&h&&this.replace(f,h)};
aG.prototype.replace=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())delete this.u[d.value.encryptedTokenJarContents];$F(this,b)};bG.prototype.B=function(a){var b;a=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.u=void 0)};var dG={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"};var Fma=/[&\?]action_proxy=1/,Ema=/[&\?]token=([\w-]*)/,Gma=/[&\?]video_id=([\w-]*)/,Hma=/[&\?]index=([\d-]*)/,Ima=/[&\?]m_pos_ms=([\d-]*)/,Jma=/[&\?]vvt=([\w-]*)/,Kma=/[&\?]mt=([\d-]*)/,Bma="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(" "),GG="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(" "),
EG={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"},FG={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},HG={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};
wG.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return CG(this,a,b);var d=1===this.B;d&&this.u.app.K.tick("a_bid_s");var e=yma();if(null!==e)return d&&this.u.app.K.tick("a_bid_f"),CG(this,a,b,e);e=zma();d&&Jm(e,function(){c.u.app.K.tick("a_bid_f")});
return e.then(function(f){return CG(c,a,b,f)})};
wG.prototype.reset=function(){this.D=this.B=1};g.k=JG.prototype;g.k.qo=function(a){a:{var b=g.q(this.C.u.u.values());for(var c=b.next();!c.done;c=b.next()){c=g.q(c.value.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.slot.slotId===a&&"scheduled"===d.u){b=!0;break a}}b=!1}b?this.B.qo(a):this.u().qo(a)};
g.k.Yn=function(){a:{var a=VP(this.C.u,"slot_type_above_feed_1");a=g.q(a.values());for(var b=a.next();!b.done;b=a.next())if(UP(b.value)){a=!0;break a}a=!1}a?this.B.Yn():this.u().Yn()};
g.k.qr=function(a){this.u().qr(a)};
g.k.Is=function(){this.u().Is()};
g.k.Hs=function(){this.u().Hs()};
g.k.Uo=function(){this.u().Uo()};g.u(KG,g.B);g.u(QG,Za);var dQ=new Map([[0,"trigger_category_layout_exit_normal"],[1,"trigger_category_layout_exit_skip"],[2,"trigger_category_layout_exit_mute"],[3,"trigger_category_slot_expiration"],[4,"trigger_category_slot_fulfillment"],[5,"trigger_category_slot_entry"],[6,"trigger_category_layout_exit_user_input_submitted"]]);g.u(aH,g.B);aH.prototype.ai=function(a,b,c,d,e,f){var h=this;hR(this.za.get())&&!e&&Pma(d.filter(PG),a,f);var l=NG(this.Da.get(),1);LG(this.gb.get(),"opportunity_type_player_response_received",function(){return OG(h.Yb.get(),c,d,a,b,e,l)});
VL(this.za.get())&&Rqa(this.Du)};
aH.prototype.yl=function(){};g.u(cH,g.oD);cH.prototype.deactivate=function(){this.B=!0};iH.prototype.showCompanion=function(a,b){b.contentVideoId||(b.contentVideoId=a);this.u.va("updateKevlarOrC3Companion",b)};jH.prototype.Lo=function(){return!1};
jH.prototype.fa=function(){return function(){return null}};g.u(mH,jH);g.k=mH.prototype;g.k.bf=function(){return!0};
g.k.pe=function(){return!1};
g.k.isSkippable=function(){return null!=this.oa};
g.k.getVideoUrl=function(){return this.Y};
g.k.Lo=function(){return!0};g.u(pH,jH);pH.prototype.bf=function(){return!0};
pH.prototype.pe=function(){return!0};g.u(wH,jH);wH.prototype.bf=function(){return!0};
wH.prototype.pe=function(){return!1};
wH.prototype.Lo=function(){return!0};
wH.prototype.fa=function(){return function(){return g.te("video-ads")}};xH.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.u.u};var Npa={sR:"FINAL",uR:"AD_BREAK_LENGTH",vR:"AD_CPN",wR:"AH",xR:"AD_MT",yR:"ASR",AR:"AW",gS:"NM",hS:"NX",iS:"NY",kS:"CONN",mS:"CPN",uS:"DV_VIEWABILITY",AS:"ERRORCODE",DS:"ERROR_MSG",FS:"EI",PS:"GOOGLE_VIEWABILITY",gT:"IAS_VIEWABILITY",qT:"LACT",uT:"LIVE_TARGETING_CONTEXT",ET:"I_X",FT:"I_Y",HT:"MT",JT:"MIDROLL_POS",KT:"MIDROLL_POS_MS",LT:"MOAT_INIT",NT:"MOAT_VIEWABILITY",oU:"P_H",pU:"PV_H",qU:"PV_W",rU:"P_W",tU:"TRIGGER_TYPE",KU:"SDKV",SU:"SLOT_POS",cV:"SURVEY_LOCAL_TIME_EPOCH_S",bV:"SURVEY_ELAPSED_MS",
lH:"VIS",pV:"VIEWABILITY",qV:"VED",rV:"VOL",sV:"WT",wV:"YT_ERROR_CODE"};var bna=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];var IH=null;g.u(HH,g.P);HH.prototype.wo=function(a){return this.u.hasOwnProperty(a)?this.u[a].wo():{}};
g.Ja("ytads.bulleit.getVideoMetadata",function(a){return JH().wo(a)},void 0);
g.Ja("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=JH();c=dna(c);null!==c&&d.V(c,{queryId:a,viewabilityString:b})},void 0);KH.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.on(a.baseUrl,cna(b,c,d)),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.Ye();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.B();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.Vs(e,void 0,d,f)}catch(p){}};g.u(LH,KH);LH.prototype.Ye=function(){return this.u?this.u.Ye():""};
LH.prototype.B=function(){return this.u?this.u.T().pageId:""};MH.prototype.send=function(a,b,c,d){d=void 0===d?[]:d;try{var e=a.match(wd);if("https"===e[1])var f=a;else e[1]="https",f=ud("https",e[2],e[3],e[4],e[5],e[6],e[7]);var h=nn(f);if(this.C)var l=d;else l=[],cq(f)&&(l.push({headerType:"USER_AUTH"}),this.B&&l.push({headerType:"PLUS_PAGE_ID"}));this.u.send({baseUrl:f,scrubReferrer:h,headers:l},b,c)}catch(m){}};g.u(NH,g.B);g.u(UH,g.B);g.u(qI,g.P);g.k=qI.prototype;g.k.wo=function(){return{}};
g.k.Qx=function(){};
g.k.Nb=function(a){this.Jg();this.V(a)};
g.k.Jg=function(){sI(this,this.X,3);this.X=[]};
g.k.getDuration=function(){return this.J.getDuration(2,!1)};
g.k.Tj=function(){var a=this.Pa;VH(a)||!hI(a,"impression")&&!hI(a,"start")||hI(a,"abandon")||hI(a,"complete")||hI(a,"skip")||(XH(a)?gI(a,"pause"):aI(a,"pause"))};
g.k.Ri=function(){this.Y||this.I||this.Fc()};
g.k.me=function(){bI(this.Pa,this.getDuration())};
g.k.Dd=function(){var a=this.Pa;!hI(a,"impression")||hI(a,"skip")||hI(a,"complete")||gI(a,"abandon")};
g.k.Uj=function(){var a=this.Pa;XH(a)?aI(a,"skip"):!hI(a,"impression")||hI(a,"abandon")||hI(a,"complete")||aI(a,"skip")};
g.k.Fc=function(){if(!this.I){var a=this.Pa,b=this.J.getVideoData(2);a.C.AD_CPN=b&&b.clientPlaybackNonce||"";a=this.Pa;XH(a)?(b=a.u.getCurrentTime(2,!1),eI(a,"impression",b,0)):aI(a,"impression");aI(a,"start");VH(a)||a.u.isFullscreen()&&gI(a,"fullscreen");this.I=!0}};
g.k.pd=function(a){a=a||"";var b="",c="",d="";OH(this.J)&&(b=g.fI(this.J,2).state,this.J.app.F&&(c=this.J.app.F.Vf(),null!=this.J.app.F.eh()&&(d=this.J.app.F.eh())));var e=this.Pa;e.C=FH(e.C,DH(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));aI(e,"error")};
g.k.af=function(){};
g.k.QE=function(){this.V("adactiveviewmeasurable")};
g.k.RE=function(){this.V("adfullyviewableaudiblehalfdurationimpression")};
g.k.SE=function(){this.V("adoverlaymeasurableimpression")};
g.k.TE=function(){this.V("adoverlayunviewableimpression")};
g.k.UE=function(){this.V("adoverlayviewableendofsessionimpression")};
g.k.VE=function(){this.V("adoverlayviewableimmediateimpression")};
g.k.WE=function(){this.V("adviewableimpression")};
g.k.dispose=function(){this.la()||(this.Jg(),this.B.unsubscribe("adactiveviewmeasurable",this.QE,this),this.B.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.RE,this),this.B.unsubscribe("adoverlaymeasurableimpression",this.SE,this),this.B.unsubscribe("adoverlayunviewableimpression",this.TE,this),this.B.unsubscribe("adoverlayviewableendofsessionimpression",this.UE,this),this.B.unsubscribe("adoverlayviewableimmediateimpression",this.VE,this),this.B.unsubscribe("adviewableimpression",
this.WE,this),delete this.B.u[this.ad.K],g.P.prototype.dispose.call(this))};
g.k.JA=function(){return""};g.u(vI,qI);vI.prototype.aa=function(){this.u&&(this.J.removeEventListener("videodatachange",this.u),this.u=null);this.C&&(this.J.removeEventListener("onAdStart",this.C),this.C=null);qI.prototype.aa.call(this)};g.u(xI,jH);xI.prototype.bf=function(){return!1};
xI.prototype.pe=function(){return!0};g.u(yI,mI);g.u(zI,vI);zI.prototype.Ad=function(){var a=this,b=this.J.getVideoData(2),c=this.K.renderer;hna(this)||(b&&(c&&c.adVideoId||b.Pe&&AI(this,b))?wI(this):(this.D=function(d,e,f){e&&2==f&&AI(a,e)&&e.Pe&&(a.D&&(a.J.removeEventListener("videodatachange",a.D),a.D=null),wI(a))},this.J.addEventListener("videodatachange",this.D)))};
zI.prototype.af=function(a){jI(this.Pa,a)};
zI.prototype.aa=function(){this.D&&(this.J.removeEventListener("videodatachange",this.D),this.D=null);vI.prototype.aa.call(this)};g.u(BI,jH);BI.prototype.bf=function(){return!0};
BI.prototype.pe=function(){return!1};g.u(CI,mI);g.u(DI,qI);g.k=DI.prototype;g.k.Ad=function(){0<this.u&&this.Fc()};
g.k.Fc=function(){var a=this;this.Ua=new g.H(function(){a.me();for(var b=g.q(a.C.u.completionCommands||[]),c=b.next();!c.done;c=b.next())a.D.executeCommand(c.value,a.macros);a.Nb("adended")},this.u,this);
g.C(this,this.Ua);this.Ua.start();tI(this,[new CI(this.C.u,this.macros)]);qI.prototype.Fc.call(this)};
g.k.Dd=function(){qI.prototype.Dd.call(this);this.Nb("adabandoned")};
g.k.me=function(){qI.prototype.me.call(this)};
g.k.Nb=function(a){this.Ua&&this.Ua.stop();qI.prototype.Nb.call(this,a)};g.u(EI,mI);g.u(FI,qI);FI.prototype.Ad=function(){this.Fc()};
FI.prototype.Fc=function(){qI.prototype.Fc.call(this);if(g.R(this.J.T().experiments,"self_podding_force_opt_in")){var a=this.u.u.forceSelfPodOptInCommand;a&&this.C.executeCommand(a,this.macros)}else tI(this,[new EI(this.u.u,this.macros)])};
FI.prototype.Dd=function(){qI.prototype.Dd.call(this);this.Nb("adabandoned")};
FI.prototype.pd=function(a){qI.prototype.pd.call(this,a);this.Nb("aderror")};g.u(GI,jH);GI.prototype.bf=function(){return!0};
GI.prototype.pe=function(){return!1};g.u(HI,jH);HI.prototype.bf=function(){return!0};
HI.prototype.pe=function(){return!1};g.u(II,jH);II.prototype.bf=function(){return!1};
II.prototype.pe=function(){return!0};g.u(JI,jH);JI.prototype.bf=function(){return!0};
JI.prototype.pe=function(){return!0};g.u(KI,jH);KI.prototype.bf=function(){return!0};
KI.prototype.pe=function(){return!1};g.u(LI,jH);LI.prototype.bf=function(){return!1};
LI.prototype.pe=function(){return!0};g.u(MI,jH);MI.prototype.bf=function(){return!0};
MI.prototype.pe=function(){return!1};g.u(NI,jH);NI.prototype.bf=function(){return!0};
NI.prototype.pe=function(){return!1};OI.prototype.create=function(a,b,c){return a instanceof mH?this.ba.create(a,b):a instanceof JI?this.K.create(a,b):a instanceof LI?this.P.create(a,b):a instanceof wH?this.W.create(a,b):a instanceof BI?this.B.create(a,b):a instanceof KI?this.N.create(a,b):a instanceof xI?this.u.create(a,b,c):a instanceof NI?this.Y.create(a,b):a instanceof MI?this.X.create(a,b):a instanceof pH?this.C.create(a,b):a instanceof HI?this.F.create(a,b):a instanceof GI?this.D.create(a,b):a instanceof II?this.I.create(a,b):
null};g.u(PI,qI);g.k=PI.prototype;g.k.Dd=function(){qI.prototype.Dd.call(this);this.Nb("adabandoned")};
g.k.Tj=function(){qI.prototype.Tj.call(this);this.V("adpause",2)};
g.k.Ri=function(){qI.prototype.Ri.call(this);this.V("adplay",1)};
g.k.Fc=function(){qI.prototype.Fc.call(this);this.u.stop();this.C.R(this.J,g.rD("bltplayback"),this.zL);var a=new g.oD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.kM(this.J,[a],2);this.V("adplay",1)};
g.k.me=function(){qI.prototype.me.call(this);this.Nb("adended")};
g.k.pd=function(a){qI.prototype.pd.call(this,a);this.Nb("aderror")};
g.k.Ad=function(){SH(this.J,!1);var a=this.D.B||{};a.autoplay="1";this.J.cueVideoByPlayerVars(a,2);this.u.start();this.J.playVideo(2);this.J.va("onAdIntroStateChange",1)};
g.k.Nb=function(a){this.u.stop();SH(this.J,!0);"adabandoned"!=a&&this.J.va("onAdComplete");this.J.va("onAdEnd");this.V(a);this.J.va("onAdIntroStateChange",0)};
g.k.zL=function(a){"bltcompletion"==a.getId()&&(g.aX(this.J,"bltplayback",2),bI(this.Pa,this.getDuration()))};g.u(QI,mI);g.u(RI,qI);g.k=RI.prototype;
g.k.Ad=function(){if(this.F)for(var a=g.q(this.F.listeners),b=a.next();!b.done;b=a.next())if(b=b.value,b.slot)$G("AdNotify requested to enter before another one exited");else{b.slot={slotId:CQ(b.Ta.get(),"slot_type_in_player"),Ya:"slot_type_in_player",feedPosition:1,Sb:void 0,ae:[],Qe:[],sb:"surface",Ba:new nP([])};var c=b.u(),d=b.slot;NP(c.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",d);c=g.q(c.B);for(var e=c.next();!e.done;e=c.next())e.value.sg(d);d=b.u();b=b.slot;d=g.q(d.B);for(c=d.next();!c.done;c=
d.next())c.value.gi(b)}0>=this.K&&(g.N(Error("durationMs was specified incorrectly with a value of: "+this.K)),this.me());this.Fc();this.J.addEventListener("progresssync",this.P)};
g.k.Dd=function(){qI.prototype.Dd.call(this);this.Nb("adabandonedreset")};
g.k.Fc=function(){var a=this.J.T();qI.prototype.Fc.call(this);this.u=Math.floor(this.J.getCurrentTime());this.D=this.u+this.K/1E3;g.VB(a)?this.J.va("onAdMessageChange",{renderer:this.C.u,startTimeSecs:this.u}):tI(this,[new QI(this.C.u)]);a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.ks(),c=g.R(this.J.T().experiments,"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs;b&&g.Fq("adNotify",{clientScreenNonce:b,adMediaTimeSec:this.D,
timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)});if(this.F)for(this.N=!0,a=g.q(this.F.listeners),b=a.next();!b.done;b=a.next())if(b=b.value,b.slot){c=b.u();b=b.slot;NP(c.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Ne(b)}else $G("Received AdNotify started event without start requested event");g.T(g.fI(this.J,1),512)&&(a=(a=this.J.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.ks(),c=g.R(this.J.T().experiments,
"use_video_ad_break_offset_ms_int64")?this.C.u.videoAdBreakOffsetMsInt64:this.C.u.videoAdBreakOffsetMs,b&&g.Fq("adNotifyFailure",{clientScreenNonce:b,adMediaTimeSec:this.D,timeToAdBreakSec:Math.ceil(this.D-this.u),clientPlaybackNonce:a,videoAdBreakOffsetSec:Math.floor(c/1E3)}),this.me())};
g.k.me=function(){qI.prototype.me.call(this);this.Nb("adended")};
g.k.pd=function(a){qI.prototype.pd.call(this,a);this.Nb("aderror")};
g.k.Nb=function(a){this.J.removeEventListener("progresssync",this.P);this.Jg();this.V(a);if(this.F&&this.N){this.N=!1;a=g.q(this.F.listeners);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c.slot){b=c.slot;c.slot=void 0;c=c.u();NP(c.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Oe(b)}else $G("Received AdNotify terminated event when no slot is active")}}};
g.k.dispose=function(){this.J.removeEventListener("progresssync",this.P);qI.prototype.dispose.call(this)};
g.k.Jg=function(){g.VB(this.J.T())?this.J.va("onAdMessageChange",{renderer:null,startTimeSecs:this.u}):qI.prototype.Jg.call(this)};g.u(SI,mI);g.u(TI,qI);TI.prototype.Ad=function(){tI(this,[new SI(this.ad.u,this.macros)])};
TI.prototype.af=function(a){jI(this.Pa,a)};g.u(UI,mI);g.u(VI,qI);VI.prototype.Ad=function(){var a=new UI(this.u.u,this.macros);tI(this,[a])};g.u(WI,mI);g.u(XI,qI);XI.prototype.Ad=function(){this.Fc()};
XI.prototype.Fc=function(){tI(this,[new WI(this.u.u,this.macros)]);qI.prototype.Fc.call(this)};
XI.prototype.pd=function(a){qI.prototype.pd.call(this,a);this.Nb("aderror")};g.u(YI,mI);dJ.prototype.sendAdsPing=function(a){this.F.send(a,hJ(this),{})};g.u(jJ,mI);g.u(kJ,qI);kJ.prototype.Ad=function(){var a=new jJ(this.ad.u,this.macros);tI(this,[a])};
kJ.prototype.af=function(a){jI(this.Pa,a)};lJ.prototype.get=function(){return this.value};
g.u(mJ,lJ);mJ.prototype.u=function(){return"metadata_type_action_companion_ad_renderer"};
g.u(nJ,lJ);nJ.prototype.u=function(){return"metadata_type_ad_next_params"};
g.u(oJ,lJ);oJ.prototype.u=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.u(pJ,lJ);pJ.prototype.u=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.u(qJ,lJ);qJ.prototype.u=function(){return"metadata_type_image_companion_ad_renderer"};
g.u(rJ,lJ);rJ.prototype.u=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.u(sJ,lJ);sJ.prototype.u=function(){return"metadata_type_ad_info_ad_metadata"};
g.u(tJ,lJ);tJ.prototype.u=function(){return"metadata_ad_video_is_listed"};
g.u(uJ,lJ);uJ.prototype.u=function(){return"metadata_type_ad_placement_config"};
g.u(vJ,lJ);vJ.prototype.u=function(){return"metadata_type_ad_pod_info"};
g.u(wJ,lJ);wJ.prototype.u=function(){return"metadata_type_ad_video_id"};
g.u(xJ,lJ);xJ.prototype.u=function(){return"metadata_type_content_cpn"};
g.u(yJ,lJ);yJ.prototype.u=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.u(zJ,lJ);zJ.prototype.u=function(){return"metadata_type_valid_instream_survey_ad_renderer"};
g.u(AJ,lJ);AJ.prototype.u=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.u(BJ,lJ);BJ.prototype.u=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.u(CJ,lJ);CJ.prototype.u=function(){return"metadata_type_player_bytes_callback"};
g.u(DJ,lJ);DJ.prototype.u=function(){return"metadata_type_player_bytes_callback_ref"};
g.u(EJ,lJ);EJ.prototype.u=function(){return"metadata_type_sub_layouts"};
g.u(FJ,lJ);FJ.prototype.u=function(){return"metadata_type_cue_point"};
g.u(GJ,lJ);GJ.prototype.u=function(){return"metadata_type_video_length_seconds"};
g.u(HJ,lJ);HJ.prototype.u=function(){return"metadata_type_player_vars"};
g.u(IJ,lJ);IJ.prototype.u=function(){return"metadata_type_sodar_extension_data"};
g.u(JJ,lJ);JJ.prototype.u=function(){return"metadata_type_layout_enter_ms"};
g.u(KJ,lJ);KJ.prototype.u=function(){return"metadata_type_layout_exit_ms"};
g.u(LJ,lJ);LJ.prototype.u=function(){return"metadata_type_sub_layout_index"};
g.u(MJ,lJ);MJ.prototype.u=function(){return"metadata_type_dai"};
g.u(NJ,lJ);NJ.prototype.u=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.u(OJ,lJ);OJ.prototype.u=function(){return"metadata_type_drift_recovery_ms"};
g.u(PJ,lJ);PJ.prototype.u=function(){return"metadata_type_fulfilled_layout"};
g.u(QJ,lJ);QJ.prototype.u=function(){return"metadata_type_ad_break_request_data"};
g.u(RJ,lJ);RJ.prototype.u=function(){return"metadata_type_ad_break_response_data"};
g.u(SJ,lJ);SJ.prototype.u=function(){return"metadata_type_remote_slots_data"};
g.u(TJ,lJ);TJ.prototype.u=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.u(UJ,lJ);UJ.prototype.u=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.u(VJ,lJ);VJ.prototype.u=function(){return"metadata_type_instream_video_ad_commands"};g.u(XJ,g.P);XJ.prototype.getProgressState=function(){return this.C};
XJ.prototype.start=function(){this.D=Date.now();WJ(this,{current:this.u/1E3,duration:this.B/1E3});this.Ua.start()};
XJ.prototype.stop=function(){this.Ua.stop()};g.u(YJ,mI);g.u(ZJ,qI);g.k=ZJ.prototype;g.k.Ad=function(){this.Fc()};
g.k.Fc=function(){var a=this.D.u;g.VB(this.J.T())?(a=tna(this.F,a),this.J.va("onAdInfoChange",a),this.K=Date.now(),this.u&&this.u.start()):tI(this,[new YJ(a)]);qI.prototype.Fc.call(this)};
g.k.getDuration=function(){return this.D.B};
g.k.Tj=function(){qI.prototype.Tj.call(this);this.u&&this.u.stop()};
g.k.Ri=function(){qI.prototype.Ri.call(this);this.u&&this.u.start()};
g.k.Dd=function(){qI.prototype.Dd.call(this);this.Nb("adabandoned")};
g.k.Uj=function(){qI.prototype.Uj.call(this);this.Nb("adended")};
g.k.pd=function(a){qI.prototype.pd.call(this,a);this.Nb("aderror")};
g.k.Nb=function(a){this.Jg();this.V(a)};
g.k.af=function(a){switch(a){case "skip-button":this.Uj();break;case "survey-submit":this.Nb("adended")}};
g.k.Jg=function(){g.VB(this.J.T())?(this.u&&this.u.stop(),this.J.va("onAdInfoChange",null)):qI.prototype.Jg.call(this)};g.u($J,mI);g.u(aK,qI);aK.prototype.Ad=function(){this.Fc()};
aK.prototype.Fc=function(){tI(this,[new $J(this.u.u,this.macros)]);qI.prototype.Fc.call(this)};
aK.prototype.Dd=function(){qI.prototype.Dd.call(this);this.Nb("adabandoned")};
aK.prototype.pd=function(a){qI.prototype.pd.call(this,a);this.Nb("aderror")};g.u(bK,mI);g.u(cK,qI);g.k=cK.prototype;g.k.Ad=function(){0<this.u&&this.Fc()};
g.k.Fc=function(){this.Ua=new g.H(this.me,this.u,this);g.C(this,this.Ua);this.Ua.start();tI(this,[new bK(this.C.u)]);qI.prototype.Fc.call(this)};
g.k.me=function(){qI.prototype.me.call(this);this.Nb("adended");for(var a=g.q(this.C.u.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)};
g.k.Dd=function(){qI.prototype.Dd.call(this);this.Nb("adabandoned")};
g.k.pd=function(a){qI.prototype.pd.call(this,a);this.Nb("aderror")};
g.k.Nb=function(a){this.Ua&&this.Ua.stop();qI.prototype.Nb.call(this,a)};g.u(hK,mI);g.u(iK,mI);g.u(jK,mI);g.u(kK,mI);g.u(lK,mI);g.u(mK,mI);g.u(nK,qI);g.k=nK.prototype;g.k.wo=function(){return{currentTime:this.J.getCurrentTime(2,!1),duration:this.u.B,isPlaying:PH(this.J),isVpaid:!1,isYouTube:!0,volume:this.J.isMuted()?0:this.J.getVolume()/100}};
g.k.Ad=function(){if(this.u.W)uI(this),this.Nb("aderror");else{var a=this.u.u.legacyInfoCardVastExtension,b=this.u.C;a&&b&&this.J.T().P.add(b,{Qq:a});try{var c=this.u.u.sodarExtensionData;c&&c.siub&&c.bgub&&c.scs&&c.bgp&&Te(c.siub,c.scs,c.bgub,c.bgp)}catch(d){g.dr(d)}SH(this.J,!1);a=nH(this.u);b=this.J.T();g.R(this.J.T().experiments,"disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.u||g.VB(b)||g.hC(b)?3:1);c=this.J.getVideoData(1);c.If&&(a.ctrl=c.If);c.xe&&(a.ytr=c.xe);c.Hi&&(a.ytrcc=
c.Hi);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.cg&&(a.vss_credentials_token_type=c.cg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));this.ka&&this.V("adunstarted",-1);!iR(this.N)&&g.VB(b)&&(b=uK(this),b=pna(this.ha,b,this.u.u.adNextParams||""),b.attributionInfo=cJ(this.u.D,this.u.C||""),this.J.va("onAdInfoChange",b));this.K?this.D.start():(this.J.cueVideoByPlayerVars(a,2),this.D.start(),this.J.playVideo(2))}};
g.k.Tj=function(){qI.prototype.Tj.call(this);this.V("adpause",2)};
g.k.Ri=function(){qI.prototype.Ri.call(this);this.V("adplay",1)};
g.k.Fc=function(){qI.prototype.Fc.call(this);this.D.stop();this.fa.R(this.J,g.rD("bltplayback"),this.AL);var a=new g.oD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:1});g.kM(this.J,[a],2);a=rK(this);this.C.oa=a;if(!iR(this.N)){a=[];var b=this.J.T(),c=this.J.getVideoData(2);if(iC(b)||g.VB(b)){var d;(d=c&&c.isListed?{channelId:c.Cg,channelThumbnailUrl:c.Pe||"",channelTitle:c.author,videoTitle:c.title,channelVideoCount:0,showAdInfoIcon:!1,whyThisAdInfo:null,muteAdInfo:null}:
null)&&this.J.va("onAdMetadataAvailable",d)}g.VB(b)||(!g.hC(b)||(g.R(this.J.T().experiments,"enable_upg_processed_dvr_dai")?this.K:this.C.u.getVideoData(1).qg())||(c&&c.videoId&&c.isListed&&c.videoId==this.u.C&&(b=c.title,d=c.author,c=c.Pe,b&&d&&c?c=[new iK(b),new hK(c),new jK(d)]:(g.er(new Cq("Channel metadata contains null for:",b?d?"channel icon thumbnail.":"channel name.":"video title.")),c=[]),tI(this,c)),a.push(cJ(this.u.D,this.u.C||"")),c=this.u.I,null==c?c=null:(b={},c.urlEndpoint&&(b.url=
c.urlEndpoint.url,b.target="TARGET_NEW_WINDOW"),c=new mK({navigationEndpoint:{urlEndpoint:b}})),c&&a.push(c),this.u.isSkippable()&&!oH(this.u)&&(c=uK(this),(c=c.skipOrPreviewRenderer&&c.skipOrPreviewRenderer.skipAdRenderer)||(c=sK(this)),a.push(new lK(c)))),c=uK(this),a.push(new kK(c)),tI(this,a))}this.J.isMuted()&&(a=this.Pa,c=this.J.isMuted(),XH(a)||aI(a,c?"mute":"unmute"));this.V("adplay",1);if(null!==this.F){a=null!==this.C.u.getVideoData(1)?this.C.u.getVideoData(1).clientPlaybackNonce:"";c=oK(this);
b=this.u;d=una(this);for(var e=g.q(this.F.listeners),f=e.next();!f.done;f=e.next()){f=f.value;var h=c,l=b,m=d;if(f.u)$G(f.u.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event.");else{var n=CQ(f.Ta.get(),"slot_type_player_bytes");f.B={slotId:n,Ya:"slot_type_player_bytes",feedPosition:1,Sb:void 0,ae:[],Qe:[],sb:"surface",Ba:new nP([])};var p=[],r=l.C||"";r&&p.push(new wJ(r));(r=(r=l.u)&&r.playerOverlay&&r.playerOverlay.instreamAdPlayerOverlayRenderer)&&
p.push(new yJ(r));l.u.adNextParams&&p.push(new nJ(l.u.adNextParams||""));(r=l.I)&&p.push(new oJ(r));(r=NG(f.Da.get(),2))?(p.push(new sJ({channelId:r.Cg,channelThumbnailUrl:r.Pe,channelTitle:r.author,videoTitle:r.title})),p.push(new tJ(r.isListed))):$G("Expected meaningful PlaybackData on ad started.");p.push(new vJ(l.D));p.push(new GJ(l.B));p.push(new xJ(a));p.push(new DJ({current:this}));r=l.xa;null!=r.kind&&p.push(new uJ(r));(l=l.X)&&p.push(new SJ(l));void 0!==m&&p.push(new TJ(m));f.u={layoutId:h,
layoutType:"layout_type_media",be:new Map,gf:[],hf:[],ff:[],jf:[],sb:"surface",Ba:new nP(p),Ke:vP(wP(f.Xa.get()),n,"slot_type_player_bytes",1,"surface",void 0,h,"layout_type_media","surface")};MP(f.C(),f.B,f.u);PP(f.C(),f.B,f.u)}}this.W=!0}this.J.va("onAdStart",rK(this));a=this.ea;c=this.u.C||"";(b=a.B.Qb())&&b.getVideoData().videoId===c?a.u=qR(b.I):a.u=null;a=g.q(this.u.u.impressionCommands||[]);for(c=a.next();!c.done;c=a.next())this.C.executeCommand(c.value,this.macros)};
g.k.AL=function(a){"bltcompletion"==a.getId()&&(g.aX(this.J,"bltplayback",2),bI(this.Pa,this.getDuration()),qK(this,"adended"))};
g.k.me=function(){qI.prototype.me.call(this);this.Nb("adended");for(var a=g.q(this.u.u.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Dd=function(){qI.prototype.Dd.call(this);this.Nb("adabandoned")};
g.k.iF=function(){var a=this.Pa;VH(a)||gI(a,"clickthrough")};
g.k.oE=function(){this.Uj()};
g.k.Uj=function(){qI.prototype.Uj.call(this);this.Nb("adended")};
g.k.pd=function(a){qI.prototype.pd.call(this,a);this.Nb("aderror")};
g.k.Nb=function(a){this.D.stop();iR(this.N)||this.Jg();SH(this.J,!0);"adabandoned"!=a&&this.J.va("onAdComplete");qK(this,a);this.J.va("onAdEnd",rK(this));this.V(a)};
g.k.Jg=function(){var a=this.J.T();g.VB(a)&&(g.hC(a)||g.R(a.experiments,"enable_topsoil_wta_for_halftime")||g.VB(a))?this.J.va("onAdInfoChange",null):qI.prototype.Jg.call(this)};
g.k.Qx=function(){this.ZB&&this.J.playVideo()};
g.k.ZB=function(){return 2==this.J.getPlayerState(2)};
g.k.af=function(a){if(!iR(this.N)){var b=this.Pa;if(OH(b.u))switch(a){case "ad-title":b.u.sendVideoStatsEngageEvent(14,void 0,2);break;case "ad-channel-thumbnail":case "advertiser-name":b.u.sendVideoStatsEngageEvent(15,void 0,2);break;case "visit-advertiser":b.u.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.P||this.Qx();break;case "ad-info-icon-button":(this.P=this.ZB())||this.J.pauseVideo();
break;case "ad-channel-thumbnail":case "advertiser-name":a=this.J.T().protocol+"://"+g.aC(this.J.T())+"/channel/"+this.u.ba;g.gK(a);break;case "ad-title":this.J.pauseVideo();g.gK(this.J.getVideoUrl());break;case "visit-advertiser":this.J.pauseVideo();if(g.hC(this.J.T())&&(a=this.u.I)){b=this.Pa;var c=a.loggingUrls||null;if(c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.baseUrl){var e=d.headers||[];b.I.send(d.baseUrl,dI(b),{},e)}}a.urlEndpoint&&a.urlEndpoint.url&&g.gK(a.urlEndpoint.url)}a=
this.Pa;VH(a)||gI(a,"clickthrough");break;case "skip-button":this.Uj()}}};
g.k.JA=function(a,b){if(this.u.W)return uI(this),this.Nb("aderror"),"";if(!Number.isFinite(a))return g.dr(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.dr(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.B,d=nH(this.u);d=nza(this.J.app,d,c,a,b);a+c>b&&oza(this.J.app,d,b-a);return d};
g.k.dispose=function(){PH(this.J)&&!this.K&&this.J.stopVideo(2);qK(this,"adabandoned");qI.prototype.dispose.call(this)};vK.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.u[b];c?b=c:(c={sm:null,hC:-Infinity},b=this.u[b]=c);c=a.startSecs+a.u/1E3;if(!(c<b.hC)){b.hC=c;if(b.sm){if(c<b.sm.end){a:{c=b.sm;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.sm.end=a,this.B.HD(a));return}if(this.C)b.sm=
null;else return}if(a=wna(a,this.D))c=a.kJ,b.sm=a.NH,this.B.TD(c)}};
vK.prototype.updateTime=function(){};g.u(yK,jH);GK.prototype.reset=function(){return new GK(this.J)};var jBa=SX&&4>QF?.1:0,Zqa=new JK;g.k=JK.prototype;g.k.uq=null;g.k.getDuration=function(){return this.duration||0};
g.k.getCurrentTime=function(){return this.currentTime||0};
g.k.mh=function(){this.src&&(jk&&0<this.readyState&&(this.currentTime=Math.max(jBa,0)),this.removeAttribute("src"),this.load(),this.uq&&this.uq.B&&(this.uq&&this.uq.dispose(),this.uq=null))};
g.k.DH=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};var O1={},P1=(O1.BUFFERING="buffering-mode",O1.CUED="cued-mode",O1.ENDED="ended-mode",O1.PAUSED="paused-mode",O1.PLAYING="playing-mode",O1.SEEKING="seeking-mode",O1.UNSTARTED="unstarted-mode",O1);var kBa,Q1,Ena;
kBa={MR:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",PR:"AUTHENTICATION_MALFORMED",QR:"AUTHENTICATION_MISSING",TR:"BAD_REQUEST",YR:"CAST_SESSION_DEVICE_MISMATCHED",ZR:"CAST_SESSION_VIDEO_MISMATCHED",aS:"CAST_TOKEN_EXPIRED",bS:"CAST_TOKEN_FAILED",cS:"CAST_TOKEN_MALFORMED",dS:"CGI_PARAMS_MALFORMED",eS:"CGI_PARAMS_MISSING",rS:"DEVICE_FALLBACK",BS:"GENERIC_WITH_LINK_AND_CPN",CS:"LICENSE",ES:"VIDEO_UNAVAILABLE",IS:"FORMAT_UNAVAILABLE",KS:"GEO_FAILURE",cT:"HTML5_AUDIO_RENDERER_ERROR",dT:"GENERIC_WITHOUT_LINK",
eT:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",fT:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",mT:"INVALID_DRM_MESSAGE",AU:"PURCHASE_NOT_FOUND",BU:"PURCHASE_REFUNDED",EU:"RENTAL_EXPIRED",GU:"RETRYABLE_ERROR",LU:"SERVER_ERROR",XU:"STOPPED_BY_ANOTHER_PLAYBACK",YU:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",ZU:"STREAMING_NOT_ALLOWED",aV:"STREAM_LICENSE_NOT_FOUND",hV:"TOO_MANY_REQUESTS",iV:"TOO_MANY_REQUESTS_WITH_LINK",jV:"TOO_MANY_STREAMS_PER_ENTITLEMENT",kV:"TOO_MANY_STREAMS_PER_USER",mV:"UNSUPPORTED_DEVICE",
nV:"VIDEO_FORBIDDEN",oV:"VIDEO_NOT_FOUND"};Q1={};
g.FX=(Q1.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.",Q1.DEVICE_FALLBACK="Sorry, this video is not available on this device.",Q1.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",Q1.LICENSE="Sorry, there was an error licensing this video.",Q1.VIDEO_UNAVAILABLE=
"Video unavailable",Q1.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",Q1.GEO_FAILURE="This video isn't available in your country.",Q1.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",Q1.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",Q1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",Q1.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",
Q1.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",Q1.PURCHASE_NOT_FOUND="This video requires payment.",Q1.PURCHASE_REFUNDED="This video's purchase has been refunded.",Q1.RENTAL_EXPIRED="This video's rental has expired.",Q1.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",Q1.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",Q1.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",
Q1.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",Q1.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",Q1.SERVER_ERROR="There was an internal server error. Please try again later.",Q1.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",Q1.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",Q1.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",
Q1.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",Q1.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",Q1.TOO_MANY_REQUESTS="Please log in to watch this video.",Q1.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",Q1.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",Q1.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",
Q1.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",Q1.VIDEO_FORBIDDEN="Access to this video is forbidden.",Q1.VIDEO_NOT_FOUND="This video can not be found.",Q1);
Ena={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.k=g.LK.prototype;g.k.Cb=function(){return g.T(this,8)&&!g.T(this,512)&&!g.T(this,64)&&!g.T(this,2)};
g.k.isCued=function(){return g.T(this,64)&&!g.T(this,8)&&!g.T(this,4)};
g.k.isError=function(){return g.T(this,128)};
g.k.isSuspended=function(){return g.T(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.u(UK,g.P);g.k=UK.prototype;g.k.Sh=function(){var a=this.u;return a.B instanceof mH||a.B instanceof wH||a.B instanceof qH||a.B instanceof pH};
g.k.ip=function(){return this.u.B.pe()};
g.k.hp=function(){return this.u.u};
g.k.jp=function(){return zH(this.u)};
g.k.ax=function(){return yH(this.u)};
g.k.cw=function(a){if(!dH(a)){this.W&&(this.fa=this.J.isAtLiveHead(),this.ba=Math.ceil(g.A()/1E3));var b=new zK(this.wd);a=AK(a);CK(b,a)}this.en()};
g.k.Om=function(){return this.F instanceof LI||this.F instanceof xI||this.F instanceof yK||this.F instanceof II};
g.k.UB=function(){return!this.Om()};
g.k.tw=function(){return this.ak()||this.kp()};
g.k.kp=function(){return this.F instanceof wH};
g.k.ak=function(){return this.F instanceof mH};
g.k.en=function(){bM(this.wd,this);if(!this.u.I.hasOwnProperty("ad_placement_start")){for(var a=g.q(this.u.X),b=a.next();!b.done;b=a.next())WK(b.value);this.u.I.ad_placement_start=!0}this.K.u=!1;zA("video_to_ad",["apbs"],void 0,void 0);this.CE()};
g.k.CE=function(){this.F?this.Ad(this.F):this.Kj()};
g.k.Fl=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;pM(this.wd,0);this.Kj(a,b)};
g.k.xD=function(){this.Fl()};
g.k.YL=function(){aI(this.B.Pa,"active_view_measurable")};
g.k.ZL=function(){var a=this.B.Pa;VH(a)||kI(a)||aI(a,"active_view_fully_viewable_audible_half_duration")};
g.k.cM=function(){};
g.k.dM=function(){};
g.k.eM=function(){};
g.k.fM=function(){};
g.k.iM=function(){var a=this.B.Pa;VH(a)||kI(a)||aI(a,"active_view_viewable")};
g.k.XA=function(){return this.ak()?[this.Gr()]:[]};
g.k.Tb=function(a){if(null!==this.B){this.Y||(a=new g.nI(a.state,new g.LK),this.Y=!0);var b=a.state;if(g.pI(a,2))b=this.K,b.D?IK(b):(b.u=!1,zA("ad_to_ad",["apbs"],void 0,void 0)),this.B.me();else{var c=a;(g.R(this.J.T().experiments,"html5_bulleit_handle_gained_playing_state")?c.state.Cb()&&!c.mk.Cb():c.state.Cb())?(b=this.K,b.Vg&&!b.u&&(b.C=!1,b.u=!0,"ad_to_video"!==b.actionType&&wA("apbs",void 0,b.actionType)),this.B.Ri()):b.isError()?this.B.pd(b.stateData.errorCode):g.pI(a,4)&&(this.X||this.B.Tj())}if(null!==
this.B){if(g.pI(a,16)&&(b=this.B.Pa,!(VH(b)||.5>b.u.getCurrentTime(2,!1)&&!g.R(b.u.T().experiments,"html5_dai_pseudogapless_seek_killswitch")))){c=b.B;if(c.Lo()){var d=g.R(b.P.u.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock");Hl(c.K,d)}b.B.N.seek=!0}0>oI(a,4)&&!(0>oI(a,2))&&(b=this.B.Pa,VH(b)||(XH(b)?gI(b,"resume"):aI(b,"resume")));!g.R(this.J.T().experiments,"html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.pI(a,512)&&!g.SK(a.state)&&IK(this.K)}}};
g.k.Oa=function(){this.daiEnabled&&VK(this)};
g.k.cD=function(){};
g.k.resume=function(){this.B&&this.B.Qx()};
g.k.bx=function(){this.B&&this.B.Nb("adended")};
g.k.Ws=function(){this.bx()};
g.k.bD=function(a){var b=this.wd;b.C&&g.R(b.u.T().experiments,"html5_bulleit_dai_publish_ad_ux_killswitch")||b.u.va("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.B.af(a)};
g.k.UA=function(){return 0};
g.k.WA=function(){return 1};
g.k.Yt=function(a){this.daiEnabled&&this.u.N&&this.u.u.start<=a&&a<$K(this)&&zqa(this.J,a,this.u.u.end)};
g.k.Ad=function(a){g.eg(this.B);this.B=a=this.Cj.create(a,EH(CH(this.u)),this.u.u.u);a.subscribe("adabandoned",g.Va(this.Fl,!0),this);a.subscribe("adabandonedreset",g.Va(this.Fl,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.YL,this);a.subscribe("adended",this.Fl,this);a.subscribe("aderror",this.xD,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.ZL,this);a.subscribe("adoverlaymeasurableimpression",this.cM,this);a.subscribe("adoverlayunviewableimpression",this.dM,this);
a.subscribe("adoverlayviewableendofsessionimpression",this.eM,this);a.subscribe("adoverlayviewableimmediateimpression",this.fM,this);a.subscribe("adpause",this.dw,this);a.subscribe("adplay",this.dw,this);a.subscribe("adunstarted",this.dw,this);a.subscribe("onAdUxUpdate",this.bD,this);a.subscribe("adviewableimpression",this.iM,this);rI(a);XK(this,!1)};
g.k.Kj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.X=!0;g.eg(this.B);if(a)var c=!1;else this.daiEnabled?(c=this.J.getCurrentTime(2,!0),c=1>=Math.abs(c-this.u.u.end/1E3)):c=!0;if(c&&!this.u.I.hasOwnProperty("ad_placement_end")){c=g.q(this.u.W);for(var d=c.next();!d.done;d=c.next())WK(d.value);this.u.I.ad_placement_end=!0}c=this.u.F;null!==c&&(FK(this.Kg,{cueIdentifier:this.u.C&&this.u.C.identifier,driftRecoveryMs:c,BE:this.u.u.start,jC:$K(this)}),this.u.F=null);b||this.daiEnabled?dM(this.wd,
!0):this.W&&this.ax()&&this.ak()?dM(this.wd,!1,Ina(this)):dM(this.wd,!1);XK(this,!0)};
g.k.dw=function(a){pM(this.wd,a)};
g.k.Gr=function(){return this.F};
g.k.isLiveStream=function(){return this.W};
g.k.reset=function(){return new UK(this.wd,this.J,this.K.reset(),this.u,this.Kg,this.tm,this.Cj,this.daiEnabled)};
g.k.aa=function(){g.eg(this.B);this.B=null;g.P.prototype.aa.call(this)};bL.prototype.create=function(a){return(a.B instanceof qH?this.D:a.B instanceof yK?this.C:""===a.K?this.u:this.B)(a)};var R1={},Jna=(R1[0]=[],R1[1]=[],R1);cL.prototype.clickCommand=function(a){var b=g.ks();if(!a.clickTrackingParams||!b)return!1;Ds(this.client,b,g.es(a.clickTrackingParams),void 0);return!0};
cL.prototype.B=function(){for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())b=b.value,b();this.u=[]};g.u(fL,g.P);g.k=fL.prototype;g.k.hp=function(){return this.u.u};
g.k.jp=function(){return zH(this.u)};
g.k.ax=function(){return yH(this.u)};
g.k.Sh=function(){return!1};
g.k.tw=function(){return!1};
g.k.Om=function(){return!1};
g.k.ip=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.cw=function(a){var b=this;if(1!==this.u.D&&2!==this.u.D){var c=[];this.jp()||(c=AK(a));this.u.D=1;Jm(this.I.fetch(this.u.K,{bo:this.u.C||void 0,Zc:this.u.u}).then(function(d){if(!b.la()){var e=c;g.R(b.C.T().experiments,"enable_client_deferred_full_screen_filtering_for_mweb_phones")&&b.C.isFullscreen();var f=null;if(g.R(b.C.T().experiments,"get_midroll_info_use_client_rpc"))f=d;else{var h=null;try{(h=JSON.parse(d.response))&&(f=h)}catch(l){d.response&&(d=d.response,d.startsWith("GIF89")||(l.params=
d.substr(0,256),g.Eo(l)))}}f=Mna(b,f);d=b.D;d.B&&f.isEmpty&&EK("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",d.u);if(!f.VB&&(b.u.D=2,CK(new zK(b.B),e),!f.isEmpty&&(MG(b.F,f.Gg),g.R(b.C.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")&&b.jp())))for(e=g.q(f.Gg),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&$G("Detected deferred preroll overlay.",void 0,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||"unknown"})}},function(){CK(new zK(b.B),
c);
var d=b.D;d.B&&EK("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.u.D&&(b.u.D=0);
b.jp()&&QL(b.B)})}};
g.k.en=function(){};
g.k.Yt=function(){};g.u(gL,yK);gL.prototype.bf=function(){return!1};
gL.prototype.pe=function(){return!0};
gL.prototype.B=function(){var a=this.u,b=new Rma;b.url=a.iframeUrl||null;b.width=a.iframeWidth||0;b.height=a.iframeHeight||0;b.impressionTrackingUrls=hL(a.impressionCommands||[]);b.clickTrackingUrls=hL(a.onClickCommands||[]);b.adInfoRenderer=a.adInfoRenderer||null;a=new hH;a.iframeCompanionRenderer=b;return a};g.u(iL,qI);g.k=iL.prototype;g.k.cw=function(a){if(!dH(a)){var b=new zK(this.F);a=AK(a);CK(b,a)}this.en()};
g.k.en=function(){rI(this)};
g.k.Ad=function(){var a=this;bM(this.F,this);var b=this.J.getVideoData(1),c=this.D.B();null!=c&&(c.macros=Object.assign({},this.macros),this.N.showCompanion(b.videoId,c));if(this.D instanceof gL){this.C=function(d){var e;if(e=d.data)try{e=cq(d.source.document.location.origin)}catch(h){e=!1}if(e)if(e=a.D.u,"companion-setup-complete"==d.data)try{d.source.postMessage(JSON.stringify(e),"*");var f=d.source.frameElement;f.parentNode.style.cssText="";f.width=String(e.iframeWidth);f.height=String(e.iframeHeight)}catch(h){g.Eo(h)}else"pause-video"==
d.data&&a.J.pauseVideo()};
try{window.addEventListener("message",this.C)}catch(d){g.N(d)}}};
g.k.onAdUxClicked=function(a){jI(this.Pa,a)};
g.k.hp=function(){return this.u.u};
g.k.jp=function(){return zH(this.u)};
g.k.ax=function(){return yH(this.u)};
g.k.Om=function(){return!0};
g.k.Sh=function(){return!1};
g.k.tw=function(){return!1};
g.k.ip=function(){return this.u.B.pe()};
g.k.Yt=function(){};
g.k.aa=function(){if(this.C)try{window.removeEventListener("message",this.C),this.C=null}catch(a){g.N(a)}this.K&&(this.J.removeEventListener("videodatachange",this.K),this.K=null);qI.prototype.aa.call(this)};var Nna=Object.freeze([BI,GI,wH,MI,NI,mH]);g.u(kL,UK);g.k=kL.prototype;g.k.XA=function(){for(var a=this.D.u,b=g.q(a),c=b.next();!c.done;c=b.next());return a};
g.k.UB=function(){return(0>=this.I?this.D.u:this.D.u.slice(this.I)).some(function(a){return a.bf()})};
g.k.kp=function(){return this.N instanceof wH||this.N instanceof MI};
g.k.ak=function(){return this.N instanceof mH||this.N instanceof GI};
g.k.CE=function(){this.daiEnabled?OH(this.J)&&VK(this):lL(this)};
g.k.Ad=function(a){var b=jL(a);this.N&&b&&this.P!==b&&(b?eM(this.wd):hM(this.wd),this.P=b);this.N=a;g.R(this.J.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads")&&$L(this.wd,this);this.daiEnabled&&(this.I=this.D.u.findIndex(function(c){return c===a}));
UK.prototype.Ad.call(this,a)};
g.k.Kj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.C&&(g.eg(this.C),this.C=null);UK.prototype.Kj.call(this,a,b)};
g.k.Ws=function(){this.I=this.D.u.length;this.C&&this.C.Nb("adended");this.B&&this.B.Nb("adended");this.Kj()};
g.k.cD=function(){lL(this)};
g.k.bx=function(){this.Fl()};
g.k.Tb=function(a){UK.prototype.Tb.call(this,a);a=a.state;g.T(a,2)&&this.C?this.C.me():a.Cb()?(null==this.C&&(a=this.D.C)&&(this.C=this.Cj.create(a,EH(CH(this.u)),this.u.u.u),this.C.subscribe("onAdUxUpdate",this.bD,this),rI(this.C)),this.C&&this.C.Ri()):a.isError()&&this.C&&this.C.pd(a.stateData.errorCode)};
g.k.Fl=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(pM(this.wd,0),a?this.Kj(a,b):lL(this))};
g.k.xD=function(){1==this.D.B?this.Kj():this.Fl()};
g.k.onAdUxClicked=function(a){UK.prototype.onAdUxClicked.call(this,a);this.C&&this.C.af(a)};
g.k.Gr=function(){var a=0>=this.I?this.D.u:this.D.u.slice(this.I);return 0<a.length?a[0]:null};
g.k.aa=function(){g.eg(this.C);this.C=null;UK.prototype.aa.call(this)};
g.k.Sh=function(){return this.P};
g.k.ip=function(){return this.D.u.every(function(a){return a.pe()})};
g.k.reset=function(){return new kL(this.wd,this.J,this.K.reset(),this.u,this.Kg,this.tm,this.Cj,this.daiEnabled)};
g.k.UA=function(){return this.I};
g.k.WA=function(){return this.D.u.length};g.u(mL,yK);mL.prototype.bf=function(){return!1};
mL.prototype.pe=function(){return!0};
mL.prototype.B=function(){var a=new hH;a.imageCompanionAdRenderer=this.u;return a};g.u(nL,qH);g.u(oL,qH);pL.prototype.create=function(a,b){function c(y){return new mH(y,d.C,b,d.u,d.B)}
var d=this,e=a.instreamVideoAdRenderer,f=a.invideoOverlayAdRenderer,h=a.videowallIframeCompanionAdRenderer,l=a.imageCompanionAdRenderer,m=a.instreamSurveyAdRenderer,n=a.sandwichedLinearAdRenderer,p=a.shoppingCompanionCarouselRenderer,r=a.actionCompanionAdRenderer,t=a.linearAdSequenceRenderer,w=a.adsEngagementPanelRenderer,x=a.adChoiceInterstitialRenderer;return null!=e&&e.playerVars?c(e):null!=f?new JI(f):null!=h&&h.iframeUrl?new gL(h):null!=l?new mL(l):null!=m?new wH(m):null!=n?new oL(n,c,this.u):
null!=p?new LI(p):null!=r?new xI(r):null!=t?new nL(t,c):null!=w?new II(w):null!=x?new pH(x):null};rL.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 bH(h.C,h.B,h.daiEnabled,h.D),m=h.Fe;m&&(l.Fe=new kt(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.u));h.u&&(l.u=h.u);l.visible=h.visible;h=l;h.Fe=f;e.push(sL(this,a[0],c,h));c++}}else for(a=g.q(a),d=a.next();!d.done;d=a.next())e.push(sL(this,d.value,c,b)),c++;return e};g.u(tL,g.B);g.u(vL,g.B);vL.prototype.addEventListener=function(a,b){this.u=b};
vL.prototype.removeEventListener=function(){this.u=null};
g.u(wL,g.B);wL.prototype.addEventListener=function(a,b,c){this.u.addEventListener(a,b,c)};
wL.prototype.removeEventListener=function(a,b){this.u.removeEventListener(a,b)};g.u(xL,g.B);var yL=null,AL=null,CL=null,EL=null;g.Ja("yt.www.ads.eventcache.getLastCompanionData",function(){return yL},void 0);
g.Ja("yt.www.ads.eventcache.getLastPlaShelfData",function(){return AL},void 0);
g.Ja("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return CL},void 0);
g.Ja("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return EL},void 0);var ML={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.u(KL,g.B);KL.prototype.aa=function(){this.Ic.clear();g.B.prototype.aa.call(this)};
KL.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.la();a.loggingUrls&&NL(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;ML.hasOwnProperty(d)||NL(this,d,e,b,c)}};g.u(PL,g.P);g.k=PL.prototype;
g.k.aa=function(){this.ya=!0;g.Rr(this.K);this.W&&this.u.getVideoData(1).unsubscribe("cuepointupdated",this.lx,this);if(QH(this.u)){var a=RL(this.u);a.removeEventListener("updateKevlarOrC3Companion",zL);a.removeEventListener("onPlaShelfInfoCardsReady",BL);a.removeEventListener("updateEngagementPanelAction",DL);a.removeEventListener("changeEngagementPanelVisibility",FL);window.removeEventListener("yt-navigate-start",GL);EL=CL=yL=null}a=g.q(this.F.values());for(var b=a.next();!b.done;b=a.next())gM(this,
b.value);dM(this,!1);this.I.clear();this.ha=[];this.Y.clear();g.eg(this.D);this.D=null;g.eg(this.P);this.P=new Map;g.eg(this.X);this.X=new Map;this.F.clear();g.P.prototype.aa.call(this)};
g.k.it=function(a){if(a instanceof cH&&!a.B&&(!eH(a)||a.contains(1E3*this.u.getCurrentTime(1)||0)))if(g.T(g.fI(this.u,1),32))this.Y.add(a);else{var b=this.F.get(a);b&&(((this.C?0:g.R(this.u.T().experiments,"enable_eviction_protection_for_bulleit"))?b.Om()&&this.D?this.D.ip():!b.Om()&&this.B?this.B.ip():1:1)?b.cw(a):a.deactivate())}};
g.k.WM=function(a){a instanceof cH&&(a.B&&(a.B=!1),this.Y["delete"](a))};
g.k.lx=function(a){Ana(this.wb,a);if(null==this.W)g.N(Error("Dynamically inserted ad was requested, but no cuepoint AdPlacementRenderer was present to fulfill the request."));else if(this.C){a=g.q(a);for(var b=a.next();!b.done;b=a.next())this.Ia.reduce(b.value)}else 0!=(this.u.getCurrentTime(1)||0)&&(a=a.filter(function(c){return"start"==c.event}),UL(this,[this.W],a))};
g.k.TD=function(a){UL(this,[this.W],[a])};
g.k.HD=function(a){var b=1E3*a;this.B&&this.B.Yt(b);for(var c=g.q(this.F.values()),d=c.next();!d.done;d=c.next())d.value.Yt(b);g.Fb(this.Ma.u,1E3*a)};
g.k.di=function(a){switch(a){case "control_play":this.B&&(a=this.B,a.ak()?a.J.Qb().playVideo():a.kp()&&a.B.Ri());break;case "control_pause":this.B&&(a=this.B,a.ak()?a.J.Qb().pauseVideo():a.kp()&&a.B.Tj())}};
g.k.yL=function(a){this.B&&this.B.Tb(a)};
g.k.uM=function(a){0>oI(a,16)&&(this.Y.forEach(this.it,this),this.Y.clear())};
g.k.rP=function(){this.B&&this.B.Oa();if(this.C)for(var a=1E3*this.u.getCurrentTime(1),b=g.q(this.F.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,c.start<=a&&a<c.end){this.it(c);break}};
g.k.wP=function(){var a=null;this.C&&(a=this.u.getCurrentTime(1),this.Ia.updateTime(a));if(OH(this.u)&&this.B){var b=this.u.getCurrentTime(2,!1),c=this.B;if(c.B){var d=c.B;d.I&&$H(d.Pa,b,d.getDuration());if(null!==a&&(b=c.u.F,!(null===b||g.R(c.J.T().experiments,"html5_dai_drift_recovery_killswitch")||(d=c.u.u.start,1E3*a<d+b)))){c.u.F=null;var e=$K(c),f=Math.min(a+xG(c.J),e/1E3),h=c.u.C&&c.u.C.identifier;a<f?(c.J.seekTo(f,void 0,void 0,1),c=c.Kg,a*=1E3,f*=1E3,c.B&&DK({driftRecoveryInfo:{contentCpn:c.u,
cueIdentifier:h||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(e-d).toString(),driftFromHeadMs:Math.round(1E3*xG(c.C)).toString(),appliedDriftRecoveryMs:Math.round(a-d).toString(),destinationMs:Math.round(f-d).toString()}})):FK(c.Kg,{cueIdentifier:h,driftRecoveryMs:b,BE:d,jC:e})}}}};
g.k.WL=function(){this.Za=!0;if(this.B){var a=this.B;a.B&&a.B.Dd()}};
g.k.gM=function(a){if(this.B)this.B.onAdUxClicked(a);if(this.D)this.D.onAdUxClicked(a)};
g.k.yP=function(){if(2==this.u.getPresentingPlayerType()&&this.B){var a=this.B.B,b=a.Pa;a=a.J.isMuted();XH(b)||aI(b,a?"mute":"unmute")}};
g.k.jN=function(a){if(this.B){var b=this.B.B.Pa;VH(b)||gI(b,a?"fullscreen":"end_fullscreen")}};
g.k.SQ=function(){for(var a=[],b=g.q(this.I),c=b.next();!c.done;c=b.next())c=c.value,dH(c)||a.push(c);b=this.u.app;1!==b.getPresentingPlayerType()||$W(b,"cuerangemarkersupdated",a)};
g.k.fy=function(){var a=this.u.getVideoData(2);return a?a.isListed&&!this.ba:!1};
g.k.Is=function(){this.B&&this.B.Sh()&&this.B.cD()};
g.k.Hs=function(){this.B&&this.B.Sh()&&this.B.bx()};
g.k.Uo=function(){this.B&&this.B.Sh()&&this.B.Ws()};
g.k.qr=function(a){if(a=this.P.get(a)){a:{var b="instreamVideoAdRenderer instreamSurveyAdRenderer sandwichedLinearAdRenderer parallelChoiceAdPlacementRenderer linearAdSequenceRenderer adChoiceInterstitialRenderer".split(" ");var c=a.renderer;if(c&&b&&Array.isArray(b)&&0!==b.length)for(var d=0;d<b.length;d++)if(c.hasOwnProperty(b[d])){b=!0;break a}b=!1}b?(a=UL(this,[a]))&&0!==a.length&&(a=a[0],aM(this,a),a.en()):g.N(Error("Attempted to fill instream slot with a non-instream renderer."))}};
g.k.qo=function(a){(a=this.P.get(a))&&(a=UL(this,[a]))&&0!=a.length&&a[0].en()};
g.k.Yn=function(){cM(this)};
g.k.Ec=function(a){if(this.B){var b=this.B;b.B&&(b=b.B,b.I&&$H(b.Pa,a,b.getDuration()))}};
g.k.seekTo=function(a){OH(this.u)&&this.B.ak()&&this.u.Qb().seekTo(a)};
g.k.resume=function(){this.B&&this.B.resume()};
g.k.executeCommand=function(a,b,c){this.Ob.executeCommand(a,b,Xna(this,void 0===c?null:c))};
g.k.QB=function(){return this.C};
g.k.TA=function(){return this.Fa};g.u(qM,g.Pr);qM.prototype.N=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 gH&&this.C(b)}};g.u(rM,mI);g.u(sM,qM);
sM.prototype.C=function(a){var b=a.content;switch(b.componentType){case "shopping-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:this.u.va("updateKevlarOrC3Companion",{})}break;case "action-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",{contentVideoId:a&&
a.videoId,actionCompanionAdRenderer:b.renderer,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:this.u.va("updateKevlarOrC3Companion",{})}break;case "image-companion":switch(a.actionType){case 1:case 2:a=this.u.getVideoData(1);this.u.va("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,macros:b.macros,onLayoutVisibleCallback:b.B,interactionLoggingClientData:b.u});break;case 3:this.u.va("updateKevlarOrC3Companion",
{})}break;case "ads-engagement-panel":switch(b=b.renderer,a.actionType){case 1:case 2:this.u.va("updateEngagementPanelAction",b.addAction);this.u.va("changeEngagementPanelVisibility",b.expandAction);break;case 3:this.u.va("changeEngagementPanelVisibility",b.hideAction),this.u.va("updateEngagementPanelAction",b.removeAction)}}};g.u(tM,g.B);tM.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.La().appendChild(a.La())};
g.u(uM,tM);uM.prototype.La=function(){return this.B};g.u(vM,g.B);var xM=1;g.u(g.zM,g.B);g.k=g.zM.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.ia;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.lC&&(a.U||(a.U={}),a.U.focusable="false")}else e=g.Fe(a.G);if(c){if(c=AM(this,e,"class",c))BM(this,e,"class",c),this.ya[c]=e}else if(d){c=g.q(d);for(var f=c.next();!f.done;f=c.next())this.ya[f.value]=e;BM(this,e,"class",d.join(" "))}d=a.Z;c=a.S;if(d)d=AM(this,e,"child",d),void 0!==d&&e.appendChild(g.Ge(d));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=AM(this,e,"child",f),null!=f&&e.appendChild(g.Ge(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.nb&&(h=yM(),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.Ie(e,f,d++))}if(d=a.U)for(c=e,f=g.q(Object.keys(d)),h=f.next();!h.done;h=f.next()){h=h.value;var l=d[h];BM(this,c,h,"string"===
typeof l?AM(this,c,h,l):l)}return e};
g.k.ga=function(a){return this.ya[a]};
g.k.da=function(a,b){"number"===typeof b?g.Ie(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Je(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.ua(c,a[c])};
g.k.ua=function(a,b){var c=this.Ob["{{"+a+"}}"];c&&BM(this,c[0],c[1],b)};
g.k.aa=function(){this.ya={};this.Ob={};this.detach();g.B.prototype.aa.call(this)};g.u(g.V,g.zM);g.k=g.V.prototype;g.k.jc=function(a,b){this.ua(b||"content",a)};
g.k.show=function(){this.Wa||(g.F(this.element,"display",""),this.Wa=!0)};
g.k.hide=function(){this.Wa&&(g.F(this.element,"display","none"),this.Wa=!1)};
g.k.xb=function(a){this.N=a};
g.k.ra=function(a,b,c){return this.R(this.element,a,b,c)};
g.k.R=function(a,b,c,d){c=(0,g.z)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Bb=function(a){var b=this;this.listeners.forEach(function(c,d){if(c===a){var e=b.listeners.splice(d,1)[0];e.target.removeEventListener(e.type,e.listener)}})};
g.k.focus=function(){Qe(this.element);this.element.focus()};
g.k.aa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.zM.prototype.aa.call(this)};g.u(g.DM,g.V);g.DM.prototype.subscribe=function(a,b,c){return this.ba.subscribe(a,b,c)};
g.DM.prototype.unsubscribe=function(a,b,c){return this.ba.unsubscribe(a,b,c)};
g.DM.prototype.jk=function(a){return this.ba.jk(a)};
g.DM.prototype.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.ba.V.apply(this.ba,[a].concat(g.la(c)))};var lBa=new WeakSet;g.u(W,g.DM);g.k=W.prototype;g.k.bind=function(a){if(!this.Fa&&a.renderer){var b=Object.assign({},aoa(this.api,this.Ea),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Fa=a;this.element.setAttribute("id",this.Fa);this.jb&&g.I(this.element,this.jb);this.W=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&IM(this,this.element,this.K)};
g.k.clear=function(){};
g.k.hide=function(){g.DM.prototype.hide.call(this);null!=this.K&&LM(this,this.element,!1)};
g.k.show=function(){g.DM.prototype.show.call(this);if(!this.kb){this.kb=!0;var a=this.W&&this.W.impressionCommand;a&&this.Ea.executeCommand(a,this.macros,null)}null!=this.K&&LM(this,this.element,!0)};
g.k.onClick=function(a){if(this.K&&!lBa.has(a)){var b=this.element;g.JM(this.api,b)&&this.Wa&&g.eX(this.api,b,this.u);lBa.add(a)}(a=this.W&&this.W.clickCommand)&&this.Ea.executeCommand(a,this.macros,this.aB())};
g.k.aB=function(){return null};
g.k.FL=function(a){var b=this.Y;b.K=!0;b.B=a.touches.length;b.u.isActive()&&(b.u.stop(),b.F=!0);a=a.touches;b.I=wM(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.N=Infinity,b.P=Infinity):(b.N=c.clientX,b.P=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.EL=function(a){var b=this.Y;a=a.changedTouches.item(0);var c;if(c=Td()){c=g.Vc;var d="";Wc("Windows")?(d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0"):Td()?(d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".")):Wc("Macintosh")?(d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10"):Ac(g.Vc,"KaiOS")?(d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1]):Wc("Android")?(d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1]):Wc("CrOS")&&(d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
d=(c=d.exec(c))&&c[1]);c=!(0<=g.Dc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.N,2)+Math.pow(a.clientY-b.P,2)>Math.pow(5,2))b.D=!0};
g.k.DL=function(a){if(this.Y){var b=this.Y,c=a.changedTouches;c&&b.K&&1==b.B&&!b.D&&!b.F&&!b.I&&wM(b,c)&&(b.W=a,b.u.start());b.B=a.touches.length;0===b.B&&(b.K=!1,b.D=!1,b.C.length=0);b.F=!1}};
g.k.aa=function(){this.clear(null);this.Bb(this.Ra);for(var a=g.q(this.fa),b=a.next();!b.done;b=a.next())this.Bb(b.value);g.DM.prototype.aa.call(this)};g.u(OM,W);OM.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&NM(a)||"";g.sc(b)?(g.R(this.api.T().experiments,"web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Eo(Error("Found AdImage without valid image URL")):(this.B?g.F(this.element,"backgroundImage","url("+b+")"):ve(this.element,{src:b}),ve(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
OM.prototype.clear=function(){this.hide()};g.u(oN,W);
oN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;if(null==b.text&&null==b.icon)g.Eo(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.I(this.element,a);null!=b.text&&(a=g.U(b.text),g.sc(a)||(this.element.setAttribute("aria-label",a),this.D=new g.DM({G:"span",L:"ytp-ad-button-text",Z:a}),g.C(this,this.D),this.D.da(this.element)));null!=b.icon&&(b=nN(b.icon),null!=
b&&(this.C=new g.DM({G:"span",L:"ytp-ad-button-icon",S:[b]}),g.C(this,this.C)),this.F?g.Ie(this.element,this.C.element,0):this.C.da(this.element))}};
oN.prototype.clear=function(){this.hide()};
oN.prototype.onClick=function(a){var b=this;W.prototype.onClick.call(this,a);doa(this).forEach(function(c){return b.Ea.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType)};var Ooa={seekableStart:0,seekableEnd:1,current:0};g.u(pN,W);pN.prototype.clear=function(){this.dispose()};g.u(sN,pN);g.k=sN.prototype;g.k.init=function(a,b,c){pN.prototype.init.call(this,a,b,c);g.F(this.D,"stroke-dasharray","0 "+this.C);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){rN(this);pN.prototype.hide.call(this)};
g.k.show=function(){qN(this);pN.prototype.show.call(this)};
g.k.Ml=function(){this.hide()};
g.k.rk=function(){if(this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=a.current/a.seekableEnd*this.C,this.I&&(a=this.C-a),g.F(this.D,"stroke-dasharray",a+" "+this.C))}};g.u(tN,W);tN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.B=b;this.isTemplated()||g.Ne(this.element,EM(this.B));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?NM(a):"",c=(c=this.api.getVideoData(1))&&c.Tp,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()};
tN.prototype.isTemplated=function(){return this.B.isTemplated||!1};
tN.prototype.clear=function(){this.hide()};(function(a,b){function c(f){var h=g.q(f);f=h.next().value;h=ka(h);return a.apply(f,h)}
function d(f){f=g.q(f);f.next();f=ka(f);return b(e,f)}
b=void 0===b?Kda:b;var e=g.Ua(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.v;var m=BAa.get(l);m||(m={},BAa.set(l,m));return Xd(m,[this].concat(g.la(h)),c,d)}})(function(a){var b=g.Fe("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.Fe("DIV");g.Dg(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Je(b);return a});g.u(g.vN,g.B);g.k=g.vN.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.eu(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.u&&this.u()):this.element.Wa||(wN(this,!0),this.state=1,a?this.delay.start(a):this.eu()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Wa&&(wN(this,!0),this.state=4,this.delay.start(this.D)))};
g.k.eu=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:wN(this,!1);this.state=3;this.delay.start(this.C);break;case 3:this.state=null;this.u&&this.u();break;case 4:this.element.hide();wN(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.B&&this.B()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.eu()};
g.k.aa=function(){this.element.la()||this.element.element.removeAttribute("aria-hidden");g.B.prototype.aa.call(this)};g.u(xN,pN);g.k=xN.prototype;
g.k.init=function(a,b,c){pN.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.N(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.xa&&g.I(this.C.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.ea=null==a||0===a?this.B.dD():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.D.init(lI("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Tp&&b.thumbnail?this.I.init(lI("ad-image"),b.thumbnail,c):this.P.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.D.hide();this.I.hide();rN(this);pN.prototype.hide.call(this)};
g.k.show=function(){qN(this);this.C.show();this.D.show();this.I.show();pN.prototype.show.call(this)};
g.k.Ml=function(){this.hide()};
g.k.rk=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ka&&a>=this.ea?(g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")||this.X.hide(),this.ka=!0,this.V("c")):this.D&&this.D.isTemplated()&&(a=Math.max(0,Math.ceil((this.ea-a)/1E3)),a!=this.oa&&(uN(this.D,{TIME_REMAINING:String(a)}),this.oa=a)))}};g.u(zN,g.B);g.k=zN.prototype;g.k.aa=function(){this.reset();g.B.prototype.aa.call(this)};
g.k.reset=function(){g.Rr(this.F);this.I=!1;this.u&&this.u.stop();this.D.stop();this.B&&(this.B=!1,this.K.play())};
g.k.start=function(){this.reset();this.F.R(this.C,"mouseover",this.JL,this);this.F.R(this.C,"mouseout",this.IL,this);this.u?this.u.start():(this.I=this.B=!0,g.F(this.C,{opacity:this.P}))};
g.k.JL=function(){this.B&&(this.B=!1,this.K.play());this.D.stop();this.u&&this.u.stop()};
g.k.IL=function(){this.I?this.D.start():this.u&&this.u.start()};
g.k.Uz=function(){this.B||(this.B=!0,this.N.play(),this.I=!0)};g.u(AN,pN);g.k=AN.prototype;
g.k.init=function(a,b,c){pN.prototype.init.call(this,a,b,c);this.P=b;this.ea=eoa(this);!b||g.Wb(b)?g.N(Error("SkipButtonRenderer was not specified or empty.")):!b.message||g.Wb(b.message)?g.N(Error("SkipButtonRenderer.message was not specified or empty.")):(a={iconType:"SKIP_NEXT"},b=nN(a),null==b?g.N(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.I=new g.DM({G:"button",ia:["ytp-ad-skip-button","ytp-button"],S:[{G:"span",L:"ytp-ad-skip-button-icon",
S:[b]}]}),g.C(this,this.I),this.I.da(this.D.element),this.C=new tN(this.api,this.Ea,this.u,"ytp-ad-skip-button-text"),this.C.init(lI("ad-text"),this.P.message,c),g.C(this,this.C),g.Ie(this.I.element,this.C.element,0)),g.R(this.api.T().experiments,"bulleit_use_touch_events_for_skip")&&MM(this))};
g.k.clear=function(){this.X.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.C&&this.C.hide();rN(this);pN.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.I&&(a&&g.ip(a),pN.prototype.onClick.call(this,a),this.V("d"),!this.ea))this.api.onAdUxClicked(this.componentType)};
g.k.aB=function(){return"skip"};
g.k.show=function(){this.X.start();this.D.show();this.C&&this.C.show();qN(this);pN.prototype.show.call(this)};
g.k.Ml=function(){this.V("e")};
g.k.rk=function(){};g.u(BN,g.P);g.k=BN.prototype;g.k.dD=function(){return this.B};
g.k.start=function(){this.C||(this.C=!0,this.Ua.start())};
g.k.stop=function(){this.C&&(this.C=!1,this.Ua.stop())};
g.k.BL=function(){this.u+=100;var a=!1;this.u>this.B&&(this.u=this.B,this.Ua.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.B/1E3,current:this.u/1E3};this.F&&this.F.Ec(this.D.current);this.V("b");a&&this.V("a")};
g.k.getProgressState=function(){return this.D};g.u(CN,W);g.k=CN.prototype;
g.k.init=function(a,b,c){W.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.N(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.sc(g.pd(e[0].url))&&(e[0].url=d.Pe);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.sc(g.pd(e[0].url))&&(e[0].url=d.yd());e=b.headline;null!=e&&g.sc(g.pd(e.text))&&(e.text=d.author)}this.P.init(lI("ad-image"),b.image,c);this.ha.init(lI("ad-text"),b.headline,c);this.ea.init(lI("ad-text"),b.description,c);this.X.init(lI("ad-image"),b.backgroundImage,c);this.B=new oN(this.api,this.Ea,this.u,["ytp-ad-action-interstitial-action-button"]);g.C(this,this.B);this.B.da(this.Ma);
this.B.init(lI("button"),b.actionButton.buttonRenderer,c);this.ka=b.navigationEndpoint;this.api.T().u||(this.I.R(this.Ia,"click",this.Av,this),this.I.R(this.xa,"click",this.Av,this),this.I.R(this.oa,"click",this.Av,this));this.C=new BN(a);g.C(this,this.C);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.C&&(this.F=new AN(this.api,this.Ea,this.u,this.C),g.C(this,this.F),this.F.da(this.element),this.F.init(lI("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&
this.C&&(this.D=new xN(this.api,this.Ea,this.u,this.C,!1),g.C(this,this.D),this.D.da(this.element),this.D.init(lI("ad-preview"),a,c));(b=b.countdownRenderer)&&b.timedPieCountdownRenderer&&this.C&&(c=new sN(this.api,this.Ea,this.u,this.C),g.C(this,c),c.da(this.element),c.init(lI("timed-pie-countdown"),b.timedPieCountdownRenderer,this.macros));this.show();this.element.focus()}else g.N(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.N(Error("AdActionInterstitialRenderer has no button."));
else g.N(Error("AdActionInterstitialRenderer has no background AdImage."));else g.N(Error("AdActionInterstitialRenderer has no description AdText."));else g.N(Error("AdActionInterstitialRenderer has no headline AdText."));else g.N(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.Rr(this.I);this.hide()};
g.k.show=function(){DN(!0);this.B&&this.B.show();this.F&&this.F.show();this.D&&this.D.show();W.prototype.show.call(this)};
g.k.hide=function(){DN(!1);this.B&&this.B.hide();this.F&&this.F.hide();this.D&&this.D.hide();W.prototype.hide.call(this)};
g.k.Av=function(){this.ka&&this.Ea.executeCommand(this.ka,this.macros)};g.u(EN,W);
EN.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);if(b.text)if(b.adChoiceButtons&&2==b.adChoiceButtons.length){a=0;for(var e=[],f=g.q(b.adChoiceButtons),h=f.next();!h.done;h=f.next()){var l=(h=h.value)&&h.buttonRenderer;if(!l){g.N(Error("AdChoiceInterstitialRenderer only supports button renderers of type button_renderer"));return}l=l.text;if(!l){g.N(Error("AdChoiceInterstitialRenderer's ButtonRenderer is missing a text field"));return}e.push(h.buttonRenderer);h=g.U(l);
a=Math.max(a,h.length)}f=b.durationMilliseconds||0;if("number"!==typeof f||0>f)g.N(Error("timeoutSeconds was specified incorrectly in AdChoiceInterstitialRenderer with a value of: "+f));else if(b.completeCommands)if(b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer){goa(this,b.text);var m=hoa(b.defaultButtonChoiceIndex);ioa(this,e,a,m)?(koa(this,b.completeCommands,c,f),b&&b.adDurationRemaining&&b.adDurationRemaining.timedPieCountdownRenderer&&loa(this,b.adDurationRemaining.timedPieCountdownRenderer,
c),b&&b.background&&(c=this.ga("ytp-ad-choice-interstitial"),foa(c,b.background)),joa(this,a),this.show(),g.R(this.api.T().experiments,"self_podding_default_button_focused")&&g.um(function(){0===m?d.B&&d.B.focus():d.D&&d.D.focus()})):g.N(Error("AdChoiceInterstitialRenderer failed to initialize buttons."))}else g.N(Error("AdChoiceInterstitialRenderer requires a timed_pie_countdown_renderer."));
else g.N(Error("timeoutSeconds was specified yet no completeCommands were specified"))}else g.N(Error("AdChoiceInterstitialRenderer should have two choices."));else g.N(Error("AdChoiceInterstitialRenderer has no title."))};
EN.prototype.clear=function(){this.hide()};g.u(GN,W);g.k=GN.prototype;g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.text?(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a?g.N(Error("durationMilliseconds was specified incorrectly in AdTextInterstitialRenderer with a value of: "+a)):(this.B.init(lI("ad-text"),b.text,c),this.show())):g.N(Error("AdTextInterstitialRenderer has no message AdText."))};
g.k.clear=function(){this.hide()};
g.k.show=function(){HN(!0);W.prototype.show.call(this)};
g.k.hide=function(){HN(!1);W.prototype.hide.call(this)};
g.k.onClick=function(){};g.u(IN,g.B);IN.prototype.aa=function(){this.B&&g.dp(this.B);this.u.clear();JN=null;g.B.prototype.aa.call(this)};
IN.prototype.register=function(a,b){b&&this.u.set(a,b)};
var JN=null;g.u(NN,W);
NN.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.N(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new oN(this.api,this.Ea,this.u),g.C(this,this.button),this.button.init(lI("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.U(a)),this.button.da(this.element),this.I&&!g.zn(this.button.element,"ytp-ad-clickable")&&g.I(this.button.element,"ytp-ad-clickable"),a&&
(this.C=new g.DM({G:"div",L:"ytp-ad-hover-text-container"}),this.F&&(b=new g.DM({G:"div",L:"ytp-ad-hover-text-callout"}),b.da(this.C.element),g.C(this,b)),g.C(this,this.C),this.C.da(this.element),b=MN(a),g.Ie(this.C.element,b,0)),this.show())};
NN.prototype.hide=function(){this.button&&this.button.hide();this.C&&this.C.hide();W.prototype.hide.call(this)};
NN.prototype.show=function(){this.button&&this.button.show();W.prototype.show.call(this)};g.u(ON,W);g.k=ON.prototype;g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.N(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.Eo(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.Eo(Error("AdFeedbackRenderer.title was not set.")),qoa(this,b)):g.N(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){mp(this.F);mp(this.P);this.D.length=0;this.hide()};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();W.prototype.hide.call(this);this.I&&this.I.focus()};
g.k.show=function(){this.B&&this.B.show();this.C&&this.C.show();this.I=document.activeElement;W.prototype.show.call(this);this.F.focus()};
g.k.hD=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button");this.V("f");this.hide()};
g.k.oP=function(){this.hide()};
PN.prototype.La=function(){return this.u.element};
PN.prototype.isChecked=function(){return this.C.checked};g.u(QN,W);g.k=QN.prototype;g.k.hide=function(){W.prototype.hide.call(this);this.D&&this.D.focus()};
g.k.show=function(){this.D=document.activeElement;W.prototype.show.call(this);this.F.focus()};
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.N(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.N(Error("ConfirmDialogRenderer.cancelLabel was not set.")):roa(this,b):g.N(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Rr(this.B);this.hide()};
g.k.jx=function(){this.hide()};
g.k.dx=function(){var a=this.C.cancelEndpoint;a&&this.Ea.executeCommand(a,this.macros);this.hide()};
g.k.kx=function(){var a=this.C.confirmNavigationEndpoint||this.C.confirmEndpoint;a&&this.Ea.executeCommand(a,this.macros);this.hide()};g.u(RN,QN);RN.prototype.jx=function(a){QN.prototype.jx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
RN.prototype.dx=function(a){QN.prototype.dx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
RN.prototype.kx=function(a){QN.prototype.kx.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.V("g")};g.u(SN,W);g.k=SN.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.I=b;if(null==b.dialogMessage&&null==b.title)g.N(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.Eo(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.B=new oN(this.api,this.Ea,this.u,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.C(this,this.B),this.B.init(lI("button"),
a,this.macros),this.B.da(this.element);b.title&&(a=g.U(b.title),this.ua("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=MN(a[c]);if(!g.sc(d.textContent)){var e=g.Ee("LI");e.appendChild(d);this.ea.appendChild(e)}}else g.Fg(this.ea,!1);b.dialogMessage&&(a=MN(b.dialogMessage,!0),this.oa.appendChild(a));b.confirmLabel&&(a=g.U(b.confirmLabel),this.ua("confirmLabel",a));b.muteAdRenderer&&(b=(b=b.muteAdRenderer)&&b.buttonRenderer||null)&&(a=b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint||
null,c=b.navigationEndpoint&&b.navigationEndpoint.confirmDialogEndpoint||null,null==a&&null==c?g.Eo(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?toa(this,a):c&&uoa(this,c),this.D=new oN(this.api,this.Ea,this.u,["ytp-ad-info-dialog-mute-button"],"button",!0),g.C(this,this.D),this.D.init(lI("button"),b,this.macros),this.D.ra("click",this.SN,this),this.D.da(this.xa)));voa(this)}};
g.k.clear=function(){mp(this.P);this.hide()};
g.k.hide=function(){this.C?this.C.hide():this.F&&this.F.hide();this.B&&this.B.hide();this.D&&this.D.hide();W.prototype.hide.call(this);this.X&&this.X.focus()};
g.k.show=function(){this.B&&this.B.show();this.D&&this.D.show();this.ha||(soa(this),this.ha=!0);this.X=document.activeElement;W.prototype.show.call(this);this.P.focus()};
g.k.iD=function(){this.I&&this.I.confirmServiceEndpoint&&this.Ea.executeCommand(this.I.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button");this.V("i");this.hide()};
g.k.SN=function(){var a=this.C?this.C:this.F;a&&!a.Wa&&(this.hide(),a.show())};g.u(TN,NN);TN.prototype.init=function(a,b,c){NN.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(xoa(this,a,c),this.show())};
TN.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();NN.prototype.hide.call(this)};
TN.prototype.show=function(){this.button&&this.button.show();NN.prototype.show.call(this)};
TN.prototype.clear=function(){this.hide()};var bO=new g.he(320,63);var kO={iconType:"CLOSE"},oO=new g.he(320,63);g.u(jO,W);g.k=jO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.F=b;this.P=g.ub(this.F.onClickCommands||[]);this.oa=this.F.onErrorCommand||null;if(a=this.F.contentSupportedRenderer)a=this.F.contentSupportedRenderer,b=this.F.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.I=g.te("ytp-ad-overlay-ad-info-button-container",this.D.element),mO(this,b),a=Doa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.I=g.te("ytp-ad-overlay-ad-info-button-container",this.C.element),
mO(this,b),a=Eoa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.I=g.te("ytp-ad-overlay-ad-info-button-container",this.B.element),mO(this,b),a=Foa(this,a.imageOverlayAdContentRenderer)):(g.N(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),pO(this,!0))};
g.k.NN=function(){this.api.app.visibility.u&&this.clear()};
g.k.clear=function(){pO(this,!1);this.ka.reset();this.X=0;this.D.hide();LM(this,this.D.element,!1);this.C.hide();LM(this,this.C.element,!1);this.B.hide();LM(this,this.B.element,!1);this.hide();this.dispose()};
g.k.fP=function(){this.Ia&&this.Ea.executeCommand(this.Ia,this.macros);this.api.pauseVideo()};
g.k.ex=function(){var a=this;Coa(this).forEach(function(b){return a.Ea.executeCommand(b,a.macros)});
if(iO(this.api))this.api.onAdUxClicked("in_video_overlay_close_button");else this.clear()};
g.k.GL=function(){this.xa=2==this.api.getPlayerState(1);this.api.pauseVideo()};
g.k.aM=function(){this.xa||2!=this.api.getPlayerState(1)||this.api.playVideo()};
g.k.QN=function(){this.xa||2!=this.api.getPlayerState(1)||this.api.playVideo();iO(this.api)?this.api.V("muteadaccepted","invideo-overlay"):this.clear()};
g.k.bM=function(a){a.target===this.I&&g.te("ytp-ad-button",this.Ma.element).click()};g.u(qO,pN);g.k=qO.prototype;g.k.init=function(a,b,c){pN.prototype.init.call(this,a,b,c);a=b.durationMs;"number"===typeof a&&0>=a&&g.N(Error("durationMs was specified incorrectly in AdMessageRenderer with a value of: "+a));a=b.durationMs;this.I=null==a||0===a?0:a+1E3*this.B.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.C.init(lI("ad-text"),d,c);this.C.da(this.D.element);this.P.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){rO(this,!1);pN.prototype.hide.call(this);this.D.hide();this.C.hide();rN(this)};
g.k.show=function(){rO(this,!0);pN.prototype.show.call(this);qN(this);this.D.show();this.C.show()};
g.k.Ml=function(){this.hide()};
g.k.rk=function(){if(null!=this.B){var a=this.B.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.X&&a>=this.I?(this.P.hide(),this.X=!0):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.I-a)/1E3)),a!=this.ea&&(uN(this.C,{TIME_REMAINING:String(a)}),this.ea=a)))}};g.u(sO,pN);g.k=sO.prototype;
g.k.init=function(a,b,c){pN.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.Wb(a)?null:a){this.I=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.Ru(this.api.T().experiments,"preskip_button_style_ads_backend")&&TB(this.api.T());this.C=new xN(this.api,this.Ea,this.u,this.B,d);this.C.init(lI("preskip-component"),a,c);yN(this.C);g.C(this,this.C);this.C.da(this.element);
g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")&&this.C.subscribe("c",this.kO,this)}else b.skipOffsetMilliseconds&&(this.I=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.Wb(b)?null:b;null==b?g.N(Error("SkipButtonRenderer was not set in player response.")):(this.D=new AN(this.api,this.Ea,this.u,this.B),this.D.init(lI("skip-button"),b,c),g.C(this,this.D),this.D.da(this.element),this.show())};
g.k.show=function(){this.P&&this.D?this.D.show():this.C&&this.C.show();qN(this);pN.prototype.show.call(this)};
g.k.Ml=function(){};
g.k.clear=function(){this.C&&this.C.clear();this.D&&this.D.clear();rN(this);pN.prototype.hide.call(this)};
g.k.hide=function(){this.C&&this.C.hide();this.D&&this.D.hide();rN(this);pN.prototype.hide.call(this)};
g.k.kO=function(){tO(this,!0)};
g.k.rk=function(){g.R(this.api.T().experiments,"enable_pubsub_for_skip_transition_bulleit")?this.C||1E3*this.B.getProgressState().current>=this.I&&tO(this,!0):1E3*this.B.getProgressState().current>=this.I&&tO(this,!0)};g.u(uO,W);uO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.skipAd&&(a=b.skipAd,a.skipAdRenderer&&(b=new sO(this.api,this.Ea,this.u,this.B),b.da(this.C),b.init(lI("skip-button"),a.skipAdRenderer,this.macros),g.C(this,b)));this.show()};g.u(xO,pN);g.k=xO.prototype;g.k.init=function(a,b,c){pN.prototype.init.call(this,a,b,c);if(b.templatedCountdown){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.Eo(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.C=new tN(this.api,this.Ea,this.u);this.C.init(lI("ad-text"),a,{});this.C.da(this.element);g.C(this,this.C)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){rN(this);pN.prototype.hide.call(this)};
g.k.Ml=function(){this.hide()};
g.k.rk=function(){if(null!=this.B){var a=this.B.getProgressState();if(null!=a&&null!=a.current&&this.C){a=(void 0!==this.D?this.D:this.B instanceof BN?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.vO(a);uN(this.C,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){qN(this);pN.prototype.show.call(this)};g.u(yO,tN);yO.prototype.onClick=function(a){tN.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.u(zO,pN);g.k=zO.prototype;
g.k.init=function(a,b,c){pN.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.sc(g.pd(d[0].url))&&(d[0].url=a.Pe)}else g.er(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.D.init(lI("ad-image"),b.image,c);this.P.init(lI("ad-text"),
b.headline,c);this.I.init(lI("ad-text"),b.description,c);this.C.init(lI("button"),b.actionButton.buttonRenderer,c);this.X=b.actionButton.buttonRenderer.navigationEndpoint;this.show();this.ea=b.startMs||0;qN(this)}else g.dr(Error("FlyoutCtaRenderer has no valid action button."));else g.dr(Error("FlyoutCtaRenderer has no description AdText."));else g.dr(Error("FlyoutCtaRenderer has no headline AdText."));else g.er(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){pN.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Me(this.C.element,a.target)&&this.X&&this.Ea.executeCommand(this.X,this.macros)};
g.k.rk=function(){if(this.B){var a=this.B.getProgressState();a&&a.current&&1E3*a.current>=this.ea&&(rN(this),g.Bn(this.element,"ytp-flyout-cta-inactive"))}};
g.k.Ml=function(){this.clear()};
g.k.clear=function(){this.hide()};
g.k.show=function(){this.C&&this.C.show();pN.prototype.show.call(this)};
g.k.hide=function(){this.C&&this.C.hide();pN.prototype.hide.call(this)};g.u(AO,W);g.k=AO.prototype;
g.k.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.N(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.N(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.I(this.D,a)}a={};b.defaultText?
(c=g.U(b.defaultText),g.sc(c)||(a.buttonText=c,this.B.setAttribute("aria-label",c))):g.Fg(this.ha,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.B.hasAttribute("aria-label")||this.X.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=nN(b.defaultIcon),this.ua("untoggledIconTemplateSpec",c),b.toggledIcon?(this.P=!0,c=nN(b.toggledIcon),this.ua("toggledIconTemplateSpec",c)):(g.Fg(this.I,!0),g.Fg(this.F,!1)),g.Fg(this.B,!1)):g.Fg(this.X,!1);g.Wb(a)||this.update(a);b.isToggled&&(g.I(this.D,
"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));BO(this);this.ea=this.R(this.element,"change",this.fD);g.R(this.api.T().experiments,"bulleit_use_touch_events_for_magpie")&&MM(this,this.ea);this.show()}};
g.k.onClick=function(a){0<this.fa.length&&(this.toggleButton(!this.isToggled()),this.fD());W.prototype.onClick.call(this,a)};
g.k.fD=function(){var a=this;g.J(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());Goa(this,this.isToggled()).forEach(function(b){return a.Ea.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button");BO(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.J(this.D,"ytp-ad-toggle-button-toggled",a);this.B.checked=a;BO(this)};
g.k.isToggled=function(){return this.B.checked};g.u(CO,W);g.k=CO.prototype;g.k.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);this.B=b;this.B.rectangle&&(Hoa(this,c),g.R(this.api.T().experiments,"bulleit_use_touch_events_for_magpie")&&MM(this,this.I),this.F.show(100),this.show(),(this.B&&this.B.impressionCommands||[]).forEach(function(e){return d.Ea.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.D.hide();this.C.hide();W.prototype.hide.call(this)};
g.k.show=function(){this.D.show();this.C.show();W.prototype.show.call(this)};
g.k.gD=function(){var a=this.element,b=!g.zn(a,"ytp-ad-instream-user-sentiment-selected");g.J(a,"ytp-ad-instream-user-sentiment-selected",b);this.B.postMessageAction&&this.api.va("onYtShowToast",this.B.postMessageAction);this.F.hide()};
g.k.onClick=function(a){0<this.fa.length&&this.gD();W.prototype.onClick.call(this,a)};g.u(DO,oN);DO.prototype.init=function(a,b,c){oN.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.U(b.text),a=!g.sc(a));a?null==b.navigationEndpoint?g.Eo(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Eo(Error("Button style was not a link-style type in renderer,")):(g.R(this.api.T().experiments,"bulleit_use_touch_events_for_visit_advertiser")&&MM(this),this.show()):g.Eo(Error("No visit advertiser text was present in the renderer."))};g.u(EO,W);EO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);a=b.text;g.sc(EM(a))?g.Eo(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.T(),b=a.text+" "+(b&&b.u?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new tN(this.api,this.Ea,this.u),a.init(lI("simple-ad-badge"),b,c),a.da(this.element),g.C(this,a)),this.show())};
EO.prototype.clear=function(){this.hide()};FO.prototype.getLength=function(){return this.u-this.B};g.u(IO,g.DM);IO.prototype.D=function(){var a=this.B.getProgressState();a=HO(new FO(a.seekableStart,a.seekableEnd),a.current,0);this.I.style.width=100*a+"%"};
IO.prototype.F=function(){g.WB(this.C.T())||(2==this.C.getPresentingPlayerType()?-1===this.u&&(this.show(),this.u=this.B.subscribe("b",this.D,this),this.D()):-1!==this.u&&(this.hide(),this.B.jk(this.u),this.u=-1))};g.u(KO,W);
KO.prototype.init=function(a,b,c,d){W.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new sO(this.api,this.Ea,this.u,this.B),c.da(this.F),c.init(lI("skip-button"),a.skipAdRenderer,this.macros),g.C(this,c)):a.adPreviewRenderer&&(c=new xN(this.api,this.Ea,this.u,this.B,!1),c.da(this.F),c.init(lI("ad-preview"),a.adPreviewRenderer,this.macros),yN(c),g.C(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new CO(this.api,this.Ea,this.u),c.da(this.P),c.init(lI("instream-user-sentiment"),a,this.macros),g.C(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new zO(this.api,this.Ea,this.u,this.B),g.C(this,c),c.da(this.I),c.init(lI("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.C;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new EO(this.api,this.Ea,this.u,!0),g.C(this,c),c.da(this.C),c.init(lI("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 xO(this.api,this.Ea,this.u,this.B,d),g.C(this,d),d.da(this.C),d.init(lI("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new TN(this.api,this.Ea,this.u,this.element),g.C(this,a),a.da(this.C),a.init(lI("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,
this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=JO(this)&&this.D?this.D:this.C))&&(a=new DO(this.api,this.Ea,this.u),g.C(this,a),a.da(d),a.init(lI("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.T())&&!LB(b)&&"3"==b.controlsType&&(b=new IO(this.api,this.B),b.da(this.X),g.C(this,b));g.R(this.api.T().experiments,"enable_updated_html5_player_focus_style")&&g.I(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
KO.prototype.clear=function(){this.hide()};g.u(LO,W);
LO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.D=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new oN(this.api,this.Ea,this.u,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.da(this.C),a.init(lI("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.B=new AO(this.api,this.Ea,this.u,["ytp-ad-survey-answer-toggle-button"]),this.B.da(this.C),g.C(this,this.B),
this.B.init(lI("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
LO.prototype.clear=function(){this.hide()};g.u(MO,W);MO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.B=new AO(this.api,this.Ea,this.u,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.B.da(this.C),this.B.init(lI("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.u(NO,oN);NO.prototype.init=function(a,b,c){oN.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.U(b.text),a=!g.sc(b));a||g.Eo(Error("No submit text was present in the renderer."))};
NO.prototype.onClick=function(a){this.V("l");oN.prototype.onClick.call(this,a)};g.u(OO,W);
OO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);this.C=c;if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new sO(this.api,this.Ea,this.u,this.F),c.da(this.P),c.init(lI("skip-button"),a,this.C),g.C(this,c),this.B=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new xN(this.api,this.Ea,this.u,this.F,!1),c.da(this.P),c.init(lI("ad-preview"),a,this.C),yN(c),g.C(this,c),this.B=c);null==this.B&&g.N(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new NO(this.api,this.Ea,this.u),c.da(this.X),c.init(lI("survey-submit"),a,this.C),g.C(this,c),this.D=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new EO(this.api,this.Ea,this.u,!0),c.da(this.I),c.init(lI("simple-ad-badge"),a,this.C),g.C(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new xO(this.api,this.Ea,this.u,this.F,void 0),c.da(this.I),c.init(lI("ad-duration-remaining"),a,this.C),g.C(this,
c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new TN(this.api,this.Ea,this.u,this.element),g.C(this,a),a.da(this.I),a.init(lI("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
OO.prototype.clear=function(){this.hide()};g.u(PO,W);PO.prototype.init=function(a,b,c){W.prototype.init.call(this,a,b,c);Joa(this)};
PO.prototype.show=function(){this.F=g.A();W.prototype.show.call(this)};
PO.prototype.fF=function(){};g.u(SO,PO);g.k=SO.prototype;g.k.init=function(a,b,c){var d=this;PO.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.ea,g.U(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&QO(d,e.instreamSurveyAdAnswerRenderer,c)});
this.P=new Set(this.D.map(function(e){return e.B.B}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&Koa(this,a,c);b.surveyAdQuestionCommon?RO(this,b.surveyAdQuestionCommon):g.N(Error("SurveyAdQuestionCommon was not sent.MultiSelectQuestionRenderer: "+JSON.stringify(b)));b.submitEndpoints&&(this.ha=b.submitEndpoints);this.R(this.element,"change",this.HL);this.show()};
g.k.fF=function(){TO(this,!1);this.I.D.subscribe("l",this.dP,this)};
g.k.HL=function(a){a.target==this.C.B.B?Loa(this):this.P.has(a.target)&&(this.C.B.toggleButton(!1),TO(this,!0))};
g.k.dP=function(){var a=this,b=this.D.reduce(function(d,e){var f=e.D;e.B&&e.B.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.ha.map(function(d){if(!d.loggingUrls)return d;
d=g.$b(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=Md(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Ea.executeCommand(d,a.macros)})};
g.k.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(UO,PO);UO.prototype.init=function(a,b,c){var d=this;PO.prototype.init.call(this,a,b,c);b.questionText&&g.Ne(this.ea,g.U(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&QO(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?RO(this,b.surveyAdQuestionCommon):g.N(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
UO.prototype.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.u(VO,W);
VO.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);b.questions.forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new UO(d.api,d.Ea,d.u);f.da(d.B);f.init(lI("survey-question-single-select"),e,c);d.C.push(f);g.C(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new SO(d.api,d.Ea,d.u),f.da(d.B),f.init(lI("survey-question-multi-select"),e,c),
d.C.push(f),g.C(d,f))});
this.show()};
VO.prototype.clear=function(){g.R(this.api.T().experiments,"enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.u(WO,W);
WO.prototype.init=function(a,b,c){var d=this;W.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.N(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){XO(this.F,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);XO(this.P,
b.brandImage);g.Ne(this.X,g.U(b.text));this.B=new oN(this.api,this.Ea,this.u,["ytp-ad-survey-interstitial-action-button"]);g.C(this,this.B);this.B.da(this.I);this.B.init(lI("button"),b.ctaButton.buttonRenderer,c);this.B.show();var e=b.timeoutCommands;this.D=new BN(1E3*a);this.D.subscribe("a",function(){d.C.hide();e.forEach(function(f){return d.Ea.executeCommand(f,c)});
d.Ea.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)});
g.C(this,this.D);this.R(this.element,"click",function(f){return Noa(d,f,b)});
this.C.show(100);b.impressionCommands&&b.impressionCommands.forEach(function(f){return d.Ea.executeCommand(f,c)})}else g.N(Error("SurveyTextInterstitialRenderer has no landscape background image."));
else g.N(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.N(Error("SurveyTextInterstitialRenderer has no button."));else g.N(Error("SurveyTextInterstitialRenderer has no text."));else g.N(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
WO.prototype.clear=function(){this.hide()};
WO.prototype.show=function(){YO(!0);W.prototype.show.call(this)};
WO.prototype.hide=function(){YO(!1);W.prototype.hide.call(this)};g.u(ZO,g.P);g.k=ZO.prototype;g.k.dD=function(){return 1E3*this.u.getDuration(this.C,!1)};
g.k.stop=function(){this.D&&this.B.Bb(this.D)};
g.k.eD=function(){var a=this.u.getProgressState(this.C);this.F={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:g.R(this.u.T().experiments,"halftime_ux_killswitch")?a.current:this.u.getCurrentTime(this.C,!1)};this.V("b")};
g.k.getProgressState=function(){return this.F};
g.k.CL=function(a){g.pI(a,2)&&this.V("a")};var mBa="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.u(aP,qM);
aP.prototype.C=function(a){var b=a.id,c=a.content;if(c){var d=c.componentType;if(!mBa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.D,f=c.u;f=void 0===f?{}:f;switch(d){case "invideo-overlay":a=new jO(e,a,f);break;case "persisting-overlay":a=new uO(e,a,f,new ZO(e));break;case "player-overlay":a=new KO(e,a,f,new ZO(e));break;case "survey":a=new VO(e,a,f);break;case "ad-action-interstitial":a=new CN(e,a,f);break;case "ad-text-interstitial":a=new GN(e,a,f);break;case "survey-interstitial":a=
new WO(e,a,f);break;case "ad-choice-interstitial":a=new EN(e,a,f);break;case "ad-message":a=new qO(e,a,f,new ZO(e,1));break;default:a=null}if(!a){g.Eo(Error("No UI component returned from ComponentFactory for type: "+d));break}Sb(this.B,b)?g.Eo(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);this.F.append(a.Za);break;case 2:b=bP(this,a);if(null==b)break;b.bind(c);break;case 3:c=bP(this,a),null!=c&&(g.eg(c),Sb(this.B,b)?(c=this.B,b in c&&delete c[b]):g.Eo(Error("Ad UI component does not exist: "+
b)))}}};
aP.prototype.aa=function(){g.fg(Object.values(this.B));this.B={};qM.prototype.aa.call(this)};var nBa={FU:"replaceUrlMacros",nT:"isExternalShelfAllowedFor"};cP.prototype.Lh=function(){return"adLifecycleCommand"};
cP.prototype.handle=function(a){var b=this;switch(a.action){case "START_LINEAR_AD":g.um(function(){b.controller.Is()});
break;case "END_LINEAR_AD":g.um(function(){b.controller.Hs()});
break;case "END_LINEAR_AD_PLACEMENT":g.um(function(){b.controller.Uo()});
break;case "FILL_INSTREAM_SLOT":g.um(function(){a.elementId&&b.controller.qr(a.elementId)});
break;case "FILL_ABOVE_FEED_SLOT":g.um(function(){a.elementId&&b.controller.qo(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.um(function(){b.controller.Yn()})}};
cP.prototype.Si=function(a){this.handle(a)};dP.prototype.Lh=function(){return"adPlayerControlsCommand"};
dP.prototype.handle=function(a){var b=this.ao();switch(a.action){case "AD_PLAYER_CONTROLS_ACTION_SEEK_TO_END":var c=OH(b.u)&&b.B.ak()?b.u.getDuration(2):0;if(0>=c)break;b.seekTo(g.be(c-(Number(a.seekOffsetMilliseconds)||0)/1E3,0,c));break;case "AD_PLAYER_CONTROLS_ACTION_RESUME":b.resume()}};
dP.prototype.Si=function(a){this.handle(a)};eP.prototype.Lh=function(){return"clearCueRangesCommand"};
eP.prototype.handle=function(){var a=this.ao();g.um(function(){BK(a,Array.from(a.I))})};
eP.prototype.Si=function(a){this.handle(a)};fP.prototype.Lh=function(){return"muteAdEndpoint"};
fP.prototype.handle=function(a){var b=this.ao();switch(a.type){case "SKIP":g.um(function(){b.Uo()})}};
fP.prototype.Si=function(a){this.handle(a)};gP.prototype.Lh=function(){return"pingingEndpoint"};
gP.prototype.handle=function(){};
gP.prototype.Si=function(a){this.handle(a)};hP.prototype.Lh=function(){return"urlEndpoint"};
hP.prototype.handle=function(a,b){var c=g.on(a.url,b);g.gK(c)};
hP.prototype.Si=function(){$G("Trying to handle UrlEndpoint with no macro in controlflow")};iP.prototype.Lh=function(){return"adPingingEndpoint"};
iP.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Pn.send(a,b,c)};
iP.prototype.Si=function(a,b){pR(this.Ga.get(),a,b)};jP.prototype.Lh=function(){return"changeEngagementPanelVisibilityAction"};
jP.prototype.handle=function(a){this.J.va("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
jP.prototype.Si=function(a){this.handle(a)};kP.prototype.Lh=function(){return"loggingUrls"};
kP.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.lh.send(d.baseUrl,b,c,d.headers)};
kP.prototype.Si=function(a,b){for(var c=g.q(a),d=c.next();!d.done;d=c.next())d=d.value,pR(this.Ga.get(),d.baseUrl,b,d.headers)};g.u(lP,g.B);var RP=new Map([[0,"normal"],[1,"skipped"],[2,"muted"],[6,"user_input_submitted"]]);var Soa=new Map([["opportunity_type_ad_break_service_response_received","OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED"],["opportunity_type_live_stream_break_signal","OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL"],["opportunity_type_player_bytes_media_layout_entered","OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED"],["opportunity_type_player_response_received","OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED"],["opportunity_type_throttled_ad_break_request_slot_reentry","OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY"]]),
Qoa=new Map([["slot_type_in_player","SLOT_TYPE_IN_PLAYER"],["slot_type_above_feed","SLOT_TYPE_ABOVE_FEED"],["slot_type_below_player","SLOT_TYPE_BELOW_PLAYER"],["slot_type_player_bytes","SLOT_TYPE_PLAYER_BYTES"],["slot_type_forecasting","SLOT_TYPE_FORECASTING"],["slot_type_ad_break_request","SLOT_TYPE_AD_BREAK_REQUEST"]]),Roa=new Map([["layout_type_media_break","LAYOUT_TYPE_MEDIA_BREAK"],["layout_type_media_layout_player_overlay","LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"],["layout_type_companion_with_action_button",
"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"],["layout_type_companion_with_image","LAYOUT_TYPE_COMPANION_WITH_IMAGE"],["layout_type_companion_with_shopping","LAYOUT_TYPE_COMPANION_WITH_SHOPPING"],["layout_type_media","LAYOUT_TYPE_MEDIA"],["layout_type_composite_player_bytes","LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"],["layout_type_forecasting","LAYOUT_TYPE_FORECASTING"],["layout_type_in_video_text_overlay","LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY"],["layout_type_in_video_enhanced_text_overlay","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"],
["layout_type_in_video_image_overlay","LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"],["layout_type_ad_break_response","LAYOUT_TYPE_AD_BREAK_RESPONSE"],["layout_type_throttled_ad_break_response","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"],["layout_type_survey","LAYOUT_TYPE_SURVEY"],["layout_type_sliding_text_player_overlay","LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY"],["layout_type_video_interstitial_buttoned_left","LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]]),rP=new Map([["trigger_type_on_new_playback_after_content_video_id",
"TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID"],["trigger_type_on_different_slot_id_enter_requested","TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED"],["trigger_type_slot_id_entered","TRIGGER_TYPE_SLOT_ID_ENTERED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_exited","TRIGGER_TYPE_SLOT_ID_EXITED"],["trigger_type_slot_id_scheduled","TRIGGER_TYPE_SLOT_ID_SCHEDULED"],["trigger_type_slot_id_fulfilled_empty","TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY"],["trigger_type_slot_id_fulfilled_non_empty",
"TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY"],["trigger_type_layout_id_entered","TRIGGER_TYPE_LAYOUT_ID_ENTERED"],["trigger_type_on_different_layout_id_entered","TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED"],["trigger_type_layout_id_exited","TRIGGER_TYPE_LAYOUT_ID_EXITED"],["trigger_type_on_layout_self_exit_requested","TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED"],["trigger_type_on_element_self_enter_requested","TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED"],["trigger_type_before_content_video_id_started",
"TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED"],["trigger_type_after_content_video_id_ended","TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED"],["trigger_type_media_time_range","TRIGGER_TYPE_MEDIA_TIME_RANGE"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED","TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED"],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED","TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED"],["trigger_type_close_requested","TRIGGER_TYPE_CLOSE_REQUESTED"],["trigger_type_time_relative_to_layout_enter","TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER"],
["trigger_type_not_in_media_time_range","TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE"],["trigger_type_survey_submitted","TRIGGER_TYPE_SURVEY_SUBMITTED"],["trigger_type_skip_requested","TRIGGER_TYPE_SKIP_REQUESTED"],["trigger_type_on_opportunity_received","TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED"],["trigger_type_layout_id_active_and_slot_id_has_exited","TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED"],["trigger_type_playback_minimized","TRIGGER_TYPE_PLAYBACK_MINIMIZED"]]),Hpa=new Map([[5,"TRIGGER_CATEGORY_SLOT_ENTRY"],
[4,"TRIGGER_CATEGORY_SLOT_FULFILLMENT"],[3,"TRIGGER_CATEGORY_SLOT_EXPIRATION"],[0,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL"],[1,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"],[2,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"],[6,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED"]]),sP=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"]]),
pP=new Map([["normal",{Lp:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Yp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Lp:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Yp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],["muted",{Lp:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Yp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Lp:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Yp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",
{Lp:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Yp:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}]]);g.u(zP,g.B);g.k=zP.prototype;g.k.kh=function(a,b){wQ(this.zb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.kh(a,b)};
g.k.Ne=function(a){if(CP(this.u,a)){NP(this.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.u.Ne(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.Ne(a);KP(this,a)}};
g.k.Oe=function(a){if(CP(this.u,a)){NP(this.zb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.u.Oe(a);for(var b=g.q(this.B),c=b.next();!c.done;c=b.next())c.value.Oe(a);CP(this.u,a)&&DP(this.u,a).F&&AP(this,a,!1)}};
g.k.Yd=function(a,b){if(CP(this.u,a)){EP(this.zb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.Yd(a,b)}};
g.k.qe=function(a,b,c){if(CP(this.u,a)){EP(this.zb,qP(c),a,b);this.u.qe(a,b);for(var d=g.q(this.B),e=d.next();!e.done;e=d.next())e.value.qe(a,b,c);(c=YP(this.u,a))&&b.layoutId===c.layoutId&&$P(this,a,!1)}};
g.k.aa=function(){var a=Zoa(this.u);a=g.q(a);for(var b=a.next();!b.done;b=a.next())AP(this,b.value,!1);g.B.prototype.aa.call(this)};bQ.prototype.isActive=function(){switch(this.u){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};
bQ.prototype.Aw=function(){switch(this.D){case "fill_requested":return!0;default:return!1}};
bQ.prototype.zw=function(){switch(this.u){case "exit_requested":return!0;default:return!1}};
bQ.prototype.xw=function(){switch(this.u){case "rendering_stop_requested":return!0;default:return!1}};g.u(FP,Za);g.u(cQ,g.B);g.k=cQ.prototype;g.k.sg=function(a){a=DP(this,a);"not_scheduled"!==a.u&&ZP(a.slot,a.u,"onSlotScheduled");a.u="scheduled"};
g.k.ro=function(a){a=DP(this,a);a.D="fill_requested";a.I.ro()};
g.k.Ne=function(a){a=DP(this,a);"enter_requested"!==a.u&&ZP(a.slot,a.u,"onSlotEntered");a.u="entered"};
g.k.lm=function(a){DP(this,a).lm=!0};
g.k.Aw=function(a){return DP(this,a).Aw()};
g.k.zw=function(a){return DP(this,a).zw()};
g.k.xw=function(a){return DP(this,a).xw()};
g.k.Oe=function(a){a=DP(this,a);"exit_requested"!==a.u&&ZP(a.slot,a.u,"onSlotExited");a.u="scheduled"};
g.k.qe=function(a,b){var c=DP(this,a);null!=c.layout&&c.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==c.u&&ZP(c.slot,c.u,"onLayoutExited"),c.u="entered")};g.u(gQ,g.B);g.u(hQ,g.B);hQ.prototype.get=function(){this.la()&&$G("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.u});this.u||(this.u=this.B());return this.u};g.u(vQ,g.B);g.u(zQ,g.B);zQ.prototype.Lw=function(){};
zQ.prototype.vC=function(a){var b=this,c=this.u.get(a);c&&(this.u["delete"](a),this.Vb.get().removeCueRange(a),LG(this.gb.get(),"opportunity_type_throttled_ad_break_request_slot_reentry",function(){var d=b.ab.get();d=CQ(d.Ta.get(),"slot_type_ad_break_request");return[Object.assign(Object.assign({},c),{slotId:d,Sb:c.Sb?XQ(c.slotId,d,c.Sb):void 0,ae:YQ(c.slotId,d,c.ae),Qe:YQ(c.slotId,d,c.Qe)})]},c.slotId))};
zQ.prototype.ai=function(){for(var a=g.q(this.u.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Vb.get().removeCueRange(b);this.u.clear()};
zQ.prototype.yl=function(){};g.u(AQ,g.B);g.k=AQ.prototype;g.k.sg=function(){};
g.k.oj=function(){};
g.k.Ne=function(){};
g.k.gi=function(){};
g.k.Oe=function(){};
g.k.mj=function(){};
g.k.nj=function(){};
g.k.fi=function(a,b){this.B.has(a)||this.B.set(a,new Set);this.B.get(a).add(b)};
g.k.kj=function(a,b){this.u.has(a)&&this.u.get(a)===b&&$G("Unscheduled a Layout that is currently entered.",a,b);if(this.B.has(a)){var c=this.B.get(a);c.has(b)?(c["delete"](b),0===c.size&&this.B["delete"](a)):$G("Trying to unscheduled a Layout that was not scheduled.",a,b)}else $G("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Yd=function(a,b){this.u.set(a,b)};
g.k.qe=function(a){this.u["delete"](a)};
g.k.kh=function(){};RQ.prototype.clone=function(a){var b=this;return new RQ(function(){return b.triggerId},a)};SQ.prototype.clone=function(a){var b=this;return new SQ(function(){return b.triggerId},a)};TQ.prototype.clone=function(a){var b=this;return new TQ(function(){return b.triggerId},a)};UQ.prototype.clone=function(a){var b=this;return new UQ(function(){return b.triggerId},a)};VQ.prototype.clone=function(a){var b=this;return new VQ(function(){return b.triggerId},a)};g.u(aR,g.B);aR.prototype.logEvent=function(a){wQ(this,a)};cR.prototype.addListener=function(a){this.listeners.push(a)};
cR.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.u(eR,g.B);eR.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?2:f;h=void 0===h?1:h;this.u.has(a)?$G("Tried to register duplicate cuerange",void 0,void 0,{CueRangeID:a}):(a=new fR(a,b,c,d,f),this.u.set(a.id,{Zc:a,listener:e}),g.kM(this.J,[a],h))};
eR.prototype.removeCueRange=function(a){var b=this.u.get(a);b?(g.lM(this.J.app,[b.Zc],1),this.u["delete"](a)):$G("Requested to remove unknown cuerange",void 0,void 0,{CueRangeID:a})};
eR.prototype.C=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.Lw(a.id)};
eR.prototype.D=function(a){this.u.has(a.id)&&this.u.get(a.id).listener.vC(a.id)};
g.u(fR,g.oD);lR.prototype.C=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:$N(b.Pa,"active_view_measurable")};
lR.prototype.B=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.Pa.u.has("impression")&&!b.Pa.u.has("seek")&&$N(b.Pa,"active_view_fully_viewable_audible_half_duration")};
lR.prototype.D=function(a){var b;null===(b=this.u.get(a.queryId))||void 0===b?void 0:b.Pa.u.has("impression")&&!b.Pa.u.has("seek")&&$N(b.Pa,"active_view_viewable")};g.u(nR,KH);nR.prototype.Ye=function(){return this.u()};
nR.prototype.B=function(){return this.C()};g.u(g.sR,g.Pr);g.sR.prototype.R=function(a,b,c){return g.Pr.prototype.R.call(this,a,b,c)};g.u(tR,g.B);g.k=tR.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.sP=function(a,b){var c=this.Iq(b);this.u=c;this.listeners.forEach(function(e){e.aE(c)});
var d=NG(this,1);d.clientPlaybackNonce!==this.contentCpn&&(this.contentCpn=d.clientPlaybackNonce,this.listeners.forEach(function(){}))};
g.k.Iq=function(a){var b,c,d,e,f=a.author,h=a.clientPlaybackNonce,l=a.isListed,m=a.Ub,n=a.title,p=a.If,r=a.xe,t=a.isMdxPlayback,w=a.cg,x=a.mdxEnvironment,y=a.videoId||"",D=a.Pe||"",E=a.Cg||"";a=a.Hi||void 0;m=this.Ac.get().u.get(m)||{layoutId:null,slotId:null};var G=this.J.getVideoData(1),K=G.qg(),M=G.getPlayerResponse();G=1E3*this.J.getDuration(1);M=(null===(c=null===(b=null===M||void 0===M?void 0:M.playerConfig)||void 0===b?void 0:b.daiConfig)||void 0===c?void 0:c.enableDai)||(null===(e=null===
(d=null===M||void 0===M?void 0:M.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===e?void 0:e.enableServerStitchedDai)||!1;return Object.assign(Object.assign({},m),{videoId:y,author:f,clientPlaybackNonce:h,oA:G,daiEnabled:M,isListed:l,qg:K,Pe:D,title:n,Cg:E,If:p,xe:r,Hi:a,isMdxPlayback:t,cg:w,mdxEnvironment:x})};
g.k.aa=function(){this.listeners.length=0;this.u=null;g.B.prototype.aa.call(this)};g.u(uR,g.B);g.k=uR.prototype;g.k.ai=function(){var a=this;this.u=eb(function(){a.J.la()||g.bX(a.J,"ad",1)})};
g.k.yl=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.pauseVideo=function(){this.J.pauseVideo()};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType()};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.sO=function(){if(2===this.J.getPresentingPlayerType())for(var a=WP(this,2,!1),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.pp(a)};
g.k.jO=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.xp(a)};
g.k.WJ=function(a){for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.Vo(a)};
g.k.XJ=function(){for(var a=g.q(this.listeners),b=a.next();!b.done;b=a.next());};
g.k.lj=function(){for(var a=this.J.app.visibility.u,b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.lj(a)};
g.k.Qa=function(){for(var a=g.yG(this.J).getPlayerSize(),b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.np(a)};g.u(Ppa,g.B);vR.prototype.ro=function(){var a=this;Rpa(this.B,function(){var b=fO(a.slot.Ba,"metadata_type_ad_break_request_data");return a.Mc.get().fetch({hG:b.getAdBreakUrl,wA:new g.oD(b.aF,b.ZE),bo:fO(a.slot.Ba,"metadata_type_cue_point")})},function(b){b=b.Gg;
(!b.length||2<=b.length)&&$G("Unexpected ad placement renderers length",a.slot,null,{length:b.length})})};
vR.prototype.u=function(){Spa(this.B)};wR.prototype.ro=function(){var a=this;Rpa(this.B,function(){var b=fO(a.slot.Ba,"metadata_type_ad_break_request_data");return a.Mc.get().fetch({hG:b.getAdBreakUrl,wA:new g.oD(b.aF,b.ZE)})})};
wR.prototype.u=function(){Spa(this.B)};yQ.prototype.ro=function(){LP(this.callback,this.slot,fO(this.slot.Ba,"metadata_type_fulfilled_layout"))};
yQ.prototype.u=function(){BP(this.callback,this.slot,new QG("Got CancelSlotFulfilling request for "+this.slot.Ya+" in DirectFulfillmentAdapter."))};g.u(xR,Tpa);xR.prototype.u=function(a,b){if(xQ(b,{Ue:["metadata_type_ad_break_request_data","metadata_type_cue_point"],Ya:"slot_type_ad_break_request"}))return new vR(a,b,this.Mc,this.vb,this.Xa,this.za);if(xQ(b,{Ue:["metadata_type_ad_break_request_data"],Ya:"slot_type_ad_break_request"}))return new wR(a,b,this.Mc,this.vb,this.Xa,this.za);throw new QG("Unsupported slot with type: "+b.Ya+" and client metadata: "+oP(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.u(yR,Tpa);yR.prototype.u=function(a,b){throw new QG("Unsupported slot with type: "+b.Ya+" and client metadata: "+oP(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=Upa.prototype;g.k.ng=function(){return this.slot};
g.k.Rg=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)HP(this.callback,this.slot,a,new FP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=fO(a.Ba,"metadata_type_ad_break_response_data");"slot_type_ad_break_request"===this.slot.Ya?(this.callback.Yd(this.slot,a),Mma(this.u,this.slot,b)):$G("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.Tl=function(a,b){a.layoutId!==this.layout.layoutId?HP(this.callback,this.slot,a,new FP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.qe(this.slot,a,b)};AR.prototype.u=function(a,b,c,d){if(zR(d,{Ue:["metadata_type_ad_break_response_data"],Xh:["layout_type_ad_break_response","layout_type_throttled_ad_break_response"]}))return new Upa(a,c,d,this.B);throw new FP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+oP(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.k=Vpa.prototype;g.k.ng=function(){return this.slot};
g.k.Rg=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?HP(this.callback,this.slot,a,new FP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Yd(this.slot,a),aO(this.Pa,"impression"),gqa(this.u,a.layoutId))};
g.k.Tl=function(a,b){a.layoutId!==this.layout.layoutId?HP(this.callback,this.slot,a,new FP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.qe(this.slot,a,b)};BR.prototype.u=function(a,b,c,d){if(zR(d,Wpa()))return new Vpa(a,c,d,this.Ga,this.B);throw new FP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+oP(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.u(CR,g.P);g.k=CR.prototype;g.k.ng=function(){return this.slot};
g.k.Rg=function(){return this.layout};
g.k.init=function(){this.jq.get().addListener(this)};
g.k.release=function(){this.jq.get().removeListener(this);this.dispose()};
g.k.bw=function(){};
g.k.Zv=function(){};
g.k.Nr=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)HP(this.callback,this.slot,a,new FP("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{for(var b=this.jq.get(),c=this.xj,d=g.q(c),e=d.next();!e.done;e=d.next())e=e.value,jqa(b,e,a)?$G("Trying to show component which already exists",void 0,a,{component:e}):b.u.set(e.componentType,a);iqa(b,c,1)}};
g.k.Tl=function(a,b){if(a.layoutId!==this.layout.layoutId)HP(this.callback,this.slot,a,new FP("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{for(var c=this.jq.get(),d=this.xj,e=g.q(d),f=e.next();!f.done;f=e.next())f=f.value,jqa(c,f,a)?c.u["delete"](f.componentType):$G("Trying to hide component which has not been shown on layout yet",void 0,a,{component:f});iqa(c,d,3);this.xj=[];this.callback.qe(this.slot,
a,b)}};
g.k.aa=function(){this.jq.get().removeListener(this);g.P.prototype.aa.call(this)};g.u(GR,CR);g.k=GR.prototype;g.k.init=function(){CR.prototype.init.call(this);DR(this.Pa,this.ng(),this.Rg(),this.callback,"metadata_type_action_companion_ad_renderer",function(a,b,c,d){return new yI(a,b,c,d)},this.xj)};
g.k.af=function(a){FR(this.Qn,a,this.fd.get().u,this.Ga.get(),this.Ng,this.Ck,this.ng(),this.Rg())};
g.k.Yd=function(a,b){b.layoutId===this.layout.layoutId?aO(this.Pa,"impression"):ER(this.Ck,b)&&(null===this.Ng?this.Ng=rR(this.Ga.get()):$G("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.qe=function(){};
g.k.sg=function(){};
g.k.oj=function(){};
g.k.gi=function(){};
g.k.Ne=function(){};
g.k.Oe=function(){};
g.k.mj=function(){};
g.k.nj=function(){};
g.k.fi=function(){};
g.k.kj=function(){};
g.k.kh=function(){};
g.k.aa=function(){this.dg().B["delete"](this);CR.prototype.aa.call(this)};g.u(HR,CR);HR.prototype.init=function(){CR.prototype.init.call(this);var a=fO(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ke};this.xj.push(new kK(a,fO(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b))};
HR.prototype.startRendering=function(a){CR.prototype.startRendering.call(this,a);this.callback.Yd(this.slot,a)};
HR.prototype.af=function(a){a:{var b=this.fd.get();var c=this.B;b=g.q(b.u.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.Ga.get().J.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||(a=this.wa.get(),2===a.J.getPlayerState(2)&&a.J.playVideo());break;case "ad-info-icon-button":(this.u=2===this.wa.get().J.getPlayerState(2))||
this.wa.get().pauseVideo();break;case "visit-advertiser":this.wa.get().pauseVideo();fO(this.layout.Ba,"metadata_type_player_bytes_callback").iF();break;case "skip-button":a=fO(this.layout.Ba,"metadata_type_player_bytes_callback"),a.ba&&a.oE()}};
HR.prototype.aa=function(){CR.prototype.aa.call(this)};JR.prototype.u=function(a,b,c,d){if(a=IR(a,c,d,this.Hb,this.wa,this.Ga,this.fd))return a;throw new FP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+oP(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u(KR,g.B);g.k=KR.prototype;g.k.Yd=function(a,b){var c=this;if(Zpa(this)&&"layout_type_media"===b.layoutType)if(mP(b,this.u)){var d=NG(this.Da.get(),2),e=this.B(b,d);e?LG(this.gb.get(),"opportunity_type_player_bytes_media_layout_entered",function(){return[Gpa(c.ab.get(),e.contentCpn,e.By,function(f){return c.C(f.slotId,"core",e,xP(c.Xa.get(),f))})]}):$G("Expected MediaLayout to carry valid opportunity on entered",a,b)}else $G("Received MediaLayout entered, missing metadata for opportunity",a,b,{Actual:oP(b.Ba),
Expected:this.u})};
g.k.sg=function(){};
g.k.oj=function(){};
g.k.Ne=function(){};
g.k.gi=function(){};
g.k.Oe=function(){};
g.k.mj=function(){};
g.k.nj=function(){};
g.k.fi=function(){};
g.k.kj=function(){};
g.k.kh=function(){};
g.k.qe=function(){};var tS=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=$pa.prototype;g.k.init=function(){};
g.k.ng=function(){return this.slot};
g.k.xv=function(){this.callback.Ne(this.slot)};
g.k.Cv=function(){this.callback.Oe(this.slot)};
g.k.release=function(){};MR.prototype.u=function(a,b){return new $pa(a,b)};g.k=aqa.prototype;g.k.init=function(){};
g.k.ng=function(){return this.slot};
g.k.xv=function(){g.I(this.wa.get().J.getRootNode(),"ad-showing");this.callback.Ne(this.slot)};
g.k.Cv=function(){this.callback.Oe(this.slot);g.Bn(this.wa.get().J.getRootNode(),"ad-showing")};
g.k.release=function(){};g.k=bqa.prototype;g.k.init=function(){VG(this.slot)&&(this.u=!0)};
g.k.ng=function(){return this.slot};
g.k.xv=function(){g.I(this.wa.get().J.getRootNode(),"ad-showing");this.callback.Ne(this.slot)};
g.k.Cv=function(){cqa(this);g.Bn(this.wa.get().J.getRootNode(),"ad-showing");this.callback.Oe(this.slot)};
g.k.release=function(){cqa(this)};NR.prototype.u=function(a,b){if(IG(b,["metadata_type_dai"],"slot_type_player_bytes"))return new aqa(a,b,this.wa);if(IG(b,[],"slot_type_player_bytes"))return new bqa(a,b,this.wa);throw new QG("Unsupported slot with type "+b.Ya+" and client metadata: "+(oP(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.u(PR,g.B);g.k=PR.prototype;g.k.af=function(a,b){if(b)if("survey-submit"===a){for(var c=[],d=g.q(this.u.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof pQ&&f.B===b.layoutId&&c.push(e)}c.length?QP(this.B(),c):$G("Survey is submitted but no registered triggers can be activated.")}else if("skip-button"===a){c=[];d=g.q(this.u.values());for(e=d.next();!e.done;e=d.next())e=e.value,f=e.trigger,f instanceof oQ&&f.B===b.layoutId&&c.push(e);c.length&&QP(this.B(),c)}};
g.k.yg=function(a,b,c,d){if(this.u.has(b.triggerId))throw new QG("Tried to register duplicate trigger for slot.");if(!(b instanceof pQ||b instanceof oQ))throw new QG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.u.set(b.triggerId,new OR(a,b,c,d))};
g.k.Bg=function(a){this.u["delete"](a.triggerId)};
g.k.bw=function(){};
g.k.Zv=function(){};
g.k.Nr=function(){};g.u(QR,g.B);g.k=QR.prototype;
g.k.yg=function(a,b,c,d){if(this.B.has(b.triggerId))throw new QG("Tried to register duplicate trigger for slot.");if(!(b instanceof RQ||b instanceof SQ||b instanceof TQ||b instanceof UQ||b instanceof VQ||b instanceof HQ||b instanceof WG||b instanceof mQ||b instanceof GQ||b instanceof MQ))throw new QG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new OR(a,b,c,d);this.B.set(b.triggerId,a);b instanceof VQ&&this.I.has(b.u)&&QP(this.u(),
[a]);b instanceof RQ&&this.D.has(b.u)&&QP(this.u(),[a]);b instanceof WG&&this.C.has(b.B)&&QP(this.u(),[a])};
g.k.Bg=function(a){this.B["delete"](a.triggerId)};
g.k.sg=function(a){this.I.add(a.slotId);for(var b=[],c=g.q(this.B.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof VQ&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&QP(this.u(),b)};
g.k.oj=function(a){this.I["delete"](a.slotId)};
g.k.gi=function(a){for(var b=[],c=g.q(this.B.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof HQ&&e.Ya===a.Ya&&e.C!==a.slotId&&b.push(d)}0<b.length&&QP(this.u(),b)};
g.k.Ne=function(a){this.D.add(a.slotId);for(var b=[],c=g.q(this.B.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof RQ&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&QP(this.u(),b)};
g.k.Oe=function(a){this.D["delete"](a.slotId);this.F.add(a.slotId);for(var b=[],c=g.q(this.B.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof SQ)a.slotId===d.trigger.u&&b.push(d);else if(d.trigger instanceof MQ){var e=d.trigger;a.slotId===e.slotId&&this.C.has(e.layoutId)&&b.push(d)}0<b.length&&QP(this.u(),b)};
g.k.mj=function(a){for(var b=[],c=g.q(this.B.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof TQ&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&QP(this.u(),b)};
g.k.nj=function(a){for(var b=[],c=g.q(this.B.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof UQ&&a.slotId===d.trigger.u&&b.push(d);0<b.length&&QP(this.u(),b)};
g.k.fi=function(a,b){this.K.add(b.layoutId)};
g.k.kj=function(a,b){this.K["delete"](b.layoutId)};
g.k.Yd=function(a,b){this.C.add(b.layoutId);for(var c=[],d=g.q(this.B.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof WG)b.layoutId===e.trigger.B&&c.push(e);else if(e.trigger instanceof GQ){var f=e.trigger;a.Ya===f.Ya&&b.layoutType===f.layoutType&&b.layoutId!==f.C&&c.push(e)}else e.trigger instanceof MQ&&(f=e.trigger,b.layoutId===f.layoutId&&this.F.has(f.slotId)&&c.push(e));0<c.length&&QP(this.u(),c)};
g.k.qe=function(a,b){this.C["delete"](b.layoutId);for(var c=[],d=g.q(this.B.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof mQ&&b.layoutId===e.trigger.C&&c.push(e);0<c.length&&QP(this.u(),c)};
g.k.kh=function(){};
g.k.ai=function(){this.F.clear()};
g.k.yl=function(){};g.u(RR,g.B);RR.prototype.yg=function(a,b,c,d){if(this.u.has(b.triggerId))throw new QG("Tried to register duplicate trigger for slot.");if(!(b instanceof UG||b instanceof PQ))throw new QG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.u.set(b.triggerId,new OR(a,b,c,d))};
RR.prototype.Bg=function(a){this.u["delete"](a.triggerId)};
RR.prototype.ai=function(a){var b=[];b.push.apply(b,g.la(eqa(this.u,a)));b.push.apply(b,g.la(dqa(this.u,a,!1)));b.length&&QP(this.B(),b)};
RR.prototype.yl=function(a){var b=[];b.push.apply(b,g.la(dqa(this.u,a,!0)));b.length&&QP(this.B(),b)};g.u(SR,g.B);g.k=SR.prototype;
g.k.yg=function(a,b,c,d){if(this.u.has(b.triggerId))throw new QG("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof XG)TR(this,a,b,c,d,e,b.B.start,b.B.end,b.D,b.visible);else if(b instanceof OQ)TR(this,a,b,c,d,e,b.B.start,b.B.end,b.C,!1);else if(b instanceof LQ)TR(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.B,b.visible);else throw new QG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Bg=function(a){var b=this.u.get(a.triggerId);b&&(this.Vb.get().removeCueRange(b.qm),this.C["delete"](b.qm));this.u["delete"](a.triggerId)};
g.k.Lw=function(a){if(!this.C.has(a)&&(a=fqa(this,a))&&(a=this.u.get(a)))if(g.T(mR(this.wa.get()),32))this.B.add(a.qm);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;if(b instanceof XG||b instanceof LQ)b instanceof XG&&b.F&&this.C.add(a.qm),QP(this.D(),[a.bundle])}};
g.k.vC=function(a){if(a=fqa(this,a))if(a=this.u.get(a))this.B["delete"](a.qm),a.bundle.trigger instanceof OQ&&QP(this.D(),[a.bundle])};
g.k.xp=function(a){if(0>oI(a,16)){a=g.q(this.B);for(var b=a.next();!b.done;b=a.next())this.Lw(b.value);this.B.clear()}};
g.k.pp=function(){};
g.k.Vo=function(){};
g.k.lj=function(){};
g.k.np=function(){};g.u(UR,g.B);g.k=UR.prototype;g.k.yg=function(a,b,c,d){if(this.C.has(b.triggerId))throw new QG("Tried to register duplicate trigger for slot.");if(!(b instanceof qQ||b instanceof QQ))throw new QG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.C.set(b.triggerId,new OR(a,b,c,d))};
g.k.Bg=function(a){this.C["delete"](a.triggerId)};
g.k.Is=function(){};
g.k.Hs=function(){};
g.k.Uo=function(){};
g.k.Yd=function(a,b){"slot_type_above_feed"===a.Ya&&(null!=this.u?$G("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.u=b.layoutId)};
g.k.qe=function(a){"slot_type_above_feed"===a.Ya&&(this.u=null)};
g.k.sg=function(){};
g.k.oj=function(){};
g.k.gi=function(){};
g.k.Ne=function(a){"slot_type_above_feed"===a.Ya&&(null!=this.B?$G("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.B=a.slotId)};
g.k.Oe=function(a){"slot_type_above_feed"===a.Ya&&(null===this.B?$G("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.B=null)};
g.k.mj=function(){};
g.k.nj=function(){};
g.k.fi=function(){};
g.k.kj=function(){};
g.k.kh=function(){};
g.k.Yn=function(){null!=this.u&&gqa(this,this.u)};
g.k.qo=function(a){if(null===this.B){for(var b=[],c=g.q(this.C.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof QQ&&d.trigger.slotId===a&&b.push(d);b.length&&QP(this.D(),b)}};
g.k.qr=function(){};g.u(VR,g.B);g.k=VR.prototype;g.k.kh=function(a,b){for(var c=[],d=g.q(this.u.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&&QP(this.B(),c)};
g.k.yg=function(a,b,c,d){if(this.u.has(b.triggerId))throw new QG("Tried to register duplicate trigger for slot.");if(!(b instanceof IQ))throw new QG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.u.set(b.triggerId,new OR(a,b,c,d))};
g.k.Bg=function(a){this.u["delete"](a.triggerId)};
g.k.sg=function(){};
g.k.oj=function(){};
g.k.gi=function(){};
g.k.Ne=function(){};
g.k.Oe=function(){};
g.k.mj=function(){};
g.k.nj=function(){};
g.k.fi=function(){};
g.k.kj=function(){};
g.k.Yd=function(){};
g.k.qe=function(){};g.u(WR,g.B);WR.prototype.init=function(){};
WR.prototype.release=function(){};
WR.prototype.aa=function(){this.sd.get().removeListener(this);g.B.prototype.aa.call(this)};YR.prototype.fetch=function(a){var b=this,c=a.wA;return this.Bu.fetch(a.hG,{bo:void 0===a.bo?void 0:a.bo,Zc:c}).then(function(d){var e=null,f=null;if(g.R(b.za.get().J.T().experiments,"get_midroll_info_use_client_rpc"))f=d;else try{(e=JSON.parse(d.response))&&(f=e)}catch(h){d.response&&(d=d.response,d.startsWith("GIF89")||(h.params=d.substr(0,256),g.er(h)))}return hqa(f,c)})};g.u(ZR,g.B);g.k=ZR.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){$R(this,a,function(b,c){b.af(a,c)})};
g.k.VJ=function(a){$R(this,a,function(b){b.bw(a)})};
g.k.UJ=function(a){$R(this,a,function(b){b.Zv(a)})};
g.k.hM=function(a){$R(this,a,function(b){b.Nr(a)})};aS.prototype.addListener=function(a){this.listeners.push(a)};
aS.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};bS.prototype.executeCommand=function(a,b){JL(this.u(),a,b)};g.k=mqa.prototype;g.k.ng=function(){return this.slot};
g.k.Rg=function(){return this.layout};
g.k.init=function(){this.Da.get().addListener(this);this.xd.get().addListener(this);this.wa.get().addListener(this);this.B.forEach(function(c){c.init()});
var a=fO(this.layout.Ba,"metadata_type_layout_enter_ms"),b=fO(this.layout.Ba,"metadata_type_layout_exit_ms");a=pqa(this.xd.get(),a,b);null!==a&&Aqa(this.Gf.get(),a,b)};
g.k.release=function(){this.u=null;this.B.forEach(function(a){a.release()});
this.Da.get().removeListener(this);this.xd.get().removeListener(this);this.wa.get().removeListener(this)};
g.k.startRendering=function(){var a;if(this.u)$G("Failed to restart rendering",this.slot,this.layout);else{var b=null===(a=this.Da.get().u)||void 0===a?void 0:a.layoutId;oqa(this,b);this.callback.Yd(this.slot,this.layout);aO(this.Pa,"ad_placement_start")}};
g.k.Tl=function(a,b){var c,d;null===(d=null===(c=this.u)||void 0===c?void 0:c.Eh)||void 0===d?void 0:d.Tl(b);this.u=null;null!==this.driftRecoveryMs&&(cS(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(qqa(this)-fO(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*xG(this.wa.get().J)).toString()}),this.driftRecoveryMs=null);this.callback.qe(this.slot,this.layout,b);if("normal"!==b)var e=!1;else{e=WP(this.wa.get(),2,!0);var f=
fO(this.layout.Ba,"metadata_type_layout_exit_ms")/1E3;e=1>=Math.abs(e-f)}e&&aO(this.Pa,"ad_placement_end")};
g.k.aE=function(a){a=a.layoutId;var b,c;this.u&&(null===(b=this.u.Eh)||void 0===b?void 0:b.layout.layoutId)!==a&&(null===(c=this.u.Eh)||void 0===c?void 0:c.Tl("normal"),oqa(this,a))};
g.k.SD=function(){};
g.k.GD=function(a){var b=fO(this.layout.Ba,"metadata_type_layout_enter_ms"),c=fO(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;b<=a&&a<c&&Aqa(this.Gf.get(),a,c)};
g.k.pp=function(){var a=WP(this.wa.get(),2,!0);if(this.u){var b=fO(this.layout.Ba,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=qqa(this),e=xG(this.wa.get().J),f=Math.min(a+e,d/1E3);f<=a?cS(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(cS(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.wa.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.xp=function(){};
g.k.Vo=function(){};
g.k.lj=function(){};
g.k.np=function(){};g.k=rqa.prototype;
g.k.init=function(){fO(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;var a=fO(this.layout.Ba,"metadata_type_video_length_seconds"),b=fO(this.layout.Ba,"metadata_type_player_vars"),c=fO(this.layout.Ba,"metadata_type_layout_enter_ms"),d=fO(this.layout.Ba,"metadata_type_layout_exit_ms"),e=1E3*a;if(d-c){var f=this.Gf.get();if(b=nza(f.J.app,b,e,c,d)){f=this.Ac.get();var h=this.slot.slotId,l=this.layout.layoutId;b?(f.u.has(b)&&$G("Unexpected remap of timeline playback"),f.u.set(b,
{slotId:h,layoutId:l})):$G("Invalid timeline playback ID");c+e>d&&(c=d-c,d=this.Gf.get(),oza(d.J.app,b,c))}else $G("Unexpected failure to add to playback timeline",this.slot,this.layout,Object.assign(Object.assign({},eS(this.layout)),{compositeLayout:tqa(fO(this.slot.Ba,"metadata_type_fulfilled_layout"))}))}else $G("Expected non-zero layout duration",this.slot,this.layout,Object.assign(Object.assign({},eS(this.layout)),{compositeLayout:tqa(fO(this.slot.Ba,"metadata_type_fulfilled_layout"))}));this.wa.get().addListener(this);
Ipa(this.tb.get(),this.layout.layoutId,a,this);MP(this.callback,this.slot,this.layout)};
g.k.release=function(){this.wa.get().removeListener(this);var a=this.tb.get(),b=this.layout.layoutId;a.u.has(b)?(a.u["delete"](b),delete JH().u[b]):$G("Unexpected unregistration of layout in LidarApi")};
g.k.startRendering=function(){if(this.u)$G("Expected the layout not to be entered before start rendering",this.slot,this.layout);else{this.u={Fw:null,rF:!1};var a=fO(this.layout.Ba,"metadata_type_sodar_extension_data");if(a)try{this.Sl.get(),a.siub&&a.bgub&&a.scs&&a.bgp&&Te(a.siub,a.scs,a.bgub,a.bgp)}catch(b){$G("Unexpected error when loading Sodar",this.slot,this.layout,{error:b})}PP(this.callback,this.slot,this.layout)}};
g.k.Tl=function(a){this.u?(this.u=null,pK(this.callback,this.slot,this.layout,a)):$G("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.pp=function(a){if(this.u){if(this.Pa.u.has("impression")){var b=mR(this.wa.get());sqa(this,b,a,this.u.Fw)}this.u.Fw=a}};
g.k.xp=function(a){if(this.u){this.u.rF||(this.u.rF=!0,a=new g.nI(a.state,new g.LK));var b=WP(this.wa.get(),2,!1),c=a;!c.mk.Cb()&&c.state.Cb()&&dS(b,0,null)&&aO(this.Pa,"impression");if(this.Pa.u.has("impression")&&(g.pI(a,4)&&!g.pI(a,2)&&$N(this.Pa,"pause"),0>oI(a,4)&&!(0>oI(a,2))&&$N(this.Pa,"resume"),g.pI(a,16)&&.5<=WP(this.wa.get(),2,!1)&&$N(this.Pa,"seek"),g.pI(a,2))){c=fO(this.layout.Ba,"metadata_type_video_length_seconds");var d=1>=Math.abs(c-b);sqa(this,a.state,d?c:b,this.u.Fw);d&&aO(this.Pa,
"complete")}}};
g.k.Vo=function(a){this.Pa.u.has("impression")&&$N(this.Pa,a?"fullscreen":"end_fullscreen")};
g.k.lj=function(){};
g.k.np=function(){};
g.k.oE=function(){};
g.k.iF=function(){this.Pa.u.has("impression")&&$N(this.Pa,"clickthrough")};fS.prototype.u=function(a,b,c,d){a:{var e=fO(d.Ba,"metadata_type_sub_layouts"),f=fO(d.Ba,"metadata_type_ad_placement_config");if(zR(d,{Ue:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Xh:["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=fO(l.Ba,"metadata_type_sub_layout_index");if(!zR(l,{Ue:["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"],Xh:["layout_type_media"]})||void 0===m){a=null;break a}m=new UN(l.be,this.Ga,f,l.layoutId,m);h.push(new rqa(b,c,l,this.Gf,m,this.wa,this.Ac,this.tb,this.Sl))}b=new UN(d.be,this.Ga,f,d.layoutId);a=new mqa(a,c,d,this.Da,this.Gf,this.xd,this.wa,b,this.Ga,h)}else a=null}if(a)return a;throw new FP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+oP(d.Ba)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.u(gS,g.B);g.k=gS.prototype;g.k.SD=function(a){this.u&&uqa(this,this.u,a)};
g.k.GD=function(){};
g.k.ai=function(a){this.u&&this.u.contentCpn!==a&&($G("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn}),this.u=null)};
g.k.yl=function(a){this.u&&this.u.contentCpn!==a&&$G("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.u.contentCpn});this.u=null};
g.k.aa=function(){g.B.prototype.aa.call(this);this.u=null};g.u(hS,g.B);
hS.prototype.yg=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new QG("Tried to re-register the trigger.");a=new OR(a,b,c,d);if(a.trigger instanceof NQ)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof FQ)this.C.set(a.trigger.triggerId,a);else throw new QG("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.u&&QP(this.D(),[a])};
hS.prototype.Bg=function(a){this.B["delete"](a.triggerId);this.C["delete"](a.triggerId)};
hS.prototype.aE=function(a){a=a.slotId;if(this.u!==a){var b=[];null!=this.u&&b.push.apply(b,g.la(vqa(this.C,this.u)));null!=a&&b.push.apply(b,g.la(vqa(this.B,a)));this.u=a;b.length&&QP(this.D(),b)}};g.u(iS,g.B);g.k=iS.prototype;g.k.ai=function(){this.D=new vK(this,jR(this.za.get()));this.C=new wK;wqa(this)};
g.k.yl=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.TD=function(a){this.u.push(a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.SD(a)};
g.k.HD=function(a){g.Fb(this.C.u,1E3*a);for(var b=g.q(this.listeners),c=b.next();!c.done;c=b.next())c.value.GD(a)};
g.k.mx=function(a){var b=NG(this.Da.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;if(b){this.Ga.get();var f={cuepointTrigger:{event:xqa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}};g.Fq("adsClientStateChange",f)}this.B.add(e);this.D.reduce(e)}};
g.k.aa=function(){this.J.getVideoData(1).unsubscribe("cuepointupdated",this.mx,this);this.listeners.length=0;this.B.clear();this.u.length=0;g.B.prototype.aa.call(this)};jS.prototype.addListener=function(a){this.listeners.add(a)};
jS.prototype.removeListener=function(a){this.listeners["delete"](a)};g.u(kS,CR);g.k=kS.prototype;g.k.init=function(){CR.prototype.init.call(this);DR(this.Pa,this.ng(),this.Rg(),this.callback,"metadata_type_image_companion_ad_renderer",function(a,b,c,d){return new rM(a,b,c,d)},this.xj)};
g.k.af=function(a){FR(this.Qn,a,this.fd.get().u,this.Ga.get(),this.Ng,this.Ck,this.ng(),this.Rg())};
g.k.Yd=function(a,b){b.layoutId===this.layout.layoutId?aO(this.Pa,"impression"):ER(this.Ck,b)&&(null===this.Ng?this.Ng=rR(this.Ga.get()):$G("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.qe=function(){};
g.k.sg=function(){};
g.k.oj=function(){};
g.k.gi=function(){};
g.k.Ne=function(){};
g.k.Oe=function(){};
g.k.mj=function(){};
g.k.nj=function(){};
g.k.fi=function(){};
g.k.kj=function(){};
g.k.kh=function(){};
g.k.aa=function(){this.dg().B["delete"](this);CR.prototype.aa.call(this)};g.u(lS,CR);g.k=lS.prototype;g.k.init=function(){CR.prototype.init.call(this);DR(this.Pa,this.ng(),this.Rg(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(a,b,c,d){return new jJ(a,b,c,d)},this.xj)};
g.k.af=function(a){FR(this.Qn,a,this.fd.get().u,this.Ga.get(),this.Ng,this.Ck,this.ng(),this.Rg())};
g.k.Yd=function(a,b){b.layoutId===this.layout.layoutId?aO(this.Pa,"impression"):ER(this.Ck,b)&&(null===this.Ng?this.Ng=rR(this.Ga.get()):$G("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.qe=function(){};
g.k.sg=function(){};
g.k.oj=function(){};
g.k.gi=function(){};
g.k.Ne=function(){};
g.k.Oe=function(){};
g.k.mj=function(){};
g.k.nj=function(){};
g.k.fi=function(){};
g.k.kj=function(){};
g.k.kh=function(){};
g.k.aa=function(){this.dg().B["delete"](this);CR.prototype.aa.call(this)};Dqa.prototype.u=function(a,b,c,d){if(zR(d,Xpa()))return new GR(a,c,d,this.Hb,this.Ga,this.dg,this.tb,this.fd);if(zR(d,Bqa()))return new kS(a,c,d,this.Hb,this.Ga,this.dg,this.tb,this.fd);if(zR(d,Cqa()))return new lS(a,c,d,this.Hb,this.Ga,this.dg,this.tb,this.fd);throw new FP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+oP(d.Ba)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.u(mS,CR);g.k=mS.prototype;g.k.pp=function(){};
g.k.xp=function(){};
g.k.Vo=function(){};
g.k.lj=function(a){a&&qS(this.u,this.layout)};
g.k.np=function(a){if(kR(this.za.get())){var b=hO(this.layout);if(this.B=eO(a,Opa(this.wa.get())))b.onErrorCommand&&this.fg.get().executeCommand(b.onErrorCommand,this.layout.layoutId),qS(this.u,this.layout)}else cO(a)&&qS(this.u,this.layout)};
g.k.Br=function(){return this.Rg().layoutId};
g.k.SA=function(){return this.B};
g.k.af=function(a){"in_video_overlay_close_button"===a&&qS(this.u,this.layout)};
g.k.Nr=function(a){"invideo-overlay"===a&&qS(this.u,this.layout)};
g.k.startRendering=function(a){CR.prototype.startRendering.call(this,a);this.callback.Yd(this.slot,a)};
g.k.init=function(){CR.prototype.init.call(this);Jpa(this.Ga.get(),this);this.wa.get().addListener(this);this.xj.push(new UI(hO(this.layout),XN(this.Pa),{adsClientData:this.layout.Ke}))};
g.k.release=function(){CR.prototype.release.call(this);this.wa.get().removeListener(this);Kpa(this.Ga.get(),this)};g.u(nS,CR);g.k=nS.prototype;g.k.init=function(){CR.prototype.init.call(this);Jpa(this.Ga.get(),this);this.wa.get().addListener(this);this.xj.push(new UI(hO(this.layout),XN(this.Pa),{adsClientData:this.layout.Ke}))};
g.k.startRendering=function(a){CR.prototype.startRendering.call(this,a);this.callback.Yd(this.slot,a)};
g.k.af=function(a){"in_video_overlay_close_button"===a&&qS(this.u,this.layout)};
g.k.bw=function(a){if("invideo-overlay"===a){a=Gqa(this.C,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.Nr=function(a){"invideo-overlay"===a&&qS(this.u,this.layout)};
g.k.Zv=function(a){if("invideo-overlay"===a){a=Gqa(this.C,this.layout);a=g.q(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.pp=function(){};
g.k.xp=function(){};
g.k.Vo=function(){};
g.k.lj=function(a){a&&qS(this.u,this.layout)};
g.k.np=function(a){var b=hO(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer;if(kR(this.za.get())){if(this.B=eO(a,Opa(this.wa.get()),Fqa(c)))b.onErrorCommand&&this.fg.get().executeCommand(b.onErrorCommand,this.layout.layoutId),qS(this.u,this.layout)}else cO(a,Fqa(c))&&qS(this.u,this.layout)};
g.k.Br=function(){return this.Rg().layoutId};
g.k.SA=function(){return this.B};
g.k.release=function(){CR.prototype.release.call(this);this.wa.get().removeListener(this);Kpa(this.Ga.get(),this)};oS.prototype.u=function(a,b,c,d){if(b=IR(a,c,d,this.Hb,this.wa,this.Ga,this.fd))return b;b=["metadata_type_invideo_overlay_ad_renderer"];for(var e=g.q(VN()),f=e.next();!f.done;f=e.next())b.push(f.value);if(zR(d,{Ue:b,Xh:["layout_type_in_video_image_overlay"]}))return new nS(c,d,this.Ga,this.tb,this.Hb,a,this.B,this.C,this.wa,this.fg,this.za);if(zR(d,Eqa()))return new mS(c,d,this.Ga,this.tb,this.Hb,a,this.B,this.wa,this.fg,this.za);throw new FP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
oP(d.Ba)+" in WebDesktopMainAndEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.u(pS,g.B);pS.prototype.yg=function(a,b,c,d){if(this.u.has(b.triggerId))throw new QG("Tried to register duplicate trigger for slot.");if(!(b instanceof EQ))throw new QG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.u.set(b.triggerId,new OR(a,b,c,d))};
pS.prototype.Bg=function(a){this.u["delete"](a.triggerId)};g.u(rS,g.B);g.k=rS.prototype;g.k.yg=function(a,b,c,d){if(this.B.has(b.triggerId))throw new QG("Tried to register duplicate trigger for slot.");if(!(b instanceof nQ))throw new QG("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.B.set(b.triggerId,new OR(a,b,c,d));a=this.u.has(b.layoutId)?this.u.get(b.layoutId):new Set;a.add(b);this.u.set(b.layoutId,a)};
g.k.Bg=function(a){this.B["delete"](a.triggerId);if(!(a instanceof nQ))throw new QG("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.C.get(a.triggerId);b&&(b.dispose(),this.C["delete"](a.triggerId));if(b=this.u.get(a.layoutId))b["delete"](a),0===b.size&&this.u["delete"](a.layoutId)};
g.k.sg=function(){};
g.k.oj=function(){};
g.k.gi=function(){};
g.k.Ne=function(){};
g.k.Oe=function(){};
g.k.mj=function(){};
g.k.nj=function(){};
g.k.fi=function(){};
g.k.kj=function(){};
g.k.kh=function(){};
g.k.Yd=function(a,b){var c=this;if(this.u.has(b.layoutId)){var d=this.u.get(b.layoutId),e={};d=g.q(d);for(var f=d.next();!f.done;e={Mn:e.Mn},f=d.next())e.Mn=f.value,f=new g.H(function(h){return function(){var l=c.B.get(h.Mn.triggerId);QP(c.D(),[l])}}(e),e.Mn.durationMs),f.start(),this.C.set(e.Mn.triggerId,f)}};
g.k.qe=function(){};g.u(sS,g.B);sS.prototype.init=function(){};
sS.prototype.release=function(){};
sS.prototype.aa=function(){this.Yh.get().removeListener(this);g.B.prototype.aa.call(this)};g.u(Hqa,g.B);g.u(Iqa,g.B);g.u(Jqa,g.B);g.u(Kqa,g.B);g.u(uS,HR);uS.prototype.startRendering=function(a){HR.prototype.startRendering.call(this,a);fO(this.layout.Ba,"metadata_ad_video_is_listed")&&(a=fO(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.im.get().J.va("onAdMetadataAvailable",a))};Lqa.prototype.u=function(a,b,c,d){b=Ypa();b.Ue.push("metadata_type_ad_info_ad_metadata");if(zR(d,b))return new uS(a,c,d,this.Hb,this.wa,this.Ga,this.fd,this.im);throw new FP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+oP(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.u(Mqa,g.B);Nqa.prototype.u=function(a,b,c,d){if(a=IR(a,c,d,this.Hb,this.wa,this.Ga,this.fd))return a;throw new FP("Unsupported layout with type: "+d.layoutType+" and client metadata: "+oP(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.u(Oqa,g.B);g.u(Qqa,g.B);g.u(g.vS,g.P);g.k=g.vS.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Rd=function(){};
g.k.ph=function(){return!0};
g.k.aa=function(){this.loaded&&this.unload();g.P.prototype.aa.call(this)};
g.k.ib=function(){return{}};
g.k.getOptions=function(){return[]};g.u(wS,g.vS);g.k=wS.prototype;g.k.create=function(){this.load();this.created=!0};
g.k.load=function(){g.vS.prototype.load.call(this);this.player.getRootNode().classList.add("ad-created");var a=this.B.u.kf.Pf,b=this.F(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;f=Sqa(f,a,e);c=c&&c.clientPlaybackNonce||"";var h=1E3*this.player.getDuration(1);VL(a)?(this.u=new PL(this,this.player,this.D,b,this.B.u.kf),WL(this.u,f.Nk),dR(this.B.u.ij,c,h,f.hn,f.hn.concat(f.Nk),e,d),QL(this.u)):(dR(this.B.u.ij,c,h,f.hn,f.hn.concat(f.Nk),e,d),this.u=new PL(this,this.player,this.D,b,this.B.u.kf),WL(this.u,f.Nk))};
g.k.destroy=function(){var a=this.player.getVideoData(1);a=a&&a.clientPlaybackNonce||"";for(var b=g.q(this.B.u.ij.listeners),c=b.next();!c.done;c=b.next())c.value.yl(a);this.unload();this.created=!1};
g.k.unload=function(){g.vS.prototype.unload.call(this);this.player.getRootNode().classList.remove("ad-created");if(null!==this.u){var a=this.u;this.u=null;a.dispose()}null!=this.C&&(a=this.C,this.C=null,a.dispose());this.D.reset()};
g.k.ph=function(){return!1};
g.k.fy=function(){return null===this.u?!1:this.u.fy()};
g.k.di=function(a){null!==this.u&&this.u.di(a)};
g.k.getAdState=function(){return this.u?this.u.ka:-1};
g.k.getOptions=function(){return Object.values(nBa)};
g.k.Rd=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":var c=b;if(c.url){var d=BH(this.player);Object.assign(d,c.u);this.u&&!d.AD_CPN&&(d.AD_CPN=this.u.oa);c=g.on(c.url,d)}else c=null;return c;case "isExternalShelfAllowedFor":a:if(b.playerResponse){c=b.playerResponse.adPlacements||[];for(d=0;d<c.length;d++){var e=c[d];if(e.adPlacementRenderer&&e.adPlacementRenderer.renderer&&e.adPlacementRenderer.renderer.plaShelfRenderer){c=!1;break a}}c=!0}else c=!1;return c;default:return null}};var xS,yS,zS,AS,BS;Tqa.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.C,d=0;d<b&&16>this.B;)a[d++]^=c[this.B++];for(var e=b-(b-d)%16;d<e;)Uqa(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(Uqa(this),this.B=0;d<b;)a[d++]^=c[this.B++];return a};g.u(g.CS,g.B);g.k=g.CS.prototype;g.k.Ht=function(){};
g.k.Ul=ba(5);g.k.Ns=function(){return this.C};
g.k.Xm=function(a){var b="";a&&(Vqa(this,a),b=a.u);this.le()&&""==b||(b&&this.le()!=b&&this.Mt(b),Cza||a&&a.B||this.load(),this.K||(this.addEventListener("volumechange",this.mA),this.K=!0))};
g.k.Ms=function(){var a=this.La();a=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new dB(a);a=new gB(a);this.Xm(a.So);return a};
g.k.playVideo=function(){this.Th()&&this.seekTo(0);!this.le()&&this.C&&(g.N(Error("playVideo without src")),this.Mt(this.C.u),this.C.B||this.load());var a=this.play();!a&&Eza&&SX&&7<=QF&&g.lp(this,"playing",(0,g.z)(function(){g.Fo((0,g.z)(this.RA,this,this.getCurrentTime(),0),500)},this));
return a};
g.k.RA=function(a,b){this.ik()||this.getCurrentTime()>a||10<b||(this.play(),g.Fo((0,g.z)(this.RA,this,this.getCurrentTime(),b+1),500))};
g.k.seekTo=function(a){0<this.Vf()&&(Fza&&SX&&4>QF&&(a=Math.max(.1,a)),this.Lt(a))};
g.k.stopVideo=function(){this.le()&&(Dza&&jk&&0<this.getCurrentTime()&&this.seekTo(0),this.Et(),this.load(),Vqa(this,null))};
g.k.ib=function(){try{var a=this.Zm();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:ay(this.dl(),",",3),vbu:ay(this.Xe()),vpa:""+ +this.ik(),vsk:""+ +this.Xo(),ven:""+ +this.Th(),vpr:""+this.getPlaybackRate(),vrs:""+this.Vf(),vns:""+this.Er(),vec:""+this.eh(),vemsg:this.Ym(),vvol:""+this.getVolume(),vdom:""+ +this.pw(),vsrc:""+ +!!this.le(),vw:a.width,vh:a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.F.ra(a,b,!1,this);this.wv(a)};
g.k.removeEventListener=function(a,b){this.F.Bb(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.F.dispatchEvent(a)};
g.k.ov=function(){this.I=!1};
g.k.kv=function(){this.I=!0;this.un(!0)};
g.k.mA=function(){this.I&&!this.Dr()&&this.un(!0)};
g.k.aa=function(){this.K&&this.removeEventListener("volumechange",this.mA);g.B.prototype.aa.call(this)};
var Cza=!1,Dza=!0,Eza=!0,Fza=!0;g.u(HS,g.Ll);HS.prototype.preventDefault=function(){g.Ll.prototype.preventDefault.call(this);this.B&&this.B.preventDefault()};
HS.prototype.stopPropagation=function(){g.Ll.prototype.stopPropagation.call(this);this.B&&this.B.stopPropagation()};g.u(g.IS,g.CS);g.k=g.IS.prototype;g.k.hk=function(){return!0};
g.k.isView=function(){return!1};
g.k.Ht=function(){return!1};
g.k.La=function(){return this.u};
g.k.le=function(){return this.u.src};
g.k.Mt=function(a){var b=this.getPlaybackRate();this.u.src=a;this.setPlaybackRate(b)};
g.k.Et=function(){this.u.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.u.playbackRate?this.u.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!=a&&(this.u.playbackRate=a);return a};
g.k.al=function(){return this.u.loop};
g.k.setLoop=function(a){this.u.loop=a};
g.k.canPlayType=function(a,b){return this.u.canPlayType(a,b)};
g.k.ik=function(){return this.u.paused};
g.k.Xo=function(){return this.u.seeking};
g.k.Th=function(){return this.u.ended};
g.k.Dr=function(){return this.u.muted};
g.k.un=function(a){bB();this.u.muted=a};
g.k.dl=function(){return this.u.played||$x([],[])};
g.k.Xe=function(){try{var a=this.u.buffered}catch(b){}return a||$x([],[])};
g.k.zo=function(){return this.u.seekable||$x([],[])};
g.k.getStartDate=function(){return this.u.getStartDate?this.u.getStartDate():null};
g.k.getCurrentTime=function(){return this.u.currentTime};
g.k.Lt=function(a){this.u.currentTime=a};
g.k.getDuration=function(){return this.u.duration};
g.k.load=function(){var a=this.u.playbackRate;this.u.load&&this.u.load();this.u.playbackRate=a};
g.k.pause=function(){this.u.pause()};
g.k.play=function(){var a=this.u.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.Vf=function(){return this.u.readyState};
g.k.Er=function(){return this.u.networkState};
g.k.eh=function(){return this.u.error?this.u.error.code:null};
g.k.Ym=function(){return this.u.error?this.u.error.message:""};
g.k.getVideoPlaybackQuality=function(){var a={};if(this.u){if(this.u.getVideoPlaybackQuality)return this.u.getVideoPlaybackQuality();this.u.webkitDecodedFrameCount&&(a.totalVideoFrames=this.u.webkitDecodedFrameCount,a.droppedVideoFrames=this.u.webkitDroppedFrameCount)}return a};
g.k.zl=function(){return!!this.u.webkitCurrentPlaybackTargetIsWireless};
g.k.Ow=function(){return!!this.u.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){$A()?this.u!=window.document.pictureInPictureElement?this.u.requestPictureInPicture():window.document.exitPictureInPicture():aB()&&this.u.webkitSetPresentationMode("picture-in-picture"==this.u.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Pj=function(){var a=this.u;return new g.fe(a.offsetLeft,a.offsetTop)};
g.k.setPosition=function(a){return g.wg(this.u,a)};
g.k.Zm=function(){return g.Eg(this.u)};
g.k.setSize=function(a){return g.Dg(this.u,a)};
g.k.getVolume=function(){return this.u.volume};
g.k.setVolume=function(a){bB();this.u.volume=a};
g.k.wv=function(a){if(!this.B[a]){var b=(0,g.z)(this.FJ,this);this.u.addEventListener(a,b);this.B[a]=b}};
g.k.FJ=function(a){this.dispatchEvent(new HS(this,a.type,a))};
g.k.setAttribute=function(a,b){this.u.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.u.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.u.hasAttribute(a)};
g.k.Rn=ba(7);g.k.Zp=ba(9);g.k.Ul=ba(4);g.k.Zn=ba(11);g.k.no=function(){return Nr(this.u)};
g.k.Ao=function(a){return g.sg(this.u,a)};
g.k.pw=function(){return g.Me(document.body,this.u)};
g.k.aa=function(){for(var a in this.B)this.u.removeEventListener(a,this.B[a]);g.CS.prototype.aa.call(this)};g.u(g.JS,g.CS);g.k=g.JS.prototype;g.k.isView=function(){return!0};
g.k.Ht=function(){var a=this.u.getCurrentTime();if(a<this.B)try{var b=this.u.Xe(),c=dy(b,a);return!(this.B<c)}catch(d){}return!1};
g.k.dl=function(){return gy(this.u.dl(),this.B,this.D)};
g.k.Xe=function(){return gy(this.u.Xe(),this.B,this.D)};
g.k.zo=function(){return gy(this.u.zo(),this.B,this.D)};
g.k.getCurrentTime=function(){return this.u.getCurrentTime()-this.B};
g.k.Lt=function(a){this.u.Lt(a+this.B)};
g.k.getDuration=function(){return isFinite(this.D)&&!this.N?this.D-this.B:this.u.getDuration()-this.B};
g.k.play=function(){if(this.Ht()){this.u.getCurrentTime();try{this.u.Lt(this.B)}catch(a){}}return this.u.play()};
g.k.ib=function(){var a=g.CS.prototype.ib.call(this);a.view=this.B+"-"+this.D;return a};
g.k.addEventListener=function(a,b){this.u.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.u.removeEventListener(a,b)};
g.k.Ns=function(){return this.u.Ns()};
g.k.Xm=function(a){this.u.Xm(a)};
g.k.Ms=function(){return this.u.Ms()};
g.k.playVideo=function(){return this.u.playVideo()};
g.k.ov=function(){this.u.ov()};
g.k.kv=function(){this.u.kv()};
g.k.hk=function(){return this.u.hk()};
g.k.La=function(){return this.u.La()};
g.k.le=function(){return this.u.le()};
g.k.Mt=function(a){this.u.Mt(a)};
g.k.Et=function(){this.u.Et()};
g.k.getPlaybackRate=function(){return this.u.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.u.setPlaybackRate(a)};
g.k.al=function(){return this.u.al()};
g.k.setLoop=function(a){this.u.setLoop(a)};
g.k.canPlayType=function(a,b){return this.u.canPlayType(a,b)};
g.k.ik=function(){return this.u.ik()};
g.k.Xo=function(){return this.u.Xo()};
g.k.Th=function(){return this.u.Th()};
g.k.Dr=function(){return this.u.Dr()};
g.k.un=function(a){this.u.un(a)};
g.k.getStartDate=function(){return this.u.getStartDate()};
g.k.load=function(){this.u.load()};
g.k.pause=function(){this.u.pause()};
g.k.Vf=function(){return this.u.Vf()};
g.k.Er=function(){return this.u.Er()};
g.k.eh=function(){return this.u.eh()};
g.k.Ym=function(){return this.u.Ym()};
g.k.getVideoPlaybackQuality=function(){return this.u.getVideoPlaybackQuality()};
g.k.zl=function(){return this.u.zl()};
g.k.Ow=function(){return this.u.Ow()};
g.k.togglePictureInPicture=function(){this.u.togglePictureInPicture()};
g.k.Pj=function(){return this.u.Pj()};
g.k.setPosition=function(a){return this.u.setPosition(a)};
g.k.Zm=function(){return this.u.Zm()};
g.k.setSize=function(a){return this.u.setSize(a)};
g.k.getVolume=function(){return this.u.getVolume()};
g.k.setVolume=function(a){this.u.setVolume(a)};
g.k.setAttribute=function(a,b){this.u.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.u.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.u.hasAttribute(a)};
g.k.Rn=ba(6);g.k.Zp=ba(8);g.k.Ul=ba(3);g.k.Zn=ba(10);g.k.no=function(){return this.u.no()};
g.k.Ao=function(a){return this.u.Ao(a)};
g.k.pw=function(){return this.u.pw()};
g.k.stopVideo=function(){this.u.stopVideo()};
g.k.wv=function(a){this.u.wv(a)};Pa(KS);var l0=g.v.ytPlayerUtilsVideoTagPoolInstance||KS.getInstance();g.Ja("ytPlayerUtilsVideoTagPoolInstance",l0,void 0);g.k=KS.prototype;g.k.MA=function(a){if(!(this.u.length>=a)){a-=this.u.length;for(var b=0;b<a;b++)$qa(this)}};
g.k.xI=function(a,b){if(this.u.length)return this.u.pop();var c=$qa(this,a,b);a||g.rb(this.u,c);return c};
g.k.bQ=function(a){a&&g.nb(this.B,a)&&(a.mh(),mp(a),g.rb(this.B,a),g.rb(this.C,a))};
g.k.eJ=function(a){return this.u.length>=(a||1)};
g.k.rH=function(){for(var a=this.C.length-1;0<=a;a--)LS(this,this.C[a]);this.u.length==this.B.length&&4<=this.u.length||(4>this.B.length?this.MA(4):(this.u=[],g.Gb(this.B,function(b){LS(this,b)},this)))};
KS.prototype.fillPool=KS.prototype.MA;KS.prototype.getTag=KS.prototype.xI;KS.prototype.releaseTag=KS.prototype.bQ;KS.prototype.hasTags=KS.prototype.eJ;KS.prototype.activateTags=KS.prototype.rH;g.BT=db(function(){var a="";try{var b=g.Fe("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});MS.prototype.isFinished=function(){return this.u};
MS.prototype.start=function(){this.started=!0};
MS.prototype.reset=function(){this.u=this.started=!1};NS.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
NS.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
NS.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
NS.prototype.findIndex=function(a){return g.kb(this.keys,function(b){return g.Eb(a,b)})};OS.prototype.la=function(){return this.F};
OS.prototype.dispose=function(){this.F=!0;g.QS(this);this.B=null};var lr=new jr,RS=0;g.u(TS,g.P);g.u(US,TS);US.prototype.I=function(a,b){if(a&&b){var c=1*Number(Pd(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.u={}):(c>this.C&&(this.C=c,g.Wb(this.u)||(this.u={},this.D.stop(),this.B.stop())),this.u[b]=a,this.B.ub())}};
US.prototype.F=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next())b=b.value,this.V("rotated_need_key_info_ready",new Dx(jra(this.u[b],this.C,b),"fairplay",!0));this.u={}};var S1={},rra=(S1.DRM_TRACK_TYPE_AUDIO="AUDIO",S1.DRM_TRACK_TYPE_SD="SD",S1.DRM_TRACK_TYPE_HD="HD",S1.DRM_TRACK_TYPE_UHD1="UHD1",S1);g.u(nra,g.B);g.u(WS,g.P);g.k=WS.prototype;g.k.error=function(a,b,c,d){this.la()||this.V("licenseerror",a,b,c,d);b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.ba&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.k.aa=function(){g.P.prototype.aa.call(this)};
g.k.ib=function(){var a={requestedKeyIds:this.Y,cryptoPeriodIndex:this.cryptoPeriodIndex};this.D&&(a.keyStatuses=this.u);return a};
g.k.ie=function(){var a=this.I.join();if(XS(this)){var b=[],c;for(c in this.u)"usable"!==this.u[c].status&&b.push(this.u[c].type);a+="/UKS."+b}return a+="/"+this.cryptoPeriodIndex};
g.k.cd=function(){return this.url};
var T1={},Ira=(T1.widevine="DRM_SYSTEM_WIDEVINE",T1.fairplay="DRM_SYSTEM_FAIRPLAY",T1.playready="DRM_SYSTEM_PLAYREADY",T1);g.u(ZS,g.B);g.k=ZS.prototype;g.k.OJ=function(a){if(this.F){var b=a.messageType||"license-request";this.F(new Uint8Array(a.message),b)}};
g.k.PJ=function(){this.K&&this.K(this.u.keyStatuses)};
g.k.dE=function(a){this.F&&this.F(a.message,"license-request")};
g.k.cE=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.u}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a)}};
g.k.bE=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.u)return this.u.update(a).then(null,Do(function(c){Qra(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.N.u,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.u,a,this.initData,this.sessionId);return ur()};
g.k.aa=function(){this.u&&this.u.close();this.element=null;g.B.prototype.aa.call(this)};g.u($S,g.B);g.k=$S.prototype;g.k.createSession=function(a,b){var c=a.initData;if(this.u.keySystemAccess){b&&b("createsession");var d=this.B.createSession();JC(this.u)&&(c=Tra(c,this.u.Og));b&&b("genreq");c=d.generateRequest(a.contentType,c);var e=new ZS(null,null,null,d,null);c.then(function(){b&&b("genreqsuccess")},Do(function(f){Qra(e,"t.generateRequest",f)}));
return e}if(FC(this.u))return Vra(this,c);if(IC(this.u))return Ura(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.u.u,c):this.element.webkitGenerateKeyRequest(this.u.u,c);return this.D=new ZS(this.element,this.u,c,null,null)};
g.k.SJ=function(a){var b=bT(this,a);b&&b.dE(a)};
g.k.RJ=function(a){var b=bT(this,a);b&&b.cE(a)};
g.k.QJ=function(a){var b=bT(this,a);b&&b.bE(a)};
g.k.aa=function(){g.B.prototype.aa.call(this);delete this.element};g.u(cT,g.B);
cT.prototype.init=function(){return g.Ue(this,function b(){var c=this,d,e;return g.Aa(b,function(f){if(1==f.u)return g.F(c.u,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.u.src=c.C.D,document.body.appendChild(c.u),c.F.R(c.u,"encrypted",c.I),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.ra(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.B;
c.C.keySystemAccess=e;c.B=new $S(c.u,c.C);g.C(c,c.B);aT(c.B);f.u=0})})};
cT.prototype.I=function(a){if(!this.la()){var b=new Uint8Array(a.initData);a=new Dx(b,a.initDataType);var c=ira(b).replace("skd://","https://"),d={},e=this.B.createSession(a,function(){});
e&&(g.C(this,e),this.D.push(e),ura(e,function(f){Ora(f,e.u,c,d,"fairplay")},function(){},function(){},function(){}))}};
cT.prototype.aa=function(){this.D=[];this.u&&this.u.parentNode&&this.u.parentNode.removeChild(this.u);g.B.prototype.aa.call(this)};g.u(dT,TS);dT.prototype.F=function(a){var b=(0,g.O)(),c;if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c))for(var d=g.q(this.C.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.u,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.u.push({time:b+c,info:a});this.B.ub(c)};g.u(fT,g.P);g.k=fT.prototype;g.k.TJ=function(a){eT(this,"onecpt");a.initData&&Zra(this,new Uint8Array(a.initData),a.initDataType)};
g.k.UN=function(a){eT(this,"onndky");Zra(this,a.initData,a.contentType)};
g.k.Pz=function(a){this.D.push(a);hT(this)};
g.k.createSession=function(a){this.C.get(a.initData);this.Y=!0;var b=new WS(this.videoData,this.B,a,this.drmSessionId);this.C.set(a.initData,b);b.subscribe("ctmp",this.AD,this);b.subscribe("hdentitled",this.MD,this);b.subscribe("keystatuseschange",this.GC,this);b.subscribe("licenseerror",this.OD,this);b.subscribe("newlicense",this.WD,this);b.subscribe("newsession",this.YD,this);b.subscribe("sessionready",this.mE,this);b.subscribe("fairplay_next_need_key_info",this.JD,this);xra(b,this.I)};
g.k.WD=function(a){this.la()||(eT(this,"onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.V("heartbeatparams",a)))};
g.k.YD=function(){this.la()||(eT(this,"newlcssn"),this.D.shift(),this.Y=!1,hT(this))};
g.k.mE=function(){if(FC(this.u)&&(eT(this,"onsnrdy"),this.ya--,0===this.ya)){var a=this.X;a.element.msSetMediaKeys(a.C)}};
g.k.GC=function(a){this.la()||(!this.ka&&this.videoData.ca("html5_log_drm_metrics_on_key_statuses")&&(esa(this),this.ka=!0),eT(this,"onksch"),csa(this,Kra(a,this.ea)),this.V("keystatuseschange",a))};
g.k.MD=function(){this.la()||this.fa||!HC(this.u)||(eT(this,"onhdet"),this.oa=Zua,this.V("hdproberequired"),this.V("qualitychange"))};
g.k.AD=function(a,b){this.la()||this.V("ctmp",a,b)};
g.k.JD=function(a,b){this.la()||this.V("fairplay_next_need_key_info",a,b)};
g.k.OD=function(a,b,c,d){this.la()||(this.videoData.ca("html5_log_drm_metrics_on_error")&&esa(this),this.V("licenseerror",a,b,c,d))};
g.k.aa=function(){this.u.keySystemAccess&&this.element.setMediaKeys(null);this.element=null;this.D=[];for(var a=g.q(this.C.values),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.AD,this),b.unsubscribe("hdentitled",this.MD,this),b.unsubscribe("keystatuseschange",this.GC,this),b.unsubscribe("licenseerror",this.OD,this),b.unsubscribe("newlicense",this.WD,this),b.unsubscribe("newsession",this.YD,this),b.unsubscribe("sessionready",this.mE,this),b.unsubscribe("fairplay_next_need_key_info",
this.JD,this),b.dispose();a=this.C;a.keys=[];a.values=[];g.P.prototype.aa.call(this)};
g.k.ib=function(){for(var a={systemInfo:this.u.ib(),sessions:[]},b=g.q(this.C.values),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.ib());return a};
g.k.ie=function(){return 0>=this.C.values.length?"no session":this.C.values[0].ie()+(this.F?"/KR":"")};g.u(jT,g.P);
jT.prototype.handleError=function(a,b){var c=this;isa(this,a);if(!jsa(this,a)&&!msa(this,a,b))if(ksa(a)&&this.videoData.Ha&&this.videoData.Ha.B)kT(this,a.errorCode,a.details),nT(this,"highrepfallback","1",{iy:!0}),!this.videoData.ca("html5_hr_logging_killswitch")&&/^hr/.test(this.videoData.clientPlaybackNonce)&&btoa&&nT(this,"afmts",btoa(this.videoData.adaptiveFormats),{iy:!0}),sma(this.videoData),this.V("highrepfallback");else if(a.u){var d=this.u?this.u.K.F:null;if(ksa(a)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";
else if(!this.Na.I&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.V("playererror",a.errorCode,e,g.OA(a.details),f)}else d=/^pp/.test(this.videoData.clientPlaybackNonce),kT(this,a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(d="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.O)(),(new gD(d,"manifest",function(h){c.W=!0;nT(c,"pathprobe",h)},function(h){kT(c,h.errorCode,h.details)})).send())};
jT.prototype.aa=function(){this.B=this.u=null;g.P.prototype.aa.call(this)};g.u(pT,g.P);pT.prototype.setPlaybackRate=function(a){this.playbackRate=a};
pT.prototype.ca=function(a){return g.R(this.u.experiments,a)};g.u(qT,g.B);qT.prototype.Tb=function(a){Csa(this);this.playerState=a.state;0<=this.B&&g.pI(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
qT.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(oBa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
qT.prototype.send=function(){if(!(this.C||0>this.u)){Csa(this);var a=g.rT(this.provider)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.stateData;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.T(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.T(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.T(this.playerState,16)||g.T(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.T(this.playerState,1)&&
g.T(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.T(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.T(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.T(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=vF(this.provider.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=Dsa(this.provider);var e=0>this.B?a:this.B-this.u;a=this.provider.u.Ia+36E5<(0,g.O)();b={started:0<=this.B,stateAtSend:b,
joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.sF(this.provider.videoData),isGapless:this.provider.videoData.Wh};!a&&this.provider.ca("html5_health_to_gel")&&g.Fq("html5PlayerHealthEvent",b);this.provider.ca("html5_health_to_qoe")&&(b.muted=a,this.I(g.OA(b)));this.C=!0;
this.dispose()}};
qT.prototype.aa=function(){this.C||this.send();g.B.prototype.aa.call(this)};
var oBa=/\bnet\b/;g.u(vT,g.B);g.k=vT.prototype;g.k.SI=function(){var a=g.rT(this.provider);xT(this,a)};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.la()&&(a=0<=a?a:g.rT(this.provider),-1<["PL","B","S"].indexOf(this.yc)&&(!g.Wb(this.u)||a>=this.C+30)&&(g.uT(this,a,"vps",[this.yc]),this.C=a),!g.Wb(this.u)))if(7E3===this.sequenceNumber&&g.er(Error("Sent over 7000 pings")),7E3<=this.sequenceNumber)this.u={};else{yT(this,a);var b=a,c=this.provider.I(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.xa,h=e&&!this.Ma;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames);else(0<f||h)&&g.uT(this,b,"df",[f]);this.xa=d;this.Ma=e;!g.R(this.provider.u.experiments,"disable_webgl_reporting")&&0<this.I&&(g.uT(this,a,"glf",[this.I]),this.I=0);a={event:"streamingstats"};this.provider.videoData.Ka&&(a.fmt=pu(this.provider.videoData.Ka),(b=this.provider.videoData.Nc)&&pu(b)!==a.fmt&&(a.afmt=pu(b)));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.K&&(a.addocid=this.K);a.ei=this.provider.videoData.eventId;
a.el=HF(this.provider.videoData);a.docid=this.provider.videoData.videoId;a.content_v=IF(this.provider.videoData);a.ns=this.provider.u.X;a.fexp=this.provider.u.experiments.experimentIds.toString();a.cl=(337181759).toString();this.provider.videoData.adFormat&&(a.adformat=this.provider.videoData.adFormat);(b=vF(this.provider.videoData))&&(a.live=b);pF(this.provider.videoData)&&(a.drm=1);bq()&&this.provider.videoData.zh&&(a.ctt=this.provider.videoData.zh,a.cttype=this.provider.videoData.cg,this.provider.videoData.mdxEnvironment&&
(a.mdx_environment=this.provider.videoData.mdxEnvironment));a.seq=this.sequenceNumber++;g.bc(a,this.provider.u.deviceParams);b=g.Ld("//"+this.provider.u.xi+"/api/stats/qoe",a);a=c="";d=g.q(Object.keys(this.u));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.u[e]?g.er(new Cq("Stats report key has invalid value",e)):(e="&"+e+"="+this.u[e].join(","),100<e.length?a+=e:c+=e);b+=c;a=a.replace(/ /g,"%20");d=this.provider.videoData.Ye();c=g.R(this.provider.u.experiments,"qoe_with_networkless");e=
this.provider.ca("web_player_vss_pageid_header")?this.provider.u.pageId:void 0;(d=sT(b,e,this.provider.u.sendVisitorIdHeader?this.provider.videoData.visitorData:void 0,d))?(d.method="POST",d.postBody=a,tT(b,d,{token:this.provider.videoData.zh,sy:this.provider.videoData.cg,mdxEnvironment:this.provider.videoData.mdxEnvironment},void 0,c)):c?br(b):Ws(b,void 0,a);this.u={}}};
g.k.tF=function(){if(this.provider.videoData.Rc){var a=this.provider.videoData.Rc;AT(this,"drm-"+a.flavor);AT(this,"eme-"+(a.keySystemAccess?"final":FC(a)?"ms":JC(a)?"ytfp":IC(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.rT(this.provider);Isa(this,c,a,b);yT(this,c);zT(this)};
g.k.Tb=function(a){var b=a.state,c=g.rT(this.provider);a=this.getPlayerState(a.state);if(a!==this.yc){if(!(c<this.C)){if("PL"===this.yc)this.playTimeSecs+=c-this.C;else if("B"===this.yc&&this.W){this.W=!1;var d=g.Q(this.provider.u.experiments,"html5_disable_last_state_change")?this.C:this.ha;this.rebufferTimeSecs+=c-d;!this.fa&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.K(),this.u.qoealert=["1"],this.fa=!0)}"B"!==a||"PL"!==this.yc&&"PB"!==this.yc||(this.W=!0);this.C=c}"B"===
a&&"PL"===this.yc||this.provider.videoData.rj?yT(this,c):xT(this,c);"PL"===a&&this.Za.ub();g.uT(this,c,"vps",[a]);this.yc=a;this.C=this.ha=c;this.P=!0}a=b.stateData;g.T(b,128)&&a&&Isa(this,c,a.errorCode,a.YE);(g.T(b,2)||g.T(b,128))&&this.reportStats(c);b.Cb()&&!this.D&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.D=!0);zT(this)};
g.k.getPlayerState=function(a){if(g.T(a,128))return"ER";if(g.T(a,512))return"SU";if(g.T(a,16)||g.T(a,32))return"S";var b=pBa[TK(a)];g.VB(this.provider.u)&&"B"===b&&3===this.provider.getVisibilityState()&&(b="SU");"B"===b&&g.T(a,4)&&(b="PB");return b};
g.k.aa=function(){g.B.prototype.aa.call(this);window.clearInterval(this.oa)};
var Ksa=g.Oa,U1={},pBa=(U1[5]="N",U1[-1]="N",U1[3]="B",U1[0]="EN",U1[2]="PA",U1[1]="PL",U1);Msa.prototype.update=function(){if(this.K){var a=this.provider.B()||0,b=g.rT(this.provider);if(a!==this.u||Rsa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||Rsa(this,a,b))){var d=this.provider.ke();c=d.volume;var e=c!==this.P;d=d.muted;d!==this.N?(this.N=d,c=!0):(!e||0<=this.D||(this.P=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(DT(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};ET.prototype.send=function(a){if(!this.ya){var b=HT(this);b=g.Ld(this.uri,b);if(this.ba)this.P&&(a=FT(this)||{},a.method="POST",a.Xb={atr:this.P},this.N?br(b,a):g.oq(b,a));else{var c=FT(this,a);tT(b,c,{token:this.I,sy:this.X,mdxEnvironment:this.mdxEnvironment},a,this.N)}this.ya=!0}};
ET.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var V1={},Tsa=(V1.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,V1.LIVING_ROOM_APP_MODE_MAIN=1,V1.LIVING_ROOM_APP_MODE_KIDS=2,V1.LIVING_ROOM_APP_MODE_MUSIC=3,V1.LIVING_ROOM_APP_MODE_UNPLUGGED=4,V1.LIVING_ROOM_APP_MODE_GAMING=5,V1);var Vsa={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"},Wsa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Usa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"};var Zsa=new Set("embed_config endscreen_ad_tracking home_group_info ic_track player_request watch_next_request".split(" "));g.u(LT,g.B);LT.prototype.Jd=function(){this.u.update();if(this.provider.videoData.Bc()&&this.provider.videoData.Lg&&this.B&&!this.P&&Nsa(this.u)>=this.provider.videoData.Lg){if(this.B&&this.provider.videoData.Lg){var a=NT(this,"delayplay");a.jb=!0;a.send();this.P=!0}eta(this)}};
LT.prototype.Tb=function(a){this.la()||(g.T(a.state,2)?(this.currentPlayerState="paused",g.pI(a,2)&&this.B&&cta(this).send()):g.T(a.state,8)?(this.currentPlayerState="playing",this.B&&isNaN(this.D)&&MT(this,!1)):this.currentPlayerState="paused",this.C&&g.T(a.state,128)&&(PT(this,"error-100"),g.Io(this.C)))};
LT.prototype.aa=function(){g.B.prototype.aa.call(this);g.Io(this.D);this.D=NaN;Psa(this.u);g.Io(this.C)};
LT.prototype.ib=function(){return HT(NT(this,"playback"))};g.u(QT,g.B);QT.prototype.Tb=function(a){if(g.pI(a,1024)||g.pI(a,2048)||g.pI(a,512)||g.pI(a,4)){if(this.B){var b=this.B;0<=b.B||(b.u=-1,b.delay.stop())}this.qoe&&(b=this.qoe,b.D||(b.B=-1))}this.u&&this.u.Tb(a);this.qoe&&this.qoe.Tb(a);this.B&&this.B.Tb(a)};
QT.prototype.Jd=function(){this.u&&this.u.Jd()};
QT.prototype.onError=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)};
QT.prototype.ib=function(){return this.u?this.u.ib():{}};ST.prototype.reset=function(){tA(this.timerName)};
ST.prototype.tick=function(a,b){wA(a,b,this.timerName)};
ST.prototype.info=function(a,b){vA(a,b,this.timerName)};nta.prototype.isEmpty=function(){return this.endTime===this.startTime};ota.prototype.ca=function(a){return g.R(this.u.experiments,a)};
var pta={other:1,none:2,wifi:3,cellular:7};rta.prototype.sc=function(){return this.Ha.sc()};g.u(vta,g.P);g.u(bU,g.B);bU.prototype.Tb=function(a){this.playerState=a.state};
bU.prototype.B=function(){var a=this;if(this.D&&!this.playerState.isError()){var b=this.D,c=b.getCurrentTime(),d=8===this.playerState.state&&c>this.u,e=Fna(this.playerState),f=this.visibility.isBackground()||this.playerState.isSuspended();cU(this,this.ea,e&&!f,d,"qoe.slowseek",function(){},"timeout");
e=e&&isFinite(this.u)&&0<this.u&&Wqa(b,this.u);var h=!c||10<Math.abs(c-this.u);cU(this,this.ha,e&&h&&!f,d,"qoe.slowseek",function(){b.seekTo(a.u)},"set_cmt");
h=e&&cy(b.Xe(),this.u);var l=!this.C||!this.C.u.ba;e=function(){b.seekTo(a.u+.001)};
cU(this,this.ba,h&&l&&!f,d,"qoe.slowseek",e,"jiggle_cmt");l=function(){return a.V("newmediaelementrequired")};
cU(this,this.fa,h&&!f,d,"qoe.slowseek",l,"new_elem");d=DD(this.playerState);h=g.SK(this.playerState);var m=d&&h&&cy(b.Xe(),c+5);cU(this,this.P,m&&!f,d&&!h,"qoe.longrebuffer",e,"jiggle_cmt");cU(this,this.W,m&&!f,d&&!h,"qoe.longrebuffer",l,"new_elem_nnr");if(this.C){var n=this.C.getCurrentTime();e=b.dl();e=gga(e,n);c=!this.C.P.C&&c===e;cU(this,this.ka,d&&h&&c&&!f,d&&!h&&!c,"qoe.longrebuffer",function(){b.seekTo(n)},"seek_to_loader")}cU(this,this.X,d&&h&&!f,d&&!h,"qoe.longrebuffer",function(){},"timeout");
f=this.playerState.isSuspended();f=this.Y()&&!f;cU(this,this.N,f,!f,"qoe.start15s",function(){return a.V("releaseadsprerolllock")},"ads_preroll_timeout");
this.I.start()}};
bU.prototype.ib=function(a){a=a.ib();this.u&&(a.stt=this.u.toFixed(3));this.C&&Object.assign(a,this.C.ib());this.D&&Object.assign(a,this.D.ib());return a};
$T.prototype.reset=function(){this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
$T.prototype.ib=function(){var a={},b=(0,g.O)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.u&&(a.wssd=(b-this.u).toFixed());return a};g.u(eU,g.P);g.k=eU.prototype;g.k.oh=function(a){fU(this);this.videoData=a;this.W=this.B=null;this.K=this.Ma=this.D=0;this.oa=!0;this.P.dispose();a=this.P=new bU(this.X,(0,g.z)(this.V,this),this.visibility,this.Za);var b=this.u;(a.D=b)&&a.I.ub();this.P.C=this.F};
g.k.Tb=function(a){this.P.Tb(a);this.ca("html5_exponential_memory_for_sticky")&&(a.state.Cb()?this.fa.ub():this.fa.stop());var b;if(b=this.u)b=8===a.mk.state&&DD(a.state)&&g.SK(a.state)&&this.policy.D;if(b){a=this.u.getCurrentTime();b=this.u.Xe();var c=this.ca("manifestless_post_live_ufph")||this.ca("manifestless_post_live")?by(b,Math.max(a-3.5,0)):by(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.Ra-c)||(this.V("ctmp","seekover","b."+ay(b,
"_")+";cmt."+a),this.Ra=c,this.seekTo(c,{Go:!0})))}};
g.k.getCurrentTime=function(){return!isNaN(this.C)&&isFinite(this.C)?this.C:this.u&&Ita(this)?this.u.getCurrentTime()+this.D:this.K||0};
g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return ZT(this.B,a)};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b,d=void 0===c.UF?!1:c.UF,e=void 0===c.VF?0:c.VF,f=void 0===c.Go?!1:c.Go;c=void 0===c.ty?0:c.ty;var h=a,l=!isFinite(h)||(this.B?ZT(this.B,h):h>=this.od())||!g.BF(this.videoData);l||this.V("ctmp","seeknotallowed",h+";"+this.od());if(!l)return this.I&&(this.I=null,Gta(this)),Dm(this.getCurrentTime());if(a===this.C&&this.ba)return this.N;this.ba&&fU(this);this.N||(this.N=new Yv);a&&!isFinite(a)&&hU(this,!1);h=a;(mU(this)&&!(this.u&&0<this.u.Vf()&&0<DS(this.u))||
hF(this.videoData)&&this.qc()===this.od(!1)?0:isFinite(h)||!hF(this.videoData))&&(a=Hta(this,a,f));a&&!isFinite(a)&&hU(this,!1);this.K=a;this.Ia=c;this.C=a;this.B&&(f=this.B,c=a,xta(f,c,!1),yta(f,c));this.V("seekto",a,!d);this.N&&(d?e&&this.ya.start(e):(this.ba=!0,Cta(this)));return this.N};
g.k.od=function(a){if(!this.videoData.isLivePlayback)return this.videoData.od();if(hF(this.videoData)&&this.videoData.Mo&&this.videoData.ma)return this.videoData.ma.od();if(this.sc()){if(!a&&this.B)return XT(this.B);a=this.videoData.od();this.policy.B&&this.u&&(a=Math.max(a,Yqa(this.u)));return a+this.D}this.u?ck()?(a=this.u.getStartDate().getTime(),a=isNaN(a)?0:Math.max((g.A()-a)/1E3-30,0)):a=DS(this.u)+this.D||this.D:a=this.D;return a};
g.k.qc=function(){return this.videoData?this.videoData.qc()+this.D:this.D};
g.k.aa=function(){iU(this,null);this.P.dispose();g.P.prototype.aa.call(this)};
g.k.sc=function(){return!!this.videoData.Ha&&this.videoData.Ha.sc()};
g.k.oQ=function(a,b){b=void 0===b?!1:b;this.seekTo(a+this.fc(),{Go:b})};
g.k.ib=function(){var a={};this.F&&Object.assign(a,this.F.ib());this.u&&Object.assign(a,this.u.ib());return a};
g.k.vn=function(a){this.D=a};
g.k.OK=function(a){this.Ma=a};
g.k.getStreamTimeOffset=function(){return hF(this.videoData)?this.Ma:this.videoData.ma?this.videoData.ma.getStreamTimeOffset():0};
g.k.fc=function(){return this.D};
g.k.je=function(a){return this.videoData.ma.je(a-this.D)};
g.k.zN=function(a){this.W&&(this.W.u=a.audio.index)};
g.k.ca=function(a){return this.X&&g.R(this.X.experiments,a)};g.u(nU,g.P);g.k=nU.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:Kta()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.tg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.tg())};
g.k.setImmersivePreview=function(a){this.C!==a&&(this.C=a,this.tg())};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return Kta()};
g.k.tg=function(){this.V("visibilitychange");var a=this.getVisibilityState(this.B,this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.C);a!==this.F&&this.V("visibilitystatechange");this.F=a};
g.k.aa=function(){Nta(this.D);g.P.prototype.aa.call(this)};g.u(oU,g.B);oU.prototype.start=function(){this.B.start()};
oU.prototype.stop=function(){this.B.stop()};
oU.prototype.clear=function(){for(var a=g.q(Object.keys(this.u)),b=a.next();!b.done;b=a.next())this.u[b.value].clear()};
oU.prototype.D=function(){for(var a=g.q(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b].update(this.C[b]());this.B.start()};
pU.prototype.update=function(a){this.B?(this.buffer.add(a-this.u||0),this.u=a):this.buffer.add(a)};
pU.prototype.clear=function(){this.buffer.clear();this.u=0};var qBa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},rBa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},sBa=/^(\d*)_((\d*)_?(\d*))$/;var W1={},Vta=(W1.WEB_UNPLUGGED="^unplugged/",W1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",W1.WEB_UNPLUGGED_OPS="^unplugged/",W1.WEB_UNPLUGGED_PUBLIC="^unplugged/",W1.WEB_CREATOR="^creator/",W1.WEB_KIDS="^kids/",W1.WEB_EXPERIMENTS="^experiments/",W1.WEB_MUSIC="^music/",W1.WEB_REMIX="^music/",W1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",W1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",W1);g.u(yU,xU);yU.prototype.B=function(){return LAa};
yU.prototype.C=function(a){return a.subscribeEndpoint};
yU.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};g.u(zU,xU);zU.prototype.B=function(){return MAa};
zU.prototype.C=function(a){return a.unsubscribeEndpoint};
zU.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};g.u(AU,xU);AU.prototype.B=function(){return JAa};
AU.prototype.C=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
AU.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.u(BU,xU);BU.prototype.B=function(){return KAa};
BU.prototype.C=function(a){return a.playlistEditEndpoint};
BU.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};CU.prototype.fetch=function(a,b){if(Yta(a,b)){var c=Xta(b)?{responseContext:{},contents:{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{sectionListRenderer:{contents:[{itemSectionRenderer:{contents:[{shelfRenderer:{title:{runs:[{text:Zea()}]},icon:{iconType:"OFFLINE"},content:{gridRenderer:{items:[]}}}}]}}]}}}}]}}}:void 0;return Dm(c)}c=new Request(a,b);return Dm(fetch(c).then(function(d){return $ta(d)})["catch"](function(d){g.er(d)}))};var DU;FU.prototype.reset=function(){cua(this);this.update(this.C)};
FU.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.I.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,bua(this,this.I,0));for(;b+64<=c;b+=64)bua(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.B),this.B+=a.length)};
var aua=[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];sV.prototype.encrypt=function(a){return g.Ue(this,function c(){var d=this,e;return g.Aa(c,function(f){if(1==f.u)return g.ra(f,fua(d.u.u,a,d.iv),2);e=f.B;return f["return"](e)})})};
sV.prototype.decrypt=function(a,b){return g.Ue(this,function d(){var e=this,f;return g.Aa(d,function(h){if(1==h.u)return g.ra(h,fua(e.u.u,a,b),2);f=h.B;return h["return"](f)})})};var X1={},jua=(X1.f="video",X1["1"]="video",X1.h="video",X1.H="video",X1["9"]="video",X1["("]="video",X1["9h"]="video",X1["(h"]="video",X1.o="audio",X1.O="audio",X1.a="audio",X1.ah="audio",X1.A="audio",X1.m="audio",X1.M="audio",X1.mac3="audio",X1.MAC3="audio",X1.meac3="audio",X1.MEAC3="audio",X1.so="audio",X1.sa="audio",X1["8"]="unknown",X1["*"]="unknown",X1.w="unknown",X1["3"]="unknown",X1["6"]="unknown",X1[""]="unknown",X1);g.u(zV,g.P);
zV.prototype.feed=function(a,b){b.getLength();g.Ua(this);switch(a){case 10:var c=wV(new tV(b),1);switch(c){case 5:this.V("FIRST_BYTE_RECEIVED");break;case 0:this.iv=(new iua(b)).u.iv;g.Ua(this);break;case 16:var d=new nua(b),e=d.B,f=d.C;this.V("STREAM_STARTED",{id:f,startTimeMs:e.startTimeMs,endTimeMs:e.endTimeMs,numBytes:d.u,isAudio:this.C[f]});g.Ua(this);break;default:g.Ua(this)}this.B=c;break;case 11:switch(this.B){case 0:pua(this,b);break;case 2:Au(b);g.Ua(this);break;default:g.Ua(this)}this.B=null;
break;case 20:c=new kua(b);d=c.B;e=c.isAudio;this.u[c.u]=d;this.C[d]=e;g.Ua(this);break;case 21:oua(this,b);break;case 12:oua(this,b);break;case 22:c=Cu(b,0);c=this.u[c]||null;g.Ua(this);c&&this.V("STREAM_ENDED",{id:c});break;default:g.Ua(this)}};qua.prototype.Ae=function(){var a=new AV;EV(a,1,this.hl);EV(a,2,this.gl);EV(a,6,this.deviceId);var b=this.clientName;CV(a,128);CV(a,b);EV(a,17,this.clientVersion);this.deviceMake&&EV(a,12,this.deviceMake);this.deviceModel&&EV(a,13,this.deviceModel);this.osName&&EV(a,18,this.osName);this.osVersion&&EV(a,19,this.osVersion);this.browserName&&EV(a,87,this.browserName);this.browserVersion&&EV(a,88,this.browserVersion);return FV(a)};rua.prototype.Ae=function(){var a=new AV;EV(a,16,this.referrer);var b=this.signatureTimestamp;CV(a,384);CV(a,b);return FV(a)};sua.prototype.Ae=function(){var a=new AV;DV(a,2,this.encryptedOnesiePlayerRequest);DV(a,5,this.encryptedClientKey);DV(a,6,this.iv);DV(a,7,this.hmac);var b=this.serializeResponseAsJson?1:0;CV(a,80);CV(a,b);return FV(a)};GV.prototype.Ae=function(){var a=new AV;EV(a,1,this.name);EV(a,2,this.value);return FV(a)};tua.prototype.Ae=function(){var a=new AV;DV(a,1,this.client.Ae());return FV(a)};uua.prototype.Ae=function(){var a=new AV;EV(a,1,this.url);for(var b=g.q(this.httpHeaders),c=b.next();!c.done;c=b.next())DV(a,2,c.value.Ae());DV(a,3,this.postBody.Ae());return FV(a)};vua.prototype.Ae=function(){var a=new AV;DV(a,3,this.tv.Ae());return FV(a)};wua.prototype.Ae=function(){var a=new AV;DV(a,1,this.contentPlaybackContext.Ae());return FV(a)};xua.prototype.Ae=function(){var a=new AV;DV(a,1,this.mw.Ae());EV(a,2,this.videoId);DV(a,4,this.playbackContext.Ae());return FV(a)};HV.prototype.feed=function(a){vu(this.u,a);this.B()};
HV.prototype.B=function(){var a=g.q(yua(this.u,0));var b=a.next().value;var c=a.next().value;c=g.q(yua(this.u,c));a=c.next().value;c=c.next().value;!(0>b||0>a)&&c+a<=this.u.totalLength&&(c=this.u.split(c).Wl.split(a),a=c.Rr,c=c.Wl,this.C(b,a),this.u=c,this.B())};IV.prototype.fetch=function(){return g.Ue(this,function b(){var c=this,d,e,f,h,l,m,n,p,r,t,w,x,y;return g.Aa(b,function(D){switch(D.u){case 1:return d=c,c.D.start(),c.u.tick("ogpd"),sa(D,2),g.ra(D,Dua(c),4);case 4:e=D.B;ta(D,3);break;case 2:return f=ua(D),f instanceof NA?JV(c,f):(h=new NA("onesie.request",!1),JV(c,h)),D["return"](c.B);case 3:c.u.tick("osor");l=Qu(c.videoData.T());m=e.Ae();g.ak()&&(m=new Uint8Array(m.buffer.slice(0,m.length)));n={method:"POST",body:m,headers:{"Content-Type":"text/plain"}};
p=function(){Bua(d)};
r=function(){Bua(d);var E,G=d.xhr;G.Al()?E=new NA("onesie.net",!1,{msg:G.Al()}):400<=G.status?E=new NA("onesie.net.badstatus",!1):G.Qr()?d.F||(E=new NA("onesie.response.noplayerresponse",!1)):E=new NA(204===G.status?"onesie.net.nocontent":"onesie.net.connect",!1);E?JV(d,E):d.u.tick("orf")};
t=g.Oa;w=zua(c.videoData);if(!w)return x={url:"0"},y=new NA("onesie.unavailable.hotconfig",!1,x),JV(c,y),D["return"](c.B);c.u.tick("ocs");c.xhr=new Sw(w,p,r,t,l,n);return D["return"](c.B)}})})};
IV.prototype.I=function(){JV(this,new NA("onesie.request",!1,{timeout:"1"}))};g.u(OV,g.P);g.k=OV.prototype;g.k.aa=function(){this.kF();this.De.stop();window.clearInterval(this.ld);Nta(this.Vc);this.ba.unsubscribe("visibilitystatechange",this.Vc);TV(this);QV(this);g.tp(this.Ia);hW(this);delete this.X;g.eg(this.u);g.eg(this.N);this.oa=null;this.Za=!1;this.Ob=0;g.P.prototype.aa.call(this)};
g.k.oh=function(a,b,c){c=void 0===c?!0:c;this.ha.length=0;this.kb=null;this.ka.reset();this.ya.reset();this.tc=!1;this.xi=0;this.tf=!0;this.Kc=null;this.B&&this.B.stopVideo();RV(this);TV(this);QV(this);g.tp(this.Ia);this.xa.clear();g.eg(this.u);g.eg(this.N);if(2==this.Jb||this.F.Bq)a.XB=!0;var d=this.F.B;var e=this.F.C,f;(f=a.Ep)||(f=(f=a.Ly)&&qBa.hasOwnProperty(f)&&rBa.hasOwnProperty(f)?rBa[f]+"_"+qBa[f]:void 0);if(f){var h=f.match(sBa);if(h&&5===h.length){if(h=f.match(sBa)){var l=Number(h[3]),m=
[7,8,10,5,6];h=!(1===Number(h[1])&&8===l)&&0<=m.indexOf(l)}else h=!1;d=d||e||h?f:null}else d=null}else d=null;d&&(a.adFormat=d);2==this.Jb&&(a.nk=!0);if(this.ba.isFullscreen()||this.F.B)d=g.Qs("yt-player-autonavstate"),a.autonavState=d||(this.F.B?2:this.u.autonavState);this.sf=c;this.u=a;this.u.subscribe("dataupdated",this.tP,this);this.u.subscribe("dataloaded",this.Zu,this);this.u.subscribe("dataloaderror",this.handleError,this);this.u.subscribe("ctmp",this.qb,this);Uua(this,a);Oua(this,b);Pua(this);
this.Za=!1;this.Ob=0;YV(this,"newdata");$V(this,new g.LK);this.K.oh(this.u);zF(a)&&(a=this.u.errorDetail,b=this.u.ko,this.Id("auth",unescape(b.reason),a,a,b.subreason||void 0));1==this.Jb&&this.De.start()};
g.k.getVideoData=function(){return this.u};
g.k.T=function(){return this.F};
g.k.Zu=function(){if(this.u.Bc()){var a=this.N;0<g.Q(a.Na.experiments,"html5_player_min_build_cl")&&337181759<g.Q(a.Na.experiments,"html5_player_min_build_cl")&&lsa(a,"oldplayer");Wua(this)}else this.u.Jk||this.u.No?this.Ma&&g.VB(this.F)&&this.u.isLivePlayback||(this.u.Jk?lma(this.u):(a=this.I,a.qoe&&(a=a.qoe,AT(a,"protected"),a.provider.videoData.Rc?a.tF():a.provider.videoData.subscribe("dataloaded",a.tF,a)),jma(this.u))):!this.u.gd&&this.sf&&Sua(this)};
g.k.eO=function(a){var b=this;if(!this.la()&&!a.videoData.la()&&(this.X=a,Dta(this.K,this.X),!this.u.isLivePlayback||0<this.u.Xj&&!hF(this.u)||(this.seekTo(qW(this)),cW(this,"playbackData")),this.u.Ha.sc()&&(!g.R(this.F.experiments,"hoffle_save")&&!g.R(this.F.experiments,"hoffle_cfl_lock_format")||!this.F.C||this.u.lengthSeconds>g.Q(this.F.experiments,"hoffle_max_video_duration_secs")||0!==this.u.startSeconds||!this.u.offlineable||!this.u.ma||this.u.ma.isOtf||this.u.ma.isLive||this.u.ma.cf||hw(this.u.videoId)||
(g.R(this.F.experiments,"hoffle_cfl_lock_format")?(this.qb("dlac","cfl"),this.u.lC=!0):(nF(this.u,!0),mma(this.u,new FD(this.u.videoId,2,{kn:!0,Xr:!0,videoDuration:this.u.lengthSeconds})),this.qb("dlac","w"))),this.D?g.er(Error("Duplicated Loader")):bva(this)),nW(this),oW(this,"html5_nonblocking_media_capabilities"))){var c=Date.now();(a=tsa(this.ea,a))&&a.then(function(){b.qb("mclatency",(Date.now()-c).toString())})}};
g.k.fO=function(a){this.la()||(a=PA(a),this.ba.isBackground()?(vW(this,"vp_none_avail"),this.kb=null,this.ka.reset()):(this.ka.u=!0,this.Id(a.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.OA(a.details))))};
g.k.sendAbandonmentPing=function(){g.T(this.getPlayerState(),128)||(this.V("internalAbandon"),this.Ux(!0),TV(this),g.tp(this.Ia))};
g.k.Id=function(a,b,c,d,e){var f,h;g.Tb(kBa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+parseInt(g.L("DCLKSTAT",0),10));a={errorCode:a,errorDetail:d,errorMessage:h||g.FX[f]||"",yv:f,Mi:e||"",YE:c};YV(this,"dataloaderror");$V(this,MK(this.C,128,a));g.tp(this.Ia);QV(this);this.mh()};
g.k.getPlayerState=function(){return this.C};
g.k.getPlayerType=function(){return this.Jb};
g.k.getPreferredQuality=function(){if(this.X){var a=this.X;a=yC(a.videoData.gu,a.videoData.Zz);a=zC(a)}else a="auto";return a};
g.k.isGapless=function(){return!!this.B&&this.B.isView()};
g.k.playVideo=function(){var a=this,b,c,d,e;return Ba(new za(new wa(function(f){if(1==f.u){var h;(h=g.T(a.C,128))||(h=a.N,h.I?(h.I=!1,lT(h),h=!0):h=!1);if(h)return f["return"]();a.B&&(h=a.I,h.B&&Bsa(h.B),h.qoe&&Jsa(h.qoe));aW(a);g.T(a.C,64)&&$V(a,NK(a.C,8));return a.ya.isFinished()&&a.B?a.X||!a.kb?f.Wd(2):g.ra(f,a.kb,2):f["return"]()}if(!a.u.Ha)return b=a.u.isLivePlayback&&!g.tB(a.F.D,!0)?"html5.unsupportedlive":pF(a.u)?"fmt.unplayable":"fmt.noneavailable",g.er(Error("selectableFormats")),a.Id(b,
"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),f["return"]();if(a.ba.B&&a.u.Ha.sc())return WV(a),f["return"]();if(a.u.isLivePlayback){c=a.getCurrentTime()<a.qc()-15;d=g.BF(a.u)&&g.T(a.C,4);e=!oW(a,"html5_dompaused_unpause_killswitch")&&g.T(a.C,1024);e||!c&&!d||(d?(a.seekTo(Infinity),cW(a,"unpauseLiveOnly")):(a.seekTo(a.qc()),cW(a,"outOfWindow")));!a.isAtLiveHead(void 0,!0)&&lU(a.K)&&(a.seekTo(Infinity),cW(a,"peggedToLive"));if(h=g.T(a.C,256)&&a.u.kg)h=a.K,h=h.ba&&!isFinite(h.C);if(h)return $V(a,
PK(a.C,8,4)),f["return"]()}g.T(a.C,4)&&g.T(a.C,16)&&$V(a,PK(a.C,9,4));if(XV(a))return!oW(a,"html5_ignore_airplay_events_on_new_video_killswitch")&&a.B&&a.B.zl()&&(a.jd=(0,g.O)()),a.F.mr?g.Fo((0,g.z)(a.xx,a),0):a.xx(),f["return"]();a.xx();f.u=0})))};
g.k.qH=function(){var a=this.u;a.ma.dispose();a.ma=void 0;fF(a,a.adaptiveFormats);PV(this,!0);this.V("localmediachange",new FD(this.u.videoId,4,{kn:!0}))};
g.k.iQ=function(){jW(this);var a=this.u.ma&&Dz(this.u.ma),b=this.B&&this.B.isView();a||b?(this.D&&(a=this.D,a.u.ba=!1,a.C&&bE(a)),PV(this)):($V(this,NK(this.C,16)),XV(this),g.RK(this.C)&&this.playVideo())};
g.k.hN=function(){RV(this);QV(this);sW(this);this.playVideo()};
g.k.Wk=function(){if(!this.X)return[];var a=rsa(this.ea,this.X,lW(this,!0));return this.X.Ha.Wk(a)};
g.k.getUserPlaybackQualityPreference=function(){return this.u.Ha&&!this.u.Ha.sc()?zC(this.u.gu):ex()};
g.k.getAvailableAudioTracks=function(){return this.u.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){return this.u.getAudioTrack()};
g.k.xP=function(){var a=this.I;a.provider.u.ac||3===a.provider.getVisibilityState()||(a.provider.u.ac=!0);g.RT(a);if(a.B){var b=a.B;b.F&&0>b.u&&3!==b.provider.getVisibilityState()&&Bsa(b)}a.qoe&&(a=a.qoe,a.ka&&0>a.B&&a.provider.u.ac&&Jsa(a));g.Q(this.F.experiments,"html5_background_quality_cap")&&this.D&&NV(this);this.F.zq&&!this.u.backgroundable&&this.B&&!this.ba.B&&(this.ba.isBackground()&&this.B.Ns()?(this.qb("bgmobile","suspend"),this.mh(!0)):this.ba.isBackground()||XV(this)&&this.qb("bgmobile",
"resume"))};
g.k.VN=function(a,b){this.XD(new Dx(b,a))};
g.k.XD=function(a){this.wb.set(a.initData,a);this.P&&($ra(this.P,a),oW(this,"html5_eme_loader_sync")||this.wb.remove(a.initData))};
g.k.RD=function(){g.Vq&&this.Fa&&this.Fa.u&&this.P&&(bsa(this.P,this.Fa.u),this.Fa=null)};
g.k.qP=function(a){this.u.iG=vC("auto",a,!1,"u");NV(this)};
g.k.AN=function(a){var b=this;eW(this,a.reason,a.video.info,a.audio.info);oW(this,"html5_probe_media_capabilities")&&oW(this,"html5_dynamic_av1_hybrid_threshold")&&a.video.info&&Pv(a.video.info)&&usa(this.ea,this.X).then(function(c){c&&b.D&&dD(b.D.K,b.F)})};
g.k.yN=function(a){Xua(this,a.reason,a.audio.info)};
g.k.BN=function(a){this.V("localmediachange",a)};
g.k.xM=function(){this.D&&dD(this.D.K,this.F)};
g.k.handleError=function(a){this.N.handleError(a,g.T(this.C,4)||g.T(this.C,512))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.T(this.C,64)||g.T(this.C,2))&&!a)if(g.T(this.C,8))$V(this,PK(this.C,4,8));else return;g.T(this.C,128)||(a?$V(this,NK(this.C,256)):$V(this,PK(this.C,4,8)));this.B&&this.B.pause();g.BF(this.u)&&this.D&&kW(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.D&&(kW(this,!1),MD(this.D))};
g.k.mh=function(a){a=void 0===a?!1:a;this.B&&(this.B.stopVideo(),RV(this),QV(this),g.T(this.C,128)||(a?$V(this,OK(OK(NK(this.C,4),8),16)):$V(this,MK(this.C))),this.u.videoId&&this.F.P.remove(this.u.videoId))};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.T(this.C,2)&&XV(this);if(this.ac){var c=this.ac;isFinite(a)&&a<kU(c.u.K)?c.isLiveNow=!1:c.isLiveNow=!0}this.K.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.K.getCurrentTime()};
g.k.getPlaylistSequenceForTime=function(a){return this.u.getPlaylistSequenceForTime(a-this.fc())};
g.k.je=function(){if(this.u.ma)return this.u.ma.je(this.getCurrentTime()-this.fc());if((!oW(this,"html5_disable_limit_ingestion_tvos")||ck())&&this.B){var a=this.B.getStartDate();if(a&&(a=a.getTime(),!isNaN(a)))return a/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.u.lengthSeconds?this.u.lengthSeconds+this.fc():qW(this)?qW(this):0};
g.k.vI=function(){var a=new jla;if(this.D){var b=this.F.schedule;a.B=b.K;a.D=b.X;a.bandwidthEstimate=bz(b);a.u="d."+$y(b).toFixed(2)+";st."+(1E9*(b.C.u()||0)).toFixed(2)+";bw."+b.u.u().toFixed(0)+";abw."+b.N.u().toFixed(0)+";v50."+Yy(b.D,.5).toFixed(2)+";v92."+Yy(b.D,.92).toFixed(2)+";v96."+Yy(b.D,.96).toFixed(2)+";v98."+Yy(b.D,.98).toFixed(2);b=this.D;if(b.C&&!kB(b.C)&&(a.Mk=Hy(b.B,b.I),a.C=Hy(b.D,b.I),b.u.xa)){var c=vy(b.B),d=vy(b.D),e=ay(b.C.B.Ge(),"_",5),f=ay(b.C.u.Ge(),"_",5);a.u=(a.u||"")+(";lvq."+
c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=gz(b.X)}else this.B&&(a.Mk=ES(this.B));a.F=this.iB();return a};
g.k.ib=function(a){var b={};if(void 0===a?0:a){g.Wa(b,this.I.ib());this.B&&(g.Wa(b,this.B.ib()),g.Wa(b,this.Sv()));this.D&&g.Wa(b,this.D.ib());this.P&&(b.drm=this.P.ib());b.state=this.C.state.toString(16);g.T(this.C,128)&&(b.debug_error=this.C.stateData);bW(this)&&(b.prerolls=this.ha.join(","));this.u.Vi&&(b.ismb=this.u.Vi);"UNKNOWN"!=this.u.latencyClass&&(b.latency_class=this.u.latencyClass);this.u.isLowLatencyLiveStream&&(b.lowlatency="1");this.u.isLivePlayback&&(this.u.ma&&Sz(this.u.ma)&&(b.segduration=
Sz(this.u.ma)),a=this.K,b.lat=a.W?fD(a.W.D):0,b.liveutcstart=this.u.liveUtcStartSeconds);b.relative_loudness=this.u.Ip.toFixed(3);if(a=g.dW(this))b.optimal_format=a.Ja().qualityLabel;b.user_qual=ex()}b.debug_videoId=this.u.videoId;return b};
g.k.addCueRange=function(a){var b=this.fa;a=[a];b.B();wD(b.u,a);b.D=NaN;b.B();this.u.enableServerStitchedDai&&this.D&&Jla(this.D)};
g.k.removeCueRange=function(a){yD(this.fa,[a])};
g.k.tP=function(){YV(this)};
g.k.togglePictureInPicture=function(){this.B&&this.B.togglePictureInPicture()};
g.k.vP=function(a){this.Dh.stop();var b=a.target.le();if(this.B&&this.B.le()&&this.B.le()==b){kva(this,a.type);switch(a.type){case "error":var c=GS(this.B)||"";if("capability.changed"==c){WV(this);return}if(0<this.B.eh()&&mT(this.N,c,{msg:this.B.Ym()}))return;if(this.ba.isBackground()&&4==this.B.eh()){this.mh();vW(this,"unplayable");return}break;case "durationchange":c=this.B.getDuration();(!this.W||isFinite(c)&&0<c)&&1!=c&&this.u.lengthSeconds!=c&&(this.u.lengthSeconds=c,YV(this));break;case "ratechange":this.D&&
this.D.setPlaybackRate(this.B.getPlaybackRate());c=this.fa;c.started=!0;c.B();var d=this.I;c=this.getPlaybackRate();if(d.qoe){d=d.qoe;var e=g.rT(d.provider);c&&c!==d.Ia&&(g.uT(d,e,"rate",[c]),d.Ia=c);d.reportStats(e)}break;case "loadedmetadata":lva(this),this.V("onLoadedMetadata");case "loadstart":window.clearInterval(this.ld);this.Yu()||(this.ld=Ho((0,g.z)(this.Yu,this),100));break;case "progress":case "suspend":uW(this);this.V("onLoadProgress",this,this.B?g.BF(this.u)?1:CF(this.u)?this.isAtLiveHead()||
lU(this.K)?1:Jta(this.K):FS(this.B):0);break;case "playing":this.Y.tick("plev");gva(this);GA("plev","video_to_ad");this.Bh&&(this.Bh=!1,this.isAtLiveHead()||(this.seekTo(Infinity),cW(this,"onPlaying")));break;case "timeupdate":gva(this);c=this.B&&!this.B.getCurrentTime();d=this.B&&0==this.B.Vf();if(c&&(!this.tc||d))return;this.tc=this.tc||!!this.B.getCurrentTime();this.Yu();uW(this);if(!this.B||this.B.le()!=b)return;this.V("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.B.dl().length&&
0==this.B.Xe().length&&0<this.B.getCurrentTime()&&5>this.B.getCurrentTime()&&this.D)return;break;case "resize":lva(this);this.u.Ka&&"auto"==this.u.Ka.Ja().quality&&this.V("internalvideoformatchange",this.u,!1);break;case "pause":if(this.ri&&g.T(this.C,8)&&!g.T(this.C,1024)&&0==this.getCurrentTime()&&g.mC){vW(this,"safari_autoplay_disabled");return}}if(this.B&&this.B.le()==b){this.V("videoelementevent",a);b=this.C;if(!g.T(b,128)){c=this.Rb;e=this.B;var f=this.F.experiments;d=b.state;e=e?e:a.target;
var h=e.getCurrentTime();if(!g.T(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Th()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.T(b,4)&&!TT(c,h);if("pause"===a.type&&e.Th()||l&&h)0<e.Er()&&e.le()&&(d=14);else switch(a.type){case "error":GS(e)&&(d|=128);break;case "pause":g.T(b,256)?(d^=256)||(d=64):g.T(b,32)||g.T(b,2)||g.T(b,4)||(d=4,g.T(b,1)&&g.T(b,8)&&(d|=1));break;case "playing":d=(d|8)&-3077;f&&g.R(f,"html5_playing_clears_unstarted_killswitch")||
(d&=-65);TT(c,e.getCurrentTime())&&(d&=-2);g.T(b,1)&&UT(c,e.getCurrentTime(),(0,g.O)(),ES(e))&&(d|=1);break;case "seeking":d|=16;g.T(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.T(b,2)||(d|=1);UT(c,e.getCurrentTime(),(0,g.O)(),ES(e));break;case "timeupdate":f=g.T(b,16),l=g.T(b,4),(g.T(b,8)||f)&&!l&&TT(c,e.getCurrentTime())&&(d=8),UT(c,e.getCurrentTime(),(0,g.O)(),ES(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=GS(d))?(f="GENERIC_WITHOUT_LINK",l=d.ib(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.Ym())&&
(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.FX[f]||"",yv:f,YE:g.OA(l)}):d=null);b=MK(b,c,d)}!g.T(this.C,1)&&g.T(b,1)&&xW(this,"evt_"+a.type);$V(this,b)}}};
g.k.hP=function(){this.qb("misstimeupdate","");fva(this)&&!g.T(this.C,2)&&MV(this,!0,!1)};
g.k.lM=function(a){a="available"==a.B.availability;a!=this.uf&&(this.uf=a,this.V("airplayavailabilitychange"))};
g.k.mM=function(){var a=(0,g.O)();if(isNaN(this.jd)||!(2E3>a-this.jd)){var b=this.B.zl();this.jd=a;b!=this.ba.B&&(a=this.ba,a.B!==b&&(a.B=b,a.tg()),SV(this));this.V("airplayactivechange")}};
g.k.Yu=function(){var a=this.B;a&&this.tc&&!this.u.kg&&!DA("vfp",this.Y.timerName)&&2<=a.Vf()&&!a.Th()&&0<ey(a.Xe())&&this.Y.tick("vfp");return(a=this.B)&&!this.u.kg&&0<a.getDuration()&&(!DA("pbp",this.Y.timerName)&&a.ik()&&2<=a.Vf()&&0<ey(a.Xe())&&this.Y.tick("pbp"),a=a.getCurrentTime(),TT(this.Rb,a))?(hva(this),!0):!1};
g.k.RI=function(){if(this.B&&!g.T(this.C,128)){this.u.rj&&g.Q(this.F.experiments,"html5_log_rebuffer_events")&&kva(this,"pfx");var a=this.getCurrentTime(),b=ES(this.B),c=g.T(this.C,8),d=TT(this.Rb,a),e=UT(this.Rb,a,(0,g.O)(),b);c&&d?$V(this,OK(this.C,1)):c&&e?(c=this.getDuration(),d=this.u.isLivePlayback,(oW(this,"html5_set_ended_in_pfx_live")||!d)&&c&&1.1>Math.abs(c-a)?(this.qb("setended","ct."+a+";bh."+b+";dur."+c+";live."+ +d),d&&oW(this,"html5_set_ended_in_pfx_live_cfl")||(this.B.al()?this.seekTo(0):
MV(this))):(g.SK(this.C)||xW(this,"progress_fix"),$V(this,NK(this.C,1)))):(c&&!d&&!e&&0<a&&(c=(Date.now()-this.xi)/1E3,d=this.getDuration().toFixed(2),a>d-1&&this.qb("misspg","t:"+a.toFixed(2)+";d:"+d+";r:"+c.toFixed(2)+";bh:"+b.toFixed(2))),g.T(this.C,4)&&g.SK(this.C)&&5<ES(this.B)&&$V(this,OK(this.C,1)));uW(this)}};
g.k.jI=function(){return this.D?gz(this.D.X):bz(this.F.schedule)};
g.k.rI=function(){return this.F.schedule.K};
g.k.iB=function(){return this.isAtLiveHead()&&this.C.Cb()?this.mB():NaN};
g.k.mB=function(){if(!this.u.isLivePlayback||!this.u.ma||!this.D)return NaN;var a=hF(this.u)?this.D.kb.u()||0:this.u.ma.N;return g.A()/1E3-this.je()-a};
g.k.II=function(){this.u.isLivePlayback||this.V("connectionissue")};
g.k.xx=function(){var a=this;this.B&&(this.Kc=this.B.playVideo());if(this.Kc){var b=this.Kc;b.then(void 0,function(c){if(!(g.T(a.C,4)||g.T(a.C,256)||a.Kc!=b||c&&"AbortError"==c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);try{$V(a,NK(a.C,2048))}catch(e){}vW(a,d);a.ri=!0}})}};
g.k.qN=function(a,b,c,d){a:{var e=this.N;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.P&&1<this.P.C.keys.length&&96>e.K)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.ca("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.N&&(e.N++,e.V("removedrmplaybackmanager"),1<e.videoData.pn.length&&(e.videoData.Rc=e.videoData.pn[1]),mT(e,a,{detail:c})))break a;if(b)if(e.videoData.Ka&&Iv(e.videoData.Ka.Ja()))nsa(e,a);else{if(e.V("playererror",a,d,c),e.videoData.ca("html5_exile_on_drm_fatal")&&
fsa(e,{detail:c}))break a}else kT(e,a,{detail:c});"drm.sessionlimitexhausted"===a&&(nT(e,"retrydrm","s"),e.K++,e.V("reattachvideosourcerequired"))}};
g.k.sN=function(){var a=this,b=g.Q(this.F.experiments,"html5_license_constraint_delay"),c=nk();b&&c?(b=new g.H(function(){nW(a);YV(a)},b),g.C(this,b),b.start()):(nW(this),YV(this))};
g.k.rN=function(){var a=this;g.Vq&&(this.Fa=Nga(this.u.ma))&&(this.Fa.u?g.um(function(){a.RD()}):Ila(this.D,this.Fa))};
g.k.lN=function(a){this.V("heartbeatparams",a)};
g.k.oN=function(a){this.qb("keystatuses",Lra(a));var b="auto";this.u.Ka&&(b=this.u.Ka.Ja().quality);!Mra(a,b,!1)||Nra(a,"AUDIO")&&Nra(a,"SD")?this.u.Ka&&Iv(this.u.Ka.Ja())&&(!a.W||Mra(a,b,!0))&&nsa(this.N):this.Ah?this.V("drmoutputrestricted"):(this.Ah=!0,this.qb("retrydrm","o"),mW(this),Rua(this))};
g.k.wN=function(){if(!this.u.kg&&this.B&&!this.ba.isBackground()){var a="0";0<this.B.Vf()&&5<=ES(this.B)&&this.u.Ha&&this.u.Ha.sc()&&($V(this,NK(this.C,1)),xW(this,"load_soft_timeout"),this.V("playbackstalledatstart"),a="1");iva(this);if(oW(this,"html5_new_video_qoe_restart_info_killswitch"))a={restartmsg:a},bW(this)&&(a.prerolls=this.ha.join(",")),this.D&&g.Wa(a,this.D.ib()),this.B&&g.Wa(a,this.B.ib());else{var b=this.u.Ha;a={restartmsg:a,mfmt:XE(this.u)?"0":"1",mdrm:b&&b.videoInfos&&b.videoInfos.length&&
b.videoInfos[0].Yc&&!this.P?"1":"0",mfmtinfo:this.u.Ka?"0":"1",prerolls:bW(this)?this.ha.join(","):"0"};this.P&&(a.drmp=dsa(this.P));b=[this.D,this.B].filter(function(d){return!!d});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())g.Wa(a,c.value.ib())}this.I.onError("qoe.start15s",g.OA(a));this.V("loadsofttimeout")}};
g.k.ZO=function(){g.T(this.C,128)||this.W&&jB(this.W)||(this.I.onError("qoe.restart",g.OA({detail:"bufferattach"})),this.Dk++,PV(this))};
g.k.Ux=function(a){var b=this;a=void 0===a?!1:a;if(!this.Za){DA("att_s","player_att")||DA("att_s","player_att")||wA("att_s",void 0,"player_att");var c=new dra(this.u,oW(this,"web_player_inline_botguard"));if("c1a"in c.u&&!SS(c)&&(GA("att_wb","player_att"),2==this.Ob&&.01>Math.random()&&g.er(Error("Botguard not available after 2 attempts")),!a&&5>this.Ob)){this.rf.ub();this.Ob++;return}if("c1b"in c.u){var d=lta(this.I);d&&gra(c).then(function(e){e&&!b.Za&&d?(GA("att_f","player_att"),d(e),b.Za=!0):
GA("att_e","player_att")},function(){GA("att_e","player_att")})}else(a=era(c))?(GA("att_f","player_att"),kta(this.I,a),this.Za=!0):GA("att_e","player_att")}};
g.k.qc=function(){return this.K.qc()};
g.k.fc=function(){return this.K?this.K.fc():0};
g.k.getStreamTimeOffset=function(){return this.K?this.K.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.u.Ha&&this.u.Ha.videoInfos&&32<this.u.Ha.videoInfos[0].Ja().fps&&g.VB(this.F);this.kd!=a&&b&&(this.ea.setPlaybackRate(a),mW(this));this.kd=a;this.B&&this.B.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.kd};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.u.Ka&&(a=this.u.Ka.Ja().quality,"auto"==a&&this.B)){var b=iI(this);b&&0<b.videoHeight&&(a=Ev(b.videoWidth,b.videoHeight))}return a};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.I;c.u?(c=NT(c.u,"engage"),c.K=a,c.send(b)):b&&b()};
g.k.isAtLiveHead=function(a,b){return this.u.isLivePlayback&&(this.tf||(void 0===b?0:b))?this.K.isAtLiveHead(a):!1};
g.k.Sv=function(){return this.B?this.B.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.Fg=a;this.B&&this.B.setLoop(a)};
g.k.al=function(){return this.B?this.B.al():this.Fg};
g.k.xJ=function(a){var b=oW(this,"html5_unrewrite_timestamps");this.qb("timestamp","enabled."+b+";t."+a.toString())};
g.k.qb=function(a,b,c){var d=this.I;d.qoe&&wT(d.qoe,a,b,void 0===c?!1:c)};
g.k.zC=function(a,b){this.I.onError(a,g.OA(b))};
g.k.kF=function(){if(g.RK(this.C)){if(Zw){var a="";for(var b in dx)if(dx.hasOwnProperty(b)){var c=dx[b];if(0===c.u)c=null;else{for(var d=c.u.toString()+"."+Math.round(c.C).toString(),e=0;e<Ww.length;++e)if(0<c.B[e])d+="."+Ww[e].toString()+"_"+Math.round(c.B[e]).toString();else break;c=d}c&&(a+=b+"."+c+";")}dx=new Yw}else a="";a&&(b=this.I,b.qoe&&wT(b.qoe,"profile",a,void 0))}this.De.start()};g.Ja("yt.pubsub.publish",g.Po,void 0);g.u(AW,xU);AW.prototype.B=function(){return IAa};
AW.prototype.C=function(a){return a.feedbackEndpoint};
AW.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};g.u(BW,xU);BW.prototype.B=function(){return HAa};
BW.prototype.C=function(a){return a.webPlayerShareEntityServiceEndpoint};
BW.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};Eq.prototype.logEvent=function(a){switch(a){case "QUOTA_EXCEEDED":wva(this)}};var Y1={},tBa=(Y1["api.invalidparam"]=2,Y1.auth=150,Y1["drm.auth"]=150,Y1["heartbeat.net"]=150,Y1["heartbeat.servererror"]=150,Y1["heartbeat.stop"]=150,Y1["html5.unsupportedads"]=5,Y1["fmt.noneavailable"]=5,Y1["fmt.decode"]=5,Y1["fmt.unplayable"]=5,Y1["html5.missingapi"]=5,Y1["html5.unsupportedlive"]=5,Y1["drm.unavailable"]=5,Y1);g.u(EW,g.B);g.k=EW.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.F[a],e=this.K[a],f=d;if(e)if(c&&Wu(c,PAa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.T();d.Aj&&!this.W.has(a)&&(this.W.add(a),g.Fq("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.er(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.F[a]?!0:!!(this.K[a]&&b&&Wu(b,PAa))};
g.k.getBandwidthEstimate=function(){return bz(this.app.T().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.Z(this.app);b&&(a={gpu:(0,g.BT)(),d:a},b.handleError(new NA("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.N.slice()};
g.k.getInternalApiInterface=function(){return g.Qb(this.B)};
g.k.wH=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.Na(b).apply(window,e)};
this.I[b]=c}else c=b;this.app.oa.subscribe(a,c)};
g.k.dQ=function(a,b){if("string"===typeof b){var c=this.I[b],d=this.I;b in d&&delete d[b];b=c}this.app.oa.unsubscribe(a,b)};
g.k.getPlayerState=function(){return gza(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d)};
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.u&&L0(this.app,!0,this.playerType);Q0(this.app,a,b,c,this.playerType)};
g.k.seekToStreamTime=function(a,b,c){this.u&&L0(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.Z(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.fc()&&(l=h.getStreamTimeOffset());Q0(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.Z(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.Z(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&Q0(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.je(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.Y.volume};
g.k.setVolume=function(a){Ava(this,a)};
g.k.isMuted=function(){return this.app.Y.muted};
g.k.mute=function(){Bva(this)};
g.k.unMute=function(){Cva(this)};
g.k.playVideo=function(){this.u&&L0(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();2!==a||this.app.Gc()?3===a?g.PW(this.app.D).di("control_play"):this.app.playVideo(a):(a=qX(this.app.D))&&a.di("control_play")};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();2!==a||this.app.Gc()?3===a?g.PW(this.app.D).di("control_pause"):this.app.pauseVideo(a):(a=qX(this.app.D))&&a.di("control_pause")};
g.k.stopVideo=function(){var a=this.app;a.u.xa&&a.B.V("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.Z(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();a.Ob?(a=a.B||a.ca("web_player_admin_origin_killswitch")?a.De[0]:window.location.origin,a="https://admin.youtube.com"===a||"https://viacon.corp.google.com"===a?bBa:aBa):a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.Z(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.Z(this.app,this.playerType);return a?(a=g.Pc(a.Wk(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
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.template.resize()};
g.k.channelSubscribed=function(){this.va("SUBSCRIBE",t0(this.app).Cg)};
g.k.channelUnsubscribed=function(){this.va("UNSUBSCRIBE",t0(this.app).Cg)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.Z(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.Z(this.app).getPlaylistSequenceForTime(a)};
g.k.forceFrescaUpdate=function(){var a=XW(this.app.D);a&&a.fI()};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=Hza(this.app);b&&(b.B=a,b.na())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=Hza(this.app);b&&(g.J(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.D&&(b.element.setAttribute("title","Scroll for details"),g.dg(b,g.aY(b.F.Gb(),b.element)),b.D=!0))};
g.k.confirmYpcRental=function(){var a=g.Z(this.app,this.playerType);a&&gW(a,"ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.T().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.T().Bj=a};
g.k.setLivingRoomAppMode=function(a){this.app.T().livingRoomAppMode=wB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,YB)};
g.k.setEnablePrivacyFilter=function(a){this.app.T().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return t0(this.app).Iu};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.lX(this.app.D))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.lX(this.app.D))&&a.loaded&&a.QQ()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(CW(a,b,c),this.playerType),this.u&&L0(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(CW(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=xva(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.u&&L0(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=xva(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.T();if(a.N)return"";var b=t0(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.N?"":a.getVideoEmbedCode(t0(this.app).videoId,this.app.template.getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return uza(this.app,a,b,c)};
g.k.removeCueRange=function(a){a:{for(var b=this.app,c=zD(b.C.fa)||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()===a){b.C.removeCueRange(e);$W(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.u&&L0(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.u&&L0(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.u&&L0(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.u&&L0(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.tI=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.Ja(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.D;return"captions"===a?(a=g.lX(d))&&a.Rd(b,c):null};
g.k.getOption=function(a,b,c){var d=g.Z(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.T().B?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.D;if("captions"===a)return(b=g.lX(b))&&b.getOptions();if(!a)return a=[],g.lX(b)&&a.push("captions"),a};
g.k.Jr=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.Z(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.Ka&&a.Ka.video){b.video_quality=a.Ka.video.quality;a=a.Ka.video;var c=[];32<a.fps&&c.push("hfr");Iv(a)&&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(){Zya(this.app,!0)};
g.k.hideVideoInfo=function(){Zya(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.Z(this.app,1))?a.getPlayerState():null)?a.stateData:null;return!!(a&&b&&g.T(a,128)&&5===tBa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.SW(this.app.D);return a?2===this.playerType?{}:a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.SW(this.app.D);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.Z(this.app);a&&a.sendAbandonmentPing()};
g.k.deleteLocalMediaById=function(a){return rw(a)};
g.k.deleteAllLocalMedia=function(){return jw()};
g.k.cancelPendingLocalMediaById=function(a){return this.app.cancelPendingLocalMediaById(a)};
g.k.fetchLocalMedia=function(){this.app.fetchLocalMedia()};
g.k.fetchLocalMediaById=function(a){this.app.fetchLocalMediaById(a)};
g.k.getLocalMediaInfoById=function(a){return this.app.getLocalMediaInfoById(a)};
g.k.getAllLocalMediaInfo=function(){return this.app.getAllLocalMediaInfo()};
g.k.setAutonavState=function(a){R0(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().P.add(a,{Rq:b,hq:c})};
g.k.updateLastActiveTime=function(){vp()};
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.Z(this.app,this.playerType))&&nW(a))};
g.k.updateSubtitlesUserSettings=function(a){g.lX(this.app.D).eG(a,!0)};
g.k.setFauxFullscreen=function(a){Lr();r0(this.app,a?2:0)};
g.k.setUseFastSizingOnWatch=function(a){this.app.template.setUseFastSizingOnWatch(a)};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType();2===a&&this.app.Gc()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.Z(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Rf();if(!c)return null;c=c.levels[b];return c?(c=c.Yk(a))?{column:c.column,columns:c.columns,height:c.Xs,row:c.row,rows:c.rows,url:c.url,width:c.Ys}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Rf();if(!c)return-1;c=c.levels[b];if(!c)return-1;a-=this.fc();return c.Rs(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Rf();return b?(b=b.levels[a])?{index:a,intervalMs:b.u,maxFrameIndex:b.cp(),minFrameIndex:b.Vw()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Rf();return a?a.levels.length:0};
g.k.aI=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.Z(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().eo};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&g.PW(this.app.D).di("control_set_audio_track",a);var b=g.Z(this.app,this.playerType);if(b&&!b.la()&&!g.T(b.C,128))if(b.u.Ha.sc())b.D.setAudioTrack(a);else{a:{var c=b.u;if(c.Nc&&!Qv(c.Nc)||a==c.Op||!c.qj||0>=c.qj.length)c=!1;else{for(var d=g.q(c.qj),e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof oE)){c=!1;break a}var f=a.u.getId();e.B&&(e.B.u=f,e.u=null)}c.Op=a;c=!0}}c&&(b.V("internalaudioformatchange",b.u,!0),XV(b)&&b.qb("hlsaudio",
a.id))}};
g.k.bI=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.Z(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.Z(this.app,this.playerType);return a&&a.getVideoData().Ka?zC(a.X?rsa(a.ea,a.X,lW(a)):xC):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.Z(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.lX(this.app.D);return a?a.yI():null};
g.k.resetSubtitlesUserSettings=function(){g.lX(this.app.D).jQ()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setGlobalCrop=function(a){this.app.template.setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.app.T();a=this.app.visibility.u&&!g.R(a.experiments,"kevlar_miniplayer_disable_vis");return this.app.getVisibilityState(this.zl(),this.isFullscreen()||LB(this.app.T()),a,this.isInline(),this.app.visibility.pictureInPicture,this.app.visibility.C)};
g.k.isMutedByMutedAutoplay=function(){return this.app.Za};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.template.setInternalSize(new g.he(a,b))};
g.k.fc=function(){var a=g.Z(this.app,void 0);return a?a.fc():0};
g.k.zl=function(){var a=g.Z(this.app,this.playerType);return!!a&&a.ba.B};
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.ca("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.Ja().videoId||(a.index=b.index)):w0(this.app,{list:a.list,index:a.index,playlist_length:d.length});ZF(this.app.getPlaylist(),a);this.va("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.Z(this.app,this.playerType||1);c&&c.getVideoData().Be(a,b)};
g.k.updateEnvironmentData=function(a){this.app.T().Be(a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.UW(this.app.D);d&&d.Wo()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("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.template.getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.Z(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.Z(this.app,this.playerType);if(c){var d=vC(a,b||a,!0,"m");c.u.gu=d;if(c.X){var e=c.ea,f=c.X;if(f.Ha.sc()){var h=g.Fv[ex()];f=f.Ha.videoInfos[0].Ja().uc;if(!(h>f&&0!==f&&d.u===f)){g.Ps("yt-player-quality",zC(d),2592E3);if(e.ca("html5_exponential_memory_for_sticky")){d=e.u.Rb;h=1;var l=void 0===l?!1:l;UA(d,"sticky-lifetime");d.u["sticky-lifetime"]&&d.B["sticky-lifetime"]||(d.u["sticky-lifetime"]=0,d.B["sticky-lifetime"]=0);l&&.0625<VA(d,"sticky-lifetime")&&
(h=2*d.B["sticky-lifetime"]);d.u["sticky-lifetime"]+=1*Math.pow(2,d.C/h);d.B["sticky-lifetime"]=h;d.I.start()}e.ca("html5_perf_cap_override_sticky")&&g.Rs("yt-player-performance-cap")}}}nW(c)}};
g.k.onAdUxClicked=function(a){this.V("aduxclicked",a)};
g.k.V=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.T().C&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.oa.V.apply(this.app.oa,[a].concat(g.la(c)));this.app.ea.V.apply(this.app.ea,[a].concat(g.la(c)))};
g.k.va=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.oa.V.apply(this.app.oa,[a].concat(g.la(c)));this.app.ea.V.apply(this.app.ea,[a].concat(g.la(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.ca=function(a){return g.R(this.app.T().experiments,a)};
g.k.aa=function(){if(this.element){var a=this.element,b;for(b in this.B)this.B.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.D={};this.I={};g.B.prototype.aa.call(this)};g.u(JW,EW);g.k=JW.prototype;g.k.addCueRange=function(a,b,c,d,e){return uza(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return gza(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){Q0(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){Q0(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.Jr=function(a){a=void 0===a?this.playerType:a;var b=EW.prototype.Jr.call(this,a)||{};if(a=g.Z(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.Mo,b.isManifestless=hF(a),b.allowLiveDvr=a.allowLiveDvr,b.isListed=a.isListed,b.itct=a.pg,b.ypcOriginalItct=a.hR,b.ypcPreview=a.ypcPreview,b.paidContentOverlayText=tF(a),b.paidContentOverlayDurationMs=uF(a),null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=
a.liveUtcStartSeconds),a.ma&&Ez(a.ma)&&(b.usingLocalMedia="true");return b};
g.k.getCurrentTime=function(a,b){return a?this.app.getCurrentTime(a,b):EW.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return a?this.app.getDuration(a,b):EW.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return g.PW(this.app.D).getProgressState();var b=this.app.getVideoData(),c=(g.Z(this.app,a)||g.Z(this.app)).getPlayerType(),d=this.getCurrentTime(a);a=this.getDuration(a);var e=this.app.je(c),f=this.app.isAtLiveHead(c);var h=this.app;var l=g.Z(h,void 0);if(l){l=s0(h,l);var m=NaN;l.B&&(m=Xqa(l.B));m=0<=m?m:l.getCurrentTime();h=G0(h,m,l)}else h=0;l=this.app.qc(c);m=this.app;(c=g.Z(m,c))?(c=iX(m,c),c=G0(m,wW(c),c)):c=0;return{allowSeeking:this.app.Vd(),
clipEnd:b.clipEnd,clipStart:b.clipStart,current:d,displayedStart:-1,duration:a,ingestionTime:e,isAtLiveHead:f,loaded:h,seekableStart:l,seekableEnd:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){var a=XW(this.app.D);return a?a.YA():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.HW(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.HW(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.HW(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.HW(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.template.getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){var a=this.app.T();if(a.externalFullscreen)return this.isFullscreen()?Nr(window.document.documentElement):Kr(window.document.documentElement);if(Lr()||this.ca("embeds_enable_mobile_custom_controls"))return this.isFullscreen()?Nr(Mr()):"3"!==a.controlsType&&Lr()?Kr(this.app.template.element):(a=this.app.F.La())?Kr(a):Promise.reject(Error("Media element missing"));this.va("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=qX(this.app.D);a&&a.created&&a.destroy();(a=g.Z(this.app))&&a.stopVideo();(a=this.app.D.Cc.get("endscreen"))&&a.lJ()&&g.OW(this.app.B,!0)};
g.k.stopVideo=function(){var a=this.app.T();!g.R(a.experiments,"disable_new_pause_state3")&&dC(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():EW.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.Z(this.app,this.playerType).ib(!0)};
g.k.toggleSubtitles=function(){var a=g.lX(this.app.D);a&&a.HQ()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.SW(this.app.D);b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.SW(this.app.D);return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){Ava(this,a,b)};
g.k.mute=function(a){Bva(this,a)};
g.k.unMute=function(a){Cva(this,a)};
g.k.mutedAutoplay=function(){this.ca("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.UW(this.app.D);b&&!b.loaded&&b.load()}EW.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.UW(this.app.D);b&&b.loaded&&b.unload()}EW.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.D;switch(a){case "ad":return(a=qX(d))&&a.Rd&&a.Rd(b,c);case "kids":return(a=rX(d))&&a.Rd(b,c);case "remote":return(a=g.PW(d))&&a.Rd(b,c);case "unplugged":return(a=sX(d))&&a.Rd(b,c);case "annotations_module":return(a=g.UW(d))&&a.Rd(b,c);case "creatorendscreen":return(a=tX(d))&&a.Rd(b,c)}return EW.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.D;switch(a){case "ad":return(b=qX(b))&&b.getOptions&&b.getOptions();case "remote":return(b=g.PW(b))&&b.getOptions();case "annotations_module":return(b=g.UW(b))&&b.getOptions();case "creatorendscreen":return(b=tX(b))&&b.getOptions();case "unplugged":return(b=sX(b))&&b.getOptions();case "kids":return(b=rX(b))&&b.getOptions()}if(!a){a=EW.prototype.getOptions.call(this);if(!a)return a;qX(b)&&a.push("ad");g.PW(b)&&a.push("remote");g.UW(b)&&a.push("annotations_module");
tX(b)&&a.push("creatorendscreen");sX(b)&&a.push("unplugged");rX(b)&&a.push("kids");return a}return EW.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.template.getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.HW(this);a&&a.uj()};
g.k.setCenterCrop=function(a){this.app.template.setCenterCrop(a)};
var Eva="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_cardio 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 start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),Fva="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 enable_cardio 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.u(KW,JW);g.k=KW.prototype;g.k.getRootNode=function(){return g.yG(this).element};
g.k.T=function(){return this.app.T()};
g.k.il=function(){return this.P};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){return(a=g.Z(this.app,a))&&a.getVideoData()};
g.k.Rf=function(a){return this.app.Rf(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){g.PW(this.app.D).di("control_play");return}if(2===this.getPresentingPlayerType()){var b=qX(this.app.D),c;if(c=b){if(null===b.u)var d=0;else{var e=b.u;d=OH(e.u)&&!!e.B&&e.B.kp()}c=d}if(c)return}}catch(f){g.dr(f)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.Z(this.app,a).stopVideo()};
g.k.mh=function(a){g.Z(this.app,a).mh()};
g.k.addEventListener=function(a,b){this.app.ea.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.ea.unsubscribe(a,b)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.Wk=function(){var a={},b=g.Z(this.app).Wk();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.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)));return this.app.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,h,b,c)};
g.k.setCardsVisible=function(a,b,c){var d=g.UW(g.LW(this));d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.V("changeProductsInVideoVisibility",a)};
g.k.Nh=function(a,b){var c=g.HW(this);if(c)return c.Nh(a,b);c=this.app.template.getPlayerSize();return new g.ig(0,0,c.width,c.height)};
g.k.Vd=function(){if(this.T().Y)return!1;var a=g.Z(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.BF(b)||2===this.getPresentingPlayerType()&&!this.app.Gc()||bW(a)&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.be(a,0,100);GW(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){GW(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){GW(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.getBandwidthEstimate=function(){return bz(this.T().schedule)};
g.k.Qb=function(){return g.Z(this.app)};
g.k.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Gc=function(){return this.app.Gc()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};g.oX={};g.u(kX,g.B);g.k=kX.prototype;g.k.Rp=function(){return this.J.getVideoData().Rp()};
g.k.ey=function(){return this.J.getVideoData().ey()};
g.k.sA=function(){var a=this.Cc.get("heartbeat");nX(this,"heartbeat",this.sA,!1,!0);!a&&this.Cc.has("heartbeat")&&this.J.V("offlineslatestatechange")};
g.k.wF=function(){var a=this.J.T();if(QB(a))return!1;var b=this.J.getVideoData();return b.WB||"3"===a.controlsType?!1:a.P.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.eg||!!g.FF(b)||!!g.GF(b):!0};
g.k.gv=function(){nX(this,"annotations_module",this.gv,!0);var a=this.Cc.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
g.k.dy=function(){return this.J.getVideoData().dy()};
g.k.rA=function(){if(!this.Cc.get("ad"))try{mX(this)?nX(this,"ad",this.rA,!1,!0):g.bX(this.J,"ad")}catch(a){g.bX(this.J,"ad"),g.dr(a)}};
g.k.aa=function(){g.B.prototype.aa.call(this);pX(this,1,!0)};g.u(vX,g.P);g.k=vX.prototype;g.k.ML=function(a){a=hp(a);if(!ge(a,this.D)){var b=2;this.I&&(b|=8);this.D=a;uX(this,b,!0)}};
g.k.NL=function(){this.I&&uX(this,8,!0);uX(this,2,!1)};
g.k.Zs=function(a){var b=hp(a);ge(b,this.D)||(this.D=b,(a=g.ep(a))&&this.Oq(a)&&(uX(this,4,!0),this.u.Bb(this.C),this.C=this.u.R(this.target,"mouseover",this.hx),this.K=this.u.R(this.target,"mouseout",this.hx)))};
g.k.hx=function(a){a=gp(a);a&&this.Oq(a)||(this.D=new g.fe(NaN,NaN),$va(this))};
g.k.sJ=function(){uX(this,1,!0)};
g.k.cI=function(a){a=g.ep(a);a instanceof Element&&!(0<a.tabIndex)||uX(this,1,!0)};
g.k.kD=function(){this.I=!0;this.u.Bb(this.F);this.F=this.u.R(document,"mouseup",this.OL)};
g.k.OL=function(){this.I=!1;uX(this,8,!1);this.u.Bb(this.F);this.F=this.u.R(this.target,"mousedown",this.kD)};
g.k.NF=function(a){if(a=(a=a.changedTouches)&&a[0])this.ba=a.identifier,this.u.Bb(this.N),this.N=this.u.R(this.target,"touchend",this.IQ,void 0,!0),uX(this,1024,!0)};
g.k.IQ=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ba){var d=c;break}}d&&(this.u.Bb(this.N),this.N=this.u.R(this.target,"touchstart",this.NF,void 0,!0),uX(this,1024,!1))};
g.k.uj=function(){uX(this,2,!0)};
g.k.resize=function(){g.ZA&&$va(this)};
g.k.toString=function(){return g.P.prototype.toString.call(this)};g.u(g.wX,g.V);
g.wX.prototype.na=function(){var a=this.api.getVideoData(),b=this.api.T();if(a.Hc&&(a.Li||b.pfpChazalUi))var c=b.pfpChazalUi?[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{G:"path",L:"ytp-dni-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"path",L:"ytp-dni-large-play-button-bg",U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.I?(g.J(this.element,"ytp-touch-device",b.u),c=[b.I?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},S:[{G:"path",L:"ytp-large-play-button-bg",U:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",U:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"path",L:"ytp-large-play-button-bg",
U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},S:[{G:"path",L:"ytp-large-play-button-bg",
U:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{G:"path",U:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.ua("largePlayButtonChildren",c);a.Hc&&(a.Li||b.pfpChazalUi)&&(a=a.Li?a.Li:"#1f1f1f",this.ga("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.u(xX,g.V);g.k=xX.prototype;g.k.show=function(){var a=this;this.Wa||(this.C.R(this.api,"videodatachange",function(){a.u.ub()}),this.C.R(this.api,"videoplayerreset",function(){a.u.ub()}));
g.V.prototype.show.call(this)};
g.k.hide=function(){this.C&&g.Rr(this.C);g.V.prototype.hide.call(this)};
g.k.Qa=function(){this.u.ub()};
g.k.WK=function(a){var b=this.api.T();g.R(b.experiments,"disable_new_pause_state3")&&dC(b)&&(a=a.state.isCued()&&!a.mk.isCued()||g.QW(this.api)&&g.T(a.state,2),g.F(this.element,"transition-delay",a?"2s":""));this.u.ub()};
g.k.HP=function(){this.u.ub()};
g.k.VK=function(){this.B.stop();this.hide();this.u.ub()};
g.k.na=function(){var a=g.fI(this.api);if(3===this.api.getPresentingPlayerType()&&(a.Cb()||g.T(a,4)))var b=!0;else(b=g.LW(this.api).Cc.get("ypc"))&&b.nt?b=!0:(b=this.api.T(),b=g.T(a,2)&&NW(this.api)&&b.Kc?!0:!1);b?(b=!0,this.D.hide()):(this.D.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!g.R(this.api.T().experiments,"disable_new_pause_state3"),b=!(!g.T(a,2)||NW(this.api)||b&&g.O0(this.api.app))||g.T(a,1024)?!0:!1));b?(this.B.show(),a=this.api.getVideoData(),this.TQ(this.api.getPlaylist(),
a)):(this.B.hide(),g.T(a,1)||this.B.stop())};
g.k.TQ=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.PE&&!c.videoId)){var d=g.yG(this.api).getPlayerSize();var e=g.eC(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.yd("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.yd("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.yd("sddefault.jpg")||c.yd("hqdefault.jpg")||c.yd("mqdefault.jpg"))break;if(d=c.yd("default.jpg"))break}this.F.style.backgroundImage=
d?"url("+d+")":""};g.u(g.DX,g.V);g.DX.prototype.resize=function(){};
g.DX.prototype.B=function(a){var b=this;dwa(this);var c=a.yv,d=this.api.T();"GENERIC_WITHOUT_LINK"!==c||d.I?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.jc(GX(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Rj(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.I?this.jc(g.EX(a.errorMessage)):this.jc(GX(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.Ld(c,
{hl:a})),this.jc(GX(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.xa&&!d.B&&cwa(this,function(e){if(g.yX(e,b.api,!dC(b.api.T()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.va("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var bwa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.u(IX,g.Pr);IX.prototype.Oa=function(){var a=this;this.Cf();var b=this.J.getVideoData();if(b.isValid()){var c=[];this.J.T().N||c.push({src:b.yd("mqdefault.jpg")||"",sizes:"320x180"});this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:c});c=b=null;g.QW(this.J)&&(this.u["delete"]("nexttrack"),this.u["delete"]("previoustrack"),b=function(){a.J.nextVideo()},c=function(){a.J.previousVideo()});
HX(this,"nexttrack",b);HX(this,"previoustrack",c)}};
IX.prototype.Cf=function(){var a=g.fI(this.J);a=a.isError()?"none":g.RK(a)?"playing":"paused";this.mediaSession.playbackState=a};
IX.prototype.aa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.q(this.u),b=a.next();!b.done;b=a.next())HX(this,b.value,null);g.Pr.prototype.aa.call(this)};g.u(JX,g.V);JX.prototype.Oa=function(a,b){ewa(this,b);this.yc&&fwa(this,this.yc)};
JX.prototype.Tb=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&ewa(this,b);this.u&&fwa(this,a.state);this.yc=a.state};
JX.prototype.pc=function(){this.C.show();this.F=g.A()};
JX.prototype.bb=function(){this.C.hide();this.videoId&&(this.B[this.videoId]=(this.B[this.videoId]||0)+(g.A()-this.F));this.F=0};g.u(LX,g.V);LX.prototype.hide=function(){this.u.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
LX.prototype.B=function(a){KX(this,a.state)};
LX.prototype.C=function(){KX(this,g.fI(this.api))};
LX.prototype.D=function(){this.message.style.display="block"};g.u(g.MX,g.DM);g.k=g.MX.prototype;g.k.show=function(){var a=this.Me();g.DM.prototype.show.call(this);this.X&&(this.K.R(window,"blur",this.bb),this.K.R(document,"click",this.aN));a||this.V("show",!0)};
g.k.hide=function(){var a=this.Me();g.DM.prototype.hide.call(this);gwa(this);a&&this.V("show",!1)};
g.k.pc=function(a,b){this.u=a;this.W.show();b?(this.P||(this.P=this.K.R(this.J,"appresize",this.Qz)),this.Qz()):this.P&&(this.K.Bb(this.P),this.P=void 0)};
g.k.Qz=function(){var a=g.HW(this.J);this.u&&a.mn(this.element,this.u)};
g.k.bb=function(){var a=this.Me();gwa(this);this.W.hide();a&&this.V("show",!1)};
g.k.aN=function(a){var b=fp(a);b&&(g.Me(this.element,b)||this.u&&g.Me(this.u,b)||!g.wO(a))||this.bb()};
g.k.Me=function(){return this.Wa&&4!==this.W.state};g.u(OX,g.MX);OX.prototype.wp=function(a){this.C&&(a?(hwa(this),this.pc()):(this.seen&&iwa(this),this.bb()))};
OX.prototype.Cf=function(a){this.api.isMutedByMutedAutoplay()&&g.pI(a,2)&&this.bb()};
OX.prototype.onClick=function(){this.api.unMute();iwa(this)};g.u(g.QX,g.Pr);g.k=g.QX.prototype;g.k.init=function(){var a=g.fI(this.api);this.Bd(a);this.wj();this.Qa()};
g.k.Oa=function(a,b){if(this.Dw!==b.videoId){this.Dw=b.videoId;var c=this.xc;c.Y=b&&0<b.Hk.length?5E3:3E3;uX(c,512,!0);this.wj()}};
g.k.TM=function(){g.R(this.api.T().experiments,"web_player_nitrate_promo_tooltip")&&this.zF()};
g.k.hO=function(){this.Oa("newdata",this.api.getVideoData())};
g.k.yk=function(){var a=g.VW(this.api)&&g.WW(this.api);YW(this.api);return this.Wq||a||YW(this.api)||this.hw};
g.k.ag=function(){var a=!this.yk();g.J(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.Oq=function(a){try{if(!g.Me(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Qe(a);)a=a===this.api.getRootNode()?null:g.Le(a);return!!a};
g.k.jh=function(a){var b=this.api.getRootNode();g.J(b,"ytp-autohide",a);g.J(b,"ytp-autohide-active",!0);this.Vz.start(a?250:100);a&&(this.Xt=!1,g.Bn(b,"ytp-touch-mode"));this.fv=!a;b=this.api;a=!a;b.va("onVideoAreaChange");b.va(a?"onShowControls":"onHideControls")};
g.k.wM=function(){var a=this.api.getRootNode();g.J(a,"ytp-autohide-active",!1)};
g.k.OO=function(){this.wy=!0};
g.k.NO=function(a){if(g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))this.wy=!1,this.yy&&this.Bb(this.yy),0===this.mp&&TX(this,a)?(this.Sr(),this.dr.start(),this.yy=this.R(g.yG(this.api),"touchmove",this.OO,void 0,!0)):this.dr.stop();kwa(this)&&TX(this,a)&&PX(this);var b=this.au.Me();if(DB&&lwa(this,a))b&&g.ip(a);else if(this.xc.B||RX(this,fp(a))||this.au.Me()||(g.fI(this.api).isCued(),g.ip(a)),this.Xt=!0,g.I(this.api.getRootNode(),
"ytp-touch-mode"),this.xc.uj(),g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))if(b=g.fI(this.api),!(!this.api.Vd()||g.T(b,2)&&NW(this.api)||g.T(b,64))){b=Date.now()-this.fC;this.mp+=1;if(350>=b){this.ho=!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.mp-1);0<d&&d<b?(this.Jp(-1,d,c,e),this.api.seekBy(-10*
this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Jp(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.ip(a)}this.fC=Date.now();this.nF.start()}};
g.k.JO=function(a){lwa(this,a)||(kwa(this)||!TX(this,a)||this.dr.isActive()||(PX(this),g.ip(a)),this.ho&&(this.ho=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Fq("embedsRequestStorageAccessResult",{resolved:!0});lx(!0);Fp();window.location.reload()},function(){g.Fq("embedsRequestStorageAccessResult",{resolved:!1});
a.An()})};
g.k.Sr=function(){};
g.k.Rl=function(){};
g.k.Jp=function(){};
g.k.zF=function(){};
g.k.An=function(){var a=g.fI(this.api);g.T(a,2)&&NW(this.api)||(g.RK(a)?this.api.pauseVideo():(this.api.app.ce=!0,this.api.playVideo(),this.rm&&document.activeElement===this.rm.D.element&&this.api.getRootNode().focus()))};
g.k.KO=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!RX(this,fp(a)))if(a=this.api.T(),(g.R(this.api.T().experiments,"player_doubletap_to_seek")||g.R(this.api.T().experiments,"embeds_enable_mobile_dtts"))&&this.ho)this.ho=!1;else if(a.ka&&3!==c)try{this.api.toggleFullscreen()["catch"](function(d){b.Eo(d)})}catch(d){this.Eo(d)}};
g.k.Eo=function(a){String(a).includes("fullscreen error")?g.er(a):g.dr(a)};
g.k.LO=function(a){mwa(this,.3,a.scale);g.ip(a)};
g.k.MO=function(a){mwa(this,.1,a.scale)};
g.k.Qa=function(){var a=g.yG(this.api).getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.xc.resize();g.J(b,"ytp-fullscreen",this.api.isFullscreen());g.J(b,"ytp-large-width-mode",c);g.J(b,"ytp-small-mode",this.Sf());g.J(b,"ytp-big-mode",this.zd());this.bd&&this.bd.resize(a)};
g.k.Cf=function(a){this.Bd(a.state);this.wj()};
g.k.Lv=function(){var a=!!this.Dw&&!g.MW(this.api),b=2===this.api.getPresentingPlayerType(),c=this.api.T(),d=this.api.getVideoData(1).Hc&&c.pfpChazalUi;if(b){if(cAa&&g.R(c.experiments,"enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=qX(g.LW(this.api));return a&&b.fy()&&!d}return a&&(c.si||this.api.isFullscreen()||c.Pd)&&!d};
g.k.wj=function(){var a=this.Lv();this.Rh!==a&&(this.Rh=a,g.J(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Bd=function(a){var b;(b=a.isCued())||(b=((b=g.Z(this.api.app,void 0))?bW(b):!0)&&3!==this.api.getPresentingPlayerType());b!==this.isCued&&(this.isCued=b,this.Ay&&this.Bb(this.Ay),this.Ay=this.R(g.yG(this.api),"touchstart",this.NO,void 0,b));var c=a.Cb()&&!g.T(a,32)||ZW(this.api);uX(this.xc,128,!c);c=3===this.api.getPresentingPlayerType();uX(this.xc,256,c);c=this.api.getRootNode();if(g.T(a,2))var d=[P1.ENDED];else d=[],g.T(a,8)?d.push(P1.PLAYING):g.T(a,4)&&d.push(P1.PAUSED),g.T(a,1)&&!g.T(a,32)&&
d.push(P1.BUFFERING),g.T(a,32)&&d.push(P1.SEEKING),g.T(a,64)&&d.push(P1.UNSTARTED);g.Eb(this.Au,d)||(g.Cn(c,this.Au),this.Au=d,g.An(c,d));d=this.api.T();var e=g.T(a,2);g.J(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.J(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.hw);g.T(a,128)&&!g.GB(d)?(this.bd||(this.bd=new g.DX(this.api),g.C(this,this.bd),g.$O(this.api,this.bd.element,4)),this.bd.B(a.stateData),this.bd.show()):this.bd&&(this.bd.dispose(),this.bd=null)};
g.k.Ni=function(){return g.VW(this.api)&&g.WW(this.api)?(this.api.setCardsVisible(!1,!1),!0):g.MW(this.api)?(g.OW(this.api,!0),!0):!1};
g.k.wp=function(a){this.hw=a;this.ag()};
g.k.zd=function(){return!1};
g.k.Sf=function(){return!this.zd()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.Xg=function(){return this.Xt};
g.k.il=function(){return null};
g.k.Nh=function(){var a=g.yG(this.api).getPlayerSize();return new g.ig(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.mn=function(){};
g.k.showControls=function(a){if(void 0!==a){var b=g.yG(this.api);LB(b.app.T());b.F=!a;RH(b)}};
g.k.uj=function(){};
g.k.oB=function(){return null};g.u(UX,g.V);UX.prototype.onClick=function(){this.J.va("BACK_CLICKED")};g.u(g.VX,g.V);g.VX.prototype.show=function(){g.V.prototype.show.call(this);this.u.ub()};
g.VX.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)};
g.VX.prototype.Rl=function(a){a?g.T(g.fI(this.J),64)||WX(this,hN(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?WX(this,lN(),"Stop live playback"):WX(this,fN(),"Pause"))};g.u(YX,g.V);g.k=YX.prototype;g.k.YF=function(){g.VW(this.J)&&g.WW(this.J)&&this.Me()&&this.bb()};
g.k.EQ=function(){this.bb();g.Po("iv-teaser-clicked",null!=this.u);this.J.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.SK=function(){g.Po("iv-teaser-mouseover");this.u&&this.u.stop()};
g.k.eP=function(a){this.u||!a||g.WW(this.J)||this.B&&this.B.isActive()||(this.pc(a),g.Po("iv-teaser-shown"))};
g.k.pc=function(a){this.ua("text",a.teaserText);this.element.setAttribute("dir",g.Jn(a.teaserText));this.D.show();this.B=new g.H(function(){g.I(this.J.getRootNode(),"ytp-cards-teaser-shown");this.Jy()},0,this);
this.B.start();ZX(this.Gh,!1);this.u=new g.H(this.bb,580+a.durationMs,this);this.u.start();this.F.push(this.ra("mouseover",this.QC,this));this.F.push(this.ra("mouseout",this.PC,this))};
g.k.Jy=function(){if(g.GB(this.J.T())&&this.Wa){var a=this.Gh.element.offsetLeft,b=g.te("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Gh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.GH=function(){g.GB(this.J.T())&&this.W.Sf()&&this.Wa&&this.P.start()};
g.k.QC=function(){this.I.stop();this.u&&this.u.isActive()&&this.K.start()};
g.k.PC=function(){this.K.stop();this.u&&!this.u.isActive()&&this.I.start()};
g.k.PN=function(){this.u&&this.u.stop()};
g.k.ON=function(){this.bb()};
g.k.bb=function(){!this.u||this.C&&this.C.isActive()||(g.Po("iv-teaser-hidden"),this.D.hide(),g.Bn(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.H(function(){for(var a=g.q(this.F),b=a.next();!b.done;b=a.next())this.Bb(b.value);this.F=[];this.u&&(this.u.dispose(),this.u=null);ZX(this.Gh,!0)},330,this),this.C.start())};
g.k.Me=function(){return this.Wa&&4!==this.D.state};
g.k.aa=function(){var a=this.J.getRootNode();a&&g.Bn(a,"ytp-cards-teaser-shown");g.fg(this.B,this.C,this.u);g.V.prototype.aa.call(this)};g.u($X,g.V);g.k=$X.prototype;g.k.pc=function(){this.B.show();g.Po("iv-button-shown")};
g.k.bb=function(){g.Po("iv-button-hidden");this.B.hide()};
g.k.Me=function(){return this.Wa&&4!==this.B.state};
g.k.aa=function(){this.u&&this.u();g.V.prototype.aa.call(this)};
g.k.mN=function(){g.Po("iv-button-mouseover")};
g.k.onClicked=function(a){g.VW(this.J);var b=g.zn(this.J.getRootNode(),"ytp-cards-teaser-shown");g.Po("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.J.setCardsVisible(!g.WW(this.J),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};var Z1={},bY=(Z1.BUTTON="ytp-button",Z1.TITLE_NOTIFICATIONS="ytp-title-notifications",Z1.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",Z1.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",Z1.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",Z1);g.u(cY,g.V);cY.prototype.onClick=function(){g.eX(this.api,this.element);var a=!this.u;this.ua("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.ua("pressed",a);owa(this,a)};g.u(g.eY,g.V);g.eY.prototype.B=function(){g.I(this.element,"ytp-sb-subscribed")};
g.eY.prototype.C=function(){g.Bn(this.element,"ytp-sb-subscribed")};g.u(fY,g.V);g.k=fY.prototype;g.k.Px=function(){twa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.Dv=function(){if(rwa(this)&&!this.isExpanded()){this.ua("flyoutUnfocusable","false");this.ua("channelTitleFocusable","0");this.C&&this.C.stop();this.subscribeButton&&(this.subscribeButton.show(),g.KM(this.api,this.subscribeButton.element,!0));var a=this.api.getVideoData();this.B&&a.xn&&a.subscribed&&(this.B.show(),g.KM(this.api,this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.cv=function(){this.ua("flyoutUnfocusable","true");this.ua("channelTitleFocusable","-1");this.C&&this.C.start()};
g.k.na=function(){var a=this.api.getVideoData(),b=this.api.T(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Ei&&!!a.Pe:g.GB(b)&&(c=!!a.videoId&&!!a.Ei&&!!a.Pe);b=g.rC(this.api.T())+a.Ei;g.GB(this.api.T())&&(b=g.Ld(b,g.KT({},"emb_ch_name_ex")));var d=a.Ei,e=a.Pe,f=a.author;d=void 0===d?"":d;e=void 0===e?"":e;f=void 0===f?"":f;c?(d=g.rC(this.api.T())+d,this.u.style.backgroundImage="url("+e+")",this.ua("channelLink",d),this.ua("channelLogoLabel",g.ZI("Photo image of $CHANNEL_NAME",
{CHANNEL_NAME:f})),g.I(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Bn(this.api.getRootNode(),"ytp-title-enable-channel-logo");g.KM(this.api,this.u,c&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=a.Cg);this.ua("expandedTitle",a.oo);this.ua("channelTitleLink",b);this.ua("expandedSubtitle",a.expandedSubtitle)};g.u(g.hY,g.DM);g.hY.prototype.ua=function(a,b){g.DM.prototype.ua.call(this,a,b);this.V("size-change")};g.u(kY,g.DM);kY.prototype.ED=function(){this.V("size-change")};
kY.prototype.focus=function(){this.content.focus()};
kY.prototype.zM=function(){this.V("back")};g.u(g.lY,kY);g.lY.prototype.Kb=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{var c=g.Ab(this.items,a,uwa);if(0<=c)return;c=~c;g.xb(this.items,c,0,a);g.Ie(this.menuItems.element,a.element,c)}a.subscribe("size-change",this.ox,this);this.menuItems.V("size-change")};
g.lY.prototype.Kd=function(a){a.unsubscribe("size-change",this.ox,this);this.la()||(g.rb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.V("size-change"))};
g.lY.prototype.ox=function(){this.menuItems.V("size-change")};
g.lY.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.u(nY,g.hY);nY.prototype.u=function(a){g.jp(a)||39!==g.kp(a)||(this.element.click(),g.ip(a))};g.u(g.pY,g.hY);g.pY.prototype.onClick=function(){this.setValue(!this.checked);this.V("select",this.checked)};
g.pY.prototype.getValue=function(){return this.checked};
g.pY.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.u(qY,g.lY);g.k=qY.prototype;g.k.VM=function(){BX(this.om.element)};
g.k.IP=function(){sY(this,this.J.getDebugText(!0))&&WX(this.Ib,QM())};
g.k.JP=function(){sY(this,this.J.getVideoEmbedCode())&&WX(this.Ib,YM());g.eX(this.J,this.Pg.element);zW("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.KP=function(){sY(this,this.J.getVideoUrl(!0,!0))&&WX(this.Ib,bN());g.eX(this.J,this.getVideoUrl.element);zW("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.LP=function(){sY(this,this.J.getVideoUrl(!1,!0))&&WX(this.Ib,bN());g.eX(this.J,this.Tg.element);zW("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.QD=function(a){this.dh.setValue(a)};
g.k.MP=function(){var a=this.dh.getValue();fza(this.J.app,a);this.Sa.bb();g.eX(this.J,this.dh.element)};
g.k.EO=function(a){this.J.reportPlaybackIssue();if(g.yX(a,this.J,!dC(this.J.T()))){a=this.J;var b=a.app.getFeedbackProductData();a.va("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Sa.bb()};
g.k.VO=function(){this.J.showVideoInfo();this.Sa.bb()};
g.k.Oa=function(a,b){this.oh(b)};
g.k.oh=function(a){var b=this.J.T(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.N&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.Ka&&(b.fmt=pu(a.Ka)),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.ug&&(b.partnerid=a.ug),b=g.Ld("//support.google.com/googleplay/",b));g.CM(this.Pg,d&&a.allowEmbed);g.CM(this.getVideoUrl,d);g.CM(this.Tg,d&&
!a.isLivePlayback);this.Kp.jc(b,"href");g.CM(this.dh,!a.isLivePlayback&&!c)};
g.k.xb=function(a){g.lY.prototype.xb.call(this,a);g.KM(this.J,this.Pg.element,a);g.KM(this.J,this.getVideoUrl.element,a);g.KM(this.J,this.Tg.element,a);g.KM(this.J,this.dh.element,a)};g.u(g.tY,g.MX);g.k=g.tY.prototype;g.k.show=function(){g.MX.prototype.show.call(this);this.En()};
g.k.hide=function(){g.MX.prototype.hide.call(this);1<this.B.length&&g.wY(this)};
g.k.En=function(){xwa(this);this.Wa&&(wwa(this),g.Dg(this.element,this.size))};
g.k.Hf=function(){var a=this.B.pop(),b=uY(this);vY(this,a,b,!0)};
g.k.aL=function(a){if(!g.jp(a))switch(g.kp(a)){case 27:this.bb();g.ip(a);break;case 37:1<this.B.length&&this.Hf();g.ip(a);break;case 39:g.ip(a)}};
g.k.focus=function(){uY(this).focus()};
g.k.aa=function(){g.MX.prototype.aa.call(this);this.F&&this.F.dispose();this.C&&this.C.dispose()};g.u(g.xY,g.tY);g.k=g.xY.prototype;g.k.show=function(){this.D||(this.D=new qY(this.J,this.Y,this,this.Ib),g.C(this,this.D),g.rY(this,this.D));this.D.QD(this.J.app.I.al());g.tY.prototype.show.call(this);g.KM(this.J,this.element,!0);this.D.xb(!0)};
g.k.hide=function(){zwa(this);g.tY.prototype.hide.call(this);g.KM(this.J,this.element,!1);this.D&&this.D.xb(!1)};
g.k.SM=function(a){var b=fp(a);if(!(this.Wa||b&&(Se(b,"a")||Se(b,null,"ytp-no-contextmenu",void 0)))){g.ip(a);Awa(this);b=this.J.getVideoData();g.J(this.element,"ytp-dni",b.Hc);this.element.style.left="";this.element.style.top="";a=hp(a);a.x++;a.y++;this.pc();var c=document.body;b=new gg(0,Infinity,Infinity,0);var d=pe(c);for(var e=d.u.body,f=d.u.documentElement,h=xe(d.u);c=gba(c);)if(!(g.ye&&0==c.clientWidth||g.Ae&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=ug(c,"overflow")){var l=g.yg(c),
m=new g.fe(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.u;d=we(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.ig(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.wg(this.element,new g.fe(d.left,d.top));g.Rr(this.I);this.I.R(document,"contextmenu",this.bN);this.I.R(this.J,"fullscreentoggled",this.TK);this.I.R(this.J,"pageTransition",this.UK)}};
g.k.bN=function(a){if(!g.jp(a)){var b=fp(a);g.Me(this.element,b)||this.bb();this.J.T().disableNativeContextMenu&&g.ip(a)}};
g.k.TK=function(){this.bb();Awa(this)};
g.k.UK=function(){this.bb()};g.u(yY,g.V);yY.prototype.onClick=function(){return g.Ue(this,function b(){var c=this,d,e,f,h;return g.Aa(b,function(l){if(1==l.u)return d=c.api.T(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.ra(l,Dwa(c,h),2);l.B&&Bwa(c);g.eX(c.api,c.element);l.u=0})})};
yY.prototype.na=function(){var a=this.api.getVideoData();this.ua("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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.ua("title-attr","Copy link");var b=g.yG(this.api).getPlayerSize().width;this.visible=!!a.videoId&&
240<=b&&a.Vp;g.J(this.element,"ytp-copylink-button-visible",this.visible);g.CM(this,this.visible);AY(this.tooltip);g.KM(this.api,this.element,this.visible&&this.N)};
yY.prototype.xb=function(a){g.V.prototype.xb.call(this,a);g.KM(this.api,this.element,this.visible&&a)};
yY.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-copylink-button-visible")};g.u(BY,g.V);BY.prototype.show=function(){g.V.prototype.show.call(this);this.u.ub()};
BY.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)};
BY.prototype.Jp=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&g.eX(this.J,e);this.u.lg();this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*g.yG(this.J).getPlayerSize().height;e=g.yG(this.J).getPlayerSize();e=e.width/3-3*e.height;var h=this.ga("ytp-doubletap-static-circle");h.style.width=f+"px";h.style.height=f+"px";1===a?(h.style.left="",h.style.right=e+"px"):-1===a&&(h.style.right="",h.style.left=e+"px");var l=2.5*f;f=l/2;h=this.ga("ytp-doubletap-ripple");h.style.width=
l+"px";h.style.height=l+"px";1===a?(a=g.yG(this.J).getPlayerSize().width-b+Math.abs(e),h.style.left="",h.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,h.style.right="",h.style.left=a-f+"px");h.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.ga("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");Ewa(this,d)};var uBa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(uBa).reduce(function(a,b){a[uBa[b]]=b;return a},{});
var vBa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(vBa).reduce(function(a,b){a[vBa[b]]=b;return a},{});
var wBa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(wBa).reduce(function(a,b){a[wBa[b]]=b;return a},{});var $1,xBa;$1=[{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"}];xBa=[{option:0,text:CY(0)},{option:.25,text:CY(.25)},{option:.5,text:CY(.5)},{option:.75,text:CY(.75)},{option:1,text:CY(1)}];
g.FY=[{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:$1},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:CY(.5)},{option:-1,text:CY(.75)},{option:0,text:CY(1)},{option:1,text:CY(1.5)},{option:2,text:CY(2)},
{option:3,text:CY(3)},{option:4,text:CY(4)}]},{option:"background",text:"Background color",options:$1},{option:"backgroundOpacity",text:"Background opacity",options:xBa},{option:"windowColor",text:"Window color",options:$1},{option:"windowOpacity",text:"Window opacity",options:xBa},{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:CY(.25)},{option:.5,text:CY(.5)},{option:.75,text:CY(.75)},{option:1,text:CY(1)}]}];g.u(g.EY,g.Pr);g.k=g.EY.prototype;
g.k.AB=function(a){var b=!1,c=g.kp(a),d=fp(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.T();g.jp(a)?(e=!1,h=!0):l.kd&&(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);XX(this.Ib,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);XX(this.Ib,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Vd()&&(this.api.seekTo(0),
h=f=!0);break;case 35:this.api.Vd()&&(this.api.seekTo(Infinity),h=f=!0)}}b&&this.Zx(!0);(b||h)&&this.xc.uj();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.ip(a);l.C&&(a={keyCode:g.kp(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.jp(a),fullscreen:this.api.isFullscreen()},this.api.va("onKeyPress",a))};
g.k.BB=function(a){this.handleGlobalKeyUp(g.kp(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.SW(g.LW(this.api));c&&(c=c.Ak)&&c.Wa&&(c.yB(a),b=!0);9===a&&(this.Zx(!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){e=!1;c=this.api.T();if(c.kd)return e;var h=g.SW(g.LW(this.api));if(h&&(h=h.Ak)&&h.Wa)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:e=h.xB(a)}c.I||e||(e=f||String.fromCharCode(a).toLowerCase(),this.u+=e,0==="awesome".indexOf(this.u)?(e=!0,7===this.u.length&&(f=this.api.getRootNode(),h=!g.zn(f,"ytp-color-party"),g.J(f,"ytp-color-party",h))):(this.u=e,e=0==="awesome".indexOf(this.u)));if(!e){f=(f=this.api.getVideoData())?f.Aa:
[];switch(a){case 80:b&&!c.Y&&(WX(this.Ib,iN(),"Previous"),this.api.previousVideo(),e=!0);break;case 78:b&&!c.Y&&(WX(this.Ib,dN(),"Next"),this.api.nextVideo(),e=!0);break;case 74:this.api.Vd()&&(WX(this.Ib,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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()),e=!0);break;case 76:this.api.Vd()&&(WX(this.Ib,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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()),e=!0);break;case 37:this.api.Vd()&&(d&&c.ca("web_player_seek_chapters_by_shortcut")?(b=1E3*this.api.getCurrentTime(),b=DY(f,b)-1,-1!==b&&(this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.ca("web_player_seek_chapters_by_shortcut")&&this.B?Fwa(this.B,-1):WX(this.Ib,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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()),e=!0));break;case 39:this.api.Vd()&&(d&&c.ca("web_player_seek_chapters_by_shortcut")?(b=1E3*this.api.getCurrentTime(),b=DY(f,b)+1,b=b<f.length?b:-1,-1!==b&&(this.api.seekTo(f[b].startTime/1E3),e=!0)):(c.ca("web_player_seek_chapters_by_shortcut")&&null!=this.B?Fwa(this.B,1):WX(this.Ib,{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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()),e=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),XX(this.Ib,this.api.getVolume(),!1)):(this.api.mute(),XX(this.Ib,0,!0));e=!0;break;case 32:case 75:c.Y||(e=!g.RK(g.fI(this.api)),this.Ib.Rl(e),e?this.api.playVideo():this.api.pauseVideo(),e=!0);break;case 190:b?c.Ob&&(e=this.api.getPlaybackRate(),this.api.setPlaybackRate(e+.25,!0),nwa(this.Ib,!1),e=!0):this.api.Vd()&&(Hwa(this,1),e=!0);break;case 188:b?c.Ob&&(e=this.api.getPlaybackRate(),this.api.setPlaybackRate(e-
.25,!0),nwa(this.Ib,!0),e=!0):this.api.Vd()&&(Hwa(this,-1),e=!0);break;case 70:awa(this.api)&&(this.api.toggleFullscreen(),e=!0);break;case 27:this.D()&&(e=!0)}if("3"!==c.controlsType)switch(a){case 67:g.lX(g.LW(this.api))&&(c=this.api.getOption("captions","track"),this.api.toggleSubtitles(),WX(this.Ib,XM(),!c||c&&!c.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),e=!0);break;case 79:GY(this,"textOpacity");break;case 87:GY(this,"windowOpacity");break;case 187:case 61:GY(this,
"fontSizeIncrement",!1,!0);break;case 189:case 173:GY(this,"fontSizeIncrement",!0,!0)}var l;48<=a&&57>=a?l=a-48:96<=a&&105>=a&&(l=a-96);null!=l&&this.api.Vd()&&(a=this.api.getProgressState(),this.api.seekTo(l/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),e=!0);e&&this.xc.uj()}return e};
g.k.Zx=function(a){g.J(this.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.J(this.contextMenu.element,"ytp-probably-keyboard-focus",a)};
g.k.aa=function(){this.C.lg();g.Pr.prototype.aa.call(this)};g.u(HY,g.V);HY.prototype.na=function(){var a=g.GB(this.J.T())&&g.QW(this.J)&&g.T(g.fI(this.J),128),b=this.J.getPlayerSize();this.visible=this.u.Sf()&&!a&&240<=b.width;g.J(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&AY(this.tooltip);g.KM(this.J,this.element,this.visible&&this.N)};
HY.prototype.xb=function(a){g.V.prototype.xb.call(this,a);g.KM(this.J,this.element,this.visible&&a)};
HY.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-overflow-button-visible")};g.u(IY,g.MX);g.k=IY.prototype;g.k.ZK=function(a){a=fp(a);g.Me(this.element,a)&&(g.Me(this.B,a)||g.Me(this.closeButton,a)||NX(this))};
g.k.bb=function(){g.MX.prototype.bb.call(this);this.tooltip.Fh(this.element)};
g.k.show=function(){this.Wa&&this.J.V("OVERFLOW_PANEL_OPENED");g.MX.prototype.show.call(this);Iwa(this,!0)};
g.k.hide=function(){g.MX.prototype.hide.call(this);Iwa(this,!1)};
g.k.YK=function(a){!a&&this.Me()&&NX(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.Wa){b.focus();break}};g.u(KY,g.V);KY.prototype.wc=function(a){this.element.setAttribute("aria-checked",String(a))};
KY.prototype.onClick=function(a){g.yX(a,this.api)&&this.api.playVideoAt(this.index)};g.u(LY,g.MX);g.k=LY.prototype;g.k.show=function(){g.MX.prototype.show.call(this);this.C.R(this.api,"videodatachange",this.Xw);this.C.R(this.api,"onPlaylistUpdate",this.Xw);this.Xw()};
g.k.hide=function(){g.MX.prototype.hide.call(this);g.Rr(this.C);this.updatePlaylist(null)};
g.k.Xw=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.It=function(){var a=this.playlist,b=a.ks;if(b===this.D)this.selected.wc(!1),this.selected=this.B[a.index];else{for(var c=g.q(this.B),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.getLength();this.B=[];for(d=0;d<c;d++){var e=new KY(this.api,a,d);this.B.push(e);e.da(this.items)}this.selected=this.B[a.index];this.D=b}this.selected&&this.selected.wc(!0)};
g.k.iP=function(a){var b=this.api.getVideoUrl(!0);g.zX(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.It,this),this.playlist=a,this.D=null,a){a.subscribe("shuffle",this.It,this);var b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.ZI(c,d),playlisturl:this.api.getVideoUrl(!0)});this.It()}else this.Wa&&this.hide();
else this.playlist&&this.It()};
g.k.focus=function(){this.selected.focus()};
g.k.aa=function(){this.hide();g.MX.prototype.aa.call(this)};g.u(MY,g.V);
MY.prototype.na=function(){var a=g.GB(this.api.T());g.J(this.element,"ytp-playlist-menu-button-tiny",400>g.yG(this.api).getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.ZI("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.ZI("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Wa||(this.show(),AY(this.tooltip)),this.visible=!0):this.Wa&&
(this.hide(),AY(this.tooltip))};
MY.prototype.xb=function(a){g.V.prototype.xb.call(this,a);g.KM(this.api,this.element,this.visible&&a)};
MY.prototype.u=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.na,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.na,this);this.na()};g.u(NY,g.V);g.k=NY.prototype;
g.k.lv=function(a){if(!this.C){if(a){this.tooltipRenderer=a;var b,c,d,e,f,h,l,m;a=this.tooltipRenderer.text;var n=!1;(null===(b=null===a||void 0===a?void 0:a.runs)||void 0===b?0:b.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),n=!0);g.Fg(this.title,n);b=this.tooltipRenderer.detailsText;a=!1;(null===(c=null===b||void 0===b?void 0:b.runs)||void 0===c?0:c.length)&&b.runs[0].text&&(this.update({details:b.runs[0].text.toString()}),a=!0);g.Fg(this.details,a);c=this.tooltipRenderer.acceptButton;
b=!1;(null===(f=null===(e=null===(d=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===d?void 0:d.text)||void 0===e?void 0:e.runs)||void 0===f?0:f.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),b=!0);g.Fg(this.acceptButton,b);d=this.tooltipRenderer.dismissButton;e=!1;(null===(m=null===(l=null===(h=null===d||void 0===d?void 0:d.buttonRenderer)||void 0===h?void 0:h.text)||void 0===l?void 0:l.runs)||void 0===m?0:m.length)&&
d.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:d.buttonRenderer.text.runs[0].text.toString()}),e=!0);g.Fg(this.dismissButton,e)}this.u=Jwa(this);this.B=!1;g.CM(this,!0);(h=!this.u)||(h=this.u,l=window.getComputedStyle(h),h="none"===l.display||"hidden"===l.visibility||"true"===h.getAttribute("aria-hidden"));h||this.J.app.visibility.u?g.CM(this,!1):(h=g.Eg(this.u),h.width&&h.height?(this.F.mn(this.element,this.u),l=g.yG(this.J).getPlayerSize().height-g.Eg(this.element).height-h.height-
12,this.element.style.top=l+"px",l=this.ga("ytp-promotooltip-pointer"),m=g.Cg(this.u,this.J.getRootNode()),d=this.J.isFullscreen()?18:12,h=m.x-Number(this.element.style.left.replace(/[^\d\.]/g,""))+h.width/2-d,l.style.left=h+"px"):g.CM(this,!1));this.D||(this.D=!0,OY(this,0))}};
g.k.UM=function(){g.CM(this,!1);this.B=!0};
g.k.XL=function(){this.C=!0;OY(this,1);g.CM(this,!1)};
g.k.ZM=function(){this.C=!0;OY(this,2);g.CM(this,!1)};
g.k.Qa=function(){this.B||(this.u||(this.u=Jwa(this)),this.lv())};g.u(PY,g.V);PY.prototype.u=function(a){g.CM(this,g.T(a.state,2))};
PY.prototype.onClick=function(){g.fI(this.J);this.J.playVideo()};g.u(g.QY,g.V);g.QY.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);navigator.share?navigator.share({title:b.title,url:a}):(this.u.Ni(),NX(this.C,this.element,!1));g.eX(this.api,this.element)};
g.QY.prototype.na=function(){var a=this.api.T(),b=this.api.getVideoData();this.u.Sf();var c=g.GB(a)&&g.QW(this.api)&&g.T(g.fI(this.api),128);this.ua("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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.Vp||c;c=g.yG(this.api).getPlayerSize().width;this.visible=!!b.videoId&&c>=this.B&&!a;g.J(this.element,"ytp-share-button-visible",this.visible);g.CM(this,this.visible);AY(this.tooltip);g.KM(this.api,this.element,this.visible&&this.N)};
g.QY.prototype.xb=function(a){g.V.prototype.xb.call(this,a);g.KM(this.api,this.element,this.visible&&a)};
g.QY.prototype.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.element,"ytp-share-button-visible")};g.u(g.RY,g.MX);g.k=g.RY.prototype;g.k.gL=function(a){a=fp(a);g.Me(this.F,a)||g.Me(this.closeButton,a)||NX(this)};
g.k.bb=function(){g.MX.prototype.bb.call(this);this.tooltip.Fh(this.element)};
g.k.show=function(){var a=this.Wa;g.MX.prototype.show.call(this);this.na();a||this.api.va("onSharePanelOpened")};
g.k.na=function(){var a=this;g.I(this.element,"ytp-share-panel-loading");g.Bn(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId(),d=c&&this.D.checked,e=this.api.T();g.R(e.experiments,"web_player_innertube_share_panel")?wU(zG(this.api.app),b.getSharePanelCommand,{includeListId:d}).then(function(f){Lwa(a,f)}):(g.J(this.element,"ytp-share-panel-has-playlist",!!c),b={action_get_share_info:1,
video_id:b.videoId},e.Xc&&(b.authuser=e.Xc),e.pageId&&(b.pageid=e.pageId),g.GB(e)&&g.KT(b,"emb_share"),d&&(b.list=c),g.oq(e.K+"share_ajax",{method:"GET",onError:function(){Nwa(a)},
onSuccess:function(f,h){h?Lwa(a,h):Nwa(a)},
Dg:b,withCredentials:!0}));c=this.api.getVideoUrl(!0,!0,!1,!1);this.ua("link",c);this.ua("linkText",c);this.ua("shareLinkWithUrl",g.ZI("Share link $URL",{URL:c}));BX(this.C)};
g.k.fL=function(a){!a&&this.Me()&&NX(this)};
g.k.focus=function(){this.C.focus()};
g.k.aa=function(){g.MX.prototype.aa.call(this);Mwa(this)};g.u(UY,g.V);g.k=UY.prototype;g.k.aa=function(){Qwa(this);g.V.prototype.aa.call(this)};
g.k.AM=function(a){a.target!==this.dismissButton.element&&(Pwa(this,!1),this.J.va("innertubeCommand",this.onClickCommand))};
g.k.BM=function(){this.dismissed=!0;Pwa(this,!0);this.mi()};
g.k.lO=function(a){this.X=a;this.mi()};
g.k.Oa=function(a,b){var c,d=!!b.videoId&&this.videoId!==b.videoId;d&&(this.videoId=b.videoId,this.dismissed=!1,this.B=!0);var e=b.shoppingOverlayRenderer;this.u=this.C=this.X=this.enabled=!1;if(e){this.enabled=!0;if(d){var f,h;this.fa||(g.GM(this.J,this.badge.element,this.badge,!0),g.GM(this.J,this.dismissButton.element,this.dismissButton,!0),this.fa=!0);(this.F=!!e.trackingParams)&&g.HM(this.J,this.badge.element,(null===e||void 0===e?void 0:e.trackingParams)||null);(this.I=!(null===(f=e.dismissButton)||
void 0===f||!f.trackingParams))&&g.HM(this.J,this.dismissButton.element,(null===(h=null===e||void 0===e?void 0:e.dismissButton)||void 0===h?void 0:h.trackingParams)||null)}this.text=g.U(e.text);if(d=null===(c=e.dismissButton)||void 0===c?void 0:c.a11yLabel)this.ka=g.U(d);this.onClickCommand=e.onClickCommand;Qwa(this);e.timing?(f=e.timing,e=[],d=f.visible,f=f.expanded,d&&e.push(new g.oD(1E3*d.startSec,1E3*d.endSec,{priority:7,namespace:"shopping_overlay_visible"})),f&&e.push(new g.oD(1E3*f.startSec,
1E3*f.endSec,{priority:7,namespace:"shopping_overlay_expanded"})),g.kM(this.J,e)):this.C=this.u=!0}else this.I=this.F=this.u=this.C=this.enabled=!1;g.Ne(g.te("ytp-shopping-overlay-badge-title",this.element),this.text?this.text:"");this.dismissButton.element.setAttribute("aria-label",this.ka?this.ka:"");TY(this);this.mi()};
g.k.mi=function(){VY(this)?this.K.show():this.K.hide();Owa(this)};
g.k.tg=function(a){(this.u=a)?(SY(this),TY(this,!1)):this.ea.start();this.mi()};
g.k.wQ=function(){if(this.expanded){this.W.show();var a=this.D.element.scrollWidth}else a=this.D.element.scrollWidth,this.W.hide();this.oa=34+a;g.J(this.badge.element,"ytp-shopping-overlay-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.oa)+"px";this.P.start()};
g.k.XH=function(){this.badge.element.style.width=(this.expanded?this.oa:34)+"px";this.Y.start()};
g.k.hL=function(){this.enabled=!1;this.mi()};
g.k.FM=function(a){this.ha=1===a;this.mi()};g.u(WY,g.MX);WY.prototype.show=function(){g.MX.prototype.show.call(this);this.B.start()};
WY.prototype.hide=function(){g.MX.prototype.hide.call(this);this.B.stop()};g.u(XY,g.V);XY.prototype.onClick=function(){var a=g.Z(this.J.app);a&&a.B&&a.B.Ow()};
XY.prototype.na=function(){var a=g.Z(this.J.app);g.CM(this,!!a&&a.uf);this.ua("icon",this.J.zl()?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{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 yq;g.u(YY,g.V);g.k=YY.prototype;
g.k.ep=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.cX(this.J)&&400<=g.yG(this.J).getPlayerSize().width)this.B||(this.B=!0,g.CM(this,this.B),this.u.push(this.R(this.J,"videodatachange",this.ep)),this.u.push(this.R(this.J,"videoplayerreset",this.ep)),this.u.push(this.R(this.J,"onPlaylistUpdate",this.ep)),this.u.push(this.R(this.J,"autonavchange",this.OC)),a=this.J.getVideoData(),this.OC(a.autonavState));else{this.B=!1;g.CM(this,this.B);a=g.q(this.u);for(var b=a.next();!b.done;b=
a.next())this.Bb(b.value)}};
g.k.OC=function(a){this.isChecked=1!==a||!Hr(Fr.getInstance(),140);Rwa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;var a=this.J,b=this.isChecked?2:1;Aza(a.app,b);b&&R0(a.app,b);Rwa(this)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.ga("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.u(g.$Y,g.V);g.$Y.prototype.aa=function(){this.u=null;g.V.prototype.aa.call(this)};g.u(aZ,g.V);aZ.prototype.X=function(a){var b=g.Eg(this.I).width,c=g.Eg(this.W).width,d=this.K.zd()?3:1;a=a.width-b-c-40*d-52;0<a&&(this.D.style.maxWidth=a+"px")};
aZ.prototype.onClick=function(){this.J.va("innertubeCommand",this.C)};
aZ.prototype.updateVideoData=function(a,b){var c=b.QP;this.C=null===c||void 0===c?void 0:c.command;this.u.disabled=null==this.C;g.J(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Ec()};
aZ.prototype.Ec=function(){var a="",b=this.P.Aa;if(1<b.length){a=1E3*this.J.getProgressState().current;var c=DY(b,a);a=b[c].title;null==a&&(a="");if(c!==this.currentIndex||this.B)this.J.va("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.B=!1}else this.B=!0;a!==this.F&&(this.update({title:a}),this.F=a);a?this.show():this.hide()};g.u(g.bZ,g.V);g.bZ.prototype.Tb=function(a){g.T(a.state,32)?cZ(this,this.api.Rf()):this.Wa&&(g.T(a.state,16)||g.T(a.state,1))||this.u.hide()};
g.bZ.prototype.Jd=function(){var a=g.fI(this.api);(g.T(a,32)||g.T(a,16))&&dZ(this)};
g.bZ.prototype.C=function(){this.B=NaN;dZ(this)};
g.bZ.prototype.hide=function(){this.Eg&&cZ(this,null);g.V.prototype.hide.call(this)};g.u(eZ,g.V);eZ.prototype.onClick=function(){g.eX(this.u,this.element);this.u.va("onFullerscreenEduClicked")};
eZ.prototype.na=function(){this.u.isFullscreen()?this.B?this.C.hide():this.C.show():this.hide();g.KM(this.u,this.element,this.u.isFullscreen()&&!this.B)};g.u(g.fZ,g.V);g.k=g.fZ.prototype;g.k.onClick=function(){var a=this;if(this.J.T().ka||this.J.T().ca("embeds_enable_mobile_custom_controls"))try{this.J.toggleFullscreen()["catch"](function(b){a.Eo(b)})}catch(b){this.Eo(b)}else NX(this.message,this.element,!0)};
g.k.Eo=function(a){String(a).includes("fullscreen error")?g.er(a):g.dr(a);this.nx()};
g.k.nx=function(){this.disable();this.message.pc(this.element,!0)};
g.k.jj=function(){Mr()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.EH=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.nx()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Xo(["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.MX(this.J,{G:"div",ia:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:"0"},S:[b[0],{G:"a",U:{href:"https://support.google.com/youtube/answer/6276924",
target:this.J.T().F},Z:b[2]},b[4]]},100,!0);this.message.hide();g.C(this,this.message);this.message.subscribe("show",function(c){a.C.mo(a.message,c)});
g.$O(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.u)();this.u=null}};
g.k.na=function(){g.CM(this,awa(this.J))};
g.k.RC=function(a){if(a){var b={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"g",L:"ytp-fullscreen-button-corner-2",S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
L:"ytp-fullscreen-button-corner-1",S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.CX(this.J,"Exit full screen","f");document.activeElement===this.element&&this.J.getRootNode().focus()}else b={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"g",L:"ytp-fullscreen-button-corner-0",S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",S:[{G:"path",
nb:!0,L:"ytp-svg-fill",U:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",S:[{G:"path",nb:!0,L:"ytp-svg-fill",U:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.CX(this.J,"Full screen","f");this.ua("icon",b);this.ua("title",this.message?null:a);AY(this.C.Gb())};
g.k.aa=function(){this.message||((0,this.u)(),this.u=null);g.V.prototype.aa.call(this)};g.u(gZ,g.V);gZ.prototype.onClick=function(){this.J.va("onCollapseMiniplayer");g.eX(this.J,this.element)};
gZ.prototype.na=function(){this.visible=!this.J.isFullscreen();g.CM(this,this.visible);g.KM(this.J,this.element,this.visible&&this.N)};
gZ.prototype.xb=function(a){g.V.prototype.xb.call(this,a);g.KM(this.J,this.element,this.visible&&a)};g.u(hZ,g.V);hZ.prototype.Oa=function(a){this.na("newdata"===a)};
hZ.prototype.na=function(a){var b=this.J.getVideoData(),c=b.Hk,d=g.fI(this.J);d=(g.RK(d)||g.T(d,4))&&0<c.length;g.CM(this,d);a&&(this.u=!0);if(d){this.u&&this.B.ub();a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.ZI("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.yd("default.jpg")});AY(this.tooltip)}else this.B.stop()};
hZ.prototype.C=function(){zY(this.tooltip,this.element,"More cameras available");this.u=!1};g.u(iZ,g.MX);g.k=iZ.prototype;g.k.show=function(){var a=this.Wa;g.MX.prototype.show.call(this);a||(this.C.R(this.api,"presentingplayerstatechange",this.na),this.C.R(this.api,"videodatachange",this.na),this.na())};
g.k.hide=function(){this.C&&(g.Rr(this.C),g.MX.prototype.hide.call(this))};
g.k.na=function(){var a=this,b=this.api.getVideoData(),c=b.Hk,d,e={};for(d=0;d<c.length;e={uu:e.uu},d++){var f=this.B[d];f||(f=new g.V({G:"button",ia:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},S:[{G:"div",L:"ytp-multicam-menu-item-title",Z:"{{cameraName}}"}]}),e.uu=d,f.ra("click",function(n){return function(){var p=n.uu,r=a.api.getVideoData(),t=a.api;p=r.Hk[p];r=g.Z(t.app,1).getVideoData();var w=t.getCurrentTime();p.id===r.videoId?g.Z(t.app)!==
g.Z(t.app,1)&&(g.fM(t.app,1),r.isLivePlayback||t.seekTo(w)):(g.fM(t.app,4),t.app.loadVideoByPlayerVars({videoId:p.id,title:r.title,start:r.isLivePlayback?null:w,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:r.oD}}}},4))}}(e)),f.da(this.items),this.B[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=cC(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.B.length;)this.B.pop().dispose();d=g.fI(this.api);b=c.length||!b.Bc();g.RK(d)||g.T(d,4)||b||!this.Me()||NX(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Hk,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.B[c].focus();break}};
g.k.aa=function(){g.fg(this.B);g.MX.prototype.aa.call(this)};g.u(jZ,g.B);jZ.prototype.u=function(){var a=(0,g.O)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(g.Ln(yBa,a));1>a&&this.delay.start()};
var yBa=new g.Kn(0,0,.4,0,.2,1,1,1),Xwa=/[0-9.-]+|[^0-9.-]+/g;g.u(lZ,g.V);g.k=lZ.prototype;g.k.SC=function(a){this.visible=300<=a.width;g.CM(this,this.visible);g.KM(this.J,this.element,this.visible&&this.N)};
g.k.RN=function(){this.J.T().W?this.J.isMuted()?this.J.unMute():this.J.mute():NX(this.message,this.element,!0);g.eX(this.J,this.element)};
g.k.XK=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.T(),f=0===d?1:50<a?1:0;if(this.F!==f){var h=this.X;isNaN(h)?$wa(this,f):kZ(this.ba,function(m){$wa(c,h+(c.F-h)*m)},250);
this.F=f}d=0===d?1:0;if(this.D!==d){var l=this.P;isNaN(l)?axa(this,d):kZ(this.W,function(m){axa(c,l+(c.D-l)*m)},250);
this.D=d}e.W&&(e=g.CX(this.J,"Mute","m"),d=g.CX(this.J,"Unmute","m"),e=b?d:e,this.ua("title",e),this.ua("label",e),AY(this.tooltip))};
g.k.xb=function(a){g.V.prototype.xb.call(this,a);g.KM(this.J,this.element,this.visible&&a)};
var Ywa=["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"],Zwa=["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.u(mZ,g.V);mZ.prototype.onClick=function(){this.J.togglePictureInPicture()};g.u(g.nZ,g.V);g.nZ.prototype.B=function(a){bxa(this,a.state)};
g.nZ.prototype.Oa=function(){g.J(this.element,"ytp-play-button-playlist",g.QW(this.J))};
g.nZ.prototype.An=function(){g.RK(g.fI(this.J))?this.J.pauseVideo():this.J.playVideo()};g.u(g.qZ,g.V);g.k=g.qZ.prototype;g.k.Oa=function(){dxa(this);this.D&&(this.Bb(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.Oa,this),this.D=this.R(this.J,"progresssync",this.bL);this.C=exa(this);pZ(this);this.Ww(g.yG(this.J).getPlayerSize())};
g.k.Ww=function(a){a=void 0===a?g.yG(this.J).getPlayerSize():a;var b=g.QW(this.J)||this.u&&g.cX(this.J)||fxa(this);g.CM(this,b&&(this.u||400<=a.width))};
g.k.onClick=function(a){var b=!0;this.I?b=g.yX(a,this.J):g.ip(a);b&&(this.u&&5===this.J.getPresentingPlayerType()?this.J.V("ytoprerollinternstitialnext"):this.u?this.J.nextVideo(!0):this.C?this.J.seekTo(0):this.J.previousVideo(!0))};
g.k.bL=function(){var a=exa(this);a!==this.C&&(this.C=a,pZ(this))};
g.k.aa=function(){this.B&&(this.B(),this.B=null);dxa(this);g.V.prototype.aa.call(this)};g.u(rZ,g.V);rZ.prototype.La=function(a){return"PLAY_PROGRESS"===a?this.F:"LOAD_PROGRESS"===a?this.D:this.B};gxa.prototype.update=function(a,b,c,d){this.width=b;this.B=c;this.F=d;this.u=b-c-d;this.position=g.be(a,c,c+this.u);this.D=this.position-c;this.C=this.D/this.u};g.u(hxa,g.V);g.u(g.uZ,g.DM);g.k=g.uZ.prototype;g.k.Qa=function(){g.wZ(this);lxa(this,this.oa)};
g.k.Ec=function(){xZ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.Dt()};
g.k.dL=function(a){if(!g.jp(a)){var b=!1;switch(g.kp(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.ip(a)}};
g.k.TC=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.OI=function(){this.TC("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();this.Rb=c&&a.allowLiveDvr;vxa(this,this.api.Vd());b&&(c?(c=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=c,CZ(this),yZ(this,this.I,this.ha)):this.Dt(),g.q_(this.tooltip));if(a){c=a.watchNextResponse;if(c=!a.isLivePlayback&&c){c=this.api.getVideoData().multiMarkersPlayerBarRenderer;var d=this.api.getVideoData().Wu;c=null!=c||null!=d&&0<d.length}if(c)if(c=this.api.getVideoData().multiMarkersPlayerBarRenderer){var e;this.Ia=
null===(e=c.visibleOnLoad)||void 0===e?void 0:e.key;e=c.markersMap;null==this.Ia&&(this.Ia=e[0].key);e=g.q(e);for(c=e.next();!c.done;c=e.next())c=c.value,c.key&&c.value&&(this.Jb[c.key]=c.value);e=this.Ia;var f,h;if(c=null===(f=this.Jb[e])||void 0===f?void 0:f.chapters)mxa(this,c),this.api.getVideoData().Aa=this.Aa;if(f=null===(h=this.Jb[e])||void 0===h?void 0:h.markers){var l;jxa(this);h=g.q(f);for(f=h.next();!f.done;f=h.next())if(e=f.value,f=new hxa,e=e.markerRenderer)f.title=(null===(l=e.title)||
void 0===l?void 0:l.simpleText)||"",f.timeRangeStartMillis=e.timeRangeStartMillis||NaN,f.thumbnailUrl=e.thumbnailUrl||"",f.onActiveCommand=(null===e||void 0===e?void 0:e.onActiveCommand)||void 0,this.oa.push(f),g.C(this,f),f.da(this.Pd,this.Pd.children.length);lxa(this,this.oa)}}else{if(l=this.api.getVideoData().Wu)mxa(this,l),this.api.getVideoData().Aa=this.Aa}else ixa(this),jxa(this)}xZ(this)};
g.k.cL=function(a){this.F&&!g.T(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.F.cancel()};
g.k.aG=function(a){(this.K=a)?(this.ua("clipstarticon",cN()),this.ua("clipendicon",cN()),this.ua("clipstarttitle",null),this.ua("clipendtitle",null)):(this.ua("clipstarticon",VM()),this.ua("clipendicon",UM()),this.ua("clipstarttitle","Watch entire video"),this.ua("clipendtitle","Watch entire video"));CZ(this);yZ(this,this.I,this.ha)};
g.k.oO=function(a,b,c){var d=g.yg(this.element),e=vZ(this).u,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=HO(this.u,Number(c.getAttribute("data-position")),0)*e+g.yg(this.Lc).x);this.Ma.x=a-d.x;this.Ma.y=b-d.y;a=vZ(this);d=BZ(this,a);b=f||g.vO(this.Rb?d-this.u.u:d);c=a.position+this.kd;d-=this.api.fc();if(this.api.Rf()){if(1<this.Aa.length)for(e=AZ(this,this.Ma.x,!0),h=0;h<this.Aa.length;)g.J(this.Aa[h].u,
"ytp-exp-chapter-hover-effect",h===e),h++;h=this.tooltip.scale;l=(isNaN(l)?0:l)-45*h;e=DY(this.Aa,1E3*d);(e=this.Aa[e].title)||(l+=16*h);.6===this.tooltip.scale&&(l=e?110:126);h=DY(this.Aa,1E3*d);this.ea=pxa(this,d,h)?h:pxa(this,d,h+1)?h+1:-1;g.J(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.ea&&1<this.Aa.length);h=320*this.tooltip.scale;var m=e.length*(this.B?8.55:5.7);h=m<=h?m:h;m=h<160*this.tooltip.scale;var n=3;!m&&h/2>a.position&&(n=1);!m&&h/2>this.C-a.position&&(n=2);Oxa(this.tooltip,
c,d,b,!!f,l,e,n)}else Oxa(this.tooltip,c,d,b,!!f,l);g.J(this.api.getRootNode(),"ytp-progress-bar-hover",!g.T(g.fI(this.api),64));oxa(this)};
g.k.nO=function(){g.q_(this.tooltip);g.Bn(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.mO=function(a,b){this.D&&(this.D.dispose(),this.D=null);this.ld=b;1<this.Aa.length&&0<this.Mb&&-1!==this.ea?this.api.seekTo(this.Aa[this.ea].startTime/1E3,!1):this.api.seekTo(BZ(this,vZ(this)),!1);g.I(this.element,"ytp-drag");(this.ac=g.RK(g.fI(this.api)))&&this.api.pauseVideo()};
g.k.pO=function(){var a=this;this.jb=0;g.Bn(this.element,"ytp-pull-ui");g.Bn(this.element,"ytp-pulling");this.D&&(this.D.dispose(),this.D=null);if(0<this.P){var b=(0,g.O)();this.D=new g.qn(function(){var c=a.P,d=vZ(a).position,e=1-Math.pow(1-((0,g.O)()-b)/200,3);d+=e*(a.I*a.C-d);if(0>e||1<e)e=1;qxa(a,(1-e)*c,d,a.I);1>e&&a.D.start()});
this.D.start()}if(g.T(g.fI(this.api),32)||3===this.api.getPresentingPlayerType())1<this.Aa.length&&0<this.Mb&&-1!==this.ea?this.api.seekTo(this.Aa[this.ea].startTime/1E3):this.api.seekTo(BZ(this,vZ(this))),g.Bn(this.element,"ytp-drag"),this.ac&&!g.T(g.fI(this.api),2)&&this.api.playVideo()};
g.k.qO=function(a,b){var c=this,d=!1,e=!1,f=vZ(this);3600<=this.u.getLength()&&1===this.Aa.length&&(qxa(this,this.ld-b-10,f.position,f.C),e=!0,d=this.P>.1*(this.B?60:40),f=vZ(this));g.J(this.element,"ytp-pull-ui",e);d&&g.I(this.element,"ytp-pulling");d=0;f.B&&0>=f.position&&1===this.Aa.length?d=-1:f.F&&f.position>=f.width&&1===this.Aa.length&&(d=1);if(this.jb!==d&&1===this.Aa.length&&(this.jb=d,this.D&&(this.D.dispose(),this.D=null),d)){var h=(0,g.O)();this.D=new g.qn(function(){var l=c.C*(c.fa-1);
c.W=g.be(c.W+c.jb*((0,g.O)()-h)*.3,0,l);zZ(c);c.api.seekTo(BZ(c,vZ(c)),!1);0<c.W&&c.W<l&&c.D.start()});
this.D.start()}this.api.seekTo(BZ(this,f),!1)};
g.k.setPosition=function(a,b,c){this.kd=a;this.C=b;this.B=c;zZ(this);1===this.Aa.length&&(this.Aa[0].width=b||0)};
g.k.CD=function(){this.K||(this.ua("clipstarticon",TM()),this.ua("clipendicon",TM()),g.I(this.element,"ytp-clip-hover"))};
g.k.BD=function(){this.K||(this.ua("clipstarticon",VM()),this.ua("clipendicon",UM()),g.Bn(this.element,"ytp-clip-hover"))};
g.k.Dt=function(){this.clipStart=0;this.clipEnd=Infinity;CZ(this);yZ(this,this.I,this.ha)};
g.k.bG=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.Y[c]){var d=g.Fe("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Y[c]=b;this.Ra[c]=d;yn(d,b.style);rxa(this,c);g.R(this.api.T().experiments,"disable_ad_markers_on_content_progress_bar")||this.Aa[0].C.appendChild(d)}}else uxa(this,b)};
g.k.eQ=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())uxa(this,b.value)};
g.k.aa=function(){vxa(this,!1);g.DM.prototype.aa.call(this)};g.u(FZ,g.V);FZ.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
FZ.prototype.na=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.CM(this,a&&400<=g.yG(this.J).getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.u!==b){this.u=b;switch(b){case 1:this.ua("icon",{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{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.ua("icon",g.PM())}g.J(this.element,"ytp-remote-button-active",this.isActive())}};
FZ.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Sa,b=this.element;if(a.Me())a.bb();else{a.initialize();a:{var c=g.q(a.Qc.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.pc(b));a.pc(b)}}};g.u(GZ,g.V);GZ.prototype.u=function(a){a=this.B&&400<=a.width;g.CM(this,a);g.KM(this.J,this.element,a)};
GZ.prototype.C=function(){if(this.Sa.Wa)this.Sa.bb();else{var a=g.lX(g.LW(this.J));a&&!a.loaded&&(a.Rd("tracklist",{includeAsr:!0}).length||a.load());g.eX(this.J,this.element);this.Sa.pc(this.element)}};
GZ.prototype.updateBadge=function(){var a=(a=g.Z(this.J.app))?!!(a.u.Ka&&a.u.Ka.video&&Iv(a.u.Ka.video)):!1;var b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.TW(this.J),e=c&&!!g.SW(g.LW(this.J));b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.J(this.element,"ytp-hdr-quality-badge",a);g.J(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.J(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.J(this.element,"ytp-5k-quality-badge",
!a&&"hd2880"===c);g.J(this.element,"ytp-8k-quality-badge",!a&&"highres"===c);g.J(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.J(this.element,"ytp-3d-badge",!a&&e&&d)};g.u(IZ,g.pY);IZ.prototype.Bc=function(){var a=g.UW(g.LW(this.J));return void 0!==a&&a.loaded};
IZ.prototype.na=function(){void 0!==g.UW(g.LW(this.J))&&3!==this.J.getPresentingPlayerType()?this.u||(this.Sa.Kb(this),this.u=!0):this.u&&(this.Sa.Kd(this),this.u=!1);this.setValue(this.Bc())};
IZ.prototype.B=function(a){this.Bc();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.V("annotationvisibility",a)};
IZ.prototype.aa=function(){this.u&&this.Sa.Kd(this);g.pY.prototype.aa.call(this)};g.u(g.JZ,g.hY);g.k=g.JZ.prototype;g.k.open=function(){g.rY(this.Sa,this.C)};
g.k.wc=function(a){xxa(this);this.options[a].element.setAttribute("aria-checked","true");this.jc(this.fh(a));this.B=a};
g.k.Ou=function(a,b,c){var d=this;b=new g.hY({G:"div",ia:["ytp-menuitem"],U:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},S:[{G:"div",ia:["ytp-menuitem-label"],Z:"{{label}}"}]},b,this.fh(a,!0));b.ra("click",function(){d.ne(a)});
return b};
g.k.enable=function(a){this.F?a||(this.F=!1,this.dn(!1)):a&&(this.F=!0,this.dn(!0))};
g.k.dn=function(a){a?this.Sa.Kb(this):this.Sa.Kd(this)};
g.k.ne=function(a){this.V("select",a)};
g.k.fh=function(a){return a.toString()};
g.k.eL=function(a){g.jp(a)||39!==g.kp(a)||(this.open(),g.ip(a))};
g.k.aa=function(){this.F&&this.Sa.Kd(this);g.hY.prototype.aa.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.u(LZ,g.JZ);LZ.prototype.na=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.KZ(this,g.Pc(a,this.D)),this.tracks=g.Ib(a,this.D,this),this.u.jc(a.length?" ("+a.length+")":""),this.V("size-change"),this.wc(this.D(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
LZ.prototype.ne=function(a){g.JZ.prototype.ne.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Sa.Hf()};
LZ.prototype.D=function(a){return a.toString()};g.u(MZ,g.pY);MZ.prototype.C=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.cX(this.J))this.B||(this.Sa.Kb(this),this.B=!0,this.u.push(this.R(this.J,"videodatachange",this.C)),this.u.push(this.R(this.J,"videoplayerreset",this.C)),this.u.push(this.R(this.J,"onPlaylistUpdate",this.C)),this.u.push(this.R(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState));else if(this.B){this.Sa.Kd(this);this.B=!1;a=g.q(this.u);for(var b=a.next();!b.done;b=a.next())this.Bb(b.value)}};
MZ.prototype.D=function(a){this.setValue(1!==a)};
MZ.prototype.F=function(a){var b=this.J;a=a?2:1;Aza(b.app,a);a&&R0(b.app,a)};
MZ.prototype.aa=function(){this.B&&this.Sa.Kd(this);g.pY.prototype.aa.call(this)};g.u(NZ,g.MX);NZ.prototype.pc=function(){g.MX.prototype.pc.call(this);this.dialog.focus()};g.u(OZ,g.hY);OZ.prototype.xb=function(a){this.B&&g.KM(this.J,this.element,this.u&&a)};
OZ.prototype.D=function(){var a,b,c=null===(b=null===(a=this.J.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.u){var d,e,f,h,l,m;c=null===(d=this.J.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.gY(this,PZ(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.C=new NZ(this.J,PZ(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),PZ(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),PZ(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.C(this,this.C);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.B=!!d)g.GM(this.J,this.element,this,!0),g.HM(this.J,this.element,d);this.Sa.Kb(this);this.u=!0}else!c&&this.u&&(this.Sa.Kd(this),this.u=!1)};
OZ.prototype.onClick=function(){this.B&&g.eX(this.J,this.element);this.Sa.bb();this.C&&this.C.pc()};g.u(QZ,g.JZ);g.k=QZ.prototype;g.k.gp=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.J.Wk(),a=this.J.getAvailableQualityLevels(),g.Iva(this.J)&&g.Jva(this.J)&&a.unshift("missing-qualities"),Nva(this.J)&&a.unshift("inline-survey"),g.KZ(this,a),a.length)){this.UC();this.enable(!0);return}this.enable(!1)};
g.k.UC=function(){var a=this.J.getPreferredQuality();this.options[a]&&(this.u=this.J.getPlaybackQuality(),this.wc(a),"auto"===a&&this.jc(this.fh(a)))};
g.k.ne=function(a){"missing-qualities"!==a&&(g.JZ.prototype.ne.call(this,a),this.J.setPlaybackQuality(a),this.Sa.bb(),this.gp())};
g.k.Ou=function(a,b,c){var d=this;if("inline-survey"!==a)return g.JZ.prototype.Ou.call(this,a,b,c);a=[{G:"span",Z:"Looks good?"}];c={};for(var e=g.q([!0,!1]),f=e.next();!f.done;c={wq:c.wq},f=e.next())c.wq=f.value,f=new g.V({G:"span",L:"ytp-menuitem-inline-survey-response",S:[c.wq?g.aN():ZM()],U:{tabindex:"0",role:"button"}}),f.ra("click",function(h){return function(){var l=g.Z(d.J.app);l&&(l.qb("iqsr",h.wq?"0":"1"),l.getVideoData().LB=!0);d.Sa.bb();d.gp()}}(c)),a.push(f);
return new g.hY({G:"div",L:"ytp-menuitem",U:{"aria-disabled":"true"},S:[{G:"div",ia:["ytp-menuitem-label"],S:a}]},b)};
g.k.fh=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"a",U:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.T().F},Z:"Missing options?"};if("inline-survey"===a)return"";var c=[yxa(this,a)],d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(yxa(this,this.u,["ytp-menu-label-secondary"])));return{G:"div",S:c}};g.u(RZ,g.V);g.k=RZ.prototype;g.k.init=function(){this.Pl(this.u);this.ua("minvalue",this.minimumValue);this.ua("maxvalue",this.maximumValue)};
g.k.kL=function(a){if(!g.jp(a)){switch(g.kp(a)){case 37:case 40:var b=-this.I;break;case 39:case 38:b=this.I;break;default:return}this.Pl(this.u+b);g.ip(a)}};
g.k.iL=function(a){var b=this.u;b+=0>(a.deltaX||-a.deltaY)?-this.F:this.F;this.Pl(b);g.ip(a)};
g.k.jL=function(a){a=(a-g.yg(this.B).x)/this.K*this.range+this.minimumValue;this.Pl(a)};
g.k.Pl=function(a,b){b=void 0===b?"":b;var c=g.be(a,this.minimumValue,this.maximumValue);""===b&&(b=c.toString());this.ua("valuenow",c);this.ua("valuetext",b);this.W.style.left=(c-this.minimumValue)/this.range*(this.K-this.P)+"px";this.u=c};
g.k.focus=function(){this.Y.focus()};g.u(TZ,RZ);TZ.prototype.X=function(){this.J.setPlaybackRate(this.u,!0)};
TZ.prototype.Pl=function(a){RZ.prototype.Pl.call(this,a,UZ(this,a).toString());this.C&&(SZ(this),this.ba())};
TZ.prototype.fa=function(){var a=this.J.getPlaybackRate();UZ(this,this.u)!==a&&(this.Pl(a),SZ(this))};g.u(VZ,g.DM);VZ.prototype.focus=function(){this.u.focus()};g.u(zxa,kY);g.u(WZ,g.JZ);g.k=WZ.prototype;g.k.fh=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.na=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);Cxa(this)};
g.k.dn=function(a){g.JZ.prototype.dn.call(this,a);a?(this.K=this.R(this.J,"onPlaybackRateChange",this.lL),Cxa(this),Axa(this,this.J.getPlaybackRate())):(this.Bb(this.K),this.K=null)};
g.k.lL=function(a){var b=this.J.getPlaybackRate();this.I.includes(b)||Bxa(this,b);Axa(this,a)};
g.k.ne=function(a){g.JZ.prototype.ne.call(this,a);a===this.u?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Sa.Hf()};g.u(YZ,g.JZ);g.k=YZ.prototype;g.k.wc=function(a){g.JZ.prototype.wc.call(this,a)};
g.k.WC=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.fh=function(a){return this.getOption(a).text||""};
g.k.ne=function(a){g.JZ.prototype.ne.call(this,a);this.V("settingChange",this.setting,this.settings[a].option)};g.u(ZZ,g.lY);ZZ.prototype.Ld=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.fk[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.wc(e),c.D.element.setAttribute("aria-checked",String(!d)),c.u.element.setAttribute("aria-checked",String(d)))}}};
ZZ.prototype.Df=function(a,b){this.V("settingChange",a,b)};g.u($Z,g.JZ);$Z.prototype.u=function(a){return a.languageCode};
$Z.prototype.fh=function(a){return this.languages[a].languageName||""};
$Z.prototype.ne=function(a){this.V("select",a);g.wY(this.Sa)};g.u(a_,g.JZ);g.k=a_.prototype;g.k.Zw=function(a){return g.Wb(a)?"__off__":a.displayName};
g.k.fh=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.ne=function(a){"__translate__"===a?this.u.open():"__contribute__"===a?(this.J.pauseVideo(),this.J.isFullscreen()&&this.J.toggleFullscreen(),a=g.JT(this.J.T(),this.J.getVideoData()),g.gK(a)):(this.J.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.JZ.prototype.ne.call(this,a),this.Sa.Hf())};
g.k.na=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData();b=b&&b.Pq;var c={};if(a||b){if(a){var d=this.J.getOption("captions","track");c=this.J.getOption("captions","tracklist",{includeAsr:!0});var e=this.J.getOption("captions","translationLanguages");this.tracks=g.Ib(c,this.Zw,this);var f=g.Pc(c,this.Zw);if(e.length&&!g.Wb(d)){var h=d.translationLanguage;if(h&&h.languageName){var l=h.languageName;h=e.findIndex(function(m){return m.languageName===l});
taa(e,h)}Exa(this.u,e);f.push("__translate__")}e=this.Zw(d)}else this.tracks={},f=[],e="__off__";f.unshift("__off__");this.tracks.__off__={};b&&f.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=d,f.push(e));g.KZ(this,f);this.wc(e);d&&d.translationLanguage?this.u.wc(this.u.u(d.translationLanguage)):xxa(this.u);a&&this.D.Ld(this.J.getSubtitlesUserSettings());this.K.jc(c&&c.length?" ("+c.length+")":"");this.V("size-change");this.enable(!0)}else this.enable(!1)};
g.k.pL=function(a){var b=this.J.getOption("captions","track");b=g.Zb(b);b.translationLanguage=this.u.languages[a];this.J.setOption("captions","track",b)};
g.k.Df=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}Fxa(this,!0);this.I.start();this.D.Ld(this.J.getSubtitlesUserSettings())};
g.k.UO=function(a){a||this.I.lg()};
g.k.aa=function(){this.I.lg();g.JZ.prototype.aa.call(this)};g.u(b_,g.tY);g.k=b_.prototype;g.k.initialize=function(){if(!this.rd){this.rd=!0;this.Gw=new OZ(this.J,this);g.C(this,this.Gw);var a=new QZ(this.J,this);g.C(this,a);a=new a_(this.J,this);g.C(this,a);a=new IZ(this.J,this);g.C(this,a);this.J.T().Ob&&(a=new WZ(this.J,this),g.C(this,a));this.J.T().kb&&!g.R(this.J.T().experiments,"web_player_move_autonav_toggle")&&(a=new MZ(this.J,this),g.C(this,a));a=new LZ(this.J,this);g.C(this,a);HZ(this.settingsButton,this.Qc.items.length)}};
g.k.Kb=function(a){this.initialize();this.Qc.Kb(a);HZ(this.settingsButton,this.Qc.items.length)};
g.k.Kd=function(a){this.Wa&&1>=this.Qc.items.length&&this.hide();this.Qc.Kd(a);HZ(this.settingsButton,this.Qc.items.length)};
g.k.pc=function(a){this.initialize();0<this.Qc.items.length&&g.tY.prototype.pc.call(this,a)};
g.k.show=function(){g.tY.prototype.show.call(this);g.I(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.tY.prototype.hide.call(this);g.Bn(this.J.getRootNode(),"ytp-settings-shown")};
g.k.tg=function(a){var b;g.KM(this.J,this.element,a);null===(b=this.Gw)||void 0===b?void 0:b.xb(a)};g.u(c_,g.V);c_.prototype.onClick=function(){var a=this.J.app;a.B.va("SIZE_CLICKED",!a.jd)};
c_.prototype.na=function(){g.CM(this,this.J.app.uf&&!this.J.isFullscreen()&&3!==this.J.getPresentingPlayerType());if(this.Wa){var a=this.J.isWidescreen();if(this.isWidescreen!==a){var b=a?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",nb:!0,U:{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.ua("icon",b):Wwa(this.transition,this.element,b);this.isWidescreen=a;b=g.CX(this.J,"Default view","t");var c=g.CX(this.J,"Theater mode","t");this.ua("title",a?b:c);AY(this.tooltip)}}};g.u(d_,g.V);d_.prototype.onClick=function(){this.J.toggleSubtitles()};
d_.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
d_.prototype.na=function(){var a=null!=g.lX(g.LW(this.J));g.CM(this,a&&300<=g.yG(this.J).getPlayerSize().width);a&&this.ua("pressed",this.isEnabled())};g.u(g.e_,g.V);g.k=g.e_.prototype;
g.k.Ec=function(){var a=g.yG(this.api).getPlayerSize().width,b=a>=this.K&&(!this.B||!g.T(g.fI(this.api),64));g.CM(this,b);g.J(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=g.vO(g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1));this.C!==c&&(this.ua("currenttime",c),this.C=c);b=g.vO(g.R(this.api.T().experiments,"halftime_ux_killswitch")?a.duration:this.api.getDuration(b,
!1));this.D!==b&&(this.ua("duration",b),this.D=b)}this.B&&(a=a.isAtLiveHead,this.I!==a||this.F!==this.isPremiere)&&(this.I=a,this.F=this.isPremiere,this.Ec(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.jc(this.isPremiere?"Premiere":"Live"),a?this.u&&(this.u(),this.u=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.u=g.aY(this.tooltip,this.liveBadge.element)))};
g.k.Oa=function(a,b,c){this.updateVideoData(g.R(this.api.T().experiments,"enable_topsoil_wta_for_halftime")&&2===c?this.api.getVideoData(1):b);this.Ec()};
g.k.updateVideoData=function(a){this.B=a.isLivePlayback&&!a.Uh;this.isPremiere=a.isPremiere;g.J(this.element,"ytp-live",this.B)};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.aa=function(){this.u&&this.u();g.V.prototype.aa.call(this)};g.u(h_,g.V);g.k=h_.prototype;g.k.jj=function(){var a=this.B.zd();this.F!==a&&(this.F=a,g_(this,this.api.getVolume(),this.api.isMuted()))};
g.k.YC=function(a){g.CM(this,350<=a.width)};
g.k.uL=function(a){if(!g.jp(a)){var b=g.kp(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.be(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.ip(a))}};
g.k.sL=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.be(b/10,-10,10));g.ip(a)};
g.k.YO=function(){f_(this,this.u,!0,this.D,this.B.Xg());this.X=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.tL=function(a){var b=this.F?78:52,c=this.F?18:12;a-=g.yg(this.W).x;this.api.setVolume(100*g.be((a-c/2)/(b-c),0,1))};
g.k.XO=function(){f_(this,this.u,!1,this.D,this.B.Xg());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))};
g.k.vL=function(a){g_(this,a.volume,a.muted)};
g.k.lA=function(){f_(this,this.u,this.C,this.D,this.B.Xg())};
g.k.aa=function(){g.V.prototype.aa.call(this);g.Bn(this.K,"ytp-volume-slider-active")};g.u(g.i_,g.V);g.i_.prototype.Oa=function(){var a=this.api.getVideoData(1).Hc,b=this.api.T();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.CM(this,this.visible);g.KM(this.api,this.element,this.visible&&this.N);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.ua("url",a))};
g.i_.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.wO(a),!1,!0,!0);g.GB(this.api.T())&&(b=g.Ld(b,g.KT({},"emb_logo")));g.zX(b,this.api,a);g.eX(this.api,this.element)};
g.i_.prototype.xb=function(a){g.V.prototype.xb.call(this,a);g.KM(this.api,this.element,this.visible&&a)};g.u(k_,g.Pr);g.k=k_.prototype;g.k.Jd=function(){this.Lc.Ec();this.uh.Ec()};
g.k.jh=function(){this.Yw();this.xc.B?this.Jd():g.q_(this.Lc.tooltip)};
g.k.tp=function(){this.Jd();this.qd.start()};
g.k.Yw=function(){var a=!this.J.T().u&&300>g.wxa(this.Lc)&&g.fI(this.J).Cb()&&!!window.requestAnimationFrame,b=!a;this.xc.B||(a=b=!1);b?this.K||(this.K=this.R(this.J,"progresssync",this.Jd)):this.K&&(this.Bb(this.K),this.K=null);a?this.qd.isActive()||this.qd.start():this.qd.stop()};
g.k.Qa=function(){var a=this.B.zd(),b=g.yG(this.J).getPlayerSize(),c=l_(this),d=Math.max(b.width-2*c,100);if(this.ka!==b.width||this.ha!==a){this.ka=b.width;this.ha=a;var e=Jxa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";this.Lc.setPosition(c,e,a);this.B.Gb().ba=e}c=this.u;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-m_(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Ss=e;c.En();this.Yw();!this.J.T().ca("html5_player_bottom_linear_gradient")&&g.R(this.J.T().experiments,
"html5_player_dynamic_bottom_gradient")&&g.ZY(this.fa,b.height)};
g.k.Oa=function(){var a=this.J.getVideoData();this.W.style.background=a.Hc?a.Li:"";g.CM(this.X,a.gy)};
g.k.La=function(){return this.C.element};var a2={},n_=(a2.CHANNEL_NAME="ytp-title-channel-name",a2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",a2.LINK="ytp-title-link",a2.SESSIONLINK="yt-uix-sessionlink",a2.SUBTEXT="ytp-title-subtext",a2.TEXT="ytp-title-text",a2.TITLE="ytp-title",a2);g.u(o_,g.V);o_.prototype.onClick=function(a){g.eX(this.api,this.element);var b=this.api.getVideoUrl(!g.wO(a),!1,!0);g.GB(this.api.T())&&(b=g.Ld(b,g.KT({},"emb_title")));g.zX(b,this.api,a)};
o_.prototype.na=function(){var a=this.api.getVideoData(),b=this.api.T();this.ua("title",a.title);Kxa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Ei&&c.Pe?(this.ua("channelLink",c.Ei),this.ua("channelName",c.author)):Kxa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Pd;g.J(this.link,n_.FULLERSCREEN_LINK,c);b.N||!a.videoId||c?this.u&&(this.ua("url",null),this.Bb(this.u),this.u=null):(this.ua("url",this.api.getVideoUrl(!0)),
this.u||(this.u=this.R(this.link,"click",this.onClick)))};g.u(g.p_,g.V);g.k=g.p_.prototype;g.k.LD=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=NaN;Mxa(this,c)}};
g.k.tJ=function(){JE(this.u,this.C,160*this.scale)};
g.k.ci=function(){switch(this.type){case 2:var a=this.B;a.removeEventListener("mouseout",this.W);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.W);a.addEventListener("focus",this.D);Pxa(this);break;case 3:Pxa(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.LD,this),this.u=null),this.api.removeEventListener("videoready",this.X),this.Y.stop()}this.type=null;this.K&&this.I.hide()};
g.k.Fh=function(a){for(var b=0;b<arguments.length;++b);if(this.B)for(b=0;b<arguments.length;b++)g.Me(arguments[b],this.B)&&this.ci()};
g.k.aa=function(){null!=this.type&&this.ci();this.u&&this.u.dispose();g.V.prototype.aa.call(this)};g.u(g.r_,g.V);g.k=g.r_.prototype;g.k.Ts=function(){var a=this.J.getPlayerSize(),b=this.J.T(),c=this.J.getVideoData(),d=g.GB(b)&&g.QW(this.J)&&g.T(g.fI(this.J),128);this.visible=b.zk&&240<=a.width&&!c.isAd()&&c.zk&&!d;g.CM(this,this.visible);this.icon&&Sxa(this,this.icon);g.KM(this.J,this.element,this.visible&&this.N)};
g.k.uE=function(){this.u=!0;this.B=!1;this.na(1);this.J.T().u&&zY(this.tooltip,this.element);this.J.T().C&&this.J.va("WATCH_LATER_VIDEO_ADDED")};
g.k.ZC=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){var a=this;g.eX(this.J,this.element);var b=this.J.T(),c=this.ZC();b.Xc?Qxa(this,c):this.J.app.Ma?this.J.requestStorageAccess(function(){g.Fq("embedsItpWatchLaterResult",{accepted:!0});Fp();Rxa(a,c)},function(){g.Fq("embedsItpWatchLaterResult",{accepted:!1});
s_(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):Rxa(this,c)};
g.k.AP=function(a,b){this.B=!1;var c="An error occurred. Please try again later.";b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);s_(this,c)};
g.k.vE=function(){this.B=this.u=!1;this.na(2);this.J.T().C&&this.J.va("WATCH_LATER_VIDEO_REMOVED")};
g.k.wL=function(){this.B=this.u=!1;this.na(2)};
g.k.na=function(a,b){var c=this.J.T();Sxa(this,a);if(b)this.update({title:b,image:null});else if(c.userDisplayName){var d={USER_NAME:c.userDisplayName};this.update({title:this.u?g.ZI("Added as $USER_NAME",d):g.ZI("Watch later as $USER_NAME",d),image:qC(c)})}else this.update({title:"Watch later",image:null});AY(this.tooltip)};
g.k.xb=function(a){g.V.prototype.xb.call(this,a);g.KM(this.J,this.element,this.visible&&a)};g.u(t_,g.QX);g.k=t_.prototype;g.k.Gb=function(){return this.tooltip};
g.k.oB=function(){return this.Re};
g.k.Vk=function(a,b){b?this.Jh=a:this.Jh=null;this.ag()};
g.k.mo=function(a,b){if(b)this.lk.push(a);else for(var c=this.lk.length;0<=c;c--)if(this.lk[c]===a){this.lk.splice(c,1);break}uX(this.xc,64,0<this.lk.length)};
g.k.yk=function(){g.VW(this.api)&&g.WW(this.api);YW(this.api);return!!this.Jh||Txa(this)||g.QX.prototype.yk.call(this)};
g.k.ag=function(){var a=!this.yk(),b=a&&g.VW(this.api)&&!g.T(g.fI(this.api),2),c=this.Pm&&g.QW(this.api)&&g.T(g.fI(this.api),128);a||c?(this.uy.show(),this.vy.show()):(this.uy.hide(),this.vy.hide(),this.tooltip.Fh(this.Xf.element));b?this.Gh.pc():this.Gh.bb();this.Re&&Ixa(this.Re,!a);g.QX.prototype.ag.call(this)};
g.k.mn=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Eg(a),h=d||this.Re&&g.Me(this.Re.La(),b),l=d=null;null!=c&&h||(d=g.Eg(b),l=g.Cg(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;if(h){var m=this.Re;b=l_(m);d=Jxa(m);l=g.yG(this.api).getPlayerSize().height;c=g.be(c,b,b+d-f.width);m=l-m_(m)-f.height}else g.Me(this.Xf.element,b)?(m=g.yG(this.api).getPlayerSize().width,c=g.be(c,12,m-f.width-12),m=this.zd()?this.bv:this.av,"gvn"===this.api.T().playerStyle&&
(m+=20),this.Pm&&(m-=this.zd()?26:18)):(b=g.yG(this.api).getPlayerSize(),c=g.be(c,12,b.width-f.width-12),l.y>(b.height-d.height)/2?m=l.y-f.height-12:m=l.y+d.height+12);a.style.top=m+(e||0)+"px";a.style.left=c+"px"};
g.k.jh=function(a){a&&(this.tooltip.Fh(this.Xf.element),this.Re&&this.tooltip.Fh(this.Re.La()));g.QX.prototype.jh.call(this,a)};
g.k.Nh=function(a,b){var c=g.yG(this.api).getPlayerSize();c=new g.ig(0,0,c.width,c.height);if(a||this.xc.B&&!this.yk()){if(this.api.T().si||b){var d=this.zd()?this.bv:this.av;c.top+=d;c.height-=d}this.Re&&(c.height-=m_(this.Re))}return c};
g.k.jj=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.wr.element,b),b.parentElement.insertBefore(this.vr.element,b.nextSibling))):g.N(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.wr.detach(),this.vr.detach());this.Qa();this.wj()};
g.k.zd=function(){var a=this.api.T();a=a.ca("embeds_enable_mobile_custom_controls")&&a.u;return this.api.isFullscreen()&&!a||!1};
g.k.showControls=function(a){this.Wq=!a;this.ag()};
g.k.Qa=function(){var a=this.zd();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.J(this.contextMenu.element,"ytp-big-mode",a);this.ag();if(this.Sf()&&this.Ff)this.Mf&&JY(this.Ff,this.Mf),this.shareButton&&JY(this.Ff,this.shareButton),this.Ii&&JY(this.Ff,this.Ii);else{if(this.Ff){a=this.Ff;for(var b=g.q(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Mf&&!g.Me(this.mf.element,this.Mf.element)&&this.Mf.da(this.mf.element);this.shareButton&&!g.Me(this.mf.element,
this.shareButton.element)&&this.shareButton.da(this.mf.element);this.Ii&&!g.Me(this.mf.element,this.Ii.element)&&this.Ii.da(this.mf.element)}this.wj();g.QX.prototype.Qa.call(this)};
g.k.Lv=function(){if(Txa(this)&&!g.QW(this.api))return!1;var a=this.api.getVideoData();return!g.GB(this.api.T())||2===this.api.getPresentingPlayerType()||!this.jg||((a=this.jg||a.jg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.QX.prototype.Lv.call(this):!1};
g.k.wj=function(){g.QX.prototype.wj.call(this);g.KM(this.api,this.title.element,!!this.Rh);this.ln&&this.ln.xb(!!this.Rh);this.channelAvatar.xb(!!this.Rh);this.overflowButton&&this.overflowButton.xb(this.Sf()&&!!this.Rh);this.shareButton&&this.shareButton.xb(!this.Sf()&&!!this.Rh);this.Mf&&this.Mf.xb(!this.Sf()&&!!this.Rh);this.Ii&&this.Ii.xb(!this.Sf()&&!!this.Rh);if(!this.Rh){this.tooltip.Fh(this.Xf.element);for(var a=0;a<this.fq.length;a++){var b=this.fq[a];b.Me()&&b.bb()}}};
g.k.Bd=function(a){this.Re&&Ixa(this.Re,this.yk());this.ag();g.QX.prototype.Bd.call(this,a)};
g.k.YN=function(){ZW(this.api)&&uX(this.xc,128,!1)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.aj?this.aj.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.aj?this.aj.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Ni=function(){return this.contextMenu.Wa?(this.contextMenu.bb(),!0):this.lk.length?(this.lk[this.lk.length-1].bb(),!0):this.Jh?(this.Jh.bb(),!0):g.QX.prototype.Ni.call(this)};
g.k.ay=function(a,b){this.by=b;this.mo(a,b);this.gG()};
g.k.gG=function(){var a=this.by||this.contextMenu.Me();this.Mu!==a&&(this.Mu=a,this.api.va("onAutonavPauseRequest",this.Mu))};
g.k.dI=function(){u_(this,this.api.getRootNode(),!0).focus()};
g.k.eI=function(){u_(this,this.api.getRootNode(),!1).focus()};
g.k.il=function(){return this.Re&&this.Re.u};
g.k.uj=function(){this.xc.uj()};
g.k.Sr=function(){this.Ib.hide()};
g.k.Rl=function(a){this.Ib.Rl(!g.RK(a))};
g.k.Jp=function(a,b,c,d){this.er.Jp(a,b,c,d)};
g.k.zF=function(){var a=this.api.getVideoData();a&&a.tooltipRenderer&&(this.Cp||(this.Cp=new NY(a.tooltipRenderer,this,this.api),g.C(this,this.Cp),g.$O(this.api,this.Cp.element,8)),this.Cp.lv(a.tooltipRenderer))};g.u(g.v_,g.vS);g.v_.prototype.ph=function(){return!1};
g.v_.prototype.create=function(){var a=this.player.T();iC(a)&&a.u?this.chrome=new g.QX(this.player):this.chrome=new t_(this.player);g.C(this,this.chrome);this.chrome.init();g.bX(this.player,"ux")};g.u(x_,g.B);g.k=x_.prototype;
g.k.NA=function(){return g.Ue(this,function b(){var c=this,d,e,f,h,l,m,n,p,r;return g.Aa(b,function(t){if(1==t.u){d=c;if(c.la())return t["return"](Promise.reject(Error(c.status.error||"disposed")));c.timeout.start();return g.ra(t,c.F,2)}e=c.u.B;if(e.Th())return w_(c,"ended_in_finishTransition"),t["return"](Promise.reject(Error(c.status.error||"")));if(!c.D||!hB(c.D))return w_(c,"next_mse_closed"),t["return"](Promise.reject(Error(c.status.error||"")));if(c.B.W!==c.D)return w_(c,"next_mse_mismatch"),
t["return"](Promise.reject(Error(c.status.error||"")));f=aya(c);h=f.uD;l=f.xA;m=f.tD;hW(c.u,!1,!0);n=$xa(e,h,m,!c.B.getVideoData().isAd());iW(c.B,n);c.N&&(c.B.seekTo(c.B.getCurrentTime()+.001,{Go:!0,ty:3}),n.play()||ur());p=e.ib();p.cpn=c.u.getVideoData().clientPlaybackNonce;p.st=""+h;p.et=""+m;c.B.qb("gapless",g.OA(p));c.u.qb("gaplessTo",c.B.getVideoData().clientPlaybackNonce);r=c.u.getPlayerType()===c.B.getPlayerType();mva(c.u,l,!1,r,c.B.getVideoData().clientPlaybackNonce);mva(c.B,c.B.getCurrentTime(),
!0,r,c.u.getVideoData().clientPlaybackNonce);g.um(function(){!d.B.getVideoData().kg&&g.RK(d.B.getPlayerState())&&hva(d.B)});
y_(c,6);c.dispose();return t["return"](Promise.resolve())})})};
g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.Ik=function(){var a=this.u.getVideoData(),b=this.B.getVideoData();if(a.Ha){var c;if(c=a.ma){c=a.ma;for(var d=!1,e=!1,f=g.q(Object.values(c.u)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.Bc()&&(d=!0),h.info.video&&h.index.Bc()&&(e=!0);c.u["0"]&&(e=!0);c=!(d&&e)}if(!c)if(this.u.B){h=Wxa(this.policy,this.u,this.B,this.Se);f=aya(this);c=f.PH;e=f.uD;d=f.xA;f=f.tD;if(!this.K){var l=1E3*jU(this.B.K),m=jU(this.u.K);m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=a.isAd();var n=this.B.I;
n.qoe&&(n=n.qoe,n.F={kQ:Number(wT(n,"glrem","nst."+l.toFixed()+";rem."+m.toFixed()+";ca."+ +a)),vD:l,cQ:m,isAd:a});this.K=!0}h?w_(this,"cannot_apply"+h+";transitionTimeMs."+this.Se):2===this.status.status?Zxa(this):(a=this.u.W)&&jB(a)&&(!hB(a)&&g.ak()?w_(this,"mse_closed"):b.ma&&Dz(b.ma)&&a.B&&!a.B.zr()?w_(this,"encr_upgrade"):(b=this.u.B,b.Th()?w_(this,"elem_ended"):0>e?w_(this,"next_player_future"):(this.I=d,this.C=nB(a,c,d,!0),this.D=nB(a,e,f,!1),a=this.B.getVideoData().clientPlaybackNonce,this.u.qb("gaplessPrep",
"cpn."+a),tW(this.u,this.C),iW(this.u,$xa(b,c,d,!this.u.getVideoData().isAd())),y_(this,2),Zxa(this))))}else w_(this,"no-elem")}};
g.k.gn=function(a){var b=Yxa(this).uF,c=a===b;b=c?this.C.u:this.C.B;c=c?this.D.u:this.D.B;if(b.isActive()&&!c.isActive()){var d=this.I;cy(a.Ge(),d-.01)&&(y_(this,4),b.setActive(!1),this.B.qb("sbh","1"),c.setActive(!0));a=this.D.B;this.D.u.isActive()&&a.isActive()&&y_(this,5)}};
g.k.UD=function(){4<=this.status.status&&6>this.status.status&&w_(this,"player-reload-after-handoff")};
g.k.aa=function(){Xxa(this);this.u.unsubscribe("newelementrequired",this.UD,this);if(this.C){var a=this.C.B;this.C.u.u.unsubscribe("updateend",this.gn,this);a.u.unsubscribe("updateend",this.gn,this)}g.B.prototype.aa.call(this)};
g.k.Tb=function(a){g.pI(a,128)&&w_(this,"player-error-event")};
(function(a,b){if(Zw&&b){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c.wu=a.prototype[d],c.yu=b[d],a.prototype[d]=function(e){return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=$w();h=e.wu.apply(this,h);ax(e.yu,$w()-l);return h}}(c)),c={wu:c.wu,
yu:c.yu}}})(x_,{NA:"gtft"});g.u(z_,g.B);z_.prototype.clearQueue=function(){this.D&&this.D.reject("Queue cleared");A_(this)};
z_.prototype.aa=function(){A_(this);g.B.prototype.aa.call(this)};g.u(C_,g.B);g.k=C_.prototype;
g.k.PK=function(a){var b,c,d,e;a=this.C.get(a);if((null===a||void 0===a?0:a.cpn)&&(null===(c=null===(b=null===a||void 0===a?void 0:a.playerResponse)||void 0===b?void 0:b.videoDetails)||void 0===c?0:c.videoId)){for(var f,h,l=0;l<this.B.length;l++)this.B[l].cpn===a.cpn&&(0===l||this.B[l-1].zi!==a.zi?(f=this.u.getVideoData().clientPlaybackNonce,h=this.u.getVideoData().videoId,yW(this.u,"","",a.cpn,a.playerResponse.videoDetails.videoId,!1)):(h=this.B[l-1],f=h.cpn,h=null===(e=null===(d=h.playerResponse)||
void 0===d?void 0:d.videoDetails)||void 0===e?void 0:e.videoId));f&&h&&yW(this.u,a.cpn,a.playerResponse.videoDetails.videoId,f,h,!0)}};
g.k.QK=function(a){var b,c,d,e;a=this.C.get(a);if((null===a||void 0===a?0:a.cpn)&&(null===(c=null===(b=null===a||void 0===a?void 0:a.playerResponse)||void 0===b?void 0:b.videoDetails)||void 0===c?0:c.videoId)){for(var f,h,l=!1,m=0;m<this.B.length;m++)this.B[m].cpn===a.cpn&&(m===this.B.length-1||this.B[m+1].zi!==a.zi?(f=this.u.getVideoData().clientPlaybackNonce,h=this.u.getVideoData().videoId,l=!0):(h=this.B[m+1],f=h.cpn,h=null===(e=null===(d=h.playerResponse)||void 0===d?void 0:d.videoDetails)||void 0===
e?void 0:e.videoId));f&&h&&(yW(this.u,a.cpn,a.playerResponse.videoDetails.videoId,f,h,!1),l&&yW(this.u,"","",a.cpn,a.playerResponse.videoDetails.videoId,!0))}g.R(this.X.experiments,"web_player_halftime_dai")&&this.isLiveNow&&a&&a.Of&&!a.Of.target&&this.u.getCurrentTime()<kU(this.u.K)&&B_(this,Infinity)};
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)B_(this,a);else{b=this.api.Qb();var d=b===this.F?this.I:null;H_(this,!1);this.P=a;null!=c&&this.K.start(c);b&&(this.I=d||b.getPlayerState(),pW(b),this.F=b)}};
g.k.aa=function(){H_(this,!1);gX(this);g.B.prototype.aa.call(this)};
g.k.Hv=function(){return bs()};
var fya=0;g.u(I_,g.B);g.k=I_.prototype;g.k.RK=function(a){if(this.B===this.api.Qb()){var b=this.I.get(a);b?sya(this,b.target,b.Se,a):J_(this,"e.unexpectedCueRangeTriggered")}else if(b=this.u.find(function(e){return e.Of.Zc===a})){var c=b.Of,d=c.target;
c=c.Se;d?sya(this,d,c,a):rya(this,b.Dc,c,a)}};
g.k.vO=function(){var a=this.N;M_(this);a&&(L_(this,a)||J_(this,"e.unexpectedPresentingPlayer"),this.api.Qb().addCueRange(a.Of.Zc))};
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)lya(this,a);else{b=this.api.Qb();var d=b===this.D?this.K:null;O_(this,!1);this.X=a;null!=c&&this.W.start(c);b&&(this.K=d||b.getPlayerState(),pW(b),this.D=b)}};
g.k.Cf=function(a){g.pI(a,128)&&vya(this)};
g.k.isManifestless=function(){return hF(this.B.getVideoData())};
g.k.aa=function(){O_(this,!1);hX(this);g.B.prototype.aa.call(this)};
var mya=0;var xya="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.u(T_,g.B);T_.prototype.get=function(a){R_(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
T_.prototype.set=function(a,b,c){this.remove(a,!0);R_(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.O)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&U_(this,c,!0);S_(this)};
T_.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(U_(this,c,b),g.sb(this.data,function(d){return d.key===a}),S_(this))};
T_.prototype.aa=function(){var a=this;g.B.prototype.aa.call(this);this.data.forEach(function(b){U_(a,b,!0)});
this.data=[]};X_.prototype.getLocalMediaInfoById=function(a){return g.Ue(this,function c(){return g.Aa(c,function(d){return d["return"](Ifa(a))})})};
X_.prototype.getAllLocalMediaInfo=function(){return g.Ue(this,function b(){return g.Aa(b,function(c){return c["return"](Jfa())})})};
X_.prototype.u=function(a){if(a.kn&&2===a.status)gw(a.videoId,2);else if(4===a.status){var b=a.videoId;gw(b,4);mw(b,!1)}a.Xr&&Efa(a.videoId,a.videoDuration,g.Q(this.api.T().experiments,"hoffle_cache_size_secs"));g.R(this.api.T().experiments,"hoffle_api")&&this.api.va("localmediachange",{videoId:a.videoId,status:a.status,isBackground:a.isBackground});W_(this)};g.u(Z_,g.B);Z_.prototype.aa=function(){g.B.prototype.aa.call(this);this.B=null;this.u&&this.u.disconnect()};var Dya=db(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}}),$_=!1;var b2;b2={};g.a0=(b2.STOP_EVENT_PROPAGATION="html5-stop-propagation",b2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",b2.IV_DRAWER_OPEN="ytp-iv-drawer-open",b2.MAIN_VIDEO="html5-main-video",b2.VIDEO_CONTAINER="html5-video-container",b2.HOUSE_BRAND="house-brand",b2);g.u(b0,g.V);g.k=b0.prototype;g.k.fp=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.An(this.element,b)};
g.k.resize=function(){if(this.u){var a=this.getPlayerSize();if(!a.isEmpty()){var b=this.B;b=!g.ie(a,new g.he(b.width,b.height));var c=Kya(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.T();(c||b||a.xa)&&this.app.B.V("resize",this.getPlayerSize())}}};
g.k.updateVideoData=function(a){if(this.u){var b=this.app.T();jk&&(this.u.setAttribute("x-webkit-airplay","allow"),a.title?this.u.setAttribute("title",a.title):this.u.removeAttribute("title"));oF(a)?this.u.setAttribute("disableremoteplayback",""):this.u.removeAttribute("disableremoteplayback");this.u.setAttribute("controlslist","nodownload");b.gs&&a.videoId&&(this.u.poster=a.yd("default.jpg"));g.R(b.experiments,"html5_send_origin_for_progressive")&&a.Ha&&!a.Ha.sc()&&this.u.setAttribute("crossorigin",
"anonymous")}b=g.wF(a,"yt:bgcolor");this.C.style.backgroundColor=b?b:"";this.ba=zB(g.wF(a,"yt:stretch"));this.fa=zB(g.wF(a,"yt:crop"),!0);g.J(this.element,"ytp-dni",a.Hc);this.resize()};
g.k.setGlobalCrop=function(a){this.X=zB(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.ka=a;this.resize()};
g.k.getPlayerSize=function(){var a=this.app.T(),b=this.app.B.isFullscreen();if(b&&Yj())return new g.he(window.outerWidth,window.outerHeight);if(b||a.Ek){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.I&&this.I.media===a||(this.I=window.matchMedia(a));var c=this.I&&this.I.matches}if(c)return new g.he(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.D.width)&&!isNaN(this.D.height))return this.D.clone();if(this.P&&this.ha&&!this.app.isWidescreen())for(a=
0;a<this.P.length;a++)if(b=this.P[a],b.query.matches)return new g.he(b.size.width,b.size.height)}return new g.he(this.element.clientWidth,this.element.clientHeight)};
g.k.getVideoAspectRatio=function(){return isNaN(this.ba)?Iya(this):this.ba};
g.k.getVideoContentRect=function(a){var b=this.getPlayerSize();a=Jya(this,b,this.getVideoAspectRatio(),a);return new g.ig((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.wp=function(){RH(this)};
g.k.setUseFastSizingOnWatch=function(a){this.ha!==a&&(this.ha=a,this.resize())};
g.k.setInternalSize=function(a){g.ie(this.D,a)||(this.D=a,this.resize())};
g.k.aa=function(){this.W&&g.Oo(this.W);Hya(this);g.V.prototype.aa.call(this)};Lya.prototype.click=function(a,b){this.elements.has(a);this.u.has(a);var c=g.ks();c&&a.visualElement&&g.Ms(c,a.visualElement,b)};g.u(f0,g.V);
f0.prototype.setValue=function(a,b){for(var c=0;c+2<this.D.length&&this.D[c+1]<b;)c++;var d=Math.min(1,(b-this.D[c])/(this.D[c+1]-this.D[c]));if(this.B)this.B.fillStyle=this.F[c],this.B.fillRect(a*this.u,0,this.u,this.heightPx),this.B.fillStyle=this.F[c+1],this.B.fillRect(a*this.u,this.heightPx*(1-d),this.u,this.heightPx);else{var e=this.element.children[a],f=window.devicePixelRatio||1;d=Math.min(this.heightPx,Math.round(this.heightPx*d*f)/f)||0;e.style.height=d+"px";e.style.backgroundColor=this.F[c+
1];e.style.borderTop="solid "+(this.heightPx-d)+"px "+this.F[c]}};g.u(h0,g.V);g.k=h0.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.na()};
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.na()};
g.k.na=function(){var a=(0,g.O)(),b=this.F.getStatsForNerds();g0(this.u,b.bandwidth_samples);g0(this.D,b.network_activity_samples);g0(this.C,b.live_latency_samples);g0(this.B,b.buffer_health_samples);this.update(b);a=25<(0,g.O)()-a?5E3:500;this.delay.start(a)};g.u(j0,g.B);j0.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Ua(a),e=c2[d];if(e){try{e.dispose()}catch(h){g.N(h)}c2[d]=null}var f=new j0(a,b,c);g.dg(f,function(){c2[d]=null;f.vf&&f.vf()});
return c2[d]=f}catch(h){throw g.N(h),h.stack;}};
g.k=j0.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.isVideoInfoVisible=function(){return!(!this.ba||!this.ba.Wa)};
g.k.setIsExternalPlaylist=function(a){this.X=S(!1,a)};
g.k.rM=function(){k0(this)||g.C0(this,5)};
g.k.gO=function(a){k0(this)||(wza(this),g.RK(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return XA(a)};
g.k.T=function(){return this.u};
g.k.getVideoData=function(){return this.I.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.Z(this,a);return a?NF(a.getVideoData())?1:(a=a.B)?FS(a):0:0};
g.k.ke=function(){var a={},b=g.lX(this.D);b&&g.Wa(a,b.CJ());a.fs=this.B.isFullscreen();a.volume=Math.round(this.B.getVolume());a.muted=this.B.isMuted()?1:0;a.mos=a.muted;if(g.R(this.u.experiments,"html5_enable_embedded_player_visibility_signals")&&this.u.B&&(this.Pd&&(b=this.Pd,b=null==b.B?null:Math.round(100*b.B)/100,null!=b&&(a.inview=b)),b=this.template.getPlayerSize(),0<b.height&&0<b.width)){b=[Math.round(b.height),Math.round(b.width)];var c=g.eC();1<c&&b.push(c);a.size=b.join(":")}!this.ca("web_player_clips_vss_killswitch")&&
this.I===this.C&&this.P&&(a.clipid=this.P.postId);return a};
g.k.setLoopRange=function(a){var b=!1;!!this.P!==!!a?b=!0:this.P&&a&&(b=this.P.startTimeMs!==a.startTimeMs||this.P.endTimeMs!==a.endTimeMs||this.P.postId!==a.postId);b&&(AD(this.C.fa,"applooprange"),a?(b=new g.oD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.C.addCueRange(b)):t0(this).clipConfig=void 0,this.P=a,this.B.va("onLoopRangeChange",a),this.I===this.C&&(this.P&&!F0(this,this.C.getCurrentTime())&&this.Rx(),g.RT(this.I.I)))};
g.k.getLoopRange=function(){return this.P};
g.k.Rx=function(){this.C.seekTo(.001*this.P.startTimeMs)};
g.k.setPlaybackRate=function(a,b){if(!isNaN(a)){var c=Xya(this,a);this.C.getPlaybackRate()!==c&&(this.C.setPlaybackRate(c),b&&!this.u.B&&g.Ps("yt-player-playback-rate",c),this.B.va("onPlaybackRateChange",c))}};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return g.PW(this.D).getCurrentTime();var c=g.Z(this,a);return c?b?(c=s0(this,c),G0(this,c.getCurrentTime(),c)):c.getCurrentTime():0};
g.k.getDuration=function(a,b){var c=g.Z(this,a);return c?void 0===b||b?(c=iX(this,c),G0(this,c.getDuration(),c)):c.getDuration():0};
g.k.qc=function(a){a=g.Z(this,a);if(!a)return 0;a=iX(this,a);return G0(this,a.qc(),a)};
g.k.je=function(a){var b=g.Z(this,a);return b?this.Gc(b)?(b=iX(this,b),b.je()-b.getCurrentTime()+this.getCurrentTime(a)):b.je():0};
g.k.getDebugText=function(a){var b=this.C.ib(a);if(this.I&&this.I!==this.C&&(b=Iza(b,this.I.ib(a),"ad"),a)){var c=b;var d={};var e=qe(document,"movie_player");e&&(d.bounds=e.getBoundingClientRect(),d["class"]=e.className);e={};var f=g.te("video-ads");f?(Gza(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.te("videoAdUiSkipContainer"),l=g.te("ytp-ad-skip-button-container"),m=h||l;m?(Gza(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.F&&(b["0sz"]=0===je(this.F.Zm()),b.op=this.F.Ao("opacity"),c=this.F.Pj().y+this.F.Zm().height,b.yof=0>=c,b.dis=this.F.Ao("display"));(a=a?(0,g.BT)():null)&&(b.gpu=a);b.cgr=!0;b.debug_playbackQuality=this.B.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;(a=XW(this.D))&&(b=Iza(b,a.ib(),"fresca"));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=g.Z(this).ib(!0).debug_error;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(){return 1===this.fa?1:k0(this)?3:g.Z(this).getPlayerType()};
g.k.getAppState=function(){return this.fa};
g.k.uP=function(a){switch(a.type){case "loadedmetadata":DA("fvb",this.K.timerName)||this.K.tick("fvb");GA("fvb","video_to_ad");this.Ob.start();break;case "loadstart":DA("gv",this.K.timerName)||this.K.tick("gv");GA("gv","video_to_ad");break;case "progress":case "timeupdate":!DA("l2s",this.K.timerName)&&2<=ey(a.target.Xe())&&this.K.tick("l2s");break;case "playing":g.lC&&this.Ob.start();if(g.VB(this.u))a=!1;else{var b=g.SW(this.D);a="none"===this.F.Ao("display")||0===je(this.F.Zm());var c=c0(this.template),
d=this.I.getVideoData(),e=iC(this.u)||g.PB(this.u);d=YE(d);b=!c||b||e||d||this.u.tc;a=a&&!b}a&&(this.I.qb("hidden","1",!0),this.getVideoData().hi||(this.ca("html5_new_elem_on_hidden")?(this.getVideoData().hi=1,this.VD(null),this.I.playVideo()):zza(this,"hidden",!0)))}};
g.k.vN=function(a,b){this.B.va("onLoadProgress",b)};
g.k.cP=function(){this.B.V("playbackstalledatstart")};
g.k.zp=function(a,b){var c=s0(this,a);b=G0(this,c.getCurrentTime(),c);this.B.va("onVideoProgress",b)};
g.k.cN=function(){this.B.va("onDompaused")};
g.k.rO=function(){this.B.V("progresssync")};
g.k.tM=function(a){if(1===this.getPresentingPlayerType()){g.pI(a,1)&&!g.T(a.state,64)&&t0(this).isLivePlayback&&this.C.isAtLiveHead()&&1<this.B.getPlaybackRate()&&this.setPlaybackRate(1,!0);g.pI(a,2)&&aza(this);if(g.T(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.stateData;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.B.va("onError",tBa[b.errorCode]||5);this.B.va("onDetailedError",{errorCode:b.errorCode,errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.yv});
6048E5<(0,g.O)()-this.u.Ia&&this.B.va("onReloadRequired")}b={};if(a.state.Cb()&&!g.SK(a.state)&&!DA("pbresume","ad_to_video")&&DA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);CA(b,"ad_to_video");wA("pbresume",void 0,"ad_to_video")}this.B.V("applicationplayerstatechange",a)}};
g.k.tE=function(a){3!==this.getPresentingPlayerType()&&this.B.V("presentingplayerstatechange",a)};
g.k.Cf=function(a){p0(this,TK(a.state));g.T(a.state,1024)&&this.B.isMutedByMutedAutoplay()&&(GW(this,{muted:!1,volume:this.Y.volume},!1),D0(this,!1))};
g.k.iO=function(a){a.state.Cb()&&!g.SK(a.state)&&(Wva(this.D),g.Rr(this.ld))};
g.k.pM=function(a,b,c){"newdata"===a&&hza(this);(a=c.clipConfig)&&null!=a.startTimeMs&&null!=a.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(a.startTimeMs)),endTimeMs:Math.floor(Number(a.endTimeMs)),postId:a.postId})};
g.k.JJ=function(){this.B.va("onPlaybackAudioChange",this.B.getAudioTrack().u.name)};
g.k.NJ=function(a){var b=this.I.getVideoData();a===b&&this.B.va("onPlaybackQualityChange",a.Ka.Ja().quality)};
g.k.Oa=function(a,b,c){b.getPlayerType();b===this.C&&(this.u.jd=c.oauthToken);if(this.u.C&&this.N){if(c.Qo&&MF(c)){var d=c.Qo;c.Qo=null}else d=null;d&&this.N.u(d)}this.getVideoData().enableServerStitchedDai&&!this.W&&(this.W=new C_(this.B,this.u,this.C));if("newdata"===a)pX(this.D,2),this.B.V("videoplayerreset",b);else{if(!this.F)return;"dataloaded"===a&&(this.I===this.C?(c.Na.Be(c.DE),this.C.getPlayerState().isError()||(d=k0(this),t0(this).Bc(),d&&g.C0(this,6),cza(this),d||(d=qX(this.D))&&!d.created&&
mX(this.D)&&d.create())):cza(this));1===b.getPlayerType()&&(this.u.W&&Bza(this),this.getVideoData().isLivePlayback&&!this.u.xr&&this.C.Id("html5.unsupportedlive","DEVICE_FALLBACK",void 0,void 0),c.Bc()&&(c.qn||c.wt||c.xt||c.Oc.focEnabled||c.Oc.rmktEnabled||this.getVideoData().Fu)&&(d=this.getVideoData(),J0(this,"part2viewed",1,0x8000000000000),J0(this,"engagedview",Math.max(1,1E3*d.Lg),0x8000000000000),d.isLivePlayback||(d=1E3*d.lengthSeconds,J0(this,"videoplaytime25",.25*d,d),J0(this,"videoplaytime50",
.5*d,d),J0(this,"videoplaytime75",.75*d,d),J0(this,"videoplaytime100",d,0x8000000000000),J0(this,"conversionview",d,0x8000000000000))));this.B.V("videodatachange",a,c,b.getPlayerType())}this.B.va("onVideoDataChange",{type:a,playertype:b.getPlayerType()});b===this.C&&this.P&&!F0(this,this.C.getCurrentTime())&&this.Rx();a=c.clientScreenNonce;c=c.Kt;a&&c?(b=this.ya,a!==g.ks()&&(ns(a,c),Nya(b))):Nya(this.ya)};
g.k.Ps=function(){w0(this,null);this.B.va("onPlaylistUpdate")};
g.k.yD=function(a){var b=a.getId(),c=t0(this);if("part2viewed"===b)c.KE&&g.Vs(c.KE),c.wt&&S0(this,c.wt),c.xt&&T0(this,c.xt);else if("conversionview"===b){var d=this.C.I;d.u&&dta(d.u)}else"engagedview"===b&&g.Vs(c.qn);if(c.LE){d=c.LE;var e={label:a.getId()};if(g.R(this.u.experiments,"send_pyv_ad_mt_and_abandon_pings")){var f=1E3*this.getCurrentTime();e.ad_mt=Math.round(Math.max(0,f)).toString()}d=g.Zp(d,e);g.Vs(d)}switch(b){case "videoplaytime25":c.Dx&&S0(this,c.Dx);c.Ex&&T0(this,c.Ex);c.NE&&g.Vs(c.NE);
break;case "videoplaytime50":c.Fx&&S0(this,c.Fx);c.Gx&&T0(this,c.Gx);c.OE&&g.Vs(c.OE);break;case "videoplaytime75":c.Hx&&S0(this,c.Hx);c.Ix&&T0(this,c.Ix);c.PE&&g.Vs(c.PE);break;case "videoplaytime100":c.Bx&&S0(this,c.Bx),c.Cx&&T0(this,c.Cx),c.ME&&g.Vs(c.ME)}(b=this.getVideoData().Fu)&&mza(b,a.getId())&&mza(b,a.getId()+"gaia");this.C.removeCueRange(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.Z(this,a);if(!c)return!1;var d=iX(this,c);c=s0(this,c);return d!==c?d.isAtLiveHead(G0(this,c.getCurrentTime(),c),!0):d.isAtLiveHead(void 0,b)};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.Z(this,d))2===this.fa&&A0(this),this.Gc(d)?this.W?this.W.seekTo(a,b,c):this.ka.seekTo(a,b,c):d.seekTo(a,{UF:!b,VF:c})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.MJ=function(){this.B.va("SEEK_COMPLETE")};
g.k.SO=function(a,b){var c=a.getVideoData();if(1===this.fa||2===this.fa)c.startSeconds=b;2===this.fa?A0(this):(this.B.va("SEEK_TO",b),!this.ca("hoffle_api")&&this.N&&Y_(this.N,c.videoId))};
g.k.jM=function(){this.B.V("airplayactivechange")};
g.k.kM=function(){this.B.V("airplayavailabilitychange")};
g.k.DM=function(){this.B.V("beginseeking")};
g.k.fN=function(){this.B.V("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.Z(this,a))?iX(this,a).getVideoData().getStoryboardFormat():null};
g.k.Rf=function(a){return(a=g.Z(this,a))?iX(this,a).getVideoData().Rf():null};
g.k.Gc=function(a){if(a=a||this.I){a=a.getVideoData();if(this.W)a:{var b=this.W;if(a===b.u.getVideoData()&&b.B.length)a=!0;else{b=g.q(b.B);for(var c=b.next();!c.done;c=b.next())if(a.Ub===c.value.Ub){a=!0;break a}a=!1}}else a:if(b=this.ka,a===b.B.getVideoData()&&b.u.length)a=!0;else{b=g.q(b.u);for(c=b.next();!c.done;c=b.next())if(a.Ub===c.value.Ub){a=!0;break a}a=!1}if(a)return!0}return!1};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Gc();a=new g.PE(this.u,a);d&&(a.Ub=d);!g.R(this.u.experiments,"html5_report_dai_ad_playback_killswitch")&&2===b&&this.C&&jta(this.C.I,a.clientPlaybackNonce,a.Ep||"",a.breakType||0);pza(this,a,b,c)};
g.k.clearQueue=function(){this.Ra.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d){var e=new g.PE(this.u,a);c||(a&&VF(a)?(dC(this.u)&&!this.X&&(a.fetch=0),w0(this,a)):this.playlist&&w0(this,null),a&&this.setIsExternalPlaylist(a.external_list),dC(this.u)&&!this.X&&x0(this));return Q_(this,e,b,d)};
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=AB(a);d=K0(b,d,e);this.wb.get(d)||this.I&&this.I.ka.started&&d===K0(this.I.getPlayerType(),this.I.getVideoData().videoId,this.I.getVideoData().Ub)||(a=new g.PE(this.u,a),e&&(a.Ub=e),rza(this,a,b,c))};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.D;a=a.J.T().showMiniplayerUiWhenMinimized?a.Cc.get("miniplayer"):void 0;a&&(this.visibility.u?a.load():a.unload());this.B.V("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.PO=function(){"picture-in-picture"===this.F.La().webkitPresentationMode?q0(this,!0):q0(this,!1)};
g.k.togglePictureInPicture=function(){var a=g.Z(this);a&&a.togglePictureInPicture()};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;if(a&&VF(a)){this.Ia=!0;w0(this,a);var d=this.playlist.Ja();if(d&&d.isValid())M0(this,d,b);else this.playlist.onReady(function(){z0(c)})}else b||(b=this.getPresentingPlayerType()),1===b&&this.Ps(),M0(this,new g.PE(this.u,a),b)};
g.k.cuePlaylist=function(a,b,c,d){this.Ia=!0;sza(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Ia=!1;sza(this,a,b,c,d)};
g.k.nextVideo=function(a,b){var c=this,d=this.C.getVideoData().suggestions;if(g.cX(this.B)&&d){d=d.map(function(f){return g.oZ(c.u,f)})[0];
var e=b?d.vv:d.hd;g.N0(this,d.Ja().videoId,e,d.getPlaylistId(),b,d.Wz||void 0)}else this.X?this.B.va("onPlaylistNext"):3===this.getPresentingPlayerType()?g.PW(this.D).nextVideo():this.playlist&&(dC(this.u)&&!this.B.isFullscreen()?I0(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&YF(this.playlist,WF(this.playlist)),this.playlist.loaded?(d=b&&g.R(this.u.experiments,"html5_player_autonav_logging"),Q_(this,this.playlist.Ja(void 0,b,d),1)):this.Ia=!1))};
g.k.previousVideo=function(a){this.X?this.B.va("onPlaylistPrevious"):3===this.getPresentingPlayerType()?g.PW(this.D).vt():this.playlist&&(dC(this.u)&&!this.B.isFullscreen()?I0(this,"yt.www.watch.lists.prev"):(this.playlist.Qh(a)&&YF(this.playlist,XF(this.playlist)),this.playlist.loaded?Q_(this,this.playlist.Ja(),1):this.Ia=!1))};
g.k.playVideoAt=function(a){this.X?this.B.va("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?Q_(this,this.playlist.Ja(a),1):this.Ia=!1,YF(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.nM=function(a){this.B.va("onCueRangeEnter",a.getId())};
g.k.oM=function(a){this.B.va("onCueRangeExit",a.getId())};
g.k.sM=function(){function a(){var d=g.ks(b.tf||(b.visibility.u?3:0));if(d){var e={cpn:b.getVideoData().clientPlaybackNonce,csn:d};if(g.R(b.u.experiments,"web_playback_associated_ve")&&null!=b.getVideoData().pg){var f=g.es(b.getVideoData().pg);g.Cs(d,f,void 0);e.playbackVe=f.getAsJson()}g.R(b.u.experiments,"kevlar_playback_associated_queue")&&b.getVideoData().queueInfo&&(e.queueInfo=b.getVideoData().queueInfo);d={};b.ca("web_playback_associated_log_ctt")&&null!==b.getVideoData().zh&&(d.pm={token:b.getVideoData().zh,
videoId:b.getVideoData().videoId});g.Fq("playbackAssociated",e,d)}}
var b=this;this.getPresentingPlayerType();this.Fa||(this.Fa=ys(IA,this.FD,this));nM(this.K,this.I.getVideoData(),oM(this));v0(this)&&this.u.B&&"embedded"===HF(t0(this))&&this.rf&&.01>Math.random()&&g.Fq("autoplayTriggered",{intentional:this.ce});this.rf=!1;g.R(this.u.experiments,"screen_manager_wait_for_csn")?Kna(a):a();zA("player_att",["att_f","att_e"]);if(this.ca("web_player_inline_botguard")){var c=this.getVideoData().botguardData;c&&(this.ca("web_player_botguard_inline_skip_config_killswitch")&&
(ro("BG_I",c.interpreterScript),ro("BG_IU",c.interpreterUrl),ro("BG_P",c.program)),g.fC(this.u)?pp(function(){B0(b)}):B0(this))}};
g.k.nN=function(){this.B.V("internalAbandon");this.ca("html5_ad_module_cleanup_killswitch")||H0(this)};
g.k.FD=function(a){a=a.u;if(!isNaN(a)&&0<a&&this.C){var b=this.C.I;b.qoe&&0<a&&(b.qoe.u.aft=[a.toString()])}};
g.k.MN=function(){var a=this.F;a={volume:g.be(Math.floor(100*a.getVolume()),0,100),muted:a.Dr()};a.muted||D0(this,!1);this.Y=g.Zb(a);this.B.va("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.B.va("onMutedAutoplayStarts"))};
g.k.iN=function(){var a=P0(this);r0(this,a?1:0);yza(this,!!a)};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.HO=function(){0!==this.visibility.fullscreen&&1!==this.visibility.fullscreen||r0(this,P0(this)?1:0);this.u.Ah&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.F&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.F.no()};
g.k.uN=function(a){3!==this.getPresentingPlayerType()&&this.B.V("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.Z(this,a))2===this.fa?A0(this):(null!=this.ba&&this.ba.Wa&&this.ba.start(),g.T(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.Z(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.C.getVideoData(),b=new g.PE(this.u,{video_id:a.Qy||a.videoId,oauth_token:a.oauthToken});b.sh=g.Zb(a.sh);this.cancelPlayback(6);M0(this,b,1);null!=this.ba&&this.ba.stop()};
g.k.cancelPlayback=function(a,b){xs(this.Fa);this.Fa=0;var c=g.Z(this,b);if(c&&1!==this.fa&&2!==this.fa){c===this.I&&pX(this.D,a);var d=c.getVideoData();if(this.N&&MF(d)&&d.videoId)if(this.ca("hoffle_api")){var e=this.N;d=d.videoId;if(2===dw(d)){var f=V_(e,d);f&&f!==e.player&&MF(f.getVideoData())&&(f.D&&fE(f.D),nF(f.getVideoData(),!1),gw(d,3),W_(e))}}else Y_(this.N,d.videoId);1===b&&(g.R(this.u.experiments,"html5_stop_video_in_cancel_playback")&&c.stopVideo(),H0(this));c.mh();$W(this,"cuerangesremoved",
zD(c.fa)||[]);c.fa.reset();this.Ra&&c.isGapless()&&(hW(c,!0),iW(c,this.F))}};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.Z(this,b))&&this.u.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.updatePlaylist=function(){dC(this.u)?x0(this):g.R(this.u.experiments,"embeds_wexit_list_ajax_migration")&&g.MB(this.u)&&y0(this);this.B.va("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.uf=a;this.jd=b;this.B.V("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.jd};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return g.PW(this.D).getAdState();if(!this.Gc()){var a=qX(this.D);if(a)return a.getAdState()}return-1};
g.k.GO=function(a){var b=this.template.getVideoContentRect();jg(this.qf,b)||(this.qf=b,this.I&&nW(this.I),this.C&&this.C!==this.I&&nW(this.C),1===this.visibility.fullscreen&&this.kb&&yza(this,!0));this.kd&&g.ie(this.kd,a)||(this.B.V("appresize",a),this.kd=a)};
g.k.Vd=function(){return this.B.Vd()};
g.k.WO=function(){2===this.getPresentingPlayerType()&&this.ka.isManifestless()&&!this.ca("web_player_manifestless_ad_signature_expiration_killswitch")?vya(this.ka):zza(this,"signature",void 0,!0)};
g.k.VD=function(){n0(this);m0(this)};
g.k.FO=function(a){tW(a,this.F.Ms())};
g.k.LJ=function(a){this.N&&this.N.u(a)};
g.k.RM=function(){this.B.va("CONNECTION_ISSUE")};
g.k.KJ=function(a){this.B.V("heartbeatparams",a)};
g.k.setBlackout=function(a){this.u.tc=a;this.I&&(g.RT(this.I.I),this.u.W&&Bza(this))};
g.k.setAccountLinkState=function(a){var b=g.Z(this);b&&(b.getVideoData().hm=a,g.RT(b.I))};
g.k.updateAccountLinkingConfig=function(a){var b=g.Z(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.B.V("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.XN=function(){var a=g.Z(this);if(a){var b=!ZW(this.B);g.jva(a,b)}};
g.k.xN=function(){this.B.va("onLoadedMetadata")};
g.k.eN=function(){this.B.va("onDrmOutputRestricted")};
g.k.aa=function(){this.D.dispose();this.ka.dispose();this.W&&this.W.dispose();this.C.dispose();n0(this);g.fg(g.Pb(this.Nd),this.playlist);xs(this.Fa);this.Fa=0;g.B.prototype.aa.call(this)};
g.k.ca=function(a){return g.R(this.u.experiments,a)};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.tf=a};
g.k.cancelPendingLocalMediaById=function(a){return this.N&&this.ca("hoffle_api")?Y_(this.N,a):Promise.reject()};
g.k.fetchLocalMedia=function(){if(this.N&&this.ca("hoffle_api")){var a=this.N,b=a.api.Qb();b&&(b=b.getVideoData(),MF(b)||(gw(b.videoId,2),a.api.mh(),nF(b,!0),Aya(a,b),a.api.playVideo()))}};
g.k.fetchLocalMediaById=function(a){if(this.N&&this.ca("hoffle_api")){var b=this.N;dw(a)||(0===fw(2).length?Bya(b,a):gw(a,3))}};
g.k.getLocalMediaInfoById=function(a){return this.N&&this.ca("hoffle_api")?this.N.getLocalMediaInfoById(a):Promise.reject()};
g.k.getAllLocalMediaInfo=function(){return this.N&&this.ca("hoffle_api")?this.N.getAllLocalMediaInfo():Promise.reject()};
g.k.getStatsForNerds=function(){var a=this.B,b=g.Z(this),c=a.getVideoData(),d=a.app.F,e=d.La(),f=b.Sv(),h=b.xa,l=8*sU(h,"bandwidth")/1024,m=sU(h,"networkactivity")/1024,n=sU(h,"bufferhealth");if(b.P){var p=b.u.useInnertubeDrmService()?"IT/":"";p+=b.P.u.ie()+"/"+zC(lW(b));p+="/"+b.P.ie()}else p="";var r=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),w=ay(d.Xe(),",",3);var x="";c.QB()&&(x+="DAI, ");c.fetchType&&(x+="vd:"+("gvi"===c.fetchType?"g":"o")+", ");x+="s:"+r+" t:"+t+" b:"+
w+" ";d.Xo()&&(x+="S");d.ik()&&(x+="P");d.Th()&&(x+="E");d=b.I;d=d.qoe?d.qoe.ea:void 0;d&&(x+=" l:"+d.toFixed());d=g.eC();r=g.TW(a).iJ;t=c.Ha&&!c.Ha.sc()?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){for(var y=0,D="",E=0;10>E;E++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),4==E%5){for(var G="",K=0;6>K;K++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;D+=G}w=D.substr(0,4)+" "+D.substr(4,4)+" "+D.substr(8,4)}else w=
"";l={video_id_and_cpn:c.videoId+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:x,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<d?"*"+d.toFixed(2):"");n="-";f.totalVideoFrames&&(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);
l.dims_and_frames=m+" / "+n;a=a.getVolume();f=LF(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.Ip.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.Ka)if(e=a.video)f=e.fps,1<f&&(l.resolution+="@"+f),(f=g.dW(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=Cya(a),!c.Nc||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):
l.codecs+=" / "+Cya(c.Nc),e.u||e.primaries?(a=e.u||"unknown","smpte2084"===a?a+=" (PQ)":"arib-std-b67"===a&&(a+=" (HLG)"),l.color=a+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;a=c.cf;l.live_mode_style=e||a?"":"display:none";l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(hF(c)?" Manifestless":"");else if(e){a=sU(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=hF(c)?"Manifestless, ":"";c.Mo&&(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=rU(h,"bandwidth");l.network_activity_samples=rU(h,"networkactivity");l.live_latency_samples=rU(h,"livelatency");l.buffer_health_samples=rU(h,"bufferhealth");bF(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20201014_1_RC0",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.P&&this.P.postId?(a=this.u.getVideoUrl(a),a=Qd(a,"v"),a.replace("/watch","/clip/"+this.P.postId)):this.u.getVideoUrl(a,b,c,d,e)};
var c2={};g.Ja("yt.player.Application.create",j0.create,void 0);g.Ja("yt.player.Application.createAlternate",j0.create,void 0);var zBa=g.Na("ytcsi.tick");zBa&&zBa("pe");g.oX.ad=wS;var Kza=/#(.)(.)(.)/,Jza=/^#(?:[0-9a-f]{3}){1,2}$/i;var Mza=g.ye&&Lza();g.Xa(g.W0,g.B);var ABa=[];g.k=g.W0.prototype;g.k.ra=function(a,b,c,d){Array.isArray(b)||(b&&(ABa[0]=b.toString()),b=ABa);for(var e=0;e<b.length;e++){var f=Vl(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.u[f.key]=f}return this};
g.k.Hw=function(a,b,c,d){return Nza(this,a,b,c,d)};
g.k.Bb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Bb(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Sa(d)?!!d.capture:!!d,e=e||this.B||this,c=Wl(c),d=!!d,b=Pl(a)?a.xo(b,c,d,e):a?(a=Yl(a))?a.xo(b,c,d,e):null:null,b&&(dm(b),delete this.u[b.key])};
g.k.aa=function(){g.W0.Wc.aa.call(this);g.Oza(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};X0.prototype.u=4;X0.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
X0.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(X0.BYTES_PER_ELEMENT=4,X0.prototype.BYTES_PER_ELEMENT=X0.prototype.u,X0.prototype.set=X0.prototype.set,X0.prototype.toString=X0.prototype.toString,g.Ja("Float32Array",X0,void 0));Y0.prototype.u=8;Y0.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
Y0.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Y0.BYTES_PER_ELEMENT=8}catch(a){}Y0.prototype.BYTES_PER_ELEMENT=Y0.prototype.u;Y0.prototype.set=Y0.prototype.set;Y0.prototype.toString=Y0.prototype.toString;g.Ja("Float64Array",Y0,void 0)};})(_yt_player);
