var _yt_player={};(function(g){var window=this;var h,p,q,r,v,da,ea,fa,ga,w,ha,ia,ka,la,oa,pa,qa,y,ra,sa,ta,A,ua,va,wa,B,xa,ya,Ga,Ka,Ha,Ia,Ma,Na,Pa,C,Qa,Ra,Ua,Ta,Va,Xa,Ya,Za,$a,ab,bb,cb,fb,eb,ib,gb,kb,lb,nb,ob,qb,pb,rb,sb,tb,ub,wb,vb,xb,Ab,Bb,yb,Cb,Db,Eb,Gb,zb,Fb,Hb,Ib,Jb,Kb,Lb,F,G,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Wb,Xb,Yb,Zb,$b,Vb,ac,bc,cc,dc,ec,fc,gc,hc,ic,kc,lc,mc,nc,oc,pc,rc,tc,uc,vc,wc,zc,Bc,Ec,Fc,Hc,Lc,Mc,Nc,Pc,Qc,Sc,Tc,Oc,Uc,Wc,Zc,dd,ed,fd,$c,id,hd,bd,Xc,Vc,H,kd,ld,md,nd,od,pd,sd,rd,td,ud,Ad,wd,Bd,Cd,Dd,Fd,Gd,Id,Jd,Kd,Md,Nd,Od,Qd,Sd,Ud,Vd,Rd,
Td,Ed,Ld,ae,Yd,Wd,Xd,be,$d,Zd,Pd,de,ee,fe,ge,he,ie,je,ke,le,I,me,oe,pe,K,qe,se,ye,Ae,Be,Ce,Ee,Fe,He,Ie,Le,Ke,Ne,Oe,Pe,Re,Se,Ue,Te,$e,bf,cf,df,ef,gf,hf,jf,kf,lf,mf,nf,rf,tf,uf,sf,wf,xf,Af,yf,Bf,L,Cf,Ef,Gf,Hf,If,Jf,Kf,Lf,Mf,Of,Qf,Pf,Sf,Tf,pf,Uf,Vf,Wf,Zf,Xf,Yf,Ff,ag,bg,$f,of,cg,dg,eg,fg,ig,hg,gg,jg,kg,og,pg,qg,rg,sg,tg,ug,vg,wg,xg,zg,Ag,Bg,Cg,Eg,Fg,Dg,Gg,Hg,Ig,Jg,Lg,Mg,Ng,Og,Pg,Qg,Rg,Sg,Tg,Ug,Vg,Wg,Xg,Zg,$g,bh,ch,M,dh,eh,fh,gh,hh,nh,ph,qh,rh,sh,ih,lh,th,jh,vh,wh,uh,yh,oh,xh,kh,zh,Bh,Ch,Dh,Eh,Fh,Gh,Hh,
Ih,Jh,Kh,Lh,Mh,Nh,Oh,Ph,Qh,Rh,Sh,Th,Vh,Xh,Yh,Zh,ai,bi,fi,gi,hi,ii,ji,ki,qi,pi,mi,si,ti,yi,Bi,vi,Ai,xi,zi,Gi,Hi,Ii,Ji,Li,Mi,Ni,Pi,Qi,Oi,Ui,Vi,Xi,Yi,Zi,$i,Wi,aj,cj,N,Si,ij,kj,jj,lj,mj,nj,oj,dj,sj,rj,uj,tj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Fj,Gj,Hj,Ij,Kj,Mj,Nj,Oj,Pj,Qj,Rj,Sj,Tj,Uj,Wj,Xj,Vj,Yj,Zj,ak,dk,ck,gk,hk,fk,ik,lk,jk,kk,mk,nk,ok,pk,qk,rk,sk,tk,uk,vk,wk,xk,yk,zk,Ak,Bk,Dk,Ek,Fk,Ck,Hk,Ik,Kk,Sk,Nk,Qk,Tk,Ok,Vk,Pk,Zk,Wk,Yk,$k,al,cl,el,fl,dl,gl,il,jl,ll,ml,hl,nl,kl,pl,sl,tl,rl,ul,ol,ql,vl,wl,xl,zl,Al,yl,Bl,
Cl,Dl,El,Fl,Gl,Hl,ui,Il,Jl,Kl,Tl,Sl,Yl,Zl,$l,bm,dm,em,fm,Ll,hm,Nl,Ul,Pl,Ml,Ql,Rl,cm,Wl,Ol,jm,km,mm,om,qm,sm,rm,pm,tm,um,vm,wm,xm,ym,zm,Am,Bm,Cm,Dm,Em,Fm,Gm,Hm,Jm,Im,Mm,Nm,Lm,Om,Pm,Qm,Rm,Sm,Tm,Um,Wm,Xm,Vm,fn,Zm,jn,Ym,kn,mn,en,dn,cn,pn,on,qn,rn,tn,vn,wn,xn,yn,zn,Cn,An,nn,Gn,Bn,Hn,En,In,Jn,Kn,Ln,Mn,Nn,Rn,On,Un,Tn,Yn,Wn,Pn,Vn,Zn,ao,un,Sn,$n,co,bo,Qn,sn,ln,an,fo,ho,go,io,jo,ko,lo,mo,no,oo,po,qo,ro,so,to,uo,vo,wo,xo,yo,Bo,Co,Fo,zo,Go,Ho,Io,Do,Eo,Jo,Ao,Lo,Ko,No,Oo,Mo,Po,Qo,Ro,So,Vo,To,Xo,Yo,Zo,ap,$o,bp,
Wo,Uo,cp,qp,sp,up,tp,yp,xp,vp,lp,Cp,zp,Fp,Ep,ip,gp,hp,Gp,Dp,kp,wp,Bp,mp,Ap,pp,fp,np,op,Ip,Lp,Mp,Np,Pp,Qp,Rp,Sp,Tp,Up,Vp,Wp,Op,Yp,aq,Xp,fq,gq,hq,iq,kq,mq,oq,pq,qq,rq,tq,uq,vq,wq,Bq,xq,Aq,Eq,Fq,Gq,O,yq,Hq,Iq,Jq,Kq,Mq,Lq,Nq,Qq,Oq,Pq,Rq,Sq,Tq,P,Uq,Vq,Wq,Xq,ar,cr,dr,br,Yq,gr,hr,ir,jr,lr,kr,mr,nr,vr,ur,wr,xr,yr,zr,Ar,Dr,Er,Fr,Jr,Kr,Pr,Qr,Ur,Xr,Vr,Wr,Yr,$r,Zr,as,es,fs,ds,cs,is,js,ks,ls,Gr,Ir,Hr,ms,Or,os,ns,Mr,qs,Lr,ts,ws,ys,As,Bs,Cs,Fs,Gs,Hs,Es,Js,Ls,Ks,Ns,Os,Ps,Rs,Ss,Ts,Us,Ws,Vs,Ys,$s,Xs,Zs,bt,Qs,at,dt,
ct,et,ft,R,gt,ht,lt,mt,nt,ot,pt,qt,rt,tt,wt,zt,xt,Bt,Ct,At,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Mt,Lt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,bu,cu,du,fu,gu,iu,hu,ju,ku,mu,lu,nu,ou,qu,ru,tu,uu,vu,wu,xu,yu,zu,Au,Bu,Cu,Du,Fu,Eu,Hu,Ju,Ku,Lu,Ou,Pu,Mu,Nu,Ru,Su,Tu,Wu,Vu,Xu,Yu,av,bv,cv,fv,iv,jv,ev,dv,kv,lv,qv,rv,tv,pv,nv,ov,mv,wv,xv,vv,zv,Av,Bv,Cv,Dv,Ev,Gv,Fv,Hv,Iv,Jv,Lv,Mv,Nv,Ov,Pv,Rv,Sv,Uv,Wv,aw,cw,dw,Zv,bw,Tv,Yv,Vv,ew,Xv,$v,fw,gw,hw,iw,kw,jw,lw,mw,nw,ow,xw,yw,tw,Bw,Cw,rw,uw,vw,aaa,ww,Dw,Ew,zw,Fw,Gw,Hw,Iw,Jw,
daa,eaa,haa,iaa,Kw,jaa,Nw,Lw,Mw,Ow,Pw,Rw,Sw,Tw,laa,maa,oaa,Uw,paa,qaa,Vw,saa,taa,uaa,Ww,xaa,Yw,$w,Zw,zaa,yaa,ax,Aaa,cx,bx,dx,ex,Baa,fx,gx,hx,ix,jx,kx,lx,mx,nx,px,qx,sx,rx,tx,Caa,ux,vx,wx,xx,yx,zx,Ax,Bx,Eaa,Cx,Dx,Ex,Fx,Gx,Hx,Ix,Faa,Jx,Kx,Lx,Mx,Nx,Ox,Px,Sx,Rx,Gaa,Tx,Vx,Wx,Xx,Yx,Zx,Iaa,Jaa,Kaa,Laa,Maa,Naa,ay,by,cy,dy,ey,Oaa,fy,gy,hy,iy,Qw,jy,Paa,Qaa,ky,qy,py,ry,ly,sy,ty,uy,vy,Taa,Uaa,Vaa,Ay,Waa,wy,yy,Xaa,Cy,By,Dy,Saa,Yaa,Ey,zy,Fy,Gy,Hy,Iy,Jy,Ly,My,Oy,Py,Ry,Sy,Ty,Uy,Zy,Yy,$y,az,bz,cz,dz,ez,fz,gz,hz,iz,
jz,oz,nz,lz,qz,pz,sz,tz,uz,wz,vz,cba,xz,yz,zz,Az,Bz,Cz,Dz,Ez,Fz,Gz,eba,Hz,Iz,fba,gba,hba,Kz,Jz,Lz,Mz,Nz,Oz,Pz,Qz,iba,Uz,Sz,Xz,Wz,fA,nba,nA,uba,mA,lA,eA,zA,AA,xA,Qu,DA,EA,FA,GA,Br,uA,HA,IA,yA,vA,KA,MA,zba,NA,OA,PA,QA,RA,SA,Aba,TA,VA,UA,Bba,WA,Cba,XA,Dba,Eba,YA,ZA,Fba,$A,cB,Gba,dB,eB,fB,gB,hB,iB,jB,kB,mB,lB,nB,pB,xB,tB,qB,rB,sB,uB,vB,wB,BB,AB,zB,Mba,DB,CB,EB,FB,HB,JB,GB,IB,NB,OB,PB,RB,Nba,SB,Oba,Pba,Qba,Rba,Sba,KB,VB,WB,XB,YB,Tba,Uba,Vba,$B,aC,bC,cC,dC,eC,fC,hC,Wba,tr,Xba,iC,jC,Yba,Zba,kC,$ba,aca,rC,
qC,mC,sC,uC,zC,BC,CC,AC,HC,KC,LC,JC,yC,MC,xC,vC,wC,DC,FC,IC,GC,fca,gca,hca,QC,RC,SC,TC,ica,jca,ZC,XC,WC,YC,bD,$C,UC,kca,VC,lca,aD,mca,cD,dD,eD,fD,gD,hD,iD,nca,nD,qD,jD,oD,vD,sD,pD,xD,uD,rD,tD,wD,kD,yD,oca,zD,rca,lD,mD,AD,BD,CD,ED,GD,HD,JD,KD,sca,LD,ID,DD,FD,MD,ND,OD,uca,vca,wca,xca,yca,tca,QD,XD,WD,ZD,aE,eE,bE,gE,hE,jE,lE,iE,kE,oE,zca,Aca,qE,rE,nE,sE,tE,mE,uE,vE,wE,pE,xE,yE,zE,Bca,dE,AE,Cca,BE,PD,CE,RD,YD,SD,TD,VD,UD,Dca,Eca,DE,FE,GE,EE,HE,IE,KE,LE,ME,NE,OE,PE,RE,cE,SE,$D,QE,Gca,WE,XE,YE,ZE,bF,dF,
eF,fF,Hca,iF,jF,lF,kF,mF,nF,rF,pF,qF,oF,sF,hF,tF,uF,vF,$E,wF,xF,aF,cF,yF,AF,BF,zF,DF,EF,Ica,FF,GF,Jca,HF,IF,Kca,KF,Lca,Mca,MF,Nca,LF,NF,Pca,Qca,OF,QF,SF,RF,TF,UF,Rca,VF,XF,WF,Sca,$F,Cq,aG,bG,cG,dG,Tca,eG,fG,Gu,gG,Zu,pu,hG,gv,iG,jG,Iu,ZF,kG,lG,mG,nG,oG,Vca,pG,qG,rG,JE,tG,sG,Wca,vG,wG,xG,yG,zG,AG,BG,ZB,CG,Xca,DG,EG,Yca,aB,Zca,$ca,ada,FG,GG,bB,fE,HG,IG,bda,JG,cda,dda,hda,ida,eda,fda,gda,KG,LG,MG,NG,OG,gA,jA,kA,PG,kda,jda,QG,lda,RG,TG,UG,mda,VG,WG,XG,YG,ZG,$u,nda,oda,$G,pda,rda,sda,bH,cH,dH,eH,fH,hH,
jH,iH,lH,kH,gH,mH,nH,oH,pH,tda,uda,vda,wda,qH,rH,xda,sH,tH,yda,uH,vH,yH,wH,AH,BH,Dda,Eda,FH,CH,GH,DH,KH,Fda,LH,MH,NH,OH,PH,QH,RH,SH,EH,Bda,Cda,zda,Ada,Gda,zs,vs,TH,UH,VH,WH,IH,HH,JH,XH,ZH,fI,bI,hI,iI,lI,kI,YH,rI,qI,gI,tI,mI,uI,wI,vI,CI,DI,EI,FI,oI,GI,HI,pI,xI,cI,AI,yI,II,sI,Kda,MI,dI,Ida,NI,Lda,PI,eI,QI,nI,Jda,Mda,aI,JI,zI,OI,SI,RI,UI,T,TI,VI,WI,Nda,nq,ZI,aJ,bJ,Q,us,ny,cJ,eJ,Cr,fJ,gJ,hJ,yv,Aw,Nr,iJ,QB,oy,xs,lJ,mJ,nJ,pJ,lq,qw,qJ,Oda,Pda,rJ,sJ,Qda,tJ,uJ,vJ,wJ,xJ,Rda,yJ,zJ,Sda,Tda,Uda,AJ,BJ,Vda,CJ,DJ,
EJ,FJ,GJ,HJ,IJ,Wda,JJ,Xda,KJ,LJ,MJ,Yda,Zda,OJ,NJ,PJ,QJ,$da,aea,bea,RJ,SJ,dea,cea,eea,fea,TJ,gea,UJ,hea,VJ,WJ,XJ,YJ,iea,$J,jea,ZJ,aK,bK,kea,cK,dK,lea,eK,fK,hK,gK,iK,mea,UE,TE,kK,lK,PC,VE,NC,OC,mK,jK,gF,nea,oea,nK,oK,rK,sK,tK,uK,qK,vK,pea,qea,rea,sea,pK,wK,tea,xK,yK,zK,AK,BK,CK,DK,EK,FK,GK,HK,JK,IK,KK,LK,MK,NK,OK,PK,QK,$I,RK,YI,UK,VK,WK,XK,YK,ZK,$K,aL,bL,eL,dL,fL,gL,hL,iL,jL,kL,uea,vea,lL,mL,nL,oL,xea,wea,qL,yea,rL,sL,tL,vL,wL,yL,zL,Bea,AL,BL,CL,dJ,Cea,Aea,DL,EL,FL,Dea,Eea,HL,Fea,IL,JL,GL,KL,LL,ML,
Gea,Iea,QL,Jea,Kea,NL,Hea,OL,SL,TL,RL,VL,UL,Mea,XL,WL,YL,$L,aM,ZL,cM,Pea,dM,fM,gM,hM,eM,iM,kM,jM,lM,nM,oM,rM,pM,tM,vM,wM,AM,BM,CM,DM,FM,EM,GM,HM,IM,LM,Rea,KM,MM,PM,W,QM,Sea,TM,SM,UM,VM,WM,XM,YM,ZM,$M,aN,bN,RM,cN,dN,Uea,eN,fN,gN,hN,iN,jN,lN,mN,nN,oN,pN,qN,rN,Vea,Wea,sN,Xea,tN,Yea,Zea,$ea,vN,xN,wN,yN,zN,AN,BN,CN,bfa,afa,DN,EN,GN,FN,HN,IN,KN,MN,JN,NN,ON,TN,dfa,VN,WN,XN,ZN,$N,cO,eO,fO,efa,iO,mO,nO,gfa,oO,pO,qO,rO,sO,hfa,ifa,jfa,vO,ofa,yO,lfa,mfa,kfa,nfa,zO,tO,qfa,BO,uO,wO,CO,rfa,DO,EO,FO,GO,HO,sfa,IO,
JO,tfa,wfa,vfa,LO,MO,KO,gO,OO,xfa,zfa,QO,yfa,Afa,RO,SO,TO,VO,UO,WO,PO,XO,Bfa,YO,Dfa,Efa,$O,Ffa,Gfa,aP,bP,cP,dP,Hfa,eP,gP,fP,Jfa,tP,qP,nP,Lfa,vP,Kfa,sP,hP,GP,Ofa,wP,uP,Pfa,Qfa,Rfa,Sfa,Tfa,Nfa,yP,KP,LP,Vfa,MP,NP,OP,PP,RP,SP,QP,Wfa,TP,Xfa,UP,XP,YP,Yfa,ZP,Zfa,bQ,eQ,dQ,fQ,$fa,gQ,iQ,fga,aga,mQ,hga,gga,nQ,oQ,qQ,pQ,mga,rQ,uQ,vQ,yQ,AQ,zQ,sga,CQ,xQ,DQ,tga,FQ,EQ,uga,GQ,IQ,KQ,JQ,vga,LQ,wga,MQ,NQ,xga,OQ,yga,zga,Aga,Bga,PQ,Cga,QQ,Dga,RQ,SQ,TQ,UQ,Fga,VQ,WQ,XQ,ZQ,aR,bR,YQ,dR,Gga,Hga,cR,eR,fR,gR,hR,Jga,kR,lR,mR,Y,
oR,pR,qR,rR,sR,tR,uR,xR,yR,Kga,CR,DR,Oga,FR,LR,MR,OR,BR,KR,IR,Uga,Vga,Wga,PR,QR,Xga,Yga,Zga,RR,TR,SR,UR,$ga,aha,bha,cha,WR,ZR,$R,aS,bS,cS,dS,eS,fS,dha,gS,hS,jS,iS,lS,kS,mS,nS,eha,rS,sS,tS,uS,vS,xS,yS,zS,BS,CS,AS,DS,ES,FS,GS,HS,IS,JS,KS,fha,NS,OS,LS,MS,QS,US,RS,SS,PS,TS,gha,VS,WS,XS,YS,ZS,$S,aT,cT,dT,bT,hha,gT,hT,iha,iT,jha,kha,lha,mha,jT,kT,lT,mT,nT,oT,pT,qT,rT,sT,nha,tT,uT,vT,wT,xT,yT,zT,AT,BT,CT,ET,FT,pha,qha,HT,IT,LT,JT,KT,MT,NT,sha,tha,OT,PT,VT,WT,QT,XT,xha,ZT,yha,RT,wha,ST,TT,UT,vha,eU,fU,gU,
lU,hU,Fha,Gha,mU,Iha,Dha,oU,Eha,qU,Hha,rU,sU,tU,Lha,Mha,Nha,Oha,Pha,vU,uU,wU,Qha,Rha,xU,yU,Sha,AU,BU,CU,DU,Tha,Uha,zU,EU,FU,GU,HU,IU,JU,KU,LU,MU,PU,OU,NU,Xha,QU,fT,eT,TU,$ha,SU,RU,UU,VU,WU,XU,YU,ZU,$U,bia,fV,gV,iV,aU,oV,sV,tV,uV,gia,vV,jV,hia,wV,xV,dU,zV,BV,Bha,CV,$T,Cha,AV,DV,EV,FV,GV,HV,IV,JV,kia,lia,jia,mia,yV,nia,TV,oia,UV,hV,VV,WV,XV,YV,ZV,pia,$V,nV,PV,SV,aW,bU,bW,cW,cU,mV,dW,rV,eW,fW,kV,pV,QV,iia,gW,hW,iW,kW,jW,ria,mW,lW,tia,uia,sia,nW,oW,pW,qW,rW,via,sW,zia,wia,xia,tW,Aia,Bia,uW,vW,xW,yW,zW,
AW,Cia,Dia,Eia,Fia,BW,CW,Gia,DW,Hia,EW,FW,GW,Jia,HW,KW,LW,MW,Kia,NW,OW,Mia,Lia,PW,QW,RW,SW,TW,KV,LV,OV,UW,VW,WW,MV,NV,aV,bX,eV,aX,dV,bV,$W,cV,fX,gX,iX,Nia,jX,kX,lX,mX,nX,oX,pX,qX,rX,sX,tX,Oia,uX,vX,wX,xX,yX,zX,AX,Pia,BX,CX,DX,EX,Qia,FX,GX,HX,IX,KX,JX,Ria,LX,MX,Sia,Tia,NX,OX,QX,RX,Via,SX,Uia,Zia,Yia,$ia,Xia,Wia,bja,TX,cja,VX,PX,eja,aja,hja,gja,fja,ija,jja,UX,WX,kja,nja,mja,oja,pja,lja,rja,tja,sja,vja,ZX,$X,aY,bY,cY,dY,eY,fY,gY,hY,iY,kY,lY,mY,rY,qY,vY,wY,oY,xY,yY,zY,AY,nY,pY,sY,CY,Cja,DY,Dja,EY,FY,
GY,HY,IY,JY,Eja,KY,Fja,Gja,LY,Hja,Ija,MY,NY,Jja,Lja,Mja,Nja,Oja,nU,Pja,Qja,OY,PY,Sja,RY,TY,Wja,QY,Xja,UY,Rja,Zja,$ja,aka,WY,VY,XY,bka,cka,YY,ZY,eka,fka,gka,cZ,dZ,eZ,fZ,gZ,hZ,iZ,jZ,hka,ika,kZ,lZ,mZ,oZ,nZ,jka,qZ,pZ,rZ,sZ,tZ,vZ,uZ,wZ,xZ,yZ,mka,BZ,nka,CZ,DZ,oka,EZ,FZ,AZ,pka,GZ,HZ,zZ,IZ,JZ,KZ,LZ,NZ,qka,MZ,OZ,PZ,rka,QZ,RZ,ska,SZ,TZ,Z,XZ,VZ,UZ,tka,YZ,ZZ,$Z,b_,uka,c_,d_,e_,f_,vka,h_,i_,j_,k_,l_,m_,wka,n_,o_,p_,xka,r_,s_,t_,u_,v_,w_,x_,y_,z_,A_,B_,C_,E_,F_,G_,yka,zka,H_,Aka,I_,J_,K_,L_,O_,M_,Bka,Cka,Dka,P_,
Q_,R_,S_,T_,U_,V_,W_,X_,Y_,Z_,$_,Gka,Fka,b0,a0,c0,d0,e0,Hka,Ika,f0,h0,Kka,Jka,i0,Mka,k0,Nka,j0,o0,p0,q0,Pka,Qka,r0,s0,Rka,t0,u0,Ska,w0,Tka,x0,y0,A0,B0,z0,Vka,C0,E0,F0,D0,G0,H0,Wka,I0,Xka,O0,J0,K0,M0,T0,P0,R0,Q0,W0,S0,U0,Yka,N0,L0,X0,Y0,$ka,Z0,ala,Zka,bla,dla,a1,$0,b1,c1,$Y,fla,gla,f1,g1,h1,e1,i1,d1,hla,aZ,j1,k1,l1,m1,n1,o1,q1,r1,ila,jla,s1,t1,u1,v1,w1,x1,A1,mla,kla,lla,nla,B1,E1,C1,F1,I1,J1,L1,O1,N1,M1,Q1,ola,S1,R1,U1,T1,V1,W1,X1,Y1,Z1,$1,a2,pla,b2,sla,c2,d2,f2,g2,tla,ula,h2,vla,i2,l2,k2,j2,m2,o2,
q2,t2,u2,wla,v2,w2,xla,x2,y2,z2,A2,B2,C2,D2,E2,F2,G2,L2,yla,H2,M2,N2,O2,P2,J2,Q2,R2,S2,T2,V2,X2,Z2,Y2,$2,U2,W2,c3,b3,d3,e3,Ala,g3,f3,h3,Bla,Ela,Cla,Fla,Dla,j3,Gla,k3,l3,m3,Hla,p3,o3,t3,n3,I2,u3,v3,Ila,w3,z3,Jla,x3,q3,y3,s3,r3,D3,E3,K2,C3,B3,F3,G3,H3,I3,Lla,Pla,Kla,Mla,Ola,K3,M3,N3,O3,P3,Q3,R3,S3,T3,U3,Qla,V3,X3,W3,Y3,Rla,Z3,Sla,$3,a4,d4,e4,f4,g4,h4,Tla,Ula,c4,j4,l4,Vla,m4,k4,n4,o4,p4,Wla,Xla,Zla,Yla,q4,r4,s4,$la,ama,bma,t4,cma,w4,z4,A4,u4,x4,y4,v4,B4,z1,y1,D1,E4,F4,G4,H4,K4,n2,N4,D4,O4,R4,b4,P4,s2,
r2,A3,T4,L3,U4,W4,X4,V4,b5,d5,e5,f5,Y4,Z4,c5,$4,g5,a5,h5,i5,j5,k5,gma,fma,n5,p5,my,q5,o5,s5,p2,l5,t5,u5,v5,w5,x5,z5,A5,y5,C5,D5,E5,jma,kma,F5,G5,lma,H5,I5,J5,jI,BI,K5,zq,$H,M5,KI,LI,N5,I4,O5,Q5,cL,R5,S5,T5,U5,V5,W5,Y5,Z5,$5,X5,a6,Kv,c6,e6,g6,h6,i6,j6,l6,k6,m6,o6,p6,n6,q6,r6,s6,mma,t6,u6,v6,w6,z6,A6,y6,x6,C6,B6,D6,E6,F6,G6,I6,K6,H6,L6,M6,N6,O6,P6,Q6,R6,S6,nma,T6,U6,V6,W6,X6,Y6,Z6,$6,b7,a7,c7,d7,e7,f7,g7,i7,h7,k7,j7,l7,m7,n7,o7,p7,t7,r7,q7,s7,v7,u7,w7,y7,A7,B7,z7,C7,D7,E7,F7,H7,L7,G7,O7,P7,Q7,J7,R7,
I7,T7,N7,K7,S7,U7,M7,W7,V7,X7,Y7,Z7,$7,a8,b8,c8,d8,e8,f8,h8,g8,i8,j8,k8,l8,m8,n8,p8,q8,r8,s8,o8,t8,u8,v8,x8,w8,y8,z8,A8,B8,C8,D8,F8,E8,G8,I8,b6,K8,J8,H8,L8,x7,N8,P8,O8,Q8,S8,jJ,M8,T8,kJ,R8,U8,tma,vma,jsa,Y8,lsa,a9,ksa,b9,c9,d9,e2,M4,Z8,L4,XI,e9,g9,f9,h9,C4,i9,j9,msa,nsa,n9,m9,q9,r9,W8,s9,t9,u9,v9,$8,l9,k9,y9,z9,o9,p9,B9,C9,A9,E9,F9,H9,G9,TK,I9,J9,K9,x9,L9,w9,N9,M9,jq,S4,P9,O9,Q9,R9,oJ,Q4,S9,D9,X8,T9,osa,U9,V9,W9,X9,Y9,Dn,aa,ma,na,D;p=function(a){return void 0!==a};
g.ca=function(a,b,c){a=a.split(".");c=c||aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}};
q=function(a,b){for(var c=a.split("."),d=b||aa,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
r=function(){};
v=function(){throw Error("unimplemented abstract method");};
da=function(a){a.getInstance=function(){return a.ac?a.ac:a.ac=new a}};
ea=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};
fa=function(a){return"array"==ea(a)};
ga=function(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length};
w=function(a){return"string"==typeof a};
ha=function(a){return"boolean"==typeof a};
ia=function(a){return"number"==typeof a};
ka=function(a){return"function"==ea(a)};
la=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
oa=function(a){return a[ma]||(a[ma]=++na)};
pa=function(a,b,c){return a.call.apply(a.bind,arguments)};
qa=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)}};
y=function(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return y.apply(null,arguments)};
ra=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)}};
sa=function(a,b){for(var c in b)a[c]=b[c]};
ta=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a};
A=function(a,b){function c(){}
c.prototype=b.prototype;a.L=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.cR=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)}};
ua=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ua);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
va=function(a,b){return 0==a.lastIndexOf(b,0)};
wa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
B=function(a){return/^[\s\xa0]*$/.test(a)};
xa=function(a){return(0,window.encodeURIComponent)(String(a))};
ya=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
Ga=function(a){if(!za.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Aa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ba,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ca,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Da,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ea,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Fa,"&#0;"));return a};
Ka=function(a){return-1!=a.indexOf("&")?"document"in aa?Ha(a):Ia(a):a};
Ha=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=aa.document.createElement("div");return a.replace(La,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})};
Ia=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}})};
Ma=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
Na=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
Pa=function(a,b,c){a=p(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Oa("0",Math.max(0,b-c))+a};
C=function(a){return null==a?"":String(a)};
Qa=function(a){return Array.prototype.join.call(arguments,"")};
Ra=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^D()).toString(36)};
Ua=function(a,b){for(var c=0,d=Sa(String(a)).split("."),e=Sa(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=Ta(0==l[1].length?0:(0,window.parseInt)(l[1],10),0==m[1].length?0:(0,window.parseInt)(m[1],10))||Ta(0==l[2].length,0==m[2].length)||Ta(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Ta=function(a,b){return a<b?-1:a>b?1:0};
Va=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Xa=function(){return"goog_"+Wa++};
Ya=function(a){var b=Number(a);return 0==b&&B(a)?window.NaN:b};
Za=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
$a=function(a){var b=w(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
ab=function(a){(0,window.isFinite)(a)&&(a=String(a));return w(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};
bb=function(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d};
cb=function(a){return a[a.length-1]};
fb=function(a,b,c){b=eb(a,b,c);return 0>b?null:w(a)?a.charAt(b):a[b]};
eb=function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
ib=function(a,b){var c=gb(a,b,void 0);return 0>c?null:w(a)?a.charAt(c):a[c]};
gb=function(a,b,c){for(var d=w(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};
kb=function(a,b){return 0<=jb(a,b)};
lb=function(a){return 0==a.length};
nb=function(a){if(!fa(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
ob=function(a,b){kb(a,b)||a.push(b)};
qb=function(a,b){var c=jb(a,b),d;(d=0<=c)&&pb(a,c);return d};
pb=function(a,b){Array.prototype.splice.call(a,b,1)};
rb=function(a,b){var c=eb(a,b,void 0);0<=c&&pb(a,c)};
sb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};
tb=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[]};
ub=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ga(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)}};
wb=function(a,b,c,d){Array.prototype.splice.apply(a,vb(arguments,1))};
vb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
xb=function(a,b,c){function d(a){return la(a)?"o"+oa(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};
Ab=function(a,b,c){return yb(a,c||zb,!1,b)};
Bb=function(a,b){return yb(a,b,!0,void 0,void 0)};
yb=function(a,b,c,d,e){for(var f=0,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};
Cb=function(a,b){a.sort(b||zb)};
Db=function(a,b,c){var d=c||zb;Cb(a,function(a,c){return d(b(a),b(c))})};
Eb=function(a,b){Db(a,function(a){return a[b]},void 0)};
Gb=function(a,b){if(!ga(a)||!ga(b)||a.length!=b.length)return!1;for(var c=a.length,d=Fb,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
zb=function(a,b){return a>b?1:a<b?-1:0};
Fb=function(a,b){return a===b};
Hb=function(a,b,c){c=Ab(a,b,c);0>c&&wb(a,-(c+1),0,b)};
Ib=function(a,b,c){var d={};E(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Jb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
Kb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(fa(d))for(var e=0;e<d.length;e+=8192)for(var f=Kb.apply(null,vb(d,e,e+8192)),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
Lb=function(a){for(var b=Math.random,c=a.length-1;0<c;c--){var d=Math.floor(b()*(c+1)),e=a[c];a[c]=a[d];a[d]=e}};
F=function(){this.jb=this.jb;this.Ma=this.Ma};
G=function(a,b){Mb(a,ra(Nb,b))};
Mb=function(a,b){a.jb?p(void 0)?b.call(void 0):b():(a.Ma||(a.Ma=[]),a.Ma.push(p(void 0)?y(b,void 0):b))};
Nb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
Ob=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ga(d)?Ob.apply(null,d):Nb(d)}};
Pb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
Qb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Rb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Sb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Tb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Ub=function(a){var b=0,c;for(c in a)b++;return b};
Wb=function(a,b){return Vb(a,b)};
Xb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
Yb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Zb=function(a,b){for(var c=ga(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);return a};
$b=function(a,b){return null!==a&&b in a};
Vb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
ac=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
bc=function(a,b){var c=ac(a,b,void 0);return c&&a[c]};
cc=function(a){for(var b in a)return!1;return!0};
dc=function(a){for(var b in a)delete a[b]};
ec=function(a,b){b in a&&delete a[b]};
fc=function(a,b,c){return null!==a&&b in a?a[b]:c};
gc=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0};
hc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
ic=function(a){var b=ea(a);if("object"==b||"array"==b){if(ka(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=ic(a[c]);return b}return a};
kc=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<jc.length;f++)c=jc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
lc=function(a){var b=arguments.length;if(1==b&&fa(arguments[0]))return lc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
mc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.g=!1;this.gt=!0};
nc=function(a){a.stopPropagation()};
oc=function(a){oc[" "](a);return a};
pc=function(a,b){try{return oc(a[b]),!0}catch(c){}return!1};
rc=function(a,b){var c=qc;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
tc=function(a){return-1!=sc.indexOf(a)};
uc=function(){return(tc("Chrome")||tc("CriOS"))&&!tc("Edge")};
vc=function(){return tc("iPhone")&&!tc("iPod")&&!tc("iPad")};
wc=function(){var a=aa.document;return a?a.documentMode:void 0};
zc=function(a){return rc(a,function(){return 0<=Ua(xc,a)})};
Bc=function(a){return Number(Ac)>=a};
Ec=function(a){return Cc?"webkit"+a:Dc?"o"+a.toLowerCase():a.toLowerCase()};
Fc=function(a,b){mc.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=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.b=this.state=null;a&&this.init(a,b)};
Hc=function(a){return!(!a||!a[Gc])};
Lc=function(a,b,c,d,e){this.listener=a;this.b=null;this.src=b;this.type=c;this.fg=!!d;this.Rd=e;this.key=++Ic;this.Kg=this.Di=!1};
Mc=function(a){a.Kg=!0;a.listener=null;a.b=null;a.src=null;a.Rd=null};
Nc=function(a){this.src=a;this.b={};this.g=0};
Pc=function(a,b,c,d,e,f){var k=b.toString();b=a.b[k];b||(b=a.b[k]=[],a.g++);var l=Oc(b,c,e,f);-1<l?(a=b[l],d||(a.Di=!1)):(a=new Lc(c,a.src,k,!!e,f),a.Di=d,b.push(a));return a};
Qc=function(a,b){var c=b.type;if(!(c in a.b))return!1;var d=qb(a.b[c],b);d&&(Mc(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d};
Sc=function(a){var b=0,c;for(c in a.b){for(var d=a.b[c],e=0;e<d.length;e++)++b,Mc(d[e]);delete a.b[c];a.g--}};
Tc=function(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=Oc(a,c,d,e));return-1<b?a[b]:null};
Oc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Kg&&f.listener==b&&f.fg==!!c&&f.Rd==d)return e}return-1};
Uc=function(a,b,c,d,e){if(fa(b)){for(var f=0;f<b.length;f++)Uc(a,b[f],c,d,e);return null}c=Vc(c);return Hc(a)?a.N(b,c,d,e):Wc(a,b,c,!1,d,e)};
Wc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=Xc(a);l||(a[Yc]=l=new Nc(a));c=Pc(l,b,c,d,e,f);if(c.b)return c;d=Zc();c.b=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent($c(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");ad++;return c};
Zc=function(){var a=bd,b=cd?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};
dd=function(a,b,c,d,e){if(fa(b)){for(var f=0;f<b.length;f++)dd(a,b[f],c,d,e);return null}c=Vc(c);return Hc(a)?Pc(a.nd,String(b),c,!0,d,e):Wc(a,b,c,!0,d,e)};
ed=function(a,b,c,d,e){if(fa(b))for(var f=0;f<b.length;f++)ed(a,b[f],c,d,e);else c=Vc(c),Hc(a)?a.sa(b,c,d,e):a&&(a=Xc(a))&&(b=Tc(a,b,c,!!d,e))&&fd(b)};
fd=function(a){if(ia(a)||!a||a.Kg)return!1;var b=a.src;if(Hc(b))return Qc(b.nd,a);var c=a.type,d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.fg):b.detachEvent&&b.detachEvent($c(c),d);ad--;(c=Xc(b))?(Qc(c,a),0==c.g&&(c.src=null,b[Yc]=null)):Mc(a);return!0};
$c=function(a){return a in gd?gd[a]:gd[a]="on"+a};
id=function(a,b,c,d){var e=!0;if(a=Xc(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.fg==c&&!f.Kg&&(f=hd(f,d),e=e&&!1!==f)}return e};
hd=function(a,b){var c=a.listener,d=a.Rd||a.src;a.Di&&fd(a);return c.call(d,b)};
bd=function(a,b){if(a.Kg)return!0;if(!cd){var c=b||q("window.event"),d=new Fc(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.g&&0<=k;k--){d.currentTarget=c[k];var l=id(c[k],f,!0,d),e=e&&l}for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],l=id(c[k],f,!1,d),e=e&&l}return e}return hd(a,new Fc(b,this))};
Xc=function(a){a=a[Yc];return a instanceof Nc?a:null};
Vc=function(a){if(ka(a))return a;a[jd]||(a[jd]=function(b){return a.handleEvent(b)});
return a[jd]};
H=function(){F.call(this);this.nd=new Nc(this);this.Oa=this;this.ua=null};
kd=function(a,b,c,d){b=a.nd.b[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.Kg&&k.fg==c){var l=k.listener,m=k.Rd||k.src;k.Di&&Qc(a.nd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.gt};
ld=function(a,b,c){this.B=c;this.o=a;this.A=b;this.g=0;this.b=null};
md=function(a,b){a.A(b);a.g<a.B&&(a.g++,b.next=a.b,a.b=b)};
nd=function(a){return function(){return a}};
od=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
pd=function(a){aa.setTimeout(function(){throw a;},0)};
sd=function(a,b){var c=a;b&&(c=y(a,b));!ka(aa.setImmediate)||aa.Window&&aa.Window.prototype&&!tc("Edge")&&aa.Window.prototype.setImmediate==aa.setImmediate?(qd||(qd=rd()),qd(c)):aa.setImmediate(c)};
rd=function(){var a=aa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!tc("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=y(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&&!tc("Trident")&&!tc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.up;c.up=null;a()}};
return function(a){d.next={up: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){aa.setTimeout(a,0)}};
td=function(){this.g=this.b=null};
ud=function(){this.next=this.scope=this.b=null};
Ad=function(a,b){vd||wd();xd||(vd(),xd=!0);var c=yd,d=zd.get();d.set(a,b);c.g?c.g.next=d:c.b=d;c.g=d};
wd=function(){if(aa.Promise&&aa.Promise.resolve){var a=aa.Promise.resolve(void 0);vd=function(){a.then(Bd)}}else vd=function(){sd(Bd)}};
Bd=function(){for(var a;a=yd.remove();){try{a.b.call(a.scope)}catch(b){pd(b)}md(zd,a)}xd=!1};
Cd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
Dd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Fd=function(a,b){this.b=0;this.D=void 0;this.A=this.g=this.o=null;this.B=this.C=!1;if(a!=r)try{var c=this;a.call(b,function(a){Ed(c,2,a)},function(a){Ed(c,3,a)})}catch(d){Ed(this,3,d)}};
Gd=function(){this.next=this.context=this.g=this.A=this.b=null;this.o=!1};
Id=function(a,b,c){var d=Hd.get();d.A=a;d.g=b;d.context=c;return d};
Jd=function(a){if(a instanceof Fd)return a;var b=new Fd(r);Ed(b,2,a);return b};
Kd=function(a){return new Fd(function(b,c){c(a)})};
Md=function(a,b,c){Ld(a,b,c,null)||Ad(ra(b,a))};
Nd=function(a){return new Fd(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Md(e,b,c)})};
Od=function(a){return new Fd(function(b,c){var d=a.length,e=[];if(d)for(var f=function(a,c){d--;e[a]=c;0==d&&b(e)},k=function(a){c(a)},l=0,m;l<a.length;l++)m=a[l],Md(m,ra(f,l),k);
else b(e)})};
Qd=function(){var a,b,c=new Fd(function(c,e){a=c;b=e});
return new Pd(c,a,b)};
Sd=function(a,b){var c=Id(b,b,void 0);c.o=!0;Rd(a,c)};
Ud=function(a,b){return Td(a,null,b,void 0)};
Vd=function(a,b){if(0==a.b)if(a.o){var c=a.o;if(c.g){for(var d=0,e=null,f=null,k=c.g;k&&(k.o||(d++,k.b==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.b&&1==d?Vd(c,b):(f?(d=f,d.next==c.A&&(c.A=d),d.next=d.next.next):Wd(c),Xd(c,e,3,b)))}a.o=null}else Ed(a,3,b)};
Rd=function(a,b){a.g||2!=a.b&&3!=a.b||Yd(a);a.A?a.A.next=b:a.g=b;a.A=b};
Td=function(a,b,c,d){var e=Id(null,null,null);e.b=new Fd(function(a,k){e.A=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){k(n)}}:a;
e.g=c?function(b){try{var e=c.call(d,b);!p(e)&&b instanceof Zd?k(b):a(e)}catch(n){k(n)}}:k});
e.b.o=a;Rd(a,e);return e.b};
Ed=function(a,b,c){0==a.b&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.b=1,Ld(c,a.G,a.H,a)||(a.D=c,a.b=b,a.o=null,Yd(a),3!=b||c instanceof Zd||$d(a,c)))};
Ld=function(a,b,c,d){if(a instanceof Fd)return Rd(a,Id(b||r,c||null,d)),!0;if(Dd(a))return a.then(b,c,d),!0;if(la(a))try{var e=a.then;if(ka(e))return ae(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
ae=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)}};
Yd=function(a){a.C||(a.C=!0,Ad(a.F,a))};
Wd=function(a){var b=null;a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.A=null);return b};
Xd=function(a,b,c,d){if(3==c&&b.g&&!b.o)for(;a&&a.B;a=a.o)a.B=!1;if(b.b)b.b.o=null,be(b,c,d);else try{b.o?b.A.call(b.context):be(b,c,d)}catch(e){ce.call(null,e)}md(Hd,b)};
be=function(a,b,c){2==b?a.A.call(a.context,c):a.g&&a.g.call(a.context,c)};
$d=function(a,b){a.B=!0;Ad(function(){a.B&&ce.call(null,b)})};
Zd=function(a){ua.call(this,a)};
Pd=function(a,b,c){this.o=a;this.g=b;this.b=c};
de=function(a,b){H.call(this);this.g=a||1;this.b=b||aa;this.o=y(this.Bz,this);this.A=D()};
ee=function(a,b){a.g=b;a.Vc&&a.enabled?(a.stop(),a.start()):a.Vc&&a.stop()};
fe=function(a,b,c){if(ka(a))c&&(a=y(a,c));else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:aa.setTimeout(a,b||0)};
ge=function(a){aa.clearTimeout(a)};
he=function(a,b,c){F.call(this);this.b=a;this.A=b||0;this.g=c;this.o=y(this.iq,this)};
ie=function(a){a.stop();a.iq()};
je=function(a){a.isActive()&&ie(a)};
ke=function(a){if(a.classList)return a.classList;a=a.className;return w(a)&&a.match(/\S+/g)||[]};
le=function(a,b){return a.classList?a.classList.contains(b):kb(ke(a),b)};
I=function(a,b){a.classList?a.classList.add(b):le(a,b)||(a.className+=0<a.className.length?" "+b:b)};
me=function(a,b){if(a.classList)E(b,function(b){I(a,b)});
else{var c={};E(ke(a),function(a){c[a]=!0});
E(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
oe=function(a,b){a.classList?a.classList.remove(b):le(a,b)&&(a.className=ne(ke(a),function(a){return a!=b}).join(" "))};
pe=function(a,b){a.classList?E(b,function(b){oe(a,b)}):a.className=ne(ke(a),function(a){return!kb(b,a)}).join(" ")};
K=function(a,b,c){c?I(a,b):oe(a,b)};
qe=function(a,b){var c=!le(a,b);K(a,b,c);return c};
se=function(a,b){return b?a.replace(re,""):a};
ye=function(a,b){for(var c=0,d=0,e=!1,f=se(a,b).split(te),k=0;k<f.length;k++){var l=f[k];ue.test(se(l,void 0))?(c++,d++):ve.test(l)?e=!0:we.test(se(l,void 0))?d++:xe.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1};
Ae=function(){this.b="";this.g=ze};
Be=function(a){return a instanceof Ae&&a.constructor===Ae&&a.g===ze?a.b:"type_error:Const"};
Ce=function(a){var b=new Ae;b.b=a;return b};
Ee=function(){this.b="";this.g=De};
Fe=function(a){var b=new Ee;b.b=a;return b};
He=function(){this.b="";this.g=Ge};
Ie=function(a){if(a instanceof He&&a.constructor===He&&a.g===Ge)return a.b;ea(a);return"type_error:SafeUrl"};
Le=function(a){if(a instanceof He)return a;a=a.Kf?a.Te():String(a);Je.test(a)||(a="about:invalid#zClosurez");return Ke(a)};
Ke=function(a){var b=new He;b.b=a;return b};
Ne=function(){this.b="";this.g=Me};
Oe=function(a){if(a instanceof Ne&&a.constructor===Ne&&a.g===Me)return a.b;ea(a);return"type_error:TrustedResourceUrl"};
Pe=function(a){var b=new Ne;b.b=a;return b};
Re=function(){this.b="";this.o=Qe;this.g=null};
Se=function(a){if(a instanceof Re&&a.constructor===Re&&a.o===Qe)return a.b;ea(a);return"type_error:SafeHtml"};
Ue=function(a){function b(a){if(fa(a))E(a,b);else{var e;a instanceof Re?e=a:(e=null,a.rm&&(e=a.ng()),a=Ga(a.Kf?a.Te():String(a)),e=Te(a,e));d+=Se(e);e=e.ng();0==c?c=e:0!=e&&c!=e&&(c=null)}}
var c=0,d="";E(arguments,b);return Te(d,c)};
Te=function(a,b){var c=new Re;c.b=a;c.g=b;return c};
$e=function(a,b,c){var d=null,e,f="";if(b)for(e in b){if(!Ve.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var l,m=a;l=e;if(k instanceof Ae)k=Be(k);else if("style"==l.toLowerCase()){if(!la(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof Ee)){var m="",n=void 0;for(n in k){if(!/^[-_a-zA-Z0-9]+$/.test(n))throw Error("Name allows only [-_a-zA-Z0-9], got: "+n);var t=k[n];if(null!=t){if(t instanceof
Ae)t=Be(t);else if(We.test(t)){for(var u=!0,x=!0,z=0;z<t.length;z++){var J=t.charAt(z);"'"==J&&x?u=!u:'"'==J&&u&&(x=!x)}u&&x||(t="zClosurez")}else t="zClosurez";m+=n+":"+t+";"}}k=m?Fe(m):Xe}k instanceof Ee&&k.constructor===Ee&&k.g===De?k=k.b:(ea(k),k="type_error:SafeStyle")}else{if(/^on/i.test(l))throw Error('Attribute "'+l+'" requires goog.string.Const value, "'+k+'" given.');if(l.toLowerCase()in Ye)if(k instanceof Ne)k=Oe(k);else if(k instanceof He)k=Ie(k);else if(w(k))k=Le(k).Te();else throw Error('Attribute "'+
l+'" on tag "'+m+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.Kf&&(k=k.Te());l=l+'="'+Ga(String(k))+'"';f+=" "+l}}e="<"+a+f;null!=c?fa(c)||(c=[c]):c=[];!0===Ze[a.toLowerCase()]?e+=">":(d=Ue(c),e+=">"+Se(d)+"</"+a+">",d=d.ng());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Te(e,d)};
bf=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};
cf=function(a,b){return Te(b,null)};
df=function(a,b,c){return Math.min(Math.max(a,b),c)};
ef=function(a,b,c){return a+c*(b-a)};
gf=function(a){return ff(arguments,function(a,c){return a+c},0)};
hf=function(a){return gf.apply(null,arguments)/arguments.length};
jf=function(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0};
kf=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
lf=function(a,b){this.width=a;this.height=b};
mf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
nf=function(a,b){var c;c=b instanceof He?b:Le(b);a.href=Ie(c)};
rf=function(a){return a?new of(pf(a)):qf||(qf=new of)};
tf=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):sf("*",a,b)};
uf=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=sf("*",a,b)[0];return d||null};
sf=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&&kb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
wf=function(a,b){Pb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:vf.hasOwnProperty(d)?a.setAttribute(vf[d],b):va(d,"aria-")||va(d,"data-")?a.setAttribute(d,b):a[d]=b})};
xf=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new lf(a.clientWidth,a.clientHeight)};
Af=function(a){var b=yf(a);a=a.parentWindow||a.defaultView;return zf&&zc("10")&&a.pageYOffset!=b.scrollTop?new jf(b.scrollLeft,b.scrollTop):new jf(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
yf=function(a){return a.scrollingElement?a.scrollingElement:Cc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Bf=function(a){return a?a.parentWindow||a.defaultView:window};
L=function(a,b,c){return Cf(window.document,arguments)};
Cf=function(a,b){var c=String(b[0]),d=b[1];if(!Df&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ga(d.name),'"');if(d.type){c.push(' type="',Ga(d.type),'"');var e={};kc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:fa(d)?c.className=d.join(" "):wf(c,d));2<b.length&&Ef(a,c,b,2);return c};
Ef=function(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!ga(f)||la(f)&&0<f.nodeType?e(f):E(Ff(f)?tb(f):f,e)}};
Gf=function(a,b){return a.createElement(String(b))};
Hf=function(a,b){a.appendChild(b)};
If=function(a,b){Ef(pf(a),a,arguments,1)};
Jf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Kf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
Lf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Mf=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
Of=function(a){return Nf&&void 0!=a.children?a.children:ne(a.childNodes,function(a){return 1==a.nodeType})};
Qf=function(a){return p(a.firstElementChild)?a.firstElementChild:Pf(a.firstChild)};
Pf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
Sf=function(a){var b;if(Rf&&!(zf&&zc("9")&&!zc("10")&&aa.SVGElement&&a instanceof aa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return la(b)&&1==b.nodeType?b:null};
Tf=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};
pf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
Uf=function(a){try{return a.contentWindow||(a.contentDocument?Bf(a.contentDocument):null)}catch(b){}return null};
Vf=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 Jf(a),a.appendChild(pf(a).createTextNode(String(b)))};
Wf=function(a){if("outerHTML"in a)return a.outerHTML;var b=Gf(pf(a),"DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
Zf=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Xf(a)||Yf(a)):Xf(a)&&Yf(a))&&zf){var c;!ka(a.getBoundingClientRect)||zf&&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};
Xf=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified};
Yf=function(a){a=a.tabIndex;return ia(a)&&0<=a&&32768>a};
Ff=function(a){if(a&&"number"==typeof a.length){if(la(a))return"function"==typeof a.item||"string"==typeof a.item;if(ka(a))return"function"==typeof a.item}return!1};
ag=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return $f(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&kb(a.className.split(/\s+/),c))},d)};
bg=function(a,b){return ag(a,null,b,void 0)};
$f=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;a=a.parentNode;d++}return null};
of=function(a){this.b=a||aa.document||window.document};
cg=function(a){a=a.b;return a.parentWindow||a.defaultView};
dg=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,""))};
eg=function(a){a=String(a);if(dg(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};
fg=function(a){return eval("("+a+")")};
ig=function(a){return gg(new hg(void 0),a)};
hg=function(a){this.b=a};
gg=function(a,b){var c=[];jg(a,b,c);return c.join("")};
jg=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(fa(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],jg(a,a.b?a.b.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),kg(d,c),c.push(":"),jg(a,a.b?a.b.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":kg(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);}}};
kg=function(a,b){b.push('"',a.replace(mg,function(a){var b=ng[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ng[a]=b);return b}),'"')};
og=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
pg=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
qg=function(a){return new og(a.top,a.left+a.width,a.top+a.height,a.left)};
rg=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};
sg=function(a){return new lf(a.width,a.height)};
tg=function(a){return new jf(a.left,a.top)};
ug=function(a){F.call(this);this.Ac=1;this.o=[];this.A=0;this.b=[];this.g={};this.B=!!a};
vg=function(a,b,c,d){if(b=a.g[b]){var e=a.b;if(b=fb(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.Nc(b)}return!1};
wg=function(a,b,c){Ad(function(){a.apply(b,c)})};
xg=function(){};
zg=function(a){if(a instanceof xg)return a;if("function"==typeof a.tc)return a.tc(!1);if(ga(a)){var b=0,c=new xg;c.next=function(){for(;;){if(b>=a.length)throw yg;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
Ag=function(a,b,c){if(ga(a))try{E(a,b,c)}catch(d){if(d!==yg)throw d;}else{a=zg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==yg)throw d;}}};
Bg=function(a){if(ga(a))return tb(a);a=zg(a);var b=[];Ag(a,function(a){b.push(a)});
return b};
Cg=function(a,b){this.g={};this.b=[];this.ff=this.ya=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 Cg?(c=a.Ua(),d=a.Ra()):(c=Yb(a),d=Xb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
Eg=function(a,b){return Dg(a.g,b)};
Fg=function(a){if(a.ya!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Dg(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.ya!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Dg(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}};
Dg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Gg=function(a){if(a.Ra&&"function"==typeof a.Ra)return a.Ra();if(w(a))return a.split("");if(ga(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Xb(a)};
Hg=function(a){if(a.Ua&&"function"==typeof a.Ua)return a.Ua();if(!a.Ra||"function"!=typeof a.Ra){if(ga(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Yb(a)}};
Ig=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(ga(a)||w(a))E(a,b,void 0);else for(var c=Hg(a),d=Gg(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
Jg=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};
Lg=function(a){return a.match(Kg)};
Mg=function(a){return a?(0,window.decodeURI)(a):a};
Ng=function(a){return Mg(Lg(a)[3]||null)};
Og=function(a){return Number(Lg(a)[4]||null)||null};
Pg=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?ya(k):"")}};
Qg=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("")};
Rg=function(a,b,c){if(fa(b))for(var d=0;d<b.length;d++)Rg(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",xa(b))};
Sg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Rg(b[c],b[c+1],a);return a};
Tg=function(a,b){for(var c in b)Rg(c,b[c],a);return a};
Ug=function(a){a=Tg([],a);a[0]="";return a.join("")};
Vg=function(a,b){return Qg(2==arguments.length?Sg([a],arguments[1],0):Sg([a],arguments,1))};
Wg=function(a,b){return Qg(Tg([a],b))};
Xg=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};
Zg=function(a,b){return 0<=Xg(a,0,b,a.search(Yg))};
$g=function(a,b){var c=a.search(Yg),d=Xg(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 ya(a.substr(d,e-d))};
bh=function(a,b){for(var c=a.search(Yg),d=0,e,f=[];0<=(e=Xg(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(ah,"$1")};
ch=function(a,b,c){a=[bh(a,b),"&",b];null!=c&&a.push("=",xa(c));return Qg(a)};
M=function(a,b){this.g=this.H=this.A="";this.D=null;this.G=this.o="";this.B=!1;var c;a instanceof M?(this.B=p(b)?b:a.B,dh(this,a.A),this.H=a.H,eh(this,a.g),fh(this,a.D),gh(this,a.o),hh(this,a.b.clone()),this.G=a.F()):a&&(c=Lg(String(a)))?(this.B=!!b,dh(this,c[1]||"",!0),this.H=ih(c[2]||""),eh(this,c[3]||"",!0),fh(this,c[4]),gh(this,c[5]||"",!0),hh(this,c[6]||"",!0),this.G=ih(c[7]||"")):(this.B=!!b,this.b=new jh(null,0,this.B))};
dh=function(a,b,c){a.A=c?ih(b,!0):b;a.A&&(a.A=a.A.replace(/:$/,""))};
eh=function(a,b,c){a.g=c?ih(b,!0):b;return a};
fh=function(a,b){if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null;return a};
gh=function(a,b,c){a.o=c?ih(b,!0):b};
hh=function(a,b,c){b instanceof jh?(a.b=b,kh(a.b,a.B)):(c||(b=lh(b,mh)),a.b=new jh(b,0,a.B));return a};
nh=function(a,b,c){a.b.set(b,c);return a};
ph=function(a,b,c){fa(c)||(c=[String(c)]);oh(a.b,b,c)};
qh=function(a){nh(a,"zx",Ra());return a};
rh=function(a){return a instanceof M?a.clone():new M(a,void 0)};
sh=function(a,b,c,d){var e=new M(null,void 0);a&&dh(e,a);b&&eh(e,b);c&&fh(e,c);d&&gh(e,d);return e};
ih=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
lh=function(a,b,c){return w(a)?(a=(0,window.encodeURI)(a).replace(b,th),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
th=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
jh=function(a,b,c){this.ya=this.b=null;this.g=a||null;this.o=!!c};
vh=function(a){a.b||(a.b=new Cg,a.ya=0,a.g&&Pg(a.g,function(b,c){uh(a,ya(b),c)}))};
wh=function(a){var b=Hg(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new jh(null,0,void 0);a=Gg(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];fa(f)?oh(c,e,f):uh(c,e,f)}return c};
uh=function(a,b,c){vh(a);a.g=null;b=xh(a,b);var d=a.b.get(b);d||a.b.set(b,d=[]);d.push(c);a.ya=a.ya+1};
yh=function(a,b){vh(a);b=xh(a,b);return Eg(a.b,b)};
oh=function(a,b,c){a.remove(b);0<c.length&&(a.g=null,a.b.set(xh(a,b),tb(c)),a.ya=a.ya+c.length)};
xh=function(a,b){var c=String(b);a.o&&(c=c.toLowerCase());return c};
kh=function(a,b){b&&!a.o&&(vh(a),a.g=null,a.b.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),oh(this,c,a))},a));
a.o=b};
zh=function(a,b){b.match(/\sstyle\s*=/);a.innerHTML=b};
Bh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-cast-desktop-on"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
Ch=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-clip-clear"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},P:[{I:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",U:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
Dh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-clip-end"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Eh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-clip-start"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
Fh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-close"]}:{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},P:[{I:"path",U:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
Gh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-closed-captioning"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}};
Hh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-link"]}:{I:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",U:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
Ih=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-next"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
Jh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-pause"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Kh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-play"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
Lh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-playlist"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",fill:"#fff"}}]}};
Mh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-prev"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
Nh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-replay"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]}};
Oh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-settings"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
Ph=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 22 22",width:"100%"},P:[{I:"svg",U:{x:"7",y:"1"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-0"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"11",y:"3"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-1"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"13",y:"7"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-2"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"11",y:"11"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-3"],
U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"7",y:"13"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-4"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"3",y:"11"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-5"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"1",y:"7"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-6"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"3",y:"3"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-7"],U:{cx:"4",cy:"4",r:"2"}}]}]}};
Qh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-stop"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Rh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-volume-high"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",fill:"#fff"}}]}};
Sh=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-volume-low"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}};
Th=function(){return Ah?{I:"div",fa:["ytp-icon","ytp-icon-volume-muted"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z"}},{I:"svg",W:"ytp-svg-sound-mute-group",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 26.11,15.73 24.85,14.5 22.52,16.76 20.20,14.5 18.94,15.73 21.26,18 18.94,20.26 20.20,21.5 22.52,19.23 24.85,21.5 26.11,20.26 23.79,18 l 2.32,-2.26 0,0 z"}}]}]}};
Vh=function(a,b){if(a in b)return b[a];var c=Uh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
Xh=function(a,b){var c;Wh(a,function(a){c=b[a];return!!c});
return c};
Yh=function(a){return fb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Zh=function(){var a=window.document;return fb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
ai=function(){return!!Xh(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)};
bi=function(){var a=Xh(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null};
fi=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||hc(ci);this.assets=a.assets||{};this.attrs=a.attrs||hc(di);this.params=a.params||hc(ei);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||{}};
gi=function(a){a instanceof fi||(a=new fi(a));return a};
hi=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?50<=(0,window.parseInt)(a[1],10):!1};
ii=function(a){return window.document.currentScript&&(-1!=window.document.currentScript.src.indexOf("?"+a)||-1!=window.document.currentScript.src.indexOf("&"+a))};
ji=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null};
ki=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)}};
qi=function(a){if(a>=li.length)mi();else{var b=li[a],c="chrome-extension://"+b+ni;0<=oi.indexOf(b)?ki(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,pi(c,mi)):qi(a+1)}):pi(c,function(){qi(a+1)})}};
pi=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)};
mi=function(){var a=ji();a&&a(!1,"No cast extension found")};
si=function(){if(ri){var a=2,b=ji(),c=function(){a--;0==a&&b&&b(!0)};
window.__onGCastApiAvailable=c;pi("//www.gstatic.com/cast/sdk/libs/sender/0.1/cast_framework.js",mi,c)}};
ti=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;if(a){si();a({command:"cast.sender.init"});return}}window.chrome?(si(),a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=hi()?"50":"",pi("//www.gstatic.com/eureka/clank"+a+ni,mi)):qi(0)):mi()};
yi=function(){var a=ui;vi();wi.push(a);xi(wi)};
Bi=function(a,b){vi();var c=wi,d=zi(a,String(b));lb(c)?Ai(d):(xi(c),E(c,function(a){a(d)}))};
vi=function(){wi||(wi=q("yt.mdx.remote.debug.handlers_")||[],g.ca("yt.mdx.remote.debug.handlers_",wi,void 0))};
Ai=function(a){var b=(Ci+1)%50;Ci=b;Di[b]=a;Ei||(Ei=49==b)};
xi=function(a){var b=Di;if(b[0]){var c=Ci,d=Ei?c:-1;do{var d=(d+1)%50,e=b[d];E(a,function(a){a(e)})}while(d!=c);
Di=Array(50);Ci=-1;Ei=!1}};
zi=function(a,b){var c=(D()-Fi)/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("")};
Gi=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||""};
Hi=function(a,b){return!!b&&(a.id==b||a.uuid==b)};
Ii=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}};
Ji=function(a){return new Gi(a)};
Li=function(a){return fa(a)?Ki(a,Ji):[]};
Mi=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"};
Ni=function(a){return fa(a)?"["+Ki(a,Mi).join(",")+"]":"null"};
Pi=function(a,b,c){a&&(a.dataset?a.dataset[Oi(b)]=c:a.setAttribute("data-"+b,c))};
Qi=function(a){return a?a.dataset?a.dataset[Oi("loaded")]:a.getAttribute("data-loaded"):null};
Oi=function(a){return Ri[a]||(Ri[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
Ui=function(a){Si(Ti,arguments)};
Vi=function(a,b){return a in Ti?Ti[a]:b};
Xi=function(a,b){ka(a)&&(a=Wi(a));return window.setTimeout(a,b)};
Yi=function(a,b){ka(a)&&(a=Wi(a));return window.setInterval(a,b)};
Zi=function(a){window.clearTimeout(a)};
$i=function(a){window.clearInterval(a)};
Wi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw aj(b),b;}}:a};
aj=function(a,b){var c=q("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=Vi("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),Ui("ERRORS",c))};
cj=function(a){Si(bj,arguments)};
N=function(a,b,c){var d=b||{};if(a=a in bj?bj[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a};
Si=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]}};
ij=function(a,b,c){var d=dj();if(d){var e=d.subscribe(a,function(){if(!ej||ej!=e){var d=arguments,k;k=function(){fj[e]&&b.apply(c||window,d)};
try{gj[a]?k():Xi(k,0)}catch(l){aj(l)}}},c);
fj[e]=!0;hj[a]||(hj[a]=[]);hj[a].push(e);return e}return 0};
kj=function(a,b){var c=ij(a,function(a){b.apply(void 0,arguments);jj(c)},void 0)};
jj=function(a){var b=dj();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),E(a,function(a){b.unsubscribeByKey(a);delete fj[a]}))};
lj=function(a,b){var c=dj();c&&c.publish.apply(c,arguments)};
mj=function(a,b){gj[a]=!0;var c=dj();c&&c.publish.apply(c,arguments);gj[a]=!1};
nj=function(a){hj[a]&&(a=hj[a],E(a,function(a){fj[a]&&delete fj[a]}),a.length=0)};
oj=function(a){var b=dj();if(b)if(b.clear(a),a)nj(a);else for(var c in hj)nj(c)};
dj=function(){return q("yt.pubsub.instance_")};
sj=function(a,b){if(window.spf){var c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(pj,""),c=c.replace(qj,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}window.spf.script.load(a,c,b)}else rj(a,b)};
rj=function(a,b){var c=tj(a),d=window.document.getElementById(c),e=d&&Qi(d),f=d&&!e;if(e){b&&b();return}b&&(ij(c,b),oa(b));if(f)return;d=uj(a,c,function(){Qi(d)||(Pi(d,"loaded","true"),lj(c),Xi(ra(oj,c),0))})};
uj=function(a,b,c){var d=window.document.createElement("script");d.id=b;d.onload=function(){c&&(0,window.setTimeout)(c,0)};
d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};
d.src=a;a=window.document.getElementsByTagName("head")[0]||window.document.body;a.insertBefore(d,a.firstChild);return d};
tj=function(a){var b=window.document.createElement("a");nf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Va(a)};
vj=function(){};
wj=function(){};
xj=function(a){this.b=a};
yj=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a};
zj=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a};
Aj=function(a){this.b=a};
Bj=function(a){this.b=a};
Cj=function(a){this.data=a};
Dj=function(a){return!p(a)||a instanceof Cj?a:new Cj(a)};
Ej=function(a){this.b=a};
Fj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<D()||!!b&&b>D()};
Gj=function(a){this.b=a};
Hj=function(a,b){var c=[];Ag(b,function(a){var b;try{b=Gj.prototype.g.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}p(b)?Fj(b)&&c.push(a):c.push(a)},a);
return c};
Ij=function(a,b){var c=Hj(a,b);E(c,function(a){Gj.prototype.remove.call(this,a)},a)};
Kj=function(){var a=Jj;Ij(a,a.b.tc(!0))};
Mj=function(a,b,c){var d=c&&0<c?c:0;c=d?D()+1E3*d:0;if((d=d?Jj:Lj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
Nj=function(a){if(!Lj&&!Jj||!window.JSON)return null;var b;try{b=Lj.get(a)}catch(c){}if(!w(b))try{b=Jj.get(a)}catch(c){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
Oj=function(a){Lj&&Lj.remove(a);Jj&&Jj.remove(a)};
Pj=function(a){return Vi("EXPERIMENT_FLAGS",{})[a]};
Qj=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=ya(k[0]||""),k=ya(k[1]||"");l in d?fa(d[l])?ub(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};
Rj=function(a,b){var c=[];Pb(a,function(a,b){var d=xa(b),e;fa(a)?e=a:e=[a];E(e,function(a){""==a?c.push(d):c.push(d+"="+xa(a))})});
return c.join(b)};
Sj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Qj(a,"&")};
Tj=function(a){a=a.split(",");return a=a.map(function(a){return Sj(a)})};
Uj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Sj(1<a.length?a[1]:a[0])):{}};
Wj=function(a,b){return Vj(a,b||{},!0)};
Xj=function(a,b){return Vj(a,b||{},!1)};
Vj=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=Sj(e[1]||""),f;for(f in b)if(c||!$b(e,f))e[f]=b[f];return Wg(a,e)+d};
Yj=function(a){var b;b||(b=window.location.href);var c=Lg(a)[1]||null,d=Ng(a);c&&d?(a=Lg(a),b=Lg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Ng(b)==d&&Og(b)==Og(a):!0;return a};
Zj=function(){var a;a||(a=window.document.location.href);a=Lg(a)[1]||null;return null!==a&&"https"==a};
ak=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}};
dk=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Wi(b)(m)}
var m=bk&&bk();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=ck(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};
ck=function(a,b){b=b||{};var c=Yj(a),d;for(d in ek){var e=Vi(ek[d]),f;if((f=e)&&!(f=c)){f=d;var k=Vi("CORS_HEADER_WHITELIST")||{},l=Ng(a);f=l?(k=k[l])?kb(k,f):!1:!0}f&&(b[d]=e)}return b};
gk=function(a,b){b.method="POST";b.Ib||(b.Ib={});fk(a,b)};
hk=function(a,b){var c=Vi("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.eR&&(!Ng(a)||b.withCredentials||Ng(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Ib&&b.Ib[c])};
fk=function(a,b){var c=b.format||"JSON";b.iR&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=Vi("XSRF_FIELD_NAME",void 0),e=Vi("XSRF_TOKEN",void 0),f=b.Dc;f&&(f[d]&&delete f[d],a=Wj(a,f));var k=b.postBody||"",f=b.Ib;hk(a,b)&&(f||(f={}),f[d]=e);f&&w(k)&&(d=Sj(k),kc(d,f),k=b.WF&&"JSON"==b.WF?JSON.stringify(d):Ug(d));var l=!1,m,n=dk(a,function(a){if(!l){l=!0;m&&Zi(m);var d=ak(a),e=null;if(d||400<=
a.status&&500>a.status)e=ik(c,a,b.Xy);if(d)a:if(Pj("ajax_204_success")&&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||aa;d?b.tb&&b.tb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Cc&&b.Cc.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Lc&&0<b.timeout&&(m=Xi(function(){l||(l=!0,n.abort(),Zi(m),b.Lc.call(b.context||aa,n))},b.timeout));
return n};
ik=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=fg(a));break;case "XML":if(b=(b=b.responseXML)?jk(b):null)d={},E(b.getElementsByTagName("*"),function(a){d[a.tagName]=kk(a)})}c&&lk(d);
return d};
lk=function(a){if(la(a))for(var b in a)"html_content"==b||wa(b,"_html")?a[b]=cf(Ce("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):lk(a[b])};
jk=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
kk=function(a){var b="";E(a.childNodes,function(a){b+=a.nodeValue});
return b};
mk=function(a){this.A=this.o="";this.b="/api/lounge";this.g=!0;a=a||window.document.location.href;var b=Og(a)||"";b&&(this.A=":"+b);this.o=Ng(a)||"";a=sc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ua(a,"10.0")&&(this.g=!1))};
nk=function(a,b,c,d){var e=a.b;if(p(d)?d:a.g)e="https://"+a.o+a.A+a.b;return Wg(e+b,c||{})};
ok=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,tb:ra(a.C,d,!0),onError:ra(a.B,e),Lc:ra(a.D,e)};c&&(a.Ib=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return fk(b,a)};
pk=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)})};
qk=function(a,b){return fb(a,function(a){return a.key==b})};
rk=function(a){return Ki(a,function(a){return{key:a.id,name:a.name}})};
sk=function(a,b){return fb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
tk=function(a,b){return fb(a,function(a){return Hi(a,b)})};
uk=function(){F.call(this);this.ea=new ug;G(this,this.ea)};
vk=function(a){uk.call(this);this.C=a;this.screens=[]};
wk=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.screens.push(b);return!0};
xk=function(a,b){var c=a.screens.length!=b.length;a.screens=ne(a.screens,function(a){return!!sk(b,a)});
for(var d=0,e=b.length;d<e;d++)c=wk(a,b[d])||c;return c};
yk=function(a,b){var c=a.screens.length;a.screens=ne(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c};
zk=function(a,b,c,d){uk.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.b=null;this.g=window.NaN};
Ak=function(a,b){this.g=a;this.b=b+"::"};
Bk=function(a){var b=new yj;return b.isAvailable()?a?new Ak(b,a):b:null};
Dk=function(a){this.b=new Cg;a&&Ck(this,a)};
Ek=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+oa(a):b.substr(0,1)+a};
Fk=function(a,b){a.b.set(Ek(b),b)};
Ck=function(a,b){for(var c=Gg(b),d=c.length,e=0;e<d;e++)Fk(a,c[e])};
Hk=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new Dk;this.experiments=new Dk;this.theme="u";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();Ck(this.capabilities,ne(b.split(","),ra(Wb,Gk)));a=a.experiments||"";this.experiments.clear();Ck(this.experiments,
a.split(","))}};
Ik=function(a){this.b=a||{cookie:""}};
Kk=function(a){a=(a.b.cookie||"").split(Jk);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}};
Sk=function(){var a=Nk(),b=Ok();Pk()&&Hb(a,b);a=Qk(a);if(lb(a))try{Rk.remove("remote_sid","/","youtube.com")}catch(c){}else try{Rk.set("remote_sid",a.join(","),-1,"/","youtube.com")}catch(c){}};
Nk=function(){var a=Nj("yt-remote-connected-devices")||[];Cb(a);return a};
Qk=function(a){if(lb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return Ki(a,function(a,b){return 0==b?a:a.substring(c.length)})};
Tk=function(a){Mj("yt-remote-connected-devices",a,86400)};
Ok=function(){if(Uk)return Uk;var a=Nj("yt-remote-device-id");a||(a=pk(),Mj("yt-remote-device-id",a,31536E3));for(var b=Nk(),c=1,d=a;kb(b,d);)c++,d=a+"#"+c;return Uk=d};
Vk=function(){return Nj("yt-remote-session-browser-channel")};
Pk=function(){return Nj("yt-remote-session-screen-id")};
Zk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=Ki(Wk(),function(a){return a.loungeToken}),c=Ki(a,function(a){return a.loungeToken});
Xk(c,function(a){return!kb(b,a)})&&Yk();
Mj("yt-remote-local-screens",a,31536E3)};
Wk=function(){return Nj("yt-remote-local-screens")||[]};
Yk=function(){Mj("yt-remote-lounge-token-expiration",!0,86400)};
$k=function(a,b){Mj("yt-remote-session-browser-channel",a);Mj("yt-remote-session-screen-id",b);var c=Nk(),d=Ok();kb(c,d)||c.push(d);Tk(c);Sk()};
al=function(a){a||(Oj("yt-remote-session-screen-id"),Oj("yt-remote-session-video-id"));Sk();a=Nk();qb(a,Ok());Tk(a)};
cl=function(){if(!bl){var a=Bk();a&&(bl=new Aj(a))}return bl?!!bl.get("yt-remote-use-staging-server"):!1};
el=function(a){vk.call(this,"LocalScreenService");this.g=a;this.b=window.NaN;dl(this);this.info("Initializing with "+Ni(this.screens))};
fl=function(a){if(a.screens.length){var b=Ki(a.screens,function(a){return a.id}),c=nk(a.g,"/pairing/get_lounge_token_batch");
ok(a.g,c,{screen_ids:b.join(",")},y(a.Nz,a),y(a.Mz,a))}};
dl=function(a){var b=Li(Wk()),b=ne(b,function(a){return!a.uuid});
return xk(a,b)};
gl=function(a,b){Zk(Ki(a.screens,Ii));b&&Yk()};
il=function(a,b){uk.call(this);this.C=b;for(var c=Nj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.C(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=kb(c,l)}this.b=d;this.B=a;this.o=this.A=window.NaN;this.g=null;hl("Initialized with "+ig(this.b))};
jl=function(a,b,c){var d=nk(a.B,"/pairing/get_screen_availability");ok(a.B,d,{lounge_token:b.token},y(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),y(function(){c(!1)},a))};
ll=function(a,b){var c;a:if(Ub(b)!=Ub(a.b))c=!1;else{c=Yb(b);for(var d=0,e=c.length;d<e;++d)if(!a.b[c[d]]){c=!1;break a}c=!0}c||(hl("Updated online screens: "+ig(a.b)),a.b=b,a.Y("screenChange"));kl(a)};
ml=function(a){(0,window.isNaN)(a.o)||Zi(a.o);a.o=Xi(y(a.Sm,a),0<a.A&&a.A<D()?2E4:1E4)};
hl=function(a){Bi("OnlineScreenService",a)};
nl=function(a){var b={};E(a.C(),function(a){a.token?b[a.token]=a.id:this.rb("Requesting availability of screen w/o lounge token.")});
return b};
kl=function(a){a=Yb(Qb(a.b,function(a){return a}));
Cb(a);a.length?Mj("yt-remote-online-screen-ids",a.join(","),60):Oj("yt-remote-online-screen-ids")};
pl=function(a){vk.call(this,"ScreenService");this.B=a;this.b=this.g=null;this.o=[];this.A={};ol(this)};
sl=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.A[b]);var k=a.Gc();if(k=(c?tk(k,c):null)||tk(k,b)){k.uuid=b;var l=ql(a,k);jl(a.b,l,function(a){e(a?l:null)})}else c?rl(a,c,y(function(a){var f=ql(this,new Gi({name:d,
screenId:c,loungeToken:a,dialId:b||""}));jl(this.b,f,function(a){e(a?f:null)})},a),f):e(null)};
tl=function(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];return null};
rl=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Ib:{screen_ids:b},method:"POST",context:a,tb: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"))}};
fk(nk(a.B,"/pairing/get_lounge_token_batch"),e)};
ul=function(a){a.screens=a.g.Gc();var b=a.A,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+Ni(a.screens))};
ol=function(a){vl(a);a.g=new el(a.B);a.g.subscribe("screenChange",y(a.fA,a));ul(a);a.o=Li(Nj("yt-remote-automatic-screen-cache")||[]);vl(a);a.info("Initializing automatic screens: "+Ni(a.o));a.b=new il(a.B,y(a.Gc,a,!0));a.b.subscribe("screenChange",y(function(){this.Y("onlineScreenChange")},a))};
ql=function(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=tk(a.o,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.o.push(b),Mj("yt-remote-automatic-screen-cache",Ki(a.o,Ii)));vl(a);a.A[b.uuid]=b.id;Mj("yt-remote-device-id-map",a.A,31536E3);return b};
vl=function(a){a.A=Nj("yt-remote-device-id-map")||{}};
wl=function(a,b,c){uk.call(this);this.K=c;this.G=a;this.g=b;this.o=null};
xl=function(a,b){Bi(a.K,b)};
zl=function(a,b){wl.call(this,a,b,"CastSession");this.b=null;this.A=0;this.C=y(this.iH,this);this.B=y(this.OF,this);this.A=Xi(y(function(){yl(this,null)},this),12E4)};
Al=function(a){a.info("sendYoutubeMessage_: getMdxSessionStatus "+ig(void 0));var b={type:"getMdxSessionStatus"};a.b?a.b.sendMessage("urn:x-cast:com.google.youtube.mdx",b,r,y(function(){xl(this,"Failed to send message: getMdxSessionStatus.")},a)):xl(a,"Sending yt message without session: "+ig(b))};
yl=function(a,b){Zi(a.A);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.o||a.o.id!=b){var c=y(a.Bj,a),d=y(a.Kc,a);a.cq(b,c,d,5)}}else a.Kc(Error("Waiting for session status timed out."))};
Bl=function(a,b){wl.call(this,a,b,"DialSession");this.A=this.F=null;this.H="";this.B=null;this.D=r;this.C=window.NaN;this.J=y(this.lH,this);this.b=r};
Cl=function(a){a.b=a.G.wu(a.H,a.g.label,a.g.friendlyName,y(function(a){this.b=r;this.Bj(a)},a),y(function(a){this.b=r;
this.Kc(a)},a))};
Dl=function(a){var b={};b.pairingCode=a.H;if(a.B){var c=a.B.currentTime||0;b.v=a.B.videoId;b.t=c}cl()&&(b.env_useStageMdx=1);return Ug(b)};
El=function(a,b){wl.call(this,a,b,"ManualSession");this.b=Xi(y(this.Lf,this,null),150)};
Fl=function(a){uk.call(this);this.g=a;this.b=null;this.B=!1;this.o=[];this.A=y(this.DE,this)};
Gl=function(a,b){return b?fb(a.o,function(a){return Hi(b,a.label)},a):null};
Hl=function(a){Bi("Controller",a)};
ui=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
Il=function(a){return a.B||!!a.o.length||!!a.b};
Jl=function(a,b,c){Nb(a.b);(a.b=b)?(c?a.Y("yt-remote-cast2-receiver-resumed",b.g):a.Y("yt-remote-cast2-receiver-selected",b.g),b.subscribe("sessionScreen",y(a.As,a,b)),b.o?a.Y("yt-remote-cast2-session-change",b.o):c&&a.b.Lf(null)):a.Y("yt-remote-cast2-session-change",null)};
Kl=function(a){var b=a.g.vu(),c=a.b&&a.b.g;a=Ki(b,function(a){c&&Hi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,d=Gl(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};
Tl=function(a,b,c,d){Ll()?Nl(b)&&(Ol(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?Pl(a,c):(window.__onGCastApiAvailable=function(b,d){b?Pl(a,c):(Ql("Failed to load cast API: "+d),Rl(!1),Ol(!1),Oj("yt-remote-cast-available"),Oj("yt-remote-cast-receiver"),Sl(),c(!1))},d?sj("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):ti())):Ml("Cannot initialize because not running Chrome")};
Sl=function(){Ml("dispose");var a=Ul();a&&a.dispose();Vl=null;g.ca("yt.mdx.remote.cloudview.instance_",null,void 0);Wl(!1);jj(Xl);Xl.length=0};
Yl=function(){return!!Nj("yt-remote-cast-installed")};
Zl=function(){var a=Nj("yt-remote-cast-receiver");return a?Ka(a.friendlyName):null};
$l=function(){Ml("clearCurrentReciever");Oj("yt-remote-cast-receiver")};
bm=function(){return Yl()?Ul()?Vl.getCastSession():(Ql("getCastSelector: Cast is not initialized."),null):(Ql("getCastSelector: Cast API is not installed!"),null)};
dm=function(){Yl()?Ul()?cm()?(Ml("Requesting cast selector."),Vl.requestSession()):(Ml("Wait for cast API to be ready to request the session."),Xl.push(ij("yt-remote-cast2-api-ready",dm))):Ql("requestCastSelector: Cast is not initialized."):Ql("requestCastSelector: Cast API is not installed!")};
em=function(a){cm()?Ul().setLaunchParams(a):Ql("setLaunchParams called before ready.")};
fm=function(a,b){cm()?Ul().setConnectedScreenStatus(a,b):Ql("setConnectedScreenStatus called before ready.")};
Ll=function(){var a=0<=sc.search(/\ (CrMo|Chrome|CriOS)\//);return gm||a};
hm=function(a,b){Vl.init(a,b)};
Nl=function(a){var b=!1;if(!Vl){var c=q("yt.mdx.remote.cloudview.instance_");c||(c=new Fl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){Mj("yt-remote-cast-available",a);lj("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){Ml("onReceiverSelected: "+a.friendlyName);
Mj("yt-remote-cast-receiver",a);lj("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){Ml("onReceiverResumed: "+a.friendlyName);
Mj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){Ml("onSessionChange: "+Mi(a));
a||Oj("yt-remote-cast-receiver");lj("yt-remote-cast2-session-change",a)}),g.ca("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
Vl=c}Ml("cloudview.createSingleton_: "+b);return b};
Ul=function(){Vl||(Vl=q("yt.mdx.remote.cloudview.instance_"));return Vl};
Pl=function(a,b){Rl(!0);Ol(!1);hm(a,function(a){a?(Wl(!0),lj("yt-remote-cast2-api-ready")):(Ql("Failed to initialize cast API."),Rl(!1),Oj("yt-remote-cast-available"),Oj("yt-remote-cast-receiver"),Sl());b(a)})};
Ml=function(a){Bi("cloudview",a)};
Ql=function(a){Bi("cloudview",a)};
Rl=function(a){Ml("setCastInstalled_ "+a);Mj("yt-remote-cast-installed",a)};
cm=function(){return!!q("yt.mdx.remote.cloudview.apiReady_")};
Wl=function(a){Ml("setApiReady_ "+a);g.ca("yt.mdx.remote.cloudview.apiReady_",a,void 0)};
Ol=function(a){g.ca("yt.mdx.remote.cloudview.initializing_",a,void 0)};
jm=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 im||(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.b=a.pageX;this.g=a.pageY}};
km=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+window.document.documentElement.scrollTop;a.b=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.g=a.clientY+b}};
mm=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 ac(lm,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
om=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=mm(a,b,c,d);if(e)return e;var e=++nm.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new jm(d);if(!$f(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new jm(b);
b.currentTarget=a;return c.call(a,b)};
k=Wi(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);lm[e]=[a,b,c,k,d];return e};
qm=function(a,b,c){var d;return d=om(a,b,function(){pm(d);c.apply(a,arguments)},void 0)};
sm=function(a,b){return rm(a,b,function(a){return le(a,"iv-card-poll-choice-input")})};
rm=function(a,b,c){var d=a||window.document;return om(d,"change",function(a){var e=$f(a.target,function(a){return a===d||c(a)});
e&&e!==d&&!e.disabled&&(a.currentTarget=e,b.call(e,a))})};
pm=function(a){a&&("string"==typeof a&&(a=[a]),E(a,function(a){if(a in lm){var b=lm[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 lm[a]}}))};
tm=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
um=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:tm(a)};
vm=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};
wm=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 jf(b,c)};
xm=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
ym=function(a){a=a||window.event;return!1===a.returnValue||a.$q&&a.$q()};
zm=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Am=function(a,b){this.action=a;this.params=b||null};
Bm=function(){this.b=D()};
Cm=function(a,b){this.g=new hg(a);this.b=b?fg:eg};
Dm=function(a){this.g=0;this.o=a||100;this.b=[]};
Em=function(a,b){if(b>=a.b.length)throw Error("Out of bounds exception");return a.b.length<a.o?b:(a.g+Number(b))%a.o};
Fm=function(a,b,c){F.call(this);this.A=null!=c?y(a,c):a;this.o=b;this.g=y(this.eF,this);this.b=[]};
Gm=function(a){a.Df=fe(a.g,a.o);a.A.apply(null,a.b)};
Hm=function(a){F.call(this);this.A=a;this.g={}};
Jm=function(a,b,c,d,e){Im(a,b,c,d,!1,e)};
Im=function(a,b,c,d,e,f){fa(c)||(c&&(Km[0]=c.toString()),c=Km);for(var k=0;k<c.length;k++){var l=Uc(b,c[k],d||a.handleEvent,e||!1,f||a.A||a);if(!l)break;a.g[l.key]=l}return a};
Mm=function(a,b,c,d){Lm(a,b,c,d,void 0)};
Nm=function(a,b,c,d,e){Lm(a,b,c,d,!1,e)};
Lm=function(a,b,c,d,e,f){if(fa(c))for(var k=0;k<c.length;k++)Lm(a,b,c[k],d,e,f);else{b=dd(b,c,d||a.handleEvent,e,f||a.A||a);if(!b)return;a.g[b.key]=b}};
Om=function(a){Pb(a.g,function(a,c){this.g.hasOwnProperty(c)&&fd(a)},a);
a.g={}};
Pm=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"}};
Qm=function(){};
Rm=function(a){return a.g||(a.g=a.A())};
Sm=function(){};
Tm=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};
Um=function(a,b,c,d,e){this.b=a;this.o=c;this.F=d;this.D=e||1;this.B=45E3;this.A=new Hm(this);this.g=new de;ee(this.g,250)};
Wm=function(a,b,c){a.ug=1;a.Ue=qh(b.clone());a.Mf=c;a.C=!0;Vm(a,null)};
Xm=function(a,b,c,d,e){a.ug=1;a.Ue=qh(b.clone());a.Mf=null;a.C=c;e&&(a.qt=!1);Vm(a,d)};
Vm=function(a,b){a.Fh=D();Ym(a);a.$e=a.Ue.clone();ph(a.$e,"t",a.D);a.Rh=0;a.Xb=a.b.bl(a.b.Kh()?b:null);0<a.Ll&&(a.Fj=new Fm(y(a.mu,a,a.Xb),a.Ll));a.A.N(a.Xb,"readystatechange",a.bG);var c=a.Ef?hc(a.Ef):{};a.Mf?(a.Wj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Xb.send(a.$e,a.Wj,a.Mf,c)):(a.Wj="GET",a.qt&&!Cc&&(c.Connection="close"),a.Xb.send(a.$e,a.Wj,null,c));a.b.yd(1)};
fn=function(a,b,c){for(var d=!0;!a.tf&&a.Rh<c.length;){var e=Zm(a,c);if(e==$m){4==b&&(a.Ff=4,an(),d=!1);break}else if(e==bn){a.Ff=4;an();d=!1;break}else cn(a,e)}4==b&&0==c.length&&(a.Ff=1,an(),d=!1);a.Ad=a.Ad&&d;d||(dn(a),en(a))};
Zm=function(a,b){var c=a.Rh,d=b.indexOf("\n",c);if(-1==d)return $m;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return bn;d+=1;if(d+c>b.length)return $m;var e=b.substr(d,c);a.Rh=d+c;return e};
jn=function(a,b){a.Fh=D();Ym(a);var c=b?window.location.hostname:"";a.$e=a.Ue.clone();nh(a.$e,"DOMAIN",c);nh(a.$e,"t",a.D);try{a.Bd=new window.ActiveXObject("htmlfile")}catch(n){dn(a);a.Ff=7;an();en(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{if(k in gn)k=gn[k];else if(k in hn)k=gn[k]=hn[k];else{var l,m=k.charCodeAt(0);if(31<m&&127>m)l=k;else{if(256>m){if(l="\\x",16>m||256<m)l+="0"}else l="\\u",4096>m&&
(l+="0");l+=m.toString(16).toUpperCase()}k=gn[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=cf(Ce("b/12014412"),d);a.Bd.open();a.Bd.write(Se(c));a.Bd.close();a.Bd.parentWindow.m=y(a.pF,a);a.Bd.parentWindow.d=y(a.Gs,a,!0);a.Bd.parentWindow.rpcClose=y(a.Gs,a,!1);c=a.Bd.createElement("DIV");a.Bd.parentWindow.document.body.appendChild(c);d=Le(a.$e.toString());d=Ga(Ie(d));d=cf(Ce("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Se(d);a.b.yd(1)};
Ym=function(a){a.wn=D()+a.B;kn(a,a.B)};
kn=function(a,b){if(null!=a.Tg)throw Error("WatchDog timer not null");a.Tg=ln(y(a.GF,a),b)};
mn=function(a){a.Tg&&(aa.clearTimeout(a.Tg),a.Tg=null)};
en=function(a){a.b.jq()||a.tf||a.b.Aj(a)};
dn=function(a){mn(a);Nb(a.Fj);a.Fj=null;a.g.stop();Om(a.A);if(a.Xb){var b=a.Xb;a.Xb=null;nn(b);b.dispose()}a.Bd&&(a.Bd=null)};
cn=function(a,b){try{a.b.vs(a,b),a.b.yd(4)}catch(c){}};
pn=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;on(a,b,function(e){e?c(!0):aa.setTimeout(function(){pn(a,b,c,d,f)},f)})}};
on=function(a,b,c){var d=new window.Image;d.onload=function(){try{qn(d),c(!0)}catch(e){}};
d.onerror=function(){try{qn(d),c(!1)}catch(e){}};
d.onabort=function(){try{qn(d),c(!1)}catch(e){}};
d.ontimeout=function(){try{qn(d),c(!1)}catch(e){}};
aa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
qn=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
rn=function(a){this.b=a;this.g=new Cm(null,!0)};
tn=function(a){var b=sn(a.b,a.ih,"/mail/images/cleardot.gif");qh(b);pn(b.toString(),5E3,y(a.Py,a),3,2E3);a.yd(1)};
vn=function(a){var b=a.b.G;if(null!=b)an(),b?(an(),un(a.b,a,!1)):(an(),un(a.b,a,!0));else if(a.Mc=new Um(a,0,void 0,void 0,void 0),a.Mc.Ef=a.Il,b=a.b,b=sn(b,b.Kh()?a.rh:null,a.Kl),an(),!zf||Bc(10))ph(b,"TYPE","xmlhttp"),Xm(a.Mc,b,!1,a.rh,!1);else{ph(b,"TYPE","html");var c=a.Mc;a=!!a.rh;c.ug=3;c.Ue=qh(b.clone());jn(c,a)}};
wn=function(a){H.call(this);this.headers=new Cg;this.J=a||null;this.o=!1;this.H=this.b=null;this.O="";this.g=0;this.C="";this.A=this.M=this.F=this.K=!1;this.B=0;this.D=null;this.aa="";this.R=this.G=!1};
xn=function(a,b){a.B=Math.max(0,b)};
yn=function(a){return zf&&zc(9)&&ia(a.timeout)&&p(a.ontimeout)};
zn=function(a){return"content-type"==a.toLowerCase()};
Cn=function(a,b){a.o=!1;a.b&&(a.A=!0,a.b.abort(),a.A=!1);a.C=b;a.g=5;An(a);Bn(a)};
An=function(a){a.K||(a.K=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
nn=function(a,b){a.b&&a.o&&(a.getStatus(),a.o=!1,a.A=!0,a.b.abort(),a.A=!1,a.g=b||7,a.dispatchEvent("complete"),a.dispatchEvent("abort"),Bn(a))};
Gn=function(a){if(a.o&&"undefined"!=typeof Dn)if(a.H[1]&&4==En(a)&&2==a.getStatus())a.getStatus();else if(a.F&&4==En(a))fe(a.lq,0,a);else if(a.dispatchEvent("readystatechange"),4==En(a)){a.getStatus();a.o=!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=Lg(String(a.O))[1]||null;if(!f&&aa.self&&aa.self.location)var k=aa.self.location.protocol,f=k.substr(0,k.length-1);e=!Fn.test(f?
f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.g=6;var l;try{l=2<En(a)?a.b.statusText:""}catch(m){l=""}a.C=l+" ["+a.getStatus()+"]";An(a)}}finally{Bn(a)}}};
Bn=function(a,b){if(a.b){Hn(a);var c=a.b,d=a.H[0]?r:null;a.b=null;a.H=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Hn=function(a){a.b&&a.R&&(a.b.ontimeout=null);ia(a.D)&&(ge(a.D),a.D=null)};
En=function(a){return a.b?a.b.readyState:0};
In=function(a){try{return a.b?a.b.responseText:""}catch(b){return""}};
Jn=function(a,b,c){this.D=a||null;this.b=1;this.g=[];this.A=[];this.B=new Cm(null,!0);this.F=b||null;this.G=null!=c?c:null};
Kn=function(a,b){this.b=a;this.map=b;this.context=null};
Ln=function(a){mc.call(this,"statevent",a)};
Mn=function(a,b){mc.call(this,"timingevent",a);this.size=b};
Nn=function(a){mc.call(this,"serverreachability",a)};
Rn=function(a){On(a);if(3==a.b){var b=a.zh++,c=a.Qi.clone();nh(c,"SID",a.o);nh(c,"RID",b);nh(c,"TYPE","terminate");Pn(a,c);b=new Um(a,0,a.o,b,void 0);b.ug=2;b.Ue=qh(c.clone());(new window.Image).src=b.Ue;b.Fh=D();Ym(b)}Qn(a)};
On=function(a){if(a.Pe){var b=a.Pe;b.Mc&&(b.Mc.cancel(),b.Mc=null);b.ke=-1;a.Pe=null}a.Ab&&(a.Ab.cancel(),a.Ab=null);a.ge&&(aa.clearTimeout(a.ge),a.ge=null);Sn(a);a.yc&&(a.yc.cancel(),a.yc=null);a.Qe&&(aa.clearTimeout(a.Qe),a.Qe=null)};
Un=function(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new Kn(a.UB++,b));2!=a.b&&3!=a.b||Tn(a)};
Tn=function(a){a.yc||a.Qe||(a.Qe=ln(y(a.Ds,a),0),a.ph=0)};
Yn=function(a,b){if(1==a.b){if(!b){a.zh=Math.floor(1E5*Math.random());var c=a.zh++,d=new Um(a,0,"",c,void 0);d.Ef=null;var e=Vn(a),f=a.Qi.clone();nh(f,"RID",c);a.D&&nh(f,"CVER",a.D);Pn(a,f);Wm(d,f,e);a.yc=d;a.b=2}}else 3==a.b&&(b?Wn(a,b):0==a.g.length||a.yc||Wn(a))};
Wn=function(a,b){var c,d;b?6<a.vf?(a.g=a.A.concat(a.g),a.A.length=0,c=a.zh-1,d=Vn(a)):(c=b.F,d=b.Mf):(c=a.zh++,d=Vn(a));var e=a.Qi.clone();nh(e,"SID",a.o);nh(e,"RID",c);nh(e,"AID",a.Cg);Pn(a,e);c=new Um(a,0,a.o,c,a.ph+1);c.Ef=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.yc=c;Wm(c,e,d)};
Pn=function(a,b){if(a.$b){var c=a.$b.Xp(a);c&&Pb(c,function(a,c){nh(b,c,a)})}};
Vn=function(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.vf&&0<b?(d=a.g[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.g[e].b,k=a.g[e].map,f=6>=a.vf?e:f-d;try{Ig(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.A=a.A.concat(a.g.splice(0,b));
return c.join("&")};
Zn=function(a){a.Ab||a.ge||(a.C=1,a.ge=ln(y(a.Cs,a),0),a.cg=0)};
ao=function(a){if(a.Ab||a.ge||3<=a.cg)return!1;a.C++;a.ge=ln(y(a.Cs,a),$n(a,a.cg));a.cg++;return!0};
un=function(a,b,c){a.Vj=c;a.pd=b.ke;a.kz(1,0);a.Qi=sn(a,null,a.Hl);Tn(a)};
Sn=function(a){null!=a.wf&&(aa.clearTimeout(a.wf),a.wf=null)};
$n=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
co=function(a,b){if(2==b||9==b){var c=null;a.$b&&(c=null);var d=y(a.HG,a);c||(c=new M("//www.google.com/images/cleardot.gif"),qh(c));on(c.toString(),1E4,d)}else an();bo(a,b)};
bo=function(a,b){a.b=0;a.$b&&a.$b.vp(a,b);Qn(a);On(a)};
Qn=function(a){a.b=0;a.pd=-1;if(a.$b)if(0==a.A.length&&0==a.g.length)a.$b.Uk(a);else{var b=tb(a.A),c=tb(a.g);a.A.length=0;a.g.length=0;a.$b.Uk(a,b,c)}};
sn=function(a,b,c){var d=rh(c);if(""!=d.g)b&&eh(d,b+"."+d.g),fh(d,d.D);else var e=window.location,d=sh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.oh&&Pb(a.oh,function(a,b){nh(d,b,a)});
nh(d,"VER",a.vf);Pn(a,d);return d};
ln=function(a,b){if(!ka(a))throw Error("Fn must not be null and must be a function");return aa.setTimeout(function(){a()},b)};
an=function(){eo.dispatchEvent(new Ln(eo))};
fo=function(){};
ho=function(a,b){F.call(this);this.g=new he(this.B,0,this);G(this,this.g);this.o=this.b=0;if(ka(a))b&&(a=y(a,b));else if(a&&ka(a.handleEvent))a=y(a.handleEvent,a);else throw Error("Invalid listener argument");this.A=a;go(this)};
go=function(a){a.g.stop();a.b=5E3+2E4*Math.random()};
io=function(a,b){this.J=a;this.C=b;this.o=new ug;this.g=new ho(this.cH,this);this.b=null;this.H=!1;this.B=null;this.G="";this.F=this.A=0;this.D=[]};
jo=function(a){return{firstTestResults:[""],secondTestResults:!a.b.Vj,sessionId:a.b.o,arrayId:a.b.Cg}};
ko=function(a,b){a.F=b||0;a.g.stop();a.b&&(3==a.b.b&&Yn(a.b),Rn(a.b));a.F=0};
lo=function(a){return!!a.b&&3==a.b.b};
mo=function(a,b){(a.C.loungeIdToken=b)||a.g.stop()};
no=function(){this.b=[];this.g=[]};
oo=function(a){lb(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])};
po=function(a,b){a.g.push(b)};
qo=function(a){oo(a);return a.b.pop()};
ro=function(a){oo(a);return cb(a.b)};
so=function(a){this.index=-1;this.videoId=this.listId="";this.volume=this.b=-1;this.muted=!1;this.audioTrackId=null;this.A=this.o=0;this.g=null;this.reset(a)};
to=function(a){a.audioTrackId=null;a.g=null;a.b=-1;a.o=0;a.A=D()};
uo=function(a){a.index=-1;a.videoId="";to(a)};
vo=function(a,b){a.o=b;a.A=D()};
wo=function(a){switch(a.b){case 1:return(D()-a.A)/1E3+a.o;case -1E3:return 0}return a.o};
xo=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&to(a)};
yo=function(a){var b={};b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.b;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=ic(a.g);b.playerTime=a.o;b.playerTimeAt=a.A;return b};
Bo=function(a,b){uk.call(this);this.g=0;this.A=a;this.D=[];this.C=new no;this.B=window.NaN;this.o=this.b=null;this.H=y(this.xC,this);this.F=y(this.Ah,this);this.G=y(this.wC,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Dn,this),zo(this))):c=3;0!=c&&(b?this.Dn(c):Xi(y(function(){this.Dn(c)},this),0));
Ao(this,bm())};
Co=function(a){return new so(a.A.getPlayerContextData())};
Fo=function(a,b,c,d,e){var f=Co(a),k=e||f.listId;d=d||0;var l={videoId:b,currentIndex:d};xo(f,b,d);p(c)&&(vo(f,c),l.currentTime=c);p(k)&&(l.listId=k);Do(a,"setPlaylist",l);e||Eo(a,f)};
zo=function(a){E(["remotePlayerChange","remoteQueueChange"],function(a){this.D.push(this.A.subscribe(a,ra(this.pE,a),this))},a)};
Go=function(a){E(a.D,function(a){this.A.unsubscribeByKey(a)},a);
a.D.length=0};
Ho=function(a,b){50>a.C.Pb()&&po(a.C,b)};
Io=function(a,b,c){var d=Co(a);vo(d,c);-1E3!=d.b&&(d.b=b);Eo(a,d)};
Do=function(a,b,c){a.A.sendMessage(b,c)};
Eo=function(a,b){Go(a);a.A.setPlayerContextData(yo(b));zo(a)};
Jo=function(a){Zi(a.B);a.B=Xi(y(function(){this.Y("remotePlayerChange");this.B=window.NaN},a),2E3)};
Ao=function(a,b){a.o&&(a.o.removeUpdateListener(a.H),a.o.removeMediaListener(a.F),a.Ah(null));a.o=b;a.o&&(Ko("Setting cast session: "+a.o.sessionId),a.o.addUpdateListener(a.H),a.o.addMediaListener(a.F),a.o.media.length&&a.Ah(a.o.media[0]))};
Lo=function(a){var b=a.b.customData;if(a.b.media){var c=a.b.media,d=Co(a);c.contentId!=d.videoId&&Ko("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.b=b.playerState;vo(d,a.b.getEstimatedTime());Eo(a,d)}else Ko("No cast media video. Ignoring state update.")};
Ko=function(a){Bi("CP",a)};
No=function(a,b,c){uk.call(this);this.A=window.NaN;this.M=!1;this.H=this.G=this.J=this.K=window.NaN;this.O=[];this.D=this.F=this.o=this.Ta=this.b=null;this.ia=a;this.O.push(om(window,"beforeunload",y(this.Gz,this)));this.g=[];this.Ta=new so;this.aa=b.id;this.b=Mo(this,c);this.b.subscribe("handlerOpened",this.BC,this);this.b.subscribe("handlerClosed",this.yC,this);this.b.subscribe("handlerError",this.zC,this);this.b.subscribe("handlerMessage",this.AC,this);mo(this.b,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.Ta.videoId;Pk()&&Mj("yt-remote-session-video-id",a)},this)};
Oo=function(a){Bi("conn",a)};
Mo=function(a,b){return new io(nk(a.ia,"/bc",void 0,!1),b)};
Po=function(a,b){a.Y("proxyStateChange",b)};
Qo=function(a){a.A=Xi(y(function(){Oo("Connecting timeout");this.B(1)},a),2E4)};
Ro=function(a){Zi(a.A);a.A=window.NaN};
So=function(a){Zi(a.K);a.K=window.NaN};
Vo=function(a){To(a);a.J=Xi(y(function(){Uo(this,"getNowPlaying")},a),2E4)};
To=function(a){Zi(a.J);a.J=window.NaN};
Xo=function(a,b){b&&(Ro(a),So(a));b==(lo(a.b)&&(0,window.isNaN)(a.A))?b&&(Po(a,1),Uo(a,"getSubtitlesTrack")):b?(a.R()&&a.Ta.reset(),Po(a,1),Uo(a,"getNowPlaying"),Wo(a)):a.B(1)};
Yo=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.Ta.videoId&&(cc(b.params)?a.Ta.g=null:a.Ta.g=b.params,a.Y("remotePlayerChange"))};
Zo=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.Ta.listId=b.params.listId||a.Ta.listId;xo(a.Ta,c,d);a.Y("remoteQueueChange")};
ap=function(a,b){b.params=b.params||{};Zo(a,b);$o(a,b)};
$o=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);vo(a.Ta,(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.Ta.b&&(c=-1E3);a.Ta.b=c;1==a.Ta.b?Vo(a):To(a);a.Y("remotePlayerChange")};
bp=function(a,b){var c="true"==b.params.muted;a.Ta.volume=(0,window.parseInt)(b.params.volume,10);a.Ta.muted=c;a.Y("remotePlayerChange")};
Wo=function(a){Zi(a.H);a.H=Xi(y(a.B,a,1),864E5)};
Uo=function(a,b,c){c?Oo("Sending: action="+b+", params="+ig(c)):Oo("Sending: action="+b);a.b.sendMessage(b,c)};
cp=function(a){vk.call(this,"ScreenServiceProxy");this.ac=a;this.b=[];this.b.push(this.ac.$_s("screenChange",y(this.gH,this)));this.b.push(this.ac.$_s("onlineScreenChange",y(this.cE,this)))};
qp=function(a,b){Jj&&Kj();Sk();dp||(dp=new mk,cl()&&(dp.b="/api/loungedev"));ep||(ep=q("yt.mdx.remote.deferredProxies_")||[],g.ca("yt.mdx.remote.deferredProxies_",ep,void 0));fp();var c=gp();if(!c){var d=new pl(dp);g.ca("yt.mdx.remote.screenService_",d,void 0);c=gp();Tl(a,d,function(a){a?hp()&&fm(hp(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){lj("yt-remote-receiver-availability-change")})},!(!b||!b.loadCastApiSetupScript))}if(b&&!q("yt.mdx.remote.initialized_")){g.ca("yt.mdx.remote.initialized_",
!0,void 0);
ip("Initializing: "+ig(b));jp.push(ij("yt-remote-cast2-availability-change",function(){lj("yt-remote-receiver-availability-change")}));
jp.push(ij("yt-remote-cast2-receiver-selected",function(){kp(null);lj("yt-remote-auto-connect","cast-selector-receiver")}));
jp.push(ij("yt-remote-cast2-session-change",lp));jp.push(ij("yt-remote-connection-change",function(a){a?fm(hp(),"YouTube TV"):mp()||(fm(null,null),$l())}));
var e=np();b.isAuto&&(e.id+="#dial");e.name=b.device;e.app=b.app;ip(" -- with channel params: "+ig(e));op(e);c.start();hp()||pp()}};
sp=function(){jj(jp);jp.length=0;Nb(rp);rp=null;ep&&(E(ep,function(a){a(null)}),ep.length=0,ep=null,g.ca("yt.mdx.remote.deferredProxies_",null,void 0));
dp=null};
up=function(){var a=tp();Yl()&&Nj("yt-remote-cast-available")&&a.push({key:"cast-selector-receiver",name:"Cast..."});return a};
tp=function(){var a;a=gp().ac.$_gos();var b=vp();b&&wp()&&(sk(a,b)||a.push(b));return rk(a)};
yp=function(){var a=xp();!a&&Yl()&&Zl()&&(a={key:"cast-selector-receiver",name:Zl()});return a};
xp=function(){var a=tp(),b=vp();b||(b=mp());return fb(a,function(a){return b&&Hi(b,a.key)?!0:!1})};
vp=function(){var a=hp();if(!a)return null;var b=gp().Gc();return tk(b,a)};
lp=function(a){ip("remote.onCastSessionChange_: "+Mi(a));if(a){var b=vp();b&&b.id==a.id?fm(b.id,"YouTube TV"):(b&&zp(),Ap(a,1))}else zp()};
Cp=function(a,b){ip("Connecting to: "+ig(a));if("cast-selector-receiver"==a.key)kp(b||null),em(b||null);else{zp();kp(b||null);var c=gp().Gc();(c=tk(c,a.key))?Ap(c,1):Xi(function(){Bp(null)},0)}};
zp=function(){cm()?Ul().stopSession():Ql("stopSession called before API ready.");var a=wp();a?a.disconnect(1):(mj("yt-remote-before-disconnect",1),mj("yt-remote-connection-change",!1));Bp(null)};
Fp=function(){var a=Dp(),a=a?a.currentTime:0,b=Ep();0==a&&b&&(a=wo(Co(b)));return a};
Ep=function(){var a=wp();return a&&3!=a.getProxyState()?new Bo(a,void 0):null};
ip=function(a){Bi("remote",a)};
gp=function(){if(!rp){var a=q("yt.mdx.remote.screenService_");rp=a?new cp(a):null}return rp};
hp=function(){return q("yt.mdx.remote.currentScreenId_")};
Gp=function(a){g.ca("yt.mdx.remote.currentScreenId_",a,void 0)};
Dp=function(){return q("yt.mdx.remote.connectData_")};
kp=function(a){g.ca("yt.mdx.remote.connectData_",a,void 0)};
wp=function(){return q("yt.mdx.remote.connection_")};
Bp=function(a){var b=wp();kp(null);a?wp():Gp("");g.ca("yt.mdx.remote.connection_",a,void 0);ep&&(E(ep,function(b){b(a)}),ep.length=0);
b&&!a?mj("yt-remote-connection-change",!1):!b&&a&&lj("yt-remote-connection-change",!0)};
mp=function(){var a=Pk();if(!a)return null;var b=gp().Gc();return tk(b,a)};
Ap=function(a,b){hp();Gp(a.id);var c=new No(dp,a,np());c.connect(b,Dp());c.subscribe("beforeDisconnect",function(a){mj("yt-remote-before-disconnect",a)});
c.subscribe("beforeDispose",function(){wp()&&(wp(),Bp(null))});
Bp(c)};
pp=function(){var a=mp();a?(ip("Resume connection to: "+Mi(a)),Ap(a,0)):(al(),$l(),ip("Skipping connecting because no session screen found."))};
fp=function(){var a=np();if(cc(a)){var a=Ok(),b=Nj("yt-remote-session-name")||"",c=Nj("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};g.ca("yt.mdx.remote.channelParams_",a,void 0)}};
np=function(){return q("yt.mdx.remote.channelParams_")||{}};
op=function(a){a?(Mj("yt-remote-session-app",a.app),Mj("yt-remote-session-name",a.name)):(Oj("yt-remote-session-app"),Oj("yt-remote-session-name"));g.ca("yt.mdx.remote.channelParams_",a,void 0)};
Ip=function(a){return(a=Hp.exec(a))?a[0]:""};
Lp=function(a){var b=Jp.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Kp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&aj(a,"WARNING"));return b||c};
Mp=function(a){a=new M(a);dh(a,window.document.location.protocol);eh(a,window.document.location.hostname);window.document.location.port&&fh(a,window.document.location.port);return a.toString()};
Np=function(a){a=new M(a);dh(a,window.document.location.protocol);return a.toString()};
Pp=function(){return Op("android")&&Op("chrome")&&!(Op("trident/")||Op("edge/"))};
Qp=function(){return Op("cobalt")};
Rp=function(){return Op("(ps3; leanback shell)")||Op("ps3")&&Qp()};
Sp=function(){return Op("(ps4; leanback shell)")||Op("ps4")&&Qp()};
Tp=function(){var a=/WebKit\/([0-9]+)/.exec(sc);return!!(a&&600<=a[1])};
Up=function(){return gm&&Op("crkey")};
Vp=function(){return Op("nintendo wiiu")};
Wp=function(){return Op("iemobile")||Op("windows phone")&&Op("edge")};
Op=function(a){var b=sc;return b?0<=b.toLowerCase().indexOf(a):!1};
Yp=function(a,b,c){a&&(c&&!Qp()?a&&(a=L("IFRAME",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),pf(a).body.appendChild(a)):Xp(a,b))};
aq=function(a){return B(C(a))?!1:Zp.test(a)||$p.test(a)};
Xp=function(a,b){var c=new window.Image,d=""+bq++;cq[d]=c;c.onload=c.onerror=function(){b&&cq[d]&&b();delete cq[d]};
c.src=a};
fq=function(a,b,c){this.start=a;this.end=b;this.A=eq++;a=c||{};this.wa=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.b=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start};
gq=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}};
hq=function(a,b){return a.start-b.start||a.B-b.B||a.A-b.A};
iq=function(a,b){uk.call(this);this.logEvent=this.Na="";this.ua=b||"";this.ca=this.loaded=this.D=!1;this.M=this.F=null;this.b=a;if(this.ua){var c=Bk("yt-html5-player-modules::"+this.ua);c&&(this.M=new Aj(c))}};
kq=function(a){var b=a.b;jq(b.app,a.Na,b.playerType)};
mq=function(a){lq(a.b,a.Na)};
oq=function(a,b,c){var d={},e;for(e in b)d[a.Na+"_"+e]=b[e];b={};for(var f in c)b[a.Na+"_"+f]=c[f];a=nq(a.b);sa(a.C,d||null);sa(a.A,b||null)};
pq=function(a,b){if(!a.M)return null;var c;try{c=a.M.get(b)}catch(d){a.M&&a.M.remove(b)}return c};
qq=function(a,b,c){if(a.M)try{a.M.set(b,c)}catch(d){}};
rq=function(a){a.Y("command_stop_redirect_controls")};
tq=function(a){return(a=sq[a.toString()])?a:"YTP_ERROR_LICENSE"};
uq=function(){};
vq=function(){var a="";try{var b=window.document.createElement("canvas").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a};
wq=function(a,b){this.g=a||64;this.b=b||null};
Bq=function(a,b,c,d){if(O(a,128))return a;var e=a.g,f=a.b,k=b.target;if(!O(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&k.Vf()||"ended"==b.type&&(k.Vf()||1>Math.abs(k.getCurrentTime()-k.pf())))0<k.Al()&&k.jc()&&(e=14,f=null);else if("pause"==b.type)O(a,256)?(e^=256)||(e=64):O(a,32)||O(a,2)||O(a,4)||(e=4,O(a,1)&&O(a,8)&&(e|=1),f=null);else if("playing"==b.type)e=8,f=null,O(a,32)&&(e|=32),d&&O(a,1)&&xq(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.bb())b="progressive.net";else if(3==
k.bb())b="fmt.decode";else if(4==k.bb())b="fmt.unplayable";else{b=null;break a}c="mediaElem.1";.001>Math.random()&&(c+=";gpu."+vq());b={errorCode:b,errorDetail:c,message:N("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(f=b,e|=128)}else if("progress"==b.type)yq(a)&&xq(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=zq(k)&&(e|=1),e&=-3;else if("waiting"==b.type)O(a,2)||(e|=1);else if("timeupdate"==b.type)O(a,16)||O(a,4)||(e=xq(c,k)?
e|1:e&-2),1<k.Be()&&0<k.getCurrentTime()&&(e&=-65);else return a;return Aq(a,e,f)};
xq=function(a,b){return a?Cq(a,b.getCurrentTime(),Dq(),zq(b)):!1};
Aq=function(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new wq(b,c)};
Eq=function(a,b){return Aq(a,a.g|b)};
Fq=function(a,b){return Aq(a,a.g&~b)};
Gq=function(a){return Aq(a,(a.g|4)&-9)};
O=function(a,b){return!!(a.g&b)};
yq=function(a){return O(a,8)&&!O(a,2)};
Hq=function(a){return O(a,64)&&!O(a,8)&&!O(a,4)};
Iq=function(a){return O(a,1)&&!O(a,2)};
Jq=function(a){return O(a,128)?-1:O(a,2)?0:O(a,1)&&!O(a,32)?3:O(a,64)?-1:O(a,8)?1:O(a,4)?2:-1};
Kq=function(a,b,c){uk.call(this);this.C=b;this.b=7500+Math.floor(15E3*Math.random());this.D=c.innertubeApiKey;this.F=JSON.stringify({context:{client:{clientName:c.tm,clientVersion:c.innertubeContextClientVersion,hl:c.wm,gl:c.um}},videoId:a});this.G="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.g=new he(y(this.B,this));G(this,this.g);this.B()?this.g.start(this.b):this.g.start(1E4)};
Mq=function(a){F.call(this);this.pa={};this.ua={};this.element=Lq(this,a)};
Lq=function(a,b,c){if(fa(b)){c=0;var d=Gf(window.document,b[c++]);if(w(b[c])){var e=b[c++];if(e=Nq(a,d,"class",e))Oq(a,d,"class",e),a.pa[e]=d}else if(fa(b[c])){for(var f=b[c++],e=0;e<f.length;e++)a.pa[f[e]]=d;Oq(a,d,"class",f.join(" "))}for(;c<b.length;c++){var k=b[c];fa(k)||k&&k.I?(e=Lq(a,k),d.appendChild(e)):la(k)?k.element?d.appendChild(k.element):Pq(a,d,k):w(k)&&(k=Nq(a,d,"child",k),null!=k&&d.appendChild(window.document.createTextNode(String(k))))}}else{d=(c=c||"svg"==b.I)?window.document.createElementNS("http://www.w3.org/2000/svg",
b.I):window.document.createElement(b.I);if(e=b.W){if(e=Nq(a,d,"class",e))Oq(a,d,"class",e),a.pa[e]=d}else if(f=b.fa){for(e=0;e<f.length;e++)a.pa[f[e]]=d;Oq(a,d,"class",f.join(" "))}if(f=b.P)for(var l=0,e=0;e<f.length;e++)if(k=f[e])if(w(k))k=Nq(a,d,"child",k),null!=k&&d.appendChild(window.document.createTextNode(String(k)));else{var m=k,k=Lq(a,m,c);d.appendChild(k);m.Ea&&(m=Mq.b(),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),Kf(d,k,l++))}(b=b.U)&&Pq(a,d,b)}return d};
Nq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ua[d]=[b,c],null):d};
Qq=function(a){return fa(a)&&w(a[0])||la(a)&&w(a.I)};
Oq=function(a,b,c,d){if("child"==c){Jf(b);if(!fa(d)||Qq(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(Qq(f))c.push(Lq(a,f));else if(f.element)c.push(f.element);else if(w(f)&&-1!=f.indexOf("\n"))for(var f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(window.document.createElement("br")),c.push(window.document.createTextNode(String(f[k])));else c.push(window.document.createTextNode(String(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())};
Pq=function(a,b,c){for(var d in c){var e=c[d];null!=e&&Oq(a,b,d,w(e)?Nq(a,b,d,e):e)}};
Rq=function(a,b){a&&(a.style.display=b)};
Sq=function(a,b){var c=Vh("requestAnimationFrame",window);return Xi(function(){c?c.call(window,a):a()},b||0)};
Tq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
P=function(a){Mq.call(this,a);this.g=!0;this.aa=[]};
Uq=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};
Vq=function(a){return(!ia(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
Wq=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};
Xq=function(a){return Ki(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
ar=function(a,b){ga(a);Yq();for(var c=b?Zq:$q,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,t=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[t],c[f],c[l],c[n])}return d.join("")};
cr=function(a){var b="";br(a,function(a){b+=String.fromCharCode(a)});
return b};
dr=function(a){var b=[];br(a,function(a){b.push(a)});
return b};
br=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=er[c];if(null!=e)return e;if(!B(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
Yq();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))}};
Yq=function(){if(!$q){$q={};er={};Zq={};for(var a=0;65>a;a++)$q[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),er[$q[a]]=a,Zq[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(er["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
gr=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=D(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=fr)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};
hr=function(){for(var a=gr(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
ir=function(){return Ki(gr(),function(a){return(a&15).toString(16)}).join("")};
jr=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};
lr=function(){if(null==q("_lact",window)){var a=(0,window.parseInt)(Vi("LACT"),10),a=(0,window.isFinite)(a)?D()-Math.max(a,0):-1;g.ca("_lact",a,window);-1==a&&kr();om(window.document,"keydown",kr);om(window.document,"keyup",kr);om(window.document,"mousedown",kr);om(window.document,"mouseup",kr);ij("page-mouse",kr);ij("page-scroll",kr);ij("page-resize",kr)}};
kr=function(){null==q("_lact",window)&&(lr(),q("_lact",window));var a=D();g.ca("_lact",a,window);lj("USER_ACTIVE")};
mr=function(){var a=q("_lact",window);return null==a?-1:Math.max(D()-a,0)};
nr=function(){};
vr=function(){Zi(or);if(!cc(pr)){for(var a in pr){var b=qr[a];if(!b){b=rr[a];if(!b)continue;b=new b;qr[a]=b}var c=b.b,c={client:{hl:c.wm,gl:c.um,clientName:c.tm,clientVersion:c.innertubeContextClientVersion}};Vi("DELEGATED_SESSION_ID")&&(c.user={onBehalfOfUser:Vi("DELEGATED_SESSION_ID")});c={context:c};c.requestTimeMs=Math.round(Dq());c[sr[a]]=pr[a];tr(b,a,c);delete pr[a]}cc(pr)||ur()}};
ur=function(){Zi(or);or=Xi(vr,Vi("LOGGING_BATCH_TIMEOUT",1E4))};
wr=function(a){var b=window.location;a=Wg(a,{})+"";a=a instanceof He?a:Le(a);b.href=Ie(a)};
xr=function(a,b){var c=Vi("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=Vi("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Ng(window.location.href);e&&d.push(e);e=Ng(a);if(kb(d,e)||!e&&va(a,"/"))if(d=Lg(a),d=Jg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))Pj("enable_more_related_ve_logging")&&(c.itct||c.ved)&&((e=c.csn)||(e=Vi("client-screen-nonce",void 0))||(e=Vi("EVENT_ID",void 0)),c.csn=e),d="ST-"+Va(d).toString(36),e=c?Ug(c):"",Rk.set(""+d,e,5,"/","youtube.com"),
c&&(c=c.itct||c.ved,d=q("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new nr))}};
yr=function(a,b){window.open(a,b||Va(a).toString(36))};
zr=function(a){var b=!Q(a).Oa&&3!=a.getPresentingPlayerType();return a.isFullscreen()||b};
Ar=function(a,b,c,d){if(!c&&Vq(a))return xm(a),d&&(d=d.itct,Q(b).experiments.Z("player_interaction_logging")&&b.app.Ub.b.Rb("onLogServerVeClicked",d)),!0;b.pauseVideo();b=a.currentTarget.getAttribute("href");xr(b,d);return!1};
Dr=function(a,b,c){if(Br(Q(b))&&2!=b.getPresentingPlayerType()){if(Vq(c))return b.isFullscreen()&&Cr(b),xm(c),!0}else{var d=Vq(c);d&&b.pauseVideo();xr(a,null);d&&(yr(a),xm(c))}return!1};
Er=function(a){P.call(this,{I:"a",W:"ytp-fresca-suggested-central-link",U:{href:"{{link_destination}}"},P:[{I:"div",W:"ytp-fresca-suggested-promo-central",P:[{I:"div",W:"ytp-fresca-suggested-header",P:["{{suggested_header_central}}"]},{I:"div",W:"ytp-fresca-suggested-central-image",U:{style:"{{image_style}}"},P:[{I:"div",W:"ytp-fresca-suggested-image-badge",P:["{{badge_content}}"]}]},{I:"div",W:"ytp-fresca-suggested-title",P:["{{suggested_title}}"]},{I:"div",W:"ytp-fresca-suggested-content",P:["{{suggested_content}}"]}]}]});
this.b=a;this.N("click",this.o,this)};
Fr=function(a){P.call(this,{I:"div",W:"ytp-fresca-suggested-promo-sidebar",P:[{I:"div",W:"ytp-fresca-suggested-sidebar-title",P:["{{suggested_sidebar_title}}"]},{I:"button",fa:["ytp-button","ytp-fresca-suggested-sidebar-close-button"],P:["{{suggested_sidebar_close}}"]},{I:"div",W:"ytp-fresca-suggested-sidebar-items",P:["{{sidebar_items}}"]}]});this.b=[];this.o=a;this.A=!1};
Jr=function(a,b){a.va("suggested_sidebar_title",b.g?N("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.g}):"");a.va("suggested_sidebar_close",Fh());a.S(a.pa["ytp-fresca-suggested-sidebar-close-button"],"click",a.DC);Ob(a.b);a.b=[];E(b.b,function(a,b){if(!(5<=b)&&a){var c=new P({I:"a",W:"ytp-fresca-suggested-sidebar-link",U:{href:"{{link_destination}}"},P:[{I:"div",W:"ytp-fresca-suggested-sidebar",P:[{I:"div",W:"ytp-fresca-suggested-image",U:{style:"{{image_style}}"},P:[{I:"div",W:"ytp-fresca-suggested-image-badge",
P:["{{badge_content}}"]}]},{I:"div",W:"ytp-fresca-suggested-title",P:["{{suggested_title}}"]},{I:"div",W:"ytp-fresca-suggested-content",P:["{{suggested_content}}"]}]}]}),d="background-image:"+Gr(a),k=Hr(a);c.update({suggested_title:a.av,suggested_content:Ir(a),badge_content:k,image_style:d,link_destination:a.getVideoUrl()});d=c.pa["ytp-fresca-suggested-image-badge"];K(d,"ytp-fresca-suggested-image-badge-live",a.isLive());d.style.display=k?"":"none";c.N("click",this.TB,this);this.b.push(c)}},a);
a.va("sidebar_items",a.b)};
Kr=function(a){P.call(this,{I:"div",fa:["ytp-fresca-module"],P:[{I:"div",W:"ytp-fresca-slant",P:[{I:"div",W:"ytp-fresca-slant-blur-image"},{I:"div",W:"ytp-fresca-slant-inner",P:[{I:"div",W:"ytp-fresca-slant-overlay"},{I:"div",W:"ytp-fresca-slant-arrows"}]}]},{I:"div",W:"ytp-fresca-band-slate",P:[{I:"div",W:"ytp-fresca-message",P:[{I:"h1",W:"ytp-fresca-heading",P:["{{heading}}"]},{I:"h2",W:"ytp-fresca-byline",P:["{{byline}}"]},{I:"h3",W:"ytp-fresca-countdown",P:["{{countdown}}"]}]}]}]});this.F=a;this.B=
0;this.b=null;this.C=-1;this.A=new Er(a);G(this,this.A);this.o=new Fr(a);G(this,this.o);this.A.oa();this.A.Ba(this.element);this.o.oa();this.o.Ba(this.element)};
Pr=function(a,b,c){if(!a.b||a.b.state!=b.state||a.b.startTime!=b.startTime||a.b.imageUrl!=b.imageUrl||a.b.messageText.join()!=b.messageText.join()||c)if(a.b=b,b=Lr(b),K(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.b.imageUrl,b=a.pa["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=Mr(a.b),a.update({heading:b[0]||"",byline:b[1]||"",countdown:b[2]||""}),a.D(!0),a.b.g&&!Nr(a.F))if(Or(a.b.g)&&!Lr(a.b)){b=a.A;c=a.b.g.b[0];var d;d=
a.b.g;d=d.g?N("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.g}):"";var e="background-image:"+Gr(c);b.update({suggested_header_central:d,suggested_title:c.av,suggested_content:Ir(c),badge_content:Hr(c),link_destination:c.getVideoUrl(),image_style:e});K(b.pa["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.A.show();a.o.oa()}else b=a.b.g,!(0<b.b.length)||Or(b)||Lr(a.b)||a.o.A?a.o.oa():(Jr(a.o,a.b.g),a.o.show()),a.A.oa();else a.A.oa(),a.o.oa()};
Qr=function(a){var b=Math.floor(D()/1E3);if(b>a)return"";a-=b;return 86400>a?Uq(a):259200>a?N("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):N("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})};
Ur=function(a,b,c,d,e,f){w(a)?(this.C="y"==a?b:0,this.B="m"==a?b:0,this.b="d"==a?b:0,this.g="h"==a?b:0,this.o="n"==a?b:0,this.A="s"==a?b:0):(this.C=a||0,this.B=b||0,this.b=c||0,this.g=d||0,this.o=e||0,this.A=f||0)};
Xr=function(a,b,c){ia(a)?(this.date=Vr(a,b||0,c||1),Wr(this,c||1)):la(a)?(this.date=Vr(a.getFullYear(),a.getMonth(),a.getDate()),Wr(this,a.getDate())):(this.date=new Date(D()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Wr(this,a))};
Vr=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
Wr=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
Yr=function(){};
$r=function(a){if("number"==typeof a){var b=new Yr;b.o=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Pa(c,2));c=d.join("")}b.A=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Zr(a);b.B=[c,c];b.b={LP:a,Ro:a};b.g=[];return b}b=new Yr;b.A=a.id;b.o=-a.std_offset;b.B=a.names;b.b=a.names_ext;b.g=a.transitions;return b};
Zr=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Pa(Math.floor(a/60)%100,2),":",Pa(a%60,2));return b.join("")};
as=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.g.length&&c>=a.g[d];)d+=2;return 0==d?0:a.g[d-1]};
es=function(a,b){this.g=[];this.b=b||bs;"number"==typeof a?cs(this,a):ds(this,a)};
fs=function(a){return a.getHours?a.getHours():0};
ds=function(a,b){for(gs&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;d<hs.length;++d){var e=b.match(hs[d]);if(e){var f=e[0];b=b.substring(f.length);0==d&&("''"==f?f="'":(f=f.substring(1,"'"==e[1]?f.length-1:f.length),f=f.replace(/\'\'/g,"'")));a.g.push({text:f,type:d});break}}if(c===b)throw Error("Malformed pattern part: "+b);}};
cs=function(a,b){var c;if(4>b)c=a.b.xk[b];else if(8>b)c=a.b.To[b-4];else if(12>b)c=a.b.Hw[b-8],c=c.replace("{1}",a.b.xk[b-8]),c=c.replace("{0}",a.b.To[b-8]);else{cs(a,10);return}ds(a,c)};
is=function(a,b){var c;c=String(b);var d=a.b||bs;if(void 0!==d.wy){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.wy+k-48):c.charAt(f))}c=e.join("")}return c};
js=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");};
ks=function(a,b,c,d,e,f){var k=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=k?a.b.Lw[c]:a.b.Mw[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),is(a,Pa(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.b.Bx[c];break a;case 4:k=a.b.Co[c];break a;case 3:k=a.b.Io[c];break a;default:k=is(a,Pa(c+1,k))}return k;case "k":return js(e),is(a,Pa(fs(e)||24,k));case "S":return is(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Pa(0,k-3):""));case "E":return c=
d.getDay(),4<=k?a.b.Wo[c]:a.b.Jo[c];case "a":return js(e),k=fs(e),a.b.ho[12<=k&&24>k?1:0];case "h":return js(e),is(a,Pa(fs(e)%12||12,k));case "K":return js(e),is(a,Pa(fs(e)%12,k));case "H":return js(e),is(a,Pa(fs(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.b.Yx[c];break a;case 4:k=a.b.Oo[c];break a;case 3:k=a.b.No[c];break a;default:k=is(a,Pa(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.b.Xx[c];break a;case 4:k=a.b.Lo[c];break a;case 3:k=a.b.Mo[c];break a;default:k=is(a,Pa(c+
1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.b.Rx[c]:a.b.Ix[c];case "d":return is(a,Pa(d.getDate(),k));case "m":return js(e),is(a,Pa(e.getMinutes(),k));case "s":return js(e),is(a,Pa(e.getSeconds(),k));case "v":return k=f||$r(c.getTimezoneOffset()),k.A;case "V":return a=f||$r(c.getTimezoneOffset()),2>=k?a.A:0<as(a,c)?p(a.b.Kw)?a.b.Kw:a.b.DST_GENERIC_LOCATION:p(a.b.Ro)?a.b.Ro:a.b.STD_GENERIC_LOCATION;case "w":return c=a.b.Ak,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),
b=a.b.zk||0,c=e.valueOf()+864E5*(((p(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),is(a,Pa(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||$r(c.getTimezoneOffset()),4>k?a.B[0<as(a,c)?2:0]:a.B[0<as(a,c)?3:1];case "Z":return e=f||$r(c.getTimezoneOffset()),4>k?(k=-(e.o-as(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Pa(Math.floor(k/60)%100,2),Pa(k%60,2)),k=a.join("")):k=is(a,Zr(e.o-as(e,c))),k;default:return""}};
ls=function(a){this.B=a.thumbnailUrl?a.thumbnailUrl:null;this.b=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.av=a.title;this.g=a.state;this.o=a.currentViewers?(0,window.parseInt)(a.currentViewers,10):null;this.C=a.videoUrl;this.A=a.durationSecs?(0,window.parseInt)(a.durationSecs,10):null};
Gr=function(a){return(a=a.B)?"url("+a+")":""};
Ir=function(a){if("COMPLETE"==a.g){var b=Math.floor(D()/1E3);a=a.b?b-a.b:0;return 172800<a?N("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?N("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):N("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(D()/1E3),a=a.b?a.b-b:0,172800<a?N("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?N("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):N("YTP_FRESCA_STREAMING_SOON")):a.o&&2<a.o?N("YTP_FRESCA_VIEWERS_WATCHING_NOW",
{VIEWER_COUNT:a.o}):N("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")};
Hr=function(a){return"COMPLETE"==a.g&&a.A?Uq(a.A):a.isLive()?N("YTP_FRESCA_LIVE_BADGE"):null};
ms=function(a){this.g=a.channelName?a.channelName:"";this.b=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.b.push(new ls(a[b]))};
Or=function(a){return 1==a.b.length&&a.b[0].isLive()};
os=function(a,b){this.state=-1;this.o=a;this.messageText=[];this.A=!1;b&&ns(this,b)};
ns=function(a,b){var c=b.lifeCycleState;c&&(a.state=ps[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.A=0<=eb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.g=new ms(b)};
Mr=function(a){return a.messageText.length?a.messageText:qs(a)};
qs=function(a){switch(a.state){case 6:return!a.b()&&a.o?[N("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,N("YTP_FRESCA_EVENT_OFFLINE")]:a.b()?[]:[N("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),N("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:if(!a.startTime)return a.o?[N("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,N("YTP_FRESCA_EVENT_OFFLINE")]:a.o?[N("YTP_FRESCA_EVENT_OFFLINE")]:[N("YTP_FRESCA_EVENT_OVER_MESSAGE"),N("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(Lr(a))return["Dawn of","The final day","-24 hours remain-"];
if(a.startTime){var b=Vi("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d;d=b.formatLongDate;bs={Co:b.months,Lo:b.months,Io:b.shortMonths,Mo:b.shortMonths,xk:b.dateFormats,Wo:b.weekdays,Oo:b.shortMonths,Jo:b.shortWeekdays,No:b.shortWeekdays,my:b.weekendRange,zk:b.firstDayOfWeek,Ak:b.firstWeekCutoffDay,ho:b.amPms};c=(new es(d)).format(new Date(1E3*c))}b=Math.floor(D()/1E3);return[b<=a.startTime?N("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?N("YTP_FRESCA_EVENT_STARTING_SOON"):N("YTP_FRESCA_EVENT_HASNT_STARTED"),
c]}return a.o?[N("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,N("YTP_FRESCA_EVENT_OFFLINE")]:a.o?[N("YTP_FRESCA_EVENT_OFFLINE")]:[N("YTP_FRESCA_STAND_BY_MESSAGE")]}};
Lr=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(D()/1E3);return kb(rs,a.state)&&86459>=b&&86400<=b};
ts=function(a){iq.call(this,a);this.logEvent=this.Na="fresca";this.o=this.G=!1;this.A=this.g=this.B=null;cj({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live stream is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"Video was interrupted",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"The streamer stopped streaming.",YTP_FRESCA_EVENT_OFFLINE:"Offline",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"This stream is",
YTP_FRESCA_EVENT_STARTS_IN:"Watch the live stream!",YTP_FRESCA_EVENT_STARTING_SOON:"Live stream is starting soon",YTP_FRESCA_EVENT_HASNT_STARTED:"This scheduled live stream hasn't started yet",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME is streaming now!",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"Other live streams by $STREAMER_NAME",YTP_FRESCA_LIVE_BADGE:"Live",YTP_FRESCA_LIVE_DAYS_AGO:"Streamed $DAYS days ago",YTP_FRESCA_LIVE_HOURS_AGO:"Streamed $HOURS hours ago",YTP_FRESCA_LIVE_RECENTLY:"Recently live",
YTP_FRESCA_LIVE_IN_DAYS:"Live in $DAYS days",YTP_FRESCA_LIVE_IN_HOURS:"Live in $HOURS hours",YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT watching now",YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"Streaming now",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS days",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS hours"});this.C=!1;this.H="leanback"!=Q(this.b).b};
ws=function(a,b){if(!a.H)return!1;var c=!!Mr(b).length||!!b.imageUrl;if(!a.o&&6>b.state)return c;if(a.b.app.g.G&&(b.imageUrl||b.messageText.length))return!0;var d=us(a.b),d=Iq(d)||O(d,2),e;if(e=!a.g.b())(e=!a.o)||(e=!(us(a.b).Wa()&&!vs(a.b.getVideoData())&&!a.b.app.g.G)&&d);return e||a.G&&a.b.app.g.G||!a.o&&6<b.state?c:!1};
ys=function(a,b){var c=ws(a,b);if(!a.o)switch(b.state){case 6:b.b()&&(a.o=!0,mq(a));break;case 8:case 7:a.o=!0}c&&Pr(a.B,b);c&&!a.loaded?(a.load(),xs(a.b)):!c&&a.loaded&&(a.unload(),xs(a.b))};
As=function(a){return zs(a.getVideoData(),"fresca_module")?new ts(a):null};
Bs=function(a,b){var c;(c=!a.g)||(c=a.g,c=!(b&&c.broadcastId==b.broadcastId&&c.state==b.state&&c.b()==b.b()&&c.imageUrl==b.imageUrl&&Gb(c.messageText,b.messageText)&&(c.startTime==b.startTime||(0,window.isNaN)(c.startTime)&&(0,window.isNaN)(b.startTime))));if(c){a.g=b;c=a.b;var d;d={hasActiveStream:b.b(),imageUrl:b.imageUrl,messageText:Mr(b),startTime:b.startTime,state:b.state};xs(c,d)}};
Cs=function(){if(!zf)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
Fs=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(Ds){var b=Es();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
Gs=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");};
Hs=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=pf(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=pf(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
Es=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};
Js=function(){return Cc?"Webkit":Is?"Moz":zf?"ms":Dc?"O":null};
Ls=function(a,b,c){if(w(b))(b=Ks(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Ks(c,d);f&&(c.style[f]=e)}};
Ks=function(a,b){var c=Ms[b];if(!c){var d=Za(b),c=d;void 0===a.style[d]&&(d=Js()+$a(d),void 0!==a.style[d]&&(c=d));Ms[b]=c}return c};
Ns=function(a,b){var c=a.style[Za(b)];return"undefined"!==typeof c?c:a.style[Ks(a,b)]||""};
Os=function(a,b){var c=pf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
Ps=function(a,b){return Os(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
Rs=function(a,b,c){var d;b instanceof jf?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Qs(d,!1);a.style.top=Qs(b,!1)};
Ss=function(a){return new jf(a.offsetLeft,a.offsetTop)};
Ts=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}zf&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
Us=function(a){if(zf&&!Bc(8))return a.offsetParent;var b=pf(a),c=Ps(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=Ps(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};
Ws=function(a){for(var b=new og(0,window.Infinity,window.Infinity,0),c=rf(a),d=c.b.body,e=c.b.documentElement,f=yf(c.b);a=Us(a);)if(!(zf&&0==a.clientWidth||Cc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Ps(a,"overflow")){var k=Vs(a),l=new jf(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=xf(cg(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};
Vs=function(a){var b=pf(a),c=new jf(0,0),d;d=b?pf(b):window.document;d=!zf||Bc(9)||"CSS1Compat"==rf(d).b.compatMode?d.documentElement:d.body;if(a==d)return c;a=Ts(a);b=Af(rf(b).b);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Ys=function(a,b){var c=new jf(0,0),d=Bf(pf(a));if(!pc(d,"parent"))return c;var e=a;do{var f=d==b?Vs(e):Xs(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
$s=function(a,b){var c=Zs(a),d=Zs(b);return new jf(c.x-d.x,c.y-d.y)};
Xs=function(a){a=Ts(a);return new jf(a.left,a.top)};
Zs=function(a){if(1==a.nodeType)return Xs(a);a=a.changedTouches?a.changedTouches[0]:a;return new jf(a.clientX,a.clientY)};
bt=function(a,b,c){if(b instanceof lf)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");at(a,b);a.style.height=Qs(c,!0)};
Qs=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
at=function(a,b){a.style.width=Qs(b,!0)};
dt=function(a){var b=ct;if("none"!=Ps(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};
ct=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Cc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new lf(b,c):(a=Ts(a),new lf(a.right-a.left,a.bottom-a.top))};
et=function(a){var b=Vs(a);a=dt(a);return new pg(b.x,b.y,a.width,a.height)};
ft=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"};
gt=function(a){return"none"!=a.style.display};
ht=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};
lt=function(a){var b=Ps(a,"fontSize"),c;c=(c=b.match(it))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(zf){if(String(c)in jt)return ht(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in kt)return a=a.parentNode,c=Ps(a,"fontSize"),ht(a,b==c?"1em":b)}c=L("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Lf(c);return b};
mt=function(a){this.g=a||window;this.b=[]};
nt=function(a,b,c){c=y(c,a.g);b=qm(b,"mouseleave",c);a.b.push(b);return b};
ot=function(a,b,c,d){c=y(c,d||a.g);b=sm(b,c);a.b.push(b)};
pt=function(a){pm(a.b);a.b.length=0};
qt=function(a,b,c){F.call(this);this.wa=null;this.o=!1;this.B=a;this.A=c;this.b=b||window;this.g=y(this.Cz,this)};
rt=function(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
tt=function(a){a=a.b;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
wt=function(a){a=oa(a);delete ut[a];cc(ut)&&vt&&vt.stop()};
zt=function(){vt||(vt=new he(function(){xt()},20));
var a=vt;a.isActive()||a.start()};
xt=function(){var a=D();Pb(ut,function(b){At(b,a)});
cc(ut)||zt()};
Bt=function(){H.call(this);this.b=0;this.endTime=this.startTime=null};
Ct=function(a,b,c,d){Bt.call(this);if(!fa(a)||!fa(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.o=a;this.F=b;this.duration=c;this.C=d;this.g=[];this.progress=this.D=0;this.B=null};
At=function(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<=a.progress&&(a.progress=1);a.D=1E3/(b-a.B);a.B=b;Dt(a,a.progress);1==a.progress?(a.b=0,wt(a),a.Cc(),a.Bh()):a.Wa()&&a.Fm()};
Dt=function(a,b){ka(a.C)&&(b=a.C(b));a.g=Array(a.o.length);for(var c=0;c<a.o.length;c++)a.g[c]=(a.F[c]-a.o[c])*b+a.o[c]};
Et=function(a,b){mc.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.D;this.state=b.b};
Ft=function(a){return Math.pow(a,3)};
Gt=function(a){return 3*a*a-2*a*a*a};
Ht=function(a){this.b="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1};
It=function(a,b){var c=a.g(b,void 0);return-1==(0==c?a.b:c)?"rtl":"ltr"};
Jt=function(){this.b=[];this.g=hq};
Kt=function(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c};
Mt=function(a){return a.b.slice(Lt(a,0x7ffffffffffff),a.b.length)};
Lt=function(a,b){var c=Bb(a.b,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
Nt=function(a,b){for(var c=void 0,d=0;d<a.b.length;d++){var e=a.b[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};
Ot=function(a,b,c,d){F.call(this);this.o=window.NaN;this.C=!1;this.B=null;this.D=this.F=this.af=!1;this.M=a;this.K=b;this.G=c;this.H=d;this.J=new he(this.we,250,this);G(this,this.J);this.A=new he(this.we,0,this);G(this,this.A);this.g=[];this.b=new Jt};
Pt=function(a){a.af=!0;a.we()};
Qt=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.g.indexOf(e)&&(a.g.push(e),c.push([1,e]))}return c};
Rt=function(a,b){var c=[];if(!b.length)return c;b.sort(hq);for(var d=0;d<b.length;d++){var e=b[d];a.g.splice(a.g.indexOf(e),1);c.push([2,e])}return c};
St=function(a){return fa(a)&&a.length?a[0]:a};
Tt=function(a){var b=/.+/;return w(a)&&null!=b&&null!=a&&a.match(b)?a:""};
Ut=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};
Vt=function(a){return w(a)?a:""};
Wt=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};
Xt=function(a,b){return"true"==a||"false"==a?"true"==a:b};
Yt=function(a,b){return w(a)?(0,window.parseFloat)(a):b};
Zt=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return df(a,b,c);if(a>=b&&a<=c)return a}return e};
$t=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;E(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b};
au=function(a,b){if(null==a)return null;if(ga(a)){var c=[];E(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]};
bu=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new og((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};
cu=function(a){function b(a){return ne(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)};
du=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.Cj=d};
fu=function(a){if(!a)return null;var b=Vt(a.value);if(!b)return null;var c=Wt(a.target,eu,"current");return null==c?null:new du(b,c,Xt(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};
gu=function(a){return a.value?a.value:null};
iu=function(a){var b;(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=hu(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1};
hu=function(a){a=a.replace(/^(https?:)?\/\//,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};
ju=function(a){a=gu(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!iu(a))||(b=Mg(Lg(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=Uj(a);if(!b||!b.v)return null;if(b.t)return jr(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=Sj(a[1]))&&a.t?jr(a.t):-1};
ku=function(a){a=gu(a);a=a.replace(/https?:\/\//g,"");return iu(a)?(a=Uj(a))&&a.v?a.v:null:null};
mu=function(a,b,c,d){(a=gu(a))?iu(a)?d=Xj(a,{feature:"iv",src_vid:c,annotation_id:b}):(a?(b=hu(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=ra(lu,d.pageId,d.Ob),a=new M(a),gh(a,d(a.o)),d=a.toString()):d=a):d=null;return d};
lu=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};
nu=function(a,b){return b?b:iu(a)?"current":"new"};
ou=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var c=fc(b,e),c=c.toString();if(!B(C(c)))return(0,window.encodeURIComponent)(c).replace(/%2C/g,",")}catch(k){}return a})};
qu=function(a){this.o=a;this.b=0;this.B=window.NaN;this.g=0;this.ra=[];this.A=pu(this.o);this.C=this.D=0};
ru=function(a){a.A.startTime=a.g;a.A.endTime=a.b;a.ra.length&&cb(a.ra).isEmpty()?a.ra[a.ra.length-1]=a.A:a.ra.length&&a.A.isEmpty()||a.ra.push(a.A);a.D+=a.b-a.g;a.A=pu(a.o);a.g=a.b};
tu=function(a){return a.D+a.o.g()-a.g};
uu=function(a){a.ra.length&&a.b==a.g||ru(a);var b=a.ra;a.ra=[];return b};
vu=function(a,b,c){c-=a.B;return b==a.b&&.5<c};
wu=function(a,b){this.b=b;this.o=!1;this.videoData=a};
xu=function(a,b,c){wu.call(this,b,c);this.C=a};
yu=function(a,b){return new Fd(function(c,d){b.tb=function(a){ak(a)?c(a):d(a)};
b.onError=d;b.Lc=d;fk(a,b)})};
zu=function(a,b,c,d){function e(d,l,m){return Ud(d,function(d){return 0>=l||403===d.status?Kd(d):f(m).then(function(){return e(yu(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(a){return new Fd(function(b){(0,window.setTimeout)(b,a)})}
return e(yu(a,b),c-1,d)};
Au=function(){var a=Nj("yt-player-volume")||{},b=a.volume;return{volume:(0,window.isNaN)(b)?100:df(Math.floor(b),0,100),muted:!!a.muted}};
Bu=function(){return Nj("yt-player-quality")||"auto"};
Cu=function(a){Mj("yt-player-qoe-failed-count",a,2592E3)};
Du=function(){return Nj("yt-player-qoe-failed-count")||0};
Fu=function(a){F.call(this);this.b=a;this.g={};this.M=window.NaN;this.C=new he(this.tD,3E4,this);G(this,this.C);this.o="N";this.B=0;this.O=window.NaN;this.R=0;this.G=this.X="";this.ba=-1;this.F=this.H=0;this.K=this.D=!1;this.ea=[];this.A=null;(a=window.navigator.getBattery?window.navigator.getBattery():null)&&a.then&&a.then(y(function(a){this.A=a},this));
this.J=(this.b.b.experiments.b("html5_disable_qoe_percentage")||0)>Math.floor(100*Math.random());this.b.b.experiments.Z("html5_qoe_unstarted_in_initialization")&&Eu(this,0,"vps",["N"])};
Eu=function(a,b,c,d){var e=a.g[c];e||(e=[],a.g[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
Hu=function(a,b){var c=0<=b?b:Gu(a.b),d=a.b.C();if(!(0,window.isNaN)(a.aa)&&!(0,window.isNaN)(d.o)){var e=d.o-a.aa;0<e&&Eu(a,c,"bwm",[e,(d.C-a.ca).toFixed(3)])}a.aa=d.o;a.ca=d.C;(0,window.isNaN)(d.b)||Eu(a,c,"bwe",[d.b.toFixed(0)]);(0,window.isNaN)(d.g)||(e=d.g,d.A<e&&(e=d.A),a.O!=e&&(Eu(a,c,"bh",[e.toFixed(3)]),a.O=e));a.A&&Eu(a,c,"bat",[a.A.level,a.A.charging?"1":"0"]);e=a.b.getVisibilityState();a.ba!=e&&(Eu(a,c,"vis",[e]),a.ba=e);Eu(a,c,"cmt",[a.b.g()]);0<d.B&&Eu(a,c,"e2el",[d.B,d.F.toFixed(3),
d.D.toFixed(3),d.H.toFixed(3),d.G.toFixed(3)]);null!==a.b.videoData.xb&&(a.g.acc=[a.b.videoData.xb.join(":")])};
Ju=function(a){var b={event:"streamingstats"};if(a.b.videoData.g){b.fmt=Iu(a.b.videoData.g);var c=a.b.videoData.B;c&&Iu(c)!=b.fmt&&(b.afmt=Iu(c))}b.cpn=a.b.videoData.clientPlaybackNonce;b.ei=a.b.videoData.eventId;b.el=a.b.b.b;b.docid=a.b.videoData.videoId;b.ns=a.b.b.ia;b.fexp=a.b.b.experiments.experimentIds.toString();b.cl=a.b.b.Ca;a.b.videoData.adFormat&&(b.adformat=a.b.videoData.adFormat);a.b.videoData.xa&&(b.live=a.b.videoData.K?"dvr":"live");b.html5="1";return b};
Ku=function(a,b){var c=a.b.b.experiments;c.Z("html5_ajax_qoe")?yu(b,{}).then(a.Ms,a.Ls,a):c.Z("html5_ajax_qoe_retry")?zu(b,{},3,500).then(a.Ms,a.Ls,a):Yp(b)};
Lu=function(a){if(a.b.b.experiments.Z("html5_flush_long_qoe")){var b=0,c;for(c in a.g)b+=c.length+ff(a.g[c],function(a,b){return a+b.length},0);
1500<b&&(new he(a.Lg,0,a)).start()}};
Ou=function(a){a.b.b.experiments.Z("html5_qoe_unstarted_in_initialization")?Gu(a.b):Eu(a,Gu(a.b),"vps",["N"]);a.b.videoData.Ke&&Mu(a,"preload");a.b.videoData.O&&(Nu(a,"reload",a.b.videoData.Me),Nu(a,"reloadcount",a.b.videoData.O.toString()));a.b.videoData.Ka&&Mu(a,"monitor");a.b.videoData.xa&&Mu(a,"live");a.b.videoData.uo&&E(a.b.videoData.uo.split(","),y(function(a){Nu(this,"ytrexp",a)},a));
a.M=Yi(y(a.Lg,a),1E4);a.C.start()};
Pu=function(a,b,c,d){var e=a.b.g();c=[c,e.toFixed(3)];d&&c.push(d);Eu(a,b,"error",c)};
Mu=function(a,b){var c=a.g.cat||[];c.push(b);a.g.cat=c};
Nu=function(a,b,c,d){var e=a.g.ctmp||[],f=-1!=a.ea.indexOf(b);f||a.ea.push(b);d&&f||(e.push(b+":"+c),a.g.ctmp=e)};
Ru=function(a,b,c,d){this.ha=b;this.segments=[];this.experimentIds=[];this.H=this.Ka=this.G=this.la=this.Ha=this.autoplay=this.autonav=!1;this.ca="yt";this.K=this.g=this.C=null;this.X=!1;this.B="watchtime"==c;this.aa="playback"==c;this.Ga="delayplay"==c;this.F="atr"==c;this.Ia="engage"==c;this.ga=this.J=!1;this.Ma=this.F?"/api/stats/"+c:"//"+b.ce+"/api/stats/"+c;d&&(this.G=d.fs,d.rtn&&(this.g=d.rtn),this.B?(this.Tb=d.state,0<d.rti&&(this.C=d.rti)):(this.Oa=d.mos,this.Ya=d.volume,d.at&&(this.adType=
d.at)),d.autonav&&(this.autonav=d.autonav));b.experiments.Z("legacy_autoplay_flag")&&(this.autoplay=b.aa);this.qb=b.ua;this.ub=hc(b.o);this.za=b.ga;this.xb=b.b;this.experimentIds=b.experiments.experimentIds;this.ia=b.qa;this.ca=b.ia;this.region=b.region;this.Ub=b.Ca?b.Ca.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.fb=mr();this.J=b.na;this.ga=!b.experiments.Z("limit_visitor_header_on_attestation");this.D=a.oauthToken||this.D;this.adFormat=a.adFormat;this.autoplay=Qu(this.ha,
a,this.G);this.autonav=a.Ec||this.autonav;this.K=a.Id;this.clientPlaybackNonce=a.clientPlaybackNonce;this.R=a.vssCredentialsToken;this.Ca=a.qf;this.o=a.Gd;this.da=a.da;a.g&&(this.na=Iu(a.g),a.B&&Iu(a.B)!=this.na&&(this.O=Iu(a.B)));this.H=a.Ca;this.yb=a.Hd;a.xa&&(this.Sa=a.K?"dvr":"live");this.Db=a.rf;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Oe||a.playlistId;this.ua=a.qb;this.qa=a.ub;this.dc=a.Go;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;
this.visitorData=a.visitorData;this.osid=a.osid;this.Sb=a.yy;this.referrer=a.referrer;this.jb=a.Le||a.Eo;this.searchQuery=a.searchQuery};
Su=function(a,b){if(a.F)return null;var c=a.D&&Zj(),d=a.J&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.D);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,Cc:b}};
Tu=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=Wg(a,b);c?fk(a,c):Yp(a)};
Wu=function(a){var b={ns:a.ca,el:a.xb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.b(a.o),plid:a.playbackId,ei:a.eventId,fmt:a.na,fs:a.G?"1":"0",rt:a.b(a.Za),of:a.Sb,adformat:a.adFormat,content_v:a.qb,euri:a.za,subscribed:a.subscribed,lact:a.fb,live:a.Sa,cl:a.Ub,mos:a.Oa,q:a.searchQuery,osid:a.osid,state:a.Tb,vm:a.videoMetadata,volume:a.Ya};sa(b,a.ub);a.autonav&&(b.autonav="1");if(a.ha.experiments.Z("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||
a.H)b.autoplay="1";a.la&&(b["final"]="1");a.H&&(b.splay="1");a.da&&(b.delay=a.da);a.ia&&(b.hl=a.ia);a.region&&(b.cr=a.region);p(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);p(a.ea)&&(b.len=a.b(a.ea));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.g&&(b.rtn=a.b(a.g));a.jb&&(b.feature=a.jb);a.playlistId&&(b.list=a.playlistId);a.ua&&(b.ctrl=a.ua);a.qa&&(b.ytr=a.qa);a.dc&&(b.ssrt="1");a.O&&(b.afmt=a.O);a.ba&&(b.lio=a.b(a.ba));a.B?(b.idpj=a.yb,b.ldpj=a.Db,null!=
a.C&&(b.rti=a.b(a.C))):p(a.adType)&&(b.at=a.adType);(a.aa||a.Ga)&&a.K&&(b.tst=a.K);a.B&&(b.st=Vu(a,Ki(a.segments,function(a){return a.startTime})),b.et=Vu(a,Ki(a.segments,function(a){return a.endTime})));
Wh(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=Vu(a,Ki(a.segments,function(a){return a.visibilityState})));
Wh(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=Vu(a,Ki(a.segments,function(a){return a.playbackRate})));
Wh(a.segments,function(a){return"-"!=a.Sk})&&(b.cc=Ki(a.segments,function(a){return a.Sk}).join(","));
if(Wh(a.segments,function(a){return!!a.Ok})){var c="au";
a.aa&&(c="au_d");b[c]=Ki(a.segments,function(a){return a.Ok}).join(",")}Zj()&&a.R&&(b.ctt=a.R,b.cttype=a.Ca);
a.Ia&&(b.etype=p(a.A)?a.A:0);return b};
Vu=function(a,b){return Ki(b,a.b).join(",")};
Xu=function(a){F.call(this);this.b=a;this.g=new Fu(a);G(this,this.g);this.o=new qu(a);this.C="paused";this.D=window.NaN;this.H=[10,10,10,40];this.J=this.G=0;this.O=this.R=this.M=this.K=this.A=!1;this.B=window.NaN;this.aa=new xu(this.o,this.b.videoData,this.b.b)};
Yu=function(a,b,c){var d=Gu(a.b);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.D=Xi(y(a.X,a,c,b),d);return c};
av=function(a,b){var c=Zu(a.b);sa(c,{state:a.C});c=new Ru(a.b.videoData,a.b.b,b,c);c.o=a.b.g();if(!a.b.videoData.xa)c.ea=a.b.B();else if(a.b.videoData.b){var d=$u(a.b.videoData.b,c.o);d&&(c.ba=d-c.o)}c.Za=Gu(a.b);c.segments=[pu(a.b)];return c};
bv=function(a,b){var c=av(a,"watchtime");c.segments=b;c.o=a.o.b;return c};
cv=function(a){a.o.update();return bv(a,uu(a.o))};
fv=function(a){a.b.videoData.remarketingUrl&&!a.R&&(dv(a,a.b.videoData.remarketingUrl),a.R=!0);a.b.videoData.ppvRemarketingUrl&&!a.O&&(dv(a,a.b.videoData.ppvRemarketingUrl),a.O=!0);ev(a)};
iv=function(a,b){if(!a.isDisposed()){O(b.state,2)?(a.C="paused",0<gv(b,2)&&a.A&&cv(a).send()):O(b.state,8)?(a.C="playing",a.A&&(0,window.isNaN)(a.D)&&Yu(a,!1)):a.C="paused";var c=a.g,d=b.state,e=Gu(c.b),f;f=b.state;if(O(f,128))f="ER";else if(O(f,16)||O(f,32))f="S";else{var k=hv[Jq(f)];"B"==k&&O(f,4)&&(k="PB");f=k}if(f!=c.o){k=f;if(!(e<c.B)){if("PL"==c.o)c.F+=e-c.B;else if("B"==c.o&&c.D&&(c.D=!1,c.H+=e-c.B,!c.K&&10<=c.H&&180>=c.F)){c.b.F();if(!c.isDisposed()&&!c.J){var l=Ju(c);l.qoealert="1";l=Wg(c.b.b.Id,
l);Ku(c,l)}c.K=!0}"B"!=k||"PL"!=c.o&&"PB"!=c.o||(c.D=!0);c.B=e}"B"==f&&"PL"==c.o?Hu(c,e):Eu(c,e,"cmt",[c.b.g().toFixed(3)]);Eu(c,e,"vps",[f]);c.o=f}O(d,128)&&Pu(c,e,d.b.errorCode,d.b.errorDetail);(O(d,2)||O(d,128))&&c.Lg(e);Lu(c);a.B&&O(b.state,128)&&(a.F("error-100"),Zi(a.B))}};
jv=function(a){a.B=Yi(y(a.F,a,"heartbeat"),3E4)};
ev=function(a){a.b.videoData.C.eventLabel=a.b.b.b;a.b.videoData.C.playerStyle=a.b.b.g;a.b.videoData.hd&&(a.b.videoData.C.feature="pyv");a.b.videoData.C.vid=a.b.videoData.videoId;a.b.videoData.C.isAd=!("adunit"!=a.b.b.b&&!a.b.videoData.hd)};
dv=function(a,b,c){a.b.b.na&&a.b.videoData.visitorData&&Yj(b)?fk(b,{Cc:c,headers:{"X-Goog-Visitor-Id":a.b.videoData.visitorData}}):Yp(b,c)};
kv=function(a,b,c,d){Nu(a.g,b,c,d)};
lv=function(a){this.$=a;this.b={}};
qv=function(a,b,c,d){if(b){var e=mv(a,b);a.b[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;b=tb(c||[]);30==e["a-type"]&&(c=nv(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);ov(a,e,pv(b,d))}};
rv=function(a,b,c,d,e,f){if(b){var k=mv(a,b);k["iv-event"]=3;k["i-time"]=a.b[b]||"";kc(k,d||{});b=tb(e||[]);30==k["a-type"]&&(d=nv(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);ov(a,k,b,c,f)}};
tv=function(a,b){if(b){var c=mv(a,b);c["iv-event"]=4;c["i-time"]=a.b[b]||"";var d=[];if(30==c["a-type"]){var e=nv(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}ov(a,c,d)}};
pv=function(a,b){return b?Ki(a,ra(function(a,b){return ou(b,a)},b||{})):a};
nv=function(a,b,c){a=a.$.getVideoData();if(a.np){if((c=a.np[c])&&uv.test(c))return a=xa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.ua)return Wj(a.ua,{label:c,value:"a_id="+b});return""};
ov=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)}E(c||[],function(a){f++;
Yp(a,k)});
e&&(f++,0!=e&&a.$.Tf(e,k));vv(a,b,k)};
mv=function(a,b){var c={};if(b){var d=new jh(b);E(d.Ua(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.$.getCurrentTime().toFixed(2);
c.ps=Q(a.$).g;return c};
wv=function(a,b,c,d){d=mv(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;ov(a,d,c)};
xv=function(a,b,c,d){c&&(c=mv(a,c),c["iv-event"]=b,ov(a,c,d))};
vv=function(a,b,c){yv(a.$,"iv",b,c)};
zv=function(a,b){this.ea=a;this.context=b;this.vn=!1;this.H=0};
Av=function(a,b,c,d,e,f){b=new fq(b,c,{id:d});b.namespace="iv-module";e&&(b.b||(b.b=new ug)).subscribe("onEnter",e,a);f&&(b.b||(b.b=new ug)).subscribe("onExit",f,a);a.context.g.wb([b])};
Bv=function(a){return D()-a.H};
Cv=function(a,b,c,d,e,f,k){var l=y(function(){k&&this.context.g.pauseVideo();var a=Uj(b),d=null;"ei"in a&&(d={ei:a.ei},b=bh(b,"ei"));xr(b,d);yr(b,"current"==c?"_top":void 0)},a);
"new"==c&&(l(),l=null);var m={};m.interval=Bv(a);rv(a.context.logger,d,l,m,e,f)};
Dv=function(a,b){fa(b)||(b=[b]);var c=Ki(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
Ls(a,"transition",c.join(","))};
Ev=function(a,b,c,d){F.call(this);this.g=a;c||a.oa();this.B=null==d?b:d;this.b=null;this.o=new he(this.A,0,this);G(this,this.o)};
Gv=function(a){3!=a.b&&(1==a.b||2==a.b?(a.g.oa(),a.b=null,a.o.stop()):a.g.g&&(Fv(a,!0),a.b=3,a.o.start(a.B)))};
Fv=function(a,b){var c=a.g.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
Hv=function(a,b){P.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text",["span","ytp-cards-teaser-label","{{text}}"]]]);this.$=a;this.F=new Ev(this,250,!1,250);G(this,this.F);this.J=b;this.b=null;this.H=new he(this.TD,300,this);this.G=new he(this.RD,2E3,this);this.K=new Ht(null);this.B=[];this.A=this.o=this.D=this.C=null;this.S(b.element,"mouseover",this.Tv);this.S(b.element,"mouseout",this.Ze);this.S(a,"cardsteasershow",this.dF);this.S(a,"cardsteaserhide",
this.hi);this.S(a,"cardstatechange",this.$t);this.S(a,"presentingplayerstatechange",this.$t);this.N("click",this.pJ);this.N("mouseenter",this.nJ);this.N("mouseleave",this.oJ)};
Iv=function(a){if(!a||0==a.length)return"";var b=["ul","ytp-cards-hover-card-metadata"];E(a,function(a){b.push(["li","",a])});
return b};
Jv=function(a,b){if(b){var c=b.Yk?"":["h2","ytp-cards-hover-card-title",b.title],d=b.imageUrl,d=["div","ytp-cards-hover-card-image",{style:d?"background-image: url("+d+");":""}];d.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",d],["div","ytp-cards-video-desc",c,Iv(b.qe)]];a.o=new P(c);a.o.Ba(a.element);c=uf("ytp-cards-hover-card",void 0);a.S(c,"click",ra(a.Wr,b));a.S(c,"mouseenter",a.IA);a.S(c,"mouseleave",a.JA)}};
Lv=function(a,b){a.va("text",b.teaserText);a.element.setAttribute("dir",It(a.K,b.teaserText));a.F.show();Jv(a,b.dj);b.dj&&b.dj.Yk&&I(a.element,"ytp-cards-combined-teaser");a.C=new he(function(){I(this.$.Da(),"ytp-cards-teaser-shown")},0,a);
a.C.start();Kv(a.J,!1);a.b=new he(a.hi,580+b.durationMs,a);a.b.start();b.Iy&&I(a.element,"ytp-cards-auto-open-hover-card");b.PB&&(new he(function(){I(this.$.Da(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.B.push(a.N("mouseover",a.Tv,a));a.B.push(a.N("mouseout",a.Ze,a))};
Mv=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.B=b.auto_open||!1;this.Xa=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.b={Xq:a.impression,click:a.click,close:a.close,GG:a.teaser_impression,gn:a.teaser_click}};
Nv=function(a,b,c){Mv.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.qe=b.meta_info;this.url=fu({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
Ov=function(a,b,c){Mv.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.o=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=fu({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.g=null;b.signin_url&&(this.g=fu({target:"current",value:b.signin_url}));this.D=b.signin_title||null;this.C=b.signin_message||null};
Pv=function(a,b,c){Ov.call(this,a,b,c);this.F=b.ypc_flow_type;this.A=b.innertube_request_params};
Rv=function(a,b){return Qv&&a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};
Sv=function(a,b,c){this.b=a;this.g=b;this.A=c;this.o=new Ht(null)};
Uv=function(a,b){var c=["ol",""];E(b.chapters,function(a,b){c.push(["li","",["a","iv-click-target",{href:"#","data-navigation-chapter-index":b},a.title]])},a);
var d=["div",["iv-card","iv-card-navigation"],["div","iv-card-content",Tv(a,"h2","",b.title),c]],d=new P(d);E(tf("iv-click-target",d.element),function(a){this.b.b.N(a,"click",y(this.WD,this,b))},a);
return d};
Wv=function(a,b){var c=["ul","",{role:"radiogroup"}];E(b.choices,function(a){c.push(["li",b.A+"-"+a.index.toString(),["label","",["input","iv-card-poll-choice-input",{type:"checkbox",role:"radio",name:b.A+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"],Tv(this,"span",void 0,a.desc)]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);
var d={};b.o&&(d["aria-label"]=N("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var e=["iv-card","iv-card-poll"],d=[["div","iv-card-content",Tv(a,"h2",d,b.title),["form","",["fieldset","",c]]]];b.o&&(e.push("iv-card-unavailable"),d.push(["div",["iv-card-sign-in"],["h2","",N("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:gu(b.o)},["span",["iv-button-content"],N("YTP_SIGN_IN")]]]));e=new P(["div",e].concat(d));d=e.element;Vv(b,d);ot(a.b.b,d,ra(a.tE,b),
a);E(tf("iv-card-poll-choice-input",d),function(a){this.b.b.N(a,"focus",ra(this.ks,!0));this.b.b.N(a,"blur",ra(this.ks,!1))},a);
b.o&&a.g(uf("iv-card-sign-in-button",d),b.o,b.id,b.Xa,b.b.click,5);return e};
aw=function(a,b,c,d){var e=Xv(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=Yv(a,b),l=["iv-card"];b.g&&l.push("iv-card-unavailable");e=["div",l,["a","iv-click-target",{href:e},Zv(b.imageUrl,f),["div","iv-card-content",Tv(a,"h2",void 0,b.title),k]]];b.g&&(e=e.concat([["div",["iv-card-sign-in"],Tv(a,"h2",void 0,b.D||""),["p","",b.C],["a",["iv-card-sign-in-button","iv-button"],{href:gu(b.g)},Tv(a,"span","iv-button-content",N("YTP_SIGN_IN"))]]]));e=new P(e);$v(a,e,
b,c,d);return e};
cw=function(a,b,c){var d=Xv(a,b.url,b.id),e=["yt-badge","standalone-ypc-badge-renderer-icon",b.C?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.A&&b.o?["span",e,f,b.o]:"";c=["div",["iv-card",c],["a","iv-click-target",{href:d},Zv(b.D,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],bw(a,b)]]];c=new P(c);$v(a,c,b);return c};
dw=function(a,b){return b.customMessage?Tv(a,"div","iv-card-message",b.customMessage):""};
Zv=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};
bw=function(a,b){if(!b.qe||0==b.qe.length)return"";var c=["ul","iv-card-meta-info"];E(b.qe,function(a){c.push(Tv(this,"li","",a))},a);
return c};
Tv=function(a,b,c,d){c?w(c)?c={"class":c}:fa(c)&&(c={"class":c.join(" ")}):c={};c.dir=It(a.o,d);return[b,c,d]};
Yv=function(a,b){if(!b.customMessage)return"";var c=["iv-card-action","iv-card-primary-link"],d={};b.o&&(c.push("iv-card-action-icon"),d.style="background-image: url("+b.o+");");d.dir=It(a.o,b.customMessage);c=["div",c,d,["span","",b.customMessage]];b.showLinkIcon&&(c.push("\u00a0"),c.push(["span","iv-card-link-icon"]));return c};
Vv=function(a,b){var c=0;E(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=uf(a.A+"-"+e.index.toString(),b),e=e.count/c;null==a.g&&(e=0);K(f.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.g==d);f.getElementsByTagName("input")[0].checked=a.g==d;Vf(uf("iv-card-poll-choice-percent",f),N("YTP_DRAWER_POLL_PERCENT",{PERCENT:Math.floor(100*e).toFixed(0)}));Ls(uf("iv-card-poll-result-bar",f),"transform","scaleX("+e.toFixed(2)+")")}K(b,"iv-card-poll-voted",null!=a.g);K(b,"iv-card-poll-expanded",null!=
a.g&&1<a.choices.length)};
ew=function(a,b,c,d){d?(c&&a.b.videoData.xa||a.b.g.pauseVideo(),a.b.g.isFullscreen()&&Cr(a.b.g),rv(a.b.logger,b.Xa,d,void 0,b.b.click,5)):a.A(b.url,b.id,b.Xa,b.b.click,5)};
Xv=function(a,b,c){return b?mu(b,c,a.b.videoData.videoId,a.b.o):null};
$v=function(a,b,c,d,e){c.g&&fw(a,tf("iv-card-sign-in-button",b.element),c,c.g,e);fw(a,tf("iv-click-target",b.element),c,c.url,d)};
fw=function(a,b,c,d,e){E(b,function(a){if(e){var b=y(function(a){a.stopPropagation();a.preventDefault();e();return!1},this);
this.b.b.N(a,"click",b)}else this.g(a,d,c.id,c.Xa,c.b.click,5)},a)};
gw=function(a,b,c){Mv.call(this,a,b,c);this.title=b.title;this.chapters=b.chapters};
hw=function(a,b,c){Mv.call(this,a,b,c);this.o=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.qe=b.meta_info;this.url=fu({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
iw=function(a,b,c){Mv.call(this,a,b,c);this.A=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.o=null;b.signin_url&&(this.o=fu({target:"current",value:b.signin_url}));this.C=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null};
kw=function(a,b,c){Ov.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new jw(a[b]))};
jw=function(a){this.merchant=C(a.merchant);this.price=C(a.price)};
lw=function(a,b,c){Ov.call(this,a,b,c);this.F=b.ypc_item_type;this.A=b.ypc_item_id;this.G=b.ypc_flow_type};
mw=function(a,b,c){Mv.call(this,a,b,c);this.o=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.qe=b.meta_info;this.A=!!b.is_live_now;this.url=fu({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
nw=function(a,b,c){Mv.call(this,a,b,c);this.D=b.image_url;this.o=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.qe=b.meta_info;this.A=!!b.is_paygated;this.C=!!b.user_has_entitlement;this.url=fu({target:b.target||"new",value:b.url})};
ow=function(a,b,c){zv.call(this,b,c);this.$=a;this.nj=this.R=this.A=this.M=this.aa=!1;this.X=null;this.Rk=new he(r,c.o.useTabletControls?4E3:3E3);this.O=new he(r);this.g=new Sv(c,y(this.Og,this),y(this.qj,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},N("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":N("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.F=new P(a);this.C=this.F.element;this.K=
new Ev(this.F,330);this.ba=uf("iv-drawer-header",this.C);this.md=uf("iv-drawer-content",this.C);a=["iv-drawer-teaser"];this.g.b.o.experiments.Oy&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:N("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":N("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];new P(a);this.o=[];this.B=this.G=this.b=null;this.D=[];Av(this,0,1E3*c.videoData.lengthSeconds,"",this.zy,this.bz)};
xw=function(a,b){var c=b&&b.data&&b.data.card_type;if(c&&pw[c]){c=new pw[c](b.id,b.data,b.Xa);a.aa||(me(a.ma(),["html5-stop-propagation","iv-drawer-manager"]),qw(a.$,a.C,5),rw(a),a.aa=!0);tw(a,c.id);var d=uw(a,c);if(d){var e={ab:c,Tk:d.element,pr:!1,tj:!1},f=vw(a,e);wb(a.o,f,0,e);d.Ba(a.md,f);a.Ci();c.B?Av(a,c.startMs,0x8000000000000,c.id,ra(a.uG,e)):(d=1E3*a.context.g.getCurrentTime(),5E3>d&&d>c.startMs&&a.Zm(e,!1),Av(a,c.startMs,c.startMs+1,c.id,ra(a.Zm,e,!1)),ww(a))}}};
yw=function(a,b){b.data.autoOpenMs&&Av(a,b.data.autoOpenMs,0x8000000000000,"",a.BI);b.data.autoCloseMs&&Av(a,b.data.autoCloseMs,0x8000000000000,"",a.Ii)};
tw=function(a,b){var c=zw(a,b);c&&(c==a.b&&(a.b=null),a.$.Hu(c.ab.id),Lf(c.Tk),qb(a.o,c),a.Ci(),ww(a))};
Bw=function(a,b,c,d){if(!a.A){a.K.show();a.G=new he(function(){I(this.context.g.Da(),"ytp-iv-drawer-open")},0,a);
a.G.start();a.A=!0;a.H=D();wv(a.context.logger,7,void 0,d&&d.ab?d.ab.Xa:void 0);var e={TRIGGER_TYPE:b};E(a.o,function(a){a.tj||(a.tj=!0,qv(this.context.logger,a.ab.Xa,a.ab.b.Xq,e))},a);
Aw(a.$);c&&(a.B=new he(function(){var a;a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(l){}a=null}this.J=a;this.ba.focus()},330,a),a.B.start())}};
Cw=function(a,b){return a.context.o.experiments.Z(b)};
rw=function(a){a.context.b.N(uf("iv-drawer-close-button",a.C),"click",a.Ty,a);a.context.b.N(a.md,"touchend",function(){this.Rk.start()},a);
a.context.b.N(a.md,"scroll",a.gz,a);a.X=om(a.md,"mousewheel",y(a.CI,a));a.context.A.subscribe("onHideControls",function(){this.nj=!0},a);
a.context.A.subscribe("onShowControls",function(){this.nj=!1},a);
a.context.A.subscribe("onVideoAreaChange",function(){this.nj=le(this.$.Da(),"ytp-autohide")},a);
a.D.push(ij("iv-teaser-shown",a.OB,a));a.D.push(ij("iv-teaser-clicked",a.MB,a));a.D.push(ij("iv-hover-card-clicked",a.LB,a));Cw(a,"teaser_on_button_hover")&&a.D.push(ij("iv-button-mouseover",a.CG,a));Cw(a,"log_teaser_hover")&&a.D.push(ij("iv-teaser-mouseover",a.NB,a))};
uw=function(a,b){switch(b.type){case "simple":return aw(a.g,b);case "collaborator":var c=a.g,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:Xv(c,b.url,b.id),"data-ytid":b.channelId},Zv(b.profileImageUrl),["div","iv-card-content",dw(c,b),["h2","iv-card-primary-link",b.title],bw(c,b)]]],d=new P(d);$v(c,d,b);return d;case "donation":return c=a.g,d=y(c.aD,c,b),aw(c,b,d,d);case "episode":return cw(a.g,b,"iv-card-episode");case "movie":return cw(a.g,b,"iv-card-movie");
case "navigation":return Uv(a.g,b);case "playlist":return c=a.g,d=["div",["iv-card","iv-card-playlist"],["a","iv-click-target",{href:Xv(c,b.url,b.id)},Zv(b.o,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",dw(c,b),Tv(c,"h2","iv-card-primary-link",b.title),bw(c,b)]]],d=new P(d),$v(c,d,b),d;case "poll":return Wv(a.g,b);case "productListing":var c=a.g,d=Xv(c,b.url,b.id),e=!lb(b.offers),f=["iv-card"],k="",l=Yv(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",N("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},Tv(c,"h2",k,b.title),l]]];d=new P(d);f=Gf(window.document,"span");Vf(f,N("YTP_SPONSORED_PRODUCT_INFO"));d.Nb(f,"adInfo");$v(c,d,b);return d;case "tip":return c=a.g,d=y(c.gF,c,b),aw(c,b,d,d);case "video":return c=a.g,d=Xv(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.A?["span",["yt-badge","yt-badge-live"],N("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],
["a","iv-click-target",{href:d},Zv(b.o,f),["div","iv-card-content",dw(c,b),Tv(c,"h2","iv-card-primary-link",b.title),bw(c,b),k]]],d=new P(d),$v(c,d,b),d}return null};
vw=function(a,b){if(0==a.o.length)return 0;var c=gb(a.o,function(a){return b.ab.startMs>a.ab.startMs||b.ab.startMs==a.ab.startMs&&b.ab.timestamp>=a.ab.timestamp?!0:!1});
return-1==c?0:c+1};
aaa=function(a){return a.b?"productListing"==a.b.ab.type:Xk(a.o,function(a){return"productListing"==a.ab.type})};
ww=function(a){K(a.$.Da(),"ytp-cards-shopping-active",aaa(a))};
Dw=function(a,b){if(a.F.g){var c=new Ct([0,a.md.scrollTop],[0,b.Tk.offsetTop],600,Gt);a.context.b.N(c,"animate",function(a){this.md.scrollTop=a.y},a);
a.context.b.N(c,"finish",function(a){this.md.scrollTop=a.y},a);
c.play()}else a.F.gb(!0),a.md.scrollTop=b.Tk.offsetTop,a.F.gb(!1)};
Ew=function(a){return a.b&&a.b.ab||a.o[0]&&a.o[0].ab};
zw=function(a,b){return fb(a.o,function(a){return a.ab.id==b},a)};
Fw=function(a){if(!baa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(caa,"#$1$1$2$2$3$3"));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)]};
Gw=function(a,b,c,d,e){Ct.call(this,b,c,d,e);this.element=a};
Hw=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Gw.apply(this,arguments)};
Iw=function(a,b,c){zv.call(this,a,b);this.annotation=c;this.isActive=!1};
Jw=function(a,b,c){Iw.call(this,a,b,c);this.b=null;this.D=!1;this.g=null;this.o=!1;this.A=0;this.C=this.B=null};
daa=function(a,b,c,d,e,f){this.b=a;this.o=b;this.videoData=c;this.logger=d;this.g=e;this.A=f};
eaa=function(a,b,c){this.type=a;this.b=b;this.url=c};
haa=function(a){if(!a)return null;var b=Wt(a.type,faa),c=Wt(a.trigger,gaa),d=fu(St(a.url));St(a.subscribeData);return b?new eaa(b,c,d):null};
iaa=function(a,b,c,d,e,f,k,l,m,n,t,u,x,z){this.A=a;this.bgColor=b;this.C=c;this.b=d;this.g=e;this.H=f;this.B=k;this.textAlign=l;this.textSize=m;this.D=n;this.F=t;this.effects=u;this.o=x;this.G=z};
Kw=function(a){if(!a)return null;var b=Ut(a.fgColor,"#1A1A1A"),c=Ut(a.bgColor,"#FFF"),d=Ut(a.borderColor,"#000"),e=Zt(a.borderWidth,0,5,!1,0),f=Zt(a.bgAlpha,0,1,!1,.8),k=Ut(a.highlightFontColor,"#F2F2F2"),l=Zt(a.highlightWidth,0,5,!1,3),m=Vt(a.textAlign),n=Zt(a.textSize,3.3,30.1,!0,3.6107),t=Vt(a.fontWeight),u=bu(a.padding),x=cu(a.effects),z=Zt(a.cornerRadius,0,10,!0,0);if(a=St(a.gradient)){var J=Zt(a.x1,0,100,!0,0),V=Zt(a.y1,0,100,!0,0),S=Zt(a.x2,0,100,!0,100),ba=Zt(a.y2,0,100,!0,100),Ja=Ut(a.color1,
"#FFF"),db=Ut(a.color2,"#000");a=new jaa(J,V,S,ba,Ja,db,Zt(a.opacity1,0,100,!0,100),Zt(a.opacity2,0,100,!0,0))}else a=null;return new iaa(b,c,d,e,f,k,l,m,n,t,u,x,z,a)};
jaa=function(a,b,c,d,e,f,k,l){this.B=a;this.D=b;this.C=c;this.F=d;this.b=e;this.g=f;this.o=k;this.A=l};
Nw=function(a,b,c){var d=a.C,e=a.D,f=a.b?a.b:"xy",k=Lw(c,a.A,f);a=Mw(c,a.g,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new pg(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)};
Lw=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};
Mw=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
Ow=function(a,b,c,d,e,f,k,l,m,n,t){this.x=a;this.y=b;this.B=c;this.o=d;this.t=e;this.H=f;this.C=k;this.D=l;this.A=m;this.g=n;this.b=t};
Pw=function(a,b){if(!a)return null;var c=Yt(a.x,0),d=Yt(a.y,0),e=Yt(a.w,0),f=Yt(a.h,0),k=$t(a.t),l=Yt(a.scaleSlope,1);return b(c,d,e,f,k,Yt(a.d,0),Yt(a.px,0),Yt(a.py,0),Yt(a.scaleSlopeX,l),Yt(a.scaleSlopeY,l),Wt(a.scaleDimension,kaa,"xy"))};
Rw=function(a,b){var c=Qw(b,Nw(a,new pg(a.x,a.y,a.B,a.o),b.b)),d=b.b,e=c.clone();d&&!d.contains(c)&&(c.width<d.width?e.left=df(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=df(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};
Sw=function(a){return a?Pw(a,function(a,c,d,e,f,k,l,m,n,t,u){return new Ow(a,c,d,e,f,k,l,m,n,t,u)}):null};
Tw=function(a,b,c,d,e,f,k,l,m,n,t,u,x){Ow.call(this,a,b,c,d,e,l,m,n,t,u,x);this.F=f;this.G=k};
laa=function(a){if(!a)return null;var b=Yt(a.sx,0),c=Yt(a.sy,0);return Pw(a,function(a,e,f,k,l,m,n,t,u,x,z){return new Tw(a,e,f,k,l,b,c,m,n,t,u,x,z)})};
maa=function(a,b,c,d){this.type=a;this.g=b;this.b=c;this.o=d};
oaa=function(a){if(!a)return null;var b=Wt(a.type,naa,"rect"),c=au(a.rectRegion,Sw),d=au(a.anchoredRegion,laa);a=au(a.shapelessRegion,Sw);return new maa(b,c,d,a)};
Uw=function(a){return a.g&&a.g.length?a.g[0]:a.b&&a.b.length?a.b[0]:a.o&&a.o.length?a.o[0]:null};
paa=function(a,b){this.g=a;this.b=b};
qaa=function(a,b){this.state=a;this.b=b};
Vw=function(a){if(!a)return null;var b=Wt(a.state,raa);a=Tt(a.ref);return b?new qaa(b,a):null};
saa=function(a,b,c,d){this.b=a||[];this.o=b||[];this.A=c;this.g=d;this.value=!1};
taa=function(a){if(!a)return null;var b=au(a.condition,Vw),c=au(a.notCondition,Vw),d=Xt(a.show_delay,!1);a=Xt(a.hide_delay,!1);return b||c?new saa(b,c,d,a):null};
uaa=function(a,b,c){E(a.b,ra(b,!1),c);E(a.o,ra(b,!0),c)};
Ww=function(a,b,c,d,e,f,k,l,m,n,t,u,x,z,J){this.id=a;this.author=b;this.type=c;this.style=d;this.B=e;this.g=f;this.A=k||[];this.F=l||[];this.b=m;this.D=n;this.C=t;this.o=x;this.data=z;this.Xa=J};
xaa=function(a){if(!a)return null;var b=Tt(a.id),c=Tt(a.author),d=Wt(a.type,vaa),e=Wt(a.style,Xw),f=Vt(St(a.TEXT)),k=Vt(a.data),k=0!=k.length?eg(k):{},l;var m=St(a.segment);m?(Tt(m.timeRelative),l=Tt(m.spaceRelative),l=(m=au(m.movingRegion,oaa))?new paa(l,m):null):l=null;var m=au(a.action,haa),n=au(a.trigger,taa),t=Kw(St(a.appearance));t||(t=Kw({}));var u=Wt(a.coordinate_system,waa,"video_relative"),x=Xt(a.closeable,!0),z=Vt(a.html_blob);a=Vt(a.log_data);return b&&d?new Ww(b,c,d,e,f,l,m,n,t,u,x,0,
z,k,a):null};
Yw=function(a){return(a=yaa(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};
$w=function(a){return Zw(a,function(a){return"click"==a.b})};
Zw=function(a,b){return Wh(a.A,b,void 0)};
zaa=function(a,b,c){E(a.A,b,c)};
yaa=function(a,b){return fb(a.A,b,void 0)};
ax=function(a,b,c){E(a.F,b,c)};
Aaa=function(a,b){Ki(a.F,b,void 0)};
cx=function(a){return(a=bx(a))?Uw(a):null};
bx=function(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a};
dx=function(a,b){var c=cx(a);return c&&b?Mw(b,c.g,c.b?c.b:"xy"):1};
ex=function(a,b,c){Iw.call(this,a,b,c);this.D=this.A=this.F=!1;this.C=5E3;this.b=null;this.lh=L("DIV","iv-promo-contents");this.g=this.o=this.nc=null;this.B=new he(function(){this.nc.setAttribute("aria-hidden",!0);R(this.o,!1);R(this.g,!0)},700,this)};
Baa=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.C=b.collapse_delay_ms||a.C;var d=["iv-promo","iv-promo-inactive"];a.ma().setAttribute("aria-hidden",!0);a.ma().setAttribute("aria-label",N("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ma().tabIndex=0;var e;if(b.image_url){e=L("DIV",["iv-promo-img","iv-click-target"]);var f=L("IMG",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&!b.is_live?
(f=L("SPAN","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=L("SPAN","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.Og(e,Yw(a.annotation),a.annotation.id,a.annotation.Xa,null,c)}(f=Yw(a.annotation))?a.nc=L("A",{href:gu(f),"class":"iv-promo-txt"}):a.nc=L("DIV","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=L("P",null,L("STRONG",null,b.text_line_1));l=L("P",null,L("SPAN","iv-promo-link",b.text_line_2));
I(a.nc,"iv-click-target");a.Og(a.nc,Yw(a.annotation),a.annotation.id,a.annotation.Xa,null,c);break;case "playlist":case "video":k=L("P",null,L("SPAN",null,b.text_line_1));l=L("P",null,L("STRONG",null,b.text_line_2));b.is_live&&(k=l,l=L("SPAN",["yt-badge","iv-promo-badge-live"],N("YTP_LIVE_NOW")));I(a.nc,"iv-click-target");a.Og(a.nc,Yw(a.annotation),a.annotation.id,a.annotation.Xa,null,c);d.push("iv-promo-video");break;case "vote":k=L("P",null,L("STRONG",null,b.text_line_1)),l=L("P",null,L("SPAN",
null,b.text_line_2)),m=L("DIV","iv-promo-button-container"),c=L("BUTTON",["iv-button","iv-promo-button"],L("SPAN","iv-button-content",b.button_text)),a.context.b.N(c,"click",function(a){a.stopPropagation();rv(this.context.logger,this.annotation.Xa,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.nc=uf("iv-promo-txt",this.lh);a=uf("iv-promo-button-container",this.lh);var d=L("DIV",["iv-promo-txt","iv-click-target"]),e=L("P",null,L("STRONG",null,c.text_line_3)),c=L("P",
null,c.text_line_4);If(d,e,c);Lf(a);Mf(d,this.nc);oe(this.ma(),"iv-promo-with-button");this.Og(d,Yw(this.annotation),this.annotation.id,this.annotation.Xa)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.nc.appendChild(k);
l&&a.nc.appendChild(l);a.lh.appendChild(a.nc);m&&a.lh.appendChild(m);k=L("DIV","iv-promo-actions");a.g=L("BUTTON",["iv-promo-expand","ytp-button"]);a.g.title=N("YTP_EXPAND");a.context.b.N(a.g,"click",ra(a.Ml,5E3),a);k.appendChild(a.g);R(a.g,!1);a.context.b.N(a.ma(),"mouseover",a.Sz,a);a.context.b.N(a.ma(),"mouseout",a.Rz,a);a.context.b.N(a.ma(),"touchend",ra(a.Ml,5E3),a);a.o=L("BUTTON",["iv-promo-close","ytp-button"]);a.o.title=N("YTP_CLOSE");a.context.b.N(a.o,"click",a.DI,a);k.appendChild(a.o);me(a.ma(),
d);e&&Hf(a.ma(),e);Hf(a.ma(),a.lh);Hf(a.ma(),k)};
fx=function(a){a.A||a.D||a.b||(I(a.ma(),"iv-promo-collapsed"),a.A=!0,a.B.start())};
gx=function(a){a.B.stop();a.A&&(oe(a.ma(),"iv-promo-collapsed"),a.A=!1,a.nc&&a.nc.removeAttribute("aria-hidden"),R(a.g,!1),R(a.o,!0))};
hx=function(a,b){a.b||(a.b=fe(function(){this.b&&(ge(this.b),this.b=null);fx(this)},b,a))};
ix=function(a){F.call(this);this.K=[];this.na=a||this};
jx=function(a,b,c,d){for(var e=0;e<c.length;e++)a.S(b,c[e],d)};
kx=function(a){for(;a.K.length;){var b=a.K.pop();b.target.removeEventListener(b.name,b.Ei)}};
lx=function(){return!!q("yt.scheduler.instance")};
mx=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=q("yt.scheduler.instance.addJob");return c?c(a,1,b):void 0===b?(a(),window.NaN):Xi(a,b||0)};
nx=function(a){if(!(0,window.isNaN)(a)){var b=q("yt.scheduler.instance.cancelJob");b?b(a):Zi(a)}};
px=function(){var a=q("yt.scheduler.instance.start");a&&(Zi(ox),a())};
qx=function(){var a=q("yt.scheduler.instance.pause");a&&(a(),Zi(ox),ox=Xi(px,800))};
sx=function(a,b,c){this.b={};this.g=!1;this.B="ivTrigger:"+a;this.o=c;uaa(b,function(a,b){var c=rx(b.state,b.b);this.o.subscribe(c,y(this.A,this,c,a));this.b[c]=a},this)};
rx=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};
tx=function(a,b,c){this.o=a;this.annotation=b;this.b=c;this.g=null;this.B=this.isVisible=!1;Caa(b,a)};
Caa=function(a,b){Aaa(a,function(c){return new sx(a.id,c,b)})};
ux=function(a){vg(a.o,"resize",a.C,a);vg(a.o,"onVideoAreaChange",a.A,a)};
vx=function(a){a.g&&(a.g.stop(),a.g=null)};
wx=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
xx=function(){};
yx=function(a,b,c,d,e,f,k,l){this.B=a;this.D=b;this.C=c;this.F=d;this.G=e;this.H=f;this.o=p(k)?k:null;this.A=p(l)?l:null};
zx=function(){this.ra=[];this.ya=[];this.Pc=[]};
Ax=function(a,b,c){0==cb(a.ra)?a.Pc.length-=2:(a.ra.push(0),a.ya.push(1));a.Pc.push(b,c);a.xc=a.Ld=[b,c]};
Bx=function(a,b,c,d){var e=a.xc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.xc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.ra.push(3);a.ya.push(1);a.Pc.push(b,c,d,90,e,f);a.Lh=!1;a.xc=[e,f]};
Eaa=function(a,b){for(var c=a.Pc,d=0,e=0,f=a.ra.length;e<f;e++){var k=a.ra[e],l=Daa[k]*a.ya[e];b(k,c.slice(d,d+l));d+=l}};
Cx=function(a,b){this.o=a;this.A=null==b?1:b};
Dx=function(a,b,c){this.o=a;this.b=b;this.g=null==c?1:c};
Ex=function(){};
Fx=function(a){H.call(this);this.F=a||rf();this.wa=null;this.xd=!1;this.b=null;this.B=void 0;this.C=this.H=this.A=null};
Gx=function(a,b){if(a.xd)throw Error("Component already rendered");a.b||a.bj();b?b.insertBefore(a.b,null):a.F.b.body.appendChild(a.b);a.A&&!a.A.xd||a.ig()};
Hx=function(a,b){a.H&&E(a.H,b,void 0)};
Ix=function(a,b,c,d,e){Fx.call(this,e);this.width=a;this.height=b;this.o=c||null;this.J=d||null};
Faa=function(a){var b=a.qg();return b?b.width/(a.o?new lf(a.o,a.J):a.qg()).width:0};
Jx=function(a,b){H.call(this);this.qh=a;this.Gl=b;this[Gc]=!1};
Kx=function(a,b,c,d){Jx.call(this,a,b);this.Gl.Ft(this,c);this.fill=d;this.Gl.Et(this,d)};
Lx=function(a,b){Jx.call(this,a,b)};
Mx=function(a,b,c,d){Kx.call(this,a,b,c,d)};
Nx=function(a,b){Jx.call(this,a,b)};
Ox=function(a,b,c,d){Kx.call(this,a,b,c,d)};
Px=function(a,b,c,d,e){Ix.call(this,a,b,c,d,e);this.g={};this.K=Cc&&!zc(526);this.G=new Hm(this)};
Sx=function(a,b,c){a=a.F.b.createElementNS("http://www.w3.org/2000/svg",b);c&&Rx(a,c);return a};
Rx=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
Gaa=function(a){var b=[];Eaa(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(" ")};
Tx=function(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+Haa++;c.setAttribute("id",d);a.g[b]=d;a.D.appendChild(c);return d};
Vx=function(){Ux||(Ux=new de(400),Ux.start());return Ux};
Wx=function(){this.b=!1;this.B=this.g=null};
Xx=function(a,b,c){a.g?(a.g.setSize(b,c),a.g.clear()):(b=new Px(b,c,void 0,void 0,void 0),a.g=b,a.g.bj(),a.B=L("DIV"),b=a.g.ma(),a.B.appendChild(b));return a.g};
Yx=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);b&&Pb(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d};
Zx=function(a,b){var c=":"+(Ex.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
Iaa=function(a,b){var c=Zx(a,Yx("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=Zx(a,Yx("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},Yx("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=Zx(a,Yx("feComposite",{"in":c,in2:b,operator:"in"}));return Zx(a,Yx("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
Jaa=function(a,b){var c=Zx(a,Yx("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=Zx(a,Yx("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=Zx(a,Yx("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=Zx(a,Yx("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=Zx(a,Yx("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=Zx(a,Yx("feComposite",{operator:"out","in":c,in2:d}));return Zx(a,Yx("feComposite",{operator:"over","in":b,in2:c}))};
Kaa=function(a,b){return b};
Laa=function(a){var b=Yx("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";E(a,function(a){a:{switch(a){case "bevel":a=Iaa;break a;case "dropshadow":a=Jaa;break a}a=Kaa}c=a(b,c)});
return b};
Maa=function(a){a=ne(a,function(a){return a in $x});
Cb(a,function(a,c){return $x[a]-$x[c]});
return a};
Naa=function(a){return fb(a,function(a){return"dropshadow"==a})?new og(0,7,7,0):new og(0,0,0,0)};
ay=function(a,b,c){var d=new zx;Ax(d,a.left+b+c,a.top+c);d.Hb(a.left+a.width-b-c,a.top+c);Bx(d,b,b,-90);d.Hb(a.left+a.width-c,a.top+a.height-b-c);Bx(d,b,b,0);d.Hb(a.left+b+c,a.top+a.height-c);Bx(d,b,b,90);d.Hb(a.left+c,a.top+b+c);Bx(d,b,b,180);d.close();return d};
by=function(a,b,c,d){var e=a.G;e?a=new yx(e.B*b/100,e.D*c/100,e.C*b/100,e.F*c/100,e.b,e.g,e.o,e.A):(b=a.g,a=new Cx(a.bgColor,d?Math.max(b,.9):b));return a};
cy=function(a,b){var c=qg(a),d=Naa(b);la(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=Number(void 0),c.bottom+=Number(void 0),c.left-=Number(void 0));return new pg(c.left,c.top,c.right-c.left,c.bottom-c.top)};
dy=function(a,b,c){if(c.length&&(b=sf("g",void 0,b),b.length)){var d=Maa(c);if(d){c="effects:"+(d?d.join("|"):"");var e=c in a.g?a.g[c]:null;e?a=e:(d=Laa(d),a=0<d.childNodes.length?Tx(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};
ey=function(){Wx.call(this);this.A=0};
Oaa=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"};
fy=function(){Wx.call(this)};
gy=function(){Wx.call(this)};
hy=function(){ey.call(this)};
iy=function(a,b){this.b=a;this.g=b||null};
Qw=function(a,b){var c;c=a.g?Rw(a.g,new iy(a.b)):a.b;var d=b.clone(),e=c.left;c=c.top;e instanceof jf?(d.left+=e.x,d.top+=e.y):(d.left+=e,ia(c)&&(d.top+=c));return d};
jy=function(a,b,c,d,e){this.b=a;this.aa=b;this.C=c;this.ca=d;this.ea=e;this.M=!1;this.D=new mt(this);this.O=this.B=this.F=this.K=this.g=null;this.X=!1;this.ba=this.H=this.J=null;this.Dm=new Fm(this.Qz,100,this);this.G=new he(this.tq,500,this);this.R=this.o=this.A=null};
Paa=function(a,b){var c=y(function(a,c,f){c=f?ky(this,c,y(f,this)):ky(this,c);this.D.N(b,a,c)},a);
c("mouseover","d",a.bv);c("mouseout","c",a.Ze);c("click","a");c("touchend","a")};
Qaa=function(a){if(a.b.C){var b;Zw(a.b,function(a){return"close"==a.type})?b=a.g:(a.A=L("DIV","annotation-close-button"),R(a.A,!1),Pi(a.A,"annotation_id",a.b.id),a.g.appendChild(a.A),b=a.A);
var c=function(a){a.stopPropagation()};
a.D.N(b,"click",ky(a,"b",c));a.D.N(b,"touchend",ky(a,"b",c))}};
ky=function(a,b,c){return y(function(a){if(this.ea)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(bg(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=et(a.target);a=new jf(a.clientX,a.clientY);"c"==b&&d.contains(a)||this.ca.Rb(b,this.b)},a)};
qy=function(a){if(a.g||a.o){var b=cx(a.b);if(b){var c=ly(a);if(a.g){var b=Rw(b,c),d=my(ny(a.C));bt(a.g,b.width,b.height);Rs(a.g,b.left,b.top);a.K=new pg(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=cx(a.b))&&d?Lw(d,e.A,e.b?e.b:"xy"):1;var f=dx(a.b,d),d=a.b.b;d.F?d=d.F:(d="speech"==a.b.style?1.6:.8,d=new og(d,d,d,d));d=new og(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.B&&(d.right+=1.5*c.b.height/100);a.g.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+
d.left+"px";"label"==a.b.style&&a.F&&(a.F.style.padding=a.g.style.padding);var d=c.b,k=!1,l=0,m=0,n;n=my(ny(a.C));var t=oy(a.C);rg(n,t)?n=null:(t.top+=20,t.height-=40,"player_relative"!=a.b.D&&(t.left-=n.left,t.top-=n.top),n=t);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,u;a.B&&(m=py(a,23,b,e,f),a.A&&(u=43-m.width,0<u&&(b.left+m.left-u>d.left&&(m.left-=u),m.width+=u)),u=m,bt(a.B,m.width,m.height),Rs(a.B,m.left,m.top));a.A&&(u?b=new jf(u.left+u.width-
23-18,a.X?u.top+2:u.top+u.height-18-2):(u=py(a,18,b,e,f),b=new jf(u.left,u.top),bt(a.A,u.width,u.height)),Rs(a.A,b));a.O=new pg(a.K.left+u.left,a.K.top+u.top,u.width,u.height);a.J=a.D.N(ny(a.C),"mousemove",a.PD)}else a.B&&(u=e/f*d.height*4.2/100,u=new lf(u,u),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*d.height/100,u=new pg(b.width-u.width-e,b.height-u.height-e,u.width,u.height)):u=new pg(b.width-u.width-3*d.height/100,(b.height-u.height)/2,u.width,u.height),bt(a.B,u.width,u.height),Rs(a.B,u.left,
u.top)),a.A&&(u=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Rs(a.A,u&&e?new jf(b.width-9,-9):u?new jf(b.width-9,45<b.height?9:b.height-9):e?new jf(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new jf(45<b.width?b.width-9-18:-9,b.height-9):new jf(-9,45<b.height?9:b.height-9)))}a.o&&a.o.o(a.b,c);if(a.g){c=a.g;b=a.b.b;c.style.color="highlightText"==a.b.style?b.H:b.A;u=my(ny(a.C));c.style.fontSize=360*b.textSize*dx(a.b,u)/100+"px";u=a.b.style;c.style.textAlign=b.textAlign?b.textAlign:
"title"==u||"highlightText"==u?"center":"left";b.D&&(c.style.fontWeight=b.D);a=a.g;c=a.style.overflow;u=(b=uf("annotation-link-icon",a))?gt(b):!1;e=(d=uf("annotation-close-button",a))?gt(d):!1;u&&R(b,!1);e&&R(d,!1);m=f="";if(l=uf("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=lt(a);for(var t=5,x=Math.floor(k/2);x;)a.scrollHeight<=a.offsetHeight&&
a.scrollWidth<=a.offsetWidth?(t=n,n=Math.min(n+x,k)):n=Math.max(n-x,t),x=Math.floor(x/2),a.style.fontSize=n+"px";n!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;l&&(l.style.overflow=f,l.style.position=m);e&&R(d,!0);u&&R(b,!0)}}}};
py=function(a,b,c,d,e){var f=0<e;b=new pg(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),I(a.g,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),I(a.g,"annotation-extend-up"),a.X=!0);return b};
ry=function(a){return"label"!=a.b.style||a.o.b};
ly=function(a){var b;b=my(ny(a.C));if("player_relative"==a.b.D){var c=ny(a.C).Ja();b=new pg(-b.left,-b.top,c.width,c.height)}else b=new pg(0,0,b.width,b.height);return new iy(b,a.R?cx(a.R):null)};
sy=function(a,b){return b?new pg(a.x+b.left,a.y+b.top,b.width,b.height):null};
ty=function(a){iq.call(this,a);this.ca=!0;this.Na="iv-module";this.logEvent="iv";this.J=0;this.o={};this.K={};this.G=new lv(a);a=Raa;this.B=new ix(this);G(this,this.B);this.subscribe("onHideControls",this.uD,this);this.subscribe("onShowControls",this.VE,this);this.subscribe("presentingplayerstatechange",this.rE,this);this.subscribe("resize",this.ws,this);this.subscribe("d",this.oI,this);this.subscribe("c",this.Ze,this);this.subscribe("a",this.fC,this);this.subscribe("b",this.HC,this);this.subscribe("vast_info_card_add",
this.uF,this);this.R=L("DIV",[a.jx,"html5-stop-propagation"]);this.aa=L("DIV",a.Fw);this.H=this.g=this.A=this.C=null;this.O=[]};
uy=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){Q(a.b).experiments.Z("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(uy(a,e))}return c};
vy=function(a,b,c){return!(a.loaded&&a.J==b&&a.b.getVideoData().videoId==c)};
Taa=function(a,b){var c=Saa(a,b);if(!c&&"marker"!=b.type)return null;ax(b,function(a){a=y(this.qF,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new tx(a.ea,b,c)};
Uaa=function(a,b){var c=ty.g(),d=null;switch(b.type){case "branding":if(Q(a.b).Hd)break;a.C.element.appendChild(c);d=new Jw(c,wy(a),b);break;case "promotion":qw(a.b,c,4),d=new ex(c,wy(a),b)}d&&d.Mj();return d};
Vaa=function(a){var b=a.b.getVideoData();if(b.ag){var c=Q(a.b),d=c.G.get(b.videoId);if(d){var e={format:"XML",Dc:{}};c.experiments.Z("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.g&&(e.Dc.gaming="1");e.Cc=y(function(a,b,c){vy(this,a,b)||(a=ak(c)&&c.responseXML?c.responseXML:null)&&yy(this,a)},a,a.J,b.videoId);
lx()&&(e.Cc=zy(a,e.Cc));e.Ib={ic_only:"1"};Ay(e,d);fk(b.ag,e)}}};
Ay=function(a,b){a.method="POST";a.Ib=a.Ib||{};b.uf&&(a.Ib.ic_xml=b.uf);b.Rg&&(a.Ib.ic_track=b.Rg)};
Waa=function(a){var b=new P(["div"]);R(b.element,!1);var c=new ow(a.b,b.element,wy(a));b.Ba(a.C.element);c.Mj();return c};
wy=function(a){a.H||(a.H=new daa(new mt(a),Q(a.b),a.b.getVideoData(),a.G,a.b,a.ea));return a.H};
yy=function(a,b){for(var c=!1,d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=uy(a,d[e]),k=null;try{k=xaa(f)}catch(l){}k&&(ty.A(k)?(f=Uaa(a,k))&&(a.K[k.id]=f):ty.B(k)?(a.g||(a.g=Waa(a)),"card"==k.type?xw(a.g,k):yw(a.g,k),c=!0):(f=Taa(a,k))&&(a.o[k.id]=f))}c&&Aw(a.b);Pb(a.o,function(a){var b=a.annotation;b.g&&b.g.g&&(b=this.o[b.g.g])&&(a.b.R=b.annotation)},a)};
Xaa=function(a,b,c,d){d?By(a,b,c):Cy(a,b,c)};
Cy=function(a,b,c){if(b=a.o[b])vx(b),c&&c.g?(a=y(a.sq,a,b),b.g=new he(a,2E3),b.g.start()):a.sq(b)};
By=function(a,b,c){if(b=a.o[b])vx(b),c&&c.A?(a=y(a.Pt,a,b),b.g=new he(a,2E3),b.g.start()):a.Pt(b)};
Dy=function(a,b,c){if("new"==b.target)return!1;var d=gu(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!iu(d))return!1;d=Uj(d);if(d.list||d.p)return!1;b=ku(b);if(!b)return!1;if(c==b)return!0;a=Q(a.b);return a.D&&a.Ha?!0:!1};
Saa=function(a,b){if(Yaa(b)){var c=b.C||Zw(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new jy(b,y(a.R.appendChild,a.R),a.b,a.ea,c)}return null};
Yaa=function(a){if("highlight"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in Xw)if(a.style==Xw[b])return!0;return!1};
Ey=function(a,b,c,d){a.Y(rx(b,d),c,d)};
zy=function(a,b){return y(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=ra.apply(window,a);this.O.push(mx(b,void 0))}},a)};
Fy=function(a){return!!a.g&&a.g.isAvailable()};
Gy=function(a){Fy(a);return!!a.g&&a.g.A};
Hy=function(a,b,c,d){Fy(a);a.g&&(c=!!c,b?p(d)?Bw(a.g,d,c):Bw(a.g,"YOUTUBE_DRAWER_AUTO_OPEN",c):a.g.Ii())};
Iy=function(a,b,c){a.b.Va(b?"cardsteasershow":"cardsteaserhide",c)};
Jy=function(){cj({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"})};
Ly=function(a){a=a.split("");Ky.YP(a,19);Ky.lm(a,14);Ky.wZ(a,1);Ky.lm(a,23);Ky.wZ(a,1);Ky.YP(a,7);Ky.lm(a,22);Ky.YP(a,38);Ky.wZ(a,3);return a.join("")};
My=function(a,b,c){this.g=a||0;this.b=b||0;this.o=c};
Oy=function(a,b,c){return new My(Ny[a]||0,Ny[b]||0,c)};
Py=function(a){var b=Ny.auto;return a.g==b&&a.b==b};
Ry=function(a,b){if(b.o&&Py(b))return Qy;if(b.o||Py(a))return b;if(a.o||Py(b))return a;var c=a.g&&b.g?Math.max(a.g,b.g):a.g||b.g,d=a.b&&b.b?Math.min(a.b,b.b):a.b||b.b,c=Math.min(c,d);return c==a.g&&d==a.b?a:new My(c,d,!1)};
Sy=function(a){var b=a.b||a.g;return bc(Zaa,function(a){return Ny[a]==b})||"auto"};
Ty=function(){uk.call(this);this.b={}};
Uy=function(a,b,c){if(!a.b[b]&&(c.uf||c.Rg)){var d=a.b,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.Y("vast_info_card_add",b)}};
Zy=function(a,b){var c;(c=a.adformat)||(c=(c=a.attrib)&&$b(Vy,c)&&$b(Wy,c)?Wy[c]+"_"+Vy[c]:void 0);if(!c)return null;var d=c.match(Xy);if(!d||5!=d.length)return null;d=Yy(c);return b.D||b.Qa||d?c:null};
Yy=function(a){a=a.match(Xy);var b=a[3];return!(1==a[1]&&8==b)&&(7==b||8==b||10==b)};
$y=function(){var a=q("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),g.ca("yt.player.utils.videoElement_",a,void 0));return a};
az=function(a){var b=$y();try{if(b.canPlayType){a=a?$aa:aba;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
bz=function(a){a=L("DIV",{"class":a});window.document.body.appendChild(a);var b="none"==Os(a,"display");Lf(a);return b};
cz=function(a,b){return void 0==b?a:"1"==b?!0:!1};
dz=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
ez=function(a,b){return void 0==b?a:Number(b)};
fz=function(a,b){return void 0==b?a:b.toString()};
gz=function(a){if(a&&(a=a.match(bba))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};
hz=function(a,b){var c=Ny.auto,d=Ny[b];return d>Ny.medium?new My(d,c,!1):d>=c?new My(c,d,!1):a};
iz=function(a){return a.docid||a.video_id||a.videoId||a.id};
jz=function(a,b){this.g=a;this.b=b};
oz=function(){try{var a=q("yt.www.ads.biscotti.getId_"),b;if(a)b=a();else{if(!kz){var c=y(lz,aa,2);kz=yu("//googleads.g.doubleclick.net/pagead/id",mz).then(nz,c)}b=kz}return b}catch(d){return Kd(d)}};
nz=function(a){a=a.responseText;if(!va(a,")]}'"))return pz(""),kz=new jz(""),"";a=JSON.parse(a.substr(4)).id;pz(a);kz=new jz(a);qz(18E5,2);return a};
lz=function(a){var b=Error("Unable to load /pagead/id");pz("");kz=new jz(void 0,b);0<a&&qz(12E4,a-1);throw b;};
qz=function(a,b){Xi(function(){var a=y(lz,aa,b);Ud(yu("//googleads.g.doubleclick.net/pagead/id",mz).then(nz,a),r)},a)};
pz=function(a){g.ca("yt.www.ads.biscotti.lastId_",a,void 0)};
sz=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Qj(b||"","&");var c={};E(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.A=!!c["9405409"];this.B=!!c["9416855"];this.o=!!c["9406692"];this.g=!!c["9406693"]||!!c["9417210"]&&rz&&zc(8);this.Oy=!0;this.enableAudioCast=!!c["9408394"];this.D=!!c["9414740"];this.C=!!c["9407182"]};
tz=function(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.b=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1};
uz=function(a){a=a||{};this.J=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.J.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.g=a.languageCode||"";this.C=a.languageName;this.o=a.kind||"";this.B=a.name;this.wa=a.id;this.K=a.is_servable;this.isDefault=a.is_default;this.F=a.is_translateable;this.G=a.url||null;this.D=a.vss_id||"";this.b=null;a.translationLanguage&&(this.b=new tz(a.translationLanguage))};
wz=function(a){var b={format:a.A,languageCode:a.g,languageName:a.C,displayName:vz(a),kind:a.o,name:a.B,id:a.wa,is_servable:a.K,is_default:a.isDefault,is_translateable:a.F,vss_id:a.D};a.b&&(a=a.b,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.b,id:a.id,is_default:a.isDefault});return b};
vz=function(a){var b=a.C||"",c=[b];"asr"==a.o&&-1==b.indexOf("(")&&c.push(" (",N("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.b&&c.push(" >> ",a.b.languageName);return c.join("")};
cba=function(a,b){var c=new uz;c.g=a.g;c.C=a.C;c.B=a.B;c.o=a.o;c.isDefault=!1;c.F=a.F;c.D=a.D;c.G=a.G;c.b=b;return c};
xz=function(a,b){this.id=a;this.Wb=b;this.captionTracks=[];this.Pi=this.il=null;this.sp=0};
yz=function(a,b,c){this.videoInfos=a;this.b=b||null;this.audioTracks=[];this.g=c||null;if(this.b){var d={};E(this.b,y(function(a){if(a.Wb&&!d[a.id]){var b=new xz(a.id,a.Wb);d[a.id]=b;this.audioTracks.push(b)}},this))}};
zz=function(a){return(a=a.exec(sc))?a[1]:""};
Az=function(a){return 0<=Ua(dba,a)};
Bz=function(){};
Cz=function(){this.buffered=new Bz};
Dz=function(a,b){this.A=a;this.b=!!b;this.o=!1;this.g={}};
Ez=function(a){return a.b?a.A:Wg(a.A,a.g)};
Fz=function(a,b){return null!=b&&Ez(b)==Ez(a)};
Gz=function(a,b){this.g=a;this.o=b;this.A=0;Object.defineProperty(this,"timestampOffset",{get:this.VG,set:this.ZG});Object.defineProperty(this,"buffered",{get:this.TG})};
eba=function(){this.length=0};
Hz=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=window.NaN;this.o=0;Object.defineProperty(this,"duration",{get:this.UG,set:this.YG});Object.defineProperty(this,"readyState",{get:this.WG});this.b.addEventListener("webkitsourceclose",y(this.XG,this),!0)};
Iz=function(a,b,c,d,e){ix.call(this);this.g=this.b=null;this.A=b;this.o=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Hz(a);this.C=this.B=this.D=null;this.F=d;this.J=c;this.M=e;jx(this,this.o,["sourceopen","webkitsourceopen"],this.H);jx(this,this.o,["sourceclose","webkitsourceclose"],this.G)};
fba=function(a,b){a.B=b};
gba=function(a,b){a.C=b};
hba=function(a){if(!a.D){var b;b=a.o;b=b.mJ?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.D=new Dz(b,!0)}return a.D};
Kz=function(a,b){Jz(a)?a.o.duration=b:a.A=b};
Jz=function(a){try{return"open"==a.o.readyState}catch(b){return!1}};
Lz=function(a){try{return"closed"==a.o.readyState}catch(b){return!0}};
Mz=function(a){return a.b.updating||a.g.updating};
Nz=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Oz=function(a){return a.b?!!a.b.appendBuffer:Nz()};
Pz=function(a){if(/opus/.test(a)&&(gm&&!Az("38")||Up()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Sp())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!$y().canPlayType(a)};
Qz=function(a){this.Uc=a};
iba=function(a,b,c){this.A=a;this.g=b;this.B=c;this.o={};this.b=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null};
Uz=function(a,b){if(2.2!=Rz&&az(a.g))return[];for(var c={},d=$y(),e=0;e<b.length;e++){var f=b[e];if(Iu(f.Uc)in jba||"5"==Iu(f.Uc)?0:Sz(d,f.Uc.mimeType)){var k=f.Uc.video.quality;c[k]&&2!=c[k].Uc.g||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);E(Tz,function(a){(f=c[a])&&l.push(f)});
return l};
Sz=function(a,b){var c=a.canPlayType(b);Vz?c=c||kba[b]:2.2==Rz?c=c||lba[b]:Pp()&&(c=c||mba[b]);return!!c};
Xz=function(){return!(!Sz($y(),"application/x-mpegURL")&&!Wz())};
Wz=function(){var a=Pp()&&!Az(29),b=Op("google tv")&&Op("chrome")&&!Az(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
fA=function(a,b){var c={},d;for(d in b.b){var e=b.b[d],f;if(f="304"!=Iu(e.info)||b.o)a:{f=a;var k=e.info;if("0"!=Iu(k)||f.g){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[Yz.name]=k.video.width),k.video.height&&(m[Zz.name]=k.video.height),k.video.fps&&(m[$z.name]=k.video.fps),k.video.b&&(m[aA.name]=k.video.b),k.b&&(m[bA.name]=8*k.b));k.audio&&k.audio.b&&(m[cA.name]=k.audio.b);k=m;m=void 0;for(m in dA){var n=dA[m];if(k[n.name]&&eA(f,n))if(f.b){if(f.b[n.name]<k[n.name]){f=!1;break a}}else l=l+"; "+
n.name+"="+k[n.name]}f=Pz(l)}else f=!0}f&&(c[e.info.o]=c[e.info.o]||[],c[e.info.o].push(e.info))}return c};
nba=function(a,b,c){var d={},e;Pb(b,function(a,b){var f=a.filter(function(a){return a.lf?c&&a.lf[c.b]&&c.A[a.mimeType]?"261"==Iu(a)?(e||(e=$y()),!1):!0:!1:!0},this);
f.length&&(d[b]=f)},a);
return d};
nA=function(a,b,c,d,e){function f(a){return!!k[a]}
var k=fA(a,b);gA(b)&&(k=nba(a,k,c));var l=oba;a.g?!Op("windows nt 5.1")||hA&&!a.A.Z("html5_prefer_h264_on_xp")||(l=iA):l=pba;c=qba;d&&(a.g&&(l=iA),c=rba);a.A.Z("html5_enable_aac_51_clear")&&(Rp()||Sp()||eA(a,cA))&&(c=sba);(jA(b)||kA(b))&&e&&(c=tba.concat(c));b=fb(l,f);d=fb(c,f);if(!b||!d)return null;"9"==b&&k.h&&(e=function(a,b){return Math.max(a,b.video.height)},c=ff(k["9"],e,0),ff(k.h,e,0)>1.5*c&&(b="h"));
e=k[b];c=k[d];e=lA(a,e);mA(e,c);return new yz(e,c,uba(a,k,b,d))};
uba=function(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=lA(a,e),mA(e,b),new yz(e,b)):null};
mA=function(a,b){Cb(a,function(a,b){return b.video.width-a.video.width||b.b-a.b});
Cb(b,function(a,b){return b.b-a.b})};
lA=function(a,b){var c=Wh(b,function(a){return 32<a.video.fps});
c&&(b=a.B||eA(a,$z)?ne(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):ne(b,function(a){return!(32<a.video.fps)}));
c&&Rp()&&(b=ne(b,function(a){return"299"!=Iu(a)}));
return b};
eA=function(a,b){if(!(b.name in a.o)){var c=a.o,d=b.name,e;a.b?e=!!a.b[b.name]:(b.video?(e='video/webm; codecs="vp9"',Pz(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Pz(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Pz(e+"; "+b.name+"="+b.valid)&&!Pz(e+"; "+b.name+"="+b.Bg));c[d]=e}return a.o[b.name]};
zA=function(a){F.call(this);a=hc(a);this.b="detailpage";this.zm=this.Sa=this.M=!1;this.J={};this.experiments=new sz(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.Ia=b;this.H=(this.D=vba.test(this.Ia))?fz("",a.loaderUrl):this.Ia;this.Qa=Lp(this.H);this.X=(this.fh=(this.Ec=cz(!1,a.ssl_stream))||cz(!1,a.ssl))?"https":"http";this.baseYtUrl=Ip(a.BASE_YT_URL)||Ip(this.Ia)||this.X+"://www.youtube.com/";"adunit"==a.el?
oA.test(this.H)?this.b="adunit":this.b="embedded":"embedded"==a.el||this.Qa?this.b=dz(this.b,a.el,wba):a.el&&(this.b="embedded");lr();b=null;var c=a.ps,d=kb(pA,c);!c||d&&!this.Qa||(b=c);this.g=b;this.F=(this.Vb=kb(pA,this.g))&&"play"!=this.g;this.Ub=!this.F;this.o={};this.o.c=a.c||"web";this.o.cver=a.cver||"html5";this.o.cplayer="UNIPLAYER";this.da=!(!$y().defaultPlaybackRate||Dc&&!Op("chrome")||qA||rA||Op("android")||Op("silk"));this.isMobile=cz("blazer"==this.g,a.is_html5_mobile_device);this.useMediaVolume=
"3"==this.A||this.isMobile||cz(!1,a.use_media_volume);if(b=!this.useMediaVolume)b=$y(),c=b.muted,b.muted=!c,b=b.muted!=c;this.ba=b;this.Le=sA;this.Za=cz("adunit"!=this.b&&"detailpage"!=this.b&&!this.Vb,a.showinfo);this.sc=cz(!1,a.playsinline);b=this.isMobile&&tA&&2.3>=Rz;c=uA(this)||!b&&cz("native"==this.g,a.use_native_controls)?"3":"1";this.A="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=dz("red",a.color,xba);this.He="3"==this.A||cz(!1,a.modestbranding)&&"red"==this.color;
cz(!1,a.nologo)&&(c=this.H,yba.test(c),Lp(c));this.ea=0==this.H.indexOf(this.baseYtUrl);this.jd=(c=!this.ea&&"detailpage"!=this.b&&!this.F&&!this.Vb)&&!this.He&&"1"==this.A;this.Hd="embedded"==this.b&&c&&!this.Za&&!this.jd;this.rf=this.Ie=b;this.R=rA?!1:!0;this.Ee=this.D||!1;this.ga="detailpage"==this.b?"":(this.H||a.post_message_origin||"").substring(0,128);this.widgetReferrer=fz("",a.widget_referrer);b=this.experiments.Z("legacy_cast2")||cz(!0,a.enablecastapi)||!this.Qa;this.B=!a.disableCast&&b&&
"1"==this.A&&!this.isMobile&&("detailpage"==this.b||"embedded"==this.b||"profilepage"==this.b);this.Db=(this.aa=cz(!1,a.autoplay))||"detailpage"==this.b;this.qb=!this.isMobile&&!Vp()&&!Op("nintendo 3ds")||cz(!1,a.autoplayoverride);b=("detailpage"==this.b||"adunit"==this.b)&&("blazer"==this.g||"mweb-polymer"==this.g);this.Oa=!cz(!0,a.fs);this.za=!this.Oa&&(b||ai());this.Gd=cz(!this.Vb,a.rel);this.Oe="adunit"!=this.b;this.ha="profilepage"==this.b;this.Ya="blazer"==this.g||"mweb-polymer"==this.g;switch(this.g){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.ia=b;this.Ob=fz("",a.authuser);this.qf=!!this.Ob&&cz(!this.F,a.showwatchlater);this.Tb=cz(!1,a.disablekb);this.experiments.Z("mweb_autonav")&&vA();this.pageId=fz("",a.pageid);this.Je=hz(Qy,a.vq);this.Ke=fz("",a.playerapiid);this.Ne=cz(!0,a.canplaylive);this.De=cz(this.Vb,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 lf(b,c))):b=null;this.Jd=b;this.mute=this.Qa&&cz(!1,a.mute);this.storeUserVolume=!this.mute&&cz("0"!=this.A,a.store_user_volume);this.Me=cz(!1,a.retryneterr)&&this.Qa;this.de="3"==this.A?3:dz(void 0,a.iv_load_policy,wA);this.Ha=cz(!1,a.iv_allow_in_place_switch);this.ub=fz("",a.cc_lang_pref);this.la=dz(void 0,a.cc_load_policy,wA);this.ua=void 0==a.content_v?void 0:a.content_v.toString();
this.Fe=void 0==a.framer?void 0:a.framer.toString();this.qa=fz("en_US",a.hl);this.region=fz("US",a.cr);this.hostLanguage=fz("en",a.host_language);this.dc=cz(!1,a.privembed);this.qc="";this.Ka=new Dk;this.C=cz(!0,a.deviceHasDisplay);this.xb=ez(this.xb,a.ismb);xA(this,a);this.J=a;this.G=new Ty;this.O=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.o.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.Z("disable_innertube_config_reporting")||aj(Error("MISSING_INNERTUBE_CONFIG,api_key="+
b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.o.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.Ge={apiaryHost:fz("",b.apiary_host),gp:fz("",b.apiary_host_firstparty),gapiHintOverride:cz(!1,b.gapi_hint_override),gapiHintParams:fz("",b.gapi_hint_params),innertubeApiKey:fz("",b.innertube_api_key),innertubeApiVersion:fz("",b.innertube_api_version),tm:this.o.c,innertubeContextClientVersion:fz("",
b.innertube_context_client_version),wm:this.hostLanguage,um:this.region};this.hd=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.K=new iba(this.experiments,this.C,yA(this)||Rp()||Sp());this.enableSafetyMode=cz(!1,a.enable_safety_mode);this.yb="detailpage"==this.b&&"blazer"!=this.g&&"mweb-polymer"!=this.g;this.na=cz(!1,a.send_visitor_id_header)||this.experiments.D};
AA=function(a,b){a.Sb=b.get("d",a.Sb);a.fb=b.get("f",a.fb)};
xA=function(a,b){var c=Zy(b,a);c&&(a.J.adformat=b.adformat,Yy(c)||(a.b="adunit"));if(c=b.video_id&&b.video_id!=a.qc)a.qc=b.video_id;(b.adpings||c)&&b.adpings&&Sj(b.adpings);var d;a.Ub?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||"s.youtube.com",a.experiments.C&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.ce=d;a.Id="//"+a.ce+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ee=d,a.J.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.J.referrer=
d;if(b.q||c)a.searchQuery=b.q;for(var e in BA)c=BA[e],d=b[c],void 0!=d&&(a.o[c]=d);!a.Ca&&b.cl&&(a.Ca=+b.cl);a.userAge=ez(a.userAge,b.user_age);a.userDisplayImage=fz(a.userDisplayImage,b.user_display_image);CA.test(a.userDisplayImage)||(a.userDisplayImage="");a.userDisplayName=fz(a.userDisplayName,b.user_display_name);a.userGender=fz(a.userGender,b.user_gender);a.ca=fz(a.ca,b.eventid);a.ca&&(fr=a.ca);a.csiPageType=fz(a.csiPageType,b.csi_page_type);a.Ga=fz(a.Ga,b.csi_service_name);a.Ya=cz(a.Ya,b.enablecsi);
b.enabled_engage_types&&(a.Ka=new Dk(b.enabled_engage_types.split(",")));a.Ha=cz(a.Ha,b.iv_allow_in_place_switch)};
Qu=function(a,b,c){return b.J&&(a.experiments.Z("legacy_autoplay_flag")||"detailpage"!=a.b||c||b.Ec)};
DA=function(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.Ob&&(b.authuser=a.Ob);a.pageId&&(b.pageid=a.pageId);return Wg(a.baseYtUrl+"get_video_metadata",b)};
EA=function(a){var b=Ng(a.baseYtUrl);(a=Og(a.baseYtUrl))&&(b+=":"+a);return"www.youtube-nocookie.com"==b?"www.youtube.com":b};
FA=function(a){return"gaming"==a.g?"gaming.youtube.com":EA(a)};
GA=function(a,b,c){return a.X+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
Br=function(a){return"detailpage"==a.b&&"gaming"!=a.g};
uA=function(a){return rA&&!a.sc||Vp()||Op("nintendo 3ds")?!0:!1};
HA=function(a){return Up()||"TV"==a.o.cplatform};
IA=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
yA=function(a){return"web"==a.o.c.toLowerCase().substr(0,3)};
vA=function(){q("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer");return!1};
KA=function(a){return a.C&&gm&&!JA&&!Vz};
MA=function(a){return KA(a)||a.C&&hA&&!JA&&zc(38)||a.C&&Dc&&!JA&&zc(27)||a.C&&LA&&!Wp()&&zc(11)};
zba=function(a){return a.experiments.Z("disable_html5_ambisonic_audio")||!MA(a)||hA&&!zc(47)?!1:window.AudioContext||window.webkitAudioContext?!0:!1};
NA=function(a){this.o=[];this.G=!1;this.A=a;this.C=[];this.D=[];P.call(this,{I:"div",W:"caption-window",U:{id:"caption-window-"+a.id},P:[{I:"span",W:"captions-text",U:{tabindex:0,"aria-live":"assertive"}}]});this.B=this.pa["captions-text"];this.ba=null!=this.B.style["box-decoration-break"]||null!=this.B.style["-webkit-box-decoration-break"];this.type=this.J=this.F=0;this.b=null};
OA=function(a){var b=1+.25*(a.jg||0);if(0==a.offset||2==a.offset)b*=.8;return b};
PA=function(a,b){var c={};if(null!=b.kd||b.background){var d=null!=b.kd?b.kd:a.b.La.kd,e=Fw(b.background?b.background:a.b.La.background);c.background="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")";a.ba&&(c["box-decoration-break"]="clone",c["border-radius"]=a.F/8+"px")}if(null!=b.jg||null!=b.offset)c["font-size"]=a.J*OA(b)+"px",c["line-height"]="1.32em";d=1;if(b.color||null!=b.bf)e=Fw(b.color||a.b.La.color),d=null==b.bf?a.b.La.bf:b.bf,e="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")",c.color=e,c.fill=e;if(null!=
b.he&&0!=b.he){e="rgba(34, 34, 34, "+d+")";d="rgba(204, 204, 204, "+d+")";b.yp&&(d=e=b.yp);var f;switch(b.he){case 4:f="2px 2px 3px "+e+", 2px 2px 4px "+e+", 2px 2px 5px "+e;break;case 1:f="1px 1px "+e+", 2px 2px "+e+", 3px 3px "+e;break;case 2:f="1px 1px "+d+", 0 1px "+d+", -1px -1px "+e+", 0 -1px "+e;break;case 3:f="0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e}c["text-shadow"]=f}f="";switch(b.fontFamily){case 1:f='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;
case 2:f='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:f='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:f='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:f='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:f=Qp()&&Rp()?"sans-serif-smallcaps":'"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';break;case 0:case 4:f='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}f&&
(c["font-family"]=f);f=b.offset;null==f&&(f=a.b.La.offset);switch(f){case 0:c["vertical-align"]="sub";break;case 2:c["vertical-align"]="super"}7==b.fontFamily&&(c["font-variant"]="small-caps");b.bold&&(c["font-weight"]="bold");b.Am&&(c["font-style"]="italic");b.hn&&(c["text-decoration"]="underline");b.Ql&&(c.visibility="hidden");return c};
QA=function(a){for(var b=1,c=0;c<a.length;c++){var d=a[c];w(d.text)&&(b+=d.text.split("\n").length-1,d.C||0==c||b++)}return b};
RA=function(a,b,c,d){a.G=d||a.G;var e,f=a.C[0];if(f&&c.background==f.background&&c.kd==f.kd&&!!c.Ql==!!f.Ql&&c.he==f.he){for(d=0;d<a.C.length;d++)if(gc(c,a.C[d])){e=a.D[d];break}if(!e){d={};for(var k in c)c[k]!=f[k]&&(d[k]=c[k]);e=window.document.createElement("span");Ls(e,PA(a,d));a.D[0].appendChild(e);d=1}a.D.length=d;a.C.length=d}else a.D.length=0,a.C.length=0,e=window.document.createElement("span"),Ls(e,PA(a,c)),a.B.appendChild(e);if(w(b.text)){k=b.text.split("\n");f=a.A.$f.length;for(d=0;d<k.length;d++){var l=
0<d||0==a.o.length||!b.C,m=!f||a.o.length+1>=f||d+1<k.length;!l||0==a.o.length&&0==d||e.appendChild(window.document.createElement("br"));k[d]?(l&&e.appendChild(window.document.createTextNode("\u00a0")),e.appendChild(window.document.createTextNode(k[d])),m&&e.appendChild(window.document.createTextNode("\u00a0"))):l!=m&&e.appendChild(window.document.createTextNode("\u00a0"))}a.C.push(c);a.D.push(e);a.o.push(b)}else e.appendChild(b.text)};
SA=function(a){a.G=!1;a.o=[];a.C=[];a.D=[];Jf(a.B)};
Aba=function(){this.o=[];this.b=[];this.g=-1};
TA=function(a,b){return b?a.b.concat(a.o):a.b};
VA=function(a,b){switch(b.o){case "asr":UA(b,a.o);break;default:if(b.isDefault||0>a.g)a.g=a.b.length;UA(b,a.b)}};
UA=function(a,b){fb(b,y(a.H,a))||b.push(a)};
Bba=function(a,b){var c=eb(a.b,y(b.H,b));-1!=c&&(a.g=c)};
WA=function(a){this.Yq=!!a;this.b=new Aba;this.B=[]};
Cba=function(a,b){return fb(TA(a.b,!0),function(a){return a.toString()==b})};
XA=function(a){WA.call(this,a.Tb);this.g=null;this.A=void 0;this.o=null;this.B=a.captionTranslationLanguages};
Dba=function(){this.la=this.ia=!1;this.ea=1;this.o=20971520;this.B=8388608;this.b=window.NaN;this.M=3145728;this.O=62914560;this.ba=10485760;this.D=window.NaN;this.na=2;this.qa=25;this.C=2097152;this.J=!1;this.G=1800;this.ca=2;this.g=1.15;this.A=1.05;this.ha=!0;this.liveChunkReadahead=3;this.Oa=Op("xboxone")||Tp()||Pp();this.X=25;this.aa=!1;this.Ka=gm&&!0;this.Sa=!0;this.ga=this.Ia=this.H=!1;this.Ca=.8;this.F=this.ua=this.jb=this.Ha=!1;this.K=0;this.R=this.da=!1;this.Ga=!0;this.Ma=this.za=!1};
Eba=function(a,b){1080<b&&!a.ia&&(a.o=36700160,a.B=5242880,a.M=10485760,a.C=4194304,a.ia=!0);2160<b&&!a.la&&(a.o=104857600,a.D=13107200,a.la=!0)};
YA=function(){this.ra=[]};
ZA=function(a,b){F.call(this);this.F=b;this.D=new YA;this.o=!0;this.G=this.A=this.B=this.C=this.b=null;this.g=window.NaN};
Fba=function(a,b){a.C=b};
$A=function(a){var b;if(b=!a.o&&null!==a.b)b=a.b,b=b.b.$g(b);return b&&!a.A&&!(a.b&&30<a.b.startTime-a.F.getCurrentTime())};
cB=function(a){a.isDisposed();var b;b=a.b;b=b.b.kk(b);if(!a.D.contains(b.b[0].A)){var c=aB(bB(b));a.A=fk(c,{format:"RAW",Cc:y(a.H,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.b[0].A,e=Ab(c.ra,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ra[e-1]&&e<c.ra.length&&1==c.ra[e]-d?(pb(c.ra,e),pb(c.ra,e-1)):0<e&&1==d-c.ra[e-1]?c.ra[e-1]=d:e<c.ra.length&&1==c.ra[e]-d?c.ra[e]=d:(wb(c.ra,e,0,d),wb(c.ra,e+1,0,d)))}a.b=cb(b.b)};
Gba=function(a){a.g=Yi(y(function(){$A(this)&&cB(this)},a),1E3);
$A(a)&&cB(a)};
dB=function(a,b){WA.call(this);this.o=a;this.g=new ZA(0,b)};
eB=function(a){NA.call(this,a);this.type=1};
fB=function(a){NA.call(this,a);I(this.element,"ytp-caption-window-rollup");this.type=2;this.H=0;this.K=window.NaN;this.M=null;this.R=this.O=void 0;this.X=new he(this.LE,433,this);G(this,this.X)};
gB=function(a,b,c,d,e,f,k){fq.call(this,a,a+b,{priority:c});this.o=d;this.text=e;this.C=f||!1;this.g=k||null};
hB=function(a,b,c,d,e){fq.call(this,a,a+b,{priority:c});this.id=d;this.params=e;this.$f=[]};
iB=function(a){return new hB(0,0x8000000000000,0,"0",a||{})};
jB=function(a,b,c,d){WA.call(this,d);c||(c=Uj(a).hl||"",c=c.split("_").join("-"));this.o=Wj(a,{hl:c});this.A=b;this.C={};this.g=null};
kB=function(){this.b=[];this.g=[]};
mB=function(a){kB.call(this);this.g.push(iB());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)lB(a[b],this.b)};
lB=function(a,b){var c=a.getAttribute("t"),c=c?(0,window.parseInt)(c,10):1E3*(0,window.parseFloat)(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?(0,window.parseFloat)(d):1E3*(0,window.parseFloat)(a.getAttribute("dur")||0),e=a.getAttribute("w")||"0",f=!!a.getAttribute("append"),k=f?6:5,l=Fs("<html>"+(a.firstChild&&a.firstChild.nodeValue||"")+"</html>");nB(c,d,k,e,f,l.firstChild,{},b)};
nB=function(a,b,c,d,e,f,k,l){switch(f.tagName){case "b":k.bold=!0;break;case "i":k.Am=!0;break;case "u":k.hn=!0;break;case "font":var m=f.getAttribute("color");oB.test(m);k.color=m}for(m=0;m<f.childNodes.length;m++){var n=f.childNodes[m];if(3==n.nodeType)l.push(new gB(a,b,c,d,n.nodeValue,e||0<m,cc(k)?void 0:k));else{var t={};sa(t,k);nB(a,b,c,d,e||0<m,n,t,l)}}};
pB=function(a){kB.call(this);this.o={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=b.getAttribute("id");a:{var d=b,e=this.o[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*(0,window.parseFloat)(d.getAttribute("start")):(0,window.parseInt)(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e||(e=iB());var f={};e&&(sa(f,e.params),e=e.params.La)&&(f.La={},sa(f.La,
e));d.getAttribute("rc")&&(f.Gh=(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.Fp=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),f.xi=0>e||8<e?7:e);d.getAttribute("ah")&&(f.pj=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.Sj=(0,window.parseInt)(d.getAttribute("av"),10));d.getAttribute("vs")&&(f.isVisible=!!d.getAttribute("vs"));d.getAttribute("ju")&&(f.textAlign=(0,window.parseInt)(d.getAttribute("ju"),
10));d.getAttribute("pd")&&(f.Qg=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(f.Qg=0));d.getAttribute("bc")&&(f.La||(f.La={}),f.La.backgroundColor=d.getAttribute("bc"));d.getAttribute("bo")&&(f.La||(f.La={}),f.La.kd=(0,window.parseInt)(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(f.La||(f.La={}),f.La.color=d.getAttribute("fc"));d.getAttribute("sd")&&(f.IG=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||
0x8000000000000;d=d.getAttribute("id")||"0";b=new hB(b,e,0,d,f)}else b=null}this.o[c]=b;this.g.push(b);break;case "text":for(c=this.b.length,lB(a,this.b);c<this.b.length;c++)b=this.b[c],(f=this.o[b.o])&&f.$f.push(b)}a=a.nextSibling}0==this.g.length&&this.g.push(iB())};
xB=function(a,b){kB.call(this);a.firstChild.getAttribute("format");this.o=!!b;for(var c={Dj:{},ju:{},ku:{}},d,e,f=a.firstChild.childNodes,k=0;k<f.length;k++){var l=f[k];switch(l.tagName){case "head":d=l;break;case "body":e=l}}if(d)for(d=d.childNodes,f=0;f<d.length;f++){var m=d[f];switch(m.tagName){case "pen":var l=m.getAttribute("id"),k=c.Dj,n=c,t=m,m={},u=t.getAttribute("p");u&&sa(m,n.Dj[u]);n=qB(t,"b");null!=n&&(m.bold=n);n=qB(t,"i");null!=n&&(m.Am=n);n=qB(t,"u");null!=n&&(m.hn=n);n=rB(t,"et");
null!=n&&(m.he=n);n=rB(t,"of");null!=n&&(m.offset=n);n=sB(t,"bc");null!=n&&(m.background=n);n=sB(t,"ec");null!=n&&(m.yp=n);n=sB(t,"fc");null!=n&&(m.color=n);n=rB(t,"fs");void 0!=n&&0!=n&&(m.fontFamily=n);n=tB(t,"sz");void 0!=n&&(m.jg=n/100-1);n=tB(t,"bo");void 0!=n&&(m.kd=n/255);t=tB(t,"fo");void 0!=t&&(m.bf=t/255);k[l]=m;break;case "ws":k=m.getAttribute("id");c.ku[k]=uB(this,c,m);break;case "wp":k=m.getAttribute("id"),c.ju[k]=vB(c,m)}}if(e)for(d={},f=-1,e=e.childNodes,k=void 0,l=0;l<e.length;l++)switch(m=
e[l],m.tagName){case "w":t=wB(this,c,m);if(m=d[t.id])m.end=t.start;d[t.id]=t;this.g.push(t);break;case "p":var t=c,n=m,x=k,u=[],z=tB(n,"t")||0,J=tB(n,"d")||0,V=n.getAttribute("w")||"0",S=!!qB(n,"a");x&&"\n"==x.text&&!S&&(S=!0);for(var x=S?6:5,ba=t.Dj[n.getAttribute("p")],Ja=n.childNodes,db=0;db<Ja.length;db++){var Jc=Ja[db];if("s"==Jc.tagName){0<db&&(S=!0);var Kc=Jc,Jc=z,Rr=J,Sr=V,Tr=S,Xn=x,Lk=Kc.textContent?Kc.textContent:"",Mk=t.Dj[Kc.getAttribute("p")],Kc=tB(Kc,"t")||0,Jc=new gB(Jc+Kc,Rr-Kc,Xn,
Sr,Lk,Tr,Mk)}else Jc=new gB(z,J,x,V,n.textContent?n.textContent:"",S,ba);u.push(Jc)}n=u;if(0<n.length)for(k=n[n.length-1],t=d[n[0].o],t||(t=wB(this,c,m,f--),this.g.push(t)),m=0;m<n.length;m++)u=n[m],n[m].o=t.id,t.$f.push(u),this.b.push(u)}};
tB=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)};
qB=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c};
rB=function(a,b){var c=tB(a,b);if(void 0!=c)return c};
sB=function(a,b){var c=a.getAttribute(b);if(null!=c)return oB.test(c),c};
uB=function(a,b,c){var d={},e=c.getAttribute("ws");e&&sa(d,b.ku[e]);b=rB(c,"mh");null!=b&&(d.Cm=b);b=rB(c,"ju");null!=b&&(d.textAlign=b);b=rB(c,"pd");null!=b?d.Qg=b:a.o&&(d.Qg=1);a=sB(c,"wfc");null!=a&&(d.windowColor=a);c=tB(c,"wfo");void 0!=c&&(d.Ug=c/255);return d};
vB=function(a,b){var c={},d=b.getAttribute("wp");d&&sa(c,a.ju[d]);d=rB(b,"ap");null!=d&&(c.xi=d);d=tB(b,"cc");null!=d&&(c.Fp=d);d=tB(b,"ah");null!=d&&(c.pj=d);d=tB(b,"rc");null!=d&&(c.Gh=d);d=tB(b,"av");null!=d&&(c.Sj=d);return c};
wB=function(a,b,c,d){d=d||c.getAttribute("id")||"0";var e=tB(c,"t"),f=tB(c,"d")||0x8000000000000,k={};sa(k,vB(b,c));sa(k,uB(a,b,c));return new hB(e,f,0,d,k)};
BB=function(a,b){kB.call(this);this.o=iB({Cm:0});this.g.push(this.o);for(var c=a.split(Hba),d=1;d<c.length;d++){var e=c[d],f=b;if(""!=e&&!Iba.test(e)){var k=yB.exec(e);if(k&&3<=k.length){var l=zB(k[1]),k=zB(k[2])-l,e=e.substring(yB.lastIndex);yB.lastIndex=0;var f=l+f,l=k,m=e,k={},n=this.o,e=5;if(0>m.indexOf("<"))this.b.push(new gB(f,l,e,n.id,m,!1,cc(k)?void 0:k));else{m=m.split(Jba);1!=m.length&&(e=6,n="_"+Kba++,n=new hB(f,l,e,n,{}),this.g.push(n));for(var t=f,u=0;u<m.length;u++){var x=m[u];if(0==
u%2){var z=Fs("<html>"+x+"</html>"),J;z.getElementsByTagName("parsererror").length?(J=z.createElement("span"),J.appendChild(z.createTextNode(x))):J=z.firstChild;AB(this,t,l-(t-f),e,n,0<u,J,k,this.b)}else t=zB(x)}}}yB.lastIndex=0}}};
AB=function(a,b,c,d,e,f,k,l,m){switch(k.tagName){case "b":l.bold=!0;break;case "i":l.Am=!0;break;case "u":l.hn=!0}for(var n=0;n<k.childNodes.length;n++){var t=k.childNodes[n];if(3==t.nodeType)t=new gB(b,c,d,e.id,t.nodeValue,f||0<n,cc(l)?void 0:l),m.push(t),e!=a.o&&e.$f.push(t);else{var u={};sa(u,l);AB(a,b,c,d,e,!0,t,u,m)}}};
zB=function(a){a=a.split(":");for(var b=0,c=0;c<a.length;c++)b=60*b+(0,window.parseFloat)(a[c]);return 1E3*b};
Mba=function(a,b,c){if("WEBVTT"==a.substring(0,6))return new BB(a,c||0);a=Fs(a);return a&&a.firstChild?"timedtext"==a.firstChild.tagName?3==(0,window.parseInt)(a.firstChild.getAttribute("format"),10)?(b=Lba.test(b.g),new xB(a,b)):new pB(a):new mB(a):new kB};
DB=function(a){iq.call(this,a,"subtitlesModuleData");this.Na="captions";this.logEvent="cc";Jy();this.ca=!0;this.ba=!1;this.V=Q(a);this.B=null;this.J=ny(a);this.$=a;this.A={La:{}};this.C={La:{}};this.X=[];this.O={};this.R={};this.ia=this.K=this.da=!1;var b=a=this.g=this.o=this.G=this.H=null;CB(this)||(a=new he(this.kn,0,this),G(this,a),b=new he(this.hG,2E3,this),G(this,b));this.ha=a;this.la=b;this.aa=new ix(this);G(this,this.aa);this.ga=null};
CB=function(a){return"3"!=a.V.A?!1:!!a.$.app.o.Vt()};
EB=function(a,b){if(b&&a.B.captionTracks.length){var c=a.b.ai().sp;if(2==c||3==c)return!0}return 1==a.V.la||1==a.B.zo||"alwayson"==a.B.Pd("yt:cc")?!0:CB(a)||(c=pq(a,"module-enabled"),null==c)?"on"==a.B.Pd("yt:cc"):!!c};
FB=function(a){return CB(a)?!a.B.xa:a.B.captionTracks.length&&a.b.ai().Pi?!0:EB(a,!0)};
HB=function(a){a.g&&a.g==a.o.Re()&&GB(a);a.o.sj(y(a.Es,a),!0,CB(a)?"vtt":void 0,a.b.ai())};
JB=function(a){CB(a);a.o.Re()&&IB(a,a.o.Re())};
GB=function(a){a.g&&(a.g=null,CB(a)||(kq(a),a.X=[],a.g=null,a.kn()),a.o.jn())};
IB=function(a,b,c){CB(a);!b||a.g&&b.H(a.g)||(null!=c&&(a.K=c),a.F?(a.g=b,KB(a),a.Pm("control_subtitles_set_track",wz(b))):(GB(a),a.g=b,(3!=a.b.getPresentingPlayerType()||a.V.experiments.Z("legacy_control_redirecting"))&&a.o.rj(b,y(a.Fs,a)),a.b.Aa("captionschanged",wz(b))))};
NB=function(a,b,c){b.migrated=!0;var d=MB.La;a.A={};sa(a.A,MB);a.A.La={};sa(a.A.La,d);a.C={La:{}};var e=b.backgroundOverride?a.C:a.A,f=b.background||d.background;oB.test(f);e.La.background=f;e=b.colorOverride?a.C:a.A;f=b.color||d.color;oB.test(f);e.La.color=f;e=b.windowColorOverride?a.C:a.A;f=b.windowColor||MB.windowColor;oB.test(f);e.windowColor=f;e=b.backgroundOpacityOverride?a.C:a.A;f=b.backgroundOpacity;null==f&&(f=d.kd);e.La.kd=f;e=b.fontSizeIncrementOverride?a.C:a.A;f=b.fontSizeIncrement;null==
f&&(f=d.jg);e.La.jg=f;e=b.textOpacityOverride?a.C:a.A;f=b.textOpacity;null==f&&(f=d.bf);e.La.bf=f;e=b.windowOpacityOverride?a.C:a.A;f=b.windowOpacity;null==f&&(f=MB.Ug);e.Ug=f;e=b.charEdgeStyleOverride?a.C:a.A;f=b.charEdgeStyle;null==f&&(f=d.he);e.La.he=f;e=b.fontFamilyOverride?a.C:a.A;f=b.fontFamily;null==f&&(f=d.fontFamily);e.La.fontFamily=f;a.au();c&&qq(a,"display-settings",b)};
OB=function(a){var b=MB.La,b={background:b.background,backgroundOpacity:b.kd,charEdgeStyle:b.he,color:b.color,fontFamily:b.fontFamily,fontSizeIncrement:b.jg,textOpacity:b.bf,windowColor:MB.windowColor,windowOpacity:MB.Ug};a=pq(a,"display-settings");for(var c in a)null!=a[c]&&(b[c]=a[c]);return b};
PB=function(a,b,c){var d={};sa(d,pq(a,"display-settings"));sa(d,b);NB(a,d,c)};
RB=function(a){a.loaded&&(CB(a)||je(a.la),qq(a,"module-enabled",!1),GB(a),QB(a.b),a.K=!1,a.F?(KB(a),a.Pm("control_subtitles_set_track")):a.b.Aa("captionschanged",{}),CB(a)||JB(a))};
Nba=function(a){return DB.prototype.Cb(a)?new DB(a):null};
SB=function(a,b){CB(a);if(b&&!a.G){var c=iB({Qg:0});a.G=new NA(c);qw(a.b,a.G.element,4);var c=new gB(0,0,0,a.G.A.id,N("YTP_SAMPLE_SUBTITLES")),d=a.J.Ja().width,e=my(a.J,!0).height;a.G.ef(a.A,a.C,d,e,[c])}else!b&&a.G&&(a.G.dispose(),a.G=null)};
Oba=function(a,b){return a&&w(a)&&oB.test(a)?a:b};
Pba=function(a,b){return ia(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
Qba=function(a,b){if(a&&w(a)){var c=TB.indexOf(a);return-1!=c?c:b}return b};
Rba=function(a,b){if(a&&w(a)){var c=UB.indexOf(a);return-1!=c?c:b}return b};
Sba=function(a,b){return ia(a)&&!(0,window.isNaN)(a)?df(a,-2,4):b};
KB=function(a){var b={};a.g&&(b=wz(a.g));a.b.Aa("captionschanged",b)};
VB=function(a,b,c){this.errorCode=a;this.b=b;this.details=c||{}};
WB=function(a){var b,c;for(c in a){var d=(""+a[c]).replace(/[:,]/g,"_");b=(b?b+";":"")+c+"."+d}return b||""};
XB=function(a){this.b=window.Float32Array?new window.Float32Array(a):Array(a);this.g=a-1};
YB=function(a,b){a.g=(a.g+1)%a.b.length;a.b[a.g]=b};
Tba=function(){this.A=new XB(50);this.g=null;this.B=this.o=0;this.b=[]};
Uba=function(a,b){0!=a.b.length&&(b.B=a.b.length,b.F=ff(a.b,function(a,b){return a+b},0),b.D=cb(a.b),b.H=Math.min.apply(Math,a.b),b.G=Math.max.apply(Math,a.b),a.b=[])};
Vba=function(a,b){if(a.g&&!(b>=a.o&&b<a.B)){var c=a.g.Bf(b);a.o=a.g.ze(c);a.B=a.o+a.g.hf(c);c=D()/1E3-ZB(a.g,c);YB(a.A,c);a.b.push(c)}};
$B=function(a){this.B=Math.exp(Math.log(.5)/a);this.g=this.A=0};
aC=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
bC=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};
cC=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};
dC=function(a,b){var c=cC(a,b);return 0<=c?a.end(c):window.NaN};
eC=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
fC=function(a,b){var c=dC(a,b);return 0<=c?c-b:0};
hC=function(){this.b={apiaryHost:Vi("APIARY_HOST",void 0),gp:Vi("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:Vi("GAPI_HINT_OVERRIDE"),gapiHintParams:Vi("GAPI_HINT_PARAMS",void 0),innertubeApiKey:Vi("INNERTUBE_API_KEY",void 0),innertubeApiVersion:Vi("INNERTUBE_API_VERSION",void 0),tm:Vi("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:Vi("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),wm:Vi("INNERTUBE_CONTEXT_HL",void 0),um:Vi("INNERTUBE_CONTEXT_GL",void 0),oR:Vi("XHR_APIARY_HOST",
void 0)};gC||(gC=Wba(this.b))};
Wba=function(a){return(new Fd(function(b){sj(Vi("GAPI_LOADER_URL",void 0),function(){try{q("yt.gapi.load")("client",{gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b})}catch(c){aj(c)}})})).then(function(){})};
tr=function(a,b,c){var d={},e,f=!1;0<d.timeout&&(e=Xi(function(){f||(f=!0,d.Lc&&d.Lc())},d.timeout));
Xba(a,b,c,function(a){if(!f)if(f=!0,e&&Zi(e),a)d.tb&&d.tb(a);else if(d.onError)d.onError()})};
Xba=function(a,b,c,d){var e={path:"/youtubei/"+a.b.innertubeApiVersion+"/"+b,headers:{"X-Goog-Visitor-Id":Vi("VISITOR_DATA")},method:"POST",body:ig(c)},f=y(a.g,a);gC.then(function(){f();q("gapi.client.request")(e).execute(d||r)})};
iC=function(a,b,c){var d={};d.eventTimeMs=Math.round(c||Dq());d[a]=b;pr.log_event=pr.log_event||[];a=pr.log_event;a.push(d);rr.log_event=hC;20<=a.length?vr():ur()};
jC=function(a,b){this.version=a;this.args=b};
Yba=function(a){if(!a.ff){var b={};a.call(b);a.ff=b.version}return a.ff};
Zba=function(a,b){function c(){a.apply(this,b.args)}
if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=Yba(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}};
kC=function(a,b){this.topic=a;this.b=b};
$ba=function(a){var b=lC,c=mC();c&&c.publish.call(c,b.toString(),b,a)};
aca=function(a,b){var c=lC,d=mC();if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var f=function(){if(nC[e])try{if(k&&c instanceof kC&&c!=d)try{k=Zba(c.b,k)}catch(m){throw m.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+m.message,m;}a.call(b||window,k)}catch(m){aj(m)}};
oC[c.toString()]?lx()?mx(f,void 0):Xi(f,0):f()}});
nC[e]=!0;pC[c.toString()]||(pC[c.toString()]=[]);pC[c.toString()].push(e);return e};
rC=function(a,b){var c=aca(function(d){a.apply(b,arguments);qC(c)},b);
return c};
qC=function(a){var b=mC();b&&(ia(a)&&(a=[a]),E(a,function(a){b.unsubscribeByKey(a);delete nC[a]}))};
mC=function(){return q("yt.pubsub2.instance_")};
sC=function(a){jC.call(this,1,arguments);this.b=a};
uC=function(a){tC&&tC.measure&&tC.measure("measure_above_the_fold",a?a:"navigationStart")};
zC=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;tC.mark&&(bca.test(d)||(d="mark_"+d),tC.mark(d))}var d=vC(c),e=b||Dq();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;wC(c)["tick_"+a]=b;Pj("csi_on_gel")?(d=xC(c),"_start"==a?iC("latencyActionBaselined",{clientActionNonce:d},b):iC("latencyActionTicked",{tickName:a,clientActionNonce:d},b),a=!0):a=!1;a||yC(c)};
BC=function(a,b){AC("yt_sts",a,b);zC("_start",void 0,b)};
CC=function(a,b){var c=vC(b);return a in c};
AC=function(a,b,c){var d=DC(c).info[a]=b;wC(c)["info_"+a]=d;Pj("csi_on_gel")&&(a in EC?(b={},a=EC[a],kb(cca,a)&&(d=!!d),b[a]=d,c=xC(c),b.clientActionNonce=c,iC("latencyActionInfo",b)):aj(Error("Unknown label "+a+" logged with GEL CSI.")))};
HC=function(a){FC(a);dca();GC(!1,a)};
KC=function(a,b){a:if(!IC(a)){if(!Pj("send_empty_timing")){var c=Vi("CSI_SERVICE_NAME","youtube");if(!Vi((a||"")+"TIMING_ACTION",void 0)||!c)break a}zC("aa",void 0,a);AC("ap",1,a);AC("yt_fss","c",a);JC(a)}HC(a);Ui(a+"TIMING_AFT_KEYS",b);Ui(a+"TIMING_ACTION",a);BC("c",a);g.ca("yt.timing."+(a||"")+"ready_",!0,void 0);yC(a)};
LC=function(a){var b=vC(a);if(b.aft)return b.aft;a=Vi((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};
JC=function(a){var b=vC(a),c=DC(a).info,d=b._start,e;for(e in b)if(va(e,"_")&&fa(b[e])){var f=e.slice(1);if(f in eca){var k=Ki(b[e],function(a){return Math.round(a-d)});
c["all_"+f]=k.join()}delete b[e]}f=!!c.ap;if(k=q("yt.timing.reportbuilder_")){if(k=k(b,c,a))MC(k,f),HC(a)}else{var l=Vi("CSI_SERVICE_NAME","youtube"),k={v:2,s:l,action:Vi((a||"")+"TIMING_ACTION",void 0)},m=c.srt;delete c.srt;void 0===b.srt&&(m||0===m||(m=tC.timing||{},m=Math.max(0,m.responseStart-m.navigationStart),(0,window.isNaN)(m)&&c.pt&&(m=c.pt)),m||0===m)&&(c.srt=Math.round(m));if(c.h5jse){var n=window.location.protocol+q("ytplayer.config.assets.js");(n=tC.getEntriesByName?tC.getEntriesByName(n)[0]:
null)?c.h5jse=Math.round(c.h5jse-n.responseEnd):delete c.h5jse}b.aft=LC(a);fca(a)&&"youtube"==l&&(AC("yt_lt","hot_bg",a),l=b.vc,n=b.pbs,delete b.aft,c.aft=Math.round(n-l));for(var t in c)"_"!=t.charAt(0)&&(k[t]=c[t]);b.ps=Dq();c={};t=[];for(e in b)"_"!=e.charAt(0)&&(l=Math.round(b[e]-d),c[e]=l,t.push(e+"."+l));k.rt=t.join(",");(b=q("ytdebug.logTiming"))&&b(k,c);Pj("navigation_only_csi_reset")||HC(a);MC(k,f,a);$ba(new sC(c.aft+(m||0)))}};
yC=function(a){if(!IC(a)||!Pj("navigation_only_csi_reset")&&!a){var b=Vi((a||"")+"TIMING_ACTION",void 0),c=vC(a);if(q("yt.timing."+(a||"")+"ready_")&&b&&c._start&&LC(a))if(a)JC(a);else{var b=!0,d=Vi("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&JC(a)}}};
MC=function(a,b,c){if(Pj("debug_csi_data")){var d=q("yt.timing.csiData");d||(d=[],g.ca("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,"")||Yp(a,void 0)}catch(f){Yp(a,void 0)}else Yp(a);GC(!0,c)};
xC=function(a){var b=DC(a).nonce;b||(b=hr(),DC(a).nonce=b);return b};
vC=function(a){return DC(a).tick};
wC=function(a){a=DC(a);"gel"in a||(a.gel={});return a.gel};
DC=function(a){return q("ytcsi."+(a||"")+"data_")||FC(a)};
FC=function(a){var b={tick:{},info:{}};g.ca("ytcsi."+(a||"")+"data_",b,void 0);return b};
IC=function(a){return!!q("yt.timing."+(a||"")+"pingSent_")};
GC=function(a,b){g.ca("yt.timing."+(b||"")+"pingSent_",a,void 0)};
fca=function(a){var b=vC(a),c=b.pbr,d=b.vc,b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==DC(a).info.yt_pvis};
gca=function(){switch(Vh("visibilityState",window.document)){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
hca=function(a,b){this.b=a;this.g=b;this.o=1};
QC=function(a,b,c,d){d/=a.o;var e=NC(a.b)+1/OC(a.b),f;f=Math.max(.9*(d-3),PC(a.b)+8192*e);c=f/e*a.g.Ca/(b+c);c=Math.min(c,d);c=Math.max(a.g.na,Math.min(a.g.qa,c));return Math.min(a.g.C,Math.max(65536,Math.ceil(c*b)))};
RC=function(a){var b=OC(a.b);if(a.g.da)return b;a=1E-9+PC(a.b)+1048576*NC(a.b);return b*Math.min(1,1048576/(b*a))};
SC=function(a){return RC(a)/a.o};
TC=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
ica=function(a,b,c,d){this.R=a;this.F=b;this.C=c;this.G=d;this.o=this.J=this.b=null;this.B="i";this.K=-1;this.D=this.A=null;this.g=[];this.M=this.O=0;this.aa=null;this.H=!1};
jca=function(a,b,c){"m"==c&&a.b.isLocked()&&!b.isLocked()&&(c="a");a.H=a.H||!1;if("m"==c&&b.isLocked())return a.B=c,UC(a,b),VC(a),a.o=WC(a),new TC(XC(a),a.o,c);var d;d=a.b;d=d.g==b.g&&d.b==b.b&&d.o==b.o;if("m"==a.B&&a.b.isLocked()&&d)return null;"r"!=c||d||(a.K=-1);UC(a,b);b=WC(a);if("r"==c&&b==a.o){if(d)return null;a.o=b;return new TC(XC(a),b,c)}a.B=c;YC(a);return null};
ZC=function(a){return!!a.M&&9E4>=Dq()-a.M};
XC=function(a){$C(a);return a.A};
WC=function(a){$C(a);return a.D};
YC=function(a){a.o&&a.D&&aD(a,a.o.info)<aD(a,a.D.info)&&(a.H=a.H||a.D.info.video.width>1.6*a.o.info.video.width||"r"==a.B)};
bD=function(a){var b=a.B;a.B="a";a.K=Dq();a.H=!1;return new TC(a.J,a.o,b)};
$C=function(a){if(!(!a.b.isLocked()&&-1<a.K&&8E3>Dq()-a.K)){a.M&&!ZC(a)&&(a.M=0,UC(a,a.b));VC(a);var b=SC(a.R);if(a.b.isLocked())a.D=a.C.b[a.g[a.g.length-1].id];else{for(var c=Math.min(a.O,a.g.length-1),d=b/a.F.A-aD(a,a.A.info);0<c&&!(aD(a,a.g[c])<=d);c--);for(b=b/a.F.g-aD(a,a.A.info);c<a.g.length-1&&!(aD(a,a.g[c+1])>=b);c++);a.O=c;a.D=a.C.b[a.g[c].id];YC(a)}}};
UC=function(a,b){a.b=b;var c=a.G.videoInfos;if(!a.b.isLocked()&&(c=ne(c,function(a){return aD(this,a)>this.F.D?!1:!this.C.b[a.id].A},a),ZC(a))){var c=ne(c,function(a){return a.id!=this.aa.id},a),d=ne(c,function(a){a=Iu(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.G.videoInfos);d=ne(c,b.A,b);d.length||(d=[c[0]]);d.sort(y(function(a,b){return aD(this,a)-aD(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(pb(d,c),c--):aD(a,e)*a.F.g>aD(a,f)&&(pb(d,c-1),c--)}a.g=d;Eba(a.F,d[d.length-1].video.Om)};
kca=function(a,b){if(b)a.A=a.C.b[b];else{var c=fb(a.G.b,function(a){return!!a.Wb&&a.Wb.isDefault}),c=c||a.G.b[0];
a.A=a.C.b[c.id]}VC(a)};
VC=function(a){if(!a.A.info.Wb&&(a.A=a.C.b[a.G.b[0].id],1<a.G.b.length)){var b;if(a.b.isLocked())b=240>a.b.b;else{for(b=0;b+1<a.g.length&&"tiny"==a.g[b].video.quality;)b++;var c=SC(a.R)/a.F.g;b=aD(a,a.A.info)+aD(a,a.g[b])>c}b&&(a.A=a.C.b[a.G.b[1].id])}};
lca=function(a){var b=a.F.A,c=SC(a.R)/b-aD(a,a.A.info),b=gb(a.g,function(a){return aD(this,a)<c},a);
0>b&&(b=0);a.O=b;a.D=a.C.b[a.g[b].id]};
aD=function(a,b){return a.F.Ha&&b.A?b.A:b.b};
mca=function(){this.b=this.g=0;this.o=[]};
cD=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
dD=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
eD=function(a){a=a.split("-");return 2==a.length&&(a=new dD((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};
fD=function(a,b){return new dD(a,a+b-1)};
gD=function(){this.b=this.g=!1};
hD=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};
iD=function(a,b,c){this.be=a;this.durationSecs=b;this.context=c};
nca=function(a){this.b=a;this.o=(0,window.parseInt)(this.b["Sequence-Number"],10)||0;this.ingestionTime=((0,window.parseInt)(this.b["Ingestion-Walltime-Us"],10)||0)/1E6;this.B="T"==this.b["Overlayed-With-Slate"];this.A="T"==this.b["Stream-Finished"];this.g="T"==this.b.Streamable};
nD=function(a,b,c){var d=jD(a,0,1836019558);if(!d)return null;var e=jD(a,d.offset+8,1835427940),f=jD(a,d.offset+8,1953653094);if(!e||!f)return null;var k=jD(a,f.offset+8,1952868452),l=jD(a,f.offset+8,1953658222),m=jD(a,f.offset+8,1952867444);if(!k||!l||!m)return null;var n=jD(a,f.offset+8,1935763823);a=jD(a,f.offset+8,1935763834);if(n){var t=kD(n),f=kD(n);if(0!=t||1!=f)return null;t=kD(n)}for(var u=kD(k),x=kD(k),z=u&2,J=u&1?oca(k):0,V=z?kD(k):0,S=u&8?kD(k):0,f=u&16?kD(k):0,ba=u&32?kD(k):0,u=kD(l),
Ja=u&1,db=u&4,Jc=u&256,k=u&512,Kc=u&1024,Rr=u&2048,u=kD(l),Sr=Ja?kD(l):0,Tr=db?kD(l):0,Ja=[],Xn=[],Lk=[],Mk=[],Qx=0,af=0,yc=0;yc<u;yc++){var JF=Jc?kD(l):S;k&&Ja.push(kD(l));var lg=ba;db&&0==yc?lg=Tr:Kc&&(lg=kD(l));Xn.push(lg);lg=Rr?kD(l):0;0==yc&&(Qx=lg);Lk.push(af+lg);Mk.push(yc);af+=JF}1<=Math.abs(af-b)&&c({flaw:"segDurMismatch",dts:af.toFixed(),seg:b.toFixed()});Cb(Mk,function(a,b){return Lk[a]-Lk[b]});
c=[];for(yc=0;yc<u;yc++)c[Mk[yc]]=yc;af=z?4:0;yc=16*u;S=68+af+m.size+yc+(n?n.size:0)+(a?a.size:0);d=S-d.size;l=new rca(S);lD(l,S);lD(l,1836019558);mD(l,e);lD(l,S-24);lD(l,1953653094);lD(l,16+af);lD(l,1952868452);lD(l,131072|(z?2:0));lD(l,x);z&&lD(l,V);mD(l,m);lD(l,20+yc);lD(l,1953658222);lD(l,16781057);lD(l,u);lD(l,J+Sr+d);for(yc=af=0;yc<u;yc++)m=c[yc],e=Math.round(b*m/u),m=Math.round(b*(m+1)/u)-e,lg=e-af+Qx,lD(l,m),lD(l,k?Ja[yc]:f),lD(l,Xn[yc]),lD(l,lg),af+=m;n&&(lD(l,n.size),lD(l,1935763823),lD(l,
0),lD(l,1),lD(l,t+d));a&&mD(l,a);return l.data.buffer};
qD=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);return(a=oD(a,1836476516))?pD(a):window.NaN};
jD=function(a,b,c){for(;rD(a,b);){var d=sD(a,b);if(d.type==c)return d;b+=d.size}return null};
oD=function(a,b){for(var c=0;rD(a,c);){var d=sD(a,c);if(d.type==b)return d;c=tD(d.type)?c+8:c+d.size}return null};
vD=function(a){return a.data.getUint8(a.offset+8)?uD(a.data,a.offset+12):a.data.getUint32(a.offset+12)};
sD=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new wD(a,b,c,d)};
pD=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
xD=function(a){return a.data.getUint32(a.offset+16)};
uD=function(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)};
rD=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};
tD=function(a){return 1836019558==a||1836019574==a||1953653094==a};
wD=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.b=8};
kD=function(a){var b=a.data.getInt32(a.offset+a.b);a.b+=4;return b};
yD=function(a){var b=a.data.getUint32(a.offset+a.b);a.b+=4;return b};
oca=function(a){var b=uD(a.data,a.offset+a.b);a.b+=8;return b};
zD=function(a){var b,c=[];do b=a.data.getUint8(a.offset+a.b),c.push(b),a.b++;while(0!=b);c.pop()};
rca=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.b=0};
lD=function(a,b){a.data.setInt32(a.b,b);a.b+=4};
mD=function(a,b){for(var c=0;c+4<=b.size;)lD(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.b++,b.data.getUint8(b.offset+c++))};
AD=function(a){return(a=jD(a,0,1836019558))?a.offset+a.size:null};
BD=function(a,b){for(var c=jD(a,0,b);c;)a.setUint32(c.offset+4,1936419184),c=jD(a,c.offset+c.size,b)};
CD=function(a,b){this.g=a;this.b=0;this.o=b||0};
ED=function(a){var b=DD(a,!0),c=a.g.byteOffset+a.b,c=new window.DataView(a.g.buffer,c,Math.min(b,a.g.buffer.byteLength-c)),c=new CD(c,a.o+a.b);a.b+=b;return c};
GD=function(a){for(var b=DD(a,!0),c=FD(a),d=1;d<b;d++)c=256*c+FD(a);return c};
HD=function(a){var b=DD(a,!0);a.b+=b};
JD=function(a){var b=a.b;a.b=0;var c=!1;ID(a,440786851)&&(a.b=0,ID(a,408125543)&&(c=!0));a.b=b;return c};
KD=function(a){var b=a.b;a.b=0;var c=1E6;ID(a,408125543)&&(DD(a,!0),ID(a,357149030)&&(DD(a,!0),ID(a,2807729)&&(c=GD(a))));a.b=b;return c};
sca=function(a,b){var c=a.b;a.b=0;if(!LD(a)||!ID(a,160))return a.b=c,window.NaN;DD(a,!0);if(!ID(a,161))return a.b=c,window.NaN;var d=DD(a,!0);FD(a);var e=FD(a)<<8|FD(a);a.b+=d-3;if(!ID(a,155))return a.b=c,window.NaN;d=GD(a);a.b=c;return(e+d)*b/1E9};
LD=function(a){if(JD(a)){if(!ID(a,408125543))return!1;DD(a,!0)}if(!ID(a,524531317))return!1;DD(a,!0);return!0};
ID=function(a,b){if(a.b>=a.g.byteLength)return!1;for(;DD(a,!1)!=b;)if(HD(a),a.b>=a.g.byteLength)return!1;return!0};
DD=function(a,b){var c=FD(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+FD(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+FD(a),e*=128;return b?c-e:c};
FD=function(a){return a.g.getUint8(a.b++)};
MD=function(a,b){uk.call(this);this.o=0;this.A=a;this.b=[];this.g=null;this.C=b;this.D=this.B=null;this.F=y(function(a){this.A.F&&(this.Y("timestamprewrite",a),this.A.F=!1)},this)};
ND=function(a){return a.b.length?a.b[0]:null};
OD=function(a){return a.b.length?a.b[a.b.length-1]:null};
uca=function(a,b){var c=tca(a,b);E(c,function(a){this.b.push(a)},a);
return ff(c,function(a,c){return c.b==b.b?a:a+c.g.length},0)};
vca=function(a){return Wh(a.b,function(a){return a.info.C})};
wca=function(a,b){if(b){var c=eb(a.b,function(a){return a.info.C});
-1!=c&&(a.b=vb(a.b,0,c+1))}else a.b=[]};
xca=function(a){if(!a.b.length)return 0;for(var b=a.b[0].g.length,c=1;c<a.b.length;c++)a.b[c].b!=a.b[c-1].b&&(b+=a.b[c].g.length);a.g&&(b+=a.g.g.length);return b};
yca=function(a){return Ki(a.b,function(a){return a.info})};
tca=function(a,b){if(!b.verify()||b.info.b.ym()){var c=PD(b.info);c.verification="1";a.Y("error",c||{})}if(QD(a,b)){c=RD(b);if(c=jD(c,0,1701671783)){zD(c);zD(c);yD(c);yD(c);yD(c);yD(c);var d=new window.Uint8Array(new window.ArrayBuffer(c.size-c.b)),e=new window.Uint8Array(c.data.buffer,c.offset+c.b,c.size-c.b);d.set(e);c.b=c.size;c=String.fromCharCode.apply(String,new window.Uint8Array(d.buffer));c=(c=hD(c))?new nca(c):null}else c=null;b.o=c;b.o&&(b.info.A=b.o.o,b.info.F=b.o.A)}a.A.jb&&QD(a,b)&&BD(RD(b),
1701671783);if(a.A.R){a.C.ld()||(c=null===a.B?b.info.startTime:a.B,SD(b,c)?a.B=c+TD(b):(c=PD(b.info),c.smst=1,a.Y("error",c||{})));if(!a.C.ld()&&(0==b.info.g||a.g)&&1==b.info.b.info.g&&3==b.info.type&&!UD(b)&&b.info.duration&&(a.o+=1E3*(TD(b)-b.info.duration),a.D&&25<=Math.abs(a.o-a.D.o))){c=(a.D.o-a.o)/1E3;d=TD(b)+c;e=d*VD(b);if((e=WD(a,b,e))&&e.length){var f=PD(b.info);f.fds=d.toFixed(3);f.com=a.o.toFixed(3);a.Y("timestamprewrite",f);a.B+=c;a.o+=1E3*c}return e?e:XD(a,b)}if(a.A.aa&&a.C.ld()&&(0==
b.info.g||a.g)&&1==b.info.b.info.g)return c=b.info.b.index.Ri(b.info.A),(c=WD(a,b,c))?c:XD(a,b)}return[b]};
QD=function(a,b){return!a.C.ld()&&3==b.info.type&&1==b.info.b.info.g&&0==b.info.g};
XD=function(a,b){if(a.g&&a.g!=b){var c=[a.g,b];a.g=null;return c}return[]};
WD=function(a,b,c){var d;if(a.g){d=a.g;var e=new window.Uint8Array(d.range.length+b.range.length);e.set(new window.Uint8Array(d.b,d.range.start,d.range.length));e.set(new window.Uint8Array(b.b,b.range.start,b.range.length),d.range.length);d=new window.DataView(e.buffer);AD(d)}else d=RD(b),d=(e=AD(d))&&e<d.byteLength?d:null;if(!d)return a.g=b,null;(c=nD(d,c,a.F))?(d=AD(d),a.g&&(d-=a.g.range.length,a.g=null),a=YD(b,d),a[0].b=c,a[0].range=fD(0,c.byteLength),a[0].g=fD(0,c.byteLength)):a=null;return a};
ZD=function(a,b){this.ea=a;this.g=b;this.B=[];this.o=new MD(a,b);this.A=this.b=null;this.C=0;this.R=b.info.b;this.K=this.M=!1;this.J=new gD;this.D=null;this.F=0;this.H=b.Mn();this.G=-1};
aE=function(a,b){a.B.push(b);a.b=cb(b.info.b);a.C+=$D(b)};
eE=function(a){for(;a.B.length&&6==a.B[0].state;)bE(a,a.B.shift());a.B.length&&cE(a.B[0])&&!dE(a.B[0].info.b[0])&&bE(a,a.B[0])};
bE=function(a,b){if(!b.O&&b.o){var c;c=a.C;b.O=!0;c=c-fE(b.info)+$D(b);a.C=c}if(cE(b)){c=b.o;var d=c.o;c.o=[];c.A=cb(d).info;E(d,a.aa,a)}};
gE=function(a){return!(!a.o.b.length||1!=ND(a.o).info.b.info.g||0!=ND(a.o).info.g)};
hE=function(a){var b=RD(ND(a.o)),c=AD(b);return(!c||c>b.byteLength)&&1==a.o.b.length};
jE=function(a,b,c){hE(a);var d=ND(a.o);a=iE(a);if(!a)return null;c=c||d.info.b.index.Ri(d.info.A);return(b=nD(a,c,b))?b:null};
lE=function(a){var b=ND(a.o),c=iE(a);if(c&&(c=AD(c)))if(c>RD(b).byteLength){var d=a.o.b[1];kE(a,b.range);kE(a,fD(d.range.start,c-b.range.length))}else kE(a,fD(b.range.start,c))};
iE=function(a){var b=ND(a.o),c=RD(b),d=AD(c);if(!d||d>c.byteLength){d=a.o.b[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.b,b.range.start,b.range.length));a.set(new window.Uint8Array(d.b,d.range.start,d.range.length),b.range.length);d=AD(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c};
kE=function(a,b){for(var c=a.o,d=[],e;c.b.length;){if(c.b[0].range.end>b.end){var f=YD(c.b[0],b.end-c.b[0].range.start+1);e=f[0];c.b[0]=f[1]}else e=c.b.shift();d.push(e);if(e.range.end==b.end)break}d.length&&(E(d,a.ba,a),c=cb(d),a.o.b.length&&c.b==ND(a.o).b||(a.C-=c.g.length))};
oE=function(a,b){var c=mE(a,b);if(0<=c)return c;a.b=a.g.rg(b).b[0];nE(a)&&(a.A=null);a.o.B=null;a.D=null;a.F=0;return a.b.startTime};
zca=function(a,b){var c=a.o.b.length?OD(a.o):a.A;if(b&&c&&!c.C){for(var d=c.A,c=[],e=0;e<a.B.length;e++){var f=a.B[e];Wh(f.info.b,function(a){return a.A==d})?c.push(f):a.O(f)}a.B=c;
a.b=a.B.length?cb(cb(a.B).info.b):null}else pE(a)};
Aca=function(a){a.C=0;E(a.B,function(a){this.C+=$D(a)},a);
a.C+=xca(a.o)};
qE=function(a,b){var c=!!a.g.info.video&&!!a.A&&!a.A.C,d=1<=b&&c;wca(a.o,d);a.M=d;zca(a,2<=b&&c);Aca(a)};
rE=function(a){a.J.g||a.J.start();qE(a,0);nE(a)&&(a.A=null)};
nE=function(a){return!!a.A&&a.A.F};
sE=function(a){var b=[];a.A&&b.push(a.A);b=sb(b,yca(a.o));E(a.B,function(a){E(a.info.b,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.b&&!Bca(a.b,cb(b))&&b.push(a.b);return b};
tE=function(a){if(!a.b||!a.b.o)return!1;a=sE(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].B-a[b-1].D)))return!1;return!0};
mE=function(a,b){if(tE(a)){var c;a:{c=sE(a);for(var d=0;d<c.length;d++)if(c[d].B<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN};
uE=function(a){return Wh(a.B,function(a){return 4<=a.state})};
vE=function(a){return!(!a.b||!a.g.Zc()||a.b.b==a.g)};
wE=function(a){return vE(a)&&a.b.b.info.b<a.g.info.b};
pE=function(a){E(a.B,a.O,a);a.B=[];a.b=null};
xE=function(a){return!!a.b&&-1!=a.b.A&&a.b.A<a.g.index.og()};
yE=function(a){if(a.b){var b=OD(a.o);b&&3==b.info.type&&b.info.A>a.b.A&&(a.b=b.info)}};
zE=function(a,b,c,d,e,f,k,l,m){this.b=b;this.range=c;this.type=a;this.A=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.g=k||0;this.o=0<=l?l:this.range?this.range.length:window.NaN;this.F=!!m;this.range?(this.C=this.g+this.o==this.range.length,this.B=this.startTime+this.duration*this.g/this.range.length,this.G=this.duration*this.o/this.range.length):(this.C=0!=this.o,this.B=this.startTime,this.G=this.duration);this.D=this.B+this.G};
Bca=function(a,b){return!(!b||b.b!=a.b||b.type!=a.type||(a.range&&b.range?b.range.end!=a.range.end:b.range!=a.range)||b.A!=a.A||b.g+b.o!=a.g+a.o)};
dE=function(a){return 1==a.type||2==a.type};
AE=function(a,b){return a.b==b.b&&a.range.start+a.g+a.o==b.range.start+b.g};
Cca=function(a){1==a.length||Xk(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new dD(a[0].range.start+a[0].g,b.range.start+b.g+b.o-1)};
BE=function(a){var b="";Pb(PD(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
PD=function(a){var b={};b.itag=Iu(a.b.info);b.seg=a.A;a.range&&(b.range=""+(a.range.start+a.g)+"-"+(a.range.start+a.g+a.o-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.G).toFixed(1);return b};
CE=function(a,b,c,d,e){this.info=a;this.b=b;this.range=c;this.o=null;this.g=d;this.B=e};
RD=function(a){return a.range?new window.DataView(a.b,a.range.start,a.range.length):new window.DataView(a.b)};
YD=function(a,b){b=Math.min(b,a.info.o);var c=fD(a.range.start,b);return[new CE(new zE(a.info.type,a.info.b,a.info.range,a.info.A,a.info.startTime,a.info.duration,a.info.g,b,!1),a.b,c,a.g,a.B),new CE(new zE(a.info.type,a.info.b,a.info.range,a.info.A,a.info.startTime,a.info.duration,a.info.g+b,a.info.o-b,a.info.F),a.b,new dD(c.end+1,a.range.end),a.g,!1)]};
SD=function(a,b){if(1==a.info.b.info.g){for(var c=a.info.b.b,d=new window.DataView(a.b),e=window.NaN,f=window.NaN,k=0;rD(d,k);){var l=sD(d,k);(0,window.isNaN)(e)&&(1936286840==l.type?e=xD(l):1836476516==l.type&&(e=pD(l)));if(1952867444==l.type){!e&&c&&(e=qD(c));var m=vD(l);(0,window.isNaN)(f)&&(f=b*e-m);var n=l,m=m+f;if(n.data.getUint8(n.offset+8)){var t=n.data,n=n.offset+12;t.setUint32(n,Math.floor(m/4294967296));t.setUint32(n+4,m&4294967295)}else n.data.setUint32(n.offset+12,m)}k=tD(l.type)?k+8:
k+l.size}return!0}e=new CD(new window.DataView(a.info.b.b.buffer));c=new CD(new window.DataView(a.b));d=b;f=KD(e);e=c.b;c.b=0;if(LD(c)&&ID(c,231))if(k=DD(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.g.setUint8(c.b+f,d&255),d>>>=8;c.b=e;c=!0}else c=!1;return c};
TD=function(a){var b;if(1==a.info.b.info.g){for(var c=b=0,d=new window.DataView(a.b);rD(d,b);){var e=sD(d,b);if(1936286840==e.type){var f=xD(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=tD(e.type)?b+8:b+e.size}b=c||window.NaN;if(!(0<=b))a:{b=a.info.b.b;for(var c=0,d=new window.DataView(a.b),m,f=0;rD(d,c);){e=sD(d,c);if(1836476516==e.type)m=pD(e);else if(1836019558==e.type){!m&&b&&(m=qD(b));if(!m){b=window.NaN;
break a}l=e;k=m;var n=jD(l.data,l.offset+8,1953653094),t=jD(l.data,n.offset+8,1952868452),l=jD(l.data,n.offset+8,1953658222),n=kD(t);kD(t);n&2&&kD(t);var t=n&8?kD(t):0,u=kD(l),x=u&1,n=u&4,z=u&256,J=u&512,V=u&1024,u=u&2048,S=yD(l);x&&kD(l);n&&kD(l);for(var ba=x=0;ba<S;ba++){var Ja=z?kD(l):t;J&&kD(l);n&&0==ba||!V||kD(l);u&&kD(l);x+=Ja}f+=x/k}c=tD(e.type)?c+8:c+e.size}b=f||window.NaN}}else m=new CD(new window.DataView(a.info.b.b.buffer)),b=sca(new CD(new window.DataView(a.b)),KD(m));return b||a.info.G};
VD=function(a){var b;b=new window.DataView(a.b);b=(b=oD(b,1936286840))?xD(b):window.NaN;(0,window.isNaN)(b)&&(b=a.info.b.b,a=new window.DataView(a.b),b=(a=oD(a,1836476516))?pD(a):b?qD(b):window.NaN);return b};
UD=function(a){return 1==a.info.b.info.g?a.o?a.o.B&&!!jD(new window.DataView(a.b),0,1718909296):!1:JD(new CD(new window.DataView(a.b)))};
Dca=function(a,b){this.g=a;this.C=this.B=!1;this.length=b;this.b=0;this.o=[];if(1==this.g.length&&!this.g[0].range){var c=this.g[0],d=fD(0,this.length);this.g[0]=new zE(c.type,c.b,d,c.A,c.startTime,c.duration,c.g,d.length,c.F)}this.A=null};
Eca=function(a){var b=a.length-a.b;E(a.o,function(a){b+=a.range.length});
return b};
DE=function(a,b,c,d,e){this.status=0;this.D=this.response=null;this.G=d;this.B=c;this.J=e;this.g=[];this.C=null;this.A=this.b=0;this.wa=Fca++;this.H=window.NaN;this.o=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Wi(y(this.aG,this)),Wi(y(this.lk,this)));D();this.F=!1;b()};
FE=function(a){a.g.push(a.C.subarray(0,a.b));a.b=0;a.C=a.F?null:new window.Uint8Array(EE(a))};
GE=function(a){a.o.read().then(Wi(y(a.CC,a)),Wi(y(a.lk,a)));var b=D();a.H=b};
EE=function(a){a=a.mg();return Math.max(16384,.125*a)};
HE=function(a,b,c,d,e){this.status=0;this.response=null;this.g=this.o=!1;this.b=new window.XMLHttpRequest;this.b.open("GET",a);this.b.responseType="arraybuffer";this.b.withCredentials=!0;this.b.onreadystatechange=y(this.iI,this);this.A=d;this.C=c;this.B=e;a=Wi(y(this.gI,this));this.b.addEventListener("load",a,!1);this.b.addEventListener("error",a,!1);this.b.send();b();this.b.addEventListener("progress",Wi(y(this.hI,this)),!1)};
IE=function(a,b,c,d){this.A=a;this.info=b;this.timing=c;this.R=d;this.state=1;this.b=null;this.J=this.D=this.G=0;this.C=window.NaN;this.F=this.g=this.K=null;this.B=0;this.o=null;this.O=!1;this.H=null;this.aa=window.NaN;this.M=0};
KE=function(a){var b;b=a.timing;b={rt:((D()-b.o)/1E3).toFixed(2),lb:b.b,pt:(b.M/1E3).toFixed(2),pb:b.J};b.shost=a.g?JE(a.g.b):"";b.rn=a.G.toString();a.B&&(b.rc=a.B.toString());b.ml=""+ +a.info.b[0].b.Zc();410!=a.B&&500!=a.B&&503!=a.B||(b.isPotentialFormatUnavaliable="true");return b};
LE=function(a){var b=a.g?JE(a.g.b):"";b in a.R||(a.R[b]={af:0,Ut:0});return a.R[b]};
ME=function(a){a.isDisposed();if(2>a.D)a=!0;else{var b=a.info.g;a=!(a.G>b.o&&1<=b.g)}return a};
NE=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.A&&(c.A=!1)}a.K&&a.K(a)};
OE=function(a){return Xk(a.info.b,function(a){return 3==a.type})};
PE=function(a){if(a.b){var b=a.b;a.b=null;b.Su()}a=a.timing;a.A&&(a.A=!1)};
RE=function(a){var b=a.b.kf("content-type"),c=a.b.mg();return(!QE(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
cE=function(a){return 2<=a.state&&!!a.o&&!!a.o.o.length};
SE=function(a,b){QE(a)&&!a.b.mg()&&(a.A.H=!1,a.A.ga=!1);if(b||QE(a)&&!RE(a)){if(!a.o){var c=b?a.b.ol():a.b.mg();a.o=new Dca(a.info.b,c)}for(;a.b.ir();)for(var c=a.o,d=a.b.Ot(),e=0,f=0,k=0;k<c.g.length;k++){var l=c.g[k];if(e+l.o<=c.b)e+=l.o;else{var m;m=c;var n=l;1==n.type?(m.B=!0,m=!1):3==n.type||4==n.type?(n=m.B&&!m.C,m.C=!0,m=n):m=!1;var n=c.b-e,t=Math.min(l.o-n,d.length-f);c.o.push(new CE(new zE(l.type,l.b,l.range,l.A,l.startTime,l.duration,l.g+n,t,l.g+n+t==l.range.length&&l.F),d.buffer,fD(d.byteOffset+
f,t),fD(d.byteOffset,d.length),m||l.b.Uu()));m=t;c.b+=m;f+=m;e+=l.o;if(f==d.length)break}}}};
$D=function(a){return a.o&&a.O?Eca(a.o):fE(a.info)};
QE=function(a){return!!(a.A.H||a.A.ga&&a.b&&a.b instanceof DE)};
Gca=function(a,b,c,d){this.g=a;this.J=b;this.O=c;this.b=this.C=this.o=window.NaN;this.H=this.K=this.A=!1;this.B=0;this.F=this.M=window.NaN;this.D=d};
WE=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.b;a.A?!a.D&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&UE(a.g,.05,e)):UE(a.g,d,e),a.H=!0):8192<=c&&(a.D||TE(a.g,(b-a.o)/1E3),a.A=!0);VE(a.g,d,e);a.C=b;a.b=c};
XE=function(a){var b=a.J-a.b,b=1E3*(b*a.G.tailDelay+b/a.G.byterate),c=D(),b=8192<=a.b?b+c:b+Math.max(c,a.o+1E3*a.G.delay);a.F=b};
YE=function(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.b=a;this.g=e;this.startTime=b;this.range=f||null};
ZE=function(a,b,c,d){uk.call(this);this.G=a;this.A=b;this.B=c;this.g=this.o=null;this.J=new hca(a,b);this.b=null;this.D=new ica(this.J,b,this.B,d);this.C=this.da=this.O=this.ga=window.NaN;this.K=!1;this.H=window.NaN;this.ia=0;this.F=!1;this.ua={};this.R="";this.X=this.ba=0;this.ha=b.Ia?new mca:null;this.la=new $B(5);this.qa=y(function(a){this.A.F&&(this.Oc(!1,"qoe.avsync",a),this.A.F=!1)},this);
this.ca=!1;this.na={}};
bF=function(a){0==a.C&&(a.o.g.o||$E(a,a.o,!0),a.g.g.o||$E(a,a.g,!0));a.seek(a.C);aF(a,"gv")};
dF=function(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",y(a.fd,a),!1),a.b.g.removeEventListener("updateend",y(a.fd,a),!1),a.b.b.removeEventListener("error",y(a.wj,a,!0),!1),a.b.g.removeEventListener("error",y(a.wj,a,!1),!1));a.b=null;a.F=!0;cF(a)};
eF=function(a){a.b&&Lz(a.b)&&dF(a)};
fF=function(a,b,c){if(!b.J.g||!c.remove)return!1;if(c.updating)return!0;if(!b.J.b&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.J.b=!0;b.J.reset();a.Y("seekrequired");return!1};
Hca=function(a,b){a.J.o=Math.max(1,b)};
iF=function(a,b,c){if(a.F&&(!a.A.K||!gF(a.G)))return!1;if(a.B.g){if(0<b.B.length)return!1;if(b.H)return!0}if(!b.b){if(!b.g.Zc())return b.g.o||$E(a,b,!1),!1;oE(b,a.C)}var d=b.B.length+c.B.length;(uE(b)||uE(c)||a.B.isLive)&&--d;if(2<=d+1)return!1;d=b.b;4==d.type&&d.b.Zc()&&(b.b=cb(d.b.Jj(d)),d=b.b);!d.F&&!d.b.$g(d)||d.b.info.audio&&4==d.type?a=!1:wE(b)&&!a.A.J?a=!0:(!(c=d.F||b.C+c.C>a.A.M||!!(c.b&&!c.b.F&&c.b.D<d.D)&&(!a.B.g||c.b.D&&d.D))&&(c=3==d.type)&&(d=d.D,b=hF(a,b,!0),a.D.b.isLocked()||(c=(Dq()-
a.ia)/1E3,b=Math.min(b,30+a.A.ca*c)),c=d>a.C+b),a=c?!1:!0);return a};
jF=function(a,b,c){if(!a.b||Jz(a.b)||Oz(a.b)){var d=a.C,e=a.J;c=QC(e,b.g.info.b,c.g.info.b,0);e=PC(e.b)+c*NC(e.b)+c/OC(e.b);a:{d+=Math.max(e,e+5-c/b.g.info.b);a=a.D.H;if(b.B.length){if(b.B[0].info.b[0].startTime<=d)break a;pE(b)}e=b.C;c=b.o;for(var f=0,k=c.b.length-1;0<=k;k--){var l=c.b[k];l.info.startTime>d&&(c.b.pop(),c.b.length&&c.b[k-1].b==l.b||(f+=l.g.length))}b.C=e-f;b.B.length?b.b=cb(cb(b.B).info.b):b.o.b.length?b.b=OD(b.o).info:b.b=b.A;a&&b.b&&d<b.b.startTime&&(b.o.B=null,b.D=null,b.F=0,b.b=
b.g.rg(d,!0).b[0])}}};
lF=function(a,b,c){iF(a,b,c);var d=b.b;if(b.H)a.ca=!0,d=b.g.rg(window.Infinity);else if(b.b.b.Zc()){!wE(b)||a.A.J||a.B.g||(jF(a,b,c),b.b||oE(b,a.C));var d=b.b,e=d.D-a.C,f=!d.range||0==d.o&&0==d.g?0:d.range.length-(d.g+d.o);vE(b)&&(wE(b)||e<=a.A.X)&&0==f&&(a.B.g?d.b=b.g:(f=d.startTime+ZE.b,d.o&&(f+=d.duration),oE(b,f),d=b.b));d.b.ld()?(c=QC(a.J,d.b.info.b,c.g.info.b,e),e=vE(b),c=d.b.Zg(d,c),c.range&&1<c.b.length&&(e?c=d.b.Zg(d,c.b[0].o):(e=c.b[c.b.length-1],f=e.o/c.range.length,!e.C&&.4>f&&(c=d.b.Zg(d,
c.range.length-e.o)))),d=c):d=d.b.kk(d)}else d.b.ld()?(c=QC(a.J,b.g.info.b,c.g.info.b,0),d=d.b.Zg(d,c)):d=d.b.kk(d);aE(b,kF(a,d))};
kF=function(a,b){if(3==b.b[b.b.length-1].type){var c;a:{c=a.D;var d=b.b[0].b;if(d.info.video){if(c.o!=d){c.o=d;c=bD(c);break a}}else c.J=d;c=null}c&&a.Y("videoformatchange",c)}c=fE(b);var d=a.G,e=a.J,f=Math.min(2.5,PC(e.b)),e=RC(e);c=new IE(a.A,b,new Gca(d,c,c-f*e,a.A.Ga&&a.ca),a.na);d=y(a.JE,a);c.isDisposed();c.K=d;c.start(Math.max(0,b.b[0].B-a.C));return c};
mF=function(a){if((0,window.isNaN)(a.ga)){var b=y(a.fd,a);a.ga=Xi(b,0)}};
nF=function(a){if((0,window.isNaN)(a.O)){var b=y(function(){this.O=window.NaN;this.fd()},a);
a.O=Xi(b,1E3)}};
rF=function(a,b,c,d,e){if(c.updating)return!0;var f=ND(b.o);if(!f)return!1;!b.A||b.A.C||AE(b.A,f.info)||(b.A=null,Jz(a.b)&&c.abort(),c.b=null);var k=a.B.isLive&&UD(f),l=!a.B.o&&b.ea.aa&&gE(b);a.A.ua&&a.B.o&&0==f.info.g&&1==f.info.b.info.g&&(a.B.g?null!=b.A&&b.A.b==f.info.b:null!=c.b&&c.b==f.info.b.b)&&(BD(RD(f),1836019574),BD(RD(f),1718909296),f.B=!1);if(!a.B.o||0==f.info.g)if(k=k||a.B.g||f.B,l||!k){if(k=f.info.b.b,c.b==k?k=!1:(oF(a,c,k),c.b=k,a.Y("initsegment",c.b),k=c.updating),k)return!0}else c.b=
null;k=hF(a,b,!1);k=a.C+k;null!==d&&0<=d&&(k=Math.min(k,d));if(b.M)d=ND(b.o).range;else a:if(d=b.o,d.b[0].info.B>=k)d=null;else{var m;for(m=1;m<d.b.length;m++){var n=d.b[m].b!=d.b[m-1].b;if(d.b[m].info.B>k||n||d.A.aa)break}m--;m=d.b[m];var n=m.range.end,t=m.info.D-k;if(d.C.ld()&&d.C.info.audio&&0<=d.A.ea&&t>d.A.ea){k=Math.floor((k-m.info.B)/m.info.G*m.info.o);if(0==k){d=null;break a}n=m.range.start+k-1}d=new dD(d.b[0].B?0:d.b[0].range.start,n)}if(!d)return!1;if(l){if(hE(b))return!1;if(k=jE(b,a.qa))return pF(a,
c,new window.Uint8Array(k),f,b)?(lE(b),!0):!1}k=new window.Uint8Array(f.b,d.start,d.length);if(a.ha&&f.info.b.info.video&&1==f.info.b.info.g&&(m=a.ha,n=k,0==f.info.g&&(m.g=0,m.b=0,m.o=[]),!((0,window.isNaN)(m.g)||8>n.length))){for(var t=new window.DataView(n.buffer,n.byteOffset),u=!1;!u;)if(m.g==m.b)a:{var u=m,x=t,z=n.length;if(u.g+7>=z){for(var J=u.g;J<z;J++)u.o.push(x.getUint8(J));u=!0}else{if(0<u.o.length){for(J=0;8>u.o.length;J++)u.o.push(x.getUint8(J));J=cD(u.o,0);x=cD(u.o,4);u.o=[]}else J=x.getUint32(u.b),
x=x.getUint32(u.b+4);if(1836019558==x||1836019574==x||1718909296==x||1936286840==x)u.g+=J,u.b=u.g;else if(1835295092==x)u.g+=J,u.b+=8;else{u.g=window.NaN;u=!0;break a}u=u.b>=z}}else a:if(u=m,z=t,x=n.length,u.b+5>=x){for(J=u.b;J<x;J++)u.o.push(z.getUint8(J));u=!0}else{if(0<u.o.length){for(J=0;6>u.o.length;J++)u.o.push(z.getUint8(J));J=cD(u.o,0);12==J&&6==u.o[4]&&45==u.o[5]&&z.setUint8(u.b+5,63);u.b+=J+4;u.o=[]}for(;u.b<u.g&&u.b+5<x;){J=z.getUint32(u.b);if(0>=J){u.g=window.NaN;u=!0;break a}12==J&&6==
z.getUint8(u.b+4)&&45==z.getUint8(u.b+5)&&z.setUint8(u.b+5,63);u.b+=J+4}u=u.b>=x}(0,window.isNaN)(m.g)||(m.g-=n.length,m.b-=n.length)}m=!1;if(3==f.info.type&&(1==f.info.b.info.g||2==f.info.b.info.g))if(m=1==f.info.b.info.g&&a.A.Oa&&!l&&!b.K&&0==f.info.g&&0<f.info.startTime)SD(f,0);else if(a.B.o&&0==f.info.g&&!a.A.R){a:if(gE(b)&&!UD(ND(b.o))&&hE(b))e=!1;else{l=null===b.D?f.info.startTime:b.D;0==SD(f,l)?(l=PD(f.info),l.smst=1,a.Oc(!0,"fmt.unparseable",l)):(n=TD(f),b.D=l+n,a.B.g&&f.info.b.info.video&&
qF(a,f,l,n));l=0;f.info.b.info.video&&null!==e&&f.info.duration&&!a.B.g&&(n=1E3*(TD(f)-f.info.duration),e-=b.F+n,25<=Math.abs(e)&&(l=e/1E3));e=l;l=TD(f);n=l+e;e&&!UD(f)&&(t=PD(f.info),t.deltaOffsetMs=1E3*(l-f.info.duration).toFixed(3),t.cumOffsetMs=b.F.toFixed(3),t.finalDurSecs=n.toFixed(3),a.Oc(!1,"qoe.avsync",t));if(gE(b)&&!UD(ND(b.o))&&e&&0<n){if(b.F+=1E3*(l-f.info.duration+e),b.D+=e,e=jE(b,r,n*VD(f))){if(pF(a,c,new window.Uint8Array(e),f,b)){lE(b);e=!0;break a}e=!1;break a}}else b.F+=1E3*(l-f.info.duration);
e=null}if(null!=e)return e}else if(a.A.R&&a.B.g&&f.info.b.info.video){e=f.info.b.b;n=l=window.NaN;t=0;for(u=new window.DataView(f.b);rD(u,t);)z=sD(u,t),1936286840==z.type?n=xD(z):1836476516==z.type?n=pD(z):1952867444==z.type&&(0,window.isNaN)(l)&&(l=vD(z)),t=tD(z.type)?t+8:t+z.size;!n&&e&&(n=qD(e));qF(a,f,l/n||f.info.B,TD(f))}if(!pF(a,c,k,f,b))return!1;b.K=!0;m?(SD(f,f.info.startTime),c.abort(),c.b=null,BE(f.info)):(kE(b,d),BE(b.A),bC(c.buffered));f.B&&(c.b=f.info.b.b,a.Y("initsegment",c.b));return!0};
pF=function(a,b,c,d,e){b=oF(a,b,c);return 0!=b?(2!=b&&(d.info.b.info.video?(a=a.A,a.o=Math.floor(.5*a.o),a.O=Math.floor(.5*a.O),a.b=Math.floor(.5*a.b),a.C=Math.floor(.5*a.C)):(a=a.A,a.B=Math.floor(.5*a.B),a.ba=Math.floor(.5*a.ba),a.b=Math.floor(.5*a.b)),rE(e)),!1):!0};
qF=function(a,b,c,d){d=new YE(b.info.A,c,d,b.o.ingestionTime+(a.la.o()||0),"sq/"+b.info.A);var e=a.B,f=!1,k;for(k in e.b)d.b>e.b[k].index.Qb()&&(e.b[k].index.ra.push(d),f=!0);f&&(b=b.o,b=b.b["Cuepoint-Type"]?new iD((0,window.parseFloat)(b.b["Cuepoint-Playhead-Time-Sec"])||0,(0,window.parseFloat)(b.b["Cuepoint-Total-Duration-Sec"])||0,b.b["Cuepoint-Context"]):null)&&(b.be+=c,a=a.B,a.G.push(b),a.Y("cuepointsadded"))};
oF=function(a,b,c){try{Oz(a.b)?b.appendBuffer(c):b.append(c)}catch(d){return 11==d.code?(a.Oc(!1,"html5.invalidstate",{updating:""+ +b.updating,mrs:a.b.o.readyState}),2):22!=d.code&&0!=d.message.indexOf("Not enough storage")?(aj(d),4):1}return Lz(a.b)?3:0};
sF=function(a,b){b.o.subscribe("error",a.KD,a);b.o.subscribe("timestamprewrite",a.fF,a)};
hF=function(a,b,c){if(a.A.K&&a.F)return a.A.K;var d=b.g.info.audio?a.A.B:a.A.o;!a.A.J&&a.D.b.isLocked()&&(d=Math.max(d,b.g.info.audio?a.A.ba:a.A.O));c&&(d+=a.A.M);b=a.D.b.isLocked()?b.b?b.b.b.info.b:b.g.info.b:b.R;d/=b;0<a.A.b&&(d=Math.min(d,a.A.b));return d};
tF=function(a){if(a.B.isLive){if(!a.o.g.index.jf())return window.NaN;var b=a.o.g.index.og(),c=a.o.g.index.Qb(),d=a.o.g.index;return 1>a.A.liveChunkReadahead?d.ze(c)+d.hf(c)-.2:d.ze(Math.max(b,c-a.A.liveChunkReadahead+1))+.2}return Math.floor(Math.min(a.o.g.index.Yg(),a.g.g.index.Yg()))};
uF=function(a,b,c,d){if(b.g.Zc())if(d){var e=dC(d.buffered,c),f=window.NaN,k=b.A;k&&(f=dC(d.buffered,k.b.index.ze(k.A)));if(e==f&&tE(b))return c;d=mE(b,c);if(0<=d)return d;d=b.g.ld()?1:2;qE(b,d);b.g.info.video&&b.A&&!b.A.C&&!vca(b.o)&&b.g.ld()&&(d=b.A,b.o.b.length&&(d=OD(b.o).info),d=b.b||d,d=d.b.Zg(d,d.range.length-(d.o+d.g)),aE(b,kF(a,d)));if((0,window.isNaN)(e))return oE(b,c);oE(b,e+ZE.b)}else oE(b,c);else b.g.o||$E(a,b,!1),0!=c&&pE(b);return c};
vF=function(a,b,c){b.g!=c&&(b.g=c,c.o||$E(a,b,!1))};
$E=function(a,b,c){var d=c?65536:0;c&&!(0,window.isNaN)(2)&&(d=Math.min(a.A.C,Math.floor(Math.max(d,2*b.g.info.b))));c=b.g.zl(d);E(c,function(a){if("f"!=a.b[0].b.info.o){var c=kF(this,a);!dE(a.b[a.b.length-1])&&aE(b,c)}},a);
b.g.o=!0};
wF=function(a){if(!a.g.b)return"";a=JE(a.g.b.b.C.b);return a.substr(0,a.indexOf("."))};
xF=function(a){var b={lct:a.C.toFixed(3),lsk:a.K,lmf:a.D.b.isLocked(),lbw:OC(a.G).toFixed(3),lhd:PC(a.G).toFixed(3),ltd:(1E9*NC(a.G)).toFixed(3),laa:a.o.A?BE(a.o.A):"",lva:a.g.A?BE(a.g.A):"",lar:a.o.b?BE(a.o.b):"",lvr:a.g.b?BE(a.g.b):"",lvh:wF(a)};a.b&&!Lz(a.b)&&(b.lab=bC(a.b.b.buffered),b.lvb=bC(a.b.g.buffered));return b};
aF=function(a,b,c){a.ua[b]=c?window.performance.timing.navigationStart+c:Dq()};
cF=function(a){a.o&&qE(a.o,0);a.g&&qE(a.g,0)};
yF=function(a,b,c){this.b=a;this.g=b;this.B=c;this.A={};this.o=null;this.fairPlayCert=""};
AF=function(a){return!a.o&&zF()&&"com.microsoft.playready"==a.g};
BF=function(a){return!a.o&&zF()&&"com.apple.fps.1_0"==a.g};
zF=function(){var a=window.MSMediaKeys;Tp()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
DF=function(a){var b=gm&&Az("45");a=CF&&a.Z("edge_nonprefixed_eme");var c=hA&&Az("47");return window.navigator.requestMediaKeySystemAccess&&(b||a||c)};
EF=function(a,b,c,d,e){F.call(this);this.B=a;this.J=b;this.F=c;this.g=d;this.b=e;this.sessionId="";this.o=this.H=this.G=this.C=this.D=null;this.A=new ix(this);G(this,this.A);this.g?(this.A.S(this.g,"message",this.hJ),this.A.S(this.g,"keystatuseschange",this.iJ)):this.b&&(jx(this.A,this.b,["mskeymessage","webkitkeymessage"],this.qs),jx(this.A,this.b,["mskeyerror","webkitkeyerror"],this.os),jx(this.A,this.b,["mskeyadded","webkitkeyadded"],this.ms))};
Ica=function(a){var b=[];a.g.keyStatuses.forEach(function(a,d){"usable"==a&&b.push(String.fromCharCode.apply(null,new window.Uint8Array(d)))});
return b};
FF=function(a,b){F.call(this);this.g=a;this.b=b;this.C={};this.A=null;this.B=new ix(this);G(this,this.B);this.o=this.D=null};
GF=function(a){if(a.b.o)return a.b.o.createMediaKeys().then(Wi(y(function(a){this.D=a;this.g.setMediaKeys(a)},a)));
AF(a.b)?a.o=new (zF())(a.b.g):BF(a.b)?(a.o=new (zF())(a.b.g),a.g.webkitSetMediaKeys(a.o)):Jca(a);return null};
Jca=function(a){jx(a.B,a.g,["keymessage","webkitkeymessage"],a.lJ);jx(a.B,a.g,["keyerror","webkitkeyerror"],a.kJ);jx(a.B,a.g,["keyadded","webkitkeyadded"],a.jJ)};
HF=function(a,b){var c=a.C[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.sessionId=b.sessionId,a.C[b.sessionId]=c);return c};
IF=function(){this.keys=[];this.values=[]};
Kca=function(a){a.keys=[];a.values=[]};
KF=function(a,b){return gb(a.keys,function(a){return Gb(b,a)})};
Lca=function(a,b,c){this.url=a;this.interval=b;this.b=c};
Mca=function(a,b,c,d){this.b=a;this.statusMessage=b;this.headers=c;this.message=d};
MF=function(a,b,c,d,e,f){F.call(this);this.o=a;this.b=d;this.b.subscribe("oauthtoken",this.Vu,this);this.A={session_id:e};this.J=f;this.H=0;a=this.o.B;BF(this.o)&&(a=c.b.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));LF(this,a);this.C=this.D=!1;var k;try{k=b.createSession(c)}catch(l){b="t.g",l instanceof window.DOMException&&(b+=";c."+l.code),this.b.Y("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),
k=null}if(this.g=k)b=this.g,c=this.kI,k=this.jI,a=this.mI,b.D=this.lI,b.C=c,b.G=k,b.H=a,b.o=this,G(this,this.g);this.F={}};
Nca=function(a,b){this.message=a;this.number=b;this.b=!1};
LF=function(a,b){if(Oca.test(b)){for(var c in a.A)b=ch(b,c,a.A[c]);a.B=b}else NF(a,"drm.net",!0,"t.u")};
NF=function(a,b,c,d,e){a.isDisposed()||a.b.Y("licenseerror",b,c,d,e);c&&a.dispose()};
Pca=function(a,b){return Wh(a,function(a){return"HD"==b[a]})?"auto":"large"};
Qca=function(a){if(!a)return{};var b={};E(a.split(";"),function(a){a=a.split(",");2==a.length&&(b[cr(a[1])]=a[0])});
return b};
OF=function(a,b){this.b=a;this.contentType=b||null};
QF=function(a,b,c,d,e,f){uk.call(this);a.addKey||a.webkitAddKey||zF()||DF(c);this.X=c;this.D=a;this.b=b;this.aa=!!f;this.subscribe("newlicense",this.ZD,this);this.subscribe("newsession",this.$D,this);this.subscribe("sessionready",this.SE,this);this.subscribe("keystatuseschange",this.nI,this);this.R=e||ir();this.H=null;this.o=new IF;this.g=[];this.B=PF;this.G=new FF(a,b);G(this,this.G);this.A=null;AF(b)&&(this.A=new FF(a,b),G(this,this.A));this.K=2;this.F=new ix(this);G(this,this.F);this.J=!1;this.M=
null;this.C=!1;a=this.D;this.b.o?this.F.S(a,"encrypted",this.eD):jx(this.F,a,AF(this.b)?["msneedkey"]:["needkey","webkitneedkey"],this.XD);(a=GF(this.G))?a.then(Wi(y(this.JD,this)),Wi(y(this.nC,this))):this.C=!0;this.A&&GF(this.A);this.O=d};
SF=function(a,b,c){a.isDisposed()||AF(a.b)==c||a.J&&"widevine"==a.b.b&&!a.O||(a.J=!0,a.o.get(b.b)||(a.g.push(b),1<a.g.length||!a.C||a.o.set(b.b,RF(a,b))))};
RF=function(a,b){a.o.get(b.b);var c=new MF(a.b,a.G,b,a,a.R,a.aa);c.Vu(a.H);"playready"==a.b.b&&a.X.Z("playready_on_borg")&&(kc(c.A,{prob:"1"}),LF(c,c.B));return c};
TF=function(a){this.g={};this.g.c1a=y(this.B,this);this.g.c3a=y(this.C,this);this.g.c6a=y(this.A,this);(this.b=a)&&this.b.yb?this.o=Sj(this.b.yb):this.o=[]};
UF=function(a,b,c,d){this.videoData=a;this.b=b;this.reason=c;this.g=d};
Rca=function(a,b){this.V=a;this.b=b};
VF=function(a,b){return Ry(Ry(a.V.Je,b.Sa),b.Ya)};
XF=function(a,b){var c=Bu();return"auto"!=c?Oy("auto",c,!1):WF(a,b)};
WF=function(a,b){if(HA(a.V)&&eA(a.V.K,Zz))return Qy;var c;c=!!b.o.b;var d;uA(a.V)&&(d=window.screen&&window.screen.width?new lf(window.screen.width,window.screen.height):null);d||(d=a.V.Jd?a.V.Jd.clone():a.b.Ja());(rA||YF||c)&&d.scale(IA());c=d;var e;d=b.o.videoInfos;if(d.length){var f=.85;2==d[0].video.projectionType?f*=.5:3==d[0].video.projectionType&&(f*=.25);for(var k=0;k<d.length&&!(e=d[k].video,null===c||e.width*f<c.width&&e.height*f<c.height);k++);e=Oy("auto",e.quality,!1)}else e=Qy;c=e.b;
Up()&&(c=Math.max(c,Ny.hd1080));(Op("armv7")||Op("android"))&&!HA(a.V)&&ZF(b.o.videoInfos[0])&&(c=Math.min(c,Ny.large));c=Math.max(c,Ny.medium);e.b!=c&&(e=new My(e.g,c,e.o));return e};
Sca=function(){this.A=this.b=window.NaN;this.g=this.o=!1};
$F=function(a,b){a.b=b;a.o=!0};
Cq=function(a,b,c,d){var e=1<d;e&&(a.g=!0);if(a.o)b!=a.b&&(a.o=!1);else if(0<b&&a.b==b)return c-a.A>(e||!a.g?1500:400);a.b=b;a.A=c;return a.g&&0>=d};
aG=function(){this.o={};this.b={};this.g=new he(this.mG,500,this);G(this,this.g)};
bG=function(a,b){return a.b[b]?a.b[b].b.Ra():[]};
cG=function(a){this.o=a;this.b=new XB(100);this.g=0};
dG=function(a){if(a.zm)return 4;var b=Vh("visibilityState",window.document);return b&&"visible"!=b?3:a.M?2:a.Sa?1:0};
Tca=function(){this.g=0;this.b=this.C=this.o=this.A=window.NaN;this.B=0;this.G=this.H=this.D=this.F=window.NaN};
eG=function(){this.endTime=this.startTime=-1;this.Sk="-";this.playbackRate=1;this.visibilityState=0;this.Ok=""};
fG=function(a,b,c,d,e,f,k,l,m,n,t){this.videoData=a;this.b=b;this.A=c;this.B=d;this.g=e;this.C=f;this.J=k;this.G=l;this.H=m;this.D=n;this.F=t||function(){};
this.o=null};
Gu=function(a){return gG(a)()};
gG=function(a){if(!a.o){var b=ra(function(a){var b=Dq();a&&631152E6>=b&&(aj(Error("invalid yt.now value: "+b)),b=(new Date).getTime());return b},a.b.experiments.Z("html5_validate_yt_now"));
a.o=ra(function(a){return Math.round(b()-a)/1E3},b())}return a.o};
Zu=function(a){var b=a.A();a=a.videoData;var c={};a.g&&(c.fmt=Iu(a.g),a.B&&Iu(a.B)!=Iu(a.g)&&(c.afmt=Iu(a.B)));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Sb&&(c.infringe=1);a.Ca&&(c.splay=1);a.xa&&(c.live=a.K?"dvr":"live");a.J&&(c.autoplay=1);a.Do&&(c.sdetail=a.Do);a.za&&(c.partnerid=a.za);a.osid&&(c.osid=a.osid);sa(b,c);return b};
pu=function(a){var b=new eG;b.Sk=a.A().cc||"-";b.playbackRate=a.H();var c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a=a.G();a.Wb&&a.Wb.id&&"und"!=a.Wb.id&&(b.Ok=a.Wb.id);return b};
hG=function(a,b){this.state=a;this.b=b};
gv=function(a,b){return O(a.state,b)&&!O(a.b,b)?1:!O(a.state,b)&&O(a.b,b)?-1:0};
iG=function(a,b){this.b=a||0;this.spatialAudioType=b||0};
jG=function(a,b,c,d,e,f,k,l){this.id=a;this.g=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.b=k||0;this.A=l||0;this.audio=c||null;this.video=d||null;this.Wb=e||null;this.lf=f||null;this.o=Uca[Iu(this)]||""};
Iu=function(a){return a.id.split(";",1)[0]};
ZF=function(a){return"9"==a.o||"("==a.o||"9h"==a.o};
kG=function(a){return!(a.audio&&a.video)};
lG=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
mG=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
nG=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
oG=function(a,b,c,d,e,f,k,l,m,n,t){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);b=Tz[0];for(var u=0;u<Tz.length;u++){var x=Tz[u],z=Ny[x];if(f>=Math.floor(16*z/9)*oG.prototype.o||a>=z*oG.prototype.o){f=b;break a}b=x}f="tiny"}this.quality=f;this.Om=Ny[this.quality];this.isAccelerated=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;(c=l)||(c=this.fps,d=this.projectionType,e=Ny[this.quality],c=0==e?N("YTP_AUTO"):e+(2==d||3==d?"s":"p")+(55<c?"60":49<c?"50":39<c?"48":""));
this.qualityLabel=c;this.b=m||"";this.primaries=n||"";this.g=!1!==t};
Vca=function(a){return pG(function(a,c){return zu(a,c,4,1E3)},a,{format:"RAW",
method:"GET"})};
pG=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?pG(a,d,c):b})};
qG=function(a){this.o=a;this.B=this.A=this.C="";this.b={};this.g=""};
rG=function(a){a.g||(a.g=Wca(a));return a.g};
JE=function(a){sG(a);return a.B};
tG=function(a){sG(a);return Sb(a.b,function(a){return null!==a})};
sG=function(a){if(a.o){if(!uG.test(a.o))throw Error("Untrusted URL: "+a.o);var b=rh(a.o);a.C=b.A;a.B=b.g+(null!=b.D?":"+b.D:"");var c=b.o;if(0==c.indexOf("/videoplayback"))a.A="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.A=c.substr(0,d),c=c.substr(d+1)):(a.A=c,c="")}d=a.b;a.b=vG(c);sa(a.b,wG(b.J()));sa(a.b,d);a.o="";a.g=""}};
Wca=function(a){sG(a);var b=a.C+(a.C?"://":"//")+a.B+a.A;if(tG(a)){var c=[];Pb(a.b,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b};
vG=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&xG(c,a[b],a[b+1]);return c};
wG=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?xG(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
xG=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};
yG=function(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];if(d)return d.value}return""};
zG=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};
AG=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)};
BG=function(){this.ra=[]};
ZB=function(a,b){var c=CG(a,b);return c?c.ingestionTime:window.NaN};
CG=function(a,b){var c=Ab(a.ra,new YE(b,0,0,0,""),function(a,b){return a.b-b.b});
return 0<=c?a.ra[c]:null};
Xca=function(a,b){var c=Ab(a.ra,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.ra[c]:a.ra[Math.max(0,-c-2)]};
DG=function(a,b){if(b>a.Qb())a.ra=[];else{var c=eb(a.ra,function(a){return a.b>=b},a);
0<c&&a.ra.splice(0,c)}};
EG=function(a){this.b=a;this.g={};this.o=""};
Yca=function(a,b){var c=b.indexOf("?");if(0<c){var d=wG(b.substr(c+1));Pb(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=vG(b);Pb(d,function(a,b){this.set(b,a)},a)};
aB=function(a){a.o||(a.o=Zca(a));return a.o};
Zca=function(a){var b=rG(a.b),c=[];Pb(a.g,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=tG(a.b)?"&":"?";return b+a+d};
$ca=function(a,b){var c=new qG(b);Pb(a.g,function(a,b){c.set(b,null)});
return c};
ada=function(a){this.b=a;this.A=a.clone();this.g=0;this.o=-1};
FG=function(a,b,c){this.index=null;this.info=b;this.initRange=c||null;this.b=null;this.A=this.o=!1;this.C=new ada(a)};
GG=function(a,b,c){this.g=a[0].b.C;this.o=b||"";this.b=a;this.range=this.b[0].range&&0<this.b[0].o?Cca(this.b):null;this.A=!!c};
bB=function(a,b){var c;/http[s]?:\/\//.test(a.o)?c=new EG(new qG(a.o)):(c=new EG(a.g.b),a.o&&Yca(c,a.o));var d=b||a.range;d&&c.set("range",d.toString());return c};
fE=function(a){if(a.range)return a.range.length;a=a.b[0];return Math.round(a.G*a.b.info.b)};
HG=function(a,b,c,d,e,f){FG.call(this,a,b,d);this.index=e||new BG;this.F=c;this.D=!0;this.g=!!f;if(this.B=!c)this.o=!0};
IG=function(a,b,c){if(a.g&&0==a.index.hf(b))return a=new zE(3,a,null,b),b=0<=b?"sq/"+b:"",new GG([a],b,!!b);var d=a.index.eq(b),e=a.index.ze(b),f=a.index.hf(b);c?f=c=0:c=0<a.info.b?a.info.b*f:1E3;a=new zE(3,a,null,b,e,f,0,c,b==a.index.Qb()&&!a.D&&0<c);return new GG([a],d)};
bda=function(a,b,c,d){this.b=a;this.be=b;this.durationSecs=c;this.g=d||window.NaN};
JG=function(){this.b=[];this.g=null;this.A=0;this.o=[]};
cda=function(a){var b=a.o;a.o=[];return b};
dda=function(){this.A=[];this.b=null;this.g={};this.o={}};
hda=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=eda(a):"AdaptationSet"==f.nodeName?k=fda(a,f.attributes.mimeType.value):"Representation"==f.nodeName&&(k=gda(a,f.attributes.id.value));if(null==k)return;k.update(b[e],c);ub(d,cda(k))}Db(d,function(a){return a.be});
ub(a.A,d)};
ida=function(a){a.b&&(a.b.b=[]);Pb(a.g,function(a){a.b=[]});
Pb(a.o,function(a){a.b=[]})};
eda=function(a){a.b||(a.b=new JG);return a.b};
fda=function(a,b){a.g[b]||(a.g[b]=new JG);return a.g[b]};
gda=function(a,b){a.o[b]||(a.o[b]=new JG);return a.o[b]};
KG=function(){this.ya=0;this.b=new window.Float64Array(128);this.g=new window.Float64Array(128);this.A=1;this.o=!1};
LG=function(a){if(a.b.length<a.ya+1){var b=2*a.b.length,b=b+2,c=a.b;a.b=new window.Float64Array(b+1);var d=a.g;a.g=new window.Float64Array(b+1);for(b=0;b<a.ya+1;b++)a.b[b]=c[b],a.g[b]=d[b]}};
MG=function(a,b,c,d,e,f){FG.call(this,a,b,c||void 0);this.indexRange=d;this.B=null;this.index=new KG;this.g=e;this.lastModified=f};
NG=function(a,b,c,d){for(var e=[];b<=a.index.Qb();b++){var f;f=a.index;f=fD(f.jk(b),b+1<f.ya||f.o?f.b[b+1]-f.b[b]:-1);var k=a.index.ze(b),l=a.index.hf(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m);e.push(new zE(3,a,f,b,k,l,m,n,b==a.index.Qb()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new GG(e)};
OG=function(a,b,c){uk.call(this);this.J=this.duration=0;this.isLive=this.o=!1;this.F=Dq();this.B=window.Infinity;this.b={};this.K=a||"";this.D=this.H=0;this.A=null;this.aa=!!b&&b.Z("html5_live_nonzero_first_segment_start_time");this.g=!1;this.G=[];this.ba=!!b&&b.Z("html5_live_self_init_segments");this.C=null;this.ca=c};
gA=function(a){return Sb(a.b,function(a){return!!a.info.lf},a)};
jA=function(a){return Sb(a.b,function(a){return a.info.video?2==a.info.video.projectionType:!1},a)};
kA=function(a){return Sb(a.b,function(a){return a.info.video?3==a.info.video.projectionType:!1},a)};
PG=function(a,b,c,d){return d?jda(a):kda(a,b,c)};
kda=function(a,b,c){var d=new OG;d.duration=c||0;E(a,function(a){var c=QG(a,b,d.duration),e=eD(a.init),l=eD(a.index),m=(0,window.parseInt)(a.clen,10),n=RG(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);n&&(c=new MG(n,c,e,l,m,a),d.b[c.info.id]=c)});
return d};
jda=function(a){var b=new OG;E(a,function(a){var c=QG(a);if(a=RG(a.url,c,a.s))c=new HG(a,c,"",void 0,void 0,!0),b.b[c.info.id]=c});
b.o=!0;b.g=!0;b.isLive=!0;return b};
QG=function(a,b,c){var d=a.type,e=a.itag,f=lda(a),k=null;mG(d)&&(k=(a.size||"640x360").split("x"),k=new oG(+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(lG(d)){l=0;if("258"==e||"261"==e)l=6;l=new iG(l,+a.spatial_audio_type);a.name&&(m=new nG(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 t=null;b&&a.drm_families&&
(t={},E(a.drm_families.split(","),function(a){t[a]=b[a]}));
return new jG(f,d,l,k,m,t,e,c)};
lda=function(a){var b=a.itag;a.xtags&&(b=a.itag+";"+a.xtags);return b};
RG=function(a,b,c){a=new qG(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",Ly(c));return a};
TG=function(a,b){var c=yG(b,"id"),c=c.replace(":",";");"captions"==c&&(c=yG(b,"lang"));var d=yG(b,"mimeType"),e=yG(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(yG(b,"bandwidth"),10)/8,f=(0,window.parseInt)(zG(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(mG(d)){var k=(0,window.parseInt)(yG(b,"width"),10),l=(0,window.parseInt)(yG(b,"height"),10),m=(0,window.parseInt)(yG(b,"frameRate"),10),n=yG(b,"yt:stereoLayout"),t="equirectangular"==yG(b,
"yt:projectionType"),u,x;t&&"layout_top_bottom"==n?u=3:t&&!n?u=2:"layout_left_right"==n&&(x=1);k=new oG(k,l,m,u,x)}x=u=null;if(lG(d)){u=(0,window.parseInt)(yG(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10);var z;x=yG(b,"yt:spatialAudioType");"spatial_audio_type_ambisonics_5_1"==x?z=1:"spatial_audio_type_ambisonics_quad"==x&&(z=2);u=new iG(u,z);z=yG(b,"lang")||"";(x=zG(b,"Role"))?(x=yG(x,"value")||"",x=z&&$b(SG,x)?new nG(yG(b,"yt:langName")||z+" - "+x,z+"."+SG[x],"main"==x):null):
x=null}l=null;if(z=zG(b,"ContentProtection"))if((l=z.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},z=z.firstChild;null!=z;z=z.nextSibling)"yt:SystemURL"==z.nodeName&&(l[z.attributes.type.textContent]=z.textContent.trim());else l=null;return new jG(c,d,u,k,x,l,e,f)};
UG=function(a,b){a.D=1;a.F=Dq();return Ud(Vca(b||a.K).then(y(a.O,a)),y(a.R,a))};
mda=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=eD(a):d=d+"?range="+a));return new YE(b.b,b.be,b.durationSecs,b.g,d,e)};
VG=function(a){return a.isLive&&Dq()-a.F>=a.B};
WG=function(a){if(VG(a))a.M();else{var b=Math.max(0,a.F+a.B-Dq());a.C||(a.C=new he(a.M,b,a),G(a,a.C));a.C.start(b)}};
XG=function(a){a=a.b;for(var b in a){var c=a[b].index;if(c&&c.jf())return c.Yg()}return window.NaN};
YG=function(a){a=a.b;for(var b in a){var c=a[b].index;if(c&&c.jf())return c.Ru()}return 0};
ZG=function(a){var b=a.b,c;for(c in b)if((a=b[c].index)&&a.jf()){c=0;for(b=a.og();b<=a.Qb();b++)c+=a.hf(b);c/=a.Bl();return.5*Math.round(c/.5)}return window.NaN};
$u=function(a,b){if(!a.isLive)return window.NaN;var c=a.b,d;for(d in c){var e=c[d].index;if(e&&e.jf())return c=e.Bf(b),ZB(e,c)+(b-e.ze(c))}return window.NaN};
nda=function(a,b){Pb(a.b,function(a){Pb(b,function(b,c){var d=a.C;d.b.set(c,b);d.A.set(c,b)})})};
oda=function(a,b){if(!a.b["0"]){var c=new oG(0,0,0,void 0,void 0,"auto"),c=new jG("0","",void 0,c);a.b["0"]=b?new HG(new qG("http://www.youtube.com/videoplayback"),c,""):new MG(new qG("http://www.youtube.com/videoplayback"),c,new dD(0,0),new dD(0,0),0,window.NaN)}};
$G=function(a,b){this.g=[];this.b={};this.o={};this.A=null;this.F=b;pda(this,a)};
pda=function(a,b){Pb(b,function(a){a.forEach(function(a){a.lf&&Pb(a.lf,function(b,c){aH[c]&&Pb(aH[c],function(b){this.b[b]=this.b[b]||new yF(c,b,a.lf[c]);this.o[c]=this.o[c]||{};this.o[c][a.mimeType]=!0},this)},this)},this)},a);
a.g=qda.filter(function(a){return!!this.b[a]},a)};
rda=function(a){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Pb(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]};
sda=function(a){var b=zF(),c=$y();if(b){if(rz){a.A(new yF("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=y(c.canPlayType,c):d=function(){return!1};
c=(c=fb(a.g,function(a){var b=this.b[a],c,e;Pb(this.o[b.b],function(f,k){d(k,a)&&(b.A[k]=!0,c|=0==k.indexOf("audio/"),e|=0==k.indexOf("video/"))},this);
return c&&e},a))?a.b[c]:null;
a.g=[];a.A(c)};
bH=function(a,b){this.Ac=a;this.b=b};
cH=function(a){this.b=[];if(a)a:{var b;if(a instanceof cH){if(b=a.Ua(),a=a.Ra(),0>=this.Pb()){for(var c=this.b,d=0;d<b.length;d++)c.push(new bH(b[d],a[d]));break a}}else b=Yb(a),a=Xb(a);for(d=0;d<b.length;d++)dH(this,b[d],a[d])}};
dH=function(a,b,c){var d=a.b;d.push(new bH(b,c));b=d.length-1;a=a.b;for(c=a[b];0<b;)if(d=b-1>>1,a[d].Ac>c.Ac)a[b]=a[d],b=d;else break;a[b]=c};
eH=function(){cH.call(this)};
fH=function(a){uk.call(this);this.o=new eH;this.b=null;this.C={};this.B=a||""};
hH=function(a,b,c){for(c=a.pg(c);0<=c;){var d=a.Ed(c);if(d.o[Math.floor(b/(d.Zb*d.rows))]&&(d=gH(d,b)))return d;c--}return gH(a.Ed(0),b)};
jH=function(a,b,c){c=a.pg(c);for(var d,e;0<=c;c--)if(d=a.Ed(c),e=Math.floor(b/(d.Zb*d.rows)),!d.o[e]){d=a;var f=c,k=f+"-"+e;d.C[k]||(d.C[k]=!0,dH(d.o,f,{nr:f,ur:e}))}iH(a)};
iH=function(a){if(!a.b&&!a.o.isEmpty()){var b=a.o.remove(),c=new window.Image;a.B&&(c.crossOrigin=a.B);c.src=kH(a.Ed(b.nr),b.ur);c.onload=y(a.D,a,b.nr,b.ur);a.b=c}};
lH=function(a,b,c,d){this.o={};this.K=a;this.H=b;a=c.split("#");this.F=(0,window.parseInt)(a[0],10);this.D=(0,window.parseInt)(a[1],10);this.g=(0,window.parseInt)(a[2],10);this.Zb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.B=(0,window.parseInt)(a[5],10);this.A=a[6];this.C=a[7];this.J=d};
kH=function(a,b){var c=a.H,c=c.replace("$N",a.A),c=c.replace("$L",a.K.toString()),c=c.replace("$M",b.toString());a.C&&(c=Wg(c,{sigh:a.C}));return Np(c)};
gH=function(a,b){var c=Math.floor(b/(a.Zb*a.rows)),d=a.Zb*a.rows,e=b%d,f=e%a.Zb,e=Math.floor(e/a.Zb),k,l=a.Un()+1-d*c;l<a.Zb?(k=l,d=1):(k=a.Zb,d=l<d?Math.ceil(l/a.Zb):a.rows);return{url:kH(a,c),Uy:f,Zb:k,lG:e,rows:d,vr:a.F*k,tr:a.D*d}};
mH=function(a,b,c){fH.call(this,c);this.g=this.Km(a,b);this.A={};1<this.g.length&&this.Ed(0).isDefault()&&this.g.splice(0,1)};
nH=function(a,b,c){return a.Ed(b).Ev(c)};
oH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");lH.call(this,a,b,c,0);this.b=null;this.G=d?3:0};
pH=function(a,b){this.F=b;mH.call(this,a,0)};
tda=function(a,b){this.g=a;this.b=b;this.o=0};
uda=function(a){for(var b=[],c=[],d=0,e=a.b.length;d<e;++d){var f=a.b[d];f.bitrate<=a.o?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.b=b.concat(c)};
vda=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.Ep=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.b=m||""};
wda=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 vda(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};
qH=function(a,b){this.Uc=a;this.o=b;this.b=null};
rH=function(a,b,c,d,e,f,k,l,m){var n=new iG;d=new oG(d,e,f,null,void 0,k);c=new jG(c,"application/x-mpegURL",n,d,void 0,m);a=new tda(a,b);a.o=l?l:1369843;return new qH(c,a)};
xda=function(a,b,c){if(!Vz&&!Tp())return[];b=wda(b);if(!b)return[];var d={gR:"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 t=b[n.audioItag];t&&(f.push(n),e="fairplay"==n.b?d:null,l.push(rH([t],[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.Uc.lf&&a},!0)?d:null;
l.push(rH(k,f,"93",0,0,0,"auto",c,e));return Uz(a.K,l)};
sH=function(a,b){this.Uc=a;this.b=b};
tH=function(a,b,c,d,e,f,k,l){var m=new iG;c in Ny||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=Ny[c],e=Math.round(16*f/9));c=new oG(e,f,0,null,void 0,c,k,void 0,void 0,void 0,l);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new sH(new jG(d,b,m,c),a)};
yda=function(a){var b=[];E(a,function(a){a.url&&b.push(tH(a.url,a.type,"medium","0"))});
return b};
uH=function(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];if(e.sig||e.s){var f=e.sig||Ly(e.s);e.url=Wj(e.url,{signature:f})}e.url&&c.push(tH(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isAccelerated,!!e.isAcceleratedUiEnabled))}return Uz(a.K,c)};
vH=function(a){uk.call(this);this.adModule=!1;this.adaptiveFormats="";this.na=null;this.allowEmbed=!0;this.K=this.backgroundable=!1;this.ag="";this.Sb=this.Xo=!1;vH.prototype.Db=vH.g;this.watchAjaxToken=this.Id=null;this.author="";this.Gd=0;this.xr=this.Tb=!1;this.clientPlaybackNonce=this.dc=this.Ub="";this.contentCheckOk=!1;this.da=0;this.enableCardioBeforePlayback=this.enableCardio=this.De=!1;this.ha=0;this.fu=this.M=!1;this.fb=this.Hd=0;this.Ec=!1;this.paidContentOverlayDurationMs=0;this.isPharma=
this.isMdxPlayback=this.isLowLatencyLiveStream=this.isLiveDefaultBroadcast=this.isLiveDestination=this.xa=this.Ka=this.isListed=this.Fe=this.ar=this.J=!1;this.O=0;this.Me="";this.Ge=this.iu=this.Ca=!1;this.ee=3;this.ba=window.NaN;this.liveStartWalltime=0;this.Ie=null;this.rf=this.lengthSeconds=0;this.paygated=!1;this.profilePicture="";this.racyCheckOk=!1;this.autonavState=1;vH.prototype.Sa=Qy;this.H=!1;this.startSeconds=0;this.spacecastModule=!1;this.xb=null;vH.prototype.Ya=Qy;this.ga=null;this.hlsFormats=
this.qa=this.title="";this.Jd=null;this.qf="vvt";this.requiresPurchase=!1;this.clipStart=0;this.clipEnd=window.Infinity;this.Ke=this.ia=this.Ga=!1;this.ht="";this.kr=this.Vp=!1;this.fh={};this.lo="";this.Yt=!1;this.captionTracks=[];this.ce=[];this.uq=0;this.captionTranslationLanguages=[];this.de=!1;this.Ia=new xz("und",new nG("Default","und",!0));this.He=0;this.Fo=this.vo=!1;this.F=null;this.X=[];this.Wt=!1;this.Ne=null;this.wo=new he(this.ut,5E3,this);G(this,this.wo);this.G=[];this.A={};this.keywords=
{};this.C={};wH(this,a)};
yH=function(a,b){var c=b||{};c.iv_invideo_url&&(a.ag=Np(c.iv_invideo_url));c.iv_ads_only&&(a.Xo="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.np=c.cta_conversion_urls);a.isPharma=cz(a.isPharma,c.is_pharma);a.author=fz(a.author,c.author);a.Tb=cz(a.Tb,c.cc_asr);var d=c.ttsurl;xH.test(d)?a.Ub=d:d&&(d=Mp(d),xH.test(d)&&(a.Ub=d));a.Yt=void 0!=c.caption_tracks;c.caption_tracks&&c.caption_audio_tracks&&(zda(a,c.caption_tracks),a.ce=Tj(c.caption_audio_tracks),c.default_audio_track_index&&(a.uq=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&Ada(a,c.caption_translation_languages));a.de=cz(a.de,c.cc_contribute);a.clientPlaybackNonce=fz(a.clientPlaybackNonce,c.cpn);a.subscribed=fz(a.subscribed,c.subscribed);a.shortViewCount=fz(a.shortViewCount,c.short_view_count_text);a.title=fz(a.title,c.title);a.ypcPreview=fz(a.ypcPreview,c.ypc_preview);a.ypcOrigin=fz(a.ypcOrigin,c.ypc_origin);a.paygated=cz(a.paygated,c.paygated);a.requiresPurchase=cz(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=
Bda(c.keywords));c.rvs&&(a.R=Tj(c.rvs));a.contentCheckOk=cz(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=cz(a.racyCheckOk,"1"==c.rco);a.oauthToken=fz(a.oauthToken,c.oauth_token);a.visitorData=fz(a.visitorData,c.visitor_data);c.session_data&&(a.Ha=Qj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Ts=Qj(c.endscreen_autoplay_session_data,"&"));a.Ss=fz(a.Ss,c.endscreen_ad_tracking_data);a.Oe=fz(a.Oe,c.tracking_list||c.tv_list);E(vH.A,function(a){a in c&&(this.A[a]=c[a])},a)};
wH=function(a,b){var c=b||{};a.K="1"!=c.hlsdvr?!1:Wz()?!0:qA&&5>zH?!1:!0;a.Jx=c.ad_query_id;a.Px=c.agcid;a.Sb="1"==c.infringe||"1"==c.muted;a.Pp=c.authkey;a.Ob=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||hr());a.vy=1E3*ez(D()/1E3,c.timestamp);a.De=cz(a.De,c.cenchd);a.enableCardio=cz(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=cz(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.ha=ez(a.ha,c.end||c.endSeconds);a.sc=fz(a.sc,c.itct);a.Fe=cz(a.Fe,c.noiba);
a.Ka="1"==c.livemonitor;a.xa="1"==c.live_playback||!!c.fresca_preroll;a.isLiveDestination=cz(a.isLiveDestination,c.is_live_destination);a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isLowLatencyLiveStream="1"==c.is_low_latency_live_stream;a.isMdxPlayback=cz(a.isMdxPlayback,c.mdx);a.O=ez(a.O,c.reload_count);a.Me=fz(a.Me,c.reload_reason);a.Ge=cz(a.Ge,c.utpsa);a.jr=c.cyc;for(var d in vH.b){var e=c[d+"_webp"]||c[d];CA.test(e)&&(a.fh[vH.b[d]]=e)}d=c.murlmq_webp;CA.test(d)&&(a.lo=d);a.aa=fz(a.aa,
c.vvt);a.ay=c.osig;a.no=c.ptchn;a.oo=c.oid;a.Oa=c.ptk;a.qo=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.osid=c.osid;a.videoMetadata=c.vm;a.yy=c.of;a.playlistId=fz(a.playlistId,c.list);a.to=c.pyv_view_beacon_url;a.hy=c.pyv_quartile25_beacon_url;a.ly=c.pyv_quartile50_beacon_url;a.qy=c.pyv_quartile75_beacon_url;a.fy=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Do=c.sdetail;!a.Le&&c.session_data&&
(a.Le=Qj(c.session_data,"&").feature);a.isFling=1==ez(a.isFling?1:0,c.is_fling);a.vnd=ez(a.vnd,c.vnd);a.Ee=fz(a.Ee,c.force_ads_url);a.qb=fz(a.qb,c.ctrl);a.ub=fz(a.ub,c.ytr);a.qc=c.ytrcc;a.uo=c.ytrexp;a.Sa=hz(a.Sa,c.vq);a.Ya=hz(a.Ya,c.suggestedQuality);a.Za=c.approx_threed_layout||0;a.Go=cz(a.Go,c.ssrt);a.videoId=iz(c)||a.videoId;a.vssCredentialsToken=fz(a.vssCredentialsToken,c.vss_credentials_token);a.qf=fz(a.qf,c.vss_credentials_token_type);a.ypcGid=fz(a.ypcGid,c.ypc_gid);a.heartbeatToken=fz(a.heartbeatToken,
c.heartbeat_token);a.heartbeatInterval=ez(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=ez(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=cz(a.heartbeatSoftFail,c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.G.push("ad")):"1"!=c.supported_without_ads&&(a.fu=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.yb=c.atc);c.license_info&&(a.na=Cda(c.license_info));c.allow_embed&&(a.allowEmbed=
"1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.Ec="1"==c.autonav);c.autoplay&&(a.J="1"==c.autoplay);c.iv_load_policy&&(a.jd=dz(a.jd,c.iv_load_policy,wA));c.cc_lang_pref&&(a.yo=fz(c.cc_lang_pref,a.yo));c.cc_load_policy&&(a.zo=dz(a.zo,c.cc_load_policy,wA));c.channel_path&&(a.dc=fz(c.channel_path,a.dc));"0"==c.dash&&(a.xr=!0);c.dashmpd&&(a.D=Wg(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.D))&&(e=Ly(e[1]),a.D=a.D.replace(d,"/signature/"+
e));c.delay&&(a.da=Ya(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.featured&&(a.ar="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.G.push("fresca");c.idpj&&(a.Hd=Ya(c.idpj));c.ismb&&(a.fb=Ya(c.ismb));c.is_listed&&(a.isListed=cz(a.isListed,c.is_listed));c.paid_content_overlay_duration_ms&&(a.paidContentOverlayDurationMs=Ya(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.qa=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=Ya(c.length_seconds));c.live_chunk_readahead&&(a.ee=ez(a.ee,c.live_chunk_readahead));c.live_start_walltime&&(a.liveStartWalltime=Ya(c.live_start_walltime));c.live_manifest_duration&&(a.Ie=Ya(c.live_manifest_duration));c.ldpj&&(a.rf=Ya(c.ldpj));c.loudness&&
(a.perceptualLoudnessDb=c.loudness,a.Db=a.perceptualLoudnessDb?Math.pow(10,Math.min(-21-a.perceptualLoudnessDb,0)/20):vH.g);c.partnerid&&(a.za=Ya(c.partnerid));c.probe_url&&(a.probeUrl=Np(Wg(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=fz(c.profile_picture,a.profilePicture));c.pyv_billable_url&&uv.test(c.pyv_billable_url)&&(a.hd=c.pyv_billable_url);c.pyv_conv_url&&uv.test(c.pyv_conv_url)&&(a.ua=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,
a.Je=d.quartile_0_url,a.nu=d.quartile_25_url,a.ew=d.quartile_50_url,a.jo=d.quartile_75_url,a.lu=d.quartile_100_url);"1"==c.spacecast_module&&(a.G.push("spacecast"),a.spacecastModule=!0);c.spacecast_addrs&&(a.Ne=c.spacecast_addrs.split(","),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=ez(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.xa||(a.clipStart=c.start);c.two_stage_token&&(a.Id=c.two_stage_token);c.url_encoded_third_party_media&&(a.ga=Tj(c.url_encoded_third_party_media));
c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.G.push("ypc");c.ypc_clickwrap_module&&a.G.push("ypc_clickwrap");a.ty=fz(a.ty,c.ucid);E("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.C[a]=c[a])},a);
a.C.focEnabled=cz(a.C.focEnabled,c.focEnabled);a.C.rmktEnabled=cz(a.C.rmktEnabled,c.rmktEnabled);a.A=c;yH(a,c);Dda(a);c.adpings&&(a.xo=c.adpings?Sj(c.adpings):null);c.feature&&(a.Eo=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.X=Tj(c.multifeed_metadata_list))};
AH=function(a){return D()>a.vy+18E6};
BH=function(a){return!(!a.o||!a.o.videoInfos.length)};
Dda=function(a){CH(a)||(a.adaptiveFormats&&!a.xa?(DH(a,PG(EH(a,a.adaptiveFormats),a.na,a.lengthSeconds)),gA(a.b)&&(a.ia=!0)):a.D&&(a.Ga=!0))};
Eda=function(a){return a.g&&Pz('video/webm; codecs="vp9"')&&Sb(a.b,function(a){return ZF(a.info)})};
FH=function(a){return!(!a.b||!a.b.g)};
CH=function(a){return!Wz()||a.xr?!0:!1};
GH=function(a){a.isDisposed()||(a.M=!1,a.Y("dataloaded",a.A))};
DH=function(a,b,c){c&&a.b&&a.b.dispose();a.b=b;G(a,b);(HH(a)||IH(a)||JH(a))&&a.G.push("webgl");a.b.isLive||(a.xa=!1)};
KH=function(a,b){if(!a.isDisposed()){a.o=null;a.la=null;a.ca=null;var c=CH(a)||b.zm;if(!c&&a.spacecastAdaptiveFormats)DH(a,PG(EH(a,a.spacecastAdaptiveFormats),a.na,a.lengthSeconds),!0),a.o=nA(b.K,a.b,a.F,!0,!1);else if(a.spacecastFormatMap){var d=EH(a,a.spacecastFormatMap);a.ca=uH(b,d);a.o=new yz(Ki(a.ca,function(a){return a.Uc}))}a.o&&(d=ff(a.o.videoInfos,function(a,b){return b.video.isAccelerated&&(!a||a.height<b.video.height)?b.video:a},null))&&(d=Oy(d.quality,d.quality,!0),a.Sa=d,a.Ya=d);
a.o||c||!a.b||(b.C||oda(a.b,a.xa),a.o=nA(b.K,a.b,a.F,!1,zba(b)));a.o||(a.ca=Fda(a,b),a.ca.length&&(a.o=new yz(Ki(a.ca,function(a){return a.Uc}))));
Gda(a)}};
Fda=function(a,b){if(a.hlsFormats){var c=EH(a,a.hlsFormats),c=xda(b,c,a.fb);if(c.length)return c}if(a.ga&&a.iu)return c=yda(a.ga),Uz(b.K,c);c=EH(a,a.qa,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.fb,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Wg(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return uH(b,c)};
LH=function(a){return a.g&&a.g.lf||null};
MH=function(a){a.Jd||(a.A.storyboard_spec?a.Jd=new mH(a.A.storyboard_spec,a.lengthSeconds):a.A.live_storyboard_spec&&a.b&&(a.Jd=new pH(a.A.live_storyboard_spec,a.b)));return a.Jd};
NH=function(a){return a.b&&!(0,window.isNaN)(YG(a.b))?YG(a.b):0};
OH=function(a,b){if(a.b&&a.xa){var c=a.b.b[a.g.id];if(!c||!c.index)return null;var d=c.index.Bf(b),c=c.index.ze(d);return{sequence:d,elapsed:Math.floor(1E3*(b-c))}}return null};
PH=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.ga)};
QH=function(a){return!!(a.D||a.adaptiveFormats||a.qa||a.ga||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
RH=function(a){var b=kb(a.G,"ypc");a.ypcPreview&&(b=!1);return PH(a)&&!a.M&&(QH(a)||kb(a.G,"fresca")||b)};
SH=function(a){return RH(a)&&!a.Ga&&!a.ia};
EH=function(a,b,c){b=Tj(b);var d={};c&&E(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
E(b,function(a){a.url&&(a.url=Wg(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
Bda=function(a){var b={};E(a.split(","),function(a){var c=a.split("=");2==c.length?b[c[0]]=c[1]:b[a]=!0});
return b};
Cda=function(a){a=Tj(a);var b={};E(a,function(a){var c=a.family;a=a.url;c&&a&&(b[c]=a)});
return b};
zda=function(a,b){for(var c=Tj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;xH.test(f)&&a.captionTracks.push(new uz({is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k,format:3}))}};
Ada=function(a,b){for(var c=Tj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new tz({languageCode:e.lc,languageName:e.n}))}};
Gda=function(a){for(var b=a.o?a.o.audioTracks:[],b=b.concat(a.Ia),c=0;c<a.ce.length;c++)for(var d=a.ce[c],e=0;e<b.length;e++){var f=b[e],k=f.Wb.id==d.aid;if(f==a.Ia&&c==a.uq||k){if(d.i)for(var k=d.i.split(","),l=0;l<k.length;l++)f.captionTracks[l]=a.captionTracks[(0,window.parseInt)(k[l],10)];d.d&&(f.il=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.Pi=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.sp=(0,window.parseInt)(d.v,10)}}};
zs=function(a,b){return!!a.A[b]};
vs=function(a){return a.xa&&!a.K};
TH=function(a){return a.xa&&a.K};
UH=function(a){var b=hc(a.A);!a.xa&&0<a.startSeconds&&(b.start=a.startSeconds);return b};
VH=function(a){if(a.Za||a.Pd["3D"])return!0;a=a.Pd("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
WH=function(a,b){(0,window.isNaN)(a.ba)&&(a.ba=a.ee,a.Ka&&a.ba--,a.b&&(5<=ZG(a.b)||FH(a)&&!a.isLowLatencyLiveStream)&&b.Z("html5_live_disable_dg_pacing")&&a.ba++,a.ba=Math.max(0,a.ba));return a.ba};
IH=function(a){return a.b&&3!=a.Za?jA(a.b):!1};
HH=function(a){if(!a.b)return!1;for(var b in a.b.b){var c=a.b.b[b].info.video;if(c&&2==c.projectionType&&3==a.Za)return!0}return kA(a.b)};
JH=function(a){if(VH(a)&&3!=a.Za&&4!=a.Za)return!0;if(a.b)for(var b in a.b.b){var c=a.b.b[b].info.video;if(c&&1==c.A)return!0}return!1};
XH=function(a,b,c,d,e,f){uk.call(this);this.za=new Sca;this.D=c;this.Oa=d;c=y(function(a,b){a=="crn_"+XH.b&&YH(this);e(a,b)},this);
this.C=new Ot(y(this.getCurrentTime,this),y(this.Bu,this),y(this.getPlayerState,this),c);G(this,this.C);this.la=window.NaN;this.O=this.F=null;this.V=a;this.qa=new Rca(a,this.Oa);this.G=!1;this.H=this.A=null;this.ca=[];this.ga=new gD;this.aa=new gD;this.yb=this.Ha=!1;this.Ia=window.NaN;this.B=new wq;this.na=[];this.J=b;this.ha=this.K=null;this.M=window.NaN;this.ia=new ix;G(this,this.ia);this.b=new vH;this.g=null;this.ba=window.NaN;this.o=null;this.ub=this.Ga=!1;this.ua=window.NaN;this.Za=this.fb=this.da=
this.Ca=!1;this.Ka=this.qb=window.NaN;this.Sb=a.experiments.Z("html5_force_play_on_suspend_event");this.Tb=a.experiments.Z("html5_force_play_on_suspend_event_limited");this.R=null;this.Ub=this.V.experiments.Z("html5_playing_event_buffer_underrun");this.X=new aG;G(this,this.X);this.X.ib("bufferhealth",y(this.wz,this));this.X.ib("bandwidth",y(this.vz,this));this.X.ib("networkactivity",y(this.xz,this),!0);this.X.start();this.xb=!1;this.Db=0!=f;this.Ya=!1};
ZH=function(a){lx()?nx(a.ua):Zi(a.ua)};
fI=function(a,b,c){a.ca.length=0;a.ga.reset();a.aa.reset();a.la=window.NaN;a.M=window.NaN;a.Ga=!1;a.Ya=!1;a.g&&$H(a.g);aI(a);bI(a);cI(a);ZH(a);a.X.clear();Nb(a.b);if(2==a.J||oA.test(a.V.H))b.iu=!0;var d=Zy(b.A,a.V);d&&(b.adFormat=d);a.V.M&&(b.autonavState=a.b.autonavState);a.b=b;a.b.subscribe("dataupdated",a.xF,a);a.b.subscribe("dataloaded",a.Cp,a);a.b.subscribe("dataloaderror",a.Wh,a);a.b.subscribe("onStatusFail",a.wF,a);b.ha&&b.ha>b.startSeconds&&(b=b.ha,a.O&&(a.C.Uh(a.O),a.O=null),a.O=new fq(1E3*
b,0x7ffffffffffff),a.O.namespace=XH.b,a.C.wb([a.O]));bI(a);a.b.ga||(c=new fG(a.b,a.V,c,y(a.Vh,a),y(a.getCurrentTime,a),y(a.yz,a),y(a.Oa.Ja,a.Oa),y(a.Fn,a),y(a.Bu,a),y(a.El,a),y(a.Kz,a)),a.o=new Xu(c));a.Ca=!1;dI(a,"newdata");eI(a,new wq)};
bI=function(a){if(a.o){var b=a.o;if(!b.isDisposed()&&b.A){b.C="paused";var c=cv(b);c.la=!0;c.send();c=b.g;"PL"==c.o&&(c.o="N");var d=Gu(c.b);Eu(c,d,"vps",[c.o]);c.Lg(d);Zi(b.B);b.dispose()}Nb(a.o);a.o=null}};
hI=function(a){if(PH(a.b))return!0;gI(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
iI=function(a,b){a.Ha=!!b;hI(a)&&!a.ga.g&&(a.ga.start(),a.o&&Ou(a.o.g),a.Cp())};
lI=function(a){a.g&&jI(a.g);iI(a);hI(a)&&!O(a.B,128)&&(a.aa.g||(a.aa.start(),eI(a,Eq(a.B,8)),SH(a.b)||eI(a,Eq(a.B,1))),kI(a))};
kI=function(a){a.isDisposed();if(!a.aa.b&&a.ga.b&&!O(a.B,128)&&!a.ca.length&&(a.C.af||Pt(a.C),!mI(a))){if(a.A){var b=a.A;a.yb=!!b.M&&!!b.aa}a.aa.b=!0;a.b.xa&&(a.seekTo(window.Infinity,!0),nI(a,!0),3==dG(a.V)&&(a.ub=!0));if(a.o){b=a.o;b.b.videoData.enableCardio&&b.b.videoData.enableCardioBeforePlayback&&(b.F("connected"),jv(b));if(b.b.videoData.xa){var b=b.g,c=b.b.videoData.b;c&&ZG(c)&&Mu(b,"live-segment-"+ZG(c).toFixed(1));c=WH(b.b.videoData,b.b.b.experiments);Mu(b,"live-readahead-"+c)}FH(a.b)&&kv(a.o,
"manifestless","1")}a.Y("playbackready",a);CC("pbr",a.D.b)||(a.D.g("pbr"),zC("pbr",void 0,"video_to_ad"))}};
YH=function(a,b){a.pauseVideo();eI(a,0==b?new wq:new wq(14))};
rI=function(a,b,c,d){a.b.g=c;a.b.B=d||c;if(a.o){var e=Ry(Ry(WF(a.qa,a.b),oI(a)),pI(a)),e=fb(a.b.o.videoInfos,y(e.A,e)),e=new UF(a.b,c,b,e?Iu(e):"");d&&"i"==b&&qI(a,b,d);d=a.o.g;c=Gu(d.b);Eu(d,c,"vfs",[e.b.id,e.g,d.X,e.reason]);d.X=e.b.id;e=d.b.J();if(0<e.width&&0<e.height){var e=[Math.round(e.width),Math.round(e.height)],f=IA();1<f&&e.push(f);Eu(d,c,"view",e)}Eu(d,c,"vps",[d.o]);d.Lg(c)}a.Y("internalvideoformatchange",a.b,"m"==b)};
qI=function(a,b,c){a.b.B=c;if(a.o){var d=a.o.g;c=new UF(a.b,c,b,"");var e=Gu(d.b);c.b.id!=d.G&&(Eu(d,e,"afs",[c.b.id,d.G,c.reason]),d.G=c.b.id)}"i"!=b&&a.Y("internalaudioformatchange",a.b,"m"==b)};
gI=function(a,b,c,d){var e,f;Vb(Hda,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||N(e),messageKey:e};eI(a,Aq(a.B,128,b));ZH(a);cI(a);sI(a)};
tI=function(a,b){a.ca=a.ca.filter(function(a){return b!=a});
a.aa.g&&kI(a)};
mI=function(a){var b;(b=!!a.ca.length)||(a=a.C.b.b[0],b=!!a&&-0x8000000000000>=a.start);return b};
uI=function(a){a.V.experiments.Z("html5_crossorigin_video")&&a.g&&(a.b.ga||!a.b.o||a.b.o.b?a.g.$m(!1):a.g.$m(!0))};
wI=function(a,b){a.g&&vI(a);a.g=b;Ida(a);uI(a)};
vI=function(a){a.b&&a.V.experiments.Z("new_ended_replay")&&(a.b.startSeconds=a.getCurrentTime());a.H&&(a.H.dispose(),a.H=null);a.A&&(mF(a.A),a.A.F=!0);a.g&&(a.o&&a.ga.g&&O(a.B,64)&&!a.b.H&&xI(a),aI(a),kx(a.ia),$H(a.g),a.g=null)};
CI=function(a){if(!O(a.B,128))if(a.xb)a.xb=!1,yI(a);else if(lI(a),O(a.B,64)&&eI(a,Eq(a.B,8)),a.aa.b&&a.g)if(a.b.o){a.V.experiments.Z("new_ended_replay")&&O(a.B,2)&&a.seekTo(0,!0);if(a.b.xa){var b=a.getCurrentTime()<NH(a.b),c=vs(a.b)&&O(a.B,4);(b||c)&&a.seekTo(window.Infinity,!0);zI(a)?nI(a,!0):a.G&&a.seekTo(window.Infinity,!0)}if(a.b.o.b)b=AI(a),a.A.resume();else{cI(a);var b=a.b.la.g(),c=a.b,d={};c.Oa&&(d.ptk=c.Oa,d.oid=c.oo,d.ptchn=c.no,d.pltype=c.qo);sa(b.g,d);c=a.V.o;sa(b.g,{c:c.c,cver:c.cver})}(c=
a.g.g)&&Fz(c,b)?BI(a.g):Jda(a,b)}else b=a.b.xa&&!Xz()?"html5.unsupportedlive":"fmt.noneavailable",gI(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1")};
DI=function(a,b){aI(a);cI(a);b||AI(a)};
EI=function(a){if(a.b.o){var b=oI(a)||Qy;a=ne(a.b.o.videoInfos,y(b.A,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};
FI=function(a){return Ry(Ry(Ry(VF(a.qa,a.b),XF(a.qa,a.b)),oI(a)),pI(a))};
oI=function(a){return a.b.De?Qy:a.F?a.F.B:BH(a.b)&&a.b.o.b&&gA(a.b.b)?PF:Qy};
GI=function(a,b,c){if(!a.isDisposed()&&!O(a.B,128)&&(c&&(a.b.Ya=c),BH(a.b))){"m"==b&&c&&Py(c)&&(b="a");c=FI(a);if(a.b.o.b){if(a.A&&"i"!=b){var d=a.A;d.isDisposed()||((c=jca(d.D,c,b))&&d.Y("videoformatchange",c),vF(d,d.g,WC(d.D)),d.D.b.isLocked()&&"m"==b&&(rE(d.g),rE(d.o)),wE(d.g)&&jF(d,d.g,d.o),mF(d))}}else{a:if(d=a.b.ca,c.b){for(var e=0;e<d.length;e++){var f=d[e].Uc,k=Ny[f.video.quality];if((!c.o||"auto"!=f.video.quality)&&k<=c.b){c=d[e];break a}}c=d[d.length-1]}else c=d[0];a.b.la=c;rI(a,b,a.b.la.Uc)}a.B.Wa()&&
CI(a)}};
HI=function(a){nda(a.b.b,{c:a.V.o.c,cver:a.V.o.cver});var b=a.V,c=a.b,d=new Dba;d.ca=b.experiments.b("html5_throttle_rate")||d.ca;b.experiments.Z("html5_streaming_xhr")&&(d.H=!0);d.K=b.experiments.b("html5_idle_preload_secs");d.F=b.experiments.Z("html5_report_extended_parse_errors");b.experiments.Z("html5_use_mediastream_timestamp")&&(d.R=!0);b.experiments.Z("html5_timeout_fix")&&(d.za=!0);b.experiments.Z("html5_fast_fallback")&&(d.Ma=!0);if(Tp()||b.experiments.Z("dash_html5_safari8_workarounds"))d.aa=
!0;Tp()&&(d.ea=-1);if(Op("trident/")||Op("edge/"))d.b=240;Is&&(d.O=41943040);if(HA(b)||!Nz())d.o=8388608,d.B=524288,d.M=2097152,d.C=1048576,d.na=1.5,d.qa=15,d.J=!Nz(),d.ha=!1,d.D=4587520,Rp()&&(d.D=786432),d.Ha=!0,d.g*=1.3,d.A*=1.3,d.ua=!0;if(Up()){var e="CHROMECAST/ANCHOVY"==b.o.cmodel;d.o=20971520;d.B=1572864;e&&(d.D=812500,d.G=1E3)}d.Sa=b.C;d.liveChunkReadahead=WH(c,b.experiments);d.Ia=!b.experiments.Z("disable_fpa_sei_removal")&&Op("windows nt")&&(VH(c)||HH(c));FH(c)&&!b.experiments.Z("disable_html5_manifestless_delay")&&
(d.da=!0);b.experiments.A&&(d.D=window.NaN);if(c=b.experiments.b("html5_deadzone_multiplier"))d.g*=c,d.A*=c;if(c=b.experiments.b("html5_request_sizing_multiplier"))d.Ca=c;b.experiments.Z("html5_strip_emsg")&&(d.jb=!0);d.b=b.experiments.b("html5_max_buffer_duration")||d.b;d.X=b.experiments.b("html5_max_buffer_health_for_downgrade")||d.X;b.experiments.Z("disable_html5_streaming_response_timing")&&(d.Ga=!1);a.K.b.o=FH(a.b)?.5:0;a.A=new ZE(a.K,d,a.b.b,a.b.o);a.A.subscribe("initsegment",a.xD,a);a.A.subscribe("videoformatchange",
a.FD,a);a.A.subscribe("audioformatchange",a.ED,a);a.A.subscribe("error",a.Wh,a);a.A.subscribe("seekrequired",a.oG,a);b=kb(a.ca,"spacecast")||a.Ha;d=a.Fn();d=d.Wb.isDefault?void 0:d;a.A.initialize(a.b.startSeconds,FI(a),b,d);a.b.probeUrl&&(a.A.R=a.b.probeUrl);if(a.ca.length||a.Ha)a.A.F=!0;a.Ha&&xI(a);if(a.V.experiments.b("html5_background_quality_cap"))a:{a=y(a.EF,a);if(window.document.visibilityState)b="visibilitychange";else{if(!window.document[Uh+"VisibilityState"])break a;b=Uh+"visibilitychange"}window.document.addEventListener(b,
a,!1)}};
pI=function(a){var b=a.V.experiments.b("html5_background_quality_cap"),c=a.V.experiments.b("html5_background_cap_idle_secs");return!b||mr()/1E3<c?Qy:3==dG(a.V)?new My(0,b,!1):Qy};
xI=function(a){iv(a.o,new hG(new wq(4),a.B))};
cI=function(a){a.A&&(a.A.dispose(),a.A=null);a.H&&(a.H.dispose(),a.H=null)};
AI=function(a){a.H||(a.A?a.A.seek(a.getCurrentTime()):HI(a),a.H=new Iz(a.g.ma(),a.b.lengthSeconds,a.b.o.videoInfos[0].mimeType,a.b.o.b[0].mimeType,a.V.C),fba(a.H,y(a.A.Ey,a.A)),gba(a.H,y(function(a){gI(this,"fmt.unplayable",void 0,"msi.1;ename."+a.name)},a)));
try{return hba(a.H)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),gI(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}};
yI=function(a){AH(a.b);!a.b.H&&a.b.O||a.da||(a.da=!0,a.Y("signatureexpired"))};
II=function(a){return a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)};
sI=function(a){a.g&&(a.g.pause(),aI(a),cI(a),a.b&&(a.b.startSeconds=a.getCurrentTime()),a.M=window.NaN,$H(a.g),O(a.B,128)||eI(a,Aq(a.B)),a.V.G.remove(a.b.videoId))};
Kda=function(a){if(!a.g)return 0;if(vs(a.b))return 1;if(TH(a.b)){if(a.G)return 1;var b=a.g,c=b.je(),b=(0<eC(c)&&b.pf()?c.end(c.length-1):0)-NH(a.b);a=JI(a,!0)-NH(a.b);return Math.max(0,Math.min(1,b/a))}return KI(a.g)};
MI=function(a,b){var c={};if(b&&(a.o?sa(c,Wu(av(a.o,"playback"))):a.b&&(c.cpn=a.b.clientPlaybackNonce),a.g&&sa(c,LI(a.g)),a.A&&sa(c,xF(a.A)),c.state=a.B.g.toString(16),O(a.B,128)&&(c.debug_error=a.B.b),mI(a)&&(c.preroll="1"),a.b.fb&&(c.ismb=a.b.fb),a.b.isLowLatencyLiveStream&&(c.lowlatency="1"),a.b.xa&&(a.b.b&&ZG(a.b.b)&&(c.segduration=ZG(a.b.b)),a.R))){var d=a.R.A;c.lat=d.b[d.g]||0}c.debug_videoId=a.b.videoId;return c};
dI=function(a,b){a.Y("internalvideodatachange",b||"dataupdated",a,a.b)};
Ida=function(a){E("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.ia.S(this.g,a,this.uH,this)},a);
a.V.hd&&a.g.yh()&&(a.ia.S(a.g,"webkitplaybacktargetavailabilitychanged",a.cC,a),a.ia.S(a.g,"webkitcurrentplaybacktargetiswirelesschanged",a.dC,a))};
NI=function(a){var b=a.getCurrentTime(),c=a.b;!CC("pbs",a.D.b)&&tC.measure&&tC.getEntriesByName&&(tC.getEntriesByName("mark_nr")[0]?uC("mark_nr"):uC());c.videoId&&a.D.info("docid",c.videoId);c.eventId&&a.D.info("ei",c.eventId);c.clientPlaybackNonce&&a.D.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.D.info("start",c.startSeconds.toString());a.g&&a.g.bh()&&a.D.info("paused",1);c.g?a.D.info("fmt",Iu(c.g)):a.D.info("fmt","-1");c.Ke&&a.D.info("yt_pre",a.yb?"2":"1");a.V.M&&a.D.info("yt_fs","1");
a.D.info("cmt",b.toFixed(3));if(a.A){b=a.A;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.aa),c.length&&(c=c[0],aF(b,"vri",c.fetchStart),aF(b,"vdns",c.domainLookupEnd),aF(b,"vreq",c.requestStart),aF(b,"fvb",c.responseStart),aF(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.M),c.length&&(c=c[0],aF(b,"ari",c.fetchStart),aF(b,"adns",c.domainLookupEnd),aF(b,"areq",c.requestStart),aF(b,"avb",c.responseStart),aF(b,"arc",c.responseEnd)));
var b=b.ua,d;for(d in b)a.D.g(d,b[d])}};
Lda=function(a){if(a.la&&a.g){var b=a.g.Wi();b.length&&b.end(0)>a.la&&(a.g.tk(a.la),a.la=window.NaN,a.Sa=a.ia.S(a.g,"canplay",a.YC,a))}};
PI=function(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<NH(a.b)&&a.B.Wa())a.seekTo(window.Infinity,!0);else{if(a.G){var d=JI(a,!1);if(c<d-OI(a)){if(a.B.Wa()&&(a.b.Ka||vs(a.b))){a.seekTo(window.Infinity,!0);return}a.b.xa&&nI(a,!1)}}else a.b.xa&&zI(a,c)&&nI(a,!0);if(a.A&&(d=a.A,d.b)){d.resume();if(d.K&&!Lz(d.b)){var e=d.C<=c&&c<d.C+10,f=0<=cC(d.b.g.buffered,d.C+ZE.b);e&&f&&(d.K=!1)}d.K||(d.C=c);nF(d)}5<c&&(a.b.startSeconds=c);(d=lx())?nx(a.ua):Zi(a.ua);!Iq(a.B)&&a.g.bh()||O(a.B,128)||(e=y(a.aA,
a),0==a.g.Vi().length?a.ua=d?mx(e,100):Xi(e,100):a.ua=d?mx(e,500):Xi(e,500));a.b.Gd=c;!b&&a.B.Wa()&&a.o&&(c=a.o,c.o.update(),SH(c.b.videoData)&&c.b.videoData.da&&!c.M&&tu(c.o)>=c.b.videoData.da&&(c.A&&c.b.videoData.da&&(d=av(c,"delayplay"),d.Ha=!0,d.send(),c.M=!0),fv(c)),c.aa.A()&&c.aa.send());a.Y("progresssync",a,b)}}};
eI=function(a,b){var c=a.B;if(b.g!=c.g||b.b!=c.b){c=new hG(b,a.B);a.B=b;var d=!a.na.length;a.na.push(c);0>gv(c,8)&&(Zi(a.ba),a.ba=window.NaN,nI(a,!1));0<gv(c,8)&&!a.b.H&&(0,window.isNaN)(a.ba)&&(a.ba=Xi(y(a.Yr,a),15E3));0<gv(c,32)&&nI(a,!1);if(O(c.state,2)&&TH(a.b)){var e=a.getCurrentTime();a.b.lengthSeconds!=e&&(a.b.lengthSeconds=e,dI(a));PI(a,!0)}0<gv(c,2)&&a.Vm();a.V.experiments.Z("html5_suspend_manifest_on_pause")&&a.b.b&&a.b.xa&&(0>gv(c,8)?a.b.b.C.stop():0<gv(c,8)&&a.b.b.resume());a.V.experiments.Z("html5_check_for_reseek")&&
0<gv(c,1)&&(a.Ka=Xi(y(a.iG,a),5E3));a.o&&iv(a.o,c);if(d)try{for(d=0;d<a.na.length;d++){var c=a.na[d],f=a.C,e=c;if(f.af&&!f.C&&(f.we(),O(e.b,16))){var e=f,k=Nt(e.b,Math.max(e.o-2E3,0));null!=k&&0x7ffffffffffff>k&&e.A.start()}a.Y("statechange",c)}}finally{a.na.length=0}}};
QI=function(a){O(a.B,2)||O(a.B,32)||(a.M=window.NaN)};
nI=function(a,b){a.b.xa&&a.G!=b&&(a.G=b,a.Y("liveviewshift",b))};
Jda=function(a,b){Mda(a,b);a.V.Le?Xi(y(function(){BI(this.g)},a),0):BI(a.g)};
Mda=function(a,b){a.D.g("vta");zC("vta",void 0,"video_to_ad");jI(a.g,b);if(LH(a.b)&&LH(a.b)&&!a.F&&a.g){var c=a.b.F;if(c&&a.g.yh()){var d=a.g.ma();a.F=new QF(d,c,a.V.experiments,a.b.xa,a.b.drmSessionId,a.V.experiments.Z("html5_disable_drm_retry"));a.F.subscribe("newsession",a.YD,a);a.F.subscribe("licenseerror",a.zD,a);a.F.subscribe("qualitychange",a.AD,a);a.F.subscribe("heartbeatparams",a.tH,a);c=a.F;d=a.b.oauthToken;c.H=d;c.Y("oauthtoken",d)}else gI(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1")}a.H&&qx();Zi(a.ba);a.b.H||(a.ba=Xi(y(a.Yr,a),15E3))};
aI=function(a){a.F&&(a.F.dispose(),a.F=null)};
JI=function(a,b){if(!a.g)return 0;if(!a.b.xa){var c=a.b;return c.b&&!(0,window.isNaN)(XG(c.b))?XG(c.b):c.lengthSeconds}if(b&&(a.G||vs(a.b)))return a.getCurrentTime();if(a.A)return c=tF(a.A),Math.max(c,NH(a.b))||0;c=a.g.Wi();return(1>c.length?window.NaN:c.end(c.length-1))||0};
zI=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=JI(a,!1)-OI(a)};
OI=function(a){if(!a.b.b)return window.NaN;var b=a.V.experiments.b("html5_allowable_liveness_drift_chunks")||2;0<b&&!a.G&&b--;return b*ZG(a.b.b)};
SI=function(a,b,c){w(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);a.videoId=b&&b[2]?b[2]:null;return RI(a)};
RI=function(a,b,c){if(la(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}};
UI=function(a,b){F.call(this);this.app=a;this.b=null;this.o={};this.A={};this.C={};this.B={};this.g=null;this.playerType=b;T(this,"cueVideoById",this.Gn);T(this,"loadVideoById",this.Gu);T(this,"cueVideoByUrl",this.xH);T(this,"loadVideoByUrl",this.IH);T(this,"playVideo",this.Cd);T(this,"pauseVideo",this.pauseVideo);T(this,"stopVideo",this.hk);T(this,"clearVideo",this.vH);T(this,"getVideoBytesLoaded",this.DH);T(this,"getVideoBytesTotal",this.EH);T(this,"getVideoLoadedFraction",this.Hn);T(this,"getVideoStartBytes",
this.FH);T(this,"cuePlaylist",this.wH);T(this,"loadPlaylist",this.Fu);T(this,"nextVideo",this.ek);T(this,"previousVideo",this.fk);T(this,"playVideoAt",this.In);T(this,"setShuffle",this.LH);T(this,"setLoop",this.KH);T(this,"getPlaylist",this.dd);T(this,"getPlaylistIndex",this.BH);T(this,"getPlaylistId",this.ye);T(this,"loadModule",this.dk);T(this,"unloadModule",this.Lu);T(this,"setOption",this.gf);T(this,"getOption",this.Jb);T(this,"getOptions",this.Zh);T(this,"mute",this.mute);T(this,"unMute",this.Rf);
T(this,"isMuted",this.ed);T(this,"setVolume",this.setVolume);T(this,"getVolume",this.Mb);T(this,"seekTo",this.seekTo);T(this,"getPlayerState",this.getPlayerState);T(this,"getPlaybackRate",this.AH);T(this,"setPlaybackRate",this.$h);T(this,"getAvailablePlaybackRates",this.Xh);T(this,"getPlaybackQuality",this.ck);T(this,"setPlaybackQuality",this.gk);T(this,"getAvailableQualityLevels",this.Du);T(this,"getCurrentTime",this.getCurrentTime);T(this,"getDuration",this.Yh);T(this,"addEventListener",this.addEventListener);
T(this,"removeEventListener",this.removeEventListener);T(this,"getVideoUrl",this.getVideoUrl);T(this,"getDebugText",this.bk);T(this,"getVideoEmbedCode",this.Eu);T(this,"getVideoData",this.getVideoData);T(this,"addCueRange",this.Cu);T(this,"removeCueRange",this.Hu);T(this,"setSize",this.setSize);T(this,"getApiInterface",this.yH);T(this,"destroy",this.destroy);T(this,"showVideoInfo",this.Ku);T(this,"hideVideoInfo",this.GH);TI(this,"getInternalApiInterface",this.zH);TI(this,"getAdState",this.getAdState);
TI(this,"isNotServable",this.HH);TI(this,"getUpdatedConfigurationData",this.CH);TI(this,"updateRemoteReceivers",this.MH);TI(this,"sendAbandonmentPing",this.JH);TI(this,"setAutonav",this.Iu);TI(this,"setAutonavState",this.Ju);TI(this,"channelSubscribed",r);TI(this,"channelUnsubscribed",r)};
T=function(a,b,c){a.o[b]=y(c,a)};
TI=function(a,b,c){a.A[b]=y(c,a)};
VI=function(a,b){UI.call(this,a,b);T(this,"getPresentingPlayerType",this.getPresentingPlayerType);T(this,"addInfoCardXml",this.NH);T(this,"cueVideoByPlayerVars",this.OH);T(this,"loadVideoByPlayerVars",this.ik);T(this,"preloadVideoByPlayerVars",this.Ou);T(this,"seekBy",this.Dd);T(this,"updatePlaylist",this.eI);T(this,"updateLastActiveTime",this.dI);T(this,"updateVideoData",this.fI);T(this,"getStoryboardFormat",this.TH);T(this,"getProgressState",this.Sf);T(this,"getHousebrandProperties",this.RH);T(this,
"setPlaybackQualityRange",this.Qu);T(this,"getCurrentPlaylistSequence",this.QH);T(this,"canPlayType",this.canPlayType);T(this,"sendVideoStatsEngageEvent",this.Tf);T(this,"setCardsVisible",this.bi);T(this,"handleGlobalKeyDown",this.UH);T(this,"getAudioTrack",this.ai);T(this,"setAudioTrack",this.Kn);T(this,"getAvailableAudioTracks",this.Mu);T(this,"getMaxPlaybackQuality",this.SH);T(this,"setSizeStyle",this.aI);T(this,"forceFrescaUpdate",this.PH);T(this,"setAutonav",this.Iu);T(this,"setAutonavState",
this.Ju);T(this,"showControls",this.cI);T(this,"hideControls",this.VH);T(this,"getVisibilityState",this.getVisibilityState);T(this,"shouldSendVisibilityState",this.bI);T(this,"getVideoContentRect",this.Nu);T(this,"setSafetyMode",this.$H);T(this,"setFauxFullscreen",this.YH);T(this,"cancelPlayback",this.rp);T(this,"getVideoStats",this.gq);T(this,"updateSubtitlesUserSettings",this.Ln);T(this,"getSubtitlesUserSettings",this.Jn);T(this,"resetSubtitlesUserSettings",this.Pu);T(this,"isFastLoad",this.WH);
T(this,"isPeggedToLive",this.XH);T(this,"setMinimized",this.ZH)};
WI=function(a,b){VI.call(this,a,b)};
Nda=function(a){(a=XI(a.app))&&DI(a,!0)};
nq=function(a){return a.app.G};
ZI=function(a){a=nq(a).o;return!!a&&YI(a)};
aJ=function(a){var b=nq(a);a=Q(a);var c=b.o;return c&&$I(c)?!a.experiments.Z("mweb_autonav")||c.isAvailable:zs(b.$.getVideoData(),"ypc_module")};
bJ=function(a,b){a.Va("autonavcancel",b)};
Q=function(a){return a.app.V};
us=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.C.O:XI(b,a).getPlayerState()};
ny=function(a){return a.app.D};
cJ=function(a){return a.app.R&&!a.isFullscreen()||!!a.dd()};
eJ=function(a){if(a=dJ(nq(a),"captions"))a.K=!0,a.loaded?a.g&&a.g!=a.o.Re()?RB(a):a.Es():a.load()};
Cr=function(a){if(ai())if(a.isFullscreen())(a=Xh(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],window.document))&&a.call(window.document);else{a=ny(a).element;var b=Xh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.Aa("onFullscreenToggled",a.isFullscreen())};
fJ=function(a){return(a=XI(a.app))?Sy(VF(a.qa,a.b)):"unknown"};
gJ=function(a){(a=nq(a).g)?a.g?(a=a.g,a=a.b?a.b.Cf():{}):a={}:a={};return a};
hJ=function(a,b){Q(a).experiments.Z("ui_logging")&&yv(a,"controlclicked",{controlClicked:b})};
yv=function(a,b,c,d){var e=XI(a.app);c.event=b;a.isFullscreen()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
Aw=function(a){a.Va("cardstatechange",Nr(a)&&iJ(a)?1:0)};
Nr=function(a){return(a=dJ(nq(a),"iv-module"))?Fy(a):!1};
iJ=function(a){return(a=dJ(nq(a),"iv-module"))?Gy(a):!1};
QB=function(a){(a=XI(a.app))&&a.o&&ru(a.o.o)};
oy=function(a){a=a.app.ia;var b=ny(a.b).Ja(),b=new pg(0,0,b.width,b.height);if(a.B.g&&!jJ(a)){if(Q(a.b).Za){var c=kJ(a)?69:48;b.top+=c;b.height-=c}a.o&&(b.height-=kJ(a.o.b)?72:50)}return b};
xs=function(a,b){a.Aa("onFrescaStateChange",b);var c=XI(a.app);if(c&&b&&c.o){var c=c.o.g,d=b.hasActiveStream;Eu(c,Gu(c.b),"stream",[d?"A":"I"])}};
lJ=function(a){return(a=dJ(nq(a),"fresca"))?!!a.B&&a.B.o.g:!1};
mJ=function(a){var b=XI(a.app,1);if(!b)return!1;var c=b.getVideoData();return PH(c)&&!vs(c)&&2!=a.getPresentingPlayerType()&&(!mI(b)||3==a.getPresentingPlayerType())};
nJ=function(a){return a.app.da.play_pause||2==a.getPresentingPlayerType()?!0:!mI(XI(a.app,1))};
pJ=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=XI(d,a))c.C.Uh.apply(c.C,b),a&&d.getPresentingPlayerType()!=a||oJ(d,"cuerangesremoved",b)};
lq=function(a,b){var c=XI(a.app,a.playerType);c&&tI(c,b)};
qw=function(a,b,c){a=ny(a).element;var d=Bb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));Kf(a,b,d);b.setAttribute("data-layer",c)};
qJ=function(a){var b=Q(a);if(!b.yb)return!1;var c=a.getVideoData();if(!c)return!1;b=c.xa&&!b.experiments.Z("html5_live_endscreen");return!c.ypcPreview&&!b&&!kb(c.G,"ypc")&&!a.dd()};
Oda=function(a,b){var c=new P(["div","ytp-sb",["div","ytp-sb-subscribe",a.subscribeText],["div","ytp-sb-unsubscribe",a.unsubscribeText]]),d=uf("ytp-sb-subscribe",c.element),e=uf("ytp-sb-unsubscribe",c.element);a.subscribed&&I(c.element,"ytp-sb-subscribed");c.S(d,"click",function(){fk("/subscription_ajax",{method:"POST",Dc:{action_create_subscription_to_channel:1,c:b},Ib:{feature:a.feature}});I(c.element,"ytp-sb-subscribed")});
c.S(e,"click",function(){fk("/subscription_ajax",{method:"POST",Dc:{action_remove_subscriptions:1},Ib:{c:b}});oe(c.element,"ytp-sb-subscribed")});
return c};
Pda=function(a){this.id=a.id;this.type=a.type;this.title=a.title;this.metadata=a.metadata;this.callToAction=a.callToAction;this.imageUrl=a.imageUrl;this.B=a.displayImages;this.o=a.animatedDisplayImages;this.F=a.iconUrl;this.left=a.left;this.width=a.width;this.top=a.top;this.aspectRatio=a.aspectRatio;this.startMs=a.startMs;this.endMs=a.endMs;this.videoId=a.videoId;this.videoDuration=a.videoDuration;this.playlistId=a.playlistId;this.playlistLength=a.playlistLength;this.channelId=a.channelId;this.A=
a.htmlBlob;this.subscribeButton=a.subscribeButton;this.H=a.isSubscribe;this.b=a.targetUrl;this.C=a.sessionData||{};this.J=a.targetTab;this.g=a.accessibilityStr;this.G=a.isPlaceholder;this.impressionUrls=a.impressionUrls;this.D=a.hoverUrls;this.clickUrls=a.clickUrls};
rJ=function(a){this.startMs=a.startMs;this.impressionUrls=a.impressionUrls;this.skip=a.skip||!1;this.elements=[];a=a.elements;for(var b=0;b<a.length;b++)this.elements.push(new Pda(a[b]))};
sJ=function(a){iq.call(this,a);this.Na="creatorendscreen";this.o=null;this.G=!1;this.A=null;this.g={};this.C={};this.B=null;this.H=!1;this.J=null};
Qda=function(a){return tJ(a)?new sJ(a):null};
tJ=function(a){return uJ(Q(a).g)?!0:zs(a.getVideoData(),"iv_endscreen_url")};
uJ=function(a){return"creator-endscreen-editor"===a};
vJ=function(a,b){kq(a);a.B&&(a.B.detach(),a.B.dispose(),a.B=null);for(var c in a.g){var d=a.g[c];d.detach();d.dispose()}a.g={};a.C={};if((a.o=b)&&b.elements){c=[];var e=new fq(b.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen"});c.push(e);a.B=new P(["div","ytp-ce-shadow"]);qw(a.b,a.B.element,4);for(e=0;e<b.elements.length;++e){var f=b.elements[e];var d=f,k={VIDEO:a.Ly,PLAYLIST:a.Ky,CHANNEL:a.Jy,WEBSITE:a.My}[d.type];k?(k=k.call(a,d),d.G&&I(k.element,"ytp-ce-placeholder"),d=k):d=null;a.g[f.id]=d;
a.C[f.id]=f;qw(a.b,d.element,4);k=new fq(f.startMs,f.endMs,{id:"ytp-ce-element-"+f.id});c.push(k);Rda(a,d,f)}a.wb(c);a.Pn()}};
wJ=function(a,b){var c;b.B&&(c=b.B.thumbnails);!uJ(Q(a.b).g)&&a.J&&b.o&&b.o.thumbnails&&(c=b.o.thumbnails);return c?c[c.length-1].url:null};
xJ=function(a){return a?{style:"background-image: url("+a+")"}:{}};
Rda=function(a,b,c){b.N("mouseenter",y(a.On,a,b,c));b.N("mouseleave",y(a.Xu,a,b,c));b.N("click",y(a.Sr,a,c));b.N("keypress",y(a.Sr,a,c));b.N("focus",y(function(a,b){I(a.element,"ytp-ce-force-expand");this.On(a,b)},a,b,c));
b.N("blur",y(function(a,b){oe(a.element,"ytp-ce-force-expand");this.Xu(a,b)},a,b,c));
b.N("touchstart",y(a.On,a,b,c));var d=uf("ytp-ce-expanding-overlay-hider",b.element);d&&b.S(d,"touchstart",function(a){a=a||window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();oe(b.element,"ytp-ce-element-hover")});
var e=y(function(a,b,c){c=Of(c);E(c,function(c){e(c);Zf(c)&&(a.S(c,"focus",y(function(a,b){I(a.element,"ytp-ce-force-expand");yJ(this,b.id,!0)},this,a,b)),a.S(c,"click",y(function(a,b){I(a.element,"ytp-ce-force-expand");
yJ(this,b.id,!0);this.H=!0},this,a,b)),a.S(c,"blur",y(function(a,b){this.H?(this.H=!1,a.element.focus()):(oe(a.element,"ytp-ce-force-expand"),yJ(this,b.id,!1))},this,a,b)))},this)},a,b,c);
e(b.element)};
yJ=function(a,b,c){K(a.B.element,"ytp-ce-shadow-show",c);for(var d in a.g)d!=b&&K(a.g[d].element,"ytp-ce-element-shadow-show",c)};
zJ=function(a,b,c){function d(){k||(f++,f==e.length&&(l.stop(),c&&c()))}
if(!b||uJ(Q(a.b).g))c&&c();else{var e=Sda(a,b),f=0,k=!1,l=new he(function(){k=!0},1E3,a);
l.start();for(a=0;a<e.length;a++)Yp(e[a],d)}};
Sda=function(a,b){for(var c=a.b.getVideoData().clientPlaybackNonce,d=a.b.getCurrentTime().toFixed(2),c={CPN:c,AD_CPN:c,MT:d},d=[],e=0;e<b.length;e++)d.push(Tda(b[e],c));return d};
Tda=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})};
Uda=function(a,b){var c=new window.Image;c.onload=y(function(){this.J=0<c.width&&0<c.height;b()},a);
c.onerror=y(function(){this.J=!1;b()},a);
c.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};
AJ=function(a){iq.call(this,a);this.Na="heartbeat";this.logEvent="ypc_license";this.C=!1;this.B=0;this.A=!1;this.g=window.NaN;this.o=null};
BJ=function(a){return zs(a.getVideoData(),"ypc_license_checker_module")};
Vda=function(a){return BJ(a)?new AJ(a):null};
CJ=function(a){var b=a.b.getVideoData();return LH(b)?!!a.o:!!b.heartbeatToken};
DJ=function(a,b){if(!a.g&&a.C){var c=a.b.getVideoData();if(CJ(a)||c.xa)c=b,void 0==c&&(c=a.A?a.o?1E3*a.o.interval:a.b.getVideoData().heartbeatInterval||6E4:1E3),a.g=Xi(y(a.qG,a),c)}};
EJ=function(a,b,c){if(a.g){a.g=window.NaN;a.B++;var d=a.b.getVideoData();(d.heartbeatSoftFail?0:a.B>=(a.o?a.o.b:d.heartbeatRetries||5))?(d=N("YTP_ERROR_LICENSE"),gI(a.b.app.g,b?"heartbeat.net":"heartbeat.servererror",d,c)):DJ(a)}};
FJ=function(a){try{return eg(a)}catch(b){return null}};
GJ=function(a){a.B=0;a.g&&(Zi(a.g),a.g=window.NaN);a.A=!1};
HJ=function(a){a=a.fmt_list;if(!a)return{};var b=[];E(a,function(a){a.itag&&(b[a.itag.toString()]=a)});
return b};
IJ=function(a,b,c,d,e){if(!a)return null;var f=b.docid;b=HJ(b);return f&&b?Wda(a,f,b,c,d,e):null};
Wda=function(a,b,c,d,e,f){d=Ki(d.split(","),Sj);var k=ne(d,function(a){return!!c[a.itag]});
if(!k.length)return null;var l=Ng(a)||"",m=Og(a),n={};E(k,function(a){if(a){var b=JJ(a);b&&(n[b]=a)}});
var t=[];E(d,function(a){if(c[a.itag]){var d=fh(eh(rh(a.url),l),m),k=Lg(a.url),d=nh(nh(d,"orig_host",Jg(k[1],k[2],k[3],k[4])),"scid",b),u;for(u in f)d.b.get(u)||nh(d,u,f[u]);a.url=d.toString();u=c[a.itag];"clen"in a&&"byteLen"in u&&(a.clen=u.byteLen.toString());"init"in u&&"index"in u&&"init"in a&&"index"in a&&(a.init=u.init[0].toString()+"-"+u.init[1],a.index=u.index[0].toString()+"-"+u.index[1]);a.isAccelerated="1";e&&(a.isAcceleratedUiEnabled="1")}else if((u=JJ(a))&&n[u])return;t.push(Ug(a))});
return t.join(",")};
JJ=function(a){return a.quality?a.quality:a.quality_label||""};
Xda=function(a,b,c,d){var e=KJ(b);e?(e.status="success-prefetch-1",c(e)):a&&!b?c({status:"success"}):a?(a=Xj([a,"v1/cache/videos",b,"metadata"].join("/"),d),fk(a,{format:"JSON",method:"GET",timeout:2E3,tb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Lc:function(){var a=KJ(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})};
KJ=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};
LJ=function(a){F.call(this);this.b=a};
MJ=function(a,b,c,d,e,f,k){this.contentProfileToken=e||null;this.deviceId=f||null;this.hostname=a;this.status=b;this.active=c;this.g=d;this.b=k||null};
Yda=function(a){function b(){throw Error("encoding error");}
null==a&&b();var c=a.content_profile_token||null;c&&!w(c)&&b();var d=a.device_id||null;d&&!w(d)&&b();var e=a.hostname;e&&w(e)||b();var f=a.status||0;f&&!ia(f)&&b();var k=a.last_probe_tstamp||null;null===k||ia(f)||b();var l=a.active||!1;ha(l)||b();a=!1!==a.ux;ha(a)||b();return new MJ(e,f,l,a,c,d,k)};
Zda=function(a){var b=0,c=a.length,d={uc:-1640531527,Qc:-1640531527,c:314159265},e;for(e=c;12<=e;e-=12,b+=12)d.uc+=NJ(a,b),d.Qc+=NJ(a,b+4),d.c+=NJ(a,b+8),OJ(d);d.c+=c;switch(e){case 11:d.c+=a[b+10]<<24;case 10:d.c+=(a[b+9]&255)<<16;case 9:d.c+=(a[b+8]&255)<<8;case 8:d.Qc+=NJ(a,b+4);d.uc+=NJ(a,b);break;case 7:d.Qc+=(a[b+6]&255)<<16;case 6:d.Qc+=(a[b+5]&255)<<8;case 5:d.Qc+=a[b+4]&255;case 4:d.uc+=NJ(a,b);break;case 3:d.uc+=(a[b+2]&255)<<16;case 2:d.uc+=(a[b+1]&255)<<8;case 1:d.uc+=a[b+0]&255}return OJ(d)};
OJ=function(a){var b=a.uc,c=a.Qc,d=a.c,b=b-c-d^d>>>13,c=c-d-b^b<<8,d=d-b,d=d-c^c>>>13,b=b-c,b=b-d,b=b^d>>>12,c=c-d-b^b<<16,d=d-b,d=d-c^c>>>5,b=b-c,b=b-d,b=b^d>>>3,c=c-d-b^b<<10,d=d-b,d=d-c^c>>>15;a.uc=b;a.Qc=c;return a.c=d};
NJ=function(a,b){return PJ(a[b+0])+(PJ(a[b+1])<<8)+(PJ(a[b+2])<<16)+(PJ(a[b+3])<<24)};
PJ=function(a){return 127<a?a-256:a};
QJ=function(a){this.hash=a};
$da=function(){var a=Nj("yt-accelerator-settings-meta");return null==a?null:new QJ((0,window.isNaN)(a.h)?null:a.h)};
aea=function(){return new Fd(function(a,b){"XSRF_TOKEN"in Ti?a():kj("init",function(){"XSRF_TOKEN"in Ti?a():b(Error("no XSRF token after init"))})})};
bea=function(a,b,c,d){var e=ig({appliances:Ki(a,function(a){var b={active:a.active,status:a.status,ux:a.g};null!==a.contentProfileToken&&(b.content_profile_token=a.contentProfileToken);null!==a.deviceId&&(b.device_id=a.deviceId);return b})}),f=Zda(Wq(e+"v2"));
a=$da();null!==a&&a.hash===f?c():(a=function(){var a={client_info:e};b&&(a.session_token=b);fk("/accelerator_settings_ajax?action_update=1",{format:"JSON",method:"POST",Ib:a,timeout:3E4,tb:function(){var a=new QJ(f);Mj("yt-accelerator-settings-meta",(0,window.isNaN)(a.hash)?{}:{h:a.hash},600);c()},
onError:function(a){d(a)},
Lc:function(){d(Error("AJAX timeout"))}})},b?a():aea().then(a,d))};
RJ=function(a,b,c,d){this.status=a;this.contentProfileToken=b||null;this.deviceId=c||null;this.b=!1!==d;this.timestamp=Date.now()};
SJ=function(a,b,c,d){F.call(this);this.o=tb(a);this.C=b;this.A=d||12E4;this.B=c||5E3;this.b=this.g=null;cea(this)};
dea=function(a,b){var c=Date.now(),d=a.A,e=!1,f=ne(a.o,function(a){var b=a.b,f=c-b>=d;e||!a.active||f||(e=!0);return null===b||f||1!=a.status});
return b&&!e?f:ne(f,function(a){a=a.b;return null===a||c-a>=d})};
cea=function(a){if(!lb(a.o)){var b=function(c){a.g=null;a.b=eea(a,dea(a,c||!1));a.b.then(function(){a.b=null;a.g=Xi(b,a.A)})};
b(!0)}};
eea=function(a,b){var c=Ki(b,function(b){return fea(a,b)});
return Ud(Od(c),function(){Ki(c,function(a){a.cancel()})})};
fea=function(a,b){var c=null;return(new Fd(function(a){c=fk("//"+b.hostname+"/v1/cache/summary",{format:"JSON",method:"GET",timeout:this.B,tb:function(b,c){var d=!c||!c.hasOwnProperty("ux")||!!c.ux;a(new RJ(1,c&&c.cs,c&&c.gcdid,d))},
onError:function(b,c){var d=2;0===(b&&"status"in b?b.status:-1)&&(d=4);var e=!c||!c.hasOwnProperty("ux")||!!c.ux;a(new RJ(d,c&&c.cs,c&&c.gcdid,e))},
Lc:function(){a(new RJ(3))}})},a)).then(function(a){this.C(b,a)},function(){null!==c&&(c.abort(),c=null)},a)};
TJ=function(a,b){F.call(this);this.o="yt-accelerator-mutex-x-"+a;this.g="yt-accelerator-mutex-y-"+a;this.wa=b||Ra();this.b=0};
gea=function(a,b,c){var d=D()+100;return(new Fd(y(a.A,a,d))).then(function(a){try{b.call(c)}finally{Oj(this.g)}return a},function(a){this.b&&(Zi(this.b),this.b=0);
throw a;},a)};
UJ=function(a,b){F.call(this);this.Ac="yt-accelerator-master-"+a;this.wa=b||Ra();this.b=new TJ("master-"+a,this.wa)};
hea=function(a,b){return gea(a.b,function(){var a=Nj(this.Ac)||null;if(!a||a.id==this.wa||b&&5E3<D()-a.t)Mj(this.Ac,{id:this.wa,t:D()},120);else throw Error(a.id);},a)};
VJ=function(){this.b={};this.g={}};
WJ=function(){var a=Nj("yt-accelerator-discover"),b=new VJ;b.b=Rb(a&&a.addrmap||{},function(a){return Yda(a)});
b.g=a&&a.qparamsmap||{};return b};
XJ=function(a){for(var b in a.b){var c=a.b[b];if(c.active)return c}return null};
YJ=function(a,b){a.g=b};
iea=function(a){return{addrmap:Rb(a.b,function(a){return{hostname:a.hostname,content_profile_token:a.contentProfileToken,device_id:a.deviceId,status:a.status,active:a.active,ux:a.g,last_probe_tstamp:a.b}}),
qparamsmap:a.g}};
$J=function(a,b,c,d){F.call(this);this.o=new UJ("discover");this.A=0;this.g=null;this.b=WJ();this.C=c;this.B=om(window,"storage",y(this.iA,this));d?YJ(this.b,Qj(d,"&")):YJ(this.b,{});var e=0;if(!lb(a)){var f=Date.now();a=tb(a);Lb(a);E(a,function(a){if(!va(a,"dummy")){var b=this.b.b[a]||null;if(null===b){b=this.b;a=new MJ(a,0,!1,!0);if(null!=(b.b[a.hostname]||null))throw Error("entry already exists");b.b[a.hostname]=a;e++}else 12E5<f-b.b&&(b.b=0)}},this)}!b&&0<e&&!XJ(this.b)&&((this.b.b[a[0]]||null).active=
!0,ZJ(this));
b&&(this.qr(!0),this.A=Yi(y(this.qr,this),6E4))};
jea=function(a){var b=Date.now(),c=[];E(Xb(a.b.b),function(a){a.active&&(!a.b||12E5<b-a.b)?(a.active=!1,a.status=0):!a.active&&1!=a.status&&a.b&&12E5<b-a.b&&c.push(a)});
c&&E(c,function(a){delete this.b.b[a.hostname]},a)};
ZJ=function(a){cc(a.b.b)?a.reset():Mj("yt-accelerator-discover",iea(a.b),259200);bea(Xb(a.b.b),a.C,function(){},function(){})};
aK=function(){F.call(this);this.g=this.b=null};
bK=function(a){iq.call(this,a);this.logEvent=this.Na="spacecast";this.g=null;this.o={}};
kea=function(a){return a.getVideoData().spacecastModule?new bK(a):null};
cK=function(){};
dK=function(a){iq.call(this,a);this.Na="ypc_clickwrap";this.logEvent="ypc-clickwrap";cj({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.o=this.g=null};
lea=function(a){return zs(a.getVideoData(),"ypc_clickwrap_module")?new dK(a):null};
eK=function(){};
fK=function(a,b,c){this.G=0;this.D=a;this.B=b||.5;this.C=c||0;this.F="index";this.g=0;this.A=[]};
hK=function(a,b){gK(a,"value");var c=b*a.g,d=0,e=window.NaN;a.A.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e};
gK=function(a,b){a.F!=b&&(a.F=b,Eb(a.A,b))};
iK=function(a){this.A=a;this.g=[]};
mea=function(a){this.b=a;this.o=this.A=0;this.g=-1;this.D=Dq();this.C=new fK(4,.6);this.F=new $B(4);this.G=new iK(this.b.b);this.b.A?this.B=new $B(this.b.b):this.B=new fK(this.b.b,.5,.1);a=Nj("yt-player-bandwidth")||{};this.B.b(this.b.C,0<a.byterate?a.byterate:this.b.B);0<a.delay&&this.C.b(1,Math.min(+a.delay,2));0<a.tailDelay&&this.F.b(1,+a.tailDelay);this.g=Dq()};
UE=function(a,b,c){b=Math.max(b,.05);a.B.b(b,c/b);a.D=Dq()};
TE=function(a,b){a.C.b(1,b);-1<a.g&&3E4<Dq()-a.g&&jK(a)};
kK=function(a,b,c){a.b.g||((0,window.isNaN)(c)||(a.o+=c),(0,window.isNaN)(b)||(a.A+=b));a.G.b(b,c/b);a.D=Dq()};
lK=function(a,b,c){b=Math.max(b,8192);a.F.b(1,c/b);-1<a.g&&3E4<Dq()-a.g&&jK(a)};
PC=function(a){a=a.C.o();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
VE=function(a,b,c){a.b.g&&((0,window.isNaN)(c)||(a.o+=c),(0,window.isNaN)(b)||(a.A+=b))};
NC=function(a){return a.F.o()||0};
OC=function(a){var b=a.B.o(),b=0<b?b:1;if(!a.b.D)return b;a=a.G.o();a=0<a?a:1;return a>2*b?(b+a)/2:b};
mK=function(a){var b={};b.delay=PC(a);b.tailDelay=NC(a);b.byterate=OC(a);return b};
jK=function(a){Mj("yt-player-bandwidth",mK(a),2592E3);a.g=Dq()};
gF=function(a){return 4E3<=Dq()-a.D};
nea=function(){this.b=17;this.B=13E4;this.C=.5;this.A=!1;this.D=!0;this.o=0;this.g=!1};
oea=function(a){var b=new nea;HA(a)&&(b.A=!0,b.C=.1);a.experiments.Z("html5_ewma_bandwidth_estimator")&&(b.A=!0);a.experiments.Z("html5_incremental_cbw")&&(b.g=!0);a.experiments.Z("html5_disable_aux_bandwidth_estimator")&&(b.D=!1);a.xb&&(b.B=a.xb/8);b.b=a.experiments.b("html5_bandwidth_window_size")||b.b;return b};
nK=function(a,b){this.type=a||"";this.id=b||""};
oK=function(a){return new nK(a.substr(0,2),a.substr(2))};
rK=function(a){uk.call(this);this.startSeconds=0;this.H=!1;this.b=0;this.title="";this.A=0;this.g=[];this.D=this.B=!1;this.Ha=this.Ts=this.C=null;this.views=0;this.M=0!=a.fetch;this.o=[];this.b=Math.max(0,a.index||0);this.G=!!a.loop;this.startSeconds=a.startSeconds||0;this.O="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.K={};a.video_id&&(this.g[this.b]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list=
"PL"+a.api:a.playlist=a.api);this.F=0;if(a.list)switch(a.listType){case "user_uploads":pea(this,a.list);break;case "user_favorites":qea(this,a.list);break;case "search":rea(this,a.list);break;default:a.playlist_length&&(this.A=a.playlist_length),this.listId=oK(a.list),a.video?(this.g=a.video.slice(0),this.B=!0):sea(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.b&&(this.g=[]);E(b,function(a){a&&this.g.push({video_id:a})},this);
this.A=this.g.length;b=Ki(this.g,function(a){return a.video_id});
pK(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.B=!0}qK(this,!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in vH.b)b="playlist_"+c,b=a[b+"_webp"]||a[b],CA.test(b)&&(this.K[vH.b[c]]=b);this.J=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
sK=function(a){return!!(a.playlist||a.list||a.api)};
tK=function(a){var b=a.b+1;return b>=a.A?0:b};
uK=function(a){var b=a.b-1;return 0>b?a.A-1:b};
qK=function(a,b){a.H=b;var c=a.o&&null!=a.o[a.b]?a.o[a.b]:a.b;a.o=[];for(var d=0;d<a.g.length;d++)a.o.push(d);a.b=c;a.F++;if(a.H){c=a.o[a.b];for(d=1;d<a.o.length;d++){var e=Math.floor(Math.random()*(d+1)),f=a.o[d];a.o[d]=a.o[e];a.o[e]=f}for(d=0;d<a.o.length;d++)a.o[d]==c&&(a.b=d);a.F++}a.Y("shuffle")};
vK=function(a,b){a.b=df(b,0,a.A-1);a.startSeconds=0};
pea=function(a,b){a.D||(a.listId=new nK("UU","PLAYER_"+b),pK(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
qea=function(a,b){a.D||(a.listId=new nK("FL","PLAYER_"+b),pK(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
rea=function(a,b){if(!a.D){a.listId=new nK("SR",b);var c={search_query:b};a.O&&(c.mob="1");pK(a,"/search_ajax?style=json&embeddable=1",c)}};
sea=function(a){if(!a.D){var b={list:a.listId},c=a.Gb();c&&c.videoId&&(b.v=c.videoId);pK(a,"/list_ajax?style=json&action_get_list=1",b)}};
pK=function(a,b,c){a.M&&fk(Wg(b,c),{format:"JSON",tb:y(function(a,b){wK(this,b)},a),
onError:y(function(){this.Y("error")},a)})};
wK=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.Gb();a.g=[];E(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.g.push(a))},a);
a.A=a.g.length;b.index?a.b=b.index:tea(a,c);qK(a,!1);a.D=!1;a.B=!0;a.F++;a.C&&a.C()}};
tea=function(a,b){if(b){var c=b.videoId;if(!a.g[a.b]||a.g[a.b].video_id!=c)for(var d=0;d<a.g.length;d++)if(a.g[d].video_id==c){a.b=d;break}}};
xK=function(a){uk.call(this);this.b=a;this.loaded=!1};
yK=function(a){P.call(this,a);this.O=new uk;G(this,this.O)};
zK=function(a,b){yK.call(this,{I:"div",fa:["html5-endscreen","ytp-player-content",b||"base-endscreen"]});this.b=a;this.K=!1};
AK=function(){P.call(this,["div","ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])};
BK=function(a,b){P.call(this,b||{I:"div",W:"ytp-thumbnail-overlay"});this.A=new Ev(this,250);G(this,this.A);this.b=a};
CK=function(a){BK.call(this,a,{I:"div",fa:["ytp-thumbnail-overlay","ytp-channel-overlay"],P:[{I:"div",W:"ytp-thumbnail-overlay-image",U:{style:"{{background}}"}},{I:"div",W:"ytp-thumbnail-overlay-curtain"}]})};
DK=function(a){zK.call(this,a,"subscribecard-endscreen");this.o=new CK(a);G(this,this.o);qw(this.b,this.o.element,4);this.A=new AK;G(this,this.A);this.oa()};
EK=function(a){return sK(a)?(a.fetch=0,new rK(a)):new vH(a)};
FK=function(a,b,c,d){var e=b.Gb();K(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Xg();d=b.Hc(c,d?d:"mqdefault.jpg");var k=b instanceof vH?Uq(b.lengthSeconds):null,l=!!f,f=l&&"RD"==oK(f).type;c={title:b.title,author:b.author,author_and_views:e.shortViewCount?b.author+" \u2022 "+e.shortViewCount:b.author,watch:N("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.Fl(c),is_featured:e.ar,is_list:l,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof rK&&(c.playlist_length=
b.A);a.update(c)};
GK=function(a){var b=Q(a).experiments.Z("moving_thumbnails_autonav"),c={I:"img",W:"ytp-upnext-moving-thumbnail",U:{src:"{{moving_thumbnail}}"}},c={I:"div",W:"ytp-upnext",U:{"aria-label":"{{watch}}"},P:[{I:"div",W:"ytp-thumbnail-overlay-image",U:{style:"{{background}}"}},b?c:null,{I:"div",W:"ytp-thumbnail-overlay-curtain"},{I:"span",W:"ytp-upnext-top",P:[{I:"span",W:"ytp-upnext-header",P:[N("YTP_PLAYLIST_UP_NEXT")]},{I:"span",W:"ytp-upnext-title",P:["{{title}}"]},{I:"span",W:"ytp-upnext-author",P:["{{author}}"]}]},
{I:"a",W:"ytp-upnext-autoplay-icon",U:{href:"{{url}}"},P:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 98 98",width:"100%"},P:[{I:"circle",W:"ytp-svg-autoplay-circle",U:{cx:"49",cy:"49",fill:"#000","fill-opacity":"0.8",r:"48"}},{I:"circle",W:"ytp-svg-autoplay-ring",U:{cx:"-49",cy:"49","fill-opacity":"0",r:"46.5",stroke:"#FFFFFF","stroke-dasharray":"293","stroke-dashoffset":"-293","stroke-width":"4",transform:"rotate(-90)"}},{I:"polygon",W:"ytp-svg-autoplay-triangle",U:{fill:"#fff",points:"32,27 72,49 32,71"}}]}]},
{I:"span",W:"ytp-upnext-bottom",P:[{I:"span",W:"ytp-upnext-cancel"},{I:"span",W:"ytp-upnext-paused",P:[N("YTP_AUTOPLAY_PAUSED_2")]}]},{I:"span",W:"ytp-upnext-close"}]};P.call(this,c);var d=this.pa["ytp-upnext-cancel"],c=this.pa["ytp-upnext-close"],e=new P({I:"button",fa:["ytp-upnext-cancel-button","ytp-button"],U:{tabindex:0,"aria-label":N("YTP_AUTOPLAY_CANCEL")},P:[N("YTP_CANCEL")]});G(this,e);e.N("click",this.Kr,this);e.Ba(d);d=new P({I:"button",fa:["ytp-upnext-close-button","ytp-button"]});G(this,
d);d.N("click",this.Kr,this);d.Ba(c);this.o=a;this.G=this.pa["ytp-svg-autoplay-ring"];this.C=this.B=this.b=this.A=null;this.D=new he(this.Ji,5E3,this);G(this,this.D);this.F=0;this.S(this.pa["ytp-upnext-autoplay-icon"],"click",this.jE);this.Jr();this.S(a,"autonavvisibility",this.Jr);b&&this.S(this.pa["ytp-upnext-moving-thumbnail"],"load",this.XJ)};
HK=function(a){a.b||(lj("a11y-announce",N("YTP_PLAYLIST_UP_NEXT")+" "+a.A.title),a.F=Dq(),a.b=new he(a.Lk,25,a),a.Lk());oe(a.element,"ytp-upnext-autoplay-paused")};
JK=function(a){IK(a);a.F=Dq();a.Lk();I(a.element,"ytp-upnext-autoplay-paused")};
IK=function(a){a.b&&(a.b.dispose(),a.b=null)};
KK=function(a){var b=Q(a),c=b.experiments.Z("video_wall_moving_thumbnails_autoplay"),d=b.experiments.Z("video_wall_moving_thumbnails_hover"),c=c||d;this.B=b.D;b=gm||Dc?{style:"will-change: opacity"}:null;d={I:"img",W:"ytp-videowall-moving-thumbnail",U:{src:"{{moving_thumbnail}}"}};P.call(this,{I:"a",W:"ytp-videowall-still",U:{href:"{{url}}",target:this.B?"_blank":null,"aria-label":"{{watch}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},P:[{I:"div",
W:"ytp-videowall-still-image",U:{style:"{{background}}"}},c?d:null,{I:"span",W:"ytp-videowall-still-featured-label",P:[N("YTP_FEATURED")]},{I:"span",W:"ytp-videowall-still-info",P:[{I:"span",W:"ytp-videowall-still-info-bg",P:[{I:"span",W:"ytp-videowall-still-info-content",U:b,P:[{I:"span",W:"ytp-videowall-still-info-title",P:["{{title}}"]},{I:"span",W:"ytp-videowall-still-info-author",P:["{{author_and_views}}"]},{I:"span",W:"ytp-videowall-still-info-duration",P:["{{duration}}"]}]}]}]},{I:"span",fa:["ytp-videowall-still-listlabel-regular",
"ytp-videowall-still-listlabel"],P:[{I:"span",W:"ytp-videowall-still-listlabel-icon"},N("YTP_PLAYLIST"),{I:"span",W:"ytp-videowall-still-listlabel-length",P:[" (",{I:"span",P:["{{playlist_length}}"]},")"]}]},{I:"span",fa:["ytp-videowall-still-listlabel-mix","ytp-videowall-still-listlabel"],P:[{I:"span",W:"ytp-videowall-still-listlabel-mix-icon"},N("YTP_MIX"),{I:"span",W:"ytp-videowall-still-listlabel-length",P:[" (50+)"]}]}]});this.o=a;this.b=null;this.N("click",this.xI);this.N("keypress",this.yI);
c&&this.S(this.pa["ytp-videowall-moving-thumbnail"],"load",this.AI)};
LK=function(a){if(5E5<OC(a.o.app.la)){var b=a.b.Ui();b&&a.update({moving_thumbnail:b})}};
MK=function(a,b){zK.call(this,a,"videowall-endscreen");this.ba=a;this.X=b;this.F=0;this.B=[];this.G=this.C=this.o=null;this.H=this.R=!1;this.D=new ix(this);G(this,this.D);this.J=new he(ra(I,this.element,"ytp-show-tiles"),0);G(this,this.J);var c=new P({I:"button",fa:["ytp-button","ytp-endscreen-previous"],U:{"aria-label":N("YTP_PREVIOUS")},P:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},P:[{I:"path",U:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}]});
G(this,c);c.Ba(this.element);c.N("click",this.GC,this);this.M=new Mq({I:"div",W:"ytp-endscreen-content"});G(this,this.M);this.M.Ba(this.element);c=new P({I:"button",fa:["ytp-button","ytp-endscreen-next"],U:{"aria-label":N("YTP_NEXT")},P:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},P:[{I:"path",U:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}]});G(this,c);c.Ba(this.element);c.N("click",this.FC,this);this.A=new GK(a);G(this,this.A);qw(this.b,
this.A.element,4);this.oa()};
NK=function(a){return qJ(a.b)&&a.Pk()&&!a.G};
OK=function(a){return Ki(a.R,function(a){return EK(a)})};
PK=function(a,b,c){return 0==b&&a.o.length&&(b=c/MK.b,2<=c/MK.b&&2<=b&&Q(a.b).experiments.Z("video_wall_emphasize_first"))?2*MK.b:MK.b};
QK=function(a){var b=YI(a.X);b!=a.R&&(a.R=b,a.b.Va("autonavvisibility"))};
g.SK=function(a){xK.call(this,a);cj({});this.g=null;this.isAvailable=!0;this.o=new ix(this);G(this,this.o);var b=Q(a);RK(a)?this.g=new MK(this.b,this):b.ha?this.g=new DK(this.b):this.g=new zK(this.b);G(this,this.g);qw(this.b,this.g.element,4);this.Zs();this.o.S(a,"videodatachange",this.Zs,this);this.o.S(a,"crn_endscreen",this.pI,this);this.o.S(a,"crx_endscreen",this.qI,this)};
$I=function(a){var b=a.b.getVideoData(),c=!RK(a.b)||!(!b.R||!b.R.length),b=zs(b,"ypc_module");a=TK(a.b.app);return c&&!b&&!a};
RK=function(a){a=Q(a);return a.Gd&&!a.ha};
YI=function(a){return a.g instanceof MK&&a.g.g&&NK(a.g)};
UK=function(a){this.$=a;this.g=null;this.b=new pg(0,0,0,0);this.B=new lf(0,0);this.A=this.o=0;LA&&zc(11)&&(this.g=window.document.createElement("canvas").getContext("2d"),zc(12.10532)||(this.o=3))};
VK=function(a,b,c,d,e,f){e>=f?(d+=Math.random()*f|0,f=1):(c+=Math.random()*e|0,e=1);try{a.g.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.g.getImageData(c,d,e,f).data;for(b=0;b<a.length;b+=4)if(255<a[b]+a[b+1]+a[b+2]+a[b+3])return!0;return!1};
WK=function(a,b,c){this.F=b||!1;this.C=c||null;this.g="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.B=new UK(a)};
XK=function(a,b){WK.call(this,a);this.g="precision mediump float;\nuniform sampler2D uSplr;\nuniform int mode;\nvarying vec2 vTexCrd;\nuniform mat4 mLt;\nuniform mat4 mRt;\nvoid anaglyph(float x, float y) {\n  x *= 0.5;\n  vec4 cLt = texture2D(uSplr, vec2(x, y));\n  vec4 cRt = texture2D(uSplr, vec2(0.5 + x, y));\n  gl_FragColor = mLt * cLt + mRt * cRt;\n}\nvoid main(void) {\n  if (mode == 2) {\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  }\n  else if (mode == 1) {\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n  }\n}";
this.D=b;this.A=null;this.b=Nj("yt-player-webgl-anaglyph-3d-display-mode")||2;this.o=!0};
YK=function(a,b){WK.call(this,a,!0,b);this.g="precision highp float;\nuniform sampler2D uSplr;\nuniform sampler2D uNoiseSplr;\nuniform float seed;\nuniform float amount;\nuniform float offset;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr, vTexCrd).xyz, 1.0);\n  vec4 noiseCol = texture2D(uNoiseSplr, vTexCrd + seed);\n  float maxCol = max(max(col.x, col.y), col.z);\n  float amt = amount * smoothstep(0.0, 0.1, maxCol);\n  amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  col.xyz = col.xyz + (noiseCol.x - offset) * amt;\n  gl_FragColor = col;\n}";
this.o=null;this.$=a};
ZK=function(a,b){YK.call(this,a,b);this.g="precision highp float;\nuniform sampler2D uSplr;\nuniform float seed;\nuniform int mode;\nvarying vec2 vTexCrd;\nfloat noise(vec2 crd)\n{\n  return fract(sin(crd.y * 99.87 + crd.x * 0.0978) * seed);\n}\nvoid main(void) {\n  if (mode == 0) { gl_FragColor = texture2D(uSplr,vTexCrd); return; }\n  vec2 texCrdMinusx = vec2(vTexCrd.x - 0.00156, vTexCrd.y);\n  vec2 texCrdMinusy = vec2(vTexCrd.x, vTexCrd.y - 0.00277);\n  vec4 orjcol = texture2D(uSplr,vTexCrd);\n  vec4 col = orjcol * 1.8 -\n      texture2D(uSplr,texCrdMinusx) * 0.4 -\n      texture2D(uSplr,texCrdMinusy) * 0.4;\n  vec4 diff = orjcol * 2.0 -\n      texture2D(uSplr,texCrdMinusx) -\n      texture2D(uSplr,texCrdMinusy);\n  float fDiff = length(diff);\n  float maxCol = max(max(orjcol.x, orjcol.y), orjcol.z);\n  float namt = 0.035;\n  namt = namt * smoothstep(0.0, 0.1, maxCol);\n  namt = namt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  float noiseL = noise(gl_FragCoord.xy) * namt;\n  float eamt = smoothstep(0.0, 0.05, fDiff);\n  col = eamt * col + (1.0 - eamt) * orjcol;\n  col.xyz = col.xyz + ((1.0 - eamt) * noiseL);\n  gl_FragColor = col;\n}";
this.b=null;this.A=!1};
$K=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
aL=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
bL=function(a){var b=a[0],c=a[1];a=a[2];return Math.sqrt(b*b+c*c+a*a)};
eL=function(a,b,c,d,e,f,k){this.D=f;this.B=Math.cos(k);this.C=Math.sin(k);this.b=cL(a);this.g=cL(a);this.o=cL(a);this.A=cL(a);c.connect(this.b,b.w,0);c.connect(this.g,b.x,0);c.connect(this.o,b.y,0);c.connect(this.A,b.z,0);this.b.connect(d,0,e);this.g.connect(d,0,e);this.o.connect(d,0,e);this.A.connect(d,0,e);dL(this,0,0);this.b.gain.value=1-this.D};
dL=function(a,b,c){var d=Math.sin(b);b=Math.cos(b);var e=Math.sin(c);c=Math.cos(c);a.g.gain.value=b*c*a.B-d*a.C;a.o.gain.value=d*c*a.B+b*a.C;a.A.gain.value=e*a.B};
fL=function(a,b,c){this.b=a;this.o=c;this.A=this.g=null};
gL=function(a,b,c){fL.call(this,a,0,c);this.C=this.B=null};
hL=function(a){return 1==a?{w:2,x:0,y:1,z:4,channelCount:6}:2==a?{w:0,x:3,y:1,z:2,channelCount:4}:{}};
iL=function(){this.b=new window.Float32Array(16);this.o=new window.Float32Array(16);this.g=new window.Float32Array(16);this.identity()};
jL=function(a,b){for(var c=0;16>c;c+=4)a.g[c+0]=a.b[c+0]*b[0]+a.b[c+1]*b[4]+a.b[c+2]*b[8]+a.b[c+3]*b[12],a.g[c+1]=a.b[c+0]*b[1]+a.b[c+1]*b[5]+a.b[c+2]*b[9]+a.b[c+3]*b[13],a.g[c+2]=a.b[c+0]*b[2]+a.b[c+1]*b[6]+a.b[c+2]*b[10]+a.b[c+3]*b[14],a.g[c+3]=a.b[c+0]*b[3]+a.b[c+1]*b[7]+a.b[c+2]*b[11]+a.b[c+3]*b[15];c=a.b;a.b=a.g;a.g=c};
kL=function(a){var b=new window.Float32Array(3),c=bL(a);b[0]=a[0]/c;b[1]=a[1]/c;b[2]=a[2]/c;a=1/(Math.abs(b[0])+Math.abs(b[1])+Math.abs(b[2]));b[0]*=a;b[1]*=a;b[2]*=a;0<b[2]&&(a=(1-Math.abs(b[0]))*(0<b[1]?1:-1),b[0]=(1-Math.abs(b[1]))*(0<b[0]?1:-1),b[1]=a);b[0]*=.5;b[1]*=.5;b[2]*=.5;b[0]+=.5;b[1]+=.5;a=Math.floor(256*b[0]);b=Math.floor(256*b[1]);256==a&&--a;256==b&&--b;return{x:a,y:255-b}};
uea=function(a){function b(a,b){var c,d=b;for(c=0;a[c]!=b;++c){var e=a[c];a[c]=d;d=e}a[c]=d;return c}
var c=a.length,d=Array(2*c+3),e=0;d[0]=0;d[1]=c>>8&255;d[2]=c&255;for(var e=3,f=Array(256),k=Array(256),l=Array(256),m=0;256>m;++m)f[m]=m,k[m]=m,l[m]=0;for(var n=0,t=0,m=0;m<c;++m){var u=a[m],x=b(f,u);k[t]==u?l[t]+=4:0==(l[t]>>=1)&&(k[t]=u,l[t]=1);1<l[u]&&b(f,k[u]);t=u;0==x&&++n;if(0!=x||m+1==c){for(;0<n;)--n,0==n%2?d[e++]=0:d[e++]=254,n>>=1;if(255==x||254==x)d[e++]=255;0!=x&&(d[e++]=x)}}return d.slice(0,e)};
vea=function(){this.C=this.F=this.g=this.D=this.o=0;this.B=new window.Float32Array(3);this.A=-1;this.b=[]};
lL=function(a,b){this.H=a;this.o=null;this.R=b;this.B=new iL;this.C=.872;this.aa=this.ba=this.X=this.g=this.b=0;this.D=!0;this.A=this.F=0;this.J=new window.Float32Array(3);this.da=new vea};
mL=function(a,b){lL.call(this,a,b);this.ca=this.ea=this.ga=this.Ma=null;this.K=new UK(a)};
nL=function(a,b){mL.call(this,a,b);this.O=null;this.G=Nj("yt-player-webgl-spherical-3d-display-mode")||1;this.M=!0};
oL=function(a,b,c){this.D=c;this.A=ny(a).b;this.H=10;this.B=!0;this.R=this.M=this.X=this.o=this.g=null;this.aa=b;this.b=null;this.$=a;this.C=new pg(0,0,0,0);this.J=!1;this.G=!0};
xea=function(a,b){a.g=window.document.createElement("canvas");if(!a.g)return 1;a.D.appendChild(a.g);var c=b||Q(a.$).experiments.Z("webgl_use_creation_attribs")?{alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:b}:null;try{a.o=a.g.getContext("webgl",c)||(b?null:a.g.getContext("experimental-webgl"))}catch(e){return 2}if(null==a.o)return 3;c=wea(a);if(0!=c)return c;var c=a.o,d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new window.Float32Array([-1,-1,0,1,-1,
0,-1,1,0,1,1,0]),c.STATIC_DRAW);a.M=d;c=a.o;d=c.createTexture();c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,d);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);a.X=d;c=a.o;c.clearColor(0,0,0,1);c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT);c.bindBuffer(c.ARRAY_BUFFER,a.M);c.vertexAttribPointer(a.O,
3,c.FLOAT,!1,0,0);a.K();a.A.crossOrigin="use-credentials";return 0};
wea=function(a){var b=a.o,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.b.Yi());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.b.Si());b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e);if(0==
b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.O=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.O);a.R=e;a.b.$c(b,a.R,a.D);return 0};
g.pL=function(a){xK.call(this,a);this.o=new ix(this);G(this,this.o);this.A=new P({I:"div",W:"webgl"});G(this,this.A);this.$=a;this.g=null;this.load()};
qL=function(a,b){if(a.g){var c=a.g;c.b&&c.b.di(b)}};
yea=function(a){a=a.A;this.o=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.A=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.b=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;CA.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.g=a.ypc_item_url;this.videoId=a.ypc_vid};
rL=function(){yK.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"],Fh()],["button",["ytp-drawer-open-button","ytp-button"]]]);this.S(this.pa["ytp-drawer-close-button"],"click",this.o);this.S(this.pa["ytp-drawer-open-button"],"click",this.show);this.b=new he(ra(oe,this.element,"ytp-drawer-closed"),0);G(this,this.b);this.Nb(null);this.oa()};
sL=function(a,b,c){uk.call(this);this.o=0==c;this.b=new rL;this.b.subscribe("close-clicked",this.B,this);G(this,this.b);this.A=window.document.createElement("div");I(this.A,"html5-ypc-endscreen");this.g=new P({I:"div",W:"html5-ypc-module",P:[{I:"div",W:"html5-ypc-action-heading",P:["{{heading}}"]},{I:"div",W:"html5-ypc-thumbnail",P:["{{thumbnail_element}}"]},{I:"div",W:"html5-ypc-title",P:["{{title}}"]},{I:"div",W:"html5-ypc-description",P:["{{description}}"]},{I:"button",fa:["html5-ypc-purchase",
"ytp-button"],P:["{{button_label}}"]}]});G(this,this.g);this.D=this.g.pa["html5-ypc-purchase"];this.g.S(this.D,"click",this.C,this);c=b.title;b.g&&(c=["a",{href:b.g,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.g.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.Ba(a)};
tL=function(a){a.o||(a.A.appendChild(a.g.element),a.b.Nb(null),Rq(a.A,"block"))};
g.uL=function(a){xK.call(this,a);this.g=this.C=this.o=null;this.D=new he(function(){var a=this.g;a.o||a.b.oa()},0,this);
this.A=null;this.B=new ix(this);G(this,this.B);this.load()};
vL=function(a,b){F.call(this);this.F=b;this.B=this.g=this.o=null;this.b=[];this.J={};this.A={};this.C={};this.G=null;this.$=a;this.D=[];this.H=null;this.K=Q(a).experiments.Z("no_player_module_warnings")||.05<=Math.random()};
wL=function(a){var b=Q(a.$);if("leanback"==b.b||b.Vb||!b.Gd&&!b.ha)return!1;var c=a.$.getPresentingPlayerType();if(2==c||3==c)return!1;if(b.experiments.Z("html5_live_endscreen"))return!0;a=a.$.getVideoData();return!!a&&!a.xa};
yL=function(a,b,c,d){try{var e=q(xL[b]);Q(a.$).experiments.Z("player_no_remote_modules")&&(e=zea[b]);if(d){if(e){var f=a.F,k=e._version;k?a.K||k==f||aj(Error("Module "+b+" out of sync: "+f+" != "+k,"WARNING")):e._version=f;return new e(a.$)}Aea(a,b,c)}else lq(a.$,b)}catch(l){lq(a.$,b),aj(l)}return null};
zL=function(a){a.o&&(Nb(a.o),a.o=null);a.g&&(Nb(a.g),a.g=null);a.B&&(Nb(a.B),a.B=null);a.b=ne(a.b,function(a){try{a.destroy()}catch(c){aj(c)}return!1},a)};
Bea=function(a,b,c){AL(a);a.H=b;a.D=tb(c);E(a.b,function(a){0<=jb(c,a.Na)&&(a.F=b,a.zj(!!a.F))})};
AL=function(a){E(a.D,function(a){if(a=dJ(this,a))a.F=null,a.zj(!1)},a);
a.H=null;a.D=[]};
BL=function(a){a=dJ(a,"iv-module");return!(!a||!a.loaded)};
CL=function(a,b){if(!b)return Ki(a.b,function(a){return a.Na});
var c=dJ(a,b);return c?c.Uf():[]};
dJ=function(a,b){return fb(a.b,function(a){return a.Na==b})};
Cea=function(a){var b={};E(a.b,function(a){sa(b,a.ci())});
return b};
Aea=function(a,b,c){if(a.F){for(var d=a.F+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=window.document.createElement("script"),f=!0);var n=y(function(){this.isDisposed()||c.call(this)},a),t=y(function(){this.isDisposed()||lq(this.$,b)},a);
k.onload=ra(function(a){sd(n);a&&a()},k.onload);
k.onerror=ra(function(a){sd(t);a&&a()},k.onerror);
k.onreadystatechange=ra(function(a){switch(k.readyState){case "loaded":case "complete":sd(n,this)}a&&a()},k.onreadystatechange);
f&&(k.src=d,d=window.document.getElementsByTagName("head")[0]||window.document.body,d.insertBefore(k,d.firstChild),Mb(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.ca(xL[b],null,void 0)}))}};
DL=function(a,b,c){this.b=b;this.g=c;this.B=a;this.o=!0};
EL=function(a,b){mc.call(this,"adError");this.o=a;this.b=b?b:null};
FL=function(a,b,c){mc.call(this,a);this.o=b;this.b=null!=c?c:null};
Dea=function(a){this.b=a};
Eea=function(){var a=GL();return HL(a,"disableExperiments")};
HL=function(a,b){if($b(a.b,b)){var c=a.b[b];if(ha(c))return c}return!1};
Fea=function(a){if($b(a.b,"forceExperimentIds")){a=a.b.forceExperimentIds;var b=[],c=0;fa(a)&&E(a,function(a){ia(a)&&(b[c++]=a)});
return b}return null};
IL=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
JL=function(){this.o="always";this.F=4;this.A=1;this.g=!1;this.C=!0;this.H=!1;this.D=!0;this.G=null};
GL=function(){var a=U;if(null==a.G){var b={},c=(new M(Bf().location.href)).b;if(yh(c,"tcnfp"))try{b=eg(c.get("tcnfp"))}catch(d){}a.G=new Dea(b)}return a.G};
KL=function(){};
LL=function(a,b,c,d){this.wa=a;this.b=df(c||0,0,1);this.g=null!=d?d:!0};
ML=function(a){this.wa=a;this.g=new Cg;this.b=null};
Gea=function(a){var b=Math.random(),c=0,d=a.g.Ra();E(d,function(a){c+=a.b},a);
var e=1<c?c:1;a.b=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].b,f/e>=b){a.b=d[k];break}};
Iea=function(){this.o=null!=aa.G_testRunner;this.b=new KL;this.g=new Cg;NL(this,"GvnExternalLayer",31061774,.01);NL(this,"GvnExternalLayer",31061775,.01);NL(this,"GvnExternalLayer",41351016,.05);NL(this,"GvnExternalLayer",41351017,.05);NL(this,"GvnExternalLayer",41351020,.05);NL(this,"GvnExternalLayer",41351021,.05);NL(this,"GvnExternalLayer",41351088,.01);NL(this,"GvnExternalLayer",41351089,.01);NL(this,"GvnExternalLayer",136961001,.01);NL(this,"GvnExternalLayer",136961002,.01);NL(this,"GvnExternalLayer",
420706008,.05);NL(this,"GvnExternalLayer",420706009,.05);NL(this,"GvnExternalLayer",231422001,.05);NL(this,"GvnExternalLayer",231422002,.05);NL(this,"GvnExternalLayer",31061780,.01);NL(this,"GvnExternalLayer",31061781,.01);NL(this,"GvnExternalLayer",420706010,.2);NL(this,"GvnExternalLayer",420706011,.2);NL(this,"ActiveViewExternalLayer",21592054,.05);NL(this,"ActiveViewExternalLayer",21592055,.05);NL(this,"GvnExternalLayer",21592052,.01);NL(this,"GvnExternalLayer",21592053,.01);NL(this,"GvnExternalLayer",
420706024,.01);NL(this,"GvnExternalLayer",420706025,.01);Hea(this);var a;a=GL();a=Fea(a);null!=a&&(this.o=!1,OL(this,a.map(String)))};
QL=function(){PL||(PL=new Iea);return PL};
Jea=function(a,b){a.b=b};
Kea=function(){var a=QL();E(a.g.Ua(),function(a){va(a,"FORCED_PUB_EXP_LAYER_")&&this.g.remove(a)},a)};
NL=function(a,b,c,d){B(C(b))||(0,window.isNaN)(c)||0>=c||(c=new LL(c,0,d),RL(a,b).g.set(c.getId(),c))};
Hea=function(a){Eea()||E(a.g.Ra(),function(a){Gea(a)},a)};
OL=function(a,b){E(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;(0,window.isNaN)(b)||0>=b||B(C(a))||(RL(this,a).b=new LL(b,0,0,!0))},a)};
SL=function(a,b){return a.o?!1:Wh(a.g.Ra(),function(a){return!!a.b&&a.b.getId()==b})};
TL=function(a){if(a.o)return"";var b=[];E(a.g.Ra(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});
return b.sort().join(",")};
RL=function(a,b){var c=a.g.get(b);null==c&&(c=new ML(b),a.g.set(b,c));return c};
VL=function(a){return null!=a?UL(Lea,a):!1};
UL=function(a,b){try{var c=(new M(b)).g,c=c.replace(/^www./i,"");return Wh(a,function(a){return Mea(a,c)})}catch(d){return!1}};
Mea=function(a,b){if(B(C(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};
XL=function(a){var b=!1;WL(a,Nea)?b=!1:VL(a)?b=!0:"https:"==window.location.protocol&&(WL(a,Oea)||U.b())&&(b=!0);if(b){b=new M(a);if("https"==b.A)return a;dh(b,"https");return b.toString()}return a};
WL=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
YL=function(a){window.open(a,"_blank")};
$L=function(a,b,c){null==a?a="":(nh(a,"label",b),null!=c&&nh(a,"value",c.join(";")),a=a.toString());ZL(a)};
aM=function(a,b,c,d){null!=a&&null!=b&&(a=ou(a,b));try{if(null!=c){b=a;var e=(c||{}).viewability||"na";if(B(C(e)))a=b;else{var f=new M(b);yh(f.b,"label")?(nh(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=ou(c,k);if(2048>l.length){a=l;break a}}a=c}}catch(m){}return a};
ZL=function(a,b,c,d){a=aM(a,b,c,void 0);try{a=XL(a);var e=QL(),f=!U.b()||SL(e,41351089)||e.b.Z("html5_detect_image_pings"),k=e.b.Z("html5_try_beacons");null!=d&&d?bM.Ct(a,f):U.D?bM.sG(a,f,k):bM.xt(a,f,k)}catch(l){}};
cM=function(a,b){null!=a&&E(a,function(a){ZL(a,b)})};
Pea=function(a,b){if(B(C(b)))return a;var c=new M(a),d=c.g;return null!=d&&wa(d,".g.doubleclick.net")?(nh(c,"ged",b),c.toString()):a};
dM=function(a,b){this.message=a;this.errorCode=b};
fM=function(a,b,c){return eM("adLoadError",a,b||null,vb(arguments,2))};
gM=function(a,b,c){return eM("adPlayError",a,b||null,vb(arguments,2))};
hM=function(a,b,c,d,e){var f=a.apply(null,sb([c,d],vb(arguments,3)));b.dispatchEvent(new FL("log",null,f))};
eM=function(a,b,c,d){if(c instanceof DL)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 DL(a,b,e);a.A=c;return a};
iM=function(a,b,c,d){var e=gM.apply(null,sb([b,c],vb(arguments,3)));a.dispatchEvent(new EL(e))};
kM=function(){return!jM()&&(tc("iPod")||tc("iPhone")||tc("Android")||tc("IEMobile"))};
jM=function(){return tc("iPad")||tc("Android")&&!tc("Mobile")||tc("Silk")};
lM=function(){return kM()||jM()};
nM=function(){return Qea&&!mM||Na(sc,"iPod")};
oM=function(){return nM()||mM};
rM=function(a){return JA&&pM(qM,a)};
pM=function(a,b){if(null==sM[b]){var c=tM(a);c?(c=c.replace(/_/g,"."),sM[b]=0<=Ua(c,b)):sM[b]=!1}return sM[b]};
tM=function(a){B(uM)&&(a=a.exec(sc))&&(uM=a[1]);return uM};
vM=function(){var a=sc;return a?Na(a,"Nintendo WiiU"):!1};
wM=function(){var a;if(!(a=Na(sc,"CrKey")||Na(sc,"PlayStation")||Na(sc,"Roku")))if(a=sc){var b=Na(a,"AppleTV")||Na(a,"GoogleTV")||Na(a,"HbbTV")||Na(a,"NetCast.TV")||Na(a,"Opera TV")||Na(a,"POV_TV")||Na(a,"SMART-TV")||Na(a,"SmartTV");a=SL(QL(),420706011)?b||Na(a,"TV Store")||Na(a,"OMI/")||Na(a,"Presto")&&Na(a,"Linux")&&!Na(a,"X11")&&!Na(a,"Android")&&!Na(a,"Mobi"):b}else a=!1;return a||Na(sc,"Xbox")};
AM=function(){return nM()||JA&&!rM(4)||!U.b()&&wM()?!1:!0};
BM=function(){this.reset()};
CM=function(a,b){null!=b&&a.g!=b?(a.b=1,a.g=b):a.b=null!=b?a.b+1:1;return a.b};
DM=function(){this.g=this.b=null};
FM=function(){this.b=EM();this.J=-1;this.K=this.M=this.C=this.H=this.g=null;this.B=EM();this.A=null;this.R=this.D=this.F="";this.G=this.O=this.X=this.o=null;this.aa=!1};
EM=function(){return Math.floor(4503599627370496*Math.random())};
GM=function(a){null==a.C&&(a.C=new BM);return a.C};
HM=function(a){if(U.g){var b;return"h.3.0.0"}b="h."+a.R;null!=a.o&&(b+="/n."+a.o,null!=a.g&&(b+="/"+a.g));return b};
IM=function(){this.b=.01>Math.random();this.g=Math.floor(4503599627370496*Math.random())};
LM=function(a,b,c,d){if(a.b||d){c=c||{};c.lid=b;c.sdkv=HM(JM);b=TL(QL());B(C(b))||(c.e=b);c=Rea(a,c);var e=new M("http://pagead2.googlesyndication.com/pagead/gen_204");Pb(c,function(a,b){nh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=KM();dh(e,a.A);ZL(e.toString())}};
Rea=function(a,b){b.id="ima_html5";var c=KM();b.c=a.g;b.domain=c.g;return b};
KM=function(){var a=Bf(),b=window.document;return new M(a.parent==a?a.location.href:b.referrer)};
MM=function(){};
PM=function(a,b,c){a.b=null;b||(b=[]);a.D=void 0;a.A=-1;a.g=b;a:{if(a.g.length){b=a.g.length-1;var d=a.g[b];if(d&&"object"==typeof d&&!fa(d)&&!(NM&&d instanceof window.Uint8Array)){a.B=b-a.A;a.o=d;break a}}a.B=Number.MAX_VALUE}a.C={};if(c)for(b=0;b<c.length;b++)d=c[b],d<a.B?(d+=a.A,a.g[d]=a.g[d]||OM):a.o[d]=a.o[d]||OM};
W=function(a,b){if(b<a.B){var c=b+a.A,d=a.g[c];return d===OM?a.g[c]=[]:d}d=a.o[b];return d===OM?a.o[b]=[]:d};
QM=function(a,b,c){a.b||(a.b={});if(!a.b[c]){var d=W(a,c);d&&(a.b[c]=new b(d))}return a.b[c]};
Sea=function(a){var b=RM;a.b||(a.b={});if(!a.b[1]){for(var c=W(a,1),d=[],e=0;e<c.length;e++)d[e]=new b(c[e]);a.b[1]=d}b=a.b[1];b==OM&&(b=a.b[1]=[]);return b};
TM=function(a){if(a.b)for(var b in a.b){var c=a.b[b];if(fa(c))for(var d=0;d<c.length;d++)c[d]&&SM(c[d]);else c&&SM(c)}};
SM=function(a){TM(a);return a.g};
UM=function(a){var b;if(fa(a)){for(var c=Array(a.length),d=0;d<a.length;d++)null!=(b=a[d])&&(c[d]="object"==typeof b?UM(b):b);return c}if(NM&&a instanceof window.Uint8Array)return new window.Uint8Array(a);c={};for(d in a)null!=(b=a[d])&&(c[d]="object"==typeof b?UM(b):b);return c};
VM=function(a){PM(this,a,null)};
WM=function(a){PM(this,a,null)};
XM=function(a){PM(this,a,null)};
YM=function(a){PM(this,a,null)};
ZM=function(a){PM(this,a,null)};
$M=function(a){PM(this,a,null)};
aN=function(a){PM(this,a,null)};
bN=function(a){PM(this,a,Tea)};
RM=function(a){PM(this,a,null)};
cN=function(){};
dN=function(){return Math.round(D()/1E3)};
Uea=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:dN()};
eN=function(a){for(var b=[],c=a=Bf(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
fN=function(){this.b={};this.g=0};
gN=function(a,b){this.B=a;this.o=!0;this.b=b};
hN=function(a,b){gN.call(this,String(a),b);this.A=a;this.b=!!b};
iN=function(a,b){gN.call(this,a,b)};
jN=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 iN("",new pg(c,b,Number(a[3])-c,Number(a[2])-b))}return new iN("",new pg(0,0,0,0))};
lN=function(){kN||(kN=new fN);return kN};
mN=function(a){var b=new pg(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new pg(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};
nN=function(a,b){var c=a.getBoundingClientRect(),d=Ys(a,b);return new pg(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
oN=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 pg(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;a.setItem(new gN("vp",d));d&&0<d?(e=qg(b),f=qg(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new hN(512,e));d&&0<d?(e=qg(b),f=qg(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new hN(1024,
e));d&&0<d?(e=qg(b),f=qg(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new hN(2048,e));d&&0<d?(b=qg(b),c=qg(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new hN(4096,c))}};
pN=function(){this.g=-1};
qN=function(){this.b={};return this};
rN=function(a,b){a.b.eb=fc(a.b,"eb",0)|b};
Vea=function(a,b){var c=0;Zb(Bf(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=lN();d.b={};var f=new hN(32,!0);f.o=!1;d.setItem(f);f=Bf().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new hN(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=Bf().top;try{l=!!m.location.href||""===m.location.href}catch(u){l=!1}if(l){var n=eN(e);k=n&&0!=n.length?"1":"0"}else k="2"}catch(u){k=
"2"}d.setItem(new hN(256,"2"==k));d.setItem(new hN(128,"1"==k));n=l=Bf().top;"2"==k&&(n=Bf());m=nN(e,n);d.setItem(new iN("er",m));var t;try{t=n.document&&!n.document.body?null:xf(n||window)}catch(u){t=null}t?(n=Af(rf(n.document).b),d.setItem(new hN(16384,!!n)),t=n?new pg(n.x,n.y,t.width,t.height):null):t=null;d.setItem(new iN("vi",t));if(t&&"1"==k){k=eN(e);e=[];for(n=0;n<k.length;n++)(f=nN(k[n],l))&&e.push(f);e.push(t);t=mN(e)}oN(d,m,t);d.g&&(k=dN()-d.g,d.setItem(new gN("ts",k)));d.g=dN()}else d=
lN(),d.b={},d.g=dN(),d.setItem(new hN(32,!1));this.o=d;this.b=new qN;this.b.set("ve",4);c&&rN(this.b,1);Zb(Bf(),"ima","video","client","crossdomainTag")&&rN(this.b,4);Zb(Bf(),"ima","video","client","sdkTag")&&rN(this.b,8);Zb(Bf(),"ima","video","client","jsTag")&&rN(this.b,2);b&&fc(b,"fullscreen",!1)&&rN(this.b,16);this.g=d=null;if(c&&(c=Zb(Bf(),"ima","video","client"),c.getEData)){this.g=c.getEData();if(c=Zb(Bf(),"ima","video","client","getLastSnapshotFromTop"))if(k=c())this.g.extendWithDataFromTopIframe(k.tagstamp,
k.playstamp,k.lactstamp),c=this.o,d=k.er,k=k.vi,d&&k&&(d=jN(d).getValue(),k=jN(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new iN("er",e))),c.getItem("vi")&&(t=c.getItem("vi").getValue(),t.top+=d.top,t.left+=d.left,l=[],l.push(t),l.push(d),l.push(k),d=mN(l),oN(c,e,d),c.setItem(new iN("vi",k))));a:{if(this.g){if(this.g.getTagLoadTimestamp){d=this.g.getTagLoadTimestamp();break a}if(this.g.getTimeSinceTagLoadSeconds){d=this.g.getTimeSinceTagLoadSeconds();
break a}}d=null}}this.b.set("td",dN()-Uea(d))};
Wea=function(a,b){try{var c=new Vea(a,b),d=[],e=Number(c.b.get("eb"));c.b.remove("eb");var f,k=c.b,l=[],m;for(m in k.b)l.push(m+k.b[m]);(f=l.join("_"))&&d.push(f);if(c.g){var n=c.g.serialize();n&&d.push(n)}var t,u=c.o;f=e;k=[];f||(f=0);for(var x in u.b){var z=u.b[x];if(z instanceof hN)z.getValue()&&(f|=z.A);else{var J,V=u.b[x];(J=V.o?V.g():"")&&k.push(x+J)}}k.push("eb"+String(f));(t=k.join("_"))&&d.push(t);c.b.set("eb",e);return d.join("_")}catch(S){return"tle;"+Ma(S.name,12)+";"+Ma(S.message,40)}};
sN=function(a){try{return!!a&&null!=a.location.href&&pc(a,"foo")}catch(b){return!1}};
Xea=function(){var a=[2,1];if(!(1E-4>Math.random())){var b=Math.random();if(.05>b){var c=window;try{var d=new window.Uint32Array(1);c.crypto.getRandomValues(d);b=d[0]/65536/65536}catch(e){b=Math.random()}return a[Math.floor(b*a.length)]}}return null};
tN=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Yea=function(){var a=aa;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};
Zea=function(){var a=uN;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""};
$ea=function(a,b){this.b=a;this.g=b};
vN=function(a,b){this.url=a;this.fr=!!b;this.depth=ia(void 0)?void 0:null};
xN=function(a){a=a?a:wN();for(var b=new vN(aa.location.href,!1),c=a.length-1,d=c;0<=d;--d){var e=a[d];if(e.url&&!e.fr){b=e;break}}d=null;e=a.length&&a[c].url;0!=b.depth&&e&&(d=a[c]);return new $ea(b,d)};
wN=function(){var a=aa,b=[],c,d=null;do{var e=a;sN(e)?(c=e.location.href,d=e.document&&e.document.referrer||null):(c=d,d=null);b.push(new vN(c||""));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=aa;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.fr=!0);return b};
yN=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)};
zN=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};
AN=function(a,b,c,d,e){this.C=c||4E3;this.o=a||"&";this.D=b||",$";this.A=p(d)?d:"trn";this.G=e||null;this.B=!1;this.g={};this.F=0;this.b=[]};
BN=function(a,b){var c={};c[a]=b;return[c]};
CN=function(a,b,c,d){a.b.push(b);a.g[b]=BN(c,d)};
bfa=function(a,b,c,d){b=b+"//"+c+d;var e=afa(a)-d.length-0;if(0>e)return"";a.b.sort(function(a,b){return a-b});
d=null;c="";for(var f=0;f<a.b.length;f++)for(var k=a.b[f],l=a.g[k],m=0;m<l.length;m++){if(!e){d=null==d?k:d;break}var n=DN(l[m],a.o,a.D);if(n){n=c+n;if(e>=n.length){e-=n.length;b+=n;c=a.o;break}else a.B&&(c=e,n[c-1]==a.o&&--c,b+=n.substr(0,c),c=a.o,e=0);d=null==d?k:d}}f="";a.A&&null!=d&&(f=c+a.A+"="+(a.G||d));return b+f+""};
afa=function(a){if(!a.A)return a.C;var b=1,c;for(c in a.g)b=c.length>b?c.length:b;return a.C-a.A.length-b-a.o.length-1};
DN=function(a,b,c,d,e){var f=[];tN(a,function(a,l){var k=EN(a,b,c,d,e);k&&f.push(l+"="+k)});
return f.join(b)};
EN=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(EN(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)(DN(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))};
GN=function(a,b,c,d,e){if((d?a.o:Math.random())<(e||a.b))try{var f;c instanceof AN?f=c:(f=new AN,tN(c,function(a,b){var c=f,d=c.F++,e=BN(b,a);c.b.push(d);c.g[d]=e}));
var k=bfa(f,a.g,a.A,a.B+b+"&");k&&FN(aa,k)}catch(l){}};
FN=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);zN(d,"load",e);zN(d,"error",e)};
yN(d,"load",e);yN(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
HN=function(a,b,c){this.o=a;this.B=b;this.g=c;this.A=this.b};
IN=function(a,b,c){this.message=a;this.b=b||"";this.g=c||-1};
KN=function(a,b,c,d,e){var f;try{f=c()}catch(m){var k=a.g;try{var l=JN(m),k=(e||a.A).call(a,b,l,void 0,d)}catch(n){a.b("pAR",n)}if(!k)throw m;}finally{}return f};
MN=function(a,b,c,d){var e=LN;return function(){for(var f=[],k=0;k<arguments.length;++k)f[k]=arguments[k];return KN(e,a,function(){return b.apply(c,f)},d)}};
JN=function(a){return new IN(NN(a),a.fileName,a.lineNumber)};
NN=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};
ON=function(a){a.u_tz=-(new Date).getTimezoneOffset();var b;try{b=X.history.length}catch(c){b=0}a.u_his=b;if(b=!!X.navigator)b="unknown"!==typeof X.navigator.javaEnabled;a.u_java=b&&!!X.navigator.javaEnabled&&X.navigator.javaEnabled();X.screen&&(a.u_h=X.screen.height,a.u_w=X.screen.width,a.u_ah=X.screen.availHeight,a.u_aw=X.screen.availWidth,a.u_cd=X.screen.colorDepth);X.navigator&&X.navigator.plugins&&(a.u_nplug=X.navigator.plugins.length);X.navigator&&X.navigator.mimeTypes&&(a.u_nmime=X.navigator.mimeTypes.length)};
TN=function(a,b){var c=cfa;if(!PN)return KN(LN,a,b,void 0,c);var d=QN?X.performance.now():D(),c=KN(LN,a,b,void 0,c),d=Math.round((QN?X.performance.now():D())-d);RN.push(a+"."+d);SN||(SN=X.setTimeout(dfa,500));return c};
dfa=function(){RN.length&&(GN(UN,"execution_time",{data:RN.join(","),nav_api:QN?1:0},!0,PN?1:0),RN=[],X.clearTimeout(SN),SN=void 0)};
VN=function(a,b,c,d){return MN(a,b,c,d)};
WN=function(a,b){return MN(a,b,void 0,void 0)};
XN=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
ZN=function(){var a;YN.mozVisibilityState?a="mozvisibilitychange":YN.webkitVisibilityState?a="webkitvisibilitychange":YN.visibilityState&&(a="visibilitychange");return a};
$N=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
cO=function(){var a=X&&X.document;aO.e=-1;aO.i=6;aO.n=7;aO.t=8;if(!bO){var b=[];tN(aO,function(a,c){b[a+1]=c});
var c=b.join("");bO=(c=a&&a[c])&&y(c,a)}return bO};
eO=function(){return YF&&rz&&Az("6.0.1")&&0<=Ua(dO,"10.1")?!0:!1};
fO=function(a,b){var c=a||X;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new lf(-1,-1):b?(new lf(c.innerWidth,c.innerHeight)).round():xf(c||window).round()}catch(d){return new lf(-12245933,-12245933)}};
efa=function(){var a=gO.getInstance().F,b=0<=hO?iO()-hO:-1,c=jO?iO()-kO:-1,d=0<=lO?iO()-lO:-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};
iO=function(){return(new Date).getTime()-ffa};
mO=function(){var a=L("DIV");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
nO=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Ns(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=pf(b))){var c,d;try{if(c=Bf(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return nO(d)}return!1};
gfa=function(){this.B=[0,0,0,0,0];this.o=[0,0,0,0,0];this.b=[0,0,0,0,0];this.D=[0,0,0,0,0];this.A=this.F=this.C=this.g=-1};
oO=function(a,b,c,d){c=MN(d||"osd_or_lidar::"+b,c,void 0,void 0);yN(a,b,c,void 0);return c};
pO=function(a,b){this.A=null;this.D=a;this.G=b||1;this.b="u"};
qO=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.G){case 4:return a.D?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new jf(e,f),new jf(c-e,f),new jf(e,d-f),new jf(c-e,d-f)]):[new jf(e,0),new jf(0,f),new jf(e,d-1),new jf(c-1,f)];case 3:return[new jf(c-1,0),new jf(e,f),new jf(0,d-1)];default:return[new jf(e,f)]}};
rO=function(a,b){var c;try{c=b||a.A.getBoundingClientRect()}catch(e){c=new og(0,0,0,0)}var d=qO(a,c);E(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
sO=function(a,b){pO.call(this,a,b);this.g=[];this.F=!1;this.o=-1;this.B=this.C=0};
hfa=function(a,b,c){this.snapshot=a;this.g=b;this.b=c};
ifa=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ua(dO,"11")&&c)||zf&&9>xc||0<a.g.length)return!1;try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=pf(b),k=[];if(e){var l=mO(),d=qO(a,d);E(d,function(a,b){var d=new tO("e",f,c,String(b));this.g.push(d);k.push(y(d.F,d,l,a))},a);
Kf(b,l,0)}else d=rO(a,d),E(d,function(a,d){var e=new tO("e",f,c,String(d));this.g.push(e);k.push(y(e.D,e,b,a))},a);
var m=!0;E(k,function(a){m=m&&a()});
m?(a.b="l",a.A=b,a.F=!e):(E(a.g,function(a){a.remove()}),a.g=[]);
return m};
jfa=function(a){if(a.A&&a.F){var b=rO(a);E(b,function(a,b){this.g[b]&&uO(this.g[b],a)},a)}};
vO=function(a){E(a.g,function(a){a.remove()});
a.g=[];a.b="d"};
ofa=function(a){var b=D(),c=a.C?b-a.C:0,d=-1,e=Ki(a.g,function(a){return wO(a,b)});
4==a.g.length?d=a.D?kfa(e):lfa(e):3==a.g.length?d=mfa(e):1==a.g.length&&(d=[-1,0,1,2,3,5][wO(a.g[0],b)+1]);a.B=d==a.o?a.B+c:0;c=new hfa(d,a.o,c);a.o=d;a.C=b;nfa(a,d);jfa(a);return c};
yO=function(a){var b=Jb(Ub(xO));E(a,function(a){0<=a&&++b[a]});
return b};
lfa=function(a){a=yO(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};
mfa=function(a){var b=yO(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};
kfa=function(a){a=yO(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};
nfa=function(a,b){if(0==b&&zO(a))a.b="n";else switch(b){case -1:a.b="d";break;case 0:a.b="l";break;case 1:a.b="f";break;case 2:a.b="c";break;case 3:case 4:case 5:case 6:a.b="r"}};
zO=function(a){return"n"==a.b?!0:"l"==a.b&&3E3<=a.B};
tO=function(a,b,c,d){this.b=null;this.A=a;this.wa="e"==a?String(c)+"~"+String(d):"";this.g=[];this.o=-1;this.C=0;this.B=Jb(Ub(pfa));this.H=Jb(Ub(xO));"e"==this.A&&(AO[this.wa]=y(this.G,this));zf?(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="'+BO(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=qfa(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.b=a};
qfa=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=BO(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.A?"":"hidden";e.style.opacity=0;return e};
BO=function(a,b){var c=Vg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.wa);"s"==a.A&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Vg(c,"delay","1"));return c};
uO=function(a,b){a.b&&!kf(b,Ss(a.b))&&Rs(a.b,b)};
wO=function(a,b){if("e"==a.A){var c=null;try{c=a.b.it()}catch(f){}null===c?(c=0,0<a.o&&(c=2)):c=c?3:4;++a.H[c+1];a.o=c}else{var d=Number(b),e=CO(a);rfa(a,e,d);c=a.g[a.g.length-1];if(null===e){if(e=d=0,0<a.o||ia(c.Qj))e=d=2}else null===c.Qj||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.Qj?(c=(e-c.Qj)/(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.C&&6==c&&(c=7),e=c):e=d=1;6==a.C&&(--a.B[6],4==e||8==e?++a.B[5]:++a.B[7]);++a.B[e];a.o=d;a.C=e}return a.o};
CO=function(a){var b=null;try{b=a.b.fc()}catch(c){}return b};
rfa=function(a,b,c){var d=c-1E3,e=a.g.length;E(a.g,function(a,b){a.timeMs<=d&&(e=Math.min(e,b+1))});
var f=a.g.length-e;0<f&&a.g.splice(e,f);a.g.unshift({Qj:b,timeMs:c})};
DO=function(){this.C=!0;this.g=new tO("s",YN);this.B=!1;this.G=this.D=this.O=this.b=this.A=this.F=this.J=this.K=this.M=this.o=this.H=null};
EO=function(a,b){b!==a.b&&(a.b=b,a.M(b))};
FO=function(a){var b=CO(a.g);null===a.O&&null!==b&&null!==a.D&&(a.O=D()-a.D);return b};
GO=function(a){var b=a.H.getBoundingClientRect(),c;c=null!=a.J?a.J.clone():new jf(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.B&&(c.x+=b.left,c.y+=b.top);return c};
HO=function(a){a.B&&(a.K=GO(a));uO(a.g,a.K);a.F=X.setTimeout(WN("osd_or_lidar::sfm_tpto",y(a.aa,a)),125)};
sfa=function(a){if(a.C){var b=y(function(){1===XN(YN)?(this.A=null,HO(this)):(X.clearTimeout(this.F),EO(this,0))},a),c=ZN();
if(c){var d=oO(YN,c,b,"osd_or_lidar::sfm_pv");a.G=function(){zN(YN,c,d);this.G=null}}a.C=!1;
a.b=null;b()}};
IO=function(a){a.C||(X.clearTimeout(a.F),null===a.G||a.G(),a.C=!0)};
JO=function(a,b){pO.call(this,a,b);this.g=[];this.B=this.F=null;this.o=!0;this.C=null};
tfa=function(a,b,c){if(null!==a.B)return!1;a.A=b;a.F=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?qO(a,c):rO(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new DO,k;k=f;var l=b,m=y(a.H,a),n=e;if(null!==k.D)k=!1;else{var t="DIV"==l.tagName||"INS"==l.tagName;k.B=!t;k.H=l;e=GO(k);if(null!=n){e=n;n=new jf(0,0);if(k.B){var u=k.H.getBoundingClientRect();n.x+=u.left;n.y+=u.top}k.J=new jf(e.x-n.x,e.y-n.y)}k.M=m;t?(k.o=mO(),Kf(l,k.o,0),l=k.g.F(k.o,e)):l=k.g.D(l,e);l?(k.D=D(),k.K=e,k=!0):
(k.g.remove(),k.o&&Lf(k.o),k=!1)}if(!k)return KO(a),a.b="c",!1;a.g.push(f)}a.B=D();a.b="l";return!0};
wfa=function(a){var b=Jb(Ub(ufa));E(a.g,function(a){null!=a.b&&0<=a.b&&++b[a.b]});
switch(a.G){case 4:return vfa(a,b);case 3:return 1==a.g[0].b&&1==a.g[2].b?3:1==a.g[1].b?2:0<b[1]?1:0;default:return 1==b[1]?2:0}};
vfa=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};
LO=function(a){a.o&&null!==a.B&&"d"!=a.b&&(E(a.g,function(a){sfa(a)}),a.b="r",a.o=!1)};
MO=function(a){a.o||(E(a.g,function(a){IO(a)}),a.o=!0)};
KO=function(a){MO(a);E(a.g,function(a){IO(a);a.g&&(a.g.remove(),a.g=null);a.o&&(Lf(a.o),a.o=null)});
a.g=[];a.b="d"};
gO=function(){this.D=!1;this.F=void 0;this.g=!sN(X.top);var a=wN();this.G=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Ng(a[a.length-1].url)||"":"";this.A=this.C=this.b=null;this.H=0;this.o=!1;this.B=new og(0,0,0,0)};
OO=function(a,b,c){this.position=NO.clone();this.aa=0;this.J=new gfa;this.Ub=-2;this.rf=D();this.Ge=-1;this.ba=b;this.ca=-1!=b;this.ia=-1;this.ha=null;this.opacity=-1;this.Ee=c;this.Ie=this.ce=r;this.X=this.element=a;this.g=null;this.ea=1;this.Ga=!1;this.A=null;this.Ec=this.Ka=!1;this.yb=1;this.Fe=!0;this.Db=!1;this.qf=gO.getInstance().H++;this.Jd=this.o=0};
xfa=function(a,b,c,d,e){if(a.ca){var f=X.innerWidth,k=X.innerHeight,l=new og(Math.round(X.mozInnerScreenY),Math.round(X.mozInnerScreenX+f),Math.round(X.mozInnerScreenY+k),Math.round(X.mozInnerScreenX));c=new og(X.screenY+d,X.screenX+c.width,X.screenY+c.height,X.screenX);e||(d=new og(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.aa=f*k);a.df(l,c,b,e,!0,!0)}};
zfa=function(a,b,c){if(a.ca){var d=cO();if(d){c||PO(a,X,!0);if(a.Ec)var e=yfa(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=Af(window.document),e=d(e-k.x,f-k.y)?.5:0,d=!1;a.df(a.position,e,b,c,!0,d)}}};
QO=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}};
yfa=function(a,b){var c=Af(window.document),d=a.yb,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),t=!!b(e,l);if(d)l=QO(f,l,function(a){return!!b(e,a)}),k=QO(e,k,function(a){return!!b(a,f)});
else if(n)l=QO(f,l,function(a){return!!b(k,a)}),e=QO(k,e,function(a){return!!b(a,f)});
else if(t)f=QO(l,f,function(a){return!!b(e,a)}),k=QO(e,k,function(a){return!!b(a,l)});
else if(m)f=QO(l,f,function(a){return!!b(k,a)}),e=QO(k,e,function(a){return!!b(a,l)});
else{var u=Math.floor((e+k)/2),x=Math.floor((f+l)/2);if(!b(u,x))return 0;f=QO(x,f,function(a){return!!b(u,a)});
l=QO(x,l,function(a){return!!b(u,a)});
e=QO(u,e,function(a){return!!b(a,x)});
k=QO(u,k,function(a){return!!b(a,x)})}return(l-f)*(k-e)/c};
Afa=function(a,b,c,d,e){a.ca&&(d||PO(a,X,e),a.df(a.position,c,b,d,!1,!0))};
RO=function(a,b,c){a.ca&&a.df(a.position,c?a.o:a.Jd,b,c,!0,!0)};
SO=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};
TO=function(a,b){a.ea=3;if(!a.X||eO())return a.Ga=!0,!1;var c=new sO(!1,a.ea),d=ifa(c,a.X,String(a.qf));d?(a.Ie=b,a.g=c):a.Ga=!0;return d};
VO=function(a,b){if(!a.element||!eO())return!1;a.ea=3;var c=new JO(!1,a.ea),d=tfa(c,a.element,y(function(a){UO(this,iO(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d&&(a.A=c,LO(c));return d};
UO=function(a,b,c,d,e){a.ca&&WO(a)&&(c?a.A&&MO(a.A):(PO(a,d,!0),a.A&&LO(a.A)),a.df(a.position,e||a.o,b,c,!1,!1),!a.We()||a.xm()||a.A&&KO(a.A))};
WO=function(a){return null!==a.A&&"d"!=a.A.getStatus()};
PO=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;try{var e=NO.clone(),f=new jf(0,0);if(a.X){var k=1==a.Ee;!c&&k&&nO(a.X)||(e=a.X.getBoundingClientRect());f=Ys(a.X,b)}var l=f.x,m=f.y;a.position=new og(Math.round(m),Math.round(l+(e.right-e.left)),Math.round(m+(e.bottom-e.top)),Math.round(l))}catch(n){a.position=NO.clone()}}a.aa=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};
XO=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
Bfa=function(a){a.g&&vO(a.g);a.A&&KO(a.A)};
YO=function(a){var b=!1,c=a.X;X.document&&X.document.body&&12==a.Ee&&(c=X.document.body);a.Db=!0;if(!a.Db||null===c)return!1;TN("osd_adblock::sunio",function(){var d=new X.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,n=e.boundingClientRect;m=new og(n.top,n.right,n.bottom,n.left);a.o=df(e.intersectionRect.width*e.intersectionRect.height/(e.boundingClientRect.width*e.boundingClientRect.height),
0,1);a.Jd=a.o;PO(a,X,!0,m)}}catch(t){try{d.unobserve(c),LN.b("osd_adblock::nioc",t,void 0,void 0)}catch(u){}}},Cfa);
d.observe(c);Dfa(c);b=!0});
return b};
Dfa=function(a){if(a&&(a=a.style)){var b=a.opacity;a.opacity=.98;a.opacity=.99;a.opacity=b}};
Efa=function(){this.b={};for(var a in ZO)this.b[ZO[a]]=0};
$O=function(a,b){0==a.b[b]&&(a.b[b]=1)};
Ffa=function(a){var b=0,c;for(c in a.b){var d=(0,window.parseInt)(c,10);1==a.b[d]&&(b+=d,a.b[d]=2)}return b};
Gfa=function(){this.H=this.C=0;this.g=-1;this.B=this.o=this.F=this.G=this.b=0;this.D=!1;this.A=[0,0,0,0,0]};
aP=function(a,b,c){var d=a.H;jO||c||-1==a.g||(d+=b-a.g);return d};
bP=function(a,b,c,d){OO.call(this,b,c,d);this.G=new Gfa;this.qc=[0,0,0,0,0];this.dc=[0,0,0,0,0];this.na=[0,0,0,0,0];this.xb=this.ga=0;this.F={};this.D=new Efa;this.Gd={};this.Mg=this.C="";this.Je=!1;this.qb=[];this.O=void 0;this.Hd=this.Me=this.Ne=this.jd=!1;this.K=void 0;this.M=-1;this.H=this.da=this.Tb=void 0;this.jb=!1;this.Oa=this.Ha=this.Ma=0;this.Sa=1;this.fb=0;this.Za=-1;this.hd=!1;this.Ia=this.Sb=0;this.ua=!1;this.la=this.sc=this.Ya=this.za=this.b=this.R=this.He=0;this.Ca=-1;this.ee=this.de=
0;this.Le=this.Id=this.Oe=this.B=!1;this.De=0;this.Ke=!1;this.ub=r;this.qa=0;b=gO.getInstance();PO(this,a,b.g)};
cP=function(a){return p(a)&&0<=a&&1>=a};
dP=function(a,b){if(-1==a.ba)return 0;var c=b-a.ba||1,d=1E4;p(a.M)&&-1!=a.M&&(d=Math.max(d,a.M/3));return c>d?1:c};
Hfa=function(a){var b=0;.5<=a.o&&(b+=1);cP(a.H)&&(b+=2);a.ua&&(b+=4);a.B&&(b+=8);-1!=a.ia&&(b+=16,1==a.ia&&(b+=32));a.jb&&(b+=128);a.jb&&0<a.o&&(b+=256);return b};
eP=function(a,b){ub(a.qb,Jb(b-a.qb.length+1));a.qb[b]=XO(a.o,2)};
gP=function(a,b){var c=a.Gd[b];if(null!=c)return c;a:if(kb(Ifa,b))c=!0;else{c=a.F[b];if(p(c)&&(a.F[b]=!0,!c)){c=!0;break a}c=!1}c=fP(a,c,c);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm");return c};
fP=function(a,b,c){if(a.Ka)return{"if":0};var d=a.position.clone();d.round();var e=Ki(a.qb,function(a){return 100*a|0}),f=gO.getInstance(),k=a.G,l={};
a.qa&&(l.nes=a.qa);l["if"]=f.g?1:void 0;l.sdk=a.K?a.K:void 0;l.t=a.rf;l.p=[d.top,d.left,d.bottom,d.right];l.tos=a.J.B;l.mtos=a.J.o;l.ps=void 0;l.pt=e;l.vht=aP(k,iO(),!!a.O);l.mut=k.G;l.a=a.H;l.ns=a.De;l.fs=a.B?1:0;l.ft=a.Sb;l.at=k.F;l.as=k.D?1:0;l.atos=k.A;l.uac=a.He;l.vpt=a.fb;l.is=Hfa(a);l.ic=Ffa(a.D);if("h"==a.K||"as"==a.K)l.gmm="2";a.Ec&&(l.efpf=a.yb);a.g&&(l.swf=a.g.getStatus(),l.px=a.ea);a.A&&(l.sfm=a.A.getStatus(),l.px=a.ea);0<a.ee&&(l.nnut=a.ee);l.tcm=a.Sa;l.nmt=a.sc;l.bt=a.la;l.pst=a.Ca;
l.mmct=a.de;l.vpaid=a.Tb;l.dur=a.M;l.vmtime=a.Ha;l.vmtos=a.qc;l.vmmtos=a.dc;b&&(a.We()&&(l.dtos=k.C,l.vmdtos=a.ga,l.dav=k.B,l.dtoss=a.xb+1,c&&(k.C=0,k.B=0,a.ga=0,a.xb++)),l.dat=k.o,l.dft=a.Ia,c&&(k.o=0,a.Ia=0));!a.We()&&2E3<=a.ga&&(l.vmdtos=a.ga);f.A&&(l.ps=[f.A.width,f.A.height]);l.dom=f.G;a.Ga&&(l.fmf="1",l.px=a.ea);a.jd&&(l.ven="1");a.Ne&&(l.veh="1");a.R&&(l.vds=a.R);a.b&&(l.vmer=a.b);a.za&&(l.vmmk=a.za);a.Ya&&(l.vmiec=a.Ya);gO.getInstance();hP()?(l.c=XO(a.o,2),l.ss=XO(Jfa(a),2)):l.tth=iO()-iP;
l.mc=XO(a.J.A,2);l.lte=XO(a.Ub,2);return l};
Jfa=function(a){if(a.B)return 1;var b=X.screen.width*X.screen.height;return 0>=b?-1:a.aa*a.o/b};
tP=function(){if(!jP){jP=!0;var a=aa.requestAnimationFrame||aa.webkitRequestAnimationFrame||aa.mozRequestAnimationFrame||aa.oRequestAnimationFrame||aa.msRequestAnimationFrame;if(!kP&&!lP&&!mP){var b;if(a){var c=MN("osd_or_lidar::throttled_scroll_raf_callback",nP,void 0,void 0);b=function(){a(function(){X.setTimeout(c,0)})}}else b=nP;
oP=new Fm(MN("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=y(oP.tg,oP);kP=oO(X,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!pP&&!lP&&!mP){if(a){var d=MN("osd_or_lidar::throttled_resize_raf_callback",qP,void 0,void 0);b=function(){a(function(){X.setTimeout(d,0)})}}else b=qP;
rP=new Fm(MN("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=y(rP.tg,rP);pP=oO(X,"resize",b,"osd_or_lidar::throttled_resize")}Kfa();sP()}};
qP=function(){uP(!1);nP()};
nP=function(){vP(wP(),!1)};
Lfa=function(){var a,b=gO.getInstance();xP&&!b.o&&(b.b=fO(X,xP));if(lP)return a=new yP,a.H=!0,a;if(mP)return a=new yP,a.C=!0,a;if(zP){a=AP;uP(!1);var c=gO.getInstance(),d=c.C,b=d.height-a;0>=b&&(b=d.height,a=0);c.b=new lf(d.width,b);b=new yP;b.F=!0;b.A=c.b;b.b=d;b.B=a;return b}if(BP)return a=new yP,a.D=!0,a;if(CP)return a=new yP,a.G=!0,a;if(DP)return a=new yP,a.J=!0,a;a:{var b=b.b,e=new yP;e.A=b;e.g=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){var f=gO.getInstance();
if(f.o)a=f.B;else try{var f=xP,k=X||X,k=k.top;k.environment&&k.environment.browser&&"Cobalt"===k.environment.browser&&!k.document.defaultView&&(k.document.defaultView=k);c=b||fO(k,f);d=Af(rf(k.document).b);a=-1==c.width||-12245933==c.width?new og(c.width,c.width,c.width,c.width):new og(d.y,d.x+c.width,d.y+c.height,d.x)}catch(l){a=e;break a}e.o=a;e.g=!0}a=e}return a};
vP=function(a,b){var c;if(!EP)if(window.clearTimeout(FP),FP=null,0==a.length)b||GP();else{var d=Lfa(),e=gO.getInstance();try{var f=iO();if(d.C)for(c=0;c<a.length;c++)RO(a[c],f,b);else if(d.H)for(c=0;c<a.length;c++)RO(a[c],f,b);else if(d.F&&d.b)for(c=0;c<a.length;c++)xfa(a[c],f,d.b,d.B,b);else if(d.D)for(c=0;c<a.length;c++)zfa(a[c],f,b);else if(d.G)E(a,function(a){if(b){if(a.g){var c=a.g;3<=c.o&&(c.o=3);a.o=0}}else if(a.g&&"d"!=a.g.getStatus()){var c=ofa(a.g),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+
1];a.o=d[c.g+1];a.df(a.position,e,a.ba+c.b,!1,!0,!1);!a.We()||a.xm()||a.Fe||a.g&&vO(a.g);(c=2==c.snapshot||zO(a.g))||(c=a.g,c="f"==c.b&&3E3<=c.B);c&&(a.Ie(a),a.Fe=!1,a.g&&vO(a.g))}});
else if(d.J)for(c=0;c<a.length;c++)UO(a[c],f,b,X);else if(d.g&&d.o)for(c=0;c<a.length;c++)Afa(a[c],f,d.o,b,e.g);++Mfa}finally{b?E(a,function(a){a.o=0}):GP()}}};
Kfa=function(){var a=sP,b=ZN();b&&(HP=HP||oO(YN,b,a,"osd_or_lidar::visibility"))};
sP=function(){var a=hP(),b=iO();a?(jO||(kO=b,E(IP,function(a){var c=a.G;c.H=aP(c,b,!!a.O)})),jO=!0,uP(!0)):(jO=!1,iP=b,E(IP,function(a){a.ca&&(a.G.g=b)}));
vP(wP(),!a)};
hP=function(){if(Nfa())return!0;var a=XN(X.document);return 1==a||0==a};
GP=function(){X&&(FP=X.setTimeout(WN("osd_or_lidar::psamp_to",function(){vP(wP(),!1)}),efa()))};
Ofa=function(a){return fb(IP,function(b){return b.C==a})};
wP=function(){return 0==IP.length?JP:0==JP.length?IP:sb(JP,IP)};
uP=function(a){var b=gO.getInstance();b.b=b.o?(new lf(b.B.cb(),b.B.getHeight())).round():fO(X,xP);if(!a){b.C=X&&X.outerWidth?new lf(X.outerWidth,X.outerHeight):new lf(-12245933,-12245933);var c;a=X;a.top!=a&&(a=a.top);var d=0,e=0,f=gO.getInstance().b;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,t=m.scrollWidth,u=
m.offsetHeight,x=m.offsetWidth;m.clientHeight!=u&&(n=l.scrollHeight,t=l.scrollWidth,u=l.offsetHeight,x=l.offsetWidth);n>f.height?n>u?(d=n,e=t):(d=u,e=x):n<u?(d=n,e=t):(d=u,e=x)}c=new lf(e,d)}catch(z){c=new lf(-12245933,-12245933)}b.A=c}};
Pfa=function(){E(JP.concat(IP),function(a){YO(a)&&(lP=!0)});
return lP};
Qfa=function(){var a=X.navigator.userAgent;var b=a.indexOf("Firefox/");if(0<=b){var b=Math.floor(a.substr(b+8))||-1,c=a.indexOf("Mac OS X 10."),d=-1;0<=c&&(d=Number(a.substr(c+12,1))||-1);var e=0<d?-1:a.indexOf("Windows NT "),c=-1;0<=e&&(c={"6.0":0,"6.1":1,"6.2":2}[a.substr(e+11,3)]||-1);a=148;5<=d?a=4<=b?108:3<=b?127:108:0<=c&&(16==b||17==b||18==b)&&(a=[[146,146,146],[148,147,148],[131,130,136]][c][b-16])}else a=null;null!==a&&(AP=a,zP=!0)};
Rfa=function(a,b){var c=!1;E(IP,function(b){b=VO(b,a);c=c||b});
(DP=c)&&E(IP,function(a){WO(a)||b(a)});
return c};
Sfa=function(a){var b=!1;E(IP,function(c){c=TO(c,a);b=b||c});
(CP=b)&&E(IP,function(b){b.g||a(b)});
return b};
Tfa=function(a){E(a,function(a){null==fb(IP,function(b){return b.element==a.element&&b.Mg==a.Mg})&&IP.push(a)})};
Nfa=function(){return Wh(IP,function(a){return a.B})};
yP=function(){this.b=this.A=null;this.B=0;this.o=null;this.g=this.J=this.G=this.D=this.F=this.C=this.H=!1};
KP=function(){this.g=64;this.b=Array(4);this.C=Array(this.g);this.A=this.o=0;this.reset()};
LP=function(a,b,c){c||(c=0);var d=Array(16);if(w(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.b[0];c=a.b[1];var e=a.b[2],f=a.b[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.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.b[2]=a.b[2]+e&4294967295;a.b[3]=a.b[3]+f&4294967295};
Vfa=function(){var a=wN(),b=a.length-1,c=xN(a),a=c.b,d=c.g,c=[];d?(a&&c.push(MP(b,[d.url,2],0,[a.url,0],a.depth)),c.push(MP(b,[d.url,2],0))):a.url&&(c.push(MP(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=Ufa.exec(a.url))&&d[0]||"")&&c.push(MP(b,[d,1],a.depth)));c.push(MP(b));return c};
MP=function(a,b,c,d,e){a=[a];if(p(b)&&p(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(p(d)&&p(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a};
NP=function(){var a=Vfa();return Ki(a,function(a){return EN(a)})};
OP=function(a){return function(b){return!p(b[a])&&p(0)?0:b[a]}};
PP=function(){return function(a){if(!p(a.tth))return"1"}};
RP=function(){var a=[0,2,4];return function(b){b=b.tos;if(fa(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 p(a)?QP(c,a):c}}};
SP=function(a,b){return function(c){c=c[a];if(fa(c))return QP(c,b)}};
QP=function(a,b){return ne(a,function(a,d){return kb(b,d)})};
Wfa=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("&")};
TP=function(){this.o=this.g=this.A=!1;this.b={};this.b.start=this.zA;this.b.firstquartile=this.pA;this.b.midpoint=this.uA;this.b.thirdquartile=this.AA;this.b.complete=this.lA;this.b.pause=this.wA;this.b.resume=this.xA;this.b.skip=this.yA;this.b.viewable_impression=this.CA;this.b.mute=this.vA;this.b.unmute=this.BA;this.b.fullscreen=this.qA;this.b.exitfullscreen=this.oA;this.b.fully_viewable_audible_half_duration_impression=this.rA;this.b.measurable_impression=this.tA;this.b.abandon=this.kA;this.b.engagedview=
this.nA;this.b.impression=this.sA;this.b.creativeview=this.mA};
Xfa=function(a){var b=gO.getInstance();(function(){b.o=!1;UP(this)}).call(a)};
UP=function(a){if(null!=X.IntersectionObserver){var b=Xea();b&&E(IP,function(a){a.qa=b});
1==b&&(VP=!0);if(2==b&&Pfa()){tP();return}}var c;Is&&ia(X.screenX)&&ia(X.mozInnerScreenX)&&ia(X.outerWidth)?(Qfa(),c=!0):c=!1;if(c)tP();else if(c=zf&&zc(8)&&ka(cO())?BP=!0:!1,c)tP();else{if(eO()){if(Rfa(X,y(a.Pl,a))){tP();a.o=!0;return}}else if(Sfa(y(a.Pl,a))){tP();a.g=!0;return}window.clearTimeout(FP);FP=null;WP="i";EP=!0}};
XP=function(a,b){var c=a.G;c.H=aP(c,iO(),!!a.O);c=!hP();vP([a],c);a.O=!0;return gP(a,b)};
YP=function(a){if(w(a)){var b=eb(IP,function(b){return b.C==a});
0<=b&&(Bfa(IP[b]),pb(IP,b))}};
Yfa=function(a,b,c){var d=fb(IP,function(a){return a.element==c});
null!==d&&d.C!=b&&(YP(d.C),d=null);d||(d=ZP(a,c),d.C=b,d.K="h");return d};
ZP=function(a,b){var c;c=new bP(X,b,-1,7);c.ce=y(a.Oz,a);gO.getInstance().F=79463069;Tfa([c]);tP();return c};
Zfa=function(a,b){var c=ac($P,function(b){return b==a}),c={v:"485v",
e:aQ[c]},d=gP(b,a);kc(c,d);b.Gd[a]=d;return bQ(c,cQ)};
bQ=function(a,b,c,d,e){var f={};if(p(a))for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(ka(l)?f[k]=l(a):f[k]=a[l])}p(c)&&kc(f,c);a=$fa(f);0!=a.length&&p(d)&&p(e)&&(e=e(a),a+="&"+d+"="+e);return a};
eQ=function(a,b){var c={v:"485v"};c.nas=IP.length;c.msg=a;if(p(b)){var d=dQ(b);d&&(c.e=aQ[d])}return c};
dQ=function(a){var b=a.toLowerCase();return ac($P,function(a){return a==b})};
fQ=function(a,b){var c=a[b];p(c)&&(a[b]=Math.floor(1E3*c))};
$fa=function(a){var b=[];Pb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(fa(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
gQ=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
iQ=function(a){return!!(1<<a&hQ)};
fga=function(){try{aga()}catch(d){}var a="a=1&b="+hQ+"&",b=[],c=99;E(cga,function(a,c){var d=!1;try{d=a(X)}catch(k){}b[c/32>>>0]|=d<<c%32});
E(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;E(dga,function(b){var d="false";try{d=b(X)}catch(f){}a+=String.fromCharCode(c++)+"="+d+"&"});
E(ega,function(b){var d="";try{var f=b(X),d=ar(Wq(f),!0)}catch(k){}a+=String.fromCharCode(c++)+"="+d+"&"});
return a.slice(0,-1)};
aga=function(){if(!jQ){var a=function(){kQ=!0;X.document.removeEventListener("webdriver-evaluate",a,!0)};
X.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){lQ=!0;X.document.removeEventListener("webdriver-evaluate-response",b,!0)};
X.document.addEventListener("webdriver-evaluate-response",b,!0);jQ=!0}};
mQ=function(){TP.call(this)};
hga=function(a,b,c){var d=fb(IP,y(function(a){return a.element?nQ(a.element,c)==b&&a.Mg==c:!1},a));
null!==d&&d.C!=b&&(YP(d.C),d=void 0);if(d)return d;d=gga(c);if(d=fb(d,y(function(a){return nQ(a,c)==b},a)))return d=ZP(a,d),d.K="as",d.C=b,d.Mg=c,d};
gga=function(a){var b=X.document,c=Kb(Ki(["embed","object"],function(a){return tb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=ne(c,function(a){if(!a||!la(a)||1!=a.nodeType||!ka(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ka(a[d])?!0:!1})};
nQ=function(a,b){var c="metricID"+b;if(!a||!a[c]||!ka(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID};
oQ=function(a,b){gO.getInstance();var c;switch(a.K){case "h":c=q("ima.common.triggerExternalActivityEvent");break;case "a":c=q("ima.common.triggerExternalActivityEvent");break;case "n":c=q("ima.bridge.triggerExternalActivityEvent");break;case "as":var d="triggerExternalActivityEvent"+a.Mg;a.element&&ka(a.element[d])&&(c=function(b,c,e){a.element[d](e)});
break;default:return a.R|=4,!1}if(ka(c)){var e=Zfa(b,a);try{return c(a.C,e,b),!0}catch(f){a.R|=2}}else a.R|=1;return!1};
qQ=function(a){var b={};b.viewability=bQ(a,cQ);var c;c=hQ=(new Date).getTime();var d=iQ(5);c=(kQ?!d:d)?c|2:c&-3;d=iQ(2);c=(lQ?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};b.moatViewability=bQ(a,iga,c,"h",pQ("kArwaWEsTs"));b.integralAdsViewability=bQ(a,jga,{},"h",pQ("b96YPMzfnx"));b.doubleVerifyViewability=bQ(a,kga,{},"h",pQ("yb8Wev6QDg"));b.googleViewability=bQ(a,lga,c);return b};
pQ=function(a){return function(b){var c=new KP;c.update(b+a);return Xq(c.B()).slice(-8)}};
mga=function(a,b,c){a=gO.getInstance();if(a.D!=b){a.D=b;var d=Wh(IP,function(a){return a.Ke});
E(IP,function(a){b||d||(a.ba=c);a.Id=b;a.Ke=!1})}};
rQ=function(){var a={};a.moatInit=fga();return a};
uQ=function(a,b,c){var d;d=mQ.getInstance();var e={};kc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});if(e.opt_bounds)d=qQ(eQ("ol",a));else{b:{if(dQ(a)){if(sQ){d=eQ("ue",a);break b}b=d.Dl(b,e);if(!b){d=eQ("nf",a);break b}if(!d.A){d.A=!0;try{hO=iO();for(var f=c=X,k=0;c&&c!=c.parent;)c=c.parent,k++,sN(c)&&(f=c);tQ=f;uP(!1);var l=X.document;if(l.body&&l.body.getBoundingClientRect){var m=gO.getInstance();m.g?m.o?Xfa(d):UP(d):tP()}else sQ=!0}catch(n){throw IP=[],JP=[],n;}}"i"==WP&&(b.Ka=!0,d.Xm(b));
b.Ec=!0;b.yb=2;l=e.opt_fullscreen;p(l)&&(b.B=!!l);a=a.toLowerCase();kb(nga,a)&&(b.Le||(b.Le=!0,"i"!=WP&&(EP=!1),lP&&!b.Db&&(b.qa=2,YO(b)),VP&&(b.qa=1),!d.g||b.g||b.Ga||TO(b,y(d.Pl,d)),d.o&&!WO(b)&&VO(b,X),b.F={},b.F.firstquartile=!1,b.F.midpoint=!1,b.F.thirdquartile=!1,b.F.complete=!1,b.F.pause=!1,b.F.skip=!1,b.F.viewable_impression=!1,b.xb=0,l=p(e)?e.opt_nativeTime:void 0,lO=l=ia(l)?l:iO(),b.ca=!0,m=!1,hP()||(m=!0,b.G.g=l),vP([b],m)),d.oq(b));if(l=d.b[a])if(d=l.call(d,b,e),p(d)){e=eQ(void 0,a);kc(e,
d);d=e;break b}}d=void 0}d=qQ(d)}return d};
vQ=function(){};
yQ=function(a,b){if(null==a||0>=a.width||0>=a.height)throw gM(wQ,null,"ad slot size",a.toString());this.g=a;this.b=null!=b?b:new vQ;this.B=xQ(oga,this.b.o)?this.b.o:"All";this.A=xQ(pga,this.b.creativeType)?this.b.creativeType:"All";this.D=xQ(qga,this.b.A)?this.b.A:"SelectExactMatch";this.F=xQ(rga,this.b.g)?this.b.g:"DisallowResize";this.o=null!=this.b.B?this.b.B:[];this.C=ia(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90};
AQ=function(a,b){var c=[];E(b,function(a){a.Fq()&&((0,window.isNaN)(a.b.b)||(0,window.isNaN)(a.xl())||a.xl()==a.b.b)&&zQ(this,a)?c.push(a):(a=sga(this,a),null!=a&&a.Fq()&&c.push(a))},a);
return c};
zQ=function(a,b){var c;if(c="Flash"!=b.zc()||BQ){if(c="All"==a.B||a.B==b.b.ea)c=b.zc(),c=null!=c?"All"==a.A||a.A==c:!0;c&&(c=b.o,c=lb(a.o)?!0:null!=c?0<=jb(a.o,c):!1)}if(c){var d=b.Ul();if("IgnoreSize"==a.D||mf(a.g,d))c=!0;else if(c="SelectNearMatch"==a.D)"ResizeSmaller"==a.F&&(d=d.width<=a.g.width&&d.height<=a.g.height?d:CQ(d,a.g)),c=d.width,d=d.height,c=c>a.g.width||d>a.g.height||c<a.C/100*a.g.width||d<a.C/100*a.g.height?!1:!0}else c=!1;return c};
sga=function(a,b){var c=b.A;return null!=c?fb(c,function(a){return zQ(this,a)},a):null};
CQ=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new lf(c*a.width,c*a.height)};
xQ=function(a,b){return null!=b&&Vb(a,b)};
DQ=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)};
tga=function(a){var b={};E(a.split(","),function(a){var c=a.split("=");2==c.length&&(a=Sa(c[0]),c=Sa(c[1]),0<a.length&&(b[a]=c))});
return b};
FQ=function(a,b){if(a[b])return EQ(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return EQ(a[d]);return!1};
EQ=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
uga=function(){this.g=this.o=1;this.b=this.A=0;this.B=1};
GQ=function(){H.call(this);this.b=null;this.C=new Hm(this);G(this,this.C);this.g=new Cg;this.G=new Cg;this.A=this.B=null;this.o=!1;this.D=(ka(null),null)};
IQ=function(){null!=HQ||(HQ=new GQ);return HQ};
KQ=function(a){if(null==a)return!1;if(nM()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=JQ(a);return 0>=b-a.width&&42>=c-a.height};
JQ=function(a){return ka(a.getBoundingClientRect)&&Tf(pf(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
vga=function(a,b){a.B=b};
LQ=function(a,b,c,d,e){if(a.o){if(a.D)return a.D(b,c,e);e=e||{};if(d=d?a.G.get(d):U.B)null!=e.opt_fullscreen||(e.opt_fullscreen=KQ(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.B&&(e.opt_bounds=JQ(a.B));return TN("lidar::handlevast_html5",ra(uQ,b,c,e))||{}}return{}};
wga=function(){var a=IQ();if(!a.o)return null;if(null!=a.A)return a.A;a.A=TN("lidar::getinitsignals_html5",rQ)||null;return a.A};
MQ=function(a,b){var c=[];a.g.forEach(ra(function(a,b,c,k){c==b&&a.push(k)},c,b));
E(c,a.g.remove,a.g)};
NQ=function(a){if(ka(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.b.send("activityMonitor","pageSignals",b)}};
xga=function(a,b,c){if(!U.C)return"";var d=b?a.G.get(b):U.B;a={};null!=c&&(a.fullscreen=c);c="";try{c=Wea(function(){return d},a)}catch(e){c="sdktle;"+Ma(e.name,12)+";"+Ma(e.message,40)}return c};
OQ=function(a,b,c){if(lb(a))return null;a=ne(a,function(a){var b=a.A;return"application/x-mpegurl"==C(a.b).toLowerCase()||"progressive"==b});
lb(c)||(c=Ki(c,function(a){return a.toLowerCase()}),a=ne(a,function(a){return kb(c,C(a.b).toLowerCase())}));
if(!ia(b)||0>=b)b=kM()?500:1E3;return yga(a,b)};
yga=function(a,b){return zga(a,b)||Aga(a,b)||Bga(a,b)};
zga=function(a,b){var c=null;E(a,function(a){var d=a.Xe,f=a.Wd;d>b||f<b||!(null==c||c.Xe>d)||(c=a)});
return c};
Aga=function(a,b){var c=null;E(a,function(a){var d=a.Xe,f=a.Wd;f>b||(null==c||c.Wd<f?c=a:null!=c&&c.Wd==f&&c.Xe>d&&(c=a))});
return c};
Bga=function(a,b){var c=null;E(a,function(a){var d=a.Xe,f=a.Wd;if(!(d<b))if(null!=c&&c.Xe==d&&c.Wd<f)c=a;else if(null==c||c.Xe>d)c=a});
return c};
PQ=function(){H.call(this);this.B=this.F=this.J=this.C=!1;this.b=0;this.o=[];this.D=!1;this.M=this.K=window.Infinity;this.g=0;this.H=!1;this.A=new Hm(this);this.G={}};
Cga=function(a){QQ(a);!(a.yf instanceof H)&&"ontouchstart"in window.document.documentElement&&oM()?(a.G={touchstart:y(a.kF,a),touchmove:y(a.jF,a),touchend:y(a.iF,a)},Pb(a.G,function(a,c){this.yf.addEventListener(c,a,!1)},a)):a.A.N(a.yf,"click",a.Gq)};
QQ=function(a){a.A.sa(a.yf,"click",a.Gq);Pb(a.G,function(a,c){this.yf.removeEventListener(c,a,!1)},a);
a.G={}};
Dga=function(a,b){a.o=[];E(b,function(a){ob(this.o,a.identifier)},a)};
RQ=function(a,b){return Wh(b,function(a){return kb(this.o,a.identifier)},a)};
SQ=function(a){null!=a?UL(Ega,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=VL(a)?Fga(a):null:a=null;return a};
TQ=function(a,b,c){if(null==a)return null;c=new M((null!=c?c:"//www.youtube.com/")+"watch");var d=c.b;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");hh(c,d);return c.toString()};
UQ=function(a){return null===a?!1:"pharma"==(new M(a)).F().toLowerCase()};
Fga=function(a){if(B(C(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 M(a)).b;return yh(a,"v")?a.get("v").toString():yh(a,"video_id")?a.get("video_id").toString():null};
VQ=function(a){return B(C(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};
WQ=function(){H.call(this)};
XQ=function(a){H.call(this);this.b=a;this.R=new Dm(4);this.o=0;this.O=this.A=this.J=this.F=!1;this.K=this.ud();this.H=this.Hf();this.aa=15E3;this.M=!1};
ZQ=function(a){a.J=!1;a.A=!1;a.F=!1;a.o=0;a.O=!1;a.R.clear();YQ(a);Nb(a.B)};
aR=function(a){a.A||(a.A=!0,YQ(a),a.dispatchEvent("start"),AM()||!JA||rM(3)||nM()&&(!oM()||!pM($Q,4))||a.$l())};
bR=function(a){for(var b=a.b.buffered.length-1;0<=b;){if(a.b.buffered.start(b)<=a.b.currentTime)return a.b.buffered.end(b);b--}return 0};
YQ=function(a){a.G&&(ge(a.G),a.G=null)};
dR=function(){H.call(this);this.buffered=new cR;this.b=new Hm(this);var a=GL();if(a){a:{if($b(a.b,"videoElementMockDuration")&&(a=a.b.videoElementMockDuration,ia(a)))break a;a=window.NaN}this.duration=a}};
Gga=function(){var a=["video/mp4"],b=["video/ogg"],c=new dR;c.canPlayType=function(c){return kb(a,c)?"probably":kb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
Hga=function(a){this.startTime=0;this.endTime=a};
cR=function(){this.length=0;this.b=[]};
eR=function(){throw Error("Do not instantiate directly");};
fR=function(){eR.call(this)};
gR=function(){eR.call(this)};
hR=function(a,b){var c;a:{var d=a(b||Iga,void 0,void 0);c=rf().createElement("DIV");d=Jga(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c};
Jga=function(a){if(!la(a))return String(a);if(a instanceof eR){if(a.Nd===iR)return a.gc();if(a.Nd===jR)return Ga(a.gc())}return"zSoyz"};
kR=function(a,b){return null!=a&&a.Nd===b};
lR=function(a){if(null!=a)switch(a.ie){case 1:return 1;case -1:return-1;case 0:return 0}return null};
mR=function(){eR.call(this)};
Y=function(a){return null!=a&&a.Nd===iR?a:a instanceof Re?nR(Se(a),a.ng()):nR(Ga(String(String(a))),lR(a))};
oR=function(){eR.call(this)};
pR=function(){eR.call(this)};
qR=function(){eR.call(this)};
rR=function(){eR.call(this)};
sR=function(){eR.call(this)};
tR=function(a,b){this.content=String(a);this.ie=null!=b?b:null};
uR=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
xR=function(a,b,c){var d="key_"+a+":"+b,e=vR[d];if(void 0===e||0>e)vR[d]=0,wR[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
yR=function(a,b){var c=wR["key_"+a+":"+b];c||""==b||(c=wR["key_"+a+":"]);return c?c:Kga;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
Kga=function(){return""};
CR=function(a){return kR(a,iR)?String(String(a.gc()).replace(zR,"").replace(AR,"&lt;")).replace(Lga,BR):Ga(String(a))};
DR=function(a){return kR(a,iR)?String(String(a.gc()).replace(zR,"").replace(AR,"&lt;")).replace(Mga,BR):String(a).replace(Nga,BR)};
Oga=function(a){return"%"+a.charCodeAt(0).toString(16)};
FR=function(a){a=xa(String(a));ER.lastIndex=0;return ER.test(a)?a.replace(ER,Oga):a};
LR=function(a){kR(a,GR)||kR(a,HR)?a=IR(a):a instanceof He?a=IR(Ie(a)):a instanceof Ne?a=IR(Oe(a)):(a=String(a),a=Pga.test(a)?a.replace(JR,KR):"about:invalid#zSoyz");return a};
MR=function(a){kR(a,GR)||kR(a,HR)?a=IR(a):a instanceof He?a=IR(Ie(a)):a instanceof Ne?a=IR(Oe(a)):(a=String(a),a=Qga.test(a)?a.replace(JR,KR):"about:invalid#zSoyz");return a};
OR=function(a){var b=NR[1]||(NR[1]=new Ht(1)),c=lR(a);null==c&&(c=ye(a+"",kR(a,iR)));return Rga(c!=b.b?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")};
BR=function(a){return Sga[a]};
KR=function(a){return Tga[a]};
IR=function(a){return String(a).replace(JR,KR)};
Uga=function(a,b,c){return""+yR("a",a.Mi)(a,null,c)};
Vga=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(OR(a.Kd))+">"+Y(a.Kd)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
Wga=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(OR(a.Kd))+">"+Y(a.Kd)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.Dg)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
PR=function(){return nR('<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>')};
QR=function(a){return""+yR("b",a.Mi)(a,null,void 0)};
Xga=function(){return nR('<div class="videoAdUiBrandInteractionUnit html5-stop-propagation"><div><button class="videoAdUiBrandInteractionButton videoAdUiBrandInteractionLikeButton"><div class="videoAdUiBrandInteractionIcon videoAdUiBrandInteractionLikeIcon"></div></button><span class="videoAdUiBrandInteractionMessageBox videoAdUiLikeMsg"></span></div><div><button class="videoAdUiBrandInteractionButton videoAdUiBrandInteractionDislikeButton"><div class="videoAdUiBrandInteractionIcon videoAdUiBrandInteractionDislikeIcon"></div></button><span class="videoAdUiBrandInteractionMessageBox videoAdUiDislikeMsg"></span></div></div>')};
Yga=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction">'+Y(a.Rt)+'<div class="videoAdUiSkipIcon"></div></button></div>'};
Zga=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction"><div class="videoAdUiSkipButtonText">'+Y(a.Rt)+'</div><div class="videoAdUiExperimentalSkipIcon"></div></button></div>'};
RR=function(a){var b="";a=2<=a.Nh&&1<=a.gh?ta("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Y(a.gh),totalAds:Y(a.Nh),timeLeft:Y(a.Mh)}):ta("Ad {$timeLeft}",{timeLeft:Y(a.Mh)});return b+=a};
TR=function(){var a=SR(),b=nR("</a>"),a=ta("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:Y(a),endFormat:Y(b)});return nR(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
SR=function(){return nR('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
UR=function(a){return nR("<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'>"+Y(a.heading)+"</div><div class='videoAdUiPopupText'>"+Y(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Y(a.buttons)+"</div></form></div></div>")};
$ga=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+Y(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Y(a.nl)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Y(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Y(a.control)+"</a>";a=""+UR({heading:VR(""+Y(a.heading)),message:VR(b),buttons:VR("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+
Y(a.close)+"</button>")});return nR(a)};
aha=function(a){for(var b=""+Y(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+CR(e)+"'><input type='radio' id='videoAdUiMuteOption"+CR(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+CR(e)+"' />"+Y(f)+"</label>");a=""+UR({heading:VR(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:VR(b),buttons:VR("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+
Y(a.confirm)+"</button>")});return nR(a)};
bha=function(a){var b=String(""+a.heading);return nR(UR({heading:b?new tR(b,void 0):"",message:VR(""+Y(a.message)),buttons:VR("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};
cha=function(){return nR('<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>')};
WR=function(a,b,c){if(null==a||!Tf(pf(a),a))throw gM(wQ,null,"containerElement","element");this.B=a;this.g=this.b=null;this.A=b;this.C=c||!1;this.o=null;this.b=L("DIV",{style:"display:none;"});a=GL();HL(a,"useVideoElementMock")?(a=Gga(),b=L("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),sa(b,a),a.hh=L("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Pj=L("P",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.hh.appendChild(a.Pj),b.appendChild(a.hh),a.b.N(a,["loadeddata","playing","pause","ended"],a.yF),a=b):a=L("VIDEO",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:""+ta("Advertisement")});a.setAttribute("webkit-playsinline",!0);this.g=a;this.B.appendChild(this.b);this.b.appendChild(this.g);this.A&&(a=L("DIV",{id:this.A,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.b.appendChild(a));this.C&&(this.o=L("DIV",{style:"position:absolute;width:100%;height:100%;"}),
this.b.appendChild(this.o))};
ZR=function(a){H.call(this);this.M="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.M=a:b=a);this.O=new Hm(this);this.C=null;this.A=!1;this.da=this.ud();this.ga=this.Hf();this.H=-1;this.ba=!1;this.D=-1;this.o=this.X=this.J=null;this.aa="";this.g=!1;this.ca=null!=b;this.ia=this.K=this.ea=this.b=null;this.B=void 0;this.G=this.ha=null;this.F=this.la=0;this.ca?(this.g=!0,this.b=b,this.B=2):(a=y(this.$y,this),XR?a():(YR.push(a),a=Gf(window.document,"script"),a.src="https://www.youtube.com/iframe_api",
b=window.document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))};
$R=function(a,b,c){var d={autoplay:"1"};if(null!=a.o){var e=a.o.C;null!=e&&(d.agcid=e);e=a.o.A;null!=e&&(d.adformat=e);e=a.o.B;null!=e&&(d.ad_query_id=e);(e=a.o.D)&&(d.cta_conversion_urls=e);(e=a.o.F)&&(d.endscreen_ad_tracking_data=e);a.o.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.o.J?1:3;a.o.G&&(d.noiba=1);a.o.M&&(d.utpsa=1);a.o.K&&(d.autoplay="1");a.o.o&&kc(d,a.o.o)}e=SQ(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===
c?"":c):d.videoId=e;!U.b()&&SL(QL(),41351017)&&(d.enabled_engage_types="3,4,5");a.A=!1;a.o&&a.o.g?(a.ha=d,a.b.preloadVideoByPlayerVars(a.ha)):a.b.cueVideoByPlayerVars(d);a.dispatchEvent("loaded")};
aS=function(a){a.O.sa(a.C,"tick",a.Pr);null!=a.C&&(a.C.stop(),a.C=null)};
bS=function(a){null!=a.qa&&ge(a.qa)};
cS=function(a){H.call(this);this.sessionId=a||Xa();this.g=[]};
dS=function(a,b,c,d,e){mc.call(this,a);this.Jc=b;this.Xd=c;this.Aq=d;this.o=e};
eS=function(a,b){cS.call(this,b);this.o=a;this.zd=null;this.A=new Hm(this);this.logger=null;this.A.N(Bf(),"message",this.receive)};
fS=function(a){if(null==a||!w(a)||!va(a,"ima://"))return null;a=a.substr(6);try{return eg(a)}catch(b){return null}};
dha=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.o;return"ima://"+ig(e)};
gS=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.o)return!1;c=b.sid;return null==c||"*"!=a.sessionId&&c!=a.sessionId?!1:!0};
hS=function(a,b){H.call(this);this.A=a;this.o=b;this.b={};this.g=new Hm(this);this.g.N(Bf(),"message",this.B)};
jS=function(a,b,c,d){a.b.hasOwnProperty(b)||(c=new eS(b,c),a.g.N(c,a.A,function(a){a=new iS(a.type,a.Jc,a.Xd,a.Aq,a.getOrigin(),b);this.dispatchEvent(a)}),c.zd=d,c.connect(),a.b[b]=c)};
iS=function(a,b,c,d,e,f){dS.call(this,a,b,c,d,e);this.b=f};
lS=function(){var a=q("google.ima.gptProxyInstance",Bf());if(null!=a)return a;Hm.call(this);this.o=new hS("gpt",!0);G(this,this.o);this.N(this.o,"gpt",this.C);this.b=null;kS()||Bf().top===Bf()||(this.b=new hS("gpt",!1),G(this,this.b),this.N(this.b,"gpt",this.B))};
kS=function(){return!!q("googletag.cmd",Bf())};
mS=function(){var a=q("googletag.console",Bf());return null!=a?a:null};
nS=function(a,b,c,d,e,f,k,l,m,n,t,u,x,z){this.A=a;this.B=n;this.C=b;this.D=d;this.G=l;this.H=u;this.J=e;this.M=f;this.K=x;this.b=k;this.g=m;this.o=t;this.F=z};
eha=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,t,u){if("%"==n)return"%";var e=c.shift();if("undefined"==typeof e)throw Error("[goog.string.format] Not enough arguments");arguments[0]=e;return oS[n].apply(null,arguments)})};
rS=function(a,b){H.call(this);this.g=new Hm(this);this.G=!1;this.H=Xa();this.F=new Cg;var c=this.H,d=(Yea()?"https:":"http:")+eha("//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=L("IFRAME",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Mm(this.g,c,"load",this.uz);a.appendChild(c);
this.o=c;c=this.F.get("*");null==c&&(c=new eS(this.H,"*"),this.G&&(c.zd=Uf(this.o),c.connect()),this.F.set("*",c));this.D=c;this.C=b;this.b=this.C.g;this.A=this.B=null;this.g.N(this.D,"mouse",this.Pz);this.g.N(this.D,"touch",this.jA);null!=this.b&&(this.g.N(this.D,"displayContainer",this.Lz),this.g.N(this.D,"videoDisplay",this.gA),this.g.N(this.D,"preloadVideoDisplay",this.Zz),this.g.N(this.b,Xb(pS),this.Zd),this.g.N(this.b,qS,this.Zd));c=Bf();d=q("google.ima.gptProxyInstance",c);null==d&&(d=new lS,
g.ca("google.ima.gptProxyInstance",d,c))};
sS=function(a,b){var c=Vs(a.o),d=Ki(b,function(a){return window.document.createTouch(window,this.o,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,d)};
tS=function(a){a=a.playbackOptions;return new nS(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)};
uS=function(a,b,c,d,e){if(!(e||null!=a&&Tf(pf(a),a)))throw gM(wQ,null,"containerElement","element");this.C=a;var f=e=null!=b||null!=d,k=!1;U.g||(U.g||oM()||JA&&!rM(4)||wM())&&e||(lM()||wM()||(k=!0),f=!1);this.D=f;this.H=k||f&&null!=d;U.g?a=null:(e=L("DIV",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.o=a;this.b=this.D||!this.o||U.g||!lM()?null:new WR(this.o,null,!0);a=null;this.D?b?a=new XQ(b):d&&(a=new ZR(d)):this.b&&(a=new XQ(this.b.g));this.g=a;this.B=this.A=null;a=JA&&
!rM(4);e=nM()&&lM();this.b&&this.g&&this.o&&!this.D&&!wM()&&!a&&!e&&this.o&&(this.A=new WR(this.o,null,!0),this.B=new XQ(this.A.g));this.F=this.g?c||null:null;this.J=null!=this.F;LM(IM.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.F});null===this.o?(b=this.C,U.B=b):this.D&&b&&!ka(b.getBoundingClientRect)&&(b=this.C,U.B=b);this.G=null==this.o||U.g?null:new rS(this.o,this)};
vS=function(a){return a.J&&a.F?a.F:null!=a.b?a.b.o:null};
xS=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 t=l[n];if(t.nodeName&&t.nodeName.toString().toLowerCase()===k){if(d===t){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 u=
e.parent;for(k=0;u&&u!==e&&25>k;++k){for(var x=u.frames,l=0;l<x.length;++l)if(e===x[l]){f.push(l);break}e=u;u=e.parent}}catch(z){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(u=0;u<wS.length-1;++u)c.push($g(a,wS[u])||"");u=$g(a,"videoad_start_delay");x="";u&&(u=(0,window.parseInt)(u,10),x=0>u?"postroll":0==u?"preroll":"midroll");c.push(x)}else for(u=0;u<wS.length;++u)c.push("");c=c.join(":");u=c.length;if(0==u)c=0;else{x=305419896;for(d=0;d<u;d++)x^=(x<<5)+(x>>2)+c.charCodeAt(d)&4294967295;c=
0<x?x:4294967296+x}return c.toString()};
yS=function(){H.call(this);this.currentTime=0};
zS=function(a){yS.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw gM(wQ,null,"content","currentTime");this.g=a;this.b=new de(250);this.o=new Hm(this);Jm(this.o,this.b,"tick",this.A,this)};
BS=function(a,b){H.call(this);this.b=a;this.C=!!b;this.A=AS(this);if(!this.A){var c=zf&&!zc("7")?"readystatechange":"load";this.g=Uc(this.b,c,this.B,!1,this);this.o=window.setInterval(y(this.B,this),100)}};
CS=function(a){a.o&&(window.clearInterval(a.o),a.o=null)};
AS=function(a){var b=!1;try{if(a.C||!zf||zc("11"))var c=a.b,d=(c.contentDocument||c.contentWindow.document).body,b=a.C?!!d&&!!d.firstChild:!!d;else b="complete"==a.b.readyState}catch(e){}return b};
DS=function(){H.call(this);this.A=!1;this.impressionUrls=[]};
ES=function(a,b,c){mc.call(this,a);this.o=b||null;this.b=c||null};
FS=function(a,b){this.G=a;this.F=Ki(b,function(a){return a.clone()});
this.D="";this.g=null;this.o=this.B=0;this.A=!0;this.C=[];this.b=[]};
GS=function(a,b,c,d,e,f){a.D="<div></div>";a.g=b;a.B=c;a.o=d;a.A=!1;a.C=e||[];a.b=f||[]};
HS=function(a){a.D="";a.g=null;a.B=0;a.o=0;a.A=!0;a.C=[];a.b=[]};
IS=function(){DS.call(this);this.F=[];this.C=!1;this.o="not_loaded";this.g=null;this.B=0;this.b=null;this.G=new of};
JS=function(a){var b=["googletag","googletag.cmd"];return fb(a,function(a){return Xk(b,function(b){return null!==q(b,a)})})||null};
KS=function(a,b,c){var d=0,e=0;null!=b&&(b=new M(b.b),d=Number(b.b.get("pod")||0),e=Number(b.b.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(JM.b,d,e,c)}catch(f){}};
fha=function(a,b){var c=LS(a);if(null!==c){KS(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
NS=function(a,b,c){a=MS(a);if(null!=a)try{a.setVideoContent(b,c)}catch(d){}};
OS=function(a,b){a.D=b;NS(a,"","");var c=LS(a);null===c||KS(c,null,!1)};
LS=function(a){null==a.b&&PS(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null};
MS=function(a){null==a.b&&PS(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null};
QS=function(a){a.g&&(a.g.stop(),a.g.sa("tick",a.ls,!1,a),a.g.dispose(),a.g=null)};
US=function(a){if("retrieved"!=a.o&&"not_available"!=a.o&&null!==LS(a)){var b;var c=LS(a);if(null!==c&&null!=c.getDisplayAdsCorrelator)try{b=c.getDisplayAdsCorrelator()}catch(f){b=null}else b=null;switch(b){case "not_loaded":case "not_available":a.o=b;break;default:b=Number(b),(0,window.isNaN)(b)?a.o="not_available":(a.D=b,a.o="retrieved")}}(b=RS(a))||(b=SS(a)&&"not_available"==a.o);if(b){if(!a.H&&SS(a)){var d;try{if(null==a.b)d=[];else{var e=a.b.googleGetCompanionAdSlots();d=Ki(e,a.tG,a)}}catch(f){d=
[]}a.F=d;a.H=!0}a.A=!0;QS(a);RS(a)?a.dispatchEvent(new ES("companions_success")):TS(a)}else a.g||(a.B=D()+5E3,a.g=new de(100),a.g.N("tick",a.ls,!1,a),a.g.start())};
RS=function(a){return SS(a)&&"retrieved"==a.o};
SS=function(a){a.C||(PS(a),a.C=null!=a.b&&null!=a.b.googleGetCompanionAdSlots);return a.C};
PS=function(a){var b=cg(a.G);try{a.b=JS([b,b.top])}catch(c){a.b=null}};
TS=function(a){a.dispatchEvent(new ES("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
gha=function(a,b,c){var d=new BS(b,!0);d.A?VS(a,c,b):dd(d,"ifload",ra(function(a){VS(this,c,a)},b),!1,a)};
VS=function(a,b,c){a.dispatchEvent(new ES("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Uc(d,"click",y(a.LC,a,b),!1,a)};
WS=function(a,b){mc.call(this,a);this.b=b};
XS=function(a){mc.call(this,a)};
YS=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.b=Zb(b,"thumbnails","default","url"));if(b=a.statistics)this.videoCount=b.videoCount;if(a=a.brandingSettings)this.g=Zb(a,"image","bannerImageUrl")}};
ZS=function(){this.b=new Cg};
$S=function(a,b){this.o=a;this.b=b};
aT=function(a,b){$S.call(this,"progress",a);this.g=b};
cT=function(a,b){E(b,function(a){var b=a.Fb().toLowerCase(),c=bT(this,b);c.push(a);this.b.set(b,c)},a)};
dT=function(a,b,c,d){b=b.toLowerCase();var e=bT(a,b);null!=d?(d=new aT(c,d),null!=d?e.push(d):e.push(new $S(b,c))):e.push(new $S(b,c));a.b.set(b,e)};
bT=function(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]};
hha=function(a,b){var c=bT(a,"progress");E(c,function(a){eT(a.g,b)});
Cb(c,function(a,b){return fT(a.g)-fT(b.g)})};
gT=function(a,b){return Ki(bT(a,b)||[],function(a){return a.b})};
hT=function(a,b){this.b=null!=a?a:new ZS;this.H=null!=b?b:[]};
iha=function(a,b){var c=b.b;E(c.Ua(),function(a){cT(this.b,c.get(a))},a)};
iT=function(a,b){var c=gT(a.b,b);return null!=c?c:[]};
jha=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Kb?'<a class="text-image-link" target="_blank" href="'+Y(a.Kb)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Y(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+Y(a.duration)+"</div>":"")+"</a>":"")+(a.Kb?'<a class="text-title" href="'+Y(a.Kb)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":"")+'<div class="text-description" dir='+
Y(a.dir)+">"+Y(a.text)+"</div>"+(a.gu&&a.Kb?'<a target="_blank" href="'+Y(a.Kb)+'" class="text-ad-channel">'+Y(a.gu)+"</a>":"")+"</div></div>"};
kha=function(a){return'<div class="flash-container '+(a.fg?"click-capture":"")+'">'+(a.Kb?'<a class="click-layer" target="_blank" href="'+Y(a.Kb)+'"></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="'+Y(a.width)+'" height="'+Y(a.height)+'"><param name="movie" value="'+Y(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
FR(a.Kb)+'"><embed width="'+Y(a.width)+'" height="'+Y(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Y(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+FR(a.Kb)+'"></object></div>'};
lha=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Kb?'<a target="_blank" href="'+Y(a.Kb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'};
mha=function(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Kb?'<a target="_blank" href="'+Y(a.Kb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
jT=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';"></div>'};
kT=function(){this.aa=-1;this.F={};this.ha="";this.Ag=new ZS};
lT=function(a,b,c){a.ha=b;a.F=c};
mT=function(a,b){var c=[],d=a.Ti();E(d,function(a){a=bT(a.Ag,b)||[];c=sb(a,c)},a);
return c};
nT=function(a,b,c){var d=c||!1;return fb(b.B,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)};
oT=function(a,b,c,d,e,f,k,l,m,n){this.A=a;this.b=b;this.D=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.Xe=e;this.Wd=f;this.C=k;this.B=l;this.g=XL(C(m));this.o=n};
pT=function(a,b,c,d,e,f){kT.call(this);this.aa=a;this.o=b;this.g=c;this.C=tb(d);this.K=null;this.A=e;this.ua=tb(f);xb(this.ua,null,function(a){return a.G})};
qT=function(a){var b=new Cg,c=a.Ti();E(c,function(a){if(a instanceof pT){var c=a.g;E(c.Ua(),function(a){b.set(a,sb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
rT=function(a,b){var c=fb(a.C,function(a){return!B(C(a.b))&&-1!=a.b.indexOf(b)&&("VPAID"==a.o||"surveys"==a.o)});
return null!=c?c.g:null};
sT=function(a,b,c){F.call(this);this.g=a;this.o=b;this.C=c;this.B=0;this.b=new Hm(this);nha(this)};
nha=function(a){a.C.forEach(function(a,c){this.b.N(c,"mousedown",this.D);this.b.N(c,"mouseup",this.G)},a);
a.b.N(a.o,"mouseover",a.F)};
tT=function(a,b,c){this.type=a;this.label=b;this.Na=c};
uT=function(a,b){return new tT(a,1,b)};
vT=function(a){return new tT("m",3,a)};
wT=function(a){return uT("m",a)};
xT=function(a){this.Pa=a||{}};
yT=function(a,b,c){a=a.Pa[b];return null!=a?a:c};
zT=function(a,b){return yT(a,b,"")};
AT=function(a,b,c){a=a.Pa;a[b]||(a[b]=[]);return a[b][c]};
BT=function(a,b){return a.Pa[b]?a.Pa[b].length:0};
CT=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?p(void 0)?CT(a,b,void 0,d):a:c};
ET=function(){var a=window.event||DT;if(!a)return null;var b;(b=a.which?1<<oha[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b};
FT=function(a,b,c){F.call(this);this.g=a;this.B=b;this.H=c;this.A=0;this.b={};this.o=new Hm(this);G(this,this.o);pha(this)};
pha=function(a){E(a.H,function(a){this.o.N(a.element,"mousedown",this.D,!0);this.o.N(a.element,"mouseup",ra(this.G,a),!0)},a);
a.o.N(a.B,"mouseenter",a.F)};
qha=function(a,b){Pb(a.b,function(a,d){b=ch(b,d,a)});
return b};
HT=function(a,b,c,d,e){kT.call(this);B(C(a))&&(a=Xa()+"_ima");this.wa=C(a);this.na=b;this.ea=c;this.ba=d;this.B=e;this.J=[];null!=this.ba?this.jb=GT[this.ba]||"Other":this.jb=null};
IT=function(a,b,c,d,e){HT.call(this,a,b,c,d,e);this.da=this.o=null;this.qa=-2;this.g=null;this.Ma=this.O=r;this.R=[];this.Ha=[];this.A=!1};
LT=function(a,b){a.g=b;null!=a.o&&null!=b&&(JT(a,a.O),KT(a,a.Ma))};
JT=function(a,b){null!=a.g&&null!=a.o&&E(a.R,function(a){this.g.sa(a,"click",this.O);!B(C(this.Ud()))&&this.g.N(a,"click",b)},a);
a.O=b};
KT=function(a,b){null!=a.g&&null!=a.o&&(a.g.sa(a.o,"creativeview",a.Ma),a.g.N(a.o,"creativeview",b));a.Ma=b};
MT=function(a,b){var c=a.wa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.zc()&&(d.style+="width:"+a.cb()+"px");B(C(c))||(d.id=c);return L("DIV",d,b)};
NT=function(a){if(!a.A)return null;var b=mT(a,"start");ub(b,mT(a,"creativeview"));if(null!=b&&!lb(b)){var c=[];E(b,function(a){if(!B(C(a))){var b;b=rf().Dz("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;",src:rha});Ls(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",XL(a.b));b.setAttribute("id",d);this.Ha.push(d);ob(c,b)}},a);
return c}return null};
sha=function(a,b){if(null!=a.o)if(QL().b.Z("cleanup_text_overlay_spam_signals")){var c=[];E(a.R,function(a){c.push({element:a,Sy:this.sl(a)})},a);
new FT(b,a.o,c)}else c=new Cg,E(a.R,function(a){c.set(a,this.sl(a))},a),new sT(b,a.o,c)};
tha=function(a){var b=[],c=a.Ti();E(c,function(a){b=sb(b,a.J)},a);
return b};
OT=function(a,b,c){var d=c||!1;return fb(b.B,function(a){var b=a.b==this.b;return this instanceof a.constructor&&(d||b)},a)};
PT=function(a,b){IT.call(this,a,b,"Static","text","")};
VT=function(a,b,c){var d={};a=new QT(a,p(b)?b:null,p(c)?c:null);RT(d,a);b=a.error;d.ERRORCODE=1E3>b.g?b.g:900;ST(d);TT(d,a);UT(d,a);b=a.error.bb();d.ERROR_MSG=a.error.b;d.IMA_ERROR=b;d.INTERNAL_ID="0";d.BLOCKING_ERROR=-1!=jb(uha,b)?"1":"0";d.YT_ERROR_CODE=3;return d};
WT=function(a,b){var c={},d=new QT(null,a,p(b)?b:null);RT(c,d);ST(c);TT(c,d);UT(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.g){var e=d.g.o;if(null!=e&&null!=e.sf&&null!=e.sf.video_start_delay)e=e.sf.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.A;c.BREAK_TYPE=0==e.A?"1":-1==e.A?"3":"2";c.SLOT_POS=e.g-1;var e=d.g.o,e=null!=e&&null!=e.Eb&&null!=e.Eb.GET_MIDROLL_POSITION_IN_SEC?e.Eb.GET_MIDROLL_POSITION_IN_SEC:null,
f=Math.round(d.g.A.b),e=0<f&&e?e(f):f;0<e&&(c.MIDROLL_POS=e)}}vha(c,d);wha(c,d);d=a.za;for(e=a;null!=e;)d=e.qa+","+d,e=e.g;c.RWT=d;return c};
QT=function(a,b,c){this.error=a;this.g=b;this.b=c};
XT=function(a,b){null!=b&&(a.VIEWABILITY=b)};
xha=function(){var a=wga();if(null!=a)return a.moatInit};
ZT=function(a,b,c,d,e){d&&!U.b()||!yha(c,b)?a[c]="":(d=e(),null!=d&&(a[c]=d,bM.gr(b)&&(a[c]=(0,window.encodeURIComponent)(a[c]))))};
yha=function(a,b){return Wh(zha[a],function(a){return null!=b.match(a)})};
RT=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};
a.ASSETURI={toString:function(){return null!=b.b?b.b.getVideoUrl():""}}};
wha=function(a,b){a.AD_CPN={toString:function(){return b.b.lg()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.b.getCurrentTime())).toString()}};
a.MT={toString:function(){return b.b?Math.round(Math.max(0,1E3*b.b.getCurrentTime(1))).toString():"0"}};
a.P_W={toString:function(){return null!=b.b&&null!=b.b.ud()?b.b.ud().width.toString():""}};
a.P_H={toString:function(){return null!=b.b&&null!=b.b.ud()?b.b.ud().height.toString():""}}};
ST=function(a){a.SDKV=HM(JM);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}};
TT=function(a,b){if(null!=b.g&&null!=b.g.o&&null!=b.g.o.Eb&&U.b()){var c=b.g.o.Eb;E(Aha,function(b){b in c&&(a[b]=c[b])})}};
UT=function(a,b){if(null!=b.g){a.AD_ID=Bha(b.g);a.AD_SYS=Cha(b.g);var c=$T(b.g);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.b){var a=SQ(b.b.getVideoUrl());if(null!=a)return a}return"0"}};
a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=aU(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"}};
vha=function(a,b){null!=b.g&&(a.AD_LEN={toString:function(){var a=bU(b.g);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.b?b.b.If()?"0":Math.round(100*b.b.Td()).toString():""}})};
eU=function(a,b,c){var d=null,e=c+b;E(a.B,function(f){if(FQ(f.F,"rm")){var k=WT(a);cU(a)&&(k.FILLED_OPPORTUNITY=0);cM(a.J,k);(k=a.o)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof IT)0==c&&0==b||f instanceof PT?k=!0:(k=f.wd(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.wd().height+b-f.wd().width,"Flash"!=f.zc()||BQ))if(null==d)d=f,e=k;else if(k==e&&f.b<d.b||k<e)d=f,e=k}});
dU(a,d)};
fU=function(a){var b=null;E(a.B,function(a){a instanceof pT&&(null===b||a.b<b.b)&&(b=a)});
dU(a,b)};
gU=function(a,b,c,d){this.C=a;this.H=b;this.ads=0<this.C.length?this.C:this.H;this.F=c;this.D=this.K=!0;this.o=-1;this.b=null;this.O=this.A=0;this.R=d;this.logger=null};
lU=function(a,b,c){var d=[],e=y(function(a){this.g()?hU(this,function(a){d.push(a);e(null)},function(a){301==a.bb()?c(fM(iU)):e(a)}):0<d.length?b(d):(null==a&&(a=fM(jU)),1012==a.bb()&&(a=fM(kU)),c(a))},a);
e(null)};
hU=function(a,b,c){null!=a.b?Dha(a,b,c):a.g()?Eha(a,b,y(function(a){!this.g()||!U.b()&&301==a.bb()?c(a):hU(this,b,c)},a)):c(new DL("adLoadError","The ad source contains no more ads.",1005))};
Fha=function(a,b){a.D=b;a.ads=a.J(a.C,a.H);a.o=-1};
Gha=function(a,b,c,d){var e=a.F.clone();e.g="";e.b=b.Sa;mU(a,b,e,c,d)};
mU=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.o,null!=f&&(c.g=f));a.R.fetch(c,y(function(a){a instanceof gU?(Hha(a,b,this.D&&b.Ga,b.Ia),d(a)):a instanceof nU?e(new DL("adLoadError","Ad source cannot contain playlist response.",2)):e(new DL("adLoadError","Unknown ad source.",2))},a),e)};
Iha=function(a){var b=0;for(a=a.g;null!=a;)a=a.g,b++;return b};
Dha=function(a,b,c){a.b.g()?hU(a.b,y(function(a){this.B(a,b,y(function(a){this.g()?hU(this,b,c):c(a)},this))},a),y(function(a){oU(this.ads[this.o],a);
this.b=null;U.b()||301!=a.bb()?this.g()?hU(this,b,c):c(a):c(a)},a)):(0==a.b.A&&oU(a.ads[a.o],fM(pU)),a.b=null,hU(a,b,c))};
oU=function(a,b){if(b.o){1012==b.bb()&&(b=fM(kU));var c=VT(b,a);cM(a.Ma,c)}};
Eha=function(a,b,c){a.o++;var d=a.ads[a.o];d.X||d.aa?d.aa?Gha(a,d,y(function(a){this.b=a;hU(this,b,c)},a),y(function(a){a=qU(a);
oU(d,a);c(a)},a)):Iha(d)>=U.F?(a=fM(Jha,null,String(U.F)),oU(d,a),c(a)):a.K?a.G(d,y(function(a){this.b=a;
hU(this,b,c)},a),y(function(a){a=qU(a);
oU(d,a);c(a)},a)):c(fM(Kha)):a.B(d,b,c)};
qU=function(a){switch(a.bb()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=fM(pU)}return a};
Hha=function(a,b,c,d){E(a.ads,function(a){a.g=b});
Fha(a,c);a.K=d};
rU=function(a){hT.call(this);this.g=(0,window.isNaN)(a)?-1:a};
sU=function(a,b,c,d){gU.call(this,[],a,b,c);this.M=d};
tU=function(a){return nR('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><a class="iv-endcap-image" href="'+CR(LR(a.target))+'" target="_blank"><img src="'+CR(MR(a.image))+'"></a><div class="iv-endcap-text" dir='+DR(a.dir)+'><a href="'+CR(LR(a.target))+'" target="_blank"><div class="iv-endcap-headline">'+Y(a.headline)+'</div><div class="iv-endcap-description">'+Y(a.description)+'</div></a></div><a class="iv-endcap-action" href="'+CR(LR(a.target))+'" target="_blank" dir='+
DR(a.dir)+">"+Y(a.action)+'</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>')};
Lha=function(){var a=ta("Next");return nR(""+a)};
Mha=function(){var a=ta("Previous");return nR(""+a)};
Nha=function(a,b,c){c=c||{};var d='<div class="iv-cards-companion"><div class="iv-cards-attribution"><span class="yt-badge yt-badge-ad">'+uU()+"</span>";a.cp&&a.Kb&&(b=ta("Shop products from {$advertiserName}",{advertiserName:Y(a.cp)}),d+='<a href="'+CR(LR(a.Kb))+'" target="_blank">'+b+"</a>");d+='<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>'+
Y(a.fe)+'</p></div></div></div><div class="iv-cards-slider"><div class="iv-cards-slider-body"><ul class="iv-cards-slider-list">';b=a.cards;for(var e=b.length,f=0;f<e;f++){var k;k=b[f];k=nR('<div class="iv-cards-slider-unit"><a href="'+CR(LR(k.target))+'" target="_blank"><div class="iv-cards-slider-image"><span class="iv-cards-image-helper"></span><img src="'+CR(MR(k.image))+'"></div><div class="yt-ui-ellipsis yt-ui-ellipsis-4 iv-cards-slider-text">'+Y(k.headline)+'</div><span class="iv-cards-slider-action">'+
Y(k.action)+"</span></a></div>");d+='<li class="iv-cards-slider-item">'+k+"</li>"}d+="</ul></div>"+(a.nG?'<button class="iv-cards-slider-button iv-cards-slider-prev" type="button" onclick="'+(c.dl?"/*"+c.dl+"*/":"")+';return false;"><span class="iv-cards-slider-prev-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+CR(a.Ps)+'" title="'+CR(a.Ps)+'" /></button><button class="iv-cards-slider-button iv-cards-slider-next" type="button" onclick="'+(c.dl?"/*"+c.dl+"*/":"")+';return false;"><span class="iv-cards-slider-next-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+
CR(a.wr)+'" title="'+CR(a.wr)+'"></span></button>':"")+"</div></div>";return nR(d)};
Oha=function(a){return nR('<div class="iv-website-companion">'+(a.Ai?'<img class="iv-website-companion-banner" src="'+CR(MR(a.Ai))+'">':"")+'<div class="iv-website-companion-block"><div class="iv-website-companion-icon"><img src="'+CR(MR(a.wq))+'"></div><div class="iv-website-companion-text"><div class="iv-website-companion-header">'+Y(a.headline)+'</div><div class="iv-website-companion-desc"><span class="iv-website-companion-ad-badge">'+uU()+'</span><span class="iv-website-companion-domain">'+Y(a.descriptionText)+
'</span></div></div><a class="iv-website-companion-action yt-uix-button yt-uix-button-size-default yt-uix-button-primary" href="'+CR(LR(a.target))+'" target="_blank">'+Y(a.Yo)+"</a></div></div>")};
Pha=function(a){return nR('<div class="iv-website-companion">'+(a.Ai?'<a href="'+CR(LR(a.target))+'" target="_blank"><img class="iv-website-companion-banner" src="'+CR(MR(a.Ai))+'"></a>':"")+'<div class="iv-website-companion-block"><a href="'+CR(LR(a.target))+'" target="_blank"><div class="iv-website-companion-icon"><img src="'+CR(MR(a.wq))+'"></div></a><div class="iv-website-companion-text"><a href="'+CR(LR(a.target))+'" target="_blank"><div class="iv-website-companion-header">'+Y(a.headline)+'</div></a><a href="'+
CR(LR(a.target))+'" target="_blank"><div class="iv-website-companion-desc"><span class="iv-website-companion-ad-badge">'+uU()+'</span><span class="iv-website-companion-domain">'+Y(a.descriptionText)+'</span></div></a></div><a class="iv-website-companion-action yt-uix-button yt-uix-button-size-default yt-uix-button-primary" href="'+CR(LR(a.target))+'" target="_blank">'+Y(a.Yo)+"</a></div></div>")};
vU=function(){var a=ta("Visit us");return nR(""+a)};
uU=function(){var a=ta("Ad");return nR(""+a)};
wU=function(a){M.call(this,a);this.C=new Cg;a=this.o;var b=a.indexOf(";"),c=null;0<=b?(gh(this,a.substring(0,b)),c=a.substring(b+1)):gh(this,a);Qha(this,c)};
Qha=function(a,b){B(C(b))||E(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var c=ya(a.substring(0,b));a=ya(a.substring(b+1));b=this.C.get(c);null!=b?kb(b,a)||b.push(a):b=[C(a)];this.C.set(c,b)}},a)};
Rha=function(a){if(B(C("ord")))return null;a=a.C.get("ord");return null!=a?a:null};
xU=function(a,b,c){B(C(b))||(c=Ki(c,C),a.C.set(b,c))};
yU=function(a,b){var c=[C(b)];ub(c,Sha(a));return c.join(";")};
Sha=function(a){var b=Rha(a);null!=b?B(C("ord"))||a.C.remove("ord"):b=[C(D())];var c=[];E(a.C.Ua(),function(a){E(this.C.get(a),function(b){ub(c,a+"="+b)})},a);
ub(c,"ord="+b[0]);xU(a,"ord",b);return c};
AU=function(a){if(null==a)return!1;a=new M(a);var b=a.o;return wa(a.g,"googleads.g.doubleclick.net")&&zU("/pagead/(live/)?ads",b)};
BU=function(a){a=a.b;return null!=a?"bid.g.doubleclick.net"==(new M(a)).g:!1};
CU=function(a){if(null==a)return!1;var b=new wU(a);a=b.g;b=yU(b,b.o);return!wa(a,".g.doubleclick.net")&&wa(a,"doubleclick.net")&&zU("/(ad|pfad)[x|i|j]?/",b)};
DU=function(a){if(null==a)return!1;a=new M(a);var b=a.o;return wa(a.g,"doubleclick.net")&&zU("/gampad/(live/)?ads",b)};
Tha=function(a){return AU(a.b)||CU(a.b)||DU(a.b)||BU(a)};
Uha=function(a){a=a.b;if(null==a)return null;a=(new M(a)).b;return null!=a.get("ms")?C(a.get("ms")):null};
zU=function(a,b){return B(C(b))?!1:(new RegExp(a)).test(b)};
EU=function(a){return fM(Vha,null,a.parentNode.nodeName,a.nodeName)};
FU=function(a){return fM(Wha,null,a.parentNode.nodeName,a.nodeName)};
GU=function(a,b){return null!=a?ne(Of(a),function(a){return a.nodeName==b}):[]};
HU=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
IU=function(a,b){if(null==a)return null;var c="";E(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});
c=Sa(c);return b?Ka(c):c};
JU=function(a,b,c,d){null!=a&&E(Of(a),function(a){if(a.nodeName==b)c.call(d,a);else throw EU(a);})};
KU=function(a){return B(C(a))?window.NaN:Ya(C(a))};
LU=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new Ur(0,0,0,Ya(c[0]),Ya(c[1]),Ya(c[2])),60*(60*(24*c.b+c.g)+c.o)+c.A}return null!=b?b:-1};
MU=function(a,b){if(!B(C(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};
PU=function(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?NU(a)?0:2:-1!=a.indexOf("/pcs/view")?Xha(a)?0:2:-1!=a.indexOf("/pagead/conversion")?NU(a)?1:2:2:2;0==c||1==c?(c=OU(a,"&sdkv="+HM(JM)),JM.aa&&(c=OU(c,"&ssss=gima"))):c=a;return c};
OU=function(a,b){var c=a.indexOf("&adurl=");return-1!=c?Qa(a.substr(0,c),b,a.substr(c,a.length)):a+b};
NU=function(a){return Xk(Yha,function(b){return Zg(a||"",b)})};
Xha=function(a){return Xk(Zha,function(b){return Zg(a||"",b)})};
QU=function(a,b){this.b=a;this.g=b};
fT=function(a){return a.g?-1:a.b};
eT=function(a,b){a.g&&(a.g=!1,a.b=a.b*b/100)};
TU=function(a,b,c){var d=new ZS;JU(a,"Tracking",function(a){var e=HU(a,"event"),k=PU(IU(a),b);RU(k)&&null!=e&&(null!=c&&(k=c(e,k)),"progress"==e?(a=HU(a,"offset"),a=SU(a),null!=a&&dT(d,e,k,a)):dT(d,e,k))});
return d};
$ha=function(a){if(B(C(a)))return null;a=new M(a);if("thismessage"!=a.A||"extensions"!=a.g)return null;a=a.o;if(!va(a,"/"))return null;a=a.substr(1);return B(C(a))?null:a};
SU=function(a){if(B(C(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new QU(a,!0))):(a=LU(a),0<=a&&(b=new QU(a,!1)));return b};
RU=function(a){var b=!0;if(B(C(a)))b=!1;else try{new M(a)}catch(c){b=!1}return b};
UU=function(a,b){hT.call(this);this.g=a;this.o=b};
VU=function(){};
WU=function(a,b){hT.call(this,b);this.g=a};
XU=function(a){hT.call(this);this.g=a};
YU=function(a,b,c,d){this.b=a;this.A=b;this.o=c;this.g=null!=d?d:!1};
ZU=function(a,b){a.b.G=b;E(a.A,function(a){ZU(a,b)},a)};
$U=function(a,b){IT.call(this,"1",aia,"Html",null,"dummy");this.D=0;this.ia=a.length;LT(this,new Hm(this));this.ga=bia(a,b);this.Ga=uf("iv-cards-slider-list",this.ga);if(this.M=uf("iv-cards-slider-prev",this.ga))this.g.N(this.M,"click",this.za),R(this.M,!1);(this.ca=uf("iv-cards-slider-next",this.ga))&&this.g.N(this.ca,"click",this.Ca)};
bia=function(a,b){var c=Ki(a,function(a){var b=aV(a),c=bV(b);a=a.Wg(0);return{headline:zT(b,"headline"),description:zT(b,"description"),image:cV(dV(b)),action:zT(c,"price"),target:eV(a),merchant:zT(c,"merchant")}}),d=3<a.length;
return hR(Nha,{cards:c,cp:c[0].merchant,wr:Lha(),Ps:Mha(),fe:TR(),Kb:b,nG:d})};
fV=function(a){a.Ga.style.left=125*-a.D+"px";a.M&&R(a.M,0<a.D);a.ca&&R(a.ca,a.D<a.ia-3)};
gV=function(a){IT.call(this,"1",cia,"Html",null,"website_actions_companion");LT(this,new Hm(this));QL().b.Z("website_companion_all_elements_clickable");var b=a.$i(),c=b&&b.b(),d=b&&b.g();a=a.Wg(0);b={headline:b&&zT(b,"headline")||"",wq:c&&cV(c)||"",Ai:d&&cV(d)||"",Yo:a&&zT(a,"title")||"",descriptionText:b&&zT(b,"description")||"",target:a&&eV(a)||""};this.D=QL().b.Z("website_companion_all_elements_clickable")?hR(Pha,b):hR(Oha,b)};
iV=function(a,b,c,d,e,f,k,l,m,n,t,u,x,z,J,V){this.la=a;this.da=b;this.O=c;this.Ka=d;this.na=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.Ma=l?tb(l):[];this.J=m?tb(m):[];this.B=n?tb(n):[];this.ga=[];this.G=[];this.F=null;this.R=[];this.ua=!0;this.g=this.b=null;this.D=new Cg(u);this.aa=null!=V;this.Ga=(this.X=null!=x)?z||!1:!1;this.Ia=this.BB?J||!1:!1;this.Oa=C(x);this.Sa=C(V);this.Ha=this.o=null;this.A=new uga;this.ca=new lf(0,0);this.K=String(Math.floor(1E9*Math.random()));this.ba=this.ea=this.C=null;
this.za=D();this.Ca=this.qa=0;this.ia=this.ha=!1;this.H=[];this.M=null;this.jb=!1;E(this.B,function(a){a.G=this},this);
hV(this,t)};
aU=function(a){var b=a.getExtension("AdFormat");if(null!=b&&wa(b.g+"_"+b.o+"_"+b.A,"2_4"))return b.g+"_"+b.o+"_"+b.A;b=jV(a);b=kV(a,lV)?"14":FQ(b,"hideMaster")||FQ(b,"blockAllAds")?"3":a.ob()?mV(a)?"2_3":a.isSkippable()?nV(a)?"2_1":"2_2":"2":"1";return oV(a)+"_"+b};
oV=function(a){return cU(a)?4:kV(a,lV)?14:kV(a,dia)?17:kV(a,eia)?15:pV(a,fia)||pV(a,qV)?1:rV(a)?2:0};
sV=function(a){return null!=a.da?a.da:""};
tV=function(a){return null!=a.g?sb(tV(a.g),a.Ma):a.Ma};
uV=function(a){return null!=a.g?sb(uV(a.g),a.J):a.J};
gia=function(a){if(!U.b())return[];var b=a.J;a.J=[];return b};
vV=function(a){return null!=a.g?sb(a.G,vV(a.g)):a.G};
jV=function(a){return null!=a.b?a.b.F:{}};
hia=function(a){var b={};E(a.B,function(a){a=a.F;for(var c in a)b[c]=a[c]});
return b};
wV=function(a){return null!=a.b?a.b.ha:""};
xV=function(a,b){var c=[];E(a.D.Ra(),function(a){ub(c,iT(a,b))});
return c};
dU=function(a,b){a.b=b;a.ca=null!=a.b&&a.b instanceof IT?a.b.wd():new lf(0,0);if(U.b()&&iia(a)&&lb(vV(a)))jia(a,a.H);else{var c=QL().b;U.b()&&lb(vV(a))&&c.Z("enable_website_actions_info_cards")&&c.Z("enable_website_actions_info_cards_companion")&&yV(a,a.H)}};
zV=function(a){return null!=a.la?a.la:""};
BV=function(a){if(null==a.g||AV(a.g.O))return[];var b=[zV(a.g)];ub(b,BV(a.g));return b};
Bha=function(a){var b=BV(a).reverse();b.push(zV(a));return b};
CV=function(a){if(null==a.g||AV(a.g.O))return[];var b=[sV(a.g)];ub(b,CV(a.g));return b};
$T=function(a){if(!U.b())return null;if(null!=a.g){var b=$T(a.g);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.g:null};
Cha=function(a){var b=CV(a).reverse();b.push(sV(a));return b};
AV=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
DV=function(a){if(null==a.g)return[a.O];var b=DV(a.g);b.push(a.O);AV(b[0])&&b.shift();return b};
EV=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1};
FV=function(a){if(-1!=a.na)return a.na;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1};
GV=function(a){a.jb||(a.jb=!0,a.M.O++,null!=a.g&&GV(a.g))};
HV=function(a){return a.M instanceof sU&&a.M.g()?a.M:null!=a.g?HV(a.g):null};
IV=function(a,b,c,d){a=vV(a);return AQ(new yQ(new lf(b,c),d),a)};
JV=function(a){var b=a.o.yg,c=a.o.xg;if(!b||!c)if(a=a.o.b?$g(a.o.b,"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 lf(b,c)};
kia=function(a,b,c){var d=new KV;d.Pa.type=4;var e=a.getExtension("AdSense"),f=new LV;f.Pa.hide_in_drawer=!0;f.Pa.show_in_endcap=!0;d.Af=function(){return f};
var k=new MV;k.Pa.headline=b;var l=new NV;l.Pa.image_url=c;k.b=function(){return l};
k.Pa.description=e&&e.g||"";d.$i=function(){return k};
var m=[new OV];m[0].Pa.target=PV(a)||"";b=vU();m[0].setTitle(b);d.Wg=function(a){return m[a]};
d.$j=function(){return m.length};
a.R=[d]};
lia=function(a){var b=ne(a,function(a){return!!yT(a.Af(),"show_in_endcap",void 0)});
0==b.length&&0<a.length&&QL().b.Z("enable_ad_video_end_renderers")&&(b=a.slice(1,2));return b};
jia=function(a,b){var c=ne(b,function(a){return!!yT(a.Af(),"show_in_companion",void 0)});
lb(c)&&(c=b);c=new $U(c,PV(a));c.G=a;c.A=!0;QV(a,new YU(c,[],null,!0))};
mia=function(a,b){var c=fb(vV(a),function(a){return"Image"==a.zc()}),c=c&&c.b.B||b.g,d=a.getExtension("AdSense"),d=d&&d.g,e=b.authorName,f=b.b,k=vU(),l=PV(a);
if(!d||!f||!l)return null;var m=new KV;m.Pa.type=4;var n=new LV;n.Pa.hide_in_drawer=!0;n.Pa.show_in_companion=!0;m.Af=function(){return n};
var t=new MV;t.Pa.headline=e;var u=new NV;u.Pa.image_url=f;t.b=function(){return u};
var x=new NV;x.Pa.image_url=c;t.g=function(){return x};
t.Pa.description=d;m.$i=function(){return t};
var z=[new OV];z[0].Pa.target=l;z[0].setTitle(k);m.Wg=function(a){return z[a]};
m.$j=function(){return z.length};
return[m]};
yV=function(a,b){var c=fb(b,function(a){return 4==a.Fb()&&!!yT(a.Af(),"show_in_companion",void 0)});
c&&(c=new gV(c),c.G=a,c.A=!0,QV(a,new YU(c,[],null,!0)))};
nia=function(a){if(!a.o||kV(a,RV)&&!kV(a,["ADSENSE/ADX"]))return[];var b=JV(a);if(0>=b.width||0>=b.height)return[];var c=new vQ;c.creativeType="All";c.o="All";c.A="SelectNearMatch";c.b=40;var d=IV(a,b.width,b.height,c);if(!lb(d))return d;c.g="ResizeSmaller";d=ne(vV(a),function(a){return a.b.xh()},a);
return AQ(new yQ(new lf(b.width,b.height),c),d)};
TV=function(a){if(lb(a.R))return!1;var b=QL().b;if(b.Z("only_show_endcap_for_longer_video_ads")&&SV(a)<b.b("ad_duration_threshold_for_showing_endcap_seconds"))return!1;a=a.R[0].Fb();return b.Z("enable_ad_video_end_renderers")&&1==a||b.Z("enable_website_actions_info_cards_endcap")&&4==a};
oia=function(a){var b=null,c=0;E(nia(a),function(a){var d;d=JV(this);d=!a.b.xh()||a.cb()<=d.width&&a.getHeight()<=d.height?a.Ul():CQ(a.Ul(),d);d=d.width*d.height;d>c&&(c=d,b=a)},a);
return b};
UV=function(a,b){return b||null==a.g?a.ga:sb(a.ga,UV(a.g))};
hV=function(a,b){a.ga=b?tb(b):[];E(a.ga,function(a){ub(this.G,tb(a.b))},a);
E(a.G,function(a){ZU(a,this)},a);
U.b()&&a.ob()&&(a.G=ne(a.G,function(a){return 60>=a.getHeight()}))};
VV=function(a,b){return Wh(a.B,function(a){return a instanceof pT&&"linear"==b||a instanceof IT&&"nonlinear"==b?!0:!1})};
WV=function(a){return-1!=bU(a)&&0!=bU(a)&&7>=bU(a)};
XV=function(a){var b=a.b;return kV(a,RV)&&null!=b&&b instanceof IT&&(90<a.ca.height||null!=a.o&&a.o.kg)};
YV=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:YV(a,b.g)};
ZV=function(a){var b=YV(a,a.g);if(null!=b){if("skippable"==b.g)return b.o;if("nonskippable"==b.g)return null}var b=null,c=new QU(5,!1),d=pia(a);"implicit"==d&&(b=c);var e=a.b;null==b&&null!=e&&e instanceof pT&&(b=e.A);null!=b||"explicit"!=d||(b=c);return U.b()&&a.ob()&&null!=b?(0,window.isNaN)(a.o.B)?c:new QU(a.o.B,!1):b};
pia=function(a){if(null!=fb(a.D.Ra(),function(a){return!lb(iT(a,"skip"))}))return"implicit";
var b=a.D.get("DFP");if(b instanceof WU)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.b;return U.b()&&null!=a&&(a=a.Ag,null!=a&&!lb(bT(a,"skip")))?"explicit":"none"};
$V=function(a){if(null==a.o)return!1;var b=a.o.b;null!=b&&wa(b,"/PrefetchedAd")&&null!=a.g&&(b=a.g.D.get("LocalRedirect"),b=null!=b?b.Od():null);(a=AU(b)||DU(b)||CU(b))||(null==b?a=!1:(b=(new M(b)).g,a=wa(b,"viral.adsense.net")));return a};
nV=function(a){if(null==a.da||null==a.o)return!1;var b;(b=$V(a)||!1)&&!(b=kV(a,RV)&&!kV(a,["ADSENSE/ADX"]))&&(kV(a,qV)?(b=a.D.get("DFP"),b=null!=b?"InstreamSelect"==b.g:!1):b=!1);if(b||a.g&&a.g.aa&&$V(a.g))return!0;a=pV(a,["ADSENSE/ADX"])||a.g&&rV(a);return U.b()&&!a};
PV=function(a){return null===a.b?null:a.b.Ud()};
SV=function(a){return null!=a.b?a.b.aa:-1};
aW=function(a){return null!==a.F?10:TV(a)?(a=QL().b.b("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3)):0};
bU=function(a){return SV(a)+aW(a)};
bW=function(a){return null===a.b?null:a.b.km()};
cW=function(a){return null===a.b?null:a.b.jm()};
cU=function(a){return null!=a.g&&cU(a.g)||kV(a,qia)};
mV=function(a){var b=bW(a);return kV(a,["402"])||w(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")};
dW=function(a){return kV(a,RV)&&nV(a)&&!WV(a)&&!B(C(a.C))&&null!==ZV(a)&&0<fT(ZV(a))};
rV=function(a){return pV(a,RV)||pV(a,["402"])};
eW=function(a){a=a.getExtension("InfoCards");return null!=a?a.g:null};
fW=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.g:null};
kV=function(a,b){return null!=a.da?kb(b,a.O):!1};
pV=function(a,b){for(var c=DV(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(kb(b,c[d]))return!0;break}return!1};
QV=function(a,b){a.G=[b]};
iia=function(a){return a.ob()&&0<a.H.length&&Xk(a.H,function(a){return 1==a.Fb()})};
gW=function(){H.call(this);this.o=[]};
hW=function(){return new iV("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new Cg)};
iW=function(a){gW.call(this);this.b=a;this.F=null;this.D=!1;this.A=null;this.B=new Hm;Jm(this.B,this.b,["companions_success","companion_initialization_failed"],this.RE,this);Jm(this.B,this.b,"companion_display_error",this.NC,this);Jm(this.B,this.b,["companion_slot_init","companion_click"],this.JC,this);this.b.A?this.D=!0:this.b.initialize()};
kW=function(a){var b=a.A;a.A=null;if(null!=a.b)if(lb(a.o))jW(a,Error("Companion slots not available."));else if(null!=b){var c=ria(a,b);a.b.Bq(a.o);0<c.length&&b.ua&&a.b.mp(c,b)}else jW(a,Error("Invalid master ad."))};
jW=function(a,b){a.dispatchEvent(new WS("companion_display_error",b))};
ria=function(a,b){var c=[],d=[];E(a.o,function(a){HS(a);Wh(a.F,function(d){a:{d=IV(b,d.width,d.height);if(!lb(d)&&(d=sia(d,c),null!=d)){var e=d.o;if(null!=e&&0!=a.G.indexOf(e)){d=!1;break a}e=d.b.J;ub(e,xV(b,"companionClick"));var f=xV(b,"companionImpression"),k=U.b()&&"Html"==d.b.ea&&d.g;c.push(d);if(k)GS(a,d.hc(),d.cb(),d.getHeight(),f,e);else{var k=d.gc(),t=d.cb(),u=d.getHeight();d="IFrame"!=d.b.ea;a.D=k;a.g=null;a.B=t;a.o=u;a.A=d;a.C=f||[];a.b=e||[]}d=!0;break a}d=!1}return d},this)||d.push(a)},
a);
var e=lW(b);a.C=mW(e,c);a.C||E(a.o,function(a){HS(a)},a);
return d};
mW=function(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?tia(c,b):"any"==a.g?uia(c,b):!0};
lW=function(a){return null==a||null==a.b||(0,window.isNaN)(a.b.b)?null:fb(UV(a,!0),function(a){a=a.b;return lb(a)?!1:(0,window.isNaN)(a[0].b.b)?!1:a[0].b.b==a[0].xl()})};
tia=function(a,b){return Xk(a,function(a){return kb(b,a)})};
uia=function(a,b){return Wh(a,function(a){return kb(b,a)})};
sia=function(a,b){return fb(a,function(a){return!kb(b,a)})};
nW=function(a){this.b=a};
oW=function(a,b){mc.call(this,"adsManagerLoaded");this.b=a;this.o=b};
pW=function(a,b,c,d){a.b.Rc(new nW(b),c,d);return a.b};
qW=function(a){mc.call(this,a);this.A=[];this.o={};this.B=null;this.b=!0};
rW=function(){this.o=new Cg;this.g=!U.b()&&.01>Math.random();this.A=0;this.b="0";this.B=""};
via=function(){var a=rW.getInstance();a.sendMessage("ff",a.A);a.A=0};
sW=function(a,b,c,d){d=d||{};var e=new M("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc="+wia());d.cid=xia(a);d.utv=b;d.utt=c;d.cd6=HM(JM);b=TL(QL());B(C(b))||(d.xid=b);Pb(d,function(a,b){nh(e,b,a)},a);
return e.toString()};
zia=function(a,b){if(null!=b){var c=ya(b),c=yia.exec(c),d=C((new M(b)).b.get("client"));a.b=c&&2==c.length?c[1]:B(d)?"0":d}else a.b="0"};
wia=function(){var a=JM.o,b="html5";null!=a&&(Na(a,"android")?b="android":Na(a,"ios")&&(b="ios"));return b};
xia=function(a){B(a.B)&&(a.B="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)}));
return a.B};
tW=function(a,b,c){this.C=b;this.b=c;this.B=null;this.o=new Hm(this);this.H=a;this.A=this.g=null;this.F=!1};
Aia=function(a){if(null===a.B)uW(a);else{var b=new M(a.B.b),c=C(b.b.get("vid")),b=C(b.b.get("cmsid")),d=a.b.F,e=a.b.D;a.b.F=c;a.b.D=b;if(B(C(c))||B(C(b)))uW(a);else if(c==d&&b==e)uW(a);else{var f=a.C.zf();NS(f,c,b);fha(f,a.B);f.Wm();a.A=new de(100);Jm(a.o,a.A,"tick",function(){var a;a:{var b=MS(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(m){a=!0;break a}a=!1}a?uW(this):f.Wm()},a);
a.A.start()}}};
Bia=function(a){a.g=new de;Nm(a.o,a.g,"tick",function(){uW(this)},a);
ee(a.g,a.H);a.g.start()};
uW=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.F=!0;null===a.D||a.D()};
vW=function(){H.call(this);this.b=new Cg;this.g=null;this.G=new Hm(this);G(this,this.G);this.B="";this.A=this.H=this.D=this.o=null;this.F=-1};
xW=function(){null!=wW||(wW=new vW);return wW};
yW=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;xW().dispatchEvent(new FL("measurable_impression",null,c))};
zW=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;xW().dispatchEvent(new FL("viewable_impression",null,c))};
AW=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;xW().dispatchEvent(new FL("externalActivityEvent",null,d))};
Cia=function(a,b){a.o=b};
Dia=function(a,b){if(a.g)if(a.A){var c=D()-a.F;b(a.A+"_ct"+c)}else{var d=a.b,c=window.setTimeout(function(){b("timeout");E(d.Ua(),function(a){d.get(a)===b&&d.remove(a)})},200);
a.b.set(c,b);var e={};e.osdId=a.B;e.eventId=c;IM.getInstance().b&&(a.C=D(),e.loggingId=Math.random(),LM(IM.getInstance(),43,{step:"sendingMessage",logid:e.loggingId,time:a.C}));a.g.send("activityMonitor","fetchAdTagUrl",e)}else b("")};
Eia=function(a){return ka(a.getBoundingClientRect)&&Tf(pf(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
Fia=function(a,b,c,d){if(a.g){var e={};e.queryId=c;e.vastEvent=b;a.B&&(e.osdId=a.B);e.isOverlay=null!=a.o;a.o&&(e.overlayBounds=Eia(a.o));if(SL(QL(),41351021)||SL(QL(),31061781)){var f={};f.opt_fullscreen=e.isFullscreen;e.isOverlay&&(f.opt_bounds=e.overlayBounds);d(uQ(b,c,f))}else{var k=a.b;b=window.setTimeout(function(){d({viewability:"timeout"});E(k.Ua(),function(a){k.get(a)===d&&k.remove(a)})},200);
a.b.set(b,d);e.eventId=b}a.g.send("activityMonitor","reportVastEvent",e)}else d({})};
BW=function(){};
CW=function(a,b,c){this.g=a;this.b=c;this.o=b};
Gia=function(a){this.o=a};
DW=function(a){this.o=a;this.g=this.b=!1};
Hia=function(a,b,c){this.b=a;this.g=b;this.o=c};
EW=function(){this.b=new Cg};
FW=function(a,b,c){if((0,window.isNaN)(c)||!ia(c))throw Error("Incorrect time offset.");var d=[];Eg(a.b,c)&&(d=a.b.get(c,[]));E(b,function(a){null!=a&&ob(d,a)});
a.b.set(c,d)};
GW=function(a,b){this.b=a;this.g=b};
Jia=function(a){var b=new EW;E(Of(Qf(a.b)),function(a){switch(a.nodeName){case "Preroll":a=HW(this,a);FW(b,a,0);break;case "Midroll":var c=HU(a,"timeOffset"),e=LU(c);if(-1==e)throw fM(IW,null,"timeOffset",C(c));a=HW(this,a);FW(b,a,e);break;case "Postroll":a=HW(this,a);FW(b,a,-1);break;default:throw fM(JW,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.b.Ua().length)throw fM(Iia);return b};
HW=function(a,b){var c=[];E(Of(b),function(a){switch(a.nodeName){case "Ad":var b=C(IU(a));if(!B(b)){a=HU(a,"bumper");var d=this.g.clone();d.b=b;b=new DW(d);b.b=null!=a;b.g="always"==a;ob(c,b)}break;default:throw fM(JW,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
KW=function(a,b,c){hT.call(this);this.g=a;this.o=b;this.A=c};
LW=function(){};
MW=function(){this.B=null;this.C="http://www.google.com/adsense/support";this.D=0;this.b=15;this.A=5;this.o=3;this.g=!1};
Kia=function(a,b){a.b=b};
NW=function(a,b,c,d,e,f,k,l,m,n,t){hT.call(this,n,t);this.B=a;this.C=b;this.A=c;this.D=m;this.F=k;this.o=f;this.g=e};
OW=function(){};
Mia=function(a,b){var c;E(Of(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new MW:null;break;case "params":null!=c&&Lia(this,c,a)}},a);
return c};
Lia=function(a,b,c){E(Of(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.C=c;break;case "attribution_text":b.B=c;break;case "signals":b.D=(0,window.parseInt)(c,10);break;case "audio_muted_on_start":b.g=MU(c,!1)}},a)};
PW=function(){};
QW=function(){};
RW=function(){};
SW=function(){};
TW=function(a){this.Pa=a||{}};
KV=function(a){this.Pa=a||{}};
LV=function(a){this.Pa=a||{}};
OV=function(a){this.Pa=a||{}};
UW=function(a){this.Pa=a||{}};
VW=function(a){this.Pa=a||{}};
WW=function(a){this.Pa=a||{}};
MV=function(a){this.Pa=a||{}};
NV=function(a){this.Pa=a||{}};
aV=function(a){return new VW(a.Pa.product_card)};
bX=function(){if(!XW){var a={};XW={Yb:a};a.type=YW;a.id=ZW;a.link_url=ZW;a.title=ZW;a.image=wT($W());var b=aX();a.event=vT(b);a.target=ZW}return XW};
eV=function(a){return zT(a,"target")};
aX=function(){if(!cX){var a={};cX={Yb:a};a.type=YW;a.base_url=ZW}return cX};
dV=function(a){return new NV(a.Pa.image)};
bV=function(a){return new WW(AT(a,"offer",0))};
$W=function(){if(!dX){var a={};dX={Yb:a};a.image_url=ZW;a.thumbnail_url=ZW;a.image_height=eX;a.image_width=eX}return dX};
cV=function(a){return zT(a,"image_url")};
fX=function(a,b,c){hT.call(this,c);this.g=a;this.o=b||null};
gX=function(a){this.b=a};
iX=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Yb[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]=hX[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.Yb[f.nodeName],l=iX(a,f,k.Na);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
Nia=function(a,b){var c=new ZS;E(Of(b),function(a){"CustomTracking"==a.nodeName&&null!=Of(a)&&(c=TU(a,!1,y(function(a,b){return jX(a,b)},this)))},a);
return c};
jX=function(a,b){return ou(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";default:return""}}}})};
kX=function(a,b){hT.call(this);this.o=a;this.g=C(b)};
lX=function(a,b){this.logger=null;this.o=b;this.b={};this.g=[];this.b.CustomTracking=TU;this.b.UI=this.B};
mX=function(a,b){if(null==b)return null;var c={};E(Of(b),function(a){c[a.nodeName]=null!=this.b[a.nodeName]?this.b[a.nodeName].call(this,a):null},a);
return null!=c.UI?c:null};
nX=function(a,b,c,d,e,f){hT.call(this,f);this.o=a;this.B=b;this.C=c;this.A=d;this.g=e};
oX=function(a){return null!=a.g?a.g.length:0};
pX=function(){lX.call(this,0,"mute_");this.b.SurveyOptions=this.A};
qX=function(a,b,c,d){hT.call(this);this.A=a;this.o=b;this.B=c;this.g=d};
rX=function(){};
sX=function(){hT.call(this)};
tX=function(){};
Oia=function(a,b){E(Of(b),function(a){a.nodeName==this.b.ey&&IU(a)},a)};
uX=function(a,b,c,d){hT.call(this);this.o=a;this.A=b;this.B=c;this.g=d};
vX=function(){};
wX=function(a){hT.call(this);this.g=a};
xX=function(){};
yX=function(a,b,c,d,e,f,k,l,m){hT.call(this,e);this.A=a;this.B=b;this.C=c;this.o=d;this.g=f||null;this.G=k||null;this.F=l||null;this.D=m||null};
zX=function(){lX.call(this,0,"why_this_ad_");this.g.push("targeting_reason")};
AX=function(a,b){return null!=a?Xk(b,function(b){return b in a}):!1};
Pia=function(a,b){return null!=a?Wh(b,function(b){return b in a}):!1};
BX=function(){};
CX=function(){hT.call(this)};
DX=function(){};
EX=function(){};
Qia=function(a,b){this.b=a;this.g=b};
FX=function(a,b,c,d){IT.call(this,a,b,"Static",c,d);this.tp=!1};
GX=function(a,b,c,d){IT.call(this,a,b,"Html",c,d)};
HX=function(a,b,c,d){IT.call(this,a,b,"Static",c,d)};
IX=function(a,b,c,d,e){IT.call(this,a,b,c,d,e)};
KX=function(a,b,c){if(lb(c))return new IT(a,b,"",null,"");var d=JX(c);c=d.g;var e=d.b,d=d.o;switch(c){case "Html":return new GX(a,b,e,d);case "Static":switch(GT[e]){case "Image":return new HX(a,b,e,d);case "Flash":return new FX(a,b,e,d);case "Text":return new PT(a,b)}}return new IX(a,b,c,e,d)};
JX=function(a){var b=fb(a,function(a){return"Static"==a.g&&"Flash"==GT[a.b]}),c=fb(a,function(a){return"IFrame"==a.g}),d=fb(a,function(a){return"Html"==a.g}),e=fb(a,function(a){return"Static"==a.g&&"Image"==GT[a.b]}),f=fb(a,function(a){return"Static"==a.g&&"Text"==GT[a.b]});
return BQ&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
Ria=function(a,b,c,d,e,f){var k=JX(f),l=KX(a.id,a.size,[k]);l.A=!0;l.H=a.apiFramework;l.X=b;l.J=c;l.b=d;e&&(l.Ag=e);qb(f,k);var m=[];E(f,function(f){f=KX(a.id,a.size,[f]);f.A=!0;f.H=a.apiFramework;f.X=b;f.J=c;f.b=d;e&&(f.Ag=e);m.push(new YU(f,[],a.adSlotId))});
return new YU(l,m,a.adSlotId)};
LX=function(a,b,c){this.g=a;this.b=b;this.o=c};
MX=function(a,b,c,d,e,f,k){this.o=a;this.G=b;this.B=c;this.C=d;this.g=e;this.D=f;this.F=k;this.b=this.o.Md()};
Sia=function(a){gt(a.b)||(R(a.b,!0),E(a.F,function(a){ZL(a)}))};
Tia=function(a,b,c,d,e,f,k,l,m,n){b=KX("icon"+a,b,n);b.H=k;b.X=l.iconClickThrough;return new MX(b,a,c,d,e,f,m)};
NX=function(a){this.A=a;this.logger=null};
OX=function(a){if(null==a)return!1;a=Qf(a);return null!=a&&"VAST"==a.nodeName};
QX=function(a,b){var c=[],d=null;try{var e=Fs(a),f=Qf(e);null!=f&&"CompanionAds"==f.nodeName&&(d=PX(NX.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c};
RX=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return ia(a)&&!(0,window.isNaN)(a)?a:0};
Via=function(a){var b=[],c=Qf(a.A),d=RX(c);JU(c,a.b.hw,function(a){var c;c=SX(a);if(null==c)throw EU(a);var e=a.getAttribute(this.g.ni);a=Number(a.getAttribute(this.g.Ho));c=Uia(this,c,e||null,a||0);null!=c&&(c.Ca=d,b.push(c))},a);
return b};
SX=function(a){var b=null;E(Of(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw EU(a);}});
return b};
Uia=function(a,b,c,d){var e,f,k=[],l=[],m=[],n=[],t=new Cg,u,x=b.nodeName==a.b.oy,z=x,J=x,V;E(Of(b),function(a){switch(a.nodeName){case this.b.iy:if(x){if(null!=u)throw FU(a);u=IU(a);V=$ha(u);z=MU(b.getAttribute(this.g.mw),z);J=MU(b.getAttribute(this.g.Vw),J)}else throw EU(a);break;case this.b.jw:e=IU(a);break;case this.b.kw:f=IU(a);break;case this.b.Jw:IU(a);break;case this.b.$x:IU(a);break;case this.b.pi:a=IU(a);RU(a)&&k.push(PU(a));break;case this.b.ERROR:a=IU(a);l.push(PU(a));break;case this.b.Cw:a=
Wia(this,a);m=a.creatives;n=a.Vy;break;case this.b.Sw:t=Xia(this,a,V)}},a);
return new iV(C(c),e,Yia(e),f,0,0,d,l,k,m,n,t,u,z,J,Zia(t))};
Zia=function(a){var b=null;a=a.get("AdSense");null!=a&&(a=iT(a,"vast2tracking"),null!=a&&!lb(a)&&(b=a[0]));return b};
Yia=function(a){if(B(C(a)))return"UNKNOWN";a=a.toUpperCase();switch(a){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":return a;default:return"UNKNOWN"}};
$ia=function(a){if(B(C(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
Xia=function(a,b,c){var d=new Cg;try{var e=GU(b,a.b.Rw);E(e,function(a){var b=a.getAttribute(this.g.Uo);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new DX).parse(a);break;case "pod":a=(new BX).parse(a);break;case "waterfall":a=(new EX).parse(a);break;case "dart":a=(new QW).parse(a);break;case "dfp":b="DFP";a=(new RW).parse(a);break;case "adsense":b="AdSense";a=(new PW).parse(a);break;case "textad":b="TextAd";a=(new vX).parse(a);break;case "templatead":b="TemplateAd";a=(new tX).parse(a);break;
case "infocards":var b="InfoCards",e=new gX(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new gX(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null==a)a=null;else{var e=null,f=GU(a,"AdXml");1==f.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+Gs(Qf(f[0])));a=GU(a,"VASTAdTagURI");f=null;1==a.length&&(f=a[0].textContent);a=new kX(e,f)}break;case "viral":b="viral";a=(new xX).parse(a);break;case "adx":b="adx";a=(new VU).parse(a);break;case "why_this_ad":b=
"why_this_ad";a=(new zX).parse(a);break;case "mute":b="mute";a=(new pX).parse(a);break;case "sodar":a=(new rX).parse(a);break;case "adformat":b="AdFormat";a=(new LW).parse(a);break;default:e=new SW,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(iha(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ka(f.bb)||1105==f.bb())throw f;
}return d};
Wia=function(a,b){var c=[],d=[];JU(b,a.b.Bw,function(a){var b=a.getAttribute(this.g.Ho),e;B(C(b))||(e=(0,window.parseFloat)(b));var l=a.getAttribute(this.g.ni),m=!1;E(Of(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(m)throw FU(a);a=aja(this,a,(0,window.isNaN)(e)?0:e,l||null);ub(c,a);m=!0;break;case this.b.xw:if(m)throw FU(a);a=PX(this,a,(0,window.isNaN)(e)?void 0:e);ub(d,a);m=!0;break;case this.b.Dx:if(m)throw FU(a);a=bja(this,a,(0,window.isNaN)(e)?0:e,l||null);ub(c,a);m=!0}},this)},a);
return{creatives:c,Vy:d}};
bja=function(a,b,c,d){var e=[],f=new ZS;E(Of(b),function(a){switch(a.nodeName){case this.b.Cx:a=cja(this,a,c,d);null!=a&&e.push(a);break;case this.b.Ck:f=TU(a);break;default:throw EU(a);}},a);
0!=e.length||f.isEmpty()||(a=new IT(null,new lf(-1,-1),"",null,""),a.b=c,a.la=d,e.push(a));E(e,function(a){f&&(a.Ag=f)});
return e};
TX=function(a,b){var c={};c.id=b.getAttribute(a.g.ni);c.adSlotId=b.getAttribute(a.g.iw);c.apiFramework=b.getAttribute(a.g.ki);var d=Ya(b.getAttribute(a.g.si)),e=Ya(b.getAttribute(a.g.li));c.size=new lf(d,e);d=b.getAttribute(a.g.Qw);e=b.getAttribute(a.g.Pw);B(C(d))||B(C(e))||(c.fR=new lf(Ya(d),Ya(e)));return c};
cja=function(a,b,c,d){var e=TX(a,b);b.getAttribute(a.g.ki);b.getAttribute(a.g.Qx);b.getAttribute(a.g.ox);var f=b.getAttribute(a.g.zx),f=LU(f,-1),k=[];new Cg;var l={},m="",n,t=[];E(Of(b),function(a){switch(a.nodeName){case this.b.Fx:t.push(IU(a));break;case this.b.Ex:n=IU(a);break;case this.b.vk:l=UX(a);m=C(IU(a));break;case this.b.oi:case this.b.ri:case this.b.mi:a=VX(this,a);null!=a&&k.push(a);break;default:throw EU(a);}},a);
a=KX(e.id,e.size,k);lT(a,m,l);a.H=e.apiFramework;a.X=n;a.J=t;a.qa=f;a.b=c;a.la=d;return a};
VX=function(a,b){var c=HU(b,a.g.Dw);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.b.ri:d="Static";break a;case a.b.oi:d="IFrame";break a;case a.b.mi:d="Html";break a;default:throw fM(dja,null,d);}var e=IU(b);null!=e||(e="");return new LX(d,c,e)};
PX=function(a,b,c){var d=[],e=$ia(HU(b,a.g.Mx));JU(b,a.b.ww,function(a){a=eja(this,a,c);null!=a&&d.push(a)},a);
return new Qia(d,e)};
eja=function(a,b,c){var d=TX(a,b),e=[],f=new ZS,k,l=[];E(Of(b),function(a){switch(a.nodeName){case this.b.zw:l.push(IU(a));break;case this.b.Ck:f=TU(a,!0);break;case this.b.yw:k=IU(a);break;case this.b.ow:IU(a);break;case this.b.vk:IU(a);break;case this.b.oi:case this.b.ri:case this.b.mi:a=VX(this,a);null!=a&&e.push(a);break;default:throw EU(a);}},a);
return lb(e)?null:Ria(d,k,l,c,f,e)};
aja=function(a,b,c,d){var e=new ZS,f={},k="",l=[],m,n=new Cg,t=[],u=[],x,z=SU(HU(b,a.g.Tx));E(Of(b),function(a){switch(a.nodeName){case this.b.Yw:u=fja(this,a);break;case this.b.vk:f=UX(a);k=C(IU(a));break;case this.b.yk:x=LU(IU(a),0);break;case this.b.Ck:e=TU(a);break;case this.b.vx:t=gja(this,a);break;case this.b.jy:a=hja(this,a);n=a.customClicks;m=a.clickThrough;l=a.clickTrackingUrls;break;default:throw EU(a);}},a);
E(l,function(a){dT(e,"click",a)});
a=new pT(x,m,n,t,z,u);lT(a,k,f);a.b=c;a.la=d;e&&(a.Ag=e);return a};
hja=function(a,b){var c,d=[],e=new Cg;E(Of(b),function(a){switch(a.nodeName){case this.b.uw:c=IU(a);break;case this.b.vw:a=IU(a);d.push(a);break;case this.b.Gw:var b=HU(a,this.g.ni);null!=b||(b="");var f=e.get(b,[]);f.push(IU(a));e.set(b,f);break;default:throw EU(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
gja=function(a,b){var c=[];JU(b,a.b.tx,function(a){var b=HU(a,this.g.Iw),d=HU(a,this.g.Uo),k=HU(a,this.g.ky),l=Ya(a.getAttribute(this.g.si)),m=Ya(a.getAttribute(this.g.li)),n=a.getAttribute(this.g.ki),t=IU(a),u=KU(a.getAttribute(this.g.ko)),x=KU(a.getAttribute(this.g.yx));a=KU(a.getAttribute(this.g.rx));b=new oT(b,d,k,u,x,a,l,m,t,n);c.push(b)},a);
return c};
fja=function(a,b){var c=[];JU(b,a.b.Xw,function(a){a=ija(this,a);null!=a&&c.push(a)},a);
return c};
ija=function(a,b){var c=b.getAttribute(a.g.Hx),d=HU(b,a.g.ry),e=HU(b,a.g.uy),f=Ya(b.getAttribute(a.g.si)),k=Ya(b.getAttribute(a.g.li)),f=new lf(f,k),k=b.getAttribute(a.g.ki),l=SU(HU(b,a.g.Gx)),m=b.getAttribute(a.g.yk),m=LU(m,-1),n=[],t=[],u={};E(Of(b),function(a){switch(a.nodeName){case this.b.bx:t.push(IU(a));break;case this.b.Zw:u=jja(this,a);break;case this.b.oi:case this.b.ri:case this.b.mi:a=VX(this,a);null!=a&&n.push(a);break;default:throw EU(a);}},a);
return lb(n)?null:Tia(c,f,d,e,m,l,k,u,t,n)};
jja=function(a,b){var c=[],d;E(Of(b),function(a){switch(a.nodeName){case this.b.$w:d=IU(a);break;case this.b.ax:c.push(IU(a));break;default:throw EU(a);}},a);
return{iconClickThrough:d,hR:c}};
UX=function(a){a=IU(a);return null!=a?tga(a):{}};
WX=function(a,b){this.g=a;this.b=b};
kja=function(a){var b=[],c=GU(a,"vmap:Extensions")[0];if(c){var d;JU(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=GU(d,"yt:BreakTime"),!lb(b)))return Ki(b,function(a){return HU(a,"timeOffset")})}return[HU(a,"timeOffset")]};
nja=function(a){var b=new EW;E(Of(Qf(a.g)),function(a){if("vmap:AdBreak"==a.nodeName){var c=lja(this,a);a=kja(a);E(a,function(a,d){var e=LU(a);0<d&&(c=mja(this,c));if("start"==a||0==e)FW(b,c,0);else if("end"==a)FW(b,c,-1);else{if(-1==e)throw fM(IW,null,"timeOffset",C(a));FW(b,c,e)}},this)}},a);
if(0==b.b.Ua().length)throw fM(jU);return b};
mja=function(a,b){return Ki(b,function(a){var b=new DW(a.o.clone());b.b=a.b;b.g=a.g;return b},a)};
oja=function(a){a=HU(a,"timeOffset");var b=LU(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b};
pja=function(a){return(a=fb(Of(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?fb(Of(a),function(a){return"VAST"==a.nodeName}):null};
lja=function(a,b){var c=[],d="",e=null,f=!1,k=!1;E(Of(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=Hs(a,"vmap:VASTData/VAST")||Hs(a,"vmap:VASTAdData/VAST")}catch(u){}e||(e=pja(a));if(!e){var b=GU(a,"vmap:AdTagURI"),c="";b.length&&(c=C(IU(b[0])));if(B(c))throw fM(qja,null,a.parentNode.nodeName,a.nodeName);d=c}}break;case "vmap:Extensions":a=GU(a,"vmap:Extension"),a=rja(this,a),null!=a&&(f=!0,a=HU(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var l=null;e?l=sja(a,e):B(d)||(l=tja(a,d));l&&(U.b()&&(l.Sh=oja(b)),l=new DW(l),l.b=f,l.g=f&&!k,ob(c,l));return c};
rja=function(a,b){return fb(b,function(a){return"bumper"==HU(a,"type")},a)};
tja=function(a,b){var c=a.b.clone();B(c.g)||(c.g="");c.b=b;return c};
sja=function(a,b){var c=a.b.clone();c.g=Gs(b);c.b="";return c};
vja=function(a,b){if(null!=a){var c;null==a?c=!1:(c=Qf(a),c=null!=c&&"Playlist"==c.nodeName);if(c)return rW.getInstance().g=!1,new GW(a,b);null==a?c=!1:(c=Qf(a),c=null!=c&&"vmap:VMAP"==c.nodeName);if(c)return rW.getInstance().g=!1,new WX(a,b);if(OX(a)){if(!OX(a))throw fM(JW);c=Qf(a);var d=RX(c);if(1>d||3<d)throw fM(uja);c=GU(c,"Ad");if(lb(c))throw fM(XX);c=SX(c[0]);if(null==c)throw fM(YX);if(1!=GU(c,"AdSystem").length)throw fM(YX);return new NX(a)}}return null};
ZX=function(){};
$X=function(a,b){this.g=a;this.o=b};
aY=function(a,b){"auto"!=a.g.Qf&&"click"!=a.g.Qf||b.set("vpa",a.g.Qf)};
bY=function(a){B("")||(a.set("mpt",""),B("")||a.set("mpv",""))};
cY=function(a,b){var c=a.o.o,d=a.o.g;null!=c&&b.set("js","ima-"+c);null!=d&&b.set("an",d);c=a.g.G;null!=c&&b.set("mv",c+"."+(a.g.F||""))};
dY=function(a,b){b.set("osd",2);-1!=a.o.J&&b.set("frm",a.o.J);var c=a.o.X;null!=c&&b.set("ms",c);b.set("sdr",1)};
eY=function(a){return U.g?"h.3.0.0":null!=a.o?HM(a.o):null};
fY=function(){this.b=["video"]};
gY=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
hY=function(a,b,c,d){if(null!=d){var e=GM(b);c=null!=c.Yj?c.Yj:CM(e,d);1!=c&&a.set("ad_block",c);null==b.K&&(b.K=new DM);c=b.K;var f=d!=b.M;(e=0==e.b%100||f)||(e=36E5<(null===c.b?0:(new Xr).getTime()-c.b));e&&c.reset();b.M=d;b=c.g;null!==b&&a.set("tok",b)}};
iY=function(a,b){a.set("sz",Math.max(null!=b.yg?b.yg:0,null!=b.sd?b.sd:0)+"x"+Math.max(null!=b.xg?b.xg:0,null!=b.rd?b.rd:0))};
kY=function(a){var b={};ON(b);for(var c in b)a.set(c,b[c]);a.set("dt",jY)};
lY=function(a){if(a.Eb&&a.Eb.LACT){var b=a.Eb.LACT.toString();if(b)return ab(b)}return a.D};
mY=function(a){return U.b()&&a.Eb&&a.Eb.VIS?a.Eb.VIS.toString():null};
rY=function(a,b,c,d){var e=new Cg;e.set("ad_type",c.adType);BQ&&e.set("flash",dO);iY(e,a);nY(c)&&(e.set("ea","0"),null!=a.sd&&null!=a.rd&&e.set("image_size",oY(c,a.sd,a.rd,a.kg)));pY(e,d);e.set("lact",lY(a));(d=mY(a))&&e.set("yt_vis",d);e.set("videoad_start_delay",a.Sh);kY(e);qY(a,e,!0);QL().b.Z("no_ad_block_param")||hY(e,b,c,a.A);return e};
qY=function(a,b,c){B(C(a.referrer))||(a=a.referrer,c&&(a=xa(a)),sY("ref",a,b))};
vY=function(a,b,c){a=null!=b?b.split("_"):a;E(a,function(a){if(!Vb(wja,a))throw fM(wQ,null,"ad_type",String(b));});
if(c){var d=[];E(a,function(a){kb(tY,a)||d.push(a)});
a=d}if(!AM()){d=[];E(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw fM(uY,null,"skippablevideo");a=d}return a};
wY=function(a,b){return null!=b?b.split(/[+, ]/):a};
oY=function(a,b,c,d){a.g&&(c=Math.min(c,90));var e=0,f=0;a=!U.b();d=d&&a;a&&(e=15,f=65);var k=[];E(xja,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(",")};
xY=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
yY=function(a,b){return null!=b?String(b):null!=a?a:null};
zY=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};
AY=function(a,b,c){return null!=b&&Vb(c,b)?b:a};
nY=function(a){return Wh(tY,function(b){return kb(a.b,b)})};
pY=function(a,b){BQ?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.o;null!=c&&0<c.length&&(c=c[0].F,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}};
sY=function(a,b,c){null!=b&&c.set(a,b)};
CY=function(a,b,c){$X.call(this,a,b);var d=new fY;a=(new M(a.b)).b;d.gm=AY(d.gm,a.get("cust_age"),yja);d.ti=AY(d.ti,a.get("adsafe"),BY);d.b=vY(d.b,a.get("ad_type"));d.adType=d.b.join("_");d.Dk=xY(d.Dk,a.get("videoad_start_delay"));d.Ek=yY(d.Ek,a.get("slotname"));d.dm=zY(d.dm,a.get("adtest"))||"on"==a.get("adtest");d.Ik=zY(d.Ik,a.get("scs"));d.Jk=yY(d.Jk,a.get("alternate_ad_url"));d.channels=wY(d.channels,a.get("channel"));d.al=xY(d.al,a.get("cpm"));d.mh=yY(d.mh,a.get("description_url"));d.experimentIds=
yY(d.experimentIds,a.get("eid"));d.gender=AY(d.gender,a.get("cust_gender"),zja);d.g=zY(d.g,a.get("overlay"));d.host=yY(d.host,a.get("host"));d.o=wY(d.o,a.get("h_ch"));d.hostTierId=xY(d.hostTierId,a.get("ht_id"));d.isLiveStream=zY(d.isLiveStream,a.get("lsv"));var e;null!=this.g.language?e=this.g.language:(e=aa.navigator||null,e=IL(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=yY(f,e);var k;null!=e&&!B(C(e))&&(k=IL(e));d.language=
yY(d.language,k);d.Tq=xY(d.Tq,a.get("linearAdSlotWidth"));d.Sq=xY(d.Sq,a.get("linearAdSlotHeight"));d.uj=xY(d.uj,a.get("max_ad_duration"));d.Bm=xY(d.Bm,a.get("min_ad_duration"));d.vj=xY(d.vj,a.get("sdmax"));d.Vq=xY(d.Vq,a.get("nonLinearAdSlotWidth"));d.Uq=xY(d.Uq,a.get("nonLinearAdSlotHeight"));d.Ig=yY(d.Ig,a.get("client"));d.Ej=yY(d.Ej,a.get("t_pyv"));k=a.get("sdki");d.Kj=xY(d.Kj,w(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=xY(d.tagForChildDirectedTreatment,a.get("tfcd"));d.targeting=
AY(d.targeting,a.get("targeting"),Aja);d.mj=xY(d.mj,a.get("video_format"));d.un=xY(d.un,a.get("video_cpm"));d.hm=yY(d.hm,a.get("loeid"));d.An=yY(d.An,a.get("yt_pt"));d.xn=yY(d.xn,a.get("ytdevice"));d.yn=yY(d.yn,a.get("ytdevicever"));d.zn=yY(d.zn,a.get("dbp"));d.A=yY(d.A,a.get("ms"));d.adBlock=xY(d.adBlock,a.get("adBlock"));d.url=yY(d.url,a.get("url"));d.Qk=yY(d.Qk,a.get("avo"));d.tn=yY(d.tn,a.get("v_p"));QL().b.Z("no_ad_block_param")||(d.Yj=xY(d.Yj,a.get("ad_block")));this.b=d;this.G=b;this.H=c;B(C(this.b.experimentIds))||
(b=this.b.experimentIds.split(","),OL(QL(),b))};
Cja=function(a){return Wh(Bja,function(a){return kb(this.b.b,a)},a)};
DY=function(a){return U.b()?1:kb(a.b.adType.split("_"),"text")?3:1};
Dja=function(a){a=a.b.channels?a.b.channels:[];xb(a);a=vb(a,0,30);return a.join("+")};
EY=function(a,b){$X.call(this,a,b)};
FY=function(a,b){$X.call(this,a,b)};
GY=function(a){$X.call(this,a,null)};
HY=function(a){$X.call(this,a,null)};
IY=function(a,b){$X.call(this,a,b);U.b()&&QL().b.Z("doubleclick_gpt_retagging")&&(this.o.B=EM())};
JY=function(a){if(B(C(a)))return!1;a=new M(a);if(!a.A||"http"!=a.A&&"https"!=a.A)return!1;a=a.g;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0};
Eja=function(a){var b=[];E(a,function(a){0<a.length&&b.push(Ki(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
KY=function(a,b,c){IY.call(this,a,b);var d=QL();this.G=B(C(a.o));a=new fY;a.b=vY(a.b,this.g.o);a.adType=a.b.join("_");a.experimentIds=yY(a.experimentIds,this.g.C);this.b=a;this.H=b;this.D=c;B(C(this.b.experimentIds))||OL(d,this.b.experimentIds.split(","))};
Fja=function(a){var b=rY(a.g,a.H,a.b,a.D);b.set("sdkv",eY(a));b.set("sdki",a.C().toString(16));return b};
Gja=function(a,b){var c=Fja(a),d=Ki(c.Ua(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
nh(b,"afvparams",d.join("&"))};
LY=function(a,b,c){$X.call(this,a,b);QL();this.G=B(C(a.o));a=new fY;a.b=vY(a.b,this.g.o);a.adType=a.b.join("_");a.experimentIds=yY(a.experimentIds,this.g.C);this.b=a;this.H=b;this.D=c;B(C(this.b.experimentIds))||(c=this.b.experimentIds.split(","),b=QL(),OL(b,c))};
Hja=function(a){var b=rY(a.g,a.H,a.b,a.D);b.set("sdkv",eY(a));return b};
Ija=function(a,b){var c=Hja(a),d=Ki(c.Ua(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
xU(b,"afvparams",[xa(d.join("&"))])};
MY=function(a,b){$X.call(this,a,b)};
NY=function(a,b){var c=new M(ou(a.g.b,Jja(a,b)));dh(c,"https");return c};
Jja=function(a,b){if(null==a.g||null==a.g.Eb)return{};var c={},d=a.g.Eb;E(Kja,function(a){a in d&&(c[a]=d[a])});
if(!QL().b.Z("no_ad_block_param")){var e=Lja(a,d.DESCRIPTION_URL);e&&(c.AD_BLOCK=e)}null!=b&&(c.BISCOTTI_ID=b);return c};
Lja=function(a,b){if(null==b)return null;var c=CM(GM(a.o),b);return 1!=c?c:null};
Mja=function(a,b){var c;if(!CU(a.b)&&!DU(a.b)||B(C(a.o))||null==a.b||-1==a.b.search("afvbase="))if(CU(a.b))c=new FY(a,JM);else if(AU(a.b))c=new CY(a,JM,b);else if(DU(a.b))c=new IY(a,JM);else if(BU(a))c=new EY(a,JM);else if(c=a.b,null==c?c=!1:(c=(new M(c)).g,c=wa(c,".fwmrm.net")),c)c=new GY(a);else{c=a.b;if(null==c)c=!1;else{c=new M(c);var d=c.o;c=wa(c.g,"youtube.com")&&zU("/get_midroll_info",d)}c=c?new MY(a,JM):new HY(a)}else c=CU(a.b)?new LY(a,JM,b):new KY(a,JM,b);return c};
Nja=function(a){a=ne(a,function(a){return 0<FV(a)});
Cb(a,function(a,c){return FV(a)-FV(c)});
return a};
Oja=function(a){return ne(a,function(a){return-1==FV(a)})};
nU=function(a){this.b=a};
Pja=function(){this.b=0};
Qja=function(a,b,c,d,e,f,k){var l=!!k,m=y(function(a){d(a,Error(Pm(a)))},a);
k=y(function(a){l||6!=a?m(a):OY(this,b,!1,c,m,e,f)},a);
OY(a,b,!0,c,k,e,f)};
OY=function(a,b,c,d,e,f,k){var l=new wn;l.G=c;xn(l,Rja(f));var m=new Hm,n=y(function(){m.dispose();l.dispose()},a);
c=y(function(){e(l.g);n()},a);
Nm(m,l,"success",function(){var a;try{a=l.b?l.b.responseXML:null}catch(z){a=null}if(null==a){var b=In(l);try{a=Fs(b)}catch(z){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(Ds&&(a=Es())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);n()},a);
Nm(m,l,["error","timeout"],c,a);var t;"POST"==k&&(b=new M(b),t=b.b.toString(),hh(b,""),b=b.toString());a.b=D();l.send(XL(b),k,t)};
PY=function(a,b,c,d,e){this.B=a;this.o=b;this.A=c;this.b=d;this.C=e};
Sja=function(a,b,c,d){var e;try{e=Fs(b.g)}catch(f){d(fM(JW,f));return}null!=e?QY(a,e,b,c,d):d(fM(JW))};
RY=function(a,b,c,d){var e;if(e=null!=b.b){a:{try{ya(b.b)}catch(f){e=!1;break a}e=!0}e=!e}e?d(fM(Tja,null,b.b)):U.C?Dia(xW(),y(a.g,a,b,c,d)):a.g(b,c,d)};
TY=function(a,b,c,d,e,f){b=Pea(b,f);f=c.fj&&UL(Uja,b)?"POST":"GET";Qja(a.o,b,y(function(a){QY(this,a,c,d,e)},a),y(function(a,b){var d;
d=8==a?fM(iU):5==a||6==a?fM(Vja):fM(SY,b);e(d);d="third_party";AU(c.b)?d="adsense":CU(c.b)?d="dart":DU(c.b)&&(d="xfp");d={rt:d,ec:a};LM(IM.getInstance(),18,d,!0)},a),a.C,f,c.zi);
Wja(c)};
Wja=function(a){var b="third_party";AU(a.b)?b="adsense":CU(a.b)?b="dart":DU(a.b)?b="xfp":BU(a)&&(b="dbm");a={rt:b};LM(IM.getInstance(),17,a,!0)};
QY=function(a,b,c,d,e){var f;try{var k=vja(b,c);if(!k)throw fM(JW);f=k.o();Xja(a,f,c,d)}catch(l){l instanceof DL?e(l):e(fM(Yja,l))}};
Xja=function(a,b,c,d){var e=b.b;if(null!=e)d(new nU(e));else{e=b.o;if(null==e)throw fM(XX);E(e,function(a){a.o=c;var d=GL();d&&HL(d,"useCompanionsAsEndSlate")&&(a.F=oia(a));var d=[],e=a.getExtension("InfoCards");if(null!=e)for(var e=e.o?e.o:new TW,f=0;f<BT(e,"card");f++)d.push(new KV(AT(e,"card",f)));a.H=d;a.R=lia(a.H);a.qa=this.o.b;U.b()&&(a.Ha=b.g)},a);
var f=Nja(e),k=Oja(e),l;0<k.length&&0<=EV(k[0])?l=new sU(k,c,a,a.B):l=new gU(f,k,c,a);E(e,function(a){a.M=l});
d(l)}};
UY=function(a){this.b=a+D()};
Rja=function(a){var b=D();a=a.b-b;return 0<a?a:0};
Zja=function(a,b){this.b=a;this.g=b;U.g&&IQ().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}JM.J=c};
$ja=function(a,b,c,d){if(U.b()){var e=b.Zj;e&&Jea(QL(),e)}e=null;null==a.b||U.b()&&QL().b.Z("stop_using_ima_sdk_gpt_request_activity")||(e=new tW(1E3,a.b,a.g));var f=Uha(b);null!=f&&Tha(b)&&(a.g.X=f);(new PY(a.g,new Pja,a.b,e,new UY(8E3))).fetch(b,y(function(a){a instanceof nU?c(a):lU(a,c,d)},a),d)};
aka=function(a){this.o=a;this.g=new no;this.b=!1};
WY=function(a,b,c,d){var e=y(function(a){c(a);qo(this.g);this.b=!1;VY(this)},a),f=y(function(a){d(a);
qo(this.g);this.b=!1;VY(this)},a);
po(a.g,y(function(){$ja(this.o,b,e,f)},a));
VY(a)};
VY=function(a){if(!a.b){var b=ro(a.g);null!=b&&(a.b=!0,b())}};
XY=function(a,b,c){H.call(this);this.A=new aka(new Zja(b,c));this.g=b;this.b=!0;this.o=c};
bka=function(a,b,c){if(a.b){var d=null!=c?c:{};rW.getInstance().end("rtr");zia(rW.getInstance(),b.b);rW.getInstance().start("vl");WY(a.A,b,y(function(a){YY(this,a,d)},a),y(function(a){ZY(this,a,d)},a))}};
cka=function(a,b,c){if(!a.b){var d=null!=c?c:{};WY(a.A,b,y(function(a){YY(this,a,d)},a),y(function(a){ZY(this,a,d)},a))}};
YY=function(a,b,c){if(a.b)if(b instanceof nU)b=new $Y(b.b,a),b.F=a.g,a.dispatchEvent(new oW(b,c));else{var d;try{d=aZ(b),d.F=a.g,a.dispatchEvent(new oW(d,c)),rW.getInstance().end("vl")}catch(e){ZY(a,fM(bZ,null),c)}}else b instanceof nU?ZY(a,fM(dka,null,"Unsupported ad format."),c):(d=new qW("adsLoaderSdkAdLoaded"),d.A=b,d.o=c,a.dispatchEvent(d))};
ZY=function(a,b,c){a.b?("always"==U.o&&null!=a.g&&a.g.vh(hW()),a.dispatchEvent(new EL(b,c))):(c=new qW("adsLoaderSdkAdError"),c.B=b,a.dispatchEvent(c))};
eka=function(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'};
fka=function(){return'<div class="recall-button"></div>'};
gka=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"};
cZ=function(a,b){this.H=a;this.G=L("DIV",{"class":"controls"});this.b=L("DIV",{"class":"adDisplay"});this.R=b||r;this.Rd=new Hm(this)};
dZ=function(a){var b=L("DIV",{"class":"ima-container"});Dv(b,"opacity 0.4s");a.Rd.N(b,"mouseover",a.HA);a.Rd.N(b,"mouseout",a.MG);b.appendChild(a.G);a.G.appendChild(a.b);return b};
eZ=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
fZ=function(a,b){this.J=a;this.O=new Cg;this.M=15E3;this.D=L("SPAN");cZ.call(this,a[0],b);this.b.appendChild(this.D)};
gZ=function(a,b){cZ.call(this,a[0],b);this.A=a;I(this.b,"ima-container-stack")};
hZ=function(a,b,c,d,e){Bt.call(this);this.g=a;this.B=b;this.D=c;this.o=d;this.C=fa(e)?e:[e]};
iZ=function(a,b,c,d,e){return new hZ(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
jZ=function(a,b){return iZ(a,b,"ease-out",0,1)};
hka=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"};
ika=function(a){return'<div class="fullslot-autoclose">'+Y(a.Hy)+"</div></div>"};
kZ=function(a){return""+ta("Ad will close in {$xSeconds}",{xSeconds:Y(a.Vg)})};
lZ=function(a){H.call(this);this.B=new de(200);G(this,this.B);this.o=0;this.g=!1;this.K=a;this.H=new Hm(this);this.H.N(this.B,"tick",this.uE)};
mZ=function(a){a.B.stop();a.g=!1};
oZ=function(a){H.call(this);this.A=new Hm(this);G(this,this.A);this.g=this.o=null;this.B=0;var b=hR(Xga);Vf(uf("videoAdUiLikeMsg",b),""+ta("I like this"));Vf(uf("videoAdUiDislikeMsg",b),""+ta("I dislike this"));var c=uf("videoAdUiBrandInteractionLikeButton",b);null!=c&&nZ(this,c);c=uf("videoAdUiBrandInteractionDislikeButton",b);null!=c&&nZ(this,c);R(b,!1);this.b=b;a.appendChild(this.b)};
nZ=function(a,b){var c=new PQ;a.A.N(c,"click",a.C);c.ib(b)};
jka=function(a){a.o=jZ(a.b,.5);G(a,a.o);a.o.play();R(a.b,!0)};
qZ=function(){H.call(this);this.b=!1;this.o=this.A=this.g=null;this.B=new Hm(this);this.g=hR(cha);this.A=uf("videoAdUiUnmutedIcon",this.g);this.o=uf("videoAdUiMutedIcon",this.g);pZ(this);this.B.N(this.g,"click",this.C)};
pZ=function(a){a.A&&a.o&&(a.b?(Ls(a.A,"display","none"),Ls(a.o,"display","block")):(Ls(a.A,"display","block"),Ls(a.o,"display","none")))};
rZ=function(a,b){H.call(this);this.D=a;this.A=1;this.C=this.o=this.g=this.b=null;this.F=new Hm(this);G(this,this.F);this.B=new PQ;G(this,this.B);this.G=!0;this.b=hR(PR);this.g=uf("videoAdUiPreSkipButton",this.b);this.o=uf("videoAdUiPreSkipText",this.g);I(this.o,"videoAdUiPreviewText");this.C=uf("videoAdUiPreSkipThumbnail",this.g);Vf(this.o,""+ta("Video will play after ad"));var c=VQ(this.D.J)||"";if(this.D.showContentThumbnail&&!B(C(c))){var d=Gf(window.document,"img");d.setAttribute("src",c);I(d,
"videoAdUiPreSkipThumbnailImage");this.C.appendChild(d)}else R(this.g,!1);R(this.b,!1);b.appendChild(this.b);this.F.N(this.B,"click",this.H);this.B.ib(this.C)};
sZ=function(a){if(!kka.test(a))throw Error("'"+a+"' is not a valid alpha hex color");5==a.length&&(a=a.replace(lka,"#$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]};
tZ=function(a){var b=a.slice(0);b[3]=Math.round(1E3*a[3])/1E3;return"rgba("+b.join(",")+")"};
vZ=function(a,b){H.call(this);this.o=a;this.X=0;this.O=!1;this.A=0==fT(this.o.skipOffset)?3:1;this.g=this.R=this.b=this.ea=this.K=this.G=this.B=null;this.D=new Hm(this);this.F=this.H=this.J=null;this.aa=!1;this.M=new PQ;this.ba="";var c=a.B;this.C=null!=c&&null!=QM(c,WM,1)?QM(QM(c,WM,1),XM,1):null;this.B=hR(PR);this.G=uf("videoAdUiPreSkipButton",this.B);this.K=uf("videoAdUiPreSkipText",this.G);this.ea=uf("videoAdUiPreSkipThumbnail",this.G);Vf(this.K,QR({Vg:uZ(this)}));c=VQ(this.o.J)||"";if(this.o.showContentThumbnail&&
!B(C(c))){var d=Gf(window.document,"img");d.setAttribute("src",c);I(d,"videoAdUiPreSkipThumbnailImage");this.ea.appendChild(d)}else I(this.K,"videoAdUiPreSkipTextOnly");c=QL().b.Z("use_new_skip_icon");this.g=hR(c?Zga:Yga,{Rt:Sa(""+ta("Skip Ad {$skipSymbol}",{skipSymbol:Y("")}))});this.b=uf("videoAdUiSkipButton",this.g);c&&(this.R=uf("videoAdUiSkipButtonText",this.b));mka(this);"4.4.4"===(JA?tM(qM):"")&&(this.G.style.backgroundColor="black",this.b.style.backgroundColor="black");R(this.B,!1);b.appendChild(this.B);
0==fT(this.o.skipOffset)?this.dispatchEvent("skipshown"):(R(this.g,!1),ft(this.g,0));b.appendChild(this.g);this.D.N(this.M,"click",this.DG);this.M.ib(this.b)};
uZ=function(a){return null!=a.o.skipOffset&&-1!=fT(a.o.skipOffset)?fT(a.o.skipOffset):-1};
wZ=function(a,b){var c=uZ(a);if(!(0>c)){var c=Math.ceil(c-b),d=" "+c;60<=c&&(d=" "+DQ(c));c=QR({Vg:d,Mi:a.ba});Vf(a.K,c)}};
xZ=function(a){null!=a.F&&(ge(a.F),a.F=null)};
yZ=function(a,b){null!=a.G&&R(a.G,b);null!=a.b&&R(a.b,b)};
mka=function(a){if(null!=a.C){var b=null!=a.C.getStyle()&&null!=QM(a.C.getStyle(),aN,1)?W(QM(a.C.getStyle(),aN,1),1):null,c=null!=QM(a.C,$M,2)&&null!=QM(QM(a.C,$M,2),aN,1)?W(QM(QM(a.C,$M,2),aN,1),1):null;b&&(a.b.style.backgroundColor=tZ(sZ(b)),c&&(a.D.N(Sf(a.b),"mouseover",function(){this.b.style.backgroundColor=tZ(sZ(c))}),a.D.N(Sf(a.b),"mouseout",function(){this.b.style.backgroundColor=tZ(sZ(b))})));
if(null!=QM(a.C,bN,3)&&null!=a.R){var d=Sea(QM(a.C,bN,3));0<d.length&&W(d[0],1)&&Vf(a.R,W(d[0],1))}}};
BZ=function(a,b,c){H.call(this);this.b=a;this.X=!1;this.Ga=c;this.da=this.ga=this.O=this.C=this.K=this.R=this.G=this.za=this.ia=this.Ia=this.ha=this.H=this.g=null;this.Ca=!1;this.Ha=this.la=this.qa=this.J=this.M=this.F=this.aa=this.A=this.B=this.na=this.ca=this.ea=this.D=null;this.o=new Hm(this);this.Ka=[];this.ba=[];this.X=!this.b.C&&U.b();a={Kd:this.b.Kd,Dg:this.b.Dg,fe:this.b.fe,Mi:this.X?"redesign2014q4":""};this.g=hR(this.b.H,a);this.b.ea||this.o.N(this.g,"touchmove",this.hB);this.ca=uf("videoAdUiProgress",
this.g);this.na=uf("videoAdUiBuffer",this.g);this.H=uf("videoAdUiAttributionContainer",this.g);this.ha=uf("videoAdUiAttributionIconContainer",this.g);this.ia=uf("videoAdUiAttribution",this.g);this.b.g&&(I(b,"videoAdUiInstreamBadgeExperiment"),this.Ia=uf("videoAdUiAttributionBadge",this.H),c=RR({Mh:"",gh:0,Nh:0}),Vf(this.Ia,Sa(c)));this.za=uf("videoAdUiVisitAdvertiserLink",this.g);this.G=uf("videoAdUiVisitAdvertiserLinkText",this.g);this.R=uf("videoAdUiVisitAdvertiserIcon",this.g);this.K=uf("videoAdUiAuthorIcon",
this.g);this.C=uf("videoAdUiAuthorName",this.g);this.O=uf("videoAdUiLearnMore",this.g);this.ga=uf("videoAdUiLearnMoreText",this.g);this.X?(this.J=uf("videoAdUiTopButtonShare",this.g),this.qa=uf("videoAdUiTopButtonShareTooltip",this.g),this.la=uf("videoAdUiTopButtonInfo",this.g),this.Ha=uf("videoAdUiTopButtonWatchLater",this.g)):this.J=uf("videoAdUiShare",this.g);this.D=uf("videoAdUiTitle",this.g);this.ea=uf("videoAdUiTopBar",this.g);this.da=uf("videoAdUiBottomBar",this.g);null!=this.K&&this.o.N(this.K,
"click",this.Fy);null!=this.C&&(c=new PQ,this.ba.push(c),this.o.N(c,"click",this.Gy),c.ib(this.C));null!=this.O&&(c=new PQ,c.H=!0,this.ba.push(c),this.o.N(c,"click",this.mr),c.ib(this.O));null!=this.ga&&(c=new PQ,c.H=!0,this.ba.push(c),this.o.N(c,"click",this.mr),c.ib(this.ga));null!=this.J&&this.o.N(this.J,"click",this.AG);null!=this.D&&(c=new PQ,this.ba.push(c),this.o.N(c,"click",this.KG),c.ib(this.D));null==this.ea||!U.b()&&lM()||this.o.N(this.g,"mouseover",this.zG);null!=this.G&&this.o.N(this.G,
"click",this.Xj);null!=this.R&&this.o.N(this.R,"click",this.Xj);null!=this.H&&null!=this.b.D&&zZ(this.b.D)&&(I(this.H,"videoAdUiWtaClickable"),this.o.N(this.H,"click",this.RF),this.o.N(this,"why_this_ad_got_it",this.SG));null!=this.b.skipOffset?(this.A=new vZ(this.b,this.g),this.A.Pf(this),this.A.ba=a.Mi):QL().b.Z("show_thumbnail_on_standard")&&(this.F=new rZ(this.b,this.g),G(this,this.F),this.F.Pf(this));a=this.b.B;U.b()&&null!=a&&null!=W(a,1)&&null!=W(QM(a,WM,1),3)&&W(QM(QM(a,WM,1),ZM,3),1)&&(this.aa=
new oZ(this.g));this.b.R&&(this.M=new qZ,this.M.Pf(this),this.da.insertBefore(this.M.g,this.H));400>=((0,window.parseInt)(Os(b,"width"),10)||b.width)&&I(this.g,"videoAdUi-mobile");this.b.C&&(I(this.g,"blazer"),window.settings&&window.settings.isTablet?I(this.g,"tablet"):I(this.g,"phone"));a=bg(b,"html5-video-player");null!=a&&(this.X&&I(a,"videoAdUiRedesign"),K(a,"ytp-video-ad-learn-more-ui",this.b.o));R(this.g,!1);b.appendChild(this.g);this.b.o||this.X||!this.b.M||(this.B=L("DIV",{style:"width:100%;height:100%;pointer-events:auto;"}),
this.g.appendChild(this.B));AZ(this)};
nka=function(a){null!=a.B&&R(a.B,!1)};
CZ=function(a,b,c,d){if(null!=a.aa){var e=a.aa;a=null!=a.b.skipOffset;var f={action:"condor-brand-interaction"};null!=e.g?le(e.g,"videoAdUiBrandInteractionLikeButton")?f.opt="l":f.opt="d":f.opt="n";null!=b&&(f.event="skip"==b?"s":"complete"==b?"c":"abandon"==b?"a":"u");f.skip=a?"t":"f";f.rt=c;f.dur=d;f.numclk=e.B;c=f;c=null!=c?c:{};b=new M("//www.youtube.com/gen_204");dh(b,"https");c=wh(c);hh(b,c);ZL(b.toString())}};
DZ=function(a){a.A&&(a.A.dispose(),a.A=null)};
oka=function(a,b){a.Ka=b;E(b,function(a){a.A=this.g;a.A.appendChild(a.b);var b=a.b,c=dt(a.A),c="left"==a.B?"0px":"right"==a.B?c.width-a.o.wd().width+"px":a.B+"px",f;f=dt(a.A);f="bottom"==a.C?"0px":"top"==a.C?f.height-a.o.wd().height+"px":f.height-a.o.wd().height-ab(a.C)+"px";Ls(b,{position:"absolute",overflow:"hidden",left:c,bottom:f});R(a.b,!1)},a)};
EZ=function(a){null!=a.G&&(R(a.G,!0),Vf(a.G,a.b.visitAdvertiserText));null!=a.R&&R(a.R,!0)};
FZ=function(a,b){if(null!=a.g){var c=bg(Sf(a.g),"html5-video-player");null!=c&&K(c,"ytp-ad-end-cap",b)}};
AZ=function(a){var b=a.b.ba&&(a.Ga>a.b.da||0==a.Ga),c=b&&a.b.ga,d=b&&a.b.Ma,e=b&&a.b.A,f=b&&a.b.X,b=b&&a.b.G,k=a.b.aa&&a.b.b,l="0px",m;m=a.b.B;m=U.b()&&null!=m&&null!=QM(m,WM,1)&&null!=QM(QM(m,WM,1),YM,2)&&W(QM(QM(m,WM,1),YM,2),1)?!1:!0;null!=a.D&&(R(a.D,b),null!=a.K&&R(a.K,c),null!=a.C&&R(a.C,d),null!=a.O&&R(a.O,e),null!=a.J&&(R(a.J,f),f&&a.dispatchEvent("videoShareShown")),null!=a.la&&R(a.la,!1),null!=a.Ha&&R(a.Ha,!1),null!=a.ea&&R(a.ea,b||c||d||e));null!=a.H&&GZ(a);null!=a.ca&&(R(a.ca,k),k&&(l=
Os(a.ca,"height")));null!=a.da&&Ls(a.da,"bottom",l);null!=a.ga&&R(a.ga,U.b()&&a.b.o&&!e);null!=a.ha&&R(a.ha,a.b.K);null!=a.za&&R(a.za,m)};
pka=function(a,b,c,d,e){var f;f=a.b.g?"":RR({Mh:"",gh:0,Nh:0});a.b.b&&a.b.O&&(b=DQ(c-b),b=a.b.g?b:a.b.C?" \u2022 "+b:a.X?" \u00b7 "+b:": ("+b+")",f=a.b.g?b:RR({Mh:b,gh:d,Nh:e}));Vf(a.ia,f);GZ(a)};
GZ=function(a){R(a.H,a.b.F&&(!a.b.b||a.Ca))};
HZ=function(a,b){this.B=a;this.o=b;this.g=this.A=this.C=this.b=null};
zZ=function(a){return null!=a.B||null!=a.o};
IZ=function(a,b,c){b=uf(b,a.b);null!=b&&a.A.N(b,"click",c)};
JZ=function(a,b,c){null!=a.b&&a.b.parentElement.removeChild(a.b);a.b=hR(b,c);IZ(a,"videoAdUiPopupCloseIcon",a.Hi);a.C.appendChild(a.b);b=uf("videoAdUiPopupFrame",a.b);null!=b&&Uc(b,"submit",function(a){a.preventDefault()});
a=uf("videoAdUiPopupDefaultButton",a.b);null!=a&&a.focus()};
KZ=function(){this.Kd=RR({Mh:"",gh:0,Nh:0});this.Dg=""+ta("Learn More {$suffix}",{suffix:Y("")});this.visitAdvertiserText=""+ta("Visit Advertiser's Site");this.fe=TR();this.skipOffset=null;this.da=6E3;this.F=!0;this.K=!1;this.O=this.b=this.M=!0;this.X=this.aa=this.R=this.A=!1;this.ba=!0;this.G=this.Ma=this.ga=this.ca=this.o=!1;this.H=null;this.showContentThumbnail=!0;this.g=this.C=!1;this.B=null;this.ea=!1};
LZ=function(a,b,c,d){var e=new KZ;e.o=a;e.ha=b;e.skipOffset=c;e.J=null!=d?d.wg:null;e.M=d.PG;e.H=Uga;e.ia=TQ(b,null!=c,d.dg);e.showContentThumbnail=null!=d.wg&&d.showContentThumbnail;e.B=d.xq;e.ea=d.iz;return e};
NZ=function(a,b,c,d,e){lZ.call(this,b.b);this.F=b;this.D=c;this.G=this.F.b;this.b=a;this.A=this.C=null;I(this.b,gY(this.D));a=this.b;b=new KZ;b.skipOffset=new QU(this.F.A,!1);this.A=new vZ(b,a);d&&d.text&&(d=hR(hka,d),this.b.appendChild(d));e?(e=this.b,d=kZ({Vg:MZ(this.G)}),a=hR(ika,{Hy:d}),Vf(a,d),e.appendChild(a),e=a):e=null;this.C=e};
qka=function(a){var b=uf("videoAdUiSkipButton",a.b);return b?$s(b,a.b):new jf(0,0)};
MZ=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
OZ=function(){F.call(this);this.B="";this.o=new ZS;this.g=new Cg;this.C=[];this.G=!1;this.b={};this.F={};this.A=-1;this.D=[]};
PZ=function(a,b){if(U.g){var c=LQ(IQ(),b.type,a.B);a.H(b.type,c)}else Fia(xW(),b.type,a.B,y(a.H,a,b.type))};
rka=function(a,b){null!=b&&E(b,function(a){kb(this.D,a)||this.D.push(a)},a)};
QZ=function(a,b,c){null!=c.viewability&&XT(a.b,c.viewability);var d;U.g||(d=xW().H||void 0);var e=[];E(b,function(a){var b=this.b;ZT(b,a,"MOAT_INIT",!0,xha);ZT(b,a,"MOAT_VIEWABILITY",!0,nd(c.moatViewability||""));ZT(b,a,"IAS_VIEWABILITY",!0,nd(c.integralAdsViewability||""));ZT(b,a,"DV_VIEWABILITY",!0,nd(c.doubleVerifyViewability||""));ZT(b,a,"GOOGLE_VIEWABILITY",!1,nd(c.googleViewability||""));e.push(aM(a,this.b,c,d))},a);
XT(a.b,"na");return e};
RZ=function(a,b,c){E(b,function(a){ZL(a,void 0,void 0,c)},a)};
ska=function(a,b){switch(b){case "abandon":return!Eg(a.g,b)&&!Eg(a.g,"skip")&&!Eg(a.g,"instreamAdComplete")&&(Eg(a.g,"impression")||a.G);case "click":return!0;case "instreamAdComplete":case "complete":return!Eg(a.g,b)&&!Eg(a.g,"skip");default:return!Eg(a.g,b)}};
SZ=function(a,b){H.call(this);this.b=a;this.g=new Hm(this);G(this,this.g);this.g.N(b,["companion_impression","companion_click"],this.o)};
TZ=function(a){H.call(this);this.ads=a;this.H=null;this.ea=new Hm(this);G(this,this.ea);this.J="normal";this.A=this.volume=null;this.o=new cN;this.Ha=!1;this.content={};this.B=new OZ;this.ga=!1;xW();this.Ca=SL(QL(),41351021)||SL(QL(),31061781);this.qa=y(this.Az,this);this.aa=null;var b=0;E(a,function(a){b+=bU(a)});
E(a,function(b,d){var c=b.A;c.o=a.length;var f=d+1;c.g=f;c.B=f})};
Z=function(a){if(UZ(a)){if(a.H.isSkippable()&&!AM())throw gM(uY,null,"skippablevideo");if(null!=bW(a.H)&&VZ(a,a.H.g))throw gM(uY,null,"vpaidWithSkippabilityOverride");return a.H}throw gM(WZ,null,"An ad has not been selected.\n"+Error().stack);};
XZ=function(a,b){a.H=b;if(U.g){var c=IQ();MQ(c,a.qa);b&&c.g.set(b.K,a.qa)}};
VZ=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:VZ(a,b.g)};
UZ=function(a){return null!==a.H};
tka=function(a){return Wh(a.ads,function(a){return Wh(YZ(a),function(a){return!B(C(SQ(a.g)))})},a)};
YZ=function(a){var b=a.g;if(b&&b.aa&&(b=b.B,!lb(b)&&b[0]instanceof pT))return b[0].C;b=a.b;return ZZ(a)?b.C:[]};
ZZ=function(a){a=a.b;return null!=a&&a instanceof pT};
$Z=function(a){null==a.G&&(a.G=new Hm(a));return a.G};
b_=function(a,b){var c=QL().b;if(!(c.Z("enable_website_actions_info_cards")&&c.Z("enable_website_actions_info_cards_companion")&&!lb(vV(b))&&!vV(b)[0].g&&U.b()&&dW(b)||null==a.F||(Om(a.ea),Mm(a.ea,a.F,"companion_display_error",function(){}),c=a.F.vh(b),null!=c&&(a.ea.N(c,"companion_impression",a.KC),a.ea.N(c,"companion_click",a.Hm),U.b()&&(c=new SZ(b,c),a.ka("companionInitialized",c))),a.F.ip())))throw gM(a_);
};
uka=function(a){E(a.ads,function(a){if(a=a.getExtension("sodar")){var b=a.A,d=a.o,e=a.B,f=a.g;a="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(b)+".js";var k="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(e)+".js";if(b&&d&&e&&f){var e=window,b=e.document,l={};l._scs_=d;l._bgu_=k;l._bgp_=f;l._li_="v_h.0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(l);d=b.createElement("script");d.type="text/javascript";d.async=!0;d.src=a;
b.getElementsByTagName("head")[0].appendChild(d)}}})};
c_=function(a,b){PZ(a.B,new mc(b))};
d_=function(a,b){PZ(a.B,new mc(b));a.ka(b)};
e_=function(a){if(!a.ga)throw gM(WZ,null,"Ads manager is not correctly configured.");};
f_=function(a,b){for(var c=b;null!=c;)E(c.D.Ra(),a.cG,a),c=c.g};
vka=function(a){if(!fa(a))throw gM(WZ,null,"adsRenderingSettings.mimeTypes should be an array");var b=sb(Xb(g_),Xb(GT));E(a,function(a){if(!kb(b,a))throw gM(WZ,null,"Invalid or unsuppoted mime type "+a);})};
h_=function(a){TZ.call(this,a);this.D=null;this.ha=L("DIV",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.O=!1;this.ba=[]};
i_=function(a,b){var c=tha(b);E(c,function(a){dT(this.B.o,"click",a)},a)};
j_=function(a,b){var c=VT(b,Z(a)),d=tV(Z(a));cM(d,c)};
k_=function(a){h_.call(this,a);this.R=!1;this.C=this.M=null;this.ca=!1};
l_=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.B,b=b.C;a={text:null!=c?c:a.da.B,url:null!=b?b:a.da.C};null==a.text&&(c=ta("Ads by Google"),c=nR(""+c),a.text=c);return a};
m_=function(a){return UZ(a)&&XV(Z(a))};
wka=function(a){var b=n_(a);b.rba=a.O;LM(IM.getInstance(),37,b)};
n_=function(a){var b=[],c=[];E(a.M,function(a){b.push(a.cb()+"x"+a.getHeight());c.push(a.zc())},a);
var d={};d.pid=rW.getInstance().b;d.fsmode=null!=a.C;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.J;return d};
o_=function(a,b){if(a.C){a.cj(new mc("close"));var c={};c.pid=rW.getInstance().b;c.evt=b;LM(IM.getInstance(),35,c)}};
p_=function(a,b){mc.call(this,"vpaidEventType");this.b=a;this.data=b};
xka=function(a,b){function c(a,b){for(var c in a)for(var d=c.toLowerCase(),e=0;e<q_.length;e++){var m=q_[e];if(d==m)throw Error('Cannot override "'+m+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")};
r_=function(a,b){Fx.call(this,b);this.J=a;this.o=new Hm(this);this.g=new Cg};
s_=function(a){return a.ma()?a.ma().firstChild:null};
t_=function(a){TZ.call(this,a);this.O=this.g=null;this.D=!0;this.za=this.ha=this.X=!1;this.na=Xa();this.ca=this.ia=0;this.ba=-1;this.C=null;this.R=0;this.M=1;this.da=-1;this.la=!1};
u_=function(a){var b=a.wc("getAdLinear");return ha(b)?b:a.D};
v_=function(a){var b;b=a.wc("getAdRemainingTime");b=ia(b)?b:-2;if(!ia(b)||0>b)b=30;ge(a.da);a.da=fe(a.stop,1E3*b,a)};
w_=function(a,b,c,d){d=gM(b,c,d);var e=VT(d,Z(a)),f=tV(Z(a));cM(f,e);b.message=d.b;iM(a,b,c)};
x_=function(a){a.la||(a.la=!0,d_(a,"complete"))};
y_=function(a){H.call(this);this.C=a;this.b=null;this.A=-1;this.B=!1;this.o=Xa()};
z_=function(a){TZ.call(this,a);this.g=null;this.na={};this.D=!0;this.da=this.ca=this.X=!1;this.R=this.ha=0;this.C=null;this.O=0;this.M=1;this.ba=-1;this.la=!1;this.ia=2==U.A};
A_=function(a){var b=a.kc("getAdLinear");return ha(b)?b:a.D};
B_=function(a){var b;b=a.kc("getAdRemainingTime");b=ia(b)?b:-2;if(!ia(b)||0>b)b=30;ge(a.ba);a.ba=fe(a.stop,1E3*b,a)};
C_=function(a){a.la||(a.la=!0,d_(a,"complete"))};
E_=function(a,b){var c=gM(D_,b,void 0),d=VT(c,Z(a)),e=tV(Z(a));cM(e,d);D_.message=c.b;iM(a,D_,b)};
F_=function(a,b){this.b=a;this.g=b};
G_=function(a){FL.call(this,"adMetadata",a)};
yka=function(a,b,c){var d=r,e=new M("https://www.googleapis.com/youtube/v3/videos");nh(e,"id",a);nh(e,"part","snippet,status");nh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=y(b,c),d=y(d,c));H_(new wn,e,b,d)};
zka=function(a,b,c){var d=r,e=new M("https://www.googleapis.com/youtube/v3/channels");nh(e,"id",a);nh(e,"part","snippet,statistics,brandingSettings");nh(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount,items/brandingSettings/image/bannerImageUrl");null!=c&&(b=y(b,c),d=y(d,c));H_(new wn,e,b,d)};
H_=function(a,b,c,d){nh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");xn(a,2E3);var e=new Hm(a);Mm(e,a,"success",function(a){a=a.target;var b;b=a.b?eg(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Mm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(Pm(a.g)));d(b);e.dispose();a.dispose()});
a.send(b)};
Aka=function(a,b){this.g=a;this.b=b};
I_=function(a){this.D=a;this.b=[];this.g=new de(500);G(this,this.g);this.A=new Hm(this);Jm(this.A,this.g,"tick",this.B,this);G(this,this.A);this.o=1;this.C=!1};
J_=function(a){a.g.enabled||(a.B(),a.g.start())};
K_=function(a){var b=0,c=0;2<a.b.length&&(b=a.b[a.b.length-1].b-a.b[0].b,c=a.b[a.b.length-1].g-a.b[0].g);LM(IM.getInstance(),47,{t:a.C,lpp:a.o,wl:a.b.length,se:b,me:c,n:!1,am:!1},!0)};
L_=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}};
O_=function(a,b,c,d,e){lZ.call(this,d);this.G=a;this.O=b;this.M=e;this.A=new Hm(this);G(this,this.A);this.C=new PQ;G(this,this.C);this.J=new PQ;G(this,this.J);this.F=new PQ;G(this,this.F);(a=M_(c))?(c=a(c),b.appendChild(c),b=uf("iv-endcap-action",c),this.A.N(this.C,"click",this.D),this.C.ib(b),b=uf("iv-endcap-text",c),this.A.N(this.J,"click",this.D),this.J.ib(b),b=uf("iv-endcap-image",c),this.A.N(this.F,"click",this.D),this.F.ib(b),b=c):b=null;this.b=b?uf("iv-endcap-countdown-inner",b):null;null!=
this.b&&Ls(this.b,"stroke-dasharray","0 "+N_)};
M_=function(a){switch(a.Fb()){case 1:return Bka;case 4:return Cka}return null};
Bka=function(a){var b=aV(a);a=0<a.$j()?a.Wg(0):null;return hR(tU,{headline:zT(b,"headline"),description:zT(b,"description"),image:cV(dV(b)),action:a?zT(a,"title"):"",target:a?eV(a)||zT(a,"link_url"):""})};
Cka=function(a){var b=a.$i();a=0<a.$j()?a.Wg(0):null;return hR(tU,{headline:zT(b,"headline"),description:zT(b,"description"),image:cV(b.b()),action:a?zT(a,"title"):"",target:a?eV(a)||zT(a,"link_url"):""})};
Dka=function(){var a=ta("Your video will play after this ad.");return nR(""+('<div class="videoAdInterstitial"><p>'+a+"</p></div>"))};
P_=function(){F.call(this);this.o=hR(Dka);this.b=0};
Q_=function(a){a.b&&(ge(a.b),a.g(r))};
R_=function(a){mc.call(this,a)};
S_=function(a){H.call(this);this.A=a;this.K=new Cg;this.G=-1;this.H=this.M=!1;this.D=""};
T_=function(a){this.paused=!1;this.mute=a.If();this.volume=a.Td()};
U_=function(a,b,c,d){if(!c||null==a.K.get(b)){d&&!a.H&&(b="error");a.K.set(b,!0);a:{c=b;if(a.o&&a.o.b.A){if("click"==c)break a;"videoLearnMoreClicked"==c&&PZ(a.A,new mc("click"))}d=Eka[c]||null;null!=d&&null!=a.b&&a.b.Ym(d);PZ(a.A,new mc(c))}a.dispatchEvent(b)}};
V_=function(a){0>a.G||a.M||!a.b.gg(a.G)&&!a.b.pe()||!a.H||(a.M=!0,U_(a,"engagedview",!0,!0),a.dispatchEvent(new R_("viewCount")))};
W_=function(a){V_(a);if(U.b()){var b=a.A;if(!(Eg(b.g,"skip")||0>b.A))for(var c=bT(b.o,"progress"),d=b.A;d<c.length;d++){var e=c[d];b.A=d+1;ZL(e.b,b.b)}}U_(a,"complete",!0,!0)};
X_=function(a){TZ.call(this,a);this.C=this.g=null;this.ba=!1;this.O=new S_(this.B);this.ia=this.za=this.ca=!1;this.na=this.X=1;this.M=null;this.Ia=new P_;this.la=new Dk;this.Ka=!1;this.ha=[];this.da=!1;this.D=this.R=null;this.Ga=!lM()&&U.b()};
Y_=function(a,b){var c=fe(function(){this.la.remove(c);b.call(this)},0,a);
Fk(a.la,c)};
Z_=function(a){a.R&&(Nb(a.R),a.R=null);Nb(a.g);a.g=null;Nb(a.O);Nb(a.B);a.ia=!1};
$_=function(a){a.Hh();null!=a.D&&K_(a.D);UZ(a)?a.start():a.stop()};
Gka=function(a){if(!UZ(a))return!1;var b=a.A.Qd();if(null==b)return!1;var c=Z(a),d;if(d=c.F?c.F.b.xh()?c.F.b.pm():c.F.gc():"")Fka(a,b,d);else if(TV(c)&&(d=c.R,d=lb(d)?null:d[0],null!=d&&ka(M_(d)))){var e=1==d.Fb()&&!QL().b.Z("ad_video_end_disable_auto_open_drawer");a.C=new O_(a.b,b,d,aW(c),e);$Z(a).N(a.C,"click",y(a.Lp,a,null));a.g&&FZ(a.g,!0);a.A.ad()}null!=a.C&&($Z(a).N(a.C,"timeUpdate",a.Js),$Z(a).N(a.C,"end",a.jz),a.C.start(),d_(a,"video_card_endcap_impression"));return null!=a.C};
Fka=function(a,b,c){LM(IM.getInstance(),34,{evt:"start"},!0);var d=L("DIV");I(d,"controls");var e=L("DIV");I(e,"adDisplay");I(e,"endslate");e.innerHTML=c;(c=Of(e)[0])&&Ls(c,{margin:"0 auto"});E(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&$Z(this).N(a,"click",y(this.Lp,this,b))},a);
d.appendChild(e);e=new MW;Kia(e,aW(Z(a)));e.A=0;e.o=0;a.C=new NZ(d,e,1,{},!0);$Z(a).N(a.C,"skip",a.Mp);b.appendChild(a.C.b);a.A.ad();a.g&&(nka(a.g),DZ(a.g))};
b0=function(a,b){a0(a);null!=a.b&&a.b.Pq();a.ka("complete");d_(a,b);c_(a,"instreamAdComplete");$_(a)};
a0=function(a){a.C&&(a.C.dispose(),a.C=null);a.g&&FZ(a.g,!1);a.ba=!1};
c0=function(a){var b=UZ(a)?Z(a).C:null;if(b){var c;a:{if(UZ(a)&&(c=eW(a.H),null!=c))break a;c=""}var d;a:{if(UZ(a)&&(d=fW(a.H),null!=d))break a;d=""}(c||d)&&a.b.Xl(b,c||null,d||null)}};
d0=function(a,b,c,d){b=bT(b.b,c);lb(b)||(a[d]=b[0].b)};
e0=function(a,b,c){b=c.getExtension(b);null!=b&&(d0(a,b,"annotation_click","cta_annotation_clicked"),d0(a,b,"annotation_close","cta_annotation_closed"),d0(a,b,"annotation_start","cta_annotation_shown"))};
Hka=function(a,b){var c=kV(b,RV)&&!b.X?zV(b):null,d=b.isSkippable()&&!nV(b),e=null!=a.g&&a.g.b.o,f=b.o,k=UQ(a.Iq());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var m=QL().b,l=m.Z("use_variable_load_timeout")?m.b("variable_load_timeout_ms"):a.o.Vd,n=aU(b),t;a.g?(t={},e0(t,"AdSense",b),e0(t,"dart",b),e0(t,"DFP",b)):t=null;var f=f?f.Oj:!1,u=$T(b),x=a.o.Gg,m=m.Z("legacy_autoplay_flag"),z;z=xV(Z(a),"endscreenClick");z=lb(z)?null:ig({endscreenClick:z});return new nS(n,c,0,t,e,d,l,f,
!1,u,x,k,m,z)};
Ika=function(a){var b=0,c=0;E(a.ads,function(a){!ZZ(a)||U.b()&&0!=c||(c++,b+=bU(a))},a);
var d=1;E(a.ads,function(a){var b=a.A;b.o=c;ZZ(a)&&(b.g=d,b.B=d,d++)},a)};
f0=function(a){var b=a.g;return b&&b.aa&&(b=b.B,!lb(b)&&b[0]instanceof pT)?b[0].Ud():PV(a)};
h0=function(a,b){if(!ZZ(b))throw gM(g0);var c=b.b;if(!B(C(null)))return new oT("","","",0,0,0,0,0,null,"");var d=YZ(b),e=a.b.Um(d,a.o.bitrate,a.o.th||[],null!=b&&!0&&(U.b()||a.A.ij()||a.A.Sl()||lM()));Jka(d,a.o.bitrate,e,sV(b));if(null!=e)return c.K=e;try{Kka(a,b)}catch(f){}throw gM(Lka);};
Kka=function(a,b){if(IM.getInstance().b){var c=new Dk,d=!1;E(YZ(b),function(a){Fk(c,a.b);"VPAID"==a.o&&(d=!0)},a);
var e=a.b.Xi(),e={aid:zV(b),mt:c.Ra().join(","),smt:e.join(","),hvp:d,st:DV(b).join(",")};LM(IM.getInstance(),28,e)}};
Jka=function(a,b,c,d){if(!U.b())try{var e=Ki(a,function(a){return a.Wd}),f=Ki(a,function(a){return a.b});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Wd;a.selmt=null===c?"":c.b;a.ic=!1;a.nat=!1;a.iyh=VL(c.g)?"1":"0";a.as=d;LM(IM.getInstance(),22,a)}catch(k){}};
i0=function(a,b){b in a.ha||(a.ha.push(b),a.ka(b))};
Mka=function(a){var b=Z(a),c={};c.pubbr=a.o.bitrate;c.ic=!1;c.nat=!1;if(null!=b){a=YZ(b);var d=b.b,d=d?d.K:null,e=Ki(a,function(a){return a.Wd});
a=Ki(a,function(a){return a.b});
c.brs=e.join(",");c.mts=a.join(",");c.as=sV(b);null===d?(c.selbr=-1,c.selmt="",c.iyh="0",c.murl=""):(c.selbr=d.Wd,c.selmt=d.b,c.iyh=VL(d.g)?"1":"0",c.murl=d.g)}LM(IM.getInstance(),45,c)};
k0=function(a,b,c){b.bb();var d=null;UZ(a)&&(GV(Z(a)),d=HV(Z(a)));null!=d?Nka(a,Z(a),d,b,c):(j0(a,c),a.Hh(),UZ(a)?(hM(gM,a,b,c,void 0),a.start()):(iM(a,b,c),a.stop()))};
Nka=function(a,b,c,d,e){b=y(function(a){a=a[0];this.Rm(Z(this),a);UZ(this)?(hM(gM,this,d,e,void 0),this.start()):k0(this,l0,gM(l0))},a);
a=y(function(){k0(this,m0,gM(m0))},a);
lU(c,b,a)};
j0=function(a,b){var c=gM(n0,b),c=VT(c,Z(a),a.b),d=tV(Z(a));cM(d,c)};
o0=function(a){if(U.g){var b=f0(Z(a));null!=b&&YL(b)}a.ka("click")};
p0=function(a,b){Vb(Oka,b)&&Jm($Z(a),a.O,b,a.Hs,a)};
q0=function(a){if(!a.da){var b=Z(a),c=b.C;if(dW(b)&&!U.b()&&!a.A.ij()&&c){var b=a.b.getCurrentTime(),d=a.b.td(),e=new M("//s.youtube.com/s");nh(e,"ns","yt");nh(e,"el","adunit");nh(e,"docid",c);nh(e,"eurl",window.document.URL);nh(e,"len",d.toFixed(2));nh(e,"tv","1");nh(e,"ps","trueview-instream");nh(e,"st",b.toFixed(2));nh(e,"et",b.toFixed(2));nh(e,"rt",b.toFixed(2));ZL(e.toString());a.da=!0}}};
Pka=function(a){var b=Z(a).ea;if(null!=b){var b=b.videoId,c=a.o.dg;if(B(C(b)))b=null;else{var c=new M((null!=c?c:"//www.youtube.com/")+"watch"),d=c.b;d.set("v",b);hh(c,d);c.G="action=share";b=c.toString()}null!=b&&(YL(b),a.At())}};
Qka=function(a){a=r0(a)||s0(a);null!=a&&$L(a,"sharebuttondisplayed")};
r0=function(a){a=Z(a).getExtension("AdSense");return null!=a?new M(a.A):null};
s0=function(a){if(a=Z(a).b)if(a=mT(a,"start"),!lb(a))return new M(a[0].b);return null};
Rka=function(a){var b=Z(a),c=b.ea;null!=c&&(b=TQ(c.videoId,null!=ZV(b),a.o.dg),null!==b&&(a.b.pause(),YL(b)))};
t0=function(a){Y_(a,function(){this.ka("skip");$_(this)})};
u0=function(a,b){yka(b,function(a){a=new L_(a);UZ(this)&&Z(this).C==a.videoId&&(Ska(this,a),!B(C(a.channelId))&&a.isListed&&zka(a.channelId,function(a){a=new YS(a);var b=Z(this),c=QL().b;if(null!=this.g){var d=this.g,l=a.authorName;d.b.Ma=!B(C(l));d.b.authorName=l;null!=d.C&&(l=ta("by {$userDisplayName}",{userDisplayName:""+d.b.authorName}),Vf(d.C,(new tR(""+l,void 0)).gc()));AZ(d);d=this.g;l=a.b;d.b.ga=!B(C(l));if(null!=d.K){var m=Gf(window.document,"img");m.setAttribute("src",l);I(m,"videoAdUiAuthorIconImage");
d.K.appendChild(m);null!=d.D&&I(d.D,"videoAdUiTitleWithAuthorIcon");null!=d.C&&I(d.C,"videoAdUiAuthorNameWithAuthorIcon")}AZ(d)}UZ(this)&&(Z(this).ba=a,this.ka("youTubeChannelMetadata"));if((lb(vV(b))||!vV(b)[0].g)&&c.Z("enable_website_actions_info_cards")&&c.Z("enable_website_actions_info_cards_companion")&&U.b()&&dW(b)&&(d=mia(b,a))){yV(b,d);try{b_(this,b)}catch(x){k0(this,a_,x)}}if(d=this.g)d=Z(this),l=d.ea,d=U.b()&&lb(vV(d))&&null!=d.ba&&null!=l&&l.isListed;if(d){$Z(this).N(window,"message",this.Jz);
var d=Z(this),l=d.ba.channelId,m=aU(d),n=this.o.wg,t=this.o.dg,t=new M((null!=t?t:"//www.youtube.com/")+"ad_companion"),u=t.b;u.set("adformat",m);u.set("p",l);u.set("render","video_wall_companion");n&&u.set("content",n);l=new IX("1",new lf(300,250),"IFrame",null,t.toString());l.G=d;l.A=!0;QV(b,new YU(l,[],null,!0));b_(this,b)}!TV(b)&&c.Z("enable_website_actions_info_cards")&&c.Z("enable_website_actions_info_cards_endcap")&&dW(b)&&kia(b,a.authorName,a.b)},this))},a)};
Ska=function(a,b){if(null!=a.g&&b.isListed){var c=a.g,d=b.title;c.b.G=!B(C(d));c.b.title=d;v0.test(se(c.b.title,void 0));null!=c.D&&Vf(c.D,c.b.title);AZ(c);c=a.g;null!=c.qa?Vf(c.qa,""+ta("Share")):null!=c.J&&Vf(c.J,""+ta("Share"))}UZ(a)&&(Z(a).ea=b,a.ka("youTubeVideoMetadata"))};
w0=function(a){var b=Z(a).ba;if(null!=b){var c;c=a.o.dg;b=C(b.channelId);c=B(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(va(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.b.pause(),YL(c))}};
Tka=function(a){var b=rW.getInstance();if(b.g){var c={};if(null!=a.M){var d=(new M(a.M.g)).g;if(null!=d){var d=bb(d,".",10),e=d.length;2<=e&&(c.cd1=d[e-2]+"."+d[e-1])}c.cm1=a.M.Xe;c.cd3=a.M.b;c.cd5=b.b;c.cm2=a.o.bitrate;c.cd2=VL(a.M.g)?"1":"0";d=a.M.cb();e=a.M.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.b&&(d=a.b.ud(),c.cd4=d.width+"x"+d.height);a=a.M.D;B(C(a))||(c.cd7=a)}b.end("bt",c)}};
x0=function(a,b){mc.call(this,"vpaidEvent");this.sessionId=b};
y0=function(a){TZ.call(this,a);this.Ga=this.la=this.ia=!1;this.ca=[];this.X=Xa();this.g=null;this.C=!0;this.ha=-1;this.da=new de(500);this.na=this.ba=-1;this.O=1;this.za=this.Ia="";this.R=!1;this.M=2==U.A};
A0=function(a){var b=wV(Z(a)),c=C(PV(Z(a))),d=bW(Z(a)),c={desiredBitrate:a.o.bitrate,creativeData:b,viewMode:a.J,clickThroughUrl:c,adUrl:d};bW(Z(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.o.surveyCreativeData&&(c.creativeData=a.o.surveyCreativeData);z0(a,"initAd",c);E(a.ca,function(a){z0(this,a.type,a.params)},a);
a.ia=!0;a.ca=[]};
B0=function(a,b,c){c=c||null;a.ia?z0(a,b,c):a.ca.push({type:b,params:c})};
z0=function(a,b,c){c=c||{};c.session=a.X;c.type=b;a.M?window.parent.postMessage(ig(c),"*"):null!=a.D.contentWindow&&a.D.contentWindow.postMessage(ig(c),"*")};
Vka=function(a,b){var c={};b=Sa(b);var d;b.length?d=b.split(/\s+/):d=[];E(d,function(a){c[a]=!0});
Pb(Uka,function(a,b){QL().b.Z(b)&&(c[a]=!0)},a);
return Yb(c).join(" ")};
C0=function(a,b,c,d){d=gM(b,c,d);var e=VT(d,Z(a)),f=tV(Z(a));cM(f,e);b.message=d.b;iM(a,b,c)};
E0=function(a,b){if(w(b.type))switch(b.type){case "friendlyReady":A0(a);break;case "videoCall":switch(b.func){case "load":case "play":a.A.uh();a.za!=b.src&&(a.za=b.src,a.g.load(b.src,b.mimetype));a.g.play();break;case "pause":a.g.pause()}break;case "returnDuration":a.ba=b.duration;break;case "returnRemainingTime":a.ha=b.remainingTime;break;case "AdClickThru":c_(a,"click");a.ka("click");break;case "AdDurationChange":a.ba=b.duration;a.ha=b.remainingTime;Z(a).b.aa=a.ba;a.ka("durationChange");break;case "AdError":C0(a,
D_,Error(b.message));a.stop();break;case "AdExpandedChange":a.ka("expandedChanged");break;case "AdImpression":var c=Z(a);lb(vV(c))||b_(a,c);a.ka("impression");break;case "AdLinearChange":c=b.isLinear;!a.C&&c?(a.ka("contentPauseRequested"),B0(a,"becameLinear")):!c&&a.C&&(a.ka("contentResumeRequested"),B0(a,"becameNonlinear"),B0(a,"getAdRemainingTime"),B0(a,"getAdDuration"));a.C=c;var d=Z(a);d.ha=!0;d.ia=c;a.ka("linearChanged");break;case "AdLoaded":ge(a.na);a.la=!0;d=b.companions;c=Z(a);lb(vV(c))&&
(d=QX(d,c.b.b),lb(d)||hV(c,d));D0(a);d_(a,"loaded");break;case "AdPaused":a.R=!0;d_(a,"pause");break;case "AdPlaying":a.R=!1;d_(a,"resume");break;case "AdRemainingTimeChange":a.ha=b.remainingTime;break;case "AdSkipped":d_(a,"skip");a.stop();break;case "AdSkippableStateChange":d_(a,"skippableStateChanged");break;case "AdStarted":c_(a,"impression");c_(a,"creativeview");a.ka("start");break;case "AdStopped":c_(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.C?c_(a,"acceptinvitationlinear"):c_(a,
"acceptinvitation");break;case "AdUserMinimize":c_(a,"collapse");break;case "AdUserClose":d_(a,"userClose");break;case "AdVideoComplete":d_(a,"complete");break;case "AdVideoFirstQuartile":d_(a,"firstquartile");break;case "AdVideoMidpoint":d_(a,"midpoint");break;case "AdVideoStart":c_(a,"start");break;case "AdVideoThirdQuartile":d_(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.O&&a.ka("volumeChange");0==c&&0!=a.O?(c_(a,"mute"),a.ka("mute")):0==a.O&&0!=c&&c_(a,"unmute");a.O=c;a.g.setVolume(c);
break;case "Ping":ZL(b.url)}};
F0=function(a,b){z0(a,"wrapperCall",{messageType:b})};
D0=function(a){a.la&&a.Ga&&(B0(a,"startAd"),a.da.start(),a.C||(B0(a,"becameNonlinear"),B0(a,"getAdRemainingTime")),B0(a,"getAdDuration"))};
G0=function(a,b,c,d,e,f,k){H.call(this);this.g=this.D=0;this.J=a;this.Fc=b;this.ia=c;this.B=null;this.K=d;this.ea=f;this.aa=U.o;this.G=this.H=this.C=this.b=null;this.ca=this.ga=-1;this.ba="normal";this.O=null;this.A=e;this.o=[];this.ha=this.R=this.da=this.M=!1;this.X=k;Wka(this)};
H0=function(a,b,c,d){a.ga=b;a.ca=c;null!=d&&(a.ba=d);null!=a.b&&a.b.Yc(b,c,d)};
Wka=function(a){E(a.J,function(a){a=new M(a.o.b);var b=a.b.get("max_ad_duration");p(b)||a.b.get("pmxd")})};
I0=function(a){return a.D<a.J.length&&null!=a.J[a.D]};
Xka=function(a,b){var c;if(c=U.b()&&!lb(b)&&0==a.Fc)c=b[0],c=null!=c&&null==bW(c)&&VV(c,"nonlinear");return c?(c=CV(b[0]),"ADSENSE"==(0<c.length?c.pop():sV(b[0])).toUpperCase()):!1};
O0=function(a){!I0(a)||2<=a.o.length-a.g?a.da||(K0(a),L0(a)&&M0(a,a.g)&&N0(a,a.g),a.da=!0,a.dispatchEvent("adBreakInitialized")):J0(a)};
J0=function(a){var b=a.J[a.D];Jm(a.F,a.K,"adsLoaderSdkAdLoaded",a.Er,a);U.o="on_master_ad";cka(a.K,b.o,b)};
K0=function(a){null==a.Fc||Wh(a.o,function(a){return!a.g})||(a.o=ne(a.o,function(a){return!(a.g&&!a.o)}))};
M0=function(a,b){var c;b<a.o.length?(c=a.o[b],lb(c.b)?c=!1:(c=c.b[0],c=null!=c?!FQ(jV(c),"rm"):!1)):c=!1;return c};
T0=function(a){if(M0(a,a.g)){var b=a.o[a.g];try{a.R?P0(a,a.b):L0(a)?(Q0(a),a.b=a.H,a.C=a.G,a.H=null,a.G=null,a.A.yq()):(Q0(a),a.C=new Hm(a),a.b=R0(a,b,a.C),P0(a,a.b));null!=a.B&&(a.B.dispose(),a.B=null);if(S0(a.b)){var c=a.Bb();if(null==c||!XV(c)){var d=Z(a.b).b;if(null!==d){var e=d.qa;0>=e&&!a.ea.kp||(0>=e&&(e=15),a.B=new de(1E3*e),Nm(a.C,a.B,"tick",a.aE,a))}}}if(S0(a.b))a.dispatchEvent("contentResumeRequested"),a.A.ad(),a.b.start(),null!=a.B&&a.B.start();else{var f=a.b;if(null!=f&&f instanceof X_)a.A.uh(),
a.b.start();else{var k=a.b;if(null!=k&&k instanceof y0)a.A.ad(),a.b.ob()?a.A.uh():a.dispatchEvent("contentResumeRequested"),a.b.start();else{var l=a.b;if(null!=l&&(l instanceof t_||l instanceof z_))a.A.ad(),a.b.ob()||a.dispatchEvent("contentResumeRequested"),a.b.start();else throw Error("Unknown ads manager type.");}}}L0(a)&&M0(a,a.g+1)&&N0(a,a.g+1)}catch(m){a.g++,T0(a)}I0(a)&&J0(a)}else a.dispatchEvent("contentResumeRequested"),U0(a)};
P0=function(a,b){if(null===b)throw Error("Ads manager must be constructed before initialization");b.init(a.ba);null!=a.O&&b.setVolume(a.O)};
R0=function(a,b,c){b=aZ(b.b);var d=new F_(a.A,L0(a));b.F=a.X;Jm(c,b,V0,a.Gr,a);Jm(c,b,"companionBackfill",a.Gr,a);Jm(c,b,"adError",a.ZB,a);Jm(c,b,"allAdsCompleted",r,a);Jm(c,b,"contentPauseRequested",a.MA,a);Jm(c,b,"contentResumeRequested",a.NA,a);Jm(c,b,"userClose",a.OA,a);Jm(c,b,"autoClose",a.LA,a);b.Rc(d,{currentTime:0},a.ea);b.Yc(a.ga,a.ca,a.ba);return b};
Q0=function(a){a.A.Gf();null!=a.B&&(a.B.dispose(),a.B=null);null!=a.C&&(a.C.dispose(),a.C=null);null!=a.b&&(a.b.destroy(),a.b=null)};
W0=function(a){null!=a.G&&(a.G.dispose(),a.G=null);null!=a.H&&(a.H.destroy(),a.H=null)};
S0=function(a){return null!=a&&a instanceof h_};
U0=function(a){a.M=!1;a.dispatchEvent("allAdsCompleted")};
Yka=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"companionBackfill"==b||"firstquartile"==b){var d=0,e=0;E(a.o,function(a,b){var c=a.b;d+=c.length;b<this.g&&(e+=c.length)},a);
b=c.A;c=e+b.B;b.o=d+(a.J.length-a.D);b.g=c;b.A=a.ia;b.b=a.Fc}};
N0=function(a,b){var c=a.o[b];a.G=new Hm(a);a.H=R0(a,c,a.G);P0(a,a.H)};
L0=function(a){null===a.A?a=!1:(a=a.A,a=!(null===a||a.hj()||U.b()||nM()||wM()||JA&&!rM(4))&&!1);return a};
X0=function(a){mc.call(this,a);this.b=null};
Y0=function(a,b,c){H.call(this);this.b=a;this.o=[];this.B=null!=c&&ha(c.backlog)?c.backlog:!1;this.C=null!=c&&ia(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.A=null;this.g=!1;Zka(this,b)};
$ka=function(a){this.b=a;this.o=this.g=!1};
Z0=function(a){a.b.start();a.g=!0};
ala=function(a){if(a.g){var b=fb(a.o,function(a){return-1==a.b},a);
null!=b&&$0(a,!0,b)}};
Zka=function(a,b){E(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);Hb(this.o,new $ka(a),function(a,b){return zb(a.b,b.b)})},a)};
bla=function(a,b){for(var c=[],d=0;d<a.o.length;d++){var e=a.o[d];-1!=e.b&&e.b<=b&&ob(c,e)}return c};
dla=function(a,b){for(var c=0;c<a.o.length;c++){var d=a.o[c];if(-1!=d.b&&b>=d.b-a.C&&b<d.b&&!a.o[c].g)return d}return null};
a1=function(a){a.dispatchEvent(new X0("contentTrackingError"))};
$0=function(a,b,c){if(null!=c){if(!c.g){var d=new X0("requestAds");d.b=c.b;a.dispatchEvent(d);c.g=!0}b&&!c.o&&(b=new X0("playAds"),b.b=c.b,a.dispatchEvent(b),c.o=!0)}};
b1=function(a,b){F.call(this);this.A=a;this.b=-1;this.o=b};
c1=function(a,b){if(0==b.Fc||0>=a.o||0>=a.b)return!1;var c=D()/1E3,d=b.Fc-a.A.currentTime;0<d&&(c+=d);return c-a.b<=a.o};
$Y=function(a,b){TZ.call(this,[]);this.O=a;this.K=new Cg;this.C=this.g=null;this.X=new no;this.D=null;this.ba=b;this.na=this.ca=!1;this.M=null;this.la=0;this.da=this.ha=-1;this.ia=null;this.za=0;this.R=!1};
fla=function(a,b){if(null!==a.A){var c=1;a.la=0;E(b,function(a){if((0,window.isNaN)(a))throw fM(IW,null,"timeOffset",String(a));if(-1!=a&&-1>=a){var b=this.O;if((0,window.isNaN)(a)||!ia(a))throw Error("Incorrect time offset.");Eg(b.b,a)&&b.b.remove(a)}else if(b=ia(a)&&!(0,window.isNaN)(a)?this.O.b.get(a,[]):[],!lb(b)){this.la+=b.length;var d;d=0==a||-1==a?a:c++;b=new G0(b,a,d,this.ba,this.A,this.o,this.F);if(Eg(this.K,a))throw fM(ela,null,"Multiple ad breaks cannot share same ad play time.");this.K.set(a,
b)}},a)}};
gla=function(a,b){a.M=cb(b);Wh(b,function(a){if(-1==a)return this.M=a,!0;this.M=this.M<a?a:this.M;return!1},a)};
f1=function(a,b){a.R=!1;a.hg(b);0==b.Fc?a.jj():(-1==b.Fc?(d1(a)||!U.b()&&a.ca)&&e1(a):Z0(a.C),a.D=null)};
g1=function(a){null!=a.G&&(a.G.dispose(),a.G=null);a.ca=!1;null!=a.C&&a.C.Lb()};
h1=function(a){if(null==a.D){var b=qo(a.X);if(null!=b){a.D=b;var c=a.K.get(a.D.b);if(null!=c)if(b=b.type,"requestAds"!=b&&"playAds"!=b)a.D=null,h1(a);else if(null!=a.ia&&c1(a.ia,c))a.D=null,h1(a);else if("requestAds"==b)a.R?(a.X.isEmpty()||"playAds"!=ro(a.X).type||qo(a.X),f1(a,c)):(b=$Z(a),Jm(b,c,V0,a.dispatchEvent,a),Jm(b,c,"adError",a.Up,a),Jm(b,c,"allAdsCompleted",a.zr,a),Jm(b,c,"contentPauseRequested",a.Hq,a),Jm(b,c,"contentResumeRequested",a.jj,a),Jm(b,c,"userClose",a.UA,a),Jm(b,c,"autoClose",
a.TA,a),Jm(b,c,"adBreakInitialized",a.Ar,a),c.init(a.ha,a.da,a.J));else{if("playAds"==b)if(a.R)f1(a,c);else if(null!=a.g&&a.g.Wa()&&a.hg(a.g),a.g=c,a.g.setVolume(a.volume),H0(a.g,a.ha,a.da,a.J),a.g.R){c=a.g;if(c.g<c.o.length){b=c.o[c.g];Q0(c);try{c.C=new Hm(c),c.b=R0(c,b,c.C)}catch(d){c.g++,T0(c)}}a.ka("contentResumeRequested");a.C.getCurrentTime()>=a.za?null!=a.g&&a.g.start():a.D=null}else a.g.start()}else a.D=null,h1(a)}}};
e1=function(a){if(!a.na){a.na=!0;a.ba.b=!0;try{LM(IM.getInstance(),44,{cmpl:!0})}catch(b){}a.ka("allAdsCompleted");-1==a.M&&i1(a)}};
i1=function(a){SL(QL(),420706009)||JM.clear();null!=a.F&&(a=a.F.zf(),null!=a&&OS(a,JM.b))};
d1=function(a){return 0==a.K.Ra().length};
hla=function(a){return null!=a.g?a.g:null!=a.D?a.K.get(a.D.b):null};
aZ=function(a){if(lb(a))throw Error("Ads manager creation failure, no ads.");var b=a[0],c=mV(b)&&U.b(),c=0!=U.A||c;switch(null!=bW(b)&&c?"vpaid":BQ&&null!=cW(b)&&0!=U.A?"flash_vpaid":kV(b,RV)&&null==bW(b)&&VV(b,"nonlinear")?"overlay":VV(b,"linear")?"video":VV(b,"nonlinear")&&null==bW(b)?"overlay":null){case "overlay":return kV(b,RV)?new k_(a):new h_(a);case "video":return new X_(a);case "vpaid":return new y0(a);case "flash_vpaid":return 2==U.A?new z_(a):new t_(a)}throw Error("Ads manager creation failure, failed to determine ad type.");
};
j1=function(a){H.call(this);this.g=a;a=new iW(new IS);this.b=new XY(0,a,JM);this.b.N("adsManagerLoaded",this.dispatchEvent,!1,this);this.b.N("adError",this.dispatchEvent,!1,this);this.b.N("adLoadError",this.dispatchEvent,!1,this)};
k1=function(a,b,c){Kea();var d="",e=xN(),f=e.g,e=e.b;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.bd=xS(b.b,a.g.C);b.fn=a.g.H;bka(a.b,b,c)};
l1=function(a,b){VI.call(this,a,b)};
m1=function(a){this.app=a;iq.call(this,a.$a)};
n1=function(a,b,c){this.V=a;this.b=b||"";this.o=c||null;this.A=!1};
o1=function(a,b){var c=a.V;if(c.Ya&&("detailpage"==c.b||"leanback"==c.b||"embedded"==c.b&&(c.aa&&c.qb||c.experiments.Z("html5_playlist_preload")))&&!a.A){a.A=!0;Vi("TIMING_ACTION")||Ui("TIMING_ACTION",a.V.csiPageType);a.V.Ga&&Ui("CSI_SERVICE_NAME",a.V.Ga);if(a.o){var c=a.o.C,d;for(d in c)zC(d,c[d],a.b);d=a.o.A;for(var e in d)AC(e,d[e],a.b);e=a.o;e.C={};e.A={}}AC("yt_pvis",gca(),a.b);AC("yt_pt","html5",a.b);b&&!CC("pbs",a.b)&&a.g("pbs",b);e=a.V;("detailpage"!=e.b||"blazer"==e.g)&&CC("_start",a.b)&&
JC(a.b)}};
q1=function(a,b){this.b=a;this.g=ia(b)?b:null;if(kb(p1,this.b)){if(!ia(this.g)||0>this.g)throw Error("Must have valid offset");}else if(null!==this.g)throw Error("Must not have offset");};
r1=function(a){var b=a.g;if(null!==b)return b;switch(a.b){case 1:return 0;case 3:return-1;default:return-100}};
ila=function(a,b){var c=a.b,d=b.b;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.g,f=b.g;return e!=f?null===e?1:null===f?-1:e-f:c-d};
jla=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:jY,flash:dO||"0",frm:a};ON(a);return a};
s1=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
t1=function(a,b){if(a){var c="getErrorCode"in a?a.bb():null;c?b.error_code=c:(c="getMessage"in a&&ka(a.getMessage)?a.b:a.message,c=Ma(c||"",50),b.error_message=c)}};
u1=function(a,b){if(a){var c=BV(a).reverse();b.ad_id=sb(c,zV(a)).join(",");c=CV(a).reverse();b.ad_sys=sb(c,sV(a)).join(",");c=$T(a);null!=c&&(b.aqi=c)}};
v1=function(a,b){if(a[b])return s1(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return s1(a[d]);return!1};
w1=function(a){var b="";a&2&&a&1?b="video":a&2?b="skippablevideo":a&1&&(b="standardvideo");a&4&&(b&&(b+="_"),b+="text_image_flash");return b};
x1=function(a,b,c){var d=new cN;d.dg=b.baseYtUrl;d.wg=c.videoId;d.qn=!0;d.du=!0;d.eu=a.X;d.showContentThumbnail=a.showContentThumbnail;d.Gg={};c.qb&&(d.Gg.ctrl=c.qb);c.ub&&(d.Gg.ytr=c.ub);c.qc&&(d.Gg.ytrcc=c.qc);c.isMdxPlayback&&(d.Gg.mdx="1");a.B?(d.Kk=!0,d.dz=!0,d.showContentThumbnail=!1,d.on=!0,d.pn=!0,d.qn=!1):a.C&&(d.Kk=!0);d.xq=a.Sa;return d};
A1=function(a){var b=new ZX;b.B=a.g.Ca;var c=a.app.D.Ja();b.yg=c.width;b.xg=c.height;b.sd=c.width;b.rd=100;b.Kp=!0;c=new KL;c.Z=y(y1(a).experiments.Z,y1(a).experiments);c.b=y(y1(a).experiments.b,y1(a).experiments);c.g=y(y1(a).experiments.F,y1(a).experiments);b.Zj=c;if(c=b.Kp?mr():-1)b.D=c;a.g.tagForChildDirected&&(b.Oj=!0);a.g.fb&&(b.fj=!0);c=z1(a);b.Eb={CA_TYPE:BQ?"flash":"image",CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:kla(a),VIS:lla(a)};Pb(jla(),function(a,c){b.Eb[c.toUpperCase()]=a});
b.afcRmFallback=a.g.H;y1(a).experiments.Z("ad_block_content_id")&&(b.A="yt_"+z1(a).videoId);b.language=y1(a).qa;b.Bi=mla(y1(a).experiments);return b};
mla=function(a){var b=null,c=null;oz().then(function(a){b=a},function(a){c=a});
if(null!=b)return b;if(null!=c)return c;var d=a.b("html5_serverside_biscotti_id_wait_ms"),e=a.Z("html5_serverside_call_server_on_biscotti_timeout"),f=Error("Timed out while waiting for Biscotti ID");if(0==d)return e?"NO_BID":f;if((0,window.isNaN)(d))return oz();var k;a=new Fd(function(a,b){k=new he(function(){e?a("NO_BID"):b(f)},d);
k.start()});
a=Nd([oz(),a]);Sd(Ud(a,r),function(){k.dispose()});
return a};
kla=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:mr().toString()}}};
lla=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:dG(y1(a)).toString()}}};
nla=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;var b=a.D?a.D.g():null;return null==b||0>b?"0":Math.ceil(.001*D()-b).toString()}}};
B1=function(a,b,c,d){this.g=this.A="";this.o=a;this.C=b;this.b=c;this.B=d};
E1=function(a){var b=C1(a);b.format="2_3";b.at="2_3";b.trsp="1";D1(a.b,3,b)};
C1=function(a){var b={};b.l_ns=a.C;b.l_state=a.B;b.break_type=a.o.b;b.sst=r1(a.o);b.sidx=0;a.A&&(b.at=a.A);a.g&&(b.ad_id=a.g);return b};
F1=function(a){F.call(this);this.g=new he(y(this.D,this),1E3);G(this,this.g);this.C=null!=a&&0<a.b("mpu_visible_threshold_count")?a.b("mpu_visible_threshold_count"):2;this.B=this.o=0;this.b=Qd();this.A=!1};
I1=function(){var a=q("yt.www.watch.ads.loadAfc");ka(a)?(a(),G1=!0):H1=!0};
J1=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"};
L1=function(){var a=q("window.google_show_companion_ad"),b;b=q("yt.www.watch.ads.getGlobals");ka(a)&&ka(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():K1=!0};
O1=function(a){L1();M1();return N1(a)};
N1=function(a){P1||(P1=new F1(a));a=P1;a.A||(a.g.start(),a.A=!0);return a.b.o};
M1=function(){P1&&(P1.dispose(),P1=null)};
Q1=function(){var a=q("yt.www.watch.ads.setCompanion");a&&a()};
ola=function(a){var b=q("yt.www.watch.ads.showForcedMpu");b&&b(a)};
S1=function(a,b,c,d){uk.call(this);this.C=!!b;this.D=a;this.g=c||a;this.G=!!d;this.b=new ix(this);this.B=this.F=null;this.A=this.o=!1;b&&(Cc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));R1(this)};
R1=function(a){a.B=null;a.F=null;a.b.S(a.g,T1("over"),a.qu);a.b.S(a.g,"touchstart",a.Cn);a.C&&a.b.S(a.g,T1("down"),a.RB)};
U1=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};
T1=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
V1=function(a,b){this.g=a;this.b=b};
W1=function(a){return a.b-a.g};
X1=function(a,b){return a.g+b*W1(a)};
Y1=function(a,b,c){return W1(a)?df((b-a.g)/W1(a),0,1):null!=c?c:window.Infinity};
Z1=function(){this.g=this.position=this.A=this.b=this.B=this.o=this.width=window.NaN};
$1=function(a,b,c,d,e){var f=b.tr/b.rows,k=Math.min(c/(b.vr/b.Zb),d/f),l=b.vr*k,m=b.tr*k,l=Math.floor(l/b.Zb)*b.Zb,m=Math.floor(m/b.rows)*b.rows,n=l/b.Zb,t=m/b.rows,u=-b.Uy*n,x=-b.lG*t;e&&45>=f&&(t-=1/k);n-=2/k;a=a.style;a.width=n+"px";a.height=t+"px";e||(d=(d-t)/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+") "+u+"px "+x+"px/"+l+"px "+m+"px";if(e)return new lf(n,t)};
a2=function(a,b,c,d){uk.call(this);this.b=a;this.g=d;this.videoData=null;this.adType=c;this.adSystem=b};
pla=function(a,b){this.b=a;this.g=b||0};
b2=function(a){var b=[];E(a.split("_"),function(a,b){this[b]=Ya(a)},b);
return new pla(Vb(qla,b[1])?b[1]:0,Vb(rla,b[2])?b[2]:0)};
sla=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=r;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null;this.whyThisAdClosed=this.whyThisAdClicked=this.muteAd=this.sendAdsPing=r};
c2=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",N("YTP_ADVERTISEMENT")]],["div","ad-container"]];P.call(this,b);this.o=a;this.b=this.B=this.A=null};
d2=function(a){a.A||(a.A=a.pa["ad-container"],Q(a.o).R&&I(a.A,"ad-container-single-media-element-annotations"));return a.A};
f2=function(a){a.b&&(Q(a.o).R?(a.b.Pv("ad-video"),e2(a.o.app,a.b),a.b=null):(a.b.Vs(),$H(a.b)))};
g2=function(a){if(!a.B){var b=Gf(window.document,"div");me(b,["video-click-tracking","ad-video"]);d2(a).appendChild(b);a.B=b}return a.B};
tla=function(a){this.b=a};
ula=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};
h2=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;default:return 0}};
vla=function(a,b){this.B=null;this.o=window.NaN;this.g=null;this.b=a;this.A=b};
i2=function(a,b,c){a.b.Y("AD_LOGGING_EVENT",b,c)};
l2=function(a,b,c){j2(a);var d=k2(a);c&&sa(d,c);d.ad_error=b;i2(a,7,d)};
k2=function(a){var b={},c=a.b.videoData,d=a.b.Wp(),e=a.b.Rn();u1(a.b.Bb(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Ng(e),b.ad_dom=c,a.A.g.C&&(b.ad_v_url=e.substr(0,512)));e=a.b;(e=e.g?e.g.lg():null)&&(b.ad_cpn=e);b.format=a.b.gd();b.at=a.b.Se();b.ad_mt=Math.round(1E3*Math.max(wla(a.b),0));return b};
j2=function(a){a.B||(a.B="InstreamAdDisplay ("+a.b.gd()+")")};
m2=function(a,b){F.call(this);this.A=Math.max(0,a);this.o=this.g=0;this.B=b;this.b=window.NaN};
o2=function(a,b,c,d,e,f,k){a2.call(this,b,a,2,c);this.J=!1;this.D=this.O=this.K=null;this.b.subscribe("control_toggle_play_pause",this.nv,this);this.b.subscribe("control_play",this.Mm,this);this.b.subscribe("control_pause",this.Lm,this);this.B=new vla(this,this.b);this.o=new mt(this);this.A=n2(b);this.A.subscribe("statechange",this.lv,this);this.A.subscribe("internalAbandon",this.yr,this);this.A.subscribe("internalvideodatachange",this.mv,this);this.C=this.F=!1;this.R=d;this.M=!!e;this.aa=!!f;this.G=
k;this.H=new m2(15E3,y(this.nk,this))};
q2=function(a,b){var c=y1(a.b);a.b.g.X&&"3"==c.A&&(c=a.b.app.D,c.H=!b,p2(c))};
t2=function(a){KC("ad_to_video",["pbresume"]);a.G&&AC("yt_abt",a.G,"ad_to_video");a.videoData&&a.videoData.clientPlaybackNonce&&AC("ad_cpn",a.videoData.clientPlaybackNonce,"ad_to_video");zC("adc",void 0,"ad_to_video");sI(n2(a.b));r2(a.b,0);s2(a.b,0);a.Y("adEnd",a);q2(a,!0)};
u2=function(a,b){y1(a.b).experiments.Z("html5_ad_error_releases")?sI(a.A):YH(a.A);r2(a.b,0);a.Y("adError",b)};
wla=function(a){return a.A?a.A.getCurrentTime():0};
v2=function(a){a=a.Bb();return a?(a=a.D.get("why_this_ad"))?{menuTitle:a.A,targetingReasonHeader:a.B,targetingReasons:tb(a.C),closeButton:a.o,adSettingsLink:tb(a.g),controlText:a.G,continueButton:a.F,cancelButton:a.D}:null:null};
w2=function(a){a=a.Bb();if(!a)return null;a=a.D.get("mute");if(!a)return null;for(var b=oX(a),c=[],d=0;d<b;d++)c.push({label:a.g[d].label,url:a.g[d].url});return{goneText:a.o,questionText:a.B,undoText:a.C,hoverText:a.A,surveyOptions:c}};
xla=function(a,b){this.b=a;this.B=b;this.b.gd();this.g=this.A=0;this.o=null};
x2=function(a,b,c){a.b.Y("AD_LOGGING_EVENT",b,c)};
y2=function(a){var b={};u1(a.b.Bb(),b);a.A&&a.g&&(b.ot=a.g-a.A);var c;c=a.B.isFullscreen()?2:a.B.app.ha?1:0;b.ad_ps=c;b.format=a.b.gd();b.at=a.b.Se();return b};
z2=function(a,b,c,d){a2.call(this,b,a,1,c);this.o=null;this.C=!1;this.F=null;this.B=new xla(this,b);this.A=new mt(this);this.D=!!d};
A2=function(a,b){a.F!=b&&(a.F=b)};
B2=function(a,b,c,d){F.call(this);this.K=null;this.R=a;this.g=b.sb;this.F=b;this.H=b.getId();this.b=c;this.C=d;this.o=new B1(this.g,this.ah(),c,d);this.B=null;this.O=new Hm(this);this.A=new Hm(this);this.M=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
C2=function(a){var b=new q1(2,10);a.g=b;a.o.o=b};
D2=function(a,b){a.K=b;var c=b.gd();a.o.A=c};
E2=function(a,b){var c=q("yt.www.watch.ads.setAdId");c&&c(b);a.o.g=b};
F2=function(a){a=r1(a.g);return 0==a||-1==a?a:1E3*a};
G2=function(a){O1(y1(a.b).experiments).then(function(){E1(this.o)},r,a)};
L2=function(a){var b=a.F,c=a.g;b.b=a.K;b.sb=c;G(b,b.b);0==b.wa&&(a=b.b.Se(),b.o.ga.at=a);b.b instanceof o2?b.g=!0:b.b instanceof H2?b.isVisible=!1:b.b instanceof I2?b.isVisible=!1:b.b instanceof J2&&(b.isVisible=!1);b.A="loaded";K2(b)};
yla=function(a){this.b=a};
H2=function(a){a2.call(this,a,2,3,null);this.B=this.A=this.o=0};
M2=function(a){a.o&&($i(a.o),a.o=0,a.A=0,a.B=0)};
N2=function(a,b,c){B2.call(this,2,a,b,c);this.D=new yla(this.b.g);J1()};
O2=function(a,b,c){this.g=this.C="";this.F=null;this.A=!1;this.B=this.o="";a&&(this.C=a,this.isLiveStream=b.isLiveStream,this.A=b.Ya,this.D=c,b=this.C,c=b.indexOf(";sz="),a=Qj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{Ny:b[0],XF:b[1],$F:a})&&(this.o=a.Ny,this.B=a.XF,this.F=a.$F)};
P2=function(a){this.g=a?a:""};
J2=function(a,b,c,d){z2.call(this,1,a,b,d);this.G=c};
Q2=function(a,b,c){B2.call(this,1,a,b,c);a=this.b.g;this.aa=a.ga?new P2(a.adTag):new O2(a.adTag,a,this.H)};
R2=function(a,b,c,d){Q2.call(this,a,b,c|d);this.J=c;this.G=d;this.D=null;J1()};
S2=function(a,b){var c=b.Bb(),d=CV(c);d.unshift(sV(c));for(c=0;c<d.length;++c){var e=zla[d[c].toUpperCase()];if(e){a.D=e;return}}a.D=0};
T2=function(a,b){this.B=[];this.K=a;this.J=b||null;this.A=this.b=!1;this.o=void 0;this.G=this.M=this.D=!1;this.C=0;this.g=null;this.F=0};
V2=function(a,b,c){a.b=!0;a.o=c;a.A=!b;U2(a)};
X2=function(a){if(a.b){if(!a.G)throw new W2;a.G=!1}};
Z2=function(a,b,c){Y2(a,b,null,c)};
Y2=function(a,b,c,d){a.B.push([b,c,d]);a.b&&U2(a)};
$2=function(a){return Wh(a.B,function(a){return ka(a[1])})};
U2=function(a){if(a.C&&a.b&&$2(a)){var b=a.C,c=a3[b];c&&(aa.clearTimeout(c.wa),delete a3[b]);a.C=0}a.g&&(a.g.F--,delete a.g);for(var b=a.o,d=c=!1;a.B.length&&!a.D;){var e=a.B.shift(),f=e[0],k=e[1],e=e[2];if(f=a.A?k:f)try{var l=f.call(e||a.J,b);p(l)&&(a.A=a.A&&(l==b||l instanceof Error),a.o=b=l);if(Dd(b)||"function"===typeof aa.Promise&&b instanceof aa.Promise)d=!0,a.D=!0}catch(m){b=m,a.A=!0,$2(a)||(c=!0)}}a.o=b;d&&(l=y(a.H,a,!0),d=y(a.H,a,!1),b instanceof T2?(Y2(b,l,d),b.M=!0):b.then(l,d));c&&(b=
new b3(b),a3[b.wa]=b,a.C=b.wa)};
W2=function(){ua.call(this)};
c3=function(){ua.call(this)};
b3=function(a){this.wa=aa.setTimeout(y(this.g,this),0);this.b=a};
d3=function(a,b){var c=b.g;this.D=c.forceAdUrl;var d=0,c=c.forceAdType.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);B2.call(this,2,a,b,d)};
e3=function(){this.B=new P(["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(this,this.B);this.B.N("click",this.F,this);this.A=new P(["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(this,this.A);this.A.N("click",this.D,this);P.call(this,["div","ad-carousel",["div","ad-carousel-clip",["ul",["ad-carousel-list","ad-carousel-list-animation"],"{{items}}"]],this.B,this.A]);this.C=this.pa["ad-carousel-list"];this.o=0;this.b=[]};
Ala=function(a,b){a.clear();a.b=Ki(b,function(a){var b=new P(["li","ad-carousel-listitem",["div","ad-carousel-item",a]]);G(b,a);return b});
a.va("items",a.b)};
g3=function(a){a.C&&Ls(a.C,"left",(2>a.b.length?0:-a.o*a.b[1].element.clientWidth)+"px");a.B.gb(0<a.o);a.A.gb(a.o<a.b.length-f3(a))};
f3=function(a){return 2>a.b.length?1:Math.floor((a.element.clientWidth-a.b[0].element.clientWidth)/a.b[1].element.clientWidth)+1};
h3=function(){this.b=new e3;this.B=new ix(this);G(this,this.B);this.C=new he(this.ln,200,this);G(this,this.C);var 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",N("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",
N("YTP_SPONSORED_PRODUCT_INFO")]]]],this.b];yK.call(this,a);this.A=this.pa["iv-btp-block-clicks"];this.o=new he(ra(function(a){R(a,!1)},this.A),1E3);
G(this,this.o);this.B.S(window,"resize",this.Uz)};
Bla=function(a,b){a.clear();R(a.A,!0);var c=Ki(b,y(a.Yy,a));a.va("title",0<b.length?zT(b[0],"teaser_text"):"");Ala(a.b,c);a.ln()};
Ela=function(a){return Cla().then(ra(Dla,a))};
Cla=function(){i3||(i3=Fla()?Jd():new Fd(function(a){kj("watchAdsInit",a)}));
return i3};
Fla=function(){var a=q("yt.www.watch.ads.promotionShelfShow");return ka(a)};
Dla=function(a){var b=q("yt.www.watch.ads.promotionShelfClear");b&&b();b=q("yt.www.watch.ads.promotionShelfShow");null!=b&&b(a)};
j3=function(a,b){a2.call(this,a,14,14,b);this.o=new h3;G(this,this.o)};
Gla=function(a){var b=a.g.Bb().H,c=ne(b,function(a){return!!yT(a.Af(),"show_in_promotion_shelf",void 0)});
lb(c)&&(c=b);lb(c)||(Bla(a.o,c),Ela(a.o.element).then(a.o.start,null,a.o))};
k3=function(a,b,c){B2.call(this,14,a,b,c)};
l3=function(a,b,c){B2.call(this,14,a,b,c)};
m3=function(a,b){return"9t_D9IIh_ZI"==b.da||a.experiments.Z("enable_html5_freewheel_longform")};
Hla=function(a,b,c,d,e){this.A=a;this.o=b;this.b=c;this.V=y1(this.A);this.B=d;this.C=z1(this.A).lengthSeconds;this.D=e;this.g="html5";n3(this)&&"embedded"==this.V.b?this.g="html5_embed":rA||qA?this.g="html5_ios":Op("android")?this.g="html5_android":Wp()?this.g="html5_wp":Rp()?this.g="html5_ps3":"leanback"==this.V.b?(a=(Zb(window,"environment","brand")||"").toLowerCase(),b=(Zb(window,"environment","model")||"").toLowerCase(),this.g="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):
Vp()?this.g="html5_wii":n3(this)&&(this.g="html5_desktop")};
p3=function(a){var b="";a.b.A&&!a.b.o?b=";linear-skippable":!a.b.A&&a.b.o&&(b=";video");return o3(a)+b};
o3=function(a){return q3(a.o)?"preroll":r3(a.o)?"postroll":"midroll"};
t3=function(a){return(a=a.A.o)?Wh(a.o,function(a){return s3(a)||r3(a)}):!1};
n3=function(a){return!t3(a)||m3(a.V,a.b)};
I2=function(a,b){z2.call(this,4,a,b)};
u3=function(a,b,c){B2.call(this,4,a,b,c);var d=this.b.g;this.D=C(d.Ha);var e=z1(this.b)&&z1(this.b).spacecastModule;this.G=new Hla(b,a,d,c,!!e)};
v3=function(a,b,c){this.o=a;this.b=b;this.g=c||0};
Ila=function(a){return 0<((a.b|a.g)&3)};
w3=function(a,b,c,d,e){uk.call(this);this.D=!0;this.g=!1;this.isVisible=!0;this.A="unloaded";this.F=!1;this.wa=b;this.o=a;this.sb=c;this.C=d;this.B=this.b=null;this.G=!!e};
z3=function(a){return q3(a)?x3(a)&&y3(a)?-0x8000000000000:0:ia(a.sb.g)?1E3*r1(a.sb):0x8000000000000};
Jla=function(a){var b=!y1(a.o).experiments.Z("disable_fetching_previous_nonadjacent_midrolls");return q3(a)||b&&a.o.b&&1E3*a.o.b.getCurrentTime()>=z3(a)?!1:Xk(a.C,function(a){switch(a.Fb()){case 1:case 2:case 3:case 5:return!0;default:return!1}})};
x3=function(a){return"loaded"==a.A||"error"==a.A};
q3=function(a){return 1==a.sb.b};
y3=function(a){if(!x3(a))throw Error("Preroll status is undefined before ad load.");return q3(a)&&a.g};
s3=function(a){return 2==a.sb.b};
r3=function(a){return 3==a.sb.b};
D3=function(a){a.A="loading";q3(a)&&!Wh(a.C,Ila)&&mq(a.o);if(a.G)a.A="loaded",a.g=!0,K2(a);else{var b=a.C.shift();b?(q3(a)&&A3(a.o,"nl"),b=b.create(a,a.o),G(a,b),b.load()):(D1(a.o,2,B3(a,{})),C3(a,!1),a.A="error",K2(a))}};
E3=function(a){a.b&&(a.b.Fa("adEnd",a.Cr,a),a.b.Fa("adError",a.ev,a),a.b.Fa("AD_LOGGING_EVENT",a.$r,a),a.b.Fa("select",a.dv,a),a.b.Fa("adCompanionInitialized",a.fv,a))};
K2=function(a){a.Y("adBreakComplete",a)};
C3=function(a,b){a.B&&(a.B.Of({FILLED_OPPORTUNITY:b?1:0}),a.B.dispose(),a.B=null)};
B3=function(a,b){b.break_type=a.sb.b;b.sst=r1(a.sb);b.sidx=0;return b};
F3=function(a){var b=0;a.K&&(b|=1);a.J&&(b|=2);var c=0;a.D&&(a.F&&(c=4),b||a.aa||(b=c,c=0));a=new Cg;a.set(3,b);a.set(4,c);return a};
G3=function(a,b){var c=[];if(a.ca)return c.push("pla"==(a.forceAdType||"").toLowerCase()?new v3(8,16):new v3(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.aa&&c.push(new v3(7,16)),c;if(a.M){var d=0;if(a.o||a.A)d|=1;a.O&&(d|=4);a.R&&(d|=8);c.push(new v3(5,d))}d=0;a.G&&(a.o&&(d|=1),a.A&&(d|=2),a.O&&a.D&&(d|=4),a.R&&a.D&&(d|=8));var e=F3(a),f=e.get(3);d&&f&&Kla(a,b)?c.push(new v3(3,d,f)):(d&&c.push(new v3(2,d)),f&&c.push(new v3(1,f)));a.independentBreakOffsets||f&4||!a.aa||c.push(new v3(7,16));
(d=e.get(4))&&c.push(new v3(1,d));return c};
H3=function(a){this.b=a};
I3=function(a){var b=[];E(Lla(a),function(a,d){var c=new w3(this.b,d,a,G3(this.b.g,a.b));b.push(c)},a);
return b};
Lla=function(a){var b=a.b.g,c=[];if(b.M&&!m3(y1(a.b),b))c=J3;else if(b.ha){var d=b.ha.split(",");for(a=0;a<d.length;a++){var e=Ya(d[a]),e=0>e?new q1(3):0<e?new q1(2,e):new q1(1);c.push(e)}}else c=J3;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new q1(5,Ya(b[a])));Cb(c,ila);return c};
Pla=function(a,b){this.V=a;this.B=this.V.isMobile;this.C="leanback"==this.V.b;this.b=this.B||this.C;this.X=!this.C&&!uA(a);this.o=s1(b.instream);this.isLiveStream=1==b.livestream;this.A=s1(b.trueview);this.ea=s1(b.aftv);this.ha=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.Oa=!!b.adtest;this.afvAdTag=b.afv_ad_tag;Mla(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.na=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.o||this.A)&&!this.V.useMediaVolume;this.za=b.cid;this.da=iz(b);this.dynamicAllocationAdTag=b.dynamic_allocation_ad_tag;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.Ca=(0,window.parseInt)(b.forced_skip_offset,10);this.forceAdType=b.force_ad_type;this.forceAdUrl=b.force_ad_url;this.Ha=b.freewheel_ad_tag;this.gender=bc(Nla,function(a){return a==b.ad_gender});
this.la=b.dbp;this.H=s1(b.afc_rm_fallback);this.Ya=!!b.mpu;this.F=s1(b.afv)&&!this.b;this.J=this.ea&&this.A;this.K=this.ea&&this.o&&!s1(b.no_afv_instream);this.G=s1(b.dclk);this.ga=s1(b.gpt_migration);this.ca=s1(b.forced_ad);this.M=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.Za=!!b.fqsf;this.O=s1(b.invideo)&&!this.b;this.R=s1(b.mpu)&&!this.b;this.aa=!!b.pla;this.Ga=s1(b.shortform);this.D=s1(b.sffb);this.ua=b.ad_language_iso639_2;this.maxDynamicAllocationAdTagLength=(0,window.parseInt)(b.max_dynamic_allocation_ad_tag_length,
10);(0,window.isNaN)(this.maxDynamicAllocationAdTagLength)&&(this.maxDynamicAllocationAdTagLength=2E3);this.g=(0,window.parseInt)(b.midroll_freqcap,10);(0,window.isNaN)(this.g)&&(this.g=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.Ia=b.pla_ad_tag;ha(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=s1(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;
this.ba=this.ea&&this.D&&!this.F;this.jb=this.F||this.ba;this.Ka=(0,window.parseInt)(b.ad_device,10);this.qa=b.tpas_video_id;this.Ma=b.tpas_partner_id;this.vmap=b.vmap;this.Vb=this.V.Vb;this.fb=b.post_ad_requests;this.showContentThumbnail=!0;this.Sa=Ola(b.serialized_ad_ux_config)};
Kla=function(a,b){if(B(C(a.dynamicAllocationAdTag)))return!1;var c=(a.o||a.A)&&a.G;a.D&&a.G&&(c=c||a.O||a.R);if(!c)return!1;c=a.J||a.K;if(!(c||a.D&&a.F))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ga?25:102);window.document.referrer&&(d+=xa("ref="+xa(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength};
Mla=function(a){B(C(a))||(new M(a)).b.get("channel")};
Ola=function(a){if(a)try{var b=eg(a);return new VM(b)}catch(c){}return null};
K3=function(a,b){F.call(this);this.C=a;this.o=new Hm(this);G(this,this.o);this.g=null;this.b=!1;this.o.N(b,"companionImpression",this.B);this.o.N(b,"companionClick",this.A)};
M3=function(a,b){F.call(this);this.b=a;this.H=b;this.D=a.b.getVideoData();this.A=[];this.g=0;this.o=window.NaN;this.B=this.C=this.F=0;this.G=!1;var c=y1(a).experiments;this.K=c.Z("enable_dynamic_ad_break")&&!!this.D.lengthSeconds&&600<this.D.lengthSeconds;this.M=c.b("dynamic_ad_break_pause_threshold_sec")||5;this.R=c.b("dynamic_ad_break_seek_threshold_sec")||120;this.K&&L3(this.b,this.J,this)};
N3=function(a){return(a.b.A?a.G:!!a.b.o&&0==a.b.o.o.length)&&1==a.b.getPresentingPlayerType()};
O3=function(a,b){var c=null!=Uj(y1(a.b).H).debugjs,d=a.D.videoId,e=a.D.eventId,f=a.g,k;k=a.A.length?a.A[a.A.length-1]:Math.max(a.H.g(),a.C);k=D()/1E3-k-a.B;c=Wj("/gen_204?"+Ug({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:D()/1E3,dab:a.A,paet:Math.max(a.H.g(),a.C),debug:c}),{});Yp(c)};
P3=function(a){F.call(this);this.b=a;this.g=window.NaN;this.B={};a=a.g;this.C=a.fadeInDurationMilliseconds;this.D=a.fadeInStartMilliseconds;this.o=a.fadeOutDurationMilliseconds;this.A=a.fadeOutStartMilliseconds;this.Tt()};
Q3=function(a,b){a.B[b]&&(pJ(a.b.b,[a.B[b]],void 0),delete a.B[b])};
R3=function(a,b,c,d){0>=c||((0,window.isNaN)(a.g)||Zi(a.g),c=D()+c,a.g=0==d?Sq(y(a.qv,a,b,c,100),0):Sq(y(a.pv,a,b,c,100),0))};
S3=function(a,b,c){a=z1(a.b).Db;b.setVolume(c*a)};
T3=function(a){P3.call(this,a)};
U3=function(a,b,c){F.call(this);this.b=a;this.D=b;this.B=c;this.o=-1;this.C=window.NaN;this.B&&0<this.b.g.g&&this.b.subscribe("endseeking",this.A,this)};
Qla=function(a,b){V3(a);0<b&&(a.C=Xi(y(a.A,a),1E3*b))};
V3=function(a){Zi(a.C);a.C=window.NaN};
X3=function(a,b){if(!a.B||!s3(b)&&!r3(b))return!1;var c=a.b.g.g;if(0>=c||0>=a.o)return!1;var d=D()/1E3,e=W3(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.o<=c};
W3=function(a,b){return r3(b)?a.b.b.getVideoData().lengthSeconds:r1(b.sb)};
Y3=function(a,b){F.call(this);this.J=this.b=null;this.M=[];this.O=window.NaN;this.o=b;this.G=[];this.A={};this.D={};this.g=a;var c=a.g,d=!c.isLiveStream&&Wh(this.o,function(a){return s3(a)||r3(a)});
this.B=new U3(this.g,this,d);this.C=c.applyFadeOnMidrolls?new P3(a):new T3(a);this.ga=new M3(this.g,this.B);this.ba=Wh(this.o,function(a){return q3(a)})};
Rla=function(a){a.G.length||(a.G=ne(a.o,function(a){return"unloaded"==a.A}),0==a.G.length?mq(a.g):(a.ba||mq(a.g),Z3(a)))};
Z3=function(a){if(a.G.length){var b=a.G.shift();b.subscribe("adBreakComplete",a.Eg,a);b.subscribe("adCompanionInitialized",a.Im,a);D3(b)}};
Sla=function(a,b){function c(a){return a&&5!=a.sb.b}
var d=jb(a.o,b),e=vb(a.o,d+1);return{previous:fb(vb(a.o,0,d),c),next:fb(e,c)}};
$3=function(a,b,c){var d=z3(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=r1(b.sb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.C.Nt(b,d);c=a.C.Mt(b,c);c=new fq(d,c,e);a.D[b.getId()]=c;a.g.wb([c]);a.C.Zo(b)}};
a4=function(a,b){var c=b.getId();a.D[c]&&(Q3(a.C,c),pJ(a.g.b,[a.D[c]],void 0),delete a.D[c])};
d4=function(a,b){if(p(b)){var c=a.pk(b);if(c)if(a.b==c&&!c.g&&c.isVisible)c.show();else{if(a.b){if(5==c.sb.b){a.b.g?a.M.push(b):c.show();return}a.xf(a.b)}if(X3(a.B,c))a.b=null,c=a.D[c.getId()],c.visible||(c.visible=!0,a.g.b.wb([c],1));else{5!=c.sb.b&&(a.b=c);c.subscribe("adBreakComplete",a.Em,a);c.subscribe("adCompanionInitialized",a.Im,a);if(c.g){1!=c.sb.b&&KC("video_to_ad",["apbs"]);b4(a.g);var d=a.B.g(),d={tfla:0<d?Math.floor(D()/1E3-d):0};c4(a.g.aa,"show_instream_ads",d)}a.C.rv(c);c.show()}}}};
e4=function(a,b,c){Y3.call(this,a,b);this.H=[];this.K=[];this.F=[];this.X=c;this.aa=window.NaN;this.R=a.g.g;var d=!y1(a).experiments.Z("disable_fetching_previous_nonadjacent_midrolls"),e=1E3*a.b.getCurrentTime(),d=d?null:ib(b,function(b){return a.b&&e>=z3(b)});
if(1<=c)for(c=0;c<b.length;c++){var f=b[c];if(Jla(f)&&f!=d){var k=new w3(f.o,f.wa,f.sb,f.C,!0);b[c]=k;this.H.push(f)}}this.ba||this.Hg()};
f4=function(a){Zi(a.aa);a.aa=window.NaN};
g4=function(a,b){Y3.call(this,a,b);this.aa=a;this.X=!0;this.H=[];this.da=1;this.K=0};
h4=function(a){if(null==a.b&&0<a.H.length){var b=a.H[0];b.isVisible?(a.X=a.F.G,a.ca=Math.ceil(D()/1E3),b.subscribe("adBreakComplete",a.R,a),a.b=b,b.show()):a.R()}else null!=a.b&&a.K++};
Tla=function(a,b){this.G=a;this.C=b;this.F=D();this.B=0;this.b=a.g;this.A={};this.D=new tla(a);var c=[];this.b.M&&this.b.o&&c.push("4_2");this.b.G&&(this.b.o&&c.push("1_2"),this.b.A&&c.push("1_2_1"),this.b.O&&c.push("1_1"),this.b.R&&c.push("1_3"));this.b.J&&c.push("2_2_1");this.b.K&&c.push("2_2");this.b.F&&c.push("2_1");(this.b.jb||this.b.H)&&c.push("2_3");this.b.aa&&c.push("14_14");this.g=c.join(",");this.o="";this.A.allowed=this.g;(c=this.b.excludedAds)&&(this.A.ex_ads=c)};
Ula=function(a){this.b=a};
c4=function(a,b,c){var d=i4,d=d||i4;Wh(d,function(a){return y1(this.b).experiments.Z(a)},a)&&(c=c||{},c.cdp=1,c["var"]=b,c.sdkv="h.3.0",a.b.log(c))};
j4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;E(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b};
l4=function(a,b,c){F.call(this);this.g=a;this.A=b;this.F=c;this.B=this.C=-1;this.b=k4(this.A.oe());a=this.A.oe();a.length&&(a=a[a.length-1],-1==a&&this.g.wb([this.b[a]]));0<this.g.g.g&&this.g.subscribe("endseeking",this.o,this)};
Vla=function(a,b){m4(a);0<b&&(a.B=Xi(y(a.o,a),1E3*b))};
m4=function(a){-1!=a.B&&(Zi(a.B),a.B=-1)};
k4=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 fq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new fq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
n4=function(){F.call(this)};
o4=function(a){F.call(this);this.b=a;this.g=null;this.o={};this.B={};a=a.g;this.C=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.G=a.fadeOutDurationMilliseconds;this.A=a.fadeOutStartMilliseconds;this.H=1E3*this.b.b.getVideoData().lengthSeconds;this.D=this.A+this.G;L3(this.b,this.Cv,this)};
p4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.H};
Wla=function(a){a=a.getAttribute("breakType");return!!a&&Wh(a.split(","),function(a){a=Sa(a);return"linear"==a})};
Xla=function(a){var b,c=3;b=!0;c=c?c:0;b=b?b:!1;var d=(0,window.parseFloat)(Pa(a/1E3,2,c));a=Math.floor(d/60);var e=Math.floor(a/60);a%=60;c=Pa(d%60,2,c);b=c=e||b?e+":"+Pa(a,2)+":"+c:a+":"+c;return 1==b.split(":")[0].length?"0".concat(b):b};
Zla=function(a,b){var c=Math.max(Math.abs(a.A),Math.abs(a.D));E(b,y(function(a){var d=Wh(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=Yla(this,a);
!d&&f&&(this.o[f]=a)},a));
return 0<Ub(a.o)};
Yla=function(a,b){var c=1E3*Math.round((b+a.D)/1E3),d=b+a.A,e=b+a.F;return p4(a,b)&&p4(a,c)&&p4(a,d)&&p4(a,e)?c:null};
q4=function(a,b,c,d){0>=c||(d=0==d?a.Bv:a.Av,c=D()+c,a.g=Sq(y(d,a,b,c,100),0))};
r4=function(a,b,c){a=z1(a.b).Db;b.setVolume(c*a)};
s4=function(a){F.call(this);this.D=this.o=this.A=this.F=this.g=null;this.O=this.K=this.H=!1;this.b=a;this.J=this.G=null;this.R={};this.aa=new Hm(this);this.C=new Hm(this);this.M=this.B=null};
$la=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);E(a.getElementsByTagName("VASTAdTagURI"),function(a){var d,f,k;"end"==b?(d="post",f=-1,k="postroll"):(d="mid",f=j4(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};
ama=function(a,b){var c=Fs(b),d=c.childNodes[0];if(!d)return b;var e=fb(Of(d),function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=fb(Of(e),function(a){return"Extensions"==a.localName}),k=f?Of(f):[],k=fb(k,function(a){return"YTBreakTime"==a.getAttribute("type")}),f=(f=f.removeChild(k))?Of(f):[],l=e,m=1;
E(f,function(a){a=a.getAttribute("timeOffset");a=$la(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});
d.removeChild(e)}f=a.B.Qs(d);f||(Nb(a.B),a.B=new n4);return e||f?Gs(c):b};
bma=function(a){var b=x1(a.b.g,y1(a.b),z1(a.b));b.ez=!0;b.kp=!1;b.Ns=10;b.Nm=a.B.bq();return b};
t4=function(a,b){var c=a.D?a.D.g():0,c={tfla:0<c?Math.floor(D()/1E3-c):0};c4(a.b.aa,b,c)};
cma=function(a,b){var c=jV(b),d=u4(b);if(v1(c,"rm")&&a.b.g.H)return a.A=new H2(a.b),v4(a,a.A),a.A.show(),!1;if(v1(c,"blockAllAds"))return a.g.Of(),a.A=new J2(a.b,a.g,1,!0),!1;if(v1(c,"hideMaster")&&14!=d)return a.A=new J2(a.b,a.g,0,!0),!1;c=a.g;14==d?(a.A=new j3(a.b,c),w4(a,b)):a.A=new z2(d,a.b,c,!0);a.A.show();a.H=!1;return!0};
w4=function(a,b){J1();var c;if(b){var d=b.A.b,e=x4(b);c=14==b2(aU(b)).b?16:4;d=0<d?new q1(e,d):new q1(e);c=new B1(d,oV(b),a.b,c)}O1(y1(a.b).experiments).then(ra(function(a){a&&E1(a)},c),r)};
z4=function(a,b){if(b&&"adLoadError"==b.Fb()){var c=a.b.g;!c.b&&c.jb&&(a.A=new H2(a.b),v4(a,a.A),a.A.show());y4(a)}};
A4=function(a){a.A&&(a.A.dispose(),a.A=null)};
u4=function(a){var b=CV(a);a=0<b.length?b.pop():sV(a);a=dma[a.toUpperCase()];return null!=a?a:0};
x4=function(a){a=a.A.b;return 0==a?1:0<a?2:-1==a?3:0};
y4=function(a){a.K||(mq(a.b),a.K=!0)};
v4=function(a,b){y1(a.b).experiments.Z("fix_vmap_afc_mpu_api_stats_ads")&&b.subscribe("AD_LOGGING_EVENT",y(a.VD,a,hla(a.g)))};
B4=function(a){m1.call(this,a);this.logEvent=this.Na="ad";this.g=this.o=this.C=null;this.R=this.X=!1;this.A=this.J=null;U.g=!0;U.C=!1;U.H=!0;U.D=!Qp();U.A=0;a=a.V.experiments.b("sdk_wrapper_levels_allowed");!(0,window.isNaN)(a)&&0<a&&(U.F=a);this.H=null;this.da={};this.ga={at:"0"};this.G=new c2(this.b);qw(this.b,this.G.element,4);this.ba=this.B=null;this.O=-1;this.aa=new Ula(this);this.K=new ix(this);G(this,this.K)};
z1=function(a){return C4(a.app)};
y1=function(a){return a.app.V};
D1=function(a,b,c){if(a.C){a=a.C;c=c||{};var d=(D()-a.F)/1E3;c.art=d;d=y1(a.G);d.ee&&(c.feature=d.fb);c.ad_flags=a.b.adFlags;(d=a.b.za)&&(c.cid=d);c.mt=a.C.getCurrentTime();(d=mr())&&(c.lact=d);(d=a.C.Yh())&&(c.len=d);a.b.Za&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.o=c.at;b=a.D;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=c&&c.ad_event?h2(c.ad_event):0;a=8==a||0!=a?!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);e={};e.device=b.b.g.Ka;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":kb(p1,Ya(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=ula(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=
h2(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=n2(b.b);f=z1(b.b);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.b.o,e.mt=null!=c&&null!=c.b?1E3*r1(c.b.sb):0):e.mt=Math.round(1E3*k.getCurrentTime());c=y1(b.b);e.ei=f.eventId;e.lact=mr();e.vol=Math.round(b.b.app.$a.Mb());e.vis=dG(c);c=D4(b.b);e.p_w=c.width;e.p_h=c.height;e.rt=D();if(c=(c=k.g?k.g.ma():null)&&pf(c)===window.document?Ws(c):null)e.pv_h=c.getHeight(),e.pv_w=c.cb();c=wh(e);
k=new M(y1(b.b).baseYtUrl+"api/stats/ads");hh(k,c);Yp(k.toString())}}};
E4=function(a,b,c){c=c||{};c.ad_error=b;D1(a,7,c)};
F4=function(a,b,c){a.app.$a.Aa(b,c)};
G4=function(a){a.X||(Yp(y1(a).baseYtUrl+"mac_204?action_fcts=1"),a.X=!0)};
H4=function(a){return a.o instanceof g4?a.o:null};
K4=function(a){if(y1(a).experiments.Z("legacy_ad_media_element"))if(a=a.G,Q(a.o).R)a=a.o.app.o;else{if(!a.b){var b;b=a.o.app;if(b.V.R){var c=b.o.Cl(),d=b.o.sk();b.ua=new pg(c.x,c.y,d.width,d.height);vI(b.B);b.o.Wf(!1);b.o.Xf(1);$H(b.o);b=b.o}else b=new I4(J4.getTag(void 0,void 0));a.b=b;a.b.Wn("video-stream");a.b.Wn("ad-video")}a=a.b}else a=XI(a.app).g;return a};
n2=function(a){if(!a.B){var b=hc(y1(a).J);y1(a).experiments.Z("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=z1(a).eventId;b.content_v=z1(a).videoId;b=new zA(b);b.b="adunit";a.B=new XH(b,2,new n1(b,""),a.app.D,y(a.app.O.Rb,a.app.O))}return a.B};
N4=function(a){if(a.B&&a.B==XI(a.app)){var b=a.app;a=a.B;L4(b);a!=b.g&&M4(b,b.g)}};
D4=function(a){return a.g.C?(a=a.app.D.Ja(),new pg(0,0,a.width,a.height)):et(a.Da())};
O4=function(a,b){A3(a,"bd");var c;c=a.g;var d=c.midrollPrefetchSize;c=c.isLiveStream?new g4(a,b):0<d?new e4(a,b,d):new Y3(a,b);a.o=c;Rla(a.o)};
R4=function(a){P4(a);var b=a.app;Xi(function(){Q4(b)},0)};
b4=function(a){a.R=!0;a.Y("command_redirect_controls",a,["play_pause"],void 0);a.A||a.pauseVideo()};
P4=function(a){f2(a.G);a.R=!1;rq(a);a.app.V.G.remove(n2(a).getVideoData().videoId)};
s2=function(a,b){switch(b){case 1:a.O=1;F4(a,"onAdStart");break;case 0:a.O=0,F4(a,"onAdEnd")}};
r2=function(a,b,c){c&&F4(a,"onAdInfoChange",c);a=a.app;1==b&&(a.H.g("vr"),a.ca||(a.ca=rC(a.Or,a)),NI(a.B),o1(a.H,S4(a)));c=a.V;"leanback"==c.b&&c.Qa&&a.b.Aa("onAdStateChange",b)};
A3=function(a,b){var c=b;"nl"==b&&(c=a.C,c.B++,c=c.B.toString());a.da[c]=D();"bs"!=c&&"fb"!=c||oq(a,a.da,a.ga)};
T4=function(a){return!!(a.g.D&&a.o&&1<a.o.o.length)};
L3=function(a,b,c){a.b.addEventListener("applicationplayerstatechange",b,c)};
U4=function(a){PM(this,a,ema)};
W4=function(a,b){F.call(this);this.A=!Q(a.b).experiments.Z("legacy_control_redirecting");this.g=a;a.b.addEventListener("onVolumeChange",this.yj,this);a.b.addEventListener("onCaptionsTrackListChanged",this.Zr,this);this.A&&a.b.addEventListener("captionschanged",this.Lr,this);this.B=!1;this.b=b;b.subscribe("proxyStateChange",this.ts,this);b.subscribe("remotePlayerChange",this.Ch,this);b.subscribe("remoteQueueChange",this.Jm,this);this.J=new wq;this.F=this.D=window.NaN;this.H=0;this.o={};this.C=null;
this.G=new Fm(this.JG,1E3,this);G(this,this.G);this.K=0;var c=this.g.b.Jb("captions","track");cc(c)||V4(this,c);this.Jm();this.Ch()};
X4=function(a,b){var c=a.g,d=a.g.b.getVideoData().lengthSeconds;c.J=b||0;c.b.Va("progresssync",b,d)};
V4=function(a,b){if(Y4(a)&&!a.B){if(b){var c={style:a.g.b.Jb("captions","displaySettings")};kc(c,b);a.b.bn(Z4(a),c)}else a.b.bn(Z4(a),null);a.o=Co(a.b).g}};
b5=function(a){a.b.pause();var b=Co(a.b);X4(a,wo(b));$4(a);a5(a,new wq(4))};
d5=function(a){a.b.play();c5(a);a5(a,new wq(8))};
e5=function(a,b){var c=a.g.b.dd();c?Fo(a.b,Z4(a),b,c.b,c.listId.toString()):Fo(a.b,Z4(a),b);a5(a,new wq(1))};
f5=function(a,b){if(b){var c=a.g.b.Jb("captions","tracklist",{Yq:1});c&&c.length?(a.g.b.gf("captions","track",b),a.A&&(a.B=!1)):(a.g.b.dk("captions"),a.B=!0)}else a.g.b.gf("captions","track",{})};
Y4=function(a){return Co(a.b).videoId==Z4(a)};
Z4=function(a){return a.g.b.getVideoData().videoId};
c5=function(a){$4(a);if(!a.b.isDisposed()){var b=Co(a.b);b.Wa()&&a5(a,new wq(8));X4(a,wo(b));a.D=Xi(y(function(){c5(this)},a),500)}};
$4=function(a){Zi(a.D);a.D=window.NaN};
g5=function(a){Zi(a.F);a.F=window.NaN};
a5=function(a,b){g5(a);var c=a.J;a.J=b;var d=a.g;d.O=b;d.b.Va("presentingplayerstatechange",new hG(b,c))};
h5=function(a){m1.call(this,a);this.Na=this.logEvent="remote";this.A={key:pk(),name:N("YTP_MDX_MY_COMPUTER")};this.o=null;this.C=[];this.H=this.K=this.g=null;this.G=[this.A];this.B=this.A;this.O=new wq;this.J=0};
i5=function(a,b,c){var d=c||a.A;b.unshift(a.A);a.G=b||[a.A];d=fb(b,function(a){return a.key==d.key});
a.B=d||a.A;a.app.$a.Aa("onMdxReceiversChange")};
j5=function(a,b){a.B=b||a.A;if(b.key==a.A.key)zp();else{var c=0,d="",e=a.b.dd();e&&(c=e.b,d=e.listId.toString());if(e=a.b.dd()){for(var f=[],k=0;k<e.A;k++)f[k]=e.Gb(k).videoId;e=f}else e=[a.b.getVideoData().videoId];c={videoIds:e,listId:d,videoId:a.b.getVideoData().videoId,index:c,currentTime:a.b.getCurrentTime()};Cp(b,c);Nb(a.o);a.o=null;a.load()}};
k5=function(a){yK.call(this,["div","html5-video-player",{tabindex:-1,id:a.X.attrs.id},["div","html5-video-container",{"data-layer":0}]]);Pi(this.element,"version",a.X.assets.js);this.app=a;this.J=null;this.o=this.pa["html5-video-container"];this.R=!!this.o;this.B=new pg(0,0,0,0);this.b=null;this.D=new pg(0,0,0,0);this.G=this.K=window.NaN;this.H=!1;this.F=window.NaN;a=a.V;this.C=null;this.addEventListener=y(this.element.addEventListener,this.element);this.removeEventListener=y(this.element.removeEventListener,
this.element);this.dispatchEvent=function(){};
a=Br(a)&&"blazer"!=a.g&&"mweb-polymer"!=a.g&&window.matchMedia?y(window.matchMedia,window):r;this.M=a("(max-width: 656px)");this.ca=a("(min-width: 657px)");this.ea=a("(min-width: 1294px) and (min-height: 630px)");this.ba=a("(min-width: 1720px) and (min-height: 980px)");this.X=a("(min-width: 1320px) and (min-height: 870px)");this.A=null;cj({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_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_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:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error 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.$a.addEventListener("initializingmode",this.DA,this);this.app.$a.addEventListener("videoplayerreset",this.FA,this);this.app.$a.addEventListener("videodatachange",this.fJ,this);this.app.$a.addEventListener("presentingplayerstatechange",
this.$z,this)};
gma=function(a,b){a.b=b;a.H=!1;if(!a.b.parentNode)try{Kf(a.o,a.b,0)}catch(d){var c="videoElement_: "+!!a.b+", containerElement: "+!!a.o+", containerElement.childNodes: "+!(!a.o||!a.o.childNodes)+", containerInitiallyTruthy: "+a.R+", isDisposed: "+a.isDisposed();throw Error(c);}a.A&&(a.A.disconnect(),a.A=null);!a.app.V.experiments.Z("no_detect_bad_extensions2")&&window.MutationObserver&&(a.A=new window.MutationObserver(y(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.D=new pg(0,0,0,0),l5(this))}},a)),a.A.observe(a.b,{attributes:!0}));
a.D=new pg(0,0,0,0);l5(a);p2(a);fma(a)};
fma=function(a){I(a.b,"video-stream");I(a.b,"html5-main-video");var b=a.app.V;b.Oa&&a.b.setAttribute("data-no-fullscreen",!0);b.sc&&(a.b.setAttribute("webkit-playsinline",""),a.b.setAttribute("playsinline",""));b.Ie&&a.S(a.b,"click",a.b.play,a.b)};
n5=function(a,b){if(a.b){var c=a.app.V;Vz&&(a.b.setAttribute("x-webkit-airplay","allow"),b.title?a.b.setAttribute("title",b.title):a.b.removeAttribute("title"));var d;c.rf&&b.videoId?d=b.Hc(c,"default.jpg"):c.experiments.Z("legacy_poster_behavior")||Cc&&!m5&&!Pp()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.b.poster=d)}c=b.Pd("yt:bgcolor");a.o.style.backgroundColor=c?c:"";a.K=gz(b.Pd("yt:stretch"));c=b.Pd("yt:crop");a.G="fullwidth"==c?window.Infinity:
"fullheight"==c?0:gz(c)};
p5=function(a){return(a=a.b)?o5(a.videoWidth,a.videoHeight):window.NaN};
my=function(a,b){var c=a.Ja(),d=q5(a,c,p5(a),b);return new pg((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
q5=function(a,b,c,d){(0,window.isNaN)(a.K)||(c=a.K);var e=c;(0,window.isNaN)(a.G)||(e=a.G);a=o5(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};
o5=function(a,b){return 1>Math.abs(r5*b-a)||1>Math.abs(r5/a-b)?r5:a/b};
s5=function(a){a=(a=XI(a.app))&&a.getPlayerState();return!a||O(a,2)||Hq(a)};
p2=function(a){var b="3"==a.app.V.A&&!a.H&&!s5(a);a.b.controls=b;a.b.tabIndex=b?0:-1};
l5=function(a){var b=p5(a),c=a.Ja(),d=1,e=Vz?!0:"3"!=a.app.V.A&&!(0,window.isNaN)(p5(a)),f=!1,k=q5(a,c,b),l=Wp()&&!a.app.V.experiments.Z("legacy_mie_display");s5(a)?(b=-c.height,Vz?b*=window.devicePixelRatio:LA&&(b-=window.screen.height),b=new pg(0,b,c.width,c.height),l&&(a.b.style.display="none")):(e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new pg((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,k.height)):b=new pg(0,0,c.width,c.height),l&&(a.b.style.display=""));rg(a.D,b)||(a.D=b,bt(a.b,
sg(b)),Rs(a.b,tg(b)),f=!0);c=new pg((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);rg(a.B,c)||(a.B=c,f=!0);Ls(a.b,"transform",1==d?"none":"scaleX("+d+")");return f};
t5=function(){this.b=[];this.g=[]};
u5=function(a,b,c){c=window.document.createElement(c?"audio":"video");sa(c,hma);om(c,"loadeddata",y(c.g,c));rA&&6<=zH&&om(c,"webkitbeginfullscreen",y(c.play,c));b||c.src||c.load();a.g.push(c);return c};
v5=function(a,b,c,d){uk.call(this);this.A=a;this.O=y(b,null);this.g=0;this.C=!1;this.o=new jf(window.NaN,window.NaN);this.b=new ix(this);G(this,this.b);b=d?4E3:3E3;this.F=new he(ra(this.zb,1,!1),b,this);G(this,this.F);this.G=new he(ra(this.zb,2,!1),b,this);G(this,this.G);this.J=new he(ra(this.zb,512,!1),0,this);G(this,this.J);this.M=c&&0<c.X.length?5E3:3E3;d||(this.K=this.b.S(a,"mouseover",this.Jv),this.b.S(a,"mousemove",this.bJ),this.b.S(a,"mouseleave",this.SB));Is?this.b.S(a,"keypress",this.CB):
this.b.S(a,"focusin",this.oz);this.B=this.b.S(a,"mousedown",this.Iv);this.D=this.b.S(a,"touchstart",this.Kv);this.R=null;this.zb(640,!0)};
w5=function(a){a.zb(4,!1);a.H&&(a.b.sa(a.H),a.H=null,a.K=a.b.S(a.A,"mouseover",a.Jv))};
x5=function(a,b){P.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.b=window.NaN;this.F=null};
z5=function(a,b){x5.call(this,a,b);this.H=null;this.C=this.D=this.A=this.o=0;this.B=-75;I(this.element,"ytp-tv-static");y5(this,a,b)};
A5=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};
y5=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=window.document.createElement("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.H=d;a.D=A5(b);a.C=A5(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}};
C5=function(a){P.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.o=a;this.A=[];void 0==B5&&(a=window.document.createElement("canvas"),B5=!(!a.getContext||!a.getContext("2d")));B5&&(this.b=new z5(1,1),this.b.Ba(this.element,0),G(this,this.b));a=ny(this.o).Ja();this.b&&y5(this.b,a.width,a.height)};
D5=function(a,b,c,d,e){e||(e=Q(a.o).D);a=d?{CPN:a.o.getVideoData().clientPlaybackNonce}:null;b=N(b,a).split(/\$(BEGIN|END)_LINK/);return["span",null,b[0],["br"],["a",{href:c,target:e?"_blank":null},b[2]],b[4]]};
E5=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&&Yp(c.data.follow_on_url)}};
jma=function(a,b,c){F5("add_to_watch_later_list",a,b,c)};
kma=function(a,b,c){F5("delete_from_watch_later_list",a,b,c)};
F5=function(a,b,c,d){fk(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Dc:{feature:b.feature||null,authuser:b.Ob||null,pageid:b.pageId||null},Ib:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.kR||null,add_to_playlists:b.aR||null,plid:Vi("PLAYBACK_ID")||null},context:b.context,onError:b.onError,tb:function(a,c){var d=c.result;d&&d.actions&&E5(d.actions);b.tb.call(this,a,c)},
Cc:b.Cc,withCredentials:!!d})};
G5=function(a,b){P.call(this,{I:"svg",U:{width:a,height:b,viewbox:"0 0 "+a+" "+b},P:[{I:"polyline",U:{stroke:"white",fill:"none",points:"{{points}}"}}]});this.o=a;this.b=b};
lma=function(a,b){for(var c=Math.max.apply(Math,b)||1,d=[],e=0;e<b.length;e++)d.push(e/b.length*a.o+","+a.b*(1-b[e]/c));return d.join(" ")};
H5=function(a,b){a.va("points",lma(a,b))};
I5=function(a){var b;b=["button",["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"];P.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.S(this.pa["html5-video-info-panel-close"],"click",this.oa);this.o=new G5(200,14);G(this,this.o);this.va("bandwidth_sparkline",this.o);this.B=new G5(200,14);G(this,this.B);this.va("live_latency_sparkline",this.B);this.A=new G5(200,14);G(this,this.A);this.va("buffer_health_sparkline",this.A);this.C=new G5(200,14);G(this,this.C);this.va("network_activity_sparkline",
this.C);this.D=new he(this.F,500,this);G(this,this.D);this.b=a};
J5=function(){F.call(this);this.g=null;this.C=this.B=!1;this.A=new H;G(this,this.A)};
jI=function(a,b){var c="";b&&(K5(a,b),c=Ez(b));a.jc()&&""==c||(c&&a.jc()!=c&&a.Yn(c),b&&b.b||a.load(),a.C||(a.addEventListener("volumechange",a.Dp,!1,a),a.C=!0))};
BI=function(a){a.Vf()&&a.seekTo(0);if(!a.jc()&&a.g){var b=Ez(a.g);a.Yn(b);a.g.b||a.load()}a.play();L5&&7<=zH&&qm(a,"playing",y(function(){Xi(y(this.Tp,this,this.getCurrentTime(),0),500)},a))};
K5=function(a,b){a.g&&Fz(a.g,b)||(a.g&&a.g.dispose(),a.g=b)};
zq=function(a){return fC(a.je(),a.getCurrentTime())};
$H=function(a){a.jc()&&(Vz&&0<a.getCurrentTime()&&a.seekTo(0),a.Ws(),a.load(),a.g&&a.g.b&&K5(a,null))};
M5=function(a){var b=a.je();return 0<eC(b)&&a.pf()?dC(b,a.getCurrentTime()):0};
KI=function(a){var b=a.pf();return window.Infinity==b?1:b?M5(a)/b:0};
LI=function(a){return{vct:a.getCurrentTime().toFixed(3),vd:a.pf().toFixed(3),vpl:bC(a.Vi()),vbu:bC(a.je()),vpa:a.bh(),vsk:a.Ov(),ven:a.Vf(),vpr:a.rk(),vrs:a.Be(),vns:a.Al(),vec:a.bb(),vvol:a.Fd()}};
N5=function(a,b,c){mc.call(this,b,a);this.b=c||null};
I4=function(a){J5.call(this);this.b=a;this.o={}};
O5=function(a){this.g=null;this.o=[];this.A=!1;this.b=null;this.$=a};
Q5=function(a){a.g||(a.g=P5.createMediaElementSource(a.b.ma()));return a.g};
cL=function(a){var b=P5.createGain();a.o.push(b);return b};
R5=function(a,b){var c=P5.createChannelSplitter(b);a.o.push(c);return c};
S5=function(a,b){var c=P5.createChannelMerger(b);a.o.push(c);return c};
T5=function(a){for(var b;0<a.o.length;)b=a.o.pop(),b.disconnect();a.g&&a.g.disconnect()};
U5=function(a,b,c,d){ix.call(this);this.S(a,"click",this.H);this.S(a,"dblclick",this.F);this.G=b;this.A=c;this.B=d||null;this.g=new he(this.D,200,this);G(this,this.g);this.b=!0;this.o=!1;this.C=null};
V5=function(a){yK.call(this,{I:"div",W:"ytp-ad-persistent-progress-bar-container",P:[{I:"div",W:"ytp-ad-persistent-progress-bar"}]});this.o=a;this.C=this.pa["ytp-ad-persistent-progress-bar"];this.b=null;this.S(a,"presentingplayerstatechange",this.B);this.oa();this.B()};
W5=function(a){P.call(this,{I:"div",W:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},P:[{I:"div",W:"ytp-bezel-icon",P:["{{icon}}"]}]});this.A=new he(this.B,10,this);G(this,this.A);this.o=new he(this.C,10,this);G(this,this.o);this.b=new he(this.D,500,this);G(this,this.b);this.$=a;this.oa()};
Y5=function(a){var b=us(a.$);yq(b)?(b=a.$.getVideoData(),b.xa&&!b.K?X5(a,Qh(),N("YTP_STOP")):X5(a,Jh(),N("YTP_PAUSE"))):O(b,64)||X5(a,Kh(),N("YTP_PLAY"))};
Z5=function(a,b,c){0>=b?(c=Th(),b=N("YTP_SCREENREADER_VOLUME_MUTED")):(c=c?Sh():Rh(),b=Math.floor(b)+"% "+N("YTP_SCREENREADER_VOLUME_SETTING"));X5(a,c,b)};
$5=function(a,b,c){c=c?Ah?{I:"div",fa:["ytp-icon","ytp-icon-fast-rewind"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Ah?{I:"div",fa:["ytp-icon","ytp-icon-fast-forward"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};b=N("YTP_PLAYBACK_SPEED_CHANGED",
{RATE:b});X5(a,c,b)};
X5=function(a,b,c){a.va("label",c||"");a.va("icon",b);je(a.o);je(a.b);a.A.start()};
a6=function(a,b){var c=["button",["ytp-button","ytp-cards-button"],{"aria-label":N("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0},["span","ytp-cards-button-icon-default",Ah?{I:"div",fa:["ytp-icon","ytp-icon-info-card"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}],
["span","ytp-cards-button-icon-shopping",Ah?{I:"div",fa:["ytp-icon","ytp-icon-shopping-card"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",W:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",W:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",W:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]];P.call(this,
c);this.$=a;this.C=b;this.b=null;this.o=new Ev(this,250,!0,100);G(this,this.o);this.oa();this.N("click",this.A);this.N("mouseover",this.B);Kv(this,!0)};
Kv=function(a,b){b?(a.element.title=N("YTP_DRAWER_HEADER_TEXT_2"),a.b=b6(a.C.g,a.element)):(a.b(),a.b=null,a.element.title="")};
c6=function(a,b,c,d,e){this.$=a;this.M=b;this.ga=!!e;this.ea=this.R=this.K=null;yK.call(this,c);this.H=new Ev(this,d,!0);G(this,this.H);yK.call(this,c);this.oa();this.C=null};
e6=function(a){a.C&&(window.document.activeElement&&Tf(a.element,window.document.activeElement)&&(Zf(a.C),a.C.focus()),a.C.removeAttribute("aria-expanded"),a.C=null);a.K&&(a.sa(a.K),a.sa(a.R),a.sa(a.ea))};
g6=function(a){return a.g&&3!=a.H.b};
h6=function(a,b,c){this.b=[];this.A=null;this.size=new lf(0,0);this.D=this.F=null;this.X=this.ba=0;c6.call(this,a,b,{I:"div",fa:["ytp-popup",c||null]},100,!0);this.N("keydown",this.JJ)};
i6=function(a,b){!le(b.element,"ytp-panel-animate-back")&&le(b.element,"ytp-panel-animate-forward");a.A&&a.A.Fa("size-change",a.Qh,a);a.A=b;a.A.subscribe("size-change",a.Qh,a)};
j6=function(a){bt(a.element,a.ba||"100%",a.X||"100%");var b=a.A;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.X.element.style.height="";var c=dt(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.ea&&(d=dt(b.pa["ytp-panel-header"]).height);b.X.element.style.height=c.height-d+"px";a.size=c};
l6=function(a,b){a.b.push(b);var c=a.A;c?k6(a,c,b):(i6(a,b),b.Ba(a.element))};
k6=function(a,b,c,d){m6(a);b.Fa("back",a.te,a);c.subscribe("back",a.te,a);i6(a,c);if(a.g){I(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ba(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;j6(a);bt(a.element,e);a.F=new he(ra(a.EG,b,c,d),20,a);a.F.start()}else c.Ba(a.element),b.detach()};
m6=function(a){a.F&&ie(a.F);a.D&&ie(a.D)};
o6=function(a,b,c,d){yK.call(this,a);this.priority=b;c&&n6(this,c);d&&this.Nb(d)};
p6=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{I:c?"a":"div",fa:b,U:a,P:[{I:"div",W:"ytp-menuitem-label",P:["{{label}}"]},{I:"div",W:"ytp-menuitem-content",P:["{{content}}"]}]}};
n6=function(a,b){a.va("label",b)};
q6=function(a,b,c,d,e){var f={I:"div",W:"ytp-panel"};if(c){var k="ytp-panel-title",l={I:"div",W:"ytp-panel-header",P:[{I:"button",fa:["ytp-button",k],P:[c]}]};if(e){var m="ytp-panel-options";l.P.push({I:"button",fa:["ytp-button",m],P:[d]})}f.P=[l]}yK.call(this,f);this.X=b;b.Ba(this.element);this.ea=!1;c&&(this.S(this.pa[k],"click",this.ga),this.ea=!0,e&&this.S(this.pa[m],"click",e));b.subscribe("size-change",this.ca,this);this.S(a,"fullscreentoggled",this.ca)};
r6=function(a,b,c,d,e){this.o=new yK({I:"div",W:"ytp-panel-menu",U:{role:"menu",id:b||null}});G(this,this.o);q6.call(this,a,this.o,c,d,e);this.b=[]};
s6=function(a,b,c){if(c)a.b.push(b),a.o.element.appendChild(b.element);else{c=Ab(a.b,b,mma);if(0<=c)return;c=~c;wb(a.b,c,0,b);Kf(a.o.element,b.element,c)}b.subscribe("size-change",a.R,a);a.o.Y("size-change")};
mma=function(a,b){return b.priority-a.priority};
t6=function(a){var b=p6({"aria-haspopup":!0});o6.call(this,b,a);this.N("keydown",this.b)};
u6=function(a,b){a.element.setAttribute("aria-haspopup",b)};
v6=function(a,b){this.b=!1;var c=p6({role:"menuitemcheckbox","aria-checked":this.b});o6.call(this,c,b,a,{I:"div",W:"ytp-menuitem-toggle-checkbox"});this.N("click",this.G)};
w6=function(a,b){a.b=b;a.element.setAttribute("aria-checked",a.b)};
z6=function(a,b,c){this.$=a;this.M=b;this.G=c;r6.call(this,a);this.F=new t6(8);G(this,this.F);s6(this,this.F,!0);this.F.N("click",this.sD,this);this.D=new t6(7);G(this,this.D);s6(this,this.D,!0);this.D.N("click",this.rD,this);this.C=new t6(6);G(this,this.C);s6(this,this.C,!0);this.C.N("click",this.pD,this);this.J=new v6(N("YTP_LOOP"),5);G(this,this.J);s6(this,this.J,!0);this.J.N("click",this.HD,this);this.K=new o6(p6({href:"{{href}}",target:"_blank"},void 0,!0),4,N("YTP_REPORT_ISSUE"));G(this,this.K);
s6(this,this.K,!0);this.K.N("click",this.IE,this);this.H=new t6(3);G(this,this.H);s6(this,this.H,!0);this.H.N("click",this.oD,this);b=new o6(p6(),2,N("YTP_SHOW_VIDEO_INFO"));G(this,b);s6(this,b,!0);b.N("click",this.WE,this);b="//"+EA(Q(this.$))+"/html5";b=new o6(p6({href:b,target:"_blank"},void 0,!0),1,N("YTP_HTML5_CONTEXT_MENU_LINK"));G(this,b);s6(this,b,!0);b.N("click",this.VB,this);this.B=new yK({I:"div",fa:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:!1,tabindex:1},P:["{{text}}"]});G(this,
this.B);this.B.N("click",this.UC,this);this.ba=new q6(a,this.B);G(this,this.ba);this.A=null;b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");gm&&zc(43)&&(b=!0);hA&&!zc(41)&&(b=!1);b&&(this.A=new P({I:"input",W:"ytp-html5-clipboard"}),G(this,this.A),this.A.Ba(this.element));this.S(a,"loopchange",this.GD);this.S(a,"videodatachange",this.uJ);x6(this);y6(this,this.$.getVideoData())};
A6=function(a,b){var c;if(a.A){a.A.element.value=b;a.A.element.select();try{c=window.document.execCommand("copy")}catch(d){}}c?a.G.vb():(a.B.Nb(b,"text"),l6(a.G,a.ba),Tq(a.B.element),a.A&&(a.A=null,x6(a)));return c};
y6=function(a,b){var c=Q(a.$),d=!c.F&&!!b.videoId;"play"!=c.g?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.g&&(c.fmt=Iu(b.g)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.za&&(c.partnerid=b.za),c=Wg("//support.google.com/googleplay/",c));a.C.gb(d&&b.allowEmbed);a.F.gb(d);a.D.gb(d&&!b.xa);a.K.Nb(c,"href")};
x6=function(a){var b=!!a.A;n6(a.H,N(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));u6(a.H,!b);n6(a.C,N(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));u6(a.C,!b);n6(a.F,N(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));u6(a.F,!b);n6(a.D,N(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));u6(a.D,!b)};
C6=function(a,b){this.B=a;this.o=new ix(this);G(this,this.o);this.G=null;h6.call(this,a,b);I(this.element,"ytp-contextmenu");B6(this)};
B6=function(a){kx(a.o);var b=Q(a.B);"gvn"!=b.g&&"gvn-experiment"!=b.g&&a.o.S(ny(a.B),"contextmenu",a.TC)};
D6=function(a){a.B.isFullscreen()?qw(a.B,a.element,9):a.Ba(window.document.body)};
E6=function(a){this.F=new ix(this);BK.call(this,a,{I:"div",fa:["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"],P:[{I:"div",W:"ytp-thumbnail-overlay-image"}]});this.H=a;this.G=this.pa["ytp-thumbnail-overlay-image"];this.B=new he(this.$n,0,this);G(this,this.B);var b=Q(a);b.experiments.Z("moving_thumbnails_cued_state")&&(this.o=new P({I:"img",W:"ytp-thumbnail-overlay-moving",U:{src:"{{url}}"}}),G(this,this.o),this.o.Ba(this.element),this.C=new he(this.UD,5500,this),G(this,this.C),this.D=new Ev(this.o,
500),G(this,this.D),this.S(this.o.element,"load",this.yJ),this.S(this.element,"mouseenter",this.wJ),this.S(this.element,"mouseleave",this.xJ));b.experiments.Z("mweb_autonav")&&this.S(a,"autonavcancelrequest",this.$n);this.$n();this.S(a,"presentingplayerstatechange",this.AJ);"detailpage"==b.b&&this.S(a,"videoplayerreset",this.zJ)};
F6=function(a,b,c){var d=Hq(c),e=!Q(b).experiments.Z("disable_new_pause_state3");b=O(c,2)&&!aJ(b)&&(!e||!TK(b.app));d||b?a.show():(Gv(a),O(c,1)||a.stop())};
G6=function(a,b,c,d,e,f,k){ix.call(this);this.b=a;this.H=c;this.F=d;this.A=e;this.g=f;this.G=k;this.o="";a=ra(this.B,!1);this.S(b,"mousedown",a);this.S(c.element,"mousedown",a);this.S(b,"keydown",this.C);this.S(c.element,"keydown",this.C);this.S(b,"keyup",this.D);this.S(c.element,"keyup",this.D)};
I6=function(a,b,c){var d=!1,e=Q(a.b);if(!e.Tb){switch(b){case 80:c&&(X5(a.g,Mh(),N("YTP_PREVIOUS")),a.b.fk(),d=!0);break;case 78:c&&(X5(a.g,Ih(),N("YTP_NEXT")),a.b.ek(),d=!0);break;case 74:X5(a.g,Ah?{I:"div",fa:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]});
a.b.Dd(-10*a.b.app.M);d=!0;break;case 76:X5(a.g,Ah?{I:"div",fa:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]});
a.b.Dd(10*a.b.app.M);d=!0;break;case 77:a.b.ed()?(a.b.Rf(),Z5(a.g,a.b.Mb(),!1)):(a.b.mute(),Z5(a.g,0,!0));d=!0;break;case 75:Y5(a.g);yq(us(a.b))?a.b.pauseVideo():a.b.Cd();d=!0;break;case 190:if(c){if(e.da)for(b=a.b.Xh(),c=a.b.app.M,e=0;e<b.length-1;e++)b[e]==c&&(d=b[e+1],a.b.$h(d,!0),$5(a.g,d,!1),d=!0)}else H6(a,1),d=!0;break;case 188:if(c){if(e.da)for(b=a.b.Xh(),c=a.b.app.M,e=b.length-1;1<=e;e--)b[e]==c&&(d=b[e-1],a.b.$h(d,!0),$5(a.g,d,!0),d=!0)}else H6(a,-1),d=!0;break;case 70:zr(a.b)&&(Cr(a.b),
d=!0)}d&&a.F.zb(2,!0)}return d};
K6=function(a,b,c,d){if(dJ(nq(a.b),"captions")){for(var e=a.b.Jb("captions","displaySettings"),f,k=0;k<J6.length;k++){var l=J6[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.b.Ln(d);return!0}return!1};
H6=function(a,b){if(O(us(a.b),4)){var c=a.b.getVideoData().g;c&&(c=c.video)&&a.b.Dd(b/(c.fps||30))}};
L6=function(a){var b=["ytp-large-play-button","ytp-button"],c=Q(a),d;c.O&&!c.Vb?d=Ah?{I:"div",fa:["ytp-icon","ytp-icon-large-play-button-hover"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},P:[{I:"path",W:"ytp-large-play-button-bg",U:{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"}},{I:"path",U:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{I:"path",U:{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"}}]}:(c.isMobile&&b.push("ytp-touch-device"),d=c.Vb?Ah?{I:"div",fa:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},P:[{I:"path",W:"ytp-large-play-button-bg",U:{"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"}},{I:"path",U:{d:"M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z",fill:"#fff"}}]}:Ah?{I:"div",fa:["ytp-icon","ytp-icon-large-play-button"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},P:[{I:"path",W:"ytp-large-play-button-bg",U:{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"}},{I:"path",U:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{I:"path",U:{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"}}]});P.call(this,{I:"button",fa:b,U:{"aria-label":"{{label}}"},P:[d]});this.b=a;this.B=!1;this.o=new Ev(this,250);G(this,this.o);this.S(a,"presentingplayerstatechange",this.C);c.experiments.Z("mweb_autonav")&&this.S(a,"autonavcanelplayerstate",this.A);this.A(us(a))};
M6=function(a){P.call(this,["div",["ytp-button","ytp-paid-content-overlay"]]);this.$=a;this.B=null;this.o=!1;this.A=new Ev(this,250,!1,100);G(this,this.A);this.b=null;this.S(a,"videodatachange",this.F)};
N6=function(a,b,c){var d=b.Gb(c),e=Q(a),f=d.Hc(e,"default.jpg");P.call(this,{I:"a",fa:["ytp-video-menu-item","ytp-button"],U:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},P:[{I:"div",W:"ytp-video-menu-item-index",P:[""+(c+1)]},{I:"div",W:"ytp-video-menu-item-now-playing",P:["\u25b6"]},{I:"div",W:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":null}},{I:"div",W:"ytp-video-menu-item-title",P:[d.title]},{I:"div",
W:"ytp-video-menu-item-author",P:[N("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]}]});this.b=a;this.o=c;this.N("click",this.A)};
O6=function(a,b){this.o=a;c6.call(this,a,b,{I:"div",W:"ytp-playlist-menu",U:{role:"dialog"},P:[{I:"div",W:"ytp-playlist-menu-header",P:[{I:"div",W:"ytp-playlist-menu-title",P:[{I:"a",W:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},P:["{{title}}"]},{I:"button",fa:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":N("YTP_CLOSE")},P:[Fh()]}]},{I:"div",W:"ytp-playlist-menu-subtitle",P:["{{subtitle}}"]}]},{I:"div",W:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.S(this.pa["ytp-playlist-menu-close"],
"click",this.vb);this.S(this.pa["ytp-playlist-menu-title-name"],"click",this.hF);this.B=this.D=this.b=null;this.F=this.pa["ytp-playlist-menu-items"];this.A=[]};
P6=function(a,b){a.b!=b&&(a.b&&a.b.Fa("shuffle",a.Tm,a),a.b=b,a.D=null,b?b.subscribe("shuffle",a.Tm,a):a.g&&a.oa())};
Q6=function(a,b,c){var d={I:"button",fa:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":N("YTP_PLAYLIST")},P:[{I:"div",W:"ytp-playlist-menu-button-icon",P:[Lh()]},{I:"div",W:"ytp-playlist-menu-button-text",P:["{{text}}"]}]};P.call(this,d);this.A=a;this.b=null;this.B=b.g;this.S(a,"videodatachange",this.C);this.S(a,"onPlaylistUpdate",this.C);this.S(a,"presentingplayerstatechange",this.o);this.S(a,"appresize",this.o);this.oa();
this.C();Mb(this,b6(this.B,this.element));this.N("click",y(c.cf,c,this.element,!1))};
R6=function(a,b){P.call(this,{I:"button",fa:["ytp-replay-button","ytp-button"],U:{title:N("YTP_REPLAY")},P:[Nh()]});this.b=a;this.S(a,"presentingplayerstatechange",this.A);this.N("click",this.o,this);var c=us(a);this.gb(O(c,2));b6(b.g,this.element)};
S6=function(a,b){var c={I:"div",W:"ytp-share-panel",U:{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},P:[{I:"button",fa:["ytp-share-panel-close","ytp-button"],U:{title:N("YTP_CLOSE")},P:[Fh()]},{I:"div",W:"ytp-share-panel-inner-content",P:[{I:"div",W:"ytp-share-panel-title",U:{id:"ytp-share-panel-title"},P:[N("YTP_SHARE")]},{I:"a",fa:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:"_blank",title:N("YTP_SHARE_LINK"),"aria-label":N("YTP_SHARE_LINK")},
P:["{{linkText}}"]},{I:"label",W:"ytp-share-panel-include-playlist",P:[{I:"input",W:"ytp-share-panel-include-playlist-checkbox",U:{type:"checkbox",checked:!0}},N("YTP_SHARE_WITH_PLAYLIST_2")]},{I:"div",W:"ytp-share-panel-loading-spinner",P:[Ph()]},{I:"div",W:"ytp-share-panel-service-buttons",P:["{{buttons}}"]},{I:"div",W:"ytp-share-panel-error",P:[N("YTP_SHARE_PANEL_ERROR")]}]}]};c6.call(this,a,b,c,250);this.o=a;this.A=b.g;this.b=[];this.G=this.pa["ytp-share-panel-inner-content"];this.D=this.pa["ytp-share-panel-close"];
this.S(this.D,"click",this.vb);Mb(this,b6(this.A,this.D));this.F=this.pa["ytp-share-panel-include-playlist-checkbox"];this.S(this.F,"click",this.Yv);this.B=this.pa["ytp-share-panel-link"];Mb(this,b6(this.A,this.B));this.N("click",this.hE);this.S(a,"videoplayerreset",this.oa);this.S(a,"fullscreentoggled",this.PJ)};
nma=function(a){switch(a){case "facebook":return Ah?{I:"div",fa:["ytp-icon","ytp-icon-share-facebook"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};case "googleplus":return Ah?{I:"div",fa:["ytp-icon","ytp-icon-share-googleplus"]}:{I:"svg",U:{height:"100%",version:"1.0",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{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 Ah?{I:"div",fa:["ytp-icon","ytp-icon-share-twitter"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};default:return null}};
T6=function(a){for(var b=0;b<a.b.length;b++)a.b[b].detach(),Nb(a.b[b]);a.b=[]};
U6=function(a,b,c,d){P.call(this,{I:"button",fa:["ytp-button","ytp-share-button"],U:{title:N("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"},P:[Ah?{I:"div",fa:["ytp-icon","ytp-icon-sharrow"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}]});
this.b=a;this.A=d;this.N("click",y(c.cf,c,this.element,!1));this.S(a,"videodatachange",this.o);this.S(a,"appresize",this.o);this.o();Mb(this,b6(b.g,this.element))};
V6=function(a){P.call(this,{I:"div",W:"ytp-webgl-spherical-control",U:{tabindex:0,"aria-label":N("YTP_SPHERICAL_CONTROL")},P:[Ah?{I:"div",fa:["ytp-icon","ytp-icon-spherical-control"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 50 50",width:"100%"},P:[{I:"circle",Ea:!0,U:{cx:"25",cy:"25",fill:"#fff",r:"24"}},{I:"path",Ea:!0,U:{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.b=a;this.ba=this.ea=this.o=this.A=null;this.B=[];this.M=!1;this.R=null;this.C=new qt(y(this.QJ,this),null);G(this,this.C);this.O=-1;this.X=this.D=this.G=this.F=this.J=this.H=0;this.K=!1;this.S(a,"videodatachange",this.bo);this.S(a,"onApiChange",this.bo);this.oa();this.bo()};
W6=function(a,b,c,d){a.J=df(b+a.J,-1,1);a.G=df(c+a.G,-1,1);a.X=df(d+a.X,-1,1);a.M||(a.M=!0,I(a.element,"ytp-dragging"),a.O=D(),a.C.start())};
X6=function(a){a.C.stop();a.M=!1;a.J=0;a.G=0;a.X=0;a.B=[];oe(a.element,"ytp-dragging")};
Y6=function(a,b,c,d,e,f){var k=f-a.O;a.F=(a.H*a.F+(b-e.yaw))/(k+a.H);a.D=(a.H*a.D+(c-e.pitch))/(k+a.H);a.O=f;a.H=k;b={shader:"Spherical",yaw:b,pitch:c,fov:d};(a=nq(a.b).g)&&qL(a,b)};
Z6=function(a,b){if(-1<a.B.indexOf(b))return!0;var c=!1;switch(b){case 37:case 65:W6(a,1,0,0);c=!0;break;case 39:case 68:W6(a,-1,0,0);c=!0;break;case 38:case 87:W6(a,0,1,0);c=!0;break;case 40:case 83:W6(a,0,-1,0);c=!0;break;case 107:W6(a,0,0,-1);c=!0;break;case 109:W6(a,0,0,1),c=!0}c&&a.B.push(b);return c};
$6=function(a,b){var c=a.B.indexOf(b);if(-1<c)switch(a.B.splice(c,1),b){case 37:case 65:W6(a,-1,0,0);break;case 39:case 68:W6(a,1,0,0);break;case 38:case 87:W6(a,0,-1,0);break;case 40:case 83:W6(a,0,1,0);break;case 107:W6(a,0,0,1);break;case 109:W6(a,0,0,-1)}0==a.B.length&&(a.M=!1)};
b7=function(a){P.call(this,{I:"div",W:"ytp-spinner",P:[{I:"span",W:"ytp-spinner-svg",P:[Ph()]},{I:"div",W:"ytp-spinner-message",P:[N("YTP_PLAYBACK_STALLED_AT_START")]}]});this.A=this.pa["ytp-spinner-message"];this.o=a;this.b=new he(this.show,500,this);this.S(a,"presentingplayerstatechange",this.D);this.S(a,"onFrescaStateChange",this.B);this.S(a,"playbackstalledatstart",this.C);a7(this,us(a))};
a7=function(a,b){var c;O(b,128)?c=0:!(c=O(b,16))&&(c=O(b,1))&&(c=dJ(nq(a.o),"fresca"),c=!(c&&c.loaded));c?a.b.start():a.oa()};
c7=function(a,b){P.call(this,{I:"button",fa:["ytp-airplay-button","ytp-button"],U:{title:N("YTP_AIRPLAY")},P:["{{icon}}"]});this.b=a;this.N("click",this.A);this.S(a,"airplayactivechange",this.o);this.S(a,"airplayavailabilitychange",this.o);this.o();Mb(this,b6(b.g,this.element))};
d7=function(a,b){yK.call(this,{I:"div",W:"ytp-storyboard",P:[{I:"div",W:"ytp-storyboard-filmstrip",P:[{I:"div",W:"ytp-storyboard-thumbnail"}]},{I:"div",W:"ytp-storyboard-lens",P:[{I:"div",W:"ytp-storyboard-lens-thumbnail"},{I:"div",W:"ytp-storyboard-lens-timestamp-wrapper",P:[{I:"span",W:"ytp-storyboard-lens-timestamp"}]}]}]});this.A=a;this.ba=b.g;this.M=new Fm(this.IB,250,this);G(this,this.M);this.F=ny(a).Ja().width;this.o=this.pa["ytp-storyboard-filmstrip"];this.ea=this.pa["ytp-storyboard-lens"];
this.ca=this.pa["ytp-storyboard-lens-thumbnail"];this.ga=this.pa["ytp-storyboard-lens-timestamp"];this.X=this.pa["ytp-storyboard-thumbnail"];Lf(this.X);this.G=0;this.R=!1;this.K=this.C=this.B=window.NaN;this.b=this.D=null;this.H=new ix(this);this.J=new Ev(this,100);this.S(this.A,"appresize",this.dA);this.S(this.A,"presentingplayerstatechange",this.BJ)};
e7=function(a,b){var c=!!a.b;c&&a.b.Fa("l",a.Uj,a);a.b=b&&MH(b);a.R=!!b&&b.xa;a.b?(c||(a.H.S(a.A,"videodatachange",a.CJ),a.H.S(a.A,"progresssync",a.uk),a.H.S(a.A,"videoplayerreset",a.uk)),a.b.subscribe("l",a.Uj,a),a.K=window.NaN,a.B=window.NaN,a.C=window.NaN,a.uk(),a.J.show(200)):(c&&kx(a.H),a.M.stop(),nx(a.G),Gv(a.J),a.J.stop())};
f7=function(a,b,c,d){var e=a.X.cloneNode(!1);a=hH(a.b,b,c);$1(e,a,c,d);return e};
g7=function(a){P.call(this,{I:"div",W:"ytp-storyboard-framepreview",P:[{I:"div",W:"ytp-storyboard-framepreview-img"}]});this.D=this.pa["ytp-storyboard-framepreview-img"];this.b=a;this.o=null;this.A=window.NaN;this.B=new ix(this);this.C=new Ev(this,100);this.S(this.b,"presentingplayerstatechange",this.DJ)};
i7=function(a,b){var c=!!a.o;a.o=b&&MH(b);a.o?(c||(a.B.S(a.b,"videodatachange",a.FJ),a.B.S(a.b,"progresssync",a.EJ),a.B.S(a.b,"appresize",a.eA)),a.A=window.NaN,h7(a),a.C.show(200)):(c&&kx(a.B),Gv(a.C),a.C.stop())};
h7=function(a){var b=a.b.getCurrentTime(),c=ny(a.b).Ja(),d=a.o.pg(c.width),b=nH(a.o,d,b);b!=a.A&&(a.A=b,jH(a.o,b,c.width),b=hH(a.o,b,c.width),$1(a.D,b,c.width,c.height))};
k7=function(a,b){P.call(this,{I:"button",fa:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},P:["{{icon}}"]});this.o=a;this.B=b;this.b=null;this.A=b6(b.g,this.element);this.C=new he(this.Qy,2E3,this);G(this,this.C);this.S(a,"fullscreentoggled",this.Ht);this.S(a,"presentingplayerstatechange",this.Vv);this.N("click",this.GJ);if(ai()){var c=ny(this.o);this.S(c,Zh(),this.Ur);this.S(c,Yh(window.document),this.HJ)}Q(a).za||j7(this);this.Vv();this.Ht(a.isFullscreen())};
j7=function(a){if(!a.b){var b=N(null!=Xh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.b=new c6(a.o,a.B,{I:"div",fa:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:0},P:[b[0],{I:"a",U:{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},P:[b[2]]},b[4]]},100,!0);G(a,a.b);a.b.subscribe("show",y(a.B.ll,a.B,
a.b));qw(a.o,a.b.element,4);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);a.A();a.A=null}};
l7=function(a,b,c){P.call(this,{I:"button",fa:["ytp-multicam-button","ytp-button"],U:{title:N("YTP_SWITCH_CAMERA"),"aria-haspopup":!0,"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},P:[Ah?{I:"div",fa:["ytp-icon","ytp-icon-switch-camera"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});this.o=a;this.b=!1;this.A=b.g;this.C=new he(this.D,0,this);G(this,this.C);this.N("click",y(c.cf,c,this.element,!1));this.S(a,"presentingplayerstatechange",ra(this.B,!1));this.S(a,"videodatachange",this.F);this.B(!0);Mb(this,b6(this.A,this.element))};
m7=function(a,b){this.A=new ix(this);G(this,this.A);var c={I:"div",W:"ytp-multicam-menu",U:{role:"dialog"},P:[{I:"div",W:"ytp-multicam-menu-header",P:[{I:"div",W:"ytp-multicam-menu-title",P:[N("YTP_SWITCH_CAMERA"),{I:"button",fa:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":N("YTP_CLOSE")},P:[Fh()]}]}]},{I:"div",W:"ytp-multicam-menu-items"}]};c6.call(this,a,b,c,250);this.S(this.pa["ytp-multicam-menu-close"],"click",this.vb);this.b=a;this.B=this.pa["ytp-multicam-menu-items"];this.o=[]};
n7=function(a,b,c,d,e,f,k,l){this.o=a;this.D=b;this.b=c;this.B=d;this.g=e;this.C=f;this.A=k;this.F=l};
o7=function(){this.o=null;this.B=this.b=0;this.A=new qt(this.g,null,this);G(this,this.A)};
p7=function(a,b){if("path"==b.I)return b.U.d;if(b.P)for(var c=0;c<b.P.length;c++){var d=b.P[c];if(d&&!w(d)&&(d=p7(a,d)))return d}};
t7=function(a,b,c){c=p7(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=Mq.b();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=q7(e),m=q7(c);r7(a,function(a){d.setAttribute("d",s7(l,m,a))},200)};
r7=function(a,b,c){a.o=b;a.B=Dq();a.b=c;a.g()};
q7=function(a){var b=[];a=a.match(oma);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};
s7=function(a,b,c){var d,e="";for(d=0;d<a.length;d++)var f=a[d],e=ia(f)?e+(f+(b[d]-f)*c):e+f;return e};
v7=function(a,b){var c=Q(a);P.call(this,{I:"button",fa:["ytp-mute-button","ytp-button"],U:c.ba?{title:"{{title}}"}:{"aria-disabled":!0,"aria-haspopup":!0},P:["{{icon}}"]});this.va("icon",Th());this.b=a;this.M=b.g;this.o=this.A=window.NaN;Q(this.b).O||(this.B=this.element.getElementsByTagName("path")[0],this.F=this.element.getElementsByTagName("svg")[1],this.H=this.B.getAttribute("d"));this.C=new o7;G(this,this.C);this.N("click",this.G);this.S(a,"appresize",this.D);this.S(a,"onVolumeChange",this.O);
var d=null;c.ba?Mb(this,b6(b.g,this.element)):(c=N("YTP_VOLUME_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/),d=new c6(a,b,{I:"span",fa:["ytp-popup","ytp-generic-popup"],U:{tabindex:0},P:[c[0],{I:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",target:"_blank"},P:[c[2]]},c[4]]},100,!0),G(this,d),d.subscribe("show",y(b.ll,b,d)),qw(a,d.element,4));this.K=d;this.D(ny(a).Ja());u7(this,a.Mb(),a.ed())};
u7=function(a,b,c){var d=c?0:b/100;b=Q(a.b);if(b.O)d=0==d?Th():0<d&&.5>d?Sh():Rh(),d!=a.J&&(a.va("icon",d),a.J=d);else if(d=d?.5*Math.ceil(d/.5):-.5,a.o!=d){var e=a.A;(0,window.isNaN)(e)?w7(a,d):r7(a.C,y(function(a){w7(this,e+(this.o-e)*a)},a),250);
a.o=d}b.ba&&(a.va("title",c?N("YTP_UNMUTE"):N("YTP_MUTE")),x7(a.M))};
w7=function(a,b){a.A=b;var c=a.H,d=df(2*b,0,1);d&&(c+=" "+s7(pma,qma,d),(d=df(2*(b-.5),0,1))&&(c+=" "+s7(rma,sma,d)));a.B.setAttribute("d",c);a.F.style.opacity=Math.max(b/-.5,0)};
y7=function(a,b){P.call(this,{I:"button",fa:["ytp-pip-button","ytp-button"],U:{title:N("YTP_PIP")},P:[Ah?{I:"div",fa:["ytp-icon","ytp-icon-pip"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}]});this.b=
a;this.N("click",this.o);Mb(this,b6(b.g,this.element))};
A7=function(a,b){P.call(this,{I:"button",fa:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},P:["{{icon}}"]});this.b=a;this.o=null;this.B=b.g;this.A=null;this.C=new o7;G(this,this.C);this.S(a,"fullscreentoggled",this.D);this.S(a,"presentingplayerstatechange",this.F);this.S(a,"videodatachange",this.D);z7(this,us(a));this.N("click",this.G,this)};
B7=function(a){switch(a){case 1:return Kh();case 2:return Jh();case 3:return Nh();case 4:return Qh();default:return null}};
z7=function(a,b){var c,d=vs(a.b.getVideoData()),e=!1;yq(b)?c=d?4:2:O(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.o!=c){var f;switch(c){case 2:f=N("YTP_PAUSE");break;case 3:f=N("YTP_REPLAY");break;case 1:f=N("YTP_PLAY");break;case 4:f=N("YTP_STOP")}3==c?(a.A||(a.A=b6(a.B,a.element)),a.update({title:f,label:null,icon:B7(c)})):(a.A&&(a.A(),a.A=null),a.update({title:null,label:f}),(d=B7(c))&&a.o&&3!=a.o&&!Q(a.b).O?t7(a.C,a.element,d):a.va("icon",d));x7(a.B);a.o=c}};
C7=function(a,b,c){var d,e;c?(d="ytp-next-button",e=Ih()):(d="ytp-prev-button",e=Mh());P.call(this,{I:"a",fa:[d,"ytp-button"],U:{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},P:[e]});this.b=a;this.J=b.g;this.A=c;this.o=this.F=null;this.H=!1;this.D=this.G=this.B=null;this.C=!1;this.S(a,"fullscreentoggled",this.dh);this.S(a,"videodatachange",this.dh);
this.S(a,"onPlaylistUpdate",this.dh);this.A||this.S(a,"appresize",this.Wv);this.dh()};
D7=function(a){a.o&&a.o.Fa("shuffle",a.dh,a)};
E7=function(a){return!!a.o&&!a.A&&3<=a.b.getCurrentTime()&&2!=a.b.getPresentingPlayerType()};
F7=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=Q(a.b),d=cJ(a.b),e=a.A&&qJ(a.b);if(a.C)b.title=N("YTP_REPLAY");else if(d){var f=null;a.o&&(f=a.o.Gb(a.A?tK(a.o):uK(a.o)));if(f){if(f.videoId){var k=a.o.listId;b.url=c.getVideoUrl(f.videoId,k?k.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?Uq(f.lengthSeconds):null;b.preview=f.Hc(c,"default.jpg")}b.title=N(a.A?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.F.R&&a.F.R.length&&(f=EK(a.F.R[0]),b.url=f.Fl(c),b.text=
f.title,b.duration=f instanceof vH?Uq(f.lengthSeconds):null,b.preview=f.Hc(c,"default.jpg")),b.title=N("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.H=!!b.url;e||d||a.C?a.B||(a.B=b6(a.J,a.element),a.G=a.N("click",a.LJ,a)):a.B&&(a.B(),a.B=null,a.sa(a.G),a.G=null);x7(a.J)};
H7=function(a,b){yK.call(this,{I:"div",W:"ytp-progress-bar-container",U:{"aria-disabled":!0},P:[{I:"div",W:"ytp-progress-bar",U:{tabindex:0,role:"slider","aria-label":N("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},P:[{I:"div",W:"ytp-progress-bar-padding"},{I:"div",W:"ytp-progress-list",P:[{I:"div",fa:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",W:"ytp-load-progress"},{I:"div",W:"ytp-hover-progress"},
{I:"div",W:"ytp-clip-start-exclude"},{I:"div",W:"ytp-clip-end-exclude"},{I:"div",W:"ytp-ad-progress-list"},{I:"div",W:"ytp-marker-crenellation-list"},{I:"div",W:"ytp-marker-progress-list"}]},{I:"div",W:"ytp-scrubber-container",P:[{I:"div",fa:["ytp-scrubber-button","ytp-swatch-background-color"],P:[{I:"div",W:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",W:"ytp-bound-time-left",P:["{{boundTimeLeft}}"]},{I:"div",W:"ytp-bound-time-right",P:["{{boundTimeRight}}"]},{I:"div",W:"ytp-clip-start",U:{title:N("YTP_WATCH_ALL")},
P:["{{clipstarticon}}"]},{I:"div",W:"ytp-clip-end",U:{title:N("YTP_WATCH_ALL")},P:["{{clipendicon}}"]}]});this.va("clipstarticon",Eh());this.va("clipendicon",Dh());this.o=a;this.Ca=b.g;this.na=!1;this.B=this.Oa=0;this.R=1;this.Sa=this.F=0;this.C=window.NaN;this.Ga=!1;this.G=this.X=0;this.qb=this.pa["ytp-ad-progress-list"];this.ub=this.pa["ytp-marker-progress-list"];this.Ha=this.pa["ytp-marker-crenellation-list"];this.M={};this.da={};this.J=window.Infinity;var c=b.g;this.ba=this.pa["ytp-clip-end"];
Mb(this,b6(c,this.ba));this.ha=new S1(this.ba,!0);G(this,this.ha);this.ha.subscribe("hoverstart",this.Nr,this);this.ha.subscribe("hoverend",this.Mr,this);this.S(this.ba,"click",this.Hj);this.za=this.pa["ytp-clip-end-exclude"];this.xb=this.pa["ytp-clip-start-exclude"];this.K=0;this.ea=this.pa["ytp-clip-start"];Mb(this,b6(c,this.ea));this.ia=new S1(this.ea,!0);G(this,this.ia);this.ia.subscribe("hoverstart",this.Nr,this);this.ia.subscribe("hoverend",this.Mr,this);this.S(this.ea,"click",this.Hj);this.Ka=
this.pa["ytp-load-progress"];this.ga=0;this.Db=this.pa["ytp-play-progress"];this.ca=this.pa["ytp-hover-progress"];this.D=0;this.fb=this.pa["ytp-progress-bar"];this.A=null;this.Ya=this.pa["ytp-scrubber-button"];this.yb=this.pa["ytp-scrubber-container"];this.la=new jf;this.Ia=new Z1;this.b=new V1(0,0);this.H=this.qa=!1;this.Za=null;this.S(a,"presentingplayerstatechange",this.Wz);this.S(a,"videodatachange",this.Xv);this.S(a,"videoplayerreset",this.Vz);this.S(a,"cuerangesadded",this.cu);this.S(a,"cuerangesremoved",
this.fG);this.S(a,"cuerangemarkersupdated",this.cu);this.S(a,"onPlaybackQualityChange",this.bA);G7(this,a.getVideoData(),!0)};
L7=function(a){if(a.B){var b=a.o.Sf(),c=new V1(b.seekableStart,b.seekableEnd),d=Y1(c,b.loaded,0),b=Y1(c,b.current,0),e=a.b.g!=c.g||a.b.b!=c.b;a.b=c;I7(a,b,d);e&&J7(a);K7(a)}};
G7=function(a,b,c){var d=!!b&&PH(b);a.qa=d&&b.K;M7(a,mJ(a.o));c&&(d?(c=b.clipEnd,a.K=b.clipStart,a.J=c,N7(a),I7(a,a.D,a.ga)):a.Hj(),b=a.Ca,1==b.b&&b.Ic());L7(a)};
O7=function(a){return!!a&&PH(a)&&!!a.g&&a.g.video.isAccelerated&&a.g.video.g};
P7=function(a,b){a.Ga=b;K(a.Ka,"ytp-fast-load",b)};
Q7=function(a,b,c,d){b=df(b,0,a.H?60:40);a.F=b;var e=a.R;a.R=b/(a.H?60:40)*(Math.max(W1(a.b)/a.B,1)-1)+1;b=a.B*a.R;a.G=df(d*b-c,0,b-a.B);e!=a.R&&J7(a)};
J7=function(a){var b=R7(a),c=-b.o/b.b,d=(-b.o+b.width)/b.b,e=Of(a.Ha),f=0;if(a.F>.2*(a.H?60:40))for(var k=W1(a.b)/60*d,l=Math.ceil(W1(a.b)/60*c);l<k;l++){var m=e[f];m||(m=window.document.createElement("div"),a.Ha.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/W1(a.b)-c)*b.b+"px"}b=a.qa?a.b.b:0;a.update({boundTimeLeft:Uq(X1(a.b,c)-b),boundTimeRight:Uq(X1(a.b,d)-b)});for(c=e.length-1;c>=f;c--)Lf(e[c]);
a.element.style.height=a.F+(a.H?8:5)+"px";a.Y("height-change",a.F);a.Ya.style.height=a.F+(a.H?20:13)+"px";for(var n in a.M)S7(a,a.M[n],a.da[n]);N7(a);I7(a,a.D,a.ga)};
R7=function(a){var b=a.la.x,c=a.B*a.R,b=df(b,0,a.B);a.Ia.update(b,a.B,-a.G,-(c-a.G-a.B));return a.Ia};
I7=function(a,b,c){a.D=b;a.ga=c;var d=R7(a),e=a.b.b,f=X1(a.b,a.D);a.update({ariamin:Math.floor(a.b.g),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:N("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:Uq(f),DURATION:Uq(e)})});var e=Y1(a.b,a.K,0),k=Y1(a.b,a.J,1),f=df(b,e,k);c=a.Ga?1:df(c,e,k);k=b*d.b+d.o;a.Ya.style.display=0<=k&&b<=d.width?"":"none";Ls(a.yb,"transform","translateX("+k+"px)");T7(a,a.Db,d,e,f);T7(a,a.Ka,d,e,c)};
T7=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.b+c.o,0)+"px";d=Math.min((e-d)*c.b+c.o,c.width);f||Q(a.o).isMobile?(b.style.width=d+"px",Ns(b,"transform")):Ls(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
N7=function(a){var b=a.K>a.b.g,c=0<a.b.b&&a.J<a.b.b;K(a.element,"ytp-clip-start-enabled",b);K(a.element,"ytp-clip-end-enabled",c);b=b?Y1(a.b,a.K,0):0;c=c?Y1(a.b,a.J,1):1;a.ea.style.left=Math.round(1E3*b)/10+"%";a.ba.style.left=Math.round(1E3*c)/10+"%";a.xb.style.width=Math.round(1E3*b)/10+"%";a.za.style.left=Math.round(1E3*c)/10+"%";a.za.style.width=Math.round(1E3*(1-c))/10+"%"};
K7=function(a){var b=R7(a);T7(a,a.ca,b,a.D,b.g);K(a.ca,"ytp-hover-progress-light",b.g>a.D)};
S7=function(a,b,c){var d=R7(a),e=Y1(a.b,b.start/1E3,0),f,k=gq(b)/d.width;switch(b.style){case "ytp-chapter-marker":f=e+k/2;e-=k/2;break;default:f=Y1(a.b,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=df(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}T7(a,c,d,e,f,!0);c.className=b.style};
U7=function(a,b){var c=b.getId();a.M[c]==b&&(Lf(a.da[c]),delete a.M[c],delete a.da[c])};
M7=function(a,b){b?a.A||(a.element.removeAttribute("aria-disabled"),a.A=new S1(a.fb,!0),a.A.subscribe("hovermove",a.yE,a),a.A.subscribe("hoverend",a.xE,a),a.A.subscribe("dragstart",a.wE,a),a.A.subscribe("dragmove",a.AE,a),a.A.subscribe("dragend",a.zE,a),a.Za=a.N("keydown",a.NJ)):a.A&&(a.element.setAttribute("aria-disabled",!0),a.sa(a.Za),a.A.cancel(),a.A.dispose(),a.A=null)};
W7=function(a){P.call(this,{I:"div",W:"ytp-remote",P:[{I:"div",W:"ytp-remote-display-status",P:[{I:"div",W:"ytp-remote-display-status-icon",P:[Bh()]},{I:"div",W:"ytp-remote-display-status-text",P:["{{statustext}}"]},{I:"div",W:"ytp-remote-display-status-receiver",P:["{{receiver}}"]}]}]});this.b=new Ev(this,250);G(this,this.b);this.o=a;this.S(a,"presentingplayerstatechange",this.A);V7(this,us(a))};
V7=function(a,b){if(3==a.o.getPresentingPlayerType()){var c;c=O(b,128)?N("YTP_MDX_PLAYER_ERROR"):N("YTP_MDX_STATUS_CONNECTED");var d=a.o.Jb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.b.show()}else Gv(a.b)};
X7=function(a,b,c){P.call(this,{I:"button",fa:["ytp-remote-button","ytp-button"],U:{title:N("YTP_MDX_TOOLTIP")},P:["{{icon}}"]});this.$=a;this.B=c;this.o=null;this.S(a,"onMdxReceiversChange",this.b);this.S(a,"presentingplayerstatechange",this.b);this.S(a,"appresize",this.b);this.b();this.N("click",this.A,this);Mb(this,b6(b.g,this.element))};
Y7=function(a,b){v6.call(this,N("YTP_ANNOTATIONS"),5);this.B=b;this.$=a;this.o=!1;this.S(a,"videodatachange",this.A);this.S(a,"onApiChange",this.A);this.subscribe("select",this.C,this);this.A()};
Z7=function(a,b,c,d,e,f){var k=p6({"aria-haspopup":!0});o6.call(this,k,b,a);this.b=d;this.F=null;this.o={};this.C=new r6(c,void 0,a,e,f);G(this,this.C);this.N("keydown",this.OJ);this.N("click",this.open)};
$7=function(a,b){for(var c=a.C,d=0;d<c.b.length;d++)c.b[d].Fa("size-change",c.R,c);c.b=[];Jf(c.o.element);c.o.Y("size-change");for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.o[f],l=f==a.F;l&&(d=!0);k&&k.priority==-e?(n6(a.o[f],a.od(f,!0)),delete a.o[f]):(k=new o6({I:"div",fa:["ytp-menuitem"],U:{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},P:[{I:"div",fa:["ytp-menuitem-label"],P:["{{label}}"]}]},-e,a.od(f,!0)),k.N("click",y(a.dE,a,f)));c[f]=k;s6(a.C,k,!0)}d||(a.F=null);for(f in a.o)a.o[f].dispose();
a.o=c};
a8=function(a,b){Z7.call(this,N("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.$=a;this.G=new P({I:"div",P:[{I:"span",P:[N("YTP_AUDIO_TRACK_TITLE")]},{I:"span",W:"ytp-menuitem-label-count",P:["{{content}}"]}]});n6(this,this.G);this.H={};this.A=!1;this.S(a,"videodatachange",this.D);this.S(a,"onPlaybackAudioChange",this.D);this.D()};
b8=function(a,b){v6.call(this,N("YTP_AUTOPLAY"),6);this.D=b;this.$=a;this.B=!1;this.o=[];this.S(a,"presentingplayerstatechange",this.A);this.subscribe("select",this.F,this);this.A()};
c8=function(a,b){Z7.call(this,N("YTP_QUALITY_TITLE"),1,a,b);I(this.C.element,"ytp-quality-menu");this.$=a;this.H={};this.D="unknown";this.A=!1;this.S(a,"videodatachange",this.B);this.S(a,"videoplayerreset",this.B);this.S(a,"onPlaybackQualityChange",this.G);this.B()};
d8=function(a,b,c){var d=(a=a.H[b])?a.qualityLabel:(d=Ny[b])?d+"p":N("YTP_AUTO");c={I:"span",fa:c,P:[d]};var e;a&&a.isAccelerated&&a.g?c.P.push({I:"div",W:"ytp-menuitem-badge-container",P:[{I:"svg",U:{fill:"#00838f",height:"11px",viewBox:"0 0 48 48",width:"11px"},P:[{I:"path",U:{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"}},{I:"path",U:{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"}}]}]}):"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&(e="HD");e&&(c.P.push(" "),c.P.push({I:"sup",W:"ytp-swatch-color",P:[e]}));return c};
e8=function(a,b){Z7.call(this,N("YTP_MDX_TITLE"),0,a,b);this.$=a;this.A=!1;this.G={};this.S(a,"onMdxReceiversChange",this.D);this.S(a,"presentingplayerstatechange",this.D);this.D()};
f8=function(a,b){Z7.call(this,N("YTP_SPEED_TITLE"),4,a,b);this.$=a;this.A=!1;this.B=null;this.S(a,"presentingplayerstatechange",this.Zv);this.Zv()};
h8=function(a,b,c,d){var e=N("YTP_VIDEO_SUBTITLES_OVERRIDE");Z7.call(this,g8(d),a,b,c,e,y(this.QF,this));I(this.element,"ytp-subtitles-options-menu-item");this.G=d.option.toString();this.H=Ib(d.options,this.aw,this);this.A=new r6(b,void 0,e);G(this,this.A);a=new o6({I:"div",W:"ytp-menuitemtitle",P:[N("YTP_VIDEO_SUBTITLES_OVERRIDE_DESC")]},0);G(this,a);s6(this.A,a,!0);this.D=new o6({I:"div",W:"ytp-menuitem",U:{role:"menuitemradio",tabindex:0},P:[{I:"div",W:"ytp-menuitem-label",P:[N("YTP_ON")]}]},-1);
G(this,this.D);s6(this.A,this.D,!0);this.S(this.D.element,"click",ra(this.lt,!0));this.B=new o6({I:"div",W:"ytp-menuitem",U:{role:"menuitemradio",tabindex:0},P:[{I:"div",W:"ytp-menuitem-label",P:[N("YTP_OFF")]}]},-2);G(this,this.B);s6(this.A,this.B,!0);this.S(this.B.element,"click",ra(this.lt,!1));$7(this,Ki(d.options,this.aw))};
g8=function(a){return(a.message?N(a.message):a.text)||""};
i8=function(a,b){r6.call(this,a,void 0,N("YTP_OPTIONS"));this.A={};for(var c=0;c<J6.length;c++){var d=J6[c],e=new h8(-c,a,b,d);G(this,e);e.subscribe("settingChange",this.B,this);this.A[d.option.toString()]=e;s6(this,e,!0)}c=new o6(p6(),-J6.length,N("YTP_RESET"));G(this,c);c.N("click",y(this.B,this,"reset",!0));s6(this,c,!0)};
j8=function(a,b){for(var c in b){var d=a.A[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.o[e]&&(d.Ce(e),d.D.element.setAttribute("aria-checked",!f),d.B.element.setAttribute("aria-checked",f))}}};
k8=function(a,b){Z7.call(this,N("YTP_AUTO_TRANSLATE"),0,a,b);this.A={}};
l8=function(a,b){Z7.call(this,N("YTP_SUBTITLES"),3,a,b,N("YTP_OPTIONS"),y(this.BG,this));this.$=a;this.H=!1;this.A={};this.G=new P({I:"div",P:[{I:"span",P:[N("YTP_SUBTITLES")]},{I:"span",W:"ytp-menuitem-label-count",P:["{{content}}"]}]});G(this,this.G);n6(this,this.G);this.D=new k8(a,b);G(this,this.D);this.D.subscribe("select",this.mF,this);this.B=new i8(a,b);G(this,this.B);this.B.subscribe("settingChange",this.TJ,this);this.S(a,"videodatachange",this.ji);this.S(a,"onApiChange",this.ji);this.S(a,
"onCaptionsTrackListChanged",this.ji);this.S(a,"captionschanged",this.ji);this.ji()};
m8=function(a,b){Z7.call(this,N("YTP_THREED_SHORT"),7,a,b);this.$=a;this.A=!1;this.S(a,"videodatachange",this.D);this.B=null;this.D()};
n8=function(a,b){this.o=a;this.B=new r6(a);G(this,this.B);h6.call(this,a,b,"ytp-settings-menu");this.J=this.G=null;this.ca=!1;l6(this,this.B)};
p8=function(a){if(!a.ca){a.ca=!0;var b=new c8(a.o,a);G(a,b);b=new l8(a.o,a);G(a,b);b=new Y7(a.o,a);G(a,b);Q(a.o).da&&(b=new f8(a.o,a),G(a,b));b=new m8(a.o,a);G(a,b);Q(a.o).yb&&(b=new b8(a.o,a),G(a,b));b=new a8(a.o,a);G(a,b);Q(a.o).B&&(a.J=new e8(a.o,a),G(a,a.J));o8(a.G,a.B.b.length)}};
q8=function(a,b){s6(a.B,b);o8(a.G,a.B.b.length)};
r8=function(a,b){a.g&&1>=a.B.b.length&&a.oa();var c=a.B;qb(c.b,b);b.Fa("size-change",c.R,c);c.o.element.removeChild(b.element);c.o.Y("size-change");o8(a.G,a.B.b.length)};
s8=function(a,b,c){P.call(this,{I:"button",fa:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":!0,"aria-owns":"ytp-main-menu-id",title:N("YTP_SETTINGS")},P:[Oh()]});this.o=c;this.$=a;this.B=!0;this.N("click",this.C);this.S(a,"onPlaybackQualityChange",this.b);this.S(a,"videodatachange",this.b);this.S(a,"webglsettingschanged",this.b);this.S(a,"appresize",this.A);Mb(this,b6(b.g,this.element));this.b();this.A(ny(a).Ja())};
o8=function(a,b){a.B=!!b;a.A(ny(a.$).Ja())};
t8=function(a,b){P.call(this,{I:"button",fa:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},P:["{{icon}}"]});this.b=a;this.B=b.g;this.A=null;this.C=new o7;G(this,this.C);this.S(a,"sizestylechange",this.o);this.S(a,"fullscreentoggled",this.o);this.S(a,"presentingplayerstatechange",this.o);this.o();this.N("click",this.D);Mb(this,b6(this.B,this.element))};
u8=function(a,b){P.call(this,{I:"button",fa:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:N("YTP_SUBTITLES_TOOLTIP")},P:[Gh()]});this.o=a;this.S(a,"videodatachange",this.b);this.S(a,"appresize",this.b);this.S(a,"onApiChange",this.b);this.S(a,"onCaptionsTrackListChanged",this.b);this.S(a,"captionschanged",this.b);this.b();this.N("click",this.A);Mb(this,b6(b.g,this.element))};
v8=function(a,b){P.call(this,{I:"div",fa:["ytp-time-display","notranslate"],P:[{I:"span",W:"ytp-time-current",P:["{{currenttime}}"]},{I:"span",W:"ytp-time-separator",P:[" / "]},{I:"span",W:"ytp-time-duration",P:["{{duration}}"]}]});this.B=new P({I:"button",fa:["ytp-live-badge","ytp-button"],U:{disabled:!0},P:[N("YTP_LIVE")]});G(this,this.B);this.B.Ba(this.element);this.b=a;this.G=b.g;this.o=null;this.C=this.A=!1;this.F=this.D=null;this.N("click",this.UJ);this.S(a,"presentingplayerstatechange",this.eh);
this.S(a,"appresize",this.eh);this.S(a,"liveviewshift",this.VJ);this.S(a,"videodatachange",this.WJ);var c=a.getVideoData();c&&(this.A=c.xa,K(this.element,"ytp-live",this.A));this.eh()};
x8=function(a,b,c){P.call(this,{I:"div",W:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},P:[{I:"div",W:"ytp-volume-slider",P:[{I:"div",W:"ytp-volume-slider-handle"}]}]});this.b=a;this.D=b;this.K=c;this.H=!1;this.G=kJ(b);this.O=this.B=0;this.M=this.pa["ytp-volume-slider"];this.R=this.pa["ytp-volume-slider-handle"];this.F=new S1(this.M,!0);G(this,this.F);this.F.subscribe("dragstart",this.aF,this);
this.F.subscribe("dragmove",this.$E,this);this.F.subscribe("dragend",this.ZE,this);this.J=null;this.o=this.A=this.C=!1;this.S(a,"onVolumeChange",this.$J);this.S(a,"appresize",this.cw);this.S(a,"fullscreentoggled",this.YJ);this.S(a,"onShowControls",this.Bp);this.S(a,"onHideControls",this.Bp);this.S(this.element,"keydown",this.bF);this.S(this.element,"focus",ra(this.bw,!0));this.S(this.element,"blur",ra(this.bw,!1));this.cw(ny(a).Ja());w8(this,a.Mb(),a.ed())};
w8=function(a,b,c){var d=Math.floor(b),e=d+"% "+N("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+N("YTP_SCREENREADER_VOLUME_MUTED"):"");c=c?0:b/100;a.va("valuenow",d);a.va("valuetext",e);a.R.style.left=(a.G?60:40)*c+"px";a.B=b};
y8=function(a,b,c,d,e){var f=a.A||a.C||a.o||a.H;a.A=b;a.C=c;a.o=d;a.H=e;b=a.A||a.C||a.o||a.H;f!=b&&(b?a.J=a.S(a.element,"wheel",a.ZJ):(a.sa(a.J),a.J=null),K(a.K,"ytp-volume-slider-active",b))};
z8=function(a,b){var c=Q(a),d=FA(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];(c="gaming"==c.g)&&e.push("ytp-youtube-gaming-button");P.call(this,{I:"a",fa:e,U:{href:"{{url}}",target:"_blank",title:N("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},P:[c?Ah?{I:"div",fa:["ytp-icon","ytp-icon-logo-gaming"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 98 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",
U:{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"}},
{I:"path",fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],U:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{I:"path",Ea:!0,fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],U:{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"}},{I:"g",Ea:!0,W:"ytp-svg-fill",P:[{I:"path",U:{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"}},
{I:"path",U:{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"}},
{I:"path",U:{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"}},
{I:"path",U:{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"}},
{I:"path",U:{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"}},
{I:"path",U:{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"}}]}]}:
Ah?{I:"div",fa:["ytp-icon","ytp-icon-logo"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 51 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}},
{I:"path",fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],U:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{I:"path",Ea:!0,fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],U:{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.b=a;this.N("click",this.A);this.S(a,"videodatachange",this.o);this.o();Mb(this,b6(b.g,this.element))};
A8=function(a,b,c){ix.call(this);var d=Q(a);this.$=a;this.b=b;this.O=window.NaN;this.M=null;this.H=c;this.H.subscribe("autohideupdate",this.$v,this);c=!Hq(us(a));var e=new P({I:"div",W:"ytp-gradient-bottom"});G(this,e);qw(a,e.element,8);this.F=new Ev(e,250,c,100);G(this,this.F);this.g=new P({I:"div",W:"ytp-chrome-bottom",P:[{I:"div",W:"ytp-chrome-controls"}]});G(this,this.g);qw(a,this.g.element,8);this.D=new Ev(this.g,250,c,100);G(this,this.D);c=this.g.element.children[0];this.o=new n8(a,b);G(this,
this.o);qw(a,this.o.element,6);this.o.subscribe("show",this.OG,this);this.o.subscribe("show",y(b.yG,b,this.o));this.A=new H7(a,b);G(this,this.A);this.A.Ba(this.g.element,0);e=new d7(a,b);G(this,e);qw(a,e.element,4);this.A.subscribe("height-change",e.vG,e);e=new g7(a);G(this,e);qw(a,e.element,4);e=new Mq({I:"div",W:"ytp-left-controls"});G(this,e);e.Ba(c);var f=new C7(a,b,!1);G(this,f);f.Ba(e.element);f=new A7(a,b);G(this,f);f.Ba(e.element);f=new C7(a,b,!0);G(this,f);f.Ba(e.element);var k=new P({I:"span"});
G(this,k);k.Ba(e.element);if(!d.useMediaVolume&&(f=new v7(a,b),G(this,f),f.Ba(k.element),d.ba)){f=new x8(a,b,this.g.element);G(this,f);f.Ba(k.element);k=new S1(k.element);G(this,k);var l=y(f.It,f,!0);k.subscribe("hoverstart",l);k=new S1(e.element);G(this,k);f=y(f.It,f,!1);k.subscribe("hoverend",f)}this.G=new v8(a,b);G(this,this.G);this.G.Ba(e.element);e=new Mq({I:"div",W:"ytp-right-controls"});G(this,e);e.Ba(c);c=new u8(a,b);G(this,c);c.Ba(e.element);c=new s8(a,b,this.o);G(this,c);this.o.G=c;c.Ba(e.element);
c=new m7(a,b);G(this,c);qw(a,c.element,5);c.subscribe("show",y(b.kl,b,c));c=new l7(a,b,c);G(this,c);c.Ba(e.element);d.jd&&(c=new z8(a,b),G(this,c),c.Ba(e.element));c=new t8(a,b);G(this,c);c.Ba(e.element);d.B&&(c=new W7(a),G(this,c),qw(a,c.element,4),c=new X7(a,b,this.o),G(this,c),c.Ba(e.element));d.hd&&(d=new c7(a,b),G(this,d),d.Ba(e.element));d=$y();d.webkitSetPresentationMode&&ka(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new y7(a,b),G(this,d),
d.Ba(e.element));this.J=new k7(a,b);G(this,this.J);this.J.Ba(e.element);this.B=new qt(this.vD,null,this);G(this,this.B);this.C=null;this.S(a,"appresize",this.eo);this.S(a,"fullscreentoggled",this.eo);this.S(a,"presentingplayerstatechange",this.mn);this.eo()};
B8=function(a,b){Hq(us(a.$))||b?b&&(Gv(a.D),Gv(a.F),a.b.g.eg(a.ma())):b||(a.D.show(),a.F.show(),a.$v())};
C8=function(a){var b=ny(a.$).Ja().width;return Math.max(b-24*(kJ(a.b)?2:1),100)};
D8=function(a){P.call(this,{I:"div",W:"ytp-title",P:[{I:"a",W:"ytp-title-channel-logo",U:{href:"{{channelImageLink}}",target:"_blank"}},{I:"div",W:"ytp-title-text",P:[{I:"a",fa:["ytp-title-link","yt-uix-sessionlink"],U:{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},P:[{I:"span",W:"ytp-title-playlist-icon",P:[Lh()]},{I:"span",P:["{{title}}"]}]},{I:"a",W:"ytp-title-channel-name",U:{href:"{{channelNameLink}}",target:"_blank"},P:["{{channelName}}"]}]}]});this.b=a;this.o=null;
this.G=this.pa["ytp-title-link"];this.F=this.pa["ytp-title-channel-logo"];this.J=this.pa["ytp-title-playlist-icon"];this.C=this.B=null;this.S(a,"videodatachange",this.A);this.S(a,"videoplayerreset",this.A);this.S(a,"appresize",this.D);this.D(ny(a).Ja());this.A()};
F8=function(a){var b=a.b.getVideoData(),c=b.videoId&&2==a.b.getPresentingPlayerType();c&&b.videoId==a.B?I(a.element,"ytp-title-extra-info"):(oe(a.element,"ytp-title-extra-info"),c&&(b.author&&b.dc&&b.profilePicture?E8(a,b.videoId,b.author,b.dc,b.profilePicture):b.videoId!=a.C&&(c=DA(Q(a.b),b.videoId,!1),fk(c,{method:"GET",tb:y(a.H,a,b.videoId),withCredentials:!0}),a.C=b.videoId)))};
E8=function(a,b,c,d,e){d=Q(a.b).X+"://"+EA(Q(a.b))+d;a.F.style.backgroundImage="url("+e+")";a.va("channelImageLink",d);a.va("channelNameLink",d);a.va("channelName",N("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.B=b;F8(a)};
G8=function(a,b){var c=ny(a).Ja();P.call(this,{I:"div",P:[{I:"div",W:"ytp-tooltip-bg",P:[{I:"div",W:"ytp-tooltip-duration",P:["{{duration}}"]}]},{I:"div",W:"ytp-tooltip-text-wrapper",P:[{I:"div",W:"ytp-tooltip-image"},{I:"div",W:"ytp-tooltip-title",P:["{{title}}"]},{I:"span",W:"ytp-tooltip-text",P:["{{text}}"]}]}]});this.M=a;this.ca=b;this.X=Q(a).isMobile;this.G=this.pa["ytp-tooltip-bg"];this.ga=this.pa["ytp-tooltip-image"];this.ba=y(this.QD,this);this.K=y(this.SD,this);this.o=null;this.D=new Ev(this,
100);G(this,this.D);this.b=null;this.J=!1;this.A=null;this.C=window.NaN;this.F="";this.ea=c.width;this.H=!0;this.B=1;this.O=new he(this.JB,250,this);G(this,this.O);this.R=new he(this.Ic,5E3,this);G(this,this.R)};
I8=function(a,b){if(null!=a.b)if(b)switch(a.b){case 3:H8(a);a.D.show();break;case 2:H8(a);a.D.show(400);break;default:a.D.show()}else Gv(a.D);a.H=b};
b6=function(a,b){if(a.X)return r;b.addEventListener("mouseover",a.K);return y(function(){this.o==b&&this.Ic();b.removeEventListener("mouseover",this.K)},a)};
K8=function(a,b,c){if(a.b)if(3==a.b)a.Ic();else return;J8(a,b,3,c)};
J8=function(a,b,c,d){(0,window.isNaN)(a.C)||(a.C=window.NaN,a.G.style.background="");a.o=b;a.J=!!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+")";K(a.element,"ytp-tooltip-image-enabled",!!b);a.b=c;a.M.addEventListener("appresize",a.Ic,a);a.H&&(H8(a),a.D.show(3==a.b?0:400))};
H8=function(a){var b=a.o.getAttribute("data-tooltip-text");if(b&&!a.J){a.va("text",b);var c=a.o.getAttribute("data-duration");a.update({title:a.F,duration:c});var d=a.o.getAttribute("data-preview"),e=160*a.B,f=90*a.B,k=120*a.B,l=90*a.B;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";me(a.element,["ytp-text-detail","ytp-preview"]);K(a.element,"ytp-has-duration",
!!c)}else a.va("text",a.F),pe(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);L8(a,!!b)};
L8=function(a,b,c){a.element.style.maxWidth=b?"":Math.min(a.ea,200*a.B)+"px";M8(a.ca,a.element,a.o,c,1==a.b);a.element.style.top?I(a.element,"ytp-bottom"):a.element.style.bottom&&I(a.element,"ytp-top");3==a.b&&a.R.start()};
x7=function(a){a.o&&!a.J&&a.o.hasAttribute("title")&&(a.F=a.o.getAttribute("title"),a.o.removeAttribute("title"),a.H&&H8(a))};
N8=function(a,b){K(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=160*a.B,d=160*a.B,e=hH(a.A,a.C,c);$1(a.G,e,c,d,!0);a.O.start()}};
P8=function(a,b,c){P.call(this,{I:"button",fa:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}"},P:["{{icon}}"]});this.b=a;this.C=b.g;this.D=c;I(c,"ytp-watch-later-button-visible");this.B=null;this.A=this.o=!1;this.N("click",this.aK,this);this.S(a,"videoplayerreset",this.bK);this.S(a,"appresize",this.dw);this.dw(ny(a).Ja());O8(this,2);Mb(this,b6(b.g,this.element))};
O8=function(a,b,c){if(b!=a.B){var d;switch(b){case 3:d=Ph();break;case 1:d=Ah?{I:"div",fa:["ytp-icon","ytp-icon-watch-later-added"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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=Ah?{I:"div",fa:["ytp-icon","ytp-icon-watch-later"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",
U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=Ah?{I:"div",fa:["ytp-icon","ytp-icon-alert"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}}a.va("icon",
d);a.B=b}c?a.update({title:c,image:null}):(b=Q(a.b),b.userDisplayName?(c={USER_NAME:b.userDisplayName},a.update({title:a.o?N("YTP_ADDED_TO_WATCH_LATER_AS",c):N("YTP_WATCH_LATER_AS_2",c),image:b.userDisplayImage})):a.update({title:N("YTP_WATCH_LATER"),image:null}));x7(a.C)};
Q8=function(a){P.call(this,{I:"a",fa:["ytp-watermark","yt-uix-sessionlink"],U:{target:"_blank",href:"{{url}}","aria-label":N("YTP_URL_NAVIGATE_TO",{WEBSITE:FA(Q(a))}),"data-sessionlink":"feature=player-watermark"},P:[Ah?{I:"div",fa:["ytp-icon","ytp-icon-watermark"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 77 34",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}},
{I:"path",fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],U:{d:"m 34,5.07 40,0 0,24 -40,0 z",fill:"none"}},{I:"path",Ea:!0,fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],U:{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.o=a;this.b=null;this.S(a,"videodatachange",this.A);this.S(a,"presentingplayerstatechange",this.C);a=us(a);this.gb(!O(a,2));this.A()};
S8=function(a){ix.call(this);Jy();var b=Q(a),c=ny(a);this.b=a;tma(this);var d=us(a);this.qa=!1;this.la=!0;this.ea=!1;this.M=null;this.F=[];var e=new E6(a);G(this,e);qw(a,e.element,4);var f=new b7(a);G(this,f);qw(a,f.element,4);this.D=new W5(a);G(this,this.D);qw(a,this.D.element,4);var k=new P({I:"div",W:"ytp-gradient-top"});G(this,k);qw(a,k.element,1);this.ia=new Ev(k,250,!0,100);G(this,this.ia);this.A=new P({I:"div",W:"ytp-chrome-top"});G(this,this.A);qw(a,this.A.element,1);this.ha=new Ev(this.A,
250,!0,100);G(this,this.ha);this.aa=[];this.O=new L6(a);G(this,this.O);this.O.Ba(e.element);k=a.getVideoData();this.B=new v5(c,y(this.qJ,this),k,b.useTabletControls);G(this,this.B);this.B.subscribe("autohideupdate",this.rJ,this);this.g=new G8(a,this);G(this,this.g);qw(a,this.g.element,4);this.G=new a6(a,this);G(this,this.G);qw(a,this.G.element,2);var l=new Hv(a,this.G);G(this,l);qw(a,l.element,5);l=new M6(a);G(this,l);qw(a,l.element,4);l=new O6(a,this);G(this,l);qw(a,l.element,5);l.subscribe("show",
y(this.kl,this,l));this.aa.push(l);l=new Q6(a,this,l);G(this,l);l.Ba(this.A.element);l=new D8(a);G(this,l);l.Ba(this.A.element);l=new Mq({I:"div",W:"ytp-chrome-top-buttons"});G(this,l);l.Ba(this.A.element);if(b.qf){var m=new P8(a,this,this.A.element);G(this,m);m.Ba(l.element)}m=new S6(a,this);G(this,m);qw(a,m.element,5);m.subscribe("show",y(this.kl,this,m));this.aa.push(m);m=new U6(a,this,m,this.A.element);G(this,m);m.Ba(l.element);l=null;MA(b)&&(l=new V6(a),G(this,l),qw(a,l.element,3));(this.o="1"==
b.A?new A8(a,this,this.B):null)&&G(this,this.o);"3"==b.A&&(m=new R6(a,this),G(this,m),qw(a,m.element,8));b.za&&"3"!=b.A?(m=new U5(c,y(this.ys,this),y(this.ME,this),y(this.xs,this)),G(this,m)):this.S(c,"click",y(function(a){this.xs(a)||this.ys(a)},this));
this.S(c,"touchstart",this.NE);this.H=new C6(a,this);G(this,this.H);this.H.subscribe("show",this.Zt,this);this.ba=!1;b.Hd&&(m=new Q8(a),G(this,m),qw(a,m.element,7));m=new V5(a);G(this,m);qw(a,m.element,4);this.da=k.videoId;this.C=null;this.J=!1;this.X=[];this.ga=new P({I:"div",U:{tabindex:0}});this.ga.N("focus",this.pz,this);this.ca=new P({I:"div",U:{tabindex:0}});this.ca.N("focus",this.qz,this);k=a.Da();k.setAttribute("aria-label",N("YTP_PLAYER_NORMAL"));switch(b.color){case "white":I(k,"ytp-color-white");
break;case "blue":I(k,"ytp-color-blue")}(this.R=b.useTabletControls?null:new G6(a,c,this.H,this.B,l,this.D,y(this.Op,this)))&&G(this,this.R);this.S(a,"appresize",this.Zn);this.S(a,"fullscreentoggled",this.sJ);this.S(a,"presentingplayerstatechange",this.tJ);this.S(a,"videodatachange",this.Uv);this.S(a,"videoplayerreset",this.qE);this.S(a,"autonavvisibility",this.Oh,this);this.S(a,"cardstatechange",this.Sg,this);this.S(a,"minimized",this.Sg,this);this.S(a,"onFrescaStateChange",this.Sg,this);R8(this,
d);this.Oh();this.Zn();this.ua=[c.o,f.element,e.element,this.D.element,this.O.element]};
jJ=function(a){var b=Nr(a.b)&&iJ(a.b);lJ(a.b);return a.ea||b||!!a.M||lJ(a.b)||a.b.app.V.Sa};
M8=function(a,b,c,d,e){b.style.left="";b.style.top="";b.style.bottom="";var f=dt(b);e=e||a.o&&Tf(a.o.ma(),c);if(null==d||!e)var k=dt(c),l=$s(c,a.b.Da());d=(null==d?l.x+k.width/2:d)-f.width/2;if(e)k=12*(kJ(a.o.b)?2:1),l=C8(a.o),c=ny(a.b).Ja().height,d=df(d,k,k+l-f.width),f=c-(kJ(a.o.b)?72:50)-f.height;else if(Tf(a.A.element,c)){if(k=ny(a.b).Ja().width,d=df(d,12,k-f.width-12),f=kJ(a)?69:48,"gvn"==Q(a.b).g||"gvn-experiment"==Q(a.b).g)f+=20}else a=ny(a.b).Ja(),d=df(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"};
T8=function(a,b){if(!b)return!1;var c=ny(a.b).b;if(c&&Tf(c,b))return c.controls;for(c=0;c<a.ua.length;c++)if(Tf(a.ua[c],b))return!1;return le(b,"ytp-player-content")||le(b,"html5-endscreen")||b==a.b.Da()?!1:!0};
kJ=function(a){return a.b.isFullscreen()};
R8=function(a,b){var c=b.Wa()&&!O(b,32);a.B.zb(128,!c);c=3==a.b.getPresentingPlayerType();a.B.zb(256,c);var c=a.b.Da(),d;O(b,2)?d=["ended-mode"]:(d=[],O(b,8)?d.push("playing-mode"):O(b,4)&&d.push("paused-mode"),O(b,1)&&!O(b,32)&&d.push("buffering-mode"),O(b,32)&&d.push("seeking-mode"),O(b,64)&&d.push("unstarted-mode"));Gb(a.X,d)||(pe(c,a.X),a.X=d,me(c,d));a.o&&B8(a.o,jJ(a));d=Q(a.b);var e=Hq(b),f=O(b,2);K(c,"ytp-hide-controls",("3"==d.A?!f:"1"!=d.A)||e);K(c,"ytp-native-controls","3"==d.A&&!e&&!f);
if(O(b,128)){a.C||(a.C=new C5(a.b),G(a,a.C),a.C.Ba(c),qw(a.b,a.C.element,4));c=a.C;d=b.b;for(e=0;e<c.A.length;e++)c.sa(c.A[e]);c.A=[];e=d.messageKey;f=Q(c.o);if("YTP_ERROR_GENERIC_WITHOUT_LINK"!=e||f.Vb)if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==e||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==e)c.Nb(D5(c,e,"https://get.adobe.com/flashplayer/",!1,!0));else if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=e||f.Vb){d=d.message.split(uma);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.Nb(e)}else c.Nb(D5(c,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//"+EA(f)+"/html5"));else if(c.Nb(D5(c,"YTP_ERROR_GENERIC_WITH_LINK_AND_CPN","//support.google.com/youtube/?p=player_error1",!0)),f.ea&&!f.D)for(d=y(c.B,c),e=c.element.getElementsByTagName("a"),f=0;f<e.length;f++)k=c.S(e[f],"click",d),c.A.push(k);a.C.show()}else a.C&&(a.C.dispose(),a.C=null)};
U8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Os(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=U8(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};
tma=function(a){a=Q(a.b);var b=a.O;if(bz("ytp-normal-css-loaded")){var c=bz("ytp-sprite-mode-css-loaded");b!=c&&aj(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}};
vma=function(a){this.b=a;this.g={}};
jsa=function(a){var b;a:{var c=a.args.legacy_config;if(c){var d=c?eg(c):null;if(d){var e,f=new U4(d),k=W(f,1),l=W(f,2),m=W(f,3),n=W(f,4),t=W(f,5),u=W(f,6),x=W(f,7),z=W(f,8),J=W(f,9),V=W(f,10),S=W(f,11),ba=W(f,12),Ja=W(f,13),db=W(f,14),Jc=W(f,15),Kc=W(f,16),Rr=W(f,17),Sr=W(f,18),Tr=W(f,19),Xn=W(f,20),Lk=W(f,21),Mk=W(f,22),Qx=W(f,23),af=W(f,24),yc=W(f,25),JF=W(f,26),lg=W(f,27),pca=W(f,28),qca=W(f,29),wma=W(f,30),xma=W(f,31),yma=W(f,32),zma=W(f,33),Ama=W(f,34),Bma=W(f,35),Cma=W(f,36),Dma=W(f,37),Ema=
W(f,38),Fma=W(f,39),Gma=W(f,40),Hma=W(f,41),Ima=W(f,42),Jma=W(f,43),Kma=W(f,44),Lma=W(f,45),Mma=W(f,46),Nma=W(f,47),Oma=W(f,48),Pma=W(f,49),Qma=W(f,50),Rma=W(f,51),Sma=W(f,52),Tma=W(f,53),Uma=W(f,54),Vma=W(f,55),Wma=W(f,56),Xma=W(f,57),Yma=W(f,58),Zma=W(f,59),$ma=W(f,60),ana=W(f,61),bna=W(f,62),cna=W(f,63),dna=W(f,64),ena=W(f,65),fna=W(f,66),gna=W(f,67),hna=W(f,68),ina=W(f,69),jna=W(f,70),kna=W(f,71),lna=W(f,72),mna=W(f,73),nna=W(f,74),ona=W(f,75),pna=W(f,76),qna=W(f,77),rna=W(f,78),sna=W(f,79),tna=
W(f,80),una=W(f,81),vna=W(f,82),wna=W(f,83),xna=W(f,84),yna=W(f,85),zna=W(f,86),Ana=W(f,87),Bna=W(f,88),Cna=W(f,89),Dna=W(f,90),Ena=W(f,91),Fna=W(f,92),Gna=W(f,93),Hna=W(f,94),Ina=W(f,95),Jna=W(f,96),Kna=W(f,97),Lna=W(f,98),Mna=W(f,99),Nna=W(f,100),Ona=W(f,101),Pna=W(f,102),Qna=W(f,103),Rna=W(f,104),Sna=W(f,105),Tna=W(f,106),Una=W(f,107),Vna=W(f,108),Wna=W(f,109),Xna=W(f,110),Yna=W(f,111),Zna=W(f,112),$na=W(f,113),aoa=W(f,114),boa=W(f,115),coa=W(f,116),doa=W(f,117),eoa=W(f,118),foa=W(f,119),goa=W(f,
120),hoa=W(f,121),ioa=W(f,122),joa=W(f,123),koa=W(f,124),loa=W(f,125),moa=W(f,126),noa=W(f,127),ooa=W(f,128),poa=W(f,129),qoa=W(f,130),roa=W(f,131),soa=W(f,132),toa=W(f,133),uoa=W(f,134),voa=W(f,135),woa=W(f,136),xoa=W(f,137),yoa=W(f,138),zoa=W(f,139),Aoa=W(f,140),Boa=W(f,141),Coa=W(f,142),Doa=W(f,143),Eoa=W(f,144),Foa=W(f,145),Goa=W(f,146),Hoa=W(f,147),Ioa=W(f,148),Joa=W(f,149),Koa=W(f,150),Loa=W(f,151),Moa=W(f,153),Noa=W(f,154),Ooa=W(f,155),Poa=W(f,156),Qoa=W(f,157),Roa=W(f,158),Soa=W(f,159),Toa=
W(f,160),Uoa=W(f,161),Voa=W(f,162),Woa=W(f,163),Xoa=W(f,164),Yoa=W(f,165),Zoa=W(f,166),$oa=W(f,167),apa=W(f,168),bpa=W(f,169),cpa=W(f,170),dpa=W(f,171),epa=W(f,172),fpa=W(f,173),gpa=W(f,174),hpa=W(f,175),ipa=W(f,176),jpa=W(f,177),kpa=W(f,178),lpa=W(f,179),mpa=W(f,180),npa=W(f,181),opa=W(f,182),ppa=W(f,183),qpa=W(f,184),rpa=W(f,185),spa=W(f,186),tpa=W(f,187),upa=W(f,188),vpa=W(f,189),wpa=W(f,190),xpa=W(f,191),ypa=W(f,192),zpa=W(f,193),Apa=W(f,194),Bpa=W(f,195),Cpa=W(f,196),Dpa=W(f,197),Epa=W(f,198),
Fpa=W(f,199),Gpa=W(f,200),Hpa=W(f,201),Ipa=W(f,202),Jpa=W(f,203),Kpa=W(f,204),Lpa=W(f,205),Mpa=W(f,206),Npa=W(f,207),Opa=W(f,208),Ppa=W(f,209),Qpa=W(f,210),Rpa=W(f,211),Spa=W(f,212),Tpa=W(f,213),Upa=W(f,214),Vpa=W(f,215),Wpa=W(f,216),Xpa=W(f,217),Ypa=W(f,218),Zpa=W(f,219),$pa=W(f,220),aqa=W(f,221),bqa=W(f,222),cqa=W(f,223),dqa=W(f,224),eqa=W(f,225),fqa=W(f,226),gqa=W(f,227),hqa=W(f,228),iqa=W(f,229),jqa=W(f,230),kqa=W(f,231),lqa=W(f,232),mqa=W(f,233),nqa=W(f,234),oqa=W(f,235),pqa=W(f,236),qqa=W(f,
237),rqa=W(f,238),sqa=W(f,239),tqa=W(f,240),uqa=W(f,241),vqa=W(f,242),wqa=W(f,243),xqa=W(f,245),yqa=W(f,246),zqa=W(f,247),Aqa=W(f,248),Bqa=W(f,249),Cqa=W(f,250),Dqa=W(f,251),Eqa=W(f,252),Fqa=W(f,253),Gqa=W(f,254),Hqa=W(f,255),Iqa=W(f,256),Jqa=W(f,257),Kqa=W(f,258),Lqa=W(f,259),Mqa=W(f,260),Nqa=W(f,261),Oqa=W(f,262),Pqa=W(f,263),Qqa=W(f,264),Rqa=W(f,265),Sqa=W(f,266),Tqa=W(f,267),Uqa=W(f,268),Vqa=W(f,269),Wqa=W(f,270),Xqa=W(f,271),Yqa=W(f,272),Zqa=W(f,273),$qa=W(f,275),ara=W(f,276),bra=W(f,277),cra=
W(f,278),dra=W(f,279),era=W(f,280),fra=W(f,281),gra=W(f,282),hra=W(f,283),ira=W(f,284),jra=W(f,285),kra=W(f,286),lra=W(f,287),mra=W(f,288),nra=W(f,289),ora=W(f,290),pra=W(f,291),qra=W(f,292),rra=W(f,293),sra=W(f,294),tra=W(f,295),ura=W(f,296),vra=W(f,297),wra=W(f,298),xra=W(f,299),yra=W(f,300),zra=W(f,301),Ara=W(f,302),Bra=W(f,303),Cra=W(f,304),Dra=W(f,306),Era=W(f,307),Fra=W(f,308),Gra=W(f,309),Hra=W(f,310),Ira=W(f,311),Jra=W(f,312),Kra=W(f,313),Lra=W(f,314),Mra=W(f,315),Nra=W(f,316),Ora=W(f,317),
Pra=W(f,318),Qra=W(f,319),Rra=W(f,320),Sra=W(f,321),Tra=W(f,322),Ura=W(f,323),Vra=W(f,324),Wra=W(f,325),Xra=W(f,326),Yra=W(f,327),Zra=W(f,328),$ra=W(f,329),asa=W(f,330),bsa=W(f,331),csa=W(f,332),dsa=W(f,333),esa=W(f,334),fsa=W(f,335),gsa=W(f,336),xM=W(f,337);e={el:k,ps:l,autonav:m,autoplay:n,eventid:t,fexp:u,fflags:x,isHtml5MobileDevice:z,legacyBehavior:J,playerErrorLogFraction:V,canWatchLater:S,mute:ba,partnerid:Ja,showinfo:db,ss:Jc,watchXlb:Kc,dclk:Rr,ivModule:Sr,iv3Module:Tr,iv3EditModule:Xn,ivInvideoUrl:Lk,
ivLoadPolicy:Mk,atc:Qx,loudness:af,infringe:yc,subtitlesXlb:JF,ccFont:lg,ccModule:pca,ccFontsUrl:qca,cc3Module:wma,ttsurl:xma,ccAsr:yma,ccContribute:zma,ccAutoCaps:Ama,ccLoadPolicy:Bma,captionTracks:Cma,captionAudioTracks:Dma,captionTranslationLanguages:Ema,defaultAudioTrackIndex:Fma,cr:Gma,hostLanguage:Hma,hl:Ima,enablecsi:Jma,csiPageType:Kma,c:Lma,cbr:Mma,cbrver:Nma,cos:Oma,cosver:Pma,cplatform:Qma,cbrand:Rma,cmodel:Sma,cnetwork:Tma,isRtl:Uma,enhanceModule:Vma,enhanceXlb:Wma,regionModule:Xma,previewSplitMode:Yma,
status:Zma,reason:$ma,errorcode:ana,errordetail:bna,apiaryHost:cna,apiaryHostFirstparty:dna,gapiHintOverride:ena,gapiHintParams:fna,innertubeApiKey:gna,innertubeApiVersion:hna,innertubeContextClientVersion:ina,loaderurl:jna,multicameraModule:kna,multicameraPreroll:lna,multifeedMetadataList:mna,allowEmbed:nna,allowedDomains:ona,ypcItemTitle:pna,ypcItemUrl:qna,ypcItemThumbnail:rna,ypcOfferHeadline:sna,ypcOfferDescription:tna,ypcOfferId:una,ypcOfferButtonText:vna,ypcFullVideoMessage:wna,ypcModule:xna,
ypcVid:yna,ypcLicenseCheckerModule:zna,heartbeatServerUrl:Ana,ypcLicenseSessionToken:Bna,purchaseId:Cna,heartbeatToken:Dna,heartbeatInterval:Ena,heartbeatRetries:Fna,ypcClickwrapModule:Gna,ypcClickwrapMessage:Hna,livestream:Ina,livePlayback:Jna,authTimeout:Kna,hlsdvr:Lna,streaminglibModule:Mna,frescaModule:Nna,frescaPreroll:Ona,frescaXlb:Pna,enableCardio:Qna,enableCardioBeforePlayback:Rna,liveChunkReadahead:Sna,innertubeClientVersion:Tna,adHost:Una,adHostTierId:Vna,coreDbp:Wna,googleCustAge:Xna,googleCustGender:Yna,
pyvAdChannel:Zna,showPyvInRelated:$na,tagForChildDirected:aoa,playerWide:boa,enablesizebutton:coa,bannerUrl:doa,profilePicture:eoa,channelTitle:foa,spacecastAddress:goa,timestamp:hoa,fmtList:ioa,urlEncodedFmtStreamMap:joa,adaptiveFmts:koa,licenseInfo:loa,idup:moa,dashmpd:noa,hlsvp:ooa,hlsFormats:poa,probeUrl:qoa,storyboardSpec:roa,liveStoryboardSpec:soa,ismb:toa,surveySmartpixelUrl:uoa,surveycreativedata:voa,threedXlb:woa,threedModule:xoa,threedConverted:yoa,approxThreedLayout:zoa,threedLayout:Aoa,
t:Boa,token:Coa,noGetVideoLog:Doa,tmi:Eoa,plid:Foa,pltype:Goa,ptchn:Hoa,ptk:Ioa,oid:Joa,idpj:Koa,ldpj:Loa,userAge:Moa,userGender:Noa,sw:Ooa,remarketingUrl:Poa,ppvRemarketingUrl:Qoa,rmktenabled:Roa,baseurl:Soa,videostatsPlaybackBaseUrl:Toa,subscribed:Uoa,engaged:Voa,vid:Woa,uid:Xoa,aid:Yoa,focenabled:Zoa,socialenabled:$oa,ytfocenabled:apa,ytfochistoryenabled:bpa,ssrt:cpa,delay:dpa,cl:epa,osid:fpa,vm:gpa,videoId:hpa,title:ipa,lengthSeconds:jpa,keywords:kpa,ucid:lpa,allowRatings:mpa,avgRating:npa,viewCount:opa,
author:ppa,thumbnailUrl:qpa,isListed:rpa,liveDefaultBroadcast:spa,vq:tpa,watermark:upa,accountPlaybackToken:vpa,watchAjaxToken:wpa,yvaXlb:xpa,yvaModule:ypa,yvaPreroll:zpa,ypcXlb:Apa,authuser:Bpa,pageid:Cpa,userDisplayName:Dpa,userDisplayImage:Epa,playlistTitle:Fpa,playlistLength:Gpa,index:Hpa,iurl:Ipa,iurlmq:Jpa,iurlhq:Kpa,iurlsd:Lpa,iurlmaxres:Mpa,iurlWebp:Npa,iurlmqWebp:Opa,iurlhqWebp:Ppa,iurlsdWebp:Qpa,iurlmaxresWebp:Rpa,start:Spa,end:Tpa,resume:Upa,of:Vpa,list:Wpa,q:Xpa,referrer:Ypa,sdetail:Zpa,
sourceid:$pa,externalList:aqa,forcedExperiments:bqa,cctp:cqa,adformat:dqa,listtype:eqa,privembed:fqa,afvInstreamMax:gqa,adLanguageIso6392:hqa,adTag:iqa,afvAdTagRestrictedToInstream:jqa,maxDynamicAllocationAdTagLength:kqa,asLaunchedInCountry:lqa,adFlags:mqa,adPreroll:nqa,aftv:oqa,invideo:pqa,dynamicAllocationAdTag:qqa,gutTag:rqa,pyvInRelatedCafeExperimentId:sqa,afvAdTag:tqa,bR:uqa,loeid:vqa,adDevice:wqa,cafeExperimentId:xqa,adsenseVideoDocId:yqa,fw:zqa,adSlots:Aqa,shortform:Bqa,tpasPartnerId:Cqa,instream:Dqa,
trueview:Eqa,midrollFreqcap:Fqa,mpvid:Gqa,mpu:Hqa,afv:Iqa,tpasAdTypeId:Jqa,tpasVideoId:Kqa,sffb:Lqa,contentOwnerName:Mqa,afvMergeEnabled:Nqa,excludedAds:Oqa,noAfvInstream:Pqa,adAge:Qqa,adGender:Rqa,adLoggingFlag:Sqa,showContentThumbnail:Tqa,cid:Uqa,afvInvideoAdTag:Vqa,allowHtml5Ads:Wqa,supportedWithoutAds:Xqa,instreamLong:Yqa,adBreaks:Zqa,afcRmFallback:$qa,allowAdInAutoplay:ara,c4:bra,dbp:cra,fqsf:dra,gptMigration:era,xfp:fra,midrollPrefetchSize:gra,trueviewLactt:hra,xfpTag:ira,advideo:jra,ad3Module:kra,
vmap:lra,serverPrefetchedVast:mra,amsBaseTag:nra,fadeOutStartMilliseconds:ora,fadeOutDurationMilliseconds:pra,fadeInStartMilliseconds:qra,fadeInDurationMilliseconds:rra,applyFadeOnMidrolls:sra,adModule:tra,pla:ura,plaAdTag:vra,vastAdsModule:wra,forcedSkipOffset:xra,enabledEngageTypes:yra,freewheelAdTag:zra,postAdRequests:Ara,enablejsapi:Bra,ssl:Cra,baseYtUrl:Dra,controls:Era,disablekb:Fra,jsapicallback:Gra,svt:Hra,canplaylive:Ira,storeUserVolume:Jra,useMediaVolume:Kra,sslStream:Lra,dash:Mra,liveStartWalltime:Nra,
oauthToken:Ora,visitorData:Pra,vvt:Qra,osig:Rra,paygated:Sra,videoMastheadAdQuartileUrls:Tra,tvList:Ura,pyvViewBeaconUrl:Vra,pyvQuartile25BeaconUrl:Wra,pyvQuartile50BeaconUrl:Xra,pyvQuartile75BeaconUrl:Yra,pyvQuartile100BeaconUrl:Zra,pyvBillableUrl:$ra,rco:asa,cco:bsa,feature:csa,isFling:dsa,ctrl:esa,ytr:fsa,ytrcc:gsa,startseconds:null==xM?xM:+xM,sentiment:W(f,338),spacecastFormatMap:W(f,339),spacecastAdaptiveFormats:W(f,340),suggestedquality:W(f,341),rvs:W(f,342),urlEncodedThirdPartyMedia:W(f,343),
vssCredentialsToken:W(f,344),vssCredentialsType:W(f,345),ypcGid:W(f,346),ypcPreview:W(f,347),ypcOrigin:W(f,348),requiresPurchase:W(f,349),mdx:W(f,350),retryneterr:W(f,351),itct:W(f,352),ypcOverlayTimeout:W(f,353),app:W(f,354),pyvConvUrl:W(f,356),cver:W(f,357),on3g:W(f,358),autohide:W(f,359),useNativeControls:W(f,360),useTabletControls:W(f,361),codeDbp:W(f,362),rel:W(f,363),attrib:W(f,364),showwatchlater:W(f,365),spacecastModule:W(f,367),fairPlayCert:W(f,368),showEndToEndLatency:W(f,369),heartbeatSoftFail:W(f,
370),drmSessionId:W(f,371),ivEndscreenUrl:W(f,372),allowAdsPayCreator:W(f,373),externalPlayVideo:W(f,374),disablecast:W(f,375),pyvAdTag:W(f,376),channelUrl:W(f,378),channelThumbnail:W(f,379),forceAdType:W(f,380),forceAdUrl:W(f,381),forcedAd:W(f,382),serializedAdBreakRenderers:W(f,383),spacecastAddrs:W(f,384),serializedAdUxConfig:W(f,385),shortViewCountText:W(f,386),murlmqWebp:W(f,387),isLiveDestination:W(f,388)};var d6={},Uu;for(Uu in e){var hsa=V8[Uu]?V8[Uu]:Uu.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();
d6[hsa]=e[Uu]}b=d6;break a}}b=null}var yM;if(b){var $h=a.args,am=b,LB=[],Rc;for(Rc in $h)isa[Rc]||(am.hasOwnProperty(Rc)?typeof $h[Rc]!=typeof am[Rc]?LB.push("wrong type. key ["+Rc+"]: ("+typeof $h[Rc]+") "+$h[Rc]+"; ("+typeof am[Rc]+") "+am[Rc]):$h[Rc]!==am[Rc]&&LB.push("values differ. key ["+Rc+"]: ("+typeof $h[Rc]+") "+$h[Rc]+"; ("+typeof am[Rc]+") "+am[Rc]):LB.push("missing. key ["+Rc+" ]: ("+typeof $h[Rc]+") "+$h[Rc]));yM=LB}else yM=[];for(var dq=yM,f6=Math.floor(Math.random()*dq.length),dq=
dq.slice(f6).concat(dq.slice(0,f6)),zM=0;zM<dq.length;zM++)aj(Error("Discrepancy in legacy config: "+dq[zM]))};
Y8=function(a,b){F.call(this);this.X=gi(b);jsa(this.X);var c=this.X.args||{};this.V=new zA(c);G(this,this.V);this.V.experiments.Z("legacy_autoplay_flag")||"detailpage"!=this.V.b||(c.autoplay="1");this.sc=cz("detailpage"==this.V.b&&"blazer"!=this.V.g||"books"==this.V.g,c.enablesizebutton);this.ha=cz(!1,c.player_wide);this.R=this.V.Qa&&cz(!1,c.external_list);this.za=(this.Sb=this.V.Qa&&cz(!1,c.external_play_video))&&this.V.experiments.Z("kevlar_allow_multistep_video_init");this.na=new ix(this);G(this,
this.na);this.Ec=new eK;this.Ka=null;this.O=new ug;this.ba=new ug;this.Ub=new vma(this.ba);this.b=new WI(this);G(this,this.b);this.$a=new WI(this,1);G(this,this.$a);this.D=new k5(this);G(this,this.D);this.D.subscribe("resize",this.qH,this);this.K=1;this.Sa={};this.aa=this.V.storeUserVolume?Au():{volume:100,muted:this.V.mute};this.$=this.V.Qa?new VI(this,1):new UI(this,1);G(this,this.$);this.o=null;this.Oa={};this.la=new mea(oea(this.V));this.fb={internalAbandon:this.jC,internalvideodatachange:this.iC,
playbackready:this.kC,playbackstarted:this.lC,statechange:this.mC,signatureexpired:this.XE,drmsessionlimitexhuased:this.dD};this.G=ksa(this);G(this,this.G);this.H=new n1(this.V,"",this.G);this.g=lsa(this);this.g.K=this.la;this.qc={airplayactivechange:this.aC,airplayavailabilitychange:this.bC,beginseeking:this.uC,endseeking:this.fD,internalaudioformatchange:this.oC,internalvideodatachange:this.En,internalvideoformatchange:this.zF,liveviewshift:this.nH,playbackstalledatstart:this.cF,progresssync:this.pH,
seekto:this.rH,onLoadProgress:this.CD,onVideoProgress:this.BF,playbackready:this.oE,statechange:this.oH,connectionissue:this.QC,heartbeatparams:this.mH,videoelementevent:this.sH};this.J=this.B=null;this.qb=this.ub=-1;this.ua=this.C=this.F=null;this.da={};this.Ca=null;this.Db=new he(this.D.nf,16,this.D);G(this,this.Db);this.Za=!1;this.ea=!0;this.Ia=this.A=null;this.Ha=!1;this.M=this.V.D?1:W8(this,Nj("yt-player-playback-rate")||1);this.qa=null;this.xb=!1;this.yb=this.dc=null;this.Ya=this.ca=0;this.Ga=
!1;this.ga=null;this.Tb=new he(function(){X8(this,up(),yp())},2E3,this);
G(this,this.Tb);this.b.addEventListener("crn_"+Y8.o,this.gC,this);this.b.addEventListener("crx_"+Y8.o,this.hC,this);this.b.addEventListener("crn_"+Y8.g,this.Hr,this);this.b.addEventListener("crx_"+Y8.g,this.Hr,this);this.D.initialize(a);Ah=this.V.O;msa(this);this.H.g("fs");nsa(this);this.ia=new S8(this.b);G(this,this.ia);hJ(this.$a,"init")};
lsa=function(a){var b=new XH(a.V,1,a.H,a.D,y(a.O.Rb,a.O),!a.za);Z8(a,b,a.fb);return b};
a9=function(a,b){var c=a.g,d=a.fb,e;for(e in d)c.Fa(e,d[e],a);a.g.dispose();a.g=b;Z8(a,b,a.fb);$8(a)};
ksa=function(a){var b="",c=a.X.assets.js||"";"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");0==b.indexOf("//")&&(b=a.V.X+":"+b);b=new vL(a.b,b);c={};c.loaded=y(a.bs,a);c.unloaded=y(a.ds,a);c.destroyed=y(a.Gm,a);c.command_redirect_controls=y(a.zu,a);c.command_stop_redirect_controls=y(a.Nj,a);b.G=c;a.V.G.subscribe("vast_info_card_add",ra(b.ZF,"vast_info_card_add"),b);return b};
b9=function(a,b){a.Ka||(a.Ka=new I5(a),G(a,a.Ka),qw(a.b,a.Ka.element,4));a.Ka.gb(b)};
c9=function(a){var b=J4.getTag(!0,!a.V.C);a.o=new I4(b);a.B&&wI(a.B,a.o);a.o.Wf(a.Ha);a.o.Xf(a.M);a.V.useMediaVolume?(a.qa&&a.na.sa(a.qa),a.qa=a.na.S(a.o,"volumechange",a.LD)):(a.o.setVolume(a.aa.volume/100),a.o.gi(a.aa.muted));gma(a.D,b);try{jI(a.o)}catch(c){b="activate.1;emsg."+c.message.replace(/[;:,]/g,"_"),gI(a.g,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",b)}};
d9=function(a){if(a.o){a.qa&&(a.na.sa(a.qa),a.qa=null);a.B&&vI(a.B);var b=a.D;b.b&&(Lf(b.b),b.b=null);J4.releaseTag(a.o.ma());a.o=null}};
e2=function(a,b){a.V.R?(a.ua&&(a.o.Qv(new jf(a.ua.left,a.ua.top)),a.o.setSize(sg(a.ua)),a.ua=null),$H(a.o),vI(a.B),wI(a.B,a.o),a.o.Wf(a.Ha),a.o.Xf(a.M)):J4.releaseTag(b.ma())};
M4=function(a,b){a.B!=b&&(a.B&&(zL(a.G),oJ(a,"cuerangesremoved",a.B.C.b.b||[]),L4(a)),b!=a.g&&(a.Oa[b.J]=b),a.B=b,b.K=a.la,a.o&&wI(b,a.o),Z8(a,b,a.qc),a.En("newdata",b,b.getVideoData()),b.ga.b&&a.En("dataloaded",b,b.getVideoData()),b.getVideoData().g&&a.b.Aa("onPlaybackQualityChange",b.getVideoData().g.video.quality),oJ(a,"cuerangesadded",a.B.C.b.b||[]),yq(b.getPlayerState())&&CI(b))};
Z8=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
L4=function(a){vI(a.B);var b=a.B,c=a.qc,d;for(d in c)b.Fa(d,c[d],a);b=a.B;b!=a.g&&(c=b.J,a.Oa[c]==b&&delete a.Oa[c]);a.B=null};
XI=function(a,b){return b?1==b?a.g:a.Oa[b]||null:a.B};
e9=function(a){var b=a.G,c=a.Ec.b(a.V);b.Gp();b.Hp();b.Ip();E(c,b.Zy,b);a.b.Va("videoready",a.getVideoData())};
g9=function(a){if(a.V.B){a.C||(a.C=new h5(a),f9(a,a.C));var b=yp();i5(a.C,up(),b);var c=a.C;c&&!c.D&&c.Cb(a.$a)&&c.create();a.V.experiments.Z("legacy_cast2")&&b&&a.C.load()}};
f9=function(a,b){G(a,b);b.subscribe("loaded",a.bs,a);b.subscribe("unloaded",a.ds,a);b.subscribe("command_redirect_controls",a.zu,a);b.subscribe("command_stop_redirect_controls",a.Nj,a)};
h9=function(a,b){b&&b.D&&("ad"==b.Na&&pe(a.D.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())};
C4=function(a){return a.g.getVideoData()};
i9=function(a,b){var c=XI(a,b);return(c=c?c.g:null)?KI(c):0};
j9=function(a,b,c){(a=XI(a,c||1))&&YH(a,b)};
msa=function(a){var b=new vH(a.X.args);PH(b)&&(fI(a.g,b,y(a.ak,a)),(a.V.experiments.Z("legacy_autoplay_flag")?a.V.Db:b.J)&&(a.V.qb||a.V.experiments.B)&&iI(a.g))};
nsa=function(a){var b=a.D;b.isDisposed();var c=b.app.V;c.R||b.Vn("tag-pool-enabled");c.Vb&&b.Vn("house-brand");"gvn"!=c.g&&"gvn-experiment"!=c.g||b.Vn("ytp-gvn");"gvn-experiment"==c.g&&(b.element.style.backgroundColor="transparent");c.ea&&(b.F=ij("yt-dom-content-change",b.nf,b));b.S(window,"resize",b.nf,b);b=a.$;b.b=a.D.element;for(var d in b.o)b.b[d]=b.o[d];for(d in b.A)b.b[d]=b.A[d];(d=Yh(a.D.element))&&a.na.S(a.D,d,a.nD);a.na.S(window,"resize",a.KE);b=a.X.args;c9(a);if(!O(a.g.getPlayerState(),
128)||!a.V.experiments.Z("legacy_startup_error_handling")){d=C4(a);a.b.Aa("onVolumeChange",a.aa);b&&sK(b)&&((c=Br(a.V))&&!a.R&&(b.fetch=0),k9(a,b),c&&!a.R?l9(a):PH(d)||(b=a.A,c=y(a.hs,a),b.C=c,b.B&&Xi(b.C,0)));if(b=a.X.args.jsapicallback)ka(b)||(b=q(b)),b&&y(b,aa,a.V.Ke);a.V.B&&(b="embedded"==a.V.b,c=void 0,!a.V.experiments.Z("legacy_cast2")&&b&&(c={device:"Desktop",app:"youtube-desktop"}),qp(b,c),a.Tb.ae());M4(a,a.g);O(a.g.getPlayerState(),128)||(b=az(a.V.C),"fmt.noneavailable"==b?gI(a.g,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"nocanplaymedia.1"):"html5.missingapi"==b?gI(a.g,b,"YTP_ERROR_UNSUPPORTED_DEVICE","nocanplaymedia.1"):(a.V.experiments.Z("legacy_autoplay_flag")?a.V.Db:d.J)&&a.V.qb&&PH(d)?m9(a):"leanback"!=a.V.b&&n9(a))}};
n9=function(a){a.b.Va("initializingmode");o9(a,2)};
m9=function(a){if(O(a.g.getPlayerState(),128))return!1;if(a.J){var b=a.J.getVideoData(),c=a.g.getVideoData();b.videoId==c.videoId&&(b.autonavState=c.autonavState,b=a.J,a.J=null,a9(a,b))}a.b.Va("initializingmode");M4(a,a.g);o9(a,3);if(!(b=!a.V.R||vA()&&!a.xb)){if(b=a.ga)b=a.ga,b=!!b.b&&a.o==b.b;b=b&&a.xb}b&&(d9(a),c9(a),wI(a.g,a.o));lI(a.g);if(O(a.g.getPlayerState(),128))return!1;p9(a,3);return a.xb=!0};
q9=function(a,b){a.Ha!=b&&(a.Ha=b,a.B==a.g&&a.o.Wf(b),a.b.Va("loopchange",b))};
r9=function(a,b,c){!(0,window.isNaN)(b)&&a.o&&(b=W8(a,b),a.M!=b&&(a.M=b,a.g==a.B&&a.o.Xf(b),c&&!a.V.D&&Mj("yt-player-playback-rate",b),a.b.Aa("onPlaybackRateChange",b)))};
W8=function(a,b){var c=1,c=a.b.Xh();return c=1>b?fb(c,function(a){return a>=b}):ib(c,function(a){return a<=b})};
s9=function(a,b){var c=XI(a,b);return c?c.Fn():a.getVideoData().Ia};
t9=function(a,b){var c=XI(a,b);return c?c.Vh():0};
u9=function(a,b){var c=MI(a.g,b);if(a.B&&a.B!=a.g){var d=MI(a.B,b),e;for(e in d)c["ad_"+e]=d[e]}b&&a.o&&(d=a.o.sk(),c["0sz"]=0==d.width*d.height,c.op=a.o.getStyle("opacity"),d=a.o.Cl().y+a.o.sk().height,c.yof=0>=d,c.dis=a.o.getStyle("display"));(d=vq())&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.$a.ck();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return ig(c)};
v9=function(a,b){return 3==a.getPresentingPlayerType()?Jq(a.C.O):2==b?a.qb:a.ub};
$8=function(a){h9(a,a.F);a.V.B&&h9(a,a.C);a.Nj();q9(a,!1);a.Sa={};a=a.H;var b=a.o;b.C={};b.A={};a.A=!1};
l9=function(a){var b=w9();if(b)if(!b.list)a.Wk();else if(a.A&&a.A.listId.toString()==b.list)if(0<=b.index){var c=b.video;a.b.isFullscreen()&&((c=c[a.A.b])&&c.encrypted_id!=a.A.Gb().videoId||(b.index=a.A.b));wK(a.A,b);a.Ia&&x9(a,a.Ia)}else a.Ia=null};
k9=function(a,b){if(a.A){a.A.Fa("error",a.Wk,a);Nb(a.A);a.A=null;var c=dJ(a.G,"playlist");c&&(qb(a.G.b,c),c.destroy())}b&&(a.R&&(b.fetch=0),a.A=new rK(b),a.A.subscribe("error",a.Wk,a))};
y9=function(a,b,c,d){b in a.Sa||(c=new fq(c,d,{id:b,priority:1}),c.namespace=Y8.g,a.g.C.wb([c]),a.Sa[b]=c)};
z9=function(a,b,c){c={label:c};a.V.experiments.Z("send_pyv_ad_mt_and_abandon_pings")&&(a=1E3*a.getCurrentTime(),c.ad_mt=Math.round(Math.max(0,a)).toString());return Wj(b,c)};
o9=function(a,b){b!=a.K&&(2==b&&(p9(a,-1),p9(a,5)),a.K=b,a.b.Va("appstatechange",b))};
p9=function(a,b){a.B&&2==a.B.J?a.qb!=b&&(a.qb=b,a.b.Aa("onAdStateChange",b)):a.ub!=b&&(a.ub=b,a.b.Aa("onStateChange",b))};
B9=function(a,b,c,d){a.V.experiments.Z("legacy_autoplay_flag")||"detailpage"!=a.V.b||(b.autoplay="1");var e=new vH(b);d||(b&&sK(b)?(Br(a.V)&&!a.R&&(b.fetch=0),k9(a,b)):a.A&&k9(a,null),a.R=cz(!1,b.external_list),Br(a.V)&&!a.R&&l9(a));return A9(a,e,c)};
C9=function(a,b){a.J&&a.J.getVideoData().videoId==b.videoId||(b.Ke=!0,a.J||(a.J=new XH(a.V,1,a.H,a.D,y(a.O.Rb,a.O)),a.J.K=a.la),fI(a.J,b,y(a.ak,a)),iI(a.J,!0))};
A9=function(a,b,c){CC("_start",a.H.b)||(BC("p",a.H.b),a.H.info("srt",0));var d;if(a.J&&a.J.getVideoData().videoId==b.videoId)d=a.J,a.J=null,a9(a,d);else{d=XI(a,c);if(!d)return!1;a.Db.stop();D9(a,c);fI(d,b,y(a.ak,a))}if(!hI(d))return!1;a.Za&&(d.da=!1,a.Za=!1);if(d==a.g)return o9(a,1),m9(a);lI(d);return!0};
E9=function(a,b,c){c=XI(a,c);b&&c==a.g&&(c.getVideoData().Ca=!0)};
F9=function(a,b,c){var d=XI(a,c);d&&(D9(a,c),fI(d,b,y(a.ak,a)),xA(d.V,b.A),d==a.g&&(o9(a,1),n9(a)))};
H9=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");a.b.isFullscreen()&&!a.za||"detailpage"!=a.V.b?(f=a.H,c=f.o,c.C={},c.A={},f.A=!1,a.H.reset(),b={video_id:b},e&&(b.autoplay="1"),d?(b.list=d,a.ea=!1,G9(a,b,void 0,void 0,void 0)):B9(a,b,1)):(e=c||{},e.lact=mr(),e.vis=dG(a.V),a.Sb||"gaming"==a.V.g?a.b.Aa("onPlayVideo",{videoId:b,sessionData:e,listId:d}):(a=f&&a.getVideoData().isLiveDestination?a.V.H:a.V.getVideoUrl(b,d),q("yt.player.exports.navigate")(a,e,!0),(window.ytspf||
{}).enabled?window.spf.navigate(a):wr(a)))};
G9=function(a,b,c,d,e){if(la(b)&&!fa(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},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;k9(a,b);b=a.A;a=y(a.hs,a);b.C=a;b.B&&Xi(b.C,0)};
TK=function(a){Br(a.V)&&!a.R&&l9(a);return!(!a.A||!a.A.hasNext())};
I9=function(a,b){C4(a).autonavState=b;a.b.Va("autonavchange",b)};
J9=function(a,b,c){!a.R||a.b.isFullscreen()&&!a.za?a.A?Br(a.V)&&!a.b.isFullscreen()?x9(a,"yt.www.watch.lists.next"):(a.A.hasNext(b)&&vK(a.A,tK(a.A)),a.A.B?A9(a,a.A.Gb(void 0,c),1):a.ea=!1):qJ(a.b)&&XI(a,1).getVideoData().R&&(b=Ki(XI(a,1).getVideoData().R,EK)[0],H9(a,b.Gb().videoId,b.Ha,b.Xg(),c)):a.b.Aa("onPlaylistNext")};
K9=function(a,b){if(a.R&&(!a.b.isFullscreen()||a.za))a.b.Aa("onPlaylistPrevious");else if(a.A)if(Br(a.V)&&!a.b.isFullscreen())x9(a,"yt.www.watch.lists.prev");else{var c=a.A;(c.G||b||0<=c.b-1)&&vK(a.A,uK(a.A));a.A.B?A9(a,a.A.Gb(),1):a.ea=!1}};
x9=function(a,b){var c=q(b);if(c){var d=w9();d&&d.list&&c();a.Ia=null}else a.Ia=b};
L9=function(a,b){!a.R||a.b.isFullscreen()&&!a.za?a.A&&(a.A.B?A9(a,a.A.Gb(b),1):a.ea=!1,vK(a.A,b)):a.b.Aa("onPlaylistIndex",b)};
w9=function(){var a=q("yt.www.watch.lists.getState");return a?a():null};
N9=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 fq(1E3*c,1E3*d,b);c.namespace=Y8.o;M9(a,[c],1);return!0};
M9=function(a,b,c){var d=XI(a,c);d&&(d.C.wb(b),c&&a.getPresentingPlayerType()!=c||oJ(a,"cuerangesadded",b))};
jq=function(a,b,c){var d=XI(a,c);if(d){for(var d=d.C,e=[],f=d.b.b,k=f.length-1;0<=k;k--){var l=f[k];if(l.namespace==b){var m=d.g.indexOf(l);0<=m&&d.g.splice(m,1);var n=d.b,m=n.b,n=Ab(m,l,n.g);0<=n&&pb(m,n);e.push(l)}}d.we();c&&a.getPresentingPlayerType()!=c||oJ(a,"cuerangesremoved",e)}};
S4=function(a){var b=Dq(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
P9=function(a,b,c){a.aa=b;c&&a.V.storeUserVolume&&!a.V.useMediaVolume&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(Mj("yt-player-volume",c),Mj("yt-player-volume",c,2592E3)));O9(a);a.V.useMediaVolume||(b=hc(b),a.V.storeUserVolume||(b.unstorable=!0),a.b.Aa("onVolumeChange",b))};
O9=function(a){var b=a.getVideoData();b.Sb||(a.o.setVolume(a.aa.volume*(a.V.useMediaVolume?vH.g:b.Db)/100),a.o.gi(a.aa.muted))};
Q9=function(a,b){var c=window.screen&&window.screen.orientation;if(a.V.experiments.Z("lock_fullscreen")&&c&&c.lock)if(b){var d=0==c.type.indexOf("portrait"),e=d;if(a.V.experiments.Z("lock_fullscreen_auto")){var f=p5(a.D);1>f?e=!0:1<f&&(e=!1)}if(!a.Ga||e!=d){if(c=c.lock(e?"portrait":"landscape"))c["catch"](r);a.Ga=!0}}else a.Ga&&(a.Ga=!1,c.unlock())};
R9=function(a,b){var c=!!b,d=!!a.Ya!=c;a.Ya=b;a.V.experiments.Z("legacy_player_fullscreen_order")?d&&(a.H.g("fsc"),a.V.M=c,a.D.nf()):(a.V.M=c,a.D.nf(),d&&a.H.g("fsc"));d&&(a.b.Va("fullscreentoggled",c),d=C4(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.$a.ye()&&(c.listId=a.$a.ye()),a.b.Aa("onFullscreenChange",c))};
oJ=function(a,b,c){a.b.Va(b,c);if(c&&HA(a.V)){var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&a.b.Aa(d,c)}};
Q4=function(a,b){var c=XI(a,b);c&&(2==a.K?m9(a):!a.V.experiments.Z("new_ended_replay")&&O(c.getPlayerState(),2)?a.seekTo(0):CI(c))};
S9=function(a){var b=a.g.getVideoData(),b=new vH({video_id:b.videoId,oauth_token:b.oauthToken});F9(a,b,1)};
D9=function(a,b){qC(a.ca);a.ca=0;var c=XI(a,b);c&&1!=a.K&&2!=a.K&&(zL(a.G),1==b&&h9(a,a.F),sI(c),oJ(a,"cuerangesremoved",a.B.C.b.b||[]),c.C.reset())};
X8=function(a,b,c){a.V.B&&(a.C||(a.C=new h5(a),f9(a,a.C)),i5(a.C,b,c),6!=a.K&&(a.C.Cb(a.$a)?(1!=a.K&&3!=a.K||!c||h9(a,a.F),b.length&&1!=a.K&&g9(a)):h9(a,a.C)))};
T9=function(a,b){if(a.V.experiments.Z("legacy_control_redirecting")){if(!nJ(a.$a))return;var c=a.da.play_pause?a.Ca:null;if(c){c.Bc("control_play");return}}else{c=a.getPresentingPlayerType();if(2==c){a.F&&a.F.Bc("control_play");return}if(3==c){a.C&&a.C.Bc("control_play");return}}Q4(a,b)};
osa=function(a,b){if(a.V.experiments.Z("legacy_control_redirecting")){if(!nJ(a.$a))return;var c=a.da.play_pause?a.Ca:null;if(c){c.Bc("control_pause");return}}else{c=a.getPresentingPlayerType();if(2==c){a.F&&a.F.Bc("control_pause");return}if(3==c){a.C&&a.C.Bc("control_pause");return}}a.pauseVideo(b)};
U9=function(a,b,c,d,e){var f=XI(a,e);if(!f||2!=f.J&&!vs(f.getVideoData())){if(a.V.experiments.Z("legacy_control_redirecting")){if(f=a.da.seek?a.Ca:null){f.Bc("control_seek",b);return}}else if(3==a.getPresentingPlayerType()&&a.C){a.C.Bc("control_seek",b);return}a.seekTo(b,c,d,e)}};
V9=function(a,b,c){a.sc=b;a.ha=c;a.b.Va("sizestylechange",b,c);a.D.nf()};
W9=function(a,b,c,d,e){c=a.V.Qa&&a.F&&b==a.F.Na?a.F.Ae(c,d):(a.V.Qa||e)&&a.C&&a.C.D&&b==a.C.Na?a.C.Ae(c,d):b&&c?(a=dJ(a.G,b))?a.Ae(c,d):null:null;return c};
X9=function(a,b,c){if(b){if(a.V.Qa&&a.F&&b==a.F.Na)return a.F.Uf();if((a.V.Qa||c)&&a.C&&a.C.D&&b==a.C.Na)return a.C.Uf()}else return b=CL(a.G),a.V.Qa&&a.F&&b.push(a.F.Na),(a.V.Qa||c)&&a.C&&a.C.D&&b.push(a.C.Na),b;return CL(a.G,b)};
Y9=function(a,b,c){if(!a.Za){c&&(d9(a),c9(a));a.Za=!0;c=XI(a);c.da=!0;c.o&&kv(c.o,"reloading",b);c=a.getVideoData();var d={};d.video_id=c.videoId;c.xa||(d.start=XI(a).getCurrentTime(),d.resume="1");d.autoplay=1;d.reload_count=c.O+1;d.reload_reason=b;B9(a,d)}};
Dn=Dn||{};aa=this;ma="closure_uid_"+(1E9*Math.random()>>>0);na=0;D=Date.now||function(){return+new Date};A(ua,Error);ua.prototype.name="CustomError";var qf;var Sa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Aa=/&/g,Ba=/</g,Ca=/>/g,Da=/"/g,Ea=/'/g,Fa=/\x00/g,za=/[\x00&<>"']/,La=/&([^;\s<&]+);?/g,hn={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},gn={"'":"\\'"},Oa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Wa=2147483648*Math.random()|0;var jb=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(w(a))return w(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},psa=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(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},E=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ne=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=w(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},Ki=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=w(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e},ff=Array.prototype.reduce?function(a,b,c,d){d&&(b=y(b,d));
return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
E(a,function(c,k){e=b.call(d,e,c,k,a)});
return e},Wh=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=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1},Xk=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=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};F.prototype.jb=!1;F.prototype.isDisposed=function(){return this.jb};
F.prototype.dispose=function(){this.jb||(this.jb=!0,this.T())};
F.prototype.T=function(){if(this.Ma)for(;this.Ma.length;)this.Ma.shift()()};var jc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");mc.prototype.stopPropagation=function(){this.g=!0};
mc.prototype.preventDefault=function(){this.gt=!1};oc[" "]=r;var sc;a:{var Z9=aa.navigator;if(Z9){var $9=Z9.userAgent;if($9){sc=$9;break a}}sc=""};var Dc=tc("Opera"),zf=tc("Trident")||tc("MSIE"),CF=tc("Edge"),LA=CF||zf,Is=tc("Gecko")&&!(Na(sc,"WebKit")&&!tc("Edge"))&&!(tc("Trident")||tc("MSIE"))&&!tc("Edge"),Cc=Na(sc,"WebKit")&&!tc("Edge"),m5=Cc&&tc("Mobile"),YF=tc("Macintosh"),JA=tc("Android"),Qea=vc(),mM=tc("iPad"),a$;a:{var b$="",c$=function(){var a=sc;if(Is)return/rv\:([^\);]+)(\)|;)/.exec(a);if(CF)return/Edge\/([\d\.]+)/.exec(a);if(zf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Cc)return/WebKit\/(\S+)/.exec(a);if(Dc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
c$&&(b$=c$?c$[1]:"");if(zf){var d$=wc();if(null!=d$&&d$>(0,window.parseFloat)(b$)){a$=String(d$);break a}}a$=b$}var xc=a$,qc={},e$=aa.document,Ac=e$&&zf?wc()||("CSS1Compat"==e$.compatMode?(0,window.parseInt)(xc,10):5):void 0;var cd=!zf||Bc(9),qsa=zf&&!zc("9");!Cc||zc("528");Is&&zc("1.9b")||zf&&zc("8")||Dc&&zc("9.5")||Cc&&zc("528");Is&&!zc("8")||zf&&zc("9");var rsa={wk:"click",jP:"rightclick",QL:"dblclick",IN:"mousedown",ON:"mouseup",NN:"mouseover",MN:"mouseout",LN:"mousemove",JN:"mouseenter",KN:"mouseleave",pP:"selectionchange",qP:"selectstart",QQ:"wheel",iN:"keypress",hN:"keydown",jN:"keyup",dL:"blur",yM:"focus",RL:"deactivate",zM:zf?"focusin":"DOMFocusIn",AM:zf?"focusout":"DOMFocusOut",uL:"change",dP:"reset",oP:"select",RP:"submit",WM:"input",UO:"propertychange",iM:"dragstart",dM:"drag",fM:"dragenter",hM:"dragover",gM:"dragleave",kM:"drop",eM:"dragend",
hQ:"touchstart",gQ:"touchmove",fQ:"touchend",eQ:"touchcancel",aL:"beforeunload",DL:"consolemessage",IL:"contextmenu",YL:"DOMContentLoaded",ERROR:"error",KM:"help",LOAD:"load",BN:"losecapture",vO:"orientationchange",ZO:"readystatechange",eP:"resize",lP:"scroll",qQ:"unload",jL:"canplay",kL:"canplaythrough",lM:"durationchange",pM:"emptied",ENDED:"ended",sN:"loadeddata",tN:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",YO:"ratechange",mP:"seeked",nP:"seeking",GP:"stalled",SP:"suspend",WP:"timeupdate",
JQ:"volumechange",NQ:"waiting",EM:"hashchange",yO:"pagehide",zO:"pageshow",NO:"popstate",JL:"copy",BO:"paste",OL:"cut",XK:"beforecopy",YK:"beforecut",ZK:"beforepaste",sO:"online",pO:"offline",MESSAGE:"message",CL:"connect",KK:Ec("AnimationStart"),IK:Ec("AnimationEnd"),JK:Ec("AnimationIteration"),kQ:Ec("TransitionEnd"),GO:"pointerdown",MO:"pointerup",FO:"pointercancel",JO:"pointermove",LO:"pointerover",KO:"pointerout",HO:"pointerenter",IO:"pointerleave",DM:"gotpointercapture",CN:"lostpointercapture",
TN:"MSGestureChange",UN:"MSGestureEnd",VN:"MSGestureHold",WN:"MSGestureStart",XN:"MSGestureTap",YN:"MSGotPointerCapture",ZN:"MSInertiaStart",$N:"MSLostPointerCapture",aO:"MSPointerCancel",bO:"MSPointerDown",cO:"MSPointerEnter",dO:"MSPointerHover",eO:"MSPointerLeave",fO:"MSPointerMove",gO:"MSPointerOut",hO:"MSPointerOver",iO:"MSPointerUp",TEXT:"text",TP:"textInput",AL:"compositionstart",BL:"compositionupdate",zL:"compositionend",uM:"exit",qN:"loadabort",rN:"loadcommit",uN:"loadredirect",vN:"loadstart",
wN:"loadstop",gP:"responsive",zP:"sizechanged",sQ:"unresponsive",IQ:"visibilitychange",NP:"storage",cM:"DOMSubtreeModified",ZL:"DOMNodeInserted",aM:"DOMNodeRemoved",bM:"DOMNodeRemovedFromDocument",$L:"DOMNodeInsertedIntoDocument",WL:"DOMAttrModified",XL:"DOMCharacterDataModified",$K:"beforeprint",yK:"afterprint"};A(Fc,mc);
Fc.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?Is&&(pc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(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.b=a;a.defaultPrevented&&this.preventDefault()};
Fc.prototype.stopPropagation=function(){Fc.L.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
Fc.prototype.preventDefault=function(){Fc.L.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,qsa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Gc="closure_listenable_"+(1E6*Math.random()|0),Ic=0;Nc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=Oc(e,b,c,d);return-1<b?(Mc(e[b]),pb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};var Yc="closure_lm_"+(1E6*Math.random()|0),gd={},ad=0,jd="__closure_events_fn_"+(1E9*Math.random()>>>0);A(H,F);H.prototype[Gc]=!0;h=H.prototype;h.Pf=function(a){this.ua=a};
h.addEventListener=function(a,b,c,d){Uc(this,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){ed(this,a,b,c,d)};
h.dispatchEvent=function(a){var b,c=this.ua;if(c){b=[];for(var d=1;c;c=c.ua)b.push(c),++d}c=this.Oa;d=a.type||a;if(w(a))a=new mc(a,c);else if(a instanceof mc)a.target=a.target||c;else{var e=a;a=new mc(d,c);kc(a,e)}var e=!0,f;if(b)for(var k=b.length-1;!a.g&&0<=k;k--)f=a.currentTarget=b[k],e=kd(f,d,!0,a)&&e;a.g||(f=a.currentTarget=c,e=kd(f,d,!0,a)&&e,a.g||(e=kd(f,d,!1,a)&&e));if(b)for(k=0;!a.g&&k<b.length;k++)f=a.currentTarget=b[k],e=kd(f,d,!1,a)&&e;return e};
h.T=function(){H.L.T.call(this);this.nd&&Sc(this.nd);this.ua=null};
h.N=function(a,b,c,d){return Pc(this.nd,String(a),b,!1,c,d)};
h.sa=function(a,b,c,d){return this.nd.remove(String(a),b,c,d)};ld.prototype.get=function(){var a;0<this.g?(this.g--,a=this.b,this.b=a.next,a.next=null):a=this.o();return a};var qd;var zd=new ld(function(){return new ud},function(a){a.reset()},100);
td.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.g=null),a.next=null);return a};
ud.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null};
ud.prototype.reset=function(){this.next=this.scope=this.b=null};var vd,xd=!1,yd=new td;Gd.prototype.reset=function(){this.context=this.g=this.A=this.b=null;this.o=!1};
var Hd=new ld(function(){return new Gd},function(a){a.reset()},100);
Fd.prototype.then=function(a,b,c){return Td(this,ka(a)?a:null,ka(b)?b:null,c)};
Cd(Fd);Fd.prototype.cancel=function(a){0==this.b&&Ad(function(){var b=new Zd(a);Vd(this,b)},this)};
Fd.prototype.G=function(a){this.b=0;Ed(this,2,a)};
Fd.prototype.H=function(a){this.b=0;Ed(this,3,a)};
Fd.prototype.F=function(){for(var a;a=Wd(this);)Xd(this,a,this.b,this.D);this.C=!1};
var ce=pd;A(Zd,ua);Zd.prototype.name="cancel";A(de,H);h=de.prototype;h.enabled=!1;h.Vc=null;h.Bz=function(){if(this.enabled){var a=D()-this.A;0<a&&a<.8*this.g?this.Vc=this.b.setTimeout(this.o,this.g-a):(this.Vc&&(this.b.clearTimeout(this.Vc),this.Vc=null),this.dispatchEvent("tick"),this.enabled&&(this.Vc=this.b.setTimeout(this.o,this.g),this.A=D()))}};
h.start=function(){this.enabled=!0;this.Vc||(this.Vc=this.b.setTimeout(this.o,this.g),this.A=D())};
h.stop=function(){this.enabled=!1;this.Vc&&(this.b.clearTimeout(this.Vc),this.Vc=null)};
h.T=function(){de.L.T.call(this);this.stop();delete this.b};A(he,F);h=he.prototype;h.wa=0;h.T=function(){he.L.T.call(this);this.stop();delete this.b;delete this.g};
h.start=function(a){this.stop();this.wa=fe(this.o,p(a)?a:this.A)};
h.ae=function(a){this.isActive()||this.start(a)};
h.stop=function(){this.isActive()&&ge(this.wa);this.wa=0};
h.isActive=function(){return 0!=this.wa};
h.iq=function(){this.wa=0;this.b&&this.b.call(this.g)};var Ze={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 re=/<[^>]*>|&[^;]+;/g,v0=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),we=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),ue=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]"),ve=/^http:\/\/.*/,Lba=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
te=/\s+/,xe=/[\d\u06f0-\u06f9]/;Ae.prototype.Kf=!0;Ae.prototype.Te=function(){return this.b};
Ae.prototype.toString=function(){return"Const{"+this.b+"}"};
var ze={};Ee.prototype.Kf=!0;var De={};Ee.prototype.Te=function(){return this.b};
var Xe=Fe(""),We=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;He.prototype.Kf=!0;He.prototype.Te=function(){return this.b};
He.prototype.rm=!0;He.prototype.ng=function(){return 1};
var Je=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,Ge={};Ke("about:blank");Ne.prototype.Kf=!0;Ne.prototype.Te=function(){return this.b};
Ne.prototype.rm=!0;Ne.prototype.ng=function(){return 1};
var Me={};Re.prototype.rm=!0;Re.prototype.ng=function(){return this.g};
Re.prototype.Kf=!0;Re.prototype.Te=function(){return this.b};
var Ve=/^[a-zA-Z0-9-]+$/,Ye={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},ssa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Qe={};Te("<!DOCTYPE html>",0);Te("",0);Te("<br>",0);h=jf.prototype;h.clone=function(){return new jf(this.x,this.y)};
h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
h.scale=function(a,b){var c=ia(b)?b:a;this.x*=a;this.y*=c;return this};h=lf.prototype;h.clone=function(){return new lf(this.width,this.height)};
h.aspectRatio=function(){return this.width/this.height};
h.isEmpty=function(){return!(this.width*this.height)};
h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
h.scale=function(a,b){var c=ia(b)?b:a;this.width*=a;this.height*=c;return this};var Df=!zf||Bc(9),Nf=!Is&&!zf||zf&&Bc(9)||Is&&zc("1.9.1");zf&&zc("9");var Rf=zf||Dc||Cc;var vf={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"};h=of.prototype;h.ma=function(a){return w(a)?this.b.getElementById(a):a};
h.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(String(a))};
h.Dz=function(a,b,c){return Cf(this.b,arguments)};
h.createElement=function(a){return Gf(this.b,a)};
h.appendChild=Hf;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};
h.removeNode=Lf;h.contains=Tf;var ng={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},mg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=og.prototype;h.cb=function(){return this.right-this.left};
h.getHeight=function(){return this.bottom-this.top};
h.clone=function(){return new og(this.top,this.right,this.bottom,this.left)};
h.contains=function(a){return this&&a?a instanceof og?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};
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};
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};
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};
h.scale=function(a,b){var c=ia(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};h=pg.prototype;h.clone=function(){return new pg(this.left,this.top,this.width,this.height)};
h.contains=function(a){return a instanceof jf?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};
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};
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};
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};
h.scale=function(a,b){var c=ia(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};A(ug,F);h=ug.prototype;h.subscribe=function(a,b,c){var d=this.g[a];d||(d=this.g[a]=[]);var e=this.Ac;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.Ac=e+3;d.push(e);return e};
h.Nc=function(a){var b=this.b[a];if(b){var c=this.g[b];0!=this.A?(this.o.push(a),this.b[a+1]=r):(c&&qb(c,a),delete this.b[a],delete this.b[a+1],delete this.b[a+2])}return!!b};
h.Rb=function(a,b){var c=this.g[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.B)for(e=0;e<c.length;e++){var k=c[e];wg(this.b[k+1],this.b[k+2],d)}else{this.A++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.b[k+1].apply(this.b[k+2],d)}finally{if(this.A--,0<this.o.length&&0==this.A)for(;c=this.o.pop();)this.Nc(c)}}return 0!=e}return!1};
h.clear=function(a){if(a){var b=this.g[a];b&&(E(b,this.Nc,this),delete this.g[a])}else this.b.length=0,this.g={}};
h.Pb=function(a){if(a){var b=this.g[a];return b?b.length:0}a=0;for(b in this.g)a+=this.Pb(b);return a};
h.T=function(){ug.L.T.call(this);this.clear();this.o.length=0};var yg="StopIteration"in aa?aa.StopIteration:{message:"StopIteration",stack:""};xg.prototype.next=function(){throw yg;};
xg.prototype.tc=function(){return this};h=Cg.prototype;h.Pb=function(){return this.ya};
h.Ra=function(){Fg(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};
h.Ua=function(){Fg(this);return this.b.concat()};
h.isEmpty=function(){return 0==this.ya};
h.clear=function(){this.g={};this.ff=this.ya=this.b.length=0};
h.remove=function(a){return Dg(this.g,a)?(delete this.g[a],this.ya--,this.ff++,this.b.length>2*this.ya&&Fg(this),!0):!1};
h.get=function(a,b){return Dg(this.g,a)?this.g[a]:b};
h.set=function(a,b){Dg(this.g,a)||(this.ya++,this.b.push(a),this.ff++);this.g[a]=b};
h.forEach=function(a,b){for(var c=this.Ua(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
h.clone=function(){return new Cg(this)};
h.tc=function(a){Fg(this);var b=0,c=this.ff,d=this,e=new xg;e.next=function(){if(c!=d.ff)throw Error("The map has changed since the iterator was created");if(b>=d.b.length)throw yg;var e=d.b[b++];return a?e:d.g[e]};
return e};var Kg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Yg=/#|$/,ah=/[?&]($|#)/;M.prototype.toString=function(){var a=[],b=this.A;b&&a.push(lh(b,f$,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(lh(b,f$,!0),"@"),a.push(xa(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.o)this.g&&"/"!=c.charAt(0)&&a.push("/"),a.push(lh(c,"/"==c.charAt(0)?tsa:usa,!0));(c=this.b.toString())&&a.push("?",c);(c=this.F())&&a.push("#",lh(c,vsa));return a.join("")};
M.prototype.clone=function(){return new M(this)};
M.prototype.J=function(){return this.b.toString()};
M.prototype.F=function(){return this.G};
var f$=/[#\/\?@]/g,usa=/[\#\?:]/g,tsa=/[\#\?]/g,mh=/[\#\?@]/g,vsa=/#/g;h=jh.prototype;h.Pb=function(){vh(this);return this.ya};
h.remove=function(a){vh(this);a=xh(this,a);return Eg(this.b,a)?(this.g=null,this.ya=this.ya-this.b.get(a).length,this.b.remove(a)):!1};
h.clear=function(){this.b=this.g=null;this.ya=0};
h.isEmpty=function(){vh(this);return 0==this.ya};
h.Ua=function(){vh(this);for(var a=this.b.Ra(),b=this.b.Ua(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.Ra=function(a){vh(this);var b=[];if(w(a))yh(this,a)&&(b=sb(b,this.b.get(xh(this,a))));else{a=this.b.Ra();for(var c=0;c<a.length;c++)b=sb(b,a[c])}return b};
h.set=function(a,b){vh(this);this.g=null;a=xh(this,a);yh(this,a)&&(this.ya=this.ya-this.b.get(a).length);this.b.set(a,[b]);this.ya=this.ya+1;return this};
h.get=function(a,b){var c=a?this.Ra(a):[];return 0<c.length?String(c[0]):b};
h.toString=function(){if(this.g)return this.g;if(!this.b)return"";for(var a=[],b=this.b.Ua(),c=0;c<b.length;c++)for(var d=b[c],e=xa(d),d=this.Ra(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+xa(d[f]));a.push(k)}return this.g=a.join("&")};
h.clone=function(){var a=new jh;a.g=this.g;this.b&&(a.b=this.b.clone(),a.ya=this.ya);return a};var Ah=void 0;var Uh=Cc?"webkit":Is?"moz":zf?"ms":Dc?"o":"",g$=q("yt.dom.getNextId_");if(!g$){g$=function(){return++wsa};
g.ca("yt.dom.getNextId_",g$,void 0);var wsa=0};var ci={enablejsapi:1},di={},ei={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};fi.prototype.clone=function(){var a=new fi,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ea(c)?a[b]=hc(c):a[b]=c}return a};var ni=ii("loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",ri=ii("loadCastFramework"),oi=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"],h$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"],li=hi()?h$.concat(oi):oi.concat(h$);var hA=tc("Firefox"),rA=vc()||tc("iPod"),qA=tc("iPad"),sA=tc("Android")&&!(uc()||tc("Firefox")||tc("Opera")||tc("Silk")),gm=uc(),rz=tc("Safari")&&!(uc()||tc("Coast")||tc("Opera")||tc("Edge")||tc("Silk")||tc("Android"))&&!(vc()||tc("iPad")||tc("iPod"));var Fi=D(),wi=null,Di=Array(50),Ci=-1,Ei=!1;var Ri={};var Ti=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.ca("yt.config_",Ti,void 0);g.ca("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var bj=window.yt&&window.yt.msgs_||q("window.ytcfg.msgs")||{};g.ca("yt.msgs_",bj,void 0);
var ta=function(a,b){var c=b||{},d=a in bj?bj[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},Dq=window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};var xsa=q("yt.pubsub.instance_")||new ug;ug.prototype.subscribe=ug.prototype.subscribe;ug.prototype.unsubscribeByKey=ug.prototype.Nc;ug.prototype.publish=ug.prototype.Rb;ug.prototype.clear=ug.prototype.clear;g.ca("yt.pubsub.instance_",xsa,void 0);var fj=q("yt.pubsub.subscribedKeys_")||{};g.ca("yt.pubsub.subscribedKeys_",fj,void 0);var hj=q("yt.pubsub.topicToKeys_")||{};g.ca("yt.pubsub.topicToKeys_",hj,void 0);var gj=q("yt.pubsub.isSynchronous_")||{};g.ca("yt.pubsub.isSynchronous_",gj,void 0);
var ej=q("yt.pubsub.skipSubId_")||null;g.ca("yt.pubsub.skipSubId_",ej,void 0);var pj=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,qj=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;vj.prototype.set=v;vj.prototype.get=v;vj.prototype.remove=v;A(wj,vj);wj.prototype.Pb=function(){var a=0;Ag(this.tc(!0),function(){a++});
return a};
wj.prototype.tc=v;wj.prototype.clear=function(){var a=Bg(this.tc(!0)),b=this;E(a,function(a){b.remove(a)})};A(xj,wj);h=xj.prototype;h.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};
h.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
h.get=function(a){a=this.b.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
h.remove=function(a){this.b.removeItem(a)};
h.Pb=function(){return this.b.length};
h.tc=function(a){var b=0,c=this.b,d=new xg;d.next=function(){if(b>=c.length)throw yg;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
h.clear=function(){this.b.clear()};
h.key=function(a){return this.b.key(a)};A(yj,xj);A(zj,xj);Aj.prototype.set=function(a,b){p(b)?this.b.set(a,ig(b)):this.b.remove(a)};
Aj.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return eg(b)}catch(c){throw"Storage: Invalid value was encountered";}};
Aj.prototype.remove=function(a){this.b.remove(a)};A(Bj,Aj);Bj.prototype.set=function(a,b){Bj.L.set.call(this,a,Dj(b))};
Bj.prototype.g=function(a){a=Bj.L.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Bj.prototype.get=function(a){if(a=this.g(a)){if(a=a.data,!p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};A(Ej,Bj);Ej.prototype.set=function(a,b,c){if(b=Dj(b)){if(c){if(c<D()){Ej.prototype.remove.call(this,a);return}b.expiration=c}b.creation=D()}Ej.L.set.call(this,a,b)};
Ej.prototype.g=function(a,b){var c=Ej.L.g.call(this,a);if(c)if(!b&&Fj(c))Ej.prototype.remove.call(this,a);else return c};A(Gj,Ej);var Jj,i$=new yj;Jj=i$.isAvailable()?new Gj(i$):null;var Lj,j$=new zj;Lj=j$.isAvailable()?new Gj(j$):null;var Gk={RK:"atp",AP:"ska",XO:"que",jO:"mus",wP:"sus"};var bk=null;"undefined"!=typeof window.XMLHttpRequest?bk=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(bk=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var ek={"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"};mk.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};
mk.prototype.B=function(a,b){a(Error("Request error: "+b.status))};
mk.prototype.D=function(a){a(Error("request timed out"))};A(uk,F);uk.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.ea.subscribe(a,b,c)};
uk.prototype.Fa=function(a,b,c){return this.isDisposed()?!1:vg(this.ea,a,b,c)};
uk.prototype.Nc=function(a){return this.isDisposed()?!1:this.ea.Nc(a)};
uk.prototype.Y=function(a,b){return this.isDisposed()?!1:this.ea.Rb.apply(this.ea,arguments)};A(vk,uk);h=vk.prototype;h.Gc=function(){return this.screens};
h.contains=function(a){return!!sk(this.screens,a)};
h.get=function(a){return a?tk(this.screens,a):null};
h.start=v;h.Th=v;h.remove=v;h.Ph=v;h.info=function(a){Bi(this.C,a)};A(zk,uk);var k$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=zk.prototype;h.start=function(){!this.b&&(0,window.isNaN)(this.g)&&this.uu()};
h.stop=function(){this.b&&(this.b.abort(),this.b=null);(0,window.isNaN)(this.g)||(Zi(this.g),this.g=window.NaN)};
h.T=function(){this.stop();zk.L.T.call(this)};
h.uu=function(){this.g=window.NaN;this.b=fk(nk(this.D,"/pairing/get_screen"),{method:"POST",Ib:{pairing_code:this.C},timeout:5E3,tb:y(this.eH,this),onError:y(this.dH,this),Lc:y(this.fH,this)})};
h.eH=function(a,b){this.b=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.Y("pairingComplete",new Gi(c))};
h.dH=function(a){this.b=null;a.status&&404==a.status?this.o>=k$.length?this.Y("pairingFailed",Error("DIAL polling timed out")):(a=k$[this.o],this.g=Xi(y(this.uu,this),a),this.o++):this.Y("pairingFailed",Error("Server error "+a.status))};
h.fH=function(){this.b=null;this.Y("pairingFailed",Error("Server not responding"))};A(Ak,wj);Ak.prototype.set=function(a,b){this.g.set(this.b+a,b)};
Ak.prototype.get=function(a){return this.g.get(this.b+a)};
Ak.prototype.remove=function(a){this.g.remove(this.b+a)};
Ak.prototype.tc=function(a){var b=this.g.tc(!0),c=this,d=new xg;d.next=function(){for(var d=b.next();d.substr(0,c.b.length)!=c.b;)d=b.next();return a?d.substr(c.b.length):c.g.get(d)};
return d};h=Dk.prototype;h.Pb=function(){return this.b.Pb()};
h.remove=function(a){return this.b.remove(Ek(a))};
h.clear=function(){this.b.clear()};
h.isEmpty=function(){return this.b.isEmpty()};
h.contains=function(a){return Eg(this.b,Ek(a))};
h.Ra=function(){return this.b.Ra()};
h.clone=function(){return new Dk(this)};
h.tc=function(){return this.b.tc(!1)};var ysa={},Jk=/\s*;\s*/;h=Ik.prototype;h.isEnabled=function(){return window.navigator.cookieEnabled};
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+'"');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(D()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(Jk),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
h.remove=function(a,b,c){var d=p(this.get(a));this.set(a,"",0,b,c);return d};
h.Ua=function(){return Kk(this).keys};
h.Ra=function(){return Kk(this).values};
h.isEmpty=function(){return!this.b.cookie};
h.Pb=function(){return this.b.cookie?(this.b.cookie||"").split(Jk).length:0};
h.clear=function(){for(var a=Kk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Rk=new Ik("undefined"==typeof window.document?null:window.document);Rk.g=3950;var bl,Uk="";A(el,vk);h=el.prototype;h.start=function(){dl(this)&&this.Y("screenChange");!Nj("yt-remote-lounge-token-expiration")&&fl(this);Zi(this.b);this.b=Xi(y(this.start,this),1E4)};
h.Th=function(a,b){dl(this);wk(this,a);gl(this,!1);this.Y("screenChange");b(a);a.token||fl(this)};
h.remove=function(a,b){var c=dl(this);yk(this,a)&&(gl(this,!1),c=!0);b(a);c&&this.Y("screenChange")};
h.Ph=function(a,b,c,d){var e=dl(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,gl(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.Y("screenChange")};
h.T=function(){Zi(this.b);el.L.T.call(this)};
h.Nz=function(a){dl(this);var b=this.screens.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)}gl(this,!b);b&&Bi(this.C,"Missed "+b+" lounge tokens.")};
h.Mz=function(a){Bi(this.C,"Requesting lounge tokens failed: "+a)};A(il,uk);h=il.prototype;h.start=function(){var a=(0,window.parseInt)(Nj("yt-remote-fast-check-period")||"0",10);(this.A=D()-144E5<a?0:a)?ml(this):(this.A=D()+3E5,Mj("yt-remote-fast-check-period",this.A),this.Sm())};
h.isEmpty=function(){return cc(this.b)};
h.update=function(){hl("Updating availability on schedule.");var a=this.C(),b=Qb(this.b,function(b,d){return b&&!!tk(a,d)},this);
ll(this,b)};
h.T=function(){Zi(this.o);this.o=window.NaN;this.g&&(this.g.abort(),this.g=null);il.L.T.call(this)};
h.Sm=function(){Zi(this.o);this.o=window.NaN;this.g&&this.g.abort();var a=nl(this);if(Ub(a)){var b=nk(this.B,"/pairing/get_screen_availability");this.g=ok(this.B,b,{lounge_token:Yb(a).join(",")},y(this.PE,this,a),y(this.OE,this))}else ll(this,{}),ml(this)};
h.PE=function(a,b){this.g=null;var c=Yb(nl(this));if(Gb(c,Yb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;ll(this,d);ml(this)}else this.rb("Changing Screen set during request."),this.Sm()};
h.OE=function(a){this.rb("Screen availability failed: "+a);this.g=null;ml(this)};
h.rb=function(a){Bi("OnlineScreenService",a)};A(pl,vk);h=pl.prototype;h.start=function(){this.g.start();this.b.start();this.screens.length&&(this.Y("screenChange"),this.b.isEmpty()||this.Y("onlineScreenChange"))};
h.Th=function(a,b,c){this.g.Th(a,b,c)};
h.remove=function(a,b,c){this.g.remove(a,b,c);this.b.update()};
h.Ph=function(a,b,c,d){this.g.contains(a)?this.g.Ph(a,b,c,d):(a="Updating name of unknown screen: "+a.name,Bi(this.C,a),d(Error(a)))};
h.Gc=function(a){return a?this.screens:sb(this.screens,ne(this.o,function(a){return!this.contains(a)},this))};
h.vu=function(){return ne(this.Gc(!0),function(a){return!!this.b.b[a.id]},this)};
h.wu=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new zk(this.B,a,b,c);f.subscribe("pairingComplete",y(function(a){Nb(f);d(ql(this,a))},this));
f.subscribe("pairingFailed",function(a){Nb(f);e(a)});
f.start();return y(f.stop,f)};
h.hH=function(a,b,c,d){fk(nk(this.B,"/pairing/get_screen"),{method:"POST",Ib:{pairing_code:a},timeout:5E3,tb:y(function(a,d){var e=new Gi(d.screen||{});if(!e.name||tl(this,e.name)){var f;a:{f=e.name;for(var m=2,n=b(f,m);tl(this,n);){m++;if(20<m)break a;n=b(f,m)}f=n}e.name=f}c(ql(this,e))},this),
onError:y(function(a){d(Error("pairing request failed: "+a.status))},this),
Lc:y(function(){d(Error("pairing request timed out."))},this)})};
h.T=function(){Nb(this.g);Nb(this.b);pl.L.T.call(this)};
h.fA=function(){ul(this);this.Y("screenChange");this.b.update()};
pl.prototype.dispose=pl.prototype.dispose;A(wl,uk);h=wl.prototype;h.Bj=function(a){this.o=a;this.Y("sessionScreen",this.o)};
h.Kc=function(a){this.isDisposed()||(a&&xl(this,""+a),this.o=null,this.Y("sessionScreen",null))};
h.info=function(a){Bi(this.K,a)};
h.Lf=v;h.Lj=v;h.yu=function(){return null};
h.stop=v;h.an=function(a){var b=this.g;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,y(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),y(function(){xl(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
h.T=function(){this.an("");wl.L.T.call(this)};A(zl,wl);h=zl.prototype;h.Lj=function(a){if(this.b){if(this.b==a)return;xl(this,"Overriding cast sesison with new session object");this.b.removeUpdateListener(this.C);this.b.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.B)}this.b=a;this.b.addUpdateListener(this.C);this.b.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.B);Al(this)};
h.Lf=function(a){this.info("launchWithParams no-op for Cast: "+ig(a))};
h.stop=function(){this.b?this.b.stop(y(function(){this.Kc()},this),y(function(){this.Kc(Error("Failed to stop receiver app."))},this)):this.Kc(Error("Stopping cast device witout session."))};
h.an=r;h.T=function(){this.info("disposeInternal");Zi(this.A);this.A=0;this.b&&(this.b.removeUpdateListener(this.C),this.b.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.B));this.b=null;zl.L.T.call(this)};
h.OF=function(a,b){if(!this.isDisposed())if(b){var c=fg(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+ig(c));switch(d){case "mdxSessionStatus":yl(this,c.screenId);break;default:xl(this,"Unknown youtube message: "+d)}}else xl(this,"Unable to parse message.")}else xl(this,"No data in message.")};
h.cq=function(a,b,c,d){sl(this.G,this.g.label,a,this.g.friendlyName,y(function(e){e?b(e):0<=d?(xl(this,"Screen "+a+" appears to be offline. "+d+" retries left."),Xi(y(this.cq,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
h.yu=function(){return this.b};
h.iH=function(a){this.isDisposed()||a||(xl(this,"Cast session died."),this.Kc())};A(Bl,wl);h=Bl.prototype;h.Lj=function(a){this.A=a;this.A.addUpdateListener(this.J)};
h.Lf=function(a){this.B=a;this.D()};
h.stop=function(){this.b();this.b=r;Zi(this.C);this.A?this.A.stop(y(this.Kc,this,null),y(this.Kc,this,"Failed to stop DIAL device.")):this.Kc()};
h.T=function(){this.b();this.b=r;Zi(this.C);this.A&&this.A.removeUpdateListener(this.J);this.A=null;Bl.L.T.call(this)};
h.lH=function(a){this.isDisposed()||a||(xl(this,"DIAL session died."),this.b(),this.b=r,this.Kc())};
h.sm=function(a){this.H=pk();if(this.B){var b=new window.chrome.cast.DialLaunchResponse(!0,Dl(this));a(b);Cl(this)}else this.D=y(function(){Zi(this.C);this.D=r;this.C=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,Dl(this));a(b);Cl(this)},this),this.C=Xi(y(function(){this.D()},this),100)};
h.AB=function(a,b){sl(this.G,this.F.receiver.label,a,this.g.friendlyName,y(function(a){a&&a.token?(this.Bj(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.sm(b)},this),y(function(a){xl(this,"Failed to get DIAL screen: "+a);
this.sm(b)},this))};A(El,wl);El.prototype.stop=function(){this.Kc()};
El.prototype.Lj=r;El.prototype.Lf=function(){Zi(this.b);this.b=window.NaN;var a=tk(this.G.Gc(),this.g.label);a?this.Bj(a):this.Kc(Error("No such screen"))};
El.prototype.T=function(){Zi(this.b);this.b=window.NaN;El.L.T.call(this)};A(Fl,uk);h=Fl.prototype;
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,y(this.zs,this),y(this.GE,this),d,e);c.customDialLaunchCallback=y(this.ZC,this);window.chrome.cast.initialize(c,y(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.A),yi(),this.g.subscribe("onlineScreenChange",y(this.xu,this)),this.o=Kl(this),window.chrome.cast.setCustomReceivers(this.o,r,y(function(a){this.rb("Failed to set initial custom receivers: "+ig(a))},this)),this.Y("yt-remote-cast2-availability-change",Il(this)),b(!0))},this),y(function(a){this.rb("Failed to initialize API: "+ig(a));
b(!1)},this))};
h.wG=function(a,b){Hl("Setting connected screen ID: "+a+" -> "+b);if(this.b){var c=this.b.o;if(!a||c&&c.id!=a)Hl("Unsetting old screen status: "+this.b.g.friendlyName),Nb(this.b),this.b=null}if(a&&b){if(!this.b){c=tk(this.g.Gc(),a);if(!c){Hl("setConnectedScreenStatus: Unknown screen.");return}var d=Gl(this,c);d||(Hl("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.o.push(d),
window.chrome.cast.setCustomReceivers(this.o,r,y(function(a){this.rb("Failed to set initial custom receivers: "+ig(a))},this)));
Hl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);Jl(this,new El(this.g,d),!0)}this.b.an(b)}else Hl("setConnectedScreenStatus: no screen.")};
h.xG=function(a){this.isDisposed()?this.rb("Setting connection data on disposed cast v2"):this.b?this.b.Lf(a):this.rb("Setting connection data without a session")};
h.kH=function(){this.isDisposed()?this.rb("Stopping session on disposed cast v2"):this.b?(this.b.stop(),Nb(this.b),this.b=null):Hl("Stopping non-existing session")};
h.requestSession=function(){window.chrome.cast.requestSession(y(this.zs,this),y(this.TE,this))};
h.T=function(){this.g.Fa("onlineScreenChange",y(this.xu,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.A);var a=ui,b=q("yt.mdx.remote.debug.handlers_");qb(b||[],a);Nb(this.b);Fl.L.T.call(this)};
h.rb=function(a){Bi("Controller",a)};
h.As=function(a,b){this.b==a&&(b||Jl(this,null),this.Y("yt-remote-cast2-session-change",b))};
h.DE=function(a,b){if(!this.isDisposed())if(a)switch(Hl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.b)if(this.b.g.label!=a.label)Hl("onReceiverAction_: Stopping active receiver: "+this.b.g.friendlyName),this.b.stop();else{Hl("onReceiverAction_: Casting to active receiver.");this.b.o&&this.Y("yt-remote-cast2-session-change",this.b.o);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:Jl(this,new El(this.g,a));
break;case window.chrome.cast.ReceiverType.DIAL:Jl(this,new Bl(this.g,a));break;case window.chrome.cast.ReceiverType.CAST:Jl(this,new zl(this.g,a));break;default:this.rb("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.b&&this.b.g.label==a.label?this.b.stop():this.rb("Stopping receiver w/o session: "+a.friendlyName)}else this.rb("onReceiverAction_ called without receiver.")};
h.ZC=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.rb("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.b?this.b.g:null;if(!c||c.label!=b.label)return this.rb("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.b.o)return Hl("Reselecting dial screen."),
this.Y("yt-remote-cast2-session-change",this.b.o),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.rb('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);Jl(this,new Bl(this.g,b))}b=this.b;b.F=a;return b.F.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(y(b.AB,b,(b.F.extraData||{}).screenId||null)):new window.Promise(y(b.sm,b))};
h.zs=function(a){if(!this.isDisposed()){Hl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.b)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)Hl("Got resumed cast session before resumed mdx connection."),Jl(this,new zl(this.g,b),!0);else{this.rb("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.b.g,d=tk(this.g.Gc(),c.label);d&&Hi(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(Hl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Nb(this.b),this.b=new zl(this.g,b),this.b.subscribe("sessionScreen",y(this.As,this,this.b)),this.b.Lf(null));this.b.Lj(a)}}};
h.jH=function(){return this.b?this.b.yu():null};
h.TE=function(a){this.isDisposed()||(this.rb("Failed to estabilish a session: "+ig(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&Jl(this,null))};
h.GE=function(a){Hl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=Il(this);this.B=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;Il(this)!=b&&this.Y("yt-remote-cast2-availability-change",Il(this))}};
h.xu=function(){if(!this.isDisposed()){var a=Il(this);this.o=Kl(this);Hl("Updating custom receivers: "+ig(this.o));window.chrome.cast.setCustomReceivers(this.o,r,y(function(){this.rb("Failed to set custom receivers.")},this));
var b=Il(this);b!=a&&this.Y("yt-remote-cast2-availability-change",b)}};
Fl.prototype.setLaunchParams=Fl.prototype.xG;Fl.prototype.setConnectedScreenStatus=Fl.prototype.wG;Fl.prototype.stopSession=Fl.prototype.kH;Fl.prototype.getCastSession=Fl.prototype.jH;Fl.prototype.requestSession=Fl.prototype.requestSession;Fl.prototype.init=Fl.prototype.init;Fl.prototype.dispose=Fl.prototype.dispose;var Vl=null,Xl=[];jm.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
jm.prototype.$q=function(){return this.event?!1===this.event.returnValue:!1};
jm.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
jm.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
var im={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var lm=q("yt.events.listeners_")||{};g.ca("yt.events.listeners_",lm,void 0);var nm=q("yt.events.counter_")||{count:0};g.ca("yt.events.counter_",nm,void 0);new Bm;Bm.prototype.set=function(a){this.b=a};
Bm.prototype.reset=function(){this.set(D())};
Bm.prototype.get=function(){return this.b};Cm.prototype.stringify=function(a){return gg(this.g,a)};
Cm.prototype.parse=function(a){return this.b(a)};h=Dm.prototype;h.get=function(a){a=Em(this,a);return this.b[a]};
h.set=function(a,b){a=Em(this,a);this.b[a]=b};
h.Pb=function(){return this.b.length};
h.isEmpty=function(){return 0==this.b.length};
h.clear=function(){this.g=this.b.length=0};
h.Ra=function(){for(var a=this.Pb(),b=this.Pb(),c=[],a=this.Pb()-a;a<b;a++)c.push(this.get(a));return c};
h.Ua=function(){for(var a=[],b=this.Pb(),c=0;c<b;c++)a[c]=c;return a};A(Fm,F);h=Fm.prototype;h.Pg=!1;h.Dh=0;h.Df=null;h.tg=function(a){this.b=arguments;this.Df||this.Dh?this.Pg=!0:Gm(this)};
h.stop=function(){this.Df&&(ge(this.Df),this.Df=null,this.Pg=!1,this.b=[])};
h.pause=function(){this.Dh++};
h.resume=function(){this.Dh--;this.Dh||!this.Pg||this.Df||(this.Pg=!1,Gm(this))};
h.T=function(){Fm.L.T.call(this);this.stop()};
h.eF=function(){this.Df=null;this.Pg&&!this.Dh&&(this.Pg=!1,Gm(this))};A(Hm,F);var Km=[];Hm.prototype.N=function(a,b,c,d){return Im(this,a,b,c,d)};
Hm.prototype.sa=function(a,b,c,d,e){if(fa(b))for(var f=0;f<b.length;f++)this.sa(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.A||this,c=Vc(c),d=!!d,b=Hc(a)?Tc(a.nd,String(b),c,d,e):a?(a=Xc(a))?Tc(a,b,c,d,e):null:null,b&&(fd(b),delete this.g[b.key]);return this};
Hm.prototype.T=function(){Hm.L.T.call(this);Om(this)};
Hm.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Qm.prototype.g=null;Qm.prototype.b=v;Qm.prototype.A=v;var l$;A(Sm,Qm);Sm.prototype.b=function(){var a=Tm(this);return a?new window.ActiveXObject(a):new window.XMLHttpRequest};
Sm.prototype.A=function(){var a={};Tm(this)&&(a[0]=!0,a[1]=!0);return a};
l$=new Sm;h=Um.prototype;h.Ef=null;h.Ad=!1;h.Tg=null;h.wn=null;h.Fh=null;h.ug=null;h.Ue=null;h.$e=null;h.Mf=null;h.Xb=null;h.Rh=0;h.Bd=null;h.Wj=null;h.Ff=null;h.sh=-1;h.qt=!0;h.tf=!1;h.Ll=0;h.Fj=null;var bn={},$m={};h=Um.prototype;h.setTimeout=function(a){this.B=a};
h.bG=function(a){a=a.target;var b=this.Fj;b&&3==En(a)?b.tg():this.mu(a)};
h.mu=function(a){try{if(a==this.Xb)a:{var b=En(this.Xb),c=this.Xb.g,d=this.Xb.getStatus();if(zf&&!Bc(10)||Cc&&!zc("420+")){if(4>b)break a}else if(3>b||3==b&&!Dc&&!In(this.Xb))break a;this.tf||4!=b||7==c||(8==c||0>=d?this.b.yd(3):this.b.yd(2));mn(this);var e=this.Xb.getStatus();this.sh=e;var f=In(this.Xb);(this.Ad=200==e)?(4==b&&dn(this),this.C?(fn(this,b,f),Dc&&this.Ad&&3==b&&(this.A.N(this.g,"tick",this.VF),this.g.start())):cn(this,f),this.Ad&&!this.tf&&(4==b?this.b.Aj(this):(this.Ad=!1,Ym(this)))):
(this.Ff=400==e&&0<f.indexOf("Unknown SID")?3:0,an(),dn(this),en(this))}}catch(k){}finally{}};
h.VF=function(){var a=En(this.Xb),b=In(this.Xb);this.Rh<b.length&&(mn(this),fn(this,a,b),this.Ad&&4!=a&&Ym(this))};
h.pF=function(a){ln(y(this.oF,this,a),0)};
h.oF=function(a){this.tf||(mn(this),cn(this,a),Ym(this))};
h.Gs=function(a){ln(y(this.nF,this,a),0)};
h.nF=function(a){this.tf||(dn(this),this.Ad=a,this.b.Aj(this),this.b.yd(4))};
h.cancel=function(){this.tf=!0;dn(this)};
h.GF=function(){this.Tg=null;var a=D();0<=a-this.wn?(2!=this.ug&&this.b.yd(3),dn(this),this.Ff=2,an(),en(this)):kn(this,this.wn-a)};h=rn.prototype;h.Il=null;h.Mc=null;h.Gj=!1;h.kq=null;h.Oi=null;h.Jl=null;h.Kl=null;h.Wc=null;h.ke=-1;h.rh=null;h.ih=null;h.connect=function(a){this.Kl=a;a=sn(this.b,null,this.Kl);an();this.kq=D();var b=this.b.F;null!=b?(this.rh=b[0],(this.ih=b[1])?(this.Wc=1,tn(this)):(this.Wc=2,vn(this))):(ph(a,"MODE","init"),this.Mc=new Um(this,0,void 0,void 0,void 0),this.Mc.Ef=this.Il,Xm(this.Mc,a,!1,null,!0),this.Wc=0)};
h.Py=function(a){if(a)this.Wc=2,vn(this);else{an();var b=this.b;b.pd=b.Pe.ke;co(b,9)}a&&this.yd(2)};
h.bl=function(a){return this.b.bl(a)};
h.jq=function(){return!1};
h.vs=function(a,b){this.ke=a.sh;if(0==this.Wc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.pd=this.ke;co(c,2);return}this.rh=c[0];this.ih=c[1]}else c=this.b,c.pd=this.ke,co(c,2);else if(2==this.Wc)if(this.Gj)an(),this.Jl=D();else if("11111"==b){if(an(),this.Gj=!0,this.Oi=D(),c=this.Oi-this.kq,!zf||Bc(10)||500>c)this.ke=200,this.Mc.cancel(),an(),un(this.b,this,!0)}else an(),this.Oi=this.Jl=D(),this.Gj=!1};
h.Aj=function(){this.ke=this.Mc.sh;if(this.Mc.Ad)0==this.Wc?this.ih?(this.Wc=1,tn(this)):(this.Wc=2,vn(this)):2==this.Wc&&((!zf||Bc(10)?!this.Gj:200>this.Jl-this.Oi)?(an(),un(this.b,this,!1)):(an(),un(this.b,this,!0)));else{0==this.Wc?an():2==this.Wc&&an();var a=this.b;a.pd=this.ke;co(a,2)}};
h.Kh=function(){return this.b.Kh()};
h.isActive=function(){return this.b.isActive()};
h.yd=function(a){this.b.yd(a)};A(wn,H);var Fn=/^https?$/i,zsa=["POST","PUT"];h=wn.prototype;
h.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.O+"; newUri="+a);b=b?b.toUpperCase():"GET";this.O=a;this.C="";this.g=0;this.K=!1;this.o=!0;this.b=this.J?this.J.b():l$.b();this.H=this.J?Rm(this.J):Rm(l$);this.b.onreadystatechange=y(this.lq,this);try{this.getStatus(),this.M=!0,this.b.open(b,String(a),!0),this.M=!1}catch(f){this.getStatus();Cn(this,f);return}a=c||"";var e=this.headers.clone();d&&Ig(d,function(a,b){e.set(b,a)});
d=fb(e.Ua(),zn);c=aa.FormData&&a instanceof aa.FormData;!kb(zsa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.b.setRequestHeader(b,a)},this);
this.aa&&(this.b.responseType=this.aa);"withCredentials"in this.b&&this.b.withCredentials!==this.G&&(this.b.withCredentials=this.G);try{Hn(this),0<this.B&&(this.R=yn(this.b),this.getStatus(),this.R?(this.b.timeout=this.B,this.b.ontimeout=y(this.mq,this)):this.D=fe(this.mq,this.B,this)),this.getStatus(),this.F=!0,this.b.send(a),this.F=!1}catch(f){this.getStatus(),Cn(this,f)}};
h.mq=function(){"undefined"!=typeof Dn&&this.b&&(this.C="Timed out after "+this.B+"ms, aborting",this.g=8,this.getStatus(),this.dispatchEvent("timeout"),nn(this,8))};
h.T=function(){this.b&&(this.o&&(this.o=!1,this.A=!0,this.b.abort(),this.A=!1),Bn(this,!0));wn.L.T.call(this)};
h.lq=function(){this.isDisposed()||(this.M||this.F||this.A?Gn(this):this.CE())};
h.CE=function(){Gn(this)};
h.isActive=function(){return!!this.b};
h.getStatus=function(){try{return 2<En(this)?this.b.status:-1}catch(a){return-1}};h=Jn.prototype;h.oh=null;h.yc=null;h.Ab=null;h.Hl=null;h.Qi=null;h.lp=null;h.aj=null;h.zh=0;h.UB=0;h.$b=null;h.Qe=null;h.ge=null;h.wf=null;h.Pe=null;h.Vj=null;h.Cg=-1;h.lr=-1;h.pd=-1;h.ph=0;h.cg=0;h.vf=8;var eo=new H;A(Ln,mc);A(Mn,mc);A(Nn,mc);h=Jn.prototype;h.connect=function(a,b,c,d,e){an();this.Hl=b;this.oh=c||{};d&&p(e)&&(this.oh.OSID=d,this.oh.OAID=e);this.Pe=new rn(this);this.Pe.Il=null;this.Pe.g=this.B;this.Pe.connect(a)};
h.jq=function(){return 0==this.b};
h.Ds=function(a){this.Qe=null;Yn(this,a)};
h.Cs=function(){this.ge=null;this.Ab=new Um(this,0,this.o,"rpc",this.C);this.Ab.Ef=null;this.Ab.Ll=0;var a=this.lp.clone();nh(a,"RID","rpc");nh(a,"SID",this.o);nh(a,"CI",this.Vj?"0":"1");nh(a,"AID",this.Cg);Pn(this,a);if(!zf||Bc(10))nh(a,"TYPE","xmlhttp"),Xm(this.Ab,a,!0,this.aj,!1);else{nh(a,"TYPE","html");var b=this.Ab,c=!!this.aj;b.ug=3;b.Ue=qh(a.clone());jn(b,c)}};
h.vs=function(a,b){if(0!=this.b&&(this.Ab==a||this.yc==a))if(this.pd=a.sh,this.yc==a&&3==this.b)if(7<this.vf){var c;try{c=this.B.parse(b)}catch(f){c=null}if(fa(c)&&3==c.length)if(0==c[0])a:{if(!this.ge){if(this.Ab)if(this.Ab.Fh+3E3<this.yc.Fh)Sn(this),this.Ab.cancel(),this.Ab=null;else break a;ao(this);an()}}else this.lr=c[1],0<this.lr-this.Cg&&37500>c[2]&&this.Vj&&0==this.cg&&!this.wf&&(this.wf=ln(y(this.sC,this),6E3));else co(this,11)}else b!=ysa.PL.b&&co(this,11);else if(this.Ab==a&&Sn(this),!B(b)){c=
this.B.parse(b);fa(c);for(var d=0;d<c.length;d++){var e=c[d];this.Cg=e[0];e=e[1];2==this.b?"c"==e[0]?(this.o=e[1],this.aj=e[2],e=e[3],null!=e?this.vf=e:this.vf=6,this.b=3,this.$b&&this.$b.xp(this),this.lp=sn(this,this.Kh()?this.aj:null,this.Hl),Zn(this)):"stop"==e[0]&&co(this,7):3==this.b&&("stop"==e[0]?co(this,7):"noop"!=e[0]&&this.$b&&this.$b.wp(this,e),this.cg=0)}}};
h.sC=function(){null!=this.wf&&(this.wf=null,this.Ab.cancel(),this.Ab=null,ao(this),an())};
h.Aj=function(a){var b;if(this.Ab==a)Sn(this),this.Ab=null,b=2;else if(this.yc==a)this.yc=null,b=1;else return;this.pd=a.sh;if(0!=this.b)if(a.Ad)1==b?(D(),eo.dispatchEvent(new Mn(eo,a.Mf?a.Mf.length:0)),Tn(this),this.A.length=0):Zn(this);else{var c=a.Ff,d;if(!(d=3==c||7==c||0==c&&0<this.pd)){if(d=1==b)this.yc||this.Qe||1==this.b||2<=this.ph?d=!1:(this.Qe=ln(y(this.Ds,this,a),$n(this,this.ph)),this.ph++,d=!0);d=!(d||2==b&&ao(this))}if(d)switch(c){case 1:co(this,5);break;case 4:co(this,10);break;case 3:co(this,
6);break;case 7:co(this,12);break;default:co(this,2)}}};
h.kz=function(a){if(!kb(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};
h.HG=function(a){a?an():(an(),bo(this,8))};
h.bl=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new wn;a.G=!1;return a};
h.isActive=function(){return!!this.$b&&this.$b.isActive(this)};
h.yd=function(){eo.dispatchEvent(new Nn(eo))};
h.Kh=function(){return!(!zf||Bc(10))};
h=fo.prototype;h.xp=function(){};
h.wp=function(){};
h.vp=function(){};
h.Uk=function(){};
h.Xp=function(){return{}};
h.isActive=function(){return!0};A(ho,F);ho.prototype.B=function(){500<this.b&&24E4>2*this.b&&(this.b*=2);this.A();this.o&&this.start()};
ho.prototype.start=function(){this.g.ae(this.b);this.o=D()+this.b};
ho.prototype.stop=function(){this.g.stop();this.o=0};
ho.prototype.isActive=function(){return this.g.isActive()};A(io,fo);h=io.prototype;h.subscribe=function(a,b,c){return this.o.subscribe(a,b,c)};
h.Fa=function(a,b,c){return vg(this.o,a,b,c)};
h.Nc=function(a){return this.o.Nc(a)};
h.Y=function(a,b){return this.o.Rb.apply(this.o,arguments)};
h.dispose=function(){this.H||(this.H=!0,Nb(this.o),ko(this),Nb(this.g),this.g=null)};
h.isDisposed=function(){return this.H};
h.connect=function(a,b,c){if(!this.b||2!=this.b.b){this.G="";this.g.stop();this.B=a||null;this.A=b||0;a=this.J+"/test";b=this.J+"/bind";var d=new Jn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.$b=null);d.$b=this;this.b=d;e?this.b.connect(a,b,this.C,e.o,e.Cg):c?this.b.connect(a,b,this.C,c.sessionId,c.arrayId):this.b.connect(a,b,this.C)}};
h.sendMessage=function(a,b){var c={_sc:a};b&&kc(c,b);this.g.isActive()||2==(this.b?this.b.b:0)?this.D.push(c):lo(this)&&Un(this.b,c)};
h.xp=function(){go(this.g);this.B=null;this.A=0;if(this.D.length){var a=this.D;this.D=[];for(var b=0,c=a.length;b<c;++b)Un(this.b,a[b])}this.Y("handlerOpened")};
h.vp=function(a,b){var c=2==b&&401==this.b.pd;if(4!=b&&!c){if(6==b||410==this.b.pd)c=this.g,c.g.stop(),c.b=500;this.g.start()}this.Y("handlerError",b)};
h.Uk=function(a,b,c){if(!this.g.isActive())this.Y("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.D.push(d)}};
h.Xp=function(){var a={v:2};this.G&&(a.gsessionid=this.G);0!=this.A&&(a.ui=""+this.A);0!=this.F&&(a.ui=""+this.F);this.B&&kc(a,this.B);return a};
h.wp=function(a,b){"S"==b[0]?this.G=b[1]:"gracefulReconnect"==b[0]?(go(this.g),this.g.start(),Rn(this.b)):this.Y("handlerMessage",new Am(b[0],b[1]))};
h.cH=function(){this.g.isActive();var a=this.b,b=0;a.Ab&&b++;a.yc&&b++;0!=b?this.g.start():this.connect(this.B,this.A)};h=no.prototype;h.Pb=function(){return this.b.length+this.g.length};
h.isEmpty=function(){return lb(this.b)&&lb(this.g)};
h.clear=function(){this.b=[];this.g=[]};
h.contains=function(a){return kb(this.b,a)||kb(this.g,a)};
h.remove=function(a){var b;b=this.b;var c=psa(b,a);0<=c?(pb(b,c),b=!0):b=!1;return b||qb(this.g,a)};
h.Ra=function(){for(var a=[],b=this.b.length-1;0<=b;--b)a.push(this.b[b]);for(var c=this.g.length,b=0;b<c;++b)a.push(this.g[b]);return a};so.prototype.reset=function(a){this.listId="";uo(this);this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.b=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.g=a.trackData,this.o=a.playerTime,this.A=a.playerTimeAt)};
so.prototype.Wa=function(){return 1==this.b};
so.prototype.clone=function(){return new so(yo(this))};A(Bo,uk);h=Bo.prototype;h.play=function(){1==this.g?(this.b?this.b.play(null,r,y(function(){this.rb("Failed to play video with cast v2 channel.");Do(this,"play")},this)):Do(this,"play"),Io(this,1,wo(Co(this))),Jo(this)):Ho(this,this.play)};
h.pause=function(){1==this.g?(this.b?this.b.pause(null,r,y(function(){this.rb("Failed to pause video with cast v2 channel.");Do(this,"pause")},this)):Do(this,"pause"),Io(this,2,wo(Co(this))),Jo(this)):Ho(this,this.pause)};
h.seekTo=function(a){if(1==this.g){if(this.b){var b=Co(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;b.Wa()||3==b.b?c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.b.seek(c,r,y(function(){this.rb("Failed to seek in video with cast v2 channel.");Do(this,"seekTo",{newTime:a})},this))}else Do(this,"seekTo",{newTime:a});
Io(this,3,a);Jo(this)}else Ho(this,ra(this.seekTo,a))};
h.stop=function(){if(1==this.g){this.b?this.b.stop(null,r,y(function(){this.rb("Failed to stop video with cast v2 channel.");Do(this,"stopVideo")},this)):Do(this,"stopVideo");
var a=Co(this);uo(a);Eo(this,a);Jo(this)}else Ho(this,this.stop)};
h.setVolume=function(a,b){if(1==this.g){var c=Co(this);if(this.o){if(c.volume!=a){var d=Math.round(a)/100;this.o.setReceiverVolumeLevel(d,y(function(){Ko("set receiver volume: "+d)},this),y(function(){this.rb("failed to set receiver volume.")},this))}c.muted!=b&&this.o.setReceiverMuted(b,y(function(){Ko("set receiver muted: "+b)},this),y(function(){this.rb("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);Do(this,"setVolume",e)}c.muted=b;c.volume=a;Eo(this,c)}else Ho(this,ra(this.setVolume,a,b))};
h.bn=function(a,b){if(1==this.g){var c=Co(this);if(b){c.g={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind};var d={videoId:a,style:ig(b.style)};kc(d,c.g);Do(this,"setSubtitlesTrack",d)}else d={videoId:a},Do(this,"setSubtitlesTrack",d);Eo(this,c)}else Ho(this,ra(this.bn,a,b))};
h.tu=function(a,b){if(1==this.g){Do(this,"setAudioTrack",{videoId:a,audioTrackId:b.Wb.id});var c=Co(this);c.audioTrackId=b.Wb.id;Eo(this,c)}else Ho(this,ra(this.tu,a,b))};
h.dispose=function(){if(3!=this.g){var a=this.g;this.g=3;this.Y("proxyStateChange",a,this.g)}Bo.L.dispose.call(this)};
h.T=function(){Zi(this.B);this.B=window.NaN;Go(this);this.A=null;this.C.clear();Ao(this,null);Bo.L.T.call(this)};
h.Dn=function(a){if((a!=this.g||2==a)&&3!=this.g&&0!=a){var b=this.g;this.g=a;this.Y("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)qo(this.C).apply(this);else 3==a&&this.dispose()}};
h.pE=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.B))&&this.Y(a)};
h.xC=function(a){if(!a)this.Ah(null),Ao(this,null);else if(this.o.receiver.volume){a=this.o.receiver.volume;var b=Co(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)Ko("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,Eo(this,b)}};
h.Ah=function(a){Ko("Cast media: "+!!a);this.b&&this.b.removeUpdateListener(this.G);if(this.b=a)this.b.addUpdateListener(this.G),Lo(this),Jo(this)};
h.wC=function(a){a?(Lo(this),Jo(this)):this.Ah(null)};
h.rb=function(a){Bi("CP",a)};A(No,uk);h=No.prototype;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);p(e)&&(k.currentIndex=e);c&&(this.Ta.listId=c);this.Ta.videoId=d;this.Ta.index=e||0;this.Ta.state=3;vo(this.Ta,f);this.D="UNSUPPORTED";Oo("Connecting with setPlaylist and params: "+ig(k));this.b.connect({method:"setPlaylist",params:ig(k)},a,Vk())}else Oo("Connecting without params"),this.b.connect({},a,Vk());Qo(this)};
h.dispose=function(){this.isDisposed()||(this.Y("beforeDispose"),Po(this,3));No.L.dispose.call(this)};
h.T=function(){Ro(this);To(this);So(this);Zi(this.G);this.G=window.NaN;Zi(this.H);this.H=window.NaN;this.o=null;pm(this.O);this.O.length=0;this.b.dispose();No.L.T.call(this);this.D=this.F=this.g=this.Ta=this.b=null};
h.Gz=function(){this.B(2)};
h.BC=function(){Oo("Channel opened");this.M&&(this.M=!1,So(this),this.K=Xi(y(function(){Oo("Timing out waiting for a screen.");this.B(1)},this),15E3));
$k(jo(this.b),this.aa)};
h.yC=function(){Oo("Channel closed");(0,window.isNaN)(this.A)?al(!0):al();this.dispose()};
h.zC=function(a){al();(0,window.isNaN)(this.C())?(Oo("Channel error: "+a+" without reconnection"),this.dispose()):(this.M=!0,Oo("Channel error: "+a+" with reconnection in "+this.C()+" ms"),Po(this,2))};
h.AC=function(a){a.params?Oo("Received: action="+a.action+", params="+ig(a.params)):Oo("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=eg(a.params.devices);this.g=Ki(a,function(a){return new Hk(a)});
a=!!fb(this.g,function(a){return"LOUNGE_SCREEN"==a.type});
Xo(this,a);break;case "loungeScreenConnected":Xo(this,!0);break;case "loungeScreenDisconnected":rb(this.g,function(a){return"LOUNGE_SCREEN"==a.type});
Xo(this,!1);break;case "remoteConnected":var b=new Hk(eg(a.params.device));fb(this.g,function(a){return b?a.id==b.id:!1})||ob(this.g,b);
break;case "remoteDisconnected":b=new Hk(eg(a.params.device));rb(this.g,function(a){return b?a.id==b.id:!1});
break;case "gracefulDisconnect":break;case "playlistModified":Zo(this,a);break;case "nowPlaying":ap(this,a);break;case "onStateChange":$o(this,a);break;case "onVolumeChanged":bp(this,a);break;case "onSubtitlesTrackChanged":Yo(this,a);break;case "nowAutoplaying":this.F=a.params.videoId;break;case "autoplayDismissed":break;case "autoplayUpNext":this.F=a.params.videoId;break;case "onAutoplayModeChanged":this.D=a.params.autoplayMode;break;default:Oo("Unrecognized action: "+a.action)}};
h.jG=function(){if(this.o){var a=this.o;this.o=null;this.Ta.videoId!=a&&Uo(this,"getNowPlaying")}};
No.prototype.subscribe=No.prototype.subscribe;No.prototype.unsubscribeByKey=No.prototype.Nc;No.prototype.ga=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.C())?lo(this.b)&&(0,window.isNaN)(this.A)&&(a=1):a=2);return a};
No.prototype.getProxyState=No.prototype.ga;No.prototype.B=function(a){Oo("Disconnecting with "+a);Ro(this);this.Y("beforeDisconnect",a);1==a&&al();ko(this.b,a);this.dispose()};
No.prototype.disconnect=No.prototype.B;No.prototype.ca=function(){var a=this.Ta;this.o&&(a=this.Ta.clone(),xo(a,this.o,a.index));return yo(a)};
No.prototype.getPlayerContextData=No.prototype.ca;No.prototype.ha=function(a){var b=new so(a);b.videoId&&b.videoId!=this.Ta.videoId&&(this.o=b.videoId,Zi(this.G),this.G=Xi(y(this.jG,this),5E3));var c=[];this.Ta.listId==b.listId&&this.Ta.videoId==b.videoId&&this.Ta.index==b.index||c.push("remoteQueueChange");this.Ta.b==b.b&&this.Ta.volume==b.volume&&this.Ta.muted==b.muted&&wo(this.Ta)==wo(b)&&ig(this.Ta.g)==ig(b.g)||c.push("remotePlayerChange");this.Ta.reset(a);E(c,function(a){this.Y(a)},this)};
No.prototype.setPlayerContextData=No.prototype.ha;No.prototype.R=function(){var a=this.b.C.id,b=fb(this.g,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
No.prototype.getOtherConnectedRemoteId=No.prototype.R;No.prototype.C=function(){var a=this.b;return a.g.isActive()?a.g.o-D():window.NaN};
No.prototype.getReconnectTimeout=No.prototype.C;No.prototype.X=function(){return this.D||"UNSUPPORTED"};
No.prototype.getAutoplayMode=No.prototype.X;No.prototype.ba=function(){return this.F||""};
No.prototype.getAutoplayVideoId=No.prototype.ba;No.prototype.la=function(){if(!(0,window.isNaN)(this.C())){var a=this.b.g;ie(a.g);a.start()}};
No.prototype.reconnect=No.prototype.la;No.prototype.da=function(a,b){Uo(this,a,b);Wo(this)};
No.prototype.sendMessage=No.prototype.da;A(cp,vk);h=cp.prototype;h.Gc=function(a){return this.ac.$_gs(a)};
h.contains=function(a){return!!this.ac.$_c(a)};
h.get=function(a){return this.ac.$_g(a)};
h.start=function(){this.ac.$_st()};
h.Th=function(a,b,c){this.ac.$_a(a,b,c)};
h.remove=function(a,b,c){this.ac.$_r(a,b,c)};
h.Ph=function(a,b,c,d){this.ac.$_un(a,b,c,d)};
h.T=function(){for(var a=0,b=this.b.length;a<b;++a)this.ac.$_ubk(this.b[a]);this.b.length=0;this.ac=null;cp.L.T.call(this)};
h.gH=function(){this.Y("screenChange")};
h.cE=function(){this.Y("onlineScreenChange")};
pl.prototype.$_st=pl.prototype.start;pl.prototype.$_gspc=pl.prototype.hH;pl.prototype.$_gsppc=pl.prototype.wu;pl.prototype.$_c=pl.prototype.contains;pl.prototype.$_g=pl.prototype.get;pl.prototype.$_a=pl.prototype.Th;pl.prototype.$_un=pl.prototype.Ph;pl.prototype.$_r=pl.prototype.remove;pl.prototype.$_gs=pl.prototype.Gc;pl.prototype.$_gos=pl.prototype.vu;pl.prototype.$_s=pl.prototype.subscribe;pl.prototype.$_ubk=pl.prototype.Nc;var dp=null,ep=null,rp=null,jp=[];var Hp=/^https?:\/\/(([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*qa[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie)?\.com\/|(m\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|(?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,
xH=/^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]+)?([\/\?\#]|$)/,Oca=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,vba=/^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(\/+|\?|#|$)/,
CA=/^((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?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([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]+)?([\/\?\#]|$))/,
$p=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,uv=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.youtube-nocookie\.com\/api\/ads\/trueview_redirect|www\.googleadservices\.com\/trueview_inred)/,Zp=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul|www\.youtube\.com\/pagead\/psul)/,
uG=/^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|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com|xfx7\.com)(:[0-9]+)?([\/\?\#]|$)/,oA=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([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]+)?([\/\?\#]|$))/,
yba=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Jp=/^https?:\/\/((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|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([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]+)?([\/\?\#]|$))/;var Kp=["2mdn.net"];var Vz=rA||qA;var cq={},bq=0;var eq=1;fq.prototype.getId=function(){return this.wa};
fq.prototype.getId=fq.prototype.getId;fq.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)};A(iq,uk);h=iq.prototype;h.wb=function(a,b){for(var c=0;c<a.length;c++)a[c].namespace=this.Na;this.b.wb(a,b)};
h.create=function(){this.D||(this.Cb(this.b),I(this.b.Da(),this.Na+"-created"),this.b.addEventListener("crn_"+this.Na,this.Yd,this),this.b.addEventListener("crx_"+this.Na,this.re,this),this.D=!0)};
h.destroy=function(){this.loaded&&this.unload();oe(this.b.Da(),this.Na+"-created");this.b.removeEventListener("crn_"+this.Na,this.Yd,this);this.b.removeEventListener("crx_"+this.Na,this.re,this);this.D=!1;this.Y("destroyed",this.Na)};
h.load=function(){this.loaded=!0;I(this.b.Da(),this.Na+"-loaded");this.Y("loaded",this.Na)};
h.unload=function(){this.loaded=!1;oe(this.b.Da(),this.Na+"-loaded");this.Y("unloaded",this.Na)};
h.Yd=function(){};
h.re=function(){};
h.Bc=function(){};
h.log=function(a){yv(this.b,this.logEvent,a)};
h.ci=function(){return null};
h.Ae=function(){};
h.Uf=function(){return[]};
h.Cb=function(){return!1};
h.Pm=function(a,b){this.F&&this.F.Bc&&this.F.Bc.apply(this.F,arguments)};
h.zj=function(){};var Hda={HK:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"ERROR_AUTHENTICATION_EXPIRED",OK:"ERROR_AUTHENTICATION_MALFORMED",PK:"ERROR_AUTHENTICATION_MISSING",VK:"ERROR_BAD_REQUEST",iL:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",sL:"ERROR_CGI_PARAMS_MALFORMED",tL:"ERROR_CGI_PARAMS_MISSING",UL:"YTP_DEVICE_FALLBACK",sM:"YTP_ERROR_LICENSE",xM:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",BM:"YTP_ERROR_FORMAT_UNAVALIABLE",CM:"YTP_ERROR_GEO_FAILURE",QM:"YTP_ERROR_GENERIC_WITHOUT_LINK",SM:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
RM:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",gN:"YTP_ERROR_INVALID_DRM_MESSAGE",nN:"LEARN_MORE",oO:"YTP_ERROR_NOT_SIGNED_IN",VO:"YTP_ERROR_PURCHASE_NOT_FOUND",WO:"YTP_ERROR_PURCHASE_REFUNDED",bP:"YTP_ERROR_RENTAL_EXPIRED",nL:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",oL:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",qL:"YTP_ERROR_CAST_TOKEN_FAILED",pL:"YTP_ERROR_CAST_TOKEN_EXPIRED",rL:"YTP_ERROR_CAST_TOKEN_MALFORMED",tP:"YTP_ERROR_SERVER_ERROR",MP:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",OP:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
PP:"YTP_ERROR_STREAMING_NOT_ALLOWED",QP:"YTP_ERROR_STREAMING_UNAVAILABLE",iP:"YTP_ERROR_RETRYABLE_ERROR",dQ:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",cQ:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",tQ:"YTP_ERROR_UNSUPPORTED_DEVICE",uQ:"YTP_ERROR_UNUSUAL_ACTIVITY",EQ:"YTP_ERROR_VIDEO_FORBIDDEN",FQ:"YTP_ERROR_VIDEO_NOT_FOUND"},sq={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"};var wba={xK:"adunit",TL:"detailpage",nM:"editpage",oM:"embedded",mN:"leanback",QO:"previewpage",SO:"profilepage",rQ:"unplugged"};var zH,L5;var m$=sc,n$=m$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!n$||2>n$.length)zH=void 0;else{var o$=m$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);zH=o$&&6==o$.length?Number(o$[5].replace("_",".")):0}(L5=0<=zH)&&0<=sc.search("Safari")&&sc.search("Version");var Asa=L5&&4>zH?.1:0,hma=new uq;uq.prototype.b=null;uq.prototype.getCurrentTime=function(){return this.currentTime||0};
uq.prototype.g=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};wq.prototype.Wa=function(){return O(this,8)&&!O(this,64)&&!O(this,2)};var rs=[1,2,3,4,5],ps={LIFE_CYCLE_CREATED:1,LIFE_CYCLE_READY:2,LIFE_CYCLE_TESTING:4,LIFE_CYCLE_TESTING_STARTING:3,LIFE_CYCLE_LIVE:6,LIFE_CYCLE_LIVE_STARTING:5,LIFE_CYCLE_COMPLETE:8,LIFE_CYCLE_COMPLETE_STARTING:7};A(Kq,uk);Kq.prototype.A=function(){this.g.isActive()&&ie(this.g)};
Kq.prototype.B=function(){var a={headers:{"Content-Type":"application/json"},Dc:{alt:"json",key:this.D},postBody:this.F,format:"JSON",timeout:1E4,tb:y(this.H,this),onError:y(this.o,this),Lc:y(this.o,this)};this.C&&(a.headers["X-Goog-Visitor-Id"]=this.C);gk(this.G,a)};
Kq.prototype.H=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.Y("payload",a),this.b=7500+Math.floor(15E3*Math.random()),this.g.start(this.b)):this.o())};
Kq.prototype.o=function(){this.isDisposed()||(this.Y("error"),192E4>this.b&&(this.b*=2),this.g.start(this.b))};var r5=16/9,Bsa=[.25,.5,1,1.25,1.5,2];A(Mq,F);h=Mq.prototype;h.Ba=function(a,b){p(b)?Kf(a,this.element,b):a.appendChild(this.element)};
h.detach=function(){Lf(this.element)};
h.update=function(a){for(var b in a)this.va(b,a[b])};
h.va=function(a,b){var c=this.ua["{{"+a+"}}"];c&&Oq(this,c[0],c[1],b)};
h.T=function(){this.pa={};this.ua={};this.detach();Mq.L.T.call(this)};
Mq.g=1;Mq.b=function(){return"ytp-svg-"+Mq.g++};A(P,Mq);h=P.prototype;h.Nb=function(a,b){this.va(b||"content",a)};
h.show=function(){this.g||(Rq(this.element,""),this.g=!0)};
h.oa=function(){this.g&&(Rq(this.element,"none"),this.g=!1)};
h.gb=function(a){a?this.show():this.oa()};
h.N=function(a,b,c){return this.S(this.element,a,b,c)};
h.S=function(a,b,c,d){c=y(c,d||this);d={target:a,type:b,listener:c};this.aa.push(d);a.addEventListener(b,c);return d};
h.sa=function(a){for(var b=0;b<this.aa.length;b++)if(this.aa[b]==a){a=this.aa.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
h.focus=function(){Zf(this.element)||this.element.hasAttribute("tabindex");this.element.focus()};
h.T=function(){for(;this.aa.length;){var a=this.aa.pop();a.target.removeEventListener(a.type,a.listener)}P.L.T.call(this)};var $q=null,er=null,Zq=null;var fr=D().toString();var sr={log_event:"events",log_interaction:"interactions"},qr={},rr={},or=0,pr=q("yt.logging.transport.logsQueue_")||{};g.ca("yt.logging.transport.logsQueue_",pr,void 0);A(Er,P);Er.prototype.o=function(a){if(!Vq(a)||Q(this.b).experiments.Z("disable_fresca_video_navigation"))Ar(a,this.b,!0);else{var b=a.currentTarget.getAttribute("href");H9(this.b.app,b.substring(b.length-11),void 0,void 0,void 0,void 0);xm(a)}};A(Fr,P);h=Fr.prototype;h.TB=function(a){if(!Vq(a)||Q(this.o).experiments.Z("disable_fresca_video_navigation"))Ar(a,this.o,!0);else{var b=a.currentTarget.getAttribute("href");H9(this.o.app,b.substring(b.length-11),void 0,void 0,void 0,void 0);xm(a)}};
h.DC=function(){this.A=!0;this.oa()};
h.show=function(){var a=!this.g;Fr.L.show.call(this);a&&xs(this.o)};
h.oa=function(){var a=this.g;Fr.L.oa.call(this);a&&xs(this.o)};
h.T=function(){Ob(this.b);Fr.L.T.call(this)};A(Kr,P);Kr.prototype.D=function(a){var b;b=this.b;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;K(this.element,"ytp-fresca-inline-countdown",b&&!0);K(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.b.startTime-Math.floor(D()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.C)){this.C=a;Pr(this,this.b,!0);return}Lr(this.b)||this.va("countdown",Qr(this.b.startTime));Zi(this.B);this.B=Xi(y(this.D,this),1E3)}};
Kr.prototype.T=function(){Zi(this.B);Kr.L.T.call(this)};var p$={Mw:["BC","AD"],Lw:["Before Christ","Anno Domini"],Bx:"JFMAMJJASOND".split(""),Xx:"JFMAMJJASOND".split(""),Co:"January February March April May June July August September October November December".split(" "),Lo:"January February March April May June July August September October November December".split(" "),Io:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Mo:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Wo:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Oo:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Jo:"Sun Mon Tue Wed Thu Fri Sat".split(" "),No:"Sun Mon Tue Wed Thu Fri Sat".split(" "),lO:"SMTWTFS".split(""),Yx:"SMTWTFS".split(""),Rx:["Q1","Q2","Q3","Q4"],Ix:["1st quarter","2nd quarter","3rd quarter","4th quarter"],ho:["AM","PM"],xk:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],To:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Hw:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],zk:6,my:[5,6],Ak:5},bs=p$,
bs=p$;Ur.prototype.clone=function(){return new Ur(this.C,this.B,this.b,this.g,this.o,this.A)};
Ur.prototype.times=function(a){return new Ur(this.C*a,this.B*a,this.b*a,this.g*a,this.o*a,this.A*a)};
h=Xr.prototype;h.Rp=bs.zk;h.Sp=bs.Ak;h.clone=function(){var a=new Xr(this.date);a.Rp=this.Rp;a.Sp=this.Sp;return a};
h.getFullYear=function(){return this.date.getFullYear()};
h.getMonth=function(){return this.date.getMonth()};
h.getDate=function(){return this.date.getDate()};
h.getTime=function(){return this.date.getTime()};
h.getDay=function(){return this.date.getDay()};
h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
h.getUTCMonth=function(){return this.date.getUTCMonth()};
h.getUTCDate=function(){return this.date.getUTCDate()};
h.getUTCHours=function(){return this.date.getUTCHours()};
h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
h.toString=function(){return[this.getFullYear(),Pa(this.getMonth()+1,2),Pa(this.getDate(),2)].join("")+""};
h.valueOf=function(){return this.date.valueOf()};var hs=[/^\'(?:[^\']|\'\')*(\'|$)/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
es.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.o-as(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],f=0;f<this.g.length;++f){var k=this.g[f].text;1==this.g[f].type?c.push(ks(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var gs=!1;ls.prototype.isLive=function(){return"LIVE"==this.g};
ls.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.g};
ls.prototype.getVideoUrl=function(){return this.C};os.prototype.b=function(){return this.A};A(ts,iq);h=ts.prototype;h.Cb=function(){return zs(this.b.getVideoData(),"fresca_module")};
h.create=function(a){ts.L.create.call(this);var b=Q(this.b);Xz()?(this.G=this.o=!1,this.H&&(this.B=new Kr(this.b),qw(this.b,this.B.element,4)),this.A=a||null,this.A||(a=this.b.getVideoData(),this.A=new Kq(a.videoId,a.visitorData||Vi("VISITOR_DATA",""),b.Ge)),this.A.subscribe("payload",this.EE,this),this.A.subscribe("error",this.rs,this),this.b.addEventListener("presentingplayerstatechange",this.Yu,this)):gI(this.b.app.g,"html5.unsupportedlive","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nolive.1")};
h.destroy=function(){this.b.removeEventListener("presentingplayerstatechange",this.Yu,this);Ob(this.A,this.B);this.g=null;ts.L.destroy.call(this)};
h.Yu=function(a){this.g&&(this.G=O(a.state,2),Iq(us(this.b))&&this.A.A(),ys(this,this.g))};
h.rs=function(){if(!this.o){var a=this.b.getVideoData();a.hlsvp||a.D?Q(this.b).experiments.Z("disable_fresca_error_fallback")||(this.o=!0,mq(this)):(Bs(this,new os(this.b.getVideoData().isLiveDefaultBroadcast)),ys(this,this.g))}};
h.EE=function(a){if(!a||a.error)this.rs();else{var b=this.g?this.g.broadcastId:"",c=this.b.getVideoData();Bs(this,new os(c.isLiveDefaultBroadcast,a));this.C=this.C||c.isLiveDefaultBroadcast&&""!=b&&b!=this.g.broadcastId;if(6!=this.g.state||(c.hlsvp||c.D)&&!this.C){if(this.C&&ws(this,this.g)&&(a=this.g.broadcastId.substring(0,11),a!=c.videoId)){H9(this.b.app,a,void 0,void 0,!0,!0);return}ys(this,this.g)}else this.C=!1,a={video_id:c.videoId},c.isLiveDestination&&(a.is_live_destination="1"),this.b.ik(a)}};var Ds=zf&&Cs();var Ms={},it=/[^\d]+$/,jt={cm:1,"in":1,mm:1,pc:1,pt:1},kt={em:1,ex:1};mt.prototype.N=function(a,b,c,d){c=y(c,d||this.g);a=om(a,b,c);this.b.push(a);return a};
mt.prototype.sa=function(a){pm(a);qb(this.b,a)};A(qt,F);h=qt.prototype;h.start=function(){this.stop();this.o=!1;var a=rt(this),b=tt(this);a&&!b&&this.b.mozRequestAnimationFrame?(this.wa=Uc(this.b,"MozBeforePaint",this.g),this.b.mozRequestAnimationFrame(null),this.o=!0):this.wa=a&&b?a.call(this.b,this.g):this.b.setTimeout(od(this.g),20)};
h.stop=function(){if(this.isActive()){var a=rt(this),b=tt(this);a&&!b&&this.b.mozRequestAnimationFrame?fd(this.wa):a&&b?b.call(this.b,this.wa):this.b.clearTimeout(this.wa)}this.wa=null};
h.isActive=function(){return null!=this.wa};
h.Cz=function(){this.o&&this.wa&&fd(this.wa);this.wa=null;this.B.call(this.A,D())};
h.T=function(){this.stop();qt.L.T.call(this)};var ut={},vt=null;A(Bt,H);h=Bt.prototype;h.play=v;h.stop=v;h.pause=v;h.Wa=function(){return 1==this.b};
h.xj=function(){this.Sc("begin")};
h.Bh=function(){this.Sc("end")};
h.Cc=function(){this.Sc("finish")};
h.Sc=function(a){this.dispatchEvent(a)};A(Ct,Bt);h=Ct.prototype;h.play=function(a){if(a||0==this.b)this.progress=0,this.g=this.o;else if(this.Wa())return!1;wt(this);this.startTime=a=D();-1==this.b&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.B=this.startTime;this.progress||this.xj();this.Sc("play");-1==this.b&&this.Sc("resume");this.b=1;var b=oa(this);b in ut||(ut[b]=this);zt();At(this,a);return!0};
h.stop=function(a){wt(this);this.b=0;a&&(this.progress=1);Dt(this,this.progress);this.Sc("stop");this.Bh()};
h.pause=function(){this.Wa()&&(wt(this),this.b=-1,this.Sc("pause"))};
h.T=function(){0==this.b||this.stop(!1);this.Sc("destroy");Ct.L.T.call(this)};
h.destroy=function(){this.dispose()};
h.Fm=function(){this.Sc("animate")};
h.Sc=function(a){this.dispatchEvent(new Et(a,this))};
A(Et,mc);Ht.prototype.g=ye;A(Ot,F);h=Ot.prototype;h.wb=function(a){this.we();var b=this.b;if(1<a.length&&a.length>b.b.length)b.b=b.b.concat(a),b.b.sort(b.g);else for(var c=0;c<a.length;c++){var d=a[c];!b.b.length||0<b.g(d,b.b[b.b.length-1])?b.b.push(d):Hb(b.b,d,b.g)}this.o=window.NaN;this.we()};
h.Uh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.g.indexOf(c);0<=d&&this.g.splice(d,1);var e=this.b,d=e.b,c=Ab(d,c,e.g);0<=c&&pb(d,c)}}this.we()};
h.reset=function(){this.af=this.C=!1;this.A.stop();this.b.b=[];this.g=[];this.we();this.B=null};
h.we=function(){this.D=!0;if(!this.F){for(var a=3;this.D&&a;){this.D=!1;this.F=!0;if(this.af&&!this.C){this.A.stop();var b=this.G();O(b,32)&&this.J.start();for(var c=O(this.G(),2)?0x8000000000000:1E3*this.M(),d=O(b,2),e=[],f=[],k=0;k<this.g.length;k++){var l=this.g[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(Rt(this,f));if(d)b=Kt(this.b,0x7ffffffffffff),b=b.concat(Mt(this.b));else if(this.o<=c&&b.Wa()&&!O(b,16)&&!O(b,32)){b=this.b;d=c;f=[];for(k=Lt(b,this.o);k<b.b.length&&
!(l=b.b[k],(l.end<=d||l.contains(d))&&f.push(l),l.start>d);++k);b=f}else b=Kt(this.b,c);e=e.concat(Qt(this,b));this.o=c;!this.C&&this.B&&(this.B=null);c=e;for(e=0;e<c.length;e++)b=c[e],d=b[1],1==b[0]?(d.b&&d.b.Rb("onEnter",d),this.H("crn_"+d.namespace,d)):(d.b&&d.b.Rb("onExit",d),this.H("crx_"+d.namespace,d))}this.F=!1;a--}this.G().Wa()&&(a=Nt(this.b,this.o),null!=a&&0x7ffffffffffff>a&&(a=(a-this.o)/this.K(),this.A.start(a)))}};
h.T=function(){this.B=this.b=this.g=null;Ot.L.T.call(this)};var eu={NL:"current",nO:"new"};qu.prototype.update=function(){var a=this.o.g()||0,b=Gu(this.o);if(a!=this.b||vu(this,a,b)){if(a<this.b||a-this.b>b-this.B+2||vu(this,a,b))ru(this),this.g=a;this.B=b;this.b=a}};wu.prototype.B=v;wu.prototype.g=function(){return{ps:this.b.g,el:this.b.b}};
wu.prototype.send=function(){if(!this.o){var a;a=this.g();a=Wg(this.B(),a);this.b.na&&this.videoData.visitorData&&Yj(a)?fk(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):Yp(a);this.o=!0}};
wu.prototype.A=v;A(xu,wu);xu.prototype.B=function(){return this.b.baseYtUrl+"set_awesome"};
xu.prototype.g=function(){var a=xu.L.g.call(this);sa(a,this.b.o);sa(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.b.ga,framer:this.b.Fe,list:this.videoData.Oe||this.videoData.playlistId,w:df(this.videoData.Gd/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:tu(this.C),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.Eo});this.videoData.adFormat&&(a.adformat=this.videoData.adFormat);
var b;(b=(b=this.videoData.referrer)?b.slice(0,128):"")&&(a.referrer=b);if(this.b.experiments.Z("legacy_autoplay_flag")?this.b.aa:this.videoData.J)a.autoplay="1";this.b.Ob&&(a.authuser=this.b.Ob);this.b.pageId&&(a.pageid=this.b.pageId);this.videoData.Ca&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);sa(a,xu.L.g.call(this));sa(a,this.b.o);return a};
xu.prototype.A=function(){if(this.o||!this.b.Ub||this.b.dc||!this.videoData.lengthSeconds)return!1;var a=Math.min(.8*this.videoData.lengthSeconds,180);return tu(this.C)>=a};var Zaa={QK:"auto",ZP:"tiny",oN:"light",EP:"small",wx:"medium",lN:"large",JM:"hd720",FM:"hd1080",GM:"hd1440",HM:"hd2160",IM:"hd2880",OM:"highres",UNKNOWN:"unknown"},Ny={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Tz="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");A(Fu,F);var hv={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=Fu.prototype;
h.Lg=function(a){if(!(this.isDisposed()||cc(this.g)||this.J)){a=0<=a?a:Gu(this.b);Hu(this,a);this.b.b.experiments.Z("html5_qoe_count_failed")&&Du()&&Nu(this,"failedping",Du().toString());var b=this.b.D(),c=b.droppedVideoFrames,d=c-this.R;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&Eu(this,a,"df",[d]);this.R=c;a=Ju(this);kc(a,this.b.b.o);a=Wg(this.b.b.Id,a);for(var e in this.g)a+="&"+e+"="+this.g[e].join(",");Ku(this,a);this.g=
{};this.C.start()}};
h.Ls=function(){this.b.b.experiments.Z("html5_qoe_count_failed")&&Cu(Du()+1)};
h.Ms=function(){this.b.b.experiments.Z("html5_qoe_count_failed")&&Du()&&Cu(0)};
h.Dt=function(){this.b.videoData.F&&Mu(this,"drm-"+this.b.videoData.F.b)};
h.onError=function(a,b){var c=Gu(this.b);Pu(this,c,a,b);Hu(this,c);Lu(this)};
h.tD=function(){var a=Gu(this.b);"PL"==this.o&&(Eu(this,a,"vps",[this.o]),this.Lg(a))};
h.T=function(){Fu.L.T.call(this);$i(this.M)};Ru.prototype.send=function(a){if(!this.X){var b=Wu(this),b=Wg(this.Ma,b);if(this.F)this.M&&(a={method:"POST",Ib:{atr:this.M}},(this.J||this.ga)&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),fk(b,a));else{var c=Su(this,a);c?fk(b,c):Yp(b,a)}this.X=!0}};
Ru.prototype.b=function(a){return(1*a.toFixed(3)).toString()};A(Xu,F);Xu.prototype.X=function(a,b){if(!this.isDisposed()){this.D=window.NaN;this.o.update();var c=uu(this.o),d=bv(this,c);b&&(d.C=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.g=Yu(this,!0,a));d.send();this.J++}};
Xu.prototype.onError=function(a,b){this.g.onError(a,b)};
Xu.prototype.F=function(a){var b=this.b.b,c=this.b.videoData,d={ns:b.ia,el:b.b,eurl:b.ga,fmt:c.g?Iu(c.g):0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.g,noflv:1,st:this.b.g(),video_id:c.videoId,metric:a};if(b.experiments.Z("legacy_autoplay_flag")?b.aa:c.J)d.autoplay="1";"heartbeat"==a&&(d.tpmt=tu(this.o));sa(d,b.o);dv(this,Wg("//www.youtube.com/live_204",d))};
Xu.prototype.T=function(){Xu.L.T.call(this);Zi(this.D);this.D=window.NaN;var a=this.o;$i(a.C);a.C=window.NaN};h=zv.prototype;h.Mj=function(){this.context.A.subscribe("resize",this.Ci,this)};
h.ma=function(){return this.ea};
h.Og=function(a,b,c,d,e,f){this.context.b.N(a,"click",ra(this.qj,b,c,d,e||[],f||0),this);this.context.b.N(a,"touchstart",ra(function(){this.vn=!1}),this);
this.context.b.N(a,"touchmove",ra(function(){this.vn=!0}),this)};
h.qj=function(a,b,c,d,e,f){if(this.vn)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=mu(a,b,this.context.videoData.videoId))&&Cv(this,b,nu(b,a.target),c,d,e,a.Cj);return!1};
h.show=function(){this.H=D()};
h.mk=function(){};
h.destroy=function(){Lf(this.ma())};
h.Ci=function(){};var Csa=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(zf)return zc("10.0");
var a=Gf(window.document,"DIV"),b=Cc?"-webkit":Is?"-moz":zf?"-ms":Dc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Ve.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in ssa)throw Error("Tag name <div> is not allowed for SafeHtml.");b=$e("div",b,void 0);a.innerHTML=Se(b);return""!=Ns(a.firstChild,"transition")});A(Ev,F);Ev.prototype.show=function(a){1!=this.b&&2!=this.b&&(3==this.b&&this.A(),4==this.b?(this.g.show(),this.b=null,this.o.stop()):this.g.g||(Fv(this,!0),this.b=1,a?this.o.start(a):this.A()))};
Ev.prototype.A=function(){switch(this.b){case 1:this.g.show();this.b=2;this.o.start(10);break;case 2:Fv(this,!1);this.b=null;break;case 3:this.g.oa();Fv(this,!1);this.b=4;this.o.start(0);break;case 4:this.b=null}};
Ev.prototype.stop=function(){for(;null!=this.b&&4!=this.b;)this.o.stop(),this.A()};
Ev.prototype.T=function(){this.g.isDisposed()||this.g.element.removeAttribute("aria-hidden");Ev.L.T.call(this)};A(Hv,P);h=Hv.prototype;h.$t=function(){Nr(this.$)&&iJ(this.$)&&this.g&&3!=this.F.b&&this.hi()};
h.pJ=function(a){this.o&&Tf(this.o.element,tm(a))||(this.A&&this.A.Yk?this.Wr(this.A):(this.hi(),lj("iv-teaser-clicked",!!this.b),this.$.bi(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")))};
h.nJ=function(){lj("iv-teaser-mouseover");this.b.stop()};
h.oJ=function(){oe(this.element,"ytp-cards-auto-open-hover-card")};
h.dF=function(a){this.b||!a||iJ(this.$)||this.C&&this.C.isActive()||(this.A=a.dj,Lv(this,a),lj("iv-teaser-shown"))};
h.Wr=function(a){a.Cj&&this.$.pauseVideo();xr(a.Rs,void 0);yr(a.Rs,a.target);lj("iv-hover-card-clicked")};
h.IA=function(){I(this.element,"ytp-hover-card-active")};
h.JA=function(){oe(this.element,"ytp-hover-card-active")};
h.Tv=function(){this.G.stop();this.b&&this.b.isActive()&&this.H.start()};
h.Ze=function(){this.H.stop();this.b&&!this.b.isActive()&&this.G.start()};
h.TD=function(){this.b&&this.b.stop()};
h.RD=function(){this.hi()};
h.hi=function(){!this.b||this.D&&this.D.isActive()||(this.o&&(this.o.detach(),this.o=null),this.A=null,Gv(this.F),oe(this.$.Da(),"ytp-cards-teaser-shown"),oe(this.$.Da(),"ytp-cards-button-teaser-merge"),oe(this.element,"ytp-cards-combined-teaser"),this.D=new he(function(){for(var a=0;a<this.B.length;a++)this.sa(this.B[a]);this.B=[];this.b&&(this.b.dispose(),this.b=null);Kv(this.J,!0)},330,this),this.D.start())};
h.T=function(){var a=this.$.Da();a&&oe(a,"ytp-cards-teaser-shown");Ob(this.C,this.D,this.b,this.o,this.A);Hv.L.T.call(this)};A(Nv,Mv);A(Ov,Mv);A(Pv,Ov);var Qv=!zf;h=Sv.prototype;h.WD=function(a,b){var c=(0,window.parseInt)(Rv(b.target,"navigationChapterIndex"),10);this.b.g.seekTo(a.chapters[c].time_ms/1E3,!0);var d={};d["link-id"]=c;rv(this.b.logger,a.Xa,void 0,d,a.b.click,5)};
h.ks=function(a,b){var c=ag(b.target,"label");c&&K(c,"iv-card-poll-choice-focused",a)};
h.tE=function(a,b){var c=bg(b.target,"iv-card-poll");if(c)if(a.o)uf("iv-card-sign-in-button",c).click();else{var d=(0,window.parseInt)(Rv(b.target,"pollChoiceIndex"),10);if(null==a.g)a.choices[d].count++,a.g=d;else if(a.g!=d){var e=a.choices[a.g];e.count=Math.max(e.count-1,0);a.choices[d].count++;a.g=d}else e=a.choices[a.g],e.count=Math.max(e.count-1,0),a.g=null;Vv(a,c);gk(this.b.videoData.ag,{Dc:{action_poll_vote:1},Ib:{poll_id:a.id,index:d,session_token:a.C}});c={};c["link-id"]=d;rv(this.b.logger,
a.Xa,void 0,c,a.b.click,5)}};
h.aD=function(a){var b=q("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=ra(b,a.F,a.A));ew(this,a,!0,b)};
h.gF=function(a){var b=q("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=ra(b,a.F,a.A,a.G));ew(this,a,!1,b)};A(gw,Mv);A(hw,Mv);A(iw,Mv);A(kw,Ov);A(lw,Ov);A(mw,Mv);A(nw,Mv);A(ow,zv);h=ow.prototype;h.isAvailable=function(){var a;if(a=!!this.o.length)(a=this.$.Da())?(a=dt(a),a=177<a.width&&177<a.height):a=!1;return a};
h.zy=function(){this.R&&Bw(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.bz=function(){(this.R=this.A)&&this.Ii()};
h.BI=function(){Bw(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.Ii=function(){this.A&&(Gv(this.K),oe(this.context.g.Da(),"ytp-iv-drawer-open"),this.A=!1,wv(this.context.logger,10),Aw(this.$),this.B&&this.B.stop(),this.B=new he(function(){this.J&&(this.J.focus(),this.J=null)},330,this),this.B.start())};
h.Ci=function(){var a=this.isAvailable();R(this.ma(),a);K(this.context.g.Da(),"ytp-iv-drawer-enabled",a);a&&(this.M||(wv(this.context.logger,11),this.M=!0),E(this.o,function(a){a.pr||(a.pr=!0,xv(this.context.logger,11,a.ab.Xa))},this));
Aw(this.$)};
h.destroy=function(){var a=dJ(nq(this.$),"iv-module");a&&Iy(a,!1,void 0);this.$.Da().removeChild(this.C);jj(this.D);pm(this.X);this.G&&this.G.dispose();this.B&&this.B.dispose();ow.L.destroy.call(this)};
var pw={collaborator:Nv,donation:Pv,episode:nw,navigation:gw,movie:nw,playlist:hw,poll:iw,productListing:kw,simple:Ov,tip:lw,video:mw};h=ow.prototype;
h.CI=function(a){this.Rk.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.md.scrollTop+=a};
h.Zm=function(a,b){if(!le(this.$.Da(),"ytp-cards-teaser-shown")){this.b!=a&&(this.b=a,ww(this));if(gt(this.ma())){var c;(c=b)||(2==this.context.g.getPresentingPlayerType()?c=1==((0,window.isNaN)(void 0)?this.context.g.getAdState():void 0):(c=(0,window.isNaN)(void 0)?this.context.g.getPlayerState():void 0,c=1==c||0==c&&0===this.context.g.getCurrentTime()));if(c&&a.ab.teaserDurationMs){c=null;if("video"==a.ab.type&&Cw(this,"hover_card_for_video_card_teaser")){var d=a.ab,e=d.url?mu(d.url,a.ab.id,this.context.videoData.videoId,
this.context.o):null,f=e?nu(e,d.url.target):null;e&&f&&(c={dR:d.id,title:d.title,Rs:e,target:"current"==f?"_top":void 0,Cj:d.url.Cj,imageUrl:d.o,videoDuration:d.videoDuration,qe:d.qe,Yk:Cw(this,"combined_teaser_link")})}c={teaserText:a.ab.teaserText,durationMs:b?2E3:a.ab.teaserDurationMs,dj:c,PB:Cw(this,"merge_button_with_teaser"),Iy:b&&Cw(this,"hover_card_on_button_hover")};(d=dJ(nq(this.$),"iv-module"))&&Iy(d,!0,c)}}this.O.isActive()||((!this.A||!this.Rk.isActive()&&this.nj)&&Dw(this,a),this.O.start(910+
a.ab.teaserDurationMs))}};
h.CG=function(){this.b&&this.Zm(this.b,!0)};
h.uG=function(a){this.A||(this.b=a,ww(this),Dw(this,a),Bw(this,"YOUTUBE_DRAWER_AUTO_OPEN",!1,a))};
h.Ty=function(){this.A&&(wv(this.context.logger,4,Ew(this).b.close),this.Ii())};
h.gz=function(){K(this.C,"iv-drawer-scrolled",0<this.md.scrollTop)};
h.OB=function(){var a=Ew(this);xv(this.context.logger,8,a.Xa,a.b.GG)};
h.NB=function(){var a=this.b;xv(this.context.logger,13,a.ab.Xa,void 0);var b=Cw(this,"hover_card_for_video_card_teaser");"video"==a.ab.type&&b&&(a=this.b,a.tj||(a.tj=!0,qv(this.context.logger,a.ab.Xa,a.ab.b.Xq)))};
h.LB=function(){var a=this.b.ab;rv(this.context.logger,a.Xa,void 0,void 0,a.b.click,5)};
h.MB=function(a){var b=Ew(this);this.b?a?(a=this.context.logger,xv(a,9,b.Xa,b.b.gn)):(a=this.context.logger,xv(a,12,b.Xa,b.b.gn)):(a=this.context.logger,wv(a,12,b.b.gn));a.$.Tf(4,void 0)};var caa=/#(.)(.)(.)/,baa=/^#(?:[0-9a-f]{3}){1,2}$/i;A(Gw,Ct);Gw.prototype.A=r;Gw.prototype.Fm=function(){this.A();Gw.L.Fm.call(this)};
Gw.prototype.Bh=function(){this.A();Gw.L.Bh.call(this)};
Gw.prototype.xj=function(){this.A();Gw.L.xj.call(this)};
A(Hw,Gw);Hw.prototype.A=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};A(Iw,zv);Iw.prototype.Mj=function(){Iw.L.Mj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&Av(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.mk)};A(Jw,Iw);Jw.prototype.G=function(a,b,c,d){this.g.stop();if(!this.o){var e=dt(a);at(a,e.width);at(b,e.width);Rs(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.o=!0;R(a,!0);this.B=new he(function(){I(this.ma(),"iv-branding-active")},0,this);
this.B.start()}};
Jw.prototype.F=function(a,b){oe(this.ma(),"iv-branding-active");this.C=new he(function(){R(a,!1);at(b,0)},250);
this.C.start();this.o=!1};
Jw.prototype.show=function(){if(!this.isActive){Jw.L.show.call(this);if(!this.D){I(this.ma(),"iv-branding");var a=this.annotation.data;this.A=a.image_width;this.b=L("IMG",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});R(this.b,!1);var b=L("DIV","branding-img-container",this.b);this.ma().appendChild(b);var c=L("DIV","iv-branding-context-name");Vf(c,a.channel_name);var d=L("DIV","iv-branding-context-subscribe");this.annotation.o?zh(d,this.annotation.o):
a.num_subscribers&&Vf(d,a.num_subscribers);b=L("DIV","iv-branding-context-subscribe-caret");c=L("DIV","branding-context-container-inner",b,c,d);R(c,!1);d=L("DIV","branding-context-container-outer",c);Ls(d,"right",this.A+"px");this.ma().appendChild(d);this.Og(this.b,Yw(this.annotation),this.annotation.id,this.annotation.Xa);this.g=new he(ra(this.F,c,d),500,this);this.context.b.N(this.ma(),"mouseover",y(this.G,this,c,d,b,a.image_height));this.context.b.N(this.ma(),"mouseout",y(this.g.start,this.g));
this.D=!0}qv(this.context.logger,this.annotation.Xa);R(this.ma(),!0);this.isActive=!0;var a=this.b,e,b=et(a).width,c=ia(void 0)?void 0:b;e=e||0;Rs(a,c);e=new Hw(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,Ft);this.context.b.N(e,"begin",ra(R,a,!0));e.play()}};
Jw.prototype.mk=function(){this.isActive&&(R(this.ma(),!1),this.isActive=!1)};var faa={CLOSE:"close",uO:"openUrl",Zx:"subscribe"},gaa={wk:"click",CLOSE:"close",HIDDEN:"hidden",kP:"rollOut",Ox:"rollOver",Sx:"shown"};var kaa={VQ:"xx",WQ:"xy",ZQ:"yx",$Q:"yy"};A(Tw,Ow);var naa={pw:"anchored",$O:"rect",uP:"shapeless"};var raa={CLOSED:"closed",DO:"playerControlShow",Ox:"rollOver",Sx:"shown"};var Xw={pw:"anchored",tw:"branding",CHANNEL:"channel",ML:"cta",NM:"highlightText",kN:"label",PLAYLIST:"playlist",OO:"popup",FP:"speech",Zx:"subscribe",$P:"title",VIDEO:"video",MQ:"vote",PQ:"website"},vaa={tw:"branding",lL:"card",jM:"drawer",MM:"highlight",EN:"marker",TO:"promotion",TEXT:"text",SQ:"widget"},waa={GQ:"video_relative",EO:"player_relative"};Ww.prototype.showLinkIcon=function(){return Zw(this,function(a){return null!=a.url&&a.url.showLinkIcon})};A(ex,Iw);h=ex.prototype;h.show=function(){this.isActive||(ex.L.show.call(this),this.F||(Baa(this),this.F=!0),R(this.ma(),!0),this.annotation&&this.annotation.Xa&&qv(this.context.logger,this.annotation.Xa),oe(this.ma(),"iv-promo-inactive"),this.ma().removeAttribute("aria-hidden"),this.isActive=!0,this.b&&(ge(this.b),this.b=null),gx(this),hx(this,this.C))};
h.mk=function(){this.isActive&&(I(this.ma(),"iv-promo-inactive"),this.isActive=!1,this.ma().setAttribute("aria-hidden",!0))};
h.qj=function(a,b,c,d,e,f){return this.A?!1:ex.L.qj.call(this,a,b,c,d,e,f)};
h.Ml=function(a,b){b.stopPropagation();gx(this);hx(this,a);this.nc.focus()};
h.Sz=function(a){this.D=!0;this.Ml(500,a)};
h.Rz=function(){this.D=!1;fx(this)};
h.DI=function(a){a.stopPropagation();this.mk();tv(this.context.logger,this.annotation.Xa)};
h.destroy=function(){this.B.dispose();ex.L.destroy.call(this)};var wA={xN:1,yN:2,zN:3};A(ix,F);ix.prototype.S=function(a,b,c,d){c=Wi(y(c,d||this.na));a.addEventListener(b,c);a={target:a,name:b,Ei:c};this.K.push(a);return a};
ix.prototype.sa=function(a){for(var b=0;b<this.K.length;b++)if(this.K[b]==a){this.K.splice(b,1);a.target.removeEventListener(a.name,a.Ei);break}};
ix.prototype.T=function(){kx(this);ix.L.T.call(this)};var ox=0;sx.prototype.A=function(a,b,c,d){this.b[a]=b?!c:c;a=Tb(this.b,function(a){return a});
this.g!=a&&(this.g=a,this.o.Rb(this.B,a,d))};tx.prototype.show=function(){this.isVisible=!0;this.b&&(this.b.show(),this.o.subscribe("resize",this.C,this),this.o.subscribe("onVideoAreaChange",this.A,this))};
tx.prototype.destroy=function(){if(this.b){ux(this);var a=this.b;pt(a.D);a.Dm.dispose();a.G.dispose();a.g&&Lf(a.g);a.o&&a.o.ma()&&Lf(a.o.ma())}vx(this)};
tx.prototype.A=function(){qy(this.b)};
tx.prototype.C=function(){qy(this.b)};wx.prototype.clone=function(){return new wx(this.start,this.end)};xx.prototype.b=v;xx.prototype.g=v;A(yx,xx);yx.prototype.b=function(){return this.G};
yx.prototype.g=function(){return this.H};zx.prototype.Ld=null;zx.prototype.xc=null;zx.prototype.Lh=!0;var Daa=[2,2,6,6,0];h=zx.prototype;h.clear=function(){this.ra.length=0;this.ya.length=0;this.Pc.length=0;delete this.Ld;delete this.xc;delete this.Lh;return this};
h.Hb=function(a){var b=cb(this.ra);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ra.push(1),this.ya.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Pc.push(c,d)}this.ya[this.ya.length-1]+=b/2;this.xc=[c,d]};
h.close=function(){var a=cb(this.ra);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ra.push(4),this.ya.push(1),this.xc=this.Ld);return this};
h.clone=function(){var a=new this.constructor;a.ra=this.ra.concat();a.ya=this.ya.concat();a.Pc=this.Pc.concat();a.Ld=this.Ld&&this.Ld.concat();a.xc=this.xc&&this.xc.concat();a.Lh=this.Lh;return a};
h.transform=function(a){if(!this.Lh)throw Error("Non-simple path");a.transform(this.Pc,0,this.Pc,0,this.Pc.length/2);this.Ld&&a.transform(this.Ld,0,this.Ld,0,1);this.xc&&this.Ld!=this.xc&&a.transform(this.xc,0,this.xc,0,1);return this};
h.isEmpty=function(){return 0==this.ra.length};A(Cx,xx);Dx.prototype.cb=function(){return this.o};da(Ex);Ex.prototype.b=0;A(Fx,H);h=Fx.prototype;h.KA=Ex.getInstance();h.getId=function(){return this.wa||(this.wa=":"+(this.KA.b++).toString(36))};
h.ma=function(){return this.b};
h.Pf=function(a){if(this.A&&this.A!=a)throw Error("Method not supported");Fx.L.Pf.call(this,a)};
h.bj=function(){this.b=this.F.createElement("DIV")};
h.ig=function(){this.xd=!0;Hx(this,function(a){!a.xd&&a.ma()&&a.ig()})};
h.nh=function(){Hx(this,function(a){a.xd&&a.nh()});
this.B&&Om(this.B);this.xd=!1};
h.T=function(){this.xd&&this.nh();this.B&&(this.B.dispose(),delete this.B);Hx(this,function(a){a.dispose()});
this.b&&Lf(this.b);this.A=this.b=this.C=this.H=null;Fx.L.T.call(this)};
h.hc=function(){return this.b};
h.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.C&&c?fc(this.C,c)||null:null;if(c&&a){ec(this.C,c);qb(this.H,a);b&&(a.nh(),a.b&&Lf(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.A=null;Fx.L.Pf.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};A(Ix,Fx);h=Ix.prototype;h.jh=null;h.setSize=v;h.qg=function(){return this.xd?dt(this.ma()):ia(this.width)&&ia(this.height)?new lf(this.width,this.height):null};
h.clear=v;h.Et=v;h.Ft=v;h.Ki=v;h.resume=function(){};A(Jx,H);h=Jx.prototype;h.Gl=null;h.qh=null;h.ma=function(){return this.qh};
h.addEventListener=function(a,b,c,d){Uc(this.qh,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){ed(this.qh,a,b,c,d)};
h.T=function(){Jx.L.T.call(this);var a=this.qh;if(a)if(Hc(a))a.nd&&Sc(a.nd);else if(a=Xc(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)fd(d[e])&&++b}};A(Kx,Jx);Kx.prototype.fill=null;A(Lx,Jx);Lx.prototype.clear=v;Lx.prototype.setSize=v;A(Mx,Kx);A(Nx,Lx);Nx.prototype.clear=function(){Jf(this.ma())};
Nx.prototype.setSize=function(a,b){Rx(this.ma(),{width:a,height:b})};
A(Ox,Mx);var Ux;A(Px,Ix);var Haa=0;h=Px.prototype;
h.Et=function(a,b){var c=a.ma();if(b instanceof Cx)c.setAttribute("fill",b.o),c.setAttribute("fill-opacity",b.A);else if(b instanceof yx){var d="lg-"+b.B+"-"+b.D+"-"+b.C+"-"+b.F+"-"+b.b()+"-"+b.g(),e=d in this.g?this.g[d]:null;if(!e){var e=Sx(this,"linearGradient",{x1:b.B,y1:b.D,x2:b.C,y2:b.F,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+b.b();ia(b.o)&&(f+=";stop-opacity:"+b.o);f=Sx(this,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+b.g();ia(b.A)&&(f+=";stop-opacity:"+b.A);f=Sx(this,
"stop",{offset:"100%",style:f});e.appendChild(f);e=Tx(this,d,e)}c.setAttribute("fill","url(#"+e+")")}else c.setAttribute("fill","none")};
h.Ft=function(a,b){var c=a.ma();if(b){c.setAttribute("stroke",b.b);c.setAttribute("stroke-opacity",b.g);var d=b.cb();w(d)&&-1!=d.indexOf("px")?c.setAttribute("stroke-width",(0,window.parseFloat)(d)/Faa(this)):c.setAttribute("stroke-width",d)}else c.setAttribute("stroke","none")};
h.bj=function(){var a=Sx(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=Sx(this,"g");this.D=Sx(this,"defs");this.jh=new Nx(b,this);a.appendChild(this.D);a.appendChild(b);this.b=a;this.o&&(this.ma().setAttribute("preserveAspectRatio","none"),this.K?this.Tj():this.ma().setAttribute("viewBox","0 0 "+(this.o?this.o+" "+this.J:"")))};
h.Tj=function(){if(this.xd){var a=this.qg();if(0==a.width)this.ma().style.visibility="hidden";else{this.ma().style.visibility="";var b=a.width/this.o,a=a.height/this.J;this.jh.ma().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
h.setSize=function(a,b){bt(this.ma(),a,b)};
h.qg=function(){if(!Is)return this.xd?dt(this.ma()):Px.L.qg.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.xd&&(c||d))return null;var e,f;c&&(e=this.ma().parentNode,f=dt(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.ma().parentNode,f=f||dt(e),b=(0,window.parseFloat)(b)*f.height/100);return new lf(a,b)};
h.clear=function(){this.jh.clear();Jf(this.D);this.g={}};
h.Ki=function(a,b,c,d){a=Sx(this,"path",{d:Gaa(a)});b=new Ox(a,this,b,c);(d||this.jh).ma().appendChild(b.ma());return b};
h.ig=function(){var a=this.qg();Px.L.ig.call(this);a||this.dispatchEvent("resize");if(this.K){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.G.N(Vx(),"tick",this.Tj);this.Tj()}};
h.nh=function(){Px.L.nh.call(this);this.K&&this.G.sa(Vx(),"tick",this.Tj)};
h.T=function(){delete this.g;delete this.D;delete this.jh;this.G.dispose();delete this.G;Px.L.T.call(this)};Wx.prototype.ma=function(){return this.B};
Wx.prototype.o=function(){};var $x={bevel:1,dropshadow:2};A(ey,Wx);
ey.prototype.o=function(a,b){var c=cx(a);if(c){var d=Rw(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=bx(a))&&c.b?c.b:null)&&c.length?c[0]:null){var f=tg(Qw(b,Nw(e,new pg(e.F,e.G,e.B,e.o),b.b))),k=d.clone(),c=new pg(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.b,k=cy(k,c.effects),l=Xx(this,k.width,k.height),m=by(c,k.width,k.height,this.b),
d=new pg(d.left-k.left,d.top-k.top,d.width,d.height),n=new jf(f.x-k.left,f.y-k.top);this.A=17*Mw(b.b,e.g,e.b?e.b:"xy");e=c.o;var f=a.b,t=this.b&&$w(a),u=t?f.b+1:f.b,t=(f=u?new Dx(u,t?f.A:f.C):null)?f.cb()/2:0,u=Oaa(d,n),x=this.C(d,e,n,u),z=n.x,n=n.y,J=d.width,V=d.height,S=d.left,d=d.top,ba=new zx;Ax(ba,S+e+t,d+t);"t"==u&&(ba.Hb(x.start,d+t),ba.Hb(z,n),ba.Hb(x.end,d+t));ba.Hb(S+J-e-t,d+t);Bx(ba,e,e,-90);"r"==u&&(ba.Hb(S+J-t,x.start),ba.Hb(z,n),ba.Hb(S+J-t,x.end));ba.Hb(S+J-t,d+V-e-t);Bx(ba,e,e,0);
"b"==u&&(ba.Hb(x.end,d+V-t),ba.Hb(z,n),ba.Hb(x.start,d+V-t));ba.Hb(S+e+t,d+V-t);Bx(ba,e,e,90);"l"==u&&(ba.Hb(S+t,x.end),ba.Hb(z,n),ba.Hb(S+t,x.start));ba.Hb(S+t,d+e+t);Bx(ba,e,e,180);ba.close();l.Ki(ba,f,m);if(m=this.ma())I(m,"annotation-shape"),I(m,"annotation-speech-shape"),Rs(m,k.left,k.top),bt(m,k.width,k.height),dy(l,m,c.effects)}}}};
ey.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=df(c-a/2,d+b,d+e-a-b);return new wx(c,c+a)}
return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new wx(0,0)};A(fy,Wx);fy.prototype.o=function(a,b){var c=cx(a);if(c){var d=Rw(c,b);if(!(0>=d.width||0>=d.height)){var e=a.b,c=cy(d,e.effects),f=Xx(this,c.width,c.height),k=new pg(0,0,d.width,d.height),l=e.o,d=new Dx(!e.B&&this.b?1:e.B,e.bgColor),m=new Cx("#000",0),n=d?d.cb()/2+1:0,k=ay(k,l,n);f.Ki(k,d,m);f=this.ma();I(f,"annotation-shape");e=e.g;ft(f,this.b?Math.max(e,.9):e);Rs(f,c.left,c.top);bt(f,c.width,c.height)}}};A(gy,Wx);gy.prototype.o=function(a,b){var c=cx(a);if(c){var d=Rw(c,b);if(!(0>=d.width||0>=d.height)){var c=a.b,e=cy(d,c.effects),f=Xx(this,e.width,e.height),k=by(c,d.width,d.height,this.b),d=new pg(0,0,d.width,d.height),l=c.o,m=a.b,n=this.b&&$w(a),t=n?m.b+1:m.b,n=(m=t?new Dx(t,n?m.A:m.C):null)?m.cb()/2+1:0,d=ay(d,l,n);f.Ki(d,m,k);if(k=this.ma())I(k,"annotation-shape"),I(k,"annotation-popup-shape"),Rs(k,e.left,e.top),bt(k,e.width,e.height),dy(f,k,c.effects)}}};A(hy,ey);hy.prototype.C=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 wx(c,c+a)}
return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new wx(0,0)};h=jy.prototype;h.bv=function(){this.M||(this.A&&R(this.A,!0),this.B&&R(this.B,!0),this.o&&(this.o.b=!0,ft(this.g,ry(this)?1:0),this.o.o(this.b,ly(this))),this.G.isActive()&&this.G.stop(),this.M=!0,this.H=nt(this.D,ny(this.C),function(a){this.Dm.stop();this.Ze(a)}))};
h.Ze=function(){this.M&&(this.O?this.G.start():this.tq(),this.o&&(this.o.b=!1,ft(this.g,ry(this)?1:0),this.o.o(this.b,ly(this))),this.M=!1,this.H&&(this.D.sa(this.H),this.H=null))};
h.tq=function(){this.A&&R(this.A,!1);this.B&&R(this.B,!1)};
h.PD=function(a){this.ba=a;this.Dm.tg()};
h.Qz=function(){var a=this.ba,b=new jf(a.clientX,a.clientY),c=Vs(this.C.Da()),d=sy(c,this.K),c=(this.B&&gt(this.B)||this.A&&gt(this.A))&&sy(c,this.O);d&&d.contains(b)||c&&c.contains(b)?this.bv():this.Ze(a)};
h.show=function(){var a=this.b.b,a=(a&&0==a.g||"title"==this.b.style||"highlightText"==this.b.style?!1:!0)&&!this.o,b=!this.g,c="widget"==this.b.type;if(a){var d=ly(this),e=null;"highlight"==this.b.type||"label"==this.b.style?e=new fy:"popup"==this.b.style?e=new gy:"anchored"==this.b.style?e=new ey:"speech"==this.b.style&&(e=new hy);e&&(e.o(this.b,d),this.o=e,d=e.ma())&&(R(d,!1),I(d,"annotation-type-"+this.b.type.toLowerCase()),this.aa(d))}if(b){d=["annotation"];"highlightText"!=this.b.style||d.push("annotation-no-mouse");
d.push("annotation-type-"+this.b.type.toLowerCase());this.g=L("DIV",d);R(this.g,!1);this.b.B&&(this.F=L("DIV","inner-text"),"label"==this.b.style&&(I(this.F,"label-text"),this.F.style.backgroundColor=this.b.b.bgColor),Vf(this.F,this.b.B),this.g.appendChild(this.F));Pi(this.g,"annotation_id",this.b.id);this.aa(this.g);Paa(this,this.g);if($w(this.b)&&this.b.showLinkIcon()){if(e=Yw(this.b))d=this.g,e=new M(gu(e)),d.title=e.g+e.o;this.B=L("SPAN","annotation-link-icon");R(this.B,!1);this.g.appendChild(this.B)}Qaa(this);
$w(this.b)||(this.g.style.cursor="default")}c&&("subscribe"==this.b.style?uf("yt-uix-subscription-button",this.g)||zh(this.g,this.b.o):this.b.o&&zh(this.g,this.b.o));if(a||b){a:{a=this.b.g.b;if(a.length&&(a=Uw(a[0]))){a=a.H;break a}a=0}this.g&&(this.g.style.zIndex=a);this.o&&this.o.ma()&&(this.o.ma().style.zIndex=a)}R(this.g,!0);ft(this.g,ry(this)?1:0);qy(this);this.o&&this.o.ma()&&R(this.o.ma(),!0)};A(ty,iq);ty.C="AnnotationsModule";var Raa={WK:"video-annotations",Fw:"video-custom-annotations",jx:"video-legacy-annotations"};ty.A=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
ty.B=function(a){return"card"==a.type||"drawer"==a.type};
ty.o=function(a){return ty.Cb(a)?new ty(a):null};
ty.Cb=function(a){var b=Q(a);return"leanback"==b.b?!1:!b.G.isEmpty()||ty.b(b.g)?!0:zs(a.getVideoData(),"iv3_module")};
ty.g=function(){var a=L("DIV",["annotation","annotation-type-custom"]);R(a,!1);return a};
ty.b=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
h=ty.prototype;h.Ae=function(a,b){if(!ty.b(Q(this.b).g))return null;switch(a){case "loadCustomAnnotationsXml":var c=Fs(b);c&&yy(this,c);return!0;case "removeCustomAnnotationById":return b&&this.g&&(tw(this.g,b),Aw(this.b)),!0}return null};
h.Uf=function(){return ty.b(Q(this.b).g)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
h.Cb=function(){return ty.Cb(this.b)};
h.create=function(){ty.L.create.call(this);this.B.S(this.b,"onVideoAreaChange",y(this.Y,this,"onVideoAreaChange"));this.B.S(this.b,"onHideControls",y(this.Y,this,"onHideControls"));this.B.S(this.b,"onShowControls",y(this.Y,this,"onShowControls"));this.B.S(this.b,"resize",y(this.Y,this,"resize"));this.B.S(this.b,"presentingplayerstatechange",y(this.Y,this,"presentingplayerstatechange"));this.C=new P(["div",["ytp-player-content","ytp-iv-player-content"]]);qw(this.b,this.C.element,4);this.A=new P(["div",
["ytp-iv-video-content"]]);this.A.element.appendChild(L("DIV","video-annotations",this.R,this.aa));var a=Q(this.b),b=this.b.getVideoData();1!=(a.de||b.jd)&&null===a.G.get(b.videoId)||this.load()};
h.destroy=function(){kx(this.B);oe(this.b.Da(),"ytp-iv-drawer-open");this.C.detach();this.C.dispose();this.A.dispose();ty.L.destroy.call(this)};
h.ws=function(){if(this.A){var a=my(ny(this.b),!0);bt(this.A.element,a.width,a.height);Rs(this.A.element,a.left,a.top)}};
h.rE=function(a){O(a.state,2)&&(Fy(this)&&Gy(this)&&2!=this.b.getPresentingPlayerType()&&Hy(this,!1),Iy(this,!1))};
h.load=function(){ty.L.load.call(this);this.J++;var a=this.b.getVideoData(),b=a.videoId,c=y(this.lD,this,b,this.J);lx()&&(c=zy(this,c));c={format:"XML",Cc:c,Dc:{}};a.isPharma&&(c.Dc.pharma="1");c.method="POST";c.withCredentials=!0;var d=Q(this.b);"gaming"==d.g&&(c.Dc.gaming="1");(b=d.G.get(b))&&Ay(c,b);a.ag&&(b=b&&b.uf,a.Xo&&!b||fk(a.ag,c));qw(this.b,this.A.element,4);this.ws()};
h.unload=function(){vv(this.G,{"iv-event":1});kq(this);Pb(this.o,function(a){a.destroy()});
Pb(this.K,function(a){a.destroy()});
this.H=null;this.g&&(this.g.destroy(),this.g=null,Aw(this.b));this.o={};this.K={};ty.L.unload.call(this);this.A.detach()};
h.lD=function(a,b,c){if(!vy(this,b,a)&&(a=ak(c)&&c.responseXML?c.responseXML:null)){yy(this,a);I(this.b.Da(),this.Na+"-loaded");a=[];for(var d in this.o){b=this.o[d].annotation;if(b.g)if(c=b.g,c.b.length)if(c=c.b[0].g||c.b[0].b||c.b[0].o,!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 fq(c,e,f);a.push(b)}}this.wb(a)}};
h.uF=function(a){this.D&&a==this.b.getVideoData().videoId&&(this.loaded?Vaa(this):this.load())};
h.Yd=function(a){ty.L.Yd.call(this,a);a=a.getId();var b=this.o[a];b&&!b.B&&(b=b.annotation,By(this,a),qv(this.G,b.Xa))};
h.re=function(a){ty.L.re.call(this,a);Cy(this,a.getId())};
h.sq=function(a){if(a){a.isVisible=!1;if(a.b){ux(a);var b=a.b;b.g&&R(b.g,!1);b.o&&b.o.ma()&&R(b.o.ma(),!1);b.J&&(b.D.sa(b.J),b.J=null)}Ey(this,"shown",!1,a.annotation.id);this.Li(a.annotation,"hidden")}};
h.Pt=function(a){a&&(a.show(),Ey(this,"shown",!0,a.annotation.id),this.Li(a.annotation,"shown"))};
h.qF=function(a,b,c){var d=this.o[a];if(d&&b.value!=c){b.value=c;var e=!1;ax(d.annotation,function(a){e|=a.value});
Xaa(this,a,b,e)}};
h.fC=function(a){if(a&&a.id){var b=Yw(a);if(b){var c=gu(b);if(c){var d=y(this.Li,this,a,"click"),e=this.b.getVideoData();if("new"==nu(c,b.target)||Dy(this,b,e.videoId))d(),d=null;rv(this.G,a.Xa,d)}}}};
h.Li=function(a,b){zaa(a,function(c){if(c.b==b&&"openUrl"==c.type){var d=this.b.getVideoData(),e;if(!(e=!Dy(this,c.url,d.videoId))){e=ku(c.url);var f=ju(c.url);if(e){if(d.videoId==e)this.b.seekTo(f||0);else{var k=wy(this).g;H9(k.app,e,void 0,void 0,void 0,void 0);f&&mJ(wy(this).g)&&wy(this).g.seekTo(f)}e=!0}else e=!1;e=!e}e&&(d=mu(c.url,a.id,d.videoId,Q(this.b)))&&(this.b.pauseVideo(),e=nu(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=Uj(c),f=null,"ei"in e&&(f={ei:e.ei},c=bh(c,"ei")),xr(c,f),
yr(c,d))}},this)};
h.uD=function(){Ey(this,"playerControlShow",!1)};
h.VE=function(){Ey(this,"playerControlShow",!0)};
h.oI=function(a){Ey(this,"rollOver",!0,a.id)};
h.Ze=function(a){Ey(this,"rollOver",!1,a.id)};
h.HC=function(a){if(a||a.id)this.o[a.id].B=!0,Cy(this,a.id),a&&(tv(this.G,a.Xa),this.Li(a,"close")),Ey(this,"closed",!0,a.id)};
h.T=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)nx(a[b]);this.O.length=0;ty.L.T.call(this)};var oB=/^#(?:[0-9a-f]{3}){1,2}$/i,UB="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),TB=["none","raised","depressed","uniform","dropShadow"],Dsa=["left","right","center"],MB={windowColor:"#080808",Ug:0,textAlign:2,xi:7,pj:50,Sj:100,La:{background:"#080808",kd:.75,he:0,color:"#fff",fontFamily:4,jg:0,bf:1,offset:1}};var q$=[{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"}],r$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],J6=[{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:q$},{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:q$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:r$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:q$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:r$},{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%"}]}];lc("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Ky={wZ:function(a,b){a.splice(0,b)},
YP:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
lm:function(a){a.reverse()}};var PF=Oy("auto","large",!1),Qy=Oy("auto","auto",!1);My.prototype.isLocked=function(){return this.o&&!!this.g&&this.g==this.b};
My.prototype.A=function(a){if(!a.video)return!1;a=Ny[a.video.quality];return this.g<=a&&(!this.b||this.b>=a)};A(Ty,uk);Ty.prototype.remove=function(a){var b=this.get(a);delete this.b[a];return b};
Ty.prototype.get=function(a){return this.b[a]||null};
Ty.prototype.isEmpty=function(){return cc(this.b)};var Vy={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Wy={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Xy=/^(\d*)_((\d*)_?(\d*))$/;var Rz,tA;var s$=sc,s$=s$.toLowerCase();if(-1!=s$.indexOf("android")){var t$=s$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(t$)Rz=Number(t$[1]);else{var u$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},v$=s$.match("("+Yb(u$).join("|")+")");Rz=v$?u$[v$[0]]:0}}else Rz=void 0;tA=0<=Rz;var B5,$aa=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],aba=['audio/mp4; codecs="mp4a.40.2"'];var bba=/^([0-9\.]+)\:([0-9\.]+)$/;jz.prototype.then=function(a,b,c){try{if(p(this.g))return a?Jd(a.call(c,this.g)):Jd(this.g);if(p(this.b)){if(!b)return Kd(this.b);var d=b.call(c,this.b);return!p(d)&&this.b instanceof Zd?Kd(this.b):Jd(d)}throw Error("Invalid Result_ state");}catch(e){return Kd(e)}};
Cd(jz);var mz={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},kz=null;var xba={aP:"red",RQ:"white",cL:"blue"};sz.prototype.Z=function(a){return"true"==this.flags[a]};
sz.prototype.b=function(a){return(0,window.parseFloat)(this.flags[a])};
sz.prototype.F=function(a){return this.flags[a]?this.flags[a].toString():""};var Uca={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 Yz={name:"width",video:!0,valid:640,Bg:99999},Zz={name:"height",video:!0,valid:360,Bg:99999},$z={name:"framerate",video:!0,valid:30,Bg:9999},bA={name:"bitrate",video:!0,valid:3E5,Bg:2E9},aA={name:"eotf",video:!0,valid:"bt709",Bg:"catavision"},cA={name:"channels",video:!1,valid:2,Bg:99},dA={si:Yz,li:Zz,o:$z,ko:bA,g:aA,b:cA};tz.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.b+"_"+this.id+"_"+this.isDefault};uz.prototype.toString=function(){return this.g+": "+vz(this)+" - "+this.D};
uz.prototype.H=function(a){return a?this.toString()==a.toString():!1};xz.prototype.b=function(){return this.Wb};
xz.prototype.toString=function(){return this.Wb.name};
xz.prototype.getLanguageInfo=xz.prototype.b;var dba=function(){if(hA)return zz(/Firefox\/([0-9.]+)/);if(zf||CF||Dc)return xc;if(gm)return zz(/Chrome\/([0-9.]+)/);if(rz&&!(vc()||tc("iPad")||tc("iPod")))return zz(/Version\/([0-9.]+)/);if(rA||qA){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(sc);if(a)return a[1]+"."+a[2]}else if(sA)return(a=zz(/Android\s+([0-9.]+)/))?a:zz(/Version\/([0-9.]+)/);return""}();Bz.prototype.start=function(){return 0};
Bz.prototype.end=function(){return window.Infinity};
Bz.prototype.length=1;h=Cz.prototype;h.addEventListener=function(){};
h.removeEventListener=function(){};
h.dispatchEvent=function(){};
h.abort=function(){};
h.remove=function(){};
h.appendBuffer=function(){};Dz.prototype.dispose=function(){if(!this.o){if(this.b)try{window.URL.revokeObjectURL(this.A)}catch(a){}this.o=!0}};
Dz.prototype.isDisposed=function(){return this.o};h=Gz.prototype;h.append=function(a){this.g.webkitSourceAppend(this.o,a)};
h.abort=function(){this.g.webkitSourceAbort(this.o)};
h.TG=function(){return this.g.webkitSourceState==this.g.SOURCE_CLOSED?new eba:this.g.webkitSourceBuffered(this.o)};
h.VG=function(){return this.A};
h.ZG=function(a){this.A=a;this.g.webkitSourceTimestampOffset(this.o,a)};h=Hz.prototype;h.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};
h.removeEventListener=function(a,b,c){this.b.removeEventListener(a,b,c)};
h.mJ=function(){return this.b.webkitMediaSourceURL};
h.addSourceBuffer=function(a){var b=(this.o++).toString();this.b.webkitSourceAddId(b,a);a=new Gz(this.b,b);this.sourceBuffers.push(a);return a};
h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.b.webkitSourceRemoveId(a.o);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
h.WG=function(){switch(this.b.webkitSourceState){case this.b.SOURCE_CLOSED:return"closed";case this.b.SOURCE_OPEN:return"open";case this.b.SOURCE_ENDED:return"ended"}return""};
h.endOfStream=function(a){var b=this.b.EOS_NO_ERROR;"network"==a?b=this.b.EOS_NETWORK_ERR:"decode"==a&&(b=this.b.EOS_DECODE_ERR);this.b.webkitSourceEndOfStream(b)};
h.XG=function(){nb(this.sourceBuffers)};
h.UG=function(){return this.g};
h.YG=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};A(Iz,ix);Iz.prototype.H=function(){if(!this.isDisposed()&&Jz(this)&&!(0,window.isNaN)(this.A)){this.o.duration=this.A;this.A=window.NaN;try{this.b=this.o.addSourceBuffer(this.F),this.M?this.g=this.o.addSourceBuffer(this.J):this.g=new Cz,this.B&&(this.B(this),this.B=null)}catch(a){this.C&&this.C(a)}}};
Iz.prototype.G=function(){this.dispose()};var jba={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};Qz.prototype.g=function(){return null};var oba="9h 9 h 8 ( H *".split(" "),iA="h98H(*".split(""),qba="oMavAV".split(""),tba=["sa"],sba="moMavAV".split(""),rba="aoMvAV".split(""),pba=["f"],lba={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},mba={"application/x-mpegURL":"maybe"},kba={"application/x-mpegURL":"maybe"};var pA="blogger books docs google-live play picasaweb gmail".split(" ");A(zA,F);var BA={eL:"cbrand",fL:"cbr",gL:"cbrver",cN:"c",fN:"cver",eN:"ctheme",dN:"cplayer",HN:"cmodel",mO:"cnetwork",wO:"cos",xO:"cosver",CO:"cplatform"};zA.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=FA(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:(d=this.X+"://"+c+"/watch",b.v=a,Vz&&(a=q("yt.www.ads.biscotti.lastId_")||"")&&(b.ebc=a));return Wg(d,b)};
zA.prototype.isAd=function(){return"adunit"==this.b};A(NA,P);h=NA.prototype;h.Fb=function(){return this.type};
h.ef=function(a,b,c,d,e,f){var k=b.La;if(!this.b||f)e=e||this.o,SA(this),this.b={},sa(this.b,a),sa(this.b,this.A.params),sa(this.b,b),f={},sa(f,a.La),this.A.params.La&&sa(f,this.A.params.La),b.La&&sa(f,b.La),this.b.La=f,this.J=d/360*16,this.F=this.J*OA(f),a="",this.b.Ug&&(a=Fw(this.b.windowColor),a="rgba("+a[0]+","+a[1]+","+a[2]+","+this.b.Ug+")"),b={"background-color":a,display:!1===this.b.isVisible?"none":"","text-align":Dsa[this.b.textAlign]},this.ba&&(b["border-radius"]=a?this.F/8+"px":""),Ls(this.element,
b),this.element.setAttribute("dir",1==this.b.Qg?"rtl":"ltr");this.Jh(e,c,k)};
h.Jh=function(a,b,c){var d=this.b.xi,e=!1,f=!1;switch(d){case 0:case 1:case 2:e=!0;break;case 6:case 7:case 8:f=!0}K(this.element,"ytp-caption-window-top",e);K(this.element,"ytp-caption-window-bottom",f);f=this.$p();e=this.Zp();b*=.96;f>b&&(f=b);Ls(this.element,{top:0,left:0,right:"",bottom:"",width:f?f+"px":"96%",height:e?e+"px":"96%",margin:"",transform:""});this.Nk(a,c);a={transform:"",top:"",left:""};f||(a.width="");e||(a.height="");c=.96*this.b.pj+2;switch(d){case 0:case 3:case 6:a.left=c+"%";
break;case 1:case 4:case 7:a.left=c+"%";c=this.B.offsetWidth;f||c?(f=f||c+1,a.width=f+"px",a["margin-left"]=f/-2+"px"):a.transform+=" translateX(-50%)";break;case 2:case 5:case 8:a.right=100-c+"%"}f=.96*this.b.Sj+2;switch(d){case 0:case 1:case 2:a.top=f+"%";break;case 3:case 4:case 5:a.top=f+"%";(d=e||this.B.offsetHeight)?(a.height=d+"px",a["margin-top"]=d/-2+"px"):a.transform+=" translateY(-50%)";break;case 6:case 7:case 8:a.bottom=100-f+"%"}Ls(this.element,a)};
h.Nk=function(a,b){for(var c=0;c<a.length&&a[c]==this.o[c];c++);if(this.G||this.o.length>c)c=0,SA(this);for(;c<a.length;c++){var d=a[c],e={};sa(e,this.b.La);sa(e,d.g);b&&sa(e,b);RA(this,d,e)}};
h.$p=function(){return 0};
h.Zp=function(){return 0};A(WA,F);h=WA.prototype;h.rj=v;h.tl=function(a){var b=this.b.g,c=TA(this.b,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
h.Re=function(){return null};
h.sj=v;h.seek=function(){};
h.jn=function(){};
h.sg=v;h.T=function(){WA.L.T.call(this);this.jn()};A(XA,WA);h=XA.prototype;h.rj=function(a,b){this.isDisposed();var c=this.sg(a),d=y(function(c){this.o=null;b(c.responseText,a)},this);
this.o&&this.o.abort();this.o=fk(c,{format:"RAW",tb:d,withCredentials:!0});this.g&&this.g.Pi!=a&&(this.g.il=a)};
h.sj=function(a,b,c,d){this.A=c;if(this.g=d||null)for(b=0;b<this.g.captionTracks.length;b++)VA(this.b,this.g.captionTracks[b]);a()};
h.sg=function(a){var b=a.G,c={};if(this.A||a.A)c.fmt=this.A||"srv"+a.A;a.b&&(c.tlang=a.b.languageCode);return Wj(b,c)};
h.Re=function(){return this.g?this.g.Pi:null};
h.tl=function(){return this.g?this.g.il:null};
h.T=function(){this.o&&this.o.abort();XA.L.T.call(this)};YA.prototype.contains=function(a){a=Ab(this.ra,a);return 0<=a||0>a&&1==(-a-1)%2};
YA.prototype.length=function(){return this.ra.length/2};A(ZA,F);ZA.prototype.T=function(){$i(this.g);this.g=window.NaN;this.o=!0;this.A&&this.A.abort()};
ZA.prototype.resume=function(){this.o=!1;$i(this.g);this.seek(this.F.getCurrentTime());Gba(this)};
ZA.prototype.seek=function(a){this.b=cb(this.G.rg(a).b)};
ZA.prototype.H=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.o||null===this.C||this.C(a.responseText,1E3*this.B.b[0].startTime);this.A=this.B=null};A(dB,WA);h=dB.prototype;h.rj=function(a,b){Fba(this.g,function(c,d){b(c,a,d)});
this.g.G=this.o.b[a.g];this.g.resume()};
h.sj=function(a){VA(this.b,new uz({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};
h.seek=function(a){this.g.seek(a)};
h.jn=function(){var a=this.g;$i(a.g);a.g=window.NaN;a.o=!0};
h.sg=function(){return""};
h.T=function(){this.g.dispose();dB.L.T.call(this)};A(eB,NA);var Esa={Ql:!0};eB.prototype.Nk=function(a,b){var c,d=this.A.$f;eB.L.Nk.call(this,a,b);var e,f;for(c=a.length;c<d.length;c++){var k=d[c];f&&k.g==e||(f={},sa(f,this.b.La),sa(f,k.g),b&&sa(f,b),sa(f,Esa));RA(this,k,f,!0);e=k.g}};A(fB,NA);h=fB.prototype;h.LE=function(){oe(this.element,"ytp-rollup-mode");var a=this.M||this.o,b=this.R;this.M=null;this.Jh(a,b,this.O)};
h.$p=function(){var a=this.A.params.Fp;if(!this.H&&a){var b=window.document.createElement("span");Vf(b,"\u00a0"+Oa("\u2014",a)+"\u00a0");Ls(b,PA(this,this.b.La));this.B.appendChild(b);this.H=b.offsetWidth;this.B.removeChild(b)}return this.H};
h.ef=function(a,b,c,d,e,f){f&&(this.H=window.NaN);fB.L.ef.call(this,a,b,c,d,e,f)};
h.Zp=function(){return 1.32*this.A.params.Gh*this.F};
h.Jh=function(a,b,c){this.O=c;this.R=b;for(var d=0,e=0;d<this.o.length&&e<a.length;d++)this.o[d]==a[e]&&e++;var f=QA(a),k=!1,d=0;if(0<e&&e<a.length){var e=this.o.concat(a.slice(e)),l=QA(e)-f;0<l&&(this.M=a,a=e,d-=l,k=!0)}f<this.A.params.Gh&&(k=!0,d+=this.A.params.Gh-f);!(0,window.isNaN)(this.K)&&k&&(I(this.element,"ytp-rollup-mode"),this.X.start());d!=this.K&&(f="",d&&(f="translateY("+Math.ceil(1.32*d*this.F)+"px)"),Ls(this.B,"transform",f),this.K=d);fB.L.Jh.call(this,a,b,c)};A(gB,fq);A(hB,fq);A(jB,WA);jB.prototype.rj=function(a,b){this.isDisposed();var c=this.sg(a),d=y(function(c){this.g=null;b(c.responseText,a)},this);
this.g&&this.g.abort();this.g=fk(c,{format:"RAW",tb:d,withCredentials:!0});Bba(this.b,a)};
jB.prototype.sj=function(a,b,c){var d=this.o;b={type:"list",tlangs:1,v:this.A,fmts:Number(b||!1),vssids:1};this.Yq&&(b.asrs=1);d=Wj(d,b);b=y(function(b){this.g=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.b,e=b.getElementsByTagName("track"),l=e.length,m=0;m<l;m++){var n=e[m].getAttribute("formats"),t=c,u=e[m].getAttribute("lang_code"),x=e[m].getAttribute("lang_translated"),z=e[m].getAttribute("name"),J=e[m].getAttribute("kind"),V=e[m].getAttribute("id"),S="true"==e[m].getAttribute("lang_default"),
ba="true"==e[m].getAttribute("cantran"),Ja=e[m].getAttribute("vss_id");VA(d,new uz({formats:n,format:t,languageCode:u,languageName:x,name:z,kind:J,id:V,is_servable:!0,is_default:S,is_translateable:ba,vss_id:Ja}))}b=b.getElementsByTagName("target");d=b.length;for(e=0;e<d;e++)l=b[e].getAttribute("lang_code"),m=b[e].getAttribute("lang_translated"),n=b[e].getAttribute("lang_original"),t=b[e].getAttribute("id"),u="true"==b[e].getAttribute("lang_default"),l={languageCode:l,languageName:m,languageOriginal:n,
id:t,is_default:u},this.C[l.languageCode]=l.languageName,this.B.push(new tz(l))}a()},this);
this.g&&this.g.abort();this.g=fk(d,{format:"RAW",tb:b,withCredentials:!0})};
jB.prototype.sg=function(a){var b=this.o,c={v:this.A,type:"track",lang:a.g,name:a.B,kind:a.o,fmt:a.A};a.b&&(c.tlang=a.b.languageCode);return b=Wj(b,c)};
jB.prototype.T=function(){this.g&&this.g.abort();jB.L.T.call(this)};A(mB,kB);A(pB,kB);A(xB,kB);A(BB,kB);var Kba=0,Iba=/^NOTE/,Hba=/(?:\r\n|\r|\n){2,}/,yB=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"),Jba=/<((?:[\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})>/;A(DB,iq);h=DB.prototype;h.create=function(){DB.L.create.call(this);this.B=this.b.getVideoData();CB(this)||this.aa.S(this.b,"resize",this.au);this.aa.S(this.b,"onPlaybackAudioChange",this.pC);var a=pq(this,"display-settings")||{};if(a.migrated)NB(this,a);else{gc(a,Fsa)&&(a={});for(var b in a)a[b+"Override"]=!0;NB(this,a,!0)}FB(this)&&this.load()};
h.destroy=function(){kx(this.aa);DB.L.destroy.call(this)};
h.load=function(){this.ia="1"==this.B.A.cc_auto_caps||"1"==this.V.J.cc_auto_caps;DB.L.load.call(this);if(this.B.xa)this.o=new dB(this.B.b,this.b),this.ga=this.aa.S(this.b,"seekto",this.rI);else{var a=this.B.yo||this.V.ub||this.B.Pd("yt:cc_default_lang")||this.V.qa,a=a&&a.split("_").join("-");this.B.captionTracks.length?this.o=new XA(this.B):this.o=new jB(this.B.Ub,this.B.videoId,a,this.B.Tb)}HB(this)};
h.unload=function(){this.F&&(KB(this),this.Pm("control_subtitles_set_track"));if(CB(this))for(var a=sf("track",void 0,this.J.b),b=0;b<a.length;b++)Lf(a[b]);else SB(this,!1),GB(this),this.ga&&this.aa.sa(this.ga),this.o.dispose(),this.o=null;this.K=this.ba=!1;DB.L.unload.call(this)};
h.Es=function(){if(CB(this)){var a=TA(this.o.b,!0);if(a.length){var b=null;EB(this,!0)&&(b=this.o.tl());for(var c=0;c<a.length;c++){var d=a[c],e={kind:"subtitles",label:vz(d),srclang:d.g,src:this.o.sg(d)};d==b&&(e["default"]=1);this.$.app.o.hp([L("TRACK",e)])}}}else if(b=this.K||EB(this,!this.ba),a=TA(this.o.b,!0),0<a.length){this.ba=!0;c=this.g&&-1!=a.indexOf(this.g);if(b&&!c)if(b=this.o.tl(),!b&&this.K&&(b=a[0]),b)this.da=!0,IB(this,b),c=!0;else if(a=this.o.b.o,a.length&&(a=a[0].toString(),this.K||
this.ia))a=Cba(this.o,a),IB(this,a,void 0),c=!0;this.b.Aa("onCaptionsTrackListChanged");c||JB(this)}else if(this.o.Re())JB(this);else if(a=nq(this.b),b=dJ(a,this.Na))qb(a.b,b),b.destroy()};
h.Fs=function(a,b,c){CB(this);if(a&&b==this.g){a=Mba(a,b,c);this.da&&(this.da=!1,this.b.Aa("onCaptionsTrackListChanged"));c={trackName:b.B,trackKind:b.o};b.b?(c.trackLangCode=b.b.languageCode,c.fromLangCode=b.g):c.trackLangCode=b.g;this.log(c);if(this.g!=this.o.Re()){if(this.K&&!HA(this.V)&&"WEB_UNPLUGGED"!=this.V.o.c){this.H||(b=iB({xi:0,pj:5,Sj:5,Gh:2,textAlign:0,Qg:0}),this.H=new NA(b));qw(this.b,this.H.element,4);c=N("YTP_CLICK_FOR_SETTINGS").split("$GEAR_ICON");var d;b=new Mq(Oh());G(this.H,
b);d=b.element;b=this.H.A.id;c=[new gB(0,0,0,b,c[0]),new gB(0,0,0,b,d,!0),new gB(0,0,0,b,c[1],!0)];(d=vz(this.g))&&c.unshift(new gB(0,0,0,b,d));b=this.J.Ja().width;d=my(this.J,!0).height;this.H.ef(this.A,this.C,b,d,c);this.la.ae()}(this.K||HA(this.V))&&qq(this,"module-enabled",!0);QB(this.b)}this.wb(a.g.concat(a.b))}};
h.Yd=function(a){this.X.push(a);this.ha.ae()};
h.re=function(a){qb(this.X,a);this.ha.ae()};
h.YF=function(a){if(this.g)if(a instanceof hB){var b=this.O[a.id];b&&b.A!=a&&(b.dispose(),delete this.O[a.id],b=null);if(!b){var b=this.O,c=a.id;a:switch(null!=a.params.Cm?a.params.Cm:a.params.IG?2:1<a.$f.length?1:0){case 1:a=new eB(a);break a;case 2:a=new fB(a);break a;default:a=new NA(a)}b=b[c]=a;K(b.element,"captions-asr","asr"==this.g.o)}}else b=a.o,this.R[b]||(this.R[b]=[]),this.R[b].push(a)};
h.hG=function(){this.H.detach();this.H.dispose();this.H=null};
h.kn=function(){CB(this);this.ha.stop();dc(this.R);this.X.sort(hq);E(this.X,this.YF,this);var a=this.J.Ja().width,b=my(this.J,!0).height;Pb(this.O,function(c,d){!this.R[d]||this.G?(c.dispose(),delete this.O[d]):(c.element.parentNode||qw(this.b,c.element,4),c.ef(this.A,this.C,a,b,this.R[d]))},this)};
var Fsa={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};h=DB.prototype;h.au=function(){if(!CB(this)){var a=this.J.Ja().width,b=my(this.J,!0).height;Pb(this.O,function(c){c.ef(this.A,this.C,a,b,void 0,!0)},this);
this.G&&this.G.ef(this.A,this.C,a,b,void 0,!0);this.H&&this.H.ef(this.A,this.C,a,b,void 0,!0);this.kn()}};
h.Ae=function(a,b){switch(a){case "fontSize":if((0,window.isNaN)(b))break;var c=df(b,-2,4);PB(this,{fontSizeIncrement:c});return c;case "reload":b&&HB(this);break;case "stickyLoading":void 0!=b&&this.V.Qa&&qq(this,"module-enabled",!!b);break;case "track":if(b){if(CB(this))break;if(!la(b))break;if(cc(b)){RB(this);break}for(var d,e=TA(this.o.b,!0),c=0;c<e.length;c++){var f=e[c];f.g!=b.languageCode||d&&f.C!=b.languageName||(d=b.translationLanguage?cba(f,b.translationLanguage):f)}d&&IB(this,d,!0)}else return this.g&&
this.g!=this.o.Re()?wz(this.g):{};return"";case "tracklist":return this.ba?Ki(TA(this.o.b,b&&b.includeAsr),function(a){return wz(a)}):[];
case "translationLanguages":return this.ba?this.o.B:[];case "displaySettings":d=OB(this);if(HA(this.V)&&b&&la(b))if(b.reset)NB(this,{},!0);else{f={};for(c in b)switch(c){case "color":case "background":case "windowColor":f[c]=Oba(b[c],d[c]);break;case "textOpacity":case "backgroundOpacity":case "windowOpacity":f[c]=Pba(b[c],d[c]);break;case "charEdgeStyle":f[c]=Qba(b[c],d[c]);break;case "fontSizeIncrement":f[c]=Sba(b[c],d[c]);break;case "fontFamilyOption":f.fontFamily=Rba(b[c],d[c])}for(e in f)f[e+
"Override"]=!0;PB(this,f,!0);d=OB(this)}d.fontFamilyOption=UB[d.fontFamily];d.charEdgeStyle=TB[d.charEdgeStyle];return d;case "sampleSubtitles":CB(this)||void 0==b||SB(this,!!b);break;case "xmlTrack":b&&this.V.Qa&&(GB(this),CB(this)||(c=b.xml,this.g=new uz({languageName:b.name}),this.Fs(c,this.g)))}};
h.Uf=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.V.Qa&&a.push("stickyLoading","xmlTrack");return a};
h.Cb=function(a){if("lb3"==Q(a).g)return!1;a=a.getVideoData();var b;if(b=a.xa)b=a.b,b=!(!b||null==b.b.en);return!!(a.Ub||a.captionTracks.length||b)};
h.zj=function(a){a?GB(this):this.loaded&&(this.unload(),this.load())};
h.rI=function(){this.o.seek(this.b.getCurrentTime())};
h.ci=function(){var a=this.g;return a?{cc:a.D}:null};
h.pC=function(){this.B.captionTracks.length&&(this.loaded?HB(this):FB(this)&&this.load())};XB.prototype.forEach=function(a){for(var b=this.g+1;b<this.b.length;b++)a(this.b[b]||0);for(b=0;b<=this.g;b++)a(this.b[b]||0)};
XB.prototype.Ra=function(){var a=[];this.forEach(y(a.push,a));return a};
XB.prototype.clear=function(){for(var a=this.b.length,b=0;b<a;b++)this.b[b]=0;this.g=this.b.length-1};$B.prototype.b=function(a,b){var c=Math.pow(this.B,a);this.g=b*(1-c)+c*this.g;this.A+=a};
$B.prototype.o=function(){return this.g/(1-Math.pow(this.B,this.A))};var gC=null;hC.prototype.g=function(){var a=q("gapi.config.update");a("googleapis.config/auth/useFirstPartyAuth",!0);var b=this.b.apiaryHost;B(C(b))||a("googleapis.config/root",(-1==b.indexOf("://")?"//":"")+b);b=this.b.gp;B(C(b))||a("googleapis.config/root-1p",(-1==b.indexOf("://")?"//":"")+b);a("googleapis.config/sessionIndex",Vi("SESSION_INDEX"));q("gapi.client.setApiKey")(this.b.innertubeApiKey)};kC.prototype.toString=function(){return this.topic};var Gsa=q("yt.pubsub2.instance_")||new ug;ug.prototype.subscribe=ug.prototype.subscribe;ug.prototype.unsubscribeByKey=ug.prototype.Nc;ug.prototype.publish=ug.prototype.Rb;ug.prototype.clear=ug.prototype.clear;g.ca("yt.pubsub2.instance_",Gsa,void 0);var nC=q("yt.pubsub2.subscribedKeys_")||{};g.ca("yt.pubsub2.subscribedKeys_",nC,void 0);var pC=q("yt.pubsub2.topicToKeys_")||{};g.ca("yt.pubsub2.topicToKeys_",pC,void 0);var oC=q("yt.pubsub2.isAsync_")||{};g.ca("yt.pubsub2.isAsync_",oC,void 0);
g.ca("yt.pubsub2.skipSubKey_",null,void 0);var tC=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};A(sC,jC);var lC=new kC("timing-sent",sC);var eca={vc:!0},bca=/^mark_/i,EC={ad_at:"adType",cpn:"clientPlaybackNonce",csn:"clientScreenNonce",yt_lt:"loadType",yt_ad:"isMonetized",yt_ad_pr:"prerollAllowed",yt_red:"isRedSubscriber",yt_vis:"isVisible"},cca=["isMonetized","prerollAllowed","isRedSubscriber","isVisible"],dca=y(tC.clearResourceTimings||tC.webkitClearResourceTimings||tC.mozClearResourceTimings||tC.msClearResourceTimings||tC.oClearResourceTimings||r,tC);dD.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};gD.prototype.start=function(){this.g=!0};
gD.prototype.reset=function(){this.b=this.g=!1};wD.prototype.skip=function(a){this.b+=a};A(MD,uk);ZD.prototype.aa=function(a){switch(a.info.type){case 1:case 2:this.X(a);break;case 4:var b=a.info.b.$s(a);a=a.info;var c=this.b;c&&c.b==a.b&&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.g==a.g&&c.o==a.o&&(this.b=cb(b).info);E(b,this.aa,this);break;case 3:this.C+=uca(this.o,a)}};
ZD.prototype.X=function(a){if(ZF(a.info.b.info)&&"9h"!=a.info.b.info.o&&1==a.info.type){var b=new window.DataView(a.b),c=new CD(b);JD(c);ID(c,408125543);c=ED(c);ID(c,374648427);c=ED(c);ID(c,174);c=ED(c);ID(c,224);c=ED(c);if(ID(c,21936)){var d=c.o+c.b,c=DD(c,!0);b.setUint8(d-2,236);b.setUint8(d-1,128|c+1)}}a.info.b.Ol(a)};
ZD.prototype.ba=function(a){this.A=a=a.info;this.M&&this.A.C&&(this.M=!1);this.R=Math.max(this.R,a.b.info.b)};
ZD.prototype.O=function(a){a.dispose();this.C-=$D(a)};CE.prototype.verify=function(){if(this.info.o!=this.range.length)return!1;if(1==this.info.b.info.g){if(8>this.info.o||4==this.info.type)return!0;var a=RD(this),b=a.getUint32(0,!1),a=a.getUint32(4,!1);if(2==this.info.type)return b==this.info.o&&1936286840==a;if(3==this.info.type&&0==this.info.g)return 1836019558==a||1936286840==a||1937013104==a||1718909296==a||1701671783==a||1936419184==a}else if(2==this.info.b.info.g){if(4>this.info.o||4==this.info.type)return!0;a=RD(this);b=a.getUint32(0,!1);if(3==
this.info.type&&0==this.info.g)return 524531317==b||440786851==b}return!0};var Fca=0;h=DE.prototype;h.aG=function(a){this.status=a.status;a.ok?(this.o=a.body.getReader(),this.B?(this.D=a.headers,this.J(),this.C=new window.Uint8Array(EE(this)),GE(this)):this.o.cancel("Cancelling")):this.lk()};
h.CC=function(a){if(this.B)if(D(),a.done)this.o=null,this.lk();else{a=a.value;this.A+=a.length;var b=a.length>=Math.max(EE(this)/2,16384),c=a.length+this.b>EE(this);(b||c)&&0!==this.b&&FE(this);b?this.g.push(a):(this.C.set(a,this.b),this.b+=a.length);this.B({timeStamp:D(),loaded:this.A});GE(this)}};
h.lk=function(){this.B&&(this.F=!0,this.G())};
h.kf=function(a){return this.D.get(a)};
h.rq=function(){return!!this.D};
h.ol=function(){return this.A};
h.mg=function(){return+this.kf("content-length")};
h.qq=function(){return 200<=this.status&&300>this.status&&!!this.A};
h.ir=function(){return!!this.g.length||this.F&&0<this.b};
h.Ot=function(){this.g.length||FE(this);return this.g.shift()};
h.Tu=function(){this.g.length||FE(this);return this.g[0]};
h.Su=function(){this.o&&this.o.cancel("Cancelling");this.G=this.B=null};h=HE.prototype;h.gI=function(a){if(!this.g){this.status=this.b.status;try{this.response=this.b.response}catch(b){}this.o=!0;this.A(a)}};
h.iI=function(){2==this.b.readyState&&this.B()};
h.hI=function(a){this.g||(this.status=this.b.status,this.C(a))};
h.rq=function(){return 2<=this.b.readyState};
h.kf=function(a){try{return this.b.getResponseHeader(a)}catch(b){return aj(b),""}};
h.mg=function(){return+this.kf("content-length")};
h.ol=function(){return this.response.byteLength};
h.qq=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
h.ir=function(){return this.o&&!!this.response&&!!this.response.byteLength};
h.Ot=function(){var a=this.response;this.response=null;return new window.Uint8Array(a)};
h.Tu=function(){return new window.Uint8Array(this.response)};
h.Su=function(){this.g=!0;this.b.abort()};IE.A=!1;IE.g=1E4;IE.b=2048;IE.o="X-Bandwidth-Est";h=IE.prototype;h.bb=function(){return this.F};
h.start=function(a){var b=1==this.state,c=7==this.state;1==this.state||5==this.state||c&&ME(this);NE(this,2);this.aa=0<=a?a:window.NaN;if(c){var d=LE(this),c=2<=this.D;if(d=this.A.Ma&&0<d.af&&0==d.Ut)d=this.info.g,d=!(this.G>d.o&&1<=d.g);if(d||c){c=this.info.g;if(!(this.G<=c.o)){c.g++;c.o=w$-1;var d=rG(c.A),e=new M(d);e.g.match("\\.googlevideo\\.com$")?(eh(e,"redirector.googlevideo.com"),d=e.toString()):e.g.match("r[1-9].*\\.c\\.youtube\\.com$")?(eh(e,"www.youtube.com"),d=e.toString()):d=Mp(d);c.b=
new qG(d);c.g&&(d=""+c.g,c.b.set("cmo=pf",d),c.A.set("cmo=pf",d))}this.D=0}else{this.D++;b=1E4*(.5+Math.random());1==this.D&&(b=2E3);Xi(y(this.Nn,this,a),b);return}}b?this.Nn(a):Xi(y(this.Nn,this,a),0)};
h.Nn=function(a){if(!this.isDisposed()){this.G=w$++;if(this.o){var b=this.info,c=this.o.b;this.H=b.range?new dD(b.range.start+c,b.range.end):fD(c,this.o.length);this.g=bB(this.info,this.H)}else this.H=this.info.range,this.g=bB(this.info);this.g.set("rn",this.G.toString());this.D&&this.g.set("playerretry",this.D.toString());0<=a&&this.g.set("rbuf",(1E3*a).toFixed().toString());this.info.A&&this.g.set("headm",Math.max(0,this.A.liveChunkReadahead-1).toString());a=aB(this.g);try{var d=y(this.KF,this),
e=y(this.NF,this),f=y(this.MF,this),k=y(this.LF,this);this.b=(this.A.H||this.A.ga&&5>this.aa)&&"function"==typeof window.fetch&&window.ReadableByteStream&&OE(this)?new DE(a,e,f,d,k):new HE(a,e,f,d,k)}catch(l){this.F="net.ssl",NE(this,7)}0<this.A.G&&(this.C=Xi(y(this.Ys,this),this.A.G));this.g.get("itag");this.g.get("range");D()}};
h.NF=function(){this.J=0;LE(this).af+=1;var a=this.timing;a.o=D();a.C=a.o;a.b=0;a.K=!1;a.H=!1;a.B=0;a.G=mK(a.g);XE(a);a.M=a.F-a.o};
h.MF=function(a){if(!this.isDisposed()){this.B=this.b.status;SE(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.o&&4E12>c?c:D();50>c-b.C||WE(b,c,a);b=this.timing;b.b>b.O&&8192<b.b&&4>this.state?NE(this,4):QE(this)&&cE(this)&&NE(this,Math.max(3,this.state))}};
h.LF=function(){!this.isDisposed()&&!this.M&&this.b.rq()&&this.b.kf("X-Walltime-Ms")&&(this.M=(D()-this.b.kf("X-Walltime-Ms"))/1E3)};
h.KF=function(){var a=this.b;if(!this.isDisposed()){this.C&&(Zi(this.C),this.C=window.NaN);this.B=a.status;var b=!1;if(400<=a.status)b=!0,this.F="net.badstatus";else if(a.qq()){var c="";RE(this)&&(c=a.Tu(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=uG.test(c)?c:""));if(c){var a=this.info.g,d=this.g;d.b===a.b&&(a.b=$ca(d,c));NE(this,5)}else{var c=a.mg(),a=a.ol(),d=!!this.H&&this.H.length,e=!0;!c&&d?e=d==a:!d&&c?e=c==a:d&&c&&(e=d==c&&c==a);e?(SE(this,!0),e=OE(this)?this.b.kf("X-Bandwidth-Est"):
0,c=this.timing,d=D(),e=e?(0,window.parseInt)(e,10):0,c.K||(c.K=!0,d=d>c.o&&4E12>d?d:D(),WE(c,d,a),c.D&&e?UE(c.g,c.b/e,c.b):(e=(d-c.o)/1E3,(e<=c.g.b.o||!c.g.b.o)&&!c.H&&8192<=c.b&&UE(c.g,e,a),8192<=c.b&&lK(c.g,a,c.B)),kK(c.g,(d-c.o)/1E3,c.b),c.A&&(c.A=!1)),D(),LE(this).Ut+=1,NE(this,6)):(b=!0,this.F="net.closed")}}else b=!0,this.F="net.connect";b&&(ME(this),NE(this,7),D())}};
h.Ys=function(){this.C=window.NaN;if(!(this.isDisposed()||this.A.Ka&&this.b&&8192<=this.timing.b&&"quic"==this.b.kf("client-protocol"))){var a=D(),b=!1;if(8192<=this.timing.b){var c=this.timing.F;XE(this.timing);this.timing.F-c>=.8*this.A.G?(this.J++,b=5<=this.J):this.J=0}else b=this.timing,b=5E3<a-(b.o+1E3*b.G.delay);b?(b=this.timing,a=a>b.o&&4E12>a?a:D(),c=(a-b.o)/1E3,b.D||(8192<=b.b?(b.B+=(a-b.C)/1E3,lK(b.g,b.J,b.B)):TE(b.g,c)),kK(b.g,c,b.b),VE(b.g,c,0),PE(this),this.F="net.timeout",NE(this,7)):
this.C=Xi(y(this.Ys,this),this.A.G)}};
h.isDisposed=function(){return-1==this.state};
h.dispose=function(){dE(this.info.b[0])&&6!=this.state&&(this.info.b[0].b.o=!1);NE(this,-1);this.K=null;PE(this);Zi(this.C);this.C=window.NaN};A(ZE,uk);ZE.D=!1;ZE.b=2/24;ZE.B=1E3;ZE.A=.2;ZE.g=1E4;ZE.C=1800;ZE.o="Not enough storage";h=ZE.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.D;d=d&&d.id;e.B="i";"auto"!=Bu()&&(e.B="s");UC(e,b);kca(e,d);e.J=e.A;lca(e);e.o=e.D;b=bD(e);this.o=new ZD(this.A,b.audio);this.g=new ZD(this.A,b.video);sF(this,this.o);sF(this,this.g);this.g.o.D=this.o.o;this.Y("videoformatchange",b);this.C=a;c?(this.F=!0,nF(this)):bF(this)};
h.resume=function(){this.F&&(this.F=!1)};
h.Ey=function(a){this.o.K=!1;this.g.K=!1;this.o.A=null;this.g.A=null;this.resume();this.b=a;Oz(a)&&(a.b.addEventListener("updateend",y(this.fd,this),!1),a.g.addEventListener("updateend",y(this.fd,this),!1),a.b.addEventListener("error",y(this.wj,this,!0),!1),a.g.addEventListener("error",y(this.wj,this,!1),!1));aF(this,"msa");zC("msa",void 0,"video_to_ad");tC.measure&&tC.getEntriesByName("vta").length&&tC.measure("measure_vta_to_msa","vta");this.aa&&this.M&&px();this.fd();this.da=Yi(y(this.fd,this),
1E4)};
h.JE=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.b[0].b,c=!this.aa&&b.info.video,d=!this.M&&b.info.audio,e=Math.max(0,a.info.b[0].B-this.C);if(5==a.state)c?aF(this,"vrr"):d&&aF(this,"arr"),a.start(e);else if(6==a.state||this.A.H&&3<=a.state&&!(5<=a.state)){c?(this.aa=a.g?aB(a.g):"",qx()):d&&(this.M=a.g?aB(a.g):"");b=b.info.video?this.g:this.o;this.B.g&&(b.H=!1,a.M&&this.la.b(1,a.M));if(e=dE(a.info.b[0]))e=a.info,e=!!dE(e.b[e.b.length-1]);e&&E(a.o.o,b.X,b);this.fd()}else if(4==a.state)this.fd(),
c&&qx();else if(7==a.state&&ME(a)){if(this.Oc(!1,a.bb(),KE(a)),!this.isDisposed()){if(c=b.info.video&&(0<a.D||410==a.B||500==a.B||503==a.B)&&90&&!ZC(this.D)){var d=this.D,f=b.info;ZC(d);d.aa=f;d.M=Dq();d.K=-1;UC(d,d.b)}d=8192<=a.timing.b&&a.A.za;if((a.info.b[0].b.Zc()||d)&&7==a.state&&("net.timeout"==a.F||"net.connect"==a.F&&204==a.B)||c){b=b.info.video?this.g:this.o;for(e=0;e<b.B.length&&a!==b.B[e];e++);if(e==b.B.length)a.dispose();else{for(;e<b.B.length;)b.O(b.B.pop());3==a.info.b[0].type?(a.o&&
a.o.A?(a=a.o.A,a=new zE(a.type,a.b,a.range,a.A,a.startTime+a.duration,0,a.g+a.o,0,!1)):(a=a.info.b[0],a=new zE(a.type,a.b,a.range,a.A,a.startTime,0,a.g,0,!1)),b.b=a):b.b=null}this.fd()}else a.start(e)}}else dE(a.info.b[0])?(b.A=!0,this.fd()):this.Oc(!0,"net.retryexhausted",KE(a))}};
h.fd=function(){this.ga=window.NaN;eF(this);if(this.b&&Jz(this.b)&&!Mz(this.b))if(this.B.isLive)(0,window.isNaN)(this.H)?(this.H=this.C+3600,Kz(this.b,this.H)):this.H<=this.C+1800&&(this.H+=1800,Kz(this.b,this.H));else{var a=Math.max(this.o.g.index.Yg(),this.g.g.index.Yg());(!(0,window.isFinite)(this.H)||this.H!=a)&&0<a&&(Kz(this.b,a),this.H=a)}if(!this.isDisposed())if(VG(this.B)&&3==this.B.D)this.Oc(!0,"manifest.net.retryexhausted",{rc:this.B.H.toString()});else if(this.B.isLive&&(xE(this.g)||xE(this.o))&&
(a=tF(this),(0,window.isNaN)(a)||this.seek(a)),"prerender"==window.document.webkitVisibilityState)nF(this);else if(eF(this),eE(this.g),!this.isDisposed()&&(eE(this.o),!this.isDisposed())){if(this.B.g){yE(this.g);yE(this.o);var b=-1!=this.g.G,a=-1!=this.o.G;if(!b||!a)if(b=!b&&ND(this.g.o),a=!a&&ND(this.o.o),b||a){var a=b?this.g:this.o,b=b?this.o:this.g,c=ND(a.o).info.A;if(-1!=b.G&&b.G!=c){var d=b.G;qE(a,0);oE(a,window.Infinity);a.b.A=d-1;this.Oc(!1,"qoe.avsync",{start:"1",target:b.G,actual:c})}else a.G=
c}ND(this.g.o)&&(this.ca=ND(this.g.o).o.g)}this.o.g.o||(!this.F||gF(this.G)?bF(this):nF(this));!this.b||fF(this,this.o,this.b.b)||fF(this,this.g,this.b.g)||((a=rF(this,this.g,this.b.g,null,this.o.F))&&!this.ba&&(this.ba=D(),aF(this,"vda"),zC("vda",void 0,"video_to_ad"),this.X&&qx()),b=dC(this.b.g.buffered,this.C+ZE.b),(0,window.isNaN)(b)&&!nE(this.g)&&this.b.b.buffered.length||(nE(this.g)&&(b=window.NaN),b=rF(this,this.o,this.b.b,b,null),a|=b,b&&!this.X&&(this.X=D(),aF(this,"ada"),zC("ada",void 0,
"video_to_ad"),this.ba&&qx())),nE(this.g)&&nE(this.o)&&Jz(this.b)&&!Mz(this.b)&&(b=this.b,Jz(b)&&b.o.endOfStream(),jK(this.G)),a&&!Oz(this.b)&&mF(this));vF(this,this.g,WC(this.D));vF(this,this.o,XC(this.D));this.g.g.A||this.o.g.A?this.Oc(!0,"net.retryexhausted",{metadata:"1",video:this.g.g.A?"1":"0",audio:this.o.g.A?"1":"0"}):(iF(this,this.g,this.o)&&lF(this,this.g,this.o),iF(this,this.o,this.g)&&lF(this,this.o,this.g),this.A.ha&&this.R&&!this.F&&gF(this.G)&&(a=this.R,this.R="",b=Ng(a),fk(a,{format:"RAW",
responseType:"arraybuffer",timeout:15E3,onError:y(this.Oc,this,!1,"pathprobe.net",{shost:b})})),this.B.o&&nF(this))}};
h.wj=function(a){a=(a=a?this.o:this.g)&&a.A;this.Oc(!0,"fmt.unplayable",a?PD(a):void 0)};
h.KD=function(a){this.Oc(!0,"fmt.unparseable",a)};
h.fF=function(a){this.Oc(!1,"qoe.avsync",a)};
h.seek=function(a){if(!(this.isDisposed()||this.g.H||this.o.H)){eF(this);this.ia=Dq();this.g.g=WC(this.D);var b=uF(this,this.g,a,this.b&&this.b.g);this.o.g=XC(this.D);var c=uF(this,this.o,b,this.b&&this.b.b);this.C=Math.max(a,b,c);this.K=!0;mF(this)}};
h.T=function(){dF(this);this.o&&(pE(this.o),pE(this.g));$i(this.da);Zi(this.O);this.g=this.o=null;ZE.L.T.call(this)};
h.Oc=function(a,b,c){this.isDisposed()||(this.Y("error",new VB(b,a,c)),a&&(this.b&&Jz(this.b)&&(a=this.b,Jz(a)&&a.o.endOfStream("network")),this.dispose()))};var aH={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},qda=sb(aH.widevine,aH.playready);A(EF,F);h=EF.prototype;h.hJ=function(a){this.D.call(this.o,new window.Uint8Array(a.message))};
h.iJ=function(){this.H.call(this.o,Ica(this))};
h.Ir=function(a,b){aj(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.C.call(this.o,c)};
h.qs=function(a){this.D.call(this.o,a.message)};
h.os=function(a){var b;this.b?(b=this.b.error.code,a=this.b.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.C.call(this.o,";c."+b+";sc."+a)};
h.ms=function(){this.G.call(this.o)};
h.update=function(a){this.g?this.g.update(a).then(null,Wi(y(this.Ir,this,"t.u"))):this.b?this.b.update(a):this.B.addKey?this.B.addKey(this.J.g,a,this.F,this.sessionId):this.B.webkitAddKey(this.J.g,a,this.F,this.sessionId)};
h.T=function(){this.B=null;EF.L.T.call(this)};A(FF,F);h=FF.prototype;
h.createSession=function(a){var b=a.b;if(this.b.o){var c=this.D.createSession(),b=c.generateRequest(a.contentType,b),c=new EF(null,null,null,c,null);b.then(null,Wi(y(c.Ir,c,"t.g")));return c}if(AF(this.b)){c=new window.Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.o.createSession("video/mp4",b,c);return new EF(null,null,null,null,b)}if(BF(this.b)){c=
b.subarray(4);c=String.fromCharCode.apply(null,new window.Uint16Array(c.buffer,c.byteOffset,c.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];a="";for(var d=0;d<c.length;d+=2)a+=String.fromCharCode((0,window.parseInt)(c.substr(d,2),16));for(var e=this.b.fairPlayCert,c=new window.Uint8Array(new window.ArrayBuffer(e.length)),d=0;d<e.length;d++)c[d]=e.charCodeAt(d);for(var d=new window.ArrayBuffer(2*a.length),e=new window.Uint16Array(d),f=0;f<a.length;f++)e[f]=a.charCodeAt(f);a=new window.Uint8Array(d);d=
0;f=new window.ArrayBuffer(b.byteLength+4+a.byteLength+4+c.byteLength);e=new window.Uint8Array(f);f=new window.DataView(f);e.set(b);d+=b.byteLength;f.setUint32(d,a.length,!0);d+=4;e.set(a,d);d+=a.length;f.setUint32(d,c.byteLength,!0);e.set(c,d+4);b=this.o.createSession("video/mp4",e);return new EF(null,null,null,null,b)}this.g.generateKeyRequest?this.g.generateKeyRequest(this.b.g,b):this.g.webkitGenerateKeyRequest(this.b.g,b);return this.A=new EF(this.g,this.b,b,null,null)};
h.lJ=function(a){var b=HF(this,a);b&&b.qs(a)};
h.kJ=function(a){var b=HF(this,a);b&&b.os(a)};
h.jJ=function(a){(a=HF(this,a))&&a.ms()};
h.T=function(){this.g=null;FF.L.T.call(this)};IF.prototype.get=function(a){a=KF(this,a);return-1!=a?this.values[a]:null};
IF.prototype.remove=function(a){a=KF(this,a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
IF.prototype.set=function(a,b){var c=KF(this,a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};A(MF,F);h=MF.prototype;h.Vu=function(a){this.G=a};
h.lI=function(a){if(!this.isDisposed()){this.D||(this.D=!0,this.b.Y("newsession",this));if(AF(this.o)){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(dr(a.childNodes[0].data))}if(BF(this.o))for(b=ar(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a=new Nca(a,++this.H);this.zt(a)}};
h.jI=function(){this.isDisposed()||this.C||(this.b.Y("sessionready"),this.C=!0)};
h.mI=function(a){this.isDisposed()||this.b.Y("keystatuseschange",Pca(a,this.F))};
h.zt=function(a){a={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,tb:y(this.BD,this,a),onError:y(this.Xr,this,a)};var b=this.B;this.G&&(b=ch(b,"access_token",this.G));fk(b,a)};
h.BD=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=ab(l[1]),l=l[2],d=hD(d.slice(e+2)),c=null==d?null:new Mca(k,l,d,c.subarray(f+4))));if(c)if(0!=c.b)NF(this,"drm.auth",!0,"t.f;c."+c.b,tq(c.b));else{f=null;(k=c.headers["Heartbeat-Url"])&&(f=new Lca(k,
(0,window.parseInt)(c.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(c.headers["Heartbeat-Num-Retries"],10)||4));f&&this.b.Y("newlicense",f);if(k=f=c.headers["Authorized-Format-Types"])k=this.g,k=!(k.g&&k.g.keyStatuses);k&&(f=f?f.split(","):null,this.b.Y("keystatuseschange",f&&kb(f,"HD")?"auto":"large"));c.headers["Key-Ids"]&&(this.F=Qca(c.headers["Key-Ids"]));BF(this.o)&&(c.message=new window.Uint8Array(dr(String.fromCharCode.apply(null,c.message))));this.g.update(c.message)}else NF(this,
"drm.net",!0,"t.p","YTP_ERROR_SERVER_ERROR")}else this.Xr(a,b)};
h.kI=function(a){this.isDisposed()||NF(this,"drm.keyerror",!0,"t.s"+a)};
h.Xr=function(a,b){var c,d=!1;a.b||this.J?(c="drm.net.retryexhausted",d=!0):c=b.status?"drm.net.badstatus":"drm.net.connect";NF(this,c,d,"t.r;c."+b.status);d||this.H!=a.number||(a.b=!0,Xi(y(this.zt,this,a),5E3))};
h.T=function(){this.b=null;MF.L.T.call(this)};A(QF,uk);h=QF.prototype;h.eD=function(a){a=new OF(new window.Uint8Array(a.initData),a.initDataType);SF(this,a,!0)};
h.XD=function(a){SF(this,new OF(a.initData,a.contentType),!0)};
h.JD=function(){this.isDisposed()||(this.C=!0,this.g.length&&RF(this,this.g[0]))};
h.nC=function(a){if(!this.isDisposed()){aj(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.Y("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.ZD=function(a){this.isDisposed()||!a||this.M||(this.M=a,this.Y("heartbeatparams",a))};
h.$D=function(){this.isDisposed()||(this.g.shift(),this.g.length&&RF(this,this.g[0]))};
h.SE=function(){if(AF(this.b)&&(this.K--,0==this.K)){var a=this.A;a.g.msSetMediaKeys(a.o)}};
h.nI=function(a){this.isDisposed()||AF(this.b)||"auto"!=a||this.B==Qy||(this.B=Qy,this.Y("qualitychange"))};
h.T=function(){this.b.o&&this.D.setMediaKeys(null);this.D=null;this.g=[];E(this.o.values,function(a){a.dispose()});
Kca(this.o);QF.L.T.call(this)};TF.prototype.B=function(){var a=q("yt.abuse.botguardInitialized");return a&&a()?(a=q("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
TF.prototype.C=function(a){return"r3a="+Math.floor(this.b.lengthSeconds%Ya(a.c3a))};
TF.prototype.A=function(a){a=Ya(a.c);var b;b=q("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};A(aG,F);h=aG.prototype;h.start=function(){this.g.start()};
h.stop=function(){this.g.stop()};
h.ib=function(a,b,c){this.o[a]=b;this.b[a]=new cG(!!c)};
h.clear=function(){for(var a in this.b)this.b[a].clear()};
h.mG=function(){for(var a in this.o)this.b[a].update(this.o[a]());this.g.start()};
cG.prototype.update=function(a){this.o?(YB(this.b,a-this.g),this.g=a):YB(this.b,a)};
cG.prototype.clear=function(){this.b.clear();this.g=0};eG.prototype.isEmpty=function(){return this.endTime==this.startTime};fG.prototype.getVisibilityState=function(){return dG(this.b)};nG.prototype.g=function(){return this.name};
nG.prototype.getId=function(){return this.id};
nG.prototype.b=function(){return this.isDefault};
nG.prototype.toString=function(){return this.name};
nG.prototype.getName=nG.prototype.g;nG.prototype.getId=nG.prototype.getId;nG.prototype.getIsDefault=nG.prototype.b;oG.prototype.o=1.3;qG.prototype.set=function(a,b){this.b[a]!==b&&(this.b[a]=b,this.g="")};
qG.prototype.get=function(a){sG(this);return this.b[a]||null};
qG.prototype.clone=function(){var a=new qG(this.o);a.C=this.C;a.A=this.A;a.B=this.B;a.b=hc(this.b);a.g=this.g;return a};h=BG.prototype;h.hf=function(a){return(a=CG(this,a))?a.duration:0};
h.Ri=function(a){return this.hf(a)};
h.og=function(){return this.ra.length?this.ra[0].b:-1};
h.Qb=function(){return this.ra.length?this.ra[this.ra.length-1].b:-1};
h.Yg=function(){var a=this.ra[this.ra.length-1];return a?a.endTime:window.NaN};
h.Ru=function(){return this.ra[0].startTime};
h.Bl=function(){return this.ra.length};
h.jk=function(){return 0};
h.Bf=function(a){return(a=Xca(this,a))?a.b:-1};
h.eq=function(a){return CG(this,a).g};
h.ze=function(a){return(a=CG(this,a))?a.startTime:0};
h.jf=function(){return 0<this.ra.length};EG.prototype.set=function(a,b){this.b.get(a);this.g[a]=b;this.o=""};
EG.prototype.get=function(a){return this.g[a]||this.b.get(a)};var w$=0;h=FG.prototype;h.ld=v;h.Mn=v;h.ym=function(){return!1};
h.Zc=function(){return!!this.b&&!!this.index&&this.index.jf()};
h.$g=v;h.Uu=function(){return!1};
h.zl=v;h.Zg=v;h.kk=v;h.rg=v;h.Ol=v;h.$s=function(a){return[a]};
h.Jj=function(a){return[a]};A(HG,FG);h=HG.prototype;h.ld=function(){return!1};
h.Mn=function(){return this.g};
h.Uu=function(){return this.B};
h.zl=function(){return this.g||this.B?[]:[new GG([new zE(1,this,this.initRange)],this.F)]};
h.kk=function(a){this.$g(a);return IG(this,a.C?a.A+1:a.A,!1)};
h.rg=function(a,b){if(this.g&&ia(a)&&!(0,window.isFinite)(a))return new GG([new zE(3,this,null,-1)],"",!0);var c=this.index.Bf(a);b&&(c=Math.min(this.index.Qb(),c+1));return IG(this,c,!0)};
h.Ol=function(a){this.b=new window.Uint8Array(RD(a).buffer)};
h.ym=function(){return!1};
h.$g=function(a){return 0==a.o||this.g?!0:this.index.Qb()>a.A&&this.index.og()<=a.A+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=tb(a),0==d.ra.length)d.ra=a;else{var e=d.ra.length?cb(d.ra).endTime:0,f=a[0].b-d.Qb();1<f&&nb(d.ra);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.ra.push(a[f])}}DG(this.index,c);this.D=b};
h.Zc=function(){return this.g||this.B?!0:HG.L.Zc.call(this)};JG.prototype.update=function(a,b){var c=void 0;this.g&&(c=this.g);var d=new JG,e=a.getElementsByTagName("S");if(e.length){var f=+yG(a,"timescale")||1,k=+yG(a,"startNumber")||0,l;l=((+e[0].getAttribute("t")||0)-(+yG(a,"presentationTimeOffset")||0))/f;l=c?c.be+c.durationSecs:b?l:0;var m;m=Date.parse(yG(a,"yt:segmentIngestTime"));var n=Date.parse(yG(a,"yt:mpdResponseTime")),n=D()-n;m=(m+n)/1E3;n=c?k-c.b:1;d.A=0<n?0:-n+1;for(n=0;n<e.length;n++)for(var t=e[n],u=+t.getAttribute("d")/f,x=(t.getAttribute("yt:sid")||
0)/f,z=+t.getAttribute("r")||0,J=0;J<=z;J++)if(c&&k<=c.b)k++;else{var V=new bda(k,l,u,m+x);d.b.push(V);var S;S=t;var ba=f,Ja=V.be,db=S.getAttribute("yt:cuepointTimeOffset"),V=S.getAttribute("yt:cuepointDuration");db&&V?(Ja=+db/ba+Ja,ba=+V/ba,S=S.getAttribute("yt:cuepointContext")||null,S=new iD(Ja,ba,S)):S=null;S&&d.o.push(S);k++;l+=u;m+=u+x}d.b.length&&(d.g=cb(d.b))}this.A=d.A;this.g=d.g||this.g;ub(this.b,d.b);ub(this.o,d.o)};h=KG.prototype;h.jk=function(a){return this.b[a]};
h.ze=function(a){return this.g[a]/this.A};
h.hf=function(a){a=this.Ri(a);return 0<=a?a/this.A:-1};
h.Ri=function(a){return a+1<this.ya||this.o?this.g[a+1]-this.g[a]:-1};
h.og=function(){return 0};
h.Qb=function(){return this.ya-1};
h.Yg=function(){return this.o?this.g[this.ya]/this.A:window.NaN};
h.Ru=function(){return 0};
h.Bl=function(){return this.ya};
h.eq=function(){return""};
h.Bf=function(a){a=Ab(this.g.subarray(0,this.ya),a*this.A);return 0<=a?a:Math.max(0,-a-2)};
h.jf=function(){return 0<=this.Qb()};A(MG,FG);h=MG.prototype;h.zl=function(a){var b=new zE(1,this,this.initRange),c=new zE(2,this,this.indexRange),d=[],e=[b];AE(b,c)?e.push(c):(d.push(new GG([c])),a=0);(0,window.isNaN)(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&e.push(new zE(4,this,fD(b.range.end+1,a-c)));d.push(new GG(e));return d};
h.Ol=function(a){if(1==a.info.type){if(this.b)return;var b;a.b.slice?b=new window.Uint8Array(a.b.slice(a.range.start,a.range.end+1)):(b=new window.Uint8Array(a.b,a.range.start,a.range.end+1),b=new window.Uint8Array(b));this.b=b}else if(2==a.info.type){if(this.B||0<=this.index.Qb())return;if(1==this.info.g){b=this.index;var c=RD(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.A=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.b[0]=k+(e+d);b.g[0]=f;b.o=!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.ya++;LG(f);f.b[f.ya]=f.b[f.ya-1]+l;f.g[f.ya]=f.g[f.ya-1]+k}}else this.B=RD(a)}if(2==this.info.g&&this.b&&this.B){a=new window.DataView(this.b.buffer);b=this.index;k=this.B;c=this.indexRange.end;a=new CD(a);if(ID(a,440786851)&&(HD(a),ID(a,408125543)&&(e=a,f=e.b,d=DD(e,!0),
e.b=f,a=ED(a),e=a.o+a.b,ID(a,357149030)))){a=ED(a);for(var l=1E6,m=1E9,f=0;!(a.b>=a.g.byteLength);){var n=DD(a,!1);if(2807729==n)l=GD(a);else if(2807730==n)m=GD(a);else if(17545==n){var f=a,n=DD(f,!0),t=0;4==n?t=f.g.getFloat32(f.b):8==n&&(t=f.g.getFloat64(f.b));f.b+=n;f=t}else HD(a)}b.A=m/l;a=new CD(k);if(ID(a,475249515)){a=ED(a);k=!0;for(l=!1;ID(a,187);){m=ED(a);n=e;if(ID(m,179))if(t=GD(m),ID(m,183)){for(var m=ED(m),u=n;ID(m,241);)u=GD(m)+n;t=[u,t]}else t=null;else t=null;k&&c==t[0]&&(l=!0);k=!1;
l&&(t[0]+=1);m=b;n=t[0];t=t[1];LG(m);m.b[m.ya]=n;m.g[m.ya]=t;m.ya++}c=d+e;a=f;LG(b);b.o=!0;b.g[b.ya]=a;b.b[b.ya]=c}}this.B=null}};
h.$s=function(a){for(var b=this.Jj(a.info),c=[],d=a.B,e=0;e<b.length;e++)c.push(new CE(b[e],a.b,fD(b[e].range.start+b[e].g-a.info.range.start+a.range.start,b[e].o),a.g,d)),d=!1;return c};
h.Jj=function(a){for(var b=0;b<this.index.Qb()&&a.range.start>=this.index.jk(b+1);)b++;return NG(this,b,a.range.start,a.range.length).b};
h.$g=function(a){return this.Zc()?!0:(0,window.isNaN)(this.g)?!1:a.range.end+1<this.g};
h.Zg=function(a,b){this.$g(a);if(!this.Zc()){var c=fD(a.range.end+1,b);c.end+1>this.g&&(c=new dD(c.start,this.g-1));return new GG([new zE(4,a.b,c)])}4==a.type&&(c=this.Jj(a),a=c[c.length-1]);var c=0,d=a.range.start+a.g+a.o;3==a.type&&(c=a.A,d==a.range.end+1&&(c+=1));return NG(this,c,d,b)};
h.rg=function(a,b){var c=this.index.Bf(a);b&&(c=Math.min(this.index.Qb(),c+1));return NG(this,c,this.index.jk(c),0)};
h.ym=function(){var a;if(a=this.Zc()&&!(0,window.isNaN)(this.g))a=this.index,a=(a.o?a.b[a.ya]:-1)!=this.g;return a};
h.ld=function(){return!0};
h.Mn=function(){return!1};A(OG,uk);
OG.prototype.X=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length){this.o=!0;this.A||(this.A=new dda);hda(this.A,a,this.aa);this.Y("refresh");for(a=0;a<b.length;a++){var c=TG(this,b[a]),d=this.isLive&&1==c.g&&this.ba;if(!this.b[c.id]){var e=RG(zG(b[a],"BaseURL").textContent,c),f=zG(b[a],"Initialization"),k=yG(f,"sourceURL"),f=eD(yG(f,"range"));d&&(k="",f=void 0);this.b[c.id]=new HG(e,c,k,null===f?void 0:f)}for(var c=this.b[c.id],e=this.A,k=
c,f=bb(k.info.mimeType,";",1)[0],k=e.o[k.info.id]||e.g[f]||e.b||null,e=vb(zG(b[a],"SegmentList").getElementsByTagName("SegmentURL"),k.A),k=k.b,f=[],l=0;l<e.length;l++)f.push(mda(e[l],k[l],d));c.update(f,this.isLive,this.J)}ida(this.A);return!0}this.duration=AG(yG(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];d=TG(this,k);e=zG(k,"BaseURL");c=RG(e.textContent,d);f=zG(k,"SegmentBase");k=eD(f.attributes.indexRange.value);f=eD(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=(0,window.parseInt)(e.getAttribute("yt:contentLength"),10);d=new MG(c,d,f,k,e,window.NaN);if(!d){b=!1;break a}this.b[d.info.id]=d}b=!0}return b};
var SG={commentary:1,alternate:2,dub:3,main:4};OG.prototype.O=function(a){this.H=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.B=1E3*AG(yG(a,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.B&&0!=this.ca;this.J=(0,window.parseInt)(yG(a,"yt:earliestMediaSequence"),10)||0;Xk(a.getElementsByTagName("Period"),this.X,this);this.D=2;this.Y("loaded");(0,window.isFinite)(this.B)&&WG(this);return this};
OG.prototype.R=function(a){this.H=a.status;this.D=3;this.Y("loaderror");return Kd(a)};
OG.prototype.M=function(){if(1!=this.D&&!this.isDisposed()){var a;a:{a=this.b;for(var b in a){var c=a[b].index;if(c&&c.jf()){a=c.Qb()+1;break a}}a=0}a=Wg(this.K,{start_seq:a.toString()});UG(this,a)}};
OG.prototype.resume=function(){(0,window.isFinite)(this.B)&&WG(this)};A($G,F);$G.prototype.C=function(a){this.A=a;DF(this.F)?this.B():sda(this)};
$G.prototype.B=function(){if(!this.isDisposed())if(0==this.g.length)this.A(null);else{var a=this.g.shift(),b=this.b[a],c=rda(this.o[b.b]);window.navigator.requestMediaKeySystemAccess(a,c).then(Wi(y(this.D,this,b)),Wi(y(this.B,this,b)))}};
$G.prototype.D=function(a,b){if(!this.isDisposed()){a.o=b;var c=b.getConfiguration();E([c.audioCapabilities,c.videoCapabilities],function(b){E(b,function(b){a.A[b.contentType]=!0})});
this.A(a)}};bH.prototype.getValue=function(){return this.b};
bH.prototype.clone=function(){return new bH(this.Ac,this.b)};h=cH.prototype;h.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)nb(a);else{a[0]=a.pop();for(var a=0,b=this.b,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].Ac<b[f].Ac?k:f;if(b[f].Ac>e.Ac)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
h.Ra=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
h.Ua=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Ac);return b};
h.clone=function(){return new cH(this)};
h.Pb=function(){return this.b.length};
h.isEmpty=function(){return lb(this.b)};
h.clear=function(){nb(this.b)};A(eH,cH);A(fH,uk);fH.prototype.pg=v;fH.prototype.Ed=v;fH.prototype.D=function(a,b){this.b=this.b.onload=null;var c=this.Ed(a);c.o[b]=!0;iH(this);var d=c.Zb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.ul()-1)];this.Y("l",c[0],c[1])};
fH.prototype.T=function(){this.b&&(this.b=this.b.onload=null);fH.L.T.call(this)};h=lH.prototype;h.cb=function(){return this.F};
h.getHeight=function(){return this.D};
h.ul=function(){return this.g};
h.isDefault=function(){return-1!=this.A.indexOf("default")};
h.Ev=function(a){return df(0==this.B?Math.round(a*this.g/this.J):Math.round(1E3*a/this.B),0,this.ul()-1)};
h.Un=function(){return this.g-1};
h.Fv=function(){return this.g?0:-1};
h.Gv=function(){};A(mH,fH);h=mH.prototype;h.Km=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.qp(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
h.qp=function(a,b,c,d){return new lH(a,b,c,d)};
h.Ed=function(a){return this.g[a]};
h.pg=function(a){var b=this.A[a];if(b)return b;for(var b=this.g.length,c=0;c<b;c++)if(this.Ed(c).cb()>=a)return this.A[a]=c;this.A[a]=b-1;return b-1};
h.Hv=function(){};A(oH,lH);h=oH.prototype;h.ul=function(){return this.b?this.b.Bl():-1};
h.Ev=function(a){var b=this.rows*this.Zb*this.G,c=-1,d=-1,e=this.b;e&&(c=e.Qb(),d=e.Bf(a));return d>c-b?-1:d};
h.Un=function(){return this.b?this.b.Qb():-1};
h.Fv=function(){return this.b?this.b.og():-1};
h.Gv=function(a){this.b=a?a.index:null};A(pH,mH);pH.prototype.Km=function(a,b){return pH.L.Km.call(this,"$N|"+a,b)};
pH.prototype.qp=function(a,b,c){return new oH(a,b,c,this.F.isLive)};
pH.prototype.Hv=function(a){for(var b=0;b<this.g.length;b++)this.g[b].Gv(a)};A(qH,Qz);
qH.prototype.g=function(){if(!this.b||this.b.isDisposed()){var a=this.o;uda(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.g.length;d<e;++d){var f=a.g[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.b.length;d<e;++d){var k=a.b[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.Ep+","+f.Ep)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}this.b=new Dz("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(b.join("\n")))}return this.b};A(sH,Qz);sH.prototype.g=function(){return new Dz(this.b)};A(vH,uk);vH.D=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;vH.g=1;vH.B=-21;vH.C=18E3;vH.o="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(" ");vH.A="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(" ");
vH.b={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};h=vH.prototype;h.DB=function(a){(this.F=a)&&"fairplay"==this.F.b&&(this.F.fairPlayCert=this.fairPlayCert);GH(this)};
h.XC=function(a){this.isDisposed()||(DH(this,a),this.xa&&this.b.subscribe("refresh",this.Qr,this),zC("mrc"),gA(this.b)&&(this.ia=!0),GH(this))};
h.WC=function(a){this.isDisposed()||(this.M=!1,this.Y("dataloaderror",new VB("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.Qr=function(){this.b.isLive||this.b.Fa("refresh",this.Qr,this);this.Ap()};
h.Ap=function(){var a;a=this.b;var b=this.He;a=a.A?vb(a.A.A,b):a.G.length?vb(a.G,b):[];0<a.length&&(this.Y("cuepointupdated",a),this.He+=a.length)};
h.Pd=function(a){return w(this.keywords[a])?this.keywords[a]:null};
h.ut=function(){var a={format:"RAW",method:"GET",withCredentials:this.vo};this.Fo&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});pG(yu,this.ht,a).then(Wi(this.qD),Wi(this.Vr),this);zC("vir");zC("vir",void 0,"video_to_ad")};
h.Hc=function(a,b){if(30==this.za){var c=this.fh["default.jpg"];return c?c:this.videoId?Wg("//docs.google.com/vt",{id:this.videoId,authuser:this.Ob,authkey:this.Pp}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.fh[b])||a.F||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:GA(a,this.videoId,b)};
h.Ui=function(){return this.lo};
h.qD=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.M=!1;var c=Sj(b);"fail"==c.status?this.Y("onStatusFail",c):(zC("virc"),zC("virc",void 0,"video_to_ad"),E(vH.o,function(a){a in this.A&&(c[a]=this.A[a])},this),wH(this,c),RH(this)?GH(this):this.Y("dataloaderror",new VB("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.Vr(a)}};
h.Vr=function(a){if(!this.isDisposed()){var b="manifest.net.retryexhausted",c=!0,d={backend:"gvi",rc:a.status};this.Vp&&(this.kr?d.retried="1":(this.kr=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.wo.start()));this.Y("dataloaderror",new VB(b,c,d))}};
h.Xg=function(){return null};
h.Gb=function(){return this};
h.Fl=function(a){return a.getVideoUrl(this.videoId)};A(XH,uk);XH.g=2;XH.o=5;XH.A=5;XH.b="endcr";h=XH.prototype;h.T=function(){Zi(this.ba);$i(this.Ia);Zi(this.Ka);bI(this);cI(this);ZH(this);vI(this);Ob(this.ha,this.b);this.O=null;this.Ca=!1};
h.getVideoData=function(){return this.b};
h.Cp=function(){if(SH(this.b))this.V.experiments.Z("html5_fix_double_error")&&O(this.B,128)||(SH(this.b),this.ga.b=!0,4!=this.J&&(this.ca=tb(this.b.G)),KH(this.b,this.V),BH(this.b)&&(this.b.xa&&(this.R=new Tba),this.b.o.b&&HI(this),GI(this,"i")),dI(this,"dataloaded"),this.aa.g&&kI(this));else{var a=this.b;if(a.xa&&a.adaptiveFormats&&!a.Wt&&(vs(a)||this.V.experiments.Z("html5_manifestless_always"))){if(a=this.b,!CH(a)){a.Wt=!0;var b=PG(EH(a,a.adaptiveFormats),a.na,a.lengthSeconds,!0);Eda(b)||a.Yt?
b.dispose():(a.Ga=!1,DH(a,b),b.subscribe("cuepointsadded",a.Ap,a),gA(a.b)&&(a.ia=!0));GH(a)}}else if(this.b.Ga){a=this.b;b=this.V.experiments;a.M=!0;a.Ga=!1;uG.test(a.D)||aj(Error("DASH MPD Origin invalid: "+a.D),"WARNING");var c=a.D,c=Wg(c,{mpd_version:4});!a.isLowLatencyLiveStream&&b.Z("html5_live_disable_dg_pacing")&&(c=Wg(c,{pacing:0}));UG(new OG(c,b,a.xa),c).then(a.XC,a.WC,a);zC("mrs")}else if(this.b.ia)this.o&&(a=this.o.g,Mu(a,"protected"),a.b.videoData.F?a.Dt():a.b.videoData.subscribe("dataloaded",
a.Dt,a)),a=this.b,b=this.V.K,c=this.V.experiments,gA(a.b),b=new $G(fA(b,a.b),c),G(a,b),a.ia=!1,a.M=!0,b.C(y(a.DB,a));else if(!this.b.M&&(this.Db||this.da)){a:{var a=this.V,b=this.b,d=this.Oa.Ja(),e=dG(this.V),f=this.V.M;switch(b.za){case 38:a=b.videoId.indexOf(":");c=Wg("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.ay});break a;case 30:c="//docs.google.com/";a.baseYtUrl!=zA.prototype.baseYtUrl&&(c=a.baseYtUrl);c=Wg(c+"get_video_info",{docid:b.videoId,
authuser:b.Ob,authkey:b.Pp,eurl:a.ga});break a;case 33:c=Wg("//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.ga,ps:a.g,el:a.b,hl:a.qa,list:b.playlistId,agcid:b.Px,aqi:b.Jx,sts:17050,lact:mr()},a.forcedExperiments&&(c.forced_experiments=a.forcedExperiments),b.aa?c.vvt=b.aa:b.oauthToken&&(c.access_token=b.oauthToken),b.adFormat&&(c.adformat=b.adFormat),a.ub&&(c.cc_lang_pref=a.ub),a.la&&2!=a.la&&(c.cc_load_policy=
a.la),a.mute&&(c.mute=a.mute),b.jd&&2!=a.de&&(c.iv_load_policy=b.jd),b.sc&&(c.itct=b.sc),Qu(a,b,f)&&(c.autoplay="1"),b.Ec&&(c.autonav="1"),b.Fe&&(c.noiba="1"),b.isMdxPlayback&&(c.mdx="1"),b.qc&&(c.ytrcc=b.qc),b.Ge&&(c.utpsa="1"),b.isFling&&(c.is_fling="1"),b.vnd&&(c.vnd=b.vnd),b.Ee&&(c.force_ad_param_ad_type="video_ad",c.force_ad_param_url=b.Ee,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.Ca&&(c.splay="1"),b.ypcPreview&&
(c.ypc_preview="1"),a.ua&&(c.content_v=a.ua),b.Ka&&(c.livemonitor=1),a.Ob&&(c.authuser=a.Ob),a.pageId&&(c.pageid=a.pageId),a.ca&&(c.ei=a.ca),a.Ec&&(c.ssl_stream="1"),a.D&&(c.iframe="1"),b.Id&&(c.tst=b.Id),b.contentCheckOk&&(c.cco="1"),b.racyCheckOk&&(c.rco="1"),a.Qa&&b.liveStartWalltime&&(c.live_start_walltime=b.liveStartWalltime),a.Qa&&b.Ie&&(c.live_manifest_duration=b.Ie),a.Qa&&b.jr&&(c.cyc=b.jr),0!=e&&(c.vis=e),a.enableSafetyMode&&(c.enable_safety_mode="1"),a.widgetReferrer&&(c.widget_referrer=
a.widgetReferrer.substring(0,128)),(b=a.J.embedding_app)&&(c.embedding_app=b),(b=a.J.developer_api_key)&&(c.developer_api_key=b),sa(c,a.o),c=Wg(a.baseYtUrl+"get_video_info",c)}}a=!this.V.isAd();b=this.b;d=this.V.na;e=!this.V.experiments.Z("disable_gvi_cors");b.isDisposed()||(b.ht=c,b.Vp=a,b.Fo=!!d,b.vo=!!e,b.M=!0,b.ut())}}};
h.logEvent=function(a,b){if(this.o){var c=this.o,d={};d.rt=Gu(c.b).toFixed(3);sa(d,Zu(c.b));var e=c.b.b,f=c.b.videoData,k={ns:e.ia,html5:"1",el:e.b,ps:e.g,fexp:e.experiments.experimentIds.join(",")||void 0,feature:f.Le||e.ee||void 0,ctrl:f.qb||void 0,ytr:f.ub||void 0,list:f.playlistId,d:e.Sb,f:e.fb};if(e.experiments.Z("legacy_autoplay_flag")?e.aa:f.J)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);sa(d,k);delete d.fexp;sa(d,a);d=Wj(c.b.b.baseYtUrl+"player_204",d);dv(c,d,b)}};
h.getPlayerState=function(){return this.B};
h.Fn=function(){var a=this.getVideoData(),b=a.B;if(!b)return a.Ia;var c=fb(this.b.o?this.b.o.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.Ia};
h.EF=function(){GI(this,"v")};
h.xD=function(a){if(this.F){var b=this.F;if(AF(b.b)){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&&SF(b,new OF(a),!1)}}};
h.FD=function(a){rI(this,a.reason,a.video.info,a.audio.info);var b=MH(this.b);b&&b.Hv(a.video);this.R&&(this.R.g=a.audio.index)};
h.ED=function(a){qI(this,a.reason,a.audio.info)};
h.Wh=function(a){if("html5.invalidstate"==a.errorCode&&this.g){var b=this.g.bb();a.details.merr=b?b.toString():"0"}AH(this.b)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)O(this.B,4)?(this.xb=!0,cI(this)):yI(this);else if(II(a)&&this.b.o.g)a=this.b,a.o=a.o.g,DI(this),CI(this);else if(a.b)b=this.A?this.A.D.b:null,b=II(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,gI(this,a.errorCode,b,WB(a.details));else if(this.o)this.o.onError(a.errorCode,
WB(a.details))};
h.pauseVideo=function(a){O(this.B,64)&&!a&&(O(this.B,8)?eI(this,Gq(this.B)):eI(this,Fq(this.B,8)));this.g&&(O(this.B,128)||(a?eI(this,Eq(this.B,256)):eI(this,Gq(this.B))),this.g.pause())};
h.seekTo=function(a,b,c){if(!this.g||!this.aa.b||!this.g.jc()&&this.V.experiments.Z("new_ended_replay"))this.b.startSeconds=a||0;else{var d;if(a&&!(0,window.isFinite)(a)&&this.b.H&&FH(this.b)&&this.A){d=this.A;cF(d);var e=Math.max(d.g.D,d.o.D),f=d.g;f.H=!0;f.G=-1;oE(f,window.Infinity);f.D=e;f=d.o;f.H=!0;f.G=-1;oE(f,window.Infinity);f.D=e;var f=d.B,k;for(k in f.b)DG(f.b[k].index,window.Infinity);mF(d);d=e+.1}d||(d=df(a||0,NH(this.b),JI(this,!1)));a=this.b.xa&&!O(this.B,4)&&zI(this,d);nI(this,a);this.M=
this.b.startSeconds=d;$F(this.za,d);b?this.Au():(O(this.B,32)||(eI(this,Eq(this.B,32)),O(this.B,8)&&this.pauseVideo(!0),this.Y("beginseeking",this)),c&&(this.ha||(this.ha=new he(this.Au,c,this)),this.ha.start()),PI(this,!0));this.O&&d>this.b.ha&&(this.C.Uh(this.O),this.O=null);d<JI(this,!1)&&eI(this,Fq(this.B,2));this.Y("seekto",this,d)}};
h.Au=function(){if(!(0,window.isNaN)(this.M)&&this.g){var a=this.Vh();!this.b.xa&&this.M>=Math.floor(a)?(this.M=a,this.Y("endseeking",this),this.pauseVideo(!0),YH(this)):(this.A&&this.A.seek(this.M),(!this.b.xa||1<=this.g.Be())&&this.g.seekTo(this.M))}this.ha&&(this.ha.dispose(),this.ha=null);O(this.B,32)&&(eI(this,Eq(Fq(this.B,32),16)),this.Y("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.M))return this.M;var a=0;this.g&&1<=this.g.Be()?a=this.g.getCurrentTime():this.b&&(a=this.V.experiments.Z("new_ended_replay")?this.b.startSeconds||0:this.b.Gd||this.b.startSeconds||0);this.V.experiments.Z("new_ended_replay")&&(a=df(a,NH(this.b),JI(this,!1)));return a};
h.Vh=function(){return this.b.lengthSeconds?this.b.lengthSeconds:JI(this,!1)?JI(this,!1):0};
h.yz=function(){var a=new Tca;if(this.K&&this.A){var b=this.K;a.o=b.o;a.C=b.A;a.b=OC(b);b=this.A;b.b&&!Lz(b.b)&&(a.g=fC(b.b.g.buffered,b.C),a.A=fC(b.b.b.buffered,b.C));a.b=RC(b.J);OC(b.G);PC(b.G);NC(b.G)}else this.g&&(a.g=zq(this.g));this.R&&Uba(this.R,a);return a};
h.xF=function(){if(this.F){var a=this.F,b=this.b.oauthToken;a.H=b;a.Y("oauthtoken",b)}uI(this);dI(this)};
h.wF=function(a){gI(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.uH=function(a){var b=a.target.jc();if(this.g&&this.g.jc()&&this.g.jc()==b){var c=!1;switch(a.type){case "error":if(this.V.Me&&2==this.g.bb()){(0,window.setTimeout)(y(function(){this.g&&(this.b.la&&this.g.load(),CI(this))},this),500);
if(this.o)this.o.onError("progressive.net");return}if(this.V.experiments.Z("html5_retry_media_element_errors")&&(4==this.g.bb()||3==this.g.bb())&&!this.Ya){this.Ya=!0;kv(this.o,"mediaerror",3==this.g.bb()?"decode":"unplayable");DI(this);CI(this);return}break;case "durationchange":var d=this.g.pf();(!this.H||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.b.lengthSeconds!=d&&(this.b.lengthSeconds=d,dI(this));break;case "ratechange":this.A&&Hca(this.A,this.g.rk());Pt(this.C);break;case "loadedmetadata":this.b.startSeconds&&
(0<this.g.Wi().length?this.V.experiments.Z("new_ended_replay")?this.seekTo(this.b.startSeconds,!0):this.g.tk(this.b.startSeconds):(this.la=this.b.startSeconds,this.pauseVideo(!0)));case "loadstart":$i(this.Ia);this.Vk()||(this.Ia=Yi(y(this.Vk,this),100));break;case "progress":Lda(this);case "suspend":PI(this);this.Y("onLoadProgress",this,Kda(this));O(this.B,8)&&(this.Sb?c=!0:this.Tb&&((0,window.isNaN)(this.qb)||this.qb+1<this.g.getCurrentTime())&&(c=!0,this.qb=this.g.getCurrentTime()));break;case "seeked":QI(this);
break;case "seeking":d=this.V.experiments.Z("disable_html5_videoplayer_seeking_time")?this.g.getCurrentTime():this.getCurrentTime();this.A&&this.A.seek(d);$F(this.za,d);break;case "playing":this.D.g("plev");zC("plev",void 0,"video_to_ad");this.ub&&(this.ub=!1,zI(this)||this.seekTo(window.Infinity,!0));Zi(this.Ka);this.Ka=window.NaN;break;case "timeupdate":if(this.V.experiments.Z("html5_ignore_first_0_timeupdate")&&this.g&&!this.g.getCurrentTime()&&!this.Ga)return;this.Ga=!!this.g.getCurrentTime();
this.Vk();QI(this);PI(this);if(!this.g||this.g.jc()!=b)return;this.Y("onVideoProgress",this,this.g.getCurrentTime());this.R&&this.G&&Vba(this.R,this.g.getCurrentTime());break;case "waiting":if(0<this.g.Vi().length&&0==this.g.je().length&&0<this.g.getCurrentTime()&&5>this.g.getCurrentTime()&&this.A)return}this.g&&this.g.jc()==b&&(this.Y("videoelementevent",a),a=Bq(this.B,a,this.za,this.Ub),eI(this,a),c&&this.g.play())}};
h.cC=function(a){a="available"==a.b.availability;a!=this.fb&&(this.fb=a,this.Y("airplayavailabilitychange"))};
h.dC=function(){var a=this.g.Nv();a!=this.Za&&(function(){this.V.zm=a}.apply(this),this.Za=a)&&(KH(this.b,this.V),GI(this,"m"));
this.Y("airplayactivechange")};
h.Vk=function(){var a=this.g;a&&this.Ga&&!this.b.H&&!CC("vfp",this.D.b)&&2<=a.Be()&&!a.Vf()&&0<eC(a.je())&&this.D.g("vfp");if((a=this.g)&&!this.b.H&&0<a.pf()&&(!CC("pbp",this.D.b)&&a.bh()&&2<=a.Be()&&0<eC(a.je())&&this.D.g("pbp"),0<a.getCurrentTime())){$i(this.Ia);Zi(this.ba);this.ba=window.NaN;this.b.H=!0;NI(this);if(this.o){a=this.o;if(!a.A){var b=av(a,"playback");a.H=[10+a.b.videoData.Hd,10,10,40+a.b.videoData.rf-a.b.videoData.Hd,40];var c=a.o;$i(c.C);c.C=window.NaN;c.C=Yi(y(c.update,c),100);c.B=
Gu(c.o);c.A=pu(c.o);b.g=Yu(a,!0);b.Ka=!0;b.send();a.b.videoData.Oa&&(b=a.b.b,c=a.b.videoData,b=Wg(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Oa,oid:c.oo,ptchn:c.no,pltype:c.qo,content_v:b.ua}),dv(a,b));a.b.videoData.enableCardio&&(a.F("playback"),a.B||jv(a));a.b.videoData.da||fv(a);a.A=!0;a=a.o;a.b=a.o.g();a.B=Gu(a.o);!(0==a.g&&5>a.b)&&2<a.b-a.g&&(a.g=a.b)}Xi(y(this.Vm,this),4500)}this.Y("playbackstarted");lx()&&px();return!0}return!1};
h.YC=function(){this.Sa&&(this.ia.sa(this.Sa),delete this.Sa,BI(this.g))};
h.aA=function(){if(this.g){var a=this.getCurrentTime();if(O(this.B,8)&&Cq(this.za,a,Dq(),zq(this.g))){var b=this.Vh();!this.b.xa&&b&&1>Math.abs(b-a)?this.g.aq()?this.seekTo(0,!0):YH(this):eI(this,Eq(this.B,1))}else O(this.B,4)&&Iq(this.B)&&5<zq(this.g)&&eI(this,Fq(this.B,1));PI(this)}};
h.vz=function(){return this.A?RC(this.A.J):this.K?OC(this.K):0};
h.wz=function(){return this.g?zq(this.g):0};
h.xz=function(){return this.K?this.K.o:0};
h.iG=function(){var a;if(a=O(this.B,1)&&this.A){a=this.A;var b=this.getCurrentTime();if(!a.b||Lz(a.b))a=!1;else{var c=cC(a.b.g.buffered,b),d=cC(a.b.b.buffered,b);a=!!(-1==c&&a.g.b&&a.g.b.startTime>b||-1==d&&a.o.b&&a.o.b.startTime>b)}}a&&(this.o&&kv(this.o,"reseek","1"),this.V.experiments.Z("html5_reseek_on_infinite_buffer")&&this.seekTo(this.getCurrentTime(),!0))};
h.Kz=function(){this.b.xa||this.Y("connectionissue")};
h.oG=function(){this.g.seekTo(this.g.getCurrentTime()+.1)};
h.YD=function(a){var b={};sa(b,this.V.o);b.cpn=this.b.clientPlaybackNonce;this.b.aa&&(b.vvt=this.b.aa);this.V.Ob&&(b.authuser=this.V.Ob);this.V.pageId&&(b.pageid=this.V.pageId);kc(a.A,b);LF(a,a.B)};
h.zD=function(a,b,c,d){d=p(d)?d:"YTP_ERROR_LICENSE";c=c.substr(0,256);"drm.unavailable"==a&&0<this.F.o.keys.length&&6>this.b.O&&(a="drm.sessionlimitexhausted",b=!1);if(b)gI(this,a,d,c);else if(this.o)this.o.onError(a,c);"drm.sessionlimitexhausted"!=a||this.da||(this.da=!0,this.Y("drmsessionlimitexhuased"))};
h.AD=function(){GI(this,"r");dI(this)};
h.tH=function(a){this.Y("heartbeatparams",a)};
h.Yr=function(){if(!this.b.H&&this.g){0<this.g.Be()&&5<=zq(this.g)&&(eI(this,Eq(this.B,1)),this.Y("playbackstalledatstart"));if(this.o){var a={preroll:""+ +mI(this)};this.A&&sa(a,xF(this.A));this.g&&sa(a,LI(this.g));this.o.onError("qoe.start15s",WB(a))}this.Y("loadsofttimeout")}};
h.Vm=function(){if(!this.Ca){var a=new TF(this.b),b;"c1a"in a.o?(b=q("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)Xi(y(this.Vm,this),4500);else{var c;if(a.b&&a.b.yb){b=[a.b.yb];for(c in a.g)if(a.o[c]&&a.g[c]){var d=a.g[c](a.o);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.o&&(a=this.o,a.K||(b=av(a,"atr"),b.M=c,b.send(),a.K=!0),this.Ca=!0)}}};
h.Bu=function(){return this.g?this.g.rk():1};
h.El=function(){return this.g?this.g.Mv():{}};var x$={"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};A(UI,F);h=UI.prototype;h.yH=function(){return Yb(this.o)};
h.zH=function(){return Yb(this.A)};
h.ma=function(){return this.b};
h.addEventListener=function(a,b){if(w(b)){var c=b,d=function(){q(c).apply(window,arguments)};
b=this.C[c]=d}this.app.ba.subscribe(a,b)};
h.lz=function(a,b){var c=w(b)?a+b:a+oa(b);if(!this.B[c]){var d;w(b)?d=function(){q(b).apply(window,arguments)}:d=b;
var e=y(function(a){d({target:this.g,data:a})},this);
this.B[c]=e;this.app.ba.subscribe(a,e)}};
h.removeEventListener=function(a,b){if(w(b)){var c=this.C[b];ec(this.C,b);b=c}vg(this.app.ba,a,b)};
h.mz=function(a,b){var c=w(b)?a+b:a+oa(b),d=this.B[c];d&&(vg(this.app.ba,a,d),ec(this.B,c))};
h.getPlayerState=function(){return v9(this.app)};
h.seekTo=function(a,b){E9(this.app,!0,this.playerType);U9(this.app,a,b,void 0,this.playerType)};
h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
h.Yh=function(){return t9(this.app,this.playerType)};
h.Mb=function(){return this.app.aa.volume};
h.setVolume=function(a){a=df(Math.floor(a),0,100);P9(this.app,{volume:a,muted:this.ed()})};
h.ed=function(){return this.app.aa.muted};
h.mute=function(){P9(this.app,{muted:!0,volume:this.Mb()})};
h.Rf=function(){P9(this.app,{muted:!1,volume:Math.max(5,this.Mb())})};
h.Cd=function(){E9(this.app,!0,this.playerType);T9(this.app,this.playerType)};
h.pauseVideo=function(){osa(this.app,this.playerType)};
h.hk=function(){var a=this.app;a.V.ea&&(a.b.isFullscreen()&&Cr(a.b),a.b.Va("pageTransition"));S9(a)};
h.vH=function(){};
h.AH=function(){return this.app.M};
h.$h=function(a){r9(this.app,a)};
h.Xh=function(){return this.app.V.da?Bsa:[1]};
h.ck=function(){var a=XI(this.app,this.playerType);return a&&(a=a.getVideoData().g)?a.video.quality:"unknown"};
h.gk=function(a){if(!this.app.V.isMobile){var b=XI(this.app,this.playerType);b&&GI(b,"p",Oy(a,a,!0))}};
h.Du=function(){var a=XI(this.app,this.playerType);return a?(a=Ki(EI(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
h.DH=function(){return this.Hn()};
h.EH=function(){return 1};
h.Hn=function(){return i9(this.app)};
h.FH=function(){return 0};
h.setSize=function(){this.app.D.nf()};
h.Iu=function(a){I9(this.app,a?2:1)};
h.Ju=function(a){I9(this.app,a)};
h.dk=function(a){var b=this.app.G;b.isAvailable(a)&&(a=dJ(b,a))&&!a.loaded&&a.load()};
h.Lu=function(a){var b=this.app.G;b.isAvailable(a)&&(a=dJ(b,a))&&a.loaded&&a.unload()};
h.Gu=function(a,b,c){a=B9(this.app,RI(a,b,c),this.playerType);E9(this.app,a,this.playerType)};
h.Gn=function(a,b,c){var d=this.playerType;F9(this.app,new vH(RI(a,b,c)),d)};
h.IH=function(a,b,c){a=SI(a,b,c);b=B9(this.app,a,this.playerType);E9(this.app,b,this.playerType);b=this.app;(a=(new M(a.mediaContentUrl)).b)&&AA(b.V,a)};
h.xH=function(a,b,c){a=SI(a,b,c);b=this.playerType;F9(this.app,new vH(a),b);b=this.app;(a=(new M(a.mediaContentUrl)).b)&&AA(b.V,a)};
h.getVideoUrl=function(){var a=this.app.V;if(a.F)return"";var b=C4(this.app),c=void 0;b.xa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.ye()||void 0,c)};
h.bk=function(){return u9(this.app)};
h.Eu=function(){var a=this.app.V;if(a.F)a="";else{var b=C4(this.app).videoId,c=this.app.D.Ja(),d=this.ye()||void 0,b="https://"+FA(a)+"/embed/"+b;d&&(b=Wg(b,{list:d}));d=b;b=c.width;c=c.height;a=a.experiments.Z("legacy_embed_snippet")?'<iframe width="'+b+'" height="'+c+'" src="'+Ga(d)+'" frameborder="0" allowfullscreen></iframe>':'<div style="position:relative;height:0;padding-bottom:'+Math.round(1E4*c/b)/100+'%"><iframe src="'+Ga(d)+'" style="position:absolute;width:100%;height:100%;left:0" frameborder="0" allowfullscreen></iframe></div>'}return a};
h.Cu=function(a,b,c){return N9(this.app,a,b,c)};
h.Hu=function(a){a:{for(var b=this.app,c=b.g.C.b.b||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.g.C.Uh(e);oJ(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
h.Fu=function(a,b,c,d){var e=this.app;e.ea=!1;G9(e,a,b,c,d);E9(this.app,!0,this.playerType)};
h.wH=function(a,b,c,d){var e=this.app;e.ea=!0;G9(e,a,b,c,d)};
h.ek=function(){J9(this.app);E9(this.app,!0,this.playerType)};
h.fk=function(){K9(this.app);E9(this.app,!0,this.playerType)};
h.In=function(a){L9(this.app,a);E9(this.app,!0,this.playerType)};
h.LH=function(a){var b=this.app.A;b&&qK(b,a)};
h.KH=function(a){var b=this.app.A;b&&(b.G=a)};
h.dd=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.A;c++){var d=a.Gb(c);d&&b.push(d.videoId)}return b};
h.BH=function(){var a=this.app.A;return a?a.b:-1};
h.ye=function(){var a=this.app.A;return a&&a.listId?a.listId.toString():null};
h.gf=function(a,b,c){return W9(this.app,a,b,c)};
h.Jb=function(a,b,c){return W9(this.app,a,b,c)};
h.Zh=function(a){return X9(this.app,a)};
h.getVideoData=function(){var a={},b=XI(this.app,this.playerType);b&&(b=b.getVideoData(),a.video_id=b.videoId,a.author=b.author,a.title=b.title);(b=this.ye())&&(a.list=b);return a};
h.Ku=function(){b9(this.app,!0)};
h.GH=function(){b9(this.app,!1)};
h.getAdState=function(){return this.app.getAdState()};
h.HH=function(a){if(a!=this.app.X.args.video_id)return!1;a=(a=XI(this.app,1))?a.getPlayerState():null;return!(!a||!O(a,128)||5!=x$[a.b.errorCode])};
h.CH=function(){var a=this.app.X.clone();sa(a.args,UH(C4(this.app)));return a};
h.MH=function(a,b){X8(this.app,a,b)};
h.destroy=function(){this.app.dispose()};
h.JH=function(){var a=XI(this.app);a&&!O(a.getPlayerState(),128)&&(a.Y("internalAbandon"),bI(a),ZH(a))};
h.T=function(){if(this.b){for(var a in this.o)this.b[a]=null;for(a in this.A)this.b[a]=null;this.b=null}this.C=this.B=null;UI.L.T.call(this)};A(VI,UI);h=VI.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Cu=function(a,b,c,d,e){return N9(this.app,a,b,c,d,e)};
h.NH=function(a,b,c){Uy(this.app.V.G,a,{uf:b,Rg:c})};
h.OH=function(a){var b=this.playerType;F9(this.app,new vH(a),b)};
h.getPlayerState=function(a){return v9(this.app,a)};
h.ik=function(a,b){B9(this.app,a,this.playerType,b)};
h.Ou=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.J&&b.J.getVideoData().videoId==a.videoId||(a=new vH(a),C9(b,a))};
h.Cd=function(){T9(this.app,this.playerType)};
h.seekTo=function(a,b){U9(this.app,a,b,void 0,this.playerType)};
h.Fu=function(a,b,c,d){var e=this.app;e.ea=!1;G9(e,a,b,c,d)};
h.ek=function(a){J9(this.app,a)};
h.fk=function(a){K9(this.app,a)};
h.In=function(a){L9(this.app,a)};
h.Dd=function(a,b,c){var d=this.app,e=this.playerType;U9(d,d.getCurrentTime()+a,b,c,e)};
h.eI=function(a){if(a){var b=this.ye();if(!b||b==a.list){var c=a.video;(b=this.app.A)?this.app.$a.isFullscreen()&&((c=c[b.b])&&c.encrypted_id!=b.Gb().videoId||(a.index=b.b)):k9(this.app,{list:a.list,index:a.index,playlist_length:c.length});wK(this.app.A,a)}}else a=this.app,l9(a),a.b.Aa("onPlaylistUpdate")};
h.dI=function(){kr()};
h.fI=function(a,b){var c=XI(this.app,this.playerType||1);c&&(c=c.getVideoData(),b?(wH(c,a),RH(c)&&GH(c)):(yH(c,a),c.Y("dataupdated")))};
h.TH=function(){var a=this.app.getVideoData();return a.A.storyboard_spec||a.A.live_storyboard_spec};
h.RH=function(){var a=this.app.V;return{Vb:a.Vb,Qa:a.Qa}};
h.getVideoData=function(){var a=VI.L.getVideoData.call(this),b=XI(this.app,this.playerType);b&&(b=b.getVideoData(),a.backgroundable=b.backgroundable,a.cpn=b.clientPlaybackNonce,a.isLive=b.xa,a.itct=b.sc);return a};
h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):VI.L.getCurrentTime.call(this)};
h.Yh=function(a){return a?t9(this.app,a):VI.L.Yh.call(this)};
h.Sf=function(){var a=this.app.getVideoData(),b=XI(this.app),c=mJ(this.app.$a),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.Yh(),k=b.b.xa&&b.b.b?$u(b.b.b,b.getCurrentTime()):window.NaN,l=XI(this.app,void 0);if(l)var m=M5(l.g),l=(0,window.isNaN)(m)?l.getCurrentTime():m;else l=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,ingestionTime:k,loaded:l,seekableEnd:JI(b,!0),seekableStart:NH(b.b)}};
h.Hn=function(a){return i9(this.app,a)};
h.canPlayType=function(a){return this.app.canPlayType(a)};
h.Qu=function(a,b){var c=XI(this.app,this.playerType);if(c){b=b||a;var d=Oy(a,b,!0),e=b;if(this.app.V.experiments.Z("html5_max_sticky_quality")){var f=EI(c);f[0].quality==e&&720<=f[0].Om&&2160>f[0].Om&&(e="hd2160")}Mj("yt-player-quality",e,2592E3);GI(c,"m",d)}};
h.QH=function(){return OH(this.app.getVideoData(),this.app.getCurrentTime())};
h.Tf=function(a){var b=this.app,c=XI(b,this.playerType);c&&b.V.Ka.contains(a.toString())&&c.o&&(b=av(c.o,"engage"),b.A=a,b.send(void 0))};
h.bi=function(a,b,c){var d=dJ(this.app.G,"iv-module");d&&Fy(d)&&Hy(d,a,b,c)};
h.UH=function(a,b){var c=this.app;c.ia&&(c=c.ia,c.R&&I6(c.R,a,b))};
h.ai=function(){return s9(this.app,this.playerType)};
h.Kn=function(a){a:{var b=this.app,c=this.playerType;if(b.V.experiments.Z("legacy_control_redirecting")){var d=b.da.set_audio_track?b.Ca:null;if(d){d.Bc("control_set_audio_track",a);break a}}else if(3==b.getPresentingPlayerType()&&b.C){b.C.Bc("control_set_audio_track",a);break a}if(c=b=XI(b,c))if(c=!b.isDisposed()&&!O(b.B,128)&&b.b.o.b)c=b.A,c.isDisposed()?a=!0:(d=c.D,a=a.id,d.B="m",d.A=d.C.b[a],d.J=XC(d),c.Y("audioformatchange",new TC(d.J,d.o,d.B)),c.b&&!c.b.b.remove?a=!1:(vF(c,c.o,XC(c.D)),rE(c.g),
rE(c.o),mF(c),a=!0)),c=!a;c&&(DI(b),CI(b))}};
h.Mu=function(){var a=XI(this.app,this.playerType);return a.b.o?a.b.o.audioTracks:[]};
h.SH=function(){var a=XI(this.app,this.playerType);return a&&a.getVideoData().g?Sy(XF(a.qa,a.b)):"unknown"};
h.aI=function(a,b){V9(this.app,a,b)};
h.PH=function(){var a=dJ(this.app.G,"fresca");a&&a.A.A()};
h.cI=function(){var a=this.app.ia;a.ea=!1;a.Sg()};
h.VH=function(){var a=this.app.ia;a.ea=!0;a.Sg()};
h.getVisibilityState=function(){return dG(this.app.V)};
h.bI=function(){return!0};
h.Nu=function(a){return my(this.app.D,a)};
h.$H=function(a){this.app.V.enableSafetyMode=a};
h.YH=function(a){ai();R9(this.app,a?2:0)};
h.rp=function(){var a=XI(this.app),b=a.V.experiments.Z("disable_html5_stopvideo_cancel_requests");a.pauseVideo(b);a.A&&(a.A.F=!0,b||cF(a.A));if(b=a=this.app.G.o)b=YI(a)?!!a.g.A.b:!1;b&&bJ(this.app.$a,!0)};
h.hk=function(){var a=this.app.V;!a.experiments.Z("disable_new_pause_state3")&&Br(a)&&"blazer"!=a.g?this.rp():VI.L.hk.call(this)};
h.gq=function(){return MI(XI(this.app,this.playerType),!0)};
h.Ln=function(a){var b=dJ(this.app.G,"captions");PB(b,a,!0)};
h.Jn=function(){var a=dJ(this.app.G,"captions");return a?OB(a):null};
h.Pu=function(){var a=dJ(this.app.G,"captions");NB(a,{},!0)};
h.WH=function(){var a=XI(this.app,this.playerType);if(!a)return!1;a=a.getVideoData();return!!a&&PH(a)&&!!a.g&&a.g.video.isAccelerated&&a.g.video.g};
h.XH=function(){return this.app.g.G};
h.Gu=function(a,b,c){this.ik(RI(a,b,c))};
h.ZH=function(a){var b=this.app;b.V.Sa=a;b.b.Va("minimized")};A(WI,VI);h=WI.prototype;h.Da=function(){return ny(this).element};
h.dd=function(){return this.app.A};
h.getVideoData=function(a){return(a=XI(this.app,a||this.playerType))&&a.getVideoData()};
h.isFullscreen=function(){return this.app.V.M};
h.addEventListener=function(a,b,c){this.app.O.subscribe(a,b,c)};
h.removeEventListener=function(a,b,c){vg(this.app.O,a,b,c)};
h.Va=function(a,b){Q(this).Qa&&("videodatachange"==a||"audiotrackchanged"==a||"resize"==a||"cardstatechange"==a)&&this.app.ba.Rb.apply(this.app.ba,arguments);this.app.O.Rb.apply(this.app.O,arguments)};
h.Aa=function(a,b){this.app.ba.Rb.apply(this.app.ba,arguments);this.app.O.Rb.apply(this.app.O,arguments)};
h.gk=function(a){this.Qu(a,a)};
h.bk=function(a){return u9(this.app,a)};
h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2==e;d&&f&&(f=!1,e=1);d=this.getVideoData(e);if(!d)return"";var k;a||d.xa||(k=Math.floor(this.getCurrentTime(e)));return this.app.V.getVideoUrl(d.videoId,f?void 0:this.ye()||void 0,k,b,c)};
h.bi=function(a,b,c){var d=dJ(nq(this),"iv-module");d&&Hy(d,a,b,c)};
h.Tf=function(a,b){var c=this.app,d=XI(c,this.playerType);d&&c.V.Ka.contains(a.toString())?d.o?(c=av(d.o,"engage"),c.A=a,c.send(b)):b&&b():b&&b()};
h.wb=function(a,b){M9(this.app,a,b||this.playerType)};
h.Jb=function(a,b,c){return W9(this.app,a,b,c,!0)};
h.Zh=function(a){return X9(this.app,a,!0)};
h.gf=function(a,b,c){return W9(this.app,a,b,c,!0)};
h.$h=function(a,b){r9(this.app,a,b)};
h.setVolume=function(a){a=df(a,0,100);P9(this.app,{volume:a,muted:this.ed()},!0)};
h.mute=function(){P9(this.app,{muted:!0,volume:this.Mb()},!0)};
h.Rf=function(){P9(this.app,{muted:!1,volume:Math.max(5,this.Mb())},!0)};A(sJ,iq);h=sJ.prototype;h.Cb=function(){return tJ(this.b)};
h.create=function(){sJ.L.create.call(this);this.load()};
h.load=function(){sJ.L.load.call(this);this.b.addEventListener("resize",this.Pn,this);var a=uJ(Q(this.b).g)?function(){}:y(this.nz,this);
Uda(this,a)};
h.unload=function(){vJ(this,null);this.b.removeEventListener("resize",this.Pn,this);this.A&&(this.A.abort(),this.A=null);sJ.L.unload.call(this)};
h.Ae=function(a,b){if(!uJ(Q(this.b).g))return null;switch(a){case "loadCustomEndscreenJson":var c=new rJ(b);vJ(this,c);return!0;case "unloadCustomEndscreenJson":return vJ(this,null),!0}return null};
h.nz=function(){var a=this.b.getVideoData().videoId;this.A&&this.A.abort();var a={method:"GET",Cc:y(this.hD,this,a),Dc:{v:a}},b=Q(this.b);b.experiments.Z("endscreen_cors")&&(a.method="POST",a.withCredentials=!0,"gaming"==b.g&&(a.Dc.gaming="1"));"embedded"==Q(this.b).b&&(a.Dc.ptype="embedded");if(b=this.b.getVideoData().Ss)a.method="POST",a.Ib={ad_tracking:b};if(b=this.b.getVideoData().A.iv_endscreen_url)this.A=fk(b,a)};
h.hD=function(a,b){var c=this.A=null;if(200==b.status){var d=b.responseText;")]}"==d.substring(0,3)&&(d=d.substring(3),c=new rJ(JSON.parse(d)))}vJ(this,c)};
for(var y$=[346,426,470,506,570,640,853,1280,1920],z$=[],A$=0;A$<y$.length;A$++)z$.push("ytp-ce-size-"+y$[A$]);var Hsa=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];h=sJ.prototype;
h.Pn=function(){if(this.o&&this.o.elements){var a=this.b.Nu(),b=a.width,c=a.height,d=b/c,e;e=oy(this.b).width;for(var f=null,k=-1,l=0;l<y$.length;l++){var m=Math.abs(e-y$[l]);if(-1==k||f>=m)k=l,f=m}e=z$[k];for(f=0;f<this.o.elements.length;++f){var l=this.o.elements[f].id,k=this.g[l],m=this.C[l],n=m.width*d/m.aspectRatio,l=Math.round(n*c),t=a.left+Math.round(m.left*b),u=a.top+Math.round(m.top*c);bt(k.element,Math.round(m.width*b),l);Rs(k.element,t,u);pe(k.element,Hsa);I(k.element,[["ytp-ce-top-left-quad",
"ytp-ce-top-right-quad"],["ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"]][Math.round(m.top+n/2)][Math.round(m.left+m.width/2)]);pe(k.element,z$);I(k.element,e);(k=sf("div","ytp-ce-expanding-overlay-body",k.element)[0])&&Ls(k,"height",l+"px")}}};
h.Yd=function(a){sJ.L.Yd.call(this,a);if("ytp-ce-in-endscreen"==a.getId())zJ(this,this.o.impressionUrls),this.G=!1,this.o.skip&&1==this.b.getPlayerState()&&(a=this.b,j9(a.app,!0,a.playerType),this.b.seekTo(window.Infinity),this.G=!0);else if(!this.G){a=a.getId().substring(15);var b=this.g[a],c=this.C[a];I(b.element,"ytp-ce-element-show");b.element.removeAttribute("aria-hidden");zJ(this,c.impressionUrls);Q(this.b).Qa&&this.b.Aa("endscreenelementshown",a)}};
h.re=function(a){if("ytp-ce-in-endscreen"!=a.getId()&&!this.G){var b=a.getId().substring(15),c=this.g[b];oe(c.element,"ytp-ce-element-show");c.element.setAttribute("aria-hidden",!0);sJ.L.re.call(this,a);Q(this.b).Qa&&this.b.Aa("endscreenelementhidden",b)}};
h.Ly=function(a){return new P(["div",["ytp-ce-element","ytp-ce-video"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",xJ(wJ(this,a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.b,tabindex:"-1"},["div",["ytp-ce-video-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-video-duration",a.videoDuration]]])};
h.Ky=function(a){return new P(["div",["ytp-ce-element","ytp-ce-playlist"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",xJ(wJ(this,a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.b,tabindex:"-1"},["div",["ytp-ce-playlist-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-playlist-count",["div","ytp-ce-playlist-icon"],["div","ytp-ce-playlist-count-text",a.playlistLength]]]])};
h.Jy=function(a){var b=new P(["div",["ytp-ce-element","ytp-ce-channel",a.H?"ytp-ce-channel-this":"ytp-ce-channel-that"],{tabindex:0,"aria-label":a.g,"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"],a.title,{href:a.b,
target:"_blank",tabindex:"-1"}],a.A||a.subscribeButton?["div","ytp-ce-channel-subscribe"]:"",a.metadata?["div",["ytp-ce-channel-metadata","yt-ui-ellipsis","yt-ui-ellipsis-3"],a.metadata]:""]]]],["div","ytp-ce-expanding-image",xJ(wJ(this,a))]]),c=sf("div","ytp-ce-channel-subscribe",b.element)[0];a.A?zh(c,a.A):a.subscribeButton&&(I(c,"ytp-ce-subscribe-button"),a=Oda(a.subscribeButton,a.channelId),c.appendChild(a.element));return b};
h.My=function(a){return new P(["div",["ytp-ce-element","ytp-ce-website"],{tabindex:0,"aria-label":a.g,"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",a.title],["div","ytp-ce-website-metadata",a.metadata],["a",["ytp-ce-website-goto",
"ytp-ce-link"],a.callToAction,{href:a.b,target:"_blank",tabindex:"-1"}]]]]],["div","ytp-ce-expanding-image",xJ(wJ(this,a))],["div","ytp-ce-expanding-icon",xJ(a.F)]])};
h.Sr=function(a,b){if(!(!a.b||b&&b.keyCode&&13!=b.keyCode)){for(var c=b.target;c&&!le(c,"ytp-ce-element");){le(c,"subscribe-label")&&zJ(this,a.clickUrls);if(le(c,"ytp-ce-channel-subscribe"))return;c=Sf(c)}b.preventDefault();b.stopPropagation();b.ctrlKey||b.metaKey||"new"==a.J?(zJ(this,a.clickUrls),this.tt(),this.b.pauseVideo(),this.Wu(a.b,a.C,"_blank")):(c=y(this.Wu,this,a.b,a.C,"_top"),c=y(this.tt,this,c),zJ(this,a.clickUrls,c))}};
h.On=function(a,b){I(a.element,"ytp-ce-element-hover");zJ(this,b.D);yJ(this,b.id,!0)};
h.Xu=function(a,b){oe(a.element,"ytp-ce-element-hover");yJ(this,b.id,!1)};
h.Wu=function(a,b,c){xr(a,b);yr(a,c)};
h.tt=function(a){this.b.Tf(17,a)};A(AJ,iq);h=AJ.prototype;h.Cb=function(){return BJ(this.b)};
h.create=function(){AJ.L.create.call(this);var a=new fq(1E3,0x7ffffffffffff,{priority:0});this.wb([a]);this.b.addEventListener("heartbeatparams",this.Zu,this);this.b.addEventListener("presentingplayerstatechange",this.$u,this);this.b.addEventListener("videoplayerreset",this.Is,this)};
h.destroy=function(){GJ(this);AJ.L.destroy.call(this);this.b.removeEventListener("heartbeatparams",this.Zu,this);this.b.removeEventListener("presentingplayerstatechange",this.$u,this);this.b.removeEventListener("videoplayerreset",this.Is,this)};
h.Yd=function(){this.C=!0;DJ(this,2E3)};
h.Zu=function(a){this.o=a;DJ(this,2E3)};
h.$u=function(a){O(a.state,2)||O(a.state,64)?GJ(this):(O(a.state,1)||O(a.state,8))&&DJ(this,2E3)};
h.Is=function(){3!==this.b.getPresentingPlayerType()&&DJ(this,2E3)};
h.qG=function(){var a,b,c=Q(this.b),d=this.b.getVideoData();b=c.baseYtUrl;3==this.b.getPresentingPlayerType()?this.g=window.NaN:O(us(this.b),4)?this.g=window.NaN:CJ(this)||d.xa?(!LH(d)||d.xa?(a="GET",c=c.o,b=Wg(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cver:c.cver,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.aa,access_token:d.oauthToken})):(a="GET",b=Wg(this.o.url,{request_id:ir()}),d.aa&&(b=Wg(b,{vvt:d.aa})),d.oauthToken&&(b=Wg(b,{access_token:d.oauthToken}))),b=Wg(b,{cpn:d.clientPlaybackNonce}),
fk(b,{format:"RAW",method:a,timeout:3E4,tb:y(this.FB,this),onError:y(this.EB,this),Lc:y(this.GB,this),withCredentials:!0})):GJ(this)};
h.FB=function(a){if(this.g){a=a.responseText;var b;b=(b=FJ(a))?"ok"==b.status?b.stop_heartbeat?2:0:"stop"==b.status?1:"live_stream_offline"==b.status?0:-1:(b=a.match(B$))?"0"==b[1]?0:1:-1;if(-1==b)EJ(this,!1,"decode");else if(2!=b||CJ(this))if(this.B=0,this.g=window.NaN,1==b){this.A=!1;b=this.b;var c="YTP_ERROR_LICENSE",d=FJ(a);d?a=d.reason||N(c):((a=a.match(B$))&&(a=(0,window.parseInt)(a[1],10))&&(c=tq(a)),a=N(c));gI(b.app.g,"heartbeat.stop",a,void 0)}else this.A=!0,DJ(this);else GJ(this),this.A=
!0}};
h.EB=function(a){EJ(this,!0,"net-"+a.status)};
h.GB=function(){EJ(this,!0,"timeout")};
var B$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;A(LJ,F);LJ.prototype.T=function(){this.b=null;LJ.L.T.call(this)};A(SJ,F);SJ.prototype.T=function(){this.stop();SJ.L.T.call(this)};
SJ.prototype.stop=function(){null!==this.g&&(Zi(this.g),this.g=null);null!==this.b&&(this.b.cancel(),this.b=null)};A(TJ,F);TJ.prototype.T=function(){this.b&&(Zi(this.b),this.b=0);TJ.L.T.call(this)};
TJ.prototype.A=function(a,b,c){for(;;){if(D()>=a){c(Error("tryLock expired"));return}Mj(this.o,this.wa,.5);if(!Nj(this.g))break}Mj(this.g,this.wa,.5);if(Nj(this.o)==this.wa)b(this.wa);else{var d=this;this.b=Xi(function(){d.b=0;Nj(d.g)==d.wa?b(d.wa):d.A(a,b,c)},50)}};
A(UJ,F);UJ.prototype.T=function(){this.b.dispose();UJ.L.T.call(this)};
UJ.prototype.id=function(){return this.wa};A($J,F);h=$J.prototype;h.T=function(){$J.L.T.call(this);this.A&&($i(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.g&&(this.g.dispose(),this.g=null);pm(this.B)};
h.qr=function(a){this.isDisposed()||hea(this.o,a).then(function(){this.isDisposed()||this.g||(jea(this),this.g=new SJ(Xb(this.b.b),y(this.vE,this)))},function(){this.g&&(this.g.dispose(),this.g=null)},this)};
h.vE=function(a,b){a.contentProfileToken=b.contentProfileToken;null!==b.deviceId&&(a.deviceId=b.deviceId);a.status=b.status;1===a.status?a.b=b.timestamp:a.active=!1;a.g=b.b;if(null===XJ(this.b)){var c=Xb(this.b.b);Lb(c);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(1===f.status){f.active=!0;break}}}ZJ(this)};
h.reset=function(){this.b=new VJ;Oj("yt-accelerator-discover")};
h.iA=function(a){"yt-accelerator-discover"===a.event.key&&(this.b=WJ())};A(aK,F);da(aK);aK.prototype.init=function(a){this.b||(this.b=new $J(a.addresses||[],!!a.probe,a.xsrfToken||"",a.applianceQueryParams||""),this.g=new LJ(this.b))};
aK.prototype.T=function(){this.g&&(this.g.dispose(),this.g=null);this.b&&(this.b.dispose(),this.b=null);aK.L.T.call(this);delete aK.ac};A(bK,iq);h=bK.prototype;h.Cb=function(){return!!this.b.getVideoData().spacecastModule};
h.create=function(){bK.L.create.call(this);if(this.b.getVideoData().Ne){var a={addresses:this.b.getVideoData().Ne,probe:!0};window.environment&&window.environment.xsrf_token&&(a.xsrfToken=window.environment.xsrf_token);aK.getInstance().init(a)}var b;a:{a=(a=Nj("yt-accelerator-discover"))&&a.addrmap||{};for(b in a){var c=a[b];if(c.active&&(c=c.last_probe_tstamp,!(c&&12E5<Date.now()-c))){b="//"+b;break a}}b=null}this.g=b;this.o=(b=Nj("yt-accelerator-discover"))&&b.qparamsmap||{};this.load()};
h.destroy=function(){bK.L.destroy.call(this);this.g=null;this.o={}};
h.load=function(){bK.L.load.call(this);if(this.g){var a=this.b.getVideoData().videoId,b=D();Xda(this.g,a,y(this.EA,this,a,b),this.o)}else mq(this)};
h.Ae=function(a){switch(a){case "getVideo":a=this.b.getVideoData();var b=!!(a&&PH(a)&&a.g&&a.g.video.isAccelerated);return{docid:a.videoId,isAccelerated:b}}};
h.EA=function(a,b,c){if(this.g){b=D()-b;var d=!1,e=this.b.getVideoData(),f="unknown",k=HJ(c),l=!0;e.xb=Yb(k);if(c){c.status&&(f=c.status);"ux"in c&&(l=!!c.ux);if(k=IJ(this.g,c,e.adaptiveFormats,l,this.o))e.spacecastAdaptiveFormats=k;if(c=IJ(this.g,c,e.qa,l,this.o))e.spacecastFormatMap=c;if(k||c)KH(e,Q(this.b)),e.ca||Nda(this.b),d=Sy(e.Sa),this.b.gk(d),d=!0}(c=2==this.b.getPresentingPlayerType())&&!d?Ad(function(){var a=this.b.app;a.F&&a.F.D&&(a=a.F,a.B&&(a=a.A?a.A.A:a.o.b.b,null!=a&&a.nk()))},this):
mq(this);
lj("yt-spacecast-cache-watch-video-cached",a,d);a={a:"spacecast",module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,cpn:e.clientPlaybackNonce,fmts:e.xb.join(","),isAd:c?1:0};kc(a,this.o);Yp("/gen_204?"+Ug(a),void 0)}};cK.prototype.b=v;A(dK,iq);h=dK.prototype;h.Cb=function(){return zs(this.b.getVideoData(),"ypc_clickwrap_module")};
h.create=function(){dK.L.create.call(this);this.load()};
h.load=function(){dK.L.load.call(this);this.g=new P({I:"div",fa:["ytp-ypc-clickwrap-overlay","ytp-player-content"],P:[{I:"h2",W:"ytp-ypc-clickwrap-header",P:[N("YTP_YPC_START_RENTAL_HEADER")]},{I:"div",W:"ytp-ypc-clickwrap-description",P:[this.b.getVideoData().A.ypc_clickwrap_message]},{I:"button",fa:["ytp-ypc-clickwrap-confirm","ytp-button"],P:[N("YTP_YPC_START_RENTAL_BUTTON")]}]});qw(this.b,this.g.element,4);G(this,this.g);this.o=this.g.pa["ytp-ypc-clickwrap-confirm"];this.g.S(this.o,"click",this.PC,
this)};
h.unload=function(){dK.L.unload.call(this);this.g.detach();this.g.dispose();this.g=null};
h.PC=function(){mq(this);this.destroy()};A(eK,cK);eK.prototype.b=function(){return[ty.o,Qda,As,Vda,kea,Nba,lea]};fK.prototype.b=function(a,b){gK(this,"index");this.A.push({index:this.G++,weight:a,value:b});this.g+=a;for(gK(this,"index");this.g>this.D;){var c=this.g-this.D,d=this.A[0];d.weight<=c?(this.g-=d.weight,this.A.shift()):(this.g-=c,d.weight-=c)}};
fK.prototype.o=function(){return this.C?(hK(this,this.B-this.C)+hK(this,this.B)+hK(this,this.B+this.C))/3:hK(this,this.B)};iK.prototype.b=function(a,b){this.g.push(b);this.g.length>this.A&&this.g.shift()};
iK.prototype.o=function(){return hf.apply(null,this.g)};nK.prototype.toString=function(){return this.type+this.id};A(rK,uk);h=rK.prototype;h.hasNext=function(a){return this.G||!!a||this.b+1<this.A};
h.Gb=function(a,b){var c=void 0!=a?a:this.b,c=this.g&&c in this.g?this.g[this.o[c]]:null,d=null;c&&(b&&(c.autoplay="1"),d=new vH(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
h.Hc=function(a,b){b=b||"hqdefault.jpg";var c=this.K[b];if(c||a.F||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.J.length)return GA(a,this.J[0],b)};
h.Ui=function(){return null};
h.Xg=function(){return this.listId?this.listId.toString():null};
h.Fl=function(a){return a.getVideoUrl(this.Gb().videoId,this.Xg())};
h.T=function(){this.C=null;Ob(this.g);rK.L.T.call(this)};A(xK,uk);xK.prototype.load=function(){this.loaded=!0};
xK.prototype.unload=function(){this.loaded=!1};
xK.prototype.T=function(){this.loaded&&this.unload();xK.L.T.call(this)};A(yK,P);yK.prototype.subscribe=function(a,b,c){return this.O.subscribe(a,b,c)};
yK.prototype.Fa=function(a,b,c){return this.O.Fa(a,b,c)};
yK.prototype.Nc=function(a){return this.O.Nc(a)};
yK.prototype.Y=function(a,b){return this.O.Y.apply(this.O,arguments)};A(zK,yK);zK.prototype.create=function(){this.K=!0};
zK.prototype.destroy=function(){this.K=!1};
zK.prototype.Pk=function(){return!1};A(AK,P);A(BK,P);A(CK,BK);CK.prototype.gb=function(a){a?this.A.show():Gv(this.A)};A(DK,zK);DK.prototype.create=function(){DK.L.create.call(this);Jf(this.element);this.A.Ba(this.element);var a=this.b.getVideoData().videoId;a&&(a=DA(Q(this.b),a,!0),fk(a,{method:"GET",tb:this.B,context:this,Xy:!0}))};
DK.prototype.B=function(a,b){if(this.K){var c=b.user_info,d=c.channel_banner_url;CA.test(d)||(d="");var e=c.channel_logo_url||c.image_url;CA.test(e)||(e="");this.o.va("background",d?"background-image: url("+d+")":"");this.A.va("image",e);this.A.va("author",c.channel_title||c.username);c=c.subscription_button_html;d=this.A.pa["html5-subscribe-button-container"];c?d.innerHTML=Se(c):Jf(d)}};
DK.prototype.show=function(){DK.L.show.call(this);this.o.gb(!0)};
DK.prototype.oa=function(){DK.L.oa.call(this);this.o.gb(!1)};A(GK,P);h=GK.prototype;h.Ji=function(){this.B&&(this.D.stop(),this.sa(this.C),this.C=null,this.B.close(),this.B=null)};
h.Jr=function(){this.gb(ZI(this.o))};
h.bE=function(){window.focus();this.Ji()};
h.Lk=function(){var a=Math.min(Dq()-this.F,1E4),a=Math.min(a/1E4,1);this.G.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.b&&this.b.start()};
h.select=function(a){var b=Q(this.o);if(b.experiments.Z("autonav_notifications")&&a&&window.Notification&&window.document.hasFocus){var c=window.Notification.permission;yv(this.o,"xwebnotifications",{permission:c});"default"==c?window.Notification.requestPermission():"granted"!=c||window.document.hasFocus()||(c=this.A.Gb(),this.Ji(),this.B=new window.Notification(N("YTP_PLAYLIST_UP_NEXT"),{body:c.title,icon:c.Hc(b)}),this.C=this.S(this.B,"click",this.bE),this.D.start())}IK(this);b=this.A.Gb().videoId;
H9(this.o.app,b,a?this.A.Ts:this.A.Ha,this.A.Xg(),void 0,void 0)};
h.jE=function(a){!ym(a)&&Vq(a)&&(this.select(),xm(a))};
h.Kr=function(a){xm(a);hJ(this.o,"autonavcancel");bJ(this.o,!0)};
h.XJ=function(a){120<tm(a).naturalWidth&&I(this.element,"ytp-moving-thumbnail-loaded")};
h.T=function(){IK(this);this.Ji();GK.L.T.call(this)};A(KK,P);h=KK.prototype;h.Ng=function(){var a=this.b.Gb().videoId;H9(this.o.app,a,this.b.Ha,this.b.Xg(),void 0,void 0)};
h.xI=function(a){Ar(a,this.o,!this.o.isFullscreen()&&this.B,this.b.Ha)&&this.Ng()};
h.zI=function(){this.sa(this.A);this.A=null;LK(this)};
h.yI=function(a){switch(a.keyCode){case 13:case 32:ym(a)||(this.Ng(),xm(a))}};
h.AI=function(a){120<tm(a).naturalWidth&&I(this.element,"ytp-videowall-moving-thumbnail-loaded")};A(MK,zK);MK.b=2;h=MK.prototype;h.create=function(){MK.L.create.call(this);var a=this.b.getVideoData();a&&(this.o=OK(a),this.C=a);this.mf();this.D.S(this.b,"appresize",this.mf);this.D.S(this.b,"videodatachange",this.wI);this.D.S(this.b,"autonavchange",this.nq);this.D.S(this.b,"autonavcancel",this.Fz);this.D.S(this.element,"transitionend",this.lF)};
h.destroy=function(){kx(this.D);Ob(this.B);this.B=[];this.o=null;MK.L.destroy.call(this);oe(this.element,"ytp-show-tiles");this.J.stop()};
h.Pk=function(){return 1!=this.C.autonavState};
h.show=function(){MK.L.show.call(this);oe(this.element,"ytp-show-tiles");Q(this.b).isMobile?ie(this.J):this.J.start();(this.H||this.G&&this.G!=this.C.clientPlaybackNonce)&&bJ(this.b,!1);var a=NK(this);qJ(this.b)&&Q(this.b).experiments.Z("ui_logging")&&this.X.log({cancelButtonShow:a?"1":"0",state:this.Pk()?"enabled":"disabled"});a?(QK(this),2==this.C.autonavState?Q(this.b).experiments.Z("fast_autonav_in_background")&&3==this.b.getVisibilityState()?this.A.select(!0):HK(this.A):3==this.C.autonavState&&
JK(this.A)):(bJ(this.b,!0),QK(this))};
h.oa=function(){MK.L.oa.call(this);JK(this.A);QK(this)};
h.lF=function(a){tm(a)==this.element&&this.mf()};
h.mf=function(){if(this.o&&this.o.length){var a=Q(this.b).experiments.Z("video_wall_moving_thumbnails_hover");I(this.element,"ytp-endscreen-paginate");for(var b=dt(this.element),c=b.width/b.height,d=96/54,e=MK.b,f=MK.b,k=Math.max(b.width/96,2),l=Math.max(b.height/54,2),m=this.o.length,n=Math.pow(MK.b,2),t=m*n,u=PK(this,0,l),x=PK(this,1,l),t=t+(Math.pow(u,2)-n),t=t+(Math.pow(x,2)-n),t=t-n;0<t&&(e<k||f<l);){var z=e/MK.b,J=f/MK.b,V=e<=k-MK.b&&t>=J*n,S=f<=l-MK.b&&t>=z*n;if((z+1)/J*d/c>c/(z/(J+1)*d)&&
S)t-=z*n,f+=MK.b;else if(V)t-=J*n,e+=MK.b;else if(S)t-=z*n,f+=MK.b;else break}d=!1;k=MK.b+u;t>=3*n&&6>=m*n-t&&(f>=k||e>=k)&&x<=MK.b&&(d=!0);t=96*e;n=54*f;c=t/n<c?b.height/n:b.width/t;c=Math.min(c,2);t*=c;n*=c;t*=df(b.width/t||1,1,1.21);n*=df(b.height/n||1,1,1.21);t=Math.floor(Math.min(b.width,t));n=Math.floor(Math.min(b.height,n));b=this.M.element;bt(b,t,n);Ls(b,{marginLeft:t/-2+"px",marginTop:n/-2+"px"});c=this.A;k=this.o[0];c.A=k;FK(c,k,Q(c.o),"hqdefault.jpg");oe(c.element,"ytp-moving-thumbnail-loaded");
c.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});5E5<OC(c.o.app.la)&&(k=c.A.Ui())&&c.update({moving_thumbnail:k});K(this.element,"ytp-endscreen-takeover",NK(this));QK(this);c=t+4;t=n+4;n=0;k=!NK(this);l=!1;for(z=0;z<e;z++)for(J=0;J<f;J++)if(V=x>MK.b&&1<=n&&!l?n+1:n,S=0,d&&z>=e-MK.b&&J>=f-MK.b?S=1:0==J%MK.b&&0==z%MK.b&&(J<u&&z<u?0==J&&0==z&&(S=u):x>MK.b&&J>=f-x&&z>=e-x?J==f-x&&z==e-x&&(l=!0,V=1,S=x):S=MK.b),V=(V+this.F)%m,V=0>V*m?V+m:V,0!=
S){var ba=this.B[n];ba||(ba=new KK(this.b),this.B[n]=ba,b.appendChild(ba.element));var Ja=Math.floor(t*J/f),db=Math.floor(c*z/e),Jc=Math.floor(t*(J+S)/f)-Ja-4,Kc=Math.floor(c*(z+S)/e)-db-4;Rs(ba.element,db,Ja);bt(ba.element,Kc,Jc);Ls(ba.element,"transitionDelay",(J+z)/20+"s");K(ba.element,"ytp-videowall-still-mini",1==S);K(ba.element,"ytp-videowall-still-large",2<S);S=ba;V=this.o[V];ba=k&&!a;S.b=V;Ja=Q(S.o);FK(S,V,Ja,le(S.element,"ytp-videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");oe(S.element,
"ytp-videowall-moving-thumbnail-loaded");S.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});ba?(I(S.element,"ytp-videowall-active"),LK(S)):Ja.experiments.Z("video_wall_moving_thumbnails_hover")&&!S.A&&(S.A=S.N("mouseover",S.zI));n++}K(this.element,"ytp-endscreen-paginate",n<m);for(a=this.B.length-1;a>=n;a--)ba=this.B[a],Lf(ba.element),Nb(ba);this.B.length=n}};
MK.o=2;MK.g=1.21;h=MK.prototype;h.wI=function(){var a=this.b.getVideoData();this.C!=a&&(this.F=0,this.o=OK(a),this.C=a,this.mf())};
h.FC=function(){this.F+=this.B.length;this.mf()};
h.GC=function(){this.F-=this.B.length;this.mf()};
h.nq=function(a){1==a?(this.H=!1,this.G=this.C.clientPlaybackNonce,IK(this.A),this.g&&this.mf()):(this.H=!0,this.g&&NK(this)&&(2==a?HK(this.A):3==a&&JK(this.A)))};
h.Fz=function(a){if(a){a=[];for(var b=0;b<this.o.length;b++){var c=this.o[b].Ha;c&&a.push(c.itct)}b=this.ba;if(Q(b).experiments.Z("player_interaction_logging")){for(var b=b.app.Ub,c=[],d=0;d<a.length;d++){var e=a[d];b.g[e]||(b.g[e]=!0,c.push(e))}0<c.length&&b.b.Rb("onLogServerVesShown",c)}this.nq(1)}else this.G=null,this.H=!1;this.mf()};A(g.SK,xK);h=g.SK.prototype;h.T=function(){var a=this.b;jq(a.app,"endscreen",a.playerType);g.SK.L.T.call(this)};
h.load=function(){g.SK.L.load.call(this);this.g.show();Q(this.b).ha&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
h.log=function(a){yv(this.b,"end",a)};
h.unload=function(){g.SK.L.unload.call(this);this.g.oa();this.g.destroy();this.isAvailable=!1};
h.pI=function(a){$I(this)&&(this.g.K||this.g.create(),"load"==a.getId()&&this.load())};
h.qI=function(a){"load"==a.getId()&&this.loaded&&this.unload()};
h.Zs=function(){var a=this.b;jq(a.app,"endscreen",a.playerType);var a=Math.max(1E3*(this.b.getVideoData().lengthSeconds-10),0),a=new fq(a,0x8000000000000,{id:"preload",namespace:"endscreen"}),b=new fq(0x8000000000000,0x8000000000000,{id:"load",priority:6,namespace:"endscreen"});this.b.wb([a,b])};UK.prototype.jc=function(a){if(null===this.g)return a;var b=new lf(a.videoWidth,a.videoHeight);if(!mf(b,this.B)&&(this.g.canvas.width=b.width,this.g.canvas.height=b.height,this.b.top=0,this.b.left=0,this.b.width=b.width,this.b.height=b.height,this.B=b,0<this.o)){this.o=3;var c=p5(ny(this.$)),d=16/9;c<d?(this.b.width=b.width*c/d,this.b.left=Math.ceil(.5*(b.width-this.b.width)),this.b.width|=0):c>d&&(this.b.height=b.height*d/c,this.b.top=Math.ceil(.5*(b.height-this.b.height)),this.b.height|=0)}0<this.o&&
(this.A^=1,2<=this.b.top?(this.A?VK(this,a,0,0,this.b.width,this.b.top-1):VK(this,a,0,a.videoHeight-this.b.top+1,this.b.width,this.b.top-1))&&--this.o:2<=this.b.left&&(this.A?VK(this,a,0,0,this.b.left-1,this.b.height):VK(this,a,a.videoWidth-this.b.left+1,0,this.b.left-1,this.b.height))&&--this.o,0>=this.o&&(this.b.top=0,this.b.left=0,this.b.width=a.videoWidth,this.b.height=a.videoHeight));try{this.g.drawImage(a,this.b.left,this.b.top,this.b.width,this.b.height,0,0,this.B.width,this.B.height)}catch(e){if(!(e instanceof
window.DOMException)||"IndexSizeError"!=e.name)throw e;}return this.g.canvas};
UK.prototype.destroy=function(){null!=this.g&&(this.g.canvas.remove?this.g.canvas.remove():this.g.canvas.removeNode(!0),this.g=null)};h=WK.prototype;h.Yi=function(){return"attribute vec3 aVertPos;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = vec2((aVertPos.x + 1.0) * 0.5, (1.0 - aVertPos.y) * 0.5);\n  gl_Position = vec4(aVertPos, 1.0);\n}"};
h.Si=function(){return this.g};
h.$c=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
h.cv=function(){};
h.Qn=function(a){this.F&&(360>=Ny[a]?this.C(!0):this.C(!1))};
h.Tc=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.B.jc(b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.Os=function(){return!0};
h.Cf=function(){return{shader:"NoOp"}};
h.di=function(){};
h.destroy=function(){this.B&&this.B.destroy()};A(XK,WK);XK.prototype.$c=function(a,b,c){XK.L.$c.call(this,a,b,c);a.uniformMatrix4fv(a.getUniformLocation(b,"mLt"),!1,new window.Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,"mRt"),!1,new window.Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,0,0,0,0,1]));this.A=a.getUniformLocation(b,"mode");a.uniform1i(this.A,this.b)};
XK.prototype.Tc=function(a,b,c){this.o&&(a.uniform1i(this.A,this.b),this.o=!1);XK.L.Tc.call(this,a,b,c)};
XK.prototype.Cf=function(){return{shader:"Anaglyph3D",displayMode:this.b}};
XK.prototype.di=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.b=(0,window.parseInt)(a.displayMode,10),Mj("yt-player-webgl-anaglyph-3d-display-mode",this.b),this.o=!0),this.D())};A(YK,WK);
YK.prototype.$c=function(a,b,c){YK.L.$c.call(this,a,b,c);c=new window.Uint8Array(4194304);for(var d=0;4194304>d;d++)c[d]=255*Math.random();d=a.createTexture();a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT);a.texImage2D(a.TEXTURE_2D,0,a.LUMINANCE,2048,2048,
0,a.LUMINANCE,a.UNSIGNED_BYTE,c);a.uniform1i(a.getUniformLocation(b,"uNoiseSplr"),1);a.uniform1f(a.getUniformLocation(b,"amount"),.05);a.uniform1f(a.getUniformLocation(b,"offset"),-.5);this.o=a.getUniformLocation(b,"seed");(a=this.$.getVideoData())&&a.g&&this.Qn(a.g.video.quality)};
YK.prototype.Tc=function(a,b,c){a.uniform1f(this.o,Math.random());YK.L.Tc.call(this,a,b,c)};
YK.prototype.Cf=function(){return{shader:"WhiteNoise"}};A(ZK,YK);ZK.prototype.$c=function(a,b,c){ZK.L.$c.call(this,a,b,c);this.b=a.getUniformLocation(b,"mode");a.uniform1i(this.b,1)};
ZK.prototype.Tc=function(a,b,c){this.A&&(a.uniform1i(this.b,1),this.A=!1);ZK.L.Tc.call(this,a,b,c)};
ZK.prototype.Cf=function(){return{shader:"EdgeEnhance"}};$K.prototype.b=4;$K.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]};
$K.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&($K.BYTES_PER_ELEMENT=4,$K.prototype.BYTES_PER_ELEMENT=$K.prototype.b,$K.prototype.set=$K.prototype.set,$K.prototype.toString=$K.prototype.toString,g.ca("Float32Array",$K,void 0));aL.prototype.b=8;aL.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]};
aL.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{aL.BYTES_PER_ELEMENT=8}catch(a){}aL.prototype.BYTES_PER_ELEMENT=aL.prototype.b;aL.prototype.set=aL.prototype.set;aL.prototype.toString=aL.prototype.toString;g.ca("Float64Array",aL,void 0)};eL.prototype.destroy=function(){this.A=this.o=this.g=this.b=null};fL.prototype.G=function(){T5(this.b);var a=R5(this.b,this.o.channelCount),b=S5(this.b,2),c=65*Math.PI/180;this.g=new eL(this.b,this.o,a,b,0,.45,c);this.A=new eL(this.b,this.o,a,b,1,.45,-1*c);Q5(this.b).connect(a);b.connect(P5.destination)};
fL.prototype.D=function(){this.g.destroy();this.A.destroy();this.A=this.g=null;T5(this.b);Q5(this.b).connect(P5.destination)};
fL.prototype.F=function(a,b){this.g&&(dL(this.g,a,b),dL(this.A,a,b))};
fL.prototype.destroy=function(){this.g&&(T5(this.b),this.D())};A(gL,fL);gL.prototype.G=function(){T5(this.b);var a=R5(this.b,this.o.channelCount),b=P5.destination;b.channelCount=Math.min(6,b.maxChannelCount);b.channelInterpretation="discrete";var b=S5(this.b,6),c=Math.PI/6;this.g=new eL(this.b,this.o,a,b,0,.65,c);this.A=new eL(this.b,this.o,a,b,1,.65,-1*c);c=120*Math.PI/180;this.B=new eL(this.b,this.o,a,b,4,.65,c);this.C=new eL(this.b,this.o,a,b,5,.65,-1*c);Q5(this.b).connect(a);b.connect(P5.destination)};
gL.prototype.D=function(){this.B.destroy();this.C.destroy();this.C=this.B=null;gL.L.D.call(this)};
gL.prototype.F=function(a,b){this.g&&(dL(this.g,a,b),dL(this.A,a,b),dL(this.B,a,b),dL(this.C,a,b))};iL.prototype.identity=function(){this.b.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
iL.prototype.get=function(){return this.b};h=lL.prototype;h.Yi=function(){return""};
h.Si=function(){return""};
h.$c=function(){var a;var b=this.H;a=b.getVideoData();var c;(c=!a)||(a.B&&a.B.audio?(c=a.B.audio.spatialAudioType,c=!!c&&0!=c):c=!1,c=!c);if(c)a=null;else{b=b.app;if(b.o.yh()){b.ga||(b.ga=new O5(b.b),b.ga.initialize(),G(b,b.ga));c=b.ga;var d=b.o;d.yh()&&(c.b?c.b!=d&&(T5(c),c.b=d,c.g=null):c.b=d);b=b.ga}else b=null;b&&P5&&P5.createMediaElementSource&&b.b?(a=a.B.audio.spatialAudioType,c=P5.destination,a=6<=c.maxChannelCount&&!hA?new gL(b,0,hL(a)):2<=c.maxChannelCount?new fL(b,0,hL(a)):null):a=null}if(this.o=
a)this.o.G(),this.o.F(this.F,this.A)};
h.cv=function(){this.D=!0};
h.Qn=r;
h.Tc=function(a){var b=this.b,c=this.g;if(this.D){a.g>a.b?(this.b=this.C,this.g=Math.atan(Math.tan(this.C)*a.b/a.g)):(this.g=this.C,this.b=Math.atan(Math.tan(this.C)*a.g/a.b));this.A=df(this.A,-Math.PI/2,Math.PI/2);this.B.identity();a=this.B;var d=this.A,e=Math.sin(d),d=Math.cos(d);a.o.set([1,0,0,0,0,d,e,0,0,-e,d,0,0,0,0,1]);jL(a,a.o);a=this.B;d=this.F;e=Math.sin(d);d=Math.cos(d);a.o.set([d,0,-e,0,0,1,0,0,e,0,d,0,0,0,0,1]);jL(a,a.o);this.D=!1}a=D();if(this.da){this.J[0]=-this.B.get()[8];this.J[1]=-this.B.get()[9];
this.J[2]=-this.B.get()[10];var e=this.da,d=this.J,f=this.H.getCurrentTime(),k=a/1E3,l=this.H.getPlayerState(),m=null,n,t,u;1==l?(n=e.o,u=e.F,t=f):(n=e.D,u=e.C,t=k);var x=0!=e.b.length;if(x){var z=150<=e.b.length;if(e.A!=l||.5<t-u||t<u||z){m=null;if(5<=e.b.length){for(var m=e.b,x=Array(2*m.length),J=z=0,V=0;V<m.length;++V)x[V]=m[V].x-z&255,x[V+m.length]=m[V].y-J&255,z=m[V].x,J=m[V].y;z=uea(x);m=e.o;x=1==e.A?e.g:0;z=ar(z,!0);J="";for(V=z.length-1;0<=V&&"."==z.charAt(V);--V)J+="=";z=z.substring(0,z.length-
J.length)+J;m={start:m,duration:x,data:z}}e.b=[];e.g=0;x=!1}}if(1==l||2==l||3==l){if(x)for(n=n+e.g+.2;n<t;){z=(n-u)/(t-u);e.g+=.2;var x=e.B,J=d,V=z,z=new window.Float32Array(3),S=bL(x),ba=bL(J),Ja=(x[0]*J[0]+x[1]*J[1]+x[2]*J[2])/(S*ba);if(.999999<Ja)S=x[0],ba=x[1],x=x[2],z[0]=(J[0]-S)*V+S,z[1]=(J[1]-ba)*V+ba,z[2]=(J[2]-x)*V+x;else{var db,Jc;-.999999>Ja?(Ja=new window.Float32Array(3),db=(S+ba)/2,x[0]?(db/=Math.sqrt(x[0]*x[0]+x[1]+x[1]),Ja[0]=-x[1]*db,Ja[1]=x[0]*db,Ja[2]=0):(db/=Math.sqrt(x[2]*x[2]+
x[1]+x[1]),Ja[0]=0,Ja[1]=-x[2]*db,Ja[2]=x[1]*db),.5>=V?(ba=S,J=Ja,V*=2):(x=Ja,V=2*V-1),db=Math.PI/2,Jc=1):(db=Math.acos(Ja),Jc=Math.sqrt(1-Ja*Ja));Ja=Math.sin((1-V)*db)/Jc/S;db=Math.sin(V*db)/Jc/ba;V=(1-V)*S+V*ba;z[0]=(x[0]*Ja+J[0]*db)*V;z[1]=(x[1]*Ja+J[1]*db)*V;z[2]=(x[2]*Ja+J[2]*db)*V}x=z;e.b.push(kL(x));n+=.2}else e.o=f,e.D=k,e.b.push(kL(d)),e.g=0;e.B=d;e.F=f;e.C=k;e.A=l}e=m;e&&(d=XI(this.H.app))&&d.o&&(d=d.o.g,f=e.start,k=e.duration,e=e.data,Eu(d,Gu(d.b),"dir",[f.toFixed(3),k.toFixed(3),e]))}(this.X!=
this.b||this.ba!=this.g)&&3E4<a-this.aa&&b==this.b&&c==this.g&&(this.X=this.b,this.ba=this.g,this.aa=a,(b=XI(this.H.app))&&b.o&&(b=b.o.g,c=Math.round(360*this.b/Math.PI),a=Math.round(360*this.g/Math.PI),Eu(b,Gu(b.b),"fov",[c,a])))};
h.Os=function(){return!1};
h.Cf=function(){return{shader:"Spherical",yaw:this.F,pitch:this.A,fov:this.C}};
h.di=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.F=a.yaw),a.pitch&&(this.A=a.pitch),a.fov&&(this.C=df(a.fov,.32,1.05)),this.o&&this.o.F(this.F,this.A),this.D=!0,this.R()};
h.destroy=function(){this.o&&this.o.destroy()};A(mL,lL);h=mL.prototype;h.Yi=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.Si=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
h.$c=function(a,b,c){mL.L.$c.call(this,a,b,c);this.Ma=a.getUniformLocation(b,"uVMat");this.ea=a.getUniformLocation(b,"uFOVx");this.ca=a.getUniformLocation(b,"uFOVy");this.ga=a.getUniformLocation(b,"uSplr");a.uniform1i(this.ga,0)};
h.Tc=function(a,b,c,d){var e=this.D;mL.L.Tc.call(this,a,b,c,d);e&&(a.uniform1f(this.ea,this.b),a.uniform1f(this.ca,this.g),a.uniformMatrix4fv(this.Ma,!1,this.B.get()));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.K.jc(b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.destroy=function(){mL.L.destroy.call(this);this.K&&this.K.destroy()};A(nL,mL);h=nL.prototype;h.Yi=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.Si=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform int mode;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nmat4 mRt = mat4(-.043, .378, -.072, 0.0, -.088, .734, -.113, 0.0, 0.0,   -0.018, 1.226, 0.0, 0.0, 0.0, 0.0, 1.0);mat4 mLt = mat4(.456, -.04, -.015, 0.0, .5, -.038, -.021, 0.0, .176,   -0.016, -.005, 0.0, 0.0, 0.0, 0.0, 1.0);void anaglyph(float x, float y) {  y *= 0.5;  vec4 cLt = texture2D(uSplr, vec2(x, y));  vec4 cRt = texture2D(uSplr, vec2(x, 0.5 + y));  gl_FragColor = mLt * cLt + mRt * cRt;}void main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  if (mode == 2) {    anaglyph(texCrd.x, texCrd.y);  } else {    texCrd.y *= 0.5;    gl_FragColor = texture2D(uSplr, texCrd);  }}"};
h.$c=function(a,b,c){nL.L.$c.call(this,a,b,c);this.O=a.getUniformLocation(b,"mode");a.uniform1i(this.O,this.G)};
h.Tc=function(a,b,c,d){this.M&&(a.uniform1i(this.O,this.G),this.M=!1);nL.L.Tc.call(this,a,b,c,d)};
h.Cf=function(){var a=nL.L.Cf.call(this);a.shader="Spherical3D";a.displayMode=this.G;return a};
h.di=function(a){void 0!=a.displayMode&&(this.G=(0,window.parseInt)(a.displayMode,10),Mj("yt-player-webgl-spherical-3d-display-mode",this.G),this.M=!0,this.R());nL.L.di.call(this,a)};oL.prototype.K=function(){this.J=!1;if(this.o&&(this.A.videoWidth||this.A.videoHeight)){if(0==this.H){var a=my(ny(this.$));if(!rg(this.C,a)){this.C=a;var b,c,d,a=ny(this.$).Ja();this.b.Os()?("Anaglyph3D"!=this.aa?b=!1:(b=p5(ny(this.$)),c=this.$.getVideoData(),b=(0,window.isNaN)(b)||c.Pd("yt:stretch")||c.Pd("yt:crop")?!1:.01>Math.abs(b-32/9)||.01>Math.abs(b-8/9)),b?(16*a.height/9>a.width?(b=a.width,c=9*b/16):(c=a.height,b=16*c/9),d=(a.height-c)/2,a=(a.width-b)/2):(b=this.C.width,c=this.C.height,d=
this.C.top,a=this.C.left)):(b=a.width,c=a.height,a=d=0);a=new pg(a|0,d|0,b|0,c|0);this.D.style.left=a.left+"px";this.D.style.top=a.top+"px";this.g.style.width=a.width+"px";this.g.style.height=a.height+"px";b=IA();this.g.width=a.width*b;this.g.height=a.height*b;this.o.g=a.width*b;this.o.b=a.height*b;this.o.viewport(0,0,a.width*b,a.height*b);this.b.cv()}}this.b.Tc(this.o,this.A,this.M,this.X)}this.B&&this.F()};
oL.prototype.ba=function(a){this.G!=a&&this.g&&((this.G=a)?(this.D.appendChild(this.g),this.F(),LA||(this.A.style.display="none")):(Lf(this.g),this.A.style.display=""))};
oL.prototype.F=function(){!this.J&&this.G&&((0,window.requestAnimationFrame)(this.K.bind(this)),this.J=!0)};A(g.pL,xK);g.pL.b=function(a){var b=Q(a).o.c.toLowerCase(),c=a.getVideoData();a=Q(a);return(a.experiments.o||MA(a))&&JH(c)?"Anaglyph3D":(a.experiments.g||MA(a))&&IH(c)?"Spherical":(a.experiments.Z("html5_enable_spherical3d")||MA(a))&&HH(c)?"Spherical3D":a.experiments.Z("enable_webgl_noop")&&"web"==b&&KA(a)?"NoOp":a.experiments.Z("enable_white_noise")&&"web"==b&&(KA(a)||a.C&&hA&&!JA&&zc(38))?"WhiteNoise":a.experiments.Z("enable_edge_enhance")&&"web"==b&&KA(a)?"EdgeEnhance":null};
h=g.pL.prototype;h.tI=function(){var a=this.g;a.B||(0,window.requestAnimationFrame)(a.K.bind(a))};
h.mE=function(a){var b=this.g;b.b&&b.b.Qn(a)};
h.sI=function(a){var b=this.g,c=b.B;b.B=O(a.state,8);b.B&&!c&&b.F()};
h.load=function(){g.pL.L.load.call(this);this.A.Ba(ny(this.b).o);this.g=new oL(this.$,g.pL.b(this.$),this.A.element);this.o.S(this.b,"resize",this.tI);this.o.S(this.b,"onPlaybackQualityChange",this.mE);this.o.S(this.b,"presentingplayerstatechange",this.sI);var a;a:{a=this.g;a.b=null;var b=a.ba.bind(a),c=y(a.F,a),d=!1;switch(a.aa){case "Anaglyph3D":a.b=new XK(a.$,c);break;case "Spherical":a.b=new mL(a.$,c);break;case "WhiteNoise":a.b=new YK(a.$,b);d=!0;break;case "EdgeEnhance":a.b=new ZK(a.$,b);break;
case "NoOp":a.b=new WK(a.$,!0,b);break;case "Spherical3D":a.b=new nL(a.$,c)}if(a.b){a.H=xea(a,d);if(0==a.H){a.G&&!LA&&(a.A.style.display="none");a=!0;break a}a.$.app.g.Wh(new VB("html5.missingapi.webgl",!1,void 0))}a=!1}a?(lq(this.b,"webgl"),this.b.Aa("onApiChange")):(lq(this.b,"webgl"),this.unload())};
h.unload=function(){g.pL.L.unload.call(this);var a=this.g;a.g&&(Lf(a.g),a.g=null);a.o=null;a.B=!1;a.b&&a.b.destroy();a.b=null;a.A.removeAttribute("crossorigin");a.A.style.display="";a.H=10;this.g=null;this.A.detach();kx(this.o)};A(rL,yK);rL.prototype.o=function(){this.oa();this.Y("close-clicked")};
rL.prototype.oa=function(){this.b.stop();I(this.element,"ytp-drawer-closed")};
rL.prototype.Nb=function(a){a?(rL.L.Nb.call(this,a),Rq(this.element,"block")):Rq(this.element,"none")};
rL.prototype.show=function(){this.b.start()};A(sL,uk);sL.prototype.T=function(){sL.L.T.call(this);this.o||Lf(this.A)};
sL.prototype.Ba=function(a){this.o||(this.b.Ba(a),this.b.Nb(this.g.element),a.appendChild(this.A))};
sL.prototype.B=function(){this.Y("ypcModuleCloseClicked")};
sL.prototype.C=function(){this.Y("ypcContentRequest")};A(g.uL,xK);h=g.uL.prototype;h.eG=function(a){this.g&&"dataupdated"==a||(this.unload(),this.load())};
h.load=function(){g.uL.L.load.call(this);this.B.S(this.b,"crn_ypc",this.uI,this);this.B.S(this.b,"crx_ypc",this.vI,this);this.B.S(this.b,"videodatachange",this.eG,this);var a=this.b.getVideoData();this.o=new yea(a);this.A=new P({I:"div",fa:["ytp-player-content","ytp-ypc-player-content"]});qw(this.b,this.A.element,4);if(this.o.videoId&&!a.ypcPreview){for(var b={autoplay:"1",oauth_token:a.oauthToken,video_id:this.o.videoId,ypc_origin:a.videoId,ypc_preview:"1"},c=vH.o,d=0;d<c.length;d++){var e=c[d];
a.A.hasOwnProperty(e)&&(b[e]=a.A[e])}this.b.ik(b,!0)}else this.o.videoId&&(this.C=new P({I:"div",W:"html5-ypc-overlay",P:[this.o.A]}),this.C.Ba(this.A.element)),this.o.offerId&&(b=1E4,a.A.hasOwnProperty("ypc_overlay_timeout")&&(b=(0,window.parseInt)(a.A.ypc_overlay_timeout,10)),this.g=new sL(this.A.element,this.o,b),this.g.subscribe("ypcContentRequest",this.SC,this),this.g.subscribe("ypcModuleCloseClicked",this.ND,this),wL(nq(this.b))&&(c=new fq(0x8000000000000,0x8000000000000,{priority:2,namespace:"ypc"}),
this.b.wb([c])),c=this.g,c.o||c.b.show(),this.D.start(b)),!this.o.videoId&&this.g?tL(this.g):a.ypcPreview?(this.b.Aa("ypcStateChanged",!0),lq(this.b,"ypc")):this.g||lq(this.b,"ypc")};
h.unload=function(){this.A&&(this.A.detach(),this.A.dispose(),this.A=null);kx(this.B);var a=this.b;jq(a.app,"ypc",a.playerType);this.D.stop();Ob(this.C,this.g);this.g=this.C=null;g.uL.L.unload.call(this);this.b.Aa("ypcStateChanged",!1)};
h.uI=function(){tL(this.g)};
h.vI=function(){var a=this.g;a.o||(Rq(a.A,"none"),a.b.Nb(a.g.element))};
h.SC=function(){this.o.b?"embedded"==Q(this.b).b?yr(this.o.b):wr(this.o.b):this.o.offerId&&(this.b.isFullscreen()&&Cr(this.b),this.b.Aa("onYpcContentRequest",this.o.offerId))};
h.ND=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};
h.log=function(a){yv(this.b,"ypc",a)};A(vL,F);var zea={webgl:g.pL,endscreen:g.SK,ypc:g.uL},xL={webgl:"yt.player.modules.WebGlModule2",endscreen:"yt.player.modules.EndScreenModule2",ypc:"yt.player.modules.YpcModule2"};h=vL.prototype;h.Gp=function(){this.o=this.o||yL(this,"endscreen",this.Gp,wL(this))};
h.Hp=function(){var a;if(!(a=this.g)){a=this.Hp;var b=Q(this.$),c;if(c=MA(b)||b.experiments.Z("html5_enable_spherical3d")||b.experiments.Z("enable_webgl_noop")||b.experiments.g||b.experiments.o)c=this.$.getVideoData(),c=IH(c)||HH(c)||JH(c)||b.experiments.Z("enable_edge_enhance")||b.experiments.Z("enable_white_noise")||b.experiments.Z("white_noise_with_interval");a=yL(this,"webgl",a,c)}this.g=a};
h.Ip=function(){this.B=this.B||yL(this,"ypc",this.Ip,zs(this.$.getVideoData(),"ypc_module"))};
h.Zy=function(a){var b;var c=oa(a);b=this.J[c];if(!b&&(b=a(this.$))){a=this.J[c]=b;for(var d in this.G)a.subscribe(d,this.G[d]);G(this,b)}b&&b.Cb(this.$)&&!kb(this.b,b)&&(this.b.push(b),b.create(),kb(this.D,b.Na)&&(b.F=this.H,b.zj(!!b.F)))};
h.ZF=function(a,b){E(this.b,function(c){c.Y(a,b)})};
h.isAvailable=function(a){a=dJ(this,a);return!(!a||!a.ca)};A(DL,Error);DL.prototype.bb=function(){return this.g};
DL.prototype.Fb=function(){return this.B};
DL.prototype.toString=function(){return"AdError "+this.bb()+": "+this.b+(null!=this.A?" Caused by: "+this.A:"")};A(EL,mc);EL.prototype.getError=function(){return this.o};var V0="adMetadata callFlashVpaidMethod 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(" "),C$="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(" "),
Isa="acceptinvitation click close collapse creativeview expand progress".split(" "),D$=["viewable_impression","measurable_impression","externalActivityEvent"],E$={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};A(FL,mc);FL.prototype.kb=function(){return this.o};
var Oka={eK:"adCanPlay",GL:"contentPauseRequested",HL:"contentResumeRequested",wk:"click",DQ:"videoClicked",po:"engagedview",vM:"expandedChanged",IP:"start",pi:"impression",Ao:"measurable_impression",Vo:"viewable_impression",so:"fully_viewable_audible_half_duration_impression",wM:"externalActivityEvent",PAUSED:"pause",hP:"resume",ro:"firstquartile",Bo:"midpoint",So:"thirdquartile",mo:"complete",mM:"durationChange",SK:"autoClose",wQ:"userClose",xQ:"userRecall",PO:"prefetched",LOADED:"loaded",GK:"allAdsCompleted",
Ko:"skip",Ux:"skipshown",pN:"linearChanged",CP:"skippableStateChanged",fK:"adMetadata",dK:"adBreakReady",AN:"log",VOLUME_CHANGED:"volumeChange",LQ:"mute",vL:"companionBackfill",YQ:"youTubeVideoMetadata",XQ:"youTubeChannelMetadata",vQ:"urlNavigationRequested",jQ:"trackingUrlPinged",zQ:"video_card_endcap_action",AQ:"video_card_endcap_collapse",BQ:"video_card_endcap_dismiss",CQ:"video_card_endcap_impression",UQ:"why_this_ad_url",TQ:"why_this_ad_got_it",kO:"MUTE_AD",yL:"companionInitialized",xL:"companionImpression",
wL:"companionClick",GN:"mediaUrlPinged"};var bM={fx:5E3,gx:15E3,Kx:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com www.google.com/pagead/sul www.youtube.com/pagead/sul www.youtube.com/pagead/psul".split(" "),Lx:/\bocr\b/,$k:0,ue:{},sG:function(a,b,c){a&&(bM.gr(a)?bM.Ct(a,b):bM.xt(a,b,c))},
gr:function(a){return B(C(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new M(a)).F().match(bM.Lx)?!0:null!=fb(bM.Kx,function(b){return null!=a.match(b)})},
Ct:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?bM.dr(function(b){bM.vt(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):bM.vt(c)}},
vt:function(a){var b=L("IFRAME",{src:a,style:"display:none"});a=pf(b).body;var c,d=fe(function(){fd(c);Lf(b)},bM.gx);
c=dd(b,["load","error"],function(){fe(function(){ge(d);Lf(b)},bM.fx)});
a.appendChild(b)},
dr:function(a,b){var c=bM.ue.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete bM.ue[c];d||(d=!0,null!=bM.ue.imageLoadingEnabled||(bM.ue.imageLoadingEnabled=b),a(b))};
b?b(c):bM.KB(c)}},
KB:function(a){var b=new window.Image,c,d=""+bM.$k++;bM.ue[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=="},
rG:function(a){if(a){var b=Gf(window.document,"OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+bM.$k++;bM.ue[c]=b;b.onload=b.onerror=function(){delete bM.ue[c]};
window.document.body.appendChild(b)}},
wt:function(a){if(a){var b=new window.Image,c=""+bM.$k++;bM.ue[c]=b;b.onload=b.onerror=function(){delete bM.ue[c]};
b.src=a}},
xt:function(a,b,c){if(a){if(c)try{if(aa.navigator&&aa.navigator.sendBeacon&&aa.navigator.sendBeacon(a,""))return}catch(d){}b?bM.dr(function(b){b?bM.wt(a):bM.rG(a)}):bM.wt(a)}}};JL.prototype.b=function(){return this.H};
var U=new JL;var RV=["ADSENSE","ADSENSE/ADX"],fia=["DART","DART_DFA","DART_DFP"],qia=["FREEWHEEL","YT:FREEWHEEL"],lV=["SHOPPING","YT:SHOPPING"],qV=["GDFP"],eia=["VIRAL","ADSENSE-VIRAL"],dia=["VIRAL-RESERVE"],GT={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},g_={QN:"video/mp4",SN:"video/mpeg",DN:"application/x-mpegURL",rO:"video/ogg",UP:"video/3gpp",OQ:"video/webm",
PN:"audio/mpeg",RN:"audio/mp4"};KL.prototype.Z=function(){return!1};
KL.prototype.b=function(){return window.NaN};
KL.prototype.g=function(){return""};LL.prototype.getId=function(){return this.wa};ML.prototype.getId=function(){return this.wa};var PL=null;var Ega=["*.googlesyndication.com","gcdn.2mdn.net"],Lea=["*.youtu.be","*.youtube.com"],Oea="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(" "),Nea=["c.googlesyndication.com"],
Uja=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];dM.prototype.bb=function(){return this.errorCode};
var dka=new dM("Unable to request ads from server. Cause: {0}.",1005),Vja=new dM("Unable to request ads from server due to network error.",1012),IW=new dM("Cannot parse the {0} value for the adslist response: {1}.",900),WZ=new dM("Invalid usage of the API. Cause: {0}",900),l0=new dM("Asset fallback ad replacement failed.",1021),m0=new dM("Asset fallback no ad replacement.",1021),a_=new dM("Unable to display one or more required companions.",602),SY=new dM("There was a problem requesting ads from the server.",
1005),F$=new dM("There was a problem requesting the biscotti ID.",1005),Tja=new dM("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),uY=new dM("The provided ad type: {0} is not supported.",1005),wQ=new dM("The provided {0} information: {1} is invalid.",1101),Jsa=new dM("The provided skip offset was invalid.",1105),Ksa=new dM("The extension contained is neither skippable nor nonskippable.",1105),jU=new dM("The response does not contain any valid ads.",1009),Lsa=new dM("The overlay ad content could not be displayed since creative dimensions do not align with display area.",
501),Iia=new dM("The ad playlist response was malformed or empty.",1010),JW=new dM("The ad response was not understood and cannot be parsed.",1010),Yja=new dM("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),ela=new dM("The ad response contains unexpected element. Cause {0}.",1010),bZ=new dM("No assets were found in the VAST ad response.",200),Wha=new dM("Duplicate node in <{0}>: {1}",101),XX=new dM("The VAST response document is empty.",1009),
Lka=new dM("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),iU=new dM("Ad request reached a timeout.",301),YX=new dM("VAST response was malformed and could not be parsed.",100),G$=new dM("VAST media file loading reached a timeout of {0} seconds.",402),kU=new dM("Ad request could not be completed due to a network error.",301),Msa=new dM("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
503),H$=new dM("There was an error displaying the media file.",405),Jha=new dM("The maximum number of VAST wrappers ({0}) has been reached.",302),Nsa=new dM("VAST media file duration differs from the VAST response duration by {0} seconds.",202),g0=new dM("Video player received an ad with unexpected or incompatible linearity",201),Vha=new dM("Unknown node in <{0}>: {1}",101),dja=new dM("Invalid VAST resource type: {0}",101),uja=new dM("Invalid VAST version",102),Kha=new dM("No additional VAST wrappers allowed.",
300),pU=new dM("No Ads VAST response after one or more Wrappers",303),n0=new dM("There was an error playing the video ad.",400),qja=new dM("VMAP unsupported node in <{0}>: {1}",1010),D_=new dM("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);var qS="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var sM={},uM="",$Q=/OS (\S+) like/,qM=/Android ([\d\.]+)/;BM.prototype.reset=function(){this.b=0;this.g=null};DM.prototype.reset=function(){this.g=this.b=null};var JM=new FM;FM.prototype.clear=function(){this.b=EM();this.C=this.H=this.g=null;this.B=EM();this.A=null;this.R=this.D=this.F="";this.G=this.O=this.o=null;this.aa=!1};da(IM);var NM="function"==typeof window.Uint8Array,OM=[];MM.prototype.toString=function(){TM(this);return this.g.toString()};
MM.prototype.getExtension=function(a){if(this.o){this.b||(this.b={});var b=a.o;if(a.A){if(a.g())return this.b[b]||(this.b[b]=Ki(this.o[b]||[],function(b){return new a.b(b)})),this.b[b]}else if(a.g())return!this.b[b]&&this.o[b]&&(this.b[b]=new a.b(this.o[b])),this.b[b];
return this.o[b]}};
MM.prototype.clone=function(){return new this.constructor(UM(SM(this)))};A(VM,MM);A(WM,MM);A(XM,MM);XM.prototype.getStyle=function(){return QM(this,$M,1)};
A(YM,MM);A(ZM,MM);A($M,MM);A(aN,MM);A(bN,MM);var Tea=[1];bN.prototype.getStyle=function(){return QM(this,$M,2)};
A(RM,MM);RM.prototype.getStyle=function(){return QM(this,$M,3)};h=cN.prototype;h.Dy=!1;h.fp=!1;h.jp=!0;h.dg=null;h.bitrate=-1;h.wg=null;h.dz=!1;h.th=null;h.surveyCreativeData=null;h.PG=!0;h.pn=!1;h.QG=!1;h.qn=!1;h.sn=!1;h.du=!1;h.eu=!0;h.iz=!1;h.RG=!0;h.Kk=!1;h.ez=!1;h.$G=0;h.showContentThumbnail=!0;h.on=!1;h.Gg=null;h.Vd=15E3;h.kp=!0;h.Ns=0;h.Nm=-1;h.xq=null;window.console&&"function"===typeof window.console.log&&y(window.console.log,window.console);var kN=null;gN.prototype.getValue=function(){return this.b};
gN.prototype.g=function(){return String(this.b)};
A(hN,gN);hN.prototype.g=function(){return this.b?"1":"0"};
A(iN,gN);iN.prototype.g=function(){return this.b?Math.round(this.b.top)+"."+Math.round(this.b.left)+"."+(Math.round(this.b.top)+Math.round(this.b.height))+"."+(Math.round(this.b.left)+Math.round(this.b.width)):""};
fN.prototype.setItem=function(a){this.b[a.B]=a};
fN.prototype.getItem=function(a){return fc(this.b,a,null)};pN.prototype.reset=v;pN.prototype.update=v;pN.prototype.B=v;qN.prototype.remove=function(a){ec(this.b,a)};
qN.prototype.set=function(a,b){this.b[a]=b};
qN.prototype.get=function(a){return fc(this.b,a,null)};new de(200);var I$={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},$P={Qo:"start",ro:"firstquartile",Bo:"midpoint",So:"thirdquartile",mo:"complete",xx:"metric",PAUSE:"pause",Nx:"resume",Ko:"skip",Vo:"viewable_impression",Ax:"mute",gy:"unmute",Bk:"fullscreen",Ow:"exitfullscreen",so:"fully_viewable_audible_half_duration_impression",Ao:"measurable_impression",gw:"abandon",po:"engagedview",pi:"impression",Ew:"creativeview",LOADED:"loaded"},nga="start firstquartile midpoint thirdquartile resume loaded".split(" "),
Ifa=["abandon"],aQ={UNKNOWN:-1,Qo:0,ro:1,Bo:2,So:3,mo:4,xx:5,PAUSE:6,Nx:7,Ko:8,Vo:9,Ax:10,gy:11,Bk:12,Ow:13,so:14,Ao:15,gw:16,po:17,pi:18,Ew:19,LOADED:20},ZO={HQ:1,NK:2,LK:4,Bk:8,UK:16,TK:32,MK:64,KL:128,AO:256};var YN=window.document,X=window;var Ufa=/https?:\/\/[^\/]+/;HN.prototype.b=function(a,b,c,d,e){try{var f=e||this.B,k=new AN;k.B=!0;CN(k,1,"context",a);b instanceof IN||(b=JN(b));CN(k,2,"msg",b.message.substring(0,512));b.b&&CN(k,3,"file",b.b);0<b.g&&CN(k,4,"line",b.g.toString());b={};if(d)try{d(b)}catch(m){}d=[b];k.b.push(5);k.g[5]=d;var l=xN();l.g&&CN(k,6,"top",l.g.url||"");CN(k,7,"url",l.b.url||"");GN(this.o,f,k,!1,c)}catch(m){try{GN(this.o,f,{context:"ecmserr",rctx:a,msg:NN(m),url:l.b.url},!1,c)}catch(n){}}return this.g};var UN,LN,SN,RN=[],PN=1E-4>Math.random(),QN=!(!X.performance||!X.performance.now);UN=new function(){this.g="http:"===X.location.protocol?"http:":"https:";this.A="pagead2.googlesyndication.com";this.B="/pagead/gen_204?id=";this.b=.01;this.o=Math.random()};
LN=new HN(UN,"jserror",!0);var cfa=LN.b;var J$=!1,K$="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(J$=!0,a.description)){K$=$N(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){J$=!0;K$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],J$=!(!a||!a.enabledPlugin))){K$=$N(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");J$=
!0;K$=$N(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");J$=!0;K$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),J$=!0,K$=$N(b.GetVariable("$version"))}catch(c){}})();
var BQ=J$,dO=K$;var aO={},bO=null;aO.le=0;aO.nt=2;aO.Fr=3;aO.Po=5;aO.me=1;aO.om=4;var iP=0,ffa=(new Date).getTime(),hO=-1,jO=!1,kO=-1,lO=-1;if(YN&&YN.URL){var uN=YN.URL,Osa=!(uN&&0<Zea().length);LN.g=Osa};pO.prototype.getStatus=function(){return this.b};
A(sO,pO);var xO={pQ:-1,LOADING:0,Ww:1,Aw:2,ix:3,VISIBLE:4},pfa={LOADING:0,Ww:1,Aw:2,bQ:3,qO:4,mQ:5,nQ:6,lQ:7,tO:8,aQ:9},AO={};tO.prototype.F=function(a,b){if(!this.b)return!1;this.b.style.position="absolute";uO(this,b);var c=!0;try{a.appendChild(this.b)}catch(d){c=!1}return c};
tO.prototype.D=function(a,b){if(!this.b||!a.parentNode)return!1;this.b.style.position="fixed";uO(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.b,a.nextSibling)}catch(d){c=!1}return c};
tO.prototype.remove=function(){if(this.b)try{Lf(this.b)}catch(a){}this.b=null};
tO.prototype.G=function(a){this.o=a?3:4};
g.ca("gteh",VN("osd_or_lidar::gteh_ex",function(a,b){var c=AO[a];ka(c)&&c(b)}),void 0);
var ufa={ix:0,VISIBLE:1},Psa=new jf(-99999,0);DO.prototype.aa=function(){var a=FO(this);if(null===a)HO(this);else if(null===this.A)this.A=a,HO(this);else{var b=a-this.A;this.A=a;0==(4<=b?1:0)?(HO(this),EO(this,0)):(uO(this.g,Psa),this.F=X.setTimeout(WN("osd_or_lidar::sfm_cpto",y(this.R,this)),125))}};
DO.prototype.R=function(){var a=FO(this),b=a-this.A;this.A=a;a=4<=b?1:0;HO(this);EO(this,0==a?1:0)};
A(JO,pO);JO.prototype.H=function(){var a=wfa(this);this.C!=a&&(this.C=a,this.F(a))};da(gO);var NO=new og(0,0,0,0),Cfa={threshold:[0,.3,.5,.75,1]};h=OO.prototype;
h.df=function(a,b,c,d,e,f,k){k=this.fq(c,k||{});var l=this.J,m,n;ia(b)?n=this.kh(b):(m=b,n=this.kh(a,m));f&&(l.A=Math.max(l.A,n));f=XN(YN);this.ia=0==f?-1:1==f?0:1;f=SO(n);var t=SO(this.o);ia(b)||(this.ha=new lf(m.right-m.left,m.bottom-m.top));this.nn(f,k,t,e,d,m);this.o=d?0:n;this.ba=c;0<n&&(0>l.C&&(l.C=c),l.F=c);-1==this.Ge&&this.We()&&(this.Ge=c);-2==this.Ub&&(this.Ub=a&&a!=NO&&0!=this.aa&&this.ha&&this.ha.height&&this.ha.width?this.kh(a,new og(0,this.ha.width,this.ha.height,0)):-1);this.ce(this)};
h.fq=function(a){if(-1==this.ba)return 0;a=a-this.ba||1;return 1E4<a?1:a};
h.kh=function(a,b){if(ia(a))return a;if(b){var c;c=null===a||null===b?NO.clone():new og(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left));return 0>=this.aa||0>=c.cb()||0>=c.getHeight()?0:(c.bottom-c.top)*(c.right-c.left)/this.aa}return 0};
h.Hk=function(a,b){var c=this.J;-1!=a&&(c.B[a]+=b)};
h.Gk=function(a,b){var c=this.J;-1!=a&&(c.b[a]+=b,c.b[a]>c.o[a]&&(c.o[a]=c.b[a]))};
h.Fk=function(a){-1!=a&&(this.J.b[a]=0)};
h.nn=function(a,b,c,d,e,f){var k=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?k:c;-1!=c&&this.Hk(c,b);d=this.J;f=f||null;k=this.aa;f?(-1!=c&&2>=c&&-1!=d.g&&(d.D[d.g]+=b),f=100*k/((f.bottom-f.top)*(f.right-f.left)),d.g=20<=f?0:10<=f?1:5<=f?2:2.5<=f?3:4):d.g=-1;for(f=c;0<=f&&4>=f;f++)this.Gk(f,b);for(f=0;4>=f;++f)(f<a||e||-1==a)&&this.Fk(f)};
h.xm=function(){return!1};
h.We=function(){return!1};A(bP,OO);h=bP.prototype;
h.df=function(a,b,c,d,e,f,k){k=k||this.ub(this)||{};this.M=k.duration||this.M;this.Tb=k.isVpaid||this.Tb;this.jb=f;this.da=k.volume;cP(this.da)||(this.He++,cP(this.H)&&(this.da=this.H));bP.L.df.call(this,a,b,c,d,e,f,k);-1==this.Za&&this.hd&&(this.Za=this.fb);(a=this.We())&&$O(this.D,1);cP(this.H)&&$O(this.D,2);this.ua&&$O(this.D,4);this.B&&$O(this.D,8);-1!=this.ia&&($O(this.D,16),1==this.ia&&$O(this.D,32));this.ua&&a&&$O(this.D,64);this.jb&&$O(this.D,128);this.jb&&0<this.o&&$O(this.D,256)};
h.fq=function(a,b){var c=p(b.currentTime)?b.currentTime:this.Ha,d=dP(this,a),e=c-this.Ha,f=b.isYouTube,k=p(b.isPlaying)?b.isPlaying:!0;2!=this.Sa?(0<=e?(this.Oa+=d,this.la+=Math.max(d-e,0),this.Ma=Math.min(e,this.Oa)):(this.sc+=Math.abs(e),this.Ma=0),0!=e&&(this.Oa=0),-1==this.Ca&&0<e&&(this.Ca=0<=lO?iO()-lO:-1)):(k||this.O||(this.la+=d),-1==this.Ca&&k&&(this.Ca=0<=lO?iO()-lO:-1));this.Ha=c;if(f){if(1==this.Sa)return this.Ma;if(2==this.Sa)return k?d:0}return dP(this,a)};
h.kh=function(a,b){return this.Id?0:this.B?1:bP.L.kh.call(this,a,b)};
h.Hk=function(a,b){bP.L.Hk.call(this,a,b);this.qc[a]+=this.Ma;if(2>=a){var c=this.G;c.C+=b;this.ga+=this.Ma}};
h.Gk=function(a,b){bP.L.Gk.call(this,a,b);this.na[a]+=this.Ma;this.na[a]>this.dc[a]&&(this.dc[a]=this.na[a])};
h.Fk=function(a){bP.L.Fk.call(this,a);this.na[a]=0};
h.nn=function(a,b,c,d,e,f){if(!this.O){bP.L.nn.call(this,a,b,c,d,e,f);a=-1==c||-1==a?-1:Math.max(c,a);e=d&&-1!=c&&2>=c?a:c;this.fb+=b;this.Oe&&(this.Sb+=b,this.Ia+=b);this.Oe=this.B;this.ua=(c=cP(this.da)&&.1<=this.da)&&cP(this.H)&&.1<=this.H;d=this.G;a=-1!=e&&2>=e;if(this.ua){d.F+=b;for(d.o+=b;0<=e&&4>=e;e++)d.A[e]+=b;a?d.B+=b:d.b+=b;d.b>d.G&&(d.G=d.b)}else d.D=!1;if(a||!c)d.b=0;b=this.da;this.H=p(b)?Number(b)?XO(b,3):0:b}};
h.xm=function(){return!0};
h.We=function(){var a=this.J;return 2E3<=Math.max(a.b[2],a.o[2])};var kP=null,oP=null,pP=null,rP=null,HP=null,jP=!1,IP=[],JP=[],EP=!1,FP=null,AP=0,zP=!1,BP=!1,mP=!1,lP=!1,VP=!1,CP=!1,DP=!1,xP=jM()||kM(),Mfa=0;A(KP,pN);KP.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.A=this.o=0};
KP.prototype.update=function(a,b){p(b)||(b=a.length);for(var c=b-this.g,d=this.C,e=this.o,f=0;f<b;){if(0==e)for(;f<=c;)LP(this,a,f),f+=this.g;if(w(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.g){LP(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.g){LP(this,d);e=0;break}}this.o=e;this.A+=b};
KP.prototype.B=function(){var a=Array((56>this.o?this.g:2*this.g)-this.o);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;for(var c=8*this.A,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.b[b]>>>d&255;return a};var cQ={v:"v",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",ns:"ns",ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",uac:"uac",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",px:"px",fm:"sfm",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",mmct:"mmct",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",dtos:"dtos",vmdtos:"vmdtos",dtoss:"dtoss",dom:"dom",fmf:"fmf",ven:"ven",
veh:"veh",vds:"vds",is:"is",ic:"ic",c:"c",mc:"mc",lte:"lte",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",nes:"nes"},iga={c:OP("c"),at:"at",atos:SP("atos",[0,2,4]),ta:PP(),a:"a",dur:"dur",p:"p",tos:RP(),j:"dom",mtos:SP("mtos",[0,2,4]),gmm:"gmm",ss:OP("ss"),vsv:nd("w1"),t:"t"},lga={vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",vmdtos:"vmdtos",tcm:"tcm",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",bt:"bt",pst:"pst",nmt:"nmt",mmct:"mmct",c:OP("c"),at:"at",atos:SP("atos",[0,2,4]),avt:SP("atos",
[2]),dav:"dav",ta:PP(),a:"a",dur:"dur",p:"p",tos:RP(),j:"dom",mtos:SP("mtos",[0,2,4]),gmm:"gmm",ss:OP("ss"),vsv:nd("w1"),t:"t"},jga={a:"a",tos:RP(),at:"at",c:OP("c"),mtos:SP("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:nd("ias_w1"),dom:"dom",gmm:"gmm",t:"t"},kga={tos:RP(),at:"at",c:OP("c"),mtos:SP("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:nd("dv_w1"),gmm:"gmm",dom:"dom",t:"t"};var tQ=null,WP="",sQ=!1;h=TP.prototype;h.Dl=function(){};
h.oq=r;h.Xs=r;h.zp=r;h.bp=r;h.Pl=function(a){if(a){if(!a.Je){var b=gP(a,"start"),b=bQ(b,cQ),c=tQ||X,d=[];d.push("v=485v");d.push("r=fp");d.push("efm="+(this.g?1:0));d.push("esfm="+(this.o?1:0));d.push(b);d.push(Wfa(c));FN(X,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+d.join("&")).substring(0,2E3),void 0);a.Je=!0}a.Ka=!0;this.Xm(a)}};
h.zA=function(a){a.De++;eP(a,0);.1<=a.H&&(a.G.D=!0);return gP(a,"start")};
h.pA=function(a){eP(a,1);vP([a],!hP());return gP(a,"firstquartile")};
h.uA=function(a){eP(a,2);a.hd=!0;vP([a],!hP());return gP(a,"midpoint")};
h.AA=function(a){eP(a,3);vP([a],!hP());return gP(a,"thirdquartile")};
h.lA=function(a){eP(a,4);vP([a],!hP());var b=gP(a,"complete");a.B=!1;YP(a.C);return b};
h.wA=function(a){return XP(a,"pause")};
h.kA=function(a){return XP(a,"abandon")};
h.xA=function(a){var b=hP();a.O&&!b&&(a.G.g=iO());vP([a],!b);a.O=!1;return gP(a,"resume")};
h.CA=function(a){var b=gP(a,"viewable_impression");a.Ne=!0;return b};
h.yA=function(a){var b=!hP();vP([a],b);b=gP(a,"skip");a.B=!1;YP(a.C);return b};
h.vA=function(a){vP([a],!hP());return gP(a,"mute")};
h.BA=function(a){vP([a],!hP());return gP(a,"unmute")};
h.qA=function(a){a.B=!0;vP([a],!hP());return gP(a,"fullscreen")};
h.oA=function(a){a.B=!1;vP([a],!hP());return gP(a,"exitfullscreen")};
h.rA=function(a){return gP(a,"fully_viewable_audible_half_duration_impression")};
h.tA=function(a){return gP(a,"measurable_impression")};
h.nA=function(a){return gP(a,"engagedview")};
h.sA=function(a){return gP(a,"impression")};
h.mA=function(a){return gP(a,"creativeview")};
h.Oz=function(a){a.We()&&!a.jd&&this.Xs(a);this.zp(a)};
h.Xm=r;var hQ=(new Date).getTime(),jQ=!1,kQ=!1,lQ=!1,cga=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return iQ(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 iQ(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 iQ(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 iQ(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 iQ(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return kQ},
function(){return lQ},
function(){return iQ(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 iQ(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]||gQ(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 gQ(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 iQ(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 gQ(a.CSS.supports)},
function(){return gQ(window.Intl.Collator)},
function(a){return gQ(a.document.createElement("dialog").show)},
function(){return iQ(8)},
function(a){return gQ(a.document.createElement("div").animate([{transform:"scale(1)",hz:"ease-in"},{transform:"scale(1.3)",hz:"ease-in"}],{duration:1300,jR:1}).reverse)},
function(a){return gQ(a.document.createElement("div").animate)},
function(a){return gQ(a.document.documentElement.webkitRequestFullScreen)},
function(a){return gQ(a.navigator.getBattery)},
function(a){return gQ(a.navigator.permissions.query)},
function(){return!1},
function(){return iQ(9)},
function(){return gQ(window.webkitRequestAnimationFrame)},
function(a){return gQ(a.BroadcastChannel.call)},
function(a){return gQ(a.FontFace)},
function(a){return gQ(a.Gamepad)},
function(){return iQ(10)},
function(a){return gQ(a.MutationEvent)},
function(a){return gQ(a.MutationObserver)},
function(a){return gQ(a.crypto.getRandomValues)},
function(a){return gQ(a.document.body.createShadowRoot)},
function(a){return gQ(a.document.body.webkitCreateShadowRoot)},
function(a){return gQ(a.fetch)},
function(){return iQ(11)},
function(a){return gQ(a.navigator.serviceWorker.register)},
function(a){return gQ(a.navigator.webkitGetGamepads)},
function(a){return gQ(a.speechSynthesis.speak)},
function(a){return gQ(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return iQ(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 iQ(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 iQ(14)},
function(a){return"undefined"==typeof a.navigator.nR},
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")}],dga=[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}],ega=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];A(mQ,TP);da(mQ);h=mQ.prototype;h.Dl=function(a,b){gO.getInstance();var c;b.opt_adElement?c=Yfa(this,a,b.opt_adElement):(c=hga(this,a,b.opt_sdkID||""))||(c=Ofa(a)||void 0);c&&c.ub==r&&(c.ub=y(this.bp,this));return c};
h.bp=function(a){gO.getInstance();a.b=0;a.Ya=0;var b;if("as"==a.K){var c="getVideoMetadata"+a.Mg;if(ka(a.element[c]))try{b=a.element[c]()}catch(e){a.b|=4}else a.b|=2}else if("h"==a.K)if(c=q("ima.common.getVideoMetadata"),ka(c))try{b=c(a.C)}catch(e){a.b|=4}else a.b|=2;else a.b|=1;a.b||(p(b)?null===b?a.b|=16:cc(b)?a.b|=32:null!=b.errorCode&&(a.Ya=b.errorCode,a.b|=64):a.b|=8);null!=b||(b={});c=b;a.za=0;for(var d in I$)null==c[d]&&(a.za|=I$[d]);null!=c.currentTime||a.de++;fQ(c,"currentTime");fQ(c,"duration");
return b};
h.Xs=function(a){oQ(a,"viewable_impression")&&(a.jd=!0)};
h.zp=function(a){var b=a.G.A[0];(15E3<=b||a.hd&&(-1!=a.M?b>=a.M/2:-1!=a.Za&&b>=a.Za))&&!a.Hd&&oQ(a,"fully_viewable_audible_half_duration_impression")&&(a.Hd=!0)};
h.oq=function(a){a.Me||a.Ka||!oQ(a,"measurable_impression")||(a.Me=!0)};
h.Xm=function(){};
g.ca("Goog_AdSense_Lidar_sendVastEvent",VN("lidar::handlevastevent_ex",uQ,void 0,function(){return{v:"485","if":gO.getInstance().g?"1":"0",nas:String(IP.length)}}),void 0);
g.ca("Goog_AdSense_Lidar_getViewability",MN("lidar::getviewability_ex",function(a,b){var c;c=mQ.getInstance();var d={};kc(d,{opt_adElement:void 0,opt_fullscreen:void 0},b||{});d.opt_bounds?c=qQ(eQ("ol")):(sQ?c=eQ("ue"):(c=c.Dl(a,d))?(d=eQ(),kc(d,fP(c,!0,!1)),c=d):c=eQ("nf"),c=qQ(c));return c},void 0,void 0),void 0);
g.ca("Goog_AdSense_Lidar_getInitSignals",MN("lidar::getinitsignals_ex",rQ,void 0,void 0),void 0);g.ca("Goog_AdSense_Lidar_getUrlSignalsArray",VN("lidar::geturlsignalsarray_ex",function(){return NP()}),void 0);
g.ca("Goog_AdSense_Lidar_getUrlSignalsList",VN("lidar::geturlsignalslist_ex",function(){return ig(NP())}),void 0);var pga={IMAGE:"Image",Uw:"Flash",ALL:"All"},oga={PM:"Html",TM:"IFrame",JP:"Static",ALL:"All"},qga={UM:"IgnoreSize",rP:"SelectExactMatch",sP:"SelectNearMatch"},rga={VL:"DisallowResize",fP:"ResizeSmaller"};A(GQ,H);var HQ=null;GQ.prototype.destroy=function(){this.C.sa(this.b,"activityMonitor",this.F);this.A=null;this.o=!1;this.g.clear()};
GQ.prototype.T=function(){this.destroy();GQ.L.T.call(this)};
GQ.prototype.init=function(a){if(!this.o){if(this.b=a||null)this.C.N(this.b,"activityMonitor",this.F),NQ(this);if(U.C&&!(aa.ima&&aa.ima.video&&aa.ima.video.client&&aa.ima.video.client.tagged)){g.ca("ima.video.client.sdkTag",!0,void 0);var b=aa.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)}this.o=!0}};
GQ.prototype.F=function(a){var b=a.Xd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.Jc){case "getPageSignals":NQ(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=LQ(this,e,c,a,f);this.b.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,c=null,$b(b,"isFullscreen")&&(c=b.isFullscreen),$b(b,"loggingId")&&(b=b.loggingId,d.loggingId=b,
LM(IM.getInstance(),43,{step:"beforeLookup",logid:b,time:D()},!0)),d.engagementString=xga(this,a,c),this.b.send("activityMonitor","engagement",d)}};
g.ca("ima.common.getVideoMetadata",function(a){a=IQ().g.get(a);return ka(a)?a():{}},void 0);
g.ca("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=IQ().b;d?d.send("activityMonitor","viewableImpression",c):IQ().dispatchEvent(new FL("viewable_impression",null,c))},void 0);
g.ca("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=IQ().b,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.ca("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=IQ().b;d?d.send("activityMonitor","measurableImpression",c):IQ().dispatchEvent(new FL("measurable_impression",null,c))},void 0);
g.ca("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=IQ().b)?a.send("activityMonitor","externalActivityEvent",d):IQ().dispatchEvent(new FL("externalActivityEvent",null,d))},void 0);
g.ca("ima.common.updateEngagementDetectionValue",function(a){if(U.C){var b=IQ().b;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);
IQ();A(PQ,H);h=PQ.prototype;h.ib=function(a){null==a||this.C||(this.yf=a,Cga(this),this.C=!0)};
h.Lb=function(){null!=this.yf&&this.C&&(QQ(this),this.B=this.F=this.C=!1,this.b=0,this.o=[],this.D=!1)};
h.kF=function(a){this.F=!0;this.b=a.touches.length;this.g&&(window.clearTimeout(this.g),this.g=0,this.J=!0);(this.D=RQ(this,a.touches)||1!=a.touches.length)?this.M=this.K=window.Infinity:(this.K=a.touches[0].clientX,this.M=a.touches[0].clientY);Dga(this,a.touches)};
h.jF=function(a){this.b=a.touches.length;if(!oM()||!pM($Q,8)||Math.pow(a.changedTouches[0].clientX-this.K,2)+Math.pow(a.changedTouches[0].clientY-this.M,2)>Math.pow(5,2))this.B=!0};
h.iF=function(a){this.H?this.jl():(!this.F||1!=this.b||this.B||this.J||this.D||!RQ(this,a.changedTouches)||(this.g=window.setTimeout(y(this.jl,this),300)),this.b=a.touches.length,0==this.b&&(this.B=this.F=!1,this.o=[]),this.J=!1)};
h.Gq=function(){this.jl()};
h.jl=function(){this.g=0;this.dispatchEvent(new mc("click"))};
h.T=function(){this.Lb();this.A.dispose();this.A=null;PQ.L.T.call(this)};A(WQ,H);var pS={bL:"beginFullscreen",wk:"click",qM:"end",rM:"endFullscreen",ERROR:"error",LOADED:"loaded",FN:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",BP:"skip",Ux:"skipShown",vP:"shareClicked",Qo:"start",XP:"timeUpdate",mL:"cardsStateChange",VP:"timedMetadata",KQ:"volumeChange"};h=WQ.prototype;h.Xi=v;h.Um=v;h.Ih=v;h.load=v;h.getVideoUrl=v;h.setVolume=v;h.Td=v;h.play=v;h.pause=v;h.Ve=v;h.If=v;h.lj=v;h.Hf=v;h.gg=v;h.Jf=v;h.getCurrentTime=v;h.Yl=v;h.td=v;h.pe=v;h.ud=v;h.Zl=v;h.Mq=function(){return!1};
h.Wa=function(){return!0};
h.getError=v;h.Ym=r;h.Oq=r;h.ib=v;h.Lb=v;h.Xl=r;h.lg=function(){return null};
h.Pq=r;h.Nq=r;A(XQ,WQ);h=XQ.prototype;h.Um=function(a,b,c,d){if(d&&(d=fb(a,function(a){return null!==SQ(a.g)}),null!==d))return d;
a=ne(a,function(a){var b=a.b;B(C(a.g))||"progressive"!=a.A&&"application/x-mpegurl"!=C(b).toLowerCase()?a=!1:(b=C(b).toLowerCase(),a=B(b)||rM(2.3)&&-1!=b.indexOf("application/ogg")?!1:JA&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||oM()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!B(this.b.canPlayType(b)));return a},this);
return OQ(a,b,c)};
h.Xi=function(){return ne(Xb(g_),function(a){return!B(this.b.canPlayType(a))},this)};
h.Ih=function(a){this.aa=0<a.b?a.b:15E3};
h.load=function(a){ZQ(this);this.b.src=a;this.b.load()};
h.getVideoUrl=function(){return this.b.src};
h.setVolume=function(a){this.b.volume=a};
h.Td=function(){return this.b.volume};
h.play=function(){this.M=!1;fe(this.b.play,0,this.b);this.G||(this.G=fe(this.Ry,this.aa,this))};
h.pause=function(){this.M=!0;this.b.pause()};
h.Ve=function(){return this.b.paused?oM()||gm?this.b.currentTime<this.b.duration:!0:!1};
h.If=function(){return this.b.muted};
h.lj=function(){nM()&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};
h.Hf=function(){return KQ(this.b)};
h.gg=function(a){var b;a:{for(b=this.R.Ra();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
h.Jf=function(a){this.b.currentTime=a};
h.getCurrentTime=function(){return this.b.currentTime};
h.Yl=function(){return bR(this)};
h.td=function(){return(0,window.isNaN)(this.b.duration)?-1:this.b.duration};
h.pe=function(){return this.b.ended};
h.ud=function(){return new lf(this.b.offsetWidth,this.b.offsetHeight)};
h.Zl=function(){return this.b.seeking};
h.T=function(){this.Lb();this.b=null;XQ.L.T.call(this)};
h.getError=function(){return this.b.error};
h.ib=function(){this.Lb();this.g=new Hm(this);this.g.N(this.b,qS,this.iE);this.g.N(this.b,"canplay",this.vC);this.g.N(this.b,"ended",this.jB);this.g.N(this.b,"webkitbeginfullscreen",this.$l);this.g.N(this.b,"webkitendfullscreen",this.Rq);this.g.N(this.b,"pause",this.lB);this.g.N(this.b,"playing",this.sE);this.g.N(this.b,"timeupdate",this.mB);this.g.N(this.b,"volumechange",this.nB);this.g.N(this.b,"error",this.Qq);this.g.N(this.b,sA||oM()&&(!oM()||!pM($Q,8))?"loadeddata":"canplay",this.DD);this.C=
new PQ;this.g.N(this.C,"click",this.iB);this.C.ib(this.b);this.D=new de(1E3);this.g.N(this.D,"tick",this.kB);this.D.start()};
h.Lb=function(){null!=this.C&&(this.C.Lb(),this.C=null);null!=this.D&&this.D.dispose();null!=this.g&&(this.g.dispose(),this.g=null);ZQ(this)};
h.iE=function(a){this.dispatchEvent(a.type)};
h.vC=function(){var a;if(a=rz)a=sc,a=!(a&&(Na(a,"SMART-TV")||Na(a,"SmartTV")));a&&!this.O&&(this.Jf(.001),this.O=!0)};
h.DD=function(){this.J||(this.J=!0,this.dispatchEvent("loaded"))};
h.sE=function(){this.dispatchEvent("play");oM()||sA||aR(this)};
h.mB=function(){if(!this.A&&(oM()||sA)){if(0>=this.getCurrentTime())return;if(sA&&this.pe()&&1==this.td()){this.Qq();return}aR(this)}if(oM()||vM()){if(1.5<this.getCurrentTime()-this.o){this.F=!0;this.Jf(this.o);return}this.F=!1;this.getCurrentTime()>this.o&&(this.o=this.getCurrentTime())}var a=this.R;a.b[a.g]=this.b.currentTime;a.g=(a.g+1)%a.o;this.dispatchEvent("timeUpdate")};
h.nB=function(){this.dispatchEvent("volumeChange")};
h.lB=function(){var a;this.A&&oM()&&!this.M&&2>bR(this)-this.b.currentTime?(this.B=new de(250),this.g.N(this.B,"tick",this.rC),this.B.start(),a=!0):a=!1;a||this.dispatchEvent("pause")};
h.jB=function(){var a=SL(QL(),136961002),b=!0;if(oM()||vM()||a&&JA)b=this.o>=this.b.duration-1.5;!this.F&&b&&this.dispatchEvent("end")};
h.$l=function(){this.dispatchEvent("beginFullscreen")};
h.Rq=function(){this.dispatchEvent("endFullscreen")};
h.Qq=function(){YQ(this);this.dispatchEvent("error")};
h.iB=function(){this.dispatchEvent("click")};
h.kB=function(){var a=this.ud(),b=this.Hf();if(a.width!=this.K.width||a.height!=this.K.height)!this.H&&b?this.$l():this.H&&!b&&this.Rq(),this.K=a,this.H=b};
h.Ry=function(){if(!this.A){try{LM(IM.getInstance(),16)}catch(a){}ZQ(this);this.dispatchEvent("mediaLoadTimeout")}};
h.rC=function(){if(this.pe()||!this.Ve())Nb(this.B);else{var a=this.b.duration-this.b.currentTime,b=bR(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Nb(this.B),this.play())}};A(dR,H);cR.prototype.start=function(a){return this.b[a].startTime};
cR.prototype.end=function(a){return this.b[a].endTime};
h=dR.prototype;h.readyState=0;h.seeking=!1;h.currentTime=0;h.duration=window.NaN;h.paused=!0;h.ended=!1;h.autoplay=!1;h.controls=!1;h.volume=1;h.muted=!1;h.src="";h.currentSrc="";h.rB=1;h.playbackRate=0;h.xe=null;h.oj=0;h.TF=4;h.hh=null;h.Pj=null;
h.play=function(){this.ended&&(this.currentTime=0,this.dispatchEvent("timeupdate"));this.paused&&(this.paused=!1,this.dispatchEvent("play"),this.readyState=this.TF,2>=this.readyState?this.dispatchEvent("waiting"):this.dispatchEvent("playing"));if(null===this.xe||this.xe.isDisposed())this.xe=new de(10),this.xe.N("tick",y(this.Xt,this));this.oj=D();this.xe.start();this.seeking=this.autoplay=!1};
h.pause=function(){this.autoplay=!1;this.paused||(this.xe.stop(),this.paused=!0,this.dispatchEvent("timeupdate"),this.dispatchEvent("pause"))};
h.load=function(){this.readyState=0;this.paused=!0;this.seeking=!1;this.dispatchEvent("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.buffered;a.b.push(new Hga(this.duration));a.length=a.b.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.rB};
h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.seeking=!0;this.dispatchEvent("seeking");this.seeking=!1;this.currentTime=c;this.dispatchEvent("seeked");this.Xt();break;case "duration":this.duration=Number(b);this.dispatchEvent("durationchange");break;case "volume":this.volume=Number(b),this.dispatchEvent("volumechange")}};
h.Xt=function(){var a=D()-this.oj,b=this.currentTime+a/1E3;this.oj+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.dispatchEvent("timeupdate");this.currentTime==this.duration&&(this.ended=this.paused=!0,this.xe.stop(),this.dispatchEvent("ended"))};
h.T=function(){this.xe&&this.xe.dispose();this.b.dispose()};
h.yF=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.Pj&&(this.Pj.innerText=b);c&&this.hh&&(this.hh.style.backgroundColor=c)};zf&&zc(8);var iR={},GR={},HR={},jR={};eR.prototype.ie=null;eR.prototype.gc=function(){return this.content};
eR.prototype.toString=function(){return this.content};
A(fR,eR);A(gR,eR);var Iga={};A(mR,eR);mR.prototype.Nd=iR;A(oR,eR);oR.prototype.Nd={};oR.prototype.ie=1;A(pR,eR);pR.prototype.Nd=GR;pR.prototype.ie=1;A(qR,eR);qR.prototype.Nd=HR;qR.prototype.ie=1;A(rR,eR);rR.prototype.Nd={};rR.prototype.ie=1;A(sR,gR);sR.prototype.Nd={};sR.prototype.ie=1;A(tR,fR);tR.prototype.Nd=jR;var nR=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.ie=d);return c}}(mR);
uR(oR);uR(pR);uR(qR);var Rga=uR(rR);uR(sR);var vR={},wR={},VR=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.ie=d);return c}}(mR),ER=/['()]/g,NR={},Sga={"\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;"},Tga={"\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"},Lga=/[\x00\x22\x27\x3c\x3e]/g,Nga=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Mga=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,JR=/[\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,
Pga=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Qga=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,zR=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,AR=/</g;xR("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">'+Y(a.Dg)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.Dg)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
Y(OR(a.Kd))+">"+Y(a.Kd)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(OR(a.fe))+">"+Y(a.fe)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
xR("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">'+Y(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Y(a.lR)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.mR)+'</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"'+
Y(OR(a.Kd))+">"+Y(a.Kd)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(OR(a.fe))+">"+Y(a.fe)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
xR("b","",function(a){a=a||{};return""+ta("You can skip this ad in {$xSeconds}",{xSeconds:Y(a.Vg)})});
xR("b","redesign2014q4",function(a){a=a||{};return""+ta("You can skip to video in {$xSeconds}",{xSeconds:Y(a.Vg)})});A(WR,F);WR.prototype.initialize=function(){lM()&&this.g.load()};
WR.prototype.T=function(){Lf(this.b);WR.L.T.call(this)};
WR.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};A(ZR,WQ);var Qsa=["video/mp4","video/webm"],Rsa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},YR=[],XR=!1;h=ZR.prototype;h.Um=function(a,b,c){var d=fb(a,function(a){return null!==SQ(a.g)});
if(null!==d)return d;a=ne(a,function(a){a=C(a.b);return this.g?this.b.canPlayType(a):kb(Qsa,a)},this);
lb(c)||(d=OQ(a,b,c));return null!=d?d:OQ(a,b,[])};
h.Ih=function(a){this.o=a};
h.load=function(a,b){null!==a&&(this.aa=a,this.g?$R(this,a,b):(this.J=a,this.X=b))};
h.getVideoUrl=function(){return this.aa};
h.setVolume=function(a){this.ca?this.dispatchEvent("volumeChange"):this.g?(a=df(100*a,0,100),this.b.setVolume(a),this.D=-1,this.dispatchEvent("volumeChange")):this.D=a};
h.Td=function(){return this.g?this.b.getVolume()/100:this.D};
h.play=function(){if(!B(C(this.aa))){if(!this.A){bS(this);var a=15E3;null!=this.o&&0<this.o.b&&(a=this.o.b);this.qa=fe(this.lE,a,this)}this.g?(this.ba=!1,!this.A&&this.o&&this.o.g?this.b.loadVideoByPlayerVars(this.ha):this.b.playVideo()):this.ba=!0}};
h.pause=function(){this.g&&this.A&&this.b.pauseVideo()};
h.Ve=function(){return this.g?2==this.b.getPlayerState(this.B):!1};
h.If=function(){return this.g?this.b.isMuted():0==this.Td()};
h.lj=function(){};
h.Hf=function(){var a=U.g?U.B:window.document.getElementById(this.M);return a?KQ(a):!1};
h.gg=function(a){return this.g?this.b.getCurrentTime(this.B)>=a:!1};
h.Jf=function(a){this.g?this.b.seekTo(a,!1):this.H=a};
h.getCurrentTime=function(a){return this.g?this.b.getCurrentTime(a||this.B):-1};
h.Yl=function(){return this.g&&this.A?this.b.getVideoLoadedFraction(this.B)*this.b.getDuration(this.B):0};
h.td=function(){return this.g&&this.A?this.b.getDuration(this.B):-1};
h.getError=function(){return null};
h.Xi=function(){return Xb(g_)};
h.pe=function(){return this.g?0==this.b.getPlayerState(this.B):!1};
h.ud=function(){var a=U.g?U.B:window.document.getElementById(this.M);return a?new lf(a.offsetWidth,a.offsetHeight):new lf(0,0)};
h.Zl=function(){return!1};
h.Mq=function(){return 1==this.la};
h.Wa=function(){return this.g?1==this.b.getPlayerState(this.B):!1};
h.pB=function(){var a=this.ud(),b=this.Hf();if(a.width!=this.da.width||a.height!=this.da.height)!this.ga&&b?this.dispatchEvent("beginFullscreen"):this.ga&&!b&&this.dispatchEvent("endFullscreen"),this.da=a,this.ga=b};
h.ib=function(){this.ea=y(this.es,this);this.K=y(this.bm,this);this.ia=y(this.gs,this);this.na=y(this.UE,this);this.ca&&(this.b.addEventListener("onAdStateChange",this.K),this.b.addEventListener("onReady",this.ea),this.b.addEventListener("onStateChange",this.K),this.b.addEventListener("onVolumeChange",this.ia),this.b.addEventListener("onSharePanelOpened",this.na));this.R=new de(1E3);this.O.N(this.R,"tick",this.pB);this.R.start()};
h.Lb=function(){this.ca&&(this.b.removeEventListener("onAdStateChange",this.K),this.b.removeEventListener("onReady",this.ea),this.b.removeEventListener("onStateChange",this.K),this.b.removeEventListener("onVolumeChange",this.ia),this.b.removeEventListener("onSharePanelOpened",this.na));null!=this.R&&this.R.dispose()};
h.$y=function(){var a=hc(Rsa);SL(QL(),21592053)&&(a.ps="gvn-experiment");var b=this.M,a={playerVars:a,events:{cardstatechange:y(this.oB,this),onError:y(this.qB,this),onReady:y(this.es,this),onAdStateChange:y(this.bm,this),onStateChange:y(this.bm,this),onVolumeChange:y(this.gs,this)}},c=q("YT");this.b=null!=c&&null!=c.Player?new c.Player(b,a):null};
h.qB=function(){this.dispatchEvent("error")};
h.es=function(){this.g=!0;this.G&&this.Xl(this.G.videoId,this.G.uf,this.G.Rg);-1!=this.D&&(this.setVolume(this.D),this.D=-1);null!=this.J&&($R(this,this.J,this.X),this.X=this.J=null);-1!=this.H&&(this.Jf(this.H),this.H=-1);this.ba&&this.play()};
h.oB=function(a){this.la=a.data;this.dispatchEvent("cardsStateChange")};
h.bm=function(a){switch(a.data){case 0:this.A?this.dispatchEvent("end"):this.dispatchEvent("error");break;case 1:this.A||(bS(this),this.A=!0,this.F=0,this.dispatchEvent("start"));this.dispatchEvent("play");aS(this);this.C=new de(100);this.O.N(this.C,"tick",this.Pr);this.C.start();break;case 2:this.dispatchEvent("pause"),aS(this)}};
h.gs=function(){this.dispatchEvent("volumeChange")};
h.UE=function(){this.dispatchEvent("shareClicked")};
h.Pr=function(){if(rA||vM()){if(1.5<this.getCurrentTime()-this.F){this.g&&this.b.seekTo(this.F,!0);return}this.getCurrentTime()>this.F&&(this.F=this.getCurrentTime())}this.dispatchEvent("timeUpdate")};
h.lE=function(){this.dispatchEvent("mediaLoadTimeout")};
h.Xl=function(a,b,c){if(b||c)this.g?this.b.addInfoCardXml(a,b,c):this.G={videoId:a,uf:b,Rg:c}};
h.lg=function(){if(!this.g)return null;var a=this.b.getVideoData();return a?a.cpn:null};
h.Ym=function(a){this.g&&SQ(this.getVideoUrl())&&this.b.sendVideoStatsEngageEvent(a)};
h.Oq=function(a){this.g&&this.b.setCardsVisible(a,!1,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.Pq=function(){this.g&&this.b.showControls()};
h.Nq=function(){this.g&&this.b.hideControls()};
h.T=function(){aS(this);bS(this);this.Lb();this.g=!1;this.O.dispose();this.H=-1;this.X=null;this.ba=!1;this.J=null;this.D=-1;this.ea=this.b=this.o=null;this.A=!1;this.aa="";ZR.L.T.call(this)};
g.ca("onYouTubeIframeAPIReady",function(){XR=!0;E(YR,function(a){a()});
nb(YR)},window);A(cS,H);cS.prototype.b=!1;cS.prototype.connect=function(){for(this.b=!0;!lb(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};
cS.prototype.send=function(a,b,c){this.b?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};
cS.prototype.sendMessage=v;A(dS,mc);dS.prototype.getOrigin=function(){return this.o};
dS.prototype.toString=function(){return""};A(eS,cS);eS.prototype.sendMessage=function(a,b,c){null!=this.zd&&null!=this.zd.postMessage&&this.zd.postMessage(dha(this,a,b,c),"*");null!=this.zd&&null==this.zd.postMessage&&LM(IM.getInstance(),11)};
eS.prototype.T=function(){this.A.dispose();eS.L.T.call(this)};
eS.prototype.receive=function(a){a=a.b;var b=fS(a.data);if(gS(this,b)){if(null==this.zd)this.zd=a.source,this.b||this.connect();else if(this.zd!=a.source)return;gS(this,b)&&this.dispatchEvent(new dS(b.name,b.type,b.data||{},b.sid,a.origin))}};A(hS,H);hS.prototype.send=function(a){var b=a.b;this.b.hasOwnProperty(b)&&this.b[b].send(a.type,a.Jc,a.Xd)};
hS.prototype.T=function(){this.g.dispose();for(var a in this.b)Nb(this.b[a]);hS.L.T.call(this)};
hS.prototype.B=function(a){a=a.b;var b=fS(a.data);if(null!=b){var c=b.channel;if(this.o&&!this.b.hasOwnProperty(c)){var d=b.sid;jS(this,c,d,a.source);this.dispatchEvent(new iS(b.name,b.type,b.data||{},d,a.origin,c))}}};
A(iS,dS);A(lS,Hm);
lS.prototype.C=function(a){var b=a.getOrigin(),c=Lg("//imasdk.googleapis.com"),b=Lg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)jS(this.b,a.b,a.Aq,Bf().parent),null!=this.b&&this.b.send(a);else if(c=a.Xd,null!=c&&p(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.Jc,"isGptPresent"==c?d=kS():"isConsolePresent"==c&&(d=null!=mS());else if(kS())if("pubads"==b||"companionAds"==b){d=a.Jc;var e,f=Bf().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.Jc,e=mS(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){e=a.Jc;d=Bf();if(kb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{f=e.apply(d,c)}catch(k){}d=f}p(d)&&(a.Xd.returnValue=d,this.o.send(a))}};
lS.prototype.B=function(a){this.o.send(a)};nS.prototype.isPharma=function(){return this.H};var oS={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Oa(" ",Number(c)-a.length):Oa(" ",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+Oa(" ",a):f+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return oS.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
oS.i=oS.d;oS.u=oS.d;A(rS,H);h=rS.prototype;h.T=function(){this.g.dispose();null!==this.A&&(this.A.dispose(),this.A=null);Ag(this.F.tc(!1),function(a){a.dispose()});
this.F.clear();Lf(this.o);rS.L.T.call(this)};
h.Pz=function(a){var b=a.Xd,c=Vs(this.o),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.Jc,!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(!rz||oM()||0==window.document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
h.jA=function(a){var b=a.Xd,c=Vs(this.o),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.Jc,!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,sS(this,b.touches),sS(this,b.targetTouches),sS(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
h.gA=function(a){if(null!=this.b){var b=a.Xd;switch(a.Jc){case "startTracking":this.b.ib();break;case "stopTracking":this.b.Lb();break;case "exitFullscreen":this.b.lj();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.Jf(b.currentTime);break;case "setPlaybackOptions":this.b.Ih(tS(b));break;case "setVolume":this.b.setVolume(b.volume)}}};
h.Zz=function(a){if(null!=this.B){var b=a.Xd;switch(a.Jc){case "startTracking":this.B.ib();break;case "stopTracking":this.B.Lb();break;case "setPlaybackOptions":this.B.Ih(tS(b));break;case "load":this.B.load(b.videoUrl,b.mimeType)}}};
h.Zd=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.b.pe();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.b.getCurrentTime();b.duration=
this.b.td();break;case "volumeChange":a="volumeChange";b.volume=this.b.Td();break;case "loadedmetadata":a=a.type;b.duration=this.b.td();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.D.send("videoDisplay",a,b)};
h.Lz=function(a){switch(a.Jc){case "showVideo":null!=this.A?this.A.Lb():(this.A=new PQ,this.g.N(this.A,"click",this.vF));this.A.ib(vS(this.C));a=this.C;null!=a.b&&a.b.show();break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null);a=this.C;null!=a.b&&(a=a.b.b,null!=a&&(a.style.display="none"));break;case "getPreloadDisplay":null!=this.b&&null==this.B&&(this.B=this.C.B);break;case "swapVideoDisplays":if(null!=this.b&&null!=this.B){this.g.sa(this.b,Xb(pS),this.Zd);this.g.sa(this.b,qS,this.Zd);
a=this.C;if(a.b&&a.g&&a.A&&a.B){var b=a.g;a.g=a.B;a.B=b;b=a.b;a.b=a.A;a.A=b;null!=a.G&&(b=a.G,a=a.g,null!=b.b&&(b.g.sa(b.b,Xb(pS),b.Zd),b.g.sa(b.b,qS,b.Zd)),b.b=a,b.g.N(b.b,Xb(pS),b.Zd),b.g.N(b.b,qS,b.Zd))}this.b=this.C.g;this.B=this.C.B;this.g.N(this.b,Xb(pS),this.Zd);this.g.N(this.b,qS,this.Zd)}}};
h.vF=function(){this.D.send("displayContainer","videoClick")};
h.uz=function(){Ag(this.F.tc(!1),function(a){a.zd=Uf(this.o);a.connect()},this);
this.G=!0};uS.prototype.initialize=function(){null!=this.b&&this.b.initialize();null!=this.A&&this.A.initialize()};
uS.prototype.destroy=function(){Nb(this.b);Nb(this.A);Nb(this.G);Nb(this.g);Nb(this.B);Lf(this.o)};
uS.prototype.setSize=function(a,b){var c=this.o;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.G&&(c=this.G,c.o.width=-1==a?"100%":a,c.o.height=-1==b?"100%":b)};var wS="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");A(yS,H);yS.prototype.start=v;yS.prototype.stop=v;A(zS,yS);zS.prototype.start=function(){this.b.start()};
zS.prototype.stop=function(){this.b.stop()};
zS.prototype.T=function(){zS.L.T.call(this);this.o.dispose();this.b.dispose()};
zS.prototype.A=function(){if("currentTime"in this.g&&!(0,window.isNaN)(this.g.currentTime)){var a=this.currentTime;this.currentTime=this.g.currentTime;a!=this.currentTime&&this.dispatchEvent(new mc("currentTimeUpdate"))}else this.dispatchEvent(new mc("contentWrapperError")),this.stop()};A(BS,H);BS.prototype.g=null;BS.prototype.T=function(){delete this.b;CS(this);fd(this.g);BS.L.T.call(this)};
BS.prototype.B=function(){AS(this)&&(CS(this),fd(this.g),this.g=null,this.A=!0,this.dispatchEvent("ifload"))};A(DS,H);h=DS.prototype;h.initialize=v;h.Tl=v;h.Dq=v;h.Cq=v;h.Eq=v;h.Yp=v;h.hq=v;h.Bq=v;h.mp=v;h.Wm=v;h.Jt=v;h.Of=v;A(ES,mc);ES.prototype.getError=function(){return this.o};FS.prototype.gc=function(){return this.D};
FS.prototype.hc=function(){return this.g};
FS.prototype.clone=function(){var a=new FS(this.G,this.F);if(null!=this.g)GS(a,this.hc(),this.B,this.o,this.C,this.b);else{var b=this.gc(),c=this.B,d=this.o,e=this.A,f=this.C,k=this.b;a.D=b;a.g=null;a.B=c;a.o=d;a.A=e;a.C=f||[];a.b=k||[]}return a};A(IS,DS);da(IS);h=IS.prototype;h.T=function(){this.g&&this.g.dispose();IS.L.T.call(this)};
h.initialize=function(){if(!this.A){var a;var b=cg(new of);try{q("googletag"),JS([b,b.top]),a=!0}catch(c){a=!1}a?US(this):(this.A=!0,this.o="not_available")}};
h.Cq=function(){};
h.Tl=function(){return this.A?Ki(this.F,function(a){return a.clone()}):[]};
h.Yp=function(){return this.A&&"retrieved"==this.o?this.D:void 0};
h.Dq=function(){var a=this.Tl();return null!=a?Ki(a,function(a){return a.F}):void 0};
h.Eq=function(){};
h.hq=function(){};
h.Bq=function(a){try{this.b.googleSetCompanionAdContents(Ki(a,this.Cy,this)),this.Of()}catch(b){this.dispatchEvent(new ES("companion_display_error",b))}};
h.mp=function(a,b){var c;if(c=0!=a.length)c=DV(b),c=AV(c[0])&&1<c.length?c[1]:c[0],c="GDFP"==c;if(c){c=[];for(var d=0;d<a.length;d++)c.push(a[d].G);var d=b.o,e=LS(this);if(null!==e){KS(e,d,!1);try{e.notifyUnfilledSlots(c)}catch(f){}}}};
h.Wm=function(){};
h.ls=function(){0<this.B&&D()>=this.B?(this.A=!0,QS(this),TS(this)):US(this)};
h.tG=function(a){var b=Ki(a.adSizes,function(a){return new lf(a.adWidth,a.adHeight)});
return new FS(a.slotId,b)};
h.Cy=function(a){var b={};b.slotId=a.G;b.adContent=a.gc();b.adWidth=a.B;b.adHeight=a.o;b.friendlyIframeRendering=a.A;null==a.g&&lb(a.b)||(b.onAdContentSet=y(this.MC,this,a));return b};
h.MC=function(a,b){if(null!=a.g){var c=Qf(b);c||(c=Gf(window.document,"div"),b.appendChild(c));var d=a.hc();c.appendChild(d);VS(this,a,c)}else c=a.A?b.querySelector("iframe"):(c=Qf(b))?Qf(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&gha(this,c,a)};
h.LC=function(a){this.dispatchEvent(new ES("companion_click",null,a))};
h.Jt=function(a){this.impressionUrls=a};
h.Of=function(a){cM(this.impressionUrls,a)};A(WS,mc);WS.prototype.getError=function(){return this.b};A(XS,mc);YS.prototype.videoCount=0;$S.prototype.Fb=function(){return this.o};
A(aT,$S);ZS.prototype.isEmpty=function(){return this.b.isEmpty()};h=kT.prototype;h.km=function(){return null};
h.jm=function(){return null};
h.im=function(){return null};
h.kb=function(){return this.G};
h.Ti=function(){for(var a=[this],b=this.G.g;b;){var c=nT(this,b)||nT(this,b,!0);null!=c&&a.push(c);b=b.g}return a};oT.prototype.cb=function(){return this.C};
oT.prototype.getHeight=function(){return this.B};A(pT,kT);h=pT.prototype;h.Ud=function(){return this.o};
h.yl=function(a){var b="";Wh(this.C,function(c){var d=c.g;return!B(C(a))&&a!=c.b||null==d||B(C(d))?!1:(b=d,!0)},this);
return b};
h.km=function(){return rT(this,"javascript")};
h.jm=function(){return rT(this,"x-shockwave-flash")};
h.im=function(){return null!=this.K?this.K.o:1==this.C.length?this.C[0].o:null};A(sT,F);sT.prototype.D=function(){this.A=D()};
sT.prototype.G=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.g&1&&c.push("nm="+this.B);this.g&2&&c.push("nb="+this.C.get(b));if(this.g&8){var d=Vs(this.o);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.g&16&&null!=this.A&&c.push("clkt="+(D()-this.A));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
sT.prototype.F=function(){this.B++};
sT.prototype.T=function(){sT.L.T.call(this);this.b.dispose()};var L$=uT("f"),eX=uT("i"),M$=uT("b"),YW=uT("e"),ZW=uT("s");var oha=[0,2,1],DT=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){DT=a},!0);
window.mb=function(a){if(a){var b=ET();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=CT(a.href,"mb",b,void 0)))}};A(FT,F);FT.prototype.D=function(){this.C=D()};
FT.prototype.G=function(a,b){var c=a.element;1==(this.g&1)&&(0==this.A&&this.A++,this.b.nm=this.A);2==(this.g&2)&&(this.b.nb=a.Sy);if(8==(this.g&8)){var d=Vs(this.B);this.b.nx=Math.round(b.clientX-d.x);this.b.ny=Math.round(b.clientY-d.y)}16==(this.g&16)&&null!=this.C&&(d=D()-this.C,this.b.clkt=d);512==(this.g&512)&&(d=ET())&&(this.b.mb=d);"A"==c.tagName.toUpperCase()&&nf(c,qha(this,c.href))};
FT.prototype.F=function(){this.A++};var rha=zf?'javascript:""':"about:blank";A(HT,kT);h=HT.prototype;h.hc=v;h.gc=function(){return Wf(this.hc())};
h.xh=function(){return!1};
h.pm=function(){return this.xh()?Wf(this.hc(!0)):""};
h.zc=function(){return this.jb};
h.wd=function(){return this.na};
h.cb=function(){return this.wd().width};
h.getHeight=function(){return this.wd().height};
h.km=function(){return"VPAID"==this.H?this.B:null};
h.jm=function(){return"VPAID"==this.H&&"Flash"==this.ba?this.B:null};
h.im=function(){return this.H};
h.Ud=function(){return this.X};A(IT,HT);h=IT.prototype;h.Zf=function(a){null==this.g||B(C(this.Ud()))||(this.g.N(a,"click",this.O),this.R.push(a))};
h.hc=function(a){a?(null==this.da&&(this.da=this.Md(a),If(this.da,NT(this))),a=this.da):(null==this.o&&(this.o=this.Md(),If(this.o,NT(this))),a=this.o);null!=this.g&&this.g.N(a,"creativeview",this.Ma);return a};
h.Md=v;h.sl=function(){QL().b.Z("cleanup_text_overlay_spam_signals");return 2};
h.Ti=function(){for(var a=[this],b=this.kb().g;b;){var c=this.A?nT(this,b)||nT(this,b,!0):OT(this,b)||OT(this,b,!0);null!=c&&a.push(c);b=b.g}return a};A(PT,IT);h=PT.prototype;h.wd=function(){return new lf(this.cb(),this.getHeight())};
h.getHeight=function(){return 63};
h.cb=function(){return null!=this.D?et(this.D).width:0};
h.sl=function(a){return QL().b.Z("cleanup_text_overlay_spam_signals")?le(a,"text-image-link")?9:le(a,"text-ad-channel")?1:0:le(a,"text-image")?9:le(a,"text-ad-channel")?1:0};
h.Md=function(){var a=this.kb(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.o,e="rtl";null!=d&&(e=v0.test(se(d,void 0))?"rtl":"ltr");d={title:d,text:c.A+" "+c.B,dir:e,Kb:this.Ud()};if(c=c.g)d.image=XL(c),a=fb(a.B,function(a){return a instanceof pT}),null!=a&&(d.duration=DQ(a.aa));
b.g&&(d.gu=b.g);this.D=hR(jha,d);E(this.D.getElementsByTagName("a"),this.Zf,this);this.D.id=this.wa;this.D.style.height=this.getHeight()+"px";return this.D};var uha=[202,1009],Aha=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],zha={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"]};gU.prototype.g=function(){return null!=this.b&&this.b.g()?!0:0<this.ads.length&&this.o<this.ads.length-1};
gU.prototype.J=function(a,b){return this.D?0<a.length?a:b:vb(b,0,1)};
gU.prototype.B=function(a,b,c){var d;if(!(d=null!=a.b)){var e=this.F;d=e.sd||0;e=e.rd||0;kV(a,RV)&&!a.X?VV(a,"nonlinear")?eU(a,d,e):fU(a):VV(a,"linear")?fU(a):VV(a,"nonlinear")&&eU(a,d,e);d=null!=a.b}d?(this.A++,b(a)):(b=lb(a.B)?fM(YX):a.ob()?fM(bZ):fM(Msa),d=VT(b,a),FQ(hia(a),"rm")?b.o=!1:cM(a.Ma,d),c(b))};
gU.prototype.G=function(a,b,c){var d=this.F.clone();d.g="";d.b=a.Oa;d.bd=xS(d.b,d.ej);mU(this,a,d,b,c)};A(rU,hT);A(sU,gU);sU.prototype.g=function(){if(null!=this.b&&this.b.g())return!0;var a=0==this.A||this.A==this.O;return 0<this.ads.length&&this.o<this.ads.length-1&&a};
sU.prototype.J=function(a,b){return b};
sU.prototype.B=function(a,b,c){var d;d=null==this.b?EV(a):EV(this.ads[this.o]);this.M.A=d;sU.L.B.call(this,a,b,c)};
sU.prototype.G=function(a,b,c){this.M.A=-1;sU.L.G.call(this,a,b,c)};A(wU,M);wU.prototype.toString=function(){return yU(this,wU.L.toString.call(this))};
wU.prototype.J=function(){return""};
wU.prototype.F=function(){return""};
wU.prototype.clone=function(){return new wU(this.toString())};var Yha=["ai","sigh"],Zha=["xai","sig"];A(UU,hT);VU.prototype.parse=function(a){a=Qf(a);var b=IU(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw fM(Ksa);a=a.getAttribute("offset");a=SU(a);if("skippable"==c&&null==a)throw fM(Jsa);return new UU(c,a)};A(WU,hT);A(XU,hT);h=YU.prototype;h.gc=function(){return this.b.gc()};
h.hc=function(){return this.b.hc()};
h.zc=function(){return this.b.zc()};
h.cb=function(){return this.b.cb()};
h.getHeight=function(){return this.b.getHeight()};
h.Fq=function(){return!B(C(this.b.B))};
h.xl=function(){var a=this.b.kb().b;return null!=a?a.b:window.NaN};
h.Ul=function(){return this.b.wd()};
h.kb=function(){return this.b.kb()};A($U,IT);var aia=new lf(300,250);$U.prototype.za=function(){this.D=Math.max(0,this.D-1);fV(this)};
$U.prototype.Ca=function(){this.D=Math.min(this.ia-3,this.D+1);fV(this)};
$U.prototype.Md=function(){return this.ga};A(gV,IT);var cia=new lf(300,250);gV.prototype.Md=function(){return this.D};h=iV.prototype;h.zc=function(){if(null!=bW(this))return"application/javascript";if(null!=cW(this))return"application/x-shockwave-flash";var a=this.b,b="";if(null===a)return b;if(a instanceof pT)a=a.K,null===a||(b=C(a.b));else if(a instanceof IT)switch(a.ea){case "IFrame":case "Html":case "Static":b=C(a.ba)}return b};
h.getExtension=function(a){return this.D.get(a)};
h.ob=function(){return this.ha?this.ia:XV(this)?!0:kV(this,RV)?"video"==this.Ka:VV(this,"linear")};
h.isSkippable=function(){return null!=ZV(this)};
h.BB=function(){return this.X};
h.cb=function(){return this.ob()?0:this.ca.width};
h.getHeight=function(){return this.ob()?0:this.ca.height};
h.toString=function(){return"Ad: "+this.la};A(gW,H);gW.prototype.vh=v;gW.prototype.ip=function(){return!0};
gW.prototype.zf=function(){return null};A(iW,gW);h=iW.prototype;h.T=function(){this.destroy();iW.L.T.call(this)};
h.destroy=function(){null!=this.B&&this.B.dispose();this.A=null;E(this.o,function(a){HS(a)},this);
this.g=null};
h.vh=function(a){Nb(this.g);this.g=new H;this.A=a;this.C=!0;this.D?kW(this):(this.C=mW(lW(a),[]),this.C||(this.g=this.A=null));return this.g};
h.ip=function(){return this.C};
h.RE=function(){null!=this.F&&(this.F.stop(),this.F.dispose(),this.F=null);if(null!=this.b){var a=this.b.Tl();null!=a&&(this.o=a)}this.D=!0;null!=this.A&&kW(this);this.dispatchEvent(new mc("initialized"))};
h.NC=function(a){jW(this,a.getError())};
h.JC=function(a){if(null!=a.b){var b=a.b;"companion_slot_init"==a.type?(cM(b.C),sd(function(){null!=this.g&&this.g.dispatchEvent(new XS("companion_impression"))},this)):"companion_click"==a.type&&(cM(b.b),null!=this.g&&this.g.dispatchEvent(new XS("companion_click")))}};
h.zf=function(){return this.b};h=nW.prototype;h.rl=function(){return vS(this.b)};
h.Zi=function(){return this.b.C};
h.Qd=function(){return this.b.C};
h.gj=function(){var a=this.b.g;return null!=a?a:new ZR};
h.uh=function(){var a=this.b;null!=a.b&&a.b.show()};
h.ad=function(){};
h.fl=function(){return null!=this.b.F};
h.hj=function(){return this.b.D};
h.Sl=function(){return!1};
h.ij=function(){return this.b.H};
h.setSize=function(a,b){this.b.setSize(a,b)};
h.Gf=function(){};
h.Rl=function(){return null};
h.yq=function(){};A(oW,mc);A(qW,mc);da(rW);var yia=/iu\=\/(\d+)\//;rW.prototype.start=function(a){this.g&&this.o.set(a,D())};
rW.prototype.end=function(a,b){if(this.g&&Eg(this.o,a)){var c=D()-this.o.get(a),d=sW(this,a,c,b);ZL(d);this.o.remove(a);this.A+=c}};
rW.prototype.sendMessage=function(a,b,c){this.g&&(a=sW(this,a,b,c),ZL(a))};tW.prototype.start=function(a,b){this.B=a;this.D=b;Bia(this);this.C.D?this.G():Nm(this.o,this.C,"initialized",this.G,this)};
tW.prototype.G=function(){var a=this.C.zf(),b=a.Yp(),c=a.hq(),d=a.Eq(),e=a.Cq(),a=a.Dq();null!=b&&(this.b.B=b);null!=c&&(this.b.b=c);null==d||B(d)||(this.b.F=d);null==e||B(e)||(this.b.D=e);null!=a&&(this.b.G=a);Aia(this)};A(vW,H);var wW=null;vW.prototype.destroy=function(){this.G.sa(this.g,"activityMonitor",this.J);this.g=null};
vW.prototype.J=function(a){var b=a.Xd;switch(a.Jc){case "appStateChanged":mga(mQ.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":AW(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":yW(b.queryId,b.viewabilityString);break;case "pageSignals":this.H=b.pageSignals;break;case "viewableImpression":zW(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;xW().A=b;xW().F=D();break;case "viewability":a=b.eventId;window.clearTimeout(a);
var c=this.b.get(a);c&&(this.b.remove(a),c(b.viewabilityData));break;case "viewabilityMeasurement":mQ.getInstance();gO.getInstance();break;case "engagement":a=b.eventId;window.clearTimeout(a);c=this.b.get(a);if(IM.getInstance().b){var d=-1;this.C&&(d=D()-this.C);var e=!1;c||(e=!0);$b(b,"loggingId")&&LM(IM.getInstance(),43,{step:"receivedResponse",time:D(),timeout:e,logid:b.loggingId,timediff:d})}c&&(this.b.remove(a),c(b.engagementString))}};
g.ca("ima.bridge.getNativeViewability",function(a,b){xW();b({})},void 0);
g.ca("ima.bridge.getVideoMetadata",function(){var a=xW().D;return ka(a)?a():{}},void 0);
g.ca("ima.bridge.triggerViewEvent",zW,void 0);g.ca("ima.bridge.triggerMeasurableEvent",yW,void 0);g.ca("ima.bridge.triggerExternalActivityEvent",AW,void 0);BW.prototype.o=v;A(DW,Gia);A(GW,BW);GW.prototype.o=function(){return new CW(this.b,null,Jia(this))};A(KW,hT);LW.prototype.parse=function(a){if(null==a)return null;var b,c,d;E(Of(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 KW(b,c,d):null};A(NW,hT);NW.prototype.isPharma=function(){return this.D};OW.prototype.parse=function(a){var b;JU(a,"config",function(a){null!=b||(b=Mia(this,a))},this);
return b};PW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,n=!1;E(Of(a),function(a){switch(a.nodeName){case "AttributionText":c=IU(a);break;case "AttributionUrl":d=IU(a);break;case "ConversionUrl":f=IU(a);break;case "CustomTracking":null!=Of(a)&&(e=TU(a));break;case "is_pharma":a=HU(a,"bool");n=MU(C(a));break;case "CheckedEvents":a=Of(a);b=Ki(a,function(a){return HU(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":IU(a);break;case "VisibleUrl":k=IU(a);break;case "UI":l=(new OW).parse(a);break;case "ShowYouTubeAnnotations":var t=IU(a);m=MU(C(t),!1);case "QueryId":IU(a)}},this);
null!=l||(l=new MW);return new NW(c,d,f,0,k,l,m,0,n,e,b)};QW.prototype.parse=function(a){if(null==a)return null;var b;E(Of(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Of(a)&&(b=TU(a))}});
a=null;null!=b&&0<bT(b,"skip").length&&(a="Generic");return new WU(a,b)};RW.prototype.parse=function(a){if(null==a)return null;var b,c;E(Of(a),function(a){switch(a.nodeName){case "SkippableAdType":b=IU(a);break;case "CustomTracking":null!=Of(a)&&(c=TU(a))}});
return new WU(b,c)};SW.prototype.parse=function(a){if(null==a)return null;var b;E(Of(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Of(a)&&(b=TU(a))}},this);
return new hT(b)};var N$;A(TW,xT);var O$;A(KV,xT);var P$,Q$;A(LV,xT);var XW;A(OV,xT);var cX;A(UW,xT);var R$;A(VW,xT);var S$;A(WW,xT);var T$,U$;A(MV,xT);var V$,W$,X$,dX;A(NV,xT);var Y$;h=KV.prototype;h.Fb=function(){return yT(this,"type",0)};
h.$i=function(){return new MV(this.Pa.website_card)};
h.Af=function(){return new LV(this.Pa.placement)};
h.$j=function(){return BT(this,"action")};
h.Wg=function(a){return new OV(AT(this,"action",a))};
OV.prototype.Fb=function(){return yT(this,"type",0)};
OV.prototype.getId=function(){return zT(this,"id")};
OV.prototype.setTitle=function(a){this.Pa.title=a};
UW.prototype.Fb=function(){return yT(this,"type",0)};
MV.prototype.b=function(){return new NV(this.Pa.icon)};
MV.prototype.g=function(){return new NV(this.Pa.banner_image)};var hX;
hX={ad_card:{attribution_position:{POSITION_BOTTOM_RIGHT:3,POSITION_TOP_RIGHT:2,POSITION_BOTTOM_LEFT:0,POSITION_TOP_LEFT:1}},card:{type:{TYPE_WEBSITE:4,TYPE_APP:2,TYPE_NONE:0,TYPE_LOCATION:5,TYPE_VOTE:3,TYPE_PRODUCT:1},prominence:{PROMINENCE_HIGHLIGHT:1,PROMINENCE_FEATURE:2,PROMINENCE_NONE:0}},event:{type:{TYPE_DISMISS_ENDCAP:11,TYPE_IMPRESSION_ENDCAP:8,TYPE_COLLAPSE_ENDCAP:10,TYPE_IMPRESSION:1,TYPE_HEADLINE_CLICK:5,TYPE_ACTION:6,TYPE_ACTION_ENDCAP:9,TYPE_DISMISS:4,TYPE_NONE:0,TYPE_COLLAPSE:3,TYPE_IMPRESSION_GALLERY:7,
TYPE_EXPAND:2}},action:{type:{TYPE_RESPONSE:12,TYPE_HEADLINE:1,TYPE_VOTE:18,TYPE_LETTERMAN:14,TYPE_MERCH:9,TYPE_INTERNAL:13,TYPE_PLAYLIST:7,TYPE_RESULTS:11,TYPE_INLINE_APPLICATION_STORE:19,TYPE_HELPOUTS:15,TYPE_CHANNEL:2,TYPE_COLLAPSE:17,TYPE_NONE:0,TYPE_ATTRIBUTION:5,TYPE_IRDB:8,TYPE_FUNDRAISING:10,TYPE_EXTERNAL:16,TYPE_APPLICATION_STORE:4,TYPE_VIDEO:3,TYPE_SUBSCRIPTION:6}}};A(fX,hT);gX.prototype.parse=function(a){var b=Gs(a);if(B(C(b)))return null;var c;if(this.b){c=iX;if(!N$){var d={};N$={Yb:d};if(!O$){var e={};O$={Yb:e};e.type=YW;if(!P$){var f={};P$={Yb:f};f.major_version=eX;f.minor_version=eX}e.version=wT(P$);e.priority=eX;e.start_time_ms=uT("j");e.end_time_ms=uT("j");e.action=vT(bX());e.event=vT(aX());V$||(f={},V$={Yb:f},f.headline=ZW,f.description=ZW,f.attribution_icon_url=ZW,f.skippable_seconds=eX,f.attribution_position=YW);e.ad_card=wT(V$);if(!R$){f={};R$={Yb:f};f.headline=
ZW;f.image=wT($W());f.description=ZW;f.rating=L$;f.review_text=ZW;if(!S$){var k={};S$={Yb:k};k.merchant=ZW;k.price=ZW;k.shipping=ZW;k.shipping_tax=ZW;k.condition=ZW;k.unit_price=ZW;k.energy_label=ZW;k.description=ZW;k.rating=L$;k.review_text=ZW;k.action=vT(bX());k.event=vT(aX())}f.offer=vT(S$)}e.product_card=wT(R$);T$||(f={},T$={Yb:f},f.app_id=ZW,f.app_name=ZW,f.icon=wT($W()),f.price=ZW,f.rating_image=ZW,f.review_count=eX,f.app_store_logo=wT($W()),f.button_text=ZW,f.screenshots=vT($W()),f.rating=
L$,f.back_button_text=ZW,f.screenshots_text=ZW,f.cover_photo=wT($W()));e.app_card=wT(T$);U$||(f={},U$={Yb:f},f.headline=ZW,f.description=ZW,f.icon=wT($W()),f.banner_image=wT($W()));e.website_card=wT(U$);e.prominence=YW;W$||(f={},W$={Yb:f},f.call_to_action_text=ZW);e.social_card=wT(W$);X$||(f={},X$={Yb:f},f.vote_line_1=ZW,f.vote_line_2=ZW,f.confirm_line_1=ZW,f.confirm_line_2=ZW);e.vote_card=wT(X$);e.sponsored=M$;e.teaser_text=ZW;Q$||(f={},Q$={Yb:f},f.hide_in_drawer=M$,f.show_in_endcap=M$,f.show_in_companion=
M$,f.show_in_cta=M$,f.override_clickthrough=M$,f.show_in_promotion_shelf=M$);e.placement=wT(Q$);Y$||(f={},Y$={Yb:f},f.latitude_e6=eX,f.longitude_e6=eX,f.address=ZW,f.image=wT($W()),f.headline=ZW);e.location_card=wT(Y$)}d.card=vT(O$);d.event=vT(aX())}a=c(this,a,N$);a=c=new TW(a);d=new ZS;for(e=0;e<BT(a,"card");e++)if(f=new KV(AT(a,"card",e)),yT(f.Af(),"show_in_endcap",void 0))for(k=0;k<BT(f,"event");k++){var l=new UW(AT(f,"event",k)),m=null;switch(l.Fb()){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&&dT(d,m,jX(m,zT(l,"base_url")))}a=d}else a=Nia(this,a);return new fX(b,c,a)};A(kX,hT);kX.prototype.Od=function(){return this.g};lX.prototype.B=function(a){var b={};E(this.g,function(a){b[a]=[]});
var c=new RegExp("^"+this.o);E(Of(a),function(a){"config"==a.nodeName&&E(Of(a),function(a){"params"==a.nodeName&&E(Of(a),function(a){var d=this.o?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=IU(a));null!=a.getAttribute("learn_more")&&(e+="|");kb(this.g,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};A(nX,hT);A(pX,lX);pX.prototype.parse=function(a){if(null==a)return null;a=mX(this,a);var b=a.UI;return new nX(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
pX.prototype.A=function(a){var b=[],c=0;E(Of(a),function(a){if("SurveyOption"==a.nodeName){var d,f;E(Of(a),function(a){switch(a.nodeName){case "DisplayName":d=IU(a);break;case "URL":f=IU(a)}},this);
null!=d&&null!=f&&(b.push({label:d,url:f}),c++)}},this);
return b};A(qX,hT);rX.prototype.b={Wx:"Siub",Vx:"Scs",rw:"Bgub",qw:"Bgp"};rX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(Of(a),function(a){switch(a.nodeName){case this.b.Wx:b=IU(a);break;case this.b.Vx:c=IU(a);break;case this.b.rw:d=IU(a);break;case this.b.qw:e=IU(a)}},this);
return b&&c&&d&&e?new qX(b,c,d,e):null};A(sX,hT);tX.prototype.b={by:"TEMPLATE_PARAMETERS",ey:"TEMPLATE_URL"};tX.prototype.parse=function(a){if(null==a)return null;E(Of(a),function(a){switch(a.nodeName){case this.b.by:Oia(this,a)}},this);
return new sX};A(uX,hT);vX.prototype.b={kx:"Line1",lx:"Line2",mx:"Line3",hx:"ImageUrl"};vX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(Of(a),function(a){switch(a.nodeName){case this.b.kx:b=IU(a,!0);break;case this.b.lx:c=IU(a,!0);break;case this.b.mx:d=IU(a,!0);break;case this.b.hx:e=IU(a)}},this);
return new uX(b,c,d,e)};A(wX,hT);xX.prototype.parse=function(a){if(null==a)return null;var b;E(Of(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),B(C(a))||(b=a)}},this);
return new wX(b)};A(yX,hT);A(zX,lX);var Ssa=["menu","got_it","targeting_reason_header"],Tsa=[["generic_message_left","generic_message_hypertext","generic_message_right"]];zX.prototype.parse=function(a){if(null==a)return null;a=mX(this,a);var b=a.UI;if(!AX(b,Ssa))return null;var c,d=!0,e=!1;E(Tsa,function(a){Pia(b,a)&&(AX(b,a)?e=!0:d=!1)});
var f=b.targeting_reason;if(!d||!e||0==f.length)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new yX(b.menu,b.targeting_reason_header,b.targeting_reason,b.got_it,a.CustomTracking,c,b.control)};BX.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Ya(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new XU(a)};A(CX,hT);DX.prototype.parse=function(a){return null!=a?new CX:null};EX.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ya(a):window.NaN;return new rU(a)};A(FX,IT);FX.prototype.Md=function(){var a=this.im(),a=null!=a&&"clicktag"==a.toLowerCase(),a={url:XL(C(this.B)),width:this.cb(),height:this.getHeight(),Kb:this.Ud(),fg:this.tp||!a},b=U.b()&&FQ(this.F,"hideMaster")?jT:kha,a=hR(b,a);a.style.width=this.cb()+"px";a.style.height=this.getHeight()+"px";a.id=this.wa;E(a.getElementsByTagName("object"),this.Zf,this);E(a.getElementsByTagName("a"),this.Zf,this);return a};A(GX,IT);GX.prototype.Md=function(){var a=L("DIV");a.innerHTML=this.B;this.Zf(a);return MT(this,a)};A(HX,IT);HX.prototype.gc=function(){var a=HX.L.gc.call(this);this.A&&(a=a.replace('src=""','src="'+XL(C(this.B))+'"'));return a};
HX.prototype.pm=function(){var a=HX.L.pm.call(this);this.A&&(a=a.replace('src=""','src="'+XL(C(this.B))+'"'));return a};
HX.prototype.Md=function(a){var b="";this.A||(b=XL(C(this.B)));b={id:this.wa,url:b,Kb:this.Ud(),width:this.cb()+"px",height:this.getHeight()+"px"};a=U.b()&&FQ(this.F,"hideMaster")?jT:a?mha:lha;a=hR(a,b);E(a.getElementsByTagName("a"),this.Zf,this);return a};
HX.prototype.xh=function(){return!0};A(IX,IT);IX.prototype.Md=function(){var a=C(this.B);B(C(this.Ud()))||(a=new M(a),nh(a,"clickTAG",xa(this.Ud())),a=a.toString());var b=L("IFRAME",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.zc()&&(b.width=this.cb());b.setAttribute("src",XL(a));this.Zf(b);return MT(this,b)};LX.prototype.zc=function(){return null!=this.b?GT[this.b]||"Other":null};MX.prototype.hc=function(){return this.b};
MX.prototype.update=function(a,b){var c=null!=this.D?fT(this.D):0;this.g=0<=this.g?this.g:b;c<=a&&c+this.g>=a?Sia(this):R(this.b,!1)};A(NX,BW);
NX.prototype.b={hw:"Ad",vk:"AdParameters",jw:"AdSystem",kw:"AdTitle",cK:"Advertiser",ow:"AltText",uw:"ClickThrough",vw:"ClickTracking",ww:"Companion",xw:"CompanionAds",yw:"CompanionClickThrough",zw:"CompanionClickTracking",Bw:"Creative",LL:"CreativeExtensions",Cw:"Creatives",Gw:"CustomClick",Jw:"Description",yk:"Duration",ERROR:"Error",Rw:"Extension",Sw:"Extensions",mi:"HTMLResource",Xw:"Icon",Yw:"Icons",Zw:"IconClicks",$w:"IconClickThrough",ax:"IconClickTracking",bx:"IconViewTracking",oi:"IFrameResource",pi:"Impression",
VM:"InLine",LINEAR:"Linear",tx:"MediaFile",vx:"MediaFiles",Cx:"NonLinear",Dx:"NonLinearAds",Ex:"NonLinearClickThrough",Fx:"NonLinearClickTracking",RO:"Pricing",ri:"StaticResource",$x:"Survey",iQ:"Tracking",Ck:"TrackingEvents",yQ:"VAST",iy:"VASTAdTagURI",jy:"VideoClicks",oy:"Wrapper"};
NX.prototype.g={iw:"adSlotID",mw:"allowMultipleAds",ki:"apiFramework",ko:"bitrate",Dw:"creativeType",Iw:"delivery",yk:"duration",tM:"event",Vw:"followAdditionalWrappers",Pw:"expandedHeight",Qw:"expandedWidth",li:"height",ni:"id",ox:"maintainAspectRatio",rx:"maxBitrate",yx:"minBitrate",zx:"minSuggestedDuration",Gx:"offset",Hx:"program",Mx:"required",Qx:"scalable",Ho:"sequence",Tx:"skipoffset",Uo:"type",VERSION:"version",ky:"codec",si:"width",ry:"xPosition",uy:"yPosition"};
NX.prototype.o=function(){return new CW(this.A,Via(this),null)};A(WX,BW);WX.prototype.o=function(){return new CW(this.g,null,nja(this))};h=ZX.prototype;
h.clone=function(){var a=new ZX;"auto"==this.Qf?a.Qf="auto":"click"==this.Qf&&(a.Qf="click");a.b=this.b;a.sf=hc(this.sf);a.g=this.g;a.Bi=this.Bi;a.A=this.A;a.Eb=hc(this.Eb);a.B=this.B;a.location=this.location;a.referrer=this.referrer;a.D=this.D;a.language=this.language;a.yg=this.yg;a.xg=this.xg;a.sd=this.sd;a.rd=this.rd;a.bd=this.bd;a.Oj=this.Oj;a.fj=this.fj;a.zi=this.zi;a.fn=this.fn;a.o=this.o;a.Sh=this.Sh;a.ej=this.ej;a.afcRmFallback=this.afcRmFallback;a.G=this.G;a.F=this.F;a.kg=this.kg;a.Zj=this.Zj;
a.or=this.or;return a};
h.sf=null;h.Bi=null;h.Eb=null;h.Qf="unknown";h.or=0;h.yg=0;h.xg=0;h.sd=0;h.rd=0;h.kg=!1;h.bd=null;h.Oj=!1;h.fj=!1;h.zi=!1;h.fn=!0;h.Zj=new KL;h.Sh=0;h.Kp=!0;h.ej=null;h.afcRmFallback=!1;$X.prototype.F=function(){var a=this.A(this.B());return Dd(a)?a.then(function(a){return a.toString()}):a instanceof Error?a:a.toString()};
$X.prototype.C=function(){var a;a=1;AM()&&(a+=4);if(!U.b()){var b=0;SL(QL(),41351017)&&(b+=7168);a+=b}return a};
$X.prototype.A=v;$X.prototype.B=v;var BY={oQ:"ultrahigh",LM:"high",wx:"medium"},yja={zK:1E3,AK:1001,BK:1002,CK:1003,DK:1004,EK:1005,FK:1006},zja={qx:1,Tw:2},Aja={FL:"content",xP:"site",yP:"site_content"};h=fY.prototype;h.ti="high";h.dm=!1;h.Dk=1;h.Ek=null;h.adType="video";h.adBlock=1;h.gm=null;h.Ik=!0;h.Jk=null;h.al=null;h.mh=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.isLiveStream=!1;h.language=null;h.Tq=null;h.Sq=null;h.uj=1E5;h.vj=null;h.Vq=null;h.Uq=null;h.Bm=0;h.Ig=null;h.Ej=null;h.Kj=null;
h.targeting=null;h.tagForChildDirectedTreatment=-1;h.url=null;h.mj=null;h.un=null;h.hm=null;h.An=null;h.xn=null;h.yn=null;h.zn=null;h.Qk=null;h.tn=null;h.Yj=null;var jY=(new Date).getTime();var wja={hL:"bumpervideo",Uw:"flash",IMAGE:"image",DP:"skippablevideo",HP:"standardvideo",KP:"staticimage",TEXT:"text",VIDEO:"video"},tY=["flash","image","staticimage"],xja=[new lf(200,200),new lf(250,250),new lf(300,250),new lf(336,280),new lf(450,50),new lf(468,60),new lf(480,70),new lf(728,90)];A(CY,$X);var Bja=["bumpervideo","skippablevideo","standardvideo","video"];CY.prototype.D={lw:"allow",Nw:"exclude",cP:"require"};CY.prototype.C=function(){var a=CY.L.C.call(this);U.b()&&this.b.Kj&&(a|=this.b.Kj);return a};
CY.prototype.A=function(a){var b=new M(this.g.b),c=new M("//"+b.g+b.o),b=a.Ua();E(b,function(b){nh(c,b,a.get(b))});
dh(c,"https");return c};
CY.prototype.B=function(){var a=new Cg;a.set("sdkv",eY(this));a.set("sdki",this.C().toString(16));a.set("video_product_type",null!=this.b.Ig?U.b()?5:va(this.b.Ig,"ca-games-")?4:va(this.b.Ig,"ca-video-")?0:-1:-1);a.set("correlator",this.G.b);a.set("client",this.b.Ig);U.b()&&!B(C(this.b.url))?a.set("url",this.b.url):a.set("url",this.g.location?this.g.location:this.g.referrer);null!=this.g.bd&&a.set("adk",this.g.bd);a.set("num_ads",DY(this));a.set("channel",Dja(this));a.set("output","xml_vast3");this.b.dm&&
a.set("adtest","on");BQ&&a.set("flash",dO);sY("alternate_ad_url",this.b.Jk,a);sY("cpm",this.b.al,a);iY(a,this.g);U.b()||Vb(BY,this.b.ti)&&a.set("adsafe",this.b.ti);this.b.host&&(a.set("host",this.b.host),sY("ht_id",this.b.hostTierId,a),null!=this.b.o&&sY("h_ch",this.b.o.join("+"),a));sY("hl",this.b.language,a);sY("cust_age",this.b.gm,a);sY("cust_gender",this.b.gender,a);-1!=this.b.tagForChildDirectedTreatment&&sY("tfcd",this.b.tagForChildDirectedTreatment,a);sY("slotname",this.b.Ek,a);if(nY(this.b)&&
(a.set("ea","0"),null!=this.g.sd&&null!=this.g.rd)){var b=oY(this.b,this.g.sd,this.g.rd,this.g.kg);a.set("image_size",b);B(b)&&(this.b.b=vY(this.b.b,this.b.adType,!0),this.b.adType=this.b.b.join("_"))}a.set("ad_type",this.b.adType);b=TL(QL());B(C(b))||a.set("eid",b);kY(a);b=this.g.A||this.b.mh;QL().b.Z("no_ad_block_param")||hY(a,this.G,this.b,b);a.set("unviewed_position_start","1");b=this.b.Dk;a.set("videoad_start_delay",null!=b?b:1);cY(this,a);dY(this,a);aY(this,a);Cja(this)&&a.set("video_format",
null!=this.b.mj&&U.b()?this.b.mj:gm&&Az(6)||hA&&Az(4)||rM(2.3)?43:18);a.set("t_pyv",null!=this.b.Ej?this.b.Ej:kb(this.b.adType.split("_"),"text")?this.D.lw:this.D.Nw);sY("min_ad_duration",this.b.Bm,a);0<this.b.uj&&a.set("max_ad_duration",Math.round(1.1*(this.b.uj||0)+0*DY(this)));0<this.b.vj&&a.set("sdmax",Math.round(1.1*(this.b.vj||0)+0*DY(this)));pY(a,this.H);U.b()&&(b=SQ(this.b.mh),null!=b&&a.set("video_doc_id","yt_"+b));sY("description_url",this.b.mh,a);U.b()&&(sY("lact",lY(this.g),a),sY("loeid",
this.b.hm,a),sY("lsv",this.b.isLiveStream,a),this.b.Ik||sY("scs","false",a),sY("targeting",this.b.targeting,a),sY("video_cpm",this.b.un,a),sY("yt_pt",this.b.An,a),sY("ytdevice",this.b.xn,a),sY("ytdevicever",this.b.yn,a),sY("yt_vis",mY(this.g),a),sY("dbp",this.b.zn,a),sY("avo",this.b.Qk,a),sY("v_p",this.b.tn,a));null!=a.get("ms")||sY("ms",this.b.A,a);bY(a);qY(this.g,a,!1);null!=this.g.sf&&sY("loc",this.g.sf.page_location,a);return a};A(EY,$X);EY.prototype.A=function(a){var b=new M(this.g.b);E(a.Ua(),function(c){B(a.get(c))?b.b.remove(c):nh(b,c,a.get(c))});
dh(b,"https");return b};
EY.prototype.B=function(){var a=new Cg;a.set("sdkv",eY(this));dY(this,a);aY(this,a);bY(a);null!=this.g.bd&&a.set("adk",this.g.bd);return a};A(FY,$X);FY.prototype.B=function(){return new Cg};
FY.prototype.A=function(){var a=new wU(this.g.b),b=eY(this);b&&xU(a,"dc_sdkv",[b]);(b=this.C().toString(16))&&xU(a,"dc_sdki",[b]);(b=this.o.H)&&xU(a,"dc_submodel",[b]);null!=this.g.bd&&xU(a,"dc_adk",[this.g.bd]);b=new Cg;cY(this,b);dY(this,b);aY(this,b);bY(b);Eg(b,"js")&&xU(a,"dc_js",[b.get("js")]);Eg(b,"msid")&&xU(a,"dc_msid",[b.get("msid")]);Eg(b,"frm")&&xU(a,"dc_frm",[b.get("frm")]);Eg(b,"osd")&&xU(a,"dc_osd",[b.get("osd")]);Eg(b,"sdr")&&xU(a,"dc_sdr",[b.get("sdr")]);xU(a,"dcmt",["text/xml"]);
Eg(b,"vpa")&&xU(a,"vpa",[b.get("vpa")]);Eg(b,"mpt")&&xU(a,"mpt",[b.get("mpt")]);Eg(b,"mpv")&&xU(a,"mpv",[b.get("mpv")]);dh(a,"https");return a};A(GY,$X);GY.prototype.A=function(a){a=new M(a.get("adTagUrl"));dh(a,"https");return a};
GY.prototype.F=function(){var a=C(this.B().get("adTagUrl"));return a=a.replace(/^http:/i,"https:")};
GY.prototype.B=function(){var a=new Cg;a.set("adTagUrl",this.g.b);a.set("adsResponse",this.g.g);return a};A(HY,$X);HY.prototype.A=function(a){return new M(a.get("adTagUrl"))};
HY.prototype.B=function(){var a=new Cg;a.set("adTagUrl",this.g.b);a.set("adsResponse",this.g.g);return a};A(IY,$X);IY.prototype.A=function(a){var b=new M(this.g.b);E(a.Ua(),function(c){B(a.get(c))?b.b.remove(c):nh(b,c,a.get(c))});
dh(b,"https");return b};
IY.prototype.B=function(){var a=new Cg,b=TL(QL());B(C(b))||a.set("eid",b);a.set("sdkv",eY(this));a.set("sdki",this.C().toString(16));a.set("correlator",this.o.B);a.set("scor",this.o.b);null!=this.g.bd&&a.set("adk",this.g.bd);cY(this,a);dY(this,a);aY(this,a);bY(a);var b=(new M(this.g.b)).b,c=new fY;c.g=zY(c.g,b.get("overlay"));a.set("afvsz",oY(c,this.g.sd,this.g.rd,this.g.kg));b=this.o.A;null!=b&&(this.o.A=null,a.set("fbidx",b));b=this.o.O;null!=b&&a.set("ppid",b);b="null";c=this.o.g;null!=c?b=c:JY(this.g.location)?
b=this.g.location:JY(this.g.referrer)&&(b=this.g.referrer);a.set("url",b);b=this.o.H;null!=b&&a.set("submodel",b);b=this.o.G;null==b||U.b()||(b=Eja(b),a.set("ciu_szs",b));a.set("impl","");a.set("unviewed_position_start","1");return a};A(KY,IY);KY.prototype.A=function(a){a=KY.L.A.call(this,a);this.G||Gja(this,a);return a};A(LY,FY);LY.prototype.A=function(a){a=LY.L.A.call(this,a);this.G||Ija(this,a);return a};A(MY,$X);var Kja="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(" ");MY.prototype.A=function(){if(!/\[BISCOTTI_ID\]/.test(this.g.b))return NY(this);var a=this.g.Bi;return Dd(a)?a.then(function(a){return NY(this,a)},function(a){throw fM(F$,a);
},this):a instanceof Error?fM(F$,a):NY(this,a)};
MY.prototype.B=function(){return new Cg};PY.prototype.fetch=function(a,b,c){B(C(a.g))?DU(a.b)&&null!=this.b&&!this.b.F?this.b.start(a,y(function(){RY(this,a,b,c)},this)):RY(this,a,b,c):Sja(this,a,b,c)};
PY.prototype.g=function(a,b,c,d){var e=Mja(a,this.A).F();Dd(e)?e.then(function(e){TY(this,e,a,b,c,d)},function(a){a instanceof DL?c(a):c(fM(SY,a))},this):e instanceof DL?c(e):e instanceof Error?c(fM(SY,e)):TY(this,e,a,b,c,d)};UY.prototype.reset=function(a){this.b=a+D()};A(XY,H);var Usa={NORMAL:"normal",Bk:"fullscreen"};A(cZ,F);h=cZ.prototype;h.wh=!1;h.Lq=1E3;h.rr=30;h.sr=45E3;h.Us=15E3;h.hu=!1;h.Zk=function(){var a=dZ(this);this.b.appendChild(this.H);eZ(this.H);this.play();return a};
h.ma=function(){null==this.K&&(this.K=this.Zk());return this.K};
h.play=function(){null==this.g&&(this.g=fe(function(){this.wh||(this.Kq(),this.hu=!0);this.g=null},this.hu?this.Us:this.sr,this))};
h.stop=function(){null!=this.g&&(ge(this.g),this.g=null)};
h.show=function(){ft(this.ma(),1);null!=this.o&&(ge(this.o),this.o=null)};
h.Kq=function(){ft(this.ma(),this.rr/100);null==this.o&&(this.o=fe(function(){this.R();this.o=null},400,this))};
h.HA=function(){this.show();this.wh=!0;this.C=fe(function(){this.wh&&this.stop();this.C=null},this.Lq,this)};
h.MG=function(){null!=this.C&&(ge(this.C),this.C=null);this.wh&&this.play();this.wh=!1};
h.T=function(){cZ.L.T.call(this);this.stop();Nb(this.Rd)};A(fZ,cZ);h=fZ.prototype;h.Zk=function(){var a=dZ(this);I(a,"ima-container-rotator");this.F=L("DIV");this.b.appendChild(this.F);E(this.J,function(a,c){I(a,"ima-container-highlight");var b=63/this.J.length*(c+.5)-5,e=L("DIV",{id:Xa(),"class":"ima-container-selector"});e.style.top=b+"px";this.Rd.N(e,"click",function(a){this.Ng(a.target)});
this.O.set(e.id,a);this.D.appendChild(e)},this);
this.Ng(Qf(this.D));this.play();return a};
h.play=function(){null==this.A&&(this.A=new de(this.M),this.Rd.N(this.A,"tick",this.kG));fZ.L.play.call(this);this.A.start()};
h.stop=function(){null!=this.A&&this.A.stop();fZ.L.stop.call(this)};
h.kG=function(){var a=this.B;this.Ng((p(a.nextElementSibling)?a.nextElementSibling:Pf(a.nextSibling))||Qf(this.B.parentNode))};
h.Ng=function(a){this.B&&oe(this.B,"ima-container-active");I(a,"ima-container-active");var b=this.O.get(a.id);Mf(b,this.F);this.B=a;this.F=b;eZ(b)};A(gZ,cZ);gZ.prototype.Kq=r;gZ.prototype.Zk=function(){var a=dZ(this);E(this.A,function(a){I(a,"ima-container-highlight");this.b.appendChild(a);eZ(a)},this);
this.play();return a};A(hZ,Bt);h=hZ.prototype;h.play=function(){if(this.Wa())return!1;this.xj();this.Sc("play");this.startTime=D();this.b=1;if(Csa())return Ls(this.g,this.D),this.A=fe(this.Ez,void 0,this),!0;this.cn(!1);return!1};
h.Ez=function(){dt(this.g);Dv(this.g,this.C);Ls(this.g,this.o);this.A=fe(y(this.cn,this,!1),1E3*this.B)};
h.stop=function(){this.Wa()&&this.cn(!0)};
h.cn=function(a){Ls(this.g,"transition","");ge(this.A);Ls(this.g,this.o);this.endTime=D();this.b=0;a?this.Sc("stop"):this.Cc();this.Bh()};
h.T=function(){this.stop();hZ.L.T.call(this)};
h.pause=function(){};A(lZ,H);h=lZ.prototype;h.start=function(){this.Wl();this.o=0;mZ(this);this.g=!0;this.B.start()};
h.play=function(){this.g||(mZ(this),this.g=!0,this.B.start())};
h.pause=function(){this.g&&mZ(this)};
h.stop=function(){this.g&&mZ(this);this.dispatchEvent("end")};
h.Wl=function(){};
h.uE=function(){this.o+=.2;this.Vl(this.o,this.K);this.dispatchEvent("timeUpdate");0>=this.K-this.o&&this.stop()};
h.Vl=r;h.T=function(){this.g=!1;this.H.dispose();lZ.L.T.call(this)};A(oZ,H);oZ.prototype.isVisible=function(){return gt(this.b)};
oZ.prototype.C=function(a){U.b()||a.stopPropagation();this.B++;a=a.target.yf;null!=a&&(qe(a,"selected")?(null!=this.g&&oe(this.g,"selected"),this.g=a):this.g=null)};
oZ.prototype.T=function(){null!=this.b&&(Lf(this.b),this.b=null);this.g=null;oZ.L.T.call(this)};A(qZ,H);qZ.prototype.C=function(){this.b?this.dispatchEvent("videoUnmuteClicked"):this.dispatchEvent("videoMuteClicked")};
qZ.prototype.T=function(){this.B.dispose();this.B=null;qZ.L.T.call(this)};A(rZ,H);rZ.prototype.T=function(){null!=this.b&&(Lf(this.b),this.b=null);rZ.L.T.call(this)};
rZ.prototype.update=function(a,b){0>=b||(0>a?this.A=1:1==this.A?(jZ(this.b,.5).play(),R(this.b,!0),this.A=2):5<a&&this.G&&(this.G=!1,R(this.o,!1)))};
rZ.prototype.H=function(){gt(this.o)||R(this.o,!0)};var lka=/#(.)(.)(.)(.)/,kka=/^#(?:[0-9a-f]{4}){1,2}$/i;A(vZ,H);h=vZ.prototype;h.T=function(){null!=this.J&&(this.J.dispose(),this.J=null);null!=this.H&&(this.H.dispose(),this.H=null);xZ(this);null!=this.B&&(Lf(this.B),this.B=null);null!=this.b&&(this.b=null);null!=this.g&&(Lf(this.g),this.g=null);this.M.dispose();this.M=null;this.D.dispose();this.D=null;this.aa=!1;vZ.L.T.call(this)};
h.update=function(a,b){this.X=b;if(!(0>=this.X||null==this.o.skipOffset||0>fT(this.o.skipOffset))){var c=fT(this.o.skipOffset);c>=this.X||3==this.A||(0>a?this.A=1:a<=c?(2!=this.A&&(wZ(this,0),jZ(this.B,.5).play(),R(this.B,!0)),this.A=2):(3!=this.A&&(R(this.g,!0),this.H=new hZ(this.B,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.J=jZ(this.g,.5),this.H.play(),this.J.play(),this.b.autofocus&&this.b.focus(),this.D.N(Sf(this.g),
"mouseover",this.gG),this.D.N(Sf(this.g),"mouseout",this.Lt),this.Lt()),this.A=3,this.dispatchEvent("skipshown")))}2==this.A&&wZ(this,a)};
h.skip=function(){return null==this.o.skipOffset||3!=this.A||this.O?!1:(this.O=!0,this.dispatchEvent("PUBLISHER_INVOKED_SKIP"),!0)};
h.DG=function(a){U.b()||a.stopPropagation();3!=this.A||this.O||(this.O=!0,this.dispatchEvent("skip"))};
h.Lt=function(){null==this.F&&"4.4.4"!==(JA?tM(qM):"")&&(this.F=fe(function(){this.aa=!0;iZ(this.g,.5,"ease-in",1,.5).play();this.F=null},this.aa?5E3:15E3,this))};
h.gG=function(){ft(this.g,1);xZ(this)};A(BZ,H);h=BZ.prototype;h.show=function(){null!=this.g&&R(this.g,!0)};
h.skip=function(){var a;if(a=null!=this.A)a=this.A,a=null!=a.o.skipOffset&&3==a.A;return a?this.A.skip():!1};
h.T=function(){null!=this.g&&(Lf(this.g),this.g=null);DZ(this);E(this.ba,function(a){a.Lb()});
this.ba=[];this.B=null;this.o.dispose();this.o=null;this.Ca=!1;BZ.L.T.call(this)};
h.update=function(a,b,c,d,e){this.Ca=!0;null!=this.g&&(null!=this.ia&&pka(this,a,c,d,e),null!=this.ca&&at(this.ca,a/c*100+"%"),null!=this.na&&at(this.na,b/c*100+"%"),0<c&&null!=this.b.skipOffset&&null!=this.A&&(eT(this.b.skipOffset,c),this.A.update(a,c)),0<c&&null!=this.aa&&!this.aa.isVisible()&&jka(this.aa),0<c&&null!=this.F&&this.F.update(a,c),this.b.G&&0<c&&5>c-a&&I(this.ea,"videoAdUiTopBarNoFade"),E(this.Ka,function(b){b.update(a,c)},this))};
h.Fy=function(){this.dispatchEvent("videoAuthorIconClicked")};
h.Gy=function(){this.dispatchEvent("videoAuthorClicked")};
h.mr=function(){this.dispatchEvent("videoLearnMoreClicked")};
h.AG=function(){this.dispatchEvent("videoShareClicked")};
h.KG=function(){this.dispatchEvent("videoTitleClicked")};
h.hB=function(a){a.preventDefault()};
h.Xj=function(){this.dispatchEvent("click")};
h.zG=function(){I(this.ea,"videoAdUiTopBarTransitions")};
h.RF=function(){var a=bg(this.g,"html5-video-player");if(null!=a){var b=this.b.D;null!=a&&(b.A=new Hm(b),b.g=new H,b.g.Pf(this),b.C=a,b.Ks(),b.g.dispatchEvent("why_this_ad_url"));null!=this.A&&yZ(this.A,!1);null!=this.F&&(a=this.F,null!=a.g&&R(a.g,!1))}};
h.SG=function(){null!=this.A&&yZ(this.A,!0);if(null!=this.F){var a=this.F;null!=a.g&&R(a.g,!0)}};h=HZ.prototype;
h.Ks=function(){var a={heading:"",targetingReasons:[],learnMore:"",nl:"",control:"",mute:""};if(null!=this.B){a.heading=this.B.B;var b=this.B.g;if(b&&3==b.length){var c=b[1],d=b[2],b=nR(Y(b[0])+SR()+Y(c)+nR("</a>")+Y(d));a.nl=b}a.targetingReasons=tb(this.B.C);a.close=this.B.o}else a.nl=TR(),b=ta("Got It"),a.close=""+b;null!=this.o&&(a.mute=this.o.A);JZ(this,$ga,a);IZ(this,"videoAdUiWhyThisAdCloseButton",this.Hi);IZ(this,"videoAdUiWhyThisAdControl",this.Jp);IZ(this,"videoAdUiWhyThisAdMute",this.PF);
a=uf("videoAdUiWhyThisAdGenericMessage",this.b);null!=a&&(a=a.getElementsByTagName("A")[0],null!=a&&this.A.N(a,"click",this.Jp))};
h.Hi=function(){null!=this.A&&(this.A.dispose(),this.A=null);zZ(this)&&null!=this.b&&(null!=this.g&&(this.g.dispatchEvent("why_this_ad_got_it"),this.g.dispose(),this.g=null),this.b.parentElement.removeChild(this.b),this.b=null)};
h.Jp=function(){null!=this.g&&this.g.dispatchEvent("why_this_ad_settings_url")};
h.PF=function(){if(null!=this.o){this.g.dispatchEvent("mute_interaction_url");var a,b=oX(this.o);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},JZ(this,bha,a),IZ(this,"videoAdUiMuteCancel",this.Ks),IZ(this,"videoAdUiMuteConfirm",this.Wy);else{this.g.dispatchEvent("mute_url");a={heading:this.o.o,undo:this.o.C,question:this.o.B,options:[],confirm:"SEND",cancel:"CLOSE"};var c;c=this.o?(c=bT(this.o.b,"mute_undo_url"))&&0<c.length:!1;c||(a.undo=
"");for(c=0;c<b;c++)a.options.push(this.o.g[c].label);JZ(this,aha,a);IZ(this,"videoAdUiMuteUndo",this.LG);IZ(this,"videoAdUiMuteConfirm",this.FG);IZ(this,"videoAdUiMuteCancel",this.Xk)}}};
h.Wy=function(){this.g.dispatchEvent("mute_url");this.Xk()};
h.LG=function(){this.g.dispatchEvent("mute_undo_url");this.Hi()};
h.FG=function(){if(null!=this.o){for(var a=oX(this.o),b=!1,c=0;c<a;c++){var d=uf("videoAdUiMuteOption"+c,this.b);if(null!=d&&d.checked){b=!0;ZL(this.o.g[c].url);break}}if(!b)return}this.Xk()};
h.Xk=function(){this.g.dispatchEvent("MUTE_AD");this.Hi()};A(NZ,lZ);h=NZ.prototype;h.start=function(){this.Wl();this.A.update(0,this.G);jZ(this.b,this.F.o).play();this.H.N(this.A,"skip",this.By);NZ.L.start.call(this)};
h.Wl=function(){var a=dt(this.b);if(1==this.D){var b=400>=(0,window.parseInt)(Os(this.b,"width"),10)||400>=a.width;K(this.b,"videoAdUi-mobile",b)}else if(2==this.D){var c=Qf(this.b),d=dt(c),e=65>=(a.height-d.height)/2;K(this.b,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;K(this.b,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
h.By=function(){this.pause();this.dispatchEvent("skip")};
h.Vl=function(a,b){this.A.update(a,b);if(this.C){var c=kZ({Vg:MZ(b-a)});Vf(this.C,c)}};
h.T=function(){this.A&&this.A.dispose();Jf(this.b);NZ.L.T.call(this)};A(OZ,F);OZ.prototype.H=function(a,b){var c=hc(b||{});if("timeout"==(c.viewability||"")){var d=this.F[a];null!=d&&(c.viewability=d)}if("impression"==a&&!this.G&&null!=this.C&&0<this.C.length){var d=U.D&&kb(this.D,"impression"),e=QZ(this,this.C,c);RZ(this,e,d);this.G=!0}ska(this,a)&&(e=gT(this.o,a),0<e.length&&(d=U.D&&kb(this.D,a),c=QZ(this,e,c),RZ(this,c,d),this.g.set(a,!0)))};A(SZ,H);SZ.prototype.o=function(a){switch(a.type){case "companion_impression":this.dispatchEvent(new FL("companionImpression",this.b));break;case "companion_click":this.dispatchEvent(new FL("companionClick",this.b))}};A(TZ,H);h=TZ.prototype;h.Hh=function(){var a=jb(this.ads,this.H);-1!=a&&++a<this.ads.length?XZ(this,this.ads[a]):XZ(this,null)};
h.Rm=function(a,b){this.ads[jb(this.ads,a)]=b;XZ(this,b)};
h.kt=function(){if(!UZ(this)){if(lb(this.ads))throw gM(bZ);XZ(this,this.ads[0]);if(null==this.H.b)throw fM(bZ);}};
h.ka=function(a,b){var c=UZ(this)?Z(this):null;this.dispatchEvent(new FL(a,c,b))};
h.KC=function(){};
h.Hm=function(){};
h.destroy=function(){this.dispose()};
h.T=function(){UZ(this)&&(dU(this.H,null),this.H=null);Nb(this.G);this.F=this.G=null;this.ga=!1;U.g?MQ(IQ(),this.qa):this.Ca&&(xW().D=null);TZ.L.T.call(this)};
h.oe=function(){return[]};
h.Bb=function(){return this.ads[0]};
h.init=function(a){e_(this);this.kj(a);this.Ha=!0;this.Fg();!U.g&&this.Ca&&(xW().D=this.qa)};
h.Fg=function(){this.ka("loaded")};
h.Of=function(a){UZ(this)&&U.b()&&cM(uV(Z(this)),a)};
h.Bt=r;
h.Rc=function(a,b,c){if(!this.ga){if(null==a)throw gM(wQ,null,"displayContainer");if(null!=c){var d=new Dk(Yb(this.o)),e=Yb(c);a:{var f=d.contains;if("function"==typeof e.every)d=e.every(f,d);else if(ga(e)||w(e))d=Xk(e,f,d);else{for(var k=Hg(e),l=Gg(e),m=l.length,n=0;n<m;n++)if(!f.call(d,l[n],k&&k[n],e)){d=!1;break a}d=!0}}if(!d)throw gM(wQ,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.o;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.th&&(c.th=[]);vka(c.th);
if(!ia(c.Vd)||0>=c.Vd)c.Vd=15E3;kc(d,c)}this.content=b;this.A=a;this.kt();this.b=this.A.gj(tka(this));this.ga=!0}};
h.ve=function(a){a=FQ(jV(a),"rm")?a.J:uV(a);E(a,function(a){ob(this.B.C,a)},this)};
h.$d=function(a,b){E(b,function(b){b=mT(a,b);cT(this.B.o,b)},this)};
h.Jg=function(a){if(a instanceof pT){var b=qT(a);E(b.Ua(),function(a){var c=b.get(a);E(c,function(b){dT(this.B.o,a,b)},this)},this)}};
h.getCurrentTime=function(){return-1};
h.Xc=function(){return-1};
h.Sd=function(){return-1};
h.Wa=function(){return null!=this.b?this.b.Wa():!1};
h.Yc=function(a,b,c){this.kj(c)};
h.pause=r;h.resume=r;h.skip=r;h.muteAd=r;h.whyThisAdClicked=r;h.whyThisAdClosed=r;h.start=function(){e_(this);if(!this.Ha)throw fM(WZ,null,"Must call init before start.");};
h.stop=function(){this.destroy()};
h.zg=function(){return null!=this.volume?this.volume:0};
h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&iM(this,wQ,null,"volume",String(a));this.volume=a};
h.kj=function(a){if(!Vb(Usa,a))throw gM(wQ,null,"view mode",a);this.J=a};
h.yl=function(){return null};
h.Iq=function(){return null};
h.Gt=function(){return null};
h.lg=function(){return null};
h.Nf=function(){c_(this,"abandon")};
h.Az=function(){return{currentTime:this.getCurrentTime(),duration:this.Xc(),isPlaying:this.Wa(),isVpaid:UZ(this)&&null!=bW(Z(this)),isYouTube:U.b(),volume:this.zg()}};
h.cG=function(a){var b=sb(C$,Xb(E$));xb(b);E(b,function(b){var c=bT(a.b,b);lb(c)||this.Qm(b,c)},this);
rka(this.B,a.H)};
h.Qm=function(a,b){E(b,function(a){dT(this.B.o,a.Fb(),a.b)},this)};A(h_,TZ);h=h_.prototype;h.start=function(){h_.L.start.call(this);this.A.ad();this.D=this.A.Qd();if(null!=this.D){c_(this,"show_ad");Jf(this.D);var a=this.pp();U.g?vga(IQ(),a):Cia(xW(),a);this.D.appendChild(a);this.Fi();E(this.ba,function(a){a()});
nb(this.ba);this.O=!0}};
h.Yc=function(a,b,c){h_.L.Yc.call(this,a,b,c);this.Fi()};
h.T=function(){Nb(this.g);this.A=this.g=null;this.O=!1;U.g?IQ().B=null:xW().o=null;null!=this.D&&(Jf(this.D),this.D=null);h_.L.T.call(this)};
h.pp=function(){var a=Z(this).b;if(null==a)throw a=gM(bZ),j_(this,a),a;var b=Z(this);LT(a,$Z(this));JT(a,this.Hz);a.A||KT(a,ra(this.Nl,b,a));try{b_(this,b)}catch(d){throw j_(this,d),d;}this.ve(b);var c=WT(b,this.b);this.B.b=c;b.b&&(this.ve(b),(b=b.b)&&this.$d(b,Isa));this.$d(a,["start"]);i_(this,a);return this.yi([a.hc()])};
h.Jq=function(a,b){return new cZ(a[0],b)};
h.yi=function(a){null!=this.g&&this.g.stop();this.g=this.Jq(a,y(this.Ni,this));a=this.g.ma();K(a,"autoalign",this.o.jp);U.b()&&K(a,"viewmode-fullscreen","fullscreen"==this.J);a.appendChild(this.ha);$Z(this).N(a,"click",nc);(UZ(this)&&kV(Z(this),RV)||this.o.du)&&this.Mk(this.g.b);return a};
h.Mk=function(a){var b=$Z(this);this.X=hR(fka);b.N(this.X,"click",this.cA);var c=ta("Close"),c=hR(eka,{close:""+c});b.N(c,"click",this.cj);I(a,"extra-padding");null!=this.ia&&728<=this.ia.cb()&&I(a,"wide-overlay-ad");a.appendChild(c)};
h.Fi=function(a,b){if(null!=this.g){var c=a?a:0,d=b?b:0,e=dt(this.A.Qd()),f;f=U.b()?dt(Qf(this.g.b)):dt(this.g.b);if(f.width+c>e.width||f.height+d>e.height)throw c=gM(Lsa,null),j_(this,c),d={},d.pid=rW.getInstance().b,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=Z(this).b.zc(),d.vm=this.J,LM(IM.getInstance(),38,d,!0),this.stop(),c;}};
h.Hz=function(a){d_(this,"click");nc(a)};
h.cj=function(){c_(this,"close");this.Ni(!0)};
h.Nl=function(a,b){KT(b,r);this.O?this.Eh(a,b):this.ba.push(y(this.Eh,this,a,b))};
h.Eh=function(a){a=WT(a,this.b);this.B.b=a;d_(this,"impression");c_(this,"creativeview");d_(this,"start")};
h.Ni=function(a){null!=this.g&&(this.g.stop(),null!=this.X&&Mf(this.X,this.g.b),a?this.ka("userClose"):this.ka("autoClose"))};
h.cA=function(a){nc(a);this.g.show();this.g.play();Mf(this.g.b,this.X);fe(function(){R(this.ha,!1)},500,this);
R(this.ha,!0);this.ka("userRecall")};A(k_,h_);h=k_.prototype;h.Jq=function(a,b){if(this.R||null==b)b=r;var c;U.b()&&this.R?c=new cZ(a[0],b):1<a.length?m_(this)||"fullscreen"==this.J&&U.b()?c=new gZ(a):(c=new fZ(a),c.M=15E3):c=new cZ(a[0],b);c.Lq=100;this.R&&(c.rr=30);c.sr=45E3;c.Us=6E3;K(c.b,"scalable",this.R);K(c.ma(),"yt-text-overlay",U.b()&&this.R);return c};
h.pG=function(a){var b=a.b;null!=b?(null==this.da&&(this.da=a.getExtension("AdSense").o),KT(b,ra(this.Nl,a,b)),JT(b,ra(this.Iz,a,b)),"Text"==b.zc()&&(this.R=!0),this.M.push(b)):(b=fM(bZ),b=VT(b,a),cM(tV(a),b))};
h.Rc=function(a,b,c){k_.L.Rc.call(this,a,b,c);this.o.jp=!0;a=Z(this);lb(vV(a))?U.b()&&this.ka("companionBackfill"):b_(this,a)};
h.pp=function(){null==this.M&&(this.M=[],E(this.ads,this.pG,this));if(0==this.M.length)throw gM(bZ);var a=[];E(this.M,function(b){LT(b,$Z(this));"Flash"!=b.zc()||b.kb().getExtension("TemplateAd")||(b.tp=!0);a.push(b.hc());sha(b,this.da.D)},this);
if(0==a.length)throw gM(bZ);wka(this);return this.yi(a)};
h.start=function(){k_.L.start.call(this);!this.ca&&m_(this)&&(this.ca=!0,this.ka("contentPauseRequested"));null!=this.C&&this.C.start();if(this.O){var a=n_(this);LM(IM.getInstance(),33,a)}};
h.cj=function(a){k_.L.cj.call(this,a);E(this.M,function(a){var b=WT(a.kb(),this.b);this.B.b=b;this.$d(a,["close"]);c_(this,"close");this.B=new OZ},this)};
h.Ni=function(a){k_.L.Ni.call(this,a);m_(this)&&(null!=this.D&&Jf(this.D),this.ca&&(this.ca=!1,this.ka("contentResumeRequested")))};
h.yi=function(a){a=k_.L.yi.call(this,a);if(m_(this)){var b=gY(2);I(this.g.b,b);I(a,b)}return a};
h.Mk=function(a){if(m_(this)){var b=Sf(a);b&&((a=Of(a)[0])&&Ls(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").o||new MW,this.C=new NZ(b,a,2,l_(this),!0),$Z(this).N(this.C,"skip",this.hA),$Z(this).N(this.C,"end",this.SA))}else k_.L.Mk.call(this,a),b=hR(gka,l_(this)),a.appendChild(b)};
h.Nl=function(a,b){this.O?this.Eh(a,b):this.ba.push(y(this.Eh,this,a,b));KT(b,r);this.ka("impression")};
h.Eh=function(a,b){var c=WT(a,this.b);this.B.b=c;this.ve(a);this.$d(b,["creativeview"]);c_(this,"impression");c_(this,"creativeview");d_(this,"start");this.B=new OZ};
h.Iz=function(a,b,c){c=Zs(c);a=a.getExtension("AdSense");a=new M(a.A);var d=b.cb();(0,window.isNaN)(d)&&(d=dt(b.hc()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=dt(b.hc()).height);b=QL();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.J,"sdkv=h.0.0.0","eids="+TL(b)];U.b()||(c=dt(this.A.Qd()),d=this.C?qka(this.C):new jf(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));$L(a,"elementclick",b);E(this.M,function(a){var b=WT(a.kb(),this.b);this.B.b=b;i_(this,a);
c_(this,"click");this.B=new OZ},this);
this.ka("click")};
h.kj=function(a){this.J!=a&&(k_.L.kj.call(this,a),this.ka("expandedChanged"))};
h.Fi=function(){k_.L.Fi.call(this,this.C?15:0,this.C?65:0)};
h.hA=function(){o_(this,"skip")};
h.SA=function(){o_(this,"close")};A(p_,mc);var q_=["classid","data","movie","type","typemustmatch"];A(r_,Fx);h=r_.prototype;h.wi="sameDomain";h.setSize=function(a,b){this.G=w(a)?a:Math.round(a)+"px";this.D=w(b)?b:Math.round(b)+"px";this.ma()&&bt(s_(this),this.G,this.D);return this};
h.ig=function(){r_.L.ig.call(this);for(var a=this.ma(),b=this.g.Ua(),c=this.g.Ra(),d=[],e=0;e<b.length;e++)d.push(xa(b[e])+"="+xa(c[e]));var b=d.join("&"),f;if(zf&&!Bc(11)){d=this.J;c={allowFullScreen:"true",AllowScriptAccess:this.wi,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:"window"};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};xka(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($e("param",{name:f,value:d[f]}));f=bf({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);f=$e("object",f,c)}else f={AllowScriptAccess:this.wi,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:"window"},f=bf({src:this.J,type:"application/x-shockwave-flash",pluginspage:"https://www.macromedia.com/go/getflashplayer"},
{allownetworking:"none",allowscriptaccess:"never"},f),f=$e("embed",f);a.innerHTML=Se(f);this.G&&this.D&&this.setSize(this.G,this.D);this.o.N(this.ma(),Xb(rsa),nc)};
h.bj=function(){if(null!=this.K&&!(0<=Ua(dO,this.K)))throw Error("Method not supported");var a=this.F.createElement("DIV");a.className="goog-ui-media-flash";this.b=a};
h.T=function(){r_.L.T.call(this);this.g=null;this.o.dispose();this.o=null};A(t_,TZ);var Vsa=Pe(Be(Ce("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));Pe(Be(Ce("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));h=t_.prototype;h.T=function(){this.X=!1;this.g&&(this.g.dispose(),this.O=null);ge(this.ba);this.D&&this.ka("contentResumeRequested");this.ka("allAdsCompleted");t_.L.T.call(this)};
h.Sd=function(){var a=this.wc("getAdRemainingTime");return ia(a)?a:-1};
h.zg=function(){var a=this.wc("getAdVolume");return ia(a)?a:-1};
h.Rc=function(a,b,c){t_.L.Rc.call(this,a,b,c);this.D=Z(this).b instanceof pT};
h.init=function(a){t_.L.init.call(this,a);window[this.na]=y(this.YA,this);$Z(this).N(xW(),D$,this.aB);this.g=new r_(Vsa);this.g.setSize(this.ia,this.ca);this.g.wi="always";a=cW(Z(this));B(C(a))?(w_(this,D_,Error("Flash VPAID ad url is empty.")),this.stop()):(this.g.g.set("vpaid",a),this.g.g.set("vpaidEventHandler",this.na),this.A.ad(),Gx(this.g,this.A.Qd()),this.O=s_(this.g),this.ba=fe(this.$A,this.o.Vd,this))};
h.start=function(){if(this.X){t_.L.start.call(this);var a=Z(this);this.B.B=a.K;var b=WT(a);this.B.b=b;if(b=a.b)this.ve(a),this.$d(b,C$),this.Jg(b),f_(this,a);this.A.ad();c_(this,"show_ad");this.setVolume(this.M);this.C=new de(250);$Z(this).N(this.C,"tick",this.ZA);this.D?this.ka("contentPauseRequested"):(this.ka("contentResumeRequested"),v_(this));this.C.start();this.wc("startAd")}else this.ha=!0};
h.stop=function(){this.za||(this.za=!0,this.wc("stopAd"),this.A.Gf(),null!=this.C&&(this.C.stop(),this.C=null),t_.L.stop.call(this))};
h.Yc=function(a,b,c){t_.L.Yc.call(this,a,b,c);this.ia=a;this.ca=b;this.wc("resizeAd",a,b,c)};
h.pause=function(){null!=this.C&&this.C.stop();this.wc("pauseAd")};
h.resume=function(){null!=this.C&&this.C.start();this.wc("resumeAd")};
h.setVolume=function(a){this.M=a;this.wc("setAdVolume",a)};
h.Fg=function(){};
h.ob=function(){return u_(this)};
h.skip=function(){this.wc("skipAd")};
h.Xc=function(){var a=this.wc("getAdDuration");if(ia(a))return a;a=this.Sd();return 0<=a?this.R/1E3+a:-2};
h.ZA=function(){this.R+=250};
h.wc=function(a){if(!this.g||!this.O)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);var c=b.shift(),d=!1;this.X&&(d=!0);if("handshakeVersion"==c||"initAd"==c)d=!0;if(d)try{if(null!=this.O[c])return this.O[c].apply(this.O,b)}catch(e){}return null};
h.aB=function(a){var b=a.type;if(kb(D$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!E$[b]))return;d_(this,b)}};
h.$A=function(){w_(this,G$,null,(this.o.Vd/1E3).toString());this.stop()};
h.getCurrentTime=function(){return this.R/1E3};
h.YA=function(a,b){switch(a){case "flashReady":this.wc("handshakeVersion","2.0");var c=wV(Z(this));this.O.initAd(this.ia,this.ca,this.J,this.o.bitrate,c);break;case "AdLoaded":ge(this.ba);this.X=!0;var c=this.wc("getAdCompanions"),d=w(c)?c:"",c=Z(this);lb(vV(c))&&(d=QX(d,c.b.b),lb(d)||hV(c,d));d_(this,"loaded");this.ha&&(this.ha=!1,this.start());break;case "AdStarted":c_(this,"impression");c_(this,"creativeview");this.ka("start");break;case "AdVideoStart":c_(this,"start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=C(PV(Z(this)))),null!=c&&YL(c));c_(this,"click");this.ka("click");break;case "AdDurationChange":this.ka("durationChange");break;case "AdRemainingTimeChange":this.ka("durationChange");v_(this);break;case "AdError":c="AdError";b&&(c=b.message);w_(this,D_,Error(c));this.stop();break;case "AdExpandedChange":this.ka("expandedChanged");break;case "AdImpression":c=Z(this);lb(vV(c))||b_(this,c);this.ka("impression");break;case "AdLinearChange":c=u_(this);!this.D&&c?(this.ka("contentPauseRequested"),
ge(this.da)):this.D&&!c&&(this.ka("contentResumeRequested"),v_(this));this.D=c;d=this.H;d.ha=!0;d.ia=c;this.ka("linearChanged");break;case "AdVolumeChange":c=this.zg();c!=this.M&&(c!=this.M&&this.ka("volumeChange"),0==c&&0!=this.M?(c_(this,"mute"),this.ka("mute")):0==this.M&&0!=c&&c_(this,"unmute"),this.M=c);break;case "AdPaused":d_(this,"pause");break;case "AdUserClose":d_(this,"userClose");break;case "AdUserMinimize":c_(this,"collapse");break;case "AdVideoFirstQuartile":d_(this,"firstquartile");
break;case "AdVideoMidpoint":d_(this,"midpoint");break;case "AdVideoThirdQuartile":d_(this,"thirdquartile");break;case "AdVideoComplete":x_(this);break;case "AdUserAcceptInvitation":this.D?c_(this,"acceptinvitationlinear"):c_(this,"acceptinvitation");break;case "AdStopped":x_(this);c_(this,"stop");this.stop();break;case "AdSkipped":d_(this,"skip");break;case "AdSkippableStateChange":d_(this,"skippableStateChanged");break;case "AdPlaying":d_(this,"resume");break;case "AdLog":this.ka("log")}};A(y_,H);var Wsa=Pe(Be(Ce("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));Pe(Be(Ce("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));h=y_.prototype;h.dispose=function(){this.g&&(this.g.dispose(),this.b=null);window[this.o]&&delete window[this.o];ge(this.A)};
h.load=function(a,b,c,d){window[this.o]=y(this.QA,this);this.g=new r_(Wsa);this.g.setSize(b,c);this.g.wi="always";this.g.g.set("vpaid",a);this.g.g.set("vpaidEventHandler",this.o);Gx(this.g,this.C);this.b=s_(this.g);this.A=fe(this.RA,d,this)};
h.PA=function(a){if(!this.b)return null;var b=Array.prototype.slice.call(arguments),c=b.shift();if(!this.B&&"handshakeVersion"!=c&&"initAd"!=c)return null;try{if(this.b[c])return this.b[c].apply(this.b,b)}catch(d){}return null};
h.QA=function(a,b){"AdLoaded"==a&&(ge(this.A),this.B=!0);this.dispatchEvent(new p_(a,b||null))};
h.RA=function(){this.dispatchEvent("loadError")};A(z_,TZ);h=z_.prototype;h.T=function(){this.X=!1;null===this.g?this.ia&&this.dispatchEvent(new FL("destroyInsecureFlashVpaid",Z(this))):this.g.dispose();this.D&&this.ka("contentResumeRequested");this.ka("allAdsCompleted");z_.L.T.call(this)};
h.Sd=function(){var a=this.kc("getAdRemainingTime");return ia(a)?a:-1};
h.zg=function(){var a=this.kc("getAdVolume");return ia(a)?a:-1};
h.Rc=function(a,b,c){z_.L.Rc.call(this,a,b,c);this.D=Z(this).b instanceof pT};
h.init=function(a){z_.L.init.call(this,a);a=cW(Z(this));B(C(a))?(E_(this,Error("Flash VPAID ad url is empty.")),this.stop()):($Z(this).N(xW(),D$,this.XA),this.ia?this.dispatchEvent(new FL("initInsecureFlashVpaid",Z(this),{url:C(a)})):null===this.A.Qd()?(E_(this,Error("Container must be provided for flash VPAID.")),this.stop()):(this.A.ad(),null===this.g&&(this.g=new y_(this.A.Qd())),$Z(this).N(this.g,"loadError",this.mD),$Z(this).N(this.g,"vpaidEventType",this.WA),this.g.load(a,this.ha,this.R,this.o.Vd)))};
h.start=function(){if(this.X){z_.L.start.call(this);var a=Z(this);this.B.B=a.K;var b=WT(a);this.B.b=b;if(b=a.b)this.ve(a),this.$d(b,C$),this.Jg(b),f_(this,a);this.A.ad();c_(this,"show_ad");this.setVolume(this.M);this.C=new de(250);$Z(this).N(this.C,"tick",this.VA);this.D?this.ka("contentPauseRequested"):(this.ka("contentResumeRequested"),B_(this));this.C.start();this.kc("startAd")}else this.ca=!0};
h.stop=function(){this.da||(this.kc("stopAd"),this.A.Gf(),null!=this.C&&(this.C.stop(),this.C=null),z_.L.stop.call(this),this.da=!0)};
h.Yc=function(a,b,c){z_.L.Yc.call(this,a,b,c);if(null!==this.g){var d=this.g;d.g&&d.g.setSize(a,b)}this.ha=a;this.R=b;this.kc("resizeAd",a,b,c)};
h.pause=function(){null!=this.C&&this.C.stop();this.kc("pauseAd")};
h.resume=function(){null!=this.C&&this.C.start();this.kc("resumeAd")};
h.setVolume=function(a){this.M=a;this.kc("setAdVolume",a)};
h.Fg=r;h.ob=function(){return A_(this)};
h.skip=function(){this.kc("skipAd")};
h.Xc=function(){var a=this.kc("getAdDuration");if(ia(a))return a;a=this.Sd();return 0<=a?this.O/1E3+a:-2};
h.VA=function(){this.O+=250};
h.kc=function(a){if(this.da)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);return this.ia?(c=b.shift(),this.dispatchEvent(new FL("callFlashVpaidMethod",Z(this),{methodName:c,args:b})),this.na[c]):null===this.g?null:this.g.PA.apply(this.g,b)};
h.XA=function(a){var b=a.type;if(kb(D$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!E$[b]))return;d_(this,b)}};
h.mD=function(){E_(this,Error("Flash VPAID loader failed to load."));this.stop()};
h.getCurrentTime=function(){return this.O/1E3};
h.WA=function(a){var b=a.data;switch(a.b){case "flashVpaidMethodResults":b&&(this.na[b.methodName]=b.result);break;case "flashReady":this.kc("handshakeVersion","2.0");b=wV(Z(this));this.kc("initAd",this.ha,this.R,this.J,this.o.bitrate,b);break;case "AdLoaded":this.X=!0;b=this.kc("getAdCompanions");a=w(b)?b:"";b=Z(this);lb(vV(b))&&(a=QX(a,b.b.b),lb(a)||hV(b,a));d_(this,"loaded");this.ca&&(this.ca=!1,this.start());break;case "AdStarted":c_(this,"impression");c_(this,"creativeview");this.ka("start");
break;case "AdVideoStart":c_(this,"start");break;case "AdClickThru":b&&b.playerHandles&&((b=b.url)||(b=C(PV(Z(this)))),b&&YL(b));c_(this,"click");this.ka("click");break;case "AdDurationChange":this.ka("durationChange");break;case "AdRemainingTimeChange":this.ka("durationChange");B_(this);break;case "AdError":a="AdError";b&&(a=b.message);E_(this,Error(a));this.stop();break;case "AdExpandedChange":this.ka("expandedChanged");break;case "AdImpression":b=Z(this);lb(vV(b))||b_(this,b);this.ka("impression");
break;case "AdLinearChange":b=A_(this);!this.D&&b?(this.ka("contentPauseRequested"),ge(this.ba)):this.D&&!b&&(this.ka("contentResumeRequested"),B_(this));this.D=b;a=this.H;a.ha=!0;a.ia=b;this.ka("linearChanged");break;case "AdVolumeChange":b=this.zg();b!=this.M&&(this.ka("volumeChange"),0==b&&0!=this.M?(c_(this,"mute"),this.ka("mute")):0==this.M&&0!=b&&c_(this,"unmute"),this.M=b);break;case "AdPaused":d_(this,"pause");break;case "AdUserClose":d_(this,"userClose");break;case "AdUserMinimize":c_(this,
"collapse");break;case "AdVideoFirstQuartile":d_(this,"firstquartile");break;case "AdVideoMidpoint":d_(this,"midpoint");break;case "AdVideoThirdQuartile":d_(this,"thirdquartile");break;case "AdVideoComplete":C_(this);break;case "AdUserAcceptInvitation":this.D?c_(this,"acceptinvitationlinear"):c_(this,"acceptinvitation");break;case "AdStopped":C_(this);c_(this,"stop");this.stop();break;case "AdSkipped":d_(this,"skip");break;case "AdSkippableStateChange":d_(this,"skippableStateChanged");break;case "AdPlaying":d_(this,
"resume");break;case "AdLog":this.ka("log")}};h=F_.prototype;h.rl=function(){return this.b.rl()};
h.Zi=function(){return this.b.Zi()};
h.Qd=function(){return this.b.Qd()};
h.gj=function(a){return this.g?this.b.Rl():this.b.gj(a)};
h.setSize=function(a,b){this.b.setSize(a,b)};
h.fl=function(){return this.b.fl()};
h.hj=function(){return this.b.hj()};
h.Sl=function(){return this.b.Sl()};
h.ij=function(){return this.b.ij()};
h.Gf=r;h.uh=r;h.ad=r;h.Rl=function(){return this.b.Rl()};
h.yq=r;A(G_,FL);A(I_,F);I_.prototype.T=function(){this.g.enabled&&this.g.stop();this.b=[];I_.L.T.call(this)};
I_.prototype.B=function(){var a=1E3*this.D.getCurrentTime(),b=D();this.b.push(new Aka(a,b));for(a=b-this.b[0].b;1E4<a;)this.b.shift(),a=b-this.b[0].b;2>this.b.length?b=!0:(a=this.b.length-1,b=this.b[a].b-this.b[0].b,a=this.b[a].g-this.b[0].g,3E3>b||0>a?b=!0:(b=a/b,b<this.o&&(this.o=b),b=.5<=b));b||(this.C=!0,b=this.D,null!=b.D&&K_(b.D),k0(b,H$,gM(H$)))};L_.prototype.isListed=!0;A(O_,lZ);var N_=Math.ceil(10*3.14);O_.prototype.D=function(a){U.b()||a.stopPropagation();this.dispatchEvent("click")};
O_.prototype.start=function(){O_.L.start.call(this);null==this.b?this.stop():this.G&&(this.M&&780<=dt(this.O).width&&this.G.Oq(!0),this.G.Nq())};
O_.prototype.Vl=function(a,b){var c=a/b*N_+" "+N_;null!=this.b&&Ls(this.b,"stroke-dasharray",c)};A(P_,F);P_.prototype.show=function(a,b){Q_(this);rA&&a?(a.appendChild(this.o),this.b=fe(y(this.g,this,b),2E3)):b()};
P_.prototype.g=function(a){this.b=0;Lf(this.o);a()};
P_.prototype.T=function(){Q_(this);P_.L.T.call(this)};A(R_,mc);A(S_,H);T_.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var Eka={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=S_.prototype;h.T=function(){this.Lb();S_.L.T.call(this)};
h.Lb=function(){null!=this.g&&this.g.dispose();null!=this.b&&this.b.Lb();null!=this.C&&this.C.dispose();this.C=null;null!=this.F&&this.F.dispose();this.F=null;this.K.clear();this.G=-1;this.D="";this.H=this.M=!1};
h.ib=function(a,b,c,d){this.Lb();this.A.B=a.K;this.b=b;this.o=d||null;this.b.ib();this.B=new T_(this.b);this.J=c||null;this.g=new Hm(this);this.D=a.K;a=U.g?IQ():xW();this.g.N(a,"externalActivityEvent",this.kD);this.g.N(a,"measurable_impression",this.ID);this.g.N(a,"viewable_impression",this.DF);this.g.N(this.b,"timeUpdate",this.yB);this.g.N(this.b,"volumeChange",this.zB);this.g.N(this.b,"pause",this.vB);this.g.N(this.b,"play",this.wB);this.g.N(this.b,"end",this.gD);this.g.N(this.b,"beginFullscreen",
this.tB);this.g.N(this.b,"endFullscreen",this.jD);this.g.N(this.b,"skip",this.Wq);this.g.N(this.b,"skipShown",this.Bs);this.g.N(this.b,"start",this.xB);this.g.N(this.b,"error",this.sB);this.g.N(this.b,"mediaLoadTimeout",this.uB);null!=this.o&&(this.g.N(this.o,"urlNavigationRequested",this.rF),this.g.N(this.o,"videoShareShown",this.CF),this.g.N(this.o,"skipshown",this.Bs),this.g.N(this.o,"skip",this.Wq),this.g.N(this.o,"PUBLISHER_INVOKED_SKIP",this.BE),this.g.N(this.o,"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.rz))};
h.ID=function(a){var b=a.b;this.A.F.measurable_impression=null!=b?b.viewabilityString:null;a.b.queryId==this.D&&U_(this,"measurable_impression",!0,!1)};
h.DF=function(a){a=a.b;a.queryId==this.D&&(this.A.F.viewable_impression=null!=a?a.viewabilityString:null,U_(this,"viewable_impression",!0,!0))};
h.kD=function(a){a=a.b;var b=E$[a.eventName];b&&a.queryId==this.D&&(this.A.F[b]=null!=a?a.viewabilityString:null,U_(this,b,!0,!0))};
h.yB=function(){var a=this.b.td();if(-1!=a){this.b.gg(.25*a)&&U_(this,"firstquartile",!0,!0);this.b.gg(.5*a)&&U_(this,"midpoint",!0,!0);this.b.gg(.75*a)&&U_(this,"thirdquartile",!0,!0);var b=this.A,c=this.b.getCurrentTime();if(!Eg(b.g,"skip")){0>b.A&&(hha(b.o,a),b.A=0);for(var a=bT(b.o,"progress"),d=b.A;d<a.length;d++){var e=a[d];if(fT(e.g)>c)break;b.A=d+1;ZL(e.b,b.b)}}}V_(this)};
h.xB=function(){this.H=!0;U_(this,"impression",!0,!0);U_(this,"creativeview",!0,!0);null!=this.J||null!=this.o||this.g.N(this.b,"click",this.qm);null!=this.J&&(this.C=new PQ,this.g.N(this.C,"click",this.qm,!1),this.C.ib(this.J));null!=this.o&&(this.F=new PQ,this.g.N(this.F,"click",this.qm,!1),this.F.ib(this.o));U_(this,"start",!0,!0);(this.b.If()||0==this.b.Td())&&U_(this,"mute",!1,!1)};
h.zB=function(){var a=this.b.If(),b=this.b.Td(),c=this.B;c.mute&&!a||!a&&0==c.volume&&0<b?U_(this,"unmute",!1,!1):this.B.muted(a,b)&&U_(this,"mute",!1,!1);this.B.mute=a;this.B.volume=b};
h.vB=function(){this.b.pe()?W_(this):this.b.Ve()&&!this.b.Zl()&&(this.B.paused=!0,U_(this,"pause",!1,!1))};
h.wB=function(){this.B.paused&&(this.B.paused=!1,U_(this,"resume",!1,!1))};
h.gD=function(){W_(this)};
h.qm=function(){U_(this,"click",!1,!1)};
h.sB=function(){U_(this,"error",!1,!1)};
h.uB=function(){U_(this,"mediaLoadTimeout",!1,!1)};
h.Bs=function(){U_(this,"skipshown",!0,!1)};
h.rz=function(a){U_(this,a.type,!1,!1)};
h.rF=function(a){this.dispatchEvent(a)};
h.CF=function(){U_(this,"videoShareShown",!0,!1)};
h.Wq=function(){U_(this,"skip",!0,!1)};
h.BE=function(){U_(this,"skip",!0,!1)};
h.tB=function(){U_(this,"fullscreen",!1,!1)};
h.jD=function(){U_(this,"exitfullscreen",!1,!1)};A(X_,TZ);h=X_.prototype;h.T=function(){a0(this);this.Ia.dispose();Z_(this);E(this.la.Ra(),ge);var a=!1;null!=this.A&&(a=this.A.hj(),this.A.Gf(),this.A=null);this.ca&&(this.ca=!1,this.b.Ve()||this.b.pe()||this.b.pause(),oM()&&!a&&(this.b.Jf(.001),this.b.load("","")),nM()&&this.b.Hf()&&!a&&this.b.lj(),this.ka("contentResumeRequested"),this.ka("allAdsCompleted"));null!=this.D&&(Nb(this.D),this.D=null);X_.L.T.call(this)};
h.muteAd=function(){U.b()&&(c_(this,"mute_interaction_url"),c_(this,"mute_url"),this.ka("MUTE_AD"),Y_(this,function(){$_(this)}))};
h.whyThisAdClicked=function(){U.b()&&c_(this,"why_this_ad_url")};
h.whyThisAdClosed=function(){U.b()&&c_(this,"why_this_ad_got_it")};
h.Hh=function(){Z_(this);X_.L.Hh.call(this);UZ(this)&&(this.B=new OZ,this.O=new S_(this.B),this.da=!1,this.ka("loaded"))};
h.Rm=function(a,b){Z_(this);a.ob()&&b.ob()&&null==bW(b)&&null==cW(b)&&(X_.L.Rm.call(this,a,b),UZ(this)&&(this.B=new OZ,this.O=new S_(this.B),this.da=!1))};
h.Hm=function(a){X_.L.Hm.call(this,a);null!=this.b&&this.b.Ym(1)};
h.Lp=function(a,b){b.preventDefault();this.ba||(this.ba=!0,d_(this,"video_card_endcap_action"));a&&(this.C.pause(),YL(a))};
h.Mp=function(){Y_(this,function(){b0(this,"video_card_endcap_dismiss")})};
h.jz=function(){b0(this,"video_card_endcap_collapse")};
h.HB=function(a,b,c){var d=SQ(b);d&&(a.C=d);var e=a.getExtension("AdSense");null!=e&&null!=e.o&&e.o.g&&this.setVolume(0);if(this.o.eu){d=a.getExtension("AdSense");(e=this.Ga)||(e=null===b?!1:"modules"==(new M(b)).F().toLowerCase()||UQ(b));var e=e||null!=d&&d.F,d=WV(a)?null:ZV(a),f;if(U.b()||wM())f=0;else{if(f=lM()){b:{for(f=0;f<this.ads.length;++f){var k;c:{k=this.ads[f];do if(kV(k,RV)){k=!1;break c}while(k=k.g);k=!0}if(!k){f=!1;break b}}f=lM()}f=!f||null==this.A||!this.A.fl()}f=f||dW(a)||this.o.sn}if(f||
!U.b()&&e)this.o.pn=!0,this.o.sn=!0;if(U.b()||this.o.sn){f=B(C(PV(a)))?!1:this.o.pn;k=QL().b.Z("enable_instream_ad_badge");var l=this.o,m=U.b()||!1,n=U.b(),d=LZ(e,a.C,d,l);d.A=f;d.R=l.QG;d.aa=m;d.O=!0;d.K=n;d.g=k;d.C=l.on;d.X=l.qn;d.ca=l.RG;d.da=0;l.on&&(d.Dg=""+ta("Visit Advertiser"))}else rV(a)?(f=a.C,!B(C(f))&&null!==d&&0<fT(d)&&(e=!0),d=LZ(e,f,d,this.o),d.H=e?Wga:Vga):(d=LZ(e,a.C,d,this.o),d.ba=!1,d.F=!1,d.b=!1);e=d;f=this.A.Zi();null===f?f=window.document.body:Jf(f);k=Z(this);l=1E3*bU(k);m=k.getExtension("why_this_ad");
n=k.getExtension("mute");e.D=new HZ(m,n);zZ(e.D)&&(n=null!=m?m.A:void 0,m="<span class='videoAdUiAdSettingsShortTooltip'>",n?m+=Y(n):(n=ta("Click for Ad Settings"),m+=n),m=nR(m+"</span>"),e.fe=m);this.g=new BZ(e,f,l);f=k.C;null!=f&&(c0(this),e.ca&&u0(this,f));e=this.g;e.M&&(e=e.M,f=0==this.X,e.b!=f&&(e.b=f,pZ(e)));this.Ga&&(f=a.getExtension("AdSense"),null!=f?(e=this.g,f=C(f.g),null!=e.G&&(R(e.G,!0),f=new M(f),f=(f.g+f.o).replace(/^www\./i,""),B(C(f))?EZ(e):Vf(e.G,f)),null!=e.R&&R(e.R,!0)):EZ(this.g));
e=[];d.F&&e.push("adAttribution");d.b&&e.push("countdown")}else d&&this.o.Kk&&(c0(this),u0(this,d));if(d=this.b)this.O.ib(a,this.b,this.A.rl(),this.g),$Z(this).N(this.O,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.Hs),$Z(this).N(this.b,"loaded",this.AF),$Z(this).N(this.b,"cardsStateChange",this.bB),$Z(this).N(this.b,"timeUpdate",
this.Js),$Z(this).N(this.b,"volumeChange",this.eB),$Z(this).N(this.b,"shareClicked",this.At),this.ve(a),e=WT(a,this.b),this.B.b=e,e=a.b,null!=e&&e instanceof pT&&(this.$d(e,C$),this.Jg(e),e=$Z(this),Jm(e,this.O,"error",this.cB,this),Jm(e,this.O,"mediaLoadTimeout",this.dB,this)),f_(this,a),a.isSkippable()&&(this.O.G=30),d.Ih(Hka(this,a)),d.load(b,c)};
h.SF=function(a,b,c){null!==a.F&&LM(IM.getInstance(),34,{evt:"filled"},!0);this.za||(this.za=!0,this.ka("contentPauseRequested"));this.HB(a,b,c);this.ca=!0;this.setVolume(this.X);this.g&&(B(C(f0(a)))?(b=this.g,null!=b.B&&(b.o.sa(b.B,"click",b.Xj),Ls(b.B,"cursor","default"))):(b=this.g,null!=b.B&&(b.o.N(b.B,"click",b.Xj),null!=b.O&&!gt(b.O)&&Ls(b.B,"cursor","pointer"))),b=a.b.ua,lb(b)||oka(this.g,b),this.g.show());c_(this,"show_ad");this.A.uh();try{b_(this,a)}catch(d){k0(this,a_,d);return}rW.getInstance().end("pi");
rW.getInstance().start("bt");this.Ia.show(this.A.Zi(),y(this.b.play,this.b))};
h.Fg=function(){Ika(this);this.ka("loaded");this.dispatchEvent(new G_(Z(this)))};
h.skip=function(){UZ(this)&&Z(this).isSkippable()&&(null!=this.g?this.g.skip():(c_(this,"skip"),t0(this)))};
h.Bt=function(){d_(this,"skipshown")};
h.start=function(){X_.L.start.call(this);rW.getInstance().start("pi");this.ha=[];try{var a=Z(this);this.M=h0(this,a);Y_(this,y(X_.prototype.SF,this,a,this.M.g,this.M.b))}catch(b){j0(this,b),this.Hh(),UZ(this)?(hM(gM,this,n0,b,void 0),this.start()):(this.ca?hM(gM,this,n0,b,void 0):(null!=this.F&&this.F.vh(hW()),iM(this,n0,b)),this.stop())}};
h.zg=function(){e_(this);return this.b.If()?0:this.b.Td()};
h.setVolume=function(a){e_(this);this.ca?this.b.setVolume(a):this.X=a};
h.pause=function(){e_(this);this.C?this.C.pause():this.b.pause();if(null!=this.D){var a=this.D;a.g.enabled&&a.g.stop();a.b=[]}};
h.resume=function(){e_(this);this.C?this.C.play():this.b.play();null!=this.D&&J_(this.D)};
h.getCurrentTime=function(){e_(this);var a=this.C?this.C.o:0;return this.b.getCurrentTime()+a};
h.Xc=function(){e_(this);var a=UZ(this)?aW(Z(this)):0;return this.b.td()+a};
h.Sd=function(){e_(this);var a=this.Xc(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
h.lg=function(){return this.b.lg()};
h.cB=function(){this.b.getError();k0(this,n0,gM(n0,this.b.getError()))};
h.dB=function(){Mka(this);k0(this,G$,gM(G$,null,(this.o.Vd/1E3).toString()))};
h.Qm=function(a,b){X_.L.Qm.call(this,a,b);p0(this,a)};
h.Hs=function(a){switch(a.type){case "start":Tka(this);via();this.ka("start");uka(this);null!=this.D&&(Nb(this.D),this.D=null);SL(QL(),420706025)&&!U.b()&&(this.D=new I_(this),J_(this.D));break;case "impression":this.ka("impression");break;case "why_this_ad_url":this.Ka=this.b.Ve();i0(this,"why_this_ad_url");this.pause();break;case "pause":this.ka("pause");break;case "why_this_ad_got_it":i0(this,"why_this_ad_got_it");this.Ka||this.resume();break;case "resume":this.ka("resume");break;case "firstquartile":this.ka("firstquartile");
break;case "midpoint":this.ka("midpoint");break;case "thirdquartile":this.ka("thirdquartile");break;case "complete":this.g&&CZ(this.g,"complete",this.getCurrentTime(),SV(Z(this)));Gka(this)||(this.ka("complete"),c_(this,"instreamAdComplete"),$_(this));break;case "click":this.g&&this.g.b.A?this.b.Ve()?this.resume():this.pause():o0(this);break;case "engagedview":q0(this);this.ka("engagedview");break;case "urlNavigationRequested":this.dispatchEvent(a);break;case "videoAuthorIconClicked":w0(this);break;
case "videoAuthorClicked":w0(this);break;case "videoClicked":this.ka("videoClicked");break;case "videoLearnMoreClicked":this.C&&!this.ba&&(this.ba=!0,d_(this,"video_card_endcap_action"));this.b.pause();SL(QL(),41351017)&&q0(this);o0(this);break;case "videoShareClicked":Pka(this);break;case "videoShareShown":Qka(this);break;case "videoTitleClicked":Rka(this);break;case "videoMuteClicked":this.na=this.X;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.na);break;case "skipshown":this.ka("skippableStateChanged");
break;case "skip":this.g&&CZ(this.g,"skip",this.getCurrentTime(),SV(Z(this)));this.C?this.Mp():t0(this);break;case "MUTE_AD":this.ka("MUTE_AD"),Y_(this,function(){$_(this)})}};
h.Nf=function(){X_.L.Nf.call(this);this.g&&CZ(this.g,"abandon",this.getCurrentTime(),SV(Z(this)));this.R&&(Nb(this.R),this.R=null)};
h.At=function(){var a=r0(this)||s0(this);null!=a&&$L(a,"sharebuttonclicked")};
h.ve=function(a){X_.L.ve.call(this,a);p0(this,"impression")};
h.$d=function(a,b){X_.L.$d.call(this,a,b);E(b,function(a){p0(this,a)},this)};
h.Jg=function(a){X_.L.Jg.call(this,a);a instanceof pT&&(a=qT(a),E(a.Ua(),function(a){p0(this,a)},this))};
h.Iq=function(){if(!UZ(this))return null;try{return h0(this,Z(this)).g}catch(a){return null}};
h.yl=function(){if(!UZ(this))return null;var a=Z(this);if(!ZZ(a))throw gM(g0);a=a.b.C;return lb(a)?null:a[0].g};
h.AF=function(){this.ka("adCanPlay")};
h.bB=function(){var a=this.g;null!=a.g&&K(a.g,"ytp-iv-drawer-open",this.b.Mq())};
h.Js=function(){var a=this.Xc(),b;e_(this);b=this.C?this.Xc():this.b.Yl();var c=this.getCurrentTime(),d=0,e=0;UZ(this)&&(e=Z(this),d=e.A.g,e=e.A.o);if(null!=this.g&&0<=a&&0<=c){if(!this.ia&&3==Z(this).Ca){var f=this.b.td(),k=SV(Z(this)),f=Math.abs(f-k);2<f&&(f=gM(Nsa,null,Number(f).toFixed(2)),f=VT(f,Z(this),this.b),k=tV(Z(this)),cM(k,f));this.ia=!0}this.g.update(c,b,a,d,e)}};
h.eB=function(){var a=this.b.Td();if(a!=this.X&&(this.X=a,this.ka("volumeChange"),0==a&&this.ka("mute"),this.g)){var b=this.g;b.M&&(b=b.M,a=0==a,b.b!=a&&(b.b=a,pZ(b)))}};
h.Jz=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=Z(this);var c=(0,window.encodeURIComponent)(C(PV(a)))+","+(0,window.encodeURIComponent)((r0(this)||s0(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=PV(a)?210:185}else"pause-video"==b.data&&this.pause()};A(x0,mc);A(y0,TZ);h=y0.prototype;
h.init=function(a){y0.L.init.call(this,a);this.na=fe(this.gB,this.o.Vd,this);$Z(this).N(window,"message",this.FF);$Z(this).N(this.da,"tick",this.UF);a=U.g?IQ():xW();$Z(this).N(a,D$,this.fB);if(this.M)this.dispatchEvent(new x0(0,this.X));else{a=bW(Z(this));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.o.wg&&(a=ch(a,"v",this.o.wg));U.b()&&(b=$g(a,"st"),b=Vka(this,b?b+" yt":"yt"),a=
ch(a,"st",b))}a=C(a)}else{var b=new M(a),c=new M("http://tpc.googlesyndication.com/pagead/js/loader12.html");"https"==b.A&&dh(c,"https");this.Ia=b.g;a=hh(c,a||"",void 0).toString()}this.D=L("IFRAME",{src:XL(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});$Z(this).N(this.D,"load",this.az);this.A.Qd().appendChild(this.D)}};
h.Rc=function(a,b,c){y0.L.Rc.call(this,a,b,c);this.C=Z(this).b instanceof pT;this.g=a.gj(!1);this.M||($Z(this).N(this.g,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.HE),$Z(this).N(this.g,qS,this.IC))};
h.stop=function(){this.da.stop();this.A.Gf();y0.L.stop.call(this)};
h.ob=function(){return 1==this.C};
h.start=function(){y0.L.start.call(this);if(!U.b()){var a={};a.pid=rW.getInstance().b;a.dn=this.Ia;a["if"]=this.M;LM(IM.getInstance(),29,a,!0)}a=Z(this);this.B.B=a.K;var b=WT(a,this.g);this.B.b=b;if(b=a.b)this.ve(a),this.$d(b,C$),this.Jg(b),f_(this,a);this.g.ib();c_(this,"show_ad");this.A.ad();null!=this.D&&(this.D.style.display="block");this.g.setVolume(this.O);this.Ga=!0;this.C&&this.ka("contentPauseRequested");D0(this)};
h.Yc=function(a,b,c){y0.L.Yc.call(this,a,b,c);B0(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.R||B0(this,"pauseAd")};
h.resume=function(){this.R&&B0(this,"resumeAd")};
h.setVolume=function(a){this.O=a;y0.L.setVolume.call(this,a);B0(this,"setAdVolume",{value:a})};
h.T=function(){this.M&&this.dispatchEvent(new x0(0,this.X));Lf(this.D);this.C&&(!this.la||this.g.Ve()||this.g.pe()||this.g.pause(),this.ka("contentResumeRequested"));this.ka("allAdsCompleted");this.ia=!1;this.ca=[];ge(this.na);this.da.dispose();y0.L.T.call(this)};
h.Fg=function(){};
h.az=function(){if(!this.M){var a=this.g.Xi();lb(a)&&(a=this.o.th);B0(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}A0(this)};
var Uka={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"};h=y0.prototype;
h.FF=function(a){a=a.b;if(this.M){if(a=fS(a.data),null!=a){try{var b=eg(a.data)}catch(c){return}null!=b&&b.session==this.X&&E0(this,b)}}else if(a.source==this.D.contentWindow){try{b=eg(a.data)}catch(c){return}b.session==this.X&&E0(this,b)}};
h.gB=function(){C0(this,G$,null,(this.o.Vd/1E3).toString());this.stop()};
h.fB=function(a){var b=a.type;if(kb(D$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!E$[b]))return;d_(this,b)}};
h.HE=function(a){switch(a.type){case "timeUpdate":a=this.g.td();var b=this.g.getCurrentTime();z0(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":F0(this,"ended");break;case "loaded":F0(this,"loadstart");break;case "mediaLoadTimeout":F0(this,"stalled");break;case "play":F0(this,"playing");break;default:F0(this,a.type)}};
h.IC=function(a){a=a.type;"loadedmetadata"==a?(a=this.g.td(),z0(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):F0(this,a)};
h.getCurrentTime=function(){return-1==this.Xc()||-1==this.Sd()?-1:this.Xc()-this.Sd()};
h.Xc=function(){return this.ba};
h.Sd=function(){return this.ha};
h.Wa=function(){return!this.R};
h.UF=function(){B0(this,"getAdRemainingTime")};A(G0,H);h=G0.prototype;h.init=function(a,b,c){H0(this,a,b,c);null==this.F&&(this.F=new Hm(this),Jm(this.F,this.K,"adsLoaderSdkAdError",this.YB,this));O0(this)};
h.start=function(){this.M=!0;K0(this);0<this.o.length?T0(this):("always"==U.o&&null!=this.X&&this.X.vh(hW()),hM(fM,this,jU,void 0,void 0),0==this.Fc&&this.dispatchEvent("contentResumeRequested"),U0(this))};
h.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);Q0(this);W0(this);U.o=this.aa;this.M=!1};
h.Bb=function(){return this.g<this.o.length?this.o[this.g].b[0]:null};
h.Wa=function(){return this.M};
h.pause=function(){null!=this.b&&this.b.pause()};
h.resume=function(){null!=this.b&&this.b.resume()};
h.skip=function(){null!=this.b&&this.b.skip()};
h.Nf=function(){null!=this.b&&this.b.Nf()};
h.getCurrentTime=function(){return null!=this.b?this.b.getCurrentTime():-1};
h.setVolume=function(a){null!=a&&(this.O=a,null!=this.b&&this.b.setVolume(this.O))};
h.Er=function(a){U.o=this.aa;var b=a.A;lb(b)?this.D++:(a=a.o,a.b&&E(b,function(a){a.ua=!1},this),this.R=Xka(this,b),ob(this.o,new Hia(b,a.b,a.g)),this.D++,this.F.sa(this.K,"adsLoaderSdkAdLoaded",this.Er,!1,this));
O0(this)};
h.YB=function(){U.o=this.aa;hM(fM,this,jU,void 0,void 0);this.D++;if(!I0(this)||2<=this.o.length-this.g){var a=fM(jU);this.dispatchEvent(new EL(a))}O0(this)};
h.aE=function(){Q0(this);W0(this);U0(this)};
h.ZB=function(a){a=a.getError().bb();try{var b={};b.ec=a;LM(IM.getInstance(),44,b)}catch(c){}this.g++;T0(this)};
h.OA=function(){this.dispatchEvent("userClose")};
h.LA=function(){this.dispatchEvent("autoClose")};
h.NA=function(){this.g++;T0(this)};
h.MA=function(){this.ha||(this.dispatchEvent("contentPauseRequested"),this.ha=!0)};
h.Gr=function(a){if("impression"==a.type)try{LM(IM.getInstance(),44,{imp:!0})}catch(b){}"vpaidEvent"!=a.type&&Yka(this,a.type,a.kb());this.dispatchEvent(a)};A(X0,mc);A(Y0,H);h=Y0.prototype;h.ib=function(){this.g||(null==this.A&&(this.A=new Hm(this)),this.A.N(this.b,"currentTimeUpdate",this.zq,!1),this.A.N(this.b,"contentWrapperError",this.kE,!1));this.b.start();this.g=!0};
h.getCurrentTime=function(){return this.b.currentTime};
h.Lb=function(){null!=this.A&&(this.A.dispose(),this.A=null);this.b.stop();this.g=!1};
h.zq=function(){if(this.g){var a=this.b.currentTime;if((0,window.isNaN)(a)||0>a)a1(this);else{var b=bla(this,a);this.B?E(b,function(a){$0(this,!0,a)},this):$0(this,!0,cb(b));
$0(this,!1,dla(this,a))}}};
h.kE=function(){a1(this)};A(b1,F);b1.prototype.g=function(){return this.b};A($Y,TZ);h=$Y.prototype;
h.Rc=function(a,b,c){null!=this.C&&(this.C.Lb(),this.C.dispose(),this.C=null);$Y.L.Rc.call(this,a,b,c);a=this.O.b.Ua();b=new zS(b);var d=4;c&&0<=c.Nm&&(d=c.Nm);this.za=null!=c?c.Ns:0;this.C=new Y0(b,a,{prefetch:d});fla(this,a);a=this.O.b.Ua();gla(this,a);null!=this.C&&(g1(this),c=$Z(this),Jm(c,this.C,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Jm(c,this.C,"adBreakReady",this.XB,this),Jm(c,this.ba,"contentComplete",this.RC,this),this.ba.b=!1);this.K.get(0);try{c={cfg:!0},
c.ads=this.la,LM(IM.getInstance(),44,c)}catch(e){}};
h.init=function(a){$Y.L.init.call(this,a);this.C.ib();this.C.zq();a=ia(0)&&!(0,window.isNaN)(0)?this.O.b.get(0,[]):[];lb(a)&&this.ka("contentResumeRequested")};
h.Fg=function(){this.oe();this.dispatchEvent(new G_(null))};
h.destroy=function(){this.dispose()};
h.T=function(){this.ba.b=!0;if(0<this.K.Pb()){var a=this.K.Ra();E(a,this.hg,this);this.K.clear()}g1(this);i1(this);null!=this.A&&(this.A.Gf(),this.A=null);$Y.L.T.call(this)};
h.stop=function(){null!=this.g&&(this.hg(this.g),this.jj())};
h.Yc=function(a,b,c){$Y.L.Yc.call(this,a,b,c);this.ha=a;this.da=b;this.J=c;null!=this.g&&H0(this.g,this.ha,this.da,this.J)};
h.pause=function(){null!=this.g&&this.g.pause()};
h.resume=function(){null!=this.g&&this.g.resume()};
h.skip=function(){null!=this.g&&this.g.skip()};
h.Nf=function(){null!=this.g&&this.g.Nf()};
h.setVolume=function(a){$Y.L.setVolume.call(this,a);null!=this.g&&this.g.setVolume(a)};
h.getCurrentTime=function(){return null!=this.g?this.g.getCurrentTime():-1};
h.Xc=function(){var a;null!=this.g?(a=this.g,a=null!=a.b?a.b.Xc():-1):a=-1;return a};
h.Sd=function(){var a;null!=this.g?(a=this.g,a=null!=a.b?a.b.Sd():-1):a=-1;return a};
h.oe=function(){return this.O.b.Ua()};
h.Bb=function(){return null!=this.g?this.g.Bb():null};
h.kt=function(){};
h.handleEvent=function(a){"contentTrackingError"!=a.type&&(po(this.X,a),h1(this))};
h.UA=function(){this.ka("userClose")};
h.TA=function(){this.ka("autoClose")};
h.hg=function(a){a.destroy();this.K.remove(a.Fc);this.g=null;null!=this.G&&(this.G.sa(a,V0,this.dispatchEvent,!1,this),this.G.sa(a,"adError",this.Up,!1,this),this.G.sa(a,"allAdsCompleted",this.zr,!1,this),this.G.sa(a,"contentPauseRequested",this.Hq,!1,this),this.G.sa(a,"contentResumeRequested",this.jj,!1,this),this.G.sa(a,"adBreakInitialized",this.Ar,!1,this))};
h.RC=function(a){this.ca=!0;-1==this.M?a.b=!1:U.b()&&!d1(this)||e1(this);ala(this.C)};
h.XB=function(a){var b=a.b;a=0==b;var c=-1==b;this.R?(a?this.ka("contentResumeRequested"):!c||U.b()&&!d1(this)||e1(this),this.R=!1):(c?fe(function(){var a=this.K.get(b);a&&this.hg(a);U.b()&&!d1(this)||e1(this)},500,this):a&&fe(function(){this.ka("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.dispatchEvent(new FL("adBreakReady",null,a)))};
h.Up=function(a){var b=a.getError(),c=b.bb();try{var d={};d.ec=c;LM(IM.getInstance(),44,d)}catch(e){}U.b()&&b&&"adLoadError"==b.Fb()&&this.dispatchEvent(a)};
h.zr=function(a){this.hg(a.target);(d1(this)||!U.b()&&this.ca)&&e1(this);this.D=null;h1(this)};
h.Hq=function(){var a=this.C;a.b.stop();a.g=!1;this.ka("contentPauseRequested")};
h.jj=function(){this.ka("contentResumeRequested");this.na||Z0(this.C);this.D=null};
h.Ar=function(a){this.D=null;a=a.target;var b={};b.adBreakTime=a.Fc;this.dispatchEvent(new FL("prefetched",a.Bb(),b));h1(this)};
h.ka=function(a){var b=null;null!=this.g&&(b=this.g.Bb());this.dispatchEvent(new FL(a,b))};
h.Gt=function(a,b){return this.ia=new b1(a,b)};A(j1,H);j1.prototype.T=function(){null!=this.b&&(this.b.sa("adsManagerLoaded",this.dispatchEvent),this.b.sa("adError",this.dispatchEvent),this.b.sa("adLoadError",this.dispatchEvent),this.b=null);j1.L.T.call(this)};A(l1,VI);h=l1.prototype;h.Cd=function(){E9(this.app,!0,this.playerType);Q4(this.app,this.playerType)};
h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
h.Dd=function(a,b,c){E9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.seekTo(d.getCurrentTime()+a,b,c,e)};
h.seekTo=function(a,b){E9(this.app,!0,this.playerType);this.app.seekTo(a,b,void 0,this.playerType)};
h.hk=function(){S9(this.app)};A(m1,iq);m1.prototype.getAdState=function(){return-1};n1.prototype.reset=function(){HC(this.b)};
n1.prototype.g=function(a,b){zC(a,b,this.b)};
n1.prototype.info=function(a,b){AC(a,b,this.b)};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Js();return b?(b=b.toLowerCase(),b+=$a("hidden"),!p(a)||b in a?b:null):null})();var p1=[2,5];A(F1,F);F1.prototype.T=function(){F1.L.T.call(this);this.b.b()};
F1.prototype.D=function(){this.o++;var a=q("yt.www.watch.ads.isAfcAdVisible");a&&ka(a)&&a()&&this.B++;this.B>=this.C?this.b.g():5<=this.o?this.b.b("Timed out waiting for MPU to become visible"):this.g.start()};var P1,H1=!1,K1=!1,G1=!1;ij("showCompanionAdLoaded",function(){K1&&(L1(),K1=!1)});
ij("watchAdsInit",function(){H1&&(H1=!1,I1())});var qla={tK:0,rK:1,qK:2,sK:3,pK:4,kK:5,nK:6,oK:7,mK:8,jK:9,wK:10,iK:11,lK:12,hK:13,uK:14,gK:15,vK:16},rla={ZM:0,$M:1,bN:2,aN:3,XM:4,YM:5,SL:6};A(S1,uk);h=S1.prototype;h.cancel=function(){this.A&&(this.A=!1,this.Y("dragend",0,0,null));this.o&&(this.o=!1,this.Y("hoverend",0,0,null),kx(this.b),R1(this))};
h.qu=function(a){kx(this.b);this.b.S(this.g,T1("move"),this.ou);this.b.S(this.g,T1("out"),this.pu);this.b.S(this.g,"touchstart",this.Cn);this.C&&this.b.S(this.g,T1("down"),this.Bn);var b=tm(a);a=wm(a);this.o=!0;this.Y("hoverstart",a.x,a.y,b);this.Y("hovermove",a.x,a.y,b)};
h.ou=function(a){var b=tm(a);a=wm(a);if(this.B){var c=vm(this.B),d=wm(this.B);d.x==a.x&&d.y==a.y&&c==b||this.Y("hovermove",a.x,a.y,b)}else this.Y("hovermove",a.x,a.y,b);this.B=null};
h.pu=function(a){var b=wm(a),c=vm(a);c&&Tf(this.D,c)?(this.B=a,this.Y("hovermove",b.x,b.y,c)):(kx(this.b),R1(this),this.o=!1,this.Y("hoverend",b.x,b.y,c))};
h.RB=function(a){this.qu(a);this.Bn(a)};
h.Bn=function(a){if(!ia(a.button)||0==a.button){kx(this.b);this.b.S(window.document,T1("move"),this.QB);this.b.S(window.document,T1("up"),this.aH);var b=tm(a);if(Cc)this.b.S(this.g,"dragstart",this.fz);else if(xm(a),(LA||Is)&&b)a:{for(var c=b;c;){if(Zf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.A=!0;a=wm(a);this.Y("dragstart",a.x,a.y,b);this.Y("dragmove",a.x,a.y,b)}};
h.fz=function(a){xm(a)};
h.QB=function(a){var b=tm(a);b==window.document&&(b=null);a=wm(a);this.Y("hovermove",a.x,a.y,b);this.Y("dragmove",a.x,a.y,b)};
h.aH=function(a){kx(this.b);this.A=!1;var b=um(a),c=tm(a);a=wm(a);b&&Tf(this.D,b)?(this.b.S(this.g,T1("move"),this.ou),this.b.S(this.g,T1("out"),this.pu),this.b.S(this.g,T1("down"),this.Bn),this.b.S(this.g,"touchstart",this.Cn),this.Y("dragend",a.x,a.y,c)):(R1(this),this.o=!1,this.Y("dragend",a.x,a.y,c),this.Y("hoverend",a.x,a.y,c))};
h.Cn=function(a){var b=a.changedTouches[0];b&&(kx(this.b),this.b.S(this.g,"touchmove",this.bH),this.b.S(this.g,"touchend",this.ru),this.b.S(this.g,"touchcancel",this.ru),this.F=b.identifier,a=tm(a),this.o||(this.o=!0,this.Y("hoverstart",b.pageX,b.pageY,a)),this.Y("hovermove",b.pageX,b.pageY,a),this.C&&(this.A=!0,this.Y("dragstart",b.pageX,b.pageY,a),this.Y("dragmove",b.pageX,b.pageY,a)))};
h.bH=function(a){var b=U1(this,a);b&&(xm(a),a=tm(a),this.Y("hovermove",b.pageX,b.pageY,a),this.C&&this.Y("dragmove",b.pageX,b.pageY,a))};
h.ru=function(a){var b=U1(this,a);if(b){kx(this.b);R1(this);this.o=!1;var c=tm(a);this.C&&(this.G||xm(a),this.A=!1,this.Y("dragend",b.pageX,b.pageY,c));this.Y("hoverend",b.pageX,b.pageY,c)}};
h.T=function(){this.C&&(Cc&&this.D.removeAttribute("draggable"),this.D.style.removeProperty("touch-action"));kx(this.b);S1.L.T.call(this)};Z1.prototype.update=function(a,b,c,d){this.width=b;this.o=c;this.B=d;this.b=b-c-d;this.A=df(a-c,0,this.b);this.position=this.A+c;this.g=this.A/this.b};A(a2,uk);h=a2.prototype;h.gd=function(){return this.adSystem+"_"+this.adType};
h.Se=function(){return this.gd()};
h.Bb=function(){return this.g?this.g.Bb():null};
h.Wp=v;h.pl=v;h.Rn=v;h.show=v;h.nk=r;A(c2,P);c2.prototype.T=function(){c2.L.T.call(this);this.b&&(e2(this.o.app,this.b),this.b=null);f2(this);Jf(d2(this));Jf(g2(this));this.B=this.A=null;delete this.o};A(m2,F);m2.prototype.start=function(){(0,window.isNaN)(this.b)&&(this.o=D(),this.b=fe(this.B,this.A-this.g,this))};
m2.prototype.stop=function(){(0,window.isNaN)(this.b)||(this.o=this.g=0,ge(this.b),this.b=window.NaN)};
m2.prototype.pause=function(){(0,window.isNaN)(this.b)||(this.g=D()-this.o,ge(this.b),this.b=window.NaN)};
m2.prototype.T=function(){(0,window.isNaN)(this.b)||ge(this.b)};A(o2,a2);o2.b=15;h=o2.prototype;h.nk=function(){l2(this.B,13);this.M||this.g.destroy();this.C=this.F=!1;t2(this)};
h.gd=function(){var a;a=this.Bb();var b=aU(a);if(4==b2(b).g)return b;if(mV(a))a=3;else if(a.isSkippable())a=nV(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
h.Se=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.b,b=n2(a);M4(a.app,b);this.B.o=Dq();this.D=this.b.Da();this.A.subscribe("progresssync",this.Dr,this);this.b.g.X&&Lf(uf("video-ad-status-bar",this.D));me(this.D,["ad-showing","ad-interrupting"]);this.b.subscribe("resize",this.Sn,this);try{this.o.N(this.g,"adError",this.JI),this.o.N(this.g,"click",this.II),this.o.N(this.g,"complete",this.OC),this.o.N(this.g,"engagedview",this.iD),this.o.N(this.g,"pause",this.jv),this.o.N(this.g,"start",this.kv),this.o.N(this.g,"skip",this.MI),
this.o.N(this.g,"MUTE_AD",this.nk),this.o.N(this.g,"skippableStateChanged",this.YE),this.o.N(this.g,"youTubeChannelMetadata",this.MD),this.o.N(this.g,"companionInitialized",this.KI),this.o.N(d2(this.b.G),"mouseup",this.LI),this.Sn(),this.M||this.g.start()}catch(c){u2(this,c)}a=y1(this.b);this.b.g.B&&a.experiments.Z("ad_info_icon_in_card")&&F4(this.b,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
h.mv=function(a,b,c){if("newdata"==a&&this.videoData!=c){a=new sla;a.isSkippable=this.R;a.skip=y(this.g.skip,this.g);a.muteAd=y(this.g.muteAd,this.g);a.whyThisAdClicked=y(this.g.whyThisAdClicked,this.g);a.whyThisAdClosed=y(this.g.whyThisAdClosed,this.g);a.sendAdsPing=Yp;a.skipShown=y(this.g.Bt,this.g);if(b=this.Bb()){a.clickThroughUrl=PV(b)||"";var d;(d=this.b.g.Ca)||(d=c.lengthSeconds,(b=ZV(b))?(eT(b,d),d=fT(b)):d=null);a.skipTime=d||0;a.adSystem=this.adSystem;if(b=v2(this))a.whyThisAdInfo=b;if(d=
w2(this))a.muteAdInfo=d;var e=y1(this.b);this.b.g.B&&e.experiments.Z("ad_info_icon_in_card")&&(e={showAdInfoIcon:!0},e.whyThisAdInfo=b,e.muteAdInfo=d,F4(this.b,"onAdMetadataAvailable",e))}a.videoId=c.videoId;a.videoId||(a.videoUrl=this.Rn()||"");c.spacecastModule=this.aa;r2(this.b,-1,a)}this.videoData=c};
h.lv=function(a){a=a.state;O(a,1)||this.H.pause();O(a,128)?u2(this,Error(a.b.message||"Video player error.")):O(a,1)&&this.H.start()};
h.kv=function(){this.J=!0;this.C=!1;if(!this.F){this.F=!0;var a=this.B;j2(a);var b=k2(a);if((0,window.isNaN)(a.o))j2(a);else{var c=Dq()-a.o;b.ad_stl=c}i2(a,4,b);s2(this.b,1);q2(this,!1);this.G&&1!=this.G&&AC("yt_abt",this.G,"video_to_ad");this.videoData&&this.videoData.clientPlaybackNonce&&AC("ad_cpn",this.videoData.clientPlaybackNonce,"video_to_ad");this.videoData&&this.videoData.videoId&&AC("docid",this.videoData.videoId,"video_to_ad");AC("cpn",z1(this.b).clientPlaybackNonce,"video_to_ad");zC("apbs",
void 0,"video_to_ad");(a=N("ADS_INSTREAM_FIRST_PLAY"))&&F4(this.b,"onAdAnnounce",a)}r2(this.b,1);this.Y("adPlay",this)};
h.jv=function(){this.J&&(this.J=!1,r2(this.b,2))};
h.OC=function(){if(!this.C){var a=this.B;j2(a);var b=k2(a),c=a.b.pl();c?b.ad_fmt=c:j2(a);i2(a,5,b);y1(this.b).Qa&&F4(this.b,"onAdComplete");t2(this);this.C=this.F=!1}};
h.iD=function(){var a=this.B;a.b.Y("AD_LOGGING_EVENT",777,k2(a))};
h.MI=function(){this.C=!0;var a=this.B,b=k2(a),c=a.b.pl();c?b.ad_fmt=c:j2(a);i2(a,14,b);y1(this.b).Qa&&F4(this.b,"onAdSkip");t2(this)};
h.YE=function(){var a=N("ADS_INSTREAM_SKIPPABLE");a&&F4(this.b,"onAdAnnounce",a)};
h.MD=function(){var a=this.Bb();if(a){var b=a.ea,a=a.ba,c=y1(this.b),d=v2(this),e=w2(this);if(a&&b)f={},f.videoTitle=b.title,f.channelThumbnailUrl=a.b,f.channelTitle=a.authorName,f.channelVideoCount=a.videoCount,f.showAdInfoIcon=this.b.g.B&&c.experiments.Z("ad_info_icon_in_card"),f.whyThisAdInfo=d,f.muteAdInfo=e,F4(this.b,"onAdMetadataAvailable",f);else if(this.b.g.B&&c.experiments.Z("ad_info_icon_in_card")){var f={showAdInfoIcon:!0};f.whyThisAdInfo=d;f.muteAdInfo=e;F4(this.b,"onAdMetadataAvailable",
f)}}};
h.KI=function(a){a=a.event;var b=a.b;b&&b instanceof H&&this.Y("adCompanionInitialized",a.kb(),b)};
h.JI=function(a){var b={};try{b.error_code=a.event.getError().bb()}catch(c){b.error_code=900,b.error_message=c.toString()}l2(this.B,32,b);u2(this,a.event.getError())};
h.II=function(){var a=this.B;j2(a);var b=k2(a);if(a.g){var c=D4(a.A);b.ck_xy=Math.round(a.g.x-c.left)+"x"+Math.round(a.g.y-c.top);b.ck_wh=c.width+"x"+c.height}i2(a,15,b);this.g.pause();this.Y("select")};
h.Dr=function(){};
h.yr=function(){this.g.Nf();q2(this,!0)};
h.T=function(){this.b.Fa("control_toggle_play_pause",this.nv,this);this.b.Fa("control_play",this.Mm,this);this.b.Fa("control_pause",this.Lm,this);this.b.Fa("resize",this.Sn,this);pt(this.o);this.A.Fa("statechange",this.lv,this);this.A.Fa("internalAbandon",this.yr,this);this.A.Fa("internalvideodatachange",this.mv,this);this.A.Fa("progresssync",this.Dr,this);this.M||this.g.destroy();this.K&&(Jf(this.K),this.K=null);this.O&&(Lf(this.O),this.O=null);this.D&&(pe(this.D,["ad-showing","ad-interrupting"]),
this.D=null);this.C=!1;N4(this.b);this.H.dispose();this.H=null;o2.L.T.call(this)};
h.Wp=function(){return this.A.Vh()};
h.pl=function(){return this.videoData&&this.videoData.g?this.videoData.g.mimeType:null};
h.Rn=function(){return this.videoData&&this.videoData.la?Ez(this.videoData.la.g()):null};
h.nv=function(){this.J?this.Lm():this.Mm()};
h.Mm=function(){this.g.resume();this.kv()};
h.Lm=function(){this.g.pause();this.jv()};
h.Sn=function(){bt(d2(this.b.G),this.b.app.D.Ja())};
h.LI=function(a){p(a.b)||km(a);var b=a.b;p(a.g)||km(a);this.B.g=new jf(b,a.g)};A(z2,a2);h=z2.prototype;
h.show=function(){if(!this.C||!T4(this.b)){I(this.b.Da(),"ad-showing");this.o=d2(this.b.G);var a=this.g.Bb().getHeight();this.o.style.height=Qs(a,!0);I(this.o,"ad-overlay");this.A.N(this.o,"mouseup",this.QI);try{this.A.N(this.g,"autoClose",this.qC),this.A.N(this.g,"userClose",this.sF),this.A.N(this.g,"userRecall",this.tF),this.A.N(this.g,"click",this.OI),this.A.N(this.g,"impression",this.wD),this.A.N(this.g,"adError",this.NI),A2(this,"normal"),this.D||this.g.start(),this.Tn(),this.b.subscribe("resize",
this.qk,this),this.b.subscribe("presentingplayerstatechange",this.ov,this),this.Y("adEnd",this)}catch(b){this.Y("adError",b)}}};
h.T=function(){pt(this.A);this.b.Fa("resize",this.qk,this);this.b.Fa("presentingplayerstatechange",this.ov,this);oe(this.b.Da(),"ad-showing");this.g&&(this.D||this.g.destroy(),this.g=null);this.o&&oe(this.o,"ad-overlay");this.o=null;this.C=!1;z2.L.T.call(this)};
h.sF=function(){this.o&&this.g&&this.g.Bb()&&(this.o.style.height=Qs(0,!0));this.C=!0;var a=this.B;a.g=D();var b=y2(a);x2(a,6,b);this.b.Y("overlay_ad_close")};
h.qC=function(){this.b.Y("overlay_ad_close")};
h.tF=function(){this.b.Y("overlay_ad_open")};
h.OI=function(){this.b.pauseVideo();var a=this.B;a.g=D();var b=y2(a);if(a.o){var c=D4(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}x2(a,100,b)};
h.wD=function(){var a=N("ADS_OVERLAY_IMPRESSION");a&&F4(this.b,"onAdAnnounce",a);this.b.Y("overlay_ad_open")};
h.QI=function(a){this.B.o=a.target==a.currentTarget?null:new jf(a.pageX,a.pageY)};
h.NI=function(a){a=a.event.getError();this.Y("adError",a)};
h.ov=function(a){O(a.state,16)&&A2(this,"normal")};
h.qk=function(){};
h.Tn=function(){var a=this.B;a.A=D();var b=y2(a);x2(a,3,b)};A(B2,F);B2.g="rm";B2.b=10;B2.B=200;B2.o=200;B2.A=190;h=B2.prototype;
h.load=function(){var a;a=this.b.app.D.Ja();var b;this.b.g.b?b=!1:(b=0<(this.C&3)?190:200,b=200>a.width||a.height<b);if(b){b=this.o;var c=C1(b);c.ck_wh=a.width+"x"+a.height;E4(b.b,14,c);Q1();this.qd(Error("The player size is too small."))}else if(this.B=this.b.J)a=this.o,D1(a.b,9,C1(a)),a=A1(this.b),(b=this.b.g.serverPrefetchedVast)&&0<(this.C&3)?(a.g=b,this.b.g.serverPrefetchedVast=void 0):(a.b=this.Od(),a.zi=!this.Zq()),this.B.N("adsManagerLoaded",this.hv,!1,this),this.B.N("adError",this.gv,!1,
this),this.Ij(this.B,a)};
h.ql=function(){var a=x1(this.b.g,y1(this.b),z1(this.b));a.surveyCreativeData=this.b.g.surveyCreativeData;a.$G=this.ah();return a};
h.ah=function(){return this.R};
h.Od=v;h.Zq=function(){return!0};
h.hv=function(a){if(a.o===this){zC("aml");zC("aml",void 0,"video_to_ad");try{var b=this.ql(),c=a.b}catch(d){this.Ye(d);return}this.A.N(c,"companionBackfill",y(this.GI,this,c));this.A.N(c,"loaded",y(this.FI,this,c));this.A.N(c,"adError",y(this.EI,this,c));this.A.N(c,"allAdsCompleted",r);this.A.N(c,"contentPauseRequested",r);this.A.N(c,"contentResumeRequested",r);c=pW(a,this.b.H,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Ye(d)}}};
h.FI=function(a,b){Om(this.A);var c=b.kb(),d=c.ob(),e=this.o,f=C1(e);f.ad_man=d?"instream":"overlay";D1(e.b,12,f);e=a.yl();switch(d?this.vg(a,c,e):this.ne(a,c)){case 0:L2(this);break;case 1:a.destroy();this.qd(Error("Unable to create a display state."));break;case 2:c=this.o;E4(c.b,21,C1(c));a.destroy();this.qd(Error("Fallback to next ad."));break;case 3:this.qd(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.EI=function(a,b){Om(this.A);a.destroy();this.Ye(b.getError())};
h.gv=function(a){var b=a.getError();"adLoadError"==b.Fb()&&a.b===this&&this.Ye(b)};
h.GI=function(){G2(this)};
h.vg=function(a,b,c){var d=z1(this.b)&&z1(this.b).spacecastModule;if(d&&c&&!this.M.test(c))return 3;E2(this,zV(b));D2(this,new o2(this.ah(),this.b,a,b.isSkippable(),void 0,d,this.g.b));return 0};
h.ne=function(a,b){E2(this,zV(b));D2(this,new z2(this.ah(),this.b,a));return 0};
h.Ye=function(a){if(a){var b=this.o,c=C1(b);a&&t1(a,c);E4(b.b,32,c);this.qd(a)}};
h.qd=function(){D3(this.F)};
h.T=function(){this.B&&(this.B.sa("adsManagerLoaded",this.hv,!1,this),this.B.sa("adError",this.gv,!1,this));Om(this.O);Om(this.A);B2.L.T.call(this)};
h.Ij=function(a,b){try{k1(a,b,this),zC("ar"),zC("ar",void 0,"video_to_ad")}catch(c){this.Ye(c)}};A(H2,a2);h=H2.prototype;h.show=function(){if(y1(this.b).experiments.Z("fix_vmap_afc_mpu_api_stats_ads"))if(G1)this.pq();else{var a=y1(this.b).experiments;I1();M1();N1(a).then(y(this.HI,this),y(this.pq,this))}else I1(),this.o=Yi(y(this.Yz,this),1E3)};
h.T=function(){M2(this);H2.L.T.call(this)};
h.Yz=function(){var a=q("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.Se();a&&a()&&this.B++;2<=this.B?(b.format=this.gd(),M2(this),this.Y("AD_LOGGING_EVENT",3,b),this.Y("adEnd",this)):5<=this.A&&(M2(this),this.Y("AD_LOGGING_EVENT",2,b),this.Y("adEnd",this))};
h.HI=function(){var a={};a.at=this.Se();a.format=this.gd();this.Y("AD_LOGGING_EVENT",3,a);this.Y("adEnd",this)};
h.pq=function(){var a={};a.at=this.Se();this.Y("AD_LOGGING_EVENT",2,a);this.Y("adEnd",this)};A(N2,B2);N2.prototype.ql=function(){var a=N2.L.ql.call(this);a.fp=0==this.H;a.Dy=T4(this.b)?a.fp:!0;return a};
N2.prototype.Od=function(){var a;a=this.D;(a=4==this.C&&a.b.afvInvideoAdTag?a.b.afvInvideoAdTag:a.b.afvAdTag)?(va(a,"http:")&&(a=a.substr(5)),a=Wj(a,{videoad_start_delay:F2(this)})):a="";return a};
N2.prototype.ne=function(a,b){if(this.b.g.b)return 1;1==this.g.b&&(C2(this),D1(this.b,1));return N2.L.ne.call(this,a,b)};
N2.prototype.qd=function(a){var b=this.b.g;b.b?N2.L.qd.call(this,a):b.ba||this.C&4?(D2(this,new H2(this.b)),L2(this)):N2.L.qd.call(this,a)};O2.prototype.b=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.D,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.D,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=ic(this.F);c&&(k.pos=c);l&&null==k.tile&&(k.tile=l.toString());f&&null==k.kmyd&&(k.kmyd=f);e&&0<e.length&&this.A&&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&&ec(k,"sz");e=Rj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.o,"pfadx",this.B,";",e,"?"].join("")};P2.prototype.b=function(a,b){if(0<(b&3)){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new M(this.g),f=e.b,k=f.get("scp",""),k=k?k+"&":"";-1==k.indexOf("pos")&&f.set("scp",k+("pos="+c));f.set("vpos",d);return e.toString()}return this.g};A(J2,z2);J2.prototype.qk=function(){};
J2.prototype.gd=function(){return"1_3"};
J2.prototype.Tn=function(){1==this.G?this.Y("AD_LOGGING_EVENT",2,{}):J2.L.Tn.call(this)};A(Q2,B2);Q2.prototype.Od=function(){return this.aa.b(r1(this.g),this.C)};
Q2.prototype.ne=function(a,b){E2(this,zV(b));var c=jV(b);if(v1(c,"rm"))return 1==this.C||T4(this.b)||Q1(),a.Of(),this.b.g.H?(D2(this,new H2(this.b)),0):2;if(v1(c,"blockAllAds"))return a.Of(),D2(this,new J2(this.b,a,1)),0;if(v1(c,"hideMaster"))return D2(this,new J2(this.b,a,0)),0;if(this.b.g.b)return 1;D2(this,new z2(this.ah(),this.b,a));return 0};A(R2,Q2);var zla={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=R2.prototype;h.Od=function(){if(this.b.g.ga){var a=new P2(this.b.g.dynamicAllocationAdTag);return a.b(r1(this.g),this.J)}a=new O2(this.b.g.dynamicAllocationAdTag,this.b.g,this.H);return a.b(r1(this.g),this.J)};
h.Ij=function(a,b){if(this.G){b.o=w1(this.G);var c=this.b.g.ia;c&&(b.C=c);b.Sh=F2(this)}R2.L.Ij.call(this,a,b)};
h.vg=function(a,b,c){S2(this,a);return 1!=this.D&&2!=this.D?1:R2.L.vg.call(this,a,b,c)};
h.ne=function(a,b){S2(this,a);switch(this.D){case 1:return R2.L.ne.call(this,a,b);case 2:var c;this.b.g.b?c=1:(1==this.g.b&&(C2(this),D1(this.b,1)),E2(this,zV(b)),D2(this,new z2(2,this.b,a)),c=0);return c;default:return 1}};
h.ah=function(){return this.D||0};
h.qd=function(a){var b=this.b.g;b.b?R2.L.qd.call(this,a):b.ba||this.G&4?(D2(this,new H2(this.b)),L2(this)):R2.L.qd.call(this,a)};/*
 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.
*/
T2.prototype.cancel=function(a){if(this.b)this.o instanceof T2&&this.o.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.F--,0>=b.F&&b.cancel())}this.K?this.K.call(this.J,this):this.G=!0;this.b||(a=new c3,X2(this),V2(this,!1,a))}};
T2.prototype.H=function(a,b){this.D=!1;V2(this,a,b)};
T2.prototype.Ei=function(a){X2(this);V2(this,!0,a)};
T2.prototype.then=function(a,b,c){var d,e,f=new Fd(function(a,b){d=a;e=b});
Y2(this,d,function(a){a instanceof c3?f.cancel():e(a)});
return f.then(a,b,c)};
Cd(T2);A(W2,ua);W2.prototype.message="Deferred has already fired";W2.prototype.name="AlreadyCalledError";A(c3,ua);c3.prototype.message="Deferred was canceled";c3.prototype.name="CanceledError";b3.prototype.g=function(){delete a3[this.wa];throw this.b;};
var a3={};A(d3,B2);d3.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";d3.o="43";d3.b=function(a){var b=new T2;fk(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Lc:function(){var c=Error(a+" timed out");X2(b);V2(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);X2(b);V2(b,!1,c)},
tb:function(a){b.Ei(a)}});
return b};
d3.prototype.Od=function(){return""};
d3.prototype.Ij=function(a,b){var c=this.C;c&1||c&4||c&8?this.D?c&8?ola(this.D):("goo.gl"==Ng(this.D)?(c=d3.b("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.D),Z2(c,function(a){a=eg(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new M(a.longUrl);nh(a,"video_format","43");return d3.b(a.toString())},this)):c=d3.b(this.D),Z2(c,function(c){b.g=c.responseText;
k1(a,b,this)},this),Y2(c,null,this.Ye,this)):this.Ye(Error("Invalid empty URL")):this.Ye(Error("Invalid request type: "+c))};A(e3,P);e3.prototype.clear=function(){for(var a=0;a<this.b.length;a++)this.b[a].detach(),Nb(this.b[a]);this.b=[]};
e3.prototype.F=function(a){xm(a);this.o=Math.max(0,this.o-f3(this));g3(this)};
e3.prototype.D=function(a){xm(a);this.o=Math.min(this.b.length-1,this.o+f3(this));g3(this)};A(h3,yK);h=h3.prototype;h.T=function(){h3.L.T.call(this);this.clear()};
h.clear=function(){this.b.clear();this.o.stop()};
h.start=function(){this.o.start();this.ln()};
h.ln=function(){g3(this.b)};
h.Yy=function(a){var b=aV(a),c=bV(b),d;d=new OV(AT(c,"action",0));var e=zT(c,"merchant"),f=["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*yT(c,"rating",0)/5)+"%;"}]]],["span","iv-btp-card-reviews",zT(c,"review_text")]];.01>yT(c,"rating",0)&&(f=["div"]);var k=["div","iv-btp-card-merchant",["span","iv-btp-card-merchant-text",e]];d={href:eV(d),target:"_blank"};var e=["div","iv-btp-card-image",["img",
{src:cV(dV(b))}]],l=["div",["yt-ui-ellipsis","yt-ui-ellipsis-2","iv-btp-card-short-info"],["span","iv-btp-card-action",zT(c,"price")],k],b=["div","iv-btp-card-long-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"],zT(b,"headline")]]],["span","iv-btp-card-action",zT(c,"price")],k,f],c=["div","iv-btp-impressions"];a=bV(aV(a));f={TRIGGER_TYPE:"YOUTUBE_DRAWER_AUTO_OPEN"};for(k=0;k<BT(a,"event");k++){var m=new UW(AT(a,
"event",k));7==m.Fb()&&(m=ou(zT(m,"base_url"),f),c.push(["img",{src:m}]))}return new P(["div","iv-btp-card",["a","iv-btp-card-content",d,e,l,b,c]])};
h.Uz=function(){this.C.start()};var i3=null;A(j3,a2);j3.prototype.show=function(){var a=z1(this.b).videoId;if(a){var b=this.g.Bb();Uy(y1(this.b).G,a,{uf:eW(b)||null,Rg:fW(b)||null});y1(this.b).experiments.Z("enable_pla_desktop_shelf")&&Gla(this);a={};a.format=this.gd();a.at=this.Se();u1(b,a);this.Y("AD_LOGGING_EVENT",3,a)}};A(k3,B2);k3.prototype.Od=function(){return this.b.g.Ia||""};
k3.prototype.Zq=function(){return!1};
k3.prototype.ne=function(a,b){E2(this,zV(b));D2(this,new j3(this.b,a));5!=this.g.b&&G2(this);return 0};
k3.prototype.vg=function(){return 1};A(l3,k3);l3.prototype.Od=function(){return this.b.g.forceAdUrl||""};A(I2,z2);I2.prototype.qk=function(){};
I2.prototype.gd=function(){return"4_3"};A(u3,B2);
u3.prototype.Od=function(){var a;if(B(this.D)||0!=r1(this.g)){var b=this.G;if(b.b.Ma&&b.b.qa){a={};var c="youtube_watch_"+b.g;a.nw="10613";a.asnw=b.b.Ma;a.ssnw=b.b.Ma;a.caid=b.b.qa;a.vdur=b.C;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.b.na)||(c._fw_d_001=b.b.na);b.b.gender&&(c._fw_d_002=b.b.gender);b.b.ua&&(c["_fwu:10613:lang"]=b.b.ua);b.b.la&&(c._fw_dbp=b.b.la);b.b.da&&(c._fw_distributorvideoassetid=b.b.da);c._fw_yt_type=t3(b)?"long":"short";if(n3(b)){a.prof=t3(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=q3(b.o)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.B&1&&!b.D){e={};d=o3(b);if(s3(b.o)){var f;if(s3(b.o)){f=0;var k=b.A.o;if(k)for(var k=k.o,l=0;l<k.length&&(s3(k[l])&&f++,k[l].getId()!=b.o.getId());l++);}else f=0;d+=f}e.slid=d;e.ptgt="a";e.slau=p3(b);e.tpos=r3(b.o)?b.C.toString():r1(b.o.sb).toString();d=Rj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=Rj(e,"&")+";"}b.B&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},
e.tpos=q3(b.o)?"10":r3(b.o)?b.C.toString():r1(b.o.sb).toString(),d+=Rj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Rj(e,"&")+";");b.B&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Rj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+Rj(a,"&")+";"+Rj(c,"&")+";"+b}else e="10613:10613_youtube_"+b.g.split("_")[0],a.prof="10613:10613_youtube_"+b.g,a.crtp="vast2s",a.flag="+emcr",d={},b.D||(d.ptgt="a",d.slid=
"preroll",d.slau=p3(b),d.w="480",d.h="360",d.tpos="0",d.tpcl="preroll",d.envp=e,d.cd="1440,900"),a="//2975c.v.fwmrm.net/ad/g/1?"+Rj(a,"&")+";"+Rj(c,"&")+";"+Rj(d,"&")}else a=""}else a=this.D;return a};
u3.prototype.vg=function(a,b){return u3.L.vg.call(this,a,b,null)};
u3.prototype.ne=function(a,b){var c=jV(b);return v1(c,"rm")?(this.F.B=hc(a),2):this.b.g.b?1:v1(c,"hideMaster")?(a.F&&a.F.zf()&&a.F.zf().Jt(gia(a.Bb())),D2(this,new I2(this.b,a)),0):u3.L.ne.call(this,a,b)};v3.prototype.Fb=function(){return this.o};
v3.prototype.create=function(a,b){switch(this.o){case 1:return new N2(a,b,this.b);case 2:return new Q2(a,b,this.b);case 3:return new R2(a,b,this.b,this.g);case 5:return new u3(a,b,this.b);case 4:return new d3(a,b);case 7:return new k3(a,b,this.b);case 8:return new l3(a,b,this.b);default:return null}};A(w3,uk);h=w3.prototype;h.getId=function(){return this.wa};
h.show=function(){this.F?this.b instanceof z2&&A2(this.b,"normal"):(this.F=!0,this.b instanceof o2&&A3(this.o,"bs"),this.b.subscribe("adEnd",this.Cr,this),this.b.subscribe("adError",this.ev,this),this.b.subscribe("AD_LOGGING_EVENT",this.$r,this),this.b.subscribe("select",this.dv,this),this.b.subscribe("adCompanionInitialized",this.fv,this),this.b.show(),C3(this,!0))};
h.Cr=function(){this.g&&(E3(this),G4(this.o));K2(this)};
h.ev=function(a){if(a){var b={};t1(a,b);B3(this,b);E4(this.o,32,b)}E3(this);K2(this)};
h.$r=function(a,b){B3(this,b);D1(this.o,a,b)};
h.dv=function(){this.D=!1};
h.fv=function(a,b){this.Y("adCompanionInitialized",a,b)};
h.T=function(){E3(this);this.b=null;null!=this.B&&(this.B.dispose(),this.B=null);w3.L.T.call(this)};var J3=[new q1(1)];var Nla={qx:"m",Tw:"f"};A(K3,F);K3.prototype.B=function(a){a=null!=a.kb()?a.kb().C:null;if(null!=a){var b=this.C;b.B&&b.B.getVideoData().videoId==a?(a=b.B,a.o?(b=a.o,a=av(b,"engage"),a.A=1,b=gG(b.b),a=ra(Tu,a.Ma,Wu(a),Su(a),b)):a=null):a=null;this.g=a}};
K3.prototype.A=function(){this.b&&this.g&&this.g()};A(M3,F);M3.prototype.O=function(){this.o=window.NaN};
M3.prototype.J=function(){if(O(us(this.b.b),8)){if(N3(this)){this.C=this.C||D()/1E3;this.F&&(this.B+=D()/1E3-this.F);var a=this.b.getCurrentTime(1);0!=this.g&&Math.abs(a-this.g)>this.R?(this.g=this.b.getCurrentTime(1),O3(this,"seek"),this.B=0,this.A.push(D()/1E3)):(0,window.isNaN)(this.o)&&0!=this.g&&(O3(this,"pause"),this.B=0,this.A.push(D()/1E3));Zi(this.o);this.o=window.NaN;this.g=0}}else O(us(this.b.b),4)&&0==this.g&&N3(this)&&(this.g=this.b.getCurrentTime(1),this.o=Xi(y(this.O,this),1E3*this.M),
this.F=D()/1E3)};
M3.prototype.T=function(){Zi(this.o);this.o=window.NaN;this.g=0;this.b.Fa("applicationplayerstatechange",this.J,this)};A(P3,F);h=P3.prototype;h.Tt=function(){this.b.subscribe("beginseeking",this.Gi,this)};
h.Nt=function(a,b){return a.g&&s3(a)?b+this.A+this.o:b};
h.Mt=function(a,b){return!a.g||r3(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.A+this.o};
h.Zo=function(a){if(a.g&&s3(a)&&!(0>=this.o)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=z3(a)+this.A,b=new fq(c,c+this.o-1,b);this.B[a.getId()]=b;this.b.wb([b])}};
h.rv=function(a){a.g&&s3(a)&&(Q3(this,a.getId()),this.Gi())};
h.Gi=function(){(0,window.isNaN)(this.g)||(Zi(this.g),this.g=window.NaN);var a=K4(this.b);S3(this,a,this.b.app.$a.Mb()/100);a.oc("transition","");a.oc("opacity","1")};
h.tv=function(a){var b=z3(a)+this.A+this.o,b=50>=1E3*this.b.getCurrentTime(1)-b;a.g&&s3(a)&&b&&(a=.001*(z3(a)+this.D),this.b.seekTo(a),0>=this.C||(a=K4(this.b),a.oc("opacity","0"),S3(this,a,0),Xi(y(this.RI,this),0)))};
h.RI=function(){var a=K4(this.b);a.oc("transition","opacity "+String(this.C)+"ms linear");a.oc("opacity","1");R3(this,a,this.C,1)};
h.qv=function(a,b,c){if(!(0,window.isNaN)(this.g)){var d=Math.max(1,b-D()),d=-1*a.Fd()*c/d,d=Math.max(0,a.Fd()+d);S3(this,a,d);this.g=0<d?Sq(y(this.qv,this,a,b,c),c):window.NaN}};
h.pv=function(a,b,c){if(!(0,window.isNaN)(this.g)){var d=Math.max(1,b-D()),e=this.b.app.$a.Mb()/100,d=(e-a.Fd())*c/d,d=Math.min(e,a.Fd()+d);S3(this,a,d);this.g=d<e?Sq(y(this.pv,this,a,b,c),c):window.NaN}};
h.T=function(){this.Gi();this.b.Fa("beginseeking",this.Gi,this)};A(T3,P3);h=T3.prototype;h.Tt=r;h.Nt=function(a,b){return b};
h.Mt=function(a,b){return b};
h.Zo=r;h.rv=r;h.tv=r;h.T=r;A(U3,F);U3.prototype.A=function(){var a=this.b.g.g;if(this.B&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Pb(this.D.A,function(a){a.isDisposed();if(a.isVisible&&!(0>=W3(this,a))){var f;f=a.getId();f=this.D.D[f];if(W3(this,a)>b){var k=!X3(this,a);k!=f.visible&&(f.visible=k,c.push(f));k||(f=W3(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&this.b.b.wb(c,1);if(d){var f=0;0<this.o&&(f=D()/1E3-this.o);Qla(this,a-f-e+2)}else V3(this)}};
U3.prototype.g=function(){return this.o};
U3.prototype.T=function(){V3(this);this.b.Fa("endseeking",this.A,this)};A(Y3,F);h=Y3.prototype;h.Eg=function(a){a.Fa("adBreakComplete",this.Eg,this);a.Fa("adCompanionInitialized",this.Im,this);this.O=Xi(y(this.WB,this,a),0)};
h.Im=function(a,b){Nb(this.J);this.J=new K3(this.g,b)};
h.WB=function(a){var b=Sla(this,a),c=b.previous,b=b.next;this.O=window.NaN;var d,e=!1;switch(a.sb.b){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&ia(b.sb.g)?z3(b)-1:0x7ffffffffffff}0==a.wa&&(A3(this.g,"bl"),y3(a)||A3(this.g,"fb"));"loaded"!=a.A||0==a.wa&&y3(a)&&b&&1E3*this.g.b.getCurrentTime()>=z3(b)?(c&&x3(c)&&!e&&(b=d,d=z3(c),d>b&&(b=d),a4(this,c),$3(this,c,b)),this.xf(a)):(this.A[a.getId()]=a,$3(this,a,d),mq(this.g));Ub(this.A)==this.o.length&&this.B.A();Z3(this)};
h.xf=function(a){a.Fa("adBreakComplete",this.Eg,this);this.b&&a==this.b&&(this.b=null,null!=this.J&&a.g&&(this.J.b=!0));a4(this,a);qb(this.o,a);delete this.A[a.getId()];Nb(a)};
h.pk=function(a){return this.A[a]};
h.Em=function(a){if(a.g)for(!r3(a)&&a.D?(R4(this.g),this.C.tv(a)):y3(a)&&!a.D?R4(this.g):P4(this.g),this.xf(a),a=this.B.g(),a={tfla:0<a?Math.floor(D()/1E3-a):0},c4(this.g.aa,"set_previous_ad_end_time",a),a=this.B,a.B&&0<a.b.g.g&&(a.o=D()/1E3,a.A());!lb(this.M);)d4(this,this.M.shift());else a.isVisible||this.xf(a)};
h.T=function(){Zi(this.O);Nb(this.C);Nb(this.B);Nb(this.ga);E(this.o,this.xf,this);Y3.L.T.call(this);Nb(this.J)};A(e4,Y3);h=e4.prototype;h.pk=function(a){a=e4.L.pk.call(this,a);if(!a)return null;if(!a.G)return a;var b;b=null;if(this.F.length){var c=b=this.F.shift();c.sb=a.sb;c.wa=a.getId()}b&&"loaded"==b.A?(a.Fa("adBreakComplete",this.Eg,this),this.A[a.getId()]=b,this.o[this.o.indexOf(a)]=b,Nb(a)):(this.Hg(),b&&(Nb(b),b=null,this.xf(a)));b&&!b.g&&this.Hg();return b};
h.Eg=function(a){!q3(a)&&(2!=a.sb.b||10!=r1(a.sb))||"loaded"==a.A&&a.g||this.Hg();e4.L.Eg.call(this,a)};
h.Em=function(a){a.g&&10<this.R?(f4(this),this.aa=Xi(y(this.Hg,this),1E3*(this.R-10))):this.Hg();e4.L.Em.call(this,a)};
h.Hg=function(){if(!this.isDisposed())for(f4(this);this.H.length&&this.K.length+this.F.length<this.X;){var a=this.H.shift();a.subscribe("adBreakComplete",this.Br,this);this.K.push(a);D3(a)}};
h.Br=function(a){a.Fa("adBreakComplete",this.Br,this);qb(this.K,a);this.F.push(a)};
h.T=function(){f4(this);E(this.K,Nb);E(this.F,Nb);E(this.H,Nb);e4.L.T.call(this)};A(g4,Y3);g4.prototype.getVideoData=function(){return null};
g4.prototype.ea=function(a){"loaded"==a.A&&this.H.push(a);a.Fa("adBreakComplete",this.ea,this)};
g4.prototype.R=function(){if(null!=this.b&&0<this.H.length){var a=this.H.shift();delete this.A[r1(a.sb)];var b=Math.floor(D()/1E3)-this.ca;this.ca=null;a.Fa("adBreakComplete",this.R,this);this.xf(a);this.b=null}0<this.K?(this.K--,h4(this)):(R4(this.aa),(0,window.isFinite)(b)&&(this.X?this.F.seekTo(window.Infinity,!0):this.F.seekTo(this.F.getCurrentTime()+b,!0)))};var i4=[];A(l4,F);l4.prototype.D=function(){this.b||(this.b=k4(this.A.oe()));this.g.b.wb(Xb(this.b),1)};
l4.prototype.o=function(){if(this.b){var a=this.g.b.getCurrentTime(),b=[],c=null,d=Number.MAX_VALUE;E(this.A.oe(),function(e){var f=this.b[e];if(f){var k=this.A.K.get(e);k&&k.Fc>a?(e=!c1(this.F,k),e!=f.visible&&(f.visible=e,b.push(f)),e||(f=k.Fc-a,f<d&&(d=f,c=k))):!k||k.Wa()?(pJ(this.g.b,[f],void 0),delete this.b[e]):!f.visible&&k&&(f.visible=!0,b.push(f))}},this);
0<b.length&&this.g.b.wb(b,1);var e=this.g.g.g;if(0>=e)if(c){var f=0;0<this.C&&(f=D()/1E3-this.C);Vla(this,e-f-d+2)}else m4(this)}};
l4.prototype.T=function(){l4.L.T.call(this);this.g.Fa("endseeking",this.o,this);m4(this)};A(n4,F);h=n4.prototype;h.bq=function(){return 4};
h.Rj=function(a){return a};
h.Qs=function(){return!1};
h.$o=r;h.fi=r;h.uv=r;h.vv=r;h.wv=r;A(o4,F);h=o4.prototype;h.bq=function(){return 4-this.A/1E3};
h.Rj=function(a){return $b(this.o,1E3*a)?this.o[1E3*a]/1E3:a};
h.Qs=function(a){var b=!1,c={};E(Of(a),y(function(a){var d;if(d=(d=a.getAttribute("timeOffset"))?j4(d):null)b=b||Wla(a),c[d]=a},this));
if(!b||0==Ub(c))return!1;a=Ki(Yb(c),function(a){return(0,window.parseInt)(a,10)});
if(!Zla(this,a))return!1;Pb(c,y(function(a,b){var c=(0,window.parseInt)(ac(this.o,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",Xla(c))},this));
return!0};
h.$o=function(a){if(!(0>=this.G)){var b=[];E(a,y(function(a){if($b(this.o,1E3*a)){var c=new fq(1E3*this.Rj(a)+this.A,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.B[a]=c;b.push(c)}},this));
this.b.wb(b)}};
h.uv=function(a){if($b(this.o,1E3*a)){var b=K4(this.b);null!==b&&(a=Math.max(0,1E3*a-1E3*this.b.getCurrentTime(1)),b.oc("transition","opacity "+String(a)+"ms linear"),b.oc("opacity","0"),q4(this,b,a,0))}};
h.vv=function(a){p4(this,1E3*a)&&(this.B[a]&&(pJ(this.b.b,[this.B[a]],void 0),delete this.B[a]),this.fi())};
h.Cv=function(){O(us(this.b.b),4)&&this.fi()};
h.fi=function(){var a=K4(this.b);null!==a&&(null!=this.g&&(Zi(this.g),this.g=null),r4(this,a,this.b.app.$a.Mb()/100),a.oc("transition",""),a.oc("opacity","1"))};
h.wv=function(a){if($b(this.o,1E3*a)){var b=1E3*a;200>=1E3*this.b.getCurrentTime(1)-b&&(this.b.seekTo(this.Rj(a)+this.F/1E3),0>=this.C||(a=K4(this.b),null!==a&&(a.oc("opacity","0"),r4(this,a,0),null!=this.g&&Zi(this.g),this.g=Sq(y(this.aJ,this),0))))}};
h.aJ=function(){var a=K4(this.b);null!==a&&(a.oc("transition","opacity "+String(this.C)+"ms linear"),a.oc("opacity","1"),q4(this,a,this.C,1))};
h.Bv=function(a,b,c){if(null!==this.g){var d=Math.max(1,b-D()),d=-1*a.Fd()*c/d,d=Math.max(0,a.Fd()+d);r4(this,a,d);0<d?this.g=Sq(y(this.Bv,this,a,b,c),c):this.g=null}};
h.Av=function(a,b,c){if(null!==this.g){var d=Math.max(1,b-D()),e=this.b.app.$a.Mb()/100,d=(e-a.Fd())*c/d,d=Math.min(e,a.Fd()+d);r4(this,a,d);d<e?this.g=Sq(y(this.Av,this,a,b,c),c):this.g=null}};
h.T=function(){this.fi();this.b.Fa("applicationplayerstatechange",this.Cv,this);o4.L.T.call(this)};A(s4,F);var dma={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};h=s4.prototype;
h.load=function(a){if(this.G=this.b.J){var b=this.b.g;this.B=b.applyFadeOnMidrolls?new o4(this.b):new n4;var c=A1(this.b);c.g=ama(this,a);c.ej=this.b.H.C;c.Eb.TSLA=nla(this);c.Eb.GET_MIDROLL_POSITION_IN_SEC=y(this.B.Rj,this.B);c.Eb.DESCRIPTION_URL="http://www.youtube.com/video/"+z1(this.b).videoId;if(a=F3(b).get(3))if(c.o=w1(a),b=b.ia)c.C=b;this.G.N("adsManagerLoaded",this.yv,!1,this);this.G.N("adError",this.xv,!1,this);k1(this.G,c,this);A3(this.b,"bd")}};
h.yv=function(a){if(a.o===this){var b={};Object.defineProperty(b,"currentTime",{get:y(function(){return this.b.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:y(function(){return this.b.b.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=bma(this);this.g=pW(a,this.b.H,b,c)}catch(d){z4(this,d);return}if(this.D=this.g.Gt(b,this.b.g.g)){this.B.$o(this.g.oe());this.M=new M3(this.b,this.D);this.F=new l4(this.b,this.g,this.D);G(this,this.F);Xi(y(this.F.D,this.F),0);kb(this.g.oe(),0)||y4(this);this.C.N(this.g,"companionBackfill",y(this.XI,this));this.C.N(this.g,"prefetched",y(this.$B,this));this.C.N(this.g,"loaded",y(this.VI,this));this.C.N(this.g,"adError",y(this.TI,this),!1);this.C.N(this.g,"start",y(this.WI,
this));this.C.N(this.g,"complete",y(this.SI,this));this.C.N(this.g,"companionInitialized",y(this.YI,this));this.C.N(this.g,"contentPauseRequested",y(this.ZI,this));this.C.N(this.g,"contentResumeRequested",y(this.$I,this));this.C.N(this.g,"allAdsCompleted",y(this.eC,this));L3(this.b,this.zv,this);try{this.g.init("normal"),this.g.start()}catch(d){c4(this.b.aa,"vmap_ads_manager_init_exception",void 0),this.g.destroy(),this.g=null,z4(this,d)}}}};
h.zv=function(){if(O(us(this.b.b),16)||O(us(this.b.b),32)){var a=this.g;null!=a.C&&(a=a.C,a.b.stop(),a.g=!1)}else a=this.g,null!=a.C&&Z0(a.C)};
h.YI=function(a){if(a=a.b)Nb(this.J),this.J=new K3(this.b,a)};
h.ZI=function(a){A4(this);if((this.o=a.kb())&&this.o.ob()){a=u4(this.o);var b=x4(this.o);this.A=new o2(a,this.b,this.g,this.o.isSkippable(),!0,void 0,b);1!=b&&KC("video_to_ad",["apbs"]);b4(this.b);this.B.vv(this.o.A.b);this.A.show();t4(this,"show_instream_ads")}};
h.$I=function(a){y4(this);this.b.getCurrentTime(1)<this.b.b.getVideoData().lengthSeconds&&(R4(this.b),this.o&&this.o.ob()&&(this.B.wv(this.o.A.b),null!=this.J&&(this.J.b=!0)));a=a.kb();this.H?this.o=null:y1(this.b).experiments.Z("fix_vmap_afc_mpu_api_stats_ads")&&!a&&this.A instanceof H2||A4(this);var b=!0;if(a&&a!==this.o&&!a.ob()){b=this.g;if(null!=b.g&&b.g.R&&!this.H){this.H=!0;b=this.F;if(null!=b.b[0]){var c=b.b[0];delete b.b[0];b.b[0]=new fq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.g.b.wb([c,
b.b[0]],1);b.g.wb([b.b[0]])}this.o=a;return}b=cma(this,a)}this.o&&this.o.ob()&&G4(this.b);this.o&&this.o.ob()?(t4(this,"set_previous_ad_end_time"),b=this.D,0<b.o&&(b.b=D()/1E3),b=this.F,b.C=D()/1E3,b.o()):a&&a!==this.o&&!a.ob()&&b&&(b=this.F,b.C=D()/1E3,b.o());this.F.D();this.o=a};
h.eC=function(){this.M.G=!0};
h.WI=function(a){(a=a.kb())&&this.A&&(a=u4(a),this.A.adSystem=a)};
h.SI=function(a){a.kb().ob()||this.o!==a.kb()||(A4(this),this.o=null)};
h.$B=function(a){var b=a.kb();if(null!=b){var c=a.b.adBreakTime;this.R[c]=b;this.O||(A3(this.b,"bl"),0==c&&a.kb().ob()||A3(this.b,"fb"),this.O=!0)}};
h.VI=function(a){if(null!=a.kb()){a.kb().ob()&&A3(this.b,"bs");var b=a.kb().A;0<b.b&&(this.H=!1);b.A||a.kb().ob()||y4(this)}};
h.TI=function(a){z4(this,a.getError())};
h.xv=function(a){var b=a.getError();"adLoadError"==b.Fb()&&a.b===this&&z4(this,b)};
h.XI=function(a){w4(this,a&&a.kb())};
h.T=function(){A4(this);this.G&&(this.G.sa("adsManagerLoaded",this.yv,!1,this),this.G.sa("adError",this.xv,!1,this));Om(this.aa);Om(this.C);this.b.b.removeEventListener("applicationplayerstatechange",this.zv,this);this.K=!1;this.g&&(this.g.destroy(),this.g=null);Nb(this.B);Nb(this.M);Nb(this.J);s4.L.T.call(this)};
h.VD=function(a,b,c){if(y1(this.b).experiments.Z("fix_vmap_afc_mpu_api_stats_ads")){if(a){a=a.Fc;var d=1;-1==a?d=3:0<a&&(d=2);c.break_type=d;c.sst=a;c.sidx=0}D1(this.b,b,c)}};A(B4,m1);B4.o=10;B4.g=1E3;B4.b="livead";B4.Cb=function(a){return!!a.$a.getVideoData().adModule};
h=B4.prototype;h.Cb=function(){return B4.Cb(this.app)};
h.create=function(){B4.L.create.call(this);this.K.S(this.b,"beginseeking",y(this.Y,this,"beginseeking"));this.K.S(this.b,"endseeking",y(this.Y,this,"endseeking"));this.K.S(this.b,"resize",y(this.Y,this,"resize"));this.K.S(this.b,"presentingplayerstatechange",y(this.Y,this,"presentingplayerstatechange"));this.K.S(this.b,"webglsettingschanged",y(this.Y,this,"webglsettingschanged"));A3(this,"i");this.g=new Pla(y1(this),this.b.getVideoData().A||{});this.C=new Tla(this,this.b);this.X=!1;if(this.J)this.J.b.o.B=
EM();else{var a=this.g.X?void 0:g2(this.G),b=new l1(this.app,2),c=d2(this.G);b.g||(b.g=hc(b.o),b.g.addEventListener=y(b.lz,b),b.g.removeEventListener=y(b.mz,b));this.H=new uS(c,void 0,a,b.g,!0);this.H.setSize(-1,-1);this.J=new j1(this.H)}if(this.g.vmap&&!this.g.ca){this.A=new s4(this);try{this.A.load(this.g.vmap)}catch(d){aj(d),c4(this.aa,"vmap_load_exception",void 0),this.A.dispose(),this.A=null,O4(this,I3(new H3(this)))}}else O4(this,I3(new H3(this)));this.C&&(a={},a.allowed=this.C.g,oq(this,{},
a))};
h.destroy=function(){this.R&&P4(this);this.app.V.experiments.Z("disable_new_pause_state3")||kq(this);N4(this);Ob(this.o,this.B,this.A);this.C=this.g=this.A=this.ba=this.B=this.o=null;f2(this.G);K1=H1=G1=!1;M1();this.D&&B4.L.destroy.call(this)};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.isFullscreen=function(){return this.b.isFullscreen()||this.g.C};
h.ci=function(){var a;if(this.C){a=this.C;var b={allowed:a.g};a.b.excludedAds&&(b.ex_ad=a.b.excludedAds);a.o&&(b.at=a.o);a=b}else a=B4.L.ci.call(this);return a};
h.Da=function(){return this.b.Da()};
h.getVideoData=function(){return this.ba};
h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
h.pauseVideo=function(){var a=this.app;Xi(function(){a.pauseVideo()},0)};
h.seekTo=function(a){var b=this.app;Xi(function(){b.seekTo(a)},0)};
h.getAdState=function(){return this.O};
h.Yd=function(a){B4.L.Yd.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.o&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.o,d=c.pk(b);if(d&&!X3(c.B,d)&&(c=c.C,d.g)){var e=K4(c.b),d=Math.max(0,z3(d)+c.A+c.o-1E3*c.b.getCurrentTime(1));e.oc("transition","opacity "+String(d)+"ms linear");e.oc("opacity","0");R3(c,e,d,0)}}else d4(this.o,b);this.A&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.A,(c=d.R[b])&&c.ob()&&d.B.uv(b)):0>b?(b=this.J.b,d=new qW("contentComplete"),
b.dispatchEvent(d),d.b&&(SL(QL(),420706009)||b.o.clear(),null!=b.g&&(d=b.g.zf(),null!=d&&OS(d,b.o.b)))):(b=this.A,null!=b.o&&(b=b.g,null!=b.g&&b.g.start())));if("livead"===a.getId()&&null!=H4(this)){b=H4(this);for(a=Math.floor(a.start/1E3);p(b.A[a]);)a++;d=b.da++;c=0==a?new q1(1):new q1(2,a);d=new w3(b.aa,d,c,G3(b.aa.g,c.b),!1);b.A[a]=d;d.subscribe("adBreakComplete",b.ea,b);D3(d)}};
h.re=function(a){B4.L.re.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.o&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.o,(b=c.A[b])&&c.b==b&&!b.g&&b.isVisible&&b.F&&b.b instanceof z2&&A2(b.b,"fullscreen"));this.A&&"ytp-ad-fadeout"==a.style&&this.A.B.fi();"livead"===a.getId()&&null!=H4(this)&&1E3*this.getCurrentTime(1)>=a.start&&(pJ(this.b,[a],1),h4(H4(this)))};
h.Bc=function(a){this.Y(a)};
h.VC=function(a){var b=H4(this);if(null!=b&&null!=b.F){var c=H4(this).F.getCurrentTime();E(a,function(a){0!=c&&a.be>c&&(a=new fq(1E3*Math.floor(c+Math.random()*Math.max(a.be-10-c,0)),1E3*a.be,{id:"livead",priority:2}),this.wb([a],1))},this)}};
h.Ae=function(a){switch(a){case "addata":var b=this.g;return{adTag:b.adTag,adTest:b.Oa,forceAdType:b.forceAdType,isAfvSkippableInstreamEnabled:b.J,isAfvStandardInstreamEnabled:b.K,isBlazer:b.B,isDoubleClickEnabled:b.G,isForcedAd:b.ca,isFreeWheelEnabled:b.M,isHouseBrandPlayer:b.Vb,isLeanback:b.C,isShortform:b.Ga,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":if(this.A)return b=this.g.g,null!=b?b:0;b=this.o instanceof e4?this.o:null;return null!=
b?b.R:0;case "breakscount":return this.A?(b=this.A,b=null!=b.g?b.g.oe().length:0):b=this.o?this.o.o.length:0,b;case "displaystate":return b=null,this.o&&this.o.b&&(b=this.o.b.b),{adFormat:b instanceof a2?b.adType:!1,adSkipped:b instanceof o2?b.C:!1,hasVideoStarted:b instanceof o2?b.F:!1,skippable:b instanceof o2?b.R:!1};case "getContentVideoData":return b=z1(this),{adModule:b.adModule,partnerTrackingToken:b.Oa,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.o){a=this.o.A;var c=[];for(b in a)a.hasOwnProperty(b)&&
c.push({isInterruptive:a[Number(b)].g});return c}return 0}};
h.Uf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};A(U4,MM);var ema=[241];U4.prototype.getStatus=function(){return W(this,59)};
U4.prototype.setVideoId=function(a){175<this.B?this.g[175+this.A]=a:this.o[175]=a};
U4.prototype.setTitle=function(a){176<this.B?this.g[176+this.A]=a:this.o[176]=a};
U4.prototype.hasFeature=function(){return null!=W(this,332)};A(W4,F);h=W4.prototype;
h.T=function(){a5(this,new wq);$4(this);g5(this);this.g.b.removeEventListener("onVolumeChange",this.yj,this);this.g.b.removeEventListener("onCaptionsTrackListChanged",this.Zr,this);this.A&&this.g.b.removeEventListener("captionschanged",this.Lr,this);var a=this.b;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.b.Fa("proxyStateChange",this.ts,this),this.b.Fa("remotePlayerChange",this.Ch,this),this.b.Fa("remoteQueueChange",this.Jm,this));f5(this,this.o);this.C&&this.g.b.Kn(this.C);this.b=this.g=
null};
h.Dv=function(a,b){2==this.b.g||(Y4(this)?this.Xz.apply(this,arguments):this.Tz.apply(this,arguments))};
h.Lr=function(a){this.Dv("control_subtitles_set_track",cc(a)?null:a)};
h.Tz=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":e5(this,this.g.b.getCurrentTime());break;case "control_seek":e5(this,c[0])}};
h.Xz=function(a,b){if(1081==Co(this.b).b)switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":if(this.A)break;case "control_seek":return}var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":Co(this.b).Wa()?b5(this):d5(this);break;case "control_play":d5(this);break;case "control_pause":b5(this);break;case "control_seek":this.K=c[0];this.G.tg();break;case "control_subtitles_set_track":V4(this,c[0]);break;case "control_set_audio_track":c=
c[0],Y4(this)&&(this.b.tu(Z4(this),c),this.C=c)}};
h.yj=function(a){if(Y4(this)){this.b.Fa("remotePlayerChange",this.Ch,this);var b=Math.round(a.volume);a=!!a.muted;var c=Co(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a);this.b.subscribe("remotePlayerChange",this.Ch,this)}};
h.Zr=function(){cc(this.o)||f5(this,this.o);this.B=!1};
h.ts=function(a,b){g5(this);2==b&&this.St()};
h.Ch=function(){if(Y4(this)){$4(this);var a=Co(this.b);switch(a.b){case 1081:if(!this.A)break;case 1:c5(this);a5(this,new wq(8));break;case 3:a5(this,new wq(1));break;case 0:a5(this,new wq(2));this.G.stop();var b=this.g.b;j9(b.app,!0,b.playerType);X4(this,this.g.b.getVideoData().lengthSeconds);break;case 2:a5(this,new wq(4));X4(this,wo(a));break;case -1:a5(this,new wq);break;case -1E3:b={errorCode:"mdx.remoteerror",message:N("YTP_MDX_PLAYER_ERROR")},a5(this,new wq(128,b))}0==this.H&&(b=this.g.b,j9(b.app,
!1,b.playerType));this.H=a.b;a=Co(this.b).g;b=this.o;(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.o=a,f5(this,a));a=Co(this.b);-1==a.volume||Math.round(this.g.b.Mb())==a.volume&&this.g.b.ed()==a.muted||(this.g.b.removeEventListener("onVolumeChange",this.yj,this),a.muted?this.g.b.mute():this.g.b.Rf(),this.g.b.setVolume(a.volume),this.g.b.addEventListener("onVolumeChange",this.yj,this))}else X4(this,
0),$4(this),a5(this,new wq)};
h.Jm=function(){Y4(this)||(X4(this,0),$4(this),a5(this,new wq))};
h.JG=function(){var a=this.K;$4(this);X4(this,a);-1==Co(this.b).b?e5(this,a):this.b.seekTo(a);a5(this,new wq(1))};
h.St=function(){g5(this);$4(this);var a=this.b.A.getReconnectTimeout();2!=this.b.g||(0,window.isNaN)(a)||(this.F=Xi(y(this.St,this),1E3))};A(h5,m1);var Xsa=["play_pause","seek","set_audio_track"],Ysa=["captions"];h=h5.prototype;h.Cb=function(){return 1<this.G.length};
h.create=function(){h5.L.create.call(this);this.C.push(ij("yt-remote-before-disconnect",this.tC,this));this.C.push(ij("yt-remote-connection-change",this.us,this));this.C.push(ij("yt-remote-auto-connect",this.FE,this));this.us();var a=this.b.app.K;this.B&&this.B!=this.A&&1!=a&&3!=a&&this.load()};
h.destroy=function(){jj(this.C);this.C.length=0;Nb(this.g);this.g=null;h5.L.destroy.call(this)};
h.load=function(){if(!this.loaded){h5.L.load.call(this);this.g&&(this.o=new W4(this,this.g));this.b.pauseVideo();this.Y("command_redirect_controls",this,Xsa,Ysa);var a=Fp();if(0!=a){var b=this.g?Co(this.g).videoId:null;b&&b!=this.b.getVideoData().videoId||Xi(y(function(){this.J=a||0;this.b.Va("progresssync",a,void 0)},this),0)}}};
h.unload=function(){this.loaded&&(this.B=this.A,rq(this),Nb(this.o),this.o=null,h5.L.unload.call(this))};
h.T=function(){this.D&&this.destroy();Ob(this.o,this.g);this.g=this.o=null;h5.L.T.call(this)};
h.Bc=function(a,b){this.o&&this.o.Dv.apply(this.o,arguments)};
h.getCurrentTime=function(){return this.J};
h.tC=function(a){1==a&&(this.K=this.g?Co(this.g):null);this.H=a};
h.us=function(){var a=Ep();a?(this.g=a,this.H=this.K=null,this.load(),this.o||(this.o=new W4(this,this.g))):(Nb(this.g),this.g=null,this.loaded&&1==this.H&&(this.unload(),(a=this.K)&&a.videoId==this.b.getVideoData().videoId?this.b.Gn(a.videoId,wo(a)):this.b.Gn(this.b.getVideoData().videoId)))};
h.FE=function(a){a=qk(this.G,a);j5(this,a);i5(this,up(),yp())};
h.Ae=function(a,b){switch(a){case "casting":return!!this.g&&!!this.o;case "receivers":return this.G;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?dm():j5(this,b)),this.B;case "castSelector":var c=up(),c=1==c.length&&"cast-selector-receiver"==c[0].key;b&&c&&dm();return c}};
h.Uf=function(){return["casting","receivers","currentReceiver","castSelector"]};A(k5,yK);k5.B="(max-width: 656px)";k5.A="(min-width: 657px)";k5.o="(min-width: 1294px) and (min-height: 630px)";k5.b="(min-width: 1720px) and (min-height: 980px)";k5.g="(min-width: 1320px) and (min-height: 870px)";h=k5.prototype;h.initialize=function(a){this.J=w(a)?window.document.getElementById(a):a;this.Ba(this.J)};
h.DA=function(){this.D=new pg(0,0,0,0);this.B=new pg(0,0,0,0)};
h.Vn=function(a){me(this.element,arguments)};
h.nf=function(){if(this.b){var a=this.Ja();if(!a.isEmpty()){var b=!mf(a,sg(this.B)),c=l5(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.V;(c||b||a.ea)&&this.Y("resize")}}};
h.fJ=function(a,b){n5(this,b)};
h.FA=function(a){a.getVideoData()&&n5(this,a.getVideoData())};
h.Ja=function(){var a=this.app.V,b=bi()==this.element;if(b&&Pp())return new lf(window.outerWidth,window.outerHeight);if(b||a.Ee){var c;window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.C&&this.C.media==a||(this.C=window.matchMedia(a)),c=this.C&&this.C.matches);if(c)return new lf(window.innerWidth,window.innerHeight)}else if(this.M){if(this.app.ha)return new lf(this.element.clientWidth,this.element.clientHeight);if(this.M.matches)return new lf(426,
240);a=this.app.ha;if((a?this.X:this.ba).matches)return new lf(1280,720);if(a||this.ea.matches)return new lf(854,480);if(this.ca.matches)return new lf(640,360)}return new lf(this.element.clientWidth,this.element.clientHeight)};
h.$z=function(){this.b&&p2(this);this.nf()};
h.T=function(){this.A&&(this.A.disconnect(),this.A=null);this.F&&jj(this.F);this.b=this.o=this.J=null;k5.L.T.call(this)};da(t5);var J4=q("yt.player.utils.VideoTagPool.instance")||t5.getInstance();g.ca("yt.player.utils.VideoTagPool.instance",J4,void 0);h=t5.prototype;h.Qp=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=u5(this);this.b.push(c)}}};
h.zz=function(a,b){return this.b.length?this.b.pop():u5(this,a,b)};
h.dG=function(a){if(a&&kb(this.g,a)){a.src&&(Vz&&0<a.readyState&&(a.currentTime=Math.max(Asa,0)),a.removeAttribute("src"),a.load(),!a.b||!a.b.b||a.b&&Fz(a.b,null)||(a.b&&a.b.dispose(),a.b=null));for(var b in lm)lm[b][0]==a&&pm(b);qb(this.g,a)}};
h.GA=function(a){return this.b.length>=(a||1)};
h.Ay=function(){this.b.length==this.g.length&&4<=this.b.length||(4>this.g.length?this.Qp(4):(this.b=[],E(this.g,function(a){a.src||a.load();this.b.push(a)},this)))};
t5.prototype.fillPool=t5.prototype.Qp;t5.prototype.getTag=t5.prototype.zz;t5.prototype.releaseTag=t5.prototype.dG;t5.prototype.hasTags=t5.prototype.GA;t5.prototype.activateTags=t5.prototype.Ay;A(v5,uk);h=v5.prototype;h.bJ=function(a){a=wm(a);if(!kf(a,this.o)){var b=2;this.C&&(b|=8);this.o=a;this.zb(b,!0)}};
h.SB=function(){this.C&&this.zb(8,!0);this.zb(2,!1)};
h.Jv=function(a){var b=wm(a);kf(b,this.o)||(this.o=b,(a=tm(a))&&this.O(a)&&(this.zb(4,!0),this.b.sa(this.K),this.K=null,this.H=this.b.S(this.A,"mouseout",this.cJ)))};
h.cJ=function(a){a=vm(a);a&&this.O(a)||(this.o=new jf(window.NaN,window.NaN),w5(this))};
h.CB=function(){this.zb(1,!0)};
h.oz=function(a){a=tm(a);a instanceof window.Element&&!(0<a.tabIndex)||this.zb(1,!0)};
h.Iv=function(){this.C=!0;this.b.sa(this.B);this.B=this.b.S(window.document,"mouseup",this.dJ)};
h.dJ=function(){this.C=!1;this.zb(8,!1);this.b.sa(this.B);this.B=this.b.S(this.A,"mousedown",this.Iv)};
h.Kv=function(a){if(a=a.changedTouches[0])this.R=a.identifier,this.b.sa(this.D),this.D=this.b.S(this.A,"touchend",this.eJ),this.zb(1024,!0)};
h.eJ=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.R){b=d;break}}b&&(this.b.sa(this.D),this.D=this.b.S(this.A,"touchstart",this.Kv),this.zb(1024,!1))};
h.zb=function(a,b){this.isDisposed();var c=!this.g;b?(this.g|=a,a&1&&this.F.start(),a&2&&this.G.start()):(this.g&=~a,a&1&&this.F.stop(),a&2&&this.G.stop(),a&512&&this.J.stop());this.g&512&&!(this.g&128)&&this.J.ae(this.M);var d=!this.g;c!=d&&this.Y("autohideupdate",d)};A(x5,P);x5.prototype.G=function(a,b){Zi(this.b);this.context&&(this.b=Sq(y(this.G,this,a,b),b),a.call(this,new Date-this.F))};
x5.prototype.T=function(){Zi(this.b);this.context=null;x5.L.T.call(this)};A(z5,x5);z5.prototype.show=function(){z5.L.show.call(this);var a=this.J;this.F=new Date;this.G(a,75)};
z5.prototype.J=function(){var a=1-1/1.5;this.o=(this.o+this.D)%(this.width*a);this.A=(this.A+this.C)%(this.height*a);this.context.drawImage(this.H,-1*this.o,-1*this.A);this.context.fillRect(0,this.B,this.width,75);this.B=(this.B+75+7)%this.height-75};
z5.prototype.oa=function(){Zi(this.b);z5.L.oa.call(this)};A(C5,P);var uma=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;C5.prototype.show=function(){C5.L.show.call(this);this.b&&this.b.show()};
C5.prototype.oa=function(){C5.L.oa.call(this);this.b&&this.b.oa()};
C5.prototype.B=function(a){if(Ar(a,this.o,!Br(Q(this.o)))){a={as3:!1,html5:!0,player:!0,cpn:this.o.getVideoData().clientPlaybackNonce};var b=this.o;b.Aa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&Cr(b)}};A(G5,P);A(I5,P);I5.prototype.show=function(){I5.L.show.call(this);this.F()};
I5.prototype.oa=function(){I5.L.oa.call(this);this.D.stop()};
I5.prototype.F=function(){var a=XI(this.b),b=this.b.getVideoData(),c=this.b.D.b,d=this.b.V,e=a.El(),f=bG(a.X,"bandwidth"),k=8*cb(f)/1024,l=bG(a.X,"networkactivity"),m=cb(l)/1024,n=b.xa,t;t=this.b;t=(t=t.g&&t.g.R)?t.A.Ra():[0];var u=cb(t),x=bG(a.X,"bufferhealth"),z=cb(x),u=120<u||0>u?"Uncertain":u.toFixed(1)+" s, "+(b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming"),J=a.F?a.F.b:null,V=J&&J.b,S=IA(),ba=OH(b,a.getCurrentTime()),ba=ba?ba.sequence:window.NaN,Ja=b.videoId,
db=b.clientPlaybackNonce,Jc=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.A?wF(a.A):"",Kc;a:{if(b.qa&&(Kc=b.qa.match(/url=(https?)/))&&2==Kc.length){Kc=Kc[1];break a}Kc=""}c={video_id:Ja,cpn:db,cpn_style:Jc,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:Kc||d.X,dimensions:c.clientWidth+" x "+c.clientHeight+(1<S?" * "+S:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.b.$a.Mb())+"%",bandwidth_kbps:k.toFixed(0)+
" Kbps",buffer_health_seconds:z.toFixed(1)+" s",live_latency_style:n?"":"display:none",live_latency_message:u,drm_style:V?"":"display:none",drm:V?J.b+" / "+J.g:"",sequence_number:ba,sequence_number_style:"display:none",network_activity_bytes:m.toFixed(0)+" KB"};b.g&&(d=kG(b.g)?"yes":"no",d+=" ("+Iu(b.g),b.B&&kG(b.g)&&(d+="/"+Iu(b.B)),c.dash=d+")",c.mime=b.g.mimeType,d=b.g.video.fps,1<d&&(c.resolution+="@"+d),b.g.video.b||b.g.video.primaries?(d=b.g.video.b||"unknown","smpte2084"==d?d+=" (PQ)":"arib-std-b67"==
d&&(d+=" (HLG)"),c.color=d+" / "+(b.g.video.primaries||"unknown"),c.color_style=""):c.color_style="display:none");H5(this.o,f);H5(this.C,l);H5(this.B,t);H5(this.A,x);this.update(c);this.D.start()};A(J5,F);h=J5.prototype;h.yh=v;h.jc=v;h.Yn=v;h.Ws=v;h.rk=v;h.Xf=v;h.aq=v;h.Wf=v;h.canPlayType=v;h.bh=v;h.Ov=v;h.Vf=v;h.Xn=v;h.gi=v;h.Vi=v;h.je=v;h.Wi=v;h.getCurrentTime=v;h.tk=v;h.pf=v;h.load=v;h.pause=v;h.play=v;h.Be=v;h.Al=v;h.bb=v;h.Mv=v;h.Cl=v;h.Qv=v;h.sk=v;h.setSize=v;h.Fd=v;h.setVolume=v;h.Nv=v;h.Rv=v;h.Sv=v;h.$m=v;h.setAttribute=v;h.hp=v;h.Vt=v;h.Lv=v;h.removeAttribute=v;h.Wn=v;h.Pv=v;h.hasAttribute=v;h.oc=v;h.getStyle=v;h.Vs=v;
h.Tp=function(a,b){this.bh()||this.getCurrentTime()>a||10<b||(this.play(),Xi(y(this.Tp,this,this.getCurrentTime(),b+1),500))};
h.seekTo=function(a){0<this.Be()&&(L5&&4>zH&&(a=Math.max(.1,a)),this.tk(a))};
h.addEventListener=function(a,b,c,d){this.A.N(a,b,!1,d);this.Np(a)};
h.removeEventListener=function(a,b,c,d){this.A.sa(a,b,!1,d)};
h.dispatchEvent=function(a){return this.A.dispatchEvent(a)};
h.Dp=function(){this.B&&!this.Xn()&&this.gi(!0)};
h.T=function(){this.C&&this.removeEventListener("volumechange",this.Dp,!1,this);J5.L.T.call(this)};
h.Np=v;A(N5,mc);N5.prototype.preventDefault=function(){N5.L.preventDefault.call(this);this.b&&this.b.preventDefault()};
N5.prototype.stopPropagation=function(){N5.L.stopPropagation.call(this);this.b&&this.b.stopPropagation()};A(I4,J5);h=I4.prototype;h.yh=function(){return!0};
h.ma=function(){return this.b};
h.jc=function(){return this.b.src};
h.Yn=function(a){var b=this.b.playbackRate;this.b.src=a;this.b.playbackRate=b};
h.Ws=function(){this.b.removeAttribute("src")};
h.rk=function(){return this.b.playbackRate};
h.Xf=function(a){this.b.playbackRate=a};
h.aq=function(){return this.b.loop};
h.Wf=function(a){this.b.loop=a};
h.canPlayType=function(a,b){return this.b.canPlayType(a,b)};
h.bh=function(){return this.b.paused};
h.Ov=function(){return this.b.seeking};
h.Vf=function(){return this.b.ended};
h.Xn=function(){return this.b.muted};
h.gi=function(a){this.b.muted=a};
h.Vi=function(){return this.b.played||aC()};
h.je=function(){return this.b.buffered||aC()};
h.Wi=function(){return this.b.seekable||aC()};
h.getCurrentTime=function(){return this.b.currentTime};
h.tk=function(a){this.b.currentTime=a};
h.pf=function(){return this.b.duration};
h.load=function(){var a=this.b.playbackRate;this.b.load();this.b.playbackRate=a};
h.pause=function(){this.b.pause()};
h.play=function(){var a=this.b.play();a&&a.then&&a.then(void 0,function(a){1E-4>Math.random()&&aj(a)})};
h.Be=function(){return this.b.readyState};
h.Al=function(){return this.b.networkState};
h.bb=function(){return this.b.error?this.b.error.code:null};
h.Mv=function(){var a={};if(this.b){if(this.b.getVideoPlaybackQuality)return this.b.getVideoPlaybackQuality();this.b.webkitDecodedFrameCount&&(a.totalVideoFrames=this.b.webkitDecodedFrameCount,a.droppedVideoFrames=this.b.webkitDroppedFrameCount)}return a};
h.Nv=function(){return!!this.b.webkitCurrentPlaybackTargetIsWireless};
h.Rv=function(){return!!this.b.webkitShowPlaybackTargetPicker()};
h.Sv=function(){this.b.webkitSetPresentationMode("picture-in-picture"==this.b.webkitPresentationMode?"inline":"picture-in-picture")};
h.Cl=function(){return Ss(this.b)};
h.Qv=function(a){return Rs(this.b,a)};
h.sk=function(){return dt(this.b)};
h.setSize=function(a){return bt(this.b,a)};
h.Fd=function(){return this.b.volume};
h.setVolume=function(a){this.b.volume=a};
h.Np=function(a){if(!this.o[a]){var b=y(this.gJ,this);this.b.addEventListener(a,b);this.o[a]=b}};
h.gJ=function(a){this.dispatchEvent(new N5(this,a.type,a))};
h.$m=function(a){a?this.b.setAttribute("crossorigin","anonymous"):this.b.removeAttribute("crossorigin")};
h.setAttribute=function(a,b){this.b.setAttribute(a,b)};
h.removeAttribute=function(a){this.b.removeAttribute(a)};
h.hasAttribute=function(a){return this.b.hasAttribute(a)};
h.hp=function(a){for(var b=0;b<a.length;b++)this.b.appendChild(a[b])};
h.Vt=function(){return!!this.b.textTracks};
h.Lv=function(){this.b.webkitExitFullScreen&&this.b.webkitExitFullScreen()};
h.Wn=function(a){I(this.b,a)};
h.Pv=function(a){oe(this.b,a)};
h.oc=function(a,b){Ls(this.b,a,b)};
h.getStyle=function(a){return Ns(this.b,a)};
h.Vs=function(){Lf(this.b)};
h.T=function(){for(var a in this.o)this.b.removeEventListener(a,this.o[a]);I4.L.T.call(this)};var P5=null;O5.prototype.initialize=function(){var a=window.AudioContext||window.webkitAudioContext;if(a&&!P5)try{P5=new a}catch(b){this.$.app.g.Wh(new VB("html5.webaudio",!1,{name:b.name}))}};
O5.prototype.isDisposed=function(){return this.A};
O5.prototype.dispose=function(){this.A=!0;T5(this);this.b=this.g=null};A(U5,ix);U5.prototype.H=function(a){this.B&&this.B(a)?this.o=!0:this.g.isActive()?(this.g.stop(),this.A(a),this.o=this.b=!1):(this.C=a,this.g.start(),this.b=!0)};
U5.prototype.F=function(a){this.o?this.o=!1:this.b&&this.A(a)};
U5.prototype.D=function(){this.G(this.C);this.b=!0};A(V5,yK);V5.prototype.A=function(){var a=this.o.Sf();this.C.style.width=100*Y1(new V1(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
V5.prototype.B=function(){2==this.o.getPresentingPlayerType()?this.b||(this.show(),this.b=this.S(this.o,"progresssync",this.A),this.A()):this.b&&(this.oa(),this.sa(this.b),this.b=null)};A(W5,P);W5.prototype.D=function(){this.element.removeAttribute("aria-hidden");this.oa()};
W5.prototype.B=function(){this.show();this.o.start()};
W5.prototype.C=function(){this.element.setAttribute("aria-hidden",!0);this.b.start()};A(a6,P);a6.prototype.T=function(){this.b&&this.b();a6.L.T.call(this)};
a6.prototype.B=function(){lj("iv-button-mouseover")};
a6.prototype.A=function(a){Nr(this.$);var b=le(this.$.Da(),"ytp-cards-teaser-shown");lj("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.$.bi(!iJ(this.$),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};A(c6,yK);h=c6.prototype;h.show=function(){var a=g6(this);c6.L.show.call(this);this.ga&&(this.K=this.S(window,"blur",this.vb),this.R=this.S(window.document,"click",this.MJ));a||this.Y("show",!0)};
h.oa=function(){var a=g6(this);c6.L.oa.call(this);e6(this);a&&this.Y("show",!1)};
h.Yf=function(a,b){this.C=a;this.H.show();a&&(b&&(this.ea=this.S(this.$,"appresize",this.ep),this.ep()),a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&Tf(a,window.document.activeElement)&&this.focus())};
h.ep=function(){M8(this.M,this.element,this.C)};
h.vb=function(){var a=g6(this);e6(this);Gv(this.H);a&&this.Y("show",!1)};
h.cf=function(a,b){g6(this)?this.vb():this.Yf(a,b)};
h.MJ=function(a){var b=um(a);b&&(Tf(this.element,b)||this.C&&Tf(this.C,b)||!Vq(a))||this.vb()};A(h6,c6);h=h6.prototype;h.show=function(){h6.L.show.call(this);this.Qh()};
h.oa=function(){h6.L.oa.call(this);m6(this);1>=this.b.length||(this.A.Fa("back",this.te,this),this.b[this.b.length-1].detach(),i6(this,this.b[0]),this.b=[this.A],this.A.Ba(this.element),this.Qh())};
h.Qh=function(){m6(this);this.g&&(j6(this),bt(this.element,this.size))};
h.te=function(){var a=this.b.pop();k6(this,a,this.b[this.b.length-1],!0)};
h.EG=function(a,b,c){this.F.dispose();this.F=null;I(this.element,"ytp-popup-animating");c?(I(a.element,"ytp-panel-animate-forward"),oe(b.element,"ytp-panel-animate-back")):(I(a.element,"ytp-panel-animate-back"),oe(b.element,"ytp-panel-animate-forward"));bt(this.element,this.size);this.D=new he(ra(this.IJ,a,b),250,this);this.D.start()};
h.IJ=function(a){oe(this.element,"ytp-popup-animating");a.detach();pe(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.D.dispose();this.D=null};
h.JJ=function(a){if(!ym(a))switch(zm(a)){case 27:this.vb();xm(a);break;case 37:1<this.b.length&&this.te();xm(a);break;case 39:xm(a)}};
h.focus=function(){this.A.focus()};
h.T=function(){h6.L.T.call(this);this.F&&this.F.dispose();this.D&&this.D.dispose()};A(o6,yK);o6.prototype.va=function(a,b){o6.L.va.call(this,a,b);this.Y("size-change")};A(q6,yK);q6.prototype.ca=function(){this.Y("size-change")};
q6.prototype.focus=function(){this.X.focus()};
q6.prototype.ga=function(){this.Y("back")};A(r6,q6);r6.prototype.R=function(){this.o.Y("size-change")};
r6.prototype.focus=function(){for(var a=0,b=0;b<this.b.length;b++)if("true"==this.b[b].element.getAttribute("aria-checked")){a=b;break}this.b[a].focus()};A(t6,o6);t6.prototype.b=function(a){ym(a)||39!=zm(a)||(this.element.click(),xm(a))};A(v6,o6);v6.prototype.G=function(){w6(this,!this.b);this.Y("select",this.b)};
v6.prototype.getValue=function(){return this.b};A(z6,r6);h=z6.prototype;h.VB=function(a){Vq(a)&&this.$.pauseVideo();this.G.vb()};
h.UC=function(){Tq(this.B.element)};
h.oD=function(){A6(this,this.$.bk(!0))&&X5(this.M.D,{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",U:{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"}}]})};
h.pD=function(){A6(this,this.$.Eu())&&X5(this.M.D,Ah?{I:"div",fa:["ytp-icon","ytp-icon-code"]}:{I:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",U:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]})};
h.sD=function(){A6(this,this.$.getVideoUrl(!0,!0))&&X5(this.M.D,Hh())};
h.rD=function(){A6(this,this.$.getVideoUrl(!1,!0))&&X5(this.M.D,Hh())};
h.GD=function(a){w6(this.J,a)};
h.HD=function(){var a=this.J.getValue();q9(this.$.app,a);this.G.vb()};
h.IE=function(a){var b=XI(this.$.app);b&&b.Wh(new VB("feedback",!1,{gpu:vq()}));if(Ar(a,this.$,!Br(Q(this.$)))){a=this.$;var b={as3:!1,html5:!0,player:!0},c=a.gq();c.debug_error&&(b.player_error=c.debug_error.errorCode,b.player_error_details=c.debug_error.errorDetail);b.debug_text=a.bk(!0);a.Aa("onFeedbackStartRequest",b);a.isFullscreen()&&Cr(a)}this.G.vb()};
h.WE=function(){this.$.Ku();this.G.vb()};
h.uJ=function(a,b){y6(this,b)};A(C6,h6);h=C6.prototype;h.show=function(){this.G||(this.G=new z6(this.B,this.M,this),G(this,this.G),l6(this,this.G));C6.L.show.call(this)};
h.oa=function(){B6(this);C6.L.oa.call(this)};
h.TC=function(a){var b=um(a);if(!(this.g||b&&(ag(b,"a")||bg(b,"ytp-no-contextmenu")))){xm(a);D6(this);this.element.style.left="";this.element.style.top="";var c=wm(a);c.x++;c.y++;this.Yf();b=Ws(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 pg(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;Rs(this.element,tg(b));kx(this.o);this.o.S(window.document,"contextmenu",this.$C);this.o.S(this.B,
"fullscreentoggled",this.vJ);this.o.S(this.B,"pageTransition",this.eE)}};
h.$C=function(a){ym(a)||Tf(this.element,um(a))||this.vb()};
h.vJ=function(){this.vb();D6(this)};
h.eE=function(){this.vb()};A(E6,BK);h=E6.prototype;h.show=function(){this.g||(this.F.S(this.b,"videodatachange",this.B.ae,this.B),this.F.S(this.b,"videoplayerreset",this.B.ae,this.B));E6.L.show.call(this)};
h.oa=function(){kx(this.F);E6.L.oa.call(this)};
h.wJ=function(){this.C.isActive()||(this.D.show(),this.C.start())};
h.xJ=function(){this.C.isActive()&&(this.C.stop(),Gv(this.D))};
h.UD=function(){Gv(this.D)};
h.yJ=function(a){120<tm(a).naturalWidth&&I(this.element,"ytp-moving-thumbnail-loaded")};
h.AJ=function(a){var b=Q(this.b);b.experiments.Z("disable_new_pause_state3")&&Br(b)&&(a=Hq(a.state)&&!Hq(a.b)||cJ(this.b)&&O(a.state,2),Ls(this.element,"transition-delay",a?"2s":""));this.B.ae()};
h.zJ=function(){this.element.style.backgroundImage=""};
h.$n=function(){3==this.b.getPresentingPlayerType()?this.A.show():F6(this.A,this.b,us(this.b));this.g&&3!=this.A.b&&this.NG(this.b.dd(),this.b.getVideoData())};
h.NG=function(a){for(var b=Q(this.b),c,d,e=0;e<arguments.length;e++){var f=arguments[e];if(!(!f||f instanceof vH&&!f.videoId)){d=ny(this.b).Ja();var k=d.width,l=d.height,m=b.experiments.Z("hq_cued_thumbnail")&&!b.isMobile;320<k&&180<l&&(c=f.Ui());if(m?640<k||480<l:900<k||600<l)if(d=f.Hc(b,"maxresdefault.jpg"))break;if(m?320<k||180<l:430<k||320<l)if(d=f.Hc(b,"sddefault.jpg")||f.Hc(b,"hqdefault.jpg")||f.Hc(b,"mqdefault.jpg"))break;if(d=f.Hc(b,"default.jpg"))break}}this.G.style.backgroundImage=d?"url("+
d+")":"";this.o&&(this.o.va("url","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),(b=c)&&5E5<OC(this.H.app.la)&&this.o.va("url",b))};A(G6,ix);
G6.prototype.C=function(a){var b=!1,c=zm(a),d=um(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=Q(this.b);ym(a)?(e=!1,k=!0):l.Tb&&(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.A&&this.A.g&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:f=Z6(this.A,c)}l.Vb||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.o+=f,0=="awesome".indexOf(this.o)?(f=!0,7==this.o.length&&qe(this.b.Da(),"ytp-color-party")):(this.o=
f,f=0=="awesome".indexOf(this.o)));if(e&&!f){switch(c){case 32:Y5(this.g);yq(us(this.b))?this.b.pauseVideo():this.b.Cd();k=f=!0;break;case 37:X5(this.g,Ah?{I:"div",fa:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]});
this.b.Dd(-5*this.b.app.M);k=f=!0;break;case 39:X5(this.g,Ah?{I:"div",fa:["ytp-icon","ytp-icon-forward-five-seconds"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]});
this.b.Dd(5*this.b.app.M);k=f=!0;break;case 38:k=Math.min(this.b.Mb()+5,100);Z5(this.g,k,!1);this.b.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.b.Mb()-5,0);Z5(this.g,k,!0);this.b.setVolume(k);k=f=!0;break;case 27:this.G()&&(k=f=!0);break;case 36:this.b.seekTo(0);k=f=!0;break;case 35:this.b.seekTo(window.Infinity),k=f=!0}if("3"!=l.A)switch(c){case 67:dJ(nq(this.b),"captions")&&(f=this.b.Jb("captions","track"),eJ(this.b),k=this.g,f=f&&f.displayName?N("YTP_SUBTITLES_OFF"):N("YTP_SUBTITLES_ON"),
X5(k,Gh(),f),k=f=!0);break;case 66:K6(this,"background")&&(f=!0);break;case 79:K6(this,"textOpacity")&&(f=!0);break;case 87:K6(this,"windowOpacity")&&(f=!0);break;case 187:K6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:K6(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.b.Sf(),this.b.seekTo(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.B(!0);(b||k)&&this.F.zb(2,!0);(f||e&&I6(this,c,a.shiftKey))&&xm(a);l.Qa&&
(a={keyCode:zm(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:ym(a),fullscreen:this.b.isFullscreen()},this.b.Aa("onKeyPress",a))};
G6.prototype.D=function(a){a=zm(a);this.A&&this.A.g&&$6(this.A,a);9==a&&this.B(!0)};
G6.prototype.B=function(a){K(this.b.Da(),"ytp-keyboard-focus",a);K(this.H.element,"ytp-keyboard-focus",a)};A(L6,P);L6.prototype.C=function(a){var b=Q(this.b);b.experiments.Z("disable_new_pause_state3")&&Br(b)&&Ls(this.element,"transition-delay",Hq(a.state)&&!Hq(a.b)?"2s":"");this.A(a.state)};
L6.prototype.A=function(a){Q(this.b).Oe&&!this.B?(F6(this.o,this.b,a),a=(a=this.b.getVideoData())&&a.title?N("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:a.title}):N("YTP_PLAY"),this.va("label",a)):this.oa()};A(M6,P);M6.prototype.F=function(a,b){if(this.b)this.B!=b.videoId&&(je(this.b),this.B=b.videoId,this.o=!!b.paidContentOverlayDurationMs);else if(b.paidContentOverlayDurationMs&&b.paidContentOverlayText){var c=b.paidContentOverlayText;this.b=new he(this.C,b.paidContentOverlayDurationMs,this);G(this,this.b);Vf(this.element,c);this.S(this.$,"presentingplayerstatechange",this.D)}};
M6.prototype.D=function(a){O(a.state,8)&&this.o?(this.o=!1,this.A.show(),this.b.start()):(O(a.state,2)||Hq(a.state))&&je(this.b)};
M6.prototype.C=function(){Gv(this.A)};A(N6,P);N6.prototype.A=function(a){Ar(a,this.b)&&this.b.In(this.o)};A(O6,c6);h=O6.prototype;h.show=function(){O6.L.show.call(this);this.o.addEventListener("videodatachange",this.ii,this);this.o.addEventListener("onPlaylistUpdate",this.ii,this);this.ii()};
h.oa=function(){O6.L.oa.call(this);this.o.removeEventListener("videodatachange",this.ii,this);this.o.removeEventListener("onPlaylistUpdate",this.ii,this);P6(this,null)};
h.ii=function(){P6(this,this.o.dd());var a=this.b.author;this.update({title:this.b.title,subtitle:N(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.b.b+1,PLAYLIST_LENGTH:this.b.A}),playlisturl:this.o.getVideoUrl(!0)});this.Tm()};
h.Tm=function(){var a=this.b.F;if(a==this.D)this.B.element.setAttribute("aria-checked",!1),this.B=this.A[this.b.b];else{for(var b=0;b<this.A.length;b++)this.A[b].dispose();var c=this.b.A;this.A=[];for(b=0;b<c;b++){var d=new N6(this.o,this.b,b);this.A.push(d);d.Ba(this.F)}this.B=this.A[this.b.b];this.D=a}this.B.element.setAttribute("aria-checked",!0)};
h.hF=function(a){var b=this.o.getVideoUrl(!0);Dr(b,this.o,a)};
h.focus=function(){this.B.focus()};
h.T=function(){this.oa();O6.L.T.call(this)};A(Q6,P);Q6.prototype.o=function(){this.b&&2!=this.A.getPresentingPlayerType()&&400<=ny(this.A).Ja().width?(this.update({text:N("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.b.b+1,PLAYLIST_LENGTH:this.b.A}),title:N("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.b.title})}),this.g||(this.show(),x7(this.B))):this.g&&(this.oa(),x7(this.B))};
Q6.prototype.C=function(){this.b&&this.b.Fa("shuffle",this.o,this);(this.b=this.A.dd())&&this.b.subscribe("shuffle",this.o,this);this.o()};A(R6,P);R6.prototype.A=function(a){this.gb(O(a.state,2))};
R6.prototype.o=function(){us(this.b);this.b.Cd()};A(S6,c6);h=S6.prototype;h.hE=function(a){a=um(a);Tf(this.G,a)||Tf(this.D,a)||this.cf()};
h.vb=function(){S6.L.vb.call(this);this.A.eg(this.element)};
h.show=function(){var a=this.g;S6.L.show.call(this);this.Yv();a||this.o.Aa("onSharePanelOpened")};
h.Yv=function(){I(this.element,"ytp-share-panel-loading");oe(this.element,"ytp-share-panel-fail");var a=this.o.getVideoData(),b=this.o.ye(),c=b&&this.F.checked;K(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=Q(this.o);e.Ob&&(d.authuser=e.Ob);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);fk(Q(this.o).baseYtUrl+"share_ajax",{method:"GET",onError:y(this.Qt,this),tb:y(function(a,b){if(b){if(b.actions&&E5(b.actions),!this.isDisposed()){oe(this.element,
"ytp-share-panel-loading");T6(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=nma(f.img);k&&(k=new P({I:"a",fa:["ytp-share-panel-service-button","ytp-button"],U:{href:f.url,target:"_blank",title:f.sname},P:[k]}),k.N("click",ra(this.QE,f.url)),Mb(k,b6(this.A,k.element)),this.b.push(k),d++)}c=new P({I:"a",fa:["ytp-share-panel-service-button","ytp-button"],P:[{I:"span",W:"ytp-share-panel-service-button-more",P:[Ah?{I:"div",fa:["ytp-icon","ytp-icon-share-more"]}:{I:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],U:{href:b.more,target:"_blank",title:N("YTP_MORE")}});c.N("click",y(this.OD,this,b.more));Mb(c,b6(this.A,c.element));this.b.push(c);this.va("buttons",this.b)}}else this.Qt()},this),
Dc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.va("link",a);this.va("linkText",a);Tq(this.B)};
h.Qt=function(){oe(this.element,"ytp-share-panel-loading");I(this.element,"ytp-share-panel-fail")};
h.QE=function(a,b){if(Vq(b)){var 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 He?a:Le("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(",");(vc()||tc("iPad")||tc("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f?(l=c.document.createElement("A"),nf(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=Ie(e),c&&(LA&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=cf(Ce("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Ga(e)+'">'),c.document.write(Se(e)),c.document.close())):
c=c.open(Ie(e),f,l);c&&(c.opener||(c.opener=window),c.focus());xm(b)}};
h.OD=function(a,b){Dr(a,this.o,b)&&this.o.Aa("SHARE_CLICKED")};
h.PJ=function(a){!a&&g6(this)&&this.cf()};
h.focus=function(){this.B.focus()};
h.T=function(){S6.L.T.call(this);T6(this)};A(U6,P);U6.prototype.o=function(){var a=Q(this.b).De&&2!=this.b.getPresentingPlayerType();K(this.A,"ytp-share-button-visible",!!this.b.getVideoData().videoId&&300<=ny(this.b).Ja().width&&!a)};
U6.prototype.T=function(){U6.L.T.call(this);oe(this.A,"ytp-share-button-visible")};A(V6,P);var Zsa=.0035*.006;h=V6.prototype;
h.bo=function(){var a=gJ(this.b).shader;"Spherical"==a||"Spherical3D"==a?this.g||(a=ny(this.b).o,I(this.b.Da(),"ytp-webgl-spherical"),this.show(),this.A=new S1(a,!0,null,!0),this.A.subscribe("dragstart",this.cD,this),this.A.subscribe("dragmove",this.Rr,this),this.A.subscribe("dragend",this.bD,this),this.o=new S1(this.element,!0),this.o.subscribe("dragstart",this.gE,this),this.o.subscribe("dragend",this.fE,this),this.ea=this.N("keydown",this.SJ),this.ba=this.N("keyup",this.yD),this.S(a,"click",this.RJ,
this)):this.g&&(X6(this),oe(this.b.Da(),"ytp-webgl-spherical"),this.oa(),this.A.dispose(),this.A=null,this.o.dispose(),this.o=null,this.sa(this.ea),this.sa(this.ba))};
h.gE=function(a,b,c){var d=Vs(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?W6(this,0<a?-1:1,0,0):W6(this,0,0<b?-1:1,0)};
h.fE=function(){X6(this);this.C.start()};
h.cD=function(a,b){X6(this);this.K=!1;this.R=new jf(a,b);I(this.b.Da(),"ytp-dragging")};
h.Rr=function(a,b){var c=new jf(a,b),d;d=this.R;d=new jf(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.K=!0);this.R=c;var c=gJ(this.b),e=c.fov,f=Math.PI*e*.8,k=ny(this.b).Ja();d.scale(1/k.width*f,1/k.height*f);Y6(this,c.yaw+d.x,c.pitch+d.y,e,c,D())};
h.bD=function(a,b){this.Rr(a,b);oe(this.b.Da(),"ytp-dragging");this.C.start()};
h.RJ=function(a){this.K&&(a.stopPropagation(),this.K=!1)};
h.QJ=function(a){if(1E-5>Math.abs(this.F)&&1E-5>Math.abs(this.D)&&!this.J&&!this.G&&0==this.B.length)X6(this),this.D=this.F=0;else{var b=gJ(this.b),c=b.yaw,d=b.pitch,e=b.fov,f=a-this.O,k=Zsa*e,c=c+(this.F+(k*this.J-.006*this.F)*f)*f,d=d+(this.D+(k*this.G-.006*this.D)*f)*f;Y6(this,c,d,e,b,a);this.C.start()}};
h.SJ=function(a){!ym(a)&&Z6(this,zm(a))&&xm(a)};
h.yD=function(a){$6(this,zm(a))};
h.T=function(){this.o&&(this.A.dispose(),this.A=null,this.o.dispose(),this.o=null);V6.L.T.call(this)};A(b7,P);b7.prototype.oa=function(){this.b.stop();this.A.style.display="none";b7.L.oa.call(this)};
b7.prototype.D=function(a){a7(this,a.state)};
b7.prototype.B=function(){a7(this,us(this.o))};
b7.prototype.C=function(){this.A.style.display="block"};A(c7,P);c7.prototype.A=function(){var a=XI(this.b.app);a&&a.g.Rv()};
c7.prototype.o=function(){var a=XI(this.b.app);this.gb(!!a&&a.fb);a=XI(this.b.app);this.va("icon",a&&a.Za?Ah?{I:"div",fa:["ytp-icon","ytp-icon-airplay-on"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
Ah?{I:"div",fa:["ytp-icon","ytp-icon-airplay-off"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};A(d7,yK);d7.g=20;d7.o=141;d7.A=.5;d7.b=200;h=d7.prototype;h.BJ=function(a){O(a.state,32)?e7(this,this.A.getVideoData()):Gv(this.J)};
h.uk=function(){var a=this.A.Sf(),b=a.current,b=nH(this.b,this.b.pg(141),b);if(b!=this.K){var c=hH(this.b,b,141);this.D=$1(this.ca,c,141,141,!0);Rs(this.ea,(this.F-this.D.width)/2);this.K=b}Vf(this.ga,Uq(this.R?a.current-a.seekableEnd:a.current));nx(this.G);a=y(this.Uj,this);this.G=mx(a,void 0);this.M.tg()};
h.CJ=function(a,b){e7(this,b)};
h.Uj=function(){R(this.o,!1);nx(this.G);var a=Math.round(.5*this.D.width),b=Math.round(.5*this.D.height),c=this.A.Sf(),d=c.current/(c.seekableEnd-c.seekableStart),c=this.b.Ed(0).Fv(),e=this.b.Ed(0).Un(),d=a*(e-c+1)*d-this.F/2,f=Math.floor(d/a)+c,e=Math.min(f+Math.min(20,Math.ceil(this.F/a)),e),f=Math.max(f,c),k;if(this.C>=f&&this.B<=e){for(k=this.C;k>e;k--)Lf(this.o.children[k-this.B]);for(k=f-1;k>=this.B;k--)Lf(this.o.children[k-this.B]);for(k=this.B-1;k>=f;k--)this.o.insertBefore(f7(this,k,a,b),
this.o.firstChild);k=this.C+1}else Jf(this.o),k=f;for(;k<=e;k++)this.o.appendChild(f7(this,k,a,b));for(k=f;k<=e;k++)Ls(this.o.children[k-f],"transform","translatex("+(-d+(k-c)*a)+"px)");this.B=f;this.C=e;R(this.o,!0)};
h.IB=function(){for(var a=this.B;a<=this.C;a++)jH(this.b,a,this.D.width)};
h.dA=function(){var a=ny(this.A).Ja();this.F!=a.width&&(this.F=a.width,this.b&&(this.uk(),this.Uj()))};
h.vG=function(a){this.element.style.b=a+"px"};
h.show=function(){d7.L.show.call(this);I8(this.ba,!1)};
h.oa=function(){this.b&&e7(this,null);d7.L.oa.call(this);I8(this.ba,!0)};
h.T=function(){e7(this,null);d7.L.T.call(this)};A(g7,P);h=g7.prototype;h.DJ=function(a){O(a.state,32)?i7(this,this.b.getVideoData()):this.g&&(O(a.state,16)||O(a.state,1))||Gv(this.C)};
h.FJ=function(a,b){i7(this,b)};
h.EJ=function(){var a=us(this.b);(O(a,32)||O(a,16))&&h7(this)};
h.eA=function(){this.A=window.NaN;h7(this)};
h.oa=function(){this.o&&i7(this,null);g7.L.oa.call(this)};A(k7,P);h=k7.prototype;h.GJ=function(){Q(this.o).za?(hJ(this.o,this.o.isFullscreen()?"fullscreen_exit":"fullscreen_enter"),Cr(this.o)):this.b.cf(this.element,!0)};
h.Ur=function(){j7(this);this.b.Yf(this.element,!0)};
h.HJ=function(){Q(this.o).experiments.Z("disable_fullscreen_check")||(bi()==this.o.Da()?this.C.start():(this.C.stop(),this.b&&this.b.oa()))};
h.Qy=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.Ur()}};
h.Vv=function(){this.gb(zr(this.o))};
h.Ht=function(a){var b;a?(b=Ah?{I:"div",fa:["ytp-icon","ytp-icon-full-screen-close"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"g",W:"ytp-fullscreen-button-corner-2",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-3",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-0",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",
U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-1",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]},a=N("YTP_EXIT_FULLSCREEN"),window.document.activeElement==this.element&&this.o.Da().focus()):(b=Ah?{I:"div",fa:["ytp-icon","ytp-icon-full-screen"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"g",W:"ytp-fullscreen-button-corner-0",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},
{I:"g",W:"ytp-fullscreen-button-corner-1",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-2",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-3",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=N("YTP_FULLSCREEN"));this.va("icon",b);this.va("title",this.b?null:a);x7(this.B.g)};
h.T=function(){this.b||(this.A(),this.A=null);k7.L.T.call(this)};A(l7,P);l7.prototype.F=function(a){this.B("newdata"==a)};
l7.prototype.B=function(a){var b=this.o.getVideoData(),c=b.X,d=us(this.o),d=(yq(d)||O(d,4))&&0<c.length;this.gb(d);a&&(this.b=!0);if(d){this.b&&this.C.ae();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=N("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.Hc(Q(this.o),"default.jpg")});x7(this.A)}};
l7.prototype.D=function(){K8(this.A,this.element,N("YTP_MORE_CAMERAS_AVAILABLE"));this.b=!1};A(m7,c6);h=m7.prototype;h.show=function(){var a=this.g;m7.L.show.call(this);a||(this.A.S(this.b,"presentingplayerstatechange",this.ao),this.A.S(this.b,"videodatachange",this.ao),this.ao())};
h.oa=function(){kx(this.A);m7.L.oa.call(this)};
h.ao=function(){for(var a=this.b.getVideoData(),b=a.X,c=0;c<b.length;c++){var d=this.o[c];d||(d=new P({I:"button",fa:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},P:[{I:"div",W:"ytp-multicam-menu-item-title",P:["{{cameraName}}"]}]}),d.N("click",ra(this.EC,c),this),d.Ba(this.B),this.o[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=GA(Q(this.b),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.o.length;)this.o.pop().dispose();a=us(this.b);yq(a)||O(a,4)||b.length||!g6(this)||this.cf()};
h.EC=function(a){var b=this.b,c=this.b.getVideoData().X[a];a=XI(b.app,1).getVideoData();var d=b.getCurrentTime();if(c.id==a.videoId)c=XI(b.app,1),XI(b.app)!=c&&(M4(b.app,c),a.xa||b.seekTo(d));else{var e=XI(b.app,4);e||(e=new XH(Q(b),4,b.app.H,ny(b),y(b.app.O.Rb,b.app.O)));XI(b.app)!=e&&M4(b.app,e);B9(b.app,{videoId:c.id,title:a.title,start:a.xa?null:d,multifeed_metadata_list:a.A.multifeed_metadata_list},4)}};
h.focus=function(){for(var a=this.b.getVideoData(),b=a.X,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.o[c].focus();break}};
h.T=function(){Ob(this.o);m7.L.T.call(this)};n7.prototype.clone=function(){return new n7(this.o,this.D,this.b,this.B,this.g,this.C,this.A,this.F)};A(o7,F);var Z$=new n7(0,0,.4,0,.2,1,1,1);o7.prototype.g=function(){var a=Dq()-this.B,a=a<this.b?a/this.b:1,b;if(0==a)b=Z$.o;else if(1==a)b=Z$.A;else{b=ef(Z$.o,Z$.b,a);var c=ef(Z$.b,Z$.g,a),d=ef(Z$.g,Z$.A,a);b=ef(b,c,a);c=ef(c,d,a);b=ef(b,c,a)}this.o(b);1>a&&this.A.start()};
var oma=/[0-9.-]+|[^0-9.-]+/g;A(v7,P);
var pma=["M",19,",",17.2," L",19,",",18.8," C",19.296,",",18.664," ",19.5,",",18.354," ",19.5,",",18," C",19.5,",",17.652," ",19.296,",",17.348," ",19,",",17.2," Z"],qma=["M",19,",",14," L",19,",",22," C",20.48,",",21.32," ",21.5,",",19.77," ",21.5,",",18," C",21.5,",",16.26," ",20.48,",",14.74," ",19,",",14," Z"],rma=["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"],sma=["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"];v7.prototype.D=function(a){this.gb(300<=a.width)};
v7.prototype.G=function(){Q(this.b).ba?this.b.ed()?(hJ(this.b,"unmute"),this.b.Rf()):(hJ(this.b,"mute"),this.b.mute()):this.K.cf(this.element,!0)};
v7.prototype.O=function(a){u7(this,a.volume,a.muted)};A(y7,P);y7.prototype.o=function(){var a=XI(this.b.app);a&&a.g.Sv()};A(A7,P);A7.prototype.F=function(a){z7(this,a.state)};
A7.prototype.D=function(){K(this.element,"ytp-play-button-playlist",cJ(this.b))};
A7.prototype.G=function(){2==this.o?hJ(this.b,"pause"):3==this.o?hJ(this.b,"replay"):1==this.o?hJ(this.b,"play"):4==this.o&&hJ(this.b,"stop");yq(us(this.b))?this.b.pauseVideo():this.b.Cd()};
A7.prototype.T=function(){this.A&&this.A();A7.L.T.call(this)};A(C7,P);h=C7.prototype;h.dh=function(){D7(this);this.D&&(this.sa(this.D),this.D=null);this.F=this.b.getVideoData(1);if(this.o=this.b.dd())this.o.subscribe("shuffle",this.dh,this),this.D=this.S(this.b,"progresssync",this.KJ);this.C=E7(this);F7(this);this.Wv(ny(this.b).Ja())};
h.Wv=function(a){var b=cJ(this.b)||this.A&&qJ(this.b);this.gb(b&&(this.A||400<=a.width))};
h.LJ=function(a){hJ(this.b,this.A?"next":"previous");var b=!0;this.H?b=Ar(a,this.b):xm(a);b&&(this.A?this.b.ek(!0):this.C?this.b.seekTo(0):this.b.fk(!0))};
h.KJ=function(){var a=E7(this);a!=this.C&&(this.C=a,F7(this))};
h.T=function(){this.B&&(this.B(),this.B=null);D7(this);C7.L.T.call(this)};A(H7,yK);h=H7.prototype;h.NJ=function(a){if(!ym(a)){var b=!1;switch(zm(a)){case 36:this.o.seekTo(0);b=!0;break;case 35:this.o.seekTo(window.Infinity);b=!0;break;case 34:this.o.Dd(-60);b=!0;break;case 33:this.o.Dd(60);b=!0;break;case 38:this.o.Dd(5);b=!0;break;case 40:this.o.Dd(-5),b=!0}b&&xm(a)}};
h.Xv=function(a,b){G7(this,b,"newdata"==a)};
h.Vz=function(){this.Xv("newdata",this.o.getVideoData())};
h.bA=function(){O7(this.o.getVideoData())?us(this.o).Wa()&&P7(this,!0):P7(this,!1)};
h.Wz=function(a){0<gv(a,64)||!O7(this.o.getVideoData())?P7(this,!1):yq(a.state)&&0>gv(a,64)&&P7(this,!0);this.A&&!O(a.state,32)&&this.A.cancel()};
h.yE=function(a,b,c){var d=Vs(this.element),e=R7(this).b,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=Y1(this.b,Number(c.getAttribute("data-position")),0)*e+Vs(this.fb).x);this.la.x=a-d.x;this.la.y=b-d.y;c=R7(this);a=X1(this.b,c.g);b=this.Ca;c=c.position+this.Oa;d=f||Uq(this.qa?a-this.b.b:a);f=!!f;b.X||(3==b.b&&b.Ic(),1!=b.b&&(b.element.className="ytp-tooltip ytp-bottom",b.b=1,b.H&&b.D.show(),b.A=MH(b.M.getVideoData()),b.A&&b.A.subscribe("l",b.Tr,b)),b.update({text:d,title:""}),K(b.element,"ytp-text-detail",
!!f),d=-1,b.A&&(d=b.A.pg(160*b.B),d=nH(b.A,d,a)),N8(b,d),L8(b,!!f,c));K(this.ca,"ytp-hover-progress-shown",!O(us(this.o),64));K7(this)};
h.xE=function(){var a=this.Ca;1==a.b&&a.Ic();oe(this.ca,"ytp-hover-progress-shown")};
h.wE=function(a,b){$i(this.C);this.C=window.NaN;this.Sa=b;this.o.seekTo(X1(this.b,R7(this).g),!1);I(this.element,"ytp-drag");(this.na=yq(us(this.o)))&&this.o.pauseVideo()};
h.zE=function(){this.X=0;oe(this.element,"ytp-pull-ui");oe(this.element,"ytp-pulling");if(0<this.F){var a=Dq(),b=this.F,c=R7(this).position;$i(this.C);this.C=Sq(y(this.bu,this,a,b,c),0)}O(us(this.o),32)&&(this.o.seekTo(X1(this.b,R7(this).g)),oe(this.element,"ytp-drag"),this.na&&!O(us(this.o),2)&&this.o.Cd())};
h.bu=function(a,b,c){var d=1-Math.pow(1-(Dq()-a)/200,3),e=c+d*(this.D*this.B-c);if(0>d||1<d)d=1;Q7(this,(1-d)*b,e,this.D);this.C=1>d?Sq(y(this.bu,this,a,b,c),0):window.NaN};
h.AE=function(a,b){var c=!1,d=!1,e=R7(this);3600<=W1(this.b)&&(Q7(this,this.Sa-b-10,e.position,e.g),d=!0,c=this.F>.1*(this.H?60:40),e=R7(this));K(this.element,"ytp-pull-ui",d);c&&I(this.element,"ytp-pulling");c=0;e.o&&0>=e.position?c=-1:e.B&&e.position>=e.width&&(c=1);(0,window.isNaN)(this.C)||c&&c==this.X||Zi(this.C);c&&(this.C=Sq(y(this.jt,this,Dq(),this.G),0));this.X=c;this.o.seekTo(X1(this.b,e.g),!1)};
h.jt=function(a,b){if(this.X){var c=this.B*(this.R-1);this.G=df(b+this.X*(Dq()-a)*.3,0,c);J7(this);this.o.seekTo(X1(this.b,R7(this).g),!1);0<this.G&&this.G<c&&(this.C=Sq(y(this.jt,this,a,b),0))}};
h.Nr=function(){this.va("clipstarticon",Ch());this.va("clipendicon",Ch());I(this.element,"ytp-clip-hover")};
h.Mr=function(){this.va("clipstarticon",Eh());this.va("clipendicon",Dh());oe(this.element,"ytp-clip-hover")};
h.Hj=function(){this.K=0;this.J=window.Infinity;N7(this);I7(this,this.D,this.ga)};
h.cu=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.M[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.M[d]=c;this.da[d]=e;S7(this,c,e);"ytp-chapter-marker"==c.style?this.ub.appendChild(e):this.qb.appendChild(e)}}else U7(this,c)}};
h.fG=function(a){for(var b=0;b<a.length;b++)U7(this,a[b])};
h.T=function(){Zi(this.C);this.C=window.NaN;M7(this,!1);H7.L.T.call(this)};A(W7,P);W7.prototype.A=function(a){V7(this,a.state)};A(X7,P);
X7.prototype.b=function(){var a=!1;-1!=this.$.Zh().indexOf("remote")&&(a=1<this.$.Jb("remote","receivers").length);this.gb(a&&400<=ny(this.$).Ja().width);var b=1;a&&this.$.Jb("remote","casting")&&(b=2);if(this.o!=b){this.o=b;switch(b){case 1:this.va("icon",Ah?{I:"div",fa:["ytp-icon","ytp-icon-cast-desktop-off"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});
break;case 2:this.va("icon",Bh())}K(this.element,"ytp-remote-button-active",!!this.$.Jb("remote","casting"))}};
X7.prototype.A=function(){hJ(this.$,"remote");if(this.$.Jb("remote","castSelector"))this.$.isFullscreen()&&Cr(this.$),this.$.gf("remote","castSelector",!0);else{var a=this.B,b=this.element;g6(a)?a.vb():(p8(a),a.J.open(),a.Yf(b))}};A(Y7,v6);Y7.prototype.A=function(){dJ(nq(this.$),"iv-module")&&3!=this.$.getPresentingPlayerType()?this.o||(q8(this.B,this),this.o=!0):this.o&&(r8(this.B,this),this.o=!1);w6(this,BL(nq(this.$)))};
Y7.prototype.C=function(a){BL(nq(this.$));a?this.$.dk("iv-module"):this.$.Lu("iv-module")};A(Z7,o6);h=Z7.prototype;h.open=function(){l6(this.b,this.C)};
h.Ce=function(a){if(this.F){var b=this.o[this.F];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.o[a].element.setAttribute("aria-checked",!0);this.Nb(this.od(a));this.F=a};
h.bc=function(a){this.Ce(a);this.Y("select",a)};
h.dE=function(a){"true"!=this.o[a].element.getAttribute("aria-disabled")&&this.bc(a)};
h.od=function(a){return a.toString()};
h.OJ=function(a){ym(a)||39!=zm(a)||(this.open(),xm(a))};
h.T=function(){Z7.L.T.call(this);for(var a in this.o)this.o[a].dispose()};A(a8,Z7);a8.prototype.D=function(){var a=this.$.Mu();1<a.length?($7(this,Ki(a,this.B)),this.H=Ib(a,this.B,this),this.G.Nb(a.length?" ("+a.length+")":""),this.Y("size-change"),this.Ce(this.B(this.$.ai())),this.A||(q8(this.b,this),this.A=!0)):this.A&&(r8(this.b,this),this.A=!1)};
a8.prototype.bc=function(a){a8.L.bc.call(this,a);this.$.Kn(this.H[a]);this.b.te()};
a8.prototype.B=function(a){return a.toString()};A(b8,v6);b8.prototype.A=function(){var a=this.$.getPresentingPlayerType();if(2!=a&&3!=a&&qJ(this.$))this.B||(q8(this.D,this),this.B=!0,this.o.push(this.S(this.$,"videodatachange",this.A)),this.o.push(this.S(this.$,"videoplayerreset",this.A)),this.o.push(this.S(this.$,"onPlaylistUpdate",this.A)),this.o.push(this.S(this.$,"autonavchange",this.C)),this.C(this.$.getVideoData().autonavState));else if(this.B)for(r8(this.D,this),this.B=!1,a=0;a<this.o.length;a++)this.sa(this.o[a])};
b8.prototype.C=function(a){w6(this,1!=a)};
b8.prototype.F=function(a){this.$.app.b.Aa("onAutonavChangeRequest",1!=(a?2:1))};A(c8,Z7);c8.prototype.B=function(){var a=this.$.getPresentingPlayerType();if(2!=a&&3!=a){for(var a={},b=EI(XI(this.$.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.H=a;a=this.$.Du();b=this.$.getVideoData().g;if(b=!!b&&!kG(b))b=this.$.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.D);b&&a.unshift("missing-qualities");$7(this,a);if(a.length){this.G();this.A||(q8(this.b,this),this.A=!0);return}}this.A&&(r8(this.b,this),this.A=!1)};
c8.prototype.G=function(){var a=fJ(this.$);this.o[a]&&(this.D=this.$.ck(),this.Ce(a),"auto"==a&&this.Nb(this.od(a)))};
c8.prototype.bc=function(a){"missing-qualities"!=a&&(c8.L.bc.call(this,a),this.$.gk(a),this.b.vb())};
c8.prototype.od=function(a,b){if("missing-qualities"==a)return{I:"a",U:{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},P:[N("YTP_MISSING_FORMATS")]};var c={I:"div",P:[d8(this,a)]},d=fJ(this.$);b||"auto"!=d||"auto"!=a||(c.P.push(" "),c.P.push(d8(this,this.D,["ytp-menu-label-secondary"])));return c};A(e8,Z7);e8.prototype.D=function(){var a=-1!=this.$.Zh().indexOf("remote")?this.$.Jb("remote","receivers"):[];1<a.length&&!this.$.Jb("remote","castSelector")?(this.G=Ib(a,this.B,this),$7(this,Ki(a,this.B)),a=this.$.Jb("remote","currentReceiver"),this.Ce(this.B(a)),this.A||(q8(this.b,this),this.A=!0)):this.A&&(r8(this.b,this),this.A=!1)};
e8.prototype.B=function(a){return a.key};
e8.prototype.od=function(a){return"cast-selector-receiver"==a?N("YTP_MDX_CAST_SELECTOR"):this.G[a].name};
e8.prototype.bc=function(a){e8.L.bc.call(this,a);this.$.gf("remote","currentReceiver",this.G[a]);this.b.vb()};A(f8,Z7);h=f8.prototype;h.vl=function(a){return a.toString()};
h.od=function(a){return"1"==a?N("YTP_NORMAL_SPEED"):a.toString()};
h.Zv=function(){var a=this.$.getPresentingPlayerType();2!=a&&3!=a?this.A||(q8(this.b,this),this.A=!0,this.B=this.S(this.$,"onPlaybackRateChange",this.nE),$7(this,Ki(this.$.Xh(),this.vl)),this.Ce(this.vl(this.$.app.M))):this.A&&(r8(this.b,this),this.A=!1,this.sa(this.B),this.B=null)};
h.nE=function(a){this.Ce(this.vl(a))};
h.bc=function(a){f8.L.bc.call(this,a);this.$.$h((0,window.parseFloat)(a),!0);this.b.te()};A(h8,Z7);h=h8.prototype;h.QF=function(){l6(this.b,this.A)};
h.aw=function(a){return a.option.toString()};
h.od=function(a){return g8(this.H[a])};
h.bc=function(a){h8.L.bc.call(this,a);this.Y("settingChange",this.G,this.H[a].option)};
h.lt=function(a){this.Y("settingChange",this.G+"Override",!a);this.b.te()};A(i8,r6);i8.prototype.B=function(a,b){this.Y("settingChange",a,b)};A(k8,Z7);k8.prototype.B=function(a){return a.languageCode};
k8.prototype.od=function(a){return this.A[a].languageName||""};
k8.prototype.bc=function(a){this.Y("select",a);a=this.b;var b=a.b.pop(),c=a.b[0];a.b=[c];k6(a,b,c,!0)};A(l8,Z7);h=l8.prototype;h.fo=function(a){return cc(a)?"__off__":a.displayName};
h.od=function(a){return"__off__"==a?N("YTP_LANGUAGE_OFF"):"__translate__"==a?N("YTP_AUTO_TRANSLATE"):"__contribute__"==a?N("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.A[a]).displayName};
h.bc=function(a){"__translate__"==a?this.D.open():"__contribute__"==a?(this.$.pauseVideo(),this.$.isFullscreen()&&Cr(this.$),a=this.$.getVideoData(),yr(Q(this.$).baseYtUrl+"timedtext_video?ref=player&v="+a.videoId)):(this.$.gf("captions","track","__off__"==a?{}:this.A[a]),l8.L.bc.call(this,a),this.b.te())};
h.BG=function(){l6(this.b,this.B)};
h.ji=function(){var a=-1!=this.$.Zh().indexOf("captions"),b=this.$.getVideoData().de;if(a||b){var c,d;if(a){var e=this.$.Jb("captions","track"),f=this.$.Jb("captions","tracklist",{includeAsr:!0}),k=this.$.Jb("captions","translationLanguages");this.A=Ib(f,this.fo,this);c=Ki(f,this.fo);if(k.length){d=this.D;var l=k;d.A=Ib(l,d.B,d);$7(d,Ki(l,d.B));c.push("__translate__")}d=this.fo(e)}else this.A={},c=[],d="__off__";c.unshift("__off__");this.A.__off__={};b&&c.unshift("__contribute__");this.A[d]||(this.A[d]=
e,c.push(d));$7(this,c);this.Ce(d);a?(j8(this.B,this.$.Jn()),this.G.Nb(f.length?" ("+f.length+")":""),this.Y("size-change"),a&&k.length&&this.o.__translate__.element.setAttribute("aria-disabled",!!cc(e))):(this.G.Nb(""),this.Y("size-change"));this.H||(q8(this.b,this),this.H=!0)}else this.H&&(r8(this.b,this),this.H=!1)};
h.mF=function(a){var b=this.$.Jb("captions","track"),b=hc(b);b.translationLanguage=this.D.A[a];this.$.gf("captions","track",b)};
h.TJ=function(a,b){if("reset"==a)this.$.Pu();else{var c={};c[a]=b;this.$.Ln(c)}j8(this.B,this.$.Jn())};A(m8,Z7);var $sa={1:"YTP_THREED_VIEWMODE_2D",2:"YTP_THREED_VIEWMODE_ANAGLYPH"};m8.prototype.od=function(a){return N($sa[(0,window.parseInt)(a,10)])};
m8.prototype.D=function(){var a=gJ(this.$);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.A||(this.B=a.shader,q8(this.b,this),this.A=!0,$7(this,[(1).toString(),(2).toString()])),a=a.displayMode,void 0!=a&&this.Ce(a.toString())):this.A&&(r8(this.b,this),this.A=!1)};
m8.prototype.bc=function(a){m8.L.bc.call(this,a);a={shader:this.B,displayMode:a};var b=nq(this.$).g;b&&qL(b,a);this.b.te();this.$.Va("webglsettingschanged",gJ(this.$))};A(n8,h6);n8.prototype.Yf=function(a){p8(this);0<this.B.b.length&&n8.L.Yf.call(this,a)};
n8.prototype.show=function(){n8.L.show.call(this);I(this.o.Da(),"ytp-settings-shown")};
n8.prototype.oa=function(){n8.L.oa.call(this);oe(this.o.Da(),"ytp-settings-shown")};A(s8,P);s8.prototype.A=function(a){this.gb(this.B&&400<=a.width)};
s8.prototype.C=function(){hJ(this.$,"settings");this.o.g?this.o.vb():(this.$.dk("captions"),this.o.Yf(this.element))};
s8.prototype.b=function(){var a=this.$.getPresentingPlayerType(),b=2!=a&&3!=a,c=gJ(this.$),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&1==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.$.ck();K(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);K(this.element,"ytp-4k-quality-badge","hd2160"==b);K(this.element,"ytp-5k-quality-badge","hd2880"==b);K(this.element,"ytp-8k-quality-badge","highres"==b);K(this.element,"ytp-3d-badge-grey",a&&c);K(this.element,
"ytp-3d-badge",a&&!c)};A(t8,P);t8.prototype.D=function(){hJ(this.b,this.b.app.ha?"size_small":"size_large");var a=this.b.app,b=!a.ha;a.V.experiments.Z("player_legacy_set_size_style")&&V9(a,!0,b);a.b.Aa("SIZE_CLICKED",b)};
t8.prototype.o=function(){this.gb(this.b.app.sc&&!this.b.isFullscreen()&&3!=this.b.getPresentingPlayerType());if(this.g){var a=this.b.app.ha;if(this.A!=a){var b=a?Ah?{I:"div",fa:["ytp-icon","ytp-icon-default-view"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:Ah?{I:"div",fa:["ytp-icon","ytp-icon-theater-mode"]}:{I:"svg",U:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};Q(this.b).O||null==this.A?this.va("icon",b):t7(this.C,this.element,b);a=(this.A=a)?N("YTP_DEFAULT_VIEW"):N("YTP_THEATER_MODE");this.va("title",a);x7(this.B)}}};A(u8,P);u8.prototype.A=function(){hJ(this.o,"subtitles");eJ(this.o)};
u8.prototype.b=function(){var a=!!dJ(nq(this.o),"captions");this.gb(a&&300<=ny(this.o).Ja().width);a&&this.va("pressed",!!this.o.Jb("captions","track").displayName)};A(v8,P);h=v8.prototype;h.eh=function(){var a=ny(this.b).Ja().width,b=350<=a&&(!this.A||!O(us(this.b),64));this.gb(b);K(this.element,"ytp-time-display-allow-autohide",b&&400>a);b&&(a=this.b.Sf(),b=Uq(a.current),this.D!=b&&(this.va("currenttime",b),this.D=b),a=Uq(a.duration),this.F!=a&&(this.va("duration",a),this.F=a))};
h.VJ=function(a){if(this.C!=a){this.C=a;this.eh();var b=this.B.element;(b.disabled=a)?this.o&&(this.o(),this.o=null,b.removeAttribute("title")):(b.title=N("YTP_GOTO_LIVE_TOOLTIP"),this.o=b6(this.G,this.B.element))}};
h.WJ=function(a,b){this.A=b.xa;K(this.element,"ytp-live",this.A);this.eh()};
h.UJ=function(a){a.target==this.B.element?(hJ(this.b,"live"),this.b.seekTo(window.Infinity),this.b.Cd()):hJ(this.b,"time")};
h.T=function(){this.o&&this.o();v8.L.T.call(this)};A(x8,P);h=x8.prototype;h.YJ=function(){var a=kJ(this.D);this.G!=a&&(this.G=a,w8(this,this.b.Mb(),this.b.ed()))};
h.cw=function(a){this.gb(350<=a.width)};
h.bF=function(a){if(!ym(a)){var b=zm(a),c=null;37==b?c=this.B-5:39==b?c=this.B+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=df(c,0,100),0==c?this.b.mute():(this.b.ed()&&this.b.Rf(),this.b.setVolume(c)),xm(a))}};
h.ZJ=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.b.setVolume(this.B+(0>b?-10:10)):this.b.setVolume(this.B+df(b/10,-10,10));xm(a)};
h.aF=function(){hJ(this.b,"volume");y8(this,this.A,!0,this.o,this.D.J);this.O=this.B;this.b.ed()&&this.b.Rf()};
h.$E=function(a){a-=Vs(this.M).x;this.b.setVolume(100*df(a/(this.G?78:52),0,1))};
h.ZE=function(){y8(this,this.A,!1,this.o,this.D.J);0==this.B&&(this.b.mute(),this.b.setVolume(this.O))};
h.$J=function(a){w8(this,a.volume,a.muted)};
h.Bp=function(){y8(this,this.A,this.C,this.o,this.D.J)};
h.bw=function(a){y8(this,this.A,this.C,a,this.D.J)};
h.It=function(a){K(this.element,"ytp-volume-control-hover",a);y8(this,a,this.C,this.o,this.D.J)};
h.T=function(){x8.L.T.call(this);oe(this.K,"ytp-volume-slider-active")};A(z8,P);z8.prototype.o=function(){var a=!!this.b.getVideoData().videoId;this.gb(a);a&&(a=this.b.getVideoUrl(!0,!1,!1,!0),this.va("url",a))};
z8.prototype.A=function(a){hJ(this.b,"youtube");var b=this.b.getVideoUrl(!Vq(a),!1,!0,!0);Dr(b,this.b,a)};A(A8,ix);h=A8.prototype;h.co=function(){var a=this.A;L7(a);var b=a.o.getCurrentTime();(b<a.K||b>a.J)&&a.Hj();this.G.eh()};
h.$v=function(){this.mn();!this.H.g||this.co()};
h.vD=function(){this.co();this.B.start()};
h.mn=function(){var a;if(a=!Q(this.$).isMobile)a=this.A,a=300>1E3*W1(a.b)/(2*a.B*IA());a=a&&us(this.$).Wa()&&!!window.requestAnimationFrame;var b=!a;this.H.g||(a=b=!1);b?this.C||(this.C=this.S(this.$,"progresssync",this.co)):this.C&&(this.sa(this.C),this.C=null);a?this.B.isActive()||this.B.start():this.B.stop()};
h.OG=function(a){I8(this.b.g,!a)};
h.eo=function(){var a=kJ(this.b),b=ny(this.$).Ja(),c=12*(kJ(this.b)?2:1),d=Math.max(b.width-2*c,100);if(this.O!=b.width||this.M!=a){this.O=b.width;this.M=a;var e=C8(this);this.g.element.style.width=e+"px";this.g.element.style.left=c+"px";var f=this.A;f.Oa=c;f.B=e;f.H=a;J7(f);this.b.g.ea=e}c=this.o;b=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(kJ(this.b)?72:50))));c.ba=Math.min(570*(a?1.5:1),d);c.X=b;c.Qh();this.mn()};
h.ma=function(){return this.g.element};A(D8,P);D8.prototype.D=function(a){a=400>a.width&&this.b.dd()&&2!=this.b.getPresentingPlayerType();this.J.style.display=a?"":"none"};
D8.prototype.K=function(a){hJ(this.b,"title");var b=this.b.getVideoUrl(!Vq(a),!1,!0);Dr(b,this.b,a)};
D8.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&&CA.test(b)&&E8(this,a,c,d,b))};
D8.prototype.A=function(){F8(this);var a=this.b.getVideoData();this.va("title",a.title);!Q(this.b).F&&a.videoId?(this.va("url",this.b.getVideoUrl(!0)),this.o||(this.o=this.S(this.G,"click",this.K))):this.o&&(this.va("url",null),this.sa(this.o),this.o=null)};A(G8,P);h=G8.prototype;h.SD=function(a){3==this.b&&this.Ic();a=a.currentTarget;this.b||(a.removeEventListener("mouseover",this.K),a.addEventListener("mouseout",this.ba),J8(this,a,2))};
h.QD=function(a){(a=vm(a))&&Tf(this.o,a)||this.Ic()};
h.Tr=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=window.NaN;N8(this,c)}};
h.JB=function(){jH(this.A,this.C,160*this.B)};
h.Ic=function(){switch(this.b){case 2:this.o.removeEventListener("mouseout",this.ba),this.o.addEventListener("mouseover",this.K);case 3:3==this.b&&this.R.stop();this.M.removeEventListener("appresize",this.Ic,this);this.J||(this.o.hasAttribute("title"),this.o.setAttribute("title",this.F));this.F="";this.o=null;break;case 1:this.A&&(this.A.Fa("l",this.Tr,this),this.A=null),this.M.removeEventListener("videoready",this.Ic,this),this.O.stop()}this.b=null;this.H&&Gv(this.D)};
h.eg=function(a){if(this.o)for(var b=0;b<arguments.length;b++)Tf(arguments[b],this.o)&&this.Ic()};
h.T=function(){null!=this.b&&this.Ic();G8.L.T.call(this)};A(P8,P);h=P8.prototype;h.dw=function(a){this.gb(300<=a.width)};
h.HF=function(){this.o=!0;this.A=!1;O8(this,1);Q(this.b).isMobile&&K8(this.C,this.element);Q(this.b).Qa&&this.b.Aa("WATCH_LATER_VIDEO_ADDED")};
h.aK=function(){hJ(this.b,"watchlater");var a=this.b.getVideoData().videoId;if(!this.A){this.A=!0;O8(this,3);var b=Q(this.b);(this.o?kma:jma)({videoIds:a,Ob:b.Ob,pageId:b.pageId,onError:this.IF,tb:this.o?this.JF:this.HF,context:this},b.baseYtUrl,!0)}};
h.IF=function(a,b){this.A=!1;var c=N("YTP_ERROR_GENERIC_WITHOUT_LINK");b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);O8(this,4,c);Q(this.b).Qa&&this.b.Aa("WATCH_LATER_ERROR",c)};
h.JF=function(){this.A=this.o=!1;O8(this,2);Q(this.b).Qa&&this.b.Aa("WATCH_LATER_VIDEO_REMOVED")};
h.bK=function(){this.A=this.o=!1;O8(this,2)};
h.T=function(){P8.L.T.call(this);oe(this.D,"ytp-watch-later-button-visible")};A(Q8,P);Q8.prototype.C=function(a){this.gb(!O(a.state,2))};
Q8.prototype.A=function(){if(this.o.getVideoData().videoId){var a=this.o.getVideoUrl(!0,!1,!1,!0);this.va("url",a);this.b||(this.b=this.N("click",this.B))}else this.b&&(this.va("url",null),this.sa(this.b),this.b=null)};
Q8.prototype.B=function(a){var b=this.o.getVideoUrl(!Vq(a),!1,!0,!0);Dr(b,this.o,a)};A(S8,ix);h=S8.prototype;h.Uv=function(a,b){if(this.da!=b.videoId){this.da=b.videoId;var c=this.B;c.M=b&&0<b.X.length?5E3:3E3;c.zb(512,!0);this.Oh()}};
h.qE=function(){this.Uv(0,this.b.getVideoData())};
h.kl=function(a,b){b?this.M=a:this.M=null;this.Sg()};
h.ll=function(a,b){if(b)this.F.push(a);else for(var c=this.F.length;0<=c;c--)if(this.F[c]==a){this.F.splice(c,1);break}this.B.zb(64,0<this.F.length)};
h.Sg=function(){var a=!jJ(this),b=a&&Nr(this.b)&&!O(us(this.b),2);a?(this.ha.show(),this.ia.show()):(Gv(this.ha),Gv(this.ia),this.g.eg(this.A.element,this.G.element));b?this.G.o.show():Gv(this.G.o);K(this.A.element,"ytp-cards-available",b);K(this.b.Da(),"ytp-menu-shown",!a);var b=this.O,c=!a;(b.B=c)?b.oa():F6(b.o,b.b,us(b.b));this.o&&B8(this.o,!a)};
h.qJ=function(a){for(;a&&!Zf(a);)a=a==this.b.Da()?null:Sf(a);for(var b=a;b;){if(le(b,"video-ads")){a=null;break}b=b==this.b.Da()?null:Sf(b)}return!!a};
h.rJ=function(a){var b=this.b.Da();K(b,"ytp-autohide",a);a&&(this.g.eg(this.A.element,this.G.element),this.o&&this.g.eg(this.o.ma()),this.J=!1,oe(b,"ytp-touch-mode"));b=this.b;a=!a;b.Aa("onVideoAreaChange");b.Aa(a?"onShowControls":"onHideControls")};
h.NE=function(a){if(Hq(us(this.b))&&!Q(this.b).dc){var b=this.b.getVideoData();b.videoId&&this.b.Ou(UH(b))}this.B.g||T8(this,um(a))||(us(this.b),xm(a));this.J=!0;I(this.b.Da(),"ytp-touch-mode");this.B.zb(2,!0)};
h.xs=function(a){if(T8(this,um(a)))return!0;this.B.zb(2,!0);return!Vq(a)||this.Op()?!0:Hq(us(this.b))?(this.b.Cd(),!0):!1};
h.ys=function(a){T8(this,um(a));a=us(this.b);O(a,2)&&aJ(this.b)||(Y5(this.D),yq(a)?this.b.pauseVideo():(this.b.Cd(),window.document.activeElement==this.O.element&&this.b.Da().focus()))};
h.ME=function(a){T8(this,um(a))||3!=this.b.getPresentingPlayerType()&&Cr(this.b)};
h.sJ=function(a){var b=this.b.Da();a?b.parentElement?(b.setAttribute("aria-label",N("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.ga.element,b),b.parentElement.insertBefore(this.ca.element,b.nextSibling)):aj(Error("Player not in DOM.")):(b.setAttribute("aria-label",N("YTP_PLAYER_NORMAL")),this.ga.detach(),this.ca.detach());this.Zn();this.Oh()};
h.Zn=function(){var a=kJ(this),b=ny(this.b).Ja(),c=this.b.isFullscreen(),d=this.b.Da();Q(this.b).experiments.Z("autohide_resize_killswitch")||gm&&w5(this.B);this.g.B=a?1.5:1;K(d,"ytp-fullscreen",c);K(d,"ytp-small-mode",!a&&480>b.width);K(d,"ytp-big-mode",a);K(this.H.element,"ytp-big-mode",a);this.C&&(a=this.C,a.b&&y5(a.b,b.width,b.height))};
h.tJ=function(a){R8(this,a.state);this.Oh()};
h.Oh=function(){var a=!this.b.getVideoData().isListed&&2==this.b.getPresentingPlayerType(),a=!!this.da&&!ZI(this.b)&&!a&&(2==this.b.getPresentingPlayerType()||Q(this.b).Za||this.b.isFullscreen());if(this.la!=a&&(this.la=a,K(this.b.Da(),"ytp-hide-info-bar",!a),!a))for(this.g.eg(this.A.element,this.G.element),a=0;a<this.aa.length;a++){var b=this.aa[a];g6(b)&&b.vb()}};
h.Op=function(){return this.H.g?(this.H.vb(),!0):this.F.length?(this.F[this.F.length-1].vb(),!0):this.M?(this.M.vb(),!0):Nr(this.b)&&iJ(this.b)?(this.b.bi(!1,!1),!0):ZI(this.b)?(bJ(this.b,!0),!0):!1};
h.yG=function(a,b){this.qa=b;this.ll(a,b);this.Zt()};
h.Zt=function(){var a=this.qa||g6(this.H);this.ba!=a&&(this.ba=a,this.b.Aa("onAutonavPauseRequest",this.ba))};
h.pz=function(){U8(this,this.b.Da(),!0).focus()};
h.qz=function(){U8(this,this.b.Da(),!1).focus()};var isa={legacy_config:!0,player_response:!0,polymer_player_response:!0},V8={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};A(Y8,F);Y8.B="defaultcontext";Y8.b={};Y8.o="appapi";Y8.g="appad";Y8.create=function(a,b){try{var c=Y8.A(a);if(Y8.b[c]){try{Y8.b[c].dispose()}catch(e){aj(e)}Y8.b[c]=null}var d=new Y8(a,b);Mb(d,function(){Y8.b[c]=null});
return Y8.b[c]=d}catch(e){throw aj(e),e.stack;}};
Y8.A=function(a){return w(a)?a:"player"+oa(a)};
h=Y8.prototype;h.kC=function(){this.V.B&&yp()||o9(this,5)};
h.oE=function(a){this.V.B&&yp()||(O9(this),yq(a.getPlayerState())&&Q4(this))};
h.Kt=function(a){var b=this.D.element;K(b,"ytp-ad-overlay-open",a);K(b,"ytp-ad-overlay-closed",!a)};
h.canPlayType=function(a){return!!$y().canPlayType(a)};
h.getVideoData=function(){return this.B.getVideoData()};
h.ak=function(){var a=this.B?this.B.El():{};sa(a,Cea(this.G));this.F&&sa(a,this.F.ci());a.fs=this.b.isFullscreen();a.volume=Math.round(this.$a.Mb());a.mos=this.$a.ed()?1:0;return a};
h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.C.getCurrentTime():(a=XI(this,a))?a.getCurrentTime():0};
h.getPresentingPlayerType=function(){var a;if(a=this.V.B&&this.C)a=this.C,a=!!a.g&&!!a.o;return a?3:XI(this).J};
h.sH=function(a){switch(a.type){case "loadedmetadata":CC("fvb",this.H.b)||this.H.g("fvb");zC("fvb",void 0,"video_to_ad");this.Db.start();break;case "loadstart":CC("gv",this.H.b)||this.H.g("gv");zC("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!CC("l2s",this.H.b)&&2<=eC(a.target.je())&&this.H.g("l2s");break;case "playing":a=this.G.g,"none"!=this.o.getStyle("display")||s5(this.D)||a||(kv(this.B.o,"hidden","1",!0),this.V.experiments.Z("disable_html5_reload_hidden")||this.getVideoData().O||
Y9(this,"hidden",!0))}};
h.CD=function(a,b){this.b.Aa("onLoadProgress",b)};
h.cF=function(){this.b.Va("playbackstalledatstart")};
h.BF=function(a,b){this.b.Aa("onVideoProgress",b)};
h.pH=function(){this.$a.Va("progresssync",void 0,void 0)};
h.mC=function(a){!this.V.experiments.Z("disable_live_head_slowdown")&&0<gv(a,1)&&!O(a.state,64)&&C4(this).xa&&zI(this.g)&&1<this.M&&r9(this,1,!0);if(0<gv(a,2)){var b;this.A&&("embedded"==this.V.b||this.b.isFullscreen())&&TK(this)?(J9(this,!1,!this.V.experiments.Z("legacy_autoplay_flag")),b=!0):b=!1;!b&&uA(this.V)&&this.g.g.Lv()}O(a.state,128)&&(b=a.state,D9(this),b=b.b,this.b.Aa("onError",x$[b.errorCode]||5),this.b.Aa("onDetailedError",b));a.state.Wa()&&!Iq(a.state)&&(b=this.getVideoData(),AC("cpn",
b.clientPlaybackNonce,"ad_to_video"),b.videoId&&AC("docid",b.videoId,"ad_to_video"),b.playbackId&&AC("plid",b.playbackId,"ad_to_video"),zC("pbresume",void 0,"ad_to_video"));this.b.Va("applicationplayerstatechange",a)};
h.oH=function(a){!O(a.state,32)&&0>gv(a,16)&&(!O(a.state,8)||O(a.state,64)||this.o.Vf()||O(a.state,2)||Q4(this));this.b.Va("presentingplayerstatechange",a);p9(this,Jq(a.state))};
h.iC=function(a){"newdata"==a&&$8(this)};
h.oC=function(a){a==this.B.getVideoData()&&this.b.Aa("onPlaybackAudioChange",s9(this).Wb.name)};
h.zF=function(a){var b=this.B.getVideoData();a==b&&this.b.Aa("onPlaybackQualityChange",a.g.video.quality)};
h.En=function(a,b,c){if("newdata"==a)zL(this.G),this.g==this.B?(this.o.Wf(this.Ha),this.o.Xf(this.M)):(this.o.Wf(!1),this.o.Xf(1)),this.b.Va("videoplayerreset",b);else{if(!this.o)return;if("dataloaded"==a)if(xA(b.V,c.A),this.B==this.g){this.V.B&&qp("embedded"==this.V.b);var d=this.V.B&&!!yp();if(d||!C4(this).fu||this.V.isMobile){var e=C4(this);if(!QH(e)||d||BH(this.g.b)){SH(e);d&&o9(this,6);e=!1;d=B4.Cb;!this.F&&d(this)&&(this.F=new B4(this),f9(this,this.F),e=!0);try{var f=this.F;f&&!f.D&&f.Cb(this.$a)&&
f.create()}catch(k){aj(k),this.g&&tI(this.g,"ad")}e&&(f=this.F,d=C4(this),e=XI(this),d.subscribe("cuepointupdated",f.VC,f),f.ba=d,f=H4(f),null!=f&&(f.F=e),this.F.subscribe("overlay_ad_open",ra(this.Kt,!0),this),this.F.subscribe("overlay_ad_close",ra(this.Kt,!1),this));g9(this);e9(this)}else f=e.xa&&!Xz()?"html5.unsupportedlive":"fmt.noneavailable",d="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",(!yA(this.V)||m5||Wp()?0:zf||e.na&&rz)&&(d=e.na?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),
gI(this.g,f,d,"nosupported.1")}else e="YTP_DEVICE_FALLBACK",(!yA(this.V)||m5||Wp()?0:zf)&&(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),gI(this.g,"html5.unsupportedads",e,void 0)}else e9(this);1==b.J&&(this.getVideoData().Sb?(e=this.o,e.B=!0,e.gi(!0)):(this.o.B=!1,P9(this,this.aa)),this.getVideoData().xa&&!this.V.Ne&&gI(this.g,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),SH(c)&&(c.hd||c.Je||c.C.focEnabled||c.C.rmktEnabled||this.getVideoData().xo)&&(e=this.getVideoData(),y9(this,"part2viewed",
1,0x8000000000000),y9(this,"engagedview",Math.max(1,1E3*e.da),0x8000000000000),e.xa||(e=1E3*e.lengthSeconds,y9(this,"videoplaytime25",.25*e,e),y9(this,"videoplaytime50",.5*e,e),y9(this,"videoplaytime75",.75*e,e),y9(this,"videoplaytime100",e,0x8000000000000),y9(this,"conversionview",e,0x8000000000000))));this.b.Va("videodatachange",a,c,b.J)}this.V.Qa&&this.b.Aa("onVideoDataChange",{type:a,playertype:b.J})};
h.Wk=function(){k9(this,null);this.b.Aa("onPlaylistUpdate")};
h.Hr=function(a){var b=a.getId(),c=C4(this);if("part2viewed"==b)c.to&&Yp(c.to),c.Je&&Yp(c.Je);else if("conversionview"==b){var d=this.g;d.o&&ev(d.o)}else"engagedview"==b&&Yp(c.hd);c.ua&&(d=z9(this,c.ua,a.getId()),Yp(d));switch(b){case "videoplaytime25":c.nu&&Yp(c.nu);Yp(c.hy);break;case "videoplaytime50":c.ew&&Yp(c.ew);Yp(c.ly);break;case "videoplaytime75":c.jo&&Yp(c.jo);Yp(c.qy);break;case "videoplaytime100":c.lu&&Yp(c.lu),Yp(c.fy)}(b=this.getVideoData().xo)&&b[a.getId()]&&(c=b[a.getId()],Yp(c,void 0,
aq(c)),b=b[a.getId()+"gaia"],Yp(b,void 0,aq(b)));this.g.C.Uh(a)};
h.seekTo=function(a,b,c,d){b=0!=b;if(d=XI(this,d))2==this.K&&m9(this),d.seekTo(a,b,c)};
h.rH=function(a,b){var c=a.getVideoData();if(1==this.K||2==this.K)c.startSeconds=b;2==this.K?m9(this):this.b.Va("seekto",b)};
h.aC=function(){this.b.Va("airplayactivechange")};
h.bC=function(){this.b.Va("airplayavailabilitychange")};
h.uC=function(){this.b.Va("beginseeking")};
h.fD=function(){this.b.Va("endseeking")};
h.hs=function(){var a=this.A.Gb(),b=this.getVideoData();b.J||!this.ea?(b=b.Ca,a=A9(this,a),b&&E9(this,a)):a&&F9(this,a)};
h.gC=function(a){this.b.Aa("onCueRangeEnter",a.getId())};
h.hC=function(a){this.b.Aa("onCueRangeExit",a.getId())};
h.lC=function(){this.ca||(this.ca=rC(this.Or,this));o1(this.H,S4(this));if(this.V.experiments.Z("html5_playlist_preload")&&TK(this)){var a=this.A.Gb(tK(this.A));a&&C9(this,a)}};
h.jC=function(){var a=C4(this),b=this.g.C.b.b||[],c=this.Sa.videoplaytime100;this.V.experiments.Z("send_pyv_ad_mt_and_abandon_pings")&&a.ua&&0<=b.indexOf(c)&&(a=z9(this,a.ua,"video_abandon"),Yp(a))};
h.Or=function(a){a=a.b;if(!(0,window.isNaN)(a)&&0<a&&this.g){var b=this.g;b.o&&0<a&&(b.o.g.g.aft=[a])}};
h.bs=function(a){"remote"==a?(2==this.K&&m9(this),o9(this,6),h9(this,this.F)):this.Gm()};
h.ds=function(a){"remote"!=a||this.V.B&&yp()||(Q4(this),this.pauseVideo());this.Gm()};
h.Gm=function(){this.V.Qa&&this.B?this.b.Aa("onApiChange",this.B.J):this.b.Aa("onApiChange")};
h.LD=function(){var a={volume:df(Math.floor(100*this.o.Fd()),0,100),muted:this.o.Xn()};this.aa=hc(a);this.b.Aa("onVolumeChange",a)};
h.nD=function(){var a=bi();R9(this,a==this.D.element?1:0);Q9(this,this.V.experiments.Z("lock_fullscreen_tag")?Tf(this.D.element,a||null):a==this.D.element)};
h.qH=function(){var a=my(this.D);rg(this.dc,a)||(this.dc=a,this.B&&GI(this.B,"r"),!this.V.experiments.Z("disable_app_resize")&&this.g&&this.g!=this.B&&GI(this.g,"r"),1==this.Ya&&this.Ga&&Q9(this,!0));a=this.D.Ja();this.b.Va("resize",a);this.yb&&mf(this.yb,a)||(this.b.Va("appresize",a),this.yb=a)};
h.KE=function(){2!=this.Ya&&R9(this,bi()==this.D.element?1:0)};
h.nH=function(a){this.b.Va("liveviewshift",a)};
h.pauseVideo=function(a){(a=XI(this,a))&&a.pauseVideo()};
h.getAdState=function(){return this.F?this.F.getAdState():-1};
h.zu=function(a,b,c){this.V.experiments.Z("legacy_control_redirecting")&&(this.Nj(),this.Ca=a,b&&E(b,function(a){this.da[a]=!0},this),c&&Bea(this.G,a,c))};
h.Nj=function(){this.Ca=null;this.da={};AL(this.G)};
h.XE=function(){Y9(this,"signature")};
h.dD=function(){Y9(this,"drm_session_limit_exhausted")};
h.QC=function(){this.b.Aa("CONNECTION_ISSUE")};
h.mH=function(a){this.b.Aa("heartbeatparams",a)};
h.T=function(){this.V.B&&sp();this.g.dispose();this.J&&this.J.dispose();d9(this);Ob(Xb(this.Oa),this.A);qC(this.ca);this.ca=0;Y8.L.T.call(this)};g.ca("yt.player.Application.create",Y8.create,void 0);var $$=q("ytcsi.tick");$$&&$$("pe");})(_yt_player);
