var _yt_player={};(function(g){var window=this;var ba,ea,fa,aaa,ha,ga,caa,ia,u,ma,na,oa,ra,ua,eaa,faa,wa,ya,Aa,D,Ba,Ca,Da,oaa,paa,Ea,Fa,Ga,Ha,E,qaa,Na,Ma,Oa,Pa,Qa,Ra,Sa,Ta,saa,Za,Ya,bb,fb,ib,kb,nb,pb,tb,qb,ub,vb,taa,rb,uaa,xb,yb,zb,Ab,Fb,Hb,Ib,Jb,vaa,Pb,Qb,Kb,Rb,Sb,Ub,Vb,Wb,Xb,$b,ac,bc,cc,dc,xaa,fc,ic,hc,kc,lc,mc,pc,sc,tc,vc,Aaa,wc,xc,zc,Ac,Bc,Cc,Dc,yc,Ec,Gc,Baa,Mc,Nc,Oc,Jc,Rc,Qc,Caa,Hc,Fc,N,Tc,Uc,Vc,Wc,Daa,Xc,Yc,$c,Eaa,ad,bd,Faa,hd,id,jd,md,od,pd,qd,Gaa,Iaa,Jaa,wd,td,ud,kd,rd,Laa,Ad,yd,zd,Cd,Kaa,Bd,Haa,Ed,Fd,Gd,Hd,Ld,Nd,Qd,Sd,Td,Ud,Wd,Xd,Yd,
$d,ae,ce,de,fe,ee,he,ie,je,le,me,oe,Taa,ne,qe,re,se,ve,Yaa,Zaa,xe,ye,Be,Fe,He,Ie,$aa,Ke,Ne,Le,Oe,Pe,Qe,Ue,Ve,Xe,Ze,$e,bf,af,cf,De,ef,gf,kf,hf,jf,bba,mf,nf,lf,Ce,of,eba,qf,sf,rf,uf,vf,xf,gba,zf,Af,Bf,Cf,Df,hba,Ef,Gf,Hf,iba,If,Kf,Lf,Jf,Mf,Nf,Of,Rf,Uf,Vf,Wf,Xf,Yf,$f,bg,dg,eg,fg,gg,hg,kg,lg,rg,sg,nba,mg,og,oba,ng,vg,wg,ug,yg,qg,xg,lba,zg,Bg,Eg,Fg,Gg,Ig,pba,Jg,Kg,Lg,Mg,Ng,Og,Pg,Rg,Ug,Vg,Wg,qba,$g,eh,Xg,ih,jh,hh,lh,mh,oh,qh,rh,sh,th,wh,xh,rba,uh,vh,yh,vba,Ah,Ch,Eh,Hh,Ih,Jh,Lh,Mh,Oh,Qh,Th,Vh,Wh,Xh,Nh,ci,
di,gi,hi,wba,Yh,ji,xba,yba,zba,ni,Aba,Bba,Eba,Dba,Cba,Fba,ri,si,qi,ui,vi,wi,xi,Ai,Ci,Bi,Di,Ei,Fi,Gi,Hi,Ii,Ji,Ki,Mi,Oi,Qi,Ri,Ui,Vi,Wi,Zi,$i,Jba,bj,aj,dj,cj,ej,Xi,gj,Kba,jj,kj,R,lj,mj,Oba,oj,Pba,pj,Qba,rj,sj,tj,uj,vj,wj,Rba,Sba,Tba,zj,Aj,Bj,Cj,Dj,Uba,Jj,Kj,Lj,Mj,Oj,Pj,Wba,Sj,Xba,Xj,Zba,Yba,Zj,ak,bk,ek,gk,fk,hk,jk,ik,$ba,kk,lk,mk,nk,ok,pk,qk,rk,sk,tk,uk,wk,Ak,vk,Bk,xk,Dk,Ek,Fk,Gk,Hk,Ik,Kk,bca,Lk,Nk,Pk,Qk,Rk,Mk,Sk,Uk,Wk,U,Vk,Xk,Yk,bl,il,ll,ml,nl,sl,rl,Cl,Nl,Ql,Rl,Sl,cca,dca,Tl,eca,fca,Ul,Vl,Wl,Xl,Zl,
$l,bm,ica,cm,jca,dm,gm,em,im,lca,km,pca,sca,qca,mm,om,wca,pm,tm,xca,um,yca,zca,zm,ym,wm,Aca,Gm,Fm,Bm,Jm,Km,Lm,Im,Nm,Bca,Cca,Sm,Qm,Rm,Vm,Wm,Zm,an,Ym,Eca,Xm,bn,$m,Gca,fn,gn,hn,jn,kn,ln,nn,qn,on,pn,sn,tn,vn,yn,zn,An,Bn,Cn,Dn,En,Gn,In,Jn,Kn,Ln,Mn,Nn,Ica,On,Qn,Rn,Jca,Tn,Sn,Un,Vn,Yn,Zn,$n,co,fo,go,bo,ao,io,ko,lo,no,oo,po,Kca,qo,ro,so,to,Lca,Mca,wo,uo,vo,Nca,xo,yo,zo,Oca,Pca,Qca,Rca,Co,Eo,Fo,Bo,Go,Io,Ho,Lo,Mo,Ko,No,Oo,Sca,Tca,Po,Qo,Ro,So,Wo,Xo,Uca,Zo,$o,Yo,ap,bp,Vca,Wca,Xca,cp,Yca,dp,ep,fp,gp,hp,Zca,$ca,
ip,jp,kp,lp,mp,np,op,pp,ada,qp,bda,cda,dda,rp,sp,up,tp,fda,vp,wp,gda,xp,yp,zp,Ap,Bp,Cp,lda,Gp,Hp,Ip,mda,Ep,Fp,Dp,Lp,Mp,Kp,nda,Np,Op,oda,pda,qda,tda,Pp,Rp,Sp,Tp,Up,Vp,Qp,Wp,Xp,Yp,vda,wda,Zp,xda,yda,Ada,$p,Bda,Cda,aq,Eda,Fda,Gda,bq,Jda,dq,fq,eq,Lda,Kda,gq,Mda,iq,hq,jq,kq,lq,mq,oq,pq,Nda,rq,sq,tq,uq,vq,wq,Oda,xq,yq,zq,Aq,Pda,Hq,Jq,Kq,Fq,Iq,Bq,Eq,Cq,Lq,Dq,Gq,Mq,Nq,Tda,Uda,Pq,Rq,Qda,Rda,Sda,Wda,Qq,Tq,Uq,Vda,Vq,Wq,Xq,Yq,Zq,Xda,$q,ar,cr,br,dr,er,fr,gr,$da,jr,lr,mr,nr,qr,pr,rr,tr,sr,ur,vr,wr,xr,yr,zr,Ar,
Br,bea,Cr,Dr,Er,Fr,Gr,Hr,Ir,cea,Jr,Mr,Nr,Or,Pr,Qr,Rr,Kr,Sr,Tr,dea,Lr,Vr,Wr,Xr,Yr,Zr,fea,gea,hea,iea,jea,kea,as,bs,cs,ds,es,lea,fs,gs,hs,is,mea,nea,js,os,ns,ps,ks,qs,rs,oea,ts,us,vs,ws,xs,qea,rea,sea,Bs,tea,ys,zs,uea,vea,Ds,Cs,Es,pea,wea,Fs,As,ul,vl,Gs,Hs,Js,Ks,xea,Ls,Ms,Ns,Ps,Qs,Rs,Os,yea,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,ft,et,zea,gt,ht,Aea,Bea,Cea,jt,kt,lt,mt,ot,Eea,pt,qt,Fea,Gea,Hea,tt,rt,ut,vt,wt,xt,zt,Iea,Jea,Kea,Lea,Gt,Ht,Mea,It,Jt,Nea,Lt,Kt,Oea,Mt,Ot,Pt,Qt,Pea,Rt,Qea,Rea,Vea,Wea,Sea,Tea,
Uea,St,Xea,Tt,Yt,au,Ut,Zt,fu,cu,$t,hu,eu,bu,du,gu,Vt,iu,Yea,ju,Zea,Wt,Xt,ku,lu,mu,ou,qu,ru,uu,vu,$ea,wu,tu,nu,pu,xu,yu,zu,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,Iu,afa,Ju,Ku,Lu,Mu,cfa,bfa,Nu,dfa,Ou,Ru,Su,efa,Tu,Uu,Vu,Wu,Xu,Xn,ffa,Yu,Pu,Zu,av,bv,$u,ev,fv,gfa,ifa,jfa,lv,mv,nv,ov,pv,qv,rv,vv,xv,wv,zv,yv,uv,Av,tv,Bv,Cv,Dv,Ev,Fv,Gv,Hv,Iv,Jv,Kv,Lv,Mv,Nv,lfa,mfa,Pv,Qv,nfa,ofa,Wv,Vv,Rv,Yv,ew,fw,kw,nw,ow,mw,bw,pw,aw,Zv,$v,gw,iw,lw,jw,tfa,ufa,vfa,qw,rw,uw,tw,vw,wfa,xfa,ww,xw,yw,zw,Bw,Cw,Dw,Ew,yfa,Fw,Gw,Lw,Kw,Mw,Nw,Sw,Rw,
Pw,Uw,Tw,Vw,zfa,Yw,Xw,Zw,ax,Ffa,gx,Mfa,fx,ex,Efa,Et,mx,zx,Ax,wx,Pn,Dx,Ex,Fx,Gx,nj,xx,ux,Mx,Tfa,yx,Ufa,Vfa,Wfa,Xfa,Nx,Ox,Yfa,Px,Qx,Rx,Zfa,Vx,Tx,Wx,ega,fga,Dt,Xx,$x,Yx,dy,ey,fy,gy,hy,iy,jy,Zx,cga,dga,$fa,aga,ky,ly,Bt,gga,my,ry,sy,ty,py,uy,hga,iga,jga,kga,oy,vy,lga,wy,Dy,Hy,Iy,Ky,Ny,Ly,My,Ry,Py,Ty,Sy,Uy,Vy,Wy,Yy,Zy,az,$y,nga,tl,mga,bz,cz,dz,oga,pga,fz,qga,gz,hz,ez,iz,jz,kz,rga,tga,oz,pz,uga,vga,lz,sga,mz,rz,sz,qz,uz,tz,yga,vz,xz,wz,yz,Az,Bz,zz,Dz,Bga,Ez,Gz,Hz,Iz,Jz,Fz,Kz,Mz,Lz,Nz,Qz,Rz,Uz,Wz,Sz,Yz,$z,
aA,bA,cA,dA,eA,fA,hA,gA,iA,jA,kA,nA,Cga,mA,oA,rA,sA,tA,Dga,uA,Ega,xA,wA,yA,zA,BA,AA,CA,DA,EA,FA,GA,HA,IA,JA,KA,vA,MA,LA,NA,Jga,OA,Kga,PA,QA,RA,SA,UA,VA,WA,XA,YA,Lga,ZA,$A,Mga,Nga,aB,bB,Oga,Pga,dB,fB,gB,hB,iB,jB,kB,lB,mB,Qga,Rga,Sga,oB,qB,pB,rB,sB,tB,uB,Uga,Tga,vB,wB,xB,zB,yB,AB,BB,Vga,Wga,CB,DB,EB,IB,KB,MB,LB,OB,PB,QB,RB,SB,TB,UB,XB,$B,aC,bC,cC,dC,eC,fC,Zga,iC,mC,bha,aha,nC,oC,pC,qC,rC,sC,tC,uC,vC,cha,dha,yC,iha,BC,fha,gha,eha,hha,CC,wC,kha,EC,xC,zC,FC,lha,GC,HC,IC,JC,KC,mha,LC,MC,nha,qha,pha,OC,
PC,NC,QC,rha,sha,tha,yha,RC,zha,SC,TC,gC,VC,WC,Aha,Cha,YC,Bha,Dha,ZC,Eha,bD,$C,XC,aD,cD,Fha,dD,Hha,eD,fD,gD,Iha,hD,Jha,iD,jD,kD,lD,mD,nD,oD,qD,pD,Lha,Mha,DD,AD,xD,Oha,FD,Nha,CD,sD,RD,Rha,GD,ED,Sha,Tha,Uha,Vha,Qha,VD,JD,Wha,WD,XD,Yha,YD,ZD,$D,bE,cE,aE,Zha,dE,$ha,eE,fE,gE,hE,aia,iE,bia,lE,oE,nE,pE,qE,sE,gia,cia,wE,iia,hia,xE,yE,AE,zE,nia,EE,FE,GE,HE,KE,ME,LE,tia,OE,JE,PE,uia,RE,QE,via,SE,UE,WE,VE,XE,YE,ZE,wia,$E,xia,yia,zia,Aia,aF,Bia,bF,Cia,cF,dF,eF,fF,gF,Eia,hF,iF,jF,kF,lF,nF,oF,pF,mF,rF,Fia,Gia,
qF,sF,tF,uF,vF,wF,xF,yF,zF,AF,Iia,DF,EF,FF,Z,HF,KF,LF,Jia,PF,QF,Nia,SF,YF,ZF,aG,OF,XF,VF,Tia,Uia,Via,bG,cG,Wia,Xia,Yia,Zia,dG,fG,eG,gG,$ia,aja,bja,cja,iG,jG,kG,lG,mG,dja,nG,oG,rG,tG,sG,uG,vG,wG,xG,yG,zG,eja,AG,BG,CG,EG,FG,GG,DG,HG,IG,fja,gja,LG,JG,PG,KG,QG,NG,RG,SG,UG,TG,WG,VG,XG,YG,ija,bH,cH,dH,eH,fH,hH,iH,jH,jja,lH,mH,kH,nH,oH,pH,qH,rH,sH,tH,uH,kja,vH,lja,yH,zH,wH,xH,BH,FH,CH,DH,AH,EH,mja,GH,HH,IH,JH,KH,LH,MH,OH,PH,NH,nja,SH,TH,oja,UH,pja,qja,rja,sja,VH,WH,XH,YH,ZH,$H,aI,bI,cI,dI,tja,eI,fI,gI,hI,
iI,jI,kI,lI,mI,nI,pI,qI,vja,wja,sI,tI,wI,uI,vI,xI,yI,yja,zja,zI,AI,GI,HI,BI,II,JI,Dja,CI,Cja,DI,EI,FI,Bja,OI,PI,QI,UI,Ija,Jja,VI,Lja,Mja,XI,Pja,ZI,Kja,$I,aJ,bJ,Qja,Rja,Sja,Tja,dJ,cJ,eJ,Uja,fJ,gJ,hJ,Vja,jJ,kJ,lJ,mJ,Wja,nJ,Xja,iJ,oJ,pJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,AJ,zJ,yJ,aka,BJ,RH,QH,EJ,dka,DJ,CJ,FJ,GJ,HJ,IJ,JJ,KJ,LJ,fka,RJ,SJ,UJ,LI,cK,dK,eK,fK,VJ,kka,gK,hK,NI,jK,lK,Gja,mK,nK,oK,KI,Hja,kK,pK,qK,rK,sK,tK,uK,vK,nka,oka,mka,pka,GK,iK,qka,JK,rka,KK,TJ,LK,MK,NK,OK,PK,ska,QK,ZJ,AK,IK,RK,SK,TK,HK,MI,YJ,VK,bK,
WK,XK,WJ,$J,BK,lka,uka,YK,ZK,$K,bL,aL,vka,dL,cL,xka,yka,wka,eL,fL,gL,hL,iL,jL,nL,oL,mL,pL,Aka,qL,Bka,Cka,rL,sL,uL,vL,wL,xL,Dka,Eka,yL,zL,Fka,AL,Gka,Hka,BL,CL,DL,Jka,EL,HL,IL,JL,Kka,KL,LL,Mka,Lka,ML,NL,OL,PL,QL,CK,DK,FK,RL,SL,TL,EK,xK,MJ,wK,zK,ZL,QJ,YL,OJ,NJ,PJ,aM,XL,yK,dM,eM,gM,Nka,hM,iM,jM,kM,lM,mM,nM,oM,pM,qM,rM,sM,tM,uM,vM,Oka,wM,xM,yM,zM,AM,BM,CM,Pka,DM,EM,FM,GM,Qka,HM,IM,JM,KM,MM,LM,Rka,NM,OM,PM,Ska,QM,RM,TM,UM,Uka,VM,Vka,Tka,Xka,WM,Yka,YM,SM,Wka,bla,ala,$ka,XM,dla,ZM,ela,fla,gla,$M,ila,cN,dN,
eN,fN,gN,hN,iN,jN,kN,lN,nN,oN,pN,uN,tN,yN,zN,rN,AN,BN,CN,DN,qN,sN,vN,FN,pla,GN,qla,HN,IN,JN,KN,LN,MN,rla,NN,sla,tla,ON,ula,vla,PN,QN,wla,yla,zla,Ala,Bla,WI,Cla,Dla,RN,Fla,SN,Gla,UN,WN,Kla,TN,Lla,XN,Ela,Nla,Ola,YN,ZN,$N,aO,bO,Pla,dO,cO,eO,Qla,Rla,fO,gO,Tla,Ula,Vla,kO,lO,mO,nO,oO,pO,qO,rO,Wla,Xla,sO,tO,uO,zO,wO,yO,CO,DO,EO,FO,AO,IO,BO,JO,Yla,KO,LO,MO,NO,OO,PO,QO,RO,SO,Zla,TO,$la,UO,WO,VO,XO,YO,ZO,aP,$O,bP,cP,cma,eP,fma,fP,gP,hP,iP,jP,dP,gma,kP,hma,mP,jma,lP,nP,oP,kma,pP,qP,lma,rP,sP,tP,uP,mma,vP,oma,
wP,yP,zP,nma,BP,CP,DP,EP,FP,GP,HP,IP,pma,JP,KP,LP,MP,qma,OP,PP,QP,RP,SP,TP,UP,VP,WP,XP,YP,ZP,aQ,bQ,rma,sma,cQ,tma,dQ,eQ,fQ,gQ,jQ,hQ,uma,vma,wma,kQ,lQ,mQ,nQ,oQ,pQ,qQ,rQ,sQ,tQ,uQ,vQ,zma,yma,xQ,wQ,AQ,Ama,BQ,CQ,Bma,Cma,DQ,FQ,Ema,Dma,GQ,HQ,Gma,JQ,IQ,LQ,MQ,NQ,Ima,Jma,OQ,PQ,Kma,QQ,zQ,Lma,RQ,SQ,yQ,Mma,TQ,UQ,WQ,XQ,VQ,Pma,Nma,YQ,aR,bR,$Q,ZQ,cR,eR,fR,iR,kR,hR,gR,lR,mR,Sma,oR,nR,pR,qR,rR,Tma,sR,Uma,xR,tR,uR,vR,ER,yR,AR,zR,GR,CR,BR,FR,DR,Vma,wR,HR,IR,JR,KR,LR,Xma,Wma,Yma,NR,Zma,$ma,OR,MR,PR,QR,RR,hO,bna,cna,UR,
dna,VR,WR,XR,TR,YR,SR,ZR,ena,iO,gna,jR,fna,$R,aS,bS,cS,dS,eS,fS,gS,hS,hna,ina,jna,iS,jS,kna,kS,lS,mS,nS,oS,lna,mna,tS,sS,vS,pS,nna,qS,rS,ona,uS,pna,wS,xS,zS,AS,BS,CS,DS,yS,ES,FS,GS,rna,sna,tna,una,vna,HS,qna,IS,KS,JS,LS,MS,PS,NS,QS,RS,TS,VS,SS,US,WS,ZS,$S,wna,cT,dT,eT,YS,fT,gT,XS,hT,iT,jT,kT,bT,aT,lT,mT,nT,oT,yna,xna,pT,rT,sT,qT,tT,uT,xT,Ana,wT,zT,AT,BT,CT,yT,DT,ET,OS,FT,Bna,vT,GT,HT,JT,LT,OT,PT,TT,UT,VT,XT,ZT,aU,$T,bU,cU,dU,Cna,QT,gU,fU,eU,hU,WT,iU,jU,KT,MT,IT,kU,lU,NT,ST,mU,nU,Dna,Fna,Ena,oU,pU,
Gna,Hna,qU,rU,Ina,sU,tU,Jna,Kna,vU,Lna,uU,wU,Nna,xU,Ona,yU,AU,CU,BU,Pna,Qna,DU,Rna,kl,EU,FU,GU,HU,IU,Sna,JU,Wn,Hn,wn,LU,eo,MU,OU,UU,QU,WU,XU,ZU,YU,NU,eV,dV,Il,Bl,hV,jV,iV,pV,oV,rV,sV,tV,bV,uV,cV,kV,RU,qV,Wna,lV,wV,aV,xV,gV,yV,Xna,AV,SU,Una,BV,Yna,DV,TU,EV,$U,Vna,FV,PU,zV,GV,nV,CV,mV,IV,JV,Zna,$na,KV,LV,MV,NV,OV,PV,SV,coa,doa,aoa,boa,eoa,UV,VV,WV,ZV,$V,bW,eW,dW,cW,gW,foa,hW,iW,jW,kW,lW,mW,nW,goa,oW,koa,pW,qW,rW,loa,moa,sW,noa,tW,wW,vW,uW,xW,zW,BW,EW,FW,ooa,GW,HW,poa,IW,JW,KW,LW,MW,NW,OW,qoa,PW,QW,
RW,SW,TW,UW,VW,XW,ZW,aX,$W,bX,WW,YW,eX,dX,fX,gX,roa,iX,hX,lX,kX,jX,mX,soa,toa,nX,voa,uoa,woa,pX,qX,rX,sX,xoa,vX,xX,yX,zX,AX,yoa,BX,EX,zoa,CX,tX,DX,wX,uX,LX,MX,HX,FX,KX,JX,NX,OX,PX,QX,Aoa,Foa,Coa,Eoa,RX,SX,TX,UX,VX,WX,XX,Goa,YX,$X,ZX,aY,Hoa,bY,Ioa,cY,dY,gY,hY,iY,jY,kY,Joa,lY,nY,Koa,oY,mY,pY,qY,rY,Loa,Moa,Ooa,Noa,sY,tY,uY,Poa,Qoa,Roa,vY,Soa,yY,AY,BY,wY,zY,xY,CY,RV,QV,IX,FY,GY,HY,IY,JY,yW,OY,EY,PY,SY,eY,VY,QY,DW,CW,GX,XY,YY,ZY,$Y,Uoa,fZ,eZ,bZ,gZ,Woa,Xoa,lZ,iZ,Zoa,kZ,Yoa,pZ,qZ,rZ,apa,sZ,tZ,uZ,vZ,wZ,xZ,
yZ,bpa,zZ,AZ,BZ,CZ,cpa,dpa,DZ,EZ,IZ,FZ,fpa,JZ,GZ,LZ,HZ,gpa,MZ,NZ,hpa,OZ,QZ,SZ,TZ,RZ,UZ,WZ,XZ,YZ,ZZ,VZ,$Z,ipa,a_,c_,d_,kpa,e_,jpa,b_,f_,g_,h_,j_,lpa,i_,k_,l_,m_,n_,o_,p_,q_,hZ,r_,s_,t_,opa,z_,D_,E_,F_,G_,I_,J_,mpa,ppa,npa,A_,w_,u_,x_,y_,H_,B_,v_,qpa,K_,L_,N_,O_,M_,W_,rpa,Z_,P_,$_,b0,V_,U_,T_,d0,c0,e0,f0,h0,j0,k0,spa,l0,m0,n0,r0,t0,o0,v0,s0,y0,x0,p0,w0,z0,B0,i0,u0,A0,D0,C0,q0,g0,a0,R_,F0,H0,G0,I0,tpa,J0,K0,upa,L0,M0,N0,O0,P0,Q0,R0,S0,V0,hl,Y0,T0,Z0,$0,a1,W0,X0,U0,c1,b1,d1,e1,vpa,f1,wpa,g1,h1,xpa,i1,
l1,ypa,m1,zpa,n1,Apa,Bpa,Cpa,Dpa,k1,j1,o1,Ipa,Jpa,y1,B1,Kpa,z1,Fpa,C1,F1,t1,r1,s1,H1,I1,v1,A1,E1,w1,D1,Hpa,Epa,x1,Gpa,J1,K1,N1,Q1,R1,S1,O1,P1,T1,L1,U1,M1,W1,V1,X1,Y1,Mpa,Lpa,a2,d2,b2,f2,AW,Z1,g2,i2,h2,j2,k2,l2,n2,o2,m2,q2,r2,s2,Opa,Ppa,t2,u2,v2,w2,x2,y2,A2,B2,C2,E2,F2,G2,D2,H2,qq,J2,K2,L2,M2,N2,P2,Q2,O2,R2,T2,U2,S2,V2,W2,X2,Qpa,Y2,Z2,$2,a3,d3,e3,c3,b3,f3,h3,g3,i3,j3,l3,m3,o3,q3,n3,s3,r3,t3,u3,v3,w3,x3,Rpa,y3,z3,A3,B3,C3,D3,Spa,E3,F3,G3,H3,I3,J3,K3,L3,N3,M3,O3,P3,Q3,R3,S3,U3,T3,W3,V3,X3,Y3,Z3,$3,a4,
e4,c4,b4,d4,g4,f4,h4,i4,k4,m4,n4,l4,p4,q4,r4,s4,o4,u4,y4,t4,B4,C4,D4,w4,E4,v4,G4,A4,x4,F4,H4,z4,J4,I4,K4,L4,M4,N4,O4,P4,Q4,R4,S4,T4,U4,V4,X4,W4,Y4,Z4,$4,a5,b5,c5,e5,f5,g5,h5,d5,i5,j5,k5,n5,m5,o5,p5,q5,r5,t5,s5,u5,w5,v5,x5,z5,I2,B5,A5,y5,C5,j4,E5,G5,F5,I5,H5,J5,L5,M5,D5,ms,N5,O5,l5,K5,P5,Q5,S5,Ypa,W5,Xpa,Y5,$5,a6,NY,U5,b6,MY,LY,c6,d6,R5,e6,DY,f6,g6,Zpa,$pa,k6,j6,X5,q6,r6,T5,s6,t6,dl,u6,V5,i6,h6,x6,y6,l6,p6,UY,A6,B6,o6,z6,D6,F6,E6,G6,I6,J6,K6,w6,v6,L6,Dl,WY,m6,M6,n6,N6,O6,Fl,RY,TY,P6,C6,Q6,R6,S6,T6,
U6,da,ca,baa,MG,r,ta,daa;ba=function(a){return function(){return g.aa[a].apply(this,arguments)}};
ea=function(a,b){if(b){for(var c=ca,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&da(c,d,{configurable:!0,writable:!0,value:f})}};
fa=function(){fa=function(){};
ca.Symbol||(ca.Symbol=aaa)};
aaa=function(a){return"jscomp_symbol_"+(a||"")+baa++};
ha=function(){fa();var a=ca.Symbol.iterator;a||(a=ca.Symbol.iterator=ca.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&da(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ga(this)}});
ha=function(){}};
ga=function(a){var b=0;return caa(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};
caa=function(a){ha();a={next:a};a[ca.Symbol.iterator]=function(){return this};
return a};
ia=function(a){ha();var b=a[window.Symbol.iterator];return b?b.call(a):ga(a)};
g.p=function(a){return void 0!==a};
g.ka=function(a,b,c){a=a.split(".");c=c||r;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&g.p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}};
u=function(a,b){for(var c=a.split("."),d=b||r,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
g.v=function(){};
g.la=function(a){a.Hc=void 0;a.getInstance=function(){return a.Hc?a.Hc:a.Hc=new a}};
ma=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};
na=function(a){return"array"==ma(a)};
oa=function(a){var b=ma(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.y=function(a){return"string"==typeof a};
g.pa=function(a){return"boolean"==typeof a};
g.qa=function(a){return"number"==typeof a};
ra=function(a){return"function"==ma(a)};
g.sa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
ua=function(a){return a[ta]||(a[ta]=++daa)};
eaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
faa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}};
g.z=function(a,b,c){g.z=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?eaa:faa;return g.z.apply(null,arguments)};
g.B=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};
g.va=function(a,b){for(var c in b)a[c]=b[c]};
wa=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a};
g.xa=function(a,b,c){g.ka(a,b,c)};
g.C=function(a,b){function c(){}
c.prototype=b.prototype;a.M=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.sU=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};
ya=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ya);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
g.za=function(a,b){return 0==a.lastIndexOf(b,0)};
Aa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
D=function(a){return/^[\s\xa0]*$/.test(a)};
Ba=function(a){return(0,window.encodeURIComponent)(String(a))};
Ca=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
Da=function(a){if(!gaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(haa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(iaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(jaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(kaa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(laa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(maa,"&#0;"));return a};
oaa=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=r.document.createElement("div");return a.replace(naa,function(a,e){var d=b[a];if(d)return d;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(d=String.fromCharCode(k))}d||(c.innerHTML=a+" ",d=c.firstChild.nodeValue.slice(0,-1));return b[a]=d})};
paa=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var b=Number("0"+c.substr(1));if(!(0,window.isNaN)(b))return String.fromCharCode(b)}return a}})};
Ea=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
Fa=function(a,b){return-1!=a.indexOf(b)};
Ga=function(a,b){return Fa(a.toLowerCase(),b.toLowerCase())};
Ha=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
g.Ja=function(a,b,c){a=g.p(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return(0,g.Ia)("0",Math.max(0,b-c))+a};
E=function(a){return null==a?"":String(a)};
qaa=function(a){return Array.prototype.join.call(arguments,"")};
g.Ka=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^(0,g.G)()).toString(36)};
Na=function(a,b){for(var c=0,d=La(String(a)).split("."),e=La(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Ma(0==l[1].length?0:(0,window.parseInt)(l[1],10),0==m[1].length?0:(0,window.parseInt)(m[1],10))||Ma(0==l[2].length,0==m[2].length)||Ma(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Ma=function(a,b){return a<b?-1:a>b?1:0};
Oa=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Pa=function(){return"goog_"+raa++};
Qa=function(a){var b=Number(a);return 0==b&&D(a)?window.NaN:b};
Ra=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
Sa=function(a){var b=g.y(void 0)?Ha(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
Ta=function(a){(0,window.isFinite)(a)&&(a=String(a));return g.y(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};
g.Va=function(a){return a[a.length-1]};
saa=function(a,b){var c=0;(0,g.H)(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);
return c};
g.Xa=function(a,b,c){b=g.Wa(a,b,c);return 0>b?null:g.y(a)?a.charAt(b):a[b]};
g.Wa=function(a,b,c){for(var d=a.length,e=g.y(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
Za=function(a,b){var c=Ya(a,b,void 0);return 0>c?null:g.y(a)?a.charAt(c):a[c]};
Ya=function(a,b,c){for(var d=g.y(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1};
g.ab=function(a,b){return 0<=$a(a,b)};
g.J=function(a){return 0==a.length};
bb=function(a){if(!na(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.cb=function(a,b){g.ab(a,b)||a.push(b)};
g.eb=function(a,b){var c=$a(a,b),d;(d=0<=c)&&g.db(a,c);return d};
g.db=function(a,b){Array.prototype.splice.call(a,b,1)};
fb=function(a,b){var c=g.Wa(a,b,void 0);0<=c&&g.db(a,c)};
ib=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};
g.jb=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[]};
kb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(oa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.ob=function(a,b,c,d){Array.prototype.splice.apply(a,nb(arguments,1))};
nb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
pb=function(a,b,c){function d(a){return g.sa(a)?"o"+ua(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var l=a[k++],m=c(l);Object.prototype.hasOwnProperty.call(e,m)||(e[m]=!0,b[f++]=l)}b.length=f};
g.sb=function(a,b,c){return qb(a,c||rb,!1,b)};
tb=function(a,b){return qb(a,b,!0,void 0,void 0)};
qb=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:~f};
ub=function(a,b){a.sort(b||rb)};
vb=function(a,b,c){var d=c||rb;ub(a,function(a,c){return d(b(a),b(c))})};
taa=function(a,b){vb(a,function(a){return a[b]},void 0)};
g.wb=function(a,b){if(!oa(a)||!oa(b)||a.length!=b.length)return!1;for(var c=a.length,d=uaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
rb=function(a,b){return a>b?1:a<b?-1:0};
uaa=function(a,b){return a===b};
xb=function(a,b,c){c=g.sb(a,b,c);0>c&&g.ob(a,-(c+1),0,b)};
yb=function(a,b,c){var d={};(0,g.H)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
zb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
Ab=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(na(d))for(var e=0;e<d.length;e+=8192)for(var f=Ab.apply(null,nb(d,e,e+8192)),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
g.L=function(){this.ob=this.ob;this.Ta=this.Ta};
g.M=function(a,b){g.Bb(a,g.B(g.Cb,b))};
g.Bb=function(a,b){a.ob?g.p(void 0)?b.call(void 0):b():(a.Ta||(a.Ta=[]),a.Ta.push(g.p(void 0)?(0,g.z)(b,void 0):b))};
g.Cb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Db=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];oa(d)?g.Db.apply(null,d):g.Cb(d)}};
g.Eb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
Fb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Hb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Ib=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};
Jb=function(a){var b=0,c;for(c in a)b++;return b};
vaa=function(a,b){return Kb(a,b)};
g.Lb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Ob=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Pb=function(a,b){for(var c=oa(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],g.p(a));c++);return a};
Qb=function(a,b){return null!==a&&b in a};
Kb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Rb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Sb=function(a,b){var c=Rb(a,b,void 0);return c&&a[c]};
g.Tb=function(a){for(var b in a)return!1;return!0};
Ub=function(a,b){b in a&&delete a[b]};
Vb=function(a,b,c){return null!==a&&b in a?a[b]:c};
Wb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
Xb=function(a){var b=ma(a);if("object"==b||"array"==b){if(ra(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Xb(a[c]);return b}return a};
g.Zb=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<Yb.length;f++)c=Yb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
$b=function(a){var b=arguments.length;if(1==b&&na(arguments[0]))return $b.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
ac=function(a,b){this.type=a;this.currentTarget=this.target=b;this.o=!1;this.av=!0};
bc=function(a){a.stopPropagation()};
cc=function(a){cc[" "](a);return a};
dc=function(a,b){try{return cc(a[b]),!0}catch(c){}return!1};
xaa=function(a,b){var c=waa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
fc=function(a){return Fa(ec,a)};
ic=function(){return fc("Safari")&&!(hc()||fc("Coast")||fc("Opera")||fc("Edge")||fc("Silk")||fc("Android"))};
hc=function(){return(fc("Chrome")||fc("CriOS"))&&!fc("Edge")};
kc=function(){return fc("iPhone")&&!fc("iPod")&&!fc("iPad")};
lc=function(){return kc()||fc("iPad")||fc("iPod")};
mc=function(){var a=r.document;return a?a.documentMode:void 0};
g.oc=function(a){return xaa(a,function(){return 0<=Na(nc,a)})};
pc=function(a){return Number(yaa)>=a};
sc=function(a){return qc?"webkit"+a:g.rc?"o"+a.toLowerCase():a.toLowerCase()};
tc=function(a,b){ac.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.C=this.B=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.g=this.state=null;a&&this.init(a,b)};
vc=function(a){return!(!a||!a[uc])};
Aaa=function(a,b,c,d,e){this.listener=a;this.g=null;this.src=b;this.type=c;this.capture=!!d;this.Ie=e;this.key=++zaa;this.ph=this.Jj=!1};
wc=function(a){a.ph=!0;a.listener=null;a.g=null;a.src=null;a.Ie=null};
xc=function(a){this.src=a;this.g={};this.o=0};
zc=function(a,b,c,d,e,f){var k=b.toString();b=a.g[k];b||(b=a.g[k]=[],a.o++);var l=yc(b,c,e,f);-1<l?(a=b[l],d||(a.Jj=!1)):(a=new Aaa(c,a.src,k,!!e,f),a.Jj=d,b.push(a));return a};
Ac=function(a,b){var c=b.type;if(!(c in a.g))return!1;var d=g.eb(a.g[c],b);d&&(wc(b),0==a.g[c].length&&(delete a.g[c],a.o--));return d};
Bc=function(a){var b=0,c;for(c in a.g){for(var d=a.g[c],e=0;e<d.length;e++)++b,wc(d[e]);delete a.g[c];a.o--}};
Cc=function(a,b,c,d,e){a=a.g[b.toString()];b=-1;a&&(b=yc(a,c,d,e));return-1<b?a[b]:null};
Dc=function(a,b){var c=g.p(b),d=c?b.toString():"",e=g.p(void 0);return Hb(a.g,function(a){for(var b=0;b<a.length;++b)if(!(c&&a[b].type!=d||e&&void 0!=a[b].capture))return!0;return!1})};
yc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ph&&f.listener==b&&f.capture==!!c&&f.Ie==d)return e}return-1};
Ec=function(a,b,c,d,e){if(na(b)){for(var f=0;f<b.length;f++)Ec(a,b[f],c,d,e);return null}c=Fc(c);return vc(a)?a.S(b,c,d,e):Gc(a,b,c,!1,d,e)};
Gc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=Hc(a);l||(a[Ic]=l=new xc(a));c=zc(l,b,c,d,e,f);if(c.g)return c;d=Baa();c.g=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Jc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Kc++;return c};
Baa=function(){var a=Caa,b=Lc?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};
Mc=function(a,b,c,d,e){if(na(b)){for(var f=0;f<b.length;f++)Mc(a,b[f],c,d,e);return null}c=Fc(c);return vc(a)?zc(a.Jd,String(b),c,!0,d,e):Gc(a,b,c,!0,d,e)};
Nc=function(a,b,c,d,e){if(na(b))for(var f=0;f<b.length;f++)Nc(a,b[f],c,d,e);else c=Fc(c),vc(a)?a.Ca(b,c,d,e):a&&(a=Hc(a))&&(b=Cc(a,b,c,!!d,e))&&Oc(b)};
Oc=function(a){if(g.qa(a)||!a||a.ph)return!1;var b=a.src;if(vc(b))return Ac(b.Jd,a);var c=a.type,d=a.g;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(Jc(c),d);Kc--;(c=Hc(b))?(Ac(c,a),0==c.o&&(c.src=null,b[Ic]=null)):wc(a);return!0};
Jc=function(a){return a in Pc?Pc[a]:Pc[a]="on"+a};
Rc=function(a,b,c,d){var e=!0;if(a=Hc(a))if(b=a.g[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.ph&&(f=Qc(f,d),e=e&&!1!==f)}return e};
Qc=function(a,b){var c=a.listener,d=a.Ie||a.src;a.Jj&&Oc(a);return c.call(d,b)};
Caa=function(a,b){if(a.ph)return!0;if(!Lc){var c=b||u("window.event"),d=new tc(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);for(var f=a.type,k=c.length-1;!d.o&&0<=k;k--){d.currentTarget=c[k];var l=Rc(c[k],f,!0,d),e=e&&l}for(k=0;!d.o&&k<c.length;k++)d.currentTarget=c[k],l=Rc(c[k],f,!1,d),e=e&&l}return e}return Qc(a,new tc(b,
this))};
Hc=function(a){a=a[Ic];return a instanceof xc?a:null};
Fc=function(a){if(ra(a))return a;a[Sc]||(a[Sc]=function(b){return a.handleEvent(b)});
return a[Sc]};
N=function(){g.L.call(this);this.Jd=new xc(this);this.sb=this;this.wa=null};
Tc=function(a,b,c,d){b=a.Jd.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.ph&&k.capture==c){var l=k.listener,m=k.Ie||k.src;k.Jj&&Ac(a.Jd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.av};
Uc=function(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.g=null};
Vc=function(a,b){a.B(b);a.o<a.C&&(a.o++,b.next=a.g,a.g=b)};
Wc=function(a){return function(){return a}};
Daa=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Xc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Yc=function(a){r.setTimeout(function(){throw a;},0)};
$c=function(a,b){var c=a;b&&(c=(0,g.z)(a,b));!ra(r.setImmediate)||r.Window&&r.Window.prototype&&!fc("Edge")&&r.Window.prototype.setImmediate==r.setImmediate?(Zc||(Zc=Eaa()),Zc(c)):r.setImmediate(c)};
Eaa=function(){var a=r.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!fc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=(0,g.z)(function(a){if(("*"==d||
a.origin==d)&&a.data==c)this.port1.onmessage()},this);
b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});
if("undefined"!==typeof a&&!fc("Trident")&&!fc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(g.p(c.next)){c=c.next;var a=c.mr;c.mr=null;a()}};
return function(a){d.next={mr:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
window.document.documentElement.appendChild(b)}:function(a){r.setTimeout(a,0)}};
ad=function(){this.o=this.g=null};
bd=function(){this.next=this.scope=this.g=null};
g.gd=function(a,b){cd||Faa();dd||(cd(),dd=!0);var c=ed,d=fd.get();d.set(a,b);c.o?c.o.next=d:c.g=d;c.o=d};
Faa=function(){if(-1!=String(r.Promise).indexOf("[native code]")){var a=r.Promise.resolve(void 0);cd=function(){a.then(hd)}}else cd=function(){$c(hd)}};
hd=function(){for(var a;a=ed.remove();){try{a.g.call(a.scope)}catch(b){Yc(b)}Vc(fd,a)}dd=!1};
id=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
jd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
g.ld=function(a,b){this.g=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a!=g.v)try{var c=this;a.call(b,function(a){kd(c,2,a)},function(a){kd(c,3,a)})}catch(d){kd(this,3,d)}};
md=function(){this.next=this.context=this.o=this.B=this.g=null;this.A=!1};
od=function(a,b,c){var d=nd.get();d.B=a;d.o=b;d.context=c;return d};
pd=function(a){if(a instanceof g.ld)return a;var b=new g.ld(g.v);kd(b,2,a);return b};
qd=function(a){return new g.ld(function(b,c){c(a)})};
g.sd=function(a,b,c){rd(a,b,c,null)||g.gd(g.B(b,a))};
Gaa=function(a){return new g.ld(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.sd(e,b,c)})};
Iaa=function(){var a,b,c=new g.ld(function(c,e){a=c;b=e});
return new Haa(c,a,b)};
Jaa=function(a,b){var c=od(b,b,void 0);c.A=!0;td(a,c)};
g.vd=function(a,b){return ud(a,null,b,void 0)};
wd=function(a,b){if(0==a.g)if(a.A){var c=a.A;if(c.o){for(var d=0,e=null,f=null,k=c.o;k&&(k.A||(d++,k.g==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.g&&1==d?wd(c,b):(f?(d=f,d.next==c.B&&(c.B=d),d.next=d.next.next):yd(c),zd(c,e,3,b)))}a.A=null}else kd(a,3,b)};
td=function(a,b){a.o||2!=a.g&&3!=a.g||Ad(a);a.B?a.B.next=b:a.o=b;a.B=b};
ud=function(a,b,c,d){var e=od(null,null,null);e.g=new g.ld(function(a,k){e.B=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){k(n)}}:a;
e.o=c?function(b){try{var e=c.call(d,b);!g.p(e)&&b instanceof Bd?k(b):a(e)}catch(n){k(n)}}:k});
e.g.A=a;td(a,e);return e.g};
kd=function(a,b,c){0==a.g&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,rd(c,a.H,a.J,a)||(a.F=c,a.g=b,a.A=null,Ad(a),3!=b||c instanceof Bd||Kaa(a,c)))};
rd=function(a,b,c,d){if(a instanceof g.ld)return td(a,od(b||g.v,c||null,d)),!0;if(jd(a))return a.then(b,c,d),!0;if(g.sa(a))try{var e=a.then;if(ra(e))return Laa(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
Laa=function(a,b,c,d,e){function f(a){l||(l=!0,d.call(e,a))}
function k(a){l||(l=!0,c.call(e,a))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
Ad=function(a){a.D||(a.D=!0,g.gd(a.G,a))};
yd=function(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b};
zd=function(a,b,c,d){if(3==c&&b.o&&!b.A)for(;a&&a.C;a=a.A)a.C=!1;if(b.g)b.g.A=null,Cd(b,c,d);else try{b.A?b.B.call(b.context):Cd(b,c,d)}catch(e){Dd.call(null,e)}Vc(nd,b)};
Cd=function(a,b,c){2==b?a.B.call(a.context,c):a.o&&a.o.call(a.context,c)};
Kaa=function(a,b){a.C=!0;g.gd(function(){a.C&&Dd.call(null,b)})};
Bd=function(a){ya.call(this,a)};
Haa=function(a,b,c){this.g=a;this.resolve=b;this.reject=c};
Ed=function(a,b){N.call(this);this.o=a||1;this.g=b||r;this.A=(0,g.z)(this.BB,this);this.B=(0,g.G)()};
Fd=function(a,b){a.o=b;a.Ld&&a.enabled?(a.stop(),a.start()):a.Ld&&a.stop()};
Gd=function(a,b,c){if(ra(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:r.setTimeout(a,b||0)};
Hd=function(a){r.clearTimeout(a)};
g.Id=function(a,b,c){g.L.call(this);this.g=a;this.B=b||0;this.o=c;this.A=(0,g.z)(this.zs,this)};
g.Jd=function(a){a.stop();a.zs()};
g.Kd=function(a){a.isActive()&&g.Jd(a)};
Ld=function(a){if(a.classList)return a.classList;a=a.className;return g.y(a)&&a.match(/\S+/g)||[]};
g.Md=function(a,b){return a.classList?a.classList.contains(b):g.ab(Ld(a),b)};
g.O=function(a,b){a.classList?a.classList.add(b):g.Md(a,b)||(a.className+=0<a.className.length?" "+b:b)};
Nd=function(a,b){if(a.classList)(0,g.H)(b,function(b){g.O(a,b)});
else{var c={};(0,g.H)(Ld(a),function(a){c[a]=!0});
(0,g.H)(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
g.Pd=function(a,b){a.classList?a.classList.remove(b):g.Md(a,b)&&(a.className=(0,g.Od)(Ld(a),function(a){return a!=b}).join(" "))};
Qd=function(a,b){a.classList?(0,g.H)(b,function(b){g.Pd(a,b)}):a.className=(0,g.Od)(Ld(a),function(a){return!g.ab(b,a)}).join(" ")};
g.Rd=function(a,b,c){c?g.O(a,b):g.Pd(a,b)};
Sd=function(a,b){var c=!g.Md(a,b);g.Rd(a,b,c);return c};
Td=function(a,b){return b?a.replace(Maa,""):a};
Ud=function(a,b){for(var c=0,d=0,e=!1,f=Td(a,b).split(Naa),k=0;k<f.length;k++){var l=f[k];Oaa.test(Td(l,void 0))?(c++,d++):Paa.test(l)?e=!0:Qaa.test(Td(l,void 0))?d++:Raa.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1};
Wd=function(){this.g="";this.o=Vd};
Xd=function(a){return a instanceof Wd&&a.constructor===Wd&&a.o===Vd?a.g:"type_error:Const"};
Yd=function(a){var b=new Wd;b.g=a;return b};
$d=function(){this.g="";this.o=Zd};
ae=function(a){var b=new $d;b.g=a;return b};
ce=function(){this.g="";this.o=be};
de=function(a){if(a instanceof ce&&a.constructor===ce&&a.o===be)return a.g;ma(a);return"type_error:SafeUrl"};
fe=function(a){if(a instanceof ce)return a;a=a.sg?a.Cf():String(a);Saa.test(a)||(a="about:invalid#zClosurez");return ee(a)};
ee=function(a){var b=new ce;b.g=a;return b};
he=function(){this.g="";this.o=ge};
ie=function(a){if(a instanceof he&&a.constructor===he&&a.o===ge)return a.g;ma(a);return"type_error:TrustedResourceUrl"};
je=function(a){var b=new he;b.g=a;return b};
le=function(){this.g="";this.A=ke;this.o=null};
me=function(a){if(a instanceof le&&a.constructor===le&&a.A===ke)return a.g;ma(a);return"type_error:SafeHtml"};
oe=function(a){if(a instanceof le)return a;var b=null;a.Nn&&(b=a.Qg());a=Da(a.sg?a.Cf():String(a));return ne(a,b)};
Taa=function(a){function b(a){na(a)?(0,g.H)(a,b):(a=oe(a),d+=me(a),a=a.Qg(),0==c?c=a:0!=a&&c!=a&&(c=null))}
var c=0,d="";(0,g.H)(arguments,b);return ne(d,c)};
ne=function(a,b){var c=new le;c.g=a;c.o=b;return c};
qe=function(a,b,c){var d=null,e,f="";if(b)for(e in b){if(!pe.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var l,m=a;l=e;var n=k;if(n instanceof Wd)n=Xd(n);else if("style"==l.toLowerCase()){k=void 0;m=n;if(!g.sa(m))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof m+" given: "+m);if(!(m instanceof $d)){n="";for(k in m){if(!/^[-_a-zA-Z0-9]+$/.test(k))throw Error("Name allows only [-_a-zA-Z0-9], got: "+k);var q=m[k];
if(null!=q){if(q instanceof Wd)q=Xd(q);else if(Uaa.test(q)){for(var t=!0,w=!0,x=0;x<q.length;x++){var A=q.charAt(x);"'"==A&&w?t=!t:'"'==A&&t&&(w=!w)}t&&w||(q="zClosurez")}else q="zClosurez";n+=k+":"+q+";"}}m=n?ae(n):Vaa}m instanceof $d&&m.constructor===$d&&m.o===Zd?k=m.g:(ma(m),k="type_error:SafeStyle");n=k}else{if(/^on/i.test(l))throw Error('Attribute "'+l+'" requires goog.string.Const value, "'+n+'" given.');if(l.toLowerCase()in Waa)if(n instanceof he)n=ie(n);else if(n instanceof ce)n=de(n);else if(g.y(n))n=
fe(n).Cf();else throw Error('Attribute "'+l+'" on tag "'+m+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+n+'" given.');}n.sg&&(n=n.Cf());l=l+'="'+Da(String(n))+'"';f+=" "+l}}e="<"+a+f;null!=c?na(c)||(c=[c]):c=[];!0===Xaa[a.toLowerCase()]?e+=">":(d=Taa(c),e+=">"+me(d)+"</"+a+">",d=d.Qg());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return ne(e,d)};
re=function(a,b,c){var d={},e;for(e in a)d[e]=a[e];for(e in b)d[e]=b[e];for(e in c){var f=e.toLowerCase();if(f in a)throw Error('Cannot override "'+f+'" attribute, got "'+e+'" with value "'+c[e]+'"');f in b&&delete d[f];d[e]=c[e]}return d};
se=function(a,b){return ne(b,null)};
g.te=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.ue=function(a,b){var c=a%b;return 0>c*b?c+b:c};
ve=function(a,b,c){return a+c*(b-a)};
Yaa=function(a){return we(arguments,function(a,c){return a+c},0)};
Zaa=function(a){return Yaa.apply(null,arguments)/arguments.length};
xe=function(a,b){this.x=g.p(a)?a:0;this.y=g.p(b)?b:0};
ye=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.ze=function(a,b){this.width=a;this.height=b};
g.Ae=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Be=function(a,b){var c;c=b instanceof ce?b:fe(b);a.href=de(c)};
Fe=function(a){return a?new Ce(De(a)):Ee||(Ee=new Ce)};
He=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Ge("*",a,b)};
Ie=function(a,b){var c=b||window.document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=g.Ge("*",a,b)[0];return d||null};
g.Ge=function(a,b,c){var d=window.document;c=c||d;a=a&&"*"!=a?String(a).toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,k;k=c[f];f++)a==k.nodeName&&(d[e++]=k);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;k=c[f];f++)a=k.className,"function"==typeof a.split&&g.ab(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
$aa=function(a,b){g.Eb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Je.hasOwnProperty(d)?a.setAttribute(Je[d],b):g.za(d,"aria-")||g.za(d,"data-")?a.setAttribute(d,b):a[d]=b})};
Ke=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.ze(a.clientWidth,a.clientHeight)};
Ne=function(a){var b=Le(a);a=a.parentWindow||a.defaultView;return g.Me&&g.oc("10")&&a.pageYOffset!=b.scrollTop?new xe(b.scrollLeft,b.scrollTop):new xe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Le=function(a){return a.scrollingElement?a.scrollingElement:qc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Oe=function(a){return a?a.parentWindow||a.defaultView:window};
g.P=function(a,b,c){return Pe(window.document,arguments)};
Pe=function(a,b){var c=String(b[0]),d=b[1];if(!aba&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Da(d.name),'"');if(d.type){c.push(' type="',Da(d.type),'"');var e={};g.Zb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(g.y(d)?c.className=d:na(d)?c.className=d.join(" "):$aa(c,d));2<b.length&&Qe(a,c,b,2);return c};
Qe=function(a,b,c,d){function e(c){c&&b.appendChild(g.y(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!oa(f)||g.sa(f)&&0<f.nodeType?e(f):(0,g.H)(bba(f)?g.jb(f):f,e)}};
g.Re=function(a){return window.document.createElement(String(a))};
g.Te=function(a){return window.document.createTextNode(String(a))};
Ue=function(a,b){a.appendChild(b)};
Ve=function(a,b){Qe(De(a),a,arguments,1)};
g.We=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Xe=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Ye=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Ze=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
$e=function(a){return cba&&void 0!=a.children?a.children:(0,g.Od)(a.childNodes,function(a){return 1==a.nodeType})};
bf=function(a){return g.p(a.firstElementChild)?a.firstElementChild:af(a.firstChild)};
af=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
cf=function(a){var b;if(dba&&!(g.Me&&g.oc("9")&&!g.oc("10")&&r.SVGElement&&a instanceof r.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.sa(b)&&1==b.nodeType?b:null};
g.df=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};
De=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
ef=function(a){try{return a.contentWindow||(a.contentDocument?Oe(a.contentDocument):null)}catch(b){}return null};
g.ff=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else g.We(a),a.appendChild(De(a).createTextNode(String(b)))};
gf=function(a){if("outerHTML"in a)return a.outerHTML;var b=De(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
kf=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!hf(a)||jf(a)):hf(a)&&jf(a))&&g.Me){var c;!ra(a.getBoundingClientRect)||g.Me&&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};
hf=function(a){return g.Me&&!g.oc("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
jf=function(a){a=a.tabIndex;return g.qa(a)&&0<=a&&32768>a};
bba=function(a){if(a&&"number"==typeof a.length){if(g.sa(a))return"function"==typeof a.item||"string"==typeof a.item;if(ra(a))return"function"==typeof a.item}return!1};
mf=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return lf(a,function(a){return(!e||a.nodeName==e)&&(!c||g.y(a.className)&&g.ab(a.className.split(/\s+/),c))},d)};
nf=function(a,b){return mf(a,null,b,void 0)};
lf=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;a=a.parentNode;d++}return null};
Ce=function(a){this.g=a||r.document||window.document};
of=function(a){a=a.g;return a.parentWindow||a.defaultView};
eba=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};
g.pf=function(a){a=String(a);if(eba(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};
qf=function(a){return eval("("+a+")")};
g.tf=function(a){return rf(new sf(void 0),a)};
sf=function(a){this.g=a};
rf=function(a,b){var c=[];uf(a,b,c);return c.join("")};
uf=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(na(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],uf(a,a.g?a.g.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),vf(d,c),c.push(":"),uf(a,a.g?a.g.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":vf(b,
c);break;case "number":c.push((0,window.isFinite)(b)&&!(0,window.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);}}};
vf=function(a,b){b.push('"',a.replace(fba,function(a){var b=wf[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),wf[a]=b);return b}),'"')};
xf=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
gba=function(a){var b=new xf(0,0,0,0);return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
g.yf=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
zf=function(a){return new xf(a.top,a.left+a.width,a.top+a.height,a.left)};
Af=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};
Bf=function(a){return new xe(a.left,a.top)};
Cf=function(a){g.L.call(this);this.od=1;this.A=[];this.B=0;this.g=[];this.o={};this.C=!!a};
Df=function(a,b,c,d){if(b=a.o[b]){var e=a.g;if(b=g.Xa(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.Ad(b)}return!1};
hba=function(a,b,c){g.gd(function(){a.apply(b,c)})};
Ef=function(){};
Gf=function(a){if(a instanceof Ef)return a;if("function"==typeof a.rd)return a.rd(!1);if(oa(a)){var b=0,c=new Ef;c.next=function(){for(;;){if(b>=a.length)throw Ff;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
Hf=function(a,b,c){if(oa(a))try{(0,g.H)(a,b,c)}catch(d){if(d!==Ff)throw d;}else{a=Gf(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Ff)throw d;}}};
iba=function(a){if(oa(a))return g.jb(a);a=Gf(a);var b=[];Hf(a,function(a){b.push(a)});
return b};
If=function(a,b){this.o={};this.g=[];this.Tf=this.Ga=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){a instanceof If?(c=a.rb(),d=a.$a()):(c=g.Ob(a),d=g.Lb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
Kf=function(a,b){return Jf(a.o,b)};
Lf=function(a){if(a.Ga!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];Jf(a.o,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.Ga!=a.g.length){for(var e={},c=b=0;b<a.g.length;)d=a.g[b],Jf(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}};
Jf=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Mf=function(a){if(a.$a&&"function"==typeof a.$a)return a.$a();if(g.y(a))return a.split("");if(oa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return g.Lb(a)};
Nf=function(a){if(a.rb&&"function"==typeof a.rb)return a.rb();if(!a.$a||"function"!=typeof a.$a){if(oa(a)||g.y(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Ob(a)}};
Of=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(oa(a)||g.y(a))(0,g.H)(a,b,void 0);else for(var c=Nf(a),d=Mf(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
g.Pf=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
g.Qf=function(a){return a.match(jba)};
Rf=function(a){return a?(0,window.decodeURI)(a):a};
g.Sf=function(a){return Rf(g.Qf(a)[3]||null)};
g.Tf=function(a){return Number(g.Qf(a)[4]||null)||null};
Uf=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,k=null;0<=e?(f=c[d].substring(0,e),k=c[d].substring(e+1)):f=c[d];b(f,k?Ca(k):"")}};
Vf=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")};
Wf=function(a,b,c){if(na(b))for(var d=0;d<b.length;d++)Wf(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Ba(b))};
Xf=function(a,b,c){for(c=c||0;c<b.length;c+=2)Wf(b[c],b[c+1],a);return a};
Yf=function(a,b){for(var c in b)Wf(c,b[c],a);return a};
g.Zf=function(a){a=Yf([],a);a[0]="";return a.join("")};
$f=function(a,b){return Vf(2==arguments.length?Xf([a],arguments[1],0):Xf([a],arguments,1))};
g.ag=function(a,b){return Vf(Yf([a],b))};
bg=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};
dg=function(a,b){var c=a.search(cg),d=bg(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 Ca(a.substr(d,e-d))};
eg=function(a,b){for(var c=a.search(cg),d=0,e,f=[];0<=(e=bg(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(kba,"$1")};
fg=function(a,b,c){a=[eg(a,b),"&",b];null!=c&&a.push("=",Ba(c));return Vf(a)};
gg=function(a,b){this.o=this.G=this.B="";this.C=null;this.H=this.A="";this.D=!1;var c;a instanceof gg?(this.D=g.p(b)?b:a.D,hg(this,a.B),this.G=a.G,g.ig(this,a.o),g.jg(this,a.C),kg(this,a.A),lg(this,a.g.clone()),this.H=a.lg()):a&&(c=g.Qf(String(a)))?(this.D=!!b,hg(this,c[1]||"",!0),this.G=mg(c[2]||""),g.ig(this,c[3]||"",!0),g.jg(this,c[4]),kg(this,c[5]||"",!0),lg(this,c[6]||"",!0),this.H=mg(c[7]||"")):(this.D=!!b,this.g=new ng(null,0,this.D))};
hg=function(a,b,c){a.B=c?mg(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.ig=function(a,b,c){a.o=c?mg(b,!0):b;return a};
g.jg=function(a,b){if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null;return a};
kg=function(a,b,c){a.A=c?mg(b,!0):b};
lg=function(a,b,c){b instanceof ng?(a.g=b,lba(a.g,a.D)):(c||(b=og(b,mba)),a.g=new ng(b,0,a.D));return a};
g.pg=function(a,b,c){a.g.set(b,c);return a};
rg=function(a,b,c){na(c)||(c=[String(c)]);qg(a.g,b,c)};
sg=function(a){g.pg(a,"zx",g.Ka());return a};
g.tg=function(a){return a instanceof gg?a.clone():new gg(a,void 0)};
nba=function(a,b,c,d){var e=new gg(null,void 0);a&&hg(e,a);b&&g.ig(e,b);c&&g.jg(e,c);d&&kg(e,d);return e};
mg=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
og=function(a,b,c){return g.y(a)?(a=(0,window.encodeURI)(a).replace(b,oba),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
oba=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
ng=function(a,b,c){this.Ga=this.g=null;this.o=a||null;this.A=!!c};
vg=function(a){a.g||(a.g=new If,a.Ga=0,a.o&&Uf(a.o,function(b,c){ug(a,Ca(b),c)}))};
wg=function(a){var b=Nf(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new ng(null,0,void 0);a=Mf(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];na(f)?qg(c,e,f):ug(c,e,f)}return c};
ug=function(a,b,c){vg(a);a.o=null;b=xg(a,b);var d=a.g.get(b);d||a.g.set(b,d=[]);d.push(c);a.Ga=a.Ga+1};
yg=function(a,b){vg(a);b=xg(a,b);return Kf(a.g,b)};
qg=function(a,b,c){a.remove(b);0<c.length&&(a.o=null,a.g.set(xg(a,b),g.jb(c)),a.Ga=a.Ga+c.length)};
xg=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};
lba=function(a,b){b&&!a.A&&(vg(a),a.o=null,a.g.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),qg(this,c,a))},a));
a.A=b};
zg=function(a,b){b.match(/\sstyle\s*=/);a.innerHTML=b};
Bg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-cast-desktop-on"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
g.Cg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-chevron-back"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},T:[{K:"path",X:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.Dg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-chevron-forward"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},T:[{K:"path",X:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
Eg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-clip-clear"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},T:[{K:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{K:"path",X:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
Fg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-clip-end"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},T:[{K:"path",La:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Gg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-clip-start"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},T:[{K:"path",La:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.Hg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-close"]}:{K:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},T:[{K:"path",X:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
Ig=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-closed-captioning"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}};
pba=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-large-play-button-hover"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},T:[{K:"path",Y:"ytp-large-play-button-bg",X:{d:"m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z",
fill:"#cc181e"}},{K:"path",X:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{K:"path",X:{d:"M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z",fill:"#ccc"}}]}};
Jg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-link"]}:{K:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",X:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
Kg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-next"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
Lg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-pause"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Mg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-play"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
Ng=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-playlist"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",fill:"#fff"}}]}};
Og=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-prev"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
Pg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-replay"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M17,9 C12,9 8,13 8,18 C8,23 12,27 17,27 C19.5,27 21.82,25.95 23.45,24.26 L22.04,22.85 C20.77,24.17 19,25 17,25 C13,25 10,21.86 10,18 C10,14.13 13.13,11 17,11 C20.86,11 24,14 24,18 L21,18 L25,22 L29,18 L26,18 C26,13 22,9 17,9 Z"}}]}};
g.Qg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-settings"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
Rg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-stop"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Ug=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-volume-high"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",fill:"#fff"}}]}};
Vg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-volume-low"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}};
Wg=function(){return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-volume-muted"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
qba=function(a){Xg(g.Yg,arguments)};
g.Zg=function(a,b){return a in g.Yg?g.Yg[a]:b};
g.ah=function(a,b){ra(a)&&(a=$g(a));return window.setTimeout(a,b)};
g.bh=function(a,b){ra(a)&&(a=$g(a));return window.setInterval(a,b)};
g.ch=function(a){window.clearTimeout(a)};
g.dh=function(a){window.clearInterval(a)};
$g=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){eh(b)}}:a};
eh=function(a,b){var c=u("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=g.Zg("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),qba("ERRORS",c))};
g.gh=function(a){Xg(fh,arguments)};
g.Q=function(a,b,c){var d=b||{};if(a=a in fh?fh[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a};
Xg=function(a,b){if(1<b.length){var c=b[0];a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}};
ih=function(a,b,c){a&&(a.dataset?a.dataset[hh(b)]=c:a.setAttribute("data-"+b,c))};
jh=function(a){return a?a.dataset?a.dataset[hh("loaded")]:a.getAttribute("data-loaded"):null};
hh=function(a){return kh[a]||(kh[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
lh=function(a,b,c,d){g.L.call(this);this.A=b||null;this.G="*";this.o=c||null;this.sessionId=null;this.channel=d||null;this.J=!!a;this.F=(0,g.z)(this.L,this);window.addEventListener("message",this.F)};
mh=function(a,b){"null"!=b.origin?a.o=a.G=b.origin:eh(Error("MessageEvent origin is null"),"WARNING");a.A=b.source};
oh=function(a,b){if(a in b)return b[a];var c=nh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
qh=function(a,b){var c;ph(a,function(a){c=b[a];return!!c});
return c};
rh=function(a){lh.call(this,!0);this.sessionId=a;this.channel="remoteplayer";this.o="*";this.D={};this.B=[];this.H=!1;this.C=window};
sh=function(a,b){a.sendMessage({event:"syn"},b)};
th=function(a){a.H=!0;(0,g.H)(a.B,function(a){this.sendMessage(a)},a);
a.B.length=0};
wh=function(a){var b;uh()?vh()==a&&(b=window.document):b=a;b&&(a=qh(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
xh=function(a){return g.Xa(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
rba=function(){var a=window.document;return g.Xa(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
uh=function(){return!!qh(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)};
vh=function(){var a=qh(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null};
yh=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Wb(sba);this.assets=a.assets||{};this.attrs=a.attrs||Wb(tba);this.params=a.params||Wb(uba);this.minVersion=a.min_version||"8.0.0";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||{}};
vba=function(a){a instanceof yh||(a=new yh(a));return a};
g.zh=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var k=c[e].split("=");if(1==k.length&&k[0]||2==k.length){var l=Ca(k[0]||""),k=Ca(k[1]||"");l in d?na(d[l])?kb(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};
Ah=function(a,b){var c=[];g.Eb(a,function(a,b){var d=Ba(b),e;na(a)?e=a:e=[a];(0,g.H)(e,function(a){""==a?c.push(d):c.push(d+"="+Ba(a))})});
return c.join(b)};
g.Bh=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return g.zh(a,"&")};
Ch=function(a){a=a.split(",");return a=a.map(function(a){return g.Bh(a)})};
g.Dh=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.Bh(1<a.length?a[1]:a[0])):{}};
g.Fh=function(a,b){return Eh(a,b||{},!0)};
g.Gh=function(a,b){return Eh(a,b||{},!1)};
Eh=function(a,b,c){var d=a.split("#",2);a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=g.Bh(e[1]||""),f;for(f in b)if(c||!Qb(e,f))e[f]=b[f];return g.ag(a,e)+d};
Hh=function(a){var b;b||(b=window.location.href);var c=g.Qf(a)[1]||null,d=g.Sf(a);c&&d?(a=g.Qf(a),b=g.Qf(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Sf(b)==d&&g.Tf(b)==g.Tf(a):!0;return a};
Ih=function(){var a;a||(a=window.document.location.href);a=g.Qf(a)[1]||null;return null!==a&&"https"==a};
Jh=function(a){this.g=a||{cookie:""}};
Lh=function(a){a=(a.g.cookie||"").split(Kh);for(var b=[],c=[],d,e,f=0;e=a[f];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}};
Mh=function(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Oh=function(){return Nh("android")&&Nh("chrome")&&!(Nh("trident/")||Nh("edge/"))};
g.Ph=function(){return Nh("cobalt")};
Qh=function(){return Nh("(ps3; leanback shell)")||Nh("ps3")&&g.Ph()};
g.Rh=function(){return Nh("(ps4; leanback shell)")||Nh("ps4")&&g.Ph()};
g.Sh=function(){return g.Ph()&&(Nh("ps4 vr")||Nh("ps4 pro vr"))};
Th=function(){var a=/WebKit\/([0-9]+)/.exec(ec);return!!(a&&600<=(0,window.parseInt)(a[1],10))};
Vh=function(){return g.Uh&&Nh("crkey")};
Wh=function(){return Nh("nintendo wiiu")};
Xh=function(){return Nh("iemobile")||Nh("windows phone")&&Nh("edge")};
Nh=function(a){var b=ec;return b?0<=b.toLowerCase().indexOf(a):!1};
ci=function(a,b,c){var d=Yh();if(d){var e=d.subscribe(a,function(){if(!Zh||Zh!=e){var d=arguments,k;k=function(){$h[e]&&b.apply(c||window,d)};
try{ai[a]?k():g.ah(k,0)}catch(l){eh(l)}}},c);
$h[e]=!0;bi[a]||(bi[a]=[]);bi[a].push(e);return e}return 0};
g.ei=function(a,b){var c=ci(a,function(a){b.apply(void 0,arguments);di(c)},void 0)};
di=function(a){var b=Yh();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),(0,g.H)(a,function(a){b.unsubscribeByKey(a);delete $h[a]}))};
g.fi=function(a,b){var c=Yh();c&&c.publish.apply(c,arguments)};
gi=function(a,b){ai[a]=!0;var c=Yh();c&&c.publish.apply(c,arguments);ai[a]=!1};
hi=function(a){bi[a]&&(a=bi[a],(0,g.H)(a,function(a){$h[a]&&delete $h[a]}),a.length=0)};
wba=function(a){var b=Yh();if(b)if(b.clear(a),a)hi(a);else for(var c in bi)hi(c)};
Yh=function(){return u("yt.pubsub.instance_")};
ji=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&$g(b)(m)}
var m=ii&&ii();if(!("open"in m))return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;c=(c||"GET").toUpperCase();d=d||"";m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);f="POST"==c;if(e=xba(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(f=!1);f&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(d);return m};
xba=function(a,b){b=b||{};var c=Hh(a),d;for(d in ki){var e=g.Zg(ki[d]),f;if((f=e)&&!(f=c)){f=d;var k=g.Zg("CORS_HEADER_WHITELIST")||{},l=g.Sf(a);f=l?(k=k[l])?g.ab(k,f):!1:!0}f&&(b[d]=e)}return b};
g.mi=function(a,b){b.method="POST";b.Sb||(b.Sb={});g.li(a,b)};
yba=function(a,b){var c=g.Zg("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.wU&&(!g.Sf(a)||b.withCredentials||g.Sf(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Sb&&b.Sb[c])};
g.li=function(a,b){var c=b.format||"JSON";b.zU&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=g.Zg("XSRF_FIELD_NAME",void 0),e=g.Zg("XSRF_TOKEN",void 0),f=b.Bc;f&&(f[d]&&delete f[d],a=g.Fh(a,f));var k=b.postBody||"",f=b.Sb;yba(a,b)&&(f||(f={}),f[d]=e);f&&g.y(k)&&(d=g.Bh(k),g.Zb(d,f),k=b.Mu&&"JSON"==b.Mu?JSON.stringify(d):g.Zf(d));var l=!1,m,n=ji(a,function(a){if(!l){l=!0;m&&g.ch(m);var d=Mh(a),
e=null;if(d||400<=a.status&&500>a.status)e=zba(c,a,b.tU);if(d)a:if(204==a.status)d=!0;else{switch(c){case "XML":d=0==(0,window.parseInt)(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||r;d?b.Cb&&b.Cb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.cd&&b.cd.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Sc&&0<b.timeout&&(m=g.ah(function(){l||(l=!0,n.abort(),g.ch(m),b.Sc.call(b.context||r,n))},b.timeout));
return n};
zba=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=qf(a));break;case "XML":if(b=(b=b.responseXML)?Aba(b):null)d={},(0,g.H)(b.getElementsByTagName("*"),function(a){d[a.tagName]=Bba(a)})}c&&ni(d);
return d};
ni=function(a){if(g.sa(a))for(var b in a)"html_content"==b||Aa(b,"_html")?a[b]=se(Yd("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):ni(a[b])};
Aba=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Bba=function(a){var b="";(0,g.H)(a.childNodes,function(a){b+=a.nodeValue});
return b};
Eba=function(){var a=Cba(),b=window.document.getElementById(a),c=b&&jh(b);c||b&&!c||(b=Dba(a,function(){jh(b)||(ih(b,"loaded","true"),g.fi(a),g.ah(g.B(wba,a),0))}))};
Dba=function(a,b){var c=window.document.createElement("script");c.id=a;c.onload=function(){b&&(0,window.setTimeout)(b,0)};
c.onreadystatechange=function(){switch(c.readyState){case "loaded":case "complete":c.onload()}};
c.src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js";var d=window.document.getElementsByTagName("head")[0]||window.document.body;d.insertBefore(c,d.firstChild);return c};
Cba=function(){var a=window.document.createElement("a");Be(a,"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js");a=a.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Oa(a)};
g.oi=function(a,b,c){a&&(c&&!g.Ph()?a&&(a=g.P("IFRAME",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),De(a).body.appendChild(a)):g.Zg("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)?ji(a,b):Fba(a,b))};
Fba=function(a,b){var c=new window.Image,d=""+Gba++;pi[d]=c;c.onload=c.onerror=function(){b&&pi[d]&&b();delete pi[d]};
c.src=a};
ri=function(a,b){var c=Wb(b);return new g.ld(function(b,e){c.Cb=function(a){Mh(a)?b(a):e(new qi("Request failed, status="+a.status,"net.badstatus",a))};
c.onError=function(a){e(new qi("Unknown request error","net.unknown",a))};
c.Sc=function(a){e(new qi("Request timed out","net.timeout",a))};
g.li(a,c)})};
si=function(a,b,c,d){function e(d,l,m){return g.vd(d,function(d){return 0>=l||403===d.g.status?qd(new qi("Request retried too many times","net.retryexhausted",d.g)):f(m).then(function(){return e(ri(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(a){return new g.ld(function(b){(0,window.setTimeout)(b,a)})}
return e(ri(a,b),c-1,d)};
qi=function(a,b,c){ya.call(this,a+", errorCode="+b);this.errorCode=b;this.g=c};
g.ti=function(a,b,c){this.errorCode=a;this.g=b;this.details=c||{}};
ui=function(a){var b,c;for(c in a){var d=(""+a[c]).replace(/[:,]/g,"_");b=(b?b+";":"")+c+"."+d}return b||""};
vi=function(a){this.Kd=a};
wi=function(a,b){this.g=a||0;this.spatialAudioType=b||0};
xi=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
Ai=function(a,b,c,d,e,f,k,l,m,n,q){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);b=yi[0];for(var t=0;t<yi.length;t++){var w=yi[t],x=g.zi[w];if(f>=Math.floor(16*x/9)*Ai.prototype.A||a>=x*Ai.prototype.A){f=b;break a}b=w}f="tiny"}this.quality=f;this.Pk=g.zi[this.quality];this.isAccelerated=!!k;this.fps=c||0;this.B=e||0;this.projectionType=d||0;(c=l)||(c=this.fps,d=this.projectionType,e=g.zi[this.quality],c=0==e?g.Q("YTP_AUTO"):e+(2==d||3==d?"s":"p")+(55<c?"60":49<c?"50":39<c?"48":
""));this.qualityLabel=c;this.g=m||"";this.primaries=n||"";this.o=!1!==q};
Ci=function(a,b,c,d,e,f,k,l){this.id=a;this.o=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.g=k||0;this.B=l||0;this.audio=c||null;this.video=d||null;this.yc=e||null;this.$e=f||null;this.A=Hba[Bi(this)]||""};
Bi=function(a){return a.id.split(";",1)[0]};
Di=function(a){return"9"==a.A||"("==a.A||"9h"==a.A};
Ei=function(a){return!(a.audio&&a.video)};
Fi=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
Gi=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
Hi=function(a,b,c,d,e,f,k){var l=new wi;b in g.zi||(b="small");d&&e?(e=(0,window.parseInt)(e,10),d=(0,window.parseInt)(d,10)):(e=g.zi[b],d=Math.round(16*e/9));b=new Ai(d,e,0,null,void 0,b,f,void 0,void 0,void 0,k);a=(0,window.unescape)(a.replace(/&quot;/g,'"'));return new Ci(c,a,l,b)};
Ii=function(a,b,c){this.o=a||0;this.g=b||0;this.A=c};
Ji=function(a,b,c){return new Ii(g.zi[a]||0,g.zi[b]||0,c)};
Ki=function(a){var b=g.zi.auto;return a.o==b&&a.g==b};
Mi=function(a,b){if(b.A&&Ki(b))return Li;if(b.A||Ki(a))return b;if(a.A||Ki(b))return a;var c=a.o&&b.o?Math.max(a.o,b.o):a.o||b.o,d=a.g&&b.g?Math.min(a.g,b.g):a.g||b.g,c=Math.min(c,d);return c==a.o&&d==a.g?a:new Ii(c,d,!1)};
g.Ni=function(a){var b=a.g||a.o;return Sb(Iba,function(a){return g.zi[a]==b})||"auto"};
Oi=function(a,b){var c=g.zi[b];return a.o<=c&&(!a.g||a.g>=c)};
Qi=function(){return qc?"Webkit":Pi?"Moz":g.Me?"ms":g.rc?"O":null};
g.Si=function(a,b,c){if(g.y(b))(b=Ri(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Ri(c,d);f&&(c.style[f]=e)}};
Ri=function(a,b){var c=Ti[b];if(!c){var d=Ra(b),c=d;void 0===a.style[d]&&(d=Qi()+Sa(d),void 0!==a.style[d]&&(c=d));Ti[b]=c}return c};
Ui=function(a,b){var c=a.style[Ra(b)];return"undefined"!==typeof c?c:a.style[Ri(a,b)]||""};
Vi=function(a,b){var c=De(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
Wi=function(a,b){return Vi(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Yi=function(a,b,c){var d;b instanceof xe?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Xi(d,!1);a.style.top=Xi(b,!1)};
Zi=function(a){return new xe(a.offsetLeft,a.offsetTop)};
$i=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}g.Me&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
Jba=function(a){if(g.Me&&!pc(8))return a.offsetParent;var b=De(a),c=Wi(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=Wi(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};
bj=function(a){for(var b=new xf(0,window.Infinity,window.Infinity,0),c=Fe(a),d=c.g.body,e=c.g.documentElement,f=Le(c.g);a=Jba(a);)if(!(g.Me&&0==a.clientWidth||qc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Wi(a,"overflow")){var k=aj(a),l=new xe(a.clientLeft,a.clientTop);k.x+=l.x;k.y+=l.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=
Math.max(b.top,f);c=Ke(of(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null};
aj=function(a){var b=De(a),c=new xe(0,0),d;d=b?De(b):window.document;d=!g.Me||pc(9)||"CSS1Compat"==Fe(d).g.compatMode?d.documentElement:d.body;if(a==d)return c;a=$i(a);b=Ne(Fe(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c};
dj=function(a,b){var c=new xe(0,0),d=Oe(De(a));if(!dc(d,"parent"))return c;var e=a;do{var f=d==b?aj(e):cj(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.fj=function(a,b){var c=ej(a),d=ej(b);return new xe(c.x-d.x,c.y-d.y)};
cj=function(a){a=$i(a);return new xe(a.left,a.top)};
ej=function(a){if(1==a.nodeType)return cj(a);a=a.changedTouches?a.changedTouches[0]:a;return new xe(a.clientX,a.clientY)};
g.hj=function(a,b,c){if(b instanceof g.ze)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");gj(a,b);a.style.height=Xi(c,!0)};
Xi=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
gj=function(a,b){a.style.width=Xi(b,!0)};
g.ij=function(a){var b=Kba;if("none"!=Wi(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};
Kba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=qc&&!b&&!c;return g.p(b)&&!d||!a.getBoundingClientRect?new g.ze(b,c):(a=$i(a),new g.ze(a.right-a.left,a.bottom-a.top))};
jj=function(a){var b=aj(a);a=g.ij(a);return new g.yf(b.x,b.y,a.width,a.height)};
kj=function(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")};
R=function(a,b){a.style.display=b?"":"none"};
lj=function(a){return"none"!=a.style.display};
mj=function(a,b){if(/^\d+px?$/.test(b))return(0,window.parseInt)(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return+e};
Oba=function(a){var b=Wi(a,"fontSize"),c;c=(c=b.match(Lba))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(g.Me){if(String(c)in Mba)return mj(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in Nba)return a=a.parentNode,c=Wi(a,"fontSize"),mj(a,b==c?"1em":b)}c=g.P("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;g.Ye(c);return b};
oj=function(a){if(a.xk)return 4;var b=oh("visibilityState",window.document);return b&&"visible"!=b?3:a.P||nj(a)?2:a.Ib?1:0};
Pba=function(a){var b=pj();b&&window.document.addEventListener(b,a,!1)};
pj=function(){var a;if(window.document.visibilityState)a="visibilitychange";else{if(!window.document[nh+"VisibilityState"])return"";a=nh+"visibilitychange"}return a};
Qba=function(){};
g.qj=function(a){this.g=a};
rj=function(a){this.g=a};
sj=function(a){this.data=a};
tj=function(a){return!g.p(a)||a instanceof sj?a:new sj(a)};
uj=function(a){this.g=a};
vj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.G)()||!!b&&b>(0,g.G)()};
wj=function(a){this.g=a};
Rba=function(a,b){var c=[];Hf(b,function(a){var b;try{b=wj.prototype.o.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}g.p(b)?vj(b)&&c.push(a):c.push(a)},a);
return c};
Sba=function(a,b){var c=Rba(a,b);(0,g.H)(c,function(a){wj.prototype.remove.call(this,a)},a)};
Tba=function(){var a=yj;Sba(a,a.g.rd(!0))};
zj=function(){};
Aj=function(a){this.g=a};
Bj=function(a,b){this.o=a;this.g=b+"::"};
Cj=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a};
Dj=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a};
g.Ej=function(a){var b=new Cj;return b.isAvailable()?a?new Bj(b,a):b:null};
g.Gj=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.G)()+1E3*d:0;if((d=d?yj:Fj)&&window.JSON){g.y(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Hj=function(a){if(!Fj&&!yj||!window.JSON)return null;var b;try{b=Fj.get(a)}catch(c){}if(!g.y(b))try{b=yj.get(a)}catch(c){}if(!g.y(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
g.Ij=function(a){Fj&&Fj.remove(a);yj&&yj.remove(a)};
Uba=function(){var a=g.Hj("yt-player-volume")||{},b=a.volume;return{volume:(0,window.isNaN)(b)?100:g.te(Math.floor(b),0,100),muted:!!a.muted}};
Jj=function(a){g.Gj("yt-player-bandwidth",a,2592E3)};
Kj=function(){return g.Hj("yt-player-quality")||"auto"};
Lj=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in Vba||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?
b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;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.g=a.pageX;this.o=a.pageY}};
Mj=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+window.document.documentElement.scrollTop;a.g=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.o=a.clientY+b}};
Oj=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new window.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++){for(var c=(0,g.G)(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=Nj)for(c=1,d=0;d<b.length;d++)a[c%16]=a[c%16]^a[(c-1)%16]/4^b.charCodeAt(d),c++;return a};
Pj=function(){for(var a=Oj(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
g.Qj=function(){return(0,g.S)(Oj(),function(a){return(a&15).toString(16)}).join("")};
g.Rj=function(a){var b=window.document.createDocumentFragment();if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];d.text&&b.appendChild(Wba(d))}a=g.Re("div");a.appendChild(b);return a.innerText};
Wba=function(a){var b=null,c=a.text;a.bold&&(b=g.P("B",null,b||c));a.italics&&(b=g.P("I",null,b||c));a.strikethrough&&(b=g.P("STRIKE",null,b||c));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){a=a.navigationEndpoint.urlEndpoint;var d={href:a.url};"TARGET_NEW_WINDOW"==a.target&&(d.target="_blank");b=g.P("A",d,b||c)}return b||g.P("SPAN",null,c)};
Sj=function(a){var b=0;-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b};
Xba=function(a,b,c,d){a.addEventListener&&("mouseenter"!=b||"onmouseenter"in window.document?"mouseleave"!=b||"onmouseenter"in window.document?"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Rb(Tj,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
g.Vj=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Xba(a,b,c,d);if(e)return e;var e=++Uj.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new Lj(d);if(!lf(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Lj(b);
b.currentTarget=a;return c.call(a,b)};
k=$g(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,k,d)):a.attachEvent("on"+b,k);Tj[e]=[a,b,c,k,d];return e};
Xj=function(a,b,c){var d;return d=g.Vj(a,b,function(){g.Wj(d);c.apply(a,arguments)},void 0)};
Zba=function(a,b){return Yba(a,b,function(a){return g.Md(a,"iv-card-poll-choice-input")})};
Yba=function(a,b,c){var d=a||window.document;return g.Vj(d,"change",function(a){var e=lf(a.target,function(a){return a===d||c(a)});
e&&e!==d&&!e.disabled&&(a.currentTarget=e,b.call(e,a))})};
g.Wj=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.H)(a,function(a){if(a in Tj){var b=Tj[a],d=b[0],e=b[1],f=b[3],b=b[4];d.removeEventListener?d.removeEventListener(e,f,b):d.detachEvent&&d.detachEvent("on"+e,f);delete Tj[a]}}))};
g.Yj=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Zj=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:g.Yj(a)};
ak=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};
bk=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(b||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),c||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new xe(b,c)};
g.ck=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.dk=function(a){a=a||window.event;return!1===a.returnValue||a.xt&&a.xt()};
ek=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
gk=function(){if(null==u("_lact",window)){var a=(0,window.parseInt)(g.Zg("LACT"),10),a=(0,window.isFinite)(a)?(0,g.G)()-Math.max(a,0):-1;g.ka("_lact",a,window);-1==a&&fk();g.Vj(window.document,"keydown",fk);g.Vj(window.document,"keyup",fk);g.Vj(window.document,"mousedown",fk);g.Vj(window.document,"mouseup",fk);ci("page-mouse",fk);ci("page-scroll",fk);ci("page-resize",fk)}};
fk=function(){null==u("_lact",window)&&(gk(),u("_lact",window));var a=(0,g.G)();g.ka("_lact",a,window);g.fi("USER_ACTIVE")};
hk=function(){var a=u("_lact",window);return null==a?-1:Math.max((0,g.G)()-a,0)};
jk=function(a,b,c){g.y(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);a.videoId=b&&b[2]?b[2]:null;return ik(a)};
ik=function(a,b,c){if(g.sa(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};
$ba=function(){this.C=this.g=window.NaN;this.o=this.B=this.A=!1};
kk=function(a,b){a.g=b;a.A=!0};
lk=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.A)b!=a.g&&(a.A=!1);else if(0<b&&a.g==b)return c-a.C>(d||!a.B?1500:400);a.g=b;a.C=c;return!1};
mk=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
nk=function(a){var b="";if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b};
ok=function(a,b){if(!a)return-1;for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1};
pk=function(a,b){var c=ok(a,b);return 0<=c?a.end(c):window.NaN};
qk=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
rk=function(a,b){var c=pk(a,b);return 0<=c?c-b:0};
sk=function(a,b){this.g=a;this.o=!!b;this.A=!1};
tk=function(){};
uk=function(){g.L.call(this);this.o=null;this.D=this.C=!1;this.B=new N;g.M(this,this.B)};
wk=function(a,b){var c="";b&&(vk(a,b),c=b.g);a.ad()&&""==c||(c&&a.ad()!=c&&a.Nl(c),b&&b.o||a.load(),a.D||(a.addEventListener("volumechange",a.wr,!1,a),a.D=!0))};
Ak=function(a){a.Cg()&&xk(a,0);!a.ad()&&a.o&&(a.Nl(a.o.g),a.o.o||a.load());a.play();yk&&7<=zk&&Xj(a,"playing",(0,g.z)(function(){g.ah((0,g.z)(this.Zr,this,this.getCurrentTime(),0),500)},a))};
vk=function(a,b){a.o&&null!=b&&b.g==a.o.g||(a.o&&a.o.dispose(),a.o=b)};
Bk=function(a){return rk(a.ef(),a.getCurrentTime())};
xk=function(a,b){0<a.oe()&&(yk&&4>zk&&(b=Math.max(.1,b)),a.Ml(b))};
Dk=function(a){a.ad()&&(Ck&&0<a.getCurrentTime()&&xk(a,0),a.Tu(),a.load(),vk(a,null))};
Ek=function(a){var b=a.ef();return 0<qk(b)&&a.getDuration()?pk(b,a.getCurrentTime()):0};
Fk=function(a){var b=a.getDuration();return window.Infinity==b?1:b?Ek(a)/b:0};
Gk=function(a){return{vct:a.getCurrentTime().toFixed(3),vd:a.getDuration().toFixed(3),vpl:nk(a.fk()),vbu:nk(a.ef()),vpa:a.Fh(),vsk:a.Nx(),ven:a.Cg(),vpr:a.Ap(),vrs:a.oe(),vns:a.Ym(),vec:a.vb(),vvol:a.getVolume()}};
Hk=function(a,b,c){ac.call(this,b,a);this.g=c||null};
Ik=function(){var a="";try{var b=g.Re("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a};
g.Jk=function(a){return(a=aca[a.toString()])?a:"YTP_ERROR_LICENSE"};
Kk=function(a,b){this.o=a||64;this.g=b||null};
bca=function(a,b,c,d,e){if(g.T(a,128))return a;var f=a.o,k=a.g,l=b.target;if(!g.T(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&l.Cg()||"ended"==b.type&&(l.Cg()||1>Math.abs(l.getCurrentTime()-l.getDuration())))0<l.Ym()&&l.ad()&&(f=14,k=null);else if("pause"==b.type)g.T(a,256)?(f^=256)||(f=64):g.T(a,32)||g.T(a,2)||g.T(a,4)||(f=4,g.T(a,1)&&g.T(a,8)&&(f|=1),k=null);else if("playing"==b.type)f=8,k=null,g.T(a,32)&&(f|=32),d&&g.T(a,1)&&Lk(c,l)&&(f|=1);else if("error"==b.type){a:{if(2==l.vb())c=
"progressive.net.retryexhausted";else if(3==l.vb())c="fmt.decode";else if(4==l.vb())c="fmt.unplayable";else{c=null;break a}e="mediaElem.1";.001>Math.random()&&(e+=";gpu."+Ik());c={errorCode:c,errorDetail:e,message:g.Q("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}c&&(k=c,f|=128)}else if("progress"==b.type)Mk(a)&&Lk(c,l)&&(f|=1);else if("seeked"==b.type)f&=-17;else if("seeking"==b.type)f|=16,0>=Bk(l)&&(f|=1),f&=-3;else if("waiting"==b.type)g.T(a,2)||(f|=1);else if("timeupdate"==
b.type)b=2<l.oe(),c.o|=b,g.T(a,16)||g.T(a,4)||(Lk(c,l)?f|=1:e&&!b&&c.o||(f&=-2)),1<l.oe()&&0<l.getCurrentTime()&&(f&=-65);else return a;return Nk(a,f,k)};
Lk=function(a,b){return lk(a,b.getCurrentTime(),(0,g.Ok)(),Bk(b))};
Nk=function(a,b,c){return b==a.o&&c==a.g||b&128&&!c||b&2&&b&16?a:new Kk(b,c)};
Pk=function(a,b){return Nk(a,a.o|b)};
Qk=function(a,b){return Nk(a,a.o&~b)};
Rk=function(a){return Nk(a,(a.o|4)&-9)};
g.T=function(a,b){return!!(a.o&b)};
Mk=function(a){return g.T(a,8)&&!g.T(a,2)};
Sk=function(a){return g.T(a,64)&&!g.T(a,8)&&!g.T(a,4)};
g.Tk=function(a){return g.T(a,1)&&!g.T(a,2)};
Uk=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,1)&&!g.T(a,32)?3:g.T(a,64)?-1:g.T(a,8)?1:g.T(a,4)?2:-1};
Wk=function(a,b){g.L.call(this);this.app=a;this.g=!0;this.o=null;this.B={};this.C={};this.F={};this.D={};this.A=null;this.playerType=b;U(this,"cueVideoById",this.JJ);U(this,"loadVideoById",this.WJ);U(this,"cueVideoByUrl",this.KJ);U(this,"loadVideoByUrl",this.XJ);U(this,"playVideo",this.Ye);U(this,"pauseVideo",this.fd);U(this,"stopVideo",this.Dh);U(this,"clearVideo",this.HJ);U(this,"getVideoBytesLoaded",this.QJ);U(this,"getVideoBytesTotal",this.RJ);U(this,"getVideoLoadedFraction",this.jp);U(this,"getVideoStartBytes",
this.SJ);U(this,"cuePlaylist",this.IJ);U(this,"loadPlaylist",this.VJ);U(this,"nextVideo",this.gj);U(this,"previousVideo",this.Cl);U(this,"playVideoAt",this.ww);U(this,"setShuffle",this.$J);U(this,"setLoop",this.ZJ);U(this,"getPlaylist",this.je);U(this,"getPlaylistIndex",this.tw);U(this,"getPlaylistId",this.Xe);U(this,"loadModule",this.kp);U(this,"unloadModule",this.Bw);U(this,"setOption",this.Ze);U(this,"getOption",this.Dc);U(this,"getOptions",this.Al);U(this,"mute",this.mute);U(this,"unMute",this.Vf);
U(this,"isMuted",this.Bd);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.getVolume);U(this,"seekTo",this.Ec);U(this,"getPlayerState",this.fj);U(this,"getPlaybackRate",this.OJ);U(this,"setPlaybackRate",this.hj);U(this,"getAvailablePlaybackRates",this.dj);U(this,"getPlaybackQuality",this.Bl);U(this,"setPlaybackQuality",this.Dl);U(this,"getAvailableQualityLevels",this.rw);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.getDuration);U(this,"addEventListener",this.addEventListener);
U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.ej);U(this,"getVideoEmbedCode",this.uw);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.pw);U(this,"removeCueRange",this.xw);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.LJ);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.Aw);U(this,"hideVideoInfo",this.TJ);U(this,"getMediaReferenceTime",this.NJ);Vk(this,"getInternalApiInterface",this.MJ);
Vk(this,"getAdState",this.qw);Vk(this,"isNotServable",this.UJ);Vk(this,"getUpdatedConfigurationData",this.PJ);Vk(this,"sendAbandonmentPing",this.YJ);Vk(this,"setAutonav",this.yw);Vk(this,"setAutonavState",this.zw);Vk(this,"startInteractionLogging",this.aK);Vk(this,"channelSubscribed",this.FJ);Vk(this,"channelUnsubscribed",this.GJ)};
U=function(a,b,c){a.B[b]=(0,g.z)(c,a)};
Vk=function(a,b,c){a.C[b]=(0,g.z)(c,a)};
Xk=function(a,b){Wk.call(this,a,b);this.g=!1;U(this,"getPresentingPlayerType",this.Za);U(this,"addInfoCardXml",this.bK);U(this,"cueVideoByPlayerVars",this.dK);U(this,"loadVideoByPlayerVars",this.El);U(this,"preloadVideoByPlayerVars",this.Fw);U(this,"seekBy",this.ke);U(this,"updatePlaylist",this.zK);U(this,"updateLastActiveTime",this.yK);U(this,"updateVideoData",this.AK);U(this,"getPlayerResponse",this.iK);U(this,"getStoryboardFormat",this.kK);U(this,"getProgressState",this.Wf);U(this,"getHousebrandProperties",
this.gK);U(this,"setPlaybackQualityRange",this.Iw);U(this,"getCurrentPlaylistSequence",this.fK);U(this,"canPlayType",this.cK);U(this,"sendVideoStatsEngageEvent",this.Ag);U(this,"setCardsVisible",this.kj);U(this,"handleGlobalKeyDown",this.lK);U(this,"getAudioTrack",this.ij);U(this,"setAudioTrack",this.Hw);U(this,"getAvailableAudioTracks",this.Cw);U(this,"getMaxPlaybackQuality",this.hK);U(this,"setSizeStyle",this.tK);U(this,"forceFrescaUpdate",this.eK);U(this,"setAutonav",this.yw);U(this,"setAutonavState",
this.zw);U(this,"showControls",this.wK);U(this,"hideControls",this.mK);U(this,"getVisibilityState",this.Ew);U(this,"shouldSendVisibilityState",this.vK);U(this,"getVideoContentRect",this.Dw);U(this,"setSafetyMode",this.sK);U(this,"setFauxFullscreen",this.qK);U(this,"cancelPlayback",this.jr);U(this,"getVideoStats",this.ys);U(this,"updateSubtitlesUserSettings",this.lp);U(this,"getSubtitlesUserSettings",this.jj);U(this,"resetSubtitlesUserSettings",this.Gw);U(this,"isFastLoad",this.nK);U(this,"isPeggedToLive",
this.isPeggedToLive);U(this,"setMinimized",this.rK);U(this,"getSphericalConfig",this.jK);U(this,"setSphericalConfig",this.uK);U(this,"setBlackout",this.pK);U(this,"onAdUxClicked",this.oK);U(this,"toggleSettingsMenu",this.xK)};
Yk=function(a,b){Xk.call(this,a,b)};
g.Zk=function(a){return a.app.D};
g.$k=function(a){a=g.Zk(a).B;return!!a&&a.sp()};
bl=function(a){var b=g.Zk(a);a=g.V(a);var c=b.B;return c&&c.Qw()?!a.experiments.g("mweb_autonav")||c.isAvailable:g.al(b.aa.getVideoData(),"ypc_module")};
g.cl=function(a,b){3==a.Za()?a.Ra("mdxautoplaycancel"):a.Ra("autonavcancel",b)};
g.V=function(a){return a.app.W};
g.fl=function(a){var b=a.app;return 3==dl(b)?b.L.G:g.el(b,a.playerType).A};
g.gl=function(a){return a.app.B};
il=function(a){var b;!(b=a.app.V&&!a.isFullscreen())&&(b=3==a.Za()&&a.app.L.hasNext())&&(b=a.app.L,b=b.o?hl(b.o).H:!1);return b||!!a.je()};
g.jl=function(a){if(uh())if(a.isFullscreen())wh(a.getRootNode());else{a=a.getRootNode();var b=qh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.ya("onFullscreenToggled",a.isFullscreen())};
ll=function(a){return(a=g.el(a.app))?g.Ni(kl(a.ra,a.g)):"unknown"};
ml=function(a){return(a=g.Zk(a).o)?a.Tw():{}};
nl=function(a,b){var c=g.Zk(a).o;c&&c.Uw(b)};
g.pl=function(a,b){g.V(a).experiments.g("ui_logging")&&g.ol(a,"controlclicked",{controlClicked:b})};
g.ol=function(a,b,c,d){var e=g.el(a.app);c.event=b;a.isFullscreen()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
sl=function(a){a.Ra("cardstatechange",g.ql(a)&&rl(a)?1:0)};
g.ql=function(a){a=tl(g.Zk(a));return!!a&&ul(a)};
rl=function(a){a=tl(g.Zk(a));return!!a&&vl(a)};
Cl=function(a){var b=g.el(a.app,1);if(!b)return!1;var c=b.getVideoData();return g.wl(c)&&!g.xl(c)&&2!=a.Za()&&(!Bl(b)||3==a.Za())};
g.El=function(a,b,c){Dl(a.app,b,c||a.playerType)};
g.Gl=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.el(d,a))c.C.D.apply(c.C,b),a&&dl(d)!=a||Fl(d,"cuerangesremoved",b)};
g.Hl=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.el(d,a)){c=c.C;for(var e=[],f=c.g.g,k=f.length-1;0<=k;k--){var l=f[k];if(l.namespace==b){var m=c.o.indexOf(l);0<=m&&c.o.splice(m,1);var n=c.g,m=n.g,n=g.sb(m,l,n.o);0<=n&&g.db(m,n);e.push(l)}}c.A();a&&dl(d)!=a||Fl(d,"cuerangesremoved",e)}};
g.Jl=function(a,b){var c=g.el(a.app,a.playerType);c&&Il(c,b)};
g.Kl=function(a,b,c){a=g.gl(a).element;var d=tb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));Xe(a,b,d);b.setAttribute("data-layer",c)};
g.Ll=function(a){var b=g.V(a);if(!b.Fc)return!1;var c=a.getVideoData();if(!c||3==a.Za())return!1;b=c.o&&(!b.experiments.g("allow_live_autoplay")||c.isLiveDefaultBroadcast);return!c.ypcPreview&&!b&&!g.ab(c.J,"ypc")&&!a.je()};
Nl=function(a,b,c){if(g.V(a).experiments.g("player_interaction_logging")){a=a.app.ca;g.cb(a.B,b);var d=String(a.G++);b.element.setAttribute("data-visual-id",d);g.Ml(a,"onLogClientVeCreated",{id:d,ve_type:c});g.Bb(b,(0,g.z)(a.D,a,b))}};
g.Ol=function(a,b){g.V(a).experiments.g("player_interaction_logging")&&a.app.ca.click(b)};
g.Pl=function(a,b,c){g.V(a).experiments.g("player_interaction_logging")&&(a=a.app.ca,b=b.element.getAttribute("data-visual-id"),c?g.cb(a.g,b):g.eb(a.g,b),c&&!g.ab(a.o,b)&&(g.Ml(a,"onLogVesShown",{ids:[b]}),g.cb(a.o,b)))};
Ql=function(a){this.g="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1};
Rl=function(a,b){var c=a.o(b,void 0);return-1==(0==c?a.g:c)?"rtl":"ltr"};
Sl=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&&"file"!==a&&"android-app"!==a)throw Error("Invalid URI scheme in origin");var c="",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};
cca=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=n=0}
function b(a){for(var b=k,c=0;64>c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];for(var d=e[1],f=e[2],l=e[3],m=e[4],n,q,c=0;80>c;c++)40>c?20>c?(n=l^d&(f^l),q=1518500249):(n=d^f^l,q=1859775393):60>c?(n=d&f|l&(d|f),q=2400959708):(n=d^f^l,q=3395469782),n=((a<<5|a>>>27)&4294967295)+n+m+q+b[c]&4294967295,m=l,l=f,f=(d<<30|d>>>2)&4294967295,d=a,a=n;e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]=e[2]+f&4294967295;
e[3]=e[3]+l&4294967295;e[4]=e[4]+m&4294967295}
function c(a,c){if("string"===typeof a){a=(0,window.unescape)((0,window.encodeURIComponent)(a));for(var d=[],e=0,k=a.length;e<k;++e)d.push(a.charCodeAt(e));a=d}c||(c=a.length);d=0;if(0==n)for(;d+64<c;)b(a.slice(d,d+64)),d+=64,q+=64;for(;d<c;)if(f[n++]=a[d++],q++,64==n)for(n=0,b(f);d+64<c;)b(a.slice(d,d+64)),d+=64,q+=64}
function d(){var a=[],d=8*q;56>n?c(l,56-n):c(l,64-(n-56));for(var k=63;56<=k;k--)f[k]=d&255,d>>>=8;b(f);for(k=d=0;5>k;k++)for(var m=24;0<=m;m-=8)a[d++]=e[k]>>m&255;return a}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,q;a();return{reset:a,update:c,digest:d,cB:function(){for(var a=d(),b="",c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b}}};
dca=function(){};
Tl=function(a,b,c){return a[b]=a[b]||c};
eca=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};
fca=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b};
Ul=function(){var a;if((a=Object.create)&&gca.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a};
Vl=function(a,b,c){this.g=a;this.A=b;this.o=c};
Wl=function(a){var b={};void 0!==a.g?b.trackingParams=a.g:(b.veType=a.A,null!=a.o&&(b.veCounter=a.o));return b};
Xl=function(a){Xg(g.Yg,arguments)};
g.Yl=function(a){return g.Zg("EXPERIMENT_FLAGS",{})[a]};
Zl=function(){return{apiaryHost:g.Zg("APIARY_HOST",void 0),qm:g.Zg("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:g.Zg("GAPI_HINT_OVERRIDE"),gapiHintParams:g.Zg("GAPI_HINT_PARAMS",void 0),innertubeApiKey:g.Zg("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.Zg("INNERTUBE_API_VERSION",void 0),Pn:g.Zg("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.Zg("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Rn:g.Zg("INNERTUBE_CONTEXT_HL",void 0),Qn:g.Zg("INNERTUBE_CONTEXT_GL",void 0),hJ:g.Zg("XHR_APIARY_HOST",
void 0)}};
$l=function(a){a={client:{hl:a.Rn,gl:a.Qn,clientName:a.Pn,clientVersion:a.innertubeContextClientVersion}};g.Zg("DELEGATED_SESSION_ID")&&(a.user={onBehalfOfUser:g.Zg("DELEGATED_SESSION_ID")});return a};
bm=function(){var a=hca.href,b;if(am.dpo)b=am.h;else{b=am.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=(0,window.decodeURIComponent)(a[2])}catch(e){}}return b};
ica=function(a){var b=Tl(am,"PQ",[]);am.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)};
cm=function(a){return Tl(Tl(am,"H",Ul()),a,Ul())};
jca=function(a,b,c){var d=[],e=[];if(1==(na(c)?2:1))return e=[b,a],(0,g.H)(d,function(a){e.push(a)}),dm(e.join(" "));
var f=[],k=[];(0,g.H)(c,function(a){k.push(a.key);f.push(a.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.J(f)?[c,b,a]:[f.join(":"),c,b,a];(0,g.H)(d,function(a){e.push(a)});
a=dm(e.join(" "));a=[c,a];g.J(k)||a.push(k.join(""));return a.join("_")};
dm=function(a){var b=cca();b.update(a);return b.cB().toLowerCase()};
gm=function(a,b,c){b&&0<b.length&&(b=em(b),c&&0<c.length&&(b+="___"+em(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=Tl(kca,"_p",Ul()),Tl(b,c,Ul())[a]=(new Date).getTime(),b=fm.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))};
em=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};
g.hm=function(a){for(var b=[],c=0,d=0;d<a.length;d++){for(var e=a.charCodeAt(d);255<e;)b[c++]=e&255,e>>=8;b[c++]=e}return b};
im=function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,nb(a,c,c+8192));return b};
lca=function(a){return(0,g.S)(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
g.jm=function(a){var b=Sl(String(r.location.href)),c=r.__OVERRIDE_SID;null==c&&(c=(new Jh(window.document)).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?r.__SAPISID:r.__APISID,null==b&&(b=(new Jh(window.document)).get(c?"SAPISID":"APISID")),b)){var c=c?"SAPISIDHASH":"APISIDHASH",d=String(r.location.href);return d&&b&&c?[c,jca(Sl(d),b,a||null)].join(" "):null}return null};
km=function(a){throw Error("Bad hint"+(a?": "+a:""));};
pca=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=lm[f],l=null;k?l=k(e,b,c,d):km("no hint processor for: "+f);l||km("failed to generate load url");b=l;c=b.match(mca);(d=b.match(nca))&&1===d.length&&oca.test(b)&&c&&1===c.length||km("failed sanity: "+a);return l};
sca=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=qca(a);rca.test(c)||km("invalid_callback");b=mm(b);d=d&&d.length?mm(d):null;return[(0,window.encodeURIComponent)(a.UH).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.Rq?"/am="+e(a.Rq):"",a.$u?"/rs="+e(a.$u):"",a.qy?"/t="+e(a.qy):"","/cb=",e(c)].join("")};
qca=function(a){"/"!==a.charAt(0)&&km("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))km("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),k=(0,window.decodeURIComponent)(f[0]),l=(0,window.decodeURIComponent)(f[1]);2==f.length&&k&&l&&(a[k]=a[k]||l)}b="/"+c.join("/");tca.test(b)||km("invalid_prefix");c=0;for(d=nm.length;c<d;++c)nm[c].test(b)&&
km("invalid_prefix");c=om(a,"k",!0);d=om(a,"am");e=om(a,"rs");a=om(a,"t");return{UH:b,version:c,Rq:d,$u:e,qy:a}};
mm=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");uca.test(e)&&b.push(e)}return b.join(",")};
om=function(a,b,c){a=a[b];!a&&c&&km("missing: "+b);if(a){if(vca.test(a))return a;km("invalid: "+b)}return null};
wca=function(){var a=bm();if(!a)throw Error("Bad hint");return a};
pm=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>eca.call(b,e)&&c.push(e)}return c};
tm=function(){var a=am.nonce;if(void 0!==a)return a&&a===String(a)&&a.match(qm)?a:am.nonce=null;var b=Tl(am,"us",[]);if(!b||!b.length)return am.nonce=null;for(var c=rm.getElementsByTagName(sm),d=0,e=c.length;d<e;++d){var f=c[d];if(f.src&&(a=String(f.getAttribute("nonce")||"")||null)){for(var k=0,l=b.length;k<l&&b[k]!==f.src;++k);if(k!==l&&a&&a===String(a)&&a.match(qm))return am.nonce=a}}return null};
xca=function(a){if("loading"!=rm.readyState)um(a);else{var b=tm(),c="";null!==b&&(c=' nonce="'+b+'"');rm.write("<"+sm+' src="'+(0,window.encodeURI)(a)+'"'+c+"></"+sm+">")}};
um=function(a){var b=rm.createElement(sm);b.setAttribute("src",a);a=tm();null!==a&&b.setAttribute("nonce",a);b.async="true";(a=rm.getElementsByTagName(sm)[0])?a.parentNode.insertBefore(b,a):(rm.head||rm.body||rm.documentElement).appendChild(b)};
yca=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<vm.length;d++){var e=vm[d][0],f=vm[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}};
zca=function(a,b,c){wm(function(){var c;c=b===bm()?Tl(xm,"_",Ul()):Ul();c=Tl(cm(b),"_",c);a(c)},c)};
zm=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);yca(a,c);var d=a?a.split(":"):[],e=c.h||wca(),f=Tl(am,"ah",Ul());if(f["::"]&&d.length){for(var k=[],l=null;l=d.shift();){var m=l.split("."),m=f[l]||f[m[1]&&"ns:"+m[0]||""]||e,n=k.length&&k[k.length-1]||null,q=n;n&&n.hint==m||(q={hint:m,features:[]},k.push(q));q.features.push(l)}var t=k.length;if(1<t){var w=c.callback;w&&(c.callback=function(){0==--t&&w()})}for(;d=k.shift();)ym(d.features,c,d.hint)}else ym(d||[],c,e)};
ym=function(a,b,c){function d(a,b){if(t)return 0;Am.clearTimeout(q);w.push.apply(w,A);var d=((xm||{}).config||{}).update;d?d(f):f&&Tl(am,"cu",[]).push(f);if(b){gm("me0",a,x);try{zca(b,c,n)}finally{gm("me1",a,x)}}return 1}
a=fca(a)||[];var e=b.callback,f=b.config,k=b.timeout,l=b.ontimeout,m=b.onerror,n=void 0;"function"==typeof m&&(n=m);var q=null,t=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=Tl(cm(c),"r",[]).sort(),w=Tl(cm(c),"L",[]).sort(),x=[].concat(m);0<k&&(q=Am.setTimeout(function(){t=!0;l()},k));
var A=pm(a,w);if(A.length){var A=pm(a,m),F=Tl(am,"CP",[]),I=F.length;F[I]=function(a){function b(){var a=F[I+1];a&&a()}
function c(b){F[I]=null;d(A,a)&&ica(function(){e&&e();b()})}
if(!a)return 0;gm("ml1",A,x);0<I&&F[I-1]?F[I]=function(){c(b)}:c(b)};
if(A.length){var K="loaded_"+am.I++;xm[K]=function(a){F[I](a);xm[K]=null};
a=pca(c,A,"gapi."+K,m);m.push.apply(m,A);gm("ml0",A,x);b.sync||Am.___gapisync?xca(a):um(a)}else F[I](dca)}else d(A)&&e&&e()};
wm=function(a,b){if(am.hee&&0<am.hel)try{return a()}catch(c){b&&b(c),am.hel--,zm("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}};
g.Em=function(a,b){oa(a);Bm();for(var c=b?Cm:Dm,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,q=f>>2,f=(f&3)<<4|l>>4,l=(l&15)<<2|n>>6,n=n&63;m||(n=64,k||(l=64));d.push(c[q],c[f],c[l],c[n])}return d.join("")};
Aca=function(a){var b="";Fm(a,function(a){b+=String.fromCharCode(a)});
return b};
Gm=function(a){var b=[];Fm(a,function(a){b.push(a)});
return b};
Fm=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=Hm[c];if(null!=e)return e;if(!D(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
Bm();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
Bm=function(){if(!Dm){Dm={};Hm={};Cm={};for(var a=0;65>a;a++)Dm[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),Hm[Dm[a]]=a,Cm[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(Hm["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
Jm=function(a){this.g=new If;a&&Im(this,a)};
Km=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ua(a):b.substr(0,1)+a};
Lm=function(a,b){a.g.set(Km(b),b)};
Im=function(a,b){for(var c=Mf(b),d=c.length,e=0;e<d;e++)Lm(a,c[e])};
Nm=function(a){this.g=a||Zl();Mm||(Mm=Bca(this.g))};
Bca=function(a){return(new g.ld(function(b){try{var c={gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b},d=ra(c)?{callback:c}:c||{};d._c&&d._c.jsl&&d._c.jsl.h||g.Zb(d,{_c:{jsl:{h:g.Zg("GAPI_HINT_PARAMS",void 0)}}});if(d.gapiHintOverride||g.Zg("GAPI_HINT_OVERRIDE")){var e=g.Dh(window.document.location.href).gapi_jsh;e&&g.Zb(d,{_c:{jsl:{h:e}}})}zm("client",d)}catch(f){eh(f)}})).then(function(){})};
Cca=function(a,b,c,d){var e={path:"/youtubei/"+a.g.innertubeApiVersion+"/"+b,headers:{"X-Goog-Visitor-Id":g.Zg("VISITOR_DATA")},method:"POST",body:g.tf(c)},f=(0,g.z)(a.B,a);Mm.then(function(){f();u("gapi.client.request")(e).execute(d||g.v)})};
Sm=function(a,b){Om[a.endpoint]=Om[a.endpoint]||[];var c=Om[a.endpoint];c.push(a.Lu);Pm[a.endpoint]=b;c.length>=(Number(g.Yl("web_logging_max_batch")||0)||20)?Qm():Rm()};
Qm=function(){g.ch(Tm);if(!g.Tb(Om)){for(var a in Om){var b=Um[a];if(!b){b=Pm[a];if(!b)continue;b=new b;Um[a]=b}var c=b.o();c.requestTimeMs=Math.round((0,g.Ok)());c[Dca[a]]=Om[a];b.A(a,c,{});delete Om[a]}g.Tb(Om)||Rm()}};
Rm=function(){g.ch(Tm);Tm=g.ah(Qm,g.Zg("LOGGING_BATCH_TIMEOUT",1E4))};
Vm=function(){this.g=Zl()};
Wm=function(a,b,c){var d={};d.eventTimeMs=Math.round(c||(0,g.Ok)());d[a]=b;g.Yl("web_gel_lact")&&(d.context={lastActivityMs:hk()});Sm({endpoint:"log_event",Lu:d},Vm)};
Zm=function(a,b,c){var d=Xm();a={csn:a,parentVisualElement:Wl(b),visualElements:(0,g.S)(c,function(a){return Wl(a)})};
Ym(d,{attachChild:a},void 0)};
an=function(a){var b=$m()||"",c=Xm();a=(0,g.S)(a,function(a){return Wl(a)});
Ym(c,{visibilityUpdate:{csn:b,visualElements:a}})};
Ym=function(a,b,c){b.eventTimeMs=Math.round((0,g.Ok)());b.lactMs=hk();c&&(b.clientData=Eca(c));Sm({endpoint:"log_interaction",Lu:b},a)};
Eca=function(a){var b={};a.analyticsChannelData&&(b.analyticsDatas=(0,g.S)(a.analyticsChannelData,function(a){return{tabName:a.tabName,cardName:a.cardName,isChannelScreen:a.isChannelScreen,insightId:a.insightId,externalChannelId:a.externalChannelId,externalContentOwnerId:a.externalContentOwnerId}}));
return{playbackData:{clientPlaybackNonce:a.clientPlaybackNonce},analyticsChannelData:b,externalLinkData:a.externalLinkData}};
Xm=function(){return g.Yl("enable_youtubei_innertube")?Vm:Nm};
bn=function(){var a=g.Zg("ROOT_VE_TYPE",void 0);return a?new Vl(void 0,a,void 0):null};
$m=function(){var a=g.Zg("client-screen-nonce",void 0);a||(a=g.Zg("EVENT_ID",void 0));return a};
g.cn=function(a,b,c){this.start=a;this.end=b;this.A=Fca++;a=c||{};this.Da=a.id||"";this.B=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.namespace=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.g=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start};
Gca=function(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6;case "ytp-time-marker":return Number.POSITIVE_INFINITY;default:return 0}};
g.dn=function(a,b){return a.start-b.start||a.B-b.B||a.A-b.A};
g.en=function(){g.L.call(this);this.ca=new Cf;g.M(this,this.ca)};
fn=function(a,b){g.en.call(this);this.logEvent=this.tb="";this.Z=b||"";this.loaded=this.F=!1;this.g=a;this.Z&&g.Ej("yt-html5-player-modules::"+this.Z)};
gn=function(a,b,c){for(var d=0;d<b.length;d++)b[d].namespace=a.tb;g.El(a.g,b,c)};
hn=function(a){g.Hl(a.g,a.tb,void 0)};
jn=function(a){g.Jl(a.g,a.tb)};
kn=function(a,b,c){var d={},e;for(e in b)d[a.tb+"_"+e]=b[e];b={};for(var f in c)b[a.tb+"_"+f]=c[f];a=g.Zk(a.g);g.va(a.N,d||null);g.va(a.J,b||null)};
g.mn=function(a){g.L.call(this);this.ua={};this.na={};this.element=ln(this,a)};
ln=function(a,b,c){if(na(b)){c=0;var d=g.Re(b[c++]);if(g.y(b[c])){var e=b[c++];if(e=nn(a,d,"class",e))on(a,d,"class",e),a.ua[e]=d}else if(na(b[c])){for(var f=b[c++],e=0;e<f.length;e++)a.ua[f[e]]=d;on(a,d,"class",f.join(" "))}for(;c<b.length;c++){var k=b[c];na(k)||k&&k.K?(e=ln(a,k),d.appendChild(e)):g.sa(k)?k.element?d.appendChild(k.element):pn(a,d,k):g.y(k)&&(k=nn(a,d,"child",k),null!=k&&d.appendChild(g.Te(k)))}}else{d=(c=c||"svg"==b.K)?window.document.createElementNS("http://www.w3.org/2000/svg",
b.K):g.Re(b.K);if(e=b.Y){if(e=nn(a,d,"class",e))on(a,d,"class",e),a.ua[e]=d}else if(f=b.ea){for(e=0;e<f.length;e++)a.ua[f[e]]=d;on(a,d,"class",f.join(" "))}if(f=b.T)for(var l=0,e=0;e<f.length;e++)if(k=f[e])if(g.y(k))k=nn(a,d,"child",k),null!=k&&d.appendChild(g.Te(k));else{var m=k,k=ln(a,m,c);d.appendChild(k);m.La&&(m=g.mn.g(),k.id=m,k=window.document.createElementNS("http://www.w3.org/2000/svg","use"),k.setAttribute("class","ytp-svg-shadow"),k.setAttributeNS("http://www.w3.org/1999/xlink","href",
"#"+m),Xe(d,k,l++))}(b=b.X)&&pn(a,d,b)}return d};
nn=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.na[d]=[b,c],null):d};
qn=function(a){return na(a)&&g.y(a[0])||g.sa(a)&&g.y(a.K)};
on=function(a,b,c,d){if("child"==c){g.We(b);if(!na(d)||qn(d))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];if(null!=f)if(!f.nodeType||1!=f.nodeType&&3!=f.nodeType)if(qn(f))c.push(ln(a,f));else if(f.element)c.push(f.element);else if(g.y(f)&&-1!=f.indexOf("\n"))for(var f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(g.Re("BR")),c.push(g.Te(f[k]));else c.push(g.Te(f));else c.push(f)}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"style"==c?b.style.cssText=d?d:"":null===d?b.removeAttribute(c):b.setAttribute(c,
d.toString())};
pn=function(a,b,c){for(var d in c){var e=c[d];null!=e&&on(a,b,d,g.y(e)?nn(a,b,d,e):e)}};
g.rn=function(a,b){a&&(a.style.display=b)};
sn=function(a,b){var c=oh("requestAnimationFrame",window);return g.ah(function(){c?c.call(window,a):a()},b||0)};
tn=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
g.W=function(a){g.mn.call(this,a);this.g=!0;this.O=[]};
g.un=function(a,b,c,d,e,f,k,l){g.W.call(this,["button",["ytp-button","ytp-sb"],["div","ytp-sb-subscribe",a],["div","ytp-sb-unsubscribe",b]]);a=this.ua["ytp-sb-subscribe"];b=this.ua["ytp-sb-unsubscribe"];c?(e&&g.O(this.element,"ytp-sb-subscribed"),f?(this.U(a,"click",function(){g.li("/subscription_ajax",{method:"POST",Bc:{action_create_subscription_to_channel:1,c:d},Sb:{feature:f}});l.ya("SUBSCRIBE")}),this.U(b,"click",function(){g.li("/subscription_ajax",{method:"POST",
Bc:{action_remove_subscriptions:1},Sb:{c:d}});l.ya("UNSUBSCRIBE")})):k&&(this.U(a,"click",function(){g.li("/subscription_service",{method:"POST",
Bc:{action_subscribe:1},Sb:{channel_ids:d,itct:k}});l.ya("SUBSCRIBE")}),this.U(b,"click",function(){g.li("/subscription_service",{method:"POST",
Bc:{action_unsubscribe:1},Sb:{channel_ids:d,itct:k}});l.ya("UNSUBSCRIBE")})),this.U(l,"SUBSCRIBE",function(){g.O(this.element,"ytp-sb-subscribed")}),this.U(l,"UNSUBSCRIBE",function(){g.Pd(this.element,"ytp-sb-subscribed")})):this.element.disabled=!0};
vn=function(a,b,c,d){this.videoData=a;this.g=b;this.reason=c;this.o=d};
yn=function(a){this.o=a;this.g=0;this.C=window.NaN;this.B=0;this.xa=[];this.A=wn(this.o);this.G=g.xn(this.o);this.D=this.F=0};
zn=function(a){a.A.startTime=a.B;a.A.endTime=a.g;a.xa.length&&g.Va(a.xa).isEmpty()?a.xa[a.xa.length-1]=a.A:a.xa.length&&a.A.isEmpty()||a.xa.push(a.A);var b=g.xn(a.o),c=a.o.g.experiments.o("html5_min_vss_watchtime_to_cut_secs_redux");if(c){var d=b-a.G,e;e=a.A;e=(e.endTime-e.startTime)/e.playbackRate;var f=a.o.g.experiments.o("html5_max_vss_watchtime_ratio");e>c&&e>d*f&&(c=Wb(a.A),a.A.endTime=a.A.startTime+.001,c.startTime=c.endTime-.001,a.xa.push(c))}a.F+=a.g-a.B;a.A=wn(a.o);a.B=a.g;a.G=b};
An=function(a){return a.F+a.o.o()-a.B};
Bn=function(a){a.xa.length&&a.g==a.B||zn(a);var b=a.xa;a.xa=[];return b};
Cn=function(a,b,c){c-=a.C;return b==a.g&&.5<c};
Dn=function(a,b){this.g=b;this.A=!1;this.videoData=a};
En=function(a,b,c){Dn.call(this,b,c);this.B=a};
Gn=function(a){g.L.call(this);this.g=a;this.o={};this.ga=1;this.N=window.NaN;this.A="N";this.V=this.B=0;this.G=this.ba="";this.P=0;this.ca=-1;this.F=this.H=0;this.L=this.D=!1;this.da=[];this.C=null;this.O=/^rq/.test(this.g.videoData.clientPlaybackNonce);(a=window.navigator.getBattery?window.navigator.getBattery():null)&&a.then&&a.then((0,g.z)(function(a){this.C=a},this));
this.J=(this.g.g.experiments.o("html5_disable_qoe_percentage")||0)>Math.floor(100*Math.random());this.g.g.experiments.g("html5_qoe_unstarted_in_initialization")&&g.Fn(this,0,"vps",["N"])};
g.Fn=function(a,b,c,d){var e=a.o[c];e||(e=[],a.o[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
In=function(a,b){var c=0<=b?b:g.xn(a.g),d=a.g.D();if(!(0,window.isNaN)(a.Z)&&!(0,window.isNaN)(d.B)){var e=d.B-a.Z;0<e&&g.Fn(a,c,"bwm",[e,(d.F-a.fa).toFixed(3)])}a.Z=d.B;a.fa=d.F;(0,window.isNaN)(d.o)||g.Fn(a,c,"bwe",[d.o.toFixed(0)]);a.O&&d.g&&a.Kc("bwinfo",d.g);(0,window.isNaN)(d.A)||(e=d.A,d.C<e&&(e=d.C),g.Fn(a,c,"bh",[e.toFixed(3)]));a.C&&g.Fn(a,c,"bat",[a.C.level,a.C.charging?"1":"0"]);e=oj(a.g.g);a.ca!=e&&(g.Fn(a,c,"vis",[e]),a.ca=e);g.Fn(a,c,"cmt",[a.g.o().toFixed(3)]);(e=Hn(a.g))&&e!=a.P&&
(g.Fn(a,c,"conn",[e]),a.P=e);0<d.D&&g.Fn(a,c,"e2el",[d.D,d.H.toFixed(3),d.G.toFixed(3),d.L.toFixed(3),d.J.toFixed(3)]);null!==a.g.videoData.Lb&&(a.o.acc=[a.g.videoData.Lb.join(":")])};
Jn=function(a){var b={event:"streamingstats"};if(a.g.videoData.A){b.fmt=Bi(a.g.videoData.A);var c=a.g.videoData.D;c&&Bi(c)!=b.fmt&&(b.afmt=Bi(c))}b.cpn=a.g.videoData.clientPlaybackNonce;b.ei=a.g.videoData.eventId;b.el=a.g.g.g;b.docid=a.g.videoData.videoId;b.ns=a.g.g.Ja;b.fexp=a.g.g.experiments.experimentIds.toString();b.cl=a.g.g.ab;a.g.videoData.adFormat&&(b.adformat=a.g.videoData.adFormat);a.g.videoData.o&&(b.live=a.g.videoData.P?"dvr":"live");a.g.g.experiments.g("html5_qoe_seq")?b.seq=a.ga++:b.html5=
"1";return b};
Kn=function(a,b){a.g.g.experiments.g("html5_ajax_qoe_retry")?g.vd(si(b,{},3,500),g.v):g.oi(b)};
Ln=function(a){var b=0,c;for(c in a.o)b+=c.length+we(a.o[c],function(a,b){return a+b.length},0);
1E3<b&&(new g.Id(a.Oi,0,a)).start()};
Mn=function(a,b,c,d){var e=a.g.o();c=[c,e.toFixed(3)];d&&c.push(d);g.Fn(a,b,"error",c)};
Nn=function(a,b){g.Fn(a,g.xn(a.g),"lra",[b]);a.Kc("live-readahead-seconds",b.toString())};
Ica=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=Hca[Uk(a)];"B"==b&&g.T(a,4)&&(b="PB");return b};
On=function(a,b){var c=a.o.cat||[];c.push(b);a.o.cat=c};
Qn=function(a,b,c,d){this.wa=b;this.segments=[];this.experimentIds=[];this.O=this.ib=this.L=this.va=this.ab=this.ca=this.autoplay=this.autonav=!1;this.Ta="yt";this.P=this.o=this.F=null;this.da=!1;this.D="watchtime"==c;this.C="playback"==c;this.J="delayplay"==c;this.H="atr"==c;this.fb="engage"==c;this.N=!1;this.pa=this.H?"/api/stats/"+c:"//"+b.Dg+"/api/stats/"+c;d&&(this.L=d.fs,d.rtn&&(this.o=d.rtn),this.D?(this.tc=d.state,0<d.rti&&(this.F=d.rti)):(this.qb=d.mos,this.Db=d.volume,d.at&&(this.adType=
d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.na=d.inview),d.size&&(this.la=d.size));b.experiments.g("legacy_autoplay_flag")&&(this.autoplay=b.ca);this.Lb=b.Na;this.Nb=Wb(b.A);this.ca=b.Vk;this.Xa=b.pa;this.Rb=b.g;this.experimentIds=b.experiments.experimentIds;this.ob=b.Ua;this.Ta=b.Ja;this.region=b.region;this.uc=b.ab?b.ab.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Ib=hk();this.N=b.Xa;this.G=a.oauthToken||this.G;this.adFormat=a.adFormat;this.autoplay=Pn(this.wa,
a,this.L);this.autonav=a.hd||this.autonav;this.P=a.ve;this.clientPlaybackNonce=a.clientPlaybackNonce;this.ba=a.vssCredentialsToken;this.Ua=a.wi;this.mdxEnvironment=a.mdxEnvironment;this.A=a.re;this.ra=a.pa;a.A&&(this.Oa=Bi(a.A),a.D&&Bi(a.D)!=this.Oa&&(this.Z=Bi(a.D)));this.O=a.Ja;this.ac=a.te;a.o&&(this.sb=a.P?"dvr":"live");this.bc=a.Di;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.fi||a.playlistId;this.Ia=a.Ib;this.Ja=a.Oa;this.Fc=a.Pq;this.subscribed=a.subscribed;this.videoId=
a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.dc=a.vD;this.referrer=a.referrer;this.Aa=a.Oh||a.Nq;this.Na=a.SD};
Rn=function(a,b){if(a.H)return null;var c=a.G&&Ih(),d=a.N&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.G);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,cd:b}};
Jca=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=g.ag(a,b);c?g.li(a,c):g.oi(a)};
Tn=function(a){var b={ns:a.Ta,el:a.Rb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.g(a.A),plid:a.playbackId,ei:a.eventId,fmt:a.Oa,fs:a.L?"1":"0",rt:a.g(a.Eb),of:a.dc,adformat:a.adFormat,content_v:a.Lb,euri:a.Xa,lact:a.Ib,live:a.sb,cl:a.uc,mos:a.qb,osid:a.osid,state:a.tc,vm:a.videoMetadata,volume:a.Db};a.subscribed&&(b.subscribed="1");g.va(b,a.Nb);a.autonav&&(b.autonav="1");if(a.wa.experiments.g("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||a.O)b.autoplay=
"1";a.ca&&(b.dni="1");a.va&&(b["final"]="1");a.O&&(b.splay="1");a.ra&&(b.delay=a.ra);a.ob&&(b.hl=a.ob);a.region&&(b.cr=a.region);g.p(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);g.p(a.ga)&&(b.len=a.g(a.ga));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.o&&(b.rtn=a.g(a.o));a.Aa&&(b.feature=a.Aa);a.playlistId&&(b.list=a.playlistId);a.Ia&&(b.ctrl=a.Ia);a.Ja&&(b.ytr=a.Ja);a.Fc&&(b.ssrt="1");a.Z&&(b.afmt=a.Z);a.fa&&(b.lio=a.g(a.fa));a.D?(b.idpj=a.ac,b.ldpj=a.bc,
null!=a.F&&(b.rti=a.g(a.F))):g.p(a.adType)&&(b.at=a.adType);(a.C||a.J)&&a.P&&(b.tst=a.P);a.la&&(a.C||a.J)&&(b.size=a.la);null!=a.na&&(a.C||a.J)&&(b.inview=a.g(a.na));a.D&&(b.st=Sn(a,(0,g.S)(a.segments,function(a){return a.startTime})),b.et=Sn(a,(0,g.S)(a.segments,function(a){return a.endTime})),ph(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=Sn(a,(0,g.S)(a.segments,function(a){return a.playbackRate}))));
ph(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=Sn(a,(0,g.S)(a.segments,function(a){return a.visibilityState})));
ph(a.segments,function(a){return 0!=a.connectionType})&&(b.conn=Sn(a,(0,g.S)(a.segments,function(a){return a.connectionType})));
ph(a.segments,function(a){return 0!=a.Ig})&&(b.blo=Sn(a,(0,g.S)(a.segments,function(a){return a.Ig})));
ph(a.segments,function(a){return"-"!=a.zm})&&(b.cc=(0,g.S)(a.segments,function(a){return a.zm}).join(","));
if(ph(a.segments,function(a){return!!a.tm})){var c="au";
a.C&&(c="au_d");b[c]=(0,g.S)(a.segments,function(a){return a.tm}).join(",")}Ih()&&a.ba&&(b.ctt=a.ba,b.cttype=a.Ua,b.mdx_environment=a.mdxEnvironment);
a.fb&&(b.etype=g.p(a.B)?a.B:0);a.Na&&(b.uoo=a.Na);return b};
Sn=function(a,b){return(0,g.S)(b,a.g).join(",")};
Un=function(a){g.L.call(this);this.g=a;this.o=new Gn(a);g.M(this,this.o);this.A=new yn(a);this.D="paused";this.F=window.NaN;this.H=[10,10,10,40];this.J=this.G=0;this.N=this.P=this.O=this.L=this.B=!1;this.C=window.NaN;this.V=new En(this.A,this.g.videoData,this.g.g)};
Vn=function(a,b,c){var d=g.xn(a.g);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.H[a.G];a.G+1<a.H.length&&a.G++;c+=e;d=1E3*(c-d);a.F=g.ah((0,g.z)(a.XE,a,c,b),d);return c};
Yn=function(a,b){var c=Wn(a.g);g.va(c,{state:a.D});c=new Qn(a.g.videoData,a.g.g,b,c);c.A=a.g.o();if(!a.g.videoData.o)c.ga=a.g.C();else if(a.g.videoData.g){var d=Xn(a.g.videoData.g,c.A);d&&(c.fa=d-c.A)}c.Eb=g.xn(a.g);c.segments=[wn(a.g)];return c};
Zn=function(a,b){var c=Yn(a,"watchtime");c.segments=b;c.A=a.A.g;return c};
$n=function(a){a.A.update();return Zn(a,Bn(a.A))};
co=function(a){a.g.videoData.remarketingUrl&&!a.P&&(ao(a,a.g.videoData.remarketingUrl),a.P=!0);a.g.videoData.ppvRemarketingUrl&&!a.N&&(ao(a,a.g.videoData.ppvRemarketingUrl),a.N=!0);bo(a)};
fo=function(a,b){if(!a.isDisposed()){g.T(b.state,2)?(a.D="paused",0<eo(b,2)&&a.B&&$n(a).send()):g.T(b.state,8)?(a.D="playing",a.B&&(0,window.isNaN)(a.F)&&Vn(a,!1)):a.D="paused";var c=a.o,d=b.state,e=g.xn(c.g),f=Ica(b.state);if(f!=c.A){if(!(e<c.B)){if("PL"==c.A)c.F+=e-c.B;else if("B"==c.A&&c.D&&(c.D=!1,c.H+=e-c.B,!c.L&&10<=c.H&&180>=c.F)){c.g.G();if(!c.isDisposed()&&!c.J){var k=Jn(c);k.qoealert="1";k=g.ag(c.g.g.tf,k);Kn(c,k)}c.L=!0}"B"!=f||"PL"!=c.A&&"PB"!=c.A||(c.D=!0);c.B=e}"B"==f&&"PL"==c.A||c.O?
In(c,e):g.Fn(c,e,"cmt",[c.g.o().toFixed(3)]);g.Fn(c,e,"vps",[f]);c.A=f;c.B=e}g.T(d,128)&&Mn(c,e,d.g.errorCode,d.g.errorDetail);(g.T(d,2)||g.T(d,128))&&c.Oi(e);Ln(c);a.C&&g.T(b.state,128)&&(a.Yk("error-100"),g.ch(a.C))}};
go=function(a){a.C=g.bh((0,g.z)(a.Yk,a,"heartbeat"),3E4)};
bo=function(a){a.g.videoData.F.eventLabel=a.g.g.g;a.g.videoData.F.playerStyle=a.g.g.o;a.g.videoData.Dd&&(a.g.videoData.F.feature="pyv");a.g.videoData.F.vid=a.g.videoData.videoId;a.g.videoData.F.isAd=!("adunit"!=a.g.g.g&&!a.g.videoData.Dd)};
ao=function(a,b,c){a.g.g.Xa&&a.g.videoData.visitorData&&Hh(b)?g.li(b,{cd:c,headers:{"X-Goog-Visitor-Id":a.g.videoData.visitorData}}):g.oi(b,c)};
io=function(a,b){var c=g.Zg("VALID_SESSION_TEMPDATA_DOMAINS",[]),d=g.Sf(window.location.href);d&&c.push(d);d=g.Sf(a);if(g.ab(c,d)||!d&&g.za(a,"/"))if(g.Yl("autoescape_tempdata_url")&&(c=window.document.createElement("a"),Be(c,a),a=c.href),a&&(c=g.Qf(a),c=g.Pf(null,null,null,null,c[5],c[6],c[7]),d=c.indexOf("#"),c=0>d?c:c.substr(0,d))){if(b.itct||b.ved)b.csn=b.csn||$m();c="ST-"+Oa(c).toString(36);d=b?g.Zf(b):"";ho.set(""+c,d,5,"/","youtube.com");b&&(c=b.itct||b.ved,d=u("yt.logging.screen.storeParentElement"),
c&&d&&d(new Vl(c)))}};
g.jo=function(a){var b,c;b=void 0===b?{}:b;c=void 0===c?"":c;var d=window.location;a=g.ag(a,b)+c;a=a instanceof ce?a:fe(a);d.href=de(a)};
ko=function(a){(window.ytspf||{}).enabled?window.spf.navigate(a):g.jo(a)};
lo=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.Zg("EVENT_ID");d&&(b.ei||(b.ei=d));b&&io(a,b);if(c)return!1;ko(a);return!0};
g.mo=function(a,b,c){c&&io(a,c);window.open(a,b||Oa(a).toString(36))};
no=function(a){var b={};b.startMs=a.startMs;b.impressionUrls=a.impressionUrls;b.skip=a.skip||!1;b.visualElement=new Vl(a.trackingParams);b.elements=(0,g.S)(a.elements||[],function(a){var b={};b.id=a.id;b.type=a.type;b.title=a.title;b.metadata=a.metadata;b.callToAction=a.callToAction;b.imageUrl=a.imageUrl;b.Lm=a.displayImages;b.Ej=a.animatedDisplayImages;b.Ps=a.iconUrl;b.left=a.left;b.width=a.width;b.top=a.top;b.aspectRatio=a.aspectRatio;b.startMs=a.startMs;b.endMs=a.endMs;b.videoDuration=a.videoDuration;
b.playlistLength=a.playlistLength;b.channelId=a.channelId;b.htmlBlob=a.htmlBlob;b.subscribeButton=a.subscribeButton;b.subscribersText=a.subscribersText;b.Un=a.isSubscribe;b.targetUrl=a.targetUrl;b.Ci="WEBSITE"==b.type;b.dd=a.sessionData||[];b.Wi=a.targetTab;b.Ph=a.accessibilityStr;b.rD=a.isPlaceholder;b.impressionUrls=a.impressionUrls;b.Os=a.hoverUrls;b.vU=a.dismissUrls;b.clickUrls=a.clickUrls;b.visualElement=new Vl(b.dd.itct);return b});
return b};
oo=function(a,b){function c(a){return a.baseUrl}
function d(a){if(a&&a.runs)return(0,g.S)(a.runs,function(a){return a.text}).join("")}
function e(a){var b=[];a.videoId&&b.push("v="+a.videoId);a.playlistId&&b.push("list="+a.playlistId);a.startTimeSeconds&&b.push("t="+a.startTimeSeconds);return"/watch?"+b.join("&")}
var f={};f.startMs=(0,window.parseInt)(a.startMs,10);f.impressionUrls=(0,g.S)(a.impressionUrls||[],c);f.skip=a.skipEndscreen;f.visualElement=new Vl(a.trackingParams);f.elements=(0,g.S)(a.elements||[],function(f,l){var k=f.endscreenElementRenderer,n={},q=k.style,t=k.endpoint;n.id="element-"+l;n.type=q;n.title=d(k.title);n.metadata=d(k.metadata);n.callToAction=d(k.callToAction);n.Lm=k.image;n.Ej=k.animatedImage;n.left=(0,window.parseFloat)(k.left);n.width=(0,window.parseFloat)(k.width);n.top=(0,window.parseFloat)(k.top);
n.aspectRatio=(0,window.parseFloat)(k.aspectRatio);n.startMs=(0,window.parseInt)(k.startMs,10);n.endMs=(0,window.parseInt)(k.endMs,10);n.dd={itct:t.click_tracking_params};n.Ph=k.title.accessibility.accessibilityData.label;n.impressionUrls=(0,g.S)(k.impressionUrls||[],c);n.Os=(0,g.S)(k.hovercardShowUrls||[],c);n.clickUrls=(0,g.S)(t.loggingUrls||[],c);n.visualElement=new Vl(a.trackingParams);"VIDEO"==q?(n.targetUrl=e(t.watchEndpoint),n.Ci=!1,n.Wi=b,n.videoDuration=d(k.videoDuration)):"PLAYLIST"==q?
(n.targetUrl=e(t.watchEndpoint),n.Ci=!1,n.Wi=b,n.playlistLength=d(k.playlistLength)):"CHANNEL"==q?(q=t.browseEndpoint.browseId,n.channelId=q,n.targetUrl="/channel/"+q,n.Ci=!1,n.Wi="new",n.Un=!!k.hovercardButton,n.Un?(n.htmlBlob=k.htmlBlob,k=k.hovercardButton.subscribeButtonRenderer,n.subscribeButton={subscribed:k.subscribed,feature:"endscreen",unsubscribeText:d(k.unsubscribeButtonText)+" "+d(k.subscriberCountWithSubscribeText),subscribeText:d(k.unsubscribedButtonText)+" "+d(k.subscriberCountText),
enabled:k.enabled}):n.subscribersText=d(k.subscribersText)):"WEBSITE"==q&&(n.targetUrl=t.urlEndpoint.url,n.Ci=!0,n.Wi="new",n.Ps=k.icon.thumbnails[0].url);return n});
return f};
po=function(a){fn.call(this,a);this.tb="creatorendscreen";this.o=null;this.G=!1;this.B=null;this.A={};this.D={};this.C=null;this.L=!1;this.O=null;this.N=g.V(this.g).experiments.g("enable_creator_endscreen_moving_thumbs_on_hover");this.H=[];this.V=g.V(this.g).experiments.g("enable_creator_endscreen_html5_renderers");a=g.V(a).g;this.P="embedded"==a||"profilepage"==a;this.J=new Ql(null)};
Kca=function(a){return qo(a)?new po(a):null};
qo=function(a){return"3"==g.V(a).B?!1:ro(g.V(a).o)?!0:null!=so(a.getVideoData())};
ro=function(a){return"creator-endscreen-editor"===a};
so=function(a){if(!a)return null;var b=a.C.iv_endscreen_url;b||(b=u("endscreen.endscreen_url_renderer.url",a.la));return b};
to=function(a,b){hn(a);a.C&&(a.C.dispose(),a.C=null);for(var c in a.A){var d=a.A[c];d.dispose()}a.A={};a.D={};0<a.H.length&&(a.H.forEach(function(a){a.dispose()}),a.H.length=0);
if((a.o=b)&&b.elements){Lca(a);c=[];d=new g.cn(b.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen"});c.push(d);a.C=new g.W(["div","ytp-ce-shadow"]);g.Kl(a.g,a.C.element,5);for(var e=0;e<b.elements.length;++e){var f=b.elements[e],d=Mca(a,f);a.A[f.id]=d;a.D[f.id]=f;g.Kl(a.g,d.element,5);var k=new g.cn(f.startMs,f.endMs,{id:"ytp-ce-element-"+f.id});c.push(k);Nca(a,d,f)}gn(a,c);a.rp()}};
Lca=function(a){var b=bn();b&&Zm($m()||"",b,[a.o.visualElement])};
Mca=function(a,b){var c=null;switch(b.type){case "VIDEO":c=["div",["ytp-ce-element","ytp-ce-video"],{tabindex:0,"aria-label":b.Ph,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",uo(vo(a,b,!1)),["div","ytp-ce-covering-animated-image",uo(vo(a,b,!0))]],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:b.targetUrl,tabindex:"-1"},["div",["ytp-ce-video-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],{dir:Rl(a.J,b.title||"")},b.title],["div","ytp-ce-video-duration",
b.videoDuration]]];c=new g.W(c);break;case "PLAYLIST":c=["div",["ytp-ce-element","ytp-ce-playlist"],{tabindex:0,"aria-label":b.Ph,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",uo(vo(a,b,!1)),["div","ytp-ce-covering-animated-image",uo(vo(a,b,!0))]],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:b.targetUrl,tabindex:"-1"},["div",["ytp-ce-playlist-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],{dir:Rl(a.J,b.title||"")},b.title],["div","ytp-ce-playlist-count",
["div","ytp-ce-playlist-icon"],["div","ytp-ce-playlist-count-text",b.playlistLength]]]];c=new g.W(c);break;case "CHANNEL":var c=["div",["ytp-ce-element","ytp-ce-channel",b.Un?"ytp-ce-channel-this":"ytp-ce-channel-that"],{tabindex:0,"aria-label":b.Ph,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-hider"],["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",
["div","ytp-ce-expanding-overlay-body-padding",["a",["ytp-ce-channel-title","ytp-ce-link"],b.title,{href:b.targetUrl,target:"_blank",tabindex:"-1",dir:Rl(a.J,b.title||"")}],b.htmlBlob||b.subscribeButton?["div","ytp-ce-subscribe-container",["div","ytp-ce-channel-subscribe"]]:"",b.subscribersText?["div","ytp-ce-channel-subscribers-text",b.subscribersText]:"",b.metadata?["div",["ytp-ce-channel-metadata","yt-ui-ellipsis","yt-ui-ellipsis-3"],b.metadata]:""]]]],["div","ytp-ce-expanding-image",uo(vo(a,b,
!1))]],c=new g.W(c),d=g.Ge("div","ytp-ce-channel-subscribe",c.element)[0];if(b.subscribeButton){g.O(d,"ytp-ce-subscribe-button");var e=new g.un(b.subscribeButton.subscribeText,b.subscribeButton.unsubscribeText,b.subscribeButton.enabled,b.channelId,!!b.subscribeButton.subscribed,b.subscribeButton.feature,null,a.g);d.appendChild(e.element);a.H.push(e)}else b.htmlBlob&&zg(d,b.htmlBlob);break;case "WEBSITE":c=["div",["ytp-ce-element","ytp-ce-website"],{tabindex:0,"aria-label":b.Ph,"aria-hidden":!0},["div",
"ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-hider"],["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["div","ytp-ce-website-title",{dir:Rl(a.J,b.title||"")},b.title],["div","ytp-ce-website-metadata",b.metadata],["a",["ytp-ce-website-goto","ytp-ce-link"],b.callToAction,{href:b.targetUrl,target:"_blank",tabindex:"-1"}]]]]],["div",
"ytp-ce-expanding-image",uo(vo(a,b,!1))],["div","ytp-ce-expanding-icon",uo(b.Ps)]],c=new g.W(c)}b.rD&&g.O(c.element,"ytp-ce-placeholder");return c};
wo=function(a,b,c){a.N&&(a=Ie("ytp-ce-covering-animated-image",b.element))&&(a.style.display=c?"block":"none")};
uo=function(a){return a?{style:"background-image: url("+a+")"}:{}};
vo=function(a,b,c){var d;b.Lm&&(d=b.Lm.thumbnails);!ro(g.V(a.g).o)&&a.O&&b.Ej&&b.Ej.thumbnails&&(!a.N||c)&&(d=b.Ej.thumbnails);return d?d[d.length-1].url:null};
Nca=function(a,b,c){b.S("mouseenter",(0,g.z)(a.qp,a,b,c));b.S("mouseleave",(0,g.z)(a.Pw,a,b,c));b.S("click",(0,g.z)(function(a){g.O(a.element,"ytp-ce-element-hover")},a,b));
b.S("click",(0,g.z)(a.gu,a,c));b.S("keypress",(0,g.z)(a.gu,a,c));b.S("focus",(0,g.z)(function(a,b){g.O(a.element,"ytp-ce-force-expand");this.qp(a,b)},a,b,c));
b.S("blur",(0,g.z)(function(a,b){g.Pd(a.element,"ytp-ce-force-expand");this.Pw(a,b)},a,b,c));
b.S("touchstart",(0,g.z)(a.qp,a,b,c));var d=Ie("ytp-ce-expanding-overlay-hider",b.element);d&&b.U(d,"touchstart",function(a){a=a||window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();g.Pd(b.element,"ytp-ce-element-hover")});
var e=(0,g.z)(function(a,b,c){c=$e(c);(0,g.H)(c,function(c){e(c);kf(c)&&(a.U(c,"focus",(0,g.z)(function(a,b){g.O(a.element,"ytp-ce-force-expand");xo(this,b.id,!0)},this,a,b)),a.U(c,"click",(0,g.z)(function(a,b){g.O(a.element,"ytp-ce-force-expand");
xo(this,b.id,!0);this.L=!0},this,a,b)),a.U(c,"blur",(0,g.z)(function(a,b){this.L?(this.L=!1,a.element.focus()):(g.Pd(a.element,"ytp-ce-force-expand"),xo(this,b.id,!1))},this,a,b)))},this)},a,b,c);
e(b.element)};
xo=function(a,b,c){g.Rd(a.C.element,"ytp-ce-shadow-show",c);for(var d in a.A)d!=b&&g.Rd(a.A[d].element,"ytp-ce-element-shadow-show",c)};
yo=function(a,b,c){function d(){k||(f++,f==e.length&&(l.stop(),c&&c()))}
if(!b||ro(g.V(a.g).o))c&&c();else{var e=Oca(a,b),f=0,k=!1,l=new g.Id(function(){k=!0;c&&c()},1E3,a);
l.start();for(a=0;a<e.length;a++)g.oi(e[a],d)}};
zo=function(a,b,c){yo(a,b.clickUrls,c);b.Ci&&Ym(Xm(),{click:{csn:$m()||"",visualElement:Wl(b.visualElement)}},void 0)};
Oca=function(a,b){for(var c=a.g.getVideoData().clientPlaybackNonce,d=a.g.getCurrentTime().toFixed(2),c={CPN:c,AD_CPN:c,MT:d},d=[],e=0;e<b.length;e++)d.push(Pca(b[e],c));return d};
Pca=function(a,b){return a.replace(/%5B[a-zA-Z_:]+%5D|\[[a-zA-Z_:]+\]/g,function(a){var c=(0,window.unescape)(a),c=c.substring(1,c.length-1);return b[c]?(0,window.escape)(b[c]):a})};
Qca=function(a,b){var c=new window.Image;c.onload=(0,g.z)(function(){this.O=0<c.width&&0<c.height;b()},a);
c.onerror=(0,g.z)(function(){this.O=!1;b()},a);
c.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};
Rca=function(){if(!g.Me)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
Co=function(a,b){if(b&&!a)throw Error("Can't create document with namespace and no root tag");if(window.document.implementation&&window.document.implementation.createDocument)return window.document.implementation.createDocument(b||"",a||"",null);if(Ao){var c=Bo();if(c)return a&&c.appendChild(c.createNode(1,a,b||"")),c}throw Error("Your browser does not support creating new documents");};
g.Do=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(Ao){var b=Bo();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
Eo=function(a){var b=a.xml;if(b)return b;if("undefined"!=typeof window.XMLSerializer)return(new window.XMLSerializer).serializeToString(a);throw Error("Your browser does not support serializing XML documents");};
Fo=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=De(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=De(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
Bo=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}return a};
Go=function(a){g.L.call(this);this.B=a;this.o={}};
Io=function(a,b,c,d,e,f){Ho(a,b,c,d,e,f)};
Ho=function(a,b,c,d,e,f){na(c)||(c&&(Jo[0]=c.toString()),c=Jo);for(var k=0;k<c.length;k++){var l=Ec(b,c[k],d||a.handleEvent,e||!1,f||a.B||a);if(!l)break;a.o[l.key]=l}return a};
Lo=function(a,b,c,d){Ko(a,b,c,d,void 0)};
Mo=function(a,b,c,d,e){Ko(a,b,c,d,!1,e)};
Ko=function(a,b,c,d,e,f){if(na(c))for(var k=0;k<c.length;k++)Ko(a,b,c[k],d,e,f);else(b=Mc(b,c,d||a.handleEvent,e,f||a.B||a))&&(a.o[b.key]=b)};
No=function(a){g.Eb(a.o,function(a,c){this.o.hasOwnProperty(c)&&Oc(a)},a);
a.o={}};
Oo=function(a){this.o=a||window;this.g=[]};
Sca=function(a,b,c){c=(0,g.z)(c,a.o);b=Xj(b,"mouseleave",c);a.g.push(b);return b};
Tca=function(a,b,c,d){c=(0,g.z)(c,d||a.o);b=Zba(b,c);a.g.push(b)};
Po=function(a){g.Wj(a.g);a.g.length=0};
Qo=function(a,b,c){g.L.call(this);this.Da=null;this.A=!1;this.C=a;this.B=c;this.g=b||window;this.o=(0,g.z)(this.CB,this)};
Ro=function(a){a=a.g;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
So=function(a){a=a.g;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
Wo=function(a){a=ua(a);delete To[a];g.Tb(To)&&Vo&&Vo.stop()};
Xo=function(){Vo||(Vo=new g.Id(function(){Uca()},20));
var a=Vo;a.isActive()||a.start()};
Uca=function(){var a=(0,g.G)();g.Eb(To,function(b){Yo(b,a)});
g.Tb(To)||Xo()};
Zo=function(){N.call(this);this.g=0;this.endTime=this.startTime=null};
$o=function(a,b,c,d){Zo.call(this);if(!na(a)||!na(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.A=a;this.G=b;this.duration=c;this.D=d;this.o=[];this.progress=this.F=0;this.C=null};
Yo=function(a,b){b<a.startTime&&(a.endTime=b+a.endTime-a.startTime,a.startTime=b);a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<a.progress&&(a.progress=1);a.F=1E3/(b-a.C);a.C=b;ap(a,a.progress);1==a.progress?(a.g=0,Wo(a),a.cd(),a.Ji()):a.gb()&&a.ao()};
ap=function(a,b){ra(a.D)&&(b=a.D(b));a.o=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.o[c]=(a.G[c]-a.A[c])*b+a.A[c]};
bp=function(a,b){ac.call(this,a);this.x=b.o[0];this.y=b.o[1];this.z=b.o[2];this.duration=b.duration;this.progress=b.progress;this.fps=b.F;this.state=b.g};
Vca=function(a){return Math.pow(a,3)};
Wca=function(a){return 3*a*a-2*a*a*a};
Xca=function(){this.g=[];this.o=g.dn};
cp=function(a,b){for(var c=[],d=0;d<a.g.length;++d){var e=a.g[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c};
Yca=function(a){return a.g.slice(dp(a,0x7ffffffffffff),a.g.length)};
dp=function(a,b){var c=tb(a.g,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
ep=function(a,b){for(var c=void 0,d=0;d<a.g.length;d++){var e=a.g[d];e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end);if(e.start>b&&(void 0==c||e.start<c)){c=e.start;break}}return c};
fp=function(a,b,c,d){g.L.call(this);this.B=window.NaN;this.G=!1;this.F=null;this.H=this.J=this.Qf=!1;this.V=a;this.P=b;this.L=c;this.N=d;this.O=new g.Id(this.A,250,this);g.M(this,this.O);this.C=new g.Id(this.A,0,this);g.M(this,this.C);this.o=[];this.g=new Xca};
gp=function(a,b){a.A();var c=a.g;if(1<b.length&&b.length>c.g.length)c.g=c.g.concat(b),c.g.sort(c.o);else for(var d=0;d<b.length;d++){var e=b[d];!c.g.length||0<c.o(e,c.g[c.g.length-1])?c.g.push(e):xb(c.g,e,c.o)}a.B=window.NaN;a.A()};
hp=function(a){a.Qf=!0;a.A()};
Zca=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.o.indexOf(e)&&(a.o.push(e),c.push([1,e]))}return c};
$ca=function(a,b){var c=[];if(!b.length)return c;b.sort(g.dn);for(var d=0;d<b.length;d++){var e=b[d];a.o.splice(a.o.indexOf(e),1);c.push([2,e])}return c};
ip=function(a){return na(a)&&a.length?a[0]:a};
jp=function(a){var b=/.+/;return g.y(a)&&null!=b&&null!=a&&a.match(b)?a:""};
kp=function(a,b){if(null==a)return b;var c=(0,window.parseInt)(a,0);if((0,window.isNaN)(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c};
lp=function(a){return g.y(a)?a:""};
mp=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};
np=function(a,b){return"true"==a||"false"==a?"true"==a:b};
op=function(a,b){return g.y(a)?(0,window.parseFloat)(a):b};
pp=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return g.te(a,b,c);if(a>=b&&a<=c)return a}return e};
ada=function(a){if(null==a)return 0;if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;(0,g.H)(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b};
qp=function(a,b){if(null==a)return null;if(oa(a)){var c=[];(0,g.H)(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]};
bda=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new xf((0,window.parseFloat)(a.top),(0,window.parseFloat)(a.right),(0,window.parseFloat)(a.bottom),(0,window.parseFloat)(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null};
cda=function(a){function b(a){return(0,g.Od)(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)};
dda=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.g=d};
rp=function(a){if(!a)return null;var b=lp(a.value);if(!b)return null;var c=mp(a.target,eda,"current");return null==c?null:new dda(b,c,np(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};
sp=function(a){return a.value?a.value:null};
up=function(a){var b;(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=tp(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1};
tp=function(a){a=a.replace(/^(https?:)?\/\//,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};
fda=function(a){a=sp(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!up(a))||(b=Rf(g.Qf(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=g.Dh(a);if(!b||!b.v)return null;if(b.t)return Sj(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=g.Bh(a[1]))&&a.t?Sj(a.t):-1};
vp=function(a){a=sp(a);a=a.replace(/https?:\/\//g,"");return up(a)?(a=g.Dh(a))&&a.v?a.v:null:null};
wp=function(a,b,c,d){(a=sp(a))?up(a)?d=g.Gh(a,{feature:"iv",src_vid:c,annotation_id:b}):(a?(b=tp(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=g.B(gda,d.pageId,d.hc),a=new gg(a),kg(a,d(a.A)),d=a.toString()):d=a):d=null;return d};
gda=function(a,b,c){c=c.replace(/\/(u|b)\/[0-9]+/g,"");var d=/^[0-9]+$/;a&&d.test(a)&&(c="/b/"+a+c);b&&d.test(b)&&(c="/u/"+b+c);return c};
xp=function(a,b){return b?b:up(a)?"current":"new"};
yp=function(a,b){return a.replace(hda,function(a,d){try{var c=Vb(b,d);if(null==c)return a;c=c.toString();if(!D(E(c)))return(0,window.encodeURIComponent)(c).replace(/%2C/g,",")}catch(f){}return a})};
zp=function(a){return(a=ida.exec(a))?a[0]:""};
Ap=function(a){return jda.test(a)||kda.test(a)};
Bp=function(a){a=new gg(a);hg(a,window.document.location.protocol);g.ig(a,window.document.location.hostname);window.document.location.port&&g.jg(a,window.document.location.port);return a.toString()};
Cp=function(a){a=new gg(a);hg(a,window.document.location.protocol);return a.toString()};
lda=function(a){this.aa=a;this.g={}};
Gp=function(a,b,c,d){if(b){var e=Dp(a,b);a.g[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;b=Ep(a,"cta_annotation_shown",e,c);Fp(a,e,mda(b,d))}};
Hp=function(a,b,c,d,e,f){if(b){var k=Dp(a,b);k["iv-event"]=3;k["i-time"]=a.g[b]||"";g.Zb(k,d||{});b=Ep(a,"cta_annotation_clicked",k,e);Fp(a,k,b,c,f)}};
Ip=function(a,b){if(b){var c=Dp(a,b);c["iv-event"]=4;c["i-time"]=a.g[b]||"";var d=Ep(a,"cta_annotation_closed",c);Fp(a,c,d)}};
mda=function(a,b){return b?(0,g.S)(a,g.B(function(a,b){return yp(b,a)},b||{})):a};
Ep=function(a,b,c,d){d=g.jb(d||[]);if(30==c["a-type"]){a:{c=c["a-id"];a=a.aa.getVideoData();if(a.Ok){if((b=a.Ok[b])&&Jp.test(b)){a=Ba("[ANNOTATION_ID]");0<=b.indexOf("[ANNOTATION_ID]")?b=b.replace("[ANNOTATION_ID]",c):0<=b.indexOf(a)&&(b=b.replace(a,c));break a}}else if(a.Aa){b=g.Fh(a.Aa,{label:b,value:"a_id="+c});break a}b=""}b&&d.push(b)}return d};
Fp=function(a,b,c,d,e){var f=1,k,l=-1;if(d){var m=!1;k=function(){f--;f||m||((0,window.clearTimeout)(l),m=!0,d())};
l=(0,window.setTimeout)(function(){m=!0;d()},1E3)}(0,g.H)(c||[],function(a){f++;
g.oi(a,k)});
e&&(f++,0!=e&&a.aa.Ag(e,k));Kp(a,b,k)};
Dp=function(a,b){var c={};if(b){var d=new ng(b);(0,g.H)(d.rb(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.aa.getCurrentTime().toFixed(2);
c.ps=g.V(a.aa).o;return c};
Lp=function(a,b,c,d,e){e=Dp(a,e);e["iv-event"]=c;b&&(e.ei=b);e["a-id"]||(e["a-id"]="card:drawer");e["a-type"]=51;Fp(a,e,d)};
Mp=function(a,b,c,d){c&&(c=Dp(a,c),c["iv-event"]=b,Fp(a,c,d))};
Kp=function(a,b,c){g.ol(a.aa,"iv",b,c)};
nda=function(a,b,c,d,e,f,k){this.g=a;this.B=b;this.C=c;this.videoData=d;this.logger=e;this.o=f;this.A=k};
Np=function(a,b){this.Ta=a;this.context=b;this.Vo=!1;this.O=0};
Op=function(a,b,c,d,e,f){b=new g.cn(b,c,{id:d});b.namespace="iv-module";e&&(b.g||(b.g=new Cf)).subscribe("onEnter",e,a);f&&(b.g||(b.g=new Cf)).subscribe("onExit",f,a);g.El(a.context.o,[b])};
oda=function(a){return(0,g.G)()-a.O};
pda=function(a,b,c,d,e,f,k,l){var m=(0,g.z)(function(){l&&this.context.o.fd();"ei"in g.Dh(b)&&(b=eg(b,"ei"));g.mo(b,"current"==c?"_top":void 0,d)},a);
"new"==c&&(m(),m=null);var n={};n.interval=oda(a);Hp(a.context.logger,e,m,n,f,k)};
qda=function(a,b,c){this.type=a;this.trigger=b;this.url=c};
tda=function(a){if(!a)return null;var b=mp(a.type,rda),c=mp(a.trigger,sda),d=rp(ip(a.url));ip(a.subscribeData);return b?new qda(b,c,d):null};
Pp=function(a,b){this.g=a;this.o=b||null};
Rp=function(a,b){var c;c=a.o?Qp(a.o,new Pp(a.g)):a.g;var d=b.clone(),e=c.left;c=c.top;e instanceof xe?(d.left+=e.x,d.top+=e.y):(d.left+=e,g.qa(c)&&(d.top+=c));return d};
Sp=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};
Tp=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
Up=function(a,b,c,d,e,f,k,l,m,n,q){this.x=a;this.y=b;this.$i=c;this.A=d;this.t=e;this.H=f;this.C=k;this.D=l;this.B=m;this.o=n;this.g=q};
Vp=function(a,b){if(!a)return null;var c=op(a.x,0),d=op(a.y,0),e=op(a.w,0),f=op(a.h,0),k=ada(a.t),l=op(a.scaleSlope,1);return b(c,d,e,f,k,op(a.d,0),op(a.px,0),op(a.py,0),op(a.scaleSlopeX,l),op(a.scaleSlopeY,l),mp(a.scaleDimension,uda,"xy"))};
Qp=function(a,b){var c=Rp(b,Wp(a,new g.yf(a.x,a.y,a.$i,a.A),b.g)),d=b.g,e=c.clone();d&&!d.contains(c)&&(c.width<d.width?e.left=g.te(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=g.te(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};
Wp=function(a,b,c){var d=a.C,e=a.D,f=a.g?a.g:"xy",k=Sp(c,a.B,f);a=Tp(c,a.o,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new g.yf(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-l,f,l)};
Xp=function(a){return a?Vp(a,function(a,c,d,e,f,k,l,m,n,q,t){return new Up(a,c,d,e,f,k,l,m,n,q,t)}):null};
Yp=function(a,b,c,d,e,f,k,l,m,n,q,t,w){Up.call(this,a,b,c,d,e,l,m,n,q,t,w);this.F=f;this.G=k};
vda=function(a){if(!a)return null;var b=op(a.sx,0),c=op(a.sy,0);return Vp(a,function(a,e,f,k,l,m,n,q,t,w,x){return new Yp(a,e,f,k,l,b,c,m,n,q,t,w,x)})};
wda=function(a,b,c,d,e,f,k,l,m,n,q,t,w,x){this.B=a;this.bgColor=b;this.D=c;this.g=d;this.o=e;this.J=f;this.C=k;this.textAlign=l;this.textSize=m;this.F=n;this.G=q;this.effects=t;this.A=w;this.H=x};
Zp=function(a){if(!a)return null;var b=kp(a.fgColor,"#1A1A1A"),c=kp(a.bgColor,"#FFF"),d=kp(a.borderColor,"#000"),e=pp(a.borderWidth,0,5,!1,0),f=pp(a.bgAlpha,0,1,!1,.8),k=kp(a.highlightFontColor,"#F2F2F2"),l=pp(a.highlightWidth,0,5,!1,3),m=lp(a.textAlign),n=pp(a.textSize,3.3,30.1,!0,3.6107),q=lp(a.fontWeight),t=bda(a.padding),w=cda(a.effects),x=pp(a.cornerRadius,0,10,!0,0);if(a=ip(a.gradient)){var A=pp(a.x1,0,100,!0,0),F=pp(a.y1,0,100,!0,0),I=pp(a.x2,0,100,!0,100),K=pp(a.y2,0,100,!0,100),Ua=kp(a.color1,
"#FFF"),lb=kp(a.color2,"#000");a=new xda(A,F,I,K,Ua,lb,pp(a.opacity1,0,100,!0,100),pp(a.opacity2,0,100,!0,0))}else a=null;return new wda(b,c,d,e,f,k,l,m,n,q,t,w,x,a)};
xda=function(a,b,c,d,e,f,k,l){this.C=a;this.F=b;this.D=c;this.G=d;this.g=e;this.o=f;this.A=k;this.B=l};
yda=function(a,b,c,d){this.type=a;this.o=b;this.g=c;this.A=d};
Ada=function(a){if(!a)return null;var b=mp(a.type,zda,"rect"),c=qp(a.rectRegion,Xp),d=qp(a.anchoredRegion,vda);a=qp(a.shapelessRegion,Xp);return new yda(b,c,d,a)};
$p=function(a){return a.o&&a.o.length?a.o[0]:a.g&&a.g.length?a.g[0]:a.A&&a.A.length?a.A[0]:null};
Bda=function(a,b){this.o=a;this.g=b};
Cda=function(a,b){this.state=a;this.g=b};
aq=function(a){if(!a)return null;var b=mp(a.state,Dda);a=jp(a.ref);return b?new Cda(b,a):null};
Eda=function(a,b,c,d){this.g=a||[];this.A=b||[];this.B=c;this.o=d;this.value=!1};
Fda=function(a){if(!a)return null;var b=qp(a.condition,aq),c=qp(a.notCondition,aq),d=np(a.show_delay,!1);a=np(a.hide_delay,!1);return b||c?new Eda(b,c,d,a):null};
Gda=function(a,b,c){(0,g.H)(a.g,g.B(b,!1),c);(0,g.H)(a.A,g.B(b,!0),c)};
bq=function(a,b,c,d,e,f,k,l,m,n,q,t,w,x,A){this.id=a;this.author=b;this.type=c;this.style=d;this.B=e;this.o=f;this.A=k||[];this.F=l||[];this.g=m;this.D=n;this.C=q;this.htmlBlob=w;this.data=x;this.Jb=A};
Jda=function(a){if(!a)return null;var b=jp(a.id),c=jp(a.author),d=mp(a.type,Hda),e=mp(a.style,cq),f=lp(ip(a.TEXT)),k=lp(a.data),k=0!=k.length?g.pf(k):{},l;var m=ip(a.segment);m?(jp(m.timeRelative),l=jp(m.spaceRelative),l=(m=qp(m.movingRegion,Ada))?new Bda(l,m):null):l=null;var m=qp(a.action,tda),n=qp(a.trigger,Fda),q=Zp(ip(a.appearance));q||(q=Zp({}));var t=mp(a.coordinate_system,Ida,"video_relative"),w=np(a.closeable,!0),x=lp(a.html_blob);a=lp(a.log_data);return b&&d?new bq(b,c,d,e,f,l,m,n,q,t,w,
0,x,k,a):null};
dq=function(a){return(a=Kda(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};
fq=function(a){return eq(a,function(a){return"click"==a.trigger})};
eq=function(a,b){return ph(a.A,b,void 0)};
Lda=function(a,b,c){(0,g.H)(a.A,b,c)};
Kda=function(a,b){return g.Xa(a.A,b,void 0)};
gq=function(a,b,c){(0,g.H)(a.F,b,c)};
Mda=function(a,b){(0,g.S)(a.F,b,void 0)};
iq=function(a){return(a=hq(a))?$p(a):null};
hq=function(a){a.o?(a=a.o,a=a.g.length?a.g[0]:null):a=null;return a};
jq=function(a,b){var c=iq(a);return c&&b?Tp(b,c.o,c.g?c.g:"xy"):1};
kq=function(a,b){na(b)||(b=[b]);var c=(0,g.S)(b,function(a){return g.y(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
g.Si(a,"transition",c.join(","))};
lq=function(a,b,c,d){g.L.call(this);this.o=a;c||a.ma();this.C=null==d?b:d;this.g=null;this.A=new g.Id(this.B,0,this);g.M(this,this.A)};
g.nq=function(a){3!=a.g&&(1==a.g||2==a.g?(a.o.ma(),a.g=null,a.A.stop()):a.o.g&&(mq(a,!0),a.g=3,a.A.start(a.C)))};
mq=function(a,b){var c=a.o.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
oq=function(a,b,c){this.id=a;this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.autoOpen=b.auto_open||!1;this.dd=b.session_data||{};this.Jb=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.o={nD:a.impression,click:a.click,close:a.close,LI:a.teaser_impression,Go:a.teaser_click}};
pq=function(a,b){g.W.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text",["span","ytp-cards-teaser-label","{{text}}"]]]);this.aa=a;this.D=new lq(this,250,!1,250);g.M(this,this.D);this.H=b;this.o=null;this.G=new g.Id(this.WF,300,this);this.F=new g.Id(this.UF,2E3,this);this.J=new Ql(null);this.A=[];this.C=this.B=null;this.U(b.element,"mouseover",this.Qx);this.U(b.element,"mouseout",this.Lf);this.U(a,"cardsteasershow",this.fH);this.U(a,"cardsteaserhide",
this.pj);this.U(a,"cardstatechange",this.Nv);this.U(a,"presentingplayerstatechange",this.Nv);this.S("click",this.XL);this.S("mouseenter",this.WL)};
Nda=function(a,b){a.Ea("text",b.teaserText);a.element.setAttribute("dir",Rl(a.J,b.teaserText));a.D.show();a.B=new g.Id(function(){g.O(this.aa.getRootNode(),"ytp-cards-teaser-shown")},0,a);
a.B.start();qq(a.H,!1);a.o=new g.Id(a.pj,580+b.durationMs,a);a.o.start();a.A.push(a.S("mouseover",a.Qx,a));a.A.push(a.S("mouseout",a.Lf,a))};
rq=function(a,b,c){oq.call(this,a,b,c);this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.g=b.meta_info;this.url=rp({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
sq=function(a,b,c){oq.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.g=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=rp({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.A=null;b.signin_url&&(this.A=rp({target:"current",value:b.signin_url}));this.D=b.signin_title||null;this.C=b.signin_message||null};
tq=function(a,b,c){sq.call(this,a,b,c);this.F=b.ypc_flow_type;this.B=b.innertube_request_params};
uq=function(a,b,c){oq.call(this,a,b,c);this.B=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.g=b.meta_info;this.url=rp({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
vq=function(a,b,c){oq.call(this,a,b,c);this.B=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.g=b.hasOwnProperty("old_vote")?b.old_vote:null;this.A=null;b.signin_url&&(this.A=rp({target:"current",value:b.signin_url}));this.C=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null};
wq=function(a,b,c){sq.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new Oda(a[b]))};
Oda=function(a){this.merchant=E(a.merchant);this.price=E(a.price)};
xq=function(a,b,c){sq.call(this,a,b,c);this.F=b.ypc_item_type;this.B=b.ypc_item_id;this.G=b.ypc_flow_type};
yq=function(a,b,c){oq.call(this,a,b,c);this.C=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.g=b.meta_info;this.B=!!b.is_live_now;this.url=rp({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
zq=function(a,b,c){oq.call(this,a,b,c);this.F=b.image_url;this.B=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.g=b.meta_info;this.C=!!b.is_paygated;this.D=!!b.user_has_entitlement;this.url=rp({target:b.target||"new",value:b.url})};
Aq=function(a,b,c){this.g=a;this.A=b;this.C=c;this.B=new Ql(null)};
Pda=function(a,b){var c=["ul","",{role:"radiogroup"}];(0,g.H)(b.choices,function(a){c.push(["li",b.B+"-"+a.index.toString(),["label","",["input","iv-card-poll-choice-input",{type:"checkbox",role:"radio",name:b.B+a.index.toString(),value:a.index.toString(),"data-poll-choice-index":a.index.toString()}],["span","iv-card-poll-choice-text",["span","iv-card-poll-choice-percent"],Bq(this,"span",void 0,a.desc)]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);
var d={};b.A&&(d["aria-label"]=g.Q("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var e=["iv-card","iv-card-poll"],d=[["div","iv-card-content",Bq(a,"h2",d,b.title),["form","",["fieldset","",c]]]];b.A&&(e.push("iv-card-unavailable"),d.push(["div",["iv-card-sign-in"],["h2","",g.Q("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:sp(b.A)},["span",["iv-button-content"],g.Q("YTP_SIGN_IN")]]]));e=new g.W(["div",e].concat(d));d=e.element;Cq(b,d);Tca(a.g.g,d,g.B(a.F,
b),a);(0,g.H)(He("iv-card-poll-choice-input",d),function(a){this.g.g.S(a,"focus",g.B(this.o,!0));this.g.g.S(a,"blur",g.B(this.o,!1))},a);
b.A&&a.A(Ie("iv-card-sign-in-button",d),b.A,b.id,b.dd,b.Jb,b.o.click,5);return e};
Hq=function(a,b,c,d){var e=Dq(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=Eq(a,b),l=["iv-card"];b.A&&l.push("iv-card-unavailable");e=["div",l,["a","iv-click-target",{href:e},Fq(b.imageUrl,f),["div","iv-card-content",Bq(a,"h2",void 0,b.title),k]]];b.A&&(e=e.concat([["div",["iv-card-sign-in"],Bq(a,"h2",void 0,b.D||""),["p","",b.C],["a",["iv-card-sign-in-button","iv-button"],{href:sp(b.A)},Bq(a,"span","iv-button-content",g.Q("YTP_SIGN_IN"))]]]));e=new g.W(e);Gq(a,
e,b,c,d);return e};
Jq=function(a,b,c){var d=Dq(a,b.url,b.id),e=["yt-badge","standalone-ypc-badge-renderer-icon",b.D?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.C&&b.B?["span",e,f,b.B]:"";c=["div",["iv-card",c],["a","iv-click-target",{href:d},Fq(b.F,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],Iq(a,b)]]];c=new g.W(c);Gq(a,c,b);return c};
Kq=function(a,b){return b.customMessage?Bq(a,"div","iv-card-message",b.customMessage):""};
Fq=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};
Iq=function(a,b){if(!b.g||0==b.g.length)return"";var c=["ul","iv-card-meta-info"];(0,g.H)(b.g,function(a){c.push(Bq(this,"li","",a))},a);
return c};
Bq=function(a,b,c,d){c?g.y(c)?c={"class":c}:na(c)&&(c={"class":c.join(" ")}):c={};c.dir=Rl(a.B,d);return[b,c,d]};
Eq=function(a,b){if(!b.customMessage)return"";var c=["iv-card-action","iv-card-primary-link"],d={};b.g&&(c.push("iv-card-action-icon"),d.style="background-image: url("+b.g+");");d.dir=Rl(a.B,b.customMessage);c=["div",c,d,["span","",b.customMessage]];b.showLinkIcon&&(c.push("\u00a0"),c.push(["span","iv-card-link-icon"]));return c};
Cq=function(a,b){var c=0;(0,g.H)(a.choices,function(a){c+=a.count});
for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=Ie(a.B+"-"+e.index.toString(),b),e=e.count/c;null==a.g&&(e=0);g.Rd(f.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.g==d);f.getElementsByTagName("input")[0].checked=a.g==d;g.ff(Ie("iv-card-poll-choice-percent",f),g.Q("YTP_DRAWER_POLL_PERCENT",{PERCENT:Math.floor(100*e).toFixed(0)}));g.Si(Ie("iv-card-poll-result-bar",f),"transform","scaleX("+e.toFixed(2)+")")}g.Rd(b,"iv-card-poll-voted",null!=a.g);g.Rd(b,"iv-card-poll-expanded",
null!=a.g&&1<a.choices.length)};
Lq=function(a,b,c,d){d?(c&&a.g.videoData.o||a.g.o.fd(),a.g.o.isFullscreen()&&g.jl(a.g.o),Hp(a.g.logger,b.Jb,d,void 0,b.o.click,5)):b.url&&a.C(b.url,b.id,b.dd,b.Jb,b.o.click||[],5)};
Dq=function(a,b,c){return b?wp(b,c,a.g.videoData.videoId,a.g.C):null};
Gq=function(a,b,c,d,e){c.A&&Mq(a,He("iv-card-sign-in-button",b.element),c,c.A,e);c.url&&Mq(a,He("iv-click-target",b.element),c,c.url,d)};
Mq=function(a,b,c,d,e){(0,g.H)(b,function(a){if(e){var b=(0,g.z)(function(a){a.stopPropagation();a.preventDefault();e();return!1},this);
this.g.g.S(a,"click",b)}else d&&this.A(a,d,c.id,c.dd,c.Jb,c.o.click,5)},a)};
Nq=function(a,b,c){Np.call(this,b,c);this.aa=a;this.J=null;this.yk=this.ca=this.B=this.da=!1;this.fa=null;this.xm=new g.Id(g.v,c.C.useTabletControls?4E3:3E3);this.ba=new g.Id(g.v);this.C=new Aq(c,(0,g.z)(this.uh,this),(0,g.z)(this.Ak,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading"},["span","iv-drawer-header-text"],["button",["iv-drawer-close-button","ytp-button"],{"aria-label":g.Q("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL"),tabindex:"0"}]],["div","iv-drawer-content"]];this.G=
new g.W(a);this.D=this.G.element;this.Z=new lq(this.G,330);this.ga=Ie("iv-drawer-header-text",this.D);this.A=Ie("iv-drawer-content",this.D);a=["iv-drawer-teaser"];a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button","iv-drawer-open-button",{"aria-label":g.Q("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-haspopup":"true"},["span"]]];new g.W(a);this.o=[];this.V=this.H=this.F=this.L=this.g=null;this.P=[];Op(this,0,1E3*c.videoData.lengthSeconds,
"",this.CA,this.bB)};
Tda=function(a,b){var c=b&&b.data&&b.data.card_type;if(c&&Oq[c]){c=new Oq[c](b.id,b.data,b.Jb);a.da||(Nd(a.oa(),["html5-stop-propagation","iv-drawer-manager"]),g.Kl(a.aa,a.D,6),Qda(a),a.H=Ie("ytp-cards-button"),a.V=Ie("iv-drawer-close-button",a.D),a.da=!0);Pq(a,c.id);var d=Rda(a,c);if(d){var e={Ub:c,Am:d.element,Ft:!1},f=Sda(a,e);g.ob(a.o,f,0,e);d.Fa(a.A,f);a.Ij();c.autoOpen?Op(a,c.startMs,0x8000000000000,c.id,g.B(a.yI,e)):(d=1E3*a.context.o.getCurrentTime(),5E3>d&&d>c.startMs&&a.rv(e),Op(a,c.startMs,
c.startMs+1,c.id,g.B(a.rv,e)),Qq(a))}}};
Uda=function(a,b){b.data.autoOpenMs&&Op(a,b.data.autoOpenMs,0x8000000000000,"",a.jL);b.data.autoCloseMs&&Op(a,b.data.autoCloseMs,0x8000000000000,"",a.Oj);var c=b.data.headerText;g.ff(a.ga,c);a.H&&a.H.setAttribute("title",c);b.data.eventId&&(a.J=b.data.eventId)};
Pq=function(a,b){var c=Vda(a,b);c&&(c==a.g&&(a.g=null),a.aa.xw(c.Ub.id),g.Ye(c.Am),g.eb(a.o,c),a.Ij(),Qq(a))};
Rq=function(a,b,c,d){if(!a.B){a.Z.show();a.L=new g.Id(function(){g.O(this.context.o.getRootNode(),"ytp-iv-drawer-open")},0,a);
a.L.start();a.B=!0;a.O=(0,g.G)();Lp(a.context.logger,a.J,7,void 0,d&&d.Ub?d.Ub.Jb:void 0);var e={TRIGGER_TYPE:b};(0,g.H)(a.o,function(a){a.Ft||(a.Ft=!0,Gp(this.context.logger,a.Ub.Jb,a.Ub.o.nD,e))},a);
sl(a.aa);c&&(a.F=new g.Id(function(){this.N=this.H;this.V.focus()},330,a),a.F.start())}};
Qda=function(a){a.context.g.S(Ie("iv-drawer-close-button",a.D),"click",a.UA,a);a.context.g.S(a.A,"touchend",function(){this.xm.start()},a);
a.context.g.S(a.A,"scroll",a.fB,a);a.fa=g.Vj(a.A,"mousewheel",(0,g.z)(a.kL,a));a.context.A.subscribe("onHideControls",function(){this.yk=!0},a);
a.context.A.subscribe("onShowControls",function(){this.yk=!1},a);
a.context.A.subscribe("onVideoAreaChange",function(){this.yk=g.Md(this.aa.getRootNode(),"ytp-autohide")},a);
a.P.push(ci("iv-teaser-shown",a.GD,a));a.P.push(ci("iv-teaser-clicked",a.FD,a))};
Rda=function(a,b){switch(b.type){case "simple":return Hq(a.C,b);case "collaborator":var c=a.C,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:Dq(c,b.url,b.id),"data-ytid":b.channelId},Fq(b.profileImageUrl),["div","iv-card-content",Kq(c,b),["h2","iv-card-primary-link",b.title],Iq(c,b)]]],d=new g.W(d);Gq(c,d,b);return d;case "donation":return c=a.C,d=(0,g.z)(c.D,c,b),Hq(c,b,d,d);case "episode":return Jq(a.C,b,"iv-card-episode");case "movie":return Jq(a.C,b,"iv-card-movie");
case "playlist":return c=a.C,d=["div",["iv-card","iv-card-playlist"],["a","iv-click-target",{href:Dq(c,b.url,b.id)},Fq(b.B,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",Kq(c,b),Bq(c,"h2","iv-card-primary-link",b.title),Iq(c,b)]]],d=new g.W(d),Gq(c,d,b),d;case "poll":return Pda(a.C,b);case "productListing":var c=a.C,d=Dq(c,b.url,b.id),e=!g.J(b.offers),f=["iv-card"],k="",l=Eq(c,b);e&&(f.push("iv-card-product-listing"),
k="iv-card-primary-link",l=b.offers[0],e=["div",null],l.price&&e.push(["div","iv-card-offer-price",l.price]),l.merchant&&e.push(["div","iv-card-offer-merchant",l.merchant]),l=e);e=b.sponsored?["div","iv-card-sponsored",g.Q("YTP_SPONSORED"),["div","iv-ad-info-container",["div","iv-ad-info","{{adInfo}}"],["div","iv-ad-info-icon-container",["div","iv-ad-info-icon"],["div","iv-ad-info-callout"]]]]:"";d=["div",f,{tabindex:"0"},["a",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.imageUrl+
");",href:d,"aria-hidden":"true",tabindex:"-1"}],["div","iv-card-content",e,["a","iv-click-target",{href:d},Bq(c,"h2",k,b.title),l]]];d=new g.W(d);f=g.Re("span");g.ff(f,g.Q("YTP_SPONSORED_PRODUCT_INFO"));d.sc(f,"adInfo");Gq(c,d,b);return d;case "tip":return c=a.C,d=(0,g.z)(c.G,c,b),Hq(c,b,d,d);case "video":return c=a.C,d=Dq(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.B?["span",["yt-badge","yt-badge-live"],g.Q("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],
["a","iv-click-target",{href:d},Fq(b.C,f),["div","iv-card-content",Kq(c,b),Bq(c,"h2","iv-card-primary-link",b.title),Iq(c,b),k]]],d=new g.W(d),Gq(c,d,b),d}return null};
Sda=function(a,b){if(0==a.o.length)return 0;var c=Ya(a.o,function(a){return b.Ub.startMs>a.Ub.startMs||b.Ub.startMs==a.Ub.startMs&&b.Ub.timestamp>=a.Ub.timestamp?!0:!1});
return-1==c?0:c+1};
Wda=function(a){return a.g?"productListing"==a.g.Ub.type:Sq(a.o,function(a){return"productListing"==a.Ub.type})};
Qq=function(a){g.Rd(a.aa.getRootNode(),"ytp-cards-shopping-active",Wda(a))};
Tq=function(a,b){if(a.G.g){var c=new $o([0,a.A.scrollTop],[0,b.Am.offsetTop],600,Wca);Io(a.context.B,c,"animate",function(a){this.A.scrollTop=a.y},void 0,a);
Io(a.context.B,c,"finish",function(a){this.A.scrollTop=a.y},void 0,a);
c.play()}else a.G.Ab(!0),a.A.scrollTop=b.Am.offsetTop,a.G.Ab(!1)};
Uq=function(a){return a.g&&a.g.Ub?a.g.Ub:a.o[0]&&a.o[0].Ub?a.o[0].Ub:null};
Vda=function(a,b){return g.Xa(a.o,function(a){return a.Ub.id==b},a)};
Vq=function(a,b,c,d,e){$o.call(this,b,c,d,e);this.element=a};
Wq=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Vq.apply(this,arguments)};
Xq=function(a,b,c){Np.call(this,a,b);this.annotation=c;this.isActive=!1};
Yq=function(a,b,c){Xq.call(this,a,b,c);this.H=b;this.o=null;this.F=!1;this.A=null;this.B=!1;this.G=0;this.g=this.D=this.C=null};
Zq=function(a,b,c){Xq.call(this,a,b,c);this.F=this.B=this.G=!1;this.D=5E3;this.A=null;this.Wh=g.P("DIV","iv-promo-contents");this.g=this.o=this.Vc=null;this.C=new g.Id(function(){this.Vc.setAttribute("aria-hidden",!0);R(this.o,!1);R(this.g,!0)},700,this)};
Xda=function(a){var b=a.annotation.data,c;if("cta"==a.annotation.style)c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.D=b.collapse_delay_ms||a.D;var d=["iv-promo","iv-promo-inactive"];a.oa().setAttribute("aria-hidden",!0);a.oa().setAttribute("aria-label",g.Q("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.oa().tabIndex=0;var e=dq(a.annotation),f;if(b.image_url){f=g.P("DIV",["iv-promo-img","iv-click-target"]);var k=g.P("IMG",{src:b.image_url,"aria-hidden":"true"});f.appendChild(k);
b.video_duration&&!b.is_live?(k=g.P("SPAN","iv-promo-video-duration",b.video_duration),f.appendChild(k)):b.playlist_length&&(k=g.P("SPAN","iv-promo-playlist-length",b.playlist_length.toString()),f.appendChild(k));e&&a.uh(f,e,a.annotation.id,b.session_data,a.annotation.Jb,void 0,c)}e?a.Vc=g.P("A",{href:sp(e),"class":"iv-promo-txt"}):a.Vc=g.P("DIV","iv-promo-txt");var l,m,n,q;switch(a.annotation.style){case "cta":case "website":l=g.P("P",null,g.P("STRONG",null,b.text_line_1));m=g.P("P",null,g.P("SPAN",
"iv-promo-link",b.text_line_2));b.text_line_3&&(d.push("iv-promo-website-card-cta"),n=g.P("P",null,g.P("SPAN","iv-promo-action-text",b.text_line_3)));g.O(a.Vc,"iv-click-target");e&&a.uh(a.Vc,e,a.annotation.id,b.session_data,a.annotation.Jb,void 0,c);break;case "playlist":case "video":l=g.P("P",null,g.P("SPAN",null,b.text_line_1));m=g.P("P",null,g.P("STRONG",null,b.text_line_2));b.is_live&&(l=m,m=g.P("SPAN",["yt-badge","iv-promo-badge-live"],g.Q("YTP_LIVE_NOW")));g.O(a.Vc,"iv-click-target");e&&a.uh(a.Vc,
e,a.annotation.id,b.session_data,a.annotation.Jb,void 0,c);d.push("iv-promo-video");break;case "vote":l=g.P("P",null,g.P("STRONG",null,b.text_line_1)),m=g.P("P",null,g.P("SPAN",null,b.text_line_2)),q=g.P("DIV","iv-promo-button-container"),c=g.P("BUTTON",["iv-button","iv-promo-button"],g.P("SPAN","iv-button-content",b.button_text)),a.context.g.S(c,"click",function(a){a.stopPropagation();Hp(this.context.logger,this.annotation.Jb,null,{contest_vote:"1"},(b.tracking||{}).vote);a=this.annotation.data;
this.Vc=Ie("iv-promo-txt",this.Wh);var c=Ie("iv-promo-button-container",this.Wh),d=g.P("DIV",["iv-promo-txt","iv-click-target"]),e=g.P("P",null,g.P("STRONG",null,a.text_line_3)),f=g.P("P",null,a.text_line_4);Ve(d,e,f);g.Ye(c);Ze(d,this.Vc);g.Pd(this.oa(),"iv-promo-with-button");(c=dq(this.annotation))&&this.uh(d,c,this.annotation.id,a.session_data,this.annotation.Jb)},a),q.appendChild(c),d.push("iv-promo-with-button")}l&&a.Vc.appendChild(l);
m&&a.Vc.appendChild(m);n&&a.Vc.appendChild(n);a.Wh.appendChild(a.Vc);q&&a.Wh.appendChild(q);l=g.P("DIV","iv-promo-actions");a.g=g.P("BUTTON",["iv-promo-expand","ytp-button"]);a.g.title=g.Q("YTP_EXPAND");a.context.g.S(a.g,"click",g.B(a.mn,5E3),a);l.appendChild(a.g);R(a.g,!1);a.context.g.S(a.oa(),"mouseover",a.SB,a);a.context.g.S(a.oa(),"mouseout",a.RB,a);a.context.g.S(a.oa(),"touchend",g.B(a.mn,5E3),a);a.o=g.P("BUTTON",["iv-promo-close","ytp-button"]);a.o.title=g.Q("YTP_CLOSE");a.context.g.S(a.o,"click",
"cta"==a.annotation.style&&b.text_line_3?a.HB:a.lL,a);l.appendChild(a.o);Nd(a.oa(),d);f&&Ue(a.oa(),f);Ue(a.oa(),a.Wh);Ue(a.oa(),l)};
$q=function(a){a.B||a.F||a.A||(g.O(a.oa(),"iv-promo-collapsed"),a.B=!0,a.C.start())};
ar=function(a){a.C.stop();a.B&&(Qd(a.oa(),["iv-promo-collapsed","iv-promo-collapsed-no-delay"]),a.B=!1,a.Vc&&a.Vc.removeAttribute("aria-hidden"),R(a.g,!1),R(a.o,!0))};
cr=function(a,b){a.A||(a.A=Gd(function(){br(this);$q(this)},b,a))};
br=function(a){a.A&&(Hd(a.A),a.A=null)};
dr=function(){var a=u("yt.player.utils.videoElement_");a||(a=g.Re("VIDEO"),g.ka("yt.player.utils.videoElement_",a,void 0));return a};
er=function(a){var b=dr();try{if(b.canPlayType){a=a?Yda:Zda;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
fr=function(){var a=dr();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
gr=function(a){a=g.P("DIV",{"class":a});window.document.body.appendChild(a);var b="none"==Vi(a,"display");g.Ye(a);return b};
$da=function(){if(null==hr){hr=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){hr=!0}}))}catch(a){}}return hr};
g.ir=function(a){g.L.call(this);this.O=[];this.Xa=a||this};
jr=function(a,b,c,d){for(var e=0;e<c.length;e++)a.U(b,c[e],d)};
g.kr=function(a){for(;a.O.length;){var b=a.O.pop();b.target.removeEventListener(b.name,b.Uh)}};
lr=function(){return!!u("yt.scheduler.instance")};
mr=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=u("yt.scheduler.instance.addJob");return c?c(a,1,b):void 0===b?(a(),window.NaN):g.ah(a,b||0)};
nr=function(a){if(!(0,window.isNaN)(a)){var b=u("yt.scheduler.instance.cancelJob");b?b(a):g.ch(a)}};
qr=function(){g.ch(or);or=g.ah(function(){pr(0)},g.Zg("SCHEDULER_SOFT_STATE_TIMER",800))};
pr=function(a){var b=u("yt.scheduler.instance.setPriorityThreshold");b&&(qr(),b(a))};
rr=function(a){var b=u("yt.scheduler.instance.enablePriorityThreshold");b&&(qr(),b(a))};
tr=function(a,b,c){this.g={};this.o=!1;this.C="ivTrigger:"+a;this.A=c;Gda(b,function(a,b){var c=sr(b.state,b.g);this.A.subscribe(c,(0,g.z)(this.B,this,c,a));this.g[c]=a},this)};
sr=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};
ur=function(a,b,c){g.L.call(this);this.B=null!=c?(0,g.z)(a,c):a;this.A=b;this.o=(0,g.z)(this.gH,this);this.g=[]};
vr=function(a){a.ng=Gd(a.o,a.A);a.B.apply(null,a.g)};
wr=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
xr=function(){};
yr=function(a,b,c,d,e,f,k,l){this.C=a;this.F=b;this.D=c;this.G=d;this.g=e;this.o=f;this.A=g.p(k)?k:null;this.B=g.p(l)?l:null};
zr=function(){this.xa=[];this.Ga=[];this.Ed=[]};
Ar=function(a,b,c){0==g.Va(a.xa)?a.Ed.length-=2:(a.xa.push(0),a.Ga.push(1));a.Ed.push(b,c);a.md=a.ze=[b,c]};
Br=function(a,b,c,d){var e=a.md[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.md[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.xa.push(3);a.Ga.push(1);a.Ed.push(b,c,d,90,e,f);a.Vi=!1;a.md=[e,f]};
bea=function(a,b){for(var c=a.Ed,d=0,e=0,f=a.xa.length;e<f;e++){var k=a.xa[e],l=aea[k]*a.Ga[e];b(k,c.slice(d,d+l));d+=l}};
Cr=function(a,b){this.H=a;this.J=null==b?1:b};
Dr=function(a,b,c){this.A=a;this.g=b;this.o=null==c?1:c};
Er=function(){};
Fr=function(a){N.call(this);this.H=a||Fe();this.Da=null;this.be=!1;this.g=null;this.D=void 0;this.F=this.L=this.B=null};
Gr=function(a,b){if(a.be)throw Error("Component already rendered");a.g||a.kk();b?b.insertBefore(a.g,null):a.H.g.body.appendChild(a.g);a.B&&!a.B.be||a.Mg()};
Hr=function(a,b){a.L&&(0,g.H)(a.L,b,void 0)};
Ir=function(a,b,c,d,e){Fr.call(this,e);this.width=a;this.height=b;this.A=c||null;this.O=d||null};
cea=function(a){var b=a.Rg();return b?b.width/(a.A?new g.ze(a.A,a.O):a.Rg()).width:0};
Jr=function(a,b){N.call(this);this.pi=a;this.fn=b;this[uc]=!1};
Mr=function(a,b,c,d){Jr.call(this,a,b);a=this.fn;b=this.oa();c?(b.setAttribute("stroke",c.g),b.setAttribute("stroke-opacity",c.o),c=c.yb(),g.y(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/cea(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.fn;a=this.oa();if(d instanceof Cr)a.setAttribute("fill",d.H),a.setAttribute("fill-opacity",d.J);else if(d instanceof yr){b="lg-"+d.C+"-"+d.F+"-"+d.D+"-"+d.G+"-"+d.g+"-"+d.o;var e=b in c.o?
c.o[b]:null;if(!e){var e=Kr(c,"linearGradient",{x1:d.C,y1:d.F,x2:d.D,y2:d.G,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.g;g.qa(d.A)&&(f+=";stop-opacity:"+d.A);f=Kr(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.o;g.qa(d.B)&&(f+=";stop-opacity:"+d.B);d=Kr(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=Lr(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")};
Nr=function(a,b){Jr.call(this,a,b)};
Or=function(a,b,c,d){Mr.call(this,a,b,c,d)};
Pr=function(a,b){Jr.call(this,a,b)};
Qr=function(a,b,c,d){Mr.call(this,a,b,c,d)};
Rr=function(a,b,c,d,e){Ir.call(this,a,b,c,d,e);this.o={};this.N=qc&&!g.oc(526);this.J=new Go(this)};
Kr=function(a,b,c){a=a.H.g.createElementNS("http://www.w3.org/2000/svg",b);c&&Sr(a,c);return a};
Sr=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
Tr=function(a,b,c,d){b=Kr(a,"path",{d:dea(b)});c=new Qr(b,a,c,d);a.C.oa().appendChild(c.oa())};
dea=function(a){var b=[];bea(a,function(a,d){switch(a){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var c=d[3];b.push("A",d[0],d[1],0,180<Math.abs(c)?1:0,0<c?1:0,d[4],d[5]);break;case 4:b.push("Z")}});
return b.join(" ")};
Lr=function(a,b,c){if(b in a.o)return a.o[b];var d="_svgdef_"+eea++;c.setAttribute("id",d);a.o[b]=d;a.G.appendChild(c);return d};
Vr=function(){Ur||(Ur=new Ed(400),Ur.start());return Ur};
Wr=function(){this.g=!1;this.C=this.o=null};
Xr=function(a,b,c){a.o?(a.o.setSize(b,c),a.o.clear()):(b=new Rr(b,c,void 0,void 0,void 0),a.o=b,a.o.kk(),a.C=g.P("DIV"),b=a.o.oa(),a.C.appendChild(b));return a.o};
Yr=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);b&&g.Eb(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d};
Zr=function(a,b){var c=":"+(Er.getInstance().g++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
fea=function(a,b){var c=Zr(a,Yr("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=Zr(a,Yr("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},Yr("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=Zr(a,Yr("feComposite",{"in":c,in2:b,operator:"in"}));return Zr(a,Yr("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
gea=function(a,b){var c=Zr(a,Yr("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=Zr(a,Yr("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=Zr(a,Yr("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0"})),d=Zr(a,Yr("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 100 0"})),d=Zr(a,Yr("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=Zr(a,Yr("feComposite",{operator:"out","in":c,in2:d}));return Zr(a,Yr("feComposite",{operator:"over","in":b,in2:c}))};
hea=function(a,b){return b};
iea=function(a){var b=Yr("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";(0,g.H)(a,function(a){a:{switch(a){case "bevel":a=fea;break a;case "dropshadow":a=gea;break a}a=hea}c=a(b,c)});
return b};
jea=function(a){a=(0,g.Od)(a,function(a){return a in $r});
ub(a,function(a,c){return $r[a]-$r[c]});
return a};
kea=function(a){return g.Xa(a,function(a){return"dropshadow"==a})?new xf(0,7,7,0):new xf(0,0,0,0)};
as=function(a,b,c){var d=new zr;Ar(d,a.left+b+c,a.top+c);d.$b(a.left+a.width-b-c,a.top+c);Br(d,b,b,-90);d.$b(a.left+a.width-c,a.top+a.height-b-c);Br(d,b,b,0);d.$b(a.left+b+c,a.top+a.height-c);Br(d,b,b,90);d.$b(a.left+c,a.top+b+c);Br(d,b,b,180);d.close();return d};
bs=function(a,b,c,d){var e=a.H;e?a=new yr(e.C*b/100,e.F*c/100,e.D*b/100,e.G*c/100,e.g,e.o,e.A,e.B):(b=a.o,a=new Cr(a.bgColor,d?Math.max(b,.9):b));return a};
cs=function(a,b){var c=zf(a);c.expand(kea(b));return new g.yf(c.left,c.top,c.right-c.left,c.bottom-c.top)};
ds=function(a,b,c){if(c.length&&(b=g.Ge("g",void 0,b),b.length)){var d=jea(c);if(d){c="effects:"+(d?d.join("|"):"");var e=c in a.o?a.o[c]:null;e?a=e:(d=iea(d),a=0<d.childNodes.length?Lr(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};
es=function(){Wr.call(this);this.B=0};
lea=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,k=Math.max(c,d,e,f);if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"};
fs=function(){Wr.call(this)};
gs=function(){Wr.call(this)};
hs=function(){es.call(this)};
is=function(a,b,c,d,e){this.g=a;this.Z=b;this.D=c;this.fa=d;this.da=e;this.N=!1;this.F=new Oo(this);this.P=this.C=this.G=this.O=this.o=null;this.ba=!1;this.ca=this.J=this.L=null;this.$n=new ur(this.QB,100,this);this.H=new g.Id(this.Ns,500,this);this.V=this.A=this.B=null};
mea=function(a,b){var c=(0,g.z)(function(a,c,f){c=f?js(this,c,(0,g.z)(f,this)):js(this,c);this.F.S(b,a,c)},a);
c("mouseover","d",a.Xw);c("mouseout","c",a.Lf);c("click","a");c("touchend","a")};
nea=function(a){if(a.g.C){var b;eq(a.g,function(a){return"close"==a.type})?b=a.o:(a.B=g.P("DIV","annotation-close-button"),R(a.B,!1),ih(a.B,"annotation_id",a.g.id),a.o.appendChild(a.B),b=a.B);
var c=function(a){a.stopPropagation()};
a.F.S(b,"click",js(a,"b",c));a.F.S(b,"touchend",js(a,"b",c))}};
js=function(a,b,c){return(0,g.z)(function(a){if(this.da)c&&c(a);else if(a.event.target instanceof window.Element){var d=a.event.target;R(d,!1);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(nf(f,"annotation")){var k=window.document.createEvent("MouseEvent");k.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey,
a.event.button,a.event.relatedTarget);f.dispatchEvent(k)}}finally{R(d,!0)}}d=jj(a.target);a=new xe(a.clientX,a.clientY);"c"==b&&d.contains(a)||this.fa.oc(b,this.g)},a)};
os=function(a){if(a.o||a.A){var b=iq(a.g);if(b){var c=ks(a);if(a.o){var b=Qp(b,c),d=g.ls(g.gl(a.D));g.hj(a.o,b.width,b.height);g.Yi(a.o,b.left,b.top);a.O=new g.yf(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=iq(a.g))&&d?Sp(d,e.B,e.g?e.g:"xy"):1;var f=jq(a.g,d),d=a.g.g;d.G?d=d.G:(d="speech"==a.g.style?1.6:.8,d=new xf(d,d,d,d));d=new xf(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.C&&(d.right+=1.5*c.g.height/100);a.o.style.padding=d.top+"px "+d.right+"px "+d.bottom+
"px "+d.left+"px";"label"==a.g.style&&a.G&&(a.G.style.padding=a.o.style.padding);var d=c.g,k=!1,l=0,m=0,n;n=g.ls(g.gl(a.D));var q=ms(a.D.app.D.D);Af(n,q)?n=null:(q.top+=20,q.height-=40,"player_relative"!=a.g.D&&(q.left-=n.left,q.top-=n.top),n=q);n&&(l=n.top-(b.top+b.height),m=b.top-(n.top+n.height),k=0<l||0<m);if(k&&n){d=n;e=l;var f=m,t;a.C&&(m=ns(a,23,b,e,f),a.B&&(t=43-m.width,0<t&&(b.left+m.left-t>d.left&&(m.left-=t),m.width+=t)),t=m,g.hj(a.C,m.width,m.height),g.Yi(a.C,m.left,m.top));a.B&&(t?b=
new xe(t.left+t.width-23-18,a.ba?t.top+2:t.top+t.height-18-2):(t=ns(a,18,b,e,f),b=new xe(t.left,t.top),g.hj(a.B,t.width,t.height)),g.Yi(a.B,b));a.P=new g.yf(a.O.left+t.left,a.O.top+t.top,t.width,t.height);a.L=a.F.S(g.gl(a.D),"mousemove",a.SF)}else a.C&&(t=e/f*d.height*4.2/100,t=new g.ze(t,t),"highlight"==a.g.type||"label"==a.g.style?(e=1.5*d.height/100,t=new g.yf(b.width-t.width-e,b.height-t.height-e,t.width,t.height)):t=new g.yf(b.width-t.width-3*d.height/100,(b.height-t.height)/2,t.width,t.height),
g.hj(a.C,t.width,t.height),g.Yi(a.C,t.left,t.top)),a.B&&(t=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,g.Yi(a.B,t&&e?new xe(b.width-9,-9):t?new xe(b.width-9,45<b.height?9:b.height-9):e?new xe(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new xe(45<b.width?b.width-9-18:-9,b.height-9):new xe(-9,45<b.height?9:b.height-9)))}a.A&&a.A.A(a.g,c);if(a.o){c=a.o;b=a.g.g;c.style.color="highlightText"==a.g.style?b.J:b.B;t=g.ls(g.gl(a.D));c.style.fontSize=360*b.textSize*jq(a.g,t)/100+
"px";t=a.g.style;c.style.textAlign=b.textAlign?b.textAlign:"title"==t||"highlightText"==t?"center":"left";b.F&&(c.style.fontWeight=b.F);a=a.o;c=a.style.overflow;t=(b=Ie("annotation-link-icon",a))?lj(b):!1;e=(d=Ie("annotation-close-button",a))?lj(d):!1;t&&R(b,!1);e&&R(d,!1);m=f="";if(l=Ie("inner-text",a))f=l.style.overflow,m=l.style.position,l.style.overflow="visible",l.style.position="static";a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){n=k=Oba(a);for(var q=
5,w=Math.floor(k/2);w;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(q=n,n=Math.min(n+w,k)):n=Math.max(n-w,q),w=Math.floor(w/2),a.style.fontSize=n+"px";n!=q&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=q+"px")}a.style.overflow=c;l&&(l.style.overflow=f,l.style.position=m);e&&R(d,!0);t&&R(b,!0)}}}};
ns=function(a,b,c,d,e){var f=0<e;b=new g.yf(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),g.O(a.o,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),g.O(a.o,"annotation-extend-up"),a.ba=!0);return b};
ps=function(a){return"label"!=a.g.style||a.A.g};
ks=function(a){var b;b=g.ls(g.gl(a.D));if("player_relative"==a.g.D){var c=g.gl(a.D).Sa();b=new g.yf(-b.left,-b.top,c.width,c.height)}else b=new g.yf(0,0,b.width,b.height);return new Pp(b,a.V?iq(a.V):null)};
qs=function(a,b){return b?new g.yf(a.x+b.left,a.y+b.top,b.width,b.height):null};
rs=function(a,b,c){this.A=a;this.annotation=b;this.g=c;this.o=null;this.C=this.isVisible=!1;oea(b,a)};
oea=function(a,b){Mda(a,function(c){return new tr(a.id,c,b)})};
ts=function(a){Df(a.A,"resize",a.D,a);Df(a.A,"onVideoAreaChange",a.B,a)};
us=function(a){a.o&&(a.o.stop(),a.o=null)};
vs=function(a){fn.call(this,a);this.tb="iv-module";this.logEvent="iv";this.H=0;this.A={};this.J={};this.ka=new lda(a);this.C=new g.ir(this);g.M(this,this.C);this.subscribe("onHideControls",this.pF,this);this.subscribe("onShowControls",this.XG,this);this.subscribe("presentingplayerstatechange",this.uG,this);this.subscribe("resize",this.jo,this);this.subscribe("d",this.LK,this);this.subscribe("c",this.Lf,this);this.subscribe("a",this.gE,this);this.subscribe("b",this.GE,this);this.subscribe("vast_info_card_add",
this.vH,this);this.L=g.P("DIV",["video-legacy-annotations","html5-stop-propagation"]);this.N=g.P("DIV","video-custom-annotations");this.G=this.o=this.B=this.D=null;this.O=[]};
ws=function(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){var f;if(c[e.tagName])f=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){g.V(a.g).experiments.g("text_content_for_xml_node_value")&&e.textContent?c[e.tagName]=e.textContent.trim():0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==
e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):f.push(""):e&&f.push(ws(a,e))}return c};
xs=function(a,b,c){return!(a.loaded&&a.H==b&&a.g.getVideoData().videoId==c)};
qea=function(a,b){var c=pea(a,b);if(!c&&"marker"!=b.type)return null;gq(b,function(a){a=(0,g.z)(this.rH,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new rs(a.ca,b,c)};
rea=function(a,b){var c=vs.o(),d=null;switch(b.type){case "branding":if(g.V(a.g).we)break;a.D.element.appendChild(c);d=new Yq(c,ys(a),b);break;case "promotion":g.Kl(a.g,c,5),d=new Zq(c,ys(a),b)}d&&d.dl();return d};
sea=function(a){var b=a.g.getVideoData();if(b.ra){var c=g.V(a.g),d=c.O.get(b.videoId);if(d){var e={format:"XML",Bc:{}};c.experiments.g("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.o&&(e.Bc.gaming="1");e.cd=(0,g.z)(function(a,b,c){xs(this,a,b)||(a=Mh(c)&&c.responseXML?c.responseXML:null)&&zs(this,a)},a,a.H,b.videoId);
lr()&&(e.cd=As(a,e.cd));e.Sb={ic_only:"1"};Bs(e,d);g.li(b.ra,e)}}};
Bs=function(a,b){a.method="POST";a.Sb=a.Sb||{};b.fg&&(a.Sb.ic_xml=b.fg);b.yh&&(a.Sb.ic_track=b.yh)};
tea=function(a){var b=new g.W(["div"]);R(b.element,!1);var c=new Nq(a.g,b.element,ys(a));b.Fa(a.D.element);c.dl();return c};
ys=function(a){a.G||(a.G=new nda(new Oo(a),new Go(a),g.V(a.g),a.g.getVideoData(),a.ka,a.g,a.ca));return a.G};
zs=function(a,b){var c=!1;uea(b);for(var d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=ws(a,d[e]),k=null;try{k=Jda(f)}catch(l){}k&&(vs.B(k)?(f=rea(a,k))&&(a.J[k.id]=f):vs.C(k)?(a.o||(a.o=tea(a)),"card"==k.type?Tda(a.o,k):Uda(a.o,k),c=!0):(f=qea(a,k))&&(a.A[k.id]=f))}c&&(sl(a.g),a.jo());g.Eb(a.A,function(a){if(a.g){var b=a.annotation;(a=a.g)&&b.o&&b.o.o&&(b=this.A[b.o.o])&&(a.V=b.annotation)}},a)};
uea=function(a){if((a=a.getElementsByTagName("annotations"))&&!(1>a.length)&&(a=a[0].getAttribute("itct"))){var b=$m();if(b){var c=bn();c&&Zm(b,c,[new Vl(a)])}}};
vea=function(a,b,c,d){d?Cs(a,b,c):Ds(a,b,c)};
Ds=function(a,b,c){if(b=a.A[b])us(b),c&&c.o?(a=(0,g.z)(a.Ms,a,b),b.o=new g.Id(a,2E3),b.o.start()):a.Ms(b)};
Cs=function(a,b,c){if(b=a.A[b])us(b),c&&c.B?(a=(0,g.z)(a.Cv,a,b),b.o=new g.Id(a,2E3),b.o.start()):a.Cv(b)};
Es=function(a,b,c){if("new"==b.target)return!1;var d=sp(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!up(d))return!1;d=g.Dh(d);if(d.list||d.p)return!1;b=vp(b);if(!b)return!1;if(c==b)return!0;a=g.V(a.g);return a.C&&a.fb?!0:!1};
pea=function(a,b){if(wea(b)){var c=b.C||eq(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new is(b,(0,g.z)(a.L.appendChild,a.L),a.g,a.ca,c)}return null};
wea=function(a){if("highlight"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in cq)if(a.style==cq[b])return!0;return!1};
Fs=function(a,b,c,d){a.$(sr(b,d),c,d)};
As=function(a,b){return(0,g.z)(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=g.B.apply(window,a);this.O.push(mr(b,void 0))}},a)};
ul=function(a){return!!a.o&&a.o.isAvailable()};
vl=function(a){ul(a);return!!a.o&&a.o.B};
Gs=function(a,b,c,d){ul(a);a.o&&(c=!!c,b?g.p(d)?Rq(a.o,d,c):Rq(a.o,"YOUTUBE_DRAWER_AUTO_OPEN",c):a.o.Oj())};
Hs=function(a,b,c){a.g.Ra(b?"cardsteasershow":"cardsteaserhide",c)};
Js=function(a){a=a.split("");Is.AW(a,42);Is.AW(a,20);Is.Mk(a,9);Is.AW(a,4);Is.Mk(a,22);Is.uN(a,2);return a.join("")};
Ks=function(a,b,c){this.qd=a;this.durationSecs=b;this.context=c};
xea=function(a,b){return Ls(function(a,b){return si(a,b,4,1E3)},a,b)};
Ls=function(a,b,c){return a(b,c).then(function(b){var d=!b.responseText||2048<b.responseText.length?"":0==b.responseText.indexOf("https://")?b.responseText:"";return d?Ls(a,d,c):b})};
Ms=function(a){this.B=a;this.C=this.o=this.D="";this.g={};this.A=""};
Ns=function(a){a.A||(a.A=yea(a));return a.A};
Ps=function(a){Os(a);return a.C};
Qs=function(a){Os(a);return Hb(a.g,function(a){return null!==a})};
Rs=function(a,b){Os(a);if("/videoplayback"!=a.o){var c=a.clone();c.set("playerfallback",""+b);return c}var c=Ns(a),d=new gg(c),e=d.o.match("\\.a1\\.googlevideo\\.com$");d.o.match("\\.googlevideo\\.com$")?(g.ig(d,"redirector.googlevideo.com"),c=d.toString()):d.o.match("r[1-9].*\\.c\\.youtube\\.com$")?(g.ig(d,"www.youtube.com"),c=d.toString()):c=Bp(c);c=new Ms(c);b&&c.set("cmo=pf",""+b);e&&c.set("cmo=td","a1.googlevideo.com");return c};
Os=function(a){if(a.B){if(!Ss.test(a.B))throw Error("Untrusted URL: "+a.B);var b=g.tg(a.B);a.D=b.B;a.C=b.o+(null!=b.C?":"+b.C:"");var c=b.A;if(0==c.indexOf("/videoplayback"))a.o="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.o=c.substr(0,d),c=c.substr(d+1)):(a.o=c,c="")}else a.o=c,c="";d=a.g;a.g=Ts(c);g.va(a.g,Us(b.ts()));g.va(a.g,d);"index.m3u8"==a.g.file&&(delete a.g.file,a.o+="/file/index.m3u8");a.B="";a.A=""}};
yea=function(a){Os(a);var b=a.D+(a.D?"://":"//")+a.C+a.o;if(Qs(a)){var c=[];g.Eb(a.g,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b};
Ts=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Vs(c,a[b],a[b+1]);return c};
Us=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Vs(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Vs=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};
Ws=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
Xs=function(a){a=a.split("-");return 2==a.length&&(a=new Ws((0,window.parseInt)(a[0],10),(0,window.parseInt)(a[1],10)),!(0,window.isNaN)(a.start)&&!(0,window.isNaN)(a.end)&&!(0,window.isNaN)(a.length)&&0<a.length)?a:null};
Ys=function(a,b){return new Ws(a,a+b-1)};
Zs=function(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.getAttribute(b);if(d)return d}return""};
$s=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};
at=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(0,window.parseFloat)(b[2]||0)+60*(0,window.parseFloat)(b[4]||0)+(0,window.parseFloat)(b[6]||0):(0,window.parseFloat)(a)};
bt=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})\.(\d{3})$/)?a+"Z":a};
ct=function(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.g=a;this.sourceURL=e;this.startTime=b;this.range=f||null};
dt=function(){this.xa=[]};
ft=function(a,b){var c=et(a,b);return c?c.ingestionTime:window.NaN};
et=function(a,b){var c=g.sb(a.xa,new ct(b,0,0,0,""),function(a,b){return a.g-b.g});
return 0<=c?a.xa[c]:null};
zea=function(a,b){var c=g.sb(a.xa,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.xa[c]:a.xa[Math.max(0,-c-2)]};
gt=function(a,b){if(b>a.Zb())a.xa=[];else{var c=g.Wa(a.xa,function(a){return a.g>=b},a);
0<c&&a.xa.splice(0,c)}};
ht=function(a){this.g=a;this.o={};this.A=""};
Aea=function(a,b){var c=b.indexOf("?");if(0<c){var d=Us(b.substr(c+1));g.Eb(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=Ts(b);g.Eb(d,function(a,b){this.set(b,a)},a)};
g.it=function(a){a.A||(a.A=Bea(a));return a.A};
Bea=function(a){var b=Ns(a.g),c=[];g.Eb(a.o,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=Qs(a.g)?"&":"?";return b+a+d};
Cea=function(a,b){var c=new Ms(b),d=c.get("req_id");d&&a.set("req_id",d);g.Eb(a.o,function(a,b){c.set(b,null)});
return c};
jt=function(a){return(a=a.exec(ec))?a[1]:""};
kt=function(a){return 0<=Na(Dea,a)};
lt=function(){};
mt=function(){this.buffered=new lt};
g.nt=function(a){uk.call(this);this.g=a;this.A={}};
ot=function(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.cJ,set:this.gJ});Object.defineProperty(this,"buffered",{get:this.aJ})};
Eea=function(){this.length=0};
pt=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.g=a;this.o=window.NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.bJ,set:this.fJ});Object.defineProperty(this,"readyState",{get:this.dJ});this.g.addEventListener("webkitsourceclose",(0,g.z)(this.eJ,this),!0)};
qt=function(a,b,c,d,e,f){g.ir.call(this);this.o=this.g=null;this.B=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new pt(a.oa());this.G=this.C=this.F=null;this.H=d;this.J=c;this.L=e;this.D=f;jr(this,this.A,["sourceopen","webkitsourceopen"],this.P);jr(this,this.A,["sourceclose","webkitsourceclose"],this.N)};
Fea=function(a,b){a.C=b};
Gea=function(a,b){a.G=b};
Hea=function(a){if(!a.F){var b;b=a.A;b=b.VL?b.g.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new sk(b,!0)}return a.F};
tt=function(a,b){rt(a)?a.A.duration=b:a.B=b};
rt=function(a){try{return"open"==a.A.readyState}catch(b){return!1}};
ut=function(a){try{return"closed"==a.A.readyState}catch(b){return!0}};
vt=function(a){return a.g.updating||a.o.updating};
wt=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
xt=function(a){return a.g?!!a.g.appendBuffer:wt()};
zt=function(a){if(/opus/.test(a)&&(g.Uh&&!kt("38")||Vh()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!g.Rh())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!dr().canPlayType(a)};
Iea=function(){this.qb=this.ib=!1;this.la=1;this.B=20971520;this.C=8388608;this.o=window.NaN;this.Z=3145728;this.J=62914560;this.ba=10485760;this.F=window.NaN;this.Lb=2;this.Ib=25;this.H=2097152;this.N=!1;this.O=1800;this.na=5;this.ra=30;this.wa=1;this.g=1.15;this.A=1.05;this.Xa=8;this.Fc=!1;this.ab=!0;this.Cd=Nh("xboxone")||Th()||Oh();this.Ta=25;this.fa=!1;this.da=!0;this.hd=g.Uh&&!0;this.Dd=!0;this.uc=this.D=!1;this.Nb=.8;this.Eb=this.Db=!1;this.ca=!0;this.P=0;this.ob=this.G=this.Oa=!1;this.ga=
25;this.bc=!0;this.Rb=this.pa=!1;this.L=6;this.Ua=!1;this.tc=this.Ia=this.Ja=this.dc=this.Aa=this.va=0;this.fb=this.Na=this.ac=this.sb=!1;this.V=0};
Jea=function(a,b){1080<b&&!a.ib&&(a.B=36700160,a.C=5242880,a.Z=10485760,a.H=4194304,a.ib=!0);2160<b&&!a.qb&&(a.B=104857600,a.F=13107200,a.qb=!0)};
Kea=function(a,b){var c=new Iea;c.wa=a.experiments.o("html5_throttle_rate")||c.wa;a.experiments.g("html5_streaming_xhr")&&(c.D=!0);c.P=a.experiments.o("html5_idle_preload_secs");a.experiments.g("html5_use_mediastream_timestamp")&&(c.G=!0);c.Fc=a.experiments.g("html5_use_long_term_bandwidth_estimator");c.L=a.experiments.o("html5_min_buffer_to_resume");c.va=a.experiments.o("html5_variability_discount");c.Aa=a.experiments.o("html5_variability_no_discount_thresh");c.dc=a.experiments.o("html5_variability_full_discount_thresh");
c.Ja=a.experiments.o("html5_variability_upgrade");c.Ia=a.experiments.o("html5_variability_no_upgrade_thresh");c.tc=a.experiments.o("html5_variability_full_upgrade_thresh");c.ac=a.experiments.g("html5_update_max_track_byterate");a.experiments.o("html5_max_av_sync_drift")&&(c.ga=a.experiments.o("html5_max_av_sync_drift"));c.Na=a.experiments.g("disable_seek_workaround");c.fb=a.experiments.g("html5_reduce_startup_rebuffers");var d;if(d=a.experiments.g("html5_burst_less_for_no_bw_data"))d=a.D,d=d.B.o()==
d.g.A;d&&(c.ra=10);a.experiments.o("html5_min_secs_between_format_selections")&&(c.Xa=a.experiments.o("html5_min_secs_between_format_selections"));c.V=a.experiments.o("html5_local_max_byterate_lookahead");if(Th()||a.experiments.g("dash_html5_safari8_workarounds"))c.fa=!0;Th()&&(c.la=-1);if(Nh("trident/")||Nh("edge/"))c.o=240;Pi&&(c.J=41943040);g.At(a)||!wt()?(c.B=8388608,c.C=524288,c.Z=2097152,c.H=1048576,c.Lb=1.5,c.Ib=15,c.N=!wt(),c.ab=!1,c.F=4587520,Qh()&&(c.F=786432),d=Nh("cobalt")||Nh("steel")?
1.2:1.3,c.g*=d,c.A*=d,c.Eb=!0,c.J=c.B,c.ba=c.C):a.isMobile&&(c.g*=1.3,c.A*=1.3);Vh()&&(d="CHROMECAST/ANCHOVY"==a.A.cmodel,c.B=20971520,c.C=1572864,d&&(c.F=812500,c.O=1E3));c.Dd=a.F;c.uc=!a.experiments.g("disable_fpa_sei_removal")&&Nh("windows nt")&&(Bt(b)||g.Ct(b));Dt(b)&&(a.experiments.g("disable_html5_manifestless_delay")||(c.Oa=!0),c.da=!1);a.isAd()&&(c.L=0);a.experiments.g("html5_streaming_response_mediastream_rewrite")&&b.B&&b.B.videoInfos.length&&1==b.B.videoInfos[0].o&&(c.D=!0,c.G=!0,c.ob=
!0);/^re/.test(b.clientPlaybackNonce)&&(c.sb=!0,c.pa=!0);c.Ua=/^rq/.test(b.clientPlaybackNonce);/^pp/.test(b.clientPlaybackNonce)&&(c.Rb=!0,c.pa=!0);a.D.g.o=Dt(b)?.5:0;a.experiments.B&&(c.F=window.NaN);if(d=a.experiments.o("html5_deadzone_multiplier"))c.g*=d,c.A*=d;if(d=a.experiments.o("html5_request_sizing_multiplier"))c.Nb=d;a.experiments.g("html5_strip_emsg")&&(c.Db=!0);c.o=a.experiments.o("html5_max_buffer_duration")||c.o;c.Ta=a.experiments.o("html5_max_buffer_health_for_downgrade")||c.Ta;c.na=
a.experiments.o("html5_min_upgrade_health")||c.na;a.experiments.g("disable_html5_streaming_response_timing")&&(c.bc=!1);a.experiments.g("html5_trust_platform_bitrate_limits")&&Et(a.G,Ft)&&(c.F=window.NaN);return c};
Lea=function(a){this.g=a;this.B=a.clone();this.o=0;this.A=-1};
Gt=function(a,b,c){this.index=null;this.info=b;this.initRange=c||null;this.g=null;this.B=this.A=!1;this.D=new Lea(a)};
Ht=function(a,b,c,d,e,f,k,l,m){this.g=b;this.range=c;this.type=a;this.A=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.o=k||0;this.B=0<=l?l:this.range?this.range.length:window.NaN;this.G=!!m;this.range?(this.F=this.o+this.B==this.range.length,this.D=this.startTime+this.duration*this.o/this.range.length,this.H=this.duration*this.B/this.range.length):(this.F=0!=this.B,this.D=this.startTime,this.H=this.duration);this.C=this.D+this.H};
Mea=function(a,b,c){var d=!(!b||b.g!=a.g||b.type!=a.type||b.A!=a.A);return c?d&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.o+b.B==a.o+a.B:d};
It=function(a){return 1==a.type||2==a.type};
Jt=function(a,b){return a.g!=b.g?!1:a.range&&b.range?a.range.start+a.o+a.B==b.range.start+b.o:a.A==b.A?a.o+a.B==b.o:a.A+1==b.A&&0==b.o&&a.F};
Nea=function(a){1==a.length||Sq(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Ws(a[0].range.start+a[0].o,b.range.start+b.o+b.B-1)};
Lt=function(a){var b="";g.Eb(Kt(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
Kt=function(a){var b={};b.itag=Bi(a.g.info);b.seg=a.A;a.range&&(b.range=""+(a.range.start+a.o)+"-"+(a.range.start+a.o+a.B-1));b.time=""+a.D.toFixed(1)+"-"+(a.D+a.H).toFixed(1);return b};
Oea=function(a,b){return new Ht(a.type,a.g,b,a.A,a.startTime,a.duration,a.o,b.length,a.G)};
Mt=function(a,b){this.o=a[0].g.D;this.A=b||"";this.g=a;this.range=this.g[0].range&&0<this.g[0].B?Nea(this.g):null;this.B=window.NaN;this.requestId=null};
g.Nt=function(a,b){var c;/http[s]?:\/\//.test(a.A)?c=new ht(new Ms(a.A)):(c=new ht(a.o.g),a.A&&Aea(c,a.A));var d=b||a.range;d&&c.set("range",d.toString());a.requestId&&c.set("req_id",a.requestId);(0,window.isNaN)(a.B)||c.set("headm",a.B.toString());return c};
Ot=function(a){if(a.range)return a.range.length;a=a.g[0];return Math.round(a.H*a.g.info.g)};
Pt=function(a,b,c,d,e,f){Gt.call(this,a,b,d);this.index=e||new dt;this.G=c;this.F=!0;this.o=!!f;if(this.C=!c)this.A=!0};
Qt=function(a,b,c){if(a.o&&0==a.index.getDuration(b))return a=new Ht(3,a,null,b),new Mt([a],0<=b?"sq/"+b:"");var d=a.index.ws(b),e=a.index.rf(b),f=a.index.getDuration(b);c?f=c=0:c=0<a.info.g?a.info.g*f:1E3;a=new Ht(3,a,null,b,e,f,0,c,b==a.index.Zb()&&!a.F&&0<c);return new Mt([a],d)};
Pea=function(a,b,c,d){this.g=a;this.qd=b;this.durationSecs=c;this.o=d||window.NaN};
Rt=function(){this.g=[];this.o=null;this.C=0;this.B=[];this.A=!1;this.D=""};
Qea=function(a){var b=a.B;a.B=[];return b};
Rea=function(){this.B=[];this.g=null;this.o={};this.A={}};
Vea=function(a,b,c){var d=[];b=b.getElementsByTagName("SegmentTimeline");for(var e=0;e<b.length;e++){var f=b[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=Sea(a):"AdaptationSet"==f.nodeName?k=Tea(a,f.attributes.mimeType.value):"Representation"==f.nodeName&&(k=Uea(a,f.attributes.id.value));if(null==k)return;k.update(b[e],c);kb(d,Qea(k))}vb(d,function(a){return a.qd});
kb(a.B,d)};
Wea=function(a){a.g&&(a.g.g=[]);g.Eb(a.o,function(a){a.g=[]});
g.Eb(a.A,function(a){a.g=[]})};
Sea=function(a){a.g||(a.g=new Rt);return a.g};
Tea=function(a,b){a.o[b]||(a.o[b]=new Rt);return a.o[b]};
Uea=function(a,b){a.A[b]||(a.A[b]=new Rt);return a.A[b]};
St=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};
Xea=function(a){this.g=a;this.o=(0,window.parseInt)(this.g["Sequence-Number"],10)||0;this.ingestionTime=((0,window.parseInt)(this.g["Ingestion-Walltime-Us"],10)||0)/1E6;this.C="T"==this.g["Overlayed-With-Slate"];this.B="T"==this.g["Stream-Finished"];this.A="T"==this.g.Streamable};
Tt=function(a){return a.g["Cuepoint-Type"]?new Ks((0,window.parseFloat)(a.g["Cuepoint-Playhead-Time-Sec"])||0,(0,window.parseFloat)(a.g["Cuepoint-Total-Duration-Sec"])||0,a.g["Cuepoint-Context"]):null};
Yt=function(a,b,c){var d=Ut(a,0,1836019558);if(!d)return null;var e=Ut(a,d.offset+8,1835427940),f=Ut(a,d.offset+8,1953653094),k=Ut(a,d.offset+8,1886614376);if(!e||!f)return null;var l=Ut(a,f.offset+8,1952868452),m=Ut(a,f.offset+8,1953658222),n=Ut(a,f.offset+8,1952867444);if(!l||!m||!n)return null;var q=Ut(a,f.offset+8,1935763823),t=Ut(a,f.offset+8,1935763834);if(q){var w=Vt(q),x=Vt(q);if(0!=w||1!=x)return null;w=Vt(q)}x=Ut(a,f.offset+8,1935828848);a=Ut(a,f.offset+8,1936158820);for(var A=Vt(l),F=Vt(l),
I=A&2,K=A&1?Yea(l):0,Ua=I?Vt(l):0,lb=A&8?Vt(l):0,f=A&16?Vt(l):0,gb=A&32?Vt(l):0,A=Vt(m),xd=A&1,Gb=A&4,yl=A&256,l=A&512,Uo=A&1024,xj=A&2048,A=Vt(m),gc=xd?Vt(m):0,Mb=Gb?Vt(m):0,xd=[],Nb=[],zl=[],Sg=[],Al=0,Se=0,jc=0;jc<A;jc++){var Fy=yl?Vt(m):lb;l&&xd.push(Vt(m));var Tg=gb;Gb&&0==jc?Tg=Mb:Uo&&(Tg=Vt(m));Nb.push(Tg);Tg=xj?Vt(m):0;0==jc&&(Al=Tg);zl.push(Se+Tg);Sg.push(jc);Se+=Fy}1<=Math.abs(Se-b)&&c({flaw:"segDurMismatch",dts:Se.toFixed(),seg:b.toFixed()});ub(Sg,function(a,b){return zl[a]-zl[b]});
c=[];for(jc=0;jc<A;jc++)c[Sg[jc]]=jc;Se=I?4:0;jc=16*A;lb=68+Se+n.size+jc+(q?q.size:0)+(t?t.size:0)+(x?x.size:0)+(a?a.size:0)+(k?k.size:0);d=lb-d.size;m=new Zea(lb);Wt(m,lb);Wt(m,1836019558);Xt(m,e);Wt(m,lb-24-(k?k.size:0));Wt(m,1953653094);Wt(m,16+Se);Wt(m,1952868452);Wt(m,131072|(I?2:0));Wt(m,F);I&&Wt(m,Ua);Xt(m,n);Wt(m,20+jc);Wt(m,1953658222);Wt(m,16781057);Wt(m,A);Wt(m,K+gc+d);for(jc=Se=0;jc<A;jc++)n=c[jc],e=Math.round(b*n/A),n=Math.round(b*(n+1)/A)-e,Tg=e-Se+Al,Wt(m,n),Wt(m,l?xd[jc]:f),Wt(m,Nb[jc]),
Wt(m,Tg),Se+=n;q&&(Wt(m,q.size),Wt(m,1935763823),Wt(m,0),Wt(m,1),Wt(m,w+d));t&&Xt(m,t);x&&Xt(m,x);a&&Xt(m,a);k&&Xt(m,k);return m.data.buffer};
au=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);return(a=Zt(a,1836476516))?$t(a):window.NaN};
Ut=function(a,b,c){for(;bu(a,b);){var d=cu(a,b);if(d.type==c)return d;b+=d.size}return null};
Zt=function(a,b){for(var c=0;bu(a,c);){var d=cu(a,c);if(d.type==b)return d;c=du(d.type)?c+8:c+d.size}return null};
fu=function(a){return a.data.getUint8(a.offset+8)?eu(a.data,a.offset+12):a.data.getUint32(a.offset+12)};
cu=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new gu(a,b,c,d)};
$t=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
hu=function(a){return a.data.getUint32(a.offset+16)};
eu=function(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)};
bu=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c};
du=function(a){return 1836019558==a||1836019574==a||1953653094==a};
gu=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.g=8};
Vt=function(a){var b=a.data.getInt32(a.offset+a.g);a.g+=4;return b};
iu=function(a){var b=a.data.getUint32(a.offset+a.g);a.g+=4;return b};
Yea=function(a){var b=eu(a.data,a.offset+a.g);a.g+=8;return b};
ju=function(a){var b,c=[];do b=a.data.getUint8(a.offset+a.g),c.push(b),a.g++;while(0!=b);c.pop()};
Zea=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.g=0};
Wt=function(a,b){a.data.setInt32(a.g,b);a.g+=4};
Xt=function(a,b){for(var c=0;c+4<=b.size;)Wt(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.g++,b.data.getUint8(b.offset+c++))};
ku=function(a){return(a=Ut(a,0,1836019558))?a.offset+a.size:null};
lu=function(a,b){for(var c=Ut(a,0,b);c;)a.setUint32(c.offset+4,1936419184),c=Ut(a,c.offset+c.size,b)};
mu=function(a,b){this.o=a;this.g=0;this.A=b||0};
ou=function(a){var b=nu(a,!0),c=a.o.byteOffset+a.g,c=new window.DataView(a.o.buffer,c,Math.min(b,a.o.buffer.byteLength-c)),c=new mu(c,a.A+a.g);a.g+=b;return c};
qu=function(a){for(var b=nu(a,!0),c=pu(a),d=1;d<b;d++)c=256*c+pu(a);return c};
ru=function(a){var b=nu(a,!0);a.g+=b};
uu=function(a){var b=a.g;a.g=0;var c=!1;tu(a,440786851)&&(a.g=0,tu(a,408125543)&&(c=!0));a.g=b;return c};
vu=function(a){var b=a.g;a.g=0;var c=1E6;tu(a,408125543)&&(nu(a,!0),tu(a,357149030)&&(nu(a,!0),tu(a,2807729)&&(c=qu(a))));a.g=b;return c};
$ea=function(a,b){var c=a.g;a.g=0;if(!wu(a)||!tu(a,160))return a.g=c,window.NaN;nu(a,!0);if(!tu(a,161))return a.g=c,window.NaN;var d=nu(a,!0);pu(a);var e=pu(a)<<8|pu(a);a.g+=d-3;if(!tu(a,155))return a.g=c,window.NaN;d=qu(a);a.g=c;return(e+d)*b/1E9};
wu=function(a){if(uu(a)){if(!tu(a,408125543))return!1;nu(a,!0)}if(!tu(a,524531317))return!1;nu(a,!0);return!0};
tu=function(a,b){if(a.g>=a.o.byteLength)return!1;for(;nu(a,!1)!=b;)if(ru(a),a.g>=a.o.byteLength)return!1;return!0};
nu=function(a,b){var c=pu(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+pu(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+pu(a),e*=128;return b?c-e:c};
pu=function(a){return a.o.getUint8(a.g++)};
xu=function(a,b,c,d,e){this.info=a;this.g=b;this.range=c;this.o=null;this.B=d;this.C=e};
yu=function(a){return a.range?new window.DataView(a.g,a.range.start,a.range.length):new window.DataView(a.g)};
zu=function(a,b){b=Math.min(b,a.info.B);var c=Ys(a.range.start,b);return[new xu(new Ht(a.info.type,a.info.g,a.info.range,a.info.A,a.info.startTime,a.info.duration,a.info.o,b,!1),a.g,c,a.B,a.C),new xu(new Ht(a.info.type,a.info.g,a.info.range,a.info.A,a.info.startTime,a.info.duration,a.info.o+b,a.info.B-b,a.info.G),a.g,new Ws(c.end+1,a.range.end),a.B,!1)]};
Au=function(a,b){if(1==a.info.g.info.o){for(var c=a.info.g.g,d=new window.DataView(a.g),e=window.NaN,f=window.NaN,k=0;bu(d,k);){var l=cu(d,k);(0,window.isNaN)(e)&&(1936286840==l.type?e=hu(l):1836476516==l.type&&(e=$t(l)));if(1952867444==l.type){!e&&c&&(e=au(c));var m=fu(l);(0,window.isNaN)(f)&&(f=b*e-m);var n=l,m=m+f;if(n.data.getUint8(n.offset+8)){var q=n.data,n=n.offset+12;q.setUint32(n,Math.floor(m/4294967296));q.setUint32(n+4,m&4294967295)}else n.data.setUint32(n.offset+12,m)}k=du(l.type)?k+8:
k+l.size}return!0}c=new mu(new window.DataView(a.g));e=a.C?c:new mu(new window.DataView(a.info.g.g.buffer));d=b;f=vu(e);e=c.g;c.g=0;if(wu(c)&&tu(c,231))if(k=nu(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>k)c=!1;else{for(f=k-1;0<=f;f--)c.o.setUint8(c.g+f,d&255),d>>>=8;c.g=e;c=!0}else c=!1;return c};
Bu=function(a){var b;if(1==a.info.g.info.o){for(var c=b=0,d=new window.DataView(a.g);bu(d,b);){var e=cu(d,b);if(1936286840==e.type){var f=hu(e),k;k=e;var l=k.data.getUint8(k.offset+8);k.data.getUint16(k.offset+(0==l?30:38));k=k.data.getUint32(k.offset+(0==l?36:42));c+=k/f}b=du(e.type)?b+8:b+e.size}b=c||window.NaN;if(!(0<=b))a:{b=a.info.g.g;for(var c=0,d=new window.DataView(a.g),m,f=0;bu(d,c);){e=cu(d,c);if(1836476516==e.type)m=$t(e);else if(1836019558==e.type){!m&&b&&(m=au(b));if(!m){b=window.NaN;
break a}l=e;k=m;var n=Ut(l.data,l.offset+8,1953653094),q=Ut(l.data,n.offset+8,1952868452),l=Ut(l.data,n.offset+8,1953658222),n=Vt(q);Vt(q);n&2&&Vt(q);var q=n&8?Vt(q):0,t=Vt(l),w=t&1,n=t&4,x=t&256,A=t&512,F=t&1024,t=t&2048,I=iu(l);w&&Vt(l);n&&Vt(l);for(var K=w=0;K<I;K++){var Ua=x?Vt(l):q;A&&Vt(l);n&&0==K||!F||Vt(l);t&&Vt(l);w+=Ua}f+=w/k}c=du(e.type)?c+8:c+e.size}b=f||window.NaN}}else m=new mu(new window.DataView(a.g)),b=a.C?m:new mu(new window.DataView(a.info.g.g.buffer)),b=$ea(m,vu(b));return b||
a.info.H};
Cu=function(a){var b;b=new window.DataView(a.g);b=(b=Zt(b,1936286840))?hu(b):window.NaN;(0,window.isNaN)(b)&&(b=a.info.g.g,a=new window.DataView(a.g),b=(a=Zt(a,1836476516))?$t(a):b?au(b):window.NaN);return b};
Du=function(a){return 1==a.info.g.info.o?a.o?a.o.C&&!!Ut(new window.DataView(a.g),0,1718909296):!1:uu(new mu(new window.DataView(a.g)))};
Eu=function(){this.Ga=0;this.g=new window.Float64Array(128);this.o=new window.Float64Array(128);this.B=1;this.A=!1};
Fu=function(a){if(a.g.length<a.Ga+1){var b=2*a.g.length,b=b+2,c=a.g;a.g=new window.Float64Array(b+1);var d=a.o;a.o=new window.Float64Array(b+1);for(b=0;b<a.Ga+1;b++)a.g[b]=c[b],a.o[b]=d[b]}};
Gu=function(a,b,c,d,e,f){Gt.call(this,a,b,c||void 0);this.indexRange=d;this.C=null;this.index=new Eu;this.o=e;this.lastModified=f};
Hu=function(a,b,c,d){for(var e=[];b<=a.index.Zb();b++){var f;f=a.index;f=Ys(f.Fl(b),b+1<f.Ga||f.A?f.g[b+1]-f.g[b]:-1);var k=a.index.rf(b),l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m);e.push(new Ht(3,a,f,b,k,l,m,n,b==a.index.Zb()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new Mt(e)};
Iu=function(a,b,c){g.en.call(this);this.P=this.duration=0;this.isLive=this.A=!1;this.J=(0,g.Ok)();this.D=window.Infinity;this.g={};this.V=a||"";this.F=this.L=0;this.C=null;this.da=!!b&&b.g("html5_live_nonzero_first_segment_start_time");this.o=!1;this.G=[];this.ga=!!b&&b.g("html5_live_self_init_segments");this.B=null;this.la=c;this.na=!b||!b.g("html5_manifest_without_credentials");this.O=0;this.N=!!b&&b.g("disable_html5_manifest_namespace_redux");this.Z="";this.H=window.NaN;this.ba=b&&b.g("disable_html5_duration_caching")?
window.Infinity:10};
afa=function(a){return Hb(a.g,function(a){return!!a.info.video&&2160<=a.info.video.Pk},a)};
Ju=function(a){return Hb(a.g,function(a){return!!a.info.$e},a)};
Ku=function(a){return Hb(a.g,function(a){return a.info.video?2==a.info.video.projectionType:!1},a)};
Lu=function(a){return Hb(a.g,function(a){return a.info.video?3==a.info.video.projectionType:!1},a)};
Mu=function(a,b,c,d){return d?bfa(a):cfa(a,b,c)};
cfa=function(a,b,c){var d=new Iu;d.duration=c||0;(0,g.H)(a,function(a){var c=Nu(a,b,d.duration),e=Xs(a.init),l=Xs(a.index),m=(0,window.parseInt)(a.clen,10),n=Ou(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);n&&(c=new Gu(n,c,e,l,m,a),d.g[c.info.id]=c)});
return d};
bfa=function(a){var b=new Iu;(0,g.H)(a,function(a){var c=Nu(a);if(a=Ou(a.url,c,a.s))c=new Pt(a,c,"",void 0,void 0,!0),b.g[c.info.id]=c});
b.A=!0;b.o=!0;b.isLive=!0;return b};
Nu=function(a,b,c){var d=a.type,e=a.itag,f=dfa(a),k=null;Gi(d)&&(k=(a.size||"640x360").split("x"),k=new Ai(+k[0],+k[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isAccelerated,a.quality_label,a.eotf,a.primaries,!!a.isAcceleratedUiEnabled));var l=null,m=null;if(Fi(d)){l=0;if("258"==e||"261"==e)l=6;l=new wi(l,+a.spatial_audio_type);a.name&&(m=new xi(a.name,a.audio_track_id,"1"==a.isDefault))}var e=(0,window.parseInt)(a.bitrate,10)/8,n=(0,window.parseInt)(a.clen,10);c=c&&n?n/c:0;var q=null;b&&a.drm_families&&
(q={},(0,g.H)(a.drm_families.split(","),function(a){q[a]=b[a]}));
return new Ci(f,d,l,k,m,q,e,c)};
dfa=function(a){var b=a.itag;a.xtags&&(b=a.itag+";"+a.xtags);return b};
Ou=function(a,b,c){a=new Ms(a);a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&a.set("signature",Js(c));return a};
Ru=function(a,b){var c=Zs(b,"id"),c=c.replace(":",";");"captions"==c&&(c=Zs(b,"lang"));var d=Zs(b,"mimeType"),e=Zs(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Zs(b,"bandwidth"),10)/8,f=(0,window.parseInt)($s(b,"BaseURL").getAttribute(Pu(a,"contentLength")),10),f=a.duration&&f?f/a.duration:0,k=null;if(Gi(d)){var k=(0,window.parseInt)(Zs(b,"width"),10),l=(0,window.parseInt)(Zs(b,"height"),10),m=(0,window.parseInt)(Zs(b,"frameRate"),10),n=Zs(b,Pu(a,"projectionType")),q=Zs(b,Pu(a,"stereoLayout")),
n="equirectangular"==n,t,w;n&&"layout_top_bottom"==q?t=3:n&&!q?t=2:"layout_left_right"==q&&(w=1);k=new Ai(k,l,m,t,w)}w=t=null;if(Fi(d)){Zs(b,"audioSamplingRate");t=(0,window.parseInt)(Zs(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10);var x;w=Zs(b,Pu(a,"spatialAudioType"));"spatial_audio_type_ambisonics_5_1"==w?x=1:"spatial_audio_type_ambisonics_quad"==w&&(x=2);t=new wi(t,x);x=Zs(b,"lang")||"und";(w=$s(b,"Role"))?(m=Zs(w,"value")||"",Qb(Qu,m)?(w=x+"."+Qu[m],l="main"==m,x=Zs(b,
Pu(a,"langName"))||x+" - "+m,w=new xi(x,w,l)):w=null):w=null}l=null;if(x=$s(b,"ContentProtection"))if((l=x.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},x=x.firstChild;null!=x;x=x.nextSibling)"SystemURL"==x.localName&&"http://youtube.com/yt/2012/10/10"==x.namespaceURI&&(l[x.attributes.type.textContent]=x.textContent.trim());else l=null;return new Ci(c,d,t,k,w,l,e,f)};
Su=function(a,b){a.F=1;a.J=(0,g.Ok)();return g.vd(xea(b||a.V,{format:"RAW",method:"GET",withCredentials:a.na}).then((0,g.z)(a.JB,a)),(0,g.z)(a.MB,a))};
efa=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(0<=(0,window.parseInt)(a.split("-")[1],10)?e=Xs(a):d=d+"?range="+a));return new ct(b.g,b.qd,b.durationSecs,b.o,d,e)};
Tu=function(a){return a.isLive&&(0,g.Ok)()-a.J>=a.D};
Uu=function(a){if(Tu(a))a.Lw();else{var b=Math.max(0,a.J+a.D-(0,g.Ok)());a.B||(a.B=new g.Id(a.Lw,b,a),g.M(a,a.B));a.B.start(b)}};
Vu=function(a){a=a.g;for(var b in a){var c=a[b].index;if(c&&c.sf())return c.mp()}return window.NaN};
Wu=function(a){a=a.g;for(var b in a){var c=a[b].index;if(c&&c.sf())return c.Jw()}return 0};
Xu=function(a){if(!(0,window.isNaN)(a.H))return a.H;var b=a.g,c;for(c in b){var d=b[c].index;if(d&&d.sf()){b=0;for(c=d.ji();c<=d.Zb();c++)b+=d.getDuration(c);b/=d.ek();b=.5*Math.round(b/.5);d.ek()>a.ba&&(a.H=b);return b}}return window.NaN};
Xn=function(a,b){if(!a.isLive)return window.NaN;var c=a.g,d;for(d in c){var e=c[d].index;if(e&&e.sf())return c=e.Af(b),ft(e,c)+(b-e.rf(c))}return window.NaN};
ffa=function(a,b){g.Eb(a.g,function(a){g.Eb(b,function(b,c){var d=a.D;d.g.set(c,b);d.B.set(c,b)})})};
Yu=function(a,b){var c=!1,d;for(d in a.g)b.g>a.g[d].index.Zb()&&(a.g[d].index.xa.push(b),c=!0);return c};
Pu=function(a,b){return a.N?"yt:"+b:a.Z+":"+b};
Zu=function(a,b,c){this.g=a;this.o=b;this.C=c;this.B={};this.A=null;this.fairPlayCert=""};
av=function(a){return!a.A&&!!$u()&&"com.microsoft.playready"==a.o};
bv=function(a){return!a.A&&!!$u()&&"com.apple.fps.1_0"==a.o};
$u=function(){var a=window.MSMediaKeys;Th()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
ev=function(a){return window.navigator.requestMediaKeySystemAccess?g.Uh?kt("45"):g.cv?a.g("edge_nonprefixed_eme"):g.dv?kt("47"):!a.g("html5_no_nonprefixed_eme_for_other"):!1};
fv=function(a,b){this.o=[];this.g={};this.A={};this.B=null;this.D=b;gfa(this,a)};
gfa=function(a,b){g.Eb(b,function(a){a.forEach(function(a){a.$e&&g.Eb(a.$e,function(b,c){gv[c]&&g.Eb(gv[c],function(b){this.g[b]=this.g[b]||new Zu(c,b,a.$e[c]);this.A[c]=this.A[c]||{};this.A[c][a.mimeType]=!0},this)},this)},this)},a);
a.o=hfa.filter(function(a){return!!this.g[a]},a)};
ifa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};g.Eb(a.A[b],function(a,e){var d=0==e.indexOf("audio/"),k=d?c.audioCapabilities:c.videoCapabilities;this.D.g("html5_widevine_robustness_strings")&&"widevine"==b?d?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(k.push({contentType:e,robustness:"HW_DECODE_ALL"}),k.push({contentType:e,robustness:"SW_SECURE_DECODE"})):k.push({contentType:e})},a);
return[c]};
jfa=function(a){var b=$u(),c=dr();if(b){if(hv){a.B(new Zu("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=(0,g.z)(c.canPlayType,c):d=function(){return!1};
c=(c=g.Xa(a.o,function(a){var b=this.g[a],c,e;g.Eb(this.A[b.g],function(f,k){d(k,a)&&(b.B[k]=!0,c=c||0==k.indexOf("audio/"),e=e||0==k.indexOf("video/"))},this);
return c&&e},a))?a.g[c]:null;
a.o=[];a.B(c)};
g.iv=function(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.g=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1};
g.jv=function(a){a=a||{};this.L=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.L.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.A=Math.max(d,this.A))}this.o=a.languageCode||"";this.D=a.languageName;this.B=a.kind||"";this.C=a.name;this.Da=a.id;this.O=a.is_servable;this.isDefault=a.is_default;this.G=a.is_translateable;this.H=a.url||null;this.F=a.vss_id||"";this.g=null;a.translationLanguage&&(this.g=new g.iv(a.translationLanguage))};
g.kv=function(a){var b=a.D||"",c=[b];"asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",g.Q("YTP_ASR_SETTINGS_LABEL"),")");a.C&&c.push(" - ",a.C);a.g&&c.push(" >> ",a.g.languageName);return c.join("")};
lv=function(a,b){this.id=a;this.yc=b;this.captionTracks=[];this.Wj=this.Jm=null;this.kr=0};
mv=function(a,b,c){this.videoInfos=a;this.g=b||null;this.audioTracks=[];this.o=c||null;if(this.g){var d={};(0,g.H)(this.g,(0,g.z)(function(a){if(a.yc&&!d[a.id]){var b=new lv(a.id,a.yc);d[a.id]=b;this.audioTracks.push(b)}},this))}};
nv=function(a,b){this.od=a;this.g=b};
ov=function(a){this.g=[];if(a)a:{var b;if(a instanceof ov){if(b=a.rb(),a=a.$a(),0>=this.xc()){for(var c=this.g,d=0;d<b.length;d++)c.push(new nv(b[d],a[d]));break a}}else b=g.Ob(a),a=g.Lb(a);for(d=0;d<b.length;d++)pv(this,b[d],a[d])}};
pv=function(a,b,c){var d=a.g;d.push(new nv(b,c));b=d.length-1;a=a.g;for(c=a[b];0<b;)if(d=b-1>>1,a[d].od>c.od)a[b]=a[d],b=d;else break;a[b]=c};
qv=function(){ov.call(this)};
rv=function(a){g.en.call(this);this.B=new qv;this.o=null;this.G={};this.F=a||""};
vv=function(a,b,c){for(c=tv(a,c);0<=c;){var d=a.g[c];if(d.A[Math.floor(b/(d.Mc*d.rows))]&&(d=uv(d,b)))return d;c--}return uv(a.g[0],b)};
xv=function(a,b,c){c=tv(a,c);for(var d,e;0<=c;c--)if(d=a.g[c],e=Math.floor(b/(d.Mc*d.rows)),!d.A[e]){d=a;var f=c,k=f+"-"+e;d.G[k]||(d.G[k]=!0,pv(d.B,f,{Dt:f,Kt:e}))}wv(a)};
wv=function(a){if(!a.o&&!a.B.isEmpty()){var b=a.B.remove(),c=new window.Image;a.F&&(c.crossOrigin=a.F);c.src=yv(a.g[b.Dt],b.Kt);c.onload=(0,g.z)(a.J,a,b.Dt,b.Kt);a.o=c}};
zv=function(a,b,c,d){this.A={};this.O=a;this.J=b;a=c.split("#");this.G=(0,window.parseInt)(a[0],10);this.F=(0,window.parseInt)(a[1],10);this.o=(0,window.parseInt)(a[2],10);this.Mc=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.C=(0,window.parseInt)(a[5],10);this.B=a[6];this.D=a[7];this.L=d};
yv=function(a,b){var c=a.J,c=c.replace("$N",a.B),c=c.replace("$L",a.O.toString()),c=c.replace("$M",b.toString());a.D&&(c=g.ag(c,{sigh:a.D}));return Cp(c)};
uv=function(a,b){var c=Math.floor(b/(a.Mc*a.rows)),d=a.Mc*a.rows,e=b%d,f=e%a.Mc,e=Math.floor(e/a.Mc),k,l=a.xp()+1-d*c;l<a.Mc?(k=l,d=1):(k=a.Mc,d=l<d?Math.ceil(l/a.Mc):a.rows);return{url:yv(a,c),VA:f,Mc:k,oI:e,rows:d,Lt:a.G*k,Jt:a.F*d}};
Av=function(a,b,c){rv.call(this,c);this.g=this.A(a,b);this.C={};1<this.g.length&&this.g[0].isDefault()&&this.g.splice(0,1)};
tv=function(a,b){var c=a.C[b];if(c)return c;for(var c=a.g.length,d=0;d<c;d++)if(a.g[d].yb()>=b)return a.C[b]=d;a.C[b]=c-1;return c-1};
Bv=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");zv.call(this,a,b,c,0);this.g=null;this.H=d?3:0};
Cv=function(a,b){this.L=b;Av.call(this,a,0)};
Dv=function(a){this.A=a||null;this.o=0;this.g=null};
Ev=function(a){var b=new Dv;b.o=2;b.g=a;return b};
Fv=function(a){var b=new Dv;b.o=1;b.g=a;return b};
Gv=function(a,b){return void 0==b?a:"1"==b?!0:!1};
Hv=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Iv=function(a,b){return void 0==b?a:Number(b)};
Jv=function(a,b){return void 0==b?a:b.toString()};
Kv=function(a){if(a&&(a=a.match(kfa))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};
Lv=function(a,b){var c=g.zi.auto,d=g.zi[b];return d>g.zi.medium?new Ii(d,c,!1):d>=c?new Ii(c,d,!1):a};
Mv=function(a){return a.docid||a.video_id||a.videoId||a.id};
Nv=function(a,b){this.version=a;this.args=b};
lfa=function(a){if(!a.Tf){var b={};a.call(b);a.Tf=b.version}return a.Tf};
mfa=function(a){function b(){c.apply(this,a.args)}
var c=Ov.g;if(!a.args||!a.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=lfa(c)}catch(e){}if(!d||a.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");b.prototype=c.prototype;try{return new b}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}};
Pv=function(a,b){this.topic=a;this.g=b};
Qv=function(a){Nv.call(this,1,arguments);this.g=a};
nfa=function(a){var b=Rv();b&&b.publish.call(b,Ov.toString(),Ov,a)};
ofa=function(a,b){var c=Rv();if(!c)return 0;var d=c.subscribe(Ov.toString(),function(c,f){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=d){var e=function(){if(Sv[d])try{if(f&&Ov instanceof Pv&&Ov!=c)try{f=mfa(f)}catch(l){throw l.message="yt.pubsub2 cross-binary conversion error for "+Ov.toString()+": "+l.message,l;}a.call(b||window,f)}catch(l){eh(l)}};
Tv[Ov.toString()]?lr()?mr(e,void 0):g.ah(e,0):e()}});
Sv[d]=!0;Uv[Ov.toString()]||(Uv[Ov.toString()]=[]);Uv[Ov.toString()].push(d);return d};
Wv=function(a,b){var c=ofa(function(d){a.apply(b,arguments);Vv(c)},b);
return c};
Vv=function(a){var b=Rv();b&&(g.qa(a)&&(a=[a]),(0,g.H)(a,function(a){b.unsubscribeByKey(a);delete Sv[a]}))};
Rv=function(){return u("yt.pubsub2.instance_")};
Yv=function(a){var b="above_the_fold";Xv&&Xv.measure&&(g.za(b,"measure_")||(b="measure_"+b),Xv.measure(b,a?a:"navigationStart"))};
g.cw=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;Xv.mark&&(g.za(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),Xv.mark(d))}var d=Zv(c),e=b||(0,g.Ok)();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;$v(c)["tick_"+a]=b;c||b||(0,g.Ok)();g.Yl("csi_on_gel")?(d=aw(c),"_start"==a?Wm("latencyActionBaselined",{clientActionNonce:d},b):Wm("latencyActionTicked",{tickName:a,clientActionNonce:d},b),a=!0):a=!1;a||bw(c)};
ew=function(a,b){g.dw("yt_sts",a,b);g.cw("_start",void 0,b)};
fw=function(a,b){var c=Zv(b);return a in c};
g.dw=function(a,b,c){var d=gw(c).info[a]=b;$v(c)["info_"+a]=d;g.Yl("csi_on_gel")&&(a in hw?(b={},a=hw[a],g.ab(pfa,a)&&(d=!!d),b[a]=d,c=aw(c),b.clientActionNonce=c,Wm("latencyActionInfo",b)):a in qfa||eh(Error("Unknown label "+a+" logged with GEL CSI.")))};
kw=function(a){iw(a);rfa();jw(!1,a);a||(Xl("PREVIOUS_ACTION",g.Zg("TIMING_ACTION")),Xl("TIMING_ACTION",""))};
nw=function(a,b){a:if(!lw(a)){if(!g.Yl("send_empty_timing")){var c=g.Zg("CSI_SERVICE_NAME","youtube");if(!g.Zg((a||"")+"TIMING_ACTION",void 0)||!c)break a}g.cw("aa",void 0,a);g.dw("ap",1,a);g.dw("yt_fss","c",a);mw(a)}kw(a);Xl(a+"TIMING_AFT_KEYS",b);Xl(a+"TIMING_ACTION",a);ew("c",a);g.ka("yt.timing."+(a||"")+"ready_",!0,void 0);bw(a)};
ow=function(a){var b=Zv(a);if(b.aft)return b.aft;a=g.Zg((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 window.NaN};
mw=function(a){if(!g.Yl("csi_on_gel")){var b=Zv(a),c=gw(a).info,d=b._start,e;for(e in b)if(g.za(e,"_")&&na(b[e])){var f=e.slice(1);if(f in sfa){var k=(0,g.S)(b[e],function(a){return Math.round(a-d)});
c["all_"+f]=k.join()}delete b[e]}f=!!c.ap;if(k=u("yt.timing.reportbuilder_")){if(k=k(b,c,a))pw(k,f),kw(a)}else{var l=g.Zg("CSI_SERVICE_NAME","youtube"),k={v:2,s:l,action:g.Zg((a||"")+"TIMING_ACTION",void 0)},m=c.srt;void 0!==b.srt&&delete c.srt;if(c.h5jse){var n=window.location.protocol+u("ytplayer.config.assets.js");(n=Xv.getEntriesByName?Xv.getEntriesByName(n)[0]:null)?c.h5jse=Math.round(c.h5jse-n.responseEnd):delete c.h5jse}b.aft=ow(a);tfa(a)&&"youtube"==l&&(g.dw("yt_lt","hot_bg",a),l=b.vc,n=b.pbs,
delete b.aft,c.aft=Math.round(n-l));for(var q in c)"_"!=q.charAt(0)&&(k[q]=c[q]);b.ps=(0,g.Ok)();c={};q=[];for(e in b)"_"!=e.charAt(0)&&(l=Math.round(b[e]-d),c[e]=l,q.push(e+"."+l));k.rt=q.join(",");(b=u("ytdebug.logTiming"))&&b(k,c);pw(k,f,a);nfa(new Qv(c.aft+(m||0)))}}};
bw=function(a){if(!lw(a)){var b=g.Zg((a||"")+"TIMING_ACTION",void 0),c=Zv(a);if(u("yt.timing."+(a||"")+"ready_")&&b&&c._start&&ow(a))if(a)mw(a);else{var b=!0,d=g.Zg("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&mw(a)}}};
pw=function(a,b,c){if(g.Yl("debug_csi_data")){var d=u("yt.timing.csiData");d||(d=[],g.ka("yt.timing.csiData",d,void 0));d.push({page:window.location.href,time:new Date,args:a})}var d="",e;for(e in a)d+="&"+e+"="+a[e];a="/csi_204?"+d.substring(1);if(window.navigator&&window.navigator.sendBeacon&&b)try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||g.oi(a,void 0)}catch(f){g.oi(a,void 0)}else g.oi(a);jw(!0,c)};
aw=function(a){var b=gw(a).nonce;b||(b=Pj(),gw(a).nonce=b);return b};
Zv=function(a){return gw(a).tick};
$v=function(a){a=gw(a);"gel"in a||(a.gel={});return a.gel};
gw=function(a){return u("ytcsi."+(a||"")+"data_")||iw(a)};
iw=function(a){var b={tick:{},info:{}};g.ka("ytcsi."+(a||"")+"data_",b,void 0);return b};
lw=function(a){return!!u("yt.timing."+(a||"")+"pingSent_")};
jw=function(a,b){g.ka("yt.timing."+(b||"")+"pingSent_",a,void 0)};
tfa=function(a){var b=Zv(a),c=b.pbr,d=b.vc,b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==gw(a).info.yt_pvis};
ufa=function(){switch(oh("visibilityState",window.document)){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
vfa=function(){g.cw("vptl",0);g.cw("vpl",0)};
qw=function(a){this.C=Math.exp(Math.log(.5)/a);this.A=this.B=0};
rw=function(a,b,c){this.H=0;this.F=a;this.C=b||.5;this.D=c||0;this.G="index";this.A=0;this.B=[]};
uw=function(a,b){tw(a,"value");var c=b*a.A,d=0,e=window.NaN;a.B.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e};
tw=function(a,b){a.G!=b&&(a.G=b,taa(a.B,b))};
vw=function(a){this.B=a;this.A=[]};
wfa=function(){this.A=0;this.o=this.F=this.B=this.C=window.NaN;this.D=0;this.J=this.L=this.G=this.H=window.NaN;this.g=""};
xfa=function(a){this.g=a;this.J=this.L=0;this.C=-1;this.H=(0,g.Ok)();this.G=new rw(4,.6);this.D=new qw(4);this.B=this.g.D?new qw(this.g.g):new rw(this.g.g,.5,.1);this.F=new vw(this.g.g);this.o=this.g.G?new qw(this.g.C):null;this.A=new rw(30,.5);a=g.Hj("yt-player-bandwidth")||{};var b=0<a.byterate?a.byterate:this.g.A;this.B.g(this.g.B,b);this.o&&this.o.g(this.g.B,0<a.ltByterate?a.ltByterate:b);0<a.delay&&this.G.g(1,Math.min(+a.delay,2));0<a.stall?this.D.g(1,+a.stall):0<a.tailDelay&&this.D.g(1,+a.tailDelay);
this.C=(0,g.Ok)()};
ww=function(a,b,c){b=Math.max(b,.05);a.B.g(b,c/b);a.o&&a.o.g(b,c/b);a.H=(0,g.Ok)()};
xw=function(a){a=a.G.o();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
yw=function(a,b,c){(0,window.isNaN)(c)||(a.J+=c);(0,window.isNaN)(b)||(a.L+=b)};
zw=function(a){return a.D.o()||0};
g.Aw=function(a){var b=a.B.o(),b=0<b?b:1;if(!a.g.F)return b;a=a.F.o();a=0<a?a:1;return a>2*b?(b+a)/2:b};
Bw=function(a){a=a.o.o();return 0<a?a:1};
Cw=function(a){var b={};b.delay=xw(a);b.stall=zw(a);b.byterate=g.Aw(a);a.o&&(b.ltByterate=Bw(a));return b};
Dw=function(a){-1<a.C&&3E4<(0,g.Ok)()-a.C&&(Jj(Cw(a)),a.C=(0,g.Ok)())};
Ew=function(a){return 4E3<=(0,g.Ok)()-a.H};
yfa=function(){this.g=17;this.A=13E4;this.B=.5;this.D=!1;this.F=!0;this.G=!1;this.C=60;this.o=0};
Fw=function(){g.en.call(this);this.g={}};
Gw=function(a,b,c){if(!a.g[b]&&(c.fg||c.yh)){var d=a.g,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.$("vast_info_card_add",b)}};
Lw=function(a,b){var c;(c=a.adformat)||(c=(c=a.attrib)&&Qb(Hw,c)&&Qb(Iw,c)?Iw[c]+"_"+Hw[c]:void 0);if(!c)return null;var d=c.match(Jw);if(!d||5!=d.length)return null;d=Kw(c);return b.C||b.kb||d?c:null};
Kw=function(a){a=a.match(Jw);var b=a[3];return!(1==a[1]&&8==b)&&(7==b||8==b||10==b)};
Mw=function(a){ya.call(this,a.message||a.description||a.name);this.g=a instanceof qi&&"net.timeout"==a.errorCode;this.o=a instanceof Bd};
Nw=function(a,b){this.o=a;this.g=b};
Sw=function(){try{var a=u("yt.www.ads.biscotti.getId_"),b;if(a)b=a();else{if(!Ow){var c=(0,g.z)(Pw,r,2);Ow=ri("//googleads.g.doubleclick.net/pagead/id",Qw).then(Rw,c)}b=Ow}return b}catch(d){return qd(d)}};
Rw=function(a){a=a.responseText;if(!g.za(a,")]}'"))return Tw(""),Ow=new Nw(""),"";a=JSON.parse(a.substr(4)).id;Tw(a);Ow=new Nw(a);Uw(18E5,2);return a};
Pw=function(a,b){var c=new Mw(b);Tw("");Ow=new Nw(void 0,c);0<a&&Uw(12E4,a-1);throw c;};
Uw=function(a,b){g.ah(function(){var a=(0,g.z)(Pw,r,b);g.vd(ri("//googleads.g.doubleclick.net/pagead/id",Qw).then(Rw,a),g.v)},a)};
Tw=function(a){g.ka("yt.www.ads.biscotti.lastId_",a,void 0)};
Vw=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=g.zh(b||"","&");var c={};(0,g.H)(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.B=!!c["9405409"];this.C=!!c["9416855"];this.D=!!c["9406692"];this.A=!!c["9406693"]||!!c["9417210"]&&hv&&g.oc(8);this.enableAudioCast=!!c["9408394"];this.G=!!c["9414740"];this.F=!!c["9407182"]};
zfa=function(a,b,c,d){this.C=a;this.g=b;this.D=c;this.F=!!d;this.A={};this.B=!!u("cast.receiver.platform.canDisplayType");this.o=!this.B&&u("cast.receiver.platform.getValue")&&window.cast.receiver.platform.getValue("max-video-resolution-vpx")||null};
Yw=function(a,b){if(2.2!=Ww&&er(a.g)||a.C.g("king_crimson_player")&&Oh()&&kt(55)&&!a.F)return Ev();for(var c={},d=dr(),e=0;e<b.length;e++){var f=b[e];if(Bi(f.Kd)in Afa||"5"==Bi(f.Kd)?0:Xw(d,f.Kd.mimeType)){var k=f.Kd.video.quality;c[k]&&2!=c[k].Kd.o||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);(0,g.H)(yi,function(a){(f=c[a])&&l.push(f)});
return Fv(l)};
Xw=function(a,b){var c=a.canPlayType(b);Ck?c=c||Bfa[b]:2.2==Ww?c=c||Cfa[b]:Oh()&&(c=c||Dfa[b]);return!!c};
g.$w=function(){return!(!Xw(dr(),"application/x-mpegURL")&&!Zw())};
Zw=function(){var a=Oh()&&!kt(29),b=Nh("google tv")&&Nh("chrome")&&!kt(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
ax=function(a,b){var c={},d;for(d in b.g){var e=b.g[d];("304"!=Bi(e.info)||b.A)&&Efa(a,e.info)&&(c[e.info.A]=c[e.info.A]||[],c[e.info.A].push(e.info))}return c};
Ffa=function(a,b,c){var d={},e;g.Eb(b,function(a,b){var f=a.filter(function(a){return a.$e?c&&a.$e[c.g]&&c.B[a.mimeType]?"261"==Bi(a)?(e||(e=dr()),!1):!0:!1:!0},this);
f.length&&(d[b]=f)},a);
return d};
gx=function(a,b,c,d,e){function f(a){return!!k[a]}
var k=ax(a,b);Ju(b)&&(k=Ffa(a,k,c));var l=Gfa;a.g?!Nh("windows nt 5.1")||g.dv&&!a.C.g("html5_prefer_h264_on_xp")?(Ku(b)||Lu(b))&&bx&&6>=Ww&&(l=cx):l=cx:l=Hfa;c=Ifa;d&&(a.g&&(l=cx),c=Jfa);if(Qh()||g.Rh()||Et(a,dx))c=Kfa;(Ku(b)||Lu(b))&&e&&(c=Lfa.concat(c));b=g.Xa(l,f);d=g.Xa(c,f);if(!b||!d)return Ev();"9"==b&&k.h&&(e=function(a,b){return Math.max(a,b.video.height)},c=we(k["9"],e,0),we(k.h,e,0)>1.5*c&&(b="h"));
e=k[b];c=k[d];e=ex(a,e);fx(e,c);return Fv(new mv(e,c,Mfa(a,k,b,d)))};
Mfa=function(a,b,c,d){var e=a.g?b.h:b[c];b=b.a;c=a.g&&"h"!=c;return e&&b&&(c||"a"!=d)?(e=ex(a,e),fx(e,b),new mv(e,b)):null};
fx=function(a,b){ub(a,function(a,b){return b.video.height*b.video.width-a.video.height*a.video.width||b.g-a.g});
ub(b,function(a,b){return b.g-a.g})};
ex=function(a,b){var c=ph(b,function(a){return 32<a.video.fps});
c&&(b=a.D||Et(a,hx)?(0,g.Od)(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):(0,g.Od)(b,function(a){return!(32<a.video.fps)}));
c&&Qh()&&(b=(0,g.Od)(b,function(a){return"299"!=Bi(a)}));
return b};
Efa=function(a,b){if("0"==Bi(b)&&!a.g)return!0;var c=b.mimeType,d={};b.video&&(b.video.width&&(d[ix.name]=b.video.width),b.video.height&&(d[jx.name]=b.video.height),b.video.fps&&(d[hx.name]=b.video.fps),b.video.g&&(d[kx.name]=b.video.g),b.g&&(d[Ft.name]=8*b.g));b.audio&&b.audio.g&&(d[dx.name]=b.audio.g);for(var e in lx){var f=lx[e];if(d[f.name])if(Et(a,f))if(a.o){if(a.o[f.name]<d[f.name])return!1}else c=c+"; "+f.name+"="+d[f.name];else if("9h"==b.A&&f==kx)return!1}!a.C.g("disable_html5_cast_hdcp_filter2")&&
a.B&&b.video&&1080<b.video.Pk&&b.$e&&(c+="; hdcp=2.2");return mx(a,c)};
Et=function(a,b){if(!(b.name in a.A)){var c=a.A,d=b.name,e;a.o?e=!!a.o[b.name]:(b.video?(e='video/webm; codecs="vp9"',mx(a,e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',mx(a,e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=mx(a,e+"; "+b.name+"="+b.valid)&&!mx(a,e+"; "+b.name+"="+b.dh));c[d]=e}return a.A[b.name]};
mx=function(a,b){return a.B?window.cast.receiver.platform.canDisplayType(b):zt(b)};
zx=function(a){g.L.call(this);a=Wb(a);this.g="detailpage";this.ba=null;this.xk=this.Ib=this.P=!1;this.L={};this.experiments=new Vw(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(f){b=""}this.sb=b;b=this.fa=(this.C=Nfa.test(this.sb))?Jv("",a.loaderUrl):this.sb;var c=Ofa.test(b),d;d=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Pfa.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(b);if(!c&&d){var e=Error("isTrustedLoader("+
b+") behavior is not consistent");.01>Math.random()&&eh(e,"WARNING")}Qfa.test(b)&&.01>Math.random()&&eh(Error("isTrustedLoader URL warning: "+b.split("?")[0]),"WARNING");this.kb=c||d;this.ga=(this.Qk=(this.te=Gv(!1,a.ssl_stream))||Gv(!1,a.ssl))?"https":"http";this.baseYtUrl=zp(a.BASE_YT_URL)||zp(this.sb)||this.ga+"://www.youtube.com/";b=0;c="discover";"adunit"==a.el?nx.test(this.fa)?(this.g="adunit",(b=Iv(0,a.remote_ve_id))&&g.ab(["top","window","discover"],a.remote_ve_window)&&(c=a.remote_ve_window)):
this.g="embedded":"embedded"==a.el||this.kb?this.g=Hv(this.g,a.el,Rfa):a.el&&(this.g="embedded");this.va=b;this.ci=c;gk();b=null;c=a.ps;d=g.ab(ox,c);!c||d&&!this.kb||(b=c);this.o=b;this.J=(this.Ic=g.ab(ox,this.o))&&"play"!=this.o;this.Dd=!this.J;this.A={};this.A.c=a.c||"web";this.A.cver=a.cver||"html5";this.A.cplayer="UNIPLAYER";this.Oa=!(!dr().defaultPlaybackRate||g.rc&&!Nh("chrome")||px||qx||Nh("android")||Nh("silk"));this.isMobile=Gv("blazer"==this.o,a.is_html5_mobile_device);this.V="3"==this.B||
this.isMobile||Gv(!1,a.use_media_volume);this.da=(!this.experiments.g("legacy_volume_updates")||!this.V)&&fr();this.fi=rx;this.H=Gv(!1,a.is_dni);this.Vk=Gv(!1,a.vss_dni_reporting);this.qb=Jv("#cc181e",a.dni_color);this.Nb=this.H||Gv("adunit"!=this.g&&"detailpage"!=this.g&&!this.Ic,this.experiments.g("embed_show_infobar")||a.showinfo);this.re=Gv(!1,a.playsinline);b=this.isMobile&&bx&&2.3>=Ww;c=this.isMobile&&(!this.experiments.g("html5_prefer_standard_controls")||!g.sx);c=nj(this)||!b&&Gv(c,a.use_native_controls)?
"3":"1";this.B="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=Hv("red",a.color,Sfa);this.Nh="3"==this.B||Gv(!1,a.modestbranding)&&"red"==this.color;this.la=0==this.fa.indexOf(this.baseYtUrl);this.ve=(c=!this.la&&"detailpage"!=this.g&&!this.J&&!this.Ic)&&!this.Nh&&"1"==this.B;this.we="embedded"==this.g&&c&&!this.Nb&&!this.ve;this.Ok=this.Hh=b;this.dc=0<this.va||!qx||g.oc(601)?!0:!1;this.Kh=this.C||!1;this.pa="detailpage"==this.g?"":(this.fa||a.post_message_origin||"").substring(0,
128);this.widgetReferrer=Jv("",a.widget_referrer);this.N=(!this.kb||Gv(!0,a.enablecastapi))&&"1"==this.B&&!this.isMobile&&("detailpage"==this.g||"embedded"==this.g||"profilepage"==this.g);this.Ih=(this.ca=Gv(!1,a.autoplay))||"detailpage"==this.g;this.bc=!this.isMobile&&!Wh()&&!Nh("nintendo 3ds")||Gv(!1,a.autoplayoverride);this.Ia=(this.experiments.g("legacy_volume_updates")||this.da)&&!nj(this)&&this.experiments.g("mweb_muted_autoplay")&&(tx&&g.oc(602)||g.sx&&g.Uh&&g.oc(53));b=("detailpage"==this.g||
"adunit"==this.g)&&("blazer"==this.o||"mweb-polymer"==this.o);this.Eb=!Gv(!0,a.fs);this.wa=!this.Eb&&(b||uh());this.Rb=Gv(!this.Ic,this.experiments.g("embed_deprecate_rel")||a.rel);this.Ei="adunit"!=this.g;this.Aa="profilepage"==this.g;this.Lb="blazer"==this.o||"mweb-polymer"==this.o;switch(this.o){case "blogger":b="bl";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.Ja=b;this.hc=Jv("",
a.authuser);this.Ek=!!this.hc&&Gv(!this.J,a.showwatchlater);this.Cd=Gv(!1,a.disablekb);this.experiments.g("mweb_autonav")&&ux();this.pageId=Jv("",a.pageid);this.Oh=Lv(Li,a.vq);this.Sh=Jv("",a.playerapiid);this.Di=Gv(!0,a.canplaylive);this.Jh=Gv(this.Ic,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length?b=null:(b=(0,window.parseInt)(c[0],10),c=(0,window.parseInt)(c[1],10),b=(0,window.isNaN)(b)||(0,window.isNaN)(c)||0>=b*c?null:new g.ze(b,c))):b=null;this.uf=b;this.mute=this.kb&&Gv(!1,
a.mute);this.storeUserVolume=!this.mute&&Gv("0"!=this.B,a.store_user_volume);this.wi=Gv(!1,a.retryneterr)&&this.kb;this.Eg="3"==this.B?3:Hv(void 0,a.iv_load_policy,vx);this.fb=Gv(!1,a.iv_allow_in_place_switch);this.tc=Jv("",a.cc_lang_pref);b=Hv(2,a.cc_load_policy,vx);"3"==this.B&&2==b&&(b=3);this.ra=b;this.Na=void 0==a.content_v?void 0:a.content_v.toString();this.Lh=void 0==a.framer?void 0:a.framer.toString();this.Ua=Jv("en_US",a.hl);this.region=Jv("US",a.cr);this.hostLanguage=Jv("en",a.host_language);
this.pe=Gv(!1,a.privembed);this.qe="";this.Db=new Jm;this.F=Gv(!0,a.deviceHasDisplay);this.uc=Iv(this.uc,a.ismb);wx(this,a);this.L=a;this.O=new Fw;this.Z=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.A.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.g("disable_innertube_config_reporting")||eh(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.A.c+",context_client_version="+
b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.Mh={apiaryHost:Jv("",b.apiary_host),qm:Jv("",b.apiary_host_firstparty),gapiHintOverride:Gv(!1,b.gapi_hint_override),gapiHintParams:Jv("",b.gapi_hint_params),innertubeApiKey:Jv("",b.innertube_api_key),innertubeApiVersion:Jv("",b.innertube_api_version),Pn:this.A.c,innertubeContextClientVersion:Jv("",b.innertube_context_client_version),Rn:this.hostLanguage,Qn:this.region};this.ue=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;
this.G=new zfa(this.experiments,this.F,xx(this)||Qh()||g.Rh()||/STEAK/.test(this.A.cmodel),0<this.va);b=new yfa;g.At(this)&&(b.D=!0,b.B=.1);this.experiments.g("html5_ewma_bandwidth_estimator")&&(b.D=!0);this.experiments.g("html5_disable_aux_bandwidth_estimator")&&(b.F=!1);this.experiments.g("html5_use_long_term_bandwidth_estimator")&&(b.G=!0,b.C=this.experiments.o("html5_long_term_bandwidth_window_size")||b.C);this.uc&&(b.A=this.uc/8);b.g=this.experiments.o("html5_bandwidth_window_size")||b.g;this.D=
new xfa(b);this.enableSafetyMode=Gv(!1,a.enable_safety_mode);this.Fc=yx(this)&&"blazer"!=this.o&&"mweb-polymer"!=this.o;this.Xa=Gv(!1,a.send_visitor_id_header)||this.experiments.G;this.Ig=!1};
Ax=function(a,b){a.hd=b.get("d",a.hd);a.ac=b.get("f",a.ac)};
wx=function(a,b){var c=Lw(b,a),d=!0;c&&(a.L.adformat=b.adformat,Kw(c)||(a.ba="adunit"==a.g?a.ba:a.g,a.g="adunit",d=!1));d&&a.ba&&(a.g=a.ba,a.ba=null);if(c=b.video_id&&b.video_id!=a.qe)a.qe=b.video_id;(b.adpings||c)&&b.adpings&&g.Bh(b.adpings);a.Dd?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||"s.youtube.com",a.experiments.F&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.Dg=d;a.tf="//"+a.Dg+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.Fg=d,a.L.feature=
d;if(b.referrer||c)c=b.referrer,a.referrer=c,a.L.referrer=c;for(var e in Bx)c=Bx[e],d=b[c],void 0!=d&&(a.A[c]=d);!a.ab&&b.cl&&(a.ab=+b.cl);a.userAge=Iv(a.userAge,b.user_age);a.userDisplayImage=Jv(a.userDisplayImage,b.user_display_image);g.Cx.test(a.userDisplayImage)||(a.userDisplayImage="");a.userDisplayName=Jv(a.userDisplayName,b.user_display_name);a.userGender=Jv(a.userGender,b.user_gender);a.na=Jv(a.na,b.eventid);a.na&&(Nj=a.na);a.csiPageType=Jv(a.csiPageType,b.csi_page_type);a.ib=Jv(a.ib,b.csi_service_name);
a.Lb=Gv(a.Lb,b.enablecsi);b.enabled_engage_types&&(a.Db=new Jm(b.enabled_engage_types.split(",")));a.fb=Gv(a.fb,b.iv_allow_in_place_switch)};
Pn=function(a,b,c){return b.Z&&(a.experiments.g("legacy_autoplay_flag")||"detailpage"!=a.g||c||b.hd)};
Dx=function(a){var b=g.Sf(a.baseYtUrl);(a=g.Tf(a.baseYtUrl))&&(b+=":"+a);return"www.youtube-nocookie.com"==b?"www.youtube.com":b};
Ex=function(a){return"gaming"==a.o?"gaming.youtube.com":Dx(a)};
Fx=function(a,b,c){return a.ga+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
Gx=function(a){return"detailpage"==a.g&&"gaming"!=a.o};
nj=function(a){return qx&&!a.re||Wh()||Nh("nintendo 3ds")?!0:!1};
g.At=function(a){return Vh()||"TV"==a.A.cplatform};
g.Hx=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
xx=function(a){return"web"==a.A.c.toLowerCase().substr(0,3)};
g.Ix=function(a){return"WEB_UNPLUGGED"==a.A.c};
ux=function(){u("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer");return!1};
g.Jx=function(a){return a.F&&g.Uh&&!Ck&&"3"!==a.B?g.sx?a.experiments.g("spherical_on_android_iframe")&&a.C&&g.oc(51):!0:!1};
g.Kx=function(a){return a.F&&g.dv&&!Ck&&"3"!==a.B?g.sx?a.experiments.g("spherical_on_android_iframe")&&a.C&&g.oc(48):g.oc(38):!1};
Mx=function(a){return g.Jx(a)||g.Kx(a)||(a.F&&g.rc&&!Ck&&"3"!==a.B?g.sx?a.experiments.g("spherical_on_android_iframe")&&a.C&&g.oc(37):g.oc(27):!1)||a.F&&g.Lx&&!Xh()&&g.oc(11)};
Tfa=function(a){return a.experiments.g("disable_html5_ambisonic_audio")||!(Mx(a)||a.experiments.A||a.experiments.g("html5_enable_spherical3d"))||g.dv&&!g.oc(47)?!1:window.AudioContext||window.webkitAudioContext?!0:!1};
yx=function(a){return"detailpage"==a.g||"detailpage"==a.ba};
Ufa=function(a,b){this.o=a;this.g=b;this.A=0};
Vfa=function(a){for(var b=[],c=[],d=0,e=a.g.length;d<e;++d){var f=a.g[d];f.bitrate<=a.A?b.push(f):c.push(f)}b.sort(function(a,b){return b.bitrate-a.bitrate});
c.sort(function(a,b){return a.bitrate-b.bitrate});
a.g=b.concat(c)};
Wfa=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.yr=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.g=m||""};
Xfa=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e;e=a[c];var f=e.type.match(/codecs="([^"]*)"/);e=new Wfa(e.itag,e.url,f?f[1]:"",+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families);b[e.itag]=e}return b};
Nx=function(a,b){this.Kd=a;this.B=b;this.g=null};
Ox=function(a,b,c,d,e,f,k,l,m){var n=new wi;d=new Ai(d,e,f,null,void 0,k);c=new Ci(c,"application/x-mpegURL",n,d,void 0,m);a=new Ufa(a,b);a.A=l?l:1369843;return new Nx(c,a)};
Yfa=function(a,b,c){if(!Ck&&!Th())return Ev();b=Xfa(b);if(!b)return Ev();var d={yU:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,f=[],k=[],l=[],m;for(m in b){var n=b[m];if(n.width){var q=b[n.audioItag];q&&(f.push(n),e="fairplay"==n.g?d:null,l.push(Ox([q],[n],n.itag,n.width,n.height,n.fps,void 0,void 0,e)))}else k.push(n)}e=l.reduce(function(a,b){return!!b.Kd.$e&&a},!0)?d:null;
l.push(Ox(k,f,"93",0,0,0,"auto",c,e));return Yw(a.G,l)};
Px=function(a,b,c){this.Kd=a;this.B=b;this.g=c};
Qx=function(a,b,c){for(var d=[],e=0;e<a.length;e++){var f=a[e];if(f.url){var k=f.url,l=null;c&&(l=new Ms(k));if(f.sig||f.s){var m=f.sig||Js(f.s),k=g.ag(k,{signature:m});l&&l.set("signature",m)}k=g.ag(k,b);if(l)for(var n in b)l.set(n,b[n]);f=Hi(f.type,f.quality,f.itag,f.width,f.height,!!f.isAccelerated,!!f.isAcceleratedUiEnabled);d.push(new Px(f,k,l))}}return d};
Rx=function(a,b){this.Kd=a;this.g=b};
Zfa=function(a){var b=[];(0,g.H)(a,function(a){if(a.url){var c=Hi(a.type,"medium","0");b.push(new Rx(c,a.url))}});
return b};
g.Sx=function(a){g.en.call(this);this.adModule=!1;this.adaptiveFormats="";this.Ia=null;this.allowEmbed=!0;this.P=this.backgroundable=!1;this.ra="";this.ac=this.Ek=!1;this.Rb=g.Sx.o;this.watchAjaxToken=this.ve=null;this.author="";this.re=0;this.Lv=this.bc=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.channelPath=this.dc="";this.contentCheckOk=!1;this.pa=0;this.enableCardioBeforePlayback=this.enableCardio=this.Dg=!1;this.wa=0;this.Op=this.V=!1;this.Eb=this.te=0;this.hd=!1;this.paidContentOverlayDurationMs=
0;this.isMdxPlayback=this.isLowLatencyLiveStream=this.isLiveDefaultBroadcast=this.isLiveDestination=this.o=this.Xa=this.isListed=this.Kh=this.Z=!1;this.mdxControlMode=null;this.isPharma=!1;this.da=0;this.Sh="";this.Lh=this.Up=this.Ja=!1;this.liveChunkReadahead=window.NaN;this.liveStartWalltime=0;this.Nh=null;this.Di=this.lengthSeconds=0;this.paygated=!1;this.profilePicture=void 0;this.racyCheckOk=!1;this.rootVeType=0;this.autonavState=1;g.Sx.prototype.ib=Li;this.O=!1;this.Rp=this.startSeconds=0;this.spacecastModule=
!1;this.Lb=null;g.Sx.prototype.sb=Li;this.na=null;this.hlsFormats=this.fa=this.title="";this.we=null;this.wi="vvt";this.requiresPurchase=!1;this.clipStart=0;this.clipEnd=window.Infinity;this.Cd=this.va=this.Ua=!1;this.Ih="";this.ue=this.ci=this.Xv=0;this.Ei={};this.eq="";this.Mp=!1;this.captionTracks=[];this.tf=[];this.Vk=0;this.captionTranslationLanguages=[];this.uf=!1;this.uc=new lv("und",new xi("Default","und",!0));this.Mh=0;this.Oq=this.nq=!1;this.H=null;this.ga=[];this.oy=!1;this.qb={};this.qq=
new g.Id(this.fv,5E3,this);g.M(this,this.qq);this.Fg=0;this.Zv=!0;this.pe=this.la=null;this.J=[];this.C={};this.keywords={};this.F={};Tx(this,a)};
Vx=function(a,b){var c=b||{};c.iv_invideo_url&&(a.ra=Cp(c.iv_invideo_url));c.iv_ads_only&&(a.Ek="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.Ok=c.cta_conversion_urls);a.isPharma=Gv(a.isPharma,c.is_pharma);a.author=Jv(a.author,c.author);a.bc=Gv(a.bc,c.cc_asr);var d=c.ttsurl;Ux.test(d)?a.dc=d:d&&(d=Bp(d),Ux.test(d)&&(a.dc=d));a.Mp=void 0!=c.caption_tracks;c.caption_tracks&&c.caption_audio_tracks&&($fa(a,c.caption_tracks),a.tf=Ch(c.caption_audio_tracks),c.default_audio_track_index&&(a.Vk=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&aga(a,c.caption_translation_languages));a.uf=Gv(a.uf,c.cc_contribute);a.channelPath=Jv(a.channelPath,c.channel_path);a.clientPlaybackNonce=Jv(a.clientPlaybackNonce,c.cpn);a.subscribed=Gv(a.subscribed,c.subscribed);a.wD=Iv(a.wD,c.view_count);a.shortViewCount=Jv(a.shortViewCount,c.short_view_count_text);a.title=Jv(a.title,c.title);a.ypcPreview=Jv(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Jv(a.ypcOrigin,c.ypc_origin);a.paygated=Gv(a.paygated,c.paygated);a.requiresPurchase=
Gv(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=cga(c.keywords));c.rvs&&(a.N=Ch(c.rvs));a.contentCheckOk=Gv(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=Gv(a.racyCheckOk,"1"==c.rco);a.oauthToken=Jv(a.oauthToken,c.oauth_token);a.visitorData=Jv(a.visitorData,c.visitor_data);c.session_data&&(a.dd=g.zh(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Wv=g.zh(c.endscreen_autoplay_session_data,"&"));a.Tv=Jv(a.Tv,c.endscreen_ad_tracking_data);a.sq=Gv(a.sq,c.wait_for_vast_info_cards_xml);
a.fi=Jv(a.fi,c.tracking_list||c.tv_list);c.player_response&&(a.la=g.pf(c.player_response));(0,g.H)(g.Sx.B,function(a){a in c&&(this.C[a]=c[a])},a)};
Tx=function(a,b){var c=b||{};a.P="1"!=c.hlsdvr?!1:Zw()?!0:px&&5>zk?!1:!0;a.AA=c.ad_query_id;a.ry=c.agcid;a.ac="1"==c.infringe||"1"==c.muted;a.Qk=c.authkey;a.hc=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||Pj());(0,g.G)();a.Dg=Gv(a.Dg,c.cenchd);a.enableCardio=Gv(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=Gv(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.wa=Iv(a.wa,c.end||c.endSeconds);a.Fc=Jv(a.Fc,c.itct);a.Kh=Gv(a.Kh,c.noiba);a.Xa="1"==c.livemonitor;
a.o="1"==c.live_playback||!!c.fresca_preroll;a.isLiveDestination=Gv(a.isLiveDestination,c.is_live_destination);a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isLowLatencyLiveStream="1"==c.is_low_latency_live_stream;a.isMdxPlayback=Gv(a.isMdxPlayback,c.mdx);c.mdx_control_mode&&(a.mdxControlMode=Qa(c.mdx_control_mode));a.da=Iv(a.da,c.reload_count);a.Sh=Jv(a.Sh,c.reload_reason);a.Lh=Gv(a.Lh,c.utpsa);a.Iv=c.cyc;for(var d in g.Sx.g){var e=c[d+"_webp"]||c[d];g.Cx.test(e)&&(a.Ei[g.Sx.g[d]]=e)}d=
c.murlmq_webp;g.Cx.test(d)&&(a.eq=d);a.L=Jv(a.L,c.vvt);a.mdxEnvironment=Jv(a.mdxEnvironment,c.mdx_environment);a.BA=c.osig;a.fq=c.ptchn;a.gq=c.oid;a.ab=c.ptk;a.hq=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.osid=c.osid;a.videoMetadata=c.vm;a.vD=c.of;a.playlistId=Jv(a.playlistId,c.list);a.lq=c.pyv_view_beacon_url;a.aB=c.pyv_quartile25_beacon_url;a.uB=c.pyv_quartile50_beacon_url;a.BC=c.pyv_quartile75_beacon_url;a.LA=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);
c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Lq=c.sdetail;!a.Oh&&c.session_data&&(a.Oh=g.zh(c.session_data,"&").feature);a.isFling=1==Iv(a.isFling?1:0,c.is_fling);a.vnd=Iv(a.vnd,c.vnd);a.Eg=Jv(a.Eg,c.force_ads_url);a.Ib=Jv(a.Ib,c.ctrl);a.Oa=Jv(a.Oa,c.ytr);a.tc=c.ytrcc;a.mq=c.ytrexp;a.ib=Lv(a.ib,c.vq);a.sb=Lv(a.sb,c.suggestedQuality);a.Db=c.approx_threed_layout||0;a.Pq=Gv(a.Pq,c.ssrt);a.videoId=Mv(c)||a.videoId;a.vssCredentialsToken=Jv(a.vssCredentialsToken,c.vss_credentials_token);
a.wi=Jv(a.wi,c.vss_credentials_token_type);a.ypcGid=Jv(a.ypcGid,c.ypc_gid);a.heartbeatToken=Jv(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=Iv(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=Iv(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=Gv(a.heartbeatSoftFail,c.heartbeat_soft_fail);a.Jh=Gv(a.Jh,c.ithb);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.J.push("ad")):"1"!=c.supported_without_ads&&(a.Op=!0);c.adaptive_fmts&&
(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.Nb=c.atc);c.license_info&&(a.Ia=dga(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.hd="1"==c.autonav);c.autoplay&&(a.Z="1"==c.autoplay);c.iv_load_policy&&(a.qe=Hv(a.qe,c.iv_load_policy,vx));c.cc_lang_pref&&(a.Iq=Jv(c.cc_lang_pref,a.Iq));c.cc_load_policy&&(a.Jq=Hv(a.Jq,c.cc_load_policy,vx));"0"==c.dash&&(a.Lv=!0);c.dashmpd&&(a.G=g.ag(c.dashmpd,{cpn:a.clientPlaybackNonce}),
d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.G))&&(e=Js(e[1]),a.G=a.G.replace(d,"/signature/"+e));c.delay&&(a.pa=Qa(c.delay));c.drm_session_id&&(a.drmSessionId=c.drm_session_id);void 0!=c.end&&(a.clipEnd=c.end);c.fair_play_cert&&window.atob&&(a.fairPlayCert=(0,window.atob)(c.fair_play_cert));c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.J.push("fresca");c.idpj&&(a.te=Qa(c.idpj));c.ismb&&(a.Eb=Qa(c.ismb));c.is_listed&&(a.isListed=Gv(a.isListed,c.is_listed));c.paid_content_overlay_duration_ms&&(a.paidContentOverlayDurationMs=
Qa(c.paid_content_overlay_duration_ms));c.paid_content_overlay_text&&(a.paidContentOverlayText=c.paid_content_overlay_text);c.url_encoded_fmt_stream_map&&(a.fa=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.hlsvp=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Qa(c.length_seconds));c.live_chunk_readahead&&(a.liveChunkReadahead=Iv(a.liveChunkReadahead,c.live_chunk_readahead));c.live_start_walltime&&(a.liveStartWalltime=Qa(c.live_start_walltime));c.live_manifest_duration&&
(a.Nh=Qa(c.live_manifest_duration));c.ldpj&&(a.Di=Qa(c.ldpj));c.relative_loudness&&(a.Rb=Math.min(1,Math.pow(10,-Qa(c.relative_loudness)/20)));c.partnerid&&(a.Na=Qa(c.partnerid));c.probe_url&&(a.probeUrl=Cp(g.ag(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Jv(c.profile_picture,a.profilePicture));c.pyv_billable_url&&Jp.test(c.pyv_billable_url)&&(a.Dd=c.pyv_billable_url);c.pyv_conv_url&&Jp.test(c.pyv_conv_url)&&(a.Aa=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&
(d=c.video_masthead_ad_quartile_urls,a.Hh=d.quartile_0_url,a.aq=d.quartile_25_url,a.bq=d.quartile_50_url,a.cq=d.quartile_75_url,a.Xp=d.quartile_100_url);"1"==c.spacecast_module&&(a.J.push("spacecast"),a.spacecastModule=!0);c.spacecast_addrs&&(a.spacecastModule=!0,a.qb.addresses=c.spacecast_addrs.split(","),a.qb.probe=!0,c.spacecast_query_params&&(a.qb.applianceQueryParams=c.spacecast_query_params));0<a.startSeconds||(a.startSeconds=Iv(a.startSeconds,c.start||c.startSeconds),a.Rp=a.startSeconds);void 0==
c.start||"1"==c.resume||a.o||(a.clipStart=c.start);c.two_stage_token&&(a.ve=c.two_stage_token);c.url_encoded_third_party_media&&(a.na=Ch(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.J.push("ypc");c.ypc_clickwrap_module&&a.J.push("ypc_clickwrap");a.rq=Jv(a.rq,c.ucid);(0,g.H)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.F[a]=c[a])},a);
a.F.focEnabled=Gv(a.F.focEnabled,c.focEnabled);a.F.rmktEnabled=Gv(a.F.rmktEnabled,c.rmktEnabled);a.C=c;Vx(a,c);ega(a);c.adpings&&(a.Eq=c.adpings?g.Bh(c.adpings):null);c.feature&&(a.Nq=c.feature);c.referrer&&(a.referrer=c.referrer);c.multifeed_metadata_list&&(a.ga=Ch(c.multifeed_metadata_list));a.clientScreenNonce=Jv(a.clientScreenNonce,c.csn);a.rootVeType=Iv(a.rootVeType,c.root_ve_type);c.unplugged_location_info&&(a.pe=c.unplugged_location_info);c.unplugged_partner_opt_out&&(a.SD=Jv("",c.unplugged_partner_opt_out))};
Wx=function(a){return!(!a.B||!a.B.videoInfos.length)};
ega=function(a){Xx(a)||(a.adaptiveFormats&&!a.o?(Yx(a,Mu(Zx(a,a.adaptiveFormats),a.Ia,a.lengthSeconds)),Ju(a.g)&&(a.va=!0)):a.G&&(a.Ua=!0))};
fga=function(a){return a.o&&zt('video/webm; codecs="vp9"')&&Hb(a.g,function(a){return Di(a.info)})};
Dt=function(a){return!(!a.g||!a.g.o)};
Xx=function(a){return!Zw()||a.Lv?!0:!1};
$x=function(a){a.isDisposed()||(a.V=!1,a.$("dataloaded",a.C))};
Yx=function(a,b,c){c&&a.g&&a.g.dispose();a.g=b;g.M(a,b);(g.Ct(a)||g.ay(a)||g.by(a))&&a.J.push("webgl");a.g.isLive||(a.o=!1)};
g.cy=function(a,b){if(a.isDisposed())return Ev();a.B=null;a.ba=null;a.fb=null;var c;Xx(a)||b.xk||!a.spacecastAdaptiveFormats?c=Ev():(Yx(a,Mu(Zx(a,a.spacecastAdaptiveFormats),a.Ia,a.lengthSeconds),!0),c=gx(b.G,a.g,a.H,!0,!1).then(a.Ao,void 0,a).then(a.Vr,void 0,a));return c.then(void 0,(0,g.z)(a.KD,a,b)).then(void 0,(0,g.z)(a.HD,a,b)).then(void 0,(0,g.z)(a.ID,a,b)).then(void 0,(0,g.z)(a.LD,a,b)).then(void 0,(0,g.z)(a.JD,a,b))};
dy=function(a,b){var c={cpn:a.clientPlaybackNonce,c:b.A.c,cver:b.A.cver};a.ab&&(c.ptk=a.ab,c.oid=a.gq,c.ptchn=a.fq,c.pltype=a.hq);return c};
ey=function(a){a.we||(a.C.storyboard_spec?a.we=new Av(a.C.storyboard_spec,a.lengthSeconds):a.C.live_storyboard_spec&&a.g&&(a.we=new Cv(a.C.live_storyboard_spec,a.g)));return a.we};
fy=function(a){return a.g&&!(0,window.isNaN)(Wu(a.g))?Wu(a.g):0};
gy=function(a,b){if(a.g&&a.o){var c=a.g.g[a.A.id];if(!c||!c.index)return null;var d=c.index.Af(b),c=c.index.rf(d);return{sequence:d,elapsed:Math.floor(1E3*(b-c))}}return null};
g.wl=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.na)};
hy=function(a){return!!(a.G||a.adaptiveFormats||a.fa||a.na||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
iy=function(a){var b=g.ab(a.J,"ypc");a.ypcPreview&&(b=!1);return g.wl(a)&&!a.V&&(hy(a)||g.ab(a.J,"fresca")||b)};
jy=function(a){return iy(a)&&!a.Ua&&!a.va};
Zx=function(a,b,c){b=Ch(b);var d={};c&&(0,g.H)(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
(0,g.H)(b,function(a){var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
cga=function(a){var b={};(0,g.H)(a.split(","),function(a){var c=a.split("=");2==c.length?b[c[0]]=c[1]:b[a]=!0});
return b};
dga=function(a){a=Ch(a);var b={};(0,g.H)(a,function(a){var c=a.family;a=a.url;c&&a&&(b[c]=a)});
return b};
$fa=function(a,b){for(var c=Ch(b),d=0;d<c.length;d++){var e=c[d],f=e.u;Ux.test(f)&&a.captionTracks.push(new g.jv({is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k,format:3}))}};
aga=function(a,b){for(var c=Ch(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new g.iv({languageCode:e.lc,languageName:e.n}))}};
g.al=function(a,b){return!!a.C[b]};
g.xl=function(a){return a.o&&!a.P};
ky=function(a){return a.o&&a.P};
ly=function(a){var b=Wb(a.C);!a.o&&0<a.startSeconds&&(b.start=a.startSeconds);return b};
Bt=function(a){if(a.Db||a.Ee["3D"])return!0;a=a.Ee("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
g.ay=function(a){return a.g&&3!=a.Db?Ku(a.g):!1};
g.Ct=function(a){if(!a.g)return!1;for(var b in a.g.g){var c=a.g.g[b].info.video;if(c&&2==c.projectionType&&3==a.Db)return!0}return Lu(a.g)};
g.by=function(a){if(Bt(a)&&3!=a.Db&&4!=a.Db)return!0;if(a.g)for(var b in a.g.g){var c=a.g.g[b].info.video;if(c&&1==c.B)return!0}return!1};
gga=function(a){a.B=a.B.o};
my=function(a,b){this.type=a||"";this.id=b||""};
g.ny=function(a){return new my(a.substr(0,2),a.substr(2))};
g.qy=function(a){g.en.call(this);this.startSeconds=0;this.J=!1;this.g=0;this.title="";this.B=0;this.o=[];this.F=this.C=!1;this.dd=this.Wv=this.D=null;this.views=0;this.N=0!=a.fetch;this.A=[];this.g=Math.max(0,a.index||0);this.G=!!a.loop;this.startSeconds=a.startSeconds||0;this.P="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.O={};a.video_id&&(this.o[this.g]=a);a.api&&("string"==typeof a.api&&16==a.api.length?
a.list="PL"+a.api:a.playlist=a.api);this.H=0;if(a.list)switch(a.listType){case "user_uploads":hga(this,a.list);break;case "user_favorites":iga(this,a.list);break;case "search":jga(this,a.list);break;default:a.playlist_length&&(this.B=a.playlist_length),this.listId=g.ny(a.list),a.video?(this.o=a.video.slice(0),this.C=!0):kga(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.g&&(this.o=[]);(0,g.H)(b,function(a){a&&this.o.push({video_id:a})},this);
this.B=this.o.length;b=(0,g.S)(this.o,function(a){return a.video_id});
oy(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.C=!0}py(this,!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in g.Sx.g)b="playlist_"+c,b=a[b+"_webp"]||a[b],g.Cx.test(b)&&(this.O[g.Sx.g[c]]=b);this.L=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
ry=function(a){return!!(a.playlist||a.list||a.api)};
sy=function(a){var b=a.g+1;return b>=a.B?0:b};
ty=function(a){var b=a.g-1;return 0>b?a.B-1:b};
py=function(a,b){a.J=b;var c=a.A&&null!=a.A[a.g]?a.A[a.g]:a.g;a.A=[];for(var d=0;d<a.o.length;d++)a.A.push(d);a.g=c;a.H++;if(a.J){c=a.A[a.g];for(d=1;d<a.A.length;d++){var e=Math.floor(Math.random()*(d+1)),f=a.A[d];a.A[d]=a.A[e];a.A[e]=f}for(d=0;d<a.A.length;d++)a.A[d]==c&&(a.g=d);a.H++}a.$("shuffle")};
uy=function(a,b){a.g=g.te(b,0,a.B-1);a.startSeconds=0};
hga=function(a,b){a.F||(a.listId=new my("UU","PLAYER_"+b),oy(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
iga=function(a,b){a.F||(a.listId=new my("FL","PLAYER_"+b),oy(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
jga=function(a,b){if(!a.F){a.listId=new my("SR",b);var c={search_query:b};a.P&&(c.mob="1");oy(a,"/search_ajax?style=json&embeddable=1",c)}};
kga=function(a){if(!a.F){var b={list:a.listId},c=a.Qb();c&&c.videoId&&(b.v=c.videoId);oy(a,"/list_ajax?style=json&action_get_list=1",b)}};
oy=function(a,b,c){a.N&&g.li(g.ag(b,c),{format:"JSON",Cb:(0,g.z)(function(a,b){vy(this,b)},a),
onError:(0,g.z)(function(){this.$("error")},a)})};
vy=function(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.G=b.loop);var c=a.Qb();a.o=[];(0,g.H)(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.o.push(a))},a);
a.B=a.o.length;b.index?a.g=b.index:lga(a,c);py(a,!1);a.F=!1;a.C=!0;a.H++;a.D&&a.D()}};
lga=function(a,b){if(b){var c=b.videoId;if(!a.o[a.g]||a.o[a.g].video_id!=c)for(var d=0;d<a.o.length;d++)if(a.o[d].video_id==c){a.g=d;break}}};
wy=function(a,b){a.D=b;a.C&&g.ah(a.D,0)};
g.yy=function(a){g.en.call(this);this.g=a;this.loaded=!1};
g.zy=function(a){g.W.call(this,a);this.L=new g.en;g.M(this,this.L)};
g.Ay=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),f="";0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f};
g.By=function(a){return(!g.qa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
g.Cy=function(a){return ry(a)?(a.fetch=0,new g.qy(a)):new g.Sx(a)};
Dy=function(a){var b=!g.V(a).Eb&&3!=a.Za();return a.isFullscreen()||b};
g.Ey=function(a,b,c,d){if(!c&&g.By(a))return g.ck(a),!0;b.fd();a=a.currentTarget.getAttribute("href");lo(a,d,!0);return!1};
Hy=function(a,b,c){if(Gx(g.V(b))&&2!=b.Za()){if(g.By(c))return b.isFullscreen()&&g.jl(b),g.ck(c),!0}else{var d=g.By(c);d&&b.fd();lo(a,void 0,!0);d&&(g.mo(a),g.ck(c))}return!1};
Iy=function(){return{K:"div",Y:"ytp-spinner-dots",T:[{K:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-0"]},{K:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-1"]},{K:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-2"]},{K:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-3"]},{K:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-4"]},{K:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-5"]},{K:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-6"]},{K:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-7"]}]}};
g.Jy=function(a,b){g.W.call(this,b||{K:"div",Y:"ytp-thumbnail-overlay"});this.B=new lq(this,250);g.M(this,this.B);this.o=a};
Ky=function(a,b,c,d,e,f){g.y(a)?(this.D="y"==a?b:0,this.C="m"==a?b:0,this.g="d"==a?b:0,this.o="h"==a?b:0,this.A="n"==a?b:0,this.B="s"==a?b:0):(this.D=a||0,this.C=b||0,this.g=c||0,this.o=d||0,this.A=e||0,this.B=f||0)};
Ny=function(a,b,c){g.qa(a)?(this.date=Ly(a,b||0,c||1),My(this,c||1)):g.sa(a)?(this.date=Ly(a.getFullYear(),a.getMonth(),a.getDate()),My(this,a.getDate())):(this.date=new Date((0,g.G)()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),My(this,a))};
Ly=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
My=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
g.Oy=function(){g.gh({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",
YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",
YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"})};
g.Qy=function(a,b,c,d){g.en.call(this);this.A=!!b;this.D=a;this.H=c||a;this.G=!!d;this.g=new g.ir(this);this.C=this.F=null;this.B=this.o=!1;b&&(qc&&a.setAttribute("draggable","true"),a.style.touchAction="none");Py(this)};
Ry=function(a,b,c){a.g.U(a.H,b,c,void 0,!a.A)};
Py=function(a){a.C=null;a.F=null;Ry(a,Sy("over"),a.bw);Ry(a,"touchstart",a.ep);a.A&&Ry(a,Sy("down"),a.ND)};
Ty=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.F)return d}return null};
Sy=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Uy=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
Vy=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
Wy=function(a,b){g.L.call(this);window._exportCheck=g.xa;this.V=b;this.C=this.H=this.F=this.L=this.O=this.o=this.B=this.g=null;this.A=[];this.ba={};this.J={};this.N={};this.Z=null;this.aa=a;this.D=this.G=this.P=null};
g.Xy=function(a){var b=g.V(a.aa);if("leanback"==b.g||b.Ic||!b.Rb&&!b.Aa)return!1;var c=a.aa.Za();if(2==c)return!1;if(3==c)return b.experiments.g("desktop_enable_autoplay");if(b.experiments.g("allow_live_autoplay"))return!0;a=a.aa.getVideoData();return!!a&&!a.o};
Yy=function(a,b,c,d){try{var e="ytmod.player."+b,f=u(e);if(d){if(f){var k=a.V,l=f._version;if(l&&l!=k)g.ka(e,null,void 0);else return f._version=k,new f(a.aa)}mga(a,b,c)}else g.Jl(a.aa,b)}catch(m){g.Jl(a.aa,b),eh(m)}return null};
Zy=function(a){a.g&&(g.Cb(a.g),a.g=null);a.B&&(g.Cb(a.B),a.B=null);a.o&&(g.Cb(a.o),a.o=null);a.O&&(g.Cb(a.O),a.O=null);a.L&&(g.Cb(a.L),a.L=null);a.F&&(g.Cb(a.F),a.F=null);a.H&&(g.Cb(a.H),a.H=null);a.C&&(g.Cb(a.C),a.C=null);a.A=(0,g.Od)(a.A,function(a){try{a.destroy()}catch(c){eh(c)}return!1},a)};
az=function(a,b){if(!b){var c=(0,g.S)(a.A,function(a){return a.tb});
a.g&&c.push("captions");return c}return"captions"==b&&a.g?a.g.Yf():(c=$y(a,b))?c.Yf():[]};
$y=function(a,b){return"captions"==b&&a.g?a.g:g.Xa(a.A,function(a){return a.tb==b})};
nga=function(a){var b={};a.g&&g.va(b,a.g.UK());(0,g.H)(a.A,function(a){g.va(b,a.Il())});
return b};
tl=function(a){return(a=$y(a,"iv-module"))&&a};
mga=function(a,b,c){if(a.V){for(var d=a.V+b+".js",e=window.document.getElementsByTagName("SCRIPT"),f=!1,k,l=0;l<e.length;l++){var m=e[l];m.src==d&&(k=m)}k||(k=g.Re("SCRIPT"),f=!0);var n=(0,g.z)(function(){this.isDisposed()||c.call(this)},a),q=(0,g.z)(function(){this.isDisposed()||g.Jl(this.aa,b)},a);
k.onload=g.B(function(a){$c(n);a&&a()},k.onload);
k.onerror=g.B(function(a){$c(q);a&&a()},k.onerror);
k.onreadystatechange=g.B(function(a){switch(k.readyState){case "loaded":case "complete":$c(n,this)}a&&a()},k.onreadystatechange);
f&&(k.src=d,d=window.document.getElementsByTagName("HEAD")[0]||window.document.body,d.insertBefore(k,d.firstChild),g.Bb(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.ka("ytmod.player."+b,null,void 0)}))}};
bz=function(a,b,c){this.A=b;this.g=c;this.B=a;this.o=!0};
cz=function(a,b){ac.call(this,"adError");this.A=a;this.g=b?b:null};
dz=function(a,b,c){ac.call(this,a);this.A=b;this.g=null!=c?c:null};
oga=function(a){this.g=a};
pga=function(){var a=ez();return fz(a,"disableExperiments")};
fz=function(a,b){if(Qb(a.g,b)){var c=a.g[b];if(g.pa(c))return c}return!1};
qga=function(a){if(Qb(a.g,"forceExperimentIds")){a=a.g.forceExperimentIds;var b=[],c=0;na(a)&&(0,g.H)(a,function(a){g.qa(a)&&(b[c++]=a)});
return b}return null};
gz=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
hz=function(){this.A="always";this.O=4;this.D=1;this.o=this.L=this.C=!1;this.Z=this.G=!0;this.P=!1;this.J=!0;this.N=null;this.V=3E3;this.H=!1;this.B=-1};
ez=function(){var a=X;if(null==a.N){var b={},c=(new gg(Oe().location.href)).g;if(yg(c,"tcnfp"))try{b=g.pf(c.get("tcnfp"))}catch(d){}a.N=new oga(b)}return a.N};
iz=function(){};
jz=function(a,b,c,d){this.Da=a;this.g=g.te(c||0,0,1);this.o=null!=d?d:!0};
kz=function(a){this.Da=a;this.o=new If;this.ka=this.g=null};
rga=function(a){var b=Math.random(),c=0,d=a.o.$a();(0,g.H)(d,function(a){c+=a.g},a);
var e=1<c?c:1;a.g=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].g,f/e>=b){a.g=d[k];break}};
tga=function(){this.A=null!=r.G_testRunner;this.g=new iz;this.o=new If;lz(this,31061774,.01);lz(this,31061775,.01);lz(this,420706043,.05);lz(this,420706044,.05);lz(this,420706041,.05);lz(this,420706042,.05);lz(this,41351088,.01);lz(this,41351089,.01);lz(this,420706008,.05);lz(this,420706009,.05);lz(this,420706010,.01);lz(this,420706011,.01);lz(this,420706024,.01);lz(this,420706025,.01);lz(this,420706029,.01);lz(this,413051055,.05);lz(this,413051056,.05);lz(this,413051057,.05);lz(this,413051058,.05);
lz(this,420706054,.01);lz(this,420706055,.01);lz(this,420706056,.01);lz(this,420706057,.01);lz(this,420706058,.01);lz(this,420706059,.01);lz(this,567890270,.01);lz(this,567890271,.01);lz(this,634360101,.01);lz(this,634360102,.01);lz(this,651800002,.01);lz(this,651800003,.01);lz(this,21592080,.01);lz(this,21592081,.01);lz(this,57890230,.01);lz(this,57890231,.01);lz(this,57890240,.01);lz(this,57890241,.01);sga(this);var a;a=ez();a=qga(a);null!=a&&(this.A=!1,mz(this,a.map(String)))};
oz=function(){nz||(nz=new tga);return nz};
pz=function(){return oz().g};
uga=function(a,b){a.g=b};
vga=function(){var a=oz();(0,g.H)(a.o.rb(),function(a){g.za(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)};
lz=function(a,b,c){D(E("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new jz(b,0,c),qz(a,"GvnExternalLayer").o.set(b.getId(),b))};
sga=function(a){pga()||(0,g.H)(a.o.$a(),function(a){rga(a)},a)};
mz=function(a,b){(0,g.H)(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;(0,window.isNaN)(b)||0>=b||D(E(a))||(qz(this,a).g=new jz(b,0,0,!0))},a)};
rz=function(a,b){return a.A?!1:ph(a.o.$a(),function(a){return!!a.g&&a.g.getId()==b})};
sz=function(a){if(a.A)return"";var b=[];(0,g.H)(a.o.$a(),function(a){(a=a.g)&&a.o&&b.push(a.getId())});
return b.sort().join(",")};
qz=function(a,b){var c=a.o.get(b);null==c&&(c=new kz(b),a.o.set(b,c));return c};
uz=function(a){return null!=a?tz(wga,a):!1};
tz=function(a,b){try{var c=(new gg(b)).o,c=c.replace(/^www./i,"");return ph(a,function(a){return vz(a,c)})}catch(d){return!1}};
yga=function(a){try{var b=new gg(a),c=b.o,c=c.replace(/^www./i,""),d=b.A+"/";return ph(xga,function(a){a=new gg(a);var b=a.A;return vz(a.o,c)&&g.za(d,b)})}catch(e){return!1}};
vz=function(a,b){if(D(E(b)))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b};
xz=function(a){var b=!1;wz(a,zga)?b=!1:uz(a)?b=!0:"https:"==window.location.protocol&&(wz(a,Aga)||X.g())&&(b=!0);if(b){b=new gg(a);if("https"==b.B)return a;hg(b,"https");return b.toString()}return a};
wz=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
yz=function(a){D(E(a))||window.open(a,"_blank")};
Az=function(a,b,c){null!=a?(g.pg(a,"label",b),null!=c&&g.pg(a,"value",c.join(";")),a=a.toString()):a="";zz(a)};
Bz=function(a,b,c,d){null!=a&&null!=b&&(a=yp(a,b));try{if(null!=c){b=a;var e=(c||{}).viewability||"na";if(D(E(e)))a=b;else{var f=new gg(b);yg(f.g,"label")?(g.pg(f,"acvw",e),a=f.toString().replace(/%2C/g,",")):a=b}}a:{c=a;var k=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=k||!d&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(d=d||window.Goog_AdSense_Lidar_getUrlSignalsArray(),k={},e=0;e<d.length;++e){k.URL_SIGNALS=d[e];var l=yp(c,k);if(2048>l.length){a=l;break a}}a=c}}catch(m){}return a};
zz=function(a,b,c,d){a=Bz(a,b,c,void 0);try{a=xz(a);var e=oz(),f=!X.g()||rz(e,41351089)||e.g.g("html5_detect_image_pings"),k=e.g.g("html5_try_beacons");X.g()||!rz(oz(),634360102)||(k=!0);null!=d&&d?Cz.qv(a,f):X.J?Cz.wI(a,f,k):Cz.jv(a,f,k)}catch(l){}};
Dz=function(a,b){null!=a&&(0,g.H)(a,function(a){zz(a,b)})};
Bga=function(a,b){if(D(E(b)))return a;var c=new gg(a),d=c.o;return null!=d&&Aa(d,".g.doubleclick.net")?(g.pg(c,"ged",b),c.toString()):a};
Ez=function(a,b){this.message=a;this.errorCode=b};
Gz=function(a,b,c){return Fz("adLoadError",a,b||null,nb(arguments,2))};
Hz=function(a,b,c){return Fz("adPlayError",a,b||null,nb(arguments,2))};
Iz=function(a,b,c,d,e){var f=a.apply(null,ib([c,d],nb(arguments,3)));b.dispatchEvent(new dz("log",null,f))};
Jz=function(a,b,c){Iz(Hz,a,b,c,void 0)};
Fz=function(a,b,c,d){if(c instanceof bz)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var f=0;f<d.length;f++)b=b.replace(new RegExp("\\{"+f+"\\}","ig"),d[f]);a=new bz(a,b,e);a.zi=c;return a};
Kz=function(a,b,c,d){var e=Hz.apply(null,ib([b,c],nb(arguments,3)));a.dispatchEvent(new cz(e))};
Mz=function(){return!Lz()&&(fc("iPod")||fc("iPhone")||fc("Android")||fc("IEMobile"))};
Lz=function(){return fc("iPad")||fc("Android")&&!fc("Mobile")||fc("Silk")};
Nz=function(){return Mz()||Lz()};
Qz=function(){return Oz&&!Pz||Ga(ec,"iPod")};
Rz=function(){return Qz()||Pz};
Uz=function(a){return Rz()&&Sz(Tz,a)};
Wz=function(a){return g.sx&&Sz(Vz,a)};
Sz=function(a,b){if(null==Xz[b]){var c=Yz(a);c?(c=c.replace(/_/g,"."),Xz[b]=0<=Na(c,b)):Xz[b]=!1}return Xz[b]};
Yz=function(a){D(Zz)&&(a=a.exec(ec))&&(Zz=a[1]);return Zz};
$z=function(){var a=ec;return a?Ga(a,"Nintendo WiiU"):!1};
aA=function(){var a;if(!(a=Ga(ec,"CrKey")||Ga(ec,"PlayStation")||Ga(ec,"Roku")))if(a=ec){var b=Ga(a,"AppleTV")||Ga(a,"GoogleTV")||Ga(a,"HbbTV")||Ga(a,"NetCast.TV")||Ga(a,"Opera TV")||Ga(a,"POV_TV")||Ga(a,"SMART-TV")||Ga(a,"SmartTV");a=rz(oz(),420706011)?b||Ga(a,"TV Store")||Ga(a,"OMI/")||Ga(a,"Presto")&&Ga(a,"Linux")&&!Ga(a,"X11")&&!Ga(a,"Android")&&!Ga(a,"Mobi"):b}else a=!1;return a||Ga(ec,"Xbox")};
bA=function(a){var b=oz();return Oz&&!Pz&&Uz(10)&&X.g()&&b.g.g("mweb_enable_skippables_on_iphone")||!X.g()&&Oz&&!Pz&&Uz(10)&&Nz()&&ic()&&a&&rz(b,413051058)?!0:Qz()||g.sx&&!Wz(4)||!X.g()&&aA()?!1:!0};
cA=function(a){return X.o||Rz()&&!(Oz&&!Pz&&Uz(10)&&Nz()&&ic()&&a&&rz(oz(),413051058))||g.sx&&!Wz(4)||aA()?!0:!1};
dA=function(){this.reset()};
eA=function(a,b){null!=b&&a.o!=b?(a.g=1,a.o=b):a.g=null!=b?a.g+1:1;return a.g};
fA=function(){this.o=this.g=null};
hA=function(){this.g=gA();this.L=-1;this.O=this.N=this.C=this.J=this.o=null;this.B=gA();this.A=null;this.V=this.F=this.H="";this.G=this.P=this.ba=this.D=null;this.Z=!1;this.ca=0};
gA=function(){return Math.floor(4503599627370496*Math.random())};
iA=function(a){null==a.C&&(a.C=new dA);return a.C};
jA=function(a){if(X.o){var b;return"h.3.0.0"}b="h."+a.V;null!=a.D&&(b+="/n."+a.D,null!=a.o&&(b+="/"+a.o));return b};
kA=function(){this.g=.01>Math.random();this.o=Math.floor(4503599627370496*Math.random())};
nA=function(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c.sdkv=jA(lA);b=sz(oz());D(E(b))||(c.e=b);c=Cga(a,c);var e=new gg("http://pagead2.googlesyndication.com/pagead/gen_204");g.Eb(c,function(a,b){g.pg(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=mA();hg(e,a.B);zz(e.toString())}};
Cga=function(a,b){b.id="ima_html5";var c=mA();b.c=a.o;b.domain=c.o;return b};
mA=function(){var a=Oe(),b=window.document;return new gg(a.parent==a?a.location.href:b.referrer)};
oA=function(){};
rA=function(a,b,c,d){a.g=null;b||(b=[]);a.F=void 0;a.B=-1;a.o=b;a:{if(a.o.length){b=a.o.length-1;var e=a.o[b];if(e&&"object"==typeof e&&!na(e)&&!(pA&&e instanceof window.Uint8Array)){a.C=b-a.B;a.A=e;break a}}a.C=Number.MAX_VALUE}a.D={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.C?(e+=a.B,a.o[e]=a.o[e]||qA):a.A[e]=a.A[e]||qA;d&&d.length&&(0,g.H)(d,g.B(Dga,a))};
sA=function(a,b){if(b<a.C){var c=b+a.B,d=a.o[c];return d===qA?a.o[c]=[]:d}d=a.A[b];return d===qA?a.A[b]=[]:d};
tA=function(a,b,c){b<a.C?a.o[b+a.B]=c:a.A[b]=c};
Dga=function(a,b){var c,d;(0,g.H)(b,function(b){var e=sA(a,b);null!=e&&(c=b,d=e,tA(a,b,void 0))});
return c?(tA(a,c,d),c):0};
uA=function(a,b,c){a.g||(a.g={});if(!a.g[c]){var d=sA(a,c);d&&(a.g[c]=new b(d))}return a.g[c]};
Ega=function(a){var b=vA;a.g||(a.g={});if(!a.g[1]){for(var c=sA(a,1),d=[],e=0;e<c.length;e++)d[e]=new b(c[e]);a.g[1]=d}b=a.g[1];b==qA&&(b=a.g[1]=[]);return b};
xA=function(a){if(a.g)for(var b in a.g){var c=a.g[b];if(na(c))for(var d=0;d<c.length;d++)c[d]&&wA(c[d]);else c&&wA(c)}};
wA=function(a){xA(a);return a.o};
yA=function(a){var b;if(na(a)){for(var c=Array(a.length),d=0;d<a.length;d++)null!=(b=a[d])&&(c[d]="object"==typeof b?yA(b):b);return c}if(pA&&a instanceof window.Uint8Array)return new window.Uint8Array(a);c={};for(d in a)null!=(b=a[d])&&(c[d]="object"==typeof b?yA(b):b);return c};
zA=function(a){rA(this,a,null,null)};
BA=function(a){return uA(a,AA,1)};
AA=function(a){rA(this,a,null,null)};
CA=function(a){rA(this,a,null,Fga)};
DA=function(a){rA(this,a,null,Gga)};
EA=function(a){rA(this,a,null,null)};
FA=function(a){rA(this,a,null,null)};
GA=function(a){rA(this,a,null,null)};
HA=function(a){rA(this,a,null,Hga)};
IA=function(a){rA(this,a,null,null)};
JA=function(a){rA(this,a,null,null)};
KA=function(a){rA(this,a,Iga,null)};
vA=function(a){rA(this,a,null,null)};
MA=function(){X.g()||(rz(oz(),420706055)?X.B=1E4:rz(oz(),420706056)?X.B=6E3:rz(oz(),420706057)?X.B=5E3:rz(oz(),420706058)?X.B=4E3:rz(oz(),420706059)&&(X.B=3E3));this.ce=LA()};
LA=function(){return 0<X.B?X.B:15E3};
NA=function(){return Math.round((0,g.G)()/1E3)};
Jga=function(a){var b;b=window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing.domLoading?Math.round(window.performance.timing.domLoading/1E3):null;return null!=b?b:null!=a?a:NA()};
OA=function(a){for(var b=[],c=a=Oe(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
Kga=function(){this.g={};this.o=0};
PA=function(a,b){this.C=a;this.A=!0;this.g=b};
QA=function(a,b){PA.call(this,String(a),b);this.B=a;this.g=!!b};
RA=function(a,b){PA.call(this,a,b)};
SA=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new RA("",new g.yf(c,b,Number(a[3])-c,Number(a[2])-b))}return new RA("",new g.yf(0,0,0,0))};
UA=function(){TA||(TA=new Kga);return TA};
VA=function(a,b){a.g[b.getName()]=b};
WA=function(a){var b=new g.yf(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new g.yf(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){var e;a:{e=b;var f=a[d],k=Math.max(e.left,f.left),l=Math.min(e.left+e.width,f.left+f.width);if(k<=l){var m=Math.max(e.top,f.top),f=Math.min(e.top+e.height,f.top+f.height);if(m<=f){e.left=k;e.top=m;e.width=l-k;e.height=f-m;e=!0;break a}}e=!1}if(!e)return c}return b};
XA=function(a,b){var c=a.getBoundingClientRect(),d=dj(a,b);return new g.yf(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
YA=function(a,b,c){if(b&&c){var d;a:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new g.yf(d,f,e-d,k-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;VA(a,new PA("vp",d));d&&0<d?(e=zf(b),f=zf(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;VA(a,new QA(512,e));d&&0<d?(e=zf(b),f=zf(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;VA(a,new QA(1024,e));
d&&0<d?(e=zf(b),f=zf(c),e=e.left>=f.left&&e.left<f.right):e=!1;VA(a,new QA(2048,e));d&&0<d?(b=zf(b),c=zf(c),c=b.right<=c.right&&b.right>c.left):c=!1;VA(a,new QA(4096,c))}};
Lga=function(){this.o=-1};
ZA=function(){this.g={};return this};
$A=function(a,b){a.g.eb=Vb(a.g,"eb",0)|b};
Mga=function(a,b){var c=0;Pb(Oe(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=UA();d.g={};var f=new QA(32,!0);f.A=!1;VA(d,f);f=Oe().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";VA(d,new QA(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=Oe().top;try{l=!!m.location.href||""===m.location.href}catch(t){l=!1}if(l){var n=OA(e);k=n&&0!=n.length?"1":"0"}else k="2"}catch(t){k="2"}VA(d,
new QA(256,"2"==k));VA(d,new QA(128,"1"==k));n=l=Oe().top;"2"==k&&(n=Oe());m=XA(e,n);VA(d,new RA("er",m));var q;try{q=n.document&&!n.document.body?null:Ke(n||window)}catch(t){q=null}q?(n=Ne(Fe(n.document).g),VA(d,new QA(16384,!!n)),q=n?new g.yf(n.x,n.y,q.width,q.height):null):q=null;VA(d,new RA("vi",q));if(q&&"1"==k){k=OA(e);e=[];for(n=0;n<k.length;n++)(f=XA(k[n],l))&&e.push(f);e.push(q);q=WA(e)}YA(d,m,q);d.o&&(k=NA()-d.o,VA(d,new PA("ts",k)));d.o=NA()}else d=UA(),d.g={},d.o=NA(),VA(d,new QA(32,!1));
this.A=d;this.g=new ZA;this.g.set("ve",4);c&&$A(this.g,1);Pb(Oe(),"ima","video","client","crossdomainTag")&&$A(this.g,4);Pb(Oe(),"ima","video","client","sdkTag")&&$A(this.g,8);Pb(Oe(),"ima","video","client","jsTag")&&$A(this.g,2);b&&Vb(b,"fullscreen",!1)&&$A(this.g,16);this.o=d=null;if(c&&(c=Pb(Oe(),"ima","video","client"),c.getEData)){this.o=c.getEData();if(c=Pb(Oe(),"ima","video","client","getLastSnapshotFromTop"))if(k=c())this.o.extendWithDataFromTopIframe(k.tagstamp,k.playstamp,k.lactstamp),c=
this.A,d=k.er,k=k.vi,d&&k&&(d=SA(d).getValue(),k=SA(k).getValue(),e=null,Vb(c.g,"er",null)&&(e=Vb(c.g,"er",null).getValue(),e.top+=d.top,e.left+=d.left,VA(c,new RA("er",e))),Vb(c.g,"vi",null)&&(q=Vb(c.g,"vi",null).getValue(),q.top+=d.top,q.left+=d.left,l=[],l.push(q),l.push(d),l.push(k),d=WA(l),YA(c,e,d),VA(c,new RA("vi",k))));a:{if(this.o){if(this.o.getTagLoadTimestamp){d=this.o.getTagLoadTimestamp();break a}if(this.o.getTimeSinceTagLoadSeconds){d=this.o.getTimeSinceTagLoadSeconds();break a}}d=null}}this.g.set("td",
NA()-Jga(d))};
Nga=function(a,b){try{var c=new Mga(a,b),d=[],e=Number(c.g.get("eb"));c.g.remove("eb");var f,k=c.g,l=[],m;for(m in k.g)l.push(m+k.g[m]);(f=l.join("_"))&&d.push(f);if(c.o){var n=c.o.serialize();n&&d.push(n)}var q,t=c.A;f=e;k=[];f||(f=0);for(var w in t.g){var x=t.g[w];if(x instanceof QA)x.getValue()&&(f|=x.B);else{var A,F=t.g[w];(A=F.A?F.o():"")&&k.push(w+A)}}k.push("eb"+String(f));(q=k.join("_"))&&d.push(q);c.g.set("eb",e);return d.join("_")}catch(I){return"tle;"+Ea(I.name,12)+";"+Ea(I.message,40)}};
aB=function(a){try{return!!a&&null!=a.location.href&&dc(a,"foo")}catch(b){return!1}};
bB=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Oga=function(){var a=r;try{for(var b=null;b!=a;b=a,a=a.parent)switch(a.location.protocol){case "https:":return!0;case "http:":case "file:":return!1}}catch(c){}return!0};
Pga=function(){var a=cB;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec((0,window.decodeURIComponent)(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
dB=function(a,b){for(var c=0,d=a,e=0;a&&a!=a.parent;)if(a=a.parent,e++,aB(a))d=a,c=e;else if(b)break;return{tl:d,level:c}};
fB=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,eB?d:d?d.capture||!1:!1):a.attachEvent&&a.attachEvent("on"+b,c)};
gB=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,eB?void 0:!1):a.detachEvent&&a.detachEvent("on"+b,c)};
hB=function(a,b,c,d,e){this.label=a;this.type=b;this.eventId=c;this.value=d;this.duration=e||0};
iB=function(a,b){this.enabled=Math.random()<a;this.events=[];this.C={};this.o={};this.g=b||r;b&&(b.google_js_reporting_queue=b.google_js_reporting_queue||[],this.events=b.google_js_reporting_queue)};
jB=function(){var a=r.performance;return a&&a.now?a.now():(0,g.G)()};
kB=function(a){return"goog_"+a.label+"_"+a.type+"_"+a.eventId};
lB=function(a,b){var c=a.g;c.performance&&c.performance.mark&&c.performance.mark(b)};
mB=function(a,b){var c=(a.C[b]||0)+1;return a.C[b]=c};
Qga=function(a,b,c){if(!a.enabled)return c();var d=a.start(b,3),e;try{e=c()}catch(k){var f=a.o[b+"_3"];(0,g.H)(f,function(a,b){kB(a)===kB(d)&&(this.xr(d),f.splice(b,1))},a);
throw k;}a.end(b,3);return e};
Rga=function(a,b,c){return(0,g.z)(function(){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];return Qga(this,a,function(){return b.apply(c,d)})},nB)};
Sga=function(a,b){this.g=a;this.o=b};
oB=function(a,b,c){this.url=a;this.tl=b;this.At=!!c;this.depth=g.qa(void 0)?void 0:null};
qB=function(a){a=a?a:pB();for(var b=new oB(r.location.href,r,!1),c=a.length-1,d=c;0<=d;--d){var e=a[d];if(e.url&&!e.At){b=e;break}}d=null;e=a.length&&a[c].url;0!=b.depth&&e&&(d=a[c]);return new Sga(b,d)};
pB=function(){var a=r,b=[],c,d=null;do{var e=a;aB(e)?(c=e.location.href,d=e.document&&e.document.referrer||null):(c=d,d=null);b.push(new oB(c||"",e));try{a=e.parent}catch(f){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=r;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)c=b[a],c.url||(c.url=e.location.ancestorOrigins[a-1]||"",c.At=!0);return b};
rB=function(a,b,c,d,e){this.D=c||4E3;this.A=a||"&";this.F=b||",$";this.B=g.p(d)?d:"trn";this.H=e||null;this.C=!1;this.o={};this.G=0;this.g=[]};
sB=function(a,b){var c={};c[a]=b;return[c]};
tB=function(a,b,c,d){a.g.push(b);a.o[b]=sB(c,d)};
uB=function(a,b,c){var d=a.G++;b=sB(b,c);a.g.push(d);a.o[d]=b};
Uga=function(a,b,c,d){b=b+"//"+c+d;var e=Tga(a)-d.length-0;if(0>e)return"";a.g.sort(function(a,b){return a-b});
d=null;c="";for(var f=0;f<a.g.length;f++)for(var k=a.g[f],l=a.o[k],m=0;m<l.length;m++){if(!e){d=null==d?k:d;break}var n=vB(l[m],a.A,a.F);if(n){n=c+n;if(e>=n.length){e-=n.length;b+=n;c=a.A;break}else a.C&&(c=e,n[c-1]==a.A&&--c,b+=n.substr(0,c),c=a.A,e=0);d=null==d?k:d}}f="";a.B&&null!=d&&(f=c+a.B+"="+(a.H||d));return b+f+""};
Tga=function(a){if(!a.B)return a.D;var b=1,c;for(c in a.o)b=c.length>b?c.length:b;return a.D-a.B.length-b-a.A.length-1};
vB=function(a,b,c,d,e){var f=[];bB(a,function(a,l){var k=wB(a,b,c,d,e);k&&f.push(l+"="+k)});
return f.join(b)};
wB=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],k=0;k<a.length;k++)f.push(wB(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?(0,window.encodeURIComponent)(vB(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))};
xB=function(a,b,c,d){this.o=a;this.B=b;this.C=c;this.g=d;this.A=Math.random()};
zB=function(a,b,c,d,e){if((d?a.A:Math.random())<(e||a.g))try{var f;c instanceof rB?f=c:(f=new rB,bB(c,function(a,b){uB(f,b,a)}));
var k=Uga(f,a.o,a.B,a.C+b+"&");k&&yB(r,k)}catch(l){}};
yB=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");if(c){var e=function(a){c(a);gB(d,"load",e);gB(d,"error",e)};
fB(d,"load",e);fB(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
AB=function(a,b,c){this.A=a;this.C=b;this.o=c;this.B=this.g};
BB=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1};
Vga=function(a,b,c,d,e,f){var k;try{k=c()}catch(n){var l=a.o;try{var m=CB(n),l=(f||a.B).call(a,b,m,void 0,d)}catch(q){a.g("pAR",q)}if(!l)throw n;}finally{if(e)try{e()}catch(n){}}return k};
Wga=function(a,b,c,d,e,f,k){return function(){for(var l=[],m=0;m<arguments.length;++m)l[m]=arguments[m];return Vga(a,b,function(){return c.apply(d,l)},e,f,k)}};
CB=function(a){return new BB(DB(a),a.fileName,a.lineNumber)};
DB=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};
EB=function(a){a.u_tz=-(new Date).getTimezoneOffset();var b;try{b=Y.history.length}catch(c){b=0}a.u_his=b;if(b=!!Y.navigator)b="unknown"!==typeof Y.navigator.javaEnabled;a.u_java=b&&!!Y.navigator.javaEnabled&&Y.navigator.javaEnabled();Y.screen&&(a.u_h=Y.screen.height,a.u_w=Y.screen.width,a.u_ah=Y.screen.availHeight,a.u_aw=Y.screen.availWidth,a.u_cd=Y.screen.colorDepth);Y.navigator&&Y.navigator.plugins&&(a.u_nplug=Y.navigator.plugins.length);Y.navigator&&Y.navigator.mimeTypes&&(a.u_nmime=Y.navigator.mimeTypes.length)};
IB=function(){if(FB&&!aB(GB)){var a="."+HB.domain;try{for(;2<a.split(".").length&&!aB(GB);)HB.domain=a=a.substr(a.indexOf(".")+1),GB=window.parent}catch(b){}aB(GB)||(GB=window)}return GB};
KB=function(){JB.o||nB.Dk()};
MB=function(a,b){return LB(a,b,void 0,void 0,void 0,Xga)()};
LB=function(a,b,c,d,e,f){a=a.toString();return Wga(NB,a,Rga(a,b,c),c,d,e,f)};
OB=function(a,b){return LB(a.toString(),b,void 0,void 0,void 0)};
PB=function(a,b){return LB(a.toString(),b,void 0,void 0,void 0)};
QB=function(a){a=a||r;var b=a.context;if(!b)try{b=a.parent.context}catch(c){}try{if(b&&"pageViewId"in b&&"canonicalUrl"in b)return b}catch(c){}return null};
RB=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
SB=function(){var a;HB.mozVisibilityState?a="mozvisibilitychange":HB.webkitVisibilityState?a="webkitvisibilitychange":HB.visibilityState&&(a="visibilitychange");return a};
TB=function(){this.g=0;this.B=!1;this.o=-1;this.C=0};
UB=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
XB=function(){var a=Y&&Y.document;VB.e=-1;VB.i=6;VB.n=7;VB.t=8;if(!WB){var b=[];bB(VB,function(a,c){b[a+1]=c});
var c=b.join("");WB=(c=a&&a[c])&&(0,g.z)(c,a)}return WB};
$B=function(){return YB&&hv&&kt("6.0.1")&&0<=Na(ZB,"10.1")?!0:!1};
aC=function(){var a;if(a=tx)a=0<=Na(Yga,9);return a||hv&&g.oc(601)};
bC=function(){this.ga=[0,0,0,0,0];this.A=[0,0,0,0,0];this.ba=[0,0,0,0,0];this.da=this.C=-1;this.la=1E3};
cC=function(a,b,c){for(;0<=b&&4>=b;b++)a[b]+=c};
dC=function(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.3<=a?b=3:0<a&&(b=4);return b};
eC=function(a,b,c,d){c=LB(d,c);fB(a,b,c,{capture:void 0});return c};
fC=function(a,b){var c=a||Y;null!==c&&c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new g.ze(-1,-1):b?(new g.ze(c.innerWidth,c.innerHeight)).round():Ke(c||window).round()}catch(d){return new g.ze(-12245933,-12245933)}};
Zga=function(){var a=gC.getInstance().G,b=0<=hC?iC()-hC:-1,c=jC?iC()-kC:-1,d=0<=lC?iC()-lC:-1,e;if(79463068==a)return 500;if(947190538==a)a=[4E3],e=[250,1E3];else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var f=b;-1!=c&&c<b&&(f=c);for(var k,b=0;b<a.length;++b)if(f<a[b]){k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
iC=function(){return(new Date).getTime()-$ga};
mC=function(){var a=g.P("DIV");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
bha=function(a){return nC(a,function(a,c){return!(!dc(c,"style")||!c.style||"none"!==Ui(c,"display"))},function(a){return a},!1)?!0:aha(a)};
aha=function(a){var b=!g.Me||g.oc(8);return nC(a,function(a,d){var c=dc(d,"style")&&d.style&&Ui(d,"visibility");return{hidden:"hidden"===c,visible:b&&"visible"===c}},function(a){return a.hidden||a.visible},{hidden:!1,
visible:!1}).hidden};
nC=function(a,b,c,d){if(!a)return d;d=oC(a,b,c,d);if(!d.done)try{var e=De(a),f=e&&Oe(e);return nC(f&&f.frameElement,b,c,d.value)}catch(k){}return d.value};
oC=function(a,b,c,d){if(!a)return{value:d,done:!1};d=b(d,a);var e=c(d,a);return!e&&dc(a,"parentElement")?oC(cf(a),b,c,d):{done:e,value:d}};
pC=function(a){return new xf(a.top,a.right,a.bottom,a.left)};
qC=function(a){return null!=a&&0<=a&&1>=a};
rC=function(a,b){this.A=null;this.D=a;this.H=b||1;this.g="u"};
sC=function(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),f=Math.floor(d/2);switch(a.H){case 4:return a.D?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new xe(e,f),new xe(c-e,f),new xe(e,d-f),new xe(c-e,d-f)]):[new xe(e,0),new xe(0,f),new xe(e,d-1),new xe(c-1,f)];case 3:return[new xe(c-1,0),new xe(e,f),new xe(0,d-1)];default:return[new xe(e,f)]}};
tC=function(a,b){var c;try{c=b||a.A.getBoundingClientRect()}catch(e){c=new xf(0,0,0,0)}var d=sC(a,c);(0,g.H)(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
uC=function(a,b){rC.call(this,a,b);this.o=[];this.G=!1;this.B=-1;this.C=this.F=0};
vC=function(a,b,c){this.snapshot=a;this.o=b;this.g=c};
cha=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Na(ZB,"11")&&c)||g.Me&&9>nc||0<a.o.length)return!1;try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=De(b),k=[];if(e){var l=mC(),d=sC(a,d);(0,g.H)(d,function(a,b){var d=new wC("e",f,c,String(b));this.o.push(d);k.push((0,g.z)(d.G,d,l,a))},a);
Xe(b,l,0)}else d=tC(a,d),(0,g.H)(d,function(a,d){var e=new wC("e",f,c,String(d));this.o.push(e);k.push((0,g.z)(e.F,e,b,a))},a);
var m=!0;(0,g.H)(k,function(a){m=m&&a()});
m?(a.g="l",a.A=b,a.G=!e):((0,g.H)(a.o,function(a){a.remove()}),a.o=[]);
return m};
dha=function(a){if(a.A&&a.G){var b=tC(a);(0,g.H)(b,function(a,b){this.o[b]&&xC(this.o[b],a)},a)}};
yC=function(a){(0,g.H)(a.o,function(a){a.remove()});
a.o=[];a.g="d"};
iha=function(a){var b=(0,g.G)(),c=a.F?b-a.F:0,d=-1,e=(0,g.S)(a.o,function(a){return zC(a,b)});
4==a.o.length?d=a.D?eha(e):fha(e):3==a.o.length?d=gha(e):1==a.o.length&&(d=[-1,0,1,2,3,5][zC(a.o[0],b)+1]);a.C=d==a.B?a.C+c:0;c=new vC(d,a.B,c);a.B=d;a.F=b;hha(a,d);dha(a);return c};
BC=function(a){var b=zb(Jb(AC));(0,g.H)(a,function(a){0<=a&&++b[a]});
return b};
fha=function(a){a=BC(a);return 4==a[4]?6:3<=a[4]?5:0<a[4]?4:4==a[2]?2:4==a[1]?1:4==a[0]?0:3};
gha=function(a){var b=BC(a);return 4==a[0]&&4==a[2]?6:4==a[1]?5:0<b[4]?4:3==b[2]?2:3==b[1]?1:3==b[0]?0:3};
eha=function(a){a=BC(a);return 3<=a[4]?5:2==a[4]?8:0<a[4]?7:4==a[2]?2:4==a[1]?1:4==a[0]?0:3};
hha=function(a,b){if(0==b&&CC(a))a.g="n";else switch(b){case -1:a.g="d";break;case 0:a.g="l";break;case 1:a.g="f";break;case 2:a.g="c";break;case 3:case 4:case 5:case 6:a.g="r"}};
CC=function(a){return"n"==a.g?!0:"l"==a.g&&3E3<=a.C};
wC=function(a,b,c,d){this.g=null;this.B=a;this.Da="e"==a?String(c)+"~"+String(d):"";this.o=[];this.A=-1;this.D=0;this.C=zb(Jb(jha));this.J=zb(Jb(AC));"e"==this.B&&(DC[this.Da]=(0,g.z)(this.H,this));g.Me?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+EC(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>',
a=a.firstChild,a.id=String(Math.random())):a=kha(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.g=a};
kha=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=EC(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="s"==a.B?"":"hidden";e.style.opacity=0;return e};
EC=function(a,b){var c=$f("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.Da);"s"==a.B&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=$f(c,"delay","1"));return c};
xC=function(a,b){a.g&&!ye(b,Zi(a.g))&&g.Yi(a.g,b)};
zC=function(a,b){if("e"==a.B){var c=null;try{c=a.g.it()}catch(f){}null===c?(c=0,0<a.A&&(c=2)):c=c?3:4;++a.J[c+1];a.A=c}else{var d=Number(b),e=FC(a);lha(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||g.qa(c.jl))e=d=2}else null===c.jl||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.jl?(c=(e-c.jl)/(d-c.timeMs)*1E3,d=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.D&&6==c&&(c=7),e=c):e=d=1;6==a.D&&(--a.C[6],4==e||8==e?++a.C[5]:++a.C[7]);++a.C[e];a.A=d;a.D=e}return a.A};
FC=function(a){var b=null;try{b=a.g.fc()}catch(c){}return b};
lha=function(a,b,c){var d=c-1E3,e=a.o.length;(0,g.H)(a.o,function(a,b){a.timeMs<=d&&(e=Math.min(e,b+1))});
var f=a.o.length-e;0<f&&a.o.splice(e,f);a.o.unshift({jl:b,timeMs:c})};
GC=function(){this.D=!0;this.o=new wC("s",HB);this.C=!1;this.H=this.F=this.P=this.g=this.B=this.G=this.L=this.O=this.N=this.A=this.J=null};
HC=function(a,b){b!==a.g&&(a.g=b,a.N(b))};
IC=function(a){var b=FC(a.o);null===a.P&&null!==b&&null!==a.F&&(a.P=(0,g.G)()-a.F);return b};
JC=function(a){var b=a.J.getBoundingClientRect(),c;c=null!=a.L?a.L.clone():new xe(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.C&&(c.x+=b.left,c.y+=b.top);return c};
KC=function(a){a.C&&(a.O=JC(a));xC(a.o,a.O);a.G=Y.setTimeout(LB(146,(0,g.z)(a.Z,a)),125)};
mha=function(a){if(a.D){var b=(0,g.z)(function(){1===RB(HB)?(this.B=null,KC(this)):(Y.clearTimeout(this.G),HC(this,0))},a),c=SB();
if(c){var d=eC(HB,c,b,148);a.H=function(){gB(HB,c,d);this.H=null}}a.D=!1;
a.g=null;b()}};
LC=function(a){a.D||(Y.clearTimeout(a.G),null===a.H||a.H(),a.D=!0)};
MC=function(a,b){rC.call(this,a,b);this.o=[];this.C=this.G=null;this.B=!0;this.F=null};
nha=function(a,b,c){if(null!==a.C)return!1;a.A=b;a.G=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?sC(a,c):tC(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new GC,k;k=f;var l=b,m=(0,g.z)(a.J,a),n=e;if(null===k.F){var q="DIV"==l.tagName||"INS"==l.tagName;k.C=!q;k.J=l;e=JC(k);if(null!=n){e=n;n=new xe(0,0);if(k.C){var t=k.J.getBoundingClientRect();n.x+=t.left;n.y+=t.top}k.L=new xe(e.x-n.x,e.y-n.y)}k.N=m;q?(k.A=mC(),Xe(l,k.A,0),l=k.o.G(k.A,e)):l=k.o.F(l,e);l?(k.F=(0,g.G)(),k.O=e,
k=!0):(k.o.remove(),k.A&&g.Ye(k.A),k=!1)}else k=!1;if(!k)return NC(a),a.g="c",!1;a.o.push(f)}a.C=(0,g.G)();a.g="l";return!0};
qha=function(a){var b=zb(Jb(oha));(0,g.H)(a.o,function(a){null!=a.g&&0<=a.g&&++b[a.g]});
switch(a.H){case 4:return pha(a,b);case 3:return 1==a.o[0].g&&1==a.o[2].g?3:1==a.o[1].g?2:0<b[1]?1:0;default:return 1==b[1]?2:0}};
pha=function(a,b){var c=b[1];if(a.D){if(3<=c)return 2;if(2==c)return 5;if(0<c)return 4}else{if(4==c)return 3;if(3==c)return 2;if(0<c)return 1}return 0};
OC=function(a){a.B&&null!==a.C&&"d"!=a.g&&((0,g.H)(a.o,function(a){mha(a)}),a.g="r",a.B=!1)};
PC=function(a){a.B||((0,g.H)(a.o,function(a){LC(a)}),a.B=!0)};
NC=function(a){PC(a);(0,g.H)(a.o,function(a){LC(a);a.o&&(a.o.remove(),a.o=null);a.A&&(g.Ye(a.A),a.A=null)});
a.o=[];a.g="d"};
QC=function(a,b){rC.call(this,a,b);this.o=[];this.F=!1;this.C=0;this.B=-1};
rha=function(a,b){var c=b.getBoundingClientRect(),d="DIV"==b.tagName||"INS"==b.tagName,e=De(b),f=!0,k=a.o;if(d){var l=mC(),c=sC(a,c);Xe(b,l,0);(0,g.H)(c,function(a){var b=new RC(e);k.push(b);var c;if(c=f)if(b.g){b.g.style.position="absolute";SC(b,a);a=!0;try{l.appendChild(b.g)}catch(t){a=!1}c=a}else c=!1;f=c})}else c=tC(a,c),(0,g.H)(c,function(a){var c=new RC(e);
k.push(c);var d;if(d=f)if(c.g&&b.parentNode){c.g.style.position="fixed";SC(c,a);a=!0;try{b.parentNode&&b.parentNode.insertBefore(c.g,b.nextSibling)}catch(t){a=!1}d=a}else d=!1;f=d});
f?(a.A=b,a.F=!d):((0,g.H)(k,function(a){a.remove()}),a.o=[]);
return f};
sha=function(a){if(a.A&&a.F){var b=tC(a);(0,g.H)(b,function(a,b){this.o[b]&&SC(this.o[b],a)},a)}};
tha=function(a){(0,g.H)(a.o,function(a){a.remove()});
a.o=[]};
yha=function(a){var b=(0,g.G)(),c=a.C?b-a.C:0,d=saa(a.o,function(a){return a.isVisible(b)}),d=4==a.o.length?a.D?uha[d]:vha[d]:3==a.o.length?wha[d]:1==a.o.length?xha[d]:-1,c=new vC(d,a.B,c);
a.B=d;a.C=b;sha(a);return c};
RC=function(a){this.g=null;this.A=this.o=0;zha(this,a)};
zha=function(a,b){var c=b.createElement("iframe");c.srcdoc="";c.frameBorder=0;c.style.width="1px";c.style.height="1px";c.style.opacity="0";c.style.zIndex=-999999;a.g=c;var d=(0,g.z)(a.B,a);c.addEventListener("load",function(){c.contentWindow.requestAnimationFrame(d)})};
SC=function(a,b){a.g&&!ye(b,Zi(a.g))&&g.Yi(a.g,b)};
TC=function(){};
gC=function(){this.F=!1;this.G=void 0;this.g=!aB(Y.top);var a=pB();this.H=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Sf(a[a.length-1].url)||"":"";this.B=this.D=this.o=null;this.L=0;this.A=!1;this.C=new xf(0,0,0,0);this.O=this.J=0};
VC=function(a,b,c){this.position=UC.clone();this.L=0;this.Eb=this.dk();this.Db=-2;this.uf=(0,g.G)();this.pe=-1;this.N=b;this.V=-1!=b;this.ga=null;this.opacity=-1;this.Cd=c;this.Ja=this.Fc=g.v;this.J=this.element=a;this.A=null;this.wa=0;this.ca=null;this.P=1;this.la=!1;this.D=null;this.Rb=this.na=!1;this.ib=1;this.Nb=!0;this.tf=gC.getInstance().L++;this.uc=0;this.g=this.Zm();this.Dd=-1;this.Ua=new xf(0,0,0,0)};
WC=function(a,b){return null===a||null===b?UC.clone():new xf(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left))};
Aha=function(a,b,c,d,e){if(a.V){var f=Y.innerWidth,k=Y.innerHeight,l=new xf(Math.round(Y.mozInnerScreenY),Math.round(Y.mozInnerScreenX+f),Math.round(Y.mozInnerScreenY+k),Math.round(Y.mozInnerScreenX));c=new xf(Y.screenY+d,Y.screenX+c.width,Y.screenY+c.height,Y.screenX);e||(d=new xf(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.position.top?a.position=d:(a.position.right=a.position.left+f,a.position.bottom=a.position.top+k),a.L=f*k);a.We(l,c,b,e,!0,!0)}};
Cha=function(a,b,c){if(a.V){var d=XB();if(d){c||XC(a,Y,!0);if(a.Rb)var e=Bha(a,d),d=!0;else var e=Math.floor((a.position.left+a.position.right)/2),f=Math.floor((a.position.top+a.position.bottom)/2),k=Ne(window.document),e=d(e-k.x,f-k.y)?.5:0,d=!1;a.We(a.position,e,b,c,!0,d)}}};
YC=function(a,b,c){if(c(b))return b;for(;;){var d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}};
Bha=function(a,b){var c=Ne(window.document),d=a.ib,e=Math.floor(a.position.left-c.x)+1,f=Math.floor(a.position.top-c.y)+1,k=Math.floor(a.position.right-c.x)-d,l=Math.floor(a.position.bottom-c.y)-d,c=(l-f)*(k-e);if(f>l||e>k)return 0;var d=!!b(e,f),m=!!b(k,l);if(d&&m)return 1;var n=!!b(k,f),q=!!b(e,l);if(d)l=YC(f,l,function(a){return!!b(e,a)}),k=YC(e,k,function(a){return!!b(a,f)});
else if(n)l=YC(f,l,function(a){return!!b(k,a)}),e=YC(k,e,function(a){return!!b(a,f)});
else if(q)f=YC(l,f,function(a){return!!b(e,a)}),k=YC(e,k,function(a){return!!b(a,l)});
else if(m)f=YC(l,f,function(a){return!!b(k,a)}),e=YC(k,e,function(a){return!!b(a,l)});
else{var t=Math.floor((e+k)/2),w=Math.floor((f+l)/2);if(!b(t,w))return 0;f=YC(w,f,function(a){return!!b(t,a)});
l=YC(w,l,function(a){return!!b(t,a)});
e=YC(t,e,function(a){return!!b(a,w)});
k=YC(t,k,function(a){return!!b(a,w)})}return(l-f)*(k-e)/c};
Dha=function(a,b,c,d,e){a.V&&(d||XC(a,Y,e),a.We(a.position,c,b,d,!1,!0))};
ZC=function(a,b,c){if(a.V){var d=c?a.g.g:a.uc;a.We(a.position,a.Ua&&!gba(a.Ua)?a.Ua:d,b,c,!0,!0)}};
Eha=function(a,b,c){if(a.V&&a.fa){var d=a.fa.o();a.We(a.position,d.g(),b,c,!0,d.o()||d.A())}};
bD=function(a,b,c,d,e){a.V&&$C(a)&&(c?a.D&&PC(a.D):(XC(a,d,!0),a.D&&OC(a.D)),a.We(a.position,e||a.g.g,b,c,!1,!1),!aD(a)||a.wk()||a.D&&NC(a.D))};
$C=function(a){return null!==a.D&&"d"!=a.D.getStatus()};
XC=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;try{var e=UC.clone(),f=new xe(0,0);if(a.J){var k=1==a.Cd;!c&&k&&bha(a.J)||(e=a.J.getBoundingClientRect());f=dj(a.J,b)}var l=f.x,m=f.y;a.position=new xf(Math.round(m),Math.round(l+(e.right-e.left)),Math.round(m+(e.bottom-e.top)),Math.round(l))}catch(n){a.position=UC.clone()}}a.L=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};
aD=function(a){a=a.Eb;var b=dC(.5);return-1==b?!1:a.A[b]>=a.la};
cD=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
Fha=function(a){a.fa||(a.A&&yC(a.A),a.D&&NC(a.D))};
dD=function(a){var b=!1,c=a.J;Y.document&&Y.document.body&&12==a.Cd&&(c=Y.document.body);if(null===c)return!1;MB(152,function(){var d=new Y.IntersectionObserver(function(b){try{var e;if(!b||!b.length||0>=b.length)e=null;else{for(var k=b[0],l=1;l<b.length;l++)b[l].time>k.time&&(k=b[l]);e=k}if(e){var m=pC(e.boundingClientRect),n=pC(e.intersectionRect);a.g.g=g.te(e.intersectionRect.width*e.intersectionRect.height/(e.boundingClientRect.width*e.boundingClientRect.height),0,1);a.uc=a.g.g;XC(a,Y,!0,m);var q=
WC(m,n),t;if(0>=a.L||q.top>=q.bottom||q.left>=q.right)t=new xf(0,0,0,0);else{var w=-m.left,x=-m.top;w instanceof xe?(q.left+=w.x,q.right+=w.x,q.top+=w.y,q.bottom+=w.y):(q.left+=w,q.right+=w,g.qa(x)&&(q.top+=x,q.bottom+=x));t=q}a.Ua=t}}catch(A){try{d.unobserve(c),NB.g("osd_adblock::nioc".toString(),A,void 0,void 0)}catch(F){}}},Gha);
d.observe(c);Hha(c);b=!0});
return b};
Hha=function(a){if(a&&(a=a.style)){var b=a.opacity;a.opacity=.98;a.opacity=.99;a.opacity=b}};
eD=function(){TB.call(this);this.A=!1;this.volume=void 0;this.paused=!1};
fD=function(a){return qC(a.volume)&&.1<=a.volume};
gD=function(){this.g={};this.g.vs=[1,0];this.g.vw=[0,1];this.g.am=[2,2];this.g.a=[4,4];this.g.f=[8,8];this.g.bm=[16,16];this.g.b=[32,32];this.g.avw=[0,64];this.g.cm=[128,128];this.g.pv=[256,256];this.g.gdr=[0,512];this.o={};for(var a in this.g)0<this.g[a][1]&&(this.o[a]=0);this.A=0};
Iha=function(a){return hD(a,g.Ob(a.g))};
hD=function(a,b){var c=0,d;for(d in a.o)g.ab(b,d)&&1==a.o[d]&&(c+=a.g[d][1],a.o[d]=2);return c};
Jha=function(a){var b=0,c;for(c in a.o){var d=a.o[c];if(1==d||2==d)b+=a.g[c][1]}return b};
iD=function(){bC.call(this);this.Ta=this.P=this.N=this.o=0;this.D=-1;this.F=this.J=this.H=this.G=this.Z=this.fa=this.L=0;this.V=[0,0,0,0,0];this.B=this.g=-1;this.O=this.ca=0;this.la=2E3};
jD=function(a,b,c){var d=a.Ta;jC||c||-1==a.D||(d+=b-a.D);return d};
kD=function(a,b,c,d){VC.call(this,b,c,d);this.fb=0;this.H={};this.B=new gD;this.bc={};this.qh=this.C="";this.re=!1;this.G=[];this.dc=this.ve=this.we=this.Z=!1;this.da=void 0;this.O=-1;this.sb=void 0;this.ab=!1;this.Aa=this.va=0;this.Ia=1;this.Oa=-1;this.qb=this.ac=!1;this.Ta=this.Ib=this.Na=this.ob=this.o=this.ba=this.qe=0;this.pa=-1;this.hd=0;this.te=this.ue=this.tc=this.F=!1;this.Xa=g.v;this.ra=[this.dk()];this.Lb=0;if(aC()){gC.getInstance().g?(b=.01,c=5,d=1):(b=.01,c=6,d=2);var e=Math.random();
e<b?this.wa=c:e<2*b&&(this.Lb=d)}b=gC.getInstance();XC(this,a,b.g)};
lD=function(a){return g.p(a)?Number(a)?cD(a,3):0:a};
mD=function(a,b){if(-1==a.N)return 0;var c=b-a.N||1,d=1E4;g.p(a.O)&&-1!=a.O&&(d=Math.max(d,a.O/3));return c>d?1:c};
nD=function(a,b){return 15E3<=b?!0:a.ac?-1!=a.O?b>=a.O/2:-1!=a.Oa?b>=a.Oa:!1:!1};
oD=function(a,b){for(var c=a.G,d=Wc({ZI:0,vk:void 0}),e=c.length;e<b+1;)c.push(d()),e++;a.G[b]={viewableArea:cD(a.g.g,2),instantaneousState:a.B.A}};
qD=function(a,b){var c=a.bc[b];if(null!=c)return c;a:if(g.ab(Kha,b))c=!0;else{c=a.H[b];if(g.p(c)&&(a.H[b]=!0,!c)){c=!0;break a}c=!1}c=pD(a,c,c);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=hD(a.B,["gdr"]));return c};
pD=function(a,b,c){if(a.na)return{"if":0};var d=a.position.clone();d.round();var e=(0,g.S)(a.G,function(a){return 100*a.ZI|0}),f=gC.getInstance(),k=a.Wd(),l={};
a.wa&&(l.raf=a.wa,l.avms="raf");a.Lb&&(l.rafc=a.Lb);l["if"]=f.g?1:void 0;l.sdk=a.da?a.da:void 0;l.t=a.uf;l.p=[d.top,d.left,d.bottom,d.right];l.tos=k.ga;l.mtos=k.A;l.ps=void 0;l.pt=e;l.vht=jD(k,iC(),!!a.Z);l.mut=k.fa;l.a=lD(a.g.volume);l.mv=lD(k.B);l.fs=a.F?1:0;l.ft=k.ca;l.at=k.Z;l.as=.1<=k.g?1:0;l.atos=k.V;l.uac=a.qe;l.vpt=k.o;rD&&(l.nio=1,l.avms="nio");l.gmm="4";l.gdr=nD(a,k.o)?1:0;a.Rb&&(l.efpf=a.ib);a.A&&(l.swf=a.A.getStatus(),l.px=a.P,l.avms="swf");a.D&&(l.sfm=a.D.getStatus(),l.px=a.P,l.avms=
"sfm");0<a.hd&&(l.nnut=a.hd);l.tcm=a.Ia;l.nmt=a.Ib;l.bt=a.Ta;l.pst=a.pa;l.vpaid=a.sb;l.dur=a.O;l.vmtime=a.va;l.is=a.B.A;1<=a.G.length&&(l.i0=a.G[0].vk);2<=a.G.length&&(l.i1=a.G[1].vk);3<=a.G.length&&(l.i2=a.G[2].vk);4<=a.G.length&&(l.i3=a.G[3].vk);l.cs=Jha(a.B);b&&(l.ic=Iha(a.B),l.dvs=k.P,l.davs=k.J,l.dafvs=k.F,c&&(k.P=0,k.J=0,k.F=0),aD(a)&&(l.dtos=k.N,l.dav=k.H,l.dtoss=a.fb+1,c&&(k.N=0,k.H=0,a.fb++)),l.dat=k.G,l.dft=k.O,c&&(k.G=0,k.O=0));f.B&&(l.ps=[f.B.width,f.B.height]);l.dom=f.H;a.la&&(l.fmf=
"1",l.px=a.P);a.ba&&(l.vds=a.ba);a.o&&(l.vmer=a.o);a.ob&&(l.vmmk=a.ob);a.Na&&(l.vmiec=a.Na);a.fa&&(l.avms=a.fa.constructor.getName(),g.Zb(l,a.fa.g()));gC.getInstance();sD()?(l.c=cD(a.g.g,2),l.ss=cD(Lha(a),2)):l.tth=iC()-tD;l.mc=cD(k.da,2);l.nc=cD(k.C,2);l.mv=lD(k.B);l.nv=lD(k.g);l.lte=cD(a.Db,2);b=a.ra[a.ra.length-1];l.qmtos=b.A;l.qmc=cD(b.C,2);l.qmv=lD(b.B);l.qas=.1<=b.g?1:0;l.qi=a.C;l.avms||(l.avms="geo");return l};
Lha=function(a){if(a.F)return 1;var b=Y.screen.width*Y.screen.height;return 0>=b?-1:Math.min(a.L*a.g.g/b,1)};
Mha=function(a){this.Zl=a};
DD=function(){if(!uD){uD=!0;var a=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame;if(!vD&&!rD&&!wD){var b;if(a){var c=OB(136,xD);b=function(){a(function(){Y.setTimeout(c,0)})}}else b=xD;
b=LB(137,b);yD=new ur(b,100);b=(0,g.z)(yD.Tg,yD);vD=eC(Y,"scroll",b,138)}if(!zD&&!rD&&!wD){if(a){var d=OB(139,AD);b=function(){a(function(){Y.setTimeout(d,0)})}}else b=AD;
b=OB(140,b);BD=new ur(b,100);b=(0,g.z)(BD.Tg,BD);zD=eC(Y,"resize",b,141)}Nha();CD()}};
AD=function(){ED(!1);xD()};
xD=function(){FD(GD(),!1)};
Oha=function(){var a,b=gC.getInstance();HD&&!b.A&&(b.o=fC(Y,HD));if(ID)return a=new JD,a.L=!0,a;if(rD)return a=new JD,a.J=!0,a;if(wD)return a=new JD,a.D=!0,a;if(KD){a=LD;ED(!1);var c=gC.getInstance(),d=c.D,b=d.height-a;0>=b&&(b=d.height,a=0);c.o=new g.ze(d.width,b);b=new JD;b.G=!0;b.B=c.o;b.g=d;b.C=a;return b}if(MD)return a=new JD,a.F=!0,a;if(ND)return a=new JD,a.H=!0,a;if(OD)return a=new JD,a.O=!0,a;a:{var b=b.o,e=new JD;e.B=b;e.o=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=
b.height){var f=gC.getInstance();if(f.A)a=f.C;else try{var f=HD,k=Y||Y,k=k.top;k.environment&&k.environment.browser&&"Cobalt"===k.environment.browser&&!k.document.defaultView&&(k.document.defaultView=k);c=b||fC(k,f);d=Ne(Fe(k.document).g);a=-1==c.width||-12245933==c.width?new xf(c.width,c.width,c.width,c.width):new xf(d.y,d.x+c.width,d.y+c.height,d.x)}catch(l){a=e;break a}e.A=a;e.o=!0}a=e}return a};
FD=function(a,b){if(!PD)if(window.clearTimeout(QD),QD=null,0==a.length)b||RD();else{var c=Oha(),d=gC.getInstance();try{var e=iC();if(null!=TC.getInstance().g)for(var f=0;f<a.length;f++)Eha(a[f],e,b);else if(c.D)for(f=0;f<a.length;f++)ZC(a[f],e,b);else if(c.J)for(f=0;f<a.length;f++)ZC(a[f],e,b);else if(c.G&&c.g)for(f=0;f<a.length;f++)Aha(a[f],e,c.g,c.C,b);else if(c.F)for(f=0;f<a.length;f++)Cha(a[f],e,b);else if(c.H)(0,g.H)(a,function(a){if(b){if(a.A){var c=a.A;3<=c.B&&(c.B=3);a.g.g=0}}else if(a.A&&
"d"!=a.A.getStatus()){var c=iha(a.A),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.g.g=d[c.o+1];a.We(a.position,e,a.N+c.g,!1,!0,!1);!aD(a)||a.wk()||a.Nb||a.A&&yC(a.A);(c=2==c.snapshot||CC(a.A))||(c=a.A,c="f"==c.g&&3E3<=c.C);c&&(a.Ja(a),a.Nb=!1,a.A&&yC(a.A))}});
else if(c.O)for(f=0;f<a.length;f++)bD(a[f],e,b,Y);else if(c.L)(0,g.H)(a,function(a){if(b)a.ca&&(a.ca.B=3,a.g.g=0);else if(a.ca){var c=yha(a.ca),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.g.g=d[c.o+1];a.We(a.position,e,a.N+c.g,!1,!0,!1);!aD(a)||a.wk()||a.Nb||a.ca&&tha(a.ca)}});
else if(c.o&&c.A)for(f=0;f<a.length;f++)Dha(a[f],e,c.A,b,d.g);++Pha}finally{b?(0,g.H)(a,function(a){a.g.g=0}):RD()}}};
Nha=function(){var a=CD,b=SB();b&&(SD=SD||eC(HB,b,a,142))};
CD=function(){var a=sD(),b=iC();a?(jC||(kC=b,(0,g.H)(TD,function(a){var c=a.Wd();c.Ta=jD(c,b,!!a.Z)})),jC=!0,ED(!0)):(jC=!1,tD=b,(0,g.H)(TD,function(a){a.V&&(a.Wd().D=b)}));
FD(GD(),!a)};
sD=function(){if(Qha())return!0;var a=RB(Y.document);return 1==a||0==a};
RD=function(){Y&&(QD=Y.setTimeout(PB(143,function(){FD(GD(),!1)}),Zga()))};
Rha=function(a){return g.Xa(TD,function(b){return b.C==a})};
GD=function(){return 0==TD.length?UD:0==UD.length?TD:ib(UD,TD)};
ED=function(a){var b=gC.getInstance();b.o=b.A?(new g.ze(b.C.yb(),b.C.getHeight())).round():fC(Y,HD);if(!a){b.D=Y&&Y.outerWidth?new g.ze(Y.outerWidth,Y.outerHeight):new g.ze(-12245933,-12245933);var c;a=Y;null!==a&&a.top!=a&&(a=a.top);var d=0,e=0,f=gC.getInstance().o;try{var k=a.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)d=m.scrollHeight!=f.height?m.scrollHeight:m.offsetHeight,e=m.scrollWidth!=f.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,q=
m.scrollWidth,t=m.offsetHeight,w=m.offsetWidth;m.clientHeight!=t&&(n=l.scrollHeight,q=l.scrollWidth,t=l.offsetHeight,w=l.offsetWidth);n>f.height?n>t?(d=n,e=q):(d=t,e=w):n<t?(d=n,e=q):(d=t,e=w)}c=new g.ze(e,d)}catch(x){c=new g.ze(-12245933,-12245933)}b.B=c}};
Sha=function(){(0,g.H)(GD(),function(a){dD(a)&&(rD=!0)});
return rD};
Tha=function(a,b,c){var d=!1;(0,g.H)(b,function(b){b.Ja=c;d=b.bl(a)||d});
(OD=d)&&(0,g.H)(b,function(a){$C(a)||c(a)});
return d};
Uha=function(a,b){var c=!1;(0,g.H)(a,function(a){a.Ja=b;c=a.Bj()||c});
(ND=c)&&(0,g.H)(a,function(a){a.A||b(a)});
return ND};
Vha=function(a){(0,g.H)(a,function(a){null==g.Xa(TD,function(b){return b.element==a.element&&b.qh==a.qh})&&TD.push(a)})};
Qha=function(){return ph(TD,function(a){return a.F})};
VD=function(){var a=ID;(0,g.H)(UD,function(b){a=b.Si()||a});
(0,g.H)(TD,function(b){a=b.Si()||a});
return ID=a};
JD=function(){this.g=this.B=null;this.C=0;this.A=null;this.o=this.O=this.H=this.F=this.G=this.L=this.D=this.J=!1};
Wha=function(a){var b=[];g.Eb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(na(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
WD=function(){this.o=64;this.g=Array(4);this.C=Array(this.o);this.B=this.A=0;this.reset()};
XD=function(a,b,c){c||(c=0);var d=Array(16);if(g.y(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.g[0];c=a.g[1];var e=a.g[2],f=a.g[3],k;k=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+
d[3]+3250441966&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&
(b^c))+d[10]+4294925233&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|k>>>
27);k=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(k<<20&4294967295|
k>>>12);k=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(k<<14&4294967295|
k>>>18);k=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295};
Yha=function(){var a=pB(),b=a.length-1,c=qB(a),a=c.g,d=c.o,c=[];d?(a&&c.push(YD(b,[d.url,2],0,[a.url,0],a.depth)),c.push(YD(b,[d.url,2],0))):a.url&&(c.push(YD(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=Xha.exec(a.url))&&d[0]||"")&&c.push(YD(b,[d,1],a.depth)));c.push(YD(b));return c};
YD=function(a,b,c,d,e){a=[a];if(g.p(b)&&g.p(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(g.p(d)&&g.p(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a};
ZD=function(){var a=Yha();return(0,g.S)(a,function(a){return wB(a)})};
$D=function(a){return function(b){return!g.p(b[a])&&g.p(0)?0:b[a]}};
bE=function(){var a=[0,2,4];return function(b){b=b.tos;if(na(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 g.p(a)?aE(c,a):c}}};
cE=function(a,b){return function(c){c=c[a];if(na(c))return aE(c,b)}};
aE=function(a,b){return(0,g.Od)(a,function(a,d){return g.ab(b,d)})};
Zha=function(a){if(!a)return"";var b=a.document,c=[];c.push("url="+(0,window.encodeURIComponent)(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+(0,window.encodeURIComponent)(b.referrer.substring(0,512)));return c.join("&")};
dE=function(){this.o=this.B=this.A=this.F=!1;this.G=[];this.g={};this.g.start=this.vC;this.g.firstquartile=this.kC;this.g.midpoint=this.pC;this.g.thirdquartile=this.wC;this.g.complete=this.gC;this.g.pause=this.rC;this.g.resume=this.tC;this.g.skip=this.uC;this.g.viewable_impression=this.yC;this.g.mute=this.qC;this.g.unmute=this.xC;this.g.fullscreen=this.lC;this.g.exitfullscreen=this.jC;this.g.fully_viewable_audible_half_duration_impression=this.mC;this.g.measurable_impression=this.oC;this.g.abandon=
this.fC;this.g.engagedview=this.iC;this.g.impression=this.nC;this.g.creativeview=this.hC;this.g.progress=this.sC;gC.getInstance().J=3};
$ha=function(a){var b=gC.getInstance();(function(){b.A=!1;eE(this)}).call(a)};
eE=function(a){if(null!=Y.IntersectionObserver&&Sha())DD();else if(aC()&&VD())DD();else{var b;if(Pi&&g.qa(Y.screenX)&&g.qa(Y.mozInnerScreenX)&&g.qa(Y.outerWidth)){b=Y.navigator.userAgent;var c=b.indexOf("Firefox/");if(0<=c){var c=Math.floor(b.substr(c+8))||-1,d=b.indexOf("Mac OS X 10."),e=-1;0<=d&&(e=Number(b.substr(d+12,1))||-1);var f=0<e?-1:b.indexOf("Windows NT "),d=-1;0<=f&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(f+11,3)]||-1);b=148;5<=e?b=4<=c?108:3<=c?127:108:0<=d&&(16==c||17==c||18==c)&&(b=[[146,
146,146],[148,147,148],[131,130,136]][d][c-16])}else b=null;null!==b&&(LD=b,KD=!0);b=!0}else b=!1;if(b)DD();else if(b=g.Me&&g.oc(8)&&ra(XB())?MD=!0:!1,b)DD();else{if($B()){if(gC.getInstance().O=1,Tha(Y,TD,(0,g.z)(a.qn,a))){DD();a.B=!0;return}}else if(Uha(TD,(0,g.z)(a.qn,a))){DD();a.A=!0;return}a.Es("i")}}};
fE=function(a,b,c){FD([a],!sD());oD(a,c);b=qD(a,b);if(4!=c){var d=a.ra;a=a.dk;for(var e=d.length;e<c+1;)d.push(a()),e++}return b};
gE=function(a,b){var c=a.Wd();c.Ta=jD(c,iC(),!!a.Z);c=!sD();FD([a],c);a.Z=!0;return qD(a,b)};
hE=function(a){if(g.y(a)){var b=g.Wa(TD,function(b){return b.C==a});
0<=b&&(Fha(TD[b]),g.db(TD,b))}};
aia=function(a,b,c){var d=g.Xa(TD,function(a){return a.element==c});
null!==d&&d.C!=b&&(hE(d.C),d=null);d||(d=iE(a,c),d.C=b,d.da="h");return d};
iE=function(a,b){var c;c=new kD(Y,b,-1,7);c.Fc=(0,g.z)(a.pn,a);gC.getInstance().G=79463069;Vha([c]);DD();return c};
bia=function(a,b){var c=Rb(jE,function(b){return b==a}),c={sv:"543",
cb:"j",e:kE[c]},d=qD(b,a);g.Zb(c,d);b.bc[a]=d;return lE(c,mE)};
lE=function(a,b,c,d,e){var f={};if(g.p(a))for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(ra(l)?f[k]=l(a):f[k]=a[l])}g.p(c)&&g.Zb(f,c);a=Wha(f);0!=a.length&&g.p(d)&&g.p(e)&&(e=e(a),a+="&"+d+"="+e);return a};
oE=function(a,b){var c={sv:"543",cb:"j"};c.nas=TD.length;c.msg=a;if(g.p(b)){var d=nE(b);d&&(c.e=kE[d])}return c};
nE=function(a){var b=a.toLowerCase();return Rb(jE,function(a){return a==b})};
pE=function(a,b){var c=a[b];g.p(c)&&(a[b]=Math.floor(1E3*c))};
qE=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
sE=function(a){return!!(1<<a&rE)};
gia=function(){try{cia()}catch(d){}var a="a=1&b="+rE+"&",b=[],c=99;(0,g.H)(dia,function(a,c){var d=!1;try{d=a(Y)}catch(k){}b[c/32>>>0]|=d<<c%32});
(0,g.H)(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;(0,g.H)(eia,function(b){var d="false";try{d=b(Y)}catch(f){}a+=String.fromCharCode(c++)+"="+d+"&"});
(0,g.H)(fia,function(b){var d="";try{var f=b(Y),d=g.Em(g.hm(f),!0)}catch(k){}a+=String.fromCharCode(c++)+"="+d+"&"});
return a.slice(0,-1)};
cia=function(){if(!tE){var a=function(){uE=!0;Y.document.removeEventListener("webdriver-evaluate",a,!0)};
Y.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){vE=!0;Y.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Y.document.addEventListener("webdriver-evaluate-response",b,!0);tE=!0}};
wE=function(){dE.call(this);this.D=void 0;this.C=null};
iia=function(a,b,c){var d=g.Xa(TD,(0,g.z)(function(a){return a.element?xE(a.element,c)==b&&a.qh==c:!1},a));
null!==d&&d.C!=b&&(hE(d.C),d=void 0);if(d)return d;d=hia(c);if(d=g.Xa(d,(0,g.z)(function(a){return xE(a,c)==b},a)))return d=iE(a,d),d.da="as",d.C=b,d.qh=c,d};
hia=function(a){var b=Y.document,c=Ab((0,g.S)(["embed","object"],function(a){return g.jb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=(0,g.Od)(c,function(a){if(!a||!g.sa(a)||1!=a.nodeType||!ra(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ra(a[d])?!0:!1})};
xE=function(a,b){var c="metricID"+b;if(!a||!a[c]||!ra(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID};
yE=function(a,b){gC.getInstance();var c;switch(a.da){case "h":c=u("ima.common.triggerExternalActivityEvent");break;case "m":c=u("ima.common.triggerExternalActivityEvent");break;case "n":c=u("ima.bridge.triggerExternalActivityEvent");break;case "as":var d="triggerExternalActivityEvent"+a.qh;a.element&&ra(a.element[d])&&(c=function(b,c,e){a.element[d](e)});
break;default:return a.ba|=4,!1}if(ra(c)){var e=bia(b,a);try{return c(a.C,e,b),!0}catch(f){a.ba|=2}}else a.ba|=1;return!1};
AE=function(a,b){var c={};c.viewability=lE(b,mE);var d;d=rE=(new Date).getTime();var e=sE(5);d=(uE?!e:e)?d|2:d&-3;e=sE(2);d=(vE?!e:e)?d|8:d&-9;d={s1:(d>>>0).toString(16)};a.C||(a.C=gia());c.moatInit=a.C;c.moatViewability=lE(b,jia,d,"h",zE("kArwaWEsTs"));c.integralAdsViewability=lE(b,kia,{},"h",zE("b96YPMzfnx"));c.doubleVerifyViewability=lE(b,lia,{},"h",zE("yb8Wev6QDg"));c.googleViewability=lE(b,mia);return c};
zE=function(a){return function(b){var c=new WD;c.update(b+a);return lca(c.digest()).slice(-8)}};
nia=function(a,b,c){a=gC.getInstance();if(a.F!=b){a.F=b;var d=ph(TD,function(a){return a.te});
(0,g.H)(TD,function(a){b||d||(a.N=c);a.tc=b;a.te=!1})}};
EE=function(a,b,c){var d;d=wE.getInstance();var e={};g.Zb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});if(e.opt_bounds)d=AE(d,oE("ol",a));else{b:{if(nE(a)){if(BE){e=oE("ue",a);break b}b=d.bn(b,e);if(!b){e=oE("nf",a);break b}if(!d.F){d.F=!0;try{hC=iC();CE=dB(Y,!1).tl;ED(!1);var f=Y.document;if(f.body&&f.body.getBoundingClientRect){(0,g.z)(d.Es,d);TC.getInstance();var k=gC.getInstance();!k.g&&aC()&&VD()?DD():k.g?k.A?$ha(d):eE(d):DD()}else BE=!0}catch(l){throw TD=[],UD=[],l;}}"i"==DE&&(b.na=
!0,d.uo(b));b.Rb=!0;b.ib=2;f=e.opt_fullscreen;g.p(f)&&(b.F=!!f);a=a.toLowerCase();g.ab(oia,a)&&(b.ue||(b.ue=!0,"i"!=DE&&(PD=!1),f=TC.getInstance(),null!=f.g&&(f=null!=f.g?new f.g:null,b.fa=f),ID&&b.Si(),rD&&dD(b),!d.A||b.A||b.la||(b.Ja=(0,g.z)(d.qn,d),b.Bj(3)),d.B&&!$C(b)&&b.bl(Y,3),b.H={},b.H.firstquartile=!1,b.H.midpoint=!1,b.H.thirdquartile=!1,b.H.complete=!1,b.H.pause=!1,b.H.skip=!1,b.H.viewable_impression=!1,b.fb=0,f=g.p(e)?e.opt_nativeTime:void 0,lC=f=g.qa(f)?f:iC(),b.V=!0,k=!1,sD()||(k=!0,
b.Wd().D=f),FD([b],k)),d.Fs(b));if(f=d.g[a])if(e=f.call(d,b,e),g.p(e)){b=oE(void 0,a);g.Zb(b,e);e=b;break b}}e=void 0}d=AE(d,e)}return d};
FE=function(a,b){var c=u("ima.common.triggerViewabilityMeasurementUpdate");if(ra(c)){var d={};d.insideIframe=gC.getInstance().g;d.unmeasurable=b.na;d.position=b.position;d.coverage=b.g.g;d.nativeVolume=a.D;c(b.C,d)}};
GE=function(a){var b=wE.getInstance();-1===b.G.indexOf(a)&&b.G.push(a)};
HE=function(){};
KE=function(a,b){if(null==a||0>=a.width||0>=a.height)throw Hz(IE,null,"ad slot size",a.toString());this.o=a;this.g=null!=b?b:new HE;this.C=JE(pia,this.g.A)?this.g.A:"All";this.B=JE(qia,this.g.creativeType)?this.g.creativeType:"All";this.F=JE(ria,this.g.B)?this.g.B:"SelectExactMatch";this.G=JE(sia,this.g.o)?this.g.o:"DisallowResize";this.A=null!=this.g.C?this.g.C:[];this.D=g.qa(this.g.g)&&0<this.g.g&&100>=this.g.g?this.g.g:90};
ME=function(a,b){var c=[];(0,g.H)(b,function(a){a.Vs()&&((0,window.isNaN)(a.g.g)||(0,window.isNaN)(a.Xm())||a.Xm()==a.g.g)&&LE(this,a)?c.push(a):(a=tia(this,a),null!=a&&a.Vs()&&c.push(a))},a);
return c};
LE=function(a,b){var c;if(c="Flash"!=b.Qc()||NE){if(c="All"==a.C||a.C==b.g.ca)c=b.Qc(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.A,c=g.J(a.A)?!0:null!=c?0<=$a(a.A,c):!1)}if(c){var d=b.vn();if("IgnoreSize"==a.F||g.Ae(a.o,d))c=!0;else if(c="SelectNearMatch"==a.F)"ResizeSmaller"==a.G&&(d=d.width<=a.o.width&&d.height<=a.o.height?d:OE(d,a.o)),c=d.width,d=d.height,c=c>a.o.width||d>a.o.height||c<a.D/100*a.o.width||d<a.D/100*a.o.height?!1:!0}else c=!1;return c};
tia=function(a,b){var c=b.B;return null!=c?g.Xa(c,function(a){return LE(this,a)},a):null};
OE=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new g.ze(c*a.width,c*a.height)};
JE=function(a,b){return null!=b&&Kb(a,b)};
PE=function(a){a=0>a?0:Math.round(a);return 3600<=a?""+Math.floor(a/3600)+":"+("0"+Math.floor(a/60)%60).slice(-2)+":"+("0"+a%60).slice(-2):""+Math.floor(a/60)%60+":"+("0"+a%60).slice(-2)};
uia=function(a){var b={};(0,g.H)(a.split(","),function(a){var c=a.split("=");2==c.length&&(a=La(c[0]),c=La(c[1]),0<a.length&&(b[a]=c))});
return b};
RE=function(a,b){if(a[b])return QE(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return QE(a[d]);return!1};
QE=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
via=function(){this.g=this.Ve=1;this.o=this.A=0;this.B=1};
SE=function(){N.call(this);this.g=null;this.C=new Go(this);g.M(this,this.C);this.o=new If;this.F=new If;this.D=null;this.A=!1;this.B=null};
UE=function(){null!=TE||(TE=new SE);return TE};
WE=function(a){if(null==a)return!1;if(Qz()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=VE(a);return 0>=b-a.width&&42>=c-a.height};
VE=function(a){return ra(a.getBoundingClientRect)&&g.df(De(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
XE=function(a,b,c,d,e){if(a.A){if(a.B)return a.B(b,c,e);e=e||{};if(d=d?a.F.get(d):X.F)null!=e.opt_fullscreen||(e.opt_fullscreen=WE(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.D&&(e.opt_bounds=VE(a.D));return MB("lidar::handlevast_html5",g.B(EE,b,c,e))||{}}return{}};
YE=function(a,b){var c=[];a.o.forEach(g.B(function(a,b,c,k){c==b&&a.push(k)},c,b));
(0,g.H)(c,a.o.remove,a.o)};
ZE=function(a){if(ra(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.g.send("activityMonitor","pageSignals",b)}};
wia=function(a,b,c){if(!X.G)return"";var d=b?a.F.get(b):X.F;a={};null!=c&&(a.fullscreen=c);c="";try{c=Nga(function(){return d},a)}catch(e){c="sdktle;"+Ea(e.name,12)+";"+Ea(e.message,40)}return c};
$E=function(a,b,c){if(g.J(a))return null;a=(0,g.Od)(a,function(a){var b=a.B;return"application/x-mpegurl"==E(a.g).toLowerCase()||"progressive"==b});
g.J(c)||(c=(0,g.S)(c,function(a){return a.toLowerCase()}),a=(0,g.Od)(a,function(a){return g.ab(c,E(a.g).toLowerCase())}));
if(!g.qa(b)||0>=b)b=Mz()?500:1E3;return xia(a,b)};
xia=function(a,b){return yia(a,b)||zia(a,b)||Aia(a,b)};
yia=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.Gf,f=a.Ne;d>b||f<b||!(null==c||c.Gf>d)||(c=a)});
return c};
zia=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.Gf,f=a.Ne;f>b||(null==c||c.Ne<f?c=a:null!=c&&c.Ne==f&&c.Gf>d&&(c=a))});
return c};
Aia=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.Gf,f=a.Ne;if(!(d<b))if(null!=c&&c.Gf==d&&c.Ne<f)c=a;else if(null==c||c.Gf>d)c=a});
return c};
aF=function(){N.call(this);this.D=this.H=this.L=this.F=!1;this.g=0;this.A=[];this.G=!1;this.N=this.O=window.Infinity;this.o=0;this.C=!1;this.B=new Go(this);this.J={}};
Bia=function(a){bF(a);!(a.jg instanceof N)&&"ontouchstart"in window.document.documentElement&&Rz()?(a.J={touchstart:(0,g.z)(a.kH,a),touchmove:(0,g.z)(a.jH,a),touchend:(0,g.z)(a.iH,a)},g.Eb(a.J,function(a,c){this.jg.addEventListener(c,a,!1)},a)):a.B.S(a.jg,"click",a.Ws)};
bF=function(a){a.B.Ca(a.jg,"click",a.Ws);g.Eb(a.J,function(a,c){this.jg.removeEventListener(c,a,!1)},a);
a.J={}};
Cia=function(a,b){a.A=[];(0,g.H)(b,function(a){g.cb(this.A,a.identifier)},a)};
cF=function(a,b){return ph(b,function(a){return g.ab(this.A,a.identifier)},a)};
dF=function(a){null!=a?tz(Dia,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=uz(a)?Eia(a):null:a=null;return a};
eF=function(a,b,c){if(null==a)return null;c=new gg((null!=c?c:"//www.youtube.com/")+"watch");var d=c.g;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");lg(c,d);return c.toString()};
fF=function(a){a=null!=a?a:{};var b=new gg("//www.youtube.com/gen_204");hg(b,"https");a=wg(a);lg(b,a);return b.toString()};
gF=function(a){return null===a?!1:"pharma"==(new gg(a)).lg().toLowerCase()};
Eia=function(a){if(D(E(a)))return null;var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=(new gg(a)).g;return yg(a,"v")?a.get("v").toString():yg(a,"video_id")?a.get("video_id").toString():null};
hF=function(a){return D(E(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};
iF=function(a){this.o=0;this.A=a||100;this.g=[]};
jF=function(a,b){if(b>=a.g.length)throw Error("Out of bounds exception");return a.g.length<a.A?b:(a.o+Number(b))%a.A};
kF=function(){N.call(this)};
lF=function(a){N.call(this);this.g=a;this.V=new iF(4);this.A=0;this.P=this.B=this.L=this.F=!1;this.O=this.Ke();this.J=this.Yg();this.Z=LA();this.N=!1};
nF=function(a){a.L=!1;a.B=!1;a.F=!1;a.A=0;a.P=!1;a.V.clear();mF(a);g.Cb(a.C)};
oF=function(a){if(!a.B){a.B=!0;mF(a);a.dispatchEvent("start");var b=ra(a.g.getAttribute)&&null!=a.g.getAttribute("playsinline");bA(b)||!g.sx||Wz(3)||Qz()&&!Uz(4)||a.Dn()}};
pF=function(a){for(var b=a.g.buffered.length-1;0<=b;){if(a.g.buffered.start(b)<=a.g.currentTime)return a.g.buffered.end(b);b--}return 0};
mF=function(a){a.H&&(Hd(a.H),a.H=null)};
rF=function(){N.call(this);this.o=new qF;this.g=new Go(this);var a=ez();if(a){a:{if(Qb(a.g,"videoElementMockDuration")&&(a=a.g.videoElementMockDuration,g.qa(a)))break a;a=window.NaN}this.duration=a}};
Fia=function(){var a=["video/mp4"],b=["video/ogg"],c=new rF;c.canPlayType=function(c){return g.ab(a,c)?"probably":g.ab(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
Gia=function(a){this.startTime=0;this.endTime=a};
qF=function(){this.length=0;this.g=[]};
sF=function(){throw Error("Do not instantiate directly");};
tF=function(a,b){this.content=String(a);this.df=null!=b?b:null};
uF=function(){sF.call(this)};
vF=function(){sF.call(this)};
wF=function(){sF.call(this)};
xF=function(){sF.call(this)};
yF=function(){sF.call(this)};
zF=function(){sF.call(this)};
AF=function(a,b){var c;var d=a(b||Hia,void 0,void 0);c=Fe().createElement("DIV");d=Iia(d);c.innerHTML=d;1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType&&(c=d));return c};
Iia=function(a){if(!g.sa(a))return String(a);if(a instanceof sF){if(a.Ae===BF)return a.Yc();if(a.Ae===CF)return Da(a.Yc())}return"zSoyz"};
DF=function(a,b){return null!=a&&a.Ae===b};
EF=function(a){if(null!=a)switch(a.df){case 1:return 1;case -1:return-1;case 0:return 0}return null};
FF=function(){sF.call(this)};
Z=function(a){return null!=a&&a.Ae===BF?a:a instanceof le?GF(me(a),a.Qg()):GF(Da(String(String(a))),EF(a))};
HF=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
KF=function(a,b,c){var d="key_"+a+":"+b,e=IF[d];if(void 0===e||0>e)IF[d]=0,JF[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
LF=function(a,b){var c=JF["key_"+a+":"+b];c||""==b||(c=JF["key_"+a+":"]);return c?c:Jia;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
Jia=function(){return""};
PF=function(a){return DF(a,BF)?String(String(a.Yc()).replace(MF,"").replace(NF,"&lt;")).replace(Kia,OF):Da(String(a))};
QF=function(a){return DF(a,BF)?String(String(a.Yc()).replace(MF,"").replace(NF,"&lt;")).replace(Lia,OF):String(a).replace(Mia,OF)};
Nia=function(a){return"%"+a.charCodeAt(0).toString(16)};
SF=function(a){a=Ba(String(a));RF.lastIndex=0;return RF.test(a)?a.replace(RF,Nia):a};
YF=function(a){DF(a,TF)||DF(a,UF)?a=VF(a):a instanceof ce?a=VF(de(a)):a instanceof he?a=VF(ie(a)):(a=String(a),a=Oia.test(a)?a.replace(WF,XF):"about:invalid#zSoyz");return a};
ZF=function(a){DF(a,TF)||DF(a,UF)?a=VF(a):a instanceof ce?a=VF(de(a)):a instanceof he?a=VF(ie(a)):(a=String(a),a=Pia.test(a)?a.replace(WF,XF):"about:invalid#zSoyz");return a};
aG=function(a){var b=$F[1]||($F[1]=new Ql(1)),c=EF(a);null==c&&(c=Ud(a+"",DF(a,BF)));return Qia(c!=b.g?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")};
OF=function(a){return Ria[a]};
XF=function(a){return Sia[a]};
VF=function(a){return String(a).replace(WF,XF)};
Tia=function(a,b,c){return""+LF("a",a.Tj)(a,null,c)};
Uia=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Z(aG(a.ye))+">"+Z(a.ye)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
Via=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Z(aG(a.ye))+">"+Z(a.ye)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Z(a.gh)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
bG=function(){return GF('<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>')};
cG=function(a){a=a||{};return""+wa("Your video will begin in {$xSeconds}",{xSeconds:Z(a.qf)})};
Wia=function(a){return GF('<div class="videoAdUiBrandPrecapContainer html5-stop-propagation"><div class="videoAdUiBrandPrecapContent"><div class="videoAdUiBrandPrecapImageContainer" aria-hidden="true"><img class="videoAdUiBrandPrecapBrandImage" src="'+PF(ZF(a.MA))+'"></div><div class="videoAdUiBrandPrecapTextContainer"><div class="videoAdUiBrandPrecapBrandName">'+Z(a.OA)+'</div><div class="videoAdUiBrandPrecapBrandMessage">'+Z(a.NA)+"</div></div></div></div>")};
Xia=function(){return GF('<div class="videoAdUiBrandInteractionUnit html5-stop-propagation"><div class="videoAdUiBrandInteractionButtonContainer"><button class="videoAdUiBrandInteractionButton videoAdUiBrandInteractionLikeButton"><div class="videoAdUiBrandInteractionIcon videoAdUiBrandInteractionLikeIcon"></div></button><span class="videoAdUiBrandInteractionMessageBox videoAdUiLikeMsg"></span></div><div class="videoAdUiBrandInteractionButtonContainer"><button class="videoAdUiBrandInteractionButton videoAdUiBrandInteractionDislikeButton"><div class="videoAdUiBrandInteractionIcon videoAdUiBrandInteractionDislikeIcon"></div></button><span class="videoAdUiBrandInteractionMessageBox videoAdUiDislikeMsg"></span></div></div>')};
Yia=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction">'+Z(a.Dv)+'<div class="videoAdUiSkipIcon"></div></button></div>'};
Zia=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction"><div class="videoAdUiSkipButtonText">'+Z(a.Dv)+'</div><div class="videoAdUiExperimentalSkipIcon"></div></button></div>'};
dG=function(a){var b="";a=2<=a.Yi&&1<=a.Qh?wa("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Z(a.Qh),totalAds:Z(a.Yi),timeLeft:Z(a.Xi)}):wa("Ad {$timeLeft}",{timeLeft:Z(a.Xi)});return b+=a};
fG=function(){var a=eG(),b=GF("</a>"),a=wa("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:Z(a),endFormat:Z(b)});return GF(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
eG=function(){return GF('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
gG=function(a){return GF("<div class='videoAdUiPopupBackground'><div class='videoAdUiPopupCloseIcon'><svg height=\"100%\" viewBox=\"0 0 24 24\" width=\"100%\"><path 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\"></path></svg></div><div class='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+Z(a.heading)+"</div><div class='videoAdUiPopupText'>"+Z(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Z(a.buttons)+"</div></form></div></div>")};
$ia=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+Z(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Z(a.Qm)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Z(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Z(a.control)+"</a>";a=""+gG({heading:hG(""+Z(a.heading)),message:hG(b),buttons:hG("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+
Z(a.close)+"</button>")});return GF(a)};
aja=function(a){for(var b=""+Z(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+PF(e)+"'><input type='radio' id='videoAdUiMuteOption"+PF(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+PF(e)+"' />"+Z(f)+"</label>");a=""+gG({heading:hG(Z(a.heading)+" <a class='videoAdUiMuteUndo'>"+Z(a.undo)+"</a>"),message:hG(b),buttons:hG("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Z(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+
Z(a.confirm)+"</button>")});return GF(a)};
bja=function(a){var b=String(""+a.heading);return GF(gG({heading:b?new tF(b,void 0):"",message:hG(""+Z(a.message)),buttons:hG("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Z(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Z(a.confirm)+"</button>")}))};
cja=function(){return GF('<div class=\'videoAdUiMuteToggleButton\'><div class=\'videoAdUiMutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9.6314915,5.9285684 L10.6837982,4.9386188 L12.8157457,6.9442323 L14.9476933,4.9386188 L16,5.9285684 L13.8680525,7.9341818 L16,9.9397952 L14.9476933,10.9297447 L12.8157457,8.9241313 L10.6837982,10.9297447 L9.6314915,9.9397952 L11.7634391,7.9341818 L9.6314915,5.9285684 Z" fill="#fff"></path></svg></div><div class=\'videoAdUiUnmutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9,11.4457379 C10.7427023,10.9390412 12,9.5931906 12,7.9969959 C12,6.4008011 10.7427023,5.0549506 9,4.5492552 L9,11.4457379 Z" fill="#fff"></path><path d="M14.2494529,8 C14.2494529,11.0361747 12.0131291,13.5866817 9,14.3156841 L9,16 C12.9934354,15.2419577 16,11.9484291 16,8 C16,4.0505695 12.9934354,0.7570409 9,0 L9,1.6833146 C12.0131291,2.4123169 14.2494529,4.9638253 14.2494529,8 L14.2494529,8 Z" fill="#fff"></path></svg></div></div>')};
iG=function(a,b,c,d){if(null==a||!g.df(De(a),a))throw Hz(IE,null,"containerElement","element");this.C=a;this.o=this.g=null;this.B=b;this.F=!d;this.D=c||!1;this.A=null;this.g=g.P("DIV",{style:"display:none;"});this.C.appendChild(this.g);this.F&&(a=ez(),fz(a,"useVideoElementMock")?(a=Fia(),b=g.P("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),g.va(b,a),a.Rh=g.P("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.uk=g.P("P",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.Rh.appendChild(a.uk),b.appendChild(a.Rh),a.g.S(a,["loadeddata","playing","pause","ended"],a.zH),a=b):a=g.P("VIDEO",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:""+wa("Advertisement")}),a.setAttribute("webkit-playsinline",!0),a.setAttribute("playsinline",!0),this.o=a,this.g.appendChild(this.o));this.B&&(a="display:none;position:absolute;width:100%;height:100%;",X.C||(a+="background-color:#000;"),a=g.P("DIV",{id:this.B,style:a}),this.g.appendChild(a));this.D&&(this.A=
g.P("DIV",{style:"position:absolute;width:100%;height:100%;"}),this.g.appendChild(this.A))};
jG=function(a,b,c,d){g.L.call(this);this.A=b||null;this.D="*";this.o=c||null;this.sessionId=null;this.channel=d||null;this.G=!!a;this.C=(0,g.z)(this.H,this);window.addEventListener("message",this.C)};
kG=function(a,b){"null"!=b.origin&&(a.o=a.D=b.origin);a.A=b.source};
lG=function(a){jG.call(this,!0);this.sessionId=a;this.channel="remoteplayer";this.o="*";this.g={};this.B=[];this.F=!1};
mG=function(a){a.F=!0;(0,g.H)(a.B,function(a){this.sendMessage(a)},a);
a.B.length=0};
dja=function(){};
nG=function(a,b){this.g=a;this.C=new Jm;this.F=(0,g.z)(this.G,this);this.J=Math.floor(2147483646*Math.random())+1;this.o=b||new lG(this.J);g.M(this,this.o);this.A=new Go(this);g.M(this,this.A);var c=(0,g.z)(a.play,a);this.o.g.play=c;c=(0,g.z)(a.load,a);this.o.g.load=c;c=(0,g.z)(a.pause,a);this.o.g.pause=c;c=(0,g.z)(this.D,this);this.o.g.listen=c;c=(0,g.z)(this.H,this);this.o.g.unlisten=c;c=(0,g.z)(this.B,this,"src");this.o.g.setSource=c;c=(0,g.z)(this.B,this,"muted");this.o.g.setMuted=c;c=(0,g.z)(this.B,
this,"volume");this.o.g.setVolume=c};
oG=function(a,b,c,d,e,f,k,l,m,n,q,t,w,x,A){this.B=a;this.C=n;this.D=b;this.F=d;this.H=l;this.J=t;this.L=e;this.N=f;this.O=w;this.g=k;this.o=m;this.A=q;this.G=x;this.P=A};
rG=function(a){N.call(this);this.N="ima-chromeless-video";var b=null;null!=a&&(g.y(a)?this.N=a:b=a);this.P=new Go(this);this.D=null;this.B=!1;this.na=this.Ke();this.ga=this.Yg();this.J=-1;this.ca=!1;this.F=-1;this.A=this.ba=this.L=null;this.Z="";this.o=!1;this.fa=null!=b;this.pa=this.O=this.da=this.g=null;this.C=void 0;this.H=this.la=null;this.G=this.ra=0;this.fa?(this.o=!0,this.g=b,this.C=2):(a=(0,g.z)(this.ZA,this),pG?a():(qG.push(a),a=g.Re("script"),a.src="https://www.youtube.com/iframe_api",b=
window.document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))};
tG=function(a,b,c){null!==b&&(a.Z=b,a.o?sG(a,b,c):(a.L=b,a.ba=c))};
sG=function(a,b,c){var d={autoplay:"1"};X.C&&(d.dash=0);if(null!=a.A){var e=a.A.D;null!=e&&(d.agcid=e);e=a.A.B;null!=e&&(d.adformat=e);e=a.A.C;null!=e&&(d.ad_query_id=e);(e=a.A.F)&&(d.cta_conversion_urls=e);(e=a.A.G)&&(d.endscreen_ad_tracking_data=e);(e=a.A.P)&&(d.wait_for_vast_info_cards_xml=e);a.A.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.A.L?1:3;a.A.H&&(d.noiba=1);a.A.N&&(d.utpsa=1);a.A.O&&(d.autoplay="1");a.A.A&&g.Zb(d,a.A.A)}e=dF(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+
"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;X.H&&!X.g()&&(d.enabled_engage_types="3,4,5,6");a.B=!1;a.A&&a.A.o?(a.la=d,a.g.preloadVideoByPlayerVars(a.la)):a.g.cueVideoByPlayerVars(d);a.dispatchEvent("loaded")};
uG=function(a){a.P.Ca(a.D,"tick",a.eu);null!=a.D&&(a.D.stop(),a.D=null)};
vG=function(a){null!=a.va&&Hd(a.va)};
wG=function(a){N.call(this);this.sessionId=a||Pa();this.o=[]};
xG=function(a,b,c,d,e){ac.call(this,a);this.pd=b;this.Oe=c;this.Ts=d;this.A=e};
yG=function(a,b){wG.call(this,b);this.A=a;this.fe=null;this.B=new Go(this);this.logger=null;this.B.S(Oe(),"message",this.receive)};
zG=function(a){if(null==a||!g.y(a)||!g.za(a,"ima://"))return null;a=a.substr(6);try{return g.pf(a)}catch(b){return null}};
eja=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.sessionId;e.channel=a.A;return"ima://"+g.tf(e)};
AG=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.A)return!1;c=b.sid;return null==c||"*"!=a.sessionId&&c!=a.sessionId?!1:!0};
BG=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
CG=function(){};
EG=function(a){var b;(b=a.g)||(b={},DG(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};
FG=function(){};
GG=function(a){return(a=DG(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
DG=function(a){if(!a.o&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new window.ActiveXObject(d),a.o=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.o};
HG=function(a){N.call(this);this.headers=new If;this.L=a||null;this.A=!1;this.J=this.g=null;this.P="";this.o=0;this.D="";this.B=this.N=this.H=this.O=!1;this.C=0;this.F=null;this.Z="";this.V=this.G=!1};
IG=function(a,b){a.C=Math.max(0,b)};
fja=function(a){return g.Me&&g.oc(9)&&g.qa(a.timeout)&&g.p(a.ontimeout)};
gja=function(a){return"content-type"==a.toLowerCase()};
LG=function(a,b){a.A=!1;a.g&&(a.B=!0,a.g.abort(),a.B=!1);a.D=b;a.o=5;JG(a);KG(a)};
JG=function(a){a.O||(a.O=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
PG=function(a){if(a.A&&"undefined"!=typeof MG)if(a.J[1]&&4==NG(a)&&2==a.getStatus())a.getStatus();else if(a.H&&4==NG(a))Gd(a.Cs,0,a);else if(a.dispatchEvent("readystatechange"),4==NG(a)){a.getStatus();a.A=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=g.Qf(String(a.P))[1]||null;if(!f&&r.self&&r.self.location)var k=r.self.location.protocol,f=k.substr(0,k.length-1);e=!hja.test(f?
f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.o=6;var l;try{l=2<NG(a)?a.g.statusText:""}catch(m){l=""}a.D=l+" ["+a.getStatus()+"]";JG(a)}}finally{KG(a)}}};
KG=function(a,b){if(a.g){QG(a);var c=a.g,d=a.J[0]?g.v:null;a.g=null;a.J=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
QG=function(a){a.g&&a.V&&(a.g.ontimeout=null);g.qa(a.F)&&(Hd(a.F),a.F=null)};
NG=function(a){return a.g?a.g.readyState:0};
RG=function(a){try{return a.g?a.g.responseText:""}catch(b){return""}};
SG=function(a,b){N.call(this);this.B=a;this.A=b;this.g={};this.o=new Go(this);this.o.S(Oe(),"message",this.C);this.ka=null};
UG=function(a,b,c,d){a.g.hasOwnProperty(b)||(c=new yG(b,c),a.o.S(c,a.B,function(a){a=new TG(a.type,a.pd,a.Oe,a.Ts,a.getOrigin(),b);this.dispatchEvent(a)}),c.fe=d,c.connect(),a.g[b]=c)};
TG=function(a,b,c,d,e,f){xG.call(this,a,b,c,d,e);this.g=f};
WG=function(){var a=u("google.ima.gptProxyInstance",Oe());if(null!=a)return a;Go.call(this);this.A=new SG("gpt",!0);g.M(this,this.A);this.S(this.A,"gpt",this.D);this.ka=this.g=null;VG()||Oe().top===Oe()||(this.g=new SG("gpt",!1),g.M(this,this.g),this.S(this.g,"gpt",this.C))};
VG=function(){return!!u("googletag.cmd",Oe())};
XG=function(){var a=u("googletag.console",Oe());return null!=a?a:null};
YG=function(){this.g=(0,g.G)()};
ija=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,l,m,n,q,t){if("%"==n)return"%";var e=c.shift();if("undefined"==typeof e)throw Error("[goog.string.format] Not enough arguments");arguments[0]=e;return ZG[n].apply(null,arguments)})};
bH=function(a,b){N.call(this);this.o=new Go(this);this.H=!1;this.J=Pa();this.G=new If;var c=this.J,d=(Oga()?"https:":"http:")+ija("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var f=window;try{do{try{if(0==f.location.href.indexOf(d)||0==f.document.referrer.indexOf(d)){e=!0;break a}}catch(k){}f=f.parent}while(f!=f.top)}catch(k){}e=!1}e&&(d+="?f="+c);c=g.P("IFRAME",{src:d+"#"+c,allowFullscreen:!0,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Lo(this.o,c,"load",
this.tB);a.appendChild(c);this.A=c;c=this.G.get("*");null==c&&(c=new yG(this.J,"*"),this.H&&(c.fe=ef(this.A),c.connect()),this.G.set("*",c));this.F=c;this.D=b;this.g=this.D.o;this.ka=this.B=this.C=null;this.o.S(this.F,"mouse",this.PB);this.o.S(this.F,"touch",this.eC);null!=this.g&&(this.o.S(this.F,"displayContainer",this.LB),this.o.S(this.F,"videoDisplay",this.bC),this.o.S(this.F,"preloadVideoDisplay",this.XB),this.o.S(this.g,g.Lb($G),this.Se),this.o.S(this.g,aH,this.Se));c=Oe();d=u("google.ima.gptProxyInstance",
c);null==d&&(d=new WG,g.ka("google.ima.gptProxyInstance",d,c))};
cH=function(a,b){var c=aj(a.A),d=!!("TouchEvent"in window&&0<window.TouchEvent.length),e=(0,g.S)(b,function(a){return d?new window.Touch({identifier:a.identifier,target:this.A,clientX:a.clientX,clientY:a.clientY,screenX:a.screenX,screenY:a.screenY,pageX:a.pageX+c.x,pageY:a.pageY+c.y}):window.document.createTouch(window,this.A,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,e)};
dH=function(a){a=a.playbackOptions;return new oG(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma,a.useAutoplayFlag,a.endscreenAdTracking,a.waitForVastInfoCardsXml)};
eH=function(a,b,c,d,e){if(!(e||null!=a&&g.df(De(a),a)))throw Hz(IE,null,"containerElement","element");this.D=a;var f=null!=b||null!=d;rz(oz(),136961005)&&(X.L=!0);e=b?b:null;this.L=null!=e&&ra(e.getAttribute)&&null!=e.getAttribute("playsinline")?!0:!1;var k=f;e=!1;X.L?X.o||(cA(this.L)&&f||(k=!1),!k&&X.L&&!X.g()&&Nz()&&(X.C=!0),!X.C&&Nz()||aA()||(e=!0)):X.o||cA(this.L)&&f||(!X.C&&Nz()||aA()||(e=!0),k=!1);this.F=k;this.O=e||k&&null!=d;X.o?a=null:(f=g.P("DIV",{style:"position:absolute"}),a.insertBefore(f,
a.firstChild),a=f);this.A=a;this.g=this.F||!this.A||X.o||!Nz()?null:new iG(this.A,null,!0);f=a=null;this.F?b?(a=new lF(b),f=b):d&&(a=new rG(d)):this.g&&(a=new lF(this.g.o),f=this.g.o);k=null;f&&X.C&&e&&(k=new nG(f));this.J=k;this.o=a;this.C=this.B=null;e=g.sx&&!Wz(4);a=Qz()&&Nz();this.g&&this.o&&this.A&&!this.F&&!aA()&&!e&&!a&&this.A&&(this.B=new iG(this.A,null,!0),this.C=new lF(this.B.o));this.G=this.o?c||null:null;this.N=null!=this.G;nA(kA.getInstance(),8,{enabled:this.F,yt:null!=d,customClick:null!=
this.G});null===this.A?(b=this.D,X.F=b):this.F&&b&&!ra(b.getBoundingClientRect)&&(b=this.D,X.F=b);this.H=null==this.A||X.o?null:new bH(this.A,this)};
fH=function(a){return a.N&&a.G?a.G:null!=a.g?a.g.A:null};
hH=function(a,b){var c=[],d="",e="";if(null!=b){for(var d=b,e=[],f=0;d&&25>f;++f){var k;a:{if(d&&d.nodeName&&d.parentElement){k=d.nodeName.toString().toLowerCase();for(var l=d.parentElement.childNodes,m=0,n=0;n<l.length;++n){var q=l[n];if(q.nodeName&&q.nodeName.toString().toLowerCase()===k){if(d===q){k="."+m;break a}++m}}}k=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+k);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)&&(e.defaultView||e.parentWindow)||null;f=[];if(e)try{var t=
e.parent;for(k=0;t&&t!==e&&25>k;++k){for(var w=t.frames,l=0;l<w.length;++l)if(e===w[l]){f.push(l);break}e=t;t=e.parent}}catch(x){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(t=0;t<gH.length-1;++t)c.push(dg(a,gH[t])||"");t=dg(a,"videoad_start_delay");w="";t&&(t=(0,window.parseInt)(t,10),w=0>t?"postroll":0==t?"preroll":"midroll");c.push(w)}else for(t=0;t<gH.length;++t)c.push("");c=c.join(":");t=c.length;if(0==t)c=0;else{w=305419896;for(d=0;d<t;d++)w^=(w<<5)+(w>>2)+c.charCodeAt(d)&4294967295;c=
0<w?w:4294967296+w}return c.toString()};
iH=function(){N.call(this);this.currentTime=0};
jH=function(a){iH.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw Hz(IE,null,"content","currentTime");this.o=a;this.g=new Ed(250);this.A=new Go(this);Ho(this.A,this.g,"tick",this.B,!1,this)};
jja=function(){};
lH=function(a,b){N.call(this);this.g=a;this.D=!!b;this.B=kH(this);if(!this.B){var c=g.Me&&!g.oc("7")?"readystatechange":"load";this.o=Ec(this.g,c,this.C,!1,this);this.A=window.setInterval((0,g.z)(this.C,this),100)}};
mH=function(a){a.A&&(window.clearInterval(a.A),a.A=null)};
kH=function(a){var b=!1;try{if(a.D||!g.Me||g.oc("11"))var c=a.g,d=(c.contentDocument||c.contentWindow.document).body,b=a.D?!!d&&!!d.firstChild:!!d;else b="complete"==a.g.readyState}catch(e){}return b};
nH=function(){N.call(this);this.Me=!1;this.impressionUrls=[]};
oH=function(a,b,c){ac.call(this,a);this.A=b||null;this.g=c||null};
pH=function(a,b){this.H=a;this.G=(0,g.S)(b,function(a){return a.clone()});
this.F="";this.g=null;this.o=this.B=0;this.A=!0;this.D=[];this.C=[]};
qH=function(a,b,c,d,e){a.F="<div></div>";a.g=b;a.B=c;a.o=d;a.A=!1;a.D=e||[];a.C=[]};
rH=function(a){a.F="";a.g=null;a.B=0;a.o=0;a.A=!0;a.D=[];a.C=[]};
sH=function(){nH.call(this);this.F=[];this.C=!1;this.A="not_loaded";this.o=null;this.B=0;this.g=this.ka=null;this.G=new Ce};
tH=function(a){var b=["googletag","googletag.cmd"];return g.Xa(a,function(a){return Sq(b,function(b){return null!==u(b,a)})})||null};
uH=function(a){return a.Me?(0,g.S)(a.F,function(a){return a.clone()}):[]};
kja=function(a){a=uH(a);if(null!=a)return(0,g.S)(a,function(a){return a.G})};
vH=function(a,b,c){var d=0,e=0;null!=b&&(b=new gg(b.g),d=Number(b.g.get("pod")||0),e=Number(b.g.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(lA.g,d,e,c)}catch(f){}};
lja=function(a,b){var c=wH(a);if(null!==c){vH(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
yH=function(a,b,c){a=xH(a);if(null!=a)try{a.setVideoContent(b,c)}catch(d){}};
zH=function(a,b){a.D=b;yH(a,"","");var c=wH(a);null===c||vH(c,null,!1)};
wH=function(a){null==a.g&&AH(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.companionAds?a.g.googletag.companionAds():null};
xH=function(a){null==a.g&&AH(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.pubads?a.g.googletag.pubads():null};
BH=function(a){a.o&&(a.o.stop(),a.o.Ca("tick",a.ru,!1,a),a.o.dispose(),a.o=null)};
FH=function(a){if("retrieved"!=a.A&&"not_available"!=a.A&&null!==wH(a)){var b;var c=wH(a);if(null!==c&&ra(c.getDisplayAdsCorrelator))try{b=E(c.getDisplayAdsCorrelator())}catch(f){b=null}else b=null;switch(b){case "not_loaded":case "not_available":a.A=b;break;default:b=Number(b),(0,window.isNaN)(b)?a.A="not_available":(a.D=b,a.A="retrieved")}}(b=CH(a))||(b=DH(a)&&"not_available"==a.A);if(b){if(!a.H&&DH(a)){var d;try{if(null==a.g)d=[];else{var e=a.g.googleGetCompanionAdSlots();d=(0,g.S)(e,a.xI,a)}}catch(f){d=
[]}a.F=d;a.H=!0}a.Me=!0;BH(a);CH(a)?a.dispatchEvent(new oH("companions_success")):EH(a)}else a.o||(a.B=(0,g.G)()+5E3,a.o=new Ed(100),a.o.S("tick",a.ru,!1,a),a.o.start())};
CH=function(a){return DH(a)&&"retrieved"==a.A};
DH=function(a){a.C||(AH(a),a.C=null!=a.g&&null!=a.g.googleGetCompanionAdSlots);return a.C};
AH=function(a){var b=of(a.G);try{a.g=tH([b,b.top])}catch(c){a.g=null}};
EH=function(a){a.dispatchEvent(new oH("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
mja=function(a,b,c){var d=new lH(b,!0);d.B?GH(a,c,b):Mc(d,"ifload",g.B(function(a){GH(this,c,a)},b),!1,a)};
GH=function(a,b,c){a.dispatchEvent(new oH("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Ec(d,"click",(0,g.z)(a.LE,a,b),!1,a)};
HH=function(a,b){ac.call(this,a);this.g=b};
IH=function(a){ac.call(this,a)};
JH=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.authorName=b.title,this.channelIconThumbnailUrl=Pb(b,"thumbnails","default","url"));if(b=a.statistics)this.videoCount=b.videoCount;if(a=a.brandingSettings)this.g=Pb(a,"image","bannerImageUrl")}};
KH=function(){this.g=new If};
LH=function(a,b){this.A=a;this.g=b};
MH=function(a,b){LH.call(this,"progress",a);this.o=b};
OH=function(a,b){(0,g.H)(b,function(a){var b=a.Pb().toLowerCase(),c=NH(this,b);c.push(a);this.g.set(b,c)},a)};
PH=function(a,b,c,d){b=b.toLowerCase();c=null!=d?new MH(c,d):new LH(b,c);d=NH(a,b);d.push(c);a.g.set(b,d)};
NH=function(a,b){return null!=b?a.g.get(b.toLowerCase(),[]):[]};
nja=function(a,b){var c=NH(a,"progress");(0,g.H)(c,function(a){QH(a.o,b)});
ub(c,function(a,b){return RH(a.o)-RH(b.o)})};
SH=function(a,b){return(0,g.S)(NH(a,b),function(a){return a.g})};
TH=function(a,b){this.g=null!=a?a:new KH;this.H=null!=b?b:[]};
oja=function(a,b){var c=b.g;(0,g.H)(c.rb(),function(a){OH(this.g,c.get(a))},a)};
UH=function(a,b){var c=SH(a.g,b);return null!=c?c:[]};
pja=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.jc?'<a class="text-image-link" target="_blank" href="'+Z(a.jc)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Z(a.image)+'" class="text-image '+(a.Sv?"yt-video-image":"")+'">'+(a.duration?'<div class="text-image-duration">'+Z(a.duration)+"</div>":"")+"</a>":"")+(a.jc?'<a class="text-title" href="'+Z(a.jc)+'" target="_blank" dir='+Z(a.dir)+">"+Z(a.title)+"</a>":
"")+'<div class="text-description" dir='+Z(a.dir)+">"+Z(a.text)+"</div>"+(a.Uv&&a.jc?'<a target="_blank" href="'+Z(a.jc)+'" class="text-ad-channel">'+Z(a.Uv)+"</a>":"")+"</div></div>"};
qja=function(a){return'<div class="flash-container '+(a.capture?"click-capture":"")+'">'+(a.jc?'<a class="click-layer" target="_blank" href="'+Z(a.jc)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+Z(a.width)+'" height="'+Z(a.height)+'"><param name="movie" value="'+Z(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
SF(a.jc)+'"><embed width="'+Z(a.width)+'" height="'+Z(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Z(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+SF(a.jc)+'"></object></div>'};
rja=function(a){return'<div class="image-container" id="'+Z(a.id)+'" style="width:'+Z(a.width)+";height:"+Z(a.height)+';">'+(a.jc?'<a target="_blank" href="'+Z(a.jc)+'">':'<a target="_blank">')+'<img src="'+Z(a.url)+'" border="0"></a></div>'};
sja=function(a){return'<div class="image-container" id="'+Z(a.id)+'">'+(a.jc?'<a target="_blank" href="'+Z(a.jc)+'">':'<a target="_blank">')+'<img src="'+Z(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
VH=function(a){return'<div class="image-container" id="'+Z(a.id)+'" style="width:'+Z(a.width)+";height:"+Z(a.height)+';"></div>'};
WH=function(){this.la=-1;this.F={};this.wa="";this.ah=new KH};
XH=function(a,b,c){a.wa=b;a.F=c};
YH=function(a,b){var c=[],d=a.bk();(0,g.H)(d,function(a){a=NH(a.ah,b)||[];c=ib(a,c)},a);
return c};
ZH=function(a,b,c){var d=c||!1;return g.Xa(b.F,function(a){var b=a.g==this.g;return a instanceof this.constructor&&(d||b)},a)};
$H=function(a,b,c,d,e,f,k,l,m,n){this.B=a;this.g=b;this.F=c;(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e=0:(0,window.isNaN)(e)&&!(0,window.isNaN)(f)?e=f:!(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e:!(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)&&(e=f=d);this.Gf=e;this.Ne=f;this.D=k;this.C=l;this.o=xz(E(m));this.A=n};
aI=function(a,b,c,d,e,f){WH.call(this);this.la=a;this.C=b;this.B=c;this.o=g.jb(d);this.A=this.N=null;this.D=e;this.ra=g.jb(f);pb(this.ra,null,function(a){return a.L})};
bI=function(a){var b=new If,c=a.bk();(0,g.H)(c,function(a){if(a instanceof aI){var c=a.B;(0,g.H)(c.rb(),function(a){b.set(a,ib(c.get(a),b.get(a)||[]))},this)}},a);
return b};
cI=function(a,b){var c=g.Xa(a.o,function(a){return!D(E(a.g))&&-1!=a.g.indexOf(b)&&("VPAID"==a.A||"surveys"==a.A)});
return null!=c?c.o:null};
dI=function(a,b,c){g.L.call(this);this.o=a;this.A=b;this.D=c;this.C=0;this.g=new Go(this);tja(this)};
tja=function(a){a.D.forEach(function(a,c){this.g.S(c,"mousedown",this.F);this.g.S(c,"mouseup",this.H)},a);
a.g.S(a.A,"mouseover",a.G)};
eI=function(a,b,c){this.type=a;this.label=b;this.tb=c||null};
fI=function(a,b){return new eI(a,1,b)};
gI=function(a){return new eI("m",3,a)};
hI=function(a){return fI("m",a)};
iI=function(a){this.data=a||{}};
jI=function(a,b,c){a=a.data[b];return null!=a?a:c};
kI=function(a,b){return jI(a,b,"")};
lI=function(a,b,c){a=a.data;a[b]||(a[b]=[]);return a[b][c]};
mI=function(a,b){return a.data[b]?a.data[b].length:0};
nI=function(a,b,c,d){if(d)c=a+("&"+b+"="+c);else{var e="&"+b+"=",f=a.indexOf(e);0>f?c=a+e+c:(f+=e.length,e=a.indexOf("&",f),c=0<=e?a.substring(0,f)+c+a.substring(e):a.substring(0,f)+c)}return 2E3<c.length?g.p(void 0)?nI(a,b,void 0,d):a:c};
pI=function(){var a=window.event||oI;if(!a)return null;var b;(b=a.which?1<<uja[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b};
qI=function(a,b,c){g.L.call(this);this.o=a;this.C=b;this.J=c;this.B=0;this.g={};this.A=new Go(this);g.M(this,this.A);vja(this)};
vja=function(a){(0,g.H)(a.J,function(a){this.A.S(a.element,"mousedown",this.F,!0);this.A.S(a.element,"mouseup",g.B(this.H,a),!0)},a);
a.A.S(a.C,"mouseenter",a.G)};
wja=function(a,b){g.Eb(a.g,function(a,d){b=fg(b,d,a)});
return b};
sI=function(a,b,c,d,e){WH.call(this);D(E(a))&&(a=Pa()+"_ima");this.Da=E(a);this.Aa=b;this.ca=c;this.pa=d;this.B=e;this.O=[];null!=this.pa?this.ba=rI[this.pa]||"Other":this.ba=null};
tI=function(a,b,c,d,e){sI.call(this,a,b,c,d,e);this.ga=this.A=null;this.va=-2;this.o=null;this.fa=this.V=g.v;this.Z=[];this.Na=[];this.C=!1;this.ka=null};
wI=function(a,b){a.o=b;null!=a.A&&null!=b&&(uI(a,a.V),vI(a,a.fa))};
uI=function(a,b){null!=a.o&&null!=a.A&&(0,g.H)(a.Z,function(a){this.o.Ca(a,"click",this.V);!D(E(this.Le()))&&this.o.S(a,"click",b)},a);
a.V=b};
vI=function(a,b){null!=a.o&&null!=a.A&&(a.o.Ca(a.A,"creativeview",a.fa),a.o.S(a.A,"creativeview",b));a.fa=b};
xI=function(a,b){var c=a.Da,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.Qc()&&(d.style+="width:"+a.yb()+"px");D(E(c))||(d.id=c);return g.P("DIV",d,b)};
yI=function(a){if(!a.C)return null;var b=YH(a,"start");kb(b,YH(a,"creativeview"));if(null!=b&&!g.J(b)){var c=[];(0,g.H)(b,function(a){if(!D(E(a))){var b;b=Fe().DB("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;",src:xja});g.Si(b,{display:"block",height:"0px",width:"0px"});var d="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",xz(a.g));b.setAttribute("id",d);this.Na.push(d);g.cb(c,b)}},a);
return c}return null};
yja=function(a,b){if(null!=a.A)if(oz().g.g("cleanup_text_overlay_spam_signals")){var c=[];(0,g.H)(a.Z,function(a){c.push({element:a,TA:this.Um(a)})},a);
new qI(b,a.A,c)}else c=new If,(0,g.H)(a.Z,function(a){c.set(a,this.Um(a))},a),new dI(b,a.A,c)};
zja=function(a){var b=[],c=a.bk();(0,g.H)(c,function(a){b=ib(b,a.O)},a);
return b};
zI=function(a,b,c){var d=c||!1;return g.Xa(b.F,function(a){var b=a.g==this.g;return this instanceof a.constructor&&(d||b)},a)};
AI=function(a,b){tI.call(this,a,b,"Static","text","")};
GI=function(a,b,c){var d={};a=new BI(a,g.p(b)?b:null,g.p(c)?c:null);CI(d,a);b=a.error;d.ERRORCODE=1E3>b.g?b.g:900;DI(d);EI(d,a);FI(d,a);b=a.error.vb();d.ERROR_MSG=a.error.$c();d.IMA_ERROR=b;d.INTERNAL_ID="0";d.BLOCKING_ERROR=-1!=$a(Aja,b)?"1":"0";d.YT_ERROR_CODE=3;return d};
HI=function(a,b){var c={},d=new BI(null,a,g.p(b)?b:null);CI(c,d);DI(c);EI(c,d);FI(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.g){var e=d.g.A;if(null!=e&&null!=e.cg&&null!=e.cg.video_start_delay)e=e.cg.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=e);else{e=d.g.B;c.BREAK_TYPE=0==e.A?"1":-1==e.A?"3":"2";var f=d.g.ff();f&&(c.BREAK_TYPE=f);c.SLOT_POS=e.g-1;e=d.g.A;e=null!=e&&null!=e.Yb&&null!=e.Yb.GET_MIDROLL_POSITION_IN_SEC?e.Yb.GET_MIDROLL_POSITION_IN_SEC:
null;f=Math.round(d.g.B.o);e=0<f&&e?e(f):f;0<e&&(c.MIDROLL_POS=e)}}Bja(c,d);Cja(c,d);d=a.Na;for(e=a;null!=e;)d=e.va+","+d,e=e.o;c.RWT=d;return c};
BI=function(a,b,c){this.error=a;this.g=b;this.o=c};
II=function(a,b){null!=b&&(a.VIEWABILITY=b)};
JI=function(a,b,c,d){Dja(c,b)?a[c]=d||"":a[c]=""};
Dja=function(a,b){return ph(Eja[a],function(a){return null!=b.match(a)})};
CI=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};
a.ASSETURI={toString:function(){return null!=b.o?b.o.getVideoUrl():""}}};
Cja=function(a,b){a.AD_CPN={toString:function(){return b.o.Ce()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.o.getCurrentTime())).toString()}};
a.MT={toString:function(){return b.o?Math.round(Math.max(0,1E3*b.o.getCurrentTime(1))).toString():"0"}};
a.P_W={toString:function(){return null!=b.o&&null!=b.o.Ke()?b.o.Ke().width.toString():""}};
a.P_H={toString:function(){return null!=b.o&&null!=b.o.Ke()?b.o.Ke().height.toString():""}}};
DI=function(a){a.SDKV=jA(lA);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}};
EI=function(a,b){if(null!=b.g&&null!=b.g.A&&null!=b.g.A.Yb&&X.g()){var c=b.g.A.Yb;(0,g.H)(Fja,function(b){b in c&&(a[b]=c[b])})}};
FI=function(a,b){if(null!=b.g){a.AD_ID=Gja(b.g);a.AD_SYS=Hja(b.g);var c=KI(b.g);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.o){var a=dF(b.o.getVideoUrl());if(null!=a)return a}return"0"}};
a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=LI(b.g).split("_")}catch(d){}1<=c.length&&(a.FORMAT_NAMESPACE=c[0]);2<=c.length&&(a.FORMAT_TYPE=c[1]);3<=c.length&&(a.FORMAT_SUBTYPE=c[2]);a.FINAL="1"}};
Bja=function(a,b){null!=b.g&&(a.AD_LEN={toString:function(){var a=b.g.getDuration();return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.o?b.o.Zg()?"0":Math.round(100*b.o.getVolume()).toString():""}})};
OI=function(a,b,c){var d=null,e=c+b;(0,g.H)(a.F,function(f){if(RE(f.F,"rm")){var k=HI(a);MI(a)&&(k.FILLED_OPPORTUNITY=0);Dz(a.V,k);(k=a.A)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof tI)0==c&&0==b||f instanceof AI?k=!0:(k=f.ae(),k=k.width<=b&&k.height<=c);k&&(k=0==c&&0==b?0:c-f.ae().height+b-f.ae().width,"Flash"!=f.Qc()||NE)&&(null!=d?k<e?(d=f,e=k):k==e&&("Flash"==d.Qc()&&"Javascript"==f.Qc()?d=f:f.g<d.g&&(d=f)):(d=f,e=k))}});
NI(a,d)};
PI=function(a){var b=null;(0,g.H)(a.F,function(a){a instanceof aI&&(null===b||a.g<b.g)&&(b=a)});
NI(a,b)};
QI=function(a,b,c,d){this.B=a;this.F=b;this.ads=0<this.B.length?this.B:this.F;this.D=c;this.C=this.G=!0;this.o=-1;this.g=null;this.J=this.A=0;this.L=d;this.logger=null};
UI=function(a,b,c){var d=[],e=(0,g.z)(function(a){this.Je()?this.Xd(function(a){d.push(a);e(null)},function(a){301==a.vb()?c(Gz(RI)):e(a)}):0<d.length?b(d):(null==a&&(a=Gz(SI)),1012==a.vb()&&(a=Gz(TI)),c(a))},a);
e(null)};
Ija=function(a,b){a.C=b;a.ads=a.Ur(a.B,a.F);a.o=-1};
Jja=function(a,b,c,d){var e=a.D.clone();e.o="";e.g=b.ib;VI(a,b,e,c,d)};
VI=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.A,null!=f&&(c.o=f));a.L.fetch(c,(0,g.z)(function(a){a instanceof QI?(Kja(a,b,this.C&&b.Oa,b.Ua),d(a)):a instanceof WI?e(new bz("adLoadError","Ad source cannot contain playlist response.",2)):e(new bz("adLoadError","Unknown ad source.",2))},a),e)};
Lja=function(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b};
Mja=function(a,b,c){a.g.Je()?a.g.Xd((0,g.z)(function(a){this.Lk(a,b,(0,g.z)(function(a){this.Je()?this.Xd(b,c):c(a)},this))},a),(0,g.z)(function(a){XI(this.ads[this.o],a);
this.g=null;X.g()||301!=a.vb()?this.Je()?this.Xd(b,c):c(a):c(a)},a)):(0==a.g.A&&XI(a.ads[a.o],Gz(YI)),a.g=null,a.Xd(b,c))};
XI=function(a,b){if(b.o){1012==b.vb()&&(b=Gz(TI));var c=GI(b,a);Dz(a.Ta,c)}};
Pja=function(a,b,c){a.o++;var d=a.ads[a.o];d.ca||d.ba?d.ba?Jja(a,d,(0,g.z)(function(a){this.g=a;this.Xd(b,c)},a),(0,g.z)(function(a){a=ZI(a);
XI(d,a);c(a)},a)):Lja(d)>=X.O?(a=Gz(Nja,null,String(X.O)),XI(d,a),c(a)):a.G?a.oo(d,(0,g.z)(function(a){this.g=a;
this.Xd(b,c)},a),(0,g.z)(function(a){a=ZI(a);
XI(d,a);c(a)},a)):c(Gz(Oja)):a.Lk(d,b,c)};
ZI=function(a){switch(a.vb()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=Gz(YI)}return a};
Kja=function(a,b,c,d){(0,g.H)(a.ads,function(a){a.o=b});
Ija(a,c);a.G=d};
$I=function(a){TH.call(this);this.o=(0,window.isNaN)(a)?-1:a};
aJ=function(a,b,c,d){QI.call(this,[],a,b,c);this.H=d};
bJ=function(a){return GF('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><a class="iv-endcap-image" href="'+PF(YF(a.target))+'" target="_blank"><img src="'+PF(ZF(a.image))+'"></a><div class="iv-endcap-text" dir='+QF(a.dir)+'><a href="'+PF(YF(a.target))+'" target="_blank"><div class="iv-endcap-headline">'+Z(a.headline)+'</div><div class="iv-endcap-description">'+Z(a.description)+'</div></a></div><a class="iv-endcap-action" href="'+PF(YF(a.target))+'" target="_blank" dir='+
QF(a.dir)+">"+(a.action?Z(a.action):'<span class="iv-endcap-action-icon"></span>')+'</a></div></div><div class="iv-endcap-bottom"><svg class="iv-endcap-countdown" viewBox="0 0 20 20"><circle class="iv-endcap-countdown-inner" r="5" cx="10" cy="10" /><circle class="iv-endcap-countdown-outer" r="10" cx="10" cy="10" /></svg></div></div>')};
Qja=function(){var a=wa("Next");return GF(""+a)};
Rja=function(){var a=wa("Previous");return GF(""+a)};
Sja=function(a){var b='<div class="iv-cards-companion"><div class="iv-cards-attribution"><span class="yt-badge yt-badge-ad">'+cJ()+"</span>";if(a.Wq&&a.jc)var c=wa("Shop products from {$advertiserName}",{advertiserName:Z(a.Wq)}),b=b+('<a class="ad-companion-clickthrough" href="'+PF(YF(a.jc))+'" target="_blank">'+c+"</a>");for(var b=b+('<div class="yt-uix-hovercard ad-info-container"><span class="yt-uix-hovercard-target" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="yt-uix-hovercard-content"><p>'+
Z(a.Rd)+'</p></div></div></div><div class="iv-cards-slider"><div class="iv-cards-slider-body"><ul class="iv-cards-slider-list">'),c=a.cards,d=c.length,e=0;e<d;e++){var f;f=c[e];f=GF('<div class="iv-cards-slider-unit"><a href="'+PF(YF(f.target))+'" target="_blank"><div class="iv-cards-slider-image"><span class="iv-cards-image-helper"></span><img src="'+PF(ZF(f.image))+'"></div><div class="yt-ui-ellipsis yt-ui-ellipsis-4 iv-cards-slider-text">'+Z(f.headline)+'</div><span class="iv-cards-slider-action">'+
Z(f.action)+"</span></a></div>");b+='<li class="iv-cards-slider-item">'+f+"</li>"}b+="</ul></div>"+(a.qI?'<button class="iv-cards-slider-button iv-cards-slider-prev" type="button" onclick=";return false;"><span class="iv-cards-slider-prev-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+PF(a.Pu)+'" title="'+PF(a.Pu)+'" /></button><button class="iv-cards-slider-button iv-cards-slider-next" type="button" onclick=";return false;"><span class="iv-cards-slider-next-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+
PF(a.Mt)+'" title="'+PF(a.Mt)+'"></span></button>':"")+"</div></div>";return GF(b)};
Tja=function(a){return GF('<div class="iv-website-companion"><div class="yt-uix-hovercard ad-info-container iv-website-companion-ad-info"><span class="yt-uix-hovercard-target" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="yt-uix-hovercard-content"><p>'+Z(a.Rd)+'</p></div></div><a href="'+PF(YF(a.target))+'" target="_blank">'+(a.fr?'<img class="iv-website-companion-banner" src="'+PF(ZF(a.fr))+'">':"")+'<div class="iv-website-companion-block"><div class="iv-website-companion-icon"><img src="'+
PF(ZF(a.GC))+'"></div><div class="iv-website-companion-text"><div class="iv-website-companion-header">'+Z(a.headline)+'</div><div class="iv-website-companion-desc"><span class="yt-badge yt-badge-ad">'+cJ()+'</span><span class="iv-website-companion-domain">'+Z(a.descriptionText)+'</span></div></div><div class="iv-website-companion-action yt-uix-button-size-default yt-uix-button-primary">'+(a.Qq?Z(a.Qq):'<span class="iv-website-companion-action-icon"></span>')+'</div></div><a href="'+PF(YF(a.target))+
'" target="_blank"></div>')};
dJ=function(){var a=wa("Visit us");return GF(""+a)};
cJ=function(){var a=wa("Ad");return GF(""+a)};
eJ=function(a){gg.call(this,a);this.F=new If;a=this.A;var b=a.indexOf(";"),c=null;0<=b?(kg(this,a.substring(0,b)),c=a.substring(b+1)):kg(this,a);Uja(this,c)};
Uja=function(a,b){D(E(b))||(0,g.H)(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var c=Ca(a.substring(0,b));a=Ca(a.substring(b+1));b=this.F.get(c);null!=b?g.ab(b,a)||b.push(a):b=[E(a)];this.F.set(c,b)}},a)};
fJ=function(a,b){if(D(E(b)))return null;var c=a.F.get(b);return null!=c?c:null};
gJ=function(a,b,c){D(E(b))||(c=(0,g.S)(c,E),a.F.set(b,c))};
hJ=function(a,b){var c=[E(b)];kb(c,Vja(a));return c.join(";")};
Vja=function(a){var b=fJ(a,"ord");null!=b?D(E("ord"))||a.F.remove("ord"):b=[E((0,g.G)())];var c=[];(0,g.H)(a.F.rb(),function(a){(0,g.H)(this.F.get(a),function(b){kb(c,a+"="+b)})},a);
kb(c,"ord="+b[0]);gJ(a,"ord",b);return c};
jJ=function(a){if(null==a)return!1;a=new gg(a);var b=a.A;return Aa(a.o,"googleads.g.doubleclick.net")&&iJ("/pagead/(live/)?ads",b)};
kJ=function(a){a=a.g;return null!=a?"bid.g.doubleclick.net"==(new gg(a)).o:!1};
lJ=function(a){if(null==a)return!1;var b=new eJ(a);a=b.o;b=hJ(b,b.A);return!Aa(a,".g.doubleclick.net")&&Aa(a,"doubleclick.net")&&iJ("/(ad|pfad)[x|i|j]?/",b)};
mJ=function(a){if(null==a)return!1;a=new gg(a);var b=a.A;return Aa(a.o,"doubleclick.net")&&iJ("/gampad/(live/)?ads",b)};
Wja=function(a){return jJ(a.g)||lJ(a.g)||mJ(a.g)||kJ(a)};
nJ=function(a){a=a.g;if(null==a)return!1;a=new gg(a);var b=a.A;return Aa(a.o,"youtube.com")&&iJ("/get_midroll_info",b)};
Xja=function(a){a=a.g;if(null==a)return null;a=(new gg(a)).g;return null!=a.get("ms")?E(a.get("ms")):null};
iJ=function(a,b){return D(E(b))?!1:(new RegExp(a)).test(b)};
oJ=function(a){return Gz(Yja,null,a.parentNode.nodeName,a.nodeName)};
pJ=function(a){return Gz(Zja,null,a.parentNode.nodeName,a.nodeName)};
qJ=function(a){for(var b=Co(a.tagName,a.namespaceURI),c=bf(b),d=0;d<a.attributes.length;d++){var e=a.attributes.item(d);c.setAttribute(e.name,e.value)}for(;d=a.firstChild;)c.appendChild(d);return b};
rJ=function(a,b){return null!=a?(0,g.Od)($e(a),function(a){return a.nodeName==b}):[]};
sJ=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
tJ=function(a,b){if(null==a)return null;for(var c="",d=0,e=a.childNodes.length;d<e;d++){var f=a.childNodes[d];switch(f.nodeType){case 4:case 3:c+=f.nodeValue}}c=La(c);b&&(c=Fa(c,"&")?"document"in r?oaa(c):paa(c):c);return c};
uJ=function(a,b,c,d){if(null!=a){a=$e(a);for(var e=0,f=a.length;e<f;e++){var k=a[e];if(k.nodeName!=b)throw oJ(k);c.call(d,k)}}};
vJ=function(a){a=E(a);return D(a)?window.NaN:Qa(a)};
wJ=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new Ky(0,0,0,Qa(c[0]),Qa(c[1]),Qa(c[2])),60*(60*(24*c.g+c.o)+c.A)+c.B}return null!=b?b:-1};
xJ=function(a,b){var c=E(a);if(!D(c))switch(c.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};
AJ=function(a,b){if(b)return a;var c;c=null!=a&&$ja.test(a)?Fa(a,"/pagead/adview")?yJ(a)?0:2:Fa(a,"/pcs/view")?aka(a)?0:2:Fa(a,"/pagead/conversion")?yJ(a)?1:2:2:2;0==c||1==c?(c=zJ(a,"&sdkv="+jA(lA)),lA.Z&&(c=zJ(c,"&ssss=gima"))):c=a;return c};
zJ=function(a,b){var c=a.indexOf("&adurl=");return-1!=c?qaa(a.substr(0,c),b,a.substr(c,a.length)):a+b};
yJ=function(a){a=a||"";return Sq(bka,function(b){return 0<=bg(a,0,b,a.search(cg))})};
aka=function(a){a=a||"";return Sq(cka,function(b){return 0<=bg(a,0,b,a.search(cg))})};
BJ=function(a,b){this.g=a;this.o=b};
RH=function(a){return a.o?-1:a.g};
QH=function(a,b){a.o&&(a.o=!1,a.g=a.g*b/100)};
EJ=function(a,b,c){var d=new KH;uJ(a,"Tracking",function(a){var e=sJ(a,"event"),k=AJ(tJ(a),b);CJ(k)&&null!=e&&(null!=c&&(k=c(e,k)),"progress"==e?(a=sJ(a,"offset"),a=DJ(a),null!=a&&PH(d,e,k,a)):PH(d,e,k))});
return d};
dka=function(a){if(D(E(a)))return null;a=new gg(a);if("thismessage"!=a.B||"extensions"!=a.o)return null;a=a.A;if(!g.za(a,"/"))return null;a=a.substr(1);return D(E(a))?null:a};
DJ=function(a){if(D(E(a)))return null;var b=a.indexOf("%");if(0<b){if(a=Number(a.substr(0,b)),!(0,window.isNaN)(a)&&0<=a)return new BJ(a,!0)}else if(a=wJ(a),0<=a)return new BJ(a,!1);return null};
CJ=function(a){if(D(E(a)))return!1;try{new gg(a)}catch(b){return!1}return!0};
FJ=function(a,b){TH.call(this);this.o=a;this.A=b};
GJ=function(){};
HJ=function(a,b){TH.call(this,b);this.o=a};
IJ=function(a){TH.call(this);this.o=a};
JJ=function(a,b,c,d){this.g=a;this.B=b;this.A=c;this.o=null!=d?d:!1};
KJ=function(a,b){a.g.H=b;(0,g.H)(a.B,function(a){KJ(a,b)},a)};
LJ=function(a,b,c){tI.call(this,"1",eka,"Html",null,"dummy");this.D=0;this.ob=a.length;wI(this,new Go(this));this.L=fka(a,b);this.Oa=Ie("iv-cards-slider-list",this.L);if(this.P=Ie("iv-cards-slider-prev",this.L))this.o.S(this.P,"click",this.Ja),R(this.P,!1);(this.da=Ie("iv-cards-slider-next",this.L))&&this.o.S(this.da,"click",this.Ia);this.o.S(this.L,"click",g.B(function(a,b,c){c.target!=a&&Dz(b)},Ie("ad-companion-clickthrough",this.L),c))};
fka=function(a,b){var c=(0,g.S)(a,function(a){var b=MJ(a),c=NJ(b);a=a.Uf(0);return{headline:b.Zc(),description:kI(b,"description"),image:OJ(b).getImageUrl(),action:PJ(c),target:QJ(a),merchant:kI(c,"merchant")}}),d=3<a.length;
return AF(Sja,{cards:c,Wq:c[0].merchant,Mt:Qja(),Pu:Rja(),Rd:fG(),jc:b,qI:d})};
RJ=function(a){a.Oa.style.left=125*-a.D+"px";a.P&&R(a.P,0<a.D);a.da&&R(a.da,a.D<a.ob-3)};
SJ=function(a){tI.call(this,"1",gka,"Html",null,"website_actions_companion");wI(this,new Go(this));var b=a.He(),c=b&&b.De(),d=b&&b.hi();a=a.Uf(0);b={headline:b&&b.Zc()||"",GC:c&&c.getImageUrl()||"",fr:d&&d.getImageUrl()||"",Qq:a&&kI(a,"title")||"",descriptionText:b&&kI(b,"description")||"",target:a&&QJ(a)||"",Rd:fG()};this.D=AF(Tja,b)};
UJ=function(a,b,c,d,e,f,k,l,m,n,q,t,w,x,A,F,I,K){this.ra=a;this.la=b;this.P=c;this.ab=e;this.Aa=(0,window.isNaN)(m)||""==m||0==m?-1:m;this.Ta=n?g.jb(n):[];this.V=q?g.jb(q):[];this.F=t?g.jb(t):[];this.ga=[];this.L=[];this.J=null;this.O=[];this.ob=!0;this.o=this.g=null;this.G=new If(x);this.ba=null!=K;this.Oa=(this.ca=null!=A)?F||!1:!1;this.Ua=this.uD?I||!1:!1;this.fb=E(A);this.ib=E(K);this.Xa=this.A=null;this.B=new via;this.Z=new g.ze(0,0);this.H=String(Math.floor(1E9*Math.random()));this.Ja=this.da=
this.N=this.D=null;this.Na=(0,g.G)();this.Ia=this.va=0;this.pa=this.na=!1;this.C=[];this.fa=null;this.wa=!1;(0,g.H)(this.F,function(a){a.H=this},this);
TJ(this,w)};
LI=function(a){var b=a.getExtension("AdFormat");if(null!=b&&Aa(b.o+"_"+b.A+"_"+b.B,"2_4"))return b.o+"_"+b.A+"_"+b.B;b=VJ(a);b=WJ(a,XJ)?"14":RE(b,"hideMaster")||RE(b,"blockAllAds")?"3":a.zb()?YJ(a)?"2_3":a.isSkippable()?ZJ(a)?"2_1":"2_2":"2":"1";return(MI(a)?4:WJ(a,XJ)?14:WJ(a,hka)?17:WJ(a,ika)?15:$J(a,jka)||$J(a,aK)?1:bK(a)?2:0)+"_"+b};
cK=function(a){return null!=a.la?a.la:""};
dK=function(a){return null!=a.o?ib(dK(a.o),a.Ta):a.Ta};
eK=function(a){return null!=a.o?ib(eK(a.o),a.V):a.V};
fK=function(a){return null!=a.o?ib(a.L,fK(a.o)):a.L};
VJ=function(a){return null!=a.g?a.g.F:{}};
kka=function(a){var b={};(0,g.H)(a.F,function(a){a=a.F;for(var c in a)b[c]=a[c]});
return b};
gK=function(a){return null!=a.g?a.g.wa:""};
hK=function(a,b){var c=[];(0,g.H)(a.G.$a(),function(a){kb(c,UH(a,b))});
return c};
NI=function(a,b){a.g=b;a.Z=new g.ze(0,0);if(null!=a.g){a.g instanceof tI&&(a.Z=a.g.ae());var c=a.o;if(null!=c){var d=ZH(a.g,c)||ZH(a.g,c,!0);NI(c,d)}}X.g()&&lka(a)&&g.J(fK(a))?mka(a,a.C):X.g()&&g.J(fK(a))&&!pz().g("website_actions_holdback")&&iK(a,a.C)};
jK=function(a){return null!=a.ra?a.ra:""};
lK=function(a){if(null==a.o||kK(a.o.P))return[];var b=[jK(a.o)];kb(b,lK(a.o));return b};
Gja=function(a){var b=lK(a).reverse();b.push(jK(a));return b};
mK=function(a){if(null==a.o||kK(a.o.P))return[];var b;b=a.o.g;null!=b?(b=b.Ta,b=null!=b?b:""):b="";b=[b];kb(b,mK(a.o));return b};
nK=function(a){if(null==a.o||kK(a.o.P))return[];var b=[cK(a.o)];kb(b,nK(a.o));return b};
oK=function(a){if(a.o){var b=oK(a.o);if(b)return b}return(a=a.getExtension("metrics"))?a.o:null};
KI=function(a){if(a.o){var b=KI(a.o);if(b)return b}return X.g()?(a=a.getExtension("viral"))?a.o:null:(a=a.getExtension("metrics"))?a.A:null};
Hja=function(a){var b=nK(a).reverse();b.push(cK(a));return b};
kK=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
pK=function(a){if(null==a.o)return[a.P];var b=pK(a.o);b.push(a.P);kK(b[0])&&b.shift();return b};
qK=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.o?a.o:-1};
rK=function(a){if(-1!=a.Aa)return a.Aa;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1};
sK=function(a){a.wa||(a.wa=!0,a.fa.J++,null!=a.o&&sK(a.o))};
tK=function(a){return a.fa instanceof aJ?a.fa:null!=a.o?tK(a.o):null};
uK=function(a,b,c,d){a=fK(a);return ME(new KE(new g.ze(b,c),d),a)};
vK=function(a){var b=a.A.Xg,c=a.A.Wg;if(!b||!c)if(a=a.A.g?dg(a.A.g,"sz"):null)a=a.split("x"),2==a.length&&(b=(0,window.parseInt)(a[0],10)||0,c=(0,window.parseInt)(a[1],10)||0);return new g.ze(b,c)};
nka=function(a,b){var c=g.Xa(a.O,function(a){return 4==a.Pb()&&wK(a.Ge())});
if(!c)return!1;var d=c.He();if(!d.De().getImageUrl()){var e=new xK;yK(e,b.channelIconThumbnailUrl);d.De=function(){return e}}var f=oz().g;
if(!d.Zc()||f.g("website_actions_suppress_advertiser_supplied_text"))d.Zc=function(){return b.authorName};
f.g("website_actions_suppress_advertiser_supplied_text")&&c.Uf(0).setTitle("");c.He=function(){return d};
return!0};
oka=function(a){var b=(0,g.Od)(a,function(a){return wK(a.Ge())});
0==b.length&&0<a.length&&oz().g.g("enable_ad_video_end_renderers")&&(b=a.slice(1,2));return b};
mka=function(a,b){var c=(0,g.Od)(b,function(a){return zK(a.Ge())});
g.J(c)&&(c=b);c=new LJ(c,AK(a),hK(a,"companionClick"));c.H=a;c.C=!0;BK(a,new JJ(c,[],null,!0))};
pka=function(a,b){var c=g.Xa(a.C,function(a){return 4==a.Pb()&&zK(a.Ge())});
if(!c)return null;var d=c.He();if(!d.De().getImageUrl()){var e=new xK;yK(e,b.channelIconThumbnailUrl);d.De=function(){return e}}var f=oz().g;
if(!d.hi().getImageUrl()){var k=new xK;if(f.g("website_actions_use_companion_image_as_banner")){var l=g.Xa(fK(a),function(a){return"Image"==a.Qc()});
yK(k,l&&l.g.B||"")}else yK(k,b.g);d.hi=function(){return k}}if(!d.Zc()||f.g("website_actions_suppress_advertiser_supplied_text"))d.Zc=function(){return b.authorName};
f.g("website_actions_suppress_advertiser_supplied_text")&&c.Uf(0).setTitle("");c.He=function(){return d};
return c};
GK=function(a,b){var c=b.g,d=a.getExtension("AdSense"),d=d&&d.o,e=b.authorName,f=b.channelIconThumbnailUrl,k=dJ(),l=AK(a);if(!d||!f||!l)return null;var m=new CK;m.data.type=4;var n=new DK;n.data.hide_in_drawer=!0;n.data.show_in_companion=!0;n.data.show_in_endcap=!0;n.data.show_in_cta=!0;m.Ge=function(){return n};
var q=new EK;q.data.headline=e;var t=new xK;yK(t,f);q.De=function(){return t};
var w=new xK;yK(w,c);q.hi=function(){return w};
q.setDescription(d);m.He=function(){return q};
var x=[new FK];x[0].data.target=l;x[0].setTitle(k);m.Uf=function(a){return x[a]};
m.bp=function(){return x.length};
return m};
iK=function(a,b){var c=g.Xa(b,function(a){return 4==a.Pb()&&zK(a.Ge())});
if(c){var d=c.He(),e=d&&d.De().getImageUrl(),f=d&&d.hi().getImageUrl(),d=d&&d.Zc();e&&f&&d&&(c=new SJ(c),c.H=a,c.C=!0,BK(a,new JJ(c,[],null,!0)))}};
qka=function(a){if(!a.A||HK(a)&&!WJ(a,["ADSENSE/ADX"]))return[];var b=vK(a);if(0>=b.width||0>=b.height)return[];var c=new HE;c.creativeType="All";c.A="All";c.B="SelectNearMatch";c.g=40;var d=uK(a,b.width,b.height,c);if(!g.J(d))return d;c.o="ResizeSmaller";d=(0,g.Od)(fK(a),function(a){return a.g.yi()},a);
return ME(new KE(new g.ze(b.width,b.height),c),d)};
JK=function(a){if(g.J(a.O))return!1;var b=oz().g;if(IK(a)<b.o("ad_duration_threshold_for_showing_endcap_seconds"))return!1;var c=a.O[0].Pb();if(4==c){var d=a.O[0].He();a=d&&d.De().getImageUrl();d=d&&d.Zc();if(!a||!d)return!1}return b.g("enable_ad_video_end_renderers")&&1==c||!b.g("website_actions_holdback")&&!b.g("website_actions_endcap_holdback")&&4==c};
rka=function(a){var b=null,c=0;(0,g.H)(qka(a),function(a){var d;d=vK(this);d=!a.g.yi()||a.yb()<=d.width&&a.getHeight()<=d.height?a.vn():OE(a.vn(),d);d=d.width*d.height;d>c&&(c=d,b=a)},a);
return b};
KK=function(a,b){return b||null==a.o?a.ga:ib(a.ga,KK(a.o))};
TJ=function(a,b){a.ga=b?g.jb(b):[];(0,g.H)(a.ga,function(a){kb(this.L,g.jb(a.g))},a);
(0,g.H)(a.L,function(a){KJ(a,this)},a);
X.g()&&a.zb()&&(a.L=(0,g.Od)(a.L,function(a){return 60>=a.getHeight()}))};
LK=function(a,b){return ph(a.F,function(a){return a instanceof aI&&"linear"==b||a instanceof tI&&"nonlinear"==b?!0:!1})};
MK=function(a){return-1!=a.getDuration()&&0!=a.getDuration()&&7>=a.getDuration()};
NK=function(a){var b=a.g;return HK(a)&&null!=b&&b instanceof tI&&(90<a.Z.height||null!=a.A&&a.A.Og)};
OK=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:OK(a,b.o)};
PK=function(a){var b=OK(a,a.o);if(null!=b){if("skippable"==b.o)return b.A;if("nonskippable"==b.o)return null}var b=null,c=new BJ(5,!1),d=ska(a);"implicit"==d&&(b=c);var e=a.g;null==b&&null!=e&&e instanceof aI&&(b=e.D);null!=b||"explicit"!=d||(b=c);return X.g()&&a.zb()&&null!=b?(0,window.isNaN)(a.A.B)?c:new BJ(a.A.B,!1):b};
ska=function(a){if(null!=g.Xa(a.G.$a(),function(a){return!g.J(UH(a,"skip"))}))return"implicit";
var b=a.G.get("DFP");if(b instanceof HJ)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.g;return X.g()&&null!=a&&(a=a.ah,null!=a&&!g.J(NH(a,"skip")))?"explicit":"none"};
QK=function(a){if(null==a.A)return!1;var b=a.A.g;null!=b&&Aa(b,"/PrefetchedAd")&&null!=a.o&&(b=a.o.G.get("LocalRedirect"),b=null!=b?b.xf():null);(a=jJ(b)||mJ(b)||lJ(b))||(null!=b?(b=(new gg(b)).o,a=Aa(b,"viral.adsense.net")):a=!1);return a};
ZJ=function(a){if(null!=a.la&&null!=a.A){var b;(b=X.g())||!(b=QK(a)||!1)||(b=HK(a)&&!WJ(a,["ADSENSE/ADX"]))||(WJ(a,aK)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);a=b||a.o&&a.o.ba&&QK(a.o)?!0:!1}else a=!1;return a};
AK=function(a){return null===a.g?null:a.g.Le()};
IK=function(a){return null!=a.g?a.g.getDuration():-1};
RK=function(a){return null!==a.J?10:JK(a)?(a=oz().g.o("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3)):0};
SK=function(a){return null===a.g?null:a.g.Kn()};
TK=function(a){return null===a.g?null:a.g.Jn()};
HK=function(a){return WJ(a,UK)||WJ(a,["ADSENSE-VIRAL"])};
MI=function(a){return null!=a.o&&MI(a.o)||WJ(a,tka)};
YJ=function(a){var b=SK(a);return WJ(a,["402"])||g.y(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")};
VK=function(a){return HK(a)&&ZJ(a)&&!MK(a)&&!D(E(a.D))&&null!==PK(a)&&0<RH(PK(a))};
bK=function(a){return $J(a,UK)||$J(a,["402"])};
WK=function(a){a=a.getExtension("InfoCards");return null!=a?a.o:null};
XK=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.o:null};
WJ=function(a,b){return null!=a.la?g.ab(b,a.P):!1};
$J=function(a,b){for(var c=pK(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(g.ab(b,c[d]))return!0;break}return!1};
BK=function(a,b){a.L=[b]};
lka=function(a){return a.zb()&&0<a.C.length&&Sq(a.C,function(a){return 1==a.Pb()})};
uka=function(a){return 0<a.C.length&&Sq(a.C,function(a){return 4==a.Pb()})};
YK=function(){N.call(this);this.A=[]};
ZK=function(){return new UJ("empty-ad","GDFP","GDFP",0,"",0,0,0,0,[],[],[],[],new If)};
$K=function(a){YK.call(this);this.g=a;this.G=this.ka=null;this.F=!1;this.B=null;this.C=new Go;Ho(this.C,this.g,["companions_success","companion_initialization_failed"],this.TG,!1,this);Ho(this.C,this.g,"companion_display_error",this.NE,!1,this);Ho(this.C,this.g,["companion_slot_init","companion_click"],this.JE,!1,this);this.g.Me?this.F=!0:this.g.initialize()};
bL=function(a){var b=a.B;a.B=null;if(null!=a.g)if(g.J(a.A))aL(a,Error("Companion slots not available."));else if(null!=b){var c=vka(a,b);a.g.Xc(a.A);if(0<c.length&&b.ob){a=a.g;var d;if(d=0!=c.length)d=pK(b),d="GDFP"==(kK(d[0])&&1<d.length?d[1]:d[0]);if(d){d=[];for(var e=0;e<c.length;e++)d.push(c[e].H);b=b.A;c=wH(a);if(null!==c){vH(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else aL(a,Error("Invalid master ad."))};
aL=function(a,b){a.dispatchEvent(new HH("companion_display_error",b))};
vka=function(a,b){var c=[],d=[];(0,g.H)(a.A,function(a){rH(a);ph(a.G,function(d){a:{d=uK(b,d.width,d.height);if(!g.J(d)&&(d=wka(d,c),null!=d)){var e=d.A;if(null!=e&&0!=a.H.indexOf(e)){d=!1;break a}e=d.g.O;kb(e,hK(b,"companionClick"));var f=hK(b,"companionImpression"),k=X.g()&&"Html"==d.g.ca&&d.o;c.push(d);if(k)qH(a,d.Pc(),d.yb(),d.getHeight(),f);else{var k=d.Yc(),q=d.yb(),t=d.getHeight();d="IFrame"!=d.g.ca;a.F=k;a.g=null;a.B=q;a.o=t;a.A=d;a.D=f||[];a.C=e||[]}d=!0;break a}d=!1}return d},this)||d.push(a)},
a);
var e=cL(b);a.D=dL(e,c);a.D||(0,g.H)(a.A,function(a){rH(a)},a);
return d};
dL=function(a,b){if(null==a)return!0;var c=a.g;return"all"==a.o?xka(c,b):"any"==a.o?yka(c,b):!0};
cL=function(a){return null==a||null==a.g||(0,window.isNaN)(a.g.g)?null:g.Xa(KK(a,!0),function(a){a=a.g;return g.J(a)?!1:(0,window.isNaN)(a[0].g.g)?!1:a[0].g.g==a[0].Xm()})};
xka=function(a,b){return Sq(a,function(a){return g.ab(b,a)})};
yka=function(a,b){return ph(a,function(a){return g.ab(b,a)})};
wka=function(a,b){return g.Xa(a,function(a){return!g.ab(b,a)})};
eL=function(a){this.g=a};
fL=function(a,b){ac.call(this,"adsManagerLoaded");this.g=a;this.A=b};
gL=function(a,b,c,d){a.g.wc(new eL(b),c,d);return a.g};
hL=function(a){ac.call(this,a);this.F=[];this.D={};this.g=null;this.A=!0};
iL=function(a,b,c,d){iB.call(this,a);this.F=0;this.H=d||window.Infinity;this.L=b;this.O=c;this.D={};this.g.performance&&this.g.performance.now||(this.D.dat=1);this.B=(0,g.z)(this.J,this);this.G=g.B(this.g.setTimeout,this.B,1100);this.A=0;this.enabled&&(this.A=this.g.setTimeout(this.B,1E4),fB(this.g,"load",this.G),fB(this.g,"unload",this.B))};
jL=function(a){var b=a.label+"."+Math.round(a.value).toString(36);a=Math.round(a.duration);0<a&&(b+="_"+a.toString(36));return b};
nL=function(){this.g=null;if(rz(oz(),21592081)&&!X.g()){this.g=new iL(1,new xB("https:","csi.gstatic.com","/csi?v=2&s=",1),"ima");var a;a:{var b=QB(window);if(b&&g.sa(b.master)){var b=b.master,c="google_persistent_state_async";a={}}else{b=IB();if(null===kL)b:if(c=(b.g||{}).loeids||[],c.indexOf)c=c.indexOf("20040077"),kL=0<c||0===c;else{for(var d=0;d<c.length;d++)if("20040077"===c[d]){kL=!0;break b}kL=!1}c=kL?"google_persistent_state_async":FB?"google_persistent_state_async":"google_persistent_state";
if(lL[c]){a=lL[c];break a}"google_persistent_state_async"==c?a={}:a=b}d=b[c];a=null!=d&&"object"==typeof d&&null!=d.Zl&&"object"==typeof d.Zl?lL[c]=d:b[c]=lL[c]=new Mha(a)}b=IB();(c=QB(b))?((b=c||QB())?(c=b.pageViewId,g.y(b.clientId)&&(c+=b.clientId.replace(/\D/g,"").substr(0,6)),b=c):b=null,b=+b):(b=dB(b,!1).tl,(c=b.google_global_correlator)||(b.google_global_correlator=c=1+Math.floor(Math.random()*Math.pow(2,43))),b=c);c=zka[7]||"google_ps_7";a=a.Zl;d=a[c];a=void 0===d?a[c]=b:d;mL(this,"c",a);a=
sz(oz());D(E(a))||mL(this,"e",a)}this.o="0"};
oL=function(){var a=nL.getInstance();a.g&&(a.g.Dk(),a.g=null)};
mL=function(a,b,c){a.g&&c&&(a.g.D[b]=c)};
pL=function(a){var b=nL.getInstance();if(b.g){var b=b.g,c=jB();if(b.enabled){var d=0;d>(b.C[a]||0)?b.C[a]=d:d=mB(b,a);b.Tk(new hB(a,3,d,c,void 0))}}};
Aka=function(a,b){if(b){var c=/iu\=\/(\d+)\//.exec(Ca(b)),d=E((new gg(b)).g.get("client"));a.o=c&&2==c.length?c[1]:D(d)?"0":d}else a.o="0"};
qL=function(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new Go(this);this.J=a;this.A=this.g=null;this.G=!1;this.ka=null};
Bka=function(a){if(null===a.C)rL(a);else{var b=new gg(a.C.g),c=E(b.g.get("vid")),b=E(b.g.get("cmsid")),d=a.B.H,e=a.B.F;a.B.H=c;a.B.F=b;if(D(E(c))||D(E(b)))rL(a);else if(c==d&&b==e)rL(a);else{var f=a.D.kg();yH(f,c,b);lja(f,a.C);a.A=new Ed(100);Io(a.o,a.A,"tick",function(){var a;a:{var b=xH(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(m){a=!0;break a}a=!1}a&&rL(this)},!1,a);
a.A.start()}}};
Cka=function(a){a.g=new Ed;Mo(a.o,a.g,"tick",function(){rL(this)},a);
Fd(a.g,a.J);a.g.start()};
rL=function(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.g&&(a.g.stop(),a.g=null);null!=a.A&&(a.A.stop(),a.A=null);a.G=!0;null===a.F||a.F()};
sL=function(){N.call(this);this.g=new If;this.o=null;this.G=new Go(this);g.M(this,this.G);this.C="";this.B=this.H=this.A=null;this.F=-1};
uL=function(){null!=tL||(tL=new sL);return tL};
vL=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;uL().dispatchEvent(new dz("measurable_impression",null,c))};
wL=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;uL().dispatchEvent(new dz("viewable_impression",null,c))};
xL=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;uL().dispatchEvent(new dz("externalActivityEvent",null,d))};
Dka=function(a,b){if(a.o)if(a.B){var c=(0,g.G)()-a.F;b(a.B+"_ct"+c)}else{var d=a.g,c=window.setTimeout(function(){b("timeout");(0,g.H)(d.rb(),function(a){d.get(a)===b&&d.remove(a)})},200);
a.g.set(c,b);var e={};e.osdId=a.C;e.eventId=c;kA.getInstance().g&&(a.D=(0,g.G)(),e.loggingId=Math.random(),nA(kA.getInstance(),43,{step:"sendingMessage",logid:e.loggingId,time:a.D}));a.o.send("activityMonitor","fetchAdTagUrl",e)}else b("")};
Eka=function(a,b,c,d){if(a.o){var e={};e.queryId=c;e.vastEvent=b;a.C&&(e.osdId=a.C);e.isOverlay=null!=a.A;a.A&&(e.overlayBounds=jj(a.A));var f=a.g;b=window.setTimeout(function(){d({viewability:"timeout"});(0,g.H)(f.rb(),function(a){f.get(a)===d&&f.remove(a)})},200);
a.g.set(b,d);e.eventId=b;a.o.send("activityMonitor","reportVastEvent",e)}else d({})};
yL=function(){};
zL=function(a,b,c){this.g=a;this.xe=c;this.o=b};
Fka=function(a){this.A=a};
AL=function(a){this.A=a;this.o=this.g=!1;this.B=null};
Gka=function(a){if(null!=a.A.g&&(a=g.Qf(a.A.g)[6]||null)){var b=null;Uf(a,function(a,d){if(null==b)switch(a){case "max_ad_duration":case "pmxd":b=d/1E3}})}};
Hka=function(a,b,c){this.g=a;this.o=b;this.A=c};
BL=function(){this.g=new If};
CL=function(a,b,c){if((0,window.isNaN)(c)||!g.qa(c))throw Error("Incorrect time offset.");var d=[];Kf(a.g,c)&&(d=a.g.get(c,[]));(0,g.H)(b,function(a){null!=a&&g.cb(d,a)});
a.g.set(c,d)};
DL=function(a,b){this.g=a;this.o=b};
Jka=function(a){var b=new BL;(0,g.H)($e(bf(a.g)),function(a){switch(a.nodeName){case "Preroll":a=EL(this,a);CL(b,a,0);break;case "Midroll":var c=sJ(a,"timeOffset"),e=wJ(c);if(-1==e)throw Gz(FL,null,"timeOffset",E(c));a=EL(this,a);CL(b,a,e);break;case "Postroll":a=EL(this,a);CL(b,a,-1);break;default:throw Gz(GL,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.g.rb().length)throw Gz(Ika);return b};
EL=function(a,b){var c=[];(0,g.H)($e(b),function(a){switch(a.nodeName){case "Ad":var b=E(tJ(a));if(!D(b)){a=sJ(a,"bumper");var d=this.o.clone();d.g=b;b=new AL(d);b.g=null!=a;b.o="always"==a;g.cb(c,b)}break;default:throw Gz(GL,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
HL=function(a,b,c){TH.call(this);this.o=a;this.A=b;this.B=c};
IL=function(){this.ka=null};
JL=function(){this.C=null;this.D="http://www.google.com/adsense/support";this.F=0;this.g=15;this.B=5;this.A=3;this.o=!1};
Kka=function(a,b){a.g=b};
KL=function(a,b,c,d,e,f,k,l,m,n,q){TH.call(this,n,q);this.C=a;this.D=b;this.B=c;this.F=m;this.G=k;this.A=f;this.o=e};
LL=function(){};
Mka=function(a,b){var c;(0,g.H)($e(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new JL:null;break;case "params":null!=c&&Lka(this,c,a)}},a);
return c};
Lka=function(a,b,c){(0,g.H)($e(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.D=c;break;case "attribution_text":b.C=c;break;case "signals":b.F=(0,window.parseInt)(c,10);break;case "audio_muted_on_start":b.o=xJ(c,!1)}},a)};
ML=function(){this.ka=null};
NL=function(){};
OL=function(){};
PL=function(){};
QL=function(a){this.data=a||{}};
CK=function(a){this.data=a||{}};
DK=function(a){this.data=a||{}};
FK=function(a){this.data=a||{}};
RL=function(a){this.data=a||{}};
SL=function(a){this.data=a||{}};
TL=function(a){this.data=a||{}};
EK=function(a){this.data=a||{}};
xK=function(a){this.data=a||{}};
MJ=function(a){return new SL(a.data.product_card)};
wK=function(a){return!!jI(a,"show_in_endcap",void 0)};
zK=function(a){return!!jI(a,"show_in_companion",void 0)};
ZL=function(){if(!UL){var a={};UL={g:a};a.type=VL;a.id=WL;a.link_url=WL;a.title=WL;a.image=hI(XL());var b=YL();a.event=gI(b);a.target=WL}return UL};
QJ=function(a){return kI(a,"target")};
YL=function(){if(!$L){var a={};$L={g:a};a.type=VL;a.base_url=WL}return $L};
OJ=function(a){return new xK(a.data.image)};
NJ=function(a){return new TL(lI(a,"offer",0))};
PJ=function(a){return kI(a,"price")};
aM=function(a){return new FK(lI(a,"action",0))};
XL=function(){if(!bM){var a={};bM={g:a};a.image_url=WL;a.thumbnail_url=WL;a.image_height=cM;a.image_width=cM}return bM};
yK=function(a,b){a.data.image_url=b};
dM=function(a,b,c){TH.call(this,c);this.o=a;this.A=b||null};
eM=function(a){this.g=a};
gM=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.g[f.nodeName];if(k)switch(k.type){case "b":d[f.nodeName]="false"!=f.nodeValue;break;case "d":case "f":d[f.nodeName]=(0,window.parseFloat)(f.nodeValue);break;case "e":d[f.nodeName]=fM[b.nodeName][f.nodeName][f.nodeValue];break;case "i":d[f.nodeName]=(0,window.parseInt)(f.nodeValue,10);break;default:d[f.nodeName]=f.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(f=b.childNodes[e],f.nodeType==window.Node.ELEMENT_NODE){var k=
c.g[f.nodeName],l=gM(a,f,k.tb);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
Nka=function(a,b){var c=new KH;(0,g.H)($e(b),function(a){"CustomTracking"==a.nodeName&&null!=$e(a)&&(c=EJ(a,!1,(0,g.z)(function(a,b){return hM(a,b)},this)))},a);
return c};
hM=function(a,b){return yp(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";default:return""}}}})};
iM=function(a,b){TH.call(this);this.A=a;this.o=E(b)};
jM=function(a,b){TH.call(this);this.o=a;this.A=b};
kM=function(){this.ka=null};
lM=function(a,b){this.logger=null;this.A=b;this.g={};this.o=[];this.g.CustomTracking=EJ;this.g.UI=this.C};
mM=function(a,b){if(null==b)return null;var c={};(0,g.H)($e(b),function(a){c[a.nodeName]=null!=this.g[a.nodeName]?this.g[a.nodeName].call(this,a):null},a);
return null!=c.UI?c:null};
nM=function(a,b,c,d,e,f){TH.call(this,f);this.A=a;this.C=b;this.D=c;this.B=d;this.o=e};
oM=function(a){return null!=a.o?a.o.length:0};
pM=function(){lM.call(this,0,"mute_");this.g.SurveyOptions=this.B};
qM=function(){TH.call(this);this.o=""};
rM=function(){this.ka=null};
sM=function(a,b,c,d){TH.call(this);this.B=a;this.A=b;this.C=c;this.o=d};
tM=function(){this.ka=null};
uM=function(){TH.call(this)};
vM=function(){this.ka=null};
Oka=function(a,b){(0,g.H)($e(b),function(a){a.nodeName==this.g.qA&&tJ(a)},a)};
wM=function(a,b,c,d,e,f){TH.call(this);this.C=a||"";this.D=b||"";this.F=c||"";this.B=d;this.o=e;this.A=f};
xM=function(){this.ka=null};
yM=function(a){TH.call(this);this.o=a};
zM=function(){this.ka=null};
AM=function(a,b,c,d,e,f,k,l,m){TH.call(this,e);this.B=a;this.A=b;this.C=c||"";this.D=d||[];this.o=f||null;this.G=k||null;this.F=l||null;this.J=m||null};
BM=function(){lM.call(this,0,"why_this_ad_");this.o.push("targeting_reason")};
CM=function(a,b){return null!=a?Sq(b,function(b){return b in a}):!1};
Pka=function(a,b){return null!=a?ph(b,function(b){return b in a}):!1};
DM=function(){};
EM=function(){TH.call(this)};
FM=function(){};
GM=function(){};
Qka=function(a,b){this.g=a;this.o=b};
HM=function(a,b,c,d){tI.call(this,a,b,"Static",c,d);this.lr=!1};
IM=function(a,b,c,d){tI.call(this,a,b,"Html",c,d)};
JM=function(a,b,c,d){tI.call(this,a,b,"Static",c,d)};
KM=function(a,b,c,d,e){tI.call(this,a,b,c,d,e)};
MM=function(a,b,c){if(g.J(c))return new tI(a,b,"",null,"");var d=LM(c);c=d.o;var e=d.g,d=d.A;switch(c){case "Html":return new IM(a,b,e,d);case "Static":switch(rI[e]){case "Image":return new JM(a,b,e,d);case "Flash":return new HM(a,b,e,d);case "Text":return new AI(a,b)}}return new KM(a,b,c,e,d)};
LM=function(a){var b=g.Xa(a,function(a){return"Static"==a.o&&"Flash"==rI[a.g]}),c=g.Xa(a,function(a){return"IFrame"==a.o}),d=g.Xa(a,function(a){return"Html"==a.o}),e=g.Xa(a,function(a){return"Static"==a.o&&"Image"==rI[a.g]}),f=g.Xa(a,function(a){return"Static"==a.o&&"Text"==rI[a.g]});
return NE&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
Rka=function(a,b,c,d,e,f){var k=LM(f),l=MM(a.id,a.size,[k]);l.C=!0;l.J=a.apiFramework;l.na=b;l.O=c;l.g=d;e&&(l.ah=e);g.eb(f,k);var m=[];(0,g.H)(f,function(f){f=MM(a.id,a.size,[f]);f.C=!0;f.J=a.apiFramework;f.na=b;f.O=c;f.g=d;e&&(f.ah=e);m.push(new JJ(f,[],a.adSlotId))});
return new JJ(l,m,a.adSlotId)};
NM=function(a,b,c){this.o=a;this.g=b;this.A=c};
OM=function(a,b,c,d,e,f,k,l,m){this.A=a;this.L=b;this.C=c;this.D=d;this.o=e;this.F=f;this.G=k;this.H=l;this.J=m;this.g=this.A.cf()};
PM=function(a){var b=a.g,c=g.ij(a.B),c="left"==a.C?"0px":"right"==a.C?c.width-a.A.ae().width+"px":a.C+"px",d=g.ij(a.B);a="bottom"==a.D?"0px":"top"==a.D?d.height-a.A.ae().height+"px":d.height-a.A.ae().height-Ta(a.D)+"px";g.Si(b,{position:"absolute",overflow:"hidden",left:c,bottom:a})};
Ska=function(a){lj(a.g)||(R(a.g,!0),(0,g.H)(a.J,function(a){zz(a)}))};
QM=function(a){this.B=a;this.logger=null};
RM=function(a){if(null==a)return!1;a=bf(a);return null!=a&&"VAST"==a.nodeName};
TM=function(a,b){var c=[],d=null;try{var e=g.Do(a),f=bf(e);null!=f&&"CompanionAds"==f.nodeName&&(d=SM(QM.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c};
UM=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return g.qa(a)&&!(0,window.isNaN)(a)?a:0};
Uka=function(a){var b=[],c=bf(a.B),d=UM(c);uJ(c,a.g.uy,function(a){var c,e=VM(a);if(null==e)throw oJ(a);c=a.getAttribute(this.o.vj);a=Number(a.getAttribute(this.o.tq));var l=c||null;c=a||0;var m=null,n=null;a=[];for(var q=[],t=[],w=[],x=new If,A,F=e.nodeName==this.g.wA,I=F,K=F,Ua=null,lb=$e(e),gb=0,xd=lb.length;gb<xd;gb++){var Gb=lb[gb];switch(Gb.nodeName){case this.g.vy:tJ(Gb);case this.g.Wz:break;case this.g.sA:if(F){if(null!=A)throw pJ(Gb);A=tJ(Gb);Ua=dka(A);I=xJ(e.getAttribute(this.o.Cy),I);K=
xJ(e.getAttribute(this.o.lz),K)}else throw oJ(Gb);break;case this.g.zy:m=tJ(Gb);break;case this.g.Ay:n=tJ(Gb);break;case this.g.Zy:tJ(Gb);break;case this.g.oA:tJ(Gb);break;case this.g.xj:Gb=tJ(Gb);CJ(Gb)&&a.push(AJ(Gb));break;case this.g.ERROR:Gb=tJ(Gb);q.push(AJ(Gb));break;case this.g.Ry:w=Tka(this,Gb);t=w.creatives;w=w.WA;break;case this.g.iz:var yl=Gb,x=Ua,Gb=new If;try{for(var Uo=rJ(yl,this.g.hz),yl=0,xj=Uo.length;yl<xj;yl++){var gc=Uo[yl],Mb=gc.getAttribute(this.o.Hq);null!=Mb&&(Mb=Mb.toLowerCase());
var Nb;switch(Mb){case "programmatic":Nb=(new rM).parse(gc);break;case "geo":Nb=(new FM).parse(gc);break;case "pod":Nb=(new DM).parse(gc);break;case "waterfall":Nb=(new GM).parse(gc);break;case "dart":Nb=(new NL).parse(gc);break;case "dfp":Mb="DFP";Nb=(new OL).parse(gc);break;case "adsense":Mb="AdSense";Nb=(new ML).parse(gc);break;case "textad":Mb="TextAd";Nb=(new xM).parse(gc);break;case "templatead":Mb="TemplateAd";Nb=(new vM).parse(gc);break;case "infocards":var Mb="InfoCards",zl=new eM(!0);Nb=
zl.parse(gc);break;case "infocardstracking":Mb="InfoCardsTracking";zl=new eM(!1);Nb=zl.parse(gc);break;case x:case "prefetchedad":Mb="LocalRedirect";var Sg=gc;if(null==Sg)Nb=null;else{var Al=null,Se=rJ(Sg,"AdXml");if(1==Se.length){var jc=bf(Se[0]);if(oz().g.g("html5_reuse_parsed_xml")&&null!=jc)try{Al=qJ(jc)}catch(Gy){Al='<?xml version="1.0" encoding="UTF-8"?>'+Eo(jc)}else Al='<?xml version="1.0" encoding="UTF-8"?>'+Eo(jc)}var Fy=rJ(Sg,"VASTAdTagURI"),Sg=null;1==Fy.length&&(Sg=Fy[0].textContent);
Nb=new iM(Al,Sg)}break;case "viral":Mb="viral";Nb=(new zM).parse(gc);break;case "metrics":Mb="metrics";Nb=(new kM).parse(gc);break;case "adx":Mb="adx";Nb=(new GJ).parse(gc);break;case "why_this_ad":Mb="why_this_ad";Nb=(new BM).parse(gc);break;case "mute":Mb="mute";Nb=(new pM).parse(gc);break;case "sodar":Nb=(new tM).parse(gc);break;case "adformat":Mb="AdFormat";Nb=(new IL).parse(gc);break;default:var Tg=new PL,Mb="generic";Nb=Tg.parse(gc)}if(null!=Nb){var OG=Gb.get(Mb);null!=OG?"generic"==Mb&&(oja(OG,
Nb.g),Gb.set(Mb,OG)):Gb.set(Mb,Nb)}}}catch(Gy){if(!ra(Gy.vb)||1105==Gy.vb())throw Gy;}x=Gb}}e=E(l);Uo=m;a:if(D(E(m)))xj="UNKNOWN";else switch(xj=m.toUpperCase(),xj){case "ADSENSE":case "ADSENSE/ADX":case "ADSENSE-VIRAL":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "SHOPPING":case "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:SHOPPING":case "YT:FREEWHEEL":case "VIRAL":case "VIRAL-RESERVE":break a;default:xj="UNKNOWN"}x.get("programmatic");gc=x;Mb=null;x=x.get("AdSense");
null!=x&&(x=UH(x,"vast2tracking"),null!=x&&!g.J(x)&&(Mb=x[0]));c=new UJ(e,Uo,xj,0,n,0,0,0,c,q,a,t,w,gc,A,I,K,Mb);null!=c&&(c.Ia=d,b.push(c))},a);
return b};
VM=function(a){var b=null;a=$e(a);for(var c=0,d=a.length;c<d;c++)switch(b=a[c],b.nodeName){case "InLine":case "Wrapper":break;default:throw oJ(b);}return b};
Vka=function(a){if(D(E(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
Tka=function(a,b){var c=[],d=[];uJ(b,a.g.Qy,function(a){var b=a.getAttribute(this.o.tq),e=window.NaN;D(E(b))||(e=(0,window.parseFloat)(b));a.getAttribute(this.o.wy);var b=a.getAttribute(this.o.vj),l=!1;a=$e(a);for(var m=0,n=a.length;m<n;m++){var q=a[m];switch(q.nodeName){case this.g.LINEAR:if(l)throw pJ(q);l=Wka(this,q,(0,window.isNaN)(e)?0:e,b||null);kb(c,l);l=!0;break;case this.g.My:if(l)throw pJ(q);l=SM(this,q,(0,window.isNaN)(e)?0:e);kb(d,l);l=!0;break;case this.g.Qz:if(l)throw pJ(q);l=Xka(this,
q,(0,window.isNaN)(e)?0:e,b||null);kb(c,l);l=!0}}},a);
return{creatives:c,WA:d}};
Xka=function(a,b,c,d){var e=[],f=new KH;b=$e(b);for(var k=0,l=b.length;k<l;k++){var m=b[k];switch(m.nodeName){case a.g.Pz:m=Yka(a,m,c,d);null!=m&&e.push(m);break;case a.g.$l:f=EJ(m);break;default:throw oJ(m);}}0!=e.length||f.isEmpty()||(a=new tI(null,new g.ze(-1,-1),"",null,""),a.g=c,a.Ta=d,e.push(a));(0,g.H)(e,function(a){f&&(a.ah=f)});
return e};
WM=function(a,b){var c={};c.id=b.getAttribute(a.o.vj);c.adSlotId=b.getAttribute(a.o.yy);c.apiFramework=b.getAttribute(a.o.sj);var d=Qa(b.getAttribute(a.o.zj)),e=Qa(b.getAttribute(a.o.tj));c.size=new g.ze(d,e);d=b.getAttribute(a.o.gz);e=b.getAttribute(a.o.fz);D(E(d))||D(E(e))||(c.xU=new g.ze(Qa(d),Qa(e)));return c};
Yka=function(a,b,c,d){var e=WM(a,b);b.getAttribute(a.o.sj);b.getAttribute(a.o.dA);b.getAttribute(a.o.Cz);var f=b.getAttribute(a.o.Lz),f=wJ(f,-1),k=[];new If;var l={},m="",n=null,q=[];b=$e(b);for(var t=0,w=b.length;t<w;t++){var x=b[t];switch(x.nodeName){case a.g.Sz:q.push(tJ(x));break;case a.g.Rz:n=tJ(x);break;case a.g.Ql:l=XM(x);m=E(tJ(x));break;case a.g.wj:case a.g.yj:case a.g.uj:x=YM(a,x);null!=x&&k.push(x);break;default:throw oJ(x);}}a=MM(e.id,e.size,k);XH(a,m,l);a.J=e.apiFramework;a.na=n;a.O=
q;a.va=f;a.g=c;a.Ta=d;return a};
YM=function(a,b){var c=sJ(b,a.o.Sy);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.g.yj:d="Static";break a;case a.g.wj:d="IFrame";break a;case a.g.uj:d="Html";break a;default:throw Gz(Zka,null,d);}var e=tJ(b);null!=e||(e="");return new NM(d,c,e)};
SM=function(a,b,c){var d=[],e=Vka(sJ(b,a.o.aA));uJ(b,a.g.Ly,function(a){var b;b=WM(this,a);var e=[],f=new KH,n=null,q=[];a=$e(a);for(var t=0,w=a.length;t<w;t++){var x=a[t];switch(x.nodeName){case this.g.Oy:q.push(tJ(x));break;case this.g.$l:f=EJ(x,!0);break;case this.g.Ny:n=tJ(x);break;case this.g.Dy:tJ(x);break;case this.g.Ql:tJ(x);break;case this.g.wj:case this.g.yj:case this.g.uj:x=YM(this,x);null!=x&&e.push(x);break;default:throw oJ(x);}}b=g.J(e)?null:Rka(b,n,q,c,f,e);null!=b&&d.push(b)},a);
return new Qka(d,e)};
Wka=function(a,b,c,d){var e=new KH,f={},k="",l=[],m=null,n=new If,q=[],t=[],w=0,x=DJ(sJ(b,a.o.hA));b=$e(b);for(var A=0,F=b.length;A<F;A++){var I=b[A];switch(I.nodeName){case a.g.oz:t=$ka(a,I);break;case a.g.Ql:f=XM(I);k=E(tJ(I));break;case a.g.Tl:w=wJ(tJ(I),0);break;case a.g.$l:e=EJ(I);break;case a.g.Gz:q=ala(a,I);break;case a.g.tA:l=bla(a,I);n=l.customClicks;m=l.clickThrough;l=l.clickTrackingUrls;break;default:throw oJ(I);}}(0,g.H)(l,function(a){PH(e,"click",a)});
a=new aI(w,m,n,q,x,t);XH(a,k,f);a.g=c;a.Ta=d;e&&(a.ah=e);return a};
bla=function(a,b){for(var c=null,d=[],e=new If,f=$e(b),k=0,l=f.length;k<l;k++){var m=f[k];switch(m.nodeName){case a.g.Iy:c=tJ(m);break;case a.g.Jy:m=tJ(m);d.push(m);break;case a.g.Vy:var n=sJ(m,a.o.vj);null!=n||(n="");var q=e.get(n,[]);q.push(tJ(m));e.set(n,q);break;default:throw oJ(m);}}return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
ala=function(a,b){var c=[];uJ(b,a.g.Fz,function(a){var b=sJ(a,this.o.Yy),d=sJ(a,this.o.Hq),k=sJ(a,this.o.uA),l=Qa(a.getAttribute(this.o.zj)),m=Qa(a.getAttribute(this.o.tj)),n=a.getAttribute(this.o.sj),q=tJ(a),t=vJ(a.getAttribute(this.o.Np)),w=vJ(a.getAttribute(this.o.Kz));a=vJ(a.getAttribute(this.o.Ez));b=new $H(b,d,k,t,w,a,l,m,q,n);c.push(b)},a);
return c};
$ka=function(a,b){var c=[];uJ(b,a.g.nz,function(a){var b;b=a.getAttribute(this.o.Xz);var d=sJ(a,this.o.xA),k=sJ(a,this.o.yA),l=Qa(a.getAttribute(this.o.zj)),m=Qa(a.getAttribute(this.o.tj)),n=new g.ze(l,m),l=a.getAttribute(this.o.sj),m=DJ(sJ(a,this.o.Tz)),q=a.getAttribute(this.o.Tl),q=wJ(q,-1),t=[],w=[],x={};a=$e(a);for(var A=0,F=a.length;A<F;A++){var I=a[A];switch(I.nodeName){case this.g.uz:w.push(tJ(I));break;case this.g.pz:for(var x=[],K=null,I=$e(I),Ua=0,lb=I.length;Ua<lb;Ua++){var gb=I[Ua];switch(gb.nodeName){case this.g.qz:K=
tJ(gb);break;case this.g.rz:x.push(tJ(gb));break;default:throw oJ(gb);}}x={iconClickThrough:K,FC:x};break;case this.g.wj:case this.g.yj:case this.g.uj:K=YM(this,I);null!=K&&t.push(K);break;default:throw oJ(I);}}g.J(t)?b=null:(a=x,n=MM("icon"+b,n,t),n.J=l,b=new OM(n,b,d,k,q,m,a.iconClickThrough,a.FC,w));null!=b&&c.push(b)},a);
return c};
XM=function(a){a=tJ(a);return null!=a?uia(a):{}};
dla=function(a){switch(a){case "BREAK_TYPE_PRE_ROLL":return 1;case "BREAK_TYPE_MID_ROLL":return 2;case "BREAK_TYPE_POST_ROLL":return 3;case "BREAK_TYPE_INDEPENDENT":return 5;case "BREAK_TYPE_RELATED":return 6;default:return 0}};
ZM=function(a,b){this.B=a;this.o=b;this.g=this.ka=null};
ela=function(a){var b=[],c=rJ(a,"vmap:Extensions")[0];if(c){var d;uJ(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=rJ(d,"yt:BreakTime"),!g.J(b)))return(0,g.S)(b,function(a){return sJ(a,"timeOffset")})}return[sJ(a,"timeOffset")]};
fla=function(a,b){return(0,g.S)(b,function(a){var b=new AL(a.A.clone());b.g=a.g;b.o=a.o;return b},a)};
gla=function(a){return(a=g.Xa($e(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?g.Xa($e(a),function(a){return"VAST"==a.nodeName}):null};
$M=function(a,b,c){return sJ(c,a)==b};
ila=function(a,b){if(null!=a){var c;null!=a?(c=bf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return oL(),new DL(a,b);null!=a?(c=bf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return oL(),new ZM(a,b);if(RM(a)){if(!RM(a))throw Gz(GL);c=bf(a);var d=UM(c);if(1>d||4<d)throw Gz(hla);c=rJ(c,"Ad");if(g.J(c))throw Gz(aN);c=VM(c[0]);if(null==c)throw Gz(bN);if(1!=rJ(c,"AdSystem").length)throw Gz(bN);return new QM(a)}}return null};
cN=function(){};
dN=function(a,b){this.o=a;this.A=b};
eN=function(a,b){"auto"!=a.o.zg&&"click"!=a.o.zg||b.set("vpa",a.o.zg)};
fN=function(a){D("")||(a.set("mpt",""),D("")||a.set("mpv",""))};
gN=function(a,b){var c=a.A.D,d=a.A.o;null!=c&&b.set("js","ima-"+c);null!=d&&b.set("an",d);c=a.o.G;null!=c&&b.set("mv",c+"."+(a.o.F||""))};
hN=function(a,b){b.set("osd",2);-1!=a.A.L&&b.set("frm",a.A.L);var c=a.A.ba;null!=c&&b.set("ms",c);b.set("sdr",1)};
iN=function(a){return X.o?"h.3.0.0":null!=a.A?jA(a.A):null};
jN=function(){this.g=["video"]};
kN=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
lN=function(a,b){a.set("sz",Math.max(null!=b.Xg?b.Xg:0,null!=b.$d?b.$d:0)+"x"+Math.max(null!=b.Wg?b.Wg:0,null!=b.Zd?b.Zd:0))};
nN=function(a){var b={};EB(b);for(var c in b)a.set(c,b[c]);a.set("dt",mN)};
oN=function(a){if(a.Yb&&a.Yb.LACT){var b=a.Yb.LACT.toString();if(b)return Ta(b)}return a.C};
pN=function(a){return X.g()&&a.Yb&&a.Yb.VIS?a.Yb.VIS.toString():null};
uN=function(a,b,c){var d=new If;d.set("ad_type",b.adType);NE&&d.set("flash",ZB);lN(d,a);qN(b)&&(d.set("ea","0"),null!=a.$d&&null!=a.Zd&&d.set("image_size",rN(b,a.$d,a.Zd,a.Og)));sN(d,c);d.set("lact",oN(a));(b=pN(a))&&d.set("yt_vis",b);d.set("videoad_start_delay",a.yl);nN(d);tN(a,d,!0);return d};
tN=function(a,b,c){D(E(a.referrer))||(a=a.referrer,c&&(a=Ba(a)),vN("ref",a,b))};
yN=function(a,b,c){a=null!=b?b.split("_"):a;(0,g.H)(a,function(a){if(!Kb(jla,a))throw Gz(IE,null,"ad_type",String(b));});
if(c){var d=[];(0,g.H)(a,function(a){g.ab(wN,a)||d.push(a)});
a=d}c=g.ab(a,"video");var e=g.ab(a,"skippablevideo");!Rz()||X.g()||nA(kA.getInstance(),53,{playsInline:!1,iOS_version:Rz()?Yz(Tz):"",safari:Nz()&&ic(),chrome:Nz()&&hc(),rq_video:c,rq_skip:e});if(!bA(!1)){d=[];(0,g.H)(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw Gz(xN,null,"skippablevideo");a=d}return a};
zN=function(a,b){return null!=b?b.split(/[+, ]/):a};
rN=function(a,b,c,d){a.o&&(c=Math.min(c,90));var e=0,f=0;a=!X.g();d=d&&a;a&&(e=15,f=65);var k=[];(0,g.H)(kla,function(a){var l=b-e>=a.width&&c-f>=a.height,n=!d&&!l&&90>=a.height&&b>=a.width&&c>=a.height;(l||n)&&k.push(a.width+"x"+a.height)});
return k.join(",")};
AN=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
BN=function(a,b){return null!=b?String(b):null!=a?a:null};
CN=function(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a};
DN=function(a,b,c){return null!=b&&Kb(c,b)?b:a};
qN=function(a){return ph(wN,function(b){return g.ab(a.g,b)})};
sN=function(a,b){NE?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].G,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}};
vN=function(a,b,c){null!=b&&c.set(a,b)};
FN=function(a,b,c){dN.call(this,a,b);var d=new jN;a=(new gg(a.g)).g;d.Gn=DN(d.Gn,a.get("cust_age"),lla);d.Aj=DN(d.Aj,a.get("adsafe"),EN);d.g=yN(d.g,a.get("ad_type"));d.adType=d.g.join("_");d.gm=AN(d.gm,a.get("videoad_start_delay"));d.hm=BN(d.hm,a.get("slotname"));d.Fn=CN(d.Fn,a.get("adtest"))||"on"==a.get("adtest");d.jm=CN(d.jm,a.get("scs"));d.km=BN(d.km,a.get("alternate_ad_url"));d.channels=zN(d.channels,a.get("channel"));d.Gm=AN(d.Gm,a.get("cpm"));d.Yh=BN(d.Yh,a.get("description_url"));d.experimentIds=
BN(d.experimentIds,a.get("eid"));d.gender=DN(d.gender,a.get("cust_gender"),mla);d.o=CN(d.o,a.get("overlay"));d.host=BN(d.host,a.get("host"));d.A=zN(d.A,a.get("h_ch"));d.hostTierId=AN(d.hostTierId,a.get("ht_id"));d.isLiveStream=CN(d.isLiveStream,a.get("lsv"));var e;null!=this.o.language?e=this.o.language:(e=r.navigator||null,e=gz(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=BN(f,e);var k;null!=e&&!D(E(e))&&(k=gz(e));d.language=
BN(d.language,k);d.lt=AN(d.lt,a.get("linearAdSlotWidth"));d.kt=AN(d.kt,a.get("linearAdSlotHeight"));d.Bk=AN(d.Bk,a.get("max_ad_duration"));d.Yn=AN(d.Yn,a.get("min_ad_duration"));d.Ck=AN(d.Ck,a.get("sdmax"));d.tt=AN(d.tt,a.get("nonLinearAdSlotWidth"));d.qt=AN(d.qt,a.get("nonLinearAdSlotHeight"));d.nh=BN(d.nh,a.get("client"));d.Nk=BN(d.Nk,a.get("t_pyv"));k=a.get("sdki");d.Wk=AN(d.Wk,g.y(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=AN(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Kk=
BN(d.Kk,a.get("pucrd"));d.targeting=DN(d.targeting,a.get("targeting"),nla);d.tk=AN(d.tk,a.get("video_format"));d.Uo=AN(d.Uo,a.get("video_cpm"));d.Hn=BN(d.Hn,a.get("loeid"));d.$o=BN(d.$o,a.get("yt_pt"));d.Xo=BN(d.Xo,a.get("ytdevice"));d.Yo=BN(d.Yo,a.get("ytdevicever"));d.Zo=BN(d.Zo,a.get("dbp"));d.B=BN(d.B,a.get("ms"));d.adBlock=AN(d.adBlock,a.get("adBlock"));d.url=BN(d.url,a.get("url"));d.wm=BN(d.wm,a.get("avo"));d.So=BN(d.So,a.get("v_p"));pz().g("no_ad_block_param")||(d.vl=AN(d.vl,a.get("ad_block")));
this.g=d;this.H=b;this.J=c;D(E(this.g.experimentIds))||(b=this.g.experimentIds.split(","),mz(oz(),b))};
pla=function(a){return ph(ola,function(a){return g.ab(this.g.g,a)},a)};
GN=function(a){return X.g()?1:g.ab(a.g.adType.split("_"),"text")?3:1};
qla=function(a){a=a.g.channels?a.g.channels:[];pb(a);a=nb(a,0,30);return a.join("+")};
HN=function(a,b){dN.call(this,a,b)};
IN=function(a,b){dN.call(this,a,b)};
JN=function(a){dN.call(this,a,null)};
KN=function(a){dN.call(this,a,null)};
LN=function(a,b){dN.call(this,a,b);X.g()&&oz().g.g("doubleclick_gpt_retagging")&&(this.A.B=gA())};
MN=function(a){if(D(E(a)))return!1;a=new gg(a);if(!a.B||"http"!=a.B&&"https"!=a.B)return!1;a=a.o;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0};
rla=function(a){var b=[];(0,g.H)(a,function(a){0<a.length&&b.push((0,g.S)(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
NN=function(a,b,c){LN.call(this,a,b);b=oz();this.H=D(E(a.A));a=new jN;a.g=yN(a.g,this.o.A);a.adType=a.g.join("_");a.experimentIds=BN(a.experimentIds,this.o.D);this.g=a;this.F=c;D(E(this.g.experimentIds))||mz(b,this.g.experimentIds.split(","))};
sla=function(a){var b=uN(a.o,a.g,a.F);b.set("sdkv",iN(a));b.set("sdki",a.D().toString(16));return b};
tla=function(a,b){var c=sla(a),d=(0,g.S)(c.rb(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
g.pg(b,"afvparams",d.join("&"))};
ON=function(a,b,c){dN.call(this,a,b);oz();this.H=D(E(a.A));a=new jN;a.g=yN(a.g,this.o.A);a.adType=a.g.join("_");a.experimentIds=BN(a.experimentIds,this.o.D);this.g=a;this.F=c;D(E(this.g.experimentIds))||(a=this.g.experimentIds.split(","),c=oz(),mz(c,a))};
ula=function(a){var b=uN(a.o,a.g,a.F);b.set("sdkv",iN(a));return b};
vla=function(a,b){var c=ula(a),d=(0,g.S)(c.rb(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
gJ(b,"afvparams",[Ba(d.join("&"))])};
PN=function(a,b){dN.call(this,a,b)};
QN=function(a,b){var c=new gg(yp(a.o.g,wla(a,b)));hg(c,"https");return c};
wla=function(a,b){if(null==a.o||null==a.o.Yb)return{};var c={},d=a.o.Yb;(0,g.H)(xla,function(a){a in d&&(c[a]=d[a])});
if(!oz().g.g("no_ad_block_param")){var e=yla(a,d.DESCRIPTION_URL);e&&(c.AD_BLOCK=e)}null!=b&&(c.BISCOTTI_ID=b);return c};
yla=function(a,b){if(null==b)return null;var c=eA(iA(a.A),b);return 1!=c?c:null};
zla=function(a,b){var c;!lJ(a.g)&&!mJ(a.g)||D(E(a.A))||null==a.g||-1==a.g.search("afvbase=")?lJ(a.g)?c=new IN(a,lA):jJ(a.g)?c=new FN(a,lA,b):mJ(a.g)?c=new LN(a,lA):kJ(a)?c=new HN(a,lA):(c=a.g,null!=c?(c=(new gg(c)).o,c=Aa(c,".fwmrm.net")):c=!1,c=c?new JN(a):nJ(a)?new PN(a,lA):new KN(a)):c=lJ(a.g)?new ON(a,lA,b):new NN(a,lA,b);return c};
Ala=function(a){a=(0,g.Od)(a,function(a){return 0<rK(a)});
ub(a,function(a,c){return rK(a)-rK(c)});
return a};
Bla=function(a){return(0,g.Od)(a,function(a){return-1==rK(a)})};
WI=function(a){this.xe=a};
Cla=function(){this.ka=null;this.g=0};
Dla=function(a,b,c,d,e,f,k){var l=!!k,m=(0,g.z)(function(a){d(a,Error(BG(a)))},a);
k=(0,g.z)(function(a){l||6!=a?m(a):RN(this,b,!1,c,m,e,f)},a);
RN(a,b,!0,c,k,e,f)};
RN=function(a,b,c,d,e,f,k){var l=new HG;l.G=c;IG(l,Ela(f));var m=new Go,n=(0,g.z)(function(){m.dispose();l.dispose()},a);
c=(0,g.z)(function(){e(l.o);n()},a);
Mo(m,l,"success",function(){var a;try{a=l.g?l.g.responseXML:null}catch(x){a=null}if(null==a){var b=RG(l);try{a=g.Do(b)}catch(x){a=Co("parsererror")}}d(a);n()},a);
Mo(m,l,["error","timeout"],c,a);var q;"POST"==k&&(b=new gg(b),q=b.g.toString(),lg(b,""),b=b.toString());X.g()&&"POST"!=k&&(q=Fla(b,k),b=q.url,k=q.uI,q=q.content);a.g=(0,g.G)();l.send(xz(b),k,q)};
Fla=function(a,b){var c=new cN;c.g=a;var d;if(nJ(c)){var c=new gg(a),e=c.g.get("post_data");g.p(e)&&(b="POST",c.g.remove("post_data"),d=(0,window.decodeURIComponent)(e),a=c.toString())}return{url:a,uI:b,content:d}};
SN=function(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.g=d;this.D=e;this.ka=null};
Gla=function(a,b,c,d){var e;if(b.o instanceof window.Document)e=b.o;else try{e=g.Do(b.o)}catch(f){d(Gz(GL,f));return}null!=e?TN(a,e,b,c,d):d(Gz(GL))};
UN=function(a,b,c,d){var e;if(e=null!=b.g){a:{try{Ca(b.g)}catch(f){e=!1;break a}e=!0}e=!e}e?d(Gz(Hla,null,b.g)):X.G?Dka(uL(),(0,g.z)(a.o,a,b,c,d)):a.o(b,c,d)};
WN=function(a,b,c,d,e,f){b=Bga(b,f);f=c.pk&&tz(Ila,b)?"POST":"GET";var k=!1;X.g()&&yga(b)&&(k=!0);Dla(a.A,b,(0,g.z)(function(a){TN(this,a,c,d,e)},a),(0,g.z)(function(a,b){var d;
d=8==a?Gz(RI):5==a||6==a?Gz(Jla):Gz(VN,b);e(d);d="third_party";jJ(c.g)?d="adsense":lJ(c.g)?d="dart":mJ(c.g)&&(d="xfp");d={rt:d,ec:a};nA(kA.getInstance(),18,d,!0)},a),a.D,f,k);
Kla(c)};
Kla=function(a){var b="third_party";jJ(a.g)?b="adsense":lJ(a.g)?b="dart":mJ(a.g)?b="xfp":kJ(a)&&(b="dbm");a={rt:b};nA(kA.getInstance(),17,a,!0)};
TN=function(a,b,c,d,e){var f;try{var k=ila(b,c);if(!k)throw Gz(GL);f=k.A();Lla(a,f,c,d)}catch(l){l instanceof bz?e(l):e(Gz(Mla,l))}};
Lla=function(a,b,c,d){var e=b.xe;if(null!=e)d(new WI(e));else{e=b.o;if(null==e)throw Gz(aN);(0,g.H)(e,function(a){a.A=c;var d=ez();d&&fz(d,"useCompanionsAsEndSlate")&&(a.J=rka(a));var d=[],e=a.getExtension("InfoCards");if(null!=e)for(var e=e.A?e.A:new QL,f=0;f<mI(e,"card");f++)d.push(new CK(lI(e,"card",f)));a.C=d;a.O=oka(a.C);a.va=this.A.g;X.g()&&(a.Xa=b.g)},a);
var f=Ala(e),k=Bla(e),l;0<k.length&&0<=qK(k[0])?l=new aJ(k,c,a,a.C):l=new QI(f,k,c,a);(0,g.H)(e,function(a){a.fa=l});
d(l)}};
XN=function(a){this.g=a+(0,g.G)()};
Ela=function(a){var b=(0,g.G)();a=a.g-b;return 0<a?a:0};
Nla=function(a,b){this.g=a;this.o=b;this.ka=null;X.o&&UE().init();var c;a:{try{c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}lA.L=c};
Ola=function(a,b,c,d){if(X.g()){var e=b.xl;e&&uga(oz(),e)}e=null;null==a.g||X.g()&&oz().g.g("stop_using_ima_sdk_gpt_request_activity")||(e=new qL(1E3,a.g,a.o));var f=Xja(b);null!=f&&Wja(b)&&(a.o.ba=f);(new SN(a.o,new Cla,a.g,e,new XN(8E3))).fetch(b,(0,g.z)(function(a){a instanceof WI?c(a):UI(a,c,d)},a),d)};
YN=function(){this.g=[];this.o=[]};
ZN=function(a){g.J(a.g)&&(a.g=a.o,a.g.reverse(),a.o=[])};
$N=function(a,b){a.o.push(b)};
aO=function(a){ZN(a);return a.g.pop()};
bO=function(a){ZN(a);return g.Va(a.g)};
Pla=function(a){this.Wa=a;this.o=new YN;this.g=!1;this.ka=null};
dO=function(a,b,c,d){var e=(0,g.z)(function(a){c(a);aO(this.o);this.g=!1;cO(this)},a),f=(0,g.z)(function(a){d(a);
aO(this.o);this.g=!1;cO(this)},a);
$N(a.o,(0,g.z)(function(){Ola(this.Wa,b,e,f)},a));
cO(a)};
cO=function(a){if(!a.g){var b=bO(a.o);null!=b&&(a.g=!0,b())}};
eO=function(a,b,c){N.call(this);this.Wa=new Pla(new Nla(b,c));this.A=a;this.o=b;this.g=!0;this.B=c;this.ka=null};
Qla=function(a,b,c){if(a.g){var d=null!=c?c:{};Aka(nL.getInstance(),b.g);X.g()||rz(oz(),420706042)||(X.H=!0);dO(a.Wa,b,(0,g.z)(function(a){fO(this,a,d)},a),(0,g.z)(function(a){gO(this,a,d)},a))}};
Rla=function(a,b,c){if(!a.g){var d=null!=c?c:{};dO(a.Wa,b,(0,g.z)(function(a){fO(this,a,d)},a),(0,g.z)(function(a){gO(this,a,d)},a))}};
fO=function(a,b,c){if(a.g)if(b instanceof WI)b=new hO(b.xe,a,a.A.Br),b.nf(a.o),a.dispatchEvent(new fL(b,c));else{var d;try{d=iO(a.A,b),d.nf(a.o),a.dispatchEvent(new fL(d,c))}catch(e){gO(a,Gz(jO,null),c)}}else b instanceof WI?gO(a,Gz(Sla,null,"Unsupported ad format."),c):(d=new hL("adsLoaderSdkAdLoaded"),d.F=b,d.D=c,a.dispatchEvent(d))};
gO=function(a,b,c){a.g?("always"==X.A&&null!=a.o&&a.o.Xc(ZK()),a.dispatchEvent(new cz(b,c))):(c=new hL("adsLoaderSdkAdError"),c.g=b,a.dispatchEvent(c))};
Tla=function(a){return'<div class="close-padding"><a class="close-button" title="'+Z(a.close)+'" role="button" tabindex="0"></a></div>'};
Ula=function(){return'<div class="recall-button"></div>'};
Vla=function(a){return'<a target="_blank" href="'+Z(a.url)+'" class="attribution-button">'+Z(a.text)+"</a>"};
kO=function(a,b){this.J=a;this.H=g.P("DIV",{"class":"controls"});this.g=g.P("DIV",{"class":"adDisplay"});this.V=b||g.v;this.Ie=new Go(this)};
lO=function(a){var b=g.P("DIV",{"class":"ima-container"});kq(b,"opacity 0.4s");a.Ie.S(b,"mouseover",a.DC);a.Ie.S(b,"mouseout",a.RI);b.appendChild(a.H);a.H.appendChild(a.g);return b};
mO=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
nO=function(a,b){this.L=a;this.P=new If;this.N=15E3;this.F=g.P("SPAN");kO.call(this,a[0],b);this.g.appendChild(this.F)};
oO=function(a,b){kO.call(this,a[0],b);this.B=a;g.O(this.g,"ima-container-stack")};
pO=function(a,b,c,d,e){Zo.call(this);this.o=a;this.C=b;this.F=c;this.A=d;this.D=na(e)?e:[e]};
qO=function(a,b,c,d,e){return new pO(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
rO=function(a,b){return qO(a,b,"ease-out",0,1)};
Wla=function(a){return'<a target="_blank" href="'+Z(a.url)+'" class="fullslot-attribution-button">'+Z(a.text)+"</a>"};
Xla=function(a){return'<div class="fullslot-autoclose">'+Z(a.KA)+"</div></div>"};
sO=function(a){return""+wa("Ad will close in {$xSeconds}",{xSeconds:Z(a.qf)})};
tO=function(a){N.call(this);this.C=new Ed(200);g.M(this,this.C);this.A=0;this.o=!1;this.O=a;this.J=new Go(this);this.J.S(this.C,"tick",this.wG)};
uO=function(a){a.C.stop();a.o=!1};
zO=function(a,b,c){this.L=b||vO.Xy;this.da=c||0;this.N=40;this.o=1;this.Z=0;this.D=3;this.P=this.A=0;this.ca=!1;this.O=this.G="";this.B="-";this.H="";this.g=1;this.F=!1;this.C=[];this.V=this.ba=!1;this.J=0;if("number"==typeof a)switch(a){case 1:wO(this,vO.Sp);break;case 2:wO(this,vO.eA);break;case 3:wO(this,vO.Uz);break;case 4:a=vO.Uy;b=["0"];c=xO[this.L][0]&7;if(0<c){b.push(".");for(var d=0;d<c;d++)b.push("0")}a=a.replace(/0.00/g,b.join(""));wO(this,a);break;case 5:yO(this,1);break;case 6:yO(this,
2);break;default:throw Error("Unsupported pattern type.");}else wO(this,a)};
wO=function(a,b){b.replace(/ /g,"\u00a0");var c=[0];a.G=AO(a,b,c);for(var d=c[0],e=-1,f=0,k=0,l=0,m=-1,n=b.length,q=!0;c[0]<n&&q;c[0]++)switch(b.charAt(c[0])){case "#":0<k?l++:f++;0<=m&&0>e&&m++;break;case "0":if(0<l)throw Error('Unexpected "0" in pattern "'+b+'"');k++;0<=m&&0>e&&m++;break;case ",":0<m&&a.C.push(m);m=0;break;case ".":if(0<=e)throw Error('Multiple decimal separators in pattern "'+b+'"');e=f+k+l;break;case "E":if(a.V)throw Error('Multiple exponential symbols in pattern "'+b+'"');a.V=
!0;a.P=0;c[0]+1<n&&"+"==b.charAt(c[0]+1)&&(c[0]++,a.ca=!0);for(;c[0]+1<n&&"0"==b.charAt(c[0]+1);)c[0]++,a.P++;if(1>f+k||1>a.P)throw Error('Malformed exponential pattern "'+b+'"');q=!1;break;default:c[0]--,q=!1}0==k&&0<f&&0<=e&&(k=e,0==k&&k++,l=f-k,f=k-1,k=1);if(0>e&&0<l||0<=e&&(e<f||e>f+k)||0==m)throw Error('Malformed pattern "'+b+'"');l=f+k+l;a.D=0<=e?l-e:0;0<=e&&(a.A=f+k-e,0>a.A&&(a.A=0));a.o=(0<=e?e:l)-f;a.V&&(a.N=f+a.o,0==a.D&&0==a.o&&(a.o=1));a.C.push(Math.max(0,m));a.ba=0==e||e==l;d=c[0]-d;
a.O=AO(a,b,c);c[0]<b.length&&";"==b.charAt(c[0])?(c[0]++,1!=a.g&&(a.F=!0),a.B=AO(a,b,c),c[0]+=d,a.H=AO(a,b,c)):(a.B=a.G+a.B,a.H+=a.O)};
yO=function(a,b){a.J=b;wO(a,vO.Sp);a.A=0;a.D=2;if(0<a.A)throw Error("Can't combine significant digits and minimum fraction digits");a.Z=2};
CO=function(a,b){var c=Math.pow(10,a.D),d;if(0>=a.Z)d=Math.round(b*c);else{d=b*c;var e=a.D;if(d){var f=a.Z-BO(d)-1;f<-e?(e=Math.pow(10,e),d=Math.round(d/e)*e):(e=Math.pow(10,f),d=Math.round(d*e)/e)}d=Math.round(d)}e=d;(0,window.isFinite)(e)?(d=Math.floor(e/c),c=Math.floor(e-d*c)):(d=b,c=0);return{intValue:d,sB:c}};
DO=function(a,b,c,d){if(a.A>a.D)throw Error("Min value must be less than max value");d||(d=[]);b=CO(a,b);var e=Math.pow(10,a.D),f=b.intValue,k=b.sB,l=0<a.A||0<k||!1;b=a.A;l&&(b=a.A);for(var m="",n=f;1E20<n;)m="0"+m,n=Math.round(n/10);var m=n+m,q=vO.Tp,n=vO.dm.charCodeAt(0),t=m.length,w=0;if(0<f||0<c){for(f=t;f<c;f++)d.push(String.fromCharCode(n));if(2<=a.C.length)for(c=1;c<a.C.length;c++)w+=a.C[c];c=t-w;if(0<c)for(var f=a.C,w=t=0,x,A=vO.Wl,F=m.length,I=0;I<F;I++){if(d.push(String.fromCharCode(n+1*
Number(m.charAt(I)))),1<F-I)if(x=f[w],I<c){var K=c-I;(1===x||0<x&&1===K%x)&&d.push(A)}else w<f.length&&(I===c?w+=1:x===I-c-t+1&&(d.push(A),t+=x,w+=1))}else{c=m;m=a.C;f=vO.Wl;x=c.length;A=[];for(t=m.length-1;0<=t&&0<x;t--){w=m[t];for(F=0;F<w&&0<=x-F-1;F++)A.push(String.fromCharCode(n+1*Number(c.charAt(x-F-1))));x-=w;0<x&&A.push(f)}d.push.apply(d,A.reverse())}}else l||d.push(String.fromCharCode(n));(a.ba||l)&&d.push(q);a=""+(k+e);for(e=a.length;"0"==a.charAt(e-1)&&e>b+1;)e--;for(f=1;f<e;f++)d.push(String.fromCharCode(n+
1*Number(a.charAt(f))))};
EO=function(a,b,c){c.push(vO.Wp);0>b?(b=-b,c.push(vO.Jz)):a.ca&&c.push(vO.Vz);b=""+b;for(var d=vO.dm,e=b.length;e<a.P;e++)c.push(d);c.push(b)};
FO=function(a){a=a.charCodeAt(0);if(48<=a&&58>a)return a-48;var b=vO.dm.charCodeAt(0);return b<=a&&a<b+10?a-b:-1};
AO=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var k=b.charAt(c[0]);if("'"==k)c[0]+1<f&&"'"==b.charAt(c[0]+1)?(c[0]++,d+="'"):e=!e;else if(e)d+=k;else switch(k){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":if(c[0]+1<f&&"\u00a4"==b.charAt(c[0]+1))c[0]++,d+=a.L;else switch(a.da){case 0:d+=xO[a.L][1];break;case 2:var k=a.L,l=xO[k],d=d+(k==l[1]?k:k+" "+l[1]);break;case 1:d+=xO[a.L][2]}break;case "%":if(!a.F&&1!=a.g)throw Error("Too many percent/permill");if(a.F&&
100!=a.g)throw Error("Inconsistent use of percent/permill characters");a.g=100;a.F=!1;d+=vO.oq;break;case "\u2030":if(!a.F&&1!=a.g)throw Error("Too many percent/permill");if(a.F&&1E3!=a.g)throw Error("Inconsistent use of percent/permill characters");a.g=1E3;a.F=!1;d+=vO.pq;break;default:d+=k}}return d};
IO=function(a,b){var c=1==a.J?GO.Pp:GO.Ky;null==c&&(c=GO.Pp);if(3>b)return HO;b=Math.min(14,b);for(var d=c[Math.pow(10,b)],e=b-1;!d&&3<=e;)d=c[Math.pow(10,e)],e--;if(!d)return HO;c=d.other;return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{prefix:c[1],Hv:c[3],Mm:e+1-(c[2].length-1)}:HO:HO};
BO=function(a){if(!(0,window.isFinite)(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b};
JO=function(a,b){N.call(this);this.B=b;this.A=a;this.xg=null;this.o=new Go(this);g.M(this,this.o);this.g=new aF;g.M(this,this.g);var c=uA(BA(a.g),GA,6),c={OA:E(sA(c,1)),NA:E(sA(c,3)),MA:E(sA(c,2))};this.Nd=Yla(c);null!=this.Nd&&R(this.Nd,!1);b.appendChild(this.Nd);this.o.S(this.g,"click",this.VC);this.g.wb(this.Nd)};
Yla=function(a){a=AF(Wia,a);Ie("videoAdUiBrandPrecapBrandImage",Ie("videoAdUiBrandPrecapImageContainer",Ie("videoAdUiBrandPrecapContent",a))).BU=function(){return!1};
return a};
KO=function(a,b,c,d,e){(new pO(a.Nd,.4,{paddingTop:b,opacity:d},{paddingTop:c,opacity:e},[{property:"padding-top",duration:.4,timing:"ease-in-out",delay:0},{property:"opacity",duration:.4,timing:"ease-in-out",delay:0}])).play()};
LO=function(a,b){var c=nf(cf(a.B),"html5-video-player");null!=c&&g.Rd(c,"ytp-ad-display-override",b)};
MO=function(a,b){this.C=a;this.A=b;this.o=this.B=this.D=this.g=null};
NO=function(a){return null!=a.C||null!=a.A};
OO=function(a,b,c){b=Ie(b,a.g);null!=b&&a.B.S(b,"click",c)};
PO=function(a,b,c){null!=a.g&&a.g.parentElement.removeChild(a.g);a.g=AF(b,c);OO(a,"videoAdUiPopupCloseIcon",a.Nj);a.D.appendChild(a.g);b=Ie("videoAdUiPopupFrame",a.g);null!=b&&Ec(b,"submit",function(a){a.preventDefault()});
a=Ie("videoAdUiPopupDefaultButton",a.g);null!=a&&a.focus()};
QO=function(){this.ye=dG({Xi:"",Qh:0,Yi:0});this.gh=""+wa("Learn More {$suffix}",{suffix:Z("")});this.visitAdvertiserText=""+wa("Visit Advertiser's Site");this.Rd=fG();this.skipOffset=null;this.N=this.ob=this.wa=this.P=!1;this.va=6E3;this.C=!0;this.ba=!1;this.da=this.o=this.ca=!0;this.Ta=this.ga=this.fa=this.D=!1;this.L=!0;this.O=this.ra=this.pa=this.na=this.B=!1;this.J={};this.V=null;this.showContentThumbnail=!0;this.A=this.G=!1;this.g=null;this.la=!1;this.F=-1};
RO=function(a,b,c,d,e,f){var k=new QO;k.B=a;k.Aa=b;k.skipOffset=c;k.Z=null!=e?e.Vg:null;k.ca=e.WI;k.V=Tia;k.Ia=eF(b,null!=c,e.Hg);k.showContentThumbnail=null!=e.Vg&&e.showContentThumbnail;k.g=e.Qs;k.la=e.hB;null!=f&&(k.J=f);null==c&&(a=oz().g,d&&a.g("show_countdown_on_bumper")&&(k.ob=!0,k.P=!0),a.g("show_thumbnail_on_standard")&&(k.P=!0),a.g("log_video_preview_interaction")&&(k.wa=!0));X.g()&&null!=k.g&&null!=sA(k.g,1)&&(d=BA(k.g),null!=sA(d,6)&&null!=sA(uA(d,GA,6),1)&&null!=sA(uA(d,GA,6),2)&&null!=
sA(uA(d,GA,6),3)&&(k.N=!0));return k};
SO=function(a,b,c){N.call(this);this.H=new Go(this);g.M(this,this.H);this.P=a;this.N=c;this.g=this.F=null;this.J=0;this.B=[];this.C=[];this.D=[];this.G=0;this.L=!1;a=a.g;this.A=null!=a&&null!=BA(a)?uA(BA(a),EA,3):null;a=this.A;c=this.N;if(null!=a&&sA(a,1)){var d=sA(a,3);a=d?d<=c?c-d:0:(a=sA(a,2))&&0<=a?a:0}else a=0;this.O=a;this.o=Zla(this);b.appendChild(this.o)};
Zla=function(a){var b=AF(Xia);g.ff(Ie("videoAdUiLikeMsg",b),""+wa("I like this"));g.ff(Ie("videoAdUiDislikeMsg",b),""+wa("I dislike this"));null!=a.A&&sA(a.A,4)&&((0,g.H)(He("videoAdUiBrandInteractionButton",b),function(a){g.O(a,"videoAdUiBrandInteractionSmileyButton")},a),TO(b,"videoAdUiBrandInteractionLikeIcon","videoAdUiBrandInteractionLikeSmileIcon"),TO(b,"videoAdUiBrandInteractionDislikeIcon","videoAdUiBrandInteractionDislikeFrownIcon"));
$la(a,b);R(b,!1);return b};
TO=function(a,b,c){a=Ie(b,a);null!=a&&(g.Pd(a,b),g.O(a,c),g.O(a,"videoAdUiBrandInteractionSmileyIcon"))};
$la=function(a,b){var c=Ie("videoAdUiBrandInteractionLikeButton",b);null!=c&&UO(a,c);c=Ie("videoAdUiBrandInteractionDislikeButton",b);null!=c&&UO(a,c)};
UO=function(a,b){var c=new aF;a.H.S(c,"click",a.V);c.wb(b)};
WO=function(){N.call(this);this.g=!1;this.A=this.B=this.o=null;this.C=new Go(this);this.o=AF(cja);this.B=Ie("videoAdUiUnmutedIcon",this.o);this.A=Ie("videoAdUiMutedIcon",this.o);VO(this);this.C.S(this.o,"click",this.D)};
VO=function(a){a.B&&a.A&&(a.g?(g.Si(a.B,"display","none"),g.Si(a.A,"display","block")):(g.Si(a.B,"display","block"),g.Si(a.A,"display","none")))};
XO=function(a,b){N.call(this);this.D=a;this.F=1;this.C=this.A=this.g=this.o=null;this.B=a.ob;this.H=new Go(this);g.M(this,this.H);this.G=new aF;g.M(this,this.G);this.L=!0;this.O=a.wa;this.J=0;this.o=AF(bG);this.g=Ie("videoAdUiPreSkipButton",this.o);this.A=Ie("videoAdUiPreSkipText",this.g);g.O(this.A,"videoAdUiPreviewText");this.C=Ie("videoAdUiPreSkipThumbnail",this.g);this.B?g.ff(this.A,cG({qf:""})):g.ff(this.A,""+wa("Video will play after ad"));var c=hF(this.D.Z)||"";if(this.D.showContentThumbnail&&
!D(E(c))){var d=g.Re("img");d.setAttribute("src",c);g.O(d,"videoAdUiPreSkipThumbnailImage");this.C.appendChild(d)}else this.B?(R(this.C,!1),g.O(this.A,"videoAdUiPreviewButtonTextOnly"),g.O(this.g,"videoAdUiPreviewButtonNoThumbnail")):R(this.g,!1);R(this.o,!1);b.appendChild(this.o);this.H.S(this.G,"click",this.N);this.G.wb(this.C)};
YO=function(a){if(!ama.test(a))throw Error("'"+a+"' is not a valid alpha hex color");5==a.length&&(a=a.replace(bma,"#$1$1$2$2$3$3$4$4"));a=a.toLowerCase();return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16),(0,window.parseInt)(a.substr(7,2),16)/255]};
ZO=function(a){var b=a.slice(0);b[3]=Math.round(1E3*a[3])/1E3;return"rgba("+b.join(",")+")"};
aP=function(a,b){N.call(this);this.B=a;this.da=0;this.Z=!1;this.D=0==RH(this.B.skipOffset)?3:1;this.o=this.N=this.g=this.la=this.P=this.J=this.C=null;this.F=new Go(this);this.H=this.L=this.G=null;this.O=this.ca=!1;this.V=new aF;this.fa="";this.ga=!1;var c=a.g;this.A=null!=c&&null!=BA(c)?uA(BA(c),CA,1):null;this.na=null!=this.A&&sA(this.A,6)?!0:!1;c=this.A;this.ba=null!=c&&sA(c,4)&&null!=sA(c,5)&&0<sA(c,5)?!0:!1;this.C=AF(bG);this.J=Ie("videoAdUiPreSkipButton",this.C);this.P=Ie("videoAdUiPreSkipText",
this.J);this.la=Ie("videoAdUiPreSkipThumbnail",this.J);pz().g("use_forced_linebreak_preskip_text")&&(this.ga=!0,g.O(this.P,"videoAdUiPreSkipTextForcedLineBreak"));$O(this,0);c=hF(this.B.Z)||"";if(this.B.showContentThumbnail&&!D(E(c))){var d=g.Re("img");d.setAttribute("src",c);g.O(d,"videoAdUiPreSkipThumbnailImage");this.la.appendChild(d)}else g.O(this.P,"videoAdUiPreSkipTextOnly");c=pz().g("use_new_skip_icon");this.o=AF(c?Zia:Yia,{Dv:La(""+wa("Skip Ad {$skipSymbol}",{skipSymbol:Z("")}))});this.g=
Ie("videoAdUiSkipButton",this.o);c&&(this.N=Ie("videoAdUiSkipButtonText",this.g),pz().g("fixed_padding_skip_button")&&(g.O(this.N,"videoAdUiFixedPaddingSkipButtonText"),g.O(this.g,"videoAdUiFixedPaddingSkipButton"),g.O(Ie("videoAdUiExperimentalSkipIcon",this.g),"videoAdUiFixedPaddingSkipButtonIcon")));cma(this);"4.4.4"===(g.sx?Yz(Vz):"")&&(this.J.style.backgroundColor="black",this.g.style.backgroundColor="black");R(this.C,!1);b.appendChild(this.C);0==RH(this.B.skipOffset)?this.dispatchEvent("skipshown"):
(R(this.o,!1),kj(this.o,0));b.appendChild(this.o);pz().g("move_skip_button_to_top")&&(g.O(this.C,"videoAdUiHighPreSkipContainer"),g.O(this.o,"videoAdUiHighSkipContainer"));this.F.S(this.V,"click",this.II);this.V.wb(this.g)};
$O=function(a,b){var c=null!=a.B.skipOffset&&-1!=RH(a.B.skipOffset)?RH(a.B.skipOffset):-1;if(!(0>c)){var c=Math.ceil(c-b),d=c.toString();60<=c&&(d=PE(c));c=a.P;d={Tj:a.ga?"forcedlinebreak":a.fa,qf:d,QD:"\n"};d=""+LF("b",d.Tj)(d,null,void 0);g.ff(c,d)}};
bP=function(a){null!=a.H&&(Hd(a.H),a.H=null)};
cP=function(a,b){null!=a.J&&R(a.J,b);null!=a.g&&R(a.g,b)};
cma=function(a){if(null!=a.A){var b=null!=a.A.getStyle()&&null!=uA(a.A.getStyle(),JA,1)?sA(uA(a.A.getStyle(),JA,1),1):null,c=null!=uA(a.A,IA,2)&&null!=uA(uA(a.A,IA,2),JA,1)?sA(uA(uA(a.A,IA,2),JA,1),1):null;b&&(a.g.style.backgroundColor=ZO(YO(b)),c&&(a.F.S(cf(a.g),"mouseover",function(){this.g.style.backgroundColor=ZO(YO(c))}),a.F.S(cf(a.g),"mouseout",function(){this.g.style.backgroundColor=ZO(YO(b))})));
if(null!=uA(a.A,KA,3)&&null!=a.N){var d=Ega(uA(a.A,KA,3));0<d.length&&sA(d[0],1)&&g.ff(a.N,sA(d[0],1))}d=sA(a.A,7)||"";d=dma[d];null==d||D(d)||(g.O(a.C,d),g.O(a.o,d))}};
eP=function(a,b,c){N.call(this);this.g=a;this.ba=!1;this.Ia=c;this.fa=this.na=this.P=this.D=this.O=this.pa=this.Z=this.H=this.Xa=this.Aa=this.fb=this.va=this.J=this.o=null;this.Ua=!1;this.ab=this.Ja=this.Na=this.L=this.N=this.G=this.la=this.ga=this.B=this.C=this.Oa=this.da=this.ca=this.F=null;this.A=new Go(this);this.ra=[];a=this.g;this.qb=null!=a&&null!=a.g&&null!=BA(a.g)?uA(BA(a.g),DA,2):null;a=this.g;this.ib=null!=a&&null!=a.g&&null!=BA(a.g)?uA(BA(a.g),HA,7):null;this.V=[];this.ba=!this.g.G&&X.g();
a={ye:this.g.ye,gh:this.g.gh,Rd:this.g.Rd,Tj:this.ba?"redesign2014q4":""};this.o=AF(this.g.V,a);this.g.la||this.A.S(this.o,"touchmove",this.WC);this.da=Ie("videoAdUiProgress",this.o);this.Oa=Ie("videoAdUiBuffer",this.o);this.J=Ie("videoAdUiAttributionContainer",this.o);this.va=Ie("videoAdUiAttributionIconContainer",this.o);this.Aa=Ie("videoAdUiAttribution",this.o);this.g.A&&(g.O(b,"videoAdUiInstreamBadgeExperiment"),this.fb=Ie("videoAdUiAttributionBadge",this.J),c=dG({Xi:"",Qh:0,Yi:0}),g.ff(this.fb,
La(c)));this.Xa=Ie("videoAdUiVisitAdvertiserLink",this.o);this.H=Ie("videoAdUiVisitAdvertiserLinkText",this.o);this.Z=Ie("videoAdUiVisitAdvertiserIcon",this.o);this.pa=Ie("videoAdUiBottomBarMessage",this.o);this.O=Ie("videoAdUiAuthorIcon",this.o);this.D=Ie("videoAdUiAuthorName",this.o);this.P=Ie("videoAdUiLearnMore",this.o);this.na=Ie("videoAdUiLearnMoreText",this.o);this.ba?(this.L=Ie("videoAdUiTopButtonShare",this.o),this.Na=Ie("videoAdUiTopButtonShareTooltip",this.o),this.Ja=Ie("videoAdUiTopButtonInfo",
this.o),this.ab=Ie("videoAdUiTopButtonWatchLater",this.o)):this.L=Ie("videoAdUiShare",this.o);this.F=Ie("videoAdUiTitle",this.o);this.ca=Ie("videoAdUiTopBar",this.o);c=this.fa=Ie("videoAdUiBottomBar",this.o);var d=this.qb;X.g()&&null!=c&&null!=d&&null!=sA(d,5)&&(d=sA(d,5)||"",d=ema[d],null!=d&&!D(d)&&g.O(c,d));null!=this.O&&this.A.S(this.O,"click",this.IA);null!=this.D&&(c=new aF,this.V.push(c),this.A.S(c,"click",this.JA),c.wb(this.D));null!=this.P&&(c=new aF,c.C=!0,this.V.push(c),this.A.S(c,"click",
this.Ct),c.wb(this.P));null!=this.na&&(c=new aF,c.C=!0,this.V.push(c),this.A.S(c,"click",this.Ct),c.wb(this.na));null!=this.L&&this.A.S(this.L,"click",this.FI);null!=this.F&&(c=new aF,this.V.push(c),this.A.S(c,"click",this.OI),c.wb(this.F));null==this.ca||!X.g()&&Nz()||this.A.S(this.o,"mouseover",this.CI);null!=this.H&&this.A.S(this.H,"click",this.sl);null!=this.Z&&this.A.S(this.Z,"click",this.sl);null!=this.J&&null!=this.g.H&&NO(this.g.H)&&(g.O(this.J,"videoAdUiWtaClickable"),this.A.S(this.J,"click",
this.TH),this.A.S(this,"why_this_ad_got_it",this.$I));null!=this.g.skipOffset?(this.B=new aP(this.g,this.o),this.B.Pf(this),this.B.fa=a.Tj):this.g.P&&(this.G=new XO(this.g,this.o),g.M(this,this.G),this.G.Pf(this));this.g.N&&(this.ga=new JO(this.g,this.o),g.M(this,this.ga),this.ga.Pf(this));a=this.g.g;X.g()&&null!=a&&null!=sA(a,1)&&null!=sA(BA(a),3)&&sA(uA(BA(a),EA,3),1)&&(this.la=new SO(this.g,this.o,this.Ia/1E3));this.g.fa&&(this.N=new WO,this.N.Pf(this),this.fa.insertBefore(this.N.o,this.J));400>=
((0,window.parseInt)(Vi(b,"width"),10)||b.width)&&g.O(this.o,"videoAdUi-mobile");this.g.G&&(g.O(this.o,"blazer"),window.settings&&window.settings.isTablet?g.O(this.o,"tablet"):g.O(this.o,"phone"));a=nf(b,"html5-video-player");null!=a&&(this.ba&&g.O(a,"videoAdUiRedesign"),g.Rd(a,"ytp-video-ad-learn-more-ui",this.g.B));R(this.o,!1);b.appendChild(this.o);this.g.B||this.ba||!this.g.ca||(this.C=g.P("DIV",{style:"width:100%;height:100%;pointer-events:auto;"}),this.o.appendChild(this.C));dP(this)};
fma=function(a){null!=a.C&&R(a.C,!1)};
fP=function(a,b,c){if(null!=a.la){var d=a.la;a=null!=a.g.skipOffset;if(!d.L){var e={action:"condor-brand-interaction"};null!=b&&(e.trigger="skip"==b?"s":"complete"==b?"c":"abandon"==b?"a":"u");e.skip=a?"t":"f";e.rt=c;e.numclk=d.J;g.J(d.B)&&(d.B.push("n"),d.C.push("0"),d.D.push("0"));e.opt=d.B.join(",");e.clk_time_ms=d.C.join(",");e.rel_clk_time_sec=d.D.join(",");e.shown=d.O;null!=d.A&&sA(d.A,4)&&(e.icon="smfr");e.ei="[EID]";e.cpn="[CPN]";e.content_v="[CONTENT_V]";e.ad_cpn="[AD_CPN]";e.ad_v="[AD_V]";
e.ad_id="[AD_ID]";e.ad_len="[AD_LEN]";b=fF(e);b=yp(b,d.P.J);zz(b);d.L=!0}}};
gP=function(a){a.B&&(a.B.dispose(),a.B=null)};
hP=function(a,b){a.ra=b;(0,g.H)(b,function(a){a.B=this.o;a.B.appendChild(a.g);PM(a);R(a.g,!1);var b=a.Pc();if(null!=b){var c=new aF;c.C=!0;this.V.push(c);this.A.S(c,"click",(0,g.z)(this.EC,this,a));c.wb(b)}},a)};
iP=function(a){null!=a.H&&(R(a.H,!0),g.ff(a.H,a.g.visitAdvertiserText));null!=a.Z&&R(a.Z,!0)};
jP=function(a,b){if(null!=a.o){var c=nf(cf(a.o),"html5-video-player");null!=c&&(g.Rd(c,"ytp-ad-end-cap",b),g.Rd(c,"ytp-ad-display-override",b))}};
dP=function(a){var b=a.g.L&&(a.Ia>a.g.va||0==a.Ia),c=b&&a.g.pa,d=b&&a.g.ra,e=b&&a.g.D,f=b&&a.g.Ta,b=b&&a.g.O,k=a.g.ga&&a.g.o,l="0px",m;m=a.qb;m=X.g()&&null!=m&&sA(m,1)?!1:!0;var n;n=a.g;var q=a.ib;if(X.g()&&null!=q&&null!=sA(q,1)&&sA(q,2)){var t=sA(q,1)||"";Fa(t,"[VC_RAW]")?(q=sA(q,3),n=0<n.F&&null!=q&&0<q&&n.F>=q):n=!0}else n=!1;null!=a.F&&(R(a.F,b),null!=a.O&&R(a.O,c),null!=a.D&&R(a.D,d),null!=a.P&&R(a.P,e),null!=a.L&&(R(a.L,f),f&&a.dispatchEvent("videoShareShown")),null!=a.Ja&&R(a.Ja,!1),null!=
a.ab&&R(a.ab,!1),null!=a.ca&&R(a.ca,b||c||d||e));null!=a.J&&kP(a);null!=a.da&&(R(a.da,k),k&&(l=Vi(a.da,"height")));null!=a.fa&&!X.g()&&g.Si(a.fa,"bottom",l);null!=a.na&&R(a.na,X.g()&&a.g.B&&!e);null!=a.va&&R(a.va,a.g.ba);null!=a.Xa&&R(a.Xa,m);if(null!=a.pa&&n){a:if(c=a.g,d=a.ib,X.g()&&null!=d&&null!=sA(d,1)){d=sA(d,1)||"";if(Fa(d,"[VC_RAW]")){c=(new zO(1)).format(c.F);if(D(c)){c="";break a}e=new RegExp(Ha("[VC_RAW]"),"g");d=d.replace(e,c.replace(/\$/g,"$$$$"))}c=d}else c="";g.ff(a.pa,c);R(a.pa,!0)}};
gma=function(a,b,c,d,e){var f;f=a.g.A?"":dG({Xi:"",Qh:0,Yi:0});a.g.o&&a.g.da&&(b=PE(c-b),b=a.g.A?b:a.g.G?" \u2022 "+b:a.ba?" \u00b7 "+b:": ("+b+")",f=a.g.A?b:dG({Xi:b,Qh:d,Yi:e}));g.ff(a.Aa,f);kP(a)};
kP=function(a){R(a.J,a.g.C&&(!a.g.o||a.Ua))};
hma=function(a,b){null!=a.ga&&a.ga.show(b)};
mP=function(a,b,c,d,e){tO.call(this,b.g);this.G=b;this.F=c;this.H=this.G.g;this.g=a;this.B=this.D=null;g.O(this.g,kN(this.F));a=this.g;b=new QO;b.skipOffset=new BJ(this.G.B,!1);this.B=new aP(b,a);d&&d.text&&(d=AF(Wla,d),this.g.appendChild(d));e?(e=this.g,d=sO({qf:lP(this.H)}),a=AF(Xla,{KA:d}),g.ff(a,d),e.appendChild(a),e=a):e=null;this.D=e};
jma=function(a){var b=Ie("videoAdUiSkipButton",a.g);return b?g.fj(b,a.g):new xe(0,0)};
lP=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
nP=function(){g.L.call(this);this.B="";this.ka=null;this.A=new KH;this.o=new If;this.D=[];this.H=!1;this.g={};this.G={};this.C=-1;this.F=[]};
oP=function(a,b,c){c=c||SH(a.A,b.type);if(X.o){var d=XE(UE(),b.type,a.B);a.J(b.type,c,d)}else Eka(uL(),b.type,a.B,(0,g.z)(a.J,a,b.type,c))};
kma=function(a,b){null!=b&&(0,g.H)(b,function(a){g.ab(this.F,a)||this.F.push(a)},a)};
pP=function(a,b,c){null!=c.viewability&&II(a.g,c.viewability);var d;X.o||(d=uL().H||void 0);var e=[];(0,g.H)(b,function(a){var b=this.g;JI(b,a,"MOAT_INIT",c.moatInit);JI(b,a,"MOAT_VIEWABILITY",c.moatViewability);JI(b,a,"IAS_VIEWABILITY",c.integralAdsViewability);JI(b,a,"DV_VIEWABILITY",c.doubleVerifyViewability);JI(b,a,"GOOGLE_VIEWABILITY",c.googleViewability);e.push(Bz(a,this.g,c,d))},a);
II(a.g,"na");return e};
qP=function(a,b,c){(0,g.H)(b,function(a){zz(a,void 0,void 0,c)},a)};
lma=function(a,b){switch(b){case "abandon":return!Kf(a.o,b)&&!Kf(a.o,"skip")&&!Kf(a.o,"instreamAdComplete")&&(Kf(a.o,"impression")||a.H);case "instreamAdComplete":case "complete":return!Kf(a.o,b)&&!Kf(a.o,"skip");case "progress":case "click":case "mute":case "unmute":case "rewind":case "fullscreen":case "exitfullscreen":case "expand":case "collapse":return!0;default:return!Kf(a.o,b)}};
rP=function(a,b){N.call(this);this.g=a;this.Hd=new Go(this);g.M(this,this.Hd);this.Hd.S(b,["companion_impression","companion_click"],this.o)};
sP=function(a){N.call(this);this.ads=a;this.zc=null;this.Hd=new Go(this);g.M(this,this.Hd);this.Cc="normal";this.Ma=this.volume=null;this.Pa=new MA;this.Me=!1;this.content={};this.Fb=new nP;this.Ha=null;this.Qj=!1;uL();this.To=(0,g.z)(this.AB,this);this.Kg=null;var b=0;(0,g.H)(a,function(a){b+=a.getDuration()});
(0,g.H)(a,function(b,d){var c=b.B;c.Ve=a.length;var f=d+1;c.g=f;c.B=f})};
tP=function(a,b){if(a.zc=b)a.Fb.B=b.H;if(X.o){var c=UE();YE(c,a.To);b&&c.o.set(b.H,a.To)}};
uP=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:uP(a,b.o)};
mma=function(a){return ph(a.ads,function(a){return ph(this.yf(a),function(a){return!D(E(dF(a.o)))})},a)};
vP=function(a){a=a.g;return null!=a&&a instanceof aI};
oma=function(a){if(null==a.bitrate||0>=a.bitrate)a.bitrate=-1;null==a.mimeTypes&&(a.mimeTypes=[]);nma(a.mimeTypes);if(!g.qa(a.ce)||0>=a.ce)a.ce=LA();return a};
wP=function(a,b){oP(a.Fb,new ac(b));a.ia(b)};
yP=function(a){if(!a.Qj)throw Hz(xP,null,"Ads manager is not correctly configured.");};
zP=function(a,b){for(var c=b;null!=c;)(0,g.H)(c.G.$a(),a.gI,a),c=c.o};
nma=function(a){if(!na(a))throw Hz(xP,null,"adsRenderingSettings.mimeTypes should be an array");var b=ib(g.Lb(AP),g.Lb(rI));(0,g.H)(a,function(a){if(!g.ab(b,a))throw Hz(xP,null,"Invalid or unsuppoted mime type "+a);})};
BP=function(a){var b=a.ha();if(null!=b&&(b=b.g,b instanceof aI&&(b=b.ra,null!=b&&!g.J(b)))){var c=window.document.body,d=HI(a.ha()),d=RO(!1,null,null,!1,a.Pa,d);d.L=!1;d.C=!1;d.o=!1;a.Ha=new eP(d,c,1E3*a.getDuration());hP(a.Ha,b);a.Ha.show();a.Qa().S(a.Ha,"videoIconClicked",a.rF)}};
CP=function(a,b,c){null!=a.Ha&&0<=c&&0<=b&&a.Ha.update(b,0,c,0,0)};
DP=function(a){sP.call(this,a);this.A=null;this.L=g.P("DIV",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.C=!1;this.G=[]};
EP=function(a,b){var c=zja(b);(0,g.H)(c,function(a){PH(this.Fb.A,"click",a)},a)};
FP=function(a,b){var c=GI(b,a.ha()),d=dK(a.ha());Dz(d,c)};
GP=function(a){DP.call(this,a);this.D=!1;this.o=this.B=null;this.H=!1};
HP=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.C,b=b.D;a={text:null!=c?c:a.J.C,url:null!=b?b:a.J.D};null==a.text&&(c=wa("Ads by Google"),c=GF(""+c),a.text=c);return a};
IP=function(a){return a.jb()&&NK(a.ha())};
pma=function(a){var b=JP(a);b.rba=a.C;nA(kA.getInstance(),37,b)};
JP=function(a){var b=[],c=[];(0,g.H)(a.B,function(a){b.push(a.yb()+"x"+a.getHeight());c.push(a.Qc())},a);
var d={};d.pid=nL.getInstance().o;d.fsmode=null!=a.o;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.Cc;return d};
KP=function(a,b){if(a.o){a.lk(new ac("close"));var c={};c.pid=nL.getInstance().o;c.evt=b;nA(kA.getInstance(),35,c)}};
LP=function(a,b){ac.call(this,"vpaidEventType");this.g=a;this.data=b};
MP=function(a,b){this.g=a;this.Te=b};
qma=function(a,b){function c(a,b){for(var c in a)for(var d=c.toLowerCase(),e=0;e<NP.length;e++){var m=NP[e];if(d==m)throw Error('Cannot override "'+m+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")};
OP=function(a,b){Fr.call(this,b);this.J=a;this.A=new Go(this);this.o=new If};
PP=function(a){return a.oa()?a.oa().firstChild:null};
QP=function(a){sP.call(this,a);this.C=this.g=this.ka=null;this.A=!0;this.V=this.L=this.F=!1;this.P=Pa();this.H=this.O=0;this.G=-1;this.o=null;this.D=0;this.B=1;this.J=-1;this.N=!1};
RP=function(a){var b=a.Lc("getAdLinear");return g.pa(b)?b:a.A};
SP=function(a){if(!a.A){var b;b=a.Lc("getAdRemainingTime");b=g.qa(b)?b:-2;if(!g.qa(b)||0>b)b=30;Hd(a.J);a.J=Gd(a.stop,1E3*b,a)}};
TP=function(a,b,c,d){d=Hz(b,c,d);var e=GI(d,a.ha()),f=dK(a.ha());Dz(f,e);b.message=d.$c();Kz(a,b,c)};
UP=function(a){a.N||(a.N=!0,wP(a,"complete"))};
VP=function(a){N.call(this);this.ka=null;this.D=a;this.o=null;this.B=-1;this.C=!1;this.A=Pa()};
WP=function(a){sP.call(this,a);this.g=this.ka=null;this.N={};this.A=!0;this.L=this.J=this.F=!1;this.D=this.O=0;this.o=null;this.C=0;this.B=1;this.H=-1;this.P=!1;this.G=2==X.D};
XP=function(a){var b=a.Gc("getAdLinear");return g.pa(b)?b:a.A};
YP=function(a){if(!a.A){var b;b=a.Gc("getAdRemainingTime");b=g.qa(b)?b:-2;if(!g.qa(b)||0>b)b=30;Hd(a.H);a.H=Gd(a.stop,1E3*b,a)}};
ZP=function(a){a.P||(a.P=!0,wP(a,"complete"))};
aQ=function(a,b){var c=Hz($P,b,void 0),d=GI(c,a.ha()),e=dK(a.ha());Dz(e,d);$P.message=c.$c();Kz(a,$P,b)};
bQ=function(a){dz.call(this,"adMetadata",a)};
rma=function(a,b,c,d){var e=new gg("https://www.googleapis.com/youtube/v3/videos");g.pg(e,"id",a);g.pg(e,"part","snippet,status,statistics");g.pg(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus,items/statistics/viewCount");null!=d&&(b=(0,g.z)(b,d),c=(0,g.z)(c,d));cQ(new HG,e,b,c)};
sma=function(a,b,c,d){var e=new gg("https://www.googleapis.com/youtube/v3/channels");g.pg(e,"id",a);g.pg(e,"part","snippet,statistics,brandingSettings");g.pg(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount,items/brandingSettings/image/bannerImageUrl");null!=d&&(b=(0,g.z)(b,d),c=(0,g.z)(c,d));cQ(new HG,e,b,c)};
cQ=function(a,b,c,d){g.pg(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");IG(a,2E3);var e=new Go(a);Lo(e,a,"success",function(a){a=a.target;var b;b=a.g?g.pf(a.g.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Lo(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(BG(a.o)));d(b);e.dispose();a.dispose()});
a.send(b)};
tma=function(a,b){this.o=a;this.g=b};
dQ=function(a){this.J=a;this.g=[];this.o=new Ed(500);g.M(this,this.o);this.C=new Go(this);Ho(this.C,this.o,"tick",this.D,!1,this);g.M(this,this.C);this.B=1;this.H=!1;this.F=this.A=0;this.G=X.V};
eQ=function(a){if(!a.o.enabled){a.D();a.o.start();var b=(0,g.G)();a.F=b;0===a.A&&(a.A=b)}};
fQ=function(a){var b=0,c=0,d=0;2<a.g.length&&(b=a.g[a.g.length-1].g-a.g[0].g,c=a.g[a.g.length-1].o-a.g[0].o);0<a.g.length&&(d=a.g[a.g.length-1].o);var e=-1,f=(0,g.G)()-a.A;a.A===a.F&&0<e&&(e=d/f);nA(kA.getInstance(),47,{t:a.H,lpp:a.B,wl:a.g.length,se:b,me:c,n:!1,am:!1,mt:d,opp:e,ose:f,mwl:a.G},!0)};
gQ=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.statistics;b&&null!=b.viewCount&&(b=Ta(b.viewCount),this.g=(0,window.isNaN)(b)?-1:b);if(b=a.snippet)this.channelId=b.channelId,this.title=b.title;if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}};
jQ=function(a,b,c,d,e){tO.call(this,d);this.H=a;this.P=b;this.N=e;this.B=new Go(this);g.M(this,this.B);this.D=new aF;g.M(this,this.D);this.L=new aF;g.M(this,this.L);this.G=new aF;g.M(this,this.G);(a=hQ(c))?(c=a(c),b.appendChild(c),b=Ie("iv-endcap-action",c),this.B.S(this.D,"click",this.F),this.D.wb(b),b=Ie("iv-endcap-text",c),this.B.S(this.L,"click",this.F),this.L.wb(b),b=Ie("iv-endcap-image",c),this.B.S(this.G,"click",this.F),this.G.wb(b),b=c):b=null;this.g=b?Ie("iv-endcap-countdown-inner",b):null;
null!=this.g&&g.Si(this.g,"stroke-dasharray","0 "+iQ)};
hQ=function(a){switch(a.Pb()){case 1:return uma;case 4:return vma}return null};
uma=function(a){var b=MJ(a);a=0<a.bp()?a.Uf(0):null;return AF(bJ,{headline:b.Zc(),description:kI(b,"description"),image:OJ(b).getImageUrl(),action:a?kI(a,"title"):"",target:a?QJ(a)||kI(a,"link_url"):""})};
vma=function(a){var b=a.He();a=0<a.bp()?a.Uf(0):null;return AF(bJ,{headline:b.Zc(),description:kI(b,"description"),image:b.De().getImageUrl(),action:a?kI(a,"title"):"",target:a?QJ(a)||kI(a,"link_url"):""})};
wma=function(){var a=wa("Your video will play after this ad.");return GF(""+('<div class="videoAdInterstitial"><p>'+a+"</p></div>"))};
kQ=function(){g.L.call(this);this.A=AF(wma);this.g=0};
lQ=function(a){a.g&&(Hd(a.g),a.o(g.v))};
mQ=function(a){ac.call(this,a)};
nQ=function(a){N.call(this);this.ka=null;this.B=a;this.O=new If;this.J=-1;this.G=this.N=!1;this.F=""};
oQ=function(a){this.paused=!1;this.mute=a.Zg();this.volume=a.getVolume()};
pQ=function(a,b,c,d){if(!c||null==a.O.get(b)){d&&!a.G&&(b="error");a.O.set(b,!0);a:{c=b;if(a.A&&a.A.g.D){if("click"==c)break a;"videoLearnMoreClicked"==c&&oP(a.B,new ac("click"))}d=xma[c]||null;null!=d&&null!=a.g&&a.g.vo(d);oP(a.B,new ac(c))}a.dispatchEvent(b)}};
qQ=function(a){0>a.J||a.N||!a.g.Xh(a.J)&&!a.g.Ff()||!a.G||(a.N=!0,pQ(a,"engagedview",!0,!0),a.dispatchEvent(new mQ("viewCount")))};
rQ=function(a){qQ(a);if(X.g()){var b=a.B;if(!(Kf(b.o,"skip")||0>b.C)){for(var c=NH(b.A,"progress"),d=[],e=b.C;e<c.length;e++){var f=c[e];b.C=e+1;d.push(f.g)}0<d.length&&oP(b,new ac("progress"),d)}}pQ(a,"complete",!0,!0)};
sQ=function(a){sP.call(this,a);this.g=null;this.F=!1;this.B=new nQ(this.Fb);this.ka=null;this.O=this.Z=this.G=!1;this.V=this.D=1;this.A=null;this.N=new kQ;this.H=new Jm;this.ca=!1;this.J=[];this.L=!1;this.o=this.C=null;this.ba=!Nz()&&X.g();this.P=Math.random()>(oz().g.o("website_actions_throttle_percentage")||1);if(a=0<a.length?a[0]:null){var b=nL.getInstance();mL(b,"gqid",oK(a));mL(b,"qqid",KI(a))}};
tQ=function(a,b){var c=Gd(function(){this.H.remove(c);b.call(this)},0,a);
Lm(a.H,c)};
uQ=function(a){a.C&&(g.Cb(a.C),a.C=null);g.Cb(a.Ha);a.Ha=null;g.Cb(a.B);g.Cb(a.Fb);a.O=!1};
vQ=function(a){a.Ri();null!=a.o&&fQ(a.o);a.jb()?a.start():a.stop()};
zma=function(a){if(!a.jb())return!1;var b=a.Ma.Fe();if(null==b)return!1;var c=a.ha(),d;if(d=c.J?c.J.g.yi()?c.J.g.Ln():c.J.Yc():"")yma(a,b,d);else if(JK(c)&&(d=c.O,d=g.J(d)?null:d[0],null!=d&&ra(hQ(d)))){var e=1==d.Pb()&&!pz().g("ad_video_end_disable_auto_open_drawer");a.g=new jQ(a.za,b,d,RK(c),e);a.Qa().S(a.g,"click",(0,g.z)(a.Pr,a,null));a.Ha&&jP(a.Ha,!0);a.Ma.Uc()}null!=a.g&&(a.Qa().S(a.g,"timeUpdate",a.Ju),a.Qa().S(a.g,"end",a.iB),a.g.start(),wP(a,"video_card_endcap_impression"));return null!=
a.g};
yma=function(a,b,c){nA(kA.getInstance(),34,{evt:"start"},!0);var d=g.P("DIV");g.O(d,"controls");var e=g.P("DIV");g.O(e,"adDisplay");g.O(e,"endslate");e.innerHTML=c;(c=$e(e)[0])&&g.Si(c,{margin:"0 auto"});(0,g.H)(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&this.Qa().S(a,"click",(0,g.z)(this.Pr,this,b))},a);
d.appendChild(e);e=new JL;Kka(e,RK(a.ha()));e.B=0;e.A=0;a.g=new mP(d,e,1,{},!0);a.Qa().S(a.g,"skip",a.Qr);b.appendChild(a.g.g);a.Ma.Uc();a.Ha&&(fma(a.Ha),gP(a.Ha))};
xQ=function(a,b){wQ(a);null!=a.za&&a.za.Cn();a.ia("complete");wP(a,b);a.Ba("instreamAdComplete");vQ(a)};
wQ=function(a){a.g&&(a.g.dispose(),a.g=null);a.Ha&&jP(a.Ha,!1);a.F=!1};
AQ=function(a,b,c){yQ(a)&&c?zQ(a,b).then(a.Uq,null,a):(a.Uq(),c&&zQ(a,b))};
Ama=function(a){null!=a.za&&a.za.Bn();var b=oz().g,b=b.g("use_forced_brand_precap_duration")?b.o("forced_brand_precap_duration_ms"):2E3;hma(a.Ha,b);var c=Gd(function(){null!=this.za&&this.za.Cn();this.H.remove(c);this.N.show(this.Ma.oi(),(0,g.z)(this.za.play,this.za))},b,a);
Lm(a.H,c)};
BQ=function(a,b,c,d){b=NH(b.g,c);g.J(b)||(a[d]=b[0].g)};
CQ=function(a,b,c){b=c.getExtension(b);null!=b&&(BQ(a,b,"annotation_click","cta_annotation_clicked"),BQ(a,b,"annotation_close","cta_annotation_closed"),BQ(a,b,"annotation_start","cta_annotation_shown"))};
Bma=function(a,b){var c=HK(b)&&!b.ca?jK(b):null,d=b.isSkippable()&&!ZJ(b),e=null!=a.Ha&&a.Ha.g.B,f=b.A,k=gF(a.Bf());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var m=oz().g,l=m.g("use_variable_load_timeout")?m.o("variable_load_timeout_ms"):a.Pa.ce,n=LI(b),q;a.Ha?(q={},CQ(q,"AdSense",b),CQ(q,"dart",b),CQ(q,"DFP",b)):q=null;var f=f?f.il:!1,t=KI(b),w=a.Pa.lh,m=m.g("legacy_autoplay_flag"),x;x=hK(a.ha(),"endscreenClick");x=g.J(x)?null:g.tf({endscreenClick:x});return new oG(n,c,0,q,
e,d,l,f,!1,t,w,k,m,x,yQ(a))};
Cma=function(a){var b=0,c=0;(0,g.H)(a.ads,function(a){!vP(a)||X.g()&&0!=c||(c++,b+=a.getDuration())},a);
var d=1;(0,g.H)(a.ads,function(a){var b=a.B;b.Ve=c;vP(a)&&(b.g=d,b.B=d,d++)},a)};
DQ=function(a){var b=a.o;return b&&b.ba&&(b=b.F,!g.J(b)&&b[0]instanceof aI)?b[0].Le():AK(a)};
FQ=function(a,b){if(!vP(b))throw Hz(EQ);var c=b.g,d=E(c.Bf());if(!D(d))return c.Of(d),new $H("","","",0,0,0,0,0,d,"");var e=a.yf(b),d=a.za.bv(e,a.Pa.bitrate,a.Pa.mimeTypes||[],null!=b&&!0&&(X.g()||a.Ma.sk()||a.Ma.un()||Nz()));Dma(e,a.Pa.bitrate,d,cK(b));if(null!=d)return e=d.o,null!=e&&c.Of(e),c.N=d;try{Ema(a,b)}catch(f){}throw Hz(Fma);};
Ema=function(a,b){if(kA.getInstance().g){var c=new Jm,d=!1;(0,g.H)(a.yf(b),function(a){Lm(c,a.g);"VPAID"==a.A&&(d=!0)},a);
var e=a.za.$m(),e={aid:jK(b),mt:c.$a().join(","),smt:e.join(","),hvp:d,st:pK(b).join(",")};nA(kA.getInstance(),28,e)}};
Dma=function(a,b,c,d){if(!X.g())try{var e=(0,g.S)(a,function(a){return a.Ne}),f=(0,g.S)(a,function(a){return a.g});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Ne;a.selmt=null===c?"":c.g;a.ic=!1;a.nat=!1;a.iyh=uz(c.o)?"1":"0";a.as=d;nA(kA.getInstance(),22,a)}catch(k){}};
GQ=function(a){if(null!=a.A){var b=nL.getInstance();mL(b,"br",a.A.Gf);mL(b,"mt",a.A.g);mL(b,"iyh",uz(a.A.o)?"1":"0");mL(b,"smb",a.Pa.bitrate);if(a.za){var c=a.za.Ke();c&&mL(b,"ps",c.width+"x"+c.height)}var c=a.A.yb(),d=a.A.getHeight();null!=c&&null!=d&&mL(b,"vs",c+"x"+d);a=a.A.F;D(E(a))||mL(b,"vc",a)}};
HQ=function(a,b){b in a.J||(a.J.push(b),a.ia(b))};
Gma=function(a){var b=a.ha(),c={};c.pubbr=a.Pa.bitrate;c.ic=!1;c.nat=!1;if(null!=b){a=a.yf(b);var d=b.g,d=d?d.N:null,e=(0,g.S)(a,function(a){return a.Ne});
a=(0,g.S)(a,function(a){return a.g});
c.brs=e.join(",");c.mts=a.join(",");c.as=cK(b);null===d?(c.selbr=-1,c.selmt="",c.iyh="0",c.murl=""):(c.selbr=d.Ne,c.selmt=d.g,c.iyh=uz(d.o)?"1":"0",c.murl=d.o)}nA(kA.getInstance(),45,c)};
JQ=function(a,b,c){IQ(a,c);a.Ri();a.jb()?(Jz(a,b,c),a.start()):(Kz(a,b,c),a.stop())};
IQ=function(a,b){var c=Hz(KQ,b),c=GI(c,a.ha(),a.za),d=dK(a.ha());Dz(d,c)};
LQ=function(a){if(X.o){var b=DQ(a.ha());null!=b&&yz(b)}a.ia("click")};
MQ=function(a,b){if(Kb(Hma,b)){var c=a.Qa();Ho(c,a.B,b,a.Iu,!1,a)}};
NQ=function(a){if(!a.L){var b=a.ha(),c=b.D;if(VK(b)&&!X.g()&&!a.Ma.sk()&&c){var b=a.za.getCurrentTime(),d=a.za.getDuration(),e=new gg("//s.youtube.com/s");g.pg(e,"ns","yt");g.pg(e,"el","adunit");g.pg(e,"docid",c);g.pg(e,"eurl",window.document.URL);g.pg(e,"len",d.toFixed(2));g.pg(e,"tv","1");g.pg(e,"ps","trueview-instream");g.pg(e,"st",b.toFixed(2));g.pg(e,"et",b.toFixed(2));g.pg(e,"rt",b.toFixed(2));zz(e.toString());a.L=!0}}};
Ima=function(a){var b=a.ha().N;if(null!=b){var b=b.videoId,c=a.Pa.Hg;if(D(E(b)))b=null;else{var c=new gg((null!=c?c:"//www.youtube.com/")+"watch"),d=c.g;d.set("v",b);lg(c,d);c.H="action=share";b=c.toString()}null!=b&&(yz(b),a.lv())}};
Jma=function(a){a=OQ(a)||PQ(a);null!=a&&Az(a,"sharebuttondisplayed")};
OQ=function(a){a=a.ha().getExtension("AdSense");return null!=a?new gg(a.B):null};
PQ=function(a){if(a=a.ha().g)if(a=YH(a,"start"),!g.J(a))return new gg(a[0].g);return null};
Kma=function(a){var b=a.ha(),c=b.N;null!=c&&(b=eF(c.videoId,null!=PK(b),a.Pa.Hg),null!==b&&(a.za.pause(),yz(b)))};
QQ=function(a){tQ(a,function(){this.ia("skip");vQ(this)})};
zQ=function(a,b){return g.vd(Lma(a,b).then(a.EI,null,a).then(a.kI,null,a).then(a.DI,null,a).then(a.YA,null,a),g.v)};
Lma=function(a,b){return new g.ld(function(a,d){rma(b,function(b){b=new gQ(b);this.jb()&&this.ha().D==b.videoId?a(b):d()},function(){d()},this)},a)};
RQ=function(a){return a.jb()&&null!=a.ha().N&&a.ha().N.isListed};
SQ=function(a){var b=a.ha().da;if(RQ(a)&&null!=b){var c;c=a.Pa.Hg;b=E(b.channelId);c=D(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(g.za(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.za.pause(),yz(c))}};
yQ=function(a){var b=oz().g;if(b.g("website_actions_holdback"))return!1;var c=a.ha();if(!c||!c.D)return!1;var d=g.Xa(c.C,function(a){return 4==a.Pb()&&!!jI(a.Ge(),"show_in_cta",void 0)});
return X.g()&&VK(c)&&(null!=d||b.g("enable_website_actions_info_cards_cta")&&!a.P)};
Mma=function(a,b,c){var d=a.jb()?a.ha().D:null;a=a.ha();if(!a||!d)return b;var e,f;if(d=g.Xa(a.C,function(a){return 4==a.Pb()&&!!jI(a.Ge(),"show_in_cta",void 0)})){var k=d.He(),d=d.Uf(0);
a=Da(d&&QJ(d)||"");oz().g.g("website_actions_suppress_advertiser_supplied_text")?(d=" ",f=Da(c.authorName)):(d=Da(d&&kI(d,"title")||" "),f=Da(k.Zc()||c.authorName));e=Da(kI(k,"description")||"");c=Da(k.De().getImageUrl()||c.channelIconThumbnailUrl)}else k=a.getExtension("AdSense"),a=Da(AK(a)||""),d=Da(dJ().toString()),e=Da(k&&k.o||""),f=Da(c.authorName),c=Da(c.channelIconThumbnailUrl);c='<card type="TYPE_WEBSITE"><action target="'+a+'" title="'+d+'" type="TYPE_EXTERNAL"/><placement hide_in_drawer="true" show_in_cta="true"/><website_card headline="'+
f+'" description="'+e+'"><icon image_url="'+c+'"/></website_card></card>';a=/(<\s*Extension\s+type\s*=\s*"\s*InfoCards\s*"\s*>)/i;return D(b)?b+'<Extension type="InfoCards">'+c+"</Extension>":b.replace(a,"$1"+c)};
TQ=function(a,b){ac.call(this,"vpaidEvent");this.sessionId=b};
UQ=function(a){sP.call(this,a);this.ba=this.N=this.O=!1;this.H=[];this.F=Pa();this.ka=this.g=null;this.A=!0;this.L=-1;this.J=new Ed(500);this.P=this.G=-1;this.C=1;this.Z=this.V="";this.D=!1;this.o=2==X.D};
WQ=function(a){var b=gK(a.ha());X.g()&&(b=Nma(a,b));var c=E(AK(a.ha())),d=SK(a.ha());a.ha().zb()&&null!=d&&a.ha().g.Of(d);c={desiredBitrate:a.Pa.bitrate,creativeData:b,viewMode:a.Cc,clickThroughUrl:c,adUrl:d,volume:a.C};SK(a.ha()).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.Pa.surveyCreativeData&&(c.creativeData=a.Pa.surveyCreativeData);VQ(a,"initAd",c);(0,g.H)(a.H,function(a){VQ(this,a.type,a.params)},a);
a.O=!0;a.H=[]};
XQ=function(a,b,c){c=c||null;a.O?VQ(a,b,c):a.H.push({type:b,params:c})};
VQ=function(a,b,c){c=c||{};c.session=a.F;c.type=b;a.o?window.parent.postMessage(g.tf(c),"*"):null!=a.B.contentWindow&&a.B.contentWindow.postMessage(g.tf(c),"*")};
Pma=function(a,b){var c={};b=La(b);var d;b.length?d=b.split(/\s+/):d=[];(0,g.H)(d,function(a){c[a]=!0});
g.Eb(Oma,function(a,b){oz().g.g(b)&&(c[a]=!0)},a);
return g.Ob(c).join(" ")};
Nma=function(a,b){var c=g.Do(b),d=a.ha().getExtension("why_this_ad");if(null!=d){var e=d.o;e&&3==e.length&&(0,g.H)(c.firstChild.childNodes,function(a){a.setAttribute("ad_settings_text_prefix",e[0]);a.setAttribute("ad_settings_text_link",e[1]);a.setAttribute("ad_settings_text_suffix",e[2])},a)}return Eo(c)};
YQ=function(a,b,c,d){d=Hz(b,c,d);var e=GI(d,a.ha()),f=dK(a.ha());Dz(f,e);b.message=d.$c();Kz(a,b,c)};
aR=function(a,b){if(g.y(b.type))switch(b.type){case "friendlyReady":WQ(a);break;case "videoCall":switch(b.func){case "load":case "play":a.Ma.jf();a.Z!=b.src&&(a.Z=b.src,a.g.load(b.src,b.mimetype));a.g.play();break;case "pause":a.g.pause()}break;case "returnDuration":a.G=b.duration;break;case "returnRemainingTime":a.L=b.remainingTime;break;case "AdClickThru":a.Ba("click");a.ia("click");break;case "AdDurationChange":a.G=b.duration;a.L=b.remainingTime;a.ha().g.la=a.G;a.ia("durationChange");break;case "AdError":YQ(a,
$P,Error(b.message));a.stop();break;case "AdExpandedChange":a.ia("expandedChanged");break;case "AdImpression":var c=a.ha();g.J(fK(c))||a.Xc(c);a.ia("impression");ZQ(a,51);break;case "AdLinearChange":c=b.isLinear;!a.A&&c?(a.ia("contentPauseRequested"),XQ(a,"becameLinear")):!c&&a.A&&(a.ia("contentResumeRequested"),XQ(a,"becameNonlinear"),XQ(a,"getAdRemainingTime"),XQ(a,"getAdDuration"));a.A=c;var d=a.ha();d.na=!0;d.pa=c;a.ia("linearChanged");break;case "AdLoaded":Hd(a.P);a.N=!0;d=b.companions;c=a.ha();
g.J(fK(c))&&(d=TM(d,c.g.g),g.J(d)||TJ(c,d));$Q(a);wP(a,"loaded");break;case "AdPaused":a.D=!0;wP(a,"pause");break;case "AdPlaying":a.D=!1;wP(a,"resume");break;case "AdRemainingTimeChange":a.L=b.remainingTime;c=a.ha().getDuration();d=c-a.kc();CP(a,d,c);break;case "AdSkipped":wP(a,"skip");a.stop();break;case "AdSkippableStateChange":wP(a,"skippableStateChanged");break;case "AdStarted":ZQ(a,52);a.Ba("impression");a.Ba("creativeview");a.ia("start");break;case "AdStopped":a.Ba("stop");a.stop();break;case "AdUserAcceptInvitation":a.A?
a.Ba("acceptinvitationlinear"):a.Ba("acceptinvitation");break;case "AdUserMinimize":a.Ba("collapse");break;case "AdUserClose":wP(a,"userClose");break;case "AdVideoComplete":wP(a,"complete");break;case "AdVideoFirstQuartile":wP(a,"firstquartile");break;case "AdVideoMidpoint":wP(a,"midpoint");break;case "AdVideoStart":a.Ba("start");break;case "AdVideoThirdQuartile":wP(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.C&&a.ia("volumeChange");0==c&&0!=a.C?(a.Ba("mute"),a.ia("mute")):0==a.C&&
0!=c&&a.Ba("unmute");a.C=c;a.g.setVolume(c);break;case "Ping":zz(b.url)}};
bR=function(a,b){a.o||VQ(a,"wrapperCall",{messageType:b})};
$Q=function(a){a.N&&a.ba&&(XQ(a,"startAd"),a.J.start(),a.A||(XQ(a,"becameNonlinear"),XQ(a,"getAdRemainingTime")),XQ(a,"getAdDuration"))};
ZQ=function(a,b){try{var c={};c.dn=a.V;c["if"]=a.o;c.pid=nL.getInstance().o;var d=mK(a.ha()).join();c.cid=d;nA(kA.getInstance(),b,c,!0)}catch(e){}};
cR=function(){sP.call(this,[]);this.ka=null;this.sd=this.td=-1;this.F=!1};
eR=function(a,b,c,d){if(a.g){var e=a.g,f=a.Qa();Ho(f,e,dR,a.dispatchEvent,!1,a);f=a.Qa();Ho(f,e,"companionBackfill",a.dispatchEvent,!1,a);f=a.Qa();Ho(f,e,"adError",a.Vt,!1,a);f=a.Qa();Ho(f,e,"allAdsCompleted",g.v,!1,a);f=a.Qa();Ho(f,e,"contentPauseRequested",a.cu,!1,a);f=a.Qa();Ho(f,e,"contentResumeRequested",a.fo,!1,a);f=a.Qa();Ho(f,e,"userClose",a.wg,!1,a);f=a.Qa();Ho(f,e,"autoClose",a.vg,!1,a);a.g.nf(a.kd);a.g.wc(b,c,d)}};
fR=function(a){a.g&&(a.g.destroy(),a.g=null);a.Ma&&a.Ma.hf();g.Cb(a.Nc);a.Nc=null};
iR=function(a,b,c){cR.call(this);this.G=String(Math.floor(1E9*Math.random()));gR(this,"constr");this.A=c;this.o=null;this.C=this.D=this.B=!1;this.g&&fR(this);this.g=b;hR(this,b)};
kR=function(a,b,c){gR(a,"falltry");var d=(0,g.z)(function(a){gR(this,"fallsucc");Jz(this,Qma,c);try{var b;var d=jR([a[0]]);if(d)b=d;else throw Error("Ads manager creation failure, failed to determine ad type.");hR(this,b);a=b;try{this.g&&fR(this),this.g=a,eR(this,this.Ma,this.content,this.Pa),this.F&&this.g.bh(),this.g.Bb(this.td,this.sd,this.Cc),this.g.init(this.Cc),this.start()}catch(m){var e=a.xb();sK(e);kR(this,tK(e),Error(m.$c()))}}catch(m){Kz(this,m.$c(),m.zi)}},a);
a=(0,g.z)(function(){gR(this,"fallerr");this.ia("contentResumeRequested");Kz(this,Rma,c);this.destroy()},a);
null!=b?UI(b,d,a):a(null)};
hR=function(a,b){a.o&&a.o.dispose();a.o=new Go(a);g.M(a,a.o);Ho(a.o,b,"start",a.aE,!1,a)};
gR=function(a,b){try{var c={};c.afid=a.G;c.val=b;nA(kA.getInstance(),55,c,!0)}catch(d){}};
lR=function(a){sP.call(this,[]);this.ka=null;this.o=a;this.A=0;this.g=this.o[this.A];this.B=null;this.sd=this.td=-1;this.C=!1;Sma(this)};
mR=function(a,b,c,d){if(a.g){a.B=new Go(a);var e=a.g,f=a.B;Ho(f,e,dR,a.dispatchEvent,!1,a);Ho(f,e,"companionBackfill",a.dispatchEvent,!1,a);Ho(f,e,"adError",a.$D,!1,a);Ho(f,e,"allAdsCompleted",g.v,!1,a);Ho(f,e,"contentPauseRequested",a.If,!1,a);Ho(f,e,"contentResumeRequested",a.Pe,!1,a);Ho(f,e,"userClose",a.wg,!1,a);Ho(f,e,"autoClose",a.vg,!1,a);a.g.wc(b,c,d)}};
Sma=function(a){var b=0,c=a.o.length;(0,g.H)(a.o,function(a){b+=a.Ud().getDuration()},a);
var d=1;(0,g.H)(a.o,function(a){a=a.Ud().B;a.Ve=c;a.g=d;d++},a)};
oR=function(a,b,c){a.A+1>=a.o.length?Kz(a,KQ,c.zi):(Jz(a,KQ,c.zi),nR(a,b))};
nR=function(a,b){if(a.g===b)if(pR(a),a.A++,a.A<a.o.length)try{a.g=a.o[a.A],mR(a,a.Ma,a.content,a.Pa),a.g.Bb(a.td,a.sd,a.Cc),a.g.init(a.Cc),a.start()}catch(c){oR(a,a.g,c)}else a.ia("contentResumeRequested"),a.destroy()};
pR=function(a){a.B&&(a.B.dispose(),a.B=null);a.g&&(a.g.destroy(),a.g=null);a.Ma&&a.Ma.hf()};
qR=function(a,b,c,d,e,f,k){N.call(this);this.o=this.H=0;this.G=a;this.gc=b;this.ga=c;this.C=null;this.Wa=d;this.ca=f;this.V=X.A;this.L=this.F=this.D=this.g=null;this.sd=this.td=-1;this.ba="normal";this.P=null;this.B=e;this.A=[];this.da=this.O=this.fa=this.N=!1;this.Z=k;this.ka=null;Tma(this)};
rR=function(a,b,c,d){a.td=b;a.sd=c;null!=d&&(a.ba=d);null!=a.g&&a.g.Bb(b,c,d)};
Tma=function(a){(0,g.H)(a.G,function(a){Gka(a)})};
sR=function(a){return a.H<a.G.length&&null!=a.G[a.H]};
Uma=function(a,b){var c;if(c=X.g()&&!g.J(b)&&0==a.gc)c=b[0],c=null!=c&&null==SK(c)&&LK(c,"nonlinear");return c?(c=nK(b[0]),"ADSENSE"==(0<c.length?c.pop():cK(b[0])).toUpperCase()):!1};
xR=function(a){!sR(a)||2<=a.A.length-a.o?a.fa||(uR(a),a.Te()&&vR(a,a.o)&&wR(a,a.o),a.fa=!0,a.dispatchEvent("adBreakInitialized")):tR(a)};
tR=function(a){var b=a.G[a.H];Ho(a.J,a.Wa,"adsLoaderSdkAdLoaded",a.Tt,!1,a);X.A="on_master_ad";Rla(a.Wa,b.A,b)};
uR=function(a){null==a.gc||ph(a.A,function(a){return!a.o})||(a.A=(0,g.Od)(a.A,function(a){return!(a.o&&!a.A)}))};
vR=function(a,b){var c;b<a.A.length?(c=a.A[b],g.J(c.g)?c=!1:(c=c.g[0],c=null!=c?!RE(VJ(c),"rm"):!1)):c=!1;return c};
ER=function(a){if(vR(a,a.o)){var b=a.A[a.o];try{a.O?yR(a,a.g):a.Te()?(null===a.F&&wR(a,a.o),zR(a),a.g=a.F,a.D=a.L,a.F=null,a.L=null,a.B.Rs()):(zR(a),a.D=new Go(a),a.g=AR(a,b,a.D),yR(a,a.g));null!=a.C&&(a.C.dispose(),a.C=null);if(BR(a.g)){var c=a.xb();if(null==c||!NK(c)){var d=a.g.ha().g;if(null!==d){var e=d.va;0>=e&&!a.ca.ar||(0>=e&&(e=15),a.C=new Ed(1E3*e),Mo(a.D,a.C,"tick",a.bG,a))}}}if(BR(a.g))a.dispatchEvent("contentResumeRequested"),a.B.Uc(),a.g.start(),null!=a.C&&a.C.start();else{var f=a.g;
if(null!=f&&f instanceof sQ)a.B.jf(),a.g.start();else{var k=a.g;if(null!=k&&k instanceof UQ)a.B.Uc(),a.g.zb()?a.B.jf():a.dispatchEvent("contentResumeRequested"),a.g.start();else{var l=a.g;if(null!=l&&(l instanceof QP||l instanceof WP))a.B.Uc(),a.g.zb()||a.dispatchEvent("contentResumeRequested"),a.g.start();else{var m;if(!(m=CR(a.g))){var n=a.g;m=null!=n&&n instanceof iR}if(m)a.g.start();else throw Error("Unknown ads manager type.");}}}}a.Te()&&vR(a,a.o+1)&&1==DR(a)&&wR(a,a.o+1)}catch(q){a.o++,ER(a)}sR(a)&&
tR(a)}else a.dispatchEvent("contentResumeRequested"),FR(a)};
yR=function(a,b){if(null===b)throw Error("Ads manager must be constructed before initialization");b.init(a.ba);null!=a.P&&b.setVolume(a.P)};
AR=function(a,b,c){b=iO(a.Wa.A,b.g);var d=new MP(a.B,a.Te());b.nf(a.Z);Ho(c,b,dR,a.Ut,!1,a);Ho(c,b,"companionBackfill",a.Ut,!1,a);Ho(c,b,"adError",a.YD,!1,a);Ho(c,b,"allAdsCompleted",g.v,!1,a);Ho(c,b,"contentPauseRequested",a.If,!1,a);Ho(c,b,"contentResumeRequested",a.Pe,!1,a);Ho(c,b,"userClose",a.wg,!1,a);Ho(c,b,"autoClose",a.vg,!1,a);b.wc(d,{currentTime:0},a.ca);b.Bb(a.td,a.sd,a.ba);return b};
zR=function(a){a.B.hf();null!=a.C&&(a.C.dispose(),a.C=null);null!=a.D&&(a.D.dispose(),a.D=null);null!=a.g&&(a.g.destroy(),a.g=null)};
GR=function(a){null!=a.L&&(a.L.dispose(),a.L=null);null!=a.F&&(a.F.destroy(),a.F=null)};
CR=function(a){return null!=a&&a instanceof lR};
BR=function(a){return null!=a&&a instanceof DP};
FR=function(a){a.N=!1;a.dispatchEvent("allAdsCompleted")};
DR=function(a){return null===a.g||g.J(a.g.ads)?0:a.g.ads.length};
Vma=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"companionBackfill"==b||"firstquartile"==b){var d=0,e=0;(0,g.H)(a.A,function(a,b){var c=a.g;d+=c.length;b<this.o&&(e+=c.length)},a);
b=c.B;c=e+b.B;b.Ve=d+(a.G.length-a.H);b.g=c;b.A=a.ga;b.o=a.gc}};
wR=function(a,b){var c=a.A[b];a.L=new Go(a);a.F=AR(a,c,a.L);yR(a,a.F)};
HR=function(a){ac.call(this,a);this.g=this.A=null};
IR=function(a,b,c){N.call(this);this.g=a;this.C=null!=c&&g.pa(c.backlog)?c.backlog:!1;this.D=null!=c&&g.qa(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.B=null;this.o=!1;this.A=Wma(b)};
JR=function(a){this.g=a.gc;this.B=ua(a);this.A=this.o=!1;this.oD=5==a.ff()};
KR=function(a,b){return rb(a.g,b.g)};
LR=function(a){a.g.start();a.o=!0};
Xma=function(a){if(a.o){var b=g.Xa(a.A,function(a){return-1==a.g},a);
null!=b&&MR(a,!0,b)}};
Wma=function(a){var b=[];(0,g.H)(a,g.B(function(a,b){a(new JR(b))},g.B(function(a,b){xb(a,b,KR)},b)));
return b};
Yma=function(a,b){for(var c=[],d=0;d<a.A.length;d++){var e=a.A[d];-1!=e.g&&e.g<=b&&g.cb(c,e)}return c};
NR=function(a,b){return Za(a,g.B(function(a,b){return b.oD==a},b))};
Zma=function(a){var b=[],c=NR(a,!1);c&&b.push(c);(a=NR(a,!0))&&xb(b,a,KR);return b};
$ma=function(a,b){for(var c=0;c<a.A.length;c++){var d=a.A[c];if(-1!=d.g&&b>=d.g-a.D&&b<d.g&&!a.A[c].o)return d}return null};
OR=function(a,b){var c=new HR("contentTrackingError");c.setDescription(b);a.dispatchEvent(c)};
MR=function(a,b,c){null!=c&&(c.o||(PR(a,"requestAds",c),c.o=!0),b&&!c.A&&(PR(a,"playAds",c),c.A=!0))};
PR=function(a,b,c){b=new HR(b);b.A=c.g;b.g=c.B;a.dispatchEvent(b)};
QR=function(a,b){g.L.call(this);this.B=a;this.g=-1;this.A=b};
RR=function(a,b){QR.call(this,a,b)};
hO=function(a,b,c){sP.call(this,[]);this.xe=a;this.ub=new If;this.Wb=this.bb=null;this.Br=c;this.$h=new YN;this.ld=null;this.Wa=b;this.im=this.Rj=!1;this.ug=null;this.Ve=0;this.sd=this.td=-1;this.Oc=null;this.no=0;this.ka=null;this.Zh=!1};
bna=function(a,b){if(null!==a.Ma){var c=1;a.Ve=0;var d=new Jm;(0,g.H)(b,function(a){if((0,window.isNaN)(a))throw Gz(FL,null,"timeOffset",String(a));if(-1!=a&&-1>=a){var b=this.xe;if((0,window.isNaN)(a)||!g.qa(a))throw Error("Incorrect time offset.");Kf(b.g,a)&&b.g.remove(a)}else if(b=g.qa(a)&&!(0,window.isNaN)(a)?this.xe.g.get(a,[]):[],!g.J(b)){this.Ve+=b.length;var e;e=0==a||-1==a?a:c++;b=new qR(b,a,e,this.Wa,this.Ma,this.Pa,this.kd);if(d.contains(a))throw Gz(ana,null,"Multiple ad breaks cannot share same ad play time.");
this.ub.set(ua(b),b);Lm(d,a)}},a)}};
cna=function(a,b){a.ug=g.Va(b);ph(b,function(a){if(-1==a)return this.ug=a,!0;this.ug=this.ug<a?a:this.ug;return!1},a)};
UR=function(a,b){a.Zh=!1;a.Lg(b);0==b.gc?a.Pe():(-1==b.gc?(SR(a)||!X.g()&&a.Rj)&&TR(a):LR(a.Wb),a.ld=null)};
dna=function(a){if(null!=a.Wb){VR(a);var b=a.Qa();Ho(b,a.Wb,["requestAds","playAds","contentTrackingError","discardAdBreak"],a.handleEvent,!1,a);Ho(b,a.Wb,"adBreakReady",a.VD,!1,a);Ho(b,a.Wa,"contentComplete",a.PE,!1,a);a.Wa.g=!1}};
VR=function(a){null!=a.Nc&&(a.Nc.dispose(),a.Nc=null);a.Rj=!1;null!=a.Wb&&a.Wb.Ac()};
WR=function(a){if(null==a.ld){var b=aO(a.$h);if(null!=b){a.ld=b;var c=a.ub.get(a.ld.g);if(null!=c)if(b=b.type,"requestAds"!=b&&"playAds"!=b)a.ld=null,WR(a);else if(null!=a.Oc&&a.Oc.o(c))a.ld=null,WR(a);else if("requestAds"==b)a.Zh?(a.$h.isEmpty()||"playAds"!=bO(a.$h).type||aO(a.$h),UR(a,c)):0==c.gc&&a.Te()||XR(a,c);else{if("playAds"==b)if(a.Zh)UR(a,c);else if(null!=a.bb&&a.bb.gb()&&a.Lg(a.bb),a.bb=c,a.bb.setVolume(a.volume),rR(a.bb,a.td,a.sd,a.Cc),a.bb.O&&a.ld.A<a.no){c=a.bb;if(c.o<c.A.length){b=
c.A[c.o];zR(c);try{c.D=new Go(c),c.g=AR(c,b,c.D)}catch(e){c.o++,ER(c)}}var c=a.Wb,b=a.no,d=new JR(a.bb);d.g=b;d.o=!0;xb(c.A,d,KR);a.ia("contentResumeRequested");a.ld=null;WR(a)}else a.bb.start()}else a.ld=null,WR(a)}}};
XR=function(a,b){var c=a.Qa();Ho(c,b,dR,a.dispatchEvent,!1,a);Ho(c,b,"adError",a.$r,!1,a);Ho(c,b,"allAdsCompleted",a.Ot,!1,a);Ho(c,b,"contentPauseRequested",a.If,!1,a);Ho(c,b,"contentResumeRequested",a.Pe,!1,a);Ho(c,b,"userClose",a.wg,!1,a);Ho(c,b,"autoClose",a.vg,!1,a);Ho(c,b,"adBreakInitialized",a.Pt,!1,a);b.init(a.td,a.sd,a.Cc)};
TR=function(a){if(!a.im){a.im=!0;a.Wa.g=!0;try{nA(kA.getInstance(),44,{cmpl:!0})}catch(b){}a.ia("allAdsCompleted");-1==a.ug&&YR(a)}};
YR=function(a){rz(oz(),420706009)||lA.clear();null!=a.kd&&(a=a.kd.kg(),null!=a&&zH(a,lA.g))};
SR=function(a){return 0==a.ub.$a().length};
ZR=function(a){return null!=a.bb?a.bb:null!=a.ld?a.ub.get(a.ld.g):null};
ena=function(){this.Br=new jja;this.ka=null};
iO=function(a,b){if(g.J(b))throw Error("Ads manager creation failure, no ads.");var c;if(fna(a,b)&&(c=gna(a,b),!g.J(c)))return new lR(c);c=jR(b);rz(oz(),651800003)&&(c=c&&null!=tK(b[0])?new iR(0,c,b[0]):c);if(c)return c;throw Error("Ads manager creation failure, failed to determine ad type.");};
gna=function(a,b){var c=[];(0,g.H)(b,function(a){var b=jR([a]);b&&a.zb()&&g.cb(c,b)},a);
return c};
jR=function(a){var b=a[0];switch($R(b)){case "overlay":return HK(b)?new GP(a):new DP(a);case "video":return new sQ(a);case "vpaid":return new UQ(a);case "flash_vpaid":return 2==X.D?new WP(a):new QP(a)}return null};
fna=function(a,b){if(1==b.length)return!1;var c=$R(b[0]);return ph(b,function(a){a=$R(a);return c!=a||"vpaid"==a||"flash_vpaid"==a?!0:!1},a)};
$R=function(a){var b=YJ(a)&&X.g(),b=0!=X.D||b;return null!=SK(a)&&b?"vpaid":NE&&null!=TK(a)&&0!=X.D?"flash_vpaid":HK(a)&&null==SK(a)&&LK(a,"nonlinear")?"overlay":LK(a,"linear")?"video":LK(a,"nonlinear")&&null==SK(a)?"overlay":null};
aS=function(a){N.call(this);this.o=a;a=new $K(new sH);this.g=new eO(new ena,a,lA);this.g.S("adsManagerLoaded",this.dispatchEvent,!1,this);this.g.S("adError",this.dispatchEvent,!1,this);this.g.S("adLoadError",this.dispatchEvent,!1,this)};
bS=function(a,b,c){vga();var d="",e=qB(),f=e.o,e=e.g;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.Pd=hH(b.g,a.o.D);b.Eo=a.o.O;Qla(a.g,b,c)};
cS=function(a,b){Xk.call(this,a,b)};
dS=function(a){fn.call(this,a)};
eS=function(a,b,c){this.W=a;this.g=b||"";this.A=c||null;this.B=!1};
fS=function(a,b){var c=a.W;if(c.Lb&&("detailpage"==c.g||"leanback"==c.g||"embedded"==c.g&&(c.ca&&c.bc||c.experiments.g("html5_playlist_preload")))&&!a.B){a.B=!0;a.W.experiments.g("html5_skip_default_csi_configs")||(g.Zg("TIMING_ACTION")||Xl("TIMING_ACTION",a.W.csiPageType),a.W.ib&&Xl("CSI_SERVICE_NAME",a.W.ib));if(a.A){var c=a.A.N,d;for(d in c)g.cw(d,c[d],a.g);d=a.A.J;for(var e in d)g.dw(e,d[e],a.g);e=a.A;e.N={};e.J={}}g.dw("yt_pvis",ufa(),a.g);g.dw("yt_pt","html5",a.g);b&&!fw("pbs",a.g)&&a.o("pbs",
b);e=a.W;("detailpage"!=e.g||"blazer"==e.o)&&fw("_start",a.g)&&mw(a.g)}};
gS=function(a){this.g=window.Float32Array?new window.Float32Array(a):Array(a);this.o=a-1};
hS=function(a,b){a.o=(a.o+1)%a.g.length;a.g[a.o]=b};
hna=function(){this.C=new gS(50);this.o=null;this.D=this.B=0;this.g=[];this.A=null};
ina=function(a,b){0!=a.g.length&&(b.D=a.g.length,b.H=we(a.g,function(a,b){return a+b},0),b.G=g.Va(a.g),b.L=Math.min.apply(Math,a.g),b.J=Math.max.apply(Math,a.g),a.g=[])};
jna=function(a,b){if(a.o&&!(b>=a.B&&b<a.D)){var c=a.o.Af(b);a.B=a.o.rf(c);a.D=a.B+a.o.getDuration(c);c=(0,g.G)()/1E3-ft(a.o,c);a.A&&(c-=a.A());hS(a.C,c);a.g.push(c)}};
iS=function(a,b){var c=(0,window.isNaN)(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Xa&&c--;a.g&&(5<=Xu(a.g)||Dt(a)&&!a.isLowLatencyLiveStream)&&c++;b.g("html5_live_4k_more_buffer")&&a.g&&afa(a.g)&&(c+=2);this.g=Math.max(0,c);this.o=[];this.A=0;this.B=a};
jS=function(a){return(a.B.g?Xu(a.B.g)||5:5)*a.g};
kna=function(a,b){this.o=a;this.g=b;this.A=1};
kS=function(a,b,c,d){d/=a.A;var e=zw(a.o)+1/g.Aw(a.o),f;f=Math.max(.9*(d-3),xw(a.o)+8192*e);c=f/e*a.g.Nb/(b+c);c=Math.min(c,d);c=Math.max(a.g.Lb,Math.min(a.g.Ib,c));return Math.min(a.g.H,Math.max(65536,Math.ceil(c*b)))};
lS=function(a,b){if(a.g.Oa)return b;var c=1E-9+xw(a.o)+1048576*zw(a.o),c=b*Math.min(1,1048576/(b*c));if(a.g.va)var d=uw(a.o.A,.98)||0,e=a.g.dc-a.g.Aa,d=(d-a.g.Aa)/e,d=Math.max(0,Math.min(1,d)),c=c*(1-a.g.va*d);a.g.Ja&&(d=uw(a.o.A,.5)||0,e=a.g.tc-a.g.Ia,d=(a.g.Ia-d)/e,d=Math.max(0,Math.min(1,d)),c*=1+a.g.Ja*d);return c};
mS=function(a){return lS(a,g.Aw(a.o))};
nS=function(a){return mS(a)/a.A};
oS=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
lna=function(a,b,c,d){this.Z=a;this.D=b;this.G=c;this.H=d;this.A=this.O=this.g=null;this.F="i";this.N=-1;this.o=this.B=null;this.C=[];this.V={};this.P=this.ca=0;this.da=null;this.L=this.J=!1;this.ba=0};
mna=function(a,b,c){"m"==c&&a.g.isLocked()&&!b.isLocked()&&(c="a");a.J=a.J||!1;if("m"==c&&b.isLocked())return a.F=c,pS(a,b),qS(a),rS(a),a.L|=a.A!=a.o,a.A=a.o,new oS(a.B,a.A,c);var d;d=a.g;d=d.o==b.o&&d.g==b.g&&d.A==b.A;if("m"==a.F&&a.g.isLocked()&&d)return null;"r"!=c||d||(a.N=-1);pS(a,b);rS(a);if("r"==c&&a.o==a.A){if(d)return null;a.A=a.o;return new oS(a.B,a.o,c)}a.F=c;sS(a);return null};
tS=function(a){return!!a.P&&9E4>=(0,g.Ok)()-a.P};
sS=function(a){a.A&&a.o&&uS(a,a.A.info)<uS(a,a.o.info)&&(a.J=a.J||a.o.info.video.width>1.6*a.A.info.video.width||"r"==a.F)};
vS=function(a){var b=a.F;a.F="a";a.N=(0,g.Ok)();a.J=!1;return new oS(a.O,a.A,b)};
pS=function(a,b){a.g=b;var c=a.H.videoInfos;if(!a.g.isLocked()&&(c=(0,g.Od)(c,function(a){return a.g>this.D.F?!1:!this.G.g[a.id].B},a),tS(a))){var c=(0,g.Od)(c,function(a){return a.id!=this.da.id},a),d=(0,g.Od)(c,function(a){a=Bi(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.H.videoInfos);d=(0,g.Od)(c,b.B,b);d.length||(d=[c[0]]);d.sort((0,g.z)(function(a,b){return uS(this,a)-uS(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(g.db(d,c),c--):uS(a,e)*a.D.g>uS(a,f)&&(g.db(d,c-1),c--)}a.C=d;Jea(a.D,d[d.length-1].video.Pk)};
nna=function(a,b){if(b)a.B=a.G.g[b];else{var c=g.Xa(a.H.g,function(a){return!!a.yc&&a.yc.isDefault}),c=c||a.H.g[0];
a.B=a.G.g[c.id]}qS(a)};
qS=function(a){if(!a.B.info.yc&&(a.B=a.G.g[a.H.g[0].id],1<a.H.g.length)){var b;if(a.g.isLocked())b=240>a.g.g;else{for(b=0;b+1<a.C.length&&"tiny"==a.C[b].video.quality;)b++;var c=nS(a.Z)/a.D.g;b=uS(a,a.B.info)+uS(a,a.C[b])>c}b&&(a.B=a.G.g[a.H.g[1].id])}};
rS=function(a){if(a.g.isLocked())a.o=a.G.g[a.C[a.C.length-1].id];else{for(var b=Math.min(a.ca,a.C.length-1),c=nS(a.Z),d=uS(a,a.B.info),e=c/a.D.A-d;0<b&&!(uS(a,a.C[b])<=e);b--);c=c/a.D.g-d;a.D.Fc&&(e=a.Z,d=lS(e,Bw(e.o))/e.A/a.D.g-d,c=Math.min(c,d));for(;b<a.C.length-1&&!(uS(a,a.C[b+1])>=c);b++);a.ca=b;a.o=a.G.g[a.C[b].id];sS(a)}};
ona=function(a){var b=a.D.A,c=nS(a.Z)/b-uS(a,a.B.info),b=Ya(a.C,function(a){return uS(this,a)<c},a);
0>b&&(b=0);a.ca=b;a.o=a.G.g[a.C[b].id]};
uS=function(a,b){if(!a.D.V)return b.g;if(!a.V[b.id]){var c=a.G.g[b.id].index.ls(a.ba,a.D.V),c=b.B&&a.A&&a.A.index.sf()?c||b.B:c||b.g;a.V[b.id]=c}return a.V[b.id]};
pna=function(){this.g=this.o=0;this.A=[]};
wS=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
xS=function(){this.g=this.o=!1};
zS=function(){this.g=new yS(0,0,null);this.A=8;this.C=[];this.o=this.D=window.NaN;this.F=this.B=this.H=0;this.G=window.NaN};
AS=function(a){return{startTime:a.G/a.B,duration:a.F/a.B}};
BS=function(a){a.B&&!(0,window.isNaN)(a.D)&&(a.o=Math.floor(a.D*a.B),a.D=window.NaN)};
CS=function(a){return 0==a.g.type||1836019574==a.g.type||1952867444==a.g.type||1936286840==a.g.type||1953653094==a.g.type||1836019558==a.g.type};
DS=function(a,b,c){for(var d=c;d<b.byteLength;d++)a.C.push(b.getUint8(d));return new window.DataView(b.buffer,b.byteOffset,c)};
yS=function(a,b,c){this.type=a;this.size=b;this.g=c;this.offset=this.version=0};
ES=function(a,b){g.en.call(this);this.C=0;this.B=a;this.g=[];this.A=null;this.H=b;this.F=this.D=window.NaN;this.J=null;this.L=(0,g.z)(function(a){this.B.ca&&(this.$("timestamprewrite",a),this.B.ca=!1)},this);
this.G=this.o=null;this.B.ob&&(this.o=new zS)};
FS=function(a){return a.g.length?a.g[0]:null};
GS=function(a){return a.g.length?a.g[a.g.length-1]:null};
rna=function(a,b){var c=qna(a,b);(0,g.H)(c,function(a){this.g.push(a)},a)};
sna=function(a){return ph(a.g,function(a){return a.info.F})};
tna=function(a,b){if(b){var c=g.Wa(a.g,function(a){return a.info.F});
-1!=c&&(a.g=nb(a.g,0,c+1))}else a.g=[]};
una=function(a){if(!a.g.length)return 0;for(var b=a.g[0].B.length,c=1;c<a.g.length;c++)a.g[c].g!=a.g[c-1].g&&(b+=a.g[c].B.length);a.A&&(b+=a.A.B.length);return b};
vna=function(a){return(0,g.S)(a.g,function(a){return a.info})};
HS=function(a){a.o&&a.o.reset();a.D=window.NaN;a.C=0;a.G=null};
qna=function(a,b){if(!b.verify()||b.info.g.Sn()){var c=Kt(b.info);c.verification="1";a.$("error",c||{})}if(IS(a,b)){c=yu(b);if(c=Ut(c,0,1701671783)){0==c.data.getUint32(c.offset+8)&&c.skip(4);ju(c);ju(c);iu(c);iu(c);iu(c);iu(c);var d=new window.Uint8Array(new window.ArrayBuffer(c.size-c.g)),e=new window.Uint8Array(c.data.buffer,c.offset+c.g,c.size-c.g);d.set(e);c.g=c.size;c=String.fromCharCode.apply(String,new window.Uint8Array(d.buffer));c=(c=St(c))?new Xea(c):null}else c=null;b.o=c;b.o&&(a.G=b.o)}a.G&&
(c=a.G,b.info.A=c.o,b.info.G=c.B);a.B.Db&&IS(a,b)&&lu(yu(b),1701671783);if(a.B.G){if(!a.H.Gd()&&(a.o?((c=!(0,window.isNaN)(a.F))||(c=a.o,c=!(!(0,window.isNaN)(c.o)||!(0,window.isNaN)(c.D))),c&&(c=a.o,c.D=(0,window.isNaN)(a.F)?(0,window.isNaN)(a.D)?b.info.startTime:a.D:a.F,BS(c),a.F=window.NaN),c=yu(b),d=a.o.process(c),d!=c&&(b.g=d.buffer,b.B=Ys(d.byteOffset,d.byteLength),b.range=b.B)):(c=(0,window.isNaN)(a.F)?(0,window.isNaN)(a.D)?b.info.startTime:a.D:a.F,a.F=window.NaN,Au(b,c)?a.D=c+Bu(b):(c=Kt(b.info),
c.smst=1,a.$("error",c||{}))),!b.range.length))return[];if(!a.H.Gd()&&b.info.F&&a.G){c=a.G;if(a.o)e=AS(a.o),d=a.o,d.G=window.NaN,d.F=0,d=e.startTime,e=e.duration;else{for(var d=b.info.g.g,f=e=window.NaN,k=0,l=new window.DataView(b.g);bu(l,k);){var m=cu(l,k);1936286840==m.type?f=hu(m):1836476516==m.type?f=$t(m):1952867444==m.type&&(0,window.isNaN)(e)&&(e=fu(m));k=du(m.type)?k+8:k+m.size}!f&&d&&(f=au(d));d=e/f||b.info.D;e=Bu(b)}a.$("segmentinfo",new ct(c.o,d,e,c.ingestionTime,"sq/"+c.o));if(e=Tt(c))e.qd+=
d,a.$("cuepoint",e,c.o)}if(a.B.da&&!a.H.Gd()&&(0==b.info.o||a.A)&&1==b.info.g.info.o&&3==b.info.type&&!Du(b)&&b.info.duration&&!a.B.ob&&(a.C+=1E3*(Bu(b)-b.info.duration),a.J&&Math.abs(a.C-a.J.C)>=a.B.ga))return c=(a.J.C-a.C)/1E3,d=Bu(b)+c,e=d*Cu(b),(e=JS(a,b,e))&&e.length&&(f=Kt(b.info),f.fds=d.toFixed(3),f.com=a.C.toFixed(3),a.$("timestamprewrite",f),a.D+=c,a.C+=1E3*c),e?e:KS(a,b);if(a.B.fa&&a.H.Gd()&&(0==b.info.o||a.A)&&1==b.info.g.info.o)return c=b.info.g.index.Zj(b.info.A),(c=JS(a,b,c))?c:KS(a,
b)}return[b]};
IS=function(a,b){return!a.H.Gd()&&3==b.info.type&&1==b.info.g.info.o&&0==b.info.o};
KS=function(a,b){if(a.A&&a.A!=b){var c=[a.A,b];a.A=null;return c}return[]};
JS=function(a,b,c){var d;if(a.A){d=a.A;var e=new window.Uint8Array(d.range.length+b.range.length);e.set(new window.Uint8Array(d.g,d.range.start,d.range.length));e.set(new window.Uint8Array(b.g,b.range.start,b.range.length),d.range.length);d=new window.DataView(e.buffer);ku(d)}else d=yu(b),d=(e=ku(d))&&e<d.byteLength?d:null;if(!d)return a.A=b,null;(c=Yt(d,c,a.L))?(d=ku(d),a.A&&(d-=a.A.range.length,a.A=null),a=zu(b,d),a[0].g=c,a[0].range=Ys(0,c.byteLength),a[0].B=Ys(0,c.byteLength)):a=null;return a};
LS=function(a,b){this.L=a;this.A=b;this.C=[];this.o=new ES(a,b);this.B=this.g=null;this.V=0;this.P=b.info.g;this.Z=0;this.O=this.N=!1;this.H=new xS;this.F=null;this.D=0;this.J=b.Mw();this.G=-1};
MS=function(a,b){a.C.push(b);a.g=g.Va(b.info.g)};
PS=function(a){for(;a.C.length&&6==a.C[0].state;){var b=a.C.shift();NS(a,b);b=b.timing;a.V=(b.C-b.A)/1E3}a.C.length&&OS(a.C[0])&&!It(a.C[0].info.g[0])&&NS(a,a.C[0])};
NS=function(a,b){if(OS(b)){b.V=!0;var c=b.A,d=c.A;c.A=[];c.B=g.Va(d).info;(0,g.H)(d,a.ba,a)}};
QS=function(a){return!(!a.o.g.length||1!=FS(a.o).info.g.info.o||0!=FS(a.o).info.o)};
RS=function(a){var b=yu(FS(a.o)),c=ku(b);return(!c||c>b.byteLength)&&1==a.o.g.length};
TS=function(a,b,c){RS(a);var d=FS(a.o);a=SS(a);if(!a)return null;c=c||d.info.g.index.Zj(d.info.A);return(b=Yt(a,c,b))?b:null};
VS=function(a){var b=FS(a.o),c=SS(a);if(c&&(c=ku(c)))if(c>yu(b).byteLength){var d=a.o.g[1];US(a,b.range);US(a,Ys(d.range.start,c-b.range.length))}else US(a,Ys(b.range.start,c))};
SS=function(a){var b=FS(a.o),c=yu(b),d=ku(c);if(!d||d>c.byteLength){d=a.o.g[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.g,b.range.start,b.range.length));a.set(new window.Uint8Array(d.g,d.range.start,d.range.length),b.range.length);d=ku(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c};
US=function(a,b){for(var c=a.o,d=[],e;c.g.length;){if(c.g[0].range.end>b.end){var f=zu(c.g[0],b.end-c.g[0].range.start+1);e=f[0];c.g[0]=f[1]}else e=c.g.shift();d.push(e);if(e.range.end==b.end)break}d.length&&(0,g.H)(d,a.da,a)};
WS=function(a,b){a.L.ac&&b>a.Z&&a.B&&(a.P=a.B.g.info.g)};
ZS=function(a,b){var c=XS(a,b);if(0<=c)return c;a.g=a.A.mi(b).g[0];YS(a)&&(a.B=null);HS(a.o);a.F=null;a.D=0;return a.g.startTime};
$S=function(a,b){a.J=!0;a.G=-1;ZS(a,window.Infinity);a.L.G?a.o.F=b:a.F=b};
wna=function(a,b){var c=a.o.g.length?GS(a.o):a.B;if(b&&c&&!c.F){for(var d=c.A,c=[],e=0;e<a.C.length;e++){var f=a.C[e];ph(f.info.g,function(a){return a.A==d})?c.push(f):aT(a,f)}a.C=c;
a.g=a.C.length?g.Va(g.Va(a.C).info.g):null}else bT(a)};
cT=function(a){var b=0;(0,g.H)(a.C,function(a){var c=b;a=a.A&&a.A.length?xna(a.A):Ot(a.info);b=c+a},a);
return b+=una(a.o)};
dT=function(a,b){var c=!!a.A.info.video&&!!a.B&&!a.B.F,d=1<=b&&c;tna(a.o,d);a.N=d;wna(a,2<=b&&c)};
eT=function(a){a.H.o||a.H.start();dT(a,0);YS(a)&&(a.B=null)};
YS=function(a){return!!a.B&&a.B.G};
fT=function(a){var b=[];a.B&&b.push(a.B);b=ib(b,vna(a.o));(0,g.H)(a.C,function(a){(0,g.H)(a.info.g,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.g&&!Mea(a.g,g.Va(b),a.g.g.Gd())&&b.push(a.g);return b};
gT=function(a){if(!a.g||!a.g.B)return!1;a=fT(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].D-a[b-1].C)))return!1;return!0};
XS=function(a,b){if(gT(a)){var c;a:{c=fT(a);for(var d=0;d<c.length;d++)if(c[d].D<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN};
hT=function(a){return ph(a.C,function(a){return 4<=a.state})};
iT=function(a){return!(!a.g||!a.A.Od()||a.g.g==a.A)};
jT=function(a){return iT(a)&&a.g.g.info.g<a.A.info.g};
kT=function(a,b,c){return(a=GS(a.o)?GS(a.o).info:a.B)&&!a.G?a.C>b&&a.C<b+c:!1};
bT=function(a){(0,g.H)(a.C,function(a){aT(this,a)},a);
a.C=[];a.g=null};
aT=function(a,b){if(b.V){var c=a.o;if(c.o){var d=window.NaN;(0,window.isNaN)(c.F)&&(d=b.info.g[0].range?b.info.g[0].D:AS(c.o).startTime);c.o.reset();if(!(0,window.isNaN)(d)){var e=c.o;e.D=d;BS(e)}}c.G=null}b.dispose()};
lT=function(a){return!!a.g&&-1!=a.g.A&&a.g.A<a.A.index.ji()};
mT=function(a){if(a.g){var b=GS(a.o);b&&3==b.info.type&&b.info.A>a.g.A&&(a.g=b.info)}};
nT=function(a){a.L.G?(a=a.o,a.o?(a=a.o,a=!(0,window.isNaN)(a.o)&&a.B?a.o/a.B:0):a=a.D||0):a=a.F||0;return a};
oT=function(a,b,c,d){this.A=a;this.D=b;this.C=d;this.g=c;this.o=0};
yna=function(a,b){this.g=a;this.D=this.C=!1;this.length=b?b:0;this.o=0;this.A=[];this.B=null;this.length?1!=this.g.length||this.g[0].range||(this.g[0]=Oea(this.g[0],Ys(0,this.length))):1==this.g.length||Sq(this.g,function(a){return!!a.range})};
xna=function(a){var b=a.length-a.o;(0,g.H)(a.A,function(a){b+=a.range.length});
return b};
pT=function(a,b,c,d,e){this.status=0;this.G=this.response=null;this.J=d;this.D=c;this.L=e;this.o=[];this.F=null;this.B=this.g=0;this.Da=zna++;this.C=window.NaN;this.A=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then($g((0,g.z)(this.dI,this)),$g((0,g.z)(this.Hl,this)));this.O=(0,g.G)();this.H=!1;b()};
rT=function(a){a.o.push(a.F.subarray(0,a.g));a.g=0;a.F=a.H?null:new window.Uint8Array(qT(a))};
sT=function(a){a.A.read().then($g((0,g.z)(a.DE,a)),$g((0,g.z)(a.Hl,a)));var b=(0,g.G)(),c=b-((0,window.isNaN)(a.C)?a.O:a.C);(0,window.isNaN)(a.C)?a.ka("First read initiated at "+c+"ms after start"):a.ka("Read initiated "+c+"ms after last read");a.C=b};
qT=function(a){a=a.ii();return Math.max(16384,.125*a)};
tT=function(a,b,c,d,e){this.status=0;this.response=null;this.o=this.A=!1;this.g=new window.XMLHttpRequest;this.g.open("GET",a);this.g.responseType="arraybuffer";this.g.withCredentials=!0;this.g.onreadystatechange=(0,g.z)(this.FK,this);this.B=d;this.D=c;this.C=e;a=$g((0,g.z)(this.DK,this));this.g.addEventListener("load",a,!1);this.g.addEventListener("error",a,!1);this.g.send();b();this.g.addEventListener("progress",$g((0,g.z)(this.EK,this)),!1)};
uT=function(a,b,c,d){this.C=a;this.info=b;this.timing=c;this.P=d;this.state=1;this.g=null;this.L=this.D=this.H=0;this.F=window.NaN;this.G=this.o=this.O=null;this.B=0;this.J=this.A=null;this.N=0;this.V=!1};
xT=function(a){var b=vT(a.timing);b.shost=a.o?Ps(a.o.g):"";b.rn=a.H.toString();a.B&&(b.rc=a.B.toString());b.ml=""+ +a.info.g[0].g.Od();410!=a.B&&500!=a.B&&503!=a.B||(b.isPotentialFormatUnavaliable="true");(a=wT(a))&&(b.action=a);return b};
Ana=function(a){var b=vT(a.timing);return{rn:a.H.toString(),rt:b.rt,pt:b.pt}};
wT=function(a){if(7==a.state&&!yT(a)){var b=zT(a);if(b=0<b.Qf&&0==b.Gv)b=a.info.o,b=!(a.H>b.A&&0<b.o);return b?"fastfallback":10<=a.D?"fallback":"retry"}return""};
zT=function(a){var b=a.o?Ps(a.o.g):"";b in a.P||(a.P[b]={Qf:0,Gv:0});return a.P[b]};
AT=function(a){a.isDisposed();if(10>a.D)a=!0;else{var b=a.info.o;a=!(a.H>b.A&&0<b.o)}return a};
BT=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.O&&a.O(a)};
CT=function(a){return Sq(a.info.g,function(a){return 3==a.type})};
yT=function(a){return a.info.g[0].g.Od()||8192<=a.timing.g?7==a.state&&("net.timeout"==a.G||"net.connect"==a.G&&204==a.B):!1};
DT=function(a){if(a.g){var b=a.g;a.g=null;b.abort()}a=a.timing;a.B&&(a.B=!1)};
ET=function(a){var b=a.g.Xf("content-type"),c=a.g.ii();return(!a.C.D||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
OS=function(a){return 2<=a.state&&!!a.A&&!!a.A.A.length};
FT=function(a,b){if(b||a.C.D&&!ET(a)){if(!a.A){var c=b?a.g.Rm():a.g.ii();a.A=new yna(a.info.g,c)}for(;a.g.Tn();)for(var c=a.A,d=a.g.Bv(),e=b&&!a.g.Tn(),f=0,k=0,l=0;l<c.g.length;l++){var m=c.g[l];if(m.range&&f+m.B<=c.o)f+=m.B;else{var n;var q=c,t=m;1==t.type?(q.C=!0,n=!1):3==t.type||4==t.type?(t=q.C&&!q.D,q.D=!0,n=t):n=!1;var q=c,w=c.o-f,t=k,x=d,A=n||m.g.Nw(),F=x.length-t;m.range&&(F=Math.min(m.B-w,F));n=m.range?m.o+w+F==m.range.length:!!e;w=new Ht(m.type,m.g,m.range,m.A,m.startTime,m.duration,m.o+
w,F,n&&m.G);w.F=n;q.A.push(new xu(w,x.buffer,Ys(x.byteOffset+t,F),Ys(x.byteOffset,x.length),A));q=F;c.o+=q;k+=q;f+=m.B;if(k==d.length)break}}}};
Bna=function(a,b,c,d,e){this.o=a;this.O=b;this.V=c;this.P=e;this.g=this.C=this.A=window.NaN;this.L=this.N=this.B=!1;this.F=0;this.D=this.H=window.NaN;this.G=d};
vT=function(a){return{rt:(((0,g.G)()-a.A)/1E3).toFixed(2),lb:a.g,pt:a.H.toFixed(2),pb:a.O}};
GT=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.g;if(a.B)!a.G&&0<e&&(.2<d||1024>e?(a.F+=d,.2<d&&ww(a.o,.05,e)):ww(a.o,d,e),a.L=!0);else if(8192<=c){if(!a.G){var f=a.o;f.G.g(1,(b-a.A)/1E3);Dw(f)}a.B=!0}yw(a.o,d,e);a.C=b;a.g=c};
HT=function(a){var b=a.O-a.g,b=1E3*(b*a.J.stall+b/a.J.byterate),c=(0,g.G)(),b=8192<=a.g?b+c:b+Math.max(c,a.A+1E3*a.J.delay);a.D=b};
JT=function(a,b,c,d){g.en.call(this);this.G=a;this.B=b;this.C=c;this.g=this.A=null;this.J=new kna(a,b);this.o=null;this.F=new lna(this.J,b,this.C,d);this.D=this.na=this.Z=this.la=window.NaN;this.O=!1;this.H=window.NaN;this.wa=0;this.V=this.L=!1;this.va={};this.P="";this.da=this.fa=0;this.pa=b.uc?new pna:null;this.Aa=new qw(5);this.Ia=(0,g.z)(function(a){this.B.ca&&(IT(this,!1,"qoe.avsync",a),this.B.ca=!1)},this);
this.ga=!1;this.Ja={};this.ra=window.NaN;this.ka("Created")};
LT=function(a,b){var c=a.g,d=a.F;if(d.D.V){var e=d.o&&d.o.index.Af(b||a.g&&a.g.g&&a.g.g.startTime||a.D)||0;d.ba!=e&&(d.V={},d.ba=e,pS(d,d.g))}!d.g.isLocked()&&-1<d.N&&(0,g.Ok)()-d.N<1E3*d.D.Xa||(d.P&&!tS(d)&&(d.P=0,pS(d,d.g)),qS(d),rS(d),d.L|=d.o!=d.A);d.o.index.sf()||(d.ba=-1);KT(a,c,d.o);KT(a,a.A,a.F.B)};
OT=function(a){0==a.D&&(a.g.A.A||MT(a,a.g,!0),a.A.A.A||MT(a,a.A,!0));a.seek(a.D);NT(a,"gv")};
PT=function(a){a.ka("Suspended.");a.L=!0};
g.RT=function(a,b){a.A.O=!1;a.g.O=!1;a.A.B=null;a.g.B=null;a.ka("attaching media source");a.resume();a.o=b;b.D&&(b.g=b.A.addSourceBuffer(b.H),b.L?b.o=b.A.addSourceBuffer(b.J):b.o=new mt,QT(a));xt(b)&&(b.g.addEventListener("updateend",(0,g.z)(a.Qd,a),!1),b.o.addEventListener("updateend",(0,g.z)(a.Qd,a),!1),b.g.addEventListener("error",(0,g.z)(a.Fk,a,!0),!1),b.o.addEventListener("error",(0,g.z)(a.Fk,a,!1),!1));NT(a,"msa");g.cw("msa",void 0,"video_to_ad");Xv.measure&&Xv.getEntriesByName("mark_vta").length&&
Xv.measure("measure_vta_to_msa","mark_vta");a.ba&&a.N&&rr(1);a.Qd();a.na=g.bh((0,g.z)(a.Qd,a),1E4)};
TT=function(a){a.ka("detaching media source");a.o&&a.o.g&&a.o.g.removeEventListener&&(a.o.g.removeEventListener("updateend",(0,g.z)(a.Qd,a),!1),a.o.o.removeEventListener("updateend",(0,g.z)(a.Qd,a),!1),a.o.g.removeEventListener("error",(0,g.z)(a.Fk,a,!0),!1),a.o.o.removeEventListener("error",(0,g.z)(a.Fk,a,!1),!1));a.o=null;PT(a);ST(a)};
UT=function(a){a.o&&ut(a.o)&&TT(a)};
VT=function(a,b,c){if(!b.H.o||!c.remove)return!1;if(c.updating)return!0;if(!b.H.g&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.H.g=!0;b.H.reset();a.$("seekrequired");return!1};
XT=function(a,b,c){if(a.L&&(!a.B.P||!Ew(a.G)))return!1;if(a.C.o){if(0<b.C.length)return!1;if(b.J)return!0}if(!b.g){if(!b.A.Od())return b.A.A||(a.ka("Should have started load before setting goal"),MT(a,b,!1)),!1;ZS(b,a.D)}var d=b.C.length+c.C.length;(hT(b)||hT(c)||a.C.isLive)&&--d;if(2<=d+1)return!1;d=b.g;4==d.type&&d.g.Od()&&(b.g=g.Va(d.g.Uk(d)),d=b.g);!d.G&&!d.g.np(d)||d.g.info.audio&&4==d.type?a=!1:jT(b)&&!a.B.N?a=!0:(!(c=d.G||cT(b)+cT(c)>a.B.Z||!!(c.g&&!c.g.G&&c.g.C<d.C)&&(!a.C.o||c.g.C&&d.C))&&
(c=3==d.type)&&(d=d.C,b=WT(a,b,!0),!a.F.g.isLocked()&&0<a.B.ra&&(c=((0,g.Ok)()-a.wa)/1E3,b=Math.min(b,a.B.ra+a.B.wa*c)),c=d>a.D+b),a=c?!1:!0);return a};
ZT=function(a,b,c){if(!a.o||rt(a.o)||xt(a.o))if(!a.O||a.B.Na){var d=a.D,e=a.J;c=kS(e,b.A.info.g,c.A.info.g,0);var f;f=xw(e.o)+c*zw(e.o)+c/g.Aw(e.o);d+=Math.max(f,f+e.g.na-c/b.A.info.g);a.ka("Clearing back to "+d.toFixed(3));a:{a=a.F.J;if(b.C.length){if(b.C[0].info.g[0].startTime<=d)break a;bT(b)}e=b.o;for(c=e.g.length-1;0<=c;c--)e.g[c].info.startTime>d&&e.g.pop();b.C.length?b.g=g.Va(g.Va(b.C).info.g):b.o.g.length?b.g=GS(b.o).info:b.g=b.B;a&&b.g&&d<b.g.startTime&&(HS(b.o),b.F=null,b.D=0,b.g=b.A.mi(d,
!0).g[0])}}};
aU=function(a,b,c){XT(a,b,c);var d=b.g;if(b.J)a.ga=!0,d=b.A.mi(window.Infinity),d.B=a.ra;else if(b.g.g.Od()){!jT(b)||a.B.N||a.C.o||(ZT(a,b,c),b.g||ZS(b,a.D));var d=b.g,e=d.C-a.D,f=!d.range||0==d.B&&0==d.o?0:d.range.length-(d.o+d.B);iT(b)&&(jT(b)||e<=a.B.Ta)&&0==f&&(a.C.o?d.g=b.A:(f=d.startTime+JT.g,d.B&&(f+=d.duration),ZS(b,f),d=b.g));d.g.Gd()?(c=kS(a.J,d.g.info.g,c.A.info.g,e),e=iT(b),c=d.g.Eh(d,c),c.range&&1<c.g.length&&(e?c=d.g.Eh(d,c.g[0].B):(e=c.g[c.g.length-1],f=e.B/c.range.length,!e.F&&.4>
f&&(c=d.g.Eh(d,c.range.length-e.B)))),d=c):d=d.g.Gl(d)}else d.g.Gd()?(c=kS(a.J,b.A.info.g,c.A.info.g,0),d=d.g.Eh(d,c)):d=d.g.Gl(d);MS(b,$T(a,d))};
$T=function(a,b){if(3==b.g[b.g.length-1].type){var c;a:{c=a.F;var d=b.g[0].g;if(d.info.video){if(c.A!=d){c.A=d;c=vS(c);break a}}else c.O=d;c=null}bU(a,c)}c=Ot(b);var d=a.G,e=a.J,f=Math.min(2.5,xw(e.o)),e=mS(e);c=new uT(a.B,b,new Bna(d,c,c-f*e,a.B.bc&&a.ga,It(b.g[0])),a.Ja);d=(0,g.z)(a.JG,a);c.isDisposed();c.O=d;c.start(Math.max(0,b.g[0].D-a.D));return c};
bU=function(a,b){b&&(a.ka("Logging new format: "+b.video.info.id),a.$("videoformatchange",b))};
cU=function(a){if((0,window.isNaN)(a.la)){var b=(0,g.z)(a.Qd,a);a.la=g.ah(b,0)}};
dU=function(a){if((0,window.isNaN)(a.Z)){var b=(0,g.z)(function(){this.Z=window.NaN;this.Qd()},a);
a.Z=g.ah(b,1E3)}};
Cna=function(a){if(a.C.A)return!1;var b;if(b=a.O)if(b=a.B.fb)b=a.g,b=0<b.C.length&&1==b.o.g.length&&FS(b.o).info.H<b.V;if(b)return!0;if(!a.V||!a.B.L||10>a.D||360<a.g.A.info.video.Pk)return!1;b=kT(a.g,a.D,a.B.L)||kT(a.A,a.D,a.B.L);return(0<a.g.C.length||0<a.A.C.length||XT(a,a.g,a.A)||XT(a,a.A,a.g))&&b};
QT=function(a){UT(a);if(a.o&&rt(a.o)&&!vt(a.o))if(a.C.isLive)(0,window.isNaN)(a.H)?(a.H=a.D+3600,tt(a.o,a.H)):a.H<=a.D+1800&&(a.H+=1800,tt(a.o,a.H));else{var b=Math.max(a.A.getDuration(),a.g.getDuration());(!(0,window.isFinite)(a.H)||a.H!=b)&&0<b&&(tt(a.o,b),a.H=b)}};
gU=function(a,b,c,d,e){if(c.updating)return!0;var f=FS(b.o);if(!f)return!1;!b.B||b.B.F||Jt(b.B,f.info)||(b.B=null,rt(a.o)&&(a.ka("aborting append"),c.abort()),c.g=null);var k=a.C.isLive&&Du(f),l=!a.C.A&&b.L.fa&&QS(b);a.B.Eb&&a.C.A&&0==f.info.o&&1==f.info.g.info.o&&(a.C.o?null!=b.B&&b.B.g==f.info.g:null!=c.g&&c.g==f.info.g.g)&&(lu(yu(f),1836019574),lu(yu(f),1718909296),f.C=!1);if(!a.C.A||0==f.info.o)if(k=k||a.C.o||f.C,l||!k){if(k=f.info.g.g,c.g==k?k=!1:(eU(a,c,k),a.ka("Appended init for "+f.info.g.info.id),
c.g=k,a.$("initsegment",c.g),k=c.updating),k)return!0}else c.g=null;k=WT(a,b,!1);k=a.D+k;null!==d&&0<=d&&(k=Math.min(k,d));if(b.N)d=FS(b.o).range;else a:if(d=b.o,d.g[0].info.D>=k)d=null;else{var m;for(m=1;m<d.g.length;m++){var n=d.g[m].g!=d.g[m-1].g;if(d.g[m].info.D>k||n||d.B.fa)break}m--;m=d.g[m];var n=m.range.end,q=m.info.C-k;if(d.H.Gd()&&d.H.info.audio&&0<=d.B.la&&q>d.B.la){k=Math.floor((k-m.info.D)/m.info.H*m.info.B);if(0==k){d=null;break a}n=m.range.start+k-1}d=new Ws(d.g[0].C?0:d.g[0].range.start,
n)}if(!d)return!1;if(l){if(RS(b))return!1;if(k=TS(b,a.Ia))return fU(a,c,new window.Uint8Array(k),f,b)?(VS(b),!0):!1}k=new window.Uint8Array(f.g,d.start,d.length);if(a.pa&&f.info.g.info.video&&1==f.info.g.info.o&&(m=a.pa,n=k,0==f.info.o&&(m.o=0,m.g=0,m.A.length=0),!((0,window.isNaN)(m.o)||8>n.length))){for(var q=new window.DataView(n.buffer,n.byteOffset),t=!1;!t;)if(m.o==m.g)a:{var w,x,t=m;w=q;var A=n.length;if(t.o+7>=A){for(x=t.o;x<A;x++)t.A.push(w.getUint8(x));t=!0}else{if(0<t.A.length){for(x=0;8>
t.A.length;x++)t.A.push(w.getUint8(x));x=wS(t.A,0);w=wS(t.A,4);t.A.length=0}else x=w.getUint32(t.g),w=w.getUint32(t.g+4);if(1836019558==w||1836019574==w||1718909296==w||1936286840==w)t.o+=x,t.g=t.o;else if(1835295092==w)t.o+=x,t.g+=8;else{t.o=window.NaN;t=!0;break a}t=t.g>=A}}else a:if(t=m,A=q,x=n.length,t.g+5>=x){for(w=t.g;w<x;w++)t.A.push(A.getUint8(w));t=!0}else{if(0<t.A.length){for(w=0;6>t.A.length;w++)t.A.push(A.getUint8(w));w=wS(t.A,0);12==w&&6==t.A[4]&&45==t.A[5]&&A.setUint8(t.g+5,63);t.g+=
w+4;t.A.length=0}for(;t.g<t.o&&t.g+5<x;){w=A.getUint32(t.g);if(0>=w){t.o=window.NaN;t=!0;break a}12==w&&6==A.getUint8(t.g+4)&&45==A.getUint8(t.g+5)&&A.setUint8(t.g+5,63);t.g+=w+4}t=t.g>=x}(0,window.isNaN)(m.o)||(m.o-=n.length,m.g-=n.length)}m=!1;if(3==f.info.type&&(1==f.info.g.info.o||2==f.info.g.info.o))if(m=1==f.info.g.info.o&&a.B.Cd&&!l&&!b.O&&0==f.info.o&&0<f.info.startTime)Au(f,0);else if(a.C.A&&0==f.info.o&&!a.B.G){a:if(b.L.da&&QS(b)&&!Du(FS(b.o))&&RS(b))e=!1;else{l=null===b.F?f.info.startTime:
b.F;if(0==Au(f,l))l=Kt(f.info),l.smst=1,IT(a,!0,"fmt.unparseable",l);else if(n=Bu(f),b.F=l+n,a.C.o&&f.info.g.info.video&&Yu(a.C,new ct(f.info.A,l,n,f.o.ingestionTime,"sq/"+f.info.A))&&(n=Tt(f.o)))n.qd+=l,l=a.C,l.G.push(n),l.$("cuepointsadded");l=0;f.info.g.info.video&&null!==e&&f.info.duration&&!a.C.o&&(n=1E3*(Bu(f)-f.info.duration),e-=b.D+n,Math.abs(e)>=a.B.ga&&(l=e/1E3));e=l;l=Bu(f);n=l+e;e&&!Du(f)&&(q=Kt(f.info),q.deltaOffsetMs=1E3*(l-f.info.duration).toFixed(3),q.cumOffsetMs=b.D.toFixed(3),q.finalDurSecs=
n.toFixed(3),IT(a,!1,"qoe.avsync",q));if(b.L.da&&QS(b)&&!Du(FS(b.o))&&e&&0<n){if(b.D+=1E3*(l-f.info.duration+e),b.F+=e,e=TS(b,g.v,n*Cu(f))){if(fU(a,c,new window.Uint8Array(e),f,b)){VS(b);e=!0;break a}e=!1;break a}}else b.D+=1E3*(l-f.info.duration);e=null}if(null!=e)return e}if(!fU(a,c,k,f,b))return!1;b.O=!0;m?(Au(f,f.info.startTime),c.abort(),c.g=null,a.ka("Double-appended slice: "+Lt(f.info))):(US(b,d),a.ka("Appended up to "+Lt(b.B)+", buffered: "+nk(c.buffered)));f.C&&(c.g=f.info.g.g,a.$("initsegment",
c.g));return!0};
fU=function(a,b,c,d,e){b=eU(a,b,c);return 0!=b?(2!=b&&(d.info.g.info.video?(a=a.B,a.B=Math.floor(.5*a.B),a.J=Math.floor(.5*a.J),a.o=Math.floor(.5*a.o),a.H=Math.floor(.5*a.H)):(a=a.B,a.C=Math.floor(.5*a.C),a.ba=Math.floor(.5*a.ba),a.o=Math.floor(.5*a.o)),eT(e)),!1):!0};
eU=function(a,b,c){try{xt(a.o)?b.appendBuffer(c):b.append(c)}catch(d){return 11==d.code?(IT(a,!1,"html5.invalidstate",{updating:""+ +b.updating,mrs:a.o.A.readyState}),2):22!=d.code&&0!=d.message.indexOf("Not enough storage")?(eh(d),4):1}return ut(a.o)?3:0};
hU=function(a,b){b.o.subscribe("error",a.LF,a);b==a.g&&(b.o.subscribe("timestamprewrite",a.NF,a),b.o.subscribe("segmentinfo",a.MF,a),b.o.subscribe("cuepoint",a.KF,a))};
WT=function(a,b,c){if(a.B.P&&a.L)return a.B.P;var d=b.A.info.audio?a.B.C:a.B.B;!a.B.N&&a.F.g.isLocked()&&(d=Math.max(d,b.A.info.audio?a.B.ba:a.B.J));c&&(d+=a.B.Z);b=a.F.g.isLocked()?b.g?b.g.g.info.g:b.A.info.g:b.P;d/=b;0<a.B.o&&(d=Math.min(d,a.B.o));return d};
iU=function(a,b,c){var d=(0,g.z)(a.$,a,"error");a=a.B.pa?(0,g.z)(a.$,a,"ctmp","pathprobe"):null;(new oT(b,c,a,d)).send()};
jU=function(a,b,c,d){a.ka("seekTrack_ t="+c);if(b.A.Od())if(d){var e=pk(d.buffered,c),f=window.NaN,k=b.B;k&&(f=pk(d.buffered,k.g.index.rf(k.A)));if(e==f&&gT(b))return a.ka("no action"),c;d=XS(b,c);if(0<=d)return d;dT(b,b.A.Gd()?1:2);b.A.info.video&&b.B&&!b.B.F&&!sna(b.o)&&b.A.Gd()&&(d=b.B,b.o.g.length&&(d=GS(b.o).info),d=b.g||d,d=d.g.Eh(d,d.range.length-(d.B+d.o)),MS(b,$T(a,d)));if((0,window.isNaN)(e))return ZS(b,c);ZS(b,e+JT.g)}else a.ka("Seek called (twice) with nothing attached"),ZS(b,c);else b.A.A||
MT(a,b,!1),0!=c&&bT(b);return c};
KT=function(a,b,c){b.A!=c&&(a.ka("Setting target itag: "+c.info.id+" (was "+b.A.info.id+")"),b.A=c,c.A||MT(a,b,!1))};
MT=function(a,b,c){var d=c?65536:0;c&&!(0,window.isNaN)(2)&&(d=Math.min(a.B.H,Math.floor(Math.max(d,2*b.A.info.g))));c=b.A.os(d);(0,g.H)(c,function(a){if("f"!=a.g[0].g.info.A){var c=$T(this,a);!It(a.g[a.g.length-1])&&MS(b,c)}},a);
b.A.A=!0};
IT=function(a,b,c,d){a.isDisposed()||(a.$("error",new g.ti(c,b,d)),b&&a.dispose())};
kU=function(a){if(!a.g.g)return"";a=Ps(a.g.g.g.D.g);return a.substr(0,a.indexOf("."))};
lU=function(a){var b={lct:a.D.toFixed(3),lsk:a.O,lmf:a.F.g.isLocked(),lbw:g.Aw(a.G).toFixed(3),lhd:xw(a.G).toFixed(3),lst:(1E9*zw(a.G)).toFixed(3),laa:a.A.B?Lt(a.A.B):"",lva:a.g.B?Lt(a.g.B):"",lar:a.A.g?Lt(a.A.g):"",lvr:a.g.g?Lt(a.g.g):"",lvh:kU(a)};a.o&&!ut(a.o)&&(b.lab=nk(a.o.g.buffered),b.lvb=nk(a.o.o.buffered));return b};
NT=function(a,b,c){a.va[b]=c?window.performance.timing.navigationStart+c:(0,g.Ok)()};
ST=function(a){a.A&&dT(a.A,0);a.g&&dT(a.g,0)};
mU=function(a,b,c){if(!b||!c)return!0;c=-1!=ok(c.buffered,a);var d=GS(b.o)?GS(b.o).info.C>=a:!1,e=b.C.length?b.C[0]:null;a=(b=e?e.info.g[0]:b.g)&&b.startTime<=a;return!!(c||d||a)};
nU=function(a,b,c,d,e){g.L.call(this);this.C=a;this.L=b;this.G=c;this.g=d;this.o=e;this.sessionId="";this.A=this.J=this.H=this.D=this.F=null;this.B=new g.ir(this);g.M(this,this.B);this.g?(this.B.U(this.g,"message",this.TL),this.B.U(this.g,"keystatuseschange",this.UL)):this.o&&(jr(this.B,this.o,["mskeymessage","webkitkeymessage"],this.vu),jr(this.B,this.o,["mskeyerror","webkitkeyerror"],this.uu),jr(this.B,this.o,["mskeyadded","webkitkeyadded"],this.tu))};
Dna=function(a){var b=[];a.g.keyStatuses.forEach(function(a,d){"usable"==a&&b.push(im(new window.Uint8Array(d)))});
return b};
Fna=function(a,b){var c=[];a.g.keyStatuses.forEach(function(a,e){var d=new window.Uint8Array(e),k=im(d),l={};l.keyId=Ena(d);l.type=b[k];l.status=a;c.push(l)});
return c};
Ena=function(a){var b="";a.forEach(function(a){0<b.length&&(b+=",");b+=a.toString()});
return b};
oU=function(a,b){g.L.call(this);this.o=a;this.g=b;this.D={};this.B=null;this.C=new g.ir(this);g.M(this,this.C);this.A=this.F=null};
pU=function(a){if(a.g.A)return a.g.A.createMediaKeys().then($g((0,g.z)(function(a){this.F=a;this.o.setMediaKeys(a)},a)));
av(a.g)?a.A=new ($u())(a.g.o):bv(a.g)?(a.A=new ($u())(a.g.o),a.o.webkitSetMediaKeys(a.A)):Gna(a);return null};
Gna=function(a){jr(a.C,a.o,["keymessage","webkitkeymessage"],a.J);jr(a.C,a.o,["keyerror","webkitkeyerror"],a.H);jr(a.C,a.o,["keyadded","webkitkeyadded"],a.G)};
Hna=function(a,b){var c=b.g;if(a.g.A){var d=a.F.createSession(),c=d.generateRequest(b.contentType,c),d=new nU(null,null,null,d,null);c.then(null,$g((0,g.z)(d.Xt,d,"t.g")));return d}if(av(a.g)){for(var d=new window.Uint8Array(270),e=0;135>e;e++)d[2*e]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(e);c=a.A.createSession("video/mp4",c,d);return new nU(null,null,null,null,c)}if(bv(a.g)){for(var d=c.subarray(4),
d=String.fromCharCode.apply(null,new window.Uint16Array(d.buffer,d.byteOffset,d.byteLength/2)).match(/ek=([0-9a-f]+)/)[1],e="",f=0;f<d.length;f+=2)e+=String.fromCharCode((0,window.parseInt)(d.substr(f,2),16));for(var k=a.g.fairPlayCert,d=new window.Uint8Array(new window.ArrayBuffer(k.length)),f=0;f<k.length;f++)d[f]=k.charCodeAt(f);for(var f=new window.ArrayBuffer(2*e.length),k=new window.Uint16Array(f),l=0;l<e.length;l++)k[l]=e.charCodeAt(l);e=new window.Uint8Array(f);f=0;l=new window.ArrayBuffer(c.byteLength+
4+e.byteLength+4+d.byteLength);k=new window.Uint8Array(l);l=new window.DataView(l);k.set(c);f+=c.byteLength;l.setUint32(f,e.length,!0);f+=4;k.set(e,f);f+=e.length;l.setUint32(f,d.byteLength,!0);k.set(d,f+4);c=a.A.createSession("video/mp4",k);return new nU(null,null,null,null,c)}a.o.generateKeyRequest?a.o.generateKeyRequest(a.g.o,c):a.o.webkitGenerateKeyRequest(a.g.o,c);a.B=new nU(a.o,a.g,c,null,null);return a.B};
qU=function(a,b){var c=a.D[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.D[b.sessionId]=c);return c};
rU=function(){this.keys=[];this.values=[]};
Ina=function(a){a.keys=[];a.values=[]};
sU=function(a,b){return Ya(a.keys,function(a){return g.wb(b,a)})};
tU=function(a,b,c,d){this.B=a;this.C=b;this.g=this.A=a;this.D=c||0;this.F=d||2};
Jna=function(a,b,c){this.url=a;this.interval=b;this.g=c};
Kna=function(a,b,c,d){this.g=a;this.statusMessage=b;this.headers=c;this.message=d};
vU=function(a,b,c,d,e,f){g.L.call(this);this.A=a;this.g=d;this.g.subscribe("oauthtoken",this.Ow,this);this.C={session_id:e};this.J=!!f;this.O=0;a=this.A.C;bv(this.A)&&(a=c.g.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));uU(this,a);this.B=this.G=!1;var k;try{k=Hna(b,c)}catch(l){b="t.g",l instanceof window.DOMException&&(b+=";c."+l.code),this.g.$("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),
k=null}if(this.o=k)b=this.o,c=this.HK,k=this.GK,a=this.JK,b.F=this.IK,b.D=c,b.H=k,b.J=a,b.A=this,g.M(this,this.o);this.D={};this.H=window.NaN};
Lna=function(a,b){this.message=a;this.number=b;this.g=new tU(5E3,2E4,.2)};
uU=function(a,b){if(Mna.test(b)){for(var c in a.C)b=fg(b,c,a.C[c]);a.F=b}else wU(a,"drm.net",!0,"t.u")};
wU=function(a,b,c,d,e){a.isDisposed()||a.g.$("licenseerror",b,c,d,e);c&&a.dispose()};
Nna=function(a,b){var c=(0,g.S)(a,function(a){return b[a]});
return xU(c)};
xU=function(a){return g.ab(a,"UHD2")?"highres":g.ab(a,"UHD1")?"hd2160":g.ab(a,"HD")?"hd1080":"large"};
Ona=function(a){if(!a)return{};var b={};(0,g.H)(a.split(";"),function(a){a=a.split(",");2==a.length&&(b[Aca(a[1])]=a[0])});
return b};
yU=function(a,b){this.g=a;this.contentType=b||null};
AU=function(a,b,c,d,e){g.en.call(this);a.addKey||a.webkitAddKey||$u()||ev(c);this.N=c;this.F=a;this.g=b;this.subscribe("newlicense",this.$F,this);this.subscribe("newsession",this.aG,this);this.subscribe("sessionready",this.UG,this);this.subscribe("keystatuseschange",this.KK,this);this.Z=e||g.Qj();this.J=null;this.A=new rU;this.o=[];this.C="fairplay"==this.g.g?Li:zU;this.H=new oU(a,b);g.M(this,this.H);this.B=null;av(b)&&(this.B=new oU(a,b),g.M(this,this.B));this.O=2;this.G=new g.ir(this);g.M(this,
this.G);this.L=!1;this.P=null;this.D=!1;a=this.F;this.g.A?this.G.U(a,"encrypted",this.aF):jr(this.G,a,av(this.g)?["msneedkey"]:["needkey","webkitneedkey"],this.YF);(a=pU(this.H))?a.then($g((0,g.z)(this.IF,this)),$g((0,g.z)(this.oE,this))):this.D=!0;this.B&&pU(this.B);this.V=d};
CU=function(a,b,c){a.isDisposed()||av(a.g)==c||a.L&&"widevine"==a.g.g&&!a.V||(a.L=!0,a.o.push(b),1<a.o.length||a.D&&BU(a))};
BU=function(a){for(;a.o.length&&a.A.get(a.o[0].g);)a.o.shift();a.o.length&&a.A.set(a.o[0].g,Pna(a,a.o[0]))};
Pna=function(a,b){a.A.get(b.g);var c=new vU(a.g,a.H,b,a,a.Z,a.N.g("html5_use_drm_retry"));c.Ow(a.J);"playready"==a.g.g&&a.N.g("playready_on_borg")&&(g.Zb(c.C,{prob:"1"}),uU(c,c.F));return c};
Qna=function(a){var b=[];a.A&&(0,g.H)(a.A.values,function(a){b.push(a.o?Fna(a.o,a.D):null)});
return b};
DU=function(a){this.o={};this.o.c1a=(0,g.z)(this.C,this);this.o.c3a=(0,g.z)(this.D,this);this.o.c6a=(0,g.z)(this.B,this);(this.g=a)&&this.g.Nb?this.A=g.Bh(this.g.Nb):this.A=[]};
Rna=function(a,b){this.W=a;this.g=b};
kl=function(a,b){return Mi(Mi(a.W.Oh,b.ib),b.sb)};
EU=function(a,b){var c=Kj(),d;if("auto"!=c)d=Ji("auto",c,!1);else if(g.At(a.W)&&Et(a.W.G,jx))d=Li;else{var e,c=!!b.B.g;nj(a.W)&&(e=window.screen&&window.screen.width?new g.ze(window.screen.width,window.screen.height):null);e||(e=a.W.uf?a.W.uf.clone():a.g.Sa());(qx||YB||c)&&e.scale(g.Hx());c=b.B.videoInfos;if(c.length){var f=.85,k=3==c[0].video.projectionType;2==c[0].video.projectionType?f*=.5:k&&(f*=.25);for(k=0;k<c.length&&!(d=c[k].video,null===e||d.width*f<e.width&&d.height*f<e.height);k++);d=Ji("auto",
d.quality,!1)}else d=Li;e=d.g;Vh()&&(e=Math.max(e,g.zi.hd1080));(Nh("armv7")||Nh("android"))&&!g.At(a.W)&&Di(b.B.videoInfos[0])&&(e=Math.min(e,g.zi.large));e=Math.max(e,g.zi.medium);d.g!=e&&(d=new Ii(d.o,e,d.A))}return d};
FU=function(){this.A={};this.g={};this.o=new g.Id(this.pI,500,this);g.M(this,this.o)};
GU=function(a,b){return a.g[b]?a.g[b].g.$a():[]};
HU=function(a){this.A=a;this.g=new gS(100);this.o=window.NaN};
IU=function(){this.endTime=this.startTime=-1;this.zm="-";this.playbackRate=1;this.visibilityState=0;this.tm="";this.connectionType=this.Ig=0};
Sna=function(a,b,c,d,e,f,k,l,m,n,q){this.videoData=a;this.g=b;this.B=c;this.C=d;this.o=e;this.D=f;this.L=k;this.H=l;this.J=m;this.F=n;this.G=q||function(){};
this.A=null};
g.xn=function(a){return JU(a)()};
JU=function(a){if(!a.A){var b=g.B(function(a){var b=(0,g.Ok)();a&&631152E6>=b&&(eh(Error("invalid yt.now value: "+b)),b=(new Date).getTime()+2);return b},a.g.experiments.g("html5_validate_yt_now"));
a.A=g.B(function(a){return Math.round(b()-a)/1E3},b())}return a.A};
Wn=function(a){var b=a.B();a=a.videoData;var c={};a.A&&(c.fmt=Bi(a.A),a.D&&Bi(a.D)!=Bi(a.A)&&(c.afmt=Bi(a.D)));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.ac&&(c.infringe=1);a.Ja&&(c.splay=1);a.o&&(c.live=a.P?"dvr":"live");a.Z&&(c.autoplay=1);a.Lq&&(c.sdetail=a.Lq);a.Na&&(c.partnerid=a.Na);a.osid&&(c.osid=a.osid);g.va(b,c);return b};
Hn=function(a){return a.g.experiments.g("html5_report_conn")&&window.navigator.connection&&window.navigator.connection.type?KU[window.navigator.connection.type]||KU.other:0};
wn=function(a){var b=new IU;b.zm=a.B().cc||"-";b.playbackRate=a.J();var c=oj(a.g);0!=c&&(b.visibilityState=c);a.g.Ig&&(b.Ig=1);c=a.H();c.yc&&c.yc.id&&"und"!=c.yc.id&&(b.tm=c.yc.id);b.connectionType=Hn(a);return b};
LU=function(a,b){this.state=a;this.g=b};
eo=function(a,b){return g.T(a.state,b)&&!g.T(a.g,b)?1:!g.T(a.state,b)&&g.T(a.g,b)?-1:0};
MU=function(a,b,c,d,e,f){g.en.call(this);this.Na=new $ba;this.F=c;this.fb=d;c=(0,g.z)(function(a,b){a=="crn_"+MU.g&&NU(this);e(a,b)},this);
this.C=new fp((0,g.z)(this.getCurrentTime,this),(0,g.z)(this.ow,this),(0,g.z)(this.BJ,this),c);g.M(this,this.C);this.pa=window.NaN;this.V=this.D=null;this.W=a;this.ra=new Rna(a,this.fb);this.wa=!1;this.G=this.B=null;this.da=[];this.fa=new xS;this.N=new xS;this.Rb=this.Ib=this.ac=this.va=!1;this.Xa=window.NaN;this.A=new Kk;this.Aa=[];this.J=b;this.la=null;this.P=window.NaN;this.na=new g.ir;g.M(this,this.na);this.g=new g.Sx;this.o=null;this.ba=window.NaN;this.sa=null;this.Lb=this.Ua=!1;this.Ia=window.NaN;
this.qb=this.sb=this.ga=this.Ja=!1;this.ab=this.Db=window.NaN;this.uc=a.experiments.g("html5_force_play_on_suspend_event");this.Fc=a.experiments.g("html5_force_play_on_suspend_event_limited");this.L=null;this.hd=this.W.experiments.g("html5_playing_event_buffer_underrun");this.Z=new FU;g.M(this,this.Z);this.Z.wb("bufferhealth",(0,g.z)(this.ds,this));this.Z.wb("bandwidth",(0,g.z)(this.vB,this));this.Z.wb("networkactivity",(0,g.z)(this.xB,this),!0);this.Z.start();this.Nb=!1;this.tc=0!=f;this.Eb=this.Oa=
!1;this.H=1;this.O=null;this.dc=(0,g.z)(this.EJ,this);Pba(this.dc);this.bc=new g.Id(this.po,0,this);g.M(this,this.bc)};
OU=function(a){lr()?nr(a.Ia):g.ch(a.Ia)};
UU=function(a,b,c){a.da.length=0;a.fa.reset();a.N.reset();a.pa=window.NaN;a.P=window.NaN;a.Ua=!1;a.Oa=!1;a.o&&Dk(a.o);PU(a);QU(a);RU(a);OU(a);a.Z.clear();a.bc.stop();a.L=null;a.O=null;g.Cb(a.g);if(2==a.J||nx.test(a.W.fa))b.Up=!0;var d=Lw(b.C,a.W);d&&(b.adFormat=d);a.W.P&&(b.autonavState=a.g.autonavState);a.g=b;a.g.subscribe("dataupdated",a.yH,a);a.g.subscribe("dataloaded",a.vr,a);a.g.subscribe("dataloaderror",a.cj,a);a.g.subscribe("onStatusFail",a.xH,a);b.wa&&b.wa>b.startSeconds&&(b=b.wa,a.V&&(a.C.D(a.V),
a.V=null),a.V=new g.cn(1E3*b,0x7ffffffffffff),a.V.namespace=MU.g,gp(a.C,[a.V]));QU(a);a.g.na||(c=new Sna(a.g,a.W,c,(0,g.z)(a.getDuration,a),(0,g.z)(a.getCurrentTime,a),(0,g.z)(a.yB,a),(0,g.z)(a.fb.Sa,a.fb),(0,g.z)(a.ip,a),(0,g.z)(a.ow,a),(0,g.z)(a.cn,a),(0,g.z)(a.KB,a)),a.sa=new Un(c));a.Ja=!1;SU(a,"newdata");TU(a,new Kk)};
QU=function(a){if(a.sa){var b=a.sa;if(!b.isDisposed()&&b.B){b.D="paused";var c=$n(b);c.va=!0;c.send();c=b.o;"PL"==c.A&&(c.A="N");var d=g.xn(c.g);g.Fn(c,d,"vps",[c.A]);c.Oi(d);g.ch(b.C);b.dispose()}g.Cb(a.sa);a.sa=null}};
WU=function(a){if(g.wl(a.g))return!0;g.VU(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
XU=function(a,b){a.va=!!b;if(WU(a)&&!a.fa.o){a.fa.start();if(a.sa){var c=a.sa.o;c.g.g.experiments.g("html5_qoe_unstarted_in_initialization")?g.xn(c.g):g.Fn(c,g.xn(c.g),"vps",["N"]);c.g.videoData.Cd&&On(c,"preload");c.g.videoData.da&&(c.Kc("reload",c.g.videoData.Sh),c.Kc("reloadcount",c.g.videoData.da.toString()));c.g.videoData.Xa&&On(c,"monitor");c.g.videoData.o&&On(c,"live");if(c.g.videoData.mq){var d=c.g.videoData.mq.replace(/,/g,".");c.Kc("ytrexp",d,!0)}c.g.g.experiments.g("html5_disable_gpu_reporting")||
0!=c.g.videoData.clientPlaybackNonce.indexOf("gp")||(d=Ik())&&(c.o.gpu=[d]);c.N=g.bh((0,g.z)(c.Oi,c),1E4)}a.vr()}};
ZU=function(a){a.o&&wk(a.o);XU(a);WU(a)&&!g.T(a.A,128)&&(a.N.o||(a.N.start(),TU(a,Pk(a.A,8)),jy(a.g)||TU(a,Pk(a.A,1))),YU(a))};
YU=function(a){a.isDisposed();if(!a.N.g&&a.fa.g&&!g.T(a.A,128)&&!a.da.length&&(a.C.Qf||hp(a.C),!Bl(a))){if(a.B){var b=a.B;a.ac=!!b.N&&!!b.ba}a.N.g||(a.N.g=!0);a.g.o&&(a.Wc(window.Infinity,!0),$U(a,!0),3==oj(a.W)&&(a.Lb=!0));if(a.sa&&(b=a.sa,b.g.videoData.enableCardio&&b.g.videoData.enableCardioBeforePlayback&&(b.Yk("connected"),go(b)),b.g.videoData.o)){var b=b.o,c=b.g.videoData.g;Dt(b.g.videoData)&&On(b,"manifestless");c&&Xu(c)&&On(b,"live-segment-"+Xu(c).toFixed(1))}a.$("playbackready",a);fw("pbr",
a.F.g)||(a.F.o("pbr"),g.cw("pbr",void 0,"video_to_ad"))}};
NU=function(a,b){aV(a);TU(a,0==b?new Kk:new Kk(14))};
eV=function(a,b,c,d){a.g.A=c;a.g.D=d||c;if(a.sa){var e=Mi(Mi(EU(a.ra,a.g),bV(a)),cV(a)),e=g.Xa(a.g.B.videoInfos,(0,g.z)(e.B,e)),e=new vn(a.g,c,b,e?Bi(e):"");d&&"i"==b&&dV(a,b,d);d=a.sa.o;c=g.xn(d.g);g.Fn(d,c,"vfs",[e.g.id,e.o,d.ba,e.reason]);d.ba=e.g.id;e=d.g.L();if(0<e.width&&0<e.height){var e=[Math.round(e.width),Math.round(e.height)],f=g.Hx();1<f&&e.push(f);g.Fn(d,c,"view",e)}g.Fn(d,c,"vps",[d.A]);d.Oi(c)}a.$("internalvideoformatchange",a.g,"m"==b)};
dV=function(a,b,c){a.g.D=c;if(a.sa){var d=a.sa.o;c=new vn(a.g,c,b,"");var e=g.xn(d.g);c.g.id!=d.G&&(g.Fn(d,e,"afs",[c.g.id,d.G,c.reason]),d.G=c.g.id)}"i"!=b&&a.$("internalaudioformatchange",a.g,"m"==b)};
g.fV=function(a){a.sa&&zn(a.sa.A)};
g.VU=function(a,b,c,d){var e,f;Kb(Tna,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||g.Q(e),messageKey:e};TU(a,Nk(a.A,128,b));OU(a);RU(a);gV(a)};
Il=function(a,b){a.da=a.da.filter(function(a){return b!=a});
a.N.o&&YU(a)};
Bl=function(a){var b;(b=!!a.da.length)||(a=a.C.g.g[0],b=!!a&&-0x8000000000000>=a.start);return b};
hV=function(a){a.W.experiments.g("html5_crossorigin_video")&&a.o&&(a.g.na||!a.g.B||a.g.B.g?a.o.xo(!1):a.o.xo(!0))};
jV=function(a,b){a.o&&iV(a);a.W.experiments.g("html5_suspended_state")&&!a.A.isError()&&TU(a,Qk(a.A,512));a.o=b;a.o.Cp(a.Eb);a.o.Dp(a.H);Una(a);hV(a)};
iV=function(a){a.g&&a.W.experiments.g("new_ended_replay")&&(a.g.startSeconds=a.getCurrentTime());a.G&&(a.G.dispose(),a.G=null);a.B&&(cU(a.B),PT(a.B));a.o&&(a.W.experiments.g("html5_suspended_state")&&a.N.o&&!a.A.isError()?TU(a,Pk(a.A,512)):a.sa&&a.fa.o&&g.T(a.A,64)&&!a.g.O&&kV(a),PU(a),g.kr(a.na),Dk(a.o),a.o=null)};
pV=function(a){if(!g.T(a.A,128))if(a.Nb)a.Nb=!1,lV(a);else if(ZU(a),g.T(a.A,64)&&TU(a,Pk(a.A,8)),a.N.g&&a.o)if(a.g.B){a.W.experiments.g("new_ended_replay")&&g.T(a.A,2)&&a.Wc(0,!0);if(a.g.o){var b=mV(a),c=g.xl(a.g)&&g.T(a.A,4);if(b||c)!c&&a.W.experiments.g("html5_live_pin_to_tail")?a.Wc(fy(a.g),!0):a.Wc(window.Infinity,!0);nV(a)?$U(a,!0):a.isPeggedToLive()&&a.Wc(window.Infinity,!0)}b=oV(a);(c=a.o.o)&&null!=b&&b.g==c.g?Ak(a.o):Vna(a,b)}else b=a.g.o&&!g.$w()?"html5.unsupportedlive":"fmt.noneavailable",
g.VU(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1")};
oV=function(a){var b;a.g.B.g?(b=qV(a),a.B.resume()):(RU(a),b=a.g.ba.o());return b};
rV=function(a){PU(a);RU(a);qV(a)};
sV=function(a){if(a.g.B){var b=bV(a)||Li;a=(0,g.Od)(a.g.B.videoInfos,(0,g.z)(b.B,b));for(var b=[],c={},d=0;d<a.length;d++){var e=a[d].video;c[e.quality]||(b.push(e),c[e.quality]=!0)}a=b}else a=[];return a};
tV=function(a){return Mi(Mi(Mi(kl(a.ra,a.g),EU(a.ra,a.g)),bV(a)),cV(a))};
bV=function(a){return a.g.Dg?Li:a.D?a.D.C:Wx(a.g)&&a.g.B.g&&Ju(a.g.g)?zU:Li};
uV=function(a,b,c){if(!a.isDisposed()&&!g.T(a.A,128)&&(c&&(a.g.sb=c),Wx(a.g))){"m"==b&&c&&Ki(c)&&(b="a");c=tV(a);if(a.g.B.g){if(a.B&&"i"!=b){var d=a.B;d.isDisposed()||(d.ka("Setting constraint: r="+b+" u="+c.g),bU(d,mna(d.F,c,b)),LT(d),d.F.g.isLocked()&&"m"==b&&d.F.L&&(d.ka("User and constraint locked, flushing everything"),eT(d.g),eT(d.A)),jT(d.g)&&ZT(d,d.g,d.A),cU(d))}}else{a:if(d=a.g.fb,c.g){for(var e=0;e<d.length;e++){var f=d[e].Kd,k=g.zi[f.video.quality];if((!c.A||"auto"!=f.video.quality)&&k<=
c.g){c=d[e];break a}}c=d[d.length-1]}else c=d[0];a.g.ba=c;eV(a,b,a.g.ba.Kd)}a.A.gb()&&pV(a)}};
g.vV=function(a){ffa(a.g.g,{cpn:a.g.clientPlaybackNonce,c:a.W.A.c,cver:a.W.A.cver});var b=Kea(a.W,a.g);a.W.D.g.o=Dt(a.g)?.5:0;a.B=new JT(a.W.D,b,a.g.g,a.g.B);a.B.subscribe("initsegment",a.tF,a);a.B.subscribe("videoformatchange",a.CF,a);a.B.subscribe("audioformatchange",a.BF,a);a.B.subscribe("error",a.cj,a);a.B.subscribe("ctmp",function(a,b){this.sa&&this.sa.Kc(a,b)},a);
a.B.subscribe("seekrequired",a.rI,a);a.B.subscribe("seektohead",(0,g.z)(a.Wc,a,window.Infinity,!0));var b=g.ab(a.da,"spacecast")||a.va,c=a.ip(),c=c.yc.isDefault?void 0:c;a.B.initialize(a.g.startSeconds,tV(a),b,c);a.g.probeUrl&&(a.B.P=a.g.probeUrl);(a.da.length||a.va)&&PT(a.B);a.va&&kV(a)};
cV=function(a){var b=a.W.experiments.o("html5_background_quality_cap"),c=a.W.experiments.o("html5_background_cap_idle_secs");return!b||hk()/1E3<c?Li:3==oj(a.W)?new Ii(0,b,!1):Li};
kV=function(a){a.W.experiments.g("html5_suspended_state")||fo(a.sa,new LU(new Kk(4),a.A))};
RU=function(a){a.B&&(a.B.dispose(),a.B=null);a.G&&(a.G.dispose(),a.G=null)};
qV=function(a){a.G||(a.B?a.B.seek(a.getCurrentTime()):g.vV(a),a.G=new qt(a.o,a.g.lengthSeconds,a.g.B.videoInfos[0].mimeType,a.g.B.g[0].mimeType,a.W.F,a.W.experiments.g("html5_deferred_source_buffer_creation")),Fea(a.G,(0,g.z)(a.JF,a)),Gea(a.G,(0,g.z)(function(a){g.VU(this,"fmt.unplayable",void 0,"msi.1;ename."+a.name)},a)));
try{return Hea(a.G)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),g.VU(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}};
Wna=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
lV=function(a){!a.g.O&&a.g.da||a.ga||(a.ga=!0,a.$("signatureexpired"))};
wV=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&a.details.isPotentialFormatUnavaliable};
aV=function(a,b){if(g.T(a.A,64)&&!b)if(g.T(a.A,8))TU(a,Rk(a.A));else if(!a.W.experiments.g("legacy_html5_unstarted_paused"))return;a.o&&(g.T(a.A,128)||(b?TU(a,Pk(a.A,256)):TU(a,Rk(a.A))),a.o.pause())};
xV=function(a){var b=a.W.experiments.g("disable_html5_stopvideo_cancel_requests");aV(a,b);a.B&&(PT(a.B),b||ST(a.B))};
gV=function(a,b){a.o&&(a.o.pause(),PU(a),RU(a),a.g&&(a.g.startSeconds=a.getCurrentTime()),a.P=window.NaN,Dk(a.o),g.T(a.A,128)||(b?TU(a,Rk(a.A)):TU(a,Nk(a.A))),a.W.O.remove(a.g.videoId))};
yV=function(a){return a.g.o&&a.g.g?Xn(a.g.g,a.getCurrentTime()):window.NaN};
Xna=function(a){if(!a.o)return 0;if(g.xl(a.g))return 1;if(ky(a.g)){if(a.isPeggedToLive())return 1;var b=a.o,c=b.ef(),b=(0<qk(c)&&b.getDuration()?c.end(c.length-1):0)-fy(a.g);a=zV(a,!0)-fy(a.g);return Math.max(0,Math.min(1,b/a))}return Fk(a.o)};
AV=function(a,b){var c={};if(b&&(a.sa?g.va(c,Tn(Yn(a.sa,"playback"))):a.g&&(c.cpn=a.g.clientPlaybackNonce),a.o&&g.va(c,Gk(a.o)),a.B&&g.va(c,lU(a.B)),a.D&&(c.drm=Qna(a.D)),c.state=a.A.o.toString(16),g.T(a.A,128)&&(c.debug_error=a.A.g),Bl(a)&&(c.preroll="1"),a.g.Eb&&(c.ismb=a.g.Eb),a.g.isLowLatencyLiveStream&&(c.lowlatency="1"),a.g.o&&(a.g.g&&Xu(a.g.g)&&(c.segduration=Xu(a.g.g)),a.L))){var d=a.L.C;c.lat=d.g[d.o]||0}c.debug_videoId=a.g.videoId;return c};
SU=function(a,b){a.$("internalvideodatachange",b||"dataupdated",a,a.g)};
Una=function(a){(0,g.H)("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.na.U(this.o,a,this.DJ,this)},a);
a.W.ue&&a.o.tg()&&(a.na.U(a.o,"webkitplaybacktargetavailabilitychanged",a.dE,a),a.na.U(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.eE,a))};
BV=function(a){var b=a.getCurrentTime(),c=a.g;!fw("pbs",a.F.g)&&Xv.measure&&Xv.getEntriesByName&&(Xv.getEntriesByName("mark_nr")[0]?Yv("mark_nr"):Yv());c.videoId&&a.F.info("docid",c.videoId);c.eventId&&a.F.info("ei",c.eventId);c.clientPlaybackNonce&&a.F.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.F.info("start",c.startSeconds.toString());a.o&&a.o.Fh()&&a.F.info("paused",1);c.A?a.F.info("fmt",Bi(c.A)):a.F.info("fmt","-1");c.Cd&&a.F.info("yt_pre",a.ac?"2":"1");a.W.P&&a.F.info("yt_fs","1");
a.F.info("cmt",b.toFixed(3));if(a.B){b=a.B;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.ba),c.length&&(c=c[0],NT(b,"vri",c.fetchStart),NT(b,"vdns",c.domainLookupEnd),NT(b,"vreq",c.requestStart),NT(b,"fvb",c.responseStart),NT(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.N),c.length&&(c=c[0],NT(b,"ari",c.fetchStart),NT(b,"adns",c.domainLookupEnd),NT(b,"areq",c.requestStart),NT(b,"avb",c.responseStart),NT(b,"arc",c.responseEnd)));
var b=b.va,d;for(d in b)a.F.o(d,b[d])}};
Yna=function(a){if(a.pa&&a.o){var b=a.o.gk();b.length&&b.end(0)>a.pa&&(a.o.Ml(a.pa),a.pa=window.NaN,a.ib=a.na.U(a.o,"canplay",a.WE,a))}};
DV=function(a,b){if(a.o&&a.g){var c=a.getCurrentTime();if(mV(a)&&a.A.gb())a.W.experiments.g("html5_live_pin_to_tail")?a.Wc(fy(a.g),!0):a.Wc(window.Infinity,!0);else{if(a.isPeggedToLive()){var d=zV(a,!1);if(c<d-CV(a)){if(a.A.gb()&&(a.g.Xa||g.xl(a.g))){a.Wc(window.Infinity,!0);return}a.g.o&&$U(a,!1)}if(a.W.experiments.g("html5_use_adaptive_live_readahead")&&a.O){var d=a.O,e=a.ds();d.A++;3>d.A||(d.o.push(e),50<d.o.length&&d.o.shift(),d.ka("Recorded buffer health sample: "+e))}}else a.g.o&&nV(a,c)&&$U(a,
!0);if(a.B&&(d=a.B,d.o)){d.D!=c&&d.resume();if(d.O&&!ut(d.o)){var e=d.D<=c&&c<d.D+10,f=0<=ok(d.o.o.buffered,d.D+JT.g);e&&f&&(d.O=!1)}d.O||(d.D=c,WS(d.g,c),WS(d.A,c));dU(d)}5<c&&(a.g.startSeconds=c);(d=lr())?nr(a.Ia):g.ch(a.Ia);!g.Tk(a.A)&&a.o.Fh()||g.T(a.A,128)||(e=(0,g.z)(a.ZB,a),a.Ia=0==a.o.fk().length?d?mr(e,100):g.ah(e,100):d?mr(e,500):g.ah(e,500));a.g.re=c;!b&&a.A.gb()&&a.sa&&(c=a.sa,c.A.update(),jy(c.g.videoData)&&c.g.videoData.pa&&!c.O&&An(c.A)>=c.g.videoData.pa&&(c.B&&c.g.videoData.pa&&(d=
Yn(c,"delayplay"),d.ab=!0,d.send(),c.O=!0),co(c)),d=c.V,d.A||!d.g.Dd||d.g.pe||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=An(d.B)>=e),d&&c.V.send());a.$("progresssync",a,b)}}};
TU=function(a,b){var c=a.A;if(b.o!=c.o||b.g!=c.g){c=new LU(b,a.A);a.A=b;var d=!a.Aa.length;a.Aa.push(c);if(0<eo(c,1)&&g.T(a.A,8)&&!g.T(a.A,64)&&a.B){var e=a.B;e.ka("Rebuffering.");e.V=!0;/^rq/.test(a.g.clientPlaybackNonce)&&a.o&&a.sa&&a.sa.Kc("rbinfo","rs="+a.o.oe())}0>eo(c,8)&&(g.ch(a.ba),a.ba=window.NaN,$U(a,!1));0<eo(c,8)&&!a.g.O&&(0,window.isNaN)(a.ba)&&(a.ba=g.ah((0,g.z)(a.ku,a),15E3));0<eo(c,32)&&$U(a,!1);g.T(c.state,2)&&ky(a.g)&&(e=a.getCurrentTime(),a.g.lengthSeconds!=e&&(a.g.lengthSeconds=
e,SU(a)),DV(a,!0));0<eo(c,2)&&a.to();a.W.experiments.g("html5_suspend_manifest_on_pause")&&a.g.g&&a.g.o&&(0>eo(c,8)?(e=a.g.g,e.B&&e.B.stop()):0<eo(c,8)&&a.g.g.resume());a.W.experiments.g("html5_check_for_reseek")&&0<eo(c,1)&&(a.ab=g.ah((0,g.z)(a.lI,a),5E3));a.sa&&fo(a.sa,c);if(d)try{for(d=0;d<a.Aa.length;d++){var c=a.Aa[d],f=a.C,e=c;if(f.Qf&&!f.G&&(f.A(),g.T(e.g,16))){var e=f,k=ep(e.g,Math.max(e.B-2E3,0));null!=k&&0x7ffffffffffff>k&&e.C.start()}a.$("statechange",c)}}finally{a.Aa.length=0}}};
EV=function(a){g.T(a.A,2)||g.T(a.A,32)||(a.P=window.NaN)};
$U=function(a,b){a.g.o&&a.wa!=b&&(a.wa=b)};
Vna=function(a,b){FV(a,b);a.W.fi?g.ah((0,g.z)(function(){Ak(this.o)},a),0):Ak(a.o)};
FV=function(a,b){a.F.o("vta");g.cw("vta",void 0,"video_to_ad");wk(a.o,b);a:{var c=a.g;if(c.A&&c.A.$e&&a.o)if((c=a.g.H)&&a.o.tg()){if(a.D)if("fairplay"==c.g)PU(a);else break a;var d=a.o.oa();a.D=new AU(d,c,a.W.experiments,a.g.Jh,a.g.drmSessionId);a.D.subscribe("newsession",a.ZF,a);a.D.subscribe("licenseerror",a.vF,a);a.D.subscribe("qualitychange",a.wF,a);a.D.subscribe("heartbeatparams",a.CJ,a);c=a.D;d=a.g.oauthToken;c.J=d;c.$("oauthtoken",d)}else g.VU(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1")}a.G&&pr(4);g.ch(a.ba);a.g.O||(a.ba=g.ah((0,g.z)(a.ku,a),15E3))};
PU=function(a){a.D&&(a.D.dispose(),a.D=null)};
zV=function(a,b){if(!a.o)return 0;if(!a.g.o){var c=a.g;return c.g&&!(0,window.isNaN)(Vu(c.g))?Vu(c.g):c.lengthSeconds}if(b&&(a.isPeggedToLive()||g.xl(a.g)))return a.getCurrentTime();if(a.B){var c=fy(a.g),d;d=a.B;d=Math.floor(Math.min(d.A.getDuration(),d.g.getDuration()));a.O&&(d-=jS(a.O));return Math.max(d,c)||0}c=a.o.gk();return(1>c.length?window.NaN:c.end(c.length-1))||0};
GV=function(a,b){a.H=b;a.o&&a.o.Dp(b)};
nV=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=zV(a,!1)-CV(a)};
CV=function(a){if(!a.g.g)return window.NaN;var b=a.W.experiments.o("html5_allowable_liveness_drift_chunks")||2;0<b&&!a.wa&&b--;a=Xu(a.g.g);return(0,window.isNaN)(a)?b:b*a};
mV=function(a){return a.getCurrentTime()<fy(a.g)-15};
IV=function(a,b){this.g=a;this.o=g.qa(b)?b:null;if(g.ab(HV,this.g)){if(!g.qa(this.o)||0>this.o)throw Error("Must have valid offset");}else if(null!==this.o)throw Error("Must not have offset");};
JV=function(a){var b=a.o;if(null!==b)return b;switch(a.g){case 1:return 0;case 3:return-1;default:return-100}};
Zna=function(a,b){var c=a.g,d=b.g;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.o,f=b.o;return e!=f?null===e?1:null===f?-1:e-f:c-d};
$na=function(){var a;a:{try{a=window.top.location.href}catch(b){a=2;break a}a=null!=a?a==window.document.location.href?0:1:2}a={dt:mN,flash:ZB||"0",frm:a};EB(a);return a};
KV=function(a){this.o=a};
LV=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
MV=function(a,b){if(a){var c="getErrorCode"in a?a.vb():null;c?b.error_code=c:(c="getMessage"in a&&ra(a.getMessage)?a.$c():a.message,c=Ea(c||"",50),b.error_message=c)}};
NV=function(a,b){if(a){var c=lK(a).reverse();b.ad_id=ib(c,jK(a)).join(",");c=nK(a).reverse();b.ad_sys=ib(c,cK(a)).join(",");c=KI(a);null!=c&&(b.aqi=c)}};
OV=function(a,b){if(a[b])return LV(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return LV(a[d]);return!1};
PV=function(a,b,c){var d=new MA;d.Hg=b.baseYtUrl;d.Vg=c.videoId;d.Qo=!0;d.Qv=!0;d.Rv=a.O;d.showContentThumbnail=a.showContentThumbnail;d.lh={};c.Ib&&(d.lh.ctrl=c.Ib);c.Oa&&(d.lh.ytr=c.Oa);c.tc&&(d.lh.ytrcc=c.tc);c.isMdxPlayback&&(d.lh.mdx="1");a.B?(d.lm=!0,d.Lr=!0,d.showContentThumbnail=!1,d.No=!0,d.Oo=!0,d.Qo=!1):a.C&&(d.lm=!0);d.Qs=a.H;return d};
SV=function(a){var b=new cN;b.B=a.o.Aa;var c=a.app.B.Sa();b.Xg=c.width;b.Wg=c.height;b.$d=c.width;b.Zd=100;b.Or=!0;c=new iz;c.g=(0,g.z)(QV(a).experiments.g,QV(a).experiments);c.o=(0,g.z)(QV(a).experiments.o,QV(a).experiments);c.A=(0,g.z)(QV(a).experiments.H,QV(a).experiments);b.xl=c;if(c=b.Or?hk():-1)b.C=c;a.o.tagForChildDirected&&(b.il=!0);a.o.sb&&(b.pk=!0);c=RV(a);b.Yb={CA_TYPE:NE?"flash":"image",CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,EID:c.eventId,LACT:aoa(a),VIS:boa(a)};g.Eb($na(),function(a,
c){b.Yb[c.toUpperCase()]=a});
b.afcRmFallback=a.o.J;b.language=QV(a).Ua;var d=0;b.Hj=function(){var b=new KV(a),c=coa(QV(a).experiments);doa(c,QV(a).experiments,b,d);d++;return c};
return b};
coa=function(a){function b(a){if(d)return"ERR_BID";throw a;}
var c=a.g("html5_serverside_call_server_on_biscotti_timeout"),d=a.g("html5_serverside_call_server_on_biscotti_error"),e=null,f=null;Sw().then(function(a){e=a},function(a){c&&a.g?e="NO_BID":d?e="ERR_BID":f=a});
if(null!=e)return e;if(null!=f)return f;var k=a.o("html5_serverside_biscotti_id_wait_ms");if(0==k)return c?"NO_BID":d?"ERR_BID":TV;if((0,window.isNaN)(k))return a=g.vd(Sw(),b),g.vd(a,g.v),a;var l;a=new g.ld(function(a,b){l=new g.Id(function(){c?a("NO_BID"):b(TV)},k);
l.start()});
a=g.vd(Gaa([Sw(),a]),b);Jaa(g.vd(a,g.v),function(){l.dispose()});
return a};
doa=function(a,b,c,d){function e(a){a==TV||a instanceof Mw&&a.g?f({"bid.type":"timeout","bid.count":d,"bid.msg":a.toString(),"bid.timeout":b.o("html5_serverside_biscotti_id_wait_ms")}):f({"bid.type":"error","bid.count":d,"bid.msg":a.toString()})}
if(b.g("html5_serverside_get_biscotti_id_from_client")){var f=(0,g.z)(c.g,c,["html5_serverside_get_biscotti_id_from_client"],"coldwatch");jd(a)?a.then(null,e):a instanceof Error&&e(a)}};
aoa=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:hk().toString()}}};
boa=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:oj(QV(a)).toString()}}};
eoa=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;var b=a.Oc?a.Oc.g:null;return null==b||0>b?"0":Math.ceil(.001*(0,g.G)()-b).toString()}}};
UV=function(a,b,c,d){this.o=this.B="";this.A=a;this.F=b;this.g=c;this.D=d};
VV=function(a){var b={};b.l_ns=a.F;b.l_state=a.D;b.break_type=a.A.g;b.sst=JV(a.A);b.sidx=0;a.B&&(b.at=a.B);a.o&&(b.ad_id=a.o);return b};
WV=function(){g.L.call(this);this.o=new g.Id((0,g.z)(this.D,this),1E3);g.M(this,this.o);this.B=this.A=0;this.g=Iaa();this.C=!1};
ZV=function(){var a=u("yt.www.watch.ads.loadAfc");ra(a)?(a(),XV=!0):YV=!0};
$V=function(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"};
bW=function(){var a=u("window.google_show_companion_ad"),b;b=u("yt.www.watch.ads.getGlobals");ra(a)&&ra(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():aW=!0};
eW=function(){bW();cW();return dW()};
dW=function(){fW||(fW=new WV);var a=fW;a.C||(a.o.start(),a.C=!0);return a.g.g};
cW=function(){fW&&(fW.dispose(),fW=null)};
gW=function(){var a=u("yt.www.watch.ads.setCompanion");a&&a()};
foa=function(a){var b=u("yt.www.watch.ads.showForcedMpu");b&&b(a)};
hW=function(a,b){this.o=a;this.g=b};
iW=function(a){return a.g-a.o};
jW=function(a,b){return a.o+b*iW(a)};
kW=function(a,b,c){return iW(a)?g.te((b-a.o)/iW(a),0,1):null!=c?c:window.Infinity};
lW=function(){this.o=this.position=this.B=this.g=this.C=this.A=this.width=window.NaN};
mW=function(a,b,c,d,e){var f=b.Jt/b.rows,k=Math.min(c/(b.Lt/b.Mc),d/f),l=b.Lt*k,m=b.Jt*k,l=Math.floor(l/b.Mc)*b.Mc,m=Math.floor(m/b.rows)*b.rows,n=l/b.Mc,q=m/b.rows,t=-b.VA*n,w=-b.oI*q;e&&45>=f&&(q-=1/k);n-=2/k;a=a.style;a.width=n+"px";a.height=q+"px";e||(d=(d-q)/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+") "+t+"px "+w+"px/"+l+"px "+m+"px";if(e)return new g.ze(n,q)};
nW=function(a,b,c,d){g.en.call(this);this.g=a;this.o=d;this.videoData=null;this.adType=c;this.adSystem=b};
goa=function(a,b,c){this.g=a;this.o=b;this.A=c||0};
oW=function(a){var b=[];(0,g.H)(a.split("_"),function(a,b){this[b]=Qa(a)},b);
return new goa(Kb(hoa,b[0])?b[0]:0,Kb(ioa,b[1])?b[1]:0,Kb(joa,b[2])?b[2]:0)};
koa=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=g.v;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null;this.whyThisAdClosed=this.whyThisAdClicked=this.muteAd=this.sendAdsPing=g.v};
pW=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",g.Q("YTP_ADVERTISEMENT")]],["div","ad-container"]];g.W.call(this,b);this.A=a;this.B=this.o=null};
qW=function(a){a.o||(a.o=a.ua["ad-container"],g.V(a.A).dc&&(!qx||g.oc("10.0")||!g.V(a.A).experiments.g("disable_mweb_iphone_ad_click_handling_functionality")||g.V(a.A).experiments.g("mweb_playsinline")||g.V(a.A).experiments.g("mweb_playsinline_ads_backend"))&&g.O(a.o,"ad-container-single-media-element-annotations"));return a.o};
rW=function(a){if(!a.B){var b=g.Re("div");Nd(b,["video-click-tracking","ad-video"]);qW(a).appendChild(b);a.B=b}return a.B};
loa=function(a){this.g=a};
moa=function(a){switch((0,window.parseInt)(a.toString(),10)){case 12:return 2;case 13:case 53:return 3;case 14:return 4;case 15:return 5;case 22:case 52:case 61:return 7;case 30:return 8;case 32:case 33:return 9;case 51:case 55:case 60:case 90:return 10;case 54:return 1;case 56:return 11;case 57:return 12;case 58:return 13}return 0};
sW=function(a){switch((0,window.parseInt)(a.toString(),10)){case 2:return 1;case 3:case 4:return 2;case 5:return 3;case 6:return 4;case 7:return 5;case 15:case 100:return 6;case 14:return 7;case 777:return 8;case 19:return 10;default:return 0}};
noa=function(a,b){this.C=null;this.A=window.NaN;this.o=null;this.g=a;this.B=b};
tW=function(a,b,c){a.g.$("AD_LOGGING_EVENT",b,c)};
wW=function(a,b,c){uW(a);var d=vW(a);c&&g.va(d,c);d.ad_error=b;tW(a,7,d)};
vW=function(a){var b={},c=a.g.videoData,d=a.g.Yj(),e=a.g.mj();NV(a.g.xb(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=g.Sf(e),b.ad_dom=c,(c=a.B.o)&&c.C&&(b.ad_v_url=e.substr(0,512)));e=a.g;(e=e.o?e.o.Ce():null)&&(b.ad_cpn=e);b.format=a.g.ne();b.at=a.g.mg();b.ad_mt=Math.round(1E3*Math.max(ooa(a.g),0));return b};
uW=function(a){a.C||(a.C="InstreamAdDisplay ("+a.g.ne()+")")};
xW=function(a,b){g.L.call(this);this.B=Math.max(0,a);this.A=this.o=0;this.C=b;this.g=window.NaN};
zW=function(a,b,c,d,e,f,k){nW.call(this,b,a,2,c);this.L=!1;this.F=this.P=this.O=null;this.g.subscribe("control_toggle_play_pause",this.kx,this);this.g.subscribe("control_play",this.lo,this);this.g.subscribe("control_pause",this.ko,this);this.C=new noa(this,this.g);this.A=new Oo(this);this.B=yW(b);this.B.subscribe("statechange",this.ix,this);this.B.subscribe("internalAbandon",this.Nt,this);this.B.subscribe("internalvideodatachange",this.jx,this);this.D=this.G=!1;this.V=d;this.N=!!e;this.Z=!!f;this.J=
k;this.H=new xW(15E3,(0,g.z)(this.abort,this));this.ba=b.o.O&&"3"==QV(b).B};
BW=function(a,b){if(!a.isDisposed()&&a.ba){var c=a.g.app.B;c.G=!b;AW(c)}};
EW=function(a){nw("ad_to_video",["pbresume"]);a.J&&g.dw("yt_abt",a.J,"ad_to_video");a.videoData&&a.videoData.clientPlaybackNonce&&g.dw("ad_cpn",a.videoData.clientPlaybackNonce,"ad_to_video");a.videoData&&a.videoData.videoId&&g.dw("ad_docid",a.videoData.videoId,"ad_to_video");g.cw("adc",void 0,"ad_to_video");gV(yW(a.g));CW(a.g,0);DW(a.g,0);a.$("adEnd",a);BW(a,!0)};
FW=function(a,b){QV(a.g).experiments.g("html5_ad_error_releases")?gV(a.B):NU(a.B);CW(a.g,0);a.$("adError",b)};
ooa=function(a){return a.B?a.B.getCurrentTime():0};
GW=function(a){a=a.xb();return a?(a=a.G.get("why_this_ad"))?{menuTitle:a.B,closeButton:a.A,targetingReasonHeader:a.C,targetingReasons:g.jb(a.D),adSettingsLink:g.jb(a.o),controlText:a.G,continueButton:a.F,cancelButton:a.J}:null:null};
HW=function(a){a=a.xb();if(!a)return null;a=a.G.get("mute");if(!a)return null;for(var b=oM(a),c=[],d=0;d<b;d++)c.push({label:a.o[d].label,url:a.o[d].url});return{goneText:a.A,questionText:a.C,undoText:a.D,hoverText:a.B,surveyOptions:c}};
poa=function(a,b){this.g=a;this.C=b;this.g.ne();this.o=this.B=0;this.A=null};
IW=function(a,b,c){a.g.$("AD_LOGGING_EVENT",b,c)};
JW=function(a){var b={};NV(a.g.xb(),b);a.B&&a.o&&(b.ot=a.o-a.B);var c;c=a.C.isFullscreen()?2:a.C.app.ra?1:0;b.ad_ps=c;b.format=a.g.ne();b.at=a.g.mg();return b};
KW=function(a,b,c,d){nW.call(this,b,a,1,c);this.A=null;this.D=!1;this.G=null;this.C=new poa(this,b);this.B=new Oo(this);this.F=!!d};
LW=function(a,b,c,d){g.L.call(this);this.J=null;this.F=a;this.o=b.Gb;this.G=b;this.H=b.getId();this.g=c;this.C=d;this.A=new UV(this.o,this.F,c,d);this.Wa=null;this.O=new Go(this);this.B=new Go(this);this.L=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
MW=function(a,b){a.J=b;var c=b.ne();a.A.B=c};
NW=function(a,b){var c=u("yt.www.watch.ads.setAdId");c&&c(b);a.A.o=b};
OW=function(a){eW().then(function(){this.A.C()},g.v,a)};
qoa=function(a){this.g=a};
PW=function(a){nW.call(this,a,2,3,null)};
QW=function(a,b,c){LW.call(this,2,a,b,c);this.D=new qoa(this.g.o);$V()};
RW=function(a,b,c){this.g=this.D="";this.G=null;this.B=!1;this.C=this.o="";a&&(this.D=a,this.isLiveStream=b.isLiveStream,this.B=b.Oa,this.F=c,b=this.D,c=b.indexOf(";sz="),a=g.zh(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{PA:b[0],$H:b[1],cI:a})&&(this.o=a.PA,this.C=a.$H,this.G=a.cI)};
SW=function(a,b,c){this.o=a?a:"";this.B=b;this.g=c.g("fix_gpt_pos_params")};
TW=function(a,b,c,d){KW.call(this,1,a,b,d);this.H=c};
UW=function(a,b,c){LW.call(this,1,a,b,c);a=this.g.o;this.D=a.Ua?new SW(a.adTag,this.H,QV(this.g).experiments):new RW(a.adTag,a,this.H)};
VW=function(a,b){this.C=[];this.O=a;this.L=b||null;this.B=this.g=!1;this.A=void 0;this.H=this.N=this.F=!1;this.D=0;this.o=null;this.G=0};
XW=function(a,b,c){a.g=!0;a.A=c;a.B=!b;WW(a)};
ZW=function(a){if(a.g){if(!a.H)throw new YW;a.H=!1}};
aX=function(a,b,c){$W(a,b,null,c)};
$W=function(a,b,c,d){a.C.push([b,c,d]);a.g&&WW(a)};
bX=function(a){return ph(a.C,function(a){return ra(a[1])})};
WW=function(a){if(a.D&&a.g&&bX(a)){var b=a.D,c=cX[b];c&&(r.clearTimeout(c.Da),delete cX[b]);a.D=0}a.o&&(a.o.G--,delete a.o);for(var b=a.A,d=c=!1;a.C.length&&!a.F;){var e=a.C.shift(),f=e[0],k=e[1],e=e[2];if(f=a.B?k:f)try{var l=f.call(e||a.L,b);g.p(l)&&(a.B=a.B&&(l==b||a.isError(l)),a.A=b=l);if(jd(b)||"function"===typeof r.Promise&&b instanceof r.Promise)d=!0,a.F=!0}catch(m){b=m,a.B=!0,bX(a)||(c=!0)}}a.A=b;d&&(l=(0,g.z)(a.J,a,!0),d=(0,g.z)(a.J,a,!1),b instanceof VW?($W(b,l,d),b.N=!0):b.then(l,d));c&&
(b=new dX(b),cX[b.Da]=b,a.D=b.Da)};
YW=function(){ya.call(this)};
eX=function(){ya.call(this)};
dX=function(a){this.Da=r.setTimeout((0,g.z)(this.o,this),0);this.g=a};
fX=function(a,b){var c=b.o;this.D=c.forceAdUrl;var d=0,c=c.forceAdType.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);LW.call(this,2,a,b,d)};
gX=function(){this.C=new g.W(["button",["ad-carousel-nav-button","ad-carousel-nav-prev"],{type:"button",onclick:"return false;"},["span",["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],{"data-tooltip-text":"Prev",title:"Prev"}]]);g.M(this,this.C);this.C.S("click",this.G,this);this.B=new g.W(["button",["ad-carousel-nav-button","ad-carousel-nav-next"],{type:"button",onclick:"return false;"},["span",["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],{"data-tooltip-text":"Next",title:"Next"}]]);
g.M(this,this.B);this.B.S("click",this.F,this);g.W.call(this,["div","ad-carousel",["div","ad-carousel-clip",["ul",["ad-carousel-list","ad-carousel-list-animation"],"{{items}}"]],this.C,this.B]);this.D=this.ua["ad-carousel-list"];this.A=0;this.o=[]};
roa=function(a,b){a.clear();a.o=(0,g.S)(b,function(a){var b=new g.W(["li","ad-carousel-listitem",["div","ad-carousel-item",a]]);g.M(b,a);return b});
a.Ea("items",a.o)};
iX=function(a){a.D&&g.Si(a.D,"left",(2>a.o.length?0:-a.A*a.o[1].element.clientWidth)+"px");a.C.Ab(0<a.A);a.B.Ab(a.A<a.o.length-hX(a))};
hX=function(a){return 2>a.o.length?1:Math.round((a.element.clientWidth-a.o[0].element.clientWidth)/a.o[1].element.clientWidth)+1};
lX=function(a,b){var c=MJ(a),d=NJ(c),e=["iv-btp-small-card"];b&&e.push("yt-uix-hovercard-target");var f={href:QJ(aM(d)),target:"_blank"},k=["div",["iv-btp-card-image","yt-uix-hovercard-anchor"],["span"],["div","iv-btp-card-image-aligned",["img",{src:OJ(c).getImageUrl()}]]],l=["div","iv-btp-card-info",["span","iv-btp-card-action",PJ(d)],jX(a)],m;if(b){m=MJ(a);var n=NJ(m);m=["div",["yt-uix-hovercard-content","iv-btp-hovercard"],["div","iv-btp-hovercard-text-box",["a",null,{href:QJ(aM(n)),target:"_blank"},
["div",["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],m.Zc()]],["div","iv-btp-hovercard-info",["span","iv-btp-hovercard-action",PJ(n)],jX(a)],kX(a)]]}else m=["div"];e=["div",e,{"data-position":"bottomright","data-orientation":"vertical"},k,l,m];c=["div","iv-btp-large-card",["div","iv-btp-card-image",["span"],["div","iv-btp-card-image-aligned",["img",{src:OJ(c).getImageUrl()}]]],["div","iv-btp-card-info",["div","iv-btp-card-text-box",["div","iv-btp-card-text-valign",["div",["yt-ui-ellipsis",
"yt-ui-ellipsis-4","iv-btp-card-headline"],c.Zc()]]],["span","iv-btp-card-action",PJ(d)],jX(a),kX(a)]];d=["div","iv-btp-impressions"];k=NJ(MJ(a));l={TRIGGER_TYPE:"YOUTUBE_DRAWER_AUTO_OPEN"};for(m=0;m<mI(k,"event");m++)n=new RL(lI(k,"event",m)),7==n.Pb()&&(n=yp(kI(n,"base_url"),l),d.push(["img",{src:n}]));g.zy.call(this,["div","iv-btp-card",["a","iv-btp-card-content",f,["div",null,e,c,d]]])};
kX=function(a){a=NJ(MJ(a));return.01>jI(a,"rating",0)?["div"]:["div","iv-btp-card-review",["div","iv-btp-card-rating",["span","iv-btp-card-rating-bg",["span","iv-btp-card-rating-fg",{style:"width: "+Math.floor(100*jI(a,"rating",0)/5)+"%;"}]]],["span","iv-btp-card-reviews",kI(a,"review_text")]]};
jX=function(a){return["div","iv-btp-card-merchant",["span","iv-btp-card-merchant-text",kI(NJ(MJ(a)),"merchant")]]};
mX=function(a){this.F=a.g("pla_shelf_hovercard");this.o=new gX;this.C=new g.ir(this);g.M(this,this.C);this.D=new g.Id(this.Io,200,this);g.M(this,this.D);a=["div","iv-btp-companion",["div","iv-btp-block-clicks"],["div","iv-btp-attribution",["span","iv-btp-title","{{title}}"],["div",["yt-uix-hovercard","ad-info-container"],["span","iv-btp-sponsored",g.Q("YTP_SPONSORED"),["span","yt-uix-hovercard-target",{"data-position":"topright","data-orientation":"horizontal"},["span","ad-info-icon"]]],["div","yt-uix-hovercard-content",
["span","ytp-ad_settings",g.Q("YTP_SPONSORED_PRODUCT_INFO")]]]],this.o];g.zy.call(this,a);this.B=this.ua["iv-btp-block-clicks"];this.A=new g.Id(g.B(function(a){R(a,!1)},this.B),1E3);
g.M(this,this.A);this.C.U(window,"resize",this.UB)};
soa=function(a,b){a.clear();R(a.B,!0);var c=(0,g.S)(b,g.B(function(a,b){return new lX(b,a)},a.F));
a.Ea("title",0<b.length?kI(b[0],"teaser_text"):"");roa(a.o,c);a.Io()};
toa=function(a){a=MJ(a);var b=NJ(a);return{plaShelfItemRenderer:{headline:nX(a.Zc()),merchant:nX(kI(b,"merchant")),image:{thumbnails:[{url:OJ(a).getImageUrl()}]},priceText:nX(PJ(b)),reviewText:nX(kI(b,"review_text")),rating:jI(b,"rating",0),clickthroughEndpoint:{webNavigationEndpointData:{url:QJ(aM(b))},urlEndpoint:{url:QJ(aM(b)),target:"TARGET_NEW_WINDOW"}}}}};
nX=function(a){return{runs:[{text:a}]}};
voa=function(){oX||(oX=uoa()?pd():new g.ld(function(a){g.ei("watchAdsInit",a)}));
return oX};
uoa=function(){var a=u("yt.www.watch.ads.promotionShelfShow");return ra(a)};
woa=function(a){var b=u("yt.www.watch.ads.promotionShelfClear");b&&b();b=u("yt.www.watch.ads.promotionShelfShow");null!=b&&b(a)};
pX=function(a,b){nW.call(this,a,14,14,b);this.A=new mX(QV(this.g).experiments);g.M(this,this.A)};
qX=function(a){return(0,g.Od)(a.o.xb().C,function(a){return!!jI(a.Ge(),"show_in_promotion_shelf",void 0)})};
rX=function(a,b,c){LW.call(this,14,a,b,c)};
sX=function(a,b,c){LW.call(this,14,a,b,c)};
xoa=function(a,b,c,d,e){this.B=a;this.o=b;this.g=c;this.W=QV(this.B);this.C=d;this.D=RV(this.B).lengthSeconds;this.F=e;this.A="html5";"embedded"==this.W.g?this.A="html5_embed":qx||px?this.A="html5_ios":Nh("android")?this.A="html5_android":Xh()?this.A="html5_wp":Qh()?this.A="html5_ps3":"leanback"==this.W.g?(a=(Pb(window,"environment","brand")||"").toLowerCase(),b=(Pb(window,"environment","model")||"").toLowerCase(),this.A="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):this.A=Wh()?
"html5_wii":"html5_desktop"};
vX=function(a){return tX(a.o)?"preroll":uX(a.o)?"postroll":"midroll"};
xX=function(a){return(a=a.B.A)?ph(a.ub,function(a){return wX(a)||uX(a)}):!1};
yX=function(a,b){KW.call(this,4,a,b)};
zX=function(a,b,c){LW.call(this,4,a,b,c);var d=this.g.o;this.D=E(d.Na);var e=RV(this.g)&&RV(this.g).spacecastModule;this.N=new xoa(b,a,d,c,!!e)};
AX=function(a,b){this.o=a;this.g=b};
yoa=function(a){return 0<(a.g&3)};
BX=function(a,b,c,d,e){g.en.call(this);this.F=!0;this.o=!1;this.isVisible=!0;this.B="unloaded";this.G=!1;this.Da=b;this.A=a;this.Gb=c;this.D=d;this.C=this.g=null;this.H=!!e};
EX=function(a){return tX(a)?CX(a)&&DX(a)?-0x8000000000000:0:g.qa(a.Gb.o)?1E3*JV(a.Gb):0x8000000000000};
zoa=function(a){var b=!QV(a.A).experiments.g("disable_fetching_previous_nonadjacent_midrolls");return tX(a)||b&&a.A.g&&1E3*a.A.g.getCurrentTime()>=EX(a)?!1:Sq(a.D,function(a){switch(a.Pb()){case 1:case 2:case 5:return!0;default:return!1}})};
CX=function(a){return"loaded"==a.B||"error"==a.B};
tX=function(a){return 1==a.Gb.g};
DX=function(a){if(!CX(a))throw Error("Preroll status is undefined before ad load.");return tX(a)&&a.o};
wX=function(a){return 2==a.Gb.g};
uX=function(a){return 3==a.Gb.g};
LX=function(a){a.B="loading";tX(a)&&!ph(a.D,yoa)&&jn(a.A);if(a.H)a.B="loaded",a.o=!0,FX(a);else{var b=a.D.shift();b?(tX(a)&&GX(a.A,"nl"),b=b.create(a,a.A),g.M(a,b),b.load()):QV(a.A).experiments.g("request_mpu_on_unfilled_ad_break")&&a.A.o.F&&5!=a.Gb.g?HX(a,new PW(a.A),a.Gb):(IX(a.A,2,JX(a,{})),KX(a,!1),a.B="error",FX(a))}};
MX=function(a){a.g&&(a.g.Ka("adEnd",a.Rt,a),a.g.Ka("adError",a.Zw,a),a.g.Ka("AD_LOGGING_EVENT",a.ax,a),a.g.Ka("select",a.Yw,a),a.g.Ka("adCompanionInitialized",a.$w,a))};
HX=function(a,b,c){a.g=b;a.Gb=c;g.M(a,a.g);0==a.Da&&(b=a.g.mg(),a.A.V.at=b);a.g instanceof zW?a.o=!0:a.g instanceof PW?a.isVisible=!1:a.g instanceof yX?a.isVisible=!1:a.g instanceof TW&&(a.isVisible=!1);a.B="loaded";FX(a)};
FX=function(a){a.$("adBreakComplete",a)};
KX=function(a,b){a.C&&(a.C.sh({FILLED_OPPORTUNITY:b?1:0}),a.C.dispose(),a.C=null)};
JX=function(a,b){b.break_type=a.Gb.g;b.sst=JV(a.Gb);b.sidx=0;return b};
NX=function(a){var b=0;a.P&&(b|=1);a.N&&(b|=2);var c=0;a.G&&a.L&&(c=4);a=new If;a.set(3,b);a.set(4,c);return a};
OX=function(a,b){var c=[];if(a.ba)return c.push("pla"==(a.forceAdType||"").toLowerCase()?new AX(8,16):new AX(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.fa&&c.push(new AX(7,16)),c;if(a.ca){var d=0;if(a.A||a.D)d|=1;a.da&&(d|=4);a.F&&(d|=8);c.push(new AX(5,d))}a.Z&&(d=0,a.A&&(d|=1),a.D&&(d|=2),a.da&&a.G&&(d|=4),a.F&&a.G&&(d|=8),d&&c.push(new AX(2,d)));var d=NX(a),e=d.get(3);e&&c.push(new AX(1,e));!a.independentBreakOffsets&&a.fa&&c.push(new AX(7,16));(d=d.get(4))&&c.push(new AX(1,d));return c};
PX=function(a){this.g=a};
QX=function(a){var b=[];(0,g.H)(Aoa(a),function(a,d){var c=new BX(this.g,d,a,OX(this.g.o,a.g));b.push(c)},a);
return b};
Aoa=function(a){var b=a.g.o;a=[];if(b.Ta)for(var c=b.Ta.split(","),d=0;d<c.length;d++){var e=Qa(c[d]),e=0>e?new IV(3):0<e?new IV(2,e):new IV(1);a.push(e)}else a=Boa;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),d=0;d<b.length;d++)a.push(new IV(5,Qa(b[d])));ub(a,Zna);return a};
Foa=function(a,b){this.W=a;this.B=this.W.isMobile;this.C="leanback"==this.W.g;this.o=this.B||this.C;this.O=!this.C&&!nj(a);this.A=LV(b.instream);this.isLiveStream=1==b.livestream;this.D=LV(b.trueview);this.V=LV(b.aftv);this.Ta=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.Ia=b.cafe_experiment_id;this.adTag=b.ad_tag;this.ib=!!b.adtest;this.afvAdTag=b.afv_ad_tag;Coa(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.ob=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.A||this.D)&&!this.W.V;this.Ja=b.cid;this.va=Mv(b);this.excludedAds=b.excluded_ads;this.fadeInDurationMilliseconds=(0,window.parseInt)(b.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=(0,window.parseInt)(b.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=(0,window.parseInt)(b.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=(0,window.parseInt)(b.fade_out_start_milliseconds,10)||0;
this.Aa=(0,window.parseInt)(b.forced_skip_offset,10);this.forceAdType=b.force_ad_type;this.forceAdUrl=b.force_ad_url;this.Na=b.freewheel_ad_tag;this.gender=Sb(Doa,function(a){return a==b.ad_gender});
this.la=b.dbp;this.J=LV(b.afc_rm_fallback);this.Oa=!!b.mpu;this.L=LV(b.afv)&&!this.o;this.N=this.V&&this.D;this.P=this.V&&this.A&&!LV(b.no_afv_instream);this.Z=LV(b.dclk);this.Ua=LV(b.gpt_migration);this.ba=LV(b.forced_ad);this.ca=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.qb=!!b.fqsf;this.da=LV(b.invideo)&&!this.o;this.F=LV(b.mpu)&&!this.o;this.fa=!!b.pla;this.Xa=LV(b.shortform);this.G=LV(b.sffb);this.ra=b.ad_language_iso639_2;this.g=this.o||!this.W.experiments.g("disable_client_side_midroll_freq_capping")?
(0,window.parseInt)(b.midroll_freqcap,10):-1;(0,window.isNaN)(this.g)&&(this.g=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.ab=b.pla_ad_tag;this.tagForChildDirected=LV(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.pa=this.V&&this.G&&!this.L;this.na=this.L||this.pa;this.fb=(0,window.parseInt)(b.ad_device,10);this.wa=b.tpas_video_id;this.ga=b.tpas_partner_id;this.vmap=b.vmap;this.Ic=
this.W.Ic;this.sb=b.post_ad_requests;this.showContentThumbnail=!0;g.pa(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.H=Eoa(b.serialized_ad_ux_config)};
Coa=function(a){if(a&&!D(E(a))&&(a=g.Qf(a)[6]||null)){var b=null;Uf(a,function(a,d){b||"channel"!=a||(b=d)})}};
Eoa=function(a){if(a)try{var b=g.pf(a);return new zA(b)}catch(c){}return null};
RX=function(a,b){g.L.call(this);this.C=a;this.Hd=new Go(this);g.M(this,this.Hd);this.o=null;this.g=!1;this.Hd.S(b,"companionImpression",this.B);this.Hd.S(b,"companionClick",this.A)};
SX=function(a){g.L.call(this);this.g=a;this.o=window.NaN;this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.Fv()};
TX=function(a,b){a.C[b]&&(g.Gl(a.g.g,[a.C[b]],void 0),delete a.C[b])};
UX=function(a,b,c,d){0>=c||((0,window.isNaN)(a.o)||g.ch(a.o),c=(0,g.G)()+c,a.o=0==d?sn((0,g.z)(a.ox,a,b,c,100),0):sn((0,g.z)(a.mx,a,b,c,100),0))};
VX=function(a,b,c){a=RV(a.g).Rb;b.setVolume(c*a)};
WX=function(a){SX.call(this,a)};
XX=function(a,b,c){g.L.call(this);this.g=a;this.D=b;this.B=c;this.o=-1;this.C=window.NaN;this.B&&0<this.g.o.g&&this.g.subscribe("endseeking",this.A,this)};
Goa=function(a,b){YX(a);0<b&&(a.C=g.ah((0,g.z)(a.A,a),1E3*b))};
YX=function(a){g.ch(a.C);a.C=window.NaN};
$X=function(a,b){if(!a.B||!wX(b)&&!uX(b))return!1;var c=a.g.o.g;if(0>=c||0>=a.o)return!1;var d=(0,g.G)()/1E3,e=ZX(a,b)-a.g.g.getCurrentTime();0<e&&(d+=e);return d-a.o<=c};
ZX=function(a,b){return uX(b)?a.g.g.getVideoData().lengthSeconds:JV(b.Gb)};
aY=function(a,b){g.L.call(this);this.J=this.g=null;this.O=[];this.N=window.NaN;this.ub=b;this.G=[];this.A={};this.D={};this.o=a;var c=a.o,d=!c.isLiveStream&&ph(this.ub,function(a){return wX(a)||uX(a)});
this.C=new XX(this.o,this,d);this.B=c.applyFadeOnMidrolls?new SX(a):new WX(a);this.ba=ph(this.ub,function(a){return tX(a)})};
Hoa=function(a){a.G.length||(a.G=(0,g.Od)(a.ub,function(a){return"unloaded"==a.B}),0==a.G.length?jn(a.o):(a.ba||jn(a.o),bY(a)))};
bY=function(a){if(a.G.length){var b=a.G.shift();b.subscribe("adBreakComplete",a.ih,a);b.subscribe("adCompanionInitialized",a.eo,a);LX(b)}};
Ioa=function(a,b){function c(a){return a&&5!=a.Gb.g}
var d=$a(a.ub,b),e=nb(a.ub,d+1);return{previous:g.Xa(nb(a.ub,0,d),c),next:g.Xa(e,c)}};
cY=function(a,b,c){var d=EX(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=JV(b.Gb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.B.Av(b,d);c=a.B.zv(b,c);c=new g.cn(d,c,e);a.D[b.getId()]=c;gn(a.o,[c]);a.B.Sq(b)}};
dY=function(a,b){var c=b.getId();a.D[c]&&(TX(a.B,c),g.Gl(a.o.g,[a.D[c]],void 0),delete a.D[c])};
gY=function(a,b){if(g.p(b)){var c=a.Pg(b);if(c)if(a.g==c&&!c.o&&c.isVisible)c.show();else{if(a.g){if(5==c.Gb.g){a.g.o?a.O.push(b):c.show();return}a.ig(a.g)}if($X(a.C,c))a.g=null,c=a.D[c.getId()],c.visible||(c.visible=!0,g.El(a.o.g,[c],1));else{5!=c.Gb.g&&(a.g=c);c.subscribe("adBreakComplete",a.Hi,a);c.subscribe("adCompanionInitialized",a.eo,a);if(c.o){1!=c.Gb.g&&nw("video_to_ad",["apbs"]);var d=a.o;d.L=!0;d.B||eY(d);d=a.C.o;d={tfla:0<d?Math.floor((0,g.G)()/1E3-d):0};a.o.Kg.g(fY,"show_instream_ads",
d)}a.B.qx(c);c.show()}}}};
hY=function(a,b,c){aY.call(this,a,b);this.H=[];this.L=[];this.F=[];this.Z=c;this.V=window.NaN;this.P=a.o.g;var d=!QV(a).experiments.g("disable_fetching_previous_nonadjacent_midrolls"),e=1E3*a.g.getCurrentTime(),d=d?null:Za(b,function(b){return a.g&&e>=EX(b)});
if(1<=c)for(c=0;c<b.length;c++){var f=b[c];if(zoa(f)&&f!=d){var k=new BX(f.A,f.Da,f.Gb,f.D,!0);b[c]=k;this.H.push(f)}}this.ba||this.mh()};
iY=function(a){g.ch(a.V);a.V=window.NaN};
jY=function(a,b){aY.call(this,a,b);this.V=a;this.Z=!0;this.H=[];this.fa=1;this.L=0};
kY=function(a){if(null==a.g&&0<a.H.length){var b=a.H[0];b.isVisible?(a.Z=a.F.isPeggedToLive(),a.da=Math.ceil((0,g.G)()/1E3),b.subscribe("adBreakComplete",a.P,a),a.g=b,b.show()):a.P()}else null!=a.g&&a.L++};
Joa=function(a,b){this.H=a;this.D=b;this.G=(0,g.G)();this.C=0;this.g=a.o;this.B={};this.F=new loa(a);var c=[];this.g.ca&&this.g.A&&c.push("4_2");this.g.Z&&(this.g.A&&c.push("1_2"),this.g.D&&c.push("1_2_1"),this.g.da&&c.push("1_1"),this.g.F&&c.push("1_3"));this.g.N&&c.push("2_2_1");this.g.P&&c.push("2_2");this.g.L&&c.push("2_1");(this.g.na||this.g.J)&&c.push("2_3");this.g.fa&&c.push("14_14");this.o=c.join(",");this.A="";this.B.allowed=this.o;(c=this.g.excludedAds)&&(this.B.ex_ads=c)};
lY=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;(0,g.H)(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b};
nY=function(a,b,c){g.L.call(this);this.o=a;this.B=b;this.Oc=c;this.C=this.D=-1;this.g=mY(this.B.Td());a=this.B.Td();a.length&&(a=a[a.length-1],-1==a&&gn(this.o,[this.g[a]]));0<this.o.o.g&&this.o.subscribe("endseeking",this.A,this)};
Koa=function(a,b){oY(a);0<b&&(a.C=g.ah((0,g.z)(a.A,a),1E3*b))};
oY=function(a){-1!=a.C&&(g.ch(a.C),a.C=-1)};
mY=function(a){if(!a.length)return{};for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new g.cn(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new g.cn(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
pY=function(){g.L.call(this)};
qY=function(a){g.L.call(this);this.g=a;this.o=null;this.A={};this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.G=a.fadeInStartMilliseconds;this.H=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.J=1E3*this.g.g.getVideoData().lengthSeconds;this.F=this.B+this.H;this.g.g.addEventListener("applicationplayerstatechange",this.Cx,this)};
rY=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.J};
Loa=function(a){a=a.getAttribute("breakType");return!!a&&ph(a.split(","),function(a){a=La(a);return"linear"==a})};
Moa=function(a){var b,c=3;b=!0;c=c?c:0;b=b?b:!1;var d=(0,window.parseFloat)(g.Ja(a/1E3,2,c));a=Math.floor(d/60);var e=Math.floor(a/60);a%=60;c=g.Ja(d%60,2,c);b=c=e||b?e+":"+g.Ja(a,2)+":"+c:a+":"+c;return 1==b.split(":")[0].length?"0".concat(b):b};
Ooa=function(a,b){var c=Math.max(Math.abs(a.B),Math.abs(a.F));(0,g.H)(b,(0,g.z)(function(a){var d=ph(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=Noa(this,a);
!d&&f&&(this.A[f]=a)},a));
return 0<Jb(a.A)};
Noa=function(a,b){var c=1E3*Math.round((b+a.F)/1E3),d=b+a.B,e=b+a.G;return rY(a,b)&&rY(a,c)&&rY(a,d)&&rY(a,e)?c:null};
sY=function(a,b,c,d){0>=c||(d=0==d?a.Bx:a.Ax,c=(0,g.G)()+c,a.o=sn((0,g.z)(d,a,b,c,100),0))};
tY=function(a,b,c){a=RV(a.g).Rb;b.setVolume(c*a)};
uY=function(a){g.L.call(this);this.Oc=this.B=this.A=this.F=this.o=null;this.J=this.H=!1;this.g=a;this.G=this.Wa=null;this.L={};this.O=new Go(this);this.D=new Go(this);this.C=null};
Poa=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);(0,g.H)(a.getElementsByTagName("VASTAdTagURI"),function(a){var d,f,k;"end"==b?(d="post",f=-1,k="postroll"):(d="mid",f=lY(b).toString(),k="midroll");var l={"[INDEX]":c.toString(),"[POSITION]":d,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return l[a]||a})});
return a};
Qoa=function(a,b,c){var d=g.Do(b);if(!d)return b;var e=bf(d);if(!e)return c?b:d;var f=g.Xa($e(e),function(a){return"#1"==a.getAttribute("timeOffset")});
if(f){var k=g.Xa($e(f),function(a){return"Extensions"==a.localName}),l=k?$e(k):[],l=g.Xa(l,function(a){return"YTBreakTime"==a.getAttribute("type")}),k=(k=k.removeChild(l))?$e(k):[],m=f,n=1;
(0,g.H)(k,function(a){a=a.getAttribute("timeOffset");a=Poa(f,a,n);n++;e.insertBefore(a,m.nextSibling);m=a});
e.removeChild(f)}k=a.C.Qu(e);k||(g.Cb(a.C),a.C=new pY);return f||k||!c?c?Eo(d):d:b};
Roa=function(a){var b=PV(a.g.o,QV(a.g),RV(a.g));b.dB=!0;b.ar=!1;b.Nu=10;b.mo=a.C.rs();return b};
vY=function(a,b){var c=a.Oc?a.Oc.g:0,c={tfla:0<c?Math.floor((0,g.G)()/1E3-c):0};a.g.Kg.g(fY,b,c)};
Soa=function(a,b){var c=VJ(b),d=wY(b);if(OV(c,"rm")&&a.g.o.J)return a.A=new PW(a.g),xY(a,a.A),a.A.show(),!1;if(OV(c,"blockAllAds"))return a.o.sh(),a.A=new TW(a.g,a.o,1,!0),!1;if(OV(c,"hideMaster")&&14!=d)return a.A=new TW(a.g,a.o,0,!0),!1;c=a.o;14==d?(a.A=new pX(a.g,c),5!=ZR(a.o).ff()&&yY(a,b)):a.A=new KW(d,a.g,c,!0);a.A.show();return!0};
yY=function(a,b){if(b){$V();var c=eW(),d=ZR(a.o);if(d){var e=d.ff(),d=g.ab(HV,e)?new IV(e,d.gc):new IV(e),e=oW(LI(b)),d=new UV(d,e.g,a.g,14==e.o?16:4);c.then(d.C,g.v,d)}}else a.g.o.F&&(a.A=new PW(a.g),xY(a,a.A),a.A.show())};
AY=function(a,b){if(b&&"adLoadError"==b.Pb()){var c=a.g.o;c.o||!c.na||QV(a.g).experiments.g("request_mpu_on_unfilled_ad_break")||(a.A=new PW(a.g),xY(a,a.A),a.A.show());zY(a)}};
BY=function(a){a.A&&(a.A.dispose(),a.A=null)};
wY=function(a){var b=nK(a);a=0<b.length?b.pop():cK(a);a=Toa[a.toUpperCase()];return null!=a?a:0};
zY=function(a){a.H||(jn(a.g),a.H=!0)};
xY=function(a,b){b.subscribe("AD_LOGGING_EVENT",(0,g.z)(a.JL,a,ZR(a.o),b.adType))};
CY=function(a,b){fn.call(this,b);this.logEvent=this.tb="ad";this.app=a;this.o=this.A=this.C=null;this.L=this.N=!1;this.B=this.Wa=null;X.o=!0;X.G=!1;X.Z=!1;X.P=!0;X.J=!g.Ph();X.D=0;var c=a.W.experiments.o("sdk_wrapper_levels_allowed");!(0,window.isNaN)(c)&&0<c&&(X.O=c);this.H=null;this.ba={};this.V={at:"0"};this.G=new pW(this.g);g.Kl(this.g,this.G.element,5);this.P=this.D=null;this.O=-1;this.Kg=new KV(this);this.J=new g.ir(this);g.M(this,this.J)};
RV=function(a){return DY(a.app)};
QV=function(a){return a.app.W};
IX=function(a,b,c){if(a.C){a=a.C;c=c||{};var d=((0,g.G)()-a.G)/1E3;c.art=d;d=QV(a.H);d.Fg&&(c.feature=d.ac);c.ad_flags=a.g.adFlags;(d=a.g.Ja)&&(c.cid=d);c.mt=a.D.getCurrentTime();(d=hk())&&(c.lact=d);(d=a.D.getDuration())&&(c.len=d);a.g.qb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.A=c.at;b=a.F;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=0!=(c&&c.ad_event?sW(c.ad_event):0)?!0:!1}if(a){var e;c.at&&(e=c.at);var f;c.sst&&(f=
c.sst);"2_1"==e&&10==f&&(c.break_type=1);QV(b.g).experiments.g("fix_api_stats_ads_companion_backfill_break_type")&&(a=Vb(c,"trsp","0"),"2_3"==e&&10==f&&"0"!=a&&(c.break_type=1));e={};e.device=b.g.o.fb;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){f=e;a=k;var d=c[k],l=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":g.ab(HV,Qa(d))&&(f.m_pos=l.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":f[a]=d;break;case "ad_len":f[a]=Math.round(1E3*
d);break;case "ad_error":f.error_code=moa(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=sW(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=yW(b.g);f=RV(b.g);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.g.A,e.mt=null!=c&&null!=c.g?1E3*JV(c.g.Gb):0):e.mt=Math.round(1E3*k.getCurrentTime());c=QV(b.g);e.ei=f.eventId;e.lact=hk();e.vol=Math.round(b.g.app.Kb.getVolume());e.vis=oj(c);
c=EY(b.g);e.p_w=c.width;e.p_h=c.height;e.rt=(0,g.G)();if(c=(c=k.o&&k.o.tg()?k.o.oa():null)&&De(c)===window.document?bj(c):null)e.pv_h=c.getHeight(),e.pv_w=c.yb();c=wg(e);k=new gg(QV(b.g).baseYtUrl+"api/stats/ads");lg(k,c);g.oi(k.toString())}}};
FY=function(a,b,c){c=c||{};c.ad_error=b;IX(a,7,c)};
GY=function(a,b,c){a.app.Kb.ya(b,c)};
HY=function(a){if(!a.N||a.app.W.experiments.g("enable_html5_midroll_tsla_update"))g.oi(QV(a).baseYtUrl+"mac_204?action_fcts=1"),a.N=!a.app.W.experiments.g("enable_html5_midroll_tsla_update")};
IY=function(a){return a.A instanceof jY?a.A:null};
JY=function(a){return g.el(a.app).o};
yW=function(a){if(g.KY(a)){if(!a.D){var b=Wb(QV(a).L);QV(a).experiments.g("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=RV(a).eventId;b.content_v=RV(a).videoId;b=new zx(b);b.g="adunit";a.D=new MU(b,2,new eS(b,""),a.app.B,(0,g.z)(a.app.O.oc,a.app.O))}return a.D}return LY(a.g.app,2)};
g.KY=function(a){return a.app.W.experiments.g("legacy_ads_videoplayer")};
OY=function(a){var b=qW(a.G),c;a:{var d=window.document;try{c=d&&d.activeElement;break a}catch(e){}c=null}b=g.df(b,c);if(g.KY(a)){if(!a.D||a.D!=g.el(a.app))return;c=a.app;d=a.D;MY(c);d!=c.o&&NY(c,c.o)}else if(c=a.g,2==dl(c.app)&&(c=c.app,d=g.el(c,2)))MY(c),d!=c.o&&NY(c,c.o);c=g.V(a.g);"3"!=c.B||nj(c)||(c=g.gl(a.g),c.G=!1,AW(c));b&&a.g.getRootNode().focus()};
EY=function(a){return a.o.C?(a=a.app.B.Sa(),new g.yf(0,0,a.width,a.height)):jj(a.getRootNode())};
PY=function(a,b){GX(a,"bd");var c;c=a.o;var d=c.midrollPrefetchSize;c=c.isLiveStream?new jY(a,b):0<d?new hY(a,b,d):new aY(a,b);a.A=c;Hoa(a.A)};
SY=function(a){QY(a);var b=a.app;g.ah(function(){RY(b)},0)};
eY=function(a){var b=a.app;g.ah(function(){TY(b)},0)};
VY=function(a,b){var c=a.app;g.ah(function(){UY(c,b)},0)};
QY=function(a){a.L=!1;a.app.W.O.remove(yW(a).getVideoData().videoId)};
DW=function(a,b){switch(b){case 1:a.O=1;GY(a,"onAdStart");break;case 0:a.O=0,GY(a,"onAdEnd")}};
CW=function(a,b,c){c&&GY(a,"onAdInfoChange",c);a=a.app;1==b&&(a.H.o("vr"),a.fa||(a.fa=Wv(a.du,a)),BV(a.C),fS(a.H,WY(a)));c=a.W;("leanback"==c.g&&c.kb||g.Ix(c))&&a.g.ya("onAdStateChange",b)};
GX=function(a,b){var c=b;"nl"==b&&(c=a.C,c.C++,c=c.C.toString());a.ba[c]=(0,g.G)();"bs"!=c&&"fb"!=c||kn(a,a.ba,a.V)};
XY=function(a){return!!(a.o.G&&a.A&&1<a.A.ub.length)};
YY=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?(0,window.parseInt)(a[1],10):0};
ZY=function(a){return window.document.currentScript&&(-1!=window.document.currentScript.src.indexOf("?"+a)||-1!=window.document.currentScript.src.indexOf("&"+a))};
$Y=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null};
Uoa=function(a,b){var c=new window.XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};
c.onerror=function(){b(!1)};
try{c.open("GET",a,!0),c.send()}catch(d){b(!1)}};
fZ=function(a){if(a>=aZ.length)bZ();else{var b=aZ[a],c="chrome-extension://"+b+cZ;0<=dZ.indexOf(b)?Uoa(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,eZ(c,bZ)):fZ(a+1)}):eZ(c,function(){fZ(a+1)})}};
eZ=function(a,b,c){var d=window.document.createElement("script");d.onerror=b;c&&(d.onload=c);d.src=a;(window.document.head||window.document.documentElement).appendChild(d)};
bZ=function(){var a=$Y();a&&a(!1,"No cast extension found")};
gZ=function(){if(Voa){var a=2,b=$Y(),c=function(){a--;0==a&&b&&b(!0)};
window.__onGCastApiAvailable=c;eZ("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",bZ,c)}};
Woa=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;if(a){gZ();a({command:"cast.sender.init"});return}}if(window.chrome)if(gZ(),a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation){var a="",b=YY();55<=b?a="55":50<=b&&(a="50");eZ("//www.gstatic.com/eureka/clank"+a+cZ,bZ)}else fZ(0);else bZ()};
Xoa=function(){var a=hZ;iZ();jZ.push(a);kZ(jZ)};
lZ=function(a,b){iZ();var c=jZ,d=Yoa(a,String(b));g.J(c)?Zoa(d):(kZ(c),(0,g.H)(c,function(a){a(d)}))};
iZ=function(){jZ||(jZ=u("yt.mdx.remote.debug.handlers_")||[],g.ka("yt.mdx.remote.debug.handlers_",jZ,void 0))};
Zoa=function(a){var b=(mZ+1)%50;mZ=b;nZ[b]=a;oZ||(oZ=49==b)};
kZ=function(a){var b=nZ;if(b[0]){var c=mZ,d=oZ?c:-1;do{var d=(d+1)%50,e=b[d];(0,g.H)(a,function(a){a(e)})}while(d!=c);
nZ=Array(50);mZ=-1;oZ=!1}};
Yoa=function(a,b){var c=((0,g.G)()-$oa)/1E3;c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")};
pZ=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""};
qZ=function(a,b){return!!b&&(a.id==b||a.uuid==b)};
rZ=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}};
apa=function(a){return new pZ(a)};
sZ=function(a){return na(a)?(0,g.S)(a,apa):[]};
tZ=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"};
uZ=function(a){return na(a)?"["+(0,g.S)(a,tZ).join(",")+"]":"null"};
vZ=function(a){this.B=this.A="";this.g="/api/lounge";this.o=!0;a=a||window.document.location.href;var b=g.Tf(a)||"";b&&(this.B=":"+b);this.A=g.Sf(a)||"";a=ec;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Na(a,"10.0")&&(this.o=!1))};
wZ=function(a,b,c,d){var e=a.g;if(g.p(d)?d:a.o)e="https://"+a.A+a.B+a.g;return g.ag(e+b,c||{})};
xZ=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,Cb:g.B(a.D,d,!0),onError:g.B(a.C,e),Sc:g.B(a.F,e)};c&&(a.Sb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return g.li(b,a)};
yZ=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})};
bpa=function(a){return(0,g.S)(a,function(a){return{key:a.id,name:a.name}})};
zZ=function(a,b){return g.Xa(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
AZ=function(a,b){return g.Xa(a,function(a){return qZ(a,b)})};
BZ=function(a){g.en.call(this);this.F=a;this.g=[]};
CZ=function(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.g.push(b);return!0};
cpa=function(a,b){var c=a.g.length!=b.length;a.g=(0,g.Od)(a.g,function(a){return!!zZ(b,a)});
for(var d=0,e=b.length;d<e;d++)c=CZ(a,b[d])||c;return c};
dpa=function(a,b){var c=a.g.length;a.g=(0,g.Od)(a.g,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.g.length<c};
DZ=function(a,b,c,d){g.en.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.g=null;this.o=window.NaN};
EZ=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Jm;this.experiments=new Jm;this.theme="u";new If;if(a){this.id=a.id||a.name;this.name=a.name;this.app=a.app;this.type=a.type||"REMOTE_CONTROL";this.username=a.user||"";this.avatar=a.userAvatarUri||"";this.theme=a.theme||"u";var b=a.capabilities||"";this.capabilities.clear();Im(this.capabilities,(0,g.Od)(b.split(","),g.B(vaa,epa)));a=a.experiments||"";this.experiments.clear();
Im(this.experiments,a.split(","))}};
IZ=function(){var a=FZ(),b=GZ();HZ()&&xb(a,b);a=fpa(a);if(g.J(a))try{ho.remove("remote_sid","/","youtube.com")}catch(c){}else try{ho.set("remote_sid",a.join(","),-1,"/","youtube.com")}catch(c){}};
FZ=function(){var a=g.Hj("yt-remote-connected-devices")||[];ub(a);return a};
fpa=function(a){if(g.J(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return(0,g.S)(a,function(a,b){return 0==b?a:a.substring(c.length)})};
JZ=function(a){g.Gj("yt-remote-connected-devices",a,86400)};
GZ=function(){if(KZ)return KZ;var a=g.Hj("yt-remote-device-id");a||(a=yZ(),g.Gj("yt-remote-device-id",a,31536E3));for(var b=FZ(),c=1,d=a;g.ab(b,d);)c++,d=a+"#"+c;return KZ=d};
LZ=function(){return g.Hj("yt-remote-session-browser-channel")};
HZ=function(){return g.Hj("yt-remote-session-screen-id")};
gpa=function(a){5<a.length&&(a=a.slice(a.length-5));var b=(0,g.S)(MZ(),function(a){return a.loungeToken}),c=(0,g.S)(a,function(a){return a.loungeToken});
Sq(c,function(a){return!g.ab(b,a)})&&NZ();
g.Gj("yt-remote-local-screens",a,31536E3)};
MZ=function(){return g.Hj("yt-remote-local-screens")||[]};
NZ=function(){g.Gj("yt-remote-lounge-token-expiration",!0,86400)};
hpa=function(a,b){g.Gj("yt-remote-session-browser-channel",a);g.Gj("yt-remote-session-screen-id",b);var c=FZ(),d=GZ();g.ab(c,d)||c.push(d);JZ(c);IZ()};
OZ=function(a){a||(g.Ij("yt-remote-session-screen-id"),g.Ij("yt-remote-session-video-id"));IZ();a=FZ();g.eb(a,GZ());JZ(a)};
QZ=function(){if(!PZ){var a=g.Ej();a&&(PZ=new g.qj(a))}return PZ?!!PZ.get("yt-remote-use-staging-server"):!1};
SZ=function(a){BZ.call(this,"LocalScreenService");this.A=a;this.o=window.NaN;RZ(this);this.info("Initializing with "+uZ(this.g))};
TZ=function(a){if(a.g.length){var b=(0,g.S)(a.g,function(a){return a.id}),c=wZ(a.A,"/pairing/get_lounge_token_batch");
xZ(a.A,c,{screen_ids:b.join(",")},(0,g.z)(a.OB,a),(0,g.z)(a.NB,a))}};
RZ=function(a){var b=sZ(MZ()),b=(0,g.Od)(b,function(a){return!a.uuid});
return cpa(a,b)};
UZ=function(a,b){gpa((0,g.S)(a.g,rZ));b&&NZ()};
WZ=function(a,b){g.en.call(this);this.D=b;for(var c=g.Hj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=g.ab(c,l)}this.g=d;this.C=a;this.A=this.B=window.NaN;this.o=null;VZ("Initialized with "+g.tf(this.g))};
XZ=function(a,b,c){var d=wZ(a.C,"/pairing/get_screen_availability");xZ(a.C,d,{lounge_token:b.token},(0,g.z)(function(a){a=a.screens||[];for(var d=0,e=a.length;d<e;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),(0,g.z)(function(){c(!1)},a))};
YZ=function(a,b){var c;a:if(Jb(b)!=Jb(a.g))c=!1;else{c=g.Ob(b);for(var d=0,e=c.length;d<e;++d)if(!a.g[c[d]]){c=!1;break a}c=!0}c||(VZ("Updated online screens: "+g.tf(a.g)),a.g=b,a.$("screenChange"));ipa(a)};
ZZ=function(a){(0,window.isNaN)(a.A)||g.ch(a.A);a.A=g.ah((0,g.z)(a.ro,a),0<a.B&&a.B<(0,g.G)()?2E4:1E4)};
VZ=function(a){lZ("OnlineScreenService",a)};
$Z=function(a){var b={};(0,g.H)(a.D(),function(a){a.token?b[a.token]=a.id:this.Mb("Requesting availability of screen w/o lounge token.")});
return b};
ipa=function(a){a=g.Ob(Fb(a.g,function(a){return a}));
ub(a);a.length?g.Gj("yt-remote-online-screen-ids",a.join(","),60):g.Ij("yt-remote-online-screen-ids")};
a_=function(a){BZ.call(this,"ScreenService");this.D=a;this.o=this.A=null;this.B=[];this.C={};jpa(this)};
c_=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.C[b]);var k=a.ud();if(k=(c?AZ(k,c):null)||AZ(k,b)){k.uuid=b;var l=b_(a,k);XZ(a.o,l,function(a){e(a?l:null)})}else c?kpa(a,c,(0,g.z)(function(a){var f=b_(this,new pZ({name:d,
screenId:c,loungeToken:a,dialId:b||""}));XZ(this.o,f,function(a){e(a?f:null)})},a),f):e(null)};
d_=function(a,b){for(var c=0,d=a.g.length;c<d;++c)if(a.g[c].name==b)return a.g[c];return null};
kpa=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Sb:{screen_ids:b},method:"POST",context:a,Cb:function(a,e){var f=e&&e.screens||[];f[0]&&f[0].screenId==b?c(f[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
g.li(wZ(a.D,"/pairing/get_lounge_token_batch"),e)};
e_=function(a){a.g=a.A.ud();var b=a.C,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.g.length;b<d;++b){var e=a.g[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+uZ(a.g))};
jpa=function(a){f_(a);a.A=new SZ(a.D);a.A.subscribe("screenChange",(0,g.z)(a.aC,a));e_(a);a.B=sZ(g.Hj("yt-remote-automatic-screen-cache")||[]);f_(a);a.info("Initializing automatic screens: "+uZ(a.B));a.o=new WZ(a.D,(0,g.z)(a.ud,a,!0));a.o.subscribe("screenChange",(0,g.z)(function(){this.$("onlineScreenChange")},a))};
b_=function(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=AZ(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),g.Gj("yt-remote-automatic-screen-cache",(0,g.S)(a.B,rZ)));f_(a);a.C[b.uuid]=b.id;g.Gj("yt-remote-device-id-map",a.C,31536E3);return b};
f_=function(a){a.C=g.Hj("yt-remote-device-id-map")||{}};
g_=function(a,b,c){g.en.call(this);this.O=c;this.H=a;this.o=b;this.A=null};
h_=function(a,b){lZ(a.O,b)};
j_=function(a,b){g_.call(this,a,b,"CastSession");this.g=null;this.B=0;this.D=(0,g.z)(this.rJ,this);this.C=(0,g.z)(this.QH,this);this.B=g.ah((0,g.z)(function(){i_(this,null)},this),12E4)};
lpa=function(a){a.info("sendYoutubeMessage_: getMdxSessionStatus "+g.tf(void 0));var b={type:"getMdxSessionStatus"};a.g?a.g.sendMessage("urn:x-cast:com.google.youtube.mdx",b,g.v,(0,g.z)(function(){h_(this,"Failed to send message: getMdxSessionStatus.")},a)):h_(a,"Sending yt message without session: "+g.tf(b))};
i_=function(a,b){g.ch(a.B);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.A||a.A.id!=b){var c=(0,g.z)(a.Jk,a),d=(0,g.z)(a.xd,a);a.us(b,c,d,5)}}else a.xd(Error("Waiting for session status timed out."))};
k_=function(a,b){g_.call(this,a,b,"DialSession");this.B=this.G=null;this.J="";this.C=null;this.F=g.v;this.D=window.NaN;this.L=(0,g.z)(this.uJ,this);this.g=g.v};
l_=function(a){a.g=a.H.jw(a.J,a.o.label,a.o.friendlyName,(0,g.z)(function(a){this.g=g.v;this.Jk(a)},a),(0,g.z)(function(a){this.g=g.v;
this.xd(a)},a))};
m_=function(a){var b={};b.pairingCode=a.J;if(a.C){var c=a.C.currentTime||0;b.v=a.C.videoId;b.t=c}QZ()&&(b.env_useStageMdx=1);return g.Zf(b)};
n_=function(a,b){g_.call(this,a,b,"ManualSession");this.g=g.ah((0,g.z)(this.fh,this,null),150)};
o_=function(a){g.en.call(this);this.o=a;this.g=null;this.C=!1;this.A=[];this.B=(0,g.z)(this.BG,this)};
p_=function(a,b){return b?g.Xa(a.A,function(a){return qZ(b,a.label)},a):null};
q_=function(a){lZ("Controller",a)};
hZ=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
r_=function(a){return a.C||!!a.A.length||!!a.g};
s_=function(a,b,c){b!=a.g&&(g.Cb(a.g),(a.g=b)?(c?a.$("yt-remote-cast2-receiver-resumed",b.o):a.$("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",(0,g.z)(a.Cu,a,b)),b.A?a.$("yt-remote-cast2-session-change",b.A):c&&a.g.fh(null)):a.$("yt-remote-cast2-session-change",null))};
t_=function(a){var b=a.o.iw(),c=a.g&&a.g.o;a=(0,g.S)(b,function(a){c&&qZ(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,d=p_(this,a);d?(d.label=b,d.friendlyName=a.name):(d=new window.chrome.cast.Receiver(b,a.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return d},a);
c&&(c.receiverType!=window.chrome.cast.ReceiverType.CUSTOM&&(c=new window.chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=window.chrome.cast.ReceiverType.CUSTOM),a.push(c));return a};
opa=function(a,b,c,d){mpa()?npa(b)&&(v_(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?w_(a,c):(window.__onGCastApiAvailable=function(b,d){b?w_(a,c):(x_("Failed to load cast API: "+d),y_(!1),v_(!1),g.Ij("yt-remote-cast-available"),g.Ij("yt-remote-cast-receiver"),z_(),c(!1))},d?window.spf?window.spf.script.load("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js","",void 0):Eba():Woa())):u_("Cannot initialize because not running Chrome")};
z_=function(){u_("dispose");var a=A_();a&&a.dispose();g.ka("yt.mdx.remote.cloudview.instance_",null,void 0);B_(!1);di(C_);C_.length=0};
D_=function(){return!!g.Hj("yt-remote-cast-installed")};
E_=function(){var a=g.Hj("yt-remote-cast-receiver");return a?a.friendlyName:null};
F_=function(){u_("clearCurrentReceiver");g.Ij("yt-remote-cast-receiver")};
G_=function(){return D_()?A_()?A_().getCastSession():(x_("getCastSelector: Cast is not initialized."),null):(x_("getCastSelector: Cast API is not installed!"),null)};
I_=function(){D_()?A_()?H_()?(u_("Requesting cast selector."),A_().requestSession()):(u_("Wait for cast API to be ready to request the session."),C_.push(ci("yt-remote-cast2-api-ready",I_))):x_("requestCastSelector: Cast is not initialized."):x_("requestCastSelector: Cast API is not installed!")};
J_=function(a,b){H_()?A_().setConnectedScreenStatus(a,b):x_("setConnectedScreenStatus called before ready.")};
mpa=function(){var a=0<=ec.search(/\ (CrMo|Chrome|CriOS)\//);return g.Uh||a};
ppa=function(a,b){A_().init(a,b)};
npa=function(a){var b=!1;A_()||(a=new o_(a),a.subscribe("yt-remote-cast2-availability-change",function(a){g.Gj("yt-remote-cast-available",a);gi("yt-remote-cast2-availability-change",a)}),a.subscribe("yt-remote-cast2-receiver-selected",function(a){u_("onReceiverSelected: "+a.friendlyName);
g.Gj("yt-remote-cast-receiver",a);gi("yt-remote-cast2-receiver-selected",a)}),a.subscribe("yt-remote-cast2-receiver-resumed",function(a){u_("onReceiverResumed: "+a.friendlyName);
g.Gj("yt-remote-cast-receiver",a)}),a.subscribe("yt-remote-cast2-session-change",function(a){u_("onSessionChange: "+tZ(a));
a||g.Ij("yt-remote-cast-receiver");gi("yt-remote-cast2-session-change",a)}),g.ka("yt.mdx.remote.cloudview.instance_",a,void 0),b=!0);
u_("cloudview.createSingleton_: "+b);return b};
A_=function(){return u("yt.mdx.remote.cloudview.instance_")};
w_=function(a,b){y_(!0);v_(!1);ppa(a,function(a){a?(B_(!0),g.fi("yt-remote-cast2-api-ready")):(x_("Failed to initialize cast API."),y_(!1),g.Ij("yt-remote-cast-available"),g.Ij("yt-remote-cast-receiver"),z_());b(a)})};
u_=function(a){lZ("cloudview",a)};
x_=function(a){lZ("cloudview",a)};
y_=function(a){u_("setCastInstalled_ "+a);g.Gj("yt-remote-cast-installed",a)};
H_=function(){return!!u("yt.mdx.remote.cloudview.apiReady_")};
B_=function(a){u_("setApiReady_ "+a);g.ka("yt.mdx.remote.cloudview.apiReady_",a,void 0)};
v_=function(a){g.ka("yt.mdx.remote.cloudview.initializing_",a,void 0)};
qpa=function(a,b){this.action=a;this.params=b||{}};
K_=function(a,b){this.o=new sf(a);this.g=b?qf:g.pf};
L_=function(a,b,c,d,e){this.g=a;this.A=c;this.G=d;this.F=e||1;this.C=45E3;this.B=new Go(this);this.o=new Ed;Fd(this.o,250)};
N_=function(a,b,c){a.Ug=1;a.Df=sg(b.clone());a.yg=c;a.D=!0;M_(a,null)};
O_=function(a,b,c,d,e){a.Ug=1;a.Df=sg(b.clone());a.yg=null;a.D=c;e&&(a.dv=!1);M_(a,d)};
M_=function(a,b){a.Pi=(0,g.G)();P_(a);a.Nf=a.Df.clone();rg(a.Nf,"t",a.F);a.aj=0;a.Jc=a.g.Hm(a.g.Ui()?b:null);0<a.ln&&(a.Rk=new ur((0,g.z)(a.Yv,a,a.Jc),a.ln));a.B.S(a.Jc,"readystatechange",a.eI);var c=a.og?Wb(a.og):{};a.yg?(a.rl="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Jc.send(a.Nf,a.rl,a.yg,c)):(a.rl="GET",a.dv&&!qc&&(c.Connection="close"),a.Jc.send(a.Nf,a.rl,null,c));a.g.de(1)};
W_=function(a,b,c){for(var d=!0;!a.eg&&a.aj<c.length;){var e=rpa(a,c);if(e==Q_){4==b&&(a.pg=4,R_(),d=!1);break}else if(e==S_){a.pg=4;R_();d=!1;break}else T_(a,e)}4==b&&0==c.length&&(a.pg=1,R_(),d=!1);a.he=a.he&&d;d||(U_(a),V_(a))};
rpa=function(a,b){var c=a.aj,d=b.indexOf("\n",c);if(-1==d)return Q_;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return S_;d+=1;if(d+c>b.length)return Q_;var e=b.substr(d,c);a.aj=d+c;return e};
Z_=function(a,b){a.Pi=(0,g.G)();P_(a);var c=b?window.location.hostname:"";a.Nf=a.Df.clone();g.pg(a.Nf,"DOMAIN",c);g.pg(a.Nf,"t",a.F);try{a.ie=new window.ActiveXObject("htmlfile")}catch(n){U_(a);a.pg=7;R_();V_(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e+="\\x3c";else if(">"==k)e+="\\x3e";else{var l=k;if(l in X_)k=X_[l];else if(l in Y_)k=X_[l]=Y_[l];else{var m=l.charCodeAt(0);if(31<m&&127>m)k=l;else{if(256>m){if(k="\\x",16>m||256<m)k+="0"}else k=
"\\u",4096>m&&(k+="0");k+=m.toString(16).toUpperCase()}k=X_[l]=k}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=se(Yd("b/12014412"),d);a.ie.open();a.ie.write(me(c));a.ie.close();a.ie.parentWindow.m=(0,g.z)(a.qH,a);a.ie.parentWindow.d=(0,g.z)(a.Hu,a,!0);a.ie.parentWindow.rpcClose=(0,g.z)(a.Hu,a,!1);c=a.ie.createElement("DIV");a.ie.parentWindow.document.body.appendChild(c);d=fe(a.Nf.toString());d=Da(de(d));d=se(Yd("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=
me(d);a.g.de(1)};
P_=function(a){a.Wo=(0,g.G)()+a.C;$_(a,a.C)};
$_=function(a,b){if(null!=a.Ah)throw Error("WatchDog timer not null");a.Ah=a0((0,g.z)(a.IH,a),b)};
b0=function(a){a.Ah&&(r.clearTimeout(a.Ah),a.Ah=null)};
V_=function(a){a.g.As()||a.eg||a.g.Ik(a)};
U_=function(a){b0(a);g.Cb(a.Rk);a.Rk=null;a.o.stop();No(a.B);if(a.Jc){var b=a.Jc;a.Jc=null;b.abort();b.dispose()}a.ie&&(a.ie=null)};
T_=function(a,b){try{a.g.Au(a,b),a.g.de(4)}catch(c){}};
d0=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;c0(a,b,function(e){e?c(!0):r.setTimeout(function(){d0(a,b,c,d,f)},f)})}};
c0=function(a,b,c){var d=new window.Image;d.onload=function(){try{e0(d),c(!0)}catch(e){}};
d.onerror=function(){try{e0(d),c(!1)}catch(e){}};
d.onabort=function(){try{e0(d),c(!1)}catch(e){}};
d.ontimeout=function(){try{e0(d),c(!1)}catch(e){}};
r.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
e0=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
f0=function(a){this.g=a;this.o=new K_(null,!0)};
h0=function(a){var b=g0(a.g,a.Th,"/mail/images/cleardot.gif");sg(b);d0(b.toString(),5E3,(0,g.z)(a.QA,a),3,2E3);a.de(1)};
j0=function(a){var b=a.g.J;if(null!=b)R_(),b?(R_(),i0(a.g,a,!1)):(R_(),i0(a.g,a,!0));else if(a.yd=new L_(a,0,void 0,void 0,void 0),a.yd.og=a.hn,b=a.g,b=g0(b,b.Ui()?a.ri:null,a.kn),R_(),!g.Me||pc(10))rg(b,"TYPE","xmlhttp"),O_(a.yd,b,!1,a.ri,!1);else{rg(b,"TYPE","html");var c=a.yd;a=!!a.ri;c.Ug=3;c.Df=sg(b.clone());Z_(c,a)}};
k0=function(a,b,c,d){this.G=a||null;this.g=1;this.o=[];this.B=[];this.C=new K_(null,!0);this.H=b||null;this.J=null!=c?c:null;this.D=d||!1};
spa=function(a,b){this.g=a;this.map=b;this.context=null};
l0=function(a){ac.call(this,"statevent",a)};
m0=function(a,b){ac.call(this,"timingevent",a);this.size=b};
n0=function(a){ac.call(this,"serverreachability",a)};
r0=function(a){o0(a);if(3==a.g){var b=a.Gi++,c=a.Xj.clone();g.pg(c,"SID",a.A);g.pg(c,"RID",b);g.pg(c,"TYPE","terminate");p0(a,c);b=new L_(a,0,a.A,b,void 0);b.Ug=2;b.Df=sg(c.clone());(new window.Image).src=b.Df;b.Pi=(0,g.G)();P_(b)}q0(a)};
t0=function(a){a.jB(1,0);a.Xj=g0(a,null,a.gn);s0(a)};
o0=function(a){a.vf&&(a.vf.abort(),a.vf=null);a.Vb&&(a.Vb.cancel(),a.Vb=null);a.af&&(r.clearTimeout(a.af),a.af=null);u0(a);a.nd&&(a.nd.cancel(),a.nd=null);a.wf&&(r.clearTimeout(a.wf),a.wf=null)};
v0=function(a,b){if(0==a.g)throw Error("Invalid operation: sending map when state is closed");a.o.push(new spa(a.RD++,b));2!=a.g&&3!=a.g||s0(a)};
s0=function(a){a.nd||a.wf||(a.wf=a0((0,g.z)(a.Fu,a),0),a.di=0)};
y0=function(a,b){if(1==a.g){if(!b){a.Gi=Math.floor(1E5*Math.random());var c=a.Gi++,d=new L_(a,0,"",c,void 0);d.og=null;var e=w0(a),f=a.Xj.clone();g.pg(f,"RID",c);a.G&&g.pg(f,"CVER",a.G);p0(a,f);N_(d,f,e);a.nd=d;a.g=2}}else 3==a.g&&(b?x0(a,b):0==a.o.length||a.nd||x0(a))};
x0=function(a,b){var c,d;b?6<a.gg?(a.o=a.B.concat(a.o),a.B.length=0,c=a.Gi-1,d=w0(a)):(c=b.G,d=b.yg):(c=a.Gi++,d=w0(a));var e=a.Xj.clone();g.pg(e,"SID",a.A);g.pg(e,"RID",c);g.pg(e,"AID",a.eh);p0(a,e);c=new L_(a,0,a.A,c,a.di+1);c.og=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.nd=c;N_(c,e,d)};
p0=function(a,b){if(a.Rc){var c=a.Rc.bs(a);c&&g.Eb(c,function(a,c){g.pg(b,c,a)})}};
w0=function(a){var b=Math.min(a.o.length,1E3),c=["count="+b],d;6<a.gg&&0<b?(d=a.o[0].g,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.o[e].g,k=a.o[e].map,f=6>=a.gg?e:f-d;try{Of(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(l){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.B=a.B.concat(a.o.splice(0,b));
return c.join("&")};
z0=function(a){a.Vb||a.af||(a.F=1,a.af=a0((0,g.z)(a.Eu,a),0),a.Gg=0)};
B0=function(a){if(a.Vb||a.af||3<=a.Gg)return!1;a.F++;a.af=a0((0,g.z)(a.Eu,a),A0(a,a.Gg));a.Gg++;return!0};
i0=function(a,b,c){a.ql=c;a.Yd=b.gf;a.D||t0(a)};
u0=function(a){null!=a.hg&&(r.clearTimeout(a.hg),a.hg=null)};
A0=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
D0=function(a,b){if(2==b||9==b){var c=null;a.Rc&&(c=null);var d=(0,g.z)(a.MI,a);c||(c=new gg("//www.google.com/images/cleardot.gif"),sg(c));c0(c.toString(),1E4,d)}else R_();C0(a,b)};
C0=function(a,b){a.g=0;a.Rc&&a.Rc.nr(a,b);q0(a);o0(a)};
q0=function(a){a.g=0;a.Yd=-1;if(a.Rc)if(0==a.B.length&&0==a.o.length)a.Rc.Bm(a);else{var b=g.jb(a.B),c=g.jb(a.o);a.B.length=0;a.o.length=0;a.Rc.Bm(a,b,c)}};
g0=function(a,b,c){var d=g.tg(c);if(""!=d.o)b&&g.ig(d,b+"."+d.o),g.jg(d,d.C);else var e=window.location,d=nba(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.bi&&g.Eb(a.bi,function(a,b){g.pg(d,b,a)});
g.pg(d,"VER",a.gg);p0(a,d);return d};
a0=function(a,b){if(!ra(a))throw Error("Fn must not be null and must be a function");return r.setTimeout(function(){a()},b)};
R_=function(){E0.dispatchEvent(new l0(E0))};
F0=function(){};
H0=function(a,b){g.L.call(this);this.o=new g.Id(this.C,0,this);g.M(this,this.o);this.A=this.g=0;if(ra(a))b&&(a=(0,g.z)(a,b));else if(a&&ra(a.handleEvent))a=(0,g.z)(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;G0(this)};
G0=function(a){a.o.stop();a.g=5E3+2E4*Math.random()};
I0=function(a,b,c){this.L=a;this.D=b;this.A=new Cf;this.o=new H0(this.lJ,this);this.g=this.ka=null;this.J=!1;this.C=null;this.H="";this.G=this.B=0;this.F=[];this.O=c||!1};
tpa=function(a){return{firstTestResults:[""],secondTestResults:!a.g.ql,sessionId:a.g.A,arrayId:a.g.eh}};
J0=function(a,b){a.G=b||0;a.o.stop();a.g&&(3==a.g.g&&y0(a.g),r0(a.g));a.G=0};
K0=function(a){return!!a.g&&3==a.g.g};
upa=function(a,b){(a.D.loungeIdToken=b)||a.o.stop()};
L0=function(a){this.index=-1;this.videoId=this.listId="";this.volume=this.g=-1;this.muted=!1;this.audioTrackId=null;this.A=this.D=0;this.o=null;this.hasNext=this.H=!1;this.L=this.G=this.F=this.C=0;this.B=window.NaN;this.J=!1;this.reset(a)};
M0=function(a){a.audioTrackId=null;a.o=null;a.g=-1;a.H=!1;a.hasNext=!1;a.D=0;a.A=(0,g.G)();a.C=0;a.F=0;a.G=0;a.L=0;a.B=window.NaN;a.J=!1};
N0=function(a){a.index=-1;a.videoId="";M0(a)};
O0=function(a,b){a.D=b;a.A=(0,g.G)()};
P0=function(a){switch(a.g){case 1:return((0,g.G)()-a.A)/1E3+a.D;case -1E3:return 0}return a.D};
Q0=function(a){return a.J?a.F+((0,g.G)()-a.A)/1E3:a.F};
R0=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&M0(a)};
S0=function(a){var b={};b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.g;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=Xb(a.o);b.hasPrevious=a.H;b.hasNext=a.hasNext;b.playerTime=a.D;b.playerTimeAt=a.A;b.seekableStart=a.C;b.seekableEnd=a.F;b.duration=a.G;b.loadedTime=a.L;b.liveIngestionTime=a.B;return b};
V0=function(a,b){g.en.call(this);this.g=0;this.B=a;this.D=[];this.C=new YN;this.A=this.o=null;this.H=(0,g.z)(this.yE,this);this.F=(0,g.z)(this.Ii,this);this.G=(0,g.z)(this.xE,this);this.J=(0,g.z)(this.HE,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.gp,this),T0(this))):c=3;0!=c&&(b?this.gp(c):g.ah((0,g.z)(function(){this.gp(c)},this),0));
var d=G_();d&&U0(this,d);this.subscribe("yt-remote-cast2-session-change",this.J)};
hl=function(a){return new L0(a.B.getPlayerContextData())};
Y0=function(a,b,c,d,e){var f=hl(a),k=e||f.listId;d=d||0;var l={videoId:b,currentIndex:d};R0(f,b,d);g.p(c)&&(O0(f,c),l.currentTime=c);g.p(k)&&(l.listId=k);W0(a,"setPlaylist",l);e||X0(a,f)};
T0=function(a){(0,g.H)("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange".split(" "),function(a){this.D.push(this.B.subscribe(a,g.B(this.yG,a),this))},a)};
Z0=function(a){(0,g.H)(a.D,function(a){this.B.unsubscribeByKey(a)},a);
a.D.length=0};
$0=function(a,b){50>a.C.xc()&&$N(a.C,b)};
a1=function(a,b,c){var d=hl(a);O0(d,c);-1E3!=d.g&&(d.g=b);X0(a,d)};
W0=function(a,b,c){a.B.sendMessage(b,c)};
X0=function(a,b){Z0(a);a.B.setPlayerContextData(S0(b));T0(a)};
U0=function(a,b){a.A&&(a.A.removeUpdateListener(a.H),a.A.removeMediaListener(a.F),a.Ii(null));a.A=b;a.A&&(b1("Setting cast session: "+a.A.sessionId),a.A.addUpdateListener(a.H),a.A.addMediaListener(a.F),a.A.media.length&&a.Ii(a.A.media[0]))};
c1=function(a){var b=a.o.media,c=a.o.customData;if(b&&c){var d=hl(a);b.contentId!=d.videoId&&b1("Cast changing video to: "+b.contentId);d.videoId=b.contentId;d.g=c.playerState;O0(d,a.o.getEstimatedTime());X0(a,d)}else b1("No cast media video. Ignoring state update.")};
b1=function(a){lZ("CP",a)};
d1=function(a,b,c){g.en.call(this);this.C=window.NaN;this.N=!1;this.J=this.H=this.L=this.O=window.NaN;this.P=[];this.B=this.F=this.A=this.Va=this.g=null;this.pa=a;this.P.push(g.Vj(window,"beforeunload",(0,g.z)(this.EB,this)));this.o=[];this.Va=new L0;this.Z=b.id;this.g=vpa(this,c);this.g.subscribe("handlerOpened",this.CE,this);this.g.subscribe("handlerClosed",this.zE,this);this.g.subscribe("handlerError",this.AE,this);this.g.subscribe("handlerMessage",this.BE,this);upa(this.g,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.Va.videoId;HZ()&&g.Gj("yt-remote-session-video-id",a)},this)};
e1=function(a){lZ("conn",a)};
vpa=function(a,b){return new I0(wZ(a.pa,"/bc",void 0,!1),b)};
f1=function(a,b){a.$("proxyStateChange",b)};
wpa=function(a){a.C=g.ah((0,g.z)(function(){e1("Connecting timeout");this.D(1)},a),2E4)};
g1=function(a){g.ch(a.C);a.C=window.NaN};
h1=function(a){g.ch(a.O);a.O=window.NaN};
xpa=function(a){i1(a);a.L=g.ah((0,g.z)(function(){j1(this,"getNowPlaying")},a),2E4)};
i1=function(a){g.ch(a.L);a.L=window.NaN};
l1=function(a,b){b&&(g1(a),h1(a));b==(K0(a.g)&&(0,window.isNaN)(a.C))?b&&(f1(a,1),j1(a,"getSubtitlesTrack")):b?(a.V()&&a.Va.reset(),f1(a,1),j1(a,"getNowPlaying"),k1(a)):a.D(1)};
ypa=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.Va.videoId&&(g.Tb(b.params)?a.Va.o=null:a.Va.o=b.params,a.$("remotePlayerChange"))};
m1=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.Va.listId=b.params.listId||a.Va.listId;R0(a.Va,c,d);a.$("remoteQueueChange")};
zpa=function(a,b){b.params=b.params||{};m1(a,b);n1(a,b);a.$("autoplayDismissed")};
n1=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);O0(a.Va,(0,window.isNaN)(c)?0:c);c=(0,window.parseInt)(b.params.state,10);c=(0,window.isNaN)(c)?-1:c;-1==c&&-1E3==a.Va.g&&(c=-1E3);a.Va.g=c;c=Number(b.params.loadedTime);a.Va.L=(0,window.isNaN)(c)?0:c;c=Number(b.params.duration);a.Va.G=(0,window.isNaN)(c)?0:c;var c=a.Va,d=Number(b.params.liveIngestionTime);c.B=d;c.J=(0,window.isNaN)(d)?!1:!0;var c=a.Va,d=Number(b.params.seekableStartTime),e=Number(b.params.seekableEndTime);
c.C=(0,window.isNaN)(d)?0:d;c.F=(0,window.isNaN)(e)?0:e;1==a.Va.g?xpa(a):i1(a);a.$("remotePlayerChange")};
Apa=function(a,b){if(-1E3!=a.Va.g){var c=1083;switch((0,window.parseInt)(b.params.adState,10)){case 1:c=1081;break;case 2:c=1082}a.Va.g=c;a.$("remotePlayerChange")}};
Bpa=function(a,b){var c="true"==b.params.muted;a.Va.volume=(0,window.parseInt)(b.params.volume,10);a.Va.muted=c;a.$("remotePlayerChange")};
Cpa=function(a,b){a.F=b.params.videoId;a.$("nowAutoplaying",(0,window.parseInt)(b.params.timeout,10))};
Dpa=function(a,b){var c="true"==b.params.hasNext;a.Va.H="true"==b.params.hasPrevious;a.Va.hasNext=c;a.$("previousNextChange")};
k1=function(a){g.ch(a.J);a.J=g.ah((0,g.z)(a.D,a,1),864E5)};
j1=function(a,b,c){c?e1("Sending: action="+b+", params="+g.tf(c)):e1("Sending: action="+b);a.g.sendMessage(b,c)};
o1=function(a){BZ.call(this,"ScreenServiceProxy");this.Hc=a;this.o=[];this.o.push(this.Hc.$_s("screenChange",(0,g.z)(this.pJ,this)));this.o.push(this.Hc.$_s("onlineScreenChange",(0,g.z)(this.eG,this)))};
Ipa=function(a){var b={device:"Desktop",app:"youtube-desktop"};yj&&Tba();IZ();p1||(p1=new vZ,QZ()&&(p1.g="/api/loungedev"));q1||(q1=u("yt.mdx.remote.deferredProxies_")||[],g.ka("yt.mdx.remote.deferredProxies_",q1,void 0));Epa();var c=r1();if(!c){var d=new a_(p1);g.ka("yt.mdx.remote.screenService_",d,void 0);c=r1();opa(a,d,function(a){a?s1()&&J_(s1(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){gi("yt-remote-receiver-availability-change")})},!(!b||!b.loadCastApiSetupScript))}b&&!u("yt.mdx.remote.initialized_")&&
(g.ka("yt.mdx.remote.initialized_",!0,void 0),t1("Initializing: "+g.tf(b)),u1.push(ci("yt-remote-cast2-availability-change",function(){gi("yt-remote-receiver-availability-change")})),u1.push(ci("yt-remote-cast2-receiver-selected",function(){v1(null);
gi("yt-remote-auto-connect","cast-selector-receiver")})),u1.push(ci("yt-remote-cast2-receiver-resumed",function(){gi("yt-remote-receiver-resumed","cast-selector-receiver")})),u1.push(ci("yt-remote-cast2-session-change",Fpa)),u1.push(ci("yt-remote-connection-change",function(a){a?J_(s1(),"YouTube TV"):w1()||(J_(null,null),F_())})),a=x1(),b.isAuto&&(a.id+="#dial"),g.Yl("desktop_enable_autoplay")&&(a.capabilities=["atp"]),a.name=b.device,a.app=b.app,t1(" -- with channel params: "+g.tf(a)),Gpa(a),c.start(),
s1()||Hpa())};
Jpa=function(){var a=y1();D_()&&g.Hj("yt-remote-cast-available")&&a.push({key:"cast-selector-receiver",name:"Cast..."});return a};
y1=function(){var a;a=r1().Hc.$_gos();var b=z1();b&&A1()&&(zZ(a,b)||a.push(b));return bpa(a)};
B1=function(){var a=Kpa();!a&&D_()&&E_()&&(a={key:"cast-selector-receiver",name:E_()});return a};
Kpa=function(){var a=y1(),b=z1();b||(b=w1());return g.Xa(a,function(a){return b&&qZ(b,a.key)?!0:!1})};
z1=function(){var a=s1();if(!a)return null;var b=r1().ud();return AZ(b,a)};
Fpa=function(a){t1("remote.onCastSessionChange_: "+tZ(a));if(a){var b=z1();b&&b.id==a.id?J_(b.id,"YouTube TV"):(b&&C1(),D1(a,1))}else A1()&&C1()};
C1=function(){H_()?A_().stopSession():x_("stopSession called before API ready.");var a=A1();a&&(a.disconnect(1),E1(null))};
F1=function(){var a=A1();return!!a&&3!=a.getProxyState()};
t1=function(a){lZ("remote",a)};
r1=function(){if(!G1){var a=u("yt.mdx.remote.screenService_");G1=a?new o1(a):null}return G1};
s1=function(){return u("yt.mdx.remote.currentScreenId_")};
H1=function(a){g.ka("yt.mdx.remote.currentScreenId_",a,void 0)};
I1=function(){return u("yt.mdx.remote.connectData_")};
v1=function(a){g.ka("yt.mdx.remote.connectData_",a,void 0)};
A1=function(){return u("yt.mdx.remote.connection_")};
E1=function(a){var b=A1();v1(null);a||H1("");g.ka("yt.mdx.remote.connection_",a,void 0);q1&&((0,g.H)(q1,function(b){b(a)}),q1.length=0);
b&&!a?gi("yt-remote-connection-change",!1):!b&&a&&gi("yt-remote-connection-change",!0)};
w1=function(){var a=HZ();if(!a)return null;var b=r1().ud();return AZ(b,a)};
D1=function(a,b){s1();z1()&&z1();H1(a.id);var c=new d1(p1,a,x1());c.connect(b,I1());c.subscribe("beforeDisconnect",function(a){gi("yt-remote-before-disconnect",a)});
c.subscribe("beforeDispose",function(){A1()&&(A1(),E1(null))});
E1(c)};
Hpa=function(){var a=w1();a?(t1("Resume connection to: "+tZ(a)),D1(a,0)):(OZ(),F_(),t1("Skipping connecting because no session screen found."))};
Epa=function(){var a=x1();if(g.Tb(a)){var a=GZ(),b=g.Hj("yt-remote-session-name")||"",c=g.Hj("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};g.ka("yt.mdx.remote.channelParams_",a,void 0)}};
x1=function(){return u("yt.mdx.remote.channelParams_")||{}};
Gpa=function(a){a?(g.Gj("yt-remote-session-app",a.app),g.Gj("yt-remote-session-name",a.name)):(g.Ij("yt-remote-session-app"),g.Ij("yt-remote-session-name"));g.ka("yt.mdx.remote.channelParams_",a,void 0)};
J1=function(a,b){g.L.call(this);this.o=a;a.g.addEventListener("onVolumeChange",this.Hk,this);a.g.addEventListener("onCaptionsTrackListChanged",this.lu,this);a.g.addEventListener("captionschanged",this.bu,this);a.g.addEventListener("captionssettingschanged",this.Fo,this);a.g.addEventListener("videoplayerreset",this.Li,this);a.g.addEventListener("mdxautoplaycancel",this.ir,this);this.B=!1;this.g=b;b.isDisposed();b.subscribe("proxyStateChange",this.zu,this);b.subscribe("remotePlayerChange",this.Ki,this);
b.subscribe("remoteQueueChange",this.Li,this);b.subscribe("autoplayUpNext",this.$t,this);b.subscribe("previousNextChange",this.wu,this);b.subscribe("nowAutoplaying",this.ou,this);b.subscribe("autoplayDismissed",this.Zt,this);this.suggestion=null;this.F=new Kk(64);this.D=this.C=window.NaN;this.A={};this.H=new g.Id(this.Pv,1E3,this);g.M(this,this.H);this.G=new ur(this.LL,1E3,this);g.M(this,this.G);this.J=g.v;this.Fo();this.Li();this.Ki()};
K1=function(a,b){var c=a.o,d=a.o.g.getVideoData().lengthSeconds;c.J=b||0;c.g.Ra("progresssync",b,d)};
N1=function(a){K1(a,0);L1(a);M1(a,new Kk(64))};
Q1=function(a,b){if(O1(a)&&!a.B){var c=null;b&&(c={style:a.o.g.jj()},g.Zb(c,b));a.g.yv(P1(a),c);a.A=hl(a.g).o}};
R1=function(a,b){var c=a.o.g.je();c?Y0(a.g,P1(a),b,c.g,c.listId.toString()):Y0(a.g,P1(a),b);M1(a,new Kk(1))};
S1=function(a,b){if(b){var c=a.o.g.Dc("captions","tracklist",{wt:1});c&&c.length?(a.o.g.Ze("captions","track",b),a.B=!1):(a.o.g.kp("captions"),a.B=!0)}else a.o.g.Ze("captions","track",{})};
O1=function(a){return hl(a.g).videoId==P1(a)};
P1=function(a){return a.o.g.getVideoData().videoId};
T1=function(a){L1(a);if(!a.g.isDisposed()){var b=hl(a.g);b.gb()&&M1(a,new Kk(8));K1(a,P0(b));a.C=g.ah((0,g.z)(function(){T1(this)},a),500)}};
L1=function(a){g.ch(a.C);a.C=window.NaN};
U1=function(a){g.ch(a.D);a.D=window.NaN};
M1=function(a,b){U1(a);var c=a.F;if(b.o!=c.o||b.g!=c.g){var d=g.T(b,2);if(d!=g.T(a.F,2)){var e=a.o.g;(e=g.el(e.app,e.playerType||1))&&NU(e,d)}a.F=b;V1(a.o,c,b)}};
W1=function(a){fn.call(this,a);this.tb=this.logEvent="remote";this.A={key:yZ(),name:g.Q("YTP_MDX_MY_COMPUTER")};this.C=null;this.D=[];this.L=this.o=null;this.H=[this.A];this.B=this.A;this.G=new Kk(64);this.J=0};
V1=function(a,b,c){a.G=c;a.g.Ra("presentingplayerstatechange",new LU(c,b))};
X1=function(a,b,c){if(b.key!=a.B.key)if(b.key==a.A.key)C1();else{a.B=b;var d;if(!c){c=a.g.je();d=a.g.getVideoData().videoId;var e;if(c){e=[];for(var f=0;f<c.B;f++)e[f]=c.Qb(f).videoId}else e=[a.g.getVideoData().videoId];d={videoIds:e,listId:a.g.Xe(),videoId:d,index:Math.max(a.g.tw(),0),currentTime:a.g.getCurrentTime()}}a=d;t1("Connecting to: "+g.tf(b));"cast-selector-receiver"==b.key?(v1(a||null),b=a||null,H_()?A_().setLaunchParams(b):x_("setLaunchParams called before ready.")):!a&&F1()&&s1()==b.key?
gi("yt-remote-connection-change",!0):(C1(),v1(a||null),a=r1().ud(),(b=AZ(a,b.key))&&D1(b,1))}};
Y1=function(a){var b=a.W,c=["html5-video-player"];b.H&&c.push("ytp-dni");g.zy.call(this,{K:"div",ea:c,X:{tabindex:-1,id:a.ba.attrs.id},T:[{K:"div",Y:"html5-video-container",X:{"data-layer":0}}]});ih(this.element,"version",a.ba.assets.js);this.app=a;this.P=null;this.A=this.ua["html5-video-container"];this.ba=!!this.A;this.C=new g.yf(0,0,0,0);this.o=null;this.F=new g.yf(0,0,0,0);this.J=this.V=window.NaN;this.G=!1;this.H=window.NaN;this.N=!1;this.D=null;this.addEventListener=(0,g.z)(this.element.addEventListener,
this.element);this.removeEventListener=(0,g.z)(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
Gx(b)&&"blazer"!=b.o&&"mweb-polymer"!=b.o&&window.matchMedia&&(this.Z="desktop-polymer"==b.o?[{query:window.matchMedia("(max-width: 656px)"),size:new g.ze(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.ze(640,360)},{query:window.matchMedia("(max-width: 1096px)"),size:new g.ze(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ze(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ze(854,480)},
{query:window.matchMedia("(min-width: 1097px)"),size:new g.ze(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.ze(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.ze(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.ze(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.ze(640,360)}]);this.B=null;g.gh({YTP_AD_BADGE:"Ad",YTP_AD_POD_POSITION:"$AD_INDEX of $ADS_COUNT",YTP_ADVERTISEMENT:"Advertisement",
YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CARDS_BUTTON_ARIA_LABEL:"Show cards",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"Hide cards",YTP_DRAWER_HEADER_TEXT_2:"More info",YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"Want to vote?",
YTP_DRAWER_POLL_TITLE_ARIA_LABEL:"$POLL_TITLE - Sign in to vote.",YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",YTP_PLAYBACK_SPEED_CHANGED:"Speed is $RATE",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC_WITHOUT_LINK:"An error occurred. Please try again later.",YTP_ERROR_GENERIC_WITH_LINK_AND_CPN:"An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",
YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FULLSCREEN_GENERIC_ERROR:"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK",YTP_VOLUME_UNSUPPORTED_ERROR:"Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"Promotion",
YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",YTP_LOOP:"Loop",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MDX_CAST_SELECTOR:"Cast...",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",
YTP_PREVIOUS:"Previous",YTP_PLAYBACK_STALLED_AT_START:"If playback doesn't begin shortly, try restarting your device.",YTP_MISSING_FORMATS:"Missing options?",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_SUGGESTED_VIDEOS:"Suggested videos",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SEEK_BACK:"Seek back 10 seconds",YTP_SEEK_FORWARD:"Seek forward 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%-90%.",YTP_SETTINGS:"Settings",YTP_SHARE:"Share",YTP_SHARE_LINK:"Share link",
YTP_SHARE_WITH_PLAYLIST_2:"Include playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SIGN_IN:"Sign in",YTP_SPHERICAL_CONTROL:"Spherical video control. Use the arrow keys to pan the video.",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBSCRIBE:"Subscribe",YTP_SUBTITLES:"Subtitles/CC",YTP_SUBTITLES_TOOLTIP:"Subtitles/closed captions",YTP_SUBTITLES_OFF:"Subtitles/closed captions off",YTP_SUBTITLES_ON:"Subtitles/closed captions on",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",
YTP_THREED_VIEWMODE_ANAGLYPH:"Anaglyph",YTP_THEATER_MODE:"Theater mode",YTP_TOGGLE_FULLSCREEN:"Toggle fullscreen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_UNSUBSCRIBE:"Unsubscribe",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_URL_NAVIGATE_TO:"Watch on $WEBSITE",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_ADDED_TO_WATCH_LATER_AS:"Added as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",
YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_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.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_EXPAND:"Expand",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",
YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",
YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_PROTECTED_FLASH_FALLBACK:"To watch this video, install the latest Flash Player, or try a different browser. $BEGIN_LINKGet Flash Player$END_LINK.",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_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",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",
YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",
YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",YTP_ERROR_FORMAT_UNAVALIABLE:"This video isn't avaliable at the selected quality. Please try again later.",
YTP_MDX_STATUS_CONNECTED:"Connected to",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_STATUS_PLAYING:"Playing on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",
YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"YouTube Video Player",YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Fullscreen",YTP_SPONSORED:"Sponsored",
YTP_SPONSORED_PRODUCT_INFO:"You are seeing this product because we think it is relevant to the video. Google may be compensated by the merchant.",YTP_SPONSORED_PRODUCT_BADGE:"Shop",YTP_AD_SETTINGS_INFO:"Visit Google's $BEGIN_FORMATAd Settings$END_FORMAT to learn more about how ads are targeted or to opt out of personalized ads.",YTP_PIP:"Picture in Picture",YTP_AUTO_TRANSLATE:"Auto-translate",YTP_SWITCH_CAMERA:"Switch camera",YTP_MULTICAM_INDEX:"Viewing $CAMERA_INDEX of $CAMERA_COUNT",YTP_MORE_CAMERAS_AVAILABLE:"More cameras available",
YTP_VIDEO_SUBTITLES_OVERRIDE:"Video Override",YTP_VIDEO_SUBTITLES_OVERRIDE_DESC:"Allow for a different caption style if specified by the video."});this.app.Kb.addEventListener("initializingmode",this.zC,this);this.app.Kb.addEventListener("videoplayerreset",this.RL,this);this.app.Kb.addEventListener("videodatachange",this.QL,this);this.app.Kb.addEventListener("presentingplayerstatechange",this.YB,this)};
Mpa=function(a,b){a.o=b;a.G=!1;if(!a.o.parentNode)try{Xe(a.A,a.o,0)}catch(d){var c="videoElement_: "+!!a.o+", containerElement: "+!!a.A+", containerElement.childNodes: "+!(!a.A||!a.A.childNodes)+", containerInitiallyTruthy: "+a.ba+", isDisposed: "+a.isDisposed();throw Error(c);}a.B&&(a.B.disconnect(),a.B=null);!a.app.W.experiments.g("no_detect_bad_extensions2")&&window.MutationObserver&&(a.B=new window.MutationObserver((0,g.z)(function(a){for(var b=0;b<a.length;b++){var c=a[b];"style"==c.attributeName&&
"100%"==c.target.style.height&&(window.console.warn("Detected an extension setting the video size to an invalid height, which hides video playback. Restoring the original height..."),this.F=new g.yf(0,0,0,0),Z1(this))}},a)),a.B.observe(a.o,{attributes:!0}));
a.F=new g.yf(0,0,0,0);Z1(a);AW(a);Lpa(a)};
Lpa=function(a){g.O(a.o,"video-stream");g.O(a.o,"html5-main-video");var b=a.app.W;b.Eb&&a.o.setAttribute("data-no-fullscreen",!0);b.re&&(a.o.setAttribute("webkit-playsinline",""),a.o.setAttribute("playsinline",""));b.Hh&&a.U(a.o,"click",a.o.play,a.o)};
a2=function(a,b){if(a.o){var c=a.app.W;Ck&&(a.o.setAttribute("x-webkit-airplay","allow"),b.title?a.o.setAttribute("title",b.title):a.o.removeAttribute("title"));var d;c.Ok&&b.videoId?d=b.bd(c,"default.jpg"):c.experiments.g("legacy_poster_behavior")||qc&&!$1&&!Oh()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.o.poster=d)}c=b.Ee("yt:bgcolor");a.A.style.backgroundColor=c?c:"";a.V=Kv(b.Ee("yt:stretch"));c=b.Ee("yt:crop");a.J="fullwidth"==c?window.Infinity:
"fullheight"==c?0:Kv(c)};
g.c2=function(a){return(a=a.o)?b2(a.videoWidth,a.videoHeight):window.NaN};
g.ls=function(a,b){var c=a.Sa(),d=d2(a,c,g.c2(a),b);return new g.yf((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
d2=function(a,b,c,d){(0,window.isNaN)(a.V)||(c=a.V);var e=c;(0,window.isNaN)(a.J)||(e=a.J);a=b2(b.width,b.height);(0,window.isFinite)(e)||(e=Math.max(c,a));var f;e>a?f={width:b.width,height:b.width/e,aspectRatio:e}:e<a?f={width:b.height*e,height:b.height,aspectRatio:e}:f={width:b.width,height:b.height,aspectRatio:a};d||(0,window.isNaN)(c)||(c>e?f.width=f.height*c:c<e&&(f.height=f.width/c),f.aspectRatio=c);return f};
b2=function(a,b){return 1>Math.abs(e2*b-a)||1>Math.abs(e2/a-b)?e2:a/b};
f2=function(a){return 1==a.app.P?!1:(a=g.fl(a.app.g))&&!g.T(a,2)&&!Sk(a)};
AW=function(a){var b="3"==a.app.W.B&&!a.G&&f2(a);a.o.controls=b;a.o.tabIndex=b?0:-1};
Z1=function(a){var b=g.c2(a),c=a.Sa(),d=1,e=!1,f,k=d2(a,c,b),l=Xh();f2(a)?(f=(0,window.isNaN)(b),Ck&&!g.oc(601)?b=k.aspectRatio:f=f||"3"==a.app.W.B,f?f=new g.yf(0,0,c.width,c.height):(d=k.aspectRatio/b,f=new g.yf((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,k.height),1==d&&hv&&!a.app.W.experiments.g("use_legacy_safari_video_scaling")&&(b=f.width-c.height*b,0<b&&(f.width+=b))),l&&(a.o.style.display=""),a.N=!0):(b=-c.height,Ck?b*=window.devicePixelRatio:g.Lx&&(b-=window.screen.height),f=new g.yf(0,
b,c.width,c.height),l&&(a.o.style.display="none"),a.N=!1);Af(a.F,f)||(a.F=f,g.hj(a.o,new g.ze(f.width,f.height)),g.Yi(a.o,Bf(f)),e=!0);c=new g.yf((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);Af(a.C,c)||(a.C=c,e=!0);g.Si(a.o,"transform",1==d?"":"scaleX("+d+")");return e};
g2=function(){this.g=[];this.o=[];this.A=[]};
i2=function(a,b,c){c=g.Re(c?"AUDIO":"VIDEO");g.va(c,Npa);g.Vj(c,"loadeddata",(0,g.z)(c.o,c));qx&&6<=zk&&g.Vj(c,"webkitbeginfullscreen",(0,g.z)(c.play,c));a.o.push(c);b?a.A.push(c):h2(a,c);return c};
h2=function(a,b){g.ab(a.o,b)&&!g.ab(a.g,b)&&(b.src||b.load(),g.eb(a.A,b)||a.g.push(b))};
j2=function(a,b,c,d){g.en.call(this);this.B=a;this.P=(0,g.z)(b,null);this.o=0;this.D=!1;this.A=new xe(window.NaN,window.NaN);this.g=new g.ir(this);g.M(this,this.g);b=d?4E3:3E3;this.G=new g.Id(g.B(this.Tb,1,!1),b,this);g.M(this,this.G);this.H=new g.Id(g.B(this.Tb,2,!1),b,this);g.M(this,this.H);this.L=new g.Id(g.B(this.Tb,512,!1),0,this);g.M(this,this.L);this.N=c&&0<c.ga.length?5E3:3E3;d||(this.O=this.g.U(a,"mouseover",this.Hx),this.g.U(a,"mousemove",this.ML),this.g.U(a,"mouseleave",this.OD));Pi?this.g.U(a,
"keypress",this.xD):this.g.U(a,"focusin",this.nB);this.C=this.g.U(a,"mousedown",this.Gx);this.F=this.g.U(a,"touchstart",this.Ix,void 0,!0);this.V=null;this.Tb(640,!0)};
k2=function(a){a.Tb(4,!1);a.J&&(a.g.Ca(a.J),a.J=null,a.O=a.g.U(a.B,"mouseover",a.Hx))};
l2=function(a,b){g.W.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.o=window.NaN;this.G=null};
n2=function(a,b){l2.call(this,a,b);this.J=null;this.D=this.F=this.B=this.A=0;this.C=-75;g.O(this.element,"ytp-tv-static");m2(this,a,b)};
o2=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;break}d=!0}if(d)return c}return b};
m2=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=g.Re("CANVAS");d.width=b;d.height=c;for(var e=d.getContext("2d"),f=e.getImageData(0,0,b,c),k=b*c,l=0;l<k;l++){var m=4*l;f.data[m]=f.data[m+1]=f.data[m+2]=Math.floor(35*Math.random());f.data[m+3]=255}e.putImageData(f,0,0);a.J=d;a.F=o2(b);a.D=o2(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}};
q2=function(a){g.W.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.A=a;this.B=[];void 0==p2&&(a=g.Re("CANVAS"),p2=!(!a.getContext||!a.getContext("2d")));p2&&(this.o=new n2(1,1),this.o.Fa(this.element,0),g.M(this,this.o));a=g.gl(this.A).Sa();this.o&&m2(this.o,a.width,a.height)};
r2=function(a,b,c,d,e){e||(e=g.V(a.A).C);a=d?{CPN:a.A.getVideoData().clientPlaybackNonce}:null;b=g.Q(b,a).split(/\$(BEGIN|END)_LINK/);return["span",null,b[0],["br"],["a",{href:c,target:e?"_blank":null},b[2]],b[4]]};
s2=function(a){for(var b=0;b<a.length;b++){var c=a[b];"send_follow_on_ping_action"==c.name&&c.data&&c.data.follow_on_url&&g.oi(c.data.follow_on_url)}};
Opa=function(a,b,c){t2("add_to_watch_later_list",a,b,c)};
Ppa=function(a,b,c){t2("delete_from_watch_later_list",a,b,c)};
t2=function(a,b,c,d){g.li(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Bc:{feature:b.feature||null,authuser:b.hc||null,pageid:b.pageId||null},Sb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.CU||null,add_to_playlists:b.qU||null,plid:("PLAYBACK_ID"in g.Yg?g.Yg.PLAYBACK_ID:void 0)||null},context:b.context,onError:b.onError,Cb:function(a,c){var d=c.result;d&&d.actions&&s2(d.actions);
b.Cb.call(this,a,c)},
cd:b.cd,withCredentials:!!d})};
u2=function(){g.W.call(this,{K:"div",Y:"ytp-sparkline"})};
v2=function(a,b){for(var c=a.element.children.length;c<b.length;c++){var d=g.Re("SPAN");d.style.width=100/b.length+"%";a.element.appendChild(d)}d=Math.max.apply(Math,b)||1;for(c=0;c<b.length;c++)a.element.children[c].style.height=b[c]/d*100+"%";for(;a.element.children.length>b.length;)g.Ye(a.element.lastChild)};
w2=function(a){var b;b=["button",["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"];g.W.call(this,["div","html5-video-info-panel",b,["div","html5-video-info-panel-content",["div","",["div","","Video ID:"],["span","","{{video_id}}"]],["div","",["div","","Dimensions:"],["span","","{{dimensions}}"]],["div","",["div","","Resolution:"],["span","","{{resolution}}"]],["div","",["div","","Volume:"],["span","","{{volume}}"]],["div","",["div","","Stream Host:"],["span","","{{stream_host}}"]],
["div","",["div","","Stream Type:"],["span","","{{stream_type}}"]],["div",{style:"{{cpn_style}}"},["div","","CPN:"],["span",{style:"font-family:monospace"},"{{cpn}}"]],["div","",["div","","Mime Type:"],["span","","{{mime}}"]],["div","",["div","","DASH:"],["span","","{{dash}}"]],["div",{style:"{{color_style}}"},["div","","Color:"],["span","","{{color}}"]],["div",{style:"{{drm_style}}"},["div","","Protected:"],["span","","{{drm}}"]],["div","",["div","","Connection Speed:"],["span","",["span","","{{bandwidth_sparkline}}"],
["span","","{{bandwidth_kbps}}"]]],["div","",["div","","Buffer Health:"],["span","",["span","","{{buffer_health_sparkline}}"],["span","","{{buffer_health_seconds}}"]]],["div","",["div","","Network Activity:"],["span","",["span","","{{network_activity_sparkline}}"],["span","","{{network_activity_bytes}}"]]],["div",{style:"{{live_latency_style}}"},["div","","Live Latency:"],["span","",["span","","{{live_latency_sparkline}}"],["span","","{{live_latency_message}}"]]],["div","",["div","","Dropped Frames:"],
["span","","{{dropped_frames}}"]],["div",{style:"{{sequence_number_style}}"},["div","","Sequence Number:"],["span","","{{sequence_number}}"]]]]);b&&this.U(this.ua["html5-video-info-panel-close"],"click",this.ma);this.A=new u2;g.M(this,this.A);this.Ea("bandwidth_sparkline",this.A);this.C=new u2;g.M(this,this.C);this.Ea("live_latency_sparkline",this.C);this.B=new u2;g.M(this,this.B);this.Ea("buffer_health_sparkline",this.B);this.D=new u2;g.M(this,this.D);this.Ea("network_activity_sparkline",this.D);
this.F=new g.Id(this.G,500,this);g.M(this,this.F);this.o=a};
x2=function(a,b){this.A=a||window.NaN;this.g=b||null;this.o=[]};
g.z2=function(a){uk.call(this);this.H=new Jm;this.N="";this.J=1;this.g=new rh(a.va);var b=(0,g.z)(this.fI,this);this.g.D.notify=b;y2(this);this.Z=a.ci};
y2=function(a){a.O=window.HTMLMediaElement.HAVE_NOTHING;a.P=0;a.G=0;a.A=!1;a.L=!1;a.F=!1;a.V=null};
A2=function(a){this.o=null;for(var b=[],c=0;100>=c;c++)b.push(c/100);b={threshold:b};(this.g=window.IntersectionObserver?new window.IntersectionObserver((0,g.z)(this.A,this),b):null)&&this.g.observe(a)};
B2=function(a){g.zy.call(this,{K:"div",Y:"ytp-ad-persistent-progress-bar-container",T:[{K:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.A=a;this.D=this.ua["ytp-ad-persistent-progress-bar"];this.o=null;this.U(a,"presentingplayerstatechange",this.C);this.ma();this.C()};
C2=function(a){g.W.call(this,{K:"div",Y:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},T:[{K:"div",Y:"ytp-bezel-icon",T:["{{icon}}"]}]});this.A=new g.Id(this.show,10,this);g.M(this,this.A);this.o=new g.Id(this.ma,500,this);g.M(this,this.o);this.aa=a;this.ma()};
E2=function(a){var b=g.fl(a.aa);Mk(b)?(b=a.aa.getVideoData(),b.o&&!b.P?D2(a,Rg(),g.Q("YTP_STOP")):D2(a,Lg(),g.Q("YTP_PAUSE"))):g.T(b,64)||D2(a,Mg(),g.Q("YTP_PLAY"))};
F2=function(a,b,c){0>=b?(c=Wg(),b=g.Q("YTP_SCREENREADER_VOLUME_MUTED")):(c=c?Vg():Ug(),b=Math.floor(b)+"% "+g.Q("YTP_SCREENREADER_VOLUME_SETTING"));D2(a,c,b)};
G2=function(a,b,c){c=c?g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-fast-rewind"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-fast-forward"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};b=g.Q("YTP_PLAYBACK_SPEED_CHANGED",
{RATE:b});D2(a,c,b)};
D2=function(a,b,c){a.Ea("label",c||"");a.Ea("icon",b);g.Kd(a.o);a.A.start()};
H2=function(a,b){var c=["button",["ytp-button","ytp-cards-button"],{"aria-label":g.Q("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0},["span","ytp-cards-button-icon-default",g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-info-card"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}],
["span","ytp-cards-button-icon-shopping",g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-shopping-card"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",Y:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{K:"path",Y:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{K:"path",Y:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]];g.W.call(this,
c);this.aa=a;this.D=b;this.o=null;this.A=new lq(this,250,!0,100);g.M(this,this.A);this.ma();this.S("click",this.B);this.S("mouseover",this.C);qq(this,!0)};
qq=function(a,b){b?a.o=I2(a.D.o,a.element):(a.o(),a.o=null)};
J2=function(a,b,c,d,e){this.aa=a;this.V=b;this.da=!!e;this.H=null;this.J=new g.ir(this);this.N=new lq(this,d,!0);g.M(this,this.N);this.C=null;g.zy.call(this,c)};
K2=function(a){a.C&&(window.document.activeElement&&g.df(a.element,window.document.activeElement)&&(kf(a.C),a.C.focus()),a.C.removeAttribute("aria-expanded"),a.C=null);g.kr(a.J);a.H=null};
L2=function(a){return a.g&&3!=a.N.g};
M2=function(a,b,c){this.o=[];this.size=new g.ze(0,0);this.D=this.F=null;this.Z=this.ba=0;J2.call(this,a,b,{K:"div",ea:["ytp-popup",c||null]},100,!0);a=g.V(a);a.H&&(this.element.style.background=a.qb);this.S("keydown",this.tM)};
N2=function(a){g.hj(a.element,a.ba||"100%",a.Z||"100%");var b=a.o[a.o.length-1];b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.ca.element.style.height="";var c=g.ij(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.fa&&(d=g.ij(b.ua["ytp-panel-header"]).height);b.ca.element.style.height=c.height-d+"px";a.size=
c};
P2=function(a,b){var c=a.o[a.o.length-1];a.o.push(b);O2(a,c,b)};
Q2=function(a){var b=a.o.pop(),c=a.o[0];a.o=[c];O2(a,b,c,!0)};
O2=function(a,b,c,d){R2(a);!g.Md(c.element,"ytp-panel-animate-back")&&g.Md(c.element,"ytp-panel-animate-forward");b&&(b.Ka("size-change",a.ol,a),b.Ka("back",a.Mf,a));c.subscribe("size-change",a.ol,a);c.subscribe("back",a.Mf,a);if(a.g){g.O(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Fa(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;N2(a);g.hj(a.element,e);a.F=new g.Id(g.B(a.JI,b,c,d),20,a);a.F.start()}else c.Fa(a.element),b&&b.detach()};
R2=function(a){a.F&&g.Jd(a.F);a.D&&g.Jd(a.D)};
T2=function(a,b,c,d){g.zy.call(this,a);this.priority=b;c&&S2(this,c);d&&this.sc(d)};
U2=function(a,b,c){b=b?b:[];b.push("ytp-menuitem");a=a?a:{};"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex=0);return{K:c?"a":"div",ea:b,X:a,T:[{K:"div",Y:"ytp-menuitem-label",T:["{{label}}"]},{K:"div",Y:"ytp-menuitem-content",T:["{{content}}"]}]}};
S2=function(a,b){a.Ea("label",b)};
V2=function(a,b,c,d,e){var f={K:"div",Y:"ytp-panel"};if(c){var k="ytp-panel-title",l={K:"div",Y:"ytp-panel-header",T:[{K:"button",ea:["ytp-button",k],T:[c]}]};if(e){var m="ytp-panel-options";l.T.push({K:"button",ea:["ytp-button",m],T:[d]})}f.T=[l]}g.zy.call(this,f);this.ca=b;b.Fa(this.element);this.fa=!1;c&&(this.U(this.ua[k],"click",this.la),this.fa=!0,e&&this.U(this.ua[m],"click",e));b.subscribe("size-change",this.ga,this);this.U(a,"fullscreentoggled",this.ga)};
W2=function(a,b,c,d,e){this.A=new g.zy({K:"div",Y:"ytp-panel-menu",X:{role:"menu",id:b||null}});g.M(this,this.A);V2.call(this,a,this.A,c,d,e);this.o=[]};
X2=function(a,b,c){if(c)a.o.push(b),a.A.element.appendChild(b.element);else{c=g.sb(a.o,b,Qpa);if(0<=c)return;c=~c;g.ob(a.o,c,0,b);Xe(a.A.element,b.element,c)}b.subscribe("size-change",a.ba,a);a.A.$("size-change")};
Qpa=function(a,b){return b.priority-a.priority};
Y2=function(a){var b=U2({"aria-haspopup":!0});T2.call(this,b,a);this.S("keydown",this.o)};
Z2=function(a,b){a.element.setAttribute("aria-haspopup",b)};
$2=function(a,b){this.o=!1;var c=U2({role:"menuitemcheckbox","aria-checked":this.o});T2.call(this,c,b,a,{K:"div",Y:"ytp-menuitem-toggle-checkbox"});this.S("click",this.H)};
a3=function(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};
d3=function(a,b,c){this.aa=a;this.Z=b;this.N=c;W2.call(this,a);this.D=new Y2(8);g.M(this,this.D);X2(this,this.D,!0);this.D.S("click",this.oF,this);Nl(a,this.D,28659);this.C=new Y2(7);g.M(this,this.C);X2(this,this.C,!0);this.C.S("click",this.nF,this);Nl(a,this.C,28660);this.B=new Y2(6);g.M(this,this.B);X2(this,this.B,!0);this.B.S("click",this.lF,this);Nl(a,this.B,28658);this.G=new $2(g.Q("YTP_LOOP"),5);g.M(this,this.G);X2(this,this.G,!0);this.G.S("click",this.EF,this);Nl(a,this.G,28661);this.V=new T2(U2({href:"{{href}}",
target:"_blank"},void 0,!0),4,g.Q("YTP_REPORT_ISSUE"));g.M(this,this.V);X2(this,this.V,!0);this.V.S("click",this.IG,this);this.P=new Y2(3);g.M(this,this.P);X2(this,this.P,!0);this.P.S("click",this.kF,this);b=new T2(U2(),2,g.Q("YTP_SHOW_VIDEO_INFO"));g.M(this,b);X2(this,b,!0);b.S("click",this.YG,this);b="//"+Dx(g.V(this.aa))+"/html5";this.H=new T2(U2({href:b,target:"_blank"},void 0,!0),1,g.Q("YTP_HTML5_CONTEXT_MENU_LINK"));g.M(this,this.H);X2(this,this.H,!0);this.H.S("click",this.TD,this);Nl(a,this.H,
28657);this.J=new g.zy({K:"div",ea:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:!1,tabindex:1},T:["{{text}}"]});g.M(this,this.J);this.J.S("click",this.SE,this);this.da=new V2(a,this.J);g.M(this,this.da);this.F=null;b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");g.Uh&&g.oc(43)&&(b=!0);g.dv&&!g.oc(41)&&(b=!1);b&&(this.F=new g.W({K:"input",Y:"ytp-html5-clipboard"}),g.M(this,this.F),this.F.Fa(this.element));this.U(a,"loopchange",this.DF);this.U(a,"videodatachange",
this.bM);b3(this);c3(this,this.aa.getVideoData())};
e3=function(a,b){var c;if(a.F){a.F.element.value=b;a.F.element.select();try{c=window.document.execCommand("copy")}catch(d){}}c?a.N.Ob():(a.J.sc(b,"text"),P2(a.N,a.da),tn(a.J.element),a.F&&(a.F=null,b3(a)));return c};
c3=function(a,b){var c=g.V(a.aa),d=2!=a.aa.Za()||b.isListed,d=!c.J&&!!b.videoId&&d;"play"!=c.o?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.A&&(c.fmt=Bi(b.A)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.Na&&(c.partnerid=b.Na),c=g.ag("//support.google.com/googleplay/",c));a.B.Ab(d&&b.allowEmbed);a.D.Ab(d);a.C.Ab(d&&!b.o);a.V.sc(c,"href")};
b3=function(a){var b=!!a.F;S2(a.P,g.Q(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));Z2(a.P,!b);S2(a.B,g.Q(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));Z2(a.B,!b);S2(a.D,g.Q(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));Z2(a.D,!b);S2(a.C,g.Q(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));Z2(a.C,!b)};
f3=function(a,b){g.Pl(a.aa,a.H,b);g.Pl(a.aa,a.B,b);g.Pl(a.aa,a.D,b);g.Pl(a.aa,a.C,b);g.Pl(a.aa,a.G,b)};
h3=function(a,b){this.A=a;this.G=new g.ir(this);g.M(this,this.G);this.B=null;M2.call(this,a,b);Nl(a,this,28656);g.O(this.element,"ytp-contextmenu");g.V(a).H&&g.O(this.element,"ytp-dni");g3(this);this.ma()};
g3=function(a){g.kr(a.G);"gvn"!=g.V(a.A).o&&a.G.U(g.gl(a.A),"contextmenu",a.RE)};
i3=function(a){a.A.isFullscreen()?g.Kl(a.A,a.element,10):a.Fa(window.document.body)};
j3=function(a){this.G=new g.ir(this);g.Jy.call(this,a,{K:"div",ea:["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"],T:[{K:"div",Y:"ytp-thumbnail-overlay-image"}]});this.J=a;this.H=this.ua["ytp-thumbnail-overlay-image"];this.C=new g.Id(this.Ux,0,this);g.M(this,this.C);var b=g.V(a);b.experiments.g("moving_thumbnails_cued_state")&&(this.A=new g.W({K:"img",Y:"ytp-thumbnail-overlay-moving",X:{src:"{{url}}"}}),g.M(this,this.A),this.A.Fa(this.element),this.D=new g.Id(this.XF,5500,this),g.M(this,this.D),
this.F=new lq(this.A,500),g.M(this,this.F),this.U(this.A.element,"load",this.fM),this.U(this.element,"mouseenter",this.dM),this.U(this.element,"mouseleave",this.eM));this.Ux();this.U(a,"presentingplayerstatechange",this.hM);"detailpage"==b.g&&this.U(a,"videoplayerreset",this.gM)};
l3=function(a,b,c){var d=Sk(c),e=!g.V(b).experiments.g("disable_new_pause_state3");b=g.T(c,2)&&!bl(b)&&(!e||!g.k3(b.app));d||b?a.show():(g.nq(a),g.T(c,1)||a.stop())};
m3=function(a,b,c,d,e,f,k){g.ir.call(this);this.g=a;this.G=c;this.D=d;this.B=e;this.o=f;this.F=k;this.C=new g.Id(g.B(this.Wx,!1),1E3,this);g.M(this,this.C);this.A="";a=g.B(this.zo,!1);this.U(b,"mousedown",a);this.U(c.element,"mousedown",a);this.U(b,"keydown",this.Is);this.U(c.element,"keydown",this.Is);this.U(b,"keyup",this.Js);this.U(c.element,"keyup",this.Js)};
o3=function(a,b,c){var d=!1,e=g.V(a.g);if(!e.Cd){switch(b){case 80:c&&(D2(a.o,Og(),g.Q("YTP_PREVIOUS")),a.g.Cl(),d=!0);break;case 78:c&&(D2(a.o,Kg(),g.Q("YTP_NEXT")),a.g.gj(),d=!0);break;case 74:D2(a.o,g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]});
a.g.ke(-10*a.g.app.o.H);d=!0;break;case 76:D2(a.o,g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]});
a.g.ke(10*a.g.app.o.H);d=!0;break;case 77:a.g.Bd()?(a.g.Vf(),F2(a.o,a.g.getVolume(),!1)):(a.g.mute(),F2(a.o,0,!0));d=!0;break;case 75:E2(a.o);Mk(g.fl(a.g))?a.g.fd():a.g.Ye();d=!0;break;case 190:if(c){if(e.Oa)for(b=a.g.dj(),c=a.g.app.o.H,e=0;e<b.length-1;e++)b[e]==c&&(d=b[e+1],a.g.hj(d,!0),G2(a.o,d,!1),d=!0)}else n3(a,1),d=!0;break;case 188:if(c){if(e.Oa)for(b=a.g.dj(),c=a.g.app.o.H,e=b.length-1;1<=e;e--)b[e]==c&&(d=b[e-1],a.g.hj(d,!0),G2(a.o,d,!0),d=!0)}else n3(a,-1),d=!0;break;case 70:Dy(a.g)&&(g.jl(a.g),
d=!0)}d&&a.D.Tb(2,!0)}return d};
q3=function(a,b,c,d){if(g.Zk(a.g).g){for(var e=a.g.jj(),f,k=0;k<p3.length;k++){var l=p3[k];if(l.option==b){f=l.options;break}}for(var m,k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return!1}else if(m==f.length-1)return!1;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;a.g.lp(d);a.Wx(!0);a.C.start();return!0}return!1};
n3=function(a,b){if(g.T(g.fl(a.g),4)){var c=a.g.getVideoData().A;c&&(c=c.video)&&a.g.ke(b/(c.fps||30))}};
s3=function(a){var b=["ytp-large-play-button","ytp-button"],c=g.V(a),d;c.H?d=g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-dni-large-play-button"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},T:[{K:"circle",Y:"ytp-large-play-button-bg",X:{cx:"34",cy:"24",fill:"#f00","fill-opacity":"0.8",r:"30"}},{K:"path",X:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}}]}:c.Z&&!c.Ic?d=pba():(c.isMobile&&b.push("ytp-touch-device"),d=c.Ic?g.Ag?{K:"div",ea:["ytp-icon",
"ytp-icon-house-brand-large-play-button"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},T:[{K:"path",Y:"ytp-large-play-button-bg",X:{"clip-rule":"evenodd",d:"M59.6,1.35c0.26,.5,.4,1.13,.4,1.9v53.5c0,.76-0.13,1.4-0.4,1.9c-0.5,.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.33-0.43-2.8-1.3C0.15,58.16,0,57.51,0,56.75V3.25c0-0.83,.16-1.5,.5-2C1,.41,1.91,0,3.25,0h53.5C58.15,0,59.1,.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z",fill:"#1f1f1f","fill-rule":"evenodd"}},{K:"path",X:{d:"M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z",
fill:"#fff"}}]}:g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-large-play-button"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},T:[{K:"path",Y:"ytp-large-play-button-bg",X:{d:"m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z",
fill:"#1f1f1e","fill-opacity":"0.81"}},{K:"path",X:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{K:"path",X:{d:"M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z",fill:"#ccc"}}]});g.W.call(this,{K:"button",ea:b,X:{"aria-label":"{{label}}"},T:[d]});c.H&&(this.ua["ytp-large-play-button-bg"].style.fill=c.qb);this.o=a;this.B=!1;this.A=new lq(this,250);g.M(this,this.A);this.U(a,"presentingplayerstatechange",this.C);r3(this,g.fl(a))};
r3=function(a,b){if(g.V(a.o).Ei&&!a.B){l3(a.A,a.o,b);var c;c=(c=a.o.getVideoData())&&c.title?g.Q("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):g.Q("YTP_PLAY");a.Ea("label",c)}else a.ma()};
t3=function(a){g.W.call(this,["div","ytp-paid-content-overlay",{"aria-live":"assertive","aria-atomic":"true"}]);this.H=new g.W(["div",["ytp-button","ytp-paid-content-overlay-text"]]);this.H.Fa(this.element);this.aa=a;this.A=null;this.F=!1;this.C=new lq(this.H,250,!1,100);g.M(this,this.C);this.D=this.o=null;this.B={};this.G=0;this.U(a,"videodatachange",this.N);this.U(a,"presentingplayerstatechange",this.L)};
u3=function(a,b){var c;c=(c=(c=b.la)&&c.paidContentOverlay&&c.paidContentOverlay.paidContentOverlayRenderer)&&g.p(c.text)?{text:g.Rj(c.text),durationMs:g.y(c.durationMs)?Qa(c.durationMs):c.durationMs}:b.paidContentOverlayDurationMs&&b.paidContentOverlayText?{text:b.paidContentOverlayText,durationMs:b.paidContentOverlayDurationMs}:null;if(a.o){if(b.videoId&&b.videoId!=a.A){g.Kd(a.o);a.A=b.videoId;var d=a.B[b.videoId]||0;a.F=!!c&&!!c.durationMs&&3E3>d}}else c&&(d=c.text,a.o=new g.Id(a.J,c.durationMs,
a),g.M(a,a.o),g.ff(Ie("ytp-paid-content-overlay-text",a.element),d))};
v3=function(a,b){a.o&&g.T(b,8)&&a.F&&(a.F=!1,a.C.show(),a.G=(0,g.G)(),a.o.start())};
w3=function(a,b){this.o=a;this.L=b;g.W.call(this,{K:"div",Y:"ytp-pause-overlay",T:[{K:"div",ea:["ytp-suggestions"]}]});this.B=new g.ir(this);g.M(this,this.B);this.J=new lq(this,250,!1,100);g.M(this,this.J);this.D=[];this.C=[];this.F=0;this.H=new g.W({K:"button",ea:["ytp-button","ytp-previous"],X:{"aria-label":g.Q("YTP_PREVIOUS")},T:[g.Cg()]});g.M(this,this.H);this.H.Fa(this.element);this.H.S("click",this.wM,this);var c=g.Uh||g.rc?{style:"will-change: opacity"}:null;this.A=this.ua["ytp-suggestions"];
for(var d=0;16>d;d++){var e=new g.W({K:"a",Y:"ytp-suggestion-link",X:{href:"{{link}}",target:"_blank"},T:[{K:"div",Y:"ytp-suggestion-image"},{K:"div",Y:"ytp-suggestion-overlay",X:c,T:[{K:"div",Y:"ytp-suggestion-title",T:["{{title}}"]},{K:"div",Y:"ytp-suggestion-author",T:["{{author}}"]},{K:"div",Y:"ytp-suggestion-duration",T:["{{duration}}"]}]}]});g.M(this,e);e.Fa(this.A);var f=e.ua["ytp-suggestion-link"];g.Si(f,"transitionDelay",d/20+"s");this.B.U(f,"click",g.B(this.FE,d));this.D.push(e)}this.G=
new g.W({K:"button",ea:["ytp-button","ytp-next"],X:{"aria-label":g.Q("YTP_NEXT")},T:[g.Dg()]});g.M(this,this.G);this.G.Fa(this.element);this.G.S("click",this.vM,this);c=new g.W({K:"button",ea:["ytp-button","ytp-close"],X:{"aria-label":g.Q("YTP_CLOSE")},T:[g.Hg()]});g.M(this,c);c.Fa(this.element);c.S("click",this.uM,this);this.B.U(this.o,"appresize",this.Gp);this.B.U(this.o,"fullscreentoggled",this.xM);this.B.U(this.o,"presentingplayerstatechange",this.yM);this.B.U(this.o,"videodatachange",this.zM);
this.Gp(g.gl(this.o).Sa())};
x3=function(a){var b=a.A.scrollLeft,c=a.A.scrollWidth-a.F;g.Rd(a.element,"ytp-scroll-min",0>=b);g.Rd(a.element,"ytp-scroll-max",b>=c)};
Rpa=function(a){for(var b=g.V(a.o),c=0;c<a.C.length;c++){var d=a.C[c],e=a.D[c];e.element.style.display="";e.update({author:d.author,duration:d.lengthSeconds?g.Ay(d.lengthSeconds):0,link:d.ik(b),title:d.title});e=e.ua["ytp-suggestion-image"];d=d.bd(b);e.style.backgroundImage=d?"url("+d+")":""}for(;c<a.D.length;c++)e=a.D[c],e.element.style.display="none";x3(a)};
y3=function(a,b,c){var d=b.Qb(c),e=g.V(a),f=d.bd(e,"default.jpg");g.W.call(this,{K:"a",ea:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},T:[{K:"div",Y:"ytp-video-menu-item-index",T:[""+(c+1)]},{K:"div",Y:"ytp-video-menu-item-now-playing",T:["\u25b6"]},{K:"div",Y:"ytp-video-menu-item-thumbnail",X:{style:f?"background-image: url("+f+");":null}},{K:"div",Y:"ytp-video-menu-item-title",T:[d.title]},{K:"div",
Y:"ytp-video-menu-item-author",T:[g.Q("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]}]});this.o=a;this.A=c;this.S("click",this.B)};
z3=function(a,b){this.o=a;J2.call(this,a,b,{K:"div",Y:"ytp-playlist-menu",X:{role:"dialog"},T:[{K:"div",Y:"ytp-playlist-menu-header",T:[{K:"div",Y:"ytp-playlist-menu-title",T:[{K:"a",Y:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},T:["{{title}}"]},{K:"button",ea:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":g.Q("YTP_CLOSE")},T:[g.Hg()]}]},{K:"div",Y:"ytp-playlist-menu-subtitle",T:["{{subtitle}}"]}]},{K:"div",Y:"ytp-playlist-menu-items",X:{role:"menu"}}]},250);this.U(this.ua["ytp-playlist-menu-close"],
"click",this.Ob);this.U(this.ua["ytp-playlist-menu-title-name"],"click",this.hH);this.D=this.F=this.A=null;this.G=this.ua["ytp-playlist-menu-items"];this.B=[];this.ma()};
A3=function(a,b){if(a.A!=b)if(a.A&&a.A.Ka("shuffle",a.so,a),a.A=b,a.F=null,b){b.subscribe("shuffle",a.so,a);var c=b.author;a.update({title:b.title,subtitle:g.Q(c?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:c,CURRENT_POSITION:b.g+1,PLAYLIST_LENGTH:b.B}),playlisturl:a.o.getVideoUrl(!0)});a.so()}else a.g&&a.ma()};
B3=function(a,b,c){var d={K:"button",ea:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":g.Q("YTP_PLAYLIST")},T:[{K:"div",Y:"ytp-playlist-menu-button-icon",T:[Ng()]},{K:"div",Y:"ytp-playlist-menu-button-text",T:["{{text}}"]}]};g.W.call(this,d);this.B=a;this.o=null;this.C=b.o;this.U(a,"videodatachange",this.D);this.U(a,"onPlaylistUpdate",this.D);this.U(a,"presentingplayerstatechange",this.A);this.U(a,"appresize",this.A);
this.ma();this.D();g.Bb(this,I2(this.C,this.element));this.S("click",(0,g.z)(c.Sf,c,this.element,!1))};
C3=function(a,b){g.W.call(this,{K:"button",ea:["ytp-replay-button","ytp-button"],X:{title:g.Q("YTP_REPLAY")},T:[Pg()]});this.o=a;this.U(a,"presentingplayerstatechange",this.B);this.S("click",this.A,this);this.Ab(g.T(g.fl(a),2));I2(b.o,this.element)};
D3=function(a,b){var c={K:"div",Y:"ytp-share-panel",X:{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},T:[{K:"button",ea:["ytp-share-panel-close","ytp-button"],X:{title:g.Q("YTP_CLOSE")},T:[g.Hg()]},{K:"div",Y:"ytp-share-panel-inner-content",T:[{K:"div",Y:"ytp-share-panel-title",X:{id:"ytp-share-panel-title"},T:[g.Q("YTP_SHARE")]},{K:"a",ea:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:"_blank",title:g.Q("YTP_SHARE_LINK"),"aria-label":g.Q("YTP_SHARE_LINK")},
T:["{{linkText}}"]},{K:"label",Y:"ytp-share-panel-include-playlist",T:[{K:"input",Y:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",checked:!0}},g.Q("YTP_SHARE_WITH_PLAYLIST_2")]},{K:"div",Y:"ytp-share-panel-loading-spinner",T:[Iy()]},{K:"div",Y:"ytp-share-panel-service-buttons",T:["{{buttons}}"]},{K:"div",Y:"ytp-share-panel-error",T:[g.Q("YTP_SHARE_PANEL_ERROR")]}]}]};J2.call(this,a,b,c,250);this.A=a;this.B=b.o;this.o=[];this.P=this.ua["ytp-share-panel-inner-content"];this.F=this.ua["ytp-share-panel-close"];
this.U(this.F,"click",this.Ob);g.Bb(this,I2(this.B,this.F));this.G=this.ua["ytp-share-panel-include-playlist-checkbox"];this.U(this.G,"click",this.fy);this.D=this.ua["ytp-share-panel-link"];g.Bb(this,I2(this.B,this.D));this.S("click",this.kG);this.U(a,"videoplayerreset",this.ma);this.U(a,"fullscreentoggled",this.NM);this.ma()};
Spa=function(a){switch(a){case "facebook":return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-share-facebook"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},T:[{K:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};case "googleplus":return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-share-googleplus"]}:{K:"svg",X:{height:"100%",version:"1.0",viewBox:"0 0 38 38",width:"100%"},T:[{K:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",X:{d:"M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z",
fill:"#dc4537"}}]};case "twitter":return g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-share-twitter"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},T:[{K:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};default:return null}};
E3=function(a){for(var b=0;b<a.o.length;b++)a.o[b].detach(),g.Cb(a.o[b]);a.o=[]};
F3=function(a,b,c,d){g.W.call(this,{K:"button",ea:["ytp-button","ytp-share-button"],X:{title:g.Q("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"},T:[g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-sharrow"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}]});
this.o=a;this.B=d;this.C=c;Nl(a,this,28664);this.S("click",this.D);this.U(a,"videodatachange",this.A);this.U(a,"appresize",this.A);this.A();g.Bb(this,I2(b.o,this.element))};
G3=function(a){g.W.call(this,{K:"div",Y:"ytp-webgl-spherical-control",X:{tabindex:0,"aria-label":g.Q("YTP_SPHERICAL_CONTROL")},T:[g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-spherical-control"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 50 50",width:"100%"},T:[{K:"circle",La:!0,X:{cx:"25",cy:"25",fill:"#fff",r:"24"}},{K:"path",La:!0,X:{d:"M11.46,29.41 L9.97,30.90 L4,24.95 L9.97,19 L11.46,20.48 L7.00,24.95 L11.46,29.41 M42.46,24.95 L38,20.48 L39.48,19 L45.46,24.95 L39.48,30.90 L38,29.41 L42.46,24.95 M24.5,42.43 L28.96,37.96 L30.45,39.45 L24.5,45.43 L18.54,39.45 L20.03,37.96 L24.5,42.43 M24.5,6.97 L20.03,11.43 L18.54,9.94 L24.5,3.96 L30.45,9.94 L28.96,11.43 L24.5,6.97 Z",
fill:"#999"}}]}]});this.o=a;this.A=this.B=null;this.G=new g.ir;g.M(this,this.G);this.C=[];this.Z=!1;this.ca=null;this.D=new Qo((0,g.z)(this.OM,this),null);g.M(this,this.D);this.ba=-1;this.V=this.F=this.J=this.H=this.N=this.L=0;this.P=!1;this.U(a,"videodatachange",this.Hp);this.U(a,"onApiChange",this.Hp);this.ma();this.Hp()};
H3=function(a,b,c,d){a.N=g.te(b+a.N,-1,1);a.J=g.te(c+a.J,-1,1);a.V=g.te(d+a.V,-1,1);a.Z||(a.Z=!0,g.O(a.element,"ytp-dragging"),a.ba=(0,g.G)(),a.D.start())};
I3=function(a){a.D.stop();a.Z=!1;a.N=0;a.J=0;a.V=0;a.C=[];g.Pd(a.element,"ytp-dragging")};
J3=function(a,b,c,d,e,f){var k=f-a.ba;a.H=(a.L*a.H+(b-e.yaw))/(k+a.L);a.F=(a.L*a.F+(c-e.pitch))/(k+a.L);a.ba=f;a.L=k;nl(a.o,{shader:"Spherical",yaw:b,pitch:c,fov:d})};
K3=function(a,b){if(-1<a.C.indexOf(b))return!0;var c=!1;switch(b){case 37:case 65:H3(a,1,0,0);c=!0;break;case 39:case 68:H3(a,-1,0,0);c=!0;break;case 38:case 87:H3(a,0,1,0);c=!0;break;case 40:case 83:H3(a,0,-1,0);c=!0;break;case 107:H3(a,0,0,-1);c=!0;break;case 109:H3(a,0,0,1),c=!0}c&&a.C.push(b);return c};
L3=function(a,b){var c=a.C.indexOf(b);if(-1<c)switch(a.C.splice(c,1),b){case 37:case 65:H3(a,-1,0,0);break;case 39:case 68:H3(a,1,0,0);break;case 38:case 87:H3(a,0,-1,0);break;case 40:case 83:H3(a,0,1,0);break;case 107:H3(a,0,0,1);break;case 109:H3(a,0,0,-1)}0==a.C.length&&(a.Z=!1)};
N3=function(a){g.W.call(this,{K:"div",Y:"ytp-spinner",T:[Iy(),{K:"div",Y:"ytp-spinner-message",T:[g.Q("YTP_PLAYBACK_STALLED_AT_START")]}]});this.B=this.ua["ytp-spinner-message"];this.A=a;this.o=new g.Id(this.show,500,this);this.U(a,"presentingplayerstatechange",this.F);this.U(a,"onFrescaStateChange",this.C);this.U(a,"playbackstalledatstart",this.D);M3(this,g.fl(a))};
M3=function(a,b){var c;g.T(b,128)?c=0:!(c=g.T(b,16))&&(c=g.T(b,1))&&(c=g.Zk(a.A).C,c=!(c&&c.loaded));c?a.o.start():a.ma()};
O3=function(a,b){g.W.call(this,{K:"button",ea:["ytp-airplay-button","ytp-button"],X:{title:g.Q("YTP_AIRPLAY")},T:["{{icon}}"]});this.o=a;this.S("click",this.B);this.U(a,"airplayactivechange",this.A);this.U(a,"airplayavailabilitychange",this.A);this.A();g.Bb(this,I2(b.o,this.element))};
P3=function(a,b){g.zy.call(this,{K:"div",Y:"ytp-storyboard",T:[{K:"div",Y:"ytp-storyboard-filmstrip",T:[{K:"div",Y:"ytp-storyboard-thumbnail"}]},{K:"div",Y:"ytp-storyboard-lens",T:[{K:"div",Y:"ytp-storyboard-lens-thumbnail"},{K:"div",Y:"ytp-storyboard-lens-timestamp-wrapper",T:[{K:"span",Y:"ytp-storyboard-lens-timestamp"}]}]}]});this.A=a;this.ca=b.o;this.V=new ur(this.jM,250,this);g.M(this,this.V);this.G=g.gl(a).Sa().width;this.B=this.ua["ytp-storyboard-filmstrip"];this.da=this.ua["ytp-storyboard-lens"];
this.fa=this.ua["ytp-storyboard-lens-thumbnail"];this.ga=this.ua["ytp-storyboard-lens-timestamp"];this.ba=this.ua["ytp-storyboard-thumbnail"];g.Ye(this.ba);this.H=0;this.Z=!1;this.P=this.D=this.C=window.NaN;this.o=this.F=null;this.J=new g.ir(this);this.N=new lq(this,100);this.U(this.A,"appresize",this.iM);this.U(this.A,"presentingplayerstatechange",this.kM)};
Q3=function(a,b){var c=!!a.o;c&&a.o.Ka("l",a.pl,a);a.o=b&&ey(b);a.Z=!!b&&b.o;a.o?(c||(a.J.U(a.A,"videodatachange",a.lM),a.J.U(a.A,"progresssync",a.Ol),a.J.U(a.A,"videoplayerreset",a.Ol)),a.o.subscribe("l",a.pl,a),a.P=window.NaN,a.C=window.NaN,a.D=window.NaN,a.Ol(),a.N.show(200)):(c&&g.kr(a.J),a.V.stop(),nr(a.H),g.nq(a.N),a.N.stop())};
R3=function(a,b,c,d){var e=a.ba.cloneNode(!1);a=vv(a.o,b,c);mW(e,a,c,d);return e};
S3=function(a){g.W.call(this,{K:"div",Y:"ytp-storyboard-framepreview",T:[{K:"div",Y:"ytp-storyboard-framepreview-img"}]});this.F=this.ua["ytp-storyboard-framepreview-img"];this.o=a;this.A=null;this.D=window.NaN;this.B=new g.ir(this);this.C=new lq(this,100);this.U(this.o,"presentingplayerstatechange",this.oM)};
U3=function(a,b){var c=!!a.A;a.A=b&&ey(b);a.A?(c||(a.B.U(a.o,"videodatachange",a.qM),a.B.U(a.o,"progresssync",a.pM),a.B.U(a.o,"appresize",a.nM)),a.D=window.NaN,T3(a),a.C.show(200)):(c&&g.kr(a.B),g.nq(a.C),a.C.stop())};
T3=function(a){var b=a.o.getCurrentTime(),c=g.gl(a.o).Sa(),d=tv(a.A,c.width),b=a.A.g[d].Ll(b);b!=a.D&&(a.D=b,xv(a.A,b,c.width),b=vv(a.A,b,c.width),mW(a.F,b,c.width,c.height))};
W3=function(a,b){g.W.call(this,{K:"button",ea:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}"},T:["{{icon}}"]});this.A=a;this.C=b;this.o=null;this.B=I2(b.o,this.element);this.D=new g.Id(this.RA,2E3,this);g.M(this,this.D);this.U(a,"fullscreentoggled",this.vv);this.U(a,"presentingplayerstatechange",this.Vx);this.S("click",this.rM);if(uh()){var c=g.gl(this.A);this.U(c,rba(),this.hu);this.U(c,xh(window.document),this.sM)}g.V(a).wa||V3(this);this.Vx();this.vv(a.isFullscreen())};
V3=function(a){if(!a.o){var b=g.Q(null!=qh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.o=new J2(a.A,a.C,{K:"div",ea:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:0},T:[b[0],{K:"a",X:{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},T:[b[2]]},b[4]]},100,!0);a.o.ma();g.M(a,a.o);a.o.subscribe("show",
(0,g.z)(a.C.Pm,a.C,a.o));g.Kl(a.A,a.o.element,5);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);a.B();a.B=null}};
X3=function(a,b,c){g.W.call(this,{K:"button",ea:["ytp-multicam-button","ytp-button"],X:{title:g.Q("YTP_SWITCH_CAMERA"),"aria-haspopup":!0,"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},T:[g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-switch-camera"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});this.B=a;this.o=!1;this.C=b.o;this.A=new g.Id(this.F,400,this);g.M(this,this.A);this.S("click",(0,g.z)(c.Sf,c,this.element,!1));this.U(a,"presentingplayerstatechange",g.B(this.D,!1));this.U(a,"videodatachange",this.G);this.D(!0);g.Bb(this,I2(this.C,this.element))};
Y3=function(a,b){this.B=new g.ir(this);g.M(this,this.B);var c={K:"div",Y:"ytp-multicam-menu",X:{role:"dialog"},T:[{K:"div",Y:"ytp-multicam-menu-header",T:[{K:"div",Y:"ytp-multicam-menu-title",T:[g.Q("YTP_SWITCH_CAMERA"),{K:"button",ea:["ytp-multicam-menu-close","ytp-button"],X:{"aria-label":g.Q("YTP_CLOSE")},T:[g.Hg()]}]}]},{K:"div",Y:"ytp-multicam-menu-items"}]};J2.call(this,a,b,c,250);this.U(this.ua["ytp-multicam-menu-close"],"click",this.Ob);this.o=a;this.D=this.ua["ytp-multicam-menu-items"];this.A=
[];this.ma()};
Z3=function(a,b,c,d,e,f,k,l){this.A=a;this.F=b;this.g=c;this.C=d;this.o=e;this.D=f;this.B=k;this.G=l};
$3=function(){this.A=null;this.C=this.g=0;this.B=new Qo(this.o,null,this);g.M(this,this.B)};
a4=function(a,b){if("path"==b.K)return b.X.d;if(b.T)for(var c=0;c<b.T.length;c++){var d=b.T[c];if(d&&!g.y(d)&&(d=a4(a,d)))return d}};
e4=function(a,b,c){c=a4(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=g.mn.g();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=b4(e),m=b4(c);c4(a,function(a){d.setAttribute("d",d4(l,m,a))},200)};
c4=function(a,b,c){a.A=b;a.C=(0,g.Ok)();a.g=c;a.o()};
b4=function(a){var b=[];a=a.match(Tpa);for(var c=0;c<a.length;c++){var d=(0,window.parseFloat)(a[c]);b.push((0,window.isNaN)(d)?a[c]:d)}return b};
d4=function(a,b,c){var d,e="";for(d=0;d<a.length;d++)var f=a[d],e=g.qa(f)?e+(f+(b[d]-f)*c):e+f;return e};
g4=function(a,b){var c=g.V(a);g.W.call(this,{K:"button",ea:["ytp-mute-button","ytp-button"],X:c.da?{title:"{{title}}"}:{"aria-disabled":!0,"aria-haspopup":!0},T:["{{icon}}"]});this.Ea("icon",Wg());this.o=a;this.fa=b.o;this.G=this.J=this.H=this.N=window.NaN;this.F=[];this.D=[];g.V(this.o).Z||(this.A=new g.mn({K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"defs",T:[{K:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},T:[{K:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},
{K:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",Y:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},T:[{K:"path",Y:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",La:!0,ea:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",
fill:"#fff"}},{K:"path",La:!0,ea:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]}),g.M(this,this.A),this.P=this.A.ua["ytp-svg-volume-animation-speaker"],this.ca=this.P.getAttribute("d"),this.F=He("ytp-svg-volume-animation-mover",this.A.element),this.D=He("ytp-svg-volume-animation-hider",this.A.element));this.B=null;this.V=new $3;g.M(this,this.V);this.L=new $3;g.M(this,this.L);
this.S("click",this.ba);this.U(a,"appresize",this.qc);this.U(a,"onVolumeChange",this.ga);var d=null;c.da?g.Bb(this,I2(b.o,this.element)):(c=g.Q("YTP_VOLUME_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/),d=new J2(a,b,{K:"span",ea:["ytp-popup","ytp-generic-popup"],X:{tabindex:0},T:[c[0],{K:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:"_blank"},T:[c[2]]},c[4]]},100,!0),g.M(this,d),d.ma(),d.subscribe("show",(0,g.z)(b.Pm,b,d)),g.Kl(a,d.element,5));this.da=d;Nl(a,this,28662);this.qc(g.gl(a).Sa());
f4(this,a.getVolume(),a.Bd())};
f4=function(a,b,c){var d=c?0:b/100,e=g.V(a.o);if(e.Z)d=0==d?Wg():0<d&&.5>d?Vg():Ug(),d!=a.B&&(a.Ea("icon",d),a.B=d);else{b=0==d?1:50<b?1:0;if(a.H!=b){var f=a.N;(0,window.isNaN)(f)?h4(a,b):c4(a.V,(0,g.z)(function(a){h4(this,f+(this.H-f)*a)},a),250);
a.H=b}d=0==d?1:0;a.G!=d&&(f=a.J,(0,window.isNaN)(f)?i4(a,d):c4(a.L,(0,g.z)(function(a){i4(this,f+(this.G-f)*a)},a),250),a.G=d)}e.da&&(a.Ea("title",c?g.Q("YTP_UNMUTE"):g.Q("YTP_MUTE")),j4(a.fa))};
h4=function(a,b){a.N=b;var c=a.ca;b&&(c+=d4(Upa,Vpa,b));a.P.setAttribute("d",c)};
i4=function(a,b){a.J=b;for(var c=20*b,d=0;d<a.F.length;d++)a.F[d].setAttribute("transform","translate("+c+", "+c+")");var e;1==b?e=Wg():e=a.A;for(d=0;d<a.D.length;d++)a.D[d].style.display=0==b?"none":"";e!=a.B&&(a.Ea("icon",e),a.B=e)};
k4=function(a,b){g.W.call(this,{K:"button",ea:["ytp-pip-button","ytp-button"],X:{title:g.Q("YTP_PIP")},T:[g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-pip"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}]});
this.o=a;this.S("click",this.A);g.Bb(this,I2(b.o,this.element))};
m4=function(a,b){g.W.call(this,{K:"button",ea:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}"},T:["{{icon}}"]});this.o=a;this.A=null;this.C=b.o;this.B=null;this.D=new $3;g.M(this,this.D);this.U(a,"fullscreentoggled",this.F);this.U(a,"presentingplayerstatechange",this.G);this.U(a,"videodatachange",this.F);l4(this,g.fl(a));this.S("click",this.H,this)};
n4=function(a){switch(a){case 1:return Mg();case 2:return Lg();case 3:return Pg();case 4:return Rg();default:return null}};
l4=function(a,b){var c,d=g.xl(a.o.getVideoData()),e=!1;Mk(b)?c=d?4:2:g.T(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.A!=c){var f;switch(c){case 2:f=g.Q("YTP_PAUSE");break;case 3:f=g.Q("YTP_REPLAY");break;case 1:f=g.Q("YTP_PLAY");break;case 4:f=g.Q("YTP_STOP")}3==c?(a.B||(a.B=I2(a.C,a.element)),a.update({title:f,label:null,icon:n4(c)})):(a.B&&(a.B(),a.B=null),a.update({title:null,label:f}),(d=n4(c))&&a.A&&3!=a.A&&!g.V(a.o).Z?e4(a.D,a.element,d):a.Ea("icon",d));j4(a.C);a.A=c}};
p4=function(a,b,c){var d,e;c?(d="ytp-next-button",e=Kg()):(d="ytp-prev-button",e=Og());g.W.call(this,{K:"a",ea:[d,"ytp-button"],X:{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},T:[e]});this.o=a;this.L=b.o;this.B=c;this.A=this.G=null;this.J=!1;this.F=this.H=this.C=null;this.D=!1;this.U(a,"fullscreentoggled",this.Gh);this.U(a,"videodatachange",this.Gh);
this.U(a,"onPlaylistUpdate",this.Gh);this.B||this.U(a,"appresize",this.qc);this.U(a,"mdxpreviousnextchange",function(){o4(this);this.qc()});
this.Gh()};
q4=function(a){a.A&&a.A.Ka("shuffle",a.Gh,a)};
r4=function(a){return!!a.A&&!a.B&&3<=a.o.getCurrentTime()&&2!=a.o.Za()};
s4=function(a){var b=g.Zk(a.o).G;return b?a.B?b.hasNext():b.o?hl(b.o).H:!1:!1};
o4=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=g.V(a.o),d=il(a.o),e=a.B&&g.Ll(a.o),f=s4(a);if(a.D)b.title=g.Q("YTP_REPLAY");else if(d){var k=null;a.A&&(k=a.A.Qb(a.B?sy(a.A):ty(a.A)));if(k){if(k.videoId){var l=a.A.listId;b.url=c.getVideoUrl(k.videoId,l?l.toString():void 0)}b.text=k.title;b.duration=k.lengthSeconds?g.Ay(k.lengthSeconds):null;b.preview=k.bd(c,"mqdefault.jpg")}b.title=g.Q(a.B?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.G.N&&a.G.N.length&&(k=g.Cy(a.G.N[0]),
b.url=k.ik(c),b.text=k.title,b.duration=k instanceof g.Sx?g.Ay(k.lengthSeconds):null,b.preview=k.bd(c,"mqdefault.jpg")),b.title=g.Q("YTP_NEXT"));b.disabled=!e&&!d&&!f;a.update(b);a.J=!!b.url;e||d||a.D||f?a.C||(a.C=I2(a.L,a.element),a.H=a.S("click",a.BM,a)):a.C&&(a.C(),a.C=null,a.Ca(a.H),a.H=null);j4(a.L)};
u4=function(a,b){g.zy.call(this,{K:"div",Y:"ytp-progress-bar-container",X:{"aria-disabled":!0},T:[{K:"div",Y:"ytp-progress-bar",X:{tabindex:0,role:"slider","aria-label":g.Q("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},T:[{K:"div",Y:"ytp-progress-bar-padding"},{K:"div",Y:"ytp-progress-list",T:[{K:"div",ea:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",Y:"ytp-load-progress"},{K:"div",Y:"ytp-hover-progress"},
{K:"div",Y:"ytp-clip-start-exclude"},{K:"div",Y:"ytp-clip-end-exclude"},{K:"div",Y:"ytp-ad-progress-list"},{K:"div",Y:"ytp-marker-crenellation-list"},{K:"div",Y:"ytp-marker-progress-list"}]},{K:"div",Y:"ytp-scrubber-container",T:[{K:"div",ea:["ytp-scrubber-button","ytp-swatch-background-color"],T:[{K:"div",Y:"ytp-scrubber-pull-indicator"}]}]}]},{K:"div",Y:"ytp-bound-time-left",T:["{{boundTimeLeft}}"]},{K:"div",Y:"ytp-bound-time-right",T:["{{boundTimeRight}}"]},{K:"div",Y:"ytp-clip-start",X:{title:g.Q("YTP_WATCH_ALL")},
T:["{{clipstarticon}}"]},{K:"div",Y:"ytp-clip-end",X:{title:g.Q("YTP_WATCH_ALL")},T:["{{clipendicon}}"]}]});this.Ea("clipstarticon",Gg());this.Ea("clipendicon",Fg());this.A=a;this.Ia=b.o;this.pa=!1;this.C=this.Na=0;this.Z=1;this.qb=this.G=0;this.D=window.NaN;this.Xa=!1;this.J=this.ba=0;this.Eb=this.ua["ytp-ad-progress-list"];this.Ib=this.ua["ytp-marker-progress-list"];this.Ua=this.ua["ytp-marker-crenellation-list"];this.V={};this.la={};this.N=window.Infinity;var c=b.o;this.da=this.ua["ytp-clip-end"];
g.Bb(this,I2(c,this.da));this.ra=new g.Qy(this.da,!0);g.M(this,this.ra);this.ra.subscribe("hoverstart",this.Zx,this);this.ra.subscribe("hoverend",this.Yx,this);this.U(this.da,"click",this.Pl);this.Oa=this.ua["ytp-clip-end-exclude"];this.Lb=this.ua["ytp-clip-start-exclude"];this.P=0;this.fa=this.ua["ytp-clip-start"];g.Bb(this,I2(c,this.fa));this.wa=new g.Qy(this.fa,!0);g.M(this,this.wa);this.wa.subscribe("hoverstart",this.Zx,this);this.wa.subscribe("hoverend",this.Yx,this);this.U(this.fa,"click",this.Pl);
this.fb=this.ua["ytp-load-progress"];this.ga=0;this.Nb=this.ua["ytp-play-progress"];this.ca=this.ua["ytp-hover-progress"];this.F=0;this.ib=this.ua["ytp-progress-bar"];this.B=null;this.sb=this.ua["ytp-scrubber-button"];this.Db=this.ua["ytp-scrubber-container"];this.va=new xe;this.ab=new lW;this.o=new hW(0,0);this.H=this.Aa=!1;this.Ja=null;this.U(a,"presentingplayerstatechange",this.DM);this.U(a,"videodatachange",this.Xx);this.U(a,"videoplayerreset",this.VB);this.U(a,"cuerangesadded",this.by);this.U(a,
"cuerangesremoved",this.LM);this.U(a,"cuerangemarkersupdated",this.by);this.U(a,"onPlaybackQualityChange",this.EM);t4(this,a.getVideoData(),!0)};
y4=function(a){if(a.C){var b=a.A.Wf(),c=new hW(b.seekableStart,b.seekableEnd),d=kW(c,b.loaded,0),b=kW(c,b.current,0),e=a.o.o!=c.o||a.o.g!=c.g;a.o=c;v4(a,b,d);e&&w4(a);x4(a)}};
t4=function(a,b,c){var d=!!b&&g.wl(b);a.Aa=d&&b.P;z4(a,Cl(a.A));c&&(d?(c=b.clipEnd,a.P=b.clipStart,a.N=c,A4(a),v4(a,a.F,a.ga)):a.Pl(),b=a.Ia,1==b.o&&b.wd());y4(a)};
B4=function(a){return!!a&&g.wl(a)&&!!a.A&&a.A.video.isAccelerated&&a.A.video.o};
C4=function(a,b){a.Xa=b;g.Rd(a.fb,"ytp-fast-load",b)};
D4=function(a,b,c,d){b=g.te(b,0,a.H?60:40);a.G=b;var e=a.Z;a.Z=b/(a.H?60:40)*(Math.max(iW(a.o)/a.C,1)-1)+1;b=a.C*a.Z;a.J=g.te(d*b-c,0,b-a.C);e!=a.Z&&w4(a)};
w4=function(a){var b=E4(a),c=-b.A/b.g,d=(-b.A+b.width)/b.g,e=$e(a.Ua),f=0;if(a.G>.2*(a.H?60:40))for(var k=iW(a.o)/60*d,l=Math.ceil(iW(a.o)/60*c);l<k;l++){var m=e[f];m||(m=g.Re("DIV"),a.Ua.appendChild(m));f++;m.className=0==l%60?"ytp-60m-progress":0==l%30?"ytp-30m-progress":0==l%15?"ytp-15m-progress":"ytp-1m-progress";m.style.left=(60*l/iW(a.o)-c)*b.g+"px"}b=a.Aa?a.o.g:0;a.update({boundTimeLeft:g.Ay(jW(a.o,c)-b),boundTimeRight:g.Ay(jW(a.o,d)-b)});for(c=e.length-1;c>=f;c--)g.Ye(e[c]);a.element.style.height=
a.G+(a.H?8:5)+"px";a.$("height-change",a.G);a.sb.style.height=a.G+(a.H?20:13)+"px";for(var n in a.V)F4(a,a.V[n],a.la[n]);A4(a);v4(a,a.F,a.ga)};
E4=function(a){var b=a.va.x,c=a.C*a.Z,b=g.te(b,0,a.C);a.ab.update(b,a.C,-a.J,-(c-a.J-a.C));return a.ab};
v4=function(a,b,c){a.F=b;a.ga=c;var d=E4(a),e=a.o.g,f=jW(a.o,a.F);a.update({ariamin:Math.floor(a.o.o),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:g.Q("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:g.Ay(f),DURATION:g.Ay(e)})});var e=kW(a.o,a.P,0),k=kW(a.o,a.N,1),f=g.te(b,e,k);c=a.Xa?1:g.te(c,e,k);k=b*d.g+d.A;a.sb.style.display=0<=k&&b<=d.width?"":"none";g.Si(a.Db,"transform","translateX("+k+"px)");G4(a,a.Nb,d,e,f);G4(a,a.fb,d,e,c)};
G4=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.g+c.A,0)+"px";d=Math.min((e-d)*c.g+c.A,c.width);f||g.V(a.A).isMobile?(b.style.width=d+"px",Ui(b,"transform")):g.Si(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
A4=function(a){var b=a.P>a.o.o,c=0<a.o.g&&a.N<a.o.g;g.Rd(a.element,"ytp-clip-start-enabled",b);g.Rd(a.element,"ytp-clip-end-enabled",c);b=b?kW(a.o,a.P,0):0;c=c?kW(a.o,a.N,1):1;a.fa.style.left=Math.round(1E3*b)/10+"%";a.da.style.left=Math.round(1E3*c)/10+"%";a.Lb.style.width=Math.round(1E3*b)/10+"%";a.Oa.style.left=Math.round(1E3*c)/10+"%";a.Oa.style.width=Math.round(1E3*(1-c))/10+"%"};
x4=function(a){var b=E4(a);G4(a,a.ca,b,a.F,b.o);g.Rd(a.ca,"ytp-hover-progress-light",b.o>a.F)};
F4=function(a,b,c){var d=E4(a),e=kW(a.o,b.start/1E3,0),f,k=Gca(b)/d.width;switch(b.style){case "ytp-chapter-marker":f=e+k/2;e-=k/2;break;default:f=kW(a.o,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=g.te(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}G4(a,c,d,e,f,!0);c.className=b.style};
H4=function(a,b){var c=b.getId();a.V[c]==b&&(g.Ye(a.la[c]),delete a.V[c],delete a.la[c])};
z4=function(a,b){b?a.B||(a.element.removeAttribute("aria-disabled"),a.B=new g.Qy(a.ib,!0),a.B.subscribe("hovermove",a.IM,a),a.B.subscribe("hoverend",a.HM,a),a.B.subscribe("dragstart",a.GM,a),a.B.subscribe("dragmove",a.KM,a),a.B.subscribe("dragend",a.JM,a),a.Ja=a.S("keydown",a.FM)):a.B&&(a.element.setAttribute("aria-disabled",!0),a.Ca(a.Ja),a.B.cancel(),a.B.dispose(),a.B=null)};
J4=function(a){g.W.call(this,{K:"div",Y:"ytp-remote",T:[{K:"div",Y:"ytp-remote-display-status",T:[{K:"div",Y:"ytp-remote-display-status-icon",T:[Bg()]},{K:"div",Y:"ytp-remote-display-status-text",T:["{{statustext}}"]},{K:"div",Y:"ytp-remote-display-status-receiver",T:["{{receiver}}"]}]}]});this.o=new lq(this,250);g.M(this,this.o);this.A=a;this.U(a,"presentingplayerstatechange",this.B);I4(this,g.fl(a))};
I4=function(a,b){if(3==a.A.Za()){var c;c=g.T(b,128)?g.Q("YTP_MDX_STATUS_ERROR"):b.gb()||g.T(b,4)?g.Q("YTP_MDX_STATUS_PLAYING"):g.Q("YTP_MDX_STATUS_CONNECTED");var d=a.A.Dc("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.o.show()}else g.nq(a.o)};
K4=function(a,b,c){g.W.call(this,{K:"button",ea:["ytp-remote-button","ytp-button"],X:{title:g.Q("YTP_MDX_TOOLTIP"),"aria-haspopup":!0},T:["{{icon}}"]});this.aa=a;this.C=c;this.A=null;this.U(a,"onMdxReceiversChange",this.o);this.U(a,"presentingplayerstatechange",this.o);this.U(a,"appresize",this.o);this.o();this.S("click",this.B,this);g.Bb(this,I2(b.o,this.element))};
L4=function(a,b){$2.call(this,g.Q("YTP_ANNOTATIONS"),5);this.C=b;this.aa=a;this.A=!1;this.U(a,"videodatachange",this.B);this.U(a,"onApiChange",this.B);this.subscribe("select",this.D,this);this.B()};
M4=function(a){a=tl(g.Zk(a.aa));return!!a&&a.loaded};
N4=function(a,b,c,d,e,f){var k=U2({"aria-haspopup":!0});T2.call(this,k,b,a);this.o=d;this.G=null;this.A={};this.D=new W2(c,void 0,a,e,f);g.M(this,this.D);this.S("keydown",this.MM);this.S("click",this.open)};
O4=function(a,b){if(a.G){var c=a.A[a.G];c.element.getAttribute("aria-checked");c.element.removeAttribute("aria-checked")}a.A[b].element.setAttribute("aria-checked",!0);a.sc(a.Vd(b));a.G=b};
P4=function(a,b){for(var c=a.D,d=0;d<c.o.length;d++)c.o[d].Ka("size-change",c.ba,c);c.o=[];g.We(c.A.element);c.A.$("size-change");for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.A[f],l=f==a.G;l&&(d=!0);k&&k.priority==-e?(S2(a.A[f],a.Vd(f,!0)),delete a.A[f]):(k=new T2({K:"div",ea:["ytp-menuitem"],X:{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},T:[{K:"div",ea:["ytp-menuitem-label"],T:["{{label}}"]}]},-e,a.Vd(f,!0)),k.S("click",(0,g.z)(a.fG,a,f)));c[f]=k;X2(a.D,k,!0)}d||(a.G=null);
for(f in a.A)a.A[f].dispose();a.A=c};
Q4=function(a,b){N4.call(this,g.Q("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.aa=a;this.H=new g.W({K:"div",T:[{K:"span",T:[g.Q("YTP_AUDIO_TRACK_TITLE")]},{K:"span",Y:"ytp-menuitem-label-count",T:["{{content}}"]}]});S2(this,this.H);this.J={};this.B=!1;this.U(a,"videodatachange",this.F);this.U(a,"onPlaybackAudioChange",this.F);this.F()};
R4=function(a,b){$2.call(this,g.Q("YTP_AUTOPLAY"),6);this.F=b;this.aa=a;this.C=!1;this.A=[];this.U(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.G,this);this.B()};
S4=function(a,b){N4.call(this,g.Q("YTP_QUALITY_TITLE"),1,a,b);g.O(this.D.element,"ytp-quality-menu");this.aa=a;this.J={};this.H="unknown";this.B=!1;this.U(a,"videodatachange",this.C);this.U(a,"videoplayerreset",this.C);this.U(a,"onPlaybackQualityChange",this.F);this.C()};
T4=function(a,b,c){var d=(a=a.J[b])?a.qualityLabel:(d=g.zi[b])?d+"p":g.Q("YTP_AUTO");c={K:"span",ea:c,T:[]};a&&a.isAccelerated&&a.o&&c.T.push({K:"div",Y:"ytp-menuitem-badge-container",T:[{K:"svg",X:{fill:"#00838f",height:"11px",viewBox:"0 0 48 48",width:"11px"},T:[{K:"path",X:{d:"M0 0v48h48V0H0zm10.6 30.64L4 24.05l6.69-6.69 6.6 6.59-6.69 6.69zM24 44l-6.7-6.7 13.35-13.35-13.32-13.28L24 4l20 20-20 20z"}},{K:"path",X:{d:"M 24,44 44,24 24,4 17.33,10.67 30.65,23.95 17.3,37.3 z M 10.6,30.64 17.29,23.95 10.69,17.36 4,24.05 z",
fill:"#fff"}}]}]});c.T.push(d);var e;"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&(e="HD");e&&(c.T.push(" "),c.T.push({K:"sup",Y:"ytp-swatch-color",T:[e]}));return c};
U4=function(a,b){N4.call(this,g.Q("YTP_MDX_TITLE"),0,a,b);this.aa=a;this.B=!1;this.H={};this.U(a,"onMdxReceiversChange",this.F);this.U(a,"presentingplayerstatechange",this.F);this.F()};
V4=function(a,b){N4.call(this,g.Q("YTP_SPEED_TITLE"),4,a,b);this.aa=a;this.B=!1;this.C=null;this.U(a,"presentingplayerstatechange",this.gy);this.gy()};
X4=function(a,b,c,d){var e=g.Q("YTP_VIDEO_SUBTITLES_OVERRIDE");N4.call(this,W4(d),a,b,c,e,(0,g.z)(this.SH,this));g.O(this.element,"ytp-subtitles-options-menu-item");this.H=d.option.toString();this.J=yb(d.options,this.ky,this);this.B=new W2(b,void 0,e);g.M(this,this.B);a=new T2({K:"div",Y:"ytp-menuitemtitle",T:[g.Q("YTP_VIDEO_SUBTITLES_OVERRIDE_DESC")]},0);g.M(this,a);X2(this.B,a,!0);this.F=new T2({K:"div",Y:"ytp-menuitem",X:{role:"menuitemradio",tabindex:0},T:[{K:"div",Y:"ytp-menuitem-label",T:[g.Q("YTP_ON")]}]},
-1);g.M(this,this.F);X2(this.B,this.F,!0);this.U(this.F.element,"click",g.B(this.cv,!0));this.C=new T2({K:"div",Y:"ytp-menuitem",X:{role:"menuitemradio",tabindex:0},T:[{K:"div",Y:"ytp-menuitem-label",T:[g.Q("YTP_OFF")]}]},-2);g.M(this,this.C);X2(this.B,this.C,!0);this.U(this.C.element,"click",g.B(this.cv,!1));P4(this,(0,g.S)(d.options,this.ky))};
W4=function(a){return(a.message?g.Q(a.message):a.text)||""};
Y4=function(a,b){W2.call(this,a,void 0,g.Q("YTP_OPTIONS"));this.B={};for(var c=0;c<p3.length;c++){var d=p3[c],e=new X4(-c,a,b,d);g.M(this,e);e.subscribe("settingChange",this.C,this);this.B[d.option.toString()]=e;X2(this,e,!0)}c=new T2(U2(),-p3.length,g.Q("YTP_RESET"));g.M(this,c);c.S("click",(0,g.z)(this.C,this,"reset",!0));X2(this,c,!0)};
Z4=function(a,b){for(var c in b){var d=a.B[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.A[e]&&(O4(d,e),d.F.element.setAttribute("aria-checked",!f),d.C.element.setAttribute("aria-checked",f))}}};
$4=function(a,b){N4.call(this,g.Q("YTP_AUTO_TRANSLATE"),0,a,b);this.B={}};
a5=function(a,b){N4.call(this,g.Q("YTP_SUBTITLES"),3,a,b,g.Q("YTP_OPTIONS"),(0,g.z)(this.GI,this));this.aa=a;this.J=!1;this.B={};this.N=new g.Id(g.B(this.jy,!1),3E3,this);g.M(this,this.N);this.H=new g.W({K:"div",T:[{K:"span",T:[g.Q("YTP_SUBTITLES")]},{K:"span",Y:"ytp-menuitem-label-count",T:["{{content}}"]}]});g.M(this,this.H);S2(this,this.H);this.F=new $4(a,b);g.M(this,this.F);this.F.subscribe("select",this.nH,this);this.C=new Y4(a,b);g.M(this,this.C);this.C.subscribe("settingChange",this.TM,this);
this.U(a,"videodatachange",this.rj);this.U(a,"onApiChange",this.rj);this.U(a,"onCaptionsTrackListChanged",this.rj);this.U(a,"captionschanged",this.rj);this.rj()};
b5=function(a,b){N4.call(this,g.Q("YTP_THREED_SHORT"),7,a,b);this.aa=a;this.B=!1;this.U(a,"videodatachange",this.F);this.C=null;this.F()};
c5=function(a,b){this.A=a;this.B=new W2(a);g.M(this,this.B);M2.call(this,a,b,"ytp-settings-menu");this.P=this.G=null;this.ca=!1;this.ma();P2(this,this.B)};
e5=function(a){if(!a.ca){a.ca=!0;var b=new S4(a.A,a);g.M(a,b);b=new a5(a.A,a);g.M(a,b);b=new L4(a.A,a);g.M(a,b);g.V(a.A).Oa&&(b=new V4(a.A,a),g.M(a,b));b=new b5(a.A,a);g.M(a,b);g.V(a.A).Fc&&(b=new R4(a.A,a),g.M(a,b));b=new Q4(a.A,a);g.M(a,b);g.V(a.A).N&&(a.P=new U4(a.A,a),g.M(a,a.P));d5(a.G,a.B.o.length)}};
f5=function(a,b){X2(a.B,b);d5(a.G,a.B.o.length)};
g5=function(a,b){a.g&&1>=a.B.o.length&&a.ma();var c=a.B;g.eb(c.o,b);b.Ka("size-change",c.ba,c);c.A.element.removeChild(b.element);c.A.$("size-change");d5(a.G,a.B.o.length)};
h5=function(a,b,c){g.W.call(this,{K:"button",ea:["ytp-button","ytp-settings-button"],X:{"aria-haspopup":!0,"aria-owns":"ytp-main-menu-id",title:g.Q("YTP_SETTINGS")},T:[g.Qg()]});this.A=c;this.aa=a;this.B=!0;this.S("click",this.C);this.U(a,"onPlaybackQualityChange",this.o);this.U(a,"settingsmenutoggle",this.C);this.U(a,"videodatachange",this.o);this.U(a,"webglsettingschanged",this.o);this.U(a,"appresize",this.qc);g.Bb(this,I2(b.o,this.element));this.o();this.qc(g.gl(a).Sa())};
d5=function(a,b){a.B=!!b;a.qc(g.gl(a.aa).Sa())};
i5=function(a,b){g.W.call(this,{K:"button",ea:["ytp-size-button","ytp-button"],X:{title:"{{title}}"},T:["{{icon}}"]});this.o=a;this.C=b.o;this.B=null;this.D=new $3;g.M(this,this.D);this.U(a,"sizestylechange",this.A);this.U(a,"fullscreentoggled",this.A);this.U(a,"presentingplayerstatechange",this.A);this.A();this.S("click",this.F);g.Bb(this,I2(this.C,this.element))};
j5=function(a,b){g.W.call(this,{K:"button",ea:["ytp-subtitles-button","ytp-button"],X:{"aria-pressed":"{{pressed}}",title:g.Q("YTP_SUBTITLES_TOOLTIP")},T:[Ig()]});this.A=a;this.U(a,"videodatachange",this.o);this.U(a,"appresize",this.o);this.U(a,"onApiChange",this.o);this.U(a,"onCaptionsTrackListChanged",this.o);this.U(a,"captionschanged",this.o);this.o();this.S("click",this.B);g.Bb(this,I2(b.o,this.element))};
k5=function(a,b){g.W.call(this,{K:"div",ea:["ytp-time-display","notranslate"],T:[{K:"span",Y:"ytp-time-current",T:["{{currenttime}}"]},{K:"span",Y:"ytp-time-separator",T:[" / "]},{K:"span",Y:"ytp-time-duration",T:["{{duration}}"]}]});this.D=new g.W({K:"button",ea:["ytp-live-badge","ytp-button"],X:{disabled:!0},T:[g.Q("YTP_LIVE")]});g.M(this,this.D);this.D.Fa(this.element);this.o=a;this.J=b.o;this.A=null;this.F=this.B=!1;this.H=this.G=null;this.S("click",this.L);this.U(a,"presentingplayerstatechange",
this.C);this.U(a,"appresize",this.C);this.U(a,"videodatachange",this.N);var c=a.getVideoData();c&&(this.B=c.o,g.Rd(this.element,"ytp-live",this.B));this.C()};
n5=function(a,b,c){g.W.call(this,{K:"div",Y:"ytp-volume-panel",X:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},T:[{K:"div",Y:"ytp-volume-slider",T:[{K:"div",Y:"ytp-volume-slider-handle"}]}]});this.o=a;this.F=b;this.N=c;this.J=!1;this.H=l5(b);this.V=this.C=0;this.P=this.ua["ytp-volume-slider"];this.Z=this.ua["ytp-volume-slider-handle"];this.G=new g.Qy(this.P,!0);g.M(this,this.G);this.G.subscribe("dragstart",this.cH,
this);this.G.subscribe("dragmove",this.bH,this);this.G.subscribe("dragend",this.aH,this);this.L=null;this.A=this.B=this.D=!1;this.U(a,"onVolumeChange",this.XM);this.U(a,"appresize",this.qc);this.U(a,"fullscreentoggled",this.VM);this.U(a,"onShowControls",this.ur);this.U(a,"onHideControls",this.ur);this.U(this.element,"keydown",this.dH);this.U(this.element,"focus",g.B(this.my,!0));this.U(this.element,"blur",g.B(this.my,!1));this.qc(g.gl(a).Sa());m5(this,a.getVolume(),a.Bd())};
m5=function(a,b,c){var d=Math.floor(b),e=d+"% "+g.Q("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+g.Q("YTP_SCREENREADER_VOLUME_MUTED"):"");c=c?0:b/100;a.Ea("valuenow",d);a.Ea("valuetext",e);a.Z.style.left=(a.H?60:40)*c+"px";a.C=b};
o5=function(a,b,c,d,e){var f=a.B||a.D||a.A||a.J;a.B=b;a.D=c;a.A=d;a.J=e;b=a.B||a.D||a.A||a.J;f!=b&&(b?a.L=a.U(a.element,"wheel",a.WM):(a.Ca(a.L),a.L=null),g.Rd(a.N,"ytp-volume-slider-active",b))};
p5=function(a,b){var c=g.V(a),d=Ex(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];(c="gaming"==c.o)&&e.push("ytp-youtube-gaming-button");g.W.call(this,{K:"a",ea:e,X:{href:"{{url}}",target:"_blank",title:g.Q("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},T:[c?g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-logo-gaming"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 98 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",
X:{d:"M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z"}},
{K:"path",ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],X:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{K:"path",La:!0,ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],X:{d:"M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z",
fill:"#fff"}},{K:"g",La:!0,Y:"ytp-svg-fill",T:[{K:"path",X:{d:"M50.85,16.34 C50.14,16.34 49.78,16.77 49.72,17.30 C49.61,18.30 49.61,19.64 49.72,20.65 C49.78,21.18 50.14,21.61 50.85,21.61 C51.55,21.61 52.03,21.21 52.03,20.67 L52.03,20.16 C52.03,20.09 51.98,20.04 51.91,20.04 L51.12,20.04 C50.99,20.04 50.89,19.93 50.89,19.80 L50.89,18.66 C50.89,18.53 50.99,18.42 51.12,18.42 L53.39,18.42 C53.52,18.42 53.63,18.53 53.63,18.66 L53.63,20.67 C53.63,22.11 52.45,23.30 50.85,23.30 C49.25,23.30 48.25,22.09 48.08,20.65 C47.97,19.64 47.97,18.30 48.08,17.30 C48.25,15.86 49.25,14.65 50.85,14.65 C52.46,14.65 53.63,15.79 53.63,17.39 C53.63,17.52 53.52,17.63 53.39,17.63 L52.23,17.63 C52.10,17.63 52.01,17.52 52.00,17.39 C51.95,16.77 51.52,16.34 50.85,16.34"}},
{K:"path",X:{d:"M57.57,19.76 C57.55,19.86 57.60,19.90 57.67,19.90 L58.74,19.90 C58.81,19.90 58.85,19.86 58.83,19.76 L58.27,16.89 C58.26,16.85 58.25,16.84 58.21,16.84 L58.19,16.84 C58.16,16.84 58.14,16.85 58.13,16.89 L57.57,19.76 Z M56.80,22.98 C56.78,23.09 56.69,23.16 56.58,23.16 L55.36,23.16 C55.17,23.16 55.10,23.03 55.13,22.93 L57.21,14.96 C57.24,14.85 57.33,14.78 57.43,14.78 L58.99,14.78 C59.10,14.78 59.19,14.85 59.21,14.96 L61.29,22.93 C61.31,23.03 61.24,23.16 61.06,23.16 L59.83,23.16 C59.73,23.16 59.65,23.09 59.61,22.98 L59.25,21.75 C59.23,21.66 59.18,21.57 59.08,21.57 L57.31,21.57 C57.20,21.57 57.15,21.64 57.13,21.75 L56.80,22.98 Z"}},
{K:"path",X:{d:"M65.75,17.32 C65.78,17.44 65.92,17.44 65.96,17.32 L66.61,14.99 C66.64,14.84 66.73,14.78 66.85,14.78 L68.46,14.78 C68.59,14.78 68.69,14.89 68.69,15.02 L68.69,22.93 C68.69,23.06 68.59,23.16 68.46,23.16 L67.32,23.16 C67.19,23.16 67.09,23.06 67.09,22.93 L67.09,18.18 C67.09,18.12 67.02,18.11 66.99,18.17 L66.45,19.97 C66.40,20.11 66.33,20.17 66.20,20.17 L65.51,20.17 C65.39,20.17 65.32,20.11 65.27,19.97 L64.71,18.17 C64.69,18.11 64.62,18.12 64.62,18.18 L64.62,22.93 C64.62,23.06 64.51,23.16 64.38,23.16 L63.24,23.16 C63.12,23.16 63.01,23.06 63.01,22.93 L63.01,15.02 C63.01,14.89 63.12,14.78 63.24,14.78 L64.85,14.78 C64.98,14.78 65.06,14.84 65.10,14.99 L65.75,17.32 Z"}},
{K:"path",X:{d:"M72.68,16.52 C72.68,16.45 72.63,16.40 72.56,16.40 L71.39,16.40 C71.27,16.40 71.16,16.29 71.16,16.16 L71.16,15.02 C71.16,14.89 71.27,14.78 71.39,14.78 L75.59,14.78 C75.72,14.78 75.82,14.89 75.82,15.02 L75.82,16.16 C75.82,16.29 75.72,16.40 75.59,16.40 L74.42,16.40 C74.35,16.40 74.31,16.45 74.31,16.52 L74.31,21.43 C74.31,21.50 74.35,21.55 74.42,21.55 L75.70,21.55 C75.83,21.55 75.94,21.66 75.94,21.79 L75.94,22.93 C75.94,23.06 75.83,23.16 75.70,23.16 L71.28,23.16 C71.15,23.16 71.05,23.06 71.05,22.93 L71.05,21.79 C71.05,21.66 71.15,21.55 71.28,21.55 L72.56,21.55 C72.63,21.55 72.68,21.50 72.68,21.43 L72.68,16.52 Z"}},
{K:"path",X:{d:"M83.53,22.93 C83.53,23.06 83.42,23.16 83.30,23.16 L81.92,23.16 C81.72,23.16 81.64,23.06 81.61,22.96 L80.02,18.76 C80.00,18.69 79.92,18.71 79.92,18.78 L79.92,22.93 C79.92,23.06 79.81,23.16 79.69,23.16 L78.52,23.16 C78.39,23.16 78.29,23.06 78.29,22.93 L78.29,15.02 C78.29,14.89 78.39,14.78 78.52,14.78 L79.91,14.78 C80.08,14.78 80.16,14.89 80.20,15.00 L81.79,19.55 C81.82,19.62 81.90,19.60 81.90,19.52 L81.90,15.02 C81.90,14.89 82.00,14.78 82.13,14.78 L83.30,14.78 C83.42,14.78 83.53,14.89 83.53,15.02 L83.53,22.93 Z"}},
{K:"path",X:{d:"M88.59,16.34 C87.88,16.34 87.52,16.77 87.46,17.30 C87.35,18.30 87.35,19.64 87.46,20.65 C87.52,21.18 87.88,21.61 88.59,21.61 C89.29,21.61 89.77,21.21 89.77,20.67 L89.77,20.16 C89.77,20.09 89.72,20.04 89.65,20.04 L88.86,20.04 C88.73,20.04 88.63,19.93 88.63,19.80 L88.63,18.66 C88.63,18.53 88.73,18.42 88.86,18.42 L91.13,18.42 C91.26,18.42 91.37,18.53 91.37,18.66 L91.37,20.67 C91.37,22.11 90.19,23.30 88.59,23.30 C86.99,23.30 85.99,22.09 85.82,20.65 C85.71,19.64 85.71,18.30 85.82,17.30 C85.99,15.86 86.99,14.65 88.59,14.65 C90.20,14.65 91.37,15.79 91.37,17.39 C91.37,17.52 91.26,17.63 91.13,17.63 L89.97,17.63 C89.84,17.63 89.75,17.52 89.74,17.39 C89.69,16.77 89.26,16.34 88.59,16.34"}}]}]}:
g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-logo"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 51 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z"}},
{K:"path",ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],X:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{K:"path",La:!0,ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],X:{d:"M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z",
fill:"#fff"}}]}]});this.o=a;Nl(a,this,28666);this.S("click",this.D);this.U(a,"videodatachange",this.C);this.C();g.Bb(this,I2(b.o,this.element))};
q5=function(a,b,c){g.ir.call(this);var d=g.V(a);this.aa=a;this.A=b;this.V=window.NaN;this.P=null;this.L=c;this.L.subscribe("autohideupdate",this.iy,this);c=!Sk(g.fl(a));var e=new g.W({K:"div",Y:"ytp-gradient-bottom"});g.M(this,e);g.Kl(a,e.element,9);this.J=new lq(e,250,c,100);g.M(this,this.J);this.g=new g.W({K:"div",Y:"ytp-chrome-bottom",T:[{K:"div",Y:"ytp-chrome-controls"}]});g.M(this,this.g);g.Kl(a,this.g.element,9);this.H=new lq(this.g,250,c,100);g.M(this,this.H);c=this.g.element.children[0];d.H&&
(c.style.background=d.qb);this.o=new c5(a,b);g.M(this,this.o);g.Kl(a,this.o.element,7);this.o.subscribe("show",this.VI,this);this.o.subscribe("show",(0,g.z)(b.BI,b,this.o));this.D=new u4(a,b);g.M(this,this.D);this.D.Fa(this.g.element,0);e=new P3(a,b);g.M(this,e);g.Kl(a,e.element,5);this.D.subscribe("height-change",e.mM,e);e=new S3(a);g.M(this,e);g.Kl(a,e.element,5);e=new g.mn({K:"div",Y:"ytp-left-controls"});g.M(this,e);e.Fa(c);var f=new p4(a,b,!1);g.M(this,f);f.Fa(e.element);f=new m4(a,b);g.M(this,
f);f.Fa(e.element);f=new p4(a,b,!0);g.M(this,f);f.Fa(e.element);var k=new g.W({K:"span"});g.M(this,k);k.Fa(e.element);if(!d.V&&(this.B=new g4(a,b),g.M(this,this.B),this.B.Fa(k.element),d.da)){f=new n5(a,b,this.g.element);g.M(this,f);f.Fa(k.element);k=new g.Qy(k.element);g.M(this,k);var l=(0,g.z)(f.wv,f,!0);k.subscribe("hoverstart",l);k=new g.Qy(e.element);g.M(this,k);f=(0,g.z)(f.wv,f,!1);k.subscribe("hoverend",f)}this.N=new k5(a,b);g.M(this,this.N);this.N.Fa(e.element);e=new g.mn({K:"div",Y:"ytp-right-controls"});
g.M(this,e);e.Fa(c);c=new j5(a,b);g.M(this,c);c.Fa(e.element);c=new h5(a,b,this.o);g.M(this,c);this.o.G=c;c.Fa(e.element);c=new Y3(a,b);g.M(this,c);g.Kl(a,c.element,6);c.subscribe("show",(0,g.z)(b.Om,b,c));c=new X3(a,b,c);g.M(this,c);c.Fa(e.element);d.ve&&(this.C=new p5(a,b),g.M(this,this.C),this.C.Fa(e.element));c=new i5(a,b);g.M(this,c);c.Fa(e.element);d.N&&(c=new J4(a),g.M(this,c),g.Kl(a,c.element,5),c=new K4(a,b,this.o),g.M(this,c),c.Fa(e.element));d.ue&&(d=new O3(a,b),g.M(this,d),d.Fa(e.element));
d=dr();d.webkitSetPresentationMode&&ra(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new k4(a,b),g.M(this,d),d.Fa(e.element));this.Z=new W3(a,b);g.M(this,this.Z);this.Z.Fa(e.element);this.F=new Qo(this.qF,null,this);g.M(this,this.F);this.G=null;this.U(a,"appresize",this.Jp);this.U(a,"fullscreentoggled",this.Jp);this.U(a,"presentingplayerstatechange",this.Lo);this.Jp()};
r5=function(a,b){if(Sk(g.fl(a.aa))||b){if(b){g.nq(a.H);g.nq(a.J);if(a.B){var c=a.B;c.Z=!1;g.Pl(c.o,c,c.C&&!1)}a.C&&(c=a.C,c.B=!1,g.Pl(c.o,c,c.A&&!1));a.A.o.Jg(a.oa())}}else b||(a.H.show(),a.J.show(),a.B&&(c=a.B,c.Z=!0,g.Pl(c.o,c,c.C&&!0)),a.C&&(c=a.C,c.B=!0,g.Pl(c.o,c,c.A&&!0)),a.iy())};
t5=function(a){var b=g.gl(a.aa).Sa().width;return Math.max(b-2*s5(a),100)};
s5=function(a){var b=l5(a.A);return 12*(g.V(a.aa).H?0:b?2:1)};
u5=function(a){g.W.call(this,{K:"div",Y:"ytp-title",T:[{K:"a",Y:"ytp-title-channel-logo",X:{href:"{{channelImageLink}}",target:"_blank"}},{K:"div",Y:"ytp-title-text",T:[{K:"a",ea:["ytp-title-link","yt-uix-sessionlink"],X:{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},T:[{K:"span",Y:"ytp-title-playlist-icon",T:[Ng()]},{K:"span",T:["{{title}}"]}]}]},{K:"div",Y:"ytp-title-subtext",T:[{K:"a",Y:"ytp-title-channel-name",X:{href:"{{channelNameLink}}",target:"_blank"},T:["{{channelName}}"]},
{K:"span",Y:"ytp-title-view-count",T:["{{viewCount}}"]}]}]});Nl(a,this,23851);this.o=a;this.A=null;this.G=this.ua["ytp-title-link"];this.F=this.ua["ytp-title-channel-logo"];this.J=this.ua["ytp-title-playlist-icon"];this.D=this.C=null;this.U(a,"videodatachange",this.B);this.U(a,"videoplayerreset",this.B);this.U(a,"appresize",this.qc);this.qc(g.gl(a).Sa());this.B()};
w5=function(a){var b=a.o.getVideoData(),c=b.videoId&&(2==a.o.Za()||g.V(a.o).experiments.g("embed_author_metadata")),d=a.o.getRootNode();c&&b.videoId==a.C?g.O(d,"ytp-title-extra-info"):(g.Pd(d,"ytp-title-extra-info"),c&&(b.author&&b.channelPath&&b.profilePicture?v5(a,b.videoId,b.author,b.channelPath,b.profilePicture):b.videoId!=a.D&&(c=g.V(a.o),d={video_id:b.videoId,html5:1,page_subscribe:0},c.hc&&(d.authuser=c.hc),c.pageId&&(d.pageid=c.pageId),c=g.ag(c.baseYtUrl+"get_video_metadata",d),g.li(c,{method:"GET",
Cb:(0,g.z)(a.H,a,b.videoId),withCredentials:!0}),a.D=b.videoId)))};
v5=function(a,b,c,d,e){d=g.V(a.o).ga+"://"+Dx(g.V(a.o))+d;a.F.style.backgroundImage="url("+e+")";a.Ea("channelImageLink",d);a.Ea("channelNameLink",d);a.Ea("channelName",g.Q("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.C=b;w5(a)};
x5=function(a,b){var c=g.gl(a).Sa();g.W.call(this,{K:"div",T:[{K:"div",Y:"ytp-tooltip-bg",T:[{K:"div",Y:"ytp-tooltip-duration",T:["{{duration}}"]}]},{K:"div",Y:"ytp-tooltip-text-wrapper",T:[{K:"div",Y:"ytp-tooltip-image"},{K:"div",Y:"ytp-tooltip-title",T:["{{title}}"]},{K:"span",Y:"ytp-tooltip-text",T:["{{text}}"]}]}]});this.P=a;this.fa=b;this.ba=g.V(a).isMobile;this.G=this.ua["ytp-tooltip-bg"];this.ga=this.ua["ytp-tooltip-image"];this.ca=(0,g.z)(this.TF,this);this.N=(0,g.z)(this.VF,this);this.A=
null;this.H=new lq(this,100);g.M(this,this.H);this.o=null;this.L=!1;this.B=null;this.D=window.NaN;this.F="";this.da=c.width;this.J=!0;this.C=1;this.V=new g.Id(this.DD,250,this);g.M(this,this.V);this.Z=new g.Id(this.wd,5E3,this);g.M(this,this.Z)};
z5=function(a,b){if(null!=a.o)if(b)switch(a.o){case 3:case 2:y5(a);a.H.show();break;default:a.H.show()}else g.nq(a.H);a.J=b};
I2=function(a,b){if(a.ba)return g.v;b.addEventListener("mouseover",a.N);return(0,g.z)(function(){this.A==b&&this.wd();b.removeEventListener("mouseover",this.N)},a)};
B5=function(a,b,c){if(a.o)if(3==a.o)a.wd();else return;A5(a,b,3,c)};
A5=function(a,b,c,d){(0,window.isNaN)(a.D)||(a.D=window.NaN,a.G.style.background="");a.A=b;a.L=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));a.element.className="ytp-tooltip";if(b=b.getAttribute("data-tooltip-image"))a.ga.style.backgroundImage="url("+b+")";g.Rd(a.element,"ytp-tooltip-image-enabled",!!b);a.o=c;a.P.addEventListener("appresize",a.wd,a);a.J&&(y5(a),a.H.show(0))};
y5=function(a){var b=a.A.getAttribute("data-tooltip-text");if(b&&!a.L){a.Ea("text",b);var c=a.A.getAttribute("data-duration");a.update({title:a.F,duration:c});var d=a.A.getAttribute("data-preview"),e=160*a.C,f=90*a.C,k=160*a.C,l=90*a.C;a.G.style.width=e+"px";a.G.style.height=f+"px";a.G.style.backgroundImage=d?"url("+d+")":"";a.G.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.G.style.backgroundSize=k+"px "+l+"px";Nd(a.element,["ytp-text-detail","ytp-preview"]);g.Rd(a.element,"ytp-has-duration",
!!c)}else a.Ea("text",a.F),Qd(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);C5(a,!!b)};
C5=function(a,b,c){a.element.style.maxWidth=b?"":Math.min(a.da,200*a.C)+"px";D5(a.fa,a.element,a.A,c,1==a.o);a.element.style.top?g.O(a.element,"ytp-bottom"):a.element.style.bottom&&g.O(a.element,"ytp-top");3==a.o&&a.Z.start()};
j4=function(a){a.A&&!a.L&&a.A.hasAttribute("title")&&(a.F=a.A.getAttribute("title"),a.A.removeAttribute("title"),a.J&&y5(a))};
E5=function(a,b){g.Rd(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.D)){a.D=b;var c=160*a.C,d=160*a.C,e=vv(a.B,a.D,c);mW(a.G,e,c,d,!0);a.V.start()}};
G5=function(a,b){J2.call(this,a,b,{K:"div",ea:["ytp-unmute","ytp-popup"],T:[{K:"div",Y:"ytp-unmute-inner",T:[{K:"div",ea:["ytp-unmute-icon"],T:[Wg()]},g.Q("YTP_UNMUTE")]}]},250);this.o=a;this.A=!1;a.Bd()?F5(this):this.ma();this.U(a,"mutedautoplaychange",this.B,this);this.S("click",this.D,this)};
F5=function(a){a.A||(a.A=!0,g.ol(a.o,"mutedAutoplayImpression",{}))};
I5=function(a,b,c){g.W.call(this,{K:"button",ea:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}"},T:["{{icon}}"]});this.o=a;this.D=b.o;this.F=c;g.O(c,"ytp-watch-later-button-visible");this.C=null;this.B=this.A=!1;Nl(a,this,28665);this.S("click",this.YM,this);this.U(a,"videoplayerreset",this.ZM);this.U(a,"appresize",this.qc);this.qc(g.gl(a).Sa());H5(this,2);g.Bb(this,I2(b.o,this.element))};
H5=function(a,b,c){if(b!=a.C){var d;switch(b){case 3:d=Iy();break;case 1:d=g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-watch-later-added"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M15.03,26 L7,17.91 L9.83,15.05 L14.94,20.19 L25.07,10 L28,12.94 L15.03,26 Z"}}]};break;case 2:d=g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-watch-later"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",
X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-alert"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}}a.Ea("icon",
d);a.C=b}c?a.update({title:c,image:null}):(b=g.V(a.o),b.userDisplayName?(c={USER_NAME:b.userDisplayName},a.update({title:a.A?g.Q("YTP_ADDED_TO_WATCH_LATER_AS",c):g.Q("YTP_WATCH_LATER_AS_2",c),image:b.userDisplayImage})):a.update({title:g.Q("YTP_WATCH_LATER"),image:null}));j4(a.D)};
J5=function(a){g.W.call(this,{K:"a",ea:["ytp-watermark","yt-uix-sessionlink"],X:{target:"_blank",href:"{{url}}","aria-label":g.Q("YTP_URL_NAVIGATE_TO",{WEBSITE:Ex(g.V(a))}),"data-sessionlink":"feature=player-watermark"},T:[g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-watermark"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 77 34",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 26.81,26.92 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.18 2.80,0 0,12.48 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.72 2.80,0 0,15.38 -2.80,0 0,0 z M 18.83,12.91 c -0.74,-1.05 -1.91,-1.48 -3.10,-1.48 -1.33,0 -2.35,.43 -3.10,1.48 -0.57,.77 -0.88,2.02 -0.88,3.66 l -0.00,5.46 c 0,1.63 .27,2.76 .84,3.53 .74,1.04 1.95,1.60 3.13,1.60 1.18,0 2.41,-0.55 3.16,-1.60 .56,-0.76 .82,-1.89 .82,-3.53 l 0,-5.48 c 0,-1.64 -0.32,-2.87 -0.88,-3.65 l 0,0 0,0 z m -1.91,9.44 c .14,1.52 -0.31,2.27 -1.18,2.27 -0.87,0 -1.32,-0.75 -1.18,-2.27 l 0,-6.09 c -0.14,-1.52 .31,-2.23 1.18,-2.23 .87,0 1.33,.71 1.18,2.23 l -0.00,6.09 0,0 z m -8.27,4.56 -2.95,0 0,-8.37 c 0,0 -3.06,-10.27 -3.69,-12.18 l 3.10,0 2.07,8.02 2.06,-8.02 3.10,0 -3.69,12.18 0,8.37 0,0 z"}},
{K:"path",ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],X:{d:"m 34,5.07 40,0 0,24 -40,0 z",fill:"none"}},{K:"path",La:!0,ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],X:{d:"M 73.80,3.53 C 72.12,1.72 70.24,1.72 69.38,1.61 63.21,1.15 53.95,1.15 53.95,1.15 c -0.01,0 -9.27,0 -15.44,.45 -0.86,.10 -2.74,.11 -4.41,1.91 -1.32,1.37 -1.75,4.49 -1.75,4.49 0,0 -0.44,3.66 -0.44,7.32 l 0,3.43 c 0,3.66 .44,7.32 .44,7.32 0,0 .43,3.11 1.75,4.49 1.67,1.80 3.88,1.74 4.86,1.93 C 42.48,32.89 53.94,33 53.94,33 c 0,0 9.26,-0.01 15.43,-0.47 .86,-0.10 2.74,-0.11 4.41,-1.91 1.32,-1.37 1.75,-4.49 1.75,-4.49 0,0 .44,-3.66 .44,-7.32 l 0,-3.43 c 0,-3.66 -0.44,-7.32 -0.44,-7.32 0,0 -0.43,-3.11 -1.75,-4.49 l 0,0 0,0 z m -35.17,23.39 0,-17.51 -3.10,0 0,-2.89 9.30,-0.00 0,2.89 -3.24,0 0,17.51 -2.95,0 0,0 z m 10.78,0 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.03 2.80,0 0,12.33 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.57 2.80,0 0,15.23 -2.80,0 0,0 z m 12.70,-1.52 c -0.35,1.13 -1.13,1.71 -2.19,1.71 -0.95,0 -2.01,-0.58 -2.90,-1.72 l -0.00,1.53 -3.02,0 0,-20.40 3.02,0 -0.00,6.65 c .86,-1.09 1.92,-1.71 2.91,-1.71 1.06,0 1.78,.63 2.13,1.77 .17,.61 .35,1.59 .35,3.03 l 0,6.09 c 0,1.40 -0.11,2.40 -0.29,3.04 l 0,0 0,0 z m 7.36,-1.89 c .02,-0.15 .02,-0.80 .02,-1.91 l 2.80,0 0,.43 c 0,.88 -0.07,1.51 -0.09,1.79 -0.09,.61 -0.30,1.16 -0.62,1.65 -0.73,1.10 -1.83,1.64 -3.23,1.64 -1.39,0 -2.46,-0.51 -3.23,-1.55 -0.56,-0.76 -0.93,-1.89 -0.93,-3.51 l 0,-5.33 c 0,-1.62 .33,-2.88 .89,-3.65 .77,-1.04 1.83,-1.59 3.20,-1.59 1.34,0 2.40,.55 3.15,1.59 .55,.76 .86,1.95 .86,3.58 l 10e-4,3.11 -5.32,0 0,2.73 c -0.00,1.40 .37,2.11 1.29,2.11 .65,0 1.04,-0.36 1.19,-1.10 l 0,0 0,0 z m -1.21,-9.51 c -0.89,0 -1.27,.38 -1.27,1.81 l 0,1.68 2.51,-0.00 0,-1.66 c 0,-1.40 -0.35,-1.83 -1.23,-1.83 l 0,0 0,0 z m -11.16,.69 -0.00,9.23 c .44,.46 .95,.69 1.39,.69 .77,0 1.11,-0.58 1.11,-2.10 l 0,-6.54 c 0,-1.52 -0.34,-1.97 -1.11,-1.97 -0.44,0 -0.94,.23 -1.39,.69 l 0,0 0,0 z",
fill:"#fff"}}]}]});this.A=a;this.o=null;this.U(a,"videodatachange",this.B);this.U(a,"presentingplayerstatechange",this.D);this.Ab(!g.T(g.fl(a),2));this.B()};
L5=function(a){g.ir.call(this);g.Oy();var b=g.V(a),c=g.gl(a);this.g=a;var d=g.V(this.g),e=d.Z;if(gr("ytp-normal-css-loaded")){var f=gr("ytp-sprite-mode-css-loaded");e!=f&&eh(Error("Player sprite mode mismatch. playerInSpriteMode: "+e+", spriteModeCssServed: "+f+", isMobile: "+d.isMobile),"WARNING")}d=g.fl(a);this.Na=!1;this.Aa=null;this.wa=!1;this.N=null;this.G=[];b.Ia&&(this.Oa=new G5(a,this),g.M(this,this.Oa),g.Kl(this.g,this.Oa.element,3));e=new j3(a);g.M(this,e);g.Kl(a,e.element,5);f=new N3(a);
g.M(this,f);g.Kl(a,f.element,5);this.F=new C2(a);g.M(this,this.F);g.Kl(a,this.F.element,5);var k=new g.W({K:"div",Y:"ytp-gradient-top"});g.M(this,k);g.Kl(a,k.element,1);this.la=new lq(k,250,!0,100);g.M(this,this.la);this.C=new g.W({K:"div",Y:"ytp-chrome-top"});g.M(this,this.C);g.Kl(a,this.C.element,1);this.ga=new lq(this.C,250,!0,100);g.M(this,this.ga);this.ba=[];this.P=new s3(a);g.M(this,this.P);this.P.Fa(e.element);k=a.getVideoData();this.B=new j2(c,(0,g.z)(this.YL,this),k,b.useTabletControls);
g.M(this,this.B);this.B.subscribe("autohideupdate",this.ZL,this);this.o=new x5(a,this);g.M(this,this.o);g.Kl(a,this.o.element,5);b.experiments.g("related_on_pause")&&b.C&&b.Rb&&(this.Ja=new w3(a,this),g.M(this,this.Ja),g.Kl(a,this.Ja.element,5));this.H=new H2(a,this);g.M(this,this.H);g.Kl(a,this.H.element,2);var l=new pq(a,this.H);g.M(this,l);g.Kl(a,l.element,6);l=new t3(a);g.M(this,l);g.Kl(a,l.element,5);l=new z3(a,this);g.M(this,l);g.Kl(a,l.element,6);l.subscribe("show",(0,g.z)(this.Om,this,l));
this.ba.push(l);l=new B3(a,this,l);g.M(this,l);l.Fa(this.C.element);this.va=new u5(a);g.M(this,this.va);this.va.Fa(this.C.element);l=new g.mn({K:"div",Y:"ytp-chrome-top-buttons"});g.M(this,l);l.Fa(this.C.element);if(b.Ek){var m=new I5(a,this,this.C.element);g.M(this,m);m.Fa(l.element)}m=new D3(a,this);g.M(this,m);g.Kl(a,m.element,6);m.subscribe("show",(0,g.z)(this.Om,this,m));this.ba.push(m);m=new F3(a,this,m,this.C.element);g.M(this,m);m.Fa(l.element);l=null;if(Mx(b)||b.experiments.A||b.experiments.g("html5_enable_spherical3d"))l=
new G3(a),g.M(this,l),g.Kl(a,l.element,4);(this.A="1"==b.B?new q5(a,this,this.B):null)&&g.M(this,this.A);"3"==b.B&&(m=new C3(a,this),g.M(this,m),g.Kl(a,m.element,9));this.Z=new g.Id(this.Sx,200,this);g.M(this,this.Z);this.J=new h3(a,this);g.M(this,this.J);this.J.subscribe("show",this.Tx,this);this.ra=!1;b.we&&(m=new J5(a),g.M(this,m),g.Kl(a,m.element,8));m=new B2(a);g.M(this,m);g.Kl(a,m.element,5);this.fa=k.videoId;this.D=null;this.L=!1;this.na=null;this.pa=[];this.da=new g.W({K:"div",X:{tabindex:0}});
this.da.S("focus",this.oB,this);this.ca=new g.W({K:"div",X:{tabindex:0}});this.ca.S("focus",this.pB,this);k=a.getRootNode();k.setAttribute("aria-label",g.Q("YTP_PLAYER_NORMAL"));switch(b.color){case "white":g.O(k,"ytp-color-white");break;case "blue":g.O(k,"ytp-color-blue")}g.sx&&b.experiments.g("html5_prefer_standard_controls")&&g.O(k,"ytp-exp-std-controls");(this.V=b.useTabletControls?null:new m3(a,c,this.J,this.B,l,this.F,(0,g.z)(this.Sr,this)))&&g.M(this,this.V);this.U(a,"appresize",this.Ep);this.U(a,
"fullscreentoggled",this.$L);this.U(a,"offlineslatestatechange",this.dG,this);this.U(a,"presentingplayerstatechange",this.aM);this.U(a,"videodatachange",this.Rx);this.U(a,"videoplayerreset",this.tG);this.U(a,"autonavvisibility",this.Zi,this);this.U(a,"cardstatechange",this.zh,this);this.U(a,"minimized",this.zh,this);this.U(a,"onFrescaStateChange",this.zh,this);this.U(c,"click",this.LG,this);this.U(c,"dblclick",this.MG,this);b.wa&&!b.experiments.g("legacy_web_player_gestures")&&(this.U(c,"gesturechange",
this.NG,this),this.U(c,"gestureend",this.OG,this));K5(this,d);this.Zi();this.Ep();this.Ia=[c.A,f.element,e.element,this.F.element,this.P.element]};
M5=function(a){var b=g.ql(a.g)&&rl(a.g);(b=a.wa||b||!!a.N)||(b=g.Zk(a.g).C,b=!!b&&b.OK());return b||a.g.app.W.Ib};
D5=function(a,b,c,d,e){b.style.left="";b.style.top="";b.style.bottom="";var f=g.ij(b);e=e||a.A&&g.df(a.A.oa(),c);if(null==d||!e)var k=g.ij(c),l=g.fj(c,a.g.getRootNode());d=(null==d?l.x+k.width/2:d)-f.width/2;e?(k=s5(a.A),l=t5(a.A),c=g.gl(a.g).Sa().height,d=g.te(d,k,k+l-f.width),f=c-(l5(a.A.A)?72:50)-f.height):g.df(a.C.element,c)?(k=g.gl(a.g).Sa().width,d=g.te(d,12,k-f.width-12),f=l5(a)?69:48,"gvn"==g.V(a.g).o&&(f+=20)):(a=g.gl(a.g).Sa(),d=g.te(d,12,a.width-f.width-12),f=l.y>(a.height-k.height)/2?
l.y-f.height-12:l.y+k.height+12);b.style.top=f+"px";b.style.left=d+"px"};
ms=function(a){var b=g.gl(a.g).Sa(),b=new g.yf(0,0,b.width,b.height);if(a.B.o&&!M5(a)){if(g.V(a.g).Nb){var c=l5(a)?69:48;b.top+=c;b.height-=c}a.A&&(b.height-=l5(a.A.A)?72:50)}return b};
N5=function(a,b){if(!b)return!1;var c=g.gl(a.g).o;if(c&&g.df(c,b))return c.controls;for(c=0;c<a.Ia.length;c++)if(g.df(a.Ia[c],b))return!1;return g.Md(b,"ytp-player-content")||g.Md(b,"html5-endscreen")||b==a.g.getRootNode()?!1:!0};
O5=function(a,b,c){a.g.isFullscreen()?c<1-b&&g.jl(a.g):c>1+b&&g.jl(a.g)};
l5=function(a){return a.g.isFullscreen()||g.sx&&g.V(a.g).experiments.g("html5_prefer_standard_controls_big")};
K5=function(a,b){var c=Sk(b);c!=a.Ua&&(a.Ua=c,a.na&&a.Ca(a.na),a.na=a.U(g.gl(a.g),"touchstart",a.PG,void 0,c));var d;(d=b.gb()&&!g.T(b,32))||(d=g.Zk(a.g).H,d=!!d&&d.PK());a.B.Tb(128,!d);a.B.Tb(256,3==a.g.Za());d=a.g.getRootNode();var e;g.T(b,2)?e=["ended-mode"]:(e=[],g.T(b,8)?e.push("playing-mode"):g.T(b,4)&&e.push("paused-mode"),g.T(b,1)&&!g.T(b,32)&&e.push("buffering-mode"),g.T(b,32)&&e.push("seeking-mode"),g.T(b,64)&&e.push("unstarted-mode"));g.wb(a.pa,e)||(Qd(d,a.pa),a.pa=e,Nd(d,e));a.A&&r5(a.A,
M5(a));e=g.V(a.g);var f=g.T(b,2);g.Rd(d,"ytp-hide-controls",("3"==e.B?!f:"1"!=e.B)||c);g.Rd(d,"ytp-native-controls","3"==e.B&&!c&&!f);if(g.T(b,128)){a.D||(a.D=new q2(a.g),g.M(a,a.D),a.D.Fa(d),g.Kl(a.g,a.D.element,5));c=a.D;d=b.g;for(e=0;e<c.B.length;e++)c.Ca(c.B[e]);c.B=[];e=d.messageKey;f=g.V(c.A);if("YTP_ERROR_GENERIC_WITHOUT_LINK"!=e||f.Ic)if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==e||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==e)c.sc(r2(c,e,"https://get.adobe.com/flashplayer/",!1,!0));else if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=
e||f.Ic){d=d.message.split(Wpa);e=["span",null];for(f=0;f<d.length;f+=3){var k=d[f++].split("\n");e.push(k[0]);for(var l=1;l<k.length;l++)e.push(["br"]),e.push(k[l]);f<d.length&&e.push(["a",{href:d[f],target:d[f+1]},d[f+2]])}c.sc(e)}else c.sc(r2(c,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//"+Dx(f)+"/html5"));else if(c.sc(r2(c,"YTP_ERROR_GENERIC_WITH_LINK_AND_CPN","//support.google.com/youtube/?p=player_error1",!0)),f.la&&!f.C)for(d=(0,g.z)(c.C,c),e=c.element.getElementsByTagName("a"),
f=0;f<e.length;f++)k=c.U(e[f],"click",d),c.B.push(k);a.D.show()}else a.D&&(a.D.dispose(),a.D=null)};
P5=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Vi(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=P5(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};
Q5=function(a){this.H=a;this.C=null;this.B=[];this.o=[];this.A=[];this.G=1;this.g=[]};
g.Ml=function(a,b,c){a.F?a.A.push({type:b,data:c}):a.H.oc(b,c)};
S5=function(a,b){g.L.call(this);this.ba=vba(b);var c=this.ba.args||{};this.W=new zx(c);g.M(this,this.W);this.W.experiments.g("legacy_autoplay_flag")||"detailpage"!=this.W.g||(c.autoplay="1");this.Rb=Gv("detailpage"==this.W.g&&"blazer"!=this.W.o||"books"==this.W.o,c.enablesizebutton);this.ra=Gv(!1,c.player_wide);this.V=this.W.kb&&Gv(!1,c.external_list);this.wa=(this.Ib=this.W.kb&&Gv(!1,c.external_play_video))&&(this.W.experiments.g("kevlar_allow_multistep_video_init")||this.W.experiments.g("mweb_autonav"));
this.pa=new g.ir(this);g.M(this,this.pa);this.Ia=null;this.O=new Cf;this.Z=new Cf;this.ca=new Q5(this.Z);this.ca.pause();this.g=new Yk(this);g.M(this,this.g);this.Kb=new Yk(this,1);g.M(this,this.Kb);this.B=new Y1(this);g.M(this,this.B);this.B.subscribe("resize",this.yJ,this);this.P=1;this.Na={};this.N=this.W.storeUserVolume?Uba():{volume:100,muted:this.W.mute};this.aa=this.W.kb?new Xk(this,1):new Wk(this,1);g.M(this,this.aa);this.F=null;this.Ja={};this.Xa={internalAbandon:this.kE,internalvideodatachange:this.jE,
playbackready:this.lE,playbackstarted:this.mE,statechange:this.nE,signatureexpired:this.ZG,drmsessionlimitexhuased:this.$E};this.D=Xpa(this);g.M(this,this.D);this.H=new eS(this.W,"",this.D);this.o=Ypa(this);this.Nb={airplayactivechange:this.bE,airplayavailabilitychange:this.cE,beginseeking:this.vE,endseeking:this.bF,internalaudioformatchange:this.pE,internalvideodatachange:this.hp,internalvideoformatchange:this.AH,liveviewshift:this.yF,playbackstalledatstart:this.eH,progresssync:this.xJ,seekto:this.zJ,
onLoadProgress:this.zF,onVideoProgress:this.EH,playbackready:this.rG,statechange:this.DH,connectionissue:this.OE,heartbeatparams:this.vJ,videoelementevent:this.AJ};this.J=this.C=null;this.la=new x2(5,function(a){a.dispose()});
g.M(this,this.la);this.ab=this.fb=-1;c=this.G=null;this.W.N&&(c=new W1(this.Kb),g.M(this,c),R5(this,c),this.D.G=c);this.L=c;this.Eb=new g.Id(this.B.$f,16,this.B);g.M(this,this.Eb);this.Ua=!1;this.da=!0;this.na=this.Aa=this.A=null;this.ib=!1;this.qb=this.Lb=null;this.Oa=this.fa=0;this.sb=this.va=!1;this.ga=null;this.g.addEventListener("crn_"+S5.A,this.hE,this);this.g.addEventListener("crx_"+S5.A,this.iE,this);this.g.addEventListener("crn_"+S5.o,this.Wt,this);this.g.addEventListener("crx_"+S5.o,this.Wt,
this);this.g.addEventListener("presentingplayerstatechange",this.wJ,this);this.B.initialize(a);this.Db=this.W.experiments.g("html5_enable_embedded_player_visibility_signals")&&this.W.C?new A2(this.B.element):null;g.M(this,this.Db);g.Ag=this.W.Z;Zpa(this);this.H.o("fs");$pa(this);this.W.N&&this.L.create();c=new L5(this.g);g.M(this,c);this.D.D=c;g.pl(this.Kb,"init")};
Ypa=function(a){var b=new MU(a.W,1,a.H,a.B,(0,g.z)(a.O.oc,a.O),!a.wa);GV(b,a.W.C?1:T5(a,g.Hj("yt-player-playback-rate")||1));U5(a,b,a.Xa);return b};
W5=function(a,b){var c=a.o,d=a.Xa,e;for(e in d)c.Ka(e,d[e],a);c=a.o.H;a.o.dispose();a.o=b;GV(a.o,c);U5(a,b,a.Xa);V5(a)};
Xpa=function(a){var b="",c=a.ba.assets.js||"";0==c.indexOf("//")&&(c=a.W.ga+":"+c);"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");b=new Wy(a.g,b);c={};c.loaded=(0,g.z)(a.mu,a);c.unloaded=(0,g.z)(a.nu,a);c.destroyed=(0,g.z)(a.bo,a);b.Z=c;a.W.O.subscribe("vast_info_card_add",g.B(b.bI,"vast_info_card_add"),b);return b};
Y5=function(a,b){a.Ia||(a.Ia=new w2(a),g.M(a,a.Ia),g.Kl(a.g,a.Ia.element,5));a.Ia.Ab(b);X5(a)&&W0(a.L.o,"sendDebugCommand",{debugCommand:"stats4nerds "})};
$5=function(a){var b;if(0<a.W.va){b=g.Re("div");var c=new g.z2(a.W),d=c.g;switch(c.Z){case "top":sh(d,d.C.top);break;case "parent":sh(d,d.C.parent);break;case "discover":var e=d.C,f=30;do(e=e.parent)&&sh(d,e);while(e&&e!=d.C.top&&f--)}a.F=c}else b=Z5.getTag(!0,!a.W.F),a.F=new g.nt(b);a.C&&jV(a.C,a.F);try{a.W.V?(a.na&&a.pa.Ca(a.na),a.na=a.pa.U(a.F,"volumechange",a.OF)):(a.F.setVolume(a.N.volume/100),a.F.oj(a.N.muted))}catch(k){b="setvolume.1;emsg."+(k.message&&k.message.replace(/[;:,]/g,"_"));g.VU(a.o,
"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",b);return}Mpa(a.B,b);try{wk(a.F)}catch(k){b="activate.1;emsg."+(k.message&&k.message.replace(/[;:,]/g,"_")),g.VU(a.o,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",b)}};
a6=function(a){if(a.F){a.na&&(a.pa.Ca(a.na),a.na=null);a.C&&iV(a.C);var b=a.B;b.o&&(g.Ye(b.o),b.o=null);a.F.tg()&&Z5.releaseTag(a.F.oa());a.F=null}};
NY=function(a,b){a.C!=b&&(a.C&&(Zy(a.D),Fl(a,"cuerangesremoved",a.C.C.g.g||[]),MY(a)),b6(a,b),a.C=b,a.F&&jV(b,a.F),U5(a,b,a.Nb),a.hp("newdata",b,b.getVideoData()),b.fa.g&&a.hp("dataloaded",b,b.getVideoData()),b.getVideoData().A&&a.g.ya("onPlaybackQualityChange",b.getVideoData().A.video.quality),Fl(a,"cuerangesadded",a.C.C.g.g||[]),Mk(b.A)&&pV(b))};
U5=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
b6=function(a,b){b!=a.o&&(a.Ja[b.J]=b)};
MY=function(a){iV(a.C);var b=a.C,c=a.Nb,d;for(d in c)b.Ka(d,c[d],a);b=a.C;b!=a.o&&(c=b.J,a.Ja[c]==b&&delete a.Ja[c]);a.C=null};
g.el=function(a,b){return b?1==b?a.o:a.Ja[b]||null:a.C};
LY=function(a,b){var c=g.el(a,b);c||(c=c6(a,b),b6(a,c));return c};
c6=function(a,b){var c;2==b?(c=Wb(a.W.L),a.W.experiments.g("legacy_autoplay_flag")&&(c.autoplay="1"),c.eventid=a.getVideoData().eventId,c.content_v=a.getVideoData().videoId,c=new zx(c),c.g="adunit",c=new MU(c,2,new eS(c,""),a.B,(0,g.z)(a.O.oc,a.O))):c=new MU(a.W,b,a.H,a.B,(0,g.z)(a.O.oc,a.O));return c};
d6=function(a){var b=a.D,c=[vs.A,Kca];b.Hr();b.Cr();b.Ir();b.Kr();b.Jr();b.Gr();b.Er();b.Dr();(0,g.H)(c,b.TK,b);a.g.Ra("videoready",a.getVideoData())};
R5=function(a,b){g.M(a,b);b.subscribe("loaded",a.mu,a);b.subscribe("unloaded",a.nu,a)};
e6=function(a,b){b&&b.F&&("ad"==b.tb&&Qd(a.B.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())};
DY=function(a){return a.o.getVideoData()};
f6=function(a,b){var c=g.el(a,b);return(c=c?c.o:null)?Fk(c):0};
g6=function(a){var b=DY(a);g.wl(b);return a.W.experiments.g("legacy_autoplay_flag")?a.W.Ih:b.Z};
Zpa=function(a){var b=new g.Sx(a.ba.args);g.wl(b)&&(UU(a.o,b,(0,g.z)(a.bj,a)),g6(a)&&(a.W.bc||a.W.Ia||a.W.experiments.C)&&XU(a.o))};
$pa=function(a){var b=a.B;b.isDisposed();var c=b.app.W;c.dc||b.yp("tag-pool-enabled");c.Ic&&b.yp("house-brand");"gvn"==c.o&&(b.yp("ytp-gvn"),b.element.style.backgroundColor="transparent");c.la&&(b.H=ci("yt-dom-content-change",b.$f,b));b.U(window,"resize",b.$f,b);b=a.aa;b.o=a.B.element;for(var d in b.B)b.o[d]=b.B[d];for(d in b.C)b.o[d]=b.C[d];(d=xh(a.B.element))&&a.pa.U(a.B,d,a.jF);a.pa.U(window,"resize",a.KG);b=a.ba.args;$5(a);d=DY(a);a.g.ya("onVolumeChange",a.N);b&&ry(b)&&((c=Gx(a.W))&&!a.V&&(b.fetch=
0),h6(a,b),c&&!a.V?i6(a):g.wl(d)||wy(a.A,(0,g.z)(a.ho,a)));if(b=a.ba.args.jsapicallback)ra(b)||(b=u(b)),b&&(0,g.z)(b,r,a.W.Sh);NY(a,a.o);g.T(a.o.A,128)||(b=er(a.W.F),"fmt.noneavailable"==b?g.VU(a.o,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"==b?g.VU(a.o,b,"YTP_ERROR_UNSUPPORTED_DEVICE","nocanplaymedia.1"):d&&g.wl(d)&&g6(a)&&(a.W.bc||a.W.Ia)?j6(a):"leanback"!=a.W.g&&k6(a))};
k6=function(a){a.g.Ra("initializingmode");l6(a,2)};
j6=function(a){if(g.T(a.o.A,128))return!1;g6(a)&&a.W.Ia&&(Z5.hasTags(void 0)&&a.sb?(m6(a,{muted:!1,volume:a.N.volume},!1),n6(a,!1)):Z5.hasTags(void 0)||a.N.muted||(m6(a,{muted:!0,volume:a.N.volume},!1),n6(a,!0)));if(a.W.experiments.g("html5_new_preloading"))o6(a,1,a.o.getVideoData().videoId);else if(a.J){var b=a.J.getVideoData(),c=a.o.getVideoData();b.videoId==c.videoId&&(b.autonavState=c.autonavState,b=a.J,a.J=null,W5(a,b))}a.g.Ra("initializingmode");NY(a,a.o);l6(a,3);if(!(b=!a.W.dc||ux()&&!a.ib)){if(b=
a.ga)b=a.F,b=!!b&&b==a.ga.g;b=b&&a.ib}b&&(a6(a),$5(a),jV(a.o,a.F));ZU(a.o);if(g.T(a.o.A,128))return!1;p6(a,3);return a.ib=!0};
X5=function(a){return a.W.N&&a.L.loaded};
q6=function(a,b){if(a.C==a.o&&a.C.Eb!=b){var c=a.C;c.Eb=b;c.o&&c.o.Cp(b);a.g.Ra("loopchange",b)}};
r6=function(a,b,c){(0,window.isNaN)(b)||(b=T5(a,b),a.o.H!=b&&(GV(a.o,b),c&&!a.W.C&&g.Gj("yt-player-playback-rate",b),a.g.ya("onPlaybackRateChange",b)))};
T5=function(a,b){var c=1,c=a.g.dj();return c=1>b?g.Xa(c,function(a){return a>=b}):Za(c,function(a){return a<=b})};
s6=function(a,b){var c=g.el(a,b);return c?c.ip():a.getVideoData().uc};
t6=function(a,b){var c=AV(a.o,b);if(a.C&&a.C!=a.o){var d=AV(a.C,b),e;for(e in d)c["ad_"+e]=d[e]}b&&a.F&&(d=a.F.Bp(),c["0sz"]=0==d.width*d.height,c.op=a.F.getStyle("opacity"),d=a.F.qs().y+a.F.Bp().height,c.yof=0>=d,c.dis=a.F.getStyle("display"));(d=Ik())&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Kb.Bl();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return g.tf(c)};
dl=function(a){return 1==a.P?1:X5(a)?3:g.el(a).J};
u6=function(a,b){return 3==dl(a)?Uk(a.L.G):2==b?a.ab:a.fb};
V5=function(a){e6(a,a.G);q6(a,!1);a.Na={};a=a.H;var b=a.A;b.N={};b.J={};a.B=!1};
i6=function(a){var b=v6();if(b)if(!b.list)a.Mj();else if(a.A&&a.A.listId.toString()==b.list)if(0<=b.index){var c=b.video;a.g.isFullscreen()&&((c=c[a.A.g])&&c.encrypted_id!=a.A.Qb().videoId||(b.index=a.A.g));vy(a.A,b);a.Aa&&w6(a,a.Aa)}else a.Aa=null};
h6=function(a,b){a.A&&(a.A.Ka("error",a.Mj,a),g.Cb(a.A),a.A=null);b&&(a.V&&(b.fetch=0),a.A=new g.qy(b),a.W.experiments.g("html5_block_looping_ad_playlists")&&a.W.isAd()&&(a.A.G=!1),a.A.subscribe("error",a.Mj,a))};
x6=function(a,b,c,d){b in a.Na||(c=new g.cn(c,d,{id:b,priority:1}),c.namespace=S5.o,gp(a.o.C,[c]),a.Na[b]=c)};
y6=function(a,b,c){c={label:c};a.W.experiments.g("send_pyv_ad_mt_and_abandon_pings")&&(a=1E3*a.getCurrentTime(),c.ad_mt=Math.round(Math.max(0,a)).toString());return g.Fh(b,c)};
l6=function(a,b){b!=a.P&&(2==b&&(p6(a,-1),p6(a,5)),a.P=b,a.g.Ra("appstatechange",b))};
p6=function(a,b){a.C&&2==a.C.J?a.ab!=b&&(a.ab=b,a.g.ya("onAdStateChange",b)):a.fb!=b&&(a.fb=b,a.g.ya("onStateChange",b))};
UY=function(a,b,c,d,e){c=0!=c;if(e=g.el(a,e))2==a.P&&j6(a),e.Wc(b,c,d)};
A6=function(a,b,c,d){a.W.experiments.g("legacy_autoplay_flag")||"detailpage"!=a.W.g||(b.autoplay="1");var e=new g.Sx(b);d||(b&&ry(b)?(Gx(a.W)&&!a.V&&(b.fetch=0),h6(a,b)):a.A&&h6(a,null),a.V=Gv(!1,b.external_list),Gx(a.W)&&!a.V&&i6(a));return z6(a,e,c)};
B6=function(a,b,c){if(!a.la.get(c+b.videoId)){b.Cd=!0;var d=c6(a,c);UU(d,b,(0,g.z)(a.bj,a));XU(d,!0);a.la.set(c+b.videoId,d)}};
o6=function(a,b,c){var d=b+c;if(c=a.la.get(d))a.la.remove(d),1==c.J?(c.getVideoData().autonavState=a.o.getVideoData().autonavState,W5(a,c)):(b=g.el(a,b))&&b.dispose(),a.C.J==c.J?NY(a,c):b6(a,c);return c};
z6=function(a,b,c){fw("_start",a.H.g)||(ew("p",a.H.g),a.H.info("srt",0));var d;a.W.experiments.g("html5_new_preloading")?d=o6(a,c||a.C.J,b.videoId):a.J&&a.J.getVideoData().videoId==b.videoId&&(d=a.J,a.J=null,W5(a,d));if(!d){d=g.el(a,c);if(!d)return!1;a.Eb.stop();C6(a,c);UU(d,b,(0,g.z)(a.bj,a))}if(!WU(d))return!1;a.Ua&&(d.ga=!1,a.Ua=!1);if(d==a.o)return l6(a,1),j6(a);ZU(d);return!0};
D6=function(a,b,c){c=g.el(a,c);b&&c==a.o&&(c.getVideoData().Ja=!0)};
F6=function(a,b,c){b&&ry(b)?(a.da=!0,h6(a,b),(b=a.A.Qb())&&g.wl(b)?E6(a,b,c):wy(a.A,(0,g.z)(a.ho,a))):(c||(c=dl(a)),1==c&&a.Mj(),E6(a,new g.Sx(b),c))};
E6=function(a,b,c){var d=g.el(a,c);d&&(C6(a,c),UU(d,b,(0,g.z)(a.bj,a)),wx(d.W,b.C),d==a.o&&(l6(a,1),k6(a)))};
g.H6=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");a.g.isFullscreen()&&!a.wa||!yx(a.W)?(f=a.H,c=f.A,c.N={},c.J={},f.B=!1,a.H.reset(),b={video_id:b},e&&(b.autoplay="1"),d?(b.list=d,a.da=!1,G6(a,b,void 0,void 0,void 0)):A6(a,b,1)):(e=c||{},e.lact=hk(),e.vis=oj(a.W),a.Ib||"gaming"==a.W.o?a.g.ya("onPlayVideo",{videoId:b,sessionData:e,listId:d}):(a=f&&a.getVideoData().isLiveDestination?a.W.fa:a.W.getVideoUrl(b,d),u("yt.player.exports.navigate")(a,e,!0),ko(a)))};
G6=function(a,b,c,d,e){if(g.sa(b)&&!na(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var f=c[e];b[f]&&(d[f]=b[f])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},g.y(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;h6(a,b);wy(a.A,(0,g.z)(a.ho,a))};
g.k3=function(a){if(3==dl(a))return!0;Gx(a.W)&&!a.V&&i6(a);return!(!a.A||!a.A.hasNext())};
I6=function(a,b){DY(a).autonavState=b;a.g.Ra("autonavchange",b)};
J6=function(a,b,c){var d=g.el(a,1).getVideoData().N;g.Ll(a.g)&&d?(d=g.S(d,g.Cy),b=d[0],d=c?b.Wv:b.dd,g.H6(a,b.Qb().videoId,d,b.Ch(),c)):!a.V||a.g.isFullscreen()&&!a.wa?3==dl(a)?(a=a.L,a.o&&a.o.dw()):a.A&&(Gx(a.W)&&!a.g.isFullscreen()?w6(a,"yt.www.watch.lists.next"):(a.A.hasNext(b)&&uy(a.A,sy(a.A)),a.A.C?z6(a,a.A.Qb(void 0,c),1):a.da=!1)):a.g.ya("onPlaylistNext")};
K6=function(a,b){if(!a.V||a.g.isFullscreen()&&!a.wa)if(3==dl(a)){var c=a.L;c.o&&c.o.ew()}else a.A&&(Gx(a.W)&&!a.g.isFullscreen()?w6(a,"yt.www.watch.lists.prev"):(c=a.A,(c.G||b||0<=c.g-1)&&uy(a.A,ty(a.A)),a.A.C?z6(a,a.A.Qb(),1):a.da=!1));else a.g.ya("onPlaylistPrevious")};
w6=function(a,b){var c=u(b);if(c){var d=v6();d&&d.list&&c();a.Aa=null}else a.Aa=b};
v6=function(){var a=u("yt.www.watch.lists.getState");return a?a():null};
L6=function(a,b,c,d,e,f){b={id:b};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):(0,window.isNaN)(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new g.cn(1E3*c,1E3*d,b);c.namespace=S5.A;Dl(a,[c],1);return!0};
Dl=function(a,b,c){var d=g.el(a,c);d&&(gp(d.C,b),c&&dl(a)!=c||Fl(a,"cuerangesadded",b))};
WY=function(a){var b=(0,g.Ok)(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
m6=function(a,b,c){a.N=b;b.muted||n6(a,!1);c&&a.W.storeUserVolume&&!a.W.V&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Gj("yt-player-volume",c),g.Gj("yt-player-volume",c,2592E3)));M6(a);a.W.V||(b=Wb(b),a.W.storeUserVolume||(b.unstorable=!0),a.g.ya("onVolumeChange",b))};
M6=function(a){var b=a.getVideoData();b.ac||(a.F.setVolume(a.N.volume*(a.W.V?g.Sx.o:b.Rb)/100),a.F.oj(a.N.muted))};
n6=function(a,b){b!=a.sb&&(a.sb=b,a.g.Ra("mutedautoplaychange",b))};
N6=function(a,b){var c=window.screen&&window.screen.orientation;if(a.W.experiments.g("lock_fullscreen")&&c&&c.lock)if(b){var d=0==c.type.indexOf("portrait"),e=d;if(a.W.experiments.g("lock_fullscreen_auto")){var f=g.c2(a.B);1>f?e=!0:1<f&&(e=!1)}if(!a.va||e!=d){if(c=c.lock(e?"portrait":"landscape"))c["catch"](g.v);a.va=!0}}else a.va&&(a.va=!1,c.unlock())};
O6=function(a,b){var c=!!b,d=!!a.Oa!=c;a.Oa=b;a.W.experiments.g("legacy_player_fullscreen_order")?d&&(a.H.o("fsc"),a.W.P=c,a.B.$f()):(a.W.P=c,a.B.$f(),d&&a.H.o("fsc"));d&&(a.g.Ra("fullscreentoggled",c),d=DY(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.Kb.Xe()&&(c.listId=a.Kb.Xe()),a.g.ya("onFullscreenChange",c))};
Fl=function(a,b,c){a.g.Ra(b,c);if(c&&g.At(a.W)){var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&a.g.ya(d,c)}};
RY=function(a,b){var c=g.el(a,b);c&&(2==a.P?j6(a):!a.W.experiments.g("new_ended_replay")&&g.T(c.A,2)?UY(a,0):pV(c))};
TY=function(a,b){var c=g.el(a,b);c&&aV(c)};
P6=function(a){var b=a.o.getVideoData(),b=new g.Sx({video_id:b.videoId,oauth_token:b.oauthToken});E6(a,b,1)};
C6=function(a,b){Vv(a.fa);a.fa=0;var c=g.el(a,b);c&&1!=a.P&&2!=a.P&&(Zy(a.D),1==b&&e6(a,a.G),gV(c),Fl(a,"cuerangesremoved",a.C.C.g.g||[]),c.C.reset())};
Q6=function(a,b,c,d,e){c=0!=c;var f=g.el(a,e);if(!f||2!=f.J&&!g.xl(f.getVideoData()))3==dl(a)?a.L.kf("control_seek",b,c):UY(a,b,c,d,e)};
R6=function(a,b,c){a.Rb=b;a.ra=c;a.g.Ra("sizestylechange",b,c);a.B.$f()};
S6=function(a,b,c,d,e){a.W.kb&&a.G&&b==a.G.tb?c=a.G.Bg(c,d):(a.W.kb||e)&&a.W.N&&b==a.L.tb?c=a.L.Bg(c,d):(a=a.D,c=b&&c?"spacecast"==b&&a.F?a.F.C(c):"captions"==b&&a.g?a.g.Sw(c,d):(b=$y(a,b))?b.Bg(c,d):null:null);return c};
T6=function(a,b,c){if(b){if(a.W.kb&&a.G&&b==a.G.tb)return a.G.Yf();if((a.W.kb||c)&&a.W.N&&b==a.L.tb)return a.L.Yf()}else return b=az(a.D),a.W.kb&&a.G&&b.push(a.G.tb),(a.W.kb||c)&&a.W.N&&b.push(a.L.tb),b;return az(a.D,b)};
U6=function(a,b,c){if(!a.Ua){c&&(a6(a),$5(a));a.Ua=!0;c=g.el(a);c.ga=!0;c.sa&&c.sa.Kc("reloading","reason."+b);c=a.getVideoData();var d={};d.video_id=c.videoId;c.o||(d.start=g.el(a).getCurrentTime(),d.resume="1");c.L&&(d.vvt=c.L);c.oauthToken&&(d.oauth_token=c.oauthToken);d.autoplay=1;d.reload_count=c.da+1;d.reload_reason=b;A6(a,d)}};
g.aa=[];da="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
ca="undefined"!=typeof window&&window===this?this:"undefined"!=typeof window.global&&null!=window.global?window.global:this;baa=0;ea("Array.prototype.fill",function(a){return a?a:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}});
ea("Promise",function(a){function b(a){this.g=0;this.B=void 0;this.o=[];var b=this.C();try{a(b.resolve,b.reject)}catch(l){b.reject(l)}}
function c(){this.g=null}
if(a)return a;c.prototype.o=function(a){null==this.g&&(this.g=[],this.B());this.g.push(a)};
c.prototype.B=function(){var a=this;this.A(function(){a.D()})};
var d=ca.setTimeout;c.prototype.A=function(a){d(a,0)};
c.prototype.D=function(){for(;this.g&&this.g.length;){var a=this.g;this.g=[];for(var b=0;b<a.length;++b){var c=a[b];delete a[b];try{c()}catch(m){this.C(m)}}}this.g=null};
c.prototype.C=function(a){this.A(function(){throw a;})};
b.prototype.C=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}
var b=this,c=!1;return{resolve:a(this.L),reject:a(this.D)}};
b.prototype.L=function(a){if(a===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof b)this.O(a);else{var c;a:switch(typeof a){case "object":c=null!=a;break a;case "function":c=!0;break a;default:c=!1}c?this.J(a):this.F(a)}};
b.prototype.J=function(a){var b=void 0;try{b=a.then}catch(l){this.D(l);return}"function"==typeof b?this.N(b,a):this.F(a)};
b.prototype.D=function(a){this.G(2,a)};
b.prototype.F=function(a){this.G(1,a)};
b.prototype.G=function(a,b){if(0!=this.g)throw Error("Cannot settle("+a+", "+b|"): Promise already settled in state"+this.g);this.g=a;this.B=b;this.H()};
b.prototype.H=function(){if(null!=this.o){for(var a=this.o,b=0;b<a.length;++b)a[b].call(),a[b]=null;this.o=null}};
var e=new c;b.prototype.O=function(a){var b=this.C();a.A(b.resolve,b.reject)};
b.prototype.N=function(a,b){var c=this.C();try{a.call(b,c.resolve,c.reject)}catch(m){c.reject(m)}};
b.prototype.then=function(a,c){function d(a,b){return"function"==typeof a?function(b){try{e(a(b))}catch(A){f(A)}}:b}
var e,f,k=new b(function(a,b){e=a;f=b});
this.A(d(a,e),d(c,f));return k};
b.prototype["catch"]=function(a){return this.then(void 0,a)};
b.prototype.A=function(a,b){function c(){switch(d.g){case 1:a(d.B);break;case 2:b(d.B);break;default:throw Error("Unexpected state: "+d.g);}}
var d=this;null==this.o?e.o(c):this.o.push(function(){e.o(c)})};
b.resolve=function(a){return a instanceof b?a:new b(function(b){b(a)})};
b.reject=function(a){return new b(function(b,c){c(a)})};
b.g=function(a){return new b(function(c,d){for(var e=ia(a),f=e.next();!f.done;f=e.next())b.resolve(f.value).A(c,d)})};
b.all=function(a){var c=ia(a),d=c.next();return d.done?b.resolve([]):new b(function(a,e){function f(b){return function(c){k[b]=c;l--;0==l&&a(k)}}
var k=[],l=0;do k.push(void 0),l++,b.resolve(d.value).A(f(k.length-1),e),d=c.next();while(!d.done)})};
b.$jscomp$new$AsyncExecutor=function(){return new c};
return b});
MG=MG||{};r=this;ta="closure_uid_"+(1E9*Math.random()>>>0);daa=0;g.G=Date.now||function(){return+new Date};g.C(ya,Error);ya.prototype.name="CustomError";var Ee;var La,haa,iaa,jaa,kaa,laa,maa,gaa,naa,Y_,X_,raa;La=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
haa=/&/g;iaa=/</g;jaa=/>/g;kaa=/"/g;laa=/'/g;maa=/\x00/g;gaa=/[\x00&<>"']/;naa=/&([^;\s<&]+);?/g;Y_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};X_={"'":"\\'"};g.Ia=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};
raa=2147483648*Math.random()|0;var $a,aqa,we,ph,Sq;$a=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;
if(g.y(a))return g.y(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
aqa=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;
0>c&&(c=Math.max(0,a.length+c));if(g.y(a))return g.y(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.H=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.y(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Od=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k=g.y(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.S=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=g.y(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
we=Array.prototype.reduce?function(a,b,c,d){d&&(b=(0,g.z)(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
(0,g.H)(a,function(c,k){e=b.call(d,e,c,k,a)});
return e};
ph=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.y(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1};
Sq=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=g.y(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};g.L.prototype.ob=!1;g.L.prototype.isDisposed=function(){return this.ob};
g.L.prototype.dispose=function(){this.ob||(this.ob=!0,this.R())};
g.L.prototype.R=function(){if(this.Ta)for(;this.Ta.length;)this.Ta.shift()()};var Yb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");ac.prototype.stopPropagation=function(){this.o=!0};
ac.prototype.preventDefault=function(){this.av=!1};cc[" "]=g.v;var ec;a:{var V6=r.navigator;if(V6){var W6=V6.userAgent;if(W6){ec=W6;break a}}ec=""};var Pi,qc,$1,YB,bqa,Oz,Pz,cqa,tx,X6;g.rc=fc("Opera");g.Me=fc("Trident")||fc("MSIE");g.cv=fc("Edge");g.Lx=g.cv||g.Me;Pi=fc("Gecko")&&!(Ga(ec,"WebKit")&&!fc("Edge"))&&!(fc("Trident")||fc("MSIE"))&&!fc("Edge");qc=Ga(ec,"WebKit")&&!fc("Edge");$1=qc&&fc("Mobile");YB=fc("Macintosh");bqa=fc("Windows");g.sx=fc("Android");Oz=kc();Pz=fc("iPad");cqa=fc("iPod");tx=lc();
a:{var Y6="",Z6=function(){var a=ec;if(Pi)return/rv\:([^\);]+)(\)|;)/.exec(a);if(g.cv)return/Edge\/([\d\.]+)/.exec(a);if(g.Me)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(qc)return/WebKit\/(\S+)/.exec(a);if(g.rc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
Z6&&(Y6=Z6?Z6[1]:"");if(g.Me){var $6=mc();if(null!=$6&&$6>(0,window.parseFloat)(Y6)){X6=String($6);break a}}X6=Y6}var nc=X6,waa={},a7;var b7=r.document;a7=b7&&g.Me?mc()||("CSS1Compat"==b7.compatMode?(0,window.parseInt)(nc,10):5):void 0;var yaa=a7;var Lc=!g.Me||pc(9),dqa=g.Me&&!g.oc("9");!qc||g.oc("528");Pi&&g.oc("1.9b")||g.Me&&g.oc("8")||g.rc&&g.oc("9.5")||qc&&g.oc("528");Pi&&!g.oc("8")||g.Me&&g.oc("9");var eqa={Rl:"click",xS:"rightclick",QO:"dblclick",XQ:"mousedown",cR:"mouseup",bR:"mouseover",aR:"mouseout",$Q:"mousemove",YQ:"mouseenter",ZQ:"mouseleave",DS:"selectionchange",ES:"selectstart",fU:"wheel",wQ:"keypress",vQ:"keydown",xQ:"keyup",eO:"blur",KP:"focus",RO:"deactivate",LP:g.Me?"focusin":"DOMFocusIn",MP:g.Me?"focusout":"DOMFocusOut",vO:"change",rS:"reset",CS:"select",eT:"submit",jQ:"input",hS:"propertychange",tP:"dragstart",oP:"drag",qP:"dragenter",sP:"dragover",rP:"dragleave",vP:"drop",pP:"dragend",
uT:"touchstart",tT:"touchmove",sT:"touchend",rT:"touchcancel",bO:"beforeunload",FO:"consolemessage",JO:"contextmenu",cP:"devicemotion",dP:"deviceorientation",iP:"DOMContentLoaded",ERROR:"error",XP:"help",LOAD:"load",QQ:"losecapture",KR:"orientationchange",mS:"readystatechange",sS:"resize",zS:"scroll",DT:"unload",kO:"canplay",lO:"canplaythrough",wP:"durationchange",AP:"emptied",ENDED:"ended",GQ:"loadeddata",HQ:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",lS:"ratechange",AS:"seeked",
BS:"seeking",US:"stalled",fT:"suspend",jT:"timeupdate",ZT:"volumechange",cU:"waiting",RP:"hashchange",NR:"pagehide",OR:"pageshow",aS:"popstate",KO:"copy",PR:"paste",OO:"cut",YN:"beforecopy",ZN:"beforecut",$N:"beforepaste",HR:"online",ER:"offline",MESSAGE:"message",EO:"connect",RN:sc("AnimationStart"),PN:sc("AnimationEnd"),QN:sc("AnimationIteration"),xT:sc("TransitionEnd"),UR:"pointerdown",$R:"pointerup",TR:"pointercancel",XR:"pointermove",ZR:"pointerover",YR:"pointerout",VR:"pointerenter",WR:"pointerleave",
QP:"gotpointercapture",RQ:"lostpointercapture",hR:"MSGestureChange",iR:"MSGestureEnd",jR:"MSGestureHold",kR:"MSGestureStart",lR:"MSGestureTap",mR:"MSGotPointerCapture",nR:"MSInertiaStart",oR:"MSLostPointerCapture",pR:"MSPointerCancel",qR:"MSPointerDown",rR:"MSPointerEnter",sR:"MSPointerHover",tR:"MSPointerLeave",uR:"MSPointerMove",vR:"MSPointerOut",wR:"MSPointerOver",xR:"MSPointerUp",TEXT:"text",gT:"textInput",CO:"compositionstart",DO:"compositionupdate",BO:"compositionend",GP:"exit",EQ:"loadabort",
FQ:"loadcommit",IQ:"loadredirect",JQ:"loadstart",KQ:"loadstop",uS:"responsive",NS:"sizechanged",FT:"unresponsive",XT:"visibilitychange",aT:"storage",nP:"DOMSubtreeModified",jP:"DOMNodeInserted",lP:"DOMNodeRemoved",mP:"DOMNodeRemovedFromDocument",kP:"DOMNodeInsertedIntoDocument",gP:"DOMAttrModified",hP:"DOMCharacterDataModified",aO:"beforeprint",FN:"afterprint"};g.C(tc,ac);
tc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?Pi&&(dc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.B=qc||void 0!==a.offsetX?a.offsetX:a.layerX,this.C=qc||void 0!==a.offsetY?a.offsetY:a.layerY,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.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.button=a.button;this.keyCode=a.keyCode||0;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.state=a.state;this.g=a;a.defaultPrevented&&this.preventDefault()};
tc.prototype.stopPropagation=function(){tc.M.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};
tc.prototype.preventDefault=function(){tc.M.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,dqa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var uc="closure_listenable_"+(1E6*Math.random()|0),zaa=0;xc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.g))return!1;var e=this.g[a];b=yc(e,b,c,d);return-1<b?(wc(e[b]),g.db(e,b),0==e.length&&(delete this.g[a],this.o--),!0):!1};var Ic="closure_lm_"+(1E6*Math.random()|0),Pc={},Kc=0,Sc="__closure_events_fn_"+(1E9*Math.random()>>>0);g.C(N,g.L);N.prototype[uc]=!0;g.h=N.prototype;g.h.Pf=function(a){this.wa=a};
g.h.addEventListener=function(a,b,c,d){Ec(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){Nc(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b,c=this.wa;if(c){b=[];for(var d=1;c;c=c.wa)b.push(c),++d}c=this.sb;d=a.type||a;if(g.y(a))a=new ac(a,c);else if(a instanceof ac)a.target=a.target||c;else{var e=a;a=new ac(d,c);g.Zb(a,e)}var e=!0,f;if(b)for(var k=b.length-1;!a.o&&0<=k;k--)f=a.currentTarget=b[k],e=Tc(f,d,!0,a)&&e;a.o||(f=a.currentTarget=c,e=Tc(f,d,!0,a)&&e,a.o||(e=Tc(f,d,!1,a)&&e));if(b)for(k=0;!a.o&&k<b.length;k++)f=a.currentTarget=b[k],e=Tc(f,d,!1,a)&&e;return e};
g.h.R=function(){N.M.R.call(this);this.Jd&&Bc(this.Jd);this.wa=null};
g.h.S=function(a,b,c,d){return zc(this.Jd,String(a),b,!1,c,d)};
g.h.Ca=function(a,b,c,d){return this.Jd.remove(String(a),b,c,d)};Uc.prototype.get=function(){var a;0<this.o?(this.o--,a=this.g,this.g=a.next,a.next=null):a=this.A();return a};var Zc;var fd=new Uc(function(){return new bd},function(a){a.reset()},100);
ad.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.o=null),a.next=null);return a};
bd.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null};
bd.prototype.reset=function(){this.next=this.scope=this.g=null};var cd,dd=!1,ed=new ad;md.prototype.reset=function(){this.context=this.o=this.B=this.g=null;this.A=!1};
var nd=new Uc(function(){return new md},function(a){a.reset()},100);
g.ld.prototype.then=function(a,b,c){return ud(this,ra(a)?a:null,ra(b)?b:null,c)};
id(g.ld);g.ld.prototype.cancel=function(a){0==this.g&&g.gd(function(){var b=new Bd(a);wd(this,b)},this)};
g.ld.prototype.H=function(a){this.g=0;kd(this,2,a)};
g.ld.prototype.J=function(a){this.g=0;kd(this,3,a)};
g.ld.prototype.G=function(){for(var a;a=yd(this);)zd(this,a,this.g,this.F);this.D=!1};
var Dd=Yc;g.C(Bd,ya);Bd.prototype.name="cancel";g.C(Ed,N);g.h=Ed.prototype;g.h.enabled=!1;g.h.Ld=null;g.h.BB=function(){if(this.enabled){var a=(0,g.G)()-this.B;0<a&&a<.8*this.o?this.Ld=this.g.setTimeout(this.A,this.o-a):(this.Ld&&(this.g.clearTimeout(this.Ld),this.Ld=null),this.dispatchEvent("tick"),this.enabled&&(this.Ld=this.g.setTimeout(this.A,this.o),this.B=(0,g.G)()))}};
g.h.start=function(){this.enabled=!0;this.Ld||(this.Ld=this.g.setTimeout(this.A,this.o),this.B=(0,g.G)())};
g.h.stop=function(){this.enabled=!1;this.Ld&&(this.g.clearTimeout(this.Ld),this.Ld=null)};
g.h.R=function(){Ed.M.R.call(this);this.stop();delete this.g};g.C(g.Id,g.L);g.h=g.Id.prototype;g.h.Da=0;g.h.R=function(){g.Id.M.R.call(this);this.stop();delete this.g;delete this.o};
g.h.start=function(a){this.stop();this.Da=Gd(this.A,g.p(a)?a:this.B)};
g.h.ge=function(a){this.isActive()||this.start(a)};
g.h.stop=function(){this.isActive()&&Hd(this.Da);this.Da=0};
g.h.isActive=function(){return 0!=this.Da};
g.h.zs=function(){this.Da=0;this.g&&this.g.call(this.o)};var Xaa={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 Maa=/<[^>]*>|&[^;]+;/g,c7=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Qaa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Oaa=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Paa=/^http:\/\/.*/,Naa=/\s+/,Raa=/[\d\u06f0-\u06f9]/;Wd.prototype.sg=!0;Wd.prototype.Cf=function(){return this.g};
Wd.prototype.toString=function(){return"Const{"+this.g+"}"};
var Vd={};Yd("");$d.prototype.sg=!0;var Zd={};$d.prototype.Cf=function(){return this.g};
var Vaa=ae(""),Uaa=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;ce.prototype.sg=!0;ce.prototype.Cf=function(){return this.g};
ce.prototype.Nn=!0;ce.prototype.Qg=function(){return 1};
var Saa=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,be={};ee("about:blank");he.prototype.sg=!0;he.prototype.Cf=function(){return this.g};
he.prototype.Nn=!0;he.prototype.Qg=function(){return 1};
var ge={};le.prototype.Nn=!0;le.prototype.Qg=function(){return this.o};
le.prototype.sg=!0;le.prototype.Cf=function(){return this.g};
var pe=/^[a-zA-Z0-9-]+$/,Waa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},fqa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},ke={};ne("<!DOCTYPE html>",0);ne("",0);ne("<br>",0);g.h=xe.prototype;g.h.clone=function(){return new xe(this.x,this.y)};
g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.h.scale=function(a,b){var c=g.qa(b)?b:a;this.x*=a;this.y*=c;return this};g.h=g.ze.prototype;g.h.clone=function(){return new g.ze(this.width,this.height)};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!(this.width*this.height)};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){var c=g.qa(b)?b:a;this.width*=a;this.height*=c;return this};var aba=!g.Me||pc(9),cba=!Pi&&!g.Me||g.Me&&pc(9)||Pi&&g.oc("1.9.1");g.Me&&g.oc("9");var dba=g.Me||g.rc||qc;var Je={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=Ce.prototype;g.h.oa=function(a){return g.y(a)?this.g.getElementById(a):a};
g.h.getElementsByTagName=function(a,b){return(b||this.g).getElementsByTagName(String(a))};
g.h.DB=function(a,b,c){return Pe(this.g,arguments)};
g.h.createElement=function(a){return this.g.createElement(String(a))};
g.h.appendChild=Ue;g.h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.h.removeNode=g.Ye;g.h.contains=g.df;var wf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},fba=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;g.h=xf.prototype;g.h.yb=function(){return this.right-this.left};
g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new xf(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof xf?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.h.expand=function(a,b,c,d){g.sa(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};
g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.h.scale=function(a,b){var c=g.qa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};g.h=g.yf.prototype;g.h.clone=function(){return new g.yf(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof xe?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){var c=g.qa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};g.C(Cf,g.L);g.h=Cf.prototype;g.h.subscribe=function(a,b,c){var d=this.o[a];d||(d=this.o[a]=[]);var e=this.od;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.od=e+3;d.push(e);return e};
g.h.Ad=function(a){var b=this.g[a];if(b){var c=this.o[b];0!=this.B?(this.A.push(a),this.g[a+1]=g.v):(c&&g.eb(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b};
g.h.oc=function(a,b){var c=this.o[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.C)for(e=0;e<c.length;e++){var k=c[e];hba(this.g[k+1],this.g[k+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.g[k+1].apply(this.g[k+2],d)}finally{if(this.B--,0<this.A.length&&0==this.B)for(;c=this.A.pop();)this.Ad(c)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.o[a];b&&((0,g.H)(b,this.Ad,this),delete this.o[a])}else this.g.length=0,this.o={}};
g.h.xc=function(a){if(a){var b=this.o[a];return b?b.length:0}a=0;for(b in this.o)a+=this.xc(b);return a};
g.h.R=function(){Cf.M.R.call(this);this.clear();this.A.length=0};var Ff="StopIteration"in r?r.StopIteration:{message:"StopIteration",stack:""};Ef.prototype.next=function(){throw Ff;};
Ef.prototype.rd=function(){return this};g.h=If.prototype;g.h.xc=function(){return this.Ga};
g.h.$a=function(){Lf(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.o[this.g[b]]);return a};
g.h.rb=function(){Lf(this);return this.g.concat()};
g.h.isEmpty=function(){return 0==this.Ga};
g.h.clear=function(){this.o={};this.Tf=this.Ga=this.g.length=0};
g.h.remove=function(a){return Jf(this.o,a)?(delete this.o[a],this.Ga--,this.Tf++,this.g.length>2*this.Ga&&Lf(this),!0):!1};
g.h.get=function(a,b){return Jf(this.o,a)?this.o[a]:b};
g.h.set=function(a,b){Jf(this.o,a)||(this.Ga++,this.g.push(a),this.Tf++);this.o[a]=b};
g.h.forEach=function(a,b){for(var c=this.rb(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new If(this)};
g.h.rd=function(a){Lf(this);var b=0,c=this.Tf,d=this,e=new Ef;e.next=function(){if(c!=d.Tf)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)throw Ff;var e=d.g[b++];return a?e:d.o[e]};
return e};var jba=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,cg=/#|$/,kba=/[?&]($|#)/;g.h=gg.prototype;g.h.toString=function(){var a=[],b=this.B;b&&a.push(og(b,d7,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(og(b,d7,!0),"@"),a.push(Ba(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.A)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(og(c,"/"==c.charAt(0)?gqa:hqa,!0));(c=this.g.toString())&&a.push("?",c);(c=this.lg())&&a.push("#",og(c,iqa));return a.join("")};
g.h.resolve=function(a){var b=this.clone(),c=!!a.B;c?hg(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?g.ig(b,a.o):c=null!=a.C;var d=a.A;if(c)g.jg(b,a.C);else if(c=!!a.A){if("/"!=d.charAt(0))if(this.o&&!this.A)d="/"+d;else{var e=b.A.lastIndexOf("/");-1!=e&&(d=b.A.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Fa(e,"./")||Fa(e,"/.")){for(var d=g.za(e,"/"),e=e.split("/"),f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&k==e.length&&
f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?kg(b,d):c=""!==a.g.toString();c?lg(b,a.g.clone()):c=!!a.H;c&&(b.H=a.lg());return b};
g.h.clone=function(){return new gg(this)};
g.h.ts=function(){return this.g.toString()};
g.h.lg=function(){return this.H};
var d7=/[#\/\?@]/g,hqa=/[\#\?:]/g,gqa=/[\#\?]/g,mba=/[\#\?@]/g,iqa=/#/g;g.h=ng.prototype;g.h.xc=function(){vg(this);return this.Ga};
g.h.remove=function(a){vg(this);a=xg(this,a);return Kf(this.g,a)?(this.o=null,this.Ga=this.Ga-this.g.get(a).length,this.g.remove(a)):!1};
g.h.clear=function(){this.g=this.o=null;this.Ga=0};
g.h.isEmpty=function(){vg(this);return 0==this.Ga};
g.h.rb=function(){vg(this);for(var a=this.g.$a(),b=this.g.rb(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.h.$a=function(a){vg(this);var b=[];if(g.y(a))yg(this,a)&&(b=ib(b,this.g.get(xg(this,a))));else{a=this.g.$a();for(var c=0;c<a.length;c++)b=ib(b,a[c])}return b};
g.h.set=function(a,b){vg(this);this.o=null;a=xg(this,a);yg(this,a)&&(this.Ga=this.Ga-this.g.get(a).length);this.g.set(a,[b]);this.Ga=this.Ga+1;return this};
g.h.get=function(a,b){var c=a?this.$a(a):[];return 0<c.length?String(c[0]):b};
g.h.toString=function(){if(this.o)return this.o;if(!this.g)return"";for(var a=[],b=this.g.rb(),c=0;c<b.length;c++)for(var d=b[c],e=Ba(d),d=this.$a(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+Ba(d[f]));a.push(k)}return this.o=a.join("&")};
g.h.clone=function(){var a=new ng;a.o=this.o;this.g&&(a.g=this.g.clone(),a.Ga=this.Ga);return a};g.Ag=void 0;var wa;g.Yg=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.ka("yt.config_",g.Yg,void 0);var fh=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.ka("yt.msgs_",fh,void 0);wa=function(a,b){var c=b||{},d=a in fh?fh[a]:a;if(d)for(var e in c)var f=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),f),d=d.replace(new RegExp("\\$"+e,"gi"),f);return d};
g.Ok=window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};var kh={};g.C(lh,g.L);lh.prototype.L=function(a){if(!("*"!=this.o&&a.origin!=this.o||this.A&&a.source!=this.A)&&g.y(a.data)){var b;try{b=g.pf(a.data)}catch(c){return}if(!(null==b||this.J&&(this.sessionId&&this.sessionId!=b.id||this.channel&&this.channel!=b.channel))&&b)switch(b.event){case "syn":mh(this,a);th(this);this.sendMessage({event:"ack"});break;case "ack":mh(this,a);th(this);break;case "command":a=b.func,a in this.D&&this.D[a].apply(null,b.args)}}};
lh.prototype.sendMessage=function(a,b){var c=b||this.A;if(c){this.sessionId&&(a.id=this.sessionId);this.channel&&(a.channel=this.channel);try{var d=g.tf(a);c.postMessage(d,this.G)}catch(e){eh(e,"WARNING")}}};
lh.prototype.R=function(){window.removeEventListener("message",this.F);lh.M.R.call(this)};var nh=qc?"webkit":Pi?"moz":g.Me?"ms":g.rc?"o":"",e7=u("yt.dom.getNextId_");if(!e7){e7=function(){return++jqa};
g.ka("yt.dom.getNextId_",e7,void 0);var jqa=0};g.C(rh,lh);rh.prototype.g=function(a,b){var c={event:"command",func:a},d=Array.prototype.slice.call(arguments,1);0<d.length&&(c.args=d);this.H?this.sendMessage(c):100>this.B.length&&this.B.push(c)};var sba={enablejsapi:1},tba={},uba={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};yh.prototype.clone=function(){var a=new yh,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ma(c)?a[b]=Wb(c):a[b]=c}return a};var kqa={},Kh=/\s*;\s*/;g.h=Jh.prototype;g.h.isEnabled=function(){return window.navigator.cookieEnabled};
g.h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');g.p(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date((0,g.G)()+1E3*c)).toUTCString();this.g.cookie=a+"="+b+e+d+c+f};
g.h.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(Kh),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=g.p(this.get(a));this.set(a,"",0,b,c);return d};
g.h.rb=function(){return Lh(this).keys};
g.h.$a=function(){return Lh(this).values};
g.h.isEmpty=function(){return!this.g.cookie};
g.h.xc=function(){return this.g.cookie?(this.g.cookie||"").split(Kh).length:0};
g.h.clear=function(){for(var a=Lh(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var ho=new Jh("undefined"==typeof window.document?null:window.document);ho.o=3950;var ii=null;"undefined"!=typeof window.XMLHttpRequest?ii=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(ii=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var qx,px,rx,hv;g.dv=fc("Firefox");qx=kc()||fc("iPod");px=fc("iPad");rx=fc("Android")&&!(hc()||fc("Firefox")||fc("Opera")||fc("Silk"));g.Uh=hc();hv=ic()&&!lc();var Ck=qx||px;var lqa=u("yt.pubsub.instance_")||new Cf;Cf.prototype.subscribe=Cf.prototype.subscribe;Cf.prototype.unsubscribeByKey=Cf.prototype.Ad;Cf.prototype.publish=Cf.prototype.oc;Cf.prototype.clear=Cf.prototype.clear;g.ka("yt.pubsub.instance_",lqa,void 0);var $h=u("yt.pubsub.subscribedKeys_")||{};g.ka("yt.pubsub.subscribedKeys_",$h,void 0);var bi=u("yt.pubsub.topicToKeys_")||{};g.ka("yt.pubsub.topicToKeys_",bi,void 0);var ai=u("yt.pubsub.isSynchronous_")||{};g.ka("yt.pubsub.isSynchronous_",ai,void 0);
var Zh=u("yt.pubsub.skipSubId_")||null;g.ka("yt.pubsub.skipSubId_",Zh,void 0);var ki={"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-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};var pi={},Gba=0;g.C(qi,ya);qi.prototype.name="PromiseAjaxError";var Iba,yi;Iba={UN:"auto",lT:"tiny",CQ:"light",SS:"small",Hz:"medium",zQ:"large",WP:"hd720",SP:"hd1080",TP:"hd1440",UP:"hd2160",VP:"hd2880",bQ:"highres",UNKNOWN:"unknown"};g.zi={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320};yi="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var Afa={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};vi.prototype.o=function(){return null};
vi.prototype.A=function(){return!1};var Hba={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",140:"a",327:"sa",258:"m",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",149:"A",261:"M",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",336:"9h",337:"9h",171:"v",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",
279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"("};var ix={name:"width",video:!0,valid:640,dh:99999},jx={name:"height",video:!0,valid:360,dh:99999},hx={name:"framerate",video:!0,valid:30,dh:9999},Ft={name:"bitrate",video:!0,valid:3E5,dh:2E9},kx={name:"eotf",video:!0,valid:"bt709",dh:"catavision"},dx={name:"channels",video:!1,valid:2,dh:99},lx={zj:ix,tj:jx,OP:hx,Np:Ft,DP:kx,wO:dx};xi.prototype.getName=function(){return this.name};
xi.prototype.getId=function(){return this.id};
xi.prototype.g=function(){return this.isDefault};
xi.prototype.toString=function(){return this.name};
xi.prototype.getName=xi.prototype.getName;xi.prototype.getId=xi.prototype.getId;xi.prototype.getIsDefault=xi.prototype.g;Ai.prototype.A=1.3;var zU=Ji("auto","large",!1),Li=Ji("auto","auto",!1);Ii.prototype.isLocked=function(){return this.A&&!!this.o&&this.o==this.g};
Ii.prototype.B=function(a){return a.video?Oi(this,a.video.quality):!1};var Ti={},Lba=/[^\d]+$/,Mba={cm:1,"in":1,mm:1,pc:1,pt:1},Nba={em:1,ex:1};var e2=16/9,mqa=[.25,.5,1,1.25,1.5,2];g.qj.prototype.set=function(a,b){g.p(b)?this.g.set(a,g.tf(b)):this.g.remove(a)};
g.qj.prototype.get=function(a){var b;try{b=this.g.get(a)}catch(c){return}if(null!==b)try{return g.pf(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.qj.prototype.remove=function(a){this.g.remove(a)};g.C(rj,g.qj);rj.prototype.set=function(a,b){rj.M.set.call(this,a,tj(b))};
rj.prototype.o=function(a){a=rj.M.get.call(this,a);if(!g.p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
rj.prototype.get=function(a){if(a=this.o(a)){if(a=a.data,!g.p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.C(uj,rj);uj.prototype.set=function(a,b,c){if(b=tj(b)){if(c){if(c<(0,g.G)()){uj.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.G)()}uj.M.set.call(this,a,b)};
uj.prototype.o=function(a,b){var c=uj.M.o.call(this,a);if(c)if(!b&&vj(c))uj.prototype.remove.call(this,a);else return c};g.C(wj,uj);g.C(zj,Qba);zj.prototype.xc=function(){var a=0;Hf(this.rd(!0),function(){a++});
return a};
zj.prototype.clear=function(){var a=iba(this.rd(!0)),b=this;(0,g.H)(a,function(a){b.remove(a)})};g.C(Aj,zj);g.h=Aj.prototype;g.h.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.g.getItem(a);if(!g.y(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.g.removeItem(a)};
g.h.xc=function(){return this.g.length};
g.h.rd=function(a){var b=0,c=this.g,d=new Ef;d.next=function(){if(b>=c.length)throw Ff;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!g.y(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
g.h.clear=function(){this.g.clear()};
g.h.key=function(a){return this.g.key(a)};g.C(Bj,zj);Bj.prototype.set=function(a,b){this.o.set(this.g+a,b)};
Bj.prototype.get=function(a){return this.o.get(this.g+a)};
Bj.prototype.remove=function(a){this.o.remove(this.g+a)};
Bj.prototype.rd=function(a){var b=this.o.rd(!0),c=this,d=new Ef;d.next=function(){for(var d=b.next();d.substr(0,c.g.length)!=c.g;)d=b.next();return a?d.substr(c.g.length):c.o.get(d)};
return d};g.C(Cj,Aj);g.C(Dj,Aj);var yj,f7=new Cj;yj=f7.isAvailable()?new wj(f7):null;var Fj,g7=new Dj;Fj=g7.isAvailable()?new wj(g7):null;Lj.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Lj.prototype.xt=function(){return this.event?!1===this.event.returnValue:!1};
Lj.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Lj.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
var Vba={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};var Nj=(0,g.G)().toString();var Tj=u("yt.events.listeners_")||{};g.ka("yt.events.listeners_",Tj,void 0);var Uj=u("yt.events.counter_")||{count:0};g.ka("yt.events.counter_",Uj,void 0);var Ww,bx;var h7=ec,h7=h7.toLowerCase();if(Fa(h7,"android")){var i7=h7.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(i7)Ww=Number(i7[1]);else{var j7={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},k7=h7.match("("+g.Ob(j7).join("|")+")");Ww=k7?j7[k7[0]]:0}}else Ww=void 0;bx=0<=Ww;var l7=ec,m7=l7.match(/\((BB10|PlayBook|BlackBerry);/);!m7||2>m7.length||l7.match(/Version\/(\d+\.\d+)/);ec.match(/Mozilla\/[\d\.]+ \(Mobile;.* rv:([\d\.]+)\) Gecko\/[\d\.]+ Firefox\/[\d\.]+/);var zk,yk;var n7=ec,o7=n7.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!o7||2>o7.length)zk=void 0;else{var p7=n7.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);zk=p7&&6==p7.length?Number(p7[5].replace("_",".")):0}(yk=0<=zk)&&0<=ec.search("Safari")&&ec.search("Version");sk.prototype.dispose=function(){if(!this.A){if(this.o)try{window.URL.revokeObjectURL(this.g)}catch(a){}this.A=!0}};
sk.prototype.isDisposed=function(){return this.A};var nqa=yk&&4>zk?.1:0,Npa=new tk;tk.prototype.g=null;tk.prototype.getDuration=function(){return this.duration||0};
tk.prototype.getCurrentTime=function(){return this.currentTime||0};
tk.prototype.o=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.C(uk,g.L);g.h=uk.prototype;g.h.Zr=function(a,b){this.Fh()||this.getCurrentTime()>a||10<b||(this.play(),g.ah((0,g.z)(this.Zr,this,this.getCurrentTime(),b+1),500))};
g.h.addEventListener=function(a,b,c,d){this.B.S(a,b,!1,d);this.Rr(a)};
g.h.removeEventListener=function(a,b,c,d){this.B.Ca(a,b,!1,d)};
g.h.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.h.wr=function(){this.C&&!this.zp()&&this.oj(!0)};
g.h.R=function(){this.D&&this.removeEventListener("volumechange",this.wr,!1,this);uk.M.R.call(this)};g.C(Hk,ac);Hk.prototype.preventDefault=function(){Hk.M.preventDefault.call(this);this.g&&this.g.preventDefault()};
Hk.prototype.stopPropagation=function(){Hk.M.stopPropagation.call(this);this.g&&this.g.stopPropagation()};var Tna={ON:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"ERROR_AUTHENTICATION_EXPIRED",SN:"ERROR_AUTHENTICATION_MALFORMED",TN:"ERROR_AUTHENTICATION_MISSING",XN:"ERROR_BAD_REQUEST",jO:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",tO:"ERROR_CGI_PARAMS_MALFORMED",uO:"ERROR_CGI_PARAMS_MISSING",eP:"YTP_DEVICE_FALLBACK",EP:"YTP_ERROR_LICENSE",JP:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",NP:"YTP_ERROR_FORMAT_UNAVALIABLE",PP:"YTP_ERROR_GEO_FAILURE",dQ:"YTP_ERROR_GENERIC_WITHOUT_LINK",fQ:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
eQ:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",uQ:"YTP_ERROR_INVALID_DRM_MESSAGE",BQ:"LEARN_MORE",DR:"YTP_ERROR_NOT_SIGNED_IN",iS:"YTP_ERROR_PURCHASE_NOT_FOUND",jS:"YTP_ERROR_PURCHASE_REFUNDED",pS:"YTP_ERROR_RENTAL_EXPIRED",oO:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",pO:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",rO:"YTP_ERROR_CAST_TOKEN_FAILED",qO:"YTP_ERROR_CAST_TOKEN_EXPIRED",sO:"YTP_ERROR_CAST_TOKEN_MALFORMED",HS:"YTP_ERROR_SERVER_ERROR",$S:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",bT:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
cT:"YTP_ERROR_STREAMING_NOT_ALLOWED",dT:"YTP_ERROR_STREAMING_UNAVAILABLE",wS:"YTP_ERROR_RETRYABLE_ERROR",qT:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",pT:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",GT:"YTP_ERROR_UNSUPPORTED_DEVICE",HT:"YTP_ERROR_UNUSUAL_ACTIVITY",ST:"YTP_ERROR_VIDEO_FORBIDDEN",UT:"YTP_ERROR_VIDEO_NOT_FOUND"},aca={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",
305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",5102:"ERROR_AUTHENTICATION_EXPIRED",
5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};Kk.prototype.gb=function(){return g.T(this,8)&&!g.T(this,64)&&!g.T(this,2)};
Kk.prototype.isError=function(){return g.T(this,128)};var q7={"api.invalidparam":2,auth:150,"drm.auth":150,"heartbeat.net":150,"heartbeat.servererror":150,"heartbeat.stop":150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"html5.unsupportedlive":5,"drm.unavailable":5};g.C(Wk,g.L);g.h=Wk.prototype;g.h.LJ=function(){return g.Ob(this.B)};
g.h.MJ=function(){return g.Ob(this.C)};
g.h.oa=function(){return this.o};
g.h.addEventListener=function(a,b){if(g.y(b)){var c=b,d=function(){u(c).apply(window,arguments)};
b=this.F[c]=d}this.app.Z.subscribe(a,b)};
g.h.kB=function(a,b){var c=g.y(b)?a+b:a+ua(b);if(!this.D[c]){var d;g.y(b)?d=function(){u(b).apply(window,arguments)}:d=b;
var e=(0,g.z)(function(a){d({target:this.A,data:a})},this);
this.D[c]=e;this.app.Z.subscribe(a,e)}};
g.h.removeEventListener=function(a,b){if(g.y(b)){var c=this.F[b];Ub(this.F,b);b=c}Df(this.app.Z,a,b)};
g.h.lB=function(a,b){var c=g.y(b)?a+b:a+ua(b),d=this.D[c];d&&(Df(this.app.Z,a,d),Ub(this.D,c))};
g.h.fj=function(){return u6(this.app)};
g.h.Ec=function(a,b){this.g&&D6(this.app,!0,this.playerType);Q6(this.app,a,b,void 0,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.NJ=function(){var a=g.el(this.app,this.playerType);if(!a)return 0;a=yV(a);return(0,window.isNaN)(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.N.volume};
g.h.setVolume=function(a){a=g.te(Math.floor(a),0,100);(0,window.isFinite)(a)&&m6(this.app,{volume:a,muted:this.Bd()})};
g.h.Bd=function(){return this.app.N.muted};
g.h.mute=function(){m6(this.app,{muted:!0,volume:this.getVolume()})};
g.h.Vf=function(){m6(this.app,{muted:!1,volume:Math.max(5,this.getVolume())})};
g.h.Ye=function(){this.g&&D6(this.app,!0,this.playerType);var a=dl(this.app);2==a?(a=this.app.D.P)&&a.kf("control_play"):3==a?this.app.D.G.kf("control_play"):RY(this.app,this.playerType)};
g.h.fd=function(){var a=dl(this.app);2==a?(a=this.app.D.P)&&a.kf("control_pause"):3==a?this.app.D.G.kf("control_pause"):TY(this.app,this.playerType)};
g.h.Dh=function(){var a=this.app;a.W.la&&(a.g.isFullscreen()&&g.jl(a.g),a.g.Ra("pageTransition"));P6(a)};
g.h.HJ=function(){};
g.h.OJ=function(){return this.app.o.H};
g.h.hj=function(a){r6(this.app,a)};
g.h.dj=function(){return this.app.W.Oa?mqa:[1]};
g.h.Bl=function(){var a=g.el(this.app,this.playerType);return a&&(a=a.getVideoData().A)?a.video.quality:"unknown"};
g.h.Dl=function(a){if(!this.app.W.isMobile){var b=g.el(this.app,this.playerType);b&&uV(b,"p",Ji(a,a,!0))}};
g.h.rw=function(){var a=g.el(this.app,this.playerType);return a?(a=(0,g.S)(sV(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.QJ=function(){return this.jp()};
g.h.RJ=function(){return 1};
g.h.jp=function(){return f6(this.app)};
g.h.SJ=function(){return 0};
g.h.setSize=function(){this.app.B.$f()};
g.h.yw=function(a){I6(this.app,a?2:1)};
g.h.zw=function(a){I6(this.app,a)};
g.h.FJ=function(){this.app.g.ya("SUBSCRIBE")};
g.h.GJ=function(){this.app.g.ya("UNSUBSCRIBE")};
g.h.kp=function(a){if("captions"==a||"iv-module"==a){var b=this.app.D;"captions"==a&&b.g&&!b.g.loaded?b.g.load():(a=$y(b,a))&&!a.loaded&&a.load()}};
g.h.Bw=function(a){if("captions"==a||"iv-module"==a){var b=this.app.D;"captions"==a&&b.g&&b.g.loaded?b.g.SI():(a=$y(b,a))&&a.loaded&&a.unload()}};
g.h.WJ=function(a,b,c){a=A6(this.app,ik(a,b,c),this.playerType);this.g&&D6(this.app,a,this.playerType)};
g.h.JJ=function(a,b,c){F6(this.app,ik(a,b,c),this.playerType)};
g.h.XJ=function(a,b,c){a=jk(a,b,c);b=A6(this.app,a,this.playerType);this.g&&D6(this.app,b,this.playerType);b=this.app;(a=(new gg(a.mediaContentUrl)).g)&&Ax(b.W,a)};
g.h.KJ=function(a,b,c){b=jk(a,b,c);F6(this.app,b,this.playerType);a=this.app;(b=(new gg(b.mediaContentUrl)).g)&&Ax(a.W,b)};
g.h.getVideoUrl=function(){var a=this.app.W;if(a.J)return"";var b=DY(this.app),c=void 0;b.o||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.Xe()||void 0,c)};
g.h.ej=function(){return t6(this.app)};
g.h.uw=function(){var a=this.app.W;if(a.J)a="";else{var b=DY(this.app).videoId,c=this.app.B.Sa(),d=this.Xe()||void 0,b="https://"+Ex(a)+"/embed/"+b;d&&(b=g.ag(b,{list:d}));d=b;b=c.width;c=c.height;a.experiments.g("legacy_embed_snippet")?a='<iframe width="'+b+'" height="'+c+'" src="'+Da(d)+'" frameborder="0" allowfullscreen></iframe>':(a=Math.round(360*b/c),a='<div style="position:relative;height:0;padding-bottom:'+Math.round(1E4*c/b)/100+'%"><iframe src="'+Da(d)+'" style="position:absolute;width:100%;height:100%;left:0" width="'+
a+'" height="360" frameborder="0" allowfullscreen></iframe></div>')}return a};
g.h.pw=function(a,b,c){return L6(this.app,a,b,c)};
g.h.xw=function(a){a:{for(var b=this.app,c=b.o.C.g.g||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.o.C.D(e);Fl(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.h.VJ=function(a,b,c,d){var e=this.app;e.da=!1;G6(e,a,b,c,d);this.g&&D6(this.app,!0,this.playerType)};
g.h.IJ=function(a,b,c,d){var e=this.app;e.da=!0;G6(e,a,b,c,d)};
g.h.gj=function(){J6(this.app);this.g&&D6(this.app,!0,this.playerType)};
g.h.Cl=function(){K6(this.app);this.g&&D6(this.app,!0,this.playerType)};
g.h.ww=function(a){var b=this.app;!b.V||b.g.isFullscreen()&&!b.wa?b.A&&(b.A.C?z6(b,b.A.Qb(a),1):b.da=!1,uy(b.A,a)):b.g.ya("onPlaylistIndex",a);this.g&&D6(this.app,!0,this.playerType)};
g.h.$J=function(a){var b=this.app.A;b&&py(b,a)};
g.h.ZJ=function(a){var b=this.app.A;b&&(b.G=a)};
g.h.je=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.B;c++){var d=a.Qb(c);d&&b.push(d.videoId)}return b};
g.h.tw=function(){var a=this.app.A;return a?a.g:-1};
g.h.Xe=function(){var a=this.app.A;return a&&a.listId?a.listId.toString():null};
g.h.Ze=function(a,b,c){return S6(this.app,a,b,c)};
g.h.Dc=function(a,b,c){return S6(this.app,a,b,c)};
g.h.Al=function(a){return T6(this.app,a)};
g.h.getVideoData=function(){var a={},b=g.el(this.app,this.playerType);if(b&&(b=b.getVideoData(),a.video_id=b.videoId,a.author=b.author,a.title=b.title,b.A)){a.video_quality=b.A.video.quality;var b=b.A.video,c=[];32<b.fps&&c.push("hfr");"smpte2084"!=b.g&&"arib-std-b67"!=b.g||c.push("hdr");"bt2020"==b.primaries&&c.push("wcg");a.video_quality_features=c}(b=this.Xe())&&(a.list=b);return a};
g.h.Aw=function(){Y5(this.app,!0)};
g.h.TJ=function(){Y5(this.app,!1)};
g.h.qw=function(){var a=this.app;return a.G?a.G.up():-1};
g.h.UJ=function(a){if(a!=this.app.ba.args.video_id)return!1;a=(a=g.el(this.app,1))?a.A:null;return!(!a||!g.T(a,128)||5!=q7[a.g.errorCode])};
g.h.PJ=function(){var a=this.app.ba.clone();g.va(a.args,ly(DY(this.app)));return a};
g.h.aK=function(){this.app.W.experiments.g("player_interaction_logging")&&this.app.ca.resume()};
g.h.destroy=function(){this.app.dispose()};
g.h.YJ=function(){var a=g.el(this.app);a&&!g.T(a.A,128)&&(a.$("internalAbandon"),QU(a),OU(a))};
g.h.R=function(){if(this.o){for(var a in this.B)this.o[a]=null;for(a in this.C)this.o[a]=null;this.o=null}this.F=this.D=null;Wk.M.R.call(this)};g.C(Xk,Wk);g.h=Xk.prototype;g.h.Za=function(){return dl(this.app)};
g.h.pw=function(a,b,c,d,e){return L6(this.app,a,b,c,d,e)};
g.h.bK=function(a,b,c){Gw(this.app.W.O,a,{fg:b,yh:c})};
g.h.dK=function(a,b){F6(this.app,a,b||this.playerType)};
g.h.fj=function(a){return u6(this.app,a)};
g.h.El=function(a,b,c){A6(this.app,a,c||this.playerType,b)};
g.h.Fw=function(a,b){var c=this.app,d=b||this.playerType;if(c.W.experiments.g("html5_new_preloading")){if(d=d||1,!c.la.get(d+Mv(a))){var e=new g.Sx(a);B6(c,e,d)}}else d&&1!=d||c.J&&c.J.getVideoData().videoId==a.videoId||(d=new g.Sx(a),c.J&&c.J.getVideoData().videoId==d.videoId||(d.Cd=!0,c.J||(c.J=new MU(c.W,1,c.H,c.B,(0,g.z)(c.O.oc,c.O))),UU(c.J,d,(0,g.z)(c.bj,c)),XU(c.J,!0)))};
g.h.gj=function(a,b){J6(this.app,a,b)};
g.h.Cl=function(a){K6(this.app,a)};
g.h.ke=function(a,b,c){Q6(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.zK=function(a){if(a){var b=this.Xe();if(!b||b==a.list){var c=a.video;(b=this.app.A)?this.app.Kb.isFullscreen()&&((c=c[b.g])&&c.encrypted_id!=b.Qb().videoId||(a.index=b.g)):h6(this.app,{list:a.list,index:a.index,playlist_length:c.length});vy(this.app.A,a)}}else a=this.app,i6(a),a.g.ya("onPlaylistUpdate")};
g.h.yK=function(){fk()};
g.h.AK=function(a,b){var c=g.el(this.app,this.playerType||1);c&&(c=c.getVideoData(),b?(Tx(c,a),iy(c)&&$x(c)):(Vx(c,a),c.$("dataupdated")))};
g.h.iK=function(){return this.app.getVideoData().la};
g.h.kK=function(){var a=this.app.getVideoData();return a.C.storyboard_spec||a.C.live_storyboard_spec};
g.h.gK=function(){var a=this.app.W;return{Ic:a.Ic,kb:a.kb}};
g.h.getVideoData=function(){var a=Xk.M.getVideoData.call(this),b=g.el(this.app,this.playerType);b&&(b=b.getVideoData(),a.backgroundable=b.backgroundable,a.cpn=b.clientPlaybackNonce,a.isLive=b.o,a.itct=b.Fc,a.paidContentOverlayText=b.paidContentOverlayText,a.paidContentOverlayDurationMs=b.paidContentOverlayDurationMs);return a};
g.h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):Xk.M.getCurrentTime.call(this)};
g.h.getDuration=function(a){return a?this.app.getDuration(a):Xk.M.getDuration.call(this)};
g.h.Wf=function(){if(3==this.Za()){var a=this.app.D.G,b=hl(a.o),c=a.g.getVideoData(),d=Cl(a.g),e=c.clipEnd,c=c.clipStart,f=a.getCurrentTime(),k=b.getDuration(),l;l=b.J?b.B+((0,g.G)()-b.A)/1E3:b.B;var a=1>=Q0(b)-a.getCurrentTime(),m=b.L,n=Q0(b),b=0<b.C?b.C+((0,g.G)()-b.A)/1E3:b.C;return{allowSeeking:d,clipEnd:e,clipStart:c,current:f,displayedStart:-1,duration:k,ingestionTime:l,isPeggedToLive:a,loaded:m,seekableEnd:n,seekableStart:b}}c=this.app.getVideoData();d=g.el(this.app);e=Cl(this.app.Kb);b=c.clipEnd;
c=c.clipStart;f=this.getCurrentTime();k=this.getDuration();l=yV(d);a=d.isPeggedToLive();(m=g.el(this.app,void 0))?(n=Ek(m.o),m=(0,window.isNaN)(n)?m.getCurrentTime():n):m=0;return{allowSeeking:e,clipEnd:b,clipStart:c,current:f,displayedStart:-1,duration:k,ingestionTime:l,isPeggedToLive:a,loaded:m,seekableEnd:zV(d,!0),seekableStart:fy(d.g)}};
g.h.jp=function(a){return f6(this.app,a)};
g.h.cK=function(a){return!!dr().canPlayType(a)};
g.h.Iw=function(a,b){var c=g.el(this.app,this.playerType);if(c){b=b||a;var d=Ji(a,b,!0);g.Gj("yt-player-quality",b,2592E3);uV(c,"m",d)}};
g.h.fK=function(){return gy(this.app.getVideoData(),this.app.getCurrentTime())};
g.h.Ag=function(a){var b=this.app,c=g.el(b,this.playerType);c&&b.W.Db.contains(a.toString())&&c.sa&&(b=Yn(c.sa,"engage"),b.B=a,b.send(void 0))};
g.h.kj=function(a,b,c){var d=tl(this.app.D);d&&ul(d)&&Gs(d,a,b,c)};
g.h.lK=function(a,b){var c=this.app.D.D;c&&c.V&&o3(c.V,a,b)};
g.h.ij=function(){return s6(this.app,this.playerType)};
g.h.Hw=function(a){var b=this.app,c=this.playerType;3==dl(b)&&b.L.kf("control_set_audio_track",a);if(c=b=g.el(b,c))if(c=!b.isDisposed()&&!g.T(b.A,128)&&b.g.B.g){c=b.B;if(c.isDisposed())a=!0;else{var d=c.F;a=a.id;d.F="m";d.B=d.G.g[a];d.O=d.B;a=new oS(d.O,d.A,d.F);c.ka("Logging new audio format: "+a.audio.info.id);c.$("audioformatchange",a);c.o&&!c.o.g.remove?a=!1:(LT(c),eT(c.g),eT(c.A),cU(c),a=!0)}c=!a}c&&(rV(b),pV(b))};
g.h.Cw=function(){var a=g.el(this.app,this.playerType);return a.g.B?a.g.B.audioTracks:[]};
g.h.hK=function(){var a=g.el(this.app,this.playerType);return a&&a.getVideoData().A?g.Ni(EU(a.ra,a.g)):"unknown"};
g.h.tK=function(a,b){R6(this.app,a,b)};
g.h.eK=function(){var a=this.app.D.C;a&&a.qB()};
g.h.wK=function(){var a=this.app.D.D;a.wa=!1;a.zh()};
g.h.mK=function(){var a=this.app.D.D;a.wa=!0;a.zh()};
g.h.Ew=function(){return oj(this.app.W)};
g.h.vK=function(){return!0};
g.h.Dw=function(a){return g.ls(this.app.B,a)};
g.h.sK=function(a){this.app.W.enableSafetyMode=a};
g.h.qK=function(a){uh();O6(this.app,a?2:0)};
g.h.jr=function(){var a=g.el(this.app);a&&xV(a);(a=this.app.D.B)&&a.qD()&&g.cl(this.app.Kb,!0)};
g.h.Dh=function(){var a=this.app.W;!a.experiments.g("disable_new_pause_state3")&&Gx(a)&&"blazer"!=a.o?this.jr():Xk.M.Dh.call(this)};
g.h.ys=function(){return AV(g.el(this.app,this.playerType),!0)};
g.h.lp=function(a){this.app.D.g.Mo(a,!0)};
g.h.jj=function(){var a=this.app.D.g;return a?a.an():null};
g.h.Gw=function(){this.app.D.g.Yu()};
g.h.nK=function(){var a=g.el(this.app,this.playerType);if(!a)return!1;a=a.getVideoData();return!!a&&g.wl(a)&&!!a.A&&a.A.video.isAccelerated&&a.A.video.o};
g.h.isPeggedToLive=function(){return this.app.isPeggedToLive()};
g.h.rK=function(a){var b=this.app;b.W.Ib=a;b.g.Ra("minimized")};
g.h.ej=function(a){return t6(this.app,a)};
g.h.jK=function(){var a=this.app.D.o;if(!a)return{};a=a.Tw();return"Spherical"!=a.shader&&"Spherical3D"!=a.shader?{}:{yaw:g.ue(180*(a.yaw||0)/Math.PI,360),pitch:180*(a.pitch||0)/Math.PI}};
g.h.uK=function(a){var b=this.app.D.o;if(b){var c={shader:"Spherical"};g.qa(a.yaw)&&!(0,window.isNaN)(a.yaw)&&(c.yaw=g.ue(a.yaw,360)*Math.PI/180);g.qa(a.pitch)&&!(0,window.isNaN)(a.pitch)&&(c.pitch=g.te(a.pitch,-90,90)*Math.PI/180);b.Uw(c)}};
g.h.pK=function(a){var b=this.app;b.W.Ig=a;b.C&&g.fV(b.C)};
g.h.Ra=function(a,b){this.app.W.kb&&("videodatachange"==a||"audiotrackchanged"==a||"resize"==a||"cardstatechange"==a)&&this.app.Z.oc.apply(this.app.Z,arguments);this.app.O.oc.apply(this.app.O,arguments)};
g.h.oK=function(){};
g.h.xK=function(){this.app.g.ya("settingsmenutoggle")};g.C(Yk,Xk);g.h=Yk.prototype;g.h.getRootNode=function(){return g.gl(this).element};
g.h.je=function(){return this.app.A};
g.h.getVideoData=function(a){return(a=g.el(this.app,a||this.playerType))&&a.getVideoData()};
g.h.isFullscreen=function(){return this.app.W.P};
g.h.Ye=function(a){3==this.Za()?this.app.D.G.kf("control_play"):RY(this.app,a)};
g.h.Dh=function(a){xV(g.el(this.app,a))};
g.h.addEventListener=function(a,b,c){this.app.O.subscribe(a,b,c)};
g.h.removeEventListener=function(a,b,c){Df(this.app.O,a,b,c)};
g.h.ya=function(a,b){this.app.Z.oc.apply(this.app.Z,arguments);this.app.O.oc.apply(this.app.O,arguments)};
g.h.Dl=function(a){this.Iw(a,a)};
g.h.ej=function(a){return t6(this.app,a)};
g.h.getVideoUrl=function(a,b,c,d){var e=this.Za(),f=2==e;if(d&&f||3==e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.o||(k=Math.floor(this.getCurrentTime(e)));return this.app.W.getVideoUrl(d.videoId,f?void 0:this.Xe()||void 0,k,b,c)};
g.h.kj=function(a,b,c){var d=tl(g.Zk(this));d&&Gs(d,a,b,c)};
g.h.Ag=function(a,b){var c=this.app,d=g.el(c,this.playerType);d&&c.W.Db.contains(a.toString())?d.sa?(c=Yn(d.sa,"engage"),c.B=a,c.send(b)):b&&b():b&&b()};
g.h.Dc=function(a,b,c){return S6(this.app,a,b,c,!0)};
g.h.Al=function(a){return T6(this.app,a,!0)};
g.h.Ze=function(a,b,c){return S6(this.app,a,b,c,!0)};
g.h.hj=function(a,b){r6(this.app,a,b)};
g.h.setVolume=function(a){a=g.te(a,0,100);m6(this.app,{volume:a,muted:this.Bd()},!0)};
g.h.mute=function(){m6(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.Vf=function(){m6(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};Ql.prototype.o=Ud;/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Am=window,rm=window.document,hca=Am.location,gca=/\[native code\]/,xm=Tl(Am,"gapi",{});var am;am=Tl(Am,"___jsl",Ul());Tl(am,"I",0);Tl(am,"hel",10);var fm=Tl(am,"perf",Ul());Tl(fm,"g",Ul());var kca=Tl(fm,"i",Ul());Tl(fm,"r",[]);Ul();Ul();var lm=Ul(),vm=[];vm.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?am[b]=Tl(am,b,[]).concat(c):Tl(am,b,c)}if(b=a.u)a=Tl(am,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);
var tca=/^(\/[a-zA-Z0-9_\-]+)+$/,nm=[/\/amp\//,/\/amp$/,/^\/amp$/],vca=/^[a-zA-Z0-9\-_\.,!]+$/,rca=/^gapi\.loaded_[0-9]+$/,uca=/^[a-zA-Z0-9,._-]+$/,oca=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,nca=/\/cb=/g,mca=/\/\//g;lm.m=function(a,b,c,d){(a=a[0])||km("missing_hint");return"https://apis.google.com"+sca(a,b,c,d)};
var sm=(0,window.decodeURI)("%73cript"),qm=/^[-+_0-9\/A-Za-z]+={0,2}$/;xm.load=function(a,b){return wm(function(){return zm(a,b)})};var Dm=null,Hm=null,Cm=null;g.h=Jm.prototype;g.h.xc=function(){return this.g.xc()};
g.h.remove=function(a){return this.g.remove(Km(a))};
g.h.clear=function(){this.g.clear()};
g.h.isEmpty=function(){return this.g.isEmpty()};
g.h.contains=function(a){return Kf(this.g,Km(a))};
g.h.$a=function(){return this.g.$a()};
g.h.clone=function(){return new Jm(this)};
g.h.rd=function(){return this.g.rd(!1)};var Mm=null;Nm.prototype.B=function(){var a=u("gapi.config.update");a("googleapis.config/auth/useFirstPartyAuth",!0);var b=this.g.apiaryHost;D(E(b))||a("googleapis.config/root",(-1==b.indexOf("://")?"//":"")+b);b=this.g.qm;D(E(b))||a("googleapis.config/root-1p",(-1==b.indexOf("://")?"//":"")+b);a("googleapis.config/sessionIndex",g.Zg("SESSION_INDEX"));u("gapi.client.setApiKey")(this.g.innertubeApiKey)};
Nm.prototype.o=function(){return{context:$l(this.g)}};
Nm.prototype.A=function(a,b,c){var d,e=!1;0<c.timeout&&(d=g.ah(function(){e||(e=!0,c.Sc&&c.Sc())},c.timeout));
Cca(this,a,b,function(a){if(!e)if(e=!0,d&&g.ch(d),a)c.Cb&&c.Cb(a);else if(c.onError)c.onError()})};var Dca={log_event:"events",log_interaction:"interactions"},Um={},Pm={},Tm=0,Om=u("yt.logging.transport.logsQueue_")||{};g.ka("yt.logging.transport.logsQueue_",Om,void 0);Vm.prototype.o=function(){return{context:$l(this.g)}};
Vm.prototype.A=function(a,b,c){b={headers:{"Content-Type":"application/json","X-Goog-Visitor-Id":g.Zg("VISITOR_DATA")},Sb:b,Mu:"JSON",Sc:c.Sc,Cb:c.Cb,onError:c.onError,timeout:c.timeout,withCredentials:!0};if(c=g.jm([]))b.headers.Authorization=c,b.headers["X-Goog-AuthUser"]=g.Zg("SESSION_INDEX",0);g.mi("//"+this.g.hJ+("/youtubei/"+this.g.innertubeApiVersion+"/"+a)+"?alt=json&key="+this.g.innertubeApiKey,b)};var Fca=1;g.cn.prototype.getId=function(){return this.Da};
g.cn.prototype.getId=g.cn.prototype.getId;g.cn.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)};g.C(g.en,g.L);g.en.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.ca.subscribe(a,b,c)};
g.en.prototype.Ka=function(a,b,c){return this.isDisposed()?!1:Df(this.ca,a,b,c)};
g.en.prototype.Ad=function(a){return this.isDisposed()?!1:this.ca.Ad(a)};
g.en.prototype.$=function(a,b){return this.isDisposed()?!1:this.ca.oc.apply(this.ca,arguments)};g.C(fn,g.en);g.h=fn.prototype;g.h.create=function(){this.F||(this.zd(this.g),g.O(this.g.getRootNode(),this.tb+"-created"),this.g.addEventListener("crn_"+this.tb,this.Jf,this),this.g.addEventListener("crx_"+this.tb,this.Kf,this),this.F=!0)};
g.h.destroy=function(){this.loaded&&this.unload();g.Pd(this.g.getRootNode(),this.tb+"-created");this.g.removeEventListener("crn_"+this.tb,this.Jf,this);this.g.removeEventListener("crx_"+this.tb,this.Kf,this);this.F=!1;this.$("destroyed",this.tb)};
g.h.load=function(){this.loaded=!0;g.O(this.g.getRootNode(),this.tb+"-loaded");this.$("loaded",this.tb)};
g.h.unload=function(){this.loaded=!1;g.Pd(this.g.getRootNode(),this.tb+"-loaded");this.$("unloaded",this.tb)};
g.h.Jf=function(){};
g.h.Kf=function(){};
g.h.kf=function(){};
g.h.log=function(a){g.ol(this.g,this.logEvent,a)};
g.h.Il=function(){return null};
g.h.Bg=function(){};
g.h.Yf=function(){return[]};
g.h.zd=function(){return!1};g.C(g.mn,g.L);g.h=g.mn.prototype;g.h.Fa=function(a,b){g.p(b)?Xe(a,this.element,b):a.appendChild(this.element)};
g.h.detach=function(){g.Ye(this.element)};
g.h.update=function(a){for(var b in a)this.Ea(b,a[b])};
g.h.Ea=function(a,b){var c=this.na["{{"+a+"}}"];c&&on(this,c[0],c[1],b)};
g.h.R=function(){this.ua={};this.na={};this.detach();g.mn.M.R.call(this)};
g.mn.o=1;g.mn.g=function(){return"ytp-svg-"+g.mn.o++};g.C(g.W,g.mn);g.h=g.W.prototype;g.h.sc=function(a,b){this.Ea(b||"content",a)};
g.h.show=function(){this.g||(g.rn(this.element,""),this.g=!0)};
g.h.ma=function(){this.g&&(g.rn(this.element,"none"),this.g=!1)};
g.h.Ab=function(a){a?this.show():this.ma()};
g.h.S=function(a,b,c){return this.U(this.element,a,b,c)};
g.h.U=function(a,b,c,d){c=(0,g.z)(c,d||this);d={target:a,type:b,listener:c};this.O.push(d);a.addEventListener(b,c);return d};
g.h.Ca=function(a){for(var b=0;b<this.O.length;b++)if(this.O[b]==a){a=this.O.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
g.h.focus=function(){kf(this.element);this.element.focus()};
g.h.R=function(){for(;this.O.length;){var a=this.O.pop();a.target.removeEventListener(a.type,a.listener)}g.W.M.R.call(this)};g.C(g.un,g.W);var Rfa={EN:"adunit",bP:"detailpage",yP:"editpage",zP:"embedded",AQ:"leanback",dS:"previewpage",eS:"profilepage",ET:"unplugged"};yn.prototype.update=function(){var a=this.o.o()||0,b=g.xn(this.o);if(a!=this.g||Cn(this,a,b)){if(a<this.g||a-this.g>b-this.C+2||Cn(this,a,b))zn(this),this.B=a;this.C=b;this.g=a}};Dn.prototype.o=function(){return{ps:this.g.o,el:this.g.g}};
Dn.prototype.send=function(){if(!this.A){var a;a=this.o();a=g.ag(this.g.baseYtUrl+"set_awesome",a);this.g.Xa&&this.videoData.visitorData&&Hh(a)?g.li(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):g.oi(a);this.A=!0}};g.C(En,Dn);
En.prototype.o=function(){var a=En.M.o.call(this);g.va(a,this.g.A);g.va(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.g.pa,framer:this.g.Lh,list:this.videoData.fi||this.videoData.playlistId,w:g.te(this.videoData.re/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:An(this.B),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.Nq});this.videoData.adFormat&&(a.adformat=
this.videoData.adFormat);var b;(b=(b=this.videoData.referrer)?b.slice(0,128):"")&&(a.referrer=b);if(this.g.experiments.g("legacy_autoplay_flag")?this.g.ca:this.videoData.Z)a.autoplay="1";this.g.hc&&(a.authuser=this.g.hc);this.g.pageId&&(a.pageid=this.g.pageId);this.videoData.Ja&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);g.va(a,En.M.o.call(this));g.va(a,this.g.A);return a};g.C(Gn,g.L);var Hca={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};g.h=Gn.prototype;
g.h.Oi=function(a){if(!this.isDisposed()&&(a=0<=a?a:g.xn(this.g),"PL"==this.A&&a>=this.B+30&&(g.Fn(this,a,"vps",[this.A]),this.B=a),!g.Tb(this.o)&&!this.J)){In(this,a);var b=this.g.F(),c=b.droppedVideoFrames,d=c-this.V;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&g.Fn(this,a,"df",[d]);this.V=c;a=Jn(this);g.Zb(a,this.g.g.A);a=g.ag(this.g.g.tf,a);for(var e in this.o)a+="&"+e+"="+this.o[e].join(",");Kn(this,a);this.o={}}};
g.h.tv=function(){this.g.videoData.H&&On(this,"drm-"+this.g.videoData.H.g)};
g.h.onError=function(a,b){var c=g.xn(this.g);Mn(this,c,a,b);In(this,c);Ln(this)};
g.h.R=function(){Gn.M.R.call(this);g.dh(this.N)};
g.h.Kc=function(a,b,c){var d=this.o.ctmp||[],e=-1!=this.da.indexOf(a);e||this.da.push(a);c&&e||(c||(b="t."+g.xn(this.g).toFixed(3)+";"+b),d.push(a+":"+b),this.o.ctmp=d,Ln(this))};Qn.prototype.send=function(a){if(!this.da){var b=Tn(this),b=g.ag(this.pa,b);if(this.H)this.V&&(a={method:"POST",Sb:{atr:this.V}},this.N&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),g.li(b,a));else{var c=Rn(this,a);c?g.li(b,c):g.oi(b,a)}this.da=!0}};
Qn.prototype.g=function(a){void 0==a&&(a=window.NaN);return(1*a.toFixed(3)).toString()};g.C(Un,g.L);g.h=Un.prototype;g.h.XE=function(a,b){if(!this.isDisposed()){this.F=window.NaN;this.A.update();var c=Bn(this.A),d=Zn(this,c);b&&(d.F=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.o=Vn(this,!0,a));d.send();this.J++}};
g.h.onError=function(a,b){if(!this.isDisposed())this.o.onError(a,b)};
g.h.Yk=function(a){var b=this.g.g,c=this.g.videoData,d={ns:b.Ja,el:b.g,eurl:b.pa,fmt:c.A?Bi(c.A):0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.o,noflv:1,st:this.g.o(),video_id:c.videoId,metric:a};if(b.experiments.g("legacy_autoplay_flag")?b.ca:c.Z)d.autoplay="1";"heartbeat"==a&&(d.tpmt=An(this.A));g.va(d,b.A);ao(this,g.ag("//www.youtube.com/live_204",d))};
g.h.ka=function(){};
g.h.R=function(){Un.M.R.call(this);g.ch(this.F);this.F=window.NaN;var a=this.A;g.dh(a.D);a.D=window.NaN};
g.h.Kc=function(a,b,c){this.isDisposed()||this.o.Kc(a,b,c)};g.C(po,fn);g.h=po.prototype;g.h.zd=function(){return qo(this.g)};
g.h.create=function(){po.M.create.call(this);this.load()};
g.h.load=function(){po.M.load.call(this);this.g.addEventListener("resize",this.rp,this);var a=ro(g.V(this.g).o)?function(){}:(0,g.z)(this.mB,this);
Qca(this,a)};
g.h.unload=function(){to(this,null);this.g.removeEventListener("resize",this.rp,this);this.B&&(this.B.abort(),this.B=null);po.M.unload.call(this)};
g.h.Bg=function(a,b){if(!ro(g.V(this.g).o))return null;var c;switch(a){case "loadCustomEndscreenRenderer":return c=oo(b,"new"),to(this,c),!0;case "loadCustomEndscreenJson":return(c=no(b))&&to(this,c),!0;case "unloadCustomEndscreenJson":return to(this,null),!0}return null};
g.h.mB=function(){var a=this.g.getVideoData().videoId;this.B&&this.B.abort();a={method:"POST",cd:(0,g.z)(this.dF,this,a),Bc:{v:a},withCredentials:!0};this.V&&(a.Bc.r=1);"gaming"==g.V(this.g).o&&(a.Bc.gaming="1");this.P&&(a.Bc.ptype="embedded");var b=this.g.getVideoData().Tv;b&&(a.Sb={ad_tracking:b});if(b=so(this.g.getVideoData()))this.B=g.li(b,a)};
g.h.dF=function(a,b){var c=this.B=null;if(200==b.status){var d=b.responseText;")]}"==d.substring(0,3)&&(d=d.substring(3),c=JSON.parse(d),c=this.V?oo(c,this.P?"new":"current"):no(c))}to(this,c)};
for(var r7=[346,426,470,506,570,640,853,1280,1920],s7=[],t7=0;t7<r7.length;t7++)s7.push("ytp-ce-size-"+r7[t7]);var oqa=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];g.h=po.prototype;
g.h.rp=function(){if(this.o&&this.o.elements){var a=this.g.Dw(),b=a.width,c=a.height;if(0!=b&&0!=c){var d=b/c,e;e=ms(this.g.app.D.D).width;for(var f=null,k=-1,l=0;l<r7.length;l++){var m=Math.abs(e-r7[l]);if(-1==k||f>=m)k=l,f=m}e=s7[k];for(f=0;f<this.o.elements.length;++f){var l=this.o.elements[f].id,k=this.A[l],m=this.D[l],n=m.width*d/m.aspectRatio,l=Math.round(n*c),q=a.left+Math.round(m.left*b),t=a.top+Math.round(m.top*c);g.hj(k.element,Math.round(m.width*b),l);g.Yi(k.element,q,t);Qd(k.element,oqa);
q=m.left+m.width/2;m=m.top+n/2;g.O(k.element,.5>=q&&.5>=m?"ytp-ce-top-left-quad":.5<q&&.5>=m?"ytp-ce-top-right-quad":.5>=q&&.5<m?"ytp-ce-bottom-left-quad":"ytp-ce-bottom-right-quad");Qd(k.element,s7);g.O(k.element,e);(k=g.Ge("div","ytp-ce-expanding-overlay-body",k.element)[0])&&g.Si(k,"height",l+"px")}}}};
g.h.Jf=function(a){po.M.Jf.call(this,a);if(this.o)if("ytp-ce-in-endscreen"==a.getId())this.G=!1,this.o.skip&&1==this.g.fj()?(a=this.g,(a=g.el(a.app,a.playerType||1))&&NU(a,!0),this.g.Ec(window.Infinity),this.G=!0):(yo(this,this.o.impressionUrls),an([this.o.visualElement]));else if(!this.G){a=a.getId().substring(15);var b=this.A[a],c=this.D[a];g.O(b.element,"ytp-ce-element-show");b.element.removeAttribute("aria-hidden");yo(this,c.impressionUrls);an([c.visualElement]);g.V(this.g).kb&&this.g.ya("endscreenelementshown",
a)}};
g.h.Kf=function(a){if("ytp-ce-in-endscreen"!=a.getId()&&!this.G){var b=a.getId().substring(15),c=this.A[b];g.Pd(c.element,"ytp-ce-element-show");c.element.setAttribute("aria-hidden",!0);po.M.Kf.call(this,a);g.V(this.g).kb&&this.g.ya("endscreenelementhidden",b)}};
g.h.gu=function(a,b){if(a.targetUrl&&(!b||"keypress"!=b.type||13==b.keyCode)){for(var c=b.target;c&&!g.Md(c,"ytp-ce-element");){g.Md(c,"subscribe-label")&&zo(this,a);if(g.Md(c,"ytp-ce-channel-subscribe"))return;c=cf(c)}if(!c||g.Md(c,"ytp-ce-element-hover"))b.preventDefault(),b.stopPropagation(),b.ctrlKey||b.metaKey||"new"==a.Wi?(zo(this,a),this.ev(),this.g.fd(),g.mo(a.targetUrl,void 0,a.dd)):(c=(0,g.z)(this.ev,this,g.B(lo,a.targetUrl,a.dd)),zo(this,a,c))}};
g.h.qp=function(a,b){g.Md(a.element,"ytp-ce-element-hover")||("VIDEO"==b.type||"PLAYLIST"==b.type?g.O(a.element,"ytp-ce-element-hover"):(new g.Id(function(){g.O(a.element,"ytp-ce-element-hover")},200)).start(),yo(this,b.Os),xo(this,b.id,!0),wo(this,a,!0))};
g.h.Pw=function(a,b){g.Pd(a.element,"ytp-ce-element-hover");xo(this,b.id,!1);wo(this,a,!1)};
g.h.ev=function(a){this.g.Ag(17,a)};var Ao=g.Me&&Rca();g.C(Go,g.L);var Jo=[];Go.prototype.S=function(a,b,c,d){return Ho(this,a,b,c,d)};
Go.prototype.Ca=function(a,b,c,d,e){if(na(b))for(var f=0;f<b.length;f++)this.Ca(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.B||this,c=Fc(c),d=!!d,b=vc(a)?Cc(a.Jd,String(b),c,d,e):a?(a=Hc(a))?Cc(a,b,c,d,e):null:null,b&&(Oc(b),delete this.o[b.key]);return this};
Go.prototype.R=function(){Go.M.R.call(this);No(this)};
Go.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Oo.prototype.S=function(a,b,c,d){c=(0,g.z)(c,d||this.o);a=g.Vj(a,b,c);this.g.push(a);return a};
Oo.prototype.Ca=function(a){g.Wj(a);g.eb(this.g,a)};g.C(Qo,g.L);g.h=Qo.prototype;g.h.start=function(){this.stop();this.A=!1;var a=Ro(this),b=So(this);a&&!b&&this.g.mozRequestAnimationFrame?(this.Da=Ec(this.g,"MozBeforePaint",this.o),this.g.mozRequestAnimationFrame(null),this.A=!0):this.Da=a&&b?a.call(this.g,this.o):this.g.setTimeout(Daa(this.o),20)};
g.h.stop=function(){if(this.isActive()){var a=Ro(this),b=So(this);a&&!b&&this.g.mozRequestAnimationFrame?Oc(this.Da):a&&b?b.call(this.g,this.Da):this.g.clearTimeout(this.Da)}this.Da=null};
g.h.isActive=function(){return null!=this.Da};
g.h.CB=function(){this.A&&this.Da&&Oc(this.Da);this.Da=null;this.C.call(this.B,(0,g.G)())};
g.h.R=function(){this.stop();Qo.M.R.call(this)};var To={},Vo=null;g.C(Zo,N);g.h=Zo.prototype;g.h.gb=function(){return 1==this.g};
g.h.Gk=function(){this.Id("begin")};
g.h.Ji=function(){this.Id("end")};
g.h.cd=function(){this.Id("finish")};
g.h.Id=function(a){this.dispatchEvent(a)};g.C($o,Zo);g.h=$o.prototype;g.h.play=function(a){if(a||0==this.g)this.progress=0,this.o=this.A;else if(this.gb())return!1;Wo(this);this.startTime=a=(0,g.G)();-1==this.g&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.progress||this.Gk();this.Id("play");-1==this.g&&this.Id("resume");this.g=1;var b=ua(this);b in To||(To[b]=this);Xo();Yo(this,a);return!0};
g.h.stop=function(a){Wo(this);this.g=0;a&&(this.progress=1);ap(this,this.progress);this.Id("stop");this.Ji()};
g.h.pause=function(){this.gb()&&(Wo(this),this.g=-1,this.Id("pause"))};
g.h.R=function(){0==this.g||this.stop(!1);this.Id("destroy");$o.M.R.call(this)};
g.h.destroy=function(){this.dispose()};
g.h.ao=function(){this.Id("animate")};
g.h.Id=function(a){this.dispatchEvent(new bp(a,this))};
g.C(bp,ac);g.C(fp,g.L);fp.prototype.D=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.o.indexOf(c);0<=d&&this.o.splice(d,1);var e=this.g,d=e.g,c=g.sb(d,c,e.o);0<=c&&g.db(d,c)}}this.A()};
fp.prototype.reset=function(){this.Qf=this.G=!1;this.C.stop();this.g.g=[];this.o=[];this.A();this.F=null};
fp.prototype.A=function(){this.H=!0;if(!this.J){for(var a=3;this.H&&a;){this.H=!1;this.J=!0;var b;if(this.Qf&&!this.G){this.C.stop();b=this.L();g.T(b,32)&&this.O.start();for(var c=g.T(this.L(),2)?0x8000000000000:1E3*this.V(),d=g.T(b,2),e=[],f=[],k=0;k<this.o.length;k++){var l=this.o[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat($ca(this,f));if(d)b=cp(this.g,0x7ffffffffffff),b=b.concat(Yca(this.g));else if(this.B<=c&&b.gb()&&!g.T(b,16)&&!g.T(b,32)){b=this.g;d=c;f=[];for(k=
dp(b,this.B);k<b.g.length&&!(l=b.g[k],(l.end<=d||l.contains(d))&&f.push(l),l.start>d);++k);b=f}else b=cp(this.g,c);e=e.concat(Zca(this,b));this.B=c;!this.G&&this.F&&(this.F=null);c=e;for(e=0;e<c.length;e++)b=c[e],d=b[1],1==b[0]?(d.g&&d.g.oc("onEnter",d),this.N("crn_"+d.namespace,d)):(d.g&&d.g.oc("onExit",d),this.N("crx_"+d.namespace,d))}this.J=!1;a--}this.L().gb()&&(a=ep(this.g,this.B),null!=a&&0x7ffffffffffff>a&&(a=(a-this.B)/this.P(),this.C.start(a)))}};
fp.prototype.R=function(){this.F=this.g=this.o=null;fp.M.R.call(this)};var eda={NO:"current",CR:"new"};var hda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ida,jda,Ux,Mna,Nfa,kda,Jp,Ss,nx,Ofa;ida=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^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(education|-nocookie)?\.com\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|play\.google\.com\/)/;
jda=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/psul|www\.youtube\.com\/pagead\/slav|www\.youtube\.com\/pagead\/sul)/;Ux=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?\//;Mna=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?\//;
Nfa=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/\/*embed(\/+|\?|#|$)/;g.Cx=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((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\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?\/|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/;
kda=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/;Jp=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion)))/;Ss=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((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\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com|xfx7\.com)(:[0-9]+)?\//;
nx=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.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|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/;
Ofa=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|picasaweb\.google\.com|get\.google\.com|lh2\.google\.com|plus\.google\.com|spaces\.google\.com|books\.googleusercontent\.com|blogger\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?\/|(www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites\.googlegroups\.com\/a\/google\.com\/flash-api-test-harness\/apiharness\.swf|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/;var Pfa=["2mdn.net"],Qfa=/^https?:\/\/(www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?/;g.h=Np.prototype;g.h.dl=function(){this.context.A.subscribe("resize",this.Ij,this)};
g.h.oa=function(){return this.Ta};
g.h.uh=function(a,b,c,d,e,f,k){this.context.g.S(a,"click",g.B(this.Ak,b,c,d,e,f||[],k||0),this);this.context.g.S(a,"touchstart",g.B(function(){this.Vo=!1}),this);
this.context.g.S(a,"touchmove",g.B(function(){this.Vo=!0}),this)};
g.h.Ak=function(a,b,c,d,e,f,k){if(this.Vo)return!1;k&&(k.stopPropagation(),k.preventDefault());(b=wp(a,b,this.context.videoData.videoId))&&pda(this,b,xp(b,a.target),c,d,e,f,a.g);return!1};
g.h.show=function(){this.O=(0,g.G)()};
g.h.Jl=function(){};
g.h.destroy=function(){g.Ye(this.oa())};
g.h.Ij=function(){};var rda={CLOSE:"close",JR:"openUrl",nA:"subscribe"},sda={Rl:"click",CLOSE:"close",YP:"hidden",yS:"rollOut",cA:"rollOver",gA:"shown"};var uda={kU:"xx",lU:"xy",oU:"yx",pU:"yy"};g.C(Yp,Up);var zda={Ey:"anchored",nS:"rect",IS:"shapeless"};var Dda={CLOSED:"closed",RR:"playerControlShow",cA:"rollOver",gA:"shown"};var cq={Ey:"anchored",Hy:"branding",CHANNEL:"channel",MO:"cta",aQ:"highlightText",yQ:"label",PLAYLIST:"playlist",bS:"popup",TS:"speech",nA:"subscribe",mT:"title",VIDEO:"video",bU:"vote",eU:"website"},Hda={Hy:"branding",mO:"card",uP:"drawer",$P:"highlight",TQ:"marker",gS:"promotion",TEXT:"text",hU:"widget"},Ida={VT:"video_relative",SR:"player_relative"};bq.prototype.showLinkIcon=function(){return eq(this,function(a){return null!=a.url&&a.url.showLinkIcon})};var pqa=Xc(function(){if(g.Me)return g.oc("10.0");var a=g.Re("DIV"),b=qc?"-webkit":Pi?"-moz":g.Me?"-ms":g.rc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!pe.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in fqa)throw Error("Tag name <div> is not allowed for SafeHtml.");b=qe("div",b,void 0);a.innerHTML=me(b);return""!=Ui(a.firstChild,"transition")});g.C(lq,g.L);lq.prototype.show=function(a){1!=this.g&&2!=this.g&&(3==this.g&&this.B(),4==this.g?(this.o.show(),this.g=null,this.A.stop()):this.o.g||(mq(this,!0),this.g=1,a?this.A.start(a):this.B()))};
lq.prototype.B=function(){switch(this.g){case 1:this.o.show();this.g=2;this.A.start(10);break;case 2:mq(this,!1);this.g=null;break;case 3:this.o.ma();mq(this,!1);this.g=4;this.A.start(0);break;case 4:this.g=null}};
lq.prototype.stop=function(){for(;null!=this.g&&4!=this.g;)this.A.stop(),this.B()};
lq.prototype.R=function(){this.o.isDisposed()||this.o.element.removeAttribute("aria-hidden");lq.M.R.call(this)};g.C(pq,g.W);g.h=pq.prototype;g.h.Nv=function(){g.ql(this.aa)&&rl(this.aa)&&this.g&&3!=this.D.g&&this.pj()};
g.h.XL=function(){this.pj();g.fi("iv-teaser-clicked",!!this.o);this.aa.kj(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.WL=function(){g.fi("iv-teaser-mouseover");this.o.stop()};
g.h.fH=function(a){this.o||!a||rl(this.aa)||this.B&&this.B.isActive()||(Nda(this,a),g.fi("iv-teaser-shown"))};
g.h.Qx=function(){this.F.stop();this.o&&this.o.isActive()&&this.G.start()};
g.h.Lf=function(){this.G.stop();this.o&&!this.o.isActive()&&this.F.start()};
g.h.WF=function(){this.o&&this.o.stop()};
g.h.UF=function(){this.pj()};
g.h.pj=function(){!this.o||this.C&&this.C.isActive()||(g.nq(this.D),g.Pd(this.aa.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.Id(function(){for(var a=0;a<this.A.length;a++)this.Ca(this.A[a]);this.A=[];this.o&&(this.o.dispose(),this.o=null);qq(this.H,!0)},330,this),this.C.start())};
g.h.R=function(){var a=this.aa.getRootNode();a&&g.Pd(a,"ytp-cards-teaser-shown");g.Db(this.B,this.C,this.o);pq.M.R.call(this)};g.C(rq,oq);g.C(sq,oq);g.C(tq,sq);var qqa=!g.Me&&!ic();g.C(uq,oq);g.C(vq,oq);g.C(wq,sq);g.C(xq,sq);g.C(yq,oq);g.C(zq,oq);Aq.prototype.o=function(a,b){var c=mf(b.target,"label");c&&g.Rd(c,"iv-card-poll-choice-focused",a)};
Aq.prototype.F=function(a,b){var c=nf(b.target,"iv-card-poll");if(c)if(a.A)Ie("iv-card-sign-in-button",c).click();else{var d=window.parseInt,e;e=b.target;e=qqa&&e.dataset?"pollChoiceIndex"in e.dataset?e.dataset.pollChoiceIndex:null:e.getAttribute("data-"+"pollChoiceIndex".replace(/([A-Z])/g,"-$1").toLowerCase());d=d(e,10);null==a.g?(a.choices[d].count++,a.g=d):a.g!=d?(e=a.choices[a.g],e.count=Math.max(e.count-1,0),a.choices[d].count++,a.g=d):(e=a.choices[a.g],e.count=Math.max(e.count-1,0),a.g=null);
Cq(a,c);g.mi(this.g.videoData.ra,{Bc:{action_poll_vote:1},Sb:{poll_id:a.id,index:d,session_token:a.C}});c={};c["link-id"]=d;Hp(this.g.logger,a.Jb,void 0,c,a.o.click,5)}};
Aq.prototype.D=function(a){var b=u("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=g.B(b,a.F,a.B));Lq(this,a,!0,b)};
Aq.prototype.G=function(a){var b=u("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=g.B(b,a.F,a.B,a.G));Lq(this,a,!1,b)};g.C(Nq,Np);g.h=Nq.prototype;g.h.isAvailable=function(){var a;if(a=!!this.o.length)(a=this.aa.getRootNode())?(a=g.ij(a),a=177<a.width&&177<a.height):a=!1;return a};
g.h.CA=function(){this.ca&&Rq(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
g.h.bB=function(){(this.ca=this.B)&&this.Oj()};
g.h.jL=function(){Rq(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
g.h.Oj=function(){this.B&&(g.nq(this.Z),g.Pd(this.context.o.getRootNode(),"ytp-iv-drawer-open"),this.B=!1,sl(this.aa),this.F&&this.F.stop(),this.F=new g.Id(function(){this.N&&(this.N.focus(),this.N=null)},330,this),this.F.start())};
g.h.Ij=function(){var a=this.isAvailable();R(this.oa(),a);g.Rd(this.context.o.getRootNode(),"ytp-iv-drawer-enabled",a);sl(this.aa)};
g.h.destroy=function(){var a=tl(g.Zk(this.aa));a&&Hs(a,!1,void 0);this.aa.getRootNode().removeChild(this.D);di(this.P);g.Wj(this.fa);this.L&&this.L.dispose();this.F&&this.F.dispose();Nq.M.destroy.call(this)};
var Oq={collaborator:rq,donation:tq,episode:zq,movie:zq,playlist:uq,poll:vq,productListing:wq,simple:sq,tip:xq,video:yq};g.h=Nq.prototype;
g.h.kL=function(a){this.xm.start();a.preventDefault();a=a||window.event;var b=0;"MozMousePixelScroll"==a.type?b=0==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?b=a.detail:b=0==a.wheelDelta%120?"WebkitTransform"in window.document.documentElement.style?window.chrome&&0==window.navigator.platform.indexOf("Mac")?a.wheelDeltaY/-30:a.wheelDeltaY/-1.2:a.wheelDelta/-1.6:a.wheelDeltaY/-3;if(a=b)this.A.scrollTop+=a};
g.h.rv=function(a){if(!g.Md(this.aa.getRootNode(),"ytp-cards-teaser-shown")){this.g!=a&&(this.g=a,Qq(this));if(lj(this.oa())){var b;2==this.context.o.Za()?b=1==((0,window.isNaN)(void 0)?this.context.o.qw():void 0):(b=(0,window.isNaN)(void 0)?this.context.o.fj():void 0,b=1==b||0==b&&0===this.context.o.getCurrentTime());if(b&&a.Ub.teaserDurationMs){b={teaserText:a.Ub.teaserText,durationMs:a.Ub.teaserDurationMs};var c=tl(g.Zk(this.aa));c&&Hs(c,!0,b)}}this.ba.isActive()||((!this.B||!this.xm.isActive()&&
this.yk)&&Tq(this,a),this.ba.start(910+a.Ub.teaserDurationMs))}};
g.h.yI=function(a){this.B||(this.g=a,Qq(this),Tq(this,a),Rq(this,"YOUTUBE_DRAWER_AUTO_OPEN",!1,a))};
g.h.UA=function(){this.B&&(Lp(this.context.logger,this.J,4,Uq(this).o.close),this.Oj())};
g.h.fB=function(){g.Rd(this.D,"iv-drawer-scrolled",0<this.A.scrollTop)};
g.h.GD=function(){var a=Uq(this);Mp(this.context.logger,8,a.Jb,a.o.LI)};
g.h.FD=function(a){var b=Uq(this);this.g?a?(a=this.context.logger,Mp(a,9,b.Jb,b.o.Go)):(a=this.context.logger,Mp(a,12,b.Jb,b.o.Go)):(a=this.context.logger,Lp(a,this.J,12,b.o.Go));a.aa.Ag(4,void 0)};g.C(Vq,$o);Vq.prototype.B=g.v;Vq.prototype.ao=function(){this.B();Vq.M.ao.call(this)};
Vq.prototype.Ji=function(){this.B();Vq.M.Ji.call(this)};
Vq.prototype.Gk=function(){this.B();Vq.M.Gk.call(this)};
g.C(Wq,Vq);Wq.prototype.B=function(){this.element.style.left=Math.round(this.o[0])+"px";this.element.style.top=Math.round(this.o[1])+"px"};g.C(Xq,Np);Xq.prototype.dl=function(){Xq.M.dl.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&Op(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.Jl)};g.C(Yq,Xq);g.h=Yq.prototype;g.h.HI=function(a,b,c,d){this.A.stop();if(!this.B){var e=g.ij(a);this.g||(gj(a,e.width),gj(b,e.width));g.Yi(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.B=!0;R(a,!0);this.C=new g.Id(function(){g.O(this.oa(),"iv-branding-active")},0,this);
this.C.start()}};
g.h.CC=function(a,b){g.Pd(this.oa(),"iv-branding-active");this.D=new g.Id((0,g.z)(function(){R(a,!1);this.g||gj(b,0)},this),250);
this.D.start();this.B=!1};
g.h.show=function(){if(!this.isActive){Yq.M.show.call(this);if(!this.F){g.O(this.oa(),"iv-branding");var a=this.annotation.data;this.G=a.image_width;this.o=g.P("IMG",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});R(this.o,!1);var b=g.P("DIV","branding-img-container",this.o);this.oa().appendChild(b);var c=g.P("DIV","iv-branding-context-name");g.ff(c,a.channel_name);var d=g.P("DIV","iv-branding-context-subscribe");if(a.use_standalone_subscribe_button){if(b=
a.standalone_subscribe_button_data)this.g=new g.un(b.subscribeText,b.unsubscribeText,!!b.enabled,a.channel_id,!!b.subscribed,null,a.session_data.itct,this.H.o),this.g.Fa(d)}else this.annotation.htmlBlob?zg(d,this.annotation.htmlBlob):a.num_subscribers&&g.ff(d,a.num_subscribers);b=g.P("DIV","iv-branding-context-subscribe-caret");c=g.P("DIV","branding-context-container-inner",b,c,d);R(c,!1);d=g.P("DIV","branding-context-container-outer",c);g.Si(d,"right",this.G+"px");this.oa().appendChild(d);var e=
dq(this.annotation);e&&this.uh(this.o,e,this.annotation.id,a.session_data,this.annotation.Jb);this.A=new g.Id(g.B(this.CC,c,d),500,this);this.context.g.S(this.oa(),"mouseover",(0,g.z)(this.HI,this,c,d,b,a.image_height));this.context.g.S(this.oa(),"mouseout",(0,g.z)(this.A.start,this.A,void 0));this.F=!0}Gp(this.context.logger,this.annotation.Jb);R(this.oa(),!0);this.isActive=!0;if(this.o){var a=this.o,f,b=jj(a).width,c=g.qa(void 0)?void 0:b;f=f||0;g.Yi(a,c);f=new Wq(a,[c,a.offsetTop],[c-b-f,a.offsetTop],
200,Vca);this.context.B.S(f,"begin",g.B(R,a,!0));f.play()}}};
g.h.Jl=function(){this.isActive&&(R(this.oa(),!1),this.isActive=!1)};
g.h.destroy=function(){this.g&&(this.g.dispose(),this.g=null);Yq.M.destroy.call(this)};g.C(Zq,Xq);g.h=Zq.prototype;g.h.show=function(){this.isActive||(Zq.M.show.call(this),this.G||(Xda(this),this.G=!0),R(this.oa(),!0),this.annotation&&this.annotation.Jb&&Gp(this.context.logger,this.annotation.Jb),g.Pd(this.oa(),"iv-promo-inactive"),this.oa().removeAttribute("aria-hidden"),this.isActive=!0,br(this),ar(this),cr(this,this.D))};
g.h.Jl=function(){this.isActive&&(g.O(this.oa(),"iv-promo-inactive"),this.isActive=!1,this.oa().setAttribute("aria-hidden",!0))};
g.h.Ak=function(a,b,c,d,e,f,k){return this.B?!1:Zq.M.Ak.call(this,a,b,c,d,e,f,k)};
g.h.mn=function(a,b){b.stopPropagation();ar(this);cr(this,a);this.Vc.focus()};
g.h.SB=function(a){this.F=!0;this.mn(500,a)};
g.h.RB=function(){this.F=!1;$q(this)};
g.h.lL=function(a){a.stopPropagation();this.Jl();Ip(this.context.logger,this.annotation.Jb)};
g.h.HB=function(a){a.stopPropagation();br(this);this.B=!0;g.O(this.oa(),"iv-promo-collapsed-no-delay");this.C.start();Ip(this.context.logger,this.annotation.Jb)};
g.h.destroy=function(){this.C.dispose();Zq.M.destroy.call(this)};var vx={LQ:1,MQ:2,NQ:3};var p2,hr,Yda=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Zda=['audio/mp4; codecs="mp4a.40.2"'];g.C(g.ir,g.L);g.ir.prototype.U=function(a,b,c,d,e){c=$g((0,g.z)(c,d||this.Xa));c={target:a,name:b,Uh:c};var f;e&&$da()&&(f={passive:!0});a.addEventListener(b,c.Uh,f);this.O.push(c);return c};
g.ir.prototype.Ca=function(a){for(var b=0;b<this.O.length;b++)if(this.O[b]==a){this.O.splice(b,1);a.target.removeEventListener(a.name,a.Uh);break}};
g.ir.prototype.R=function(){g.kr(this);g.ir.M.R.call(this)};var or=0;u("yt.scheduler.instance.timerIdMap_");tr.prototype.B=function(a,b,c,d){this.g[a]=b?!c:c;a=Ib(this.g,function(a){return a});
this.o!=a&&(this.o=a,this.A.oc(this.C,a,d))};g.C(ur,g.L);g.h=ur.prototype;g.h.vh=!1;g.h.Mi=0;g.h.ng=null;g.h.Tg=function(a){this.g=arguments;this.ng||this.Mi?this.vh=!0:vr(this)};
g.h.stop=function(){this.ng&&(Hd(this.ng),this.ng=null,this.vh=!1,this.g=[])};
g.h.pause=function(){this.Mi++};
g.h.resume=function(){this.Mi--;this.Mi||!this.vh||this.ng||(this.vh=!1,vr(this))};
g.h.R=function(){ur.M.R.call(this);this.stop()};
g.h.gH=function(){this.ng=null;this.vh&&!this.Mi&&(this.vh=!1,vr(this))};wr.prototype.clone=function(){return new wr(this.start,this.end)};g.C(yr,xr);zr.prototype.ze=null;zr.prototype.md=null;zr.prototype.Vi=!0;var aea=[2,2,6,6,0];g.h=zr.prototype;g.h.clear=function(){this.xa.length=0;this.Ga.length=0;this.Ed.length=0;delete this.ze;delete this.md;delete this.Vi;return this};
g.h.$b=function(a){var b=g.Va(this.xa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.xa.push(1),this.Ga.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Ed.push(c,d)}this.Ga[this.Ga.length-1]+=b/2;this.md=[c,d]};
g.h.close=function(){var a=g.Va(this.xa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.xa.push(4),this.Ga.push(1),this.md=this.ze);return this};
g.h.clone=function(){var a=new this.constructor;a.xa=this.xa.concat();a.Ga=this.Ga.concat();a.Ed=this.Ed.concat();a.ze=this.ze&&this.ze.concat();a.md=this.md&&this.md.concat();a.Vi=this.Vi;return a};
g.h.transform=function(a){if(!this.Vi)throw Error("Non-simple path");a.transform(this.Ed,0,this.Ed,0,this.Ed.length/2);this.ze&&a.transform(this.ze,0,this.ze,0,1);this.md&&this.ze!=this.md&&a.transform(this.md,0,this.md,0,1);return this};
g.h.isEmpty=function(){return 0==this.xa.length};g.C(Cr,xr);Dr.prototype.yb=function(){return this.A};g.la(Er);Er.prototype.g=0;g.C(Fr,N);g.h=Fr.prototype;g.h.HC=Er.getInstance();g.h.getId=function(){return this.Da||(this.Da=":"+(this.HC.g++).toString(36))};
g.h.oa=function(){return this.g};
g.h.Pf=function(a){if(this.B&&this.B!=a)throw Error("Method not supported");Fr.M.Pf.call(this,a)};
g.h.kk=function(){this.g=this.H.createElement("DIV")};
g.h.Mg=function(){this.be=!0;Hr(this,function(a){!a.be&&a.oa()&&a.Mg()})};
g.h.ai=function(){Hr(this,function(a){a.be&&a.ai()});
this.D&&No(this.D);this.be=!1};
g.h.R=function(){this.be&&this.ai();this.D&&(this.D.dispose(),delete this.D);Hr(this,function(a){a.dispose()});
this.g&&g.Ye(this.g);this.B=this.g=this.F=this.L=null;Fr.M.R.call(this)};
g.h.Pc=function(){return this.g};
g.h.removeChild=function(a,b){if(a){var c=g.y(a)?a:a.getId();a=this.F&&c?Vb(this.F,c)||null:null;if(c&&a){Ub(this.F,c);g.eb(this.L,a);b&&(a.ai(),a.g&&g.Ye(a.g));c=a;if(null==c)throw Error("Unable to set parent component");c.B=null;Fr.M.Pf.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};g.C(Ir,Fr);Ir.prototype.C=null;Ir.prototype.Rg=function(){return this.be?g.ij(this.oa()):g.qa(this.width)&&g.qa(this.height)?new g.ze(this.width,this.height):null};
Ir.prototype.resume=function(){};g.C(Jr,N);g.h=Jr.prototype;g.h.fn=null;g.h.pi=null;g.h.oa=function(){return this.pi};
g.h.addEventListener=function(a,b,c,d){Ec(this.pi,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){Nc(this.pi,a,b,c,d)};
g.h.R=function(){Jr.M.R.call(this);var a=this.pi;if(a)if(vc(a))a.Jd&&Bc(a.Jd);else if(a=Hc(a)){var b=0,c;for(c in a.g)for(var d=a.g[c].concat(),e=0;e<d.length;++e)Oc(d[e])&&++b}};g.C(Mr,Jr);Mr.prototype.fill=null;g.C(Nr,Jr);g.C(Or,Mr);g.C(Pr,Nr);Pr.prototype.clear=function(){g.We(this.oa())};
Pr.prototype.setSize=function(a,b){Sr(this.oa(),{width:a,height:b})};
g.C(Qr,Or);var Ur;g.C(Rr,Ir);var eea=0;g.h=Rr.prototype;g.h.kk=function(){var a=Kr(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=Kr(this,"g");this.G=Kr(this,"defs");this.C=new Pr(b,this);a.appendChild(this.G);a.appendChild(b);this.g=a;this.A&&(this.oa().setAttribute("preserveAspectRatio","none"),this.N?this.ll():this.oa().setAttribute("viewBox","0 0 "+(this.A?this.A+" "+this.O:"")))};
g.h.ll=function(){if(this.be){var a=this.Rg();if(0==a.width)this.oa().style.visibility="hidden";else{this.oa().style.visibility="";var b=a.width/this.A,a=a.height/this.O;this.C.oa().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
g.h.setSize=function(a,b){g.hj(this.oa(),a,b)};
g.h.Rg=function(){if(!Pi)return this.be?g.ij(this.oa()):Rr.M.Rg.call(this);var a=this.width,b=this.height,c=g.y(a)&&-1!=a.indexOf("%"),d=g.y(b)&&-1!=b.indexOf("%");if(!this.be&&(c||d))return null;var e,f;c&&(e=this.oa().parentNode,f=g.ij(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.oa().parentNode,f=f||g.ij(e),b=(0,window.parseFloat)(b)*f.height/100);return new g.ze(a,b)};
g.h.clear=function(){this.C.clear();g.We(this.G);this.o={}};
g.h.Mg=function(){var a=this.Rg();Rr.M.Mg.call(this);a||this.dispatchEvent("resize");if(this.N){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.J.S(Vr(),"tick",this.ll);this.ll()}};
g.h.ai=function(){Rr.M.ai.call(this);this.N&&this.J.Ca(Vr(),"tick",this.ll)};
g.h.R=function(){delete this.o;delete this.G;delete this.C;this.J.dispose();delete this.J;Rr.M.R.call(this)};Wr.prototype.oa=function(){return this.C};
Wr.prototype.A=function(){};var $r={bevel:1,dropshadow:2};g.C(es,Wr);
es.prototype.A=function(a,b){var c=iq(a);if(c){var d=Qp(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=hq(a))&&c.g?c.g:null)&&c.length?c[0]:null){var f=Bf(Rp(b,Wp(e,new g.yf(e.F,e.G,e.$i,e.A),b.g))),k=d.clone(),c=new g.yf(f.x,f.y,1,1),l=Math.max(k.left+k.width,c.left+c.width),m=Math.max(k.top+k.height,c.top+c.height);k.left=Math.min(k.left,c.left);k.top=Math.min(k.top,c.top);k.width=l-k.left;k.height=m-k.top;var c=a.g,k=cs(k,c.effects),l=Xr(this,k.width,k.height),m=bs(c,k.width,k.height,this.g),
d=new g.yf(d.left-k.left,d.top-k.top,d.width,d.height),n=new xe(f.x-k.left,f.y-k.top);this.B=17*Tp(b.g,e.o,e.g?e.g:"xy");e=c.A;var f=a.g,q=this.g&&fq(a),t=q?f.g+1:f.g,q=(f=t?new Dr(t,q?f.B:f.D):null)?f.yb()/2:0,t=lea(d,n),w=this.D(d,e,n,t),x=n.x,n=n.y,A=d.width,F=d.height,I=d.left,d=d.top,K=new zr;Ar(K,I+e+q,d+q);"t"==t&&(K.$b(w.start,d+q),K.$b(x,n),K.$b(w.end,d+q));K.$b(I+A-e-q,d+q);Br(K,e,e,-90);"r"==t&&(K.$b(I+A-q,w.start),K.$b(x,n),K.$b(I+A-q,w.end));K.$b(I+A-q,d+F-e-q);Br(K,e,e,0);"b"==t&&(K.$b(w.end,
d+F-q),K.$b(x,n),K.$b(w.start,d+F-q));K.$b(I+e+q,d+F-q);Br(K,e,e,90);"l"==t&&(K.$b(I+q,w.end),K.$b(x,n),K.$b(I+q,w.start));K.$b(I+q,d+e+q);Br(K,e,e,180);K.close();Tr(l,K,f,m);if(m=this.oa())g.O(m,"annotation-shape"),g.O(m,"annotation-speech-shape"),g.Yi(m,k.left,k.top),g.hj(m,k.width,k.height),ds(l,m,c.effects)}}}};
es.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=g.te(c-a/2,d+b,d+e-a-b);return new wr(c,c+a)}
return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new wr(0,0)};g.C(fs,Wr);fs.prototype.A=function(a,b){var c=iq(a);if(c){var d=Qp(c,b);if(!(0>=d.width||0>=d.height)){var e=a.g,c=cs(d,e.effects),f=Xr(this,c.width,c.height),k=new g.yf(0,0,d.width,d.height),l=e.A,d=new Dr(!e.C&&this.g?1:e.C,e.bgColor),m=new Cr("#000",0),n=d?d.yb()/2+1:0,k=as(k,l,n);Tr(f,k,d,m);f=this.oa();g.O(f,"annotation-shape");e=e.o;kj(f,this.g?Math.max(e,.9):e);g.Yi(f,c.left,c.top);g.hj(f,c.width,c.height)}}};g.C(gs,Wr);gs.prototype.A=function(a,b){var c=iq(a);if(c){var d=Qp(c,b);if(!(0>=d.width||0>=d.height)){var c=a.g,e=cs(d,c.effects),f=Xr(this,e.width,e.height),k=bs(c,d.width,d.height,this.g),d=new g.yf(0,0,d.width,d.height),l=c.A,m=a.g,n=this.g&&fq(a),q=n?m.g+1:m.g,n=(m=q?new Dr(q,n?m.B:m.D):null)?m.yb()/2+1:0,d=as(d,l,n);Tr(f,d,m,k);if(k=this.oa())g.O(k,"annotation-shape"),g.O(k,"annotation-popup-shape"),g.Yi(k,e.left,e.top),g.hj(k,e.width,e.height),ds(f,k,c.effects)}}};g.C(hs,es);hs.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new wr(c,c+a)}
return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new wr(0,0)};g.h=is.prototype;g.h.Xw=function(){this.N||(this.B&&R(this.B,!0),this.C&&R(this.C,!0),this.A&&(this.A.g=!0,kj(this.o,ps(this)?1:0),this.A.A(this.g,ks(this))),this.H.isActive()&&this.H.stop(),this.N=!0,this.J=Sca(this.F,g.gl(this.D),function(a){this.$n.stop();this.Lf(a)}))};
g.h.Lf=function(){this.N&&(this.P?this.H.start():this.Ns(),this.A&&(this.A.g=!1,kj(this.o,ps(this)?1:0),this.A.A(this.g,ks(this))),this.N=!1,this.J&&(this.F.Ca(this.J),this.J=null))};
g.h.Ns=function(){this.B&&R(this.B,!1);this.C&&R(this.C,!1)};
g.h.SF=function(a){this.ca=a;this.$n.Tg()};
g.h.QB=function(){var a=this.ca,b=new xe(a.clientX,a.clientY),c=aj(this.D.getRootNode()),d=qs(c,this.O),c=(this.C&&lj(this.C)||this.B&&lj(this.B))&&qs(c,this.P);d&&d.contains(b)||c&&c.contains(b)?this.Xw():this.Lf(a)};
g.h.show=function(){var a=this.g.g,a=(a&&0==a.o||"title"==this.g.style||"highlightText"==this.g.style?!1:!0)&&!this.A,b=!this.o,c="widget"==this.g.type;if(a){var d=ks(this),e=null;"highlight"==this.g.type||"label"==this.g.style?e=new fs:"popup"==this.g.style?e=new gs:"anchored"==this.g.style?e=new es:"speech"==this.g.style&&(e=new hs);e&&(e.A(this.g,d),this.A=e,d=e.oa())&&(R(d,!1),g.O(d,"annotation-type-"+this.g.type.toLowerCase()),this.Z(d))}if(b){d=["annotation"];"highlightText"!=this.g.style||
d.push("annotation-no-mouse");d.push("annotation-type-"+this.g.type.toLowerCase());this.o=g.P("DIV",d);R(this.o,!1);this.g.B&&(this.G=g.P("DIV","inner-text"),"label"==this.g.style&&(g.O(this.G,"label-text"),this.G.style.backgroundColor=this.g.g.bgColor),g.ff(this.G,this.g.B),this.o.appendChild(this.G));ih(this.o,"annotation_id",this.g.id);this.Z(this.o);mea(this,this.o);if(fq(this.g)&&this.g.showLinkIcon()){if(e=dq(this.g))d=this.o,e=new gg(sp(e)),d.title=e.o+e.A;this.C=g.P("SPAN","annotation-link-icon");
R(this.C,!1);this.o.appendChild(this.C)}nea(this);fq(this.g)||(this.o.style.cursor="default")}c&&("subscribe"==this.g.style?Ie("yt-uix-subscription-button",this.o)||zg(this.o,this.g.htmlBlob):this.g.htmlBlob&&zg(this.o,this.g.htmlBlob));if(a||b){a:{a=this.g.o.g;if(a.length&&(a=$p(a[0]))){a=a.H;break a}a=0}this.o&&(this.o.style.zIndex=a);this.A&&this.A.oa()&&(this.A.oa().style.zIndex=a)}R(this.o,!0);kj(this.o,ps(this)?1:0);os(this);this.A&&this.A.oa()&&R(this.A.oa(),!0)};rs.prototype.show=function(){this.isVisible=!0;this.g&&(this.g.show(),this.A.subscribe("resize",this.D,this),this.A.subscribe("onVideoAreaChange",this.B,this))};
rs.prototype.destroy=function(){if(this.g){ts(this);var a=this.g;Po(a.F);a.$n.dispose();a.H.dispose();a.o&&g.Ye(a.o);a.A&&a.A.oa()&&g.Ye(a.A.oa())}us(this)};
rs.prototype.B=function(){os(this.g)};
rs.prototype.D=function(){os(this.g)};g.C(vs,fn);vs.D="AnnotationsModule";vs.B=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
vs.C=function(a){return"card"==a.type||"drawer"==a.type};
vs.A=function(a){return vs.zd(a)?new vs(a):null};
vs.zd=function(a){var b=g.V(a);return"3"==b.B||"leanback"==b.g?!1:!b.O.isEmpty()||vs.g(b.o)?!0:g.al(a.getVideoData(),"iv3_module")};
vs.o=function(){var a=g.P("DIV",["annotation","annotation-type-custom"]);R(a,!1);return a};
vs.g=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
g.h=vs.prototype;g.h.Bg=function(a,b){if(!vs.g(g.V(this.g).o))return null;switch(a){case "loadCustomAnnotationsXml":var c=g.Do(b);c&&zs(this,c);return!0;case "removeCustomAnnotationById":return b&&this.o&&(Pq(this.o,b),sl(this.g)),!0}return null};
g.h.Yf=function(){return vs.g(g.V(this.g).o)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
g.h.zd=function(){return vs.zd(this.g)};
g.h.create=function(){vs.M.create.call(this);this.C.U(this.g,"onVideoAreaChange",(0,g.z)(this.$,this,"onVideoAreaChange"));this.C.U(this.g,"onHideControls",(0,g.z)(this.$,this,"onHideControls"));this.C.U(this.g,"onShowControls",(0,g.z)(this.$,this,"onShowControls"));this.C.U(this.g,"resize",(0,g.z)(this.$,this,"resize"));this.C.U(this.g,"presentingplayerstatechange",(0,g.z)(this.$,this,"presentingplayerstatechange"));this.D=new g.W(["div",["ytp-player-content","ytp-iv-player-content"]]);g.Kl(this.g,
this.D.element,5);this.B=new g.W(["div",["ytp-iv-video-content"]]);var a=g.P("DIV","video-annotations",this.L,this.N);this.B.element.appendChild(a);var a=g.V(this.g),b=this.g.getVideoData();(1!=(a.Eg||b.qe)||b.sq)&&null===a.O.get(b.videoId)||this.load()};
g.h.destroy=function(){g.kr(this.C);g.Pd(this.g.getRootNode(),"ytp-iv-drawer-open");this.D.detach();this.D.dispose();this.B.dispose();vs.M.destroy.call(this)};
g.h.jo=function(){if(this.B){var a=g.ls(g.gl(this.g),!0);g.hj(this.B.element,a.width,a.height);g.Yi(this.B.element,a.left,a.top)}if(this.o){var b=ms(this.g.app.D.D),a=this.o,b=b.width;g.Rd(a.D,"iv-drawer-small",426>=b);g.Rd(a.D,"iv-drawer-big",1280<=b)}};
g.h.uG=function(a){g.T(a.state,2)&&(ul(this)&&vl(this)&&2!=this.g.Za()&&Gs(this,!1),Hs(this,!1))};
g.h.load=function(){vs.M.load.call(this);this.H++;var a=this.g.getVideoData(),b=a.videoId,c=(0,g.z)(this.hF,this,b,this.H);lr()&&(c=As(this,c));c={format:"XML",cd:c,Bc:{}};a.isPharma&&(c.Bc.pharma="1");c.method="POST";c.withCredentials=!0;var d=g.V(this.g);"gaming"==d.o&&(c.Bc.gaming="1");(b=d.O.get(b))&&Bs(c,b);a.ra&&(b=b&&b.fg,a.Ek&&!b||g.li(a.ra,c));g.Kl(this.g,this.B.element,5);this.jo()};
g.h.unload=function(){Kp(this.ka,{"iv-event":1});hn(this);g.Eb(this.A,function(a){a.destroy()});
g.Eb(this.J,function(a){a.destroy()});
this.G=null;this.o&&(this.o.destroy(),this.o=null,sl(this.g));this.A={};this.J={};vs.M.unload.call(this);this.B.detach()};
g.h.hF=function(a,b,c){if(!xs(this,b,a)&&(a=Mh(c)&&c.responseXML?c.responseXML:null)){zs(this,a);g.O(this.g.getRootNode(),this.tb+"-loaded");a=[];for(var d in this.A){b=this.A[d].annotation;if(b.o)if(c=b.o,c.g.length)if(c=c.g[0].o||c.g[0].g||c.g[0].A,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d};"marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=
b.B,f.visible=!0);b=new g.cn(c,e,f);a.push(b)}}gn(this,a)}};
g.h.vH=function(a){this.F&&a==this.g.getVideoData().videoId&&(this.loaded?sea(this):this.load())};
g.h.Jf=function(a){vs.M.Jf.call(this,a);a=a.getId();var b=this.A[a];b&&!b.C&&(b=b.annotation,Cs(this,a),Gp(this.ka,b.Jb))};
g.h.Kf=function(a){vs.M.Kf.call(this,a);Ds(this,a.getId())};
g.h.Ms=function(a){if(a){a.isVisible=!1;if(a.g){ts(a);var b=a.g;b.o&&R(b.o,!1);b.A&&b.A.oa()&&R(b.A.oa(),!1);b.L&&(b.F.Ca(b.L),b.L=null)}Fs(this,"shown",!1,a.annotation.id);this.Sj(a.annotation,"hidden")}};
g.h.Cv=function(a){a&&(a.show(),Fs(this,"shown",!0,a.annotation.id),this.Sj(a.annotation,"shown"))};
g.h.rH=function(a,b,c){var d=this.A[a];if(d&&b.value!=c){b.value=c;var e=!1;gq(d.annotation,function(a){e|=a.value});
vea(this,a,b,e)}};
g.h.gE=function(a){if(a&&a.id){var b=dq(a);if(b){var c=sp(b);if(c){var d=(0,g.z)(this.Sj,this,a,"click"),e=this.g.getVideoData();if("new"==xp(c,b.target)||Es(this,b,e.videoId))d(),d=null;Hp(this.ka,a.Jb,d)}}}};
g.h.Sj=function(a,b){Lda(a,function(c){if(c.trigger==b&&"openUrl"==c.type&&c.url){var d=this.g.getVideoData(),e;if(!(e=!Es(this,c.url,d.videoId))){e=vp(c.url);var f=fda(c.url);if(e){if(d.videoId==e)this.g.Ec(f||0);else{var k=ys(this).o;g.H6(k.app,e,void 0,void 0,void 0,void 0);f&&Cl(ys(this).o)&&ys(this).o.Ec(f)}e=!0}else e=!1;e=!e}e&&(d=wp(c.url,a.id,d.videoId,g.V(this.g)))&&(this.g.fd(),e=xp(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=g.Dh(c),f=null,"ei"in e&&(f={ei:e.ei},c=eg(c,"ei")),g.mo(c,
d,f))}},this)};
g.h.pF=function(){Fs(this,"playerControlShow",!1)};
g.h.XG=function(){Fs(this,"playerControlShow",!0)};
g.h.LK=function(a){Fs(this,"rollOver",!0,a.id)};
g.h.Lf=function(a){Fs(this,"rollOver",!1,a.id)};
g.h.GE=function(a){a&&a.id&&(this.A[a.id].C=!0,Ds(this,a.id),Ip(this.ka,a.Jb),this.Sj(a,"close"),Fs(this,"closed",!0,a.id))};
g.h.R=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)nr(a[b]);this.O.length=0;vs.M.R.call(this)};var Is={AW:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
uN:function(a,b){a.splice(0,b)},
Mk:function(a){a.reverse()}};Ms.prototype.set=function(a,b){this.g[a]!==b&&(this.g[a]=b,this.A="")};
Ms.prototype.get=function(a){Os(this);return this.g[a]||null};
Ms.prototype.clone=function(){var a=new Ms(this.B);a.D=this.D;a.o=this.o;a.C=this.C;a.g=Wb(this.g);a.A=this.A;return a};Ws.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};g.h=dt.prototype;g.h.getDuration=function(a){return(a=et(this,a))?a.duration:0};
g.h.Zj=function(a){return this.getDuration(a)};
g.h.ji=function(){return this.xa.length?this.xa[0].g:-1};
g.h.Zb=function(){return this.xa.length?this.xa[this.xa.length-1].g:-1};
g.h.mp=function(){var a=this.xa[this.xa.length-1];return a?a.endTime:window.NaN};
g.h.Jw=function(){return this.xa[0].startTime};
g.h.ek=function(){return this.xa.length};
g.h.Fl=function(){return 0};
g.h.Af=function(a){return(a=zea(this,a))?a.g:-1};
g.h.ws=function(a){return et(this,a).sourceURL};
g.h.rf=function(a){return(a=et(this,a))?a.startTime:0};
g.h.sf=function(){return 0<this.xa.length};
g.h.ls=function(){return 0};ht.prototype.set=function(a,b){this.g.get(a);this.o[a]=b;this.A=""};
ht.prototype.get=function(a){return this.o[a]||this.g.get(a)};var Dea=function(){if(g.dv)return jt(/Firefox\/([0-9.]+)/);if(g.Me||g.cv||g.rc)return nc;if(g.Uh)return jt(/Chrome\/([0-9.]+)/);if(hv&&!lc())return jt(/Version\/([0-9.]+)/);if(qx||px){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(ec);if(a)return a[1]+"."+a[2]}else if(rx)return(a=jt(/Android\s+([0-9.]+)/))?a:jt(/Version\/([0-9.]+)/);return""}();lt.prototype.start=function(){return 0};
lt.prototype.end=function(){return window.Infinity};
lt.prototype.length=1;g.h=mt.prototype;g.h.addEventListener=function(){};
g.h.removeEventListener=function(){};
g.h.dispatchEvent=function(){return!1};
g.h.abort=function(){};
g.h.remove=function(){};
g.h.appendBuffer=function(){};g.C(g.nt,uk);g.h=g.nt.prototype;g.h.tg=function(){return!0};
g.h.oa=function(){return this.g};
g.h.ad=function(){return this.g.src};
g.h.Nl=function(a){var b=this.g.playbackRate;this.g.src=a;this.g.playbackRate=b};
g.h.Tu=function(){this.g.removeAttribute("src")};
g.h.Ap=function(){return this.g.playbackRate};
g.h.Dp=function(a){this.ka("Set playbackRate="+a);return this.g.playbackRate=a};
g.h.Kx=function(){return this.g.loop};
g.h.Cp=function(a){this.ka("Set loop="+a);this.g.loop=a};
g.h.Fh=function(){return this.g.paused};
g.h.Nx=function(){return this.g.seeking};
g.h.Cg=function(){return this.g.ended};
g.h.zp=function(){return this.g.muted};
g.h.oj=function(a){fr();this.ka("Set muted="+a);this.g.muted=a};
g.h.fk=function(){return this.g.played||mk()};
g.h.ef=function(){return this.g.buffered||mk()};
g.h.gk=function(){return this.g.seekable||mk()};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.Ml=function(a){this.ka("Set currentTime="+a);this.g.currentTime=a};
g.h.getDuration=function(){return this.g.duration};
g.h.load=function(){var a=this.g.playbackRate;this.g.load();this.g.playbackRate=a};
g.h.pause=function(){this.ka("Pause");this.g.pause()};
g.h.play=function(){this.ka("Play");var a=this.g.play();a&&a.then&&a.then(void 0,function(a){1E-4>Math.random()&&eh(a)})};
g.h.oe=function(){return this.g.readyState};
g.h.Ym=function(){return this.g.networkState};
g.h.vb=function(){return this.g.error?this.g.error.code:null};
g.h.Lx=function(){var a={};if(this.g){if(this.g.getVideoPlaybackQuality)return this.g.getVideoPlaybackQuality();this.g.webkitDecodedFrameCount&&(a.totalVideoFrames=this.g.webkitDecodedFrameCount,a.droppedVideoFrames=this.g.webkitDroppedFrameCount)}return a};
g.h.Mx=function(){return!!this.g.webkitCurrentPlaybackTargetIsWireless};
g.h.Ox=function(){return!!this.g.webkitShowPlaybackTargetPicker()};
g.h.Px=function(){this.g.webkitSetPresentationMode("picture-in-picture"==this.g.webkitPresentationMode?"inline":"picture-in-picture")};
g.h.qs=function(){return Zi(this.g)};
g.h.Bp=function(){return g.ij(this.g)};
g.h.setSize=function(a){return g.hj(this.g,a)};
g.h.getVolume=function(){return this.g.volume};
g.h.setVolume=function(a){fr();this.ka("Set volume="+a);this.g.volume=a};
g.h.Rr=function(a){if(!this.A[a]){var b=(0,g.z)(this.SL,this);this.g.addEventListener(a,b);this.A[a]=b}};
g.h.SL=function(a){this.dispatchEvent(new Hk(this,a.type,a))};
g.h.xo=function(a){a?this.g.setAttribute("crossorigin","anonymous"):this.g.removeAttribute("crossorigin")};
g.h.setAttribute=function(a,b){this.g.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.g.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.g.hasAttribute(a)};
g.h.Fj=ba(1);g.h.fl=ba(3);g.h.Jx=function(){wh(this.g)};
g.h.gd=function(a,b){g.Si(this.g,a,b)};
g.h.getStyle=function(a){return Ui(this.g,a)};
g.h.R=function(){for(var a in this.A)this.g.removeEventListener(a,this.A[a]);g.nt.M.R.call(this)};
g.h.ka=function(){};g.h=ot.prototype;g.h.append=function(a){this.o.webkitSourceAppend(this.A,a)};
g.h.abort=function(){this.o.webkitSourceAbort(this.A)};
g.h.aJ=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new Eea:this.o.webkitSourceBuffered(this.A)};
g.h.cJ=function(){return this.B};
g.h.gJ=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};g.h=pt.prototype;g.h.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};
g.h.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c)};
g.h.VL=function(){return this.g.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.A++).toString();this.g.webkitSourceAddId(b,a);a=new ot(this.g,b);this.sourceBuffers.push(a);return a};
g.h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.g.webkitSourceRemoveId(a.A);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.h.dJ=function(){switch(this.g.webkitSourceState){case this.g.SOURCE_CLOSED:return"closed";case this.g.SOURCE_OPEN:return"open";case this.g.SOURCE_ENDED:return"ended"}return""};
g.h.endOfStream=function(){this.g.webkitSourceEndOfStream(this.g.EOS_NO_ERROR)};
g.h.eJ=function(){bb(this.sourceBuffers)};
g.h.bJ=function(){return this.o};
g.h.fJ=function(a){this.o=a;this.g.webkitSourceSetDuration&&this.g.webkitSourceSetDuration(a)};g.C(qt,g.ir);qt.prototype.P=function(){if(!this.isDisposed()&&rt(this)&&!(0,window.isNaN)(this.B)){this.D||(this.A.duration=this.B,this.B=window.NaN);try{this.D||(this.g=this.A.addSourceBuffer(this.H),this.L?this.o=this.A.addSourceBuffer(this.J):this.o=new mt),this.C&&(this.C(this),this.C=null)}catch(a){this.G&&this.G(a)}}};
qt.prototype.N=function(){this.dispose()};var u7=0;g.h=Gt.prototype;g.h.Sn=function(){return!1};
g.h.Od=function(){return!!this.g&&!!this.index&&this.index.sf()};
g.h.Nw=function(){return!1};
g.h.Zu=function(a){return[a]};
g.h.Uk=function(a){return[a]};g.C(Pt,Gt);g.h=Pt.prototype;g.h.Gd=function(){return!1};
g.h.Mw=function(){return this.o};
g.h.Nw=function(){return this.C};
g.h.os=function(){return this.o||this.C?[]:[new Mt([new Ht(1,this,this.initRange)],this.G)]};
g.h.Eh=function(){};
g.h.Gl=function(a){return Qt(this,a.F?a.A+1:a.A,!1)};
g.h.mi=function(a,b){if(this.o&&g.qa(a)&&!(0,window.isFinite)(a))return new Mt([new Ht(3,this,null,-1)],"");var c=this.index.Af(a);b&&(c=Math.min(this.index.Zb(),c+1));return Qt(this,c,!0)};
g.h.Gs=function(a){this.g=new window.Uint8Array(yu(a).buffer)};
g.h.Sn=function(){return!1};
g.h.np=function(a){return 0==a.B||this.o?!0:this.index.Zb()>a.A&&this.index.ji()<=a.A+1};
g.h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=g.jb(a),0==d.xa.length)d.xa=a;else{var e=d.xa.length?g.Va(d.xa).endTime:0,f=a[0].g-d.Zb();1<f&&bb(d.xa);for(f=0<f?0:-f+1;f<a.length;f++){var k=a[f];k.startTime=e;k.endTime=k.startTime+k.duration;e+=a[f].duration;d.xa.push(a[f])}}gt(this.index,c);this.F=b};
g.h.Od=function(){return this.o||this.C?!0:Pt.M.Od.call(this)};Rt.prototype.update=function(a,b){var c=void 0;this.o&&(c=this.o);var d=new Rt,e=a.getElementsByTagName("S");if(e.length){var f=+Zs(a,"timescale")||1,k=+Zs(a,"startNumber")||0,l;l=+e[0].getAttribute("t")||0;var m=+Zs(a,"presentationTimeOffset")||0;l=c?c.qd+c.durationSecs:b?(l-m)/f:0;m=Date.parse(bt(Zs(a,"yt:segmentIngestTime")))/1E3;d.A="SegmentTemplate"==a.parentNode.tagName;d.A&&(d.D=Zs(a,"media"));var n=c?k-c.g:1;d.C=0<n?0:-n+1;for(n=0;n<e.length;n++)for(var q=e[n],t=+q.getAttribute("d")/f,w=(q.getAttribute("yt:sid")||
0)/f,x=+q.getAttribute("r")||0,A=0;A<=x;A++)if(c&&k<=c.g)k++;else{var F=new Pea(k,l,t,m+w);d.g.push(F);var I;I=q;var K=f,Ua=F.qd,lb=I.getAttribute("yt:cuepointTimeOffset"),F=I.getAttribute("yt:cuepointDuration");lb&&F?(Ua=+lb/K+Ua,K=+F/K,I=I.getAttribute("yt:cuepointContext")||null,I=new Ks(Ua,K,I)):I=null;I&&d.B.push(I);k++;l+=t;m+=t+w}d.g.length&&(d.o=g.Va(d.g))}this.C=d.C;this.o=d.o||this.o;kb(this.g,d.g);kb(this.B,d.B);this.A=d.A;this.D=d.D};
Rt.prototype.zf=function(a,b,c,d){for(var e=this.D.split("$$"),f=0;f<e.length;f++)e[f]=e[f].replace("$RepresentationID$",a),e[f]=e[f].replace("$Number$",c.toString()),e[f]=e[f].replace("$Bandwidth$",b.toString()),e[f]=e[f].replace("$Time$",d.toString());return e.join("$")};gu.prototype.skip=function(a){this.g+=a};xu.prototype.verify=function(){if(this.info.B!=this.range.length)return!1;if(1==this.info.g.info.o){if(8>this.info.B||4==this.info.type)return!0;var a=yu(this),b=a.getUint32(0,!1),a=a.getUint32(4,!1);if(2==this.info.type)return b==this.info.B&&1936286840==a;if(3==this.info.type&&0==this.info.o)return 1836019558==a||1936286840==a||1937013104==a||1718909296==a||1701671783==a||1936419184==a}else if(2==this.info.g.info.o){if(4>this.info.B||4==this.info.type)return!0;a=yu(this);b=a.getUint32(0,!1);if(3==
this.info.type&&0==this.info.o)return 524531317==b||440786851==b}return!0};g.h=Eu.prototype;g.h.Fl=function(a){return this.g[a]};
g.h.rf=function(a){return this.o[a]/this.B};
g.h.getDuration=function(a){a=this.Zj(a);return 0<=a?a/this.B:-1};
g.h.Zj=function(a){return a+1<this.Ga||this.A?this.o[a+1]-this.o[a]:-1};
g.h.ji=function(){return 0};
g.h.Zb=function(){return this.Ga-1};
g.h.mp=function(){return this.A?this.o[this.Ga]/this.B:window.NaN};
g.h.Jw=function(){return 0};
g.h.ek=function(){return this.Ga};
g.h.ws=function(){return""};
g.h.Af=function(a){a=g.sb(this.o.subarray(0,this.Ga),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.sf=function(){return 0<=this.Zb()};
g.h.ls=function(a,b){if(a>=this.Zb())return 0;for(var c=0,d=this.rf(a)+b,e=a;e<this.Zb()&&d>this.rf(e);e++)c=Math.max(c,(e+1<this.Ga||this.A?this.g[e+1]-this.g[e]:-1)/this.getDuration(e));return c};
g.h.cap=function(a,b){Fu(this);this.A=!0;this.o[this.Ga]=b;this.g[this.Ga]=a};g.C(Gu,Gt);g.h=Gu.prototype;g.h.os=function(a){var b=new Ht(1,this,this.initRange),c=new Ht(2,this,this.indexRange),d=[],e=[b];Jt(b,c)?e.push(c):(d.push(new Mt([c])),a=0);(0,window.isNaN)(this.o)?a=0:a>this.o&&(a=this.o);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&e.push(new Ht(4,this,Ys(b.range.end+1,a-c)));d.push(new Mt(e));return d};
g.h.Gs=function(a){if(1==a.info.type){if(this.g)return;var b;a.g.slice?b=new window.Uint8Array(a.g.slice(a.range.start,a.range.end+1)):(b=new window.Uint8Array(a.g,a.range.start,a.range.end+1),b=new window.Uint8Array(b));this.g=b}else if(2==a.info.type){if(this.C||0<=this.index.Zb())return;if(1==this.info.o){b=this.index;var c=yu(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),f=c.getUint8(a+8);a+=12;var k=c.getUint32(a+4,!1);b.B=k;a+=8;0==f?(f=c.getUint32(a,!1),k=c.getUint32(a+4,!1),a+=8):(f=
4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),k=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.g[0]=k+(e+d);b.o[0]=f;b.A=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var l=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;f=b;f.Ga++;Fu(f);f.g[f.Ga]=f.g[f.Ga-1]+l;f.o[f.Ga]=f.o[f.Ga-1]+k}}else this.C=yu(a)}if(2==this.info.o&&this.g&&this.C){a=new window.DataView(this.g.buffer);b=this.index;k=this.C;c=this.indexRange.end;a=new mu(a);if(tu(a,440786851)&&(ru(a),tu(a,408125543)&&(e=a,f=e.g,
d=nu(e,!0),e.g=f,a=ou(a),e=a.A+a.g,tu(a,357149030)))){a=ou(a);for(var l=1E6,m=1E9,f=0;!(a.g>=a.o.byteLength);){var n=nu(a,!1);if(2807729==n)l=qu(a);else if(2807730==n)m=qu(a);else if(17545==n){var f=a,n=nu(f,!0),q=0;4==n?q=f.o.getFloat32(f.g):8==n&&(q=f.o.getFloat64(f.g));f.g+=n;f=q}else ru(a)}b.B=m/l;a=new mu(k);if(tu(a,475249515)){a=ou(a);k=!0;for(l=!1;tu(a,187);){m=ou(a);n=e;if(tu(m,179))if(q=qu(m),tu(m,183)){for(var m=ou(m),t=n;tu(m,241);)t=qu(m)+n;q=[t,q]}else q=null;else q=null;k&&c==q[0]&&
(l=!0);k=!1;l&&(q[0]+=1);m=b;n=q[0];q=q[1];Fu(m);m.g[m.Ga]=n;m.o[m.Ga]=q;m.Ga++}b.cap(d+e,f)}}this.C=null}};
g.h.Zu=function(a){for(var b=this.Uk(a.info),c=[],d=a.C,e=0;e<b.length;e++)c.push(new xu(b[e],a.g,Ys(b[e].range.start+b[e].o-a.info.range.start+a.range.start,b[e].B),a.B,d)),d=!1;return c};
g.h.Uk=function(a){for(var b=0;b<this.index.Zb()&&a.range.start>=this.index.Fl(b+1);)b++;return Hu(this,b,a.range.start,a.range.length).g};
g.h.np=function(a){return this.Od()?!0:(0,window.isNaN)(this.o)?!1:a.range.end+1<this.o};
g.h.Eh=function(a,b){if(!this.Od()){var c=Ys(a.range.end+1,b);c.end+1>this.o&&(c=new Ws(c.start,this.o-1));return new Mt([new Ht(4,a.g,c)])}4==a.type&&(c=this.Uk(a),a=c[c.length-1]);var c=0,d=a.range.start+a.o+a.B;3==a.type&&(c=a.A,d==a.range.end+1&&(c+=1));return Hu(this,c,d,b)};
g.h.Gl=function(){};
g.h.mi=function(a,b){var c=this.index.Af(a);b&&(c=Math.min(this.index.Zb(),c+1));return Hu(this,c,this.index.Fl(c),0)};
g.h.Sn=function(){var a;if(a=this.Od()&&!(0,window.isNaN)(this.o))a=this.index,a=(a.A?a.g[a.Ga]:-1)!=this.o;return a};
g.h.Gd=function(){return!0};
g.h.Mw=function(){return!1};g.C(Iu,g.en);
Iu.prototype.fa=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.A=!0;this.C||(this.C=new Rea);Vea(this.C,a,this.da);this.$("refresh");for(a=0;a<b.length;a++){var c=Ru(this,b[a]),d=this.isLive&&1==c.o&&this.ga;if(!this.g[c.id]){var e=Ou($s(b[a],"BaseURL").textContent,c),f=$s(b[a],"Initialization"),k=Zs(f,"sourceURL"),f=Xs(Zs(f,"range"));d&&(k="",f=void 0);this.g[c.id]=new Pt(e,c,k,
null===f?void 0:f)}for(var c=this.g[c.id],e=this.C,k=c,f=1,l=k.info.mimeType.split(";"),m=[];0<f&&l.length;)m.push(l.shift()),f--;l.length&&m.push(l.join(";"));f=m[0];e=e.A[k.info.id]||e.o[f]||e.g||null;k=e.g;if(e.A)for(d=c,f=[],l=0;l<k.length;l++){var m=k[l],n=e.zf(d.info.id,8*d.info.g,m.g,m.qd);f.push(new ct(m.g,m.qd,m.durationSecs,m.o,n,null))}else for(e=nb($s(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.C),f=[],l=0;l<e.length;l++)f.push(efa(e[l],k[l],d));d=f;c.update(d,this.isLive,
this.P)}Wea(this.C);return!0}this.duration=at(Zs(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=Ru(this,k);e=$s(k,"BaseURL");d=Ou(e.textContent,c);f=$s(k,"SegmentBase");k=Xs(f.attributes.indexRange.value);f=Xs(f.getElementsByTagName("Initialization")[0].attributes.range.value);e=(0,window.parseInt)(e.getAttribute(Pu(this,"contentLength")),10);c=new Gu(d,c,f,k,e,window.NaN);if(!c){b=!1;break a}this.g[c.info.id]=c}b=!0}return b};
Iu.prototype.Td=function(a){return this.C?nb(this.C.B,a):this.G.length?nb(this.G,a):[]};
var Qu={commentary:1,alternate:2,dub:3,main:4};g.h=Iu.prototype;
g.h.JB=function(a){this.L=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.D=1E3*at(Zs(a,"minimumUpdatePeriod"))||window.Infinity;if(!this.N){var b;a:{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.Z=b}this.isLive=window.Infinity>this.D&&0!=this.la;this.P=(0,window.parseInt)(Zs(a,Pu(this,"earliestMediaSequence")),10)||0;if(b=Date.parse(bt(Zs(a,
Pu(this,"mpdResponseTime")))))this.O=((0,g.G)()-b)/1E3;Sq(a.getElementsByTagName("Period"),this.fa,this);this.F=2;this.$("loaded");(0,window.isFinite)(this.D)&&Uu(this);return this};
g.h.MB=function(a){this.L=a.g.status;this.F=3;this.$("loaderror");return qd(a.g)};
g.h.Lw=function(){if(1!=this.F&&!this.isDisposed()){var a;a:{a=this.g;for(var b in a){var c=a[b].index;if(c&&c.sf()){a=c.Zb()+1;break a}}a=0}a=g.ag(this.V,{start_seq:a.toString()});Su(this,a)}};
g.h.resume=function(){(0,window.isFinite)(this.D)&&Uu(this)};
g.h.CK=function(){return this.O};var gv={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},hfa=ib(gv.widevine,gv.playready);g.C(fv,g.L);fv.prototype.C=function(){if(!this.isDisposed())if(0==this.o.length)this.B(null);else{var a=this.o.shift(),b=this.g[a],c=ifa(this,b.g);window.navigator.requestMediaKeySystemAccess(a,c).then($g((0,g.z)(this.F,this,b)),$g((0,g.z)(this.C,this)))}};
fv.prototype.F=function(a,b){function c(b){a.B[b.contentType]=!0}
if(!this.isDisposed()){a.A=b;var d=b.getConfiguration();d.audioCapabilities&&(0,g.H)(d.audioCapabilities,c);d.videoCapabilities&&(0,g.H)(d.videoCapabilities,c);this.B(a)}};g.iv.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.g+"_"+this.id+"_"+this.isDefault};g.jv.prototype.getName=function(){return this.C};
g.jv.prototype.toString=function(){return this.o+": "+g.kv(this)+" - "+this.F};
g.jv.prototype.J=ba(4);lv.prototype.g=function(){return this.yc};
lv.prototype.toString=function(){return this.yc.name};
lv.prototype.getLanguageInfo=lv.prototype.g;nv.prototype.getValue=function(){return this.g};
nv.prototype.clone=function(){return new nv(this.od,this.g)};g.h=ov.prototype;g.h.remove=function(){var a=this.g,b=a.length,c=a[0];if(!(0>=b)){if(1==b)bb(a);else{a[0]=a.pop();for(var a=0,b=this.g,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].od<b[f].od?k:f;if(b[f].od>e.od)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.$a=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.rb=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].od);return b};
g.h.clone=function(){return new ov(this)};
g.h.xc=function(){return this.g.length};
g.h.isEmpty=function(){return g.J(this.g)};
g.h.clear=function(){bb(this.g)};g.C(qv,ov);g.C(rv,g.en);rv.prototype.J=function(a,b){this.o=this.o.onload=null;var c=this.g[a];c.A[b]=!0;wv(this);var d=c.Mc*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.Vm()-1)];this.$("l",c[0],c[1])};
rv.prototype.R=function(){this.o&&(this.o=this.o.onload=null);rv.M.R.call(this)};g.h=zv.prototype;g.h.yb=function(){return this.G};
g.h.getHeight=function(){return this.F};
g.h.Vm=function(){return this.o};
g.h.isDefault=function(){return-1!=this.B.indexOf("default")};
g.h.Ll=function(a){return g.te(0==this.C?Math.round(a*this.o/this.L):Math.round(1E3*a/this.C),0,this.Vm()-1)};
g.h.xp=function(){return this.o-1};
g.h.Ex=function(){return this.o?0:-1};
g.h.Fx=function(){};g.C(Av,rv);Av.prototype.A=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.D(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
Av.prototype.D=function(a,b,c,d){return new zv(a,b,c,d)};
Av.prototype.H=function(){};g.C(Bv,zv);g.h=Bv.prototype;g.h.Vm=function(){return this.g?this.g.ek():-1};
g.h.Ll=function(a){var b=this.rows*this.Mc*this.H,c=-1,d=-1,e=this.g;e&&(c=e.Zb(),d=e.Af(a));return d>c-b?-1:d};
g.h.xp=function(){return this.g?this.g.Zb():-1};
g.h.Ex=function(){return this.g?this.g.ji():-1};
g.h.Fx=function(a){this.g=a?a.index:null};g.C(Cv,Av);Cv.prototype.A=function(a,b){return Cv.M.A.call(this,"$N|"+a,b)};
Cv.prototype.D=function(a,b,c){return new Bv(a,b,c,this.L.isLive)};
Cv.prototype.H=function(a){for(var b=0;b<this.g.length;b++)this.g[b].Fx(a)};Dv.prototype.then=function(a,b,c){return this.A?this.A.then(a,b,c):1==this.o&&a?(a=a.call(c,this.g),jd(a)?a:Fv(a)):2==this.o&&b?(a=b.call(c,this.g),jd(a)?a:Ev(a)):this};
id(Dv);Dv.prototype.getValue=function(){return this.g};var kfa=/^([0-9\.]+)\:([0-9\.]+)$/;Pv.prototype.toString=function(){return this.topic};var Xv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};g.C(Qv,Nv);var Ov=new Pv("timing-sent",Qv);var rqa=u("yt.pubsub2.instance_")||new Cf;Cf.prototype.subscribe=Cf.prototype.subscribe;Cf.prototype.unsubscribeByKey=Cf.prototype.Ad;Cf.prototype.publish=Cf.prototype.oc;Cf.prototype.clear=Cf.prototype.clear;g.ka("yt.pubsub2.instance_",rqa,void 0);var Sv=u("yt.pubsub2.subscribedKeys_")||{};g.ka("yt.pubsub2.subscribedKeys_",Sv,void 0);var Uv=u("yt.pubsub2.topicToKeys_")||{};g.ka("yt.pubsub2.topicToKeys_",Uv,void 0);var Tv=u("yt.pubsub2.isAsync_")||{};g.ka("yt.pubsub2.isAsync_",Tv,void 0);
g.ka("yt.pubsub2.skipSubKey_",null,void 0);var sfa={vc:!0},hw={ad_at:"adType",cpn:"clientPlaybackNonce",csn:"clientScreenNonce",yt_lt:"loadType",yt_ad:"isMonetized",yt_ad_pr:"prerollAllowed",yt_red:"isRedSubscriber",yt_vis:"isVisible",docid:"videoId",plid:"videoId"},qfa="ap c cver ei yt_fss yt_li".split(" "),pfa=["isMonetized","prerollAllowed","isRedSubscriber","isVisible"],rfa=(0,g.z)(Xv.clearResourceTimings||Xv.webkitClearResourceTimings||Xv.mozClearResourceTimings||Xv.msClearResourceTimings||Xv.oClearResourceTimings||g.v,Xv);new g.Id(vfa,1E3);qw.prototype.g=function(a,b){var c=Math.pow(this.C,a);this.A=b*(1-c)+c*this.A;this.B+=a};
qw.prototype.o=function(){return this.A/(1-Math.pow(this.C,this.B))};rw.prototype.g=function(a,b){tw(this,"index");this.B.push({index:this.H++,weight:a,value:b});this.A+=a;for(tw(this,"index");this.A>this.F;){var c=this.A-this.F,d=this.B[0];d.weight<=c?(this.A-=d.weight,this.B.shift()):(this.A-=c,d.weight-=c)}};
rw.prototype.o=function(){return this.D?(uw(this,this.C-this.D)+uw(this,this.C)+uw(this,this.C+this.D))/3:uw(this,this.C)};vw.prototype.g=function(a,b){this.A.push(b);this.A.length>this.B&&this.A.shift()};
vw.prototype.o=function(){return Zaa.apply(null,this.A)};g.C(Fw,g.en);Fw.prototype.remove=function(a){var b=this.get(a);delete this.g[a];return b};
Fw.prototype.get=function(a){return this.g[a]||null};
Fw.prototype.isEmpty=function(){return g.Tb(this.g)};var Hw={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Iw={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Jw=/^(\d*)_((\d*)_?(\d*))$/;g.C(Mw,ya);Mw.prototype.name="BiscottiError";Nw.prototype.then=function(a,b,c){try{if(g.p(this.o))return a?pd(a.call(c,this.o)):pd(this.o);if(g.p(this.g)){if(!b)return qd(this.g);var d=b.call(c,this.g);return!g.p(d)&&this.g.o?qd(this.g):pd(d)}throw Error("Invalid Result_ state");}catch(e){return qd(e)}};
id(Nw);var Qw={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ow=null;var Sfa={oS:"red",gU:"white",dO:"blue"};Vw.prototype.g=function(a){return"true"==this.flags[a]};
Vw.prototype.o=function(a){return(0,window.parseFloat)(this.flags[a])||0};
Vw.prototype.H=function(a){return this.flags[a]?this.flags[a].toString():""};var Gfa="9h 9 h 8 ( H *".split(" "),cx="h98H(*".split(""),Ifa="oMavAV".split(""),Lfa=["sa"],Kfa="moMavAV".split(""),Jfa="aoMvAV".split(""),Hfa=["f"],Cfa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Dfa={"application/x-mpegURL":"maybe"},Bfa={"application/x-mpegURL":"maybe"};var ox="blogger books docs google-live play picasaweb gmail".split(" ");g.C(zx,g.L);var Bx={fO:"cbrand",gO:"cbr",hO:"cbrver",qQ:"c",tQ:"cver",sQ:"ctheme",rQ:"cplayer",WQ:"cmodel",BR:"cnetwork",LR:"cos",MR:"cosver",QR:"cplatform"};
zx.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=Ex(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.Ix(this)?(d="https://"+c+"/fire",b.v=a):(d=this.ga+"://"+c+"/watch",b.v=a,Ck&&(a=u("yt.www.ads.biscotti.lastId_")||"")&&(b.ebc=a));return g.ag(d,b)};
zx.prototype.isAd=function(){return"adunit"==this.g};g.C(Nx,vi);
Nx.prototype.o=function(){if(!this.g||this.g.isDisposed()){var a=this.B;Vfa(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.o.length;d<e;++d){var f=a.o[d];c[f.itag]=f;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+f.itag.toString()+'",URI="'+f.url+'"')}d=0;for(e=a.g.length;d<e;++d){var k=a.g[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.yr+","+f.yr)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}this.g=new sk("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(b.join("\n")))}return this.g};g.C(Px,vi);Px.prototype.o=function(){return new sk(this.g?Ns(this.g):this.B)};
Px.prototype.A=function(){return this.g?(this.g=Rs(this.g,1),!0):!1};g.C(Rx,vi);Rx.prototype.o=function(){return new sk(this.g)};g.C(g.Sx,g.en);g.Sx.D=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;g.Sx.o=1;g.Sx.C=18E3;g.Sx.A="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");g.Sx.B="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
g.Sx.g={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"};g.h=g.Sx.prototype;g.h.yD=function(a){(this.H=a)&&"fairplay"==this.H.g&&(this.H.fairPlayCert=this.fairPlayCert);$x(this)};
g.h.VE=function(a){this.isDisposed()||(Yx(this,a),this.o&&this.g.subscribe("refresh",this.fu,this),g.cw("mrc"),Ju(this.g)&&(this.va=!0),$x(this))};
g.h.UE=function(a){this.isDisposed()||(this.V=!1,this.$("dataloaderror",new g.ti("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.fu=function(){this.isDisposed()||(this.g.isLive||this.g.Ka("refresh",this.fu,this),this.tr())};
g.h.tr=function(){var a=this.g.Td(this.Mh);0<a.length&&(this.$("cuepointupdated",a),this.Mh+=a.length)};
g.h.KD=function(a){if(this.spacecastFormatMap){var b=Zx(this,this.spacecastFormatMap),b=Qx(b,dy(this,a),a.experiments.g("html5_progressive_fallback"));return Yw(a.G,b).then(this.al,void 0,this).then(this.Vr,void 0,this)}return Ev()};
g.h.HD=function(a){var b=Xx(this)||a.xk;if(this.g&&!b){if(!a.F){var b=this.g,c=this.o;if(!b.g["0"]){var d=new Ai(0,0,0,void 0,void 0,"auto"),d=new Ci("0","",void 0,d);b.g["0"]=c?new Pt(new Ms("http://www.youtube.com/videoplayback"),d,"fake"):new Gu(new Ms("http://www.youtube.com/videoplayback"),d,new Ws(0,0),new Ws(0,0),0,window.NaN)}}return gx(a.G,this.g,this.H,!1,Tfa(a)).then(this.Ao,void 0,this)}return Ev()};
g.h.ID=function(a){if(this.hlsFormats){var b=Zx(this,this.hlsFormats);return Yfa(a,b,this.Eb).then(this.al,void 0,this)}return Ev()};
g.h.LD=function(a){if(this.na&&this.Up){var b=Zfa(this.na);a=Yw(a.G,b).then(this.al,void 0,this)}else a=Ev();return a};
g.h.JD=function(a){var b=Zx(this,this.fa,this.fmtList);if(this.hlsvp){var c;c=this.hlsvp;var d=this.Eb,e={cpn:this.clientPlaybackNonce};-1==c.indexOf("/ibw/")&&(e.ibw=d?String(d):"1369843");c={url:g.ag(c,e),type:"application/x-mpegURL",quality:"auto",itag:"93"};b.push(c)}b=Qx(b,dy(this,a),a.experiments.g("html5_progressive_fallback"));return Yw(a.G,b).then(this.al,void 0,this)};
g.h.Ao=function(a){a=(this.B=a)?this.B.audioTracks:[];a=a.concat(this.uc);for(var b=0;b<this.tf.length;b++)for(var c=this.tf[b],d=0;d<a.length;d++){var e=a[d],f=e.yc.id==c.aid;if(e.yc.isDefault&&b==this.Vk||f){if(c.i)for(var f=c.i.split(","),k=0;k<f.length;k++)e.captionTracks[k]=this.captionTracks[(0,window.parseInt)(f[k],10)];c.d&&(e.Jm=this.captionTracks[(0,window.parseInt)(c.d,10)]);c.f&&(e.Wj=this.captionTracks[(0,window.parseInt)(c.f,10)]);e.kr=(0,window.parseInt)(c.v,10)}}};
g.h.al=function(a){this.fb=a;this.Ao(new mv((0,g.S)(this.fb,function(a){return a.Kd})))};
g.h.Vr=function(){var a=we(this.B.videoInfos,function(a,c){return c.video.isAccelerated&&(!a||a.height<c.video.height)?c.video:a},null);
a&&(this.sb=this.ib=a=Ji(a.quality,a.quality,!0))};
g.h.Ee=function(a){return g.y(this.keywords[a])?this.keywords[a]:null};
g.h.fv=function(){var a={format:"RAW",method:"GET",withCredentials:this.nq};this.Oq&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});0<this.Fg&&(a.timeout=this.Fg);var b=this.Ih;0<this.ue&&(b=g.Gh(b,{playerretry:this.ue}));this.Zv?Ls(ri,b,a).then($g(this.iu),$g(this.mF),this):(a.context=this,a.Cb=this.iu,a.onError=this.nn,g.li(b,a));g.cw("vir");g.cw("vir",void 0,"video_to_ad");this.Xv=(0,g.Ok)()};
g.h.bd=function(a,b){if(30==this.Na){var c=this.Ei["default.jpg"];return c?c:this.videoId?g.ag("//docs.google.com/vt",{id:this.videoId,authuser:this.hc,authkey:this.Qk}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.Ei[b])||a.J||"sddefault.jpg"==b||"hq720.jpg"==b||"maxresdefault.jpg"==b?c:Fx(a,this.videoId,b)};
g.h.ck=function(){return this.eq};
g.h.iu=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.V=!1;var c=g.Bh(b);"fail"==c.status?this.$("onStatusFail",c):(g.cw("virc"),g.cw("virc",void 0,"video_to_ad"),(0,g.H)(g.Sx.A,function(a){a in this.C&&(c[a]=this.C[a])},this),Tx(this,c),iy(this)?$x(this):this.$("dataloaderror",new g.ti("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.nn(a)}};
g.h.mF=function(a){this.nn(a.g)};
g.h.nn=function(a){if(!this.isDisposed()){var b=a?a.status:-1;a=this.ue>=this.ci||400==b;var c=200<b?"manifest.net.badstatus":"manifest.net.connect",d=(((0,g.Ok)()-this.Xv)/1E3).toFixed(3),b={backend:"gvi",rc:b,rt:d};a&&this.ci?(c="manifest.net.retryexhausted",b.urllen=this.Ih.length):a||(this.ue++,this.qq.start());this.$("dataloaderror",new g.ti(c,a,b))}};
g.h.Ch=function(){return null};
g.h.Qb=function(){return this};
g.h.ik=function(a){return a.getVideoUrl(this.videoId)};my.prototype.toString=function(){return this.type+this.id};g.C(g.qy,g.en);g.h=g.qy.prototype;g.h.hasNext=function(a){return this.G||!!a||this.g+1<this.B};
g.h.Qb=function(a,b){var c=void 0!=a?a:this.g,c=this.o&&c in this.o?this.o[this.A[c]]:null,d=null;c&&(b&&(c.autoplay="1"),d=new g.Sx(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.bd=function(a,b){b=b||"hqdefault.jpg";var c=this.O[b];if(c||a.J||"sddefault.jpg"==b||"hq720.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.L.length)return Fx(a,this.L[0],b)};
g.h.ck=function(){return null};
g.h.Ch=function(){return this.listId?this.listId.toString():null};
g.h.ik=function(a){return a.getVideoUrl(this.Qb().videoId,this.Ch())};
g.h.R=function(){this.D=null;g.Db(this.o);g.qy.M.R.call(this)};g.C(g.yy,g.en);g.yy.prototype.load=function(){this.loaded=!0};
g.yy.prototype.unload=function(){this.loaded=!1};
g.yy.prototype.R=function(){this.loaded&&this.unload();g.yy.M.R.call(this)};g.C(g.zy,g.W);g.zy.prototype.subscribe=function(a,b,c){return this.L.subscribe(a,b,c)};
g.zy.prototype.Ka=function(a,b,c){return this.L.Ka(a,b,c)};
g.zy.prototype.Ad=function(a){return this.L.Ad(a)};
g.zy.prototype.$=function(a,b){return this.L.$.apply(this.L,arguments)};g.C(g.Jy,g.W);var v7;
v7={bz:["BC","AD"],az:["Before Christ","Anno Domini"],Oz:"JFMAMJJASOND".split(""),lA:"JFMAMJJASOND".split(""),kq:"January February March April May June July August September October November December".split(" "),yq:"January February March April May June July August September October November December".split(" "),uq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),zq:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Mq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Bq:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
wq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Aq:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AR:"SMTWTFS".split(""),mA:"SMTWTFS".split(""),fA:["Q1","Q2","Q3","Q4"],Yz:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Lp:["AM","PM"],Sl:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Gq:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Wy:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Ul:6,vA:[5,6],Vl:5};g.w7=v7;g.w7=v7;var x7={Tp:".",Wl:",",oq:"%",dm:"0",Vz:"+",Jz:"-",Wp:"E",pq:"\u2030",Xl:"\u221e",Nz:"NaN",Sp:"#,##0.###",eA:"#E0",Uz:"#,##0%",Uy:"\u00a4#,##0.00",Xy:"USD"},vO=x7,vO=x7;Ky.prototype.clone=function(){return new Ky(this.D,this.C,this.g,this.o,this.A,this.B)};
Ky.prototype.times=function(a){return new Ky(this.D*a,this.C*a,this.g*a,this.o*a,this.A*a,this.B*a)};
g.h=Ny.prototype;g.h.Xr=g.w7.Ul;g.h.Yr=g.w7.Vl;g.h.clone=function(){var a=new Ny(this.date);a.Xr=this.Xr;a.Yr=this.Yr;return a};
g.h.getFullYear=function(){return this.date.getFullYear()};
g.h.getMonth=function(){return this.date.getMonth()};
g.h.getDate=function(){return this.date.getDate()};
g.h.getTime=function(){return this.date.getTime()};
g.h.getDay=function(){return this.date.getDay()};
g.h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
g.h.getUTCMonth=function(){return this.date.getUTCMonth()};
g.h.getUTCDate=function(){return this.date.getUTCDate()};
g.h.getUTCHours=function(){return this.date.getUTCHours()};
g.h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
g.h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.h.toString=function(){return[this.getFullYear(),g.Ja(this.getMonth()+1,2),g.Ja(this.getDate(),2)].join("")+""};
g.h.valueOf=function(){return this.date.valueOf()};Fe(window.document);new N;!g.Me||g.oc(9);var y7=[{option:"#fff",message:"YTP_COLOR_WHITE"},{option:"#ff0",message:"YTP_COLOR_YELLOW"},{option:"#0f0",message:"YTP_COLOR_GREEN"},{option:"#0ff",message:"YTP_COLOR_CYAN"},{option:"#00f",message:"YTP_COLOR_BLUE"},{option:"#f0f",message:"YTP_COLOR_MAGENTA"},{option:"#f00",message:"YTP_COLOR_RED"},{option:"#080808",message:"YTP_COLOR_BLACK"}],z7=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],p3=[{option:"fontFamily",message:"YTP_FONT_FAMILY",
options:[{option:1,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:2,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:3,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:4,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:5,message:"YTP_FONT_FAMILY_CASUAL"},{option:6,message:"YTP_FONT_FAMILY_CURSIVE"},{option:7,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:y7},{option:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0,
text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:y7},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:z7},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:y7},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:z7},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{option:0,message:"YTP_EDGE_STYLE_NONE"},{option:4,message:"YTP_EDGE_STYLE_DROP_SHADOW"},
{option:1,message:"YTP_EDGE_STYLE_RAISED"},{option:2,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:3,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:[{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}]}];$b("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));g.C(g.Qy,g.en);g.h=g.Qy.prototype;g.h.cancel=function(){this.B&&(this.B=!1,this.$("dragend",0,0,null));this.o&&(this.o=!1,this.$("hoverend",0,0,null),g.kr(this.g),Py(this))};
g.h.bw=function(a){g.kr(this.g);Ry(this,Sy("move"),this.$v);Ry(this,Sy("out"),this.aw);Ry(this,"touchstart",this.ep);this.A&&Ry(this,Sy("down"),this.cp);var b=g.Yj(a);a=bk(a);this.o=!0;this.$("hoverstart",a.x,a.y,b);this.$("hovermove",a.x,a.y,b)};
g.h.$v=function(a){var b=g.Yj(a);a=bk(a);if(this.C){var c=ak(this.C),d=bk(this.C);d.x==a.x&&d.y==a.y&&c==b||this.$("hovermove",a.x,a.y,b)}else this.$("hovermove",a.x,a.y,b);this.C=null};
g.h.aw=function(a){var b=bk(a),c=ak(a);c&&g.df(this.D,c)?(this.C=a,this.$("hovermove",b.x,b.y,c)):(g.kr(this.g),Py(this),this.o=!1,this.$("hoverend",b.x,b.y,c))};
g.h.ND=function(a){this.bw(a);this.cp(a)};
g.h.cp=function(a){if(!g.qa(a.button)||0==a.button){g.kr(this.g);this.g.U(window.document,Sy("move"),this.MD);this.g.U(window.document,Sy("up"),this.jJ);var b=g.Yj(a);if(qc)Ry(this,"dragstart",this.eB);else if(g.ck(a),(g.Lx||Pi)&&b)a:{for(var c=b;c;){if(kf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.B=!0;a=bk(a);this.$("dragstart",a.x,a.y,b);this.$("dragmove",a.x,a.y,b)}};
g.h.eB=function(a){g.ck(a)};
g.h.MD=function(a){var b=g.Yj(a);b==window.document&&(b=null);a=bk(a);this.$("hovermove",a.x,a.y,b);this.$("dragmove",a.x,a.y,b)};
g.h.jJ=function(a){g.kr(this.g);this.B=!1;var b=Zj(a),c=g.Yj(a);a=bk(a);b&&g.df(this.D,b)?(Ry(this,Sy("move"),this.$v),Ry(this,Sy("out"),this.aw),Ry(this,Sy("down"),this.cp),Ry(this,"touchstart",this.ep),this.$("dragend",a.x,a.y,c)):(Py(this),this.o=!1,this.$("dragend",a.x,a.y,c),this.$("hoverend",a.x,a.y,c))};
g.h.ep=function(a){var b=a.changedTouches[0];b&&(g.kr(this.g),Ry(this,"touchmove",this.kJ),Ry(this,"touchend",this.cw),Ry(this,"touchcancel",this.cw),this.F=b.identifier,a=g.Yj(a),this.o||(this.o=!0,this.$("hoverstart",b.pageX,b.pageY,a)),this.$("hovermove",b.pageX,b.pageY,a),this.A&&(this.B=!0,this.$("dragstart",b.pageX,b.pageY,a),this.$("dragmove",b.pageX,b.pageY,a)))};
g.h.kJ=function(a){var b=Ty(this,a);b&&(this.A&&g.ck(a),a=g.Yj(a),this.$("hovermove",b.pageX,b.pageY,a),this.A&&this.$("dragmove",b.pageX,b.pageY,a))};
g.h.cw=function(a){var b=Ty(this,a);if(b){g.kr(this.g);Py(this);this.o=!1;var c=g.Yj(a);this.A&&(this.G||g.ck(a),this.B=!1,this.$("dragend",b.pageX,b.pageY,c));this.$("hoverend",b.pageX,b.pageY,c)}};
g.h.R=function(){this.A&&(qc&&this.D.removeAttribute("draggable"),this.D.style.touchAction="");g.kr(this.g);g.Qy.M.R.call(this)};g.A7=RegExp("^((?:[\\d]{2}:)?[\\d]{2}:[\\d]{2}\\.[\\d]{3})[\\t ]+--\x3e[\\t ]+((?:[\\d]{2}:)?[\\d]{2}:[\\d]{2}\\.[\\d]{3}).*(?:\r\n|\r|\n)","gm");Uy.prototype.g=4;Uy.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]};
Uy.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(Uy.BYTES_PER_ELEMENT=4,Uy.prototype.BYTES_PER_ELEMENT=Uy.prototype.g,Uy.prototype.set=Uy.prototype.set,Uy.prototype.toString=Uy.prototype.toString,g.ka("Float32Array",Uy,void 0));Vy.prototype.g=8;Vy.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]};
Vy.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{Vy.BYTES_PER_ELEMENT=8}catch(a){}Vy.prototype.BYTES_PER_ELEMENT=Vy.prototype.g;Vy.prototype.set=Vy.prototype.set;Vy.prototype.toString=Vy.prototype.toString;g.ka("Float64Array",Vy,void 0)};g.Rh()&&(window.Float32Array.prototype.set=function(a,b){b=b||0;if(a.length)for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]});g.C(Wy,g.L);g.h=Wy.prototype;g.h.Hr=function(){if(!this.g){var a=this.Hr,b;"lb3"==g.V(this.aa).o?b=!1:(b=this.aa.getVideoData(),b=b.dc||b.captionTracks.length||b.o&&b.g&&null!=b.g.g.en?!0:!1);(a=Yy(this,"captions",a,b))&&!this.g&&(this.g=a,this.aa.ya("onApiChange"))}};
g.h.Cr=function(){this.B=this.B||Yy(this,"endscreen",this.Cr,g.Xy(this))};
g.h.Ir=function(){var a;if(!(a=this.o)){a=this.Ir;var b;b=g.V(this.aa).experiments;var c=g.Sh()&&b.g("enable_spherical_ps4"),d=b.g("enable_spherical_kabuki"),e=this.aa.getVideoData(),f=Mx(g.V(this.aa));b=g.ay(e)?f||b.A||c||d:g.Ct(e)?f||c||b.g("html5_enable_spherical3d"):g.by(e)?f||b.D:f&&(b.g("enable_webgl_noop")||b.g("enable_white_noise"));a=Yy(this,"webgl",a,b)}this.o=a};
g.h.Kr=function(){this.O=this.O||Yy(this,"ypc",this.Kr,g.al(this.aa.getVideoData(),"ypc_module"))};
g.h.Jr=function(){this.L=this.L||Yy(this,"ypc_clickwrap",this.Jr,g.al(this.aa.getVideoData(),"ypc_clickwrap_module"))};
g.h.Gr=function(){this.F=this.F||Yy(this,"spacecast",this.Gr,this.aa.getVideoData().spacecastModule)};
g.h.Er=function(){this.H=this.H||Yy(this,"heartbeat",this.Er,g.al(this.aa.getVideoData(),"ypc_license_checker_module"))};
g.h.Dr=function(){this.C=this.C||Yy(this,"fresca",this.Dr,g.al(this.aa.getVideoData(),"fresca_module"))};
g.h.TK=function(a){var b;var c=ua(a);b=this.ba[c];if(!b&&(b=a(this.aa))){a=this.ba[c]=b;for(var d in this.Z)a.subscribe(d,this.Z[d]);g.M(this,b)}b&&b.zd(this.aa)&&!g.ab(this.A,b)&&(this.A.push(b),b.create())};
g.h.bI=function(a,b){(0,g.H)(this.A,function(c){c.$(a,b)})};g.C(bz,Error);bz.prototype.$c=function(){return this.A};
bz.prototype.vb=function(){return this.g};
bz.prototype.Pb=function(){return this.B};
bz.prototype.toString=function(){return"AdError "+this.vb()+": "+this.$c()+(null!=this.zi?" Caused by: "+this.zi:"")};g.C(cz,ac);cz.prototype.getError=function(){return this.A};var dR="adMetadata callFlashVpaidMethod adCanPlay click companionBackfill companionInitialized complete destroyInsecureFlashVpaid durationChange firstquartile impression initInsecureFlashVpaid loaded log mediaUrlPinged midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked volumeChange vpaidEvent youTubeChannelMetadata".split(" "),B7="abandon acceptinvitation acceptinvitationlinear click close collapse companionClick complete creativeview endscreenClick engagedview exitfullscreen expand externalActivityEvent firstquartile fullscreen instreamAdComplete measurable_impression midpoint mute MUTE_AD pause progress replay resume rewind show_ad skipshown skip start stop thirdquartile unmute userClose video_card_endcap_action video_card_endcap_collapse video_card_endcap_dismiss video_card_endcap_impression videoShareClicked videoShareShown viewable_impression why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
sqa="acceptinvitation click close collapse creativeview expand progress".split(" "),C7=["viewable_impression","measurable_impression","externalActivityEvent"],D7={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};g.C(dz,ac);dz.prototype.Hb=function(){return this.A};
var Hma={aN:"adCanPlay",HO:"contentPauseRequested",IO:"contentResumeRequested",Rl:"click",RT:"videoClicked",TT:"videoIconClicked",Vp:"engagedview",HP:"expandedChanged",WS:"start",xj:"impression",iq:"measurable_impression",Kq:"viewable_impression",$p:"fully_viewable_audible_half_duration_impression",IP:"externalActivityEvent",PAUSED:"pause",vS:"resume",Yp:"firstquartile",jq:"midpoint",Fq:"thirdquartile",Qp:"complete",xP:"durationChange",WN:"autoClose",JT:"userClose",KT:"userRecall",cS:"prefetched",
Yl:"loaded",NN:"allAdsCompleted",xq:"skip",iA:"skipshown",DQ:"linearChanged",QS:"skippableStateChanged",bN:"adMetadata",$M:"adBreakReady",OQ:"log",VOLUME_CHANGED:"volumeChange",aU:"mute",xO:"companionBackfill",nU:"youTubeVideoMetadata",mU:"youTubeChannelMetadata",IT:"urlNavigationRequested",wT:"trackingUrlPinged",NT:"video_card_endcap_action",OT:"video_card_endcap_collapse",PT:"video_card_endcap_dismiss",QT:"video_card_endcap_impression",jU:"why_this_ad_url",iU:"why_this_ad_got_it",zR:"MUTE_AD",AO:"companionInitialized",
zO:"companionImpression",yO:"companionClick",VQ:"mediaUrlPinged"};var Cz={vz:5E3,wz:15E3,Zz:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com www.google.com/pagead/sul www.google.com/pagead/xsul www.youtube.com/pagead/sul www.youtube.com/pagead/psul www.youtube.com/pagead/slav".split(" "),$z:/\bocr\b/,Fm:0,lf:{},wI:function(a,b,c){a&&(Cz.sD(a)?Cz.qv(a,b):Cz.jv(a,b,c))},
sD:function(a){return D(E(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new gg(a)).lg().match(Cz.$z)?!0:null!=g.Xa(Cz.Zz,function(b){return null!=a.match(b)})},
qv:function(a,b){if(a&&(a=Cz.wB(a),!D(a))){var c='javascript:"<body><img src=\\""+'+a+'+"\\"></body>"';b?Cz.zt(function(b){Cz.gv(b?c:'javascript:"<body><object data=\\""+'+a+'+"\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):Cz.gv(c)}},
gv:function(a){var b=g.P("IFRAME",{src:a,style:"display:none"});a=De(b).body;var c,d=Gd(function(){Oc(c);g.Ye(b)},Cz.wz);
c=Mc(b,["load","error"],function(){Gd(function(){Hd(d);g.Ye(b)},Cz.vz)});
a.appendChild(b)},
zt:function(a,b){var c=Cz.lf.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete Cz.lf[c];d||(d=!0,null!=Cz.lf.imageLoadingEnabled||(Cz.lf.imageLoadingEnabled=b),a(b))};
b?b(c):Cz.ED(c)}},
ED:function(a){var b=new window.Image,c,d=""+Cz.Fm++;Cz.lf[d]=b;b.onload=function(){(0,window.clearTimeout)(c);a(!0,d)};
c=(0,window.setTimeout)(function(){a(!1,d)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
vI:function(a){if(a){var b=g.Re("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+Cz.Fm++;Cz.lf[c]=b;b.onload=b.onerror=function(){delete Cz.lf[c]};
window.document.body.appendChild(b)}},
hv:function(a){if(a){var b=new window.Image,c=""+Cz.Fm++;Cz.lf[c]=b;b.onload=b.onerror=function(){delete Cz.lf[c]};
b.src=a}},
jv:function(a,b,c){if(a){if(c)try{if(r.navigator&&r.navigator.sendBeacon&&r.navigator.sendBeacon(a,""))return}catch(d){}b?Cz.zt(function(b){b?Cz.hv(a):Cz.vI(a)}):Cz.hv(a)}},
wB:function(a){a=de(fe(a));if("about:invalid#zClosurez"===a)return"";a=me(oe(a));return Ba(g.tf(a))}};hz.prototype.g=function(){return this.P};
var X=new hz;var UK=["ADSENSE","ADSENSE/ADX"],jka=["DART","DART_DFA","DART_DFP"],tka=["FREEWHEEL","YT:FREEWHEEL"],XJ=["SHOPPING","YT:SHOPPING"],aK=["GDFP"],ika=["VIRAL","ADSENSE-VIRAL"],hka=["VIRAL-RESERVE"],rI={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","application/javascript":"Javascript","text/javascript":"Javascript","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},AP={eR:"video/mp4",gR:"video/mpeg",
SQ:"application/x-mpegURL",GR:"video/ogg",hT:"video/3gpp",dU:"video/webm",dR:"audio/mpeg",fR:"audio/mp4"};iz.prototype.g=function(){return!1};
iz.prototype.o=function(){return window.NaN};
iz.prototype.A=function(){return""};jz.prototype.getId=function(){return this.Da};kz.prototype.getId=function(){return this.Da};var nz=null;var xga=["//video.google.com/ad/shoppingsyndication/"],tqa=["google-developers.appspot.com","devsite.googleplex.com"],Dia=["*.googlesyndication.com","gcdn.2mdn.net"],wga=["*.youtu.be","*.youtube.com"],Aga="ad.doubleclick.net bid.g.doubleclick.net corp.google.com ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),
zga=["c.googlesyndication.com"],Ila=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];Ez.prototype.vb=function(){return this.errorCode};
Ez.prototype.$c=function(){return this.message};
var Sla=new Ez("Unable to request ads from server. Cause: {0}.",1005),Jla=new Ez("Unable to request ads from server due to network error.",1012),FL=new Ez("Cannot parse the {0} value for the adslist response: {1}.",900),xP=new Ez("Invalid usage of the API. Cause: {0}",900),Qma=new Ez("Asset fallback ad replacement.",1021),Rma=new Ez("Asset fallback no ad replacement.",1021),E7=new Ez("Unable to display one or more required companions.",602),VN=new Ez("There was a problem requesting ads from the server.",
1005),F7=new Ez("There was a problem requesting the biscotti ID.",1005),Hla=new Ez("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),xN=new Ez("The provided ad type: {0} is not supported.",1005),IE=new Ez("The provided {0} information: {1} is invalid.",1101),uqa=new Ez("The provided skip offset was invalid.",1105),vqa=new Ez("The extension contained is neither skippable nor nonskippable.",1105),SI=new Ez("The response does not contain any valid ads.",1009),wqa=new Ez("The overlay ad content could not be displayed since creative dimensions do not align with display area.",
501),Ika=new Ez("The ad playlist response was malformed or empty.",1010),GL=new Ez("The ad response was not understood and cannot be parsed.",1010),Mla=new Ez("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),ana=new Ez("The ad response contains unexpected element. Cause {0}.",1010),jO=new Ez("No assets were found in the VAST ad response.",200),Zja=new Ez("Duplicate node in <{0}>: {1}",101),aN=new Ez("The VAST response document is empty.",1009),
Fma=new Ez("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),RI=new Ez("Ad request reached a timeout.",301),bN=new Ez("VAST response was malformed and could not be parsed.",100),G7=new Ez("VAST media file loading reached a timeout of {0} seconds.",402),TI=new Ez("Ad request could not be completed due to a network error.",301),xqa=new Ez("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
503),H7=new Ez("There was an error displaying the media file.",405),Nja=new Ez("The maximum number of VAST wrappers ({0}) has been reached.",302),yqa=new Ez("VAST media file duration differs from the VAST response duration by {0} seconds.",202),EQ=new Ez("Video player received an ad with unexpected or incompatible linearity",201),Yja=new Ez("Unknown node in <{0}>: {1}",101),Zka=new Ez("Invalid VAST resource type: {0}",101),hla=new Ez("Invalid VAST version",102),Oja=new Ez("No additional VAST wrappers allowed.",
300),YI=new Ez("No Ads VAST response after one or more Wrappers",303),KQ=new Ez("There was an error playing the video ad.",400),zqa=new Ez("VMAP unsupported node in <{0}>: {1}",1010),$P=new Ez("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);var aH="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var Xz={},Zz="",Tz=/OS (\S+) like/,Aqa=/OS X (\S+)\)/,Vz=/Android ([\d\.]+)/;dA.prototype.reset=function(){this.g=0;this.o=null};fA.prototype.reset=function(){this.o=this.g=null};var lA=new hA;hA.prototype.clear=function(){this.g=gA();this.C=this.J=this.o=null;this.B=gA();this.A=null;this.V=this.F=this.H="";this.G=this.P=this.D=null;this.Z=!1};g.la(kA);var pA="function"==typeof window.Uint8Array,qA=[];oA.prototype.toString=function(){xA(this);return this.o.toString()};
oA.prototype.getExtension=function(a){if(this.A){this.g||(this.g={});var b=a.A;if(a.B){if(a.o())return this.g[b]||(this.g[b]=(0,g.S)(this.A[b]||[],function(b){return new a.g(b)})),this.g[b]}else if(a.o())return!this.g[b]&&this.A[b]&&(this.g[b]=new a.g(this.A[b])),this.g[b];
return this.A[b]}};
oA.prototype.clone=function(){return new this.constructor(yA(wA(this)))};g.C(zA,oA);g.C(AA,oA);g.C(CA,oA);var Fga=[[9,10],[11,12]];CA.prototype.getStyle=function(){return uA(this,IA,1)};
g.C(DA,oA);var Gga=[[2,3]];g.C(EA,oA);g.C(FA,oA);g.C(GA,oA);g.C(HA,oA);var Hga=[[2]];g.C(IA,oA);g.C(JA,oA);g.C(KA,oA);var Iga=[1];KA.prototype.getStyle=function(){return uA(this,IA,2)};
g.C(vA,oA);vA.prototype.getStyle=function(){return uA(this,IA,3)};g.h=MA.prototype;g.h.GA=!1;g.h.Yq=!1;g.h.$q=!0;g.h.Hg=null;g.h.bitrate=-1;g.h.Vg=null;g.h.Lr=!1;g.h.mimeTypes=null;g.h.surveyCreativeData=null;g.h.WI=!0;g.h.Oo=!1;g.h.XI=!1;g.h.Qo=!1;g.h.Ro=!1;g.h.Qv=!1;g.h.Rv=!0;g.h.hB=!1;g.h.YI=!0;g.h.lm=!1;g.h.dB=!1;g.h.iJ=0;g.h.showContentThumbnail=!0;g.h.No=!1;g.h.lh=null;g.h.ce=15E3;g.h.ar=!0;g.h.Nu=0;g.h.mo=-1;g.h.Qs=null;g.h.shortViewCount=null;window.console&&"function"===typeof window.console.log&&(0,g.z)(window.console.log,window.console);var TA=null;PA.prototype.getName=function(){return this.C};
PA.prototype.getValue=function(){return this.g};
PA.prototype.o=function(){return String(this.g)};
g.C(QA,PA);QA.prototype.o=function(){return this.g?"1":"0"};
g.C(RA,PA);RA.prototype.o=function(){return this.g?Math.round(this.g.top)+"."+Math.round(this.g.left)+"."+(Math.round(this.g.top)+Math.round(this.g.height))+"."+(Math.round(this.g.left)+Math.round(this.g.width)):""};ZA.prototype.remove=function(a){Ub(this.g,a)};
ZA.prototype.set=function(a,b){this.g[a]=b};
ZA.prototype.get=function(a){return Vb(this.g,a,null)};new Ed(200);var I7={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},jE={Cq:"start",Yp:"firstquartile",jq:"midpoint",Fq:"thirdquartile",Qp:"complete",Iz:"metric",PAUSE:"pause",bA:"resume",xq:"skip",Kq:"viewable_impression",Mz:"mute",rA:"unmute",Zp:"fullscreen",ez:"exitfullscreen",$p:"fully_viewable_audible_half_duration_impression",iq:"measurable_impression",ty:"abandon",Vp:"engagedview",xj:"impression",Ty:"creativeview",Yl:"loaded",fS:"progress"},oia="start firstquartile midpoint thirdquartile resume loaded".split(" "),
Kha=["abandon"],kE={UNKNOWN:-1,Cq:0,Yp:1,jq:2,Fq:3,Qp:4,Iz:5,PAUSE:6,bA:7,xq:8,Kq:9,Mz:10,rA:11,Zp:12,ez:13,$p:14,iq:15,ty:16,Vp:17,xj:18,Ty:19,Yl:20};var HB=window.document,Y=window;var Xha=/https?:\/\/[^\/]+/;var J7=null;var eB=function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
r.addEventListener("test",null,b)}catch(c){}return a}();g.h=iB.prototype;g.h.Dk=function(){(0,g.H)(this.events,this.xr,this);this.events.length=0;this.enabled=!1};
g.h.Tk=function(a){this.events.push(a)};
g.h.xr=function(a){a=kB(a);var b=this.g.performance;b&&b.clearMarks&&(b.clearMarks(a+"_start"),b.clearMarks(a+"_end"))};
g.h.start=function(a,b){if(!this.enabled)return null;var c=new hB(a,b,mB(this,a),jB()),d=a+"_"+b;this.o[d]?this.o[d].push(c):this.o[d]=[c];lB(this,kB(c)+"_start");return c};
g.h.end=function(a,b){if(this.enabled){var c=a+"_"+b,d=this.o[c];d&&d.length&&(c=this.o[c].pop(),c.duration=jB()-c.value,lB(this,kB(c)+"_end"),this.Tk(c))}};AB.prototype.g=function(a,b,c,d,e){try{var f=e||this.C,k=new rB;k.C=!0;tB(k,1,"context",a);b instanceof BB||(b=CB(b));tB(k,2,"msg",b.message.substring(0,512));b.fileName&&tB(k,3,"file",b.fileName);0<b.lineNumber&&tB(k,4,"line",b.lineNumber.toString());b={};if(d)try{d(b)}catch(m){}d=[b];k.g.push(5);k.o[5]=d;var l=qB();l.o&&tB(k,6,"top",l.o.url||"");tB(k,7,"url",l.g.url||"");zB(this.A,f,k,!1,c)}catch(m){try{zB(this.A,f,{context:"ecmserr",rctx:a,msg:DB(m),url:l.g.url},!1,c)}catch(n){}}return this.o};var FB=!!window.google_async_iframe_id,GB=FB&&window.parent||window;var NB,JB;J7||(J7=dB(r,!0).tl);JB=J7;var nB=new iB(1,JB);NB=new AB(new xB("http:"===Y.location.protocol?"http:":"https:","pagead2.googlesyndication.com","/pagead/gen_204?id=",.01),"jserror",!0);"complete"==JB.document.readyState?KB():fB(JB,"load",KB);var Xga=NB.g;var K7=!1,L7="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(K7=!0,a.description)){L7=UB(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){K7=!0;L7="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],K7=!(!a||!a.enabledPlugin))){L7=UB(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");K7=
!0;L7=UB(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");K7=!0;L7="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),K7=!0,L7=UB(b.GetVariable("$version"))}catch(c){}})();
var NE=K7,ZB=L7;var Yga=function(){var a;return bqa?(a=/Windows NT ([0-9.]+)/,(a=a.exec(ec))?a[1]:"0"):YB?(a=/10[_.][0-9_.]+/,(a=a.exec(ec))?a[0].replace(/_/g,"."):"10"):g.sx?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(ec))?a[1]:""):Oz||Pz||cqa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(ec))?a[1].replace(/_/g,"."):""):""}();var VB={},WB=null;VB.le=0;VB.nt=2;VB.Fr=3;VB.Po=5;VB.me=1;VB.om=4;bC.prototype.update=function(a,b,c,d,e,f){c=dC(c.g);e=dC(b.g);e=-1==c||-1==e?-1:Math.max(c,e);d=d?e:c;this.C=-1!=this.C?Math.min(this.C,b.g):b.g;f&&(this.da=Math.max(this.da,b.g));-1!=d&&(this.ga[d]+=a);cC(this.ba,d,a);a=this.A;f=this.ba;c=[0,0,0,0,0];for(e=0;4>=e;e++)c[e]=Math.max(a[e],f[e]);this.A=c;a=this.ba;f=dC(b.g);for(c=0;4>=c;++c)if(c<f||b.B||-1==f)a[c]=0;return d};if(HB&&HB.URL){var cB=HB.URL,Bqa=!(cB&&0<Pga().length);NB.o=Bqa};var tD=0,$ga=(new Date).getTime(),hC=-1,jC=!1,kC=-1,lC=-1;rC.prototype.getStatus=function(){return this.g};
g.C(uC,rC);var AC={CT:-1,LOADING:0,mz:1,Py:2,yz:3,VISIBLE:4},jha={LOADING:0,mz:1,Py:2,oT:3,FR:4,zT:5,AT:6,yT:7,IR:8,nT:9},DC={};wC.prototype.G=function(a,b){if(!this.g)return!1;this.g.style.position="absolute";xC(this,b);var c=!0;try{a.appendChild(this.g)}catch(d){c=!1}return c};
wC.prototype.F=function(a,b){if(!this.g||!a.parentNode)return!1;this.g.style.position="fixed";xC(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.g,a.nextSibling)}catch(d){c=!1}return c};
wC.prototype.remove=function(){if(this.g)try{g.Ye(this.g)}catch(a){}this.g=null};
wC.prototype.H=function(a){this.A=a?3:4};
var Cqa=LB(145,function(a,b){var c=DC[a];ra(c)&&c(b)});
g.ka("gteh",Cqa,void 0);var oha={yz:0,VISIBLE:1},Dqa=new xe(-99999,0);GC.prototype.Z=function(){var a=IC(this);if(null===a)KC(this);else if(null===this.B)this.B=a,KC(this);else{var b=a-this.B;this.B=a;0==(4<=b?1:0)?(KC(this),HC(this,0)):(xC(this.o,Dqa),this.G=Y.setTimeout(PB(147,(0,g.z)(this.V,this)),125))}};
GC.prototype.V=function(){var a=IC(this),b=a-this.B;this.B=a;a=4<=b?1:0;KC(this);HC(this,0==a?1:0)};
g.C(MC,rC);MC.prototype.J=function(){var a=qha(this);this.F!=a&&(this.F=a,this.G(a))};
g.C(QC,rC);var uha=[3,7,8,5,5],vha=[3,4,4,5,6],wha=[3,4,5,6],xha=[3,5];RC.prototype.B=function(a){if(this.g&&this.g.contentWindow){var b=(0,g.z)(this.B,this);this.g.contentWindow.requestAnimationFrame(b);this.o||(this.o=(0,g.G)()-a);this.A=a}};
RC.prototype.isVisible=function(a){return 50>a-this.o-this.A};
RC.prototype.remove=function(){try{g.Ye(this.g)}catch(a){}this.g=null};g.la(TC);g.la(gC);var UC=new xf(0,0,0,0),Gha={threshold:[0,.3,.5,.75,1]};g.h=VC.prototype;g.h.dk=function(){return new bC};
g.h.Wd=function(){return this.Eb};
g.h.We=function(a,b,c,d,e,f,k){var l=k||{};k=this.xs(c,l);l=this.ym(a,b,d,l);g.qa(b)||(this.ga=new g.ze(b.right-b.left,b.bottom-b.top));this.Ko(k,l,e&&.5<=this.g.g,f);this.N=c;0<l.g&&0>this.Dd&&(this.Dd=c);-1==this.pe&&aD(this)&&(this.pe=c);-2==this.Db&&(this.Db=a&&a!=UC&&0!=this.L&&this.ga&&this.ga.height&&this.ga.width?this.Vh(a,new xf(0,this.ga.width,this.ga.height,0)):-1);this.g=l;d&&(this.g.g=0);this.Fc(this)};
g.h.Ko=function(a,b,c,d){this.Wd().update(a,b,this.g,c,.5,d)};
g.h.Zm=function(){return new TB};
g.h.ym=function(a,b,c){var d=this.Zm();d.B=c;c=RB(HB);d.o=0==c?-1:1==c?0:1;var e;g.qa(b)?d.g=this.Vh(b):(e=b,d.g=this.Vh(a,e));(a=e||null)?(a=(a.bottom-a.top)*(a.right-a.left),a=0<a?Math.min(this.L*d.g/a,1):0):a=0;d.C=a;return d};
g.h.xs=function(a){if(-1==this.N)return 0;a=a-this.N||1;return 1E4<a?1:a};
g.h.Vh=function(a,b){if(g.qa(a))return a;if(b){var c=WC(a,b),d;d=0>=this.L||0>=c.yb()||0>=c.getHeight()?!0:!1;return d?0:(c.bottom-c.top)*(c.right-c.left)/this.L}return 0};
g.h.Bj=function(a){if(this.A)return!0;if(this.la)return!1;this.P=a||1;if(!this.J||$B())return this.la=!0,!1;a=new uC(!1,this.P);var b=cha(a,this.J,String(this.tf));b?this.A=a:this.la=!0;return b};
g.h.bl=function(a,b){if($C(this))return!0;if(!this.element||!$B())return!1;this.P=b||1;var c=new MC(!1,this.P),d=nha(c,this.element,(0,g.z)(function(b){bD(this,iC(),!1,a,[0,.01,.5,1,.01,.3][b])},this));
d&&(this.D=c,OC(c));return d};
g.h.wk=function(){return!1};
g.h.Si=function(a){gC.getInstance();if(!this.J)return!1;a=a||1;var b=new QC(!1,a),c=rha(b,this.J);c&&(this.P=a,this.ca=b);return c};g.C(eD,TB);gD.prototype.Ba=function(a){var b=this.g[a],c=b[1];this.A+=b[0];0<c&&0==this.o[a]&&(this.o[a]=1)};g.C(iD,bC);iD.prototype.update=function(a,b,c,d,e,f){if(b.paused)return-1;d=iD.M.update.call(this,a,b,c,d,e,f);e=dC(e);e=-1!=d&&d<=e;f=fD(b)&&fD(c);qC(b.volume)&&(this.g=-1!=this.g?Math.min(this.g,b.volume):b.volume,this.B=Math.max(this.B,b.volume));e&&(this.N+=a,this.P+=a);this.o+=a;c.A&&(this.ca+=a,this.O+=a);f&&(this.Z+=a,this.G+=a,cC(this.V,d,a),0==d&&(this.F+=a),e?(this.H+=a,this.J+=a):this.L+=a,this.fa=Math.max(this.L,this.fa));if(e||!fD(b))this.L=0;return d};g.C(kD,VC);g.h=kD.prototype;g.h.Si=function(a){var b=gC.getInstance(),c=!b.g&&6==this.wa;return b.g&&5==this.wa||c?kD.M.Si.call(this,a||3):!1};
g.h.Bj=function(a){return kD.M.Bj.call(this,a||3)};
g.h.bl=function(a,b){return kD.M.bl.call(this,a,b||3)};
g.h.We=function(a,b,c,d,e,f,k){k=k||this.Xa(this)||{};this.O=k.duration||this.O;this.sb=k.isVpaid||this.sb;this.ab=f;kD.M.We.call(this,a,b,c,d,e,f,k)};
g.h.Ko=function(a,b,c,d){kD.M.Ko.call(this,a,b,c,d);this.ra[this.ra.length-1].update(a,b,this.g,c,.5,d);this.qb=fD(this.g)&&fD(b);-1==this.Oa&&this.ac&&(this.Oa=this.Wd().o);this.B.A=0;a=this.g;b=aD(this);.5<=a.g&&this.B.Ba("vs");b&&this.B.Ba("vw");qC(a.volume)&&this.B.Ba("am");this.qb&&this.B.Ba("a");this.F&&this.B.Ba("f");-1!=a.o&&(this.B.Ba("bm"),1==a.o&&this.B.Ba("b"));this.qb&&b&&this.B.Ba("avw");this.ab&&this.B.Ba("cm");this.ab&&0<a.g&&this.B.Ba("pv");nD(this,this.Wd().o)&&this.B.Ba("gdr")};
g.h.dk=function(){return new iD};
g.h.Wd=function(){return this.Eb};
g.h.Zm=function(){return new eD};
g.h.ym=function(a,b,c,d){a=kD.M.ym.call(this,a,b,c,d);a.A=this.F;a.paused=this.Z;a.volume=d.volume;qC(a.volume)||(this.qe++,d=this.g,qC(d.volume)&&(a.volume=d.volume));return a};
g.h.xs=function(a,b){var c=g.p(b.currentTime)?b.currentTime:this.va,d=mD(this,a),e=c-this.va,f=b.isYouTube,k=g.p(b.isPlaying)?b.isPlaying:!0,l=0;2!=this.Ia?(0<=e?(this.Aa+=d,this.Ta+=Math.max(d-e,0),l=Math.min(e,this.Aa)):this.Ib+=Math.abs(e),0!=e&&(this.Aa=0),-1==this.pa&&0<e&&(this.pa=0<=lC?iC()-lC:-1)):(k||this.Z||(this.Ta+=d),-1==this.pa&&k&&(this.pa=0<=lC?iC()-lC:-1));this.va=c;if(f){if(1==this.Ia)return l;if(2==this.Ia)return k?d:0}return mD(this,a)};
g.h.Vh=function(a,b){return this.tc?0:this.F?1:kD.M.Vh.call(this,a,b)};
g.h.wk=function(){return!0};var kL=null,lL={},zka={14:"gaGlobal",8:"google_prev_ad_formats_by_region",9:"google_prev_ad_slotnames_by_region"};var vD=null,yD=null,zD=null,BD=null,SD=null,uD=!1,TD=[],UD=[],PD=!1,QD=null,LD=0,KD=!1,MD=!1,wD=!1,rD=!1,ND=!1,ID=!1,OD=!1,HD=Lz()||Mz(),Pha=0;g.C(WD,Lga);WD.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.B=this.A=0};
WD.prototype.update=function(a,b){g.p(b)||(b=a.length);for(var c=b-this.o,d=this.C,e=this.A,f=0;f<b;){if(0==e)for(;f<=c;)XD(this,a,f),f+=this.o;if(g.y(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.o){XD(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.o){XD(this,d);e=0;break}}this.A=e;this.B+=b};
WD.prototype.digest=function(){var a=Array((56>this.A?this.o:2*this.o)-this.A);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;for(var c=8*this.B,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.g[b]>>>d&255;return a};var mE={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",ps:"ps",pt:"pt",vht:"vht",mut:"mut",a:"a",ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",fm:"sfm",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",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",
c:"c",mc:"mc",nc:"nc",mv:"mv",nv:"nv",raf:"raf",rafc:"rafc",lte:"lte",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",ms:"avms",qi:"qi"},jia={c:$D("c"),at:"at",atos:cE("atos",[0,2,4]),ta:function(a,b){return function(c){if(!g.p(c[a]))return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:bE(),j:"dom",mtos:cE("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:$D("ss"),vsv:Wc("w2"),t:"t"},mia={atos:"atos",avt:cE("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:$D("ss"),t:"t"},kia={a:"a",tos:bE(),at:"at",c:$D("c"),mtos:cE("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:Wc("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},lia={tos:bE(),at:"at",c:$D("c"),mtos:cE("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Wc("dv_w3"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:cE("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if(g.qa(d))return(0,g.S)(b,function(a){return 0<d&&d>=a?1:0})}}("qmc",[1,
.5,0]),qmv:"qmv",qa:"qas"};var CE=null,DE="",BE=!1;g.h=dE.prototype;g.h.bn=function(){};
g.h.Fs=g.v;g.h.Uu=g.v;g.h.sr=g.v;g.h.Vq=g.v;g.h.Es=function(a){window.clearTimeout(QD);QD=null;DE=a;PD=!0};
g.h.qn=function(a){if(a){if(!a.re){var b=qD(a,"start"),b=lE(b,mE),c=CE||Y,d=[];d.push("v=543v");d.push("r=fp");d.push("efm="+(this.A?1:0));d.push("esfm="+(this.B?1:0));d.push(b);d.push(Zha(c));yB(Y,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+d.join("&")).substring(0,2E3),void 0);a.re=!0}a.na=!0;this.uo(a)}};
g.h.vC=function(a){oD(a,0);return qD(a,"start")};
g.h.sC=function(a){FD([a],!sD());return qD(a,"progress")};
g.h.kC=function(a){return fE(a,"firstquartile",1)};
g.h.pC=function(a){a.ac=!0;return fE(a,"midpoint",2)};
g.h.wC=function(a){return fE(a,"thirdquartile",3)};
g.h.gC=function(a){var b=fE(a,"complete",4);a.F=!1;hE(a.C);return b};
g.h.rC=function(a){return gE(a,"pause")};
g.h.fC=function(a){return gE(a,"abandon")};
g.h.tC=function(a){var b=sD();a.Z&&!b&&(a.Wd().D=iC());FD([a],!b);a.Z=!1;return qD(a,"resume")};
g.h.yC=function(a){return qD(a,"viewable_impression")};
g.h.uC=function(a){var b=!sD();FD([a],b);b=qD(a,"skip");a.F=!1;hE(a.C);return b};
g.h.qC=function(a){FD([a],!sD());return qD(a,"mute")};
g.h.xC=function(a){FD([a],!sD());return qD(a,"unmute")};
g.h.lC=function(a){a.F=!0;FD([a],!sD());return qD(a,"fullscreen")};
g.h.jC=function(a){a.F=!1;FD([a],!sD());return qD(a,"exitfullscreen")};
g.h.mC=function(a){return qD(a,"fully_viewable_audible_half_duration_impression")};
g.h.oC=function(a){return qD(a,"measurable_impression")};
g.h.iC=function(a){return qD(a,"engagedview")};
g.h.nC=function(a){return qD(a,"impression")};
g.h.hC=function(a){return qD(a,"creativeview")};
g.h.pn=function(a){aD(a)&&!a.we&&this.Uu(a);this.sr(a)};
g.h.uo=g.v;var rE=(new Date).getTime(),tE=!1,uE=!1,vE=!1,dia=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return sE(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 sE(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 sE(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 sE(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 sE(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return uE},
function(){return vE},
function(){return sE(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{(0,window.DummyFunction1)()}catch(b){a=!0}return a},
function(){var a=!1;try{(0,window.DummyFunction2)()}catch(b){a=!0}return a},
function(){return!1},
function(){return sE(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]||qE(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 qE(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 sE(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 qE(a.CSS.supports)},
function(){return qE(window.Intl.Collator)},
function(a){return qE(a.document.createElement("dialog").show)},
function(){return sE(8)},
function(a){return qE(a.document.createElement("div").animate([{transform:"scale(1)",gB:"ease-in"},{transform:"scale(1.3)",gB:"ease-in"}],{duration:1300,AU:1}).reverse)},
function(a){return qE(a.document.createElement("div").animate)},
function(a){return qE(a.document.documentElement.webkitRequestFullScreen)},
function(a){return qE(a.navigator.getBattery)},
function(a){return qE(a.navigator.permissions.query)},
function(){return!1},
function(){return sE(9)},
function(){return qE(window.webkitRequestAnimationFrame)},
function(a){return qE(a.BroadcastChannel.call)},
function(a){return qE(a.FontFace)},
function(a){return qE(a.Gamepad)},
function(){return sE(10)},
function(a){return qE(a.MutationEvent)},
function(a){return qE(a.MutationObserver)},
function(a){return qE(a.crypto.getRandomValues)},
function(a){return qE(a.document.body.createShadowRoot)},
function(a){return qE(a.document.body.webkitCreateShadowRoot)},
function(a){return qE(a.fetch)},
function(){return sE(11)},
function(a){return qE(a.navigator.serviceWorker.register)},
function(a){return qE(a.navigator.webkitGetGamepads)},
function(a){return qE(a.speechSynthesis.speak)},
function(a){return qE(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return sE(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 sE(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 window.InstallTrigger},
function(){return"object"==typeof(new window.Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return sE(14)},
function(a){return"undefined"==typeof a.navigator.FU},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new window.Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],eia=[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}],fia=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.C(wE,dE);g.la(wE);g.h=wE.prototype;g.h.bn=function(a,b){gC.getInstance();var c;b.opt_adElement?c=aia(this,a,b.opt_adElement):(c=iia(this,a,b.opt_sdkID||""))||(c=Rha(a)||void 0);c&&c.Xa==g.v&&(c.Xa=(0,g.z)(this.Vq,this));return c};
g.h.Vq=function(a){gC.getInstance();a.o=0;a.Na=0;var b;if("as"==a.da){var c="getVideoMetadata"+a.qh;if(ra(a.element[c]))try{b=a.element[c]()}catch(e){a.o|=4}else a.o|=2}else if("h"==a.da)if(c=u("ima.common.getVideoMetadata"),ra(c))try{b=c(a.C)}catch(e){a.o|=4}else a.o|=2;else a.o|=1;a.o||(g.p(b)?null===b?a.o|=16:g.Tb(b)?a.o|=32:null!=b.errorCode&&(a.Na=b.errorCode,a.o|=64):a.o|=8);null!=b||(b={});c=b;a.ob=0;for(var d in I7)null==c[d]&&(a.ob|=I7[d]);pE(c,"currentTime");pE(c,"duration");qC(b.volume)&&
qC(this.D)&&(b.volume*=this.D);return b};
g.h.Uu=function(a){yE(a,"viewable_impression")&&(a.we=!0)};
g.h.sr=function(a){nD(a,a.Wd().V[0])&&!a.dc&&yE(a,"fully_viewable_audible_half_duration_impression")&&(a.dc=!0)};
g.h.Fs=function(a){a.ve||a.na||this.o||!yE(a,"measurable_impression")||(a.ve=!0)};
g.h.pn=function(a){this.o?FE(this,a):wE.M.pn.call(this,a)};
g.h.uo=function(a){this.o&&FE(this,a)};
var Eqa=LB(193,EE,void 0,function(){return{v:"543","if":gC.getInstance().g?"1":"0",nas:String(TD.length)}});
g.ka("Goog_AdSense_Lidar_sendVastEvent",Eqa,void 0);var Fqa=LB(194,function(a,b){var c;c=wE.getInstance();var d={};g.Zb(d,{opt_adElement:void 0,opt_fullscreen:void 0},b||{});if(d.opt_bounds)c=AE(c,oE("ol"));else{if(BE)d=oE("ue");else if(d=c.bn(a,d)){var e=oE();g.Zb(e,pD(d,!0,!1));d=e}else d=oE("nf");c=AE(c,d)}return c});
g.ka("Goog_AdSense_Lidar_getViewability",Fqa,void 0);var Gqa=LB(195,function(){return ZD()});
g.ka("Goog_AdSense_Lidar_getUrlSignalsArray",Gqa,void 0);var Hqa=LB(196,function(){return g.tf(ZD())});
g.ka("Goog_AdSense_Lidar_getUrlSignalsList",Hqa,void 0);var Iqa=OB("lidar::addexperimentid_ex",GE);g.ka("Goog_AdSense_Lidar_addExperimentId",Iqa,void 0);var qia={IMAGE:"Image",kz:"Flash",ALL:"All"},pia={cQ:"Html",gQ:"IFrame",XS:"Static",ALL:"All"},ria={hQ:"IgnoreSize",FS:"SelectExactMatch",GS:"SelectNearMatch"},sia={fP:"DisallowResize",tS:"ResizeSmaller"};g.C(SE,N);var TE=null;g.h=SE.prototype;g.h.destroy=function(){this.C.Ca(this.g,"activityMonitor",this.Us);this.A=!1;this.o.clear()};
g.h.R=function(){this.destroy();SE.M.R.call(this)};
g.h.init=function(a){if(!this.A){if(this.g=a||null)this.C.S(this.g,"activityMonitor",this.Us),ZE(this);if(X.G&&!(r.ima&&r.ima.video&&r.ima.video.client&&r.ima.video.client.tagged)){g.ka("ima.video.client.sdkTag",!0,void 0);var b=r.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}X.o||X.g()||(wE.getInstance().o=
!0);this.B=(ra(null),null);this.A=!0;a=oz();(a=(a=qz(a,"ActiveViewExternalLayer"))?a.g:null)&&GE(a.getId())}};
g.h.Zk=function(a){this.D=a};
g.h.Us=function(a){var b=a.Oe,c=b.queryId,d={};d.eventId=b.eventId;switch(a.pd){case "getPageSignals":ZE(this);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);d.viewabilityData=XE(this,e,c,a,f);this.g.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,c=null,Qb(b,"isFullscreen")&&(c=b.isFullscreen),Qb(b,"loggingId")&&(b=b.loggingId,d.loggingId=b,nA(kA.getInstance(),
43,{step:"beforeLookup",logid:b,time:(0,g.G)()},!0)),d.engagementString=wia(this,a,c),this.g.send("activityMonitor","engagement",d)}};
g.ka("ima.common.getVideoMetadata",function(a){a=UE().o.get(a);return ra(a)?a():{}},void 0);
g.ka("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=UE().g;d?d.send("activityMonitor","viewableImpression",c):UE().dispatchEvent(new dz("viewable_impression",null,c))},void 0);
g.ka("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=UE().g,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.ka("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=UE().g;d?d.send("activityMonitor","measurableImpression",c):UE().dispatchEvent(new dz("measurable_impression",null,c))},void 0);
g.ka("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=UE().g)?a.send("activityMonitor","externalActivityEvent",d):UE().dispatchEvent(new dz("externalActivityEvent",null,d))},void 0);
g.ka("ima.common.updateEngagementDetectionValue",function(a){if(X.G){var b=UE().g;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);
UE();g.C(aF,N);g.h=aF.prototype;g.h.wb=function(a){null==a||this.F||(this.jg=a,Bia(this),this.F=!0)};
g.h.Ac=function(){null!=this.jg&&this.F&&(bF(this),this.D=this.H=this.F=!1,this.g=0,this.A=[],this.G=!1)};
g.h.kH=function(a){this.H=!0;this.g=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.L=!0);(this.G=cF(this,a.touches)||1!=a.touches.length)?this.N=this.O=window.Infinity:(this.O=a.touches[0].clientX,this.N=a.touches[0].clientY);Cia(this,a.touches)};
g.h.jH=function(a){this.g=a.touches.length;if(!Uz(8)||Math.pow(a.changedTouches[0].clientX-this.O,2)+Math.pow(a.changedTouches[0].clientY-this.N,2)>Math.pow(5,2))this.D=!0};
g.h.iH=function(a){this.C?this.Km():(!this.H||1!=this.g||this.D||this.L||this.G||!cF(this,a.changedTouches)||(this.o=window.setTimeout((0,g.z)(this.Km,this),300)),this.g=a.touches.length,0==this.g&&(this.D=this.H=!1,this.A=[]),this.L=!1)};
g.h.Ws=function(){this.Km()};
g.h.Km=function(){this.o=0;this.dispatchEvent(new ac("click"))};
g.h.R=function(){this.Ac();this.B.dispose();this.B=null;aF.M.R.call(this)};g.h=iF.prototype;g.h.get=function(a){a=jF(this,a);return this.g[a]};
g.h.set=function(a,b){a=jF(this,a);this.g[a]=b};
g.h.xc=function(){return this.g.length};
g.h.isEmpty=function(){return 0==this.g.length};
g.h.clear=function(){this.o=this.g.length=0};
g.h.$a=function(){for(var a=this.xc(),b=this.xc(),c=[],a=this.xc()-a;a<b;a++)c.push(this.get(a));return c};
g.h.rb=function(){for(var a=[],b=this.xc(),c=0;c<b;c++)a[c]=c;return a};g.C(kF,N);var $G={cO:"beginFullscreen",Rl:"click",BP:"end",CP:"endFullscreen",ERROR:"error",Yl:"loaded",UQ:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",PS:"skip",iA:"skipShown",JS:"shareClicked",Cq:"start",kT:"timeUpdate",nO:"cardsStateChange",iT:"timedMetadata",$T:"volumeChange"};g.h=kF.prototype;g.h.Zs=function(){return!1};
g.h.gb=function(){return!0};
g.h.vo=g.v;g.h.gt=g.v;g.h.zn=g.v;g.h.Ce=function(){return null};
g.h.Cn=g.v;g.h.Bn=g.v;g.C(lF,kF);g.h=lF.prototype;g.h.bv=function(a,b,c,d){if(d&&(d=g.Xa(a,function(a){return null!==dF(a.o)}),null!==d))return d;
a=(0,g.Od)(a,function(a){var b=a.g;D(E(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=E(b).toLowerCase()?a=!1:(b=E(b).toLowerCase(),a=D(b)||Wz(2.3)&&Fa(b,"application/ogg")?!1:g.sx&&(Fa(b,"video/mp4")||Fa(b,"video/3gpp"))||Rz()&&(Fa(b,"application/x-mpegurl")||Fa(b,"application/vnd.apple.mpegurl"))?!0:!D(this.g.canPlayType(b)));return a},this);
return $E(a,b,c)};
g.h.$m=function(){return(0,g.Od)(g.Lb(AP),function(a){return!D(this.g.canPlayType(a))},this)};
g.h.$k=function(a){this.Z=0<a.g?a.g:LA()};
g.h.load=function(a){nF(this);a&&(this.g.src=a);this.g.load()};
g.h.unload=function(){nF(this);this.g.src="";this.g.load()};
g.h.getVideoUrl=function(){return this.g.src};
g.h.setVolume=function(a){this.g.volume=a};
g.h.getVolume=function(){return this.g.volume};
g.h.play=function(){this.N=!1;rz(oz(),57890231)?this.g.play():Gd(this.g.play,0,this.g);this.H||(this.H=Gd(this.SA,this.Z,this))};
g.h.pause=function(){this.N=!0;this.g.pause();rz(oz(),57890241)&&mF(this)};
g.h.rg=function(){return this.g.paused?Rz()||g.Uh?this.g.currentTime<this.g.duration:!0:!1};
g.h.Zg=function(){return this.g.muted};
g.h.An=function(){Qz()&&this.g.webkitDisplayingFullscreen&&this.g.webkitExitFullscreen()};
g.h.Yg=function(){return WE(this.g)};
g.h.Xh=function(a){var b;a:{for(b=this.V.$a();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
g.h.$g=function(a){this.g.currentTime=a};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.es=function(){return pF(this)};
g.h.getDuration=function(){return(0,window.isNaN)(this.g.duration)?-1:this.g.duration};
g.h.Ff=function(){return this.g.ended};
g.h.Ke=function(){return new g.ze(this.g.offsetWidth,this.g.offsetHeight)};
g.h.$s=function(){return this.g.seeking};
g.h.R=function(){this.Ac();lF.M.R.call(this)};
g.h.getError=function(){return null};
g.h.wb=function(){this.Ac();this.o=new Go(this);this.o.S(this.g,aH,this.lG);this.o.S(this.g,"canplay",this.wE);this.o.S(this.g,"ended",this.YC);this.o.S(this.g,"webkitbeginfullscreen",this.Dn);this.o.S(this.g,"webkitendfullscreen",this.jt);this.o.S(this.g,"pause",this.$C);this.o.S(this.g,"playing",this.vG);this.o.S(this.g,"timeupdate",this.aD);this.o.S(this.g,"volumechange",this.bD);this.o.S(this.g,"error",this.ht);this.o.S(this.g,rx||Rz()&&!Uz(8)?"loadeddata":"canplay",this.AF);this.D=new aF;this.o.S(this.D,
"click",this.XC);this.D.wb(this.g);this.G=new Ed(1E3);this.o.S(this.G,"tick",this.ZC);this.G.start()};
g.h.Ac=function(){null!=this.D&&(this.D.Ac(),this.D=null);null!=this.G&&this.G.dispose();null!=this.o&&(this.o.dispose(),this.o=null);nF(this)};
g.h.lG=function(a){this.dispatchEvent(a.type)};
g.h.wE=function(){var a;if(a=hv)a=ec,a=!(a&&(Ga(a,"SMART-TV")||Ga(a,"SmartTV")));a&&!this.P&&(this.$g(.001),this.P=!0)};
g.h.AF=function(){this.L||(this.L=!0,this.dispatchEvent("loaded"))};
g.h.vG=function(){this.dispatchEvent("play");Rz()||rx||oF(this)};
g.h.aD=function(){if(!this.B&&(Rz()||rx)){if(0>=this.getCurrentTime())return;if(rx&&this.Ff()&&1==this.getDuration()){this.ht();return}oF(this)}if(Rz()||$z()){if(1.5<this.getCurrentTime()-this.A){this.F=!0;this.$g(this.A);return}this.F=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}var a=this.V;a.g[a.o]=this.g.currentTime;a.o=(a.o+1)%a.A;this.dispatchEvent("timeUpdate")};
g.h.bD=function(){this.dispatchEvent("volumeChange")};
g.h.$C=function(){var a;this.B&&Rz()&&!this.N&&(2>pF(this)-this.g.currentTime||this.F)?(this.C=new Ed(250),this.o.S(this.C,"tick",this.sE),this.C.start(),a=!0):a=!1;a||this.dispatchEvent("pause")};
g.h.YC=function(){var a=!0;if(Rz()||$z())a=this.A>=this.g.duration-1.5;!this.F&&a&&this.dispatchEvent("end")};
g.h.Dn=function(){this.dispatchEvent("beginFullscreen")};
g.h.jt=function(){this.dispatchEvent("endFullscreen")};
g.h.ht=function(){mF(this);this.dispatchEvent("error")};
g.h.XC=function(){this.dispatchEvent("click")};
g.h.ZC=function(){var a=this.Ke(),b=this.Yg();if(a.width!=this.O.width||a.height!=this.O.height)!this.J&&b?this.Dn():this.J&&!b&&this.jt(),this.O=a,this.J=b};
g.h.SA=function(){if(!this.B){try{nA(kA.getInstance(),16)}catch(a){}nF(this);this.dispatchEvent("mediaLoadTimeout")}};
g.h.sE=function(){if(this.Ff()||!this.rg())g.Cb(this.C);else{var a=this.g.duration-this.g.currentTime,b=pF(this)-this.g.currentTime;0<b&&(2<=b||2>a)&&(g.Cb(this.C),this.play())}};g.C(rF,N);var M7=new If;qF.prototype.start=function(a){return this.g[a].startTime};
qF.prototype.end=function(a){return this.g[a].endTime};
g.h=rF.prototype;g.h.readyState=0;g.h.currentTime=0;g.h.duration=window.NaN;g.h.paused=!0;g.h.ut=!1;g.h.autoplay=!1;g.h.controls=!1;g.h.volume=1;g.h.muted=!1;g.h.src="";g.h.eD=1;g.h.playbackRate=0;g.h.pf=null;g.h.zk=0;g.h.XH=4;g.h.Rh=null;g.h.uk=null;
g.h.play=function(){this.ut&&(this.currentTime=0,this.dispatchEvent("timeupdate"));this.paused&&(this.paused=!1,this.dispatchEvent("play"),this.readyState=this.XH,2>=this.readyState?this.dispatchEvent("waiting"):this.dispatchEvent("playing"));if(null===this.pf||this.pf.isDisposed())this.pf=new Ed(10),this.pf.S("tick",(0,g.z)(this.Jv,this));this.zk=(0,g.G)();this.pf.start();this.autoplay=!1};
g.h.pause=function(){this.autoplay=!1;this.paused||(this.pf.stop(),this.paused=!0,this.dispatchEvent("timeupdate"),this.dispatchEvent("pause"))};
g.h.load=function(){this.readyState=0;this.paused=!0;this.dispatchEvent("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.o;a.g.push(new Gia(this.duration));a.length=a.g.length;this.dispatchEvent("loadedmetadata");0<this.currentTime&&this.dispatchEvent("timeupdate");this.dispatchEvent("loadeddata");this.dispatchEvent("canplay");this.dispatchEvent("canplaythrough");this.dispatchEvent("progress");this.playbackRate=this.eD};
g.h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.dispatchEvent("seeking");this.currentTime=c;this.dispatchEvent("seeked");this.Jv();break;case "duration":this.duration=Number(b);this.dispatchEvent("durationchange");break;case "volume":this.volume=Number(b),this.dispatchEvent("volumechange")}};
g.h.setAttribute=function(a,b){null!=a&&M7.set(a,b)};
g.h.getAttribute=function(a){return M7.get(a)};
g.h.Jv=function(){var a=(0,g.G)()-this.zk,b=this.currentTime+a/1E3;this.zk+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.dispatchEvent("timeupdate");this.currentTime==this.duration&&(this.ut=this.paused=!0,this.pf.stop(),this.dispatchEvent("ended"))};
g.h.R=function(){this.pf&&this.pf.dispose();this.g.dispose()};
g.h.zH=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.uk&&(this.uk.innerText=b);c&&this.Rh&&(this.Rh.style.backgroundColor=c)};g.Me&&g.oc(8);var BF={},TF={},UF={},CF={};sF.prototype.df=null;sF.prototype.Yc=function(){return this.content};
sF.prototype.toString=function(){return this.content};
g.C(tF,sF);tF.prototype.Ae=CF;g.C(uF,sF);uF.prototype.Ae=BF;g.C(vF,sF);vF.prototype.Ae={};vF.prototype.df=1;g.C(wF,sF);wF.prototype.Ae=TF;wF.prototype.df=1;g.C(xF,sF);xF.prototype.Ae=UF;xF.prototype.df=1;g.C(yF,sF);yF.prototype.Ae={};yF.prototype.df=1;g.C(zF,sF);zF.prototype.Ae={};zF.prototype.df=1;var Hia={};g.C(FF,uF);var GF=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var c=new b(String(a));void 0!==d&&(c.df=d);return c}}(FF);
HF(vF);HF(wF);HF(xF);var Qia=HF(yF);HF(zF);var IF={},JF={},hG=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var c=String(a);if(!c)return"";c=new b(c);void 0!==d&&(c.df=d);return c}}(FF),RF=/['()]/g,$F={},Ria={"\x00":"&#0;",
"\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},Sia={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11",
"\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87",
"\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},Kia=/[\x00\x22\x27\x3c\x3e]/g,Mia=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Lia=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,WF=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,
Oia=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Pia=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,MF=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,NF=/</g;KF("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Z(a.gh)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Z(a.gh)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
Z(aG(a.ye))+">"+Z(a.ye)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Z(aG(a.Rd))+">"+Z(a.Rd)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
KF("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Z(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Z(a.DU)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Z(a.EU)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttributionBadge yt-badge yt-badge-ad"></div><div class="videoAdUiAttribution"'+
Z(aG(a.ye))+">"+Z(a.ye)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Z(aG(a.Rd))+">"+Z(a.Rd)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div><div class="videoAdUiBottomBarMessage"></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
KF("b","",function(a){a=a||{};return""+wa("You can skip this ad in {$xSeconds}",{xSeconds:Z(a.qf)})});
KF("b","redesign2014q4",function(a){a=a||{};return""+wa("You can skip to video in {$xSeconds}",{xSeconds:Z(a.qf)})});
KF("b","forcedlinebreak",function(a){a=a||{};return""+wa("You can skip to{$newline}video in {$xSeconds}",{newline:Z(a.QD),xSeconds:Z(a.qf)})});g.C(iG,g.L);iG.prototype.initialize=function(){this.o&&Nz()&&this.o.load()};
iG.prototype.R=function(){g.Ye(this.g);iG.M.R.call(this)};
iG.prototype.show=function(){var a=this.g;null!=a&&(a.style.display="block")};g.C(jG,g.L);jG.prototype.H=function(a){if(!("*"!=this.o&&a.origin!=this.o||this.A&&a.source!=this.A)&&g.y(a.data)){var b;try{b=g.pf(a.data)}catch(c){return}if(!(null==b||this.G&&(this.sessionId&&this.sessionId!=b.id||this.channel&&this.channel!=b.channel))&&b)switch(b.event){case "syn":kG(this,a);mG(this);this.sendMessage({event:"ack"});break;case "ack":kG(this,a);mG(this);break;case "command":a=b.func,a in this.g&&this.g[a].apply(null,b.args)}}};
jG.prototype.sendMessage=function(a,b){var c=b||this.A;if(c){this.sessionId&&(a.id=this.sessionId);this.channel&&(a.channel=this.channel);try{var d=g.tf(a);c.postMessage(d,this.D)}catch(e){}}};
jG.prototype.R=function(){window.removeEventListener("message",this.C);jG.M.R.call(this)};g.C(lG,jG);lG.prototype.J=function(a,b){var c={event:"command",func:a},d=Array.prototype.slice.call(arguments,1);0<d.length&&(c.args=d);this.F?this.sendMessage(c):100>this.B.length&&this.B.push(c)};g.C(nG,g.L);nG.prototype.G=function(a){a=a.type;var b=new dja;b.duration=this.g.duration;b.currentTime=this.g.currentTime;b.readyState=this.g.readyState;this.g.error&&(b.errorCode=this.g.error.code);b.muted=this.g.muted;b.paused=this.g.paused;b.g=this.g.ended;b.volume=this.g.volume;this.o.J("notify",a,b)};
nG.prototype.D=function(a){Lm(this.C,a);this.A.S(this.g,a,this.F)};
nG.prototype.H=function(a){this.C.remove(a);this.A.Ca(this.g,a)};
nG.prototype.B=function(a,b){this.g[a]=b};oG.prototype.isPharma=function(){return this.J};g.C(rG,kF);var Jqa=["video/mp4","video/webm"],Kqa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},qG=[],pG=!1;g.h=rG.prototype;g.h.bv=function(a,b,c){var d=g.Xa(a,function(a){return null!==dF(a.o)});
if(null!==d)return d;a=(0,g.Od)(a,function(a){a=E(a.g);return this.o?this.g.canPlayType(a):g.ab(Jqa,a)},this);
g.J(c)||(d=$E(a,b,c));return null!=d?d:$E(a,b,[])};
g.h.$k=function(a){this.A=a};
g.h.load=function(a,b){tG(this,a,b)};
g.h.unload=function(){tG(this,"","")};
g.h.getVideoUrl=function(){return this.Z};
g.h.setVolume=function(a){this.fa?this.dispatchEvent("volumeChange"):this.o?(a=g.te(100*a,0,100),this.g.setVolume(a),this.F=-1,this.dispatchEvent("volumeChange")):this.F=a};
g.h.getVolume=function(){return this.o?this.g.getVolume()/100:this.F};
g.h.play=function(){if(!D(E(this.Z))){if(!this.B){vG(this);var a=LA();null!=this.A&&0<this.A.g&&(a=this.A.g);this.va=Gd(this.oG,a,this)}this.o?(this.ca=!1,!this.B&&this.A&&this.A.o?this.g.loadVideoByPlayerVars(this.la):this.g.playVideo()):this.ca=!0}};
g.h.pause=function(){this.o&&this.B&&this.g.pauseVideo()};
g.h.rg=function(){return this.o?2==this.g.getPlayerState(this.C):!1};
g.h.Zg=function(){return this.o?this.g.isMuted():0==this.getVolume()};
g.h.An=function(){};
g.h.Yg=function(){var a=X.o?X.F:window.document.getElementById(this.N);return a?WE(a):!1};
g.h.Xh=function(a){return this.o?this.g.getCurrentTime(this.C)>=a:!1};
g.h.$g=function(a){this.o?this.g.seekTo(a,!1):this.J=a};
g.h.getCurrentTime=function(a){return this.o?this.g.getCurrentTime(a||this.C):-1};
g.h.es=function(){return this.o&&this.B?this.g.getVideoLoadedFraction(this.C)*this.g.getDuration(this.C):0};
g.h.getDuration=function(){return this.o&&this.B?this.g.getDuration(this.C):-1};
g.h.getError=function(){return null};
g.h.$m=function(){return g.Lb(AP)};
g.h.Ff=function(){return this.o?0==this.g.getPlayerState(this.C):!1};
g.h.Ke=function(){var a=X.o?X.F:window.document.getElementById(this.N);return a?new g.ze(a.offsetWidth,a.offsetHeight):new g.ze(0,0)};
g.h.$s=function(){return!1};
g.h.Zs=function(){return 1==this.ra};
g.h.gb=function(){return this.o?1==this.g.getPlayerState(this.C):!1};
g.h.dD=function(){var a=this.Ke(),b=this.Yg();if(a.width!=this.na.width||a.height!=this.na.height)!this.ga&&b?this.dispatchEvent("beginFullscreen"):this.ga&&!b&&this.dispatchEvent("endFullscreen"),this.na=a,this.ga=b};
g.h.wb=function(){this.da=(0,g.z)(this.pu,this);this.O=(0,g.z)(this.En,this);this.pa=(0,g.z)(this.qu,this);this.Aa=(0,g.z)(this.WG,this);this.fa&&(this.g.addEventListener("onAdStateChange",this.O),this.g.addEventListener("onReady",this.da),this.g.addEventListener("onStateChange",this.O),this.g.addEventListener("onVolumeChange",this.pa),this.g.addEventListener("onSharePanelOpened",this.Aa));this.V=new Ed(1E3);this.P.S(this.V,"tick",this.dD);this.V.start()};
g.h.Ac=function(){this.fa&&(this.g.removeEventListener("onAdStateChange",this.O),this.g.removeEventListener("onReady",this.da),this.g.removeEventListener("onStateChange",this.O),this.g.removeEventListener("onVolumeChange",this.pa),this.g.removeEventListener("onSharePanelOpened",this.Aa));null!=this.V&&this.V.dispose()};
g.h.ZA=function(){var a=Wb(Kqa);X.C&&(a.ps="gvn",a.remoteve=lA.ca,a.remotevewin="discover");var b=this.N,a={playerVars:a,events:{cardstatechange:(0,g.z)(this.cD,this),onError:(0,g.z)(this.sG,this),onReady:(0,g.z)(this.pu,this),onAdStateChange:(0,g.z)(this.En,this),onStateChange:(0,g.z)(this.En,this),onVolumeChange:(0,g.z)(this.qu,this)}},c=u("YT");this.g=null!=c&&null!=c.Player?new c.Player(b,a):null};
g.h.sG=function(){this.dispatchEvent("error")};
g.h.pu=function(){this.o=!0;this.H&&this.zn(this.H.videoId,this.H.fg,this.H.yh);-1!=this.F&&(this.setVolume(this.F),this.F=-1);null!=this.L&&(sG(this,this.L,this.ba),this.ba=this.L=null);-1!=this.J&&(this.$g(this.J),this.J=-1);this.ca&&this.play()};
g.h.cD=function(a){this.ra=a.data;this.dispatchEvent("cardsStateChange")};
g.h.En=function(a){switch(a.data){case 0:this.B?this.dispatchEvent("end"):this.dispatchEvent("error");break;case 1:this.B||(vG(this),this.B=!0,this.G=0,this.dispatchEvent("start"));this.dispatchEvent("play");uG(this);this.D=new Ed(100);this.P.S(this.D,"tick",this.eu);this.D.start();break;case 2:this.dispatchEvent("pause"),uG(this)}};
g.h.qu=function(){this.dispatchEvent("volumeChange")};
g.h.WG=function(){this.dispatchEvent("shareClicked")};
g.h.eu=function(){var a=pz();if(a.g("seek_back_for_all")||a.g("seek_back_for_safari")&&YB&&Sz(Aqa,10)&&Ga(ec,"Safari")||qx||$z()){if(1.5<this.getCurrentTime()-this.G){this.o&&this.g.seekTo(this.G,!0);return}this.getCurrentTime()>this.G&&(this.G=this.getCurrentTime())}this.dispatchEvent("timeUpdate")};
g.h.oG=function(){this.dispatchEvent("mediaLoadTimeout")};
g.h.zn=function(a,b,c){if(b||c)this.o?this.g.addInfoCardXml(a,b,c):this.H={videoId:a,fg:b,yh:c}};
g.h.Ce=function(){if(!this.o)return null;var a=this.g.getVideoData();return a?a.cpn:null};
g.h.vo=function(a){this.o&&dF(this.getVideoUrl())&&this.g.sendVideoStatsEngageEvent(a)};
g.h.gt=function(a){this.o&&this.g.setCardsVisible(a,!1,"YOUTUBE_DRAWER_AUTO_OPEN")};
g.h.Cn=function(){this.o&&this.g.showControls()};
g.h.Bn=function(){this.o&&this.g.hideControls()};
g.h.R=function(){uG(this);vG(this);this.Ac();this.o=!1;this.P.dispose();this.J=-1;this.ba=null;this.ca=!1;this.L=null;this.F=-1;this.da=this.g=this.A=null;this.B=!1;this.Z="";rG.M.R.call(this)};
g.ka("onYouTubeIframeAPIReady",function(){pG=!0;(0,g.H)(qG,function(a){a()});
bb(qG)},window);g.C(wG,N);wG.prototype.g=!1;wG.prototype.connect=function(){for(this.g=!0;!g.J(this.o);){var a=this.o.shift();this.sendMessage(a.name,a.type,a.data)}};
wG.prototype.send=function(a,b,c){this.g?this.sendMessage(a,b,c):this.o.push({name:a,type:b,data:c})};
g.C(xG,ac);xG.prototype.getOrigin=function(){return this.A};
xG.prototype.toString=function(){return""};g.C(yG,wG);yG.prototype.sendMessage=function(a,b,c){null!=this.fe&&null!=this.fe.postMessage&&this.fe.postMessage(eja(this,a,b,c),"*");null!=this.fe&&null==this.fe.postMessage&&nA(kA.getInstance(),11)};
yG.prototype.R=function(){this.B.dispose();yG.M.R.call(this)};
yG.prototype.receive=function(a){a=a.g;var b=zG(a.data);if(AG(this,b)){if(null==this.fe)this.fe=a.source,this.g||this.connect();else if(this.fe!=a.source)return;AG(this,b)&&this.dispatchEvent(new xG(b.name,b.type,b.data||{},b.sid,a.origin))}};CG.prototype.g=null;var N7;g.C(FG,CG);N7=new FG;g.C(HG,N);HG.prototype.ka=null;var hja=/^https?$/i,Lqa=["POST","PUT"];g.h=HG.prototype;
g.h.send=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.P+"; newUri="+a);b=b?b.toUpperCase():"GET";this.P=a;this.D="";this.o=0;this.O=!1;this.A=!0;this.g=this.L?GG(this.L):GG(N7);this.J=this.L?EG(this.L):EG(N7);this.g.onreadystatechange=(0,g.z)(this.Cs,this);try{this.getStatus(),this.N=!0,this.g.open(b,String(a),!0),this.N=!1}catch(f){this.getStatus();LG(this,f);return}a=c||"";var e=this.headers.clone();d&&Of(d,function(a,b){e.set(b,a)});
d=g.Xa(e.rb(),gja);c=r.FormData&&a instanceof r.FormData;!g.ab(Lqa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.g.setRequestHeader(b,a)},this);
this.Z&&(this.g.responseType=this.Z);"withCredentials"in this.g&&this.g.withCredentials!==this.G&&(this.g.withCredentials=this.G);try{QG(this),0<this.C&&(this.V=fja(this.g),this.getStatus(),this.V?(this.g.timeout=this.C,this.g.ontimeout=(0,g.z)(this.Ds,this)):this.F=Gd(this.Ds,this.C,this)),this.getStatus(),this.H=!0,this.g.send(a),this.H=!1}catch(f){this.getStatus(),LG(this,f)}};
g.h.Ds=function(){"undefined"!=typeof MG&&this.g&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.h.abort=function(a){this.g&&this.A&&(this.getStatus(),this.A=!1,this.B=!0,this.g.abort(),this.B=!1,this.o=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),KG(this))};
g.h.R=function(){this.g&&(this.A&&(this.A=!1,this.B=!0,this.g.abort(),this.B=!1),KG(this,!0));HG.M.R.call(this)};
g.h.Cs=function(){this.isDisposed()||(this.N||this.H||this.B?PG(this):this.AG())};
g.h.AG=function(){PG(this)};
g.h.isActive=function(){return!!this.g};
g.h.getStatus=function(){try{return 2<NG(this)?this.g.status:-1}catch(a){return-1}};g.C(SG,N);SG.prototype.send=function(a){var b=a.g;this.g.hasOwnProperty(b)&&this.g[b].send(a.type,a.pd,a.Oe)};
SG.prototype.R=function(){this.o.dispose();for(var a in this.g)g.Cb(this.g[a]);SG.M.R.call(this)};
SG.prototype.C=function(a){a=a.g;var b=zG(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.g.hasOwnProperty(c)){var d=b.sid;UG(this,c,d,a.source);this.dispatchEvent(new TG(b.name,b.type,b.data||{},d,a.origin,c))}}};
g.C(TG,xG);g.C(WG,Go);
WG.prototype.D=function(a){var b=a.getOrigin(),c=g.Qf("//imasdk.googleapis.com"),b=g.Qf(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.g)UG(this.g,a.g,a.Ts,Oe().parent),null!=this.g&&this.g.send(a);else if(c=a.Oe,null!=c&&g.p(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.pd,"isGptPresent"==c?d=VG():"isConsolePresent"==c&&(d=null!=XG());else if(VG())if("pubads"==b||"companionAds"==b){d=a.pd;var e,f=Oe().googletag;if(null!=f&&null!=f[b]&&(f=f[b](),null!=f&&(d=f[d],null!=d)))try{e=d.apply(f,c)}catch(k){}d=
e}else if("console"==b){if(f=a.pd,e=XG(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){e=a.pd;d=Oe();if(g.ab(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{f=e.apply(d,c)}catch(k){}d=f}g.p(d)&&(a.Oe.returnValue=d,this.A.send(a))}};
WG.prototype.C=function(a){this.A.send(a)};new YG;YG.prototype.set=function(a){this.g=a};
YG.prototype.reset=function(){this.set((0,g.G)())};
YG.prototype.get=function(){return this.g};var ZG={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+(0,g.Ia)(" ",Number(c)-a.length):(0,g.Ia)(" ",Number(c)-a.length)+a},
f:function(a,b,c,d,e){d=a.toString();(0,window.isNaN)(e)||""==e||(d=(0,window.parseFloat)(a).toFixed(e));var f;f=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=f+d);if((0,window.isNaN)(c)||d.length>=Number(c))return d;d=(0,window.isNaN)(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+(0,g.Ia)(" ",a):f+(0,g.Ia)(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return ZG.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
ZG.i=ZG.d;ZG.u=ZG.d;g.C(bH,N);g.h=bH.prototype;g.h.R=function(){this.o.dispose();null!==this.B&&(this.B.dispose(),this.B=null);Hf(this.G.rd(!1),function(a){a.dispose()});
this.G.clear();g.Ye(this.A);bH.M.R.call(this)};
g.h.PB=function(a){var b=a.Oe,c=aj(this.A),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.pd,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!hv||Rz()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
g.h.eC=function(a){var b=a.Oe,c=aj(this.A);if("TouchEvent"in window&&0<window.TouchEvent.length){var b={bubbles:!0,cancelable:!0,view:window,detail:b.detail,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,metaKey:b.metaKey,touches:cH(this,b.touches),targetTouches:cH(this,b.targetTouches),changedTouches:cH(this,b.changedTouches)},d=new window.TouchEvent(a.pd,b);this.A.dispatchEvent(d)}else d=window.document.createEvent("TouchEvent"),d.initTouchEvent(a.pd,!0,!0,window,b.detail,b.screenX,b.screenY,
b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,cH(this,b.touches),cH(this,b.targetTouches),cH(this,b.changedTouches),b.scale,b.rotation),this.A.dispatchEvent(d)};
g.h.bC=function(a){if(null!=this.g){var b=a.Oe;switch(a.pd){case "startTracking":this.g.wb();break;case "stopTracking":this.g.Ac();break;case "exitFullscreen":this.g.An();break;case "play":this.g.play();break;case "pause":this.g.pause();break;case "load":this.g.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.g.$g(b.currentTime);break;case "setPlaybackOptions":this.g.$k(dH(b));break;case "setVolume":this.g.setVolume(b.volume)}}};
g.h.XB=function(a){if(null!=this.C){var b=a.Oe;switch(a.pd){case "startTracking":this.C.wb();break;case "stopTracking":this.C.Ac();break;case "setPlaybackOptions":this.C.$k(dH(b));break;case "load":this.C.load(b.videoUrl,b.mimeType)}}};
g.h.Se=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.g.Ff();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.g.getCurrentTime();
b.duration=this.g.getDuration();break;case "volumeChange":a="volumeChange";b.volume=this.g.getVolume();break;case "loadedmetadata":a=a.type;b.duration=this.g.getDuration();break;case "abort":case "canplay":case "canplaythrough":case "durationchange":case "emptied":case "loadstart":case "loadeddata":case "progress":case "ratechange":case "seeked":case "seeking":case "stalled":case "suspend":case "waiting":a=a.type;break;default:return}this.F.send("videoDisplay",a,b)};
g.h.LB=function(a){switch(a.pd){case "showVideo":null!=this.B?this.B.Ac():(this.B=new aF,this.o.S(this.B,"click",this.wH));this.B.wb(fH(this.D));a=this.D;null!=a.g&&a.g.show();break;case "hide":null!==this.B&&(this.B.dispose(),this.B=null);a=this.D;null!=a.g&&(a=a.g.g,null!=a&&(a.style.display="none"));break;case "getPreloadDisplay":null!=this.g&&null==this.C&&(this.C=this.D.C);break;case "swapVideoDisplays":if(null!=this.g&&null!=this.C){this.o.Ca(this.g,g.Lb($G),this.Se);this.o.Ca(this.g,aH,this.Se);
a=this.D;if(a.g&&a.o&&a.B&&a.C){var b=a.o;a.o=a.C;a.C=b;b=a.g;a.g=a.B;a.B=b;if(a.J&&a.o instanceof lF){var b=a.J,c=a.o.g;No(b.A);b.g=c;(0,g.H)(b.C.$a(),b.D,b)}null!=a.H&&(b=a.H,a=a.o,null!=b.g&&(b.o.Ca(b.g,g.Lb($G),b.Se),b.o.Ca(b.g,aH,b.Se)),b.g=a,b.o.S(b.g,g.Lb($G),b.Se),b.o.S(b.g,aH,b.Se))}this.g=this.D.o;this.C=this.D.C;this.o.S(this.g,g.Lb($G),this.Se);this.o.S(this.g,aH,this.Se)}}};
g.h.wH=function(){this.F.send("displayContainer","videoClick")};
g.h.tB=function(){Hf(this.G.rd(!1),function(a){a.fe=ef(this.A);a.connect()},this);
this.H=!0};eH.prototype.initialize=function(){null!=this.g&&this.g.initialize();null!=this.B&&this.B.initialize()};
eH.prototype.destroy=function(){g.Cb(this.g);g.Cb(this.B);g.Cb(this.H);g.Cb(this.o);g.Cb(this.C);g.Cb(this.J);g.Ye(this.A)};
eH.prototype.setSize=function(a,b){var c=this.A;null!=c&&(-1==a?(c.style.right="0",c.style.left="0"):c.style.width=a+"px",-1==b?(c.style.bottom="0",c.style.top="0"):c.style.height=b+"px");null!=this.H&&(c=this.H,c.A.width=-1==a?"100%":a,c.A.height=-1==b?"100%":b)};var gH="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");g.C(iH,N);g.C(jH,iH);jH.prototype.start=function(){this.g.start()};
jH.prototype.stop=function(){this.g.stop()};
jH.prototype.R=function(){jH.M.R.call(this);this.A.dispose();this.g.dispose()};
jH.prototype.B=function(){if("currentTime"in this.o&&!(0,window.isNaN)(this.o.currentTime)){var a=this.currentTime;this.currentTime=this.o.currentTime;a!=this.currentTime&&this.dispatchEvent(new ac("currentTimeUpdate"))}else this.dispatchEvent(new ac("contentWrapperError")),this.stop()};g.C(lH,N);lH.prototype.o=null;lH.prototype.R=function(){delete this.g;mH(this);Oc(this.o);lH.M.R.call(this)};
lH.prototype.C=function(){kH(this)&&(mH(this),Oc(this.o),this.o=null,this.B=!0,this.dispatchEvent("ifload"))};g.C(nH,N);g.C(oH,ac);oH.prototype.getError=function(){return this.A};pH.prototype.Yc=function(){return this.F};
pH.prototype.Pc=function(){return this.g};
pH.prototype.clone=function(){var a=new pH(this.H,this.G);if(null!=this.g)qH(a,this.Pc(),this.B,this.o,this.D);else{var b=this.Yc(),c=this.B,d=this.o,e=this.A,f=this.D,k=this.C;a.F=b;a.g=null;a.B=c;a.o=d;a.A=e;a.D=f||[];a.C=k||[]}return a};g.C(sH,nH);g.la(sH);g.h=sH.prototype;g.h.R=function(){this.o&&this.o.dispose();sH.M.R.call(this)};
g.h.initialize=function(){if(!this.Me){var a;var b=of(new Ce);try{u("googletag"),tH([b,b.top]),a=!0}catch(c){a=!1}a?FH(this):(this.Me=!0,this.A="not_available")}};
g.h.Xc=function(a){try{this.g.googleSetCompanionAdContents((0,g.S)(a,this.FA,this)),this.sh()}catch(b){this.dispatchEvent(new oH("companion_display_error",b))}};
g.h.ru=function(){0<this.B&&(0,g.G)()>=this.B?(this.Me=!0,BH(this),EH(this)):FH(this)};
g.h.xI=function(a){var b=(0,g.S)(a.adSizes,function(a){return new g.ze(a.adWidth,a.adHeight)});
return new pH(a.slotId,b)};
g.h.FA=function(a){var b={};b.slotId=a.H;b.adContent=a.Yc();b.adWidth=a.B;b.adHeight=a.o;b.friendlyIframeRendering=a.A;null==a.g&&g.J(a.C)||(b.onAdContentSet=(0,g.z)(this.ME,this,a));return b};
g.h.ME=function(a,b){if(null!=a.g){var c=bf(b);c||(c=g.Re("div"),b.appendChild(c));var d=a.Pc();c.appendChild(d);GH(this,a,c)}else c=a.A?b.querySelector("iframe"):(c=bf(b))?bf(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&mja(this,c,a)};
g.h.LE=function(a){this.dispatchEvent(new oH("companion_click",null,a))};
g.h.sh=function(a){Dz(this.impressionUrls,a)};g.C(HH,ac);HH.prototype.getError=function(){return this.g};g.C(IH,ac);JH.prototype.videoCount=0;LH.prototype.Pb=function(){return this.A};
g.C(MH,LH);KH.prototype.isEmpty=function(){return this.g.isEmpty()};g.h=WH.prototype;g.h.getDuration=function(){return this.la};
g.h.Kn=function(){return null};
g.h.Jn=function(){return null};
g.h.In=function(){return null};
g.h.Hb=function(){return this.H};
g.h.bk=function(){for(var a=[this],b=this.H.o;b;){var c=ZH(this,b)||ZH(this,b,!0);null!=c&&a.push(c);b=b.o}return a};$H.prototype.yb=function(){return this.D};
$H.prototype.getHeight=function(){return this.C};g.C(aI,WH);g.h=aI.prototype;g.h.Le=function(){return this.C};
g.h.yf=function(){return this.o};
g.h.Bf=function(){return this.A};
g.h.zf=function(a){var b="";ph(this.o,function(c){var d=c.o;return!D(E(a))&&a!=c.g||null==d||D(E(d))?!1:(b=d,!0)},this);
return b};
g.h.Of=function(a){this.A=a};
g.h.Kn=function(){return cI(this,"javascript")};
g.h.Jn=function(){return cI(this,"x-shockwave-flash")};
g.h.In=function(){return null!=this.N?this.N.A:1==this.o.length?this.o[0].A:null};g.C(dI,g.L);dI.prototype.F=function(){this.B=(0,g.G)()};
dI.prototype.H=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.o&1&&c.push("nm="+this.C);this.o&2&&c.push("nb="+this.D.get(b));if(this.o&8){var d=aj(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.o&16&&null!=this.B&&c.push("clkt="+((0,g.G)()-this.B));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
dI.prototype.G=function(){this.C++};
dI.prototype.R=function(){dI.M.R.call(this);this.g.dispose()};var O7=fI("f"),cM=fI("i"),P7=fI("b"),VL=fI("e"),WL=fI("s");var uja=[0,2,1],oI=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){oI=a},!0);
window.mb=function(a){if(a){var b=pI();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=nI(a.href,"mb",b,void 0)))}};g.C(qI,g.L);qI.prototype.F=function(){this.D=(0,g.G)()};
qI.prototype.H=function(a,b){var c=a.element;1==(this.o&1)&&(0==this.B&&this.B++,this.g.nm=this.B);2==(this.o&2)&&(this.g.nb=a.TA);if(8==(this.o&8)){var d=aj(this.C);this.g.nx=Math.round(b.clientX-d.x);this.g.ny=Math.round(b.clientY-d.y)}16==(this.o&16)&&null!=this.D&&(d=(0,g.G)()-this.D,this.g.clkt=d);512==(this.o&512)&&(d=pI())&&(this.g.mb=d);"A"==c.tagName.toUpperCase()&&Be(c,wja(this,c.href))};
qI.prototype.G=function(){this.B++};var xja=g.Me?'javascript:""':"about:blank";g.C(sI,WH);g.h=sI.prototype;g.h.Yc=function(){return gf(this.Pc())};
g.h.yi=function(){return!1};
g.h.Ln=function(){return this.yi()?gf(this.Pc(!0)):""};
g.h.Qc=function(){return this.ba};
g.h.ae=function(){return this.Aa};
g.h.yb=function(){return this.ae().width};
g.h.getHeight=function(){return this.ae().height};
g.h.zf=function(){return this.B};
g.h.Kn=function(){return"VPAID"==this.J&&"Javascript"==this.ba?this.B:null};
g.h.Jn=function(){return"VPAID"==this.J&&"Flash"==this.ba?this.B:null};
g.h.In=function(){return this.J};
g.h.Le=function(){return this.na};g.C(tI,sI);tI.prototype.G=function(a){null==this.o||D(E(this.Le()))||(this.o.S(a,"click",this.V),this.Z.push(a))};
tI.prototype.Pc=function(a){a?(null==this.ga&&(this.ga=this.cf(a),Ve(this.ga,yI(this))),a=this.ga):(null==this.A&&(this.A=this.cf(),Ve(this.A,yI(this))),a=this.A);null!=this.o&&this.o.S(a,"creativeview",this.fa);return a};
tI.prototype.Um=function(){oz().g.g("cleanup_text_overlay_spam_signals");return 2};
tI.prototype.bk=function(){for(var a=[this],b=this.Hb().o;b;){var c=this.C?ZH(this,b)||ZH(this,b,!0):zI(this,b)||zI(this,b,!0);null!=c&&a.push(c);b=b.o}return a};g.C(AI,tI);g.h=AI.prototype;g.h.ae=function(){return new g.ze(this.yb(),this.getHeight())};
g.h.getHeight=function(){return 63};
g.h.yb=function(){return null!=this.D?jj(this.D).width:0};
g.h.Um=function(a){return oz().g.g("cleanup_text_overlay_spam_signals")?g.Md(a,"text-image-link")?9:g.Md(a,"text-ad-channel")?1:0:g.Md(a,"text-image")?9:g.Md(a,"text-ad-channel")?1:0};
g.h.cf=function(){var a=this.Hb(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.C,e="rtl";null!=d&&(e=c7.test(Td(d,void 0))?"rtl":"ltr");d={title:d,text:c.D+" "+c.F,dir:e,jc:this.Le()};if(e=c.getImageUrl())d.image=xz(e),d.Sv=!0,X.g()&&(d.Sv=0==c.o||0==c.A),a=g.Xa(a.F,function(a){return a instanceof aI}),null!=a&&(d.duration=PE(a.getDuration()));
b.o&&(d.Uv=b.o);this.D=AF(pja,d);(0,g.H)(this.D.getElementsByTagName("a"),this.G,this);this.D.id=this.Da;this.D.style.height=this.getHeight()+"px";return this.D};var Aja=[202,1009],Fja="CONTENT_V CPN DISALLOW EID LACT VIS".split(" "),Eja={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"],MOAT_VIEWABILITY:["://[^.]*.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],IAS_VIEWABILITY:["://[^.]*.adsafeprotected.com","://[^.]*.test-adsafeprotected.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],DV_VIEWABILITY:["://[^.]*.yt.srs.doubleverify.com","://pagead2.googlesyndication.com/pagead/gen_204",
"://pubads.g.doubleclick.net"],GOOGLE_VIEWABILITY:["://pubads.g.doubleclick.net","://googleads.g.doubleclick.net","://ad[.-]([a-z0-9]+.){0,1}doubleclick.net","://pagead2.googlesyndication.com","://([a-z0-9]+[.])*youtube.com"]};g.h=QI.prototype;g.h.Je=function(){return null!=this.g&&this.g.Je()?!0:0<this.ads.length&&this.o<this.ads.length-1};
g.h.Xd=function(a,b){null!=this.g?Mja(this,a,b):this.Je()?Pja(this,a,(0,g.z)(function(c){!this.Je()||!X.g()&&301==c.vb()?b(c):this.Xd(a,b)},this)):b(new bz("adLoadError","The ad source contains no more ads.",1005))};
g.h.Ur=function(a,b){return this.C?0<a.length?a:b:nb(b,0,1)};
g.h.Lk=function(a,b,c){var d;if(!(d=null!=a.g)){var e=this.D;d=e.$d||0;e=e.Zd||0;HK(a)&&!a.ca?LK(a,"nonlinear")?OI(a,d,e):PI(a):LK(a,"linear")?PI(a):LK(a,"nonlinear")&&OI(a,d,e);d=null!=a.g}d?(this.A++,b(a)):(b=g.J(a.F)?Gz(bN):a.zb()?Gz(jO):Gz(xqa),d=GI(b,a),RE(kka(a),"rm")?b.o=!1:Dz(a.Ta,d),c(b))};
g.h.oo=function(a,b,c){var d=this.D.clone();d.o="";d.g=a.fb;d.Pd=hH(d.g,d.nk);VI(this,a,d,b,c)};g.C($I,TH);g.C(aJ,QI);aJ.prototype.Je=function(){if(null!=this.g&&this.g.Je())return!0;var a=0==this.A||this.A==this.J;return 0<this.ads.length&&a&&this.o<this.ads.length-1};
aJ.prototype.Ur=function(a,b){return b};
aJ.prototype.Lk=function(a,b,c){var d;d=null==this.g?qK(a):qK(this.ads[this.o]);this.H.A=d;aJ.M.Lk.call(this,a,b,c)};
aJ.prototype.oo=function(a,b,c){this.H.A=-1;aJ.M.oo.call(this,a,b,c)};g.C(eJ,gg);eJ.prototype.toString=function(){return hJ(this,eJ.M.toString.call(this))};
eJ.prototype.ts=function(){return""};
eJ.prototype.lg=function(){return""};
eJ.prototype.clone=function(){return new eJ(this.toString())};var $ja=/(doubleclick.net|googleadservices.com)/,bka=["ai","sigh"],cka=["xai","sig"];g.C(FJ,TH);GJ.prototype.parse=function(a){a=bf(a);var b=tJ(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw Gz(vqa);a=a.getAttribute("offset");a=DJ(a);if("skippable"==c&&null==a)throw Gz(uqa);return new FJ(c,a)};g.C(HJ,TH);g.C(IJ,TH);g.h=JJ.prototype;g.h.Yc=function(){return this.g.Yc()};
g.h.Pc=function(){return this.g.Pc()};
g.h.Qc=function(){return this.g.Qc()};
g.h.yb=function(){return this.g.yb()};
g.h.getHeight=function(){return this.g.getHeight()};
g.h.Vs=function(){return!D(E(this.g.B))};
g.h.Xm=function(){var a=this.g.Hb().g;return null!=a?a.g:window.NaN};
g.h.vn=function(){return this.g.ae()};
g.h.Hb=function(){return this.g.Hb()};g.C(LJ,tI);var eka=new g.ze(300,250);LJ.prototype.Ja=function(){this.D=Math.max(0,this.D-1);RJ(this)};
LJ.prototype.Ia=function(){this.D=Math.min(this.ob-3,this.D+1);RJ(this)};
LJ.prototype.cf=function(){return this.L};g.C(SJ,tI);var gka=new g.ze(300,250);SJ.prototype.cf=function(){return this.D};g.h=UJ.prototype;g.h.Qc=function(){if(null!=SK(this))return"application/javascript";if(null!=TK(this))return"application/x-shockwave-flash";var a=this.g,b="";if(null===a)return b;if(a instanceof aI)a=a.N,null===a||(b=E(a.g));else if(a instanceof tI)switch(a.ca){case "IFrame":case "Html":case "Static":b=E(a.pa)}return b};
g.h.getExtension=function(a){return this.G.get(a)};
g.h.zb=function(){return this.na?this.pa:NK(this)?!0:HK(this)?"video"==this.ab:LK(this,"linear")};
g.h.isSkippable=function(){return null!=PK(this)};
g.h.uD=function(){return this.ca};
g.h.getDuration=function(){return IK(this)+RK(this)};
g.h.zf=function(){var a=null,b=this.g;null!=b&&(a=b.zf(),D(E(a))&&(a=null));return a};
g.h.yb=function(){return this.zb()?0:this.Z.width};
g.h.getHeight=function(){return this.zb()?0:this.Z.height};
g.h.ff=function(){return this.Ja};
g.h.toString=function(){return"Ad: "+this.ra};g.C(YK,N);YK.prototype.Zq=function(){return!0};
YK.prototype.kg=function(){return null};g.C($K,YK);g.h=$K.prototype;g.h.R=function(){this.destroy();$K.M.R.call(this)};
g.h.destroy=function(){null!=this.C&&this.C.dispose();this.B=null;(0,g.H)(this.A,function(a){rH(a)},this);
this.o=null};
g.h.Xc=function(a){g.Cb(this.o);this.o=new N;this.B=a;this.D=!0;this.F?bL(this):(this.D=dL(cL(a),[]),this.D||(this.o=this.B=null));return this.o};
g.h.Zq=function(){return this.D};
g.h.TG=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.g){var a=uH(this.g);null!=a&&(this.A=a)}this.F=!0;null!=this.B&&bL(this);this.dispatchEvent(new ac("initialized"))};
g.h.NE=function(a){aL(this,a.getError())};
g.h.JE=function(a){if(null!=a.g){var b=a.g;"companion_slot_init"==a.type?(Dz(b.D),$c(function(){null!=this.o&&this.o.dispatchEvent(new IH("companion_impression"))},this)):"companion_click"==a.type&&(Dz(b.C),null!=this.o&&this.o.dispatchEvent(new IH("companion_click")))}};
g.h.kg=function(){return this.g};g.h=eL.prototype;g.h.Tm=function(){return fH(this.g)};
g.h.oi=function(){return this.g.D};
g.h.Fe=function(){return this.g.D};
g.h.qk=function(){var a=this.g.o;return null!=a?a:new rG};
g.h.jf=function(){var a=this.g;null!=a.g&&a.g.show()};
g.h.Uc=function(){};
g.h.Im=function(){return null!=this.g.G};
g.h.rk=function(){return this.g.F};
g.h.un=function(){return!1};
g.h.sk=function(){return this.g.O};
g.h.setSize=function(a,b){this.g.setSize(a,b)};
g.h.hf=function(){};
g.h.tn=function(){return null};
g.h.Rs=function(){};g.C(fL,ac);g.C(hL,ac);g.C(iL,iB);iL.prototype.J=function(){if(this.enabled&&this.events.length&&this.F<this.H){var a=new rB(void 0,"~");bB(this.D,function(b,d){uB(a,d,b)});
var b={};(0,g.H)(this.events,function(a){var c="met."+a.type;b[c]?b[c].push(jL(a)):b[c]=[jL(a)]});
bB(b,function(b,d){uB(a,d,b)});
zB(this.L,this.O,a,!0,1);this.F++}this.events.length=0;this.g.clearTimeout(this.A);this.A=0};
iL.prototype.Tk=function(a){this.F<this.H&&(iL.M.Tk.call(this,a),200<this.events.length&&this.J())};
iL.prototype.Dk=function(){iL.M.Dk.call(this);this.g.clearTimeout(this.A);this.A=0;gB(this.g,"unload",this.B);gB(this.g,"load",this.G)};g.la(nL);qL.prototype.start=function(a,b){this.C=a;this.F=b;Cka(this);this.D.F?this.H():Mo(this.o,this.D,"initialized",this.H,this)};
qL.prototype.H=function(){var a=this.D.kg(),b;b=a.Me&&"retrieved"==a.A?a.D:void 0;a=kja(a);null!=b&&(this.B.B=b);null!=a&&(this.B.G=a);Bka(this)};g.C(sL,N);var tL=null;sL.prototype.Zk=function(a){this.A=a};
sL.prototype.destroy=function(){this.G.Ca(this.o,"activityMonitor",this.J);this.o=null};
sL.prototype.J=function(a){var b=a.Oe;switch(a.pd){case "appStateChanged":nia(wE.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":xL(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":vL(b.queryId,b.viewabilityString);break;case "pageSignals":this.H=b.pageSignals;break;case "viewableImpression":wL(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;uL().B=b;uL().F=(0,g.G)();break;case "viewability":a=b.eventId;window.clearTimeout(a);
var c=this.g.get(a);c&&(this.g.remove(a),c(b.viewabilityData));break;case "viewabilityMeasurement":wE.getInstance();gC.getInstance();break;case "engagement":a=b.eventId;window.clearTimeout(a);c=this.g.get(a);if(kA.getInstance().g){var d=-1;this.D&&(d=(0,g.G)()-this.D);var e=!1;c||(e=!0);Qb(b,"loggingId")&&nA(kA.getInstance(),43,{step:"receivedResponse",time:(0,g.G)(),timeout:e,logid:b.loggingId,timediff:d})}c&&(this.g.remove(a),c(b.engagementString))}};
g.ka("ima.bridge.getNativeViewability",function(a,b){uL();b({})},void 0);
g.ka("ima.bridge.getVideoMetadata",function(){var a=(uL(),null);return ra(a)?a():{}},void 0);
g.ka("ima.bridge.triggerViewEvent",wL,void 0);g.ka("ima.bridge.triggerMeasurableEvent",vL,void 0);g.ka("ima.bridge.triggerExternalActivityEvent",xL,void 0);g.C(AL,Fka);g.C(DL,yL);DL.prototype.A=function(){return new zL(this.g,null,Jka(this))};g.C(HL,TH);IL.prototype.parse=function(a){if(null==a)return null;var b,c,d;(0,g.H)($e(a),function(a){switch(a.nodeName){case "AdFormat":b=a.getAttribute("ad_system"),c=a.getAttribute("ad_type"),d=a.getAttribute("instream_type")}},this);
return null!=b&&null!=c&&null!=d?new HL(b,c,d):null};g.C(KL,TH);KL.prototype.isPharma=function(){return this.F};LL.prototype.parse=function(a){var b;uJ(a,"config",function(a){null!=b||(b=Mka(this,a))},this);
return b};ML.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,n=!1;(0,g.H)($e(a),function(a){switch(a.nodeName){case "AttributionText":c=tJ(a);break;case "AttributionUrl":d=tJ(a);break;case "ConversionUrl":f=tJ(a);break;case "CustomTracking":null!=$e(a)&&(e=EJ(a));break;case "is_pharma":a=sJ(a,"bool");n=xJ(E(a));break;case "CheckedEvents":a=$e(a);b=(0,g.S)(a,function(a){return sJ(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":tJ(a);break;case "VisibleUrl":k=tJ(a);break;case "UI":l=(new LL).parse(a);break;case "ShowYouTubeAnnotations":var q=tJ(a);m=xJ(E(q),!1);case "QueryId":tJ(a)}},this);
null!=l||(l=new JL);return new KL(c,d,f,0,k,l,m,0,n,e,b)};NL.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)($e(a),function(a){switch(a.nodeName){case "CustomTracking":null!=$e(a)&&(b=EJ(a))}});
a=null;null!=b&&0<NH(b,"skip").length&&(a="Generic");return new HJ(a,b)};OL.prototype.parse=function(a){if(null==a)return null;var b,c;(0,g.H)($e(a),function(a){switch(a.nodeName){case "SkippableAdType":b=tJ(a);break;case "CustomTracking":null!=$e(a)&&(c=EJ(a))}});
return new HJ(b,c)};PL.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)($e(a),function(a){switch(a.nodeName){case "CustomTracking":null!=$e(a)&&(b=EJ(a))}},this);
return new TH(b)};var Q7;g.C(QL,iI);var R7;g.C(CK,iI);var S7,T7;g.C(DK,iI);var UL;g.C(FK,iI);var $L;g.C(RL,iI);var U7;g.C(SL,iI);var V7;g.C(TL,iI);var W7,X7;g.C(EK,iI);var Y7,Z7,$7,bM;g.C(xK,iI);var a8;g.h=CK.prototype;g.h.Pb=function(){return jI(this,"type",0)};
g.h.He=function(){return new EK(this.data.website_card)};
g.h.Ge=function(){return new DK(this.data.placement)};
g.h.bp=function(){return mI(this,"action")};
g.h.Uf=function(a){return new FK(lI(this,"action",a))};
FK.prototype.Pb=function(){return jI(this,"type",0)};
FK.prototype.getId=function(){return kI(this,"id")};
FK.prototype.setTitle=function(a){this.data.title=a};
RL.prototype.Pb=function(){return jI(this,"type",0)};
SL.prototype.Zc=function(){return kI(this,"headline")};
SL.prototype.setDescription=function(a){this.data.description=a};
TL.prototype.setDescription=function(a){this.data.description=a};
EK.prototype.Zc=function(){return kI(this,"headline")};
EK.prototype.setDescription=function(a){this.data.description=a};
EK.prototype.De=function(){return new xK(this.data.icon)};
EK.prototype.hi=function(){return new xK(this.data.banner_image)};
xK.prototype.getImageUrl=function(){return kI(this,"image_url")};var fM;
fM={card:{type:{TYPE_NONE:0,TYPE_VOTE:3,TYPE_LOCATION:5,TYPE_PRODUCT:1,TYPE_WEBSITE:4,TYPE_APP:2},prominence:{PROMINENCE_HIGHLIGHT:1,PROMINENCE_FEATURE:2,PROMINENCE_NONE:0}},ad_card:{attribution_position:{POSITION_BOTTOM_RIGHT:3,POSITION_TOP_RIGHT:2,POSITION_TOP_LEFT:1,POSITION_BOTTOM_LEFT:0}},action:{type:{TYPE_VOTE:18,TYPE_NONE:0,TYPE_ATTRIBUTION:5,TYPE_HELPOUTS:15,TYPE_IRDB:8,TYPE_FUNDRAISING:10,TYPE_VIDEO:3,TYPE_APPLICATION_STORE:4,TYPE_SUBSCRIPTION:6,TYPE_HEADLINE:1,TYPE_RESPONSE:12,TYPE_COLLAPSE:17,TYPE_MERCH:9,
TYPE_EXTERNAL:16,TYPE_PLAYLIST:7,TYPE_INTERNAL:13,TYPE_RESULTS:11,TYPE_LETTERMAN:14,TYPE_CHANNEL:2,TYPE_INLINE_APPLICATION_STORE:19}},event:{type:{TYPE_NONE:0,TYPE_DISMISS:4,TYPE_COLLAPSE:3,TYPE_EXPAND:2,TYPE_DISMISS_ENDCAP:11,TYPE_IMPRESSION_ENDCAP:8,TYPE_IMPRESSION_GALLERY:7,TYPE_COLLAPSE_ENDCAP:10,TYPE_ACTION_ENDCAP:9,TYPE_IMPRESSION:1,TYPE_HEADLINE_CLICK:5,TYPE_ACTION:6}}};g.C(dM,TH);eM.prototype.parse=function(a){var b=Eo(a);if(D(E(b)))return null;var c;if(this.g){c=gM;if(!Q7){var d={};Q7={g:d};if(!R7){var e={};R7={g:e};e.type=VL;if(!S7){var f={};S7={g:f};f.major_version=cM;f.minor_version=cM}e.version=hI(S7);e.priority=cM;e.start_time_ms=fI("j");e.end_time_ms=fI("j");e.action=gI(ZL());e.event=gI(YL());Y7||(f={},Y7={g:f},f.headline=WL,f.description=WL,f.attribution_icon_url=WL,f.skippable_seconds=cM,f.attribution_position=VL);e.ad_card=hI(Y7);if(!U7){f={};U7={g:f};f.headline=
WL;f.image=hI(XL());f.description=WL;f.rating=O7;f.review_text=WL;if(!V7){var k={};V7={g:k};k.merchant=WL;k.price=WL;k.shipping=WL;k.shipping_tax=WL;k.condition=WL;k.unit_price=WL;k.energy_label=WL;k.description=WL;k.rating=O7;k.review_text=WL;k.action=gI(ZL());k.event=gI(YL())}f.offer=gI(V7)}e.product_card=hI(U7);W7||(f={},W7={g:f},f.app_id=WL,f.app_name=WL,f.icon=hI(XL()),f.price=WL,f.rating_image=WL,f.review_count=cM,f.app_store_logo=hI(XL()),f.button_text=WL,f.screenshots=gI(XL()),f.rating=O7,
f.back_button_text=WL,f.screenshots_text=WL,f.cover_photo=hI(XL()));e.app_card=hI(W7);X7||(f={},X7={g:f},f.headline=WL,f.description=WL,f.icon=hI(XL()),f.banner_image=hI(XL()));e.website_card=hI(X7);e.prominence=VL;Z7||(f={},Z7={g:f},f.call_to_action_text=WL);e.social_card=hI(Z7);$7||(f={},$7={g:f},f.vote_line_1=WL,f.vote_line_2=WL,f.confirm_line_1=WL,f.confirm_line_2=WL);e.vote_card=hI($7);e.sponsored=P7;e.teaser_text=WL;T7||(f={},T7={g:f},f.hide_in_drawer=P7,f.show_in_endcap=P7,f.show_in_companion=
P7,f.show_in_cta=P7,f.override_clickthrough=P7,f.show_in_promotion_shelf=P7);e.placement=hI(T7);a8||(f={},a8={g:f},f.latitude_e6=cM,f.longitude_e6=cM,f.address=WL,f.image=hI(XL()),f.headline=WL);e.location_card=hI(a8)}d.card=gI(R7);d.event=gI(YL())}a=c(this,a,Q7);a=c=new QL(a);d=new KH;for(e=0;e<mI(a,"card");e++)if(f=new CK(lI(a,"card",e)),wK(f.Ge()))for(k=0;k<mI(f,"event");k++){var l=new RL(lI(f,"event",k)),m=null;switch(l.Pb()){case 9:m="video_card_endcap_action";break;case 10:m="video_card_endcap_collapse";
break;case 11:m="video_card_endcap_dismiss";break;case 8:m="video_card_endcap_impression"}m&&PH(d,m,hM(m,kI(l,"base_url")))}a=d}else a=Nka(this,a);return new dM(b,c,a)};g.C(iM,TH);iM.prototype.xf=function(){return this.o};g.C(jM,TH);kM.prototype.parse=function(a){if(!a)return null;var b,c;(0,g.H)($e(a),function(a){switch(a.nodeName){case "FeEventId":b=tJ(a);break;case "AdEventId":c=tJ(a)}},this);
return new jM(b,c)};lM.prototype.C=function(a){var b={};(0,g.H)(this.o,function(a){b[a]=[]});
var c=new RegExp("^"+this.A);(0,g.H)($e(a),function(a){"config"==a.nodeName&&(0,g.H)($e(a),function(a){"params"==a.nodeName&&(0,g.H)($e(a),function(a){var d=this.A?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=tJ(a));null!=a.getAttribute("learn_more")&&(e+="|");g.ab(this.o,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};g.C(nM,TH);g.C(pM,lM);pM.prototype.parse=function(a){if(null==a)return null;a=mM(this,a);var b=a.UI;return new nM(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
pM.prototype.B=function(a){var b=[],c=0;(0,g.H)($e(a),function(a){if("SurveyOption"==a.nodeName){var d,f;(0,g.H)($e(a),function(a){switch(a.nodeName){case "DisplayName":d=tJ(a);break;case "URL":f=tJ(a)}},this);
null!=d&&null!=f&&(b.push({label:d,url:f}),c++)}},this);
return b};g.C(qM,TH);rM.prototype.parse=function(a){if(null==a)return null;var b=new qM;(0,g.H)($e(a),function(a){if("DealId"!=a.nodeName)return null;a=tJ(a);a=E(a);D(a)||(b.o=a)},this);
return b};g.C(sM,TH);tM.prototype.g={kA:"Siub",jA:"Scs",Gy:"Bgub",Fy:"Bgp"};tM.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;(0,g.H)($e(a),function(a){switch(a.nodeName){case this.g.kA:b=tJ(a);break;case this.g.jA:c=tJ(a);break;case this.g.Gy:d=tJ(a);break;case this.g.Fy:e=tJ(a)}},this);
return b&&c&&d&&e?new sM(b,c,d,e):null};g.C(uM,TH);vM.prototype.g={pA:"TEMPLATE_PARAMETERS",qA:"TEMPLATE_URL"};vM.prototype.parse=function(a){if(null==a)return null;(0,g.H)($e(a),function(a){switch(a.nodeName){case this.g.pA:Oka(this,a)}},this);
return new uM};g.C(wM,TH);wM.prototype.getImageUrl=function(){return this.B};xM.prototype.g={zz:"Line1",Az:"Line2",Bz:"Line3",xz:"ImageUrl"};xM.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f=0,k=0;(0,g.H)($e(a),function(a){switch(a.nodeName){case this.g.zz:b=tJ(a,!0);break;case this.g.Az:c=tJ(a,!0);break;case this.g.Bz:d=tJ(a,!0);break;case this.g.xz:e=tJ(a);var l=Number(a.getAttribute("width"));f=(0,window.isNaN)(l)?0:l;a=Number(a.getAttribute("height"));k=(0,window.isNaN)(a)?0:a}},this);
return new wM(b,c,d,e,f,k)};g.C(yM,TH);zM.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)($e(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),D(E(a))||(b=a)}},this);
return new yM(b)};g.C(AM,TH);g.C(BM,lM);var Mqa=["menu","got_it"],Nqa=[["generic_message_left","generic_message_hypertext","generic_message_right"]];BM.prototype.parse=function(a){if(null==a)return null;a=mM(this,a);var b=a.UI;if(!CM(b,Mqa))return null;var c,d=!0,e=!1;(0,g.H)(Nqa,function(a){Pka(b,a)&&(CM(b,a)?e=!0:d=!1)});
if(!d||!e)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new AM(b.menu,b.got_it,b.targeting_reason_header,b.targeting_reason,a.CustomTracking,c,b.control)};DM.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Qa(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new IJ(a)};g.C(EM,TH);FM.prototype.parse=function(a){return null!=a?new EM:null};GM.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Qa(a):window.NaN;return new $I(a)};g.C(HM,tI);HM.prototype.cf=function(){var a=this.In(),a=null!=a&&"clicktag"==a.toLowerCase(),a={url:xz(E(this.B)),width:this.yb(),height:this.getHeight(),jc:this.Le(),capture:this.lr||!a},b=X.g()&&RE(this.F,"hideMaster")?VH:qja,a=AF(b,a);a.style.width=this.yb()+"px";a.style.height=this.getHeight()+"px";a.id=this.Da;(0,g.H)(a.getElementsByTagName("object"),this.G,this);(0,g.H)(a.getElementsByTagName("a"),this.G,this);return a};g.C(IM,tI);IM.prototype.cf=function(){var a=g.P("DIV");a.innerHTML=this.B;this.G(a);return xI(this,a)};g.C(JM,tI);JM.prototype.Yc=function(){var a=JM.M.Yc.call(this);this.C&&(a=a.replace('src=""','src="'+xz(E(this.B))+'"'));return a};
JM.prototype.Ln=function(){var a=JM.M.Ln.call(this);this.C&&(a=a.replace('src=""','src="'+xz(E(this.B))+'"'));return a};
JM.prototype.cf=function(a){var b="";this.C||(b=xz(E(this.B)));b={id:this.Da,url:b,jc:this.Le(),width:this.yb()+"px",height:this.getHeight()+"px"};a=X.g()&&RE(this.F,"hideMaster")?VH:a?sja:rja;a=AF(a,b);(0,g.H)(a.getElementsByTagName("a"),this.G,this);return a};
JM.prototype.yi=function(){return!0};g.C(KM,tI);KM.prototype.cf=function(){var a=E(this.B);D(E(this.Le()))||(a=new gg(a),g.pg(a,"clickTAG",Ba(this.Le())),a=a.toString());var b=g.P("IFRAME",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.Qc()&&(b.width=this.yb());b.setAttribute("src",xz(a));this.G(b);return xI(this,b)};NM.prototype.Qc=function(){return null!=this.g?rI[this.g]||"Other":null};OM.prototype.getDuration=function(){return this.o};
OM.prototype.Pc=function(){return this.g};
OM.prototype.update=function(a,b){var c=null!=this.F?RH(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?Ska(this):R(this.g,!1)};g.C(QM,yL);
QM.prototype.g={uy:"Ad",Ql:"AdParameters",zy:"AdSystem",Ay:"AdTitle",vy:"Advertiser",Dy:"AltText",Iy:"ClickThrough",Jy:"ClickTracking",Ly:"Companion",My:"CompanionAds",Ny:"CompanionClickThrough",Oy:"CompanionClickTracking",Qy:"Creative",LO:"CreativeExtensions",Ry:"Creatives",Vy:"CustomClick",Zy:"Description",Tl:"Duration",ERROR:"Error",hz:"Extension",iz:"Extensions",uj:"HTMLResource",nz:"Icon",oz:"Icons",pz:"IconClicks",qz:"IconClickThrough",rz:"IconClickTracking",uz:"IconViewTracking",wj:"IFrameResource",
xj:"Impression",iQ:"InLine",LINEAR:"Linear",Fz:"MediaFile",Gz:"MediaFiles",Pz:"NonLinear",Qz:"NonLinearAds",Rz:"NonLinearClickThrough",Sz:"NonLinearClickTracking",Wz:"Pricing",yj:"StaticResource",oA:"Survey",vT:"Tracking",$l:"TrackingEvents",LT:"VAST",sA:"VASTAdTagURI",tA:"VideoClicks",wA:"Wrapper"};
QM.prototype.o={wy:"adId",yy:"adSlotID",Cy:"allowMultipleAds",sj:"apiFramework",Np:"bitrate",Sy:"creativeType",Yy:"delivery",Tl:"duration",FP:"event",lz:"followAdditionalWrappers",fz:"expandedHeight",gz:"expandedWidth",tj:"height",vj:"id",Cz:"maintainAspectRatio",Ez:"maxBitrate",Kz:"minBitrate",Lz:"minSuggestedDuration",Tz:"offset",Xz:"program",aA:"required",dA:"scalable",tq:"sequence",hA:"skipoffset",Hq:"type",VERSION:"version",uA:"codec",zj:"width",xA:"xPosition",yA:"yPosition"};
QM.prototype.A=function(){return new zL(this.B,Uka(this),null)};g.C(ZM,yL);
ZM.prototype.A=function(){if(null===this.g){for(var a=this.B,b=new BL,c=$e(bf(this.B)),d=0,e=c.length;d<e;d++){var f=c[d];if("vmap:AdBreak"==f.nodeName){var k,l=f,m=oz().g.g("html5_enable_xml_performance_optimization");k=[];for(var n="",q=null,t=!1,w=!1,x=null,A=$e(l),F=0,I=A.length;F<I;F++){var K=A[F];switch(K.nodeName){case "vmap:AdSource":if(!q){if(!m)try{q=Fo(K,"vmap:VASTData/VAST")||Fo(K,"vmap:VASTAdData/VAST")}catch(lb){}q||(q=gla(K));if(!q){var n=K,K=rJ(n,"vmap:AdTagURI"),Ua="";K.length&&(Ua=
E(tJ(K[0])));if(D(Ua))throw Gz(zqa,null,n.parentNode.nodeName,n.nodeName);n=Ua}}break;case "vmap:Extensions":x=rJ(K,"vmap:Extension"),K=g.Xa(x,g.B($M,"type","bumper")),null!=K&&(t=!0,w=sJ(K,"suppress_bumper"),w=null!=w?"true"==w:!0),(x=g.Xa(x,g.B($M,"type","youtube")))?(x=x.getElementsByTagNameNS("http://youtube.com","BreakProperty"),g.J(x)?x=null:(x=x[0],x=x.hasAttribute("break_type")?dla(x.getAttribute("break_type")):null)):x=null}}m=null;if(q){m=q;q=null;if(pz().g("html5_reuse_parsed_xml"))try{q=
qJ(m)}catch(lb){q=Eo(m)}else q=Eo(m);m=this.o.clone();m.o=q;m.g=""}else D(n)||(q=n,m=this.o.clone(),m.o="",m.g=q);m&&(X.g()&&(q=m,l=sJ(l,"timeOffset"),A=wJ(l),q.yl="start"==l||0==A?0:"end"==l||-1==A?-1:1E3*A),l=new AL(m),l.g=t,l.o=t&&!w,l.B=x,g.cb(k,l));f=ela(f);t=0;for(w=f.length;t<w;t++)if(l=f[t],x=wJ(l),0<t&&(k=fla(this,k)),"start"==l||0==x)CL(b,k,0);else if("end"==l)CL(b,k,-1);else{if(-1==x)throw Gz(FL,null,"timeOffset",E(l));CL(b,k,x)}}}if(0==b.g.rb().length)throw Gz(SI);this.g=new zL(a,null,
b)}return this.g};g.h=cN.prototype;
g.h.clone=function(){var a=new cN;"auto"==this.zg?a.zg="auto":"click"==this.zg&&(a.zg="click");a.g=this.g;a.cg=Wb(this.cg);a.o=this.o;a.Hj=this.Hj;a.Yb=Wb(this.Yb);a.B=this.B;a.location=this.location;a.referrer=this.referrer;a.C=this.C;a.language=this.language;a.Xg=this.Xg;a.Wg=this.Wg;a.$d=this.$d;a.Zd=this.Zd;a.Pd=this.Pd;a.il=this.il;a.pk=this.pk;a.Eo=this.Eo;a.A=this.A;a.yl=this.yl;a.nk=this.nk;a.afcRmFallback=this.afcRmFallback;a.G=this.G;a.F=this.F;a.Og=this.Og;a.xl=this.xl;a.Et=this.Et;return a};
g.h.cg=null;g.h.Hj=null;g.h.Yb=null;g.h.zg="unknown";g.h.Et=0;g.h.Xg=0;g.h.Wg=0;g.h.$d=0;g.h.Zd=0;g.h.Og=!1;g.h.Pd=null;g.h.il=!1;g.h.pk=!1;g.h.Eo=!0;g.h.xl=new iz;g.h.yl=0;g.h.Or=!0;g.h.nk=null;g.h.afcRmFallback=!1;dN.prototype.G=function(){var a=this.B(this.C());return jd(a)?a.then(function(a){return a.toString()}):a instanceof Error?a:a.toString()};
dN.prototype.D=function(){var a;a=1;bA(!1)&&(a+=4);if(!X.g()){var b=0;X.H&&(b=b+1024+14336);X.Z&&(b+=8);a+=b}return a};var EN={BT:"ultrahigh",ZP:"high",Hz:"medium"},lla={GN:1E3,HN:1001,IN:1002,JN:1003,KN:1004,LN:1005,MN:1006},mla={Dz:1,jz:2},nla={GO:"content",LS:"site",MS:"site_content"};g.h=jN.prototype;g.h.Aj="high";g.h.Fn=!1;g.h.gm=1;g.h.hm=null;g.h.adType="video";g.h.adBlock=1;g.h.Gn=null;g.h.jm=!0;g.h.km=null;g.h.Gm=null;g.h.Yh=null;g.h.experimentIds=null;g.h.gender=null;g.h.host=null;g.h.hostTierId=null;g.h.isLiveStream=!1;g.h.language=null;g.h.lt=null;g.h.kt=null;g.h.Bk=1E5;g.h.Ck=null;g.h.tt=null;g.h.qt=null;
g.h.Yn=0;g.h.nh=null;g.h.Nk=null;g.h.Wk=null;g.h.targeting=null;g.h.tagForChildDirectedTreatment=-1;g.h.Kk=null;g.h.url=null;g.h.tk=null;g.h.Uo=null;g.h.Hn=null;g.h.$o=null;g.h.Xo=null;g.h.Yo=null;g.h.Zo=null;g.h.wm=null;g.h.So=null;g.h.vl=null;var mN=(new Date).getTime();var jla={iO:"bumpervideo",kz:"flash",IMAGE:"image",RS:"skippablevideo",VS:"standardvideo",YS:"staticimage",TEXT:"text",VIDEO:"video"},wN=["flash","image","staticimage"],kla=[new g.ze(200,200),new g.ze(250,250),new g.ze(300,250),new g.ze(336,280),new g.ze(450,50),new g.ze(468,60),new g.ze(480,70),new g.ze(728,90)];g.C(FN,dN);var ola=["bumpervideo","skippablevideo","standardvideo","video"];FN.prototype.F={By:"allow",dz:"exclude",qS:"require"};FN.prototype.D=function(){var a=FN.M.D.call(this);X.g()&&this.g.Wk&&(a|=this.g.Wk);return a};
FN.prototype.B=function(a){var b=new gg(this.o.g),c=new gg("//"+b.o+b.A),b=a.rb();(0,g.H)(b,function(b){g.pg(c,b,a.get(b))});
hg(c,"https");return c};
FN.prototype.C=function(){var a=new If;a.set("sdkv",iN(this));a.set("sdki",this.D().toString(16));a.set("video_product_type",null!=this.g.nh?X.g()?5:g.za(this.g.nh,"ca-games-")?4:g.za(this.g.nh,"ca-video-")?0:-1:-1);a.set("correlator",this.H.g);a.set("client",this.g.nh);X.g()&&!D(E(this.g.url))?a.set("url",this.g.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.Pd&&a.set("adk",this.o.Pd);a.set("num_ads",GN(this));a.set("channel",qla(this));a.set("output","xml_vast3");
this.g.Fn&&a.set("adtest","on");NE&&a.set("flash",ZB);vN("alternate_ad_url",this.g.km,a);vN("cpm",this.g.Gm,a);lN(a,this.o);X.g()||Kb(EN,this.g.Aj)&&a.set("adsafe",this.g.Aj);this.g.host&&(a.set("host",this.g.host),vN("ht_id",this.g.hostTierId,a),null!=this.g.A&&vN("h_ch",this.g.A.join("+"),a));vN("hl",this.g.language,a);vN("cust_age",this.g.Gn,a);vN("cust_gender",this.g.gender,a);-1!=this.g.tagForChildDirectedTreatment&&vN("tfcd",this.g.tagForChildDirectedTreatment,a);null!=this.g.Kk&&vN("pucrd",
this.g.Kk,a);vN("slotname",this.g.hm,a);if(qN(this.g)&&(a.set("ea","0"),null!=this.o.$d&&null!=this.o.Zd)){var b=rN(this.g,this.o.$d,this.o.Zd,this.o.Og);a.set("image_size",b);D(b)&&(this.g.g=yN(this.g.g,this.g.adType,!0),this.g.adType=this.g.g.join("_"))}a.set("ad_type",this.g.adType);b=sz(oz());D(E(b))||a.set("eid",b);nN(a);if(!pz().g("no_ad_block_param")){var b=this.H,c=this.g,d=this.g.Yh;if(null!=d){var e=iA(b),c=null!=c.vl?c.vl:eA(e,d);1!=c&&a.set("ad_block",c);null==b.O&&(b.O=new fA);var c=
b.O,f=d!=b.N;(e=0==e.g%100||f)||(e=36E5<(null===c.g?0:(new Ny).getTime()-c.g));e&&c.reset();b.N=d;b=c.o;null!==b&&a.set("tok",b)}}a.set("unviewed_position_start","1");b=this.g.gm;a.set("videoad_start_delay",null!=b?b:1);gN(this,a);hN(this,a);eN(this,a);pla(this)&&a.set("video_format",null!=this.g.tk&&X.g()?this.g.tk:g.Uh&&kt(6)||g.dv&&kt(4)||Wz(2.3)?43:18);a.set("t_pyv",null!=this.g.Nk?this.g.Nk:g.ab(this.g.adType.split("_"),"text")?this.F.By:this.F.dz);vN("min_ad_duration",this.g.Yn,a);0<this.g.Bk&&
a.set("max_ad_duration",Math.round(1.1*(this.g.Bk||0)+0*GN(this)));0<this.g.Ck&&a.set("sdmax",Math.round(1.1*(this.g.Ck||0)+0*GN(this)));sN(a,this.J);X.g()&&(b=dF(this.g.Yh),null!=b&&a.set("video_doc_id","yt_"+b));vN("description_url",this.g.Yh,a);X.g()&&(vN("lact",oN(this.o),a),vN("loeid",this.g.Hn,a),vN("lsv",this.g.isLiveStream,a),this.g.jm||vN("scs","false",a),vN("targeting",this.g.targeting,a),vN("video_cpm",this.g.Uo,a),vN("yt_pt",this.g.$o,a),vN("ytdevice",this.g.Xo,a),vN("ytdevicever",this.g.Yo,
a),vN("yt_vis",pN(this.o),a),vN("dbp",this.g.Zo,a),vN("avo",this.g.wm,a),vN("v_p",this.g.So,a));null!=a.get("ms")||vN("ms",this.g.B,a);fN(a);tN(this.o,a,!1);null!=this.o.cg&&vN("loc",this.o.cg.page_location,a);return a};g.C(HN,dN);HN.prototype.B=function(a){var b=new gg(this.o.g);(0,g.H)(a.rb(),function(c){D(a.get(c))?b.g.remove(c):g.pg(b,c,a.get(c))});
hg(b,"https");return b};
HN.prototype.C=function(){var a=new If;a.set("sdkv",iN(this));hN(this,a);eN(this,a);fN(a);null!=this.o.Pd&&a.set("adk",this.o.Pd);return a};g.C(IN,dN);IN.prototype.C=function(){return new If};
IN.prototype.B=function(){var a=new eJ(this.o.g),b=iN(this);b&&gJ(a,"dc_sdkv",[b]);(b=this.D().toString(16))&&gJ(a,"dc_sdki",[b]);(b=this.A.J)&&gJ(a,"dc_submodel",[b]);null!=this.o.Pd&&gJ(a,"dc_adk",[this.o.Pd]);var b=oz(),c=sz(b);D(E(c))||gJ(a,"dc_eid",[c]);c=new If;gN(this,c);hN(this,c);eN(this,c);fN(c);Kf(c,"js")&&gJ(a,"dc_js",[c.get("js")]);Kf(c,"msid")&&gJ(a,"dc_msid",[c.get("msid")]);Kf(c,"frm")&&gJ(a,"dc_frm",[c.get("frm")]);Kf(c,"osd")&&gJ(a,"dc_osd",[c.get("osd")]);Kf(c,"sdr")&&gJ(a,"dc_sdr",
[c.get("sdr")]);gJ(a,"dcmt",["text/xml"]);Kf(c,"vpa")&&gJ(a,"vpa",[c.get("vpa")]);Kf(c,"mpt")&&gJ(a,"mpt",[c.get("mpt")]);Kf(c,"mpv")&&gJ(a,"mpv",[c.get("mpv")]);rz(b,413051056)&&(b=fJ(a,"dc_output"),null!=b&&(g.ab(b,"vast")||g.ab(b,"xml_vast2"))&&gJ(a,"dc_output",["xml_vast3"]));hg(a,"https");return a};g.C(JN,dN);JN.prototype.B=function(a){a=new gg(a.get("adTagUrl"));hg(a,"https");return a};
JN.prototype.G=function(){var a=E(this.C().get("adTagUrl"));return a=a.replace(/^http:/i,"https:")};
JN.prototype.C=function(){var a=new If;a.set("adTagUrl",this.o.g);a.set("adsResponse",this.o.o);return a};g.C(KN,dN);KN.prototype.B=function(a){return new gg(a.get("adTagUrl"))};
KN.prototype.C=function(){var a=new If;a.set("adTagUrl",this.o.g);a.set("adsResponse",this.o.o);return a};g.C(LN,dN);LN.prototype.B=function(a){var b=new gg(this.o.g);(0,g.H)(a.rb(),function(c){D(a.get(c))?b.g.remove(c):g.pg(b,c,a.get(c))});
hg(b,"https");return b};
LN.prototype.C=function(){var a=new If,b=sz(oz());D(E(b))||a.set("eid",b);a.set("sdkv",iN(this));a.set("sdki",this.D().toString(16));a.set("correlator",this.A.B);a.set("scor",this.A.g);null!=this.o.Pd&&a.set("adk",this.o.Pd);gN(this,a);hN(this,a);eN(this,a);fN(a);var b=(new gg(this.o.g)).g,c=new jN;c.o=CN(c.o,b.get("overlay"));a.set("afvsz",rN(c,this.o.$d,this.o.Zd,this.o.Og));b=this.A.A;null!=b&&(this.A.A=null,a.set("fbidx",b));b=this.A.P;null!=b&&a.set("ppid",b);b="null";c=this.A.o;null!=c?b=c:
MN(this.o.location)?b=this.o.location:MN(this.o.referrer)&&(b=this.o.referrer);a.set("url",b);b=this.A.J;null!=b&&a.set("submodel",b);b=this.A.G;null==b||X.g()||(b=rla(b),a.set("ciu_szs",b));rz(oz(),413051056)&&(b=(new gg(this.o.g)).g.get("output"),null!=b&&("vast"!=b&&"xml_vast2"!=b||a.set("output","xml_vast3")));a.set("impl","");a.set("unviewed_position_start","1");return a};g.C(NN,LN);NN.prototype.B=function(a){a=NN.M.B.call(this,a);this.H||tla(this,a);return a};g.C(ON,IN);ON.prototype.B=function(a){a=ON.M.B.call(this,a);this.H||vla(this,a);return a};g.C(PN,dN);var xla="CA_TYPE CPN DT FLASH FRM LACT MT TSLA U_AH U_AW U_CD U_H U_HIS U_JAVA U_NMIME U_NPLUG U_TZ U_W VIS".split(" ");PN.prototype.B=function(){if(!/\[BISCOTTI_ID\]/.test(this.o.g))return QN(this);var a=this.o.Hj();return jd(a)?a.then(function(a){return QN(this,a)},function(a){throw Gz(F7,a);
},this):a instanceof Error?Gz(F7,a):QN(this,a)};
PN.prototype.C=function(){return new If};SN.prototype.fetch=function(a,b,c){null!=a.o&&(g.y(a.o)&&!D(a.o)||a.o instanceof window.Document)?Gla(this,a,b,c):mJ(a.g)&&null!=this.g&&!this.g.G?this.g.start(a,(0,g.z)(function(){UN(this,a,b,c)},this)):UN(this,a,b,c)};
SN.prototype.o=function(a,b,c,d){var e=zla(a,this.B).G();jd(e)?e.then(function(e){WN(this,e,a,b,c,d)},function(a){a instanceof bz?c(a):c(Gz(VN,a))},this):e instanceof bz?c(e):e instanceof Error?c(Gz(VN,e)):WN(this,e,a,b,c,d)};XN.prototype.reset=function(a){this.g=a+(0,g.G)()};g.h=YN.prototype;g.h.xc=function(){return this.g.length+this.o.length};
g.h.isEmpty=function(){return g.J(this.g)&&g.J(this.o)};
g.h.clear=function(){this.g=[];this.o=[]};
g.h.contains=function(a){return g.ab(this.g,a)||g.ab(this.o,a)};
g.h.remove=function(a){var b;b=this.g;var c=aqa(b,a);0<=c?(g.db(b,c),b=!0):b=!1;return b||g.eb(this.o,a)};
g.h.$a=function(){for(var a=[],b=this.g.length-1;0<=b;--b)a.push(this.g[b]);for(var c=this.o.length,b=0;b<c;++b)a.push(this.o[b]);return a};g.C(eO,N);var Oqa={NORMAL:"normal",Zp:"fullscreen"};g.C(kO,g.L);g.h=kO.prototype;g.h.xi=!1;g.h.Ys=1E3;g.h.Ht=30;g.h.It=45E3;g.h.Ru=15E3;g.h.Vv=!1;g.h.Em=function(){var a=lO(this);this.g.appendChild(this.J);mO(this.J);this.play();return a};
g.h.oa=function(){null==this.O&&(this.O=this.Em());return this.O};
g.h.play=function(){null==this.o&&(this.o=Gd(function(){this.xi||(this.wn(),this.Vv=!0);this.o=null},this.Vv?this.Ru:this.It,this))};
g.h.stop=function(){null!=this.o&&(Hd(this.o),this.o=null)};
g.h.show=function(){kj(this.oa(),1);null!=this.A&&(Hd(this.A),this.A=null)};
g.h.wn=function(){kj(this.oa(),this.Ht/100);null==this.A&&(this.A=Gd(function(){this.V();this.A=null},400,this))};
g.h.DC=function(){this.show();this.xi=!0;this.D=Gd(function(){this.xi&&this.stop();this.D=null},this.Ys,this)};
g.h.RI=function(){null!=this.D&&(Hd(this.D),this.D=null);this.xi&&this.play();this.xi=!1};
g.h.R=function(){kO.M.R.call(this);this.stop();g.Cb(this.Ie)};g.C(nO,kO);g.h=nO.prototype;g.h.Em=function(){var a=lO(this);g.O(a,"ima-container-rotator");this.G=g.P("DIV");this.g.appendChild(this.G);(0,g.H)(this.L,function(a,c){g.O(a,"ima-container-highlight");var b=63/this.L.length*(c+.5)-5,e=g.P("DIV",{id:Pa(),"class":"ima-container-selector"});e.style.top=b+"px";this.Ie.S(e,"click",function(a){this.rh(a.target)});
this.P.set(e.id,a);this.F.appendChild(e)},this);
this.rh(bf(this.F));this.play();return a};
g.h.play=function(){null==this.B&&(this.B=new Ed(this.N),this.Ie.S(this.B,"tick",this.nI));nO.M.play.call(this);this.B.start()};
g.h.stop=function(){null!=this.B&&this.B.stop();nO.M.stop.call(this)};
g.h.nI=function(){var a=this.C;this.rh((g.p(a.nextElementSibling)?a.nextElementSibling:af(a.nextSibling))||bf(this.C.parentNode))};
g.h.rh=function(a){this.C&&g.Pd(this.C,"ima-container-active");g.O(a,"ima-container-active");var b=this.P.get(a.id);Ze(b,this.G);this.C=a;this.G=b;mO(b)};g.C(oO,kO);oO.prototype.wn=g.v;oO.prototype.Em=function(){var a=lO(this);(0,g.H)(this.B,function(a){g.O(a,"ima-container-highlight");this.g.appendChild(a);mO(a)},this);
this.play();return a};g.C(pO,Zo);g.h=pO.prototype;g.h.play=function(){if(this.gb())return!1;this.Gk();this.Id("play");this.startTime=(0,g.G)();this.g=1;if(pqa())return g.Si(this.o,this.F),this.B=Gd(this.WH,void 0,this),!0;this.Do(!1);return!1};
g.h.WH=function(){g.ij(this.o);kq(this.o,this.D);g.Si(this.o,this.A);this.B=Gd((0,g.z)(this.Do,this,!1),1E3*this.C)};
g.h.stop=function(){this.gb()&&this.Do(!0)};
g.h.Do=function(a){g.Si(this.o,"transition","");Hd(this.B);g.Si(this.o,this.A);this.endTime=(0,g.G)();this.g=0;a?this.Id("stop"):this.cd();this.Ji()};
g.h.R=function(){this.stop();pO.M.R.call(this)};
g.h.pause=function(){};g.C(tO,N);g.h=tO.prototype;g.h.start=function(){this.yn();this.A=0;uO(this);this.o=!0;this.C.start()};
g.h.play=function(){this.o||(uO(this),this.o=!0,this.C.start())};
g.h.pause=function(){this.o&&uO(this)};
g.h.stop=function(){this.o&&uO(this);this.dispatchEvent("end")};
g.h.yn=function(){};
g.h.wG=function(){this.A+=.2;this.xn(this.A,this.O);this.dispatchEvent("timeUpdate");0>=this.O-this.A&&this.stop()};
g.h.xn=g.v;g.h.R=function(){this.o=!1;this.J.dispose();tO.M.R.call(this)};var b8={Pp:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},Ky:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},
1E14:{other:"000 trillion"}}},GO=b8,GO=b8;var xO={AED:[2,"dh","\u062f.\u0625.","DH"],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"Rial","Rial"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"TL","YTL"],TWD:[2,"NT$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};zO.prototype.parse=function(a,b){var c=b||[0];if(0!=this.J)throw Error("Parsing of compact numbers is unimplemented");var d;a=a.replace(/ /g,"\u00a0");var e=a.indexOf(this.G,c[0])==c[0],f=a.indexOf(this.B,c[0])==c[0];e&&f&&(this.G.length>this.B.length?f=!1:this.G.length<this.B.length&&(e=!1));e?c[0]+=this.G.length:f&&(c[0]+=this.B.length);if(a.indexOf(vO.Xl,c[0])==c[0])c[0]+=vO.Xl.length,d=window.Infinity;else{d=a;var k=!1,l=!1,m=!1,n=1,q=vO.Tp,t=vO.Wl,w=vO.Wp;if(0!=this.J)throw Error("Parsing of compact style numbers is not implemented");
for(var x="";c[0]<d.length;c[0]++){var A=d.charAt(c[0]),F=FO(A);if(0<=F&&9>=F)x+=F,m=!0;else if(A==q.charAt(0)){if(k||l)break;x+=".";k=!0}else if(A==t.charAt(0)&&("\u00a0"!=t.charAt(0)||c[0]+1<d.length&&0<=FO(d.charAt(c[0]+1)))){if(k||l)break}else if(A==w.charAt(0)){if(l)break;x+="E";l=!0}else if("+"==A||"-"==A)x+=A;else if(1==this.g&&A==vO.oq.charAt(0)){if(1!=n)break;n=100;if(m){c[0]++;break}}else if(1==this.g&&A==vO.pq.charAt(0)){if(1!=n)break;n=1E3;if(m){c[0]++;break}}else break}1!=this.g&&(n=
this.g);d=(0,window.parseFloat)(x)/n}if(e){if(a.indexOf(this.O,c[0])!=c[0])return window.NaN;c[0]+=this.O.length}else if(f){if(a.indexOf(this.H,c[0])!=c[0])return window.NaN;c[0]+=this.H.length}return f?-d:d};
zO.prototype.format=function(a){if((0,window.isNaN)(a))return vO.Nz;var b=[],c;c=a;if(0==this.J)c=HO;else{c=Math.abs(c);var d=IO(this,1>=c?0:BO(c)).Mm;c=IO(this,d+BO(CO(this,c/Math.pow(10,d)).intValue))}a/=Math.pow(10,c.Mm);b.push(c.prefix);d=0>a||0==a&&0>1/a;b.push(d?this.B:this.G);if((0,window.isFinite)(a))if(a=a*(d?-1:1)*this.g,this.V){var e=a;if(0==e)DO(this,e,this.o,b),EO(this,0,b);else{a=Math.floor(Math.log(e)/Math.log(10)+2E-15);var f=Math.pow(10,a);(0,window.isFinite)(f)&&0!==f?e/=f:(f=Math.pow(10,
Math.floor(a/2)),e=e/f/f,1==a%2&&(e=0<a?e/10:10*e));f=this.o;if(1<this.N&&this.N>this.o){for(;0!=a%this.N;)e*=10,a--;f=1}else 1>this.o?(a++,e/=10):(a-=this.o-1,e*=Math.pow(10,this.o-1));DO(this,e,f,b);EO(this,a,b)}}else DO(this,a,this.o,b);else b.push(vO.Xl);b.push(d?this.H:this.O);b.push(c.Hv);return b.join("")};
var HO={prefix:"",Hv:"",Mm:0};g.C(JO,N);g.h=JO.prototype;g.h.R=function(){null!=this.xg&&(Hd(this.xg),this.xg=null);null!=this.Nd&&(g.Ye(this.Nd),this.Nd=null);JO.M.R.call(this)};
g.h.HA=function(){this.xg=null;KO(this,"0%","100%","1","0");this.xg=Gd((0,g.z)(function(){this.xg=null;LO(this,!1);null!=this.Nd&&R(this.Nd,!1);this.Fi("complete")},this),400)};
g.h.show=function(a){this.Fi("impression");KO(this,"100%","0%","0","1");LO(this,!0);null!=this.Nd&&R(this.Nd,!0);this.xg=Gd(this.HA,a,this)};
g.h.VC=function(a){X.g()||a.stopPropagation()};
g.h.Fi=function(a){a=fF({action:"condor-brand-precap",event:a,ei:"[EID]",cpn:"[CPN]",content_v:"[CONTENT_V]",ad_v:"[AD_V]",ad_id:"[AD_ID]",ad_len:"[AD_LEN]"});a=yp(a,this.A.J);zz(a)};g.h=MO.prototype;
g.h.Ku=function(){var a={heading:"",targetingReasons:[],learnMore:"",Qm:"",control:"",mute:""};if(null!=this.C){a.heading=this.C.C;var b=this.C.o;if(b&&3==b.length){var c=b[1],d=b[2],b=GF(Z(b[0])+eG()+Z(c)+GF("</a>")+Z(d));a.Qm=b}a.targetingReasons=g.jb(this.C.D);a.close=this.C.A}else a.Qm=fG(),b=wa("Got It"),a.close=""+b;null!=this.A&&(a.mute=this.A.B);PO(this,$ia,a);OO(this,"videoAdUiWhyThisAdCloseButton",this.Nj);OO(this,"videoAdUiWhyThisAdControl",this.Nr);OO(this,"videoAdUiWhyThisAdMute",this.RH);
a=Ie("videoAdUiWhyThisAdGenericMessage",this.g);null!=a&&(a=a.getElementsByTagName("A")[0],null!=a&&this.B.S(a,"click",this.Nr))};
g.h.Nj=function(){null!=this.B&&(this.B.dispose(),this.B=null);NO(this)&&null!=this.g&&(null!=this.o&&(this.o.dispatchEvent("why_this_ad_got_it"),this.o.dispose(),this.o=null),this.g.parentElement.removeChild(this.g),this.g=null)};
g.h.Nr=function(){null!=this.o&&this.o.dispatchEvent("why_this_ad_settings_url")};
g.h.RH=function(){if(null!=this.A){this.o.dispatchEvent("mute_interaction_url");var a,b=oM(this.A);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},PO(this,bja,a),OO(this,"videoAdUiMuteCancel",this.Ku),OO(this,"videoAdUiMuteConfirm",this.XA);else{this.o.dispatchEvent("mute_url");a={heading:this.A.A,undo:this.A.D,question:this.A.C,options:[],confirm:"SEND",cancel:"CLOSE"};var c;c=this.A?(c=NH(this.A.g,"mute_undo_url"))&&0<c.length:!1;c||(a.undo=
"");for(c=0;c<b;c++)a.options.push(this.A.o[c].label);PO(this,aja,a);OO(this,"videoAdUiMuteUndo",this.QI);OO(this,"videoAdUiMuteConfirm",this.KI);OO(this,"videoAdUiMuteCancel",this.Dm)}}};
g.h.XA=function(){this.o.dispatchEvent("mute_url");this.Dm()};
g.h.QI=function(){this.o.dispatchEvent("mute_undo_url");this.Nj()};
g.h.KI=function(){if(null!=this.A){for(var a=oM(this.A),b=!1,c=0;c<a;c++){var d=Ie("videoAdUiMuteOption"+c,this.g);if(null!=d&&d.checked){b=!0;zz(this.A.o[c].url);break}}if(!b)return}this.Dm()};
g.h.Dm=function(){this.o.dispatchEvent("MUTE_AD");this.Nj()};g.C(SO,N);SO.prototype.isVisible=function(){return lj(this.o)};
SO.prototype.update=function(a){a>=this.O&&!this.isVisible()&&(this.F=rO(this.o,.5),g.M(this,this.F),this.F.play(),R(this.o,!0));this.G=a};
SO.prototype.V=function(a){X.g()||a.stopPropagation();var b=a.target.jg;null!=b&&(this.J++,a=(0,g.G)(),Sd(b,"selected")?(null!=this.g&&g.Pd(this.g,"selected"),this.g=b):this.g=null,b=null!=this.g?g.Md(this.g,"videoAdUiBrandInteractionLikeButton")?"l":g.Md(this.g,"videoAdUiBrandInteractionDislikeButton")?"d":"n":"n",this.B.push(b),this.C.push(a.toString()),this.D.push(this.G.toString()))};
SO.prototype.R=function(){null!=this.o&&(g.Ye(this.o),this.o=null);this.g=null;SO.M.R.call(this)};g.C(WO,N);WO.prototype.D=function(){this.g?this.dispatchEvent("videoUnmuteClicked"):this.dispatchEvent("videoMuteClicked")};
WO.prototype.R=function(){this.C.dispose();this.C=null;WO.M.R.call(this)};g.C(XO,N);XO.prototype.R=function(){null!=this.o&&(g.Ye(this.o),this.o=null);XO.M.R.call(this)};
XO.prototype.update=function(a,b){if(!(0>=b))if(0>a)this.F=1;else if(1==this.F)rO(this.o,.5).play(),R(this.o,!0),this.F=2,this.Fi("i");else if(this.B){var c=Math.round(b-a);0>c||g.ff(this.A,cG({qf:c}))}else this.L&&5<a&&(this.L=!1,R(this.A,!1))};
XO.prototype.N=function(){lj(this.A)||R(this.A,!0);this.J++;this.Fi("c")};
XO.prototype.Fi=function(a){this.O&&(a=fF({action:"condor-video-preview",event:a,ei:"[EID]",cpn:"[CPN]",content_v:"[CONTENT_V]",ad_v:"[AD_V]",ad_id:"[AD_ID]",ad_len:"[AD_LEN]",m_pos:"[MIDROLL_POS]",show_countdown:Number(this.B),num_clicks:this.J}),a=yp(a,this.D.J),zz(a))};var bma=/#(.)(.)(.)(.)/,ama=/^#(?:[0-9a-f]{4}){1,2}$/i;g.C(aP,N);var dma={0:"",2:"skipBottomMarginMedium"};g.h=aP.prototype;g.h.R=function(){null!=this.G&&(this.G.dispose(),this.G=null);null!=this.L&&(this.L.dispose(),this.L=null);bP(this);null!=this.C&&(g.Ye(this.C),this.C=null);null!=this.g&&(this.g=null);null!=this.o&&(g.Ye(this.o),this.o=null);this.V.dispose();this.V=null;this.F.dispose();this.F=null;this.O=this.ca=!1;aP.M.R.call(this)};
g.h.update=function(a,b){this.da=b;if(!(0>=this.da||null==this.B.skipOffset||0>RH(this.B.skipOffset))){var c=RH(this.B.skipOffset);if(!(c>=this.da))if(3==this.D){if(this.ba&&(c=sA(this.A,5),!(1E3*a<=1E3*RH(this.B.skipOffset)+c))){var d;d=u("window.yt.util.activity.getTimeSinceActive");(d=(d=null!=d?d().toString():null)?Ta(d):null)&&d>=c&&!this.O?this.Bo():d&&d<c&&this.O&&this.Su()}}else 0>a?this.D=1:a<=c?(2!=this.D&&(this.na?(this.g.disabled=!0,kj(this.g,.5),g.Pd(this.g,"videoAdUiAction"),g.O(this.g,
"videoAdUiActionNoHover"),this.G=rO(this.o,.5),this.G.play(),R(this.o,!0)):($O(this,0),rO(this.C,.5).play(),R(this.C,!0))),this.D=2):(3!=this.D&&(R(this.o,!0),this.na?(this.g.disabled=!1,g.Pd(this.g,"videoAdUiActionNoHover"),g.O(this.g,"videoAdUiAction"),qO(this.g,.5,"ease-in",.5,.8).play(),kj(this.g,1)):(this.L=new pO(this.C,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.G=rO(this.o,.5),this.L.play(),this.G.play()),
this.g.autofocus&&this.g.focus(),this.ba||(this.F.S(cf(this.o),"mouseover",this.Su),this.F.S(cf(this.o),"mouseout",this.Bo),this.Bo())),this.D=3,this.dispatchEvent("skipshown"))}2==this.D&&$O(this,a)};
g.h.skip=function(){return null==this.B.skipOffset||3!=this.D||this.Z?!1:(this.Z=!0,this.dispatchEvent("PUBLISHER_INVOKED_SKIP"),!0)};
g.h.II=function(a){X.g()||a.stopPropagation();3!=this.D||this.Z||(this.Z=!0,this.dispatchEvent("skip"))};
g.h.Bo=function(){var a=0;this.ba||(a=this.ca?5E3:15E3);null==this.H&&"4.4.4"!==(g.sx?Yz(Vz):"")&&(this.H=Gd(function(){this.O=this.ca=!0;qO(this.o,.5,"ease-in",1,.5).play();this.H=null},a,this))};
g.h.Su=function(){kj(this.o,1);this.O=!1;bP(this)};g.C(eP,N);var ema={0:"",2:"bottomBarMarginMedium"};g.h=eP.prototype;g.h.show=function(){null!=this.o&&R(this.o,!0)};
g.h.skip=function(){var a;if(a=null!=this.B)a=this.B,a=null!=a.B.skipOffset&&3==a.D;return a?this.B.skip():!1};
g.h.R=function(){null!=this.o&&(g.Ye(this.o),this.o=null);gP(this);(0,g.H)(this.V,function(a){a.Ac()});
this.V=[];this.C=null;this.A.dispose();this.A=null;this.Ua=!1;eP.M.R.call(this)};
g.h.update=function(a,b,c,d,e){this.Ua=!0;null!=this.o&&(null!=this.Aa&&gma(this,a,c,d,e),null!=this.da&&gj(this.da,a/c*100+"%"),null!=this.Oa&&gj(this.Oa,b/c*100+"%"),0<c&&null!=this.g.skipOffset&&null!=this.B&&(QH(this.g.skipOffset,c),this.B.update(a,c)),0<c&&null!=this.la&&this.la.update(a),0<c&&null!=this.G&&this.G.update(a,c),this.g.O&&0<c&&5>c-a&&g.O(this.ca,"videoAdUiTopBarNoFade"),(0,g.H)(this.ra,function(b){b.update(a,c)},this))};
g.h.IA=function(){this.dispatchEvent("videoAuthorIconClicked")};
g.h.JA=function(){this.dispatchEvent("videoAuthorClicked")};
g.h.EC=function(a){var b=a.G;a=a.H;D(E(b))||this.dispatchEvent(new dz("videoIconClicked",null,{clickThroughUrl:b}));(0,g.H)(a,function(a){zz(a)})};
g.h.Ct=function(){this.dispatchEvent("videoLearnMoreClicked")};
g.h.FI=function(){this.dispatchEvent("videoShareClicked")};
g.h.OI=function(){this.dispatchEvent("videoTitleClicked")};
g.h.WC=function(a){a.preventDefault()};
g.h.sl=function(){this.dispatchEvent("click")};
g.h.Bb=function(){null!=this.ra&&(0,g.H)(this.ra,function(a){PM(a)},this)};
g.h.CI=function(){g.O(this.ca,"videoAdUiTopBarTransitions")};
g.h.TH=function(){var a=nf(this.o,"html5-video-player");if(null!=a){var b=this.g.H;null!=a&&(b.B=new Go(b),b.o=new N,b.o.Pf(this),b.D=a,b.Ku(),b.o.dispatchEvent("why_this_ad_url"));null!=this.B&&cP(this.B,!1);null!=this.G&&(a=this.G,null!=a.g&&R(a.g,!1))}};
g.h.$I=function(){null!=this.B&&cP(this.B,!0);if(null!=this.G){var a=this.G;null!=a.g&&R(a.g,!0)}};g.C(mP,tO);g.h=mP.prototype;g.h.start=function(){this.yn();this.B.update(0,this.H);rO(this.g,this.G.A).play();this.J.S(this.B,"skip",this.EA);mP.M.start.call(this)};
g.h.yn=function(){var a=g.ij(this.g);if(1==this.F){var b=400>=(0,window.parseInt)(Vi(this.g,"width"),10)||400>=a.width;g.Rd(this.g,"videoAdUi-mobile",b)}else if(2==this.F){var c=bf(this.g),d=g.ij(c),e=65>=(a.height-d.height)/2;g.Rd(this.g,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;g.Rd(this.g,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
g.h.EA=function(){this.pause();this.dispatchEvent("skip")};
g.h.xn=function(a,b){this.B.update(a,b);if(this.D){var c=sO({qf:lP(b-a)});g.ff(this.D,c)}};
g.h.R=function(){this.B&&this.B.dispose();g.We(this.g);mP.M.R.call(this)};g.C(nP,g.L);nP.prototype.J=function(a,b,c){c=Wb(c||{});if("timeout"==(c.viewability||"")){var d=this.G[a];null!=d&&(c.viewability=d)}if("impression"==a&&!this.H&&null!=this.D&&0<this.D.length){var d=X.J&&g.ab(this.F,"impression"),e=pP(this,this.D,c);qP(this,e,d);this.H=!0}lma(this,a)&&0<b.length&&(d=X.J&&g.ab(this.F,a),b=pP(this,b,c),qP(this,b,d),this.o.set(a,!0))};g.C(rP,N);rP.prototype.o=function(a){switch(a.type){case "companion_impression":this.dispatchEvent(new dz("companionImpression",this.g));break;case "companion_click":this.dispatchEvent(new dz("companionClick",this.g))}};g.C(sP,N);g.h=sP.prototype;g.h.li=function(){if(this.jb()){var a=WK(this.zc);if(null!=a)return a}return""};
g.h.ki=function(){if(this.jb()){var a=XK(this.zc);if(null!=a)return a}return""};
g.h.Ud=function(){return g.J(this.ads)?null:this.ads[0]};
g.h.ha=function(){if(this.jb()){if(this.zc.isSkippable()&&!bA(!1))throw Hz(xN,null,"skippablevideo");if(null!=SK(this.zc)&&uP(this,this.zc.o))throw Hz(xN,null,"vpaidWithSkippabilityOverride");return this.zc}throw Hz(xP,null,"An ad has not been selected.\n"+Error().stack);};
g.h.jb=function(){return null!==this.zc};
g.h.Ri=function(){var a=$a(this.ads,this.zc);-1!=a&&++a<this.ads.length?tP(this,this.ads[a]):tP(this,null)};
g.h.ti=function(){var a=$a(this.ads,this.zc);return-1==a?!1:a+1<this.ads.length};
g.h.Xd=function(){return this.ti()?this.ads[$a(this.ads,this.zc)+1]:null};
g.h.yf=function(a){var b=a.o;if(b&&b.ba&&(b=b.F,!g.J(b)&&b[0]instanceof aI))return b[0].yf();b=a.g;return vP(a)?b.yf():[]};
g.h.Xk=function(){if(!this.jb()){if(g.J(this.ads))throw Hz(jO);tP(this,this.ads[0]);if(null==this.zc.g)throw Gz(jO);}};
g.h.ia=function(a,b){var c=this.jb()?this.ha():null;this.dispatchEvent(new dz(a,c,b))};
g.h.nf=function(a){this.kd=a};
g.h.Qa=function(){null==this.Nc&&(this.Nc=new Go(this));return this.Nc};
g.h.KE=function(){};
g.h.co=function(){};
g.h.Xc=function(a){var b=oz().g;if(!(b.g("enable_website_actions_info_cards")&&b.g("enable_website_actions_info_cards_companion")&&!g.J(fK(a))&&!fK(a)[0].o&&X.g()&&VK(a)||null==this.kd||(No(this.Hd),Lo(this.Hd,this.kd,"companion_display_error",function(){}),b=this.kd.Xc(a),null!=b&&(this.Hd.S(b,"companion_impression",this.KE),this.Hd.S(b,"companion_click",this.co),X.g()&&(a=new rP(a,b),this.ia("companionInitialized",a))),this.kd.Zq())))throw Hz(E7);
};
g.h.destroy=function(){this.dispose()};
g.h.R=function(){this.jb()&&(NI(this.zc,null),this.zc=null);g.Cb(this.Nc);this.kd=this.Nc=null;this.Qj=!1;X.o&&YE(UE(),this.To);this.Ha&&(g.Cb(this.Ha),this.Ha=null);sP.M.R.call(this)};
g.h.Td=function(){return[]};
g.h.xb=function(){return this.ads[0]};
g.h.bh=function(){(0,g.H)(this.ads,function(a){if(a=a.getExtension("sodar")){var b=a.B,c=a.A,d=a.C,e=a.o;a="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(b)+".js";var f="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(d)+".js";if(b&&c&&d&&e){var d=window,b=d.document,k={};c&&(k._scs_=c);k._bgu_=f;k._bgp_=e;k._li_="v_h.0.0.0";(c=d.GoogleTyFxhY)&&"function"==typeof c.push||(c=d.GoogleTyFxhY=[]);c.push(k);c=b.createElement("script");c.type="text/javascript";c.async=
!0;c.src=a;b.getElementsByTagName("head")[0].appendChild(c)}}})};
g.h.init=function(a){yP(this);this.Xb(a);this.Me=!0;this.jh()};
g.h.jh=function(){this.ia("loaded")};
g.h.sh=function(a){this.jb()&&X.g()&&Dz(eK(this.ha()),a)};
g.h.ov=g.v;g.h.wc=function(a,b,c){if(!this.Qj){if(null==a)throw Hz(IE,null,"displayContainer");if(null!=c){if(!Ib(g.Ob(c),function(a){return Qb(this.Pa,a)},this))throw Hz(IE,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");
g.Zb(this.Pa,oma(c))}this.content=b;this.Ma=a;this.Xk();this.za=this.Ma.qk(mma(this));this.Qj=!0}};
g.h.mf=function(a){a=RE(VJ(a),"rm")?a.V:eK(a);(0,g.H)(a,function(a){g.cb(this.Fb.D,a)},this)};
g.h.Ue=function(a,b){(0,g.H)(b,function(b){b=YH(a,b);OH(this.Fb.A,b)},this)};
g.h.oh=function(a){if(a instanceof aI){var b=bI(a);(0,g.H)(b.rb(),function(a){var c=b.get(a);(0,g.H)(c,function(b){PH(this.Fb.A,a,b)},this)},this)}};
g.h.Ba=function(a){oP(this.Fb,new ac(a))};
g.h.getCurrentTime=function(){return-1};
g.h.getDuration=function(){return-1};
g.h.kc=function(){return-1};
g.h.gb=function(){return null!=this.za?this.za.gb():!1};
g.h.Bb=function(a,b,c){this.Xb(c)};
g.h.pause=g.v;g.h.resume=g.v;g.h.skip=g.v;g.h.muteAd=g.v;g.h.whyThisAdClicked=g.v;g.h.whyThisAdClosed=g.v;g.h.start=function(){yP(this);if(!this.Me)throw Gz(xP,null,"Must call init before start.");};
g.h.stop=function(){this.destroy()};
g.h.getVolume=function(){return null!=this.volume?this.volume:0};
g.h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&Kz(this,IE,null,"volume",String(a));this.volume=a};
g.h.expand=function(){yP(this);this.Xb("fullscreen")};
g.h.collapse=function(){yP(this);this.Xb("normal")};
g.h.Xb=function(a){if(!Kb(Oqa,a))throw Hz(IE,null,"view mode",a);this.Cc=a};
g.h.Of=function(){};
g.h.hasListeners=function(a){return Sq(a,function(a){if(vc(this))a=Dc(this.Jd,g.p(a)?String(a):void 0);else{var b=Hc(this);a=!!b&&Dc(b,a)}return a},this)};
g.h.zf=function(){return null};
g.h.Bf=function(){return null};
g.h.uv=function(){return null};
g.h.Ce=function(){return null};
g.h.ee=function(){this.Ba("abandon")};
g.h.AB=function(){return{currentTime:this.getCurrentTime(),duration:this.getDuration(),isPlaying:this.gb(),isVpaid:this.jb()&&null!=SK(this.ha()),isYouTube:X.g(),volume:this.getVolume()}};
g.h.Bi=function(a){do if(HK(a))return!1;while(a=a.o);return!0};
g.h.Ai=function(){for(var a=0;a<this.ads.length;++a)if(!this.Bi(this.ads[a]))return!1;return Nz()};
g.h.gI=function(a){var b=ib(B7,g.Lb(D7));pb(b);(0,g.H)(b,function(b){var c=NH(a.g,b);g.J(c)||this.qo(b,c)},this);
kma(this.Fb,a.H)};
g.h.qo=function(a,b){(0,g.H)(b,function(a){PH(this.Fb.A,a.Pb(),a.g)},this)};
g.h.rF=function(a){this.Pa.Lr||(a=a.g,null!=a&&(a=a.clickThroughUrl,null!=a&&(yz(a),this.pause())))};
g.h.kh=function(a){var b=a.type;if(g.ab(C7,b)){if("externalActivityEvent"==b&&(b=a.g.eventName,!D7[b]))return;wP(this,b)}};g.C(DP,sP);g.h=DP.prototype;g.h.start=function(){DP.M.start.call(this);this.Ma.Uc();this.A=this.Ma.Fe();if(null!=this.A){this.Ba("show_ad");g.We(this.A);var a=this.gr(),b=this.jb()?this.ha().g.Pc():a,c;X.o?c=UE():c=uL();c.Zk(b);this.A.appendChild(a);this.Kj();(0,g.H)(this.G,function(a){a()});
bb(this.G);this.C=!0}};
g.h.init=function(a){DP.M.init.call(this,a);var b;X.o?b=UE():b=uL();this.Qa().S(b,C7,this.kh)};
g.h.expand=function(){null!=this.g&&this.g.show();this.Ba("expand")};
g.h.collapse=function(){null!=this.g&&this.g.wn();this.Ba("collapse")};
g.h.Bb=function(a,b,c){DP.M.Bb.call(this,a,b,c);this.Kj()};
g.h.R=function(){g.Cb(this.g);this.Ma=this.g=null;this.C=!1;X.o?UE().Zk(null):uL().Zk(null);null!=this.A&&(g.We(this.A),this.A=null);DP.M.R.call(this)};
g.h.gr=function(){var a=this.ha().g;if(null==a)throw a=Hz(jO),FP(this,a),a;var b=this.ha();wI(a,this.Qa());uI(a,this.FB);a.C||vI(a,g.B(this.on,b,a));try{this.Xc(b)}catch(d){throw FP(this,d),d;}this.mf(b);var c=HI(b,this.za);this.Fb.g=c;b.g&&(this.mf(b),c=b.g)&&(this.Ue(c,sqa),zP(this,b));this.Ue(a,["start"]);EP(this,a);return this.Gj([a.Pc()])};
g.h.Xs=function(a,b){return new kO(a[0],b)};
g.h.Gj=function(a){null!=this.g&&this.g.stop();this.g=this.Xs(a,(0,g.z)(this.Uj,this));a=this.g.oa();g.Rd(a,"autoalign",this.Pa.$q);X.g()&&g.Rd(a,"viewmode-fullscreen","fullscreen"==this.Cc);a.appendChild(this.L);this.Qa().S(a,"click",bc);(this.jb()&&HK(this.ha())||this.Pa.Qv)&&this.rm(this.g.g);return a};
g.h.rm=function(a){var b=this.Qa();this.F=AF(Ula);b.S(this.F,"click",this.$B);var c=wa("Close"),c=AF(Tla,{close:""+c});b.S(c,"click",this.lk);g.O(a,"extra-padding");null!=this.O&&728<=this.O.yb()&&g.O(a,"wide-overlay-ad");a.appendChild(c)};
g.h.Kj=function(a,b){if(null!=this.g){var c=a?a:0,d=b?b:0,e=g.ij(this.Ma.Fe()),f;f=X.g()?g.ij(bf(this.g.g)):g.ij(this.g.g);if(f.width+c>e.width||f.height+d>e.height)throw c=Hz(wqa,null),FP(this,c),d={},this.ads[0].A&&(d.pid=nL.getInstance().o),d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=this.ha().g.Qc(),d.vm=this.Cc,nA(kA.getInstance(),38,d,!0),this.stop(),c;}};
g.h.FB=function(a){wP(this,"click");bc(a)};
g.h.lk=function(){this.Ba("close");this.Uj(!0)};
g.h.on=function(a,b){vI(b,g.v);this.C?this.Ni(a,b):this.G.push((0,g.z)(this.Ni,this,a,b))};
g.h.Ni=function(a){a=HI(a,this.za);this.Fb.g=a;wP(this,"impression");this.Ba("creativeview");wP(this,"start")};
g.h.Uj=function(a){null!=this.g&&(this.g.stop(),null!=this.F&&Ze(this.F,this.g.g),a?this.ia("userClose"):this.ia("autoClose"))};
g.h.$B=function(a){bc(a);this.g.show();this.g.play();Ze(this.g.g,this.F);Gd(function(){R(this.L,!1)},500,this);
R(this.L,!0);this.ia("userRecall")};
g.h.kh=function(a){this.jb()&&this.ha().H==a.g.queryId&&DP.M.kh.call(this,a)};g.C(GP,DP);g.h=GP.prototype;g.h.Xs=function(a,b){if(this.D||null==b)b=g.v;var c;X.g()&&this.D?c=new kO(a[0],b):1<a.length?IP(this)||"fullscreen"==this.Cc&&X.g()?c=new oO(a):(c=new nO(a),c.N=15E3):c=new kO(a[0],b);c.Ys=100;this.D&&(c.Ht=30);c.It=45E3;c.Ru=6E3;g.Rd(c.g,"scalable",this.D);g.Rd(c.oa(),"yt-text-overlay",X.g()&&this.D);return c};
g.h.sI=function(a){var b=a.g;null!=b?(null==this.J&&(this.J=a.getExtension("AdSense").A),vI(b,g.B(this.on,a,b)),uI(b,g.B(this.GB,a,b)),"Text"==b.Qc()&&(this.D=!0),this.B.push(b)):(b=Gz(jO),b=GI(b,a),Dz(dK(a),b))};
g.h.wc=function(a,b,c){GP.M.wc.call(this,a,b,c);this.Pa.$q=!0;a=this.ha();g.J(fK(a))?X.g()&&this.ia("companionBackfill"):this.Xc(a)};
g.h.gr=function(){null==this.B&&(this.B=[],(0,g.H)(this.ads,this.sI,this));if(0==this.B.length)throw Hz(jO);var a=[];(0,g.H)(this.B,function(b){wI(b,this.Qa());"Flash"!=b.Qc()||b.Hb().getExtension("TemplateAd")||(b.lr=!0);a.push(b.Pc());yja(b,this.J.F)},this);
if(0==a.length)throw Hz(jO);pma(this);return this.Gj(a)};
g.h.start=function(){GP.M.start.call(this);!this.H&&IP(this)&&(this.H=!0,this.ia("contentPauseRequested"));null!=this.o&&this.o.start();if(this.C){var a=JP(this);nA(kA.getInstance(),33,a)}};
g.h.lk=function(a){GP.M.lk.call(this,a);(0,g.H)(this.B,function(a){var b=HI(a.Hb(),this.za);this.Fb.g=b;this.Ue(a,["close"]);this.Ba("close");this.Fb=new nP},this)};
g.h.Uj=function(a){GP.M.Uj.call(this,a);IP(this)&&(null!=this.A&&g.We(this.A),this.H&&(this.H=!1,this.ia("contentResumeRequested")))};
g.h.Gj=function(a){a=GP.M.Gj.call(this,a);if(IP(this)){var b=kN(2);g.O(this.g.g,b);g.O(a,b)}return a};
g.h.rm=function(a){if(IP(this)){var b=cf(a);b&&((a=$e(a)[0])&&g.Si(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").A||new JL,this.o=new mP(b,a,2,HP(this),!0),this.Qa().S(this.o,"skip",this.cC),this.Qa().S(this.o,"end",this.LC))}else GP.M.rm.call(this,a),b=AF(Vla,HP(this)),a.appendChild(b)};
g.h.on=function(a,b){this.C?this.Ni(a,b):this.G.push((0,g.z)(this.Ni,this,a,b));vI(b,g.v);this.ia("impression")};
g.h.Ni=function(a,b){var c=HI(a,this.za);this.Fb.g=c;this.mf(a);this.Ue(b,["creativeview"]);this.Ba("impression");this.Ba("creativeview");wP(this,"start");this.Fb=new nP};
g.h.GB=function(a,b,c){a=a.getExtension("AdSense");a=new gg(a.B);var d=b.yb();(0,window.isNaN)(d)&&(d=g.ij(b.Pc()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=g.ij(b.Pc()).height);var f=ej(c),k=c instanceof tc;b=k&&g.p(c.B)?c.B:f.x;c=k&&g.p(c.C)?c.C:f.y;f=oz();c=["0","aw="+d,"ah="+e,"nx="+b,"ny="+c,"viewMode="+this.Cc,"sdkv=h.0.0.0","eids="+sz(f)];X.g()||(d=g.ij(this.Ma.Fe()),e=this.o?jma(this.o):new xe(-1,-1),c=c.concat(["bw="+d.width,"bh="+d.height,"sx="+e.x,"sy="+e.y]));Az(a,"elementclick",
c);(0,g.H)(this.B,function(a){var b=HI(a.Hb(),this.za);this.Fb.g=b;EP(this,a);this.Ba("click");this.Fb=new nP},this);
this.ia("click")};
g.h.Xb=function(a){this.Cc!=a&&(GP.M.Xb.call(this,a),this.ia("expandedChanged"))};
g.h.Kj=function(){GP.M.Kj.call(this,this.o?15:0,this.o?65:0)};
g.h.cC=function(){KP(this,"skip")};
g.h.LC=function(){KP(this,"close")};g.C(LP,ac);g.h=MP.prototype;g.h.Tm=function(){return this.g.Tm()};
g.h.oi=function(){return this.g.oi()};
g.h.Fe=function(){return this.g.Fe()};
g.h.qk=function(a){return this.Te?this.g.tn():this.g.qk(a)};
g.h.setSize=function(a,b){this.g.setSize(a,b)};
g.h.Im=function(){return this.g.Im()};
g.h.rk=function(){return this.g.rk()};
g.h.un=function(){return this.g.un()};
g.h.sk=function(){return this.g.sk()};
g.h.hf=g.v;g.h.jf=g.v;g.h.Uc=g.v;g.h.tn=function(){return this.g.tn()};
g.h.Rs=g.v;var NP=["classid","data","movie","type","typemustmatch"];g.C(OP,Fr);g.h=OP.prototype;g.h.ka=null;g.h.ul="window";g.h.Dj="sameDomain";g.h.setSize=function(a,b){this.G=g.y(a)?a:Math.round(a)+"px";this.C=g.y(b)?b:Math.round(b)+"px";this.oa()&&g.hj(PP(this),this.G,this.C);return this};
g.h.Mg=function(){OP.M.Mg.call(this);for(var a=this.oa(),b=this.o.rb(),c=this.o.$a(),d=[],e=0;e<b.length;e++)d.push(Ba(b[e])+"="+Ba(c[e]));var b=d.join("&"),f;if(g.Me&&!pc(11)){d=this.J;c={allowFullScreen:"true",AllowScriptAccess:this.Dj,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:this.ul};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};qma(b,c);e={allownetworking:"none",allowscriptaccess:"never",movie:d};d={};for(f in e)d[f]=
e[f];for(f in c){var k=f.toLowerCase();k in e&&delete d[k];d[f]=c[f]}c=[];for(f in d)c.push(qe("param",{name:f,value:d[f]}));f=re({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);f=qe("object",f,c)}else f={AllowScriptAccess:this.Dj,allowFullScreen:"true",allowNetworking:"all",bgcolor:"#000000","class":"goog-ui-media-flash-object",FlashVars:b,id:this.getId(),name:this.getId(),quality:"high",SeamlessTabbing:"false",wmode:this.ul},f=re({src:this.J,type:"application/x-shockwave-flash",pluginspage:"https://www.macromedia.com/go/getflashplayer"},
{allownetworking:"none",allowscriptaccess:"never"},f),f=qe("embed",f);a.innerHTML=me(f);this.G&&this.C&&this.setSize(this.G,this.C);this.A.S(this.oa(),g.Lb(eqa),bc)};
g.h.kk=function(){if(null!=this.O&&!(0<=Na(ZB,this.O)))throw Error("Method not supported");var a=this.H.createElement("DIV");a.className="goog-ui-media-flash";this.g=a};
g.h.R=function(){OP.M.R.call(this);this.o=null;this.A.dispose();this.A=null};g.C(QP,sP);var Pqa=je(Xd(Yd("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));je(Xd(Yd("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));g.h=QP.prototype;g.h.R=function(){this.F=!1;this.g&&(this.g.dispose(),this.C=null);Hd(this.G);this.A&&this.ia("contentResumeRequested");this.ia("allAdsCompleted");QP.M.R.call(this)};
g.h.kc=function(){var a=this.Lc("getAdRemainingTime");return g.qa(a)?a:-1};
g.h.getVolume=function(){var a=this.Lc("getAdVolume");return g.qa(a)?a:-1};
g.h.wc=function(a,b,c){QP.M.wc.call(this,a,b,c);this.A=this.ha().g instanceof aI};
g.h.init=function(a){QP.M.init.call(this,a);window[this.P]=(0,g.z)(this.NC,this);this.Qa().S(uL(),C7,this.kh);this.g=new OP(Pqa);this.g.setSize(this.O,this.H);this.g.Dj="always";a=TK(this.ha());a=E(a);D(a)?(TP(this,$P,Error("Flash VPAID ad url is empty.")),this.stop()):(this.ha().zb()&&this.ha().g.Of(a),this.g.o.set("vpaid",a),this.g.ul="transparent",this.g.o.set("vpaidEventHandler",this.P),this.Ma.Uc(),Gr(this.g,this.Ma.Fe()),this.C=PP(this.g),this.G=Gd(this.PC,this.Pa.ce,this))};
g.h.start=function(){if(this.F){QP.M.start.call(this);var a=this.ha();this.Fb.B=a.H;var b=HI(a);this.Fb.g=b;if(b=a.g)this.mf(a),this.Ue(b,B7),this.oh(b),zP(this,a);this.Ma.Uc();BP(this);this.Ba("show_ad");this.setVolume(this.B);this.o=new Ed(250);this.Qa().S(this.o,"tick",this.OC);this.A?this.ia("contentPauseRequested"):(this.ia("contentResumeRequested"),SP(this));this.o.start();this.Lc("startAd")}else this.L=!0};
g.h.stop=function(){this.V||(this.V=!0,this.Lc("stopAd"),this.Ma.hf(),null!=this.o&&(this.o.stop(),this.o=null),QP.M.stop.call(this))};
g.h.Bb=function(a,b,c){QP.M.Bb.call(this,a,b,c);this.O=a;this.H=b;null!=this.g&&this.g.setSize(a,b);this.Lc("resizeAd",a,b,c)};
g.h.pause=function(){null!=this.o&&this.o.stop();this.Lc("pauseAd")};
g.h.resume=function(){null!=this.o&&this.o.start();this.Lc("resumeAd")};
g.h.setVolume=function(a){this.B=a;this.Lc("setAdVolume",a)};
g.h.expand=function(){this.Lc("expandAd")};
g.h.collapse=function(){this.Lc("collapseAd")};
g.h.jh=function(){};
g.h.zb=function(){return RP(this)};
g.h.skip=function(){this.Lc("skipAd")};
g.h.getDuration=function(){var a=this.Lc("getAdDuration");if(g.qa(a))return a;a=this.kc();return 0<=a?this.D/1E3+a:-2};
g.h.OC=function(){this.D+=250;var a=this.getDuration(),b=a-this.kc();CP(this,b,a)};
g.h.Lc=function(a){if(!this.g||!this.C)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);var c=b.shift(),d=!1;this.F&&(d=!0);if("handshakeVersion"==c||"initAd"==c)d=!0;if(d)try{if(null!=this.C[c])return this.C[c].apply(this.C,b)}catch(e){}return null};
g.h.PC=function(){TP(this,G7,null,(this.Pa.ce/1E3).toString());this.stop()};
g.h.getCurrentTime=function(){return this.D/1E3};
g.h.NC=function(a,b){switch(a){case "flashReady":this.Lc("handshakeVersion","2.0");var c=gK(this.ha());this.C.initAd(this.O,this.H,this.Cc,this.Pa.bitrate,c);break;case "AdLoaded":Hd(this.G);this.F=!0;var c=this.Lc("getAdCompanions"),d=g.y(c)?c:"",c=this.ha();g.J(fK(c))&&(d=TM(d,c.g.g),g.J(d)||TJ(c,d));wP(this,"loaded");this.L&&(this.L=!1,this.start());break;case "AdStarted":this.Ba("impression");this.Ba("creativeview");this.ia("start");break;case "AdVideoStart":this.Ba("start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=E(AK(this.ha()))),null!=c&&yz(c));this.Ba("click");this.ia("click");break;case "AdDurationChange":this.ia("durationChange");break;case "AdRemainingTimeChange":this.ia("durationChange");SP(this);break;case "AdError":c="AdError";b&&(c=b.message);TP(this,$P,Error(c));this.stop();break;case "AdExpandedChange":this.ia("expandedChanged");break;case "AdImpression":c=this.ha();g.J(fK(c))||this.Xc(c);this.ia("impression");break;case "AdLinearChange":c=RP(this);!this.A&&c?(this.ia("contentPauseRequested"),
Hd(this.J)):this.A&&!c&&(this.ia("contentResumeRequested"),SP(this));this.A=c;d=this.zc;d.na=!0;d.pa=c;this.ia("linearChanged");break;case "AdVolumeChange":c=this.getVolume();c!=this.B&&(c!=this.B&&this.ia("volumeChange"),0==c&&0!=this.B?(this.Ba("mute"),this.ia("mute")):0==this.B&&0!=c&&this.Ba("unmute"),this.B=c);break;case "AdPaused":wP(this,"pause");break;case "AdUserClose":wP(this,"userClose");break;case "AdUserMinimize":this.Ba("collapse");break;case "AdVideoFirstQuartile":wP(this,"firstquartile");
break;case "AdVideoMidpoint":wP(this,"midpoint");break;case "AdVideoThirdQuartile":wP(this,"thirdquartile");break;case "AdVideoComplete":UP(this);break;case "AdUserAcceptInvitation":this.A?this.Ba("acceptinvitationlinear"):this.Ba("acceptinvitation");break;case "AdStopped":UP(this);this.Ba("stop");this.stop();break;case "AdSkipped":wP(this,"skip");break;case "AdSkippableStateChange":wP(this,"skippableStateChanged");break;case "AdPlaying":wP(this,"resume");break;case "AdLog":this.ia("log")}};g.C(VP,N);var Qqa=je(Xd(Yd("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));je(Xd(Yd("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));g.h=VP.prototype;g.h.dispose=function(){this.g&&(this.g.dispose(),this.o=null);window[this.A]&&delete window[this.A];Hd(this.B)};
g.h.load=function(a,b,c,d){window[this.A]=(0,g.z)(this.JC,this);this.g=new OP(Qqa);this.g.setSize(b,c);this.g.Dj="always";this.g.ul="transparent";this.g.o.set("vpaid",a);this.g.o.set("vpaidEventHandler",this.A);Gr(this.g,this.D);this.o=PP(this.g);this.B=Gd(this.KC,d,this)};
g.h.IC=function(a){if(!this.o)return null;var b=Array.prototype.slice.call(arguments),c=b.shift();if(!this.C&&"handshakeVersion"!=c&&"initAd"!=c)return null;try{if(this.o[c])return this.o[c].apply(this.o,b)}catch(d){}return null};
g.h.JC=function(a,b){"AdLoaded"==a&&(Hd(this.B),this.C=!0);this.dispatchEvent(new LP(a,b||null))};
g.h.KC=function(){this.dispatchEvent("loadError")};g.C(WP,sP);g.h=WP.prototype;g.h.R=function(){this.F=!1;null===this.g?this.G&&this.dispatchEvent(new dz("destroyInsecureFlashVpaid",this.ha())):this.g.dispose();this.A&&this.ia("contentResumeRequested");this.ia("allAdsCompleted");WP.M.R.call(this)};
g.h.kc=function(){var a=this.Gc("getAdRemainingTime");return g.qa(a)?a:-1};
g.h.getVolume=function(){var a=this.Gc("getAdVolume");return g.qa(a)?a:-1};
g.h.wc=function(a,b,c){WP.M.wc.call(this,a,b,c);this.A=this.ha().g instanceof aI};
g.h.init=function(a){WP.M.init.call(this,a);a=TK(this.ha());a=E(a);D(a)?(aQ(this,Error("Flash VPAID ad url is empty.")),this.stop()):(this.ha().zb()&&this.ha().g.Of(a),this.Qa().S(uL(),C7,this.kh),this.G?this.dispatchEvent(new dz("initInsecureFlashVpaid",this.ha(),{url:E(a)})):null===this.Ma.Fe()?(aQ(this,Error("Container must be provided for flash VPAID.")),this.stop()):(this.Ma.Uc(),null===this.g&&(this.g=new VP(this.Ma.Fe())),this.Qa().S(this.g,"loadError",this.iF),this.Qa().S(this.g,"vpaidEventType",
this.Qe),this.g.load(a,this.O,this.D,this.Pa.ce)))};
g.h.start=function(){if(this.F){WP.M.start.call(this);var a=this.ha();this.Fb.B=a.H;var b=HI(a);this.Fb.g=b;if(b=a.g)this.mf(a),this.Ue(b,B7),this.oh(b),zP(this,a);this.Ma.Uc();BP(this);this.Ba("show_ad");this.setVolume(this.B);this.o=new Ed(250);this.Qa().S(this.o,"tick",this.MC);this.A?this.ia("contentPauseRequested"):(this.ia("contentResumeRequested"),YP(this));this.o.start();this.Gc("startAd")}else this.J=!0};
g.h.stop=function(){this.L||(this.Gc("stopAd"),this.Ma.hf(),null!=this.o&&(this.o.stop(),this.o=null),WP.M.stop.call(this),this.L=!0)};
g.h.Bb=function(a,b,c){WP.M.Bb.call(this,a,b,c);if(null!==this.g){var d=this.g;d.g&&d.g.setSize(a,b)}this.O=a;this.D=b;this.Gc("resizeAd",a,b,c)};
g.h.pause=function(){null!=this.o&&this.o.stop();this.Gc("pauseAd")};
g.h.resume=function(){null!=this.o&&this.o.start();this.Gc("resumeAd")};
g.h.setVolume=function(a){this.B=a;this.N.getAdVolume=a;this.Gc("setAdVolume",a)};
g.h.expand=function(){this.Gc("expandAd")};
g.h.collapse=function(){this.Gc("collapseAd")};
g.h.jh=g.v;g.h.zb=function(){return XP(this)};
g.h.skip=function(){this.Gc("skipAd")};
g.h.getDuration=function(){var a=this.Gc("getAdDuration");if(g.qa(a))return a;a=this.kc();return 0<=a?this.C/1E3+a:-2};
g.h.MC=function(){this.C+=250;var a=this.getDuration(),b=a-this.kc();CP(this,b,a)};
g.h.Gc=function(a){if(this.L)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);return this.G?(c=b.shift(),this.dispatchEvent(new dz("callFlashVpaidMethod",this.jb()?this.ha():null,{methodName:c,args:b})),this.N[c]):null===this.g?null:this.g.IC.apply(this.g,b)};
g.h.iF=function(){aQ(this,Error("Flash VPAID loader failed to load."));this.stop()};
g.h.getCurrentTime=function(){return this.C/1E3};
g.h.Qe=function(a){var b=a.data;switch(a.g){case "flashVpaidMethodResults":b&&(this.N[b.methodName]=b.result);break;case "flashReady":this.Gc("handshakeVersion","2.0");b=gK(this.ha());this.Gc("initAd",this.O,this.D,this.Cc,this.Pa.bitrate,b);break;case "AdLoaded":this.F=!0;b=this.Gc("getAdCompanions");a=g.y(b)?b:"";b=this.ha();g.J(fK(b))&&(a=TM(a,b.g.g),g.J(a)||TJ(b,a));wP(this,"loaded");this.J&&(this.J=!1,this.start());break;case "AdStarted":this.Ba("impression");this.Ba("creativeview");this.ia("start");
break;case "AdVideoStart":this.Ba("start");break;case "AdClickThru":b&&b.playerHandles&&((b=b.url)||(b=E(AK(this.ha()))),b&&yz(b));this.Ba("click");this.ia("click");break;case "AdDurationChange":this.ia("durationChange");break;case "AdRemainingTimeChange":this.ia("durationChange");YP(this);break;case "AdError":a="AdError";b&&(a=b.message);aQ(this,Error(a));this.stop();break;case "AdExpandedChange":this.ia("expandedChanged");break;case "AdImpression":b=this.ha();g.J(fK(b))||this.Xc(b);this.ia("impression");
break;case "AdLinearChange":b=XP(this);!this.A&&b?(this.ia("contentPauseRequested"),Hd(this.H)):this.A&&!b&&(this.ia("contentResumeRequested"),YP(this));this.A=b;a=this.zc;a.na=!0;a.pa=b;this.ia("linearChanged");break;case "AdVolumeChange":b=this.getVolume();b!=this.B&&(this.ia("volumeChange"),0==b&&0!=this.B?(this.Ba("mute"),this.ia("mute")):0==this.B&&0!=b&&this.Ba("unmute"),this.B=b);break;case "AdPaused":wP(this,"pause");break;case "AdUserClose":wP(this,"userClose");break;case "AdUserMinimize":this.Ba("collapse");
break;case "AdVideoFirstQuartile":wP(this,"firstquartile");break;case "AdVideoMidpoint":wP(this,"midpoint");break;case "AdVideoThirdQuartile":wP(this,"thirdquartile");break;case "AdVideoComplete":ZP(this);break;case "AdUserAcceptInvitation":this.A?this.Ba("acceptinvitationlinear"):this.Ba("acceptinvitation");break;case "AdStopped":ZP(this);this.Ba("stop");this.stop();break;case "AdSkipped":wP(this,"skip");break;case "AdSkippableStateChange":wP(this,"skippableStateChanged");break;case "AdPlaying":wP(this,
"resume");break;case "AdLog":this.ia("log")}};g.C(bQ,dz);g.C(dQ,g.L);dQ.prototype.R=function(){this.o.enabled&&this.o.stop();this.g=[];dQ.M.R.call(this)};
dQ.prototype.D=function(){var a=1E3*this.J.getCurrentTime(),b=(0,g.G)();this.g.push(new tma(a,b));for(a=b-this.g[0].g;1E4<a;)this.g.shift(),a=b-this.g[0].g;2>this.g.length?b=!0:(a=this.g.length-1,b=this.g[a].g-this.g[0].g,a=this.g[a].o-this.g[0].o,b<this.G||0>a?b=!0:(b=a/b,b<this.B&&(this.B=b),b=.5<=b));b||(this.H=!0,b=this.J,null!=b.o&&fQ(b.o),JQ(b,H7,Hz(H7)))};gQ.prototype.isListed=!0;gQ.prototype.g=-1;g.C(jQ,tO);var iQ=Math.ceil(10*3.14);jQ.prototype.F=function(a){X.g()||a.stopPropagation();this.dispatchEvent("click")};
jQ.prototype.start=function(){jQ.M.start.call(this);null==this.g?this.stop():this.H&&(this.N&&780<=g.ij(this.P).width&&this.H.gt(!0),this.H.Bn())};
jQ.prototype.xn=function(a,b){var c=a/b*iQ+" "+iQ;null!=this.g&&g.Si(this.g,"stroke-dasharray",c)};g.C(kQ,g.L);kQ.prototype.show=function(a,b){lQ(this);qx&&a?(a.appendChild(this.A),this.g=Gd((0,g.z)(this.o,this,b),2E3)):b()};
kQ.prototype.o=function(a){this.g=0;g.Ye(this.A);a()};
kQ.prototype.R=function(){lQ(this);kQ.M.R.call(this)};g.C(mQ,ac);g.C(nQ,N);oQ.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var xma={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};g.h=nQ.prototype;g.h.R=function(){this.Ac();nQ.M.R.call(this)};
g.h.Ac=function(){null!=this.o&&this.o.dispose();null!=this.g&&this.g.Ac();null!=this.D&&this.D.dispose();this.D=null;null!=this.H&&this.H.dispose();this.H=null;this.O.clear();this.J=-1;this.F="";this.G=this.N=!1};
g.h.wb=function(a,b,c,d){this.Ac();this.B.B=a.H;this.g=b;this.A=d||null;this.g.wb();this.C=new oQ(this.g);this.L=c||null;this.o=new Go(this);this.F=a.H;a=X.o?UE():uL();this.o.S(a,"externalActivityEvent",this.gF);this.o.S(a,"measurable_impression",this.HF);this.o.S(a,"viewable_impression",this.GH);this.o.S(this.g,"timeUpdate",this.lD);this.o.S(this.g,"volumeChange",this.mD);this.o.S(this.g,"pause",this.iD);this.o.S(this.g,"play",this.jD);this.o.S(this.g,"end",this.cF);this.o.S(this.g,"beginFullscreen",
this.gD);this.o.S(this.g,"endFullscreen",this.fF);this.o.S(this.g,"skip",this.vt);this.o.S(this.g,"skipShown",this.Du);this.o.S(this.g,"start",this.kD);this.o.S(this.g,"error",this.fD);this.o.S(this.g,"mediaLoadTimeout",this.hD);null!=this.A&&(this.o.S(this.A,"videoIconClicked",(0,g.z)(function(a){this.dispatchEvent(a)},this)),this.o.S(this.A,"urlNavigationRequested",(0,g.z)(function(a){this.dispatchEvent(a)},this)),this.o.S(this.A,"videoShareShown",this.FH),this.o.S(this.A,"skipshown",this.Du),this.o.S(this.A,
"skip",this.vt),this.o.S(this.A,"PUBLISHER_INVOKED_SKIP",this.zG),this.o.S(this.A,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoTitleClicked videoShareClicked videoUnmuteClicked why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),this.rB))};
g.h.HF=function(a){var b=a.g;this.B.G.measurable_impression=null!=b?b.viewabilityString:null;a.g.queryId==this.F&&pQ(this,"measurable_impression",!0,!1)};
g.h.GH=function(a){a=a.g;a.queryId==this.F&&(this.B.G.viewable_impression=null!=a?a.viewabilityString:null,pQ(this,"viewable_impression",!0,!0))};
g.h.gF=function(a){a=a.g;var b=D7[a.eventName];b&&a.queryId==this.F&&(this.B.G[b]=null!=a?a.viewabilityString:null,pQ(this,b,!0,!0))};
g.h.lD=function(){if(this.G){var a=this.g.getDuration();if(-1!=a){this.g.Xh(.25*a)&&pQ(this,"firstquartile",!0,!0);this.g.Xh(.5*a)&&pQ(this,"midpoint",!0,!0);this.g.Xh(.75*a)&&pQ(this,"thirdquartile",!0,!0);var b=this.B,c=this.g.getCurrentTime();if(!Kf(b.o,"skip")){0>b.C&&(nja(b.A,a),b.C=0);for(var a=NH(b.A,"progress"),d=[],e=b.C;e<a.length;e++){var f=a[e];if(RH(f.o)>c)break;b.C=e+1;d.push(f.g)}0<d.length&&oP(b,new ac("progress"),d)}}qQ(this)}};
g.h.kD=function(){this.G=!0;pQ(this,"impression",!0,!0);pQ(this,"creativeview",!0,!0);null!=this.L||null!=this.A||this.o.S(this.g,"click",this.Mn);null!=this.L&&(this.D=new aF,this.o.S(this.D,"click",this.Mn,!1),this.D.wb(this.L));null!=this.A&&(this.H=new aF,this.o.S(this.H,"click",this.Mn,!1),this.H.wb(this.A));pQ(this,"start",!0,!0);(this.g.Zg()||0==this.g.getVolume())&&pQ(this,"mute",!1,!1)};
g.h.mD=function(){var a=this.g.Zg(),b=this.g.getVolume(),c=this.C;c.mute&&!a||!a&&0==c.volume&&0<b?pQ(this,"unmute",!1,!1):this.C.muted(a,b)&&pQ(this,"mute",!1,!1);this.C.mute=a;this.C.volume=b};
g.h.iD=function(){this.g.Ff()?rQ(this):this.g.rg()&&!this.g.$s()&&(this.C.paused=!0,pQ(this,"pause",!1,!1))};
g.h.jD=function(){this.C.paused&&(this.C.paused=!1,pQ(this,"resume",!1,!1))};
g.h.cF=function(){rQ(this)};
g.h.Mn=function(){pQ(this,"click",!1,!1)};
g.h.fD=function(){pQ(this,"error",!1,!1)};
g.h.hD=function(){pQ(this,"mediaLoadTimeout",!1,!1)};
g.h.Du=function(){pQ(this,"skipshown",!0,!1)};
g.h.rB=function(a){pQ(this,a.type,!1,!1)};
g.h.FH=function(){pQ(this,"videoShareShown",!0,!1)};
g.h.vt=function(){pQ(this,"skip",!0,!1)};
g.h.zG=function(){pQ(this,"skip",!0,!1)};
g.h.gD=function(){pQ(this,"fullscreen",!1,!1)};
g.h.fF=function(){pQ(this,"exitfullscreen",!1,!1)};g.C(sQ,sP);g.h=sQ.prototype;g.h.R=function(){wQ(this);this.N.dispose();uQ(this);(0,g.H)(this.H.$a(),Hd);var a=!1;null!=this.Ma&&(a=this.Ma.rk(),this.Ma.hf(),this.Ma=null);this.G&&(this.G=!1,this.za.rg()||this.za.Ff()||this.za.pause(),Rz()&&!a&&(this.za.$g(.001),this.za.load("","")),Qz()&&this.za.Yg()&&!a&&this.za.An(),this.ia("contentResumeRequested"),this.ia("allAdsCompleted"));null!=this.za&&this.za.unload();null!=this.o&&(g.Cb(this.o),this.o=null);sQ.M.R.call(this)};
g.h.muteAd=function(){X.g()&&(this.Ba("mute_interaction_url"),this.Ba("mute_url"),this.ia("MUTE_AD"),tQ(this,function(){vQ(this)}))};
g.h.whyThisAdClicked=function(){X.g()&&this.Ba("why_this_ad_url")};
g.h.whyThisAdClosed=function(){X.g()&&this.Ba("why_this_ad_got_it")};
g.h.Ri=function(){uQ(this);sQ.M.Ri.call(this);this.jb()&&(this.Fb=new nP,this.B=new nQ(this.Fb),this.L=!1,this.ia("loaded"))};
g.h.co=function(a){sQ.M.co.call(this,a);null!=this.za&&this.za.vo(1)};
g.h.Pr=function(a,b){b.preventDefault();this.F||(this.F=!0,wP(this,"video_card_endcap_action"));a&&(this.g.pause(),yz(a))};
g.h.Qr=function(){tQ(this,function(){xQ(this,"video_card_endcap_dismiss")})};
g.h.iB=function(){xQ(this,"video_card_endcap_collapse")};
g.h.CD=function(a,b,c){var d=dF(b);d&&(a.D=d);var e=a.getExtension("AdSense");null!=e&&null!=e.A&&e.A.o&&this.setVolume(0);if(this.Pa.Rv){d=a.getExtension("AdSense");(e=this.ba)||(e=null===b?!1:"modules"==(new gg(b)).lg().toLowerCase()||gF(b));var f=e||null!=d&&d.G,d=MK(a)?null:PK(a);if((X.g()||aA()?0:Nz()&&(!this.Ai()||null==this.Ma||!this.Ma.Im())||VK(a)||this.Pa.Ro)||!X.g()&&f)this.Pa.Oo=!0,this.Pa.Ro=!0;e=HI(a,this.za);if(X.g()||this.Pa.Ro){var k=D(E(AK(a)))?!1:this.Pa.Oo,l=pz().g("enable_instream_ad_badge"),
m=MK(a),n=this.Pa,q=X.g()||!1,t=X.g(),d=RO(f,a.D,d,m,n,e);d.D=k;d.fa=n.XI;d.ga=q;d.da=!0;d.ba=t;d.A=l;d.G=n.No;d.Ta=n.Qo;d.na=n.YI;d.va=0;n.No&&(d.gh=""+wa("Visit Advertiser"))}else bK(a)?(k=a.D,l=MK(a),!D(E(k))&&null!==d&&0<RH(d)&&(f=!0),d=RO(f,k,d,l,this.Pa,e),d.V=f?Via:Uia):(k=MK(a),d=RO(f,a.D,d,k,this.Pa,e),d.L=!1,d.C=!1,d.o=!1);e=d;f=this.Ma.oi();null===f?f=window.document.body:g.We(f);k=this.ha();l=1E3*k.getDuration();n=k.getExtension("why_this_ad");q=k.getExtension("mute");e.H=new MO(n,q);
NO(e.H)&&(q=null!=n?n.B:void 0,n="<span class='videoAdUiAdSettingsShortTooltip'>",q?n+=Z(q):(q=wa("Click for Ad Settings"),n+=q),n=GF(n+"</span>"),e.Rd=n);this.Ha=new eP(e,f,l);f=k.D;null!=f&&AQ(this,f,e.na);e=this.Ha;e.N&&(e=e.N,f=0==this.D,e.g!=f&&(e.g=f,VO(e)));this.ba&&(f=a.getExtension("AdSense"),null!=f?(e=this.Ha,f=E(f.o),null!=e.H&&(R(e.H,!0),f=new gg(f),f=Ea((f.o+f.A).replace(/^www\./i,""),35),D(E(f))?iP(e):g.ff(e.H,f)),null!=e.Z&&R(e.Z,!0)):iP(this.Ha));e=[];d.C&&e.push("adAttribution");
d.o&&e.push("countdown")}else d&&AQ(this,d,this.Pa.lm);if(d=this.za)this.Co(a),d.$k(Bma(this,a)),d.load(b,c)};
g.h.Uq=function(a){var b=this.jb()?this.ha().D:null;if(b){var c=this.li();yQ(this)&&a&&(c=Mma(this,c,a));a=this.ki();c||a||!yQ(this)||(c=" ");(c||a)&&this.za.zn(b,c||null,a||null)}};
g.h.VH=function(a,b,c){null!==a.J&&nA(kA.getInstance(),34,{evt:"filled"},!0);this.Z||(this.Z=!0,this.ia("contentPauseRequested"));this.CD(a,b,c);this.G=!0;this.setVolume(this.D);this.Ha&&(D(E(DQ(a)))?(b=this.Ha,null!=b.C&&(b.A.Ca(b.C,"click",b.sl),g.Si(b.C,"cursor","default"))):(b=this.Ha,null!=b.C&&(b.A.S(b.C,"click",b.sl),null!=b.P&&!lj(b.P)&&g.Si(b.C,"cursor","pointer"))),b=a.g.ra,g.J(b)||hP(this.Ha,b),this.Ha.show());this.Ba("show_ad");this.Ma.jf();try{this.Xc(a)}catch(d){JQ(this,E7,d);return}GQ(this);
pL("pi");null!=this.Ha&&this.Ha.g.N?Ama(this):this.N.show(this.Ma.oi(),(0,g.z)(this.za.play,this.za))};
g.h.Co=function(a){this.B.wb(a,this.za,this.Ma.Tm(),this.Ha);this.Qa().S(this.B,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoIconClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.Iu);this.Qa().S(this.za,"loaded",this.BH);this.Qa().S(this.za,"cardsStateChange",this.QC);this.Qa().S(this.za,"timeUpdate",this.Ju);this.Qa().S(this.za,"volumeChange",this.TC);this.Qa().S(this.za,
"shareClicked",this.lv);this.mf(a);var b=HI(a,this.za);this.Fb.g=b;b=a.g;null!=b&&b instanceof aI&&(this.Ue(b,B7),this.oh(b),b=this.Qa(),Ho(b,this.B,"error",this.RC,!1,this),Ho(b,this.B,"mediaLoadTimeout",this.SC,!1,this));zP(this,a);a.isSkippable()&&(this.B.J=30)};
g.h.jh=function(){Cma(this);this.ia("loaded");this.dispatchEvent(new bQ(this.ha()))};
g.h.skip=function(){this.jb()&&this.ha().isSkippable()&&(null!=this.Ha?this.Ha.skip():(this.Ba("skip"),QQ(this)))};
g.h.ov=function(){wP(this,"skipshown")};
g.h.start=function(){sQ.M.start.call(this);this.J=[];try{var a=this.ha();this.A=FQ(this,a);GQ(this);pL("am");tQ(this,(0,g.z)(sQ.prototype.VH,this,a,this.A.o,this.A.g))}catch(b){IQ(this,b),this.Ri(),this.jb()?(Jz(this,KQ,b),this.start()):(this.G?Jz(this,KQ,b):(null!=this.kd&&this.kd.Xc(ZK()),Kz(this,KQ,b)),this.stop())}};
g.h.getVolume=function(){yP(this);return this.za.Zg()?0:this.za.getVolume()};
g.h.setVolume=function(a){yP(this);this.G?this.za.setVolume(a):this.D=a};
g.h.Of=function(a){yP(this);if(this.jb()&&null!=this.ha().A){var b=this.ha(),c=b.A.location,d;if(d=null!=c)(d=tz(tqa,c))||(d=(new gg(c)).o,d=null!=d?Aa(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||uz(c);(d||X.g())&&null!=b.g&&b.g instanceof aI&&b.g.Of(a)}};
g.h.pause=function(){yP(this);this.g?this.g.pause():this.za.pause();if(null!=this.o){var a=this.o;a.o.enabled&&a.o.stop();a.g=[]}};
g.h.resume=function(){yP(this);this.g?this.g.play():this.za.play();null!=this.o&&eQ(this.o)};
g.h.getCurrentTime=function(){yP(this);var a=this.g?this.g.A:0;return this.za.getCurrentTime()+a};
g.h.getDuration=function(){yP(this);var a=this.jb()?RK(this.ha()):0;return this.za.getDuration()+a};
g.h.kc=function(){yP(this);var a=this.getDuration(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
g.h.Ce=function(){return this.za.Ce()};
g.h.RC=function(){JQ(this,KQ,Hz(KQ,this.za.getError()))};
g.h.SC=function(){Gma(this);JQ(this,G7,Hz(G7,null,(this.Pa.ce/1E3).toString()))};
g.h.qo=function(a,b){sQ.M.qo.call(this,a,b);MQ(this,a)};
g.h.Iu=function(a){switch(a.type){case "start":pL("ff");this.ia("start");this.bh();null!=this.o&&(g.Cb(this.o),this.o=null);rz(oz(),420706029)&&(X.V=5E3);!rz(oz(),420706025)&&!rz(oz(),420706029)||X.g()||(this.o=new dQ(this),eQ(this.o));break;case "impression":this.ia("impression");break;case "viewable_impression":rz(oz(),567890271)&&this.ia("viewable_impression");break;case "why_this_ad_url":this.ca=this.za.rg();HQ(this,"why_this_ad_url");this.pause();break;case "pause":this.ia("pause");break;case "why_this_ad_got_it":HQ(this,
"why_this_ad_got_it");this.ca||this.resume();break;case "resume":this.ia("resume");break;case "firstquartile":this.ia("firstquartile");break;case "midpoint":this.ia("midpoint");break;case "thirdquartile":this.ia("thirdquartile");break;case "complete":this.Ha&&fP(this.Ha,"complete",this.getCurrentTime(),IK(this.ha()));zma(this)||(this.ia("complete"),this.Ba("instreamAdComplete"),vQ(this));break;case "click":this.Ha&&this.Ha.g.D?this.za.rg()?this.resume():this.pause():LQ(this);break;case "engagedview":NQ(this);
this.ia("engagedview");break;case "urlNavigationRequested":this.dispatchEvent(a);break;case "videoAuthorIconClicked":SQ(this);break;case "videoAuthorClicked":SQ(this);break;case "videoClicked":this.ia("videoClicked");break;case "videoIconClicked":this.dispatchEvent(a);break;case "videoLearnMoreClicked":this.g&&!this.F&&(this.F=!0,wP(this,"video_card_endcap_action"));this.za.pause();X.H&&!X.g()&&NQ(this);LQ(this);break;case "videoShareClicked":Ima(this);break;case "videoShareShown":Jma(this);break;
case "videoTitleClicked":Kma(this);break;case "videoMuteClicked":this.V=this.D;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.V);break;case "skipshown":this.ia("skippableStateChanged");break;case "skip":this.Ha&&fP(this.Ha,"skip",this.getCurrentTime(),IK(this.ha()));this.g?this.Qr():QQ(this);break;case "MUTE_AD":this.ia("MUTE_AD"),tQ(this,function(){vQ(this)})}};
g.h.ee=function(){sQ.M.ee.call(this);this.Ha&&fP(this.Ha,"abandon",this.getCurrentTime(),IK(this.ha()));this.C&&(g.Cb(this.C),this.C=null)};
g.h.lv=function(){var a=OQ(this)||PQ(this);null!=a&&Az(a,"sharebuttonclicked")};
g.h.mf=function(a){sQ.M.mf.call(this,a);MQ(this,"impression")};
g.h.Ue=function(a,b){sQ.M.Ue.call(this,a,b);(0,g.H)(b,function(a){MQ(this,a)},this)};
g.h.oh=function(a){sQ.M.oh.call(this,a);a instanceof aI&&(a=bI(a),(0,g.H)(a.rb(),function(a){MQ(this,a)},this))};
g.h.Bf=function(){if(!this.jb())return null;try{return FQ(this,this.ha()).o}catch(a){return null}};
g.h.zf=function(){if(!this.jb())return null;var a=this.ha();if(!vP(a))throw Hz(EQ);a=a.g.yf();return g.J(a)?null:a[0].o};
g.h.BH=function(){this.ia("adCanPlay")};
g.h.QC=function(){var a=this.Ha;null!=a.o&&g.Rd(a.o,"ytp-iv-drawer-open",this.za.Zs())};
g.h.Ju=function(){var a=this.getDuration(),b;yP(this);b=this.g?this.getDuration():this.za.es();var c=this.getCurrentTime(),d=0,e=0;this.jb()&&(e=this.ha(),d=e.B.g,e=e.B.Ve);if(null!=this.Ha&&0<=a&&0<=c){if(!this.O&&3==this.ha().Ia){var f=this.za.getDuration(),k=IK(this.ha()),f=Math.abs(f-k);2<f&&(f=Hz(yqa,null,Number(f).toFixed(2)),f=GI(f,this.ha(),this.za),k=dK(this.ha()),Dz(k,f));this.O=!0}this.Ha.update(c,b,a,d,e)}};
g.h.TC=function(){var a=this.za.getVolume();if(a!=this.D&&(this.D=a,this.ia("volumeChange"),0==a&&this.ia("mute"),this.Ha)){var b=this.Ha;b.N&&(b=b.N,a=0==a,b.g!=a&&(b.g=a,VO(b)))}};
g.h.kI=function(a){var b=this.jb()&&uka(this.ha());return!a||D(E(a.channelId))||!a.isListed&&!b?qd():new g.ld(function(b,d){sma(a.channelId,function(a){a=new JH(a);b(a)},function(){d()},this)},this)};
g.h.YA=function(a){var b=oz().g,c=this.ha();if((g.J(fK(c))||!fK(c)[0].o)&&!b.g("website_actions_holdback")&&X.g()&&VK(c)){var d=pka(c,a);d||!b.g("enable_website_actions_info_cards_companion")||this.P||(d=GK(c,a));if(d){iK(c,[d]);try{this.Xc(c)}catch(n){JQ(this,E7,n)}}}if(d=this.Ha)var d=this.ha(),e=d.N,d=X.g()&&g.J(fK(d))&&null!=d.da&&null!=e&&e.isListed;if(d){this.Qa().S(window,"message",this.IB);var d=this.ha(),e=d.da.channelId,f=LI(d),k=this.Pa.Vg,l=this.Pa.Hg,l=new gg((null!=l?l:"//www.youtube.com/")+
"ad_companion"),m=l.g;m.set("adformat",f);m.set("p",e);m.set("render","video_wall_companion");k&&m.set("content",k);e=new KM("1",new g.ze(300,250),"IFrame",null,l.toString());e.H=d;e.C=!0;BK(c,new JJ(e,[],null,!0));this.Xc(c)}JK(c)||b.g("website_actions_holdback")||b.g("website_actions_endcap_holdback")||!VK(c)||nka(c,a)||!b.g("enable_website_actions_info_cards_endcap")||this.P||(c.O=[GK(c,a)]);return a};
g.h.IB=function(a){var b=a.g;if("companion-setup-complete"==b.data){a=this.ha();var c=(0,window.encodeURIComponent)(E(AK(a)))+","+(0,window.encodeURIComponent)((OQ(this)||PQ(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=AK(a)?210:185}else"pause-video"==b.data&&this.pause()};
g.h.EI=function(a){if(null!=this.Ha&&a.isListed){var b=this.Ha,c=a.title;b.g.O=!D(E(c));b.g.title=c;c7.test(Td(b.g.title,void 0));null!=b.F&&g.ff(b.F,b.g.title);dP(b);b=this.Ha;null!=b.Na?g.ff(b.Na,""+wa("Share")):null!=b.L&&g.ff(b.L,""+wa("Share"));b=this.Ha;c=a.g;null!=c&&(b.g.F=c);dP(b)}this.jb()&&(this.ha().N=a,this.ia("youTubeVideoMetadata"));return a};
g.h.DI=function(a){if(null!=this.Ha&&RQ(this)){var b=this.Ha,c=a.authorName;b.g.ra=!D(E(c));b.g.authorName=c;null!=b.D&&(c=wa("by {$userDisplayName}",{userDisplayName:""+b.g.authorName}),g.ff(b.D,(new tF(""+c,void 0)).Yc()));dP(b);b=this.Ha;c=a.channelIconThumbnailUrl;b.g.pa=!D(E(c));if(null!=b.O){var d=g.Re("img");d.setAttribute("src",c);g.O(d,"videoAdUiAuthorIconImage");b.O.appendChild(d);null!=b.F&&g.O(b.F,"videoAdUiTitleWithAuthorIcon");null!=b.D&&g.O(b.D,"videoAdUiAuthorNameWithAuthorIcon")}dP(b)}this.jb()&&
(this.ha().da=a,this.ia("youTubeChannelMetadata"));return a};
g.h.Bb=function(a,b,c){sQ.M.Bb.call(this,a,b,c);null!=this.Ha&&this.Ha.Bb()};g.C(TQ,ac);g.C(UQ,sP);g.h=UQ.prototype;
g.h.init=function(a){UQ.M.init.call(this,a);this.P=Gd(this.UC,this.Pa.ce,this);this.Qa().S(window,"message",this.HH);this.Qa().S(this.J,"tick",this.YH);a=X.o?UE():uL();this.Qa().S(a,C7,this.kh);if(this.o)this.dispatchEvent(new TQ(0,this.F));else{a=SK(this.ha());if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.Pa.Vg&&(a=fg(a,"v",this.Pa.Vg));X.g()&&(b=dg(a,"st"),b=Pma(this,b?b+" yt":
"yt"),a=fg(a,"st",b))}a=E(a)}else{var b=new gg(a),c=new gg("http://tpc.googlesyndication.com/pagead/js/loader12.html");"https"==b.B&&hg(c,"https");this.V=b.o;a=lg(c,a||"",void 0).toString()}this.B=g.P("IFRAME",{src:xz(a),allowFullscreen:!0,allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});this.Qa().S(this.B,"load",this.$A);this.Ma.Fe().appendChild(this.B)}};
g.h.wc=function(a,b,c){UQ.M.wc.call(this,a,b,c);this.A=this.ha().g instanceof aI;this.g=a.qk(!1);this.o||(this.Qa().S(this.g,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.HG),this.Qa().S(this.g,aH,this.IE))};
g.h.stop=function(){this.J.stop();this.Ma.hf();UQ.M.stop.call(this)};
g.h.zb=function(){return 1==this.A};
g.h.start=function(){UQ.M.start.call(this);if(!X.g()){var a={};a.pid=nL.getInstance().o;a.dn=this.V;a["if"]=this.o;nA(kA.getInstance(),29,a,!0)}a=this.ha();this.Fb.B=a.H;var b=HI(a,this.g);this.Fb.g=b;if(b=a.g)this.mf(a),this.Ue(b,B7),this.oh(b),zP(this,a);this.g.wb();this.Ba("show_ad");this.Ma.Uc();BP(this);null!=this.B&&(this.B.style.display="block");this.g.setVolume(this.C);this.ba=!0;this.A&&this.ia("contentPauseRequested");$Q(this)};
g.h.Bb=function(a,b,c){UQ.M.Bb.call(this,a,b,c);XQ(this,"resizeAd",{width:a,height:b,viewMode:c})};
g.h.pause=function(){this.D||XQ(this,"pauseAd")};
g.h.resume=function(){this.D&&(XQ(this,"resumeAd"),bR(this,"play"))};
g.h.setVolume=function(a){this.C=a;UQ.M.setVolume.call(this,a);XQ(this,"setAdVolume",{value:a})};
g.h.R=function(){this.o&&this.dispatchEvent(new TQ(0,this.F));g.Ye(this.B);this.A&&(!this.N||this.g.rg()||this.g.Ff()||this.g.pause(),this.ia("contentResumeRequested"));this.ia("allAdsCompleted");this.O=!1;this.H=[];Hd(this.P);this.J.dispose();UQ.M.R.call(this)};
g.h.jh=function(){};
g.h.$A=function(){if(!this.o){var a=this.g.$m();g.J(a)&&(a=this.Pa.mimeTypes);XQ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}WQ(this)};
var Oma={use_fast_fade_in_0s:"ffi-0",use_fast_fade_in_1s:"ffi-1",use_new_style:"new",hide_preskip:"nps",use_sound:"snd",hide_progress_bar:"npb",use_skip_in_10s:"skip-10",use_skip_in_15s:"skip-15",use_skip_in_20s:"skip-20",use_survey_length_15s:"time-15",use_survey_length_45s:"time-45",use_skip_in_0s:"sec-0",use_survey_length_unlimited:"time-ul",hide_advertisement_text:"nat",use_skip_survey_text:"skip_survey"};g.h=UQ.prototype;
g.h.HH=function(a){a=a.g;if(this.o){if(a=zG(a.data),null!=a){try{var b=g.pf(a.data)}catch(c){return}null!=b&&b.session==this.F&&aR(this,b)}}else if(a.source==this.B.contentWindow){try{b=g.pf(a.data)}catch(c){return}b.session==this.F&&aR(this,b)}};
g.h.UC=function(){YQ(this,G7,null,(this.Pa.ce/1E3).toString());this.stop()};
g.h.HG=function(a){switch(a.type){case "timeUpdate":a=this.g.getDuration();var b=this.g.getCurrentTime();VQ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":bR(this,"ended");break;case "loaded":bR(this,"loadstart");break;case "mediaLoadTimeout":bR(this,"stalled");break;case "play":bR(this,"playing");break;default:bR(this,a.type)}};
g.h.IE=function(a){a=a.type;"loadedmetadata"==a?(a=this.g.getDuration(),VQ(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):bR(this,a)};
g.h.getCurrentTime=function(){return-1==this.getDuration()||-1==this.kc()?-1:this.getDuration()-this.kc()};
g.h.getDuration=function(){return this.G};
g.h.kc=function(){return this.L};
g.h.gb=function(){return!this.D};
g.h.YH=function(){XQ(this,"getAdRemainingTime")};g.C(cR,sP);g.h=cR.prototype;g.h.li=function(){return this.g?this.g.li():""};
g.h.ki=function(){return this.g?this.g.ki():""};
g.h.Ud=function(){return this.g?this.g.Ud():null};
g.h.ha=function(){if(this.g)return this.g.Ud();throw Hz(xP,null,"Proxied ads manager not available.\n"+Error().stack);};
g.h.jb=function(){return null!=this.g&&null!=this.g.Ud()};
g.h.ti=function(){return!1};
g.h.Xd=function(){return null};
g.h.Xk=function(){this.jb()&&(this.ads=[this.ha()],this.zc=this.ha())};
g.h.destroy=function(){this.g&&(this.g.destroy(),this.g=null);cR.M.destroy.call(this)};
g.h.xb=function(){return this.g?this.g.xb():null};
g.h.bh=function(){this.F=!0;this.g&&this.g.bh()};
g.h.init=function(a){this.Xb(a);this.g&&this.g.init(a)};
g.h.wc=function(a,b,c){a&&a instanceof MP&&(a=a.g);cR.M.wc.call(this,a,b,c);eR(this,a,b,c)};
g.h.R=function(){this.ia("allAdsCompleted");fR(this);cR.M.R.call(this)};
g.h.getCurrentTime=function(){return this.g?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return this.g?this.g.getDuration():-1};
g.h.kc=function(){return this.g?this.g.kc():-1};
g.h.Bb=function(a,b,c){this.td=a;this.sd=b;this.Xb(c);this.g&&this.g.Bb(a,b,c)};
g.h.pause=function(){this.g&&this.g.pause()};
g.h.resume=function(){this.g&&this.g.resume()};
g.h.skip=function(){this.g&&this.g.skip()};
g.h.muteAd=function(){this.g&&this.g.muteAd()};
g.h.whyThisAdClicked=function(){this.g&&this.g.whyThisAdClicked()};
g.h.whyThisAdClosed=function(){this.g&&this.g.whyThisAdClosed()};
g.h.start=function(){if(this.g){var a=this.g,b=this.Ma;a&&b&&(null!=a&&a instanceof sQ?b.jf():null!=a&&a instanceof UQ?(b.Uc(),b.jf()):null!=a&&(a instanceof QP||a instanceof WP)&&b.Uc());null!=this.volume&&!(0,window.isNaN)(this.volume)&&this.g.setVolume(this.volume);this.g.start()}};
g.h.stop=function(){this.xb()&&this.xb().zb()&&this.ia("contentResumeRequested");this.destroy()};
g.h.getVolume=function(){return this.g?this.g.getVolume():0};
g.h.setVolume=function(a){a=(0,window.isNaN)(a)||0>a?0:a;cR.M.setVolume.call(this,a);this.g&&this.g.setVolume(a)};
g.h.Xb=function(a){cR.M.Xb.call(this,a);this.g&&this.g.Xb(a)};
g.h.Ce=function(){return this.g?this.g.Ce():null};
g.h.ee=function(){this.g&&this.g.ee()};
g.h.Bi=function(a){return this.g?this.g.Bi(a):!1};
g.h.Ai=function(){return this.g?this.g.Ai():!1};
g.h.Bf=function(){return this.g?this.g.Bf():null};
g.h.Vt=function(a){this.dispatchEvent(a)};
g.h.cu=function(a){this.dispatchEvent(a)};
g.h.fo=function(a){this.dispatchEvent(a)};
g.h.nf=function(a){cR.M.nf.call(this,a);this.g&&this.g.nf(a)};
g.h.wg=function(){this.ia("userClose")};
g.h.vg=function(){this.ia("autoClose")};
g.h.Qe=function(a){this.g&&this.g instanceof WP&&this.g.Qe(a)};g.C(iR,cR);g.h=iR.prototype;g.h.xb=function(){return this.A};
g.h.dispatchEvent=function(a){if(a instanceof dz){if("loaded"==a.type&&this.C)return a.stopPropagation(),!1;"loaded"==a.type&&(this.C=!0)}return iR.M.dispatchEvent.call(this,a)};
g.h.ti=function(){return null!=tK(this.A)&&tK(this.A).Je()};
g.h.Vt=function(a){if(this.B)gR(this,"rcvmanerr"),this.dispatchEvent(a);else{var b=a.getError()||Hz(KQ);a=a.target.xb();sK(a);kR(this,tK(a),Error(b.$c()))}};
g.h.fo=function(a){this.B&&(gR(this,"rcvcontres"),iR.M.fo.call(this,a),this.destroy())};
g.h.cu=function(a){this.D||(this.D=!0,this.dispatchEvent(a))};
g.h.aE=function(){this.o&&this.o.dispose();this.B=!0};g.C(lR,sP);g.h=lR.prototype;g.h.li=function(){return this.g?this.g.li():""};
g.h.ki=function(){return this.g?this.g.ki():""};
g.h.Ud=function(){return this.g?this.g.Ud():null};
g.h.ha=function(){if(this.g)return this.g.Ud();throw Hz(xP,null,"Current ads manager not available.\n"+Error().stack);};
g.h.jb=function(){return null!=this.g&&null!=this.g.Ud()};
g.h.ti=function(){return this.A+1<this.o.length};
g.h.Xd=function(){return this.ti()?this.o[this.A+1].Ud():null};
g.h.Xk=function(){this.jb()&&(this.ads=[this.ha()],this.zc=this.ha())};
g.h.Qa=function(){};
g.h.destroy=function(){this.g&&this.g.destroy();lR.M.destroy.call(this)};
g.h.xb=function(){return this.g?this.g.xb():null};
g.h.bh=function(){this.g&&this.g.bh()};
g.h.init=function(a){this.Xb(a);this.g&&this.g.init(a)};
g.h.wc=function(a,b,c){a&&a instanceof MP&&(a=a.g);lR.M.wc.call(this,a,b,c);mR(this,a,b,c)};
g.h.R=function(){(0,g.H)(this.o,function(a){a!==this.g&&a.destroy()},this);
pR(this);this.ia("allAdsCompleted");lR.M.R.call(this)};
g.h.getCurrentTime=function(){return this.g?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return this.g?this.g.getDuration():-1};
g.h.kc=function(){return this.g?this.g.kc():-1};
g.h.Bb=function(a,b,c){this.td=a;this.sd=b;this.Xb(c);this.g&&this.g.Bb(a,b,c)};
g.h.pause=function(){this.g&&this.g.pause()};
g.h.resume=function(){this.g&&this.g.resume()};
g.h.skip=function(){this.g&&this.g.skip()};
g.h.muteAd=function(){this.g&&this.g.muteAd()};
g.h.whyThisAdClicked=function(){this.g&&this.g.whyThisAdClicked()};
g.h.whyThisAdClosed=function(){this.g&&this.g.whyThisAdClosed()};
g.h.start=function(){if(this.g){var a=this.g,b=this.Ma;a&&b&&(null!=a&&a instanceof sQ?b.jf():null!=a&&a instanceof UQ?(b.Uc(),b.jf()):null!=a&&(a instanceof QP||a instanceof WP)&&b.Uc());null!=this.volume&&!(0,window.isNaN)(this.volume)&&this.g.setVolume(this.volume);this.g.start()}};
g.h.stop=function(){this.destroy();this.ia("contentResumeRequested")};
g.h.getVolume=function(){return this.g?this.g.getVolume():0};
g.h.setVolume=function(a){a=(0,window.isNaN)(a)||0>a?0:a;lR.M.setVolume.call(this,a);this.g&&this.g.setVolume(a)};
g.h.Xb=function(a){lR.M.Xb.call(this,a);this.g&&this.g.Xb(a)};
g.h.Ce=function(){return this.g?this.g.Ce():null};
g.h.ee=function(){this.g&&this.g.ee()};
g.h.Bi=function(a){return this.g?this.g.Bi(a):!1};
g.h.Ai=function(){return this.g?this.g.Ai():!1};
g.h.Bf=function(){return this.g?this.g.Bf():null};
g.h.$D=function(a){var b=a.getError()||Hz(KQ);oR(this,a.target,b)};
g.h.If=function(){this.C||(this.ia("contentPauseRequested"),this.C=!0)};
g.h.Pe=function(a){nR(this,a.target)};
g.h.nf=function(a){(0,g.H)(this.o,function(b){b.nf(a)},this)};
g.h.wg=function(){this.ia("userClose")};
g.h.vg=function(){this.ia("autoClose")};
g.h.Qe=function(a){this.g&&this.g instanceof WP&&this.g.Qe(a)};g.C(qR,N);g.h=qR.prototype;g.h.init=function(a,b,c){rR(this,a,b,c);null==this.J&&(this.J=new Go(this),Ho(this.J,this.Wa,"adsLoaderSdkAdError",this.XD,!1,this));xR(this)};
g.h.start=function(){this.N=!0;uR(this);0<this.A.length?ER(this):("always"==X.A&&(null!=this.Z&&this.Z.Xc(ZK()),X.g()&&oz().g.g("request_mpu_on_unfilled_ad_break")&&5!=this.ff()&&this.dispatchEvent(new dz("companionBackfill",null))),Iz(Gz,this,SI,void 0,void 0),0==this.gc&&this.dispatchEvent("contentResumeRequested"),FR(this))};
g.h.destroy=function(){null!=this.J&&(this.J.dispose(),this.J=null);zR(this);GR(this);X.A=this.V;this.N=!1};
g.h.xb=function(){return this.o<this.A.length?this.A[this.o].g[0]:null};
g.h.gb=function(){return this.N};
g.h.pause=function(){null!=this.g&&this.g.pause()};
g.h.resume=function(){null!=this.g&&this.g.resume()};
g.h.skip=function(){null!=this.g&&this.g.skip()};
g.h.ee=function(){null!=this.g&&this.g.ee()};
g.h.getCurrentTime=function(){return null!=this.g?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return null!=this.g?this.g.getDuration():-1};
g.h.kc=function(){return null!=this.g?this.g.kc():-1};
g.h.setVolume=function(a){null!=a&&(this.P=a,null!=this.g&&this.g.setVolume(this.P))};
g.h.Tt=function(a){X.A=this.V;var b=a.F;g.J(b)?this.H++:(a=a.D,(0,g.H)(b,g.B(function(a,b){null!=a.B&&(b.Ja=a.B);a.g&&(b.ob=!1)},a)),this.O=Uma(this,b),g.cb(this.A,new Hka(b,a.g,a.o)),this.H++,this.J.Ca(this.Wa,"adsLoaderSdkAdLoaded",this.Tt,!1,this));
xR(this)};
g.h.XD=function(a){a=a.g;X.A=this.V;a.$c();Iz(Gz,this,SI,void 0,void 0);this.H++;if(!sR(this)||2<=this.A.length-this.o)a=Gz(SI),this.dispatchEvent(new cz(a));xR(this)};
g.h.bG=function(){zR(this);GR(this);FR(this)};
g.h.YD=function(a){a=a.getError().vb();try{var b={};b.ec=a;nA(kA.getInstance(),44,b)}catch(c){}this.o++;ER(this)};
g.h.wg=function(){this.dispatchEvent("userClose")};
g.h.vg=function(){this.dispatchEvent("autoClose")};
g.h.Pe=function(){this.o++;ER(this)};
g.h.If=function(){this.da||(this.dispatchEvent("contentPauseRequested"),this.da=!0)};
g.h.ff=function(){return g.J(this.G)?null:this.G[0].B};
g.h.Qe=function(a){this.g instanceof WP?this.g.Qe(a):CR(this.g)&&this.g.Qe(a)};
g.h.Ut=function(a){switch(a.type){case "impression":try{nA(kA.getInstance(),44,{imp:!0})}catch(c){}break;case "start":var b;if(b=this.Te()&&vR(this,this.o+1)&&1<DR(this))b=a.Hb(),b=null===b||null===this.g||g.J(this.g.ads)?!1:this.g.ads[this.g.ads.length-1]===b;b&&wR(this,this.o+1)}"vpaidEvent"!=a.type&&Vma(this,a.type,a.Hb());this.dispatchEvent(a)};
g.h.Te=function(){var a;null===this.B?a=!1:(a=this.B,a=!(null===a||a.rk()||X.g()||Qz()||aA()||g.sx&&!Wz(4))&&!1);return a};g.C(HR,ac);HR.prototype.setDescription=function(){};g.C(IR,N);g.h=IR.prototype;g.h.wb=function(){this.o||(null==this.B&&(this.B=new Go(this)),this.B.S(this.g,"currentTimeUpdate",this.Ss,!1),this.B.S(this.g,"contentWrapperError",this.nG,!1));this.g.start();this.o=!0};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.Ac=function(){null!=this.B&&(this.B.dispose(),this.B=null);this.g.stop();this.o=!1};
g.h.Ss=function(){if(this.o){var a=this.g.currentTime;if((0,window.isNaN)(a)||0>a)OR(this,"The currentTime is not a valid time value:"+a);else{var b=Yma(this,a);this.C?(0,g.H)(b,function(a){MR(this,!0,a)},this):(0,g.H)(Zma(b),function(a){MR(this,!0,a)},this);
MR(this,!1,$ma(this,a))}}};
g.h.nG=function(){OR(this,"There was an error while tracking the content:The content current time is invalid.")};g.C(QR,g.L);QR.prototype.o=function(a){if(0==a.gc||0>=this.A||0>=this.g)return!1;var b=(0,g.G)()/1E3;a=a.gc-this.B.currentTime;0<a&&(b+=a);return b-this.g<=this.A};g.C(RR,QR);RR.prototype.o=function(a){return 5==a.ff()?!1:RR.M.o.call(this,a)};g.C(hO,sP);g.h=hO.prototype;g.h.wc=function(a,b,c){null!=this.Wb&&(this.Wb.Ac(),this.Wb.dispose(),this.Wb=null);hO.M.wc.call(this,a,b,c);a=this.xe.g.rb();b=new jH(b);var d=4;c&&0<=c.mo&&(d=c.mo);this.no=null!=c?c.Nu:0;bna(this,a);this.Wb=new IR(b,this.ub.$a(),{prefetch:d});a=this.xe.g.rb();cna(this,a);dna(this);c=g.Xa(this.ub.$a(),function(a){return 0==a.gc});
null!=c&&this.Te()&&XR(this,c);try{c={cfg:!0},c.ads=this.Ve,nA(kA.getInstance(),44,c)}catch(e){}};
g.h.init=function(a){hO.M.init.call(this,a);this.Co()};
g.h.jh=function(){this.Td();this.dispatchEvent(new bQ(null))};
g.h.destroy=function(){this.dispose()};
g.h.R=function(){this.Wa.g=!0;if(0<this.ub.xc()){var a=this.ub.$a();(0,g.H)(a,this.Lg,this);this.ub.clear()}VR(this);YR(this);null!=this.Ma&&(this.Ma.hf(),this.Ma=null);hO.M.R.call(this)};
g.h.start=function(){hO.M.start.call(this)};
g.h.stop=function(){null!=this.bb&&(this.Lg(this.bb),this.Pe())};
g.h.Bb=function(a,b,c){hO.M.Bb.call(this,a,b,c);this.td=a;this.sd=b;this.Cc=c;null!=this.bb&&rR(this.bb,this.td,this.sd,this.Cc)};
g.h.pause=function(){null!=this.bb&&this.bb.pause()};
g.h.resume=function(){null!=this.bb&&this.bb.resume()};
g.h.skip=function(){null!=this.bb&&this.bb.skip()};
g.h.ee=function(){null!=this.bb&&this.bb.ee()};
g.h.setVolume=function(a){hO.M.setVolume.call(this,a);null!=this.bb&&this.bb.setVolume(a)};
g.h.getCurrentTime=function(){return null!=this.bb?this.bb.getCurrentTime():-1};
g.h.getDuration=function(){return null!=this.bb?this.bb.getDuration():-1};
g.h.kc=function(){return null!=this.bb?this.bb.kc():-1};
g.h.Td=function(){var a=g.jb(this.xe.g.rb());(0,g.H)(this.ub.$a(),g.B(function(a,c){5==c.ff()&&g.eb(a,c.gc)},a));
return a};
g.h.xb=function(){return null!=this.bb?this.bb.xb():null};
g.h.Xk=function(){};
g.h.Co=function(){this.Wb.wb();this.Wb.Ss();var a=g.qa(0)&&!(0,window.isNaN)(0)?this.xe.g.get(0,[]):[];g.J(a)&&this.ia("contentResumeRequested")};
g.h.handleEvent=function(a){switch(a.type){case "contentTrackingError":break;case "discardAdBreak":UR(this,this.ub.get(a.g));break;default:$N(this.$h,a),WR(this)}};
g.h.wg=function(){this.ia("userClose")};
g.h.vg=function(){this.ia("autoClose")};
g.h.Lg=function(a){a.destroy();this.ub.remove(ua(a));this.bb=null;null!=this.Nc&&(this.Nc.Ca(a,dR,this.dispatchEvent,!1,this),this.Nc.Ca(a,"adError",this.$r,!1,this),this.Nc.Ca(a,"allAdsCompleted",this.Ot,!1,this),this.Nc.Ca(a,"contentPauseRequested",this.If,!1,this),this.Nc.Ca(a,"contentResumeRequested",this.Pe,!1,this),this.Nc.Ca(a,"adBreakInitialized",this.Pt,!1,this))};
g.h.PE=function(a){this.Rj=!0;-1==this.ug?a.A=!1:X.g()&&!SR(this)||TR(this);Xma(this.Wb)};
g.h.VD=function(a){var b=a.A,c=0==b,d=-1==b;this.Zh?(c?this.ia("contentResumeRequested"):!d||X.g()&&!SR(this)||TR(this),this.Zh=!1):(d?Gd(function(){var b=this.ub.get(a.g);b&&this.Lg(b);X.g()&&!SR(this)||TR(this)},500,this):c&&Gd(function(){this.ia("contentResumeRequested")},100,this),c={},c.adBreakTime=b,this.dispatchEvent(new dz("adBreakReady",null,c)))};
g.h.$r=function(a){var b=a.getError(),c=b.vb();try{var d={};d.ec=c;nA(kA.getInstance(),44,d)}catch(e){}X.g()&&b&&"adLoadError"==b.Pb()&&this.dispatchEvent(a)};
g.h.Ot=function(a){this.Lg(a.target);(SR(this)||!X.g()&&this.Rj)&&TR(this);this.ld=null;WR(this)};
g.h.If=function(){var a=this.Wb;a.g.stop();a.o=!1;this.ia("contentPauseRequested")};
g.h.Pe=function(){this.ia("contentResumeRequested");this.im||LR(this.Wb);this.ld=null};
g.h.Pt=function(a){this.ld=null;a=a.target;var b={};b.adBreakTime=a.gc;this.dispatchEvent(new dz("prefetched",a.xb(),b));WR(this)};
g.h.ia=function(a){var b=null;null!=this.bb&&(b=this.bb.xb());this.dispatchEvent(new dz(a,b))};
g.h.Pg=function(a){return g.Xa(this.ub.$a(),g.B(function(a,c){return c.gc==a},a))};
g.h.uv=function(a,b){X.g()?this.Oc=new RR(a,b):this.Oc=new QR(a,b);return this.Oc};
g.h.Qe=function(a){null!=ZR(this)&&ZR(this).Qe(a)};
g.h.Te=function(){return!1};g.C(aS,N);aS.prototype.R=function(){null!=this.g&&(this.g.Ca("adsManagerLoaded",this.dispatchEvent),this.g.Ca("adError",this.dispatchEvent),this.g.Ca("adLoadError",this.dispatchEvent),this.g=null);aS.M.R.call(this)};g.C(cS,Xk);g.h=cS.prototype;g.h.Ye=function(){D6(this.app,!0,this.playerType);RY(this.app,this.playerType)};
g.h.fd=function(){TY(this.app,this.playerType)};
g.h.ke=function(a,b,c){D6(this.app,!0,this.playerType);var d=this.app,e=this.playerType;UY(d,d.getCurrentTime()+a,b,c,e)};
g.h.Ec=function(a,b){D6(this.app,!0,this.playerType);UY(this.app,a,b,void 0,this.playerType)};
g.h.Dh=function(){P6(this.app)};g.C(dS,fn);dS.prototype.up=function(){return-1};eS.prototype.reset=function(){kw(this.g)};
eS.prototype.o=function(a,b){g.cw(a,b,this.g)};
eS.prototype.info=function(a,b){g.dw(a,b,this.g)};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Qi();return b?(b=b.toLowerCase(),b+=Sa("hidden"),!g.p(a)||b in a?b:null):null})();gS.prototype.forEach=function(a){for(var b=this.o+1;b<this.g.length;b++)a(this.g[b]||0);for(b=0;b<=this.o;b++)a(this.g[b]||0)};
gS.prototype.$a=function(){var a=[];this.forEach((0,g.z)(a.push,a));return a};
gS.prototype.clear=function(){for(var a=this.g.length,b=0;b<a;b++)this.g[b]=0;this.o=this.g.length-1};iS.prototype.ka=function(){};xS.prototype.start=function(){this.o=!0};
xS.prototype.reset=function(){this.g=this.o=!1};zS.prototype.reset=function(){this.G=window.NaN;this.F=0;this.g=new yS(0,0,null);this.A=8;this.C=[];this.o=this.D=window.NaN;this.B=this.H=0};
zS.prototype.process=function(a){if(this.C.length){if(CS(this)&&this.C.length+a.byteLength<this.A)return DS(this,a,0);var b=this.C.length,c=new window.Uint8Array(b+a.byteLength);c.set(this.C,0);c.set(new window.Uint8Array(a.buffer,a.byteOffset,a.byteLength),b);this.C=[];a=new window.DataView(c.buffer)}for(b=0;b<a.byteLength;){var c=a.byteLength-b,d;if(CS(this)){if(c<this.A)return DS(this,a,b);switch(this.g.type){case 0:case 1836019574:case 1836019558:case 1953653094:var c=a,e=b;d=c.getUint32(e);c=
c.getUint32(e+4);this.g=new yS(c,d,this.g);d=8;break;case 1952867444:d=a;c=b;(0,window.isNaN)(this.o)||((0,window.isNaN)(this.G)&&(this.G=this.o),e=d.getUint8(c),0==e?d.setUint32(c+4,this.o):1==e&&(d.setUint32(c+4,Math.floor(this.o/4294967296)),d.setUint32(c+8,this.o&4294967295)),this.o+=this.H);d=this.g.size-8;break;case 1936286840:d=a,c=b,e=d.getUint8(c),e=d.getUint32(e?c+36:c+28),this.B=d.getUint32(c+8),BS(this),this.H=e,this.F+=e,d=this.g.size-8}}else d=Math.min(this.A,c);this.g.offset+=d;this.A-=
d;b+=d;if(0==this.A){for(;0!=this.g.type&&this.g.offset==this.g.size&&this.g.g;)this.g.g.offset+=this.g.size,this.g=this.g.g;switch(this.g.type){case 0:case 1836019574:case 1836019558:case 1953653094:this.A=8;break;default:this.A=this.g.size-8}}}return a};g.C(ES,g.en);LS.prototype.ba=function(a){switch(a.info.type){case 1:case 2:this.ca(a);break;case 4:var b=a.info.g.Zu(a);a=a.info;var c=this.g;c&&c.g==a.g&&c.type==a.type&&(a.range&&c.range?c.range.start==a.range.start&&c.range.end==a.range.end:c.range==a.range)&&c.A==a.A&&c.o==a.o&&c.B==a.B&&(this.g=g.Va(b).info);(0,g.H)(b,this.ba,this);break;case 3:rna(this.o,a)}};
LS.prototype.ca=function(a){if(Di(a.info.g.info)&&"9h"!=a.info.g.info.A&&1==a.info.type){var b=new window.DataView(a.g),c=new mu(b);uu(c);tu(c,408125543);c=ou(c);tu(c,374648427);c=ou(c);tu(c,174);c=ou(c);tu(c,224);c=ou(c);if(tu(c,21936)){var d=c.A+c.g,c=nu(c,!0);b.setUint8(d-2,236);b.setUint8(d-1,128|c+1)}}a.info.g.Gs(a)};
LS.prototype.da=function(a){this.B=a=a.info;this.N&&this.B.F&&(this.N=!1);a.g.info.g>=this.P&&(this.P=a.g.info.g,this.Z=a.C)};
LS.prototype.getDuration=function(){return this.A.index.mp()};oT.prototype.send=function(){g.li(this.A,{format:"RAW",responseType:"arraybuffer",timeout:1E4,cd:this.B,Sc:this.B,context:this});this.o=(0,g.Ok)()};
oT.prototype.B=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.Ok)()-this.o)/1E3).toFixed(3),shost:g.Sf(this.A),trigger:this.D};204==a.status||a.response?this.g&&this.g(ui(b)):this.C(new g.ti("pathprobe.net",!1,b))};var zna=0;g.h=pT.prototype;g.h.dI=function(a){this.status=a.status;a.ok?(this.A=a.body.getReader(),this.D?(this.G=a.headers,this.L(),this.F=new window.Uint8Array(qT(this)),sT(this)):this.A.cancel("Cancelling")):this.Hl()};
g.h.DE=function(a){if(this.D){var b=(0,g.G)()-this.C;this.ka("Read completed after "+b+"ms"+(a.done?".":", "+a.value.length+"."));if(a.done)this.A=null,this.Hl();else{this.D({timeStamp:(0,g.G)(),loaded:this.B});a=a.value;this.B+=a.length;var b=a.length>=Math.max(qT(this)/2,16384),c=a.length+this.g>qT(this);b&&this.ka("Making slab from chunk of size: "+a.length);c&&this.ka("Slab buffer bytes exceeded: "+this.g+" + "+a.length);(b||c)&&0!==this.g&&rT(this);b?this.o.push(a):(this.F.set(a,this.g),this.g+=
a.length);sT(this)}}};
g.h.Hl=function(){this.D&&(this.ka("Finished."),this.H=!0,this.J())};
g.h.Xf=function(a){return this.G.get(a)};
g.h.Ls=function(){return!!this.G};
g.h.Rm=function(){return this.B};
g.h.ii=function(){return+this.Xf("content-length")};
g.h.Ks=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.h.ka=function(){};
g.h.Tn=function(){return!!this.o.length||this.H&&0<this.g};
g.h.Bv=function(){this.o.length||rT(this);return this.o.shift()};
g.h.Kw=function(){this.o.length||rT(this);return this.o[0]};
g.h.abort=function(){this.ka("Aborted");this.A&&this.A.cancel("Cancelling");this.J=this.D=null};g.h=tT.prototype;g.h.DK=function(a){if(!this.o){this.status=this.g.status;try{this.response=this.g.response}catch(b){}this.A=!0;this.B(a)}};
g.h.FK=function(){2==this.g.readyState&&this.C()};
g.h.EK=function(a){this.o||(this.status=this.g.status,this.D(a))};
g.h.Ls=function(){return 2<=this.g.readyState};
g.h.Xf=function(a){try{return this.g.getResponseHeader(a)}catch(b){return eh(b),""}};
g.h.ii=function(){return+this.Xf("content-length")};
g.h.Rm=function(){return this.response.byteLength};
g.h.Ks=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.Tn=function(){return this.A&&!!this.response&&!!this.response.byteLength};
g.h.Bv=function(){var a=this.response;this.response=null;return new window.Uint8Array(a)};
g.h.Kw=function(){return new window.Uint8Array(this.response)};
g.h.abort=function(){this.o=!0;this.g.abort()};uT.B=!1;uT.o=1E4;uT.g=2048;uT.A="X-Bandwidth-Est";g.h=uT.prototype;g.h.vb=function(){return this.G};
g.h.start=function(a){var b=1==this.state,c=wT(this);1==this.state||5==this.state||c&&AT(this);BT(this,2);if("fallback"==c||"fastfallback"==c)c=this.info.o,this.H<=c.A||(c.o++,c.A=u7-1,c.g=Rs(c.B,c.o)),this.D=0;else if("retry"==c){this.D++;this.ka("Retrying, round "+this.D);b=1E4*(.5+Math.random());1==this.D&&(b=2E3);g.ah((0,g.z)(this.pp,this,a),b);return}b?this.pp(a):g.ah((0,g.z)(this.pp,this,a),0)};
g.h.pp=function(a){if(!this.isDisposed()){this.H=u7++;if(this.A){var b=this.info,c=this.A.o;this.J=b.range?new Ws(b.range.start+c,b.range.end):Ys(c,this.A.length);this.o=g.Nt(this.info,this.J)}else this.J=this.info.range,this.o=g.Nt(this.info);this.o.set("rn",this.H.toString());this.D&&this.o.set("playerretry",this.D.toString());0<=a&&this.o.set("rbuf",(1E3*a).toFixed().toString());a=g.it(this.o);try{var d=(0,g.z)(this.MH,this),e=(0,g.z)(this.PH,this),f=(0,g.z)(this.OH,this),k=(0,g.z)(this.NH,this);
this.g=this.C.D&&"function"==typeof window.fetch&&window.ReadableStream&&CT(this)?new pT(a,e,f,d,k):new tT(a,e,f,d,k)}catch(l){this.G="net.ssl",BT(this,7)}0<this.C.O&&(this.F=g.ah((0,g.z)(this.Vu,this),this.C.O));this.ka("Sent, itag="+this.o.get("itag")+" range="+this.o.get("range")+" time="+Math.round(this.info.g[0].D)+"-"+Math.round(g.Va(this.info.g).C)+" rtp="+(this.timing.D-(0,g.G)()).toFixed(0))}};
g.h.PH=function(){this.L=0;zT(this).Qf+=1;var a=this.timing;a.A=(0,g.G)();a.C=a.A;a.g=0;a.N=!1;a.L=!1;a.F=0;a.J=Cw(a.o);HT(a);a.H=(a.D-a.A)/1E3};
g.h.OH=function(a){if(!this.isDisposed()){this.B=this.g.status;FT(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:(0,g.G)();50>c-b.C||GT(b,c,a);b=this.timing;b.g>b.V&&8192<b.g&&4>this.state?(this.ka("Partial"),BT(this,4)):this.C.D&&OS(this)&&(this.ka("Has slices"),BT(this,Math.max(3,this.state)))}};
g.h.NH=function(){!this.isDisposed()&&!this.N&&this.g.Ls()&&this.g.Xf("X-Walltime-Ms")&&(this.N=((0,g.G)()-this.g.Xf("X-Walltime-Ms"))/1E3)};
g.h.MH=function(){var a=this.g;if(!this.isDisposed()){this.F&&(g.ch(this.F),this.F=window.NaN);this.B=a.status;var b=!1;if(400<=a.status)b=!0,this.G="net.badstatus";else if(a.Ks()){var c="";ET(this)&&(c=a.Kw(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),Ss.test(c)?this.ka("Redirecting to"+c):c=""));if(c){var a=this.info,d=this.o,e=a.o;d.g===e.g&&(e.g=Cea(d,c));a.requestId=d.get("req_id");BT(this,5)}else if(d=a.ii(),c=a.Rm(),a=!!this.J&&this.J.length,e=!0,!d&&a?e=a==c:!a&&d?e=d==c:a&&
d&&(e=a==d&&d==c),e){FT(this,!0);e=CT(this)?this.g.Xf("X-Bandwidth-Est"):0;a=this.timing;d=(0,g.G)();e=e?(0,window.parseInt)(e,10):0;if(!a.N){a.N=!0;d=d>a.A&&4E12>d?d:(0,g.G)();GT(a,d,c);a.G&&e?ww(a.o,a.g/e,a.g):(e=(d-a.A)/1E3,(e<=a.o.g.o||!a.o.g.o)&&!a.L&&8192<=a.g&&ww(a.o,e,c),8192<=a.g&&(e=a.o,c=Math.max(c,8192),e.D.g(1,a.F/c),Dw(e)));var c=a.o,d=(d-a.A)/1E3,e=a.H,f=a.P;c.F.g(d,a.g/d);c.H=(0,g.Ok)();f||c.A.g(1,d-e);a.B&&(a.B=!1)}this.ka("Succeeded, rtpd="+(this.timing.D-(0,g.G)()).toFixed(0));
zT(this).Gv+=1;BT(this,6)}else b=!0,this.G="net.closed"}else b=!0,this.G="net.connect";b&&(this.ka("Request failed"),AT(this),BT(this,7),(0,g.G)())}};
g.h.Vu=function(){this.F=window.NaN;if(!(this.isDisposed()||this.C.hd&&this.g&&8192<=this.timing.g&&"quic"==this.g.Xf("client-protocol"))){var a=(0,g.G)(),b=!1;if(8192<=this.timing.g){var c=this.timing.D;HT(this.timing);this.timing.D-c>=.8*this.C.O?(this.L++,this.ka("Mispredicted by "+(this.timing.D-c).toFixed(0)),b=5<=this.L):this.L=0}else b=this.timing,c=a-(b.A+1E3*b.J.delay),(b=5E3<c)&&this.ka("Elbow late by "+c.toFixed(3));if(b){this.ka("Timed out!");b=this.timing;a=a>b.A&&4E12>a?a:(0,g.G)();
c=(a-b.A)/1E3;if(!b.G){if(8192<=b.g){b.F+=(a-b.C)/1E3;var d=b.o,e=b.O,e=Math.max(e,8192);d.D.g(1,b.F/e)}else d=b.o,d.G.g(1,c);Dw(d)}var d=b.o,e=b.H,f=b.P;d.F.g(c,b.g/c);d.H=(0,g.Ok)();f||d.A.g(1,c-e);yw(b.o,(a-b.C)/1E3,0);DT(this);this.G="net.timeout";BT(this,7)}else this.F=g.ah((0,g.z)(this.Vu,this),this.C.O)}};
g.h.isDisposed=function(){return-1==this.state};
g.h.dispose=function(){It(this.info.g[0])&&6!=this.state&&(this.info.g[0].g.A=!1);BT(this,-1);this.O=null;DT(this);g.ch(this.F);this.F=window.NaN};
g.h.ka=function(){};g.C(JT,g.en);JT.D=!1;JT.g=2/24;JT.B=1E3;JT.o=1E4;JT.C=1800;JT.A="Not enough storage";g.h=JT.prototype;g.h.initialize=function(a,b,c,d){this.ka("Initialized, t="+a);a=a||0;var e=this.F;d=d&&d.id;e.F="i";"auto"!=Kj()&&(e.F="s");pS(e,b);nna(e,d);e.O=e.B;ona(e);e.A=e.o;b=vS(e);this.A=new LS(this.B,b.audio);this.g=new LS(this.B,b.video);hU(this,this.A);hU(this,this.g);this.g.o.J=this.A.o;this.$("videoformatchange",b);this.D=a;c?(PT(this),dU(this)):OT(this)};
g.h.resume=function(){if(this.L||this.V)this.ka("Resumed."),this.V=this.L=!1};
g.h.JG=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.g[0].g,c=!this.ba&&b.info.video,d=!this.N&&b.info.audio,e=Math.max(0,a.info.g[0].D-this.D);this.B.Ua&&5<=a.state&&this.$("ctmp","rqs",ui(Ana(a)));if(5==a.state)c?NT(this,"vrr"):d&&NT(this,"arr"),a.start(e);else if(6==a.state||this.B.D&&3<=a.state&&!(5<=a.state)){c?(this.ba=a.o?g.it(a.o):"",pr(4)):d&&(this.N=a.o?g.it(a.o):"");b=b.info.video?this.g:this.A;this.C.o&&(b.J=!1,a.N&&this.Aa.g(1,a.N));if(e=It(a.info.g[0]))e=a.info,e=!!It(e.g[e.g.length-
1]);e&&(0,g.H)(a.A.A,b.ca,b);this.Qd()}else if(4==a.state)this.Qd(),c&&pr(4);else if(7==a.state&&AT(a)){if(IT(this,!1,a.vb(),xT(a)),!this.isDisposed()){if(c=b.info.video&&(0<a.D||410==a.B||500==a.B||503==a.B)&&90&&!tS(this.F)){this.ka("Stunning format "+b.info.id);var d=this.F,f=b.info;tS(d);d.da=f;d.P=(0,g.Ok)();d.N=-1;pS(d,d.g)}if(yT(a)||c){b=b.info.video?this.g:this.A;for(e=0;e<b.C.length&&a!==b.C[e];e++);if(e==b.C.length)aT(b,a);else{for(;e<b.C.length;)aT(b,b.C.pop());3==a.info.g[0].type?(a.A&&
a.A.B?(a=a.A.B,a=new Ht(a.type,a.g,a.range,a.A,a.startTime+a.duration,0,a.o+a.B,0,!1)):(a=a.info.g[0],a=new Ht(a.type,a.g,a.range,a.A,a.startTime,0,a.o,0,!1)),b.g=a):b.g=null}this.Qd()}else a.start(e),this.B.Rb&&!AT(a)&&(a="https://www.youtube.com/generate_204?cpn="+(b.D.g.get("cpn")||"")+"&rn="+u7++,iU(this,a,"error"))}}else It(a.info.g[0])?(b.B=!0,this.Qd()):IT(this,!0,"net.retryexhausted",xT(a))}};
g.h.Qd=function(){this.la=window.NaN;QT(this);if(!this.isDisposed())if(Tu(this.C)&&3==this.C.F)IT(this,!0,"manifest.net.retryexhausted",{rc:this.C.L.toString()});else if(this.C.isLive&&(lT(this.g)||lT(this.A)))this.$("seektohead");else if("prerender"==window.document.webkitVisibilityState)dU(this);else if(UT(this),PS(this.g),!this.isDisposed()&&(PS(this.A),!this.isDisposed())){if(this.C.o){mT(this.g);mT(this.A);var a=-1!=this.g.G,b=-1!=this.A.G;if(!a||!b)if(a=!a&&FS(this.g.o),b=!b&&FS(this.A.o),a||
b){var b=a?this.g:this.A,a=a?this.A:this.g,c=FS(b.o).info.A;if(-1!=a.G&&a.G!=c){var d=a.G;dT(b,0);ZS(b,window.Infinity);b.g.A=d-1;IT(this,!1,"qoe.avsync",{start:"1",target:a.G,actual:c})}else b.G=c}(b=FS(this.g.o))&&b.o&&(this.ga=FS(this.g.o).o.A)}this.A.A.A||(!this.L||Ew(this.G)?OT(this):dU(this));!this.o||VT(this,this.A,this.o.g)||VT(this,this.g,this.o.o)||Cna(this)||((b=gU(this,this.g,this.o.o,null,this.A.D))&&!this.fa&&(this.fa=(0,g.G)(),NT(this,"vda"),g.cw("vda",void 0,"video_to_ad"),this.da&&
pr(4)),ut(this.o)||(a=pk(this.o.o.buffered,this.D+JT.g),(0,window.isNaN)(a)&&!YS(this.g)&&this.o.g.buffered.length||(YS(this.g)&&(a=window.NaN),a=gU(this,this.A,this.o.g,a,null),b|=a,a&&!this.da&&(this.da=(0,g.G)(),NT(this,"ada"),g.cw("ada",void 0,"video_to_ad"),this.fa&&pr(4))),YS(this.g)&&YS(this.A)&&rt(this.o)&&!vt(this.o)&&(this.ka("Setting EOS"),a=this.o,rt(a)&&a.A.endOfStream(),a=this.G,Jj(Cw(a)),a.C=(0,g.Ok)()),b&&!xt(this.o)&&cU(this)));LT(this);this.g.A.B||this.A.A.B?IT(this,!0,"net.retryexhausted",
{metadata:"1",video:this.g.A.B?"1":"0",audio:this.A.A.B?"1":"0"}):(XT(this,this.g,this.A)&&aU(this,this.g,this.A),XT(this,this.A,this.g)&&aU(this,this.A,this.g),this.B.ab&&this.P&&!this.L&&Ew(this.G)&&(iU(this,this.P,"cms"),this.P="",this.B.sb&&(b=Ns(Rs(this.A.A.D.B,0)),iU(this,b,"redir"),iU(this,b.replace("redirector.googlevideo.com","www.youtube.com"),"www-redir"))),this.C.A&&dU(this))}};
g.h.Fk=function(a){a=(a=a?this.A:this.g)&&a.B;IT(this,!0,"fmt.unplayable",a?Kt(a):void 0)};
g.h.LF=function(a){IT(this,!0,"fmt.unparseable",a)};
g.h.NF=function(a){IT(this,!1,"qoe.avsync",a)};
g.h.MF=function(a){Yu(this.C,a)};
g.h.KF=function(a,b){if(this.g.A.index.Zb()<=b){var c=this.C;c.G.push(a);c.$("cuepointsadded")}};
g.h.seek=function(a){if(!this.isDisposed()&&!this.g.J&&!this.A.J){UT(this);this.wa=(0,g.Ok)();LT(this,a);var b=jU(this,this.g,a,this.o&&this.o.o),c=jU(this,this.A,b,this.o&&this.o.g);this.D=Math.max(a,b,c);this.O=!0;cU(this)}};
g.h.R=function(){TT(this);this.A&&(bT(this.A),bT(this.g));g.dh(this.na);g.ch(this.Z);this.g=this.A=null;JT.M.R.call(this)};
g.h.ka=function(){};
g.h.BK=function(){return this.Aa.o()||0};g.C(nU,g.L);g.h=nU.prototype;g.h.TL=function(a){this.F.call(this.A,new window.Uint8Array(a.message))};
g.h.UL=function(){this.J.call(this.A,Dna(this))};
g.h.Xt=function(a,b){eh(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.D.call(this.A,c)};
g.h.vu=function(a){this.F.call(this.A,a.message)};
g.h.uu=function(a){var b;this.o?(b=this.o.error.code,a=this.o.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.D.call(this.A,";c."+b+";sc."+a)};
g.h.tu=function(){this.H.call(this.A)};
g.h.update=function(a){this.g?this.g.update(a).then(null,$g((0,g.z)(this.Xt,this,"t.u"))):this.o?this.o.update(a):this.C.addKey?this.C.addKey(this.L.o,a,this.G,this.sessionId):this.C.webkitAddKey(this.L.o,a,this.G,this.sessionId)};
g.h.R=function(){this.g&&this.g.close();this.C=null;nU.M.R.call(this)};g.C(oU,g.L);oU.prototype.J=function(a){var b=qU(this,a);b&&b.vu(a)};
oU.prototype.H=function(a){var b=qU(this,a);b&&b.uu(a)};
oU.prototype.G=function(a){(a=qU(this,a))&&a.tu()};
oU.prototype.R=function(){this.o=null;oU.M.R.call(this)};rU.prototype.get=function(a){a=sU(this,a);return-1!=a?this.values[a]:null};
rU.prototype.remove=function(a){a=sU(this,a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
rU.prototype.set=function(a,b){var c=sU(this,a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};tU.prototype.o=0;tU.prototype.reset=function(){this.g=this.A=this.B;this.o=0};
tU.prototype.getValue=function(){return this.A};g.C(vU,g.L);g.h=vU.prototype;g.h.Ow=function(a){this.L=a};
g.h.IK=function(a){if(!this.isDisposed()){this.G||(this.G=!0,this.g.$("newsession",this));if(av(this.A)){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new window.DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=new window.Uint8Array(Gm(a.childNodes[0].data))}if(bv(this.A))for(b=g.Em(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a=new Lna(a,++this.O);this.kv(a)}};
g.h.GK=function(){this.isDisposed()||this.B||(this.g.$("sessionready"),this.B=!0)};
g.h.JK=function(a){this.isDisposed()||this.g.$("keystatuseschange",Nna(a,this.D))};
g.h.kv=function(a){a={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,Cb:(0,g.z)(this.xF,this,a),onError:(0,g.z)(this.ju,this,a)};var b=this.F;this.L&&(b=fg(b,"access_token",this.L));g.li(b,a)};
g.h.xF=function(a,b){if(!this.isDisposed())if(0!=b.status&&b.response){var c;c=new window.Uint8Array(b.response);var d=String.fromCharCode.apply(String,c.subarray(0,16384)),e=d.indexOf("\r\n"),f=d.indexOf("\r\n\r\n"),k,l;-1==f?c=null:(l=d.slice(0,e).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/),null==l?c=null:(k=Ta(l[1]),l=l[2],d=St(d.slice(e+2)),c=null==d?null:new Kna(k,l,d,c.subarray(f+4))));if(c)if(0!=c.g)wU(this,"drm.auth",!0,"t.f;c."+c.g,g.Jk(c.g));else{f=null;(k=c.headers["Heartbeat-Url"])&&(f=new Jna(k,
(0,window.parseInt)(c.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(c.headers["Heartbeat-Num-Retries"],10)||4));f&&this.g.$("newlicense",f);if(k=f=c.headers["Authorized-Format-Types"])k=this.o,k=!(k.g&&k.g.keyStatuses);k&&this.g.$("keystatuseschange",xU(f?f.split(","):[]));c.headers["Key-Ids"]&&(this.D=Ona(c.headers["Key-Ids"]));bv(this.A)&&(c.message=new window.Uint8Array(Gm(String.fromCharCode.apply(null,c.message))));this.o.update(c.message);this.B&&(this.H=(0,g.Ok)())}else wU(this,
"drm.net",!0,"t.p","YTP_ERROR_SERVER_ERROR")}else this.ju(a,b)};
g.h.HK=function(a){this.isDisposed()||wU(this,"drm.keyerror",!0,"t.s"+a)};
g.h.ju=function(a,b){var c,d=!1;3<=a.g.o||this.J&&36E4<(0,g.Ok)()-this.H?(c="drm.net.retryexhausted",d=!0):c=b.status?"drm.net.badstatus":"drm.net.connect";wU(this,c,d,"t.r;c."+b.status);if(this.J&&this.B?0:!d&&this.O==a.number)c=a.g.getValue(),c=new g.Id((0,g.z)(this.kv,this,a),c),g.M(this,c),c.start(),c=a.g,c.g=Math.min(c.C,c.g*c.F),c.A=Math.min(c.C,c.g+(c.D?Math.round(c.D*(Math.random()-.5)*2*c.g):0)),c.o++};
g.h.R=function(){this.g=null;vU.M.R.call(this)};g.C(AU,g.en);g.h=AU.prototype;g.h.aF=function(a){a=new yU(new window.Uint8Array(a.initData),a.initDataType);CU(this,a,!0)};
g.h.YF=function(a){CU(this,new yU(a.initData,a.contentType),!0)};
g.h.IF=function(){this.isDisposed()||(this.D=!0,BU(this))};
g.h.oE=function(a){if(!this.isDisposed()){eh(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.$("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.$F=function(a){this.isDisposed()||!a||this.P||(this.P=a,this.$("heartbeatparams",a))};
g.h.aG=function(){this.isDisposed()||(this.o.shift(),BU(this))};
g.h.UG=function(){if(av(this.g)&&(this.O--,0==this.O)){var a=this.B;a.o.msSetMediaKeys(a.A)}};
g.h.KK=function(a){this.isDisposed()||av(this.g)||Oi(this.C,a)||(this.C=Ji("auto",a,!1),this.$("qualitychange"))};
g.h.R=function(){this.g.A&&this.F.setMediaKeys(null);this.F=null;this.o=[];(0,g.H)(this.A.values,function(a){a.dispose()});
Ina(this.A);AU.M.R.call(this)};DU.prototype.C=function(){var a=u("yt.abuse.botguardInitialized");return a&&a()?(a=u("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
DU.prototype.D=function(a){return"r3a="+Math.floor(this.g.lengthSeconds%Qa(a.c3a))};
DU.prototype.B=function(a){a=Qa(a.c);var b;b=u("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};g.C(FU,g.L);g.h=FU.prototype;g.h.start=function(){this.o.start()};
g.h.stop=function(){this.o.stop()};
g.h.wb=function(a,b,c){this.A[a]=b;this.g[a]=new HU(!!c)};
g.h.clear=function(){for(var a in this.g)this.g[a].clear()};
g.h.pI=function(){for(var a in this.A)this.g[a].update(this.A[a]());this.o.start()};
HU.prototype.update=function(a){this.A?(hS(this.g,a-this.o||0),this.o=a):hS(this.g,a)};
HU.prototype.clear=function(){this.g.clear();this.o=0};IU.prototype.isEmpty=function(){return this.endTime==this.startTime};var KU={other:1,none:2,wifi:3,cellular:7};g.C(MU,g.en);MU.o=2;MU.B=5;MU.C=5;MU.g="endcr";MU.A=96;g.h=MU.prototype;g.h.R=function(){g.ch(this.ba);g.dh(this.Xa);g.ch(this.ab);var a=pj();a&&window.document.removeEventListener(a,this.dc,!1);QU(this);RU(this);OU(this);iV(this);g.Db(this.la,this.g);this.V=null;this.Ja=!1};
g.h.getVideoData=function(){return this.g};
g.h.vr=function(){if(jy(this.g))g.T(this.A,128)||(jy(this.g),this.fa.g=!0,4!=this.J&&(this.da=g.jb(this.g.J)),g.cy(this.g,this.W).then(this.Wr,this.Wr,this));else{var a=this.g;if(a.o&&a.adaptiveFormats&&!a.oy&&(g.xl(a)||this.W.experiments.g("html5_manifestless_always"))){if(a=this.g,!Xx(a)){a.oy=!0;var b=Mu(Zx(a,a.adaptiveFormats),a.Ia,a.lengthSeconds,!0);fga(b)||a.Mp?b.dispose():(a.Ua=!1,Yx(a,b),b.subscribe("cuepointsadded",a.tr,a),Ju(a.g)&&(a.va=!0));$x(a)}}else if(this.g.Ua){a=this.g;b=this.W.experiments;
a.V=!0;a.Ua=!1;Ss.test(a.G)||eh(Error("DASH MPD Origin invalid: "+a.G),"WARNING");var c=a.G,c=g.ag(c,{mpd_version:b.o("dash_manifest_version")||4});!a.isLowLatencyLiveStream&&b.g("html5_live_disable_dg_pacing")&&(c=g.ag(c,{pacing:0}));Su(new Iu(c,b,a.o),c).then(a.VE,a.UE,a);g.cw("mrs")}else if(this.g.va)this.sa&&(a=this.sa.o,On(a,"protected"),a.g.videoData.H?a.tv():a.g.videoData.subscribe("dataloaded",a.tv,a)),a=this.g,b=this.W.G,c=this.W.experiments,Ju(a.g),b=new fv(ax(b,a.g),c),g.M(a,b),a.va=!1,
a.V=!0,a=(0,g.z)(a.yD,a),b.B=a,ev(b.D)?b.C():jfa(b);else if(!this.g.V&&(this.tc||this.ga)){a:{var a=this.W,b=this.g,d=this.fb.Sa(),e=oj(this.W),f=this.W.P;switch(b.Na){case 38:a=b.videoId.indexOf(":");b=g.ag("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.BA});break a;case 30:c="https://docs.google.com/get_video_info";a.experiments.g("restore_nonsense_docs_behavior")&&a.baseYtUrl!=zx.prototype.baseYtUrl&&(c=a.baseYtUrl+"get_video_info");b=g.ag(c,
{docid:b.videoId,authuser:b.hc,authkey:b.Qk,eurl:a.pa});break a;case 33:b=g.ag("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});break a;default:c={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.pa,ps:a.o,el:a.g,hl:a.Ua,list:b.playlistId,agcid:b.ry,aqi:b.AA,sts:17184,lact:hk()},g.va(c,a.A),a.forcedExperiments&&(c.forced_experiments=a.forcedExperiments),b.L?(c.vvt=b.L,b.mdxEnvironment&&(c.mdx_environment=b.mdxEnvironment)):b.oauthToken&&(c.access_token=b.oauthToken),
b.adFormat&&(c.adformat=b.adFormat),a.tc&&(c.cc_lang_pref=a.tc),a.ra&&2!=a.ra&&(c.cc_load_policy=a.ra),a.mute&&(c.mute=a.mute),b.qe&&2!=a.Eg&&(c.iv_load_policy=b.qe),b.Fc&&(c.itct=b.Fc),Pn(a,b,f)&&(c.autoplay="1"),b.hd&&(c.autonav="1"),b.Kh&&(c.noiba="1"),b.isMdxPlayback&&(c.mdx="1",c.ytr=b.Oa),b.mdxControlMode&&(c.mdx_control_mode=b.mdxControlMode),b.tc&&(c.ytrcc=b.tc),b.Lh&&(c.utpsa="1"),b.isFling&&(c.is_fling="1"),b.vnd&&(c.vnd=b.vnd),b.Eg&&(c.force_ad_param_ad_type="video_ad",c.force_ad_param_url=
b.Eg,c.force_ad_param_break_type="1",c.force_ad_param_offset_value=0),d.width&&(c.width=d.width),d.height&&(c.height=d.height),b.Ja&&(c.splay="1"),b.ypcPreview&&(c.ypc_preview="1"),a.Na&&(c.content_v=a.Na),b.Xa&&(c.livemonitor=1),a.hc&&(c.authuser=a.hc),a.pageId&&(c.pageid=a.pageId),a.na&&(c.ei=a.na),a.te&&(c.ssl_stream="1"),a.C&&(c.iframe="1"),b.ve&&(c.tst=b.ve),b.contentCheckOk&&(c.cco="1"),b.racyCheckOk&&(c.rco="1"),a.kb&&b.liveStartWalltime&&(c.live_start_walltime=b.liveStartWalltime),a.kb&&b.Nh&&
(c.live_manifest_duration=b.Nh),a.kb&&b.Iv&&(c.cyc=b.Iv),0!=e&&(c.vis=e),a.enableSafetyMode&&(c.enable_safety_mode="1"),a.widgetReferrer&&(c.widget_referrer=a.widgetReferrer.substring(0,128)),(d=a.L.embedding_app)&&(c.embedding_app=d),(d=a.L.developer_api_key)&&(c.developer_api_key=d),b.pe&&(b=b.pe,c.uloc=b.latitudeE7+","+b.longitudeE7),b=g.ag(a.baseYtUrl+"get_video_info",c)}}c=2;this.W.isAd()&&(c=0);a=this.g;d=this.W.Xa;e=this.W.experiments;a.isDisposed()||(a.Ih=b,a.ci=c,a.Oq=!!d,e&&(a.nq=!e.g("disable_gvi_cors"),
a.Fg=e.o("html5_get_video_info_timeout_ms")||0,a.Zv=e.g("html5_get_video_info_promiseajax")),a.V=!0,a.fv())}}};
g.h.Wr=function(){if(Wx(this.g)){if(this.g.o&&(this.L=new hna,this.O=new iS(this.g,this.W.experiments),this.sa)){var a=jS(this.O);Nn(this.sa.o,a)}this.g.B.g&&g.vV(this);uV(this,"i");this.L&&(Dt(this.g)?(a=(0,g.z)(this.B.BK,this.B),this.L.A=a):this.g.g&&(a=(0,g.z)(this.g.g.CK,this.g.g),this.L.A=a))}SU(this,"dataloaded");this.N.o?YU(this):this.W.experiments.g("html5_suspended_state")&&this.va&&TU(this,Pk(this.A,512))};
g.h.logEvent=function(a,b){if(this.sa){var c=this.sa,d={};d.rt=g.xn(c.g).toFixed(3);g.va(d,Wn(c.g));var e=c.g.g,f=c.g.videoData,k={ns:e.Ja,html5:"1",el:e.g,ps:e.o,fexp:e.experiments.experimentIds.join(",")||void 0,feature:f.Oh||e.Fg||void 0,ctrl:f.Ib||void 0,ytr:f.Oa||void 0,list:f.playlistId,d:e.hd,f:e.ac};if(e.experiments.g("legacy_autoplay_flag")?e.ca:f.Z)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);g.va(d,k);delete d.fexp;g.va(d,a);d=g.Fh(c.g.g.baseYtUrl+"player_204",d);ao(c,d,b)}};
g.h.isPeggedToLive=function(){return this.wa};
g.h.BJ=function(){return this.A};
g.h.ip=function(){var a=this.getVideoData(),b=a.D;if(!b)return a.uc;var c=g.Xa(this.g.B?this.g.B.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.uc};
g.h.EJ=function(){this.W.experiments.o("html5_background_quality_cap")&&this.B&&uV(this,"v");if(this.W.isMobile&&!this.g.backgroundable&&this.W.experiments.g("uniplayer_dbp")&&this.o)if(3==oj(this.W)&&this.o.o)this.sa&&this.sa.Kc("bgmobile","suspend"),gV(this,!0);else{var a=oV(this),b=this.o.o;b&&null!=a&&a.g==b.g||(this.sa&&this.sa.Kc("bgmobile","resume"),FV(this,a))}};
g.h.JF=function(a){this.Rb?this.Ib=!0:g.RT(this.B,a)};
g.h.tF=function(a){if(this.D){var b=this.D;if(av(b.g)){for(var c=new window.Uint8Array(0),d=new window.DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var f=d.getUint32(e);if(1>f)break;var k=d.getUint32(e+4);if(1836019574==k)e+=8;else{if(1886614376==k){var k=a.subarray(e,e+f),l=new window.Uint8Array(c.length+k.length);l.set(c);l.set(k,c.length);c=l}e+=f}}a=c;0!=a.length&&CU(b,new yU(a),!1)}}};
g.h.CF=function(a){eV(this,a.reason,a.video.info,a.audio.info);var b=ey(this.g);b&&b.H(a.video);this.L&&(this.L.o=a.audio.index)};
g.h.BF=function(a){dV(this,a.reason,a.audio.info)};
g.h.cj=function(a){if("html5.invalidstate"==a.errorCode&&this.o){var b=this.o.vb();a.details.merr=b?b.toString():"0";this.W.experiments.g("html5_restart_on_invalid_state")&&!this.Oa&&(a.errorCode="qoe.restart",a.details.e="invalidState",this.po())}b=this.W.experiments.g("pathprobe_before_error");Wna(a)?g.T(this.A,4)?(this.Nb=!0,RU(this)):lV(this):wV(a)&&this.g.B.o?(this.sa.Kc("highrepfallback","1",!0),gga(this.g),rV(this),pV(this)):a.g?(b=this.B?this.B.F.g:null,b=wV(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":
void 0,g.VU(this,a.errorCode,b,ui(a.details))):this.sa&&(this.sa.onError(a.errorCode,ui(a.details)),b&&"manifest.net.connect"==a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.g.clientPlaybackNonce+"&t="+(0,g.Ok)(),(new oT(a,"manifest",(0,g.z)(function(a){this.sa.Kc("pathprobe",a)},this),(0,g.z)(function(a){this.onError(a.errorCode,ui(a.details))},this.sa))).send()))};
g.h.Wc=function(a,b,c){if(!this.o||!this.N.g||!this.o.ad()&&this.W.experiments.g("new_ended_replay"))this.g.startSeconds=a||0;else{if(this.O&&a&&!(0,window.isFinite)(a)&&this.B){if(this.W.experiments.g("html5_use_adaptive_live_readahead")){var d;d=this.O;if(d.o.length){var e=d.g;1<Math.min.apply(null,d.o)?(d.g=Math.max(d.g-1,1),d.ka("Exceeded minimum buffer health")):(d.g=Math.min(d.g+1,8),d.ka("Fell below minimum buffer health"));var f=e!=d.g;f&&(d.ka("Changed readahead. Old: "+e+" New: "+d.g),d.o=
[],d.A=0);d=f}else d=!1;d&&this.sa&&(d=jS(this.O),Nn(this.sa.o,d))}this.B.ra=Math.max(0,this.O.g-1)}var k;if(a&&!(0,window.isFinite)(a)&&this.g.O&&Dt(this.g)&&this.B){k=this.B;ST(k);d=Math.max(nT(k.g),nT(k.A));$S(k.g,d);$S(k.A,d);var e=k.C,l;for(l in e.g)gt(e.g[l].index,window.Infinity);cU(k);k=d+.1}k||(k=g.te(a||0,fy(this.g),zV(this,!1)));a=this.g.o&&!g.T(this.A,4)&&nV(this,k);$U(this,a);this.P=this.g.startSeconds=k;kk(this.Na,k);b?this.mw():(g.T(this.A,32)||(TU(this,Pk(this.A,32)),g.T(this.A,8)&&
aV(this,!0),this.$("beginseeking",this)),c&&(this.la||(this.la=new g.Id(this.mw,c,this)),this.la.start()),DV(this,!0));this.V&&k>this.g.wa&&(this.C.D(this.V),this.V=null);k<zV(this,!1)&&TU(this,Qk(this.A,2));this.$("seekto",this,k)}};
g.h.mw=function(){if(!(0,window.isNaN)(this.P)&&this.o){var a=this.getDuration(),b=this.W.experiments.g("legacy_html5_seek_end")?Math.floor(a):zV(this,!1);!this.g.o&&this.P>=b?(this.P=a,this.$("endseeking",this),aV(this,!0),NU(this)):(this.B&&this.B.seek(this.P),(!this.g.o||1<=this.o.oe())&&xk(this.o,this.P))}this.la&&(this.la.dispose(),this.la=null);g.T(this.A,32)&&(TU(this,Pk(Qk(this.A,32),16)),this.$("endseeking",this))};
g.h.getCurrentTime=function(){if(!(0,window.isNaN)(this.P))return this.P;var a=0;this.o&&1<=this.o.oe()?a=this.o.getCurrentTime():this.g&&(a=this.W.experiments.g("new_ended_replay")?this.g.startSeconds||0:this.g.re||this.g.startSeconds||0);this.W.experiments.g("new_ended_replay")&&(a=g.te(a,fy(this.g),zV(this,!1)));return a};
g.h.getDuration=function(){return this.g.lengthSeconds?this.g.lengthSeconds:zV(this,!1)?zV(this,!1):0};
g.h.yB=function(){var a=new wfa;if(this.B){var b=this.W.D;a.B=b.J;a.F=b.L;a.o=g.Aw(b);a.g="d."+xw(b).toFixed(2)+";st."+(1E9*zw(b)).toFixed(2)+";bw."+b.B.o().toFixed(0)+";abw."+b.F.o().toFixed(0)+";v50."+uw(b.A,.5).toFixed(2)+";v92."+uw(b.A,.92).toFixed(2)+";v96."+uw(b.A,.96).toFixed(2)+";v98."+uw(b.A,.98).toFixed(2);b.o&&(a.g+=";ltbw."+b.o.o().toFixed(0));b=this.B;b.o&&!ut(b.o)&&(a.A=YS(b.g)?b.g.B.C:rk(b.o.o.buffered,b.D),a.C=YS(b.A)?b.A.B.C:rk(b.o.g.buffered,b.D));a.o=mS(b.J);b.ka("rb="+g.Aw(b.G).toFixed(0)+
", hd="+xw(b.G).toFixed(2)+", st="+(1E9*zw(b.G)).toFixed(2))}else this.o&&(a.A=Bk(this.o));this.L&&ina(this.L,a);return a};
g.h.yH=function(){if(this.D){var a=this.D,b=this.g.oauthToken;a.J=b;a.$("oauthtoken",b)}hV(this);SU(this)};
g.h.xH=function(a){g.VU(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
g.h.DJ=function(a){var b=a.target.ad();if(this.o&&this.o.ad()&&this.o.ad()==b){var c=!1;switch(a.type){case "error":if(this.W.wi&&2==this.o.vb()){(0,window.setTimeout)((0,g.z)(function(){this.o&&(this.g.ba&&this.o.load(),pV(this))},this),500);
if(this.sa)this.sa.onError("progressive.net");return}if(this.W.experiments.g("html5_retry_media_element_errors")&&(4==this.o.vb()||3==this.o.vb()||this.W.experiments.g("html5_progressive_fallback")&&2==this.o.vb())&&!this.Oa){this.Oa=!0;this.sa&&(c={e:3==this.o.vb()?"decode":2==this.o.vb()?"network":"unplayable"},this.G&&(c.msopened=""+ +!!this.G.g),this.sa.onError("qoe.restart",ui(c)));if(this.W.experiments.g("tvhtml5_close_on_unrecoverable")&&Nh("philips"))try{window.close()}catch(e){}this.po();
return}break;case "durationchange":var d=this.o.getDuration();(!this.G||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.g.lengthSeconds!=d&&(this.g.lengthSeconds=d,SU(this));break;case "ratechange":this.B&&(this.B.J.A=Math.max(1,this.o.Ap()));hp(this.C);break;case "loadedmetadata":this.g.startSeconds&&(0<this.o.gk().length?this.W.experiments.g("new_ended_replay")?this.Wc(this.g.startSeconds,!0):this.o.Ml(this.g.startSeconds):(this.pa=this.g.startSeconds,aV(this,!0)));case "loadstart":g.dh(this.Xa);this.Cm()||
(this.Xa=g.bh((0,g.z)(this.Cm,this),100));break;case "progress":Yna(this);case "suspend":DV(this);this.$("onLoadProgress",this,Xna(this));g.T(this.A,8)&&(this.uc?c=!0:this.Fc&&((0,window.isNaN)(this.Db)||this.Db+1<this.o.getCurrentTime())&&(c=!0,this.Db=this.o.getCurrentTime()));break;case "seeked":EV(this);break;case "seeking":d=this.W.experiments.g("disable_html5_videoplayer_seeking_time")?this.o.getCurrentTime():this.getCurrentTime();this.B&&this.B.seek(d);kk(this.Na,d);break;case "playing":this.F.o("plev");
g.cw("plev",void 0,"video_to_ad");this.Lb&&(this.Lb=!1,nV(this)||this.Wc(window.Infinity,!0));g.ch(this.ab);this.ab=window.NaN;break;case "timeupdate":if(this.o&&!this.o.getCurrentTime()&&!this.Ua)return;this.Ua=!!this.o.getCurrentTime();this.Cm();EV(this);DV(this);if(!this.o||this.o.ad()!=b)return;this.$("onVideoProgress",this,this.o.getCurrentTime());this.L&&this.wa&&jna(this.L,this.o.getCurrentTime());break;case "waiting":if(0<this.o.fk().length&&0==this.o.ef().length&&0<this.o.getCurrentTime()&&
5>this.o.getCurrentTime()&&this.B)return}this.o&&this.o.ad()==b&&(this.$("videoelementevent",a),a=bca(this.A,a,this.Na,this.hd,this.W.experiments.g("html5_timeupdate_readystate_check")),TU(this,a),c&&this.o.play())}};
g.h.dE=function(a){a="available"==a.g.availability;a!=this.sb&&(this.sb=a,this.$("airplayavailabilitychange"))};
g.h.eE=function(){var a=this.o.Mx();a!=this.qb&&(function(){this.W.xk=a}.apply(this),this.qb=a)&&(g.cy(this.g,this.W),uV(this,"m"));
this.$("airplayactivechange")};
g.h.Cm=function(){var a=this.o;a&&this.Ua&&!this.g.O&&!fw("vfp",this.F.g)&&2<=a.oe()&&!a.Cg()&&0<qk(a.ef())&&this.F.o("vfp");if((a=this.o)&&!this.g.O&&0<a.getDuration()&&(!fw("pbp",this.F.g)&&a.Fh()&&2<=a.oe()&&0<qk(a.ef())&&this.F.o("pbp"),0<a.getCurrentTime())){g.dh(this.Xa);g.ch(this.ba);this.ba=window.NaN;this.g.O=!0;BV(this);if(this.sa){a=this.sa;if(!a.B){var b=Yn(a,"playback");a.H=[10+a.g.videoData.te,10,10,40+a.g.videoData.Di-a.g.videoData.te,40];var c=a.A;g.dh(c.D);c.D=window.NaN;c.D=g.bh((0,g.z)(c.update,
c),100);c.C=g.xn(c.o);c.A=wn(c.o);b.o=Vn(a,!0);b.ib=!0;b.send();a.g.videoData.ab&&(b=a.g.g,c=a.g.videoData,b=g.ag(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.ab,oid:c.gq,ptchn:c.fq,pltype:c.hq,content_v:b.Na}),ao(a,b));a.g.videoData.enableCardio&&(a.Yk("playback"),a.C||go(a));a.g.videoData.pa||co(a);a.B=!0;a=a.A;a.g=a.o.o();a.C=g.xn(a.o);!(0==a.B&&5>a.g)&&2<a.g-a.B&&(a.B=a.g)}g.ah((0,g.z)(this.to,this),4500)}this.$("playbackstarted");
lr()&&rr(0);return!0}return!1};
g.h.WE=function(){this.ib&&(this.na.Ca(this.ib),delete this.ib,Ak(this.o))};
g.h.ZB=function(){if(this.o){var a=this.getCurrentTime();if(g.T(this.A,8)&&lk(this.Na,a,(0,g.Ok)(),Bk(this.o))){var b=this.getDuration();!this.g.o&&b&&1>Math.abs(b-a)?this.o.Kx()?this.Wc(0,!0):NU(this):TU(this,Pk(this.A,1))}else g.T(this.A,4)&&g.Tk(this.A)&&5<Bk(this.o)&&TU(this,Qk(this.A,1));DV(this)}};
g.h.vB=function(){return this.B?mS(this.B.J):g.Aw(this.W.D)};
g.h.ds=function(){return this.o?Bk(this.o):0};
g.h.xB=function(){return this.W.D.J};
g.h.lI=function(){var a;if(a=g.T(this.A,1)&&this.B){a=this.B;var b=this.getCurrentTime();a=!(!a.o||ut(a.o)||vt(a.o)||mU(b,a.g,a.o.o)&&mU(b,a.A,a.o.g))}a&&(this.sa&&this.sa.Kc("reseek","1"),this.W.experiments.g("html5_reseek_on_infinite_buffer")&&this.Wc(this.getCurrentTime(),!0))};
g.h.KB=function(){this.g.o||this.$("connectionissue")};
g.h.rI=function(){xk(this.o,this.o.getCurrentTime()+.1)};
g.h.ZF=function(a){var b={};g.va(b,this.W.A);b.cpn=this.g.clientPlaybackNonce;this.g.L&&(b.vvt=this.g.L,this.g.mdxEnvironment&&(b.mdx_environment=this.g.mdxEnvironment));this.W.hc&&(b.authuser=this.W.hc);this.W.pageId&&(b.pageid=this.W.pageId);g.Zb(a.C,b);uU(a,a.F)};
g.h.vF=function(a,b,c,d){d=g.p(d)?d:"YTP_ERROR_LICENSE";c=c.substr(0,256);"drm.keyerror"==a&&0<this.D.A.keys.length&&96>this.g.da&&!this.W.experiments.g("html5_disable_drm_reload")&&(a="drm.sessionlimitexhausted",b=!1);if(b)g.VU(this,a,d,c);else if(this.sa)this.sa.onError(a,c);"drm.sessionlimitexhausted"!=a||this.ga||(this.ga=!0,this.$("drmsessionlimitexhuased"))};
g.h.wF=function(){uV(this,"r");SU(this)};
g.h.CJ=function(a){this.$("heartbeatparams",a)};
g.h.ku=function(){if(!this.g.O&&this.o){var a="0";0<this.o.oe()&&5<=Bk(this.o)&&this.g.B.g&&(TU(this,Pk(this.A,1)),this.$("playbackstalledatstart"),a="1");this.sa&&(a={preroll:""+ +Bl(this),restartmsg:a},this.B&&g.va(a,lU(this.B)),this.o&&g.va(a,Gk(this.o)),this.sa.onError("qoe.start15s",ui(a)));this.$("loadsofttimeout")}};
g.h.to=function(){if(!this.Ja){var a=new DU(this.g),b;"c1a"in a.A?(b=u("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)g.ah((0,g.z)(this.to,this),4500);else{var c;if(a.g&&a.g.Nb){b=[a.g.Nb];for(c in a.o)if(a.A[c]&&a.o[c]){var d=a.o[c](a.A);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.sa&&(a=this.sa,a.L||(b=Yn(a,"atr"),b.V=c,b.send(),a.L=!0),this.Ja=!0)}}};
g.h.ow=function(){return this.H};
g.h.cn=function(){return this.o?this.o.Lx():{}};
g.h.po=function(){this.o&&(this.G?rV(this):this.W.experiments.g("html5_progressive_fallback")?(this.g.ba&&this.g.ba.A(),Dk(this.o)):this.o.load(),pV(this))};var HV=[2,5];var fY=[];KV.prototype.g=function(a,b,c){a=a||fY;ph(a,function(a){return QV(this.o).experiments.g(a)},this)&&(a=c||{},a.cdp=1,a["var"]=b,a.sdkv="h.3.0",this.o.log(a))};var TV=Error("Timed out while waiting for Biscotti ID");UV.prototype.C=function(){var a=VV(this);a.format="2_3";a.at="2_3";a.trsp="1";IX(this.g,3,a)};g.C(WV,g.L);WV.prototype.R=function(){this.g.reject();WV.M.R.call(this)};
WV.prototype.D=function(){this.A++;var a=u("yt.www.watch.ads.isAfcAdVisible");a&&ra(a)&&a()&&this.B++;4<=this.B?this.g.resolve():5<=this.A?this.g.reject("Timed out waiting for MPU to become visible"):this.o.start()};var fW,YV=!1,aW=!1,XV=!1;ci("showCompanionAdLoaded",function(){aW&&(bW(),aW=!1)});
ci("watchAdsInit",function(){YV&&(YV=!1,ZV())});var hoa={gN:0,eN:1,cN:2,VO:3,fN:4,$O:5,ZO:6,XO:7,WO:8,TO:9,UO:10,YO:11,SO:12,hN:13,iN:14,dN:15,jN:16,kN:17},ioa={zN:0,xN:1,wN:2,yN:3,vN:4,pN:5,sN:6,tN:7,rN:8,oN:9,DN:10,nN:11,qN:12,mN:13,BN:14,lN:15,CN:16,AN:17},joa={mQ:0,nQ:1,pQ:2,oQ:3,kQ:4,lQ:5,aP:6};lW.prototype.update=function(a,b,c,d){this.width=b;this.A=c;this.C=d;this.g=b-c-d;this.B=g.te(a-c,0,this.g);this.position=this.B+c;this.o=this.B/this.g};g.C(nW,g.en);nW.prototype.ne=function(){return this.adSystem+"_"+this.adType};
nW.prototype.mg=function(){return this.ne()};
nW.prototype.xb=function(){return this.o?this.o.xb():null};
nW.prototype.abort=g.v;g.C(pW,g.W);pW.prototype.R=function(){pW.M.R.call(this);g.We(qW(this));g.We(rW(this));this.B=this.o=null;delete this.A};g.C(xW,g.L);xW.prototype.start=function(){!this.isDisposed()&&(0,window.isNaN)(this.g)&&(this.A=(0,g.G)(),this.g=Gd(this.C,this.B-this.o,this))};
xW.prototype.stop=function(){(0,window.isNaN)(this.g)||(this.A=this.o=0,Hd(this.g),this.g=window.NaN)};
xW.prototype.pause=function(){(0,window.isNaN)(this.g)||(this.o=(0,g.G)()-this.A,Hd(this.g),this.g=window.NaN)};
xW.prototype.R=function(){(0,window.isNaN)(this.g)||Hd(this.g);xW.M.R.call(this)};g.C(zW,nW);zW.g=15;g.h=zW.prototype;g.h.abort=function(){wW(this.C,13);this.N||this.o.destroy();this.D=this.G=!1;EW(this)};
g.h.ne=function(){var a;a=this.xb();var b=LI(a);if(4==oW(b).A)return b;if(YJ(a))a=3;else if(a.isSkippable())a=ZJ(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
g.h.mg=function(){return this.adSystem+"_"+this.adType};
g.h.show=function(){var a=this.g;if(g.KY(a)){var b=yW(a);NY(a.app,b)}else a=a.g.app,NY(a,LY(a,2));this.C.A=(0,g.Ok)();this.F=this.g.getRootNode();this.B.subscribe("progresssync",this.St,this);this.g.o.O&&g.Ye(Ie("video-ad-status-bar",this.F));Nd(this.F,["ad-showing","ad-interrupting"]);this.g.subscribe("resize",this.vp,this);try{this.A.S(this.o,"adError",this.uL),this.A.S(this.o,"click",this.tL),this.A.S(this.o,"complete",this.wL),this.A.S(this.o,"engagedview",this.eF),this.A.S(this.o,"pause",this.gx),
this.A.S(this.o,"start",this.hx),this.A.S(this.o,"skip",this.yL),this.A.S(this.o,"MUTE_AD",this.abort),this.A.S(this.o,"skippableStateChanged",this.$G),this.A.S(this.o,"youTubeChannelMetadata",this.PF),this.A.S(this.o,"companionInitialized",this.vL),this.A.S(qW(this.g.G),"mouseup",this.xL),this.vp(),this.N||this.o.start()}catch(c){FW(this,c)}a=QV(this.g);this.g.o.B&&a.experiments.g("ad_info_icon_in_card")&&GY(this.g,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
g.h.jx=function(a,b,c){if("newdata"==a&&this.videoData!=c){a=new koa;a.isSkippable=this.V;a.skip=(0,g.z)(this.o.skip,this.o);a.muteAd=(0,g.z)(this.o.muteAd,this.o);a.whyThisAdClicked=(0,g.z)(this.o.whyThisAdClicked,this.o);a.whyThisAdClosed=(0,g.z)(this.o.whyThisAdClosed,this.o);a.sendAdsPing=g.oi;a.skipShown=(0,g.z)(this.o.ov,this.o);if(b=this.xb()){a.clickThroughUrl=AK(b)||"";var d;(d=this.g.o.Aa)||(d=c.lengthSeconds,(b=PK(b))?(QH(b,d),d=RH(b)):d=null);a.skipTime=d||0;a.adSystem=this.adSystem;if(b=
GW(this))a.whyThisAdInfo=b;if(d=HW(this))a.muteAdInfo=d;var e=QV(this.g);this.g.o.B&&e.experiments.g("ad_info_icon_in_card")&&(e={showAdInfoIcon:!0},e.whyThisAdInfo=b,e.muteAdInfo=d,GY(this.g,"onAdMetadataAvailable",e))}a.videoId=c.videoId;a.videoId||(a.videoUrl=this.mj()||"");c.spacecastModule=this.Z;CW(this.g,-1,a)}this.videoData=c};
g.h.ix=function(a){a=a.state;g.T(a,1)||this.H.pause();g.T(a,128)?FW(this,Error(a.g.message||"Video player error.")):g.T(a,1)&&this.H.start()};
g.h.hx=function(){this.L=!0;this.D=!1;if(!this.G){this.G=!0;var a=this.C;uW(a);var b=vW(a);if((0,window.isNaN)(a.A))uW(a);else{var c=(0,g.Ok)()-a.A;b.ad_stl=c}tW(a,4,b);DW(this.g,1);BW(this,!1);this.J&&1!=this.J&&g.dw("yt_abt",this.J,"video_to_ad");this.videoData&&this.videoData.clientPlaybackNonce&&g.dw("ad_cpn",this.videoData.clientPlaybackNonce,"video_to_ad");this.videoData&&this.videoData.videoId&&g.dw("ad_docid",this.videoData.videoId,"video_to_ad");g.dw("cpn",RV(this.g).clientPlaybackNonce,
"video_to_ad");g.cw("apbs",void 0,"video_to_ad");(a=g.Q("ADS_INSTREAM_FIRST_PLAY"))&&GY(this.g,"onAdAnnounce",a)}CW(this.g,1);this.$("adPlay",this)};
g.h.gx=function(){this.L&&(this.L=!1,CW(this.g,2))};
g.h.wL=function(){if(!this.D){var a=this.C;uW(a);var b=vW(a),c=a.g.gi();c?b.ad_fmt=c:uW(a);tW(a,5,b);QV(this.g).kb&&GY(this.g,"onAdComplete");EW(this);this.D=this.G=!1}};
g.h.eF=function(){var a=this.C;a.g.$("AD_LOGGING_EVENT",777,vW(a))};
g.h.yL=function(){this.D=!0;var a=this.C,b=vW(a),c=a.g.gi();c?b.ad_fmt=c:uW(a);tW(a,14,b);QV(this.g).kb&&GY(this.g,"onAdSkip");EW(this)};
g.h.$G=function(){QV(this.g).experiments.g("html5_ad_no_buffer_abort_after_skippable")&&this.H.dispose();var a=g.Q("ADS_INSTREAM_SKIPPABLE");a&&GY(this.g,"onAdAnnounce",a)};
g.h.PF=function(){if(!this.isDisposed()){var a=this.g.o;if(a){var b=this.xb();if(b){var c=b.N,b=b.da,d=QV(this.g),e=GW(this),f=HW(this);b&&c&&c.isListed?(a={},a.videoTitle=c.title,a.channelThumbnailUrl=b.channelIconThumbnailUrl,a.channelTitle=b.authorName,a.channelVideoCount=b.videoCount,a.showAdInfoIcon=this.g.o.B&&d.experiments.g("ad_info_icon_in_card"),a.whyThisAdInfo=e,a.muteAdInfo=f,GY(this.g,"onAdMetadataAvailable",a)):a.B&&d.experiments.g("ad_info_icon_in_card")&&(a={showAdInfoIcon:!0},a.whyThisAdInfo=
e,a.muteAdInfo=f,GY(this.g,"onAdMetadataAvailable",a))}}}};
g.h.vL=function(a){a=a.event;var b=a.g;b&&b instanceof N&&this.$("adCompanionInitialized",a.Hb(),b)};
g.h.uL=function(a){var b={};try{b.error_code=a.event.getError().vb()}catch(c){b.error_code=900,b.error_message=c.toString()}wW(this.C,32,b);FW(this,a.event.getError())};
g.h.tL=function(){var a=this.C;uW(a);var b=vW(a);if(a.o){var c=EY(a.B);b.ck_xy=Math.round(a.o.x-c.left)+"x"+Math.round(a.o.y-c.top);b.ck_wh=c.width+"x"+c.height}tW(a,15,b);this.o.pause();this.$("select")};
g.h.St=function(){};
g.h.Nt=function(){this.o.ee();if(QV(this.g).experiments.g("send_html5_api_stats_ads_abandon")&&this.G&&!this.D){var a=this.C;a.g.$("AD_LOGGING_EVENT",19,vW(a))}BW(this,!0)};
g.h.R=function(){this.g.Ka("control_toggle_play_pause",this.kx,this);this.g.Ka("control_play",this.lo,this);this.g.Ka("control_pause",this.ko,this);this.g.Ka("resize",this.vp,this);Po(this.A);this.B.Ka("statechange",this.ix,this);this.B.Ka("internalAbandon",this.Nt,this);this.B.Ka("internalvideodatachange",this.jx,this);this.B.Ka("progresssync",this.St,this);this.N||this.o.destroy();this.O&&(g.We(this.O),this.O=null);this.P&&(g.Ye(this.P),this.P=null);this.F&&(Qd(this.F,["ad-showing","ad-interrupting"]),
this.F=null);this.D=!1;OY(this.g);this.H.dispose();this.H=null;zW.M.R.call(this)};
g.h.Yj=function(){return this.B.getDuration()};
g.h.gi=function(){return this.videoData&&this.videoData.A?this.videoData.A.mimeType:null};
g.h.mj=function(){return this.videoData&&this.videoData.ba?this.videoData.ba.o().g:null};
g.h.kx=function(){this.L?this.ko():this.lo()};
g.h.lo=function(){this.o.resume();this.hx()};
g.h.ko=function(){this.o.pause();this.gx()};
g.h.vp=function(){g.hj(qW(this.g.G),this.g.app.B.Sa())};
g.h.xL=function(a){g.p(a.g)||Mj(a);var b=a.g;g.p(a.o)||Mj(a);this.C.o=new xe(b,a.o)};g.C(KW,nW);g.h=KW.prototype;g.h.Yj=function(){};
g.h.gi=function(){};
g.h.mj=function(){};
g.h.show=function(){if(!this.D||!XY(this.g)){var a=this.g.getRootNode();g.O(a,"ad-showing");this.A=qW(this.g.G);a=this.o.xb().getHeight();this.A.style.height=Xi(a,!0);g.O(this.A,"ad-overlay");this.B.S(this.A,"mouseup",this.BL);try{this.B.S(this.o,"autoClose",this.rE),this.B.S(this.o,"userClose",this.tH),this.B.S(this.o,"userRecall",this.uH),this.B.S(this.o,"click",this.AL),this.B.S(this.o,"impression",this.sF),this.B.S(this.o,"adError",this.zL),this.Xb("normal"),this.F||this.o.start(),this.wp(),this.g.subscribe("resize",
this.Kl,this),this.g.subscribe("presentingplayerstatechange",this.lx,this),this.$("adEnd",this)}catch(b){this.$("adError",b)}}};
g.h.R=function(){Po(this.B);this.g.Ka("resize",this.Kl,this);this.g.Ka("presentingplayerstatechange",this.lx,this);var a=this.g.getRootNode();g.Pd(a,"ad-showing");this.o&&(this.F||this.o.destroy(),this.o=null);this.A&&g.Pd(this.A,"ad-overlay");this.A=null;this.D=!1;KW.M.R.call(this)};
g.h.tH=function(){this.A&&this.o&&this.o.xb()&&(this.A.style.height=Xi(0,!0));this.D=!0;var a=this.C;a.o=(0,g.G)();var b=JW(a);IW(a,6,b);this.g.$("overlay_ad_close")};
g.h.rE=function(){this.g.$("overlay_ad_close")};
g.h.uH=function(){this.g.$("overlay_ad_open")};
g.h.AL=function(){eY(this.g);var a=this.C;a.o=(0,g.G)();var b=JW(a);if(a.A){var c=EY(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}IW(a,100,b)};
g.h.sF=function(){var a=g.Q("ADS_OVERLAY_IMPRESSION");a&&GY(this.g,"onAdAnnounce",a);this.g.$("overlay_ad_open")};
g.h.BL=function(a){this.C.A=a.target==a.currentTarget?null:new xe(a.pageX,a.pageY)};
g.h.zL=function(a){this.$("adError",a.event.getError())};
g.h.lx=function(a){g.T(a.state,16)&&this.Xb("normal")};
g.h.Xb=function(a){this.G!=a&&(this.G=a)};
g.h.Kl=function(){};
g.h.wp=function(){var a=this.C;a.B=(0,g.G)();var b=JW(a);IW(a,3,b)};g.C(LW,g.L);LW.o="rm";LW.g=10;LW.C=200;LW.A=200;LW.B=190;g.h=LW.prototype;
g.h.load=function(){var a;a=this.g.app.B.Sa();var b;this.g.o.o?b=!1:(b=0<(this.C&3)?190:200,b=200>a.width||a.height<b);if(b){b=this.A;var c=VV(b);c.ck_wh=a.width+"x"+a.height;FY(b.g,14,c);gW();this.Ef(Error("The player size is too small."))}else if(this.Wa=this.g.Wa)a=this.A,IX(a.g,9,VV(a)),a=SV(this.g),(b=this.g.o.serverPrefetchedVast)&&0<(this.C&3)?(a.o=b,this.g.o.serverPrefetchedVast=void 0):a.g=this.xf(),this.Wa.S("adsManagerLoaded",this.fx,!1,this),this.Wa.S("adError",this.bx,!1,this),this.Wu(this.Wa,
a)};
g.h.Sm=function(){var a=PV(this.g.o,QV(this.g),RV(this.g));a.surveyCreativeData=this.g.o.surveyCreativeData;a.iJ=this.F;return a};
g.h.fx=function(a){if(a.A===this){g.cw("aml");g.cw("aml",void 0,"video_to_ad");try{var b=this.Sm(),c=a.g}catch(d){this.Hf(d);return}this.B.S(c,"companionBackfill",(0,g.z)(this.rL,this,c));this.B.S(c,"loaded",(0,g.z)(this.qL,this,c));this.B.S(c,"adError",(0,g.z)(this.pL,this,c));this.B.S(c,"allAdsCompleted",g.v);this.B.S(c,"contentPauseRequested",g.v);this.B.S(c,"contentResumeRequested",g.v);c=gL(a,this.g.H,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Hf(d)}}};
g.h.qL=function(a,b){No(this.B);var c=b.Hb(),d=c.zb(),e=this.A,f=VV(e);f.ad_man=d?"instream":"overlay";IX(e.g,12,f);e=a.zf();switch(d?this.mk(a,c,e):this.qg(a,c)){case 0:HX(this.G,this.J,this.o);break;case 1:a.destroy();this.Ef(Error("Unable to create a display state."));break;case 2:c=this.A;FY(c.g,21,VV(c));a.destroy();this.Ef(Error("Fallback to next ad."));break;case 3:this.Ef(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
g.h.pL=function(a,b){No(this.B);a.destroy();this.Hf(b.getError())};
g.h.bx=function(a){var b=a.getError();"adLoadError"==b.Pb()&&a.g===this&&this.Hf(b)};
g.h.rL=function(){OW(this)};
g.h.mk=function(a,b,c){var d=RV(this.g)&&RV(this.g).spacecastModule;if(d&&c&&!this.L.test(c))return 3;NW(this,jK(b));MW(this,new zW(this.F,this.g,a,b.isSkippable(),void 0,d,this.o.g));return 0};
g.h.qg=function(a,b){NW(this,jK(b));MW(this,new KW(this.F,this.g,a));return 0};
g.h.Hf=function(a){if(a){var b=this.A,c=VV(b);a&&MV(a,c);FY(b.g,32,c);this.Ef(a)}};
g.h.Ef=function(){LX(this.G)};
g.h.R=function(){this.Wa&&(this.Wa.Ca("adsManagerLoaded",this.fx,!1,this),this.Wa.Ca("adError",this.bx,!1,this));No(this.O);No(this.B);LW.M.R.call(this)};
g.h.Wu=function(a,b){try{bS(a,b,this),g.cw("ar"),g.cw("ar",void 0,"video_to_ad")}catch(c){this.Hf(c)}};g.C(PW,nW);g.h=PW.prototype;g.h.Yj=function(){};
g.h.gi=function(){};
g.h.mj=function(){};
g.h.show=function(){XV?this.Hs():(ZV(),cW(),dW().then((0,g.z)(this.sL,this),(0,g.z)(this.Hs,this)))};
g.h.sL=function(){var a={};a.at=this.mg();a.format=this.ne();this.$("AD_LOGGING_EVENT",3,a);this.$("adEnd",this)};
g.h.Hs=function(){var a={};a.at=this.mg();this.$("AD_LOGGING_EVENT",2,a);this.$("adEnd",this)};g.C(QW,LW);QW.prototype.Sm=function(){var a=QW.M.Sm.call(this);a.Yq=0==this.H;a.GA=XY(this.g)?a.Yq:!0;return a};
QW.prototype.xf=function(){var a=JV(this.o);var b=this.D;(b=4==this.C&&b.g.afvInvideoAdTag?b.g.afvInvideoAdTag:b.g.afvAdTag)?(g.za(b,"http:")&&(b=b.substr(5)),a=g.Fh(b,{videoad_start_delay:0==a||-1==a?a:1E3*a})):a="";return a};
QW.prototype.qg=function(a,b){if(this.g.o.o)return 1;if(1==this.o.g){var c=new IV(2,10);this.o=c;this.A.A=c;IX(this.g,1)}return QW.M.qg.call(this,a,b)};
QW.prototype.Ef=function(a){var b=this.g.o;b.o||QV(this.g).experiments.g("request_mpu_on_unfilled_ad_break")?QW.M.Ef.call(this,a):b.pa||this.C&4?(MW(this,new PW(this.g)),HX(this.G,this.J,this.o)):QW.M.Ef.call(this,a)};RW.prototype.A=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x361"));b&12&&d.push("480x70");var e=[],f,k;b&12&&(e.push("300x250"),f="watch-channel-brand-div",k=1);0<(b&3)&&(e.push("300x60"),f="watch-longform-ad",k=1);var l=k;k=Xb(this.G);c&&(k.pos=c);l&&null==k.tile&&(k.tile=l.toString());f&&null==k.kmyd&&(k.kmyd=f);e&&0<e.length&&this.B&&null==k.ciu_szs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";
if(this.isLiveStream||null==k.ord){if(!this.g||this.isLiveStream)this.g=Math.floor(999999999*Math.random()).toString();k.ord=this.g}d&&d.length&&null!=k.sz&&"WIDTHxHEIGHT"==k.sz&&Ub(k,"sz");e=Ah(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.o,"pfadx",this.C,";",e,"?"].join("")};SW.prototype.A=function(a,b){if(0<(b&3)){var c=this.g?"mid,"+this.B:"mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new gg(this.o),f=e.g,k=f.get("scp",""),k=k?k+"&":"";this.g?(k=k.replace(RegExp("&?pos=[^&]*","g"),""),f.set("scp",k+("pos="+c))):-1==k.indexOf("pos")&&f.set("scp",k+("pos="+c));f.set("vpos",d);return e.toString()}return this.o};g.C(TW,KW);TW.prototype.Kl=function(){};
TW.prototype.ne=function(){return"1_3"};
TW.prototype.wp=function(){1==this.H?this.$("AD_LOGGING_EVENT",2,{}):TW.M.wp.call(this)};g.C(UW,LW);UW.prototype.xf=function(){return this.D.A(JV(this.o),this.C)};
UW.prototype.qg=function(a,b){NW(this,jK(b));var c=VJ(b);if(OV(c,"rm"))return 1==this.C||XY(this.g)||gW(),a.sh(),this.g.o.J?(MW(this,new PW(this.g)),0):2;if(OV(c,"blockAllAds"))return a.sh(),MW(this,new TW(this.g,a,1)),0;if(OV(c,"hideMaster"))return MW(this,new TW(this.g,a,0)),0;if(this.g.o.o)return 1;MW(this,new KW(this.F,this.g,a));return 0};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
VW.prototype.cancel=function(a){if(this.g)this.A instanceof VW&&this.A.cancel();else{if(this.o){var b=this.o;delete this.o;a?b.cancel(a):(b.G--,0>=b.G&&b.cancel())}this.O?this.O.call(this.L,this):this.H=!0;this.g||(a=new eX,ZW(this),XW(this,!1,a))}};
VW.prototype.J=function(a,b){this.F=!1;XW(this,a,b)};
VW.prototype.Uh=function(a){ZW(this);XW(this,!0,a)};
VW.prototype.then=function(a,b,c){var d,e,f=new g.ld(function(a,b){d=a;e=b});
$W(this,d,function(a){a instanceof eX?f.cancel():e(a)});
return f.then(a,b,c)};
id(VW);VW.prototype.isError=function(a){return a instanceof Error};
g.C(YW,ya);YW.prototype.message="Deferred has already fired";YW.prototype.name="AlreadyCalledError";g.C(eX,ya);eX.prototype.message="Deferred was canceled";eX.prototype.name="CanceledError";dX.prototype.o=function(){delete cX[this.Da];throw this.g;};
var cX={};g.C(fX,LW);fX.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";fX.A="43";fX.g=function(a){var b=new VW;g.li(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Sc:function(){var c=Error(a+" timed out");ZW(b);XW(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);ZW(b);XW(b,!1,c)},
Cb:function(a){b.Uh(a)}});
return b};
fX.prototype.xf=function(){return""};
fX.prototype.Wu=function(a,b){var c=this.C;c&1||c&4||c&8?this.D?c&8?foa(this.D):("goo.gl"==g.Sf(this.D)?(c=fX.g("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.D),aX(c,function(a){a=g.pf(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new gg(a.longUrl);g.pg(a,"video_format","43");return fX.g(a.toString())},this)):c=fX.g(this.D),aX(c,function(c){b.o=c.responseText;
bS(a,b,this)},this),$W(c,null,this.Hf,this)):this.Hf(Error("Invalid empty URL")):this.Hf(Error("Invalid request type: "+c))};g.C(gX,g.W);gX.prototype.clear=function(){for(var a=0;a<this.o.length;a++)this.o[a].detach(),g.Cb(this.o[a]);this.o=[]};
gX.prototype.G=function(a){g.ck(a);this.A=Math.max(0,this.A-hX(this));iX(this)};
gX.prototype.F=function(a){g.ck(a);this.A=Math.min(this.o.length-1,this.A+hX(this));iX(this)};g.C(lX,g.zy);g.C(mX,g.zy);g.h=mX.prototype;g.h.R=function(){mX.M.R.call(this);this.clear()};
g.h.clear=function(){this.o.clear();this.A.stop()};
g.h.start=function(){this.A.start();this.Io()};
g.h.Io=function(){iX(this.o)};
g.h.UB=function(){this.D.start()};var oX=null;g.C(pX,nW);pX.prototype.Yj=function(){};
pX.prototype.gi=function(){};
pX.prototype.mj=function(){};
pX.prototype.show=function(){var a=RV(this.g).videoId;if(a){var b=this.o.xb();Gw(QV(this.g).O,a,{fg:WK(b)||null,yh:XK(b)||null});a=QV(this.g).experiments;a.g("enable_pla_desktop_shelf")&&("desktop-polymer"!=QV(this.g).o?(a=qX(this),g.J(a)||(soa(this.A,a),a=this.A.element,voa().then(g.B(woa,a)).then(this.A.start,null,this.A))):a.g("enable_pla_shelf_on_kevlar")&&(a=qX(this),g.J(a)||(a={shopText:nX(kI(a[0],"teaser_text")),sponsoredText:nX(g.Q("YTP_SPONSORED")),adInfoText:nX(g.Q("YTP_SPONSORED_PRODUCT_INFO")),
itemList:{horizontalListRenderer:{items:(0,g.S)(a,toa),visibleItemCount:3,webHorizontalListRendererExtensionData:{nextButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"}}},previousButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"}}}}}}},GY(this.g,"onPlaShelfInfoCardsReady",a))));a={};a.format=this.ne();a.at=this.mg();NV(b,a);this.$("AD_LOGGING_EVENT",3,a)}};g.C(rX,LW);rX.prototype.xf=function(){return this.g.o.ab||""};
rX.prototype.qg=function(a,b){NW(this,jK(b));MW(this,new pX(this.g,a));5!=this.o.g&&OW(this);return 0};
rX.prototype.mk=function(){return 1};g.C(sX,rX);sX.prototype.xf=function(){return this.g.o.forceAdUrl||""};g.C(yX,KW);yX.prototype.Kl=function(){};
yX.prototype.ne=function(){return"4_3"};g.C(zX,LW);
zX.prototype.xf=function(){var a;if(D(this.D)||0!=JV(this.o)){var b=this.N;if(b.g.ga&&b.g.wa){a={};var c="youtube_watch_"+b.A;a.nw="10613";a.asnw=b.g.ga;a.ssnw=b.g.ga;a.caid=b.g.wa;a.vdur=b.D;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.g.ob)||(c._fw_d_001=b.g.ob);b.g.gender&&(c._fw_d_002=b.g.gender);b.g.ra&&(c["_fwu:10613:lang"]=b.g.ra);b.g.la&&(c._fw_dbp=b.g.la);b.g.va&&(c._fw_distributorvideoassetid=b.g.va);c._fw_yt_type=xX(b)?"long":"short";a.prof=xX(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=tX(b.o)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.C&1&&!b.F){e={};d=vX(b);if(wX(b.o)){var f;if(wX(b.o)){f=0;var k=b.B.A;if(k)for(var k=k.ub,l=0;l<k.length&&(wX(k[l])&&f++,k[l].getId()!=b.o.getId());l++);}else f=0;d+=f}e.slid=d;e.ptgt="a";d="";b.g.D&&!b.g.A?d=";linear-skippable":!b.g.D&&b.g.A&&(d=";video");e.slau=vX(b)+d;e.tpos=uX(b.o)?b.D.toString():JV(b.o.Gb).toString();d=Ah(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",
flag:"+cmpn"};d+=Ah(e,"&")+";"}b.C&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},e.tpos=tX(b.o)?"10":uX(b.o)?b.D.toString():JV(b.o.Gb).toString(),d+=Ah(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Ah(e,"&")+";");b.C&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Ah(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+Ah(a,"&")+";"+Ah(c,"&")+";"+b}else a=""}else a=this.D;return a};
zX.prototype.mk=function(a,b){return zX.M.mk.call(this,a,b,null)};
zX.prototype.qg=function(a,b){var c=VJ(b);if(OV(c,"rm"))return this.G.C=Wb(a),2;if(this.g.o.o)return 1;if(OV(c,"hideMaster")){if(a.kd&&a.kd.kg()){var c=a.kd.kg(),d;d=a.xb();if(X.g()){var e=d.V;d.V=[];d=e}else d=[];c.impressionUrls=d}MW(this,new yX(this.g,a));return 0}return zX.M.qg.call(this,a,b)};AX.prototype.Pb=function(){return this.o};
AX.prototype.create=function(a,b){switch(this.o){case 1:return new QW(a,b,this.g);case 2:return new UW(a,b,this.g);case 5:return new zX(a,b,this.g);case 4:return new fX(a,b);case 7:return new rX(a,b,this.g);case 8:return new sX(a,b,this.g);default:return null}};g.C(BX,g.en);g.h=BX.prototype;g.h.getId=function(){return this.Da};
g.h.show=function(){this.G?this.g instanceof KW&&this.g.Xb("normal"):(this.G=!0,this.g instanceof zW&&GX(this.A,"bs"),this.g.subscribe("adEnd",this.Rt,this),this.g.subscribe("adError",this.Zw,this),this.g.subscribe("AD_LOGGING_EVENT",this.ax,this),this.g.subscribe("select",this.Yw,this),this.g.subscribe("adCompanionInitialized",this.$w,this),this.g.show(),KX(this,!0))};
g.h.Rt=function(){this.o&&(MX(this),HY(this.A));FX(this)};
g.h.Zw=function(a){if(a){var b={};MV(a,b);JX(this,b);FY(this.A,32,b)}MX(this);FX(this)};
g.h.ax=function(a,b){JX(this,b);IX(this.A,a,b)};
g.h.Yw=function(){this.F=!1};
g.h.$w=function(a,b){this.$("adCompanionInitialized",a,b)};
g.h.R=function(){MX(this);this.g=null;null!=this.C&&(this.C.dispose(),this.C=null);BX.M.R.call(this)};var Boa=[new IV(1)];var Doa={Dz:"m",jz:"f"};g.C(RX,g.L);RX.prototype.B=function(a){a=null!=a.Hb()?a.Hb().D:null;if(null!=a){var b=yW(this.C);b&&b.getVideoData().videoId==a?b.sa?(b=b.sa,a=Yn(b,"engage"),a.B=1,b=JU(b.g),a=g.B(Jca,a.pa,Tn(a),Rn(a),b)):a=null:a=null;this.o=a}};
RX.prototype.A=function(){this.g&&this.o&&this.o()};g.C(SX,g.L);g.h=SX.prototype;g.h.Fv=function(){this.g.subscribe("beginseeking",this.Lj,this)};
g.h.Av=function(a,b){return a.o&&wX(a)?b+this.B+this.A:b};
g.h.zv=function(a,b){return!a.o||uX(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.B+this.A};
g.h.Sq=function(a){if(a.o&&wX(a)&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=EX(a)+this.B,b=new g.cn(c,c+this.A-1,b);this.C[a.getId()]=b;gn(this.g,[b])}};
g.h.qx=function(a){a.o&&wX(a)&&(TX(this,a.getId()),this.Lj())};
g.h.Lj=function(){(0,window.isNaN)(this.o)||(g.ch(this.o),this.o=window.NaN);var a=JY(this.g);VX(this,a,this.g.app.Kb.getVolume()/100);a.gd("transition","");a.gd("opacity","1")};
g.h.rx=function(a){var b=EX(a)+this.B+this.A,b=50>=1E3*this.g.getCurrentTime(1)-b;a.o&&wX(a)&&b&&(a=.001*(EX(a)+this.F),VY(this.g,a),0>=this.D||(a=JY(this.g),a.gd("opacity","0"),VX(this,a,0),g.ah((0,g.z)(this.CL,this),0)))};
g.h.CL=function(){var a=JY(this.g);a.gd("transition","opacity "+String(this.D)+"ms linear");a.gd("opacity","1");UX(this,a,this.D,1)};
g.h.ox=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-(0,g.G)()),d=-1*a.getVolume()*c/d,d=Math.max(0,a.getVolume()+d);VX(this,a,d);this.o=0<d?sn((0,g.z)(this.ox,this,a,b,c),c):window.NaN}};
g.h.mx=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-(0,g.G)()),e=this.g.app.Kb.getVolume()/100,d=(e-a.getVolume())*c/d,d=Math.min(e,a.getVolume()+d);VX(this,a,d);this.o=d<e?sn((0,g.z)(this.mx,this,a,b,c),c):window.NaN}};
g.h.R=function(){this.Lj();this.g.Ka("beginseeking",this.Lj,this);SX.M.R.call(this)};g.C(WX,SX);g.h=WX.prototype;g.h.Fv=g.v;g.h.Av=function(a,b){return b};
g.h.zv=function(a,b){return b};
g.h.Sq=g.v;g.h.qx=g.v;g.h.rx=g.v;g.h.R=g.v;g.C(XX,g.L);XX.prototype.A=function(){if(this.B){var a=this.g.o;if(null!=a&&(a=a.g,!(0>=a))){var b=this.g.g.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;g.Eb(this.D.A,function(a){a.isDisposed();if(a.isVisible&&!(0>=ZX(this,a))){var f;f=a.getId();f=this.D.D[f];if(ZX(this,a)>b){var k=!$X(this,a);k!=f.visible&&(f.visible=k,c.push(f));k||(f=ZX(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&g.El(this.g.g,c,1);if(d){var f=0;0<this.o&&(f=(0,g.G)()/1E3-this.o);Goa(this,a-f-e+2)}else YX(this)}}};
XX.prototype.R=function(){YX(this);this.g.Ka("endseeking",this.A,this);XX.M.R.call(this)};g.C(aY,g.L);g.h=aY.prototype;g.h.ih=function(a){a.Ka("adBreakComplete",this.ih,this);a.Ka("adCompanionInitialized",this.eo,this);this.N=g.ah((0,g.z)(this.UD,this,a),0)};
g.h.eo=function(a,b){g.Cb(this.J);this.J=new RX(this.o,b)};
g.h.UD=function(a){var b=Ioa(this,a),c=b.previous,b=b.next;this.N=window.NaN;var d,e=!1;switch(a.Gb.g){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&g.qa(b.Gb.o)?EX(b)-1:0x7ffffffffffff}0==a.Da&&(GX(this.o,"bl"),DX(a)||GX(this.o,"fb"));"loaded"!=a.B||0==a.Da&&DX(a)&&b&&1E3*this.o.g.getCurrentTime()>=EX(b)?(c&&CX(c)&&!e&&(b=d,d=EX(c),d>b&&(b=d),dY(this,c),cY(this,c,b)),this.ig(a)):(this.A[a.getId()]=a,cY(this,a,d),jn(this.o));Jb(this.A)==this.ub.length&&this.C.A();
bY(this)};
g.h.ig=function(a){a.Ka("adBreakComplete",this.ih,this);a.Ka("adBreakComplete",this.Hi,this);this.g&&a==this.g&&(this.g=null,null!=this.J&&a.o&&(this.J.g=!0));dY(this,a);g.eb(this.ub,a);delete this.A[a.getId()];g.Cb(a)};
g.h.Pg=function(a){return this.A[a]};
g.h.Hi=function(a){a.Ka("adBreakComplete",this.Hi,this);if(a.o){!uX(a)&&a.F?(SY(this.o),this.B.rx(a)):DX(a)&&!a.F?SY(this.o):QY(this.o);this.ig(a);a=this.C.o;a={tfla:0<a?Math.floor((0,g.G)()/1E3-a):0};this.o.Kg.g(fY,"set_previous_ad_end_time",a);a=this.C;if(a.B){var b=a.g.o;b&&0<b.g&&(a.o=(0,g.G)()/1E3,a.A())}for(;!g.J(this.O);)gY(this,this.O.shift())}else a.isVisible||this.ig(a)};
g.h.R=function(){g.ch(this.N);g.Cb(this.B);g.Cb(this.C);(0,g.H)(this.ub,this.ig,this);g.Cb(this.J);aY.M.R.call(this)};g.C(hY,aY);g.h=hY.prototype;g.h.Pg=function(a){a=hY.M.Pg.call(this,a);if(!a)return null;if(!a.H)return a;var b;b=null;if(this.F.length){var c=b=this.F.shift();c.Gb=a.Gb;c.Da=a.getId()}b&&"loaded"==b.B?(a.Ka("adBreakComplete",this.ih,this),this.A[a.getId()]=b,this.ub[this.ub.indexOf(a)]=b,g.Cb(a)):(this.mh(),b&&(g.Cb(b),b=null,this.ig(a)));b&&!b.o&&this.mh();return b};
g.h.ih=function(a){!tX(a)&&(2!=a.Gb.g||10!=JV(a.Gb))||"loaded"==a.B&&a.o||this.mh();hY.M.ih.call(this,a)};
g.h.Hi=function(a){a.o&&10<this.P?(iY(this),this.V=g.ah((0,g.z)(this.mh,this),1E3*(this.P-10))):this.mh();hY.M.Hi.call(this,a)};
g.h.mh=function(){if(!this.isDisposed())for(iY(this);this.H.length&&this.L.length+this.F.length<this.Z;){var a=this.H.shift();a.subscribe("adBreakComplete",this.Qt,this);this.L.push(a);LX(a)}};
g.h.Qt=function(a){a.Ka("adBreakComplete",this.Qt,this);g.eb(this.L,a);this.F.push(a)};
g.h.R=function(){iY(this);g.H(this.L,g.Cb);g.H(this.F,g.Cb);g.H(this.H,g.Cb);hY.M.R.call(this)};g.C(jY,aY);jY.prototype.getVideoData=function(){return null};
jY.prototype.ca=function(a){"loaded"==a.B&&this.H.push(a);a.Ka("adBreakComplete",this.ca,this)};
jY.prototype.P=function(){if(null!=this.g&&0<this.H.length){var a=this.H.shift();delete this.A[JV(a.Gb)];var b=Math.floor((0,g.G)()/1E3)-this.da;this.da=null;a.Ka("adBreakComplete",this.P,this);this.ig(a);this.g=null}0<this.L?(this.L--,kY(this)):(SY(this.V),(0,window.isFinite)(b)&&(this.Z?this.F.Wc(window.Infinity,!0):this.F.Wc(this.F.getCurrentTime()+b,!0)))};g.C(nY,g.L);nY.prototype.F=function(){this.g||(this.g=mY(this.B.Td()));g.El(this.o.g,g.Lb(this.g),1)};
nY.prototype.A=function(){if(this.g){var a=this.o.g.getCurrentTime(),b=[],c=null,d=Number.MAX_VALUE;(0,g.H)(this.B.Td(),function(e){var f=this.g[e];if(f){var k=this.B.Pg(e);k&&k.gc>a?(e=!this.Oc.o(k),e!=f.visible&&(f.visible=e,b.push(f)),e||(f=k.gc-a,f<d&&(d=f,c=k))):!k||k.gb()?(g.Gl(this.o.g,[f],void 0),delete this.g[e]):!f.visible&&k&&(f.visible=!0,b.push(f))}},this);
0<b.length&&g.El(this.o.g,b,1);var e=this.o.o.g;if(0>=e)if(c){var f=0;0<this.D&&(f=(0,g.G)()/1E3-this.D);Koa(this,e-f-d+2)}else oY(this)}};
nY.prototype.R=function(){this.o.Ka("endseeking",this.A,this);oY(this);nY.M.R.call(this)};g.C(pY,g.L);g.h=pY.prototype;g.h.rs=function(){return 4};
g.h.kl=function(a){return a};
g.h.Qu=function(){return!1};
g.h.Tq=g.v;g.h.nj=g.v;g.h.tx=g.v;g.h.vx=g.v;g.h.wx=g.v;g.C(qY,g.L);g.h=qY.prototype;g.h.rs=function(){return 4-this.B/1E3};
g.h.kl=function(a){return Qb(this.A,1E3*a)?this.A[1E3*a]/1E3:a};
g.h.Qu=function(a){var b=!1,c={};(0,g.H)($e(a),(0,g.z)(function(a){var d;if(d=(d=a.getAttribute("timeOffset"))?lY(d):null)b=b||Loa(a),c[d]=a},this));
if(!b||0==Jb(c))return!1;a=(0,g.S)(g.Ob(c),function(a){return(0,window.parseInt)(a,10)});
if(!Ooa(this,a))return!1;g.Eb(c,(0,g.z)(function(a,b){var c=(0,window.parseInt)(Rb(this.A,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",Moa(c))},this));
return!0};
g.h.Tq=function(a){if(!(0>=this.H)){var b=[];(0,g.H)(a,(0,g.z)(function(a){if(Qb(this.A,1E3*a)){var c=new g.cn(1E3*this.kl(a)+this.B,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.C[a]=c;b.push(c)}},this));
gn(this.g,b)}};
g.h.tx=function(a){if(Qb(this.A,1E3*a)){var b=JY(this.g);null!==b&&(a=Math.max(0,1E3*a-1E3*this.g.getCurrentTime(1)),b.gd("transition","opacity "+String(a)+"ms linear"),b.gd("opacity","0"),sY(this,b,a,0))}};
g.h.vx=function(a){rY(this,1E3*a)&&(this.C[a]&&(g.Gl(this.g.g,[this.C[a]],void 0),delete this.C[a]),this.nj())};
g.h.Cx=function(){g.T(g.fl(this.g.g),4)&&this.nj()};
g.h.nj=function(){var a=JY(this.g);null!==a&&(null!=this.o&&(g.ch(this.o),this.o=null),tY(this,a,this.g.app.Kb.getVolume()/100),a.gd("transition",""),a.gd("opacity","1"))};
g.h.wx=function(a){if(Qb(this.A,1E3*a)){var b=1E3*a;200>=1E3*this.g.getCurrentTime(1)-b&&(VY(this.g,this.kl(a)+this.G/1E3),0>=this.D||(a=JY(this.g),null!==a&&(a.gd("opacity","0"),tY(this,a,0),null!=this.o&&g.ch(this.o),this.o=sn((0,g.z)(this.KL,this),0))))}};
g.h.KL=function(){var a=JY(this.g);null!==a&&(a.gd("transition","opacity "+String(this.D)+"ms linear"),a.gd("opacity","1"),sY(this,a,this.D,1))};
g.h.Bx=function(a,b,c){if(null!==this.o){var d=Math.max(1,b-(0,g.G)()),d=-1*a.getVolume()*c/d,d=Math.max(0,a.getVolume()+d);tY(this,a,d);0<d?this.o=sn((0,g.z)(this.Bx,this,a,b,c),c):this.o=null}};
g.h.Ax=function(a,b,c){if(null!==this.o){var d=Math.max(1,b-(0,g.G)()),e=this.g.app.Kb.getVolume()/100,d=(e-a.getVolume())*c/d,d=Math.min(e,a.getVolume()+d);tY(this,a,d);d<e?this.o=sn((0,g.z)(this.Ax,this,a,b,c),c):this.o=null}};
g.h.R=function(){this.nj();this.g.Ka("applicationplayerstatechange",this.Cx,this);qY.M.R.call(this)};g.C(uY,g.L);var Toa={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4,"YT:SHOPPING":14,SHOPPING:14,GOOGLEADS:14,"ADSENSE-VIRAL":15,"VIRAL-RESERVE":17};g.h=uY.prototype;
g.h.load=function(a){if(this.Wa=this.g.Wa){var b=this.g.o,c=!QV(this.g).experiments.g("html5_reuse_parsed_xml");this.C=b.applyFadeOnMidrolls?new qY(this.g):new pY;var d=SV(this.g);d.o=Qoa(this,a,c);d.nk=this.g.H.D;d.Yb.TSLA=eoa(this);d.Yb.GET_MIDROLL_POSITION_IN_SEC=(0,g.z)(this.C.kl,this.C);d.Yb.DESCRIPTION_URL="http://www.youtube.com/video/"+RV(this.g).videoId;if(a=NX(b).get(3))if(c="",a&2&&a&1?c="video":a&2?c="skippablevideo":a&1&&(c="standardvideo"),a&4&&(c&&(c+="_"),c+="text_image_flash"),d.A=
c,b=b.Ia)d.D=b;this.Wa.S("adsManagerLoaded",this.yx,!1,this);this.Wa.S("adError",this.xx,!1,this);bS(this.Wa,d,this);GX(this.g,"bd")}};
g.h.yx=function(a){if(a.A===this){var b={};Object.defineProperty(b,"currentTime",{get:(0,g.z)(function(){return this.g.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:(0,g.z)(function(){return this.g.g.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=Roa(this);this.o=gL(a,this.g.H,b,c)}catch(d){AY(this,d);return}if(this.Oc=this.o.uv(b,this.g.o.g)){this.C.Tq(this.o.Td());this.F=new nY(this.g,this.o,this.Oc);g.M(this,this.F);g.ah((0,g.z)(this.F.F,this.F),0);g.ab(this.o.Td(),0)||zY(this);this.D.S(this.o,"companionBackfill",(0,g.z)(this.HL,this));this.D.S(this.o,"prefetched",(0,g.z)(this.ZD,this));this.D.S(this.o,"loaded",(0,g.z)(this.FL,this));this.D.S(this.o,"adError",(0,g.z)(this.DL,this),!1);this.D.S(this.o,"start",(0,g.z)(this.GL,
this));this.D.S(this.o,"complete",(0,g.z)(this.WD,this));this.D.S(this.o,"companionInitialized",(0,g.z)(this.IL,this));this.D.S(this.o,"contentPauseRequested",(0,g.z)(this.If,this));this.D.S(this.o,"contentResumeRequested",(0,g.z)(this.Pe,this));this.D.S(this.o,"allAdsCompleted",g.v);this.g.g.addEventListener("applicationplayerstatechange",this.zx,this);try{this.o.init("normal"),this.o.start()}catch(d){this.g.Kg.g(fY,"vmap_ads_manager_init_exception",void 0),this.o.destroy(),this.o=null,AY(this,d)}}}};
g.h.zx=function(){if(g.T(g.fl(this.g.g),16)||g.T(g.fl(this.g.g),32)){var a=this.o;null!=a.Wb&&(a=a.Wb,a.g.stop(),a.o=!1)}else a=this.o,null!=a.Wb&&LR(a.Wb)};
g.h.IL=function(a){if(a=a.g)g.Cb(this.G),this.G=new RX(this.g,a)};
g.h.If=function(a){BY(this);if((this.B=a.Hb())&&this.B.zb()){a=wY(this.B);var b;b=this.B.B.o;b=0==b?1:0<b?2:-1==b?3:0;this.A=new zW(a,this.g,this.o,this.B.isSkippable(),!0,void 0,b);QV(this.g).experiments.g("send_html5_api_stats_ads_abandon")&&xY(this,this.A);1!=b&&nw("video_to_ad",["apbs"]);a=this.g;a.L=!0;a.B||eY(a);this.C.vx(this.B.B.o);this.A.show();vY(this,"show_instream_ads")}};
g.h.Pe=function(a){zY(this);this.g.getCurrentTime(1)<this.g.g.getVideoData().lengthSeconds&&(SY(this.g),this.B&&this.B.zb()&&(this.C.wx(this.B.B.o),null!=this.G&&(this.G.g=!0)));a=a.Hb();var b=ZR(this.o);b&&b.O&&b.gb()?this.B=null:!a&&this.A instanceof PW||BY(this);var c=!0;if(a&&a!==this.B&&!a.zb()){if(b&&b.O&&!b.gb()){b=this.F;null!=b.g[0]&&(c=b.g[0],delete b.g[0],b.g[0]=new g.cn(1E4,c.end,{id:"10",visible:!0}),c.visible=!1,g.El(b.o.g,[c,b.g[0]],1),gn(b.o,[b.g[0]]));this.B=a;return}c=Soa(this,a)}this.B&&
this.B.zb()&&HY(this.g);this.B&&this.B.zb()?(vY(this,"set_previous_ad_end_time"),b=this.Oc,0<b.A&&(b.g=(0,g.G)()/1E3),b=this.F,b.D=(0,g.G)()/1E3,b.A()):a&&a!==this.B&&!a.zb()&&c&&(b=this.F,b.D=(0,g.G)()/1E3,b.A());this.F.F();this.B=a};
g.h.GL=function(a){(a=a.Hb())&&this.A&&(a=wY(a),this.A.adSystem=a)};
g.h.WD=function(a){a.Hb().zb()||this.B!==a.Hb()||(BY(this),this.B=null)};
g.h.ZD=function(a){var b=a.Hb();if(null!=b){var c=a.g.adBreakTime;this.L[c]=b;this.J||(GX(this.g,"bl"),0==c&&a.Hb().zb()||GX(this.g,"fb"),this.J=!0)}};
g.h.FL=function(a){null!=a.Hb()&&(a.Hb().zb()&&GX(this.g,"bs"),a.Hb().B.A||a.Hb().zb()||zY(this))};
g.h.DL=function(a){AY(this,a.getError())};
g.h.xx=function(a){var b=a.getError();"adLoadError"==b.Pb()&&a.g===this&&AY(this,b)};
g.h.HL=function(a){yY(this,a&&a.Hb())};
g.h.R=function(){BY(this);this.Wa&&(this.Wa.Ca("adsManagerLoaded",this.yx,!1,this),this.Wa.Ca("adError",this.xx,!1,this));No(this.O);No(this.D);this.g.g.removeEventListener("applicationplayerstatechange",this.zx,this);this.H=!1;this.o&&(this.o.destroy(),this.o=null);g.Cb(this.C);g.Cb(this.G);uY.M.R.call(this)};
g.h.JL=function(a,b,c,d){if(QV(this.g).experiments.g("send_html5_api_stats_ads_abandon")){if(3==b||19==c)a&&(d.break_type=a.ff(),d.sst=a.gc,d.sidx=0),IX(this.g,c,d)}else a&&(a=a.gc,b=1,-1==a?b=3:0<a&&(b=2),d.break_type=b,d.sst=a,d.sidx=0),IX(this.g,c,d)};g.C(CY,dS);CY.A=10;CY.o=1E3;CY.g="livead";CY.zd=function(a){return!!a.Kb.getVideoData().adModule};
g.h=CY.prototype;g.h.zd=function(){return CY.zd(this.app)};
g.h.create=function(){CY.M.create.call(this);this.J.U(this.g,"beginseeking",(0,g.z)(this.$,this,"beginseeking"));this.J.U(this.g,"endseeking",(0,g.z)(this.$,this,"endseeking"));this.J.U(this.g,"resize",(0,g.z)(this.$,this,"resize"));this.J.U(this.g,"presentingplayerstatechange",(0,g.z)(this.$,this,"presentingplayerstatechange"));this.J.U(this.g,"webglsettingschanged",(0,g.z)(this.$,this,"webglsettingschanged"));GX(this,"i");this.o=new Foa(QV(this),this.g.getVideoData().C||{});this.C=new Joa(this,
this.g);this.N=!1;if(this.Wa)this.Wa.g.B.B=gA();else{var a=this.o.O?void 0:rW(this.G),b=new cS(this.app,2),c=qW(this.G);b.A||(b.A=Wb(b.B),b.A.addEventListener=(0,g.z)(b.kB,b),b.A.removeEventListener=(0,g.z)(b.lB,b));this.H=new eH(c,void 0,a,b.A,!0);this.H.setSize(-1,-1);this.Wa=new aS(this.H)}if(this.o.vmap&&!this.o.ba){this.B=new uY(this);try{this.B.load(this.o.vmap)}catch(d){eh(d),this.Kg.g(fY,"vmap_load_exception",void 0),this.B.dispose(),this.B=null,PY(this,QX(new PX(this)))}}else PY(this,QX(new PX(this)));
this.C&&(a={},a.allowed=this.C.o,kn(this,{},a))};
g.h.destroy=function(){this.L&&QY(this);this.app.W.experiments.g("disable_new_pause_state3")||hn(this);OY(this);g.Db(this.A,this.D,this.B);this.C=this.o=this.B=this.P=this.D=this.A=null;aW=YV=XV=!1;cW();this.F&&CY.M.destroy.call(this)};
g.h.isFullscreen=function(){return this.g.isFullscreen()||this.o.C};
g.h.Il=function(){var a;if(this.C){a=this.C;var b={allowed:a.o};a.g.excludedAds&&(b.ex_ad=a.g.excludedAds);a.A&&(b.at=a.A);a=b}else a=CY.M.Il.call(this);return a};
g.h.getRootNode=function(){return this.g.getRootNode()};
g.h.getVideoData=function(){return this.P};
g.h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
g.h.up=function(){return this.O};
g.h.Jf=function(a){CY.M.Jf.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.A&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.A,d=c.Pg(b);if(d&&!$X(c.C,d)&&(c=c.B,d.o)){var e=JY(c.g),d=Math.max(0,EX(d)+c.B+c.A-1E3*c.g.getCurrentTime(1));e.gd("transition","opacity "+String(d)+"ms linear");e.gd("opacity","0");UX(c,e,d,0)}}else gY(this.A,b);this.B&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.B,(c=d.L[b])&&c.zb()&&d.C.tx(b)):0>b&&(b=this.Wa.g,d=new hL("contentComplete"),
b.dispatchEvent(d),d.A&&(rz(oz(),420706009)||b.B.clear(),null!=b.o&&(d=b.o.kg(),null!=d&&zH(d,b.B.g)))));if("livead"===a.getId()&&null!=IY(this)){b=IY(this);for(a=Math.floor(a.start/1E3);g.p(b.A[a]);)a++;d=b.fa++;c=0==a?new IV(1):new IV(2,a);d=new BX(b.V,d,c,OX(b.V.o,c.g),!1);b.A[a]=d;d.subscribe("adBreakComplete",b.ca,b);LX(d)}};
g.h.Kf=function(a){CY.M.Kf.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.A&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.A,(b=c.A[b])&&c.g==b&&!b.o&&b.isVisible&&b.G&&b.g instanceof KW&&b.g.Xb("fullscreen"));this.B&&"ytp-ad-fadeout"==a.style&&this.B.C.nj();"livead"===a.getId()&&null!=IY(this)&&1E3*this.getCurrentTime(1)>=a.start&&(g.Gl(this.g,[a],1),kY(IY(this)))};
g.h.kf=function(a){this.$(a)};
g.h.TE=function(a){var b=IY(this);if(null!=b&&null!=b.F){var c=IY(this).F.getCurrentTime();(0,g.H)(a,function(a){0!=c&&a.qd>c&&(a=new g.cn(1E3*Math.floor(c+Math.random()*Math.max(a.qd-10-c,0)),1E3*a.qd,{id:"livead",priority:2}),gn(this,[a],1))},this)}};
g.h.Bg=function(a){switch(a){case "addata":var b=this.o;return{adTag:b.adTag,adTest:b.ib,forceAdType:b.forceAdType,isAfvSkippableInstreamEnabled:b.N,isAfvStandardInstreamEnabled:b.P,isBlazer:b.B,isDoubleClickEnabled:b.Z,isForcedAd:b.ba,isFreeWheelEnabled:b.ca,isHouseBrandPlayer:b.Ic,isLeanback:b.C,isShortform:b.Xa,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.up();case "midrollfreqcap":if(this.B)return b=this.o.g,null!=b?b:0;b=this.A instanceof hY?this.A:null;return null!=
b?b.P:0;case "breakscount":return this.B?(b=this.B,b=null!=b.o?b.o.Td().length:0):b=this.A?this.A.ub.length:0,b;case "displaystate":return b=null,this.A&&this.A.g&&(b=this.A.g.g),{adFormat:b instanceof nW?b.adType:!1,adSkipped:b instanceof zW?b.D:!1,hasVideoStarted:b instanceof zW?b.G:!1,skippable:b instanceof zW?b.V:!1};case "getContentVideoData":return b=RV(this),{adModule:b.adModule,partnerTrackingToken:b.ab,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.A){a=this.A.A;var c=[];
for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].o});return c}return 0}};
g.h.Yf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};var cZ=ZY("loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",Voa=ZY("loadCastFramework"),dZ=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"],c8=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"],aZ=50<=YY()?c8.concat(dZ):dZ.concat(c8);var $oa=(0,g.G)(),jZ=null,nZ=Array(50),mZ=-1,oZ=!1;var epa={VN:"atp",OS:"ska",kS:"que",yR:"mus",KS:"sus"};vZ.prototype.D=function(a,b,c,d){b?a(d):a({text:c.responseText})};
vZ.prototype.C=function(a,b){a(Error("Request error: "+b.status))};
vZ.prototype.F=function(a){a(Error("request timed out"))};g.C(BZ,g.en);BZ.prototype.ud=function(){return this.g};
BZ.prototype.contains=function(a){return!!zZ(this.g,a)};
BZ.prototype.get=function(a){return a?AZ(this.g,a):null};
BZ.prototype.info=function(a){lZ(this.F,a)};g.C(DZ,g.en);var d8=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g.h=DZ.prototype;g.h.start=function(){!this.g&&(0,window.isNaN)(this.o)&&this.hw()};
g.h.stop=function(){this.g&&(this.g.abort(),this.g=null);(0,window.isNaN)(this.o)||(g.ch(this.o),this.o=window.NaN)};
g.h.R=function(){this.stop();DZ.M.R.call(this)};
g.h.hw=function(){this.o=window.NaN;this.g=g.li(wZ(this.F,"/pairing/get_screen"),{method:"POST",Sb:{pairing_code:this.D},timeout:5E3,Cb:(0,g.z)(this.nJ,this),onError:(0,g.z)(this.mJ,this),Sc:(0,g.z)(this.oJ,this)})};
g.h.nJ=function(a,b){this.g=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.$("pairingComplete",new pZ(c))};
g.h.mJ=function(a){this.g=null;a.status&&404==a.status?this.A>=d8.length?this.$("pairingFailed",Error("DIAL polling timed out")):(a=d8[this.A],this.o=g.ah((0,g.z)(this.hw,this),a),this.A++):this.$("pairingFailed",Error("Server error "+a.status))};
g.h.oJ=function(){this.g=null;this.$("pairingFailed",Error("Server not responding"))};var PZ,KZ="";g.C(SZ,BZ);g.h=SZ.prototype;g.h.start=function(){RZ(this)&&this.$("screenChange");!g.Hj("yt-remote-lounge-token-expiration")&&TZ(this);g.ch(this.o);this.o=g.ah((0,g.z)(this.start,this),1E4)};
g.h.zl=function(a,b){RZ(this);CZ(this,a);UZ(this,!1);this.$("screenChange");b(a);a.token||TZ(this)};
g.h.remove=function(a,b){var c=RZ(this);dpa(this,a)&&(UZ(this,!1),c=!0);b(a);c&&this.$("screenChange")};
g.h.nl=function(a,b,c,d){var e=RZ(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,UZ(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.$("screenChange")};
g.h.R=function(){g.ch(this.o);SZ.M.R.call(this)};
g.h.OB=function(a){RZ(this);var b=this.g.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}UZ(this,!b);b&&lZ(this.F,"Missed "+b+" lounge tokens.")};
g.h.NB=function(a){lZ(this.F,"Requesting lounge tokens failed: "+a)};g.C(WZ,g.en);g.h=WZ.prototype;g.h.start=function(){var a=(0,window.parseInt)(g.Hj("yt-remote-fast-check-period")||"0",10);(this.B=(0,g.G)()-144E5<a?0:a)?ZZ(this):(this.B=(0,g.G)()+3E5,g.Gj("yt-remote-fast-check-period",this.B),this.ro())};
g.h.isEmpty=function(){return g.Tb(this.g)};
g.h.update=function(){VZ("Updating availability on schedule.");var a=this.D(),b=Fb(this.g,function(b,d){return b&&!!AZ(a,d)},this);
YZ(this,b)};
g.h.R=function(){g.ch(this.A);this.A=window.NaN;this.o&&(this.o.abort(),this.o=null);WZ.M.R.call(this)};
g.h.ro=function(){g.ch(this.A);this.A=window.NaN;this.o&&this.o.abort();var a=$Z(this);if(Jb(a)){var b=wZ(this.C,"/pairing/get_screen_availability");this.o=xZ(this.C,b,{lounge_token:g.Ob(a).join(",")},(0,g.z)(this.RG,this,a),(0,g.z)(this.QG,this))}else YZ(this,{}),ZZ(this)};
g.h.RG=function(a,b){this.o=null;var c=g.Ob($Z(this));if(g.wb(c,g.Ob(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;YZ(this,d);ZZ(this)}else this.Mb("Changing Screen set during request."),this.ro()};
g.h.QG=function(a){this.Mb("Screen availability failed: "+a);this.o=null;ZZ(this)};
g.h.Mb=function(a){lZ("OnlineScreenService",a)};g.C(a_,BZ);g.h=a_.prototype;g.h.start=function(){this.A.start();this.o.start();this.g.length&&(this.$("screenChange"),this.o.isEmpty()||this.$("onlineScreenChange"))};
g.h.zl=function(a,b,c){this.A.zl(a,b,c)};
g.h.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()};
g.h.nl=function(a,b,c,d){this.A.contains(a)?this.A.nl(a,b,c,d):(a="Updating name of unknown screen: "+a.name,lZ(this.F,a),d(Error(a)))};
g.h.ud=function(a){return a?this.g:ib(this.g,(0,g.Od)(this.B,function(a){return!this.contains(a)},this))};
g.h.iw=function(){return(0,g.Od)(this.ud(!0),function(a){return!!this.o.g[a.id]},this)};
g.h.jw=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new DZ(this.D,a,b,c);f.subscribe("pairingComplete",(0,g.z)(function(a){g.Cb(f);d(b_(this,a))},this));
f.subscribe("pairingFailed",function(a){g.Cb(f);e(a)});
f.start();return(0,g.z)(f.stop,f)};
g.h.qJ=function(a,b,c,d){g.li(wZ(this.D,"/pairing/get_screen"),{method:"POST",Sb:{pairing_code:a},timeout:5E3,Cb:(0,g.z)(function(a,d){var e=new pZ(d.screen||{});if(!e.name||d_(this,e.name)){var f;a:{f=e.name;for(var m=2,n=b(f,m);d_(this,n);){m++;if(20<m)break a;n=b(f,m)}f=n}e.name=f}c(b_(this,e))},this),
onError:(0,g.z)(function(a){d(Error("pairing request failed: "+a.status))},this),
Sc:(0,g.z)(function(){d(Error("pairing request timed out."))},this)})};
g.h.R=function(){g.Cb(this.A);g.Cb(this.o);a_.M.R.call(this)};
g.h.aC=function(){e_(this);this.$("screenChange");this.o.update()};
a_.prototype.dispose=a_.prototype.dispose;g.C(g_,g.en);g.h=g_.prototype;g.h.Jk=function(a){this.A=a;this.$("sessionScreen",this.A)};
g.h.xd=function(a){this.isDisposed()||(a&&h_(this,""+a),this.A=null,this.$("sessionScreen",null))};
g.h.info=function(a){lZ(this.O,a)};
g.h.lw=function(){return null};
g.h.yo=function(a){var b=this.o;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,(0,g.z)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),(0,g.z)(function(){h_(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
g.h.R=function(){this.yo("");g_.M.R.call(this)};g.C(j_,g_);g.h=j_.prototype;g.h.wo=function(a){if(this.g){if(this.g==a)return;h_(this,"Overriding cast sesison with new session object");this.g.removeUpdateListener(this.D);this.g.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C)}this.g=a;this.g.addUpdateListener(this.D);this.g.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.C);lpa(this)};
g.h.fh=function(a){this.info("launchWithParams no-op for Cast: "+g.tf(a))};
g.h.stop=function(){this.g?this.g.stop((0,g.z)(function(){this.xd()},this),(0,g.z)(function(){this.xd(Error("Failed to stop receiver app."))},this)):this.xd(Error("Stopping cast device witout session."))};
g.h.yo=g.v;g.h.R=function(){this.info("disposeInternal");g.ch(this.B);this.B=0;this.g&&(this.g.removeUpdateListener(this.D),this.g.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C));this.g=null;j_.M.R.call(this)};
g.h.QH=function(a,b){if(!this.isDisposed())if(b){var c=qf(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+g.tf(c));switch(d){case "mdxSessionStatus":i_(this,c.screenId);break;default:h_(this,"Unknown youtube message: "+d)}}else h_(this,"Unable to parse message.")}else h_(this,"No data in message.")};
g.h.us=function(a,b,c,d){c_(this.H,this.o.label,a,this.o.friendlyName,(0,g.z)(function(e){e?b(e):0<=d?(h_(this,"Screen "+a+" appears to be offline. "+d+" retries left."),g.ah((0,g.z)(this.us,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
g.h.lw=function(){return this.g};
g.h.rJ=function(a){this.isDisposed()||a||(h_(this,"Cast session died."),this.xd())};g.C(k_,g_);g.h=k_.prototype;g.h.wo=function(a){this.B=a;this.B.addUpdateListener(this.L)};
g.h.fh=function(a){this.C=a;this.F()};
g.h.stop=function(){this.g();this.g=g.v;g.ch(this.D);this.B?this.B.stop((0,g.z)(this.xd,this,null),(0,g.z)(this.xd,this,"Failed to stop DIAL device.")):this.xd()};
g.h.R=function(){this.g();this.g=g.v;g.ch(this.D);this.B&&this.B.removeUpdateListener(this.L);this.B=null;k_.M.R.call(this)};
g.h.uJ=function(a){this.isDisposed()||a||(h_(this,"DIAL session died."),this.g(),this.g=g.v,this.xd())};
g.h.On=function(a){this.J=yZ();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,m_(this));a(b);l_(this)}else this.F=(0,g.z)(function(){g.ch(this.D);this.F=g.v;this.D=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,m_(this));a(b);l_(this)},this),this.D=g.ah((0,g.z)(function(){this.F()},this),100)};
g.h.pD=function(a,b){c_(this.H,this.G.receiver.label,a,this.o.friendlyName,(0,g.z)(function(a){a&&a.token?(this.Jk(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.On(b)},this),(0,g.z)(function(a){h_(this,"Failed to get DIAL screen: "+a);
this.On(b)},this))};g.C(n_,g_);n_.prototype.stop=function(){this.xd()};
n_.prototype.wo=g.v;n_.prototype.fh=function(){g.ch(this.g);this.g=window.NaN;var a=AZ(this.H.ud(),this.o.label);a?this.Jk(a):this.xd(Error("No such screen"))};
n_.prototype.R=function(){g.ch(this.g);this.g=window.NaN;n_.M.R.call(this)};g.C(o_,g.en);g.h=o_.prototype;
g.h.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest("233637DE");c.dialRequest=new window.chrome.cast.DialRequest("YouTube");var d=window.chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?window.chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:window.chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new window.chrome.cast.ApiConfig(c,(0,g.z)(this.Bu,this),(0,g.z)(this.FG,this),d,e);c.customDialLaunchCallback=(0,g.z)(this.YE,this);window.chrome.cast.initialize(c,
(0,g.z)(function(){this.isDisposed()||(window.chrome.cast.addReceiverActionListener(this.B),Xoa(),this.o.subscribe("onlineScreenChange",(0,g.z)(this.kw,this)),this.A=t_(this),window.chrome.cast.setCustomReceivers(this.A,g.v,(0,g.z)(function(a){this.Mb("Failed to set initial custom receivers: "+g.tf(a))},this)),this.$("yt-remote-cast2-availability-change",r_(this)),b(!0))},this),(0,g.z)(function(a){this.Mb("Failed to initialize API: "+g.tf(a));
b(!1)},this))};
g.h.zI=function(a,b){q_("Setting connected screen ID: "+a+" -> "+b);if(this.g){var c=this.g.A;if(!a||c&&c.id!=a)q_("Unsetting old screen status: "+this.g.o.friendlyName),s_(this,null)}if(a&&b){if(!this.g){c=AZ(this.o.ud(),a);if(!c){q_("setConnectedScreenStatus: Unknown screen.");return}var d=p_(this,c);d||(q_("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.A.push(d),
window.chrome.cast.setCustomReceivers(this.A,g.v,(0,g.z)(function(a){this.Mb("Failed to set initial custom receivers: "+g.tf(a))},this)));
q_("setConnectedScreenStatus: new active receiver: "+d.friendlyName);s_(this,new n_(this.o,d),!0)}this.g.yo(b)}else q_("setConnectedScreenStatus: no screen.")};
g.h.AI=function(a){this.isDisposed()?this.Mb("Setting connection data on disposed cast v2"):this.g?this.g.fh(a):this.Mb("Setting connection data without a session")};
g.h.tJ=function(){this.isDisposed()?this.Mb("Stopping session on disposed cast v2"):this.g?(this.g.stop(),s_(this,null)):q_("Stopping non-existing session")};
g.h.requestSession=function(){window.chrome.cast.requestSession((0,g.z)(this.Bu,this),(0,g.z)(this.VG,this))};
g.h.R=function(){this.o.Ka("onlineScreenChange",(0,g.z)(this.kw,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.B);var a=hZ,b=u("yt.mdx.remote.debug.handlers_");g.eb(b||[],a);g.Cb(this.g);o_.M.R.call(this)};
g.h.Mb=function(a){lZ("Controller",a)};
g.h.Cu=function(a,b){this.g==a&&(b||s_(this,null),this.$("yt-remote-cast2-session-change",b))};
g.h.BG=function(a,b){if(!this.isDisposed())if(a)switch(a.friendlyName=window.chrome.cast.unescape(a.friendlyName),q_("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.g)if(this.g.o.label!=a.label)q_("onReceiverAction_: Stopping active receiver: "+this.g.o.friendlyName),this.g.stop();else{q_("onReceiverAction_: Casting to active receiver.");this.g.A&&this.$("yt-remote-cast2-session-change",this.g.A);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:s_(this,
new n_(this.o,a));break;case window.chrome.cast.ReceiverType.DIAL:s_(this,new k_(this.o,a));break;case window.chrome.cast.ReceiverType.CAST:s_(this,new j_(this.o,a));break;default:this.Mb("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.g&&this.g.o.label==a.label?this.g.stop():this.Mb("Stopping receiver w/o session: "+a.friendlyName)}else this.Mb("onReceiverAction_ called without receiver.")};
g.h.YE=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.Mb("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.g?this.g.o:null;if(!c||c.label!=b.label)return this.Mb("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),window.Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=window.chrome.cast.ReceiverType.DIAL){if(this.g.A)return q_("Reselecting dial screen."),
this.$("yt-remote-cast2-session-change",this.g.A),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.Mb('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);s_(this,new k_(this.o,b))}b=this.g;b.G=a;return b.G.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise((0,g.z)(b.pD,b,(b.G.extraData||{}).screenId||null)):new window.Promise((0,g.z)(b.On,b))};
g.h.Bu=function(a){if(!this.isDisposed()){q_("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.g)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)q_("Got resumed cast session before resumed mdx connection."),b.friendlyName=window.chrome.cast.unescape(b.friendlyName),s_(this,new j_(this.o,b),!0);else{this.Mb("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.g.o,d=AZ(this.o.ud(),
c.label);d&&qZ(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&b.receiverType==window.chrome.cast.ReceiverType.CAST&&(q_("onSessionEstablished_: manual to cast session change "+b.friendlyName),g.Cb(this.g),this.g=new j_(this.o,b),this.g.subscribe("sessionScreen",(0,g.z)(this.Cu,this,this.g)),this.g.fh(null));this.g.wo(a)}}};
g.h.sJ=function(){return this.g?this.g.lw():null};
g.h.VG=function(a){this.isDisposed()||(this.Mb("Failed to estabilish a session: "+g.tf(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&s_(this,null))};
g.h.FG=function(a){q_("Receiver availability updated: "+a);if(!this.isDisposed()){var b=r_(this);this.C=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;r_(this)!=b&&this.$("yt-remote-cast2-availability-change",r_(this))}};
g.h.kw=function(){this.isDisposed()||(this.A=t_(this),q_("Updating custom receivers: "+g.tf(this.A)),window.chrome.cast.setCustomReceivers(this.A,g.v,(0,g.z)(function(){this.Mb("Failed to set custom receivers.")},this)),this.$("yt-remote-cast2-availability-change",r_(this)))};
o_.prototype.setLaunchParams=o_.prototype.AI;o_.prototype.setConnectedScreenStatus=o_.prototype.zI;o_.prototype.stopSession=o_.prototype.tJ;o_.prototype.getCastSession=o_.prototype.sJ;o_.prototype.requestSession=o_.prototype.requestSession;o_.prototype.init=o_.prototype.init;o_.prototype.dispose=o_.prototype.dispose;var C_=[];K_.prototype.stringify=function(a){return rf(this.o,a)};
K_.prototype.parse=function(a){return this.g(a)};g.h=L_.prototype;g.h.og=null;g.h.he=!1;g.h.Ah=null;g.h.Wo=null;g.h.Pi=null;g.h.Ug=null;g.h.Df=null;g.h.Nf=null;g.h.yg=null;g.h.Jc=null;g.h.aj=0;g.h.ie=null;g.h.rl=null;g.h.pg=null;g.h.si=-1;g.h.dv=!0;g.h.eg=!1;g.h.ln=0;g.h.Rk=null;var S_={},Q_={};g.h=L_.prototype;g.h.setTimeout=function(a){this.C=a};
g.h.eI=function(a){a=a.target;var b=this.Rk;b&&3==NG(a)?b.Tg():this.Yv(a)};
g.h.Yv=function(a){try{if(a==this.Jc)a:{var b=NG(this.Jc),c=this.Jc.o,d=this.Jc.getStatus();if(g.Me&&!pc(10)||qc&&!g.oc("420+")){if(4>b)break a}else if(3>b||3==b&&!g.rc&&!RG(this.Jc))break a;this.eg||4!=b||7==c||(8==c||0>=d?this.g.de(3):this.g.de(2));b0(this);var e=this.Jc.getStatus();this.si=e;var f=RG(this.Jc);(this.he=200==e)?(4==b&&U_(this),this.D?(W_(this,b,f),g.rc&&this.he&&3==b&&(this.B.S(this.o,"tick",this.ZH),this.o.start())):T_(this,f),this.he&&!this.eg&&(4==b?this.g.Ik(this):(this.he=!1,
P_(this)))):(this.pg=400==e&&0<f.indexOf("Unknown SID")?3:0,R_(),U_(this),V_(this))}}catch(k){}finally{}};
g.h.ZH=function(){var a=NG(this.Jc),b=RG(this.Jc);this.aj<b.length&&(b0(this),W_(this,a,b),this.he&&4!=a&&P_(this))};
g.h.qH=function(a){a0((0,g.z)(this.pH,this,a),0)};
g.h.pH=function(a){this.eg||(b0(this),T_(this,a),P_(this))};
g.h.Hu=function(a){a0((0,g.z)(this.oH,this,a),0)};
g.h.oH=function(a){this.eg||(U_(this),this.he=a,this.g.Ik(this),this.g.de(4))};
g.h.cancel=function(){this.eg=!0;U_(this)};
g.h.IH=function(){this.Ah=null;var a=(0,g.G)();0<=a-this.Wo?(2!=this.Ug&&this.g.de(3),U_(this),this.pg=2,R_(),V_(this)):$_(this,this.Wo-a)};g.h=f0.prototype;g.h.hn=null;g.h.yd=null;g.h.Sk=!1;g.h.Bs=null;g.h.Vj=null;g.h.jn=null;g.h.kn=null;g.h.Md=null;g.h.gf=-1;g.h.ri=null;g.h.Th=null;g.h.connect=function(a){this.kn=a;a=g0(this.g,null,this.kn);R_();this.Bs=(0,g.G)();var b=this.g.H;null!=b?(this.ri=b[0],(this.Th=b[1])?(this.Md=1,h0(this)):(this.Md=2,j0(this))):(rg(a,"MODE","init"),this.yd=new L_(this,0,void 0,void 0,void 0),this.yd.og=this.hn,O_(this.yd,a,!1,null,!0),this.Md=0)};
g.h.QA=function(a){if(a)this.Md=2,j0(this);else{R_();var b=this.g;b.Yd=b.vf.gf;D0(b,9)}a&&this.de(2)};
g.h.Hm=function(a){return this.g.Hm(a)};
g.h.abort=function(){this.yd&&(this.yd.cancel(),this.yd=null);this.gf=-1};
g.h.As=function(){return!1};
g.h.Au=function(a,b){this.gf=a.si;if(0==this.Md)if(b){try{var c=this.o.parse(b)}catch(d){c=this.g;c.Yd=this.gf;D0(c,2);return}this.ri=c[0];this.Th=c[1]}else c=this.g,c.Yd=this.gf,D0(c,2);else if(2==this.Md)if(this.Sk)R_(),this.jn=(0,g.G)();else if("11111"==b){if(R_(),this.Sk=!0,this.Vj=(0,g.G)(),c=this.Vj-this.Bs,!g.Me||pc(10)||500>c)this.gf=200,this.yd.cancel(),R_(),i0(this.g,this,!0)}else R_(),this.Vj=this.jn=(0,g.G)(),this.Sk=!1};
g.h.Ik=function(){this.gf=this.yd.si;if(this.yd.he)0==this.Md?this.Th?(this.Md=1,h0(this)):(this.Md=2,j0(this)):2==this.Md&&((!g.Me||pc(10)?!this.Sk:200>this.jn-this.Vj)?(R_(),i0(this.g,this,!1)):(R_(),i0(this.g,this,!0)));else{0==this.Md?R_():2==this.Md&&R_();var a=this.g;a.Yd=this.gf;D0(a,2)}};
g.h.Ui=function(){return this.g.Ui()};
g.h.isActive=function(){return this.g.isActive()};
g.h.de=function(a){this.g.de(a)};g.h=k0.prototype;g.h.bi=null;g.h.nd=null;g.h.Vb=null;g.h.gn=null;g.h.Xj=null;g.h.dr=null;g.h.jk=null;g.h.Gi=0;g.h.RD=0;g.h.Rc=null;g.h.wf=null;g.h.af=null;g.h.hg=null;g.h.vf=null;g.h.ql=null;g.h.eh=-1;g.h.Bt=-1;g.h.Yd=-1;g.h.di=0;g.h.Gg=0;g.h.gg=8;var E0=new N;g.C(l0,ac);g.C(m0,ac);g.C(n0,ac);g.h=k0.prototype;g.h.connect=function(a,b,c,d,e){R_();this.gn=b;this.bi=c||{};d&&g.p(e)&&(this.bi.OSID=d,this.bi.OAID=e);this.D?(a0((0,g.z)(this.Ar,this,a),100),t0(this)):this.Ar(a)};
g.h.Ar=function(a){this.vf=new f0(this);this.vf.hn=null;this.vf.o=this.C;this.vf.connect(a)};
g.h.As=function(){return 0==this.g};
g.h.Fu=function(a){this.wf=null;y0(this,a)};
g.h.Eu=function(){this.af=null;this.Vb=new L_(this,0,this.A,"rpc",this.F);this.Vb.og=null;this.Vb.ln=0;var a=this.dr.clone();g.pg(a,"RID","rpc");g.pg(a,"SID",this.A);g.pg(a,"CI",this.ql?"0":"1");g.pg(a,"AID",this.eh);p0(this,a);if(!g.Me||pc(10))g.pg(a,"TYPE","xmlhttp"),O_(this.Vb,a,!0,this.jk,!1);else{g.pg(a,"TYPE","html");var b=this.Vb,c=!!this.jk;b.Ug=3;b.Df=sg(a.clone());Z_(b,c)}};
g.h.Au=function(a,b){if(0!=this.g&&(this.Vb==a||this.nd==a))if(this.Yd=a.si,this.nd==a&&3==this.g)if(7<this.gg){var c;try{c=this.C.parse(b)}catch(f){c=null}if(na(c)&&3==c.length)if(0==c[0])a:{if(!this.af){if(this.Vb)if(this.Vb.Pi+3E3<this.nd.Pi)u0(this),this.Vb.cancel(),this.Vb=null;else break a;B0(this);R_()}}else this.Bt=c[1],0<this.Bt-this.eh&&37500>c[2]&&this.ql&&0==this.Gg&&!this.hg&&(this.hg=a0((0,g.z)(this.tE,this),6E3));else D0(this,11)}else b!=kqa.PO.g&&D0(this,11);else if(this.Vb==a&&u0(this),
!D(b)){c=this.C.parse(b);na(c);for(var d=0;d<c.length;d++){var e=c[d];this.eh=e[0];e=e[1];2==this.g?"c"==e[0]?(this.A=e[1],this.jk=e[2],e=e[3],null!=e?this.gg=e:this.gg=6,this.g=3,this.Rc&&this.Rc.qr(this),this.dr=g0(this,this.Ui()?this.jk:null,this.gn),z0(this)):"stop"==e[0]&&D0(this,7):3==this.g&&("stop"==e[0]?D0(this,7):"noop"!=e[0]&&this.Rc&&this.Rc.pr(this,e),this.Gg=0)}}};
g.h.tE=function(){null!=this.hg&&(this.hg=null,this.Vb.cancel(),this.Vb=null,B0(this),R_())};
g.h.Ik=function(a){var b;if(this.Vb==a)u0(this),this.Vb=null,b=2;else if(this.nd==a)this.nd=null,b=1;else return;this.Yd=a.si;if(0!=this.g)if(a.he)1==b?((0,g.G)(),E0.dispatchEvent(new m0(E0,a.yg?a.yg.length:0)),s0(this),this.B.length=0):z0(this);else{var c=a.pg,d;if(!(d=3==c||7==c||0==c&&0<this.Yd)){if(d=1==b)this.nd||this.wf||1==this.g||2<=this.di?d=!1:(this.wf=a0((0,g.z)(this.Fu,this,a),A0(this,this.di)),this.di++,d=!0);d=!(d||2==b&&B0(this))}if(d)switch(c){case 1:D0(this,5);break;case 4:D0(this,
10);break;case 3:D0(this,6);break;case 7:D0(this,12);break;default:D0(this,2)}}};
g.h.jB=function(a){if(!g.ab(arguments,this.g))throw Error("Unexpected channel state: "+this.g);};
g.h.MI=function(a){a?R_():(R_(),C0(this,8))};
g.h.Hm=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new HG;a.G=!1;return a};
g.h.isActive=function(){return!!this.Rc&&this.Rc.isActive(this)};
g.h.de=function(){E0.dispatchEvent(new n0(E0))};
g.h.Ui=function(){return!(!g.Me||pc(10))};
g.h=F0.prototype;g.h.qr=function(){};
g.h.pr=function(){};
g.h.nr=function(){};
g.h.Bm=function(){};
g.h.bs=function(){return{}};
g.h.isActive=function(){return!0};g.C(H0,g.L);H0.prototype.C=function(){500<this.g&&24E4>2*this.g&&(this.g*=2);this.B();this.A&&this.start()};
H0.prototype.start=function(){this.o.ge(this.g);this.A=(0,g.G)()+this.g};
H0.prototype.stop=function(){this.o.stop();this.A=0};
H0.prototype.isActive=function(){return this.o.isActive()};g.C(I0,F0);g.h=I0.prototype;g.h.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};
g.h.Ka=function(a,b,c){return Df(this.A,a,b,c)};
g.h.Ad=function(a){return this.A.Ad(a)};
g.h.$=function(a,b){return this.A.oc.apply(this.A,arguments)};
g.h.dispose=function(){this.J||(this.J=!0,g.Cb(this.A),J0(this),g.Cb(this.o),this.o=null)};
g.h.isDisposed=function(){return this.J};
g.h.connect=function(a,b,c){if(!this.g||2!=this.g.g){this.H="";this.o.stop();this.C=a||null;this.B=b||0;a=this.L+"/test";b=this.L+"/bind";var d=new k0("1",c?c.firstTestResults:null,c?c.secondTestResults:null,this.O),e=this.g;e&&(e.Rc=null);d.Rc=this;this.g=d;e?this.g.connect(a,b,this.D,e.A,e.eh):c?this.g.connect(a,b,this.D,c.sessionId,c.arrayId):this.g.connect(a,b,this.D)}};
g.h.sendMessage=function(a,b){var c={_sc:a};b&&g.Zb(c,b);this.o.isActive()||2==(this.g?this.g.g:0)?this.F.push(c):K0(this)&&v0(this.g,c)};
g.h.qr=function(){G0(this.o);this.C=null;this.B=0;if(this.F.length){var a=this.F;this.F=[];for(var b=0,c=a.length;b<c;++b)v0(this.g,a[b])}this.$("handlerOpened")};
g.h.nr=function(a,b){var c=2==b&&401==this.g.Yd;if(4!=b&&!c){if(6==b||410==this.g.Yd)c=this.o,c.o.stop(),c.g=500;this.o.start()}this.$("handlerError",b)};
g.h.Bm=function(a,b,c){if(!this.o.isActive())this.$("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.F.push(d)}};
g.h.bs=function(){var a={v:2};this.H&&(a.gsessionid=this.H);0!=this.B&&(a.ui=""+this.B);0!=this.G&&(a.ui=""+this.G);this.C&&g.Zb(a,this.C);return a};
g.h.pr=function(a,b){"S"==b[0]?this.H=b[1]:"gracefulReconnect"==b[0]?(G0(this.o),this.o.start(),r0(this.g)):this.$("handlerMessage",new qpa(b[0],b[1]))};
g.h.lJ=function(){this.o.isActive();var a=this.g,b=0;a.Vb&&b++;a.nd&&b++;0!=b?this.o.start():this.connect(this.C,this.B)};L0.prototype.reset=function(a){this.listId="";N0(this);this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.g=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.o=a.trackData,this.H=a.hasPrevious,this.hasNext=a.hasNext,this.D=a.playerTime,this.A=a.playerTimeAt,this.C=a.seekableStart,this.F=a.seekableEnd,this.G=a.duration,this.L=a.loadedTime,this.B=a.liveIngestionTime,this.J=!(0,window.isNaN)(this.B))};
L0.prototype.gb=function(){return 1==this.g};
L0.prototype.getDuration=function(){return this.J?this.G+((0,g.G)()-this.A)/1E3:this.G};
L0.prototype.clone=function(){return new L0(S0(this))};g.C(V0,g.en);g.h=V0.prototype;g.h.play=function(){1==this.g?(this.o?this.o.play(null,g.v,(0,g.z)(function(){this.Mb("Failed to play video with cast v2 channel.");W0(this,"play")},this)):W0(this,"play"),a1(this,1,P0(hl(this))),this.$("remotePlayerChange")):$0(this,this.play)};
g.h.pause=function(){1==this.g?(this.o?this.o.pause(null,g.v,(0,g.z)(function(){this.Mb("Failed to pause video with cast v2 channel.");W0(this,"pause")},this)):W0(this,"pause"),a1(this,2,P0(hl(this))),this.$("remotePlayerChange")):$0(this,this.pause)};
g.h.gw=function(a){if(1==this.g){if(this.o){var b=hl(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.gb()||3==b.g?window.chrome.cast.media.ResumeState.PLAYBACK_START:window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.o.seek(c,g.v,(0,g.z)(function(){this.Mb("Failed to seek in video with cast v2 channel.");W0(this,"seekTo",{newTime:a})},this))}else W0(this,"seekTo",{newTime:a});
a1(this,3,a);this.$("remotePlayerChange")}else $0(this,g.B(this.gw,a))};
g.h.stop=function(){if(1==this.g){this.o?this.o.stop(null,g.v,(0,g.z)(function(){this.Mb("Failed to stop video with cast v2 channel.");W0(this,"stopVideo")},this)):W0(this,"stopVideo");
var a=hl(this);N0(a);X0(this,a);this.$("remotePlayerChange")}else $0(this,this.stop)};
g.h.setVolume=function(a,b){if(1==this.g){var c=hl(this);if(this.A){if(c.volume!=a){var d=Math.round(a)/100;this.A.setReceiverVolumeLevel(d,(0,g.z)(function(){b1("set receiver volume: "+d)},this),(0,g.z)(function(){this.Mb("failed to set receiver volume.")},this))}c.muted!=b&&this.A.setReceiverMuted(b,(0,g.z)(function(){b1("set receiver muted: "+b)},this),(0,g.z)(function(){this.Mb("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);W0(this,"setVolume",e)}c.muted=b;c.volume=a;X0(this,c)}else $0(this,g.B(this.setVolume,a,b))};
g.h.yv=function(a,b){if(1==this.g){var c=hl(this),d={videoId:a};b&&(c.o={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind},d.style=g.tf(b.style),g.Zb(d,c.o));W0(this,"setSubtitlesTrack",d);X0(this,c)}else $0(this,g.B(this.yv,a,b))};
g.h.fp=function(a,b){if(1==this.g){W0(this,"setAudioTrack",{videoId:a,audioTrackId:b.yc.id});var c=hl(this);c.audioTrackId=b.yc.id;X0(this,c)}else $0(this,g.B(this.fp,a,b))};
g.h.ew=function(a,b){if(1==this.g){if(a&&b){var c=hl(this);R0(c,a,b);X0(this,c)}W0(this,"previous")}else $0(this,g.B(this.ew,a,b))};
g.h.dw=function(a,b){if(1==this.g){if(a&&b){var c=hl(this);R0(c,a,b);X0(this,c)}W0(this,"next")}else $0(this,g.B(this.dw,a,b))};
g.h.Mr=function(){1==this.g?W0(this,"dismissAutoplay"):$0(this,this.Mr)};
g.h.dispose=function(){if(3!=this.g){var a=this.g;this.g=3;this.$("proxyStateChange",a,this.g)}V0.M.dispose.call(this)};
g.h.R=function(){Z0(this);this.B=null;this.C.clear();U0(this,null);V0.M.R.call(this)};
g.h.gp=function(a){if((a!=this.g||2==a)&&3!=this.g&&0!=a){var b=this.g;this.g=a;this.$("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)aO(this.C).apply(this);else 3==a&&this.dispose()}};
g.h.yG=function(a,b){this.$(a,b)};
g.h.yE=function(a){if(!a)this.Ii(null),U0(this,null);else if(this.A.receiver.volume){a=this.A.receiver.volume;var b=hl(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)b1("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,X0(this,b)}};
g.h.Ii=function(a){b1("Cast media: "+!!a);this.o&&this.o.removeUpdateListener(this.G);if(this.o=a)this.o.addUpdateListener(this.G),c1(this),this.$("remotePlayerChange")};
g.h.xE=function(a){a?(c1(this),this.$("remotePlayerChange")):this.Ii(null)};
g.h.HE=function(){var a=G_();a&&U0(this,a)};
g.h.Mb=function(a){lZ("CP",a)};g.C(d1,g.en);g.h=d1.prototype;g.h.connect=function(a,b){if(b){var c=b.listId,d=b.videoId,e=b.index,f=b.currentTime||0;5>=f&&(f=0);var k={videoId:d,currentTime:f};c&&(k.listId=c);g.p(e)&&(k.currentIndex=e);c&&(this.Va.listId=c);this.Va.videoId=d;this.Va.index=e||0;this.Va.state=3;O0(this.Va,f);this.B="UNSUPPORTED";e1("Connecting with setPlaylist and params: "+g.tf(k));this.g.connect({method:"setPlaylist",params:g.tf(k)},a,LZ())}else e1("Connecting without params"),this.g.connect({},a,LZ());wpa(this)};
g.h.dispose=function(){this.isDisposed()||(this.$("beforeDispose"),f1(this,3));d1.M.dispose.call(this)};
g.h.R=function(){g1(this);i1(this);h1(this);g.ch(this.H);this.H=window.NaN;g.ch(this.J);this.J=window.NaN;this.A=null;g.Wj(this.P);this.P.length=0;this.g.dispose();d1.M.R.call(this);this.B=this.F=this.o=this.Va=this.g=null};
g.h.EB=function(){this.D(2)};
g.h.CE=function(){e1("Channel opened");this.N&&(this.N=!1,h1(this),this.O=g.ah((0,g.z)(function(){e1("Timing out waiting for a screen.");this.D(1)},this),15E3));
hpa(tpa(this.g),this.Z)};
g.h.zE=function(){e1("Channel closed");(0,window.isNaN)(this.C)?OZ(!0):OZ();this.dispose()};
g.h.AE=function(a){OZ();(0,window.isNaN)(this.G())?(e1("Channel error: "+a+" without reconnection"),this.dispose()):(this.N=!0,e1("Channel error: "+a+" with reconnection in "+this.G()+" ms"),f1(this,2))};
g.h.BE=function(a){a.params?e1("Received: action="+a.action+", params="+g.tf(a.params)):e1("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=g.pf(a.params.devices);this.o=(0,g.S)(a,function(a){return new EZ(a)});
a=!!g.Xa(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
l1(this,a);break;case "loungeScreenDisconnected":fb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
l1(this,!1);break;case "remoteConnected":var b=new EZ(g.pf(a.params.device));g.Xa(this.o,function(a){return b?a.id==b.id:!1})||g.cb(this.o,b);
break;case "remoteDisconnected":b=new EZ(g.pf(a.params.device));fb(this.o,function(a){return b?a.id==b.id:!1});
break;case "gracefulDisconnect":break;case "playlistModified":m1(this,a);break;case "nowPlaying":zpa(this,a);break;case "onStateChange":n1(this,a);break;case "onAdStateChange":Apa(this,a);break;case "onVolumeChanged":Bpa(this,a);break;case "onSubtitlesTrackChanged":ypa(this,a);break;case "nowAutoplaying":Cpa(this,a);break;case "autoplayDismissed":this.$("autoplayDismissed");break;case "autoplayUpNext":this.F=a.params.videoId||null;this.$("autoplayUpNext",this.F);break;case "onAutoplayModeChanged":this.B=
a.params.autoplayMode;this.$("autoplayModeChange",this.B);"DISABLED"==this.B&&this.$("autoplayDismissed");break;case "onHasPreviousNextChanged":Dpa(this,a);break;default:e1("Unrecognized action: "+a.action)}};
g.h.mI=function(){if(this.A){var a=this.A;this.A=null;this.Va.videoId!=a&&j1(this,"getNowPlaying")}};
d1.prototype.subscribe=d1.prototype.subscribe;d1.prototype.unsubscribeByKey=d1.prototype.Ad;d1.prototype.ga=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.G())?K0(this.g)&&(0,window.isNaN)(this.C)&&(a=1):a=2);return a};
d1.prototype.getProxyState=d1.prototype.ga;d1.prototype.D=function(a){e1("Disconnecting with "+a);g1(this);this.$("beforeDisconnect",a);1==a&&OZ();J0(this.g,a);this.dispose()};
d1.prototype.disconnect=d1.prototype.D;d1.prototype.fa=function(){var a=this.Va;this.A&&(a=this.Va.clone(),R0(a,this.A,a.index));return S0(a)};
d1.prototype.getPlayerContextData=d1.prototype.fa;
d1.prototype.na=function(a){var b=new L0(a);b.videoId&&b.videoId!=this.Va.videoId&&(this.A=b.videoId,g.ch(this.H),this.H=g.ah((0,g.z)(this.mI,this),5E3));var c=[];this.Va.listId==b.listId&&this.Va.videoId==b.videoId&&this.Va.index==b.index||c.push("remoteQueueChange");this.Va.g==b.g&&this.Va.volume==b.volume&&this.Va.muted==b.muted&&P0(this.Va)==P0(b)&&g.tf(this.Va.o)==g.tf(b.o)||c.push("remotePlayerChange");this.Va.reset(a);(0,g.H)(c,function(a){this.$(a)},this)};
d1.prototype.setPlayerContextData=d1.prototype.na;d1.prototype.V=function(){var a=this.g.D.id,b=g.Xa(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
d1.prototype.getOtherConnectedRemoteId=d1.prototype.V;d1.prototype.G=function(){var a=this.g;return a.o.isActive()?a.o.A-(0,g.G)():window.NaN};
d1.prototype.getReconnectTimeout=d1.prototype.G;d1.prototype.ba=function(){return this.B||"UNSUPPORTED"};
d1.prototype.getAutoplayMode=d1.prototype.ba;d1.prototype.da=function(){return this.F||""};
d1.prototype.getAutoplayVideoId=d1.prototype.da;d1.prototype.ra=function(){if(!(0,window.isNaN)(this.G())){var a=this.g.o;g.Jd(a.o);a.start()}};
d1.prototype.reconnect=d1.prototype.ra;d1.prototype.la=function(a,b){j1(this,a,b);k1(this)};
d1.prototype.sendMessage=d1.prototype.la;g.C(o1,BZ);g.h=o1.prototype;g.h.ud=function(a){return this.Hc.$_gs(a)};
g.h.contains=function(a){return!!this.Hc.$_c(a)};
g.h.get=function(a){return this.Hc.$_g(a)};
g.h.start=function(){this.Hc.$_st()};
g.h.zl=function(a,b,c){this.Hc.$_a(a,b,c)};
g.h.remove=function(a,b,c){this.Hc.$_r(a,b,c)};
g.h.nl=function(a,b,c,d){this.Hc.$_un(a,b,c,d)};
g.h.R=function(){for(var a=0,b=this.o.length;a<b;++a)this.Hc.$_ubk(this.o[a]);this.o.length=0;this.Hc=null;o1.M.R.call(this)};
g.h.pJ=function(){this.$("screenChange")};
g.h.eG=function(){this.$("onlineScreenChange")};
a_.prototype.$_st=a_.prototype.start;a_.prototype.$_gspc=a_.prototype.qJ;a_.prototype.$_gsppc=a_.prototype.jw;a_.prototype.$_c=a_.prototype.contains;a_.prototype.$_g=a_.prototype.get;a_.prototype.$_a=a_.prototype.zl;a_.prototype.$_un=a_.prototype.nl;a_.prototype.$_r=a_.prototype.remove;a_.prototype.$_gs=a_.prototype.ud;a_.prototype.$_gos=a_.prototype.iw;a_.prototype.$_s=a_.prototype.subscribe;a_.prototype.$_ubk=a_.prototype.Ad;var p1=null,q1=null,G1=null,u1=[];g.C(J1,g.L);g.h=J1.prototype;
g.h.R=function(){J1.M.R.call(this);L1(this);U1(this);this.J();this.o.g.removeEventListener("onVolumeChange",this.Hk,this);this.o.g.removeEventListener("onCaptionsTrackListChanged",this.lu,this);this.o.g.removeEventListener("captionschanged",this.bu,this);this.o.g.removeEventListener("videoplayerreset",this.Li,this);this.o.g.removeEventListener("captionssettingschanged",this.Fo,this);this.o.g.removeEventListener("mdxautoplaycancel",this.ir,this);this.g.Ka("proxyStateChange",this.zu,this);this.g.Ka("remotePlayerChange",
this.Ki,this);this.g.Ka("remoteQueueChange",this.Li,this);this.g.Ka("autoplayUpNext",this.$t,this);this.g.Ka("previousNextChange",this.wu,this);this.g.Ka("nowAutoplaying",this.ou,this);this.g.Ka("autoplayDismissed",this.Zt,this);this.g=this.o=null};
g.h.Dx=function(a,b){2==this.g.g||(O1(this)?this.WB.apply(this,arguments):this.TB.apply(this,arguments))};
g.h.bu=function(a){this.Dx("control_subtitles_set_track",g.Tb(a)?null:a)};
g.h.Fo=function(){var a=this.o.g.Dc("captions","track");g.Tb(a)||Q1(this,a)};
g.h.TB=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":R1(this,this.o.g.getCurrentTime());break;case "control_seek":R1(this,c[0]);break;case "control_subtitles_set_track":Q1(this,c[0]);break;case "control_set_audio_track":c=c[0],O1(this)&&this.g.fp(P1(this),c)}};
g.h.WB=function(a,b){if(1081!=hl(this.g).g||"control_seek"!=a){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":hl(this.g).gb()?this.g.pause():this.g.play();break;case "control_play":this.g.play();break;case "control_pause":this.g.pause();break;case "control_seek":this.G.Tg(c[0],c[1]);break;case "control_subtitles_set_track":Q1(this,c[0]);break;case "control_set_audio_track":c=c[0],O1(this)&&this.g.fp(P1(this),c)}}};
g.h.Hk=function(a){if(O1(this)){this.g.Ka("remotePlayerChange",this.Ki,this);var b=Math.round(a.volume);a=!!a.muted;var c=hl(this.g);if(b!=c.volume||a!=c.muted)this.g.setVolume(b,a),this.H.start();this.g.subscribe("remotePlayerChange",this.Ki,this)}};
g.h.lu=function(){g.Tb(this.A)||S1(this,this.A);this.B=!1};
g.h.zu=function(a,b){U1(this);2==b&&this.Ev()};
g.h.Ki=function(){if(O1(this)){L1(this);var a=hl(this.g);switch(a.g){case 1081:M1(this,new Kk(8));break;case 1:T1(this);M1(this,new Kk(8));break;case 1083:case 3:M1(this,new Kk(9));break;case 0:M1(this,new Kk(2));this.G.stop();K1(this,this.o.g.getVideoData().lengthSeconds);break;case 1082:M1(this,new Kk(4));break;case 2:M1(this,new Kk(4));K1(this,P0(a));break;case -1:M1(this,new Kk(64));break;case -1E3:a={errorCode:"mdx.remoteerror",message:g.Q("YTP_MDX_PLAYER_ERROR")},M1(this,new Kk(128,a))}var a=
hl(this.g).o,b=this.A;(a||b?a&&b&&a.trackName==b.trackName&&a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.format==b.format&&a.kind==b.kind:1)||(this.A=a,S1(this,a));a=hl(this.g);-1==a.volume||Math.round(this.o.g.getVolume())==a.volume&&this.o.g.Bd()==a.muted||this.H.isActive()||this.Pv()}else N1(this)};
g.h.wu=function(){this.o.g.Ra("mdxpreviousnextchange")};
g.h.Li=function(){O1(this)||N1(this)};
g.h.ir=function(){this.g.Mr()};
g.h.$t=function(a){a&&(a=g.li("/watch_queue_ajax",{method:"GET",Bc:{action_get_watch_queue_item:1,video_id:a},Cb:(0,g.z)(this.sH,this)}))&&(this.J=(0,g.z)(a.abort,a))};
g.h.sH=function(a,b){var c=new g.Sx({videoId:b.videoId,title:b.title,author:b.author,murlmq_webp:b.url});this.suggestion=c;this.o.g.Ra("mdxautoplayupnext",c)};
g.h.ou=function(a){(0,window.isNaN)(a)||this.o.g.Ra("mdxnowautoplaying",a)};
g.h.Zt=function(){this.o.g.Ra("mdxautoplaycanceled")};
g.h.LL=function(a,b){-1==hl(this.g).g?R1(this,a):b&&this.g.gw(a)};
g.h.Pv=function(){if(O1(this)){var a=hl(this.g);this.o.g.removeEventListener("onVolumeChange",this.Hk,this);a.muted?this.o.g.mute():this.o.g.Vf();this.o.g.setVolume(a.volume);this.o.g.addEventListener("onVolumeChange",this.Hk,this)}};
g.h.Ev=function(){U1(this);L1(this);var a=this.g.B.getReconnectTimeout();2!=this.g.g||(0,window.isNaN)(a)||(this.D=g.ah((0,g.z)(this.Ev,this),1E3))};g.C(W1,dS);g.h=W1.prototype;g.h.zd=function(){return!0};
g.h.create=function(){W1.M.create.call(this);Ipa("embedded"==g.V(this.g).g);this.D.push(ci("yt-remote-before-disconnect",this.uE,this));this.D.push(ci("yt-remote-connection-change",this.GG,this));this.D.push(ci("yt-remote-receiver-availability-change",this.xu,this));this.D.push(ci("yt-remote-auto-connect",this.EG,this));this.D.push(ci("yt-remote-receiver-resumed",this.DG,this));this.xu()};
g.h.load=function(){this.g.Dh();W1.M.load.call(this);this.C=new J1(this,this.o);var a;a=(a=I1())?a.currentTime:0;var b=F1()?new V0(A1(),void 0):null;0==a&&b&&(a=P0(hl(b)));0!=a&&(this.J=a||0,this.g.Ra("progresssync",a,void 0));V1(this,this.G,this.G)};
g.h.unload=function(){this.g.Ra("mdxautoplaycanceled");this.B=this.A;g.Db(this.C,this.o);this.o=this.C=null;W1.M.unload.call(this)};
g.h.R=function(){di(this.D);W1.M.R.call(this)};
g.h.kf=function(a,b){this.loaded&&this.C.Dx.apply(this.C,arguments)};
g.h.hasNext=function(){return this.o?hl(this.o).hasNext:!1};
g.h.getCurrentTime=function(){return this.J};
g.h.uE=function(a){1==a&&(this.L=this.o?hl(this.o):null)};
g.h.GG=function(){var a=F1()?new V0(A1(),void 0):null;if(a){var b=this.B;this.loaded&&this.unload();this.o=a;this.L=null;b.key!=this.A.key&&(this.B=b,this.load())}else g.Cb(this.o),this.o=null,this.loaded&&(this.unload(),(a=this.L)&&a.videoId==this.g.getVideoData().videoId&&this.g.Ec(P0(a)));this.g.Ra("videodatachange","newdata",this.g.getVideoData(),3)};
g.h.xu=function(){this.H=[this.A].concat(Jpa());var a=B1()||this.A;X1(this,a,!this.loaded);this.g.ya("onMdxReceiversChange")};
g.h.EG=function(){var a=B1();X1(this,a)};
g.h.DG=function(){this.B=B1()};
g.h.Bg=function(a,b){switch(a){case "casting":return this.loaded;case "receivers":return this.H;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?I_():X1(this,b)),this.loaded?this.B:this.A;case "quickCast":return 2==this.H.length&&"cast-selector-receiver"==this.H[1].key?(b&&I_(),!0):!1}};
g.h.Yf=function(){return["casting","receivers","currentReceiver","quickCast"]};g.C(Y1,g.zy);Y1.B="(max-width: 656px)";Y1.A="(min-width: 657px)";Y1.o="(min-width: 1294px) and (min-height: 630px)";Y1.g="(min-width: 1720px) and (min-height: 980px)";g.h=Y1.prototype;g.h.initialize=function(a){this.P=g.y(a)?window.document.getElementById(a):a;this.Fa(this.P)};
g.h.zC=function(){this.F=new g.yf(0,0,0,0);this.C=new g.yf(0,0,0,0)};
g.h.yp=function(a){Nd(this.element,arguments)};
g.h.$f=function(){if(this.o){var a=this.Sa();if(!a.isEmpty()){var b=this.C,b=!g.Ae(a,new g.ze(b.width,b.height)),c=Z1(this);b&&(this.C.width=a.width,this.C.height=a.height);a=this.app.W;(c||b||a.la)&&this.$("resize")}}};
g.h.QL=function(a,b){a2(this,b)};
g.h.RL=function(a){a.getVideoData()&&a2(this,a.getVideoData())};
g.h.Sa=function(){var a=this.app.W,b=vh()==this.element;if(b&&Oh())return new g.ze(window.outerWidth,window.outerHeight);if(b||a.Kh){var c;window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.D&&this.D.media==a||(this.D=window.matchMedia(a)),c=this.D&&this.D.matches);if(c)return new g.ze(window.innerWidth,window.innerHeight)}else if(this.Z&&!this.app.ra)for(a=0;a<this.Z.length;a++)if(b=this.Z[a],b.query.matches)return new g.ze(b.size.width,b.size.height);
return new g.ze(this.element.clientWidth,this.element.clientHeight)};
g.h.YB=function(){this.o&&AW(this);(this.app.W.experiments.g("player_state_change_resize_killswitch")||f2(this)!=this.N)&&this.$f()};
g.h.R=function(){this.B&&(this.B.disconnect(),this.B=null);this.H&&di(this.H);this.o=this.A=this.P=null;Y1.M.R.call(this)};g.la(g2);var Z5=u("yt.player.utils.VideoTagPool.instance")||g2.getInstance();g.ka("yt.player.utils.VideoTagPool.instance",Z5,void 0);g.h=g2.prototype;g.h.Tr=function(a){if(!(this.g.length>=a)){a-=this.g.length;for(var b=0;b<a;b++)i2(this)}};
g.h.zB=function(a,b){if(this.g.length)return this.g.pop();var c=i2(this,a,b);a||g.eb(this.g,c);return c};
g.h.hI=function(a){if(a&&g.ab(this.o,a)){a.src&&(Ck&&0<a.readyState&&(a.currentTime=Math.max(nqa,0)),a.removeAttribute("src"),a.load(),a.g&&a.g.o&&(a.g&&a.g.dispose(),a.g=null));for(var b in Tj)Tj[b][0]==a&&g.Wj(b);g.eb(this.o,a);g.eb(this.A,a)}};
g.h.AC=function(a){return this.g.length>=(a||1)};
g.h.DA=function(){for(var a=this.A.length-1;0<=a;a--)h2(this,this.A[a]);this.g.length==this.o.length&&4<=this.g.length||(4>this.o.length?this.Tr(4):(this.g=[],(0,g.H)(this.o,function(a){h2(this,a)},this)))};
g2.prototype.fillPool=g2.prototype.Tr;g2.prototype.getTag=g2.prototype.zB;g2.prototype.releaseTag=g2.prototype.hI;g2.prototype.hasTags=g2.prototype.AC;g2.prototype.activateTags=g2.prototype.DA;g.C(j2,g.en);g.h=j2.prototype;g.h.ML=function(a){a=bk(a);if(!ye(a,this.A)){var b=2;this.D&&(b|=8);this.A=a;this.Tb(b,!0)}};
g.h.OD=function(){this.D&&this.Tb(8,!0);this.Tb(2,!1)};
g.h.Hx=function(a){var b=bk(a);ye(b,this.A)||(this.A=b,(a=g.Yj(a))&&this.P(a)&&(this.Tb(4,!0),this.g.Ca(this.O),this.O=null,this.J=this.g.U(this.B,"mouseout",this.NL)))};
g.h.NL=function(a){a=ak(a);a&&this.P(a)||(this.A=new xe(window.NaN,window.NaN),k2(this))};
g.h.xD=function(){this.Tb(1,!0)};
g.h.nB=function(a){a=g.Yj(a);a instanceof window.Element&&!(0<a.tabIndex)||this.Tb(1,!0)};
g.h.Gx=function(){this.D=!0;this.g.Ca(this.C);this.C=this.g.U(window.document,"mouseup",this.OL)};
g.h.OL=function(){this.D=!1;this.Tb(8,!1);this.g.Ca(this.C);this.C=this.g.U(this.B,"mousedown",this.Gx)};
g.h.Ix=function(a){if(a=a.changedTouches[0])this.V=a.identifier,this.g.Ca(this.F),this.F=this.g.U(this.B,"touchend",this.PL,void 0,!0),this.Tb(1024,!0)};
g.h.PL=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.V){b=d;break}}b&&(this.g.Ca(this.F),this.F=this.g.U(this.B,"touchstart",this.Ix,void 0,!0),this.Tb(1024,!1))};
g.h.Tb=function(a,b){this.isDisposed();var c=!this.o;b?(this.o|=a,a&1&&this.G.start(),a&2&&this.H.start()):(this.o&=~a,a&1&&this.G.stop(),a&2&&this.H.stop(),a&512&&this.L.stop());this.o&512&&!(this.o&128)&&this.L.ge(this.N);var d=!this.o;c!=d&&this.$("autohideupdate",d)};g.C(l2,g.W);l2.prototype.H=function(a,b){g.ch(this.o);this.context&&(this.o=sn((0,g.z)(this.H,this,a,b),b),a.call(this,new Date-this.G))};
l2.prototype.R=function(){g.ch(this.o);this.context=null;l2.M.R.call(this)};g.C(n2,l2);n2.prototype.show=function(){n2.M.show.call(this);var a=this.L;this.G=new Date;this.H(a,75)};
n2.prototype.L=function(){var a=1-1/1.5;this.A=(this.A+this.F)%(this.width*a);this.B=(this.B+this.D)%(this.height*a);this.context.drawImage(this.J,-1*this.A,-1*this.B);this.context.fillRect(0,this.C,this.width,75);this.C=(this.C+75+7)%this.height-75};
n2.prototype.ma=function(){g.ch(this.o);n2.M.ma.call(this)};g.C(q2,g.W);var Wpa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;q2.prototype.show=function(){q2.M.show.call(this);this.o&&this.o.show()};
q2.prototype.ma=function(){q2.M.ma.call(this);this.o&&this.o.ma()};
q2.prototype.C=function(a){if(g.Ey(a,this.A,!Gx(g.V(this.A)))){a={as3:!1,html5:!0,player:!0,cpn:this.A.getVideoData().clientPlaybackNonce};var b=this.A;b.ya("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&g.jl(b)}};g.C(u2,g.W);g.C(w2,g.W);w2.prototype.show=function(){w2.M.show.call(this);this.G()};
w2.prototype.ma=function(){w2.M.ma.call(this);this.F.stop()};
w2.prototype.G=function(){var a=g.el(this.o),b=this.o.getVideoData(),c=this.o.B.o,d=this.o.W,e=a.cn(),f=GU(a.Z,"bandwidth"),k=8*g.Va(f)/1024,l=GU(a.Z,"networkactivity"),m=g.Va(l)/1024,n=b.o,q;q=this.o;q=(q=q.o&&q.o.L)?q.C.$a():[0];var t=g.Va(q),w=GU(a.Z,"bufferhealth"),x=g.Va(w),t=120<t||0>t?"Uncertain":t.toFixed(1)+" s, "+(b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming"),A=a.D?a.D.g:null,F=A&&A.g,I=g.Hx(),K=gy(b,a.getCurrentTime()),K=K?K.sequence:window.NaN,
Ua=b.videoId,lb=b.clientPlaybackNonce,gb=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.B?kU(a.B):"",xd;a:{if(b.fa&&(xd=b.fa.match(/url=(https?)/))&&2==xd.length){xd=xd[1];break a}xd=""}c={video_id:Ua,cpn:lb,cpn_style:gb,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:xd||d.ga,dimensions:c.clientWidth+" x "+c.clientHeight+(1<I?" * "+I:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.o.Kb.getVolume())+
"%",bandwidth_kbps:k.toFixed(0)+" Kbps",buffer_health_seconds:x.toFixed(1)+" s",live_latency_style:n?"":"display:none",live_latency_message:t,drm_style:F?"":"display:none",drm:F?A.g+" / "+A.o:"",sequence_number:K,sequence_number_style:"display:none",network_activity_bytes:m.toFixed(0)+" KB"};b.A&&(d=Ei(b.A)?"yes":"no",d+=" ("+Bi(b.A),b.D&&Ei(b.A)&&(d+="/"+Bi(b.D)),c.dash=d+")",c.mime=b.A.mimeType,d=b.A.video.fps,1<d&&(c.resolution+="@"+d),b.A.video.g||b.A.video.primaries?(d=b.A.video.g||"unknown",
"smpte2084"==d?d+=" (PQ)":"arib-std-b67"==d&&(d+=" (HLG)"),c.color=d+" / "+(b.A.video.primaries||"unknown"),c.color_style=""):c.color_style="display:none");v2(this.A,f);v2(this.D,l);v2(this.C,q);v2(this.B,w);this.update(c);this.F.start()};g.C(x2,g.L);x2.prototype.get=function(a){var b=g.Xa(this.o,function(b){return b[0]==a});
return b?b[1]:null};
x2.prototype.set=function(a,b){this.remove(a,!0);for(this.o.push([a,b]);this.o.length>this.A;){var c=this.o.shift();this.g&&this.g(c[1])}};
x2.prototype.remove=function(a,b){if(b&&this.g){var c=this.get(a);if(c)this.g(c);else return}fb(this.o,function(b){return b[0]==a})};
x2.prototype.R=function(){this.g&&(0,g.H)(this.o,function(a){this.g(a[1])},this)};g.C(g.z2,uk);g.h=g.z2.prototype;g.h.fI=function(a,b){null!=b.duration&&(this.P=b.duration);null!=b.currentTime&&(this.G=b.currentTime);null!=b.readyState&&(this.O=b.readyState);g.p(b.errorCode)&&(this.V=b.errorCode);null!=b.volume&&(this.J=b.volume);null!=b.muted&&(this.F=!!b.muted);null!=b.paused&&(this.A=!!b.paused);null!=b.g&&(this.L=!!b.g);this.dispatchEvent(new Hk(this,a,null))};
g.h.tg=function(){return!1};
g.h.ad=function(){return this.N};
g.h.Nl=function(a){this.N=a;this.g.g("setSource",a)};
g.h.Tu=function(){this.Nl("")};
g.h.load=function(){y2(this);this.g.g("load")};
g.h.play=function(){this.A=!1;this.g.g("play")};
g.h.getCurrentTime=function(){return this.G};
g.h.Ml=function(a){this.G=a;this.g.g("setCurrentTime",a)};
g.h.getDuration=function(){return this.P};
g.h.Fh=function(){return this.A};
g.h.Cg=function(){return this.L};
g.h.pause=function(){this.A=!0;this.g.g("pause")};
g.h.oe=function(){return this.O};
g.h.vb=function(){return this.V};
g.h.zp=function(){return this.F};
g.h.oj=function(a){this.F=a;this.g.g("setMuted",a)};
g.h.getVolume=function(){return this.J};
g.h.setVolume=function(a){this.J=a;this.g.g("setVolume",a)};
g.h.Rr=function(a){this.H.contains(a)||(Lm(this.H,a),this.g.g("listen",a))};
g.h.R=function(){this.g.g("disposed");this.H.clear();g.z2.M.R.call(this)};
g.h.Ym=function(){return 2};
g.h.Kx=function(){};
g.h.Cp=function(){};
g.h.Ap=function(){return 1};
g.h.Dp=function(){};
g.h.Nx=function(){return!1};
g.h.fk=function(){return mk()};
g.h.ef=function(){return mk()};
g.h.gk=function(){return mk()};
g.h.Lx=function(){return{}};
g.h.Mx=function(){return!1};
g.h.Ox=function(){return!1};
g.h.Px=function(){};
g.h.qs=function(){return new xe};
g.h.Bp=function(){return new g.ze(0,0)};
g.h.setSize=function(){};
g.h.xo=function(){};
g.h.setAttribute=function(){};
g.h.removeAttribute=function(){};
g.h.hasAttribute=function(){return!1};
g.h.Fj=ba(0);g.h.fl=ba(2);g.h.Jx=function(){};
g.h.gd=function(){};
g.h.getStyle=function(){return""};g.C(A2,g.L);A2.prototype.A=function(a){this.o=a[a.length-1].intersectionRatio};
A2.prototype.R=function(){A2.M.R.call(this);this.o=null;this.g&&this.g.disconnect()};g.e8=Xc(function(){var a=r.AudioContext||r.webkitAudioContext;try{return new a}catch(b){return b.name}});g.C(B2,g.zy);B2.prototype.B=function(){var a=this.A.Wf();this.D.style.width=100*kW(new hW(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
B2.prototype.C=function(){g.Ix(g.V(this.A))||(2==this.A.Za()?this.o||(this.show(),this.o=this.U(this.A,"progresssync",this.B),this.B()):this.o&&(this.ma(),this.Ca(this.o),this.o=null))};g.C(C2,g.W);C2.prototype.show=function(){C2.M.show.call(this);this.o.ge()};
C2.prototype.ma=function(){this.A.stop();C2.M.ma.call(this)};g.C(H2,g.W);H2.prototype.R=function(){this.o&&this.o();H2.M.R.call(this)};
H2.prototype.C=function(){g.fi("iv-button-mouseover")};
H2.prototype.B=function(a){g.ql(this.aa);var b=g.Md(this.aa.getRootNode(),"ytp-cards-teaser-shown");g.fi("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.aa.kj(!rl(this.aa),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.C(J2,g.zy);g.h=J2.prototype;g.h.show=function(){var a=L2(this);J2.M.show.call(this);this.da&&(this.J.U(window,"blur",this.Ob),this.J.U(window.document,"click",this.CM));a||this.$("show",!0)};
g.h.ma=function(){var a=L2(this);J2.M.ma.call(this);K2(this);a&&this.$("show",!1)};
g.h.ag=function(a,b){this.C=a;this.N.show();b?(this.H||(this.H=this.J.U(this.aa,"appresize",this.Xq)),this.Xq()):this.H&&(this.J.Ca(this.H),this.H=null);a&&(a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&g.df(a,window.document.activeElement)&&this.focus())};
g.h.Xq=function(){D5(this.V,this.element,this.C)};
g.h.Ob=function(){var a=L2(this);K2(this);g.nq(this.N);a&&this.$("show",!1)};
g.h.Sf=function(a,b){L2(this)?this.Ob():this.ag(a,b)};
g.h.CM=function(a){var b=Zj(a);b&&(g.df(this.element,b)||this.C&&g.df(this.C,b)||!g.By(a))||this.Ob()};g.C(M2,J2);g.h=M2.prototype;g.h.show=function(){M2.M.show.call(this);this.ol()};
g.h.ma=function(){M2.M.ma.call(this);1<this.o.length&&Q2(this)};
g.h.ol=function(){R2(this);this.g&&(N2(this),g.hj(this.element,this.size))};
g.h.Mf=function(){var a=this.o.pop();O2(this,a,this.o[this.o.length-1],!0)};
g.h.JI=function(a,b,c){this.F.dispose();this.F=null;g.O(this.element,"ytp-popup-animating");c?(g.O(a.element,"ytp-panel-animate-forward"),g.Pd(b.element,"ytp-panel-animate-back")):(g.O(a.element,"ytp-panel-animate-back"),g.Pd(b.element,"ytp-panel-animate-forward"));g.hj(this.element,this.size);this.D=new g.Id(g.B(this.fE,a,b),250,this);this.D.start()};
g.h.fE=function(a){g.Pd(this.element,"ytp-popup-animating");a.detach();Qd(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.D.dispose();this.D=null};
g.h.tM=function(a){if(!g.dk(a))switch(ek(a)){case 27:this.Ob();g.ck(a);break;case 37:1<this.o.length&&this.Mf();g.ck(a);break;case 39:g.ck(a)}};
g.h.focus=function(){this.o[this.o.length-1].focus()};
g.h.R=function(){M2.M.R.call(this);this.F&&this.F.dispose();this.D&&this.D.dispose()};g.C(T2,g.zy);T2.prototype.Ea=function(a,b){T2.M.Ea.call(this,a,b);this.$("size-change")};g.C(V2,g.zy);V2.prototype.ga=function(){this.$("size-change")};
V2.prototype.focus=function(){this.ca.focus()};
V2.prototype.la=function(){this.$("back")};g.C(W2,V2);W2.prototype.ba=function(){this.A.$("size-change")};
W2.prototype.focus=function(){for(var a=0,b=0;b<this.o.length;b++)if("true"==this.o[b].element.getAttribute("aria-checked")){a=b;break}this.o[a].focus()};g.C(Y2,T2);Y2.prototype.o=function(a){g.dk(a)||39!=ek(a)||(this.element.click(),g.ck(a))};g.C($2,T2);$2.prototype.H=function(){a3(this,!this.o);this.$("select",this.o)};
$2.prototype.getValue=function(){return this.o};g.C(d3,W2);g.h=d3.prototype;g.h.TD=function(a){g.By(a)&&this.aa.fd();this.N.Ob();g.Ol(this.aa,this.H)};
g.h.SE=function(){tn(this.J.element)};
g.h.kF=function(){e3(this,this.aa.ej(!0))&&D2(this.Z.F,{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",X:{d:"M13.5 24.3L7.2 18.0l-2.1 2.1L13.5 28.5 31.5 10.5l-2.1-2.1L13.5 24.3z",fill:"#fff"}}]})};
g.h.lF=function(){e3(this,this.aa.uw())&&D2(this.Z.F,g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-code"]}:{K:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",X:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]});g.Ol(this.aa,this.B)};
g.h.oF=function(){e3(this,this.aa.getVideoUrl(!0,!0))&&D2(this.Z.F,Jg());g.Ol(this.aa,this.D)};
g.h.nF=function(){e3(this,this.aa.getVideoUrl(!1,!0))&&D2(this.Z.F,Jg());g.Ol(this.aa,this.C)};
g.h.DF=function(a){a3(this.G,a)};
g.h.EF=function(){var a=this.G.getValue();q6(this.aa.app,a);this.N.Ob();g.Ol(this.aa,this.G)};
g.h.IG=function(a){var b=g.el(this.aa.app);b&&b.cj(new g.ti("feedback",!1,{gpu:Ik()}));if(g.Ey(a,this.aa,!Gx(g.V(this.aa)))){a=this.aa;var b={as3:!1,html5:!0,player:!0},c=a.ys();c.debug_error&&(b.player_error=c.debug_error.errorCode,b.player_error_details=c.debug_error.errorDetail);b.debug_text=a.ej(!0);a.ya("onFeedbackStartRequest",b);a.isFullscreen()&&g.jl(a)}this.N.Ob()};
g.h.YG=function(){this.aa.Aw();this.N.Ob()};
g.h.bM=function(a,b){c3(this,b)};g.C(h3,M2);g.h=h3.prototype;g.h.show=function(){this.B||(this.B=new d3(this.A,this.V,this),g.M(this,this.B),P2(this,this.B));h3.M.show.call(this);g.Pl(this.A,this,!0);f3(this.B,!0)};
g.h.ma=function(){g3(this);h3.M.ma.call(this);g.Pl(this.A,this,!1);this.B&&f3(this.B,!1)};
g.h.RE=function(a){var b=Zj(a);if(!(this.g||b&&(mf(b,"a")||nf(b,"ytp-no-contextmenu")))){g.ck(a);i3(this);this.element.style.left="";this.element.style.top="";var c=bk(a);c.x++;c.y++;this.ag();b=bj(window.document.body);a=this.size;c=c.clone();a=a.clone();if(b){var d=c,e=a,f=5;65==(f&65)&&(d.x<b.left||d.x>=b.right)&&(f&=-2);132==(f&132)&&(d.y<b.top||d.y>=b.bottom)&&(f&=-5);d.x<b.left&&f&1&&(d.x=b.left);if(f&16){var k=d.x;d.x<b.left&&(d.x=b.left);d.x+e.width>b.right&&(e.width=Math.min(b.right-d.x,
k+e.width-b.left),e.width=Math.max(e.width,0))}d.x+e.width>b.right&&f&1&&(d.x=Math.max(b.right-e.width,b.left));d.y<b.top&&f&4&&(d.y=b.top);f&32&&(k=d.y,d.y<b.top&&(d.y=b.top),d.y+e.height>b.bottom&&(e.height=Math.min(b.bottom-d.y,k+e.height-b.top),e.height=Math.max(e.height,0)));d.y+e.height>b.bottom&&f&4&&(d.y=Math.max(b.bottom-e.height,b.top))}b=new g.yf(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;g.Yi(this.element,Bf(b));g.kr(this.G);this.G.U(window.document,"contextmenu",
this.ZE);this.G.U(this.A,"fullscreentoggled",this.cM);this.G.U(this.A,"pageTransition",this.hG)}};
g.h.ZE=function(a){g.dk(a)||g.df(this.element,Zj(a))||this.Ob()};
g.h.cM=function(){this.Ob();i3(this)};
g.h.hG=function(){this.Ob()};g.C(j3,g.Jy);g.h=j3.prototype;g.h.show=function(){this.g||(this.G.U(this.o,"videodatachange",this.C.ge,this.C),this.G.U(this.o,"videoplayerreset",this.C.ge,this.C));j3.M.show.call(this)};
g.h.ma=function(){g.kr(this.G);j3.M.ma.call(this)};
g.h.dM=function(){this.D.isActive()||(this.F.show(),this.D.start())};
g.h.eM=function(){this.D.isActive()&&(this.D.stop(),g.nq(this.F))};
g.h.XF=function(){g.nq(this.F)};
g.h.fM=function(a){120<g.Yj(a).naturalWidth&&g.O(this.element,"ytp-moving-thumbnail-loaded")};
g.h.hM=function(a){var b=g.V(this.o);b.experiments.g("disable_new_pause_state3")&&Gx(b)&&(a=Sk(a.state)&&!Sk(a.g)||il(this.o)&&g.T(a.state,2),g.Si(this.element,"transition-delay",a?"2s":""));this.C.ge()};
g.h.gM=function(){this.element.style.backgroundImage=""};
g.h.Ux=function(){var a=g.fl(this.o);3==this.o.Za()&&(a.gb()||g.T(a,4))?this.B.show():l3(this.B,this.o,a);this.g&&3!=this.B.g&&this.TI(this.o.je(),this.o.getVideoData())};
g.h.TI=function(a){for(var b=g.V(this.o),c,d,e=0;e<arguments.length;e++){var f=arguments[e];if(!(!f||f instanceof g.Sx&&!f.videoId)){d=g.gl(this.o).Sa();var k=g.Hx(),l=d.width*k,k=d.height*k;320<l&&180<k&&(c=f.ck());if(1280<l||720<k)if(d=f.bd(b,"maxresdefault.jpg"))break;if(640<l||480<k)if(d=f.bd(b,b.experiments.g("web_player_hq720")?"hq720.jpg":"maxresdefault.jpg"))break;if(320<l||180<k)if(d=f.bd(b,"sddefault.jpg")||f.bd(b,"hqdefault.jpg")||f.bd(b,"mqdefault.jpg"))break;if(d=f.bd(b,"default.jpg"))break}}this.H.style.backgroundImage=
d?"url("+d+")":"";this.A&&(this.A.Ea("url","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),(b=c)&&5E5<g.Aw(g.V(this.J).D)&&this.A.Ea("url",b))};g.C(m3,g.ir);g.h=m3.prototype;
g.h.Is=function(a){var b=!1,c=ek(a),d=Zj(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=g.V(this.g);g.dk(a)?(e=!1,k=!0):l.Cd&&(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(this.B&&this.B.g&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:f=K3(this.B,c)}l.Ic||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.A+=f,0=="awesome".indexOf(this.A)?(f=!0,7==this.A.length&&Sd(this.g.getRootNode(),"ytp-color-party")):
(this.A=f,f=0=="awesome".indexOf(this.A)));if(e&&!f){switch(c){case 32:E2(this.o);Mk(g.fl(this.g))?this.g.fd():this.g.Ye();k=f=!0;break;case 37:D2(this.o,g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]});
this.g.ke(-5*this.g.app.o.H);k=f=!0;break;case 39:D2(this.o,g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-forward-five-seconds"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]});
this.g.ke(5*this.g.app.o.H);k=f=!0;break;case 38:k=Math.min(this.g.getVolume()+5,100);F2(this.o,k,!1);this.g.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.g.getVolume()-5,0);F2(this.o,k,!0);this.g.setVolume(k);k=f=!0;break;case 27:this.F()&&(k=f=!0);break;case 36:this.g.Ec(0);k=f=!0;break;case 35:this.g.Ec(window.Infinity),k=f=!0}if("3"!=l.B)switch(c){case 67:g.Zk(this.g).g&&(k=this.g.Dc("captions","track"),(f=g.Zk(this.g).g)&&f.Kv(),f=this.o,k=k&&k.displayName?g.Q("YTP_SUBTITLES_OFF"):g.Q("YTP_SUBTITLES_ON"),
D2(f,Ig(),k),k=f=!0);break;case 66:q3(this,"background")&&(f=!0);break;case 79:q3(this,"textOpacity")&&(f=!0);break;case 87:q3(this,"windowOpacity")&&(f=!0);break;case 187:q3(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:q3(this,"fontSizeIncrement",!0,!0)&&(f=!0)}var n;48<=c&&57>=c?n=c-48:96<=c&&105>=c&&(n=c-96);null!=n&&(k=this.g.Wf(),this.g.Ec(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.zo(!0);(b||k)&&this.D.Tb(2,!0);(f||e&&o3(this,c,a.shiftKey))&&g.ck(a);l.kb&&
(a={keyCode:ek(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.dk(a),fullscreen:this.g.isFullscreen()},this.g.ya("onKeyPress",a))};
g.h.Js=function(a){a=ek(a);this.B&&this.B.g&&L3(this.B,a);9==a&&this.zo(!0)};
g.h.zo=function(a){g.Rd(this.g.getRootNode(),"ytp-keyboard-focus",a);g.Rd(this.G.element,"ytp-keyboard-focus",a)};
g.h.Wx=function(a){g.Zk(this.g).g&&this.g.Ze("captions","sampleSubtitles",a)};
g.h.R=function(){g.Kd(this.C);m3.M.R.call(this)};g.C(s3,g.W);s3.prototype.C=function(a){var b=g.V(this.o);b.experiments.g("disable_new_pause_state3")&&Gx(b)&&g.Si(this.element,"transition-delay",Sk(a.state)&&!Sk(a.g)?"2s":"");r3(this,a.state)};g.C(t3,g.W);t3.prototype.N=function(a,b){u3(this,b);this.D&&v3(this,this.D)};
t3.prototype.L=function(a){var b=this.aa.getVideoData();this.A!=b.videoId&&u3(this,b);this.o&&v3(this,a.state);this.D=a.state};
t3.prototype.J=function(){g.nq(this.C);this.A&&(this.B[this.A]=(this.B[this.A]||0)+((0,g.G)()-this.G));this.G=0};g.C(w3,g.W);g.h=w3.prototype;g.h.ma=function(){g.Pd(this.o.getRootNode(),"ytp-expand-pause-overlay");w3.M.ma.call(this)};
g.h.show=function(){g.O(this.o.getRootNode(),"ytp-expand-pause-overlay");w3.M.show.call(this)};
g.h.uM=function(){g.kr(this.B);this.ma()};
g.h.vM=function(){this.A.scrollLeft+=this.F;x3(this)};
g.h.wM=function(){this.A.scrollLeft-=this.F;x3(this)};
g.h.FE=function(a,b){if(g.Ey(b,this.o,!0)){var c=this.C[a],d=c.Qb().videoId;g.H6(this.o.app,d,c.dd,c.Ch(),void 0,void 0)}};
g.h.xM=function(){this.Gp(g.gl(this.o).Sa())};
g.h.yM=function(a){g.T(a.state,1)||g.T(a.state,16)||g.T(a.state,32)||(g.T(a.state,4)&&!g.T(a.state,2)?this.C.length&&(this.J.show(),x3(this)):g.nq(this.J))};
g.h.Gp=function(a){var b=16/9,c=l5(this.L);a=a.width-(c?136:68);for(var c=Math.ceil(a/(c?320:192)),c=(a-8*c)/c,b=Math.floor(c/b),d=0;d<this.D.length;d++){var e=this.D[d].ua["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.A.style.height=b+"px";this.F=a;this.A.scrollLeft=0;x3(this)};
g.h.zM=function(){var a=this.o.getVideoData();a.N?(a=(0,g.Od)(a.N,function(a){return a&&!a.list}),this.C=(0,g.S)(a,function(a){return g.Cy(a)})):this.C.length=0;
Rpa(this)};g.C(y3,g.W);y3.prototype.B=function(a){g.Ey(a,this.o)&&this.o.ww(this.A)};g.C(z3,J2);g.h=z3.prototype;g.h.show=function(){z3.M.show.call(this);this.o.addEventListener("videodatachange",this.qj,this);this.o.addEventListener("onPlaylistUpdate",this.qj,this);this.qj()};
g.h.ma=function(){z3.M.ma.call(this);this.o.removeEventListener("videodatachange",this.qj,this);this.o.removeEventListener("onPlaylistUpdate",this.qj,this);A3(this,null)};
g.h.qj=function(){A3(this,this.o.je())};
g.h.so=function(){var a=this.A.H;if(a==this.F)this.D.element.setAttribute("aria-checked",!1),this.D=this.B[this.A.g];else{for(var b=0;b<this.B.length;b++)this.B[b].dispose();var c=this.A.B;this.B=[];for(b=0;b<c;b++){var d=new y3(this.o,this.A,b);this.B.push(d);d.Fa(this.G)}this.D=this.B[this.A.g];this.F=a}this.D.element.setAttribute("aria-checked",!0)};
g.h.hH=function(a){var b=this.o.getVideoUrl(!0);Hy(b,this.o,a)};
g.h.focus=function(){this.D.focus()};
g.h.R=function(){this.ma();z3.M.R.call(this)};g.C(B3,g.W);B3.prototype.A=function(){this.o&&2!=this.B.Za()&&400<=g.gl(this.B).Sa().width?(this.update({text:g.Q("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.o.g+1,PLAYLIST_LENGTH:this.o.B}),title:g.Q("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.o.title})}),this.g||(this.show(),j4(this.C))):this.g&&(this.ma(),j4(this.C))};
B3.prototype.D=function(){this.o&&this.o.Ka("shuffle",this.A,this);(this.o=this.B.je())&&this.o.subscribe("shuffle",this.A,this);this.A()};g.C(C3,g.W);C3.prototype.B=function(a){this.Ab(g.T(a.state,2))};
C3.prototype.A=function(){this.o.Ye()};g.C(D3,J2);g.h=D3.prototype;g.h.kG=function(a){a=Zj(a);g.df(this.P,a)||g.df(this.F,a)||this.Sf()};
g.h.Ob=function(){D3.M.Ob.call(this);this.B.Jg(this.element)};
g.h.show=function(){var a=this.g;D3.M.show.call(this);this.fy();a||this.A.ya("onSharePanelOpened")};
g.h.fy=function(){g.O(this.element,"ytp-share-panel-loading");g.Pd(this.element,"ytp-share-panel-fail");var a=this.A.getVideoData(),b=this.A.Xe(),c=b&&this.G.checked;g.Rd(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=g.V(this.A);e.hc&&(d.authuser=e.hc);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);g.li(g.V(this.A).baseYtUrl+"share_ajax",{method:"GET",onError:(0,g.z)(this.ey,this),Cb:(0,g.z)(function(a,b){if(b){if(b.actions&&
s2(b.actions),!this.isDisposed()){g.Pd(this.element,"ytp-share-panel-loading");E3(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=Spa(f.img);k&&(k=new g.W({K:"a",ea:["ytp-share-panel-service-button","ytp-button"],X:{href:f.url,target:"_blank",title:f.sname},T:[k]}),k.S("click",g.B(this.SG,f.url)),g.Bb(k,I2(this.B,k.element)),this.o.push(k),d++)}c=new g.W({K:"a",ea:["ytp-share-panel-service-button","ytp-button"],T:[{K:"span",Y:"ytp-share-panel-service-button-more",T:[g.Ag?{K:"div",
ea:["ytp-icon","ytp-icon-share-more"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},T:[{K:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:b.more,target:"_blank",title:g.Q("YTP_MORE")}});c.S("click",(0,g.z)(this.RF,this,b.more));g.Bb(c,I2(this.B,c.element));this.o.push(c);this.Ea("buttons",this.o)}}else this.ey()},this),
Bc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.Ea("link",a);this.Ea("linkText",a);tn(this.D)};
g.h.ey=function(){g.Pd(this.element,"ytp-share-panel-loading");g.O(this.element,"ytp-share-panel-fail")};
g.h.SG=function(a,b){if(g.By(b)){var c=void 0,c=void 0===c?{}:c;c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d=c;d||(d={});var c=window,e;e=a instanceof ce?a:fe("undefined"!=typeof a.href?a.href:String(a));var f=d.target||a.target,k=[],l;for(l in d)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+d[l]);break;case "target":case "noreferrer":break;default:k.push(l+"="+(d[l]?1:0))}l=k.join(",");lc()&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f?(l=c.document.createElement("A"),Be(l,e),l.setAttribute("target",f),d.noreferrer&&l.setAttribute("rel","noreferrer"),e=window.document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),l.dispatchEvent(e),c={}):d.noreferrer?(c=c.open("",f,l),e=de(e),c&&(g.Lx&&Fa(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=se(Yd("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Da(e)+'">'),c.document.write(me(e)),c.document.close())):c=c.open(de(e),
f,l);c&&(c.opener||(c.opener=window),c.focus());g.ck(b)}};
g.h.RF=function(a,b){Hy(a,this.A,b)&&this.A.ya("SHARE_CLICKED")};
g.h.NM=function(a){!a&&L2(this)&&this.Sf()};
g.h.focus=function(){this.D.focus()};
g.h.R=function(){D3.M.R.call(this);E3(this)};g.C(F3,g.W);F3.prototype.D=function(){this.C.Sf(this.element,!1);g.Ol(this.o,this)};
F3.prototype.A=function(){var a=g.V(this.o).Jh&&2!=this.o.Za(),a=!!this.o.getVideoData().videoId&&300<=g.gl(this.o).Sa().width&&!a;g.Rd(this.B,"ytp-share-button-visible",a);g.Pl(this.o,this,a)};
F3.prototype.R=function(){F3.M.R.call(this);g.Pd(this.B,"ytp-share-button-visible")};g.C(G3,g.W);var Rqa=.0035*.006;g.h=G3.prototype;
g.h.Hp=function(){var a=ml(this.o).shader;"Spherical"==a||"Spherical3D"==a?this.g||(a=g.gl(this.o).A,g.O(this.o.getRootNode(),"ytp-webgl-spherical"),this.show(),this.B=new g.Qy(a,!0,null,!0),this.B.subscribe("dragstart",this.RM,this),this.B.subscribe("dragmove",this.hy,this),this.B.subscribe("dragend",this.QM,this),this.A=new g.Qy(this.element,!0),this.A.subscribe("dragstart",this.jG,this),this.A.subscribe("dragend",this.iG,this),this.G.U(this.element,"keydown",this.SM,this),this.G.U(this.element,
"keyup",this.uF,this),this.G.U(a,"click",this.PM,this),this.G.U(window,"deviceorientation",this.gG,this)):this.g&&(I3(this),g.Pd(this.o.getRootNode(),"ytp-webgl-spherical"),this.ma(),this.B.dispose(),this.B=null,this.A.dispose(),this.A=null,g.kr(this.G))};
g.h.jG=function(a,b,c){var d=aj(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?H3(this,0<a?-1:1,0,0):H3(this,0,0<b?-1:1,0)};
g.h.iG=function(){I3(this);this.D.start()};
g.h.RM=function(a,b){I3(this);this.P=!1;this.ca=new xe(a,b);g.O(this.o.getRootNode(),"ytp-dragging")};
g.h.hy=function(a,b){var c=new xe(a,b),d;d=this.ca;d=new xe(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.P=!0);this.ca=c;var c=ml(this.o),e=c.fov,f=Math.PI*e*.8,k=g.gl(this.o).Sa();d.scale(1/k.width*f,1/k.height*f);J3(this,c.yaw+d.x,c.pitch+d.y,e,c,(0,g.G)())};
g.h.QM=function(a,b){this.hy(a,b);g.Pd(this.o.getRootNode(),"ytp-dragging");this.D.start()};
g.h.PM=function(a){this.P&&(a.stopPropagation(),this.P=!1)};
g.h.OM=function(a){if(1E-5>Math.abs(this.H)&&1E-5>Math.abs(this.F)&&!this.N&&!this.J&&0==this.C.length)I3(this),this.F=this.H=0;else{var b=ml(this.o),c=b.yaw,d=b.pitch,e=b.fov,f=a-this.ba,k=Rqa*e,c=c+(this.H+(k*this.N-.006*this.H)*f)*f,d=d+(this.F+(k*this.J-.006*this.F)*f)*f,e=e+k/.006*f*this.V/2;J3(this,c,d,e,b,a);this.D.start()}};
g.h.SM=function(a){!g.dk(a)&&K3(this,ek(a))&&g.ck(a)};
g.h.uF=function(a){L3(this,ek(a))};
g.h.gG=function(a){nl(this.o,{shader:"Spherical",alpha:a.alpha?a.alpha:0,beta:a.beta?a.beta:0,gamma:a.gamma?a.gamma:0,orientation:window.screen&&window.screen.orientation?window.screen.orientation.angle:0})};
g.h.R=function(){this.A&&(this.B.dispose(),this.B=null,this.A.dispose(),this.A=null);G3.M.R.call(this)};g.C(N3,g.W);N3.prototype.ma=function(){this.o.stop();this.B.style.display="none";N3.M.ma.call(this)};
N3.prototype.F=function(a){M3(this,a.state)};
N3.prototype.C=function(){M3(this,g.fl(this.A))};
N3.prototype.D=function(){this.B.style.display="block"};g.C(O3,g.W);O3.prototype.B=function(){var a=g.el(this.o.app);a&&a.o.Ox()};
O3.prototype.A=function(){var a=g.el(this.o.app);this.Ab(!!a&&a.sb);a=g.el(this.o.app);this.Ea("icon",a&&a.qb?g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-airplay-on"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}:g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-airplay-off"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.C(P3,g.zy);P3.B=20;P3.o=141;P3.A=.5;P3.g=200;g.h=P3.prototype;g.h.kM=function(a){g.T(a.state,32)?Q3(this,this.A.getVideoData()):g.nq(this.N)};
g.h.Ol=function(){var a=this.A.Wf(),b=a.current,c=tv(this.o,141),b=this.o.g[c].Ll(b);b!=this.P&&(c=vv(this.o,b,141),this.F=mW(this.fa,c,141,141,!0),g.Yi(this.da,(this.G-this.F.width)/2),this.P=b);g.ff(this.ga,g.Ay(this.Z?a.current-a.seekableEnd:a.current));nr(this.H);a=(0,g.z)(this.pl,this);this.H=mr(a,void 0);this.V.Tg()};
g.h.lM=function(a,b){Q3(this,b)};
g.h.pl=function(){R(this.B,!1);nr(this.H);var a=Math.round(.5*this.F.width),b=Math.round(.5*this.F.height),c=this.A.Wf(),d=this.o.g[0].Ex(),e=this.o.g[0].xp(),c=c.current/(c.seekableEnd-c.seekableStart)*(e-d+1)*a-this.G/2,f=Math.floor(c/a)+d,e=Math.min(f+Math.min(20,Math.ceil(this.G/a)),e),f=Math.max(f,d),k;if(this.D>=f&&this.C<=e){for(k=this.D;k>e;k--)g.Ye(this.B.children[k-this.C]);for(k=f-1;k>=this.C;k--)g.Ye(this.B.children[k-this.C]);for(k=this.C-1;k>=f;k--)this.B.insertBefore(R3(this,k,a,b),
this.B.firstChild);k=this.D+1}else g.We(this.B),k=f;for(;k<=e;k++){var l=R3(this,k,a,b);this.B.appendChild(l)}for(k=f;k<=e;k++)g.Si(this.B.children[k-f],"transform","translatex("+(-c+(k-d)*a)+"px)");this.C=f;this.D=e;R(this.B,!0)};
g.h.jM=function(){for(var a=this.C;a<=this.D;a++)xv(this.o,a,this.F.width)};
g.h.iM=function(){var a=g.gl(this.A).Sa();this.G!=a.width&&(this.G=a.width,this.o&&(this.Ol(),this.pl()))};
g.h.mM=function(a){this.element.style.g=a+"px"};
g.h.show=function(){P3.M.show.call(this);z5(this.ca,!1)};
g.h.ma=function(){this.o&&Q3(this,null);P3.M.ma.call(this);z5(this.ca,!0)};
g.h.R=function(){Q3(this,null);P3.M.R.call(this)};g.C(S3,g.W);g.h=S3.prototype;g.h.oM=function(a){g.T(a.state,32)?U3(this,this.o.getVideoData()):this.g&&(g.T(a.state,16)||g.T(a.state,1))||g.nq(this.C)};
g.h.qM=function(a,b){U3(this,b)};
g.h.pM=function(){var a=g.fl(this.o);(g.T(a,32)||g.T(a,16))&&T3(this)};
g.h.nM=function(){this.D=window.NaN;T3(this)};
g.h.ma=function(){this.A&&U3(this,null);S3.M.ma.call(this)};g.C(W3,g.W);g.h=W3.prototype;g.h.rM=function(){g.V(this.A).wa?(g.pl(this.A,this.A.isFullscreen()?"fullscreen_exit":"fullscreen_enter"),g.jl(this.A)):this.o.Sf(this.element,!0)};
g.h.hu=function(){V3(this);this.o.ag(this.element,!0)};
g.h.sM=function(){g.V(this.A).experiments.g("disable_fullscreen_check")||(vh()==this.A.getRootNode()?this.D.start():(this.D.stop(),this.o&&this.o.ma()))};
g.h.RA=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.hu()}};
g.h.Vx=function(){this.Ab(Dy(this.A))};
g.h.vv=function(a){var b;a?(b=g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-full-screen-close"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"g",Y:"ytp-fullscreen-button-corner-2",T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-3",T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-0",T:[{K:"path",La:!0,Y:"ytp-svg-fill",
X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-1",T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]},a=g.Q("YTP_EXIT_FULLSCREEN"),window.document.activeElement==this.element&&this.A.getRootNode().focus()):(b=g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-full-screen"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"g",Y:"ytp-fullscreen-button-corner-0",T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},
{K:"g",Y:"ytp-fullscreen-button-corner-1",T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-2",T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",Y:"ytp-fullscreen-button-corner-3",T:[{K:"path",La:!0,Y:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.Q("YTP_FULLSCREEN"));this.Ea("icon",b);this.Ea("title",this.o?null:a);j4(this.C.o)};
g.h.R=function(){this.o||(this.B(),this.B=null);W3.M.R.call(this)};g.C(X3,g.W);X3.prototype.G=function(a){this.D("newdata"==a)};
X3.prototype.D=function(a){var b=this.B.getVideoData(),c=b.ga,d=g.fl(this.B),d=(Mk(d)||g.T(d,4))&&0<c.length;this.Ab(d);a&&(this.o=!0);if(d){this.o&&this.A.ge();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.Q("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.bd(g.V(this.B),"default.jpg")});j4(this.C)}else this.A.stop()};
X3.prototype.F=function(){B5(this.C,this.element,g.Q("YTP_MORE_CAMERAS_AVAILABLE"));this.o=!1};g.C(Y3,J2);g.h=Y3.prototype;g.h.show=function(){var a=this.g;Y3.M.show.call(this);a||(this.B.U(this.o,"presentingplayerstatechange",this.Fp),this.B.U(this.o,"videodatachange",this.Fp),this.Fp())};
g.h.ma=function(){g.kr(this.B);Y3.M.ma.call(this)};
g.h.Fp=function(){for(var a=this.o.getVideoData(),b=a.ga,c=0;c<b.length;c++){var d=this.A[c];d||(d=new g.W({K:"button",ea:["ytp-multicam-menu-item","ytp-button"],X:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},T:[{K:"div",Y:"ytp-multicam-menu-item-title",T:["{{cameraName}}"]}]}),d.S("click",g.B(this.EE,c),this),d.Fa(this.D),this.A[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=Fx(g.V(this.o),f,"default.jpg"));d.element.style.backgroundImage=
k?"url("+k+")":""}d.update({cameraName:e.title,videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.A.length;)this.A.pop().dispose();a=g.fl(this.o);Mk(a)||g.T(a,4)||b.length||!L2(this)||this.Sf()};
g.h.EE=function(a){var b=this.o,c=this.o.getVideoData().ga[a];a=g.el(b.app,1).getVideoData();var d=b.getCurrentTime();if(c.id==a.videoId)g.el(b.app)!=g.el(b.app,1)&&(c=b.app,NY(c,LY(c,1)),a.o||b.Ec(d));else{var e=b.app;NY(e,LY(e,4));A6(b.app,{videoId:c.id,title:a.title,start:a.o?null:d,multifeed_metadata_list:a.C.multifeed_metadata_list},4)}};
g.h.focus=function(){for(var a=this.o.getVideoData(),b=a.ga,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.A[c].focus();break}};
g.h.R=function(){g.Db(this.A);Y3.M.R.call(this)};Z3.prototype.clone=function(){return new Z3(this.A,this.F,this.g,this.C,this.o,this.D,this.B,this.G)};g.C($3,g.L);var f8=new Z3(0,0,.4,0,.2,1,1,1);$3.prototype.o=function(){var a=(0,g.Ok)()-this.C,a=a<this.g?a/this.g:1,b;if(0==a)b=f8.A;else if(1==a)b=f8.B;else{b=ve(f8.A,f8.g,a);var c=ve(f8.g,f8.o,a),d=ve(f8.o,f8.B,a);b=ve(b,c,a);c=ve(c,d,a);b=ve(b,c,a)}this.A(b);1>a&&this.B.start()};
var Tpa=/[0-9.-]+|[^0-9.-]+/g;g.C(g4,g.W);
var Upa=["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"],Vpa=["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"];g4.prototype.qc=function(a){this.C=300<=a.width;this.Ab(this.C);g.Pl(this.o,this,this.C&&this.Z)};
g4.prototype.ba=function(){g.V(this.o).da?this.o.Bd()?(g.pl(this.o,"unmute"),this.o.Vf()):(g.pl(this.o,"mute"),this.o.mute()):this.da.Sf(this.element,!0);g.Ol(this.o,this)};
g4.prototype.ga=function(a){f4(this,a.volume,a.muted)};g.C(k4,g.W);k4.prototype.A=function(){var a=g.el(this.o.app);a&&a.o.Px()};g.C(m4,g.W);m4.prototype.G=function(a){l4(this,a.state)};
m4.prototype.F=function(){g.Rd(this.element,"ytp-play-button-playlist",il(this.o))};
m4.prototype.H=function(){2==this.A?g.pl(this.o,"pause"):3==this.A?g.pl(this.o,"replay"):1==this.A?g.pl(this.o,"play"):4==this.A&&g.pl(this.o,"stop");Mk(g.fl(this.o))?this.o.fd():this.o.Ye()};
m4.prototype.R=function(){this.B&&this.B();m4.M.R.call(this)};g.C(p4,g.W);g.h=p4.prototype;g.h.Gh=function(){q4(this);this.F&&(this.Ca(this.F),this.F=null);this.G=this.o.getVideoData(1);if(this.A=this.o.je())this.A.subscribe("shuffle",this.Gh,this),this.F=this.U(this.o,"progresssync",this.AM);this.D=r4(this);o4(this);this.qc(g.gl(this.o).Sa())};
g.h.qc=function(a){var b=il(this.o)||this.B&&g.Ll(this.o)||s4(this);a=a||g.gl(this.o).Sa();this.Ab(b&&(this.B||400<=a.width))};
g.h.BM=function(a){g.pl(this.o,this.B?"next":"previous");var b=!0;this.J?b=g.Ey(a,this.o):g.ck(a);b&&(this.B?this.o.gj(!0):this.D?this.o.Ec(0):this.o.Cl(!0))};
g.h.AM=function(){var a=r4(this);a!=this.D&&(this.D=a,o4(this))};
g.h.R=function(){this.C&&(this.C(),this.C=null);q4(this);p4.M.R.call(this)};g.C(u4,g.zy);g.h=u4.prototype;g.h.FM=function(a){if(!g.dk(a)){var b=!1;switch(ek(a)){case 36:this.A.Ec(0);b=!0;break;case 35:this.A.Ec(window.Infinity);b=!0;break;case 34:this.A.ke(-60);b=!0;break;case 33:this.A.ke(60);b=!0;break;case 38:this.A.ke(5);b=!0;break;case 40:this.A.ke(-5),b=!0}b&&g.ck(a)}};
g.h.Xx=function(a,b){t4(this,b,"newdata"==a)};
g.h.VB=function(){this.Xx("newdata",this.A.getVideoData())};
g.h.EM=function(){B4(this.A.getVideoData())?g.fl(this.A).gb()&&C4(this,!0):C4(this,!1)};
g.h.DM=function(a){0<eo(a,64)||!B4(this.A.getVideoData())?C4(this,!1):Mk(a.state)&&0>eo(a,64)&&C4(this,!0);this.B&&!g.T(a.state,32)&&3!=this.A.Za()&&this.B.cancel()};
g.h.IM=function(a,b,c){var d=aj(this.element),e=E4(this).g,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=kW(this.o,Number(c.getAttribute("data-position")),0)*e+aj(this.ib).x);this.va.x=a-d.x;this.va.y=b-d.y;c=E4(this);a=jW(this.o,c.o);b=this.Ia;c=c.position+this.Na;d=f||g.Ay(this.Aa?a-this.o.g:a);f=!!f;b.ba||(3==b.o&&b.wd(),1!=b.o&&(b.element.className="ytp-tooltip ytp-bottom",b.o=1,b.J&&b.H.show(),b.B=ey(b.P.getVideoData()),b.B&&b.B.subscribe("l",b.ly,b)),b.update({text:d,title:""}),g.Rd(b.element,
"ytp-text-detail",!!f),d=-1,b.B&&(d=tv(b.B,160*b.C),d=b.B.g[d].Ll(a)),E5(b,d),C5(b,!!f,c));g.Rd(this.ca,"ytp-hover-progress-shown",!g.T(g.fl(this.A),64));x4(this)};
g.h.HM=function(){var a=this.Ia;1==a.o&&a.wd();g.Pd(this.ca,"ytp-hover-progress-shown")};
g.h.GM=function(a,b){g.dh(this.D);this.D=window.NaN;this.qb=b;this.A.Ec(jW(this.o,E4(this).o),!1);g.O(this.element,"ytp-drag");(this.pa=Mk(g.fl(this.A)))&&this.A.fd()};
g.h.JM=function(){this.ba=0;g.Pd(this.element,"ytp-pull-ui");g.Pd(this.element,"ytp-pulling");if(0<this.G){var a=(0,g.Ok)(),b=this.G,c=E4(this).position;g.dh(this.D);this.D=sn((0,g.z)(this.ay,this,a,b,c),0)}if(g.T(g.fl(this.A),32)||3==this.A.Za())this.A.Ec(jW(this.o,E4(this).o)),g.Pd(this.element,"ytp-drag"),this.pa&&!g.T(g.fl(this.A),2)&&this.A.Ye()};
g.h.ay=function(a,b,c){var d=1-Math.pow(1-((0,g.Ok)()-a)/200,3),e=c+d*(this.F*this.C-c);if(0>d||1<d)d=1;D4(this,(1-d)*b,e,this.F);this.D=1>d?sn((0,g.z)(this.ay,this,a,b,c),0):window.NaN};
g.h.KM=function(a,b){var c=!1,d=!1,e=E4(this);3600<=iW(this.o)&&(D4(this,this.qb-b-10,e.position,e.o),d=!0,c=this.G>.1*(this.H?60:40),e=E4(this));g.Rd(this.element,"ytp-pull-ui",d);c&&g.O(this.element,"ytp-pulling");c=0;e.A&&0>=e.position?c=-1:e.C&&e.position>=e.width&&(c=1);(0,window.isNaN)(this.D)||c&&c==this.ba||g.ch(this.D);c&&(this.D=sn((0,g.z)(this.$x,this,(0,g.Ok)(),this.J),0));this.ba=c;this.A.Ec(jW(this.o,e.o),!1)};
g.h.$x=function(a,b){if(this.ba){var c=this.C*(this.Z-1);this.J=g.te(b+this.ba*((0,g.Ok)()-a)*.3,0,c);w4(this);this.A.Ec(jW(this.o,E4(this).o),!1);0<this.J&&this.J<c&&(this.D=sn((0,g.z)(this.$x,this,a,b),0))}};
g.h.Zx=function(){this.Ea("clipstarticon",Eg());this.Ea("clipendicon",Eg());g.O(this.element,"ytp-clip-hover")};
g.h.Yx=function(){this.Ea("clipstarticon",Gg());this.Ea("clipendicon",Fg());g.Pd(this.element,"ytp-clip-hover")};
g.h.Pl=function(){this.P=0;this.N=window.Infinity;A4(this);v4(this,this.F,this.ga)};
g.h.by=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.V[d]){var e=g.Re("DIV");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.V[d]=c;this.la[d]=e;F4(this,c,e);"ytp-chapter-marker"==c.style?this.Ib.appendChild(e):this.Eb.appendChild(e)}}else H4(this,c)}};
g.h.LM=function(a){for(var b=0;b<a.length;b++)H4(this,a[b])};
g.h.R=function(){g.ch(this.D);this.D=window.NaN;z4(this,!1);u4.M.R.call(this)};g.C(J4,g.W);J4.prototype.B=function(a){I4(this,a.state)};g.C(K4,g.W);
K4.prototype.o=function(){var a=!1;-1!=this.aa.Al().indexOf("remote")&&(a=1<this.aa.Dc("remote","receivers").length);this.Ab(a&&400<=g.gl(this.aa).Sa().width);var b=1;a&&this.aa.Dc("remote","casting")&&(b=2);if(this.A!=b){this.A=b;switch(b){case 1:this.Ea("icon",g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-cast-desktop-off"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});
break;case 2:this.Ea("icon",Bg())}g.Rd(this.element,"ytp-remote-button-active",!!this.aa.Dc("remote","casting"))}};
K4.prototype.B=function(){g.pl(this.aa,"remote");if(this.aa.Dc("remote","quickCast"))this.aa.Ze("remote","quickCast",!0);else{var a=this.C,b=this.element;L2(a)?a.Ob():(e5(a),a.P.open(),a.ag(b))}};g.C(L4,$2);L4.prototype.B=function(){tl(g.Zk(this.aa))&&3!=this.aa.Za()?this.A||(f5(this.C,this),this.A=!0):this.A&&(g5(this.C,this),this.A=!1);a3(this,M4(this))};
L4.prototype.D=function(a){M4(this);a?this.aa.kp("iv-module"):this.aa.Bw("iv-module")};g.C(N4,T2);g.h=N4.prototype;g.h.open=function(){P2(this.o,this.D)};
g.h.Tc=function(a){this.$("select",a)};
g.h.fG=function(a){"true"!=this.A[a].element.getAttribute("aria-disabled")&&this.Tc(a)};
g.h.Vd=function(a){return a.toString()};
g.h.MM=function(a){g.dk(a)||39!=ek(a)||(this.open(),g.ck(a))};
g.h.R=function(){N4.M.R.call(this);for(var a in this.A)this.A[a].dispose()};g.C(Q4,N4);Q4.prototype.F=function(){var a=this.aa.Cw();1<a.length?(P4(this,(0,g.S)(a,this.C)),this.J=yb(a,this.C,this),this.H.sc(a.length?" ("+a.length+")":""),this.$("size-change"),O4(this,this.C(this.aa.ij())),this.B||(f5(this.o,this),this.B=!0)):this.B&&(g5(this.o,this),this.B=!1)};
Q4.prototype.Tc=function(a){Q4.M.Tc.call(this,a);this.aa.Hw(this.J[a]);this.o.Mf()};
Q4.prototype.C=function(a){return a.toString()};g.C(R4,$2);R4.prototype.B=function(){var a=this.aa.Za();if(2!=a&&3!=a&&g.Ll(this.aa))this.C||(f5(this.F,this),this.C=!0,this.A.push(this.U(this.aa,"videodatachange",this.B)),this.A.push(this.U(this.aa,"videoplayerreset",this.B)),this.A.push(this.U(this.aa,"onPlaylistUpdate",this.B)),this.A.push(this.U(this.aa,"autonavchange",this.D)),this.D(this.aa.getVideoData().autonavState));else if(this.C)for(g5(this.F,this),this.C=!1,a=0;a<this.A.length;a++)this.Ca(this.A[a])};
R4.prototype.D=function(a){a3(this,1!=a)};
R4.prototype.G=function(a){this.aa.app.g.ya("onAutonavChangeRequest",1!=(a?2:1))};g.C(S4,N4);S4.prototype.C=function(){var a=this.aa.Za();if(2!=a&&3!=a){for(var a={},b=sV(g.el(this.aa.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.J=a;a=this.aa.rw();b=this.aa.getVideoData().A;if(b=!!b&&!Ei(b))b=this.aa.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.G);b&&a.unshift("missing-qualities");P4(this,a);if(a.length){this.F();this.B||(f5(this.o,this),this.B=!0);return}}this.B&&(g5(this.o,this),this.B=!1)};
S4.prototype.F=function(){var a=ll(this.aa);this.A[a]&&(this.H=this.aa.Bl(),O4(this,a),"auto"==a&&this.sc(this.Vd(a)))};
S4.prototype.Tc=function(a){"missing-qualities"!=a&&(S4.M.Tc.call(this,a),this.aa.Dl(a),this.o.Ob())};
S4.prototype.Vd=function(a,b){if("missing-qualities"==a)return{K:"a",X:{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},T:[g.Q("YTP_MISSING_FORMATS")]};var c={K:"div",T:[T4(this,a)]},d=ll(this.aa);b||"auto"!=d||"auto"!=a||(c.T.push(" "),c.T.push(T4(this,this.H,["ytp-menu-label-secondary"])));return c};g.C(U4,N4);U4.prototype.F=function(){var a=this.aa.Dc("remote","receivers");a&&1<a.length&&!this.aa.Dc("remote","quickCast")?(this.H=yb(a,this.C,this),P4(this,(0,g.S)(a,this.C)),a=this.aa.Dc("remote","currentReceiver"),O4(this,this.C(a)),this.B||(f5(this.o,this),this.B=!0)):this.B&&(g5(this.o,this),this.B=!1)};
U4.prototype.C=function(a){return a.key};
U4.prototype.Vd=function(a){return"cast-selector-receiver"==a?g.Q("YTP_MDX_CAST_SELECTOR"):this.H[a].name};
U4.prototype.Tc=function(a){U4.M.Tc.call(this,a);this.aa.Ze("remote","currentReceiver",this.H[a]);this.o.Ob()};g.C(V4,N4);g.h=V4.prototype;g.h.Wm=function(a){return a.toString()};
g.h.Vd=function(a){return"1"==a?g.Q("YTP_NORMAL_SPEED"):a.toString()};
g.h.gy=function(){var a=this.aa.Za();2!=a&&3!=a?this.B||(f5(this.o,this),this.B=!0,this.C=this.U(this.aa,"onPlaybackRateChange",this.qG),P4(this,(0,g.S)(this.aa.dj(),this.Wm)),O4(this,this.Wm(this.aa.app.o.H))):this.B&&(g5(this.o,this),this.B=!1,this.Ca(this.C),this.C=null)};
g.h.qG=function(a){O4(this,this.Wm(a))};
g.h.Tc=function(a){V4.M.Tc.call(this,a);this.aa.hj((0,window.parseFloat)(a),!0);this.o.Mf()};g.C(X4,N4);g.h=X4.prototype;g.h.SH=function(){P2(this.o,this.B)};
g.h.ky=function(a){return a.option.toString()};
g.h.Vd=function(a){return W4(this.J[a])};
g.h.Tc=function(a){X4.M.Tc.call(this,a);this.$("settingChange",this.H,this.J[a].option)};
g.h.cv=function(a){this.$("settingChange",this.H+"Override",!a);this.o.Mf()};g.C(Y4,W2);Y4.prototype.C=function(a,b){this.$("settingChange",a,b)};g.C($4,N4);$4.prototype.C=function(a){return a.languageCode};
$4.prototype.Vd=function(a){return this.B[a].languageName||""};
$4.prototype.Tc=function(a){this.$("select",a);Q2(this.o)};g.C(a5,N4);g.h=a5.prototype;g.h.Kp=function(a){return g.Tb(a)?"__off__":a.displayName};
g.h.Vd=function(a){return"__off__"==a?g.Q("YTP_LANGUAGE_OFF"):"__translate__"==a?g.Q("YTP_AUTO_TRANSLATE"):"__contribute__"==a?g.Q("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.B[a]).displayName};
g.h.Tc=function(a){"__translate__"==a?this.F.open():"__contribute__"==a?(this.aa.fd(),this.aa.isFullscreen()&&g.jl(this.aa),a=this.aa.getVideoData(),g.mo(g.V(this.aa).baseYtUrl+"timedtext_video?ref=player&v="+a.videoId)):(this.aa.Ze("captions","track","__off__"==a?{}:this.B[a]),a5.M.Tc.call(this,a),this.o.Mf())};
g.h.GI=function(){P2(this.o,this.C)};
g.h.rj=function(){var a=-1!=this.aa.Al().indexOf("captions"),b=this.aa.getVideoData().uf;if(a||b){var c,d;if(a){var e=this.aa.Dc("captions","track"),f=this.aa.Dc("captions","tracklist",{includeAsr:!0}),k=this.aa.Dc("captions","translationLanguages");this.B=yb(f,this.Kp,this);c=(0,g.S)(f,this.Kp);if(k.length){d=this.F;var l=k;d.B=yb(l,d.C,d);P4(d,(0,g.S)(l,d.C));c.push("__translate__")}d=this.Kp(e)}else this.B={},c=[],d="__off__";c.unshift("__off__");this.B.__off__={};b&&c.unshift("__contribute__");
this.B[d]||(this.B[d]=e,c.push(d));P4(this,c);O4(this,d);a?(Z4(this.C,this.aa.jj()),this.H.sc(f.length?" ("+f.length+")":""),this.$("size-change"),a&&k.length&&this.A.__translate__.element.setAttribute("aria-disabled",!!g.Tb(e))):(this.H.sc(""),this.$("size-change"));this.J||(f5(this.o,this),this.J=!0)}else this.J&&(g5(this.o,this),this.J=!1)};
g.h.jy=function(a){this.aa.Ze("captions","sampleSubtitles",a)};
g.h.nH=function(a){var b=this.aa.Dc("captions","track"),b=Wb(b);b.translationLanguage=this.F.B[a];this.aa.Ze("captions","track",b)};
g.h.TM=function(a,b){if("reset"==a)this.aa.Gw();else{var c={};c[a]=b;this.aa.lp(c)}this.jy(!0);this.N.start();Z4(this.C,this.aa.jj())};
g.h.R=function(){g.Kd(this.N);a5.M.R.call(this)};g.C(b5,N4);var Sqa={1:"YTP_THREED_VIEWMODE_2D",2:"YTP_THREED_VIEWMODE_ANAGLYPH"};b5.prototype.Vd=function(a){return g.Q(Sqa[(0,window.parseInt)(a,10)])};
b5.prototype.F=function(){var a=ml(this.aa);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.B||(this.C=a.shader,f5(this.o,this),this.B=!0,P4(this,[(1).toString(),(2).toString()])),a=a.displayMode,void 0!=a&&O4(this,a.toString())):this.B&&(g5(this.o,this),this.B=!1)};
b5.prototype.Tc=function(a){b5.M.Tc.call(this,a);nl(this.aa,{shader:this.C,displayMode:a});O4(this,a);this.o.Mf();this.aa.Ra("webglsettingschanged",ml(this.aa))};g.C(c5,M2);c5.prototype.ag=function(a){e5(this);0<this.B.o.length&&c5.M.ag.call(this,a)};
c5.prototype.show=function(){c5.M.show.call(this);g.O(this.A.getRootNode(),"ytp-settings-shown")};
c5.prototype.ma=function(){c5.M.ma.call(this);g.Pd(this.A.getRootNode(),"ytp-settings-shown")};g.C(h5,g.W);h5.prototype.qc=function(a){this.Ab(this.B&&400<=a.width)};
h5.prototype.C=function(){g.pl(this.aa,"settings");if(this.A.g)this.A.Ob();else{var a=g.Zk(this.aa).g;a&&!a.loaded&&(a.Sw("tracklist",{includeAsr:!0}).length||a.load());this.A.ag(this.element)}};
h5.prototype.o=function(){var a=this.aa.Za(),b=2!=a&&3!=a,c=ml(this.aa),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&1==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.aa.Bl();g.Rd(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);g.Rd(this.element,"ytp-4k-quality-badge","hd2160"==b);g.Rd(this.element,"ytp-5k-quality-badge","hd2880"==b);g.Rd(this.element,"ytp-8k-quality-badge","highres"==b);g.Rd(this.element,"ytp-3d-badge-grey",a&&c);g.Rd(this.element,
"ytp-3d-badge",a&&!c)};g.C(i5,g.W);i5.prototype.F=function(){g.pl(this.o,this.o.app.ra?"size_small":"size_large");var a=this.o.app,b=!a.ra;a.W.experiments.g("player_legacy_set_size_style")&&R6(a,!0,b);a.g.ya("SIZE_CLICKED",b)};
i5.prototype.A=function(){this.Ab(this.o.app.Rb&&!this.o.isFullscreen()&&3!=this.o.Za());if(this.g){var a=this.o.app.ra;if(this.B!=a){var b=a?g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-default-view"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},T:[{K:"path",La:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:g.Ag?{K:"div",ea:["ytp-icon","ytp-icon-theater-mode"]}:{K:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},T:[{K:"path",La:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};g.V(this.o).Z||null==this.B?this.Ea("icon",b):e4(this.D,this.element,b);a=(this.B=a)?g.Q("YTP_DEFAULT_VIEW"):g.Q("YTP_THEATER_MODE");this.Ea("title",a);j4(this.C)}}};g.C(j5,g.W);j5.prototype.B=function(){g.pl(this.A,"subtitles");var a=g.Zk(this.A).g;a&&a.Kv()};
j5.prototype.o=function(){var a=!!g.Zk(this.A).g;this.Ab(a&&300<=g.gl(this.A).Sa().width);a&&this.Ea("pressed",!!this.A.Dc("captions","track").displayName)};g.C(k5,g.W);
k5.prototype.C=function(){var a=g.gl(this.o).Sa().width,b=350<=a&&(!this.B||!g.T(g.fl(this.o),64));this.Ab(b);g.Rd(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.o.Wf();b&&(b=g.Ay(a.current),this.G!=b&&(this.Ea("currenttime",b),this.G=b),b=g.Ay(a.duration),this.H!=b&&(this.Ea("duration",b),this.H=b));this.B&&(a=a.isPeggedToLive,this.F!=a&&(this.F=a,this.C(),b=this.D.element,(b.disabled=a)?this.A&&(this.A(),this.A=null,b.removeAttribute("title")):(b.title=g.Q("YTP_GOTO_LIVE_TOOLTIP"),this.A=
I2(this.J,this.D.element))))};
k5.prototype.N=function(a,b){this.B=b.o;g.Rd(this.element,"ytp-live",this.B);this.C()};
k5.prototype.L=function(a){a.target==this.D.element?(g.pl(this.o,"live"),this.o.Ec(window.Infinity),this.o.Ye()):g.pl(this.o,"time")};
k5.prototype.R=function(){this.A&&this.A();k5.M.R.call(this)};g.C(n5,g.W);g.h=n5.prototype;g.h.VM=function(){var a=l5(this.F);this.H!=a&&(this.H=a,m5(this,this.o.getVolume(),this.o.Bd()))};
g.h.qc=function(a){this.Ab(350<=a.width)};
g.h.dH=function(a){if(!g.dk(a)){var b=ek(a),c=null;37==b?c=this.C-5:39==b?c=this.C+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=g.te(c,0,100),0==c?this.o.mute():(this.o.Bd()&&this.o.Vf(),this.o.setVolume(c)),g.ck(a))}};
g.h.WM=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.o.setVolume(this.C+(0>b?-10:10)):this.o.setVolume(this.C+g.te(b/10,-10,10));g.ck(a)};
g.h.cH=function(){g.pl(this.o,"volume");o5(this,this.B,!0,this.A,this.F.L);this.V=this.C;this.o.Bd()&&this.o.Vf()};
g.h.bH=function(a){a-=aj(this.P).x;this.o.setVolume(100*g.te(a/(this.H?78:52),0,1))};
g.h.aH=function(){o5(this,this.B,!1,this.A,this.F.L);0==this.C&&(this.o.mute(),this.o.setVolume(this.V))};
g.h.XM=function(a){m5(this,a.volume,a.muted)};
g.h.ur=function(){o5(this,this.B,this.D,this.A,this.F.L)};
g.h.my=function(a){o5(this,this.B,this.D,a,this.F.L)};
g.h.wv=function(a){g.Rd(this.element,"ytp-volume-control-hover",a);o5(this,a,this.D,this.A,this.F.L)};
g.h.R=function(){n5.M.R.call(this);g.Pd(this.N,"ytp-volume-slider-active")};g.C(p5,g.W);p5.prototype.C=function(){this.A=!!this.o.getVideoData().videoId;this.Ab(this.A);g.Pl(this.o,this,this.A&&this.B);if(this.A){var a=this.o.getVideoUrl(!0,!1,!1,!0);this.Ea("url",a)}};
p5.prototype.D=function(a){g.pl(this.o,"youtube");var b=this.o.getVideoUrl(!g.By(a),!1,!0,!0);Hy(b,this.o,a);g.Ol(this.o,this)};g.C(q5,g.ir);g.h=q5.prototype;g.h.Ip=function(){var a=this.D;y4(a);var b=a.A.getCurrentTime();(b<a.P||b>a.N)&&a.Pl();this.N.C()};
g.h.iy=function(){this.Lo();!this.L.o||this.Ip()};
g.h.qF=function(){this.Ip();this.F.start()};
g.h.Lo=function(){var a;if(a=!g.V(this.aa).isMobile)a=this.D,a=300>1E3*iW(a.o)/a.A.app.o.H/(2*a.C*g.Hx());a=a&&g.fl(this.aa).gb()&&!!window.requestAnimationFrame;var b=!a;this.L.o||(a=b=!1);b?this.G||(this.G=this.U(this.aa,"progresssync",this.Ip)):this.G&&(this.Ca(this.G),this.G=null);a?this.F.isActive()||this.F.start():this.F.stop()};
g.h.VI=function(a){z5(this.A.o,!a)};
g.h.Jp=function(){var a=l5(this.A),b=g.gl(this.aa).Sa(),c=s5(this),d=Math.max(b.width-2*c,100);if(this.V!=b.width||this.P!=a){this.V=b.width;this.P=a;var e=t5(this);this.g.element.style.width=e+"px";this.g.element.style.left=c+"px";var f=this.D;f.Na=c;f.C=e;f.H=a;w4(f);this.A.o.da=e}c=this.o;b=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(l5(this.A)?72:50))));c.ba=Math.min(570*(a?1.5:1),d);c.Z=b;c.ol();this.Lo()};
g.h.oa=function(){return this.g.element};g.C(u5,g.W);u5.prototype.qc=function(a){a=400>a.width&&this.o.je()&&2!=this.o.Za();this.J.style.display=a?"":"none"};
u5.prototype.L=function(a){g.pl(this.o,"title");g.Ol(this.o,this);var b=this.o.getVideoUrl(!g.By(a),!1,!0);Hy(b,this.o,a)};
u5.prototype.H=function(a,b,c){var d=c.user_info;d&&(b=d.channel_logo_url||d.image_url,c=d.channel_title||d.username,d=d.channel_url,b&&d&&c&&g.Cx.test(b)&&v5(this,a,c,d,b))};
u5.prototype.B=function(){w5(this);var a=this.o.getVideoData();this.Ea("title",a.title);var b=g.V(this.o);if(b.experiments.g("embed_view_count")){var c=a.shortViewCount;g.Rd(this.o.getRootNode(),"ytp-show-title-view-count",!!c);this.Ea("viewCount",c)}!b.J&&a.videoId?(this.Ea("url",this.o.getVideoUrl(!0)),this.A||(this.A=this.U(this.G,"click",this.L))):this.A&&(this.Ea("url",null),this.Ca(this.A),this.A=null)};g.C(x5,g.W);g.h=x5.prototype;g.h.VF=function(a){3==this.o&&this.wd();a=a.currentTarget;this.o||(a.removeEventListener("mouseover",this.N),a.addEventListener("mouseout",this.ca),A5(this,a,2))};
g.h.TF=function(a){(a=ak(a))&&g.df(this.A,a)||this.wd()};
g.h.ly=function(a,b){if(a<=this.D&&this.D<=b){var c=this.D;this.D=window.NaN;E5(this,c)}};
g.h.DD=function(){xv(this.B,this.D,160*this.C)};
g.h.wd=function(){switch(this.o){case 2:this.A.removeEventListener("mouseout",this.ca),this.A.addEventListener("mouseover",this.N);case 3:3==this.o&&this.Z.stop();this.P.removeEventListener("appresize",this.wd,this);this.L||this.A.setAttribute("title",this.F);this.F="";this.A=null;break;case 1:this.B&&(this.B.Ka("l",this.ly,this),this.B=null),this.P.removeEventListener("videoready",this.wd,this),this.V.stop()}this.o=null;this.J&&g.nq(this.H)};
g.h.Jg=function(a){if(this.A)for(var b=0;b<arguments.length;b++)g.df(arguments[b],this.A)&&this.wd()};
g.h.R=function(){null!=this.o&&this.wd();x5.M.R.call(this)};g.C(G5,J2);G5.prototype.B=function(a){a?(F5(this),this.ag()):this.Ob()};
G5.prototype.D=function(){g.ol(this.o,"mutedAutoplayClick",{videoPlayedSeconds:this.o.getCurrentTime()-this.o.getVideoData().Rp});this.o.Vf()};g.C(I5,g.W);g.h=I5.prototype;g.h.qc=function(a){a=300<=a.width;this.Ab(a);g.Pl(this.o,this,a)};
g.h.JH=function(){this.A=!0;this.B=!1;H5(this,1);g.V(this.o).isMobile&&B5(this.D,this.element);g.V(this.o).kb&&this.o.ya("WATCH_LATER_VIDEO_ADDED")};
g.h.YM=function(){g.pl(this.o,"watchlater");var a=this.o.getVideoData().videoId;if(!this.B){this.B=!0;H5(this,3);var b=g.V(this.o);(this.A?Ppa:Opa)({videoIds:a,hc:b.hc,pageId:b.pageId,onError:this.KH,Cb:this.A?this.LH:this.JH,context:this},b.baseYtUrl,!0)}g.Ol(this.o,this)};
g.h.KH=function(a,b){this.B=!1;var c=g.Q("YTP_ERROR_GENERIC_WITHOUT_LINK");b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);H5(this,4,c);g.V(this.o).kb&&this.o.ya("WATCH_LATER_ERROR",c)};
g.h.LH=function(){this.B=this.A=!1;H5(this,2);g.V(this.o).kb&&this.o.ya("WATCH_LATER_VIDEO_REMOVED")};
g.h.ZM=function(){this.B=this.A=!1;H5(this,2)};
g.h.R=function(){I5.M.R.call(this);g.Pd(this.F,"ytp-watch-later-button-visible")};g.C(J5,g.W);J5.prototype.D=function(a){this.Ab(!g.T(a.state,2))};
J5.prototype.B=function(){if(this.A.getVideoData().videoId){var a=this.A.getVideoUrl(!0,!1,!1,!0);this.Ea("url",a);this.o||(this.o=this.S("click",this.C))}else this.o&&(this.Ea("url",null),this.Ca(this.o),this.o=null)};
J5.prototype.C=function(a){var b=this.A.getVideoUrl(!g.By(a),!1,!0,!0);Hy(b,this.A,a)};g.C(L5,g.ir);g.h=L5.prototype;g.h.Rx=function(a,b){if(this.fa!=b.videoId){this.fa=b.videoId;var c=this.B;c.N=b&&0<b.ga.length?5E3:3E3;c.Tb(512,!0);this.Zi()}};
g.h.tG=function(){this.Rx(0,this.g.getVideoData())};
g.h.Om=function(a,b){b?this.N=a:this.N=null;this.zh()};
g.h.Pm=function(a,b){if(b)this.G.push(a);else for(var c=this.G.length;0<=c;c--)if(this.G[c]==a){this.G.splice(c,1);break}this.B.Tb(64,0<this.G.length)};
g.h.zh=function(){var a=!M5(this),b=a&&g.ql(this.g)&&!g.T(g.fl(this.g),2);a?(this.ga.show(),this.la.show()):(g.nq(this.ga),g.nq(this.la),this.o.Jg(this.C.element,this.H.element));b?this.H.A.show():g.nq(this.H.A);g.Rd(this.C.element,"ytp-cards-available",b);g.Rd(this.g.getRootNode(),"ytp-menu-shown",!a);var b=this.P,c=!a;(b.B=c)?b.ma():l3(b.A,b.o,g.fl(b.o));this.A&&r5(this.A,!a)};
g.h.YL=function(a){for(;a&&!kf(a);)a=a==this.g.getRootNode()?null:cf(a);return!!a};
g.h.ZL=function(a){var b=this.g.getRootNode();g.Rd(b,"ytp-autohide",a);a&&(this.o.Jg(this.C.element,this.H.element),this.A&&this.o.Jg(this.A.oa()),this.L=!1,g.Pd(b,"ytp-touch-mode"));b=this.g;a=!a;b.ya("onVideoAreaChange");b.ya(a?"onShowControls":"onHideControls")};
g.h.PG=function(a){if(Sk(g.fl(this.g))&&!g.V(this.g).pe){var b=this.g.getVideoData();b.videoId&&this.g.Fw(ly(b))}this.B.o||N5(this,Zj(a))||g.ck(a);this.L=!0;g.O(this.g.getRootNode(),"ytp-touch-mode");this.B.Tb(2,!0)};
g.h.LG=function(a){N5(this,Zj(a))||(this.B.Tb(2,!0),g.By(a)&&(this.Sr()?g.ck(a):(a=g.fl(this.g),g.T(a,2)&&bl(this.g)||E2(this.F),g.V(this.g).wa&&!Sk(a)?this.Z.isActive()?(this.F.ma(),this.Z.stop()):this.Z.start():this.Sx())))};
g.h.Sx=function(){var a=g.fl(this.g);g.T(a,2)&&bl(this.g)||(Mk(a)?this.g.fd():(this.g.Ye(),window.document.activeElement==this.P.element&&this.g.getRootNode().focus()))};
g.h.MG=function(a){N5(this,Zj(a))||3!=this.g.Za()&&g.jl(this.g)};
g.h.NG=function(a){O5(this,.3,a.scale);g.ck(a)};
g.h.OG=function(a){O5(this,.1,a.scale)};
g.h.$L=function(a){var b=this.g.getRootNode();a?b.parentElement?(b.setAttribute("aria-label",g.Q("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.da.element,b),b.parentElement.insertBefore(this.ca.element,b.nextSibling)):eh(Error("Player not in DOM.")):(b.setAttribute("aria-label",g.Q("YTP_PLAYER_NORMAL")),this.da.detach(),this.ca.detach());this.Ep();this.Zi()};
g.h.Ep=function(){var a=l5(this),b=g.gl(this.g).Sa(),c=this.g.isFullscreen(),d=this.g.getRootNode();g.V(this.g).experiments.g("autohide_resize_killswitch")||g.Uh&&k2(this.B);this.o.C=a?1.5:1;g.Rd(d,"ytp-fullscreen",c);g.Rd(d,"ytp-small-mode",!a&&(480>b.width||270>b.height));g.Rd(d,"ytp-big-mode",a);g.Rd(this.J.element,"ytp-big-mode",a);this.D&&(a=this.D,a.o&&m2(a.o,b.width,b.height))};
g.h.aM=function(a){K5(this,a.state);this.Zi()};
g.h.Zi=function(){var a=2==this.g.Za(),b=!0;if(a){var b=g.Zk(this.g).P,c;if(c=b.app.getVideoData().isListed)b=b.o,c=null!=b.H&&null!=sA(b.H,1)&&null!=sA(BA(b.H),4)&&sA(uA(BA(b.H),FA,4),1)?!1:!0;b=c}a=!!this.fa&&!g.$k(this.g)&&(a?b:g.V(this.g).Nb||this.g.isFullscreen());if(this.Aa!=a&&(this.Aa=a,g.Pl(this.g,this.va,a),g.Rd(this.g.getRootNode(),"ytp-hide-info-bar",!a),!a))for(this.o.Jg(this.C.element,this.H.element),a=0;a<this.ba.length;a++)b=this.ba[a],L2(b)&&b.Ob()};
g.h.dG=function(){this.B.Tb(128,!1)};
g.h.Sr=function(){return this.J.g?(this.J.Ob(),!0):this.G.length?(this.G[this.G.length-1].Ob(),!0):this.N?(this.N.Ob(),!0):g.ql(this.g)&&rl(this.g)?(this.g.kj(!1,!1),!0):g.$k(this.g)?(g.cl(this.g,!0),!0):!1};
g.h.BI=function(a,b){this.Na=b;this.Pm(a,b);this.Tx()};
g.h.Tx=function(){var a=this.Na||L2(this.J);this.ra!=a&&(this.ra=a,this.g.ya("onAutonavPauseRequest",this.ra))};
g.h.oB=function(){P5(this,this.g.getRootNode(),!0).focus()};
g.h.pB=function(){P5(this,this.g.getRootNode(),!1).focus()};Q5.prototype.click=function(a){a=a.element.getAttribute("data-visual-id");g.Ml(this,"onLogVeClicked",{id:a})};
Q5.prototype.D=function(a){var b=a.element.getAttribute("data-visual-id");g.eb(this.B,a);g.eb(this.o,b);g.eb(this.g,b);a.element.removeAttribute("data-visual-id")};
Q5.prototype.pause=function(){this.F=!0};
Q5.prototype.resume=function(){this.F=!1;for(var a=0;a<this.A.length;a++){var b=this.A[a];g.Ml(this,b.type,b.data)}this.A.length=0};g.C(S5,g.L);S5.C="defaultcontext";S5.g={};S5.A="appapi";S5.o="appad";S5.D=5;S5.create=function(a,b){try{var c=S5.B(a);if(S5.g[c]){try{S5.g[c].dispose()}catch(e){eh(e)}S5.g[c]=null}var d=new S5(a,b);g.Bb(d,function(){S5.g[c]=null});
return S5.g[c]=d}catch(e){throw eh(e),e.stack;}};
S5.B=function(a){return g.y(a)?a:"player"+ua(a)};
g.h=S5.prototype;g.h.lE=function(){X5(this)||l6(this,5)};
g.h.rG=function(a){X5(this)||(M6(this),Mk(a.A)&&RY(this))};
g.h.xv=function(a){var b=this.B.element;g.Rd(b,"ytp-ad-overlay-open",a);g.Rd(b,"ytp-ad-overlay-closed",!a)};
g.h.getVideoData=function(){return this.C.getVideoData()};
g.h.bj=function(){var a=this.C?this.C.cn():{};g.va(a,nga(this.D));this.G&&g.va(a,this.G.Il());a.fs=this.g.isFullscreen();a.volume=Math.round(this.Kb.getVolume());a.mos=this.Kb.Bd()?1:0;if(this.W.experiments.g("html5_enable_embedded_player_visibility_signals")&&this.W.C){if(this.Db){var b;b=this.Db;b=null==b.o?null:Math.round(100*b.o)/100;null!=b&&(a.inview=b)}b=this.B.Sa();if(0<b.height&&0<b.width){b=[Math.round(b.height),Math.round(b.width)];var c=g.Hx();1<c&&b.push(c);a.size=b.join(":")}}return a};
g.h.getCurrentTime=function(a){return 3==dl(this)?this.L.getCurrentTime():(a=g.el(this,a))?a.getCurrentTime():0};
g.h.getDuration=function(a){return(a=g.el(this,a))?a.getDuration():0};
g.h.AJ=function(a){switch(a.type){case "loadedmetadata":fw("fvb",this.H.g)||this.H.o("fvb");g.cw("fvb",void 0,"video_to_ad");this.Eb.start();break;case "loadstart":fw("gv",this.H.g)||this.H.o("gv");g.cw("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!fw("l2s",this.H.g)&&2<=qk(a.target.ef())&&this.H.o("l2s");break;case "playing":a=this.D.o,"none"==this.F.getStyle("display")&&f2(this.B)&&!a&&(this.C.sa.Kc("hidden","1",!0),this.getVideoData().da||U6(this,"hidden",!0))}};
g.h.zF=function(a,b){this.g.ya("onLoadProgress",b)};
g.h.eH=function(){this.g.Ra("playbackstalledatstart")};
g.h.EH=function(a,b){this.g.ya("onVideoProgress",b)};
g.h.xJ=function(){this.Kb.Ra("progresssync")};
g.h.nE=function(a){!this.W.experiments.g("disable_live_head_slowdown")&&0<eo(a,1)&&!g.T(a.state,64)&&DY(this).o&&nV(this.o)&&1<this.o.H&&r6(this,1,!0);var b;if(b=0<eo(a,2))this.A&&("embedded"==this.W.g||this.g.isFullscreen())&&g.k3(this)?(J6(this,!1,!this.W.experiments.g("legacy_autoplay_flag")),b=!0):b=!1,b=!b;b&&(b=this.o.o)&&b.Jx();g.T(a.state,128)&&(b=a.state,C6(this),b=b.g,this.g.ya("onError",q7[b.errorCode]||5),this.g.ya("onDetailedError",b));a.state.gb()&&!g.Tk(a.state)&&(b=this.getVideoData(),
g.dw("cpn",b.clientPlaybackNonce,"ad_to_video"),b.videoId&&g.dw("docid",b.videoId,"ad_to_video"),b.playbackId&&g.dw("plid",b.playbackId,"ad_to_video"),g.cw("pbresume",void 0,"ad_to_video"));this.g.Ra("applicationplayerstatechange",a)};
g.h.DH=function(a){3!=dl(this)&&(!g.T(a.state,32)&&0>eo(a,16)&&(!g.T(a.state,8)||g.T(a.state,64)||this.F.Cg()||g.T(a.state,2)||RY(this)),this.g.Ra("presentingplayerstatechange",a))};
g.h.wJ=function(a){p6(this,Uk(a.state))};
g.h.jE=function(a){"newdata"==a&&V5(this)};
g.h.pE=function(){this.g.ya("onPlaybackAudioChange",s6(this).yc.name)};
g.h.AH=function(a){var b=this.C.getVideoData();a==b&&this.g.ya("onPlaybackQualityChange",a.A.video.quality)};
g.h.hp=function(a,b,c){if("newdata"==a)Zy(this.D),this.g.Ra("videoplayerreset",b);else{if(!this.F)return;if("dataloaded"==a)if(wx(b.W,c.C),this.C==this.o){if(this.W.experiments.g("disable_sap_error_check")||!this.o.A.isError()){var d=X5(this);if(d||!DY(this).Op||this.W.isMobile){var e=DY(this);if(!hy(e)||d||Wx(this.o.g)){jy(e);if(d)l6(this,6);else{e=!1;d=CY.zd;!this.G&&d(this)&&(this.G=new CY(this,this.Kb),R5(this,this.G),this.D.P=this.G,e=!0);try{var f=this.G;f&&!f.F&&f.zd(this.Kb)&&f.create()}catch(k){eh(k),
this.o&&Il(this.o,"ad")}e&&(f=this.G,d=DY(this),e=g.el(this),d.subscribe("cuepointupdated",f.TE,f),f.P=d,f=IY(f),null!=f&&(f.F=e),this.G.subscribe("overlay_ad_open",g.B(this.xv,!0),this),this.G.subscribe("overlay_ad_close",g.B(this.xv,!1),this))}d6(this)}else f=e.o&&!g.$w()?"html5.unsupportedlive":"fmt.noneavailable",d="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",(!xx(this.W)||$1||Xh()?0:g.Me||e.Ia&&hv)&&(d=e.Ia?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),g.VU(this.o,
f,d,"nosupported.1;f18."+ +(0<=e.fa.indexOf("itag=18"))+";f43."+ +(0<=e.fa.indexOf("itag=43")))}else e="YTP_DEVICE_FALLBACK",(!xx(this.W)||$1||Xh()?0:g.Me)&&(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),g.VU(this.o,"html5.unsupportedads",e,void 0)}}else d6(this);1==b.J&&(this.getVideoData().ac?(e=this.F,e.C=!0,e.oj(!0)):(this.F.C=!1,m6(this,this.N)),this.getVideoData().o&&!this.W.Di&&g.VU(this.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),jy(c)&&(c.Dd||c.Hh||c.F.focEnabled||c.F.rmktEnabled||
this.getVideoData().Eq)&&(e=this.getVideoData(),x6(this,"part2viewed",1,0x8000000000000),x6(this,"engagedview",Math.max(1,1E3*e.pa),0x8000000000000),e.o||(e=1E3*e.lengthSeconds,x6(this,"videoplaytime25",.25*e,e),x6(this,"videoplaytime50",.5*e,e),x6(this,"videoplaytime75",.75*e,e),x6(this,"videoplaytime100",e,0x8000000000000),x6(this,"conversionview",e,0x8000000000000))));this.g.Ra("videodatachange",a,c,b.J)}this.W.kb&&this.g.ya("onVideoDataChange",{type:a,playertype:b.J});a=c.clientScreenNonce;c=
c.rootVeType;!this.W.experiments.g("player_change_screen_killswitch")&&a&&c&&(b=this.ca,a!=b.C&&(b.C=a,g.Ml(b,"onScreenChanged",{csn:a,root_ve_type:c}),b.g.length&&g.Ml(b,"onLogVesShown",{ids:b.g}),b.o=g.jb(b.g)))};
g.h.Mj=function(){h6(this,null);this.g.ya("onPlaylistUpdate")};
g.h.Wt=function(a){var b=a.getId(),c=DY(this);if("part2viewed"==b)c.lq&&g.oi(c.lq),c.Hh&&g.oi(c.Hh);else if("conversionview"==b){var d=this.o;d.sa&&bo(d.sa)}else"engagedview"==b&&g.oi(c.Dd);c.Aa&&(d=y6(this,c.Aa,a.getId()),g.oi(d));switch(b){case "videoplaytime25":c.aq&&g.oi(c.aq);g.oi(c.aB);break;case "videoplaytime50":c.bq&&g.oi(c.bq);g.oi(c.uB);break;case "videoplaytime75":c.cq&&g.oi(c.cq);g.oi(c.BC);break;case "videoplaytime100":c.Xp&&g.oi(c.Xp),g.oi(c.LA)}(b=this.getVideoData().Eq)&&b[a.getId()]&&
(c=b[a.getId()],g.oi(c,void 0,Ap(c)),b=b[a.getId()+"gaia"],g.oi(b,void 0,Ap(b)));this.o.C.D(a)};
g.h.isPeggedToLive=function(){return this.o.isPeggedToLive()};
g.h.zJ=function(a,b){var c=a.getVideoData();if(1==this.P||2==this.P)c.startSeconds=b;2==this.P?j6(this):this.g.Ra("seekto",b)};
g.h.bE=function(){this.g.Ra("airplayactivechange")};
g.h.cE=function(){this.g.Ra("airplayavailabilitychange")};
g.h.vE=function(){this.g.Ra("beginseeking")};
g.h.bF=function(){this.g.Ra("endseeking")};
g.h.ho=function(){var a=this.A.Qb(),b=this.getVideoData();b.Z||!this.da?(b=b.Ja,a=z6(this,a),b&&D6(this,a)):a&&E6(this,a);this.g.ya("onPlaylistUpdate")};
g.h.hE=function(a){this.g.ya("onCueRangeEnter",a.getId())};
g.h.iE=function(a){this.g.ya("onCueRangeExit",a.getId())};
g.h.mE=function(){this.fa||(this.fa=Wv(this.du,this));fS(this.H,WY(this));if(this.W.experiments.g("html5_playlist_preload")&&g.k3(this)){var a=this.A.Qb(sy(this.A));a&&B6(this,a,1)}};
g.h.kE=function(){var a=DY(this),b=this.o.C.g.g||[],c=this.Na.videoplaytime100;this.W.experiments.g("send_pyv_ad_mt_and_abandon_pings")&&a.Aa&&0<=b.indexOf(c)&&(a=y6(this,a.Aa,"video_abandon"),g.oi(a))};
g.h.du=function(a){a=a.g;if(!(0,window.isNaN)(a)&&0<a&&this.o){var b=this.o;b.sa&&0<a&&(b.sa.o.o.aft=[a])}};
g.h.mu=function(a){"remote"==a?(l6(this,6),e6(this,this.G)):this.bo()};
g.h.nu=function(){this.bo()};
g.h.bo=function(){this.W.kb&&this.C?this.g.ya("onApiChange",this.C.J):this.g.ya("onApiChange")};
g.h.OF=function(){var a={volume:g.te(Math.floor(100*this.F.getVolume()),0,100),muted:this.F.zp()};a.muted||n6(this,!1);this.N=Wb(a);this.g.ya("onVolumeChange",a)};
g.h.jF=function(){var a=vh();O6(this,a==this.B.element?1:0);N6(this,this.W.experiments.g("lock_fullscreen_tag")?g.df(this.B.element,a||null):a==this.B.element)};
g.h.yJ=function(){var a=g.ls(this.B);Af(this.Lb,a)||(this.Lb=a,this.C&&uV(this.C,"r"),!this.W.experiments.g("disable_app_resize")&&this.o&&this.o!=this.C&&uV(this.o,"r"),1==this.Oa&&this.va&&N6(this,!0));a=this.B.Sa();this.g.Ra("resize",a);this.qb&&g.Ae(this.qb,a)||(this.g.Ra("appresize",a),this.qb=a)};
g.h.KG=function(){2!=this.Oa&&O6(this,vh()==this.B.element?1:0)};
g.h.yF=function(a){3!=dl(this)&&this.g.Ra("liveviewshift",a)};
g.h.ZG=function(){U6(this,"signature")};
g.h.$E=function(){U6(this,"drm_session_limit_exhausted")};
g.h.OE=function(){this.g.ya("CONNECTION_ISSUE")};
g.h.vJ=function(a){this.g.Ra("heartbeatparams",a)};
g.h.R=function(){this.o.dispose();this.J&&this.J.dispose();a6(this);g.Db(g.Lb(this.Ja),this.A);Vv(this.fa);this.fa=0;S5.M.R.call(this)};g.ka("yt.player.Application.create",S5.create,void 0);var g8=u("ytcsi.tick");g8&&g8("pe");})(_yt_player);
